hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 94 * - - 32 AS col1
----
3008

query II rowsort
SELECT ALL 62 * - + 54 * - 47 * - 24 AS col1, - 37
----
-3776544
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT DISTINCT MIN( DISTINCT - 16 ) - - 2
----
-14

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT MIN ( DISTINCT - 16 ) - - 2
----
-14

query I rowsort
SELECT + 44 * + - 64 - 60 AS col2
----
-2876

query I rowsort
SELECT ( - 25 ) * - - 15 AS col1
----
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6
SELECT ALL COUNT( * ) DIV + 79 AS col2, - 64 DIV + COUNT( * ) + - - MIN( + NULLIF ( - + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) * - ( + 37 ) ) ) + + 43 * COUNT( * ) - 43 + 18 AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6
SELECT ALL COUNT ( * ) / + 79 AS col2, - 64 / + COUNT ( * ) + - - MIN ( + NULLIF ( - + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - ( + 37 ) ) ) + + 43 * COUNT ( * ) - 43 + 18 AS col0
----
0
NULL

query I rowsort
SELECT 82 - - 38 * - + 8 AS col0
----
-222

onlyif mysql # aggregate syntax: 
query II rowsort label-8
SELECT COUNT( * ) * - 65, + 95 AS col1
----
-65
95

skipif mysql # not compatible
query II rowsort label-8
SELECT COUNT ( * ) * - 65, + 95 AS col1
----
-65
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9
SELECT ALL - - COUNT( * ) * - 92 AS col1, NULLIF ( ( COUNT( * ) ), 16 )
----
-92
1

skipif mysql # not compatible
query II rowsort label-9
SELECT ALL - - COUNT ( * ) * - 92 AS col1, NULLIF ( ( COUNT ( * ) ), 16 )
----
-92
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT - 32 - + 27 * - SUM( CASE + CAST( NULL AS SIGNED ) WHEN - - 78 / + 90 + 4 THEN + - 95 WHEN + 12 THEN + 84 WHEN - 62 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT - 32 - + 27 * - SUM ( CASE + CAST ( NULL AS INTEGER ) WHEN - - 78 / + 90 + 4 THEN + - 95 WHEN + 12 THEN + 84 WHEN - 62 THEN NULL END ) AS col0
----
NULL

query II rowsort
SELECT 41 * - - 30 AS col0, 59 + - 93 AS col1
----
1230
-34

query I rowsort
SELECT - ( - 39 ) * + + 49
----
1911

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

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT DISTINCT + SUM( ALL - - 16 ) + + - COALESCE ( - 45, - 64 ) + + 40 + + + 55
----
156

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT + SUM ( ALL - - 16 ) + + - COALESCE ( - 45, - 64 ) + + 40 + + + 55
----
156

query I rowsort
SELECT + ( 58 ) * 3 AS col1
----
174

onlyif mysql # aggregate syntax: 
query II rowsort label-16
SELECT ALL + COUNT( * ) + - + COUNT( * ) AS col0, + 92 * + - 29 col0
----
0
-2668

skipif mysql # not compatible
query II rowsort label-16
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) AS col0, + 92 * + - 29 col0
----
0
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT DISTINCT + ( - COUNT( * ) ) + - 86 + 38 - + - NULLIF ( + 62, + 2 * + + 89 + - 93 - - COALESCE ( - - 66, + 96, ( - - ( + 28 ) ) * - + 12 * - 93 + + 6 - - 70 ) / + COUNT( 82 * - 54 ) ) * ( 99 ) * - 73 AS col1
----
-448123

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT + ( - COUNT ( * ) ) + - 86 + 38 - + - NULLIF ( + 62, + 2 * + + 89 + - 93 - - COALESCE ( - - 66, + 96, ( - - ( + 28 ) ) * - + 12 * - 93 + + 6 - - 70 ) / + COUNT ( 82 * - 54 ) ) * ( 99 ) * - 73 AS col1
----
-448123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-18
SELECT DISTINCT + 6 + MAX( + 65 ) + + COUNT( * ) DIV - + CAST( ( - 16 ) AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT + 6 + MAX ( + 65 ) + + COUNT ( * ) / - + CAST ( ( - 16 ) AS INTEGER ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT ALL + MIN( DISTINCT - + 40 ) + - 95
----
-135

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL + MIN ( DISTINCT - + 40 ) + - 95
----
-135

onlyif mysql # aggregate syntax: 
query II rowsort label-20
SELECT - 57 * - 69 AS col0, SUM( ALL 74 ) + + + 80
----
3933
154

skipif mysql # not compatible
query II rowsort label-20
SELECT - 57 * - 69 AS col0, SUM ( ALL 74 ) + + + 80
----
3933
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-21
SELECT ALL 27 + + + COUNT( - 44 ) + - 45 + COUNT( * ) DIV - + 97 + 39 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-21
SELECT ALL 27 + + + COUNT ( - 44 ) + - 45 + COUNT ( * ) / - + 97 + 39 AS col2
----
22

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

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

query I rowsort
SELECT ALL + 23 + - 8 * + 31 + 20 AS col1
----
-205

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT COALESCE ( - 92, + 7 + - COUNT( * ), - - 71 * - 38 * 39 * - 36 ) * - 51 + + 11
----
4703

skipif mysql # not compatible
query I rowsort label-25
SELECT COALESCE ( - 92, + 7 + - COUNT ( * ), - - 71 * - 38 * 39 * - 36 ) * - 51 + + 11
----
4703

query I rowsort
SELECT ALL - 25 * + - ( + + 68 ) * 70
----
119000

onlyif mysql # aggregate syntax: 
query II rowsort label-27
SELECT 89 * - COUNT( * ) + - 57 * - 48 + + + 27 AS col2, - 48 AS col0
----
2674
-48

skipif mysql # not compatible
query II rowsort label-27
SELECT 89 * - COUNT ( * ) + - 57 * - 48 + + + 27 AS col2, - 48 AS col0
----
2674
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT CASE WHEN NOT 55 IS NULL THEN - 12 END DIV 77 + - + COALESCE ( 60, - - 77 DIV + - 91 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-28
SELECT CASE WHEN NOT 55 IS NULL THEN - 12 END / 77 + - + COALESCE ( 60, - - 77 / + - 91 ) AS col0
----
-60

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

query I rowsort
SELECT 63 * 89 AS col2
----
5607

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-31
SELECT ALL - ( + CAST( 97 AS SIGNED ) ) col2, 35 AS col1
----
-97
35

skipif mysql # not compatible
query II rowsort label-31
SELECT ALL - ( + CAST ( 97 AS INTEGER ) ) col2, 35 AS col1
----
-97
35

query I rowsort
SELECT 72 + - + 42
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-33
SELECT 88 * - 87 * + - ( NULLIF ( 7, + + 8 * - - AVG ( - - 67 ) * + 14 DIV 29 - ( - + 55 ) DIV 22 + + COUNT( * ) * - MIN( 23 ) ) ) DIV - 1 + 12 + + 90 * + - 59 * 25
----
-186330

skipif mysql # not compatible
query I rowsort label-33
SELECT 88 * - 87 * + - ( NULLIF ( 7, + + 8 * - - AVG ( - - 67 ) * + 14 / 29 - ( - + 55 ) / 22 + + COUNT ( * ) * - MIN ( 23 ) ) ) / - 1 + 12 + + 90 * + - 59 * 25
----
-186330

query I rowsort
SELECT ( - 22 ) * - - NULLIF ( - 18, - 98 ) + + + ( + 17 )
----
413

query II rowsort
SELECT 27 - - - 34 + 33 + + - 34 - - - 48, 59 AS col2
----
-56
59

query I rowsort
SELECT ALL + 64 * 2 AS col2
----
128

onlyif mysql # DIV for integer division: 
query II rowsort label-37
SELECT COALESCE ( + 14, 74 - + 19 DIV + 44 + + + 47, + 22 * 3 ) * - ( 1 ) AS col2, - 40 + + 69
----
-14
29

skipif mysql # not compatible
query II rowsort label-37
SELECT COALESCE ( + 14, 74 - + 19 / + 44 + + + 47, + 22 * 3 ) * - ( 1 ) AS col2, - 40 + + 69
----
-14
29

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT DISTINCT + COALESCE ( - 97, - 29 + 91, - 22 * COUNT( * ) ) * + 17
----
-1649

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT + COALESCE ( - 97, - 29 + 91, - 22 * COUNT ( * ) ) * + 17
----
-1649

query I rowsort
SELECT DISTINCT - COALESCE ( + 67, - - 46 )
----
-67

query I rowsort
SELECT - 30 + + - 95
----
-125

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT + 39 DIV 36 col1
----
1

skipif mysql # not compatible
query I rowsort label-41
SELECT + 39 / 36 col1
----
1

query II rowsort
SELECT ALL - 29 + 73 * + 39 AS col1, 21
----
2818
21

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

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL COUNT ( * ) / - ( ( + - 16 ) )
----
0

query I rowsort
SELECT - 5 + - 55 + + 98 + - 41 + - ( 15 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT 77 * + - MAX( ALL - 24 ) AS col0
----
1848

skipif mysql # not compatible
query I rowsort label-45
SELECT 77 * + - MAX ( ALL - 24 ) AS col0
----
1848

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-46
SELECT DISTINCT - 46 + - CAST( 23 AS SIGNED ) * 96 DIV - + 66
----
-13

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT - 46 + - CAST ( 23 AS INTEGER ) * 96 / - + 66
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-47
SELECT + 28 + - + 65 + MIN( + 47 ) * - 74 + + 96 * - 10 DIV - COUNT( * )
----
-2555

skipif mysql # not compatible
query I rowsort label-47
SELECT + 28 + - + 65 + MIN ( + 47 ) * - 74 + + 96 * - 10 / - COUNT ( * )
----
-2555

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-49
SELECT + CASE - + COUNT( * ) WHEN - - COUNT( * ) THEN + 49 WHEN + COALESCE ( 99, + CAST( 64 AS SIGNED ) / + + ( - 63 ) ) THEN + - 79 END + - + NULLIF ( CASE - - 99 WHEN + 82 THEN - ( + - ( + AVG ( - CAST( NULL AS DECIMAL ) ) ) ) END, 99 * 37 ) / 11
----
NULL

skipif mysql # not compatible
query I rowsort label-49
SELECT + CASE - + COUNT ( * ) WHEN - - COUNT ( * ) THEN + 49 WHEN + COALESCE ( 99, + CAST ( 64 AS INTEGER ) / + + ( - 63 ) ) THEN + - 79 END + - + NULLIF ( CASE - - 99 WHEN + 82 THEN - ( + - ( + AVG ( - CAST ( NULL AS REAL ) ) ) ) END, 99 * 37 ) / 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT + 8 + + - NULLIF ( - 3, - MIN( ALL + + 78 ) + - - 89 + + COUNT( * ) * 95 * 86 )
----
11

skipif mysql # not compatible
query I rowsort label-50
SELECT + 8 + + - NULLIF ( - 3, - MIN ( ALL + + 78 ) + - - 89 + + COUNT ( * ) * 95 * 86 )
----
11

query I rowsort
SELECT - 77 + 6 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT - 91 + + - MIN( DISTINCT ( + 51 ) ) AS col0
----
-142

skipif mysql # not compatible
query I rowsort label-52
SELECT - 91 + + - MIN ( DISTINCT ( + 51 ) ) AS col0
----
-142

query II rowsort
SELECT 84, - 88 * + - 6 col2
----
84
528

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-54
SELECT - MIN( + ( - + 64 ) ) + - COUNT( * ) * + CASE 41 WHEN - COUNT( * ) THEN + 44 + + 73 ELSE NULL END / CAST( + 3 AS DECIMAL ) + + NULLIF ( - - 52, + + COUNT( * ) ) + + - COUNT( - + 19 ) + - 77 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT - MIN ( + ( - + 64 ) ) + - COUNT ( * ) * + CASE 41 WHEN - COUNT ( * ) THEN + 44 + + 73 ELSE NULL END / CAST ( + 3 AS REAL ) + + NULLIF ( - - 52, + + COUNT ( * ) ) + + - COUNT ( - + 19 ) + - 77 * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-55
SELECT ALL + MIN( DISTINCT + + 11 ) DIV + 78 + - + 28 + - 97
----
-125

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL + MIN ( DISTINCT + + 11 ) / + 78 + - + 28 + - 97
----
-125

query I rowsort
SELECT + 55 * - CASE 63 WHEN 72 / - 66 THEN + 17 WHEN 82 + 63 + 90 THEN 4 ELSE NULL END + + - 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ALL + SUM( DISTINCT 45 )
----
45

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL + SUM ( DISTINCT 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT - 33 + + + SUM( ( 28 ) ) * 88 AS col0
----
2431

skipif mysql # not compatible
query I rowsort label-58
SELECT - 33 + + + SUM ( ( 28 ) ) * 88 AS col0
----
2431

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT + 45 DIV 19 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-59
SELECT + 45 / 19 AS col0
----
2

query I rowsort
SELECT DISTINCT - 49 * 33 AS col1
----
-1617

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-61
SELECT ALL + COUNT( * ), - 69 + + - 51 - - COUNT( * ) * + - ( - 17 ) DIV - + 31 - - - 93 col2
----
1
-213

skipif mysql # not compatible
query II rowsort label-61
SELECT ALL + COUNT ( * ), - 69 + + - 51 - - COUNT ( * ) * + - ( - 17 ) / - + 31 - - - 93 col2
----
1
-213

query I rowsort
SELECT COALESCE ( - - 72, - 26, + 98 )
----
72

query I rowsort
SELECT 59 * 73 + - 91 AS col1
----
4216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-64
SELECT - 15 * - - CAST( NULL AS SIGNED ) * - - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-64
SELECT - 15 * - - CAST ( NULL AS INTEGER ) * - - 44 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-65
SELECT - CAST( + 7 AS SIGNED ) * - 59 col0
----
413

skipif mysql # not compatible
query I rowsort label-65
SELECT - CAST ( + 7 AS INTEGER ) * - 59 col0
----
413

query I rowsort
SELECT DISTINCT + ( - 45 ) AS col2
----
-45

query II rowsort
SELECT + 29, 98 - 83 AS col2
----
29
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT + 43 * + 46 * 51 + - 61 + SUM( + 87 ) + + + 53
----
100957

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT + 43 * + 46 * 51 + - 61 + SUM ( + 87 ) + + + 53
----
100957

query II rowsort
SELECT 4 AS col1, 0 AS col0
----
4
0

query I rowsort
SELECT ALL - + COALESCE ( + CASE + + 66 WHEN - + 16 * + - 13 / - 35 THEN NULL WHEN - 11 THEN NULL ELSE 43 + + 30 END, 24, + + 10 - + 99 ) * - 61 + 91 + - + 9 * + - 32 + - 26
----
4806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-72
SELECT ALL - - CASE CAST( + + NULLIF ( 72, - COUNT( * ) * - 54 * CASE + 14 WHEN + - 60 THEN + - 30 WHEN - CASE + 3 WHEN 75 / + - 18 THEN 22 ELSE 87 END / 45 + + 34 + + 46 THEN 88 + - - COALESCE ( - 48, ( + 38 ) - 34, 77 ) - 16 * + 66 ELSE + 30 END ) AS SIGNED ) WHEN 31 + 19 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + 10 END * 90 + - 29
----
871

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL - - CASE CAST ( + + NULLIF ( 72, - COUNT ( * ) * - 54 * CASE + 14 WHEN + - 60 THEN + - 30 WHEN - CASE + 3 WHEN 75 / + - 18 THEN 22 ELSE 87 END / 45 + + 34 + + 46 THEN 88 + - - COALESCE ( - 48, ( + 38 ) - 34, 77 ) - 16 * + 66 ELSE + 30 END ) AS INTEGER ) WHEN 31 + 19 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + 10 END * 90 + - 29
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT - SUM( ALL + 2 ) * 32 + - 50
----
-114

skipif mysql # not compatible
query I rowsort label-73
SELECT - SUM ( ALL + 2 ) * 32 + - 50
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + ( 77 ) + - MIN( DISTINCT ( 42 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-74
SELECT + ( 77 ) + - MIN ( DISTINCT ( 42 ) ) AS col0
----
35

query I rowsort
SELECT DISTINCT + - 36 + - - 78 AS col0
----
42

query I rowsort
SELECT DISTINCT - 50 + - ( - 9 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT ALL - COUNT( * ) + - - 31 + - COUNT( DISTINCT - + 69 ) * + 77
----
-47

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL - COUNT ( * ) + - - 31 + - COUNT ( DISTINCT - + 69 ) * + 77
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-78
SELECT ALL + 17 + + - ( 40 ) - - 80 - - 24 * + 49 * - + COUNT( * ) + + MAX( + 98 ) + + 38 * COUNT( * ) DIV - + 47 * + 23 + - COALESCE ( + - 52, - + 27 * - 96 ) AS col0
----
-969

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL + 17 + + - ( 40 ) - - 80 - - 24 * + 49 * - + COUNT ( * ) + + MAX ( + 98 ) + + 38 * COUNT ( * ) / - + 47 * + 23 + - COALESCE ( + - 52, - + 27 * - 96 ) AS col0
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT DISTINCT - 6 + + 89 * COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT - 6 + + 89 * COUNT ( * ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - 78 * + - MAX( - 57 )
----
-4446

skipif mysql # not compatible
query I rowsort label-80
SELECT - 78 * + - MAX ( - 57 )
----
-4446

query II rowsort
SELECT 90, 77 AS col1
----
90
77

query I rowsort
SELECT DISTINCT + 23 - 25 + - 88 * + 66 + + + 87
----
-5723

query I rowsort
SELECT - + 18 * + 62
----
-1116

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

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

query II rowsort
SELECT - 13 AS col2, 96 * - 93 + 82 + + + 40
----
-13
-8806

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT DISTINCT - + ( - 32 ) - + - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT - + ( - 32 ) - + - COUNT ( * ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-87
SELECT ALL 75 * ( - COUNT( * ) ) AS col0, - MAX( DISTINCT ( - 76 ) ) + 23 + + - 50 * + 8 + 4 * + COUNT( * ) * + 82
----
-75
27

skipif mysql # not compatible
query II rowsort label-87
SELECT ALL 75 * ( - COUNT ( * ) ) AS col0, - MAX ( DISTINCT ( - 76 ) ) + 23 + + - 50 * + 8 + 4 * + COUNT ( * ) * + 82
----
-75
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-88
SELECT + COUNT( ALL - 27 ) DIV - 42
----
0

skipif mysql # not compatible
query I rowsort label-88
SELECT + COUNT ( ALL - 27 ) / - 42
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT ALL 87 DIV + + 7 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL 87 / + + 7 AS col1
----
12

query I rowsort
SELECT DISTINCT 80 * - + 82
----
-6560

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT + COUNT( * ) + + 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-91
SELECT + COUNT ( * ) + + 95 AS col0
----
96

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

query I rowsort
SELECT ALL 15 * - 12 AS col2
----
-180

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-97
SELECT ( - - 58 ) DIV + 65 + 26 + - - COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-97
SELECT ( - - 58 ) / + 65 + 26 + - - COUNT ( * ) AS col1
----
27

query I rowsort
SELECT ALL 79 * + 55 AS col1
----
4345

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL + SUM( DISTINCT 97 )
----
97

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL + SUM ( DISTINCT 97 )
----
97

query I rowsort
SELECT + 67 - - 58 + 78
----
203

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-101
SELECT DISTINCT 63 DIV + 70 * - - ( COUNT( * ) ) * 97 * + 54 + + 94 + 28 + + - ( - 50 ) * - + ( + 4 ) AS col0, - 60 * + + 43 AS col1
----
-78
-2580

skipif mysql # not compatible
query II rowsort label-101
SELECT DISTINCT 63 / + 70 * - - ( COUNT ( * ) ) * 97 * + 54 + + 94 + 28 + + - ( - 50 ) * - + ( + 4 ) AS col0, - 60 * + + 43 AS col1
----
-78
-2580

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT 64 * + - 60 + MAX( ALL + 57 ) col0
----
-3783

skipif mysql # not compatible
query I rowsort label-102
SELECT 64 * + - 60 + MAX ( ALL + 57 ) col0
----
-3783

query I rowsort
SELECT - 61 * - - 19 * + 36
----
-41724

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-104
SELECT DISTINCT + 99 DIV + - COALESCE ( 59, + 25, - + 8 DIV - 80 ) + - 83 + + 46 + + - MAX( DISTINCT ( - 4 ) ) DIV - SUM( 84 ) * + CAST( + + 58 AS SIGNED ) AS col0, - 4 AS col2
----
-38
-4

skipif mysql # not compatible
query II rowsort label-104
SELECT DISTINCT + 99 / + - COALESCE ( 59, + 25, - + 8 / - 80 ) + - 83 + + 46 + + - MAX ( DISTINCT ( - 4 ) ) / - SUM ( 84 ) * + CAST ( + + 58 AS INTEGER ) AS col0, - 4 AS col2
----
-38
-4

query I rowsort
SELECT ALL - 16 * 13 + - 40
----
-248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-106
SELECT + - 7 DIV 21 * + ( + COUNT( * ) ) + - COUNT( * ) DIV + CAST( 36 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-106
SELECT + - 7 / 21 * + ( + COUNT ( * ) ) + - COUNT ( * ) / + CAST ( 36 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT - MAX( ALL ( - 16 ) ) * - - NULLIF ( - 11, 77 - COUNT( * ) * - - 38 ) + ( + ( 4 ) ) AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-107
SELECT - MAX ( ALL ( - 16 ) ) * - - NULLIF ( - 11, 77 - COUNT ( * ) * - - 38 ) + ( + ( 4 ) ) AS col2
----
-172

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

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

query I rowsort
SELECT DISTINCT 52 * 9 + - 25 AS col0
----
443

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL 21 * - COUNT( * ) + + 20 + 41 * + 92 AS col2
----
3771

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL 21 * - COUNT ( * ) + + 20 + 41 * + 92 AS col2
----
3771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-111
SELECT SUM( ALL - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-111
SELECT SUM ( ALL - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT DISTINCT CASE + COUNT( * ) WHEN + - 20 THEN NULL WHEN + 74 THEN - 49 * - - 67 * 12 * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT CASE + COUNT ( * ) WHEN + - 20 THEN NULL WHEN + 74 THEN - 49 * - - 67 * 12 * - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL + + 23 * + 2 + + - 84 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT NULLIF ( + - COUNT( * ), - 15 / + 78 + + 76 + - 82 ) * 66 * - - 86 * 4 + + 14
----
-22690

skipif mysql # not compatible
query I rowsort label-114
SELECT NULLIF ( + - COUNT ( * ), - 15 / + 78 + + 76 + - 82 ) * 66 * - - 86 * 4 + + 14
----
-22690

query II rowsort
SELECT + 90 + 41, + 61 AS col1
----
131
61

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT SUM( DISTINCT + + 7 ) * - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-116
SELECT SUM ( DISTINCT + + 7 ) * - COUNT ( * )
----
-7

query II rowsort
SELECT ALL - 61 * + + 19, + 58 AS col1
----
-1159
58

query I rowsort
SELECT ALL - 45 * 65 col2
----
-2925

query I rowsort
SELECT DISTINCT - - 25 * 3 * 68 + + 58
----
5158

query I rowsort
SELECT - 26 + + ( 95 )
----
69

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

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL - 0 * + 54 * + COUNT ( * ) AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-123
SELECT ALL 93 AS col0, - 22 - - 53 - - - 24 * COUNT( * )
----
93
7

skipif mysql # not compatible
query II rowsort label-123
SELECT ALL 93 AS col0, - 22 - - 53 - - - 24 * COUNT ( * )
----
93
7

query II rowsort
SELECT ALL 95, + ( - + 3 ) AS col2
----
95
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT COUNT( * ) + + + 51 col0
----
52

skipif mysql # not compatible
query I rowsort label-125
SELECT COUNT ( * ) + + + 51 col0
----
52

query I rowsort
SELECT 88 * 40
----
3520

query I rowsort
SELECT 92 * + + 66 AS col2
----
6072

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT ALL COUNT( DISTINCT 95 ) * 39
----
39

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL COUNT ( DISTINCT 95 ) * 39
----
39

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

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + COUNT ( * ) / + 74 AS col2
----
0

query I rowsort
SELECT ALL 62 + 64 - + 4
----
122

query I rowsort
SELECT ALL 79 * + 7 AS col1
----
553

query I rowsort
SELECT DISTINCT 91 + + 12 AS col1
----
103

query I rowsort
SELECT 27 * - 38 AS col2
----
-1026

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

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT MIN( ALL - 36 ) * 88 - - + 34
----
-3134

skipif mysql # not compatible
query I rowsort label-135
SELECT MIN ( ALL - 36 ) * 88 - - + 34
----
-3134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT - 89 * + - 53 + COUNT( * )
----
4718

skipif mysql # not compatible
query I rowsort label-137
SELECT - 89 * + - 53 + COUNT ( * )
----
4718

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT ALL + 92 + + 2 + COALESCE ( + 44, 33 ) + + ( - - NULLIF ( - COUNT( * ), 8 ) ) + ( - 8 ) AS col0, 37 AS col1
----
129
37

skipif mysql # not compatible
query II rowsort label-138
SELECT ALL + 92 + + 2 + COALESCE ( + 44, 33 ) + + ( - - NULLIF ( - COUNT ( * ), 8 ) ) + ( - 8 ) AS col0, 37 AS col1
----
129
37

query I rowsort
SELECT ALL - 17 + + 51
----
34

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT DISTINCT + 89 - - 25 * + 30 - - - MIN( DISTINCT - 21 ) AS col1
----
860

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT + 89 - - 25 * + 30 - - - MIN ( DISTINCT - 21 ) AS col1
----
860

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

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

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

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

query II rowsort
SELECT 82 AS col1, + 24
----
82
24

query I rowsort
SELECT 31 + - - ( - + 16 ) AS col2
----
15

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

skipif mysql # not compatible
query I rowsort label-148
SELECT + 48 / - 69 + - - COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT 66 * + - 46 + 37 AS col0
----
-2999

query I rowsort
SELECT ALL 71 * + 60
----
4260

onlyif mysql # DIV for integer division: 
query II rowsort label-151
SELECT - 15 DIV 73 * 31 DIV 39 AS col1, + 10
----
0
10

skipif mysql # not compatible
query II rowsort label-151
SELECT - 15 / 73 * 31 / 39 AS col1, + 10
----
0
10

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT ALL + - 27 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL + - 27 / - 74
----
0

query I rowsort
SELECT - 24 * 52 AS col0
----
-1248

query I rowsort
SELECT 59 * - - 43
----
2537

query I rowsort
SELECT - CASE 83 WHEN - + ( + 36 ) * + 45 * - 12 THEN + 10 + AVG ( DISTINCT - 79 ) * + 99 WHEN - + 34 * + + 99 - - + 27 THEN + NULLIF ( - + 40, - 7 * 55 - ( 51 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT MIN( 98 ) - 3
----
95

skipif mysql # not compatible
query I rowsort label-156
SELECT MIN ( 98 ) - 3
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-157
SELECT - SUM( + - 93 ), + 60 + - COUNT( * ) AS col1
----
93
59

skipif mysql # not compatible
query II rowsort label-157
SELECT - SUM ( + - 93 ), + 60 + - COUNT ( * ) AS col1
----
93
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-158
SELECT 82 * - - COALESCE ( - - 81, - 94 * + MAX( COALESCE ( 31, + 34 ) ) + 59 + 34 DIV + CASE + COUNT( * ) WHEN 77 THEN NULL WHEN - + ( + 79 ) THEN + - COUNT( * ) ELSE 96 END - - 3 * + COUNT( * ) + + MAX( + 73 ) )
----
6642

skipif mysql # not compatible
query I rowsort label-158
SELECT 82 * - - COALESCE ( - - 81, - 94 * + MAX ( COALESCE ( 31, + 34 ) ) + 59 + 34 / + CASE + COUNT ( * ) WHEN 77 THEN NULL WHEN - + ( + 79 ) THEN + - COUNT ( * ) ELSE 96 END - - 3 * + COUNT ( * ) + + MAX ( + 73 ) )
----
6642

query I rowsort
SELECT DISTINCT + 18 + 9 AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-160
SELECT DISTINCT + COUNT( * ) * + 99, + 32 + - 85 + + - COUNT( * ) * - ( - ( - COUNT( * ) ) ) AS col2
----
99
-52

skipif mysql # not compatible
query II rowsort label-160
SELECT DISTINCT + COUNT ( * ) * + 99, + 32 + - 85 + + - COUNT ( * ) * - ( - ( - COUNT ( * ) ) ) AS col2
----
99
-52

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

query I rowsort
SELECT ALL + 36 + - 67
----
-31

query I rowsort
SELECT ALL 38 + - + 47 + 98 * ( + 58 )
----
5675

query I rowsort
SELECT 91 + - ( + 80 )
----
11

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

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

query II rowsort
SELECT DISTINCT - ( - 82 ) AS col0, 4 + + 67 AS col2
----
82
71

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT 1 * + - 2 * - + 42 + + COUNT( DISTINCT 23 )
----
85

skipif mysql # not compatible
query I rowsort label-167
SELECT 1 * + - 2 * - + 42 + + COUNT ( DISTINCT 23 )
----
85

query I rowsort
SELECT 42 - - + ( - 85 ) - - 0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-169
SELECT ALL - CAST( - - 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL - CAST ( - - 31 AS INTEGER )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT CASE + + 83 WHEN - SUM( - 6 ) * + - 56 * - 31 * + 55 THEN + MAX( ALL + 12 ) WHEN 78 THEN + 7 WHEN - 27 THEN NULL ELSE NULL END * - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT CASE + + 83 WHEN - SUM ( - 6 ) * + - 56 * - 31 * + 55 THEN + MAX ( ALL + 12 ) WHEN 78 THEN + 7 WHEN - 27 THEN NULL ELSE NULL END * - - 10
----
NULL

query I rowsort
SELECT 26 + 77 * - - CASE - + 36 WHEN - - 53 + + + 1 THEN NULL ELSE + + 0 END * ( + 29 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT DISTINCT 31 * - COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT 31 * - COUNT ( * ) AS col1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT ALL + - 88 DIV - 48
----
1

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL + - 88 / - 48
----
1

query II rowsort
SELECT DISTINCT - + ( - 89 ) col0, 51 col1
----
89
51

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT COUNT( 31 ) * - 66 * - - 8 + + 63
----
-465

skipif mysql # not compatible
query I rowsort label-175
SELECT COUNT ( 31 ) * - 66 * - - 8 + + 63
----
-465

query II rowsort
SELECT ALL - + ( 14 ) * + 19 - - - 48 AS col2, + 38 AS col0
----
-314
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-177
SELECT - + SUM( 73 ) DIV + 33
----
-2

skipif mysql # not compatible
query I rowsort label-177
SELECT - + SUM ( 73 ) / + 33
----
-2

query I rowsort
SELECT + NULLIF ( + 34, - + NULLIF ( 53, 31 ) ) AS col2
----
34

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

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

query I rowsort
SELECT + + 0 * - 65
----
0

query I rowsort
SELECT + - 25 + 7 * + 16 AS col2
----
87

query I rowsort
SELECT DISTINCT + 67 * - NULLIF ( + 91, + - 94 ) AS col1
----
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-183
SELECT ALL + - NULLIF ( 91, + CAST( NULL AS SIGNED ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL + - NULLIF ( 91, + CAST ( NULL AS INTEGER ) ) AS col1
----
-91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT DISTINCT + MAX( - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT + MAX ( - 77 ) AS col2
----
-77

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

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT + + COUNT ( * ) * + - 15 AS col0
----
-15

query II rowsort
SELECT + - 78 * + - 92 AS col1, - 50
----
7176
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT + - 73 * - + MIN( + + 17 )
----
1241

skipif mysql # not compatible
query I rowsort label-188
SELECT + - 73 * - + MIN ( + + 17 )
----
1241

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-190
SELECT ALL + 93 + 34 + - COUNT( * ) * - 10 col1, 78
----
137
78

skipif mysql # not compatible
query II rowsort label-190
SELECT ALL + 93 + 34 + - COUNT ( * ) * - 10 col1, 78
----
137
78

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT - ( - - 96 ) * - - COUNT( * ) * + 19 * - 2 + + MAX( + 92 )
----
3740

skipif mysql # not compatible
query I rowsort label-191
SELECT - ( - - 96 ) * - - COUNT ( * ) * + 19 * - 2 + + MAX ( + 92 )
----
3740

query I rowsort
SELECT - 28 - - + 30 + 38
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-193
SELECT + CAST( 39 AS SIGNED ) + 69 AS col1
----
108

skipif mysql # not compatible
query I rowsort label-193
SELECT + CAST ( 39 AS INTEGER ) + 69 AS col1
----
108

query I rowsort
SELECT - 4 * 79 * - 16 AS col2
----
5056

query I rowsort
SELECT ALL COALESCE ( + 9, + + 78 ) * - - 31
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL - NULLIF ( + 65, - + COUNT( * ) ) + - 68 AS col2
----
-133

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL - NULLIF ( + 65, - + COUNT ( * ) ) + - 68 AS col2
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT DISTINCT SUM( + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT SUM ( + 68 ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-198
SELECT DISTINCT 15 + - 69 - + CAST( + - 38 AS SIGNED ) + 42 - 76 + + 99 + - 68 DIV - COALESCE ( + 35, - - MIN( - 17 ) ) * COUNT( * ) * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT 15 + - 69 - + CAST ( + - 38 AS INTEGER ) + 42 - 76 + + 99 + - 68 / - COALESCE ( + 35, - - MIN ( - 17 ) ) * COUNT ( * ) * COUNT ( * )
----
50

query I rowsort
SELECT - 44 + ( + - 53 ) * 78 + - 12 - - 46 AS col1
----
-4144

query I rowsort
SELECT - COALESCE ( - - 60, + 36 )
----
-60

query I rowsort
SELECT - 21 + + - 78 + + ( - 85 ) * - + 53 - - 85
----
4491

query I rowsort
SELECT - 38 * - - 85 * + 85 col0
----
-274550

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

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL + 5 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-204
SELECT - 21, COUNT( * ) DIV + 51 + + COUNT( * ) + 44 + - 87 AS col2
----
-21
-42

skipif mysql # not compatible
query II rowsort label-204
SELECT - 21, COUNT ( * ) / + 51 + + COUNT ( * ) + 44 + - 87 AS col2
----
-21
-42

query I rowsort
SELECT - 78 * 33 col0
----
-2574

query I rowsort
SELECT DISTINCT + 61 * - - 82 AS col0
----
5002

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-209
SELECT ALL - COUNT( * ) DIV 57 + 22 - MIN( ALL 87 ) - - 80 - + 14
----
1

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - COUNT ( * ) / 57 + 22 - MIN ( ALL 87 ) - - 80 - + 14
----
1

query I rowsort
SELECT - - 84 * - 66
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT - 76 * - MIN( DISTINCT - 52 ) * - 0 * - + 1
----
0

skipif mysql # not compatible
query I rowsort label-211
SELECT - 76 * - MIN ( DISTINCT - 52 ) * - 0 * - + 1
----
0

query I rowsort
SELECT - 43 * + 38
----
-1634

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-213
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) AS col2, 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-213
SELECT DISTINCT + + CAST ( NULL AS REAL ) AS col2, 72
----
NULL
72

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT ALL 0 DIV + - 47
----
0

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL 0 / + - 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT - - 68 DIV + ( 26 ) + - 52 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-215
SELECT - - 68 / + ( 26 ) + - 52 AS col0
----
-50

query I rowsort
SELECT ALL + 57 * 40
----
2280

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT DISTINCT - + 18 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - + 18 / 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-218
SELECT ALL - 82 * 45 DIV 25 DIV - + 45 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - 82 * 45 / 25 / - + 45 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT + + MIN( ALL - 64 ) * - + COALESCE ( 88, + 3 ) + + - 6 AS col0
----
5626

skipif mysql # not compatible
query I rowsort label-219
SELECT + + MIN ( ALL - 64 ) * - + COALESCE ( 88, + 3 ) + + - 6 AS col0
----
5626

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT DISTINCT COUNT( * ) * - 0 / + ( + CASE + - 88 WHEN - 80 / - 57 + 52 * + 58 * + + COUNT( * ) + + + 53 + 32 * + 14 THEN - 91 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT DISTINCT COUNT ( * ) * - 0 / + ( + CASE + - 88 WHEN - 80 / - 57 + 52 * + 58 * + + COUNT ( * ) + + + 53 + 32 * + 14 THEN - 91 END )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-222
SELECT + COUNT ( * ) / 24 + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT + 19 * 84 * + MAX( + 94 ) + - COALESCE ( - - 34, + - 16 ) AS col2
----
149990

skipif mysql # not compatible
query I rowsort label-223
SELECT + 19 * 84 * + MAX ( + 94 ) + - COALESCE ( - - 34, + - 16 ) AS col2
----
149990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-224
SELECT ALL 55 * 33 + + CASE + COUNT( * ) WHEN - 85 THEN NULL WHEN - 50 THEN - 36 * + 80 ELSE NULL END AS col2, ( - - CAST( + + ( + MAX( ALL 99 ) ) AS SIGNED ) ) * 15
----
NULL
1485

skipif mysql # not compatible
query II rowsort label-224
SELECT ALL 55 * 33 + + CASE + COUNT ( * ) WHEN - 85 THEN NULL WHEN - 50 THEN - 36 * + 80 ELSE NULL END AS col2, ( - - CAST ( + + ( + MAX ( ALL 99 ) ) AS INTEGER ) ) * 15
----
NULL
1485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-225
SELECT DISTINCT ( CAST( + - 53 AS SIGNED ) ) * + 40 + + COUNT( * ) + + + 14 * - COUNT( * ) DIV + + ( COUNT( * ) )
----
-2133

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT ( CAST ( + - 53 AS INTEGER ) ) * + 40 + + COUNT ( * ) + + + 14 * - COUNT ( * ) / + + ( COUNT ( * ) )
----
-2133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-226
SELECT + MAX( DISTINCT + ( + 87 ) ) * + 88 + + 67 + CAST( + + 46 AS SIGNED ) + + 60, 4 AS col0
----
7829
4

skipif mysql # not compatible
query II rowsort label-226
SELECT + MAX ( DISTINCT + ( + 87 ) ) * + 88 + + 67 + CAST ( + + 46 AS INTEGER ) + + 60, 4 AS col0
----
7829
4

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT DISTINCT - COUNT( * ) * 13 + - 65
----
-78

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT - COUNT ( * ) * 13 + - 65
----
-78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-229
SELECT ALL MIN( + - 77 ) * - 10 * 81 + + - CASE COALESCE ( - ( - 45 ), - 13, 64 + + 45, + + 8 ) WHEN NULLIF ( - - CAST( 29 AS SIGNED ), - + 94 - + 64 ) / + AVG ( - + 15 ) + + ( CASE + - ( - - 29 ) WHEN + - 10 + 39 THEN + COALESCE ( + 74, + 73, COUNT( * ) ) - + SUM( ALL 16 ) ELSE - 2 END ) THEN NULL ELSE 6 END
----
62364

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL MIN ( + - 77 ) * - 10 * 81 + + - CASE COALESCE ( - ( - 45 ), - 13, 64 + + 45, + + 8 ) WHEN NULLIF ( - - CAST ( 29 AS INTEGER ), - + 94 - + 64 ) / + AVG ( - + 15 ) + + ( CASE + - ( - - 29 ) WHEN + - 10 + 39 THEN + COALESCE ( + 74, + 73, COUNT ( * ) ) - + SUM ( ALL 16 ) ELSE - 2 END ) THEN NULL ELSE 6 END
----
62364

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT ALL + COUNT( * ) * - 55 + + + COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + COUNT ( * ) * - 55 + + + COUNT ( * ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT MIN( 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-231
SELECT MIN ( 16 ) AS col2
----
16

query I rowsort
SELECT ALL 39 * + - 55 AS col0
----
-2145

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

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

query I rowsort
SELECT + ( - 58 ) - + 43 AS col2
----
-101

query II rowsort
SELECT + 9 / COALESCE ( ( 77 ), + 82 ) * - + CASE - + CASE + 79 WHEN - - 85 + + ( + - 33 ) THEN - 85 END WHEN + COALESCE ( 64, - - 9 ) THEN + + 79 END col2, 11
----
NULL
11

query II rowsort
SELECT 6 AS col1, 29 + + + ( + 43 ) AS col1
----
6
72

query I rowsort
SELECT ALL ( + 27 ) - 53 AS col2
----
-26

query I rowsort
SELECT ALL 55 * - ( - 10 )
----
550

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-240
SELECT 87 AS col1, + SUM( - + 40 )
----
87
-40

skipif mysql # not compatible
query II rowsort label-240
SELECT 87 AS col1, + SUM ( - + 40 )
----
87
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-241
SELECT ALL CASE 46 WHEN 54 + - - 33 THEN + + 2 + 88 WHEN + COUNT( * ) + - + COUNT( * ) + + 92 THEN + ( CAST( NULL AS SIGNED ) ) WHEN + + 69 THEN + 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL CASE 46 WHEN 54 + - - 33 THEN + + 2 + 88 WHEN + COUNT ( * ) + - + COUNT ( * ) + + 92 THEN + ( CAST ( NULL AS INTEGER ) ) WHEN + + 69 THEN + 40 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-242
SELECT + MAX( DISTINCT + 11 ) - + 11 * + 16 AS col0, - CAST( NULL AS SIGNED ) * 17 AS col1
----
-165
NULL

skipif mysql # not compatible
query II rowsort label-242
SELECT + MAX ( DISTINCT + 11 ) - + 11 * + 16 AS col0, - CAST ( NULL AS INTEGER ) * 17 AS col1
----
-165
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT ALL ( COUNT( * ) ) * - 97 + + 67 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL ( COUNT ( * ) ) * - 97 + + 67 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-244
SELECT ALL - 11 DIV - + 89 AS col2, + AVG ( CASE + CAST( NULL AS SIGNED ) WHEN 73 DIV - ( - 93 ) + 38 * + 28 THEN + 24 + - 64 END ) * + + 0 AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-244
SELECT ALL - 11 / - + 89 AS col2, + AVG ( CASE + CAST ( NULL AS INTEGER ) WHEN 73 / - ( - 93 ) + 38 * + 28 THEN + 24 + - 64 END ) * + + 0 AS col2
----
0
NULL

query II rowsort
SELECT - 33 AS col2, 0 * - 79 AS col2
----
-33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT DISTINCT - MAX( + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT - MAX ( + 48 )
----
-48

query I rowsort
SELECT 16 + 32
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-248
SELECT 75 * + + NULLIF ( - CASE 99 WHEN 91 THEN + - 59 * + 74 END, - + CAST( NULL AS DECIMAL ) + - 56 ) * - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT 75 * + + NULLIF ( - CASE 99 WHEN 91 THEN + - 59 * + 74 END, - + CAST ( NULL AS REAL ) + - 56 ) * - 40 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-249
SELECT ALL - 69 DIV + CAST( - 83 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL - 69 / + CAST ( - 83 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-250
SELECT + 12 * - - 44 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-250
SELECT + 12 * - - 44 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT COUNT( * ) - 92 * 19
----
-1747

skipif mysql # not compatible
query I rowsort label-251
SELECT COUNT ( * ) - 92 * 19
----
-1747

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

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

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

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

query II rowsort
SELECT ALL - - 93 col2, 11
----
93
11

query I rowsort
SELECT + 67 + 47
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT + + 96 * 92 + + + SUM( DISTINCT + - 0 )
----
8832

skipif mysql # not compatible
query I rowsort label-256
SELECT + + 96 * 92 + + + SUM ( DISTINCT + - 0 )
----
8832

onlyif mysql # aggregate syntax: 
query II rowsort label-257
SELECT + 16 AS col0, + MAX( DISTINCT + - 16 ) AS col2
----
16
-16

skipif mysql # not compatible
query II rowsort label-257
SELECT + 16 AS col0, + MAX ( DISTINCT + - 16 ) AS col2
----
16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT ALL + COUNT( * ) + - - 70
----
71

skipif mysql # not compatible
query I rowsort label-258
SELECT ALL + COUNT ( * ) + - - 70
----
71

query II rowsort
SELECT + 16 AS col1, 28 AS col0
----
16
28

query II rowsort
SELECT + - 34 AS col2, - 31
----
-34
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL - MAX( 13 ) + - 96 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL - MAX ( 13 ) + - 96 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT ALL + COUNT( * ) + COUNT( * ) * + 52 * - - 16
----
833

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL + COUNT ( * ) + COUNT ( * ) * + 52 * - - 16
----
833

query I rowsort
SELECT ALL ( 19 ) + - - ( + 65 ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-264
SELECT DISTINCT + COUNT( * ) + + - 72 AS col2, - 11 * - 76 + - COUNT( * )
----
-71
835

skipif mysql # not compatible
query II rowsort label-264
SELECT DISTINCT + COUNT ( * ) + + - 72 AS col2, - 11 * - 76 + - COUNT ( * )
----
-71
835

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT ALL - 77 DIV - 16 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL - 77 / - 16 AS col0
----
4

query I rowsort
SELECT 98 + - 51 + + 30
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-267
SELECT 1 * - + 30, 8 * - COUNT( * ) * + + 61 * 56 + - NULLIF ( + 52, + COALESCE ( + 54, + 44 ) / - 72 ) + 85 - + + 2 * - 89 AS col2
----
-30
-27117

skipif mysql # not compatible
query II rowsort label-267
SELECT 1 * - + 30, 8 * - COUNT ( * ) * + + 61 * 56 + - NULLIF ( + 52, + COALESCE ( + 54, + 44 ) / - 72 ) + 85 - + + 2 * - 89 AS col2
----
-30
-27117

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

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

query II rowsort
SELECT 7 + + - 80, + 75 AS col1
----
-73
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-270
SELECT 17 + + 42 + - NULLIF ( - 39, - ( + COUNT( * ) ) ) - + - CAST( - - COUNT( * ) AS SIGNED ) * + ( + + MAX( - 80 ) )
----
18

skipif mysql # not compatible
query I rowsort label-270
SELECT 17 + + 42 + - NULLIF ( - 39, - ( + COUNT ( * ) ) ) - + - CAST ( - - COUNT ( * ) AS INTEGER ) * + ( + + MAX ( - 80 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT 42 + + MIN( - ( 54 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-271
SELECT 42 + + MIN ( - ( 54 ) ) AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-272
SELECT CASE + AVG ( ALL ( - 21 ) ) WHEN + + 94 * - 58 * 46 THEN + 15 * - - CAST( NULL AS SIGNED ) WHEN - - 18 THEN NULL END + + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT CASE + AVG ( ALL ( - 21 ) ) WHEN + + 94 * - 58 * 46 THEN + 15 * - - CAST ( NULL AS INTEGER ) WHEN - - 18 THEN NULL END + + + 46
----
NULL

query I rowsort
SELECT 26 * + 92 AS col0
----
2392

query I rowsort
SELECT 61 + + 81 + + + 84 + - 75 AS col0
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-275
SELECT MAX( DISTINCT - NULLIF ( + 20, + 5 * 13 * + 59 * 85 ) ) DIV + 54 + - + 27
----
-27

skipif mysql # not compatible
query I rowsort label-275
SELECT MAX ( DISTINCT - NULLIF ( + 20, + 5 * 13 * + 59 * 85 ) ) / + 54 + - + 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL ( - COALESCE ( - 14, + COUNT( * ), - + 46 * + 18 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL ( - COALESCE ( - 14, + COUNT ( * ), - + 46 * + 18 ) ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT + NULLIF ( + + COUNT( ALL + + NULLIF ( - - 34, + 92 ) ), - - 60 + + 15 ) * - 97
----
-97

skipif mysql # not compatible
query I rowsort label-277
SELECT + NULLIF ( + + COUNT ( ALL + + NULLIF ( - - 34, + 92 ) ), - - 60 + + 15 ) * - 97
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-278
SELECT - 25 DIV CAST( 12 AS SIGNED ) + - 59 + + 65 DIV - 55 + + + 66, + COALESCE ( - + 91, + COUNT( * ), 87 ) + 31 AS col0
----
4
-60

skipif mysql # not compatible
query II rowsort label-278
SELECT - 25 / CAST ( 12 AS INTEGER ) + - 59 + + 65 / - 55 + + + 66, + COALESCE ( - + 91, + COUNT ( * ), 87 ) + 31 AS col0
----
4
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT DISTINCT 64 + 70 * + COUNT( * ) AS col1
----
134

skipif mysql # not compatible
query I rowsort label-279
SELECT DISTINCT 64 + 70 * + COUNT ( * ) AS col1
----
134

query I rowsort
SELECT ALL 21 * 68 - - 40 + - + 65
----
1403

query I rowsort
SELECT DISTINCT - 88 * 93 AS col1
----
-8184

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

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

query I rowsort
SELECT DISTINCT + 55 + + 3 AS col0
----
58

query I rowsort
SELECT ALL 48 + - - 38 AS col1
----
86

query I rowsort
SELECT + + NULLIF ( 54, + - 96 )
----
54

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

skipif mysql # not compatible
query I rowsort label-286
SELECT + - ( + SUM ( + - 2 ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-287
SELECT ALL + + 75 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL + + 75 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT - 14 * + + ( - 88 ) - + - MAX( + - 17 ) * - 18 AS col0
----
1538

skipif mysql # not compatible
query I rowsort label-288
SELECT - 14 * + + ( - 88 ) - + - MAX ( + - 17 ) * - 18 AS col0
----
1538

query I rowsort
SELECT DISTINCT 92 * + 35
----
3220

query I rowsort
SELECT 20 * - 85 AS col0
----
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT CASE - 93 WHEN + 40 * + 25 + + ( + - 35 ) THEN + + COUNT( * ) + + 46 END * + + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-291
SELECT CASE - 93 WHEN + 40 * + 25 + + ( + - 35 ) THEN + + COUNT ( * ) + + 46 END * + + 51 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT + CASE 60 WHEN COUNT( * ) * - 70 THEN NULL WHEN ( - 54 ) THEN - 89 * + + 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-292
SELECT + CASE 60 WHEN COUNT ( * ) * - 70 THEN NULL WHEN ( - 54 ) THEN - 89 * + + 9 END AS col0
----
NULL

query I rowsort
SELECT 43 + + 27 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL - COUNT( 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL - COUNT ( 54 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-295
SELECT 52 + - - 18 DIV + - NULLIF ( - - 3, - + COUNT( + 66 ) ), + 55 DIV + 60 * - + 50 AS col1
----
46
0

skipif mysql # not compatible
query II rowsort label-295
SELECT 52 + - - 18 / + - NULLIF ( - - 3, - + COUNT ( + 66 ) ), + 55 / + 60 * - + 50 AS col1
----
46
0

query II rowsort
SELECT 31 AS col2, 96 AS col1
----
31
96

query I rowsort
SELECT DISTINCT 67 * 80 AS col0
----
5360

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT - 2 DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-298
SELECT - 2 / - 65 AS col2
----
0

query I rowsort
SELECT - NULLIF ( 57, - 90 ) * - + 8 + + 13
----
469

query I rowsort
SELECT ALL + 11 * - + 48
----
-528

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT - 20 - + - MAX( ALL + - 33 ) * - 43
----
1399

skipif mysql # not compatible
query I rowsort label-301
SELECT - 20 - + - MAX ( ALL + - 33 ) * - 43
----
1399

query I rowsort
SELECT + 84 * + 36 AS col1
----
3024

query I rowsort
SELECT - 96 - - + 41
----
-55

query II rowsort
SELECT ALL CASE + + 53 WHEN 35 + - 27 THEN 8 WHEN 61 THEN NULL END AS col2, 96 - - ( + 12 )
----
NULL
108

query I rowsort
SELECT ALL + ( + 68 ) + 80 * + 54
----
4388

query I rowsort
SELECT - + 72 * + 26 - - + 22 * - - NULLIF ( + 18, + ( 55 ) )
----
-1476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-307
SELECT ALL CAST( - 24 AS SIGNED ) + NULLIF ( + 31, - 69 + - 70 / 47 ) + - + 21 * 42 AS col0
----
-875

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL CAST ( - 24 AS INTEGER ) + NULLIF ( + 31, - 69 + - 70 / 47 ) + - + 21 * 42 AS col0
----
-875

query I rowsort
SELECT ALL - ( + 7 ) * + + 27 + 68 col0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT + COUNT( * ) - - 3 * - + COUNT( * ) * COALESCE ( - 75, 24 ) + + 62
----
288

skipif mysql # not compatible
query I rowsort label-309
SELECT + COUNT ( * ) - - 3 * - + COUNT ( * ) * COALESCE ( - 75, 24 ) + + 62
----
288

query I rowsort
SELECT DISTINCT - 59 + + 31
----
-28

query II rowsort
SELECT - NULLIF ( + 7, - - 47 ) AS col2, + 56 AS col1
----
-7
56

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

skipif mysql # not compatible
query I rowsort label-312
SELECT - + SUM ( + 27 )
----
-27

query I rowsort
SELECT ALL + 26 + 30 col1
----
56

query I rowsort
SELECT - + 20 + 94 * + + 86 AS col1
----
8064

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-316
SELECT + - MAX( CAST( NULL AS SIGNED ) ) * + 97 + + NULLIF ( COUNT( * ), + + SUM( - 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-316
SELECT + - MAX ( CAST ( NULL AS INTEGER ) ) * + 97 + + NULLIF ( COUNT ( * ), + + SUM ( - 26 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-317
SELECT + - COUNT( * ) - + CAST( NULL AS SIGNED ) + + COUNT( + 98 ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-317
SELECT + - COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + COUNT ( + 98 ) + 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT DISTINCT + CASE - + 78 WHEN 42 THEN 35 + - CAST( + 25 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT + CASE - + 78 WHEN 42 THEN 35 + - CAST ( + 25 AS INTEGER ) END
----
NULL

query II rowsort
SELECT DISTINCT + 58 AS col1, 79 + - 70 AS col1
----
58
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-320
SELECT ALL - + 16 * + + COUNT( * ) * - 77 / CAST( NULL AS DECIMAL ) + + 49 + - + 86 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL - + 16 * + + COUNT ( * ) * - 77 / CAST ( NULL AS REAL ) + + 49 + - + 86 * + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT DISTINCT 40 * - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT 40 * - COUNT ( * ) AS col1
----
-40

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-323
SELECT + 22 * + + COUNT( * ), - COUNT( * ) * + 52 AS col0
----
22
-52

skipif mysql # not compatible
query II rowsort label-323
SELECT + 22 * + + COUNT ( * ), - COUNT ( * ) * + 52 AS col0
----
22
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-324
SELECT ALL + ( + - 96 ) * + 74 * MIN( - 50 ) - 76 - - 96 + - + NULLIF ( + 21, + + 57 ) + COUNT( * ) * + + COUNT( + 51 ) + + 55 DIV - + 44 * - 96 DIV + 66 AS col1
----
355201

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL + ( + - 96 ) * + 74 * MIN ( - 50 ) - 76 - - 96 + - + NULLIF ( + 21, + + 57 ) + COUNT ( * ) * + + COUNT ( + 51 ) + + 55 / - + 44 * - 96 / + 66 AS col1
----
355201

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-325
SELECT ALL CAST( + 85 AS SIGNED ) DIV + - 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL CAST ( + 85 AS INTEGER ) / + - 71 AS col2
----
-1

query I rowsort
SELECT + 62 * + CASE 89 WHEN + 67 THEN NULL ELSE 72 * - 57 END * 62 AS col1
----
-15775776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-327
SELECT CASE - SUM( - 39 ) WHEN + - 84 THEN + - 32 WHEN 93 THEN 6 ELSE NULL END AS col2, + 18 - 43 + - CAST( NULL AS SIGNED ) * + 77 + - 22 + + 82 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-327
SELECT CASE - SUM ( - 39 ) WHEN + - 84 THEN + - 32 WHEN 93 THEN 6 ELSE NULL END AS col2, + 18 - 43 + - CAST ( NULL AS INTEGER ) * + 77 + - 22 + + 82 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-328
SELECT 42 * + 59 * + 8 + - - 5 - + SUM( DISTINCT + 10 ) * + 75 + 3 DIV MAX( ALL + 49 ) * + ( + 78 ) + CASE - 26 WHEN ( - 57 ) + CASE + COALESCE ( + 41, + + 69 - 78 ) WHEN + AVG ( + ( + - 75 ) ) * + COUNT( * ) * + + 57 THEN NULL ELSE NULLIF ( + 33, - 18 ) END + 21 THEN NULL WHEN + 30 THEN - CASE MAX( DISTINCT + COALESCE ( - 41, + 89 ) ) WHEN + 73 * 27 THEN COUNT( * ) END ELSE - ( + COUNT( * ) ) END + 14 col2
----
19092

skipif mysql # not compatible
query I rowsort label-328
SELECT 42 * + 59 * + 8 + - - 5 - + SUM ( DISTINCT + 10 ) * + 75 + 3 / MAX ( ALL + 49 ) * + ( + 78 ) + CASE - 26 WHEN ( - 57 ) + CASE + COALESCE ( + 41, + + 69 - 78 ) WHEN + AVG ( + ( + - 75 ) ) * + COUNT ( * ) * + + 57 THEN NULL ELSE NULLIF ( + 33, - 18 ) END + 21 THEN NULL WHEN + 30 THEN - CASE MAX ( DISTINCT + COALESCE ( - 41, + 89 ) ) WHEN + 73 * 27 THEN COUNT ( * ) END ELSE - ( + COUNT ( * ) ) END + 14 col2
----
19092

query II rowsort
SELECT ALL + 15 * + 88 col2, - 24
----
1320
-24

query I rowsort
SELECT 43 * - 64 + + 15
----
-2737

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT SUM( + - 52 ), - NULLIF ( - COALESCE ( 42, - ( - COUNT( * ) ) ), - 50 ) * COUNT( * ) AS col0
----
-52
42

skipif mysql # not compatible
query II rowsort label-331
SELECT SUM ( + - 52 ), - NULLIF ( - COALESCE ( 42, - ( - COUNT ( * ) ) ), - 50 ) * COUNT ( * ) AS col0
----
-52
42

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT + SUM( 93 ) + 29 + + COALESCE ( 2, + 15 ) * - 18 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-332
SELECT + SUM ( 93 ) + 29 + + COALESCE ( 2, + 15 ) * - 18 AS col2
----
86

query I rowsort
SELECT - ( 66 ) - ( 66 ) AS col0
----
-132

query I rowsort
SELECT ALL NULLIF ( - 8, + 31 )
----
-8

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

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

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

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

query I rowsort
SELECT - + 85 + 43 * - + 9 AS col0
----
-472

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-338
SELECT ALL - COALESCE ( - COALESCE ( - + CAST( + 1 AS SIGNED ), + - 74 * 13 * + 97 DIV 65 DIV - - 15 * + CAST( NULL AS SIGNED ) ), + - 19 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - COALESCE ( - COALESCE ( - + CAST ( + 1 AS INTEGER ), + - 74 * 13 * + 97 / 65 / - - 15 * + CAST ( NULL AS INTEGER ) ), + - 19 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT - - 10 + + 15 + - CASE 71 WHEN - - 2 * + 30 - + 33 THEN NULL WHEN 65 THEN NULL ELSE 75 + - COUNT( * ) END col1
----
-49

skipif mysql # not compatible
query I rowsort label-339
SELECT - - 10 + + 15 + - CASE 71 WHEN - - 2 * + 30 - + 33 THEN NULL WHEN 65 THEN NULL ELSE 75 + - COUNT ( * ) END col1
----
-49

query I rowsort
SELECT - - 60 + + + 13 + + - 84 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT DISTINCT - 97 + MAX( + 25 ) + - 23
----
-95

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT - 97 + MAX ( + 25 ) + - 23
----
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-342
SELECT + 70 + 27 + 60 + - 17 DIV 93 * 37 + - 82 AS col0, 73 AS col1
----
75
73

skipif mysql # not compatible
query II rowsort label-342
SELECT + 70 + 27 + 60 + - 17 / 93 * 37 + - 82 AS col0, 73 AS col1
----
75
73

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT ALL + COUNT( * ) * - 62 * - 26 + + + COUNT( * ) AS col0
----
1613

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL + COUNT ( * ) * - 62 * - 26 + + + COUNT ( * ) AS col0
----
1613

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT DISTINCT - COUNT( * ) + + MIN( DISTINCT NULLIF ( - - 31, + 0 * 9 ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT - COUNT ( * ) + + MIN ( DISTINCT NULLIF ( - - 31, + 0 * 9 ) ) AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-345
SELECT ALL + 45 * - + SUM( DISTINCT + + 39 ) + - ( - 90 ) * CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * - - CASE + + ( - COALESCE ( + COUNT( 48 ), - CAST( NULL AS SIGNED ) ) ) WHEN 79 THEN NULL WHEN MAX( + + 56 ) THEN - + 32 ELSE NULL END + + + 84 * - - 72 + + NULLIF ( + + 34, - - NULLIF ( 12, - + 96 ) / + ( 87 ) ) * - 18, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-345
SELECT ALL + 45 * - + SUM ( DISTINCT + + 39 ) + - ( - 90 ) * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * - - CASE + + ( - COALESCE ( + COUNT ( 48 ), - CAST ( NULL AS INTEGER ) ) ) WHEN 79 THEN NULL WHEN MAX ( + + 56 ) THEN - + 32 ELSE NULL END + + + 84 * - - 72 + + NULLIF ( + + 34, - - NULLIF ( 12, - + 96 ) / + ( 87 ) ) * - 18, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT - + 34 * + 50, 37 + + + 0 AS col0
----
-1700
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-347
SELECT - + 40 DIV - - 39 + - + 66 + - COUNT( * ) DIV - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-347
SELECT - + 40 / - - 39 + - + 66 + - COUNT ( * ) / - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT + + COALESCE ( 67, + 31 * - - NULLIF ( - 17, + + 62 ) * 61 - + MIN( DISTINCT 91 ) + - 69 + - + 99 * 26 * 0 * - 50 )
----
67

skipif mysql # not compatible
query I rowsort label-348
SELECT + + COALESCE ( 67, + 31 * - - NULLIF ( - 17, + + 62 ) * 61 - + MIN ( DISTINCT 91 ) + - 69 + - + 99 * 26 * 0 * - 50 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT + NULLIF ( + COUNT( * ), - 68 * - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-349
SELECT + NULLIF ( + COUNT ( * ), - 68 * - 80 )
----
1

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

query I rowsort
SELECT DISTINCT 3 * + 48 col1
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-352
SELECT 56 * - - 89 * + + MIN( DISTINCT + - ( - 18 ) ) * + 43 - COALESCE ( - NULLIF ( + + 37, 59 ), + 38 + - 74, + 87 * - 92 + - 99 * + 31 + + 27 - CAST( 15 AS SIGNED ) ) AS col1
----
3857653

skipif mysql # not compatible
query I rowsort label-352
SELECT 56 * - - 89 * + + MIN ( DISTINCT + - ( - 18 ) ) * + 43 - COALESCE ( - NULLIF ( + + 37, 59 ), + 38 + - 74, + 87 * - 92 + - 99 * + 31 + + 27 - CAST ( 15 AS INTEGER ) ) AS col1
----
3857653

onlyif mysql # aggregate syntax: 
query I rowsort label-353
SELECT 52 * 85 * - CASE - + 86 WHEN + COUNT( * ) * COUNT( * ) THEN NULL WHEN + 44 + - 50 * 94 THEN COUNT( * ) + 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-353
SELECT 52 * 85 * - CASE - + 86 WHEN + COUNT ( * ) * COUNT ( * ) THEN NULL WHEN + 44 + - 50 * 94 THEN COUNT ( * ) + 14 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-354
SELECT 93, + CASE - CAST( 46 AS SIGNED ) WHEN + - 71 * - 43 + - CAST( - 17 AS SIGNED ) THEN ( + 9 ) ELSE + - 17 + + 10 + - + 54 + - 26 + + + 28 * 37 END AS col0
----
93
949

skipif mysql # not compatible
query II rowsort label-354
SELECT 93, + CASE - CAST ( 46 AS INTEGER ) WHEN + - 71 * - 43 + - CAST ( - 17 AS INTEGER ) THEN ( + 9 ) ELSE + - 17 + + 10 + - + 54 + - 26 + + + 28 * 37 END AS col0
----
93
949

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-355
SELECT ALL 91 + + 6 - - 39 + ( COUNT( * ) ) + - 33 DIV + - COUNT( - 27 ) + COUNT( 50 ) AS col0, + 58 DIV CAST( 84 AS SIGNED ) AS col1
----
171
0

skipif mysql # not compatible
query II rowsort label-355
SELECT ALL 91 + + 6 - - 39 + ( COUNT ( * ) ) + - 33 / + - COUNT ( - 27 ) + COUNT ( 50 ) AS col0, + 58 / CAST ( 84 AS INTEGER ) AS col1
----
171
0

query I rowsort
SELECT 42 * - + 28
----
-1176

query I rowsort
SELECT 77 + + 70
----
147

query II rowsort
SELECT ALL 84 + + ( 77 ) AS col1, 32 col1
----
161
32

onlyif mysql # aggregate syntax: 
query II rowsort label-359
SELECT DISTINCT + 94 + CASE - + 78 WHEN - COUNT( * ) * - + 43 * + CASE 31 WHEN - 27 / 58 / 54 - 56 + + 0 / - - 52 + - + 19 THEN NULL WHEN + 77 * 68 THEN 39 + + 8 * + 6 * - COUNT( * ) * - 91 ELSE 92 END THEN 26 WHEN 63 THEN NULL WHEN - 82 THEN NULL END AS col0, + 76 * 55 col0
----
NULL
4180

skipif mysql # not compatible
query II rowsort label-359
SELECT DISTINCT + 94 + CASE - + 78 WHEN - COUNT ( * ) * - + 43 * + CASE 31 WHEN - 27 / 58 / 54 - 56 + + 0 / - - 52 + - + 19 THEN NULL WHEN + 77 * 68 THEN 39 + + 8 * + 6 * - COUNT ( * ) * - 91 ELSE 92 END THEN 26 WHEN 63 THEN NULL WHEN - 82 THEN NULL END AS col0, + 76 * 55 col0
----
NULL
4180

query I rowsort
SELECT DISTINCT 70 + + 8 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-361
SELECT ALL 88 + 35 * - + 53 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL 88 + 35 * - + 53 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-362
SELECT + CASE 22 WHEN + NULLIF ( COUNT( * ), + - CAST( - + 89 AS SIGNED ) ) THEN NULL WHEN + COUNT( * ) * + 26 THEN NULL ELSE - 14 END col2
----
-14

skipif mysql # not compatible
query I rowsort label-362
SELECT + CASE 22 WHEN + NULLIF ( COUNT ( * ), + - CAST ( - + 89 AS INTEGER ) ) THEN NULL WHEN + COUNT ( * ) * + 26 THEN NULL ELSE - 14 END col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT SUM( DISTINCT - 92 ) - - 16 * 95 AS col1
----
1428

skipif mysql # not compatible
query I rowsort label-363
SELECT SUM ( DISTINCT - 92 ) - - 16 * 95 AS col1
----
1428

query I rowsort
SELECT - 84 + + 68
----
-16

query I rowsort
SELECT ALL - 18 - - 74 + + 12 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT + COUNT( * ) - + + COUNT( * ) + 88 - 77 + - 71
----
-60

skipif mysql # not compatible
query I rowsort label-366
SELECT + COUNT ( * ) - + + COUNT ( * ) + 88 - 77 + - 71
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-367
SELECT ALL COUNT( * ), + 3 + + SUM( + - 86 ) AS col2
----
1
-83

skipif mysql # not compatible
query II rowsort label-367
SELECT ALL COUNT ( * ), + 3 + + SUM ( + - 86 ) AS col2
----
1
-83

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

query I rowsort
SELECT 47 + - 1 * - 42 AS col1
----
89

query I rowsort
SELECT - 61 * ( - 83 )
----
5063

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT - 70 DIV + + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-371
SELECT - 70 / + + 89 AS col2
----
0

query I rowsort
SELECT ALL + + 27 * - + 71 col1
----
-1917

query I rowsort
SELECT + 84 - - 74 AS col2
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT 60 DIV 51 + - 33 * + - 93 AS col2
----
3070

skipif mysql # not compatible
query I rowsort label-374
SELECT 60 / 51 + - 33 * + - 93 AS col2
----
3070

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

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

query II rowsort
SELECT + 40, 39 AS col1
----
40
39

query II rowsort
SELECT 33 AS col2, - 86
----
33
-86

query II rowsort
SELECT DISTINCT + NULLIF ( 5, - + 85 ) * + 30 AS col1, + ( 7 ) AS col2
----
150
7

onlyif mysql # aggregate syntax: 
query II rowsort label-379
SELECT ALL - 90 AS col1, 60 + + 88 - + 96 * + COUNT( * )
----
-90
52

skipif mysql # not compatible
query II rowsort label-379
SELECT ALL - 90 AS col1, 60 + + 88 - + 96 * + COUNT ( * )
----
-90
52

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT DISTINCT - CASE - 72 WHEN + CASE COUNT( * ) WHEN 87 THEN - - MIN( ALL - 95 ) WHEN - 64 * CASE 43 WHEN - 91 THEN + 36 * - - 19 + - AVG ( + 98 ) WHEN 7 THEN + 46 END THEN NULL END * 32 * + + 84 + - - COUNT( * ) + + 87 THEN NULL ELSE COALESCE ( - 94, 47 ) END AS col1
----
94

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT - CASE - 72 WHEN + CASE COUNT ( * ) WHEN 87 THEN - - MIN ( ALL - 95 ) WHEN - 64 * CASE 43 WHEN - 91 THEN + 36 * - - 19 + - AVG ( + 98 ) WHEN 7 THEN + 46 END THEN NULL END * 32 * + + 84 + - - COUNT ( * ) + + 87 THEN NULL ELSE COALESCE ( - 94, 47 ) END AS col1
----
94

query II rowsort
SELECT ALL + 52 + + 71 AS col2, 52
----
123
52

query I rowsort
SELECT 42 + - 30
----
12

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

query I rowsort
SELECT DISTINCT + 35 + + 8 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT ALL - 80 + 66 + + COUNT( * ) - - 44
----
31

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL - 80 + 66 + + COUNT ( * ) - - 44
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-386
SELECT + 82 AS col0, + 83 + + COALESCE ( + 93, + 84 * + MAX( + - ( + + 44 ) ) ) * - 40 * - + 4
----
82
14963

skipif mysql # not compatible
query II rowsort label-386
SELECT + 82 AS col0, + 83 + + COALESCE ( + 93, + 84 * + MAX ( + - ( + + 44 ) ) ) * - 40 * - + 4
----
82
14963

query I rowsort
SELECT ( 21 ) + + 23
----
44

query I rowsort
SELECT 23 * - 36
----
-828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL + CASE CASE + 12 WHEN + - 84 * - 36 THEN 73 * + 91 + + - 74 ELSE NULL END WHEN - 95 * - + 55 THEN NULL WHEN 65 * - COUNT( * ) + - - NULLIF ( - - 45, 20 ) THEN 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + CASE CASE + 12 WHEN + - 84 * - 36 THEN 73 * + 91 + + - 74 ELSE NULL END WHEN - 95 * - + 55 THEN NULL WHEN 65 * - COUNT ( * ) + - - NULLIF ( - - 45, 20 ) THEN 48 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT 44 - + SUM( DISTINCT 45 ) + - 24 + - + 58
----
-83

skipif mysql # not compatible
query I rowsort label-391
SELECT 44 - + SUM ( DISTINCT 45 ) + - 24 + - + 58
----
-83

query I rowsort
SELECT - 43 * + - 26
----
1118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-393
SELECT DISTINCT 41 AS col0, MAX( - NULLIF ( 29, - 84 + - CAST( NULL AS SIGNED ) + - 93 * 25 * - + 9 * - 10 * - 68 + - + 29 * 97 + - + 19 ) ) AS col0
----
41
-29

skipif mysql # not compatible
query II rowsort label-393
SELECT DISTINCT 41 AS col0, MAX ( - NULLIF ( 29, - 84 + - CAST ( NULL AS INTEGER ) + - 93 * 25 * - + 9 * - 10 * - 68 + - + 29 * 97 + - + 19 ) ) AS col0
----
41
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT - ( + - 2 ) DIV + + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-394
SELECT - ( + - 2 ) / + + 56 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-395
SELECT DISTINCT 61 DIV + 11
----
5

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT 61 / + 11
----
5

query I rowsort
SELECT 23 + 75 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-397
SELECT DISTINCT 44 * - 94 + - CAST( - + NULLIF ( - + 54, - 60 * - ( - 81 ) - + 14 ) AS SIGNED ) col0
----
-4190

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT 44 * - 94 + - CAST ( - + NULLIF ( - + 54, - 60 * - ( - 81 ) - + 14 ) AS INTEGER ) col0
----
-4190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT ALL 88 - + 85 + + 50 + + - 73 * + - 92 / - + CASE WHEN NOT 88 IS NULL THEN NULL ELSE + ( 32 ) - - ( + 93 ) END / - ( + + 13 ) + - + MIN( DISTINCT 16 ) * - ( + CAST( 25 AS SIGNED ) ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL 88 - + 85 + + 50 + + - 73 * + - 92 / - + CASE WHEN NOT 88 IS NULL THEN NULL ELSE + ( 32 ) - - ( + 93 ) END / - ( + + 13 ) + - + MIN ( DISTINCT 16 ) * - ( + CAST ( 25 AS INTEGER ) ) + 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-399
SELECT - COUNT( * ) AS col1, 98 DIV - 33 * + + COUNT( * ) AS col2
----
-1
-2

skipif mysql # not compatible
query II rowsort label-399
SELECT - COUNT ( * ) AS col1, 98 / - 33 * + + COUNT ( * ) AS col2
----
-1
-2

query I rowsort
SELECT - 32 + + - 36
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT COUNT( * ) * - + COUNT( * ) * + + 58 * 85 + - 81
----
-5011

skipif mysql # not compatible
query I rowsort label-401
SELECT COUNT ( * ) * - + COUNT ( * ) * + + 58 * 85 + - 81
----
-5011

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT + COUNT( * ) * NULLIF ( + COUNT( * ), + 52 ) * - 94 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-402
SELECT + COUNT ( * ) * NULLIF ( + COUNT ( * ), + 52 ) * - 94 AS col1
----
-94

query I rowsort
SELECT DISTINCT + 95 * 13
----
1235

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-404
SELECT 73, ( + 31 ) DIV + + 21 * + COUNT( * ) AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-404
SELECT 73, ( + 31 ) / + + 21 * + COUNT ( * ) AS col0
----
73
1

query I rowsort
SELECT ALL - 62 * - 5 + - 89 AS col2
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-406
SELECT DISTINCT 82 col0, + CAST( NULL AS SIGNED ) - - + 28 AS col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-406
SELECT DISTINCT 82 col0, + CAST ( NULL AS INTEGER ) - - + 28 AS col0
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT ( + ( - 41 ) ) * + NULLIF ( 81, + + 71 + COUNT( * ) ) * COALESCE ( 63, - COUNT( * ), 14 ) AS col0
----
-209223

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT ( + ( - 41 ) ) * + NULLIF ( 81, + + 71 + COUNT ( * ) ) * COALESCE ( 63, - COUNT ( * ), 14 ) AS col0
----
-209223

query I rowsort
SELECT ALL 28 + - 51
----
-23

query I rowsort
SELECT ALL 10 * 69 + - + 46
----
644

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT COALESCE ( - NULLIF ( - ( COUNT( * ) ), 85 ), - 16 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-410
SELECT COALESCE ( - NULLIF ( - ( COUNT ( * ) ), 85 ), - 16 ) AS col0
----
1

query I rowsort
SELECT ALL - ( + ( 63 ) ) * 37 * + - 9 + - 72 + 45
----
20952

query I rowsort
SELECT NULLIF ( + + 97, - 6 )
----
97

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

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

query II rowsort
SELECT - 56 - 15 AS col0, - 87
----
-71
-87

query I rowsort
SELECT COALESCE ( + 71, + 91 ) AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-416
SELECT ALL + 56 * - - 30 + - 83, 95 * - CAST( - 8 AS SIGNED ) col1
----
1597
760

skipif mysql # not compatible
query II rowsort label-416
SELECT ALL + 56 * - - 30 + - 83, 95 * - CAST ( - 8 AS INTEGER ) col1
----
1597
760

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT NULLIF ( + + 66, + COUNT( * ) * 78 * 26 * + - 10 / - 27 )
----
66

skipif mysql # not compatible
query I rowsort label-417
SELECT NULLIF ( + + 66, + COUNT ( * ) * 78 * 26 * + - 10 / - 27 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-418
SELECT ALL - NULLIF ( CAST( - COALESCE ( - - COUNT( * ), - 38 * + 74 - - 34 * 70 * + 39 ) AS SIGNED ), - 79 ) * 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL - NULLIF ( CAST ( - COALESCE ( - - COUNT ( * ), - 38 * + 74 - - 34 * 70 * + 39 ) AS INTEGER ), - 79 ) * 71 AS col1
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT + SUM( + - 24 ) * + 25 + + 96 AS col1
----
-504

skipif mysql # not compatible
query I rowsort label-420
SELECT + SUM ( + - 24 ) * + 25 + + 96 AS col1
----
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT DISTINCT 65 * + ( 65 ) + - CAST( - 54 AS SIGNED ) AS col2
----
4279

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT 65 * + ( 65 ) + - CAST ( - 54 AS INTEGER ) AS col2
----
4279

query I rowsort
SELECT - - 78 * - 2 * - + 57 * - + 91
----
-809172

query II rowsort
SELECT + - 73 * 49, 53 AS col0
----
-3577
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-424
SELECT + 23 + 30 * + 22 / + CASE COUNT( * ) WHEN + MIN( DISTINCT + 86 ) THEN NULL ELSE 70 * CASE - COUNT( * ) WHEN 4 + 26 THEN CASE - 17 WHEN 97 THEN - 64 * + ( + 5 ) / + 25 WHEN + 0 * - NULLIF ( NULLIF ( + 45, + - 30 * - 7 * - + 77 * ( 50 ) + COUNT( * ) ), + - 78 + ( + COALESCE ( COUNT( * ), 38, + 62 ) ) ) * + CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END + MIN( ALL - ( + 18 ) ) / 22 END END * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-424
SELECT + 23 + 30 * + 22 / + CASE COUNT ( * ) WHEN + MIN ( DISTINCT + 86 ) THEN NULL ELSE 70 * CASE - COUNT ( * ) WHEN 4 + 26 THEN CASE - 17 WHEN 97 THEN - 64 * + ( + 5 ) / + 25 WHEN + 0 * - NULLIF ( NULLIF ( + 45, + - 30 * - 7 * - + 77 * ( 50 ) + COUNT ( * ) ), + - 78 + ( + COALESCE ( COUNT ( * ), 38, + 62 ) ) ) * + CAST ( NULL AS REAL ) THEN NULL ELSE NULL END + MIN ( ALL - ( + 18 ) ) / 22 END END * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT DISTINCT + NULLIF ( + 46, - SUM( DISTINCT 3 ) ) * + + 1 + - + COALESCE ( + 0, + 42 ) + - NULLIF ( 83, - + 21 ) - + + 35 - + 56
----
-128

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT + NULLIF ( + 46, - SUM ( DISTINCT 3 ) ) * + + 1 + - + COALESCE ( + 0, + 42 ) + - NULLIF ( 83, - + 21 ) - + + 35 - + 56
----
-128

query I rowsort
SELECT ALL - 18 * 19 + - 37
----
-379

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT ALL - - 23 / - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL - - 23 / - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 20, 44, 12 )
----
20

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT + + 46 * 24 + ( + 61 ) + + - 25 * + + COUNT( * ) col0
----
1140

skipif mysql # not compatible
query I rowsort label-431
SELECT + + 46 * 24 + ( + 61 ) + + - 25 * + + COUNT ( * ) col0
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - - COUNT( * ) - + ( + 62 )
----
-61

skipif mysql # not compatible
query I rowsort label-432
SELECT - - COUNT ( * ) - + ( + 62 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-433
SELECT CAST( 85 AS SIGNED ), 41 * 38 col1
----
85
1558

skipif mysql # not compatible
query II rowsort label-433
SELECT CAST ( 85 AS INTEGER ), 41 * 38 col1
----
85
1558

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT ALL 22 DIV - - 11 + + + 19 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL 22 / - - 11 + + + 19 AS col2
----
21

query I rowsort
SELECT ALL - + 43 + 95 * - 75 col2
----
-7168

query I rowsort
SELECT DISTINCT + 41 * + 52 + + - 26
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-437
SELECT + 10 DIV 84 + + 35 + + - 28 + - 37 * - 56 * - 50 AS col2
----
-103593

skipif mysql # not compatible
query I rowsort label-437
SELECT + 10 / 84 + + 35 + + - 28 + - 37 * - 56 * - 50 AS col2
----
-103593

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL 79 + - 31 + + COUNT( * ) * + 10 + + + COUNT( * ) * - ( - 16 ) + + 66
----
140

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL 79 + - 31 + + COUNT ( * ) * + 10 + + + COUNT ( * ) * - ( - 16 ) + + 66
----
140

query II rowsort
SELECT DISTINCT - 72 + 37, 92 AS col0
----
-35
92

query I rowsort
SELECT ALL 10 + + 23 + + 13 * - 0 + + 77 * + ( + 8 )
----
649

query I rowsort
SELECT + 16 - - 8
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT ALL COUNT( * ) + - 8 col2
----
-7

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL COUNT ( * ) + - 8 col2
----
-7

query I rowsort
SELECT + 33 * + 21 AS col1
----
693

query II rowsort
SELECT 58 AS col0, - 70 AS col0
----
58
-70

query II rowsort
SELECT ALL 94 AS col0, + 30
----
94
30

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT ALL 74 + 57 + - + 49 DIV + 21 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL 74 + 57 + - + 49 / + 21 AS col1
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-447
SELECT CAST( - + 60 AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-447
SELECT CAST ( - + 60 AS INTEGER ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT 98 * + - 66 + - COUNT( * ) * + 67 + 87 AS col2
----
-6448

skipif mysql # not compatible
query I rowsort label-448
SELECT 98 * + - 66 + - COUNT ( * ) * + 67 + 87 AS col2
----
-6448

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT DISTINCT NULLIF ( 4, + 49 * SUM( - - 99 ) + + COUNT( * ) - - COUNT( ALL + + 35 ) / + - 62 + - AVG ( ALL - - 30 ) ) * - COUNT( * ) + + 72 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT NULLIF ( 4, + 49 * SUM ( - - 99 ) + + COUNT ( * ) - - COUNT ( ALL + + 35 ) / + - 62 + - AVG ( ALL - - 30 ) ) * - COUNT ( * ) + + 72 AS col0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT + 99 DIV - ( - - 11 ) + - - 11 + + 2 * 70
----
142

skipif mysql # not compatible
query I rowsort label-450
SELECT + 99 / - ( - - 11 ) + - - 11 + + 2 * 70
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT ALL - 79 DIV - 61 + - 17 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL - 79 / - 61 + - 17 AS col0
----
-16

query II rowsort
SELECT ALL + 15, - 19 AS col2
----
15
-19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-453
SELECT + COUNT( * ) * + ( - - CASE 96 WHEN + + SUM( + - 33 ) - 55 - + + 14 * + 93 / - 72 / MAX( - 45 ) THEN - 68 WHEN + CAST( NULL AS DECIMAL ) THEN NULL ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT + COUNT ( * ) * + ( - - CASE 96 WHEN + + SUM ( + - 33 ) - 55 - + + 14 * + 93 / - 72 / MAX ( - 45 ) THEN - 68 WHEN + CAST ( NULL AS REAL ) THEN NULL ELSE NULL END ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT ( + NULLIF ( - MIN( + 52 ), 68 * + 23 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-454
SELECT ( + NULLIF ( - MIN ( + 52 ), 68 * + 23 ) )
----
-52

query I rowsort
SELECT ( + - 61 ) * - 6 + + - 62 AS col1
----
304

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

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT 53 DIV + 87 + ( + 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-457
SELECT 53 / + 87 + ( + 70 ) AS col0
----
70

query I rowsort
SELECT + ( 12 ) + + 13 AS col2
----
25

query II rowsort
SELECT + 82, - 10 * 28 AS col0
----
82
-280

query II rowsort
SELECT ALL + + 4, 45 * + 67 AS col2
----
4
3015

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT DISTINCT 58 * 63 - SUM( + - 4 ) * 23 AS col2
----
3746

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT 58 * 63 - SUM ( + - 4 ) * 23 AS col2
----
3746

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL - - AVG ( + 41 ) * + CASE - 36 WHEN 36 * - + 40 + - - SUM( - - 94 ) - + 58 / 51 THEN NULL WHEN COUNT( * ) THEN + - 66 * + 38 ELSE NULL END - - COUNT( ALL 68 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL - - AVG ( + 41 ) * + CASE - 36 WHEN 36 * - + 40 + - - SUM ( - - 94 ) - + 58 / 51 THEN NULL WHEN COUNT ( * ) THEN + - 66 * + 38 ELSE NULL END - - COUNT ( ALL 68 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-463
SELECT - 40 + + - 48 * - 1, - 23 * COUNT( * ) AS col2
----
8
-23

skipif mysql # not compatible
query II rowsort label-463
SELECT - 40 + + - 48 * - 1, - 23 * COUNT ( * ) AS col2
----
8
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT - + 6 * MIN( ALL 27 ) * + - COUNT( * )
----
162

skipif mysql # not compatible
query I rowsort label-464
SELECT - + 6 * MIN ( ALL 27 ) * + - COUNT ( * )
----
162

onlyif mysql # aggregate syntax: 
query III rowsort label-465
SELECT - + 0 * + COUNT( * ) * - - 19 AS col1, 45 AS col2, - 68
----
0
45
-68

skipif mysql # not compatible
query III rowsort label-465
SELECT - + 0 * + COUNT ( * ) * - - 19 AS col1, 45 AS col2, - 68
----
0
45
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-466
SELECT - 23 - + 95 - + 44 * - - CASE - 27 WHEN + CAST( NULL AS SIGNED ) * 59 * - + ( 51 ) THEN NULL ELSE 43 END
----
-2010

skipif mysql # not compatible
query I rowsort label-466
SELECT - 23 - + 95 - + 44 * - - CASE - 27 WHEN + CAST ( NULL AS INTEGER ) * 59 * - + ( 51 ) THEN NULL ELSE 43 END
----
-2010

query I rowsort
SELECT - 67 + - - 31 AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-468
SELECT + 91 * COUNT( DISTINCT 15 ) + - 7 * + 63 + + CAST( + CASE - + CAST( NULL AS DECIMAL ) WHEN + 32 THEN + 43 END AS SIGNED ) + - NULLIF ( - 73, + ( + 16 ) / 24 + - 58 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-468
SELECT + 91 * COUNT ( DISTINCT 15 ) + - 7 * + 63 + + CAST ( + CASE - + CAST ( NULL AS REAL ) WHEN + 32 THEN + 43 END AS INTEGER ) + - NULLIF ( - 73, + ( + 16 ) / 24 + - 58 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 45 * 67 col1
----
3015

query I rowsort
SELECT - 80 * 26 col1
----
-2080

query II rowsort
SELECT - 66, ( + + 34 ) AS col2
----
-66
34

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT ALL + 54 + - SUM( - - ( 42 ) ) + 11
----
23

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL + 54 + - SUM ( - - ( 42 ) ) + 11
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL COALESCE ( - - ( - 51 ), COUNT( ALL + 39 ) * + 93 + + 19 )
----
-51

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL COALESCE ( - - ( - 51 ), COUNT ( ALL + 39 ) * + 93 + + 19 )
----
-51

query I rowsort
SELECT ALL + 85 + + + 45 AS col2
----
130

query II rowsort
SELECT 2 AS col1, - 71 * - 4
----
2
284

query II rowsort
SELECT ALL 74 + - + 80 AS col1, 14 AS col0
----
-6
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-477
SELECT COUNT( * ) * - 11 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-477
SELECT COUNT ( * ) * - 11 / 53 AS col0
----
0

query I rowsort
SELECT ( 17 ) * 96 col0
----
1632

query I rowsort
SELECT 61 * + 22
----
1342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-480
SELECT DISTINCT 62 * 32 * - CASE CAST( - + 35 AS SIGNED ) WHEN + - 39 / + SUM( - + 81 ) THEN NULL WHEN + COUNT( * ) + + CAST( + 34 AS SIGNED ) THEN CAST( NULL AS DECIMAL ) END * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT 62 * 32 * - CASE CAST ( - + 35 AS INTEGER ) WHEN + - 39 / + SUM ( - + 81 ) THEN NULL WHEN + COUNT ( * ) + + CAST ( + 34 AS INTEGER ) THEN CAST ( NULL AS REAL ) END * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT MAX( - 91 ) * - 43
----
3913

skipif mysql # not compatible
query I rowsort label-481
SELECT MAX ( - 91 ) * - 43
----
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT COUNT( - 10 ) * + 79
----
79

skipif mysql # not compatible
query I rowsort label-482
SELECT COUNT ( - 10 ) * + 79
----
79

query I rowsort
SELECT ( + - ( + CASE + - 19 WHEN 34 THEN NULL WHEN - 97 THEN NULL WHEN - + 9 THEN - + 49 END ) ) * + - 49 + 99
----
NULL

query I rowsort
SELECT 12 + + + 67 + + - 10
----
69

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

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

query I rowsort
SELECT DISTINCT 14 * + 3 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT - SUM( + 10 ) * 86 AS col1
----
-860

skipif mysql # not compatible
query I rowsort label-487
SELECT - SUM ( + 10 ) * 86 AS col1
----
-860

query I rowsort
SELECT CASE ( 43 ) WHEN + 13 THEN + 6 WHEN 60 + - 92 THEN NULL END - 6 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT - SUM( - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-489
SELECT - SUM ( - 9 ) AS col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-490
SELECT 67 DIV - - 15 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-490
SELECT 67 / - - 15 AS col2
----
4

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

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

query I rowsort
SELECT CASE 40 WHEN + 52 THEN NULL WHEN + ( + 55 ) THEN 98 ELSE 47 END + 56 + - 2 * - 59 * - 59 AS col1
----
-6859

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-493
SELECT DISTINCT - - 30 * - CAST( NULL AS SIGNED ), 40 AS col2
----
NULL
40

skipif mysql # not compatible
query II rowsort label-493
SELECT DISTINCT - - 30 * - CAST ( NULL AS INTEGER ), 40 AS col2
----
NULL
40

query I rowsort
SELECT ALL - 38 + 15
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-495
SELECT ALL - - CAST( ( CASE + 19 WHEN NULLIF ( 56, - + 74 * + 19 ) + CAST( NULL AS SIGNED ) THEN - 22 / - + 2 END ) AS SIGNED ) * 91 / + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL - - CAST ( ( CASE + 19 WHEN NULLIF ( 56, - + 74 * + 19 ) + CAST ( NULL AS INTEGER ) THEN - 22 / - + 2 END ) AS INTEGER ) * 91 / + 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-496
SELECT COUNT( * ) DIV + 86 - + - 43 + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-496
SELECT COUNT ( * ) / + 86 - + - 43 + - COUNT ( * )
----
42

query I rowsort
SELECT DISTINCT 39 + + 25 AS col0
----
64

query I rowsort
SELECT DISTINCT 43 * 82 AS col0
----
3526

query I rowsort
SELECT - - COALESCE ( - + 94, - 1, - 53 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT DISTINCT + ( + 83 ) + + + COALESCE ( + COALESCE ( - - 40, + 49 + - 55 DIV + - ( - + 21 ) + + 67, + 67 - + 52 ), + 50 )
----
123

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT + ( + 83 ) + + + COALESCE ( + COALESCE ( - - 40, + 49 + - 55 / + - ( - + 21 ) + + 67, + 67 - + 52 ), + 50 )
----
123

query I rowsort
SELECT 16 * + 37
----
592

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

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

query I rowsort
SELECT 45 + - ( + - 25 ) - NULLIF ( + 60, - 42 ) AS col0
----
10

query II rowsort
SELECT 55 + - 53 + + 88, 4 AS col2
----
90
4

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

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL + 34 * - COUNT ( * ) AS col0
----
-34

query I rowsort
SELECT 70 - - - 79
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-507
SELECT DISTINCT - 53 * 81 DIV + - 77 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT - 53 * 81 / + - 77 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT DISTINCT MAX( - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-508
SELECT DISTINCT MAX ( - 95 ) AS col2
----
-95

query I rowsort
SELECT ALL - 35 * 7
----
-245

query I rowsort
SELECT 96 * + 16
----
1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-511
SELECT 70 + COALESCE ( + 14, 78 * 55 * - 17 * 4 * - 61 + 1 + - CAST( + 89 AS SIGNED ) + - CAST( NULL AS SIGNED ) * + - 43 * - 85, 49 DIV 49 * + + CAST( NULL AS SIGNED ) DIV + + MIN( DISTINCT - 31 ) + + + 90, + - 54 ) + + 53 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-511
SELECT 70 + COALESCE ( + 14, 78 * 55 * - 17 * 4 * - 61 + 1 + - CAST ( + 89 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * + - 43 * - 85, 49 / 49 * + + CAST ( NULL AS INTEGER ) / + + MIN ( DISTINCT - 31 ) + + + 90, + - 54 ) + + 53 AS col1
----
137

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

skipif mysql # not compatible
query II rowsort label-512
SELECT 64 AS col2, COUNT ( * ) AS col2
----
64
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT + 90 * - COUNT( * ) * + 10
----
-900

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT + 90 * - COUNT ( * ) * + 10
----
-900

query I rowsort
SELECT 86 * + - ( - + 34 ) col1
----
2924

query II rowsort
SELECT DISTINCT - 28 AS col0, + 65 AS col1
----
-28
65

query I rowsort
SELECT ALL 7 * + 24 AS col1
----
168

query I rowsort
SELECT ( + 95 ) + + + 0 + + 59 AS col0
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-519
SELECT DISTINCT - CAST( - 97 AS SIGNED ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT - CAST ( - 97 AS INTEGER ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-520
SELECT 46 * - + NULLIF ( - - 0, - COUNT( - - 5 ) * + 57 ), + 23 AS col2
----
0
23

skipif mysql # not compatible
query II rowsort label-520
SELECT 46 * - + NULLIF ( - - 0, - COUNT ( - - 5 ) * + 57 ), + 23 AS col2
----
0
23

query I rowsort
SELECT ALL - 22 * + - 46 + + 74
----
1086

query I rowsort
SELECT ALL 11 * - 50 + - 19 AS col1
----
-569

query I rowsort
SELECT ALL 49 * + - 92 + - ( - 93 )
----
-4415

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL 88 + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL 88 + + COUNT ( * )
----
89

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

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

query I rowsort
SELECT ALL 32 * 26
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ( + + 61 ) * - + ( - 94 ) + + 32 + + 57 * 39 * 35 * - + 0 * 17 + COUNT( * ) * + + 96 * - + 55 * - + 78
----
417606

skipif mysql # not compatible
query I rowsort label-527
SELECT ( + + 61 ) * - + ( - 94 ) + + 32 + + 57 * 39 * 35 * - + 0 * 17 + COUNT ( * ) * + + 96 * - + 55 * - + 78
----
417606

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

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT DISTINCT + COUNT( + 24 ) + + 35 + - 6
----
30

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT + COUNT ( + 24 ) + + 35 + - 6
----
30

query I rowsort
SELECT ALL ( + 22 ) + + 65 AS col2
----
87

query I rowsort
SELECT + 98 + + 51 AS col2
----
149

query I rowsort
SELECT ALL - 52 + + 70 * - 24
----
-1732

query I rowsort
SELECT 46 * - 62 * - 27 + 24 + - 71 * + 25 + + ( ( + 38 ) )
----
75291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-534
SELECT DISTINCT + NULLIF ( 24, - + COALESCE ( - + 66, 34 * + COUNT( * ) ) * + 10 DIV 64 DIV - - COUNT( * ) - - 0 + - 93 * + 38 * + - 20 ) DIV + COALESCE ( + 94, + 86 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT + NULLIF ( 24, - + COALESCE ( - + 66, 34 * + COUNT ( * ) ) * + 10 / 64 / - - COUNT ( * ) - - 0 + - 93 * + 38 * + - 20 ) / + COALESCE ( + 94, + 86 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-535
SELECT - + 66 + + + ( + + 22 ) AS col2, + 74 * - COUNT( * ) + + + 66 + + - 54
----
-44
-62

skipif mysql # not compatible
query II rowsort label-535
SELECT - + 66 + + + ( + + 22 ) AS col2, + 74 * - COUNT ( * ) + + + 66 + + - 54
----
-44
-62

query I rowsort
SELECT - - 8 * - 67
----
-536

query I rowsort
SELECT ALL - 2 * + 66 * + 28 AS col1
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT ALL 63 - - ( 0 ) + + MIN( DISTINCT + 99 ) + - 81 * 65 + - 0
----
-5103

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL 63 - - ( 0 ) + + MIN ( DISTINCT + 99 ) + - 81 * 65 + - 0
----
-5103

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT + 74 * - - NULLIF ( - 30, - - 77 - MIN( 35 ) ) * + 64 * - 3 AS col0
----
426240

skipif mysql # not compatible
query I rowsort label-539
SELECT + 74 * - - NULLIF ( - 30, - - 77 - MIN ( 35 ) ) * + 64 * - 3 AS col0
----
426240

query I rowsort
SELECT ALL + 66 - - 39 AS col1
----
105

query II rowsort
SELECT ALL 90 col0, - 9 * - + 50 AS col0
----
90
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-542
SELECT - CAST( NULL AS SIGNED ) + 53 + - 83 * - 2 * + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-542
SELECT - CAST ( NULL AS INTEGER ) + 53 + - 83 * - 2 * + 95 AS col0
----
NULL

query I rowsort
SELECT + 15 * 48
----
720

query II rowsort
SELECT - 1 AS col2, 90
----
-1
90

query II rowsort
SELECT 20 col1, - 34 + - 99
----
20
-133

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

skipif mysql # not compatible
query I rowsort label-546
SELECT - ( + MIN ( 51 ) )
----
-51

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-548
SELECT - 10, AVG ( ALL CASE - 40 WHEN - 75 * + - 31 + - + 59 + + NULLIF ( 61, 60 ) - 29 + + - 24 + 5 * - 5 * + 80 + - CAST( NULL AS DECIMAL ) * + - ( + + 4 ) THEN - 33 WHEN - 10 THEN - CAST( NULL AS SIGNED ) WHEN 36 THEN NULL END ) * 2 AS col1
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-548
SELECT - 10, AVG ( ALL CASE - 40 WHEN - 75 * + - 31 + - + 59 + + NULLIF ( 61, 60 ) - 29 + + - 24 + 5 * - 5 * + 80 + - CAST ( NULL AS REAL ) * + - ( + + 4 ) THEN - 33 WHEN - 10 THEN - CAST ( NULL AS INTEGER ) WHEN 36 THEN NULL END ) * 2 AS col1
----
-10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT ALL NULLIF ( - 34, MIN( 40 ) * + 45 )
----
-34

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL NULLIF ( - 34, MIN ( 40 ) * + 45 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-550
SELECT DISTINCT 13, COUNT( + 92 ) + + MIN( + - 0 ) AS col1
----
13
1

skipif mysql # not compatible
query II rowsort label-550
SELECT DISTINCT 13, COUNT ( + 92 ) + + MIN ( + - 0 ) AS col1
----
13
1

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL - 4 * + MIN( DISTINCT + 13 )
----
-52

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL - 4 * + MIN ( DISTINCT + 13 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT ALL + 77 + + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL + 77 + + COUNT ( * ) AS col1
----
78

query I rowsort
SELECT DISTINCT - CASE - + 7 WHEN + 26 THEN - - 85 * + 7 END * - 86 + 12 AS col0
----
NULL

query II rowsort
SELECT ALL ( + 1 ), 0 col2
----
1
0

query I rowsort
SELECT ALL - + 89 * - 95 AS col0
----
8455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-556
SELECT ALL + 32 / - CAST( NULL AS SIGNED ) + - - MAX( ( - 78 ) ) / - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL + 32 / - CAST ( NULL AS INTEGER ) + - - MAX ( ( - 78 ) ) / - 7
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-558
SELECT ALL + ( + 27 ) * - 75 + 16 + + + 83 * + 23 * - 33 + - - 44 DIV - - 69
----
-65006

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL + ( + 27 ) * - 75 + 16 + + + 83 * + 23 * - 33 + - - 44 / - - 69
----
-65006

onlyif mysql # DIV for integer division: 
query I rowsort label-559
SELECT 19 DIV + 1 - - 24
----
43

skipif mysql # not compatible
query I rowsort label-559
SELECT 19 / + 1 - - 24
----
43

query II rowsort
SELECT + - 51 AS col0, 0 AS col0
----
-51
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-561
SELECT - 20 / - CAST( NULL AS SIGNED ) - + AVG ( + + 0 ) / + 82 + CAST( NULL AS SIGNED ) AS col0, + 7 * + - 77
----
NULL
-539

skipif mysql # not compatible
query II rowsort label-561
SELECT - 20 / - CAST ( NULL AS INTEGER ) - + AVG ( + + 0 ) / + 82 + CAST ( NULL AS INTEGER ) AS col0, + 7 * + - 77
----
NULL
-539

query I rowsort
SELECT ALL + 3 * + 26 + 87 - + - 31 AS col2
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-563
SELECT ALL - + 83 * - CAST( NULL AS SIGNED ) + + AVG ( ALL + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL - + 83 * - CAST ( NULL AS INTEGER ) + + AVG ( ALL + 53 )
----
NULL

query II rowsort
SELECT + 18 AS col0, + 78
----
18
78

onlyif mysql # aggregate syntax: 
query II rowsort label-565
SELECT ALL - COUNT( * ) * 81, + 16 * - 6 AS col0
----
-81
-96

skipif mysql # not compatible
query II rowsort label-565
SELECT ALL - COUNT ( * ) * 81, + 16 * - 6 AS col0
----
-81
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-566
SELECT + - MAX( 62 ), - 37 + ( + 31 ) - + 18 AS col0
----
-62
-24

skipif mysql # not compatible
query II rowsort label-566
SELECT + - MAX ( 62 ), - 37 + ( + 31 ) - + 18 AS col0
----
-62
-24

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-568
SELECT + MIN( + 42 ) col2, NULLIF ( CASE + 88 WHEN - CAST( NULL AS SIGNED ) + + COUNT( * ) / + 96 THEN - 68 * + 43 END, + + 10 * - 85 * - COUNT( * ) / + - COALESCE ( - COUNT( * ), - 88, + MAX( DISTINCT + ( - + 73 ) ) ) + + 98 + + + 43 + + 7 + + - 74 + - 43 * + + 27 )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-568
SELECT + MIN ( + 42 ) col2, NULLIF ( CASE + 88 WHEN - CAST ( NULL AS INTEGER ) + + COUNT ( * ) / + 96 THEN - 68 * + 43 END, + + 10 * - 85 * - COUNT ( * ) / + - COALESCE ( - COUNT ( * ), - 88, + MAX ( DISTINCT + ( - + 73 ) ) ) + + 98 + + + 43 + + 7 + + - 74 + - 43 * + + 27 )
----
42
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-569
SELECT ALL + CAST( + 10 AS SIGNED ) AS col1, COUNT( * ) + - 6 AS col2, + 39 AS col2
----
10
-5
39

skipif mysql # not compatible
query III rowsort label-569
SELECT ALL + CAST ( + 10 AS INTEGER ) AS col1, COUNT ( * ) + - 6 AS col2, + 39 AS col2
----
10
-5
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-570
SELECT DISTINCT + 73 * + CAST( - 23 AS SIGNED ) col1
----
-1679

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT + 73 * + CAST ( - 23 AS INTEGER ) col1
----
-1679

query I rowsort
SELECT + 51 - - 54 * 20 * - - 64 + + 89 * 3 + 87 AS col2
----
69525

query I rowsort
SELECT DISTINCT 74 * + + 63
----
4662

query II rowsort
SELECT - 97 + + 37 AS col0, + 91 + - 26 col2
----
-60
65

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

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

skipif mysql # not compatible
query I rowsort label-575
SELECT + 15 / + COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT + CASE 97 WHEN + COALESCE ( - + 90, - AVG ( ALL + 98 ) ) THEN + 77 + - - 55 * 19 - - - 96 + - - COUNT( * ) ELSE 34 END + + - 37
----
-3

skipif mysql # not compatible
query I rowsort label-576
SELECT + CASE 97 WHEN + COALESCE ( - + 90, - AVG ( ALL + 98 ) ) THEN + 77 + - - 55 * 19 - - - 96 + - - COUNT ( * ) ELSE 34 END + + - 37
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT + ( + + 3 ) + COUNT( * ) - + ( - 34 ) * + 20 AS col1
----
684

skipif mysql # not compatible
query I rowsort label-577
SELECT + ( + + 3 ) + COUNT ( * ) - + ( - 34 ) * + 20 AS col1
----
684

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-579
SELECT ALL 62 DIV ( COUNT( * ) ) * + 73
----
4526

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL 62 / ( COUNT ( * ) ) * + 73
----
4526

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT + 44 + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-580
SELECT + 44 + COUNT ( * ) AS col2
----
45

query II rowsort
SELECT ALL + 72 * 77 AS col0, + 82 * COALESCE ( - 63, + 69 + + 14 ) AS col0
----
5544
-5166

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT DISTINCT - ( - COALESCE ( - NULLIF ( - + 97, - COUNT( * ) ), + - CASE - 53 WHEN + COUNT( * ) THEN - 3 * 89 ELSE NULL END + + + 70 ) ) * - 38 AS col1
----
-3686

skipif mysql # not compatible
query I rowsort label-582
SELECT DISTINCT - ( - COALESCE ( - NULLIF ( - + 97, - COUNT ( * ) ), + - CASE - 53 WHEN + COUNT ( * ) THEN - 3 * 89 ELSE NULL END + + + 70 ) ) * - 38 AS col1
----
-3686

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ALL 2 + + 47 - + COUNT( DISTINCT 75 ) + 62
----
110

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL 2 + + 47 - + COUNT ( DISTINCT 75 ) + 62
----
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-584
SELECT DISTINCT 61 + - COUNT( * ) DIV - 85
----
61

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT 61 + - COUNT ( * ) / - 85
----
61

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

onlyif mysql # DIV for integer division: 
query II rowsort label-586
SELECT + ( - 31 ) DIV - - 14, + 40 * - 78 AS col0
----
-2
-3120

skipif mysql # not compatible
query II rowsort label-586
SELECT + ( - 31 ) / - - 14, + 40 * - 78 AS col0
----
-2
-3120

query II rowsort
SELECT - 90 + 75 AS col2, - 68
----
-15
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-588
SELECT - CAST( + - NULLIF ( 62, - 14 * - 12 ) AS SIGNED ), - 43 AS col2
----
62
-43

skipif mysql # not compatible
query II rowsort label-588
SELECT - CAST ( + - NULLIF ( 62, - 14 * - 12 ) AS INTEGER ), - 43 AS col2
----
62
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT - 66 + - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-589
SELECT - 66 + - COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT + SUM( ALL + 91 ) + + 64 * 75
----
4891

skipif mysql # not compatible
query I rowsort label-590
SELECT + SUM ( ALL + 91 ) + + 64 * 75
----
4891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-591
SELECT + + CAST( NULL AS SIGNED ) + + NULLIF ( 17, CASE 52 WHEN 24 + + 54 + - 79 THEN - AVG ( DISTINCT - 7 ) WHEN + - 70 THEN + 53 + NULLIF ( - + 78, 21 * + 55 + - 85 + - - 99 / + 72 * ( + 18 ) + - - 67 ) + 0 - 13 + + CAST( CAST( - 6 AS SIGNED ) AS SIGNED ) * - COUNT( * ) * + NULLIF ( - CAST( NULL AS SIGNED ), + 90 ) END / + + ( + 91 ) + + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-591
SELECT + + CAST ( NULL AS INTEGER ) + + NULLIF ( 17, CASE 52 WHEN 24 + + 54 + - 79 THEN - AVG ( DISTINCT - 7 ) WHEN + - 70 THEN + 53 + NULLIF ( - + 78, 21 * + 55 + - 85 + - - 99 / + 72 * ( + 18 ) + - - 67 ) + 0 - 13 + + CAST ( CAST ( - 6 AS INTEGER ) AS INTEGER ) * - COUNT ( * ) * + NULLIF ( - CAST ( NULL AS INTEGER ), + 90 ) END / + + ( + 91 ) + + 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-592
SELECT COALESCE ( 65, + 56 ), - MIN( DISTINCT - 98 ) * 94 * + + 59 * + - 74 AS col2
----
65
-40219592

skipif mysql # not compatible
query II rowsort label-592
SELECT COALESCE ( 65, + 56 ), - MIN ( DISTINCT - 98 ) * 94 * + + 59 * + - 74 AS col2
----
65
-40219592

onlyif mysql # aggregate syntax: 
query II rowsort label-593
SELECT DISTINCT - + SUM( 73 ) + 12 + - 86 - - 68 AS col0, 11 - - 93
----
-79
104

skipif mysql # not compatible
query II rowsort label-593
SELECT DISTINCT - + SUM ( 73 ) + 12 + - 86 - - 68 AS col0, 11 - - 93
----
-79
104

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-594
SELECT ALL 78 + - AVG ( CAST( NULL AS DECIMAL ) ) * - 22 + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL 78 + - AVG ( CAST ( NULL AS REAL ) ) * - 22 + - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT DISTINCT - 18 + - 27 - + 16 + + COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT - 18 + - 27 - + 16 + + COUNT ( * ) AS col1
----
-60

query I rowsort
SELECT NULLIF ( - 22, - + 55 ) * + 9 * + 90 AS col0
----
-17820

query I rowsort
SELECT ALL + - 69 * + + 6 + + - 28 AS col1
----
-442

query I rowsort
SELECT 55 + - - 74 col0
----
129

query II rowsort
SELECT 1 + - + 56 AS col2, 45 + + 98
----
-55
143

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT ALL - + COUNT( 9 ) - - 64 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL - + COUNT ( 9 ) - - 64 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-601
SELECT 2 * + - 72 * - CASE NULLIF ( + + 35, MAX( DISTINCT + + 47 ) + + + 88 ) WHEN + 87 THEN 72 END + - CAST( + 45 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-601
SELECT 2 * + - 72 * - CASE NULLIF ( + + 35, MAX ( DISTINCT + + 47 ) + + + 88 ) WHEN + 87 THEN 72 END + - CAST ( + 45 AS INTEGER )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-603
SELECT CASE - - 59 WHEN + + 49 THEN - 49 WHEN 82 THEN NULL WHEN + 90 * + COALESCE ( - 71, + - 29 - - 46 * + 22, - CAST( NULL AS SIGNED ) / - 3 ) - - - 35 THEN NULL END + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT CASE - - 59 WHEN + + 49 THEN - 49 WHEN 82 THEN NULL WHEN + 90 * + COALESCE ( - 71, + - 29 - - 46 * + 22, - CAST ( NULL AS INTEGER ) / - 3 ) - - - 35 THEN NULL END + - 28
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-604
SELECT ALL + 3 DIV - - 41
----
0

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL + 3 / - - 41
----
0

query I rowsort
SELECT 54 * - 27
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT DISTINCT - 30 * + COUNT( * ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT - 30 * + COUNT ( * ) col2
----
-30

query I rowsort
SELECT DISTINCT 21 * 40
----
840

query I rowsort
SELECT 80 * + 97
----
7760

onlyif mysql # aggregate syntax: 
query II rowsort label-609
SELECT DISTINCT + 31 * - - 58 * + COUNT( ALL + 3 ), + ( - 69 ) AS col2
----
1798
-69

skipif mysql # not compatible
query II rowsort label-609
SELECT DISTINCT + 31 * - - 58 * + COUNT ( ALL + 3 ), + ( - 69 ) AS col2
----
1798
-69

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

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL - 76 + - - COUNT ( * ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-611
SELECT - 8 AS col2, + CAST( NULL AS SIGNED ) AS col2
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-611
SELECT - 8 AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
-8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT DISTINCT - 59 + 91 + - + SUM( 65 )
----
-33

skipif mysql # not compatible
query I rowsort label-612
SELECT DISTINCT - 59 + 91 + - + SUM ( 65 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ALL 96 + - + COUNT( * ) * + - 84
----
180

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL 96 + - + COUNT ( * ) * + - 84
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-614
SELECT SUM( 20 ) * - 98 AS col1, 34 DIV 97 AS col0
----
-1960
0

skipif mysql # not compatible
query II rowsort label-614
SELECT SUM ( 20 ) * - 98 AS col1, 34 / 97 AS col0
----
-1960
0

query I rowsort
SELECT ALL 48 + 66 AS col2
----
114

query I rowsort
SELECT DISTINCT ( 30 ) + 1 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-617
SELECT 90 / - - CASE + CAST( + - 36 AS SIGNED ) WHEN COUNT( * ) * - + 54 * - + 59 - 6 THEN - + 16 WHEN - 85 * 35 THEN NULL ELSE NULL END * 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-617
SELECT 90 / - - CASE + CAST ( + - 36 AS INTEGER ) WHEN COUNT ( * ) * - + 54 * - + 59 - 6 THEN - + 16 WHEN - 85 * 35 THEN NULL ELSE NULL END * 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL - CASE 28 WHEN + 9 + + - ( + COUNT( * ) ) THEN - 63 WHEN AVG ( DISTINCT - 20 ) THEN + - 90 * 11 + - AVG ( ALL - + ( - + 82 ) ) + - 57 END / + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - CASE 28 WHEN + 9 + + - ( + COUNT ( * ) ) THEN - 63 WHEN AVG ( DISTINCT - 20 ) THEN + - 90 * 11 + - AVG ( ALL - + ( - + 82 ) ) + - 57 END / + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL - NULLIF ( + - COUNT( * ), - - 27 ) * - ( + 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL - NULLIF ( + - COUNT ( * ), - - 27 ) * - ( + 21 ) AS col0
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT MIN( DISTINCT + - ( + 54 ) ) * + 70
----
-3780

skipif mysql # not compatible
query I rowsort label-622
SELECT MIN ( DISTINCT + - ( + 54 ) ) * + 70
----
-3780

onlyif mysql # aggregate syntax: 
query II rowsort label-623
SELECT DISTINCT - NULLIF ( - 91, + - COALESCE ( - 61, + + ( - - 59 ), 35 ) + - 70 + - CASE + 89 WHEN - COALESCE ( + + 91, 30 + + - COUNT( * ) * ( + 79 ), COUNT( * ) ) THEN 91 ELSE + + 62 + + 58 + + 60 * + 15 END - - 97 * + - 39 - 36 / + + COUNT( * ) ), 1 * + - ( - ( 87 ) ) AS col0
----
91
87

skipif mysql # not compatible
query II rowsort label-623
SELECT DISTINCT - NULLIF ( - 91, + - COALESCE ( - 61, + + ( - - 59 ), 35 ) + - 70 + - CASE + 89 WHEN - COALESCE ( + + 91, 30 + + - COUNT ( * ) * ( + 79 ), COUNT ( * ) ) THEN 91 ELSE + + 62 + + 58 + + 60 * + 15 END - - 97 * + - 39 - 36 / + + COUNT ( * ) ), 1 * + - ( - ( 87 ) ) AS col0
----
91
87

query I rowsort
SELECT DISTINCT - - NULLIF ( + - 7, 2 ) AS col2
----
-7

query I rowsort
SELECT 39 - - + 36 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-626
SELECT - ( 12 ) * - COALESCE ( - 65, CAST( + - NULLIF ( + - COALESCE ( + + 36, - - 49, - 17 ), + 21 ) AS SIGNED ) ) * 4 + - 60 + - COUNT( * ) + 59
----
-3122

skipif mysql # not compatible
query I rowsort label-626
SELECT - ( 12 ) * - COALESCE ( - 65, CAST ( + - NULLIF ( + - COALESCE ( + + 36, - - 49, - 17 ), + 21 ) AS INTEGER ) ) * 4 + - 60 + - COUNT ( * ) + 59
----
-3122

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT ALL - CASE + COUNT( * ) WHEN - - 5 * COUNT( * ) THEN - - 33 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL - CASE + COUNT ( * ) WHEN - - 5 * COUNT ( * ) THEN - - 33 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 28 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-629
SELECT + 45 * CAST( + 27 AS SIGNED ), ( + - COUNT( * ) ) AS col2
----
1215
-1

skipif mysql # not compatible
query II rowsort label-629
SELECT + 45 * CAST ( + 27 AS INTEGER ), ( + - COUNT ( * ) ) AS col2
----
1215
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT ALL + COUNT( * ) * 27 * + SUM( ALL + 25 ) AS col0
----
675

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL + COUNT ( * ) * 27 * + SUM ( ALL + 25 ) AS col0
----
675

query I rowsort
SELECT COALESCE ( - 59, - 75 )
----
-59

query I rowsort
SELECT ALL + 16 * - 93 * 27
----
-40176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-633
SELECT CAST( - SUM( ALL - 41 ) AS SIGNED ) - + 74 + - 56 - - 23 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-633
SELECT CAST ( - SUM ( ALL - 41 ) AS INTEGER ) - + 74 + - 56 - - 23 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-634
SELECT ALL 33 * COUNT( * ) AS col1, 46
----
33
46

skipif mysql # not compatible
query II rowsort label-634
SELECT ALL 33 * COUNT ( * ) AS col1, 46
----
33
46

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT DISTINCT 91 + - MAX( DISTINCT - 27 ) * - 13 AS col2
----
-260

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT 91 + - MAX ( DISTINCT - 27 ) * - 13 AS col2
----
-260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-636
SELECT ALL - AVG ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 89 * - 21 col1
----
-1869

query I rowsort
SELECT ALL + 45 + - - 2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT DISTINCT CASE COUNT( * ) WHEN + - CAST( 57 AS SIGNED ) * - COUNT( * ) THEN NULL ELSE + 58 END col0
----
58

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT CASE COUNT ( * ) WHEN + - CAST ( 57 AS INTEGER ) * - COUNT ( * ) THEN NULL ELSE + 58 END col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT ALL 8 + NULLIF ( - 63, 22 + + - 11 + - MAX( 20 ) ) + + - 97 * - - NULLIF ( + + 40, + 46 ) * COALESCE ( - + CASE WHEN NOT NULL IS NOT NULL THEN - 31 END, 58 ) * + 33 + + + 41 + + 35 * - + COUNT( * ) * + 94 + - 43 - + 35 * - + 3 * - 40 * + 27 * + 83
----
-13384787

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL 8 + NULLIF ( - 63, 22 + + - 11 + - MAX ( 20 ) ) + + - 97 * - - NULLIF ( + + 40, + 46 ) * COALESCE ( - + CASE WHEN NOT NULL IS NOT NULL THEN - 31 END, 58 ) * + 33 + + + 41 + + 35 * - + COUNT ( * ) * + 94 + - 43 - + 35 * - + 3 * - 40 * + 27 * + 83
----
-13384787

query I rowsort
SELECT ALL - 72 + + 79
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT MIN( + 5 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT MIN ( + 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT ALL - NULLIF ( + - NULLIF ( + 97, + 11 ), + + MAX( DISTINCT 3 ) ) + - - 3 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL - NULLIF ( + - NULLIF ( + 97, + 11 ), + + MAX ( DISTINCT 3 ) ) + - - 3 AS col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-645
SELECT 95 + - COUNT( * ), 19 + - 16 + + + 65 AS col1
----
94
68

skipif mysql # not compatible
query II rowsort label-645
SELECT 95 + - COUNT ( * ), 19 + - 16 + + + 65 AS col1
----
94
68

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL + MAX( DISTINCT + 1 ) + + 40 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL + MAX ( DISTINCT + 1 ) + + 40 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT DISTINCT MIN( ALL + 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT MIN ( ALL + 91 ) AS col2
----
91

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

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL 42 + + COUNT ( * ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT - ( COALESCE ( + + COALESCE ( + 16, - 89, COUNT( * ) ), - + 80 ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-649
SELECT - ( COALESCE ( + + COALESCE ( + 16, - 89, COUNT ( * ) ), - + 80 ) ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT ALL + - COUNT( * ) * 36 * - 21 AS col2
----
756

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL + - COUNT ( * ) * 36 * - 21 AS col2
----
756

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

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

query II rowsort
SELECT + 26 + 84, + 28 * - 80 col2
----
110
-2240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-653
SELECT - 66 * + + 42, CAST( + + 80 AS SIGNED ) * + 33 AS col2
----
-2772
2640

skipif mysql # not compatible
query II rowsort label-653
SELECT - 66 * + + 42, CAST ( + + 80 AS INTEGER ) * + 33 AS col2
----
-2772
2640

query I rowsort
SELECT + 35 * + - 71 AS col0
----
-2485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT - - NULLIF ( - - CAST( + 14 AS SIGNED ), - - 54 + - 43 )
----
14

skipif mysql # not compatible
query I rowsort label-655
SELECT - - NULLIF ( - - CAST ( + 14 AS INTEGER ), - - 54 + - 43 )
----
14

query I rowsort
SELECT + + 13 * - + 97 * 21 AS col0
----
-26481

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

query I rowsort
SELECT DISTINCT 50 * + 52 * + 36
----
93600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-659
SELECT ALL - MAX( - - 94 ) DIV - - NULLIF ( 20, + COALESCE ( + 77, - - 85 * 21 * 59 + + 19 DIV + - 46 ) ) + - ( + 50 )
----
-54

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL - MAX ( - - 94 ) / - - NULLIF ( 20, + COALESCE ( + 77, - - 85 * 21 * 59 + + 19 / + - 46 ) ) + - ( + 50 )
----
-54

query I rowsort
SELECT + ( - 96 ) * - 98 * 96 col1
----
903168

query I rowsort
SELECT DISTINCT 8 * - 32 + - 56 AS col0
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT + 82 * - COALESCE ( - 27, + 46, + 56 ) + - 37 * + - COUNT( DISTINCT 38 )
----
2251

skipif mysql # not compatible
query I rowsort label-662
SELECT + 82 * - COALESCE ( - 27, + 46, + 56 ) + - 37 * + - COUNT ( DISTINCT 38 )
----
2251

query II rowsort
SELECT ALL - 46 * + - 78 + + + ( + 36 ) col0, + 21 + 73 AS col0
----
3624
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-664
SELECT COALESCE ( - + CASE + COUNT( * ) WHEN - SUM( ALL 66 ) THEN + 89 END, SUM( - CAST( NULL AS DECIMAL ) ) ) * COUNT( * ) + + - 56 * 66 * + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-664
SELECT COALESCE ( - + CASE + COUNT ( * ) WHEN - SUM ( ALL 66 ) THEN + 89 END, SUM ( - CAST ( NULL AS REAL ) ) ) * COUNT ( * ) + + - 56 * 66 * + - 10
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-666
SELECT - SUM( + 81 ) * - ( - 26 ) - - 79, CAST( NULL AS SIGNED ) * + 4 AS col1
----
-2027
NULL

skipif mysql # not compatible
query II rowsort label-666
SELECT - SUM ( + 81 ) * - ( - 26 ) - - 79, CAST ( NULL AS INTEGER ) * + 4 AS col1
----
-2027
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL MAX( ALL 68 ) * + 73 + + 18 + 7 * COUNT( * ) col2
----
4989

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL MAX ( ALL 68 ) * + 73 + + 18 + 7 * COUNT ( * ) col2
----
4989

onlyif mysql # aggregate syntax: 
query II rowsort label-668
SELECT ALL + CASE + 70 WHEN - - COUNT( DISTINCT - 30 ) THEN NULL ELSE - - 31 * + + 65 END col0, 24
----
2015
24

skipif mysql # not compatible
query II rowsort label-668
SELECT ALL + CASE + 70 WHEN - - COUNT ( DISTINCT - 30 ) THEN NULL ELSE - - 31 * + + 65 END col0, 24
----
2015
24

onlyif mysql # DIV for integer division: 
query II rowsort label-669
SELECT ALL - 89 * + 46 + 80 DIV - 18 - 10 AS col2, - 68 + - 89
----
-4108
-157

skipif mysql # not compatible
query II rowsort label-669
SELECT ALL - 89 * + 46 + 80 / - 18 - 10 AS col2, - 68 + - 89
----
-4108
-157

onlyif mysql # DIV for integer division: 
query I rowsort label-670
SELECT + 26 * - ( + 84 ) + 4 - + + NULLIF ( + 83, + 28 ) + 62 DIV - 37 AS col2
----
-2264

skipif mysql # not compatible
query I rowsort label-670
SELECT + 26 * - ( + 84 ) + 4 - + + NULLIF ( + 83, + 28 ) + 62 / - 37 AS col2
----
-2264

query I rowsort
SELECT NULLIF ( ( + 39 ), - 45 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-672
SELECT - 32 * + COALESCE ( + - NULLIF ( - - 45, 83 - + 83 ), + 55, 38 * MAX( 67 ) / + - COUNT( * ) + + 39 + - + 32 ) + - 32 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT - 32 * + COALESCE ( + - NULLIF ( - - 45, 83 - + 83 ), + 55, 38 * MAX ( 67 ) / + - COUNT ( * ) + + 39 + - + 32 ) + - 32 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT ALL 79 DIV - + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL 79 / - + 86 AS col0
----
0

query II rowsort
SELECT + COALESCE ( 95, + 7 ) AS col1, - 36 AS col0
----
95
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT - 91 + - MIN( - 40 )
----
-51

skipif mysql # not compatible
query I rowsort label-675
SELECT - 91 + - MIN ( - 40 )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-676
SELECT + 2 * - ( - - CASE 36 WHEN 97 THEN + 2 + COUNT( * ) DIV 61 WHEN + 67 * + - COUNT( * ) + 18 THEN NULL ELSE + 77 END ) AS col2
----
-154

skipif mysql # not compatible
query I rowsort label-676
SELECT + 2 * - ( - - CASE 36 WHEN 97 THEN + 2 + COUNT ( * ) / 61 WHEN + 67 * + - COUNT ( * ) + 18 THEN NULL ELSE + 77 END ) AS col2
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT + 55 DIV + 70 * - 87 * 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-677
SELECT + 55 / + 70 * - 87 * 79 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL CASE + 28 WHEN 21 * - COUNT( * ) * - + 93 + 87 THEN - 11 - - - 28 + - - 47 * + 44 - - - 86 * + ( + + 54 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL CASE + 28 WHEN 21 * - COUNT ( * ) * - + 93 + 87 THEN - 11 - - - 28 + - - 47 * + 44 - - - 86 * + ( + + 54 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-680
SELECT COUNT( * ) AS col1, 47 + COUNT( * ) AS col0
----
1
48

skipif mysql # not compatible
query II rowsort label-680
SELECT COUNT ( * ) AS col1, 47 + COUNT ( * ) AS col0
----
1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT ALL COUNT( * ) - + - 62 col1
----
63

skipif mysql # not compatible
query I rowsort label-681
SELECT ALL COUNT ( * ) - + - 62 col1
----
63

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT - 97 * + + CAST( - MIN( + 60 ) AS SIGNED ) + ( + 8 ) + - - 49
----
5877

skipif mysql # not compatible
query I rowsort label-683
SELECT - 97 * + + CAST ( - MIN ( + 60 ) AS INTEGER ) + ( + 8 ) + - - 49
----
5877

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-684
SELECT DISTINCT - 30 DIV + 83 * + 84 col0, 8 * + COUNT( * )
----
0
8

skipif mysql # not compatible
query II rowsort label-684
SELECT DISTINCT - 30 / + 83 * + 84 col0, 8 * + COUNT ( * )
----
0
8

query I rowsort
SELECT - 41 * 47 * - 60 * 43
----
4971660

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

skipif mysql # not compatible
query I rowsort label-686
SELECT - + COUNT ( * ) / - - 25 + - 81 * - COUNT ( * )
----
81

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

skipif mysql # not compatible
query I rowsort label-687
SELECT - + 3 * - 68 * COUNT ( * ) AS col2
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-688
SELECT DISTINCT - ( - 51 ) DIV 94 - 23
----
-23

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT - ( - 51 ) / 94 - 23
----
-23

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

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

query I rowsort
SELECT DISTINCT + - 25 * 59
----
-1475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT ALL COALESCE ( + ( - - 38 ), - 51 - + 74, CAST( - - 90 AS SIGNED ) )
----
38

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL COALESCE ( + ( - - 38 ), - 51 - + 74, CAST ( - - 90 AS INTEGER ) )
----
38

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

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

query I rowsort
SELECT DISTINCT - 45 * 61 AS col1
----
-2745

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT + - 76 + + ( - COUNT( * ) ) + + 77 * 27
----
2002

skipif mysql # not compatible
query I rowsort label-695
SELECT + - 76 + + ( - COUNT ( * ) ) + + 77 * 27
----
2002

query I rowsort
SELECT - + 7 * - + 1 + 34 AS col0
----
41

query I rowsort
SELECT + + 1 + - + 47 * 76 * + 38
----
-135735

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT ALL - 91 DIV + 48 + + 90 + + + 64 + 27 + - 51
----
129

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL - 91 / + 48 + + 90 + + + 64 + 27 + - 51
----
129

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

query I rowsort
SELECT - 2 * 74
----
-148

query I rowsort
SELECT - ( - 60 ) + 94 AS col1
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-702
SELECT ALL 91 DIV 16 + - 66 * 58 DIV COALESCE ( + ( - CASE 17 WHEN + 70 THEN + + 8 * + + CAST( NULL AS SIGNED ) * 64 + + 87 DIV - 21 ELSE ( ( + - 80 ) ) * - + 71 + 53 DIV - + COUNT( * ) + + 68 - - + 98 * SUM( - CAST( NULL AS SIGNED ) ) END ), + 10 * + 58 * - 38 * + - 90 )
----
5

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL 91 / 16 + - 66 * 58 / COALESCE ( + ( - CASE 17 WHEN + 70 THEN + + 8 * + + CAST ( NULL AS INTEGER ) * 64 + + 87 / - 21 ELSE ( ( + - 80 ) ) * - + 71 + 53 / - + COUNT ( * ) + + 68 - - + 98 * SUM ( - CAST ( NULL AS INTEGER ) ) END ), + 10 * + 58 * - 38 * + - 90 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-703
SELECT CAST( SUM( DISTINCT + 28 ) AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-703
SELECT CAST ( SUM ( DISTINCT + 28 ) AS INTEGER )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT ALL - 45 DIV 42 DIV 46 * + 99 * - 86 + + + 48 + - ( - 31 ) DIV + 16 + + 69
----
118

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - 45 / 42 / 46 * + 99 * - 86 + + + 48 + - ( - 31 ) / + 16 + + 69
----
118

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT 90 DIV ( 48 ) - + - 45 + + - 73 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-707
SELECT 90 / ( 48 ) - + - 45 + + - 73 AS col1
----
-27

query I rowsort
SELECT ALL 79 * - 31 col1
----
-2449

query I rowsort
SELECT DISTINCT NULLIF ( - - ( 76 ), - 12 + - - 22 + - - ( + + 15 ) ) * + 18 col1
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-710
SELECT + NULLIF ( - 97, + 68 * + + 51 * 63 * + NULLIF ( + CAST( + 19 AS SIGNED ), 9 * 82 + 96 ) / - - ( + 52 ) - - NULLIF ( + COUNT( * ), 19 ) * + 99 ) - + + 60 AS col1
----
-157

skipif mysql # not compatible
query I rowsort label-710
SELECT + NULLIF ( - 97, + 68 * + + 51 * 63 * + NULLIF ( + CAST ( + 19 AS INTEGER ), 9 * 82 + 96 ) / - - ( + 52 ) - - NULLIF ( + COUNT ( * ), 19 ) * + 99 ) - + + 60 AS col1
----
-157

query I rowsort
SELECT ALL 73 * + 38 AS col2
----
2774

query II rowsort
SELECT + 59, - 73 col1
----
59
-73

query II rowsort
SELECT ALL - 79, 91 - - 86 + - 70 AS col1
----
-79
107

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-715
SELECT DISTINCT MAX( DISTINCT 16 ) - + ( 48 ) + - - ( 38 ), - 26 + - 59 DIV - 15 AS col1, + - 21 AS col1
----
6
-23
-21

skipif mysql # not compatible
query III rowsort label-715
SELECT DISTINCT MAX ( DISTINCT 16 ) - + ( 48 ) + - - ( 38 ), - 26 + - 59 / - 15 AS col1, + - 21 AS col1
----
6
-23
-21

query I rowsort
SELECT 40 - + 13
----
27

query I rowsort
SELECT 10 * 89 AS col1
----
890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-718
SELECT + 25 + + 26 + + CAST( NULL AS SIGNED ) + - 41 / 19 + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT + 25 + + 26 + + CAST ( NULL AS INTEGER ) + - 41 / 19 + 87 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-719
SELECT ALL + 9 AS col1, 28 / - CAST( NULL AS SIGNED ) * - 1, + + 53 col1
----
9
NULL
53

skipif mysql # not compatible
query III rowsort label-719
SELECT ALL + 9 AS col1, 28 / - CAST ( NULL AS INTEGER ) * - 1, + + 53 col1
----
9
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT + 9 * - MAX( + 3 ) - + ( - 99 )
----
72

skipif mysql # not compatible
query I rowsort label-720
SELECT + 9 * - MAX ( + 3 ) - + ( - 99 )
----
72

query I rowsort
SELECT ALL - + NULLIF ( + - 53, - 60 ) * 11 AS col2
----
583

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

skipif mysql # not compatible
query I rowsort label-722
SELECT 42 / COUNT ( * )
----
42

query I rowsort
SELECT 45 + + + 25 * + 9 + + 7 + + 65
----
342

query II rowsort
SELECT - - 76 AS col2, - 26
----
76
-26

query I rowsort
SELECT DISTINCT + 85 + 50
----
135

query I rowsort
SELECT - 41 * + ( - 37 )
----
1517

query II rowsort
SELECT DISTINCT - 73 col2, - ( - - 42 ) AS col0
----
-73
-42

query I rowsort
SELECT DISTINCT + + 18 + + - 86 + 99 * 15 AS col0
----
1417

query I rowsort
SELECT ALL - - ( 52 ) + 18 + + 91
----
161

query I rowsort
SELECT ALL + 92 + 93 + + - ( + 28 ) AS col1
----
157

query II rowsort
SELECT - + 37, + 0 + 19 AS col2
----
-37
19

query II rowsort
SELECT + 78, 46 * 38 col1
----
78
1748

query I rowsort
SELECT ALL - 0 * - 95 + 65
----
65

query II rowsort
SELECT - 28 AS col1, 13
----
-28
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT ALL NULLIF ( + 40, 17 ) + - MAX( + 51 )
----
-11

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL NULLIF ( + 40, 17 ) + - MAX ( + 51 )
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-737
SELECT ALL 92 + 22, 68 * - - NULLIF ( - ( - + 40 ), COUNT( * ) ) col1
----
114
2720

skipif mysql # not compatible
query II rowsort label-737
SELECT ALL 92 + 22, 68 * - - NULLIF ( - ( - + 40 ), COUNT ( * ) ) col1
----
114
2720

query I rowsort
SELECT ALL - 86 * - + 16 AS col2
----
1376

query II rowsort
SELECT DISTINCT - ( 67 ) AS col2, 31 + 31
----
-67
62

query I rowsort
SELECT DISTINCT - 68 * 11 AS col2
----
-748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-741
SELECT CAST( NULL AS SIGNED ) / - + 53 + + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-741
SELECT CAST ( NULL AS INTEGER ) / - + 53 + + + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT - 36 * + COUNT( * ) + - 48
----
-84

skipif mysql # not compatible
query I rowsort label-742
SELECT - 36 * + COUNT ( * ) + - 48
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT ALL - CASE + + 24 WHEN 22 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL - CASE + + 24 WHEN 22 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT 14 * + - 82 + - 24 - - 4
----
-1168

query I rowsort
SELECT 4 * + 74 * - 67 AS col2
----
-19832

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT 11 DIV 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-746
SELECT 11 / 35 AS col1
----
0

query I rowsort
SELECT DISTINCT ( - 64 ) * + 2 - - 94 - 29 AS col2
----
-63

query I rowsort
SELECT ALL 83 * - 88 * + - 95
----
693880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-749
SELECT COUNT( * ) DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT COUNT ( * ) / 92
----
0

query I rowsort
SELECT + + 35 * + 72 + - 99 AS col0
----
2421

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

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

query II rowsort
SELECT DISTINCT + - 54 * - 35, ( + 21 ) AS col1
----
1890
21

query I rowsort
SELECT ALL - 11 * + 49 * + + 38 AS col2
----
-20482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-754
SELECT + 55 * CAST( - 69 AS SIGNED )
----
-3795

skipif mysql # not compatible
query I rowsort label-754
SELECT + 55 * CAST ( - 69 AS INTEGER )
----
-3795

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT - MIN( - 14 ) + + 38 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT - MIN ( - 14 ) + + 38 AS col2
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-756
SELECT ALL MIN( ALL 14 ) col0, - 58
----
14
-58

skipif mysql # not compatible
query II rowsort label-756
SELECT ALL MIN ( ALL 14 ) col0, - 58
----
14
-58

query I rowsort
SELECT ALL ( - + 26 ) col1
----
-26

query I rowsort
SELECT ALL - 56 + + 19
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-759
SELECT ALL - 40 * - + ( 68 ) + COUNT( * ) - COUNT( * ) col2, + 86
----
2720
86

skipif mysql # not compatible
query II rowsort label-759
SELECT ALL - 40 * - + ( 68 ) + COUNT ( * ) - COUNT ( * ) col2, + 86
----
2720
86

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-761
SELECT + 39 * ( - 24 ) DIV - - 58 + - 40, CASE 10 WHEN + ( - 35 ) * ( - 54 ) * + 99 - - COUNT( * ) * + - 2 THEN - 68 * + ( + 29 ) ELSE NULL END AS col0
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-761
SELECT + 39 * ( - 24 ) / - - 58 + - 40, CASE 10 WHEN + ( - 35 ) * ( - 54 ) * + 99 - - COUNT ( * ) * + - 2 THEN - 68 * + ( + 29 ) ELSE NULL END AS col0
----
-56
NULL

query I rowsort
SELECT 29 * + 7 col2
----
203

query I rowsort
SELECT - ( + COALESCE ( + + 30, - - 3 ) ) AS col2
----
-30

query I rowsort
SELECT - 62 - - 15
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-765
SELECT ALL + 46 + - + 6, + CAST( NULL AS DECIMAL ) * 54 * + + 15 + - - 62 col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-765
SELECT ALL + 46 + - + 6, + CAST ( NULL AS REAL ) * 54 * + + 15 + - - 62 col2
----
40
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-766
SELECT 8 * - - CASE - AVG ( COALESCE ( CAST( NULL AS SIGNED ), + + 25 ) ) WHEN - 83 THEN NULL WHEN + + 73 + + + 56 THEN NULL ELSE 18 END col2
----
144

skipif mysql # not compatible
query I rowsort label-766
SELECT 8 * - - CASE - AVG ( COALESCE ( CAST ( NULL AS INTEGER ), + + 25 ) ) WHEN - 83 THEN NULL WHEN + + 73 + + + 56 THEN NULL ELSE 18 END col2
----
144

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT DISTINCT + 13 + - 67 DIV 79 col1
----
13

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT + 13 + - 67 / 79 col1
----
13

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

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

query I rowsort
SELECT 99 * + - 17
----
-1683

query I rowsort
SELECT 5 + 20
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-772
SELECT DISTINCT COUNT( * ) - + NULLIF ( SUM( 65 ), - 61 + + 37 - CASE 15 WHEN + 91 + - AVG ( 34 ) * - 31 THEN - 40 WHEN + - 83 THEN + - 93 + + 7 + + 2 * - - 37 * + - 89 + 49 * CAST( + + 84 AS SIGNED ) * + ( 14 ) WHEN MIN( CAST( - 20 AS SIGNED ) ) * - 77 + - 20 THEN NULL WHEN + - 46 + - 46 * + 28 * 97 THEN NULL ELSE + 71 + + - 27 END + 99 * - - 64 * + ( - + 40 ) + + + CASE + - 92 WHEN - - CAST( NULL AS SIGNED ) + + 10 THEN 31 - 75 * - 12 WHEN + 86 THEN NULL END + COUNT( * ) * 16 * + 19 )
----
-64

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT COUNT ( * ) - + NULLIF ( SUM ( 65 ), - 61 + + 37 - CASE 15 WHEN + 91 + - AVG ( 34 ) * - 31 THEN - 40 WHEN + - 83 THEN + - 93 + + 7 + + 2 * - - 37 * + - 89 + 49 * CAST ( + + 84 AS INTEGER ) * + ( 14 ) WHEN MIN ( CAST ( - 20 AS INTEGER ) ) * - 77 + - 20 THEN NULL WHEN + - 46 + - 46 * + 28 * 97 THEN NULL ELSE + 71 + + - 27 END + 99 * - - 64 * + ( - + 40 ) + + + CASE + - 92 WHEN - - CAST ( NULL AS INTEGER ) + + 10 THEN 31 - 75 * - 12 WHEN + 86 THEN NULL END + COUNT ( * ) * 16 * + 19 )
----
-64

query II rowsort
SELECT ALL 36 col0, 50 * 34
----
36
1700

query I rowsort
SELECT ALL + 96 * - - 13 - + - 70
----
1318

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT CAST( - - 19 AS SIGNED ) * 75 AS col0
----
1425

skipif mysql # not compatible
query I rowsort label-775
SELECT CAST ( - - 19 AS INTEGER ) * 75 AS col0
----
1425

query I rowsort
SELECT 24 * + 82
----
1968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-777
SELECT COUNT( * ) DIV + COALESCE ( - COUNT( DISTINCT CASE + 67 WHEN - - 37 THEN NULL ELSE - 46 * + - 46 END ), + 80 ) * COUNT( * ) + + 42 + + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-777
SELECT COUNT ( * ) / + COALESCE ( - COUNT ( DISTINCT CASE + 67 WHEN - - 37 THEN NULL ELSE - 46 * + - 46 END ), + 80 ) * COUNT ( * ) + + 42 + + - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT NULLIF ( - ( + + COUNT( * ) ), + COUNT( * ) - 68 + - 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-778
SELECT NULLIF ( - ( + + COUNT ( * ) ), + COUNT ( * ) - 68 + - 48 ) AS col1
----
-1

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

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

query I rowsort
SELECT DISTINCT + 0 * - 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL + NULLIF ( + ( - COALESCE ( 31, - 58 * + ( + - NULLIF ( + 60, - COUNT( * ) + - 55 ) ) + + 28 * + 23 * - 44, 66 + - COUNT( * ) ) ), - + 91 / + 71 )
----
-31

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL + NULLIF ( + ( - COALESCE ( 31, - 58 * + ( + - NULLIF ( + 60, - COUNT ( * ) + - 55 ) ) + + 28 * + 23 * - 44, 66 + - COUNT ( * ) ) ), - + 91 / + 71 )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-782
SELECT - 8 * + + COALESCE ( - COUNT( * ), CAST( + CAST( 10 AS SIGNED ) AS SIGNED ) + COUNT( * ) + 45 + 83 * - 63 * - + 51 * - - 66 )
----
8

skipif mysql # not compatible
query I rowsort label-782
SELECT - 8 * + + COALESCE ( - COUNT ( * ), CAST ( + CAST ( 10 AS INTEGER ) AS INTEGER ) + COUNT ( * ) + 45 + 83 * - 63 * - + 51 * - - 66 )
----
8

query I rowsort
SELECT ALL + 55 * - 49 AS col1
----
-2695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-784
SELECT COALESCE ( 85, - + CAST( NULL AS SIGNED ), + ( + + MAX( - 55 ) ) )
----
85

skipif mysql # not compatible
query I rowsort label-784
SELECT COALESCE ( 85, - + CAST ( NULL AS INTEGER ), + ( + + MAX ( - 55 ) ) )
----
85

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

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

query I rowsort
SELECT - 72 * - - 49 AS col0
----
-3528

query I rowsort
SELECT - 66 - - 44 col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT MAX( DISTINCT - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-788
SELECT MAX ( DISTINCT - 79 )
----
-79

query II rowsort
SELECT ALL + - 60 AS col0, + 62 AS col1
----
-60
62

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-791
SELECT DISTINCT + - COUNT( * ) col1, + NULLIF ( - 95, - COALESCE ( - 73, + 57 * - - ( + 19 ), + 7 * 50 ) ) + - 44 DIV - 45 + - + 43
----
-1
-138

skipif mysql # not compatible
query II rowsort label-791
SELECT DISTINCT + - COUNT ( * ) col1, + NULLIF ( - 95, - COALESCE ( - 73, + 57 * - - ( + 19 ), + 7 * 50 ) ) + - 44 / - 45 + - + 43
----
-1
-138

query I rowsort
SELECT DISTINCT - 2 * - - 92 AS col1
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-793
SELECT ALL - ( + - ( - 50 ) ) * + 99 + + - 37 + - - 74, 34 + - CASE + - AVG ( DISTINCT - 81 ) WHEN + - CASE - 17 WHEN - - CASE + NULLIF ( - - 85, + CAST( + - 25 AS SIGNED ) * - CAST( - 44 AS DECIMAL ) + 66 * - 9 ) WHEN + 85 THEN - + ( - 96 ) / + 89 + + + 96 * - - 30 * 26 * 90 ELSE NULL END THEN NULL WHEN - - 1 + + - COUNT( * ) - + + 15 THEN - 76 ELSE NULL END THEN - 69 + COALESCE ( - - ( + 30 ), COUNT( * ) ) * COALESCE ( + - 18, 52 * + - 55 * + 45 ) + - 22 WHEN - 59 / + 61 THEN NULL ELSE - 8 END AS col0
----
-4913
42

skipif mysql # not compatible
query II rowsort label-793
SELECT ALL - ( + - ( - 50 ) ) * + 99 + + - 37 + - - 74, 34 + - CASE + - AVG ( DISTINCT - 81 ) WHEN + - CASE - 17 WHEN - - CASE + NULLIF ( - - 85, + CAST ( + - 25 AS INTEGER ) * - CAST ( - 44 AS REAL ) + 66 * - 9 ) WHEN + 85 THEN - + ( - 96 ) / + 89 + + + 96 * - - 30 * 26 * 90 ELSE NULL END THEN NULL WHEN - - 1 + + - COUNT ( * ) - + + 15 THEN - 76 ELSE NULL END THEN - 69 + COALESCE ( - - ( + 30 ), COUNT ( * ) ) * COALESCE ( + - 18, 52 * + - 55 * + 45 ) + - 22 WHEN - 59 / + 61 THEN NULL ELSE - 8 END AS col0
----
-4913
42

query I rowsort
SELECT + 66 - - 76 * + 73
----
5614

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT DISTINCT 5 * - + 24 + - 71 DIV + + 66 + - 32 * 73
----
-2457

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT 5 * - + 24 + - 71 / + + 66 + - 32 * 73
----
-2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-796
SELECT + 80 - + NULLIF ( - + 8, CASE + 3 WHEN + + 58 + + CAST( - ( + 2 ) AS SIGNED ) * - - 63 + - + 79 THEN - ( - ( + COUNT( * ) ) ) WHEN - - 20 THEN - COALESCE ( + + 8, 24 ) * + + 32 + 55 * - + 74 + - 77 + + 72 END * + + CAST( NULL AS DECIMAL ) + + COALESCE ( - COUNT( * ), 53 ) * - + 58 )
----
88

skipif mysql # not compatible
query I rowsort label-796
SELECT + 80 - + NULLIF ( - + 8, CASE + 3 WHEN + + 58 + + CAST ( - ( + 2 ) AS INTEGER ) * - - 63 + - + 79 THEN - ( - ( + COUNT ( * ) ) ) WHEN - - 20 THEN - COALESCE ( + + 8, 24 ) * + + 32 + 55 * - + 74 + - 77 + + 72 END * + + CAST ( NULL AS REAL ) + + COALESCE ( - COUNT ( * ), 53 ) * - + 58 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT - MAX( + 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-797
SELECT - MAX ( + 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT - COUNT( * ) + - 42 * 41 * 63
----
-108487

skipif mysql # not compatible
query I rowsort label-798
SELECT - COUNT ( * ) + - 42 * 41 * 63
----
-108487

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-799
SELECT + CAST( + 33 AS SIGNED ) DIV 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-799
SELECT + CAST ( + 33 AS INTEGER ) / 64 AS col0
----
0

query II rowsort
SELECT ALL 95, - 48 AS col1
----
95
-48

query I rowsort
SELECT DISTINCT + 6 * 46 * + 89
----
24564

query I rowsort
SELECT + + 95 + + 7 + + 57 AS col0
----
159

query I rowsort
SELECT ALL + 84 + 86 AS col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT DISTINCT - NULLIF ( 7, - 86 + - ( 12 ) - 1 + COUNT( * ) * + 88 * - 29 )
----
-7

skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT - NULLIF ( 7, - 86 + - ( 12 ) - 1 + COUNT ( * ) * + 88 * - 29 )
----
-7

query II rowsort
SELECT ALL - 13 AS col1, - 87 col0
----
-13
-87

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

query I rowsort
SELECT + 51 + 3
----
54

query I rowsort
SELECT ALL 56 - - 71 + - 38 AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-809
SELECT DISTINCT NULLIF ( + COUNT( * ), + ( - 84 ) ) * + 89 + - - 30 - - + COALESCE ( COUNT( * ), - - 15 DIV - 42 DIV COUNT( * ) + - 4 * - + 38, + - 23 + - ( 41 ) * 78 ) AS col1, 80
----
120
80

skipif mysql # not compatible
query II rowsort label-809
SELECT DISTINCT NULLIF ( + COUNT ( * ), + ( - 84 ) ) * + 89 + - - 30 - - + COALESCE ( COUNT ( * ), - - 15 / - 42 / COUNT ( * ) + - 4 * - + 38, + - 23 + - ( 41 ) * 78 ) AS col1, 80
----
120
80

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT + MIN( DISTINCT - 31 ) + + 49
----
18

skipif mysql # not compatible
query I rowsort label-810
SELECT + MIN ( DISTINCT - 31 ) + + 49
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-811
SELECT - COUNT( * ) * + 9 AS col2, 10 AS col0
----
-9
10

skipif mysql # not compatible
query II rowsort label-811
SELECT - COUNT ( * ) * + 9 AS col2, 10 AS col0
----
-9
10

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL ( - 4 ) * - 13 + - + 42 - - MAX( - - 52 )
----
62

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL ( - 4 ) * - 13 + - + 42 - - MAX ( - - 52 )
----
62

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

skipif mysql # not compatible
query I rowsort label-813
SELECT + 56 + + ( 19 ) / + 35 * + ( COUNT ( * ) )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-814
SELECT DISTINCT CASE 48 WHEN + CAST( ( - - 29 ) AS SIGNED ) + - 91 THEN + MAX( + 64 ) END * - 53 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT CASE 48 WHEN + CAST ( ( - - 29 ) AS INTEGER ) + - 91 THEN + MAX ( + 64 ) END * - 53 col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 37, 80 ) AS col2
----
37

query I rowsort
SELECT + 8 * + 52
----
416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT 51 DIV - COUNT( - 69 ) - 16
----
-67

skipif mysql # not compatible
query I rowsort label-817
SELECT 51 / - COUNT ( - 69 ) - 16
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-818
SELECT CAST( + NULLIF ( - 35, + + 2 ) AS SIGNED ), - NULLIF ( - NULLIF ( COUNT( * ), 42 + + - NULLIF ( + - 53, - - 4 + + - 86 ) ), - 18 + + 24 ) AS col0
----
-35
1

skipif mysql # not compatible
query II rowsort label-818
SELECT CAST ( + NULLIF ( - 35, + + 2 ) AS INTEGER ), - NULLIF ( - NULLIF ( COUNT ( * ), 42 + + - NULLIF ( + - 53, - - 4 + + - 86 ) ), - 18 + + 24 ) AS col0
----
-35
1

onlyif mysql # aggregate syntax: 
query II rowsort label-819
SELECT - 2 + + COUNT( ALL 1 ) * + ( - 46 ), 64 AS col1
----
-48
64

skipif mysql # not compatible
query II rowsort label-819
SELECT - 2 + + COUNT ( ALL 1 ) * + ( - 46 ), 64 AS col1
----
-48
64

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT + 72 DIV - ( - - 4 ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-820
SELECT + 72 / - ( - - 4 ) col2
----
-18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-822
SELECT 51 * - COUNT( * ) + + - CAST( + 14 AS SIGNED ) DIV + + 44 * - ( - 66 ) * + 80
----
-51

skipif mysql # not compatible
query I rowsort label-822
SELECT 51 * - COUNT ( * ) + + - CAST ( + 14 AS INTEGER ) / + + 44 * - ( - 66 ) * + 80
----
-51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT + SUM( - 26 ) * - 16 * + + CASE 59 WHEN 24 THEN + + 44 END - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT + SUM ( - 26 ) * - 16 * + + CASE 59 WHEN 24 THEN + + 44 END - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT ALL 71 DIV - 99 + - 12 + - 36 * + 43 * + 46 * + - COALESCE ( + 63, + 60 + - 25, - 43 ) col0
----
4486092

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL 71 / - 99 + - 12 + - 36 * + 43 * + 46 * + - COALESCE ( + 63, + 60 + - 25, - 43 ) col0
----
4486092

query I rowsort
SELECT - 42 + 0 AS col2
----
-42

query I rowsort
SELECT ALL - 52 * 0 * + 4
----
0

query I rowsort
SELECT DISTINCT + 49 * 8 * + 37 * 99 + 34 * - 2
----
1435828

onlyif mysql # aggregate syntax: 
query II rowsort label-829
SELECT - 64 + CASE + + 26 WHEN + + 86 * + - ( - COUNT( * ) ) + 79 + - COALESCE ( - ( 56 ), - + 85 ) * - 7 / + 1 THEN NULL ELSE - 50 END AS col2, + 97
----
-114
97

skipif mysql # not compatible
query II rowsort label-829
SELECT - 64 + CASE + + 26 WHEN + + 86 * + - ( - COUNT ( * ) ) + 79 + - COALESCE ( - ( 56 ), - + 85 ) * - 7 / + 1 THEN NULL ELSE - 50 END AS col2, + 97
----
-114
97

query I rowsort
SELECT ALL - 54 * + 97 + - + 75 * 65 + ( - 5 ) AS col0
----
-10118

onlyif mysql # aggregate syntax: 
query II rowsort label-831
SELECT - 77 + 69, + SUM( + 71 ) + + ( - 62 ) AS col2
----
-8
9

skipif mysql # not compatible
query II rowsort label-831
SELECT - 77 + 69, + SUM ( + 71 ) + + ( - 62 ) AS col2
----
-8
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-832
SELECT + CAST( + - CASE 8 WHEN + + 26 + + 24 THEN NULL ELSE COUNT( * ) END AS SIGNED ) * + 29 + + 92 + 83
----
146

skipif mysql # not compatible
query I rowsort label-832
SELECT + CAST ( + - CASE 8 WHEN + + 26 + + 24 THEN NULL ELSE COUNT ( * ) END AS INTEGER ) * + 29 + + 92 + 83
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT ALL + COUNT( * ) * + + 72 + 89 + - COUNT( * ) + + - 82 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + COUNT ( * ) * + + 72 + 89 + - COUNT ( * ) + + - 82 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT - CASE - + NULLIF ( + COUNT( * ), - 34 ) WHEN + 9 + + 92 - - 70 + CASE WHEN NOT ( - 31 ) IS NOT NULL THEN NULL ELSE 51 END * + 85 + - CAST( COUNT( * ) AS SIGNED ) + 96 * + 48 * - COUNT( * ) THEN - 32 * - - 21 * + 72 WHEN + 50 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT - CASE - + NULLIF ( + COUNT ( * ), - 34 ) WHEN + 9 + + 92 - - 70 + CASE WHEN NOT ( - 31 ) IS NOT NULL THEN NULL ELSE 51 END * + 85 + - CAST ( COUNT ( * ) AS INTEGER ) + 96 * + 48 * - COUNT ( * ) THEN - 32 * - - 21 * + 72 WHEN + 50 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( 81 ) AS col2
----
81

query I rowsort
SELECT - 66 * 56 + - 89
----
-3785

query I rowsort
SELECT DISTINCT + 96 * + 14 col0
----
1344

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-838
SELECT DISTINCT - 67 * - 87 * + ( + 32 ) - 33 * - CAST( NULL AS DECIMAL ) - + 66 + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT - 67 * - 87 * + ( + 32 ) - 33 * - CAST ( NULL AS REAL ) - + 66 + 21
----
NULL

query I rowsort
SELECT DISTINCT ( - + 96 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL - + MAX( - + 92 ) - + 70 + - 50 + ( - ( + - 22 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL - + MAX ( - + 92 ) - + 70 + - 50 + ( - ( + - 22 ) )
----
-6

query I rowsort
SELECT 89 * - + 17 AS col1
----
-1513

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT ALL CASE WHEN NOT + 14 BETWEEN NULL AND + COUNT( * ) / + COUNT( * ) * - 86 * + - 15 * - - COALESCE ( - ( - - 34 ), - 60, + - 71 * - + COUNT( * ) * - 72 * COUNT( * ) ) THEN + + 89 ELSE NULL END * - 1 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL CASE WHEN NOT + 14 BETWEEN NULL AND + COUNT ( * ) / + COUNT ( * ) * - 86 * + - 15 * - - COALESCE ( - ( - - 34 ), - 60, + - 71 * - + COUNT ( * ) * - 72 * COUNT ( * ) ) THEN + + 89 ELSE NULL END * - 1 AS col0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-843
SELECT 34 DIV ( + 89 )
----
0

skipif mysql # not compatible
query I rowsort label-843
SELECT 34 / ( + 89 )
----
0

query I rowsort
SELECT 5 * + - 23
----
-115

query II rowsort
SELECT ALL 42 AS col0, + 65 AS col1
----
42
65

query I rowsort
SELECT 40 + + + 43 AS col1
----
83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-848
SELECT - 54, ( - - 32 ) * + + ( - + 23 ) + + + 95 + + - 96 * - CASE - 19 WHEN - 65 THEN - + COUNT( * ) * - - NULLIF ( - 41, - 24 - + + AVG ( DISTINCT + 95 ) ) * - 81 WHEN + + 89 / 27 THEN - COUNT( * ) WHEN 94 * + - 98 * 38 THEN NULL END * 29 + - + COUNT( * ) col2
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-848
SELECT - 54, ( - - 32 ) * + + ( - + 23 ) + + + 95 + + - 96 * - CASE - 19 WHEN - 65 THEN - + COUNT ( * ) * - - NULLIF ( - 41, - 24 - + + AVG ( DISTINCT + 95 ) ) * - 81 WHEN + + 89 / 27 THEN - COUNT ( * ) WHEN 94 * + - 98 * 38 THEN NULL END * 29 + - + COUNT ( * ) col2
----
-54
NULL

query I rowsort
SELECT 59 * - + 48 * - 85
----
240720

query I rowsort
SELECT 30 * + + 50 * - 52 AS col0
----
-78000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-851
SELECT - 73 / CAST( NULL AS SIGNED ) + 80 * - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-851
SELECT - 73 / CAST ( NULL AS INTEGER ) + 80 * - + 46
----
NULL

query II rowsort
SELECT ALL - 68, 19 * + 73 col0
----
-68
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT DISTINCT 95 + COUNT( * ) * + 12
----
107

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT 95 + COUNT ( * ) * + 12
----
107

query I rowsort
SELECT ALL 13 * - 19
----
-247

onlyif mysql # DIV for integer division: 
query I rowsort label-855
SELECT 49 DIV 43 col1
----
1

skipif mysql # not compatible
query I rowsort label-855
SELECT 49 / 43 col1
----
1

query I rowsort
SELECT ALL 25 + - 55
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-857
SELECT ALL + + MAX( + 89 ) + 99 col2, + COUNT( * )
----
188
1

skipif mysql # not compatible
query II rowsort label-857
SELECT ALL + + MAX ( + 89 ) + 99 col2, + COUNT ( * )
----
188
1

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT - MIN( - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-858
SELECT - MIN ( - 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-859
SELECT + COUNT( * ) DIV + 86 * - + 21
----
0

skipif mysql # not compatible
query I rowsort label-859
SELECT + COUNT ( * ) / + 86 * - + 21
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-860
SELECT ALL + 58 + COUNT( * ) + + ( - 16 ) + 46 + + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL + 58 + COUNT ( * ) + + ( - 16 ) + 46 + + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
89

query I rowsort
SELECT ( - 99 ) * 62 AS col2
----
-6138

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT COUNT( DISTINCT - - 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-862
SELECT COUNT ( DISTINCT - - 82 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-863
SELECT + 1 - 6 DIV - COUNT( * ) col2
----
7

skipif mysql # not compatible
query I rowsort label-863
SELECT + 1 - 6 / - COUNT ( * ) col2
----
7

query I rowsort
SELECT - COALESCE ( - CASE - + 92 WHEN + 45 THEN - 57 END, + 45 + + 10 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT ALL - - 9 DIV - + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-865
SELECT ALL - - 9 / - + 55 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-866
SELECT - NULLIF ( + 76, - MIN( ALL 49 ) + + ( + COALESCE ( COUNT( * ), CAST( - 42 AS SIGNED ) / + - MIN( DISTINCT - 24 ) + 30 + + - 91 + - 75 / - 33 * - 36 * 4 ) ) ) - - 36
----
-40

skipif mysql # not compatible
query I rowsort label-866
SELECT - NULLIF ( + 76, - MIN ( ALL 49 ) + + ( + COALESCE ( COUNT ( * ), CAST ( - 42 AS INTEGER ) / + - MIN ( DISTINCT - 24 ) + 30 + + - 91 + - 75 / - 33 * - 36 * 4 ) ) ) - - 36
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL + - COUNT( * ) * - 72 * + - 7 * 55 AS col2
----
-27720

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL + - COUNT ( * ) * - 72 * + - 7 * 55 AS col2
----
-27720

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT DISTINCT - CASE + 16 WHEN + + 56 THEN COUNT( * ) WHEN - ( + 45 ) THEN + 40 WHEN - CASE - - ( 79 ) WHEN + - 77 * + - COUNT( * ) THEN + 10 + 39 * - 93 END THEN - + 13 * 44 + + 61 - 97 * 56 / + 63 * + 94 END * + 66 AS col1, 3 * - + 46 AS col2
----
NULL
-138

skipif mysql # not compatible
query II rowsort label-868
SELECT DISTINCT - CASE + 16 WHEN + + 56 THEN COUNT ( * ) WHEN - ( + 45 ) THEN + 40 WHEN - CASE - - ( 79 ) WHEN + - 77 * + - COUNT ( * ) THEN + 10 + 39 * - 93 END THEN - + 13 * 44 + + 61 - 97 * 56 / + 63 * + 94 END * + 66 AS col1, 3 * - + 46 AS col2
----
NULL
-138

query I rowsort
SELECT + 64 - 2 + - 44 col0
----
18

query I rowsort
SELECT ALL - + 4 * + - 59
----
236

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-871
SELECT + 33 * + + 94 * + 93 + + + 59 + + 4 * + ( MIN( + + 98 ) ) + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-871
SELECT + 33 * + + 94 * + 93 + + + 59 + + 4 * + ( MIN ( + + 98 ) ) + - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT 83 - + 83 - + 50 DIV + + 99 * - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-872
SELECT 83 - + 83 - + 50 / + + 99 * - 60 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-873
SELECT ALL + 81 - - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + 81 - - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
81

query I rowsort
SELECT DISTINCT - 23 * - 31
----
713

onlyif mysql # aggregate syntax: 
query II rowsort label-875
SELECT - 42 AS col1, - COUNT( DISTINCT 89 ) col2
----
-42
-1

skipif mysql # not compatible
query II rowsort label-875
SELECT - 42 AS col1, - COUNT ( DISTINCT 89 ) col2
----
-42
-1

query I rowsort
SELECT + 31 + 29 + + 75 AS col1
----
135

query I rowsort
SELECT DISTINCT 4 * + 68 AS col2
----
272

query I rowsort
SELECT 8 + ( - ( - + ( + - 46 ) ) )
----
-38

query II rowsort
SELECT ALL 31 AS col1, - 14 col2
----
31
-14

query I rowsort
SELECT 14 * - 31
----
-434

query I rowsort
SELECT 18 + + 0 col1
----
18

query II rowsort
SELECT ALL 84 col0, 17 * - 73
----
84
-1241

query I rowsort
SELECT DISTINCT - ( - 24 ) * 50
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-884
SELECT ALL CAST( NULL AS SIGNED ) + + 33 * CAST( NULL AS SIGNED ) * + 19 * + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL CAST ( NULL AS INTEGER ) + + 33 * CAST ( NULL AS INTEGER ) * + 19 * + - 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT ALL SUM( - + 68 ) * 57 + - + 6
----
-3882

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL SUM ( - + 68 ) * 57 + - + 6
----
-3882

query I rowsort
SELECT 33 + - 75
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT 4 DIV + - 48
----
0

skipif mysql # not compatible
query I rowsort label-887
SELECT 4 / + - 48
----
0

query I rowsort
SELECT 40 * 33
----
1320

query I rowsort
SELECT COALESCE ( + 79, + 80, + + 63 ) + - 17 AS col1
----
62

query II rowsort
SELECT 26 AS col1, - 92 col1
----
26
-92

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

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL + ( + 35 ) + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 30 + 58 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT 54 + - 74 * - + COUNT( * ) * - 13 + 82 AS col0
----
-826

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT 54 + - 74 * - + COUNT ( * ) * - 13 + 82 AS col0
----
-826

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

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

query I rowsort
SELECT ALL 75 * 32 * - 46 + - 45 + - - 8 - 3 * - + 27 AS col2
----
-110356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-896
SELECT 25 DIV + COUNT( * ) + - COUNT( * ) + + COALESCE ( - CAST( - + 40 AS SIGNED ), + 6 ) + - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-896
SELECT 25 / + COUNT ( * ) + - COUNT ( * ) + + COALESCE ( - CAST ( - + 40 AS INTEGER ), + 6 ) + - COUNT ( * )
----
63

query I rowsort
SELECT DISTINCT 0 * + 12 + - - 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT + 32 + - COUNT( * ) + - 47 * - + SUM( ALL - 31 )
----
-1426

skipif mysql # not compatible
query I rowsort label-898
SELECT + 32 + - COUNT ( * ) + - 47 * - + SUM ( ALL - 31 )
----
-1426

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT + - SUM( 49 ) col2
----
-49

skipif mysql # not compatible
query I rowsort label-899
SELECT + - SUM ( 49 ) col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-900
SELECT ALL 57 * 81 + + 99 DIV - COALESCE ( + 66, - COUNT( * ) * + - 87 ) AS col0
----
4616

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL 57 * 81 + + 99 / - COALESCE ( + 66, - COUNT ( * ) * + - 87 ) AS col0
----
4616

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT + 48 * - + 40 + COUNT( * )
----
-1919

skipif mysql # not compatible
query I rowsort label-901
SELECT + 48 * - + 40 + COUNT ( * )
----
-1919

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT - 99 + - MIN( - 77 )
----
-22

skipif mysql # not compatible
query I rowsort label-902
SELECT - 99 + - MIN ( - 77 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT DISTINCT - COALESCE ( + + COUNT( * ), ( + - 42 ) * + 66 * + 10 * - + 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT - COALESCE ( + + COUNT ( * ), ( + - 42 ) * + 66 * + 10 * - + 85 )
----
-1

query I rowsort
SELECT ALL + 52 * + 67 - 66 + + 46 AS col0
----
3464

query I rowsort
SELECT DISTINCT - 30 * 64 + + 55
----
-1865

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT - NULLIF ( ( + - 15 ), - 77 - - COUNT( * ) - + AVG ( ALL + 10 ) ) * - + 87 AS col1
----
-1305

skipif mysql # not compatible
query I rowsort label-906
SELECT - NULLIF ( ( + - 15 ), - 77 - - COUNT ( * ) - + AVG ( ALL + 10 ) ) * - + 87 AS col1
----
-1305

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

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT ALL - 85 * - - COUNT( * ) - + + 88 * + 60 + - - 46 * - + ( + - MAX( ALL - 15 ) ) AS col1
----
-6055

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL - 85 * - - COUNT ( * ) - + + 88 * + 60 + - - 46 * - + ( + - MAX ( ALL - 15 ) ) AS col1
----
-6055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-909
SELECT - 85 DIV + MAX( + 3 ) - + - 63 * + 32 AS col0
----
1988

skipif mysql # not compatible
query I rowsort label-909
SELECT - 85 / + MAX ( + 3 ) - + - 63 * + 32 AS col0
----
1988

query II rowsort
SELECT + 59, + 79 * + 13 col0
----
59
1027

onlyif mysql # DIV for integer division: 
query I rowsort label-911
SELECT DISTINCT + 3 DIV 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT + 3 / 35 AS col1
----
0

query I rowsort
SELECT + 42 * - ( - - 18 )
----
-756

query II rowsort
SELECT ALL 98 + + + 0 AS col0, 94 AS col1
----
98
94

query I rowsort
SELECT DISTINCT CASE + 55 WHEN 24 THEN + - 22 END / - ( - 45 )
----
NULL

query II rowsort
SELECT DISTINCT - 91 + 96, + 53 AS col2
----
5
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT ALL + CAST( NULL AS SIGNED ) + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL + CAST ( NULL AS INTEGER ) + 57
----
NULL

query I rowsort
SELECT + 56 * + 27
----
1512

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT - CASE - + 66 WHEN 74 * + COALESCE ( MAX( ALL + 60 ), - CAST( - COUNT( * ) AS SIGNED ) * 26 + - + 57 + 77 + + - 3 * + COUNT( * ) + 23 ) * - - NULLIF ( + ( + - ( 42 ) ), + - 92 + + + 15 ) * - 72 + - SUM( DISTINCT - 14 ) + + COUNT( * ) THEN NULL ELSE - - MIN( DISTINCT 32 ) END
----
-32

skipif mysql # not compatible
query I rowsort label-919
SELECT - CASE - + 66 WHEN 74 * + COALESCE ( MAX ( ALL + 60 ), - CAST ( - COUNT ( * ) AS INTEGER ) * 26 + - + 57 + 77 + + - 3 * + COUNT ( * ) + 23 ) * - - NULLIF ( + ( + - ( 42 ) ), + - 92 + + + 15 ) * - 72 + - SUM ( DISTINCT - 14 ) + + COUNT ( * ) THEN NULL ELSE - - MIN ( DISTINCT 32 ) END
----
-32

query I rowsort
SELECT - 26 - 81
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL CASE - COUNT( * ) WHEN - 69 + + + 34 - 82 * 44 * 1 THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL CASE - COUNT ( * ) WHEN - 69 + + + 34 - 82 * 44 * 1 THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT ALL NULLIF ( - 19, + 10 + - - COUNT( DISTINCT + - 84 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL NULLIF ( - 19, + 10 + - - COUNT ( DISTINCT + - 84 ) )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT DISTINCT CASE 5 WHEN - COUNT( * ) THEN - + 19 WHEN + 0 THEN 63 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT CASE 5 WHEN - COUNT ( * ) THEN - + 19 WHEN + 0 THEN 63 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-924
SELECT ALL - 93 + + - CAST( + 64 AS SIGNED ) * NULLIF ( + COUNT( * ), + 69 ) + - ( 69 )
----
-226

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL - 93 + + - CAST ( + 64 AS INTEGER ) * NULLIF ( + COUNT ( * ), + 69 ) + - ( 69 )
----
-226

query I rowsort
SELECT ALL + 29 * 82
----
2378

onlyif mysql # aggregate syntax: 
query II rowsort label-926
SELECT - COUNT( * ) + + 15 col2, 37
----
14
37

skipif mysql # not compatible
query II rowsort label-926
SELECT - COUNT ( * ) + + 15 col2, 37
----
14
37

query I rowsort
SELECT ALL NULLIF ( - + 32, + 13 + - - 29 )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-928
SELECT - COALESCE ( - 56, - 61, 70 * + NULLIF ( ( 86 ), + 42 + - NULLIF ( - 4, - - 50 * + - 30 * - - MAX( DISTINCT + - CASE + + 88 WHEN 30 - + 87 THEN 31 + - 97 WHEN + 17 + + CAST( - 46 AS SIGNED ) * - 71 THEN NULL END ) ) - - 58 * 15 + + + ( - 50 ) ) DIV - 57 * - 14 + + 38 ) - - 33
----
89

skipif mysql # not compatible
query I rowsort label-928
SELECT - COALESCE ( - 56, - 61, 70 * + NULLIF ( ( 86 ), + 42 + - NULLIF ( - 4, - - 50 * + - 30 * - - MAX ( DISTINCT + - CASE + + 88 WHEN 30 - + 87 THEN 31 + - 97 WHEN + 17 + + CAST ( - 46 AS INTEGER ) * - 71 THEN NULL END ) ) - - 58 * 15 + + + ( - 50 ) ) / - 57 * - 14 + + 38 ) - - 33
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-929
SELECT - - COUNT( * ) DIV 9 * + + 73
----
0

skipif mysql # not compatible
query I rowsort label-929
SELECT - - COUNT ( * ) / 9 * + + 73
----
0

query I rowsort
SELECT - 88 + + - 12 + + 42
----
-58

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

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

query II rowsort
SELECT DISTINCT - ( + 19 ) * 27, + 80 AS col2
----
-513
80

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT + + SUM( DISTINCT + 3 ) * - ( 92 ) * - 55 + 4
----
15184

skipif mysql # not compatible
query I rowsort label-933
SELECT + + SUM ( DISTINCT + 3 ) * - ( 92 ) * - 55 + 4
----
15184

query I rowsort
SELECT - 77 + - - ( 97 ) AS col1
----
20

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

query I rowsort
SELECT + 73 * + - 52
----
-3796

query I rowsort
SELECT + 54 * - 22 * - - 73 + - - 2
----
-86722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-938
SELECT ALL + CASE COUNT( * ) WHEN + 9 * - 18 * - 19 + - 50 * - 60 * - 60 THEN + 52 - 80 WHEN - 68 + + 22 * - 81 * SUM( - 28 ) * - + 75 THEN + 40 END * + 85 AS col1, CAST( 18 AS SIGNED )
----
NULL
18

skipif mysql # not compatible
query II rowsort label-938
SELECT ALL + CASE COUNT ( * ) WHEN + 9 * - 18 * - 19 + - 50 * - 60 * - 60 THEN + 52 - 80 WHEN - 68 + + 22 * - 81 * SUM ( - 28 ) * - + 75 THEN + 40 END * + 85 AS col1, CAST ( 18 AS INTEGER )
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT + 86 - + COUNT( * ) + - 78
----
7

skipif mysql # not compatible
query I rowsort label-939
SELECT + 86 - + COUNT ( * ) + - 78
----
7

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

skipif mysql # not compatible
query II rowsort label-940
SELECT + COUNT ( * ), + 52 col2
----
1
52

query I rowsort
SELECT + 56 + + - 74 AS col0
----
-18

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

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

query II rowsort
SELECT - 40 AS col1, - ( - 21 ) * - 41 AS col0
----
-40
-861

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-946
SELECT - CAST( + AVG ( ALL - 18 ) AS SIGNED ), + COUNT( * ) * + 78 AS col2
----
18
78

skipif mysql # not compatible
query II rowsort label-946
SELECT - CAST ( + AVG ( ALL - 18 ) AS INTEGER ), + COUNT ( * ) * + 78 AS col2
----
18
78

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT ALL 2 DIV 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL 2 / 19 AS col2
----
0

query I rowsort
SELECT + 66 * - 62 AS col2
----
-4092

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT - ( - CASE + + 66 WHEN + 70 * - SUM( 97 ) / + COUNT( * ) + - + 37 / + 79 + + - 20 THEN + - 28 WHEN CASE - + 93 WHEN ( + + 94 ) THEN - - 34 - NULLIF ( + 98, 51 * - - 34 ) + - 72 * 69 END * + 93 + - + 36 THEN - + 19 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-949
SELECT - ( - CASE + + 66 WHEN + 70 * - SUM ( 97 ) / + COUNT ( * ) + - + 37 / + 79 + + - 20 THEN + - 28 WHEN CASE - + 93 WHEN ( + + 94 ) THEN - - 34 - NULLIF ( + 98, 51 * - - 34 ) + - 72 * 69 END * + 93 + - + 36 THEN - + 19 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-950
SELECT - CAST( NULL AS SIGNED ) AS col2, 5 AS col0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-950
SELECT - CAST ( NULL AS INTEGER ) AS col2, 5 AS col0
----
NULL
5

query I rowsort
SELECT ALL + 43 - + 22 AS col2
----
21

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-953
SELECT - ( ( 25 ) ) * - + CASE - + 57 WHEN - 3 THEN + + 15 * - 91 END - - 23 + - - 31 * - 91 + CASE - - 30 WHEN + 38 * + - COUNT( DISTINCT - + NULLIF ( - + 65, 35 - + + 32 ) ) + + - MAX( ALL - 19 ) / 13 * + 15 THEN - 33 / - 85 + + 80 - 63 * - - 81 ELSE + NULLIF ( + - 64, - 53 * 67 ) END / + 31, - 96 AS col2
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-953
SELECT - ( ( 25 ) ) * - + CASE - + 57 WHEN - 3 THEN + + 15 * - 91 END - - 23 + - - 31 * - 91 + CASE - - 30 WHEN + 38 * + - COUNT ( DISTINCT - + NULLIF ( - + 65, 35 - + + 32 ) ) + + - MAX ( ALL - 19 ) / 13 * + 15 THEN - 33 / - 85 + + 80 - 63 * - - 81 ELSE + NULLIF ( + - 64, - 53 * 67 ) END / + 31, - 96 AS col2
----
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT ALL CASE - COUNT( * ) WHEN + 23 * - + 13 / COUNT( * ) THEN + 63 * + - COUNT( * ) + 17 * + 3 / 73 / - NULLIF ( - 6, 4 ) / - MAX( - - 74 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL CASE - COUNT ( * ) WHEN + 23 * - + 13 / COUNT ( * ) THEN + 63 * + - COUNT ( * ) + 17 * + 3 / 73 / - NULLIF ( - 6, 4 ) / - MAX ( - - 74 ) END AS col0
----
NULL

query I rowsort
SELECT - + 15 + - 24 * + 16 * - - ( - - 85 )
----
-32655

onlyif mysql # DIV for integer division: 
query I rowsort label-956
SELECT ALL - CASE 82 WHEN + 30 THEN NULL ELSE ( + 16 ) END - - + 93 DIV + 9 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - CASE 82 WHEN + 30 THEN NULL ELSE ( + 16 ) END - - + 93 / + 9 AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-957
SELECT ALL + + 89 DIV ( - - 72 ) * 74
----
74

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL + + 89 / ( - - 72 ) * 74
----
74

onlyif mysql # aggregate syntax: 
query III rowsort label-958
SELECT + 61 * - + MAX( DISTINCT + - 96 ), NULLIF ( - - 72, COUNT( * ) ) AS col0, + 82 * + 86 AS col0
----
5856
72
7052

skipif mysql # not compatible
query III rowsort label-958
SELECT + 61 * - + MAX ( DISTINCT + - 96 ), NULLIF ( - - 72, COUNT ( * ) ) AS col0, + 82 * + 86 AS col0
----
5856
72
7052

onlyif mysql # DIV for integer division: 
query I rowsort label-959
SELECT ALL + - 97 DIV 11 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + - 97 / 11 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-960
SELECT + CAST( NULL AS SIGNED ) / - 78 * + + 32 + + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-960
SELECT + CAST ( NULL AS INTEGER ) / - 78 * + + 32 + + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT CASE - + ( MAX( - 70 ) ) WHEN - 76 + - - 93 THEN + + 54 - 55 + + + 50 / + 84 * + COUNT( * ) + COALESCE ( + 4, + + 16 ) + - COUNT( * ) + + ( + + 68 ) + + - 46 / - MIN( ALL 68 ) * 29 WHEN - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT CASE - + ( MAX ( - 70 ) ) WHEN - 76 + - - 93 THEN + + 54 - 55 + + + 50 / + 84 * + COUNT ( * ) + COALESCE ( + 4, + + 16 ) + - COUNT ( * ) + + ( + + 68 ) + + - 46 / - MIN ( ALL 68 ) * 29 WHEN - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT - SUM( DISTINCT - + 3 ) + 43 - - - 62 * 15 * + ( + + 84 )
----
-78074

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT - SUM ( DISTINCT - + 3 ) + 43 - - - 62 * 15 * + ( + + 84 )
----
-78074

query I rowsort
SELECT DISTINCT - + ( - 23 ) * + - ( - 60 ) * + 45 + 29 * 74 AS col2
----
64246

query I rowsort
SELECT ALL 63 + - 83 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT COUNT( * ) * 7 + 25 + - 91 * - 73 + - 4 AS col1
----
6671

skipif mysql # not compatible
query I rowsort label-965
SELECT COUNT ( * ) * 7 + 25 + - 91 * - 73 + - 4 AS col1
----
6671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-966
SELECT ALL + + 43 + - 17 + - 94 DIV - 84 - - 58 * COUNT( * ) + 77 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL + + 43 + - 17 + - 94 / - 84 - - 58 * COUNT ( * ) + 77 AS col2
----
162

query I rowsort
SELECT ( - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT DISTINCT + 92 + - COUNT( ALL + - ( CASE + 73 WHEN - 48 THEN NULL WHEN + 96 THEN + 66 * + 30 END ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT + 92 + - COUNT ( ALL + - ( CASE + 73 WHEN - 48 THEN NULL WHEN + 96 THEN + 66 * + 30 END ) ) AS col2
----
92

query I rowsort
SELECT ALL 97 * + 64 * + - 76
----
-471808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-970
SELECT NULLIF ( + - COALESCE ( + 76, - - COUNT( * ) * + 36 DIV ( + 46 ) * + - 98 * + ( - ( - 42 ) ) ), + NULLIF ( 89, COUNT( * ) ) ) * - + 74
----
5624

skipif mysql # not compatible
query I rowsort label-970
SELECT NULLIF ( + - COALESCE ( + 76, - - COUNT ( * ) * + 36 / ( + 46 ) * + - 98 * + ( - ( - 42 ) ) ), + NULLIF ( 89, COUNT ( * ) ) ) * - + 74
----
5624

query I rowsort
SELECT ALL + 74 - - + 10 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT ALL 90 - - - MIN( + 48 ) - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL 90 - - - MIN ( + 48 ) - COUNT ( * )
----
41

query I rowsort
SELECT ALL 61 * 75 AS col1
----
4575

query I rowsort
SELECT 33 + + 78 AS col1
----
111

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-976
SELECT 74 + + CAST( MAX( + 65 ) AS SIGNED ) * - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-976
SELECT 74 + + CAST ( MAX ( + 65 ) AS INTEGER ) * - COUNT ( * )
----
9

query I rowsort
SELECT ALL 54 - - 63 * + + 23 * 14 * + 35
----
710064

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT 58 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-978
SELECT 58 / 83
----
0

query I rowsort
SELECT 93 * - 69 * - 94
----
603198

onlyif mysql # DIV for integer division: 
query I rowsort label-980
SELECT DISTINCT 83 DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT 83 / + 90 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT - COUNT( DISTINCT + 8 ) * - 20 + - 52 * 85 col1
----
-4400

skipif mysql # not compatible
query I rowsort label-982
SELECT - COUNT ( DISTINCT + 8 ) * - 20 + - 52 * 85 col1
----
-4400

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT - - MAX( DISTINCT - + 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-983
SELECT - - MAX ( DISTINCT - + 64 ) AS col2
----
-64

query I rowsort
SELECT - CASE - - ( 4 ) WHEN - 91 * - 14 + 65 THEN NULL WHEN + CASE WHEN NOT - 55 NOT BETWEEN 42 * + 12 * + 1 AND NULL THEN + - 60 * + 29 * + 91 ELSE NULL END THEN NULL ELSE - + 78 END
----
78

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

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

query I rowsort
SELECT ALL + 40 * - + 55 + + + 6 AS col2
----
-2194

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT + MAX( DISTINCT + - 74 ) * - + 23 AS col1
----
1702

skipif mysql # not compatible
query I rowsort label-987
SELECT + MAX ( DISTINCT + - 74 ) * - + 23 AS col1
----
1702

query I rowsort
SELECT ( + + 72 ) * - 3
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT ALL + - MIN( COALESCE ( 65, - + 89 + - - 87 + - + 43, 94 ) ) + 28 + + 70
----
33

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + - MIN ( COALESCE ( 65, - + 89 + - - 87 + - + 43, 94 ) ) + 28 + + 70
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-990
SELECT DISTINCT - - 20 DIV 35 + - + 24 + - + 21
----
-45

skipif mysql # not compatible
query I rowsort label-990
SELECT DISTINCT - - 20 / 35 + - + 24 + - + 21
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT COUNT( * ) DIV - 92 + - - ( - 53 ) AS col0
----
-53

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

query II rowsort
SELECT 6 * 88 AS col2, - 36 + 7 AS col2
----
528
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-993
SELECT + 75 + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-993
SELECT + 75 + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
74

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

query I rowsort
SELECT ALL + + 90 + + 56 col1
----
146

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-997
SELECT DISTINCT - ( CASE WHEN - COUNT( * ) IS NOT NULL THEN + 51 * + CAST( + + SUM( + 22 ) AS SIGNED ) END ) * - - ( + - 14 ) - - 7 * + 20
----
15848

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT - ( CASE WHEN - COUNT ( * ) IS NOT NULL THEN + 51 * + CAST ( + + SUM ( + 22 ) AS INTEGER ) END ) * - - ( + - 14 ) - - 7 * + 20
----
15848

query I rowsort
SELECT ALL - ( - 72 ) col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT - 10 * - COUNT( * ) + - 51 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-999
SELECT - 10 * - COUNT ( * ) + - 51 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT ALL NULLIF ( + - 88, - + 52 + + 36 + 6 + + 47 ) - + 88 + - + COUNT( * ) AS col2
----
-177

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL NULLIF ( + - 88, - + 52 + + 36 + 6 + + 47 ) - + 88 + - + COUNT ( * ) AS col2
----
-177

query I rowsort
SELECT ALL - 6 - + ( 84 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1002
SELECT 49 * CAST( - 29 AS SIGNED ) AS col2, - 56 + + + 88 * + - 51, - COALESCE ( + - 86, - 61 ) * 21 AS col0
----
-1421
-4544
1806

skipif mysql # not compatible
query III rowsort label-1002
SELECT 49 * CAST ( - 29 AS INTEGER ) AS col2, - 56 + + + 88 * + - 51, - COALESCE ( + - 86, - 61 ) * 21 AS col0
----
-1421
-4544
1806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1003
SELECT DISTINCT - 33 * - MIN( ALL + 15 ) * - 98 * - 75 AS col0, 43 + + - NULLIF ( - 95, NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) * + - CAST( NULL AS SIGNED ) / 1 ) ) AS col0
----
3638250
138

skipif mysql # not compatible
query II rowsort label-1003
SELECT DISTINCT - 33 * - MIN ( ALL + 15 ) * - 98 * - 75 AS col0, 43 + + - NULLIF ( - 95, NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) / 1 ) ) AS col0
----
3638250
138

query I rowsort
SELECT ALL + 43 - - 4 AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT COUNT( COALESCE ( 33, 87 ) ) * 57 AS col1, + 20
----
57
20

skipif mysql # not compatible
query II rowsort label-1005
SELECT COUNT ( COALESCE ( 33, 87 ) ) * 57 AS col1, + 20
----
57
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL - SUM( - ( 99 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - SUM ( - ( 99 ) ) AS col0
----
99

query I rowsort
SELECT 79 * + 68 + 5 * - 83
----
4957

query II rowsort
SELECT + 49, 58 col1
----
49
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1009
SELECT SUM( + - CAST( NULL AS SIGNED ) ) * - - 40 / - 33 + 39 + - - 16 * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1009
SELECT SUM ( + - CAST ( NULL AS INTEGER ) ) * - - 40 / - 33 + 39 + - - 16 * + 1
----
NULL

query I rowsort
SELECT 48 * - 55
----
-2640

query I rowsort
SELECT 58 + 29
----
87

query I rowsort
SELECT 67 + 33
----
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1013
SELECT 74 * 35 * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT 74 * 35 * CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT COUNT( - - 7 ) + + + 52
----
53

skipif mysql # not compatible
query I rowsort label-1014
SELECT COUNT ( - - 7 ) + + + 52
----
53

query I rowsort
SELECT DISTINCT - 26 * - 12 * + 9 AS col1
----
2808

query I rowsort
SELECT ALL 77 * - 7
----
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-1017
SELECT 64 + 22 DIV 35
----
64

skipif mysql # not compatible
query I rowsort label-1017
SELECT 64 + 22 / 35
----
64

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

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

query I rowsort
SELECT DISTINCT - 99 * 55
----
-5445

query I rowsort
SELECT + 35 + - 64
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT + 53 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-1021
SELECT + 53 / 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT - MAX( ( 15 ) ) + - COALESCE ( COUNT( * ), + NULLIF ( - 96, 50 ) ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1022
SELECT - MAX ( ( 15 ) ) + - COALESCE ( COUNT ( * ), + NULLIF ( - 96, 50 ) ) AS col0
----
-16

query I rowsort
SELECT ALL + 36 + 26 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL NULLIF ( 35, MIN( 83 ) * COUNT( * ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL NULLIF ( 35, MIN ( 83 ) * COUNT ( * ) ) AS col2
----
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ALL COUNT( * ) + - 30
----
-29

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL COUNT ( * ) + - 30
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT DISTINCT 40 DIV + 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT 40 / + 58 AS col1
----
0

query I rowsort
SELECT ALL 99 + 17 AS col2
----
116

query I rowsort
SELECT + 10 + 6
----
16

query I rowsort
SELECT DISTINCT 22 * - 41 AS col0
----
-902

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

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

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

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

query I rowsort
SELECT ALL + 1 * 38 + + 37 AS col1
----
75

query I rowsort
SELECT + 63 + 56 AS col0
----
119

query I rowsort
SELECT + 74 * 8 AS col0
----
592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1036
SELECT - COUNT( * ) / CASE + 24 WHEN CAST( + 17 AS SIGNED ) THEN - 29 ELSE NULL END + + 54 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1036
SELECT - COUNT ( * ) / CASE + 24 WHEN CAST ( + 17 AS INTEGER ) THEN - 29 ELSE NULL END + + 54 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT CASE 90 WHEN COUNT( ALL - ( + 16 ) ) + + 3 THEN NULL WHEN + 8 THEN + 41 + + 0 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT CASE 90 WHEN COUNT ( ALL - ( + 16 ) ) + + 3 THEN NULL WHEN + 8 THEN + 41 + + 0 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( 98 ) * - 34 + - 96 * 10
----
-4292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1039
SELECT CASE + COALESCE ( COUNT( * ), + 30 ) WHEN COUNT( * ) * + 82 THEN NULL WHEN - CASE + CAST( NULL AS DECIMAL ) WHEN + 99 THEN 59 WHEN 43 * 38 THEN + COUNT( * ) END + 15 THEN + 9 + + 39 ELSE - CAST( 3 AS SIGNED ) END
----
-3

skipif mysql # not compatible
query I rowsort label-1039
SELECT CASE + COALESCE ( COUNT ( * ), + 30 ) WHEN COUNT ( * ) * + 82 THEN NULL WHEN - CASE + CAST ( NULL AS REAL ) WHEN + 99 THEN 59 WHEN 43 * 38 THEN + COUNT ( * ) END + 15 THEN + 9 + + 39 ELSE - CAST ( 3 AS INTEGER ) END
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT + 93 * SUM( - 20 ) + 84 * + 48 AS col2
----
2172

skipif mysql # not compatible
query I rowsort label-1040
SELECT + 93 * SUM ( - 20 ) + 84 * + 48 AS col2
----
2172

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT + 61 DIV - 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-1042
SELECT + 61 / - 98 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT DISTINCT - 2 * COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT - 2 * COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ALL + 84 * 55
----
4620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT DISTINCT - 30 * - MIN( ALL 53 DIV 48 )
----
30

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT - 30 * - MIN ( ALL 53 / 48 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1046
SELECT - NULLIF ( + 95, 33 ) DIV 86
----
-1

skipif mysql # not compatible
query I rowsort label-1046
SELECT - NULLIF ( + 95, 33 ) / 86
----
-1

query I rowsort
SELECT - 7 * + 47
----
-329

query I rowsort
SELECT ALL - 39 * - 22 AS col2
----
858

query I rowsort
SELECT ALL + 85 + 16 col0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-1050
SELECT + 53 + 31 DIV + 94 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1050
SELECT + 53 + 31 / + 94 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT - SUM( ALL NULLIF ( - 27, - ( 8 ) ) ) + 65
----
92

skipif mysql # not compatible
query I rowsort label-1051
SELECT - SUM ( ALL NULLIF ( - 27, - ( 8 ) ) ) + 65
----
92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT DISTINCT CAST( + ( COALESCE ( 45, 78 * 40 ) ) AS SIGNED ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT CAST ( + ( COALESCE ( 45, 78 * 40 ) ) AS INTEGER ) AS col2
----
45

query I rowsort
SELECT - 41 - 81
----
-122

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

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

query I rowsort
SELECT ALL + 57 * 10
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT DISTINCT MAX( CASE 45 WHEN + 44 THEN 56 / 54 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT MAX ( CASE 45 WHEN + 44 THEN 56 / 54 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT DISTINCT + - COALESCE ( NULLIF ( 83, - COUNT( * ) * + 91 ), - 79, 77 ) + + 24 * + 32
----
685

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT + - COALESCE ( NULLIF ( 83, - COUNT ( * ) * + 91 ), - 79, 77 ) + + 24 * + 32
----
685

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

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL + - CAST ( NULL AS REAL ) * - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ALL SUM( ALL - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL SUM ( ALL - 94 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT + COALESCE ( 61, 45 + 83 DIV 41, + 24 )
----
61

skipif mysql # not compatible
query I rowsort label-1061
SELECT + COALESCE ( 61, 45 + 83 / 41, + 24 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT ALL - 14 DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL - 14 / 65 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT + MIN( ALL - 77 ) * + 53 col1
----
-4081

skipif mysql # not compatible
query I rowsort label-1064
SELECT + MIN ( ALL - 77 ) * + 53 col1
----
-4081

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT ALL ( + 43 ) DIV 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL ( + 43 ) / 34 AS col1
----
1

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

query I rowsort
SELECT ALL 38 * - + 4
----
-152

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

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

query I rowsort
SELECT + 20 * - 84 * - 57
----
95760

query I rowsort
SELECT ALL 31 * NULLIF ( 58, + 17 ) AS col2
----
1798

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT + 37 + - COUNT( * ) * + 67
----
-30

skipif mysql # not compatible
query I rowsort label-1071
SELECT + 37 + - COUNT ( * ) * + 67
----
-30

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

query I rowsort
SELECT DISTINCT 78 * + 58
----
4524

query I rowsort
SELECT DISTINCT 13 * + 41 + 61 * 47
----
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT ALL COUNT( ALL - 12 ) * 78 + + 93
----
171

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL COUNT ( ALL - 12 ) * 78 + + 93
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT + COUNT( * ) * + 97 + 21
----
118

skipif mysql # not compatible
query I rowsort label-1076
SELECT + COUNT ( * ) * + 97 + 21
----
118

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1078
SELECT 9 DIV - 31 * - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1078
SELECT 9 / - 31 * - 47 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1079
SELECT 54 * - 26 + ( + 20 ) * + COALESCE ( - NULLIF ( + 89, 63 * 34 ) * - NULLIF ( COUNT( * ) * + COUNT( * ), + CASE + NULLIF ( + 59, ( 4 ) ) WHEN - 30 THEN MIN( ALL - ( 21 ) ) * + 33 ELSE - NULLIF ( 3, 90 ) END DIV - 85 ), - COUNT( DISTINCT 94 ), 15 DIV - 77 )
----
376

skipif mysql # not compatible
query I rowsort label-1079
SELECT 54 * - 26 + ( + 20 ) * + COALESCE ( - NULLIF ( + 89, 63 * 34 ) * - NULLIF ( COUNT ( * ) * + COUNT ( * ), + CASE + NULLIF ( + 59, ( 4 ) ) WHEN - 30 THEN MIN ( ALL - ( 21 ) ) * + 33 ELSE - NULLIF ( 3, 90 ) END / - 85 ), - COUNT ( DISTINCT 94 ), 15 / - 77 )
----
376

query I rowsort
SELECT ALL - + 51 + - - 91
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT NULLIF ( - 71, - 80 / COUNT( * ) + 64 ) + - 93 * - 82 AS col1
----
7555

skipif mysql # not compatible
query I rowsort label-1081
SELECT NULLIF ( - 71, - 80 / COUNT ( * ) + 64 ) + - 93 * - 82 AS col1
----
7555

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT 43 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1082
SELECT 43 / 73 AS col2
----
0

query I rowsort
SELECT DISTINCT 13 * - 84 AS col2
----
-1092

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

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

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

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT - COUNT ( * ) + 66 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT DISTINCT + - 46 + - 12 + COUNT( ALL + 59 + + 57 ) * - 85
----
-143

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT + - 46 + - 12 + COUNT ( ALL + 59 + + 57 ) * - 85
----
-143

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT MIN( DISTINCT - + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1088
SELECT MIN ( DISTINCT - + 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1089
SELECT - NULLIF ( + + 40, + 60 + ( - 47 + - CAST( NULL AS SIGNED ) / + 68 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-1089
SELECT - NULLIF ( + + 40, + 60 + ( - 47 + - CAST ( NULL AS INTEGER ) / + 68 ) )
----
-40

query I rowsort
SELECT 91 + + + 26 AS col0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT ( - + 17 ) + + 73 DIV 32 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1091
SELECT ( - + 17 ) + + 73 / 32 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT - - 71 - - 4 * + COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT - - 71 - - 4 * + COUNT ( * ) AS col1
----
75

query I rowsort
SELECT ALL + 85 * + 48 + 74 * 11 AS col2
----
4894

query I rowsort
SELECT + 77 + + ( + 77 )
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1095
SELECT ALL 22, + COUNT( * ) DIV - 77 AS col0
----
22
0

skipif mysql # not compatible
query II rowsort label-1095
SELECT ALL 22, + COUNT ( * ) / - 77 AS col0
----
22
0

query I rowsort
SELECT 59 + - 84
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT MIN( ALL + 57 ) * - 91 + COUNT( * ) AS col0
----
-5186

skipif mysql # not compatible
query I rowsort label-1097
SELECT MIN ( ALL + 57 ) * - 91 + COUNT ( * ) AS col0
----
-5186

query I rowsort
SELECT 33 * + 55 AS col2
----
1815

query I rowsort
SELECT DISTINCT + 2 * - + ( 47 ) * ( + 85 )
----
-7990

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT 52 DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1100
SELECT 52 / + 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT + 60 * + 88 + + - COUNT( * )
----
5279

skipif mysql # not compatible
query I rowsort label-1101
SELECT + 60 * + 88 + + - COUNT ( * )
----
5279

query II rowsort
SELECT ALL - 23, ( + - 60 ) col0
----
-23
-60

query II rowsort
SELECT + 89 AS col2, 78
----
89
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL + COUNT( * ) * + 63 * 86
----
5418

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL + COUNT ( * ) * + 63 * 86
----
5418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT ALL MIN( DISTINCT - 71 ) DIV - + 22
----
3

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL MIN ( DISTINCT - 71 ) / - + 22
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT SUM( ALL 84 ) * - - 34 AS col1
----
2856

skipif mysql # not compatible
query I rowsort label-1106
SELECT SUM ( ALL 84 ) * - - 34 AS col1
----
2856

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1108
SELECT + 55 AS col1, 71 DIV - + 91
----
55
0

skipif mysql # not compatible
query II rowsort label-1108
SELECT + 55 AS col1, 71 / - + 91
----
55
0

query II rowsort
SELECT ALL - 28 AS col2, - 63 * - 91
----
-28
5733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1110
SELECT 67 DIV - 1 * COUNT( * ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-1110
SELECT 67 / - 1 * COUNT ( * ) col2
----
-67

query I rowsort
SELECT 3 * + 96 AS col2
----
288

query II rowsort
SELECT 43, - 5 + 53 AS col0
----
43
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT MAX( ALL - 30 ) * - - 99 * - 35
----
103950

skipif mysql # not compatible
query I rowsort label-1113
SELECT MAX ( ALL - 30 ) * - - 99 * - 35
----
103950

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT NULLIF ( - + COUNT( * ), + 80 ) * - 28 col0
----
28

skipif mysql # not compatible
query I rowsort label-1114
SELECT NULLIF ( - + COUNT ( * ), + 80 ) * - 28 col0
----
28

query I rowsort
SELECT ALL 18 + + 6 AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1116
SELECT DISTINCT CASE - COUNT( * ) WHEN 30 THEN 11 * ( - CAST( + COALESCE ( + COALESCE ( + COUNT( * ), + 44 * COUNT( * ) - + 7 / + 94 ), 21 ) AS SIGNED ) ) + + ( 37 + + 70 * 14 ) WHEN CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) THEN NULL END + - 14 * + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT CASE - COUNT ( * ) WHEN 30 THEN 11 * ( - CAST ( + COALESCE ( + COALESCE ( + COUNT ( * ), + 44 * COUNT ( * ) - + 7 / + 94 ), 21 ) AS INTEGER ) ) + + ( 37 + + 70 * 14 ) WHEN CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) THEN NULL END + - 14 * + 70 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT CAST( NULL AS SIGNED ) * - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT CAST ( NULL AS INTEGER ) * - 51 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1119
SELECT + + MAX ( 34 )
----
34

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

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL 6 + + - 26 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( - 23, 51 ) AS col1
----
-23

query I rowsort
SELECT ALL + 41 - + + 20 + - 50 + + 98
----
69

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

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

query I rowsort
SELECT + CASE AVG ( ALL - 80 ) WHEN + 7 THEN 6 - - 36 END + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT COUNT( ALL - 21 )
----
1

skipif mysql # not compatible
query I rowsort label-1125
SELECT COUNT ( ALL - 21 )
----
1

query I rowsort
SELECT 44 * 9 * + 39 + 95
----
15539

onlyif mysql # aggregate syntax: 
query II rowsort label-1127
SELECT 51, COUNT( * ) * 96 AS col2
----
51
96

skipif mysql # not compatible
query II rowsort label-1127
SELECT 51, COUNT ( * ) * 96 AS col2
----
51
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT + SUM( DISTINCT ( + 52 ) ) * MAX( 67 )
----
3484

skipif mysql # not compatible
query I rowsort label-1129
SELECT + SUM ( DISTINCT ( + 52 ) ) * MAX ( 67 )
----
3484

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL MAX( ALL 56 )
----
56

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL MAX ( ALL 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1131
SELECT CAST( - + 48 AS SIGNED ) - + + 54
----
-102

skipif mysql # not compatible
query I rowsort label-1131
SELECT CAST ( - + 48 AS INTEGER ) - + + 54
----
-102

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

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

query I rowsort
SELECT ALL - - 69 * - + 82
----
-5658

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + - 54 * - 42 AS col0
----
2269

skipif mysql # not compatible
query I rowsort label-1134
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + - 54 * - 42 AS col0
----
2269

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL + CASE + 47 WHEN + - MAX( ALL ( + 95 ) ) THEN NULL ELSE 15 END AS col2
----
15

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL + CASE + 47 WHEN + - MAX ( ALL ( + 95 ) ) THEN NULL ELSE 15 END AS col2
----
15

query I rowsort
SELECT + 28 * 85 - + 63 * - 78
----
7294

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

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

query I rowsort
SELECT ALL 31 * - 20 * + 95 + + ( - 39 ) AS col2
----
-58939

query I rowsort
SELECT NULLIF ( + ( + + 25 ), 74 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ALL NULLIF ( - 20, 79 ) * + 47 * COUNT( * ) - 46 + - 58
----
-1044

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL NULLIF ( - 20, 79 ) * + 47 * COUNT ( * ) - 46 + - 58
----
-1044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1141
SELECT COALESCE ( - - COALESCE ( - 85, 89 * 57 + + 62 DIV 29 ), MAX( 63 ) - - 27 DIV 81, 13 )
----
-85

skipif mysql # not compatible
query I rowsort label-1141
SELECT COALESCE ( - - COALESCE ( - 85, 89 * 57 + + 62 / 29 ), MAX ( 63 ) - - 27 / 81, 13 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL + COUNT( * ) * - - 64 + 60 - + 27
----
97

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL + COUNT ( * ) * - - 64 + 60 - + 27
----
97

query I rowsort
SELECT ALL - 80 * - - 52
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT - 31 + + COUNT( DISTINCT 52 ) + + 23 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1144
SELECT - 31 + + COUNT ( DISTINCT 52 ) + + 23 AS col0
----
-7

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

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

query I rowsort
SELECT - 48 + + ( - 62 ) AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT SUM( - - ( + 21 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1147
SELECT SUM ( - - ( + 21 ) ) AS col1
----
21

query I rowsort
SELECT + 11 * - 10 + 47 AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1149
SELECT ALL + ( - 39 ) AS col2, CAST( NULL AS SIGNED ) * - - NULLIF ( 91, - 29 - 97 * 9 ) AS col2
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-1149
SELECT ALL + ( - 39 ) AS col2, CAST ( NULL AS INTEGER ) * - - NULLIF ( 91, - 29 - 97 * 9 ) AS col2
----
-39
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + 91, + 99 ) col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT ALL 29 * - + CASE - + CASE 34 WHEN 12 - - 33 * + ( 67 ) THEN + 17 END WHEN COUNT( * ) + + 95 THEN COUNT( * ) / 34 WHEN + 26 THEN + COUNT( * ) + - 9 ELSE NULL END - - COUNT( - 33 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL 29 * - + CASE - + CASE 34 WHEN 12 - - 33 * + ( 67 ) THEN + 17 END WHEN COUNT ( * ) + + 95 THEN COUNT ( * ) / 34 WHEN + 26 THEN + COUNT ( * ) + - 9 ELSE NULL END - - COUNT ( - 33 ) col0
----
NULL

query II rowsort
SELECT - + 14 * - + 41 col0, - 49
----
574
-49

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

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

query I rowsort
SELECT ALL + 11 * + 43 - 64 * 91 + + 15 AS col2
----
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT + + 64 + - NULLIF ( - + ( - 65 ), + 8 ) - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1155
SELECT + + 64 + - NULLIF ( - + ( - 65 ), + 8 ) - COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT - - 53 * + - ( + - 64 ) * 22 AS col1
----
74624

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT COALESCE ( COUNT( * ), - 22 )
----
1

skipif mysql # not compatible
query I rowsort label-1157
SELECT COALESCE ( COUNT ( * ), - 22 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT - 38 * + + COUNT( * ) * + 10 + + MAX( + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT - 38 * + + COUNT ( * ) * + 10 + + MAX ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1159
SELECT - 9 / CAST( NULL AS SIGNED ), + 15 AS col0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-1159
SELECT - 9 / CAST ( NULL AS INTEGER ), + 15 AS col0
----
NULL
15

query I rowsort
SELECT + 79 * - + 39
----
-3081

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL 62 * - NULLIF ( COUNT( DISTINCT - 91 ), + 9 / 94 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL 62 * - NULLIF ( COUNT ( DISTINCT - 91 ), + 9 / 94 ) AS col2
----
-62

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

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT - - 0 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT ALL + MIN( ALL 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL + MIN ( ALL 33 ) AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT + + COALESCE ( - 91, + + 65 * + CAST( NULL AS SIGNED ) + 17 * ( 36 ) ) + 22 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-1164
SELECT + + COALESCE ( - 91, + + 65 * + CAST ( NULL AS INTEGER ) + 17 * ( 36 ) ) + 22 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL 56 + MIN( ALL - 7 )
----
49

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL 56 + MIN ( ALL - 7 )
----
49

query I rowsort
SELECT ALL 9 + NULLIF ( + 21, - 68 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-1167
SELECT + 14 + COUNT( * ) + + 34 AS col1, 3 col1
----
49
3

skipif mysql # not compatible
query II rowsort label-1167
SELECT + 14 + COUNT ( * ) + + 34 AS col1, 3 col1
----
49
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT ALL 20 + + SUM( - ( + 87 ) ) * + 47 AS col2
----
-4069

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL 20 + + SUM ( - ( + 87 ) ) * + 47 AS col2
----
-4069

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT + ( + - 27 ) + - 75 DIV COUNT( * ) AS col1
----
-102

skipif mysql # not compatible
query I rowsort label-1169
SELECT + ( + - 27 ) + - 75 / COUNT ( * ) AS col1
----
-102

query I rowsort
SELECT ALL + 85 + + 0 AS col1
----
85

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1172
SELECT - CAST( NULL AS DECIMAL ) AS col1, + 65
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1172
SELECT - CAST ( NULL AS REAL ) AS col1, + 65
----
NULL
65

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT + 78 DIV - 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1173
SELECT + 78 / - 68 AS col0
----
-1

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

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

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

query I rowsort
SELECT - 60 + - 6
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT CAST( - NULLIF ( - ( + 74 ), - - COUNT( * ) + 74 * - 3 ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-1177
SELECT CAST ( - NULLIF ( - ( + 74 ), - - COUNT ( * ) + 74 * - 3 ) AS INTEGER )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT ALL 20 DIV - 91 * 34 + - 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL 20 / - 91 * 34 + - 23 AS col0
----
-23

query I rowsort
SELECT + COALESCE ( - 73, + 33 * + + COALESCE ( 97, 74 * + 64 + 78 * + 30 ) * NULLIF ( - 31, 53 * 88 ), 21 * 53 ) * + 47
----
-3431

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1180
SELECT 95 DIV - 83 + + ( + - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-1180
SELECT 95 / - 83 + + ( + - COUNT ( * ) )
----
-2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1182
SELECT ALL 57 / + 59 * 42 - + - COUNT( * ) + + + 54 + + COUNT( * ) * CASE COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) WHEN - 79 THEN - ( - 34 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL 57 / + 59 * 42 - + - COUNT ( * ) + + + 54 + + COUNT ( * ) * CASE COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) WHEN - 79 THEN - ( - 34 ) ELSE NULL END
----
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1184
SELECT + 17, - 95 DIV 39 AS col0
----
17
-2

skipif mysql # not compatible
query II rowsort label-1184
SELECT + 17, - 95 / 39 AS col0
----
17
-2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1186
SELECT ALL + - CAST( 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL + - CAST ( 16 AS INTEGER )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1187
SELECT + NULLIF ( COUNT( * ), + COALESCE ( + 35, - 79 + 79, + 18 / 84, 21 + + COUNT( * ) ) + ( CAST( NULL AS DECIMAL ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1187
SELECT + NULLIF ( COUNT ( * ), + COALESCE ( + 35, - 79 + 79, + 18 / 84, 21 + + COUNT ( * ) ) + ( CAST ( NULL AS REAL ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT + - MAX( DISTINCT - - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1188
SELECT + - MAX ( DISTINCT - - 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL - - 2 * COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL - - 2 * COUNT ( * ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT SUM( DISTINCT 73 )
----
73

skipif mysql # not compatible
query I rowsort label-1190
SELECT SUM ( DISTINCT 73 )
----
73

query I rowsort
SELECT - 80 * 37 AS col0
----
-2960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1192
SELECT - 50 * COALESCE ( + + 44, + + 41 ) + + 85 * - NULLIF ( 5 + + CAST( NULL AS SIGNED ), - AVG ( - 58 ) * + CAST( - 63 * 83 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT - 50 * COALESCE ( + + 44, + + 41 ) + + 85 * - NULLIF ( 5 + + CAST ( NULL AS INTEGER ), - AVG ( - 58 ) * + CAST ( - 63 * 83 AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL + - 24, + COALESCE ( + - 58, + 65, - + 67 ) - 38 col1
----
-24
-96

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

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

query I rowsort
SELECT + 68 * - 98
----
-6664

query I rowsort
SELECT - - 41 * - 68
----
-2788

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT - - 92 DIV - - 80
----
1

skipif mysql # not compatible
query I rowsort label-1198
SELECT - - 92 / - - 80
----
1

query I rowsort
SELECT ALL + CASE + 62 WHEN - 32 THEN 94 ELSE NULL END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1201
SELECT - 96 * + NULLIF ( CAST( NULL AS DECIMAL ), + CASE + CAST( NULL AS SIGNED ) WHEN 7 THEN NULL ELSE 56 END * + 89 - CASE 0 WHEN + 77 + - 60 THEN 81 END ) - + 29 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT - 96 * + NULLIF ( CAST ( NULL AS REAL ), + CASE + CAST ( NULL AS INTEGER ) WHEN 7 THEN NULL ELSE 56 END * + 89 - CASE 0 WHEN + 77 + - 60 THEN 81 END ) - + 29 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1202
SELECT + 66 + CAST( - - 85 AS SIGNED ) AS col2
----
151

skipif mysql # not compatible
query I rowsort label-1202
SELECT + 66 + CAST ( - - 85 AS INTEGER ) AS col2
----
151

query I rowsort
SELECT DISTINCT - ( - + 55 ) * - 41 + + 51 + 1 * + 16
----
-2188

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT ALL COUNT( * ) * 91 * + 95 + 11 - - - 59 + 11 AS col1
----
8608

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL COUNT ( * ) * 91 * + 95 + 11 - - - 59 + 11 AS col1
----
8608

query I rowsort
SELECT DISTINCT - 3 * + 94
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ALL + 52 + - - COUNT( * ) + - - 41 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL + 52 + - - COUNT ( * ) + - - 41 AS col2
----
94

query I rowsort
SELECT ALL - 98 + - + 22
----
-120

query II rowsort
SELECT 59, - 42 + - 13 * - - 46 AS col1
----
59
-640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT ALL 3 + + 20 - + COALESCE ( - + 6, - 52, COUNT( * ) DIV - 91 ) * 86
----
539

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL 3 + + 20 - + COALESCE ( - + 6, - 52, COUNT ( * ) / - 91 ) * 86
----
539

query II rowsort
SELECT ALL 82 col2, + 22
----
82
22

query II rowsort
SELECT - 37 AS col2, 91
----
-37
91

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

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

query I rowsort
SELECT ALL 67 + + + 35 col0
----
102

query I rowsort
SELECT ALL 31 - 6 * + 12 + - ( 80 ) * CASE 25 WHEN - 68 THEN 97 * + 46 WHEN 53 + + 25 THEN NULL END + 45 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT COALESCE ( - 99, - + 55 ) DIV + + 37 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1215
SELECT COALESCE ( - 99, - + 55 ) / + + 37 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT COUNT( * ) * 24 * + 46
----
1104

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT COUNT ( * ) * 24 * + 46
----
1104

query II rowsort
SELECT ALL - 57 col2, 6 + + - 14
----
-57
-8

query I rowsort
SELECT ( ( 41 ) ) * + 1 + + 12 * + ( - 96 ) * 50
----
-57559

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

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - 0 * - COUNT ( * ) / - COUNT ( * ) + - 15 AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1220
SELECT + ( 52 ) DIV ( - 81 ) * 68 - + + 71 * 25 AS col0
----
-1775

skipif mysql # not compatible
query I rowsort label-1220
SELECT + ( 52 ) / ( - 81 ) * 68 - + + 71 * 25 AS col0
----
-1775

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

query I rowsort
SELECT DISTINCT 57 * + 52 * - 44
----
-130416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1223
SELECT 12 * - COUNT( 80 ) DIV - SUM( DISTINCT + 60 ) + - 66 - 59 * 82 DIV 10
----
-549

skipif mysql # not compatible
query I rowsort label-1223
SELECT 12 * - COUNT ( 80 ) / - SUM ( DISTINCT + 60 ) + - 66 - 59 * 82 / 10
----
-549

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1224
SELECT ALL - 71 AS col2, - MAX( 74 ) * COALESCE ( + - 70, + + ( - 28 ) DIV - 76, + 45, 2 * - 73 ) - - COUNT( * ) * + 21 AS col2
----
-71
5201

skipif mysql # not compatible
query II rowsort label-1224
SELECT ALL - 71 AS col2, - MAX ( 74 ) * COALESCE ( + - 70, + + ( - 28 ) / - 76, + 45, 2 * - 73 ) - - COUNT ( * ) * + 21 AS col2
----
-71
5201

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

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

query II rowsort
SELECT ALL - 2 AS col0, 88 AS col0
----
-2
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1227
SELECT ALL - 61 AS col0, + 31 + - + 1 * + COUNT( * ) * - COUNT( * ) + - - 82 - - COUNT( * ) * + CASE 68 + 14 WHEN 94 THEN COUNT( * ) + + SUM( + 3 ) END AS col1
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-1227
SELECT ALL - 61 AS col0, + 31 + - + 1 * + COUNT ( * ) * - COUNT ( * ) + - - 82 - - COUNT ( * ) * + CASE 68 + 14 WHEN 94 THEN COUNT ( * ) + + SUM ( + 3 ) END AS col1
----
-61
NULL

query II rowsort
SELECT ALL - 57 + + 39 * - 2 * 95, 64 col1
----
-7467
64

query II rowsort
SELECT + + 7 AS col0, - 57 * + 34 AS col2
----
7
-1938

query I rowsort
SELECT 50 + + COALESCE ( - - 61, + 99, - 93 )
----
111

query I rowsort
SELECT - 81 * 16
----
-1296

query II rowsort
SELECT ALL - 40, + 19 AS col1
----
-40
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT + COALESCE ( + SUM( ALL - 15 ), - 53, + COUNT( * ), - 2 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1233
SELECT + COALESCE ( + SUM ( ALL - 15 ), - 53, + COUNT ( * ), - 2 ) AS col1
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1234
SELECT + ( + + 49 ) * - COUNT( * ) + + 54 DIV + - 7 - + SUM( - 32 )
----
-24

skipif mysql # not compatible
query I rowsort label-1234
SELECT + ( + + 49 ) * - COUNT ( * ) + + 54 / + - 7 - + SUM ( - 32 )
----
-24

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

query I rowsort
SELECT 60 + 24
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT DISTINCT 86 + - 7 + - - COUNT( * ) + - 48 col2
----
32

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT 86 + - 7 + - - COUNT ( * ) + - 48 col2
----
32

query II rowsort
SELECT - 56, 88 col2
----
-56
88

query I rowsort
SELECT 71 * - 50 AS col0
----
-3550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1240
SELECT ALL 62 + COALESCE ( 28, + + COUNT( * ) * - 78 DIV + 73, + 72 + 6 ) + - COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL 62 + COALESCE ( 28, + + COUNT ( * ) * - 78 / + 73, + 72 + 6 ) + - COUNT ( * ) AS col2
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT MIN( ALL - 18 ) * - + 1 + - MAX( + ( - 53 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-1242
SELECT MIN ( ALL - 18 ) * - + 1 + - MAX ( + ( - 53 ) ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL + 21 - - 58 + + 8 * + 59 + + + COUNT( + 15 )
----
552

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL + 21 - - 58 + + 8 * + 59 + + + COUNT ( + 15 )
----
552

query I rowsort
SELECT 83 + - 38 AS col0
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT ALL COALESCE ( + ( + 37 ), COUNT( * ) ) * + 78
----
2886

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL COALESCE ( + ( + 37 ), COUNT ( * ) ) * + 78
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT MAX( DISTINCT 36 ) + + 10 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1247
SELECT MAX ( DISTINCT 36 ) + + 10 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT 2 + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1248
SELECT 2 + - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1249
SELECT ALL COUNT( * ) - + 99 - + ( + - CAST( - 21 AS SIGNED ) ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL COUNT ( * ) - + 99 - + ( + - CAST ( - 21 AS INTEGER ) ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 50 * 73 * ( 41 )
----
149650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1251
SELECT 18 + COUNT( * ) - CASE + 97 WHEN + + COUNT( * ) + 18 / - 37 THEN - 70 * + 40 WHEN - 33 + + ( 10 + + 39 / 31 ) THEN NULL WHEN 74 * 51 THEN + CAST( NULL AS SIGNED ) ELSE - NULLIF ( COUNT( * ), 71 ) END + 73 * - 36 AS col2
----
-2608

skipif mysql # not compatible
query I rowsort label-1251
SELECT 18 + COUNT ( * ) - CASE + 97 WHEN + + COUNT ( * ) + 18 / - 37 THEN - 70 * + 40 WHEN - 33 + + ( 10 + + 39 / 31 ) THEN NULL WHEN 74 * 51 THEN + CAST ( NULL AS INTEGER ) ELSE - NULLIF ( COUNT ( * ), 71 ) END + 73 * - 36 AS col2
----
-2608

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT ALL + COUNT( * ) * - 93 * + 75 AS col0
----
-6975

skipif mysql # not compatible
query I rowsort label-1252
SELECT ALL + COUNT ( * ) * - 93 * + 75 AS col0
----
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT COUNT( * ) + + 13 + - + 63 * - + 76 + - + ( - + 16 ) AS col2
----
4818

skipif mysql # not compatible
query I rowsort label-1253
SELECT COUNT ( * ) + + 13 + - + 63 * - + 76 + - + ( - + 16 ) AS col2
----
4818

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT 37 + - + 3 * - - COUNT( * ) - + 2
----
32

skipif mysql # not compatible
query I rowsort label-1254
SELECT 37 + - + 3 * - - COUNT ( * ) - + 2
----
32

query I rowsort
SELECT - 53 * 96 * - 71 * + - 9
----
-3251232

query I rowsort
SELECT - 18 * - ( - - 83 ) * - + 57 * 44 + + 76 * - 27
----
-3749004

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT + CASE - COUNT( * ) WHEN - COUNT( * ) - - 69 THEN NULL WHEN + COUNT( * ) * - 7 THEN - COUNT( * ) WHEN COUNT( * ) + + COUNT( + 92 ) * NULLIF ( + ( - 23 ), - 54 ) THEN NULL ELSE - 77 * - 37 END
----
2849

skipif mysql # not compatible
query I rowsort label-1257
SELECT + CASE - COUNT ( * ) WHEN - COUNT ( * ) - - 69 THEN NULL WHEN + COUNT ( * ) * - 7 THEN - COUNT ( * ) WHEN COUNT ( * ) + + COUNT ( + 92 ) * NULLIF ( + ( - 23 ), - 54 ) THEN NULL ELSE - 77 * - 37 END
----
2849

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1258
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( 92 ) col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL 86 + + + COUNT( * ) + 33 * + 29
----
1044

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL 86 + + + COUNT ( * ) + 33 * + 29
----
1044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1261
SELECT MIN( ALL 65 ) * 63 - + - CAST( - 36 AS SIGNED )
----
4059

skipif mysql # not compatible
query I rowsort label-1261
SELECT MIN ( ALL 65 ) * 63 - + - CAST ( - 36 AS INTEGER )
----
4059

query I rowsort
SELECT ALL + 95 + + - 5
----
90

query I rowsort
SELECT + 92 * 12 * - 76 AS col1
----
-83904

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT ALL NULLIF ( 54, - 80 + 96 ) DIV + ( + - COUNT( * ) ) + + 97
----
43

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL NULLIF ( 54, - 80 + 96 ) / + ( + - COUNT ( * ) ) + + 97
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL + 45 + + + CASE 84 WHEN - 13 THEN 71 * + CASE 85 WHEN - 49 THEN - CASE + 32 WHEN - SUM( DISTINCT - 68 ) * - 57 THEN NULL WHEN 8 + 0 THEN + 45 ELSE NULL END END * - 9 WHEN 71 + 0 / + SUM( ALL + 13 - 75 ) THEN NULL WHEN 23 THEN NULL ELSE + 77 END AS col0
----
122

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL + 45 + + + CASE 84 WHEN - 13 THEN 71 * + CASE 85 WHEN - 49 THEN - CASE + 32 WHEN - SUM ( DISTINCT - 68 ) * - 57 THEN NULL WHEN 8 + 0 THEN + 45 ELSE NULL END END * - 9 WHEN 71 + 0 / + SUM ( ALL + 13 - 75 ) THEN NULL WHEN 23 THEN NULL ELSE + 77 END AS col0
----
122

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1267
SELECT ( + + 87 ) - + - 6, 44 + + 75 + + CAST( NULL AS DECIMAL ) AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-1267
SELECT ( + + 87 ) - + - 6, 44 + + 75 + + CAST ( NULL AS REAL ) AS col1
----
93
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1270
SELECT ALL - - MIN( CAST( + + 0 AS SIGNED ) ) col0, 48 AS col2
----
0
48

skipif mysql # not compatible
query II rowsort label-1270
SELECT ALL - - MIN ( CAST ( + + 0 AS INTEGER ) ) col0, 48 AS col2
----
0
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT ALL + COUNT( + 78 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL + COUNT ( + 78 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1272
SELECT ALL CAST( NULL AS DECIMAL ) + - + 52 + + NULLIF ( + + 16, + 63 ) + + 69 + + - MIN( ALL - 85 ) * 83 * COUNT( * ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL CAST ( NULL AS REAL ) + - + 52 + + NULLIF ( + + 16, + 63 ) + + 69 + + - MIN ( ALL - 85 ) * 83 * COUNT ( * ) * 16
----
NULL

query I rowsort
SELECT + 38 + + - 57 col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1274
SELECT ALL 26, 79 * + COUNT( * ) AS col2
----
26
79

skipif mysql # not compatible
query II rowsort label-1274
SELECT ALL 26, 79 * + COUNT ( * ) AS col2
----
26
79

query I rowsort
SELECT - 61 + - - 40 + + - 53 AS col0
----
-74

query I rowsort
SELECT ALL + 35 * - 8 AS col2
----
-280

query I rowsort
SELECT + ( 15 ) * - 2 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1278
SELECT 27 AS col1, + NULLIF ( + CAST( + - 85 AS SIGNED ), + NULLIF ( - 64, + + 31 ) ) AS col2
----
27
-85

skipif mysql # not compatible
query II rowsort label-1278
SELECT 27 AS col1, + NULLIF ( + CAST ( + - 85 AS INTEGER ), + NULLIF ( - 64, + + 31 ) ) AS col2
----
27
-85

query II rowsort
SELECT - 35 AS col2, 75 AS col1
----
-35
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT DISTINCT SUM( ALL + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT SUM ( ALL + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1281
SELECT ALL MAX( - + 3 ) * + + 89 + + 96, ( - 36 ) DIV NULLIF ( 82, 88 + 15 ) + - 64 * ( 69 * - 25 + 25 ) AS col1
----
-171
108800

skipif mysql # not compatible
query II rowsort label-1281
SELECT ALL MAX ( - + 3 ) * + + 89 + + 96, ( - 36 ) / NULLIF ( 82, 88 + 15 ) + - 64 * ( 69 * - 25 + 25 ) AS col1
----
-171
108800

onlyif mysql # aggregate syntax: 
query II rowsort label-1282
SELECT ALL COUNT( * ), - 92 * + 27 * COUNT( * ) AS col2
----
1
-2484

skipif mysql # not compatible
query II rowsort label-1282
SELECT ALL COUNT ( * ), - 92 * + 27 * COUNT ( * ) AS col2
----
1
-2484

onlyif mysql # aggregate syntax: 
query II rowsort label-1283
SELECT DISTINCT COUNT( * ) AS col0, + 22 + + - COUNT( * ) AS col2
----
1
21

skipif mysql # not compatible
query II rowsort label-1283
SELECT DISTINCT COUNT ( * ) AS col0, + 22 + + - COUNT ( * ) AS col2
----
1
21

query I rowsort
SELECT - 54 * 70 * + - COALESCE ( - - ( - 4 ), + - ( 86 ) ) * + 71
----
-1073520

query I rowsort
SELECT - 66 + - 27 + + + 10 * - 39 AS col2
----
-483

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT - 18 DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1286
SELECT - 18 / 74 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1287
SELECT + 24 * CASE - 29 WHEN + NULLIF ( - + 74, - 91 * + + 20 + + 4 - + 2 / 83 ) THEN + 58 * ( NULLIF ( - COALESCE ( 60, ( + COALESCE ( + 44, 43, - 40 * + COUNT( * ) ) ) * + CAST( NULL AS SIGNED ) ), 69 + CASE + 72 WHEN ( + 65 ) THEN NULL WHEN 84 / 29 + - 30 * SUM( 31 ) THEN + ( NULLIF ( 47, ( 58 ) ) ) + + 91 END * + CAST( COUNT( * ) * 40 AS SIGNED ) ) * - COUNT( * ) ) + 52 WHEN - SUM( - 6 ) * + 13 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT + 24 * CASE - 29 WHEN + NULLIF ( - + 74, - 91 * + + 20 + + 4 - + 2 / 83 ) THEN + 58 * ( NULLIF ( - COALESCE ( 60, ( + COALESCE ( + 44, 43, - 40 * + COUNT ( * ) ) ) * + CAST ( NULL AS INTEGER ) ), 69 + CASE + 72 WHEN ( + 65 ) THEN NULL WHEN 84 / 29 + - 30 * SUM ( 31 ) THEN + ( NULLIF ( 47, ( 58 ) ) ) + + 91 END * + CAST ( COUNT ( * ) * 40 AS INTEGER ) ) * - COUNT ( * ) ) + 52 WHEN - SUM ( - 6 ) * + 13 THEN NULL END
----
NULL

query I rowsort
SELECT - 60 - + + 29 * - 48
----
1332

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT ALL - 81 * + SUM( + 43 )
----
-3483

skipif mysql # not compatible
query I rowsort label-1289
SELECT ALL - 81 * + SUM ( + 43 )
----
-3483

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

query II rowsort
SELECT DISTINCT - - 68 * + 95 + - - 37 col0, 41 AS col1
----
6497
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT + 86 * 84 - COUNT( * ) + COUNT( * ) AS col0
----
7224

skipif mysql # not compatible
query I rowsort label-1292
SELECT + 86 * 84 - COUNT ( * ) + COUNT ( * ) AS col0
----
7224

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

query I rowsort
SELECT - - NULLIF ( - 72, 66 + COALESCE ( + 22, + 57 ) ) + - 49 AS col1
----
-121

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL - 63 * + 0 + + 52 + COUNT( * ) col1
----
53

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - 63 * + 0 + + 52 + COUNT ( * ) col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1297
SELECT 69 * + 84 + + COALESCE ( + 8, ( + + 67 ) + - 45 DIV + 63 ) * + NULLIF ( 24 - 55, + 56 DIV - MAX( DISTINCT + CAST( 71 AS SIGNED ) ) + - ( 16 ) ) AS col1
----
5548

skipif mysql # not compatible
query I rowsort label-1297
SELECT 69 * + 84 + + COALESCE ( + 8, ( + + 67 ) + - 45 / + 63 ) * + NULLIF ( 24 - 55, + 56 / - MAX ( DISTINCT + CAST ( 71 AS INTEGER ) ) + - ( 16 ) ) AS col1
----
5548

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT - CASE - 46 WHEN - COUNT( * ) THEN NULL WHEN - MAX( - 48 ) THEN NULL ELSE + 91 END AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-1298
SELECT - CASE - 46 WHEN - COUNT ( * ) THEN NULL WHEN - MAX ( - 48 ) THEN NULL ELSE + 91 END AS col2
----
-91

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

query II rowsort
SELECT ALL + - 43 AS col2, - 17 AS col2
----
-43
-17

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1302
SELECT ALL 23 * + CAST( NULL AS SIGNED ) - + + 82 / COUNT( * ) - + - ( CASE + 48 WHEN - 35 + + 85 THEN CAST( + 6 AS SIGNED ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL 23 * + CAST ( NULL AS INTEGER ) - + + 82 / COUNT ( * ) - + - ( CASE + 48 WHEN - 35 + + 85 THEN CAST ( + 6 AS INTEGER ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT DISTINCT 73 * - COUNT( * ) * 84 * - 54 - 61 + + - 2 + - - 8
----
331073

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT 73 * - COUNT ( * ) * 84 * - 54 - 61 + + - 2 + - - 8
----
331073

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT + SUM( ALL 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1304
SELECT + SUM ( ALL 52 ) AS col0
----
52

query I rowsort
SELECT CASE + 37 WHEN 44 THEN NULL ELSE + 38 + - 75 END col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1306
SELECT 40 * + SUM( ALL 46 ) + - - CAST( + 99 AS SIGNED )
----
1939

skipif mysql # not compatible
query I rowsort label-1306
SELECT 40 * + SUM ( ALL 46 ) + - - CAST ( + 99 AS INTEGER )
----
1939

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + 32 * - 70 * + MIN( ALL 40 )
----
-89600

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 32 * - 70 * + MIN ( ALL 40 )
----
-89600

query I rowsort
SELECT + 38 * 59 * - 58 AS col0
----
-130036

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT + ( - 33 ) * + 50 / - ( + - 20 ) / 69 / CASE + 99 WHEN + 77 THEN - 44 WHEN - ( + 81 ) THEN - 77 END * + CASE 28 WHEN - 72 THEN 34 * COUNT( 52 ) - - 72 * - 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1309
SELECT + ( - 33 ) * + 50 / - ( + - 20 ) / 69 / CASE + 99 WHEN + 77 THEN - 44 WHEN - ( + 81 ) THEN - 77 END * + CASE 28 WHEN - 72 THEN 34 * COUNT ( 52 ) - - 72 * - 32 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL 14 * - 23 * COUNT( * ) col2
----
-322

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL 14 * - 23 * COUNT ( * ) col2
----
-322

onlyif mysql # DIV for integer division: 
query II rowsort label-1311
SELECT + 2 * - 99 AS col1, - 14 DIV - 21 AS col1
----
-198
0

skipif mysql # not compatible
query II rowsort label-1311
SELECT + 2 * - 99 AS col1, - 14 / - 21 AS col1
----
-198
0

query I rowsort
SELECT + 78 * + 3 AS col0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT - 72 + + - COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1313
SELECT - 72 + + - COUNT ( * ) AS col2
----
-73

query I rowsort
SELECT + 42 * + ( + 91 ) AS col2
----
3822

query I rowsort
SELECT - 48 + 36
----
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ALL + 32 + + + COALESCE ( - COUNT( * ), + ( 79 ) + + - 49 )
----
31

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL + 32 + + + COALESCE ( - COUNT ( * ), + ( 79 ) + + - 49 )
----
31

query I rowsort
SELECT + 36 + + 27 * + - 42
----
-1098

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT + 12 + + MIN( - + 83 ) + - - 81 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1320
SELECT + 12 + + MIN ( - + 83 ) + - - 81 AS col1
----
10

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

query I rowsort
SELECT ALL + 94 + - - 11 - + 46 AS col0
----
59

query I rowsort
SELECT ALL - 19 + - 38 col0
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1324
SELECT DISTINCT 13 DIV + COUNT( * ) + 74 DIV + - 25 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT 13 / + COUNT ( * ) + 74 / + - 25 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1325
SELECT DISTINCT - ( - CAST( + 98 AS SIGNED ) ) DIV - + ( 92 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT - ( - CAST ( + 98 AS INTEGER ) ) / - + ( 92 ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1326
SELECT ALL - + 84 DIV - COUNT( * ) + + - 98
----
-14

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - + 84 / - COUNT ( * ) + + - 98
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1327
SELECT - CAST( - COUNT( * ) AS SIGNED ) / AVG ( ALL - CASE - + 77 WHEN 18 THEN - + 63 * CAST( NULL AS SIGNED ) - - + 46 WHEN + 9 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) / AVG ( ALL - CASE - + 77 WHEN 18 THEN - + 63 * CAST ( NULL AS INTEGER ) - - + 46 WHEN + 9 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1328
SELECT ALL - 87 * - - 57 + 98 + - 69 * + SUM( ALL + + CAST( NULL AS SIGNED ) ) * + 74 * + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL - 87 * - - 57 + 98 + - 69 * + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) * + 74 * + 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT DISTINCT - MAX( - + NULLIF ( - 63, 10 ) ) * 16 * + - 82 * - 1
----
-82656

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT - MAX ( - + NULLIF ( - 63, 10 ) ) * 16 * + - 82 * - 1
----
-82656

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

query II rowsort
SELECT + - CASE + 56 WHEN + 38 THEN NULL ELSE + - COALESCE ( 83, - 27 + + 0 ) END, 47 AS col2
----
83
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT DISTINCT - 85 - COUNT( ALL - - 56 )
----
-86

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT - 85 - COUNT ( ALL - - 56 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT COALESCE ( - 81, + 30 + + 68 ) - + - 65 * - ( - - CASE - 75 WHEN - + COUNT( * ) / + 55 THEN 76 * 68 WHEN - 35 THEN 49 END ) / 45 + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT COALESCE ( - 81, + 30 + + 68 ) - + - 65 * - ( - - CASE - 75 WHEN - + COUNT ( * ) / + 55 THEN 76 * 68 WHEN - 35 THEN 49 END ) / 45 + 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT - MIN( ALL + + 34 ) * + ( - 55 ) * - NULLIF ( - - 49, 98 * - 13 ) col1
----
-91630

skipif mysql # not compatible
query I rowsort label-1334
SELECT - MIN ( ALL + + 34 ) * + ( - 55 ) * - NULLIF ( - - 49, 98 * - 13 ) col1
----
-91630

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT 40 * + 91 + + 28 - + COUNT( * ) * + 9
----
3659

skipif mysql # not compatible
query I rowsort label-1335
SELECT 40 * + 91 + + 28 - + COUNT ( * ) * + 9
----
3659

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT COUNT( + 3 ) - + 61
----
-60

skipif mysql # not compatible
query I rowsort label-1337
SELECT COUNT ( + 3 ) - + 61
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1338
SELECT 52 AS col2, + ( CAST( - 84 AS SIGNED ) ) AS col0
----
52
-84

skipif mysql # not compatible
query II rowsort label-1338
SELECT 52 AS col2, + ( CAST ( - 84 AS INTEGER ) ) AS col0
----
52
-84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL SUM( - 50 ) * 63
----
-3150

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL SUM ( - 50 ) * 63
----
-3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1341
SELECT + 80 * + - 62 + + COUNT( * ), - NULLIF ( + 1, - 49 ) + 31 DIV - 59 AS col2
----
-4959
-1

skipif mysql # not compatible
query II rowsort label-1341
SELECT + 80 * + - 62 + + COUNT ( * ), - NULLIF ( + 1, - 49 ) + 31 / - 59 AS col2
----
-4959
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT ( AVG ( 0 ) ) + CAST( NULL AS SIGNED ) * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1342
SELECT ( AVG ( 0 ) ) + CAST ( NULL AS INTEGER ) * 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1343
SELECT 9 * - COUNT( * ) - - CAST( NULL AS SIGNED ) * + COUNT( + - ( 70 ) ) * 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1343
SELECT 9 * - COUNT ( * ) - - CAST ( NULL AS INTEGER ) * + COUNT ( + - ( 70 ) ) * 21 AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1344
SELECT 2 / + 19
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1345
SELECT 0 * 39 * + CAST( - 12 AS SIGNED ) + + 7
----
7

skipif mysql # not compatible
query I rowsort label-1345
SELECT 0 * 39 * + CAST ( - 12 AS INTEGER ) + + 7
----
7

query I rowsort
SELECT 47 * + COALESCE ( + 74, - - 0 )
----
3478

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

query I rowsort
SELECT ALL + 73 * 99 AS col2
----
7227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1349
SELECT DISTINCT 59 + + + 80 + CAST( NULL AS SIGNED ) / + ( - 58 ) AS col1, - 56 - - + 33 * 13, - - 56 * 89 AS col0
----
NULL
373
4984

skipif mysql # not compatible
query III rowsort label-1349
SELECT DISTINCT 59 + + + 80 + CAST ( NULL AS INTEGER ) / + ( - 58 ) AS col1, - 56 - - + 33 * 13, - - 56 * 89 AS col0
----
NULL
373
4984

query I rowsort
SELECT 30 + - NULLIF ( - - 38, 49 * - 62 * 77 + + + 72 ) * 57 AS col0
----
-2136

query I rowsort
SELECT 37 * - 89
----
-3293

query II rowsort
SELECT ALL 94 + - - ( + - 96 ) AS col0, 97 + - - 14
----
-2
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1353
SELECT ALL CASE - 30 WHEN + ( + CAST( NULL AS SIGNED ) ) * 98 / + 28 * - 7 + - + CASE + 80 WHEN + 4 THEN NULL WHEN + COALESCE ( - 94, COALESCE ( 53, 72 + - 84 * - ( - 71 ), ( 33 ) ), - ( - 43 ) ) * + 56 THEN + CASE 81 WHEN - COUNT( * ) THEN NULL ELSE + 52 END END THEN NULL WHEN - 74 THEN 81 - 24 WHEN - 76 THEN NULL END + - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL CASE - 30 WHEN + ( + CAST ( NULL AS INTEGER ) ) * 98 / + 28 * - 7 + - + CASE + 80 WHEN + 4 THEN NULL WHEN + COALESCE ( - 94, COALESCE ( 53, 72 + - 84 * - ( - 71 ), ( 33 ) ), - ( - 43 ) ) * + 56 THEN + CASE 81 WHEN - COUNT ( * ) THEN NULL ELSE + 52 END END THEN NULL WHEN - 74 THEN 81 - 24 WHEN - 76 THEN NULL END + - 1
----
NULL

query II rowsort
SELECT 84 AS col2, 0 col0
----
84
0

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

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

query I rowsort
SELECT 25 * + 98 AS col2
----
2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1357
SELECT - CASE + - COUNT( DISTINCT - 3 ) WHEN - 55 THEN + COUNT( * ) WHEN - - 35 THEN - 20 * - 49 + + CAST( NULL AS SIGNED ) - - CASE - 79 WHEN 13 / 5 THEN NULL WHEN - COUNT( * ) / + COUNT( * ) + + 2 * - 87 THEN 56 + CASE + 33 WHEN + 94 / - 63 THEN ( - 29 ) + - 83 * + 33 ELSE - 22 END END - - 64 ELSE - NULLIF ( 42, - 23 ) END AS col2
----
42

skipif mysql # not compatible
query I rowsort label-1357
SELECT - CASE + - COUNT ( DISTINCT - 3 ) WHEN - 55 THEN + COUNT ( * ) WHEN - - 35 THEN - 20 * - 49 + + CAST ( NULL AS INTEGER ) - - CASE - 79 WHEN 13 / 5 THEN NULL WHEN - COUNT ( * ) / + COUNT ( * ) + + 2 * - 87 THEN 56 + CASE + 33 WHEN + 94 / - 63 THEN ( - 29 ) + - 83 * + 33 ELSE - 22 END END - - 64 ELSE - NULLIF ( 42, - 23 ) END AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1358
SELECT DISTINCT - COALESCE ( 84, + 46 * + 98, - 25 - - + ( - 55 ) DIV - 14 ) * 22 + 93 DIV - 12
----
-1855

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT - COALESCE ( 84, + 46 * + 98, - 25 - - + ( - 55 ) / - 14 ) * 22 + 93 / - 12
----
-1855

query I rowsort
SELECT ALL 61 + - + 56 AS col0
----
5

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

skipif mysql # not compatible
query I rowsort label-1360
SELECT MIN ( ALL 93 )
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1361
SELECT ALL + NULLIF ( - + ( + + 38 ), - - 8 ) + COUNT( * ) - + + COUNT( * ) + 56 DIV + ( - 97 )
----
-38

skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL + NULLIF ( - + ( + + 38 ), - - 8 ) + COUNT ( * ) - + + COUNT ( * ) + 56 / + ( - 97 )
----
-38

query I rowsort
SELECT ( + ( + 59 ) ) - + 50 AS col2
----
9

query I rowsort
SELECT ALL - 96 * - 76 * + + 24
----
175104

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT COUNT( * ) * + + 47 - - COALESCE ( - COALESCE ( + 69, 95 * 91 + - - 53 + 4 ), - COALESCE ( 2, - SUM( - 67 ) ) + MIN( DISTINCT 50 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT COUNT ( * ) * + + 47 - - COALESCE ( - COALESCE ( + 69, 95 * 91 + - - 53 + 4 ), - COALESCE ( 2, - SUM ( - 67 ) ) + MIN ( DISTINCT 50 ) ) AS col0
----
-22

query I rowsort
SELECT ALL ( - - 40 ) AS col0
----
40

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

skipif mysql # not compatible
query I rowsort label-1366
SELECT + COUNT ( * ) / - + 32 + - + 49 col2
----
-49

query I rowsort
SELECT ALL - 47 * 76 AS col1
----
-3572

query I rowsort
SELECT DISTINCT - + 46 col1
----
-46

query II rowsort
SELECT + 47, 38 * 81 col0
----
47
3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1370
SELECT DISTINCT + 14 - - 49 DIV - SUM( DISTINCT 13 )
----
11

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT + 14 - - 49 / - SUM ( DISTINCT 13 )
----
11

query I rowsort
SELECT + 47 * - 29 - + + 76 AS col2
----
-1439

query I rowsort
SELECT 22 + + 46 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1373
SELECT - 3 AS col1, COUNT( * ) DIV - + COUNT( * )
----
-3
-1

skipif mysql # not compatible
query II rowsort label-1373
SELECT - 3 AS col1, COUNT ( * ) / - + COUNT ( * )
----
-3
-1

query I rowsort
SELECT 12 * 59 AS col0
----
708

query I rowsort
SELECT ALL + 31 * - 85
----
-2635

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT ALL 15 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL 15 / 80
----
0

query II rowsort
SELECT DISTINCT - 25 AS col2, - 36
----
-25
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT DISTINCT 32 DIV - 20
----
-1

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT 32 / - 20
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1379
SELECT ALL - ( ( - MAX( DISTINCT + - CAST( + 54 AS SIGNED ) ) ) ) * + + 12 AS col1, 45 + + 84 + 25 + - 67 - - 27
----
-648
114

skipif mysql # not compatible
query II rowsort label-1379
SELECT ALL - ( ( - MAX ( DISTINCT + - CAST ( + 54 AS INTEGER ) ) ) ) * + + 12 AS col1, 45 + + 84 + 25 + - 67 - - 27
----
-648
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT 2 * - MIN( DISTINCT + 73 ) AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-1380
SELECT 2 * - MIN ( DISTINCT + 73 ) AS col2
----
-146

query I rowsort
SELECT DISTINCT ( - 90 ) + - 30 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT DISTINCT - ( + MAX( DISTINCT + 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-1382
SELECT DISTINCT - ( + MAX ( DISTINCT + 46 ) )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1383
SELECT ALL - COUNT( * ) * - ( - CASE - 65 WHEN - COUNT( + 76 ) * - - 69 + + - 50 THEN - 39 * - - 89 + + + 64 + - CAST( NULL AS SIGNED ) * 76 / - 93 WHEN + 45 * - 38 THEN CASE + 44 WHEN + COUNT( + ( 24 ) ) THEN NULL WHEN + 49 THEN 28 - - 31 END END ) / 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL - COUNT ( * ) * - ( - CASE - 65 WHEN - COUNT ( + 76 ) * - - 69 + + - 50 THEN - 39 * - - 89 + + + 64 + - CAST ( NULL AS INTEGER ) * 76 / - 93 WHEN + 45 * - 38 THEN CASE + 44 WHEN + COUNT ( + ( 24 ) ) THEN NULL WHEN + 49 THEN 28 - - 31 END END ) / 31 AS col1
----
NULL

query I rowsort
SELECT 92 + + - 50 * - ( - ( + 60 ) )
----
-2908

query II rowsort
SELECT + 86 AS col0, - 45 col0
----
86
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT COUNT( * ) + + NULLIF ( MAX( ALL - ( ( + 74 ) ) ), 70 / + 32 * + + 29 * - 84 * 80 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1386
SELECT COUNT ( * ) + + NULLIF ( MAX ( ALL - ( ( + 74 ) ) ), 70 / + 32 * + + 29 * - 84 * 80 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT DISTINCT + COUNT( * ) + - 37 + - 4 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + COUNT ( * ) + - 37 + - 4 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL - 77 + - MIN( ALL + 34 )
----
-111

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL - 77 + - MIN ( ALL + 34 )
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT DISTINCT + MIN( + 58 ) + 58 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT + MIN ( + 58 ) + 58 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT - 32 + + + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT - 32 + + + COUNT ( * )
----
-31

query I rowsort
SELECT ALL 83 * + 49
----
4067

query I rowsort
SELECT 37 + 0 - - - 78 * - CASE CASE - - 81 WHEN ( + 5 ) THEN + - ( - + 24 ) + 47 * 96 ELSE NULL END WHEN 5 THEN 35 + + 54 ELSE NULL END + - 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL - COUNT( * ) + CASE - 20 WHEN 58 THEN - 87 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL - COUNT ( * ) + CASE - 20 WHEN 58 THEN - 87 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1394
SELECT ALL 77 + - + ( 93 ) + - + NULLIF ( - CASE WHEN NULL > - 98 THEN + - 44 - - - 43 + 14 ELSE NULL END, + + COUNT( * ) + ( - CAST( NULL AS DECIMAL ) ) ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL 77 + - + ( 93 ) + - + NULLIF ( - CASE WHEN NULL > - 98 THEN + - 44 - - - 43 + 14 ELSE NULL END, + + COUNT ( * ) + ( - CAST ( NULL AS REAL ) ) ) + + 48
----
NULL

query I rowsort
SELECT 20 - 56 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL + NULLIF ( - 3, + 48 / 64 ) * - - COUNT( * ) * + 41
----
-123

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + NULLIF ( - 3, + 48 / 64 ) * - - COUNT ( * ) * + 41
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-1397
SELECT 44, 88 + - COUNT( DISTINCT 17 ) AS col1
----
44
87

skipif mysql # not compatible
query II rowsort label-1397
SELECT 44, 88 + - COUNT ( DISTINCT 17 ) AS col1
----
44
87

query I rowsort
SELECT + 62 + NULLIF ( - - 38, - 50 + + + 74 ) * + + 30 AS col2
----
1202

onlyif mysql # DIV for integer division: 
query II rowsort label-1399
SELECT - 68 AS col2, + COALESCE ( 25, - - COALESCE ( + - 15, 30 + 42 + - + 55 ) ) DIV + - 42
----
-68
0

skipif mysql # not compatible
query II rowsort label-1399
SELECT - 68 AS col2, + COALESCE ( 25, - - COALESCE ( + - 15, 30 + 42 + - + 55 ) ) / + - 42
----
-68
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT ALL + COUNT( * ) - + 90, + MIN( DISTINCT - 16 ) + 2 col2
----
-89
-14

skipif mysql # not compatible
query II rowsort label-1400
SELECT ALL + COUNT ( * ) - + 90, + MIN ( DISTINCT - 16 ) + 2 col2
----
-89
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + 20 * MIN( DISTINCT 93 ) * ( 5 ) AS col0
----
9300

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 20 * MIN ( DISTINCT 93 ) * ( 5 ) AS col0
----
9300

onlyif mysql # aggregate syntax: 
query II rowsort label-1402
SELECT - COUNT( * ) AS col2, 33 * + 42
----
-1
1386

skipif mysql # not compatible
query II rowsort label-1402
SELECT - COUNT ( * ) AS col2, 33 * + 42
----
-1
1386

query II rowsort
SELECT ALL - - 5 * + ( + ( + - 34 ) ) AS col2, 84 AS col1
----
-170
84

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT DISTINCT + 18 - - CASE - 99 WHEN 16 THEN - + COUNT( DISTINCT + - ( - 20 ) ) WHEN + - COUNT( * ) - 13 * - 43 + - - 21 * 80 THEN 96 * - 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT + 18 - - CASE - 99 WHEN 16 THEN - + COUNT ( DISTINCT + - ( - 20 ) ) WHEN + - COUNT ( * ) - 13 * - 43 + - - 21 * 80 THEN 96 * - 70 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT DISTINCT + NULLIF ( - 9, - + CAST( + 9 AS SIGNED ) * - 65 - 12 + + + 71 + + - 95 )
----
-9

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT + NULLIF ( - 9, - + CAST ( + 9 AS INTEGER ) * - 65 - 12 + + + 71 + + - 95 )
----
-9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1409
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, ( + 68 ) * - 86
----
NULL
-5848

skipif mysql # not compatible
query II rowsort label-1409
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, ( + 68 ) * - 86
----
NULL
-5848

query II rowsort
SELECT DISTINCT + - 71 AS col2, - 59 col0
----
-71
-59

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT + 25 * - SUM( - + 91 ) + + 89 * COUNT( * ) + + 80
----
2444

skipif mysql # not compatible
query I rowsort label-1412
SELECT + 25 * - SUM ( - + 91 ) + + 89 * COUNT ( * ) + + 80
----
2444

query I rowsort
SELECT DISTINCT 93 * + 72 * - + 15
----
-100440

query II rowsort
SELECT ALL + 55 AS col0, - 48 + + 60
----
55
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT ALL + 85 * + MAX( + 51 )
----
4335

skipif mysql # not compatible
query I rowsort label-1415
SELECT ALL + 85 * + MAX ( + 51 )
----
4335

query I rowsort
SELECT + CASE + NULLIF ( NULLIF ( + - ( + + 21 ), + 97 ), - 81 ) WHEN + 46 THEN NULL ELSE - 30 * 80 * + - 48 END AS col1
----
115200

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1418
SELECT + 3 * COUNT( + 47 ) * CAST( NULL AS SIGNED ) * + 93 - + - MIN( - 14 ) + - COUNT( * ) + - 1 + 75 * 14 * + 67 + 17 * - 19 * - 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT + 3 * COUNT ( + 47 ) * CAST ( NULL AS INTEGER ) * + 93 - + - MIN ( - 14 ) + - COUNT ( * ) + - 1 + 75 * 14 * + 67 + 17 * - 19 * - 87 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1419
SELECT ALL COUNT( * ) * - 37 + + + 8 + MAX( - 72 ) AS col0, - ( - 93 )
----
-101
93

skipif mysql # not compatible
query II rowsort label-1419
SELECT ALL COUNT ( * ) * - 37 + + + 8 + MAX ( - 72 ) AS col0, - ( - 93 )
----
-101
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT COUNT( * ) * + - 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT COUNT ( * ) * + - 81 AS col0
----
-81

query I rowsort
SELECT - 38 * NULLIF ( CASE - 10 WHEN + - 23 THEN 39 * - + 0 + - + 39 END, - AVG ( + 96 ) )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT ALL + SUM( DISTINCT + - 24 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL + SUM ( DISTINCT + - 24 ) AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1424
SELECT + CAST( + 49 AS SIGNED ) DIV + + CASE - 12 WHEN - COALESCE ( + 16, - ( - + 38 ) - COUNT( * ) ) * + 91 DIV - 63 THEN NULL ELSE 58 * 11 END
----
0

skipif mysql # not compatible
query I rowsort label-1424
SELECT + CAST ( + 49 AS INTEGER ) / + + CASE - 12 WHEN - COALESCE ( + 16, - ( - + 38 ) - COUNT ( * ) ) * + 91 / - 63 THEN NULL ELSE 58 * 11 END
----
0

query II rowsort
SELECT NULLIF ( - 25, 16 ) col0, - 7 AS col0
----
-25
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT 36 * + 7 + - + MIN( - 79 )
----
331

skipif mysql # not compatible
query I rowsort label-1426
SELECT 36 * + 7 + - + MIN ( - 79 )
----
331

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT ALL - COUNT( * ) * - + 24 * - 91 * - 33 + COUNT( - - 68 )
----
72073

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL - COUNT ( * ) * - + 24 * - 91 * - 33 + COUNT ( - - 68 )
----
72073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1428
SELECT COALESCE ( - + CAST( NULLIF ( - + COUNT( * ), + 41 * + 91 + + 25 ) AS SIGNED ), - 98 + 50 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1428
SELECT COALESCE ( - + CAST ( NULLIF ( - + COUNT ( * ), + 41 * + 91 + + 25 ) AS INTEGER ), - 98 + 50 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1429
SELECT 46 * + + COUNT( * ) - - - 24 DIV 10
----
44

skipif mysql # not compatible
query I rowsort label-1429
SELECT 46 * + + COUNT ( * ) - - - 24 / 10
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1430
SELECT - 13 * COUNT( * ) / + + CAST( CASE - 87 WHEN - AVG ( + 48 ) THEN + 33 WHEN + 81 THEN 79 + 55 + 86 * + 51 * + 70 WHEN + 44 THEN + 17 - + 3 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1430
SELECT - 13 * COUNT ( * ) / + + CAST ( CASE - 87 WHEN - AVG ( + 48 ) THEN + 33 WHEN + 81 THEN 79 + 55 + 86 * + 51 * + 70 WHEN + 44 THEN + 17 - + 3 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1431
SELECT DISTINCT - 11 * MIN( DISTINCT - 21 ) + + 15 * + 88 AS col1, - 39 - - ( - 43 ) col1
----
1551
-82

skipif mysql # not compatible
query II rowsort label-1431
SELECT DISTINCT - 11 * MIN ( DISTINCT - 21 ) + + 15 * + 88 AS col1, - 39 - - ( - 43 ) col1
----
1551
-82

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

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

query I rowsort
SELECT DISTINCT + 55 * + 88 col1
----
4840

query I rowsort
SELECT DISTINCT 59 * - 4 + + - 4 * - 90 * 78 * 80 AS col1
----
2246164

query I rowsort
SELECT DISTINCT - 28 * + - 18 * 7
----
3528

onlyif mysql # aggregate syntax: 
query II rowsort label-1436
SELECT ALL + SUM( DISTINCT - 56 ), + 54 AS col1
----
-56
54

skipif mysql # not compatible
query II rowsort label-1436
SELECT ALL + SUM ( DISTINCT - 56 ), + 54 AS col1
----
-56
54

query I rowsort
SELECT + 77 * - 57 * - ( + + 70 ) * + 7 * - 57
----
-122584770

query I rowsort
SELECT + 36 + 41 + - 21 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT + 56 * - COALESCE ( + - 52, - 68, 83 * + 37, COUNT( * ) )
----
2912

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT + 56 * - COALESCE ( + - 52, - 68, 83 * + 37, COUNT ( * ) )
----
2912

query I rowsort
SELECT ALL ( ( - 35 ) ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT DISTINCT - MAX( - + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT - MAX ( - + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT DISTINCT + COALESCE ( NULLIF ( + - NULLIF ( - 51, + 19 ), 40 + + COUNT( * ) * + 6 + ( + 5 ) ), COUNT( * ) * 92 + + 28 ) * 92
----
11040

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT + COALESCE ( NULLIF ( + - NULLIF ( - 51, + 19 ), 40 + + COUNT ( * ) * + 6 + ( + 5 ) ), COUNT ( * ) * 92 + + 28 ) * 92
----
11040

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT DISTINCT + CASE + 6 WHEN 37 THEN + + COALESCE ( COUNT( * ), + + 72 * - 10 ) * COUNT( * ) * COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT + CASE + 6 WHEN 37 THEN + + COALESCE ( COUNT ( * ), + + 72 * - 10 ) * COUNT ( * ) * COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT ALL + - 65 DIV 39 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL + - 65 / 39 AS col1
----
-1

query I rowsort
SELECT - + ( + 25 ) + - 51 col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT - - 50 + 97 * + 25 * COUNT( * ) * + - ( COUNT( * ) ) AS col2
----
-2375

skipif mysql # not compatible
query I rowsort label-1447
SELECT - - 50 + 97 * + 25 * COUNT ( * ) * + - ( COUNT ( * ) ) AS col2
----
-2375

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

query I rowsort
SELECT ALL - NULLIF ( - 73, + + 48 + 13 + - AVG ( ALL + 98 ) ) col2
----
73

query I rowsort
SELECT + + 70 * + 91 + + + 14 * + + 47 col1
----
7028

query I rowsort
SELECT - 29 - - 82
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1452
SELECT DISTINCT - + 22 * 33 - ( COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) * - COUNT( * ) AS col2
----
-726

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT - + 22 * 33 - ( COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) * - COUNT ( * ) AS col2
----
-726

query I rowsort
SELECT ALL 87 + 48 AS col1
----
135

query I rowsort
SELECT DISTINCT + 45 * 60 + 88
----
2788

query II rowsort
SELECT + 70 + - - 24 AS col2, - 16 * - - 5
----
94
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1456
SELECT ALL - 27 / + ( - CASE MIN( ALL 34 ) WHEN + ( 55 ) THEN + 91 / + + 4 END ) / - CAST( 93 AS SIGNED ) + + 59 + - 51 / + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - 27 / + ( - CASE MIN ( ALL 34 ) WHEN + ( 55 ) THEN + 91 / + + 4 END ) / - CAST ( 93 AS INTEGER ) + + 59 + - 51 / + 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1457
SELECT + 69 DIV - NULLIF ( - + ( + 94 ), 39 + - + COALESCE ( NULLIF ( + + 77, COUNT( + CAST( NULL AS SIGNED ) ) + - 93 * - - 15 - - 40 ), - 50 * 27 ) + + COALESCE ( - 95, 77 ) DIV 26 ) + 3 col2
----
3

skipif mysql # not compatible
query I rowsort label-1457
SELECT + 69 / - NULLIF ( - + ( + 94 ), 39 + - + COALESCE ( NULLIF ( + + 77, COUNT ( + CAST ( NULL AS INTEGER ) ) + - 93 * - - 15 - - 40 ), - 50 * 27 ) + + COALESCE ( - 95, 77 ) / 26 ) + 3 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT - 81 * 89 * - 20 - - + COUNT( * )
----
144181

skipif mysql # not compatible
query I rowsort label-1458
SELECT - 81 * 89 * - 20 - - + COUNT ( * )
----
144181

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1459
SELECT + CASE + 62 WHEN - - 37 THEN NULL WHEN + - 22 THEN + 64 ELSE + CAST( NULL AS SIGNED ) END AS col1, + 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-1459
SELECT + CASE + 62 WHEN - - 37 THEN NULL WHEN + - 22 THEN + 64 ELSE + CAST ( NULL AS INTEGER ) END AS col1, + 80
----
NULL
80

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT 50 DIV + - 98 + + MIN( DISTINCT + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-1461
SELECT 50 / + - 98 + + MIN ( DISTINCT + 5 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1462
SELECT ALL - 61 DIV + 24 + - 49 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL - 61 / + 24 + - 49 AS col2
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-1463
SELECT DISTINCT - 17 DIV - 29 + - - 71, 46 AS col1
----
71
46

skipif mysql # not compatible
query II rowsort label-1463
SELECT DISTINCT - 17 / - 29 + - - 71, 46 AS col1
----
71
46

query I rowsort
SELECT 50 * 71 + COALESCE ( ( - 34 ), + - 71 ) col2
----
3516

query I rowsort
SELECT DISTINCT ( + COALESCE ( 13, 34, 5 ) ) * + - 29 + - 19 AS col1
----
-396

onlyif mysql # aggregate syntax: 
query II rowsort label-1466
SELECT + COUNT( * ) + ( + + 53 ) AS col1, 88 + - + 37 AS col1
----
54
51

skipif mysql # not compatible
query II rowsort label-1466
SELECT + COUNT ( * ) + ( + + 53 ) AS col1, 88 + - + 37 AS col1
----
54
51

query I rowsort
SELECT ALL + COALESCE ( + 28, COALESCE ( - + 59, - 77 * - ( + + 25 ) ) )
----
28

query I rowsort
SELECT + 77 + - 60
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT ( - CASE 24 WHEN - + MIN( DISTINCT 7 ) THEN - + 11 WHEN + 98 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT ( - CASE 24 WHEN - + MIN ( DISTINCT 7 ) THEN - + 11 WHEN + 98 THEN NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1471
SELECT DISTINCT + 52 * - - 96 - 0 + CAST( NULL AS SIGNED ) - - 85 + + CAST( 80 AS SIGNED ) * - + 63 + + 84 / NULLIF ( - + 63, - CAST( COALESCE ( CASE - NULLIF ( 10, - 39 ) WHEN + 67 THEN NULL ELSE 54 END, COUNT( * ) + + 84 ) AS DECIMAL ) ) * 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT + 52 * - - 96 - 0 + CAST ( NULL AS INTEGER ) - - 85 + + CAST ( 80 AS INTEGER ) * - + 63 + + 84 / NULLIF ( - + 63, - CAST ( COALESCE ( CASE - NULLIF ( 10, - 39 ) WHEN + 67 THEN NULL ELSE 54 END, COUNT ( * ) + + 84 ) AS REAL ) ) * 40
----
NULL

query I rowsort
SELECT + 30 * - 65 * - 27 AS col0
----
52650

query I rowsort
SELECT NULLIF ( - + 31, 11 ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1474
SELECT + CAST( 14 AS SIGNED ) * CASE - - 27 WHEN - NULLIF ( - + 88, - ( - - ( - 90 ) ) ) THEN + + 51 WHEN + MAX( ALL + 56 ) THEN 60 END + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1474
SELECT + CAST ( 14 AS INTEGER ) * CASE - - 27 WHEN - NULLIF ( - + 88, - ( - - ( - 90 ) ) ) THEN + + 51 WHEN + MAX ( ALL + 56 ) THEN 60 END + + 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT DISTINCT - + CAST( - 48 AS SIGNED ) * 96 * + 48 - COALESCE ( 61, 48, - 43 * - 38 - + 36 * - NULLIF ( + 3, - 21 ) * - 46 + COALESCE ( 63, + 16 ) ) AS col1
----
221123

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT - + CAST ( - 48 AS INTEGER ) * 96 * + 48 - COALESCE ( 61, 48, - 43 * - 38 - + 36 * - NULLIF ( + 3, - 21 ) * - 46 + COALESCE ( 63, + 16 ) ) AS col1
----
221123

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT ALL - 20 * + 72 * COUNT( * ) * 18 * - + 17 AS col1
----
440640

skipif mysql # not compatible
query I rowsort label-1476
SELECT ALL - 20 * + 72 * COUNT ( * ) * 18 * - + 17 AS col1
----
440640

query I rowsort
SELECT 56 + + 40 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT DISTINCT - 3 - + 34 + + - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT - 3 - + 34 + + - COUNT ( * ) AS col2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT ALL + + 4 * + 49 + - + 90 DIV - 21 AS col2
----
200

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL + + 4 * + 49 + - + 90 / - 21 AS col2
----
200

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

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

query I rowsort
SELECT ALL - 59 * - 30
----
1770

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1483
SELECT - CAST( + - NULLIF ( 30, COUNT( * ) ) AS SIGNED ) AS col1, 74 * - SUM( 40 )
----
30
-2960

skipif mysql # not compatible
query II rowsort label-1483
SELECT - CAST ( + - NULLIF ( 30, COUNT ( * ) ) AS INTEGER ) AS col1, 74 * - SUM ( 40 )
----
30
-2960

query I rowsort
SELECT 25 + - + 31 * - 32 * + 60 * + + 47 AS col2
----
2797465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1485
SELECT ALL + 68 * + CASE - 17 WHEN CAST( CASE WHEN + COUNT( * ) IS NULL THEN NULL WHEN NULL NOT IN ( COALESCE ( COALESCE ( + 19, + - 11, + MIN( DISTINCT 15 ) / 87 ), 87 ) ) THEN + 83 ELSE NULL END AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN - 3 END + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL + 68 * + CASE - 17 WHEN CAST ( CASE WHEN + COUNT ( * ) IS NULL THEN NULL WHEN NULL NOT IN ( COALESCE ( COALESCE ( + 19, + - 11, + MIN ( DISTINCT 15 ) / 87 ), 87 ) ) THEN + 83 ELSE NULL END AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN - 3 END + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ALL + COUNT( * ) + - + 13
----
-12

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL + COUNT ( * ) + - + 13
----
-12

query I rowsort
SELECT 5 + 72 AS col0
----
77

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

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

query I rowsort
SELECT ALL + + 33 + + + 84
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT - MIN( DISTINCT + + 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-1490
SELECT - MIN ( DISTINCT + + 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1491
SELECT DISTINCT - 25 + + MAX( ALL + 7 ) DIV NULLIF ( + COALESCE ( COUNT( * ), 11 ), + + ( + + 16 ) ) + + + 0 col1
----
-18

skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT - 25 + + MAX ( ALL + 7 ) / NULLIF ( + COALESCE ( COUNT ( * ), 11 ), + + ( + + 16 ) ) + + + 0 col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1492
SELECT 96 * + 67 * CAST( - AVG ( + ( - - 29 ) ) AS SIGNED ) AS col1
----
-186528

skipif mysql # not compatible
query I rowsort label-1492
SELECT 96 * + 67 * CAST ( - AVG ( + ( - - 29 ) ) AS INTEGER ) AS col1
----
-186528

query I rowsort
SELECT 31 + - 97
----
-66

query I rowsort
SELECT ALL - 45 + + 75 + - + 7
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT ALL 90 + + + COALESCE ( + 83, + 31 ) + + + COUNT( * ) * + + 19 * + 98
----
2035

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL 90 + + + COALESCE ( + 83, + 31 ) + + + COUNT ( * ) * + + 19 * + 98
----
2035

query I rowsort
SELECT 21 * + - 55 * + 98 AS col2
----
-113190

query I rowsort
SELECT ALL - 46 * + 58 AS col2
----
-2668

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT 46 * - + CAST( - 82 AS SIGNED ) AS col0
----
3772

skipif mysql # not compatible
query I rowsort label-1499
SELECT 46 * - + CAST ( - 82 AS INTEGER ) AS col0
----
3772

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT ALL - SUM( - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - SUM ( - 93 )
----
93

query I rowsort
SELECT ( - + 56 ) * - 29 AS col0
----
1624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1502
SELECT + 44 DIV COUNT( * ) + 42 * 35 + - 84 + 26
----
1456

skipif mysql # not compatible
query I rowsort label-1502
SELECT + 44 / COUNT ( * ) + 42 * 35 + - 84 + 26
----
1456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1503
SELECT 46 * + 5 * - CAST( NULL AS SIGNED ) * - COALESCE ( 97, - 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1503
SELECT 46 * + 5 * - CAST ( NULL AS INTEGER ) * - COALESCE ( 97, - 86 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT + 44 * ( - + 98 ) * - COUNT( * ) + + + CASE - COUNT( * ) WHEN 28 + 81 + ( - MAX( + 25 ) ) * - 60 + - 60 THEN + COUNT( * ) WHEN 7 / - COUNT( * ) THEN NULL END * - MAX( 61 ) - 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1505
SELECT + 44 * ( - + 98 ) * - COUNT ( * ) + + + CASE - COUNT ( * ) WHEN 28 + 81 + ( - MAX ( + 25 ) ) * - 60 + - 60 THEN + COUNT ( * ) WHEN 7 / - COUNT ( * ) THEN NULL END * - MAX ( 61 ) - 85 col1
----
NULL

query II rowsort
SELECT ALL - ( + 36 ), - 25 AS col2
----
-36
-25

query I rowsort
SELECT DISTINCT 53 * - 42
----
-2226

query I rowsort
SELECT ALL + ( - 66 ) * 72 * - - 74
----
-351648

query I rowsort
SELECT ALL - 74 * - + CASE 55 WHEN + 54 THEN + 43 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT ALL - CASE - 72 WHEN 84 THEN NULL WHEN + 53 * + - 77 + + 56 + - 18 THEN + - COALESCE ( ( + 86 ), 24 * + 29 + - 49 + + + NULLIF ( AVG ( ALL 80 ), CASE - CAST( NULL AS SIGNED ) WHEN ( + ( + 15 ) ) THEN 66 WHEN - COALESCE ( - 56, 59, - CAST( NULL AS SIGNED ) + + 56 ) + - 57 THEN NULL END ) + + 40 * - 5 ) * + 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL - CASE - 72 WHEN 84 THEN NULL WHEN + 53 * + - 77 + + 56 + - 18 THEN + - COALESCE ( ( + 86 ), 24 * + 29 + - 49 + + + NULLIF ( AVG ( ALL 80 ), CASE - CAST ( NULL AS INTEGER ) WHEN ( + ( + 15 ) ) THEN 66 WHEN - COALESCE ( - 56, 59, - CAST ( NULL AS INTEGER ) + + 56 ) + - 57 THEN NULL END ) + + 40 * - 5 ) * + 62 END AS col1
----
NULL

query I rowsort
SELECT + 66 + 44 AS col2
----
110

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

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

query I rowsort
SELECT 94 * 65
----
6110

query I rowsort
SELECT ALL - - 97 + - + 72
----
25

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

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

query I rowsort
SELECT ALL + 37 + - 56 + + 59
----
40

query I rowsort
SELECT ALL - - ( 99 ) * - 95 col0
----
-9405

query I rowsort
SELECT - 47 * + - 64 + - 6
----
3002

query I rowsort
SELECT 99 + + 79 AS col1
----
178

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

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

query I rowsort
SELECT ALL + 21 + 6
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1522
SELECT - COALESCE ( MAX( ALL ( + + 80 ) ), - COALESCE ( + 6, - - 12 + - NULLIF ( 4, + COUNT( * ) + - 59 ), + 62, + 58 DIV 1 + 68 * + 27 ), + COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-1522
SELECT - COALESCE ( MAX ( ALL ( + + 80 ) ), - COALESCE ( + 6, - - 12 + - NULLIF ( 4, + COUNT ( * ) + - 59 ), + 62, + 58 / 1 + 68 * + 27 ), + COUNT ( * ) )
----
-80

query I rowsort
SELECT 12 - + 33
----
-21

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

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

query II rowsort
SELECT 21 + - 87 * + 9, 65 AS col1
----
-762
65

query I rowsort
SELECT ALL 61 * + - NULLIF ( + + 36, - - 96 ) AS col2
----
-2196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1527
SELECT 87 * 70 + - COUNT( DISTINCT - 10 ) + CAST( - NULLIF ( - 73, 98 + + 95 / - 46 * - 1 + 4 ) AS SIGNED )
----
6162

skipif mysql # not compatible
query I rowsort label-1527
SELECT 87 * 70 + - COUNT ( DISTINCT - 10 ) + CAST ( - NULLIF ( - 73, 98 + + 95 / - 46 * - 1 + 4 ) AS INTEGER )
----
6162

query I rowsort
SELECT 56 - 38 AS col0
----
18

query I rowsort
SELECT 27 * + 83 AS col0
----
2241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1530
SELECT - 22 DIV - 49 * + - 67 * - + COUNT( * ) * 84 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1530
SELECT - 22 / - 49 * + - 67 * - + COUNT ( * ) * 84 + + COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT DISTINCT - 97 * 21 DIV + 51 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT - 97 * 21 / + 51 AS col2
----
-39

query I rowsort
SELECT 40 * + - 21 * - - 94 AS col1
----
-78960

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT 46 DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1533
SELECT 46 / + 85 AS col1
----
0

query I rowsort
SELECT ALL + 79 * + + 24 AS col0
----
1896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1535
SELECT DISTINCT + CASE - NULLIF ( - 62, - COUNT( * ) - - 65 * + 36 * - SUM( DISTINCT - 88 ) ) WHEN + 23 THEN NULL WHEN + 72 / + - 6 THEN + 53 * + ( - 36 ) * - 25 * + 22 + + 17 + + 53 END * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT + CASE - NULLIF ( - 62, - COUNT ( * ) - - 65 * + 36 * - SUM ( DISTINCT - 88 ) ) WHEN + 23 THEN NULL WHEN + 72 / + - 6 THEN + 53 * + ( - 36 ) * - 25 * + 22 + + 17 + + 53 END * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT + 77 * + ( - COUNT( * ) ) + 32 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1536
SELECT + 77 * + ( - COUNT ( * ) ) + 32 AS col1
----
-45

query II rowsort
SELECT DISTINCT - 34 * + + NULLIF ( - 73, 78 ) * 37 AS col0, ( 6 ) * + 33 + ( - ( 76 ) ) + + 7 AS col0
----
91834
129

query II rowsort
SELECT DISTINCT + 39, 37 * - 30 AS col2
----
39
-1110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1539
SELECT + 7 * - CAST( - ( + - 21 ) AS SIGNED ) * - 15 * - 89
----
-196245

skipif mysql # not compatible
query I rowsort label-1539
SELECT + 7 * - CAST ( - ( + - 21 ) AS INTEGER ) * - 15 * - 89
----
-196245

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

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

query I rowsort
SELECT - ( - ( 47 ) ) * + 11
----
517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1542
SELECT ALL + + MIN( + 53 ) DIV + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + + MIN ( + 53 ) / + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT + - 32 * 32 AS col2
----
-1024

query I rowsort
SELECT ALL + 51 + - 51 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + 96 + COALESCE ( - 19, - 10, 33 * - + 38 + + - ( + COUNT( DISTINCT + 98 ) ) ) * + 37 * - 95 - + + SUM( + 21 ) * 62
----
65579

skipif mysql # not compatible
query I rowsort label-1546
SELECT + 96 + COALESCE ( - 19, - 10, 33 * - + 38 + + - ( + COUNT ( DISTINCT + 98 ) ) ) * + 37 * - 95 - + + SUM ( + 21 ) * 62
----
65579

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL + COALESCE ( + - COUNT( * ), + COALESCE ( + + 58, + ( - CASE - + 82 WHEN + COUNT( * ) * 2 / + COUNT( * ) / - 12 - + AVG ( DISTINCT - 21 ) THEN + 8 END ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL + COALESCE ( + - COUNT ( * ), + COALESCE ( + + 58, + ( - CASE - + 82 WHEN + COUNT ( * ) * 2 / + COUNT ( * ) / - 12 - + AVG ( DISTINCT - 21 ) THEN + 8 END ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1548
SELECT DISTINCT - CASE + 94 WHEN + 87 THEN NULL WHEN 64 * 34 THEN + 77 DIV - COUNT( * ) * - 29 WHEN 60 THEN - CASE ( + COUNT( * ) ) WHEN 0 DIV 83 THEN - - 89 DIV + 32 WHEN COUNT( * ) THEN - 97 + 49 * 87 WHEN CAST( NULL AS SIGNED ) + 45 THEN + 59 + 89 END * + 49 ELSE - 33 - - 37 END * + 10
----
-40

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT - CASE + 94 WHEN + 87 THEN NULL WHEN 64 * 34 THEN + 77 / - COUNT ( * ) * - 29 WHEN 60 THEN - CASE ( + COUNT ( * ) ) WHEN 0 / 83 THEN - - 89 / + 32 WHEN COUNT ( * ) THEN - 97 + 49 * 87 WHEN CAST ( NULL AS INTEGER ) + 45 THEN + 59 + 89 END * + 49 ELSE - 33 - - 37 END * + 10
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT - 75 * 70 + - + 86 * + COALESCE ( CAST( - 39 AS SIGNED ), - 24 ) + 86 + + 5
----
-1805

skipif mysql # not compatible
query I rowsort label-1549
SELECT - 75 * 70 + - + 86 * + COALESCE ( CAST ( - 39 AS INTEGER ), - 24 ) + 86 + + 5
----
-1805

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

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

query I rowsort
SELECT DISTINCT - 25 * + - 58 AS col0
----
1450

onlyif mysql # aggregate syntax: 
query II rowsort label-1552
SELECT - 56, MAX( - 68 ) - - 43 + + COUNT( * ) - - ( 16 ) + - 7 * - MAX( DISTINCT 49 ) * + - 3 * - 67 AS col0
----
-56
68935

skipif mysql # not compatible
query II rowsort label-1552
SELECT - 56, MAX ( - 68 ) - - 43 + + COUNT ( * ) - - ( 16 ) + - 7 * - MAX ( DISTINCT 49 ) * + - 3 * - 67 AS col0
----
-56
68935

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT ALL - NULLIF ( 18, MIN( DISTINCT - - 49 ) - NULLIF ( + 15, - - ( - 35 ) ) - - - 81 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - NULLIF ( 18, MIN ( DISTINCT - - 49 ) - NULLIF ( + 15, - - ( - 35 ) ) - - - 81 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT - COALESCE ( - COUNT( * ), 60 )
----
1

skipif mysql # not compatible
query I rowsort label-1554
SELECT - COALESCE ( - COUNT ( * ), 60 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT - - 81 + - 94 DIV + 12 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1555
SELECT - - 81 + - 94 / + 12 AS col0
----
74

query I rowsort
SELECT ALL - 75 - - 74
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1557
SELECT + - 70 * + 78 * + CAST( NULL AS SIGNED ) + + 60 + 57 - - - 67 / - 66 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1557
SELECT + - 70 * + 78 * + CAST ( NULL AS INTEGER ) + + 60 + 57 - - - 67 / - 66 * - COUNT ( * ) AS col0
----
NULL

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

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

query I rowsort
SELECT ALL + 82 * + 54
----
4428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1560
SELECT DISTINCT CASE + CAST( NULL AS SIGNED ) WHEN 10 THEN - + 1 * + 41 + - 14 - - 68 + CAST( NULL AS SIGNED ) - - - 69 * 47 END / - - 99 * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT CASE + CAST ( NULL AS INTEGER ) WHEN 10 THEN - + 1 * + 41 + - 14 - - 68 + CAST ( NULL AS INTEGER ) - - - 69 * 47 END / - - 99 * + 0
----
NULL

query I rowsort
SELECT DISTINCT + 73 * + 31 * + 16 AS col1
----
36208

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

skipif mysql # not compatible
query I rowsort label-1562
SELECT - COUNT ( * ) * + 18 * + - 28 AS col0
----
504

query II rowsort
SELECT 73 AS col1, 97
----
73
97

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

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

query II rowsort
SELECT - ( 10 ) AS col2, + 37 + + - 17 AS col2
----
-10
20

query I rowsort
SELECT - 19 + + 31 * + 90 col0
----
2771

query I rowsort
SELECT + 31 * + + 0 AS col1
----
0

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

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

query II rowsort
SELECT 24 col2, 6 col1
----
24
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1570
SELECT ALL + COUNT( * ) col1, + 4 * + 80 AS col0
----
1
320

skipif mysql # not compatible
query II rowsort label-1570
SELECT ALL + COUNT ( * ) col1, + 4 * + 80 AS col0
----
1
320

query I rowsort
SELECT DISTINCT + ( + 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1572
SELECT DISTINCT + 94, COUNT( * ) AS col1
----
94
1

skipif mysql # not compatible
query II rowsort label-1572
SELECT DISTINCT + 94, COUNT ( * ) AS col1
----
94
1

query I rowsort
SELECT ( 66 ) AS col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1574
SELECT DISTINCT 67 DIV + 82 * + 19 + + 71 + + + COALESCE ( 42, 3 ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT 67 / + 82 * + 19 + + 71 + + + COALESCE ( 42, 3 ) AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT + 23 + COUNT( * ) * + 78 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-1575
SELECT + 23 + COUNT ( * ) * + 78 AS col2
----
101

query I rowsort
SELECT - ( 14 ) AS col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT - 1 * - 11 * - COUNT( * ) * - 61 * - 62 + - 32 * - CASE + 28 WHEN - + 5 * 41 - - MAX( - + CAST( NULL AS SIGNED ) ) * + 24 * 88 + + 29 - COUNT( * ) - 99 * 58 THEN NULL ELSE + CAST( NULL AS SIGNED ) END + - 82 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT - 1 * - 11 * - COUNT ( * ) * - 61 * - 62 + - 32 * - CASE + 28 WHEN - + 5 * 41 - - MAX ( - + CAST ( NULL AS INTEGER ) ) * + 24 * 88 + + 29 - COUNT ( * ) - 99 * 58 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END + - 82 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT - - 86 + 97 - - + COUNT( * )
----
184

skipif mysql # not compatible
query I rowsort label-1578
SELECT - - 86 + 97 - - + COUNT ( * )
----
184

query I rowsort
SELECT - - 42 - - + 63
----
105

query II rowsort
SELECT DISTINCT + 85 col0, 4
----
85
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL + 22 * + 17 * 95 + - - 75 + - 64 + + COUNT( * ) * - 27 + 81 AS col1
----
35595

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL + 22 * + 17 * 95 + - - 75 + - 64 + + COUNT ( * ) * - 27 + 81 AS col1
----
35595

query I rowsort
SELECT - 51 * + + COALESCE ( - 59, - 20 ) + 79 * - - 33 * + 88 AS col0
----
232425

query I rowsort
SELECT - 20 * - ( 99 ) AS col2
----
1980

query I rowsort
SELECT + + COALESCE ( - ( + + ( 41 ) ), + 63 * - 58 + + 50 )
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-1585
SELECT + + 59 DIV ( + 93 ) + 84 AS col0, + 64
----
84
64

skipif mysql # not compatible
query II rowsort label-1585
SELECT + + 59 / ( + 93 ) + 84 AS col0, + 64
----
84
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1586
SELECT DISTINCT + 37 DIV - 6
----
-6

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT + 37 / - 6
----
-6

query I rowsort
SELECT + - 26 - + 80
----
-106

query II rowsort
SELECT 96 AS col1, + 26 AS col1
----
96
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1589
SELECT DISTINCT CAST( + - MAX( 9 ) AS SIGNED ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT CAST ( + - MAX ( 9 ) AS INTEGER ) col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL 44 * - - 3 * + COUNT( * ) AS col0
----
132

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL 44 * - - 3 * + COUNT ( * ) AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL + COUNT( * ) * + - 20 * - 90 AS col1
----
1800

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + COUNT ( * ) * + - 20 * - 90 AS col1
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT ( + 93 ) * + + 10 * + COUNT( * )
----
930

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT ( + 93 ) * + + 10 * + COUNT ( * )
----
930

query I rowsort
SELECT - 37 + + 22 AS col2
----
-15

query I rowsort
SELECT + 13 + 35 * - 50
----
-1737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT - CAST( + 96 AS SIGNED ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-1595
SELECT - CAST ( + 96 AS INTEGER ) AS col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1596
SELECT + COUNT( * ) DIV - - 90 AS col2, + 63 - - SUM( 50 ) + - - 60 + + 58 + - 55 * - 34 * 62 DIV 62 - - + 63 AS col1
----
0
2164

skipif mysql # not compatible
query II rowsort label-1596
SELECT + COUNT ( * ) / - - 90 AS col2, + 63 - - SUM ( 50 ) + - - 60 + + 58 + - 55 * - 34 * 62 / 62 - - + 63 AS col1
----
0
2164

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT + 90 + 99 + + 28 DIV - ( 52 )
----
189

skipif mysql # not compatible
query I rowsort label-1597
SELECT + 90 + 99 + + 28 / - ( 52 )
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT ALL 95 DIV + + 21 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL 95 / + + 21 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT SUM( ALL - 30 ) + - + ( 88 )
----
-118

skipif mysql # not compatible
query I rowsort label-1599
SELECT SUM ( ALL - 30 ) + - + ( 88 )
----
-118

query I rowsort
SELECT 75 + + - 79 - - 19 * - 61 * - 38 AS col2
----
44038

query I rowsort
SELECT ALL 42 + 62 AS col0
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-1602
SELECT DISTINCT 94 + 32 AS col2, COUNT( * ) AS col2
----
126
1

skipif mysql # not compatible
query II rowsort label-1602
SELECT DISTINCT 94 + 32 AS col2, COUNT ( * ) AS col2
----
126
1

query I rowsort
SELECT ALL + 51 + - 55 AS col1
----
-4

query I rowsort
SELECT ALL 25 * 95 * + + 9
----
21375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1605
SELECT DISTINCT 29 + - + 77 + + CAST( 95 AS SIGNED ) + NULLIF ( - 8, CASE + 11 WHEN + NULLIF ( 54, - 38 ) - ( - - 68 ) + - 29 THEN + + 84 END + 91 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT 29 + - + 77 + + CAST ( 95 AS INTEGER ) + NULLIF ( - 8, CASE + 11 WHEN + NULLIF ( 54, - 38 ) - ( - - 68 ) + - 29 THEN + + 84 END + 91 ) AS col2
----
39

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1607
SELECT + MAX( DISTINCT 36 ), - COUNT( * ) DIV + COUNT( * ) AS col2
----
36
-1

skipif mysql # not compatible
query II rowsort label-1607
SELECT + MAX ( DISTINCT 36 ), - COUNT ( * ) / + COUNT ( * ) AS col2
----
36
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT DISTINCT - COUNT( * ) + ( + 86 )
----
85

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT - COUNT ( * ) + ( + 86 )
----
85

query II rowsort
SELECT ALL 52 + + 36 AS col1, 16 + + 84 * 90 AS col0
----
88
7576

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1612
SELECT ALL + - 11 DIV 65 + + 98 + 71 * 60 * + 11 + - 12 * - - 55 AS col2, + 74
----
46298
74

skipif mysql # not compatible
query II rowsort label-1612
SELECT ALL + - 11 / 65 + + 98 + 71 * 60 * + 11 + - 12 * - - 55 AS col2, + 74
----
46298
74

query I rowsort
SELECT + + 53 * 41 + - 74 AS col2
----
2099

query I rowsort
SELECT DISTINCT + - 86 - + 50 + + + 85 AS col0
----
-51

query I rowsort
SELECT ALL - + 36 - - + 28 * + 12 AS col1
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT - SUM( + - 49 ) * - - 52 + + - 57 * + - 8 AS col2
----
3004

skipif mysql # not compatible
query I rowsort label-1616
SELECT - SUM ( + - 49 ) * - - 52 + + - 57 * + - 8 AS col2
----
3004

query I rowsort
SELECT + 94 + - + 14 + 95 * + - 90 AS col1
----
-8470

query I rowsort
SELECT 66 + - 42
----
24

query II rowsort
SELECT - 14, 20 AS col2
----
-14
20

query II rowsort
SELECT 41 AS col1, - 13
----
41
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT ALL 68 AS col2, - 94 * + COUNT( * ) AS col0
----
68
-94

skipif mysql # not compatible
query II rowsort label-1621
SELECT ALL 68 AS col2, - 94 * + COUNT ( * ) AS col0
----
68
-94

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

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

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL - 65 / - + 77
----
0

query I rowsort
SELECT 30 * - 85
----
-2550

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT ALL - 56 DIV 44 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL - 56 / 44 AS col2
----
-1

query I rowsort
SELECT 40 * + - 13 AS col2
----
-520

onlyif mysql # DIV for integer division: 
query II rowsort label-1627
SELECT CASE 48 WHEN 13 DIV - 30 THEN NULL ELSE 54 * 2 DIV - 62 END + - - 43, 38 AS col1
----
42
38

skipif mysql # not compatible
query II rowsort label-1627
SELECT CASE 48 WHEN 13 / - 30 THEN NULL ELSE 54 * 2 / - 62 END + - - 43, 38 AS col1
----
42
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1628
SELECT DISTINCT + 11 + - 58 * ( + 89 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT + 11 + - 58 * ( + 89 ) * CAST ( NULL AS INTEGER )
----
NULL

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

query II rowsort
SELECT 55 col0, 88
----
55
88

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

skipif mysql # not compatible
query II rowsort label-1631
SELECT - 44 AS col1, CAST ( NULL AS INTEGER )
----
-44
NULL

query II rowsort
SELECT - 46, + 84 + - 99 AS col1
----
-46
-15

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

query II rowsort
SELECT ALL 18 + - 19 * 32, + 46 AS col0
----
-590
46

query I rowsort
SELECT 55 * 0
----
0

query I rowsort
SELECT 91 * - 25
----
-2275

query I rowsort
SELECT ALL 12 + - 96 AS col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1638
SELECT 10 DIV + + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1638
SELECT 10 / + + 41 AS col2
----
0

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

query II rowsort
SELECT DISTINCT ( 37 ) - + 11 AS col2, + 27 + + + 16 - - 64
----
26
107

onlyif mysql # aggregate syntax: 
query II rowsort label-1641
SELECT DISTINCT - - ( - CASE + - 94 WHEN 53 THEN 50 * COUNT( * ) * + - SUM( 82 ) * - 90 + COUNT( * ) ELSE + COUNT( * ) END ), ( + 72 ) + - NULLIF ( - - COUNT( * ), NULLIF ( 68, - - 27 * + 58 + 46 * 19 ) ) * 36 AS col1
----
-1
36

skipif mysql # not compatible
query II rowsort label-1641
SELECT DISTINCT - - ( - CASE + - 94 WHEN 53 THEN 50 * COUNT ( * ) * + - SUM ( 82 ) * - 90 + COUNT ( * ) ELSE + COUNT ( * ) END ), ( + 72 ) + - NULLIF ( - - COUNT ( * ), NULLIF ( 68, - - 27 * + 58 + 46 * 19 ) ) * 36 AS col1
----
-1
36

query I rowsort
SELECT DISTINCT 15 * - + 63
----
-945

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT + 76 DIV + + 79 + ( + ( - 72 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-1643
SELECT + 76 / + + 79 + ( + ( - 72 ) )
----
-72

query II rowsort
SELECT ALL - - 59, - 23 AS col2
----
59
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1645
SELECT + CAST( NULL AS DECIMAL ) + - + COALESCE ( + COUNT( * ), + + 9 ) * 99 / - COUNT( ALL - 64 ) + 23 + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT + CAST ( NULL AS REAL ) + - + COALESCE ( + COUNT ( * ), + + 9 ) * 99 / - COUNT ( ALL - 64 ) + 23 + 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1646
SELECT 43 * - COUNT( * ) + - 2 + + 69 + + 45 - + - COUNT( * ) * + 18 DIV + - 31
----
69

skipif mysql # not compatible
query I rowsort label-1646
SELECT 43 * - COUNT ( * ) + - 2 + + 69 + + 45 - + - COUNT ( * ) * + 18 / + - 31
----
69

query I rowsort
SELECT DISTINCT - 37 * 46 * - 51
----
86802

query II rowsort
SELECT 39 AS col2, + 67 * + 74 * + 88 AS col2
----
39
436304

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL - + NULLIF ( + 5, SUM( ALL 24 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL - + NULLIF ( + 5, SUM ( ALL 24 ) )
----
-5

query I rowsort
SELECT DISTINCT - - 31 col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT CASE - SUM( ALL - 38 ) WHEN 64 THEN NULL WHEN - 11 * + + CASE + 53 WHEN + + 37 THEN - 44 + - - 86 END + - + COUNT( * ) THEN - 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1652
SELECT CASE - SUM ( ALL - 38 ) WHEN 64 THEN NULL WHEN - 11 * + + CASE + 53 WHEN + + 37 THEN - 44 + - - 86 END + - + COUNT ( * ) THEN - 27 END
----
NULL

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

query I rowsort
SELECT 81 * 66 AS col1
----
5346

query I rowsort
SELECT 21 * - ( - 7 )
----
147

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

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

query I rowsort
SELECT ALL - 69 * 24
----
-1656

query I rowsort
SELECT DISTINCT - 51 * + 17
----
-867

query I rowsort
SELECT ALL - 34 + - 62 * - 72 AS col0
----
4430

query I rowsort
SELECT - 60 * + ( + 64 ) AS col1
----
-3840

onlyif mysql # aggregate syntax: 
query II rowsort label-1661
SELECT ALL - 25 + + COUNT( ( + 63 ) ) AS col1, + ( - + COUNT( * ) ) * + ( 80 ) AS col0
----
-24
-80

skipif mysql # not compatible
query II rowsort label-1661
SELECT ALL - 25 + + COUNT ( ( + 63 ) ) AS col1, + ( - + COUNT ( * ) ) * + ( 80 ) AS col0
----
-24
-80

query I rowsort
SELECT DISTINCT - 52 * - 47
----
2444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1663
SELECT - CAST( 66 AS SIGNED ) - + COALESCE ( - + 10, 56 DIV + 91 * + 51 + - MIN( DISTINCT - 79 ) - - 77, MIN( ( 35 ) ) * + + 30 + - + MIN( ALL - 91 ) * 19 * + + 19 * + 70 * 89 )
----
-56

skipif mysql # not compatible
query I rowsort label-1663
SELECT - CAST ( 66 AS INTEGER ) - + COALESCE ( - + 10, 56 / + 91 * + 51 + - MIN ( DISTINCT - 79 ) - - 77, MIN ( ( 35 ) ) * + + 30 + - + MIN ( ALL - 91 ) * 19 * + + 19 * + 70 * 89 )
----
-56

query I rowsort
SELECT ALL - 34 + + 79 AS col1
----
45

query I rowsort
SELECT - 24 + + - 82 + + 86 + - - 30
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT - COUNT( * ) - - 46
----
45

skipif mysql # not compatible
query I rowsort label-1666
SELECT - COUNT ( * ) - - 46
----
45

query I rowsort
SELECT - 6 * - 99 * + - 55 col1
----
-32670

query I rowsort
SELECT ALL - 62 + - - 39 * - - 61 AS col0
----
2317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1669
SELECT DISTINCT + 7 DIV ( NULLIF ( - 1, - AVG ( + 7 ) * + 73 ) ), - 11 * MIN( DISTINCT + 94 ) * 7 DIV + 33 + + - COALESCE ( + + ( - 26 ), CAST( NULL AS SIGNED ) ) + + - 84 * 78 AS col2
----
-7
-6745

skipif mysql # not compatible
query II rowsort label-1669
SELECT DISTINCT + 7 / ( NULLIF ( - 1, - AVG ( + 7 ) * + 73 ) ), - 11 * MIN ( DISTINCT + 94 ) * 7 / + 33 + + - COALESCE ( + + ( - 26 ), CAST ( NULL AS INTEGER ) ) + + - 84 * 78 AS col2
----
-7
-6745

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1671
SELECT ALL - 62 - 79 DIV ( COUNT( * ) )
----
-141

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL - 62 - 79 / ( COUNT ( * ) )
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1672
SELECT ALL NULLIF ( + - 4, + + 38 + - NULLIF ( + - 16, - 30 + 61 + + - CAST( + + 52 AS SIGNED ) / + CAST( NULL AS SIGNED ) * - COUNT( * ) ) * 47 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL NULLIF ( + - 4, + + 38 + - NULLIF ( + - 16, - 30 + 61 + + - CAST ( + + 52 AS INTEGER ) / + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) * 47 ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT - - MIN( 73 ) + + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1673
SELECT - - MIN ( 73 ) + + COUNT ( * ) AS col1
----
74

query I rowsort
SELECT + + 80 + - 60 + + - 69 * + 51 * + 99 AS col2
----
-348361

query I rowsort
SELECT - 4 * - 86
----
344

query II rowsort
SELECT + NULLIF ( 85, - 16 * - 77 ) AS col0, + 99 col1
----
85
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT DISTINCT - - 94 * COUNT( DISTINCT + 1 )
----
94

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT - - 94 * COUNT ( DISTINCT + 1 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1678
SELECT ALL + - MIN( ALL + 67 ) * - - 89 - - - 87 - + 37 - CAST( 54 AS SIGNED )
----
-6141

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + - MIN ( ALL + 67 ) * - - 89 - - - 87 - + 37 - CAST ( 54 AS INTEGER )
----
-6141

query I rowsort
SELECT - - 3 * 6 col0
----
18

query I rowsort
SELECT + - 97 * 79 + 48
----
-7615

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL + MAX( 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL + MAX ( 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT + MAX( - 20 ) * - 5
----
100

skipif mysql # not compatible
query I rowsort label-1683
SELECT + MAX ( - 20 ) * - 5
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + + 76 + + 61 + COUNT( * )
----
138

skipif mysql # not compatible
query I rowsort label-1684
SELECT + + 76 + + 61 + COUNT ( * )
----
138

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

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

query I rowsort
SELECT DISTINCT - 65 * 20 * 97 AS col1
----
-126100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1687
SELECT + - COALESCE ( 98, + + 27 + + + COUNT( * ) + - 90 + - 77 * 52 ) * COALESCE ( 5, + 15 - + 81 ) + + CAST( 31 AS SIGNED ) * + 28 AS col2
----
378

skipif mysql # not compatible
query I rowsort label-1687
SELECT + - COALESCE ( 98, + + 27 + + + COUNT ( * ) + - 90 + - 77 * 52 ) * COALESCE ( 5, + 15 - + 81 ) + + CAST ( 31 AS INTEGER ) * + 28 AS col2
----
378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1688
SELECT - CASE WHEN NOT - COUNT( * ) IN ( ( - 10 ) - + - NULLIF ( - - 86, - - COUNT( * ) ) + 21 + - COALESCE ( - + ( - 85 ), - 4, + COUNT( * ) ) * - MAX( + 10 ), + 82 + - 31 ) THEN 63 WHEN CAST( NULL AS SIGNED ) IS NULL THEN NULL END DIV 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT - CASE WHEN NOT - COUNT ( * ) IN ( ( - 10 ) - + - NULLIF ( - - 86, - - COUNT ( * ) ) + 21 + - COALESCE ( - + ( - 85 ), - 4, + COUNT ( * ) ) * - MAX ( + 10 ), + 82 + - 31 ) THEN 63 WHEN CAST ( NULL AS INTEGER ) IS NULL THEN NULL END / 65 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1689
SELECT DISTINCT + 16 * - CAST( + COUNT( + 75 ) AS SIGNED ) + - 92 col0, - 75 AS col1
----
-108
-75

skipif mysql # not compatible
query II rowsort label-1689
SELECT DISTINCT + 16 * - CAST ( + COUNT ( + 75 ) AS INTEGER ) + - 92 col0, - 75 AS col1
----
-108
-75

query I rowsort
SELECT CASE + ( + ( ( + - 62 ) ) ) WHEN + - 62 THEN + 49 ELSE NULL END
----
49

query I rowsort
SELECT + 84 + - 90 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL + 83 * + 48 * - COUNT( * ) + COUNT( ALL - 21 ) * 62
----
-3922

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + 83 * + 48 * - COUNT ( * ) + COUNT ( ALL - 21 ) * 62
----
-3922

onlyif mysql # aggregate syntax: 
query II rowsort label-1693
SELECT + CASE 73 WHEN + MAX( - + 23 ) THEN NULL WHEN 43 THEN + 51 END + + ( - 25 ) AS col1, + 67 * - 84 * + + 55
----
NULL
-309540

skipif mysql # not compatible
query II rowsort label-1693
SELECT + CASE 73 WHEN + MAX ( - + 23 ) THEN NULL WHEN 43 THEN + 51 END + + ( - 25 ) AS col1, + 67 * - 84 * + + 55
----
NULL
-309540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT ALL NULLIF ( ( + + 80 ), + - COALESCE ( 69, + 52 * + 88 ) + - SUM( + 90 ) / AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + COUNT( * ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL NULLIF ( ( + + 80 ), + - COALESCE ( 69, + 52 * + 88 ) + - SUM ( + 90 ) / AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT + 48 * 63 * - MAX( 24 ) AS col0
----
-72576

skipif mysql # not compatible
query I rowsort label-1695
SELECT + 48 * 63 * - MAX ( 24 ) AS col0
----
-72576

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT - 54 + + 40 + - + 97 + 62 + ( 31 ) * - COUNT( * ) * + 99 * - 38 + 84 * + 33
----
119345

skipif mysql # not compatible
query I rowsort label-1696
SELECT - 54 + + 40 + - + 97 + 62 + ( 31 ) * - COUNT ( * ) * + 99 * - 38 + 84 * + 33
----
119345

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT COUNT( ALL + 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1697
SELECT COUNT ( ALL + 13 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT + 64 * + + COUNT( + 38 ) + + - 35 col0
----
29

skipif mysql # not compatible
query I rowsort label-1698
SELECT + 64 * + + COUNT ( + 38 ) + + - 35 col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1699
SELECT ALL 36 + - 50 + 85 + + 78 / 4 - + + CASE + 64 WHEN + COUNT( * ) THEN - 53 - - - AVG ( DISTINCT + 21 ) WHEN + ( + - 98 ) * CAST( + CASE - - 38 WHEN - 81 * + COUNT( * ) THEN 51 WHEN 89 + COUNT( * ) THEN 34 ELSE NULL END AS SIGNED ) + 25 / 12 THEN + COUNT( * ) + + 49 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL 36 + - 50 + 85 + + 78 / 4 - + + CASE + 64 WHEN + COUNT ( * ) THEN - 53 - - - AVG ( DISTINCT + 21 ) WHEN + ( + - 98 ) * CAST ( + CASE - - 38 WHEN - 81 * + COUNT ( * ) THEN 51 WHEN 89 + COUNT ( * ) THEN 34 ELSE NULL END AS INTEGER ) + 25 / 12 THEN + COUNT ( * ) + + 49 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1700
SELECT - 7 + - - 14 * + 30 + - 1 * - + 52 * - CAST( - 7 AS SIGNED ) AS col0
----
777

skipif mysql # not compatible
query I rowsort label-1700
SELECT - 7 + - - 14 * + 30 + - 1 * - + 52 * - CAST ( - 7 AS INTEGER ) AS col0
----
777

query I rowsort
SELECT ALL - 30 + - + 68
----
-98

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

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

query I rowsort
SELECT DISTINCT 42 - + 90 + + 86
----
38

query I rowsort
SELECT - CASE + 74 WHEN 19 + 7 THEN + 29 WHEN 62 + + + 51 THEN NULL WHEN 87 + + 13 + + + 28 THEN NULL END / + 89 AS col1
----
NULL

query I rowsort
SELECT ALL 76 - 71 + 6 + + 32 * - NULLIF ( - 26, + ( - AVG ( 59 ) ) ) + - + 2
----
841

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ALL - COUNT( * ) - 21 + COUNT( * ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - COUNT ( * ) - 21 + COUNT ( * ) col0
----
-21

query I rowsort
SELECT ALL + 3 * 98
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT + COUNT( DISTINCT - + 92 ) - - 6 + 29 * + + 30 * - - 83 + - 72 + + 45
----
72190

skipif mysql # not compatible
query I rowsort label-1709
SELECT + COUNT ( DISTINCT - + 92 ) - - 6 + 29 * + + 30 * - - 83 + - 72 + + 45
----
72190

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT - + 92 DIV - 69 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1710
SELECT - + 92 / - 69 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1711
SELECT ALL + + 4 DIV - 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL + + 4 / - 44 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT - + 32 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-1712
SELECT - + 32 / + 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1713
SELECT 57 DIV 12 * 93 DIV COUNT( * ) DIV COUNT( * ) - + 54 * - 81 AS col0
----
4746

skipif mysql # not compatible
query I rowsort label-1713
SELECT 57 / 12 * 93 / COUNT ( * ) / COUNT ( * ) - + 54 * - 81 AS col0
----
4746

onlyif mysql # aggregate syntax: 
query II rowsort label-1714
SELECT ALL + - 77, - CASE - AVG ( DISTINCT - 27 ) WHEN + 28 + 14 * - + COUNT( * ) THEN NULL WHEN + 52 THEN NULL ELSE 31 END AS col0
----
-77
-31

skipif mysql # not compatible
query II rowsort label-1714
SELECT ALL + - 77, - CASE - AVG ( DISTINCT - 27 ) WHEN + 28 + 14 * - + COUNT ( * ) THEN NULL WHEN + 52 THEN NULL ELSE 31 END AS col0
----
-77
-31

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

query I rowsort
SELECT ALL 4 * - - 57 * + 91 + - 71
----
20677

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT ALL - - COUNT( * ) * COUNT( * ) * + 23 * 47 * - - ( + + 24 ) * + + 91 + + 13 + - - 60
----
2360977

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - - COUNT ( * ) * COUNT ( * ) * + 23 * 47 * - - ( + + 24 ) * + + 91 + + 13 + - - 60
----
2360977

onlyif mysql # DIV for integer division: 
query I rowsort label-1718
SELECT ALL - 97 DIV + - 14 + + + 8
----
14

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL - 97 / + - 14 + + + 8
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT + - 75 / - CAST( NULL AS SIGNED ) - + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT + - 75 / - CAST ( NULL AS INTEGER ) - + 80
----
NULL

query I rowsort
SELECT ALL + - 24 * 92 + - + 69
----
-2277

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1722
SELECT + - 4 DIV + 52 * + 27 + + 75
----
75

skipif mysql # not compatible
query I rowsort label-1722
SELECT + - 4 / + 52 * + 27 + + 75
----
75

query II rowsort
SELECT ALL - 54 AS col0, + 27 AS col2
----
-54
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL 79 + COUNT( DISTINCT - - 56 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL 79 + COUNT ( DISTINCT - - 56 ) AS col2
----
80

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

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

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

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

query I rowsort
SELECT ALL 72 + + 97 * - 87
----
-8367

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT ALL COUNT( * ) * 36 col0
----
36

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL COUNT ( * ) * 36 col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT ALL 43 DIV 14
----
3

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL 43 / 14
----
3

query I rowsort
SELECT 91 * 81 AS col1
----
7371

query I rowsort
SELECT ALL 95 * + 37 AS col1
----
3515

query III rowsort
SELECT 52 AS col2, 42 AS col2, - 42
----
52
42
-42

query I rowsort
SELECT ALL 89 * - 44 AS col2
----
-3916

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT COUNT( ALL + 26 ) - - 5 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1735
SELECT COUNT ( ALL + 26 ) - - 5 AS col2
----
6

query I rowsort
SELECT ( 9 ) * + - 86 * + 26
----
-20124

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT - 98 AS col1, - NULLIF ( - - COUNT( * ), 11 / + 13 )
----
-98
-1

skipif mysql # not compatible
query II rowsort label-1737
SELECT - 98 AS col1, - NULLIF ( - - COUNT ( * ), 11 / + 13 )
----
-98
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL 35 * COUNT( - 27 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL 35 * COUNT ( - 27 ) AS col0
----
35

query II rowsort
SELECT DISTINCT 2, - 68 + 51 AS col2
----
2
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1740
SELECT ALL + SUM( ALL - + CAST( + 65 AS SIGNED ) ) - + 26 DIV + NULLIF ( - 11, + 39 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + SUM ( ALL - + CAST ( + 65 AS INTEGER ) ) - + 26 / + NULLIF ( - 11, + 39 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1741
SELECT COALESCE ( - - 79, - 92, 33 * - + 82 - COUNT( + - CAST( NULL AS SIGNED ) ) * 66 ) * 45 * - 59
----
-209745

skipif mysql # not compatible
query I rowsort label-1741
SELECT COALESCE ( - - 79, - 92, 33 * - + 82 - COUNT ( + - CAST ( NULL AS INTEGER ) ) * 66 ) * 45 * - 59
----
-209745

onlyif mysql # DIV for integer division: 
query I rowsort label-1742
SELECT 80 + - - 38 + - 18 - 38 DIV NULLIF ( - 92, - 68 * + 37 ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-1742
SELECT 80 + - - 38 + - 18 - 38 / NULLIF ( - 92, - 68 * + 37 ) AS col1
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT 16 - - 5 * + + 9 * + + COUNT( * ) DIV + ( - 80 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1743
SELECT 16 - - 5 * + + 9 * + + COUNT ( * ) / + ( - 80 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT 7 * + CASE - 49 WHEN + + 73 THEN + + 7 END + + COALESCE ( + CASE + - 17 WHEN 77 THEN - - 2 WHEN - 49 THEN NULL END, COUNT( ALL 14 ) ) + 21 * - - 90 * - - 57 + 41 * + ( + 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT 7 * + CASE - 49 WHEN + + 73 THEN + + 7 END + + COALESCE ( + CASE + - 17 WHEN 77 THEN - - 2 WHEN - 49 THEN NULL END, COUNT ( ALL 14 ) ) + 21 * - - 90 * - - 57 + 41 * + ( + 84 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1745
SELECT + CASE + 74 WHEN - 45 THEN NULL WHEN 70 * - + 41 * + 83 THEN - + 46 / - - 17 WHEN - 83 * - ( + 98 ) * - 17 + 69 THEN NULL ELSE - - 39 * + 74 + - CAST( NULL AS SIGNED ) + - - 6 END + + COUNT( * ) + - + 6 / + + AVG ( DISTINCT 77 ) / - 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1745
SELECT + CASE + 74 WHEN - 45 THEN NULL WHEN 70 * - + 41 * + 83 THEN - + 46 / - - 17 WHEN - 83 * - ( + 98 ) * - 17 + 69 THEN NULL ELSE - - 39 * + 74 + - CAST ( NULL AS INTEGER ) + - - 6 END + + COUNT ( * ) + - + 6 / + + AVG ( DISTINCT 77 ) / - 1 AS col2
----
NULL

query II rowsort
SELECT ( 12 ) - - 69 * - - 6 AS col2, 32 * + - 54 col2
----
426
-1728

query II rowsort
SELECT ALL 81 AS col1, + 63 AS col1
----
81
63

query I rowsort
SELECT - 95 * + 85 AS col2
----
-8075

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT 41 + + 95 DIV - 6 + + 61
----
87

skipif mysql # not compatible
query I rowsort label-1749
SELECT 41 + + 95 / - 6 + + 61
----
87

query I rowsort
SELECT DISTINCT - 8 * + 44 + + 66 AS col2
----
-286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT CASE + 43 WHEN 6 * 22 THEN NULL WHEN - + COALESCE ( + ( - 46 ), - 54 * + 67, - 2 ) + - + 12 * 66 * + 83 THEN - + NULLIF ( + 55, - ( - 65 ) ) * - NULLIF ( 85, 86 ) END * + - CAST( 95 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT CASE + 43 WHEN 6 * 22 THEN NULL WHEN - + COALESCE ( + ( - 46 ), - 54 * + 67, - 2 ) + - + 12 * 66 * + 83 THEN - + NULLIF ( + 55, - ( - 65 ) ) * - NULLIF ( 85, 86 ) END * + - CAST ( 95 AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1752
SELECT ALL + + CASE + CAST( - CASE - 47 WHEN - - COALESCE ( + 52, - + 33 ) / 61 * - 84 * + - 71 THEN ( COUNT( * ) ) WHEN - MIN( ALL + - 35 ) THEN NULL WHEN + 51 THEN + 98 / 86 END AS SIGNED ) WHEN 54 + 55 THEN NULL WHEN + 75 * CAST( NULL AS DECIMAL ) THEN COUNT( * ) - + AVG ( 79 ) WHEN COALESCE ( 70, 17 * - 49 - 78, COUNT( * ) ) THEN NULL END * ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL + + CASE + CAST ( - CASE - 47 WHEN - - COALESCE ( + 52, - + 33 ) / 61 * - 84 * + - 71 THEN ( COUNT ( * ) ) WHEN - MIN ( ALL + - 35 ) THEN NULL WHEN + 51 THEN + 98 / 86 END AS INTEGER ) WHEN 54 + 55 THEN NULL WHEN + 75 * CAST ( NULL AS REAL ) THEN COUNT ( * ) - + AVG ( 79 ) WHEN COALESCE ( 70, 17 * - 49 - 78, COUNT ( * ) ) THEN NULL END * ( COUNT ( * ) )
----
NULL

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

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

query I rowsort
SELECT - 35 + 40
----
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT DISTINCT + 89 + - - CAST( + - COALESCE ( - - 61, + 52, - 75 * - - 49 ) AS SIGNED ) + + 64 * 13 * + - 0 - - 10 col1
----
38

skipif mysql # not compatible
query I rowsort label-1756
SELECT DISTINCT + 89 + - - CAST ( + - COALESCE ( - - 61, + 52, - 75 * - - 49 ) AS INTEGER ) + + 64 * 13 * + - 0 - - 10 col1
----
38

query II rowsort
SELECT 56 + + 92 * 38 + - + 90 AS col0, 17 AS col0
----
3462
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT ALL + COUNT( - + 6 ) + 19 + + 36
----
56

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL + COUNT ( - + 6 ) + 19 + + 36
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT - COUNT( ALL + 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1759
SELECT - COUNT ( ALL + 88 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1760
SELECT 89 * CASE - CAST( NULL AS SIGNED ) WHEN - + 45 THEN + 70 + - - 9 ELSE - 23 + 21 * - 13 * 45 * - 43 END AS col0, ( + 55 ) AS col2
----
47012648
55

skipif mysql # not compatible
query II rowsort label-1760
SELECT 89 * CASE - CAST ( NULL AS INTEGER ) WHEN - + 45 THEN + 70 + - - 9 ELSE - 23 + 21 * - 13 * 45 * - 43 END AS col0, ( + 55 ) AS col2
----
47012648
55

query II rowsort
SELECT ALL - 76 col1, - 28 * 40 AS col1
----
-76
-1120

query I rowsort
SELECT DISTINCT - + 22 + - - ( + + 38 ) + + 71 + 38
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT + + 14 DIV + 75 + 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1763
SELECT + + 14 / + 75 + 18 AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1764
SELECT ALL + SUM( DISTINCT + - 82 ) + CAST( + 11 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL + SUM ( DISTINCT + - 82 ) + CAST ( + 11 AS INTEGER )
----
-71

query II rowsort
SELECT - 51 * 73, + 3 AS col0
----
-3723
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT + COUNT( ALL - 91 ) + + 90
----
91

skipif mysql # not compatible
query I rowsort label-1766
SELECT + COUNT ( ALL - 91 ) + + 90
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1767
SELECT ALL + 38 * - + COALESCE ( COUNT( + 34 ), + ( - 36 ) DIV 9, ( 7 ) + + CASE + + COUNT( * ) WHEN - - 67 THEN NULL WHEN + 7 THEN NULL ELSE 48 * - + COUNT( * ) END )
----
-38

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL + 38 * - + COALESCE ( COUNT ( + 34 ), + ( - 36 ) / 9, ( 7 ) + + CASE + + COUNT ( * ) WHEN - - 67 THEN NULL WHEN + 7 THEN NULL ELSE 48 * - + COUNT ( * ) END )
----
-38

query I rowsort
SELECT DISTINCT + 47 + + 87 AS col0
----
134

query II rowsort
SELECT 55 + 54 + + 90 AS col0, + COALESCE ( + - 9, + + 40 * + 31 + + + 90 ) - CASE - + 7 WHEN 6 THEN + 39 * + + ( 3 ) ELSE NULL END
----
199
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT + ( + + 61 ) * - - 4 + - + 27 * 52 * - 59 + ( - - 3 ) * - SUM( DISTINCT - - 55 ) AS col0
----
82915

skipif mysql # not compatible
query I rowsort label-1770
SELECT + ( + + 61 ) * - - 4 + - + 27 * 52 * - 59 + ( - - 3 ) * - SUM ( DISTINCT - - 55 ) AS col0
----
82915

query II rowsort
SELECT DISTINCT + 30 - 92 + + 74, 40 col1
----
12
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1772
SELECT ALL ( 51 ) DIV - COUNT( DISTINCT + 23 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL ( 51 ) / - COUNT ( DISTINCT + 23 ) AS col1
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1773
SELECT NULLIF ( + 60, - 29 ) + - CAST( NULL AS DECIMAL ) + + + 44 * + NULLIF ( + + 42, - - 77 ), + 47 AS col1
----
NULL
47

skipif mysql # not compatible
query II rowsort label-1773
SELECT NULLIF ( + 60, - 29 ) + - CAST ( NULL AS REAL ) + + + 44 * + NULLIF ( + + 42, - - 77 ), + 47 AS col1
----
NULL
47

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

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

query II rowsort
SELECT 90 * + 79, - 19 AS col0
----
7110
-19

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1777
SELECT 55 DIV - 64 * SUM( ALL - 54 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1777
SELECT 55 / - 64 * SUM ( ALL - 54 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1778
SELECT DISTINCT COUNT( * ) * + 25 - 46 * - 66 * + CAST( - 9 AS SIGNED ) AS col0
----
-27299

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT COUNT ( * ) * + 25 - 46 * - 66 * + CAST ( - 9 AS INTEGER ) AS col0
----
-27299

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT ALL - 71 + + + MAX( DISTINCT + 4 ) - - + ( SUM( DISTINCT + 97 ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - 71 + + + MAX ( DISTINCT + 4 ) - - + ( SUM ( DISTINCT + 97 ) ) AS col2
----
30

query I rowsort
SELECT - COALESCE ( - 71, ( + 30 ) ) AS col1
----
71

query I rowsort
SELECT ALL + 60 + + ( 2 ) * + 28 * 67 + - 39 AS col2
----
3773

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT 12 - - SUM( DISTINCT + 92 ) + - + CASE 20 WHEN + - 74 THEN - 88 WHEN + ( CASE + + 84 WHEN - CAST( NULL AS SIGNED ) THEN COUNT( * ) END ) + + 27 * + 9 + - CAST( COALESCE ( + + CAST( COUNT( * ) AS SIGNED ), - 28 - + 37 ) AS SIGNED ) THEN 39 WHEN - + 65 THEN - 64 END - 2 / + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-1783
SELECT 12 - - SUM ( DISTINCT + 92 ) + - + CASE 20 WHEN + - 74 THEN - 88 WHEN + ( CASE + + 84 WHEN - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) END ) + + 27 * + 9 + - CAST ( COALESCE ( + + CAST ( COUNT ( * ) AS INTEGER ), - 28 - + 37 ) AS INTEGER ) THEN 39 WHEN - + 65 THEN - 64 END - 2 / + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT - - 83 + + ( + COUNT( * ) ) - + 11
----
73

skipif mysql # not compatible
query I rowsort label-1784
SELECT - - 83 + + ( + COUNT ( * ) ) - + 11
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-1785
SELECT DISTINCT 10 DIV + 13
----
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT 10 / + 13
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1786
SELECT + + 64 - - NULLIF ( + COUNT( ALL 35 ), + 65 / - - ( + 18 ) ), - 3 + COUNT( * ) + - 32 + + + 26 * - - 27 / CAST( NULL AS SIGNED ) AS col1
----
65
NULL

skipif mysql # not compatible
query II rowsort label-1786
SELECT + + 64 - - NULLIF ( + COUNT ( ALL 35 ), + 65 / - - ( + 18 ) ), - 3 + COUNT ( * ) + - 32 + + + 26 * - - 27 / CAST ( NULL AS INTEGER ) AS col1
----
65
NULL

query I rowsort
SELECT ALL 28 * + 26 * + - 59 * - 23
----
987896

query I rowsort
SELECT ALL 77 * - 75 * + 18 * - 25 - - 52
----
2598802

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT + 8 + - 59 DIV + - 13 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1789
SELECT + 8 + - 59 / + - 13 AS col0
----
12

query I rowsort
SELECT - 14 * 59 * + 75
----
-61950

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

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

query I rowsort
SELECT DISTINCT 25 * + 32
----
800

query I rowsort
SELECT NULLIF ( + + 25, 99 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1794
SELECT - ( + - 53 ) * - 29 AS col0, + COUNT( COALESCE ( + 80, - 29, 28 ) ) + CASE + 77 WHEN - 42 THEN + + COUNT( * ) / - 36 WHEN + ( 25 ) / + 73 - - 91 THEN 62 END - + 31 + 47 * + 80 AS col1
----
-1537
NULL

skipif mysql # not compatible
query II rowsort label-1794
SELECT - ( + - 53 ) * - 29 AS col0, + COUNT ( COALESCE ( + 80, - 29, 28 ) ) + CASE + 77 WHEN - 42 THEN + + COUNT ( * ) / - 36 WHEN + ( 25 ) / + 73 - - 91 THEN 62 END - + 31 + 47 * + 80 AS col1
----
-1537
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1795
SELECT DISTINCT 19 DIV - - 71 * + 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT 19 / - - 71 * + 13 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1796
SELECT - COUNT( * ) + SUM( DISTINCT - - 38 ) AS col2, + 37 col1
----
37
37

skipif mysql # not compatible
query II rowsort label-1796
SELECT - COUNT ( * ) + SUM ( DISTINCT - - 38 ) AS col2, + 37 col1
----
37
37

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

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

query I rowsort
SELECT DISTINCT + 90 * + + 19
----
1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT ALL + NULLIF ( - 36, - COALESCE ( + + 78, - 50, - CAST( - + COALESCE ( COUNT( * ), 85 + - 20 ) AS SIGNED ) ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL + NULLIF ( - 36, - COALESCE ( + + 78, - 50, - CAST ( - + COALESCE ( COUNT ( * ), 85 + - 20 ) AS INTEGER ) ) ) AS col0
----
-36

query I rowsort
SELECT + ( 89 ) * + 50
----
4450

query I rowsort
SELECT - 24 * + 79
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + 26 * 72 * - - 11 + ( COUNT( * ) )
----
20593

skipif mysql # not compatible
query I rowsort label-1802
SELECT + 26 * 72 * - - 11 + ( COUNT ( * ) )
----
20593

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

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

query I rowsort
SELECT - 88 * - 28 * 86 * 25 * + 99
----
524462400

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

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

query I rowsort
SELECT ALL - 72 * - + 29
----
2088

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1809
SELECT - - COALESCE ( - COUNT( 74 ), + - 33 * 46 ) - - ( - MAX( DISTINCT - - CAST( + 29 AS SIGNED ) ) ) * + + 20 * 24, 43 AS col0
----
-13921
43

skipif mysql # not compatible
query II rowsort label-1809
SELECT - - COALESCE ( - COUNT ( 74 ), + - 33 * 46 ) - - ( - MAX ( DISTINCT - - CAST ( + 29 AS INTEGER ) ) ) * + + 20 * 24, 43 AS col0
----
-13921
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL - 81 * COUNT( * ) * - 11 * + 40
----
35640

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - 81 * COUNT ( * ) * - 11 * + 40
----
35640

query I rowsort
SELECT DISTINCT + 22 + + + 2 * - 69 * 1 AS col1
----
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1812
SELECT ALL + 0 + + + CAST( - + 24 AS SIGNED ) - + + 73 + - - 52 - + 48
----
-93

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + 0 + + + CAST ( - + 24 AS INTEGER ) - + + 73 + - - 52 - + 48
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1813
SELECT DISTINCT - 42 + - 78 + - 66 * + CAST( + NULLIF ( 77, ( 27 ) / CAST( - 48 AS SIGNED ) ) AS SIGNED ) * - 90 * - 49 + - ( + COUNT( * ) )
----
-22411741

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT - 42 + - 78 + - 66 * + CAST ( + NULLIF ( 77, ( 27 ) / CAST ( - 48 AS INTEGER ) ) AS INTEGER ) * - 90 * - 49 + - ( + COUNT ( * ) )
----
-22411741

query I rowsort
SELECT + 40 - + 20
----
20

query II rowsort
SELECT - 84 + + 88 + 69, + 97 AS col2
----
73
97

query I rowsort
SELECT + 53 - - NULLIF ( + - 51, + ( 79 ) )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1817
SELECT + 67 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-1817
SELECT + 67 / - 79
----
0

query I rowsort
SELECT ALL - 48 + ( - 18 )
----
-66

query I rowsort
SELECT - - 43 * 15 AS col0
----
645

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1822
SELECT DISTINCT - - 51 * - + COUNT( + 20 ) * - 99 * - COALESCE ( - - COUNT( * ), - CASE + 33 WHEN - COALESCE ( + 94, - 33 * 46 ) THEN NULL ELSE + COUNT( * ) * - 88 * + 24 END * + + 89 ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT - - 51 * - + COUNT ( + 20 ) * - 99 * - COALESCE ( - - COUNT ( * ), - CASE + 33 WHEN - COALESCE ( + 94, - 33 * 46 ) THEN NULL ELSE + COUNT ( * ) * - 88 * + 24 END * + + 89 ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT ALL ( - + 15 ) - + + 25 * + 50 col0, + 36 * - COUNT( ALL + 76 )
----
-1265
-36

skipif mysql # not compatible
query II rowsort label-1823
SELECT ALL ( - + 15 ) - + + 25 * + 50 col0, + 36 * - COUNT ( ALL + 76 )
----
-1265
-36

query I rowsort
SELECT - 86 * 57 col2
----
-4902

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT - 96 AS col0, COUNT( + 89 )
----
-96
1

skipif mysql # not compatible
query II rowsort label-1825
SELECT - 96 AS col0, COUNT ( + 89 )
----
-96
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1826
SELECT + 61 * - - 58 + + + 5 + - 55 * 87 * 86 * 31, MIN( - 6 ) AS col0
----
-12753267
-6

skipif mysql # not compatible
query II rowsort label-1826
SELECT + 61 * - - 58 + + + 5 + - 55 * 87 * 86 * 31, MIN ( - 6 ) AS col0
----
-12753267
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT + 2 * + COALESCE ( + COALESCE ( 5, + + 51 * + 20 ), + + 71 * + + 16 + + 68, + 66 DIV + 15 ) col2
----
10

skipif mysql # not compatible
query I rowsort label-1827
SELECT + 2 * + COALESCE ( + COALESCE ( 5, + + 51 * + 20 ), + + 71 * + + 16 + + 68, + 66 / + 15 ) col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT ALL MIN( DISTINCT + - CASE - 48 WHEN + 22 * + + 41 THEN + 92 + - 45 WHEN - 98 THEN 38 * - ( 98 ) END ) / - 29 - + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL MIN ( DISTINCT + - CASE - 48 WHEN + 22 * + + 41 THEN + 92 + - 45 WHEN - 98 THEN 38 * - ( 98 ) END ) / - 29 - + - 71 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1829
SELECT CAST( + - NULLIF ( + - COUNT( * ), - 64 - - CASE - COUNT( ALL - 14 ) WHEN - 93 / ( + - COUNT( * ) ) THEN - 76 ELSE + 67 + 35 + + - CASE - 95 WHEN 67 THEN NULL WHEN 87 - + 26 + + ( - - CAST( NULL AS DECIMAL ) ) THEN 38 ELSE NULL END END + + - 53 + MAX( DISTINCT + - 76 ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1829
SELECT CAST ( + - NULLIF ( + - COUNT ( * ), - 64 - - CASE - COUNT ( ALL - 14 ) WHEN - 93 / ( + - COUNT ( * ) ) THEN - 76 ELSE + 67 + 35 + + - CASE - 95 WHEN 67 THEN NULL WHEN 87 - + 26 + + ( - - CAST ( NULL AS REAL ) ) THEN 38 ELSE NULL END END + + - 53 + MAX ( DISTINCT + - 76 ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1830
SELECT + 54 DIV + COUNT( * ) AS col2, - COUNT( * ) col2
----
54
-1

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

query I rowsort
SELECT + 72 + + - 39 + + 90
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT DISTINCT 78 DIV - 18 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT 78 / - 18 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ALL + CASE + COUNT( * ) WHEN + SUM( ALL + + 24 ) + + COUNT( * ) THEN NULL ELSE - 63 + - 2 END AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + CASE + COUNT ( * ) WHEN + SUM ( ALL + + 24 ) + + COUNT ( * ) THEN NULL ELSE - 63 + - 2 END AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1834
SELECT ( - CASE + COUNT( * ) WHEN + CAST( + 38 AS SIGNED ) THEN NULL WHEN - - ( 93 ) + + 91 THEN NULL ELSE COUNT( * ) + + 6 + + 36 * + 10 END )
----
-367

skipif mysql # not compatible
query I rowsort label-1834
SELECT ( - CASE + COUNT ( * ) WHEN + CAST ( + 38 AS INTEGER ) THEN NULL WHEN - - ( 93 ) + + 91 THEN NULL ELSE COUNT ( * ) + + 6 + + 36 * + 10 END )
----
-367

query I rowsort
SELECT + 24 * - 24 * 19 * - 55
----
601920

query I rowsort
SELECT 3 * + - 26 - - NULLIF ( - 75, + 24 ) * - ( + + 7 ) * + 16 AS col2
----
8322

query I rowsort
SELECT - 94 + + 56 * 55 AS col2
----
2986

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL - MAX( DISTINCT - 69 ) * + + 78 + - - 39
----
5421

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL - MAX ( DISTINCT - 69 ) * + + 78 + - - 39
----
5421

query II rowsort
SELECT - 3 * + 32 + + 46 + + + 17 AS col2, 76 + + + 57 AS col2
----
-33
133

query I rowsort
SELECT ALL 84 * + 16 * 81 + 68 + - 83 - + 80 * - 11 AS col0
----
109729

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT + 82 + - MIN( 30 ) + + - 83 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-1841
SELECT + 82 + - MIN ( 30 ) + + - 83 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-1842
SELECT - 88 + 82 * - 50 * + + COUNT( - - 43 ) + + 35 * + 33 AS col2, - 10 + + + 65 + - - 88 AS col1
----
-3033
143

skipif mysql # not compatible
query II rowsort label-1842
SELECT - 88 + 82 * - 50 * + + COUNT ( - - 43 ) + + 35 * + 33 AS col2, - 10 + + + 65 + - - 88 AS col1
----
-3033
143

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT ALL + + CASE 69 WHEN - + 29 THEN + 58 * - 26 + + 15 END * - 79 * - 77 * + 63 * + - 43 + 47 * 14 + - 39 + - CASE - 31 WHEN 42 THEN NULL ELSE - NULLIF ( COUNT( * ), - + COUNT( * ) ) END - + 25, - 60 * - COUNT( * ) * - 43 * - + 66 AS col1
----
NULL
170280

skipif mysql # not compatible
query II rowsort label-1843
SELECT ALL + + CASE 69 WHEN - + 29 THEN + 58 * - 26 + + 15 END * - 79 * - 77 * + 63 * + - 43 + 47 * 14 + - 39 + - CASE - 31 WHEN 42 THEN NULL ELSE - NULLIF ( COUNT ( * ), - + COUNT ( * ) ) END - + 25, - 60 * - COUNT ( * ) * - 43 * - + 66 AS col1
----
NULL
170280

query I rowsort
SELECT - 2 + + 18 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT DISTINCT + + 19 * - + CAST( NULL AS SIGNED ) * 40 + + COALESCE ( - - 12, 47 - + 75, 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT + + 19 * - + CAST ( NULL AS INTEGER ) * 40 + + COALESCE ( - - 12, 47 - + 75, 86 )
----
NULL

query I rowsort
SELECT + - 66 * - + 45 + - 71 + 13 * + 6
----
2977

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1848
SELECT + COUNT( * ) + 21 + - SUM( 30 ) - + 51 * + COUNT( * ) + CASE - + COUNT( * ) WHEN - + 85 * - + 17 THEN - + 92 WHEN 47 THEN - + COALESCE ( + 79, - + CASE + - AVG ( - - ( + 12 ) ) WHEN - 38 * + - 96 * + NULLIF ( + 86, 28 ) THEN NULL WHEN + + 3 * + CASE 44 WHEN 87 THEN 46 ELSE 97 END THEN + 71 END * - 22, - COUNT( * ) * 76 ) ELSE + 27 + COUNT( * ) END * CAST( 7 * 3 AS SIGNED ) AS col2
----
529

skipif mysql # not compatible
query I rowsort label-1848
SELECT + COUNT ( * ) + 21 + - SUM ( 30 ) - + 51 * + COUNT ( * ) + CASE - + COUNT ( * ) WHEN - + 85 * - + 17 THEN - + 92 WHEN 47 THEN - + COALESCE ( + 79, - + CASE + - AVG ( - - ( + 12 ) ) WHEN - 38 * + - 96 * + NULLIF ( + 86, 28 ) THEN NULL WHEN + + 3 * + CASE 44 WHEN 87 THEN 46 ELSE 97 END THEN + 71 END * - 22, - COUNT ( * ) * 76 ) ELSE + 27 + COUNT ( * ) END * CAST ( 7 * 3 AS INTEGER ) AS col2
----
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1849
SELECT MIN( DISTINCT - CASE + + 8 WHEN - CAST( NULL AS SIGNED ) THEN + 46 * - + ( 39 ) + + + 62 * 24 ELSE NULL END ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT MIN ( DISTINCT - CASE + + 8 WHEN - CAST ( NULL AS INTEGER ) THEN + 46 * - + ( 39 ) + + + 62 * 24 ELSE NULL END ) + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - - 99 * + 3 AS col0, 48 * + 16 AS col1
----
297
768

query I rowsort
SELECT - 4 * + 73 * - - 40 AS col0
----
-11680

query I rowsort
SELECT DISTINCT - + ( 0 ) * + - 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT COALESCE ( + COUNT( * ), - 94 ) - - 19 * ( - COUNT( * ) )
----
-18

skipif mysql # not compatible
query I rowsort label-1853
SELECT COALESCE ( + COUNT ( * ), - 94 ) - - 19 * ( - COUNT ( * ) )
----
-18

query II rowsort
SELECT 65 * ( - 42 ) AS col2, + 37
----
-2730
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT COUNT( * ) + + 58 + - 13 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-1855
SELECT COUNT ( * ) + + 58 + - 13 AS col1
----
46

query I rowsort
SELECT 74 * + - 23 AS col2
----
-1702

onlyif mysql # DIV for integer division: 
query I rowsort label-1857
SELECT DISTINCT + 89 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT + 89 / + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT SUM( - 77 ) * 78 * + 20 AS col1
----
-120120

skipif mysql # not compatible
query I rowsort label-1858
SELECT SUM ( - 77 ) * 78 * + 20 AS col1
----
-120120

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL - 17 * SUM( DISTINCT - 89 ) col1
----
1513

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - 17 * SUM ( DISTINCT - 89 ) col1
----
1513

query I rowsort
SELECT 83 + + ( + 15 ) * 92 AS col0
----
1463

query I rowsort
SELECT 8 * + 92 + + 70
----
806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1862
SELECT DISTINCT 24 + 96 + + COUNT( * ) DIV - 98
----
120

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT 24 + 96 + + COUNT ( * ) / - 98
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-1863
SELECT ALL MIN( DISTINCT - 82 ) + - 36 AS col1, + 59 - - 35 - + 51
----
-118
43

skipif mysql # not compatible
query II rowsort label-1863
SELECT ALL MIN ( DISTINCT - 82 ) + - 36 AS col1, + 59 - - 35 - + 51
----
-118
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1864
SELECT DISTINCT - 77, - 28 + COUNT( * ) col2
----
-77
-27

skipif mysql # not compatible
query II rowsort label-1864
SELECT DISTINCT - 77, - 28 + COUNT ( * ) col2
----
-77
-27

query I rowsort
SELECT DISTINCT + 27 + + 75 AS col1
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1866
SELECT ALL COUNT( * ) DIV - - 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL COUNT ( * ) / - - 33 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1867
SELECT COUNT( * ), MAX( DISTINCT - 86 ) DIV 19 * + - 64 col1
----
1
256

skipif mysql # not compatible
query II rowsort label-1867
SELECT COUNT ( * ), MAX ( DISTINCT - 86 ) / 19 * + - 64 col1
----
1
256

query I rowsort
SELECT + 52 + 49 * 62 + 65
----
3155

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

skipif mysql # not compatible
query I rowsort label-1869
SELECT NULLIF ( + - COUNT ( DISTINCT - 30 ), 91 ) / - - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1870
SELECT ALL COUNT( + 77 ) + 79 + + COUNT( + 69 ) * + 49 + 55 + + 98, - 23 AS col1
----
282
-23

skipif mysql # not compatible
query II rowsort label-1870
SELECT ALL COUNT ( + 77 ) + 79 + + COUNT ( + 69 ) * + 49 + 55 + + 98, - 23 AS col1
----
282
-23

query I rowsort
SELECT 40 - NULLIF ( 68, 65 ) + - - 83
----
55

query I rowsort
SELECT + 79 * - 5 AS col0
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL - NULLIF ( + 71, 29 ) - + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL - NULLIF ( + 71, 29 ) - + COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT CASE WHEN 58 <> NULL THEN - 93 ELSE NULL END / - - 5 - ( + SUM( ALL - 9 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT CASE WHEN 58 <> NULL THEN - 93 ELSE NULL END / - - 5 - ( + SUM ( ALL - 9 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT ( + + 30 ) + ( - ( - - SUM( DISTINCT + - 74 ) ) ) * + COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-1875
SELECT ( + + 30 ) + ( - ( - - SUM ( DISTINCT + - 74 ) ) ) * + COUNT ( * )
----
104

query II rowsort
SELECT ALL 36 col2, 9 AS col2
----
36
9

query I rowsort
SELECT + 68 + - - 43 * - 12 * - 42
----
21740

query I rowsort
SELECT CASE + 32 WHEN + + 89 + 98 * + 1 + - 8 THEN - - 63 ELSE - 26 END - 0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT - SUM( - 57 ) * - CAST( - MIN( DISTINCT + 75 ) AS SIGNED ) + - 41 AS col1
----
4234

skipif mysql # not compatible
query I rowsort label-1879
SELECT - SUM ( - 57 ) * - CAST ( - MIN ( DISTINCT + 75 ) AS INTEGER ) + - 41 AS col1
----
4234

query I rowsort
SELECT + 51 - - 94
----
145

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

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

query I rowsort
SELECT DISTINCT 2 * 77 col2
----
154

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

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

query I rowsort
SELECT 3 + 12
----
15

query I rowsort
SELECT 80 + + 63 - - + 38 AS col2
----
181

query I rowsort
SELECT 84 * - 3 col1
----
-252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT + 14 * + COUNT( ALL + - 24 ) / - - 38 / - CAST( NULL AS SIGNED ) / + - 77 + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT + 14 * + COUNT ( ALL + - 24 ) / - - 38 / - CAST ( NULL AS INTEGER ) / + - 77 + + 58 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1888
SELECT DISTINCT - 60 * 85 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT DISTINCT - 60 * 85 + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1890
SELECT + 36 AS col0, COUNT( * ) * + 68
----
36
68

skipif mysql # not compatible
query II rowsort label-1890
SELECT + 36 AS col0, COUNT ( * ) * + 68
----
36
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1891
SELECT ALL + 61 * + CAST( NULL AS SIGNED ) + + - ( + + ( 88 ) ) + - + 76 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + 61 * + CAST ( NULL AS INTEGER ) + + - ( + + ( 88 ) ) + - + 76 * - 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1892
SELECT COUNT( * ) + - - ( 86 ) * - CAST( + 2 AS SIGNED ) * SUM( DISTINCT - 61 ) * 22 - - COUNT( * ) AS col0, 0 AS col2
----
230826
0

skipif mysql # not compatible
query II rowsort label-1892
SELECT COUNT ( * ) + - - ( 86 ) * - CAST ( + 2 AS INTEGER ) * SUM ( DISTINCT - 61 ) * 22 - - COUNT ( * ) AS col0, 0 AS col2
----
230826
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1893
SELECT 13 * - + 40 * + - COUNT( * ) + 68 AS col1, CAST( NULL AS SIGNED ) * 5 * + + COUNT( * ) AS col0
----
588
NULL

skipif mysql # not compatible
query II rowsort label-1893
SELECT 13 * - + 40 * + - COUNT ( * ) + 68 AS col1, CAST ( NULL AS INTEGER ) * 5 * + + COUNT ( * ) AS col0
----
588
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT DISTINCT + COUNT( * ) * + 66 + + - 15
----
51

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT + COUNT ( * ) * + 66 + + - 15
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT + CASE - - COUNT( * ) WHEN - COALESCE ( - 20, MIN( - COALESCE ( NULLIF ( + 45, 31 ), + 31 * - 86 ) ) * - 80 ) THEN - ( - - 17 ) ELSE NULL END * 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + CASE - - COUNT ( * ) WHEN - COALESCE ( - 20, MIN ( - COALESCE ( NULLIF ( + 45, 31 ), + 31 * - 86 ) ) * - 80 ) THEN - ( - - 17 ) ELSE NULL END * 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1896
SELECT 77 DIV - 44 + COUNT( + 42 ) + + 6 * + - 96 AS col0
----
-576

skipif mysql # not compatible
query I rowsort label-1896
SELECT 77 / - 44 + COUNT ( + 42 ) + + 6 * + - 96 AS col0
----
-576

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1898
SELECT + 6 + - 76 + - 88 DIV 7 AS col0, CAST( NULL AS SIGNED ) - COUNT( * ) * - 83
----
-82
NULL

skipif mysql # not compatible
query II rowsort label-1898
SELECT + 6 + - 76 + - 88 / 7 AS col0, CAST ( NULL AS INTEGER ) - COUNT ( * ) * - 83
----
-82
NULL

query II rowsort
SELECT 25 AS col2, + 73 * - + 57 AS col0
----
25
-4161

query II rowsort
SELECT ALL + + 3 AS col0, 98
----
3
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1901
SELECT ALL - 70 - + CAST( - 97 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - 70 - + CAST ( - 97 AS INTEGER )
----
27

query I rowsort
SELECT DISTINCT 65 * + 67 + 44 AS col0
----
4399

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1903
SELECT - 53, + CAST( + COUNT( * ) AS SIGNED ) + 43 AS col1
----
-53
44

skipif mysql # not compatible
query II rowsort label-1903
SELECT - 53, + CAST ( + COUNT ( * ) AS INTEGER ) + 43 AS col1
----
-53
44

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

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL + COUNT ( * ) * + 43 + - - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1905
SELECT 5, 43 * - + COUNT( * ) * - 22 + - 86 AS col2
----
5
860

skipif mysql # not compatible
query II rowsort label-1905
SELECT 5, 43 * - + COUNT ( * ) * - 22 + - 86 AS col2
----
5
860

query I rowsort
SELECT + 15 * 73 + + + 9 col1
----
1104

query II rowsort
SELECT - + 27 AS col2, 43 col0
----
-27
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + NULLIF ( 35, - 92 * COUNT( * ) ) + 38
----
73

skipif mysql # not compatible
query I rowsort label-1908
SELECT + NULLIF ( 35, - 92 * COUNT ( * ) ) + 38
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT + 80 * - 27 + + COUNT( * ) AS col2
----
-2159

skipif mysql # not compatible
query I rowsort label-1910
SELECT + 80 * - 27 + + COUNT ( * ) AS col2
----
-2159

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL 49 * - 12 * - MAX( 93 ) AS col0
----
54684

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL 49 * - 12 * - MAX ( 93 ) AS col0
----
54684

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL CASE 21 WHEN + + 36 THEN + ( + 8 ) - - ( + + ( + ( - COUNT( * ) ) ) ) WHEN - ( + - 92 ) * 48 + 57 * + 41 + + + COUNT( * ) THEN - 58 + + COUNT( * ) - 83 * 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL CASE 21 WHEN + + 36 THEN + ( + 8 ) - - ( + + ( + ( - COUNT ( * ) ) ) ) WHEN - ( + - 92 ) * 48 + 57 * + 41 + + + COUNT ( * ) THEN - 58 + + COUNT ( * ) - 83 * 49 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + 31 * + MAX( ALL 82 ) AS col1
----
2542

skipif mysql # not compatible
query I rowsort label-1913
SELECT + 31 * + MAX ( ALL 82 ) AS col1
----
2542

query I rowsort
SELECT ALL - 17 * + - 80 col0
----
1360

onlyif mysql # DIV for integer division: 
query II rowsort label-1915
SELECT + 49 DIV - 90, - 80 AS col2
----
0
-80

skipif mysql # not compatible
query II rowsort label-1915
SELECT + 49 / - 90, - 80 AS col2
----
0
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT DISTINCT 55 + + CAST( NULL AS SIGNED ) - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT 55 + + CAST ( NULL AS INTEGER ) - 58 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( 78, + + 39 * - 17 * - 42 ) - + 26 AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1918
SELECT ALL 90 + 22 AS col1, - COUNT( * ) AS col2
----
112
-1

skipif mysql # not compatible
query II rowsort label-1918
SELECT ALL 90 + 22 AS col1, - COUNT ( * ) AS col2
----
112
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1919
SELECT + 96 - + + 61 + COALESCE ( 77, + 97, COUNT( * ) ) * ( ( + NULLIF ( - - 13, 32 * - - 34 + + + COALESCE ( + 66, - 84 * CAST( 83 AS SIGNED ) + - 67 + + 6 - + + 44 ) / + + CAST( NULL AS SIGNED ) + - + NULLIF ( - - 61, - 35 * + 12 * + 98 * 83 ) + 41 * - 22 * COALESCE ( 72, + 69 ) ) ) )
----
1036

skipif mysql # not compatible
query I rowsort label-1919
SELECT + 96 - + + 61 + COALESCE ( 77, + 97, COUNT ( * ) ) * ( ( + NULLIF ( - - 13, 32 * - - 34 + + + COALESCE ( + 66, - 84 * CAST ( 83 AS INTEGER ) + - 67 + + 6 - + + 44 ) / + + CAST ( NULL AS INTEGER ) + - + NULLIF ( - - 61, - 35 * + 12 * + 98 * 83 ) + 41 * - 22 * COALESCE ( 72, + 69 ) ) ) )
----
1036

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT ALL 54 + - + 44 - + + CAST( 79 AS SIGNED ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL 54 + - + 44 - + + CAST ( 79 AS INTEGER ) col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT DISTINCT COUNT( * ) + - 2 DIV + - MIN( + ( + 40 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT COUNT ( * ) + - 2 / + - MIN ( + ( + 40 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1923
SELECT ALL + COUNT( * ) + COALESCE ( + + CAST( ( - + 91 ) AS SIGNED ), 92 * - + ( - 80 ) + 40 + 55 * + CASE - 39 WHEN + 85 THEN NULL ELSE + - 28 + - + 21 END * 34, + ( + 75 ) + + 36 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL + COUNT ( * ) + COALESCE ( + + CAST ( ( - + 91 ) AS INTEGER ), 92 * - + ( - 80 ) + 40 + 55 * + CASE - 39 WHEN + 85 THEN NULL ELSE + - 28 + - + 21 END * 34, + ( + 75 ) + + 36 ) AS col2
----
-90

query I rowsort
SELECT - 42 - NULLIF ( - - NULLIF ( - 21, - 19 / + - 91 ), 98 * - + 52 ) * - + 98
----
-2100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1925
SELECT ALL COALESCE ( - - 71, 78, 13 * 54 + 68 * - - 1 * + - MIN( ALL 72 ) + + 28 DIV + MAX( - CAST( 86 AS SIGNED ) ) ) * 55
----
3905

skipif mysql # not compatible
query I rowsort label-1925
SELECT ALL COALESCE ( - - 71, 78, 13 * 54 + 68 * - - 1 * + - MIN ( ALL 72 ) + + 28 / + MAX ( - CAST ( 86 AS INTEGER ) ) ) * 55
----
3905

onlyif mysql # aggregate syntax: 
query II rowsort label-1926
SELECT ALL + MAX( DISTINCT 39 ), - 60 - - 0 AS col0
----
39
-60

skipif mysql # not compatible
query II rowsort label-1926
SELECT ALL + MAX ( DISTINCT 39 ), - 60 - - 0 AS col0
----
39
-60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT + 6 * + + 96 * + - COUNT( * ) * 39 AS col1
----
-22464

skipif mysql # not compatible
query I rowsort label-1928
SELECT + 6 * + + 96 * + - COUNT ( * ) * 39 AS col1
----
-22464

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

skipif mysql # not compatible
query I rowsort label-1929
SELECT - 12 * - + MIN ( ALL + 52 ) AS col2
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT 46 * 56 + - 56 + - - 30 - + COUNT( DISTINCT + + 83 )
----
2549

skipif mysql # not compatible
query I rowsort label-1930
SELECT 46 * 56 + - 56 + - - 30 - + COUNT ( DISTINCT + + 83 )
----
2549

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT DISTINCT - 24 * 53 - + COUNT( * ) AS col2
----
-1273

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT - 24 * 53 - + COUNT ( * ) AS col2
----
-1273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1932
SELECT - - MIN( ALL - 62 ) DIV - 6 + 58
----
68

skipif mysql # not compatible
query I rowsort label-1932
SELECT - - MIN ( ALL - 62 ) / - 6 + 58
----
68

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

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

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

query I rowsort
SELECT - - 26 + 7
----
33

query I rowsort
SELECT ALL + + 79 * - 75 + - 54
----
-5979

query I rowsort
SELECT - 23 + 28 + - 61 * + 31 AS col0
----
-1886

onlyif mysql # DIV for integer division: 
query I rowsort label-1938
SELECT + 97 DIV - - ( - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-1938
SELECT + 97 / - - ( - 61 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - 83 * COUNT( * ) + + + 57 + - 99 + + + CASE + 31 WHEN - 37 THEN NULL WHEN - + 96 THEN - 36 - 59 + 64 + + + MIN( ALL - 85 ) + + 38 ELSE NULL END / - + 39 * - - 69 * + - AVG ( DISTINCT 11 ) + - COALESCE ( - - 22, - 6 + 38, - + 5 ) + 70 * + CASE + 5 WHEN - - 52 - + 49 THEN NULL ELSE + 77 / - 30 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT - 83 * COUNT ( * ) + + + 57 + - 99 + + + CASE + 31 WHEN - 37 THEN NULL WHEN - + 96 THEN - 36 - 59 + 64 + + + MIN ( ALL - 85 ) + + 38 ELSE NULL END / - + 39 * - - 69 * + - AVG ( DISTINCT 11 ) + - COALESCE ( - - 22, - 6 + 38, - + 5 ) + 70 * + CASE + 5 WHEN - - 52 - + 49 THEN NULL ELSE + 77 / - 30 END AS col2
----
NULL

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

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

query I rowsort
SELECT - - ( - 6 ) * - 55 col1
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT + - 8 + - 82 * + + COUNT( * ) + + 27 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1942
SELECT + - 8 + - 82 * + + COUNT ( * ) + + 27 AS col1
----
-63

query I rowsort
SELECT + - 30 * + - 42 + + 28
----
1288

query I rowsort
SELECT DISTINCT 44 * 32 + - 46 + 9 * 57
----
1875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1945
SELECT ALL 14 + + 45 + CASE - - COUNT( * ) WHEN - + COALESCE ( + ( + 60 ), - + 65 * + 34 * - 12 + + 64 + + + ( 98 ) + - + 10 * 0, + MAX( - 48 ) + - + 95 + + COUNT( * ) * 14 ) THEN + CAST( + NULLIF ( COUNT( * ), COUNT( * ) + - CAST( NULL AS SIGNED ) + 82 + - - 33 * 53 * 59 ) AS SIGNED ) ELSE NULL END * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL 14 + + 45 + CASE - - COUNT ( * ) WHEN - + COALESCE ( + ( + 60 ), - + 65 * + 34 * - 12 + + 64 + + + ( 98 ) + - + 10 * 0, + MAX ( - 48 ) + - + 95 + + COUNT ( * ) * 14 ) THEN + CAST ( + NULLIF ( COUNT ( * ), COUNT ( * ) + - CAST ( NULL AS INTEGER ) + 82 + - - 33 * 53 * 59 ) AS INTEGER ) ELSE NULL END * + 63
----
NULL

query I rowsort
SELECT - 20 + + 35
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT - CASE + + 50 WHEN - + 95 THEN + + 25 WHEN - 30 THEN - COUNT( * ) + 42 * - + 11 + + 48 * - - 14 WHEN - COUNT( * ) THEN NULL ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1947
SELECT - CASE + + 50 WHEN - + 95 THEN + + 25 WHEN - 30 THEN - COUNT ( * ) + 42 * - + 11 + + 48 * - - 14 WHEN - COUNT ( * ) THEN NULL ELSE COUNT ( * ) END
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT + 78 - - - 92 + CAST( NULL AS SIGNED ) * - 89 + + + 90 - + 93 + + - 2 * 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT + 78 - - - 92 + CAST ( NULL AS INTEGER ) * - 89 + + + 90 - + 93 + + - 2 * 99 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1949
SELECT DISTINCT 1 + CASE + 8 WHEN + COUNT( DISTINCT - 59 ) - - COUNT( * ) + - ( 92 ) THEN CAST( + 36 AS SIGNED ) * 83 + - 46 + - 30 WHEN - 49 THEN - + 58 WHEN - 17 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT 1 + CASE + 8 WHEN + COUNT ( DISTINCT - 59 ) - - COUNT ( * ) + - ( 92 ) THEN CAST ( + 36 AS INTEGER ) * 83 + - 46 + - 30 WHEN - 49 THEN - + 58 WHEN - 17 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1950
SELECT + 18 + 63 DIV - ( - ( - SUM( DISTINCT - 10 ) ) ) + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1950
SELECT + 18 + 63 / - ( - ( - SUM ( DISTINCT - 10 ) ) ) + COUNT ( * ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL COUNT( * ) - 89 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL COUNT ( * ) - 89 AS col2
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1952
SELECT 9 DIV + SUM( + - 99 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1952
SELECT 9 / + SUM ( + - 99 ) AS col0
----
0

query I rowsort
SELECT NULLIF ( - - 40, 88 ) * 94 * 24 - - 61
----
90301

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT COUNT( * ) + + COALESCE ( 78, + 75 - + COUNT( * ) - + - COUNT( * ) + + 37 * 75 * + 20, + 57 )
----
79

skipif mysql # not compatible
query I rowsort label-1954
SELECT COUNT ( * ) + + COALESCE ( 78, + 75 - + COUNT ( * ) - + - COUNT ( * ) + + 37 * 75 * + 20, + 57 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT 53 * + COUNT( * ) * 90
----
4770

skipif mysql # not compatible
query I rowsort label-1955
SELECT 53 * + COUNT ( * ) * 90
----
4770

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT 87 * - + ( + + COUNT( * ) ) + + - 59 AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-1956
SELECT 87 * - + ( + + COUNT ( * ) ) + + - 59 AS col2
----
-146

query I rowsort
SELECT DISTINCT - 5 * - 45
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT DISTINCT - CASE + 19 WHEN - + 24 * + + 2 - - COUNT( * ) THEN NULL WHEN - 7 + 65 THEN + - ( - 43 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT - CASE + 19 WHEN - + 24 * + + 2 - - COUNT ( * ) THEN NULL WHEN - 7 + 65 THEN + - ( - 43 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1959
SELECT DISTINCT 97 - - ( + - 35 ) AS col2, + COUNT( 69 ) DIV - 4 - + 70 + + - 54
----
62
-124

skipif mysql # not compatible
query II rowsort label-1959
SELECT DISTINCT 97 - - ( + - 35 ) AS col2, + COUNT ( 69 ) / - 4 - + 70 + + - 54
----
62
-124

query I rowsort
SELECT ALL - 25 * 44 * 77
----
-84700

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1962
SELECT DISTINCT + 92 * + + 32 DIV 2 + 26
----
1498

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT + 92 * + + 32 / 2 + 26
----
1498

query I rowsort
SELECT - 98 * + 99 col2
----
-9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1964
SELECT + 92, + CASE CAST( 57 AS SIGNED ) WHEN - 93 / + + COUNT( * ) + - 1 + + - CAST( NULL AS SIGNED ) * + 8 * + 34 * MAX( ( - 12 ) ) THEN NULL WHEN COUNT( * ) THEN + 21 END * + CAST( + 10 AS SIGNED ) + 97 AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1964
SELECT + 92, + CASE CAST ( 57 AS INTEGER ) WHEN - 93 / + + COUNT ( * ) + - 1 + + - CAST ( NULL AS INTEGER ) * + 8 * + 34 * MAX ( ( - 12 ) ) THEN NULL WHEN COUNT ( * ) THEN + 21 END * + CAST ( + 10 AS INTEGER ) + 97 AS col1
----
92
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1965
SELECT + + 20 DIV - 43 * + CASE + 46 WHEN - + COUNT( * ) THEN NULL WHEN - COUNT( * ) DIV NULLIF ( 50, - 7 ) THEN NULL WHEN 66 + + 52 THEN - 1 DIV - - MAX( ALL + 48 ) ELSE + 78 END * + 34 * + - 25 * + ( 12 ) + - SUM( DISTINCT + 95 ) * 25
----
-2375

skipif mysql # not compatible
query I rowsort label-1965
SELECT + + 20 / - 43 * + CASE + 46 WHEN - + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) / NULLIF ( 50, - 7 ) THEN NULL WHEN 66 + + 52 THEN - 1 / - - MAX ( ALL + 48 ) ELSE + 78 END * + 34 * + - 25 * + ( 12 ) + - SUM ( DISTINCT + 95 ) * 25
----
-2375

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT + 4 + + 91 * + COUNT( * ) * 3 AS col1
----
277

skipif mysql # not compatible
query I rowsort label-1966
SELECT + 4 + + 91 * + COUNT ( * ) * 3 AS col1
----
277

query I rowsort
SELECT ALL - - 72 + ( 2 ) AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT DISTINCT - 26 * 5 + + ( + 12 ) + - + 46 + 19 DIV - 96
----
-164

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - 26 * 5 + + ( + 12 ) + - + 46 + 19 / - 96
----
-164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1969
SELECT - 98 DIV + - 72 + - COALESCE ( + 73, - 75 - + SUM( DISTINCT 0 ) + - CAST( NULL AS SIGNED ) - - - COUNT( * ) + - 88 + - 10 - - - COUNT( * ) * 30 * + COUNT( * ) + - 94 * 82 + - + 33 )
----
-72

skipif mysql # not compatible
query I rowsort label-1969
SELECT - 98 / + - 72 + - COALESCE ( + 73, - 75 - + SUM ( DISTINCT 0 ) + - CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + - 88 + - 10 - - - COUNT ( * ) * 30 * + COUNT ( * ) + - 94 * 82 + - + 33 )
----
-72

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

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + 82 + - COUNT ( * ) AS col2
----
81

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

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

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

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

query I rowsort
SELECT ALL 60 + + - ( 30 ) AS col0
----
30

query I rowsort
SELECT DISTINCT 95 - + - 83
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT COUNT( * ) + + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-1975
SELECT COUNT ( * ) + + - 52
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT 34 * CASE + + MAX( DISTINCT - 62 ) WHEN - COUNT( * ) - + - COUNT( ALL - 38 ) THEN - + MAX( 14 ) * + 81 * 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT 34 * CASE + + MAX ( DISTINCT - 62 ) WHEN - COUNT ( * ) - + - COUNT ( ALL - 38 ) THEN - + MAX ( 14 ) * + 81 * 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT COUNT( * ) - + 23 + NULLIF ( 17, 27 * + - 26 * ( - 96 ) + + 8 )
----
-5

skipif mysql # not compatible
query I rowsort label-1977
SELECT COUNT ( * ) - + 23 + NULLIF ( 17, 27 * + - 26 * ( - 96 ) + + 8 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1978
SELECT COUNT( NULLIF ( + 5, - + 0 + + - 26 - + + COALESCE ( - 66, 28, + + 80 DIV - - ( + + 66 ) + 81 ) DIV + + 63 + + 7 ) ) DIV - 91 * 7 + - 40 + + + 38 * - 93 + - 30 + + - NULLIF ( 49, 15 + - - 78 DIV + CAST( COUNT( * ) AS SIGNED ) )
----
-3653

skipif mysql # not compatible
query I rowsort label-1978
SELECT COUNT ( NULLIF ( + 5, - + 0 + + - 26 - + + COALESCE ( - 66, 28, + + 80 / - - ( + + 66 ) + 81 ) / + + 63 + + 7 ) ) / - 91 * 7 + - 40 + + + 38 * - 93 + - 30 + + - NULLIF ( 49, 15 + - - 78 / + CAST ( COUNT ( * ) AS INTEGER ) )
----
-3653

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL COUNT( DISTINCT 44 ) * - 10
----
-10

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL COUNT ( DISTINCT 44 ) * - 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT 24 * - MIN( ALL - - 24 )
----
-576

skipif mysql # not compatible
query I rowsort label-1980
SELECT 24 * - MIN ( ALL - - 24 )
----
-576

query I rowsort
SELECT - 30 - 6 + - + ( 98 )
----
-134

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

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

query I rowsort
SELECT + 96 + + - 32 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT SUM( - - 4 ) * 17 * - 29 + - 17
----
-1989

skipif mysql # not compatible
query I rowsort label-1984
SELECT SUM ( - - 4 ) * 17 * - 29 + - 17
----
-1989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1985
SELECT NULLIF ( - - ( - 0 ), 57 * - - 91 + - 27 * - COUNT( * ) ) + 1 * + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * - + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT NULLIF ( - - ( - 0 ), 57 * - - 91 + - 27 * - COUNT ( * ) ) + 1 * + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) * - + 4 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT COUNT( ALL - - 65 ) - + ( - 41 ) col0
----
42

skipif mysql # not compatible
query I rowsort label-1987
SELECT COUNT ( ALL - - 65 ) - + ( - 41 ) col0
----
42

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

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

query I rowsort
SELECT ALL ( - 13 ) + + 29 AS col1
----
16

query I rowsort
SELECT DISTINCT - 19 + + 58 + 25 + + 51 + + 5
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT 71 + + - MAX( ALL + ( + + 11 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1991
SELECT 71 + + - MAX ( ALL + ( + + 11 ) ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL - COUNT( ALL + - 28 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL - COUNT ( ALL + - 28 ) AS col0
----
-1

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT CAST( + ( - 2 ) AS SIGNED ) - 67 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-1995
SELECT CAST ( + ( - 2 ) AS INTEGER ) - 67 AS col0
----
-69

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

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

query II rowsort
SELECT ALL - 58 col2, 17 col1
----
-58
17

query I rowsort
SELECT 93 + + + 46 AS col0
----
139

query I rowsort
SELECT DISTINCT 37 + - 98
----
-61

query I rowsort
SELECT - 36 * - 85
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT - 95 + - COUNT( * ) * ( - 32 )
----
-63

skipif mysql # not compatible
query I rowsort label-2001
SELECT - 95 + - COUNT ( * ) * ( - 32 )
----
-63

query I rowsort
SELECT - 12 * + 89
----
-1068

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2003
SELECT - 59 + + 55 + MIN( ALL + - 0 ) - + 79 * + MIN( ALL - 39 ) * + - CAST( NULL AS DECIMAL ) * 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT - 59 + + 55 + MIN ( ALL + - 0 ) - + 79 * + MIN ( ALL - 39 ) * + - CAST ( NULL AS REAL ) * 13 AS col2
----
NULL

query I rowsort
SELECT + 65 + - 65 AS col2
----
0

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

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

query I rowsort
SELECT - 29 + - 71 AS col0
----
-100

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

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

query II rowsort
SELECT 71, + 60 + - - 88 col1
----
71
148

query I rowsort
SELECT ALL + 42 * - + ( + 4 ) AS col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT - + COUNT( ALL - 87 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2010
SELECT - + COUNT ( ALL - 87 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT ALL - COUNT( * ) * 55 + - + 88
----
-143

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - COUNT ( * ) * 55 + - + 88
----
-143

query I rowsort
SELECT ALL + ( 74 ) * + - 0 + - 17 + 26 + - 84 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT + - CASE - - 59 WHEN + 36 THEN NULL WHEN - 83 THEN - - 66 WHEN 95 THEN - 83 END / + COALESCE ( - COUNT( * ), 89, 70 * - - 71 ) / + 97 * + - 8 + ( - 47 ) - SUM( DISTINCT + 40 ) + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT + - CASE - - 59 WHEN + 36 THEN NULL WHEN - 83 THEN - - 66 WHEN 95 THEN - 83 END / + COALESCE ( - COUNT ( * ), 89, 70 * - - 71 ) / + 97 * + - 8 + ( - 47 ) - SUM ( DISTINCT + 40 ) + + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT ALL + 26 / - + 13 * + CASE + 80 WHEN + 36 * MIN( ALL + ( + 63 ) ) + - 91 + + 31 THEN NULL WHEN - 37 * + 16 * + 3 * + 40 + + + COUNT( * ) THEN 45 WHEN - 63 THEN NULL ELSE NULL END / - + COUNT( * ) - - COUNT( * ) * - 60, - COALESCE ( 5, + 49, - 30, - + 24 ) + - MAX( 2 ) AS col0
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-2014
SELECT ALL + 26 / - + 13 * + CASE + 80 WHEN + 36 * MIN ( ALL + ( + 63 ) ) + - 91 + + 31 THEN NULL WHEN - 37 * + 16 * + 3 * + 40 + + + COUNT ( * ) THEN 45 WHEN - 63 THEN NULL ELSE NULL END / - + COUNT ( * ) - - COUNT ( * ) * - 60, - COALESCE ( 5, + 49, - 30, - + 24 ) + - MAX ( 2 ) AS col0
----
NULL
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-2015
SELECT ALL 80 * + 73 + + COUNT( * ) AS col0, MIN( ALL 29 ) * + - 2 * - 8 * + - COUNT( DISTINCT - - 43 ) * - 2 + + 95 AS col2
----
5841
1023

skipif mysql # not compatible
query II rowsort label-2015
SELECT ALL 80 * + 73 + + COUNT ( * ) AS col0, MIN ( ALL 29 ) * + - 2 * - 8 * + - COUNT ( DISTINCT - - 43 ) * - 2 + + 95 AS col2
----
5841
1023

query II rowsort
SELECT DISTINCT + 45, 54 * - 46 AS col2
----
45
-2484

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT - 6 * - 41 + + 14 + 53 + - COUNT( 95 ) + - 33 * + 21
----
-381

skipif mysql # not compatible
query I rowsort label-2017
SELECT - 6 * - 41 + + 14 + 53 + - COUNT ( 95 ) + - 33 * + 21
----
-381

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT COUNT( * ) * + + 26 + - + 50
----
-24

skipif mysql # not compatible
query I rowsort label-2018
SELECT COUNT ( * ) * + + 26 + - + 50
----
-24

query I rowsort
SELECT ALL + + 96 * + 87 * + 89 + - 55 - 27 * - 75 * - 14 AS col1
----
714923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT + + 69 * + 38 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT + + 69 * + 38 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2021
SELECT DISTINCT + + COALESCE ( + - NULLIF ( 73, + 5 ), + MIN( DISTINCT - 14 ) - COUNT( * ), 42, + 83 * - AVG ( DISTINCT - 85 ) * + 18 DIV - 88 + - COUNT( * ) + + 50 + - + 44 )
----
-73

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT + + COALESCE ( + - NULLIF ( 73, + 5 ), + MIN ( DISTINCT - 14 ) - COUNT ( * ), 42, + 83 * - AVG ( DISTINCT - 85 ) * + 18 / - 88 + - COUNT ( * ) + + 50 + - + 44 )
----
-73

query I rowsort
SELECT + NULLIF ( + - 4, + 44 )
----
-4

query I rowsort
SELECT + 25 * - 55 col2
----
-1375

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT CASE - + CASE + 1 WHEN - 96 / + - 6 * + 6 * ( - - MAX( - - ( + + 57 ) ) ) THEN 84 WHEN 20 THEN 41 END WHEN - + 82 THEN NULL WHEN + 89 THEN 22 + 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT CASE - + CASE + 1 WHEN - 96 / + - 6 * + 6 * ( - - MAX ( - - ( + + 57 ) ) ) THEN 84 WHEN 20 THEN 41 END WHEN - + 82 THEN NULL WHEN + 89 THEN 22 + 60 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT + ( NULLIF ( + 40, + COUNT( - 51 ) + + 99 ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-2025
SELECT + ( NULLIF ( + 40, + COUNT ( - 51 ) + + 99 ) ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT COUNT( * ) * 96 - + MIN( - + 64 )
----
160

skipif mysql # not compatible
query I rowsort label-2026
SELECT COUNT ( * ) * 96 - + MIN ( - + 64 )
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT MAX( - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-2027
SELECT MAX ( - 89 )
----
-89

query II rowsort
SELECT + 72, ( + 95 ) AS col2
----
72
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT ALL COUNT( + NULLIF ( - - 44, - 12 - + 33 / - + NULLIF ( - 99, - 41 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2030
SELECT ALL COUNT ( + NULLIF ( - - 44, - 12 - + 33 / - + NULLIF ( - 99, - 41 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT MAX( 25 ) AS col1, 31
----
25
31

skipif mysql # not compatible
query II rowsort label-2031
SELECT MAX ( 25 ) AS col1, 31
----
25
31

query I rowsort
SELECT + 59 * 61 * - + 82
----
-295118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2033
SELECT - CASE + NULLIF ( + 1, - - COUNT( * ) - - 79 + + 36 ) WHEN 52 * 38 THEN + 84 + + 32 ELSE + ( - 83 ) END + - CASE COUNT( * ) WHEN - + MAX( + 30 ) / - COUNT( * ) + - NULLIF ( + 80, + ( - + ( + 35 ) ) + + + CAST( NULL AS SIGNED ) ) + ( + - 71 ) * + CAST( 31 AS SIGNED ) + + 11 THEN - ( - - MAX( DISTINCT + 43 ) ) * CAST( 89 AS SIGNED ) END + + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT - CASE + NULLIF ( + 1, - - COUNT ( * ) - - 79 + + 36 ) WHEN 52 * 38 THEN + 84 + + 32 ELSE + ( - 83 ) END + - CASE COUNT ( * ) WHEN - + MAX ( + 30 ) / - COUNT ( * ) + - NULLIF ( + 80, + ( - + ( + 35 ) ) + + + CAST ( NULL AS INTEGER ) ) + ( + - 71 ) * + CAST ( 31 AS INTEGER ) + + 11 THEN - ( - - MAX ( DISTINCT + 43 ) ) * CAST ( 89 AS INTEGER ) END + + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2034
SELECT + MAX( ALL 82 ) DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-2034
SELECT + MAX ( ALL 82 ) / + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT MAX( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-2035
SELECT MAX ( - 4 )
----
-4

query II rowsort
SELECT ALL 38 AS col1, 56 * + + 37
----
38
2072

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT ALL ( + COALESCE ( + + 42, + 42 + 22 * + 63 * 43 * COUNT( * ) ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL ( + COALESCE ( + + 42, + 42 + 22 * + 63 * 43 * COUNT ( * ) ) ) AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2038
SELECT - ( 15 ) DIV - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2038
SELECT - ( 15 ) / - COUNT ( * ) AS col0
----
15

query II rowsort
SELECT - 49 AS col2, 97 AS col2
----
-49
97

query I rowsort
SELECT DISTINCT - 47 * - ( - + 62 ) AS col0
----
-2914

query I rowsort
SELECT ALL + 92 + 95 + - + 21 AS col0
----
166

query II rowsort
SELECT ALL 71 AS col0, + 68
----
71
68

query I rowsort
SELECT - - 85 + - 35 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT DISTINCT + + 20 + - 33 - + 0 * + - COUNT( * ) * - 22 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT + + 20 + - 33 - + 0 * + - COUNT ( * ) * - 22 AS col0
----
-13

query II rowsort
SELECT - 33 AS col1, - 80 * 59 * 70 * + 85 AS col2
----
-33
-28084000

onlyif mysql # DIV for integer division: 
query I rowsort label-2046
SELECT - + 25 * 41 DIV + 37
----
-27

skipif mysql # not compatible
query I rowsort label-2046
SELECT - + 25 * 41 / + 37
----
-27

query I rowsort
SELECT DISTINCT + - 28 + 19 AS col0
----
-9

query I rowsort
SELECT DISTINCT - 97 * - + 66
----
6402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT ALL - ( - 15 ) / - 82 - 69 * + CAST( NULL AS SIGNED ) + + 86 + - 66 / + + 90 + + + 61 + + - 90 + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL - ( - 15 ) / - 82 - 69 * + CAST ( NULL AS INTEGER ) + + 86 + - 66 / + + 90 + + + 61 + + - 90 + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2050
SELECT ALL + 29, COUNT( * ) + + + CASE - COUNT( * ) WHEN - COUNT( * ) THEN 40 ELSE NULL END + - 50 / - - 36 + - MIN( ALL 35 ) * - 79 + - CASE - + 3 WHEN + ( - - 81 ) * + - COALESCE ( + 60, 35 * COUNT( * ), + 18 ) THEN NULL WHEN 19 THEN - 31 ELSE NULL END AS col2
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2050
SELECT ALL + 29, COUNT ( * ) + + + CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN 40 ELSE NULL END + - 50 / - - 36 + - MIN ( ALL 35 ) * - 79 + - CASE - + 3 WHEN + ( - - 81 ) * + - COALESCE ( + 60, 35 * COUNT ( * ), + 18 ) THEN NULL WHEN 19 THEN - 31 ELSE NULL END AS col2
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT - ( MIN( 33 ) ) * - 90 AS col1
----
2970

skipif mysql # not compatible
query I rowsort label-2051
SELECT - ( MIN ( 33 ) ) * - 90 AS col1
----
2970

query I rowsort
SELECT - 94 + + + 24
----
-70

query II rowsort
SELECT + - 31 AS col2, 58 * - 78 * - 59 * + + 33 col0
----
-31
8808228

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

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

query II rowsort
SELECT + - 8 AS col0, 56
----
-8
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2056
SELECT ALL + - COUNT( * ) DIV + - 48 - + 32
----
-32

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + - COUNT ( * ) / + - 48 - + 32
----
-32

query II rowsort
SELECT ALL + 67 AS col0, 93 * + 18
----
67
1674

query II rowsort
SELECT DISTINCT - + 11 * + - 1 AS col2, 63 + 37 + - - 62
----
11
162

query II rowsort
SELECT 99 + + ( - 29 ) AS col1, - 82 AS col1
----
70
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT 2 DIV - 23 col0
----
0

skipif mysql # not compatible
query I rowsort label-2060
SELECT 2 / - 23 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT 38 * - - 64 * - + MIN( 42 ) AS col2
----
-102144

skipif mysql # not compatible
query I rowsort label-2061
SELECT 38 * - - 64 * - + MIN ( 42 ) AS col2
----
-102144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2062
SELECT 32 * + CAST( - 34 AS SIGNED ) + - + 75 * - NULLIF ( - ( 64 ), + + COALESCE ( + 53, + 87, + 22 * COUNT( * ) + 4 ) - - NULLIF ( ( + 39 ), - COUNT( * ) * + 7 * + 47 * 27 - + 77 * - + COUNT( * ) ) + + - 56 ) * + COUNT( * )
----
-5888

skipif mysql # not compatible
query I rowsort label-2062
SELECT 32 * + CAST ( - 34 AS INTEGER ) + - + 75 * - NULLIF ( - ( 64 ), + + COALESCE ( + 53, + 87, + 22 * COUNT ( * ) + 4 ) - - NULLIF ( ( + 39 ), - COUNT ( * ) * + 7 * + 47 * 27 - + 77 * - + COUNT ( * ) ) + + - 56 ) * + COUNT ( * )
----
-5888

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT 44 - - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-2063
SELECT 44 - - COUNT ( * ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT COALESCE ( 93, + 20, + + 13 + - + MIN( + 41 ) ) * - 2 + - + 9 * COUNT( * ) AS col2
----
-195

skipif mysql # not compatible
query I rowsort label-2064
SELECT COALESCE ( 93, + 20, + + 13 + - + MIN ( + 41 ) ) * - 2 + - + 9 * COUNT ( * ) AS col2
----
-195

query I rowsort
SELECT - ( + - 79 ) * + 0 * 7 + + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT 28 + CASE + COUNT( * ) WHEN + 51 / - COUNT( * ) THEN - + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT 28 + CASE + COUNT ( * ) WHEN + 51 / - COUNT ( * ) THEN - + 22 END
----
NULL

query I rowsort
SELECT ALL 71 * 12 * + 18
----
15336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2068
SELECT DISTINCT 30 * - 22 * - MIN( 88 ) * - CAST( + 86 AS SIGNED ) - + 87
----
-4994967

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT 30 * - 22 * - MIN ( 88 ) * - CAST ( + 86 AS INTEGER ) - + 87
----
-4994967

query I rowsort
SELECT ALL ( + 86 ) + + 94 * - + 6 * - + ( - 98 )
----
-55186

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

query II rowsort
SELECT ALL 24 + - - ( + - 11 ) AS col2, + 51
----
13
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2072
SELECT DISTINCT CAST( 6 AS SIGNED ) * - + ( 28 ) * - COUNT( * ) + + COUNT( 0 ) * - - 40 + - 38 + COALESCE ( + ( - - COUNT( * ) ), + 18 * 83 - + + 92, - - COUNT( * ) * + 1 + NULLIF ( + - CASE 64 WHEN NULLIF ( - 35, + 57 ) + + - COUNT( + + 66 ) + - 53 DIV + - COUNT( * ) THEN NULL ELSE + 41 END, - ( + 14 ) + 5 + - + 5 ) ) * ( 11 * - CAST( - 94 DIV + COUNT( 22 ) AS SIGNED ) + + 46 DIV 87 )
----
1204

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT CAST ( 6 AS INTEGER ) * - + ( 28 ) * - COUNT ( * ) + + COUNT ( 0 ) * - - 40 + - 38 + COALESCE ( + ( - - COUNT ( * ) ), + 18 * 83 - + + 92, - - COUNT ( * ) * + 1 + NULLIF ( + - CASE 64 WHEN NULLIF ( - 35, + 57 ) + + - COUNT ( + + 66 ) + - 53 / + - COUNT ( * ) THEN NULL ELSE + 41 END, - ( + 14 ) + 5 + - + 5 ) ) * ( 11 * - CAST ( - 94 / + COUNT ( 22 ) AS INTEGER ) + + 46 / 87 )
----
1204

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT ALL 29 + - 52 + + 33 * + NULLIF ( + + 28, + COUNT( * ) - - - 95 ) col2
----
901

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL 29 + - 52 + + 33 * + NULLIF ( + + 28, + COUNT ( * ) - - - 95 ) col2
----
901

query I rowsort
SELECT ALL 64 + + 99 + + 89 * - - 46 AS col1
----
4257

query I rowsort
SELECT 53 * - 44
----
-2332

onlyif mysql # aggregate syntax: 
query II rowsort label-2076
SELECT + COUNT( * ) + - 85 col1, + 89 * + 19
----
-84
1691

skipif mysql # not compatible
query II rowsort label-2076
SELECT + COUNT ( * ) + - 85 col1, + 89 * + 19
----
-84
1691

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2077
SELECT + 41 DIV - 40 - COUNT( * ) DIV 34 + - 38 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 41 / - 40 - COUNT ( * ) / 34 + - 38 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL + 51 + MAX( + + 44 ) + - ( 3 )
----
92

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + 51 + MAX ( + + 44 ) + - ( 3 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2079
SELECT DISTINCT - 92 DIV + 98 + ( + 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT - 92 / + 98 + ( + 19 ) AS col1
----
19

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2081
SELECT ALL - 59 * - CAST( NULL AS DECIMAL ) * - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - 59 * - CAST ( NULL AS REAL ) * - 48 AS col2
----
NULL

query I rowsort
SELECT ALL + 1 + - 64 - 25 * + 37 * - 61 AS col0
----
56362

query I rowsort
SELECT 23 + 72 AS col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2084
SELECT - 65 * 52 DIV + - 76
----
44

skipif mysql # not compatible
query I rowsort label-2084
SELECT - 65 * 52 / + - 76
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2085
SELECT 54 * 27 * - 95 * - 82 / + AVG ( + + CAST( NULL AS DECIMAL ) ) * + 92 / 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT 54 * 27 * - 95 * - 82 / + AVG ( + + CAST ( NULL AS REAL ) ) * + 92 / 20 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2086
SELECT ALL - 99 * 26 - - + 14 + 69 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - 99 * 26 - - + 14 + 69 * - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 74 + - 78 + - 48 - - 20 * - - 65 * - 91
----
-118352

query I rowsort
SELECT 46 + + - 35 * + 18 * 9 AS col1
----
-5624

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2090
SELECT COUNT( ALL - - 34 ) AS col0, - 57 * - 10 AS col0
----
1
570

skipif mysql # not compatible
query II rowsort label-2090
SELECT COUNT ( ALL - - 34 ) AS col0, - 57 * - 10 AS col0
----
1
570

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT + NULLIF ( - - 50, COUNT( ALL 91 ) * 47 ) - - 77
----
127

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT + NULLIF ( - - 50, COUNT ( ALL 91 ) * 47 ) - - 77
----
127

query I rowsort
SELECT - COALESCE ( - 28, + 60 * + 63 + + 30 ) + 9 + - - 30
----
67

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

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

query II rowsort
SELECT + 6 AS col1, - 67 AS col1
----
6
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL - CASE - 39 WHEN SUM( + 59 ) THEN NULL ELSE - - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - CASE - 39 WHEN SUM ( + 59 ) THEN NULL ELSE - - COUNT ( * ) END
----
-1

query I rowsort
SELECT 18 * - 14 AS col1
----
-252

query I rowsort
SELECT 54 + + 87
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL + COUNT( * ) + - + 58 + 28
----
-29

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL + COUNT ( * ) + - + 58 + 28
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT + 73, COALESCE ( - 65, - - MIN( 77 ), ( + - 39 ) ) col0
----
73
-65

skipif mysql # not compatible
query II rowsort label-2099
SELECT + 73, COALESCE ( - 65, - - MIN ( 77 ), ( + - 39 ) ) col0
----
73
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT ALL - COUNT( ALL 23 ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-2100
SELECT ALL - COUNT ( ALL 23 ) + - 64
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL - CASE - - 34 WHEN - + NULLIF ( ( - 34 ), + + COUNT( * ) ) THEN NULL ELSE ( 90 ) + 82 END * - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL - CASE - - 34 WHEN - + NULLIF ( ( - 34 ), + + COUNT ( * ) ) THEN NULL ELSE ( 90 ) + 82 END * - 34 AS col1
----
NULL

query I rowsort
SELECT ALL 24 + + 79 AS col1
----
103

query I rowsort
SELECT DISTINCT 83 + 68
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT 63 / - ( - CASE - ( - - 60 ) WHEN 79 * + - 94 + - + 51 + 84 THEN NULLIF ( + + SUM( ALL - 54 ), + 62 - + - 58 + - 31 ) * + COALESCE ( + 32, 23 + + - 85 * 58 - 96 + - + 27 + 29 + - 32 + + 20 * + 20 * + 15 * + NULLIF ( + ( - - ( 65 ) ), - - COUNT( * ) * + 58 ) * + 15 ) WHEN COALESCE ( COALESCE ( - 4, 34, + COUNT( * ) ), COUNT( CAST( NULL AS SIGNED ) ) / 61 ) - + COUNT( * ) * - 1 THEN COUNT( ALL + 75 ) WHEN 4 THEN 34 END ) / - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-2104
SELECT 63 / - ( - CASE - ( - - 60 ) WHEN 79 * + - 94 + - + 51 + 84 THEN NULLIF ( + + SUM ( ALL - 54 ), + 62 - + - 58 + - 31 ) * + COALESCE ( + 32, 23 + + - 85 * 58 - 96 + - + 27 + 29 + - 32 + + 20 * + 20 * + 15 * + NULLIF ( + ( - - ( 65 ) ), - - COUNT ( * ) * + 58 ) * + 15 ) WHEN COALESCE ( COALESCE ( - 4, 34, + COUNT ( * ) ), COUNT ( CAST ( NULL AS INTEGER ) ) / 61 ) - + COUNT ( * ) * - 1 THEN COUNT ( ALL + 75 ) WHEN 4 THEN 34 END ) / - 29
----
NULL

query I rowsort
SELECT ( + ( + 6 ) ) * - + 15 * - 34
----
3060

query I rowsort
SELECT ALL + 74 + + + 67 + + - 18 AS col0
----
123

query II rowsort
SELECT 34 AS col1, - 96 * + - 33 * - 29
----
34
-91872

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT SUM( - - 21 ) * 76
----
1596

skipif mysql # not compatible
query I rowsort label-2108
SELECT SUM ( - - 21 ) * 76
----
1596

query I rowsort
SELECT DISTINCT - 21 * + 32 * + 52 AS col2
----
-34944

query I rowsort
SELECT DISTINCT 9 * + + 67 * COALESCE ( + 83, 46 )
----
50049

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

query I rowsort
SELECT ALL 27 * NULLIF ( - 20, 50 ) AS col1
----
-540

query I rowsort
SELECT ALL 66 - + 24
----
42

query I rowsort
SELECT DISTINCT - 3 * - - 79 AS col2
----
-237

query II rowsort
SELECT 64 AS col1, - 25 * - - 94 * - 91 AS col2
----
64
213850

query I rowsort
SELECT ALL 93 * - 3 AS col1
----
-279

query I rowsort
SELECT + 63 + - 74 col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT 68 * 40 + + 28 - + COUNT( * ) AS col0
----
2747

skipif mysql # not compatible
query I rowsort label-2118
SELECT 68 * 40 + + 28 - + COUNT ( * ) AS col0
----
2747

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

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

query II rowsort
SELECT ALL + 45 col0, - 76 col1
----
45
-76

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

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL - - MIN ( ALL 73 ) / + COUNT ( * ) AS col1
----
73

query I rowsort
SELECT DISTINCT - CASE + 3 WHEN - 14 THEN + + 60 * 10 + + 90 END * + - 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2123
SELECT + 26 + 90 - - 14 AS col2, MIN( 60 ) * + ( CAST( NULL AS DECIMAL ) ) AS col1
----
130
NULL

skipif mysql # not compatible
query II rowsort label-2123
SELECT + 26 + 90 - - 14 AS col2, MIN ( 60 ) * + ( CAST ( NULL AS REAL ) ) AS col1
----
130
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT ALL CASE 45 WHEN + CAST( NULL AS SIGNED ) - - + 31 THEN + 67 WHEN - - 44 + + 8 * + 85 THEN - 45 * - 69 END / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL CASE 45 WHEN + CAST ( NULL AS INTEGER ) - - + 31 THEN + 67 WHEN - - 44 + + 8 * + 85 THEN - 45 * - 69 END / 18
----
NULL

query I rowsort
SELECT ALL + 26 * - 49 AS col2
----
-1274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT + + 61 * CAST( - 82 AS SIGNED ) - - COALESCE ( - 18, + 53 ) + - - 14 AS col0
----
-5006

skipif mysql # not compatible
query I rowsort label-2126
SELECT + + 61 * CAST ( - 82 AS INTEGER ) - - COALESCE ( - 18, + 53 ) + - - 14 AS col0
----
-5006

query I rowsort
SELECT + - ( + 75 ) * + 82
----
-6150

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT MAX( 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2128
SELECT MAX ( 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT DISTINCT MIN( + + 59 ) * 36 AS col1
----
2124

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT MIN ( + + 59 ) * 36 AS col1
----
2124

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2130
SELECT + 67 + - - COUNT( * ) - 64 * - CASE - 46 WHEN + 99 * 96 + + 50 THEN - 60 WHEN + CAST( + 92 AS DECIMAL ) THEN 17 + - 79 * - - 88 WHEN 69 * 19 * + 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT + 67 + - - COUNT ( * ) - 64 * - CASE - 46 WHEN + 99 * 96 + + 50 THEN - 60 WHEN + CAST ( + 92 AS REAL ) THEN 17 + - 79 * - - 88 WHEN 69 * 19 * + 75 THEN NULL END
----
NULL

query I rowsort
SELECT + 84 * - 39
----
-3276

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT - SUM( - + 44 ) * - MIN( ALL 3 ) * + + 88 * - ( + 69 )
----
801504

skipif mysql # not compatible
query I rowsort label-2132
SELECT - SUM ( - + 44 ) * - MIN ( ALL 3 ) * + + 88 * - ( + 69 )
----
801504

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

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

query I rowsort
SELECT ALL + 71 * 76 + - - 99
----
5495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2135
SELECT ALL 31 * 78 + COUNT( * ) + CAST( NULL AS SIGNED ) * 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL 31 * 78 + COUNT ( * ) + CAST ( NULL AS INTEGER ) * 8 AS col2
----
NULL

query I rowsort
SELECT - 30 * 8 col0
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT ALL - 55 * - 58 + 6 * ( + NULLIF ( - + 38, + 46 * 47 ) ) + CAST( NULL AS SIGNED ) * + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL - 55 * - 58 + 6 * ( + NULLIF ( - + 38, + 46 * 47 ) ) + CAST ( NULL AS INTEGER ) * + - 26
----
NULL

query II rowsort
SELECT + 18 + - 19 * - - ( + 39 ) AS col2, 64
----
-723
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT + COUNT( ALL 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2139
SELECT + COUNT ( ALL 67 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2140
SELECT ALL ( CAST( COUNT( * ) AS SIGNED ) ) * 15 + - 40 + 80 + + - 0 DIV - - 41
----
55

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL ( CAST ( COUNT ( * ) AS INTEGER ) ) * 15 + - 40 + 80 + + - 0 / - - 41
----
55

query II rowsort
SELECT ALL - 15 * - - 93 AS col0, 89
----
-1395
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2142
SELECT - + COUNT( * ) * COUNT( * ) AS col0, 79 + + ( NULLIF ( + 36, 77 * + + MAX( - + 8 ) + - 20 ) ) + + + 40 * - CAST( - + 62 AS SIGNED ) AS col1
----
-1
2595

skipif mysql # not compatible
query II rowsort label-2142
SELECT - + COUNT ( * ) * COUNT ( * ) AS col0, 79 + + ( NULLIF ( + 36, 77 * + + MAX ( - + 8 ) + - 20 ) ) + + + 40 * - CAST ( - + 62 AS INTEGER ) AS col1
----
-1
2595

query I rowsort
SELECT - - ( + 86 ) + 83
----
169

query I rowsort
SELECT + + 4 + - 13 AS col2
----
-9

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT + COUNT( * ) + - 77 col0
----
-76

skipif mysql # not compatible
query I rowsort label-2148
SELECT + COUNT ( * ) + - 77 col0
----
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-2149
SELECT - 83 DIV 53 AS col0, - 14 AS col2
----
-1
-14

skipif mysql # not compatible
query II rowsort label-2149
SELECT - 83 / 53 AS col0, - 14 AS col2
----
-1
-14

query I rowsort
SELECT ALL - 16 * 99 - - 92
----
-1492

query I rowsort
SELECT DISTINCT 45 * + 46 AS col0
----
2070

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT + + SUM( - 82 ) * + 99 * - + 87 AS col0
----
706266

skipif mysql # not compatible
query I rowsort label-2152
SELECT + + SUM ( - 82 ) * + 99 * - + 87 AS col0
----
706266

onlyif mysql # aggregate syntax: 
query II rowsort label-2153
SELECT MIN( + - 67 ) AS col0, - ( - COUNT( * ) ) + 63 col0
----
-67
64

skipif mysql # not compatible
query II rowsort label-2153
SELECT MIN ( + - 67 ) AS col0, - ( - COUNT ( * ) ) + 63 col0
----
-67
64

query I rowsort
SELECT + 84 + - - 80
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + 90 + + - 12 + 47 * - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-2155
SELECT + 90 + + - 12 + 47 * - COUNT ( * )
----
31

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT + 61 DIV + 78 * + - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT + 61 / + 78 * + - 89 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2158
SELECT ALL + COUNT( * ) DIV + COUNT( * ) + + 3 DIV - - 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + COUNT ( * ) / + COUNT ( * ) + + 3 / - - 65 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT ALL + 38 DIV - + ( + 65 ) + 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + 38 / - + ( + 65 ) + 68 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2160
SELECT CAST( - - 29 AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-2160
SELECT CAST ( - - 29 AS INTEGER ) AS col1
----
29

query I rowsort
SELECT + 54 + - 33
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT DISTINCT + 11 / + - 32 + + - 3 + NULLIF ( + CASE - ( + + ( - - 37 ) ) WHEN - + 56 THEN COUNT( + + 18 ) ELSE NULL END, 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT + 11 / + - 32 + + - 3 + NULLIF ( + CASE - ( + + ( - - 37 ) ) WHEN - + 56 THEN COUNT ( + + 18 ) ELSE NULL END, 73 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT DISTINCT + 44 DIV + 56 + - 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + 44 / + 56 + - 68 AS col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2164
SELECT DISTINCT 2 DIV + 17 * 81 + 99 + + ( - 54 ) + + 83 col0
----
128

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT 2 / + 17 * 81 + 99 + + ( - 54 ) + + 83 col0
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2165
SELECT DISTINCT ( 31 ) DIV + - COUNT( * ) * - + 96 DIV - - 89 DIV + + SUM( DISTINCT + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT ( 31 ) / + - COUNT ( * ) * - + 96 / - - 89 / + + SUM ( DISTINCT + 80 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2166
SELECT + SUM( - CAST( NULL AS SIGNED ) ) / 61 AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT + 26 DIV - 92 + 60
----
60

skipif mysql # not compatible
query I rowsort label-2167
SELECT + 26 / - 92 + 60
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT DISTINCT 6 * + COALESCE ( + + CASE 5 WHEN + 45 * 75 THEN NULL WHEN 53 THEN + 8 END, + 59, - SUM( 37 ), - 88 + + 66 ) AS col2, CASE - 35 WHEN - 25 THEN NULL ELSE - 76 END
----
354
-76

skipif mysql # not compatible
query II rowsort label-2168
SELECT DISTINCT 6 * + COALESCE ( + + CASE 5 WHEN + 45 * 75 THEN NULL WHEN 53 THEN + 8 END, + 59, - SUM ( 37 ), - 88 + + 66 ) AS col2, CASE - 35 WHEN - 25 THEN NULL ELSE - 76 END
----
354
-76

query I rowsort
SELECT ALL 65 * 23
----
1495

query I rowsort
SELECT ALL + NULLIF ( - - 11, + 60 )
----
11

query I rowsort
SELECT DISTINCT 70 * 69 AS col1
----
4830

query I rowsort
SELECT ALL 46 * + 55 AS col0
----
2530

query I rowsort
SELECT NULLIF ( + - 49, - 86 ) col0
----
-49

query I rowsort
SELECT + - COALESCE ( + 22, 47 + + 11 )
----
-22

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

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

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

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL + + COUNT ( * ) * + - 11 AS col0
----
-11

query I rowsort
SELECT - - 31 * + 74 AS col0
----
2294

query I rowsort
SELECT DISTINCT + 20 * - - 52 AS col1
----
1040

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

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

query I rowsort
SELECT - - 81 - + 52
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ALL + MAX( ALL 16 ) * + - 23
----
-368

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL + MAX ( ALL 16 ) * + - 23
----
-368

query I rowsort
SELECT 62 * + ( - ( + 0 ) )
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2184
SELECT COUNT( * ) * - - 37 DIV + 2
----
18

skipif mysql # not compatible
query I rowsort label-2184
SELECT COUNT ( * ) * - - 37 / + 2
----
18

query I rowsort
SELECT ALL 72 + - - ( - 10 )
----
62

query I rowsort
SELECT ALL 31 + + 33
----
64

query I rowsort
SELECT 44 * - - 6 AS col1
----
264

query I rowsort
SELECT 47 + + 84 AS col2
----
131

query I rowsort
SELECT - 35 * + 42 - - 42 - 42
----
-1470

onlyif mysql # aggregate syntax: 
query II rowsort label-2190
SELECT + 21, - COUNT( * ) * + + CASE 70 WHEN 61 * + - 58 / - ( + 83 ) * + 94 + + COALESCE ( + 22, - - ( + 43 ), + 54 ) THEN NULL WHEN - 80 * + 24 THEN COUNT( ALL 53 ) WHEN + 45 THEN 39 ELSE NULL END * + - 40 AS col2
----
21
NULL

skipif mysql # not compatible
query II rowsort label-2190
SELECT + 21, - COUNT ( * ) * + + CASE 70 WHEN 61 * + - 58 / - ( + 83 ) * + 94 + + COALESCE ( + 22, - - ( + 43 ), + 54 ) THEN NULL WHEN - 80 * + 24 THEN COUNT ( ALL 53 ) WHEN + 45 THEN 39 ELSE NULL END * + - 40 AS col2
----
21
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2191
SELECT COUNT( * ) * + + NULLIF ( 36, - - ( + 99 ) ) * 91 DIV + + 78 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2191
SELECT COUNT ( * ) * + + NULLIF ( 36, - - ( + 99 ) ) * 91 / + + 78 AS col1
----
42

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

skipif mysql # not compatible
query II rowsort label-2192
SELECT + 76 AS col0, COUNT ( * ) col1
----
76
1

query II rowsort
SELECT 50 AS col2, - 79 * - ( - + 23 ) + - - 15
----
50
-1802

query I rowsort
SELECT ( 47 ) * + - 27 AS col0
----
-1269

query II rowsort
SELECT 58, - 75 AS col2
----
58
-75

query I rowsort
SELECT DISTINCT + 25 - + 23
----
2

query I rowsort
SELECT ( - + 74 ) * - + 63
----
4662

query I rowsort
SELECT + 97 * + 47 * 48 * 95 - + + 94
----
20788946

query II rowsort
SELECT + 44 AS col0, 7
----
44
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2200
SELECT ALL 99 DIV - + MIN( + - 88 )
----
1

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL 99 / - + MIN ( + - 88 )
----
1

query I rowsort
SELECT 68 + + 81 AS col0
----
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2202
SELECT 28 DIV - - 82 * - NULLIF ( 19, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2202
SELECT 28 / - - 82 * - NULLIF ( 19, + COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT + 83 * + - CAST( 6 AS SIGNED ) + - - 46 AS col2
----
-452

skipif mysql # not compatible
query I rowsort label-2203
SELECT + 83 * + - CAST ( 6 AS INTEGER ) + - - 46 AS col2
----
-452

query II rowsort
SELECT ALL - 18 AS col2, 89 AS col0
----
-18
89

query I rowsort
SELECT ALL 60 * - + 77 * - 6 * - + 91 + - 24 + - 28 col2
----
-2522572

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT 77 + + SUM( - + 50 )
----
27

skipif mysql # not compatible
query I rowsort label-2206
SELECT 77 + + SUM ( - + 50 )
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT ( - + 57 ) DIV COALESCE ( + 62, - - 37 DIV - 23 + 41 + - 17 - 70 + - - ( + + COUNT( * ) ) * 94 * - 10 * - 65, - COUNT( + + 42 ), 96 )
----
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT ( - + 57 ) / COALESCE ( + 62, - - 37 / - 23 + 41 + - 17 - 70 + - - ( + + COUNT ( * ) ) * 94 * - 10 * - 65, - COUNT ( + + 42 ), 96 )
----
0

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

query II rowsort
SELECT ALL - + 82 col1, 64
----
-82
64

query II rowsort
SELECT 89, - 80 + - 41 AS col2
----
89
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT ALL COUNT( * ) * + + ( - 49 ) * - 78 AS col0
----
3822

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL COUNT ( * ) * + + ( - 49 ) * - 78 AS col0
----
3822

query I rowsort
SELECT + 65 + + 82 AS col1
----
147

query I rowsort
SELECT 77 * - - 54 AS col1
----
4158

query I rowsort
SELECT - ( + COALESCE ( + + 70, - 14 * + 38, - 53 * 79 ) ) + 25
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2215
SELECT ALL MIN( + NULLIF ( - + 47, 38 ) ) + COUNT( * ) - 65 + - CAST( ( - CAST( NULL AS DECIMAL ) ) AS SIGNED ) - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL MIN ( + NULLIF ( - + 47, 38 ) ) + COUNT ( * ) - 65 + - CAST ( ( - CAST ( NULL AS REAL ) ) AS INTEGER ) - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2216
SELECT ALL - COALESCE ( - ( - + 53 ), - + 3 DIV + COUNT( + 23 ) - COUNT( * ), 19 * - MIN( ALL + - 51 ) - - COUNT( * ) * - + COUNT( * ) ) + - 23 DIV - ( - - 57 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - COALESCE ( - ( - + 53 ), - + 3 / + COUNT ( + 23 ) - COUNT ( * ), 19 * - MIN ( ALL + - 51 ) - - COUNT ( * ) * - + COUNT ( * ) ) + - 23 / - ( - - 57 ) AS col2
----
-53

query I rowsort
SELECT ( ( 78 ) )
----
78

query I rowsort
SELECT - - ( 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-2219
SELECT DISTINCT + COUNT( * ) + - 7 * - ( - + 0 ), + 70 AS col0
----
1
70

skipif mysql # not compatible
query II rowsort label-2219
SELECT DISTINCT + COUNT ( * ) + - 7 * - ( - + 0 ), + 70 AS col0
----
1
70

query I rowsort
SELECT DISTINCT - + 87 + - 47 * - ( - 30 )
----
-1497

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT SUM( + - 50 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2221
SELECT SUM ( + - 50 ) AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT ALL CAST( 15 AS SIGNED ) * - ( - 44 ) * - COUNT( * ) + 23
----
-637

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL CAST ( 15 AS INTEGER ) * - ( - 44 ) * - COUNT ( * ) + 23
----
-637

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL + MIN( DISTINCT + - 81 ) + + 7 col2
----
-74

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + MIN ( DISTINCT + - 81 ) + + 7 col2
----
-74

query I rowsort
SELECT 27 * 40 AS col1
----
1080

onlyif mysql # DIV for integer division: 
query I rowsort label-2226
SELECT 34 + - 11 + - 10 DIV + 99
----
23

skipif mysql # not compatible
query I rowsort label-2226
SELECT 34 + - 11 + - 10 / + 99
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT 82 * - - NULLIF ( + 32, + ( - COUNT( * ) ) * AVG ( + 46 ) )
----
2624

skipif mysql # not compatible
query I rowsort label-2227
SELECT 82 * - - NULLIF ( + 32, + ( - COUNT ( * ) ) * AVG ( + 46 ) )
----
2624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2228
SELECT DISTINCT MAX( 74 ) AS col2, + SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
74
NULL

skipif mysql # not compatible
query II rowsort label-2228
SELECT DISTINCT MAX ( 74 ) AS col2, + SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
74
NULL

query I rowsort
SELECT ALL - 74 - 51 AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT - COALESCE ( - CASE + 23 WHEN + ( - + 75 ) * + + 59 THEN - MAX( DISTINCT + 78 ) + - 88 END, + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT - COALESCE ( - CASE + 23 WHEN + ( - + 75 ) * + + 59 THEN - MAX ( DISTINCT + 78 ) + - 88 END, + 33 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT ALL - 84 DIV - - 55 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL - 84 / - - 55 AS col0
----
-1

query I rowsort
SELECT DISTINCT - ( - 61 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * - + 8 * - 25 / + + 95 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2233
SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - + 8 * - 25 / + + 95 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2234
SELECT + 30 * - 9 + - 44 * - - 33 * + - 50 AS col2, - 69 + - - 66 + COUNT( * ) + - 32 * - 41 AS col2
----
72330
1310

skipif mysql # not compatible
query II rowsort label-2234
SELECT + 30 * - 9 + - 44 * - - 33 * + - 50 AS col2, - 69 + - - 66 + COUNT ( * ) + - 32 * - 41 AS col2
----
72330
1310

query I rowsort
SELECT 59 * - 6 AS col2
----
-354

query II rowsort
SELECT DISTINCT + 93 * + 36, + 11 AS col0
----
3348
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT SUM( ALL + 59 ) * - - 16 + - - 40 + + + 17
----
1001

skipif mysql # not compatible
query I rowsort label-2237
SELECT SUM ( ALL + 59 ) * - - 16 + - - 40 + + + 17
----
1001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT ALL COUNT( ALL 29 ) * + + 52 DIV COUNT( * ) + - + 47 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL COUNT ( ALL 29 ) * + + 52 / COUNT ( * ) + - + 47 AS col2
----
5

query I rowsort
SELECT ALL - NULLIF ( 51, - 30 ) col0
----
-51

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

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

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

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

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

query II rowsort
SELECT + 63 * + 30 AS col1, - 41 - + 86
----
1890
-127

query I rowsort
SELECT + - 61 col0
----
-61

query I rowsort
SELECT + - 79 - - 47
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-2246
SELECT ALL + COUNT( * ) + - + 1 * - 23 AS col2, 16
----
24
16

skipif mysql # not compatible
query II rowsort label-2246
SELECT ALL + COUNT ( * ) + - + 1 * - 23 AS col2, 16
----
24
16

query I rowsort
SELECT + - 4 - + 54
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) * 53 + 68
----
16

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) * 53 + 68
----
16

query I rowsort
SELECT - COALESCE ( + 45, + - 47, 32 + - 67 )
----
-45

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

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

query II rowsort
SELECT 2 AS col0, 71 + - 60
----
2
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT + MAX( DISTINCT - 77 ) + 13 + + 29
----
-35

skipif mysql # not compatible
query I rowsort label-2253
SELECT + MAX ( DISTINCT - 77 ) + 13 + + 29
----
-35

query I rowsort
SELECT DISTINCT - 97 * + 35
----
-3395

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

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

query I rowsort
SELECT ALL - 88 * - + 4
----
352

query I rowsort
SELECT + 48 * - + 56
----
-2688

query I rowsort
SELECT ALL + 25 - - - 65
----
-40

query I rowsort
SELECT ALL COALESCE ( + 98, + 73 * + 74 )
----
98

query I rowsort
SELECT - 18 * + 27
----
-486

query I rowsort
SELECT ALL - 80 * + - 47 * + + ( 47 ) AS col2
----
176720

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2263
SELECT - 70 DIV + COALESCE ( + - 51, 12 )
----
1

skipif mysql # not compatible
query I rowsort label-2263
SELECT - 70 / + COALESCE ( + - 51, 12 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT ALL + CAST( ( - + 23 ) AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL + CAST ( ( - + 23 ) AS INTEGER ) AS col1
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2265
SELECT ALL + 26 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL + 26 / + 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT - ( - 72 ) DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2266
SELECT - ( - 72 ) / + 94 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT DISTINCT + + 87 * + COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT + + 87 * + COUNT ( * ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ALL - + 13 * + 83 * - COUNT( * ) + + 82 + - 84 + + - 55 * - COALESCE ( + - 64, - - 98, + COUNT( * ) * - 78 * + CASE + - 48 WHEN 56 + + + 42 THEN - 29 END )
----
-2443

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL - + 13 * + 83 * - COUNT ( * ) + + 82 + - 84 + + - 55 * - COALESCE ( + - 64, - - 98, + COUNT ( * ) * - 78 * + CASE + - 48 WHEN 56 + + + 42 THEN - 29 END )
----
-2443

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL - 27 * + 36 * - COUNT( * ) + + + 11
----
983

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL - 27 * + 36 * - COUNT ( * ) + + + 11
----
983

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

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

query I rowsort
SELECT ALL - 19 * + - 79 + 4 AS col2
----
1505

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

query I rowsort
SELECT ALL - 97 * - CASE - - 96 WHEN + 39 - + 95 THEN - 33 / 81 / - + 14 END * + 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2275
SELECT ALL + 5 * + - 87 * + 12 + + CAST( COUNT( * ) AS SIGNED ) / - + ( + 52 ) * + ( COALESCE ( - + COUNT( * ), - 44 * 83, + 21 / - CAST( NULL AS SIGNED ) * + 82 + - 20 + - MIN( + 54 ) + - 70 * + - 98 + 86 + + 4 ) ) * - - 55 + - + 36 + 70 * - + 93 * 0 * - - CASE - COUNT( DISTINCT + + 1 ) WHEN 65 - 52 THEN 21 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + 5 * + - 87 * + 12 + + CAST ( COUNT ( * ) AS INTEGER ) / - + ( + 52 ) * + ( COALESCE ( - + COUNT ( * ), - 44 * 83, + 21 / - CAST ( NULL AS INTEGER ) * + 82 + - 20 + - MIN ( + 54 ) + - 70 * + - 98 + 86 + + 4 ) ) * - - 55 + - + 36 + 70 * - + 93 * 0 * - - CASE - COUNT ( DISTINCT + + 1 ) WHEN 65 - 52 THEN 21 END col1
----
NULL

query I rowsort
SELECT + 83 - + 69 + + 48 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT - - 58 + - + SUM( ALL - 62 ) - 59
----
61

skipif mysql # not compatible
query I rowsort label-2277
SELECT - - 58 + - + SUM ( ALL - 62 ) - 59
----
61

query II rowsort
SELECT NULLIF ( - 65, + 42 + + 21 + + + ( + 20 ) + 63 * + 70 ) AS col1, 1 + - 27 + - 87 AS col0
----
-65
-113

query I rowsort
SELECT ALL - + 16 * - 93
----
1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2280
SELECT ALL - SUM( - 0 ) * + COALESCE ( + CAST( NULL AS SIGNED ), 67 * MIN( + - 87 ) * - - 44 ) + + 23 - + 83 DIV 50 col0
----
22

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL - SUM ( - 0 ) * + COALESCE ( + CAST ( NULL AS INTEGER ), 67 * MIN ( + - 87 ) * - - 44 ) + + 23 - + 83 / 50 col0
----
22

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

query I rowsort
SELECT 92 * + 38 + - 29 * - 14 col0
----
3902

query I rowsort
SELECT + 96 + - ( + + 71 ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT - NULLIF ( + 54, - - 72 + - + NULLIF ( + - 76, + ( + COUNT( * ) ) ) * + 0 + + 43 + + 96 * - 38 / COUNT( * ) * - 77 * - 83 + + COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-2284
SELECT - NULLIF ( + 54, - - 72 + - + NULLIF ( + - 76, + ( + COUNT ( * ) ) ) * + 0 + + 43 + + 96 * - 38 / COUNT ( * ) * - 77 * - 83 + + COUNT ( * ) )
----
-54

query II rowsort
SELECT + 60 + - 54 col2, + 35
----
6
35

query I rowsort
SELECT - COALESCE ( - + 3, 56 ) AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT DISTINCT 84 * 21 DIV - + 74 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT 84 * 21 / - + 74 AS col2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT ALL 42 * - 7 / CAST( NULL AS SIGNED ) * + 67 * - 78 * + - CASE 72 WHEN + + 94 * - + 7 THEN 64 ELSE NULL END / 2 * 77 * - - COUNT( * ) + 53 + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL 42 * - 7 / CAST ( NULL AS INTEGER ) * + 67 * - 78 * + - CASE 72 WHEN + + 94 * - + 7 THEN 64 ELSE NULL END / 2 * 77 * - - COUNT ( * ) + 53 + - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT ALL ( + 12 ) * - NULLIF ( + 91, ( - - 58 ) / + COUNT( * ) * COUNT( 26 ) + NULLIF ( + 7, + 8 + + 6 ) * - - 45 + + - 41 + + + 56 ) AS col0
----
-1092

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL ( + 12 ) * - NULLIF ( + 91, ( - - 58 ) / + COUNT ( * ) * COUNT ( 26 ) + NULLIF ( + 7, + 8 + + 6 ) * - - 45 + + - 41 + + + 56 ) AS col0
----
-1092

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2290
SELECT + 24 * - MAX( + 0 ) DIV - 8 * 23 * 82 + + 13 - + + ( 92 ) AS col1, + 29 + + 0 * + - MAX( ALL - 60 ) + + 69
----
-79
98

skipif mysql # not compatible
query II rowsort label-2290
SELECT + 24 * - MAX ( + 0 ) / - 8 * 23 * 82 + + 13 - + + ( 92 ) AS col1, + 29 + + 0 * + - MAX ( ALL - 60 ) + + 69
----
-79
98

onlyif mysql # aggregate syntax: 
query II rowsort label-2291
SELECT + ( 93 ) + + + SUM( DISTINCT - 61 ), 25 AS col2
----
32
25

skipif mysql # not compatible
query II rowsort label-2291
SELECT + ( 93 ) + + + SUM ( DISTINCT - 61 ), 25 AS col2
----
32
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT + 88 * + - SUM( 35 )
----
-3080

skipif mysql # not compatible
query I rowsort label-2292
SELECT + 88 * + - SUM ( 35 )
----
-3080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2293
SELECT + MAX( DISTINCT - - 21 ) * - CAST( NULL AS SIGNED ) * - COUNT( * ) * 0 / + COALESCE ( - 52, - COUNT( * ), + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2293
SELECT + MAX ( DISTINCT - - 21 ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 0 / + COALESCE ( - 52, - COUNT ( * ), + 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + 6 + COUNT( ( + 61 ) ) + ( - 84 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-2294
SELECT + 6 + COUNT ( ( + 61 ) ) + ( - 84 ) AS col0
----
-77

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

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

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

query I rowsort
SELECT + ( - 49 ) + + - 77
----
-126

query I rowsort
SELECT - 88 + + 21
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2299
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN + 60 THEN + - 41 * + - 8 END, 94 * COUNT( * ) AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-2299
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN + 60 THEN + - 41 * + - 8 END, 94 * COUNT ( * ) AS col2
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT + MAX( 52 ) * - 79 AS col0
----
-4108

skipif mysql # not compatible
query I rowsort label-2300
SELECT + MAX ( 52 ) * - 79 AS col0
----
-4108

query I rowsort
SELECT DISTINCT 99 + + - 66 AS col1
----
33

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

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + COUNT ( * ) + + 89 / + + 25
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT + 89 * ( + 19 ) + + - COUNT( * ) + - COUNT( * ) AS col1
----
1689

skipif mysql # not compatible
query I rowsort label-2303
SELECT + 89 * ( + 19 ) + + - COUNT ( * ) + - COUNT ( * ) AS col1
----
1689

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

skipif mysql # not compatible
query I rowsort label-2304
SELECT + + MIN ( - 3 )
----
-3

query I rowsort
SELECT ALL + - 93 + NULLIF ( - - 50, + 91 ) - - - 67 + + + 49 * + ( + 75 ) + - 48 AS col0
----
3517

query I rowsort
SELECT + 21 * + + 68
----
1428

onlyif mysql # DIV for integer division: 
query I rowsort label-2307
SELECT DISTINCT + ( 16 ) DIV - - 88 + + 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT + ( 16 ) / - - 88 + + 37 AS col1
----
37

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

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + - 29
----
NULL

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

query I rowsort
SELECT ALL + + 17 * + 65 * - 91
----
-100555

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

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

query I rowsort
SELECT ALL + 16 - + + 5 - + - 3 AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2313
SELECT - 28 - + 51 + - ( + 96 ) DIV - - COUNT( * )
----
-175

skipif mysql # not compatible
query I rowsort label-2313
SELECT - 28 - + 51 + - ( + 96 ) / - - COUNT ( * )
----
-175

query I rowsort
SELECT ALL + 88 * 58 * + 78 * 40 col1
----
15924480

query I rowsort
SELECT 53 * + - 70 AS col2
----
-3710

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL + 97 * COALESCE ( - - MAX( - 70 ), 2 ) AS col2
----
-6790

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL + 97 * COALESCE ( - - MAX ( - 70 ), 2 ) AS col2
----
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT 82 - + - 65 - 86 + - ( - 83 ) + - 22 + - 63 * + COUNT( * ) * - 78 AS col1
----
5036

skipif mysql # not compatible
query I rowsort label-2317
SELECT 82 - + - 65 - 86 + - ( - 83 ) + - 22 + - 63 * + COUNT ( * ) * - 78 AS col1
----
5036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2318
SELECT SUM( DISTINCT - 12 ) - CAST( + + 29 AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-2318
SELECT SUM ( DISTINCT - 12 ) - CAST ( + + 29 AS INTEGER ) AS col0
----
-41

query II rowsort
SELECT ALL 0 + COALESCE ( + 61, - 78, + 52 ), 31 col0
----
61
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2320
SELECT 72 + - 83 + - - COUNT( + + 74 ) * + 4 DIV - 97 + - + 86 - 80 * - COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2320
SELECT 72 + - 83 + - - COUNT ( + + 74 ) * + 4 / - 97 + - + 86 - 80 * - COUNT ( * ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT MIN( ALL ( - - 64 ) ) + 88 + + - 44 AS col2
----
108

skipif mysql # not compatible
query I rowsort label-2321
SELECT MIN ( ALL ( - - 64 ) ) + 88 + + - 44 AS col2
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2322
SELECT ALL CASE 15 WHEN - 78 THEN - - 23 WHEN + ( - ( - 97 ) ) * - MAX( - 72 ) * CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL CASE 15 WHEN - 78 THEN - - 23 WHEN + ( - ( - 97 ) ) * - MAX ( - 72 ) * CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * 21 AS col2
----
NULL

query I rowsort
SELECT ALL 29 * - - ( - + 7 )
----
-203

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2325
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 84 AS col1
----
NULL

query I rowsort
SELECT - 16 * - 6 + - + 37
----
59

query I rowsort
SELECT 8 - 59
----
-51

query I rowsort
SELECT - 60 * + - NULLIF ( 76, - + 6 ) AS col0
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL 99 + + 2 + 34 * + - NULLIF ( + - 74, - + COUNT( 52 ) ) - + MAX( DISTINCT + 16 ) AS col2
----
2601

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL 99 + + 2 + 34 * + - NULLIF ( + - 74, - + COUNT ( 52 ) ) - + MAX ( DISTINCT + 16 ) AS col2
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT MIN( 91 ) * + 91 + + - 60
----
8221

skipif mysql # not compatible
query I rowsort label-2330
SELECT MIN ( 91 ) * + 91 + + - 60
----
8221

query I rowsort
SELECT ALL 40 * + 21 - - 97 AS col2
----
937

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT + COUNT( - ( + 50 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2332
SELECT + COUNT ( - ( + 50 ) ) AS col1
----
1

query I rowsort
SELECT ALL + + 65 * + 76 AS col0
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT - 57 * + 21 * + 24 + - - CASE - + COUNT( DISTINCT - - 13 ) WHEN + - 91 THEN NULL WHEN 67 + COUNT( + 49 ) THEN 69 WHEN - ( - - 78 ) THEN + COUNT( * ) END - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT - 57 * + 21 * + 24 + - - CASE - + COUNT ( DISTINCT - - 13 ) WHEN + - 91 THEN NULL WHEN 67 + COUNT ( + 49 ) THEN 69 WHEN - ( - - 78 ) THEN + COUNT ( * ) END - 86 AS col1
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2337
SELECT DISTINCT - 54 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT - 54 * - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL - 5, - 16 AS col2
----
-5
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT + COUNT( DISTINCT - ( NULLIF ( - + 39, + 59 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2339
SELECT + COUNT ( DISTINCT - ( NULLIF ( - + 39, + 59 ) ) ) AS col0
----
1

query I rowsort
SELECT 7 * - + 74 col1
----
-518

query I rowsort
SELECT DISTINCT + ( + 0 ) * 18 AS col0
----
0

query I rowsort
SELECT ALL - ( - 43 ) AS col2
----
43

query I rowsort
SELECT 63 * 30
----
1890

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2344
SELECT 66 * 95 AS col1, + CASE ( - 82 ) WHEN + CAST( + - 79 AS SIGNED ) + 62 + 8 + + 33 * 11 THEN 67 END AS col1
----
6270
NULL

skipif mysql # not compatible
query II rowsort label-2344
SELECT 66 * 95 AS col1, + CASE ( - 82 ) WHEN + CAST ( + - 79 AS INTEGER ) + 62 + 8 + + 33 * 11 THEN 67 END AS col1
----
6270
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2345
SELECT ALL - 29 DIV - + 38 * 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL - 29 / - + 38 * 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2346
SELECT 72 + + COUNT( * ) AS col0, 3 AS col2
----
73
3

skipif mysql # not compatible
query II rowsort label-2346
SELECT 72 + + COUNT ( * ) AS col0, 3 AS col2
----
73
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL + 57 * - MAX( DISTINCT - 86 ) AS col1
----
4902

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL + 57 * - MAX ( DISTINCT - 86 ) AS col1
----
4902

query I rowsort
SELECT DISTINCT + 84 + 21 AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2349
SELECT ALL - 21 + + + COALESCE ( 29, - 48 DIV + - 62 DIV - CAST( NULL AS SIGNED ) ) + + - 0 * - MIN( DISTINCT - 44 ) DIV - 82
----
8

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL - 21 + + + COALESCE ( 29, - 48 / + - 62 / - CAST ( NULL AS INTEGER ) ) + + - 0 * - MIN ( DISTINCT - 44 ) / - 82
----
8

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

query II rowsort
SELECT - 25 AS col1, ( 81 ) AS col1
----
-25
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2352
SELECT 17 + + 43 AS col0, + SUM( ALL 78 ) * 70 + 87 + + 33
----
60
5580

skipif mysql # not compatible
query II rowsort label-2352
SELECT 17 + + 43 AS col0, + SUM ( ALL 78 ) * 70 + 87 + + 33
----
60
5580

query I rowsort
SELECT 87 + 79 * - + 99
----
-7734

query I rowsort
SELECT ALL - 21 + - - 49 AS col0
----
28

query I rowsort
SELECT ALL + 67 + - - 35 AS col2
----
102

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

skipif mysql # not compatible
query II rowsort label-2356
SELECT 28 AS col2, COUNT ( * ) AS col0
----
28
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2357
SELECT ALL + COUNT( * ) + - 70 + + + 26 DIV - 31 AS col1, + 57 AS col1
----
-69
57

skipif mysql # not compatible
query II rowsort label-2357
SELECT ALL + COUNT ( * ) + - 70 + + + 26 / - 31 AS col1, + 57 AS col1
----
-69
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT ALL 5 + MAX( DISTINCT - 51 ) * 42
----
-2137

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL 5 + MAX ( DISTINCT - 51 ) * 42
----
-2137

query II rowsort
SELECT + 5 + 49, 12 AS col1
----
54
12

query I rowsort
SELECT ALL + 22 + - 72 + + 69
----
19

query II rowsort
SELECT 23, + 86 + - 53 AS col2
----
23
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT - + 95 + + + COUNT( * ) - + - 73 * + - 98 * - 92 + + - 63 AS col0
----
658011

skipif mysql # not compatible
query I rowsort label-2363
SELECT - + 95 + + + COUNT ( * ) - + - 73 * + - 98 * - 92 + + - 63 AS col0
----
658011

query I rowsort
SELECT + - 32 * - 77 - 16 AS col1
----
2448

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

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

query I rowsort
SELECT + - 15 + + 48
----
33

query I rowsort
SELECT DISTINCT 6 - - + 5 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT ALL + CAST( + 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + CAST ( + 36 AS INTEGER )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT DISTINCT - MIN( DISTINCT + 4 ) - - - 67 * + 24 + - 45 AS col0
----
-1657

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT - MIN ( DISTINCT + 4 ) - - - 67 * + 24 + - 45 AS col0
----
-1657

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2371
SELECT + 17 / - CAST( NULL AS SIGNED ) * - 13 / - - NULLIF ( + 27, - - ( + 64 ) ) + + MIN( DISTINCT + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT + 17 / - CAST ( NULL AS INTEGER ) * - 13 / - - NULLIF ( + 27, - - ( + 64 ) ) + + MIN ( DISTINCT + 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT DISTINCT - - COUNT( * ) * + 47 * + 42
----
1974

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT - - COUNT ( * ) * + 47 * + 42
----
1974

query I rowsort
SELECT - 60 * + 21 AS col0
----
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2374
SELECT - CAST( - - 64 AS SIGNED ) * + + 61 * + + COUNT( * ) * + + 82 AS col0
----
-320128

skipif mysql # not compatible
query I rowsort label-2374
SELECT - CAST ( - - 64 AS INTEGER ) * + + 61 * + + COUNT ( * ) * + + 82 AS col0
----
-320128

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT CASE - 16 WHEN 69 / + ( - ( + CASE - 65 WHEN - + 96 THEN + 79 END ) ) THEN - 60 WHEN - ( + + 70 ) * - 54 - 86 + - - 37 + + + 69 THEN COUNT( * ) + 97 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2375
SELECT CASE - 16 WHEN 69 / + ( - ( + CASE - 65 WHEN - + 96 THEN + 79 END ) ) THEN - 60 WHEN - ( + + 70 ) * - 54 - 86 + - - 37 + + + 69 THEN COUNT ( * ) + 97 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2376
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0, 37 + - - 46 - 39 + - 48 DIV - 61 * - 2 AS col1
----
NULL
44

skipif mysql # not compatible
query II rowsort label-2376
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, 37 + - - 46 - 39 + - 48 / - 61 * - 2 AS col1
----
NULL
44

query I rowsort
SELECT CASE WHEN NOT ( NOT NULL IS NOT NULL ) THEN + 60 ELSE - 65 * + + 7 + - 60 END
----
-515

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + + 39 + + + 70 * - MAX( DISTINCT + 29 ) AS col1
----
-1991

skipif mysql # not compatible
query I rowsort label-2378
SELECT + + 39 + + + 70 * - MAX ( DISTINCT + 29 ) AS col1
----
-1991

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2379
SELECT + 14 AS col0, CAST( NULL AS SIGNED ) * - - 48 + 44
----
14
NULL

skipif mysql # not compatible
query II rowsort label-2379
SELECT + 14 AS col0, CAST ( NULL AS INTEGER ) * - - 48 + 44
----
14
NULL

query I rowsort
SELECT + - 69 * - + 80
----
5520

query II rowsort
SELECT ALL + + 79 AS col2, + 89
----
79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT + COALESCE ( 27, COUNT( * ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2382
SELECT + COALESCE ( 27, COUNT ( * ) ) AS col1
----
27

query I rowsort
SELECT ALL - 25 * + - 29 * + + 60 AS col1
----
43500

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT + 19 * + COUNT( * ) * + 55 * + - MIN( DISTINCT + 37 ) * - 9 AS col2
----
347985

skipif mysql # not compatible
query I rowsort label-2384
SELECT + 19 * + COUNT ( * ) * + 55 * + - MIN ( DISTINCT + 37 ) * - 9 AS col2
----
347985

query I rowsort
SELECT DISTINCT 79 * 8 + - 35
----
597

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

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

query I rowsort
SELECT + 65 - - 49 * 30 AS col2
----
1535

onlyif mysql # DIV for integer division: 
query I rowsort label-2388
SELECT + 83 DIV - 83
----
-1

skipif mysql # not compatible
query I rowsort label-2388
SELECT + 83 / - 83
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2389
SELECT + NULLIF ( - 39, + 44 ) + + ( COALESCE ( - + 97, - ( + 96 ) * - COUNT( * ) DIV - 93 + 43 ) )
----
-136

skipif mysql # not compatible
query I rowsort label-2389
SELECT + NULLIF ( - 39, + 44 ) + + ( COALESCE ( - + 97, - ( + 96 ) * - COUNT ( * ) / - 93 + 43 ) )
----
-136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - MIN( - 29 ) + + 43
----
72

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - MIN ( - 29 ) + + 43
----
72

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

query II rowsort
SELECT - 88 - 50, 74 * - - 63 AS col0
----
-138
4662

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT ALL - 90 DIV + ( + 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL - 90 / + ( + 88 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT ALL - MIN( 71 ) - + NULLIF ( + 39, - - 63 ) * - MAX( ALL - ( - 88 ) ) col2
----
3361

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL - MIN ( 71 ) - + NULLIF ( + 39, - - 63 ) * - MAX ( ALL - ( - 88 ) ) col2
----
3361

query I rowsort
SELECT - 52 + 80
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL - COUNT( DISTINCT - - 19 ) * - + 72
----
72

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL - COUNT ( DISTINCT - - 19 ) * - + 72
----
72

query I rowsort
SELECT ALL + - 19 - 7 + 14 AS col0
----
-12

query I rowsort
SELECT - COALESCE ( - 65, + 72 * - - 34 + + - 90 - 87 * + + 49 * + 28, 5 ) AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2400
SELECT - 91 * 16 * - + 1, + CAST( NULL AS SIGNED ) AS col1
----
1456
NULL

skipif mysql # not compatible
query II rowsort label-2400
SELECT - 91 * 16 * - + 1, + CAST ( NULL AS INTEGER ) AS col1
----
1456
NULL

query I rowsort
SELECT ALL - 20 * 44 + - 83 AS col1
----
-963

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT - - 23 + 56 + + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-2402
SELECT - - 23 + 56 + + COUNT ( * ) AS col2
----
80

query I rowsort
SELECT ALL + 4 * 30 * - + 73 AS col2
----
-8760

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2405
SELECT DISTINCT - COUNT( DISTINCT 40 ) DIV - - 74 * - MIN( ALL - 74 )
----
0

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT - COUNT ( DISTINCT 40 ) / - - 74 * - MIN ( ALL - 74 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT ALL 18 DIV - + 75 + - - 58
----
58

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL 18 / - + 75 + - - 58
----
58

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

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT + + COUNT ( ALL 90 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2408
SELECT DISTINCT CAST( + MIN( DISTINCT + 38 ) AS SIGNED ) DIV - + ( + 72 ) + MAX( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT CAST ( + MIN ( DISTINCT + 38 ) AS INTEGER ) / - + ( + 72 ) + MAX ( - 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2409
SELECT CAST( NULL AS SIGNED ), + 88 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-2409
SELECT CAST ( NULL AS INTEGER ), + 88 AS col0
----
NULL
88

query I rowsort
SELECT - 72 * - 53
----
3816

query I rowsort
SELECT + 78 + - - COALESCE ( + 11, - 34 ) AS col0
----
89

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

query I rowsort
SELECT + 72 * - 27
----
-1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2414
SELECT ALL 77 DIV - SUM( - 9 )
----
8

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL 77 / - SUM ( - 9 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2415
SELECT 66 * - 72 DIV + NULLIF ( + COUNT( * ), 36 + - - COUNT( * ) + + - 48 + SUM( - 77 ) * + - 82 ) - + - COUNT( * ) AS col2, 86 AS col0
----
-4751
86

skipif mysql # not compatible
query II rowsort label-2415
SELECT 66 * - 72 / + NULLIF ( + COUNT ( * ), 36 + - - COUNT ( * ) + + - 48 + SUM ( - 77 ) * + - 82 ) - + - COUNT ( * ) AS col2, 86 AS col0
----
-4751
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2416
SELECT + ( COUNT( ALL - 22 ) ) col2, + CAST( 21 AS SIGNED ) + + - 78, + 46 AS col2
----
1
-57
46

skipif mysql # not compatible
query III rowsort label-2416
SELECT + ( COUNT ( ALL - 22 ) ) col2, + CAST ( 21 AS INTEGER ) + + - 78, + 46 AS col2
----
1
-57
46

query II rowsort
SELECT 67 AS col0, 96 * + + 8 * + 0
----
67
0

query I rowsort
SELECT ALL 6 + 25 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT 7 + - - MIN( DISTINCT + + 48 )
----
55

skipif mysql # not compatible
query I rowsort label-2419
SELECT 7 + - - MIN ( DISTINCT + + 48 )
----
55

query I rowsort
SELECT ALL 23 * + 8
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT DISTINCT 35 - - COUNT( DISTINCT + 29 )
----
36

skipif mysql # not compatible
query I rowsort label-2421
SELECT DISTINCT 35 - - COUNT ( DISTINCT + 29 )
----
36

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

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

query I rowsort
SELECT 97 * + + 15 AS col0
----
1455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2424
SELECT COUNT( * ) * - - 97 * + ( + COUNT( * ) ) * - CASE + MAX( ALL + + 35 ) WHEN + 50 + 25 THEN + 58 * - + 21 + - 71 + - 24 * - + CAST( - 90 AS SIGNED ) * 53 + 40 * - COUNT( * ) * ( - - 69 ) + - 75 + - + 32 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT COUNT ( * ) * - - 97 * + ( + COUNT ( * ) ) * - CASE + MAX ( ALL + + 35 ) WHEN + 50 + 25 THEN + 58 * - + 21 + - 71 + - 24 * - + CAST ( - 90 AS INTEGER ) * 53 + 40 * - COUNT ( * ) * ( - - 69 ) + - 75 + - + 32 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT COUNT( * ) * - CASE - + 66 WHEN + 85 THEN - COUNT( + 10 ) WHEN + 51 THEN - 62 * 97 * + 7 - - 18 ELSE - + 45 END
----
45

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT COUNT ( * ) * - CASE - + 66 WHEN + 85 THEN - COUNT ( + 10 ) WHEN + 51 THEN - 62 * 97 * + 7 - - 18 ELSE - + 45 END
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT COUNT( * ) * + 46 * + 75 * - + 84 AS col0
----
-289800

skipif mysql # not compatible
query I rowsort label-2427
SELECT COUNT ( * ) * + 46 * + 75 * - + 84 AS col0
----
-289800

onlyif mysql # DIV for integer division: 
query II rowsort label-2428
SELECT ALL + 39 AS col1, 89 DIV + 60 + + 82
----
39
83

skipif mysql # not compatible
query II rowsort label-2428
SELECT ALL + 39 AS col1, 89 / + 60 + + 82
----
39
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT ALL - COALESCE ( + - 73, + 59 + + + 91, - CAST( NULL AS SIGNED ) ) - + 27 * + + ( - + 79 ) + + + 63
----
2269

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL - COALESCE ( + - 73, + 59 + + + 91, - CAST ( NULL AS INTEGER ) ) - + 27 * + + ( - + 79 ) + + + 63
----
2269

query I rowsort
SELECT + 71 + + - 43 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL + 43 * - SUM( ALL 92 ) + - 42 AS col2
----
-3998

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + 43 * - SUM ( ALL 92 ) + - 42 AS col2
----
-3998

query I rowsort
SELECT + 85 + + 49 col1
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-2433
SELECT ALL - 32 DIV 37
----
0

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - 32 / 37
----
0

query II rowsort
SELECT ( - 56 ) + + 80 col1, - 49 * + NULLIF ( 75, 93 )
----
24
-3675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2435
SELECT 23 DIV 30 * COUNT( * ) - 9 col2
----
-9

skipif mysql # not compatible
query I rowsort label-2435
SELECT 23 / 30 * COUNT ( * ) - 9 col2
----
-9

query I rowsort
SELECT ALL - + 79 * + 48 * 11 AS col0
----
-41712

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT DISTINCT - 75 + - + 92 + + COUNT( * ) AS col1, 62 AS col1
----
-166
62

skipif mysql # not compatible
query II rowsort label-2439
SELECT DISTINCT - 75 + - + 92 + + COUNT ( * ) AS col1, 62 AS col1
----
-166
62

query I rowsort
SELECT ALL + - 66 + 3 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT - + CASE MAX( - 75 ) WHEN + 63 * - 47 + - 77 + - ( - 69 ) * 99 / - 11 THEN NULL ELSE + + ( - - 66 ) END
----
-66

skipif mysql # not compatible
query I rowsort label-2441
SELECT - + CASE MAX ( - 75 ) WHEN + 63 * - 47 + - 77 + - ( - 69 ) * 99 / - 11 THEN NULL ELSE + + ( - - 66 ) END
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT + 1 + - ( - NULLIF ( 11, - MAX( ALL - 50 ) ) ) - MIN( + 58 ) * - 48 AS col2
----
2796

skipif mysql # not compatible
query I rowsort label-2442
SELECT + 1 + - ( - NULLIF ( 11, - MAX ( ALL - 50 ) ) ) - MIN ( + 58 ) * - 48 AS col2
----
2796

query I rowsort
SELECT ( - 73 ) + + 8
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL + - CASE COUNT( * ) WHEN + 47 THEN NULL ELSE 29 END + - 14 + + 39
----
-4

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL + - CASE COUNT ( * ) WHEN + 47 THEN NULL ELSE 29 END + - 14 + + 39
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2445
SELECT + 0 AS col1, - CASE + 44 WHEN + 89 * + 8 * - ( - 77 ) THEN NULL WHEN COUNT( * ) - + COUNT( * ) * - 35 / - 21 + - 71 * + CAST( MIN( ALL + 50 ) AS SIGNED ) * - 2 * + 36 THEN + COALESCE ( - 40, 10 ) ELSE NULL END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2445
SELECT + 0 AS col1, - CASE + 44 WHEN + 89 * + 8 * - ( - 77 ) THEN NULL WHEN COUNT ( * ) - + COUNT ( * ) * - 35 / - 21 + - 71 * + CAST ( MIN ( ALL + 50 ) AS INTEGER ) * - 2 * + 36 THEN + COALESCE ( - 40, 10 ) ELSE NULL END AS col1
----
0
NULL

query I rowsort
SELECT + 28 * + + 79 * + 82 AS col2
----
181384

query I rowsort
SELECT - 67 * + - 61
----
4087

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2449
SELECT ALL + 7 DIV 74 AS col0, 98
----
0
98

skipif mysql # not compatible
query II rowsort label-2449
SELECT ALL + 7 / 74 AS col0, 98
----
0
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT 81 DIV 41 * + - 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2450
SELECT 81 / 41 * + - 31 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-2451
SELECT COUNT( * ) + + 14 AS col0, ( 52 ) * 63
----
15
3276

skipif mysql # not compatible
query II rowsort label-2451
SELECT COUNT ( * ) + + 14 AS col0, ( 52 ) * 63
----
15
3276

query I rowsort
SELECT ALL 30 + + 40 AS col1
----
70

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

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

query I rowsort
SELECT ALL + 8 * + 85 col2
----
680

onlyif mysql # aggregate syntax: 
query II rowsort label-2455
SELECT DISTINCT + 90 * - 65 AS col2, COUNT( * )
----
-5850
1

skipif mysql # not compatible
query II rowsort label-2455
SELECT DISTINCT + 90 * - 65 AS col2, COUNT ( * )
----
-5850
1

query I rowsort
SELECT ALL - COALESCE ( + 76, 32 ) - + 60 + - 68
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT COALESCE ( - - 18, - + CASE 6 WHEN - ( COUNT( * ) ) THEN NULL ELSE + + 68 + + 25 END ) * - 58
----
-1044

skipif mysql # not compatible
query I rowsort label-2457
SELECT COALESCE ( - - 18, - + CASE 6 WHEN - ( COUNT ( * ) ) THEN NULL ELSE + + 68 + + 25 END ) * - 58
----
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT 6 - + MIN( DISTINCT - 15 ) * + - 67 AS col0
----
-999

skipif mysql # not compatible
query I rowsort label-2458
SELECT 6 - + MIN ( DISTINCT - 15 ) * + - 67 AS col0
----
-999

onlyif mysql # DIV for integer division: 
query I rowsort label-2459
SELECT DISTINCT ( + 81 ) DIV - 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT ( + 81 ) / - 65 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT COUNT( * ) + NULLIF ( - 9, + - 27 / - - 89 * 49 )
----
-8

skipif mysql # not compatible
query I rowsort label-2460
SELECT COUNT ( * ) + NULLIF ( - 9, + - 27 / - - 89 * 49 )
----
-8

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

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

query I rowsort
SELECT 32 * 8 * 94 AS col1
----
24064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2463
SELECT CAST( + 68 AS SIGNED ) - CAST( 0 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-2463
SELECT CAST ( + 68 AS INTEGER ) - CAST ( 0 AS INTEGER )
----
68

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT + COUNT( ALL 89 ) * 91
----
91

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT + COUNT ( ALL 89 ) * 91
----
91

query I rowsort
SELECT - + NULLIF ( 96, + 71 )
----
-96

query I rowsort
SELECT 38 + + 98
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-2469
SELECT + 19 * COUNT( * ) AS col2, 31 AS col0
----
19
31

skipif mysql # not compatible
query II rowsort label-2469
SELECT + 19 * COUNT ( * ) AS col2, 31 AS col0
----
19
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2470
SELECT DISTINCT COUNT( * ) * 1 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT COUNT ( * ) * 1 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2471
SELECT ALL - 46 + + - 86, + COUNT( * ) AS col0
----
-132
1

skipif mysql # not compatible
query II rowsort label-2471
SELECT ALL - 46 + + - 86, + COUNT ( * ) AS col0
----
-132
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2472
SELECT - COALESCE ( + 56, 36 * + 18 + 54 - + 8 DIV - NULLIF ( 34, - + COUNT( * ) ) ) AS col2, ( 46 ) * 87 - + 52 + 35 * 34 DIV - COUNT( * )
----
-56
2760

skipif mysql # not compatible
query II rowsort label-2472
SELECT - COALESCE ( + 56, 36 * + 18 + 54 - + 8 / - NULLIF ( 34, - + COUNT ( * ) ) ) AS col2, ( 46 ) * 87 - + 52 + 35 * 34 / - COUNT ( * )
----
-56
2760

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL + 77 + - SUM( ALL + 28 )
----
49

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + 77 + - SUM ( ALL + 28 )
----
49

query I rowsort
SELECT ALL - 96 + - 50 AS col2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-2475
SELECT ALL + ( + 24 ) DIV + - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL + ( + 24 ) / + - 80 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2477
SELECT DISTINCT - CASE + 84 WHEN - 0 THEN NULL ELSE - - 6 END * - + 97 * - NULLIF ( - - NULLIF ( - 76, - COUNT( * ) ), ( - + CAST( 75 AS SIGNED ) ) * + - 98 * 63 ) col0
----
44232

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT - CASE + 84 WHEN - 0 THEN NULL ELSE - - 6 END * - + 97 * - NULLIF ( - - NULLIF ( - 76, - COUNT ( * ) ), ( - + CAST ( 75 AS INTEGER ) ) * + - 98 * 63 ) col0
----
44232

query I rowsort
SELECT 17 + + - 41
----
-24

query I rowsort
SELECT CASE - - ( - - 48 ) WHEN ( + 87 ) THEN - + 72 WHEN 62 * - + 78 - 88 THEN - 60 * - 49 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT 10 * + COUNT( * ) * - 91
----
-910

skipif mysql # not compatible
query I rowsort label-2480
SELECT 10 * + COUNT ( * ) * - 91
----
-910

query I rowsort
SELECT ALL + 75 * - 45 AS col0
----
-3375

query I rowsort
SELECT DISTINCT 48 * - ( 98 ) - - + 77
----
-4627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT - COUNT( * ) DIV - 35 * - 73 + - 65 * + - 70 * + + 69 + - + 90 - + + 46 AS col1
----
313814

skipif mysql # not compatible
query I rowsort label-2483
SELECT - COUNT ( * ) / - 35 * - 73 + - 65 * + - 70 * + + 69 + - + 90 - + + 46 AS col1
----
313814

query I rowsort
SELECT - 6 * + ( - - 58 ) AS col1
----
-348

query I rowsort
SELECT - 65 + 19 + - 50
----
-96

query I rowsort
SELECT - 76 + + + 41
----
-35

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

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

query I rowsort
SELECT - 29 + ( - - 10 ) - - 65 * ( - 38 ) * 14 * + 30 * + 0 AS col0
----
-19

query I rowsort
SELECT - 5 * 77 AS col1
----
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT - 23 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-2490
SELECT - 23 / + 86
----
0

query I rowsort
SELECT ALL 34 * + 21 AS col1
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT + MIN( ALL - 53 ) * + + 92 AS col2
----
-4876

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + MIN ( ALL - 53 ) * + + 92 AS col2
----
-4876

query I rowsort
SELECT ALL 97 * + 65 + + 77 * 25 AS col1
----
8230

query I rowsort
SELECT ALL + + 0 * - - 18 * + 9 AS col0
----
0

query I rowsort
SELECT DISTINCT + + 37 * + 64 + + NULLIF ( 28, - 45 + 52 )
----
2396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT + CAST( - CASE 22 WHEN - ( + 63 ) / + CASE - 44 WHEN SUM( ALL - 89 ) THEN NULL WHEN - 64 + 12 THEN - COUNT( * ) - - 73 * - - 76 ELSE NULL END + 68 + + CASE + 66 WHEN - + 70 THEN - 0 ELSE NULL END THEN NULL WHEN + ( + 65 ) THEN - ( - COUNT( * ) ) WHEN + + ( 31 ) THEN 51 ELSE NULL END AS SIGNED ) + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT + CAST ( - CASE 22 WHEN - ( + 63 ) / + CASE - 44 WHEN SUM ( ALL - 89 ) THEN NULL WHEN - 64 + 12 THEN - COUNT ( * ) - - 73 * - - 76 ELSE NULL END + 68 + + CASE + 66 WHEN - + 70 THEN - 0 ELSE NULL END THEN NULL WHEN + ( + 65 ) THEN - ( - COUNT ( * ) ) WHEN + + ( 31 ) THEN 51 ELSE NULL END AS INTEGER ) + 41 AS col1
----
NULL

query I rowsort
SELECT - 24 * - + 89 col1
----
2136

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - - 61 + - 94 + COUNT( * ) * + 18 * - 45
----
-843

skipif mysql # not compatible
query I rowsort label-2498
SELECT - - 61 + - 94 + COUNT ( * ) * + 18 * - 45
----
-843

query I rowsort
SELECT DISTINCT 73 + + - 61 + + 84 * + 97 AS col0
----
8160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT ALL + CAST( NULL AS SIGNED ) + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL + CAST ( NULL AS INTEGER ) + 75
----
NULL

query I rowsort
SELECT ALL 0 + + ( + 23 ) + ( - 44 ) AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2502
SELECT DISTINCT - - COUNT( ALL - + 71 ) + + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT - - COUNT ( ALL - + 71 ) + + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT - CASE 6 WHEN + 21 THEN - 16 ELSE NULL END * 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT - - NULLIF ( + + 89, - SUM( ALL + 14 ) * + 15 + + 52 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-2504
SELECT - - NULLIF ( + + 89, - SUM ( ALL + 14 ) * + 15 + + 52 ) AS col0
----
89

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

skipif mysql # not compatible
query I rowsort label-2505
SELECT - MIN ( - ( + 84 ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL - MAX( DISTINCT + 68 ) * - 59 AS col2
----
4012

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - MAX ( DISTINCT + 68 ) * - 59 AS col2
----
4012

query I rowsort
SELECT + - 54 + CASE + 35 WHEN - NULLIF ( + + 96, - + 83 + + 65 ) THEN + 76 WHEN - 27 / - 32 + + 21 + - 23 * + 79 + + COALESCE ( 11, + 95 * + AVG ( + + 66 ) ) * - + 58 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 2 - - + 89 AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2509
SELECT DISTINCT 47, + NULLIF ( - + 74, + 72 + COUNT( * ) / - COUNT( * ) * + + COALESCE ( - 57, 76 ) ) * - 10 * - + 59 AS col1
----
47
-43660

skipif mysql # not compatible
query II rowsort label-2509
SELECT DISTINCT 47, + NULLIF ( - + 74, + 72 + COUNT ( * ) / - COUNT ( * ) * + + COALESCE ( - 57, 76 ) ) * - 10 * - + 59 AS col1
----
47
-43660

query I rowsort
SELECT ALL 25 * 37 AS col1
----
925

query I rowsort
SELECT + 37 * - 5
----
-185

query II rowsort
SELECT 78 AS col2, + 66 * COALESCE ( + 73, + 41 + 29 ) AS col2
----
78
4818

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

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

query II rowsort
SELECT 83 AS col2, 34
----
83
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT + CASE WHEN NOT + COALESCE ( COUNT( * ), + 67 ) IS NULL THEN NULL ELSE + + MAX( - 46 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT + CASE WHEN NOT + COALESCE ( COUNT ( * ), + 67 ) IS NULL THEN NULL ELSE + + MAX ( - 46 ) END AS col2
----
NULL

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

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

query I rowsort
SELECT - 41 * + 56 * - 95
----
218120

query I rowsort
SELECT ALL 47 * + 87
----
4089

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2519
SELECT + CAST( + 54 AS SIGNED ), 7 AS col1
----
54
7

skipif mysql # not compatible
query II rowsort label-2519
SELECT + CAST ( + 54 AS INTEGER ), 7 AS col1
----
54
7

query I rowsort
SELECT + 47 * - 61
----
-2867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2521
SELECT ( + CASE + NULLIF ( - CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) / + 41 + - + 35 * 8 THEN + 73 - - 3 ELSE NULL END ), - 59 * + - ( + 83 ) AS col1
----
NULL
4897

skipif mysql # not compatible
query II rowsort label-2521
SELECT ( + CASE + NULLIF ( - CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) / + 41 + - + 35 * 8 THEN + 73 - - 3 ELSE NULL END ), - 59 * + - ( + 83 ) AS col1
----
NULL
4897

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2522
SELECT + CAST( NULL AS SIGNED ) AS col2, - 52
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-2522
SELECT + CAST ( NULL AS INTEGER ) AS col2, - 52
----
NULL
-52

query I rowsort
SELECT DISTINCT + 49 * - ( + 14 ) + 99
----
-587

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2524
SELECT - CAST( + 59 AS SIGNED ) * + 93 - + - 76 + 34 * 24 DIV + 22 AS col0
----
-5374

skipif mysql # not compatible
query I rowsort label-2524
SELECT - CAST ( + 59 AS INTEGER ) * + 93 - + - 76 + 34 * 24 / + 22 AS col0
----
-5374

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT - - 6 + - 74 * - COUNT( * ) * - COALESCE ( 98, ( + 2 ) ) AS col0
----
-7246

skipif mysql # not compatible
query I rowsort label-2526
SELECT - - 6 + - 74 * - COUNT ( * ) * - COALESCE ( 98, ( + 2 ) ) AS col0
----
-7246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2527
SELECT 11 AS col2, CASE - 56 WHEN - + 3 THEN + - COUNT( * ) * + 18 + 32 * + - CAST( + 17 AS SIGNED ) WHEN + + 90 * - - 13 THEN - + MIN( ALL - + 36 ) ELSE 61 END * 34 * - - 96 - - 44 AS col2
----
11
199148

skipif mysql # not compatible
query II rowsort label-2527
SELECT 11 AS col2, CASE - 56 WHEN - + 3 THEN + - COUNT ( * ) * + 18 + 32 * + - CAST ( + 17 AS INTEGER ) WHEN + + 90 * - - 13 THEN - + MIN ( ALL - + 36 ) ELSE 61 END * 34 * - - 96 - - 44 AS col2
----
11
199148

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL - 21 * - COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL - 21 * - COUNT ( * ) AS col0
----
21

query II rowsort
SELECT ALL 83 AS col1, 25 - 27
----
83
-2

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

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL ( NULLIF ( 68, - 96 ) ) * 16 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT - 58 - 5 * - + COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-2531
SELECT - 58 - 5 * - + COUNT ( * ) AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2532
SELECT ALL - 60 * - - 6 AS col2, COALESCE ( + 99, + 58 - - + 59 DIV + 73 + COUNT( * ) + 33 DIV - 2 ) * + 76 - + 81 AS col1
----
-360
7443

skipif mysql # not compatible
query II rowsort label-2532
SELECT ALL - 60 * - - 6 AS col2, COALESCE ( + 99, + 58 - - + 59 / + 73 + COUNT ( * ) + 33 / - 2 ) * + 76 - + 81 AS col1
----
-360
7443

onlyif mysql # DIV for integer division: 
query II rowsort label-2533
SELECT - 45 AS col1, - 63 DIV + 41
----
-45
-1

skipif mysql # not compatible
query II rowsort label-2533
SELECT - 45 AS col1, - 63 / + 41
----
-45
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL + SUM( + + 26 ) * + 57
----
1482

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL + SUM ( + + 26 ) * + 57
----
1482

query I rowsort
SELECT - - 63 - + 63 * - 29
----
1890

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT + - ( - CAST( NULL AS SIGNED ) ) * - + MAX( DISTINCT - NULLIF ( + 46, 87 ) ) * 59 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT + - ( - CAST ( NULL AS INTEGER ) ) * - + MAX ( DISTINCT - NULLIF ( + 46, 87 ) ) * 59 * + 93
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2538
SELECT - - 55, 32 * - COUNT( * ) + 5 AS col2
----
55
-27

skipif mysql # not compatible
query II rowsort label-2538
SELECT - - 55, 32 * - COUNT ( * ) + 5 AS col2
----
55
-27

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2540
SELECT - AVG ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT - AVG ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT 47 * - SUM( - ( + ( - 8 ) ) ) + - - COUNT( * )
----
-375

skipif mysql # not compatible
query I rowsort label-2541
SELECT 47 * - SUM ( - ( + ( - 8 ) ) ) + - - COUNT ( * )
----
-375

onlyif mysql # DIV for integer division: 
query II rowsort label-2542
SELECT ALL 80 AS col2, + 16 DIV + 42 AS col0
----
80
0

skipif mysql # not compatible
query II rowsort label-2542
SELECT ALL 80 AS col2, + 16 / + 42 AS col0
----
80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT 93 * + 57 * - COUNT( * ) AS col2
----
-5301

skipif mysql # not compatible
query I rowsort label-2543
SELECT 93 * + 57 * - COUNT ( * ) AS col2
----
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT ALL + 3 - 15 * - 43 * 11 - + 43 + 2 * - 77 + COUNT( * ) AS col2
----
6902

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL + 3 - 15 * - 43 * 11 - + 43 + 2 * - 77 + COUNT ( * ) AS col2
----
6902

query I rowsort
SELECT 90 * - 52
----
-4680

query II rowsort
SELECT 97 + + 47, + 83 AS col2
----
144
83

query I rowsort
SELECT 32 * - + 97 AS col2
----
-3104

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT COUNT( * ) + 60 * COALESCE ( - 15, 92 * + - 77 ) AS col1
----
-899

skipif mysql # not compatible
query I rowsort label-2548
SELECT COUNT ( * ) + 60 * COALESCE ( - 15, 92 * + - 77 ) AS col1
----
-899

query I rowsort
SELECT - 14 * - 61 - - 48 AS col0
----
902

query I rowsort
SELECT 45 * 39
----
1755

query II rowsort
SELECT ALL + 13 + + 53 AS col2, - 10 AS col0
----
66
-10

query I rowsort
SELECT DISTINCT 70 * + 16 * 77
----
86240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2553
SELECT 35 DIV + - 44 AS col2, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-2553
SELECT 35 / + - 44 AS col2, COUNT ( * ) AS col2
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2554
SELECT ALL 94 + + 48 + + - COUNT( * ), CASE + COUNT( * ) WHEN - ( 8 ) * - NULLIF ( - - ( 50 ), 93 ) THEN 79 + 8 ELSE NULL END AS col1
----
141
NULL

skipif mysql # not compatible
query II rowsort label-2554
SELECT ALL 94 + + 48 + + - COUNT ( * ), CASE + COUNT ( * ) WHEN - ( 8 ) * - NULLIF ( - - ( 50 ), 93 ) THEN 79 + 8 ELSE NULL END AS col1
----
141
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT MIN( DISTINCT + 0 ) + + - 58 + + ( 47 ) + - 57 col1
----
-68

skipif mysql # not compatible
query I rowsort label-2555
SELECT MIN ( DISTINCT + 0 ) + + - 58 + + ( 47 ) + - 57 col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2556
SELECT ALL AVG ( ALL - + CAST( NULL AS SIGNED ) ) + - - 79 + + 69 * + CAST( + 25 AS SIGNED ) + - 22 - + 87 * - - COUNT( * ) * - + 78 * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL AVG ( ALL - + CAST ( NULL AS INTEGER ) ) + - - 79 + + 69 * + CAST ( + 25 AS INTEGER ) + - 22 - + 87 * - - COUNT ( * ) * - + 78 * - 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT DISTINCT + 83 + + COUNT( * ) AS col2, + 62
----
84
62

skipif mysql # not compatible
query II rowsort label-2557
SELECT DISTINCT + 83 + + COUNT ( * ) AS col2, + 62
----
84
62

query I rowsort
SELECT DISTINCT + - 7 + ( + + 5 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT + COUNT( * ) * COUNT( * ) + - 29 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-2559
SELECT + COUNT ( * ) * COUNT ( * ) + - 29 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT ALL - + COALESCE ( MIN( ALL 73 ), COALESCE ( + CASE + - 78 WHEN - 68 + - 88 / 8 * - + AVG ( 37 ) * + - 33 - + 1 + + - 89 THEN NULL WHEN - NULLIF ( - 95, ( - - 87 ) ) THEN + ( 59 ) WHEN - CAST( NULL AS SIGNED ) + + 85 THEN MIN( DISTINCT - 69 ) * 61 END, - 46 * - - 78 ) - 63, + - 97 - 23 * + - MIN( 1 ) - + + 76 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - + COALESCE ( MIN ( ALL 73 ), COALESCE ( + CASE + - 78 WHEN - 68 + - 88 / 8 * - + AVG ( 37 ) * + - 33 - + 1 + + - 89 THEN NULL WHEN - NULLIF ( - 95, ( - - 87 ) ) THEN + ( 59 ) WHEN - CAST ( NULL AS INTEGER ) + + 85 THEN MIN ( DISTINCT - 69 ) * 61 END, - 46 * - - 78 ) - 63, + - 97 - 23 * + - MIN ( 1 ) - + + 76 ) AS col2
----
-73

query I rowsort
SELECT DISTINCT ( + 93 ) * + 82
----
7626

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT COUNT( * ) * - - NULLIF ( 30, + - 44 ) + - - CAST( - 50 AS SIGNED ) * + 48 * + 19 AS col2
----
-45570

skipif mysql # not compatible
query I rowsort label-2562
SELECT COUNT ( * ) * - - NULLIF ( 30, + - 44 ) + - - CAST ( - 50 AS INTEGER ) * + 48 * + 19 AS col2
----
-45570

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT 23 + NULLIF ( + - 73, + COUNT( * ) / 7 * - 60 )
----
-50

skipif mysql # not compatible
query I rowsort label-2565
SELECT 23 + NULLIF ( + - 73, + COUNT ( * ) / 7 * - 60 )
----
-50

query I rowsort
SELECT 82 * + + 76
----
6232

query I rowsort
SELECT DISTINCT - ( - - ( + 82 ) ) * + 1
----
-82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT ALL - - CAST( - 67 AS SIGNED ) * - + 38
----
2546

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - - CAST ( - 67 AS INTEGER ) * - + 38
----
2546

query I rowsort
SELECT 92 + + 27 * 23
----
713

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

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

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

skipif mysql # not compatible
query I rowsort label-2572
SELECT - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT COUNT( * ) + + NULLIF ( + - 68, - 14 ) * - - 65 AS col0
----
-4419

skipif mysql # not compatible
query I rowsort label-2573
SELECT COUNT ( * ) + + NULLIF ( + - 68, - 14 ) * - - 65 AS col0
----
-4419

query I rowsort
SELECT 26 + + + 68 * + - 94 * - 63
----
402722

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT DISTINCT - SUM( + 88 ) * 45 + + 32 - - 10 + + + 41
----
-3877

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT - SUM ( + 88 ) * 45 + + 32 - - 10 + + + 41
----
-3877

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT ALL + 45 + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL + 45 + COUNT ( * )
----
46

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

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

query I rowsort
SELECT ALL 18 + 53 AS col0
----
71

query II rowsort
SELECT 46 AS col1, 13
----
46
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2580
SELECT ALL - 80 AS col2, + 51 * - + 90 * - + COUNT( * ) + - 29 + 16
----
-80
4577

skipif mysql # not compatible
query II rowsort label-2580
SELECT ALL - 80 AS col2, + 51 * - + 90 * - + COUNT ( * ) + - 29 + 16
----
-80
4577

query I rowsort
SELECT 15 * - 24 * - 70
----
25200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT 51 * + ( - CAST( 84 AS SIGNED ) )
----
-4284

skipif mysql # not compatible
query I rowsort label-2582
SELECT 51 * + ( - CAST ( 84 AS INTEGER ) )
----
-4284

query II rowsort
SELECT + 83 AS col2, 50 AS col1
----
83
50

query I rowsort
SELECT ALL + 77 * 28 + + 59
----
2215

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT 31 - + COUNT( - 27 ) + + 82 * 32 * - + 33 * - 44
----
3810078

skipif mysql # not compatible
query I rowsort label-2585
SELECT 31 - + COUNT ( - 27 ) + + 82 * 32 * - + 33 * - 44
----
3810078

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT MAX( ALL - - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-2586
SELECT MAX ( ALL - - 5 )
----
5

query I rowsort
SELECT ALL 52 * + 7
----
364

query I rowsort
SELECT ALL - 19 * - 10 + - 62 + + 33 col0
----
161

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT ALL + + CAST( + - 29 AS SIGNED ) * + + 67 AS col2
----
-1943

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + + CAST ( + - 29 AS INTEGER ) * + + 67 AS col2
----
-1943

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT 61 - 8 - 76 + MAX( DISTINCT 66 ) * + 15 AS col1
----
967

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT 61 - 8 - 76 + MAX ( DISTINCT 66 ) * + 15 AS col1
----
967

query I rowsort
SELECT 15 * - + 24
----
-360

query I rowsort
SELECT 59 * - 44
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT - SUM( 65 ) + + 1
----
-64

skipif mysql # not compatible
query I rowsort label-2594
SELECT - SUM ( 65 ) + + 1
----
-64

query II rowsort
SELECT + - 5 AS col2, 15 col0
----
-5
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT + + CASE + ( + + MIN( 4 ) ) WHEN + 93 * - 1 * NULLIF ( + COUNT( * ), - 80 - 5 + - 95 / - - COUNT( ALL + ( + + 33 ) ) ) + 47 THEN 88 WHEN - - AVG ( DISTINCT - 14 ) + + - 57 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT + + CASE + ( + + MIN ( 4 ) ) WHEN + 93 * - 1 * NULLIF ( + COUNT ( * ), - 80 - 5 + - 95 / - - COUNT ( ALL + ( + + 33 ) ) ) + 47 THEN 88 WHEN - - AVG ( DISTINCT - 14 ) + + - 57 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2597
SELECT ALL - CASE - - 35 WHEN 20 * - + 40 THEN NULL WHEN + 70 + + 88 THEN NULL ELSE + ( 42 ) DIV + 9 END * - COUNT( - 72 ) DIV - 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - CASE - - 35 WHEN 20 * - + 40 THEN NULL WHEN + 70 + + 88 THEN NULL ELSE + ( 42 ) / + 9 END * - COUNT ( - 72 ) / - 6 AS col0
----
0

query I rowsort
SELECT + - 72 * 44 col1
----
-3168

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT ALL - ( - 55 ) DIV - 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL - ( - 55 ) / - 92 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT ALL - CASE - COUNT( * ) WHEN - 92 THEN + - 64 END * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL - CASE - COUNT ( * ) WHEN - 92 THEN + - 64 END * - 88
----
NULL

query II rowsort
SELECT - 64 AS col0, CASE 83 WHEN + - 25 THEN 45 + + 4 ELSE NULL END AS col0
----
-64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT + + NULLIF ( - 67, - MAX( 50 ) ) + - - 84 + - ( - + 15 )
----
32

skipif mysql # not compatible
query I rowsort label-2602
SELECT + + NULLIF ( - 67, - MAX ( 50 ) ) + - - 84 + - ( - + 15 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT + 96 * 78 DIV - - 78 col1
----
96

skipif mysql # not compatible
query I rowsort label-2603
SELECT + 96 * 78 / - - 78 col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2604
SELECT ALL 35 * SUM( 89 ) AS col2, 85 AS col0
----
3115
85

skipif mysql # not compatible
query II rowsort label-2604
SELECT ALL 35 * SUM ( 89 ) AS col2, 85 AS col0
----
3115
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2605
SELECT - 6 DIV + - ( + + 6 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2605
SELECT - 6 / + - ( + + 6 ) col1
----
1

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

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

query I rowsort
SELECT - 24 - - 73
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2608
SELECT ALL 88 + + 39 DIV 31 + + 71 * - COUNT( * ) - + + 68
----
-50

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL 88 + + 39 / 31 + + 71 * - COUNT ( * ) - + + 68
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT - 0 - 77 + - 17 * + + 69 * - COUNT( * )
----
1096

skipif mysql # not compatible
query I rowsort label-2609
SELECT - 0 - 77 + - 17 * + + 69 * - COUNT ( * )
----
1096

query I rowsort
SELECT + 70 + + 77 AS col0
----
147

query I rowsort
SELECT + 88 + 74 * + + 50 * + + ( 55 ) + + + 81
----
203669

query I rowsort
SELECT - 64 + 89
----
25

query I rowsort
SELECT DISTINCT NULLIF ( + - 88, + - 91 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT - COUNT( * ) + + + 33 + 34 - - 83, + 41 AS col2
----
149
41

skipif mysql # not compatible
query II rowsort label-2614
SELECT - COUNT ( * ) + + + 33 + 34 - - 83, + 41 AS col2
----
149
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT - 16 + - + 6 + + COUNT( * ) + + 64 * + ( - 6 ) col2
----
-405

skipif mysql # not compatible
query I rowsort label-2615
SELECT - 16 + - + 6 + + COUNT ( * ) + + 64 * + ( - 6 ) col2
----
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT + 68 * + ( - - 70 ) * + 56 * + - 36 * 6 + + - 47 + - 33 - - 72 - - 0 + - COUNT( * )
----
-57576969

skipif mysql # not compatible
query I rowsort label-2616
SELECT + 68 * + ( - - 70 ) * + 56 * + - 36 * 6 + + - 47 + - 33 - - 72 - - 0 + - COUNT ( * )
----
-57576969

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL 92 * + 90 - - - 0 - - + 70 - 95 / - - CAST( NULL AS SIGNED ) / - ( + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL 92 * + 90 - - - 0 - - + 70 - 95 / - - CAST ( NULL AS INTEGER ) / - ( + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT + 57 * - 88 + 22 * - COUNT( * ) * + 54 * + - 96 * + + 53 * - 26 + + 45 * - COALESCE ( COUNT( * ), - MIN( ALL - 73 ) ) + - 7 AS col1, + 78 * + 17 + - + 92 AS col0
----
-157163212
1234

skipif mysql # not compatible
query II rowsort label-2618
SELECT + 57 * - 88 + 22 * - COUNT ( * ) * + 54 * + - 96 * + + 53 * - 26 + + 45 * - COALESCE ( COUNT ( * ), - MIN ( ALL - 73 ) ) + - 7 AS col1, + 78 * + 17 + - + 92 AS col0
----
-157163212
1234

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + 70 * 8 + + COUNT( * ) + + 22 * + - 18 + - 30
----
135

skipif mysql # not compatible
query I rowsort label-2619
SELECT + 70 * 8 + + COUNT ( * ) + + 22 * + - 18 + - 30
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - COUNT( * ) + - - 12 * + 67
----
803

skipif mysql # not compatible
query I rowsort label-2620
SELECT - COUNT ( * ) + - - 12 * + 67
----
803

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + COUNT( * ) + + 49 + + 92 col2
----
142

skipif mysql # not compatible
query I rowsort label-2621
SELECT + COUNT ( * ) + + 49 + + 92 col2
----
142

query I rowsort
SELECT - 77 * + 62 + + 98
----
-4676

query I rowsort
SELECT ALL + 81 * + ( + + 63 )
----
5103

query I rowsort
SELECT - 82 * 98 + - 1 + 97 AS col0
----
-7940

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2626
SELECT ALL + COALESCE ( MAX( ALL - + 60 ), - 71 * + - 20 + 23 DIV 66 ) * - + ( - 55 ) + + COUNT( * ) + - 53
----
-3352

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL + COALESCE ( MAX ( ALL - + 60 ), - 71 * + - 20 + 23 / 66 ) * - + ( - 55 ) + + COUNT ( * ) + - 53
----
-3352

query I rowsort
SELECT - - 26 * + 50 AS col1
----
1300

query I rowsort
SELECT COALESCE ( - 25, 29 ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT DISTINCT + 88 * + 6 * + + CAST( + 89 AS SIGNED ) + + 66
----
47058

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT + 88 * + 6 * + + CAST ( + 89 AS INTEGER ) + + 66
----
47058

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2630
SELECT - 80 DIV + - ( NULLIF ( + - 18, - - 68 * + + AVG ( DISTINCT ( - - 87 ) ) + - MAX( - + 6 ) - 9 + ( - + 39 ) DIV + 74 * + 35 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2630
SELECT - 80 / + - ( NULLIF ( + - 18, - - 68 * + + AVG ( DISTINCT ( - - 87 ) ) + - MAX ( - + 6 ) - 9 + ( - + 39 ) / + 74 * + 35 ) )
----
-4

query I rowsort
SELECT - - 74 + 66 * 40
----
2714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2632
SELECT ALL - 27 * + SUM( 31 ) * + 72 + COUNT( * ) * + 49 + ( - 78 ) + - CAST( NULL AS SIGNED ) * 95 / 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - 27 * + SUM ( 31 ) * + 72 + COUNT ( * ) * + 49 + ( - 78 ) + - CAST ( NULL AS INTEGER ) * 95 / 41 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2633
SELECT + 54 + - CAST( NULL AS SIGNED ) - - 10 * - 46 / + - 91 * + 71 AS col0, + 59 col0
----
NULL
59

skipif mysql # not compatible
query II rowsort label-2633
SELECT + 54 + - CAST ( NULL AS INTEGER ) - - 10 * - 46 / + - 91 * + 71 AS col0, + 59 col0
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT + MIN( ALL - - 62 ) - 67 + - 46 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-2634
SELECT + MIN ( ALL - - 62 ) - 67 + - 46 AS col2
----
-51

query I rowsort
SELECT + 30 * ( + 79 ) AS col2
----
2370

query II rowsort
SELECT DISTINCT 53 AS col1, 50
----
53
50

query I rowsort
SELECT - NULLIF ( 54, 23 + + 8 ) AS col1
----
-54

query I rowsort
SELECT + 76 + - 5 + - 13 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2639
SELECT - NULLIF ( CAST( NULL AS DECIMAL ), 44 * 64 * - 33 + - + 28 * + + MIN( + 69 ) * + + 83 + 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT - NULLIF ( CAST ( NULL AS REAL ), 44 * 64 * - 33 + - + 28 * + + MIN ( + 69 ) * + + 83 + 12 )
----
NULL

query I rowsort
SELECT + 64 * + 25 AS col0
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT - CASE - 61 WHEN 30 * - COUNT( * ) * + 14 THEN NULL ELSE + 97 - + - 44 END + + 59 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-2641
SELECT - CASE - 61 WHEN 30 * - COUNT ( * ) * + 14 THEN NULL ELSE + 97 - + - 44 END + + 59 AS col0
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL + 83 - + - COUNT( ALL NULLIF ( 96, 96 * + ( - 47 ) ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL + 83 - + - COUNT ( ALL NULLIF ( 96, 96 * + ( - 47 ) ) ) AS col2
----
84

query II rowsort
SELECT - 38 AS col0, 67 col1
----
-38
67

query I rowsort
SELECT DISTINCT - 65 * 83
----
-5395

query I rowsort
SELECT + 33 * 68 AS col2
----
2244

query I rowsort
SELECT - 39 * + 22
----
-858

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT 66 - + ( SUM( DISTINCT 92 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-2648
SELECT 66 - + ( SUM ( DISTINCT 92 ) )
----
-26

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

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

query I rowsort
SELECT DISTINCT 91 * + 49 AS col0
----
4459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT 85 * CAST( + 13 AS SIGNED ) col1
----
1105

skipif mysql # not compatible
query I rowsort label-2651
SELECT 85 * CAST ( + 13 AS INTEGER ) col1
----
1105

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT ALL - 21 DIV ( - NULLIF ( ( 89 ), 9 * 69 + + 53 * 89 ) * 6 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL - 21 / ( - NULLIF ( ( 89 ), 9 * 69 + + 53 * 89 ) * 6 ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT 91 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2653
SELECT 91 / 92
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2655
SELECT DISTINCT - 30 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - 30 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT DISTINCT - NULLIF ( - 69, COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - NULLIF ( - 69, COUNT ( * ) )
----
69

query I rowsort
SELECT ALL - ( 66 ) AS col2
----
-66

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2659
SELECT 0 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT 0 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 31 + + 81 * - 18 AS col1
----
-1427

query I rowsort
SELECT 10 + + 70 AS col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT ALL + 58 + + 16 DIV 61 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + 58 + + 16 / 61 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL 41 + NULLIF ( MAX( 95 ), - 51 + 35 ) * 34 AS col0
----
3271

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL 41 + NULLIF ( MAX ( 95 ), - 51 + 35 ) * 34 AS col0
----
3271

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT DISTINCT 94 DIV + 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT 94 / + 65 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL 29 - + CASE COUNT( * ) WHEN - 11 THEN NULL ELSE 53 END AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL 29 - + CASE COUNT ( * ) WHEN - 11 THEN NULL ELSE 53 END AS col2
----
-24

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT 69 DIV + 57 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2667
SELECT 69 / + 57 AS col1
----
1

query I rowsort
SELECT DISTINCT 34 * 16
----
544

query I rowsort
SELECT ALL 93 - 35 * 49
----
-1622

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2670
SELECT CASE + 47 WHEN - 69 * - 8 THEN NULL ELSE 60 * CAST( NULL AS DECIMAL ) + 20 * - 40 END + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT CASE + 47 WHEN - 69 * - 8 THEN NULL ELSE 60 * CAST ( NULL AS REAL ) + 20 * - 40 END + - 0
----
NULL

query I rowsort
SELECT - 46 + - 53 * + 19
----
-1053

query I rowsort
SELECT + 20 * - 32 AS col1
----
-640

query I rowsort
SELECT 13 + 7 * 65
----
468

query I rowsort
SELECT ALL COALESCE ( 0, 99 * - 69, 63 ) * 1 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT DISTINCT - CAST( 54 AS SIGNED ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - CAST ( 54 AS INTEGER ) AS col2
----
-54

query I rowsort
SELECT - 73 + 3 col1
----
-70

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

query I rowsort
SELECT DISTINCT - + 44 * - 12 AS col2
----
528

query I rowsort
SELECT - 86 * 18 AS col1
----
-1548

query I rowsort
SELECT - 10 * + ( 98 ) + 63
----
-917

query I rowsort
SELECT ALL - 99 * + 38
----
-3762

query I rowsort
SELECT ALL + 40 + - 47
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT - - 62 DIV + COUNT( * ) + ( 51 ) * 25 AS col1
----
1337

skipif mysql # not compatible
query I rowsort label-2683
SELECT - - 62 / + COUNT ( * ) + ( 51 ) * 25 AS col1
----
1337

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

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

query I rowsort
SELECT - + 62 * 74 + 97
----
-4491

query I rowsort
SELECT - 89 * - 27 AS col2
----
2403

query I rowsort
SELECT ALL 59 + + 26
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT - + MAX( ALL 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT - + MAX ( ALL 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL + CASE - 61 WHEN + 31 + - ( + COUNT( * ) - NULLIF ( 71 + 81, 7 * - COUNT( * ) - - 16 ) ) * 15 THEN + 92 * + NULLIF ( + 27 * 68, + 56 / ( 57 ) ) WHEN - 89 THEN NULL END + NULLIF ( + COUNT( * ) - - 44, + 92 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL + CASE - 61 WHEN + 31 + - ( + COUNT ( * ) - NULLIF ( 71 + 81, 7 * - COUNT ( * ) - - 16 ) ) * 15 THEN + 92 * + NULLIF ( + 27 * 68, + 56 / ( 57 ) ) WHEN - 89 THEN NULL END + NULLIF ( + COUNT ( * ) - - 44, + 92 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL + - 39 + - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + - 39 + - COUNT ( * ) AS col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2691
SELECT DISTINCT - 55 DIV + NULLIF ( - ( COUNT( * ) ), COALESCE ( - CASE CASE + 40 WHEN - CASE - 27 WHEN 87 * 0 + - 6 THEN NULL WHEN + COUNT( * ) * 3 THEN NULL WHEN - 18 + 96 * 18 THEN 78 END DIV + 5 THEN 45 DIV - 96 END WHEN 29 * 75 + + 74 THEN NULL WHEN MIN( DISTINCT + 22 ) THEN NULL ELSE - 27 DIV + 67 + 8 END, - COUNT( * ) ) DIV + 45 + 73 * - COUNT( * ) ) col1
----
55

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT - 55 / + NULLIF ( - ( COUNT ( * ) ), COALESCE ( - CASE CASE + 40 WHEN - CASE - 27 WHEN 87 * 0 + - 6 THEN NULL WHEN + COUNT ( * ) * 3 THEN NULL WHEN - 18 + 96 * 18 THEN 78 END / + 5 THEN 45 / - 96 END WHEN 29 * 75 + + 74 THEN NULL WHEN MIN ( DISTINCT + 22 ) THEN NULL ELSE - 27 / + 67 + 8 END, - COUNT ( * ) ) / + 45 + 73 * - COUNT ( * ) ) col1
----
55

query I rowsort
SELECT ALL 72 + 64 + + 56
----
192

query I rowsort
SELECT 35 * - 37
----
-1295

query I rowsort
SELECT 41 + + - 34 AS col0
----
7

query I rowsort
SELECT DISTINCT - 82 + - 29 AS col2
----
-111

query I rowsort
SELECT ALL - CASE 25 WHEN + 70 THEN + 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT 31 + SUM( 7 )
----
38

skipif mysql # not compatible
query I rowsort label-2697
SELECT 31 + SUM ( 7 )
----
38

query I rowsort
SELECT 35 - - 56 AS col2
----
91

query I rowsort
SELECT 70 * + 8 col2
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT - 82 - - - 86 * - ( COALESCE ( - COUNT( * ), - 10 - - 79, 65 ) + 77 ) AS col0
----
6454

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT - 82 - - - 86 * - ( COALESCE ( - COUNT ( * ), - 10 - - 79, 65 ) + 77 ) AS col0
----
6454

query I rowsort
SELECT ALL - 65 * + 86 AS col2
----
-5590

query I rowsort
SELECT 60 * - 88 AS col1
----
-5280

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT COUNT( DISTINCT 57 ) + + COUNT( 94 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2704
SELECT COUNT ( DISTINCT 57 ) + + COUNT ( 94 ) AS col2
----
2

query I rowsort
SELECT 50 * - + ( - 33 )
----
1650

query I rowsort
SELECT 85 + - 11 + 27 * 1 AS col1
----
101

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

query I rowsort
SELECT - 44 * 71
----
-3124

query I rowsort
SELECT ALL - ( - 15 ) * - COALESCE ( - 82, - 36, + 19 + - 47 ) AS col0
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT - CASE + ( 82 ) WHEN + 81 * - 16 + COUNT( * ) THEN NULL WHEN + ( - 6 ) + 25 THEN + 4 WHEN + 56 / - COUNT( * ) - - 66 THEN + SUM( ALL - 45 ) ELSE 10 + - 99 END AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT - CASE + ( 82 ) WHEN + 81 * - 16 + COUNT ( * ) THEN NULL WHEN + ( - 6 ) + 25 THEN + 4 WHEN + 56 / - COUNT ( * ) - - 66 THEN + SUM ( ALL - 45 ) ELSE 10 + - 99 END AS col1
----
89

query I rowsort
SELECT ALL - + 75 + 7
----
-68

query I rowsort
SELECT DISTINCT 1 * - + 0 * + 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL + 50 + NULLIF ( 68, + 62 + - MAX( + 58 ) * 4 )
----
118

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL + 50 + NULLIF ( 68, + 62 + - MAX ( + 58 ) * 4 )
----
118

query I rowsort
SELECT DISTINCT - 91 + - 49 AS col0
----
-140

query I rowsort
SELECT ALL + - 62 * + + 85
----
-5270

query I rowsort
SELECT ALL + 69 + + 6 * - 67 col0
----
-333

query I rowsort
SELECT ALL 63 + 90 + 98 * 51 col1
----
5151

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + - CASE 62 WHEN COUNT( * ) * ( 65 ) THEN NULL ELSE - 51 + 96 END col2
----
-45

skipif mysql # not compatible
query I rowsort label-2719
SELECT + - CASE 62 WHEN COUNT ( * ) * ( 65 ) THEN NULL ELSE - 51 + 96 END col2
----
-45

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2721
SELECT ALL - - COUNT( * ) * 66 DIV - 81 + + 80 + - 97
----
-17

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL - - COUNT ( * ) * 66 / - 81 + + 80 + - 97
----
-17

query I rowsort
SELECT + 60 - + - 61
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2723
SELECT DISTINCT 47 * - - 60 DIV + MIN( DISTINCT + 59 DIV 48 )
----
2820

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT 47 * - - 60 / + MIN ( DISTINCT + 59 / 48 )
----
2820

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT COUNT( * ) * - 78 + + 38
----
-40

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT COUNT ( * ) * - 78 + + 38
----
-40

query I rowsort
SELECT + 60 - - - 24
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT + 72 * - MIN( ALL + 44 ) * + COUNT( * ) AS col2
----
-3168

skipif mysql # not compatible
query I rowsort label-2726
SELECT + 72 * - MIN ( ALL + 44 ) * + COUNT ( * ) AS col2
----
-3168

query I rowsort
SELECT NULLIF ( - 7, + 15 )
----
-7

query I rowsort
SELECT + NULLIF ( - - 20, + 20 / 12 )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT NULLIF ( 42, - COALESCE ( 28, 30 * - COALESCE ( 80, 22 ) + 85 * - 93, NULLIF ( + CAST( NULL AS SIGNED ), + 60 ) ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2729
SELECT NULLIF ( 42, - COALESCE ( 28, 30 * - COALESCE ( 80, 22 ) + 85 * - 93, NULLIF ( + CAST ( NULL AS INTEGER ), + 60 ) ) ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2730
SELECT + NULLIF ( + - 75, + CAST( NULL AS SIGNED ) / - COUNT( * ) + + 89 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2730
SELECT + NULLIF ( + - 75, + CAST ( NULL AS INTEGER ) / - COUNT ( * ) + + 89 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT + 24 + - COUNT( ALL 66 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2731
SELECT + 24 + - COUNT ( ALL 66 ) AS col2
----
23

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

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

query II rowsort
SELECT ALL + 15, 47 AS col2
----
15
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT ALL 23 * MIN( + 68 ) * MIN( ALL + 54 ) AS col1
----
84456

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL 23 * MIN ( + 68 ) * MIN ( ALL + 54 ) AS col1
----
84456

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT - COUNT( ALL - 68 ) * + + 46
----
-46

skipif mysql # not compatible
query I rowsort label-2735
SELECT - COUNT ( ALL - 68 ) * + + 46
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-2736
SELECT - 69 AS col0, COUNT( + 68 ) - 50 AS col1
----
-69
-49

skipif mysql # not compatible
query II rowsort label-2736
SELECT - 69 AS col0, COUNT ( + 68 ) - 50 AS col1
----
-69
-49

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

skipif mysql # not compatible
query II rowsort label-2737
SELECT ALL COUNT ( * ), - 53 AS col2
----
1
-53

query I rowsort
SELECT - ( - - ( + 81 ) ) + - 38 col0
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT ALL + 33 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + 33 / 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2740
SELECT + COUNT( - 65 ) DIV + - 70
----
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT + COUNT ( - 65 ) / + - 70
----
0

query I rowsort
SELECT + 34 * 93
----
3162

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

skipif mysql # not compatible
query I rowsort label-2742
SELECT - COUNT ( * ) * - ( 84 )
----
84

query I rowsort
SELECT - 52 + + 61 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT 75 + + ( 58 ) - COUNT( * ) col1
----
132

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT 75 + + ( 58 ) - COUNT ( * ) col1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - - MIN( - 91 ) * 36 AS col1
----
-3276

skipif mysql # not compatible
query I rowsort label-2745
SELECT - - MIN ( - 91 ) * 36 AS col1
----
-3276

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

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

query I rowsort
SELECT - - ( - 91 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT ALL - - ( 79 ) + COALESCE ( - 14, - 72 / + SUM( 46 ) + + 68 ) - 54 * - CAST( 45 * + CASE + CAST( NULL AS SIGNED ) WHEN 81 - 24 * 32 THEN + 73 * - 99 WHEN ( CAST( 78 AS SIGNED ) ) THEN - CAST( NULL AS SIGNED ) + + 53 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - - ( 79 ) + COALESCE ( - 14, - 72 / + SUM ( 46 ) + + 68 ) - 54 * - CAST ( 45 * + CASE + CAST ( NULL AS INTEGER ) WHEN 81 - 24 * 32 THEN + 73 * - 99 WHEN ( CAST ( 78 AS INTEGER ) ) THEN - CAST ( NULL AS INTEGER ) + + 53 END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 64 - - ( + 81 ) AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2750
SELECT - COUNT( * ) + - 45 + + - 30 + - 42 * 88 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2750
SELECT - COUNT ( * ) + - 45 + + - 30 + - 42 * 88 * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT - 77 - ( ( MAX( 89 ) ) ) * + 47
----
-4260

skipif mysql # not compatible
query I rowsort label-2751
SELECT - 77 - ( ( MAX ( 89 ) ) ) * + 47
----
-4260

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - - 7 + COUNT( * ) - - 78 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2752
SELECT - - 7 + COUNT ( * ) - - 78 AS col0
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-2753
SELECT - 50 AS col2, 58 DIV + 5 AS col2
----
-50
11

skipif mysql # not compatible
query II rowsort label-2753
SELECT - 50 AS col2, 58 / + 5 AS col2
----
-50
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL + + COUNT( + 18 ) + + 23 + 60 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + + COUNT ( + 18 ) + + 23 + 60 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - + COALESCE ( - NULLIF ( + COUNT( * ), 3 ), 53 * 22 ) + 82
----
83

skipif mysql # not compatible
query I rowsort label-2755
SELECT - + COALESCE ( - NULLIF ( + COUNT ( * ), 3 ), 53 * 22 ) + 82
----
83

query I rowsort
SELECT + + 27 - + 52
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT + 10 + + - 46 - + COUNT( * ) + 73 * + 96
----
6971

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT + 10 + + - 46 - + COUNT ( * ) + 73 * + 96
----
6971

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

skipif mysql # not compatible
query II rowsort label-2758
SELECT ALL 56, COUNT ( * ) AS col2
----
56
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT DISTINCT + 17 / COUNT( * ) * + 13 * ( - 30 * CASE 44 * NULLIF ( 22, - 9 ) WHEN + 67 THEN CAST( NULL AS SIGNED ) * - 38 - - 88 WHEN 16 THEN NULL ELSE NULL END ) + 14 + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + 17 / COUNT ( * ) * + 13 * ( - 30 * CASE 44 * NULLIF ( 22, - 9 ) WHEN + 67 THEN CAST ( NULL AS INTEGER ) * - 38 - - 88 WHEN 16 THEN NULL ELSE NULL END ) + 14 + - 72
----
NULL

query I rowsort
SELECT DISTINCT 19 * - + 2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2761
SELECT ALL 72 DIV + - COUNT( * ) - - - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL 72 / + - COUNT ( * ) - - - COUNT ( * )
----
-73

query II rowsort
SELECT ALL + 12 AS col2, 2 * ( 23 )
----
12
46

query I rowsort
SELECT - 46 * + 68 AS col0
----
-3128

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT + CAST( - 9 AS SIGNED ) * - - NULLIF ( 2, NULLIF ( CAST( - 25 AS SIGNED ), 40 - + 92 ) + - 67 ) + COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + CAST ( - 9 AS INTEGER ) * - - NULLIF ( 2, NULLIF ( CAST ( - 25 AS INTEGER ), 40 - + 92 ) + - 67 ) + COUNT ( * ) AS col1
----
-17

query II rowsort
SELECT - 48 * - - 51, 89 AS col1
----
-2448
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2767
SELECT CAST( 81 AS SIGNED ) col1
----
81

skipif mysql # not compatible
query I rowsort label-2767
SELECT CAST ( 81 AS INTEGER ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT + CASE + + 24 WHEN 44 - COUNT( * ) THEN NULL ELSE 26 END
----
26

skipif mysql # not compatible
query I rowsort label-2768
SELECT + CASE + + 24 WHEN 44 - COUNT ( * ) THEN NULL ELSE 26 END
----
26

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2771
SELECT + 18 * 12 DIV - COUNT( * ) DIV - COUNT( * ) DIV + COUNT( * )
----
216

skipif mysql # not compatible
query I rowsort label-2771
SELECT + 18 * 12 / - COUNT ( * ) / - COUNT ( * ) / + COUNT ( * )
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2772
SELECT ALL + CASE + + 67 WHEN + COALESCE ( - 11, 18 * ( CAST( NULL AS SIGNED ) * 27 ) ) THEN 2 + ( 89 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL + CASE + + 67 WHEN + COALESCE ( - 11, 18 * ( CAST ( NULL AS INTEGER ) * 27 ) ) THEN 2 + ( 89 ) END
----
NULL

query I rowsort
SELECT ALL 65 * 46 AS col0
----
2990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2774
SELECT + CAST( - + MAX( ALL - 24 ) AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-2774
SELECT + CAST ( - + MAX ( ALL - 24 ) AS INTEGER )
----
24

query I rowsort
SELECT + 82 * ( - 45 ) AS col1
----
-3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2776
SELECT + CASE NULLIF ( - + CAST( 14 AS SIGNED ), 15 ) WHEN - 5 * - 17 THEN NULL ELSE COUNT( * ) END + + 58
----
59

skipif mysql # not compatible
query I rowsort label-2776
SELECT + CASE NULLIF ( - + CAST ( 14 AS INTEGER ), 15 ) WHEN - 5 * - 17 THEN NULL ELSE COUNT ( * ) END + + 58
----
59

query I rowsort
SELECT COALESCE ( 20, - - 91 - 84 ) * - 44 + 51 AS col2
----
-829

query I rowsort
SELECT 38 * + - 14 - - 12 + - 61 col0
----
-581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2779
SELECT DISTINCT 75 + - COUNT( * ) + ( + - 60 ) * - CASE - 45 WHEN + 90 THEN NULL WHEN 90 THEN 6 * - CAST( 45 AS SIGNED ) ELSE + 89 DIV 72 END AS col2
----
134

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT 75 + - COUNT ( * ) + ( + - 60 ) * - CASE - 45 WHEN + 90 THEN NULL WHEN 90 THEN 6 * - CAST ( 45 AS INTEGER ) ELSE + 89 / 72 END AS col2
----
134

query I rowsort
SELECT ALL 34 + - 11 + + - 76 * + + 17
----
-1269

query I rowsort
SELECT DISTINCT 69 + + 57 * 2 AS col2
----
183

query I rowsort
SELECT DISTINCT 28 * + 76 AS col1
----
2128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2783
SELECT - 92 DIV COUNT( * ) AS col1, 80
----
-92
80

skipif mysql # not compatible
query II rowsort label-2783
SELECT - 92 / COUNT ( * ) AS col1, 80
----
-92
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT 88 + - MAX( - + 38 ) AS col1
----
126

skipif mysql # not compatible
query I rowsort label-2784
SELECT 88 + - MAX ( - + 38 ) AS col1
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT DISTINCT - + 70 DIV - + 38 + - 89 * + ( - 73 ) * - 37
----
-240388

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT - + 70 / - + 38 + - 89 * + ( - 73 ) * - 37
----
-240388

query I rowsort
SELECT ALL + + 8 + + + NULLIF ( - + 11, - 36 )
----
-3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2788
SELECT ALL 11 - CAST( - + COUNT( + 84 ) AS SIGNED ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL 11 - CAST ( - + COUNT ( + 84 ) AS INTEGER ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT - - MIN( - 94 ) AS col0, - 2
----
-94
-2

skipif mysql # not compatible
query II rowsort label-2789
SELECT - - MIN ( - 94 ) AS col0, - 2
----
-94
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT 37 * - COUNT( - 43 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-2790
SELECT 37 * - COUNT ( - 43 ) AS col1
----
-37

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

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL + COUNT ( * ) * MIN ( - 55 ) AS col2
----
-55

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2793
SELECT - 32 DIV 35 - MIN( 28 ) * 15
----
-420

skipif mysql # not compatible
query I rowsort label-2793
SELECT - 32 / 35 - MIN ( 28 ) * 15
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT 35 - + 22 + - ( - 12 ) * - 31 + COUNT( ALL - 36 )
----
-358

skipif mysql # not compatible
query I rowsort label-2794
SELECT 35 - + 22 + - ( - 12 ) * - 31 + COUNT ( ALL - 36 )
----
-358

query I rowsort
SELECT - 88 * 12 - + + ( - 82 ) * - 88 * 5 AS col2
----
-37136

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL - ( - - SUM( - - 99 ) )
----
-99

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL - ( - - SUM ( - - 99 ) )
----
-99

query II rowsort
SELECT + 50 AS col2, - 29 AS col2
----
50
-29

query I rowsort
SELECT ALL - 33 * + - 59 col2
----
1947

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT 40 DIV + 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2799
SELECT 40 / + 36 AS col1
----
1

query I rowsort
SELECT 76 * + 25
----
1900

query I rowsort
SELECT DISTINCT - 24 * - 93 AS col1
----
2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2802
SELECT 50 * - 18 * 24 DIV COUNT( * ) AS col2
----
-21600

skipif mysql # not compatible
query I rowsort label-2802
SELECT 50 * - 18 * 24 / COUNT ( * ) AS col2
----
-21600

onlyif mysql # aggregate syntax: 
query II rowsort label-2803
SELECT SUM( DISTINCT - - 20 ) * + 4 AS col1, + 23 AS col2
----
80
23

skipif mysql # not compatible
query II rowsort label-2803
SELECT SUM ( DISTINCT - - 20 ) * + 4 AS col1, + 23 AS col2
----
80
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2804
SELECT ALL + 61 + - 22 DIV + 61 AS col2, CASE - - 36 WHEN 46 THEN NULL WHEN - SUM( ALL 72 ) + 82 DIV - COUNT( + 45 ) THEN COUNT( * ) ELSE + 74 + - COUNT( * ) END * + 60 AS col0
----
61
4380

skipif mysql # not compatible
query II rowsort label-2804
SELECT ALL + 61 + - 22 / + 61 AS col2, CASE - - 36 WHEN 46 THEN NULL WHEN - SUM ( ALL 72 ) + 82 / - COUNT ( + 45 ) THEN COUNT ( * ) ELSE + 74 + - COUNT ( * ) END * + 60 AS col0
----
61
4380

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT DISTINCT - 16 + 82 * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT - 16 + 82 * + COUNT ( * )
----
66

query I rowsort
SELECT ALL + 61 + 68 + 5 AS col1
----
134

query I rowsort
SELECT ALL - 7 + 70
----
63

query I rowsort
SELECT ALL 16 + - - 53 AS col0
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2809
SELECT ( + 89 ) * COUNT( * ) AS col0, 96 + MAX( DISTINCT + 73 ) + 51 col1
----
89
220

skipif mysql # not compatible
query II rowsort label-2809
SELECT ( + 89 ) * COUNT ( * ) AS col0, 96 + MAX ( DISTINCT + 73 ) + 51 col1
----
89
220

query I rowsort
SELECT DISTINCT ( - 86 ) * - + 39
----
3354

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - + CASE + 29 WHEN + COUNT( * ) * - + 21 THEN 50 * 59 WHEN + 22 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2811
SELECT - + CASE + 29 WHEN + COUNT ( * ) * - + 21 THEN 50 * 59 WHEN + 22 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT ALL + 46 + + 98 * + COUNT( * ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + 46 + + 98 * + COUNT ( * ) AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL - 71 + - 62 * + + 17 + + COUNT( * ) AS col2
----
-1124

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL - 71 + - 62 * + + 17 + + COUNT ( * ) AS col2
----
-1124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT - SUM( ALL 47 ) - + 20 + NULLIF ( - 32, 88 ) DIV 96 * - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2814
SELECT - SUM ( ALL 47 ) - + 20 + NULLIF ( - 32, 88 ) / 96 * - COUNT ( * ) AS col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT - COUNT( * ) + + 67 + + 11 * + - 90 * 43 DIV COUNT( * )
----
-42504

skipif mysql # not compatible
query I rowsort label-2815
SELECT - COUNT ( * ) + + 67 + + 11 * + - 90 * 43 / COUNT ( * )
----
-42504

query II rowsort
SELECT 23, + 7 AS col0
----
23
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2817
SELECT ALL 56 * 30 + + + 95 AS col1, 36 + - COUNT( * ) + 31
----
1775
66

skipif mysql # not compatible
query II rowsort label-2817
SELECT ALL 56 * 30 + + + 95 AS col1, 36 + - COUNT ( * ) + 31
----
1775
66

query I rowsort
SELECT 82 + - 59 col2
----
23

query I rowsort
SELECT ALL 96 - - - COALESCE ( - 29, + + 57 ) AS col0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ( - + SUM( ALL - - 66 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-2820
SELECT ( - + SUM ( ALL - - 66 ) ) AS col2
----
-66

query I rowsort
SELECT + 49 - + 14
----
35

query I rowsort
SELECT DISTINCT - 19 * + COALESCE ( + 63, - + 92 ) * 81 * 38
----
-3684366

query I rowsort
SELECT + 6 + - + 56 + + - 82 - - 71 + - - 82 + + 71 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT 51 + + COUNT( * ) + 13 * + + 53 + 80 * - 23 AS col2
----
-1099

skipif mysql # not compatible
query I rowsort label-2824
SELECT 51 + + COUNT ( * ) + 13 * + + 53 + 80 * - 23 AS col2
----
-1099

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ALL - MIN( DISTINCT - - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL - MIN ( DISTINCT - - 31 ) AS col2
----
-31

query II rowsort
SELECT + 15 * + 49 * + + 76, + 38 AS col0
----
55860
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2827
SELECT CASE - 74 WHEN CAST( NULL AS SIGNED ) THEN - 19 + + - MAX( ALL 61 ) END * 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT CASE - 74 WHEN CAST ( NULL AS INTEGER ) THEN - 19 + + - MAX ( ALL 61 ) END * 44 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2828
SELECT + CAST( - + 87 AS SIGNED ) + - - SUM( ALL + 92 ) + + - 4 * + 92 * + 99
----
-36427

skipif mysql # not compatible
query I rowsort label-2828
SELECT + CAST ( - + 87 AS INTEGER ) + - - SUM ( ALL + 92 ) + + - 4 * + 92 * + 99
----
-36427

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2829
SELECT ALL + 95 DIV COUNT( - 73 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + 95 / COUNT ( - 73 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT 74 - - COUNT( * ) + + - 28
----
47

skipif mysql # not compatible
query I rowsort label-2830
SELECT 74 - - COUNT ( * ) + + - 28
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT + 22 * - 7 + + - SUM( - - 31 ) AS col1
----
-185

skipif mysql # not compatible
query I rowsort label-2831
SELECT + 22 * - 7 + + - SUM ( - - 31 ) AS col1
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL + 37 * NULLIF ( - SUM( ALL - + 49 ), 60 * + 94 / + 92 + 38 / COUNT( * ) ) col0
----
1813

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + 37 * NULLIF ( - SUM ( ALL - + 49 ), 60 * + 94 / + 92 + 38 / COUNT ( * ) ) col0
----
1813

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT COALESCE ( + 18, + MAX( DISTINCT + 30 ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2833
SELECT COALESCE ( + 18, + MAX ( DISTINCT + 30 ) ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL + 15 * 60 + 35 * - ( - COUNT( * ) )
----
935

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL + 15 * 60 + 35 * - ( - COUNT ( * ) )
----
935

query I rowsort
SELECT 44 * 43 AS col0
----
1892

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT SUM( ALL - 23 ) DIV - + ( COUNT( - 51 ) ) + 35 + COUNT( * ) * - COALESCE ( - 30, 82 - 53 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2836
SELECT SUM ( ALL - 23 ) / - + ( COUNT ( - 51 ) ) + 35 + COUNT ( * ) * - COALESCE ( - 30, 82 - 53 ) AS col1
----
88

query I rowsort
SELECT ALL - 38 * + ( 62 ) AS col0
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT CASE - 9 WHEN 3 + 31 - - 15 + - + 0 + 34 * - 71 THEN 45 / + MIN( DISTINCT + 21 ) WHEN + SUM( ALL - 1 ) THEN NULL WHEN + 85 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT CASE - 9 WHEN 3 + 31 - - 15 + - + 0 + 34 * - 71 THEN 45 / + MIN ( DISTINCT + 21 ) WHEN + SUM ( ALL - 1 ) THEN NULL WHEN + 85 THEN NULL END
----
NULL

query I rowsort
SELECT - 65 * - 17
----
1105

query I rowsort
SELECT ALL 90 * ( 10 ) + 15 + - + 39 * - 76 AS col1
----
3879

onlyif mysql # aggregate syntax: 
query II rowsort label-2841
SELECT DISTINCT + 27 AS col1, 95 * + + COUNT( 52 )
----
27
95

skipif mysql # not compatible
query II rowsort label-2841
SELECT DISTINCT + 27 AS col1, 95 * + + COUNT ( 52 )
----
27
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT - CASE - 8 WHEN + - CAST( NULL AS SIGNED ) THEN - COUNT( * ) * - ( + ( AVG ( + 32 ) ) ) + + COUNT( * ) * + ( 26 ) ELSE NULL END + 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT - CASE - 8 WHEN + - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) * - ( + ( AVG ( + 32 ) ) ) + + COUNT ( * ) * + ( 26 ) ELSE NULL END + 4 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - 11 * - SUM( 45 ) AS col0
----
495

skipif mysql # not compatible
query I rowsort label-2843
SELECT - 11 * - SUM ( 45 ) AS col0
----
495

query I rowsort
SELECT 66 * 60 + - 17 AS col1
----
3943

query I rowsort
SELECT ALL 58 * - 22 + + 33
----
-1243

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT ALL ( + 44 ) * 19 + - 23 - - - COUNT( * ) + - - 72
----
884

skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL ( + 44 ) * 19 + - 23 - - - COUNT ( * ) + - - 72
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT ALL - 17 * - - 10 + 54 * + 20 / ( 51 ) + CASE - COUNT( * ) WHEN + 53 + ( ( - AVG ( DISTINCT 15 ) ) + - 50 ) THEN - 79 * - 3 - 99 * 29 WHEN - 58 THEN + 48 * + MAX( DISTINCT 3 ) WHEN - ( + CASE COALESCE ( - 13, 67 / COUNT( * ) ) WHEN 96 THEN + 23 END ) * 69 THEN NULL ELSE NULL END * - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - 17 * - - 10 + 54 * + 20 / ( 51 ) + CASE - COUNT ( * ) WHEN + 53 + ( ( - AVG ( DISTINCT 15 ) ) + - 50 ) THEN - 79 * - 3 - 99 * 29 WHEN - 58 THEN + 48 * + MAX ( DISTINCT 3 ) WHEN - ( + CASE COALESCE ( - 13, 67 / COUNT ( * ) ) WHEN 96 THEN + 23 END ) * 69 THEN NULL ELSE NULL END * - 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL + COUNT( * ) * 26 + + 19 col0
----
45

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL + COUNT ( * ) * 26 + + 19 col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2849
SELECT ALL - 2 DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL - 2 / + 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT DISTINCT 39 * - + 46 * 44 / 79 + + - CASE 20 WHEN - 84 THEN + 54 WHEN + 3 / + ( NULLIF ( + 7, - 3 / + NULLIF ( CASE - 90 WHEN COUNT( ALL - 57 ) * 5 THEN 98 / 57 + + MIN( ALL - 17 ) / 14 END, + 54 ) ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT 39 * - + 46 * 44 / 79 + + - CASE 20 WHEN - 84 THEN + 54 WHEN + 3 / + ( NULLIF ( + 7, - 3 / + NULLIF ( CASE - 90 WHEN COUNT ( ALL - 57 ) * 5 THEN 98 / 57 + + MIN ( ALL - 17 ) / 14 END, + 54 ) ) ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2851
SELECT ALL 13 * COUNT( * ) + + + 64 DIV - MAX( + 27 ) * + COUNT( + 27 ) * COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL 13 * COUNT ( * ) + + + 64 / - MAX ( + 27 ) * + COUNT ( + 27 ) * COUNT ( * ) AS col2
----
11

query I rowsort
SELECT ALL - 76 * + - 32 col2
----
2432

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

skipif mysql # not compatible
query I rowsort label-2853
SELECT - COUNT ( * ) * 12
----
-12

query I rowsort
SELECT + 37 * - 76 + 81 + - 56 col0
----
-2787

query I rowsort
SELECT ALL + 25 * - 41
----
-1025

query I rowsort
SELECT - 97 + + 29 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT - 24 * + 22 + + - 28 + - 19 + + - 88 * + MAX( 35 ) * 68
----
-210015

skipif mysql # not compatible
query I rowsort label-2857
SELECT - 24 * + 22 + + - 28 + - 19 + + - 88 * + MAX ( 35 ) * 68
----
-210015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2858
SELECT - 1 AS col1, - 17, + 58 * + COUNT( * ) / - CASE - 82 WHEN + CAST( 94 AS SIGNED ) THEN - CAST( - 84 AS SIGNED ) + - NULLIF ( + 10, + 74 ) END col0
----
-1
-17
NULL

skipif mysql # not compatible
query III rowsort label-2858
SELECT - 1 AS col1, - 17, + 58 * + COUNT ( * ) / - CASE - 82 WHEN + CAST ( 94 AS INTEGER ) THEN - CAST ( - 84 AS INTEGER ) + - NULLIF ( + 10, + 74 ) END col0
----
-1
-17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT ALL - 81 - + ( - + 95 ) * + + 90 + NULLIF ( COUNT( * ), + 70 )
----
8470

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - 81 - + ( - + 95 ) * + + 90 + NULLIF ( COUNT ( * ), + 70 )
----
8470

query I rowsort
SELECT DISTINCT NULLIF ( + + 85, - 59 ) AS col1
----
85

query I rowsort
SELECT - 32 * + 49 + - 42 AS col1
----
-1610

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

query I rowsort
SELECT + 60 + + 14 col0
----
74

query II rowsort
SELECT ALL + 64, - 52 AS col1
----
64
-52

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

query II rowsort
SELECT - 36 AS col2, + 47 AS col2
----
-36
47

query I rowsort
SELECT DISTINCT + 65 * + 82
----
5330

query I rowsort
SELECT + 87 * + 89
----
7743

query II rowsort
SELECT 37, 26 AS col2
----
37
26

query II rowsort
SELECT + 96 + - 35 col2, 0
----
61
0

query I rowsort
SELECT DISTINCT 14 * 76 AS col0
----
1064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2872
SELECT + 53 * + NULLIF ( + + 38, 29 * + ( - 27 ) * - COALESCE ( 72, + 32 * CASE COALESCE ( - CASE + 31 WHEN - ( 2 ) THEN + 21 WHEN 56 * 28 THEN NULL WHEN 37 THEN NULL ELSE NULL END, COUNT( * ), - 8 ) * - 41 WHEN + CASE ( SUM( + 55 ) ) WHEN + 77 + + 81 THEN NULL WHEN 24 - + CAST( - 15 AS SIGNED ) THEN - 47 * + 82 END THEN NULL ELSE + CAST( NULL AS DECIMAL ) END, 14 / MIN( ALL 15 ) ) ) * 41 AS col2
----
82574

skipif mysql # not compatible
query I rowsort label-2872
SELECT + 53 * + NULLIF ( + + 38, 29 * + ( - 27 ) * - COALESCE ( 72, + 32 * CASE COALESCE ( - CASE + 31 WHEN - ( 2 ) THEN + 21 WHEN 56 * 28 THEN NULL WHEN 37 THEN NULL ELSE NULL END, COUNT ( * ), - 8 ) * - 41 WHEN + CASE ( SUM ( + 55 ) ) WHEN + 77 + + 81 THEN NULL WHEN 24 - + CAST ( - 15 AS INTEGER ) THEN - 47 * + 82 END THEN NULL ELSE + CAST ( NULL AS REAL ) END, 14 / MIN ( ALL 15 ) ) ) * 41 AS col2
----
82574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2873
SELECT ALL COUNT( * ) * + CAST( + - NULLIF ( 67, + ( - 54 ) + + + 55 ) AS SIGNED ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL COUNT ( * ) * + CAST ( + - NULLIF ( 67, + ( - 54 ) + + + 55 ) AS INTEGER ) AS col0
----
-67

query I rowsort
SELECT DISTINCT 18 + + + 26 AS col0
----
44

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

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

query I rowsort
SELECT ALL 53 + + + 92
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT - CASE - COUNT( * ) WHEN - - 76 THEN + 85 WHEN - + 61 THEN + 87 WHEN + - COUNT( * ) THEN NULL ELSE - 65 + 49 * 73 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT - CASE - COUNT ( * ) WHEN - - 76 THEN + 85 WHEN - + 61 THEN + 87 WHEN + - COUNT ( * ) THEN NULL ELSE - 65 + 49 * 73 END AS col1
----
NULL

query I rowsort
SELECT - 24 * - 97
----
2328

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT + 35 - 84 AS col0, 91 * - COUNT( * ) - + 90
----
-49
-181

skipif mysql # not compatible
query II rowsort label-2879
SELECT + 35 - 84 AS col0, 91 * - COUNT ( * ) - + 90
----
-49
-181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2880
SELECT ALL 23 DIV + + 40 + - + 94 * - CASE + 17 WHEN + + ( + 95 ) THEN NULL ELSE COUNT( * ) * COUNT( * ) END * 14
----
1316

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL 23 / + + 40 + - + 94 * - CASE + 17 WHEN + + ( + 95 ) THEN NULL ELSE COUNT ( * ) * COUNT ( * ) END * 14
----
1316

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT + COUNT( * ) - + - 12 + 12 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-2881
SELECT + COUNT ( * ) - + - 12 + 12 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT ( - + COALESCE ( + CASE - 24 WHEN - ( + 42 ) THEN NULL ELSE + 77 END, - 21 * 61 ) ) * COUNT( * ) + + 3
----
-74

skipif mysql # not compatible
query I rowsort label-2882
SELECT ( - + COALESCE ( + CASE - 24 WHEN - ( + 42 ) THEN NULL ELSE + 77 END, - 21 * 61 ) ) * COUNT ( * ) + + 3
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT DISTINCT - 89 * COUNT( DISTINCT - 20 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT - 89 * COUNT ( DISTINCT - 20 ) AS col1
----
-89

query I rowsort
SELECT DISTINCT 46 * 55 * + 38 AS col2
----
96140

query I rowsort
SELECT DISTINCT 35 * 77 * - + 65 * + 88 + + 95 - + - 90 col0
----
-15415215

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2887
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COALESCE ( 81, + 61 ) - + 16 * + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COALESCE ( 81, + 61 ) - + 16 * + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 23, - + 93 ) col1
----
23

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

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

query II rowsort
SELECT ( - 91 ), + 47 AS col2
----
-91
47

query I rowsort
SELECT - 28 * 76 * - 13
----
27664

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - 85 + - + CASE 14 WHEN - - 1 THEN NULL WHEN + SUM( + 1 ) / - 99 + + 1 / MIN( - 15 ) THEN 63 * - 42 WHEN + 80 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT - 85 + - + CASE 14 WHEN - - 1 THEN NULL WHEN + SUM ( + 1 ) / - 99 + + 1 / MIN ( - 15 ) THEN 63 * - 42 WHEN + 80 THEN NULL END
----
NULL

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

query I rowsort
SELECT - - 99 * - 22
----
-2178

onlyif mysql # DIV for integer division: 
query I rowsort label-2895
SELECT ALL + - 17 * + 93 - + - 98 + + 41 DIV - NULLIF ( - 77, - + 7 ) + NULLIF ( + 47 + + 52, - 74 ) * ( + 92 * + 60 )
----
544997

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL + - 17 * + 93 - + - 98 + + 41 / - NULLIF ( - 77, - + 7 ) + NULLIF ( + 47 + + 52, - 74 ) * ( + 92 * + 60 )
----
544997

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT DISTINCT + + ( - NULLIF ( - 56, + 27 ) ) DIV + 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT + + ( - NULLIF ( - 56, + 27 ) ) / + 7 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT - COUNT( * ) * - SUM( + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-2897
SELECT - COUNT ( * ) * - SUM ( + 65 )
----
65

query I rowsort
SELECT ALL + - 9 * + - 12 - + 22
----
86

query I rowsort
SELECT - - 47 + + - 16 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2900
SELECT - 2 DIV + - 85 + 20 - - 33 + - COUNT( ALL - + CAST( 89 AS SIGNED ) ) * - CASE 45 WHEN 38 * 41 THEN NULL ELSE + MIN( DISTINCT 17 ) END
----
70

skipif mysql # not compatible
query I rowsort label-2900
SELECT - 2 / + - 85 + 20 - - 33 + - COUNT ( ALL - + CAST ( 89 AS INTEGER ) ) * - CASE 45 WHEN 38 * 41 THEN NULL ELSE + MIN ( DISTINCT 17 ) END
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2901
SELECT + COUNT( - - 37 ) DIV + - 10 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-2901
SELECT + COUNT ( - - 37 ) / + - 10 * + 51
----
0

query I rowsort
SELECT - + 73 + + + NULLIF ( - + 88, 54 ) col1
----
-161

query I rowsort
SELECT DISTINCT - + 4 * 86
----
-344

query I rowsort
SELECT ALL + - 42 + 25 AS col0
----
-17

query II rowsort
SELECT DISTINCT 86 + - 75 AS col0, - ( COALESCE ( + 37, ( + - 13 ) ) ) AS col0
----
11
-37

query I rowsort
SELECT DISTINCT + 84 + - 13 + - - 14 * + 84 + + + 14 AS col1
----
1261

query I rowsort
SELECT ALL 54 + 59
----
113

query II rowsort
SELECT - 47 AS col0, + 5 AS col1
----
-47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT MAX( + - 53 ) + 79 * 23
----
1764

skipif mysql # not compatible
query I rowsort label-2909
SELECT MAX ( + - 53 ) + 79 * 23
----
1764

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2911
SELECT 79 AS col1, + 66 DIV + 17 col2
----
79
3

skipif mysql # not compatible
query II rowsort label-2911
SELECT 79 AS col1, + 66 / + 17 col2
----
79
3

query I rowsort
SELECT ALL 6 + 30
----
36

query I rowsort
SELECT DISTINCT 65 + + 76 AS col2
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT DISTINCT + 20 DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + 20 / + 85 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2915
SELECT COUNT( - 98 ) + - 11 DIV + 12 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2915
SELECT COUNT ( - 98 ) + - 11 / + 12 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL COUNT( * ) * + - COALESCE ( + + COUNT( * ), 7 + CASE + - CASE - 55 WHEN + + 76 THEN NULL WHEN - 67 - - COUNT( ALL 73 ) THEN NULL ELSE 84 * - ( + ( 34 ) ) END WHEN + 43 THEN COUNT( * ) * - ( 17 ) WHEN + 87 THEN NULL ELSE NULL END + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL COUNT ( * ) * + - COALESCE ( + + COUNT ( * ), 7 + CASE + - CASE - 55 WHEN + + 76 THEN NULL WHEN - 67 - - COUNT ( ALL 73 ) THEN NULL ELSE 84 * - ( + ( 34 ) ) END WHEN + 43 THEN COUNT ( * ) * - ( 17 ) WHEN + 87 THEN NULL ELSE NULL END + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL 11 * - 88 col0
----
-968

onlyif mysql # aggregate syntax: 
query II rowsort label-2918
SELECT 73, COUNT( * ) * + 19 * + + 21 + - 24 AS col1
----
73
375

skipif mysql # not compatible
query II rowsort label-2918
SELECT 73, COUNT ( * ) * + 19 * + + 21 + - 24 AS col1
----
73
375

onlyif mysql # DIV for integer division: 
query I rowsort label-2919
SELECT 48 DIV - 91 + - 74 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2919
SELECT 48 / - 91 + - 74 AS col1
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2920
SELECT ALL 40 - - 81 + - + 22 + - CAST( NULL AS DECIMAL ) + 3 * + 81 * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL 40 - - 81 + - + 22 + - CAST ( NULL AS REAL ) + 3 * + 81 * 54
----
NULL

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

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

query I rowsort
SELECT - 93 * - 93 + - 31 + 22 AS col2
----
8640

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

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

query I rowsort
SELECT 40 * - 12 + + + CASE + 99 WHEN - 29 - - 86 / 64 THEN + 93 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 92 * 20 AS col2
----
-1840

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2927
SELECT 80 * COALESCE ( + - SUM( ALL + 6 ), - - 28 * + AVG ( DISTINCT - 12 ), + 43 * + COALESCE ( 53 * + 36, + CAST( NULL AS SIGNED ) ) ) DIV + 17 + - 50 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-2927
SELECT 80 * COALESCE ( + - SUM ( ALL + 6 ), - - 28 * + AVG ( DISTINCT - 12 ), + 43 * + COALESCE ( 53 * + 36, + CAST ( NULL AS INTEGER ) ) ) / + 17 + - 50 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL + COUNT( * ) * - + NULLIF ( + + 61, 81 ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + COUNT ( * ) * - + NULLIF ( + + 61, 81 ) col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2929
SELECT ALL 3 * - - CAST( 11 AS SIGNED ) * + + COUNT( ALL 26 ) col0
----
33

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL 3 * - - CAST ( 11 AS INTEGER ) * + + COUNT ( ALL 26 ) col0
----
33

query I rowsort
SELECT 60 * + 87 AS col0
----
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT + MIN( DISTINCT 12 ) * 3 + + - 11 + 63 * - ( 70 ) AS col0
----
-4385

skipif mysql # not compatible
query I rowsort label-2931
SELECT + MIN ( DISTINCT 12 ) * 3 + + - 11 + 63 * - ( 70 ) AS col0
----
-4385

query I rowsort
SELECT ALL - NULLIF ( + - 57, + 74 + + 43 ) AS col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2933
SELECT ALL - 7 + - 75 DIV 65 AS col2, COUNT( * ) AS col2
----
-8
1

skipif mysql # not compatible
query II rowsort label-2933
SELECT ALL - 7 + - 75 / 65 AS col2, COUNT ( * ) AS col2
----
-8
1

query II rowsort
SELECT 91, 87 AS col0
----
91
87

query I rowsort
SELECT ALL - ( 0 ) * - 38 * + - 42 + + COALESCE ( + 64, - 95 * + 65 ) AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT DISTINCT 73 + + 62 * 86 * - CAST( - CAST( CAST( - ( COALESCE ( + 35, + 97 ) ) AS SIGNED ) AS SIGNED ) AS SIGNED ) AS col1
----
-186547

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT 73 + + 62 * 86 * - CAST ( - CAST ( CAST ( - ( COALESCE ( + 35, + 97 ) ) AS INTEGER ) AS INTEGER ) AS INTEGER ) AS col1
----
-186547

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT ALL + + 81 + - 7 + MIN( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + + 81 + - 7 + MIN ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2938
SELECT ALL + 85 AS col2, NULLIF ( - 87, + 99 * + 83 + 34 * 37 * - 89 + COUNT( * ) ) AS col0
----
85
-87

skipif mysql # not compatible
query II rowsort label-2938
SELECT ALL + 85 AS col2, NULLIF ( - 87, + 99 * + 83 + 34 * 37 * - 89 + COUNT ( * ) ) AS col0
----
85
-87

query I rowsort
SELECT ALL + + COALESCE ( 62, + CASE 85 WHEN + 79 THEN 97 END * 58 + - 7 ) + - 52
----
10

query I rowsort
SELECT 6 + - + 23 AS col0
----
-17

query I rowsort
SELECT ALL + 55 + + 29 + - + 13 * + - 27
----
435

query I rowsort
SELECT DISTINCT + 88 * 19
----
1672

query II rowsort
SELECT ALL + 79 + 76 AS col2, 0 + + 34 - - 24 + 20
----
155
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT CASE - 57 WHEN - 19 THEN MAX( DISTINCT + 5 ) * - 13 + + + COALESCE ( + 30, - 91, COALESCE ( - COUNT( * ), + 86 ) * - CASE - 8 WHEN + 82 THEN + 53 ELSE 79 * 98 END, 69 ) WHEN ( 84 ) THEN 63 END * - 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2944
SELECT CASE - 57 WHEN - 19 THEN MAX ( DISTINCT + 5 ) * - 13 + + + COALESCE ( + 30, - 91, COALESCE ( - COUNT ( * ), + 86 ) * - CASE - 8 WHEN + 82 THEN + 53 ELSE 79 * 98 END, 69 ) WHEN ( 84 ) THEN 63 END * - 15 AS col0
----
NULL

query I rowsort
SELECT ALL - 15 * + - 28 AS col2
----
420

query I rowsort
SELECT ALL - 43 + + + 26 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL 0 + + MAX( - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL 0 + + MAX ( - 9 )
----
-9

query II rowsort
SELECT ALL + 16 * 68 AS col1, + 11 * - 75 col0
----
1088
-825

query I rowsort
SELECT DISTINCT - 61 - - - 33 AS col0
----
-94

query I rowsort
SELECT 69 + 39 col0
----
108

query I rowsort
SELECT 85 * 79 AS col1
----
6715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT COALESCE ( - CAST( NULL AS SIGNED ), + - 70 * 9 * 55 ) * + NULLIF ( - + 13, - 80 ) + 2 + + 51 AS col2
----
450503

skipif mysql # not compatible
query I rowsort label-2952
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), + - 70 * 9 * 55 ) * + NULLIF ( - + 13, - 80 ) + 2 + + 51 AS col2
----
450503

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

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

query I rowsort
SELECT 94 - + + 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL CASE 8 WHEN 99 THEN COUNT( * ) - - 63 ELSE 38 END * COUNT( * ) - + + 0 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL CASE 8 WHEN 99 THEN COUNT ( * ) - - 63 ELSE 38 END * COUNT ( * ) - + + 0 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL ( - - 96 ) * - + 62 * + COUNT( * ) + + 51 AS col0
----
-5901

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL ( - - 96 ) * - + 62 * + COUNT ( * ) + + 51 AS col0
----
-5901

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT ALL + 72 DIV 23
----
3

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + 72 / 23
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT ALL + SUM( DISTINCT + 47 ) * + - CAST( NULL AS SIGNED ) / + + CAST( - 74 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + SUM ( DISTINCT + 47 ) * + - CAST ( NULL AS INTEGER ) / + + CAST ( - 74 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 99 * - 37 * + 27 col2
----
-98901

onlyif mysql # aggregate syntax: 
query II rowsort label-2960
SELECT DISTINCT - 61 * + COUNT( * ), + 71 + 51 col0
----
-61
122

skipif mysql # not compatible
query II rowsort label-2960
SELECT DISTINCT - 61 * + COUNT ( * ), + 71 + 51 col0
----
-61
122

query I rowsort
SELECT - 75 * + 27 * + 57 - - - 33 + - - 28 * - 32
----
-116354

onlyif mysql # DIV for integer division: 
query I rowsort label-2962
SELECT 72 DIV - 69 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2962
SELECT 72 / - 69 AS col0
----
-1

query I rowsort
SELECT ALL 96 + 62 AS col1
----
158

query I rowsort
SELECT - 66 * + 36 AS col2
----
-2376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2965
SELECT + CAST( 85 AS SIGNED ), COUNT( ALL + ( - - 8 ) ) AS col2, + 26 - + 77 DIV + + CAST( + 15 AS SIGNED ) + + 56 * + 77 AS col0
----
85
1
4333

skipif mysql # not compatible
query III rowsort label-2965
SELECT + CAST ( 85 AS INTEGER ), COUNT ( ALL + ( - - 8 ) ) AS col2, + 26 - + 77 / + + CAST ( + 15 AS INTEGER ) + + 56 * + 77 AS col0
----
85
1
4333

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2966
SELECT + 84 + + 30 + + CAST( NULL AS DECIMAL ) * - 10, 3 * - 27 * 66 - + + 53 * + COALESCE ( 58, - 27 ) - + 19 * 64 AS col0
----
NULL
-9636

skipif mysql # not compatible
query II rowsort label-2966
SELECT + 84 + + 30 + + CAST ( NULL AS REAL ) * - 10, 3 * - 27 * 66 - + + 53 * + COALESCE ( 58, - 27 ) - + 19 * 64 AS col0
----
NULL
-9636

query I rowsort
SELECT ALL 23 * + + 23 AS col2
----
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT + - CASE - COUNT( * ) WHEN COUNT( * ) THEN - + 90 WHEN + COUNT( * ) + - COUNT( * ) / + 80 THEN - 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT + - CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - + 90 WHEN + COUNT ( * ) + - COUNT ( * ) / + 80 THEN - 39 END
----
NULL

query I rowsort
SELECT ALL + 26 * + - 12 - - 8 AS col0
----
-304

query I rowsort
SELECT - - 15 * + 81
----
1215

query I rowsort
SELECT + 82 + + 45 + - + 20 + - 51
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2972
SELECT DISTINCT COALESCE ( - 25, + 23 + ( - + 86 ) * ( + 39 ) * + 45 DIV - COUNT( * ) * CAST( NULL AS SIGNED ), MIN( + ( 68 ) ) - + SUM( ALL - 66 ) ) * 65
----
-1625

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT COALESCE ( - 25, + 23 + ( - + 86 ) * ( + 39 ) * + 45 / - COUNT ( * ) * CAST ( NULL AS INTEGER ), MIN ( + ( 68 ) ) - + SUM ( ALL - 66 ) ) * 65
----
-1625

query II rowsort
SELECT ALL + 35 + - 84, + 16 AS col2
----
-49
16

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

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL MIN ( 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT 36 * 61 * COUNT( * ) col1
----
2196

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT 36 * 61 * COUNT ( * ) col1
----
2196

query I rowsort
SELECT ALL 94 - + + 5 - 80
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL - COALESCE ( - 11, + 96 * 37 * - 30, + + 35 * - ( - 64 ) ) - + 12 - + MAX( ALL 7 ) * 4 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - COALESCE ( - 11, + 96 * 37 * - 30, + + 35 * - ( - 64 ) ) - + 12 - + MAX ( ALL 7 ) * 4 AS col1
----
-29

query I rowsort
SELECT - 82 + - 52 + - 52 AS col0
----
-186

query II rowsort
SELECT ALL 4, 86 * - 33 AS col2
----
4
-2838

query I rowsort
SELECT - 59 + - - 79 + - 28 * - - 89 * - + ( ( 61 ) ) + - ( + CASE 74 WHEN + 44 + + 97 * - 91 THEN NULL WHEN 98 THEN + 47 ELSE 56 * - 5 END )
----
152312

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL MIN( ALL + - 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL MIN ( ALL + - 64 ) AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2982
SELECT ALL - 57 DIV - - 42 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - 57 / - - 42 AS col1
----
-1

query I rowsort
SELECT + 29 * 36
----
1044

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT + 46 DIV 3
----
15

skipif mysql # not compatible
query I rowsort label-2984
SELECT + 46 / 3
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL CASE - - NULLIF ( 15, NULLIF ( - 97, + COUNT( * ) * - 79 ) ) WHEN 70 THEN + COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL CASE - - NULLIF ( 15, NULLIF ( - 97, + COUNT ( * ) * - 79 ) ) WHEN 70 THEN + COUNT ( * ) ELSE NULL END col0
----
NULL

query I rowsort
SELECT - ( 70 ) + - 94 AS col2
----
-164

query I rowsort
SELECT - 99 + + 50
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT - 16 DIV + - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT - 16 / + - 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL + MAX( DISTINCT - 77 ) * 74 * - CASE - - 37 WHEN 95 + - 95 THEN + 15 ELSE 49 END + - + COALESCE ( 92, - 43, + 19 * ( 41 * - 92 ), - 22 + 86 ) + COUNT( * )
----
279111

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + MAX ( DISTINCT - 77 ) * 74 * - CASE - - 37 WHEN 95 + - 95 THEN + 15 ELSE 49 END + - + COALESCE ( 92, - 43, + 19 * ( 41 * - 92 ), - 22 + 86 ) + COUNT ( * )
----
279111

query I rowsort
SELECT - 92 * 78 * NULLIF ( - - CASE - 77 WHEN - + 49 THEN + 80 * - + 36 + 4 END, + 43 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 67 * - 98
----
-6566

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2994
SELECT - 97 * COUNT( * ) + - - 53 AS col2, 66 * - COUNT( * )
----
-44
-66

skipif mysql # not compatible
query II rowsort label-2994
SELECT - 97 * COUNT ( * ) + - - 53 AS col2, 66 * - COUNT ( * )
----
-44
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT ALL - - 33 * CAST( + 67 AS SIGNED ) + + - 87 + + 14 * - 65 + - - 82 + + 69 + - 65
----
1300

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL - - 33 * CAST ( + 67 AS INTEGER ) + + - 87 + + 14 * - 65 + - - 82 + + 69 + - 65
----
1300

onlyif mysql # aggregate syntax: 
query II rowsort label-2996
SELECT ALL - + 67 * - 49 + - + NULLIF ( + 76, - ( - 14 ) ) * - - 27 + + 29, - COUNT( * ) AS col2
----
1260
-1

skipif mysql # not compatible
query II rowsort label-2996
SELECT ALL - + 67 * - 49 + - + NULLIF ( + 76, - ( - 14 ) ) * - - 27 + + 29, - COUNT ( * ) AS col2
----
1260
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT DISTINCT + 95 * + 43 * - - COUNT( * ) + - COUNT( * ) AS col1
----
4084

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT + 95 * + 43 * - - COUNT ( * ) + - COUNT ( * ) AS col1
----
4084

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2998
SELECT + - 89 AS col2, 75 * + + CAST( 4 AS SIGNED )
----
-89
300

skipif mysql # not compatible
query II rowsort label-2998
SELECT + - 89 AS col2, 75 * + + CAST ( 4 AS INTEGER )
----
-89
300

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT ALL + - COALESCE ( - 41, + 39, - 32, - 34 * - COALESCE ( COUNT( * ), + 2 ) * + + 65 * - 34 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + - COALESCE ( - 41, + 39, - 32, - 34 * - COALESCE ( COUNT ( * ), + 2 ) * + + 65 * - 34 ) AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT - ( + + 26 ) * - 90 * + CAST( NULL AS SIGNED ) * 60 + + 25 * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT - ( + + 26 ) * - 90 * + CAST ( NULL AS INTEGER ) * 60 + + 25 * + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL - 52 * + 95 + + - 70 + - - COUNT( * ) + - 27
----
-5036

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - 52 * + 95 + + - 70 + - - COUNT ( * ) + - 27
----
-5036

query I rowsort
SELECT ALL + - 47 * + + 83 + 55 + + 45 + 22 * 58 + - + 57 AS col1
----
-2582

query I rowsort
SELECT + - 61 * + ( 89 ) AS col1
----
-5429

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + CASE - + COUNT( * ) WHEN 40 * + - COUNT( * ) * + + 10 - 53 THEN + + 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT + CASE - + COUNT ( * ) WHEN 40 * + - COUNT ( * ) * + + 10 - 53 THEN + + 89 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3005
SELECT + 30 * - 76 + + 34 AS col0, CAST( NULL AS SIGNED ) / - CASE + 20 WHEN - - ( 57 ) THEN + - 70 + + MAX( DISTINCT + ( 28 ) ) + - 94 WHEN 13 + + 3 THEN - 65 END AS col1
----
-2246
NULL

skipif mysql # not compatible
query II rowsort label-3005
SELECT + 30 * - 76 + + 34 AS col0, CAST ( NULL AS INTEGER ) / - CASE + 20 WHEN - - ( 57 ) THEN + - 70 + + MAX ( DISTINCT + ( 28 ) ) + - 94 WHEN 13 + + 3 THEN - 65 END AS col1
----
-2246
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3006
SELECT DISTINCT - 73 DIV + SUM( ALL - + ( + 18 ) ) + 91
----
95

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT - 73 / + SUM ( ALL - + ( + 18 ) ) + 91
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3007
SELECT ALL 89, CAST( 37 AS SIGNED ) AS col2
----
89
37

skipif mysql # not compatible
query II rowsort label-3007
SELECT ALL 89, CAST ( 37 AS INTEGER ) AS col2
----
89
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT DISTINCT COUNT( * ) * + SUM( ALL 56 ) / 89 + + MAX( ALL 80 ) - ( - - ( COUNT( * ) ) ) - - ( + CAST( NULL AS SIGNED ) ) * 91 / 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT COUNT ( * ) * + SUM ( ALL 56 ) / 89 + + MAX ( ALL 80 ) - ( - - ( COUNT ( * ) ) ) - - ( + CAST ( NULL AS INTEGER ) ) * 91 / 43 AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - 17, - - 87 ) * - - ( + 96 ) AS col2
----
-1632

onlyif mysql # aggregate syntax: 
query II rowsort label-3010
SELECT DISTINCT 96, 58 * 80 / + CASE - 31 WHEN COUNT( * ) - + + 41 THEN NULL WHEN + - CASE - 17 WHEN + ( - - AVG ( ALL 64 ) ) THEN MIN( + 58 ) ELSE NULL END / + COUNT( * ) THEN - 51 + 43 ELSE NULL END AS col1
----
96
NULL

skipif mysql # not compatible
query II rowsort label-3010
SELECT DISTINCT 96, 58 * 80 / + CASE - 31 WHEN COUNT ( * ) - + + 41 THEN NULL WHEN + - CASE - 17 WHEN + ( - - AVG ( ALL 64 ) ) THEN MIN ( + 58 ) ELSE NULL END / + COUNT ( * ) THEN - 51 + 43 ELSE NULL END AS col1
----
96
NULL

query II rowsort
SELECT ALL 99, 41 * NULLIF ( + - 36, - 74 * 17 * - 83 ) AS col0
----
99
-1476

query I rowsort
SELECT + 70 * 25 AS col2
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT - CASE + 2 WHEN - + 56 * + COUNT( * ) + - 3 THEN + - 77 * 48 * + COUNT( * ) * + 86 * 90 WHEN + - 0 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT - CASE + 2 WHEN - + 56 * + COUNT ( * ) + - 3 THEN + - 77 * 48 * + COUNT ( * ) * + 86 * 90 WHEN + - 0 THEN NULL ELSE NULL END AS col0
----
NULL

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

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

query II rowsort
SELECT 3 AS col1, + 3 AS col1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT DISTINCT SUM( DISTINCT + 4 ) col1
----
4

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT SUM ( DISTINCT + 4 ) col1
----
4

query II rowsort
SELECT 89 AS col1, + COALESCE ( + 35, 12, 22 ) + - 54 AS col0
----
89
-19

query I rowsort
SELECT + 75 * + - 78
----
-5850

query II rowsort
SELECT 0 AS col0, + 81 + - 1
----
0
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL SUM( DISTINCT - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL SUM ( DISTINCT - 97 )
----
-97

query I rowsort
SELECT ALL 34 + - ( + 84 ) AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3023
SELECT - 45 * + - 15 * - + 90 / + 87 / - CAST( + 1 AS DECIMAL ) * 33 + - - CASE WHEN NOT 80 IS NOT NULL THEN + 27 * 80 + CAST( - 22 AS SIGNED ) / 67 END * 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT - 45 * + - 15 * - + 90 / + 87 / - CAST ( + 1 AS REAL ) * 33 + - - CASE WHEN NOT 80 IS NOT NULL THEN + 27 * 80 + CAST ( - 22 AS INTEGER ) / 67 END * 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT + 16 + - CASE + + COUNT( * ) WHEN - 19 THEN + 76 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT + 16 + - CASE + + COUNT ( * ) WHEN - 19 THEN + 76 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT - 5 AS col2, + 36 AS col2
----
-5
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3026
SELECT - 99 DIV 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3026
SELECT - 99 / 71 AS col0
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3028
SELECT ALL - + CAST( 70 AS SIGNED ) * COUNT( 91 ) * + 9 AS col2
----
-630

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - + CAST ( 70 AS INTEGER ) * COUNT ( 91 ) * + 9 AS col2
----
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-3029
SELECT - + 89 DIV + + COALESCE ( - 97, + 24, + + 32 )
----
0

skipif mysql # not compatible
query I rowsort label-3029
SELECT - + 89 / + + COALESCE ( - 97, + 24, + + 32 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3030
SELECT DISTINCT - NULLIF ( + - COUNT( * ), + + 34 ) DIV - 76 + 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT - NULLIF ( + - COUNT ( * ), + + 34 ) / - 76 + 89 AS col1
----
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT DISTINCT - + COUNT( * ) * 27 * CASE + ( + + SUM( ALL 99 ) ) WHEN - 31 THEN + 26 END * + - AVG ( DISTINCT - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - + COUNT ( * ) * 27 * CASE + ( + + SUM ( ALL 99 ) ) WHEN - 31 THEN + 26 END * + - AVG ( DISTINCT - 58 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3033
SELECT ALL 74 / CASE + - COUNT( * ) WHEN + COUNT( * ) THEN + COUNT( * ) * - CAST( NULL AS SIGNED ) WHEN - 39 THEN + COUNT( * ) ELSE NULL END + + COALESCE ( - 85, + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL 74 / CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN + COUNT ( * ) * - CAST ( NULL AS INTEGER ) WHEN - 39 THEN + COUNT ( * ) ELSE NULL END + + COALESCE ( - 85, + - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT COALESCE ( COUNT( * ), - - ( - COUNT( * ) ) * - - 28 * 17 )
----
1

skipif mysql # not compatible
query I rowsort label-3034
SELECT COALESCE ( COUNT ( * ), - - ( - COUNT ( * ) ) * - - 28 * 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT + 2 - COALESCE ( + 68, 65 + 97 ) + CASE + - 47 WHEN + 84 - - 1 THEN 39 + - 3 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT + 2 - COALESCE ( + 68, 65 + 97 ) + CASE + - 47 WHEN + 84 - - 1 THEN 39 + - 3 END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3036
SELECT ALL + 68 - CAST( - SUM( + 3 ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL + 68 - CAST ( - SUM ( + 3 ) AS INTEGER )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT - AVG ( - + CAST( NULL AS SIGNED ) ) * + + 11 * - 47 col0
----
NULL

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

query I rowsort
SELECT ( - - 84 ) * - - 55
----
4620

query I rowsort
SELECT ALL + 43 * 44 * + 68
----
128656

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT + 96 AS col0, COALESCE ( 36, COUNT( * ), + 94 * - + 79 ) - - 86 + - MAX( ALL + - 29 ) AS col2
----
96
151

skipif mysql # not compatible
query II rowsort label-3040
SELECT + 96 AS col0, COALESCE ( 36, COUNT ( * ), + 94 * - + 79 ) - - 86 + - MAX ( ALL + - 29 ) AS col2
----
96
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3041
SELECT ALL 30 * CAST( NULL AS SIGNED ) * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL 30 * CAST ( NULL AS INTEGER ) * + 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3042
SELECT 98 * 39 DIV + - 54
----
-70

skipif mysql # not compatible
query I rowsort label-3042
SELECT 98 * 39 / + - 54
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3043
SELECT 69 + CAST( + 98 AS SIGNED )
----
167

skipif mysql # not compatible
query I rowsort label-3043
SELECT 69 + CAST ( + 98 AS INTEGER )
----
167

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3045
SELECT 88 DIV - COUNT( - 76 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3045
SELECT 88 / - COUNT ( - 76 ) AS col1
----
-88

query I rowsort
SELECT 94 + + + 96 - - 55 + + 73
----
318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3047
SELECT NULLIF ( 21, 66 * NULLIF ( + ( 45 ), + - 92 ) + CASE + 24 WHEN 90 + + - COALESCE ( + 98, 49 ) * - 2 THEN 20 * COUNT( CAST( NULL AS SIGNED ) ) ELSE NULL END ) - + ( 50 + - 21 ) * 91
----
-2618

skipif mysql # not compatible
query I rowsort label-3047
SELECT NULLIF ( 21, 66 * NULLIF ( + ( 45 ), + - 92 ) + CASE + 24 WHEN 90 + + - COALESCE ( + 98, 49 ) * - 2 THEN 20 * COUNT ( CAST ( NULL AS INTEGER ) ) ELSE NULL END ) - + ( 50 + - 21 ) * 91
----
-2618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3048
SELECT DISTINCT COUNT( * ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT COUNT ( * ) / 28
----
0

query I rowsort
SELECT 4 + - CASE 7 WHEN + 67 + 94 THEN - - 90 + + 28 ELSE + - 78 END
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT COUNT( * ) + - + 16 * + ( - + 49 ) + - 27 + + 6 + - NULLIF ( - + MIN( ALL + 98 ), + 37 * 71 )
----
862

skipif mysql # not compatible
query I rowsort label-3050
SELECT COUNT ( * ) + - + 16 * + ( - + 49 ) + - 27 + + 6 + - NULLIF ( - + MIN ( ALL + 98 ), + 37 * 71 )
----
862

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT ALL + COUNT( * ) + - 53 * - 87
----
4612

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL + COUNT ( * ) + - 53 * - 87
----
4612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT ALL CASE - + 60 WHEN + 45 * + CASE + ( + 45 ) WHEN - - 41 THEN NULL WHEN + 40 - - - 70 * - 39 THEN - 88 - - 21 + 15 WHEN 0 * - CAST( CASE CASE WHEN NOT NULL IS NOT NULL THEN NULLIF ( - 69, - 27 * + 28 ) END WHEN - ( 79 ) THEN NULL ELSE + 91 END AS SIGNED ) THEN NULL END / 20 + - 15 THEN NULL WHEN COUNT( * ) THEN - 70 END * + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL CASE - + 60 WHEN + 45 * + CASE + ( + 45 ) WHEN - - 41 THEN NULL WHEN + 40 - - - 70 * - 39 THEN - 88 - - 21 + 15 WHEN 0 * - CAST ( CASE CASE WHEN NOT NULL IS NOT NULL THEN NULLIF ( - 69, - 27 * + 28 ) END WHEN - ( 79 ) THEN NULL ELSE + 91 END AS INTEGER ) THEN NULL END / 20 + - 15 THEN NULL WHEN COUNT ( * ) THEN - 70 END * + 48 AS col2
----
NULL

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

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

query I rowsort
SELECT ALL 63 + - 61
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3055
SELECT 29 + - - 49 * + CAST( 62 AS SIGNED ) AS col1
----
3067

skipif mysql # not compatible
query I rowsort label-3055
SELECT 29 + - - 49 * + CAST ( 62 AS INTEGER ) AS col1
----
3067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3056
SELECT ALL COALESCE ( - + 0, + 85 + - MAX( + - COALESCE ( - 2, - 59 + + 75 * - ( + CAST( NULL AS SIGNED ) ) ) ), - COALESCE ( + ( CASE 51 WHEN - COUNT( * ) + 40 THEN NULL ELSE 72 DIV - 46 END ), 61 + + 96 ) * 57, 35 ) + + 13 * - COALESCE ( + 96, 67, - ( 90 ) * CASE 86 WHEN COUNT( ALL - 2 ) * ( - SUM( 5 ) ) THEN 9 ELSE NULL END )
----
-1248

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL COALESCE ( - + 0, + 85 + - MAX ( + - COALESCE ( - 2, - 59 + + 75 * - ( + CAST ( NULL AS INTEGER ) ) ) ), - COALESCE ( + ( CASE 51 WHEN - COUNT ( * ) + 40 THEN NULL ELSE 72 / - 46 END ), 61 + + 96 ) * 57, 35 ) + + 13 * - COALESCE ( + 96, 67, - ( 90 ) * CASE 86 WHEN COUNT ( ALL - 2 ) * ( - SUM ( 5 ) ) THEN 9 ELSE NULL END )
----
-1248

query II rowsort
SELECT 13 * 58, - 18 * + 60 AS col0
----
754
-1080

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

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

query I rowsort
SELECT ALL 28 + - 94 + 3
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT CAST( - 29 AS SIGNED ) + + + MAX( - 39 )
----
-68

skipif mysql # not compatible
query I rowsort label-3060
SELECT CAST ( - 29 AS INTEGER ) + + + MAX ( - 39 )
----
-68

query II rowsort
SELECT + 36 * + - 39 col2, ( - 99 )
----
-1404
-99

query I rowsort
SELECT ALL + 54 + - - 0 + 53
----
107

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT ALL - 80 + - 26 AS col0, 38 * NULLIF ( + 56, 37 * + 74 + + ( - COALESCE ( - - ( - COUNT( ALL - - 55 ) ), - COUNT( * ) ) ) / + 60 )
----
-106
2128

skipif mysql # not compatible
query II rowsort label-3064
SELECT ALL - 80 + - 26 AS col0, 38 * NULLIF ( + 56, 37 * + 74 + + ( - COALESCE ( - - ( - COUNT ( ALL - - 55 ) ), - COUNT ( * ) ) ) / + 60 )
----
-106
2128

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT ALL + CASE COUNT( * ) WHEN + 40 THEN - 28 * + 83 END + + + 70 + + + 18 * + + 19 * 85 * 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + CASE COUNT ( * ) WHEN + 40 THEN - 28 * + 83 END + + + 70 + + + 18 * + + 19 * 85 * 86 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 72 - 49 AS col2, 30
----
-121
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT SUM( ALL - + NULLIF ( 98, + - CAST( NULL AS SIGNED ) ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3067
SELECT SUM ( ALL - + NULLIF ( 98, + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-98

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

skipif mysql # not compatible
query I rowsort label-3068
SELECT 29 * COUNT ( * )
----
29

query I rowsort
SELECT + 9 * + 78
----
702

query I rowsort
SELECT ALL - + CASE - - 3 WHEN + 76 / - + 71 THEN 81 WHEN 89 * + COALESCE ( - 53, - + 57 ) + 99 * 54 THEN NULL WHEN 14 THEN NULL END * - 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT 42 * + - CAST( + 40 AS SIGNED ) + 30
----
-1650

skipif mysql # not compatible
query I rowsort label-3071
SELECT 42 * + - CAST ( + 40 AS INTEGER ) + 30
----
-1650

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

query II rowsort
SELECT ALL + 3 * 77 + + - 40 - - + 54 * 8, 52 AS col2
----
623
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3074
SELECT 98 * + - COUNT( DISTINCT + 31 ) * + COALESCE ( COUNT( * ), CASE 88 WHEN + 74 + - - 57 THEN + 45 END - - 66 ) DIV - - COUNT( * ) + + 64 col1
----
-34

skipif mysql # not compatible
query I rowsort label-3074
SELECT 98 * + - COUNT ( DISTINCT + 31 ) * + COALESCE ( COUNT ( * ), CASE 88 WHEN + 74 + - - 57 THEN + 45 END - - 66 ) / - - COUNT ( * ) + + 64 col1
----
-34

query I rowsort
SELECT ALL - 87 * - + NULLIF ( + 21, + + 25 * + + 86 * 23 + 93 * - 51 ) AS col0
----
1827

query I rowsort
SELECT ALL - NULLIF ( + 63, - - 69 ) AS col0
----
-63

query I rowsort
SELECT 4 + + + 0 col0
----
4

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3080
SELECT ALL - CAST( + - 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL - CAST ( + - 27 AS INTEGER )
----
27

query II rowsort
SELECT 9 AS col1, + 81
----
9
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT 16 * + 19 + - 89, - MIN( + 44 ) AS col1
----
215
-44

skipif mysql # not compatible
query II rowsort label-3082
SELECT 16 * + 19 + - 89, - MIN ( + 44 ) AS col1
----
215
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT 4 * + CASE + 18 WHEN - 16 / - MAX( ALL - 37 ) THEN ( 14 ) ELSE - - 40 END AS col2
----
160

skipif mysql # not compatible
query I rowsort label-3083
SELECT 4 * + CASE + 18 WHEN - 16 / - MAX ( ALL - 37 ) THEN ( 14 ) ELSE - - 40 END AS col2
----
160

query I rowsort
SELECT ALL + 53 + ( + 52 ) + 26
----
131

query I rowsort
SELECT DISTINCT + 8 + 61
----
69

query I rowsort
SELECT ALL 88 + 19
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT 23 DIV + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3087
SELECT 23 / + 75 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3089
SELECT 25 AS col1, CASE + 83 WHEN 9 THEN 75 * 38 / + 37 + - ( + 91 ) + 19 + - 39 * + SUM( ALL 80 ) * 16 WHEN ( - 64 ) THEN 68 END
----
25
NULL

skipif mysql # not compatible
query II rowsort label-3089
SELECT 25 AS col1, CASE + 83 WHEN 9 THEN 75 * 38 / + 37 + - ( + 91 ) + 19 + - 39 * + SUM ( ALL 80 ) * 16 WHEN ( - 64 ) THEN 68 END
----
25
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3090
SELECT NULLIF ( - - 11, + SUM( + - 66 ) ) DIV + COALESCE ( - - 77, CASE - 73 WHEN ( - 10 ) THEN - 36 + + 97 + + 52 ELSE 18 END )
----
0

skipif mysql # not compatible
query I rowsort label-3090
SELECT NULLIF ( - - 11, + SUM ( + - 66 ) ) / + COALESCE ( - - 77, CASE - 73 WHEN ( - 10 ) THEN - 36 + + 97 + + 52 ELSE 18 END )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL + 90 + - - CASE 88 WHEN 74 THEN - MIN( ALL - - NULLIF ( - NULLIF ( - 27, - + 75 ), + 86 ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL + 90 + - - CASE 88 WHEN 74 THEN - MIN ( ALL - - NULLIF ( - NULLIF ( - 27, - + 75 ), + 86 ) ) END AS col2
----
NULL

query I rowsort
SELECT 19 - - 65 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT - MIN( + 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-3093
SELECT - MIN ( + 23 ) AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3094
SELECT COUNT( * ) DIV - - 27
----
0

skipif mysql # not compatible
query I rowsort label-3094
SELECT COUNT ( * ) / - - 27
----
0

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

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ALL 73 + - + 83 + + COUNT( * ) * - 8
----
-18

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL 73 + - + 83 + + COUNT ( * ) * - 8
----
-18

query I rowsort
SELECT - 1 + - 1 + + 31 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT ALL - 43 * + 44 + - 0 + + COUNT( * ) + + - 32 AS col0
----
-1923

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL - 43 * + 44 + - 0 + + COUNT ( * ) + + - 32 AS col0
----
-1923

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3099
SELECT + 35 AS col0, COALESCE ( 17, CAST( NULL AS SIGNED ) ) AS col2
----
35
17

skipif mysql # not compatible
query II rowsort label-3099
SELECT + 35 AS col0, COALESCE ( 17, CAST ( NULL AS INTEGER ) ) AS col2
----
35
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3100
SELECT ALL + MIN( DISTINCT + CAST( - 19 AS SIGNED ) ) - + - 99 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL + MIN ( DISTINCT + CAST ( - 19 AS INTEGER ) ) - + - 99 AS col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT - CAST( + + 12 AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3101
SELECT - CAST ( + + 12 AS INTEGER ) AS col1
----
-12

query II rowsort
SELECT ALL 96 AS col0, - 33 AS col1
----
96
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT + - 87 + + 13 * - ( MAX( ALL + 73 ) )
----
-1036

skipif mysql # not compatible
query I rowsort label-3103
SELECT + - 87 + + 13 * - ( MAX ( ALL + 73 ) )
----
-1036

query I rowsort
SELECT DISTINCT - 49 * + + 57
----
-2793

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT + + CASE 75 WHEN ( - 2 ) THEN NULL ELSE + - COUNT( * ) END col1
----
-1

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT + + CASE 75 WHEN ( - 2 ) THEN NULL ELSE + - COUNT ( * ) END col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3106
SELECT ALL + 66 DIV - - 80 * 67 AS col0, - COUNT( * )
----
0
-1

skipif mysql # not compatible
query II rowsort label-3106
SELECT ALL + 66 / - - 80 * 67 AS col0, - COUNT ( * )
----
0
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3107
SELECT + + 61 DIV + + NULLIF ( - COALESCE ( + 47, - 10 * 47 - - 46 - 85 DIV - - 16, - 28 * - 91 ), + + NULLIF ( + 89, - 65 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3107
SELECT + + 61 / + + NULLIF ( - COALESCE ( + 47, - 10 * 47 - - 46 - 85 / - - 16, - 28 * - 91 ), + + NULLIF ( + 89, - 65 ) )
----
-1

query I rowsort
SELECT - 36 * + 3
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT + COALESCE ( + - 77, - COUNT( * ) - 15 * + 9 )
----
-77

skipif mysql # not compatible
query I rowsort label-3109
SELECT + COALESCE ( + - 77, - COUNT ( * ) - 15 * + 9 )
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3110
SELECT ALL - 54 * + - 88 + - - SUM( DISTINCT 34 ) - - 11 + + 35 DIV + + 25
----
4798

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL - 54 * + - 88 + - - SUM ( DISTINCT 34 ) - - 11 + + 35 / + + 25
----
4798

query II rowsort
SELECT 21 * - 25 * 92 - - - 81 AS col1, + 56
----
-48381
56

query I rowsort
SELECT ALL + 4 * 61 + + 74 col2
----
318

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3114
SELECT DISTINCT - COALESCE ( - - 14, - CAST( + 5 AS SIGNED ) ) * + - 84 + ( COUNT( * ) ) + - 12 + - 10 + 13
----
1168

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT - COALESCE ( - - 14, - CAST ( + 5 AS INTEGER ) ) * + - 84 + ( COUNT ( * ) ) + - 12 + - 10 + 13
----
1168

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT - 76 * - + NULLIF ( + 68, + MIN( DISTINCT 85 ) ) AS col1
----
5168

skipif mysql # not compatible
query I rowsort label-3115
SELECT - 76 * - + NULLIF ( + 68, + MIN ( DISTINCT 85 ) ) AS col1
----
5168

query I rowsort
SELECT ALL + 88 * 81 * - 87 + 84
----
-620052

query I rowsort
SELECT DISTINCT - 44 * 18 + 49 AS col0
----
-743

query I rowsort
SELECT + 40 + + 93 + - + 70 * + 48 * - NULLIF ( - 10, + 24 ) AS col1
----
-33467

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3120
SELECT SUM( - - 53 ) AS col2, - 31 col0
----
53
-31

skipif mysql # not compatible
query II rowsort label-3120
SELECT SUM ( - - 53 ) AS col2, - 31 col0
----
53
-31

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

query I rowsort
SELECT DISTINCT COALESCE ( 24, + + 19 ) AS col1
----
24

query I rowsort
SELECT ALL + 95 + - 99 - + - 68
----
64

query I rowsort
SELECT - 10 + - 26 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT ALL ( - - CAST( 69 AS SIGNED ) )
----
69

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL ( - - CAST ( 69 AS INTEGER ) )
----
69

query I rowsort
SELECT - 86 + + 79 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT - MAX( - 41 ) + + 85 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-3127
SELECT - MAX ( - 41 ) + + 85 AS col0
----
126

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

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

query I rowsort
SELECT DISTINCT + 5 - + 37 AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT - + 77 + - - 66 DIV 31
----
-75

skipif mysql # not compatible
query I rowsort label-3130
SELECT - + 77 + - - 66 / 31
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ALL + + 88 - - - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL + + 88 - - - COUNT ( * ) AS col1
----
87

query I rowsort
SELECT + ( - 60 ) * + 93 * - ( - - 62 )
----
345960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3133
SELECT + - NULLIF ( 22, + - COUNT( * ) * - + 56 ) + 25 - - 79 DIV 24 DIV - 72 * - ( + 85 )
----
3

skipif mysql # not compatible
query I rowsort label-3133
SELECT + - NULLIF ( 22, + - COUNT ( * ) * - + 56 ) + 25 - - 79 / 24 / - 72 * - ( + 85 )
----
3

query I rowsort
SELECT ALL - + 96 * + + 41 * 46 AS col1
----
-181056

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT DISTINCT - 89 DIV + - 67 + - - 61 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT - 89 / + - 67 + - - 61 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3136
SELECT ALL - CAST( + - 55 AS SIGNED ) * - 52 AS col1
----
-2860

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL - CAST ( + - 55 AS INTEGER ) * - 52 AS col1
----
-2860

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT + - 50 DIV - 32 + - 96 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3137
SELECT + - 50 / - 32 + - 96 AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3138
SELECT ALL - 39 * - - CASE + + ( + 98 ) WHEN - SUM( ALL - 43 ) * + + COUNT( * ) THEN + 64 / + 77 * 13 + - 16 / 1 WHEN - AVG ( DISTINCT COALESCE ( - 70, CAST( 71 AS SIGNED ) ) ) + 44 THEN + 72 WHEN CASE - 48 WHEN 2 THEN 35 WHEN 98 THEN + 3 + ( + 79 ) ELSE NULL END * - 8 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL - 39 * - - CASE + + ( + 98 ) WHEN - SUM ( ALL - 43 ) * + + COUNT ( * ) THEN + 64 / + 77 * 13 + - 16 / 1 WHEN - AVG ( DISTINCT COALESCE ( - 70, CAST ( 71 AS INTEGER ) ) ) + 44 THEN + 72 WHEN CASE - 48 WHEN 2 THEN 35 WHEN 98 THEN + 3 + ( + 79 ) ELSE NULL END * - 8 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3139
SELECT ALL - 10 / 11 + CAST( NULL AS SIGNED ) AS col0, NULLIF ( + 10, - NULLIF ( + - CAST( - 72 AS SIGNED ), - 60 / + - COUNT( * ) + + COUNT( * ) ) + - + 85 + 56 * + + 22 ) AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-3139
SELECT ALL - 10 / 11 + CAST ( NULL AS INTEGER ) AS col0, NULLIF ( + 10, - NULLIF ( + - CAST ( - 72 AS INTEGER ), - 60 / + - COUNT ( * ) + + COUNT ( * ) ) + - + 85 + 56 * + + 22 ) AS col1
----
NULL
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT 26 * + 54 + + + SUM( - 93 ) * + 93
----
-7245

skipif mysql # not compatible
query I rowsort label-3141
SELECT 26 * + 54 + + + SUM ( - 93 ) * + 93
----
-7245

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT ALL 71 DIV - ( 52 ) + + 90
----
89

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL 71 / - ( 52 ) + + 90
----
89

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

query I rowsort
SELECT ALL + 94 * + ( - 79 ) + + + 82 col2
----
-7344

onlyif mysql # aggregate syntax: 
query II rowsort label-3146
SELECT + 70 + 95 + + 19 AS col1, - COUNT( COALESCE ( - 13, + ( - 49 ) * + 91 ) ) * 59 * + 42 AS col2
----
184
-2478

skipif mysql # not compatible
query II rowsort label-3146
SELECT + 70 + 95 + + 19 AS col1, - COUNT ( COALESCE ( - 13, + ( - 49 ) * + 91 ) ) * 59 * + 42 AS col2
----
184
-2478

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT + 17 * - MIN( DISTINCT 98 ) + - + 92 AS col2
----
-1758

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + 17 * - MIN ( DISTINCT 98 ) + - + 92 AS col2
----
-1758

query I rowsort
SELECT + 46 + - - 70 AS col2
----
116

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - 14 * SUM( + - 71 ) + + COUNT( * )
----
995

skipif mysql # not compatible
query I rowsort label-3150
SELECT - 14 * SUM ( + - 71 ) + + COUNT ( * )
----
995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3151
SELECT + 93 * - COUNT( * ) * + - CASE ( + - 26 ) WHEN - + 41 * - CAST( + + 8 AS SIGNED ) + - - 82 THEN - 11 END * - 92 AS col1, COUNT( * ) + + + 61 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3151
SELECT + 93 * - COUNT ( * ) * + - CASE ( + - 26 ) WHEN - + 41 * - CAST ( + + 8 AS INTEGER ) + - - 82 THEN - 11 END * - 92 AS col1, COUNT ( * ) + + + 61 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3152
SELECT ALL 5 * - ( + 96 ), 30 DIV - + 63 AS col0
----
-480
0

skipif mysql # not compatible
query II rowsort label-3152
SELECT ALL 5 * - ( + 96 ), 30 / - + 63 AS col0
----
-480
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3153
SELECT + 10 / NULLIF ( + - CAST( NULL AS SIGNED ), 24 ) * + + 67 / 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3153
SELECT + 10 / NULLIF ( + - CAST ( NULL AS INTEGER ), 24 ) * + + 67 / 73 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 45 * - 81
----
3645

query I rowsort
SELECT ALL 69 * + + 51 * - - 2 AS col2
----
7038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3156
SELECT COUNT( DISTINCT - NULLIF ( - 31, + + 9 ) ) DIV - 12 DIV - - COUNT( * ) + 63
----
63

skipif mysql # not compatible
query I rowsort label-3156
SELECT COUNT ( DISTINCT - NULLIF ( - 31, + + 9 ) ) / - 12 / - - COUNT ( * ) + 63
----
63

query I rowsort
SELECT 64 * - - 94 AS col0
----
6016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3158
SELECT ALL CAST( + 3 AS SIGNED ) * - ( 21 )
----
-63

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL CAST ( + 3 AS INTEGER ) * - ( 21 )
----
-63

query II rowsort
SELECT 1 AS col1, - 95 * + 91
----
1
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT COUNT( * ) - + MIN( DISTINCT 87 )
----
-86

skipif mysql # not compatible
query I rowsort label-3160
SELECT COUNT ( * ) - + MIN ( DISTINCT 87 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT - - NULLIF ( - COUNT( * ), - - 84 * 15 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3161
SELECT - - NULLIF ( - COUNT ( * ), - - 84 * 15 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT + 28 * + MAX( DISTINCT + 1 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3162
SELECT + 28 * + MAX ( DISTINCT + 1 ) AS col1
----
28

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

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

query I rowsort
SELECT 6 + + 60 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT - 55 - + - MAX( DISTINCT 19 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-3165
SELECT - 55 - + - MAX ( DISTINCT 19 ) col0
----
-36

query I rowsort
SELECT ALL - 99 * - - 20
----
-1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT - CASE + - 77 WHEN MAX( - - 83 ) * + - ( - - CAST( NULL AS SIGNED ) ) THEN + 26 ELSE + - 41 * + 72 END + 53
----
3005

skipif mysql # not compatible
query I rowsort label-3167
SELECT - CASE + - 77 WHEN MAX ( - - 83 ) * + - ( - - CAST ( NULL AS INTEGER ) ) THEN + 26 ELSE + - 41 * + 72 END + 53
----
3005

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL + COUNT( * ) + - + 58 AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + COUNT ( * ) + - + 58 AS col0
----
-57

query I rowsort
SELECT ALL - - 68 + + 45
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT MAX( DISTINCT 91 ) + - + 63
----
28

skipif mysql # not compatible
query I rowsort label-3170
SELECT MAX ( DISTINCT 91 ) + - + 63
----
28

query I rowsort
SELECT ALL + 64 * - 63 + + 65 + + 90 col0
----
-3877

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT 4 * MIN( - - 17 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3172
SELECT 4 * MIN ( - - 17 ) AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3173
SELECT 39 * - 19 * - - COUNT( * ) + - COUNT( * ) + + - 80 + - + 22 DIV - + 77
----
-822

skipif mysql # not compatible
query I rowsort label-3173
SELECT 39 * - 19 * - - COUNT ( * ) + - COUNT ( * ) + + - 80 + - + 22 / - + 77
----
-822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3174
SELECT ALL SUM( DISTINCT - 26 ) DIV - 39 + - 34 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL SUM ( DISTINCT - 26 ) / - 39 + - 34 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT ALL - COUNT( DISTINCT + + 58 ) + - + 44 + - 74 AS col2
----
-119

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL - COUNT ( DISTINCT + + 58 ) + - + 44 + - 74 AS col2
----
-119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3176
SELECT + 94, 76 - - 29 + - NULLIF ( + MAX( + - 32 ), + + CAST( NULL AS SIGNED ) ) * + 46 AS col0
----
94
1577

skipif mysql # not compatible
query II rowsort label-3176
SELECT + 94, 76 - - 29 + - NULLIF ( + MAX ( + - 32 ), + + CAST ( NULL AS INTEGER ) ) * + 46 AS col0
----
94
1577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT COALESCE ( + + CAST( NULL AS SIGNED ), + + 51, - NULLIF ( + + 43, - NULLIF ( AVG ( + + 56 ), 33 * 50 + - 13 ) + + COUNT( * ) * ( + 38 ) + - 14 ) + COUNT( * ) + 51 * - 28, COUNT( ALL 77 ) * + COUNT( ALL 4 - 9 ) ) * - 60 AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-3177
SELECT COALESCE ( + + CAST ( NULL AS INTEGER ), + + 51, - NULLIF ( + + 43, - NULLIF ( AVG ( + + 56 ), 33 * 50 + - 13 ) + + COUNT ( * ) * ( + 38 ) + - 14 ) + COUNT ( * ) + 51 * - 28, COUNT ( ALL 77 ) * + COUNT ( ALL 4 - 9 ) ) * - 60 AS col0
----
-3060

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT ALL - 67 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - 67 / 81
----
0

query I rowsort
SELECT 42 + 17 AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3180
SELECT DISTINCT - 81 AS col1, 51 + + - COUNT( * ) - + 24 * + - COUNT( + 2 ) + - ( - + 54 ) * - 33
----
-81
-1708

skipif mysql # not compatible
query II rowsort label-3180
SELECT DISTINCT - 81 AS col1, 51 + + - COUNT ( * ) - + 24 * + - COUNT ( + 2 ) + - ( - + 54 ) * - 33
----
-81
-1708

query I rowsort
SELECT ALL 29 * + - 6 AS col2
----
-174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3182
SELECT 59 * + + 80 - - - CAST( - 40 AS SIGNED ) + 23 DIV - - 56
----
4760

skipif mysql # not compatible
query I rowsort label-3182
SELECT 59 * + + 80 - - - CAST ( - 40 AS INTEGER ) + 23 / - - 56
----
4760

query I rowsort
SELECT ALL 99 - ( + + 31 )
----
68

query II rowsort
SELECT 62 AS col2, 44 * - - 90
----
62
3960

query II rowsort
SELECT ALL - ( + 14 ) AS col2, 3 * 67 + 4
----
-14
205

query I rowsort
SELECT DISTINCT 28 - - 40 * - 48 * + - 15 col2
----
28828

onlyif mysql # aggregate syntax: 
query II rowsort label-3187
SELECT ALL - 99 AS col0, - 41 * NULLIF ( + COUNT( * ), - 30 )
----
-99
-41

skipif mysql # not compatible
query II rowsort label-3187
SELECT ALL - 99 AS col0, - 41 * NULLIF ( + COUNT ( * ), - 30 )
----
-99
-41

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

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

query I rowsort
SELECT + 34 * + + 85 - 15 AS col2
----
2875

onlyif mysql # aggregate syntax: 
query II rowsort label-3190
SELECT - 37 * - 75 * + + 29 + + ( SUM( ALL 48 ) ), - 71 * - 61 AS col2
----
80523
4331

skipif mysql # not compatible
query II rowsort label-3190
SELECT - 37 * - 75 * + + 29 + + ( SUM ( ALL 48 ) ), - 71 * - 61 AS col2
----
80523
4331

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT - - MIN( ALL 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3192
SELECT - - MIN ( ALL 50 ) AS col0
----
50

query I rowsort
SELECT ALL + NULLIF ( + + 63, + - 41 )
----
63

query I rowsort
SELECT + ( + 75 ) * - ( 51 ) + 5 AS col1
----
-3820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT ALL - 11 DIV - ( MAX( ALL + - 83 ) ) + + ( - COUNT( + - 56 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - 11 / - ( MAX ( ALL + - 83 ) ) + + ( - COUNT ( + - 56 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT - 12 DIV - 3
----
4

skipif mysql # not compatible
query I rowsort label-3196
SELECT - 12 / - 3
----
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT DISTINCT - 61 * - - 23 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT - 61 * - - 23 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3199
SELECT 19 + 68 AS col1, - 46 DIV + + 15
----
87
-3

skipif mysql # not compatible
query II rowsort label-3199
SELECT 19 + 68 AS col1, - 46 / + + 15
----
87
-3

query I rowsort
SELECT - + COALESCE ( - 72, 42 ) AS col0
----
72

query I rowsort
SELECT - 53 + 61 AS col1
----
8

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

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT + 37 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL + + SUM( + 81 ) + - 56 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL + + SUM ( + 81 ) + - 56 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3204
SELECT 77, 90 + + 76 + + 63 + - COUNT( * ) / - NULLIF ( + CAST( NULL AS SIGNED ), 16 / - 9 / + COUNT( * ) + 94 ) * 21 + 79 + 24 col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-3204
SELECT 77, 90 + + 76 + + 63 + - COUNT ( * ) / - NULLIF ( + CAST ( NULL AS INTEGER ), 16 / - 9 / + COUNT ( * ) + 94 ) * 21 + 79 + 24 col2
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL - 4 + - 71 * - + MIN( ALL - 37 ) AS col0
----
-2631

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL - 4 + - 71 * - + MIN ( ALL - 37 ) AS col0
----
-2631

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3206
SELECT + 19 * + + CAST( NULL AS SIGNED ) * + + CASE + + COUNT( * ) WHEN - 35 THEN NULL WHEN - 95 + 98 * - 36 THEN + ( - + COALESCE ( + 52, - CASE COUNT( ALL - 8 ) WHEN + AVG ( + + CAST( NULL AS SIGNED ) ) THEN NULL ELSE + 20 * + 12 END + 30, - 59 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT + 19 * + + CAST ( NULL AS INTEGER ) * + + CASE + + COUNT ( * ) WHEN - 35 THEN NULL WHEN - 95 + 98 * - 36 THEN + ( - + COALESCE ( + 52, - CASE COUNT ( ALL - 8 ) WHEN + AVG ( + + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE + 20 * + 12 END + 30, - 59 ) ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 98 + + - 68 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3208
SELECT DISTINCT - CAST( + - CAST( + - 60 AS SIGNED ) AS SIGNED ) * + 32 AS col2
----
-1920

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT - CAST ( + - CAST ( + - 60 AS INTEGER ) AS INTEGER ) * + 32 AS col2
----
-1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3209
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - NULLIF ( - - AVG ( DISTINCT 67 ), - + COUNT( * ) / + - COALESCE ( 92, MAX( + 40 ) + + + NULLIF ( + 99, - 7 * + + MIN( 27 ) ) + - + 99, NULLIF ( + COUNT( * ), + 31 * 73 + ( - 0 ) * 96 ) + CAST( 57 + + 13 AS DECIMAL ) / ( + COUNT( * ) ) ) + - COUNT( * ) * - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - NULLIF ( - - AVG ( DISTINCT 67 ), - + COUNT ( * ) / + - COALESCE ( 92, MAX ( + 40 ) + + + NULLIF ( + 99, - 7 * + + MIN ( 27 ) ) + - + 99, NULLIF ( + COUNT ( * ), + 31 * 73 + ( - 0 ) * 96 ) + CAST ( 57 + + 13 AS REAL ) / ( + COUNT ( * ) ) ) + - COUNT ( * ) * - 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT 42 * - ( + 32 ) * + COUNT( + 65 ) + - COUNT( * )
----
-1345

skipif mysql # not compatible
query I rowsort label-3210
SELECT 42 * - ( + 32 ) * + COUNT ( + 65 ) + - COUNT ( * )
----
-1345

query I rowsort
SELECT 13 * CASE - 22 WHEN + 45 + 86 THEN + 58 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 63 * - - ( + 58 ) AS col1
----
3654

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT ALL + 46 * + COUNT( * ) - - 4, 33 AS col0
----
50
33

skipif mysql # not compatible
query II rowsort label-3213
SELECT ALL + 46 * + COUNT ( * ) - - 4, 33 AS col0
----
50
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT 63 * 35 * + 37 + - + ( + - 34 ) + - - COUNT( * ) + + 39 AS col2
----
81659

skipif mysql # not compatible
query I rowsort label-3214
SELECT 63 * 35 * + 37 + - + ( + - 34 ) + - - COUNT ( * ) + + 39 AS col2
----
81659

query I rowsort
SELECT - 6 * 97 + + 61 * + 77
----
4115

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3216
SELECT ALL - COUNT( ALL 25 ), - COUNT( * ) DIV - 78 - - SUM( 44 ) AS col2
----
-1
44

skipif mysql # not compatible
query II rowsort label-3216
SELECT ALL - COUNT ( ALL 25 ), - COUNT ( * ) / - 78 - - SUM ( 44 ) AS col2
----
-1
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT DISTINCT + 18 DIV + COALESCE ( + 47, 96 * 52 DIV 1 )
----
0

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT + 18 / + COALESCE ( + 47, 96 * 52 / 1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3218
SELECT DISTINCT + CASE + 99 WHEN 67 * 72 / COUNT( 54 ) + ( COUNT( * ) ) THEN NULL WHEN + 21 + 72 + + NULLIF ( - 62, CAST( ( 35 ) AS SIGNED ) * + COUNT( * ) + - - COUNT( * ) + - 3 / 52 ) - - COUNT( * ) THEN + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT + CASE + 99 WHEN 67 * 72 / COUNT ( 54 ) + ( COUNT ( * ) ) THEN NULL WHEN + 21 + 72 + + NULLIF ( - 62, CAST ( ( 35 ) AS INTEGER ) * + COUNT ( * ) + - - COUNT ( * ) + - 3 / 52 ) - - COUNT ( * ) THEN + 12 END
----
NULL

query I rowsort
SELECT - 16 * - 52 AS col0
----
832

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3220
SELECT DISTINCT + 19 DIV COUNT( * ) AS col0, + MAX( + 86 )
----
19
86

skipif mysql # not compatible
query II rowsort label-3220
SELECT DISTINCT + 19 / COUNT ( * ) AS col0, + MAX ( + 86 )
----
19
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT + 68 * + + COUNT( * ) + + 55 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-3221
SELECT + 68 * + + COUNT ( * ) + + 55 AS col2
----
123

query I rowsort
SELECT DISTINCT - 46 * 27 AS col1
----
-1242

query I rowsort
SELECT - - ( + ( 25 ) ) * + 50
----
1250

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT - + CASE + 48 WHEN 65 THEN - + 58 END + + 0 + 68 + SUM( ALL + 59 ) + + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - + CASE + 48 WHEN 65 THEN - + 58 END + + 0 + 68 + SUM ( ALL + 59 ) + + + 82
----
NULL

query I rowsort
SELECT ALL + 24 + + + 0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL ( + SUM( ALL - 90 ) ) + + 97 + - CASE + ( 66 ) WHEN - 77 THEN NULL ELSE - 95 + 3 END col0
----
99

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL ( + SUM ( ALL - 90 ) ) + + 97 + - CASE + ( 66 ) WHEN - 77 THEN NULL ELSE - 95 + 3 END col0
----
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3227
SELECT ALL + + 77 * 92 * - 52 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL + + 77 * 92 * - 52 / - CAST ( NULL AS REAL )
----
NULL

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

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

query I rowsort
SELECT - ( - 69 ) * - 62 + 4 AS col1
----
-4274

onlyif mysql # aggregate syntax: 
query II rowsort label-3230
SELECT ALL - 8 + CASE + - 83 WHEN + MAX( DISTINCT - 1 ) THEN NULL ELSE - 40 * + 29 END AS col0, 18
----
-1168
18

skipif mysql # not compatible
query II rowsort label-3230
SELECT ALL - 8 + CASE + - 83 WHEN + MAX ( DISTINCT - 1 ) THEN NULL ELSE - 40 * + 29 END AS col0, 18
----
-1168
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT + + ( - NULLIF ( - + COUNT( * ), + 65 ) ) - COUNT( * ) + + 57 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3231
SELECT + + ( - NULLIF ( - + COUNT ( * ), + 65 ) ) - COUNT ( * ) + + 57 AS col0
----
57

query II rowsort
SELECT ALL - ( - 61 ) AS col0, - 54 + - - 77 * + 1 AS col2
----
61
23

query I rowsort
SELECT + - 28 - ( - 77 )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3234
SELECT DISTINCT CASE 13 WHEN - 93 THEN + + 38 END + - COUNT( * ) AS col0, + 71
----
NULL
71

skipif mysql # not compatible
query II rowsort label-3234
SELECT DISTINCT CASE 13 WHEN - 93 THEN + + 38 END + - COUNT ( * ) AS col0, + 71
----
NULL
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3235
SELECT ALL 87 + - ( + MAX( - CAST( - CASE - - 58 WHEN + 88 THEN + - NULLIF ( 83, - 11 ) END AS SIGNED ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL 87 + - ( + MAX ( - CAST ( - CASE - - 58 WHEN + 88 THEN + - NULLIF ( 83, - 11 ) END AS INTEGER ) ) ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL + ( + - 0 ) - - 87 - + 49 * - - CAST( 2 AS SIGNED ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL + ( + - 0 ) - - 87 - + 49 * - - CAST ( 2 AS INTEGER ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT + 39 * - 44 + - 56 + 26 + NULLIF ( + 24, COUNT( - - 69 ) ) + 83 * + MAX( ALL - - 45 ) + + COUNT( * ) * 73 * 35 * + 68 AS col0
----
175753

skipif mysql # not compatible
query I rowsort label-3237
SELECT + 39 * - 44 + - 56 + 26 + NULLIF ( + 24, COUNT ( - - 69 ) ) + 83 * + MAX ( ALL - - 45 ) + + COUNT ( * ) * 73 * 35 * + 68 AS col0
----
175753

query I rowsort
SELECT ALL + 56 * + 49
----
2744

query II rowsort
SELECT 7 AS col2, - 68 * - 67 * + 43
----
7
195908

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3240
SELECT - 44 AS col1, 61 DIV + SUM( DISTINCT - + 11 )
----
-44
-5

skipif mysql # not compatible
query II rowsort label-3240
SELECT - 44 AS col1, 61 / + SUM ( DISTINCT - + 11 )
----
-44
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT ALL SUM( ALL - + 36 ) - - CASE - 87 WHEN - - CASE - 87 WHEN - 25 * + 78 THEN - 87 END - + 25 THEN + - ( - 92 ) ELSE 52 + 58 END + + COUNT( * ) DIV - - 7 + - 2 + - 50 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL SUM ( ALL - + 36 ) - - CASE - 87 WHEN - - CASE - 87 WHEN - 25 * + 78 THEN - 87 END - + 25 THEN + - ( - 92 ) ELSE 52 + 58 END + + COUNT ( * ) / - - 7 + - 2 + - 50 AS col2
----
22

query I rowsort
SELECT + 94 * 71
----
6674

query I rowsort
SELECT - 0 * 60 AS col0
----
0

query II rowsort
SELECT ALL + 3 AS col2, - 58
----
3
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3245
SELECT - 2 * SUM( DISTINCT - 30 ) * 64 DIV 35 DIV 77 + + 88 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3245
SELECT - 2 * SUM ( DISTINCT - 30 ) * 64 / 35 / 77 + + 88 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT - 64 * 73 * + COUNT( + 65 )
----
-4672

skipif mysql # not compatible
query I rowsort label-3246
SELECT - 64 * 73 * + COUNT ( + 65 )
----
-4672

query I rowsort
SELECT ALL + 32 * + 33
----
1056

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

query I rowsort
SELECT + 28 * - 65
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT 33 * SUM( - + 50 ) - + 0 * - 50
----
-1650

skipif mysql # not compatible
query I rowsort label-3250
SELECT 33 * SUM ( - + 50 ) - + 0 * - 50
----
-1650

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT - 72 + - 18 * - 75 + - 29 * - 56 * - - 88 DIV - COUNT( * ) AS col2
----
-141634

skipif mysql # not compatible
query I rowsort label-3252
SELECT - 72 + - 18 * - 75 + - 29 * - 56 * - - 88 / - COUNT ( * ) AS col2
----
-141634

query I rowsort
SELECT ALL - 60 * - 49 + + 98 AS col2
----
3038

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

skipif mysql # not compatible
query I rowsort label-3254
SELECT - 85 / + - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL + SUM( + 88 ) * 93 * COUNT( * ) + 26
----
8210

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL + SUM ( + 88 ) * 93 * COUNT ( * ) + 26
----
8210

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT ALL + 46 * + - COALESCE ( - 5, 13 * ( 44 ) * 90 + + 91 DIV - 21 DIV - ( - 84 ), - 49 ) + - 6
----
224

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + 46 * + - COALESCE ( - 5, 13 * ( 44 ) * 90 + + 91 / - 21 / - ( - 84 ), - 49 ) + - 6
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT - + 98 + - - 41 * + + 44 * 71 + - 25 DIV + 53
----
127986

skipif mysql # not compatible
query I rowsort label-3258
SELECT - + 98 + - - 41 * + + 44 * 71 + - 25 / + 53
----
127986

query I rowsort
SELECT + 58 * 60 * + - 90 + - + 64 - - ( - - 53 ) + 52
----
-313159

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT - - COUNT( * ) + + 32 * + 89 AS col1
----
2849

skipif mysql # not compatible
query I rowsort label-3260
SELECT - - COUNT ( * ) + + 32 * + 89 AS col1
----
2849

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

query I rowsort
SELECT + + 43 * - - 91 + 46 * - 70 AS col2
----
693

query I rowsort
SELECT - 74 + - 76
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3264
SELECT DISTINCT + 21 * ( - 0 ) AS col1, CAST( NULL AS SIGNED ) col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3264
SELECT DISTINCT + 21 * ( - 0 ) AS col1, CAST ( NULL AS INTEGER ) col1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT DISTINCT 33 * + 16 + + COALESCE ( + + 83, + 59 DIV + - 95 * 5 + - + 71 ) col2
----
611

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT 33 * + 16 + + COALESCE ( + + 83, + 59 / + - 95 * 5 + - + 71 ) col2
----
611

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

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

query I rowsort
SELECT ALL 31 * + 56 * + + 89 AS col0
----
154504

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT COUNT( 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3269
SELECT COUNT ( 93 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3270
SELECT + - 16 + + CAST( NULL AS SIGNED ) + - 90 + COUNT( * ) - - COUNT( ALL 81 ) + 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT + - 16 + + CAST ( NULL AS INTEGER ) + - 90 + COUNT ( * ) - - COUNT ( ALL 81 ) + 45 col1
----
NULL

query I rowsort
SELECT + 6 + - + 98 * - 75 AS col0
----
7356

query I rowsort
SELECT ALL 12 - 87 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3273
SELECT - 94 DIV + ( ( 72 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3273
SELECT - 94 / + ( ( 72 ) ) AS col2
----
-1

query I rowsort
SELECT + 12 + ( + 27 ) AS col2
----
39

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

skipif mysql # not compatible
query I rowsort label-3275
SELECT COUNT ( * ) + + + CAST ( 24 AS INTEGER )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT ALL 52 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL 52 / 85 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT 5 * - CAST ( - - 12 AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT 32 - + COUNT( * ) AS col2, 64
----
31
64

skipif mysql # not compatible
query II rowsort label-3278
SELECT 32 - + COUNT ( * ) AS col2, 64
----
31
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3279
SELECT 37 * - 24 + - 40 + + 24 + - + 13 DIV + 60 * + COUNT( * ) * + 26 AS col2
----
-904

skipif mysql # not compatible
query I rowsort label-3279
SELECT 37 * - 24 + - 40 + + 24 + - + 13 / + 60 * + COUNT ( * ) * + 26 AS col2
----
-904

query I rowsort
SELECT 83 * - 34
----
-2822

query II rowsort
SELECT ALL 92 + 24 AS col1, + 95 AS col1
----
116
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3282
SELECT ( - - COUNT( * ) ) * - - COALESCE ( 51, 89 ) + CAST( 96 AS SIGNED )
----
147

skipif mysql # not compatible
query I rowsort label-3282
SELECT ( - - COUNT ( * ) ) * - - COALESCE ( 51, 89 ) + CAST ( 96 AS INTEGER )
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT ALL - - 14 + - 70 * - MAX( ( - 21 ) ) AS col0
----
-1456

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL - - 14 + - 70 * - MAX ( ( - 21 ) ) AS col0
----
-1456

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT ALL - 41 + - + COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - 41 + - + COUNT ( * ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT ALL + 83 * + + CASE - 64 WHEN COUNT( * ) THEN - 13 + - 1 * + 45 WHEN + MAX( ALL 35 ) THEN - + 51 / - NULLIF ( 97, + 18 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL + 83 * + + CASE - 64 WHEN COUNT ( * ) THEN - 13 + - 1 * + 45 WHEN + MAX ( ALL 35 ) THEN - + 51 / - NULLIF ( 97, + 18 ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT NULLIF ( - + SUM( ALL + + 42 ), - + 66 / 50 + 49 + + 46 + COUNT( * ) * - 87 ) * - 48 * - 62
----
-124992

skipif mysql # not compatible
query I rowsort label-3287
SELECT NULLIF ( - + SUM ( ALL + + 42 ), - + 66 / 50 + 49 + + 46 + COUNT ( * ) * - 87 ) * - 48 * - 62
----
-124992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT DISTINCT - + CAST( - + COALESCE ( + ( - 24 ), + ( + COALESCE ( 98, + 85 ) ), - - 13 ) AS SIGNED ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT - + CAST ( - + COALESCE ( + ( - 24 ), + ( + COALESCE ( 98, + 85 ) ), - - 13 ) AS INTEGER ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT - COUNT( * ) * - + SUM( DISTINCT 66 )
----
66

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT - COUNT ( * ) * - + SUM ( DISTINCT 66 )
----
66

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

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

query I rowsort
SELECT ALL - + 34 - + - 19
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-3292
SELECT ALL + 25 - COUNT( * ) AS col2, + MIN( + 64 ) AS col0
----
24
64

skipif mysql # not compatible
query II rowsort label-3292
SELECT ALL + 25 - COUNT ( * ) AS col2, + MIN ( + 64 ) AS col0
----
24
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT - 21 DIV - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3293
SELECT - 21 / - 47 AS col0
----
0

query I rowsort
SELECT 6 * - 47 AS col1
----
-282

onlyif mysql # aggregate syntax: 
query II rowsort label-3295
SELECT SUM( ALL - 84 ) * 93 + - 57 AS col1, - 81 + - 23 + + 12 * + 57 AS col2
----
-7869
580

skipif mysql # not compatible
query II rowsort label-3295
SELECT SUM ( ALL - 84 ) * 93 + - 57 AS col1, - 81 + - 23 + + 12 * + 57 AS col2
----
-7869
580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3296
SELECT 23 - + NULLIF ( + - SUM( + + 85 ), + - CAST( NULL AS SIGNED ) ) + + - 12 DIV - 67
----
108

skipif mysql # not compatible
query I rowsort label-3296
SELECT 23 - + NULLIF ( + - SUM ( + + 85 ), + - CAST ( NULL AS INTEGER ) ) + + - 12 / - 67
----
108

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

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

query I rowsort
SELECT 32 - + 78 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3299
SELECT ALL 89 col1, 11 + - ( + - MAX( ALL - 62 ) ) col2
----
89
-51

skipif mysql # not compatible
query II rowsort label-3299
SELECT ALL 89 col1, 11 + - ( + - MAX ( ALL - 62 ) ) col2
----
89
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT COUNT( * ) * - - SUM( ALL 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3300
SELECT COUNT ( * ) * - - SUM ( ALL 16 ) AS col2
----
16

query I rowsort
SELECT 42 + - 63
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT 32 + - CASE + 25 WHEN - 45 + - COUNT( * ) THEN NULL ELSE + - ( - - 25 ) + + + 86 END + 82
----
53

skipif mysql # not compatible
query I rowsort label-3302
SELECT 32 + - CASE + 25 WHEN - 45 + - COUNT ( * ) THEN NULL ELSE + - ( - - 25 ) + + + 86 END + 82
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3303
SELECT AVG ( - + 17 ) - 94 + - 80 * 18 * + 1 + - ( - + COUNT( * ) ) + 91 * + + 32 * 52 * + 26 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT AVG ( - + 17 ) - 94 + - 80 * 18 * + 1 + - ( - + COUNT ( * ) ) + 91 * + + 32 * 52 * + 26 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT 83 DIV - CASE - 56 WHEN SUM( ALL - - 5 ) * + 87 THEN NULL WHEN 78 THEN 56 ELSE 90 END * + + 33 + 24 * 63
----
1512

skipif mysql # not compatible
query I rowsort label-3304
SELECT 83 / - CASE - 56 WHEN SUM ( ALL - - 5 ) * + 87 THEN NULL WHEN 78 THEN 56 ELSE 90 END * + + 33 + 24 * 63
----
1512

onlyif mysql # aggregate syntax: 
query II rowsort label-3305
SELECT MIN( - 90 ) * ( + + MIN( 44 ) ) + - - 41 AS col0, + 59 AS col0
----
-3919
59

skipif mysql # not compatible
query II rowsort label-3305
SELECT MIN ( - 90 ) * ( + + MIN ( 44 ) ) + - - 41 AS col0, + 59 AS col0
----
-3919
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT 73 DIV - 37
----
-1

skipif mysql # not compatible
query I rowsort label-3306
SELECT 73 / - 37
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT DISTINCT ( + 56 ) * + 4 + - 78 + COUNT( * ) AS col0
----
147

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT ( + 56 ) * + 4 + - 78 + COUNT ( * ) AS col0
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-3308
SELECT ALL COUNT( * ) * - ( - + 87 ) * + + 89 * + 81, + 90 AS col0
----
627183
90

skipif mysql # not compatible
query II rowsort label-3308
SELECT ALL COUNT ( * ) * - ( - + 87 ) * + + 89 * + 81, + 90 AS col0
----
627183
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL + 42 + - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL + 42 + - COUNT ( * ) AS col1
----
41

query I rowsort
SELECT 49 + + + 26 AS col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT 93 DIV + - 91
----
-1

skipif mysql # not compatible
query I rowsort label-3311
SELECT 93 / + - 91
----
-1

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

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT 46 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3313
SELECT ALL - - CAST( 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL - - CAST ( 27 AS INTEGER )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3314
SELECT COUNT( DISTINCT + + 48 ) * + CAST( NULL AS SIGNED ) * - 88 * + 27 + - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT COUNT ( DISTINCT + + 48 ) * + CAST ( NULL AS INTEGER ) * - 88 * + 27 + - + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL - + CASE 7 WHEN COUNT( * ) THEN NULL WHEN - 29 THEN NULL WHEN + - 71 THEN + 85 ELSE 51 END
----
-51

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - + CASE 7 WHEN COUNT ( * ) THEN NULL WHEN - 29 THEN NULL WHEN + - 71 THEN + 85 ELSE 51 END
----
-51

query I rowsort
SELECT ALL + 10 - + + 55 AS col1
----
-45

query I rowsort
SELECT + 70 + + 34 - - 84 * + + 82
----
6992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT 41 - - 10 + + 8 + 8 * CAST( - 1 AS SIGNED ) * - 0 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3318
SELECT 41 - - 10 + + 8 + 8 * CAST ( - 1 AS INTEGER ) * - 0 AS col0
----
59

query I rowsort
SELECT - 36 + + 47
----
11

query I rowsort
SELECT ALL 75 - - 41 + - 59
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT COUNT( ALL 49 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3321
SELECT COUNT ( ALL 49 ) col1
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3323
SELECT 21 / + + CASE + - 18 WHEN + + 20 THEN 82 * + CAST( + 50 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT 21 / + + CASE + - 18 WHEN + + 20 THEN 82 * + CAST ( + 50 AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT + 28 * + - 42 AS col0
----
-1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3325
SELECT ( CAST( + COUNT( + + 2 ) AS SIGNED ) ) + + 46 AS col2, 32 + 10
----
47
42

skipif mysql # not compatible
query II rowsort label-3325
SELECT ( CAST ( + COUNT ( + + 2 ) AS INTEGER ) ) + + 46 AS col2, 32 + 10
----
47
42

query II rowsort
SELECT ALL 77 * 29, 10 AS col1
----
2233
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3327
SELECT DISTINCT 84 AS col1, ( - - ( - - 7 ) ) * - 87 + 98 * + - 65 * - 38 * COALESCE ( ( + 29 ), + SUM( 76 ) ) AS col0
----
84
7019131

skipif mysql # not compatible
query II rowsort label-3327
SELECT DISTINCT 84 AS col1, ( - - ( - - 7 ) ) * - 87 + 98 * + - 65 * - 38 * COALESCE ( ( + 29 ), + SUM ( 76 ) ) AS col0
----
84
7019131

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

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

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

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

query I rowsort
SELECT - 23 * + - 39
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL COUNT( * ) + 25 + - 36 + + COUNT( DISTINCT 31 ) * + - ( - 50 )
----
40

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL COUNT ( * ) + 25 + - 36 + + COUNT ( DISTINCT 31 ) * + - ( - 50 )
----
40

query I rowsort
SELECT DISTINCT - ( + ( - 46 ) ) + + + 83
----
129

query I rowsort
SELECT - 35 * + + 4 * ( - 84 ) col1
----
11760

query II rowsort
SELECT - 56 AS col2, + 90 * - - 35 AS col0
----
-56
3150

query I rowsort
SELECT ALL + 73 + - 39 AS col2
----
34

query I rowsort
SELECT DISTINCT NULLIF ( 56, + + 1 ) + 33 * - - NULLIF ( - 22, - - 93 )
----
-670

query I rowsort
SELECT - 99 + + - 75 AS col1
----
-174

query I rowsort
SELECT DISTINCT - 1 + + ( ( - - 79 ) )
----
78

query I rowsort
SELECT - 34 * + - 16 AS col0
----
544

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3340
SELECT 33, - 24 + COUNT( * ) DIV - 69 AS col2
----
33
-24

skipif mysql # not compatible
query II rowsort label-3340
SELECT 33, - 24 + COUNT ( * ) / - 69 AS col2
----
33
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3341
SELECT ALL - 11 * CASE + 13 WHEN 84 THEN NULL ELSE - CAST( NULL AS DECIMAL ) + - 5 - + 74 * + 68 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL - 11 * CASE + 13 WHEN 84 THEN NULL ELSE - CAST ( NULL AS REAL ) + - 5 - + 74 * + 68 + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 56 + + 76
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - COUNT( * ) - + 34 - 45 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-3343
SELECT - COUNT ( * ) - + 34 - 45 AS col1
----
-80

query I rowsort
SELECT DISTINCT 76 * - 24 + - 18
----
-1842

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT - + 54 DIV + 91 + + 56 DIV - 10 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3345
SELECT - + 54 / + 91 + + 56 / - 10 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3346
SELECT - COUNT( * ) + - 81, 13 col1
----
-82
13

skipif mysql # not compatible
query II rowsort label-3346
SELECT - COUNT ( * ) + - 81, 13 col1
----
-82
13

query I rowsort
SELECT DISTINCT + 83 * - ( - - 99 ) - 77 * 24 AS col0
----
-10065

query II rowsort
SELECT DISTINCT + - 89 * - 29 * ( + - 65 ) + - 84 + + - 65 - - 85 * + 21 - 91 AS col1, - 81 AS col2
----
-166220
-81

query I rowsort
SELECT DISTINCT + + NULLIF ( + 55, - 79 )
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT + + 78 + + + MIN( - 49 ) + + - 24
----
5

skipif mysql # not compatible
query I rowsort label-3351
SELECT + + 78 + + + MIN ( - 49 ) + + - 24
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL - 98 * + + 25 * + 49 + - - CASE + + 40 WHEN + MAX( + 29 ) THEN + 4 - + + CASE 50 WHEN - + COUNT( * ) + - - COUNT( * ) THEN - ( + 99 ) WHEN + 74 THEN + 7 END + 28 WHEN + MIN( 73 ) THEN - - 49 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL - 98 * + + 25 * + 49 + - - CASE + + 40 WHEN + MAX ( + 29 ) THEN + 4 - + + CASE 50 WHEN - + COUNT ( * ) + - - COUNT ( * ) THEN - ( + 99 ) WHEN + 74 THEN + 7 END + 28 WHEN + MIN ( 73 ) THEN - - 49 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL 64 * + 54 col0
----
3456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3354
SELECT - + 34 * + - COUNT( * ) / + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT - + 34 * + - COUNT ( * ) / + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT - 84 * - 46 - - 90 * - CASE - + 20 WHEN - - AVG ( + + 66 ) - - COUNT( * ) THEN + CAST( NULL AS SIGNED ) ELSE NULL END + CASE - + 18 WHEN + - CAST( NULL AS SIGNED ) * + MAX( ALL 94 ) * + 99 * + - 11 * + - COUNT( * ) THEN + MAX( + 27 ) ELSE - COUNT( * ) END * - + 13 + - 10 * + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT - 84 * - 46 - - 90 * - CASE - + 20 WHEN - - AVG ( + + 66 ) - - COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) ELSE NULL END + CASE - + 18 WHEN + - CAST ( NULL AS INTEGER ) * + MAX ( ALL 94 ) * + 99 * + - 11 * + - COUNT ( * ) THEN + MAX ( + 27 ) ELSE - COUNT ( * ) END * - + 13 + - 10 * + 87 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT + - 59 * COALESCE ( - + 46, + CASE - - 14 WHEN - MIN( + 56 ) THEN 52 WHEN + 58 THEN NULL ELSE NULL END * - 10, + COUNT( * ) * + 95 ) - 5
----
2709

skipif mysql # not compatible
query I rowsort label-3357
SELECT + - 59 * COALESCE ( - + 46, + CASE - - 14 WHEN - MIN ( + 56 ) THEN 52 WHEN + 58 THEN NULL ELSE NULL END * - 10, + COUNT ( * ) * + 95 ) - 5
----
2709

query II rowsort
SELECT ALL + 92 AS col2, 59 * - 43 AS col1
----
92
-2537

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL - 37 * + 86 + - - 37 + + 78 - + ( + 47 ) * + 99 * COUNT( * ) * 54
----
-254329

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - 37 * + 86 + - - 37 + + 78 - + ( + 47 ) * + 99 * COUNT ( * ) * 54
----
-254329

query I rowsort
SELECT + - 82 col0
----
-82

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

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

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

query I rowsort
SELECT + 35 + - ( ( - + 81 ) ) col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT COUNT( ALL 35 )
----
1

skipif mysql # not compatible
query I rowsort label-3364
SELECT COUNT ( ALL 35 )
----
1

query I rowsort
SELECT + 12 + - + 76 * - 6
----
468

query II rowsort
SELECT DISTINCT 17 + + - 3 AS col0, + 87 * 64
----
14
5568

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT ALL 76 + 95 DIV 40 + - 93
----
-15

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL 76 + 95 / 40 + - 93
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT + MIN( DISTINCT + 52 ) - - 30 + 18
----
100

skipif mysql # not compatible
query I rowsort label-3368
SELECT + MIN ( DISTINCT + 52 ) - - 30 + 18
----
100

query I rowsort
SELECT + 58 - - 18
----
76

query I rowsort
SELECT ALL NULLIF ( 52, ( - + 80 ) * + + 87 ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3371
SELECT + NULLIF ( + 80, - NULLIF ( - COALESCE ( + 39, + + 82 * - ( - 87 ) + CAST( - - CAST( - 17 AS DECIMAL ) AS SIGNED ), - 19 ), + - 16 / + + 26 * - 18 + COALESCE ( - MIN( - 21 ), - 28 ) + + - 98 + + 75 - - ( - 53 ) * - COUNT( * ) ) ) * ( + 67 ) AS col2
----
5360

skipif mysql # not compatible
query I rowsort label-3371
SELECT + NULLIF ( + 80, - NULLIF ( - COALESCE ( + 39, + + 82 * - ( - 87 ) + CAST ( - - CAST ( - 17 AS REAL ) AS INTEGER ), - 19 ), + - 16 / + + 26 * - 18 + COALESCE ( - MIN ( - 21 ), - 28 ) + + - 98 + + 75 - - ( - 53 ) * - COUNT ( * ) ) ) * ( + 67 ) AS col2
----
5360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3372
SELECT - 80 - + - 63 + + - 16 + - 37 * - 6 + + ( - 49 ) + - 0 + + 93 + + 45 * - 97 * - CAST( - - 24 AS SIGNED ) DIV COUNT( ALL - - 15 )
----
104993

skipif mysql # not compatible
query I rowsort label-3372
SELECT - 80 - + - 63 + + - 16 + - 37 * - 6 + + ( - 49 ) + - 0 + + 93 + + 45 * - 97 * - CAST ( - - 24 AS INTEGER ) / COUNT ( ALL - - 15 )
----
104993

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3373
SELECT ALL CASE + + CASE - 47 WHEN COALESCE ( + 99, - + 75 ) - - 17 THEN + COUNT( * ) + - COALESCE ( - - ( CAST( - ( - - COUNT( * ) ) AS SIGNED ) ), - + 92, 38 + - 53 ) + - CAST( - 3 AS SIGNED ) ELSE NULL END WHEN - CASE + COUNT( * ) WHEN + 76 DIV CASE + 96 WHEN 25 + + COUNT( * ) THEN NULLIF ( - 94, 73 ) - - ( + ( ( 8 ) ) ) DIV COUNT( * ) END * - 46 THEN 89 ELSE 96 + ( + 32 ) DIV - CASE 89 WHEN 3 THEN NULL WHEN + 83 THEN NULL WHEN + 35 THEN + 11 DIV - 92 + + 2 WHEN CAST( NULL AS SIGNED ) THEN NULL END END + 9 * - NULLIF ( + 24, COUNT( * ) ) THEN NULL WHEN NULLIF ( COUNT( * ), - 75 ) THEN NULL ELSE 37 + - 16 END DIV 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL CASE + + CASE - 47 WHEN COALESCE ( + 99, - + 75 ) - - 17 THEN + COUNT ( * ) + - COALESCE ( - - ( CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) ), - + 92, 38 + - 53 ) + - CAST ( - 3 AS INTEGER ) ELSE NULL END WHEN - CASE + COUNT ( * ) WHEN + 76 / CASE + 96 WHEN 25 + + COUNT ( * ) THEN NULLIF ( - 94, 73 ) - - ( + ( ( 8 ) ) ) / COUNT ( * ) END * - 46 THEN 89 ELSE 96 + ( + 32 ) / - CASE 89 WHEN 3 THEN NULL WHEN + 83 THEN NULL WHEN + 35 THEN + 11 / - 92 + + 2 WHEN CAST ( NULL AS INTEGER ) THEN NULL END END + 9 * - NULLIF ( + 24, COUNT ( * ) ) THEN NULL WHEN NULLIF ( COUNT ( * ), - 75 ) THEN NULL ELSE 37 + - 16 END / 50 AS col2
----
0

query I rowsort
SELECT - 29 + - 62 + + - 17 AS col2
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT + 28 DIV + 34 + - - 60 * - + 19 + + 74 DIV - 81
----
-1140

skipif mysql # not compatible
query I rowsort label-3375
SELECT + 28 / + 34 + - - 60 * - + 19 + + 74 / - 81
----
-1140

query I rowsort
SELECT - + 38 + 17 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT - + SUM( + 17 ) + 69
----
52

skipif mysql # not compatible
query I rowsort label-3377
SELECT - + SUM ( + 17 ) + 69
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT 63 * - 86 / - - CASE + - ( + + 46 ) WHEN + 13 + 19 THEN - 12 END + - - MIN( 91 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT 63 * - 86 / - - CASE + - ( + + 46 ) WHEN + 13 + 19 THEN - 12 END + - - MIN ( 91 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT - + 88 * - + CAST( 56 AS SIGNED ) * - 81 * 4 AS col1
----
-1596672

skipif mysql # not compatible
query I rowsort label-3379
SELECT - + 88 * - + CAST ( 56 AS INTEGER ) * - 81 * 4 AS col1
----
-1596672

query I rowsort
SELECT + 1 * + - 18 AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3381
SELECT ALL + + 95 DIV 6 + + 46 * - COUNT( * ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + + 95 / 6 + + 46 * - COUNT ( * ) col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3382
SELECT 50 + - 69 * - 70, - 54 + - CAST( NULL AS SIGNED ) * - - AVG ( 56 ) * - + 33 * 7 AS col2
----
4880
NULL

skipif mysql # not compatible
query II rowsort label-3382
SELECT 50 + - 69 * - 70, - 54 + - CAST ( NULL AS INTEGER ) * - - AVG ( 56 ) * - + 33 * 7 AS col2
----
4880
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL + 17 + + + COUNT( ALL + - 79 ) + - 0 * - + ( + 68 ) + + MIN( DISTINCT - + 43 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL + 17 + + + COUNT ( ALL + - 79 ) + - 0 * - + ( + 68 ) + + MIN ( DISTINCT - + 43 ) AS col1
----
-25

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

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL - MIN ( 61 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT 32 + - SUM( ALL + - 78 ) AS col0, 19 * + 57 * + COUNT( * ) * + 76
----
110
82308

skipif mysql # not compatible
query II rowsort label-3385
SELECT 32 + - SUM ( ALL + - 78 ) AS col0, 19 * + 57 * + COUNT ( * ) * + 76
----
110
82308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3386
SELECT + 88 * ( - - COUNT( * ) ) * 72 * + 48 * + - CAST( NULL AS SIGNED ) - COUNT( * ) - 90 + - 10 * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT + 88 * ( - - COUNT ( * ) ) * 72 * + 48 * + - CAST ( NULL AS INTEGER ) - COUNT ( * ) - 90 + - 10 * - 2
----
NULL

query I rowsort
SELECT DISTINCT 82 * + 14 * - 95
----
-109060

query I rowsort
SELECT 41 * + + 59 AS col2
----
2419

onlyif mysql # aggregate syntax: 
query II rowsort label-3389
SELECT COUNT( DISTINCT 66 ) + 20 AS col2, + 85
----
21
85

skipif mysql # not compatible
query II rowsort label-3389
SELECT COUNT ( DISTINCT 66 ) + 20 AS col2, + 85
----
21
85

query I rowsort
SELECT + 25 * + 69 + - 2 AS col1
----
1723

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT ALL + CAST( + - 43 AS SIGNED ) * + 7 * + - 39
----
11739

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL + CAST ( + - 43 AS INTEGER ) * + 7 * + - 39
----
11739

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT DISTINCT - NULLIF ( - 71, ( + 69 ) ) * + 34 - COUNT( * )
----
2413

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - NULLIF ( - 71, ( + 69 ) ) * + 34 - COUNT ( * )
----
2413

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT MIN( ALL + 41 ) + + - 74 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3393
SELECT MIN ( ALL + 41 ) + + - 74 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT 76 + ( - 52 ) + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3394
SELECT 76 + ( - 52 ) + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT ALL 40 - - 74
----
114

query II rowsort
SELECT 72, - 87 AS col1
----
72
-87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3398
SELECT CASE - 33 WHEN 76 THEN + - COUNT( * ) + + 34 WHEN - 14 THEN NULL ELSE + 36 END * - 51 + 1 + - NULLIF ( NULLIF ( + 98, + 7 ), - + 95 ) * + - CASE 48 WHEN - 12 THEN + 91 + - 78 * + + 90 + - + 86 * + 48 * + + 49 WHEN - 70 * MIN( + 89 ) + 40 THEN - COUNT( * ) END / 67 + + CAST( + 94 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT CASE - 33 WHEN 76 THEN + - COUNT ( * ) + + 34 WHEN - 14 THEN NULL ELSE + 36 END * - 51 + 1 + - NULLIF ( NULLIF ( + 98, + 7 ), - + 95 ) * + - CASE 48 WHEN - 12 THEN + 91 + - 78 * + + 90 + - + 86 * + 48 * + + 49 WHEN - 70 * MIN ( + 89 ) + 40 THEN - COUNT ( * ) END / 67 + + CAST ( + 94 AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 53, 80 + + + 66 AS col0
----
53
146

query I rowsort
SELECT 2 + + 57 AS col0
----
59

query I rowsort
SELECT DISTINCT 69 * + 51 AS col1
----
3519

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3402
SELECT ALL 27 col0, CAST( NULL AS DECIMAL ) * - 15 AS col0
----
27
NULL

skipif mysql # not compatible
query II rowsort label-3402
SELECT ALL 27 col0, CAST ( NULL AS REAL ) * - 15 AS col0
----
27
NULL

query I rowsort
SELECT DISTINCT 74 * - 59 AS col2
----
-4366

onlyif mysql # DIV for integer division: 
query I rowsort label-3404
SELECT ALL - COALESCE ( - 87, - + CASE + + 55 WHEN 72 THEN - - 26 + - 79 WHEN 12 THEN NULL ELSE + + 78 DIV + 2 END )
----
87

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - COALESCE ( - 87, - + CASE + + 55 WHEN 72 THEN - - 26 + - 79 WHEN 12 THEN NULL ELSE + + 78 / + 2 END )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3405
SELECT ALL - 22 * + 71 * 65 + - 80 + - - 68 + 12 - - COUNT( * ) * 51 DIV - 63 AS col1
----
-101530

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - 22 * + 71 * 65 + - 80 + - - 68 + 12 - - COUNT ( * ) * 51 / - 63 AS col1
----
-101530

query I rowsort
SELECT ALL NULLIF ( - 84, + 71 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT 93 + COUNT( * ) * - 31 - + + 40 - - + 35 - ( + 78 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3407
SELECT 93 + COUNT ( * ) * - 31 - + + 40 - - + 35 - ( + 78 ) AS col0
----
-21

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

skipif mysql # not compatible
query I rowsort label-3408
SELECT 96 * + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL - MIN( DISTINCT - 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL - MIN ( DISTINCT - 65 ) AS col0
----
65

query I rowsort
SELECT NULLIF ( 17, + - ( + 55 ) * - 80 ) AS col1
----
17

query I rowsort
SELECT 86 + - 9
----
77

query I rowsort
SELECT 73 * + 98 AS col2
----
7154

query I rowsort
SELECT DISTINCT - + ( + 47 ) * + 12 * - - 73 AS col1
----
-41172

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT DISTINCT COALESCE ( + 72, + COUNT( * ), - + 11 + + MIN( ALL - 75 ) - ( - 32 ) + - MAX( DISTINCT - 30 ) * + 40 * - 69 - + 93 ) + - ( + 82 )
----
-10

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT COALESCE ( + 72, + COUNT ( * ), - + 11 + + MIN ( ALL - 75 ) - ( - 32 ) + - MAX ( DISTINCT - 30 ) * + 40 * - 69 - + 93 ) + - ( + 82 )
----
-10

query I rowsort
SELECT DISTINCT 26 + + + 0 * + 80 * + 92 * + 54 * - 92 + - 73
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT - CASE 63 WHEN + 65 * 71 * - COUNT( * ) * + 72 + 33 THEN + ( + - ( + ( + 70 ) ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3416
SELECT - CASE 63 WHEN + 65 * 71 * - COUNT ( * ) * + 72 + 33 THEN + ( + - ( + ( + 70 ) ) ) END col2
----
NULL

query II rowsort
SELECT - 33, + ( + 42 ) - + 94 AS col0
----
-33
-52

query II rowsort
SELECT ALL + 87 + + - 95 AS col1, 64 AS col1
----
-8
64

query I rowsort
SELECT 48 * 79 AS col0
----
3792

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT DISTINCT + 69 + - 67 + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT + 69 + - 67 + - COUNT ( * ) AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-3421
SELECT 67 / - - COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT DISTINCT - 69 DIV + 12
----
-5

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT - 69 / + 12
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT 57 + + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-3423
SELECT 57 + + COUNT ( * )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT 92 DIV 58 * - - 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3424
SELECT 92 / 58 * - - 30 AS col0
----
30

query I rowsort
SELECT ALL - 52 * 31 * + 73 * 15 * - + 17
----
30007380

query I rowsort
SELECT 63 * 64
----
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3427
SELECT + ( - 76 ) * + + 77 * - - 16 * - - 85 * + 49 + COALESCE ( - + 12, + - 90 + COALESCE ( + 64, 66 + - - COUNT( * ), + 76, + 92 * 32 ) + 99 - - 51 - + ( + 88 ), + 25 DIV + - 6 + + 40 + + CAST( NULL AS SIGNED ), - 25 )
----
-389977292

skipif mysql # not compatible
query I rowsort label-3427
SELECT + ( - 76 ) * + + 77 * - - 16 * - - 85 * + 49 + COALESCE ( - + 12, + - 90 + COALESCE ( + 64, 66 + - - COUNT ( * ), + 76, + 92 * 32 ) + 99 - - 51 - + ( + 88 ), + 25 / + - 6 + + 40 + + CAST ( NULL AS INTEGER ), - 25 )
----
-389977292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT 76 + + - 27 DIV 65 + + 96 + + COUNT( DISTINCT + 11 ) col1
----
173

skipif mysql # not compatible
query I rowsort label-3428
SELECT 76 + + - 27 / 65 + + 96 + + COUNT ( DISTINCT + 11 ) col1
----
173

onlyif mysql # DIV for integer division: 
query II rowsort label-3429
SELECT 82 DIV + 10, 93 AS col0
----
8
93

skipif mysql # not compatible
query II rowsort label-3429
SELECT 82 / + 10, 93 AS col0
----
8
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT ALL MAX( DISTINCT + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL MAX ( DISTINCT + 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT SUM( - 24 ) - - MIN( 78 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3431
SELECT SUM ( - 24 ) - - MIN ( 78 ) AS col1
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3432
SELECT + COUNT( * ) + + 38 + + 71 DIV + 91 AS col1, 96 + - 30 - + COALESCE ( + + 38, - 79, - + 17 - - 12 )
----
39
28

skipif mysql # not compatible
query II rowsort label-3432
SELECT + COUNT ( * ) + + 38 + + 71 / + 91 AS col1, 96 + - 30 - + COALESCE ( + + 38, - 79, - + 17 - - 12 )
----
39
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3433
SELECT - CAST( NULL AS DECIMAL ) * + - 79 * + + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT - CAST ( NULL AS REAL ) * + - 79 * + + 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT + 43 + - 22 + - 5 + + COUNT( * ) * - 88 + 43 col0
----
-29

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + 43 + - 22 + - 5 + + COUNT ( * ) * - 88 + 43 col0
----
-29

query I rowsort
SELECT - 87 * 91 * + - 72
----
570024

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3437
SELECT - + CASE + 82 WHEN + - 19 + - CAST( CASE 41 WHEN - 93 THEN + COUNT( * ) END AS DECIMAL ) + - 60 * - + 46 * + 26 THEN 47 * - 85 WHEN - SUM( 11 ) * - 92 + - 56 + + + 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT - + CASE + 82 WHEN + - 19 + - CAST ( CASE 41 WHEN - 93 THEN + COUNT ( * ) END AS REAL ) + - 60 * - + 46 * + 26 THEN 47 * - 85 WHEN - SUM ( 11 ) * - 92 + - 56 + + + 66 THEN NULL END
----
NULL

query I rowsort
SELECT + - 72 + + 67 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT + + 55 * - - MAX( - + 29 )
----
-1595

skipif mysql # not compatible
query I rowsort label-3439
SELECT + + 55 * - - MAX ( - + 29 )
----
-1595

query I rowsort
SELECT ALL 92 + - 75 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL CASE 72 WHEN - + COUNT( * ) THEN 32 - - 30 + + 44 / 15 END * 11 + + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL CASE 72 WHEN - + COUNT ( * ) THEN 32 - - 30 + + 44 / 15 END * 11 + + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT + 59 * + 11 / CASE - - 75 WHEN + - COUNT( * ) + 98 THEN 96 * - 83 + - 50 + 42 + - + 49 * + 50 * - 76 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT + 59 * + 11 / CASE - - 75 WHEN + - COUNT ( * ) + 98 THEN 96 * - 83 + - 50 + 42 + - + 49 * + 50 * - 76 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3443
SELECT + 3 + COUNT( * ), 54 * - 35 col0
----
4
-1890

skipif mysql # not compatible
query II rowsort label-3443
SELECT + 3 + COUNT ( * ), 54 * - 35 col0
----
4
-1890

onlyif mysql # aggregate syntax: 
query II rowsort label-3444
SELECT + CASE - - 27 WHEN - 81 / - NULLIF ( 87, - 14 * - - 70 * + ( 86 ) ) * - 21 + 83 / + COUNT( * ) + + COUNT( * ) THEN + - 2 WHEN - 99 * COUNT( * ) THEN + - 52 * - 79 - - AVG ( - 15 ) / COUNT( * ) * 69 ELSE NULL END, + 48 * + 85 + - 21 AS col0
----
NULL
4059

skipif mysql # not compatible
query II rowsort label-3444
SELECT + CASE - - 27 WHEN - 81 / - NULLIF ( 87, - 14 * - - 70 * + ( 86 ) ) * - 21 + 83 / + COUNT ( * ) + + COUNT ( * ) THEN + - 2 WHEN - 99 * COUNT ( * ) THEN + - 52 * - 79 - - AVG ( - 15 ) / COUNT ( * ) * 69 ELSE NULL END, + 48 * + 85 + - 21 AS col0
----
NULL
4059

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT ALL 89 * + + 28 * 71 + - + CAST( NULL AS SIGNED ) + + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL 89 * + + 28 * 71 + - + CAST ( NULL AS INTEGER ) + + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT 28 * - + 46 + MAX( DISTINCT 84 )
----
-1204

skipif mysql # not compatible
query I rowsort label-3446
SELECT 28 * - + 46 + MAX ( DISTINCT 84 )
----
-1204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3447
SELECT DISTINCT - 56 * - 80 * 88 + + 84 - CASE - - 11 WHEN + COUNT( DISTINCT + - 19 ) + + - 19 THEN 37 / - 9 + + 65 + - 88 + - 1 + CAST( - - COALESCE ( + - ( - - 30 ), + 66 - + 40 * - 61 / 2, - - 76 ) AS SIGNED ) WHEN + CASE + + MIN( - 25 ) WHEN ( COUNT( * ) ) + 83 / + 54 THEN 65 WHEN ( 72 ) + 7 THEN NULL END THEN - 42 / COALESCE ( 21, + 8 - + 60 * 34 ) + 69 * + 36 ELSE NULL END + 59 * 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT - 56 * - 80 * 88 + + 84 - CASE - - 11 WHEN + COUNT ( DISTINCT + - 19 ) + + - 19 THEN 37 / - 9 + + 65 + - 88 + - 1 + CAST ( - - COALESCE ( + - ( - - 30 ), + 66 - + 40 * - 61 / 2, - - 76 ) AS INTEGER ) WHEN + CASE + + MIN ( - 25 ) WHEN ( COUNT ( * ) ) + 83 / + 54 THEN 65 WHEN ( 72 ) + 7 THEN NULL END THEN - 42 / COALESCE ( 21, + 8 - + 60 * 34 ) + 69 * + 36 ELSE NULL END + 59 * 89 AS col1
----
NULL

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

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

query I rowsort
SELECT + 36 * 53 + + 20
----
1928

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT 93 * 40 + COUNT( * ) + COUNT( * )
----
3722

skipif mysql # not compatible
query I rowsort label-3450
SELECT 93 * 40 + COUNT ( * ) + COUNT ( * )
----
3722

query I rowsort
SELECT + 16 * 32 col1
----
512

query I rowsort
SELECT - 81 + 23
----
-58

query II rowsort
SELECT + 61 col2, - 92
----
61
-92

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

skipif mysql # not compatible
query II rowsort label-3454
SELECT COUNT ( * ) AS col0, 85 AS col1
----
1
85

query I rowsort
SELECT ALL 57 * + 47
----
2679

query I rowsort
SELECT - 45 + + COALESCE ( 10, + 8 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT ALL MAX( DISTINCT 76 )
----
76

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL MAX ( DISTINCT 76 )
----
76

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

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

query I rowsort
SELECT ALL - 94 * 25 col2
----
-2350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3460
SELECT ALL - 21 / MIN( CAST( NULL AS SIGNED ) ), 81 AS col0
----
NULL
81

skipif mysql # not compatible
query II rowsort label-3460
SELECT ALL - 21 / MIN ( CAST ( NULL AS INTEGER ) ), 81 AS col0
----
NULL
81

query I rowsort
SELECT - + 0 + - 76 col0
----
-76

query I rowsort
SELECT - 18 + - + 68
----
-86

query II rowsort
SELECT - 26 AS col0, 56 AS col2
----
-26
56

query I rowsort
SELECT - 62 * + 41 AS col0
----
-2542

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

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

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

query I rowsort
SELECT ALL + 81 + + - 22 AS col2
----
59

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

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

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

query I rowsort
SELECT DISTINCT - 32 + + + 56 + ( 78 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT + - COUNT( * ) + - 32 + + ( 90 )
----
57

skipif mysql # not compatible
query I rowsort label-3471
SELECT + - COUNT ( * ) + - 32 + + ( 90 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT - COUNT( ALL + 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3472
SELECT - COUNT ( ALL + 44 ) AS col2
----
-1

query I rowsort
SELECT ALL - 38 + - 19
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-3474
SELECT + + 99 * - + 93 + + COUNT( * ) AS col1, 38 + + + 23
----
-9206
61

skipif mysql # not compatible
query II rowsort label-3474
SELECT + + 99 * - + 93 + + COUNT ( * ) AS col1, 38 + + + 23
----
-9206
61

query I rowsort
SELECT ALL + + 84 col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT ALL + + 94 DIV - 7 + - + 77 - + 29
----
-119

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + + 94 / - 7 + - + 77 - + 29
----
-119

query I rowsort
SELECT ALL 23 * + + 7 AS col1
----
161

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3479
SELECT + COUNT( DISTINCT - 73 ) DIV + 9 col0
----
0

skipif mysql # not compatible
query I rowsort label-3479
SELECT + COUNT ( DISTINCT - 73 ) / + 9 col0
----
0

query I rowsort
SELECT DISTINCT 58 * + 78 AS col0
----
4524

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT + CASE 23 WHEN + - 75 / + 46 + - NULLIF ( - 39, + 75 + - - COUNT( * ) + - 13 / 20 / 22 ) + 6 * - CASE - 86 WHEN + - 74 * + 83 + + + 58 + - 39 * - MAX( DISTINCT - COALESCE ( + 82, - - 1 ) ) THEN + COUNT( * ) + 13 / - 7 + - 6 - - 59 WHEN + ( + 76 ) * - ( 58 * 21 + + 73 ) THEN - 13 ELSE NULL END THEN + NULLIF ( + COUNT( * ), 6 ) WHEN 30 THEN NULL WHEN NULLIF ( 43, MIN( - 98 ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT + CASE 23 WHEN + - 75 / + 46 + - NULLIF ( - 39, + 75 + - - COUNT ( * ) + - 13 / 20 / 22 ) + 6 * - CASE - 86 WHEN + - 74 * + 83 + + + 58 + - 39 * - MAX ( DISTINCT - COALESCE ( + 82, - - 1 ) ) THEN + COUNT ( * ) + 13 / - 7 + - 6 - - 59 WHEN + ( + 76 ) * - ( 58 * 21 + + 73 ) THEN - 13 ELSE NULL END THEN + NULLIF ( + COUNT ( * ), 6 ) WHEN 30 THEN NULL WHEN NULLIF ( 43, MIN ( - 98 ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + CASE 0 WHEN - ( + ( - 16 ) ) THEN NULL WHEN - COALESCE ( + 57, + COUNT( * ) ) THEN - - 51 + + 25 * ( + 85 ) * + + 44 * - 81 END * - 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3482
SELECT + CASE 0 WHEN - ( + ( - 16 ) ) THEN NULL WHEN - COALESCE ( + 57, + COUNT ( * ) ) THEN - - 51 + + 25 * ( + 85 ) * + + 44 * - 81 END * - 87 AS col0
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3485
SELECT ( + CASE - MAX( DISTINCT 98 ) WHEN + MIN( ALL - CAST( NULL AS DECIMAL ) ) + - + 82 / - + 89 + - - 66 + + + 81 / 2 THEN CASE - COUNT( 75 ) WHEN CASE 69 WHEN CAST( + 45 AS SIGNED ) THEN COUNT( * ) WHEN - 43 THEN NULL END * - 43 THEN - COUNT( * ) END ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT ( + CASE - MAX ( DISTINCT 98 ) WHEN + MIN ( ALL - CAST ( NULL AS REAL ) ) + - + 82 / - + 89 + - - 66 + + + 81 / 2 THEN CASE - COUNT ( 75 ) WHEN CASE 69 WHEN CAST ( + 45 AS INTEGER ) THEN COUNT ( * ) WHEN - 43 THEN NULL END * - 43 THEN - COUNT ( * ) END ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + 93 - MIN( ALL - - ( - + NULLIF ( 90, 14 ) ) ) AS col1
----
183

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 93 - MIN ( ALL - - ( - + NULLIF ( 90, 14 ) ) ) AS col1
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT ALL 75 DIV ( - 22 )
----
-3

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL 75 / ( - 22 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT DISTINCT 10 DIV - 33 col1
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT 10 / - 33 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT ALL + CASE - 25 WHEN - - 63 THEN - 24 WHEN - 62 + - 26 THEN - ( - ( + - 60 ) ) ELSE NULL END, - 32 * SUM( DISTINCT ( - 8 ) ) AS col2
----
NULL
256

skipif mysql # not compatible
query II rowsort label-3489
SELECT ALL + CASE - 25 WHEN - - 63 THEN - 24 WHEN - 62 + - 26 THEN - ( - ( + - 60 ) ) ELSE NULL END, - 32 * SUM ( DISTINCT ( - 8 ) ) AS col2
----
NULL
256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT NULLIF ( - - COUNT( * ), - 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3491
SELECT NULLIF ( - - COUNT ( * ), - 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3492
SELECT + 27 * + - 65 col1, MAX( + + 43 ) AS col1
----
-1755
43

skipif mysql # not compatible
query II rowsort label-3492
SELECT + 27 * + - 65 col1, MAX ( + + 43 ) AS col1
----
-1755
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3493
SELECT - - 90 * + CAST( + 9 AS SIGNED ) + - + ( + + 36 ) + 18 - - + 7 * 9 - - 96 * + 52 * 97 - SUM( + + 88 ) col0
----
484991

skipif mysql # not compatible
query I rowsort label-3493
SELECT - - 90 * + CAST ( + 9 AS INTEGER ) + - + ( + + 36 ) + 18 - - + 7 * 9 - - 96 * + 52 * 97 - SUM ( + + 88 ) col0
----
484991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL + + 18 * 66 + 61 + + - 97 * - 94 + + - CAST( NULL AS SIGNED ) + + - 88 * + - 72 * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + + 18 * 66 + 61 + + - 97 * - 94 + + - CAST ( NULL AS INTEGER ) + + - 88 * + - 72 * 8
----
NULL

query I rowsort
SELECT CASE 29 WHEN - 78 THEN - 43 WHEN + 63 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3496
SELECT ALL + 38 AS col1, 3 DIV 49 + - + COUNT( * ) + - SUM( ALL + 13 ) + COUNT( * ) DIV - - 45
----
38
-14

skipif mysql # not compatible
query II rowsort label-3496
SELECT ALL + 38 AS col1, 3 / 49 + - + COUNT ( * ) + - SUM ( ALL + 13 ) + COUNT ( * ) / - - 45
----
38
-14

query I rowsort
SELECT ( - - 61 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3498
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - NULLIF ( - 10, MIN( ALL + - 61 ) ) * + + AVG ( + 46 ) * + + 61 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - NULLIF ( - 10, MIN ( ALL + - 61 ) ) * + + AVG ( + 46 ) * + + 61 * + 89
----
NULL

query II rowsort
SELECT DISTINCT - 99 col0, 33 AS col1
----
-99
33

query II rowsort
SELECT ALL + 15 AS col2, NULLIF ( - - 79, 60 / - 6 + + 40 ) AS col0
----
15
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3501
SELECT ALL - + COUNT( * ) + 1 DIV - 31 + - - 2 + 97 + + + COUNT( * ) * + 39 col1
----
137

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL - + COUNT ( * ) + 1 / - 31 + - - 2 + 97 + + + COUNT ( * ) * + 39 col1
----
137

query II rowsort
SELECT ALL 78 col0, 50 AS col1
----
78
50

query I rowsort
SELECT 20 + + - 21 * + 58
----
-1198

onlyif mysql # aggregate syntax: 
query II rowsort label-3504
SELECT 85, - 40 + NULLIF ( + 29, + COUNT( DISTINCT + + ( + 52 ) ) * - + ( - + COALESCE ( SUM( + + 60 ), - 7 ) ) * 47 ) AS col0
----
85
-11

skipif mysql # not compatible
query II rowsort label-3504
SELECT 85, - 40 + NULLIF ( + 29, + COUNT ( DISTINCT + + ( + 52 ) ) * - + ( - + COALESCE ( SUM ( + + 60 ), - 7 ) ) * 47 ) AS col0
----
85
-11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED ) * - SUM( ALL + - 48 ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * - SUM ( ALL + - 48 ) * - 59
----
NULL

query I rowsort
SELECT DISTINCT + - 5 - + ( - + 95 )
----
90

query I rowsort
SELECT ALL - 48 * 96 AS col0
----
-4608

onlyif mysql # aggregate syntax: 
query II rowsort label-3509
SELECT DISTINCT - 26 - + 44, - COUNT( * ) AS col1
----
-70
-1

skipif mysql # not compatible
query II rowsort label-3509
SELECT DISTINCT - 26 - + 44, - COUNT ( * ) AS col1
----
-70
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT 57 + - 20 - - + ( COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-3511
SELECT 57 + - 20 - - + ( COUNT ( * ) )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3512
SELECT + ( + 49 ) * + 55 + MIN( ALL - + 76 ) - + + 79 * 46 * - + 0 DIV + COUNT( * ) AS col1
----
2619

skipif mysql # not compatible
query I rowsort label-3512
SELECT + ( + 49 ) * + 55 + MIN ( ALL - + 76 ) - + + 79 * 46 * - + 0 / + COUNT ( * ) AS col1
----
2619

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT DISTINCT 5 * - MAX( - - 17 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT 5 * - MAX ( - - 17 ) AS col0
----
-85

query I rowsort
SELECT DISTINCT - NULLIF ( - ( + ( + 31 ) ), 73 )
----
31

query I rowsort
SELECT DISTINCT 98 + - 56 * 75 AS col2
----
-4102

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

skipif mysql # not compatible
query I rowsort label-3516
SELECT COALESCE ( 13, COUNT ( * ) + - + 22 - 84 / 24 ) / + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ALL COUNT( * ) + + - 11
----
-10

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL COUNT ( * ) + + - 11
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT 36 + - + 47 * - COUNT( - - 21 ) * - 28 AS col0
----
-1280

skipif mysql # not compatible
query I rowsort label-3518
SELECT 36 + - + 47 * - COUNT ( - - 21 ) * - 28 AS col0
----
-1280

query I rowsort
SELECT ALL 97 + - 10 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT 17 * - 45 + 27 * 32 * 20 * - COUNT( 21 ) col0
----
-18045

skipif mysql # not compatible
query I rowsort label-3520
SELECT 17 * - 45 + 27 * 32 * 20 * - COUNT ( 21 ) col0
----
-18045

query I rowsort
SELECT ALL 97 + COALESCE ( + 36, 90 ) * + + 39 + + 5 AS col1
----
1506

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT - + SUM( DISTINCT - - 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3522
SELECT - + SUM ( DISTINCT - - 30 ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT DISTINCT 41 DIV - - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT 41 / - - 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3524
SELECT + 33 * + COUNT( * ), - 10 AS col1
----
33
-10

skipif mysql # not compatible
query II rowsort label-3524
SELECT + 33 * + COUNT ( * ), - 10 AS col1
----
33
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT - COUNT( * ) + - 85 * - 43 + ( - 45 ) AS col2
----
3609

skipif mysql # not compatible
query I rowsort label-3525
SELECT - COUNT ( * ) + - 85 * - 43 + ( - 45 ) AS col2
----
3609

query I rowsort
SELECT 78 + 7
----
85

query I rowsort
SELECT ALL 99 * 64 - - 9 AS col1
----
6345

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT 65 * - + COUNT( ALL - 21 ) * - - 73 * + + 50 * - 60
----
14235000

skipif mysql # not compatible
query I rowsort label-3528
SELECT 65 * - + COUNT ( ALL - 21 ) * - - 73 * + + 50 * - 60
----
14235000

onlyif mysql # aggregate syntax: 
query II rowsort label-3529
SELECT DISTINCT + 10 - - 8 AS col2, - CASE - + ( + MAX( ALL 35 ) ) WHEN + 36 THEN + COUNT( * ) * - + 57 * + 57 + - + COUNT( * ) ELSE NULL END
----
18
NULL

skipif mysql # not compatible
query II rowsort label-3529
SELECT DISTINCT + 10 - - 8 AS col2, - CASE - + ( + MAX ( ALL 35 ) ) WHEN + 36 THEN + COUNT ( * ) * - + 57 * + 57 + - + COUNT ( * ) ELSE NULL END
----
18
NULL

query I rowsort
SELECT ALL 66 * - 47 + + 83 + 61
----
-2958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3531
SELECT + ( + 58 ) + + NULLIF ( + CAST( - + COALESCE ( - 38, COALESCE ( - - COUNT( * ), AVG ( ALL 51 ) + + 57 + 97 ) ) AS SIGNED ), - 88 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3531
SELECT + ( + 58 ) + + NULLIF ( + CAST ( - + COALESCE ( - 38, COALESCE ( - - COUNT ( * ), AVG ( ALL 51 ) + + 57 + 97 ) ) AS INTEGER ), - 88 ) AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT DISTINCT + SUM( - 64 ) DIV - + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT + SUM ( - 64 ) / - + 71 AS col0
----
0

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

query I rowsort
SELECT 86 * 69 * ( - + 35 )
----
-207690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3535
SELECT CAST( - - SUM( DISTINCT + - 11 ) AS SIGNED ) * - 77 - - COUNT( * ) - - 81 * + - COUNT( * ) DIV - COUNT( * ) AS col1
----
929

skipif mysql # not compatible
query I rowsort label-3535
SELECT CAST ( - - SUM ( DISTINCT + - 11 ) AS INTEGER ) * - 77 - - COUNT ( * ) - - 81 * + - COUNT ( * ) / - COUNT ( * ) AS col1
----
929

query I rowsort
SELECT 92 + + 24
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT DISTINCT + 24 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT + 24 / - 54
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT - 30 DIV 94 + - + 90 * + 18
----
-1620

skipif mysql # not compatible
query I rowsort label-3538
SELECT - 30 / 94 + - + 90 * + 18
----
-1620

query I rowsort
SELECT DISTINCT 99 * ( - 79 )
----
-7821

query I rowsort
SELECT ALL + 76 * + - 67 + - 58 AS col2
----
-5150

query II rowsort
SELECT ALL - 27 AS col2, 40 + 62
----
-27
102

query I rowsort
SELECT ALL + 7 * 86 AS col0
----
602

query I rowsort
SELECT 11 * 11
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT ALL 85 * + + 0 + - + SUM( - 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3544
SELECT ALL 85 * + + 0 + - + SUM ( - 80 ) AS col2
----
80

query II rowsort
SELECT + 11 AS col0, 88 * - 63 AS col2
----
11
-5544

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3547
SELECT DISTINCT 97 * - - 62 * + - ( - COUNT( * ) ) + + COUNT( - - 43 ), 48 AS col2
----
6015
48

skipif mysql # not compatible
query II rowsort label-3547
SELECT DISTINCT 97 * - - 62 * + - ( - COUNT ( * ) ) + + COUNT ( - - 43 ), 48 AS col2
----
6015
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3548
SELECT ALL + COUNT( * ) * + COUNT( * ) * + MIN( DISTINCT 30 ) * - ( MAX( DISTINCT 90 ) ) - - 14 * 30 DIV - 88 + + 74 * + 2 AS col1
----
-2556

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * + MIN ( DISTINCT 30 ) * - ( MAX ( DISTINCT 90 ) ) - - 14 * 30 / - 88 + + 74 * + 2 AS col1
----
-2556

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT DISTINCT + MAX( + + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT + MAX ( + + 14 )
----
14

query I rowsort
SELECT DISTINCT + - 6 * - - 32
----
-192

query I rowsort
SELECT ALL + + 55 * - 26 col2
----
-1430

query I rowsort
SELECT - + 28 + 11
----
-17

query I rowsort
SELECT - 31 + - 94
----
-125

query I rowsort
SELECT + 0 - 46 col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT - MIN( 30 ) * + 96 + - 35 col1
----
-2915

skipif mysql # not compatible
query I rowsort label-3555
SELECT - MIN ( 30 ) * + 96 + - 35 col1
----
-2915

query II rowsort
SELECT - + 47, - 1 AS col1
----
-47
-1

query I rowsort
SELECT + 53 * - 75 AS col2
----
-3975

query I rowsort
SELECT + - 56 * 93
----
-5208

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3559
SELECT ALL 24, 60 * + - NULLIF ( MAX( + 39 ), COUNT( * ) ) + 91 DIV 99 AS col0
----
24
-2340

skipif mysql # not compatible
query II rowsort label-3559
SELECT ALL 24, 60 * + - NULLIF ( MAX ( + 39 ), COUNT ( * ) ) + 91 / 99 AS col0
----
24
-2340

query I rowsort
SELECT DISTINCT - 39 - - 43
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT ALL CAST( NULL AS SIGNED ) / 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL CAST ( NULL AS INTEGER ) / 16
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3562
SELECT + - 12 + - - CASE - 0 WHEN - 49 THEN - 2 * - + CAST( NULL AS SIGNED ) + + 13 ELSE + - CAST( NULL AS SIGNED ) END + ( - 85 ) * 35 / - - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT + - 12 + - - CASE - 0 WHEN - 49 THEN - 2 * - + CAST ( NULL AS INTEGER ) + + 13 ELSE + - CAST ( NULL AS INTEGER ) END + ( - 85 ) * 35 / - - 11 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3563
SELECT ALL 59 DIV - 13 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL 59 / - 13 AS col2
----
-4

query II rowsort
SELECT - - 52 col0, 78 col2
----
52
78

query II rowsort
SELECT + 87 AS col2, - 70 AS col1
----
87
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3567
SELECT + NULLIF ( + COALESCE ( - ( 11 ), - + 74 * + + 56 ), 10 + + - 27 + - CASE + + 27 WHEN - 66 THEN NULL WHEN - - 58 THEN + - 27 ELSE - - 0 * - 27 * + - COALESCE ( - 60, + - CAST( NULL AS SIGNED ) * COALESCE ( - COALESCE ( - 65, + + 5, 31 + - + 66 ), COALESCE ( 48, - MAX( ALL - + ( 91 ) ) ) * - CASE WHEN NOT NULL <= 53 + - 72 THEN NULL WHEN NULL >= NULL THEN - NULLIF ( SUM( DISTINCT + 56 ), - 55 ) END, 86 / - 56 ) ) END * + 71 * + 58 ) * 13 AS col0
----
-143

skipif mysql # not compatible
query I rowsort label-3567
SELECT + NULLIF ( + COALESCE ( - ( 11 ), - + 74 * + + 56 ), 10 + + - 27 + - CASE + + 27 WHEN - 66 THEN NULL WHEN - - 58 THEN + - 27 ELSE - - 0 * - 27 * + - COALESCE ( - 60, + - CAST ( NULL AS INTEGER ) * COALESCE ( - COALESCE ( - 65, + + 5, 31 + - + 66 ), COALESCE ( 48, - MAX ( ALL - + ( 91 ) ) ) * - CASE WHEN NOT NULL <= 53 + - 72 THEN NULL WHEN NULL >= NULL THEN - NULLIF ( SUM ( DISTINCT + 56 ), - 55 ) END, 86 / - 56 ) ) END * + 71 * + 58 ) * 13 AS col0
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-3568
SELECT - 6 * + - 99 col2, + ( + COUNT( * ) ) AS col1
----
594
1

skipif mysql # not compatible
query II rowsort label-3568
SELECT - 6 * + - 99 col2, + ( + COUNT ( * ) ) AS col1
----
594
1

query I rowsort
SELECT - COALESCE ( + + 61, + + 55 * 28 * - 5 ) AS col2
----
-61

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT ALL + 75 DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL + 75 / - 70
----
-1

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

skipif mysql # not compatible
query I rowsort label-3573
SELECT 66 / - 61 + + COUNT ( * )
----
0

query I rowsort
SELECT 30 * + 91 - + 53 col0
----
2677

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT - 44 / CASE - - 95 WHEN + + 1 + + 63 THEN NULL WHEN + 57 THEN 99 END * 46 + - - 72 - + COALESCE ( 86, + 71, ( - + 60 ) + - - SUM( DISTINCT + - 8 ) ) + + - COALESCE ( + - COUNT( * ), + 93 + - 53, - 5 + 50 ) * + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3575
SELECT - 44 / CASE - - 95 WHEN + + 1 + + 63 THEN NULL WHEN + 57 THEN 99 END * 46 + - - 72 - + COALESCE ( 86, + 71, ( - + 60 ) + - - SUM ( DISTINCT + - 8 ) ) + + - COALESCE ( + - COUNT ( * ), + 93 + - 53, - 5 + 50 ) * + - 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT 39 * 15 / - CAST( NULL AS SIGNED ) * + + 99 + - + ( + - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT 39 * 15 / - CAST ( NULL AS INTEGER ) * + + 99 + - + ( + - 51 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT - 92 DIV + ( + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 92 / + ( + 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL + 39 * + CASE - + 74 WHEN - + 68 + + MIN( ALL + 2 ) THEN - 35 END + ( - + ( - 58 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL + 39 * + CASE - + 74 WHEN - + 68 + + MIN ( ALL + 2 ) THEN - 35 END + ( - + ( - 58 ) ) AS col0
----
NULL

query I rowsort
SELECT - 39 * 10 AS col0
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL 45 * + NULLIF ( MAX( 89 ), + 67 - - 66 + + 64 - ( + MIN( 81 ) ) )
----
4005

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL 45 * + NULLIF ( MAX ( 89 ), + 67 - - 66 + + 64 - ( + MIN ( 81 ) ) )
----
4005

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT + MAX( + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT + MAX ( + 31 )
----
31

query II rowsort
SELECT DISTINCT - CASE 51 WHEN - 61 THEN NULL WHEN + 83 - - 59 THEN - 99 END * + - 84 AS col2, 39 AS col1
----
NULL
39

query I rowsort
SELECT ALL - 77 * - - 18 - + 70
----
-1456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3584
SELECT DISTINCT - - ( + SUM( 87 ) ) DIV 9 col0
----
9

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT - - ( + SUM ( 87 ) ) / 9 col0
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3585
SELECT - 1 DIV - CAST( - - 69 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3585
SELECT - 1 / - CAST ( - - 69 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + + 48 * + 29 + + + COUNT( ALL - + 83 ) + - ( 52 )
----
1341

skipif mysql # not compatible
query I rowsort label-3586
SELECT + + 48 * + 29 + + + COUNT ( ALL - + 83 ) + - ( 52 )
----
1341

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT NULLIF ( - + 87, - COUNT( + ( - 81 ) ) * - - 57 * + AVG ( - 60 ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3587
SELECT NULLIF ( - + 87, - COUNT ( + ( - 81 ) ) * - - 57 * + AVG ( - 60 ) ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT + 98 + - MAX( + 64 ) + - 17 AS col1, - 56 + - COUNT( * )
----
17
-57

skipif mysql # not compatible
query II rowsort label-3588
SELECT + 98 + - MAX ( + 64 ) + - 17 AS col1, - 56 + - COUNT ( * )
----
17
-57

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

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

query I rowsort
SELECT ALL + ( 64 ) col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3592
SELECT + MIN( CAST( + CASE - + 23 WHEN + - 5 THEN + 61 WHEN + - 8 THEN 69 ELSE NULL END AS SIGNED ) ) * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT + MIN ( CAST ( + CASE - + 23 WHEN + - 5 THEN + 61 WHEN + - 8 THEN 69 ELSE NULL END AS INTEGER ) ) * 36 AS col2
----
NULL

query I rowsort
SELECT - ( + + ( + 34 ) ) - - 38 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3594
SELECT - + 89 DIV 5 * + - 33 col2
----
561

skipif mysql # not compatible
query I rowsort label-3594
SELECT - + 89 / 5 * + - 33 col2
----
561

query I rowsort
SELECT + + 83 * 28 AS col2
----
2324

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3597
SELECT ALL CAST( NULL AS SIGNED ), 96 AS col1
----
NULL
96

skipif mysql # not compatible
query II rowsort label-3597
SELECT ALL CAST ( NULL AS INTEGER ), 96 AS col1
----
NULL
96

query I rowsort
SELECT DISTINCT + 52 + + + 7 * + COALESCE ( + 75, + + 10 )
----
577

query I rowsort
SELECT DISTINCT 82 + 81
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT + 46 + COUNT( * ) col0
----
47

skipif mysql # not compatible
query I rowsort label-3600
SELECT + 46 + COUNT ( * ) col0
----
47

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

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL MAX ( - - CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 11 + + 78 + - 76 * - 75 * 72 AS col2
----
410489

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

skipif mysql # not compatible
query I rowsort label-3603
SELECT - COUNT ( * ) / - 17 AS col2
----
0

query I rowsort
SELECT + 16 + - ( - 0 ) col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT DISTINCT 40 * - CAST( - 53 AS SIGNED )
----
2120

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT 40 * - CAST ( - 53 AS INTEGER )
----
2120

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL MAX( ALL 96 ) + NULLIF ( + 20, + 58 )
----
116

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL MAX ( ALL 96 ) + NULLIF ( + 20, + 58 )
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3607
SELECT COUNT( * ) DIV + 37 + + 28 * COUNT( * ) + - ( + 94 )
----
-66

skipif mysql # not compatible
query I rowsort label-3607
SELECT COUNT ( * ) / + 37 + + 28 * COUNT ( * ) + - ( + 94 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-3608
SELECT ALL 86 * - MAX( DISTINCT + 10 ), + 29 AS col2
----
-860
29

skipif mysql # not compatible
query II rowsort label-3608
SELECT ALL 86 * - MAX ( DISTINCT + 10 ), + 29 AS col2
----
-860
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3609
SELECT DISTINCT 4 * + - 39 DIV - 39, - 76 * + 78 + + 71 AS col0, - + COUNT( * ) col0
----
4
-5857
-1

skipif mysql # not compatible
query III rowsort label-3609
SELECT DISTINCT 4 * + - 39 / - 39, - 76 * + 78 + + 71 AS col0, - + COUNT ( * ) col0
----
4
-5857
-1

query I rowsort
SELECT 42 * + - 41 AS col0
----
-1722

query I rowsort
SELECT NULLIF ( + 17, - - 58 ) - - 22 AS col2
----
39

query I rowsort
SELECT - 60 * + 94 + 1
----
-5639

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT - NULLIF ( 63, - COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-3613
SELECT - NULLIF ( 63, - COUNT ( * ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ( + 77 ) * + ( + NULLIF ( + COUNT( * ), - 99 ) ) * 63
----
4851

skipif mysql # not compatible
query I rowsort label-3614
SELECT ( + 77 ) * + ( + NULLIF ( + COUNT ( * ), - 99 ) ) * 63
----
4851

query I rowsort
SELECT + - NULLIF ( - 72, + + 32 / - 39 )
----
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT + 26 * - COUNT( * ) * 34
----
-884

skipif mysql # not compatible
query I rowsort label-3617
SELECT + 26 * - COUNT ( * ) * 34
----
-884

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT ALL NULLIF ( - 98, 27 ) DIV + 23
----
-4

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL NULLIF ( - 98, 27 ) / + 23
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT - 23 * ( + COUNT( * ) ) * + COUNT( * ) * - 33 + + 14 - ( 1 )
----
772

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT - 23 * ( + COUNT ( * ) ) * + COUNT ( * ) * - 33 + + 14 - ( 1 )
----
772

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT 9 * + - 50 * COALESCE ( COUNT( * ), ( - COALESCE ( - + 59, - - 79 ) ) ) * - - 92
----
-41400

skipif mysql # not compatible
query I rowsort label-3620
SELECT 9 * + - 50 * COALESCE ( COUNT ( * ), ( - COALESCE ( - + 59, - - 79 ) ) ) * - - 92
----
-41400

onlyif mysql # aggregate syntax: 
query II rowsort label-3621
SELECT ALL + + COUNT( 1 ) * + 53 AS col0, 30 - 95
----
53
-65

skipif mysql # not compatible
query II rowsort label-3621
SELECT ALL + + COUNT ( 1 ) * + 53 AS col0, 30 - 95
----
53
-65

query I rowsort
SELECT DISTINCT - + 34 * + ( 45 ) + + 91 AS col0
----
-1439

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT + COALESCE ( ( + 31 ), + - COUNT( * ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3623
SELECT + COALESCE ( ( + 31 ), + - COUNT ( * ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL - COALESCE ( 19, COUNT( * ) * + + 35 - - 65 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - COALESCE ( 19, COUNT ( * ) * + + 35 - - 65 ) AS col0
----
-19

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

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

query I rowsort
SELECT + - 21 * + 29 + + 31 * 36 * ( 29 )
----
31755

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ( 70 ) - + 29 / - CASE 11 WHEN - ( - 2 ) * COUNT( * ) + ( + 88 ) THEN - + 68 ELSE NULL END * + + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT ( 70 ) - + 29 / - CASE 11 WHEN - ( - 2 ) * COUNT ( * ) + ( + 88 ) THEN - + 68 ELSE NULL END * + + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT ALL - - COUNT( * ) + - + 96 + 16 - + - ( + + NULLIF ( - 66, - 97 ) ) * - 37 * - - 20 + - 33 + + + CASE - 27 WHEN + - COUNT( * ) THEN NULL WHEN + 87 THEN 89 * + + COUNT( * ) + - COUNT( ALL 80 ) + + 86 ELSE COUNT( * ) * - SUM( ALL - 13 ) + + 47 - - 71 END + + 34 * + + COUNT( 69 )
----
48893

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL - - COUNT ( * ) + - + 96 + 16 - + - ( + + NULLIF ( - 66, - 97 ) ) * - 37 * - - 20 + - 33 + + + CASE - 27 WHEN + - COUNT ( * ) THEN NULL WHEN + 87 THEN 89 * + + COUNT ( * ) + - COUNT ( ALL 80 ) + + 86 ELSE COUNT ( * ) * - SUM ( ALL - 13 ) + + 47 - - 71 END + + 34 * + + COUNT ( 69 )
----
48893

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3630
SELECT COUNT( * ) AS col1, 81 + ( - - ( - 90 ) )
----
1
-9

skipif mysql # not compatible
query II rowsort label-3630
SELECT COUNT ( * ) AS col1, 81 + ( - - ( - 90 ) )
----
1
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3631
SELECT 12 + - 13 * + - 29 * - ( + COUNT( * ) ) * + + CAST( NULL AS SIGNED ) * + 92 + CASE + COUNT( * ) WHEN - 31 + - + COUNT( * ) + + 87 * - 96 THEN NULL WHEN - 20 + + 70 - + - 62 * CAST( NULL AS SIGNED ) THEN NULL ELSE - CASE + 5 WHEN - 63 / SUM( DISTINCT + 6 ) * 86 + + - 14 THEN 78 + - CAST( - - 79 AS SIGNED ) ELSE - + 90 + - 10 END END + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT 12 + - 13 * + - 29 * - ( + COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) * + 92 + CASE + COUNT ( * ) WHEN - 31 + - + COUNT ( * ) + + 87 * - 96 THEN NULL WHEN - 20 + + 70 - + - 62 * CAST ( NULL AS INTEGER ) THEN NULL ELSE - CASE + 5 WHEN - 63 / SUM ( DISTINCT + 6 ) * 86 + + - 14 THEN 78 + - CAST ( - - 79 AS INTEGER ) ELSE - + 90 + - 10 END END + - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT DISTINCT - 20 + COUNT( * ) * + CASE - - 55 WHEN + SUM( DISTINCT 70 ) * + 87 + 10 + 18 THEN + 44 WHEN - 57 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - 20 + COUNT ( * ) * + CASE - - 55 WHEN + SUM ( DISTINCT 70 ) * + 87 + 10 + 18 THEN + 44 WHEN - 57 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 66 + 89 * + 73 AS col0
----
6563

query I rowsort
SELECT ALL 41 * - 90 col0
----
-3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3635
SELECT ALL + 48 + - 8, CAST( 72 AS SIGNED ) + + 61 + COUNT( * ) AS col1
----
40
134

skipif mysql # not compatible
query II rowsort label-3635
SELECT ALL + 48 + - 8, CAST ( 72 AS INTEGER ) + + 61 + COUNT ( * ) AS col1
----
40
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3636
SELECT DISTINCT - COUNT( DISTINCT NULLIF ( 80, + 70 ) ) * + + MAX( DISTINCT 80 ) AS col2, COUNT( * ) + + ( - 3 ) AS col2, + 85 DIV 50 + - 41 + - 40 + + - 31 * + MAX( DISTINCT - 67 ) + + + 76
----
-80
-2
2073

skipif mysql # not compatible
query III rowsort label-3636
SELECT DISTINCT - COUNT ( DISTINCT NULLIF ( 80, + 70 ) ) * + + MAX ( DISTINCT 80 ) AS col2, COUNT ( * ) + + ( - 3 ) AS col2, + 85 / 50 + - 41 + - 40 + + - 31 * + MAX ( DISTINCT - 67 ) + + + 76
----
-80
-2
2073

onlyif mysql # aggregate syntax: 
query II rowsort label-3637
SELECT 82 + + NULLIF ( 98, - 35 * - - COUNT( * ) + COUNT( ALL 9 ) ) AS col2, + 0
----
180
0

skipif mysql # not compatible
query II rowsort label-3637
SELECT 82 + + NULLIF ( 98, - 35 * - - COUNT ( * ) + COUNT ( ALL 9 ) ) AS col2, + 0
----
180
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL - 75 * - + SUM( ALL - 34 )
----
-2550

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL - 75 * - + SUM ( ALL - 34 )
----
-2550

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT ALL CAST( - 63 AS SIGNED ) - + 73 * 7 + - 14 AS col1
----
-588

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL CAST ( - 63 AS INTEGER ) - + 73 * 7 + - 14 AS col1
----
-588

query I rowsort
SELECT 11 * - 97 * + 32 col1
----
-34144

query I rowsort
SELECT 26 + 13 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT ALL - COUNT( * ) - + - 71 AS col1, - 69 col1
----
70
-69

skipif mysql # not compatible
query II rowsort label-3644
SELECT ALL - COUNT ( * ) - + - 71 AS col1, - 69 col1
----
70
-69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3646
SELECT 61 AS col2, NULLIF ( - COUNT( * ), + 21 )
----
61
-1

skipif mysql # not compatible
query II rowsort label-3646
SELECT 61 AS col2, NULLIF ( - COUNT ( * ), + 21 )
----
61
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3647
SELECT DISTINCT - CAST( - - ( + - COUNT( * ) ) AS SIGNED ) - - 71 AS col0, - 83 AS col1
----
72
-83

skipif mysql # not compatible
query II rowsort label-3647
SELECT DISTINCT - CAST ( - - ( + - COUNT ( * ) ) AS INTEGER ) - - 71 AS col0, - 83 AS col1
----
72
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT 4 * - 33 - + ( - + SUM( + 44 ) ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3648
SELECT 4 * - 33 - + ( - + SUM ( + 44 ) ) AS col1
----
-88

query II rowsort
SELECT + 47 AS col1, 48
----
47
48

onlyif mysql # DIV for integer division: 
query II rowsort label-3650
SELECT DISTINCT - + 41 AS col0, - 76 + 56 + 57 + + - 1 DIV - 19
----
-41
37

skipif mysql # not compatible
query II rowsort label-3650
SELECT DISTINCT - + 41 AS col0, - 76 + 56 + 57 + + - 1 / - 19
----
-41
37

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

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

query II rowsort
SELECT ALL - 99 AS col0, - 46
----
-99
-46

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

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

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

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

query I rowsort
SELECT 78 + + 37 + - 87
----
28

query I rowsort
SELECT ALL - 19 + - + 97 + 63 AS col1
----
-53

query II rowsort
SELECT DISTINCT - 37, + 29 AS col1
----
-37
29

query I rowsort
SELECT ALL - 69 + + + 8 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query III rowsort label-3659
SELECT + 43 AS col2, 16 AS col0, - 70 + 47 - + 40 + + - 74 * - NULLIF ( 40, + MAX( - 25 ) + 84 ) * ( - 66 )
----
43
16
-195423

skipif mysql # not compatible
query III rowsort label-3659
SELECT + 43 AS col2, 16 AS col0, - 70 + 47 - + 40 + + - 74 * - NULLIF ( 40, + MAX ( - 25 ) + 84 ) * ( - 66 )
----
43
16
-195423

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3660
SELECT DISTINCT CAST( - 46 AS DECIMAL ) + - + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT CAST ( - 46 AS REAL ) + - + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 66 + + + 33 * COALESCE ( - 46, + + 98 ) AS col1
----
-1452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT ALL NULLIF ( - 48, 33 ) + COALESCE ( + 23, - + 24, - COUNT( * ) - + 32, 59 + - 52 + - 41 ) + MAX( DISTINCT - + 60 ) + + + 19 / CASE + 82 WHEN - 85 / + NULLIF ( + COUNT( * ), - + COUNT( DISTINCT + + 2 ) ) THEN + + 67 + - 12 * 83 - CAST( + 83 AS SIGNED ) + - + 27 * - 72 WHEN + 43 + + + 3 THEN NULL END + + + COUNT( * ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL NULLIF ( - 48, 33 ) + COALESCE ( + 23, - + 24, - COUNT ( * ) - + 32, 59 + - 52 + - 41 ) + MAX ( DISTINCT - + 60 ) + + + 19 / CASE + 82 WHEN - 85 / + NULLIF ( + COUNT ( * ), - + COUNT ( DISTINCT + + 2 ) ) THEN + + 67 + - 12 * 83 - CAST ( + 83 AS INTEGER ) + - + 27 * - 72 WHEN + 43 + + + 3 THEN NULL END + + + COUNT ( * ) * + 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3663
SELECT DISTINCT - 76 + + ( + COALESCE ( - - 9, - + 84 DIV - - 42 + + COUNT( * ), - - 24 * + 79 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT - 76 + + ( + COALESCE ( - - 9, - + 84 / - - 42 + + COUNT ( * ), - - 24 * + 79 ) )
----
-67

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

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

query I rowsort
SELECT ALL 12 + - 16 AS col1
----
-4

query I rowsort
SELECT ALL 29 * 85
----
2465

onlyif mysql # aggregate syntax: 
query II rowsort label-3667
SELECT 21 * + + 70 * - NULLIF ( - - 62, - 99 ) AS col0, COUNT( * ) - + + 10
----
-91140
-9

skipif mysql # not compatible
query II rowsort label-3667
SELECT 21 * + + 70 * - NULLIF ( - - 62, - 99 ) AS col0, COUNT ( * ) - + + 10
----
-91140
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT DISTINCT + 35 - - NULLIF ( 32, + 42 * - 18 + + 29 * MIN( DISTINCT - 36 ) * - 94 + ( - COUNT( * ) ) + NULLIF ( + + ( ( - + 86 ) ), + 89 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT + 35 - - NULLIF ( 32, + 42 * - 18 + + 29 * MIN ( DISTINCT - 36 ) * - 94 + ( - COUNT ( * ) ) + NULLIF ( + + ( ( - + 86 ) ), + 89 ) ) AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3670
SELECT - 81 + + COUNT( * ) + COUNT( DISTINCT - - ( - NULLIF ( + - 41, + 26 ) ) ) * + 80 DIV - - 98 * - - 41 * - 99 DIV COUNT( * ) * + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-3670
SELECT - 81 + + COUNT ( * ) + COUNT ( DISTINCT - - ( - NULLIF ( + - 41, + 26 ) ) ) * + 80 / - - 98 * - - 41 * - 99 / COUNT ( * ) * + COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT ALL + COALESCE ( CASE - 44 WHEN + ( 64 ) * - + 31 / + 93 THEN NULL WHEN - - 30 THEN NULL ELSE COUNT( * ) END, + COUNT( * ) ) * + COUNT( * ) * - - 25 col1, + 30
----
25
30

skipif mysql # not compatible
query II rowsort label-3671
SELECT ALL + COALESCE ( CASE - 44 WHEN + ( 64 ) * - + 31 / + 93 THEN NULL WHEN - - 30 THEN NULL ELSE COUNT ( * ) END, + COUNT ( * ) ) * + COUNT ( * ) * - - 25 col1, + 30
----
25
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - 57 + - ( - COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-3672
SELECT - 57 + - ( - COUNT ( * ) )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3673
SELECT ALL SUM( DISTINCT - - 2 ) AS col0, + CAST( NULL AS SIGNED ) AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-3673
SELECT ALL SUM ( DISTINCT - - 2 ) AS col0, + CAST ( NULL AS INTEGER ) AS col1
----
2
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT ALL + CAST( 5 AS SIGNED ) * 58 col2
----
290

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL + CAST ( 5 AS INTEGER ) * 58 col2
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT - 10 * + MAX( + + 18 )
----
-180

skipif mysql # not compatible
query I rowsort label-3676
SELECT - 10 * + MAX ( + + 18 )
----
-180

query I rowsort
SELECT ALL + 45 * + + 48 * + 39 AS col2
----
84240

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + COALESCE ( + + MAX( ALL ( + + ( - - 71 ) ) ), - COUNT( * ), + 53, + COUNT( * ) ) * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + COALESCE ( + + MAX ( ALL ( + + ( - - 71 ) ) ), - COUNT ( * ), + 53, + COUNT ( * ) ) * - COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT + MAX( DISTINCT - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT + MAX ( DISTINCT - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT DISTINCT + + MAX( ALL - ( 63 ) ) * + 24
----
-1512

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + + MAX ( ALL - ( 63 ) ) * + 24
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - - 28 * + 65 + MIN( 10 ) AS col2
----
1830

skipif mysql # not compatible
query I rowsort label-3681
SELECT - - 28 * + 65 + MIN ( 10 ) AS col2
----
1830

onlyif mysql # aggregate syntax: 
query II rowsort label-3682
SELECT ALL + - SUM( - 50 ), MIN( ALL + 76 ) * 10 + 90 AS col2
----
50
850

skipif mysql # not compatible
query II rowsort label-3682
SELECT ALL + - SUM ( - 50 ), MIN ( ALL + 76 ) * 10 + 90 AS col2
----
50
850

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3683
SELECT ALL COUNT( * ) * + ( 68 ) * - - 21 - - - COUNT( * ) + 58 + - 84 * - 39 AS col2, COALESCE ( COUNT( * ), 36, + 53 DIV - COUNT( * ) * 66 * + - 61 )
----
4761
1

skipif mysql # not compatible
query II rowsort label-3683
SELECT ALL COUNT ( * ) * + ( 68 ) * - - 21 - - - COUNT ( * ) + 58 + - 84 * - 39 AS col2, COALESCE ( COUNT ( * ), 36, + 53 / - COUNT ( * ) * 66 * + - 61 )
----
4761
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + - MAX( 93 ) / - CASE - - 40 WHEN - 76 THEN 52 WHEN 34 THEN 63 + + 93 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT + - MAX ( 93 ) / - CASE - - 40 WHEN - 76 THEN 52 WHEN 34 THEN 63 + + 93 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL - COUNT( + - 40 ) * - NULLIF ( 44, - 72 * - 94 / 99 ) + + ( + 90 )
----
134

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL - COUNT ( + - 40 ) * - NULLIF ( 44, - 72 * - 94 / 99 ) + + ( + 90 )
----
134

query I rowsort
SELECT - 97 * - 55 * - NULLIF ( 88, 56 ) col1
----
-469480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3687
SELECT ALL COUNT( * ) * + + 12 + + CAST( NULL AS SIGNED ), 64 AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-3687
SELECT ALL COUNT ( * ) * + + 12 + + CAST ( NULL AS INTEGER ), 64 AS col0
----
NULL
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT ALL + 91 * - 70 + - 3 DIV + 74 + + 99 DIV + 9
----
-6359

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + 91 * - 70 + - 3 / + 74 + + 99 / + 9
----
-6359

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL + + CASE COUNT( * ) WHEN - 70 THEN - + 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL + + CASE COUNT ( * ) WHEN - 70 THEN - + 28 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 41 * + 68 + - 64 AS col2
----
2724

onlyif mysql # aggregate syntax: 
query II rowsort label-3691
SELECT ALL + SUM( DISTINCT 3 ), - 70 AS col2
----
3
-70

skipif mysql # not compatible
query II rowsort label-3691
SELECT ALL + SUM ( DISTINCT 3 ), - 70 AS col2
----
3
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT 21 * + SUM( DISTINCT - - 25 ) AS col0
----
525

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT 21 * + SUM ( DISTINCT - - 25 ) AS col0
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT + - 95 * ( + SUM( ALL - 49 ) ) + - 70 * - 76 AS col0
----
9975

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT + - 95 * ( + SUM ( ALL - 49 ) ) + - 70 * - 76 AS col0
----
9975

query I rowsort
SELECT ALL - 97 * + 9 + + + 2 col2
----
-871

query I rowsort
SELECT + 94 + - 72 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT MAX( + 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-3696
SELECT MAX ( + 60 ) col2
----
60

query II rowsort
SELECT DISTINCT + 59 col1, - 64 * + 97
----
59
-6208

query II rowsort
SELECT + 9 * - 95 * - 68 + - 90 AS col1, + 42 + 12 col1
----
58050
54

query I rowsort
SELECT + 76 - + 25
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL CASE - ( - 98 ) WHEN NULLIF ( + + COUNT( * ), - 40 ) + - + 40 THEN + - MIN( ALL + - 31 ) ELSE NULL END / 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL CASE - ( - 98 ) WHEN NULLIF ( + + COUNT ( * ), - 40 ) + - + 40 THEN + - MIN ( ALL + - 31 ) ELSE NULL END / 87 AS col1
----
NULL

query I rowsort
SELECT + 88 * 99 AS col0
----
8712

query I rowsort
SELECT - 52 - 18 col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL + COUNT( * ) * + - COUNT( * ) - 72 * + ( + 19 ) - 87 + 95 AS col1
----
-1361

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) - 72 * + ( + 19 ) - 87 + 95 AS col1
----
-1361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3704
SELECT DISTINCT ( + 91 ) * + - CAST( NULL AS SIGNED ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT ( + 91 ) * + - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3705
SELECT ALL COUNT( * ) col2, 64 / - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3705
SELECT ALL COUNT ( * ) col2, 64 / - CAST ( NULL AS INTEGER )
----
1
NULL

query II rowsort
SELECT DISTINCT 42 AS col0, + 44
----
42
44

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

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

query I rowsort
SELECT DISTINCT 81 * 25
----
2025

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT + 4 DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT + 4 / + + 94
----
0

query I rowsort
SELECT + 22 + - 39
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT + 74 DIV - + 55
----
-1

skipif mysql # not compatible
query I rowsort label-3711
SELECT + 74 / - + 55
----
-1

query I rowsort
SELECT - 80 * 40 AS col1
----
-3200

onlyif mysql # aggregate syntax: 
query II rowsort label-3713
SELECT + 91 - - COUNT( * ) * + 62, + NULLIF ( - 81, - 17 * + 3 * COUNT( * ) + 75 / - + CASE - + 10 WHEN - - 83 THEN NULL WHEN - 88 THEN NULLIF ( + ( - - 56 ), - 65 ) + - 91 ELSE NULL END * + NULLIF ( - 69, - 20 ) ) * + + CASE - 6 WHEN + - 82 * - + 51 THEN 59 ELSE NULL END * - + COUNT( * ) AS col1
----
153
NULL

skipif mysql # not compatible
query II rowsort label-3713
SELECT + 91 - - COUNT ( * ) * + 62, + NULLIF ( - 81, - 17 * + 3 * COUNT ( * ) + 75 / - + CASE - + 10 WHEN - - 83 THEN NULL WHEN - 88 THEN NULLIF ( + ( - - 56 ), - 65 ) + - 91 ELSE NULL END * + NULLIF ( - 69, - 20 ) ) * + + CASE - 6 WHEN + - 82 * - + 51 THEN 59 ELSE NULL END * - + COUNT ( * ) AS col1
----
153
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3714
SELECT - 70, + 34 * 36 - + + 34 + MAX( ALL + - 96 ) AS col1
----
-70
1094

skipif mysql # not compatible
query II rowsort label-3714
SELECT - 70, + 34 * 36 - + + 34 + MAX ( ALL + - 96 ) AS col1
----
-70
1094

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

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

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

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL + 14 + - - CAST ( 26 AS INTEGER )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT - SUM( ALL - 93 ) + 22 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-3717
SELECT - SUM ( ALL - 93 ) + 22 AS col1
----
115

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

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

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

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL - - 81 + + + COUNT ( - - CAST ( NULL AS INTEGER ) )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT - + 57 + CAST( - 90 AS SIGNED ) / CASE - + 34 WHEN - 93 THEN 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT - + 57 + CAST ( - 90 AS INTEGER ) / CASE - + 34 WHEN - 93 THEN 78 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT DISTINCT - COUNT( * ) + - - 24 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT - COUNT ( * ) + - - 24 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL + - SUM( ( + 8 ) ) + - 25
----
-33

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + - SUM ( ( + 8 ) ) + - 25
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3723
SELECT DISTINCT + + ( - 6 ) * 41 * - COUNT( * ) * + 13 * + 20, 95 AS col2
----
63960
95

skipif mysql # not compatible
query II rowsort label-3723
SELECT DISTINCT + + ( - 6 ) * 41 * - COUNT ( * ) * + 13 * + 20, 95 AS col2
----
63960
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT SUM( + 6 ) * 43 * COUNT( * ) * - + COUNT( * ) - ( - 78 ) * + 64
----
4734

skipif mysql # not compatible
query I rowsort label-3724
SELECT SUM ( + 6 ) * 43 * COUNT ( * ) * - + COUNT ( * ) - ( - 78 ) * + 64
----
4734

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3725
SELECT + 85 / - ( - + 63 ) + + - MIN( + CAST( NULL AS DECIMAL ) ) - - - CASE + - 21 WHEN - 39 + - 72 + + + 87 + - 22 * + 38 THEN NULL WHEN - 30 - + - 34 - - 71 THEN + ( + 85 ) END + + + 11 + + ( + COUNT( * ) ) + - 12 * + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT + 85 / - ( - + 63 ) + + - MIN ( + CAST ( NULL AS REAL ) ) - - - CASE + - 21 WHEN - 39 + - 72 + + + 87 + - 22 * + 38 THEN NULL WHEN - 30 - + - 34 - - 71 THEN + ( + 85 ) END + + + 11 + + ( + COUNT ( * ) ) + - 12 * + + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3726
SELECT ALL - 44 DIV - COUNT( * ) + - + 41 * 99
----
-4015

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL - 44 / - COUNT ( * ) + - + 41 * 99
----
-4015

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - MAX( ALL 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-3727
SELECT - MAX ( ALL 34 )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT + - 80 * + 10 + + 70 DIV - 85 col0
----
-800

skipif mysql # not compatible
query I rowsort label-3728
SELECT + - 80 * + 10 + + 70 / - 85 col0
----
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ALL - CASE - + 28 WHEN - 95 THEN - 43 + + - 60 * + + 36 END * - COALESCE ( 76, + 9 ) + + MIN( + - 9 ) * + 10 + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL - CASE - + 28 WHEN - 95 THEN - 43 + + - 60 * + + 36 END * - COALESCE ( 76, + 9 ) + + MIN ( + - 9 ) * + 10 + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3730
SELECT - - 81 + + - 1 + SUM( ALL 0 ), 44 AS col2
----
80
44

skipif mysql # not compatible
query II rowsort label-3730
SELECT - - 81 + + - 1 + SUM ( ALL 0 ), 44 AS col2
----
80
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL 97 / + ( - + COUNT( * ) ) + 85 - CASE + + 99 WHEN + ( + 22 ) THEN NULL WHEN - - 48 * + - 21 THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL 97 / + ( - + COUNT ( * ) ) + 85 - CASE + + 99 WHEN + ( + 22 ) THEN NULL WHEN - - 48 * + - 21 THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL + - SUM( DISTINCT - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + - SUM ( DISTINCT - 21 )
----
21

query II rowsort
SELECT + 73 AS col2, + 55 + + 9 * + + 8 + + 67
----
73
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3734
SELECT ALL - + 52 / + 58 - - + 72 + - + 8 + - + 54 / - 76 * + + CAST( NULL AS SIGNED ) * - 44 col1, NULLIF ( + 14, + + 58 * 70 * - ( - 33 ) ) - - - SUM( + 51 ) AS col1
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-3734
SELECT ALL - + 52 / + 58 - - + 72 + - + 8 + - + 54 / - 76 * + + CAST ( NULL AS INTEGER ) * - 44 col1, NULLIF ( + 14, + + 58 * 70 * - ( - 33 ) ) - - - SUM ( + 51 ) AS col1
----
NULL
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT ALL - 84 DIV - + 16 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL - 84 / - + 16 AS col0
----
5

query I rowsort
SELECT - 98 * 93 AS col1
----
-9114

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT 53 * COUNT( * ) + + 30 + - + 34 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3737
SELECT 53 * COUNT ( * ) + + 30 + - + 34 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL 82 * 53 * + COUNT( * ) AS col1
----
4346

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL 82 * 53 * + COUNT ( * ) AS col1
----
4346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3739
SELECT DISTINCT COALESCE ( - 81, - + 38 DIV COUNT( * ) ) * + 58 col1
----
-4698

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT COALESCE ( - 81, - + 38 / COUNT ( * ) ) * + 58 col1
----
-4698

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ( + 45 ) + + COUNT( * ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3740
SELECT ( + 45 ) + + COUNT ( * ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT COUNT( * ) * - - 42 col2
----
42

skipif mysql # not compatible
query I rowsort label-3741
SELECT COUNT ( * ) * - - 42 col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL - MIN( 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL - MIN ( 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3744
SELECT 44 * - 24 * + NULLIF ( - CAST( 10 AS SIGNED ), + ( - 39 ) + + 28 / + 87 * - + 39 ) + + CASE + 4 WHEN - 8 THEN NULL ELSE - COUNT( * ) END * + SUM( 0 )
----
10560

skipif mysql # not compatible
query I rowsort label-3744
SELECT 44 * - 24 * + NULLIF ( - CAST ( 10 AS INTEGER ), + ( - 39 ) + + 28 / + 87 * - + 39 ) + + CASE + 4 WHEN - 8 THEN NULL ELSE - COUNT ( * ) END * + SUM ( 0 )
----
10560

query II rowsort
SELECT ALL + 53 * 17 col0, - 68 AS col1
----
901
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT - 30 * + 89 + - COUNT( * ) DIV + 66
----
-2670

skipif mysql # not compatible
query I rowsort label-3746
SELECT - 30 * + 89 + - COUNT ( * ) / + 66
----
-2670

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT ALL ( CASE - 51 WHEN 64 THEN - 63 WHEN - 27 + + - COUNT( * ) - + + 92 * - 84 / + 39 THEN 4 / + 31 * - ( - + 59 ) * + COUNT( * ) - - - 2 + + - COUNT( * ) WHEN - + 55 THEN NULL END ) * 72 / - NULLIF ( 95, - 75 + + NULLIF ( - - 45, COUNT( * ) ) ) AS col0, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3747
SELECT ALL ( CASE - 51 WHEN 64 THEN - 63 WHEN - 27 + + - COUNT ( * ) - + + 92 * - 84 / + 39 THEN 4 / + 31 * - ( - + 59 ) * + COUNT ( * ) - - - 2 + + - COUNT ( * ) WHEN - + 55 THEN NULL END ) * 72 / - NULLIF ( 95, - 75 + + NULLIF ( - - 45, COUNT ( * ) ) ) AS col0, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT 26 * + 72 col2
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT 61 + + + CASE + 26 WHEN - 18 THEN + 27 * + SUM( DISTINCT + - 15 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT 61 + + + CASE + 26 WHEN - 18 THEN + 27 * + SUM ( DISTINCT + - 15 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT DISTINCT 27 DIV 10 DIV + 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT 27 / 10 / + 41 AS col2
----
0

query I rowsort
SELECT ALL 62 + - - 41
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT 51 + 2 - - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-3752
SELECT 51 + 2 - - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT 74 + - COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT 74 + - COUNT ( * ) AS col1
----
73

query I rowsort
SELECT ( 54 ) + 12 AS col0
----
66

query II rowsort
SELECT ALL 69 + - - 97, ( 95 ) + 10 AS col0
----
166
105

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL MAX( DISTINCT 58 ) + - - 43 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL MAX ( DISTINCT 58 ) + - - 43 AS col1
----
101

query I rowsort
SELECT + 36 + + 11
----
47

query I rowsort
SELECT ALL - 40 + - 85 + + 82 + + 79 * - - 87
----
6830

query I rowsort
SELECT 40 * + + 63 * - 62 AS col0
----
-156240

query I rowsort
SELECT DISTINCT - 38 - - 72
----
34

query I rowsort
SELECT DISTINCT + 57 - 71
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3762
SELECT ALL - 99 * + ( - 92 ) * - + 16 * + + 88 + + COUNT( * ) + - - 71 - - 43 + + 50, 33 + COUNT( ALL + ( 14 ) ) AS col0
----
-12823899
34

skipif mysql # not compatible
query II rowsort label-3762
SELECT ALL - 99 * + ( - 92 ) * - + 16 * + + 88 + + COUNT ( * ) + - - 71 - - 43 + + 50, 33 + COUNT ( ALL + ( 14 ) ) AS col0
----
-12823899
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL - 55 * - - 63 + MIN( ALL 73 ) - + + 53 + + 67 AS col0
----
-3378

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - 55 * - - 63 + MIN ( ALL 73 ) - + + 53 + + 67 AS col0
----
-3378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT 50 * + 84 / + 90 + - - CAST( NULL AS SIGNED ) * + + 55 * + SUM( DISTINCT + + 4 ) + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT 50 * + 84 / + 90 + - - CAST ( NULL AS INTEGER ) * + + 55 * + SUM ( DISTINCT + + 4 ) + - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL - 39 * + COUNT( DISTINCT - 87 ) * - 19
----
741

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - 39 * + COUNT ( DISTINCT - 87 ) * - 19
----
741

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3766
SELECT + + ( - - CAST( NULL AS DECIMAL ) ) * - + 60 + + 75 + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT + + ( - - CAST ( NULL AS REAL ) ) * - + 60 + + 75 + 73
----
NULL

query I rowsort
SELECT DISTINCT - 6 * + 73
----
-438

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT ALL - CAST( - 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL - CAST ( - 79 AS INTEGER ) AS col1
----
79

query I rowsort
SELECT 20 - + 44
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT ALL 28 DIV - + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL 28 / - + 89 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3771
SELECT 16 AS col0, 71 DIV + + 71
----
16
1

skipif mysql # not compatible
query II rowsort label-3771
SELECT 16 AS col0, 71 / + + 71
----
16
1

query I rowsort
SELECT 20 + CASE 21 WHEN + - 86 THEN - 42 * 79 * - - AVG ( + 98 ) END * - - 35 - - ( 58 ) / - 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3773
SELECT 26 DIV + + CAST( - ( + 30 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT 26 / + + CAST ( - ( + 30 ) AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3774
SELECT - 3, - 66 DIV 2 * + ( + + 24 ) * - 41 AS col1
----
-3
32472

skipif mysql # not compatible
query II rowsort label-3774
SELECT - 3, - 66 / 2 * + ( + + 24 ) * - 41 AS col1
----
-3
32472

query I rowsort
SELECT 71 * + + 45 AS col2
----
3195

query I rowsort
SELECT ALL 62 + + 4
----
66

query I rowsort
SELECT ALL 21 + 76 col2
----
97

query I rowsort
SELECT 55 + + 57 + + + 31 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL - COUNT( * ) * 52
----
-52

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL - COUNT ( * ) * 52
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3780
SELECT DISTINCT - 5 * - - CASE - 54 WHEN - CAST( NULL AS SIGNED ) THEN + 56 * + 19 * + 50 WHEN 13 + + + 6 THEN - 7 ELSE NULL END * 54 * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - 5 * - - CASE - 54 WHEN - CAST ( NULL AS INTEGER ) THEN + 56 * + 19 * + 50 WHEN 13 + + + 6 THEN - 7 ELSE NULL END * 54 * + 14
----
NULL

query I rowsort
SELECT 41 + + - 11
----
30

query I rowsort
SELECT - - ( + 81 )
----
81

query I rowsort
SELECT + 37 + - 78 AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3784
SELECT DISTINCT 23 col2, CAST( 69 AS SIGNED )
----
23
69

skipif mysql # not compatible
query II rowsort label-3784
SELECT DISTINCT 23 col2, CAST ( 69 AS INTEGER )
----
23
69

query I rowsort
SELECT ALL 3 - + 14
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT + MIN( DISTINCT 72 )
----
72

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT + MIN ( DISTINCT 72 )
----
72

query I rowsort
SELECT - 86 + - + 85
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ALL - NULLIF ( - 94, + COUNT( * ) * + 68 + + 90 ) - 86
----
8

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL - NULLIF ( - 94, + COUNT ( * ) * + 68 + + 90 ) - 86
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT ALL 60 DIV - + 55 col0
----
-1

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL 60 / - + 55 col0
----
-1

query I rowsort
SELECT - 0 + - 64 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL + COUNT( * ) - + + 23 col0
----
-22

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + COUNT ( * ) - + + 23 col0
----
-22

query I rowsort
SELECT DISTINCT + ( + 65 ) * + 96
----
6240

query I rowsort
SELECT ALL ( - 32 ) AS col1
----
-32

query II rowsort
SELECT + 53 + + 10 - 53 AS col0, + 7 + + 71 AS col2
----
10
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3795
SELECT + 57 * + COUNT( * ) DIV COALESCE ( - - MIN( + - 75 ), - + COALESCE ( - 98, - 76 ) * - 32 ) * + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT + 57 * + COUNT ( * ) / COALESCE ( - - MIN ( + - 75 ), - + COALESCE ( - 98, - 76 ) * - 32 ) * + 69 AS col0
----
0

query I rowsort
SELECT + + 90 * - 74
----
-6660

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + + CASE - 55 WHEN - - 17 THEN 61 WHEN 0 / COUNT( * ) THEN NULL ELSE NULL END + + 13 / + ( 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT + + CASE - 55 WHEN - - 17 THEN 61 WHEN 0 / COUNT ( * ) THEN NULL ELSE NULL END + + 13 / + ( 32 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3798
SELECT 4 * - 24 / + 78 / 18 * 92 + - ( 45 ) * - CAST( NULL AS DECIMAL ) AS col0, 48 AS col0
----
NULL
48

skipif mysql # not compatible
query II rowsort label-3798
SELECT 4 * - 24 / + 78 / 18 * 92 + - ( 45 ) * - CAST ( NULL AS REAL ) AS col0, 48 AS col0
----
NULL
48

query II rowsort
SELECT + + ( + - 23 ) * - + 34, - 42 AS col2
----
782
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3800
SELECT ALL + + 42 DIV + - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL + + 42 / + - 45 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT 90 DIV 3 + + + 16
----
46

skipif mysql # not compatible
query I rowsort label-3801
SELECT 90 / 3 + + + 16
----
46

query I rowsort
SELECT - 17 + 20 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3803
SELECT COALESCE ( 94, + ( - 48 ) DIV - 80 DIV 27, CASE + 8 WHEN - - 97 * - + SUM( - 28 ) + 62 THEN + + 15 * - 20 - + 89 * - 94 + - 72 WHEN + 58 * - 76 THEN NULL ELSE NULL END * + - 3 * + 38 )
----
94

skipif mysql # not compatible
query I rowsort label-3803
SELECT COALESCE ( 94, + ( - 48 ) / - 80 / 27, CASE + 8 WHEN - - 97 * - + SUM ( - 28 ) + 62 THEN + + 15 * - 20 - + 89 * - 94 + - 72 WHEN + 58 * - 76 THEN NULL ELSE NULL END * + - 3 * + 38 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3804
SELECT DISTINCT - CAST( 25 AS SIGNED ) * + 99 + - + COUNT( ALL 78 ) DIV - + COUNT( * )
----
-2474

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT - CAST ( 25 AS INTEGER ) * + 99 + - + COUNT ( ALL 78 ) / - + COUNT ( * )
----
-2474

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT 9 * - MIN( - - 89 ) + - + COUNT( * ) AS col0
----
-802

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT 9 * - MIN ( - - 89 ) + - + COUNT ( * ) AS col0
----
-802

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + NULLIF ( + - 47, + 92 * - NULLIF ( 89, + 81 ) - - - 80 - + COUNT( * ) )
----
-47

skipif mysql # not compatible
query I rowsort label-3806
SELECT + NULLIF ( + - 47, + 92 * - NULLIF ( 89, + 81 ) - - - 80 - + COUNT ( * ) )
----
-47

query I rowsort
SELECT DISTINCT - 37 * + 45 + 30 AS col1
----
-1635

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT + CASE - ( 28 ) WHEN 67 THEN + 88 + + - 48 + - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT + CASE - ( 28 ) WHEN 67 THEN + 88 + + - 48 + - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT + 57 * + + 36 AS col0
----
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT COUNT( * ) * - 66 + - 33 + 91
----
-8

skipif mysql # not compatible
query I rowsort label-3810
SELECT COUNT ( * ) * - 66 + - 33 + 91
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-3811
SELECT COUNT( * ), - 26 AS col2
----
1
-26

skipif mysql # not compatible
query II rowsort label-3811
SELECT COUNT ( * ), - 26 AS col2
----
1
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT DISTINCT ( + 86 ) * - 74 + + NULLIF ( - COUNT( * ), - 72 ) - 34 AS col1
----
-6399

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT ( + 86 ) * - 74 + + NULLIF ( - COUNT ( * ), - 72 ) - 34 AS col1
----
-6399

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL 27 * + COUNT( * ) * 82 + + + ( 80 ) * - CASE + 19 WHEN - - 1 THEN - 43 * - 40 ELSE NULL END + MIN( DISTINCT - + ( + - 68 ) ) + + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL 27 * + COUNT ( * ) * 82 + + + ( 80 ) * - CASE + 19 WHEN - - 1 THEN - 43 * - 40 ELSE NULL END + MIN ( DISTINCT - + ( + - 68 ) ) + + 15 AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - ( 32 ), - 18 ) AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT DISTINCT + COUNT( * ) DIV 3
----
0

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT + COUNT ( * ) / 3
----
0

query I rowsort
SELECT ALL + 64 + - ( + 35 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT - MAX( ALL 58 ) * - 54 AS col0
----
3132

skipif mysql # not compatible
query I rowsort label-3817
SELECT - MAX ( ALL 58 ) * - 54 AS col0
----
3132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3818
SELECT - 68 - 66 * - COUNT( + + 77 ) + + 19 + - + 39 / + 94 * - 63 + - ( - + ( + - 86 ) ) * ( - 48 ) * + 36 * - CASE + - 89 WHEN COUNT( * ) THEN - ( 3 ) / 83 - - 90 WHEN + ( 51 ) + + - 7 THEN - - CASE + - COUNT( + 59 ) WHEN CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN 76 THEN 86 + - 68 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT - 68 - 66 * - COUNT ( + + 77 ) + + 19 + - + 39 / + 94 * - 63 + - ( - + ( + - 86 ) ) * ( - 48 ) * + 36 * - CASE + - 89 WHEN COUNT ( * ) THEN - ( 3 ) / 83 - - 90 WHEN + ( 51 ) + + - 7 THEN - - CASE + - COUNT ( + 59 ) WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN 76 THEN 86 + - 68 ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3819
SELECT ALL + 57 AS col1, MAX( - 74 ) col1
----
57
-74

skipif mysql # not compatible
query II rowsort label-3819
SELECT ALL + 57 AS col1, MAX ( - 74 ) col1
----
57
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - COUNT( * ) * + COUNT( * ) * - COUNT( * ) * - 44 - + 12 col0
----
-56

skipif mysql # not compatible
query I rowsort label-3820
SELECT - COUNT ( * ) * + COUNT ( * ) * - COUNT ( * ) * - 44 - + 12 col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3821
SELECT + CAST( NULL AS SIGNED ) + - - 59 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT + CAST ( NULL AS INTEGER ) + - - 59 + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 70 * - 51 * + 77 AS col2
----
274890

onlyif mysql # aggregate syntax: 
query II rowsort label-3823
SELECT - 23 AS col2, COUNT( * ) AS col2
----
-23
1

skipif mysql # not compatible
query II rowsort label-3823
SELECT - 23 AS col2, COUNT ( * ) AS col2
----
-23
1

query I rowsort
SELECT - + 43 + 16
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT - COUNT( - 27 ) - + 39 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3825
SELECT - COUNT ( - 27 ) - + 39 AS col2
----
-40

query II rowsort
SELECT ALL 46 AS col0, + 5
----
46
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL - + ( + 27 ) * + 39 * + COUNT( * ) AS col2
----
-1053

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - + ( + 27 ) * + 39 * + COUNT ( * ) AS col2
----
-1053

onlyif mysql # DIV for integer division: 
query I rowsort label-3828
SELECT + COALESCE ( 73, - 15 DIV - 18 + 98 + - 40, 18 ) + + ( + 20 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3828
SELECT + COALESCE ( 73, - 15 / - 18 + 98 + - 40, 18 ) + + ( + 20 ) AS col0
----
93

query II rowsort
SELECT DISTINCT 2 col1, 53 col0
----
2
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT + COUNT( * ) + + NULLIF ( 80, COUNT( DISTINCT - + 74 ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3830
SELECT + COUNT ( * ) + + NULLIF ( 80, COUNT ( DISTINCT - + 74 ) ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL MAX( DISTINCT - - 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL MAX ( DISTINCT - - 63 ) AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT - CAST( - 8 AS SIGNED ) * - 80
----
-640

skipif mysql # not compatible
query I rowsort label-3832
SELECT - CAST ( - 8 AS INTEGER ) * - 80
----
-640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3833
SELECT - - 17 DIV + ( 75 ) - + - 40 * CASE COUNT( ALL - COALESCE ( + 93, + ( - + 76 ) ) ) WHEN - 43 DIV - - 19 + - 81 THEN + CASE - CAST( NULL AS SIGNED ) WHEN ( - 78 ) + 66 + - 79 THEN NULL ELSE - - 94 DIV COUNT( * ) END * - - 98 + 48 + - 20 WHEN - SUM( DISTINCT + - 44 ) * + - 0 * 40 + - 55 THEN + 26 + + + 69 ELSE - MAX( ALL + ( + 39 ) ) END
----
-1560

skipif mysql # not compatible
query I rowsort label-3833
SELECT - - 17 / + ( 75 ) - + - 40 * CASE COUNT ( ALL - COALESCE ( + 93, + ( - + 76 ) ) ) WHEN - 43 / - - 19 + - 81 THEN + CASE - CAST ( NULL AS INTEGER ) WHEN ( - 78 ) + 66 + - 79 THEN NULL ELSE - - 94 / COUNT ( * ) END * - - 98 + 48 + - 20 WHEN - SUM ( DISTINCT + - 44 ) * + - 0 * 40 + - 55 THEN + 26 + + + 69 ELSE - MAX ( ALL + ( + 39 ) ) END
----
-1560

query II rowsort
SELECT 25, - 65 * + + 28 AS col2
----
25
-1820

onlyif mysql # aggregate syntax: 
query II rowsort label-3835
SELECT ALL 92, SUM( - 63 ) AS col0
----
92
-63

skipif mysql # not compatible
query II rowsort label-3835
SELECT ALL 92, SUM ( - 63 ) AS col0
----
92
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3836
SELECT ALL - 30 DIV COUNT( + - 8 ) * - ( + + 59 ) * + 24 + 64 + - - 85 + - + COUNT( * ) AS col2
----
42628

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL - 30 / COUNT ( + - 8 ) * - ( + + 59 ) * + 24 + 64 + - - 85 + - + COUNT ( * ) AS col2
----
42628

query I rowsort
SELECT + ( + + 49 ) AS col1
----
49

query I rowsort
SELECT + ( + + 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3839
SELECT ALL ( - 37 ) * COUNT( * ) AS col2, + COALESCE ( + - ( 78 ), + - COUNT( * ) - + 20 - + MAX( DISTINCT + 83 ) * 77 ) AS col2
----
-37
-78

skipif mysql # not compatible
query II rowsort label-3839
SELECT ALL ( - 37 ) * COUNT ( * ) AS col2, + COALESCE ( + - ( 78 ), + - COUNT ( * ) - + 20 - + MAX ( DISTINCT + 83 ) * 77 ) AS col2
----
-37
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT 95 * COUNT( * ) + - + ( + - 79 ) AS col1
----
174

skipif mysql # not compatible
query I rowsort label-3840
SELECT 95 * COUNT ( * ) + - + ( + - 79 ) AS col1
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT ALL + 27 / + CAST( NULL AS SIGNED ) * - 88 + - + MAX( + 89 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL + 27 / + CAST ( NULL AS INTEGER ) * - 88 + - + MAX ( + 89 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3842
SELECT - 17 DIV 26 + - 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-3842
SELECT - 17 / 26 + - 16 AS col0
----
-16

query I rowsort
SELECT - ( + + 61 ) * - 55
----
3355

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT ( + 46 ) AS col0, - COUNT( * ) col1
----
46
-1

skipif mysql # not compatible
query II rowsort label-3844
SELECT ( + 46 ) AS col0, - COUNT ( * ) col1
----
46
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL MAX( ALL + 16 ) * + 67 AS col2
----
1072

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL MAX ( ALL + 16 ) * + 67 AS col2
----
1072

query I rowsort
SELECT + COALESCE ( + 80, - 53 ) - 62
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT DISTINCT + 17 * - 28 + - ( + SUM( + + 34 ) ) * - 43 AS col1
----
986

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT + 17 * - 28 + - ( + SUM ( + + 34 ) ) * - 43 AS col1
----
986

query I rowsort
SELECT ALL 85 * - 14 + + - 72
----
-1262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT - 80 + - + 28 * 94 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT - 80 + - + 28 * 94 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 92 + + 67 AS col2, 68
----
159
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT CASE - 43 WHEN - + 78 + + - 48 + + COUNT( * ) * + ( 61 ) THEN + 43 + + + 62 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT CASE - 43 WHEN - + 78 + + - 48 + + COUNT ( * ) * + ( 61 ) THEN + 43 + + + 62 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL + 60 * 23 AS col2, 73 col0
----
1380
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3853
SELECT COALESCE ( + 74, + 11 DIV 25 * + 3 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3853
SELECT COALESCE ( + 74, + 11 / 25 * + 3 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3854
SELECT - + 89 * - - CAST( NULL AS SIGNED ) - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT - + 89 * - - CAST ( NULL AS INTEGER ) - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT - - 14 + - + COUNT( * ) + - 91 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3855
SELECT - - 14 + - + COUNT ( * ) + - 91 AS col1
----
-78

query I rowsort
SELECT - 21 + 34 col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3857
SELECT COUNT( * ) + - - 70 AS col2, - 86 AS col0
----
71
-86

skipif mysql # not compatible
query II rowsort label-3857
SELECT COUNT ( * ) + - - 70 AS col2, - 86 AS col0
----
71
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3858
SELECT ALL + 68 DIV + + 29 + - + 27 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL + 68 / + + 29 + - + 27 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3859
SELECT - 48 + + + COUNT( * ) * 25 DIV 88 + + - 74 DIV - - 18 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3859
SELECT - 48 + + + COUNT ( * ) * 25 / 88 + + - 74 / - - 18 AS col1
----
-52

query I rowsort
SELECT 7 * 6 + - - 45 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3861
SELECT ALL + 76 + COUNT( * ) + - - 1 * - CAST( - - ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + 76 + COUNT ( * ) + - - 1 * - CAST ( - - ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT + 71 + - + MAX( DISTINCT 69 ) * 32
----
-2137

skipif mysql # not compatible
query I rowsort label-3862
SELECT + 71 + - + MAX ( DISTINCT 69 ) * 32
----
-2137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3863
SELECT DISTINCT + - 21 + CAST( - ( 47 ) AS SIGNED ) + - NULLIF ( NULLIF ( + - 20, + 96 ), + 80 * + 38 * - 62 - + NULLIF ( + + COUNT( * ), - + COUNT( * ) * 40 * + MIN( DISTINCT - + 66 ) / + + 72 + 86 ) - 31 + 67 * + - COUNT( * ) * - COUNT( * ) ) + + CASE - 44 WHEN - 47 / - ( MAX( ALL + 79 ) ) THEN COUNT( * ) WHEN 55 * + + 17 * + 89 * + - 78 - - 53 + + 31 * - + 3 THEN NULL ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT + - 21 + CAST ( - ( 47 ) AS INTEGER ) + - NULLIF ( NULLIF ( + - 20, + 96 ), + 80 * + 38 * - 62 - + NULLIF ( + + COUNT ( * ), - + COUNT ( * ) * 40 * + MIN ( DISTINCT - + 66 ) / + + 72 + 86 ) - 31 + 67 * + - COUNT ( * ) * - COUNT ( * ) ) + + CASE - 44 WHEN - 47 / - ( MAX ( ALL + 79 ) ) THEN COUNT ( * ) WHEN 55 * + + 17 * + 89 * + - 78 - - 53 + + 31 * - + 3 THEN NULL ELSE NULL END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3864
SELECT ALL - 27 + + - 33 / + ( - CAST( NULL AS SIGNED ) ) + MIN( + - CAST( + COALESCE ( - 65, + 60 + + + 62 + + 63 * - 90, - COALESCE ( + - 3, CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * NULLIF ( + 30, - 30 ), + - ( - + 77 ) ) ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL - 27 + + - 33 / + ( - CAST ( NULL AS INTEGER ) ) + MIN ( + - CAST ( + COALESCE ( - 65, + 60 + + + 62 + + 63 * - 90, - COALESCE ( + - 3, CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * NULLIF ( + 30, - 30 ), + - ( - + 77 ) ) ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 98 + - 55 AS col1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT DISTINCT + SUM( ALL + ( - 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT + SUM ( ALL + ( - 11 ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT - NULLIF ( - - 17, + - 87 * - + 88 ) + - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-3867
SELECT - NULLIF ( - - 17, + - 87 * - + 88 ) + - COUNT ( * )
----
-18

query I rowsort
SELECT 10 + - 67 + - - 60
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT ALL + ( + ( 82 ) ) + + 3 + - + CAST( - + 8 AS SIGNED ) * 20 * - 58 * - 13 AS col0
----
120725

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + ( + ( 82 ) ) + + 3 + - + CAST ( - + 8 AS INTEGER ) * 20 * - 58 * - 13 AS col0
----
120725

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT 20 + 6 + 9 * - CASE - - AVG ( 75 ) WHEN 47 THEN + MAX( DISTINCT 1 ) WHEN - - 26 THEN NULL ELSE NULL END * - 47 * + + 55 * - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT 20 + 6 + 9 * - CASE - - AVG ( 75 ) WHEN 47 THEN + MAX ( DISTINCT 1 ) WHEN - - 26 THEN NULL ELSE NULL END * - 47 * + + 55 * - + 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3871
SELECT + 51 DIV + + 3 + + NULLIF ( - 32, - - 5 + - 55 )
----
-15

skipif mysql # not compatible
query I rowsort label-3871
SELECT + 51 / + + 3 + + NULLIF ( - 32, - - 5 + - 55 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT DISTINCT CAST( NULL AS SIGNED ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 47
----
NULL

query II rowsort
SELECT ALL 46 + 13 * + 39, - 26 AS col0
----
553
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT - 88 * - - 74 + - + MAX( ALL + - 48 ) AS col1
----
-6464

skipif mysql # not compatible
query I rowsort label-3874
SELECT - 88 * - - 74 + - + MAX ( ALL + - 48 ) AS col1
----
-6464

query II rowsort
SELECT DISTINCT 63 * - 13 * - 28, ( + 74 ) * 65 AS col2
----
22932
4810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3876
SELECT DISTINCT + ( + 85 ) + 74 + + 69 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT DISTINCT + ( + 85 ) + 74 + + 69 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT ALL 98 * NULLIF ( - 88, - COUNT( * ) + - + 24 ) * + + ( 28 ) AS col2
----
-241472

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL 98 * NULLIF ( - 88, - COUNT ( * ) + - + 24 ) * + + ( 28 ) AS col2
----
-241472

query I rowsort
SELECT ( - 23 ) + + 98 AS col1
----
75

query I rowsort
SELECT 71 * 17
----
1207

onlyif mysql # DIV for integer division: 
query II rowsort label-3880
SELECT + 54, - 27 + + + 5 DIV + 49 * - 13 col0
----
54
-27

skipif mysql # not compatible
query II rowsort label-3880
SELECT + 54, - 27 + + + 5 / + 49 * - 13 col0
----
54
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3881
SELECT ALL - 16, + COUNT( * ) * - 55 col1
----
-16
-55

skipif mysql # not compatible
query II rowsort label-3881
SELECT ALL - 16, + COUNT ( * ) * - 55 col1
----
-16
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-3882
SELECT 51, ( 43 ) DIV + 56 AS col0
----
51
0

skipif mysql # not compatible
query II rowsort label-3882
SELECT 51, ( 43 ) / + 56 AS col0
----
51
0

query I rowsort
SELECT 61 * + + 69 AS col1
----
4209

query II rowsort
SELECT + 12 col2, 85 AS col1
----
12
85

query I rowsort
SELECT ( + 29 ) + + - 7 * + - 86
----
631

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL 56 - COUNT( ALL - + 57 ) * + - 44
----
100

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL 56 - COUNT ( ALL - + 57 ) * + - 44
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-3887
SELECT 64 AS col0, + COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-3887
SELECT 64 AS col0, + COUNT ( * )
----
64
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT ALL 32 DIV 24 * + 33 DIV + + 18 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL 32 / 24 * + 33 / + + 18 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT 80 DIV 73
----
1

skipif mysql # not compatible
query I rowsort label-3889
SELECT 80 / 73
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT ALL 69 DIV 29
----
2

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL 69 / 29
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3891
SELECT - COUNT( * ) + - CAST( + 69 AS SIGNED ) - + 31 col1
----
-101

skipif mysql # not compatible
query I rowsort label-3891
SELECT - COUNT ( * ) + - CAST ( + 69 AS INTEGER ) - + 31 col1
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-3892
SELECT DISTINCT - COUNT( * ), 85 * + CASE + 36 WHEN - COUNT( * ) THEN NULLIF ( 2, + + 5 * - + 95 ) * - 94 + + 7 + - 3 WHEN - 12 THEN NULL END + + NULLIF ( + MIN( ALL - 22 ), + COUNT( * ) ) * - 18 col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3892
SELECT DISTINCT - COUNT ( * ), 85 * + CASE + 36 WHEN - COUNT ( * ) THEN NULLIF ( 2, + + 5 * - + 95 ) * - 94 + + 7 + - 3 WHEN - 12 THEN NULL END + + NULLIF ( + MIN ( ALL - 22 ), + COUNT ( * ) ) * - 18 col0
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT + 7 * + + CAST( NULL AS SIGNED ) / + 89 * + 70 + + + NULLIF ( - - 77, - 18 + - - 3 + - 87 ) / + - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT + 7 * + + CAST ( NULL AS INTEGER ) / + 89 * + 70 + + + NULLIF ( - - 77, - 18 + - - 3 + - 87 ) / + - 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT - MIN( - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-3894
SELECT - MIN ( - 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + - COUNT( * ) * - + 30 + - + 91 - COUNT( * ) + - + 70 * 27
----
-1952

skipif mysql # not compatible
query I rowsort label-3895
SELECT + - COUNT ( * ) * - + 30 + - + 91 - COUNT ( * ) + - + 70 * 27
----
-1952

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - 80 * - 35 - + COUNT( * ) AS col0
----
2799

skipif mysql # not compatible
query I rowsort label-3896
SELECT - 80 * - 35 - + COUNT ( * ) AS col0
----
2799

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3897
SELECT + COUNT( * ) * - 77 * - 20 * CAST( - ( + 67 ) AS SIGNED ) * 75 + - + 46, 71 * 10 * - MIN( - 32 ) * - COUNT( * ) + + + SUM( ALL - - 83 ) AS col2
----
-7738546
-22637

skipif mysql # not compatible
query II rowsort label-3897
SELECT + COUNT ( * ) * - 77 * - 20 * CAST ( - ( + 67 ) AS INTEGER ) * 75 + - + 46, 71 * 10 * - MIN ( - 32 ) * - COUNT ( * ) + + + SUM ( ALL - - 83 ) AS col2
----
-7738546
-22637

onlyif mysql # aggregate syntax: 
query II rowsort label-3898
SELECT + 89 + - ( 87 ) + 89, - MIN( DISTINCT - - 86 ) AS col2
----
91
-86

skipif mysql # not compatible
query II rowsort label-3898
SELECT + 89 + - ( 87 ) + 89, - MIN ( DISTINCT - - 86 ) AS col2
----
91
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT - - COUNT( * ) AS col2, 96 AS col2
----
1
96

skipif mysql # not compatible
query II rowsort label-3899
SELECT - - COUNT ( * ) AS col2, 96 AS col2
----
1
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3900
SELECT - - ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT - - ( - CAST ( NULL AS REAL ) )
----
NULL

query II rowsort
SELECT ALL + 22 * - ( - 91 ) col0, - 26
----
2002
-26

query I rowsort
SELECT ALL + 11 + - + 93 + + 44 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL COUNT( ALL + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL COUNT ( ALL + 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT + COUNT( DISTINCT 43 )
----
1

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + COUNT ( DISTINCT 43 )
----
1

query I rowsort
SELECT ALL + 31 + 54 + ( - 92 ) * + 90 col1
----
-8195

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL COUNT( * ) + COUNT( DISTINCT - 15 )
----
2

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL COUNT ( * ) + COUNT ( DISTINCT - 15 )
----
2

query I rowsort
SELECT ALL - + 48 + + - 55
----
-103

query I rowsort
SELECT ALL - + 23 + + + 31 AS col0
----
8

query I rowsort
SELECT ( + 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT ALL + COALESCE ( - 66, + ( 68 ) DIV - + 88 * + - 97 - + ( - ( + - 72 ) ) * - 5 DIV - SUM( DISTINCT + 23 ) + - 75 + + CASE ( 2 ) WHEN 36 THEN - COUNT( * ) DIV 19 ELSE NULL END * 70 + 51 + - - 37 - - - 38 DIV + MAX( DISTINCT + 59 ) ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL + COALESCE ( - 66, + ( 68 ) / - + 88 * + - 97 - + ( - ( + - 72 ) ) * - 5 / - SUM ( DISTINCT + 23 ) + - 75 + + CASE ( 2 ) WHEN 36 THEN - COUNT ( * ) / 19 ELSE NULL END * 70 + 51 + - - 37 - - - 38 / + MAX ( DISTINCT + 59 ) ) col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT 81 DIV 22 + - 97
----
-94

skipif mysql # not compatible
query I rowsort label-3911
SELECT 81 / 22 + - 97
----
-94

query I rowsort
SELECT + 18 * - ( + - 62 )
----
1116

query I rowsort
SELECT DISTINCT - 49 + + 11 AS col1
----
-38

query I rowsort
SELECT DISTINCT - 41 * + 94 * + + 64 AS col1
----
-246656

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT ALL 40 DIV + + 22
----
1

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL 40 / + + 22
----
1

query I rowsort
SELECT 45 * + 88 AS col1
----
3960

query I rowsort
SELECT DISTINCT - 23 * 30
----
-690

query I rowsort
SELECT ALL + 68 * + 37 AS col0
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL - COUNT( ALL + - 12 ) * + 60 - + COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - COUNT ( ALL + - 12 ) * + 60 - + COUNT ( * ) AS col0
----
-61

query II rowsort
SELECT DISTINCT + 78 * 71 AS col2, 23 + - 6 AS col2
----
5538
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT 45 + - SUM( DISTINCT - 75 ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-3921
SELECT 45 + - SUM ( DISTINCT - 75 ) AS col2
----
120

query I rowsort
SELECT ALL + 60 * - + 34 * - 48 AS col2
----
97920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3923
SELECT ALL - COALESCE ( - 90, + 32, ( - 70 ) * - 48 + + MIN( DISTINCT 68 ) + NULLIF ( 60, + - 82 ) DIV - - 88, + ( + - 46 ) )
----
90

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - COALESCE ( - 90, + 32, ( - 70 ) * - 48 + + MIN ( DISTINCT 68 ) + NULLIF ( 60, + - 82 ) / - - 88, + ( + - 46 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT MIN( DISTINCT 69 )
----
69

skipif mysql # not compatible
query I rowsort label-3924
SELECT MIN ( DISTINCT 69 )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3925
SELECT COUNT( * ) DIV - NULLIF ( - + 12, - 76 * 16 ) * + 88 + + - 25 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT COUNT ( * ) / - NULLIF ( - + 12, - 76 * 16 ) * + 88 + + - 25 / + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL 96 * + 79 - COUNT( * )
----
7583

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL 96 * + 79 - COUNT ( * )
----
7583

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3927
SELECT 70 * + 39 AS col0, CAST( NULL AS SIGNED )
----
2730
NULL

skipif mysql # not compatible
query II rowsort label-3927
SELECT 70 * + 39 AS col0, CAST ( NULL AS INTEGER )
----
2730
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL - NULLIF ( + ( COUNT( * ) ), 28 / COALESCE ( 87, - + 21 + 87, + MAX( ALL - 90 ) ) + 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - NULLIF ( + ( COUNT ( * ) ), 28 / COALESCE ( 87, - + 21 + 87, + MAX ( ALL - 90 ) ) + 89 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3929
SELECT 80 - 32 - + 39 * COALESCE ( + - COUNT( * ), - NULLIF ( + 50, COUNT( * ) ) * - 68 ) * 87 + 82 + 19 AS col1, 35 + - 58
----
3542
-23

skipif mysql # not compatible
query II rowsort label-3929
SELECT 80 - 32 - + 39 * COALESCE ( + - COUNT ( * ), - NULLIF ( + 50, COUNT ( * ) ) * - 68 ) * 87 + 82 + 19 AS col1, 35 + - 58
----
3542
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3930
SELECT 89 + - 29 col0, MAX( + 64 ) DIV - COUNT( * ) + + 91
----
60
27

skipif mysql # not compatible
query II rowsort label-3930
SELECT 89 + - 29 col0, MAX ( + 64 ) / - COUNT ( * ) + + 91
----
60
27

query I rowsort
SELECT + ( - - 41 ) * - 4 * 42
----
-6888

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3932
SELECT + - 5 * + 64 + - 90 + - 38, CAST( NULL AS SIGNED ) col0
----
-448
NULL

skipif mysql # not compatible
query II rowsort label-3932
SELECT + - 5 * + 64 + - 90 + - 38, CAST ( NULL AS INTEGER ) col0
----
-448
NULL

query I rowsort
SELECT DISTINCT - 34 * + 94
----
-3196

query I rowsort
SELECT ALL + + 20 col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3935
SELECT + - CASE + ( - 8 ) WHEN - 68 * + ( + - ( COUNT( * ) ) ) + 8 + + 14 + + + 76 + - CAST( - 57 AS SIGNED ) + 33 THEN - 94 + - - 18 WHEN - 14 * + 69 + - + 45 * COALESCE ( - 12, 42 * 78 * + 89 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT + - CASE + ( - 8 ) WHEN - 68 * + ( + - ( COUNT ( * ) ) ) + 8 + + 14 + + + 76 + - CAST ( - 57 AS INTEGER ) + 33 THEN - 94 + - - 18 WHEN - 14 * + 69 + - + 45 * COALESCE ( - 12, 42 * 78 * + 89 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + 1 * + - COUNT( DISTINCT + ( - 62 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + 1 * + - COUNT ( DISTINCT + ( - 62 ) )
----
-1

query I rowsort
SELECT - + 95 * - + 3 * + + 86
----
24510

query I rowsort
SELECT + - 31 - 74 + + + 76
----
-29

query I rowsort
SELECT ALL - 40 + + - ( + ( + - 90 ) ) * + 15 * + - 93
----
-125590

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT + 82 + - COUNT( - 20 ) + - + 89
----
-8

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT + 82 + - COUNT ( - 20 ) + - + 89
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3941
SELECT + + 54 * - - 89 * - CAST( NULL AS DECIMAL ) * - 89 * + 23 * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT + + 54 * - - 89 * - CAST ( NULL AS REAL ) * - 89 * + 23 * 45 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 49 + 73 + 34 * - 51 AS col1
----
-1612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT - - COALESCE ( + COUNT( * ), COUNT( * ) + 42 - - + NULLIF ( - COUNT( 31 ), 73 * 52 / + CASE + 13 WHEN - + COUNT( * ) THEN NULL WHEN 63 / + COUNT( * ) + - CAST( - - 23 AS SIGNED ) * ( - 52 ) THEN NULL WHEN - COUNT( * ) THEN 95 END * - - 66 * CAST( + 43 AS SIGNED ) + 92 + - 87 / - - COUNT( + 86 ) ), + - 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3943
SELECT - - COALESCE ( + COUNT ( * ), COUNT ( * ) + 42 - - + NULLIF ( - COUNT ( 31 ), 73 * 52 / + CASE + 13 WHEN - + COUNT ( * ) THEN NULL WHEN 63 / + COUNT ( * ) + - CAST ( - - 23 AS INTEGER ) * ( - 52 ) THEN NULL WHEN - COUNT ( * ) THEN 95 END * - - 66 * CAST ( + 43 AS INTEGER ) + 92 + - 87 / - - COUNT ( + 86 ) ), + - 56 ) AS col2
----
1

query I rowsort
SELECT + + 19 + 61 col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT + - NULLIF ( + 17, + - 19 ) + - - 23 + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3945
SELECT + - NULLIF ( + 17, + - 19 ) + - - 23 + + COUNT ( * )
----
7

query I rowsort
SELECT - 16 * 5 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL 86 + - COALESCE ( - MAX( + 65 ), NULLIF ( - 30, + 48 + - 85 ) ) AS col0
----
151

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL 86 + - COALESCE ( - MAX ( + 65 ), NULLIF ( - 30, + 48 + - 85 ) ) AS col0
----
151

query I rowsort
SELECT + 76 * 10 col0
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT - CASE - 18 WHEN SUM( - 96 ) * - - 10 * - 19 * - COUNT( * ) - - 60 + + 64 * + 6 THEN NULL ELSE 46 END AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-3949
SELECT - CASE - 18 WHEN SUM ( - 96 ) * - - 10 * - 19 * - COUNT ( * ) - - 60 + + 64 * + 6 THEN NULL ELSE 46 END AS col0
----
-46

query II rowsort
SELECT ALL 74 AS col0, 65
----
74
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT DISTINCT 99 - 71 DIV + 35 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT 99 - 71 / + 35 AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3952
SELECT ALL COUNT( * ) - + + COUNT( CAST( + 85 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) AS col0, 23 * + - 76 col1
----
NULL
-1748

skipif mysql # not compatible
query II rowsort label-3952
SELECT ALL COUNT ( * ) - + + COUNT ( CAST ( + 85 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) AS col0, 23 * + - 76 col1
----
NULL
-1748

query I rowsort
SELECT ALL + 64 - - 72 col0
----
136

query I rowsort
SELECT + 75 * 25
----
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - SUM( ALL - 81 ) + + + 38
----
119

skipif mysql # not compatible
query I rowsort label-3955
SELECT - SUM ( ALL - 81 ) + + + 38
----
119

query I rowsort
SELECT - NULLIF ( ( - 5 ), 90 )
----
5

query I rowsort
SELECT ALL + ( + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT ( COALESCE ( + MIN( ALL - 6 ), + 4 ) ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-3958
SELECT ( COALESCE ( + MIN ( ALL - 6 ), + 4 ) ) col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT - CASE + - MAX( ALL + + 36 ) WHEN 34 + + 31 + - CASE COUNT( * ) WHEN 92 THEN + 46 WHEN + 25 - + + MIN( 17 ) THEN NULL WHEN + 85 THEN - 89 + + - 93 / + 61 ELSE - ( + 87 ) END * + 24 * CASE NULLIF ( 88, - ( 13 ) * - 41 + - + COUNT( * ) + - 63 ) WHEN - ( + 40 ) * + 2 + MIN( ( + + 17 ) ) THEN - - COALESCE ( - 60, + 70 * - - 68 ) * - 75 * - 8 END - 24 THEN - ( 84 ) / 85 ELSE NULL END + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT - CASE + - MAX ( ALL + + 36 ) WHEN 34 + + 31 + - CASE COUNT ( * ) WHEN 92 THEN + 46 WHEN + 25 - + + MIN ( 17 ) THEN NULL WHEN + 85 THEN - 89 + + - 93 / + 61 ELSE - ( + 87 ) END * + 24 * CASE NULLIF ( 88, - ( 13 ) * - 41 + - + COUNT ( * ) + - 63 ) WHEN - ( + 40 ) * + 2 + MIN ( ( + + 17 ) ) THEN - - COALESCE ( - 60, + 70 * - - 68 ) * - 75 * - 8 END - 24 THEN - ( 84 ) / 85 ELSE NULL END + + 83
----
NULL

query I rowsort
SELECT ALL + 1 * 62
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT DISTINCT 86 DIV 69 * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT 86 / 69 * - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ALL - 29 * + - ( + + 55 )
----
1595

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3963
SELECT DISTINCT + 28 AS col0, + 84 + CAST( 24 AS SIGNED ) + - 94 * + + 85 + - CAST( - 94 AS SIGNED ) DIV + + 51
----
28
-7881

skipif mysql # not compatible
query II rowsort label-3963
SELECT DISTINCT + 28 AS col0, + 84 + CAST ( 24 AS INTEGER ) + - 94 * + + 85 + - CAST ( - 94 AS INTEGER ) / + + 51
----
28
-7881

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3964
SELECT + CAST( NULL AS SIGNED ), + 64 AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-3964
SELECT + CAST ( NULL AS INTEGER ), + 64 AS col0
----
NULL
64

query I rowsort
SELECT - 8 * + 43 AS col2
----
-344

query I rowsort
SELECT ALL - 29 * 11
----
-319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3967
SELECT ALL 69 * + - ( - 89 ) * - CAST( + COUNT( * ) AS SIGNED ) + MIN( ALL + 90 ) * + - CAST( NULL AS DECIMAL ) * + - ( - AVG ( - 42 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL 69 * + - ( - 89 ) * - CAST ( + COUNT ( * ) AS INTEGER ) + MIN ( ALL + 90 ) * + - CAST ( NULL AS REAL ) * + - ( - AVG ( - 42 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3968
SELECT - 1 * - SUM( DISTINCT + CAST( - - COALESCE ( + 57, ( - 32 ) ) AS SIGNED ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3968
SELECT - 1 * - SUM ( DISTINCT + CAST ( - - COALESCE ( + 57, ( - 32 ) ) AS INTEGER ) ) AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT + 71 * CAST( + 98 AS SIGNED ) + + + 79 * - 87 - + 0 * 9 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3969
SELECT + 71 * CAST ( + 98 AS INTEGER ) + + + 79 * - 87 - + 0 * 9 AS col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT + 75 + + + CAST( NULL AS SIGNED ) / + 4 + + 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3970
SELECT + 75 + + + CAST ( NULL AS INTEGER ) / + 4 + + 62 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL - NULLIF ( 84, MIN( + 23 ) + + 99 ) * 42 * 69 + - 62 - - - 67 * + - 19 col0
----
-242221

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL - NULLIF ( 84, MIN ( + 23 ) + + 99 ) * 42 * 69 + - 62 - - - 67 * + - 19 col0
----
-242221

query I rowsort
SELECT DISTINCT + + NULLIF ( + + 54, - + 6 * - 63 + - NULLIF ( + - 96, 70 ) - - - 13 )
----
54

query I rowsort
SELECT DISTINCT + 14 * + NULLIF ( + ( + 13 ), + 24 ) + - 12 - + 84 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT - - MIN( DISTINCT - 82 ) + - 41 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-3974
SELECT - - MIN ( DISTINCT - 82 ) + - 41 AS col0
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-3975
SELECT - NULLIF ( + 84, 68 * + ( + 19 ) ) DIV - - 23
----
-3

skipif mysql # not compatible
query I rowsort label-3975
SELECT - NULLIF ( + 84, 68 * + ( + 19 ) ) / - - 23
----
-3

query I rowsort
SELECT + 93 * + 41 - - - 94 + 62
----
3781

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT COUNT( 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3977
SELECT COUNT ( 99 ) AS col1
----
1

query I rowsort
SELECT + 87 + + 81 AS col1
----
168

query II rowsort
SELECT DISTINCT + - 42 * + + 14 + 8 AS col2, + 8 AS col0
----
-580
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT ALL 61 * + SUM( ALL - - 37 ) + + 15 col0
----
2272

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL 61 * + SUM ( ALL - - 37 ) + + 15 col0
----
2272

query I rowsort
SELECT DISTINCT + 35 * - 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT ALL 23 DIV - 72 * - - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL 23 / - 72 * - - 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3983
SELECT DISTINCT COUNT( * ), + 23 col0
----
1
23

skipif mysql # not compatible
query II rowsort label-3983
SELECT DISTINCT COUNT ( * ), + 23 col0
----
1
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT DISTINCT 40 DIV - - 8 col0
----
5

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT 40 / - - 8 col0
----
5

query II rowsort
SELECT DISTINCT 78 AS col0, + 60 AS col0
----
78
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - MAX( DISTINCT - 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3986
SELECT - MAX ( DISTINCT - 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT 80 col1, - ( - COUNT( * ) ) AS col0
----
80
1

skipif mysql # not compatible
query II rowsort label-3987
SELECT 80 col1, - ( - COUNT ( * ) ) AS col0
----
80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT - ( + - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3988
SELECT - ( + - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT + COUNT( * ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-3989
SELECT + COUNT ( * ) * - 9
----
-9

query I rowsort
SELECT ALL 33 * 97
----
3201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3991
SELECT ALL - 42 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL - 42 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT + SUM( ALL ( - 33 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT + SUM ( ALL ( - 33 ) )
----
-33

query I rowsort
SELECT DISTINCT 80 * - 84
----
-6720

query I rowsort
SELECT DISTINCT 38 + + 93
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ALL 73 + - 57 - + COUNT( * ) + - + 21 * - + 13
----
288

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL 73 + - 57 - + COUNT ( * ) + - + 21 * - + 13
----
288

query II rowsort
SELECT 80, 98 * 25 AS col1
----
80
2450

query I rowsort
SELECT 51 * 98 AS col0
----
4998

query I rowsort
SELECT + COALESCE ( - 30, - - 54 + - 37, 27 * - - 79 * + 44 ) col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL - 93 + COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - 93 + COUNT ( * ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-4000
SELECT COUNT( * ) + + 21 AS col0, 18 - COUNT( * ) + + COUNT( * ) + - 91 * 60 * - 54
----
22
294858

skipif mysql # not compatible
query II rowsort label-4000
SELECT COUNT ( * ) + + 21 AS col0, 18 - COUNT ( * ) + + COUNT ( * ) + - 91 * 60 * - 54
----
22
294858

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT ALL + ( - 8 ) DIV 49 * + 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL + ( - 8 ) / 49 * + 21 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4002
SELECT - ( + 41 ) DIV - - 83 * + 95 col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-4002
SELECT - ( + 41 ) / - - 83 * + 95 col0, COUNT ( * )
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT 54 * + 49 * + NULLIF ( - 10, + + COALESCE ( 93, + + 68, + CASE + MIN( - + 46 ) WHEN - 18 THEN NULL WHEN + + 27 + + 99 - + 16 * - COALESCE ( 75, + 78 ) THEN + COUNT( * ) ELSE 7 / 30 * CAST( NULL AS SIGNED ) * - - 24 END ) ) + + 70
----
-26390

skipif mysql # not compatible
query I rowsort label-4003
SELECT 54 * + 49 * + NULLIF ( - 10, + + COALESCE ( 93, + + 68, + CASE + MIN ( - + 46 ) WHEN - 18 THEN NULL WHEN + + 27 + + 99 - + 16 * - COALESCE ( 75, + 78 ) THEN + COUNT ( * ) ELSE 7 / 30 * CAST ( NULL AS INTEGER ) * - - 24 END ) ) + + 70
----
-26390

query II rowsort
SELECT ALL - + 12 + 89 - - 66 + + 80 * 13 * + 99 * 61, + 19 + 57 col1
----
6280703
76

query I rowsort
SELECT 10 * + 3 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4006
SELECT 56 + + 76 DIV + COUNT( * ) + 96 + - + 90
----
138

skipif mysql # not compatible
query I rowsort label-4006
SELECT 56 + + 76 / + COUNT ( * ) + 96 + - + 90
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT + + COALESCE ( 27, 9 DIV 97 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-4007
SELECT + + COALESCE ( 27, 9 / 97 ) col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT 46 - + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4008
SELECT 46 - + COUNT ( * )
----
45

query II rowsort
SELECT DISTINCT - - 50 col0, 89
----
50
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4010
SELECT ALL + CAST( NULL AS DECIMAL ) - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL + CAST ( NULL AS REAL ) - 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL SUM( ALL + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL SUM ( ALL + 64 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT - 28 * + 52 - + CAST( 3 AS SIGNED ) col1
----
-1459

skipif mysql # not compatible
query I rowsort label-4012
SELECT - 28 * + 52 - + CAST ( 3 AS INTEGER ) col1
----
-1459

query I rowsort
SELECT DISTINCT + 5 - - 61 - + NULLIF ( - + COALESCE ( - 92, 14 - + 57 ), AVG ( ALL - + 80 ) )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4014
SELECT ALL 29 AS col1, 1 * - 24 + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * - 5
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4014
SELECT ALL 29 AS col1, 1 * - 24 + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * - 5
----
29
NULL

query II rowsort
SELECT - 52 AS col1, 4
----
-52
4

query II rowsort
SELECT 35 + 73 AS col2, 68 AS col2
----
108
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4017
SELECT 80 - + CAST( NULL AS SIGNED ) - 40 * - COUNT( * ) - + 35 col0, 1 + 75 + - 69 + 33 DIV - MAX( DISTINCT - - 50 ) * - 81 AS col1
----
NULL
7

skipif mysql # not compatible
query II rowsort label-4017
SELECT 80 - + CAST ( NULL AS INTEGER ) - 40 * - COUNT ( * ) - + 35 col0, 1 + 75 + - 69 + 33 / - MAX ( DISTINCT - - 50 ) * - 81 AS col1
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT 54 + - + 18 * + 98 * - - SUM( 84 ) * - 35
----
5186214

skipif mysql # not compatible
query I rowsort label-4018
SELECT 54 + - + 18 * + 98 * - - SUM ( 84 ) * - 35
----
5186214

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT 64 + + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4019
SELECT 64 + + COUNT ( * ) AS col2
----
65

query I rowsort
SELECT DISTINCT + 19 * 53 AS col2
----
1007

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL COUNT( * ) + - - 3 * + 74 - + 1
----
222

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL COUNT ( * ) + - - 3 * + 74 - + 1
----
222

query I rowsort
SELECT ALL + 1 * - ( + 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL - 47 * + - COUNT( * ) * - - NULLIF ( + - 83, - + AVG ( DISTINCT - - 52 ) ) * + 79 + + - 88 + 24
----
-308243

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - 47 * + - COUNT ( * ) * - - NULLIF ( + - 83, - + AVG ( DISTINCT - - 52 ) ) * + 79 + + - 88 + 24
----
-308243

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL 86 + 68 - 65 * 54 * 60 * - COUNT( * ) AS col2
----
210754

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL 86 + 68 - 65 * 54 * 60 * - COUNT ( * ) AS col2
----
210754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4025
SELECT 99 + CAST( NULL AS SIGNED ) + - - 9 + + - CASE + + 0 WHEN + SUM( ALL 22 ) THEN - + ( 73 ) / + 97 * + ( + - 15 ) * 95 * - 29 + + 91 WHEN + - COUNT( * ) THEN - 24 ELSE - 50 - + - 96 * + COUNT( * ) END - + 3 * - CAST( NULL AS DECIMAL ) / - ( + - 86 ) * 92 * - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT 99 + CAST ( NULL AS INTEGER ) + - - 9 + + - CASE + + 0 WHEN + SUM ( ALL 22 ) THEN - + ( 73 ) / + 97 * + ( + - 15 ) * 95 * - 29 + + 91 WHEN + - COUNT ( * ) THEN - 24 ELSE - 50 - + - 96 * + COUNT ( * ) END - + 3 * - CAST ( NULL AS REAL ) / - ( + - 86 ) * 92 * - 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4026
SELECT COALESCE ( + 68, 90, - + 21 + - 51 ) + + + ( - - 71 ) DIV - + NULLIF ( COUNT( * ), COUNT( * ) DIV 16 + + 2 ) col1, + 27 * - 57
----
-3
-1539

skipif mysql # not compatible
query II rowsort label-4026
SELECT COALESCE ( + 68, 90, - + 21 + - 51 ) + + + ( - - 71 ) / - + NULLIF ( COUNT ( * ), COUNT ( * ) / 16 + + 2 ) col1, + 27 * - 57
----
-3
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT 32 + - + 14 * - COUNT( ALL + 85 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT 32 + - + 14 * - COUNT ( ALL + 85 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL + COUNT( * ) + - 4 * - + 4
----
17

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + COUNT ( * ) + - 4 * - + 4
----
17

query I rowsort
SELECT ALL - 64 + + + 35 col2
----
-29

query I rowsort
SELECT DISTINCT - 5 * - 56 * - 87
----
-24360

query I rowsort
SELECT 45 * + 52 col2
----
2340

query I rowsort
SELECT ALL 93 - + 44
----
49

query I rowsort
SELECT + 13 * - 11 AS col0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL - 46 * + 8 + - + COUNT( * )
----
-369

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - 46 * + 8 + - + COUNT ( * )
----
-369

query I rowsort
SELECT ALL 18 * - 37 + - 45 + ( + 15 ) AS col0
----
-696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT ALL 23 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL 23 * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 74 * + 82
----
6068

onlyif mysql # aggregate syntax: 
query II rowsort label-4038
SELECT ALL COUNT( * ), ( - 56 ) AS col1
----
1
-56

skipif mysql # not compatible
query II rowsort label-4038
SELECT ALL COUNT ( * ), ( - 56 ) AS col1
----
1
-56

query I rowsort
SELECT 64 * 82 AS col2
----
5248

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT MIN( - 37 ) + - - 22 * 2
----
7

skipif mysql # not compatible
query I rowsort label-4040
SELECT MIN ( - 37 ) + - - 22 * 2
----
7

query I rowsort
SELECT DISTINCT 69 * 19
----
1311

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL - 42 + - COUNT( * ) + - 34 + + COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL - 42 + - COUNT ( * ) + - 34 + + COUNT ( * ) AS col1
----
-76

query I rowsort
SELECT DISTINCT CASE + 61 WHEN - 17 THEN NULL ELSE + 79 END
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4044
SELECT DISTINCT COALESCE ( + - 89, - - 62 * + CASE COUNT( * ) WHEN - - 71 - + + 43 + - - 19 * 1 * - 13 + - CAST( NULL AS SIGNED ) THEN - 25 * - - COALESCE ( - NULLIF ( + COUNT( 53 ), 59 DIV - - 16 * - CASE CAST( 71 AS SIGNED ) WHEN - 1 THEN NULL WHEN - 62 + + 12 * - ( - ( - + ( - - 6 ) ) ) THEN NULL ELSE + + 56 + + 36 END ), - 8 * - + COUNT( * ) - + + MAX( - CASE + 17 WHEN + 26 * 45 THEN NULL ELSE + - 63 END ) + CAST( MAX( ALL + - 10 ) AS SIGNED ) DIV - NULLIF ( - - NULLIF ( CAST( NULL AS SIGNED ), + 83 ), CAST( 74 AS SIGNED ) ) * - 57 ) END, - 64 * + 67, - 21 * + 17, 83 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT COALESCE ( + - 89, - - 62 * + CASE COUNT ( * ) WHEN - - 71 - + + 43 + - - 19 * 1 * - 13 + - CAST ( NULL AS INTEGER ) THEN - 25 * - - COALESCE ( - NULLIF ( + COUNT ( 53 ), 59 / - - 16 * - CASE CAST ( 71 AS INTEGER ) WHEN - 1 THEN NULL WHEN - 62 + + 12 * - ( - ( - + ( - - 6 ) ) ) THEN NULL ELSE + + 56 + + 36 END ), - 8 * - + COUNT ( * ) - + + MAX ( - CASE + 17 WHEN + 26 * 45 THEN NULL ELSE + - 63 END ) + CAST ( MAX ( ALL + - 10 ) AS INTEGER ) / - NULLIF ( - - NULLIF ( CAST ( NULL AS INTEGER ), + 83 ), CAST ( 74 AS INTEGER ) ) * - 57 ) END, - 64 * + 67, - 21 * + 17, 83 ) AS col2
----
-89

query I rowsort
SELECT ALL + 70 * + - 97
----
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT ALL - COUNT( * ) + 49 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL - COUNT ( * ) + 49 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT - COUNT( * ) - - 50
----
49

skipif mysql # not compatible
query I rowsort label-4047
SELECT - COUNT ( * ) - - 50
----
49

query II rowsort
SELECT - 1 AS col0, 24 col1
----
-1
24

query I rowsort
SELECT - 80 * 13
----
-1040

query I rowsort
SELECT - 86 * 2 AS col1
----
-172

query II rowsort
SELECT 56 AS col1, - 82
----
56
-82

query II rowsort
SELECT - 61 col0, + 73
----
-61
73

query I rowsort
SELECT ALL 44 + + 66 - - - 97 * - + 22 * + ( 37 ) * + + 7 AS col1
----
552816

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT - 50 * - ( - MIN( - 83 ) )
----
4150

skipif mysql # not compatible
query I rowsort label-4054
SELECT - 50 * - ( - MIN ( - 83 ) )
----
4150

query I rowsort
SELECT ALL - 71 * 93
----
-6603

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL MIN( + 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL MIN ( + 72 ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4057
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 16 AS col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-4057
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 16 AS col0
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT ALL + - 75 * + 91 + - 40 - + 77 * COUNT( * ) * + 42 + + - SUM( ALL + 14 ) * ( - + 58 ) - - 15
----
-9272

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + - 75 * + 91 + - 40 - + 77 * COUNT ( * ) * + 42 + + - SUM ( ALL + 14 ) * ( - + 58 ) - - 15
----
-9272

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ( - 63 ) * + COUNT( * ) - + 62 * + 72 + 47 + 23 * - 59
----
-5837

skipif mysql # not compatible
query I rowsort label-4059
SELECT ( - 63 ) * + COUNT ( * ) - + 62 * + 72 + 47 + 23 * - 59
----
-5837

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT MIN( 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-4060
SELECT MIN ( 2 ) AS col1
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4061
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col1, 92 AS col1
----
NULL
92

skipif mysql # not compatible
query II rowsort label-4061
SELECT ALL + + CAST ( NULL AS REAL ) AS col1, 92 AS col1
----
NULL
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4062
SELECT - ( - - 31 ) DIV COUNT( * ) * 36 DIV + CAST( 69 AS SIGNED ) * + COUNT( - 51 ) + - 42 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4062
SELECT - ( - - 31 ) / COUNT ( * ) * 36 / + CAST ( 69 AS INTEGER ) * + COUNT ( - 51 ) + - 42 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT + 83 * + MAX( ALL - 58 ) * + + 99 * + NULLIF ( 22, - COUNT( * ) ) AS col1
----
-10484892

skipif mysql # not compatible
query I rowsort label-4063
SELECT + 83 * + MAX ( ALL - 58 ) * + + 99 * + NULLIF ( 22, - COUNT ( * ) ) AS col1
----
-10484892

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT ALL - CAST( NULL AS SIGNED ) * ( + + 4 ) - - - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + + 4 ) - - - 36
----
NULL

query I rowsort
SELECT + 10 + 32
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT DISTINCT + MIN( + 67 ) * + 80 * + 8 AS col2
----
42880

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT + MIN ( + 67 ) * + 80 * + 8 AS col2
----
42880

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL COUNT( * ) * - + 22
----
-22

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL COUNT ( * ) * - + 22
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4068
SELECT + + COUNT( * ) * + NULLIF ( + 15, - - AVG ( DISTINCT + CASE 8 WHEN - 55 + - - 10 * + 95 THEN + COALESCE ( - - 27, - 43, - 86 * 21 + - 78 + - - 70 - - 46 * - 73 DIV - 91 + + 85 ) - - + 52 WHEN + 97 THEN + - 75 * + 47 + - 39 WHEN 28 THEN NULL END ) + ( + 20 ) ) DIV - 6
----
-2

skipif mysql # not compatible
query I rowsort label-4068
SELECT + + COUNT ( * ) * + NULLIF ( + 15, - - AVG ( DISTINCT + CASE 8 WHEN - 55 + - - 10 * + 95 THEN + COALESCE ( - - 27, - 43, - 86 * 21 + - 78 + - - 70 - - 46 * - 73 / - 91 + + 85 ) - - + 52 WHEN + 97 THEN + - 75 * + 47 + - 39 WHEN 28 THEN NULL END ) + ( + 20 ) ) / - 6
----
-2

query I rowsort
SELECT + + ( + 16 ) + - 90 - 72 + 15
----
-131

query I rowsort
SELECT + ( + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT SUM( DISTINCT + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4071
SELECT SUM ( DISTINCT + 63 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT - 34 + + + 9 - COUNT( ALL - 12 ) AS col1, + COUNT( - + 64 ) AS col1
----
-26
1

skipif mysql # not compatible
query II rowsort label-4072
SELECT - 34 + + + 9 - COUNT ( ALL - 12 ) AS col1, + COUNT ( - + 64 ) AS col1
----
-26
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4073
SELECT ALL 26 * + 45 + - + 31 DIV 33 * + + COUNT( * ) + 95 * + 17
----
2785

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL 26 * + 45 + - + 31 / 33 * + + COUNT ( * ) + 95 * + 17
----
2785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT + SUM( + 33 ) * + + 71 - + CAST( NULL AS SIGNED ) + 25 / - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT + SUM ( + 33 ) * + + 71 - + CAST ( NULL AS INTEGER ) + 25 / - 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4075
SELECT MAX( DISTINCT + 10 ) AS col2, + 77 AS col1
----
10
77

skipif mysql # not compatible
query II rowsort label-4075
SELECT MAX ( DISTINCT + 10 ) AS col2, + 77 AS col1
----
10
77

query I rowsort
SELECT ALL 22 + 44 * 83 + - + 9 * + 15
----
3539

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT + ( - COUNT( DISTINCT 25 ) ) + + COUNT( ALL + 84 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT + ( - COUNT ( DISTINCT 25 ) ) + + COUNT ( ALL + 84 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4078
SELECT DISTINCT COUNT( * ) * 13, 66 AS col0
----
13
66

skipif mysql # not compatible
query II rowsort label-4078
SELECT DISTINCT COUNT ( * ) * 13, 66 AS col0
----
13
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT - 86 - - 80 + - ( - COUNT( * ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT - 86 - - 80 + - ( - COUNT ( * ) ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 84 * + - 57 AS col0
----
4788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT - CAST( - 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-4081
SELECT - CAST ( - 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL + COUNT( * ) + 24 - ( - 67 ) + - - COUNT( - 1 ) - + - 64 * COUNT( * )
----
157

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + COUNT ( * ) + 24 - ( - 67 ) + - - COUNT ( - 1 ) - + - 64 * COUNT ( * )
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT DISTINCT MIN( ALL + 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT MIN ( ALL + 44 ) AS col1
----
44

query I rowsort
SELECT ALL 15 * - 72 AS col1
----
-1080

query I rowsort
SELECT DISTINCT ( - - 82 ) AS col1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4086
SELECT ALL CAST( 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL CAST ( 16 AS INTEGER )
----
16

query I rowsort
SELECT ALL + - 18 - + 56 - - 79 * - 42 * - - 72 + 49 * + - 61 * 44 AS col1
----
-370486

query I rowsort
SELECT ALL - 72 * 44 * 5
----
-15840

query I rowsort
SELECT - - 67 + 29 AS col1
----
96

query I rowsort
SELECT - + 50 * + 43 AS col0
----
-2150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4091
SELECT DISTINCT - - COUNT( * ) DIV + + 19 + + + 74 col2
----
74

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT - - COUNT ( * ) / + + 19 + + + 74 col2
----
74

query II rowsort
SELECT - 15 + + 67, + 82 * 68 + + + 67 AS col2
----
52
5643

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4093
SELECT - - 24 * + 10, - 93 * CAST( NULL AS SIGNED ) * + - 66 * - 85 + 54 AS col1
----
240
NULL

skipif mysql # not compatible
query II rowsort label-4093
SELECT - - 24 * + 10, - 93 * CAST ( NULL AS INTEGER ) * + - 66 * - 85 + 54 AS col1
----
240
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT + COALESCE ( - NULLIF ( + 70, 0 ), + CAST( COUNT( 37 ) AS SIGNED ) ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4094
SELECT + COALESCE ( - NULLIF ( + 70, 0 ), + CAST ( COUNT ( 37 ) AS INTEGER ) ) AS col2
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT + + 49 * CAST( NULL AS SIGNED ) / + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT + + 49 * CAST ( NULL AS INTEGER ) / + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT + + 91 * + MAX( DISTINCT - 72 ) + 84
----
-6468

skipif mysql # not compatible
query I rowsort label-4096
SELECT + + 91 * + MAX ( DISTINCT - 72 ) + 84
----
-6468

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT ALL + 68 DIV - 1 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL + 68 / - 1 AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT - + COUNT( * ) - 36 * ( 60 )
----
-2161

skipif mysql # not compatible
query I rowsort label-4098
SELECT - + COUNT ( * ) - 36 * ( 60 )
----
-2161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4099
SELECT DISTINCT - 67 DIV + ( - 4 ) + - - MIN( 45 ) + - SUM( + + 30 ) * - + 52 col1
----
1621

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT - 67 / + ( - 4 ) + - - MIN ( 45 ) + - SUM ( + + 30 ) * - + 52 col1
----
1621

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL 28 * - COUNT( * ) + + 66 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL 28 * - COUNT ( * ) + + 66 AS col1
----
38

query I rowsort
SELECT ALL 22 + - 69 * - 90
----
6232

query I rowsort
SELECT ALL 81 * + + 97 col1
----
7857

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT 70 * + COUNT( * ) * - + 90 col2, 73 AS col1
----
-6300
73

skipif mysql # not compatible
query II rowsort label-4103
SELECT 70 * + COUNT ( * ) * - + 90 col2, 73 AS col1
----
-6300
73

query I rowsort
SELECT DISTINCT 16 * - 3 AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) + - 85 / - + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4105
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 85 / - + 67 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT COUNT( * ) * - ( CASE - ( - 31 ) WHEN + COUNT( * ) THEN 60 + 97 WHEN 8 THEN + 39 * 10 WHEN + 62 * + ( - + 95 ) - + 71 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT COUNT ( * ) * - ( CASE - ( - 31 ) WHEN + COUNT ( * ) THEN 60 + 97 WHEN 8 THEN + 39 * 10 WHEN + 62 * + ( - + 95 ) - + 71 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL MIN( DISTINCT 49 ) + 26
----
75

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL MIN ( DISTINCT 49 ) + 26
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4108
SELECT ALL COUNT( * ) DIV - ( + 30 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL COUNT ( * ) / - ( + 30 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT COUNT( * ) * - CASE + - 22 WHEN + 35 + + 20 + + ( - + 7 ) THEN 29 WHEN - - 81 THEN NULL END * + COUNT( - + 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT COUNT ( * ) * - CASE + - 22 WHEN + 35 + + 20 + + ( - + 7 ) THEN 29 WHEN - - 81 THEN NULL END * + COUNT ( - + 69 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4110
SELECT DISTINCT 7, CASE + + 10 WHEN + 40 THEN + 1 * - 92 * - SUM( - 8 ) WHEN - + 31 THEN NULL WHEN - 16 THEN NULL END AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-4110
SELECT DISTINCT 7, CASE + + 10 WHEN + 40 THEN + 1 * - 92 * - SUM ( - 8 ) WHEN - + 31 THEN NULL WHEN - 16 THEN NULL END AS col0
----
7
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4111
SELECT DISTINCT MAX( DISTINCT + CAST( + 41 AS SIGNED ) ) DIV 80 * - ( - ( 87 ) ) + - - 36 - COUNT( ALL - 36 ) * - + SUM( DISTINCT 10 ) * ( + - 87 ) - - - COUNT( * ) * + 79 AS col2, 15 AS col0
----
-913
15

skipif mysql # not compatible
query II rowsort label-4111
SELECT DISTINCT MAX ( DISTINCT + CAST ( + 41 AS INTEGER ) ) / 80 * - ( - ( 87 ) ) + - - 36 - COUNT ( ALL - 36 ) * - + SUM ( DISTINCT 10 ) * ( + - 87 ) - - - COUNT ( * ) * + 79 AS col2, 15 AS col0
----
-913
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT 30 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT 30 - - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 64 AS col0, - 13 AS col1
----
64
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT - MAX( + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - MAX ( + 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT SUM( ALL - - 37 ) - + + 54 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-4115
SELECT SUM ( ALL - - 37 ) - + + 54 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL + NULLIF ( - COUNT( + + 12 ), - - 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + NULLIF ( - COUNT ( + + 12 ), - - 25 ) AS col1
----
-1

query I rowsort
SELECT 79 + - 34 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL - COUNT( DISTINCT + + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - COUNT ( DISTINCT + + 1 )
----
-1

query I rowsort
SELECT - 27 * + + 37 + + 40 * - 11 AS col2
----
-1439

query I rowsort
SELECT 69 - 88
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4121
SELECT 56 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-4121
SELECT 56 / - 49
----
-1

query I rowsort
SELECT ALL - 37 + 60 AS col1
----
23

query II rowsort
SELECT - 49, + 61 * + + 98 AS col2
----
-49
5978

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT ALL + 46 + - + 20 DIV + 1
----
26

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL + 46 + - + 20 / + 1
----
26

query I rowsort
SELECT 90 * 33
----
2970

query II rowsort
SELECT + 78 col0, CASE 32 WHEN 62 THEN - - 34 * + - 46 ELSE + 81 * + 22 + + 94 + - 92 + 41 + - 97 END AS col2
----
78
1728

query I rowsort
SELECT 79 + + 81 * - 23
----
-1784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4128
SELECT 83 DIV + COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-4128
SELECT 83 / + COUNT ( * ) col2
----
83

query I rowsort
SELECT NULLIF ( + - ( + 57 ), - 43 ) * - 26
----
1482

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4130
SELECT ALL CASE + - CAST( NULL AS DECIMAL ) WHEN - - COUNT( * ) * + - 36 THEN 13 * + + 41 / + + 46 - - 74 + + - 23 + - NULLIF ( - 22, - 41 * - 91 ) - + 18 + + 47 + + - 34 * ( - 71 ) + + ( COUNT( * ) ) + - 93 * 97 + + 18 * 30 + 81 * - 15 + + - 68 * - - COUNT( * ) WHEN + COUNT( * ) THEN NULL END - - + 8 * + 78 + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL CASE + - CAST ( NULL AS REAL ) WHEN - - COUNT ( * ) * + - 36 THEN 13 * + + 41 / + + 46 - - 74 + + - 23 + - NULLIF ( - 22, - 41 * - 91 ) - + 18 + + 47 + + - 34 * ( - 71 ) + + ( COUNT ( * ) ) + - 93 * 97 + + 18 * 30 + 81 * - 15 + + - 68 * - - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL END - - + 8 * + 78 + 51
----
NULL

query II rowsort
SELECT ALL - 63, + 69 col0
----
-63
69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4132
SELECT + 43 AS col1, CAST( NULL AS SIGNED ) + 74
----
43
NULL

skipif mysql # not compatible
query II rowsort label-4132
SELECT + 43 AS col1, CAST ( NULL AS INTEGER ) + 74
----
43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT ALL - COUNT( * ), - 12 + - - 71 AS col1
----
-1
59

skipif mysql # not compatible
query II rowsort label-4133
SELECT ALL - COUNT ( * ), - 12 + - - 71 AS col1
----
-1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT DISTINCT MAX( 55 ) * 6 AS col1
----
330

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT MAX ( 55 ) * 6 AS col1
----
330

query II rowsort
SELECT DISTINCT 50, - 20 AS col0
----
50
-20

query I rowsort
SELECT ALL - 12 - 71
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT COUNT( * ) + 68
----
69

skipif mysql # not compatible
query I rowsort label-4137
SELECT COUNT ( * ) + 68
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT COUNT( * ) + - 33 * - 15 + 16 AS col2
----
512

skipif mysql # not compatible
query I rowsort label-4138
SELECT COUNT ( * ) + - 33 * - 15 + 16 AS col2
----
512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4139
SELECT 43 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT 43 - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 41 col2, NULLIF ( + 6, + 37 ) - 74 - - 68
----
-41
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4141
SELECT + ( + - 26 ) - + - 44 DIV + - 81 col1, - 28 - - 26
----
-26
-2

skipif mysql # not compatible
query II rowsort label-4141
SELECT + ( + - 26 ) - + - 44 / + - 81 col1, - 28 - - 26
----
-26
-2

query I rowsort
SELECT + 41 * + ( - 54 )
----
-2214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4143
SELECT COALESCE ( 25, - + COALESCE ( - 47, COUNT( * ) + - + 11 * + - CASE + - 59 WHEN + 32 THEN - + 55 + + + COALESCE ( - CAST( + 92 AS SIGNED ), + - COUNT( * ), - 9 DIV 42 + 94 * - 50 ) WHEN + - 7 + - 64 * - - 0 + - 69 THEN NULL ELSE NULL END ) * - - 34 DIV 4 + ( + COUNT( * ) ), + - 23 ) + - + 38 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4143
SELECT COALESCE ( 25, - + COALESCE ( - 47, COUNT ( * ) + - + 11 * + - CASE + - 59 WHEN + 32 THEN - + 55 + + + COALESCE ( - CAST ( + 92 AS INTEGER ), + - COUNT ( * ), - 9 / 42 + 94 * - 50 ) WHEN + - 7 + - 64 * - - 0 + - 69 THEN NULL ELSE NULL END ) * - - 34 / 4 + ( + COUNT ( * ) ), + - 23 ) + - + 38 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT ALL + 4 + + 46 + + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL + 4 + + 46 + + COUNT ( * ) AS col1
----
51

query I rowsort
SELECT 14 + + ( + 50 )
----
64

query I rowsort
SELECT ALL + - 63 * + 8 AS col0
----
-504

query II rowsort
SELECT - 21 * - - 38, 95 * 75 AS col2
----
-798
7125

query I rowsort
SELECT - ( + 86 ) + - + 72 AS col1
----
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-4149
SELECT + 32 AS col2, 14 * + COUNT( * ) - COUNT( * ) * + ( 4 ) + - ( - 96 ) * + - 2
----
32
-182

skipif mysql # not compatible
query II rowsort label-4149
SELECT + 32 AS col2, 14 * + COUNT ( * ) - COUNT ( * ) * + ( 4 ) + - ( - 96 ) * + - 2
----
32
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT MIN( DISTINCT - - 12 ) * + - MIN( DISTINCT - NULLIF ( - 64, + + 59 / + + 83 * 26 * - 31 + + - 56 ) )
----
-768

skipif mysql # not compatible
query I rowsort label-4150
SELECT MIN ( DISTINCT - - 12 ) * + - MIN ( DISTINCT - NULLIF ( - 64, + + 59 / + + 83 * 26 * - 31 + + - 56 ) )
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT + COUNT( * ) + 28 * - 50
----
-1399

skipif mysql # not compatible
query I rowsort label-4151
SELECT + COUNT ( * ) + 28 * - 50
----
-1399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT + 57 * - + CAST( - 9 AS SIGNED ) AS col1
----
513

skipif mysql # not compatible
query I rowsort label-4152
SELECT + 57 * - + CAST ( - 9 AS INTEGER ) AS col1
----
513

query I rowsort
SELECT 83 + + 15
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT - CASE - 52 WHEN + - 86 / - 60 THEN - CAST( NULL AS SIGNED ) * 36 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT - CASE - 52 WHEN + - 86 / - 60 THEN - CAST ( NULL AS INTEGER ) * 36 END AS col1
----
NULL

query I rowsort
SELECT ALL 35 * + 56
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT ALL 4 * + - COUNT( * ) * - 10 + 81
----
121

skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL 4 * + - COUNT ( * ) * - 10 + 81
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-4157
SELECT ALL + - 62, COUNT( * ) AS col1
----
-62
1

skipif mysql # not compatible
query II rowsort label-4157
SELECT ALL + - 62, COUNT ( * ) AS col1
----
-62
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT NULLIF ( + 65, + 41 * CAST( 95 AS SIGNED ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4158
SELECT NULLIF ( + 65, + 41 * CAST ( 95 AS INTEGER ) ) AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4159
SELECT NULLIF ( MIN( 97 ), + CASE + 51 WHEN 17 THEN - 19 / - 44 * - + SUM( ALL 58 ) * - + COUNT( * ) + + + 74 - 82 * - + 6 + MIN( + 90 ) * - 6 WHEN + - CAST( - + MIN( 28 ) AS SIGNED ) THEN NULL ELSE - + 11 + + 16 END )
----
97

skipif mysql # not compatible
query I rowsort label-4159
SELECT NULLIF ( MIN ( 97 ), + CASE + 51 WHEN 17 THEN - 19 / - 44 * - + SUM ( ALL 58 ) * - + COUNT ( * ) + + + 74 - 82 * - + 6 + MIN ( + 90 ) * - 6 WHEN + - CAST ( - + MIN ( 28 ) AS INTEGER ) THEN NULL ELSE - + 11 + + 16 END )
----
97

query I rowsort
SELECT - 69 * + + 23
----
-1587

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT + 76 * 45 * COUNT( ALL 30 ) * + 20 + - 83
----
68317

skipif mysql # not compatible
query I rowsort label-4161
SELECT + 76 * 45 * COUNT ( ALL 30 ) * + 20 + - 83
----
68317

query I rowsort
SELECT + 40 - NULLIF ( - 80, + 34 ) + 44 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + COALESCE ( + + 42, - COALESCE ( + - 57, COUNT( * ) + COUNT( * ) ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4163
SELECT + COALESCE ( + + 42, - COALESCE ( + - 57, COUNT ( * ) + COUNT ( * ) ) ) AS col0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-4164
SELECT - 22 DIV + 2 AS col2, - ( - 76 ) AS col0
----
-11
76

skipif mysql # not compatible
query II rowsort label-4164
SELECT - 22 / + 2 AS col2, - ( - 76 ) AS col0
----
-11
76

query I rowsort
SELECT ALL + 25 * - - 18
----
450

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4166
SELECT ALL COUNT( * ) DIV - - 55 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL COUNT ( * ) / - - 55 * - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT DISTINCT MIN( COALESCE ( - 31, - ( + - 90 ), - 24 ) ) * - - 46 * + - 32 + - 22 + - ( - 35 ) col2
----
45645

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT MIN ( COALESCE ( - 31, - ( + - 90 ), - 24 ) ) * - - 46 * + - 32 + - 22 + - ( - 35 ) col2
----
45645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4168
SELECT ALL + MAX( ALL + 84 ) AS col2, + ( - 60 ) * - + COUNT( * ) * - ( SUM( - + 87 ) ) + - CAST( 29 AS SIGNED ) + 84 AS col1
----
84
5275

skipif mysql # not compatible
query II rowsort label-4168
SELECT ALL + MAX ( ALL + 84 ) AS col2, + ( - 60 ) * - + COUNT ( * ) * - ( SUM ( - + 87 ) ) + - CAST ( 29 AS INTEGER ) + 84 AS col1
----
84
5275

query II rowsort
SELECT - 27 + - - 51 AS col2, - 15 AS col0
----
24
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - NULLIF ( + ( - + 97 ), + 9 ) * + - 53 - - 36 + + - COUNT( * ) * - ( 42 ) * 82 + - + 12 * + NULLIF ( - 54, - COUNT( - - 90 ) )
----
-1013

skipif mysql # not compatible
query I rowsort label-4170
SELECT - NULLIF ( + ( - + 97 ), + 9 ) * + - 53 - - 36 + + - COUNT ( * ) * - ( 42 ) * 82 + - + 12 * + NULLIF ( - 54, - COUNT ( - - 90 ) )
----
-1013

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4171
SELECT ALL + NULLIF ( + - CAST( NULL AS SIGNED ), 70 ) * - ( - - 9 ) AS col1, 18 - ( CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4171
SELECT ALL + NULLIF ( + - CAST ( NULL AS INTEGER ), 70 ) * - ( - - 9 ) AS col1, 18 - ( CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - 38 * COUNT( * ) + + 51
----
13

skipif mysql # not compatible
query I rowsort label-4172
SELECT - 38 * COUNT ( * ) + + 51
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT DISTINCT - ( + 82 ) DIV 87 + - 7 * - + 45 AS col2
----
315

skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT - ( + 82 ) / 87 + - 7 * - + 45 AS col2
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + COUNT( * ) + + + COUNT( * ) * + 36 * - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-4174
SELECT + COUNT ( * ) + + + COUNT ( * ) * + 36 * - COUNT ( * )
----
-35

query I rowsort
SELECT ALL - - 32 + - - 26
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT ALL MAX( 97 ) + + 19 AS col2
----
116

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL MAX ( 97 ) + + 19 AS col2
----
116

query II rowsort
SELECT DISTINCT - 31 + + 5 + + + NULLIF ( + - 57, - 85 ), + 52 col0
----
-83
52

query I rowsort
SELECT - - 92 - - 48 * + 47 + + 82
----
2430

query II rowsort
SELECT - + 17 * + 77 AS col0, + 69 AS col2
----
-1309
69

query I rowsort
SELECT + + 12 * - + 76 AS col2
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT - COALESCE ( + + 76, 60, + - ( + COUNT( * ) ) )
----
-76

skipif mysql # not compatible
query I rowsort label-4181
SELECT - COALESCE ( + + 76, 60, + - ( + COUNT ( * ) ) )
----
-76

query I rowsort
SELECT DISTINCT - - 2 + ( - + 52 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4183
SELECT + SUM( + - 93 ), 37 AS col0
----
-93
37

skipif mysql # not compatible
query II rowsort label-4183
SELECT + SUM ( + - 93 ), 37 AS col0
----
-93
37

query I rowsort
SELECT + - ( + CASE + 2 WHEN + 8 * + 72 THEN NULL ELSE - 54 END ) AS col0
----
54

query II rowsort
SELECT ALL + 35 col0, + 22
----
35
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4186
SELECT ALL 54 DIV 65 DIV - COUNT( * ) * + 76 - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL 54 / 65 / - COUNT ( * ) * + 76 - + 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT + 70 * + - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-4187
SELECT + 70 * + - COUNT ( * )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT + 46 - + MAX( ALL + + 65 ) / ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT + 46 - + MAX ( ALL + + 65 ) / ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT CAST( - 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-4189
SELECT CAST ( - 69 AS INTEGER ) AS col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4190
SELECT 29 * - + ( + MIN( 58 ) ) - + COUNT( * ) * 88 AS col0, 40 * + + 63 AS col1
----
-1770
2520

skipif mysql # not compatible
query II rowsort label-4190
SELECT 29 * - + ( + MIN ( 58 ) ) - + COUNT ( * ) * 88 AS col0, 40 * + + 63 AS col1
----
-1770
2520

query I rowsort
SELECT + ( - 22 ) AS col2
----
-22

query II rowsort
SELECT ALL + 70, 55 * + 67 AS col0
----
70
3685

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL COUNT( * ) * - - 59 col1
----
59

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL COUNT ( * ) * - - 59 col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4194
SELECT + CAST( - 15 AS SIGNED ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4194
SELECT + CAST ( - 15 AS INTEGER ) AS col0
----
-15

query I rowsort
SELECT + 86 + - 27
----
59

query II rowsort
SELECT ALL + 53 AS col2, - 76 * - 13 AS col2
----
53
988

onlyif mysql # aggregate syntax: 
query III rowsort label-4197
SELECT DISTINCT + 56 AS col2, - 36 * - 43 + ( + 68 ) + 11, - + COUNT( * ) AS col0
----
56
1627
-1

skipif mysql # not compatible
query III rowsort label-4197
SELECT DISTINCT + 56 AS col2, - 36 * - 43 + ( + 68 ) + 11, - + COUNT ( * ) AS col0
----
56
1627
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT ALL + COUNT( - ( - 60 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL + COUNT ( - ( - 60 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * MAX( ALL - 67 ) + + + SUM( + 90 ) + + - 93 + + 71 + 81 / 31 * + + 35 * - 38 + + + 41 * + 61 + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * MAX ( ALL - 67 ) + + + SUM ( + 90 ) + + - 93 + + 71 + 81 / 31 * + + 35 * - 38 + + + 41 * + 61 + - 48
----
NULL

query I rowsort
SELECT + 68 + + 35 col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT DISTINCT + SUM( + - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT + SUM ( + - 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL - COUNT( ALL 66 ) * - 67 col0
----
67

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - COUNT ( ALL 66 ) * - 67 col0
----
67

query I rowsort
SELECT + 44 * - + ( 72 )
----
-3168

query I rowsort
SELECT - 50 * 69
----
-3450

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT ALL + 62, COUNT( * ) + + 70 AS col1
----
62
71

skipif mysql # not compatible
query II rowsort label-4205
SELECT ALL + 62, COUNT ( * ) + + 70 AS col1
----
62
71

query I rowsort
SELECT ALL 39 * 66 + 30 + + 67 AS col2
----
2671

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4207
SELECT DISTINCT + COALESCE ( 86, + 1 DIV + CAST( NULL AS SIGNED ) * + + 73 + + 57 * + 51 + + - 1, - 70 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT + COALESCE ( 86, + 1 / + CAST ( NULL AS INTEGER ) * + + 73 + + 57 * + 51 + + - 1, - 70 ) col2
----
86

query I rowsort
SELECT - - ( - 62 )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4209
SELECT - - ( + - 8 ) DIV COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4209
SELECT - - ( + - 8 ) / COUNT ( * ) AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT - - CAST( - 34 AS SIGNED ) + - + 90
----
-124

skipif mysql # not compatible
query I rowsort label-4210
SELECT - - CAST ( - 34 AS INTEGER ) + - + 90
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT - 12 + MIN( + 26 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4211
SELECT - 12 + MIN ( + 26 ) AS col2
----
14

query I rowsort
SELECT - ( - 50 ) - - 52 + 7
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4213
SELECT ALL - 52 DIV - 89 + - CASE + COUNT( * ) WHEN - - ( - - 73 ) THEN NULL ELSE - - COUNT( * ) END - + - 12
----
11

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL - 52 / - 89 + - CASE + COUNT ( * ) WHEN - - ( - - 73 ) THEN NULL ELSE - - COUNT ( * ) END - + - 12
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT - 25 + - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-4214
SELECT - 25 + - COUNT ( * )
----
-26

query I rowsort
SELECT DISTINCT - ( + 31 ) AS col2
----
-31

query I rowsort
SELECT ALL + 61 + 79 AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT 54 + - COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-4217
SELECT 54 + - COUNT ( * ) AS col2
----
53

query I rowsort
SELECT + 61 + 17
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT COUNT( * ) * + 11 col1
----
11

skipif mysql # not compatible
query I rowsort label-4219
SELECT COUNT ( * ) * + 11 col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT - + CAST( + COALESCE ( - CAST( NULL AS SIGNED ), 2, - - 41 * + COUNT( * ) - COUNT( * ) ) AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-4220
SELECT - + CAST ( + COALESCE ( - CAST ( NULL AS INTEGER ), 2, - - 41 * + COUNT ( * ) - COUNT ( * ) ) AS INTEGER )
----
-2

query I rowsort
SELECT 18 + + ( 64 ) + 95
----
177

query I rowsort
SELECT 89 * + 50 AS col1
----
4450

query I rowsort
SELECT DISTINCT - 43 * - 69 AS col2
----
2967

query I rowsort
SELECT DISTINCT - ( - + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT DISTINCT COUNT( * ) * - - COUNT( - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT COUNT ( * ) * - - COUNT ( - 55 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4226
SELECT 98 DIV + NULLIF ( - - 38, - 12 DIV + CAST( NULL AS SIGNED ) + - + ( - - ( - 88 ) ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4226
SELECT 98 / + NULLIF ( - - 38, - 12 / + CAST ( NULL AS INTEGER ) + - + ( - - ( - 88 ) ) ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT - CASE + 81 WHEN - 25 + 17 THEN - - 22 WHEN - 40 THEN 89 WHEN - 47 * 96 * - - 28 / + + CAST( NULL AS SIGNED ) - + 27 - - 88 THEN + 69 ELSE NULL END / - 74 - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT - CASE + 81 WHEN - 25 + 17 THEN - - 22 WHEN - 40 THEN 89 WHEN - 47 * 96 * - - 28 / + + CAST ( NULL AS INTEGER ) - + 27 - - 88 THEN + 69 ELSE NULL END / - 74 - 19
----
NULL

query I rowsort
SELECT 17 - + - 88
----
105

query I rowsort
SELECT ALL COALESCE ( + COALESCE ( 88, - 41, + 7 ), 56, - 86 ) * 12 AS col0
----
1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4230
SELECT COUNT( * ) DIV + 2 AS col2, + 6 * 27 + CASE NULLIF ( + 69, - 18 + + NULLIF ( + + ( - - 66 ), - + 85 * - 34 ) ) WHEN - 66 DIV 56 * + 9 + - 50 THEN + + 49 END + + 93 col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4230
SELECT COUNT ( * ) / + 2 AS col2, + 6 * 27 + CASE NULLIF ( + 69, - 18 + + NULLIF ( + + ( - - 66 ), - + 85 * - 34 ) ) WHEN - 66 / 56 * + 9 + - 50 THEN + + 49 END + + 93 col1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT + NULLIF ( - 14, - 49 * 47 ) * + - 47 * + 42 * - - 12 + - 69 DIV + 94 + - 38
----
331594

skipif mysql # not compatible
query I rowsort label-4231
SELECT + NULLIF ( - 14, - 49 * 47 ) * + - 47 * + 42 * - - 12 + - 69 / + 94 + - 38
----
331594

query I rowsort
SELECT ALL - 35 + 96 + + 36
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT COUNT( DISTINCT - - ( - 85 ) ) * + + NULLIF ( - 98, 28 / + COALESCE ( + + 3, + COUNT( + 65 ) * - 72 * 27 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT COUNT ( DISTINCT - - ( - 85 ) ) * + + NULLIF ( - 98, 28 / + COALESCE ( + + 3, + COUNT ( + 65 ) * - 72 * 27 ) ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT 39 + - MIN( ALL - - 78 )
----
-39

skipif mysql # not compatible
query I rowsort label-4234
SELECT 39 + - MIN ( ALL - - 78 )
----
-39

query I rowsort
SELECT DISTINCT 44 * + 45 * - 87
----
-172260

query I rowsort
SELECT DISTINCT 61 + - 47
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT COUNT( * ) * + - COUNT( * ) - 89 + - + 11 + - 51 * - 49 AS col0
----
2398

skipif mysql # not compatible
query I rowsort label-4237
SELECT COUNT ( * ) * + - COUNT ( * ) - 89 + - + 11 + - 51 * - 49 AS col0
----
2398

query I rowsort
SELECT DISTINCT 95 + - + 69
----
26

query I rowsort
SELECT ALL 99 + + - 4 AS col1
----
95

query I rowsort
SELECT DISTINCT + 72 + - 53 + 26
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT 99 * + + ( - CASE - COUNT( * ) WHEN - 50 THEN NULL ELSE + - MAX( + 55 ) END ) * + - 55 + + 52 - 14 AS col1
----
-299437

skipif mysql # not compatible
query I rowsort label-4241
SELECT 99 * + + ( - CASE - COUNT ( * ) WHEN - 50 THEN NULL ELSE + - MAX ( + 55 ) END ) * + - 55 + + 52 - 14 AS col1
----
-299437

query II rowsort
SELECT - 66 + 9 AS col0, 11 AS col0
----
-57
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT - - 27 * + 9 * - + COUNT( * ) * + + 56 AS col2
----
-13608

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT - - 27 * + 9 * - + COUNT ( * ) * + + 56 AS col2
----
-13608

query I rowsort
SELECT DISTINCT 84 + + + 64 - - 69 * - 67 AS col0
----
-4475

query I rowsort
SELECT + 32 * + - 28 AS col0
----
-896

query I rowsort
SELECT - + ( ( 94 ) ) AS col2
----
-94

query I rowsort
SELECT ALL + + 85 * - 49 * 82
----
-341530

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4248
SELECT - 98 - - MAX( DISTINCT + + 40 ) + + COUNT( * ) DIV 84 AS col1, + 21
----
-58
21

skipif mysql # not compatible
query II rowsort label-4248
SELECT - 98 - - MAX ( DISTINCT + + 40 ) + + COUNT ( * ) / 84 AS col1, + 21
----
-58
21

query I rowsort
SELECT - 68 * 93
----
-6324

query I rowsort
SELECT 48 - + - 17 AS col0
----
65

query II rowsort
SELECT 7 * + + 43 AS col0, + 69
----
301
69

query I rowsort
SELECT 92 + 70
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT 99 * + NULLIF ( - - 12, 49 ) * - MIN( ALL - 96 ) * + 86 * 97, - 79 AS col0
----
951388416
-79

skipif mysql # not compatible
query II rowsort label-4253
SELECT 99 * + NULLIF ( - - 12, 49 ) * - MIN ( ALL - 96 ) * + 86 * 97, - 79 AS col0
----
951388416
-79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4254
SELECT 2 * - 20 * + + CAST( - - 27 AS SIGNED ) * - + 75 + ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT 2 * - 20 * + + CAST ( - - 27 AS INTEGER ) * - + 75 + ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT 8 - - + 80 col1
----
88

query II rowsort
SELECT DISTINCT 76 AS col0, 79 AS col0
----
76
79

query I rowsort
SELECT ALL 98 * - - 55
----
5390

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4258
SELECT 24 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT 24 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT COUNT( * ) + - + ( + 98 )
----
-97

skipif mysql # not compatible
query I rowsort label-4259
SELECT COUNT ( * ) + - + ( + 98 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT 37 * SUM( 63 ) * 36
----
83916

skipif mysql # not compatible
query I rowsort label-4260
SELECT 37 * SUM ( 63 ) * 36
----
83916

query II rowsort
SELECT 67 * 22 + 22, + 54 AS col0
----
1496
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT MAX( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4262
SELECT MAX ( + 34 )
----
34

query I rowsort
SELECT - 25 * + - 79 + 34 * 8 + + 23 * + 19 * + 62 AS col2
----
29341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT CASE - CAST( COUNT( * ) AS SIGNED ) WHEN + 30 * - 27 THEN NULL WHEN + - COALESCE ( 13, - 3 ) THEN + 15 * 87 * 46 ELSE - + 21 END - + 27
----
-48

skipif mysql # not compatible
query I rowsort label-4264
SELECT CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN + 30 * - 27 THEN NULL WHEN + - COALESCE ( 13, - 3 ) THEN + 15 * 87 * 46 ELSE - + 21 END - + 27
----
-48

query I rowsort
SELECT DISTINCT - ( - - 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4266
SELECT DISTINCT + COALESCE ( 97, 19, + 69 ) * - 23 + - - NULLIF ( - COUNT( * ), - 83 * - CAST( NULL AS SIGNED ) )
----
-2232

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT + COALESCE ( 97, 19, + 69 ) * - 23 + - - NULLIF ( - COUNT ( * ), - 83 * - CAST ( NULL AS INTEGER ) )
----
-2232

query I rowsort
SELECT DISTINCT - 33 * + 55 + - 26 * - ( + 29 ) AS col1
----
-1061

query I rowsort
SELECT ALL 85 * 7 AS col0
----
595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4269
SELECT COUNT( * ) + + 28 * + COALESCE ( + NULLIF ( + 82, - 57 ), SUM( ALL 59 ) DIV NULLIF ( - 50, + 91 ), + 55 * 76, 41 )
----
2297

skipif mysql # not compatible
query I rowsort label-4269
SELECT COUNT ( * ) + + 28 * + COALESCE ( + NULLIF ( + 82, - 57 ), SUM ( ALL 59 ) / NULLIF ( - 50, + 91 ), + 55 * 76, 41 )
----
2297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4270
SELECT ( COUNT( * ) ) DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-4270
SELECT ( COUNT ( * ) ) / + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT MAX( ALL 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4271
SELECT MAX ( ALL 99 ) AS col2
----
99

query I rowsort
SELECT 32 * - 5 + + 14
----
-146

query I rowsort
SELECT ALL 42 - 6 * - 36 AS col2
----
258

query I rowsort
SELECT ALL + 32 * - 24
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT + 5 * 13 + SUM( ALL 61 ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-4275
SELECT + 5 * 13 + SUM ( ALL 61 ) AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL 89 * + MIN( ALL + 85 ) AS col2
----
7565

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL 89 * + MIN ( ALL + 85 ) AS col2
----
7565

query I rowsort
SELECT ALL 6 - + 32 AS col1
----
-26

query I rowsort
SELECT + ( + 26 ) + - 38 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + COUNT( * ) * 86 col2
----
86

skipif mysql # not compatible
query I rowsort label-4279
SELECT + COUNT ( * ) * 86 col2
----
86

query I rowsort
SELECT - NULLIF ( + 49, - 81 * + 22 ) AS col2
----
-49

query I rowsort
SELECT + ( 41 ) * - 28 + 6 AS col0
----
-1142

query I rowsort
SELECT + 71 - + 16 * 78
----
-1177

query I rowsort
SELECT + 41 + + 61 AS col1
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT + COALESCE ( + 25, 11 - + 40, CAST( + CASE 88 WHEN 44 + 59 * 95 THEN NULL ELSE 35 * COUNT( * ) END AS SIGNED ) ) * CASE 72 * + 21 WHEN 67 + + 58 * + 9 THEN COUNT( * ) ELSE 97 * + 43 + - 72 * COUNT( * ) END
----
102475

skipif mysql # not compatible
query I rowsort label-4284
SELECT + COALESCE ( + 25, 11 - + 40, CAST ( + CASE 88 WHEN 44 + 59 * 95 THEN NULL ELSE 35 * COUNT ( * ) END AS INTEGER ) ) * CASE 72 * + 21 WHEN 67 + + 58 * + 9 THEN COUNT ( * ) ELSE 97 * + 43 + - 72 * COUNT ( * ) END
----
102475

query I rowsort
SELECT + 11 + + 61
----
72

query I rowsort
SELECT - 87 + 62 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL COUNT( 16 ) * 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL COUNT ( 16 ) * 31 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4288
SELECT - 4 DIV SUM( + 93 * - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-4288
SELECT - 4 / SUM ( + 93 * - 15 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT - 63 + + ( + NULLIF ( - NULLIF ( SUM( ALL + 57 ), - 0 * + 12 - - 57 ), COUNT( * ) * 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT - 63 + + ( + NULLIF ( - NULLIF ( SUM ( ALL + 57 ), - 0 * + 12 - - 57 ), COUNT ( * ) * 85 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL 69 + - MIN( ALL 38 )
----
31

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL 69 + - MIN ( ALL 38 )
----
31

query I rowsort
SELECT ALL 87 + 65 AS col0
----
152

query I rowsort
SELECT + 51 * 11
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL SUM( DISTINCT + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL SUM ( DISTINCT + 76 )
----
76

query I rowsort
SELECT - 33 + 21 AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4295
SELECT - 3 DIV COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4295
SELECT - 3 / COUNT ( * ) AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT ALL + 35 + MIN( 87 ) DIV 84 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + 35 + MIN ( 87 ) / 84 AS col1
----
36

query I rowsort
SELECT ALL + 22 * - 96 + + 6 * 90
----
-1572

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT DISTINCT - CASE - 90 WHEN 54 THEN NULL WHEN COUNT( * ) THEN + NULLIF ( COUNT( * ), - 64 ) WHEN 99 * 53 THEN NULL WHEN 80 / 34 THEN NULL ELSE NULL END * 36 + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT - CASE - 90 WHEN 54 THEN NULL WHEN COUNT ( * ) THEN + NULLIF ( COUNT ( * ), - 64 ) WHEN 99 * 53 THEN NULL WHEN 80 / 34 THEN NULL ELSE NULL END * 36 + 58
----
NULL

query I rowsort
SELECT ALL + 56 * 10 + + 65 AS col0
----
625

query I rowsort
SELECT - 79 * 91 col2
----
-7189

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT 73 DIV 55 - 78 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4301
SELECT 73 / 55 - 78 AS col0
----
-77

query I rowsort
SELECT DISTINCT + - COALESCE ( + 21, 3 ) * + 91
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + + COUNT( * ) * 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4303
SELECT + + COUNT ( * ) * 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT DISTINCT + COUNT( * ) * - 74
----
-74

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + COUNT ( * ) * - 74
----
-74

query I rowsort
SELECT DISTINCT + + ( 66 ) * 65
----
4290

query I rowsort
SELECT - 5 * - 74
----
370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT ALL 44 DIV - COUNT( * ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL 44 / - COUNT ( * ) AS col1
----
-44

query I rowsort
SELECT - 19 - 9 AS col2
----
-28

query I rowsort
SELECT ALL 43 * + 24 - + 64
----
968

query I rowsort
SELECT - 72 * 83
----
-5976

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT ALL + 13 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + 13 / 52
----
0

query I rowsort
SELECT + CASE WHEN NOT NULL IS NOT NULL THEN ( + 98 ) END AS col1
----
98

query I rowsort
SELECT + + 2 + ( - 5 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + MIN( ALL - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4314
SELECT + MIN ( ALL - 32 )
----
-32

query I rowsort
SELECT ALL + ( + 94 ) AS col2
----
94

query I rowsort
SELECT DISTINCT 29 * + ( 30 * + 97 )
----
84390

query I rowsort
SELECT - + 57 * 27
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT + MIN( DISTINCT - 50 ) * - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT + MIN ( DISTINCT - 50 ) * - COUNT ( * ) AS col0
----
50

query I rowsort
SELECT + - 83 * 30
----
-2490

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT ALL + MIN( ALL 53 ) * + 48 + - ( - COUNT( * ) ) DIV + 13
----
2544

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + MIN ( ALL 53 ) * + 48 + - ( - COUNT ( * ) ) / + 13
----
2544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 56
----
NULL

query I rowsort
SELECT ALL CASE 90 WHEN 87 THEN + 71 / - CASE 20 WHEN + 72 * 57 + + 50 THEN NULL WHEN 88 + + ( + 75 - ( + 24 ) ) THEN - 31 END ELSE NULL END + + 79
----
NULL

query I rowsort
SELECT - ( - ( 98 ) ) * + 73
----
7154

query I rowsort
SELECT + 64 * 23
----
1472

query I rowsort
SELECT ALL 46 + - 44 AS col0
----
2

query I rowsort
SELECT + 51 + 7
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL ( + + 9 ) + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL ( + + 9 ) + COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4328
SELECT + 28 + - CAST( - COUNT( * ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-4328
SELECT + 28 + - CAST ( - COUNT ( * ) AS INTEGER )
----
29

query I rowsort
SELECT + NULLIF ( + 48, - 7 * 77 ) * 98
----
4704

onlyif mysql # DIV for integer division: 
query I rowsort label-4330
SELECT + 4 + + 99 + 81 DIV 73 * 77
----
180

skipif mysql # not compatible
query I rowsort label-4330
SELECT + 4 + + 99 + 81 / 73 * 77
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4331
SELECT ALL COUNT( * ) + 3 + 32 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL COUNT ( * ) + 3 + 32 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT DISTINCT 74 * - 2 * + MIN( + 26 ) col2
----
-3848

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT 74 * - 2 * + MIN ( + 26 ) col2
----
-3848

query I rowsort
SELECT ALL ( + 29 ) + 95 AS col2
----
124

query I rowsort
SELECT ALL + 31 * - 13
----
-403

query I rowsort
SELECT ALL - 77 + - 52
----
-129

query I rowsort
SELECT + 74 - + + 13
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - 50 + 88 + ( - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-4337
SELECT - 50 + 88 + ( - COUNT ( * ) )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT + 62 * ( COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-4338
SELECT + 62 * ( COUNT ( * ) )
----
62

query I rowsort
SELECT - 67 * + - 13
----
871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT 41 * - 20 * - CAST( + 39 AS SIGNED ) - 55
----
31925

skipif mysql # not compatible
query I rowsort label-4340
SELECT 41 * - 20 * - CAST ( + 39 AS INTEGER ) - 55
----
31925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4341
SELECT DISTINCT + 16 * + 5 - - 52 DIV + MAX( 3 )
----
97

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT + 16 * + 5 - - 52 / + MAX ( 3 )
----
97

query I rowsort
SELECT ALL + + 82 - + 33 + - 56
----
-7

query I rowsort
SELECT ALL - - 70 * - - 4 + + 70
----
350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT DISTINCT + - 7 * - 87 + + CAST( NULL AS SIGNED ) * - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT + - 7 * - 87 + + CAST ( NULL AS INTEGER ) * - 11 AS col0
----
NULL

query I rowsort
SELECT + NULLIF ( + + 59, 43 * + 56 )
----
59

query I rowsort
SELECT 54 + + - 23 - 44 AS col2
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4347
SELECT - COALESCE ( - + 94, + ( COALESCE ( + 22, 42 DIV - 60 ) ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4347
SELECT - COALESCE ( - + 94, + ( COALESCE ( + 22, 42 / - 60 ) ) ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT COUNT( * ) * 35 * + 52 - 72 * 92
----
-4804

skipif mysql # not compatible
query I rowsort label-4348
SELECT COUNT ( * ) * 35 * + 52 - 72 * 92
----
-4804

query I rowsort
SELECT - 78 + + 10 * - 77
----
-848

query I rowsort
SELECT ALL + + 65 * + 27 * + 87
----
152685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4351
SELECT ALL - CASE 79 WHEN 53 - + COUNT( * ) * 19 THEN + MIN( DISTINCT - 52 ) ELSE - 79 * COUNT( * ) END + 29 * - COALESCE ( CASE CAST( + NULLIF ( + 80, 23 * 72 ) AS SIGNED ) WHEN + 90 THEN + 54 END DIV 78, - 7 + 84 )
----
-2154

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL - CASE 79 WHEN 53 - + COUNT ( * ) * 19 THEN + MIN ( DISTINCT - 52 ) ELSE - 79 * COUNT ( * ) END + 29 * - COALESCE ( CASE CAST ( + NULLIF ( + 80, 23 * 72 ) AS INTEGER ) WHEN + 90 THEN + 54 END / 78, - 7 + 84 )
----
-2154

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT + COUNT( * ) + 10 + + 24 * 73
----
1763

skipif mysql # not compatible
query I rowsort label-4352
SELECT + COUNT ( * ) + 10 + + 24 * 73
----
1763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4353
SELECT 92 / + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT 92 / + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - - 98 + - + ( + COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - - 98 + - + ( + COUNT ( * ) )
----
97

query I rowsort
SELECT NULLIF ( - 19, 38 )
----
-19

query I rowsort
SELECT ALL - 26 + - + 88
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT ( + CAST( 79 AS SIGNED ) ) + - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4357
SELECT ( + CAST ( 79 AS INTEGER ) ) + - COUNT ( * )
----
78

query I rowsort
SELECT 98 + - - 95
----
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4359
SELECT DISTINCT - ( + COUNT( * ) ) DIV 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT - ( + COUNT ( * ) ) / 54 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL + COUNT( * ) + - 58 * - ( 50 ) + - CAST( 17 AS SIGNED ) * 39 AS col0
----
2238

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL + COUNT ( * ) + - 58 * - ( 50 ) + - CAST ( 17 AS INTEGER ) * 39 AS col0
----
2238

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT COUNT( * ) + 48 - + + 76 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4361
SELECT COUNT ( * ) + 48 - + + 76 AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT 17 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT 17 / 60
----
0

query I rowsort
SELECT 53 + 29
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL 40 * 42 * + COUNT( * ) * - 63
----
-105840

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL 40 * 42 * + COUNT ( * ) * - 63
----
-105840

query I rowsort
SELECT ALL + 8 + + NULLIF ( - 8, - 22 )
----
0

query I rowsort
SELECT ALL - ( - ( CASE - 64 WHEN - 34 * - 1 THEN NULL ELSE 55 * 80 END ) ) * - 89
----
-391600

query I rowsort
SELECT ALL + ( + 79 ) - + 88 + 65
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4368
SELECT - 92 col0, + 84 * + COUNT( + 50 )
----
-92
84

skipif mysql # not compatible
query II rowsort label-4368
SELECT - 92 col0, + 84 * + COUNT ( + 50 )
----
-92
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT 42 * COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4369
SELECT 42 * COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT 49 + 67 + - COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-4370
SELECT 49 + 67 + - COUNT ( * )
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT CASE SUM( + + 64 ) WHEN + 38 / ( COUNT( * ) ) + COUNT( * ) THEN SUM( CAST( 18 AS SIGNED ) ) END + 47 / 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT CASE SUM ( + + 64 ) WHEN + 38 / ( COUNT ( * ) ) + COUNT ( * ) THEN SUM ( CAST ( 18 AS INTEGER ) ) END + 47 / 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT 68 * 27 * COALESCE ( 18, 91 + + 70 * + COUNT( * ) ) * ( - ( + 36 ) ) AS col1
----
-1189728

skipif mysql # not compatible
query I rowsort label-4372
SELECT 68 * 27 * COALESCE ( 18, 91 + + 70 * + COUNT ( * ) ) * ( - ( + 36 ) ) AS col1
----
-1189728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4373
SELECT ALL - + 43, - NULLIF ( - + COALESCE ( + 81, - COALESCE ( 72, 82 + 22 * + 29 ) + - COUNT( * ) DIV 2 ), - 41 + - CASE CAST( - 2 AS SIGNED ) WHEN - 35 + + 21 THEN - 54 ELSE NULL END ) AS col1
----
-43
81

skipif mysql # not compatible
query II rowsort label-4373
SELECT ALL - + 43, - NULLIF ( - + COALESCE ( + 81, - COALESCE ( 72, 82 + 22 * + 29 ) + - COUNT ( * ) / 2 ), - 41 + - CASE CAST ( - 2 AS INTEGER ) WHEN - 35 + + 21 THEN - 54 ELSE NULL END ) AS col1
----
-43
81

query I rowsort
SELECT + 22 * - - 1 + + ( + 20 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + MIN( DISTINCT - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-4375
SELECT + MIN ( DISTINCT - 44 )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4376
SELECT ALL + 62 * + - ( CASE WHEN NULL NOT IN ( CAST( CAST( - 77 AS SIGNED ) AS SIGNED ) ) THEN NULL WHEN ( NULL ) NOT IN ( 94 * COUNT( * ) ) THEN + ( NULLIF ( 45, 80 + 90 ) ) - COUNT( * ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + 62 * + - ( CASE WHEN NULL NOT IN ( CAST ( CAST ( - 77 AS INTEGER ) AS INTEGER ) ) THEN NULL WHEN ( NULL ) NOT IN ( 94 * COUNT ( * ) ) THEN + ( NULLIF ( 45, 80 + 90 ) ) - COUNT ( * ) ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + COUNT( * ) * - 20 * - 43
----
860

skipif mysql # not compatible
query I rowsort label-4377
SELECT + COUNT ( * ) * - 20 * - 43
----
860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT ALL 66 * ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL 66 * ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4379
SELECT - 67 DIV 86 - + 86 * - 58 AS col2
----
4988

skipif mysql # not compatible
query I rowsort label-4379
SELECT - 67 / 86 - + 86 * - 58 AS col2
----
4988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4380
SELECT 69 * + - 40 DIV + MIN( DISTINCT 8 ) AS col1
----
-345

skipif mysql # not compatible
query I rowsort label-4380
SELECT 69 * + - 40 / + MIN ( DISTINCT 8 ) AS col1
----
-345

query I rowsort
SELECT 85 * 45 * - + 98 - 12 + + 97 AS col1
----
-374765

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT ALL + 10 + - COUNT( ALL + + 62 ) * - MIN( + 11 + - 17 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL + 10 + - COUNT ( ALL + + 62 ) * - MIN ( + 11 + - 17 ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT DISTINCT CAST( - AVG ( DISTINCT - - 22 ) AS SIGNED ) + 73 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT CAST ( - AVG ( DISTINCT - - 22 ) AS INTEGER ) + 73 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4384
SELECT 48, 5 / CAST( NULL AS SIGNED ) AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-4384
SELECT 48, 5 / CAST ( NULL AS INTEGER ) AS col0
----
48
NULL

query I rowsort
SELECT ALL - 30 + - + 58 + + 75
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT CASE - 71 WHEN - 41 / - COUNT( 15 / + 34 ) THEN + ( 72 ) WHEN - 36 / 65 THEN NULL ELSE 91 END * 12 AS col0
----
1092

skipif mysql # not compatible
query I rowsort label-4386
SELECT CASE - 71 WHEN - 41 / - COUNT ( 15 / + 34 ) THEN + ( 72 ) WHEN - 36 / 65 THEN NULL ELSE 91 END * 12 AS col0
----
1092

query I rowsort
SELECT DISTINCT + 19 + + 75
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT ALL - 97 col1, + ( - 18 ) + - MIN( + 64 ) col1
----
-97
-82

skipif mysql # not compatible
query II rowsort label-4388
SELECT ALL - 97 col1, + ( - 18 ) + - MIN ( + 64 ) col1
----
-97
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT ALL + - ( - - 47 ) + + 86 + + 72 DIV 23
----
42

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL + - ( - - 47 ) + + 86 + + 72 / 23
----
42

query I rowsort
SELECT ALL - 94 + + + 53 * + 3
----
65

query I rowsort
SELECT 17 * + + 7
----
119

query I rowsort
SELECT 43 * - + 4
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL + COUNT( * ) + - - 50
----
51

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + COUNT ( * ) + - - 50
----
51

query I rowsort
SELECT ALL 10 + - + ( + 77 ) * + 15 * 45 col0
----
-51965

query I rowsort
SELECT DISTINCT 27 - - + 71
----
98

query II rowsort
SELECT 71 * - 22 col2, + 27 + + ( 81 ) AS col1
----
-1562
108

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4397
SELECT 42 + + 49 AS col2, CAST( NULL AS SIGNED ) * + - CAST( 52 AS DECIMAL ) * - 16 AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-4397
SELECT 42 + + 49 AS col2, CAST ( NULL AS INTEGER ) * + - CAST ( 52 AS REAL ) * - 16 AS col2
----
91
NULL

query I rowsort
SELECT ALL - 4 * - + 69
----
276

query I rowsort
SELECT - 56 * + - ( 27 )
----
1512

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4400
SELECT ALL NULLIF ( - - 12, + 70 + CAST( + COUNT( + 9 ) AS DECIMAL ) )
----
12

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL NULLIF ( - - 12, + 70 + CAST ( + COUNT ( + 9 ) AS REAL ) )
----
12

query I rowsort
SELECT DISTINCT + 96 * + 30 AS col2
----
2880

query I rowsort
SELECT ALL - 42 * + - 0 * + 26 AS col0
----
0

query I rowsort
SELECT DISTINCT + - 36 * + 32 * - 93 AS col2
----
107136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4404
SELECT + + ( - + 87 ) + - - CAST( NULL AS SIGNED ) + 83 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT + + ( - + 87 ) + - - CAST ( NULL AS INTEGER ) + 83 * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT + 94 * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-4405
SELECT + 94 * - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT - - COUNT( ALL + 42 ) * + 56 - + - 96 + - 33 * COUNT( * ) * + 91 col1
----
-2851

skipif mysql # not compatible
query I rowsort label-4406
SELECT - - COUNT ( ALL + 42 ) * + 56 - + - 96 + - 33 * COUNT ( * ) * + 91 col1
----
-2851

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT + 28 * + - SUM( DISTINCT - - 78 ) * COUNT( * ) + - 95 AS col0
----
-2279

skipif mysql # not compatible
query I rowsort label-4407
SELECT + 28 * + - SUM ( DISTINCT - - 78 ) * COUNT ( * ) + - 95 AS col0
----
-2279

onlyif mysql # aggregate syntax: 
query II rowsort label-4408
SELECT COUNT( ALL + 34 ), - 97 + + - 39 AS col1
----
1
-136

skipif mysql # not compatible
query II rowsort label-4408
SELECT COUNT ( ALL + 34 ), - 97 + + - 39 AS col1
----
1
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL - COUNT( ALL 31 ) * COUNT( * ) * 47 + - 13
----
-60

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - COUNT ( ALL 31 ) * COUNT ( * ) * 47 + - 13
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT ALL - 52 * COUNT( * ) + - 99 + + ( ( COALESCE ( - 57, + 29 * 93 + - 26 * - ( + 82 ) ) ) ) * COALESCE ( 81, 34 ) AS col0
----
-4768

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - 52 * COUNT ( * ) + - 99 + + ( ( COALESCE ( - 57, + 29 * 93 + - 26 * - ( + 82 ) ) ) ) * COALESCE ( 81, 34 ) AS col0
----
-4768

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + 17 * NULLIF ( - - 25, 21 * SUM( - 18 ) + 68 / + 13 ) + 10 AS col1
----
435

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + 17 * NULLIF ( - - 25, 21 * SUM ( - 18 ) + 68 / + 13 ) + 10 AS col1
----
435

query I rowsort
SELECT - 52 * - - 97 * 40 * - 65 + NULLIF ( - 97, ( - 54 ) * + 50 )
----
13114303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT DISTINCT - ( - CAST( - + 87 AS SIGNED ) ) * - 40 col2
----
3480

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - ( - CAST ( - + 87 AS INTEGER ) ) * - 40 col2
----
3480

query I rowsort
SELECT ALL + + 80 * 22 + - - COALESCE ( + 6, 53 ) AS col1
----
1766

query I rowsort
SELECT + 54 * + 83
----
4482

query I rowsort
SELECT + + NULLIF ( - 98, + 32 ) + - + 89 * + 97
----
-8731

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - 14 * - COUNT( * ) + - 28 - 77 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4417
SELECT - 14 * - COUNT ( * ) + - 28 - 77 AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4418
SELECT ALL + COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL + COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT - 6 * - 60 + 64 * - COUNT( * ) * + + 26
----
-1304

skipif mysql # not compatible
query I rowsort label-4419
SELECT - 6 * - 60 + 64 * - COUNT ( * ) * + + 26
----
-1304

query I rowsort
SELECT NULLIF ( - - 76, 65 + + 11 ) * - 14 / 36 + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT - MIN( - 99 ) + - 86 + - - 7 + - COUNT( * ) + - 48
----
-29

skipif mysql # not compatible
query I rowsort label-4421
SELECT - MIN ( - 99 ) + - 86 + - - 7 + - COUNT ( * ) + - 48
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - 51 + - COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4422
SELECT - 51 + - COUNT ( * ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query III rowsort label-4423
SELECT ALL COUNT( * ) AS col1, 31 + + COUNT( * ), + 81 AS col1
----
1
32
81

skipif mysql # not compatible
query III rowsort label-4423
SELECT ALL COUNT ( * ) AS col1, 31 + + COUNT ( * ), + 81 AS col1
----
1
32
81

query I rowsort
SELECT + 62 * 21 AS col0
----
1302

query I rowsort
SELECT - 68 * + 38 AS col1
----
-2584

query I rowsort
SELECT ALL - 18 * + 95
----
-1710

query I rowsort
SELECT DISTINCT 56 * 47 AS col2
----
2632

query I rowsort
SELECT ALL + 10 * + NULLIF ( + 15, + 37 )
----
150

query I rowsort
SELECT DISTINCT + 1 + - 99 * + + ( 74 )
----
-7325

query I rowsort
SELECT DISTINCT - 4 + + - 66 * + 74 * + 73 col2
----
-356536

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL + COUNT( * ) + - - ( - - 23 ) - + - 67 * + COALESCE ( 85, 47 )
----
5719

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL + COUNT ( * ) + - - ( - - 23 ) - + - 67 * + COALESCE ( 85, 47 )
----
5719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4432
SELECT - CASE + 3 WHEN + 94 THEN COUNT( * ) ELSE + MAX( + ( + CAST( 15 AS SIGNED ) ) ) * + 22 END AS col0
----
-330

skipif mysql # not compatible
query I rowsort label-4432
SELECT - CASE + 3 WHEN + 94 THEN COUNT ( * ) ELSE + MAX ( + ( + CAST ( 15 AS INTEGER ) ) ) * + 22 END AS col0
----
-330

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT - COUNT( * ), + 40 col2
----
-1
40

skipif mysql # not compatible
query II rowsort label-4433
SELECT - COUNT ( * ), + 40 col2
----
-1
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4434
SELECT DISTINCT + CASE + + COUNT( * ) WHEN - + 15 + + + ( + NULLIF ( COUNT( * ), - 51 + + ( - CAST( - 27 AS DECIMAL ) + + 55 * 75 ) * 51 ) ) THEN ( 66 ) * 83 - - SUM( ALL - 78 ) END + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT + CASE + + COUNT ( * ) WHEN - + 15 + + + ( + NULLIF ( COUNT ( * ), - 51 + + ( - CAST ( - 27 AS REAL ) + + 55 * 75 ) * 51 ) ) THEN ( 66 ) * 83 - - SUM ( ALL - 78 ) END + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT - - 90 * NULLIF ( + - 28, + COUNT( * ) + + 55 * - 98 ) - + MAX( DISTINCT 2 )
----
-2522

skipif mysql # not compatible
query I rowsort label-4435
SELECT - - 90 * NULLIF ( + - 28, + COUNT ( * ) + + 55 * - 98 ) - + MAX ( DISTINCT 2 )
----
-2522

query I rowsort
SELECT ALL + + 92 + 96 AS col0
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT + COALESCE ( COUNT( * ), + 39 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + COALESCE ( COUNT ( * ), + 39 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT DISTINCT + MIN( - 57 ) + + + 23 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT + MIN ( - 57 ) + + + 23 AS col2
----
-34

query II rowsort
SELECT ALL + 42, - 73 AS col0
----
42
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT - + 34 DIV + 93 + - 46 * - COUNT( * ) + - - 48 DIV - 7
----
40

skipif mysql # not compatible
query I rowsort label-4440
SELECT - + 34 / + 93 + - 46 * - COUNT ( * ) + - - 48 / - 7
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4441
SELECT DISTINCT + - NULLIF ( COUNT( 77 ), + + ( - 66 ) * 76 ) DIV - 23 + - COUNT( * ) * 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + - NULLIF ( COUNT ( 77 ), + + ( - 66 ) * 76 ) / - 23 + - COUNT ( * ) * 43 AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT - + 22 * - - 78 - + - 90 DIV - + COUNT( * )
----
-1806

skipif mysql # not compatible
query I rowsort label-4442
SELECT - + 22 * - - 78 - + - 90 / - + COUNT ( * )
----
-1806

onlyif mysql # aggregate syntax: 
query II rowsort label-4443
SELECT DISTINCT + - 73, COUNT( * ) AS col2
----
-73
1

skipif mysql # not compatible
query II rowsort label-4443
SELECT DISTINCT + - 73, COUNT ( * ) AS col2
----
-73
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT + CASE - - 68 WHEN - 46 THEN + + 83 WHEN - - COUNT( * ) + - 76 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT + CASE - - 68 WHEN - 46 THEN + + 83 WHEN - - COUNT ( * ) + - 76 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - ( - 6 )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT ALL + 4 DIV 23 + - COALESCE ( + - 30, - + 66, - 84 ) - 42 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL + 4 / 23 + - COALESCE ( + - 30, - + 66, - 84 ) - 42 AS col2
----
-12

query I rowsort
SELECT ALL + - 14 col2
----
-14

query I rowsort
SELECT ( - 29 ) AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4449
SELECT + 81 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4449
SELECT + 81 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( + 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT MAX( ALL + + 50 ) * + 4 - - - 50
----
150

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT MAX ( ALL + + 50 ) * + 4 - - - 50
----
150

query I rowsort
SELECT + ( + 66 ) col0
----
66

query II rowsort
SELECT ALL + 82 AS col1, - 55 AS col0
----
82
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT + COUNT( * ), - 69 AS col2
----
1
-69

skipif mysql # not compatible
query II rowsort label-4454
SELECT + COUNT ( * ), - 69 AS col2
----
1
-69

query I rowsort
SELECT - 45 * - - 82 * 35
----
-129150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4456
SELECT + CASE + COUNT( * ) WHEN + 22 THEN + 82 ELSE NULL END * + CAST( NULL AS DECIMAL ) * - MAX( DISTINCT - 17 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT + CASE + COUNT ( * ) WHEN + 22 THEN + 82 ELSE NULL END * + CAST ( NULL AS REAL ) * - MAX ( DISTINCT - 17 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT ALL CAST( - 54 AS SIGNED ) * - - 19
----
-1026

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL CAST ( - 54 AS INTEGER ) * - - 19
----
-1026

query I rowsort
SELECT - 63 - - 78 * + + 7
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT + CASE 80 WHEN - - 36 THEN + 79 WHEN - 84 THEN NULL END / COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT + CASE 80 WHEN - - 36 THEN + 79 WHEN - 84 THEN NULL END / COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT 74 * ( - 69 )
----
-5106

query II rowsort
SELECT 92, 21 AS col1
----
92
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4462
SELECT CAST( - - COALESCE ( - 17, + 54, - - CASE - - 63 WHEN 2 THEN 52 - 60 ELSE 99 END ) AS SIGNED ) DIV - 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4462
SELECT CAST ( - - COALESCE ( - 17, + 54, - - CASE - - 63 WHEN 2 THEN 52 - 60 ELSE 99 END ) AS INTEGER ) / - 24 AS col0
----
0

query II rowsort
SELECT ALL - 16, + 53 AS col2
----
-16
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT CASE 37 WHEN - + 56 * - 56 THEN + COUNT( * ) * 62 + 88 ELSE NULL END * - NULLIF ( + 63, + 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT CASE 37 WHEN - + 56 * - 56 THEN + COUNT ( * ) * 62 + 88 ELSE NULL END * - NULLIF ( + 63, + 79 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL CAST( NULL AS SIGNED ) * - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL CAST ( NULL AS INTEGER ) * - 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT DISTINCT MIN( DISTINCT - - 86 ) * 69 col0
----
5934

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT MIN ( DISTINCT - - 86 ) * 69 col0
----
5934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4467
SELECT DISTINCT MIN( ALL + - 81 ) / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT MIN ( ALL + - 81 ) / + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 87 col0, + 91 AS col1
----
87
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4469
SELECT ALL + COALESCE ( + 43, + ( - - CAST( + MAX( DISTINCT + 25 ) AS SIGNED ) ) * 73 ) * + 90 col1
----
3870

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL + COALESCE ( + 43, + ( - - CAST ( + MAX ( DISTINCT + 25 ) AS INTEGER ) ) * 73 ) * + 90 col1
----
3870

onlyif mysql # aggregate syntax: 
query II rowsort label-4470
SELECT DISTINCT 8 + COUNT( + + 39 ) * - 21 AS col2, + 69 AS col0
----
-13
69

skipif mysql # not compatible
query II rowsort label-4470
SELECT DISTINCT 8 + COUNT ( + + 39 ) * - 21 AS col2, + 69 AS col0
----
-13
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4471
SELECT - 54 col2, SUM( ALL - - 46 ) AS col0
----
-54
46

skipif mysql # not compatible
query II rowsort label-4471
SELECT - 54 col2, SUM ( ALL - - 46 ) AS col0
----
-54
46

query II rowsort
SELECT - 55 AS col2, 28 * - ( + 65 )
----
-55
-1820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT 96 DIV + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4473
SELECT 96 / + COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT ALL 43 + + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL 43 + + COUNT ( * ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4475
SELECT - 9, + COUNT( * ) col0
----
-9
1

skipif mysql # not compatible
query II rowsort label-4475
SELECT - 9, + COUNT ( * ) col0
----
-9
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT ALL 10, MIN( 30 ) AS col0
----
10
30

skipif mysql # not compatible
query II rowsort label-4476
SELECT ALL 10, MIN ( 30 ) AS col0
----
10
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT + 6 + + COUNT( * ) - 35 * - - COUNT( * ) * + + 69
----
-2408

skipif mysql # not compatible
query I rowsort label-4477
SELECT + 6 + + COUNT ( * ) - 35 * - - COUNT ( * ) * + + 69
----
-2408

query I rowsort
SELECT ( + + 99 ) - 92 + + 22 - - - 74
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ALL + - COUNT( * ) * - NULLIF ( - 82, - NULLIF ( - 76, - + 45 ) ) + - 80 AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL + - COUNT ( * ) * - NULLIF ( - 82, - NULLIF ( - 76, - + 45 ) ) + - 80 AS col1
----
-162

query II rowsort
SELECT - 88 AS col0, 77 - - 61
----
-88
138

query I rowsort
SELECT + 20 + + 73 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL - COUNT( * ) + + 94 * 76 * + - 26 - - 24
----
-185721

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - COUNT ( * ) + + 94 * 76 * + - 26 - - 24
----
-185721

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT NULLIF ( + + CASE WHEN - ( - 2 ) NOT BETWEEN ( NULL ) AND + 35 * - ( + 85 * 20 ) THEN + ( 90 ) WHEN - ( - MAX( DISTINCT - 72 ) ) * ( 62 * COUNT( 78 ) ) <= NULL THEN NULL END, COUNT( * ) ) + 88
----
178

skipif mysql # not compatible
query I rowsort label-4483
SELECT NULLIF ( + + CASE WHEN - ( - 2 ) NOT BETWEEN ( NULL ) AND + 35 * - ( + 85 * 20 ) THEN + ( 90 ) WHEN - ( - MAX ( DISTINCT - 72 ) ) * ( 62 * COUNT ( 78 ) ) <= NULL THEN NULL END, COUNT ( * ) ) + 88
----
178

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4484
SELECT ALL + - 56 + - + MIN( - - NULLIF ( 90, - - 50 ) ) + + CASE CAST( NULL AS DECIMAL ) WHEN 98 THEN 48 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + - 56 + - + MIN ( - - NULLIF ( 90, - - 50 ) ) + + CASE CAST ( NULL AS REAL ) WHEN 98 THEN 48 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4485
SELECT 30 AS col0, COALESCE ( CAST( - 71 AS SIGNED ), SUM( - 82 ) * 11, + 62 + + CAST( COUNT( * ) + + 96 AS SIGNED ) ) + - 49
----
30
-120

skipif mysql # not compatible
query II rowsort label-4485
SELECT 30 AS col0, COALESCE ( CAST ( - 71 AS INTEGER ), SUM ( - 82 ) * 11, + 62 + + CAST ( COUNT ( * ) + + 96 AS INTEGER ) ) + - 49
----
30
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4486
SELECT ALL + COUNT( * ) AS col1, + CASE + - MAX( - 43 ) WHEN + 53 - 41 THEN - 65 * 28 + COUNT( * ) * CAST( NULL AS SIGNED ) WHEN ( 51 ) - AVG ( DISTINCT - 2 ) / COUNT( * ) THEN NULL WHEN ( + COUNT( * ) ) THEN 6 END * + 90 col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4486
SELECT ALL + COUNT ( * ) AS col1, + CASE + - MAX ( - 43 ) WHEN + 53 - 41 THEN - 65 * 28 + COUNT ( * ) * CAST ( NULL AS INTEGER ) WHEN ( 51 ) - AVG ( DISTINCT - 2 ) / COUNT ( * ) THEN NULL WHEN ( + COUNT ( * ) ) THEN 6 END * + 90 col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT SUM( + 1 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4487
SELECT SUM ( + 1 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT - + 27 + + COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - + 27 + + COUNT ( * ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4489
SELECT 46 * + 77 * + 16 + + ( + 56 ) - - + ( CASE - CASE + 56 WHEN 8 * + CAST( NULL AS SIGNED ) + + 34 THEN COUNT( * ) END WHEN + 34 + - MAX( - 80 ) THEN 38 + 99 WHEN COUNT( * ) * 45 THEN + MIN( - 67 ) WHEN 89 / + 11 THEN NULL ELSE 58 END ) + - 45
----
56741

skipif mysql # not compatible
query I rowsort label-4489
SELECT 46 * + 77 * + 16 + + ( + 56 ) - - + ( CASE - CASE + 56 WHEN 8 * + CAST ( NULL AS INTEGER ) + + 34 THEN COUNT ( * ) END WHEN + 34 + - MAX ( - 80 ) THEN 38 + 99 WHEN COUNT ( * ) * 45 THEN + MIN ( - 67 ) WHEN 89 / + 11 THEN NULL ELSE 58 END ) + - 45
----
56741

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL - - CASE COUNT( ALL - + 59 ) WHEN + 72 * + 79 * + 91 - 24 THEN NULL ELSE 34 END - NULLIF ( + SUM( DISTINCT 71 ), + 98 + - 47 )
----
-37

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL - - CASE COUNT ( ALL - + 59 ) WHEN + 72 * + 79 * + 91 - 24 THEN NULL ELSE 34 END - NULLIF ( + SUM ( DISTINCT 71 ), + 98 + - 47 )
----
-37

query II rowsort
SELECT - 73, - 75 * - 4 AS col2
----
-73
300

query I rowsort
SELECT - 81 * 90 + - 64 * 64 + 98 AS col1
----
-11288

query II rowsort
SELECT ALL - 13, - 18 AS col1
----
-13
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4494
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AS col0, 20 col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-4494
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col0, 20 col0
----
NULL
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT DISTINCT - - 22 DIV 24 * 12 + - - 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT - - 22 / 24 * 12 + - - 54 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT - MIN( ALL - + 62 ) * - 87 AS col1
----
-5394

skipif mysql # not compatible
query I rowsort label-4496
SELECT - MIN ( ALL - + 62 ) * - 87 AS col1
----
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL - - 72 * - NULLIF ( COUNT( * ), + - 91 )
----
-72

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL - - 72 * - NULLIF ( COUNT ( * ), + - 91 )
----
-72

query I rowsort
SELECT DISTINCT - - 46 AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT ALL + CAST( NULL AS SIGNED ) * + + 33 / - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 33 / - 8 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT 27 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT 27 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT 45 * - 28 * + CASE + + 91 WHEN 43 * - 71 + + 49 THEN NULL WHEN MAX( ALL 77 ) * 12 THEN NULL WHEN + 20 + 87 * 54 THEN 28 * NULLIF ( COUNT( * ), - 82 + + 77 ) + 43 ELSE ( + MAX( ALL 11 ) ) END + + 94 * - 38
----
-17432

skipif mysql # not compatible
query I rowsort label-4501
SELECT 45 * - 28 * + CASE + + 91 WHEN 43 * - 71 + + 49 THEN NULL WHEN MAX ( ALL 77 ) * 12 THEN NULL WHEN + 20 + 87 * 54 THEN 28 * NULLIF ( COUNT ( * ), - 82 + + 77 ) + 43 ELSE ( + MAX ( ALL 11 ) ) END + + 94 * - 38
----
-17432

query I rowsort
SELECT 36 * - 1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4503
SELECT + 22 * + + 4 * + 1 - + ( - + ( - + COUNT( * ) ) ) + ( 44 ) DIV 41 * - ( - COUNT( DISTINCT 34 ) )
----
88

skipif mysql # not compatible
query I rowsort label-4503
SELECT + 22 * + + 4 * + 1 - + ( - + ( - + COUNT ( * ) ) ) + ( 44 ) / 41 * - ( - COUNT ( DISTINCT 34 ) )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4504
SELECT 52 + - 6, 7 - + CAST( NULL AS SIGNED ) col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-4504
SELECT 52 + - 6, 7 - + CAST ( NULL AS INTEGER ) col2
----
46
NULL

query I rowsort
SELECT DISTINCT - ( - 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4506
SELECT + 59 * - MAX( ALL + - 77 ) + 41 DIV - + 63 AS col1
----
4543

skipif mysql # not compatible
query I rowsort label-4506
SELECT + 59 * - MAX ( ALL + - 77 ) + 41 / - + 63 AS col1
----
4543

onlyif mysql # aggregate syntax: 
query II rowsort label-4507
SELECT DISTINCT COUNT( * ) * + - 41 AS col1, - 80
----
-41
-80

skipif mysql # not compatible
query II rowsort label-4507
SELECT DISTINCT COUNT ( * ) * + - 41 AS col1, - 80
----
-41
-80

query II rowsort
SELECT DISTINCT + 0 + - 79 col1, + 11
----
-79
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ( 89 ) + - - 57 - - COUNT( * )
----
147

skipif mysql # not compatible
query I rowsort label-4509
SELECT ( 89 ) + - - 57 - - COUNT ( * )
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT MAX( DISTINCT + 73 ) + 88 + - 18 + + COUNT( * ) + - 48 + 0
----
96

skipif mysql # not compatible
query I rowsort label-4510
SELECT MAX ( DISTINCT + 73 ) + 88 + - 18 + + COUNT ( * ) + - 48 + 0
----
96

query I rowsort
SELECT DISTINCT 2 + ( + 89 ) * ( + 69 ) AS col1
----
6143

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL 20 + CASE MIN( + + 60 ) WHEN - COUNT( * ) THEN + + COUNT( * ) * 46 - 68 * NULLIF ( - 82 + - 97, - 71 ) ELSE NULL END * - 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL 20 + CASE MIN ( + + 60 ) WHEN - COUNT ( * ) THEN + + COUNT ( * ) * 46 - 68 * NULLIF ( - 82 + - 97, - 71 ) ELSE NULL END * - 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT 77 * - 20 col1, COUNT( * )
----
-1540
1

skipif mysql # not compatible
query II rowsort label-4513
SELECT 77 * - 20 col1, COUNT ( * )
----
-1540
1

query I rowsort
SELECT 12 + 59
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL COUNT( * ) + + + ( - 10 )
----
-9

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL COUNT ( * ) + + + ( - 10 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT + 27 * - ( + + CASE - SUM( + + CAST( NULL AS SIGNED ) ) WHEN + COALESCE ( 93, + 30 ) THEN + 15 WHEN - COUNT( * ) THEN 13 END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT + 27 * - ( + + CASE - SUM ( + + CAST ( NULL AS INTEGER ) ) WHEN + COALESCE ( 93, + 30 ) THEN + 15 WHEN - COUNT ( * ) THEN 13 END ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT ALL SUM( DISTINCT 70 ) AS col1, 4 - MAX( DISTINCT - 88 )
----
70
92

skipif mysql # not compatible
query II rowsort label-4517
SELECT ALL SUM ( DISTINCT 70 ) AS col1, 4 - MAX ( DISTINCT - 88 )
----
70
92

query I rowsort
SELECT DISTINCT 5 + - 49 + - - 53
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT + 54 DIV 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4519
SELECT + 54 / 90 AS col2
----
0

query I rowsort
SELECT + 93 * - 81 + - 41
----
-7574

query II rowsort
SELECT 58 * + 63, - 71 AS col0
----
3654
-71

query I rowsort
SELECT 61 - + ( NULLIF ( 24, - 57 ) ) + - 94
----
-57

query I rowsort
SELECT 92 + - 89 + 3 col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4524
SELECT DISTINCT NULLIF ( + 22, + + COUNT( * ) ) AS col2, 55 * AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-4524
SELECT DISTINCT NULLIF ( + 22, + + COUNT ( * ) ) AS col2, 55 * AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL + MAX( + - 66 ) * 65
----
-4290

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + MAX ( + - 66 ) * 65
----
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT + COALESCE ( + NULLIF ( + 22, - 23 ), - COUNT( * ), ( + 25 ) ) * - COALESCE ( - ( 35 ), + 2, 71 )
----
770

skipif mysql # not compatible
query I rowsort label-4526
SELECT + COALESCE ( + NULLIF ( + 22, - 23 ), - COUNT ( * ), ( + 25 ) ) * - COALESCE ( - ( 35 ), + 2, 71 )
----
770

query I rowsort
SELECT ALL + 50 * - 76 AS col1
----
-3800

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT ALL + COUNT( ALL - - 76 ), 33 AS col1
----
1
33

skipif mysql # not compatible
query II rowsort label-4528
SELECT ALL + COUNT ( ALL - - 76 ), 33 AS col1
----
1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT + + SUM( - COALESCE ( 73, + 44 * 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-4529
SELECT + + SUM ( - COALESCE ( 73, + 44 * 73 ) )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL - + COALESCE ( - CASE 90 WHEN - - 57 / - 67 - + 34 THEN + SUM( CAST( 73 AS SIGNED ) ) ELSE NULL END, - 70 - + 82 ) AS col1
----
152

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - + COALESCE ( - CASE 90 WHEN - - 57 / - 67 - + 34 THEN + SUM ( CAST ( 73 AS INTEGER ) ) ELSE NULL END, - 70 - + 82 ) AS col1
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4531
SELECT - CAST( NULL AS SIGNED ) / + + COUNT( * ) - + + 30 + ( 37 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) - + + 30 + ( 37 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4532
SELECT - ( - - COUNT( * ) ) AS col1, - 42 * + CASE COALESCE ( 82, + ( 6 ), + 64 + + 26 ) WHEN 43 THEN NULL ELSE + ( COUNT( * ) ) END + + 92 * 98
----
-1
8974

skipif mysql # not compatible
query II rowsort label-4532
SELECT - ( - - COUNT ( * ) ) AS col1, - 42 * + CASE COALESCE ( 82, + ( 6 ), + 64 + + 26 ) WHEN 43 THEN NULL ELSE + ( COUNT ( * ) ) END + + 92 * 98
----
-1
8974

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + MAX( 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4533
SELECT + MAX ( 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + NULLIF ( 84, + + MIN( + 83 ) * ( + 24 ) + - - 24 - SUM( DISTINCT + 48 ) * + 79 )
----
84

skipif mysql # not compatible
query I rowsort label-4534
SELECT + NULLIF ( 84, + + MIN ( + 83 ) * ( + 24 ) + - - 24 - SUM ( DISTINCT + 48 ) * + 79 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - 28 * COALESCE ( + + COUNT( * ), + 41 * + - 89 )
----
-28

skipif mysql # not compatible
query I rowsort label-4535
SELECT - 28 * COALESCE ( + + COUNT ( * ), + 41 * + - 89 )
----
-28

query I rowsort
SELECT + 40 * - ( - 88 )
----
3520

query I rowsort
SELECT - 45 + ( 43 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4538
SELECT ALL + NULLIF ( - COUNT( * ), + + 68 ) AS col1, - 26 AS col0
----
-1
-26

skipif mysql # not compatible
query II rowsort label-4538
SELECT ALL + NULLIF ( - COUNT ( * ), + + 68 ) AS col1, - 26 AS col0
----
-1
-26

query I rowsort
SELECT ALL - 59 * - 51 AS col1
----
3009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4540
SELECT ALL + NULLIF ( - CAST( - NULLIF ( + 2, + - NULLIF ( - + 62, + 53 ) ) AS SIGNED ), 27 / 80 + - 67 / - AVG ( - ( - 45 ) ) ) * - 71 + 85 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + NULLIF ( - CAST ( - NULLIF ( + 2, + - NULLIF ( - + 62, + 53 ) ) AS INTEGER ), 27 / 80 + - 67 / - AVG ( - ( - 45 ) ) ) * - 71 + 85 AS col2
----
-57

query I rowsort
SELECT ALL + 96 * - 37
----
-3552

query I rowsort
SELECT DISTINCT - 41 * 55
----
-2255

onlyif mysql # aggregate syntax: 
query II rowsort label-4543
SELECT COUNT( * ) col1, 19 + + 60
----
1
79

skipif mysql # not compatible
query II rowsort label-4543
SELECT COUNT ( * ) col1, 19 + + 60
----
1
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4544
SELECT ALL 5 * + 31 * 39 * COUNT( * ) / + CASE - + 93 WHEN + 24 THEN - + MIN( 92 ) END + CAST( - 72 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL 5 * + 31 * 39 * COUNT ( * ) / + CASE - + 93 WHEN + 24 THEN - + MIN ( 92 ) END + CAST ( - 72 AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT + 56 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4545
SELECT + 56 / 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT ALL COUNT( * ) * - + ( + 64 ) + 6
----
-58

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL COUNT ( * ) * - + ( + 64 ) + 6
----
-58

query I rowsort
SELECT - 73 - + 93 AS col2
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4548
SELECT COUNT( * ) AS col1, COALESCE ( 12, + 85 * - 9, + - 75 ) * + COUNT( * ) + CAST( NULL AS SIGNED ) + 38 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4548
SELECT COUNT ( * ) AS col1, COALESCE ( 12, + 85 * - 9, + - 75 ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) + 38 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - ( - - COUNT( * ) ) - + ( + 58 ) * ( + 60 ) - 1 col2
----
-3482

skipif mysql # not compatible
query I rowsort label-4549
SELECT - ( - - COUNT ( * ) ) - + ( + 58 ) * ( + 60 ) - 1 col2
----
-3482

query II rowsort
SELECT + 50 AS col1, + 3
----
50
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT MIN( 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4551
SELECT MIN ( 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT + COUNT( * ) + - 23 col2
----
-22

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT + COUNT ( * ) + - 23 col2
----
-22

query I rowsort
SELECT ALL - 51 + 51
----
0

query I rowsort
SELECT - - 87 - + 14 * - - 38
----
-445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4555
SELECT ALL - 17 * - - COALESCE ( 97, - COUNT( * ), NULLIF ( - + 78, + 54 * 28 ) DIV COUNT( ALL - 28 ) + + 41 DIV - 32 ) * + 33 AS col0
----
-54417

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - 17 * - - COALESCE ( 97, - COUNT ( * ), NULLIF ( - + 78, + 54 * 28 ) / COUNT ( ALL - 28 ) + + 41 / - 32 ) * + 33 AS col0
----
-54417

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT - + 12 - + 78 * + 85 - SUM( + 75 )
----
-6717

skipif mysql # not compatible
query I rowsort label-4556
SELECT - + 12 - + 78 * + 85 - SUM ( + 75 )
----
-6717

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT - + COUNT( * ) + 61 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4557
SELECT - + COUNT ( * ) + 61 AS col1
----
60

query I rowsort
SELECT DISTINCT - 73 * + 74 AS col0
----
-5402

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + ( + 28 ) * + + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-4559
SELECT + ( + 28 ) * + + COUNT ( * )
----
28

query I rowsort
SELECT + 74 - + 15 * - 60 AS col2
----
974

query I rowsort
SELECT + - 85 * - 38
----
3230

query I rowsort
SELECT DISTINCT ( - 15 )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4563
SELECT ALL + 41 DIV COALESCE ( - + 5, + COALESCE ( - 7, CAST( NULL AS SIGNED ) ) + - 16 + ( MIN( DISTINCT + 84 ) ) * + 22, + 80 ) + 95 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + 41 / COALESCE ( - + 5, + COALESCE ( - 7, CAST ( NULL AS INTEGER ) ) + - 16 + ( MIN ( DISTINCT + 84 ) ) * + 22, + 80 ) + 95 AS col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT - 93 DIV - 55 - 63 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-4564
SELECT - 93 / - 55 - 63 AS col0
----
-62

query I rowsort
SELECT + 77 * - 28 AS col0
----
-2156

onlyif mysql # DIV for integer division: 
query II rowsort label-4566
SELECT DISTINCT 20 DIV - - 61 + - 45 * - 2 col0, - 50
----
90
-50

skipif mysql # not compatible
query II rowsort label-4566
SELECT DISTINCT 20 / - - 61 + - 45 * - 2 col0, - 50
----
90
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT + NULLIF ( + 98, - - COUNT( * ) * COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-4567
SELECT + NULLIF ( + 98, - - COUNT ( * ) * COUNT ( * ) )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT + 16 * + CAST( NULL AS SIGNED ) * COUNT( * ) * + COUNT( * ) * + - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT + 16 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) * + COUNT ( * ) * + - 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4569
SELECT ALL 95 DIV 27 DIV MIN( ALL + 29 ) + - 73 DIV 34 + - 20 + 56 * - 91 + 7 * - MAX( + 90 ) AS col1
----
-5748

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL 95 / 27 / MIN ( ALL + 29 ) + - 73 / 34 + - 20 + 56 * - 91 + 7 * - MAX ( + 90 ) AS col1
----
-5748

query I rowsort
SELECT + ( - ( - 5 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT DISTINCT 57 / - ( + - ( + + CASE 58 WHEN - ( - 66 ) THEN NULL WHEN + + MIN( DISTINCT - 3 ) THEN 74 * - 11 WHEN MIN( 97 ) THEN NULL END ) ) + - 79 * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT 57 / - ( + - ( + + CASE 58 WHEN - ( - 66 ) THEN NULL WHEN + + MIN ( DISTINCT - 3 ) THEN 74 * - 11 WHEN MIN ( 97 ) THEN NULL END ) ) + - 79 * 53
----
NULL

query I rowsort
SELECT ( - - 40 ) col1
----
40

query I rowsort
SELECT + 86 - 47
----
39

query I rowsort
SELECT + ( - CASE - + 40 WHEN 42 THEN NULL ELSE - - 28 END ) * CASE + 51 WHEN + AVG ( DISTINCT + 83 ) THEN 56 * + 40 - - 67 END + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ( ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4575
SELECT ( ( + COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL 44 * + + 47 + 55
----
2123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT COUNT( * ) DIV + + COUNT( * ) + + 10
----
11

skipif mysql # not compatible
query I rowsort label-4577
SELECT COUNT ( * ) / + + COUNT ( * ) + + 10
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4578
SELECT 83 * + 8 - + COUNT( * ) * - 85, - COUNT( * ) col1
----
749
-1

skipif mysql # not compatible
query II rowsort label-4578
SELECT 83 * + 8 - + COUNT ( * ) * - 85, - COUNT ( * ) col1
----
749
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL + NULLIF ( - 15, 96 * - COUNT( * ) / - + 31 * + + COUNT( * ) * NULLIF ( MIN( ALL + 92 ), + COUNT( * ) * - 56 ) / 54 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL + NULLIF ( - 15, 96 * - COUNT ( * ) / - + 31 * + + COUNT ( * ) * NULLIF ( MIN ( ALL + 92 ), + COUNT ( * ) * - 56 ) / 54 ) AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT + CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4580
SELECT + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 75 * 93 - - 84
----
-6891

query I rowsort
SELECT - 91 * - + 88 AS col2
----
8008

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4583
SELECT - COALESCE ( - 1, + CAST( 62 AS DECIMAL ) * 82 - - 13, + + 72 ) * + ( + CASE 17 WHEN 40 * + 98 THEN 24 * - COUNT( * ) WHEN + 44 THEN 95 - - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4583
SELECT - COALESCE ( - 1, + CAST ( 62 AS REAL ) * 82 - - 13, + + 72 ) * + ( + CASE 17 WHEN 40 * + 98 THEN 24 * - COUNT ( * ) WHEN + 44 THEN 95 - - COUNT ( * ) END )
----
NULL

query I rowsort
SELECT DISTINCT + 11 * 90 AS col2
----
990

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT - 55 * + + COUNT( * ) AS col2, 96
----
-55
96

skipif mysql # not compatible
query II rowsort label-4585
SELECT - 55 * + + COUNT ( * ) AS col2, 96
----
-55
96

query I rowsort
SELECT ALL + CASE 14 WHEN + 15 THEN - 87 END * 9 + + - 98 + 97 * 29 AS col2
----
NULL

query I rowsort
SELECT - 9 + - 99 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT - COUNT( * ) + + COALESCE ( - 65, 85 + + + 63 ) * - + 26
----
1689

skipif mysql # not compatible
query I rowsort label-4588
SELECT - COUNT ( * ) + + COALESCE ( - 65, 85 + + + 63 ) * - + 26
----
1689

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT + MIN( + + 99 ) * - 83 * - + 71 + - - 9 + - 7 + - 92 DIV 7 * 73 * 70 + + COUNT( * ) * CASE - 97 WHEN - SUM( DISTINCT 5 ) THEN - 63 WHEN 99 THEN - 24 ELSE 26 END AS col0
----
517005

skipif mysql # not compatible
query I rowsort label-4589
SELECT + MIN ( + + 99 ) * - 83 * - + 71 + - - 9 + - 7 + - 92 / 7 * 73 * 70 + + COUNT ( * ) * CASE - 97 WHEN - SUM ( DISTINCT 5 ) THEN - 63 WHEN 99 THEN - 24 ELSE 26 END AS col0
----
517005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT - - 75 DIV 19 * 71 * + 28 * - COUNT( * )
----
-5964

skipif mysql # not compatible
query I rowsort label-4590
SELECT - - 75 / 19 * 71 * + 28 * - COUNT ( * )
----
-5964

query II rowsort
SELECT + 53 * - - 62 * + 31 + - 36 + 88 * ( + 97 ) AS col0, 69 + - 20
----
110366
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4592
SELECT - - CAST( + COUNT( * ) AS SIGNED ) * - 96 * + 53 * + 25 AS col1
----
-127200

skipif mysql # not compatible
query I rowsort label-4592
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) * - 96 * + 53 * + 25 AS col1
----
-127200

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT - 83 * + COALESCE ( + 39, 2 ) * NULLIF ( COALESCE ( 7, 81 * + 61 - 37 ), SUM( ALL + 97 ) ) AS col1
----
-22659

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - 83 * + COALESCE ( + 39, 2 ) * NULLIF ( COALESCE ( 7, 81 * + 61 - 37 ), SUM ( ALL + 97 ) ) AS col1
----
-22659

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4594
SELECT DISTINCT - CASE - 99 WHEN CAST( + COUNT( * ) AS SIGNED ) * + - 58 THEN NULL ELSE CAST( MIN( ALL 18 ) AS SIGNED ) + - - 73 + + 21 END
----
-112

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT - CASE - 99 WHEN CAST ( + COUNT ( * ) AS INTEGER ) * + - 58 THEN NULL ELSE CAST ( MIN ( ALL 18 ) AS INTEGER ) + - - 73 + + 21 END
----
-112

query I rowsort
SELECT - + 56 * - + 82
----
4592

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT COALESCE ( - 83, + CASE - 65 WHEN + 87 * - 89 * - - ( - + ( - 51 ) ) THEN 82 * - COUNT( * ) END )
----
-83

skipif mysql # not compatible
query I rowsort label-4596
SELECT COALESCE ( - 83, + CASE - 65 WHEN + 87 * - 89 * - - ( - + ( - 51 ) ) THEN 82 * - COUNT ( * ) END )
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4597
SELECT - + NULLIF ( + + 43, + 36 - + 74 + + 26 * + 53 * 79 + - + CAST( NULL AS DECIMAL ) )
----
-43

skipif mysql # not compatible
query I rowsort label-4597
SELECT - + NULLIF ( + + 43, + 36 - + 74 + + 26 * + 53 * 79 + - + CAST ( NULL AS REAL ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT + - CASE + + 43 WHEN + ( 16 ) + + NULLIF ( - ( - - 40 ), + - 52 * - 88 / 84 + 84 ) THEN ( CASE 49 WHEN - 49 / 34 THEN NULL WHEN 61 * - 37 THEN NULL WHEN 34 THEN NULL ELSE + 56 + - COALESCE ( 54, 95 * + 67 ) END ) WHEN + COUNT( * ) THEN - COUNT( * ) ELSE NULL END * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT + - CASE + + 43 WHEN + ( 16 ) + + NULLIF ( - ( - - 40 ), + - 52 * - 88 / 84 + 84 ) THEN ( CASE 49 WHEN - 49 / 34 THEN NULL WHEN 61 * - 37 THEN NULL WHEN 34 THEN NULL ELSE + 56 + - COALESCE ( 54, 95 * + 67 ) END ) WHEN + COUNT ( * ) THEN - COUNT ( * ) ELSE NULL END * + 22
----
NULL

query I rowsort
SELECT ALL + - 53 + + - 86
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT ALL - - 90 + + - 91 DIV + - NULLIF ( - 21, + 15 )
----
86

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - - 90 + + - 91 / + - NULLIF ( - 21, + 15 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4601
SELECT + CAST( NULL AS SIGNED ) - - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT + CAST ( NULL AS INTEGER ) - - 9 AS col0
----
NULL

query I rowsort
SELECT ALL 11 * + - 47
----
-517

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT 52 DIV + 77 * 1 * - 75
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT 52 / + 77 * 1 * - 75
----
0

query I rowsort
SELECT ALL + 86 + 39
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-4605
SELECT ALL 14, SUM( + + 74 ) + 4 + + COUNT( * ) * + 87 AS col1
----
14
165

skipif mysql # not compatible
query II rowsort label-4605
SELECT ALL 14, SUM ( + + 74 ) + 4 + + COUNT ( * ) * + 87 AS col1
----
14
165

onlyif mysql # aggregate syntax: 
query II rowsort label-4606
SELECT 50, - COUNT( - ( - 3 ) ) col1
----
50
-1

skipif mysql # not compatible
query II rowsort label-4606
SELECT 50, - COUNT ( - ( - 3 ) ) col1
----
50
-1

query I rowsort
SELECT ALL 4 + 22 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT DISTINCT - 14 + + CAST( NULL AS SIGNED ) * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT - 14 + + CAST ( NULL AS INTEGER ) * - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL MAX( ( - 13 ) ) + - + 80 col0
----
-93

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL MAX ( ( - 13 ) ) + - + 80 col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4610
SELECT + CAST( NULL AS SIGNED ) * - 22 + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT + CAST ( NULL AS INTEGER ) * - 22 + 88
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4611
SELECT DISTINCT + 50 + - MIN( DISTINCT + - 19 ) AS col0, + 17
----
69
17

skipif mysql # not compatible
query II rowsort label-4611
SELECT DISTINCT + 50 + - MIN ( DISTINCT + - 19 ) AS col0, + 17
----
69
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT MAX( ALL - 93 ) * - 69 * 60 + - 14 + - - CASE + COUNT( * ) WHEN - - COUNT( * ) THEN NULL ELSE + + ( - 71 ) * + ( - MAX( 61 ) * + 60 - - 9 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT MAX ( ALL - 93 ) * - 69 * 60 + - 14 + - - CASE + COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL ELSE + + ( - 71 ) * + ( - MAX ( 61 ) * + 60 - - 9 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT DISTINCT 38 + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT 38 + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL - COUNT( DISTINCT - - 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - COUNT ( DISTINCT - - 53 ) AS col2
----
-1

query I rowsort
SELECT ALL 73 * - 67 AS col1
----
-4891

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT COUNT( * ) * + MAX( + 89 ) col1
----
89

skipif mysql # not compatible
query I rowsort label-4616
SELECT COUNT ( * ) * + MAX ( + 89 ) col1
----
89

query I rowsort
SELECT DISTINCT 2 * + + 44
----
88

query I rowsort
SELECT DISTINCT + 6 - - + 65 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL COUNT( * ) * 82
----
82

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL COUNT ( * ) * 82
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4620
SELECT + 46 - - + 97 DIV - - COUNT( * ) col0
----
143

skipif mysql # not compatible
query I rowsort label-4620
SELECT + 46 - - + 97 / - - COUNT ( * ) col0
----
143

query I rowsort
SELECT 26 * + 83
----
2158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4622
SELECT - 22 * - 52 - 0 + - 86 * - - CAST( - 75 AS SIGNED ) * - - 35 AS col0
----
226894

skipif mysql # not compatible
query I rowsort label-4622
SELECT - 22 * - 52 - 0 + - 86 * - - CAST ( - 75 AS INTEGER ) * - - 35 AS col0
----
226894

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT ALL + - 5 DIV - + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + - 5 / - + 41 AS col1
----
0

query I rowsort
SELECT ALL - - 56 AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT DISTINCT + 90 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT + 90 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL + + COUNT( * ) * - MIN( ALL - 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + + COUNT ( * ) * - MIN ( ALL - 6 ) AS col2
----
6

query I rowsort
SELECT 36 - 70
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT - + 1 + - COALESCE ( - COUNT( * ), + 99 - 32 * - 34 - - + 47 ) * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT - + 1 + - COALESCE ( - COUNT ( * ), + 99 - 32 * - 34 - - + 47 ) * - COUNT ( * )
----
-2

query I rowsort
SELECT ALL + 97 + + ( - + 73 ) AS col2
----
24

query I rowsort
SELECT ALL - 38 + - 10 + 49 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT + 89 + + COUNT( * ) + + 67 col0
----
157

skipif mysql # not compatible
query I rowsort label-4631
SELECT + 89 + + COUNT ( * ) + + 67 col0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT - ( COUNT( * ) ) * + - 91
----
91

skipif mysql # not compatible
query I rowsort label-4632
SELECT - ( COUNT ( * ) ) * + - 91
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT CAST( NULL AS SIGNED ) + - + 86 * + 56 - - + ( + + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT CAST ( NULL AS INTEGER ) + - + 86 * + 56 - - + ( + + 1 )
----
NULL

query I rowsort
SELECT - 72 - 11 AS col1
----
-83

query I rowsort
SELECT DISTINCT + 89 + 70
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL CASE + 1 WHEN COUNT( * ) * - 57 THEN 41 * + + COUNT( * ) WHEN + 90 THEN NULL ELSE NULL END + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL CASE + 1 WHEN COUNT ( * ) * - 57 THEN 41 * + + COUNT ( * ) WHEN + 90 THEN NULL ELSE NULL END + 48 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT ALL + 55 + - - 7 * - 69 + - + 22 * ( COUNT( * ) ) AS col0, 4 + 97
----
-450
101

skipif mysql # not compatible
query II rowsort label-4637
SELECT ALL + 55 + - - 7 * - 69 + - + 22 * ( COUNT ( * ) ) AS col0, 4 + 97
----
-450
101

query I rowsort
SELECT ALL - 0 + + 38 + - - 83
----
121

query I rowsort
SELECT 81 + + 56 + - 2 AS col1
----
135

query II rowsort
SELECT ALL 68, 53 AS col1
----
68
53

query I rowsort
SELECT ALL + 55 + - 0 AS col0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4642
SELECT - 25 AS col2, + 20 * + ( + 52 ) + + ( + - COUNT( * ) ) - + + 45 / - CASE - COUNT( * ) WHEN 46 THEN NULL WHEN + CAST( NULL AS SIGNED ) * 97 THEN + 81 END * - 1
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-4642
SELECT - 25 AS col2, + 20 * + ( + 52 ) + + ( + - COUNT ( * ) ) - + + 45 / - CASE - COUNT ( * ) WHEN 46 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * 97 THEN + 81 END * - 1
----
-25
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT ALL COUNT( * ), 74 + + 13 - + + 73 AS col1
----
1
14

skipif mysql # not compatible
query II rowsort label-4643
SELECT ALL COUNT ( * ), 74 + + 13 - + + 73 AS col1
----
1
14

query I rowsort
SELECT 67 + 54 + - 23 AS col0
----
98

query I rowsort
SELECT 77 + + 44
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4646
SELECT NULLIF ( - 14, 31 * - COUNT( * ) + 79 ) DIV + - 22, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-4646
SELECT NULLIF ( - 14, 31 * - COUNT ( * ) + 79 ) / + - 22, + COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT DISTINCT 42 * + - 32 - - + 22 AS col0
----
-1322

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT ALL - 22, CASE - - 92 WHEN - 40 THEN NULL WHEN - 3 THEN + COALESCE ( 46, 20 * + COUNT( * ) * - 42 ) ELSE NULL END AS col2
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-4648
SELECT ALL - 22, CASE - - 92 WHEN - 40 THEN NULL WHEN - 3 THEN + COALESCE ( 46, 20 * + COUNT ( * ) * - 42 ) ELSE NULL END AS col2
----
-22
NULL

query II rowsort
SELECT ALL - 67 col1, + 65 + - 58 col0
----
-67
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT - CASE NULLIF ( + 69, MAX( DISTINCT + - 11 ) ) WHEN - NULLIF ( + + CAST( + + 14 AS SIGNED ), + 80 ) THEN + 16 ELSE NULL END / + 31 * 17 - 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT - CASE NULLIF ( + 69, MAX ( DISTINCT + - 11 ) ) WHEN - NULLIF ( + + CAST ( + + 14 AS INTEGER ), + 80 ) THEN + 16 ELSE NULL END / + 31 * 17 - 38 col0
----
NULL

query II rowsort
SELECT DISTINCT + 20 * + ( + - ( + 9 ) ) AS col2, - 48
----
-180
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT ALL - COUNT( * ) AS col2, + 87 AS col0
----
-1
87

skipif mysql # not compatible
query II rowsort label-4652
SELECT ALL - COUNT ( * ) AS col2, + 87 AS col0
----
-1
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4653
SELECT 12 + + - ( + 24 ) + ( + + 51 ) + - MAX( + - 24 ) DIV 71 + 0 + - 11 DIV + COUNT( + 83 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4653
SELECT 12 + + - ( + 24 ) + ( + + 51 ) + - MAX ( + - 24 ) / 71 + 0 + - 11 / + COUNT ( + 83 ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4654
SELECT 86 * - NULLIF ( + - CAST( - - 77 AS SIGNED ), 38 ) * + COUNT( * )
----
6622

skipif mysql # not compatible
query I rowsort label-4654
SELECT 86 * - NULLIF ( + - CAST ( - - 77 AS INTEGER ), 38 ) * + COUNT ( * )
----
6622

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT 21 * - CASE - 85 WHEN ( + ( + 87 ) ) + + 9 THEN + + 91 WHEN 97 * - COUNT( * ) * - 54 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT 21 * - CASE - 85 WHEN ( + ( + 87 ) ) + + 9 THEN + + 91 WHEN 97 * - COUNT ( * ) * - 54 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT ALL - 57 col2, 98 AS col0
----
-57
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - - 94 * - - 26 + 42 + - 44 - + NULLIF ( 84, CASE ( + 91 ) WHEN 63 / + 26 * + COUNT( * ) THEN + COUNT( * ) + COUNT( * ) WHEN + 97 THEN + COUNT( * ) * - 80 + 47 END ) * - 81
----
9246

skipif mysql # not compatible
query I rowsort label-4657
SELECT - - 94 * - - 26 + 42 + - 44 - + NULLIF ( 84, CASE ( + 91 ) WHEN 63 / + 26 * + COUNT ( * ) THEN + COUNT ( * ) + COUNT ( * ) WHEN + 97 THEN + COUNT ( * ) * - 80 + 47 END ) * - 81
----
9246

query II rowsort
SELECT DISTINCT - 22 AS col1, + 38 col2
----
-22
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL 97 * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL 97 * + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - ( - + 36 ) * + 42 * + - 44 + + 14 * 47 - CASE + COUNT( * ) WHEN + 26 THEN - 12 + - 11 * 79 WHEN 41 + + 59 THEN - 11 ELSE 80 END * + 44 + 78
----
-69312

skipif mysql # not compatible
query I rowsort label-4660
SELECT - ( - + 36 ) * + 42 * + - 44 + + 14 * 47 - CASE + COUNT ( * ) WHEN + 26 THEN - 12 + - 11 * 79 WHEN 41 + + 59 THEN - 11 ELSE 80 END * + 44 + 78
----
-69312

onlyif mysql # DIV for integer division: 
query II rowsort label-4661
SELECT ALL - 71, + 16 DIV - 83 AS col2
----
-71
0

skipif mysql # not compatible
query II rowsort label-4661
SELECT ALL - 71, + 16 / - 83 AS col2
----
-71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT - - ( MIN( + 3 ) )
----
3

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - - ( MIN ( + 3 ) )
----
3

query I rowsort
SELECT ALL - 3 + + 88 AS col2
----
85

query I rowsort
SELECT 98 * + + 7 + + 80 * + 18 + - + 58 AS col1
----
2068

onlyif mysql # aggregate syntax: 
query II rowsort label-4665
SELECT ALL - + 63 AS col0, NULLIF ( - COUNT( * ), - 8 * - - 81 * 54 ) AS col2
----
-63
-1

skipif mysql # not compatible
query II rowsort label-4665
SELECT ALL - + 63 AS col0, NULLIF ( - COUNT ( * ), - 8 * - - 81 * 54 ) AS col2
----
-63
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL MAX( 52 ) * - - 10 AS col1
----
520

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL MAX ( 52 ) * - - 10 AS col1
----
520

query II rowsort
SELECT DISTINCT - 9 AS col1, 7
----
-9
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT 86 + + 4 + - 30 + - 81 * + 12 * - COUNT( * )
----
1032

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT 86 + + 4 + - 30 + - 81 * + 12 * - COUNT ( * )
----
1032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4669
SELECT ALL - COUNT( * ) + - - COALESCE ( + - COUNT( * ), + + 17 + + COUNT( * ) ) DIV - 94 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL - COUNT ( * ) + - - COALESCE ( + - COUNT ( * ), + + 17 + + COUNT ( * ) ) / - 94 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT + SUM( + 57 ) * - 53
----
-3021

skipif mysql # not compatible
query I rowsort label-4670
SELECT + SUM ( + 57 ) * - 53
----
-3021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT ALL SUM( CAST( - - 56 AS SIGNED ) )
----
56

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL SUM ( CAST ( - - 56 AS INTEGER ) )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4672
SELECT + 0 DIV + 50 col1
----
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT + 0 / + 50 col1
----
0

query I rowsort
SELECT + COALESCE ( 62, - 57 ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT DISTINCT - - MAX( DISTINCT - 59 ) * COALESCE ( + + 54, - - 21 * + 87 + + 59 + + + 98 DIV - - 40 + + 0 + - 51 )
----
-3186

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - - MAX ( DISTINCT - 59 ) * COALESCE ( + + 54, - - 21 * + 87 + + 59 + + + 98 / - - 40 + + 0 + - 51 )
----
-3186

onlyif mysql # DIV for integer division: 
query I rowsort label-4675
SELECT ALL + + 23 + 51 + + 48 DIV - 71 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + + 23 + 51 + + 48 / - 71 AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT DISTINCT 34 DIV 53 * 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT 34 / 53 * 85 AS col2
----
0

query I rowsort
SELECT - 46 * + 39
----
-1794

query I rowsort
SELECT + 57 * + 74 AS col2
----
4218

query II rowsort
SELECT - 63 + + - 3 AS col1, 42 * - 93 + - 70 - 10
----
-66
-3986

query I rowsort
SELECT ALL 28 - 55 * 70
----
-3822

query I rowsort
SELECT + 10 - - + 90 AS col1
----
100

query I rowsort
SELECT - 15 * 74 * 13 * 77 * + + 7 * - 94 AS col2
----
731110380

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT + ( - MIN( 99 ) ) - + 46
----
-145

skipif mysql # not compatible
query I rowsort label-4683
SELECT + ( - MIN ( 99 ) ) - + 46
----
-145

query I rowsort
SELECT DISTINCT 27 * - + COALESCE ( 60, + 92 ) AS col2
----
-1620

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT - 97 + + 59 + - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-4685
SELECT - 97 + + 59 + - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT - 56 * + COUNT( DISTINCT ( + 94 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-4686
SELECT - 56 * + COUNT ( DISTINCT ( + 94 ) )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4687
SELECT - COALESCE ( 4, COUNT( * ) * 54 + + COUNT( * ) + 7 ) * 60 + - + 5 AS col0, 62
----
-245
62

skipif mysql # not compatible
query II rowsort label-4687
SELECT - COALESCE ( 4, COUNT ( * ) * 54 + + COUNT ( * ) + 7 ) * 60 + - + 5 AS col0, 62
----
-245
62

query I rowsort
SELECT - 32 - - - 56 + + + 11
----
-77

query I rowsort
SELECT ( - - 20 ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL + MIN( ALL + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL + MIN ( ALL + 72 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4691
SELECT ALL + CAST( + 90 AS SIGNED ), 44 AS col2
----
90
44

skipif mysql # not compatible
query II rowsort label-4691
SELECT ALL + CAST ( + 90 AS INTEGER ), 44 AS col2
----
90
44

query II rowsort
SELECT - 26 * - 5 AS col1, + 87 AS col1
----
130
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT + COUNT( - - 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT + COUNT ( - - 82 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT - SUM( + - 42 ) * 84
----
3528

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - SUM ( + - 42 ) * 84
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL + CASE - - 37 WHEN + 86 * COUNT( * ) THEN + 68 * - COUNT( DISTINCT + 95 ) + + 73 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + CASE - - 37 WHEN + 86 * COUNT ( * ) THEN + 68 * - COUNT ( DISTINCT + 95 ) + + 73 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4696
SELECT - + COALESCE ( ( + 65 ), 25 DIV + CAST( NULL AS SIGNED ) ) * + + 70 - - COALESCE ( + NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ), - 94 - - 83 + 60 ) * 62
----
-4488

skipif mysql # not compatible
query I rowsort label-4696
SELECT - + COALESCE ( ( + 65 ), 25 / + CAST ( NULL AS INTEGER ) ) * + + 70 - - COALESCE ( + NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ), - 94 - - 83 + 60 ) * 62
----
-4488

query I rowsort
SELECT DISTINCT - 96 * - 33
----
3168

query I rowsort
SELECT DISTINCT - - 12 * 7 + + CASE + 79 WHEN + 12 * - 27 THEN + + 33 ELSE - 24 END AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4699
SELECT - + 83 * - - 77 + + 12, COUNT( * ) AS col2
----
-6379
1

skipif mysql # not compatible
query II rowsort label-4699
SELECT - + 83 * - - 77 + + 12, COUNT ( * ) AS col2
----
-6379
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT + 18 DIV - 91 + + COUNT( * ) DIV - 28 + - MIN( - 26 ) * + 70 + + + 72 + + 96
----
1988

skipif mysql # not compatible
query I rowsort label-4700
SELECT + 18 / - 91 + + COUNT ( * ) / - 28 + - MIN ( - 26 ) * + 70 + + + 72 + + 96
----
1988

onlyif mysql # aggregate syntax: 
query II rowsort label-4701
SELECT + 27 * + + COUNT( * ), 99 AS col1
----
27
99

skipif mysql # not compatible
query II rowsort label-4701
SELECT + 27 * + + COUNT ( * ), 99 AS col1
----
27
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4702
SELECT ALL + CAST( - 26 AS SIGNED ) DIV - + ( + 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL + CAST ( - 26 AS INTEGER ) / - + ( + 25 ) AS col1
----
1

query I rowsort
SELECT - 75 * - - 38 * - 26 + + 50 + 4 AS col0
----
74154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4704
SELECT + CASE CAST( + - CASE - + 44 WHEN - 33 THEN NULL ELSE 94 * - - 30 * - - 34 * + 89 END AS SIGNED ) WHEN 62 - + 72 * + - CASE - COUNT( * ) WHEN 61 - - ( 99 + ( - 3 + 24 * COUNT( * ) ) * COUNT( * ) ) * + 3 THEN + 47 + - 78 ELSE NULL END - CAST( - 41 AS SIGNED ) THEN 84 * - 14 WHEN + 64 + - 3 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT + CASE CAST ( + - CASE - + 44 WHEN - 33 THEN NULL ELSE 94 * - - 30 * - - 34 * + 89 END AS INTEGER ) WHEN 62 - + 72 * + - CASE - COUNT ( * ) WHEN 61 - - ( 99 + ( - 3 + 24 * COUNT ( * ) ) * COUNT ( * ) ) * + 3 THEN + 47 + - 78 ELSE NULL END - CAST ( - 41 AS INTEGER ) THEN 84 * - 14 WHEN + 64 + - 3 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4705
SELECT ALL 83 * ( - + 94 ) * + - 9 + + 72 AS col2, COUNT( * ) * - SUM( DISTINCT - - 9 ) + CASE + 19 WHEN - COALESCE ( + 27, - COUNT( * ) * 27 ) THEN AVG ( + 11 ) * + 57 + 14 / + 69 END
----
70290
NULL

skipif mysql # not compatible
query II rowsort label-4705
SELECT ALL 83 * ( - + 94 ) * + - 9 + + 72 AS col2, COUNT ( * ) * - SUM ( DISTINCT - - 9 ) + CASE + 19 WHEN - COALESCE ( + 27, - COUNT ( * ) * 27 ) THEN AVG ( + 11 ) * + 57 + 14 / + 69 END
----
70290
NULL

query I rowsort
SELECT + - 50 - 74 * - 82 AS col0
----
6018

query I rowsort
SELECT - ( + 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT 73 * + 89 + - + 66 * 69, COUNT( * ) * - ( - 7 ) AS col2
----
1943
7

skipif mysql # not compatible
query II rowsort label-4708
SELECT 73 * + 89 + - + 66 * 69, COUNT ( * ) * - ( - 7 ) AS col2
----
1943
7

query I rowsort
SELECT ALL 28 - - + 19 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT + 34 * COALESCE ( 73, - + CASE + 22 WHEN - 16 - 21 THEN NULL WHEN - 25 THEN 20 + - COUNT( * ) WHEN - 24 THEN - COUNT( * ) + + + 50 END + - 10 ) * 65
----
161330

skipif mysql # not compatible
query I rowsort label-4710
SELECT + 34 * COALESCE ( 73, - + CASE + 22 WHEN - 16 - 21 THEN NULL WHEN - 25 THEN 20 + - COUNT ( * ) WHEN - 24 THEN - COUNT ( * ) + + + 50 END + - 10 ) * 65
----
161330

query II rowsort
SELECT 66 AS col0, 57 - - 10 * + 92
----
66
977

query I rowsort
SELECT + 86 + - + 29
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT ALL 92 - + - MAX( + 19 )
----
111

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL 92 - + - MAX ( + 19 )
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT + 4 * + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4714
SELECT + 4 * + + COUNT ( * ) AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT DISTINCT 15 DIV - - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT 15 / - - 70 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4716
SELECT ALL 78, COUNT( * ) * + 24 + + + 83 / + - 97 + + CAST( NULL AS SIGNED ) + 84 * - - 43 + + 70 AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-4716
SELECT ALL 78, COUNT ( * ) * + 24 + + + 83 / + - 97 + + CAST ( NULL AS INTEGER ) + 84 * - - 43 + + 70 AS col0
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL - SUM( ALL - ( - ( + - 30 ) ) ) * - 37 col2
----
-1110

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL - SUM ( ALL - ( - ( + - 30 ) ) ) * - 37 col2
----
-1110

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT + 56 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4718
SELECT + 56 / - 74 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4719
SELECT DISTINCT 79 DIV - - 1 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT 79 / - - 1 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL 14 * - COUNT( * ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL 14 * - COUNT ( * ) col1
----
-14

query I rowsort
SELECT DISTINCT ( + 34 ) * + 62
----
2108

query I rowsort
SELECT + 38 + + 77
----
115

query I rowsort
SELECT 66 * - 86 + 43
----
-5633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4724
SELECT ALL 83 DIV + 31 + + 58 + COUNT( * ) + + + 14 * + 9 * - COALESCE ( - COUNT( * ), - 98 + + + 36 ) + + + COUNT( * ) + - 84 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL 83 / + 31 + + 58 + COUNT ( * ) + + + 14 * + 9 * - COALESCE ( - COUNT ( * ), - 98 + + + 36 ) + + + COUNT ( * ) + - 84 AS col2
----
104

query I rowsort
SELECT ALL 78 * + 91
----
7098

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT + 90 DIV 10
----
9

skipif mysql # not compatible
query I rowsort label-4726
SELECT + 90 / 10
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT ALL - 76 / + - CAST( NULL AS SIGNED ) + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL - 76 / + - CAST ( NULL AS INTEGER ) + 21
----
NULL

query I rowsort
SELECT ALL + + ( - - 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT MIN( DISTINCT - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-4729
SELECT MIN ( DISTINCT - 24 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4730
SELECT ALL 23 DIV 63 + + 46 + - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL 23 / 63 + + 46 + - COUNT ( * )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT - CAST( + 99 AS SIGNED ) + 12 * + + 83
----
897

skipif mysql # not compatible
query I rowsort label-4731
SELECT - CAST ( + 99 AS INTEGER ) + 12 * + + 83
----
897

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT + 27 AS col1, COUNT( * ) AS col2
----
27
1

skipif mysql # not compatible
query II rowsort label-4732
SELECT + 27 AS col1, COUNT ( * ) AS col2
----
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT COUNT( * ) * 28 + 25 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4733
SELECT COUNT ( * ) * 28 + 25 AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4734
SELECT - 10 * 47 * 36 + + 1 + COUNT( * ) * + 72, - CAST( NULL AS DECIMAL ) * + COUNT( * ) / - COUNT( * ) * 78 * 6 + 39 AS col2
----
-16847
NULL

skipif mysql # not compatible
query II rowsort label-4734
SELECT - 10 * 47 * 36 + + 1 + COUNT ( * ) * + 72, - CAST ( NULL AS REAL ) * + COUNT ( * ) / - COUNT ( * ) * 78 * 6 + 39 AS col2
----
-16847
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4735
SELECT 26 AS col1, - COALESCE ( + + COUNT( * ), - CAST( - COUNT( * ) AS SIGNED ) ) DIV + + COUNT( * ) - ( - + 3 )
----
26
2

skipif mysql # not compatible
query II rowsort label-4735
SELECT 26 AS col1, - COALESCE ( + + COUNT ( * ), - CAST ( - COUNT ( * ) AS INTEGER ) ) / + + COUNT ( * ) - ( - + 3 )
----
26
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT + 42 + CAST( NULL AS SIGNED ) + + COUNT( * ) * 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT + 42 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + 15 * - 99 * 83 + + + COUNT( * ) - + - 15 + + - 38 + 84
----
-123193

skipif mysql # not compatible
query I rowsort label-4737
SELECT + 15 * - 99 * 83 + + + COUNT ( * ) - + - 15 + + - 38 + 84
----
-123193

query I rowsort
SELECT COALESCE ( + 74, + - 21, - 3 ) + - ( + 4 ) + 47 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL + 40 + + - 55 + - 35 + + + ( - + MIN( + 12 ) ) * COUNT( * ) - COUNT( DISTINCT - 35 ) + + 91 * + 84
----
7581

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL + 40 + + - 55 + - 35 + + + ( - + MIN ( + 12 ) ) * COUNT ( * ) - COUNT ( DISTINCT - 35 ) + + 91 * + 84
----
7581

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT - CASE + MAX( ALL + 26 ) WHEN - 50 * - 83 THEN CASE - 93 WHEN - 40 THEN - + 18 - COUNT( * ) END ELSE + 14 + + 75 - + + 10 * + 40 END
----
311

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT - CASE + MAX ( ALL + 26 ) WHEN - 50 * - 83 THEN CASE - 93 WHEN - 40 THEN - + 18 - COUNT ( * ) END ELSE + 14 + + 75 - + + 10 * + 40 END
----
311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT - CAST( NULL AS SIGNED ) * - 93 + + - 22 + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT - CAST ( NULL AS INTEGER ) * - 93 + + - 22 + - 19
----
NULL

query II rowsort
SELECT DISTINCT - 11 AS col2, 45
----
-11
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT ALL + - CAST( NULL AS SIGNED ) - - SUM( DISTINCT 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + - CAST ( NULL AS INTEGER ) - - SUM ( DISTINCT 77 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT + 58 DIV 23 + + 32
----
34

skipif mysql # not compatible
query I rowsort label-4744
SELECT + 58 / 23 + + 32
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4745
SELECT ALL + 8 DIV - 72 * - + 64 - + 26 * + COUNT( ALL 10 ) + - 89
----
-115

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + 8 / - 72 * - + 64 - + 26 * + COUNT ( ALL 10 ) + - 89
----
-115

query I rowsort
SELECT 6 * 26
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4747
SELECT 96 * 41 + 62 - 4 + 47 + + COUNT( * ) + - MAX( ALL CASE 35 WHEN - 98 THEN NULL WHEN 44 DIV + 96 * ( 36 ) * + 94 + + 9 THEN 35 ELSE + ( 23 ) END ) DIV - 81 AS col2
----
4042

skipif mysql # not compatible
query I rowsort label-4747
SELECT 96 * 41 + 62 - 4 + 47 + + COUNT ( * ) + - MAX ( ALL CASE 35 WHEN - 98 THEN NULL WHEN 44 / + 96 * ( 36 ) * + 94 + + 9 THEN 35 ELSE + ( 23 ) END ) / - 81 AS col2
----
4042

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4748
SELECT ALL + 6 DIV - 53 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + 6 / - 53 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT DISTINCT COUNT( * ) * - CASE - COALESCE ( + + NULLIF ( + 63, + 55 ), - + 14, - 56 ) WHEN - CAST( NULL AS SIGNED ) THEN - 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT COUNT ( * ) * - CASE - COALESCE ( + + NULLIF ( + 63, + 55 ), - + 14, - 56 ) WHEN - CAST ( NULL AS INTEGER ) THEN - 86 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL 74 * + CASE + 32 WHEN COUNT( * ) * 58 / + - 23 * + - 92 THEN COUNT( * ) WHEN ( - 49 ) + - 52 + + 50 + 24 * + 49 * COALESCE ( 44, COUNT( * ) * + 41 + 17 ) THEN NULL WHEN + 38 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL 74 * + CASE + 32 WHEN COUNT ( * ) * 58 / + - 23 * + - 92 THEN COUNT ( * ) WHEN ( - 49 ) + - 52 + + 50 + 24 * + 49 * COALESCE ( 44, COUNT ( * ) * + 41 + 17 ) THEN NULL WHEN + 38 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT 96 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT 96 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 9 * + 86
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT COALESCE ( - - COUNT( * ), + 61 ) + + 24 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4753
SELECT COALESCE ( - - COUNT ( * ), + 61 ) + + 24 AS col0
----
25

query I rowsort
SELECT ALL 38 * 73
----
2774

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT 12 * + 77 * + NULLIF ( COUNT( * ), + MAX( + 83 ) )
----
924

skipif mysql # not compatible
query I rowsort label-4755
SELECT 12 * + 77 * + NULLIF ( COUNT ( * ), + MAX ( + 83 ) )
----
924

query II rowsort
SELECT ALL 2 + - 86, 9 + + 60 col2
----
-84
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT ALL CASE 51 WHEN + + 80 THEN NULL WHEN - 1 THEN - 10 END / + + CAST( ( + COUNT( * ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL CASE 51 WHEN + + 80 THEN NULL WHEN - 1 THEN - 10 END / + + CAST ( ( + COUNT ( * ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL SUM( - 43 ) + + + 98
----
55

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL SUM ( - 43 ) + + + 98
----
55

query I rowsort
SELECT DISTINCT 31 + - + ( - + 6 ) AS col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4760
SELECT DISTINCT + CAST( + NULLIF ( + ( - 53 ), - - 79 ) AS SIGNED ) * + - COUNT( * ) + - 35 + + - 29 DIV 99 * + ( - 22 ) * - - 72 + 21 + 81
----
120

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + CAST ( + NULLIF ( + ( - 53 ), - - 79 ) AS INTEGER ) * + - COUNT ( * ) + - 35 + + - 29 / 99 * + ( - 22 ) * - - 72 + 21 + 81
----
120

query I rowsort
SELECT ALL + 5 + + - 46 + 89 * + + 69 * + 37
----
227176

query I rowsort
SELECT ALL 34 * 27
----
918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT + 13 * - CAST( NULL AS SIGNED ) + + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT + 13 * - CAST ( NULL AS INTEGER ) + + - 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL + CASE + + NULLIF ( + 39, - + 84 + + 55 ) WHEN 1 * 40 THEN - + 60 * - 93 + - NULLIF ( - COUNT( * ), - ( + 83 ) * + COUNT( * ) ) + - 63 * + 80 WHEN + COUNT( * ) * + ( + CASE - NULLIF ( COUNT( * ), - 12 ) WHEN - 56 + 6 * + 44 THEN NULL WHEN - 22 * + 94 THEN CASE 29 WHEN 83 * 53 THEN COUNT( * ) ELSE NULL END ELSE COALESCE ( 77, 42 ) END ) THEN + 1 END * 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL + CASE + + NULLIF ( + 39, - + 84 + + 55 ) WHEN 1 * 40 THEN - + 60 * - 93 + - NULLIF ( - COUNT ( * ), - ( + 83 ) * + COUNT ( * ) ) + - 63 * + 80 WHEN + COUNT ( * ) * + ( + CASE - NULLIF ( COUNT ( * ), - 12 ) WHEN - 56 + 6 * + 44 THEN NULL WHEN - 22 * + 94 THEN CASE 29 WHEN 83 * 53 THEN COUNT ( * ) ELSE NULL END ELSE COALESCE ( 77, 42 ) END ) THEN + 1 END * 0 AS col0
----
NULL

query I rowsort
SELECT ( + + 41 ) * + 22 AS col2
----
902

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - ( + 49 ) + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4766
SELECT - ( + 49 ) + COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT - COUNT( * ) + 56 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - COUNT ( * ) + 56 AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4768
SELECT ALL + CASE + + 27 WHEN 95 THEN + 27 * - ( + NULLIF ( CAST( NULL AS SIGNED ), + - 76 + - + 26 ) ) ELSE NULL END - 44 AS col0, 42 * 55 + + 72
----
NULL
2382

skipif mysql # not compatible
query II rowsort label-4768
SELECT ALL + CASE + + 27 WHEN 95 THEN + 27 * - ( + NULLIF ( CAST ( NULL AS INTEGER ), + - 76 + - + 26 ) ) ELSE NULL END - 44 AS col0, 42 * 55 + + 72
----
NULL
2382

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT COUNT( * ) * + - 63 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT COUNT ( * ) * + - 63 AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4770
SELECT ALL - - CAST( 10 AS SIGNED ) - ( + NULLIF ( COUNT( * ), + 83 + - - 50 + 96 + + ( 18 ) * + 38 * AVG ( - 34 ) * - 26 + + 76 ) )
----
9

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL - - CAST ( 10 AS INTEGER ) - ( + NULLIF ( COUNT ( * ), + 83 + - - 50 + 96 + + ( 18 ) * + 38 * AVG ( - 34 ) * - 26 + + 76 ) )
----
9

query I rowsort
SELECT 59 * + + 51 + - 3
----
3006

query I rowsort
SELECT 74 * - + 79 * 59 AS col2
----
-344914

query I rowsort
SELECT DISTINCT - + ( 85 )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT 38 * 33, - COUNT( * ) AS col1
----
1254
-1

skipif mysql # not compatible
query II rowsort label-4774
SELECT 38 * 33, - COUNT ( * ) AS col1
----
1254
-1

query I rowsort
SELECT ( 69 ) - - 85
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT CASE + CAST( + ( 13 ) AS SIGNED ) WHEN + + 35 THEN NULL ELSE + 54 * - + 29 END AS col1
----
-1566

skipif mysql # not compatible
query I rowsort label-4776
SELECT CASE + CAST ( + ( 13 ) AS INTEGER ) WHEN + + 35 THEN NULL ELSE + 54 * - + 29 END AS col1
----
-1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4777
SELECT + COUNT( * ) * + ( 89 ) - - 66 + 10 DIV - COUNT( DISTINCT - 8 ) AS col1
----
145

skipif mysql # not compatible
query I rowsort label-4777
SELECT + COUNT ( * ) * + ( 89 ) - - 66 + 10 / - COUNT ( DISTINCT - 8 ) AS col1
----
145

query I rowsort
SELECT 74 * - 90 AS col1
----
-6660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4779
SELECT ( - + 75 ) * - 36 + + 85 - + - COUNT( * ) DIV 12 * 94
----
2785

skipif mysql # not compatible
query I rowsort label-4779
SELECT ( - + 75 ) * - 36 + + 85 - + - COUNT ( * ) / 12 * 94
----
2785

query I rowsort
SELECT DISTINCT 51 * 59 AS col0
----
3009

query I rowsort
SELECT 90 * - 37
----
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT SUM( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT SUM ( DISTINCT - 1 )
----
-1

query I rowsort
SELECT 80 + 67
----
147

query I rowsort
SELECT 15 - + 46
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4785
SELECT COUNT( * ) DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-4785
SELECT COUNT ( * ) / - 74
----
0

query I rowsort
SELECT 25 + - 32 AS col0
----
-7

query I rowsort
SELECT ALL + ( 23 ) + + - ( - - 0 ) AS col1
----
23

query I rowsort
SELECT 5 + + + ( - ( - - 14 ) )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4789
SELECT 12 DIV + 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4789
SELECT 12 / + 54 AS col0
----
0

query I rowsort
SELECT 15 + + + 7 * - 43
----
-286

query I rowsort
SELECT ALL - NULLIF ( - 96, - 54 + + 97 * + 9 * + 89 ) + - 0
----
96

query I rowsort
SELECT ALL 78 + - 42 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT - ( - 43 ) + + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - ( - 43 ) + + COUNT ( * ) AS col1
----
44

query I rowsort
SELECT + 60 * 25 AS col0
----
1500

query I rowsort
SELECT + 19 + + 46
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT - MIN( 1 ) + + 44 col0
----
43

skipif mysql # not compatible
query I rowsort label-4796
SELECT - MIN ( 1 ) + + 44 col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT - 10 + COUNT( * ) * + - 16 * - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4797
SELECT - 10 + COUNT ( * ) * + - 16 * - COUNT ( * ) AS col2
----
6

query I rowsort
SELECT DISTINCT + + 3 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4799
SELECT DISTINCT + 1 * + COUNT( * ) * + CASE - CAST( NULL AS SIGNED ) WHEN - + 50 THEN 92 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT + 1 * + COUNT ( * ) * + CASE - CAST ( NULL AS INTEGER ) WHEN - + 50 THEN 92 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT + COALESCE ( - COUNT( * ), - COUNT( * ), 31 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4800
SELECT + COALESCE ( - COUNT ( * ), - COUNT ( * ), 31 ) AS col1
----
-1

query I rowsort
SELECT + + 63 + + + 40
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT + 13 DIV + 22 + - 37 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-4802
SELECT + 13 / + 22 + - 37 AS col0
----
-37

query I rowsort
SELECT DISTINCT 52 * - 67 AS col2
----
-3484

query I rowsort
SELECT + + 13 * + - 14 + + 52 AS col1
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT + CAST( NULL AS SIGNED ) + - 59 * + CAST( + 40 AS SIGNED ) * - - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT + CAST ( NULL AS INTEGER ) + - 59 * + CAST ( + 40 AS INTEGER ) * - - 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT + 53 + + + 88 - + + COUNT( * )
----
140

skipif mysql # not compatible
query I rowsort label-4806
SELECT + 53 + + + 88 - + + COUNT ( * )
----
140

query I rowsort
SELECT + + COALESCE ( 53, 78 ) * 74
----
3922

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT + 5 * - + COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT + 5 * - + COUNT ( * ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL 69 * - - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL 69 * - - COUNT ( * )
----
69

query I rowsort
SELECT + ( - 26 ) AS col1
----
-26

query I rowsort
SELECT + ( + + 42 ) * 83 AS col1
----
3486

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT + COALESCE ( 65, + COUNT( * ) - 76 * 46, - 2 )
----
65

skipif mysql # not compatible
query I rowsort label-4812
SELECT + COALESCE ( 65, + COUNT ( * ) - 76 * 46, - 2 )
----
65

query II rowsort
SELECT - 33 + 26 * 96 - - + 86 + 22 - - + 54, + 51 AS col0
----
2625
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT DISTINCT + COUNT( DISTINCT + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT + COUNT ( DISTINCT + 85 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4815
SELECT + ( CAST( NULL AS SIGNED ) ) * 69 + ( - 39 ) + - 93 * ( + CAST( - 7 AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4815
SELECT + ( CAST ( NULL AS INTEGER ) ) * 69 + ( - 39 ) + - 93 * ( + CAST ( - 7 AS REAL ) ) AS col1
----
NULL

query II rowsort
SELECT - 9 + + 83, 82 + - 66 col2
----
74
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4817
SELECT ALL + 26 * - - 80 + + + COUNT( * ) + - - 63 * CASE - NULLIF ( 67, - 56 ) WHEN + 85 THEN NULL WHEN + CAST( - COUNT( * ) AS SIGNED ) + - 86 * + 29 THEN NULL ELSE - COALESCE ( + 94, - CASE + 38 WHEN + COALESCE ( - 41, - CAST( NULLIF ( 37, - 34 + + 12 / + COUNT( CAST( COALESCE ( + 81, 25 ) AS DECIMAL ) ) ) AS SIGNED ) + + ( 75 ) ) * 46 THEN NULL WHEN + ( - 82 ) * 90 THEN NULL ELSE 52 + 92 END ) END + + 86 * - 44
----
-7625

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL + 26 * - - 80 + + + COUNT ( * ) + - - 63 * CASE - NULLIF ( 67, - 56 ) WHEN + 85 THEN NULL WHEN + CAST ( - COUNT ( * ) AS INTEGER ) + - 86 * + 29 THEN NULL ELSE - COALESCE ( + 94, - CASE + 38 WHEN + COALESCE ( - 41, - CAST ( NULLIF ( 37, - 34 + + 12 / + COUNT ( CAST ( COALESCE ( + 81, 25 ) AS REAL ) ) ) AS INTEGER ) + + ( 75 ) ) * 46 THEN NULL WHEN + ( - 82 ) * 90 THEN NULL ELSE 52 + 92 END ) END + + 86 * - 44
----
-7625

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT MAX( - - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-4818
SELECT MAX ( - - 81 )
----
81

query II rowsort
SELECT DISTINCT 80, - 88 AS col1
----
80
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT ALL + CAST( NULL AS SIGNED ) * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + CAST ( NULL AS INTEGER ) * + 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4821
SELECT DISTINCT COALESCE ( - COUNT( * ), + 3, COUNT( * ) * 96 - - SUM( DISTINCT + 40 ) + COUNT( * ) + + 34 ) AS col2, 26 / + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4821
SELECT DISTINCT COALESCE ( - COUNT ( * ), + 3, COUNT ( * ) * 96 - - SUM ( DISTINCT + 40 ) + COUNT ( * ) + + 34 ) AS col2, 26 / + CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT ALL 55 + - 43
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL ( - - MIN( + 36 ) )
----
36

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL ( - - MIN ( + 36 ) )
----
36

query I rowsort
SELECT ALL + 17 + + 65 + + - NULLIF ( + - 32, 67 * + 65 )
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT ALL + COUNT( * ) * - + 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + COUNT ( * ) * - + 97 AS col2
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4826
SELECT 92 AS col0, CAST( NULL AS SIGNED )
----
92
NULL

skipif mysql # not compatible
query II rowsort label-4826
SELECT 92 AS col0, CAST ( NULL AS INTEGER )
----
92
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4827
SELECT DISTINCT COALESCE ( 31, - 13, - 46 * - 65 DIV 5 ) AS col0, 95 + 27
----
31
122

skipif mysql # not compatible
query II rowsort label-4827
SELECT DISTINCT COALESCE ( 31, - 13, - 46 * - 65 / 5 ) AS col0, 95 + 27
----
31
122

query I rowsort
SELECT - 86 * 26 AS col2
----
-2236

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4829
SELECT - SUM( ALL NULLIF ( + 19, + 47 ) ), 28 DIV COUNT( - 93 ) AS col1
----
-19
28

skipif mysql # not compatible
query II rowsort label-4829
SELECT - SUM ( ALL NULLIF ( + 19, + 47 ) ), 28 / COUNT ( - 93 ) AS col1
----
-19
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT - CAST( 56 AS SIGNED ) - - - 9 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4830
SELECT - CAST ( 56 AS INTEGER ) - - - 9 AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4831
SELECT - + 32 AS col1, + 77 * COALESCE ( NULLIF ( - + NULLIF ( - + 53, + 78 * - 33 + - 17 ), - + CAST( - MAX( 88 ) AS SIGNED ) ), + - CAST( 23 AS SIGNED ) ) AS col0
----
-32
4081

skipif mysql # not compatible
query II rowsort label-4831
SELECT - + 32 AS col1, + 77 * COALESCE ( NULLIF ( - + NULLIF ( - + 53, + 78 * - 33 + - 17 ), - + CAST ( - MAX ( 88 ) AS INTEGER ) ), + - CAST ( 23 AS INTEGER ) ) AS col0
----
-32
4081

query II rowsort
SELECT DISTINCT 23, 78 - - + 77 AS col1
----
23
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4833
SELECT ALL - - COUNT( * ) * - COUNT( * ) DIV - + 27 + - + 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) / - + 27 + - + 56 AS col2
----
-56

query I rowsort
SELECT - + 58 * 4
----
-232

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4835
SELECT DISTINCT 7, - NULLIF ( + CAST( ( 69 ) AS SIGNED ), - 4 - 47 ) + - COALESCE ( + - 45, + 26 ) AS col0
----
7
-24

skipif mysql # not compatible
query II rowsort label-4835
SELECT DISTINCT 7, - NULLIF ( + CAST ( ( 69 ) AS INTEGER ), - 4 - 47 ) + - COALESCE ( + - 45, + 26 ) AS col0
----
7
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) * + 25 * + CASE 93 WHEN - ( + - 93 ) * + - COUNT( * ) * + 11 THEN NULL WHEN + 85 * - 36 / + 50 - + - 10 * - 83 THEN 91 ELSE + - 75 - + 28 * - 22 END + + 44 * 99 AS col2
----
-9169

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) * + 25 * + CASE 93 WHEN - ( + - 93 ) * + - COUNT ( * ) * + 11 THEN NULL WHEN + 85 * - 36 / + 50 - + - 10 * - 83 THEN 91 ELSE + - 75 - + 28 * - 22 END + + 44 * 99 AS col2
----
-9169

query I rowsort
SELECT ALL ( - + 33 ) col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4838
SELECT 95, ( + + ( - MAX( ALL + 62 ) ) ) col2
----
95
-62

skipif mysql # not compatible
query II rowsort label-4838
SELECT 95, ( + + ( - MAX ( ALL + 62 ) ) ) col2
----
95
-62

query I rowsort
SELECT ALL + + 32 * + + 5 * - + 79 AS col0
----
-12640

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4840
SELECT + - 37, ( CAST( NULL AS SIGNED ) ) col0
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-4840
SELECT + - 37, ( CAST ( NULL AS INTEGER ) ) col0
----
-37
NULL

query I rowsort
SELECT + - 26 + - 30 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL 53 / NULLIF ( + 88, - - 0 ) + + 62 + + 91 + + - MIN( DISTINCT - 23 ) * CASE + 21 WHEN - 92 THEN - + SUM( - 80 ) / + 88 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL 53 / NULLIF ( + 88, - - 0 ) + + 62 + + 91 + + - MIN ( DISTINCT - 23 ) * CASE + 21 WHEN - 92 THEN - + SUM ( - 80 ) / + 88 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT - COALESCE ( + ( + - COUNT( * ) ), 11, + + 41 ) + + 34 * + + 5 AS col1
----
171

skipif mysql # not compatible
query I rowsort label-4843
SELECT - COALESCE ( + ( + - COUNT ( * ) ), 11, + + 41 ) + + 34 * + + 5 AS col1
----
171

query I rowsort
SELECT + ( + + 90 ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4845
SELECT + CAST( 35 AS SIGNED ) AS col1, 71 + - COUNT( - CAST( + 62 AS DECIMAL ) ) AS col1
----
35
70

skipif mysql # not compatible
query II rowsort label-4845
SELECT + CAST ( 35 AS INTEGER ) AS col1, 71 + - COUNT ( - CAST ( + 62 AS REAL ) ) AS col1
----
35
70

query I rowsort
SELECT ALL - 32 * + - 78 + - 42 AS col1
----
2454

query II rowsort
SELECT + 21 - - 87 AS col0, 52 - + 94 * + + 85 * - + 12 - - 30 + - 13
----
108
95949

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL COALESCE ( + - COUNT( * ), COUNT( - 79 ) ) * - 38 * - 6
----
-228

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL COALESCE ( + - COUNT ( * ), COUNT ( - 79 ) ) * - 38 * - 6
----
-228

query I rowsort
SELECT DISTINCT 93 * + 42 + - + 94
----
3812

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4850
SELECT DISTINCT - 22 * - CASE - 97 WHEN + - 64 THEN + 99 WHEN - COUNT( * ) * + 80 * - 83 THEN NULL END + CASE - COUNT( * ) WHEN + 56 * MIN( ALL + 16 ) + - 61 + - 20 / 55 * CAST( + 25 AS SIGNED ) - - COUNT( * ) THEN + CASE - 16 WHEN 77 * 44 + 69 THEN 82 * ( 9 ) END * 59 + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT - 22 * - CASE - 97 WHEN + - 64 THEN + 99 WHEN - COUNT ( * ) * + 80 * - 83 THEN NULL END + CASE - COUNT ( * ) WHEN + 56 * MIN ( ALL + 16 ) + - 61 + - 20 / 55 * CAST ( + 25 AS INTEGER ) - - COUNT ( * ) THEN + CASE - 16 WHEN 77 * 44 + 69 THEN 82 * ( 9 ) END * 59 + 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL CASE + 68 WHEN + 29 THEN CASE + 37 WHEN COUNT( * ) * 53 - + 58 * - 34 * + COUNT( * ) + - 89 + 33 + + + 82 - MAX( + 54 ) * - 53 * + - 78 THEN 49 * ( COUNT( * ) ) ELSE + 99 + 32 END + - 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL CASE + 68 WHEN + 29 THEN CASE + 37 WHEN COUNT ( * ) * 53 - + 58 * - 34 * + COUNT ( * ) + - 89 + 33 + + + 82 - MAX ( + 54 ) * - 53 * + - 78 THEN 49 * ( COUNT ( * ) ) ELSE + 99 + 32 END + - 34 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4852
SELECT COUNT( * ) - + - 99 AS col1, 95
----
100
95

skipif mysql # not compatible
query II rowsort label-4852
SELECT COUNT ( * ) - + - 99 AS col1, 95
----
100
95

query I rowsort
SELECT 50 + + 89 AS col2
----
139

query III rowsort
SELECT 59 + 55 AS col1, - ( 75 ) - + + 27 AS col1, - + 18
----
114
-102
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL COALESCE ( - + 96, - COUNT( * ) * - - 97 + SUM( ALL - 0 ) + - NULLIF ( 57, + 3 ), 14 - 78 + - 38 + COUNT( * ) ) - + 39 + 3
----
-132

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL COALESCE ( - + 96, - COUNT ( * ) * - - 97 + SUM ( ALL - 0 ) + - NULLIF ( 57, + 3 ), 14 - 78 + - 38 + COUNT ( * ) ) - + 39 + 3
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT 40 + + - 44 DIV - + 98 * - 64 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4857
SELECT 40 + + - 44 / - + 98 * - 64 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL - - 85 * COUNT( * ) * - 11 * + 66
----
-61710

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - - 85 * COUNT ( * ) * - 11 * + 66
----
-61710

query II rowsort
SELECT - ( + 19 ) AS col2, 29
----
-19
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL MAX( DISTINCT + 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL MAX ( DISTINCT + 98 ) AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL + CAST( NULL AS SIGNED ) * + - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 65 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4862
SELECT + ( ( + 45 ) ) * + + 75 * + CAST( NULL AS SIGNED ), ( + 1 ) * - 77 / 4 + + CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4862
SELECT + ( ( + 45 ) ) * + + 75 * + CAST ( NULL AS INTEGER ), ( + 1 ) * - 77 / 4 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4863
SELECT + 33 + + - COUNT( * ) AS col0, 0
----
32
0

skipif mysql # not compatible
query II rowsort label-4863
SELECT + 33 + + - COUNT ( * ) AS col0, 0
----
32
0

query I rowsort
SELECT 13 + + 20
----
33

query I rowsort
SELECT - 86 * - - 1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4866
SELECT 3 * - NULLIF ( + ( 26 ), + 55 + + 71 + + CAST( 4 AS SIGNED ) + - + NULLIF ( - COUNT( * ), - COUNT( * ) * + - 1 + - COUNT( * ) + + + 48 * - 50 ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4866
SELECT 3 * - NULLIF ( + ( 26 ), + 55 + + 71 + + CAST ( 4 AS INTEGER ) + - + NULLIF ( - COUNT ( * ), - COUNT ( * ) * + - 1 + - COUNT ( * ) + + + 48 * - 50 ) ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT ALL - - CAST( NULL AS SIGNED ) + - + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL - - CAST ( NULL AS INTEGER ) + - + 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4868
SELECT MIN( ALL 44 ) AS col0, - 16
----
44
-16

skipif mysql # not compatible
query II rowsort label-4868
SELECT MIN ( ALL 44 ) AS col0, - 16
----
44
-16

query I rowsort
SELECT - 58 + + + ( 62 )
----
4

query II rowsort
SELECT - 2 * - 23, 46 * 40 + + 93 col2
----
46
1933

query I rowsort
SELECT 15 + CASE 41 WHEN - 56 THEN + 78 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4872
SELECT ALL + 16 + - + 87 * 58 DIV - - ( - 97 ) * + COUNT( DISTINCT + 48 ) + 34
----
102

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL + 16 + - + 87 * 58 / - - ( - 97 ) * + COUNT ( DISTINCT + 48 ) + 34
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4873
SELECT MIN( + 17 ) / - COUNT( * ) * CAST( NULL AS SIGNED ) + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT MIN ( + 17 ) / - COUNT ( * ) * CAST ( NULL AS INTEGER ) + 65
----
NULL

query I rowsort
SELECT 5 + + 48
----
53

query II rowsort
SELECT ALL - 76, 69 + - 73 * + 28 * 62 * 8 AS col0
----
-76
-1013755

query I rowsort
SELECT DISTINCT - 71 * - 68
----
4828

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL + COUNT( * ) + CASE - COUNT( * ) WHEN 26 THEN NULL WHEN - CASE + 69 WHEN 46 THEN - ( 20 ) * 54 WHEN + 48 THEN NULL ELSE 7 END * - SUM( ALL - 90 ) THEN - 67 * + - 46 + + + 69 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL + COUNT ( * ) + CASE - COUNT ( * ) WHEN 26 THEN NULL WHEN - CASE + 69 WHEN 46 THEN - ( 20 ) * 54 WHEN + 48 THEN NULL ELSE 7 END * - SUM ( ALL - 90 ) THEN - 67 * + - 46 + + + 69 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT 31 * + - 49 * - SUM( DISTINCT - 2 )
----
-3038

skipif mysql # not compatible
query I rowsort label-4878
SELECT 31 * + - 49 * - SUM ( DISTINCT - 2 )
----
-3038

query II rowsort
SELECT ALL - 66 AS col2, ( 69 ) * + 59 * + 33 AS col2
----
-66
134343

query II rowsort
SELECT - 26 * 94 + - 98, 40 AS col1
----
-2542
40

query II rowsort
SELECT DISTINCT - 82 col2, NULLIF ( - - 4, - 93 + - 83 ) AS col0
----
-82
4

query I rowsort
SELECT 21 * 22
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT MAX( + 93 ) * 35 + + 37 AS col1
----
3292

skipif mysql # not compatible
query I rowsort label-4883
SELECT MAX ( + 93 ) * 35 + + 37 AS col1
----
3292

query II rowsort
SELECT 55, - 10 AS col0
----
55
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT ALL 96 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL 96 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4886
SELECT DISTINCT + 8 * - 21 * - - CASE + + 62 WHEN + + COUNT( * ) THEN NULL ELSE - 42 END * + 26 * + 0 AS col2, 77 + - CAST( - 75 AS SIGNED ) * - 24 - - - 47
----
0
-1770

skipif mysql # not compatible
query II rowsort label-4886
SELECT DISTINCT + 8 * - 21 * - - CASE + + 62 WHEN + + COUNT ( * ) THEN NULL ELSE - 42 END * + 26 * + 0 AS col2, 77 + - CAST ( - 75 AS INTEGER ) * - 24 - - - 47
----
0
-1770

query I rowsort
SELECT DISTINCT - CASE + ( 50 ) WHEN + 22 THEN - 29 + 58 * 9 END * + 82 * - 83
----
NULL

query II rowsort
SELECT ALL + 92 AS col1, 74 AS col2
----
92
74

query II rowsort
SELECT ALL 80 AS col2, 86 AS col1
----
80
86

query I rowsort
SELECT 25 + 86
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT - CASE 6 WHEN + 8 * - 91 THEN MAX( ALL 34 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT - CASE 6 WHEN + 8 * - 91 THEN MAX ( ALL 34 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT COALESCE ( - - 16, - 75 * - 10 ) * - 62 * - - 56 * + 91
----
-5055232

query II rowsort
SELECT 48 + 78 * - 82, + 57 * + 22 + + 57 AS col2
----
-6348
1311

query I rowsort
SELECT DISTINCT - 62 + + - 51 col0
----
-113

query I rowsort
SELECT ALL - + 65 + - - 43 col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT COUNT( * ) + + 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT COUNT ( * ) + + 36 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL - CASE + ( - COUNT( * ) ) WHEN 70 + + 65 THEN - + 57 END * - + COUNT( * ) + - MIN( + 74 ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL - CASE + ( - COUNT ( * ) ) WHEN 70 + + 65 THEN - + 57 END * - + COUNT ( * ) + - MIN ( + 74 ) + 6
----
NULL

query I rowsort
SELECT 7 - + 52 * - 17
----
891

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT 67, + COUNT( * ) * - 81 * - 34 * + + 34 AS col0
----
67
93636

skipif mysql # not compatible
query II rowsort label-4899
SELECT 67, + COUNT ( * ) * - 81 * - 34 * + + 34 AS col0
----
67
93636

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4900
SELECT CASE + 18 WHEN + - CAST( NULL AS SIGNED ) + + 53 + + COUNT( * ) + - 74 / - + 74 THEN - - ( + 75 ) / 70 * 58 + COUNT( * ) + + + 38 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT CASE + 18 WHEN + - CAST ( NULL AS INTEGER ) + + 53 + + COUNT ( * ) + - 74 / - + 74 THEN - - ( + 75 ) / 70 * 58 + COUNT ( * ) + + + 38 END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + + ( - + 57 ), + AVG ( 87 ) ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4902
SELECT 5 DIV + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4902
SELECT 5 / + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT DISTINCT + 2 / + CASE + + 19 WHEN - 88 THEN - + 52 * 60 + + 23 * 46 + MAX( + 87 ) / - SUM( + + 2 ) WHEN + NULLIF ( - 9, 6 / 66 - + - 70 ) THEN NULL ELSE NULL END * 34 * - - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT + 2 / + CASE + + 19 WHEN - 88 THEN - + 52 * 60 + + 23 * 46 + MAX ( + 87 ) / - SUM ( + + 2 ) WHEN + NULLIF ( - 9, 6 / 66 - + - 70 ) THEN NULL ELSE NULL END * 34 * - - 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT - MAX( - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT - MAX ( - 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL + COUNT( * ) * + MIN( ALL + 26 ) - + 45 + + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + COUNT ( * ) * + MIN ( ALL + 26 ) - + 45 + + COUNT ( * )
----
-18

query I rowsort
SELECT 31 - + 99 AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT ALL + COALESCE ( + 19, + + 11 ) DIV - - 24
----
0

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL + COALESCE ( + 19, + + 11 ) / - - 24
----
0

query I rowsort
SELECT - 44 * + 5 * - - 39
----
-8580

query I rowsort
SELECT - 15 + 40 AS col1
----
25

query I rowsort
SELECT ALL - ( 26 ) * - 72 + ( + - 83 ) + + 80 * + - 53 + - 1 - + 29
----
-2481

query I rowsort
SELECT + 14 * 18
----
252

query II rowsort
SELECT ALL - 13 * - 75, - 8 AS col1
----
975
-8

query I rowsort
SELECT - 96 * + 63 + - 85 AS col0
----
-6133

query I rowsort
SELECT - 61 + 86
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4915
SELECT ALL - NULLIF ( - 2, - CAST( NULL AS DECIMAL ) * - - 54 + - 25 ) * + 97
----
194

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL - NULLIF ( - 2, - CAST ( NULL AS REAL ) * - - 54 + - 25 ) * + 97
----
194

query I rowsort
SELECT - 43 * + 52 + - + 34 AS col2
----
-2270

query I rowsort
SELECT + - 96 + 37 AS col0
----
-59

query I rowsort
SELECT - + 85 * + 92 + + 42
----
-7778

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT + + 79 * - COUNT( * ) + - 45 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-4919
SELECT + + 79 * - COUNT ( * ) + - 45 AS col1
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT DISTINCT + - ( - 77 ) + - CAST( NULL AS SIGNED ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + - ( - 77 ) + - CAST ( NULL AS INTEGER ) + - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT - NULLIF ( - COUNT( * ), - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-4921
SELECT - NULLIF ( - COUNT ( * ), - 69 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - + COUNT( * ) + - + 11 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4922
SELECT - + COUNT ( * ) + - + 11 AS col1
----
-12

query I rowsort
SELECT ALL 7 * 30
----
210

query I rowsort
SELECT - 77 * - 18 AS col1
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL COUNT( * ) + + + MIN( + + 44 ) + COALESCE ( - 92, + - COUNT( * ) - - + 30 ) * - 6 + - ( 36 )
----
561

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL COUNT ( * ) + + + MIN ( + + 44 ) + COALESCE ( - 92, + - COUNT ( * ) - - + 30 ) * - 6 + - ( 36 )
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL + CASE + + 64 WHEN + 2 THEN NULL ELSE 96 END * - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL + CASE + + 64 WHEN + 2 THEN NULL ELSE 96 END * - COUNT ( * )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4927
SELECT DISTINCT ( - CAST( + 69 AS SIGNED ) ) + + 47 * + 90 AS col0, CAST( NULL AS SIGNED )
----
4161
NULL

skipif mysql # not compatible
query II rowsort label-4927
SELECT DISTINCT ( - CAST ( + 69 AS INTEGER ) ) + + 47 * + 90 AS col0, CAST ( NULL AS INTEGER )
----
4161
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + - 20 + - COALESCE ( + - 93, + 31, - COUNT( * ) * - COUNT( * ) + + 76 + - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4928
SELECT + - 20 + - COALESCE ( + - 93, + 31, - COUNT ( * ) * - COUNT ( * ) + + 76 + - 73 )
----
73

query II rowsort
SELECT ALL 10 + 89 AS col2, - 24 AS col0
----
99
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4930
SELECT + 93 + ( + 81 ) + - 6, ( COUNT( 80 ) ) col1
----
168
1

skipif mysql # not compatible
query II rowsort label-4930
SELECT + 93 + ( + 81 ) + - 6, ( COUNT ( 80 ) ) col1
----
168
1

query I rowsort
SELECT + NULLIF ( - + 34, + + 83 * + 69 - 27 * - 81 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT + COUNT( * ) + - 49 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4932
SELECT + COUNT ( * ) + - 49 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL 4 - - - COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL 4 - - - COUNT ( * ) AS col1
----
3

query I rowsort
SELECT + 75 + 14
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT ALL + 34 DIV - 49 - + 46 col2
----
-46

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL + 34 / - 49 - + 46 col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-4936
SELECT DISTINCT + 57 AS col1, + NULLIF ( 59, 13 + - 13 + MIN( 54 ) - 25 ) + ( - 29 ) * - COUNT( * )
----
57
88

skipif mysql # not compatible
query II rowsort label-4936
SELECT DISTINCT + 57 AS col1, + NULLIF ( 59, 13 + - 13 + MIN ( 54 ) - 25 ) + ( - 29 ) * - COUNT ( * )
----
57
88

query I rowsort
SELECT + 27 * - - 85
----
2295

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT ALL NULLIF ( + 50, + COALESCE ( - 31, 34 ) + ( + - MAX( ALL 48 ) ) ) * - ( - + MAX( + - 0 ) ) * + 76 - 56, - 67 * ( + 31 ) + - + 15 col2
----
-56
-2092

skipif mysql # not compatible
query II rowsort label-4938
SELECT ALL NULLIF ( + 50, + COALESCE ( - 31, 34 ) + ( + - MAX ( ALL 48 ) ) ) * - ( - + MAX ( + - 0 ) ) * + 76 - 56, - 67 * ( + 31 ) + - + 15 col2
----
-56
-2092

query I rowsort
SELECT + 44 + - - NULLIF ( - 14, + 65 ) * + - 17 + + 67
----
349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4940
SELECT + NULLIF ( 72, - COUNT( * ) + + 42 * - 63 - + 82 + - 3 + - 16 / + 97 * - NULLIF ( 29, - CAST( 31 AS SIGNED ) * + + 78 + - 78 * - + COUNT( + 24 ) * - + 66 + + 33 / 8 ) )
----
72

skipif mysql # not compatible
query I rowsort label-4940
SELECT + NULLIF ( 72, - COUNT ( * ) + + 42 * - 63 - + 82 + - 3 + - 16 / + 97 * - NULLIF ( 29, - CAST ( 31 AS INTEGER ) * + + 78 + - 78 * - + COUNT ( + 24 ) * - + 66 + + 33 / 8 ) )
----
72

query I rowsort
SELECT + ( 20 ) col0
----
20

query I rowsort
SELECT + 91 * + + 15
----
1365

query I rowsort
SELECT + 93 * - 8 * + 33 + - 13
----
-24565

query I rowsort
SELECT + ( - - 30 ) AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4945
SELECT - NULLIF ( - + 72, - CASE + 42 WHEN - + COUNT( + + 16 ) THEN NULL WHEN + 1 + + - 3 THEN NULL ELSE - COUNT( * ) * + 37 * - NULLIF ( + 11, + + 48 + - - MIN( - 9 ) ) + + CAST( NULL AS SIGNED ) END - - 97 + - - 18 * 41 * - 0 ) DIV - 2 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4945
SELECT - NULLIF ( - + 72, - CASE + 42 WHEN - + COUNT ( + + 16 ) THEN NULL WHEN + 1 + + - 3 THEN NULL ELSE - COUNT ( * ) * + 37 * - NULLIF ( + 11, + + 48 + - - MIN ( - 9 ) ) + + CAST ( NULL AS INTEGER ) END - - 97 + - - 18 * 41 * - 0 ) / - 2 AS col1
----
-36

query I rowsort
SELECT DISTINCT ( - 55 ) * - + ( - 19 )
----
-1045

query I rowsort
SELECT ( + 81 ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL + COUNT( DISTINCT - - 57 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL + COUNT ( DISTINCT - - 57 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 36 * 73
----
2628

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT ALL + 63 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT ALL + 63 / + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + COUNT( * ) * 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4951
SELECT + COUNT ( * ) * 34 AS col1
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4952
SELECT + 42 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT + 42 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT DISTINCT + COALESCE ( 5, CAST( - - 88 AS SIGNED ) + + 6, 24 * - 84 + 22 )
----
5

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT + COALESCE ( 5, CAST ( - - 88 AS INTEGER ) + + 6, 24 * - 84 + 22 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4954
SELECT + 10 col2, COUNT( * ) + 69
----
10
70

skipif mysql # not compatible
query II rowsort label-4954
SELECT + 10 col2, COUNT ( * ) + 69
----
10
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT DISTINCT + + 56 * - MAX( DISTINCT + + 78 ) + - 71 AS col2
----
-4439

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + + 56 * - MAX ( DISTINCT + + 78 ) + - 71 AS col2
----
-4439

query I rowsort
SELECT - ( + + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT DISTINCT + + 81 + - SUM( + + 6 )
----
75

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT + + 81 + - SUM ( + + 6 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT + NULLIF ( 35, 76 ) + + 69 * COUNT( * ) AS col1
----
104

skipif mysql # not compatible
query I rowsort label-4958
SELECT + NULLIF ( 35, 76 ) + + 69 * COUNT ( * ) AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT + - 74 * MAX( ALL 74 ) * 67 + - + 87
----
-366979

skipif mysql # not compatible
query I rowsort label-4959
SELECT + - 74 * MAX ( ALL 74 ) * 67 + - + 87
----
-366979

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL + 68 + + + ( - COUNT( * ) )
----
67

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL + 68 + + + ( - COUNT ( * ) )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - 68 * - + ( + COUNT( * ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4961
SELECT - 68 * - + ( + COUNT ( * ) ) AS col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT - ( + 38 ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-4962
SELECT - ( + 38 ) / - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT 26 * 35 + - + 17 + + 69 * COUNT( - 4 )
----
962

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT 26 * 35 + - + 17 + + 69 * COUNT ( - 4 )
----
962

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4964
SELECT ALL + ( + 26 ) DIV COUNT( - - 73 ) * - COUNT( 14 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + ( + 26 ) / COUNT ( - - 73 ) * - COUNT ( 14 ) col0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT CASE WHEN NOT + 0 IS NULL THEN - 2 ELSE - COUNT( * ) END AS col2, + 66 * - 86 + + 43 * - 83 col1
----
-2
-9245

skipif mysql # not compatible
query II rowsort label-4965
SELECT CASE WHEN NOT + 0 IS NULL THEN - 2 ELSE - COUNT ( * ) END AS col2, + 66 * - 86 + + 43 * - 83 col1
----
-2
-9245

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT COUNT( * ) * + 93 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4966
SELECT COUNT ( * ) * + 93 AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT 34 * 59 * - COALESCE ( 35, - 48, 21 ) AS col2, COUNT( * )
----
-70210
1

skipif mysql # not compatible
query II rowsort label-4967
SELECT 34 * 59 * - COALESCE ( 35, - 48, 21 ) AS col2, COUNT ( * )
----
-70210
1

query I rowsort
SELECT 5 * 94 * - 21 AS col2
----
-9870

query II rowsort
SELECT - 67 AS col0, - 69 * - 13 * 62 * - 65
----
-67
-3614910

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT COUNT( * ) - NULLIF ( 84, COUNT( * ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4970
SELECT COUNT ( * ) - NULLIF ( 84, COUNT ( * ) ) AS col2
----
-83

query II rowsort
SELECT ALL - 4 AS col1, - 70
----
-4
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT ALL - CAST( + 99 AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - CAST ( + 99 AS INTEGER ) AS col2
----
-99

query II rowsort
SELECT DISTINCT - 79 AS col0, + 49 + + 14 * - COALESCE ( 42, + - 13 )
----
-79
-539

query II rowsort
SELECT ALL - 20 AS col1, NULLIF ( + 97, + 92 + + 65 + 26 * + 79 )
----
-20
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ( - COUNT( * ) ) * + 93 + - 11 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-4975
SELECT ( - COUNT ( * ) ) * + 93 + - 11 AS col1
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4976
SELECT ALL CAST( NULL AS DECIMAL ) + + COALESCE ( - - 52, 58, 51 * + CAST( + 37 AS SIGNED ) + 27, + 33 ) + - + 40 * 43 / + 70 * COUNT( * ) + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL CAST ( NULL AS REAL ) + + COALESCE ( - - 52, 58, 51 * + CAST ( + 37 AS INTEGER ) + 27, + 33 ) + - + 40 * 43 / + 70 * COUNT ( * ) + 14 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 50 * 53
----
2650

query I rowsort
SELECT ( + ( + 28 ) ) + 50 col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT 84 * + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-4979
SELECT 84 * + COUNT ( * )
----
84

query III rowsort
SELECT + 1 AS col1, 61 AS col0, 83 AS col1
----
1
61
83

query I rowsort
SELECT DISTINCT + 57 + + 81 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT - ( + SUM( + ( 40 ) ) ) + + NULLIF ( COUNT( DISTINCT + 98 ), + + COALESCE ( + 48, + 28 * 11 + + 17 * + 61 + + 80 - - + SUM( DISTINCT 94 ) * - 65 * 37 ) ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-4982
SELECT - ( + SUM ( + ( 40 ) ) ) + + NULLIF ( COUNT ( DISTINCT + 98 ), + + COALESCE ( + 48, + 28 * 11 + + 17 * + 61 + + 80 - - + SUM ( DISTINCT 94 ) * - 65 * 37 ) ) col0
----
-39

query II rowsort
SELECT 56 AS col2, 31 AS col2
----
56
31

query II rowsort
SELECT ALL - - 42, - 71 col2
----
42
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL - COUNT( 0 ) + - MIN( ALL + ( 12 ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - COUNT ( 0 ) + - MIN ( ALL + ( 12 ) ) AS col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4986
SELECT - 0 + + - 95 DIV - + 69 DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4986
SELECT - 0 + + - 95 / - + 69 / + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 53 * + 29 col1
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT 72 * 66 * + 20 * - COALESCE ( - 16, - 19 * - COUNT( * ) + 91 ) + + - 89
----
1520551

skipif mysql # not compatible
query I rowsort label-4988
SELECT 72 * 66 * + 20 * - COALESCE ( - 16, - 19 * - COUNT ( * ) + 91 ) + + - 89
----
1520551

query I rowsort
SELECT ALL NULLIF ( + + 26, - 92 )
----
26

query II rowsort
SELECT CASE + 35 WHEN + - ( - 43 ) THEN NULL WHEN - 18 / 33 THEN - 79 ELSE NULL END, 52 * + + 99 AS col2
----
NULL
5148

query I rowsort
SELECT DISTINCT 54 * - - 78 col1
----
4212

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL + MIN( - 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + MIN ( - 44 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4993
SELECT + CAST( NULL AS SIGNED ) * 81 * - 27 * + + 66 * - - COALESCE ( + COUNT( * ), - 87 ), 79 DIV 5 + + COUNT( ALL - + 15 ) AS col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-4993
SELECT + CAST ( NULL AS INTEGER ) * 81 * - 27 * + + 66 * - - COALESCE ( + COUNT ( * ), - 87 ), 79 / 5 + + COUNT ( ALL - + 15 ) AS col2
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL + - MIN( 81 ) * + 97 AS col0
----
-7857

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + - MIN ( 81 ) * + 97 AS col0
----
-7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT DISTINCT COALESCE ( - CAST( - 93 AS SIGNED ), + ( - 61 ) )
----
93

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT COALESCE ( - CAST ( - 93 AS INTEGER ), + ( - 61 ) )
----
93

query I rowsort
SELECT 5 + + 26
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT 44 + - COUNT( DISTINCT - 20 ) - + MIN( DISTINCT + 79 )
----
-36

skipif mysql # not compatible
query I rowsort label-4997
SELECT 44 + - COUNT ( DISTINCT - 20 ) - + MIN ( DISTINCT + 79 )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4998
SELECT 15 * 76 DIV 16
----
71

skipif mysql # not compatible
query I rowsort label-4998
SELECT 15 * 76 / 16
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4999
SELECT 50 * CAST( NULL AS SIGNED ), 88 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-4999
SELECT 50 * CAST ( NULL AS INTEGER ), 88 AS col0
----
NULL
88

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5000
SELECT 21 + - CAST( NULL AS DECIMAL ), 85 + 25 AS col0
----
NULL
110

skipif mysql # not compatible
query II rowsort label-5000
SELECT 21 + - CAST ( NULL AS REAL ), 85 + 25 AS col0
----
NULL
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT 30 + + + 73 + + + CAST( - 6 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-5001
SELECT 30 + + + 73 + + + CAST ( - 6 AS INTEGER )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5002
SELECT 69 DIV + 20 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5002
SELECT 69 / + 20 AS col0
----
3

query I rowsort
SELECT 40 + - + ( + 50 )
----
-10

query I rowsort
SELECT ALL 97 * - + 32 AS col2
----
-3104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5005
SELECT DISTINCT - 81 DIV + SUM( ALL - - 4 )
----
-20

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT - 81 / + SUM ( ALL - - 4 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL + ( - 53 ) + - MIN( DISTINCT - 15 ) + + + 60 + - 32 col2
----
-10

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL + ( - 53 ) + - MIN ( DISTINCT - 15 ) + + + 60 + - 32 col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT 49 DIV COUNT( * ) * + 62
----
3038

skipif mysql # not compatible
query I rowsort label-5007
SELECT 49 / COUNT ( * ) * + 62
----
3038

query I rowsort
SELECT 55 * 75
----
4125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5009
SELECT MIN( ALL - + 86 ) AS col0, 23 DIV 95 col2
----
-86
0

skipif mysql # not compatible
query II rowsort label-5009
SELECT MIN ( ALL - + 86 ) AS col0, 23 / 95 col2
----
-86
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5010
SELECT DISTINCT 31 DIV - 86 * - 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT 31 / - 86 * - 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL SUM( ALL + 51 ) + + 90 + - + ( + - ( 58 ) ) AS col0
----
199

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL SUM ( ALL + 51 ) + + 90 + - + ( + - ( 58 ) ) AS col0
----
199

query I rowsort
SELECT ALL + 68 + 73 * - 61
----
-4385

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT - CASE + - SUM( + 99 ) WHEN 92 THEN - 24 + - + NULLIF ( + 40, + + 76 ) + + 36 ELSE NULL END * + COUNT( * ) * + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT - CASE + - SUM ( + 99 ) WHEN 92 THEN - 24 + - + NULLIF ( + 40, + + 76 ) + + 36 ELSE NULL END * + COUNT ( * ) * + 78 AS col0
----
NULL

query I rowsort
SELECT ALL 54 * 92 AS col1
----
4968

query I rowsort
SELECT + COALESCE ( - 10, + 37 ) * 54 + + - 45 AS col2
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL - + ( - SUM( ALL - - 1 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - + ( - SUM ( ALL - - 1 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT + MIN( ALL - 58 ) - + 50 * - - 34 * + - ( + + 92 ) + ( - - SUM( ALL - 45 ) )
----
156297

skipif mysql # not compatible
query I rowsort label-5017
SELECT + MIN ( ALL - 58 ) - + 50 * - - 34 * + - ( + + 92 ) + ( - - SUM ( ALL - 45 ) )
----
156297

onlyif mysql # DIV for integer division: 
query I rowsort label-5018
SELECT NULLIF ( 61, 29 ) * + 96 + 3 * - - 91 DIV + 90 col0
----
5859

skipif mysql # not compatible
query I rowsort label-5018
SELECT NULLIF ( 61, 29 ) * + 96 + 3 * - - 91 / + 90 col0
----
5859

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT + 86 * + 52 * - COUNT( * ) * + ( - CASE + 23 WHEN - 3 THEN NULL WHEN - - 47 THEN NULL ELSE - + 93 END ) + + + 27
----
-415869

skipif mysql # not compatible
query I rowsort label-5019
SELECT + 86 * + 52 * - COUNT ( * ) * + ( - CASE + 23 WHEN - 3 THEN NULL WHEN - - 47 THEN NULL ELSE - + 93 END ) + + + 27
----
-415869

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT + 16 DIV 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5020
SELECT + 16 / 51 AS col1
----
0

query I rowsort
SELECT - 22 + 24 * 5 + 25
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT - 98 * COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-5022
SELECT - 98 * COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL - 94 * - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL - 94 * - COUNT ( * )
----
94

query I rowsort
SELECT + 68 + - + 28 + - 69
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5025
SELECT ALL 63 col2, - 5 + - CAST( 30 AS SIGNED )
----
63
-35

skipif mysql # not compatible
query II rowsort label-5025
SELECT ALL 63 col2, - 5 + - CAST ( 30 AS INTEGER )
----
63
-35

query I rowsort
SELECT DISTINCT 33 + + - 65
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT ALL NULLIF ( 9, + 70 * - 65 ) AS col0, + COUNT( * )
----
9
1

skipif mysql # not compatible
query II rowsort label-5027
SELECT ALL NULLIF ( 9, + 70 * - 65 ) AS col0, + COUNT ( * )
----
9
1

query I rowsort
SELECT - 62 * + 69
----
-4278

query I rowsort
SELECT DISTINCT ( - + 11 ) + 80 * 91 * - 69 col1
----
-502331

query I rowsort
SELECT + 26 * 78 * 69 * + 64 AS col0
----
8955648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT - 32 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT - 32 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 50 + 36
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-5033
SELECT - COALESCE ( - + 31, + COUNT( * ) * - COUNT( * ) + - + 18 ) - + - 36 AS col1, + 93 AS col0
----
67
93

skipif mysql # not compatible
query II rowsort label-5033
SELECT - COALESCE ( - + 31, + COUNT ( * ) * - COUNT ( * ) + - + 18 ) - + - 36 AS col1, + 93 AS col0
----
67
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5034
SELECT + 39 AS col1, COUNT( * )
----
39
1

skipif mysql # not compatible
query II rowsort label-5034
SELECT + 39 AS col1, COUNT ( * )
----
39
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT ( + CAST( 53 AS SIGNED ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5035
SELECT ( + CAST ( 53 AS INTEGER ) ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5036
SELECT ALL COUNT( ALL 9 ) * COUNT( * ) - 91 + COALESCE ( MIN( 14 ), - 27 ) AS col0, 28 + 51 - - CAST( + ( - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS DECIMAL ) AS col2
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-5036
SELECT ALL COUNT ( ALL 9 ) * COUNT ( * ) - 91 + COALESCE ( MIN ( 14 ), - 27 ) AS col0, 28 + 51 - - CAST ( + ( - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS REAL ) AS col2
----
-76
NULL

query I rowsort
SELECT ( + 87 ) * 27 - + 2
----
2347

onlyif mysql # aggregate syntax: 
query II rowsort label-5038
SELECT + 2 * - + COUNT( * ) * 55, ( - - COUNT( * ) ) AS col0
----
-110
1

skipif mysql # not compatible
query II rowsort label-5038
SELECT + 2 * - + COUNT ( * ) * 55, ( - - COUNT ( * ) ) AS col0
----
-110
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT ALL + COALESCE ( - - 52, + ( - + COUNT( * ) ) * 12, 70 ) col1
----
52

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL + COALESCE ( - - 52, + ( - + COUNT ( * ) ) * 12, 70 ) col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5040
SELECT + 0 AS col1, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-5040
SELECT + 0 AS col1, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5041
SELECT DISTINCT + 16 AS col2, - 77 * 57 * - 82 * ( + - COUNT( * ) )
----
16
-359898

skipif mysql # not compatible
query II rowsort label-5041
SELECT DISTINCT + 16 AS col2, - 77 * 57 * - 82 * ( + - COUNT ( * ) )
----
16
-359898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5042
SELECT - 45 AS col0, CAST( - 25 AS SIGNED ) * + - COUNT( * ) - - 4 * - 29
----
-45
-91

skipif mysql # not compatible
query II rowsort label-5042
SELECT - 45 AS col0, CAST ( - 25 AS INTEGER ) * + - COUNT ( * ) - - 4 * - 29
----
-45
-91

query I rowsort
SELECT ALL - - 87 * - - 90
----
7830

query I rowsort
SELECT - 98 + + 14 col1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT + - 36 DIV + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5045
SELECT + - 36 / + 38 AS col2
----
0

query I rowsort
SELECT - + 25 * + + 69 AS col2
----
-1725

query II rowsort
SELECT DISTINCT + - 47, 35 + 99 AS col2
----
-47
134

query I rowsort
SELECT - - 50 * 91 AS col2
----
4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5049
SELECT + - 86 * MIN( DISTINCT - + 80 ) + + ( + 78 ) + - + 54 * + COALESCE ( + - 90, CAST( NULL AS SIGNED ) ) * 6 * + COALESCE ( - CAST( NULL AS SIGNED ), 3 + - - SUM( 44 ) ) + - 45, + 61 col1
----
1377433
61

skipif mysql # not compatible
query II rowsort label-5049
SELECT + - 86 * MIN ( DISTINCT - + 80 ) + + ( + 78 ) + - + 54 * + COALESCE ( + - 90, CAST ( NULL AS INTEGER ) ) * 6 * + COALESCE ( - CAST ( NULL AS INTEGER ), 3 + - - SUM ( 44 ) ) + - 45, + 61 col1
----
1377433
61

query I rowsort
SELECT DISTINCT + ( 47 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5051
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0, - 80 + 90 + - 18 col0
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-5051
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0, - 80 + 90 + - 18 col0
----
NULL
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT COALESCE ( + - 78, + COUNT( * ) ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5052
SELECT COALESCE ( + - 78, + COUNT ( * ) ) AS col2
----
-78

query I rowsort
SELECT ALL 15 * 22 AS col2
----
330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5054
SELECT ALL - 29 * + 13 * - + 37 * - CASE - + 59 WHEN COUNT( * ) THEN NULL ELSE - 31 END * - 66 + + COUNT( * ) * NULLIF ( - 94, + + CAST( + + 45 AS SIGNED ) ), - 86 + - 44 DIV - COUNT( * ) + + 92 AS col2
----
-28539748
50

skipif mysql # not compatible
query II rowsort label-5054
SELECT ALL - 29 * + 13 * - + 37 * - CASE - + 59 WHEN COUNT ( * ) THEN NULL ELSE - 31 END * - 66 + + COUNT ( * ) * NULLIF ( - 94, + + CAST ( + + 45 AS INTEGER ) ), - 86 + - 44 / - COUNT ( * ) + + 92 AS col2
----
-28539748
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT + + 18 * 92 * + 3 * - MAX( + + ( + ( + 20 ) ) ) AS col0
----
-99360

skipif mysql # not compatible
query I rowsort label-5055
SELECT + + 18 * 92 * + 3 * - MAX ( + + ( + ( + 20 ) ) ) AS col0
----
-99360

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT + + 60 + - COUNT( * ) * + + 56 + 17 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5056
SELECT + + 60 + - COUNT ( * ) * + + 56 + 17 AS col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5057
SELECT - NULLIF ( + + ( MIN( + 9 ) ), - 64 * ( + COALESCE ( + 4, 73 * + 71 / - - 96 + + NULLIF ( + + 91, - 74 ) / + 91 ) ) ) col0, 77
----
-9
77

skipif mysql # not compatible
query II rowsort label-5057
SELECT - NULLIF ( + + ( MIN ( + 9 ) ), - 64 * ( + COALESCE ( + 4, 73 * + 71 / - - 96 + + NULLIF ( + + 91, - 74 ) / + 91 ) ) ) col0, 77
----
-9
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT COUNT( * ) + 29 * - 64 AS col0
----
-1855

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT COUNT ( * ) + 29 * - 64 AS col0
----
-1855

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL 92 + + + 32 + + 1 - MAX( 41 ) + - 68 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL 92 + + + 32 + + 1 - MAX ( 41 ) + - 68 AS col0
----
16

query I rowsort
SELECT ALL CASE - 78 WHEN + 11 THEN - + 10 END + + 35 AS col2
----
NULL

query I rowsort
SELECT ALL 27 + + 82 AS col2
----
109

query I rowsort
SELECT + 56 - + 85 AS col0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT ALL 20 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL 20 / + 22
----
0

query I rowsort
SELECT ALL 14 + + 90
----
104

query I rowsort
SELECT DISTINCT + 91 * + 89
----
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT ALL 78 - - ( COUNT( * ) ) + - ( - COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL 78 - - ( COUNT ( * ) ) + - ( - COUNT ( * ) )
----
80

query I rowsort
SELECT ALL ( 69 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT - CAST( NULL AS SIGNED ) + - + ( 81 ) * 92 * - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT - CAST ( NULL AS INTEGER ) + - + ( 81 ) * 92 * - 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT DISTINCT 13 - - 1 + - 90 - - COUNT( * ), - COUNT( * ) * - - 76 * - COUNT( * ) + - COUNT( + + 3 ) AS col0
----
-75
75

skipif mysql # not compatible
query II rowsort label-5069
SELECT DISTINCT 13 - - 1 + - 90 - - COUNT ( * ), - COUNT ( * ) * - - 76 * - COUNT ( * ) + - COUNT ( + + 3 ) AS col0
----
-75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5070
SELECT DISTINCT + COALESCE ( 87, ( - 58 ) * 52, SUM( DISTINCT - 66 ) * - - COUNT( * ) * MAX( DISTINCT + 65 ) * - 88 * - COUNT( * ) * 42 - ( - 39 ) ), 13 * + - 33 + 95 + - 57 col0
----
87
-391

skipif mysql # not compatible
query II rowsort label-5070
SELECT DISTINCT + COALESCE ( 87, ( - 58 ) * 52, SUM ( DISTINCT - 66 ) * - - COUNT ( * ) * MAX ( DISTINCT + 65 ) * - 88 * - COUNT ( * ) * 42 - ( - 39 ) ), 13 * + - 33 + 95 + - 57 col0
----
87
-391

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5071
SELECT - - 66 DIV - 67 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5071
SELECT - - 66 / - 67 + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5072
SELECT ALL + CASE 32 WHEN + + CAST( - - 84 AS SIGNED ) - 97 THEN NULL WHEN NULLIF ( - 48, 82 ) THEN NULL ELSE 46 END AS col0, NULLIF ( + COUNT( * ), - 95 ) + + 79 + + 19 AS col0
----
46
99

skipif mysql # not compatible
query II rowsort label-5072
SELECT ALL + CASE 32 WHEN + + CAST ( - - 84 AS INTEGER ) - 97 THEN NULL WHEN NULLIF ( - 48, 82 ) THEN NULL ELSE 46 END AS col0, NULLIF ( + COUNT ( * ), - 95 ) + + 79 + + 19 AS col0
----
46
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT + MIN( DISTINCT + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-5073
SELECT + MIN ( DISTINCT + 44 )
----
44

query I rowsort
SELECT - + 65 + + 4 * - - 43 * + 30 AS col0
----
5095

query I rowsort
SELECT - 5 * + 22 col0
----
-110

query I rowsort
SELECT - CASE - 42 WHEN + + 19 * - 95 - - 38 / 54 + + 87 THEN - ( + 98 ) ELSE NULL END * 4 + - 61 - 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5077
SELECT + 93 DIV - ( + + SUM( DISTINCT 62 ) ) + - COUNT( * ) + 33 * - 42 * - 31 * - ( 80 ) AS col2
----
-3437282

skipif mysql # not compatible
query I rowsort label-5077
SELECT + 93 / - ( + + SUM ( DISTINCT 62 ) ) + - COUNT ( * ) + 33 * - 42 * - 31 * - ( 80 ) AS col2
----
-3437282

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT DISTINCT + 52 * 12 + + + 12 * - + CASE + 34 WHEN + - 2 THEN 74 / + COUNT( * ) * 73 + + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT + 52 * 12 + + + 12 * - + CASE + 34 WHEN + - 2 THEN 74 / + COUNT ( * ) * 73 + + 48 END
----
NULL

query I rowsort
SELECT ( - 77 ) * 92 + - 75 + + - 6
----
-7165

query I rowsort
SELECT ALL - NULLIF ( + - 58, - - 81 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT 37 DIV 43 + - 89 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5081
SELECT 37 / 43 + - 89 AS col1
----
-89

query I rowsort
SELECT DISTINCT + 42 + - + 25
----
17

query I rowsort
SELECT 26 * + - 10 + + 43 + - 36 * 92 col0
----
-3529

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT 75 - - COUNT( - 69 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5084
SELECT 75 - - COUNT ( - 69 ) AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5085
SELECT ALL - 5 AS col2, 86 * - 22 * - 51 / - + COALESCE ( + + NULLIF ( + COALESCE ( COUNT( * ), - COUNT( * ) ), + - 20 + 35 + + 58 + 54 ), 90 ) * + 87 * - CAST( NULL AS DECIMAL ) - - COUNT( * ) * + - 6 col0
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-5085
SELECT ALL - 5 AS col2, 86 * - 22 * - 51 / - + COALESCE ( + + NULLIF ( + COALESCE ( COUNT ( * ), - COUNT ( * ) ), + - 20 + 35 + + 58 + 54 ), 90 ) * + 87 * - CAST ( NULL AS REAL ) - - COUNT ( * ) * + - 6 col0
----
-5
NULL

query I rowsort
SELECT ALL + ( + 63 ) + - - 82 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL - COUNT( * ) + - + 17 col2
----
-18

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL - COUNT ( * ) + - + 17 col2
----
-18

query II rowsort
SELECT - 61 AS col2, ( + + ( 56 ) ) AS col2
----
-61
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5089
SELECT MIN( ALL + 66 ) + + + NULLIF ( - 81, 73 + 52 + + 81 ) + - CAST( - 38 AS SIGNED ) DIV 50 DIV - - MAX( + 3 )
----
-15

skipif mysql # not compatible
query I rowsort label-5089
SELECT MIN ( ALL + 66 ) + + + NULLIF ( - 81, 73 + 52 + + 81 ) + - CAST ( - 38 AS INTEGER ) / 50 / - - MAX ( + 3 )
----
-15

query I rowsort
SELECT DISTINCT 79 * + - 24 col1
----
-1896

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL 14 + 65 + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL 14 + 65 + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT MAX( ALL NULLIF ( + 0, 41 ) ) * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5092
SELECT MAX ( ALL NULLIF ( + 0, 41 ) ) * COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5093
SELECT 86, 45 + CAST( + - 27 AS DECIMAL ) + - 72 * + - NULLIF ( + 69, + + 96 ) * + + CASE WHEN NULL = NULL THEN COUNT( * ) END * - 97 * 66 AS col1
----
86
NULL

skipif mysql # not compatible
query II rowsort label-5093
SELECT 86, 45 + CAST ( + - 27 AS REAL ) + - 72 * + - NULLIF ( + 69, + + 96 ) * + + CASE WHEN NULL = NULL THEN COUNT ( * ) END * - 97 * 66 AS col1
----
86
NULL

query I rowsort
SELECT CASE + 5 WHEN - 70 - 0 + - - 65 + + ( - + 77 ) THEN NULL ELSE - - NULLIF ( + 38, - 68 / + 70 + - 56 ) END + 5 + + - 43 * + 50
----
-2107

query I rowsort
SELECT ALL 78 - - 99
----
177

query I rowsort
SELECT ALL 60 - + 52 AS col0
----
8

query II rowsort
SELECT 78, 88 AS col0
----
78
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT DISTINCT 66 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT 66 / + + 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT - COUNT( 67 ) * - COUNT( * ) * 6 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5099
SELECT - COUNT ( 67 ) * - COUNT ( * ) * 6 AS col2
----
6

query I rowsort
SELECT 72 * - 76 AS col1
----
-5472

query I rowsort
SELECT ALL 20 * 31 * - 31
----
-19220

onlyif mysql # DIV for integer division: 
query I rowsort label-5102
SELECT + 59 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5102
SELECT + 59 / 73 AS col2
----
0

query I rowsort
SELECT + 37 * + 33 * + - 64 - + + 56 AS col1
----
-78200

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL + - 20 * - + 35 * COALESCE ( + 0, + ( COUNT( * ) ) * + 30 * CASE + 31 WHEN 97 * - 69 - + 47 + - - 39 + + 6 * 98 / NULLIF ( + - 83, + 10 ) THEN + - ( - 77 ) WHEN + 38 THEN 56 ELSE 56 + - 34 END ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL + - 20 * - + 35 * COALESCE ( + 0, + ( COUNT ( * ) ) * + 30 * CASE + 31 WHEN 97 * - 69 - + 47 + - - 39 + + 6 * 98 / NULLIF ( + - 83, + 10 ) THEN + - ( - 77 ) WHEN + 38 THEN 56 ELSE 56 + - 34 END ) AS col1
----
0

query I rowsort
SELECT 95 * 17 * 51
----
82365

query II rowsort
SELECT DISTINCT - - 4, 40 AS col2
----
4
40

query I rowsort
SELECT ALL 9 * - - 17
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL - 4 + - 33 * - + 85 * + + ( + + MIN( DISTINCT - 90 ) )
----
-252454

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - 4 + - 33 * - + 85 * + + ( + + MIN ( DISTINCT - 90 ) )
----
-252454

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5109
SELECT 93 * - 25 + - CAST( + 33 AS SIGNED ) - - - 35
----
-2393

skipif mysql # not compatible
query I rowsort label-5109
SELECT 93 * - 25 + - CAST ( + 33 AS INTEGER ) - - - 35
----
-2393

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT 21 + - 74 + 61 DIV 22 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-5110
SELECT 21 + - 74 + 61 / 22 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5111
SELECT - + 75 * 90 - - 79 + - COUNT( ALL + 62 ), 55 + 32 AS col0
----
-6672
87

skipif mysql # not compatible
query II rowsort label-5111
SELECT - + 75 * 90 - - 79 + - COUNT ( ALL + 62 ), 55 + 32 AS col0
----
-6672
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5112
SELECT + - COALESCE ( - 20, + 79 DIV - + COUNT( * ) + + 67 + - 86 + + CASE + 85 WHEN + 45 + - 57 THEN NULL WHEN 52 * + 87 THEN - - SUM( + + 55 ) * + + 17 END + + 0 )
----
20

skipif mysql # not compatible
query I rowsort label-5112
SELECT + - COALESCE ( - 20, + 79 / - + COUNT ( * ) + + 67 + - 86 + + CASE + 85 WHEN + 45 + - 57 THEN NULL WHEN 52 * + 87 THEN - - SUM ( + + 55 ) * + + 17 END + + 0 )
----
20

query I rowsort
SELECT ALL + 46 * - 26 AS col2
----
-1196

onlyif mysql # DIV for integer division: 
query I rowsort label-5114
SELECT DISTINCT 11 + + COALESCE ( NULLIF ( 84, - ( + 33 ) + 31 ), + - 68, - 85 DIV - 11 ) + 58
----
153

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT 11 + + COALESCE ( NULLIF ( 84, - ( + 33 ) + 31 ), + - 68, - 85 / - 11 ) + 58
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL + 77 + - - CASE 86 WHEN - 92 THEN + - SUM( + 68 ) END * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL + 77 + - - CASE 86 WHEN - 92 THEN + - SUM ( + 68 ) END * + 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5116
SELECT DISTINCT - 54 DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT - 54 / 70 AS col1
----
0

query I rowsort
SELECT ALL - 8 + + + 87 * + + 41 AS col2
----
3559

query I rowsort
SELECT ALL - NULLIF ( - 31, + 67 * + 19 / - + 75 ) * + + 65
----
2015

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5119
SELECT DISTINCT + 81 + + MAX( DISTINCT 73 ) + - 17 DIV ( - 71 ) AS col0, 31, - 34 AS col1
----
154
31
-34

skipif mysql # not compatible
query III rowsort label-5119
SELECT DISTINCT + 81 + + MAX ( DISTINCT 73 ) + - 17 / ( - 71 ) AS col0, 31, - 34 AS col1
----
154
31
-34

query I rowsort
SELECT 69 + + 89
----
158

query I rowsort
SELECT DISTINCT - 18 * - - 93 AS col0
----
-1674

query I rowsort
SELECT DISTINCT + 63 + + 96 + - + 15
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT 49 * - COUNT( * ) * - + 18
----
882

skipif mysql # not compatible
query I rowsort label-5123
SELECT 49 * - COUNT ( * ) * - + 18
----
882

onlyif mysql # aggregate syntax: 
query II rowsort label-5124
SELECT - 17 AS col1, + 93 * + - 89 * + ( MIN( 33 ) ) + + - 96
----
-17
-273237

skipif mysql # not compatible
query II rowsort label-5124
SELECT - 17 AS col1, + 93 * + - 89 * + ( MIN ( 33 ) ) + + - 96
----
-17
-273237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT ALL + 45 - - 6 + - 27 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + 45 - - 6 + - 27 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 65 + + - 49 col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5127
SELECT DISTINCT + 64 - 32 + 29 DIV - 91 + 84
----
116

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT + 64 - 32 + 29 / - 91 + 84
----
116

query I rowsort
SELECT 75 + - + 45 + - - 5 * - CASE + 62 WHEN - ( + 61 ) THEN - 98 + + 93 + + 17 - + 76 END
----
NULL

query I rowsort
SELECT ALL + 46 - - 91 AS col0
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT DISTINCT MAX( ALL - - 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT MAX ( ALL - - 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT NULLIF ( + 9, COUNT( * ) * - - 78 + 58 ) * 35, + 91 + 78 AS col2
----
315
169

skipif mysql # not compatible
query II rowsort label-5131
SELECT NULLIF ( + 9, COUNT ( * ) * - - 78 + 58 ) * 35, + 91 + 78 AS col2
----
315
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5132
SELECT - 93 AS col0, CASE + AVG ( ALL + + 1 ) WHEN + COUNT( * ) THEN + CAST( NULL AS SIGNED ) * + - 18 + + 92 END
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-5132
SELECT - 93 AS col0, CASE + AVG ( ALL + + 1 ) WHEN + COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) * + - 18 + + 92 END
----
-93
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5133
SELECT ALL 46, 97 - - COUNT( DISTINCT - 82 ) AS col2
----
46
98

skipif mysql # not compatible
query II rowsort label-5133
SELECT ALL 46, 97 - - COUNT ( DISTINCT - 82 ) AS col2
----
46
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT SUM( ALL - 66 ) * - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-5134
SELECT SUM ( ALL - 66 ) * - COUNT ( * )
----
66

query I rowsort
SELECT ALL - NULLIF ( - 58, + 23 ) AS col2
----
58

query I rowsort
SELECT + + 88 + - 75
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT DISTINCT - - 38 * - 17 * COALESCE ( 66, + 28, - COUNT( * ) * 67 * 50 + + 57 ) AS col0
----
-42636

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT - - 38 * - 17 * COALESCE ( 66, + 28, - COUNT ( * ) * 67 * 50 + + 57 ) AS col0
----
-42636

query II rowsort
SELECT DISTINCT - 38 col2, - 73
----
-38
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT ALL - - 85 * + COUNT( * ) + - 26 + - - 11 * - 20 * 86 + - + 96 * - 28 * + COUNT( * ) * - - 69
----
166611

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL - - 85 * + COUNT ( * ) + - 26 + - - 11 * - 20 * 86 + - + 96 * - 28 * + COUNT ( * ) * - - 69
----
166611

query II rowsort
SELECT 59, - 73 * - + 95 AS col0
----
59
6935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT + MIN( 17 ) DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT + MIN ( 17 ) / + 51
----
0

query I rowsort
SELECT + 51 + + 25 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL - 64 * - + 40 + - + COUNT( * ) AS col2
----
2559

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - 64 * - + 40 + - + COUNT ( * ) AS col2
----
2559

query I rowsort
SELECT + + 14 * - 72 + - - 49
----
-959

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5145
SELECT + - COUNT( * ) AS col0, 62 DIV + 18 + - 32 AS col1
----
-1
-29

skipif mysql # not compatible
query II rowsort label-5145
SELECT + - COUNT ( * ) AS col0, 62 / + 18 + - 32 AS col1
----
-1
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT ALL + COUNT( * ) * - 35 + - 69
----
-104

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL + COUNT ( * ) * - 35 + - 69
----
-104

query I rowsort
SELECT + 26 + - 16 AS col0
----
10

query I rowsort
SELECT + - 12 * 43 + - 66
----
-582

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL + 27 * COUNT( * ) + - + 34 + 57 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + 27 * COUNT ( * ) + - + 34 + 57 AS col1
----
50

query I rowsort
SELECT ALL 9 * - 8 AS col1
----
-72

onlyif mysql # DIV for integer division: 
query II rowsort label-5151
SELECT ALL + 63 * + 39 * 13 + 90 AS col1, 98 DIV + + 9 + - 32
----
32031
-22

skipif mysql # not compatible
query II rowsort label-5151
SELECT ALL + 63 * + 39 * 13 + 90 AS col1, 98 / + + 9 + - 32
----
32031
-22

query I rowsort
SELECT ALL 4 * + 55
----
220

query I rowsort
SELECT + 10 - - 77 + - - 14
----
101

query II rowsort
SELECT - 15 * - 90 AS col0, 90 * - 10 AS col2
----
1350
-900

query I rowsort
SELECT DISTINCT 83 * + 46 - - 2 AS col2
----
3820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5156
SELECT + CASE - + 27 WHEN - 20 THEN - 84 WHEN + COUNT( * ) / 81 THEN NULL WHEN - - CAST( NULL AS SIGNED ) - - - CAST( ( - 34 ) AS SIGNED ) * + ( + 71 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT + CASE - + 27 WHEN - 20 THEN - 84 WHEN + COUNT ( * ) / 81 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) - - - CAST ( ( - 34 ) AS INTEGER ) * + ( + 71 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT + 80 * + + COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5157
SELECT + 80 * + + COUNT ( * ) AS col1
----
80

query I rowsort
SELECT - 85 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ( - - 94 ) * + + 98 + - COUNT( * )
----
9211

skipif mysql # not compatible
query I rowsort label-5159
SELECT ( - - 94 ) * + + 98 + - COUNT ( * )
----
9211

query I rowsort
SELECT DISTINCT - 87 * + + 65 * - 42 * - + 75
----
-17813250

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT ALL 55 DIV 54
----
1

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL 55 / 54
----
1

query I rowsort
SELECT ALL - 69 * + 61 col0
----
-4209

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT ALL CASE + COUNT( * ) WHEN 32 + + - 38 THEN NULL WHEN 4 + 80 * 27 THEN NULL ELSE - + 75 - + - 34 END
----
-41

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL CASE + COUNT ( * ) WHEN 32 + + - 38 THEN NULL WHEN 4 + 80 * 27 THEN NULL ELSE - + 75 - + - 34 END
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT - 72 DIV + + 2 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5164
SELECT - 72 / + + 2 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5165
SELECT DISTINCT + 24 * + CASE + CAST( NULL AS SIGNED ) WHEN + - 89 THEN - - 49 ELSE NULL END, COUNT( * ) col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5165
SELECT DISTINCT + 24 * + CASE + CAST ( NULL AS INTEGER ) WHEN + - 89 THEN - - 49 ELSE NULL END, COUNT ( * ) col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT DISTINCT CASE - COUNT( * ) WHEN + 96 THEN + + 21 WHEN - 95 THEN + 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT CASE - COUNT ( * ) WHEN + 96 THEN + + 21 WHEN - 95 THEN + 65 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 64 + - + 27 AS col0, - 44 AS col0
----
37
-44

query I rowsort
SELECT DISTINCT + COALESCE ( - - 58, - 13 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT - 52 + - COUNT( + - 62 ) * - 13 + + - CASE + COUNT( * ) WHEN - AVG ( ALL - 86 ) * 57 - - + ( + + ( + 42 ) ) THEN NULL ELSE - 97 END
----
58

skipif mysql # not compatible
query I rowsort label-5169
SELECT - 52 + - COUNT ( + - 62 ) * - 13 + + - CASE + COUNT ( * ) WHEN - AVG ( ALL - 86 ) * 57 - - + ( + + ( + 42 ) ) THEN NULL ELSE - 97 END
----
58

query I rowsort
SELECT ALL + 71 + + 57 AS col1
----
128

query I rowsort
SELECT DISTINCT - 12 * 27 col0
----
-324

query I rowsort
SELECT + + 1 * + ( - - 39 ) AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5173
SELECT - + SUM( - 32 ) - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT - + SUM ( - 32 ) - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5174
SELECT - - 38 DIV + + 48 - - + 12 * + 25
----
300

skipif mysql # not compatible
query I rowsort label-5174
SELECT - - 38 / + + 48 - - + 12 * + 25
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5175
SELECT ALL + - ( + MAX( + CAST( NULL AS SIGNED ) ) ) / - 79 + + CASE - 12 WHEN + 18 * + + 91 THEN + - 22 / - ( - - MIN( + 70 ) ) * + 63 + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL + - ( + MAX ( + CAST ( NULL AS INTEGER ) ) ) / - 79 + + CASE - 12 WHEN + 18 * + + 91 THEN + - 22 / - ( - - MIN ( + 70 ) ) * + 63 + + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT - - COUNT( * ) * - 8
----
-8

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT - - COUNT ( * ) * - 8
----
-8

query I rowsort
SELECT + 15 + - 35 + + - 80
----
-100

query II rowsort
SELECT DISTINCT - 19 * - + 19 col1, 4 * + + 74 * + + COALESCE ( + - 11, - 12, - ( 90 ) ) AS col2
----
361
-3256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5179
SELECT ALL - + 58 DIV - COALESCE ( + - ( ( - + 56 ) ), - CASE - 98 WHEN - - COUNT( + + 12 ) * + 40 + COUNT( * ) + 98 + - 40 + 1 + - 70 THEN + COUNT( * ) + 23 WHEN + 88 THEN NULL END ) + 48 + + CAST( + 44 AS SIGNED ) DIV + - MAX( DISTINCT - 47 )
----
49

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL - + 58 / - COALESCE ( + - ( ( - + 56 ) ), - CASE - 98 WHEN - - COUNT ( + + 12 ) * + 40 + COUNT ( * ) + 98 + - 40 + 1 + - 70 THEN + COUNT ( * ) + 23 WHEN + 88 THEN NULL END ) + 48 + + CAST ( + 44 AS INTEGER ) / + - MAX ( DISTINCT - 47 )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5180
SELECT DISTINCT + - CASE + 24 WHEN - CAST( + 25 AS SIGNED ) * 52 THEN + 63 * - 96 WHEN + 30 THEN - 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT + - CASE + 24 WHEN - CAST ( + 25 AS INTEGER ) * 52 THEN + 63 * - 96 WHEN + 30 THEN - 87 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5181
SELECT 80 DIV 67 + - 2 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5181
SELECT 80 / 67 + - 2 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5182
SELECT 75 * + CAST( NULL AS SIGNED ) * + 86 - + + COALESCE ( - + 35, CAST( + - COUNT( * ) AS SIGNED ) * - 7 + - + CASE + 69 WHEN - 2 THEN + - 37 / 70 * - CAST( + COALESCE ( + COUNT( * ), - COUNT( * ), + 83 ) AS SIGNED ) + - 44 + 44 * - + COUNT( * ) + + COALESCE ( 80, 35 ) ELSE NULL END + + + 55 ) * AVG ( DISTINCT - - CAST( + 5 AS SIGNED ) ) + 56 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT 75 * + CAST ( NULL AS INTEGER ) * + 86 - + + COALESCE ( - + 35, CAST ( + - COUNT ( * ) AS INTEGER ) * - 7 + - + CASE + 69 WHEN - 2 THEN + - 37 / 70 * - CAST ( + COALESCE ( + COUNT ( * ), - COUNT ( * ), + 83 ) AS INTEGER ) + - 44 + 44 * - + COUNT ( * ) + + COALESCE ( 80, 35 ) ELSE NULL END + + + 55 ) * AVG ( DISTINCT - - CAST ( + 5 AS INTEGER ) ) + 56 col1
----
NULL

query I rowsort
SELECT - 27 * + 48 * - - 75 AS col1
----
-97200

query I rowsort
SELECT - 86 + + - 51 AS col2
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT CAST( 67 AS SIGNED ) * COUNT( * ) - 27
----
40

skipif mysql # not compatible
query I rowsort label-5185
SELECT CAST ( 67 AS INTEGER ) * COUNT ( * ) - 27
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5186
SELECT DISTINCT 57 DIV - 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5186
SELECT DISTINCT 57 / - 41 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT + CASE - - 0 WHEN - - COUNT( * ) THEN - 4 END * + 50 * 75 * - 80 * + - COALESCE ( + 15, + - 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT + CASE - - 0 WHEN - - COUNT ( * ) THEN - 4 END * + 50 * 75 * - 80 * + - COALESCE ( + 15, + - 82 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5188
SELECT DISTINCT + 0 DIV + 52 DIV 15 * 17 AS col1, + COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-5188
SELECT DISTINCT + 0 / + 52 / 15 * 17 AS col1, + COUNT ( * ) AS col0
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5189
SELECT DISTINCT 60 * - - COUNT( * ) - + COUNT( * ) * + NULLIF ( - CASE COUNT( * ) WHEN + ( - 95 ) THEN NULL WHEN + + 69 * - + COALESCE ( + SUM( ALL - 27 ), + - 40, - 20 ) * + - 18 * CAST( + 12 AS DECIMAL ) THEN NULL WHEN - 32 THEN + 9 * - SUM( - - 73 ) END, + + AVG ( ALL - + 36 ) ) * - 47 / - COUNT( + 76 ) + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT 60 * - - COUNT ( * ) - + COUNT ( * ) * + NULLIF ( - CASE COUNT ( * ) WHEN + ( - 95 ) THEN NULL WHEN + + 69 * - + COALESCE ( + SUM ( ALL - 27 ), + - 40, - 20 ) * + - 18 * CAST ( + 12 AS REAL ) THEN NULL WHEN - 32 THEN + 9 * - SUM ( - - 73 ) END, + + AVG ( ALL - + 36 ) ) * - 47 / - COUNT ( + 76 ) + 85
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5190
SELECT DISTINCT 21 DIV + - COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5190
SELECT DISTINCT 21 / + - COUNT ( * ) AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5191
SELECT + ( - + 6 ) DIV CASE - ( 1 ) WHEN - - 31 + 77 THEN NULL WHEN COALESCE ( + - 35, NULLIF ( - + 6, CAST( - 50 AS SIGNED ) ) + + ( + + COUNT( * ) ) ) THEN NULL ELSE + 75 END AS col2, 89 - - - ( - NULLIF ( + 12, + CAST( NULL AS SIGNED ) + + 2 ) ) AS col2
----
0
101

skipif mysql # not compatible
query II rowsort label-5191
SELECT + ( - + 6 ) / CASE - ( 1 ) WHEN - - 31 + 77 THEN NULL WHEN COALESCE ( + - 35, NULLIF ( - + 6, CAST ( - 50 AS INTEGER ) ) + + ( + + COUNT ( * ) ) ) THEN NULL ELSE + 75 END AS col2, 89 - - - ( - NULLIF ( + 12, + CAST ( NULL AS INTEGER ) + + 2 ) ) AS col2
----
0
101

query I rowsort
SELECT ALL 14 * - 90 AS col0
----
-1260

query I rowsort
SELECT + 38 + - 29 * - 14 col0
----
444

query II rowsort
SELECT DISTINCT 49 * - ( + 0 ) * + 39 AS col1, 90 * 79
----
0
7110

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT + ( - + ( - + MAX( DISTINCT - 72 ) ) )
----
-72

skipif mysql # not compatible
query I rowsort label-5195
SELECT + ( - + ( - + MAX ( DISTINCT - 72 ) ) )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-5196
SELECT COALESCE ( + 72, + - SUM( 75 ), 83, - 70 ), + 48 * - 51 AS col2
----
72
-2448

skipif mysql # not compatible
query II rowsort label-5196
SELECT COALESCE ( + 72, + - SUM ( 75 ), 83, - 70 ), + 48 * - 51 AS col2
----
72
-2448

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT 19 * - COUNT( * ) + 99 + - 85
----
-5

skipif mysql # not compatible
query I rowsort label-5197
SELECT 19 * - COUNT ( * ) + 99 + - 85
----
-5

query I rowsort
SELECT - 96 * 58
----
-5568

query I rowsort
SELECT ALL - 70 * + 27 * - 17 + 72 + - 96 AS col2
----
32106

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT COUNT( DISTINCT + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-5200
SELECT COUNT ( DISTINCT + 73 )
----
1

query II rowsort
SELECT - 90, 92 AS col2
----
-90
92

query I rowsort
SELECT + 84 + 52 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT DISTINCT COUNT( * ) + - + ( - CASE + - 41 WHEN - + 95 * - 47 * - + 72 * - AVG ( + 76 ) THEN NULL WHEN + + 98 THEN - + 78 ELSE NULL END ) + - ( 33 ) * 70 + - - 85 + CASE + 84 WHEN - 54 THEN - - 98 + ( - 49 ) ELSE + + 41 * 79 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT COUNT ( * ) + - + ( - CASE + - 41 WHEN - + 95 * - 47 * - + 72 * - AVG ( + 76 ) THEN NULL WHEN + + 98 THEN - + 78 ELSE NULL END ) + - ( 33 ) * 70 + - - 85 + CASE + 84 WHEN - 54 THEN - - 98 + ( - 49 ) ELSE + + 41 * 79 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 57 + 98 AS col1
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-5205
SELECT 52 col2, + COUNT( * ) * NULLIF ( - COUNT( * ), - 14 + - 76 ) AS col1
----
52
-1

skipif mysql # not compatible
query II rowsort label-5205
SELECT 52 col2, + COUNT ( * ) * NULLIF ( - COUNT ( * ), - 14 + - 76 ) AS col1
----
52
-1

query I rowsort
SELECT 80 + 11
----
91

query I rowsort
SELECT + 6 + - 13
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT ALL + CASE - COUNT( + + CAST( + 89 AS SIGNED ) ) WHEN + COUNT( * ) * + + 58 * - COUNT( * ) - - 20 THEN NULLIF ( COUNT( DISTINCT + + 63 ), - 73 + - 11 ) WHEN - + ( + 52 ) + + + 30 * + - 47 * + 53 THEN - + 68 WHEN MAX( + CASE - 38 WHEN + - CAST( NULL AS SIGNED ) THEN NULL ELSE - 93 END ) THEN + 7 * - + 71 END + + - 95 + 80 * - ( CAST( - 47 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL + CASE - COUNT ( + + CAST ( + 89 AS INTEGER ) ) WHEN + COUNT ( * ) * + + 58 * - COUNT ( * ) - - 20 THEN NULLIF ( COUNT ( DISTINCT + + 63 ), - 73 + - 11 ) WHEN - + ( + 52 ) + + + 30 * + - 47 * + 53 THEN - + 68 WHEN MAX ( + CASE - 38 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 93 END ) THEN + 7 * - + 71 END + + - 95 + 80 * - ( CAST ( - 47 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL + COUNT( - 76 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL + COUNT ( - 76 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT - MAX( + ( + 77 ) ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-5210
SELECT - MAX ( + ( + 77 ) ) col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT ( - 34 ) + + CAST( NULL AS SIGNED ) + - 13 / - 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT ( - 34 ) + + CAST ( NULL AS INTEGER ) + - 13 / - 89 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT 57 + - - 26 + + + 90 * SUM( ALL + 24 )
----
2243

skipif mysql # not compatible
query I rowsort label-5212
SELECT 57 + - - 26 + + + 90 * SUM ( ALL + 24 )
----
2243

query I rowsort
SELECT ( + 75 ) col1
----
75

query I rowsort
SELECT 16 + - + 78
----
-62

query I rowsort
SELECT ALL + 25 + ( + 73 ) + + 79 AS col1
----
177

query I rowsort
SELECT - 72 + + 48 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT 47 * + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5217
SELECT 47 * + COUNT ( * ) AS col0
----
47

query I rowsort
SELECT ALL 55 + + 16
----
71

query I rowsort
SELECT DISTINCT + 31 - - 66
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5220
SELECT 75 AS col0, CASE + - 0 WHEN 87 THEN - COALESCE ( 84, + 96 * + 14 * + 32, + 79 + + 33 + 65 * + 99 + + + COUNT( * ) + + - COUNT( * ) * - NULLIF ( - NULLIF ( - ( CASE - - 68 WHEN + 28 + + CASE 48 WHEN + 14 THEN NULL ELSE + + 25 END + - - 51 + - ( - COUNT( * ) ) + 29 * + 18 * 88 * - COUNT( * ) THEN 59 END ), + 24 ), 0 ), - 44 ) DIV 39 WHEN 20 THEN NULL ELSE + 70 + MIN( DISTINCT 88 ) END * + 70 AS col2
----
75
11060

skipif mysql # not compatible
query II rowsort label-5220
SELECT 75 AS col0, CASE + - 0 WHEN 87 THEN - COALESCE ( 84, + 96 * + 14 * + 32, + 79 + + 33 + 65 * + 99 + + + COUNT ( * ) + + - COUNT ( * ) * - NULLIF ( - NULLIF ( - ( CASE - - 68 WHEN + 28 + + CASE 48 WHEN + 14 THEN NULL ELSE + + 25 END + - - 51 + - ( - COUNT ( * ) ) + 29 * + 18 * 88 * - COUNT ( * ) THEN 59 END ), + 24 ), 0 ), - 44 ) / 39 WHEN 20 THEN NULL ELSE + 70 + MIN ( DISTINCT 88 ) END * + 70 AS col2
----
75
11060

query I rowsort
SELECT ( - 51 ) + + - 49 * - 16
----
733

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL - - COALESCE ( + MAX( DISTINCT 35 ), + 75 + 73 * + + 95 - + + 72, 18 * + - 49 * + + 66 + + 13 + - COUNT( + - 45 ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - - COALESCE ( + MAX ( DISTINCT 35 ), + 75 + 73 * + + 95 - + + 72, 18 * + - 49 * + + 66 + + 13 + - COUNT ( + - 45 ) ) AS col2
----
35

query II rowsort
SELECT 13 AS col2, - 77 AS col0
----
13
-77

query II rowsort
SELECT + + 21 AS col1, 39 AS col2
----
21
39

query I rowsort
SELECT + 49 + + + 57
----
106

query I rowsort
SELECT - 88 * - 87 + - 56 * + 15 - - + 19 * + 30 * + - 39 * + + 24
----
-526704

query I rowsort
SELECT 96 * - 50 AS col0
----
-4800

query I rowsort
SELECT ALL 51 * - - 86 * 60 col0
----
263160

query I rowsort
SELECT ALL + 14 - + 18 + 16
----
12

query I rowsort
SELECT 75 + + - ( + 23 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT + 5 * + ( + - COUNT( * ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT + 5 * + ( + - COUNT ( * ) ) AS col0
----
-5

query I rowsort
SELECT ALL + 87 * + - COALESCE ( 91, 38 )
----
-7917

onlyif mysql # DIV for integer division: 
query I rowsort label-5233
SELECT 68 - + ( 15 ) DIV - + 18 * + 54 + + + 9 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5233
SELECT 68 - + ( 15 ) / - + 18 * + 54 + + + 9 AS col2
----
77

query I rowsort
SELECT 42 * + 12 + + + 23 AS col0
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT ( + 11 ) + + COALESCE ( 18, + COUNT( * ) ) col2
----
29

skipif mysql # not compatible
query I rowsort label-5235
SELECT ( + 11 ) + + COALESCE ( 18, + COUNT ( * ) ) col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT ALL NULLIF ( - + CASE + CASE - 67 WHEN - + 10 * - - 64 * - + 77 THEN + CAST( + 66 AS SIGNED ) END WHEN + 55 THEN + 39 END, + - 77 * - 34 ) + - 36 * + 22 * - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL NULLIF ( - + CASE + CASE - 67 WHEN - + 10 * - - 64 * - + 77 THEN + CAST ( + 66 AS INTEGER ) END WHEN + 55 THEN + 39 END, + - 77 * - 34 ) + - 36 * + 22 * - 30 AS col2
----
NULL

query I rowsort
SELECT ALL 61 + - 73 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT DISTINCT ( + 2 ) + + 81 * - 70 + - 71 * COUNT( + 25 ) - - 29
----
-5710

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT ( + 2 ) + + 81 * - 70 + - 71 * COUNT ( + 25 ) - - 29
----
-5710

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5239
SELECT NULLIF ( - 86, 47 ) - + NULLIF ( COUNT( * ), + + 24 * + - 7 ) DIV 7 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-5239
SELECT NULLIF ( - 86, 47 ) - + NULLIF ( COUNT ( * ), + + 24 * + - 7 ) / 7 AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT ALL + 52 DIV COALESCE ( + ( 73 ), + 62 * - 95 )
----
0

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + 52 / COALESCE ( + ( 73 ), + 62 * - 95 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT ALL COUNT( * ) * + 92 col1
----
92

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL COUNT ( * ) * + 92 col1
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5242
SELECT ALL 42 + - COUNT( + - 17 ) - + 78 DIV 37 - - 66
----
105

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL 42 + - COUNT ( + - 17 ) - + 78 / 37 - - 66
----
105

query II rowsort
SELECT DISTINCT NULLIF ( 69, + - 68 ) + 47 AS col2, 87 + + 40 AS col2
----
116
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT DISTINCT COUNT( * ) * + - CASE + MAX( ALL + ( 39 ) ) WHEN - + 83 * - + 75 THEN - + 11 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT COUNT ( * ) * + - CASE + MAX ( ALL + ( 39 ) ) WHEN - + 83 * - + 75 THEN - + 11 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 93 + + NULLIF ( + 43, - 47 )
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5246
SELECT DISTINCT AVG ( ALL 51 ) + + 79 + - CASE + 14 WHEN + 27 THEN NULL ELSE + + ( - COUNT( * ) ) * 73 - + - 79 END + 14 * + CAST( NULL AS SIGNED ) / + 87 / - 10 * - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT AVG ( ALL 51 ) + + 79 + - CASE + 14 WHEN + 27 THEN NULL ELSE + + ( - COUNT ( * ) ) * 73 - + - 79 END + 14 * + CAST ( NULL AS INTEGER ) / + 87 / - 10 * - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL + COUNT( * ) * + COALESCE ( + 64, + + 31, + 59 * + 69 * 85 ) * + + 2 + 81 AS col0
----
209

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + COUNT ( * ) * + COALESCE ( + 64, + + 31, + 59 * + 69 * 85 ) * + + 2 + 81 AS col0
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT COUNT( DISTINCT + 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5248
SELECT COUNT ( DISTINCT + 73 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5249
SELECT - 61 * - + NULLIF ( - 58, - CAST( - - COUNT( * ) AS SIGNED ) )
----
-3538

skipif mysql # not compatible
query I rowsort label-5249
SELECT - 61 * - + NULLIF ( - 58, - CAST ( - - COUNT ( * ) AS INTEGER ) )
----
-3538

query I rowsort
SELECT + 70 * - + 34 AS col1
----
-2380

query I rowsort
SELECT DISTINCT - ( - + 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL MAX( - - 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL MAX ( - - 69 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5253
SELECT ALL CAST( - - 88 AS SIGNED ) DIV + NULLIF ( + 21, + + COUNT( * ) * + - 30 + 48 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL CAST ( - - 88 AS INTEGER ) / + NULLIF ( + 21, + + COUNT ( * ) * + - 30 + 48 ) AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT 44 + - 28 - - 16 + - + 50 * + 24 DIV - 4 AS col1
----
332

skipif mysql # not compatible
query I rowsort label-5254
SELECT 44 + - 28 - - 16 + - + 50 * + 24 / - 4 AS col1
----
332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT - ( - 65 ) + - + 3 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT - ( - 65 ) + - + 3 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5256
SELECT 21 DIV - + 22 * + 20
----
0

skipif mysql # not compatible
query I rowsort label-5256
SELECT 21 / - + 22 * + 20
----
0

query I rowsort
SELECT 64 * 23
----
1472

query I rowsort
SELECT DISTINCT + 36 * 92 * 56 AS col2
----
185472

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT + SUM( 70 ) - 2 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5259
SELECT + SUM ( 70 ) - 2 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT COUNT( * ) * + ( - 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-5260
SELECT COUNT ( * ) * + ( - 39 )
----
-39

onlyif mysql # aggregate syntax: 
query III rowsort label-5261
SELECT ALL 60 * 54 AS col0, 45 + - 55 * - ( COUNT( * ) ) * - - 55 col2, - 57 + + 52 col0
----
3240
3070
-5

skipif mysql # not compatible
query III rowsort label-5261
SELECT ALL 60 * 54 AS col0, 45 + - 55 * - ( COUNT ( * ) ) * - - 55 col2, - 57 + + 52 col0
----
3240
3070
-5

query II rowsort
SELECT DISTINCT - 10 AS col1, 27 * + 96 * - 33 AS col1
----
-10
-85536

query I rowsort
SELECT 84 * - 33 AS col2
----
-2772

onlyif mysql # aggregate syntax: 
query II rowsort label-5264
SELECT 87 * SUM( ALL - + 60 ) AS col2, 17 AS col0
----
-5220
17

skipif mysql # not compatible
query II rowsort label-5264
SELECT 87 * SUM ( ALL - + 60 ) AS col2, 17 AS col0
----
-5220
17

query II rowsort
SELECT - 14 * + 71 - ( 81 ) - 92, + 20 + - 13 AS col2
----
-1167
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5266
SELECT ALL - NULLIF ( - + COUNT( * ), 60 + + 34 - - 53 ), 16 * + 94 + - 94 col1
----
1
1410

skipif mysql # not compatible
query II rowsort label-5266
SELECT ALL - NULLIF ( - + COUNT ( * ), 60 + + 34 - - 53 ), 16 * + 94 + - 94 col1
----
1
1410

query I rowsort
SELECT 10 * - 3 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5268
SELECT DISTINCT 64 * + 73 + COUNT( * ) col2, + 90 DIV + - 81 AS col1
----
4673
-1

skipif mysql # not compatible
query II rowsort label-5268
SELECT DISTINCT 64 * + 73 + COUNT ( * ) col2, + 90 / + - 81 AS col1
----
4673
-1

query II rowsort
SELECT ALL - 82 * + 35 + - 60 AS col0, + 60 col0
----
-2930
60

query I rowsort
SELECT 93 + - - 77 AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL + COALESCE ( + - 39, 82 + - + COUNT( * ) * - + 24 * + 59 * 96 + + 62, 56 )
----
-39

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + COALESCE ( + - 39, 82 + - + COUNT ( * ) * - + 24 * + 59 * 96 + + 62, 56 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5272
SELECT DISTINCT 32 * - ( 35 ) + 68 * CAST( NULL AS SIGNED ) AS col2, - ( - 96 ) AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-5272
SELECT DISTINCT 32 * - ( 35 ) + 68 * CAST ( NULL AS INTEGER ) AS col2, - ( - 96 ) AS col0
----
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT 56 * + - 29 + 25 * + + COUNT( * ) AS col2
----
-1599

skipif mysql # not compatible
query I rowsort label-5273
SELECT 56 * + - 29 + 25 * + + COUNT ( * ) AS col2
----
-1599

onlyif mysql # aggregate syntax: 
query II rowsort label-5274
SELECT ALL + 74 col2, 78 + COUNT( * ) + COUNT( * )
----
74
80

skipif mysql # not compatible
query II rowsort label-5274
SELECT ALL + 74 col2, 78 + COUNT ( * ) + COUNT ( * )
----
74
80

query I rowsort
SELECT DISTINCT - 99 * ( - 48 ) + 26
----
4778

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5276
SELECT - 19 + - CASE - + 84 WHEN CAST( - 81 AS DECIMAL ) THEN - + ( - 54 ) WHEN + 43 THEN NULL END + + 58 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT - 19 + - CASE - + 84 WHEN CAST ( - 81 AS REAL ) THEN - + ( - 54 ) WHEN + 43 THEN NULL END + + 58 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5277
SELECT ALL CAST( NULL AS SIGNED ) + + 33 + + 83 * 66 * - 4 AS col2, + CASE 79 WHEN NULLIF ( + + 13, - 66 ) THEN + MAX( ALL - 83 ) WHEN + - 11 THEN NULL ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5277
SELECT ALL CAST ( NULL AS INTEGER ) + + 33 + + 83 * 66 * - 4 AS col2, + CASE 79 WHEN NULLIF ( + + 13, - 66 ) THEN + MAX ( ALL - 83 ) WHEN + - 11 THEN NULL ELSE NULL END
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT DISTINCT + CAST( 64 AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT + CAST ( 64 AS INTEGER ) AS col2
----
64

query I rowsort
SELECT - NULLIF ( + 96, - 29 ) + + + 99
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT + SUM( + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5280
SELECT + SUM ( + 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5281
SELECT ALL + MIN( NULLIF ( - - 45, + 67 ) ) + - - 20 - + 64 + - - 56 DIV - - 74 * - 16 * - - 85 + + - 96 * + - 88
----
8449

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + MIN ( NULLIF ( - - 45, + 67 ) ) + - - 20 - + 64 + - - 56 / - - 74 * - 16 * - - 85 + + - 96 * + - 88
----
8449

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5282
SELECT - + 78 + 41 * MIN( - + CAST( NULL AS DECIMAL ) ) / 69 * + 29 + - 63 * + COUNT( - 67 ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT - + 78 + 41 * MIN ( - + CAST ( NULL AS REAL ) ) / 69 * + 29 + - 63 * + COUNT ( - 67 ) + 47
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 89, + 36 / - 30 * - 90 + + + 17 * + 89 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5284
SELECT DISTINCT 93 - - 35 + - MIN( DISTINCT + 56 ) * ( + 86 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT 93 - - 35 + - MIN ( DISTINCT + 56 ) * ( + 86 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 28 + - 29 + 84 * + 38
----
3191

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT DISTINCT - + 12 - - 98 * COUNT( * ) + + 48
----
134

skipif mysql # not compatible
query I rowsort label-5286
SELECT DISTINCT - + 12 - - 98 * COUNT ( * ) + + 48
----
134

query I rowsort
SELECT + - ( - - 23 ) * 68 AS col0
----
-1564

query I rowsort
SELECT DISTINCT - 90 * 79 + + 47
----
-7063

query I rowsort
SELECT DISTINCT - 84 - 64 col2
----
-148

query I rowsort
SELECT + 95 * - - 66
----
6270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL CASE WHEN NULL NOT IN ( - COALESCE ( - COUNT( * ), 25 + + + ( + CAST( NULL AS SIGNED ) ) / 20, + + 93 + - 60 + 75 ), CASE + - 59 WHEN - 95 - + CASE CASE + 35 WHEN - + AVG ( ALL - 93 ) THEN + + ( + - 38 ) ELSE - 20 END WHEN + 93 + + 96 THEN 13 ELSE NULL END * + 96 THEN + 16 + - - COUNT( * ) END * + 52 + CASE CAST( NULL AS SIGNED ) WHEN 68 + - COUNT( * ) * 18 THEN ( 63 ) WHEN - 70 * 2 + + 58 THEN + 33 / + 63 WHEN - 17 * 40 THEN NULL ELSE NULL END * - 86 ) THEN COUNT( * ) * 99 ELSE 53 * - MIN( ALL + 51 * + 81 ) END * - ( NULLIF ( 65, 63 ) + + 96 )
----
35249823

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL CASE WHEN NULL NOT IN ( - COALESCE ( - COUNT ( * ), 25 + + + ( + CAST ( NULL AS INTEGER ) ) / 20, + + 93 + - 60 + 75 ), CASE + - 59 WHEN - 95 - + CASE CASE + 35 WHEN - + AVG ( ALL - 93 ) THEN + + ( + - 38 ) ELSE - 20 END WHEN + 93 + + 96 THEN 13 ELSE NULL END * + 96 THEN + 16 + - - COUNT ( * ) END * + 52 + CASE CAST ( NULL AS INTEGER ) WHEN 68 + - COUNT ( * ) * 18 THEN ( 63 ) WHEN - 70 * 2 + + 58 THEN + 33 / + 63 WHEN - 17 * 40 THEN NULL ELSE NULL END * - 86 ) THEN COUNT ( * ) * 99 ELSE 53 * - MIN ( ALL + 51 * + 81 ) END * - ( NULLIF ( 65, 63 ) + + 96 )
----
35249823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5292
SELECT ALL + COUNT( * ) col0, CAST( + ( - 89 ) AS SIGNED ) * + + 83
----
1
-7387

skipif mysql # not compatible
query II rowsort label-5292
SELECT ALL + COUNT ( * ) col0, CAST ( + ( - 89 ) AS INTEGER ) * + + 83
----
1
-7387

query I rowsort
SELECT + 61 * + 24 col2
----
1464

query I rowsort
SELECT + + 12 + - 32 AS col2
----
-20

query I rowsort
SELECT + - 1 + + 50 * + - ( + 2 )
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT + CAST( NULL AS SIGNED ) * COALESCE ( + 63, - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT + CAST ( NULL AS INTEGER ) * COALESCE ( + 63, - 19 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5297
SELECT ALL 98, - 63 * - - 38 / + CASE WHEN 16 IN ( - AVG ( ALL + + 70 ) - AVG ( + + ( - - 75 ) ), + 43, - AVG ( 30 ), + CAST( NULL AS SIGNED ) * + 89 / - 33 * - 37 * + 5, + 92 ) THEN - + 88 END + - 81 AS col2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-5297
SELECT ALL 98, - 63 * - - 38 / + CASE WHEN 16 IN ( - AVG ( ALL + + 70 ) - AVG ( + + ( - - 75 ) ), + 43, - AVG ( 30 ), + CAST ( NULL AS INTEGER ) * + 89 / - 33 * - 37 * + 5, + 92 ) THEN - + 88 END + - 81 AS col2
----
98
NULL

query I rowsort
SELECT - ( + + 23 ) AS col2
----
-23

query I rowsort
SELECT + COALESCE ( 81, + 49 ) + - 15 * - 13 * 4
----
861

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5300
SELECT ALL NULLIF ( - 29, + ( - 31 ) - + - 64 ) DIV - 86 * - 77 + - 46 + 90 AS col0, + CAST( NULL AS SIGNED ) * - + 36
----
44
NULL

skipif mysql # not compatible
query II rowsort label-5300
SELECT ALL NULLIF ( - 29, + ( - 31 ) - + - 64 ) / - 86 * - 77 + - 46 + 90 AS col0, + CAST ( NULL AS INTEGER ) * - + 36
----
44
NULL

query I rowsort
SELECT + 97 * - 97 AS col2
----
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT - 3 + - ( + NULLIF ( + 65, - - ( + COUNT( * ) ) + + 16 ) ) * - ( + - ( - + 6 ) ) + - 22 + + + 52 - + + 59 + + 71 + + CAST( NULL AS SIGNED ) * + + 27 + - 69 * 28 / + 26 + + 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT - 3 + - ( + NULLIF ( + 65, - - ( + COUNT ( * ) ) + + 16 ) ) * - ( + - ( - + 6 ) ) + - 22 + + + 52 - + + 59 + + 71 + + CAST ( NULL AS INTEGER ) * + + 27 + - 69 * 28 / + 26 + + 28 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT ( + SUM( + 90 ) )
----
90

skipif mysql # not compatible
query I rowsort label-5303
SELECT ( + SUM ( + 90 ) )
----
90

query I rowsort
SELECT + ( + - 94 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT - 47 * + + 55 + - 75 * - ( - 21 ) * - 7 + + 54 - - + CAST( - 37 AS SIGNED )
----
8457

skipif mysql # not compatible
query I rowsort label-5305
SELECT - 47 * + + 55 + - 75 * - ( - 21 ) * - 7 + + 54 - - + CAST ( - 37 AS INTEGER )
----
8457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5306
SELECT ALL CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) / + - 85 * - 4 * + 0 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) / + - 85 * - 4 * + 0 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5307
SELECT ALL + 54 * - + 72 * - 85 + + + 17 DIV - + COUNT( * ) col0
----
330463

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + 54 * - + 72 * - 85 + + + 17 / - + COUNT ( * ) col0
----
330463

query I rowsort
SELECT + 67 * + 7
----
469

query II rowsort
SELECT DISTINCT + 32, 23 * + 46 + - - ( 9 ) AS col1
----
32
1067

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5310
SELECT DISTINCT COUNT( * ) * + COUNT( ALL ( + 12 ) ) + - MIN( + + 39 ) * CAST( NULL AS DECIMAL ) + + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT COUNT ( * ) * + COUNT ( ALL ( + 12 ) ) + - MIN ( + + 39 ) * CAST ( NULL AS REAL ) + + - 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5311
SELECT DISTINCT - 97 DIV + ( - 49 ) * + + ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT - 97 / + ( - 49 ) * + + ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT - 19 DIV + 14
----
-1

skipif mysql # not compatible
query I rowsort label-5312
SELECT - 19 / + 14
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5313
SELECT DISTINCT - COUNT( * ) * + NULLIF ( - 78, + 5 / - CAST( - 22 AS SIGNED ) ) + - 67 + 38
----
49

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( - 78, + 5 / - CAST ( - 22 AS INTEGER ) ) + - 67 + 38
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5314
SELECT ALL - 39 * + - COUNT( * ) + - - CAST( + + 80 AS SIGNED ), COUNT( * ) AS col0
----
119
1

skipif mysql # not compatible
query II rowsort label-5314
SELECT ALL - 39 * + - COUNT ( * ) + - - CAST ( + + 80 AS INTEGER ), COUNT ( * ) AS col0
----
119
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5315
SELECT NULLIF ( 91, + ( + - 55 ) + + 13 - - 13 / + 77 + 86 / + - MAX( 17 ) - - CAST( NULL AS SIGNED ) )
----
91

skipif mysql # not compatible
query I rowsort label-5315
SELECT NULLIF ( 91, + ( + - 55 ) + + 13 - - 13 / + 77 + 86 / + - MAX ( 17 ) - - CAST ( NULL AS INTEGER ) )
----
91

query I rowsort
SELECT 16 * - + 93 + + 0
----
-1488

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5317
SELECT ALL + 62 * CAST( NULL AS DECIMAL ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL + 62 * CAST ( NULL AS REAL ) - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT + + CASE + COUNT( * ) WHEN + 9 THEN 41 ELSE - 0 * 73 END
----
0

skipif mysql # not compatible
query I rowsort label-5318
SELECT + + CASE + COUNT ( * ) WHEN + 9 THEN 41 ELSE - 0 * 73 END
----
0

query I rowsort
SELECT + CASE + 61 WHEN 64 THEN NULL ELSE 73 END
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5320
SELECT - 56 * + CAST( NULL AS SIGNED ) + - + ( + 18 ) * + 41 - - 20 + COALESCE ( 36, + 35, - 43 ) / 61, 41 col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-5320
SELECT - 56 * + CAST ( NULL AS INTEGER ) + - + ( + 18 ) * + 41 - - 20 + COALESCE ( 36, + 35, - 43 ) / 61, 41 col1
----
NULL
41

query I rowsort
SELECT ALL + - ( 21 ) AS col0
----
-21

query I rowsort
SELECT ALL - 52 * - 26
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT DISTINCT - + 10 * - + 54 * + - 14 + - 87 - + NULLIF ( + + COUNT( * ), + + 22 + + 33 * 81 * 25 ) * 22 + - 26
----
-7695

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT - + 10 * - + 54 * + - 14 + - 87 - + NULLIF ( + + COUNT ( * ), + + 22 + + 33 * 81 * 25 ) * 22 + - 26
----
-7695

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT DISTINCT COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5324
SELECT DISTINCT COUNT ( * ), + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT - - 97 * + ( - - MAX( ALL - 51 ) ) col1
----
-4947

skipif mysql # not compatible
query I rowsort label-5325
SELECT - - 97 * + ( - - MAX ( ALL - 51 ) ) col1
----
-4947

query II rowsort
SELECT - 41, + 39 AS col0
----
-41
39

query I rowsort
SELECT + 92 - + - 89
----
181

query I rowsort
SELECT - + ( + 60 )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5329
SELECT - - COUNT( * ) DIV + + 5 * - 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5329
SELECT - - COUNT ( * ) / + + 5 * - 12 AS col0
----
0

query I rowsort
SELECT + - 42 * - 6
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT + ( - COUNT( * ) ) * - 66 + 99 AS col0
----
165

skipif mysql # not compatible
query I rowsort label-5331
SELECT + ( - COUNT ( * ) ) * - 66 + 99 AS col0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5332
SELECT ALL CAST( NULL AS SIGNED ) * + - 97 + + + 31 + + - 15 * 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL CAST ( NULL AS INTEGER ) * + - 97 + + + 31 + + - 15 * 13 AS col0
----
NULL

query I rowsort
SELECT + CASE ( + 25 ) WHEN - - 32 THEN + 70 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5334
SELECT ALL ( + 87 ) + + MAX( DISTINCT - - 89 ) * + 11, - 70 - SUM( ALL 95 ) + + COUNT( - + 35 ) + + + 64 * + + 24 * 1 * ( - COUNT( * ) ) * - + 96 * - COALESCE ( 62, CAST( - + SUM( ALL + 48 ) AS SIGNED ) * - 99 + + - 24 - - 28, 88 ) AS col0, - 4 + + + COUNT( * ) + - + COALESCE ( - 89, - + 7 ) AS col1
----
1066
-9142436
86

skipif mysql # not compatible
query III rowsort label-5334
SELECT ALL ( + 87 ) + + MAX ( DISTINCT - - 89 ) * + 11, - 70 - SUM ( ALL 95 ) + + COUNT ( - + 35 ) + + + 64 * + + 24 * 1 * ( - COUNT ( * ) ) * - + 96 * - COALESCE ( 62, CAST ( - + SUM ( ALL + 48 ) AS INTEGER ) * - 99 + + - 24 - - 28, 88 ) AS col0, - 4 + + + COUNT ( * ) + - + COALESCE ( - 89, - + 7 ) AS col1
----
1066
-9142436
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL COUNT( * ) * + - 31 * 2 col1
----
-62

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL COUNT ( * ) * + - 31 * 2 col1
----
-62

query I rowsort
SELECT ALL 92 + - 75
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT - COUNT( DISTINCT + - 94 ) + - 63 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5337
SELECT - COUNT ( DISTINCT + - 94 ) + - 63 AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5338
SELECT - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0, 61 AS col2, - + CAST( NULL AS SIGNED ) + ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL
61
NULL

skipif mysql # not compatible
query III rowsort label-5338
SELECT - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col0, 61 AS col2, - + CAST ( NULL AS INTEGER ) + ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL
61
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT - 74 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT - 74 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 85 + 80 * + - 86 * - - 60
----
-412715

onlyif mysql # aggregate syntax: 
query II rowsort label-5341
SELECT - CASE - - 5 WHEN + 71 THEN + 45 + - 16 END, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5341
SELECT - CASE - - 5 WHEN + 71 THEN + 45 + - 16 END, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT ALL 38 + - - 29 AS col2, 40 * + ( 96 )
----
67
3840

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT NULLIF ( + MIN( ALL - 85 ), - - 40 ) + + ( COUNT( * ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-5343
SELECT NULLIF ( + MIN ( ALL - 85 ), - - 40 ) + + ( COUNT ( * ) ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL ( + + 98 ) + + COUNT( 22 )
----
99

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL ( + + 98 ) + + COUNT ( 22 )
----
99

query I rowsort
SELECT 93 * 31 + + 38 - - 88 AS col1
----
3009

onlyif mysql # DIV for integer division: 
query I rowsort label-5346
SELECT ALL 19 DIV 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL 19 / 21 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT COALESCE ( COUNT( * ), + MAX( + 46 ) * + - SUM( ALL - 83 ) - + 18 ) + - 90 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5347
SELECT COALESCE ( COUNT ( * ), + MAX ( + 46 ) * + - SUM ( ALL - 83 ) - + 18 ) + - 90 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ALL COUNT( ALL 49 ) - + 52 * + + 74
----
-3847

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL COUNT ( ALL 49 ) - + 52 * + + 74
----
-3847

onlyif mysql # aggregate syntax: 
query II rowsort label-5349
SELECT COUNT( * ) * + - 41, 54 col0
----
-41
54

skipif mysql # not compatible
query II rowsort label-5349
SELECT COUNT ( * ) * + - 41, 54 col0
----
-41
54

query I rowsort
SELECT 54 * - - 49 * + + 82 AS col0
----
216972

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT - COALESCE ( 17, + + 25 + - + 36, + 63 ) * - - NULLIF ( + 73, + + 36 * - 50 ) + - - MIN( + 57 ) AS col0
----
-1184

skipif mysql # not compatible
query I rowsort label-5351
SELECT - COALESCE ( 17, + + 25 + - + 36, + 63 ) * - - NULLIF ( + 73, + + 36 * - 50 ) + - - MIN ( + 57 ) AS col0
----
-1184

query I rowsort
SELECT ( + + 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT - 29 * - COUNT( * ) * 25 + + 7
----
732

skipif mysql # not compatible
query I rowsort label-5353
SELECT - 29 * - COUNT ( * ) * 25 + + 7
----
732

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL COUNT( + 44 ) - MIN( - 64 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL COUNT ( + 44 ) - MIN ( - 64 ) AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5355
SELECT MAX( ALL 38 ) * - CAST( NULL AS SIGNED ) + 74 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT MAX ( ALL 38 ) * - CAST ( NULL AS INTEGER ) + 74 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5356
SELECT + MAX( + 63 ) DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-5356
SELECT + MAX ( + 63 ) / 45
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT ALL + 31 DIV - 74 + - 68 col2
----
-68

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + 31 / - 74 + - 68 col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT CAST( + 58 AS SIGNED ) + - + 37
----
21

skipif mysql # not compatible
query I rowsort label-5358
SELECT CAST ( + 58 AS INTEGER ) + - + 37
----
21

query I rowsort
SELECT 62 * 67 + - 89 AS col0
----
4065

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5360
SELECT + COUNT( * ) * - - ( 61 ) DIV + 89 * - - 28
----
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT + COUNT ( * ) * - - ( 61 ) / + 89 * - - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL - - CASE - + MAX( + ( 84 ) ) WHEN - 43 THEN NULL WHEN 35 THEN - ( - 33 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL - - CASE - + MAX ( + ( 84 ) ) WHEN - 43 THEN NULL WHEN 35 THEN - ( - 33 ) END AS col2
----
NULL

query I rowsort
SELECT ALL - ( - - ( + 31 ) )
----
-31

query I rowsort
SELECT - 39 + 55
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5364
SELECT ALL - + CAST( NULL AS SIGNED ) * 64, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5364
SELECT ALL - + CAST ( NULL AS INTEGER ) * 64, - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT COUNT( * ) + - COUNT( * ) * SUM( 75 ) * 59 + - - 69 - + 78 AS col0
----
-4433

skipif mysql # not compatible
query I rowsort label-5365
SELECT COUNT ( * ) + - COUNT ( * ) * SUM ( 75 ) * 59 + - - 69 - + 78 AS col0
----
-4433

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL + 79 + + COUNT( DISTINCT + - 84 ) + 38 - + - 58 - + COUNT( * ) - + - 5
----
180

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL + 79 + + COUNT ( DISTINCT + - 84 ) + 38 - + - 58 - + COUNT ( * ) - + - 5
----
180

query I rowsort
SELECT - 66 + - 75
----
-141

query I rowsort
SELECT DISTINCT - ( + - 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL - + 40 + - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - + 40 + - COUNT ( * )
----
-41

query I rowsort
SELECT ALL + 87 + + 69 AS col2
----
156

query II rowsort
SELECT - 50 col2, ( 44 ) + - ( + 39 )
----
-50
5

query I rowsort
SELECT 13 + 32 * + 61
----
1965

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT ALL + COUNT( * ) + + + 13
----
14

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL + COUNT ( * ) + + + 13
----
14

query I rowsort
SELECT 84 * + - 60
----
-5040

query II rowsort
SELECT 24, + 24 AS col2
----
24
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5376
SELECT DISTINCT + 42 + 19 - + COALESCE ( COALESCE ( - 96, + + 19, + 86 ), - - 0 ) * COUNT( * ) * + 10 - + + 38 * ( + - ( - 84 ) ) DIV - CASE 92 WHEN 31 + - 35 + + 36 + - - COALESCE ( 90, + MAX( + + 91 ) ) * + 9 * - 66 * - 95 * - + 21 THEN NULL WHEN + - 51 DIV 23 + SUM( + 61 ) THEN + 33 + 89 - + 60 ELSE + 96 END + 94 AS col2
----
1148

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT + 42 + 19 - + COALESCE ( COALESCE ( - 96, + + 19, + 86 ), - - 0 ) * COUNT ( * ) * + 10 - + + 38 * ( + - ( - 84 ) ) / - CASE 92 WHEN 31 + - 35 + + 36 + - - COALESCE ( 90, + MAX ( + + 91 ) ) * + 9 * - 66 * - 95 * - + 21 THEN NULL WHEN + - 51 / 23 + SUM ( + 61 ) THEN + 33 + 89 - + 60 ELSE + 96 END + 94 AS col2
----
1148

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL COUNT( * ) * - + 69
----
-69

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL COUNT ( * ) * - + 69
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT 3 DIV - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5378
SELECT 3 / - 85 AS col1
----
0

query I rowsort
SELECT ALL + 24 + + 15 AS col2
----
39

query II rowsort
SELECT 43 AS col1, + 31 AS col0
----
43
31

query I rowsort
SELECT ALL 32 - + 92 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5382
SELECT - 19, COUNT( + 43 ) AS col0
----
-19
1

skipif mysql # not compatible
query II rowsort label-5382
SELECT - 19, COUNT ( + 43 ) AS col0
----
-19
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5383
SELECT ALL + 97 * - 63 * - 32 AS col1, + 66 * + COUNT( * )
----
195552
66

skipif mysql # not compatible
query II rowsort label-5383
SELECT ALL + 97 * - 63 * - 32 AS col1, + 66 * + COUNT ( * )
----
195552
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT NULLIF ( - NULLIF ( + - ( - COUNT( * ) ), + + 32 ), + - 77 ) + - 1 * - 51 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5384
SELECT NULLIF ( - NULLIF ( + - ( - COUNT ( * ) ), + + 32 ), + - 77 ) + - 1 * - 51 AS col2
----
50

query I rowsort
SELECT 99 * - 33
----
-3267

query I rowsort
SELECT 38 + - + 93 + + - 43 + + + ( + + 3 ) * - - ( - 58 ) AS col1
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL 96 - - MAX( - + 58 ) col0
----
38

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL 96 - - MAX ( - + 58 ) col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT COUNT( DISTINCT + - 60 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5388
SELECT COUNT ( DISTINCT + - 60 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT DISTINCT - CAST( + 17 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT - CAST ( + 17 AS INTEGER )
----
-17

query I rowsort
SELECT ALL - 99 col1
----
-99

query II rowsort
SELECT DISTINCT - 5 col2, 77 - + 29 + - 54
----
-5
-6

query II rowsort
SELECT DISTINCT - 67 AS col2, 49
----
-67
49

query II rowsort
SELECT DISTINCT - 26 AS col2, + 49 col0
----
-26
49

query I rowsort
SELECT ALL + 46 * + 31 col0
----
1426

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5395
SELECT + 78 + + + 70 + - COUNT( * ) DIV - + 43
----
148

skipif mysql # not compatible
query I rowsort label-5395
SELECT + 78 + + + 70 + - COUNT ( * ) / - + 43
----
148

query I rowsort
SELECT + NULLIF ( 51, 80 * - 61 / + + 22 )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5397
SELECT DISTINCT - 2 DIV SUM( ALL - NULLIF ( 68, 99 + + - 93 * + 17 + 99 ) ) col1, 19 + 81 AS col1
----
0
100

skipif mysql # not compatible
query II rowsort label-5397
SELECT DISTINCT - 2 / SUM ( ALL - NULLIF ( 68, 99 + + - 93 * + 17 + 99 ) ) col1, 19 + 81 AS col1
----
0
100

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT 64 DIV 7 * + 32 * + 26 * + 7 - + 48
----
52368

skipif mysql # not compatible
query I rowsort label-5398
SELECT 64 / 7 * + 32 * + 26 * + 7 - + 48
----
52368

onlyif mysql # aggregate syntax: 
query II rowsort label-5399
SELECT + + NULLIF ( 83, + - 92 ) AS col0, COUNT( * ) AS col1
----
83
1

skipif mysql # not compatible
query II rowsort label-5399
SELECT + + NULLIF ( 83, + - 92 ) AS col0, COUNT ( * ) AS col1
----
83
1

query I rowsort
SELECT DISTINCT - ( + 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5401
SELECT + 36 * - 28 - + + 28 + + COUNT( * ) * 87 DIV 71 * - 99 col2
----
-1135

skipif mysql # not compatible
query I rowsort label-5401
SELECT + 36 * - 28 - + + 28 + + COUNT ( * ) * 87 / 71 * - 99 col2
----
-1135

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT + COALESCE ( + - ( - 85 ), + 21, 25 + 38 + + 46 + - COUNT( * ) * - 14 ) + + 43
----
128

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT + COALESCE ( + - ( - 85 ), + 21, 25 + 38 + + 46 + - COUNT ( * ) * - 14 ) + + 43
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT DISTINCT COALESCE ( + 19, + 28, - - ( - 62 ) + + 78 - + + 13 * + - 2 * 98 - 27, - COUNT( * ) * + - COUNT( * ) ) * - ( - 3 ) + + COUNT( + 43 ) + - - 43
----
101

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT COALESCE ( + 19, + 28, - - ( - 62 ) + + 78 - + + 13 * + - 2 * 98 - 27, - COUNT ( * ) * + - COUNT ( * ) ) * - ( - 3 ) + + COUNT ( + 43 ) + - - 43
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT - COALESCE ( + + COUNT( * ), + 56 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5404
SELECT - COALESCE ( + + COUNT ( * ), + 56 ) AS col1
----
-1

query I rowsort
SELECT ALL - 59 + - 25 AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5406
SELECT - COUNT( * ) DIV + 56
----
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT - COUNT ( * ) / + 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT 13 * COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-5407
SELECT 13 * COUNT ( * ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT ALL 56 + - - 81 * + + 98 * + COUNT( * ) + - 84
----
7910

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL 56 + - - 81 * + + 98 * + COUNT ( * ) + - 84
----
7910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5409
SELECT ALL + 9 DIV - COUNT( * ) + 98
----
89

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL + 9 / - COUNT ( * ) + 98
----
89

query I rowsort
SELECT - COALESCE ( 60, - 5 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL + COUNT( * ) * 75 col0
----
75

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL + COUNT ( * ) * 75 col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT ALL 74 + COUNT( * ) * + - CAST( 7 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL 74 + COUNT ( * ) * + - CAST ( 7 AS INTEGER )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT DISTINCT + ( + - COUNT( * ) ) - - + 47 * + 47 AS col1
----
2208

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT + ( + - COUNT ( * ) ) - - + 47 * + 47 AS col1
----
2208

query I rowsort
SELECT ALL + 93 - - - 94 * 70 + ( + - 45 ) + - - 37
----
-6495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5415
SELECT - 38 * - + ( - + 22 ) * - COALESCE ( CAST( + - 52 AS SIGNED ), COUNT( * ) + 53 ) AS col0
----
-43472

skipif mysql # not compatible
query I rowsort label-5415
SELECT - 38 * - + ( - + 22 ) * - COALESCE ( CAST ( + - 52 AS INTEGER ), COUNT ( * ) + 53 ) AS col0
----
-43472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5416
SELECT DISTINCT + 20 * - 95 AS col2, 71 - 22 * + - 57 * 62 + + 63 DIV + - SUM( CAST( + 61 AS SIGNED ) ) AS col0
----
-1900
77818

skipif mysql # not compatible
query II rowsort label-5416
SELECT DISTINCT + 20 * - 95 AS col2, 71 - 22 * + - 57 * 62 + + 63 / + - SUM ( CAST ( + 61 AS INTEGER ) ) AS col0
----
-1900
77818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT + 8 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT + 8 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 84 + - + 63
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT ALL + ( - CAST( - + 51 AS SIGNED ) ) - + - 46 - - 6 * - + 33 * - 23 * - - CASE 28 WHEN - + 53 THEN NULL ELSE - + 86 + CASE COUNT( * ) WHEN - 25 THEN - - 40 - 78 + 5 * + + 17 WHEN 72 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL + ( - CAST ( - + 51 AS INTEGER ) ) - + - 46 - - 6 * - + 33 * - 23 * - - CASE 28 WHEN - + 53 THEN NULL ELSE - + 86 + CASE COUNT ( * ) WHEN - 25 THEN - - 40 - 78 + 5 * + + 17 WHEN 72 THEN NULL END END
----
NULL

query I rowsort
SELECT - 2 * - + 46 * 15
----
1380

query I rowsort
SELECT - 78 + - + 62 * + 95
----
-5968

query I rowsort
SELECT - 54 + - - 95
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT 67 DIV - 52 + + 49 * + 98 + - 11 + 36 AS col0
----
4826

skipif mysql # not compatible
query I rowsort label-5423
SELECT 67 / - 52 + + 49 * + 98 + - 11 + 36 AS col0
----
4826

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT + MIN( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT + MIN ( - 0 )
----
0

query I rowsort
SELECT ALL 18 * - 45 AS col0
----
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT - COALESCE ( 64, 51 * - + 72 ) DIV + - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5426
SELECT - COALESCE ( 64, 51 * - + 72 ) / + - 78 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5427
SELECT - COUNT( * ) * COUNT( * ) - CAST( - + COUNT( * ) AS SIGNED ) DIV - + ( - ( 19 ) ) + + 66 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5427
SELECT - COUNT ( * ) * COUNT ( * ) - CAST ( - + COUNT ( * ) AS INTEGER ) / - + ( - ( 19 ) ) + + 66 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT - CAST( + - 48 AS SIGNED ) * + COALESCE ( + 4, - COUNT( * ) * + COUNT( * ) + + 85 + + 45 * 57 + COUNT( DISTINCT - 36 ) ) * CAST( + COUNT( * ) AS SIGNED )
----
192

skipif mysql # not compatible
query I rowsort label-5428
SELECT - CAST ( + - 48 AS INTEGER ) * + COALESCE ( + 4, - COUNT ( * ) * + COUNT ( * ) + + 85 + + 45 * 57 + COUNT ( DISTINCT - 36 ) ) * CAST ( + COUNT ( * ) AS INTEGER )
----
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5429
SELECT - 76 + - + 80 + + 80 + - 99 * - - CAST( NULL AS DECIMAL ) / - 76 + + - 32 + + 27 * 43 + + 92 + + 21 * 11 * - ( 98 ) * + CASE - COUNT( * ) WHEN - + 22 + + - 34 + + + 72 THEN - 99 * + 79 - - 82 WHEN + + 61 THEN + 17 ELSE + ( CAST( 51 AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT - 76 + - + 80 + + 80 + - 99 * - - CAST ( NULL AS REAL ) / - 76 + + - 32 + + 27 * 43 + + 92 + + 21 * 11 * - ( 98 ) * + CASE - COUNT ( * ) WHEN - + 22 + + - 34 + + + 72 THEN - 99 * + 79 - - 82 WHEN + + 61 THEN + 17 ELSE + ( CAST ( 51 AS INTEGER ) ) END AS col1
----
NULL

query I rowsort
SELECT - - 18 * + 38 AS col2
----
684

onlyif mysql # aggregate syntax: 
query II rowsort label-5431
SELECT ALL + COUNT( DISTINCT + 23 ) AS col0, 27
----
1
27

skipif mysql # not compatible
query II rowsort label-5431
SELECT ALL + COUNT ( DISTINCT + 23 ) AS col0, 27
----
1
27

query I rowsort
SELECT + - ( 74 ) * + COALESCE ( 74, ( 45 ) ) + + + 15 + + 89 AS col2
----
-5372

query I rowsort
SELECT ALL + + 78 col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5434
SELECT - 87 + - 86 * + 52 * + 40, 60 * - COUNT( * ) AS col1
----
-178967
-60

skipif mysql # not compatible
query II rowsort label-5434
SELECT - 87 + - 86 * + 52 * + 40, 60 * - COUNT ( * ) AS col1
----
-178967
-60

query I rowsort
SELECT DISTINCT 36 * - 68 + - + ( ( + ( 48 ) ) )
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT DISTINCT 49 * - COUNT( * ) * 30
----
-1470

skipif mysql # not compatible
query I rowsort label-5436
SELECT DISTINCT 49 * - COUNT ( * ) * 30
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT 16 * - 85 + + + COUNT( * ) col1
----
-1359

skipif mysql # not compatible
query I rowsort label-5437
SELECT 16 * - 85 + + + COUNT ( * ) col1
----
-1359

query I rowsort
SELECT + + 58 * + 79
----
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT ALL + COUNT( * ) * + - 64 * 28 * ( - ( 16 ) )
----
28672

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL + COUNT ( * ) * + - 64 * 28 * ( - ( 16 ) )
----
28672

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT ALL MAX( - 54 ) - + ( + 31 )
----
-85

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL MAX ( - 54 ) - + ( + 31 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT 68 * - ( - CASE + MAX( - 62 ) WHEN ( 43 ) / + 16 * - 10 THEN - 25 * - 44 * + MAX( + 47 ) / + 74 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT 68 * - ( - CASE + MAX ( - 62 ) WHEN ( 43 ) / + 16 * - 10 THEN - 25 * - 44 * + MAX ( + 47 ) / + 74 END )
----
NULL

query I rowsort
SELECT ALL 27 * - - 95 AS col2
----
2565

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT + 38 DIV + 31 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5443
SELECT + 38 / + 31 AS col0
----
1

query I rowsort
SELECT + 14 + + 50
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + 85 * ( SUM( - - 79 ) )
----
6715

skipif mysql # not compatible
query I rowsort label-5445
SELECT + 85 * ( SUM ( - - 79 ) )
----
6715

query II rowsort
SELECT - 91 + 87 * - ( - - 86 ) + - 37, 22 AS col1
----
-7610
22

onlyif mysql # DIV for integer division: 
query I rowsort label-5447
SELECT ALL 96 DIV + - 56
----
-1

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL 96 / + - 56
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT + 2 DIV ( - + 71 )
----
0

skipif mysql # not compatible
query I rowsort label-5448
SELECT + 2 / ( - + 71 )
----
0

query I rowsort
SELECT - ( - ( + + 13 ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT - ( + + MAX( ALL + - 20 ) ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-5450
SELECT - ( + + MAX ( ALL + - 20 ) ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT - MAX( ALL - 81 ) * - + 56 + - 14 AS col2
----
-4550

skipif mysql # not compatible
query I rowsort label-5451
SELECT - MAX ( ALL - 81 ) * - + 56 + - 14 AS col2
----
-4550

query I rowsort
SELECT DISTINCT + 80 * 14
----
1120

query I rowsort
SELECT ALL + 62 * + 2 AS col2
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5454
SELECT - COUNT( * ) * + 63 / CAST( NULL AS SIGNED ) * MAX( + 71 ) / + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT - COUNT ( * ) * + 63 / CAST ( NULL AS INTEGER ) * MAX ( + 71 ) / + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT DISTINCT ( + + COUNT( * ) ) * - 16 + + + COALESCE ( + 45, - 58 * - + ( 13 ), + MIN( DISTINCT - 79 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT ( + + COUNT ( * ) ) * - 16 + + + COALESCE ( + 45, - 58 * - + ( 13 ), + MIN ( DISTINCT - 79 ) ) AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT DISTINCT CAST( - COALESCE ( + + NULLIF ( - + 27, + 67 ), - 18 ) AS SIGNED ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT CAST ( - COALESCE ( + + NULLIF ( - + 27, + 67 ), - 18 ) AS INTEGER ) AS col0
----
27

query I rowsort
SELECT ALL + 63 * - 33 AS col2
----
-2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5458
SELECT + + COUNT( * ) * + CAST( NULL AS SIGNED ) * - 24 AS col2, - 61 * + 53
----
NULL
-3233

skipif mysql # not compatible
query II rowsort label-5458
SELECT + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 24 AS col2, - 61 * + 53
----
NULL
-3233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT ALL + + CASE - CAST( + - 39 AS SIGNED ) WHEN 92 + + 28 * 17 * + 80 THEN - 12 - - + 67 * + + 15 WHEN - - 78 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + + CASE - CAST ( + - 39 AS INTEGER ) WHEN 92 + + 28 * 17 * + 80 THEN - 12 - - + 67 * + + 15 WHEN - - 78 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + + COALESCE ( COUNT( * ), - 85 + + - COUNT( * ) * + - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-5460
SELECT + + COALESCE ( COUNT ( * ), - 85 + + - COUNT ( * ) * + - 73 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5461
SELECT ALL 1 DIV 61 DIV - 62 + 24 + - - COUNT( * ) * + 95 * + COUNT( * ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL 1 / 61 / - 62 + 24 + - - COUNT ( * ) * + 95 * + COUNT ( * ) AS col0
----
119

query I rowsort
SELECT - + 14 * + 3
----
-42

onlyif mysql # aggregate syntax: 
query III rowsort label-5463
SELECT ALL - - 25 * + ( + - 46 ) * 64 + - + ( COUNT( * ) ) * + SUM( - 89 ) AS col2, + 58 + + MAX( + + 52 ) + 86 + 35 AS col1, - 4 + + COUNT( * ) AS col0
----
-73511
231
-3

skipif mysql # not compatible
query III rowsort label-5463
SELECT ALL - - 25 * + ( + - 46 ) * 64 + - + ( COUNT ( * ) ) * + SUM ( - 89 ) AS col2, + 58 + + MAX ( + + 52 ) + 86 + 35 AS col1, - 4 + + COUNT ( * ) AS col0
----
-73511
231
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT ALL CAST( NULL AS SIGNED ) / 88 + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL CAST ( NULL AS INTEGER ) / 88 + 83 AS col2
----
NULL

query I rowsort
SELECT - 76 + - 61 col2
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT ALL - 42 * - 77 / - 8 * + 75 - + - CAST( NULL AS SIGNED ) * + + NULLIF ( + 22, + + 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL - 42 * - 77 / - 8 * + 75 - + - CAST ( NULL AS INTEGER ) * + + NULLIF ( + 22, + + 78 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5467
SELECT NULLIF ( - MIN( - 44 ), + NULLIF ( 29, + + 86 ) * + - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + + 29 DIV + COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-5467
SELECT NULLIF ( - MIN ( - 44 ), + NULLIF ( 29, + + 86 ) * + - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + + 29 / + COUNT ( * ) AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5468
SELECT + 59 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT + 59 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL + + 46 * + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL + + 46 * + COUNT ( * )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5470
SELECT DISTINCT - - NULLIF ( - 98, + CAST( + - 60 AS SIGNED ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT - - NULLIF ( - 98, + CAST ( + - 60 AS INTEGER ) ) AS col1
----
-98

query I rowsort
SELECT ALL + + 21 * 48 AS col0
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL + - 54 * + + COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL + - 54 * + + COUNT ( * ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-5473
SELECT DISTINCT - 80 col1, + COUNT( * ) + 6
----
-80
7

skipif mysql # not compatible
query II rowsort label-5473
SELECT DISTINCT - 80 col1, + COUNT ( * ) + 6
----
-80
7

query I rowsort
SELECT 22 * - 55
----
-1210

query II rowsort
SELECT 40 AS col0, + 81 * - + 14 + + 57 AS col0
----
40
-1077

query II rowsort
SELECT - 59, 51 - - 71 AS col0
----
-59
122

query I rowsort
SELECT 12 * - + 53 AS col0
----
-636

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT 48 * - 2 * - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-5478
SELECT 48 * - 2 * - COUNT ( * )
----
96

query I rowsort
SELECT ALL 73 * + 59 * + + 90 AS col1
----
387630

query I rowsort
SELECT 18 - 55 AS col2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT 54 DIV + - ( 46 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5481
SELECT 54 / + - ( 46 ) AS col2
----
-1

query I rowsort
SELECT ALL - 75 * - 72 AS col1
----
5400

query I rowsort
SELECT 37 * - 5 AS col2
----
-185

query I rowsort
SELECT DISTINCT 60 + 83 AS col2
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5485
SELECT COUNT( ALL 27 ) DIV - 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5485
SELECT COUNT ( ALL 27 ) / - 23 AS col0
----
0

query II rowsort
SELECT ALL 37 AS col2, - 45 + - 7
----
37
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL 66 + + - 73 + - - MIN( DISTINCT - + 74 ) * 21
----
-1561

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL 66 + + - 73 + - - MIN ( DISTINCT - + 74 ) * 21
----
-1561

query I rowsort
SELECT ( - 42 ) + + 14 AS col2
----
-28

query II rowsort
SELECT - 91 AS col2, ( - 98 ) * + - 31
----
-91
3038

query I rowsort
SELECT + ( - 13 ) + - - 82 AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5491
SELECT CAST( NULL AS SIGNED ) / - + 21 + + + 73 - COUNT( * ) * - - 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT CAST ( NULL AS INTEGER ) / - + 21 + + + 73 - COUNT ( * ) * - - 26 AS col0
----
NULL

query II rowsort
SELECT ALL - 60, + 83 + + 10 col1
----
-60
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL - 23 + - - 76 * COUNT( * ) col0
----
53

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL - 23 + - - 76 * COUNT ( * ) col0
----
53

query I rowsort
SELECT 62 + + - 78 AS col2
----
-16

query I rowsort
SELECT ALL - + 73 * - - 39 + - 25 AS col2
----
-2872

query I rowsort
SELECT DISTINCT - 96 + 57 * 35
----
1899

query I rowsort
SELECT DISTINCT + - 61 + - + 15 + 22 AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5498
SELECT DISTINCT - - 81, + COALESCE ( + 64, + + 60 DIV 44 - - + 32 * 76, + 77 DIV 24 * - COUNT( * ) ) * + 71 AS col1
----
81
4544

skipif mysql # not compatible
query II rowsort label-5498
SELECT DISTINCT - - 81, + COALESCE ( + 64, + + 60 / 44 - - + 32 * 76, + 77 / 24 * - COUNT ( * ) ) * + 71 AS col1
----
81
4544

query II rowsort
SELECT + - 88 AS col1, - 83
----
-88
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5500
SELECT + 2 * - ( - COUNT( * ) ) DIV 28 * COUNT( - - 37 ) + 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5500
SELECT + 2 * - ( - COUNT ( * ) ) / 28 * COUNT ( - - 37 ) + 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT ALL - + SUM( ALL 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL - + SUM ( ALL 83 )
----
-83

query I rowsort
SELECT + - ( 51 ) AS col0
----
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-5503
SELECT + 14 * - 64 + - + 62 + + 2 * 10 DIV - + 38 AS col0, - 74
----
-958
-74

skipif mysql # not compatible
query II rowsort label-5503
SELECT + 14 * - 64 + - + 62 + + 2 * 10 / - + 38 AS col0, - 74
----
-958
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5504
SELECT + 83 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT + 83 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + - 8 col0, 61 AS col1
----
-8
61

query I rowsort
SELECT + 57 + - 46 AS col0
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-5507
SELECT 57 DIV + 15 AS col0, - 61 * + ( - + 82 )
----
3
5002

skipif mysql # not compatible
query II rowsort label-5507
SELECT 57 / + 15 AS col0, - 61 * + ( - + 82 )
----
3
5002

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT ALL - 30 DIV - 25 + 89 + + - 54 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL - 30 / - 25 + 89 + + - 54 AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5509
SELECT + 51 AS col2, COALESCE ( - MAX( ALL 23 ), + + 65, - 43 DIV - + 91 )
----
51
-23

skipif mysql # not compatible
query II rowsort label-5509
SELECT + 51 AS col2, COALESCE ( - MAX ( ALL 23 ), + + 65, - 43 / - + 91 )
----
51
-23

query II rowsort
SELECT ALL - + 88, 64 + - 69 AS col0
----
-88
-5

query II rowsort
SELECT DISTINCT - 97 * - 74 AS col0, + COALESCE ( + 64, + 26 ) + - 51
----
7178
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5512
SELECT DISTINCT - ( COUNT( * ) ), + 30 AS col0
----
-1
30

skipif mysql # not compatible
query II rowsort label-5512
SELECT DISTINCT - ( COUNT ( * ) ), + 30 AS col0
----
-1
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5513
SELECT 29 - + COUNT( * ) AS col1, - 63 + - 17
----
28
-80

skipif mysql # not compatible
query II rowsort label-5513
SELECT 29 - + COUNT ( * ) AS col1, - 63 + - 17
----
28
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-5514
SELECT COUNT( * ) * - 79 AS col0, 66 * + 64 * - 54 AS col1
----
-79
-228096

skipif mysql # not compatible
query II rowsort label-5514
SELECT COUNT ( * ) * - 79 AS col0, 66 * + 64 * - 54 AS col1
----
-79
-228096

onlyif mysql # DIV for integer division: 
query II rowsort label-5515
SELECT 12 DIV - 59, - 76 AS col2
----
0
-76

skipif mysql # not compatible
query II rowsort label-5515
SELECT 12 / - 59, - 76 AS col2
----
0
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT COUNT( * ) * + 48 col2
----
48

skipif mysql # not compatible
query I rowsort label-5516
SELECT COUNT ( * ) * + 48 col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL - CASE + 67 WHEN + - 21 THEN COALESCE ( + + 31, - 26 - + 9, COUNT( * ) ) WHEN + 27 * - 40 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL - CASE + 67 WHEN + - 21 THEN COALESCE ( + + 31, - 26 - + 9, COUNT ( * ) ) WHEN + 27 * - 40 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5518
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) + - + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + 29
----
NULL

query I rowsort
SELECT 22 * 40 AS col0
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL - 7 * 14 * + + COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL - 7 * 14 * + + COUNT ( * ) AS col2
----
-98

query I rowsort
SELECT 28 + 38
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT DISTINCT - CASE - COUNT( * ) WHEN - COUNT( * ) - - - 52 THEN + 52 * 93 + 86 + - - NULLIF ( 78, - COUNT( 2 ) ) * - - 25 * - + 57 * - 61 * - 44 WHEN 3 - + + 89 THEN NULL WHEN - + 18 - + 8 + - ( + 36 ) THEN NULL ELSE + 36 * - + 95 + - - 18 + - + COUNT( * ) * + 76 + - 51 END + + + 88 * ( + 47 )
----
7665

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - COUNT ( * ) - - - 52 THEN + 52 * 93 + 86 + - - NULLIF ( 78, - COUNT ( 2 ) ) * - - 25 * - + 57 * - 61 * - 44 WHEN 3 - + + 89 THEN NULL WHEN - + 18 - + 8 + - ( + 36 ) THEN NULL ELSE + 36 * - + 95 + - - 18 + - + COUNT ( * ) * + 76 + - 51 END + + + 88 * ( + 47 )
----
7665

query I rowsort
SELECT 47 + + - 20
----
27

query I rowsort
SELECT 53 + + 18 + 41 AS col2
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5525
SELECT CASE + 6 WHEN + + 52 THEN NULL WHEN CAST( ( 65 ) AS SIGNED ) * 61 - - ( + COUNT( * ) ) + + AVG ( - - 26 ) + - 29 * - - 12 THEN + 0 END + - NULLIF ( - 82, 35 + - - 93 + SUM( - 65 ) + + + 1 * 22 * + - CAST( + + 92 AS SIGNED ) * 25 * - 11 / + - ( + - 8 ) * + MIN( - ( 5 ) ) + SUM( + + 0 ) * + - 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT CASE + 6 WHEN + + 52 THEN NULL WHEN CAST ( ( 65 ) AS INTEGER ) * 61 - - ( + COUNT ( * ) ) + + AVG ( - - 26 ) + - 29 * - - 12 THEN + 0 END + - NULLIF ( - 82, 35 + - - 93 + SUM ( - 65 ) + + + 1 * 22 * + - CAST ( + + 92 AS INTEGER ) * 25 * - 11 / + - ( + - 8 ) * + MIN ( - ( 5 ) ) + SUM ( + + 0 ) * + - 91 ) AS col0
----
NULL

query I rowsort
SELECT 37 * - 10 AS col0
----
-370

query II rowsort
SELECT 72 + + + 23 * + 64 - - 19 + 62 * + COALESCE ( + 88, 87 ) + 62 * 83, + 73 + 64 AS col1
----
12165
137

query I rowsort
SELECT DISTINCT 1 + 89
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5529
SELECT ALL 60 + - - ( + 32 ) AS col2, + MIN( - + 86 ) DIV + 99
----
92
0

skipif mysql # not compatible
query II rowsort label-5529
SELECT ALL 60 + - - ( + 32 ) AS col2, + MIN ( - + 86 ) / + 99
----
92
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT DISTINCT 18 * - 31 * + COALESCE ( + + COUNT( - 20 ), - - COUNT( * ), 60 ) DIV COUNT( * ) AS col2
----
-558

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT 18 * - 31 * + COALESCE ( + + COUNT ( - 20 ), - - COUNT ( * ), 60 ) / COUNT ( * ) AS col2
----
-558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5531
SELECT ALL - - 67 DIV - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL - - 67 / - COUNT ( * )
----
-67

query II rowsort
SELECT ALL - 36 * 59 AS col2, 14 * - - 63 + - 55
----
-2124
827

query II rowsort
SELECT DISTINCT - - 17 * + 53 AS col0, - 38
----
901
-38

query I rowsort
SELECT ALL - 86 - - 49
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT CAST( 55 AS SIGNED ) * - 41
----
-2255

skipif mysql # not compatible
query I rowsort label-5535
SELECT CAST ( 55 AS INTEGER ) * - 41
----
-2255

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT + 28 DIV 4
----
7

skipif mysql # not compatible
query I rowsort label-5536
SELECT + 28 / 4
----
7

query I rowsort
SELECT + 67 * - 44 AS col1
----
-2948

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT + ( - COALESCE ( + + 34, - + 34 + - 25, - COUNT( ALL + 33 ) - 47, - 90 * - 66 + - ( - 62 ) ) ) * + 78
----
-2652

skipif mysql # not compatible
query I rowsort label-5538
SELECT + ( - COALESCE ( + + 34, - + 34 + - 25, - COUNT ( ALL + 33 ) - 47, - 90 * - 66 + - ( - 62 ) ) ) * + 78
----
-2652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5539
SELECT DISTINCT + 9 DIV 39 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT + 9 / 39 * - COUNT ( * )
----
0

query I rowsort
SELECT + 80 * + 27 AS col0
----
2160

onlyif mysql # DIV for integer division: 
query I rowsort label-5541
SELECT - 45 DIV 44 DIV + 83 + + 38 + 24 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5541
SELECT - 45 / 44 / + 83 + + 38 + 24 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5542
SELECT DISTINCT + 30 * + CAST( NULL AS SIGNED ) - - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT + 30 * + CAST ( NULL AS INTEGER ) - - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 1 * 73 AS col2
----
-73

query I rowsort
SELECT + + 79 * - 1 AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT + + 10 + + + 14 DIV + ( - COUNT( ALL 86 ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5545
SELECT + + 10 + + + 14 / + ( - COUNT ( ALL 86 ) ) AS col2
----
-4

query I rowsort
SELECT - 74 - + 10 AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5547
SELECT + NULLIF ( - + COUNT( * ), + 59 + COALESCE ( - - COUNT( * ), + - 39 + + COUNT( * ) + + + 94 + + - COALESCE ( - 27, 52 * 14 ) * ( + 21 ) ) - 50 * + 5 / + 76 * 52 * + + 39 * + CAST( NULL AS SIGNED ) + - 98 * - 33 * 55 * + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5547
SELECT + NULLIF ( - + COUNT ( * ), + 59 + COALESCE ( - - COUNT ( * ), + - 39 + + COUNT ( * ) + + + 94 + + - COALESCE ( - 27, 52 * 14 ) * ( + 21 ) ) - 50 * + 5 / + 76 * 52 * + + 39 * + CAST ( NULL AS INTEGER ) + - 98 * - 33 * 55 * + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT + ( + - 67 ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL COUNT( * ) * - + 28 * - 70 AS col2
----
1960

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL COUNT ( * ) * - + 28 * - 70 AS col2
----
1960

query I rowsort
SELECT DISTINCT - 9 * CASE + 75 WHEN 41 THEN - - 30 * - COALESCE ( - ( 8 ), + 87 ) * + 6 + 68 + + - 9 + - 61 END + 90 AS col1
----
NULL

query I rowsort
SELECT - 14 + + 69
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5552
SELECT - COUNT( * ) DIV + COALESCE ( - + 89, COUNT( * ), 90 )
----
0

skipif mysql # not compatible
query I rowsort label-5552
SELECT - COUNT ( * ) / + COALESCE ( - + 89, COUNT ( * ), 90 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5553
SELECT - COUNT( * ) * - 24 * + 33 AS col0, CASE - + 98 WHEN - 46 THEN + + 34 END
----
792
NULL

skipif mysql # not compatible
query II rowsort label-5553
SELECT - COUNT ( * ) * - 24 * + 33 AS col0, CASE - + 98 WHEN - 46 THEN + + 34 END
----
792
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT DISTINCT + 30 DIV + 19
----
1

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + 30 / + 19
----
1

query I rowsort
SELECT - ( - 76 ) col2
----
76

query II rowsort
SELECT - 23 AS col0, + 70 AS col0
----
-23
70

query I rowsort
SELECT DISTINCT - 58 + + 43 + - NULLIF ( 60, - 29 + - 61 )
----
-75

query I rowsort
SELECT ALL + 4 + + 91
----
95

query I rowsort
SELECT - 66 - - 83
----
17

query I rowsort
SELECT - NULLIF ( 99, + 46 - + 99 / - 97 ) * - + NULLIF ( - ( + - 85 ), - + 75 - - - 15 ) * + + 6 * + 77 AS col2
----
3887730

query I rowsort
SELECT ALL + 13 * 41
----
533

query I rowsort
SELECT ALL ( + - 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT SUM( 5 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT SUM ( 5 ) col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT ALL CAST( NULL AS SIGNED ) - + 98 * 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL CAST ( NULL AS INTEGER ) - + 98 * 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL - MIN( + 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - MIN ( + 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT - 29 + SUM( DISTINCT - 40 )
----
-69

skipif mysql # not compatible
query I rowsort label-5566
SELECT - 29 + SUM ( DISTINCT - 40 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT + MAX( ( - + 0 ) ) - + - NULLIF ( 15, 66 ) * - 15
----
-225

skipif mysql # not compatible
query I rowsort label-5567
SELECT + MAX ( ( - + 0 ) ) - + - NULLIF ( 15, 66 ) * - 15
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5568
SELECT - NULLIF ( - + CAST( NULL AS SIGNED ), + 20 * + 5 + + 89 - - + 57 * + 38 ) * - 16 * 45 * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT - NULLIF ( - + CAST ( NULL AS INTEGER ), + 20 * + 5 + + 89 - - + 57 * + 38 ) * - 16 * 45 * 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL - CASE + 36 WHEN + - COUNT( * ) THEN CAST( 93 AS SIGNED ) * + 8 - + - 17 * + + 67 + 55 END - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - CASE + 36 WHEN + - COUNT ( * ) THEN CAST ( 93 AS INTEGER ) * + 8 - + - 17 * + + 67 + 55 END - 27 AS col2
----
NULL

query II rowsort
SELECT 35 AS col2, 59
----
35
59

query I rowsort
SELECT ALL - 64 * 94
----
-6016

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT DISTINCT + 53 DIV - 60
----
0

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT + 53 / - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT + + COUNT( * ) + - 86
----
-85

skipif mysql # not compatible
query I rowsort label-5573
SELECT + + COUNT ( * ) + - 86
----
-85

query I rowsort
SELECT ALL + + 47 * - 37
----
-1739

query I rowsort
SELECT + 1 * 64 AS col1
----
64

query I rowsort
SELECT + 14 * COALESCE ( 74, 66 ) AS col1
----
1036

query I rowsort
SELECT DISTINCT + + ( 56 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT - 67 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-5578
SELECT - 67 / - 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + - COUNT( * ) * + 41 - + 60 AS col2
----
-101

skipif mysql # not compatible
query I rowsort label-5579
SELECT + - COUNT ( * ) * + 41 - + 60 AS col2
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-5580
SELECT DISTINCT + 32 DIV - 98 + + ( + 38 ) - + - 53 + - + 98 + 72 * - 10
----
-727

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT + 32 / - 98 + + ( + 38 ) - + - 53 + - + 98 + 72 * - 10
----
-727

query I rowsort
SELECT ( + 43 ) col1
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT + 68 * - CAST( + COUNT( * ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-5582
SELECT + 68 * - CAST ( + COUNT ( * ) AS INTEGER )
----
-68

query I rowsort
SELECT ALL + 59 * - 52 + 38 AS col1
----
-3030

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT + 56 + - 26 DIV + + 7 + + + COUNT( * ) + + 50 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-5584
SELECT + 56 + - 26 / + + 7 + + + COUNT ( * ) + + 50 AS col0
----
104

query I rowsort
SELECT ALL 26 * 73 * - 88
----
-167024

query II rowsort
SELECT + 32 * 74 AS col2, + 92 AS col1
----
2368
92

query I rowsort
SELECT DISTINCT 27 * 64 + 65
----
1793

query I rowsort
SELECT ALL 33 * + - 84 + + 25 AS col2
----
-2747

query I rowsort
SELECT ( - 74 ) AS col1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * - + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * - + 81
----
NULL

query I rowsort
SELECT + 96 + 59 - 29 * + 91 * + 10 * - 53
----
1398825

query I rowsort
SELECT + ( - - 33 )
----
33

query I rowsort
SELECT NULLIF ( + 94, - 51 + + - 3 * - 64 ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5594
SELECT ALL ( - + 33 ) * - 23 + + + COALESCE ( - COUNT( DISTINCT 3 ), + + SUM( - 92 ), ( - ( + - 35 ) ) * + 76 DIV + ( + NULLIF ( ( CAST( COUNT( * ) AS SIGNED ) ), + 76 ) ) ) col2
----
758

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL ( - + 33 ) * - 23 + + + COALESCE ( - COUNT ( DISTINCT 3 ), + + SUM ( - 92 ), ( - ( + - 35 ) ) * + 76 / + ( + NULLIF ( ( CAST ( COUNT ( * ) AS INTEGER ) ), + 76 ) ) ) col2
----
758

query I rowsort
SELECT CASE 8 WHEN + + 16 THEN - 89 + - 86 ELSE + 26 END AS col0
----
26

query I rowsort
SELECT + CASE + 16 WHEN - 10 THEN NULL ELSE + + 58 END * 64 + 93
----
3805

query I rowsort
SELECT + 42 + 80
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL - 39 * 31 * + ( + + 97 ) - - 28 + - COUNT( * ) AS col1
----
-117246

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - 39 * 31 * + ( + + 97 ) - - 28 + - COUNT ( * ) AS col1
----
-117246

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5599
SELECT ALL + 81 / + - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) / 31, + 36 AS col0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-5599
SELECT ALL + 81 / + - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) / 31, + 36 AS col0
----
NULL
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5600
SELECT - ( + SUM( DISTINCT - - 65 ) ) + CAST( + ( - + 50 ) AS SIGNED ) + + 36 + - + COUNT( * ) + + - 59 - + 17 DIV + + 89 + 27 + + + 89 + 64 * - - 22 * 44 * 28 * + 33 AS col1
----
57243625

skipif mysql # not compatible
query I rowsort label-5600
SELECT - ( + SUM ( DISTINCT - - 65 ) ) + CAST ( + ( - + 50 ) AS INTEGER ) + + 36 + - + COUNT ( * ) + + - 59 - + 17 / + + 89 + 27 + + + 89 + 64 * - - 22 * 44 * 28 * + 33 AS col1
----
57243625

query I rowsort
SELECT ALL 25 * 25 - 15 * - + 76 AS col1
----
1765

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT - ( - + 22 ) * - CASE 86 WHEN + 66 - CASE WHEN NOT SUM( + + 57 ) >= 2 * + 3 THEN 42 END + + + 70 * - + 48 THEN 31 * - + 16 * + 0 * + - COUNT( * ) ELSE - 28 END AS col1
----
616

skipif mysql # not compatible
query I rowsort label-5602
SELECT - ( - + 22 ) * - CASE 86 WHEN + 66 - CASE WHEN NOT SUM ( + + 57 ) >= 2 * + 3 THEN 42 END + + + 70 * - + 48 THEN 31 * - + 16 * + 0 * + - COUNT ( * ) ELSE - 28 END AS col1
----
616

query I rowsort
SELECT - 74 * - + 29
----
2146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5604
SELECT ALL + + COUNT( * ) DIV - - NULLIF ( + 6, 16 ) * + + 32
----
0

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL + + COUNT ( * ) / - - NULLIF ( + 6, 16 ) * + + 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT COUNT( DISTINCT + 48 ) + 47
----
48

skipif mysql # not compatible
query I rowsort label-5605
SELECT COUNT ( DISTINCT + 48 ) + 47
----
48

query I rowsort
SELECT ALL - COALESCE ( 84, + 15 + + + 75, - 73 ) AS col0
----
-84

query I rowsort
SELECT + ( 1 ) * + 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT COUNT( - - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-5608
SELECT COUNT ( - - 69 )
----
1

query I rowsort
SELECT ALL ( + + 57 ) AS col2
----
57

query I rowsort
SELECT - CASE 66 WHEN - 18 THEN 42 END AS col0
----
NULL

query I rowsort
SELECT ALL + - 95 * - ( + - 69 ) + ( - 59 ) AS col0
----
-6614

query I rowsort
SELECT 94 * - 62
----
-5828

onlyif mysql # aggregate syntax: 
query II rowsort label-5613
SELECT 55 * + COUNT( * ), 88 col2
----
55
88

skipif mysql # not compatible
query II rowsort label-5613
SELECT 55 * + COUNT ( * ), 88 col2
----
55
88

query I rowsort
SELECT 42 - + 41 + + 4
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT + - SUM( - 36 ) col1
----
36

skipif mysql # not compatible
query I rowsort label-5615
SELECT + - SUM ( - 36 ) col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT COUNT( * ) - - - CASE 63 WHEN - + CASE + + 63 WHEN + - 36 THEN + + 16 END * - 97 THEN + 48 + 76 ELSE NULL END + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT COUNT ( * ) - - - CASE 63 WHEN - + CASE + + 63 WHEN + - 36 THEN + + 16 END * - 97 THEN + 48 + 76 ELSE NULL END + 16 AS col2
----
NULL

query I rowsort
SELECT ALL + 48 * 42
----
2016

query I rowsort
SELECT DISTINCT 85 + 21 + - + 96 * 1 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT 44 + + - COUNT( - 77 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT 44 + + - COUNT ( - 77 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL - CASE 13 WHEN + 83 * - 99 * + - COUNT( * ) * 29 + - - 42 + + 38 THEN NULL ELSE COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL - CASE 13 WHEN + 83 * - 99 * + - COUNT ( * ) * 29 + - - 42 + + 38 THEN NULL ELSE COUNT ( * ) END AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5621
SELECT 21 + COUNT( * ) + - 94 + + COUNT( * ) + - COALESCE ( - COUNT( * ), 19 ) * COUNT( * ) DIV + + 19 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5621
SELECT 21 + COUNT ( * ) + - 94 + + COUNT ( * ) + - COALESCE ( - COUNT ( * ), 19 ) * COUNT ( * ) / + + 19 AS col0
----
-71

query I rowsort
SELECT DISTINCT ( + 74 ) + - + 97
----
-23

query I rowsort
SELECT 47 * - 79
----
-3713

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT + 58 - 43 + - + 76 + + + 4 * - COUNT( 92 ) + 93
----
28

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + 58 - 43 + - + 76 + + + 4 * - COUNT ( 92 ) + 93
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT DISTINCT 95 - + - 61 - - - 51 * - ( - - 64 ) + + CAST( + + 87 AS SIGNED ) AS col2
----
3507

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT 95 - + - 61 - - - 51 * - ( - - 64 ) + + CAST ( + + 87 AS INTEGER ) AS col2
----
3507

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT DISTINCT COUNT( ALL + 10 ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT COUNT ( ALL + 10 ) * + 27
----
27

query I rowsort
SELECT DISTINCT 32 * 43 + + + 91
----
1467

query I rowsort
SELECT ALL + 88 - 7 AS col1
----
81

query II rowsort
SELECT 39 * - 46 * - 78, 3 AS col2
----
139932
3

query I rowsort
SELECT DISTINCT + 86 * 15 * + - 99 AS col2
----
-127710

query I rowsort
SELECT 31 - - - 40
----
-9

query II rowsort
SELECT ALL 53 AS col1, 1
----
53
1

query II rowsort
SELECT DISTINCT - 14 * + 4 * + 86 AS col0, - 42 * + - ( 36 ) AS col0
----
-4816
1512

query I rowsort
SELECT - 74 * 66 AS col1
----
-4884

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT COUNT( * ) + - - 75 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5635
SELECT COUNT ( * ) + - - 75 AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + COUNT( DISTINCT - COALESCE ( 4, - 39 * 30 ) ) - + 33 * + 14
----
-461

skipif mysql # not compatible
query I rowsort label-5636
SELECT + COUNT ( DISTINCT - COALESCE ( 4, - 39 * 30 ) ) - + 33 * + 14
----
-461

query II rowsort
SELECT + 27 + ( COALESCE ( 80, - 72 ) ) AS col0, 93
----
107
93

query I rowsort
SELECT 1 - + + 43
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5639
SELECT + 40 + + SUM( ALL - CAST( NULL AS SIGNED ) ) * - 52 * + 2 / + - 23 * + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT + 40 + + SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - 52 * + 2 / + - 23 * + 43 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5640
SELECT COALESCE ( - CAST( + - NULLIF ( + 98, - 70 * COUNT( * ) ) AS SIGNED ), - 99 DIV ( + NULLIF ( + ( CAST( MAX( ALL - + 7 ) AS SIGNED ) ), - 44 ) ) - + 21 + SUM( ALL + 31 ) + + - COUNT( * ), - 77 * + 91 * - 75 + + + 43 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5640
SELECT COALESCE ( - CAST ( + - NULLIF ( + 98, - 70 * COUNT ( * ) ) AS INTEGER ), - 99 / ( + NULLIF ( + ( CAST ( MAX ( ALL - + 7 ) AS INTEGER ) ), - 44 ) ) - + 21 + SUM ( ALL + 31 ) + + - COUNT ( * ), - 77 * + 91 * - 75 + + + 43 ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5641
SELECT - 76 + + CASE + 59 WHEN - CASE - COUNT( * ) WHEN - 42 THEN NULL ELSE - 80 END + + CASE + - 39 WHEN - 48 + + ( - 76 ) THEN - 38 / + 6 + 88 WHEN + 73 THEN NULL WHEN - + COALESCE ( + - 68, + 40 * - - 97 + 6 ) / - - 2 THEN 97 + 47 + - COALESCE ( 26, + 80 ) END THEN + 86 * 56 - 18 WHEN 26 * + 13 THEN NULL ELSE NULL END / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT - 76 + + CASE + 59 WHEN - CASE - COUNT ( * ) WHEN - 42 THEN NULL ELSE - 80 END + + CASE + - 39 WHEN - 48 + + ( - 76 ) THEN - 38 / + 6 + 88 WHEN + 73 THEN NULL WHEN - + COALESCE ( + - 68, + 40 * - - 97 + 6 ) / - - 2 THEN 97 + 47 + - COALESCE ( 26, + 80 ) END THEN + 86 * 56 - 18 WHEN 26 * + 13 THEN NULL ELSE NULL END / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5642
SELECT ALL 46 + COUNT( * ) DIV + 86
----
46

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL 46 + COUNT ( * ) / + 86
----
46

query I rowsort
SELECT DISTINCT ( - 39 ) * 58 * 32 + 76
----
-72308

query I rowsort
SELECT DISTINCT - COALESCE ( 23, - 27 ) col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5645
SELECT - CASE - SUM( + + 64 ) WHEN 33 THEN 70 * + COUNT( * ) * 95 * + 49 + 86 + + 16 / + ( - 92 ) WHEN - 95 * 62 THEN + CAST( + CASE + 21 WHEN - ( + 84 ) THEN - 60 * + 64 END AS SIGNED ) END * - 42 * - + COUNT( * ) + + CASE 30 WHEN 8 THEN + 5 * COUNT( * ) + - + 86 WHEN - 96 THEN NULL WHEN - 8 + + 54 THEN - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5645
SELECT - CASE - SUM ( + + 64 ) WHEN 33 THEN 70 * + COUNT ( * ) * 95 * + 49 + 86 + + 16 / + ( - 92 ) WHEN - 95 * 62 THEN + CAST ( + CASE + 21 WHEN - ( + 84 ) THEN - 60 * + 64 END AS INTEGER ) END * - 42 * - + COUNT ( * ) + + CASE 30 WHEN 8 THEN + 5 * COUNT ( * ) + - + 86 WHEN - 96 THEN NULL WHEN - 8 + + 54 THEN - 26 END
----
NULL

query I rowsort
SELECT 31 * + 33 AS col2
----
1023

query II rowsort
SELECT ALL - 2 AS col2, 8 AS col1
----
-2
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5648
SELECT COUNT( * ), + ( - - 30 ) col2
----
1
30

skipif mysql # not compatible
query II rowsort label-5648
SELECT COUNT ( * ), + ( - - 30 ) col2
----
1
30

query I rowsort
SELECT DISTINCT - 99 * + 51
----
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL - ( - MAX( + 52 ) )
----
52

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL - ( - MAX ( + 52 ) )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT 53 + - ( + 3 ) + - 91 + - 92 - - MIN( DISTINCT - 25 )
----
-158

skipif mysql # not compatible
query I rowsort label-5651
SELECT 53 + - ( + 3 ) + - 91 + - 92 - - MIN ( DISTINCT - 25 )
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5652
SELECT DISTINCT + COUNT( * ) * CAST( + 17 AS SIGNED ) * + 38 * + - 30 - + COUNT( * ) DIV - + MIN( - 74 )
----
-19380

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT + COUNT ( * ) * CAST ( + 17 AS INTEGER ) * + 38 * + - 30 - + COUNT ( * ) / - + MIN ( - 74 )
----
-19380

query I rowsort
SELECT 63 + - 61
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT SUM( ALL 73 ) * + 50 - - 84 + - + 48
----
3686

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT SUM ( ALL 73 ) * + 50 - - 84 + - + 48
----
3686

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT DISTINCT - 0 * + - ( + + MAX( ALL - 2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT - 0 * + - ( + + MAX ( ALL - 2 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5656
SELECT ALL - 46 AS col0, 22 * - - 40 + - 74 * - CAST( + 92 AS SIGNED )
----
-46
7688

skipif mysql # not compatible
query II rowsort label-5656
SELECT ALL - 46 AS col0, 22 * - - 40 + - 74 * - CAST ( + 92 AS INTEGER )
----
-46
7688

query I rowsort
SELECT 82 * - 72
----
-5904

query I rowsort
SELECT 9 * + 25 / - CASE 86 WHEN 37 THEN - - 57 * + 27 END - 10 - - - 61 * - + 76 + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT COUNT( DISTINCT 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5659
SELECT COUNT ( DISTINCT 2 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT + ( 30 ) * + + 69 + - COUNT( 84 )
----
2069

skipif mysql # not compatible
query I rowsort label-5660
SELECT + ( 30 ) * + + 69 + - COUNT ( 84 )
----
2069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT + CAST( 75 AS SIGNED ) + + 80
----
155

skipif mysql # not compatible
query I rowsort label-5661
SELECT + CAST ( 75 AS INTEGER ) + + 80
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5662
SELECT + 48 DIV + - 91 * + - SUM( - - 62 )
----
0

skipif mysql # not compatible
query I rowsort label-5662
SELECT + 48 / + - 91 * + - SUM ( - - 62 )
----
0

query I rowsort
SELECT + 65 + - 56 AS col2
----
9

query I rowsort
SELECT - 99 * + 10 + 74 AS col1
----
-916

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT - 8 * - + 5 + + COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5665
SELECT - 8 * - + 5 + + COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL + COUNT( ALL 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL + COUNT ( ALL 75 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT + 31 + - COUNT( 85 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5667
SELECT + 31 + - COUNT ( 85 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL - ( + MIN( 66 ) ) * 8 col1
----
-528

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - ( + MIN ( 66 ) ) * 8 col1
----
-528

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT DISTINCT + 65 DIV + - 15
----
-4

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT + 65 / + - 15
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL + COUNT( * ) * 52
----
52

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL + COUNT ( * ) * 52
----
52

query I rowsort
SELECT - + ( ( - 63 ) ) AS col0
----
63

query I rowsort
SELECT ALL - 32 + 25 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT + - 21 + + + 69 + COUNT( * ) * - 5 + - ( - 76 ) * + 10 + - - 34
----
837

skipif mysql # not compatible
query I rowsort label-5673
SELECT + - 21 + + + 69 + COUNT ( * ) * - 5 + - ( - 76 ) * + 10 + - - 34
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT + + 52 * COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5674
SELECT + + 52 * COUNT ( * ) AS col2
----
52

query I rowsort
SELECT + ( + ( - 67 ) ) + 5
----
-62

query I rowsort
SELECT ALL 50 + + 13 + 7
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + 94 + + CASE + 62 WHEN + - SUM( - ( - + 47 ) ) THEN + - 8 WHEN + + 89 * - 47 + + + 63 THEN NULL ELSE NULL END * 21 / + 10 * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT + 94 + + CASE + 62 WHEN + - SUM ( - ( - + 47 ) ) THEN + - 8 WHEN + + 89 * - 47 + + + 63 THEN NULL ELSE NULL END * 21 / + 10 * + 68
----
NULL

query I rowsort
SELECT ALL 77 + + 87 * + - 72 + 73 AS col2
----
-6114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5679
SELECT + 47 * - 13 + COUNT( * ) DIV - 12 * 28
----
-611

skipif mysql # not compatible
query I rowsort label-5679
SELECT + 47 * - 13 + COUNT ( * ) / - 12 * 28
----
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL - 80 * SUM( DISTINCT - 81 ) AS col1
----
6480

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL - 80 * SUM ( DISTINCT - 81 ) AS col1
----
6480

query II rowsort
SELECT 46 col0, - 20 - - - 44 - + 8 * + ( - 3 ) * + 14 AS col0
----
46
272

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT ALL COUNT( + 2 ), 75 AS col0
----
1
75

skipif mysql # not compatible
query II rowsort label-5682
SELECT ALL COUNT ( + 2 ), 75 AS col0
----
1
75

query II rowsort
SELECT 84 AS col2, + 58 + - - COALESCE ( - 83, 35 + 12, + ( 64 ) + - ( - 33 ) ) + 58 AS col0
----
84
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5684
SELECT + - COUNT( * ) DIV + - 78, - ( - - 45 ) AS col0
----
0
-45

skipif mysql # not compatible
query II rowsort label-5684
SELECT + - COUNT ( * ) / + - 78, - ( - - 45 ) AS col0
----
0
-45

query II rowsort
SELECT - ( - 34 ) AS col2, 59
----
34
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT ALL CAST( + - 17 AS SIGNED ) + NULLIF ( - 16, + + 25 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL CAST ( + - 17 AS INTEGER ) + NULLIF ( - 16, + + 25 ) AS col1
----
-33

query I rowsort
SELECT + 80 - + + 67 AS col0
----
13

query I rowsort
SELECT + 56 - 3 + + ( + 3 ) + 58 - - - 73 * - 7 col0
----
625

query I rowsort
SELECT ALL 67 * - 40 * + 60 * + 86
----
-13828800

query I rowsort
SELECT + 73 * + 80 AS col2
----
5840

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5691
SELECT ( + 16 ) col0, + CAST( 86 AS SIGNED ) + + - 60
----
16
26

skipif mysql # not compatible
query II rowsort label-5691
SELECT ( + 16 ) col0, + CAST ( 86 AS INTEGER ) + + - 60
----
16
26

query II rowsort
SELECT + ( 76 ) AS col1, - 36
----
76
-36

query I rowsort
SELECT ( + 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5694
SELECT ALL - 13 * - COUNT( * ) * + 31 AS col2, + COUNT( * )
----
403
1

skipif mysql # not compatible
query II rowsort label-5694
SELECT ALL - 13 * - COUNT ( * ) * + 31 AS col2, + COUNT ( * )
----
403
1

query I rowsort
SELECT ALL + 58 * + 31
----
1798

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT + COUNT( * ) - - COALESCE ( + - 44, + + 36 + - - 84, + + 45 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-5696
SELECT + COUNT ( * ) - - COALESCE ( + - 44, + + 36 + - - 84, + + 45 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT - 2 - - CASE - NULLIF ( 82, + ( - 0 ) + + 59 * - 59 + + 74 * - - 79 ) WHEN + + 81 - + 23 - + - COUNT( * ) THEN 79 WHEN - + 44 THEN NULL ELSE NULL END - + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT - 2 - - CASE - NULLIF ( 82, + ( - 0 ) + + 59 * - 59 + + 74 * - - 79 ) WHEN + + 81 - + 23 - + - COUNT ( * ) THEN 79 WHEN - + 44 THEN NULL ELSE NULL END - + 6 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 20 col0
----
20

query I rowsort
SELECT + 66 + + - 6 * + - 56 * - 10 AS col1
----
-3294

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT - 72 * + NULLIF ( + 29, - COUNT( * ) ) col2
----
-2088

skipif mysql # not compatible
query I rowsort label-5700
SELECT - 72 * + NULLIF ( + 29, - COUNT ( * ) ) col2
----
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT ALL + COALESCE ( + - 13, + 69, + + CASE 24 WHEN 0 + + 29 THEN NULL WHEN + 19 * + - 15 / - 53 + + COALESCE ( SUM( DISTINCT 96 ), + - 14 ) + + + 50 THEN NULL WHEN - 88 THEN 8 + - 8 ELSE 58 END ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL + COALESCE ( + - 13, + 69, + + CASE 24 WHEN 0 + + 29 THEN NULL WHEN + 19 * + - 15 / - 53 + + COALESCE ( SUM ( DISTINCT 96 ), + - 14 ) + + + 50 THEN NULL WHEN - 88 THEN 8 + - 8 ELSE 58 END ) AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5702
SELECT COALESCE ( - SUM( - - CAST( + + 55 AS SIGNED ) ), 94, - 15 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-5702
SELECT COALESCE ( - SUM ( - - CAST ( + + 55 AS INTEGER ) ), 94, - 15 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5703
SELECT COALESCE ( - COALESCE ( - 4, 26 * - + 93 * COUNT( * ) ), + COUNT( * ) - - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ), + - 86 * + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * 38 )
----
4

skipif mysql # not compatible
query I rowsort label-5703
SELECT COALESCE ( - COALESCE ( - 4, 26 * - + 93 * COUNT ( * ) ), + COUNT ( * ) - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ), + - 86 * + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * 38 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5704
SELECT - COUNT( * ) * COUNT( * ) DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-5704
SELECT - COUNT ( * ) * COUNT ( * ) / - 10
----
0

query I rowsort
SELECT DISTINCT + + 71 col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5706
SELECT + SUM( - 13 ), - ( 72 ) + + CAST( NULL AS DECIMAL ) + 50 * 31 * + 38 / + - 60 AS col0
----
-13
NULL

skipif mysql # not compatible
query II rowsort label-5706
SELECT + SUM ( - 13 ), - ( 72 ) + + CAST ( NULL AS REAL ) + 50 * 31 * + 38 / + - 60 AS col0
----
-13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT - - 41 * - - MAX( - - 62 )
----
2542

skipif mysql # not compatible
query I rowsort label-5707
SELECT - - 41 * - - MAX ( - - 62 )
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT - 95 + + COALESCE ( - MAX( ALL + 26 ), CASE - MAX( + 7 ) WHEN + - 21 / 66 + 80 + + 10 + + 73 * + + COUNT( * ) * + 53 * 82 + 24 * - + 30 THEN + 37 WHEN - NULLIF ( 82, - 75 ) THEN - COUNT( * ) - 35 ELSE NULL END, - + 86 * - + 63 )
----
-121

skipif mysql # not compatible
query I rowsort label-5708
SELECT - 95 + + COALESCE ( - MAX ( ALL + 26 ), CASE - MAX ( + 7 ) WHEN + - 21 / 66 + 80 + + 10 + + 73 * + + COUNT ( * ) * + 53 * 82 + 24 * - + 30 THEN + 37 WHEN - NULLIF ( 82, - 75 ) THEN - COUNT ( * ) - 35 ELSE NULL END, - + 86 * - + 63 )
----
-121

query I rowsort
SELECT + 65 * + 13 * 46 col0
----
38870

query II rowsort
SELECT ALL - - 7 * 77 + + 50 AS col1, 20
----
589
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5711
SELECT ALL SUM( + 70 ) AS col2, - 87
----
70
-87

skipif mysql # not compatible
query II rowsort label-5711
SELECT ALL SUM ( + 70 ) AS col2, - 87
----
70
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT - - COUNT( * ) + - 54 + - - ( + + COUNT( - 88 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-5712
SELECT - - COUNT ( * ) + - 54 + - - ( + + COUNT ( - 88 ) )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5713
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * + + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * + + 89 AS col2
----
NULL

query I rowsort
SELECT ALL + + 21 - - 75 * - + NULLIF ( - 81, - CASE + + 30 WHEN + 64 THEN NULL WHEN + ( 74 ) THEN + ( 18 ) END + + 16 ) AS col0
----
6096

query II rowsort
SELECT - 11 + + 66 col1, 73 - - - 6 AS col1
----
55
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5716
SELECT - COUNT( * ), 96 AS col0
----
-1
96

skipif mysql # not compatible
query II rowsort label-5716
SELECT - COUNT ( * ), 96 AS col0
----
-1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT - MAX( + - 73 ) + + 10
----
83

skipif mysql # not compatible
query I rowsort label-5717
SELECT - MAX ( + - 73 ) + + 10
----
83

query I rowsort
SELECT + ( + 96 ) - - 53 AS col0
----
149

query I rowsort
SELECT + 32 + + CASE + ( - NULLIF ( - - ( 35 ), + 71 ) ) WHEN + 34 THEN NULL ELSE + 12 * - 19 END AS col1
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT + COUNT( * ) + 6 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-5720
SELECT + COUNT ( * ) + 6 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5721
SELECT ALL + COALESCE ( 14, CAST( + - 64 AS SIGNED ) ) * + 54 AS col2
----
756

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + COALESCE ( 14, CAST ( + - 64 AS INTEGER ) ) * + 54 AS col2
----
756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5722
SELECT + 26 + - - 53 * + 7 + + CASE WHEN NOT - 20 < 89 OR NOT 34 + + 16 - - + 21 * + 47 < 75 * - CASE - + CAST( + 41 AS SIGNED ) WHEN - + COALESCE ( - 18, 77 * 64 * - 29 ) THEN NULL WHEN - CAST( + 56 AS SIGNED ) THEN NULL ELSE CASE 37 WHEN + 8 + 95 THEN 83 * - 33 ELSE + MIN( DISTINCT - 23 ) + + 91 END END THEN + + 73 + 16 END + 72 AS col2, + 33 * - - ( + 42 ) AS col0
----
558
1386

skipif mysql # not compatible
query II rowsort label-5722
SELECT + 26 + - - 53 * + 7 + + CASE WHEN NOT - 20 < 89 OR NOT 34 + + 16 - - + 21 * + 47 < 75 * - CASE - + CAST ( + 41 AS INTEGER ) WHEN - + COALESCE ( - 18, 77 * 64 * - 29 ) THEN NULL WHEN - CAST ( + 56 AS INTEGER ) THEN NULL ELSE CASE 37 WHEN + 8 + 95 THEN 83 * - 33 ELSE + MIN ( DISTINCT - 23 ) + + 91 END END THEN + + 73 + 16 END + 72 AS col2, + 33 * - - ( + 42 ) AS col0
----
558
1386

onlyif mysql # aggregate syntax: 
query II rowsort label-5723
SELECT ALL CASE - 72 WHEN + - SUM( DISTINCT - 66 ) - + 38 * - + 16 - - - 92 - - 29 * - + 7 - - - 64 THEN - 81 + - COUNT( * ) * + + COALESCE ( + 70, 21 ) / - + 58 ELSE 34 - + 82 END AS col0, 72 + - 91 * + 88 * 44 + ( 48 ) AS col0
----
-48
-352232

skipif mysql # not compatible
query II rowsort label-5723
SELECT ALL CASE - 72 WHEN + - SUM ( DISTINCT - 66 ) - + 38 * - + 16 - - - 92 - - 29 * - + 7 - - - 64 THEN - 81 + - COUNT ( * ) * + + COALESCE ( + 70, 21 ) / - + 58 ELSE 34 - + 82 END AS col0, 72 + - 91 * + 88 * 44 + ( 48 ) AS col0
----
-48
-352232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT 53 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT 53 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5725
SELECT + 69 AS col0, - CAST( NULL AS DECIMAL ) AS col1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-5725
SELECT + 69 AS col0, - CAST ( NULL AS REAL ) AS col1
----
69
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT ALL 78 / - 8 / ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL 78 / - 8 / ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 47 * + 9 + 57 + 67 * - + 91 - ( + 75 ) AS col2
----
-5692

query I rowsort
SELECT 98 * + - 82 AS col2
----
-8036

query I rowsort
SELECT 27 * + 83 + - - 60 + + 60
----
2361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5730
SELECT DISTINCT COUNT( * ) * - 12 DIV + 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT COUNT ( * ) * - 12 / + 71 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5731
SELECT ALL 42 DIV + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL 42 / + 90 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT CAST( - 60 AS SIGNED ) + + - ( - - COALESCE ( - ( 65 ), - 97, COUNT( * ) - + NULLIF ( - 5, - 85 ) ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5732
SELECT CAST ( - 60 AS INTEGER ) + + - ( - - COALESCE ( - ( 65 ), - 97, COUNT ( * ) - + NULLIF ( - 5, - 85 ) ) ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5733
SELECT DISTINCT + COUNT( * ) * SUM( - 22 ), 5 AS col0
----
-22
5

skipif mysql # not compatible
query II rowsort label-5733
SELECT DISTINCT + COUNT ( * ) * SUM ( - 22 ), 5 AS col0
----
-22
5

query II rowsort
SELECT DISTINCT 77 + - 57 + - 55 col2, 33 col1
----
-35
33

query II rowsort
SELECT ALL - + 43 AS col2, 34
----
-43
34

query I rowsort
SELECT ALL 83 + 91
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5737
SELECT CAST( NULL AS SIGNED ), 11 AS col0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-5737
SELECT CAST ( NULL AS INTEGER ), 11 AS col0
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT 17 + + 78 * + - COUNT( * ) col0
----
-61

skipif mysql # not compatible
query I rowsort label-5738
SELECT 17 + + 78 * + - COUNT ( * ) col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5739
SELECT - - MAX( 7 ) * - - 17 + 99, - CAST( 2 AS SIGNED ) AS col2
----
218
-2

skipif mysql # not compatible
query II rowsort label-5739
SELECT - - MAX ( 7 ) * - - 17 + 99, - CAST ( 2 AS INTEGER ) AS col2
----
218
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5740
SELECT 21 AS col0, + 59 DIV + COUNT( * )
----
21
59

skipif mysql # not compatible
query II rowsort label-5740
SELECT 21 AS col0, + 59 / + COUNT ( * )
----
21
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT + + SUM( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-5741
SELECT + + SUM ( + 85 )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5742
SELECT + 63 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT + 63 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 61 + 71 + 11 - + 81 + + - 29 * - + 29 col0
----
903

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT - 52 * - 61 - - CAST( NULL AS SIGNED ) * 46 + + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT - 52 * - 61 - - CAST ( NULL AS INTEGER ) * 46 + + 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT 86 + + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5745
SELECT 86 + + COUNT ( * ) AS col0
----
87

query II rowsort
SELECT ALL 44, 51 AS col0
----
44
51

onlyif mysql # DIV for integer division: 
query II rowsort label-5747
SELECT ALL + 22, 61 DIV + + 69 * 32 + + + 29 AS col2
----
22
29

skipif mysql # not compatible
query II rowsort label-5747
SELECT ALL + 22, 61 / + + 69 * 32 + + + 29 AS col2
----
22
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT + + 67 * + + COUNT( * ) * 67 + 93 - 50 * ( + + 69 )
----
1132

skipif mysql # not compatible
query I rowsort label-5748
SELECT + + 67 * + + COUNT ( * ) * 67 + 93 - 50 * ( + + 69 )
----
1132

query I rowsort
SELECT + 79 + + + 64
----
143

query I rowsort
SELECT ( - - 39 ) AS col0
----
39

query I rowsort
SELECT 40 * 10
----
400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5752
SELECT 47 DIV - MIN( DISTINCT - + 94 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5752
SELECT 47 / - MIN ( DISTINCT - + 94 ) col0
----
0

query I rowsort
SELECT ALL + CASE - 42 WHEN - - 56 THEN - 40 END * 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5754
SELECT DISTINCT - 41 DIV - 38
----
1

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT - 41 / - 38
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT 56 - + 46 * + COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-5755
SELECT 56 - + 46 * + COUNT ( * ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT DISTINCT 37 + - MAX( - + 52 ) + - 84
----
5

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT 37 + - MAX ( - + 52 ) + - 84
----
5

query I rowsort
SELECT 65 + + 21 + + 41
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT SUM( - 24 ) * - 33
----
792

skipif mysql # not compatible
query I rowsort label-5758
SELECT SUM ( - 24 ) * - 33
----
792

query II rowsort
SELECT COALESCE ( + 24, - 37 ) + 30 AS col1, 72
----
54
72

query I rowsort
SELECT DISTINCT + 69 + - - 55
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT DISTINCT - 5 + 15 * + COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT - 5 + 15 * + COUNT ( * ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT ( COUNT( * ) ) + 28
----
29

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT ( COUNT ( * ) ) + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT ALL 72 + - COUNT( ALL + - 67 )
----
71

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL 72 + - COUNT ( ALL + - 67 )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5764
SELECT - 4 * 69 * + 7 + + 8 DIV 27 DIV 51 AS col2
----
-1932

skipif mysql # not compatible
query I rowsort label-5764
SELECT - 4 * 69 * + 7 + + 8 / 27 / 51 AS col2
----
-1932

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT 99 + + COUNT( * ) * + 48
----
147

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT 99 + + COUNT ( * ) * + 48
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT COUNT( DISTINCT + - 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5766
SELECT COUNT ( DISTINCT + - 27 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT ALL 17 + + 79 + + 34 + + CAST( + - 41 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL 17 + + 79 + + 34 + + CAST ( + - 41 AS INTEGER ) AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5768
SELECT - 86 * + 46, COALESCE ( + COUNT( DISTINCT + 1 ), 25, - CAST( - + CASE 29 WHEN MIN( + - 10 ) * - - COUNT( * ) * 60 + + + ( 20 ) + - 12 + - 1 * - 26 * + CAST( + 13 AS SIGNED ) + - 84 THEN NULL WHEN - 72 THEN 22 + - CAST( NULL AS SIGNED ) END AS SIGNED ), - 67 ) AS col2
----
-3956
1

skipif mysql # not compatible
query II rowsort label-5768
SELECT - 86 * + 46, COALESCE ( + COUNT ( DISTINCT + 1 ), 25, - CAST ( - + CASE 29 WHEN MIN ( + - 10 ) * - - COUNT ( * ) * 60 + + + ( 20 ) + - 12 + - 1 * - 26 * + CAST ( + 13 AS INTEGER ) + - 84 THEN NULL WHEN - 72 THEN 22 + - CAST ( NULL AS INTEGER ) END AS INTEGER ), - 67 ) AS col2
----
-3956
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5769
SELECT DISTINCT 56 DIV 63 AS col1, 28
----
0
28

skipif mysql # not compatible
query II rowsort label-5769
SELECT DISTINCT 56 / 63 AS col1, 28
----
0
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT CAST( + 36 AS SIGNED ) * COUNT( * ) + 59
----
95

skipif mysql # not compatible
query I rowsort label-5770
SELECT CAST ( + 36 AS INTEGER ) * COUNT ( * ) + 59
----
95

query II rowsort
SELECT ALL 83 - 30 AS col0, + 49 - - + 92 * 64 - + 53 col1
----
53
5884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT ( + - CAST( + 53 AS SIGNED ) )
----
-53

skipif mysql # not compatible
query I rowsort label-5772
SELECT ( + - CAST ( + 53 AS INTEGER ) )
----
-53

query I rowsort
SELECT ALL + - 33 - 29 AS col1
----
-62

query I rowsort
SELECT + 36 * 92
----
3312

onlyif mysql # aggregate syntax: 
query II rowsort label-5775
SELECT DISTINCT - 1 * 67 AS col2, + 8 * - 65 + COUNT( * ) * - COUNT( * )
----
-67
-521

skipif mysql # not compatible
query II rowsort label-5775
SELECT DISTINCT - 1 * 67 AS col2, + 8 * - 65 + COUNT ( * ) * - COUNT ( * )
----
-67
-521

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT COUNT( * ) * + 42 + - 52
----
-10

skipif mysql # not compatible
query I rowsort label-5776
SELECT COUNT ( * ) * + 42 + - 52
----
-10

query I rowsort
SELECT ALL + CASE 9 WHEN 43 THEN + - 53 + 76 END
----
NULL

query I rowsort
SELECT - 2 * - 50 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT MIN( ALL - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-5779
SELECT MIN ( ALL - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT - CASE - - 41 WHEN + 13 + ( - COUNT( * ) ) * - 14 THEN - 36 * + ( - COUNT( * ) ) ELSE - 4 END AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5780
SELECT - CASE - - 41 WHEN + 13 + ( - COUNT ( * ) ) * - 14 THEN - 36 * + ( - COUNT ( * ) ) ELSE - 4 END AS col2
----
4

query I rowsort
SELECT - 16 - + 57
----
-73

query I rowsort
SELECT 56 - + 32 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT 75 + + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5783
SELECT 75 + + COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT + 91 + - + 16 + CASE - 56 WHEN + 81 THEN - SUM( ALL + 56 ) + - + 76 * + - 75 + - COUNT( * ) + ( + - ( - + 75 ) ) ELSE NULL END * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT + 91 + - + 16 + CASE - 56 WHEN + 81 THEN - SUM ( ALL + 56 ) + - + 76 * + - 75 + - COUNT ( * ) + ( + - ( - + 75 ) ) ELSE NULL END * - 96
----
NULL

query I rowsort
SELECT ALL - 54 * + 23 col1
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT DISTINCT - 36 + + - 0 - + 33 + + 90 + - SUM( DISTINCT + 40 ) + ( + 21 ) * COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT - 36 + + - 0 - + 33 + + 90 + - SUM ( DISTINCT + 40 ) + ( + 21 ) * COUNT ( * ) AS col2
----
2

query I rowsort
SELECT - 43 + - + 85 AS col1
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5788
SELECT - 49 - + 58 + + CAST( NULL AS SIGNED ) * + ( + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT - 49 - + 58 + + CAST ( NULL AS INTEGER ) * + ( + 51 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5789
SELECT - 66 DIV - - 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5789
SELECT - 66 / - - 54 AS col1
----
-1

query I rowsort
SELECT + 25 + + 18
----
43

query I rowsort
SELECT ALL + 64 + + 81 AS col2
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT DISTINCT - 37 + ( + 95 ) * - 83 + + + CASE - NULLIF ( - 7, + 66 - - 80 ) WHEN + AVG ( DISTINCT + 43 ) THEN + - 59 * - 76 * - COUNT( * ) + - 86 * - 41 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT - 37 + ( + 95 ) * - 83 + + + CASE - NULLIF ( - 7, + 66 - - 80 ) WHEN + AVG ( DISTINCT + 43 ) THEN + - 59 * - 76 * - COUNT ( * ) + - 86 * - 41 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT ALL - 92 DIV - 54 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL - 92 / - 54 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5794
SELECT - 30 DIV + + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5794
SELECT - 30 / + + 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT ALL + MAX( 28 ) + + ( - 17 )
----
11

skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL + MAX ( 28 ) + + ( - 17 )
----
11

query I rowsort
SELECT - 77 * + - 25 AS col0
----
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT SUM( - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-5797
SELECT SUM ( - 86 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5798
SELECT ALL - 82 * + 9 - + + CAST( - 14 AS SIGNED )
----
-724

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL - 82 * + 9 - + + CAST ( - 14 AS INTEGER )
----
-724

query I rowsort
SELECT ALL - 13 * 84 + 0 + 54 + 72 * + 25
----
762

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT - - 2 + - 9 + + - 46 * - COUNT( * ) * 1
----
39

skipif mysql # not compatible
query I rowsort label-5800
SELECT - - 2 + - 9 + + - 46 * - COUNT ( * ) * 1
----
39

query I rowsort
SELECT ALL - 64 * 49 + + 77 - - - 23 AS col1
----
-3082

onlyif mysql # aggregate syntax: 
query II rowsort label-5802
SELECT - + 41 + ( + COUNT( * ) ) - + 96 * + - 61 AS col0, 25 * 21 * + ( 52 )
----
5816
27300

skipif mysql # not compatible
query II rowsort label-5802
SELECT - + 41 + ( + COUNT ( * ) ) - + 96 * + - 61 AS col0, 25 * 21 * + ( 52 )
----
5816
27300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT DISTINCT + - ( + COALESCE ( + 4, - 11, + 1 * 47, 47 * + + ( - CAST( NULL AS SIGNED ) ) + - 18 * - CAST( 39 AS SIGNED ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT + - ( + COALESCE ( + 4, - 11, + 1 * 47, 47 * + + ( - CAST ( NULL AS INTEGER ) ) + - 18 * - CAST ( 39 AS INTEGER ) ) )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5804
SELECT + + CAST( + + 80 AS SIGNED ) * + ( - 30 ) * - + 36 + - COUNT( * ) - - 77 DIV + 6
----
86411

skipif mysql # not compatible
query I rowsort label-5804
SELECT + + CAST ( + + 80 AS INTEGER ) * + ( - 30 ) * - + 36 + - COUNT ( * ) - - 77 / + 6
----
86411

query I rowsort
SELECT + 47 + - 73 + + + 43
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - - 30 * + COUNT( * ) * - 14 + - - 19 + 56 + + COUNT( * ) AS col0
----
-344

skipif mysql # not compatible
query I rowsort label-5806
SELECT - - 30 * + COUNT ( * ) * - 14 + - - 19 + 56 + + COUNT ( * ) AS col0
----
-344

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT ALL 74 DIV + 9 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL 74 / + 9 AS col1
----
8

query I rowsort
SELECT + 14 + 40 AS col1
----
54

query I rowsort
SELECT ALL 97 * - 38 AS col2
----
-3686

query I rowsort
SELECT DISTINCT 68 * + 74
----
5032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5811
SELECT + CAST( - 93 AS SIGNED ) * - - 20 col1
----
-1860

skipif mysql # not compatible
query I rowsort label-5811
SELECT + CAST ( - 93 AS INTEGER ) * - - 20 col1
----
-1860

query II rowsort
SELECT 73, + 57 - + 48 + - + 15 * - 59 * 33 + + 25 - - 66 * 54 AS col1
----
73
32803

query I rowsort
SELECT - 25 + + - 84
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5814
SELECT ALL COALESCE ( - - 86, COUNT( * ) * - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - - - 69, - ( + 14 ) )
----
86

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL COALESCE ( - - 86, COUNT ( * ) * - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - - - 69, - ( + 14 ) )
----
86

query I rowsort
SELECT DISTINCT 60 + 50 * - - 73
----
3710

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5816
SELECT - ( - + ( - 46 ) ) + - CAST( + - 88 AS SIGNED ) * + 14, + 76 * - 23 + NULLIF ( - ( + 90 ), + 44 ) AS col0
----
1186
-1838

skipif mysql # not compatible
query II rowsort label-5816
SELECT - ( - + ( - 46 ) ) + - CAST ( + - 88 AS INTEGER ) * + 14, + 76 * - 23 + NULLIF ( - ( + 90 ), + 44 ) AS col0
----
1186
-1838

query I rowsort
SELECT - 89 * + + 55 * - 86
----
420970

query I rowsort
SELECT ALL 95 + 0
----
95

query I rowsort
SELECT + ( 51 ) - - + 33 AS col0
----
84

query II rowsort
SELECT - 78, - 12 * - + ( - 68 ) AS col1
----
-78
-816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT - CAST( 83 AS SIGNED ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-5821
SELECT - CAST ( 83 AS INTEGER ) col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5822
SELECT + SUM( ALL - 16 ) - ( - + 56 ) + - - CASE + CAST( NULL AS SIGNED ) WHEN 72 * + - CASE 88 WHEN + - 60 / - - 32 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 11 END THEN 68 * - - 75 + + CAST( - + COUNT( * ) AS SIGNED ) WHEN - 74 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT + SUM ( ALL - 16 ) - ( - + 56 ) + - - CASE + CAST ( NULL AS INTEGER ) WHEN 72 * + - CASE 88 WHEN + - 60 / - - 32 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 11 END THEN 68 * - - 75 + + CAST ( - + COUNT ( * ) AS INTEGER ) WHEN - 74 THEN NULL END AS col0
----
NULL

query II rowsort
SELECT 97, - 71 * + + 8 + - 39 AS col0
----
97
-607

query I rowsort
SELECT - 77 + - 36 AS col2
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5825
SELECT DISTINCT - CASE - 1 WHEN + 24 THEN NULL WHEN - - COUNT( * ) THEN 82 WHEN + + CAST( NULL AS SIGNED ) / - 82 * - + 86 + - - 30 THEN NULL WHEN 78 THEN 77 + - - CASE + 22 WHEN - 94 THEN 12 ELSE + 72 - 28 - 56 END / 38 / + 94 ELSE + - MAX( + 24 ) END - - - 28 * 27 + + 16 * CAST( NULL AS SIGNED ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT - CASE - 1 WHEN + 24 THEN NULL WHEN - - COUNT ( * ) THEN 82 WHEN + + CAST ( NULL AS INTEGER ) / - 82 * - + 86 + - - 30 THEN NULL WHEN 78 THEN 77 + - - CASE + 22 WHEN - 94 THEN 12 ELSE + 72 - 28 - 56 END / 38 / + 94 ELSE + - MAX ( + 24 ) END - - - 28 * 27 + + 16 * CAST ( NULL AS INTEGER ) * + 2
----
NULL

query I rowsort
SELECT - 15 + 64
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL + + MAX( DISTINCT + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL + + MAX ( DISTINCT + 84 )
----
84

query II rowsort
SELECT + 84 AS col1, ( + 78 )
----
84
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5829
SELECT DISTINCT - 42 DIV + - 5 + + 27 * - 64 - + 73 * + - 6 AS col1
----
-1282

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT - 42 / + - 5 + + 27 * - 64 - + 73 * + - 6 AS col1
----
-1282

query II rowsort
SELECT 83, + ( - 3 ) - + 35 + 67 - - 36 col2
----
83
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5831
SELECT DISTINCT 41 DIV + COUNT( * ) + + 98 * COUNT( * ) - - 4
----
143

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT 41 / + COUNT ( * ) + + 98 * COUNT ( * ) - - 4
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT ALL + - CASE + COUNT( * ) WHEN 95 THEN + 57 WHEN 75 THEN NULL END / 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL + - CASE + COUNT ( * ) WHEN 95 THEN + 57 WHEN 75 THEN NULL END / 35 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5833
SELECT + 7 AS col1, - 19 DIV - CASE + + NULLIF ( 76, 96 + - 63 + - - AVG ( - 20 ) * 50 * + 11 ) WHEN 17 + NULLIF ( + 56, - 86 * - 1 ) THEN 14 WHEN - MAX( + 18 ) + - 84 * + 91 - 10 THEN - 94 ELSE - 16 END * COUNT( * ) AS col2
----
7
-1

skipif mysql # not compatible
query II rowsort label-5833
SELECT + 7 AS col1, - 19 / - CASE + + NULLIF ( 76, 96 + - 63 + - - AVG ( - 20 ) * 50 * + 11 ) WHEN 17 + NULLIF ( + 56, - 86 * - 1 ) THEN 14 WHEN - MAX ( + 18 ) + - 84 * + 91 - 10 THEN - 94 ELSE - 16 END * COUNT ( * ) AS col2
----
7
-1

query I rowsort
SELECT - - 7 * + + 37 AS col1
----
259

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT + ( 97 ) DIV + - 79 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5835
SELECT + ( 97 ) / + - 79 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5836
SELECT ( + - CASE - + 5 WHEN + - CASE + + ( - 54 ) WHEN - 73 THEN - + 64 ELSE - + COALESCE ( + + COALESCE ( + 41, 7 * - - ( + CAST( NULL AS SIGNED ) ), - + 2 * - 38 ), + MAX( + ( + - 5 ) ) ) END THEN NULL WHEN 59 * - 19 + - + 13 * - 93 + - + 70 THEN - - 90 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5836
SELECT ( + - CASE - + 5 WHEN + - CASE + + ( - 54 ) WHEN - 73 THEN - + 64 ELSE - + COALESCE ( + + COALESCE ( + 41, 7 * - - ( + CAST ( NULL AS INTEGER ) ), - + 2 * - 38 ), + MAX ( + ( + - 5 ) ) ) END THEN NULL WHEN 59 * - 19 + - + 13 * - 93 + - + 70 THEN - - 90 END ) AS col0
----
NULL

query I rowsort
SELECT ALL - 52 * - - 87 AS col2
----
-4524

query I rowsort
SELECT - 75 * 64 + - 4
----
-4804

query II rowsort
SELECT DISTINCT + 68 AS col1, 55 + + + 62 * 11
----
68
737

query II rowsort
SELECT + 8 col0, 65
----
8
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5841
SELECT ALL 86 * - 82 * + - CAST( NULL AS SIGNED ) + + COUNT( * ) + 41 / - - 11 * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL 86 * - 82 * + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + 41 / - - 11 * + 75
----
NULL

query I rowsort
SELECT + COALESCE ( - 90, + 73 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5843
SELECT ALL - - ( CASE + + COALESCE ( - - 14, - COUNT( * ) * COUNT( * ), 51 ) WHEN - 79 THEN NULL WHEN - 6 * + 2 + + 10 / 14 THEN + + 65 + - CAST( + COUNT( * ) AS SIGNED ) ELSE - 24 * - 55 END ) * + 70 col2
----
92400

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL - - ( CASE + + COALESCE ( - - 14, - COUNT ( * ) * COUNT ( * ), 51 ) WHEN - 79 THEN NULL WHEN - 6 * + 2 + + 10 / 14 THEN + + 65 + - CAST ( + COUNT ( * ) AS INTEGER ) ELSE - 24 * - 55 END ) * + 70 col2
----
92400

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT + + 80 * + - MIN( - 37 ) * - 33 - - 31 + - + 66
----
-97715

skipif mysql # not compatible
query I rowsort label-5844
SELECT + + 80 * + - MIN ( - 37 ) * - 33 - - 31 + - + 66
----
-97715

query I rowsort
SELECT DISTINCT - 58 * - 28 + ( - 2 ) + + 54
----
1676

query I rowsort
SELECT ALL + 0 + 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT - ( - + COUNT( * ) ) * + 55 - - 39 + + + 31
----
125

skipif mysql # not compatible
query I rowsort label-5847
SELECT - ( - + COUNT ( * ) ) * + 55 - - 39 + + + 31
----
125

query I rowsort
SELECT ALL 62 + - ( - 54 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT COUNT( * ) * - 29 + + ( + - 30 )
----
-59

skipif mysql # not compatible
query I rowsort label-5849
SELECT COUNT ( * ) * - 29 + + ( + - 30 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5850
SELECT SUM( ALL - COALESCE ( - 98, + - 30 DIV + 75 ) ) * + 50 + - 36 * ( - ( 17 ) ) AS col1
----
5512

skipif mysql # not compatible
query I rowsort label-5850
SELECT SUM ( ALL - COALESCE ( - 98, + - 30 / + 75 ) ) * + 50 + - 36 * ( - ( 17 ) ) AS col1
----
5512

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT CASE - COUNT( * ) WHEN + 39 THEN NULL ELSE - + 14 END + + 9
----
-5

skipif mysql # not compatible
query I rowsort label-5851
SELECT CASE - COUNT ( * ) WHEN + 39 THEN NULL ELSE - + 14 END + + 9
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5852
SELECT DISTINCT 14 DIV - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT 14 / - 66 AS col0
----
0

query I rowsort
SELECT 75 + 34 AS col1
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5854
SELECT NULLIF ( - COUNT( * ), 70 - - 85 + - 17 ) DIV - NULLIF ( NULLIF ( + 15, + - 46 ), 10 ) - + 46
----
-46

skipif mysql # not compatible
query I rowsort label-5854
SELECT NULLIF ( - COUNT ( * ), 70 - - 85 + - 17 ) / - NULLIF ( NULLIF ( + 15, + - 46 ), 10 ) - + 46
----
-46

query I rowsort
SELECT DISTINCT - 82 + + 39 AS col0
----
-43

query I rowsort
SELECT ALL 8 + - ( + 29 ) + - 86 col1
----
-107

onlyif mysql # DIV for integer division: 
query I rowsort label-5857
SELECT DISTINCT 78 DIV 14
----
5

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT 78 / 14
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5858
SELECT NULLIF ( + 0, - 95 * CAST( NULL AS SIGNED ) + - 44 * CAST( + 77 AS SIGNED ) + 1 + + COUNT( DISTINCT - + 90 ) * - COUNT( ALL 44 ) / + ( - 95 ) * AVG ( DISTINCT 69 ) ) * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5858
SELECT NULLIF ( + 0, - 95 * CAST ( NULL AS INTEGER ) + - 44 * CAST ( + 77 AS INTEGER ) + 1 + + COUNT ( DISTINCT - + 90 ) * - COUNT ( ALL 44 ) / + ( - 95 ) * AVG ( DISTINCT 69 ) ) * - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT DISTINCT COUNT( * ) * - - 80
----
80

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT COUNT ( * ) * - - 80
----
80

query I rowsort
SELECT 81 + 82
----
163

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5861
SELECT CASE 47 WHEN + + 12 * + + NULLIF ( - 95, - 18 ) + 12 THEN 89 + + - CAST( - 4 AS DECIMAL ) WHEN - 72 THEN NULL END + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT CASE 47 WHEN + + 12 * + + NULLIF ( - 95, - 18 ) + 12 THEN 89 + + - CAST ( - 4 AS REAL ) WHEN - 72 THEN NULL END + - 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5862
SELECT CAST( NULL AS SIGNED ) - + - 30 AS col0, - COUNT( * ) * 71 AS col2
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-5862
SELECT CAST ( NULL AS INTEGER ) - + - 30 AS col0, - COUNT ( * ) * 71 AS col2
----
NULL
-71

query I rowsort
SELECT 0 + ( - 9 )
----
-9

query I rowsort
SELECT 35 + + 25 + + 62 * 36 + - 58 col2
----
2234

query I rowsort
SELECT ALL 42 - + 90 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT MIN( + 97 ) + + ( - 79 ) + - ( - 46 ) + + 79 - + + COALESCE ( 38, + 69, + 5 * - 67 ) * 86
----
-3125

skipif mysql # not compatible
query I rowsort label-5866
SELECT MIN ( + 97 ) + + ( - 79 ) + - ( - 46 ) + + 79 - + + COALESCE ( 38, + 69, + 5 * - 67 ) * 86
----
-3125

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT DISTINCT - NULLIF ( - - COUNT( * ), - 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), - 59 ) AS col1
----
-1

query I rowsort
SELECT + 71 + - 34
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT DISTINCT COALESCE ( - - COUNT( * ), + 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT COALESCE ( - - COUNT ( * ), + 17 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT - 19 + 32 + + 78 * + + 14 + - COUNT( * ) AS col2
----
1104

skipif mysql # not compatible
query I rowsort label-5870
SELECT - 19 + 32 + + 78 * + + 14 + - COUNT ( * ) AS col2
----
1104

query I rowsort
SELECT 99 * - - 69
----
6831

query I rowsort
SELECT + NULLIF ( 95, - 84 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT DISTINCT + NULLIF ( - MIN( ALL 2 ), COUNT( * ) ) * ( - 6 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT + NULLIF ( - MIN ( ALL 2 ), COUNT ( * ) ) * ( - 6 ) AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5874
SELECT 78 DIV + - COUNT( * ) + + 96 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5874
SELECT 78 / + - COUNT ( * ) + + 96 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5875
SELECT + 29 * - 89 AS col0, + 76 + 11 + + + COUNT( * ) * CASE + + CASE 9 WHEN - 52 + + - CAST( + COALESCE ( + 45, 34 ) AS SIGNED ) - + - COUNT( * ) * 39 / 77 * - 26 * + + 65 THEN + 63 ELSE - - 72 END WHEN CAST( NULL AS SIGNED ) / - + 97 THEN NULL ELSE - 2 * - 82 * + 77 * - ( - 97 ) + + 6 END AS col2
----
-2581
1225009

skipif mysql # not compatible
query II rowsort label-5875
SELECT + 29 * - 89 AS col0, + 76 + 11 + + + COUNT ( * ) * CASE + + CASE 9 WHEN - 52 + + - CAST ( + COALESCE ( + 45, 34 ) AS INTEGER ) - + - COUNT ( * ) * 39 / 77 * - 26 * + + 65 THEN + 63 ELSE - - 72 END WHEN CAST ( NULL AS INTEGER ) / - + 97 THEN NULL ELSE - 2 * - 82 * + 77 * - ( - 97 ) + + 6 END AS col2
----
-2581
1225009

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT COUNT( * ) * - 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT COUNT ( * ) * - 44 AS col1
----
-44

query I rowsort
SELECT ALL - - 47 + + - 80 * - 21
----
1727

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT 55 + + 29 DIV - 53 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5878
SELECT 55 + + 29 / - 53 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT DISTINCT - 62 + + MIN( ALL 89 )
----
27

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT - 62 + + MIN ( ALL 89 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT ALL - CAST( NULL AS SIGNED ) + + 99 + + + 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - CAST ( NULL AS INTEGER ) + + 99 + + + 45 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT SUM( - - 48 ) + + 56
----
104

skipif mysql # not compatible
query I rowsort label-5881
SELECT SUM ( - - 48 ) + + 56
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5882
SELECT ALL + 95 DIV + - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL + 95 / + - COUNT ( * )
----
-95

query I rowsort
SELECT 66 * + NULLIF ( 53, COALESCE ( - AVG ( DISTINCT + 34 ), 51 * + 33 + + 31, + 35 / - ( + 78 ) ) * 62 + 47 )
----
3498

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5884
SELECT 1 + - - ( - SUM( DISTINCT - 8 ) ) + - 55 + - NULLIF ( - 88, 0 DIV + + 93 * 56 ) + 67 * + 28 + 62 + + 86 DIV 16 + - COUNT( * ) * 47 AS col2
----
1938

skipif mysql # not compatible
query I rowsort label-5884
SELECT 1 + - - ( - SUM ( DISTINCT - 8 ) ) + - 55 + - NULLIF ( - 88, 0 / + + 93 * 56 ) + 67 * + 28 + 62 + + 86 / 16 + - COUNT ( * ) * 47 AS col2
----
1938

query II rowsort
SELECT 22 AS col1, 56 - + 10
----
22
46

query I rowsort
SELECT DISTINCT - 50 + 13 * - 39 AS col0
----
-557

query I rowsort
SELECT 91 * 85
----
7735

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5888
SELECT DISTINCT 62 AS col0, CAST( NULL AS SIGNED )
----
62
NULL

skipif mysql # not compatible
query II rowsort label-5888
SELECT DISTINCT 62 AS col0, CAST ( NULL AS INTEGER )
----
62
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT 26 + 88 + - - 37 DIV - 34 + - 62 + ( + + 36 ) * + 57 + 67 AS col1
----
2170

skipif mysql # not compatible
query I rowsort label-5889
SELECT 26 + 88 + - - 37 / - 34 + - 62 + ( + + 36 ) * + 57 + 67 AS col1
----
2170

onlyif mysql # aggregate syntax: 
query II rowsort label-5890
SELECT 36, + CASE - - 67 WHEN - COUNT( * ) THEN 63 * - 53 ELSE NULL END AS col0
----
36
NULL

skipif mysql # not compatible
query II rowsort label-5890
SELECT 36, + CASE - - 67 WHEN - COUNT ( * ) THEN 63 * - 53 ELSE NULL END AS col0
----
36
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5891
SELECT DISTINCT ( + COUNT( * ) ) DIV + COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT ( + COUNT ( * ) ) / + COUNT ( * ) - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5892
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT MIN ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5893
SELECT ALL + 70 DIV + 57 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL + 70 / + 57 AS col2
----
1

query I rowsort
SELECT DISTINCT + 9 * - 95
----
-855

onlyif mysql # aggregate syntax: 
query II rowsort label-5895
SELECT COUNT( * ) AS col1, 52 AS col1
----
1
52

skipif mysql # not compatible
query II rowsort label-5895
SELECT COUNT ( * ) AS col1, 52 AS col1
----
1
52

query I rowsort
SELECT ALL 38 * - + 45 + - NULLIF ( - 55, - + 19 * 73 + 44 ) AS col1
----
-1655

query I rowsort
SELECT 24 - 81 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT MAX( ALL 77 ) + 24 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-5898
SELECT MAX ( ALL 77 ) + 24 AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5899
SELECT DISTINCT + COUNT( * ) AS col1, + ( 94 ) * - - COUNT( * ) + COUNT( * ) * + 83 + + 31 + ( 1 ) + CASE - - CAST( - 11 AS SIGNED ) WHEN 60 THEN - + 73 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5899
SELECT DISTINCT + COUNT ( * ) AS col1, + ( 94 ) * - - COUNT ( * ) + COUNT ( * ) * + 83 + + 31 + ( 1 ) + CASE - - CAST ( - 11 AS INTEGER ) WHEN 60 THEN - + 73 END
----
1
NULL

query I rowsort
SELECT ( + 98 ) - + - 20 col1
----
118

query I rowsort
SELECT ALL + 69 * - 46 AS col2
----
-3174

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT + + 52 * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-5902
SELECT + + 52 * + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5903
SELECT + 93, 47 * + 96 * + 67 - - MAX( 68 ) AS col0
----
93
302372

skipif mysql # not compatible
query II rowsort label-5903
SELECT + 93, 47 * + 96 * + 67 - - MAX ( 68 ) AS col0
----
93
302372

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL + NULLIF ( + + 20, COUNT( * ) / - 7 * - + 59 ) * 44
----
880

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + NULLIF ( + + 20, COUNT ( * ) / - 7 * - + 59 ) * 44
----
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5905
SELECT - 50 DIV - MAX( ALL 32 )
----
1

skipif mysql # not compatible
query I rowsort label-5905
SELECT - 50 / - MAX ( ALL 32 )
----
1

query I rowsort
SELECT + ( + + 60 ) * - 70 * + + 23 * 80
----
-7728000

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT COUNT( * ) * 93 - - 51 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-5907
SELECT COUNT ( * ) * 93 - - 51 AS col0
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT - CAST( + + 55 AS SIGNED ) * - - 12 * 67 AS col1
----
-44220

skipif mysql # not compatible
query I rowsort label-5908
SELECT - CAST ( + + 55 AS INTEGER ) * - - 12 * 67 AS col1
----
-44220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT ALL + CAST( 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL + CAST ( 94 AS INTEGER )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL COUNT( * ) * - NULLIF ( COUNT( * ), + MIN( DISTINCT + - COALESCE ( + 82, + - 50 * + 52 + + 95 + - 79 ) ) ) - - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL COUNT ( * ) * - NULLIF ( COUNT ( * ), + MIN ( DISTINCT + - COALESCE ( + 82, + - 50 * + 52 + + 95 + - 79 ) ) ) - - COUNT ( * ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT ALL - NULLIF ( + + ( - 69 ), 56 ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL - NULLIF ( + + ( - 69 ), 56 ) / + 83
----
0

query I rowsort
SELECT - 84 - 16 AS col1
----
-100

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5913
SELECT + COUNT( 19 ) * + COUNT( * ) + - 15 + CASE - 28 WHEN - ( 84 ) THEN - 90 WHEN - - COALESCE ( 58, + + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ), - 61 ) THEN NULL ELSE - + 73 + - - 65 END + - + 54 * - 19 AS col2
----
1004

skipif mysql # not compatible
query I rowsort label-5913
SELECT + COUNT ( 19 ) * + COUNT ( * ) + - 15 + CASE - 28 WHEN - ( 84 ) THEN - 90 WHEN - - COALESCE ( 58, + + AVG ( DISTINCT + CAST ( NULL AS REAL ) ), - 61 ) THEN NULL ELSE - + 73 + - - 65 END + - + 54 * - 19 AS col2
----
1004

query I rowsort
SELECT ALL - 47 * - 27 AS col2
----
1269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5915
SELECT ALL + 74 * + CAST( NULL AS SIGNED ) AS col1, + 26 * + COUNT( + 60 ) AS col1
----
NULL
26

skipif mysql # not compatible
query II rowsort label-5915
SELECT ALL + 74 * + CAST ( NULL AS INTEGER ) AS col1, + 26 * + COUNT ( + 60 ) AS col1
----
NULL
26

query I rowsort
SELECT - 24 + NULLIF ( - 60, 48 * 52 + - COALESCE ( - 88, - 80 / - 36 ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL MIN( + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL MIN ( + 47 )
----
47

query I rowsort
SELECT - 0 + - + 23 AS col0
----
-23

query I rowsort
SELECT ALL ( - + 45 )
----
-45

query I rowsort
SELECT DISTINCT COALESCE ( 67, 49 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT ALL + ( + + 80 ) * + + 21 + + + COUNT( ALL + 78 ) + - 82 * + - 22 + COUNT( * ) + 94 - - 12 + + 90 * - + 36 * + 28 + + 92 col0
----
-87036

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL + ( + + 80 ) * + + 21 + + + COUNT ( ALL + 78 ) + - 82 * + - 22 + COUNT ( * ) + 94 - - 12 + + 90 * - + 36 * + 28 + + 92 col0
----
-87036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5922
SELECT - 53 + + 42 + + + COALESCE ( CASE + + MIN( ( + 11 ) ) WHEN + + 80 THEN NULL ELSE - COUNT( - 58 ) DIV - ( 51 ) END, - 93 DIV COALESCE ( 64, 29 + - - 74 DIV - 14 ) DIV + - 6, + 55 + 68 + - + COUNT( * ) * - 85 DIV + 69 * 72 - 34 * - 15 * - 9 ) * - 41 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5922
SELECT - 53 + + 42 + + + COALESCE ( CASE + + MIN ( ( + 11 ) ) WHEN + + 80 THEN NULL ELSE - COUNT ( - 58 ) / - ( 51 ) END, - 93 / COALESCE ( 64, 29 + - - 74 / - 14 ) / + - 6, + 55 + 68 + - + COUNT ( * ) * - 85 / + 69 * 72 - 34 * - 15 * - 9 ) * - 41 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT - - 25 + 63 + - 97 * 79 * + + COUNT( * ) - COUNT( * ) AS col1
----
-7576

skipif mysql # not compatible
query I rowsort label-5923
SELECT - - 25 + 63 + - 97 * 79 * + + COUNT ( * ) - COUNT ( * ) AS col1
----
-7576

query I rowsort
SELECT ALL - ( - 56 ) col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5925
SELECT - NULLIF ( + ( + COUNT( * ) ), - 0 ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-5925
SELECT - NULLIF ( + ( + COUNT ( * ) ), - 0 ) / + 92
----
0

query I rowsort
SELECT + 84 * + 68 col2
----
5712

onlyif mysql # aggregate syntax: 
query II rowsort label-5927
SELECT DISTINCT + + COALESCE ( + 50, 63, + + ( - 8 ) + + 64 ) + + - NULLIF ( + CASE - COUNT( * ) WHEN - 63 * - - 86 THEN + 24 ELSE NULL END, - 68 * + - 82 ) / - COALESCE ( + - 99, - + 70 * 20 + - - ( ( 49 ) ), 91 ) AS col2, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5927
SELECT DISTINCT + + COALESCE ( + 50, 63, + + ( - 8 ) + + 64 ) + + - NULLIF ( + CASE - COUNT ( * ) WHEN - 63 * - - 86 THEN + 24 ELSE NULL END, - 68 * + - 82 ) / - COALESCE ( + - 99, - + 70 * 20 + - - ( ( 49 ) ), 91 ) AS col2, - COUNT ( * ) AS col2
----
NULL
-1

query I rowsort
SELECT DISTINCT + 95 + + - 15 AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT DISTINCT - + 26 DIV + - 25
----
1

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT - + 26 / + - 25
----
1

query I rowsort
SELECT ALL + + 63 + + 20 * 99 + 98 + 28 * + ( - 75 ) * 84 AS col1
----
-174259

query I rowsort
SELECT ALL - + 0 + + 27
----
27

query I rowsort
SELECT - - 84 col2
----
84

query I rowsort
SELECT - - 82 + ( - 25 ) + 17 * 5
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT + - MAX( + 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5934
SELECT + - MAX ( + 8 ) AS col0
----
-8

query I rowsort
SELECT + 79 * + + 30 + - ( - 3 )
----
2373

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT + ( - 55 ) * + + COALESCE ( + - COUNT( * ), - 69 * - ( 23 ) * ( - 17 ) + 82 - 93 ) * + 43 * + + SUM( + + 72 ) + - 95
----
170185

skipif mysql # not compatible
query I rowsort label-5936
SELECT + ( - 55 ) * + + COALESCE ( + - COUNT ( * ), - 69 * - ( 23 ) * ( - 17 ) + 82 - 93 ) * + 43 * + + SUM ( + + 72 ) + - 95
----
170185

query I rowsort
SELECT + - 43 * + 27
----
-1161

onlyif mysql # DIV for integer division: 
query I rowsort label-5938
SELECT ALL + 48 DIV - + 27 + - 28 * + - 72 + - 31 AS col2
----
1984

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL + 48 / - + 27 + - 28 * + - 72 + - 31 AS col2
----
1984

query I rowsort
SELECT DISTINCT 44 * 48
----
2112

query II rowsort
SELECT DISTINCT 44 * + 90 - - 13 col2, 39 AS col1
----
3973
39

query I rowsort
SELECT + 43 * 63 AS col1
----
2709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5942
SELECT - 60 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT - 60 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 7 * - 29
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT CASE + 72 WHEN 85 THEN NULL WHEN COUNT( * ) THEN NULL WHEN - 92 THEN 59 ELSE + 99 * - ( - ( - 62 ) ) * 21 + COUNT( * ) + - 46 END
----
-128943

skipif mysql # not compatible
query I rowsort label-5944
SELECT CASE + 72 WHEN 85 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN - 92 THEN 59 ELSE + 99 * - ( - ( - 62 ) ) * 21 + COUNT ( * ) + - 46 END
----
-128943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5945
SELECT ALL + 55 AS col0, NULLIF ( - 92, - + MIN( ALL CAST( NULL AS SIGNED ) ) )
----
55
-92

skipif mysql # not compatible
query II rowsort label-5945
SELECT ALL + 55 AS col0, NULLIF ( - 92, - + MIN ( ALL CAST ( NULL AS INTEGER ) ) )
----
55
-92

query I rowsort
SELECT DISTINCT 48 * + - 43 AS col0
----
-2064

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT SUM( + 15 ) col0
----
15

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT SUM ( + 15 ) col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5948
SELECT ALL COUNT( * ) AS col2, 16
----
1
16

skipif mysql # not compatible
query II rowsort label-5948
SELECT ALL COUNT ( * ) AS col2, 16
----
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT DISTINCT SUM( + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT SUM ( + 70 ) AS col1
----
70

query I rowsort
SELECT DISTINCT COALESCE ( 88, + - 33 )
----
88

query I rowsort
SELECT + 41 * + 90 AS col2
----
3690

query I rowsort
SELECT - 47 * 51 AS col1
----
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT MIN( - 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-5953
SELECT MIN ( - 61 ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT DISTINCT ( 19 ) * + COUNT( * ) + - 2 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5954
SELECT DISTINCT ( 19 ) * + COUNT ( * ) + - 2 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL + 44 + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + 44 + COUNT ( * ) AS col2
----
45

query I rowsort
SELECT - 11 - 88
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5957
SELECT ALL CASE - AVG ( ALL - 15 ) WHEN CASE 22 WHEN CAST( NULL AS SIGNED ) + 88 THEN 62 END THEN + 39 ELSE + COUNT( * ) * + 99 END
----
99

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL CASE - AVG ( ALL - 15 ) WHEN CASE 22 WHEN CAST ( NULL AS INTEGER ) + 88 THEN 62 END THEN + 39 ELSE + COUNT ( * ) * + 99 END
----
99

query I rowsort
SELECT DISTINCT - ( 86 ) + 91
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT + COUNT( ALL - 51 ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT + COUNT ( ALL - 51 ) + 12
----
13

query I rowsort
SELECT ALL - 36 + - 88
----
-124

query I rowsort
SELECT ALL + 81 + - 52 col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5962
SELECT 50 + - MIN( 48 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT 50 + - MIN ( 48 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 92 + 85
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT COALESCE ( - 12, - COALESCE ( ( 60 ), 19 DIV + COUNT( * ) ) + 87 ) + 67 * - 0 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-5964
SELECT COALESCE ( - 12, - COALESCE ( ( 60 ), 19 / + COUNT ( * ) ) + 87 ) + 67 * - 0 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT ALL + 36 - COUNT( * ) col1
----
35

skipif mysql # not compatible
query I rowsort label-5965
SELECT ALL + 36 - COUNT ( * ) col1
----
35

query I rowsort
SELECT 75 * 39 AS col1
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL - ( - SUM( + 54 ) ) col2
----
54

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL - ( - SUM ( + 54 ) ) col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5968
SELECT ALL 85 * CASE AVG ( CAST( 27 AS SIGNED ) ) / CAST( NULL AS DECIMAL ) WHEN 10 THEN + 60 - - 44 * 70 WHEN 13 THEN - MIN( DISTINCT - COALESCE ( 77, 8 * 4 ) ) * - 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL 85 * CASE AVG ( CAST ( 27 AS INTEGER ) ) / CAST ( NULL AS REAL ) WHEN 10 THEN + 60 - - 44 * 70 WHEN 13 THEN - MIN ( DISTINCT - COALESCE ( 77, 8 * 4 ) ) * - 85 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5969
SELECT DISTINCT ( 36 ) * CAST( 5 / 11 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT ( 36 ) * CAST ( 5 / 11 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT ALL + 19 - + NULLIF ( + 26 + - 95 * - COUNT( * ), 89 ) AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL + 19 - + NULLIF ( + 26 + - 95 * - COUNT ( * ), 89 ) AS col2
----
-102

query I rowsort
SELECT DISTINCT - 64 * 57 AS col1
----
-3648

query I rowsort
SELECT 84 + + 76 col2
----
160

query I rowsort
SELECT ALL 49 * 37 col1
----
1813

query I rowsort
SELECT 91 * - 81
----
-7371

query I rowsort
SELECT 29 * 24
----
696

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT 6 - + SUM( - 65 )
----
71

skipif mysql # not compatible
query I rowsort label-5976
SELECT 6 - + SUM ( - 65 )
----
71

query I rowsort
SELECT DISTINCT - 2 * + 63 AS col2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT ALL - NULLIF ( 55, 56 * - COUNT( * ) ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL - NULLIF ( 55, 56 * - COUNT ( * ) ) col2
----
-55

query I rowsort
SELECT - 76 * 93 - 55 AS col2
----
-7123

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT COUNT( * ) + + COALESCE ( CASE + 69 WHEN 18 THEN + 6 WHEN COUNT( * ) * + ( + 14 / - COUNT( * ) ) THEN NULL END, 14, 24 + COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT COUNT ( * ) + + COALESCE ( CASE + 69 WHEN 18 THEN + 6 WHEN COUNT ( * ) * + ( + 14 / - COUNT ( * ) ) THEN NULL END, 14, 24 + COUNT ( * ) )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5981
SELECT 45 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT 45 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 12 * 61 + - 58 * + 12
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT 51 - - NULLIF ( - 20, 99 - ( 10 + MAX( ALL + 95 ) ) ) * - COUNT( + NULLIF ( - 53, + 44 + - 87 * + 11 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5983
SELECT 51 - - NULLIF ( - 20, 99 - ( 10 + MAX ( ALL + 95 ) ) ) * - COUNT ( + NULLIF ( - 53, + 44 + - 87 * + 11 ) ) AS col1
----
71

query I rowsort
SELECT ALL 77 * 17
----
1309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT ALL CAST( NULL AS SIGNED ) + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL CAST ( NULL AS INTEGER ) + 13
----
NULL

query I rowsort
SELECT - 88 + 99
----
11

query I rowsort
SELECT 65 * - 6
----
-390

query I rowsort
SELECT ALL - 97 + + 93
----
-4

query I rowsort
SELECT ALL - ( 76 ) * 45
----
-3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5990
SELECT ( + NULLIF ( + 12, 63 * CAST( NULLIF ( - COUNT( * ), + CAST( COUNT( * ) AS SIGNED ) * 28 ) AS SIGNED ) ) ) + - 71 col2
----
-59

skipif mysql # not compatible
query I rowsort label-5990
SELECT ( + NULLIF ( + 12, 63 * CAST ( NULLIF ( - COUNT ( * ), + CAST ( COUNT ( * ) AS INTEGER ) * 28 ) AS INTEGER ) ) ) + - 71 col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT - CASE 43 WHEN - SUM( DISTINCT 9 ) * + 18 THEN + COALESCE ( 72, + 50, + 94 ) ELSE 97 * 63 END * - 38 AS col0
----
232218

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT - CASE 43 WHEN - SUM ( DISTINCT 9 ) * + 18 THEN + COALESCE ( 72, + 50, + 94 ) ELSE 97 * 63 END * - 38 AS col0
----
232218

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5992
SELECT DISTINCT 89 + CAST( 12 AS SIGNED ) DIV 45 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT 89 + CAST ( 12 AS INTEGER ) / 45 AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT ALL - CAST( NULL AS SIGNED ) + - ( 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - CAST ( NULL AS INTEGER ) + - ( 82 )
----
NULL

query I rowsort
SELECT DISTINCT - ( - 16 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5995
SELECT + CAST( NULL AS SIGNED ) + + 62 * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT + CAST ( NULL AS INTEGER ) + + 62 * - 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5996
SELECT 24 DIV + 67
----
0

skipif mysql # not compatible
query I rowsort label-5996
SELECT 24 / + 67
----
0

query I rowsort
SELECT 68 * + 56 AS col1
----
3808

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT ALL 30 DIV - 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL 30 / - 51 AS col2
----
0

query I rowsort
SELECT - 4 * 68
----
-272

query I rowsort
SELECT - 73 + + 84
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6001
SELECT - NULLIF ( ( CAST( + 20 AS SIGNED ) ), + 13 * 45 + - 47 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6001
SELECT - NULLIF ( ( CAST ( + 20 AS INTEGER ) ), + 13 * 45 + - 47 ) AS col0
----
-20

query I rowsort
SELECT DISTINCT - ( 87 ) AS col0
----
-87

query I rowsort
SELECT ALL + - 33 - - 8 AS col1
----
-25

query I rowsort
SELECT ( 38 ) * 48 AS col1
----
1824

query I rowsort
SELECT ALL - + 20 * 97 AS col2
----
-1940

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6006
SELECT DISTINCT NULLIF ( + ( NULLIF ( - 8, + COUNT( * ) * - CAST( NULL AS DECIMAL ) ) ), 12 )
----
-8

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT NULLIF ( + ( NULLIF ( - 8, + COUNT ( * ) * - CAST ( NULL AS REAL ) ) ), 12 )
----
-8

query I rowsort
SELECT 10 * - - 40 AS col2
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ALL - MAX( DISTINCT 59 ) * - 86 AS col2
----
5074

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL - MAX ( DISTINCT 59 ) * - 86 AS col2
----
5074

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT SUM( - 35 ) + - 14
----
-49

skipif mysql # not compatible
query I rowsort label-6009
SELECT SUM ( - 35 ) + - 14
----
-49

query I rowsort
SELECT ALL - ( - 47 ) col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6011
SELECT + CASE - 62 WHEN 87 / + 17 + - 34 * 79 THEN NULL WHEN + 86 THEN NULL WHEN + ( - COUNT( * ) ) THEN CAST( 93 AS DECIMAL ) + - 44 * 84 ELSE NULL END * 88 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT + CASE - 62 WHEN 87 / + 17 + - 34 * 79 THEN NULL WHEN + 86 THEN NULL WHEN + ( - COUNT ( * ) ) THEN CAST ( 93 AS REAL ) + - 44 * 84 ELSE NULL END * 88 + 47
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT DISTINCT - CAST( + 43 AS SIGNED ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT - CAST ( + 43 AS INTEGER ) AS col1
----
-43

query I rowsort
SELECT 0 * 25 AS col0
----
0

query I rowsort
SELECT 36 * 67 AS col0
----
2412

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT DISTINCT COALESCE ( 3, 69 + + COUNT( * ) ) * + 70 + + 3 col0
----
213

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT COALESCE ( 3, 69 + + COUNT ( * ) ) * + 70 + + 3 col0
----
213

query I rowsort
SELECT 26 + 92 AS col1
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6017
SELECT ALL - 48 * - COALESCE ( - NULLIF ( 0, + 13 + NULLIF ( 61, ( - CAST( NULL AS SIGNED ) ) * + ( + 45 ) ) ), - ( - 88 ) ) * - 9 + 56 * 40 AS col0
----
2240

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - 48 * - COALESCE ( - NULLIF ( 0, + 13 + NULLIF ( 61, ( - CAST ( NULL AS INTEGER ) ) * + ( + 45 ) ) ), - ( - 88 ) ) * - 9 + 56 * 40 AS col0
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL + NULLIF ( - + 82, - MIN( 14 ) ) + - 54 * - 38 AS col1
----
1970

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL + NULLIF ( - + 82, - MIN ( 14 ) ) + - 54 * - 38 AS col1
----
1970

query I rowsort
SELECT 15 * + 19 * 5 AS col1
----
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT MAX( ALL 27 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-6020
SELECT MAX ( ALL 27 ) col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6021
SELECT ( 22 ) + 70 * - CASE + 21 * - 36 WHEN 7 * + 6 THEN - 50 + - 57 / + 56 WHEN CAST( 7 AS SIGNED ) THEN - 49 / 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT ( 22 ) + 70 * - CASE + 21 * - 36 WHEN 7 * + 6 THEN - 50 + - 57 / + 56 WHEN CAST ( 7 AS INTEGER ) THEN - 49 / 0 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6022
SELECT ALL 29 + + 85 DIV CAST( ( CAST( + 7 AS SIGNED ) ) AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL 29 + + 85 / CAST ( ( CAST ( + 7 AS INTEGER ) ) AS INTEGER )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT COUNT( * ) * - 7
----
-7

skipif mysql # not compatible
query I rowsort label-6023
SELECT COUNT ( * ) * - 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT ALL + COUNT( * ) * ( 80 )
----
80

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL + COUNT ( * ) * ( 80 )
----
80

query I rowsort
SELECT ALL - CASE 2 WHEN 80 + 14 THEN NULL ELSE - 16 * 9 END * - 19 AS col0
----
-2736

query I rowsort
SELECT DISTINCT + 44 + + - 52
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT - - MAX( DISTINCT 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6027
SELECT - - MAX ( DISTINCT 21 ) AS col2
----
21

query I rowsort
SELECT - 74 - + + 92 - - 42 * 41 AS col2
----
1556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6029
SELECT ALL NULLIF ( + COALESCE ( - 9, + MIN( DISTINCT - 51 ) ), - 94 * - 17 ) * CAST( CASE - 64 WHEN COUNT( * ) THEN - 88 * COUNT( DISTINCT 38 ) WHEN 29 + 24 THEN - 66 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL NULLIF ( + COALESCE ( - 9, + MIN ( DISTINCT - 51 ) ), - 94 * - 17 ) * CAST ( CASE - 64 WHEN COUNT ( * ) THEN - 88 * COUNT ( DISTINCT 38 ) WHEN 29 + 24 THEN - 66 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT + + COALESCE ( + - 56, SUM( 38 ) * 8, - 59 - - 98 ) * 81
----
-4536

skipif mysql # not compatible
query I rowsort label-6030
SELECT + + COALESCE ( + - 56, SUM ( 38 ) * 8, - 59 - - 98 ) * 81
----
-4536

query I rowsort
SELECT ALL + 25 * + 30
----
750

query I rowsort
SELECT + - ( + 31 ) * + 36
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL - COUNT( DISTINCT - 79 ) - 36 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL - COUNT ( DISTINCT - 79 ) - 36 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT DISTINCT + MAX( - - 62 ) * 48 col0
----
2976

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT + MAX ( - - 62 ) * 48 col0
----
2976

query I rowsort
SELECT ALL + ( + 74 ) * 72
----
5328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT + 24 - - CASE 1 WHEN CAST( - AVG ( 6 ) AS SIGNED ) * + SUM( 4 + 48 ) + 32 * NULLIF ( COUNT( * ) - - 17, + COUNT( * ) ) THEN 1 ELSE NULL END / - COALESCE ( + 42, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT + 24 - - CASE 1 WHEN CAST ( - AVG ( 6 ) AS INTEGER ) * + SUM ( 4 + 48 ) + 32 * NULLIF ( COUNT ( * ) - - 17, + COUNT ( * ) ) THEN 1 ELSE NULL END / - COALESCE ( + 42, COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT + COUNT( * ) + 23 * 91
----
2094

skipif mysql # not compatible
query I rowsort label-6037
SELECT + COUNT ( * ) + 23 * 91
----
2094

query I rowsort
SELECT DISTINCT - 48 * + - 19 * 76
----
69312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6039
SELECT DISTINCT + 31 * COUNT( * ) DIV 59 - - 53 * 96
----
5088

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + 31 * COUNT ( * ) / 59 - - 53 * 96
----
5088

onlyif mysql # DIV for integer division: 
query I rowsort label-6040
SELECT + 91 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-6040
SELECT + 91 / - 95
----
0

query I rowsort
SELECT + + 93 * + + 77 AS col1
----
7161

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT + COUNT( * ) + + 52 col0
----
53

skipif mysql # not compatible
query I rowsort label-6042
SELECT + COUNT ( * ) + + 52 col0
----
53

query II rowsort
SELECT 77, + 33 AS col0
----
77
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT - 20 - + - 78 * - 55 * - COUNT( * ) + 74 * 66
----
9154

skipif mysql # not compatible
query I rowsort label-6044
SELECT - 20 - + - 78 * - 55 * - COUNT ( * ) + 74 * 66
----
9154

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT ALL + 19 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL + 19 / - 88
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6046
SELECT + 32 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-6046
SELECT + 32 / + 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT - COUNT( * ) + - 36 + 69
----
32

skipif mysql # not compatible
query I rowsort label-6047
SELECT - COUNT ( * ) + - 36 + 69
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6048
SELECT ALL COUNT( * ) AS col2, + MAX( + 68 ) AS col2
----
1
68

skipif mysql # not compatible
query II rowsort label-6048
SELECT ALL COUNT ( * ) AS col2, + MAX ( + 68 ) AS col2
----
1
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6049
SELECT DISTINCT 50 AS col1, SUM( DISTINCT 34 ) col1
----
50
34

skipif mysql # not compatible
query II rowsort label-6049
SELECT DISTINCT 50 AS col1, SUM ( DISTINCT 34 ) col1
----
50
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT ALL + 81 * - 17 + 66 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL + 81 * - 17 + 66 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 98 * + 9 + 38
----
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6052
SELECT DISTINCT - COALESCE ( + 90, + 74, CASE - ( 34 ) WHEN + CAST( 76 AS SIGNED ) DIV - 22 + 4 THEN + 74 * ( + 58 DIV - 16 ) ELSE - COUNT( * ) END ) * - 54 + - 71
----
4789

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT - COALESCE ( + 90, + 74, CASE - ( 34 ) WHEN + CAST ( 76 AS INTEGER ) / - 22 + 4 THEN + 74 * ( + 58 / - 16 ) ELSE - COUNT ( * ) END ) * - 54 + - 71
----
4789

query I rowsort
SELECT - 68 * - - 75 - - + 4 + 73
----
-5023

query I rowsort
SELECT + ( - - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT ALL + NULLIF ( 16, - - 28 * ( COUNT( * ) ) + 17 ) * 56 + 7
----
903

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL + NULLIF ( 16, - - 28 * ( COUNT ( * ) ) + 17 ) * 56 + 7
----
903

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6056
SELECT 48 DIV - + 19 - + - 30 + - 77 * - CAST( + 87 AS SIGNED ) AS col2
----
6727

skipif mysql # not compatible
query I rowsort label-6056
SELECT 48 / - + 19 - + - 30 + - 77 * - CAST ( + 87 AS INTEGER ) AS col2
----
6727

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT - 42 * + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-6057
SELECT - 42 * + COUNT ( * ) AS col1
----
-42

query I rowsort
SELECT - 36 - + 26 AS col0
----
-62

query I rowsort
SELECT ALL 17 * + 78 + - ( 69 ) AS col0
----
1257

query I rowsort
SELECT + 30 * - 78 - + 26 AS col0
----
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL + CASE - COUNT( * ) WHEN + 36 THEN NULL WHEN 67 THEN 84 * + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL + CASE - COUNT ( * ) WHEN + 36 THEN NULL WHEN 67 THEN 84 * + COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT ALL + CASE + 38 WHEN NULLIF ( - 40, + 95 * 22 + - 60 * - 91 ) / + COALESCE ( + 92, AVG ( ALL 26 ) / + 20 + 30 ) + 86 THEN + ( + 74 ) END col0
----
NULL

query I rowsort
SELECT - - 9 * + 31
----
279

query I rowsort
SELECT + 46 * 83 + + 77
----
3895

query I rowsort
SELECT + + 34 - - 54
----
88

query I rowsort
SELECT - - 65 + - 91 + - 22 + - 50
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT - + CASE + + 75 WHEN + 51 THEN NULL WHEN - 32 * + 93 THEN 14 ELSE NULL END + - MIN( 34 + 76 / 56 ) * - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT - + CASE + + 75 WHEN + 51 THEN NULL WHEN - 32 * + 93 THEN 14 ELSE NULL END + - MIN ( 34 + 76 / 56 ) * - 24 AS col1
----
NULL

query I rowsort
SELECT - 95 * - 42
----
3990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6069
SELECT ALL COUNT( * ) DIV COUNT( * ) DIV 94 * COUNT( * ) + + 49
----
49

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL COUNT ( * ) / COUNT ( * ) / 94 * COUNT ( * ) + + 49
----
49

query I rowsort
SELECT - 8 + - 13 * + 9
----
-125

query II rowsort
SELECT ALL 69 col1, 70 - 13 AS col1
----
69
57

query I rowsort
SELECT - CASE + 70 WHEN - ( - 18 ) + 11 / 67 THEN 20 - 68 * + 1 END
----
NULL

query I rowsort
SELECT + - 24 * + 58 * - 82 + 8
----
114152

query I rowsort
SELECT + ( + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT COUNT( ALL - 97 )
----
1

skipif mysql # not compatible
query I rowsort label-6075
SELECT COUNT ( ALL - 97 )
----
1

query I rowsort
SELECT - 84 + + 12 AS col1
----
-72

query II rowsort
SELECT - 31 col2, 90 AS col1
----
-31
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT MIN( 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6078
SELECT MIN ( 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT - CASE - MAX( + 98 ) WHEN + COUNT( * ) THEN 48 + 56 WHEN ( - 7 ) THEN NULL END * + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT - CASE - MAX ( + 98 ) WHEN + COUNT ( * ) THEN 48 + 56 WHEN ( - 7 ) THEN NULL END * + 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT + 67 * + MAX( ALL - 8 ) AS col0
----
-536

skipif mysql # not compatible
query I rowsort label-6080
SELECT + 67 * + MAX ( ALL - 8 ) AS col0
----
-536

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT DISTINCT ( + + 29 ) * + 28 + 8 * COUNT( * ) col2
----
820

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT ( + + 29 ) * + 28 + 8 * COUNT ( * ) col2
----
820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6082
SELECT ALL + COUNT( - - CAST( + 87 AS SIGNED ) ) + + COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + COUNT ( - - CAST ( + 87 AS INTEGER ) ) + + COUNT ( * ) col1
----
2

query I rowsort
SELECT + 26 + + 46 + + 48 * + 28 AS col0
----
1416

query I rowsort
SELECT DISTINCT NULLIF ( - 75, + 24 ) + + 58 AS col2
----
-17

query I rowsort
SELECT + 2 + 69
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT + SUM( - 26 ) * 4 + - 26 AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-6086
SELECT + SUM ( - 26 ) * 4 + - 26 AS col0
----
-130

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT ALL 67 * COUNT( * ), + 53 AS col0
----
67
53

skipif mysql # not compatible
query II rowsort label-6087
SELECT ALL 67 * COUNT ( * ), + 53 AS col0
----
67
53

query I rowsort
SELECT ALL 84 + + 69 AS col1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT + 90 + - 72 / + + NULLIF ( - CASE WHEN ( 68 ) < ( NULLIF ( - 13, 9 ) ) THEN 57 ELSE CASE + 95 WHEN 78 THEN 60 ELSE - 19 * + 32 END / CAST( NULL AS SIGNED ) + - ( + CAST( + 47 AS SIGNED ) + 7 ) * 77 END, - 30 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT + 90 + - 72 / + + NULLIF ( - CASE WHEN ( 68 ) < ( NULLIF ( - 13, 9 ) ) THEN 57 ELSE CASE + 95 WHEN 78 THEN 60 ELSE - 19 * + 32 END / CAST ( NULL AS INTEGER ) + - ( + CAST ( + 47 AS INTEGER ) + 7 ) * 77 END, - 30 ) AS col2
----
NULL

query I rowsort
SELECT + 66 + - + 13
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT + COUNT( + ( - 1 ) ) - - - 1 * 26 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6091
SELECT + COUNT ( + ( - 1 ) ) - - - 1 * 26 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT DISTINCT COUNT( ALL + 4 )
----
1

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT COUNT ( ALL + 4 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT 53 * + CAST( 56 AS SIGNED ) + - NULLIF ( - 89, - ( + NULLIF ( + 13, + 8 / 99 ) ) * + 63 + NULLIF ( + ( 54 ), 91 - COUNT( * ) ) * - MAX( DISTINCT 80 * - ( - 76 ) + 47 ) ) col1
----
3057

skipif mysql # not compatible
query I rowsort label-6093
SELECT 53 * + CAST ( 56 AS INTEGER ) + - NULLIF ( - 89, - ( + NULLIF ( + 13, + 8 / 99 ) ) * + 63 + NULLIF ( + ( 54 ), 91 - COUNT ( * ) ) * - MAX ( DISTINCT 80 * - ( - 76 ) + 47 ) ) col1
----
3057

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT - 48 + COALESCE ( + 97, - - 33, COUNT( * ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6094
SELECT - 48 + COALESCE ( + 97, - - 33, COUNT ( * ) ) AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT + CAST( + 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-6095
SELECT + CAST ( + 62 AS INTEGER )
----
62

query I rowsort
SELECT ALL - 53 * + 16 AS col1
----
-848

query I rowsort
SELECT 50 + + 46 AS col2
----
96

query I rowsort
SELECT ALL 18 - + 3 - + + 12 * 19 * + 51 - 46 AS col1
----
-11659

query I rowsort
SELECT + CASE + 63 WHEN 24 + - 50 THEN 20 WHEN - 97 THEN 47 * - 85 END * COALESCE ( 84 * - 79, - 75 * 90 ) + + 79 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 12 * COALESCE ( + + 56, + - 18, 54 ) AS col2
----
672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6101
SELECT + - ( + 29 ) DIV SUM( - - 85 ) + - 84 * + 95 AS col1
----
-7980

skipif mysql # not compatible
query I rowsort label-6101
SELECT + - ( + 29 ) / SUM ( - - 85 ) + - 84 * + 95 AS col1
----
-7980

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL + - CASE - - COUNT( * ) WHEN COUNT( * ) THEN + + 88 * COUNT( * ) END * 69 col2
----
-6072

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL + - CASE - - COUNT ( * ) WHEN COUNT ( * ) THEN + + 88 * COUNT ( * ) END * 69 col2
----
-6072

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT - 26 + CASE + 84 WHEN - + COUNT( * ) + 37 THEN - 26 * 94 WHEN - 91 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6103
SELECT - 26 + CASE + 84 WHEN - + COUNT ( * ) + 37 THEN - 26 * 94 WHEN - 91 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL - ( 57 ) - + ( - + 86 ) + - CASE - 28 + + COUNT( * ) / COUNT( + 70 ) WHEN 55 THEN COUNT( * ) * + 89 + 2 / 84 WHEN + 73 * SUM( + 98 * + CASE + 47 * 73 WHEN 81 THEN + NULLIF ( + ( + 71 ), + 43 ) END ) THEN - 46 * ( 69 ) WHEN SUM( ALL - NULLIF ( - 55, 84 ) ) / 82 THEN 34 ELSE NULL END * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL - ( 57 ) - + ( - + 86 ) + - CASE - 28 + + COUNT ( * ) / COUNT ( + 70 ) WHEN 55 THEN COUNT ( * ) * + 89 + 2 / 84 WHEN + 73 * SUM ( + 98 * + CASE + 47 * 73 WHEN 81 THEN + NULLIF ( + ( + 71 ), + 43 ) END ) THEN - 46 * ( 69 ) WHEN SUM ( ALL - NULLIF ( - 55, 84 ) ) / 82 THEN 34 ELSE NULL END * + 64
----
NULL

query I rowsort
SELECT 22 * - 33
----
-726

query I rowsort
SELECT ALL 40 * - COALESCE ( + 34, - - 11 )
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT DISTINCT - CASE + ( - - 95 ) WHEN 64 THEN NULL WHEN NULLIF ( 99, + 12 * + 84 ) * ( COUNT( * ) ) THEN 64 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT - CASE + ( - - 95 ) WHEN 64 THEN NULL WHEN NULLIF ( 99, + 12 * + 84 ) * ( COUNT ( * ) ) THEN 64 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6108
SELECT DISTINCT - ( + COUNT( * ) ) AS col0, - ( + CAST( + 38 AS SIGNED ) ) DIV 26 AS col0
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6108
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0, - ( + CAST ( + 38 AS INTEGER ) ) / 26 AS col0
----
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6109
SELECT DISTINCT - 75 DIV + + 93 + + COUNT( + 33 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT - 75 / + + 93 + + COUNT ( + 33 ) col0
----
1

query I rowsort
SELECT ALL - - 14 * + 43 * - - 5 AS col2
----
3010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT + CAST( NULL AS SIGNED ) * + + 49 / - + 88 * + 12 + + 21 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT + CAST ( NULL AS INTEGER ) * + + 49 / - + 88 * + 12 + + 21 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6112
SELECT DISTINCT - 31 DIV - - 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT - 31 / - - 80 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT + SUM( 81 ) - SUM( 81 )
----
0

skipif mysql # not compatible
query I rowsort label-6113
SELECT + SUM ( 81 ) - SUM ( 81 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6114
SELECT ALL - + 47 + + - 34 DIV + 90 + + - MAX( ALL + 9 ) * - 98
----
835

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - + 47 + + - 34 / + 90 + + - MAX ( ALL + 9 ) * - 98
----
835

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT + 73 - 54 * COALESCE ( + COUNT( * ), + 31 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6115
SELECT + 73 - 54 * COALESCE ( + COUNT ( * ), + 31 ) AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6116
SELECT - 82 / - + 25 + - - 91 + - 51 - + NULLIF ( 22 + - CASE 76 WHEN - COUNT( * ) + COUNT( 83 ) * CAST( COUNT( * ) AS SIGNED ) THEN NULL WHEN - 97 THEN COALESCE ( 16, - CASE - 54 WHEN + CASE 46 WHEN - COALESCE ( - COUNT( * ), 80 / + 84 ) THEN - COUNT( * ) END THEN + 39 * + 3 + 18 WHEN 99 + 78 THEN NULL ELSE NULL END ) END * - 36, + ( 63 ) + + 88 ) * + 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6116
SELECT - 82 / - + 25 + - - 91 + - 51 - + NULLIF ( 22 + - CASE 76 WHEN - COUNT ( * ) + COUNT ( 83 ) * CAST ( COUNT ( * ) AS INTEGER ) THEN NULL WHEN - 97 THEN COALESCE ( 16, - CASE - 54 WHEN + CASE 46 WHEN - COALESCE ( - COUNT ( * ), 80 / + 84 ) THEN - COUNT ( * ) END THEN + 39 * + 3 + 18 WHEN 99 + 78 THEN NULL ELSE NULL END ) END * - 36, + ( 63 ) + + 88 ) * + 12 col1
----
NULL

query I rowsort
SELECT ALL + + 34 * - 20 + + - NULLIF ( - 30, AVG ( DISTINCT 32 ) ) AS col0
----
-650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6118
SELECT DISTINCT - CAST( + 82 AS SIGNED ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - CAST ( + 82 AS INTEGER ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT DISTINCT + + COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6120
SELECT DISTINCT + 74 + + 50 - NULLIF ( 46, - - NULLIF ( - 33, 3 ) + + NULLIF ( COUNT( * ), - 48 ) ) + COUNT( DISTINCT - 58 ) * COUNT( * ) * - COUNT( - 57 + CAST( NULL AS SIGNED ) / 80 )
----
78

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT + 74 + + 50 - NULLIF ( 46, - - NULLIF ( - 33, 3 ) + + NULLIF ( COUNT ( * ), - 48 ) ) + COUNT ( DISTINCT - 58 ) * COUNT ( * ) * - COUNT ( - 57 + CAST ( NULL AS INTEGER ) / 80 )
----
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6121
SELECT ALL CAST( + 23 AS SIGNED ) + + 5 DIV + 14 + + 94
----
117

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL CAST ( + 23 AS INTEGER ) + + 5 / + 14 + + 94
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6122
SELECT COUNT( * ) - - 23 DIV SUM( ALL 3 ) * + COALESCE ( 97, + 65 ) + + ( - MAX( ALL - 83 ) )
----
763

skipif mysql # not compatible
query I rowsort label-6122
SELECT COUNT ( * ) - - 23 / SUM ( ALL 3 ) * + COALESCE ( 97, + 65 ) + + ( - MAX ( ALL - 83 ) )
----
763

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6123
SELECT DISTINCT 40 AS col1, + MIN( ALL 70 ) * MIN( DISTINCT - 28 ) + - 39 DIV + 32
----
40
-1961

skipif mysql # not compatible
query II rowsort label-6123
SELECT DISTINCT 40 AS col1, + MIN ( ALL 70 ) * MIN ( DISTINCT - 28 ) + - 39 / + 32
----
40
-1961

query I rowsort
SELECT 29 - - 55 AS col0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-6125
SELECT ALL - ( - - 28 ) + 77 AS col2, - MAX( 90 ) AS col1
----
49
-90

skipif mysql # not compatible
query II rowsort label-6125
SELECT ALL - ( - - 28 ) + 77 AS col2, - MAX ( 90 ) AS col1
----
49
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6126
SELECT ALL + COUNT( * ) + + - 14 + 1 / + - 37 * 90 + + ( - CAST( NULL AS SIGNED ) ) * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL + COUNT ( * ) + + - 14 + 1 / + - 37 * 90 + + ( - CAST ( NULL AS INTEGER ) ) * - 10
----
NULL

query II rowsort
SELECT 26 AS col2, 43 + + 24 - - 61 AS col2
----
26
128

query I rowsort
SELECT 16 * + - 70 AS col2
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT 19 + - SUM( DISTINCT + 41 )
----
-22

skipif mysql # not compatible
query I rowsort label-6129
SELECT 19 + - SUM ( DISTINCT + 41 )
----
-22

query I rowsort
SELECT 64 - - 1
----
65

query I rowsort
SELECT ALL 13 * - + 31
----
-403

onlyif mysql # aggregate syntax: 
query II rowsort label-6132
SELECT ALL 30 - - 58 * + + 45 AS col1, CASE - 70 WHEN + 78 / + 14 THEN COUNT( * ) WHEN COUNT( * ) + 65 THEN NULL END
----
2640
NULL

skipif mysql # not compatible
query II rowsort label-6132
SELECT ALL 30 - - 58 * + + 45 AS col1, CASE - 70 WHEN + 78 / + 14 THEN COUNT ( * ) WHEN COUNT ( * ) + 65 THEN NULL END
----
2640
NULL

query II rowsort
SELECT DISTINCT 15 AS col2, - 36
----
15
-36

query I rowsort
SELECT DISTINCT 65 - 14 + 66
----
117

query I rowsort
SELECT 54 * - 32 * + 46 AS col0
----
-79488

query I rowsort
SELECT ALL - ( + 46 ) * + + 2
----
-92

query II rowsort
SELECT 69, + 58 * + 18 AS col2
----
69
1044

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT ALL 0 - - - MIN( 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL 0 - - - MIN ( 14 )
----
-14

query I rowsort
SELECT DISTINCT 12 * - 58
----
-696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6140
SELECT 44 * + 62 * COALESCE ( 70, - 24 * + CAST( NULL AS SIGNED ) )
----
190960

skipif mysql # not compatible
query I rowsort label-6140
SELECT 44 * + 62 * COALESCE ( 70, - 24 * + CAST ( NULL AS INTEGER ) )
----
190960

query I rowsort
SELECT 79 * - 80 AS col0
----
-6320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6142
SELECT + 66 DIV ( COUNT( * ) ) + - 91
----
-25

skipif mysql # not compatible
query I rowsort label-6142
SELECT + 66 / ( COUNT ( * ) ) + - 91
----
-25

query II rowsort
SELECT ALL - - 71, 15 AS col0
----
71
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6144
SELECT ALL - CAST( NULL AS DECIMAL ) / + 55 * - 53 / NULLIF ( COALESCE ( + CAST( NULL AS SIGNED ), + 1 * 41 ), + 9 * + ( 75 * COUNT( 87 ) ) - 36 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL - CAST ( NULL AS REAL ) / + 55 * - 53 / NULLIF ( COALESCE ( + CAST ( NULL AS INTEGER ), + 1 * 41 ), + 9 * + ( 75 * COUNT ( 87 ) ) - 36 ) + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 63 - + 10
----
53

query I rowsort
SELECT 37 * + 50
----
1850

query I rowsort
SELECT ALL - + 62 * + 62 AS col1
----
-3844

query I rowsort
SELECT DISTINCT 56 + + 32 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT NULLIF ( 31, + 13 ) * - 38 - + ( - 13 ) + 94 DIV 65 DIV 18 AS col0
----
-1165

skipif mysql # not compatible
query I rowsort label-6149
SELECT NULLIF ( 31, + 13 ) * - 38 - + ( - 13 ) + 94 / 65 / 18 AS col0
----
-1165

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT + COUNT( * ) * - MIN( DISTINCT - - 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6150
SELECT + COUNT ( * ) * - MIN ( DISTINCT - - 50 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL 74 + - + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL 74 + - + COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT - COUNT( - - 99 ) * - + 8 + - 92 + 19 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6152
SELECT - COUNT ( - - 99 ) * - + 8 + - 92 + 19 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT + + 87 * - COUNT( * ) * - 49 * - + 64 + 37 * - 56 AS col1
----
-274904

skipif mysql # not compatible
query I rowsort label-6153
SELECT + + 87 * - COUNT ( * ) * - 49 * - + 64 + 37 * - 56 AS col1
----
-274904

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT + + COALESCE ( + COUNT( * ), + - 26, - 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6154
SELECT + + COALESCE ( + COUNT ( * ), + - 26, - 75 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT - MIN( - 84 ) + - - 90
----
174

skipif mysql # not compatible
query I rowsort label-6155
SELECT - MIN ( - 84 ) + - - 90
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6156
SELECT COUNT( * ) * 71 - - CAST( 10 AS SIGNED ) - - + ( 8 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6156
SELECT COUNT ( * ) * 71 - - CAST ( 10 AS INTEGER ) - - + ( 8 ) AS col0
----
89

query I rowsort
SELECT ALL + + 7 + + 62 * 79
----
4905

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6158
SELECT ALL CAST( + 29 AS SIGNED ) col2
----
29

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL CAST ( + 29 AS INTEGER ) col2
----
29

query I rowsort
SELECT ALL - 86 + - + 20
----
-106

query I rowsort
SELECT + 6 + + 13 AS col0
----
19

query I rowsort
SELECT DISTINCT 8 + - - 45 + + 87 + - 17 * 22
----
-234

onlyif mysql # DIV for integer division: 
query II rowsort label-6162
SELECT - 89, 44 DIV 12 AS col1
----
-89
3

skipif mysql # not compatible
query II rowsort label-6162
SELECT - 89, 44 / 12 AS col1
----
-89
3

query I rowsort
SELECT 38 + - + 25
----
13

query I rowsort
SELECT 16 + + 41 * 55 AS col0
----
2271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6165
SELECT - 97, - 22 * - 60 - + 28 + - 95 + - + COUNT( * ) - CASE WHEN NOT NULL BETWEEN - 48 - 55 AND 73 THEN + 99 WHEN NOT ( - CASE + COUNT( * ) WHEN COUNT( * ) + - 25 * 48 THEN COALESCE ( 47, + 16 ) END + + CAST( NULL AS SIGNED ) ) = + ( CAST( NULL AS DECIMAL ) ) THEN NULL ELSE NULL END * 53 / 40 AS col2
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-6165
SELECT - 97, - 22 * - 60 - + 28 + - 95 + - + COUNT ( * ) - CASE WHEN NOT NULL BETWEEN - 48 - 55 AND 73 THEN + 99 WHEN NOT ( - CASE + COUNT ( * ) WHEN COUNT ( * ) + - 25 * 48 THEN COALESCE ( 47, + 16 ) END + + CAST ( NULL AS INTEGER ) ) = + ( CAST ( NULL AS REAL ) ) THEN NULL ELSE NULL END * 53 / 40 AS col2
----
-97
NULL

query II rowsort
SELECT 44, - 96 AS col0
----
44
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT 35 * 56 * - 7 DIV + 7
----
-1960

skipif mysql # not compatible
query I rowsort label-6167
SELECT 35 * 56 * - 7 / + 7
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL CASE 16 WHEN + 59 THEN NULL WHEN + 9 THEN 89 - - COUNT( * ) ELSE - 92 END AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL CASE 16 WHEN + 59 THEN NULL WHEN + 9 THEN 89 - - COUNT ( * ) ELSE - 92 END AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL - 98 - + - 41 + + 70 + + COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL - 98 - + - 41 + + 70 + + COUNT ( * ) AS col0
----
14

query I rowsort
SELECT ALL - 26 * - 67 AS col2
----
1742

query I rowsort
SELECT - 13 + - + 47
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6172
SELECT - COUNT( DISTINCT + 2 ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-6172
SELECT - COUNT ( DISTINCT + 2 ) / - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL COUNT( DISTINCT 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL COUNT ( DISTINCT 77 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6174
SELECT ALL 83 DIV 82 * 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL 83 / 82 * 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT ALL COUNT( DISTINCT ( ( + + 39 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL COUNT ( DISTINCT ( ( + + 39 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6176
SELECT ALL NULLIF ( 57, + COUNT( 24 ) ) AS col2, + 21 AS col2
----
57
21

skipif mysql # not compatible
query II rowsort label-6176
SELECT ALL NULLIF ( 57, + COUNT ( 24 ) ) AS col2, + 21 AS col2
----
57
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6177
SELECT - 77 + - - COALESCE ( + ( 35 ), - 96 * ( 69 ) * 14, - 84 * 93 + + CASE - AVG ( ALL 1 ) WHEN - ( - 56 ) + CAST( - 19 AS SIGNED ) THEN SUM( ALL + 2 ) ELSE NULL END )
----
-42

skipif mysql # not compatible
query I rowsort label-6177
SELECT - 77 + - - COALESCE ( + ( 35 ), - 96 * ( 69 ) * 14, - 84 * 93 + + CASE - AVG ( ALL 1 ) WHEN - ( - 56 ) + CAST ( - 19 AS INTEGER ) THEN SUM ( ALL + 2 ) ELSE NULL END )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT - COUNT( ALL - 0 ) + 18 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6178
SELECT - COUNT ( ALL - 0 ) + 18 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT + ( - - COUNT( * ) ) - - + 91
----
92

skipif mysql # not compatible
query I rowsort label-6179
SELECT + ( - - COUNT ( * ) ) - - + 91
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6180
SELECT - 29 * - NULLIF ( COALESCE ( - COALESCE ( - ( + CASE + CAST( 65 AS DECIMAL ) WHEN + AVG ( 88 ) + 88 * 3 THEN - 29 * COUNT( * ) END ), - ( - 90 ) ), - NULLIF ( + 74, - 10 * COUNT( * ) ) ), - 54 * - 98 )
----
-2610

skipif mysql # not compatible
query I rowsort label-6180
SELECT - 29 * - NULLIF ( COALESCE ( - COALESCE ( - ( + CASE + CAST ( 65 AS REAL ) WHEN + AVG ( 88 ) + 88 * 3 THEN - 29 * COUNT ( * ) END ), - ( - 90 ) ), - NULLIF ( + 74, - 10 * COUNT ( * ) ) ), - 54 * - 98 )
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL + + SUM( + - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL + + SUM ( + - 74 )
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6182
SELECT + - 77 DIV - 83 + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-6182
SELECT + - 77 / - 83 + - 9
----
-9

query I rowsort
SELECT - + 3 * - 98 AS col0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL - 97 * + - CASE + 32 WHEN + - 56 * 12 + - - 84 * - 94 THEN SUM( ALL 81 ) * 97 + + COUNT( * ) * 80 ELSE NULL END + 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL - 97 * + - CASE + 32 WHEN + - 56 * 12 + - - 84 * - 94 THEN SUM ( ALL 81 ) * 97 + + COUNT ( * ) * 80 ELSE NULL END + 98 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 0 * - 54
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6186
SELECT + + 62 * - + ( - 19 ) * - + 48 + 83 * + - 65 + + 49 + - 47 DIV COUNT( * )
----
-61937

skipif mysql # not compatible
query I rowsort label-6186
SELECT + + 62 * - + ( - 19 ) * - + 48 + 83 * + - 65 + + 49 + - 47 / COUNT ( * )
----
-61937

query I rowsort
SELECT + 88 * 46 + - 52 col2
----
3996

query I rowsort
SELECT ALL + 97 * + NULLIF ( - - 3, - NULLIF ( + 11, - 32 ) ) - 98 + 50 AS col2
----
243

query I rowsort
SELECT - 28 * 50
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT + + COUNT( ( 36 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6190
SELECT + + COUNT ( ( 36 ) ) AS col1
----
1

query I rowsort
SELECT + - 45 + 78 * - 25 - ( + 11 )
----
-2006

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT + - 76 DIV - ( + + 87 )
----
0

skipif mysql # not compatible
query I rowsort label-6192
SELECT + - 76 / - ( + + 87 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + + 71 + - COALESCE ( + - MAX( 48 ), - ( + 66 ) ) * - MAX( ALL + 96 ) AS col0
----
-4537

skipif mysql # not compatible
query I rowsort label-6193
SELECT + + 71 + - COALESCE ( + - MAX ( 48 ), - ( + 66 ) ) * - MAX ( ALL + 96 ) AS col0
----
-4537

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT + CASE - - 3 WHEN - COUNT( * ) + - COUNT( * ) THEN NULL WHEN - - 58 THEN - 34 WHEN ( + 90 ) + - COUNT( - 67 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6194
SELECT + CASE - - 3 WHEN - COUNT ( * ) + - COUNT ( * ) THEN NULL WHEN - - 58 THEN - 34 WHEN ( + 90 ) + - COUNT ( - 67 ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6195
SELECT DISTINCT - 40 * - - 97 + - CAST( - + ( 46 ) AS SIGNED ) + 77 AS col2
----
-3757

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT - 40 * - - 97 + - CAST ( - + ( 46 ) AS INTEGER ) + 77 AS col2
----
-3757

query II rowsort
SELECT DISTINCT - 32 * 30 AS col0, - 67 AS col0
----
-960
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT ALL + 21 DIV + 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL + 21 / + 56 AS col1
----
0

query I rowsort
SELECT ALL 30 * + 40 AS col2
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6199
SELECT ALL - 41 * + + COALESCE ( + ( - 62 ), - 9 + - 30, - 58, 26 + - CAST( NULL AS SIGNED ) )
----
2542

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL - 41 * + + COALESCE ( + ( - 62 ), - 9 + - 30, - 58, 26 + - CAST ( NULL AS INTEGER ) )
----
2542

query I rowsort
SELECT + 4 * 23 AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6201
SELECT MAX( - 96 ), + 69 AS col0
----
-96
69

skipif mysql # not compatible
query II rowsort label-6201
SELECT MAX ( - 96 ), + 69 AS col0
----
-96
69

query I rowsort
SELECT + ( - 28 ) col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL - 94 * + 86 * 23 - + MAX( - CASE WHEN + NULLIF ( 12, 84 ) IS NOT NULL THEN - 11 ELSE ( - 12 ) END ) - + 55 * 29
----
-187538

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - 94 * + 86 * 23 - + MAX ( - CASE WHEN + NULLIF ( 12, 84 ) IS NOT NULL THEN - 11 ELSE ( - 12 ) END ) - + 55 * 29
----
-187538

query I rowsort
SELECT + 49 - 81
----
-32

query I rowsort
SELECT - CASE - 59 WHEN COALESCE ( - + 45, 16 ) * 64 THEN NULL WHEN + - 16 THEN 17 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT - 31 * + COUNT( DISTINCT - 53 ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-6206
SELECT - 31 * + COUNT ( DISTINCT - 53 ) col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-6207
SELECT ALL COUNT( * ) * + + COUNT( * ) AS col0, 23
----
1
23

skipif mysql # not compatible
query II rowsort label-6207
SELECT ALL COUNT ( * ) * + + COUNT ( * ) AS col0, 23
----
1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT COUNT( * ) * + COUNT( + 81 ) + - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6208
SELECT COUNT ( * ) * + COUNT ( + 81 ) + - - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL NULLIF ( - 73, - ( + + NULLIF ( + + 32, MAX( 43 ) ) ) ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL NULLIF ( - 73, - ( + + NULLIF ( + + 32, MAX ( 43 ) ) ) ) AS col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6210
SELECT ALL + 66 - + MAX( - ( - 13 ) ) DIV - + 98 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL + 66 - + MAX ( - ( - 13 ) ) / - + 98 AS col1
----
66

query I rowsort
SELECT + 96 * 54
----
5184

query I rowsort
SELECT - 13 + 17 AS col1
----
4

query I rowsort
SELECT - 72 - 12
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL NULLIF ( - - 26, COUNT( * ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL NULLIF ( - - 26, COUNT ( * ) ) AS col1
----
26

query I rowsort
SELECT ALL ( 38 ) - - 25
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6216
SELECT - ( 48 ) AS col1, MAX( 61 ) * + - CASE - - 92 WHEN - SUM( - 19 ) THEN - 68 END
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-6216
SELECT - ( 48 ) AS col1, MAX ( 61 ) * + - CASE - - 92 WHEN - SUM ( - 19 ) THEN - 68 END
----
-48
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT DISTINCT + 49 DIV - 8 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT + 49 / - 8 AS col0
----
-6

query I rowsort
SELECT ALL NULLIF ( 95, - 90 * - 19 ) AS col1
----
95

query I rowsort
SELECT - 59 + + 11 + + ( - - 64 ) * 49 AS col1
----
3088

query II rowsort
SELECT ALL + 31 * - - 1 AS col0, - 90 AS col0
----
31
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT - COALESCE ( - 29, + - 94 ) * 3 + 53 + - 40 * + + CASE - COUNT( * ) WHEN 25 THEN 65 ELSE NULL END * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT - COALESCE ( - 29, + - 94 ) * 3 + 53 + - 40 * + + CASE - COUNT ( * ) WHEN 25 THEN 65 ELSE NULL END * 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT - CAST( NULL AS SIGNED ) + + + 27 + - 23 + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6222
SELECT - CAST ( NULL AS INTEGER ) + + + 27 + - 23 + 72 AS col0
----
NULL

query I rowsort
SELECT ALL + 22 * - 53 * + CASE ( 14 ) WHEN + + 88 * + 4 + 34 THEN + ( + 70 ) END
----
NULL

query I rowsort
SELECT DISTINCT 53 * - + 75 * 74 * + 45 AS col0
----
-13236750

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT ALL - 96 + + + 32 DIV - 21 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - 96 + + + 32 / - 21 AS col2
----
-97

query II rowsort
SELECT DISTINCT - - 53 + - 64, 41 AS col0
----
-11
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6227
SELECT DISTINCT COALESCE ( - 35, ( + 80 ) DIV + 18 * 34 + + 80, + 19 + COUNT( * ) )
----
-35

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT COALESCE ( - 35, ( + 80 ) / + 18 * 34 + + 80, + 19 + COUNT ( * ) )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT - 59 * + COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6228
SELECT - 59 * + COUNT ( * ) AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT ALL + 36 / + - 83 + + CAST( + AVG ( ALL + 58 ) AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL + 36 / + - 83 + + CAST ( + AVG ( ALL + 58 ) AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT + 19 / + + COALESCE ( - NULLIF ( + 70, - 96 ), - 35 * + 19 * + 16 ) + + CASE ( NULLIF ( 58, 24 ) ) + + 87 WHEN + COUNT( * ) + - 3 THEN + 78 + 0 * 56 WHEN - ( - 25 ) * + 5 THEN NULL ELSE 64 END + CASE 12 + + 37 WHEN + COUNT( * ) THEN - 71 - 98 WHEN 25 + 38 THEN NULL WHEN 55 * COALESCE ( 23, 23 * - 43 + + CASE - 1 WHEN + 62 / + COUNT( * ) THEN - 2 ELSE - ( - 42 ) / - MAX( DISTINCT + 69 ) END ) - 76 THEN + 95 END * NULLIF ( MIN( 67 ), - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT + 19 / + + COALESCE ( - NULLIF ( + 70, - 96 ), - 35 * + 19 * + 16 ) + + CASE ( NULLIF ( 58, 24 ) ) + + 87 WHEN + COUNT ( * ) + - 3 THEN + 78 + 0 * 56 WHEN - ( - 25 ) * + 5 THEN NULL ELSE 64 END + CASE 12 + + 37 WHEN + COUNT ( * ) THEN - 71 - 98 WHEN 25 + 38 THEN NULL WHEN 55 * COALESCE ( 23, 23 * - 43 + + CASE - 1 WHEN + 62 / + COUNT ( * ) THEN - 2 ELSE - ( - 42 ) / - MAX ( DISTINCT + 69 ) END ) - 76 THEN + 95 END * NULLIF ( MIN ( 67 ), - 19 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6231
SELECT + CASE WHEN CAST( NULL AS DECIMAL ) IS NULL THEN NULL ELSE 55 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT + CASE WHEN CAST ( NULL AS REAL ) IS NULL THEN NULL ELSE 55 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT - - COUNT( * ) + + COUNT( DISTINCT + - NULLIF ( - 47, - 7 + + 41 ) ) col1
----
2

skipif mysql # not compatible
query I rowsort label-6232
SELECT - - COUNT ( * ) + + COUNT ( DISTINCT + - NULLIF ( - 47, - 7 + + 41 ) ) col1
----
2

query I rowsort
SELECT + + COALESCE ( + NULLIF ( - 32, 15 ), + 70, 45 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT - + 93 * + 41 - 11 + SUM( DISTINCT + 12 ) AS col2
----
-3812

skipif mysql # not compatible
query I rowsort label-6234
SELECT - + 93 * + 41 - 11 + SUM ( DISTINCT + 12 ) AS col2
----
-3812

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT + SUM( + - 89 ) + + + COALESCE ( + 46, + ( + - 57 ) ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6235
SELECT + SUM ( + - 89 ) + + + COALESCE ( + 46, + ( + - 57 ) ) AS col1
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6236
SELECT ALL + + 16 * - 71 + - 74 + - ( + AVG ( DISTINCT + 7 ) ) / + 14 + - CAST( NULL AS DECIMAL ) - - 44 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL + + 16 * - 71 + - 74 + - ( + AVG ( DISTINCT + 7 ) ) / + 14 + - CAST ( NULL AS REAL ) - - 44 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6237
SELECT + - CAST( NULL AS SIGNED ) * + 20 * + 28 * 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT + - CAST ( NULL AS INTEGER ) * + 20 * + 28 * 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT + COUNT( * ) * - - 74 + + 28 * + 17 AS col1
----
550

skipif mysql # not compatible
query I rowsort label-6238
SELECT + COUNT ( * ) * - - 74 + + 28 * + 17 AS col1
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT SUM( - - 83 ) col1
----
83

skipif mysql # not compatible
query I rowsort label-6239
SELECT SUM ( - - 83 ) col1
----
83

query II rowsort
SELECT ALL + 80 AS col2, ( - + 42 ) + - - 14
----
80
-28

query II rowsort
SELECT ALL + 83, 84 AS col2
----
83
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT - 79 * 57 + + COUNT( DISTINCT + - COALESCE ( 55, + + 7, - 17 ) ) * - NULLIF ( - 19, 75 * + 98 - 16 ) AS col1
----
-4484

skipif mysql # not compatible
query I rowsort label-6242
SELECT - 79 * 57 + + COUNT ( DISTINCT + - COALESCE ( 55, + + 7, - 17 ) ) * - NULLIF ( - 19, 75 * + 98 - 16 ) AS col1
----
-4484

query I rowsort
SELECT + 2 + - 9 * 35 - - ( 57 ) * 29
----
1340

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT 34 * + + ( - - 77 ) - COUNT( * ) * + 41 - + - COUNT( * ) + - CASE 48 WHEN - 91 + - 74 THEN - 68 * - 23 WHEN - 20 / - 95 THEN NULL WHEN + 9 THEN - NULLIF ( - 83, + COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6244
SELECT 34 * + + ( - - 77 ) - COUNT ( * ) * + 41 - + - COUNT ( * ) + - CASE 48 WHEN - 91 + - 74 THEN - 68 * - 23 WHEN - 20 / - 95 THEN NULL WHEN + 9 THEN - NULLIF ( - 83, + COUNT ( * ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT ALL COUNT( * ) - + - 56 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL COUNT ( * ) - + - 56 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL - MAX( 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL - MAX ( 73 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6247
SELECT ALL 90 DIV 88 col0
----
1

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL 90 / 88 col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6248
SELECT ( - 91 ) DIV + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6248
SELECT ( - 91 ) / + COUNT ( * ) AS col0
----
-91

query I rowsort
SELECT ALL 7 * 55 col0
----
385

onlyif mysql # DIV for integer division: 
query I rowsort label-6250
SELECT DISTINCT 19 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT 19 / + 87
----
0

query I rowsort
SELECT ALL 84 * + 56 AS col1
----
4704

onlyif mysql # DIV for integer division: 
query I rowsort label-6252
SELECT 34 DIV + + 60
----
0

skipif mysql # not compatible
query I rowsort label-6252
SELECT 34 / + + 60
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6253
SELECT 70 DIV + + COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-6253
SELECT 70 / + + COUNT ( * ) AS col1
----
70

query I rowsort
SELECT ( 50 ) * + 42 AS col1
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL 48 * + - MIN( ALL 97 )
----
-4656

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL 48 * + - MIN ( ALL 97 )
----
-4656

query I rowsort
SELECT 60 + - 9
----
51

query I rowsort
SELECT DISTINCT 41 + 16 * + + 67 * - 89 + 78 AS col0
----
-95289

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ( - + MIN( - + 44 ) ) * - NULLIF ( + + 51, - - 49 )
----
-2244

skipif mysql # not compatible
query I rowsort label-6258
SELECT ( - + MIN ( - + 44 ) ) * - NULLIF ( + + 51, - - 49 )
----
-2244

query I rowsort
SELECT ALL 12 + - 57
----
-45

query I rowsort
SELECT ALL - CASE + 1 WHEN - 98 THEN - 37 WHEN 52 - + - 6 THEN + 6 END + + 47 + 56 * + 71 * + CASE + 71 WHEN + 11 THEN + 97 + CASE NULLIF ( + 45, + 8 ) WHEN - 83 + 75 THEN NULL WHEN 16 THEN + 4 * 17 + + 89 * + 21 ELSE NULL END ELSE - ( 24 ) END AS col0
----
NULL

query I rowsort
SELECT 74 + + + ( - 71 ) - + 53 AS col2
----
-50

query I rowsort
SELECT DISTINCT - 39 + - + 53 col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6263
SELECT + 43 + + NULLIF ( - COUNT( * ), + + CAST( NULL AS SIGNED ) ) * 77
----
-34

skipif mysql # not compatible
query I rowsort label-6263
SELECT + 43 + + NULLIF ( - COUNT ( * ), + + CAST ( NULL AS INTEGER ) ) * 77
----
-34

query I rowsort
SELECT ALL - 6 + + 18 + + - 43 + COALESCE ( 13, - 63 ) * - + 66 * - 29 * ( 7 * - 96 ) * - 93 col1
----
1555025441

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT - - MIN( DISTINCT - 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6265
SELECT - - MIN ( DISTINCT - 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6266
SELECT 53 + - + COUNT( * ) DIV - + 38
----
53

skipif mysql # not compatible
query I rowsort label-6266
SELECT 53 + - + COUNT ( * ) / - + 38
----
53

query I rowsort
SELECT - ( - 43 ) - - 85 + + 36 col0
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-6268
SELECT ALL + + 88 DIV + 31
----
2

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL + + 88 / + 31
----
2

query I rowsort
SELECT - 10 + - COALESCE ( - NULLIF ( - 53, + 79 + + + 23 + 55 + COALESCE ( 54, - 80 + + NULLIF ( 61, - 57 + 64 ) ) / 4 / 76 ), + ( - ( 68 ) ) ) AS col0
----
-63

query I rowsort
SELECT 43 + + + 30 + - 53 * 82
----
-4273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT DISTINCT - - NULLIF ( - CASE - ( 71 ) WHEN - CAST( NULL AS SIGNED ) THEN 24 * - 27 * + 33 END, 71 + + 50 * ( + AVG ( ALL - 30 ) ) ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT - - NULLIF ( - CASE - ( 71 ) WHEN - CAST ( NULL AS INTEGER ) THEN 24 * - 27 * + 33 END, 71 + + 50 * ( + AVG ( ALL - 30 ) ) ) + 59
----
NULL

query I rowsort
SELECT ALL + - 75 + - 26 AS col0
----
-101

query I rowsort
SELECT ALL 6 * + + 69 * - COALESCE ( 28, + + 43 ) + - 32 - 0 AS col1
----
-11624

query I rowsort
SELECT COALESCE ( - 11, 60, - 80 + - 10 )
----
-11

query I rowsort
SELECT ALL + 63 - - 8 * + 0 AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6276
SELECT ALL - 99 DIV 87 DIV - 37 + - 8 AS col0, SUM( 90 )
----
-8
90

skipif mysql # not compatible
query II rowsort label-6276
SELECT ALL - 99 / 87 / - 37 + - 8 AS col0, SUM ( 90 )
----
-8
90

query I rowsort
SELECT - 26 * - 66
----
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-6278
SELECT 91 * - ( + 31 ) + - 52 DIV - 6 + + 78
----
-2735

skipif mysql # not compatible
query I rowsort label-6278
SELECT 91 * - ( + 31 ) + - 52 / - 6 + + 78
----
-2735

query I rowsort
SELECT ALL - - 65 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT DISTINCT - MIN( - 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT - MIN ( - 41 ) AS col1
----
41

query I rowsort
SELECT ALL - CASE + 92 WHEN 79 * + 98 THEN NULL ELSE + 31 END AS col0
----
-31

query I rowsort
SELECT DISTINCT 49 * 45
----
2205

query I rowsort
SELECT ALL 67 * - 32 AS col1
----
-2144

query I rowsort
SELECT 44 - + + 53
----
-9

query I rowsort
SELECT DISTINCT + 77 + - 85
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT ALL MAX( DISTINCT 48 ) + 21 + - - 61 AS col0, 5 + - COUNT( * ) + - + 27 AS col2
----
130
-23

skipif mysql # not compatible
query II rowsort label-6286
SELECT ALL MAX ( DISTINCT 48 ) + 21 + - - 61 AS col0, 5 + - COUNT ( * ) + - + 27 AS col2
----
130
-23

query I rowsort
SELECT DISTINCT 53 + - 17 * 65 AS col1
----
-1052

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT 88 - - + COUNT( + + 79 )
----
89

skipif mysql # not compatible
query I rowsort label-6288
SELECT 88 - - + COUNT ( + + 79 )
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-6289
SELECT 95 DIV - - 62, + 82 * 89 DIV - 60 AS col0
----
1
-121

skipif mysql # not compatible
query II rowsort label-6289
SELECT 95 / - - 62, + 82 * 89 / - 60 AS col0
----
1
-121

query I rowsort
SELECT - 80 * - 11 AS col1
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT COUNT( * ) + 96 * - 87 AS col0
----
-8351

skipif mysql # not compatible
query I rowsort label-6291
SELECT COUNT ( * ) + 96 * - 87 AS col0
----
-8351

onlyif mysql # DIV for integer division: 
query I rowsort label-6292
SELECT DISTINCT + 86 + 3 DIV + + 70 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT + 86 + 3 / + + 70 AS col2
----
86

query II rowsort
SELECT DISTINCT + 27 + - 40 col1, 93 AS col0
----
-13
93

query I rowsort
SELECT ALL - 52 + - 46 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT - - MAX( DISTINCT - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-6295
SELECT - - MAX ( DISTINCT - 24 )
----
-24

query I rowsort
SELECT DISTINCT 95 - - 93 + + 82
----
270

query I rowsort
SELECT 6 * 59 AS col2
----
354

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL + SUM( + 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL + SUM ( + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - - NULLIF ( + 52, COUNT( * ) / 88 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6299
SELECT - - NULLIF ( + 52, COUNT ( * ) / 88 ) AS col2
----
52

query I rowsort
SELECT ALL - - NULLIF ( 72, - + 14 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT - 60 * 7 + + COUNT( * ) + + 2 * 30
----
-359

skipif mysql # not compatible
query I rowsort label-6301
SELECT - 60 * 7 + + COUNT ( * ) + + 2 * 30
----
-359

onlyif mysql # DIV for integer division: 
query I rowsort label-6302
SELECT + - 71 DIV + 55
----
-1

skipif mysql # not compatible
query I rowsort label-6302
SELECT + - 71 / + 55
----
-1

query I rowsort
SELECT DISTINCT 44 * - 40
----
-1760

onlyif mysql # DIV for integer division: 
query II rowsort label-6304
SELECT DISTINCT + ( + ( - 14 ) ) AS col2, + 1 DIV + NULLIF ( - 61, + 83 ) * - 99 * 28 - - + 32 + NULLIF ( 1, 97 + 63 * 25 ) * + ( - 72 )
----
-14
-40

skipif mysql # not compatible
query II rowsort label-6304
SELECT DISTINCT + ( + ( - 14 ) ) AS col2, + 1 / + NULLIF ( - 61, + 83 ) * - 99 * 28 - - + 32 + NULLIF ( 1, 97 + 63 * 25 ) * + ( - 72 )
----
-14
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6305
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT CAST ( NULL AS REAL ) * - 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT COUNT( 90 )
----
1

skipif mysql # not compatible
query I rowsort label-6306
SELECT COUNT ( 90 )
----
1

query I rowsort
SELECT DISTINCT + ( + + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL 14 * - CASE + 35 WHEN + 54 THEN - 7 END + - - MAX( DISTINCT 92 ) + - 36 * - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL 14 * - CASE + 35 WHEN + 54 THEN - 7 END + - - MAX ( DISTINCT 92 ) + - 36 * - + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT 72 * - 14 + 61 * + COUNT( * )
----
-947

skipif mysql # not compatible
query I rowsort label-6309
SELECT 72 * - 14 + 61 * + COUNT ( * )
----
-947

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL 20 * - COUNT( * ) + + 54
----
34

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL 20 * - COUNT ( * ) + + 54
----
34

query I rowsort
SELECT - 13 + + - 66 + + 67 + 31 AS col2
----
19

query I rowsort
SELECT - 36 * + + ( NULLIF ( + 61, 88 ) ) AS col2
----
-2196

query II rowsort
SELECT ALL + 72 + 55 * + + 78 + - - 50 + - - 72, 20 AS col2
----
4484
20

onlyif mysql # aggregate syntax: 
query II rowsort label-6314
SELECT COUNT( * ) AS col1, + 83 - - 15
----
1
98

skipif mysql # not compatible
query II rowsort label-6314
SELECT COUNT ( * ) AS col1, + 83 - - 15
----
1
98

query I rowsort
SELECT ALL + 63 + + 18
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT DISTINCT + 91 + + COUNT( DISTINCT + 78 ) + + 59
----
151

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT + 91 + + COUNT ( DISTINCT + 78 ) + + 59
----
151

query I rowsort
SELECT - 0 * - + 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6318
SELECT + 88 * - - COUNT( * ) + + 67 DIV + 73
----
88

skipif mysql # not compatible
query I rowsort label-6318
SELECT + 88 * - - COUNT ( * ) + + 67 / + 73
----
88

query I rowsort
SELECT ALL CASE + 86 WHEN - 45 / - 95 + 17 + 34 THEN - 4 WHEN + 60 + - 47 THEN 15 END
----
NULL

query I rowsort
SELECT DISTINCT - 18 * + 98 * 3
----
-5292

query I rowsort
SELECT ALL - 0 * 22 * + + 72 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT - 64 + - - 42 * - 46 + + COUNT( * )
----
-1995

skipif mysql # not compatible
query I rowsort label-6322
SELECT - 64 + - - 42 * - 46 + + COUNT ( * )
----
-1995

query II rowsort
SELECT - 89, + 50 + - 12 AS col1
----
-89
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT MAX( ALL + - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-6324
SELECT MAX ( ALL + - 65 )
----
-65

query I rowsort
SELECT DISTINCT + 56 - + 74 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ALL MAX( 54 ) col0
----
54

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL MAX ( 54 ) col0
----
54

query II rowsort
SELECT - 84, 60 AS col2
----
-84
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6328
SELECT ( - COALESCE ( + 80, - 11 * CAST( NULL AS SIGNED ) * + 66 ) ) AS col1, CASE + 47 WHEN COUNT( * ) + - + 13 * COUNT( 2 ) THEN ( 28 ) ELSE NULL END * + 13 AS col0
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-6328
SELECT ( - COALESCE ( + 80, - 11 * CAST ( NULL AS INTEGER ) * + 66 ) ) AS col1, CASE + 47 WHEN COUNT ( * ) + - + 13 * COUNT ( 2 ) THEN ( 28 ) ELSE NULL END * + 13 AS col0
----
-80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT DISTINCT + SUM( DISTINCT - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT + SUM ( DISTINCT - 24 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT DISTINCT + - CAST( + - 89 AS SIGNED ) - + 66 - 97
----
-74

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT + - CAST ( + - 89 AS INTEGER ) - + 66 - 97
----
-74

query I rowsort
SELECT ALL ( 93 ) * + 40 AS col1
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT + - 68 * + + COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6332
SELECT + - 68 * + + COUNT ( * ) AS col2
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT DISTINCT + + 79 DIV + - 78 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT + + 79 / + - 78 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT + 55 + - SUM( - 49 ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-6334
SELECT + 55 + - SUM ( - 49 ) AS col2
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6335
SELECT ALL 25 * - 39 + 61 + - 52 + CAST( NULL AS SIGNED ) + + + 73 * - 56 * + + ( 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL 25 * - 39 + 61 + - 52 + CAST ( NULL AS INTEGER ) + + + 73 * - 56 * + + ( 44 )
----
NULL

query I rowsort
SELECT + - 60 + - 34 AS col1
----
-94

query I rowsort
SELECT + 68 * + 74
----
5032

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT + + ( + - 66 ) + - COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-6338
SELECT + + ( + - 66 ) + - COUNT ( * ) AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6339
SELECT ALL - 80 * CAST( 66 AS SIGNED ) DIV - 26 + + - 8 + + 99 + - - 51 * - + 63 * + 89
----
-285663

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - 80 * CAST ( 66 AS INTEGER ) / - 26 + + - 8 + + 99 + - - 51 * - + 63 * + 89
----
-285663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6340
SELECT + COALESCE ( + CAST( NULL AS SIGNED ), + + NULLIF ( 71, + 30 * 46 + - + 61 ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6340
SELECT + COALESCE ( + CAST ( NULL AS INTEGER ), + + NULLIF ( 71, + 30 * 46 + - + 61 ) ) AS col0
----
71

query I rowsort
SELECT + + 41 * + - ( + 49 ) + 36 * 68
----
439

query I rowsort
SELECT ALL 14 * 40
----
560

query I rowsort
SELECT + CASE - - 74 WHEN - 77 THEN + + 44 ELSE NULL END + 49
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6344
SELECT ALL + COUNT( * ) AS col2, + 65 AS col0, + - 78 DIV 90 * ( 12 ) + + 63 AS col2
----
1
65
63

skipif mysql # not compatible
query III rowsort label-6344
SELECT ALL + COUNT ( * ) AS col2, + 65 AS col0, + - 78 / 90 * ( 12 ) + + 63 AS col2
----
1
65
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6345
SELECT DISTINCT + ( - + 1 ) DIV + 34 DIV COUNT( * ) + + 49 col0
----
49

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT + ( - + 1 ) / + 34 / COUNT ( * ) + + 49 col0
----
49

query I rowsort
SELECT + NULLIF ( - 84, - + 91 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6347
SELECT + CAST( NULL AS SIGNED ) AS col2, 75
----
NULL
75

skipif mysql # not compatible
query II rowsort label-6347
SELECT + CAST ( NULL AS INTEGER ) AS col2, 75
----
NULL
75

query I rowsort
SELECT ALL 42 * - 58 + + - 89
----
-2525

query I rowsort
SELECT ( + - 58 )
----
-58

query I rowsort
SELECT + 13 * + + 90
----
1170

onlyif mysql # DIV for integer division: 
query II rowsort label-6351
SELECT - NULLIF ( + - 13, - ( - 54 ) * + 96 - + 72 ) + + + 94 AS col2, - 51 + - 32 - - 55 DIV - 21 + 45
----
107
-40

skipif mysql # not compatible
query II rowsort label-6351
SELECT - NULLIF ( + - 13, - ( - 54 ) * + 96 - + 72 ) + + + 94 AS col2, - 51 + - 32 - - 55 / - 21 + 45
----
107
-40

query I rowsort
SELECT ALL 25 * 6
----
150

query III rowsort
SELECT ( + + 13 ) AS col2, + 64 + - - 83, 77 * 36 + - 77 col2
----
13
147
2695

query I rowsort
SELECT + ( + 64 ) col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL + ( - + 70 ) * + COUNT( * ) + + COUNT( * ) * - NULLIF ( - 94, - + 62 * - 35 + + + ( - ( - + 15 ) ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL + ( - + 70 ) * + COUNT ( * ) + + COUNT ( * ) * - NULLIF ( - 94, - + 62 * - 35 + + + ( - ( - + 15 ) ) ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL ( - + 63 ) * 37 + + COUNT( * )
----
-2330

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL ( - + 63 ) * 37 + + COUNT ( * )
----
-2330

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT + CASE + - 90 WHEN 5 THEN - 42 WHEN + COALESCE ( - - 24, - + 25, + MAX( DISTINCT 41 ) ) THEN NULL END * + + 19 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6357
SELECT + CASE + - 90 WHEN 5 THEN - 42 WHEN + COALESCE ( - - 24, - + 25, + MAX ( DISTINCT 41 ) ) THEN NULL END * + + 19 col2
----
NULL

query I rowsort
SELECT NULLIF ( + 9, - 68 * + 87 + - 86 + 45 ) AS col0
----
9

query I rowsort
SELECT DISTINCT 24 * + 85 AS col2
----
2040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6360
SELECT + NULLIF ( - 74, + ( + 19 ) ) * - 63 + 77 + + CAST( NULL AS SIGNED ) + + 54 + 30 + - - 13 - + 32 + 97 * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT + NULLIF ( - 74, + ( + 19 ) ) * - 63 + 77 + + CAST ( NULL AS INTEGER ) + + 54 + 30 + - - 13 - + 32 + 97 * + 29
----
NULL

query I rowsort
SELECT - 53 * + ( 85 )
----
-4505

query I rowsort
SELECT + 23 - - + 0 * + 22
----
23

query I rowsort
SELECT CASE + + ( - - 53 ) WHEN - ( + ( + 82 ) ) * 81 * - 1 THEN NULL WHEN + 52 * ( - 60 ) + 68 THEN 41 END AS col2
----
NULL

query II rowsort
SELECT - 28 AS col2, 88
----
-28
88

query II rowsort
SELECT ALL 39 AS col1, + 14 * + 83 AS col0
----
39
1162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6366
SELECT - CAST( 75 AS SIGNED ) * + 36 * + COUNT( * ) * + 60 col2
----
-162000

skipif mysql # not compatible
query I rowsort label-6366
SELECT - CAST ( 75 AS INTEGER ) * + 36 * + COUNT ( * ) * + 60 col2
----
-162000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6367
SELECT NULLIF ( + ( + COUNT( * ) ), - + CAST( NULL AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6367
SELECT NULLIF ( + ( + COUNT ( * ) ), - + CAST ( NULL AS INTEGER ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT - MAX( ALL 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-6368
SELECT - MAX ( ALL 60 )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6369
SELECT - + CAST( + 77 AS SIGNED ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-6369
SELECT - + CAST ( + 77 AS INTEGER ) AS col2
----
-77

query I rowsort
SELECT - - ( + 24 ) + + - 60
----
-36

query I rowsort
SELECT - - 31 * 72 * 52 AS col1
----
116064

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT - - 20 * - MIN( - 38 ) AS col1
----
760

skipif mysql # not compatible
query I rowsort label-6372
SELECT - - 20 * - MIN ( - 38 ) AS col1
----
760

query I rowsort
SELECT ALL + ( 40 ) AS col2
----
40

query I rowsort
SELECT DISTINCT - NULLIF ( + - 2, + 71 ) AS col0
----
2

query I rowsort
SELECT DISTINCT + 82 * 70 AS col0
----
5740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6376
SELECT - COUNT( * ) DIV - 6
----
0

skipif mysql # not compatible
query I rowsort label-6376
SELECT - COUNT ( * ) / - 6
----
0

query II rowsort
SELECT - + 23, + 1 AS col0
----
-23
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT - CASE - 53 WHEN - 78 THEN NULL WHEN 39 / + 72 - + - COUNT( * ) - 35 THEN + 54 WHEN + - COUNT( * ) THEN NULL END * - 78 + + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT - CASE - 53 WHEN - 78 THEN NULL WHEN 39 / + 72 - + - COUNT ( * ) - 35 THEN + 54 WHEN + - COUNT ( * ) THEN NULL END * - 78 + + 78 AS col1
----
NULL

query I rowsort
SELECT 73 * - 71
----
-5183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6380
SELECT 8 DIV - SUM( ALL + 88 ) + - - 38
----
38

skipif mysql # not compatible
query I rowsort label-6380
SELECT 8 / - SUM ( ALL + 88 ) + - - 38
----
38

query I rowsort
SELECT ALL 84 * + 66 * + + 65 * - 90
----
-32432400

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6382
SELECT ( - - 79 ) * + COUNT( * ) + CASE + 19 WHEN + 92 THEN - 15 * + COALESCE ( + + COUNT( * ), + MIN( ( - ( + 90 ) ) ) - - 8 DIV + 53 ) - MAX( ALL 14 ) - 43 WHEN 34 + - 97 THEN NULL WHEN + 39 * - COALESCE ( + 27 * - NULLIF ( + ( ( - 83 ) ) * 71, 81 * - 34 + COALESCE ( 39 + 45, + 89 * - NULLIF ( + 37, 57 + 54 ), + 0 ) * 16 ), + 61 + + 47 ) + 31 * + CASE CAST( NULL AS DECIMAL ) * 45 - + 18 WHEN + 41 + + 6 DIV 65 THEN - 69 WHEN + ( MIN( DISTINCT - 50 ) ) THEN - 87 * 66 - 32 * - 93 END THEN NULL WHEN - 17 THEN - 40 ELSE 24 END - SUM( - 41 ) col1
----
144

skipif mysql # not compatible
query I rowsort label-6382
SELECT ( - - 79 ) * + COUNT ( * ) + CASE + 19 WHEN + 92 THEN - 15 * + COALESCE ( + + COUNT ( * ), + MIN ( ( - ( + 90 ) ) ) - - 8 / + 53 ) - MAX ( ALL 14 ) - 43 WHEN 34 + - 97 THEN NULL WHEN + 39 * - COALESCE ( + 27 * - NULLIF ( + ( ( - 83 ) ) * 71, 81 * - 34 + COALESCE ( 39 + 45, + 89 * - NULLIF ( + 37, 57 + 54 ), + 0 ) * 16 ), + 61 + + 47 ) + 31 * + CASE CAST ( NULL AS REAL ) * 45 - + 18 WHEN + 41 + + 6 / 65 THEN - 69 WHEN + ( MIN ( DISTINCT - 50 ) ) THEN - 87 * 66 - 32 * - 93 END THEN NULL WHEN - 17 THEN - 40 ELSE 24 END - SUM ( - 41 ) col1
----
144

query I rowsort
SELECT ALL 78 + 37 + - 39 - + 59 + 76 AS col1
----
93

query II rowsort
SELECT ALL 48 * 43 AS col1, 9 AS col2
----
2064
9

query II rowsort
SELECT 98 + - 11, 79 AS col2
----
87
79

query I rowsort
SELECT ALL 42 - 41
----
1

query I rowsort
SELECT 69 + + - 27 AS col1
----
42

query I rowsort
SELECT - 55 * + + 95 * - 54 + + 6
----
282156

query I rowsort
SELECT + 80 * - 79 + - 8 * + COALESCE ( - + 82, 24 + 35 - - 83, 44 ) + - - 37 + + 51 + - 13 * - 41
----
-5043

onlyif mysql # aggregate syntax: 
query II rowsort label-6390
SELECT ( - ( + 70 ) ) * + + COUNT( * ) * + 44 AS col0, 14
----
-3080
14

skipif mysql # not compatible
query II rowsort label-6390
SELECT ( - ( + 70 ) ) * + + COUNT ( * ) * + 44 AS col0, 14
----
-3080
14

query I rowsort
SELECT 46 * + 72 - - + 77 + 39 AS col2
----
3428

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT DISTINCT CASE ( + 85 ) WHEN + 38 * + 26 + 97 THEN + - 78 + - COUNT( * ) + + MIN( 52 ) ELSE NULL END * + 30 / ( + 65 ) * + 43 + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT CASE ( + 85 ) WHEN + 38 * + 26 + 97 THEN + - 78 + - COUNT ( * ) + + MIN ( 52 ) ELSE NULL END * + 30 / ( + 65 ) * + 43 + - 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6393
SELECT 66 * + + NULLIF ( + - NULLIF ( + COALESCE ( - MIN( + + 87 ), + 82 * + + 40 - + 86 + ( - ( + 11 ) ) ), + NULLIF ( + 71, 12 ) ), + 39 / 83 + - 39 ) + NULLIF ( + SUM( 26 ) + + CAST( NULL AS SIGNED ), CAST( NULL AS DECIMAL ) - + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6393
SELECT 66 * + + NULLIF ( + - NULLIF ( + COALESCE ( - MIN ( + + 87 ), + 82 * + + 40 - + 86 + ( - ( + 11 ) ) ), + NULLIF ( + 71, 12 ) ), + 39 / 83 + - 39 ) + NULLIF ( + SUM ( 26 ) + + CAST ( NULL AS INTEGER ), CAST ( NULL AS REAL ) - + 60 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6394
SELECT ALL - - NULLIF ( CAST( + 10 AS SIGNED ), + 32 * 44 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - - NULLIF ( CAST ( + 10 AS INTEGER ), + 32 * 44 ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6395
SELECT COUNT( * ) + + 48 + - + COUNT( * ) DIV 97 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6395
SELECT COUNT ( * ) + + 48 + - + COUNT ( * ) / 97 AS col2
----
49

query I rowsort
SELECT + ( + 0 ) * 30 - + 15
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6397
SELECT ALL + 4 * + CAST( - - 30 AS SIGNED )
----
120

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL + 4 * + CAST ( - - 30 AS INTEGER )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL + COUNT( * ) * - + 55
----
-55

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL + COUNT ( * ) * - + 55
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT 91 * - 93 + + MAX( DISTINCT + + 35 )
----
-8428

skipif mysql # not compatible
query I rowsort label-6399
SELECT 91 * - 93 + + MAX ( DISTINCT + + 35 )
----
-8428

onlyif mysql # aggregate syntax: 
query II rowsort label-6400
SELECT 35 * + COUNT( * ) AS col0, 30 * - MAX( - 68 ) AS col2
----
35
2040

skipif mysql # not compatible
query II rowsort label-6400
SELECT 35 * + COUNT ( * ) AS col0, 30 * - MAX ( - 68 ) AS col2
----
35
2040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6401
SELECT 22 + 90 AS col0, CAST( NULL AS SIGNED ) AS col1
----
112
NULL

skipif mysql # not compatible
query II rowsort label-6401
SELECT 22 + 90 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
112
NULL

query I rowsort
SELECT - ( + - 81 ) col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT ( - 38 ) DIV + - 64 col0
----
0

skipif mysql # not compatible
query I rowsort label-6403
SELECT ( - 38 ) / + - 64 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - ( + MAX( NULLIF ( - + 30, 79 ) ) ) + + - 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6404
SELECT - ( + MAX ( NULLIF ( - + 30, 79 ) ) ) + + - 15 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT 12 * - COUNT( DISTINCT 35 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6405
SELECT 12 * - COUNT ( DISTINCT 35 ) AS col1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT + 50 + - + 15 DIV - - 78 * - 6
----
50

skipif mysql # not compatible
query I rowsort label-6406
SELECT + 50 + - + 15 / - - 78 * - 6
----
50

query I rowsort
SELECT ALL + - 49 + - 94 AS col2
----
-143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6408
SELECT DISTINCT ( + - CASE + 73 WHEN + 98 + - 21 - + - 14 * + CASE + - ( + - 70 ) WHEN - 57 * - 63 + + + CASE 69 WHEN + 30 + COUNT( * ) * - 44 THEN NULL WHEN CAST( - 79 AS SIGNED ) * 12 - COUNT( * ) THEN 25 ELSE NULL END THEN SUM( - 78 ) ELSE NULL END * COUNT( * ) THEN + CASE - 57 WHEN - COUNT( * ) * - 21 THEN NULL WHEN 24 * + ( + 73 ) + NULLIF ( - 76, + 6 - 83 ) THEN 87 WHEN 76 THEN + CAST( NULL AS SIGNED ) / + ( - COALESCE ( - COUNT( * ), 2 + + COUNT( * ) ) ) ELSE - 21 + - COALESCE ( - 27, 25, + 77 ) END WHEN 89 * + 61 THEN + 29 + - 51 / - 8 END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT ( + - CASE + 73 WHEN + 98 + - 21 - + - 14 * + CASE + - ( + - 70 ) WHEN - 57 * - 63 + + + CASE 69 WHEN + 30 + COUNT ( * ) * - 44 THEN NULL WHEN CAST ( - 79 AS INTEGER ) * 12 - COUNT ( * ) THEN 25 ELSE NULL END THEN SUM ( - 78 ) ELSE NULL END * COUNT ( * ) THEN + CASE - 57 WHEN - COUNT ( * ) * - 21 THEN NULL WHEN 24 * + ( + 73 ) + NULLIF ( - 76, + 6 - 83 ) THEN 87 WHEN 76 THEN + CAST ( NULL AS INTEGER ) / + ( - COALESCE ( - COUNT ( * ), 2 + + COUNT ( * ) ) ) ELSE - 21 + - COALESCE ( - 27, 25, + 77 ) END WHEN 89 * + 61 THEN + 29 + - 51 / - 8 END ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT DISTINCT - + COALESCE ( 54, - COUNT( * ) ) + 83 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT - + COALESCE ( 54, - COUNT ( * ) ) + 83 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT 83 + + + MIN( DISTINCT - 39 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6410
SELECT 83 + + + MIN ( DISTINCT - 39 ) AS col2
----
44

query II rowsort
SELECT ALL - 28 + + + 71 AS col0, - 74
----
43
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6412
SELECT - MAX( DISTINCT - + 47 ), - SUM( DISTINCT + - 74 ) * - - MAX( ALL - + 24 ) AS col2
----
47
-1776

skipif mysql # not compatible
query II rowsort label-6412
SELECT - MAX ( DISTINCT - + 47 ), - SUM ( DISTINCT + - 74 ) * - - MAX ( ALL - + 24 ) AS col2
----
47
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT 44 * - MIN( DISTINCT + - 41 ) AS col2
----
1804

skipif mysql # not compatible
query I rowsort label-6413
SELECT 44 * - MIN ( DISTINCT + - 41 ) AS col2
----
1804

query I rowsort
SELECT 69 * ( + - 6 )
----
-414

onlyif mysql # aggregate syntax: 
query III rowsort label-6415
SELECT DISTINCT + 4 * - COALESCE ( - 52, + + 10 + - + ( - + 54 ), 86 ) * 96 AS col0, + MAX( + - 46 ) - - + 74 AS col0, + 38 * - + 64 + + 66 AS col2
----
19968
28
-2366

skipif mysql # not compatible
query III rowsort label-6415
SELECT DISTINCT + 4 * - COALESCE ( - 52, + + 10 + - + ( - + 54 ), 86 ) * 96 AS col0, + MAX ( + - 46 ) - - + 74 AS col0, + 38 * - + 64 + + 66 AS col2
----
19968
28
-2366

query I rowsort
SELECT ALL 52 * - - 1 + 18 + - 60 * + 66 * + 35 * - 26
----
3603670

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6417
SELECT 88 DIV - COALESCE ( COUNT( * ), - 81 * + MIN( ALL + - 61 ), - 66 + - - COUNT( * ) ) AS col1, - SUM( 65 ) + - ( 9 )
----
-88
-74

skipif mysql # not compatible
query II rowsort label-6417
SELECT 88 / - COALESCE ( COUNT ( * ), - 81 * + MIN ( ALL + - 61 ), - 66 + - - COUNT ( * ) ) AS col1, - SUM ( 65 ) + - ( 9 )
----
-88
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6418
SELECT COUNT( * ) AS col2, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-6418
SELECT COUNT ( * ) AS col2, 50
----
1
50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6419
SELECT ALL 89 * - 29 - - - 5 + + 38 * - CAST( - 41 AS DECIMAL ) * - CAST( NULL AS SIGNED ) * - + 31 + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL 89 * - 29 - - - 5 + + 38 * - CAST ( - 41 AS REAL ) * - CAST ( NULL AS INTEGER ) * - + 31 + 49
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6420
SELECT DISTINCT - 59 DIV - 63 * 23 * + - 14 * + ( 32 ) AS col0, 57 * - MAX( ALL - NULLIF ( + - 86, + - 82 + - + ( - - 14 ) ) ) AS col0
----
0
-4902

skipif mysql # not compatible
query II rowsort label-6420
SELECT DISTINCT - 59 / - 63 * 23 * + - 14 * + ( 32 ) AS col0, 57 * - MAX ( ALL - NULLIF ( + - 86, + - 82 + - + ( - - 14 ) ) ) AS col0
----
0
-4902

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6421
SELECT AVG ( + + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT AVG ( + + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT 78 DIV 26
----
3

skipif mysql # not compatible
query I rowsort label-6422
SELECT 78 / 26
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT DISTINCT COALESCE ( - - 44, ( - - ( - 41 ) ) - - MIN( - - 33 ), 18 * - + 93 - 3 ) * - + 30 + 40
----
-1280

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT COALESCE ( - - 44, ( - - ( - 41 ) ) - - MIN ( - - 33 ), 18 * - + 93 - 3 ) * - + 30 + 40
----
-1280

query II rowsort
SELECT + 23, 8 AS col2
----
23
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT SUM( - - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6425
SELECT SUM ( - - 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT ALL - CASE COUNT( * ) WHEN - NULLIF ( + 65, - 65 * - ( + + 69 ) + + 60 ) * - - 54 * + - MAX( DISTINCT 98 ) * 14 + + + 75 * ( 55 ) THEN 91 * - 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL - CASE COUNT ( * ) WHEN - NULLIF ( + 65, - 65 * - ( + + 69 ) + + 60 ) * - - 54 * + - MAX ( DISTINCT 98 ) * 14 + + + 75 * ( 55 ) THEN 91 * - 69 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6427
SELECT - 93 * + + 97 * - CASE + ( 47 ) WHEN - 56 + - 22 - + CAST( NULL AS DECIMAL ) THEN COUNT( * ) ELSE NULL END + + 23 + + 5 / + 20 + + + 21 / 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6427
SELECT - 93 * + + 97 * - CASE + ( 47 ) WHEN - 56 + - 22 - + CAST ( NULL AS REAL ) THEN COUNT ( * ) ELSE NULL END + + 23 + + 5 / + 20 + + + 21 / 82 AS col2
----
NULL

query I rowsort
SELECT + ( - 5 ) AS col2
----
-5

query I rowsort
SELECT - 51 + - + 96 * + 70 AS col2
----
-6771

query I rowsort
SELECT DISTINCT 95 + + 55 AS col0
----
150

query I rowsort
SELECT ALL - 93 + 65
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6432
SELECT DISTINCT - COUNT( ALL - 40 ) DIV + 4 + - 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - COUNT ( ALL - 40 ) / + 4 + - 24 AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT - - CAST( + 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-6433
SELECT - - CAST ( + 16 AS INTEGER )
----
16

query I rowsort
SELECT ALL - 43 + NULLIF ( ( + 87 ), - 77 ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6435
SELECT + - 37 * 16 * - - 84 AS col1, - CAST( - 32 AS SIGNED ) AS col2
----
-49728
32

skipif mysql # not compatible
query II rowsort label-6435
SELECT + - 37 * 16 * - - 84 AS col1, - CAST ( - 32 AS INTEGER ) AS col2
----
-49728
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6436
SELECT ALL 80 + - 11 + - - 9 + COUNT( * ) col2, 26 AS col2
----
79
26

skipif mysql # not compatible
query II rowsort label-6436
SELECT ALL 80 + - 11 + - - 9 + COUNT ( * ) col2, 26 AS col2
----
79
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6437
SELECT + COALESCE ( + 74, - - COUNT( DISTINCT 93 ) + + 63, + 31 DIV + + 69 ) * - 15 * - 95 AS col1, + 99 + MAX( - ( + 87 ) ) * 31 AS col1
----
105450
-2598

skipif mysql # not compatible
query II rowsort label-6437
SELECT + COALESCE ( + 74, - - COUNT ( DISTINCT 93 ) + + 63, + 31 / + + 69 ) * - 15 * - 95 AS col1, + 99 + MAX ( - ( + 87 ) ) * 31 AS col1
----
105450
-2598

query I rowsort
SELECT + 63 - 20 AS col2
----
43

query I rowsort
SELECT - 46 * - 1 * 96 + - 97
----
4319

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT 67 + - COUNT( * ) + - 21 / + - 54 - + 81 * - 70 - + CASE MAX( - 53 ) WHEN - 57 THEN ( - 28 ) WHEN + + 65 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT 67 + - COUNT ( * ) + - 21 / + - 54 - + 81 * - 70 - + CASE MAX ( - 53 ) WHEN - 57 THEN ( - 28 ) WHEN + + 65 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 79 * - - 86 AS col1
----
-6794

onlyif mysql # aggregate syntax: 
query II rowsort label-6442
SELECT ALL - 45 + ( + + 91 ) * + COALESCE ( SUM( ALL + + 8 ), + 9 ), + 0 AS col1
----
683
0

skipif mysql # not compatible
query II rowsort label-6442
SELECT ALL - 45 + ( + + 91 ) * + COALESCE ( SUM ( ALL + + 8 ), + 9 ), + 0 AS col1
----
683
0

query I rowsort
SELECT + 8 - - - 51
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-6444
SELECT DISTINCT + CASE COUNT( * ) WHEN - - 88 + 93 THEN 99 * 79 + + 95 ELSE - 84 END * 97 * 87 AS col0, + 95
----
-708876
95

skipif mysql # not compatible
query II rowsort label-6444
SELECT DISTINCT + CASE COUNT ( * ) WHEN - - 88 + 93 THEN 99 * 79 + + 95 ELSE - 84 END * 97 * 87 AS col0, + 95
----
-708876
95

query I rowsort
SELECT ALL 66 - 37 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ( + MAX( DISTINCT 57 ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6446
SELECT ( + MAX ( DISTINCT 57 ) ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6447
SELECT COUNT( * ) * COALESCE ( - COUNT( * ), 11 DIV - 23 + - 70 * + ( 47 ) DIV - + 85 - - 27 ) DIV + + 79 + + 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6447
SELECT COUNT ( * ) * COALESCE ( - COUNT ( * ), 11 / - 23 + - 70 * + ( 47 ) / - + 85 - - 27 ) / + + 79 + + 57 AS col1
----
57

query I rowsort
SELECT - 54 * 82 * + 14 AS col0
----
-61992

query II rowsort
SELECT DISTINCT - 73 * + - 34, - 83 AS col1
----
2482
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6450
SELECT + 35 DIV - SUM( DISTINCT + 97 ) + + 31 + + + 63, + CAST( NULL AS SIGNED ) * - - 13 col2, 23 + + 50 AS col1
----
94
NULL
73

skipif mysql # not compatible
query III rowsort label-6450
SELECT + 35 / - SUM ( DISTINCT + 97 ) + + 31 + + + 63, + CAST ( NULL AS INTEGER ) * - - 13 col2, 23 + + 50 AS col1
----
94
NULL
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT ALL - CASE - + COALESCE ( 77, - 90 + - 6, 32 ) WHEN CAST( NULL AS SIGNED ) THEN + 48 * - 63 ELSE NULL END * + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL - CASE - + COALESCE ( 77, - 90 + - 6, 32 ) WHEN CAST ( NULL AS INTEGER ) THEN + 48 * - 63 ELSE NULL END * + - 44
----
NULL

query I rowsort
SELECT ( - - 92 )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6453
SELECT ALL - ( 0 ) DIV 23 col2
----
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL - ( 0 ) / 23 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6454
SELECT - 96 / ( - 24 ) / CAST( NULL AS SIGNED ) + 79 / - 28 / - 4 AS col0, 4 AS col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-6454
SELECT - 96 / ( - 24 ) / CAST ( NULL AS INTEGER ) + 79 / - 28 / - 4 AS col0, 4 AS col1
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT - 49 * + MAX( DISTINCT - - 23 ) AS col1
----
-1127

skipif mysql # not compatible
query I rowsort label-6455
SELECT - 49 * + MAX ( DISTINCT - - 23 ) AS col1
----
-1127

query I rowsort
SELECT ALL + 52 * + 34 AS col0
----
1768

query I rowsort
SELECT DISTINCT - 62 * - 15 + + 65 + + 84
----
1079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6458
SELECT ALL - 3 * CAST( - 94 AS SIGNED ) + COUNT( * ) DIV + + 62 AS col2
----
282

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL - 3 * CAST ( - 94 AS INTEGER ) + COUNT ( * ) / + + 62 AS col2
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - - COUNT( * ) + + MIN( DISTINCT + 88 ) + + 73 * + - ( + ( + ( 10 ) ) ) * + 2 * + ( + 87 )
----
-126931

skipif mysql # not compatible
query I rowsort label-6459
SELECT - - COUNT ( * ) + + MIN ( DISTINCT + 88 ) + + 73 * + - ( + ( + ( 10 ) ) ) * + 2 * + ( + 87 )
----
-126931

query I rowsort
SELECT + + 31 + 69
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-6461
SELECT + + 26 DIV + 1 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6461
SELECT + + 26 / + 1 AS col1
----
26

query I rowsort
SELECT DISTINCT + 20 - + - 23
----
43

query I rowsort
SELECT + ( 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT + COALESCE ( + COUNT( * ), ( + 90 ) - + - 43, + 26 - - 68 + + 5 * 76, + 18 ) + MIN( + - 88 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-6464
SELECT + COALESCE ( + COUNT ( * ), ( + 90 ) - + - 43, + 26 - - 68 + + 5 * 76, + 18 ) + MIN ( + - 88 ) AS col1
----
-87

query I rowsort
SELECT + 67 * - 24
----
-1608

query I rowsort
SELECT + 84 + - - 90
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT ALL MIN( DISTINCT - 72 ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL MIN ( DISTINCT - 72 ) col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT + CAST( - + 1 AS SIGNED ) + - 84 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6468
SELECT + CAST ( - + 1 AS INTEGER ) + - 84 AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6469
SELECT - CASE - + 59 WHEN + - CAST( + SUM( DISTINCT + 92 ) AS SIGNED ) THEN - - 65 WHEN + 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT - CASE - + 59 WHEN + - CAST ( + SUM ( DISTINCT + 92 ) AS INTEGER ) THEN - - 65 WHEN + 89 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT + 31 * - COUNT( * ) * - 44 * 74 AS col2
----
100936

skipif mysql # not compatible
query I rowsort label-6470
SELECT + 31 * - COUNT ( * ) * - 44 * 74 AS col2
----
100936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6471
SELECT + 54 / + - 21 * CASE + + 98 WHEN - 54 + - 95 + - + CAST( NULL AS SIGNED ) * + + 12 * + - 97 THEN NULL WHEN MAX( ALL + COALESCE ( + 61, - 41 * + 92 + COALESCE ( 86, 41 ) ) ) * - 12 + 63 THEN 21 + 92 ELSE CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT + 54 / + - 21 * CASE + + 98 WHEN - 54 + - 95 + - + CAST ( NULL AS INTEGER ) * + + 12 * + - 97 THEN NULL WHEN MAX ( ALL + COALESCE ( + 61, - 41 * + 92 + COALESCE ( 86, 41 ) ) ) * - 12 + 63 THEN 21 + 92 ELSE CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT ALL MIN( + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL MIN ( + 6 ) AS col2
----
6

query I rowsort
SELECT - 30 + + - CASE + 18 WHEN - + 85 THEN + 16 END
----
NULL

query I rowsort
SELECT + COALESCE ( 6, + ( + 1 ) + - 18 ) * - 50 AS col1
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT - 7 + - COUNT( * ) * - 60 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6475
SELECT - 7 + - COUNT ( * ) * - 60 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6476
SELECT ALL COUNT( * ) DIV - 42 * - 15 * + + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL COUNT ( * ) / - 42 * - 15 * + + 30 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6477
SELECT + COALESCE ( CAST( + 86 AS SIGNED ), 77 DIV 14 + + + COALESCE ( + + 49, + 15, + 81 ) * + 76 * COUNT( * ) + - ( + 11 ) + - + 49 + - COUNT( * ) * - SUM( ALL 72 * - 43 ) ) DIV - MIN( 52 * - 69 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6477
SELECT + COALESCE ( CAST ( + 86 AS INTEGER ), 77 / 14 + + + COALESCE ( + + 49, + 15, + 81 ) * + 76 * COUNT ( * ) + - ( + 11 ) + - + 49 + - COUNT ( * ) * - SUM ( ALL 72 * - 43 ) ) / - MIN ( 52 * - 69 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT DISTINCT + MIN( DISTINCT + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT + MIN ( DISTINCT + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL - COUNT( * ) * + 29 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL - COUNT ( * ) * + 29 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT DISTINCT + CASE - 93 WHEN 39 THEN NULL WHEN + 61 * + COUNT( * ) / 47 * - 24 THEN + - 76 WHEN + + COUNT( * ) THEN - - 43 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT + CASE - 93 WHEN 39 THEN NULL WHEN + 61 * + COUNT ( * ) / 47 * - 24 THEN + - 76 WHEN + + COUNT ( * ) THEN - - 43 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6481
SELECT CAST( + 52 AS SIGNED ) col0
----
52

skipif mysql # not compatible
query I rowsort label-6481
SELECT CAST ( + 52 AS INTEGER ) col0
----
52

query I rowsort
SELECT + 35 - + 53
----
-18

query I rowsort
SELECT - 81 * + ( - 26 )
----
2106

query I rowsort
SELECT ALL - 59 + 37 + - 32 + + 89
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6485
SELECT 73, COUNT( * ) AS col1
----
73
1

skipif mysql # not compatible
query II rowsort label-6485
SELECT 73, COUNT ( * ) AS col1
----
73
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT ALL - + CAST( + 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - + CAST ( + 15 AS INTEGER )
----
-15

query I rowsort
SELECT ALL 12 + + + 18 col1
----
30

query I rowsort
SELECT DISTINCT - 65 + 88 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT 59 * - + COALESCE ( - - 14, - ( + 4 ) ) - - CASE - + 18 WHEN 77 / + + 82 * 72 * - 71 + + 33 - + 10 THEN - 5 + - 47 WHEN COUNT( * ) + - 2 THEN + COUNT( * ) * 51 + - 65 ELSE ( + 74 ) END AS col0
----
-752

skipif mysql # not compatible
query I rowsort label-6489
SELECT 59 * - + COALESCE ( - - 14, - ( + 4 ) ) - - CASE - + 18 WHEN 77 / + + 82 * 72 * - 71 + + 33 - + 10 THEN - 5 + - 47 WHEN COUNT ( * ) + - 2 THEN + COUNT ( * ) * 51 + - 65 ELSE ( + 74 ) END AS col0
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT ALL - CASE + 15 WHEN - + 4 + - 91 * 78 THEN + NULLIF ( + 97, + - 38 + - 4 * + + 33 + COUNT( * ) * + 40 ) + COUNT( * ) WHEN ( - - 66 ) THEN + 85 + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL - CASE + 15 WHEN - + 4 + - 91 * 78 THEN + NULLIF ( + 97, + - 38 + - 4 * + + 33 + COUNT ( * ) * + 40 ) + COUNT ( * ) WHEN ( - - 66 ) THEN + 85 + - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT + CAST( ( + + AVG ( + - 43 ) ) AS SIGNED ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6491
SELECT + CAST ( ( + + AVG ( + - 43 ) ) AS INTEGER ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT DISTINCT + COALESCE ( - 30, + 10 ) - - ( + COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + COALESCE ( - 30, + 10 ) - - ( + COUNT ( * ) )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6493
SELECT ALL - + 88 * 28 DIV COALESCE ( - 82, - + 93 - - 84 + 56 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL - + 88 * 28 / COALESCE ( - 82, - + 93 - - 84 + 56 ) AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6494
SELECT ALL - 58, 53 * - 57 + - CAST( NULL AS SIGNED ) * - CAST( - 29 AS SIGNED ) * - 30 / COUNT( + 86 ) AS col0
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-6494
SELECT ALL - 58, 53 * - 57 + - CAST ( NULL AS INTEGER ) * - CAST ( - 29 AS INTEGER ) * - 30 / COUNT ( + 86 ) AS col0
----
-58
NULL

query I rowsort
SELECT DISTINCT - 58 * - 70 - ( + 68 ) + + 60
----
4052

query II rowsort
SELECT 50, + 88 AS col1
----
50
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6497
SELECT DISTINCT 35, - ( - + NULLIF ( CASE 19 WHEN 59 THEN 98 - COUNT( * ) ELSE 82 END, - CASE - COUNT( * ) WHEN - 59 + + ( - MIN( + 97 ) ) THEN 46 WHEN - 52 * 42 THEN NULL ELSE - AVG ( 35 ) * ( + 4 ) END ) ) * 81 AS col1
----
35
6642

skipif mysql # not compatible
query II rowsort label-6497
SELECT DISTINCT 35, - ( - + NULLIF ( CASE 19 WHEN 59 THEN 98 - COUNT ( * ) ELSE 82 END, - CASE - COUNT ( * ) WHEN - 59 + + ( - MIN ( + 97 ) ) THEN 46 WHEN - 52 * 42 THEN NULL ELSE - AVG ( 35 ) * ( + 4 ) END ) ) * 81 AS col1
----
35
6642

onlyif mysql # DIV for integer division: 
query I rowsort label-6498
SELECT 72 * 49 DIV 84 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6498
SELECT 72 * 49 / 84 AS col0
----
42

query I rowsort
SELECT 8 * 78
----
624

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6500
SELECT 44 AS col1, COALESCE ( + ( - ( + ( - 89 ) ) ), 63, + NULLIF ( 68, + COUNT( * ) ) DIV + 43 DIV - - 72 + - + 88 * - 66 + - + 8 ) - MIN( - 16 )
----
44
105

skipif mysql # not compatible
query II rowsort label-6500
SELECT 44 AS col1, COALESCE ( + ( - ( + ( - 89 ) ) ), 63, + NULLIF ( 68, + COUNT ( * ) ) / + 43 / - - 72 + - + 88 * - 66 + - + 8 ) - MIN ( - 16 )
----
44
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT ALL MAX( ALL 22 ) * + 54
----
1188

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL MAX ( ALL 22 ) * + 54
----
1188

query I rowsort
SELECT 98 * + 95 col1
----
9310

onlyif mysql # aggregate syntax: 
query II rowsort label-6503
SELECT DISTINCT COUNT( * ) * + 96, - 35 AS col2
----
96
-35

skipif mysql # not compatible
query II rowsort label-6503
SELECT DISTINCT COUNT ( * ) * + 96, - 35 AS col2
----
96
-35

query I rowsort
SELECT ALL 65 + - + 44
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT 13 - + MIN( - 63 )
----
76

skipif mysql # not compatible
query I rowsort label-6505
SELECT 13 - + MIN ( - 63 )
----
76

query II rowsort
SELECT ALL 9, 94 col2
----
9
94

query II rowsort
SELECT 44 col2, 2 col2
----
44
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6508
SELECT 20 * - 95 + + + CAST( NULL AS SIGNED ) * 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT 20 * - 95 + + + CAST ( NULL AS INTEGER ) * 3 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT ( + 28 ) DIV - 27
----
-1

skipif mysql # not compatible
query I rowsort label-6509
SELECT ( + 28 ) / - 27
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT ALL COALESCE ( ( + ( NULLIF ( 12, - 27 ) ) ), - - 73 ) + + - COUNT( * ) col0
----
11

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL COALESCE ( ( + ( NULLIF ( 12, - 27 ) ) ), - - 73 ) + + - COUNT ( * ) col0
----
11

query I rowsort
SELECT + 18 + 20
----
38

query I rowsort
SELECT ALL 57 + 78
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6513
SELECT DISTINCT + COUNT( * ) DIV + CAST( - 65 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT + COUNT ( * ) / + CAST ( - 65 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL NULLIF ( COALESCE ( - 74, + ( - - SUM( ALL + 30 ) ), - 10 ), + 14 ) + 1 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL NULLIF ( COALESCE ( - 74, + ( - - SUM ( ALL + 30 ) ), - 10 ), + 14 ) + 1 AS col1
----
-73

query I rowsort
SELECT 35 * 82 col2
----
2870

query II rowsort
SELECT ALL - 22 AS col1, + 74 * + + 67 AS col2
----
-22
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL - - COUNT( * ) + + - 26 + + 74
----
49

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL - - COUNT ( * ) + + - 26 + + 74
----
49

query I rowsort
SELECT + 67 + 48
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6519
SELECT DISTINCT + CASE - 91 WHEN - ( - COUNT( * ) ) * NULLIF ( 4, MAX( DISTINCT + - 64 ) * + - COUNT( * ) * + + 17 * 66 * - NULLIF ( - 78, + + NULLIF ( ( + + COUNT( * ) ), CASE + MAX( ALL NULLIF ( 13, 22 / - ( - 25 ) ) ) WHEN CAST( NULL AS SIGNED ) THEN - 8 + COUNT( * ) END - 20 ) ) * 17 + 58 ) THEN COALESCE ( + 38, + 3 ) * 84 WHEN 80 THEN NULL END - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT + CASE - 91 WHEN - ( - COUNT ( * ) ) * NULLIF ( 4, MAX ( DISTINCT + - 64 ) * + - COUNT ( * ) * + + 17 * 66 * - NULLIF ( - 78, + + NULLIF ( ( + + COUNT ( * ) ), CASE + MAX ( ALL NULLIF ( 13, 22 / - ( - 25 ) ) ) WHEN CAST ( NULL AS INTEGER ) THEN - 8 + COUNT ( * ) END - 20 ) ) * 17 + 58 ) THEN COALESCE ( + 38, + 3 ) * 84 WHEN 80 THEN NULL END - 73 AS col0
----
NULL

query I rowsort
SELECT ALL 26 * 35 AS col2
----
910

onlyif mysql # aggregate syntax: 
query II rowsort label-6521
SELECT ALL COUNT( * ), + 72 AS col1
----
1
72

skipif mysql # not compatible
query II rowsort label-6521
SELECT ALL COUNT ( * ), + 72 AS col1
----
1
72

query II rowsort
SELECT + 93 * + 84 AS col1, - 88 AS col0
----
7812
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT 72 DIV - ( - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-6523
SELECT 72 / - ( - 46 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT 79 + 94 - - - CAST( NULL AS SIGNED ) + 38 * + 8 * + + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT 79 + 94 - - - CAST ( NULL AS INTEGER ) + 38 * + 8 * + + 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT COUNT( * ) - 97
----
-96

skipif mysql # not compatible
query I rowsort label-6525
SELECT COUNT ( * ) - 97
----
-96

query I rowsort
SELECT 88 + - 94
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6527
SELECT ALL + 23 + CAST( NULL AS DECIMAL ) * - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL + 23 + CAST ( NULL AS REAL ) * - 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6528
SELECT ALL MAX( DISTINCT + - ( - 25 ) ) + - - 4 DIV 15
----
25

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL MAX ( DISTINCT + - ( - 25 ) ) + - - 4 / 15
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT 14 + - MAX( ALL 47 ) * 85
----
-3981

skipif mysql # not compatible
query I rowsort label-6529
SELECT 14 + - MAX ( ALL 47 ) * 85
----
-3981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6530
SELECT ALL + 24 + + + 89 + NULLIF ( - + 54, + 35 * + 12 DIV 86 + COUNT( * ) ) + + CAST( + COUNT( * ) AS SIGNED ) DIV - 57 * MAX( COALESCE ( + 90, 38 + + 3 ) ) DIV - 66
----
59

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL + 24 + + + 89 + NULLIF ( - + 54, + 35 * + 12 / 86 + COUNT ( * ) ) + + CAST ( + COUNT ( * ) AS INTEGER ) / - 57 * MAX ( COALESCE ( + 90, 38 + + 3 ) ) / - 66
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT - MAX( + - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-6531
SELECT - MAX ( + - 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT + COALESCE ( 95, + - NULLIF ( - 4, 27 * - + MIN( - 18 ) * - 72 + 68 / + COUNT( - 18 ) + + MAX( - 21 ) ) ) + 9 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT + COALESCE ( 95, + - NULLIF ( - 4, 27 * - + MIN ( - 18 ) * - 72 + 68 / + COUNT ( - 18 ) + + MAX ( - 21 ) ) ) + 9 AS col2
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6533
SELECT ALL NULLIF ( + 57, - MIN( ALL - 98 ) DIV + 2 ) * - 98 + + NULLIF ( 9, - + 38 + - 67 ) DIV + 67
----
-5586

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL NULLIF ( + 57, - MIN ( ALL - 98 ) / + 2 ) * - 98 + + NULLIF ( 9, - + 38 + - 67 ) / + 67
----
-5586

onlyif mysql # DIV for integer division: 
query I rowsort label-6534
SELECT ALL + 65 DIV - + 92 * - - 40
----
0

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + 65 / - + 92 * - - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT + AVG ( ALL + 20 ) * 61 * + 7 * - ( 38 ) + + - 51 - - ( CASE 80 WHEN - 97 - - 30 + 61 + - 86 + 81 / + + 55 THEN + - 49 * + 79 WHEN - ( + 14 ) THEN NULL END ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6535
SELECT + AVG ( ALL + 20 ) * 61 * + 7 * - ( 38 ) + + - 51 - - ( CASE 80 WHEN - 97 - - 30 + 61 + - 86 + 81 / + + 55 THEN + - 49 * + 79 WHEN - ( + 14 ) THEN NULL END ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL - + 16 * - MAX( ALL + 90 ) AS col2
----
1440

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - + 16 * - MAX ( ALL + 90 ) AS col2
----
1440

query I rowsort
SELECT + + 44 * + 53 + 37
----
2369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6538
SELECT DISTINCT - COUNT( * ) DIV + 67 + + 19 - + 50
----
-31

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT - COUNT ( * ) / + 67 + + 19 - + 50
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT + + MAX( DISTINCT + ( - - 86 ) ) - + - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6539
SELECT + + MAX ( DISTINCT + ( - - 86 ) ) - + - COUNT ( * ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6540
SELECT ALL + CAST( - 55 AS SIGNED ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL + CAST ( - 55 AS INTEGER ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT + COUNT( * ) * SUM( 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6541
SELECT + COUNT ( * ) * SUM ( 96 ) AS col1
----
96

query I rowsort
SELECT + 90 * 55 * - - 55 AS col0
----
272250

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL + - CASE - + 17 WHEN NULLIF ( + 43, COUNT( * ) ) + - 99 THEN NULL ELSE COUNT( * ) * + 62 + + - 1 + 5 END AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL + - CASE - + 17 WHEN NULLIF ( + 43, COUNT ( * ) ) + - 99 THEN NULL ELSE COUNT ( * ) * + 62 + + - 1 + 5 END AS col0
----
-66

query I rowsort
SELECT + 8 + 9 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT MAX( ALL + 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6545
SELECT MAX ( ALL + 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL CASE NULLIF ( + - 36, + 77 ) WHEN + ( - 89 ) THEN NULL WHEN - ( - - 94 ) + - + 22 THEN + - 49 ELSE 75 END * - COUNT( * ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL CASE NULLIF ( + - 36, + 77 ) WHEN + ( - 89 ) THEN NULL WHEN - ( - - 94 ) + - + 22 THEN + - 49 ELSE 75 END * - COUNT ( * ) col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT + CAST( NULL AS SIGNED ) * - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT + CAST ( NULL AS INTEGER ) * - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT DISTINCT SUM( 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT SUM ( 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT ALL MAX( DISTINCT NULLIF ( - + 64, 37 + + ( NULLIF ( + 20, 42 + - 50 + - 0 ) ) * - 31 * 41 * + + 55 ) ) * + 6 + - 30 * - 37
----
726

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL MAX ( DISTINCT NULLIF ( - + 64, 37 + + ( NULLIF ( + 20, 42 + - 50 + - 0 ) ) * - 31 * 41 * + + 55 ) ) * + 6 + - 30 * - 37
----
726

query I rowsort
SELECT - 30 + 24 + + NULLIF ( 0, 24 ) + - 62 + + + 33 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-6551
SELECT ALL COUNT( * ) AS col2, + COUNT( * ) + - - 21 AS col2
----
1
22

skipif mysql # not compatible
query II rowsort label-6551
SELECT ALL COUNT ( * ) AS col2, + COUNT ( * ) + - - 21 AS col2
----
1
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6552
SELECT DISTINCT 95 + + + ( + 41 ) + + ( 89 ) + - MIN( + 31 ) DIV 58
----
225

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT 95 + + + ( + 41 ) + + ( 89 ) + - MIN ( + 31 ) / 58
----
225

query I rowsort
SELECT ALL - 92 + + - 27
----
-119

onlyif mysql # aggregate syntax: 
query II rowsort label-6554
SELECT + 36 - ( 92 ), 84 * COUNT( - + 88 ) * - 84 AS col0
----
-56
-7056

skipif mysql # not compatible
query II rowsort label-6554
SELECT + 36 - ( 92 ), 84 * COUNT ( - + 88 ) * - 84 AS col0
----
-56
-7056

query I rowsort
SELECT - 41 * 78
----
-3198

query I rowsort
SELECT + 12 + - - 3 * 40
----
132

query I rowsort
SELECT ALL 94 + + + 3 * + 84 AS col2
----
346

query II rowsort
SELECT - 70, - 31 * + 36 AS col2
----
-70
-1116

query I rowsort
SELECT ALL + 93 + - 49 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT ALL - - 69 * + MIN( ALL + 80 ) + + + 48 + + 87
----
5655

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL - - 69 * + MIN ( ALL + 80 ) + + + 48 + + 87
----
5655

query I rowsort
SELECT - + 0 - + 77
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6562
SELECT ALL + CAST( NULL AS SIGNED ) * + + MAX( 2 ), 91 col0
----
NULL
91

skipif mysql # not compatible
query II rowsort label-6562
SELECT ALL + CAST ( NULL AS INTEGER ) * + + MAX ( 2 ), 91 col0
----
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6563
SELECT - - 30 + - - NULLIF ( 82, 13 ) - 50 * + 68 * - COALESCE ( 21, + 64, + 42 + - 61 + + CASE + SUM( - ( + + 8 ) ) WHEN - 61 THEN + 93 * - 0 + 52 + 36 WHEN 91 THEN NULL END + CAST( - COUNT( * ) AS SIGNED ) * - 81 ) * 36 AS col2
----
2570512

skipif mysql # not compatible
query I rowsort label-6563
SELECT - - 30 + - - NULLIF ( 82, 13 ) - 50 * + 68 * - COALESCE ( 21, + 64, + 42 + - 61 + + CASE + SUM ( - ( + + 8 ) ) WHEN - 61 THEN + 93 * - 0 + 52 + 36 WHEN 91 THEN NULL END + CAST ( - COUNT ( * ) AS INTEGER ) * - 81 ) * 36 AS col2
----
2570512

query I rowsort
SELECT - 75 * - ( + - 23 )
----
-1725

query II rowsort
SELECT - 67 AS col2, ( 50 ) + 8 AS col1
----
-67
58

query II rowsort
SELECT + - 57 col0, - 3 * + 18
----
-57
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6567
SELECT - 73 DIV - + 10 + 74 + + MIN( DISTINCT + 17 ) + - 34 * 43 AS col2
----
-1364

skipif mysql # not compatible
query I rowsort label-6567
SELECT - 73 / - + 10 + 74 + + MIN ( DISTINCT + 17 ) + - 34 * 43 AS col2
----
-1364

query II rowsort
SELECT ALL + + 42 AS col0, 28 AS col1
----
42
28

query I rowsort
SELECT - + 48 * 44
----
-2112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6570
SELECT + NULLIF ( 88, - 44 + - 66 ) col2, - CASE - - 77 WHEN + - 27 * + CAST( NULL AS SIGNED ) THEN - - 46 WHEN - 67 THEN - 95 * + 48 + - 10 END / + 30
----
88
NULL

skipif mysql # not compatible
query II rowsort label-6570
SELECT + NULLIF ( 88, - 44 + - 66 ) col2, - CASE - - 77 WHEN + - 27 * + CAST ( NULL AS INTEGER ) THEN - - 46 WHEN - 67 THEN - 95 * + 48 + - 10 END / + 30
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT - 98 * - 61 + - ( COUNT( * ) ) + - 80
----
5897

skipif mysql # not compatible
query I rowsort label-6571
SELECT - 98 * - 61 + - ( COUNT ( * ) ) + - 80
----
5897

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT - + 98 DIV - + 75 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6572
SELECT - + 98 / - + 75 AS col1
----
1

query I rowsort
SELECT + 85 * + 73 * - 42 + 12
----
-260598

query II rowsort
SELECT ALL + - 91, 68 * 72 AS col0
----
-91
4896

query I rowsort
SELECT DISTINCT + - ( + 6 ) col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6576
SELECT + 75 DIV + 95 * + 43 AS col0, + CAST( - COUNT( * ) AS SIGNED )
----
0
-1

skipif mysql # not compatible
query II rowsort label-6576
SELECT + 75 / + 95 * + 43 AS col0, + CAST ( - COUNT ( * ) AS INTEGER )
----
0
-1

query I rowsort
SELECT + 79 + - + 13
----
66

query II rowsort
SELECT + 58 AS col2, + 95
----
58
95

query I rowsort
SELECT - 32 * - + 59 * - 9 * + 21 + 0 + - + 6 * - 36 + - + 85
----
-356701

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6580
SELECT 32 * - - 98 DIV - COUNT( * ) + - 53 AS col1, + 19
----
-3189
19

skipif mysql # not compatible
query II rowsort label-6580
SELECT 32 * - - 98 / - COUNT ( * ) + - 53 AS col1, + 19
----
-3189
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT ALL 90 * - + 25 + + + COUNT( ALL - 18 ) * + 25 AS col1
----
-2225

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL 90 * - + 25 + + + COUNT ( ALL - 18 ) * + 25 AS col1
----
-2225

query I rowsort
SELECT ALL + 15 * 56 * - 89 + + 62
----
-74698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6583
SELECT ALL - NULLIF ( + 41, 26 + - COUNT( * ) ) * 24 * + + 99 + + + CAST( NULL AS SIGNED ) + + + 91 + MAX( + 58 ) / - - 96 * + ( - COUNT( * ) ) + - CAST( ( 2 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - NULLIF ( + 41, 26 + - COUNT ( * ) ) * 24 * + + 99 + + + CAST ( NULL AS INTEGER ) + + + 91 + MAX ( + 58 ) / - - 96 * + ( - COUNT ( * ) ) + - CAST ( ( 2 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT DISTINCT 71 * - + 66 + + COUNT( * )
----
-4685

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT 71 * - + 66 + + COUNT ( * )
----
-4685

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT MIN( DISTINCT + 2 ) * - 52 AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT MIN ( DISTINCT + 2 ) * - 52 AS col2
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6586
SELECT COALESCE ( - 10, MIN( DISTINCT + 22 ), + 52 + + 57 - + NULLIF ( + - SUM( - + 77 ), - 76 ) + + - SUM( - + 84 ) * + 58 * 29 DIV - CAST( - 20 AS SIGNED ) * - 31 * + + 19 + - 53 + + 97, 21 DIV - CASE - COUNT( * ) WHEN MAX( - 68 ) THEN NULL WHEN 39 * ( + 61 ) THEN 46 DIV 49 + CAST( NULL AS SIGNED ) END ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-6586
SELECT COALESCE ( - 10, MIN ( DISTINCT + 22 ), + 52 + + 57 - + NULLIF ( + - SUM ( - + 77 ), - 76 ) + + - SUM ( - + 84 ) * + 58 * 29 / - CAST ( - 20 AS INTEGER ) * - 31 * + + 19 + - 53 + + 97, 21 / - CASE - COUNT ( * ) WHEN MAX ( - 68 ) THEN NULL WHEN 39 * ( + 61 ) THEN 46 / 49 + CAST ( NULL AS INTEGER ) END ) AS col0
----
-10

query I rowsort
SELECT + 48 * - - 21
----
1008

query I rowsort
SELECT 13 + - - 17
----
30

query I rowsort
SELECT 49 - + 81
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6590
SELECT DISTINCT 41 * - + NULLIF ( 98, - - NULLIF ( - 35, 19 ) / NULLIF ( + - 61, + + 65 * + CAST( 82 AS SIGNED ) + + + ( - 7 ) / - 96 ) ) AS col1
----
-4018

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT 41 * - + NULLIF ( 98, - - NULLIF ( - 35, 19 ) / NULLIF ( + - 61, + + 65 * + CAST ( 82 AS INTEGER ) + + + ( - 7 ) / - 96 ) ) AS col1
----
-4018

query I rowsort
SELECT DISTINCT 53 - - 21 AS col0
----
74

query I rowsort
SELECT 39 + + 74 + 21 * + - 26
----
-433

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT DISTINCT 88 * - - 35 * + + NULLIF ( + 2, - + COUNT( * ) * - 78 + 44 * 75 * + - 9 ) * + 80 AS col0
----
492800

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT 88 * - - 35 * + + NULLIF ( + 2, - + COUNT ( * ) * - 78 + 44 * 75 * + - 9 ) * + 80 AS col0
----
492800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6594
SELECT DISTINCT 5 * + 26 * ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT 5 * + 26 * ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 20 + + 23 + + - 54
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6596
SELECT 20 DIV - 80 * 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6596
SELECT 20 / - 80 * 17 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6597
SELECT DISTINCT - - 66 - 17 AS col1, + NULLIF ( + ( MIN( DISTINCT + 57 ) ), 35 + + - 84 )
----
49
57

skipif mysql # not compatible
query II rowsort label-6597
SELECT DISTINCT - - 66 - 17 AS col1, + NULLIF ( + ( MIN ( DISTINCT + 57 ) ), 35 + + - 84 )
----
49
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6598
SELECT DISTINCT CAST( 77 AS SIGNED ) AS col0, CASE + ( - 51 ) WHEN + 25 THEN + - 29 WHEN + 86 THEN 50 WHEN + COUNT( + - 40 ) * 45 THEN + 94 ELSE NULL END AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-6598
SELECT DISTINCT CAST ( 77 AS INTEGER ) AS col0, CASE + ( - 51 ) WHEN + 25 THEN + - 29 WHEN + 86 THEN 50 WHEN + COUNT ( + - 40 ) * 45 THEN + 94 ELSE NULL END AS col0
----
77
NULL

query I rowsort
SELECT + 56 + + - NULLIF ( + - 68, + 3 / 87 ) AS col1
----
124

query I rowsort
SELECT + 45 + - + 6
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6601
SELECT DISTINCT - 30 + + 88 - - - 64 + + MAX( - + CAST( + - 74 AS SIGNED ) ) * + CAST( NULL AS SIGNED ) + + + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT - 30 + + 88 - - - 64 + + MAX ( - + CAST ( + - 74 AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) + + + 27 AS col2
----
NULL

query I rowsort
SELECT - ( - 73 ) * 46
----
3358

onlyif mysql # DIV for integer division: 
query II rowsort label-6603
SELECT 61 - - + 28 AS col1, + ( + 54 ) DIV - 38 col2
----
89
-1

skipif mysql # not compatible
query II rowsort label-6603
SELECT 61 - - + 28 AS col1, + ( + 54 ) / - 38 col2
----
89
-1

query I rowsort
SELECT + NULLIF ( 19, - 75 * + 3 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT + COALESCE ( - 72, ( - COUNT( * ) ), - COUNT( DISTINCT 64 ) + - 63 ) * + 13 + 49 * + + 96 + - 40
----
3728

skipif mysql # not compatible
query I rowsort label-6605
SELECT + COALESCE ( - 72, ( - COUNT ( * ) ), - COUNT ( DISTINCT 64 ) + - 63 ) * + 13 + 49 * + + 96 + - 40
----
3728

query I rowsort
SELECT + 30 * - 88 col1
----
-2640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6607
SELECT DISTINCT - NULLIF ( - + 73, CAST( + 75 AS SIGNED ) ) col0
----
73

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT - NULLIF ( - + 73, CAST ( + 75 AS INTEGER ) ) col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT ALL ( + 0 ) + + MIN( ALL - 41 ) + + 70
----
29

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL ( + 0 ) + + MIN ( ALL - 41 ) + + 70
----
29

query I rowsort
SELECT ALL + 38 + - + 8 - - - 29 + + 23
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL COUNT( * ) * + + 12
----
12

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL COUNT ( * ) * + + 12
----
12

query I rowsort
SELECT 93 * + 72 + + ( 11 )
----
6707

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL 0 - - CASE + COUNT( * ) WHEN - 79 THEN + ( - 11 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL 0 - - CASE + COUNT ( * ) WHEN - 79 THEN + ( - 11 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6613
SELECT DISTINCT - 20 * - + CASE + 79 WHEN + COUNT( - + 0 ) + + 74 THEN - 39 + - CASE + 92 WHEN CASE + - 38 WHEN - 22 * + NULLIF ( - COUNT( * ), + 23 ) THEN 32 - + + 59 + + - CAST( NULL AS DECIMAL ) WHEN 24 THEN + 81 + - CAST( NULL AS SIGNED ) END * 2 THEN 1 END WHEN 32 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT - 20 * - + CASE + 79 WHEN + COUNT ( - + 0 ) + + 74 THEN - 39 + - CASE + 92 WHEN CASE + - 38 WHEN - 22 * + NULLIF ( - COUNT ( * ), + 23 ) THEN 32 - + + 59 + + - CAST ( NULL AS REAL ) WHEN 24 THEN + 81 + - CAST ( NULL AS INTEGER ) END * 2 THEN 1 END WHEN 32 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6614
SELECT COUNT( * ) DIV + 5
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT COUNT ( * ) / + 5
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6615
SELECT DISTINCT 94 DIV 84 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT 94 / 84 AS col1
----
1

query II rowsort
SELECT DISTINCT 64 AS col2, 17 AS col2
----
64
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT 22 * CAST( 66 AS SIGNED ) AS col2
----
1452

skipif mysql # not compatible
query I rowsort label-6617
SELECT 22 * CAST ( 66 AS INTEGER ) AS col2
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT COUNT( * ) - - 86 + + 47 * + 67 * - 58 * 61 + + COALESCE ( + 98, + COUNT( * ) ) * - - 32 * + 43
----
-11006227

skipif mysql # not compatible
query I rowsort label-6618
SELECT COUNT ( * ) - - 86 + + 47 * + 67 * - 58 * 61 + + COALESCE ( + 98, + COUNT ( * ) ) * - - 32 * + 43
----
-11006227

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT 35 - + + MAX( - + 11 ) * - 47 AS col1
----
-482

skipif mysql # not compatible
query I rowsort label-6619
SELECT 35 - + + MAX ( - + 11 ) * - 47 AS col1
----
-482

query I rowsort
SELECT - 27 * + - ( + 24 ) col1
----
648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6621
SELECT ALL - NULLIF ( - 98, + CAST( NULL AS SIGNED ) * + + 24 + 84 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - NULLIF ( - 98, + CAST ( NULL AS INTEGER ) * + + 24 + 84 ) AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6622
SELECT 27 * - 13 / CASE - - 43 WHEN 32 THEN + 65 WHEN + 90 * + + 70 + + + ( + - CAST( + - CAST( - 11 AS SIGNED ) AS SIGNED ) ) * - - COUNT( * ) * + 89 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6622
SELECT 27 * - 13 / CASE - - 43 WHEN 32 THEN + 65 WHEN + 90 * + + 70 + + + ( + - CAST ( + - CAST ( - 11 AS INTEGER ) AS INTEGER ) ) * - - COUNT ( * ) * + 89 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6623
SELECT ALL 24 * + CAST( NULL AS SIGNED ) * + 70 + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL 24 * + CAST ( NULL AS INTEGER ) * + 70 + 82 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 26 * + + 47
----
1222

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT NULLIF ( - 93, COUNT( * ) / + + 6 + + 44 + 39 + - 26 ) - + 35 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-6625
SELECT NULLIF ( - 93, COUNT ( * ) / + + 6 + + 44 + 39 + - 26 ) - + 35 AS col2
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6626
SELECT + CAST( 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-6626
SELECT + CAST ( 98 AS INTEGER )
----
98

query I rowsort
SELECT ALL - 1 + + 12 + - 44 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT COUNT( * ) * 18 * + 64 AS col0
----
1152

skipif mysql # not compatible
query I rowsort label-6628
SELECT COUNT ( * ) * 18 * + 64 AS col0
----
1152

onlyif mysql # DIV for integer division: 
query I rowsort label-6629
SELECT + 14 DIV - + 67 + - 58 + 11 - 94
----
-141

skipif mysql # not compatible
query I rowsort label-6629
SELECT + 14 / - + 67 + - 58 + 11 - 94
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6630
SELECT ALL 26 DIV + COUNT( * ) + - 75, 42 AS col1
----
-49
42

skipif mysql # not compatible
query II rowsort label-6630
SELECT ALL 26 / + COUNT ( * ) + - 75, 42 AS col1
----
-49
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT 76 + - MIN( - - 27 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6631
SELECT 76 + - MIN ( - - 27 ) AS col1
----
49

query II rowsort
SELECT 41 * + 90 - 89 col1, 27
----
3601
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT + 38 * - 28 + - MAX( + 78 ) AS col1
----
-1142

skipif mysql # not compatible
query I rowsort label-6633
SELECT + 38 * - 28 + - MAX ( + 78 ) AS col1
----
-1142

query I rowsort
SELECT 69 * 55 + 71 + 80
----
3946

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT ( + 37 ) * + - CASE + COUNT( * ) WHEN 79 THEN - + NULLIF ( NULLIF ( + - 57, - 93 ), ( + + 75 ) ) * 5 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT ( + 37 ) * + - CASE + COUNT ( * ) WHEN 79 THEN - + NULLIF ( NULLIF ( + - 57, - 93 ), ( + + 75 ) ) * 5 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6636
SELECT + 81, 94 DIV - + 77 + COUNT( * ) + + 19 AS col2
----
81
19

skipif mysql # not compatible
query II rowsort label-6636
SELECT + 81, 94 / - + 77 + COUNT ( * ) + + 19 AS col2
----
81
19

query I rowsort
SELECT - 7 + + ( - 32 ) AS col1
----
-39

query I rowsort
SELECT ALL + ( - 8 ) col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-6639
SELECT - 25 * + - 69 + - 71 + - 76 DIV + + 94
----
1654

skipif mysql # not compatible
query I rowsort label-6639
SELECT - 25 * + - 69 + - 71 + - 76 / + + 94
----
1654

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT COUNT( * ) * + ( + ( - + 66 ) ) + + 5 col0
----
-61

skipif mysql # not compatible
query I rowsort label-6640
SELECT COUNT ( * ) * + ( + ( - + 66 ) ) + + 5 col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT DISTINCT + CASE - COALESCE ( 42, - - 18 + + 39 ) WHEN 94 + + - COUNT( * ) THEN NULL WHEN + - 65 THEN ( + 52 ) WHEN - 6 + + - COUNT( * ) + - COUNT( * ) THEN + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT + CASE - COALESCE ( 42, - - 18 + + 39 ) WHEN 94 + + - COUNT ( * ) THEN NULL WHEN + - 65 THEN ( + 52 ) WHEN - 6 + + - COUNT ( * ) + - COUNT ( * ) THEN + 61 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT DISTINCT + MAX( ALL + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT + MAX ( ALL + 17 ) AS col0
----
17

query I rowsort
SELECT ALL 53 * - 50
----
-2650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6644
SELECT DISTINCT + CASE - 53 WHEN + 42 + - 99 + - - 21 THEN - - NULLIF ( - CAST( + - COUNT( * ) AS SIGNED ), 91 ) + ( - 83 ) WHEN - 63 * + 64 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT + CASE - 53 WHEN + 42 + - 99 + - - 21 THEN - - NULLIF ( - CAST ( + - COUNT ( * ) AS INTEGER ), 91 ) + ( - 83 ) WHEN - 63 * + 64 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6645
SELECT 34 * + - 35 + ( + 14 ) - - 36 + - + 42 DIV 71 + + + 39 * - + COUNT( * )
----
-1179

skipif mysql # not compatible
query I rowsort label-6645
SELECT 34 * + - 35 + ( + 14 ) - - 36 + - + 42 / 71 + + + 39 * - + COUNT ( * )
----
-1179

query I rowsort
SELECT 62 * 56 + - + 31
----
3441

query I rowsort
SELECT - 5 * 42 AS col1
----
-210

query I rowsort
SELECT ALL + 35 * + 79 col2
----
2765

query I rowsort
SELECT - 23 + - 89
----
-112

query I rowsort
SELECT ALL ( - ( + + 34 ) ) AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6651
SELECT - 55 + COALESCE ( - - COUNT( * ), + 0 DIV + COUNT( * ) - 94 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6651
SELECT - 55 + COALESCE ( - - COUNT ( * ), + 0 / + COUNT ( * ) - 94 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT + COUNT( * ) + - - 70 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6652
SELECT + COUNT ( * ) + - - 70 AS col1
----
71

query I rowsort
SELECT ALL + 88 * - + 72
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT DISTINCT + MAX( DISTINCT + 91 ) * + + 58 AS col1
----
5278

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT + MAX ( DISTINCT + 91 ) * + + 58 AS col1
----
5278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6655
SELECT ALL - CASE SUM( DISTINCT + 58 ) WHEN + + ( 72 ) / + - ( + - NULLIF ( COUNT( * ), + + 74 ) ) * + 79 + 59 THEN + 44 ELSE - + 22 - + + 65 END + - - 88 * - + CAST( - AVG ( + 74 ) AS SIGNED )
----
6599

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - CASE SUM ( DISTINCT + 58 ) WHEN + + ( 72 ) / + - ( + - NULLIF ( COUNT ( * ), + + 74 ) ) * + 79 + 59 THEN + 44 ELSE - + 22 - + + 65 END + - - 88 * - + CAST ( - AVG ( + 74 ) AS INTEGER )
----
6599

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT + + ( - + 11 ) + + + COUNT( * ) + + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-6656
SELECT + + ( - + 11 ) + + + COUNT ( * ) + + - COUNT ( * )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6657
SELECT DISTINCT - CAST( 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT - CAST ( 11 AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6658
SELECT ALL + 16 + COUNT( * ) DIV 45
----
16

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL + 16 + COUNT ( * ) / 45
----
16

query I rowsort
SELECT + - 11 + + + 52 AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-6660
SELECT ALL + 62 AS col2, + 72 + - COUNT( * ) - + 27 col2
----
62
44

skipif mysql # not compatible
query II rowsort label-6660
SELECT ALL + 62 AS col2, + 72 + - COUNT ( * ) - + 27 col2
----
62
44

query I rowsort
SELECT - - 41 * + 53 * 31 AS col0
----
67363

query I rowsort
SELECT + + 36 + + - 39 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT + SUM( DISTINCT 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6663
SELECT + SUM ( DISTINCT 28 ) AS col2
----
28

query I rowsort
SELECT + 41 + + 83 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT MIN( ALL + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-6665
SELECT MIN ( ALL + 83 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT ALL 15 + - CAST( NULL AS SIGNED ) / 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL 15 + - CAST ( NULL AS INTEGER ) / 89 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + 3 AS col0, - 93
----
3
-93

query II rowsort
SELECT DISTINCT 21, 64 * - 2 AS col1
----
21
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL - COUNT( ALL + NULLIF ( 63, 25 ) ) + 33
----
32

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - COUNT ( ALL + NULLIF ( 63, 25 ) ) + 33
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-6670
SELECT ALL + + 60 AS col0, - 57 * + - SUM( ALL + 51 ) AS col1, - + 22 * + 8 * - 86 + + - 74 + + MIN( ALL + CAST( NULL AS DECIMAL ) ) * + - 30 + COUNT( ALL + 57 ) AS col1
----
60
2907
NULL

skipif mysql # not compatible
query III rowsort label-6670
SELECT ALL + + 60 AS col0, - 57 * + - SUM ( ALL + 51 ) AS col1, - + 22 * + 8 * - 86 + + - 74 + + MIN ( ALL + CAST ( NULL AS REAL ) ) * + - 30 + COUNT ( ALL + 57 ) AS col1
----
60
2907
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL + SUM( + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL + SUM ( + 57 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6672
SELECT ALL - 52 DIV 69 + - COUNT( * ) - - + MIN( DISTINCT + CASE - 84 WHEN + NULLIF ( - + 63, + + 93 ) * - 5 + + 48 THEN NULL ELSE CAST( + 57 AS SIGNED ) + 10 END )
----
66

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL - 52 / 69 + - COUNT ( * ) - - + MIN ( DISTINCT + CASE - 84 WHEN + NULLIF ( - + 63, + + 93 ) * - 5 + + 48 THEN NULL ELSE CAST ( + 57 AS INTEGER ) + 10 END )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT DISTINCT COUNT( DISTINCT - 19 ) * - + 17
----
-17

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT COUNT ( DISTINCT - 19 ) * - + 17
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT ( - - COUNT( + 32 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6674
SELECT ( - - COUNT ( + 32 ) )
----
1

query I rowsort
SELECT + 25 * 77 * - 63
----
-121275

query I rowsort
SELECT + 96 - + 24 AS col0
----
72

query I rowsort
SELECT ( - ( + - ( + 46 ) ) ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT - 21 * - 77 - + - MAX( ALL - + 50 ) AS col0
----
1567

skipif mysql # not compatible
query I rowsort label-6678
SELECT - 21 * - 77 - + - MAX ( ALL - + 50 ) AS col0
----
1567

query I rowsort
SELECT + 89 * + 86
----
7654

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6680
SELECT ALL + COUNT( * ) * + 73 * - 87 * 5 - - 84 DIV + 53 + 49 - + COUNT( * ) - + MAX( ALL - + 71 ) * - 70 + 88 AS col0, + NULLIF ( + - 66, + 78 ) * 5 DIV - - 20 + + 51 * - 13 - + 79
----
-36588
-758

skipif mysql # not compatible
query II rowsort label-6680
SELECT ALL + COUNT ( * ) * + 73 * - 87 * 5 - - 84 / + 53 + 49 - + COUNT ( * ) - + MAX ( ALL - + 71 ) * - 70 + 88 AS col0, + NULLIF ( + - 66, + 78 ) * 5 / - - 20 + + 51 * - 13 - + 79
----
-36588
-758

query I rowsort
SELECT DISTINCT + 20 * 81 * 64 col1
----
103680

query I rowsort
SELECT + 29 * 64
----
1856

query I rowsort
SELECT COALESCE ( - 14, - 88 ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT DISTINCT + 57 * + - COALESCE ( NULLIF ( + 42, - ( - 92 ) ), + - MAX( + 94 ) )
----
-2394

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT + 57 * + - COALESCE ( NULLIF ( + 42, - ( - 92 ) ), + - MAX ( + 94 ) )
----
-2394

query I rowsort
SELECT - CASE + + 34 WHEN + - 73 + - 98 THEN - 68 END * + - 74 * - + 27 * - 24
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6686
SELECT - AVG ( DISTINCT 95 ) * COUNT( * ) + ( + CASE + 71 WHEN - 80 + - - 54 - + 62 THEN 60 END ) + NULLIF ( - - 82, - 52 ) * ( - 44 ) AS col0, - 18 AS col2
----
NULL
-18

skipif mysql # not compatible
query II rowsort label-6686
SELECT - AVG ( DISTINCT 95 ) * COUNT ( * ) + ( + CASE + 71 WHEN - 80 + - - 54 - + 62 THEN 60 END ) + NULLIF ( - - 82, - 52 ) * ( - 44 ) AS col0, - 18 AS col2
----
NULL
-18

query I rowsort
SELECT DISTINCT + NULLIF ( + 49, - - 21 + 83 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT DISTINCT ( 29 ) * MAX( ALL ( - - 1 ) )
----
29

skipif mysql # not compatible
query I rowsort label-6688
SELECT DISTINCT ( 29 ) * MAX ( ALL ( - - 1 ) )
----
29

query I rowsort
SELECT ALL + 14 * 63 + 64 AS col0
----
946

query II rowsort
SELECT - + 31 * 77 AS col2, 94
----
-2387
94

query I rowsort
SELECT - 42 - + + CASE + 46 WHEN + 54 THEN 28 END - - 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6692
SELECT ALL - - CAST( NULL AS SIGNED ) + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL - - CAST ( NULL AS INTEGER ) + 48 AS col2
----
NULL

query I rowsort
SELECT - - 4 + - - 56
----
60

query I rowsort
SELECT ALL - - 30 + 85 col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ALL - COUNT( * ) * + - 38 + + 84 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL - COUNT ( * ) * + - 38 + + 84 AS col1
----
122

query I rowsort
SELECT DISTINCT + + ( + 92 ) + 80 AS col2
----
172

query I rowsort
SELECT ALL + 58 - 50 * + 18 * 48
----
-43142

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT - 32 + 34 + + 56 + + + 75 * - + 22 * - 97 * + 69 * - + COUNT( * ) AS col1
----
-11043392

skipif mysql # not compatible
query I rowsort label-6698
SELECT - 32 + 34 + + 56 + + + 75 * - + 22 * - 97 * + 69 * - + COUNT ( * ) AS col1
----
-11043392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6699
SELECT COUNT( * ) + - 81 * + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6699
SELECT COUNT ( * ) + - 81 * + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6700
SELECT 33 * MAX( 15 ) AS col0, + 31 * - + 26 AS col0
----
495
-806

skipif mysql # not compatible
query II rowsort label-6700
SELECT 33 * MAX ( 15 ) AS col0, + 31 * - + 26 AS col0
----
495
-806

query I rowsort
SELECT ( 28 ) * + 2
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-6702
SELECT ALL - 87 AS col0, 7 DIV 60 * ( - 1 ) * + + 68
----
-87
0

skipif mysql # not compatible
query II rowsort label-6702
SELECT ALL - 87 AS col0, 7 / 60 * ( - 1 ) * + + 68
----
-87
0

query I rowsort
SELECT COALESCE ( - 22, - 80 ) * + 41 AS col2
----
-902

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT + 4 DIV + COUNT( * ) + + 7 * + + ( - ( + COUNT( * ) ) ) - 25 + + 73 - 27 DIV ( - 8 ) DIV + + 26 * + 61
----
45

skipif mysql # not compatible
query I rowsort label-6704
SELECT + 4 / + COUNT ( * ) + + 7 * + + ( - ( + COUNT ( * ) ) ) - 25 + + 73 - 27 / ( - 8 ) / + + 26 * + 61
----
45

query I rowsort
SELECT NULLIF ( + 23, - 3 ) * - 91 AS col0
----
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT 58 * + SUM( + - 21 ) AS col0
----
-1218

skipif mysql # not compatible
query I rowsort label-6706
SELECT 58 * + SUM ( + - 21 ) AS col0
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT COUNT( * ) + + 89 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6707
SELECT COUNT ( * ) + + 89 AS col1
----
90

query II rowsort
SELECT + 8, + 45 AS col0
----
8
45

query II rowsort
SELECT 99, - ( 26 ) AS col2
----
99
-26

query II rowsort
SELECT 71 * - 75 + - - 36 AS col0, + 52 - + 89
----
-5289
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT 83 * - COALESCE ( 91, - MAX( 85 ) ) col2
----
-7553

skipif mysql # not compatible
query I rowsort label-6711
SELECT 83 * - COALESCE ( 91, - MAX ( 85 ) ) col2
----
-7553

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT DISTINCT 11 DIV - 48 * - NULLIF ( 90, - + 52 * + + ( + - 74 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT 11 / - 48 * - NULLIF ( 90, - + 52 * + + ( + - 74 ) ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6713
SELECT ALL - 22 AS col2, - SUM( + + CAST( NULL AS SIGNED ) ) * - 77 - + 49 * - MAX( ALL + 56 ) + - + NULLIF ( - 33, - ( + COUNT( ALL - - 88 ) ) ) AS col2
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-6713
SELECT ALL - 22 AS col2, - SUM ( + + CAST ( NULL AS INTEGER ) ) * - 77 - + 49 * - MAX ( ALL + 56 ) + - + NULLIF ( - 33, - ( + COUNT ( ALL - - 88 ) ) ) AS col2
----
-22
NULL

query I rowsort
SELECT ALL ( + 65 ) + - 22
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6715
SELECT ALL 40 + CAST( 22 AS SIGNED ) col1, 29 col0
----
62
29

skipif mysql # not compatible
query II rowsort label-6715
SELECT ALL 40 + CAST ( 22 AS INTEGER ) col1, 29 col0
----
62
29

query II rowsort
SELECT 86, - 45 AS col0
----
86
-45

query I rowsort
SELECT ALL - 72 + + - 26 + 37 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT 10 + - + SUM( + 26 )
----
-16

skipif mysql # not compatible
query I rowsort label-6718
SELECT 10 + - + SUM ( + 26 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT DISTINCT COUNT( * ) + - - 93 + + 64 + - + 43
----
115

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT COUNT ( * ) + - - 93 + + 64 + - + 43
----
115

query I rowsort
SELECT 71 * - 21 AS col0
----
-1491

query I rowsort
SELECT ALL 48 * 45 AS col1
----
2160

query I rowsort
SELECT DISTINCT + 47 * - - 73
----
3431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6723
SELECT ALL + ( COUNT( DISTINCT 48 ) ) + + 3, + NULLIF ( COUNT( ALL + CAST( NULL AS SIGNED ) ), - 64 ) + + 91 AS col1
----
4
91

skipif mysql # not compatible
query II rowsort label-6723
SELECT ALL + ( COUNT ( DISTINCT 48 ) ) + + 3, + NULLIF ( COUNT ( ALL + CAST ( NULL AS INTEGER ) ), - 64 ) + + 91 AS col1
----
4
91

query I rowsort
SELECT + 40 + 54 col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT - - 45 * - + COUNT( * ) + + 89 * - + 30 AS col0
----
-2715

skipif mysql # not compatible
query I rowsort label-6725
SELECT - - 45 * - + COUNT ( * ) + + 89 * - + 30 AS col0
----
-2715

query II rowsort
SELECT DISTINCT 33 AS col2, + 7 AS col0
----
33
7

query I rowsort
SELECT ALL + 53 * 30
----
1590

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT COUNT( DISTINCT - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-6728
SELECT COUNT ( DISTINCT - 67 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6729
SELECT DISTINCT - 20 - 27 * - 0 + + 99 DIV + - COALESCE ( 85, 55 * - COUNT( - 39 ) ) - - 39 * - 41 * + - COUNT( * ) AS col2
----
1578

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT - 20 - 27 * - 0 + + 99 / + - COALESCE ( 85, 55 * - COUNT ( - 39 ) ) - - 39 * - 41 * + - COUNT ( * ) AS col2
----
1578

query I rowsort
SELECT 51 + 32 col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6731
SELECT NULLIF ( 84, + - 23 + - 79 ) * - CASE 7 WHEN 52 THEN NULL ELSE + MAX( - ( - 89 ) ) + - 61 END + + 49 + + 37 + + CASE 13 WHEN - - 32 * - 46 THEN NULL WHEN + MIN( 76 ) + COUNT( * ) / + 73 * + 14 + + ( + 30 ) + ( 61 ) * - 23 THEN NULL WHEN - 25 * - MAX( + ( 93 ) ) THEN 25 ELSE - 22 + 26 END / CASE - 17 * - 21 WHEN 37 THEN CASE - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) + ( - 57 ) THEN 64 WHEN - NULLIF ( COUNT( DISTINCT - 17 ), 59 * 27 ) THEN NULL END * COUNT( * ) END * + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT NULLIF ( 84, + - 23 + - 79 ) * - CASE 7 WHEN 52 THEN NULL ELSE + MAX ( - ( - 89 ) ) + - 61 END + + 49 + + 37 + + CASE 13 WHEN - - 32 * - 46 THEN NULL WHEN + MIN ( 76 ) + COUNT ( * ) / + 73 * + 14 + + ( + 30 ) + ( 61 ) * - 23 THEN NULL WHEN - 25 * - MAX ( + ( 93 ) ) THEN 25 ELSE - 22 + 26 END / CASE - 17 * - 21 WHEN 37 THEN CASE - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) + ( - 57 ) THEN 64 WHEN - NULLIF ( COUNT ( DISTINCT - 17 ), 59 * 27 ) THEN NULL END * COUNT ( * ) END * + 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6732
SELECT - 12 AS col1, COUNT( + + 86 ) * + ( - ( COALESCE ( + 41, + - ( 69 ) ) ) ) DIV 29
----
-12
-1

skipif mysql # not compatible
query II rowsort label-6732
SELECT - 12 AS col1, COUNT ( + + 86 ) * + ( - ( COALESCE ( + 41, + - ( 69 ) ) ) ) / 29
----
-12
-1

query I rowsort
SELECT - COALESCE ( - 71, - 42, + 66 ) AS col0
----
71

query I rowsort
SELECT ALL - + 35 * 65 + - 52 AS col0
----
-2327

onlyif mysql # DIV for integer division: 
query II rowsort label-6735
SELECT DISTINCT + 79 - + 13 DIV + + 95, + ( - 83 ) AS col2
----
79
-83

skipif mysql # not compatible
query II rowsort label-6735
SELECT DISTINCT + 79 - + 13 / + + 95, + ( - 83 ) AS col2
----
79
-83

query I rowsort
SELECT ALL - 38 * - - NULLIF ( - 97, 82 )
----
3686

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT 26 * + MIN( ALL - 25 )
----
-650

skipif mysql # not compatible
query I rowsort label-6737
SELECT 26 * + MIN ( ALL - 25 )
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT ALL - COUNT( * ) * - 88 * 65 * + COALESCE ( - 86, 64, - + 83, + - COUNT( * ) ) AS col0
----
-491920

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL - COUNT ( * ) * - 88 * 65 * + COALESCE ( - 86, 64, - + 83, + - COUNT ( * ) ) AS col0
----
-491920

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT 32 DIV + - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6739
SELECT 32 / + - 47 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT 22 DIV - 9 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6740
SELECT 22 / - 9 AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT 58 DIV 57 * + 14 * - - 30 AS col0
----
420

skipif mysql # not compatible
query I rowsort label-6741
SELECT 58 / 57 * + 14 * - - 30 AS col0
----
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6742
SELECT DISTINCT - COUNT( * ) DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT - COUNT ( * ) / + 65
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6743
SELECT ( 96 ) * - MAX( ALL - + 77 ) AS col1, + 19
----
7392
19

skipif mysql # not compatible
query II rowsort label-6743
SELECT ( 96 ) * - MAX ( ALL - + 77 ) AS col1, + 19
----
7392
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL + 85 + - COUNT( * ) + - 98 + - 71 + 54 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL + 85 + - COUNT ( * ) + - 98 + - 71 + 54 AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT 41 - - 19 + CAST( NULL AS SIGNED ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT 41 - - 19 + CAST ( NULL AS INTEGER ) * - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT DISTINCT + 3 + + + COUNT( ( - 70 ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT + 3 + + + COUNT ( ( - 70 ) ) AS col0
----
4

query I rowsort
SELECT ALL 70 * + 36
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT ALL + COUNT( DISTINCT + 3 ) + 74
----
75

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL + COUNT ( DISTINCT + 3 ) + 74
----
75

query I rowsort
SELECT ALL 64 + 96 AS col2
----
160

query I rowsort
SELECT ALL 23 + 75 + + 16
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6751
SELECT 76 - - 36 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT 76 - - 36 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 13 * + CASE 91 WHEN 81 * + + 78 / - 78 + 93 THEN NULL WHEN + 1 THEN NULL ELSE + - ( + 75 ) * + + 5 END AS col1
----
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT DISTINCT 93 + + COUNT( + 99 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT 93 + + COUNT ( + 99 ) AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6754
SELECT - MIN( ALL - - 35 ) - - 31 DIV - - ( + - 28 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6754
SELECT - MIN ( ALL - - 35 ) - - 31 / - - ( + - 28 ) AS col0
----
-36

query I rowsort
SELECT ALL 45 + - 89 * - CASE - 47 WHEN - 83 THEN NULL WHEN - 44 THEN - NULLIF ( - + 92, - - 34 * + 69 ) + + + ( + + NULLIF ( + ( + - 69 ), + - NULLIF ( - 16, + - 71 ) ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT + SUM( - ( + - 12 ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6756
SELECT + SUM ( - ( + - 12 ) ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT + - COALESCE ( - 28, + 80 * + 16, - SUM( DISTINCT - - 35 ) + + 94 + + COALESCE ( 92, - 63 * + - 20, - + 94, 95 ) )
----
28

skipif mysql # not compatible
query I rowsort label-6757
SELECT + - COALESCE ( - 28, + 80 * + 16, - SUM ( DISTINCT - - 35 ) + + 94 + + COALESCE ( 92, - 63 * + - 20, - + 94, 95 ) )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6758
SELECT 48 * - + CAST( - 28 AS SIGNED ) + NULLIF ( - + 45, - 26 * - SUM( DISTINCT - 31 ) + - 19 ) AS col2, + 51 - - NULLIF ( - COUNT( - 59 ), + + 62 * + 89 + - 4 )
----
1299
50

skipif mysql # not compatible
query II rowsort label-6758
SELECT 48 * - + CAST ( - 28 AS INTEGER ) + NULLIF ( - + 45, - 26 * - SUM ( DISTINCT - 31 ) + - 19 ) AS col2, + 51 - - NULLIF ( - COUNT ( - 59 ), + + 62 * + 89 + - 4 )
----
1299
50

query I rowsort
SELECT ALL + + 59 + + 32 + - 82
----
9

query I rowsort
SELECT ALL + 91 - - ( - + 96 ) + + 74 * - + 68
----
-5037

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT ALL 48 DIV 97 + + 37
----
37

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL 48 / 97 + + 37
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT + + 11 DIV - - 59
----
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT + + 11 / - - 59
----
0

query I rowsort
SELECT DISTINCT ( 58 ) * 10 col1
----
580

query I rowsort
SELECT + - 36 + - + 98 AS col1
----
-134

query I rowsort
SELECT - - 72 * - 42 * + + 72 AS col2
----
-217728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6766
SELECT + + CASE + 69 WHEN - 17 THEN NULL ELSE 18 + - - 26 + + 67 END + CAST( NULL AS SIGNED ) * - + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT + + CASE + 69 WHEN - 17 THEN NULL ELSE 18 + - - 26 + + 67 END + CAST ( NULL AS INTEGER ) * - + 5 AS col2
----
NULL

query I rowsort
SELECT - + 97 * + 96
----
-9312

query I rowsort
SELECT + 76 * + + 41 AS col2
----
3116

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT + 49 + + - SUM( + 98 )
----
-49

skipif mysql # not compatible
query I rowsort label-6769
SELECT + 49 + + - SUM ( + 98 )
----
-49

query I rowsort
SELECT DISTINCT 13 * + 92 AS col2
----
1196

query II rowsort
SELECT ALL 76 AS col1, 97 * - 12 + 32
----
76
-1132

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL - 16 + - + 93 * - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL - 16 + - + 93 * - COUNT ( * )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT + 7 + + + 68 DIV 12 + - 21 + + - 18 col0
----
-27

skipif mysql # not compatible
query I rowsort label-6773
SELECT + 7 + + + 68 / 12 + - 21 + + - 18 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT - 59 + - COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6774
SELECT - 59 + - COUNT ( * ) AS col2
----
-60

query I rowsort
SELECT ALL + 71 * + 29 + 87 AS col2
----
2146

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL 33 * - 57 + - + 56 * - COUNT( * ) + CASE - + SUM( DISTINCT COALESCE ( - 36, + ( - 26 ) * + 20 ) ) WHEN 36 THEN + 5 * 94 + + 80 + - COUNT( * ) * 96 END
----
-1371

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL 33 * - 57 + - + 56 * - COUNT ( * ) + CASE - + SUM ( DISTINCT COALESCE ( - 36, + ( - 26 ) * + 20 ) ) WHEN 36 THEN + 5 * 94 + + 80 + - COUNT ( * ) * 96 END
----
-1371

query I rowsort
SELECT ALL 39 * - 10 + + ( + 88 )
----
-302

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT DISTINCT COUNT( * ) * + 12 + - 96 + 31 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT COUNT ( * ) * + 12 + - 96 + 31 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT NULLIF ( + COUNT( DISTINCT - 60 ), - ( + 1 ) + - 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6779
SELECT NULLIF ( + COUNT ( DISTINCT - 60 ), - ( + 1 ) + - 78 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6780
SELECT ALL - COALESCE ( + 44, + 37 ) * + 3 + + - 30 AS col0, + 19 - COUNT( * ) AS col2
----
-162
18

skipif mysql # not compatible
query II rowsort label-6780
SELECT ALL - COALESCE ( + 44, + 37 ) * + 3 + + - 30 AS col0, + 19 - COUNT ( * ) AS col2
----
-162
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT - - MIN( DISTINCT + 99 ) * - COUNT( * ) * + 76
----
-7524

skipif mysql # not compatible
query I rowsort label-6781
SELECT - - MIN ( DISTINCT + 99 ) * - COUNT ( * ) * + 76
----
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT + 69 * - + CASE + 57 WHEN - 46 + - 10 - - 92 THEN + + 14 / - 81 + 1 * + - COUNT( + 90 ) + 0 ELSE NULL END / - - 20 * 51 / - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT + 69 * - + CASE + 57 WHEN - 46 + - 10 - - 92 THEN + + 14 / - 81 + 1 * + - COUNT ( + 90 ) + 0 ELSE NULL END / - - 20 * 51 / - 94 AS col0
----
NULL

query I rowsort
SELECT - + 8 * + 30 AS col1
----
-240

query I rowsort
SELECT ALL + - ( + - 20 ) AS col1
----
20

query I rowsort
SELECT 92 * + 74 + 74 + + 83 + - + 22 + + 54 + + 15
----
7012

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT DISTINCT + 64 * - + 76 - - + 6 * - COUNT( * ) * - COUNT( * ) * 69 AS col1
----
-4450

skipif mysql # not compatible
query I rowsort label-6786
SELECT DISTINCT + 64 * - + 76 - - + 6 * - COUNT ( * ) * - COUNT ( * ) * 69 AS col1
----
-4450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6787
SELECT ALL + CASE + 86 WHEN - + 25 THEN + 78 + - + 14 WHEN + ( - 3 ) * 72 + - 82 + + - 42 / 9 THEN + COUNT( * ) + + 69 + - CAST( NULL AS SIGNED ) ELSE - COUNT( * ) END col1
----
-1

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL + CASE + 86 WHEN - + 25 THEN + 78 + - + 14 WHEN + ( - 3 ) * 72 + - 82 + + - 42 / 9 THEN + COUNT ( * ) + + 69 + - CAST ( NULL AS INTEGER ) ELSE - COUNT ( * ) END col1
----
-1

query I rowsort
SELECT ALL - - 67 * + - 47 - + 89 AS col2
----
-3238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6789
SELECT - 49 * + CAST( NULL AS SIGNED ) / + COUNT( * ) + + 45 + 74 * + AVG ( - 54 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT - 49 * + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + 45 + 74 * + AVG ( - 54 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 94 * + + ( + 47 ) AS col2
----
4418

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT - ( - - COUNT( * ) ) * 50 + ( ( - 59 ) ) col0
----
-109

skipif mysql # not compatible
query I rowsort label-6791
SELECT - ( - - COUNT ( * ) ) * 50 + ( ( - 59 ) ) col0
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6792
SELECT ALL SUM( - 33 ) * - 90 AS col0, + CAST( + + 26 AS SIGNED ) AS col2
----
2970
26

skipif mysql # not compatible
query II rowsort label-6792
SELECT ALL SUM ( - 33 ) * - 90 AS col0, + CAST ( + + 26 AS INTEGER ) AS col2
----
2970
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6793
SELECT DISTINCT + CASE NULLIF ( - 6, CAST( - 53 AS SIGNED ) ) WHEN - 62 + - 34 THEN + - 23 * + + 20 WHEN 54 THEN + COUNT( DISTINCT + 25 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT + CASE NULLIF ( - 6, CAST ( - 53 AS INTEGER ) ) WHEN - 62 + - 34 THEN + - 23 * + + 20 WHEN 54 THEN + COUNT ( DISTINCT + 25 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT 99 col0, + 25 * + COUNT( * ) AS col1
----
99
25

skipif mysql # not compatible
query II rowsort label-6794
SELECT 99 col0, + 25 * + COUNT ( * ) AS col1
----
99
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL - MAX( - - 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL - MAX ( - - 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT - - SUM( + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6796
SELECT - - SUM ( + 1 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + NULLIF ( - - 13, + + 74 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6798
SELECT ALL NULLIF ( + - 93, - 3 + - NULLIF ( + 29, - + COALESCE ( + SUM( - + 33 ), + - 4, - - 51, + 92 ) + + 53 ) ) DIV 51 * - COALESCE ( 12, + CAST( NULL AS SIGNED ), + + 57 * + 85 ) + + 75 DIV + 1 + ( - 49 )
----
38

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL NULLIF ( + - 93, - 3 + - NULLIF ( + 29, - + COALESCE ( + SUM ( - + 33 ), + - 4, - - 51, + 92 ) + + 53 ) ) / 51 * - COALESCE ( 12, + CAST ( NULL AS INTEGER ), + + 57 * + 85 ) + + 75 / + 1 + ( - 49 )
----
38

query I rowsort
SELECT ALL 25 + + - 98 * 40 AS col2
----
-3895

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT - NULLIF ( COUNT( * ), + 51 )
----
-1

skipif mysql # not compatible
query I rowsort label-6800
SELECT - NULLIF ( COUNT ( * ), + 51 )
----
-1

query I rowsort
SELECT + 7 * + 50 AS col0
----
350

onlyif mysql # DIV for integer division: 
query I rowsort label-6802
SELECT DISTINCT 19 * - 2 DIV - 53 * + + NULLIF ( - 3, - 17 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT 19 * - 2 / - 53 * + + NULLIF ( - 3, - 17 ) AS col2
----
0

query I rowsort
SELECT ALL 95 * 35 AS col2
----
3325

query II rowsort
SELECT ALL 53 + + 6 AS col1, 41 + + 2 + + 2
----
59
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6805
SELECT - CAST( + 31 AS SIGNED ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-6805
SELECT - CAST ( + 31 AS INTEGER ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT + COUNT( * ) * - + 6 * COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-6806
SELECT + COUNT ( * ) * - + 6 * COUNT ( * ) col2
----
-6

query II rowsort
SELECT DISTINCT + 15 col2, - 45 AS col2
----
15
-45

query I rowsort
SELECT - NULLIF ( - ( 67 ), + - 68 ) * 19 AS col0
----
1273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6809
SELECT ALL 97 DIV 99 DIV 3 * MIN( DISTINCT + 15 ) + 63 + - 38
----
25

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL 97 / 99 / 3 * MIN ( DISTINCT + 15 ) + 63 + - 38
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6810
SELECT + CAST( + MIN( ( + 29 ) ) AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-6810
SELECT + CAST ( + MIN ( ( + 29 ) ) AS INTEGER ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT ALL 3 DIV + 19 - - 82 * 73
----
5986

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL 3 / + 19 - - 82 * 73
----
5986

query I rowsort
SELECT + 93 - - 19
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-6813
SELECT + 17, + COALESCE ( - + 30, + 78 + COUNT( * ) ) col0
----
17
-30

skipif mysql # not compatible
query II rowsort label-6813
SELECT + 17, + COALESCE ( - + 30, + 78 + COUNT ( * ) ) col0
----
17
-30

query I rowsort
SELECT - 67 * + CASE + 60 WHEN + 88 THEN + + 65 END / + - 10 + - 19 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6815
SELECT ALL + 26 * + ( + + COUNT( DISTINCT 39 ) ) + 13 DIV 63 * - COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL + 26 * + ( + + COUNT ( DISTINCT 39 ) ) + 13 / 63 * - COUNT ( * ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-6816
SELECT DISTINCT + 18 DIV + - 38 * 49 + 82 - 11 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT + 18 / + - 38 * 49 + 82 - 11 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT DISTINCT 85 * + - COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT 85 * + - COUNT ( * ) AS col0
----
-85

query I rowsort
SELECT - + 71 * - CASE 50 WHEN + - 63 THEN 97 END AS col1
----
NULL

query I rowsort
SELECT ALL + - 4 * + - 78
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT - - 42 * + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT - - 42 * + COUNT ( * )
----
42

query II rowsort
SELECT ALL - - 25 col1, + 48 col2
----
25
48

query I rowsort
SELECT ALL - ( + + ( + 2 ) ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6823
SELECT - NULLIF ( - 42, - CAST( NULL AS SIGNED ) ) DIV + 20 * COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-6823
SELECT - NULLIF ( - 42, - CAST ( NULL AS INTEGER ) ) / + 20 * COUNT ( * ) col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6824
SELECT - 69 * ( + COUNT( 78 ) ) AS col0, CASE - 31 WHEN + ( 60 ) THEN - 3 + - 35 ELSE 68 END
----
-69
68

skipif mysql # not compatible
query II rowsort label-6824
SELECT - 69 * ( + COUNT ( 78 ) ) AS col0, CASE - 31 WHEN + ( 60 ) THEN - 3 + - 35 ELSE 68 END
----
-69
68

query I rowsort
SELECT - 83 * 9 AS col0
----
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL - - CASE - 0 WHEN - + 75 - - 93 THEN - - MAX( ALL - + 36 ) WHEN - - 57 THEN + - MIN( - 36 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL - - CASE - 0 WHEN - + 75 - - 93 THEN - - MAX ( ALL - + 36 ) WHEN - - 57 THEN + - MIN ( - 36 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6827
SELECT COUNT( ALL 67 ) / - - CASE 45 WHEN - 56 * CASE CASE + 53 WHEN - 83 * + NULLIF ( 37, + - 96 * - 87 * - + 43 ) * - 65 * ( 69 ) + 1 THEN - + 92 - COALESCE ( 12, - 49 * - + 47 ) ELSE + + 64 * ( - 87 ) END WHEN 21 THEN NULL WHEN 45 THEN NULL WHEN 91 THEN NULL ELSE - 47 END / - 32 THEN NULL WHEN 8 * MAX( NULLIF ( NULLIF ( 92, - 84 * 47 ), - 53 ) ) THEN COUNT( + 19 ) + - COUNT( * ) * + 75 END * ( + 7 + - COUNT( * ) * + NULLIF ( 34, - 94 + AVG ( 27 + CASE 27 + 74 * - 80 WHEN - CAST( - 14 AS SIGNED ) THEN + 64 END ) * 39 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT COUNT ( ALL 67 ) / - - CASE 45 WHEN - 56 * CASE CASE + 53 WHEN - 83 * + NULLIF ( 37, + - 96 * - 87 * - + 43 ) * - 65 * ( 69 ) + 1 THEN - + 92 - COALESCE ( 12, - 49 * - + 47 ) ELSE + + 64 * ( - 87 ) END WHEN 21 THEN NULL WHEN 45 THEN NULL WHEN 91 THEN NULL ELSE - 47 END / - 32 THEN NULL WHEN 8 * MAX ( NULLIF ( NULLIF ( 92, - 84 * 47 ), - 53 ) ) THEN COUNT ( + 19 ) + - COUNT ( * ) * + 75 END * ( + 7 + - COUNT ( * ) * + NULLIF ( 34, - 94 + AVG ( 27 + CASE 27 + 74 * - 80 WHEN - CAST ( - 14 AS INTEGER ) THEN + 64 END ) * 39 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6828
SELECT ALL - 50 * + CAST( NULL AS DECIMAL ), - 6 * - - 77 AS col2
----
NULL
-462

skipif mysql # not compatible
query II rowsort label-6828
SELECT ALL - 50 * + CAST ( NULL AS REAL ), - 6 * - - 77 AS col2
----
NULL
-462

query I rowsort
SELECT + 49 * - + 38 * 88 AS col0
----
-163856

query I rowsort
SELECT ALL + 59 + 30 AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-6831
SELECT DISTINCT - 2, - 69 * - AVG ( 90 ) + COUNT( * ) + + 53 * - CASE - + 17 WHEN - 16 + - - 23 THEN - 51 END AS col2
----
-2
NULL

skipif mysql # not compatible
query II rowsort label-6831
SELECT DISTINCT - 2, - 69 * - AVG ( 90 ) + COUNT ( * ) + + 53 * - CASE - + 17 WHEN - 16 + - - 23 THEN - 51 END AS col2
----
-2
NULL

query I rowsort
SELECT DISTINCT 98 * 99 col0
----
9702

onlyif mysql # DIV for integer division: 
query I rowsort label-6833
SELECT DISTINCT + 31 + - - ( - 60 ) DIV - 29
----
33

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT + 31 + - - ( - 60 ) / - 29
----
33

query II rowsort
SELECT 16 + 22 AS col1, ( + 4 ) * + + 65 + - 33 + + NULLIF ( 59, - + 6 )
----
38
286

query II rowsort
SELECT ALL + 16 + + - 95, 34 col1
----
-79
34

query I rowsort
SELECT 32 + - 46 + + 82
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6837
SELECT ALL 78 + - COUNT( * ) * + 6 DIV + 15 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL 78 + - COUNT ( * ) * + 6 / + 15 AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6838
SELECT ALL - ( - 13 ) + 32 DIV + COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - ( - 13 ) + 32 / + COUNT ( * ) AS col2
----
45

query I rowsort
SELECT ALL 71 + + + 17
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT DISTINCT MIN( - + 46 ) * + CASE - COALESCE ( - + 94, - + 62 ) WHEN 37 THEN NULL WHEN + 47 * - COUNT( * ) + - ( ( + COUNT( * ) ) ) / + + 31 + - 40 THEN 34 + - 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT MIN ( - + 46 ) * + CASE - COALESCE ( - + 94, - + 62 ) WHEN 37 THEN NULL WHEN + 47 * - COUNT ( * ) + - ( ( + COUNT ( * ) ) ) / + + 31 + - 40 THEN 34 + - 40 ELSE NULL END
----
NULL

query I rowsort
SELECT 86 + + 77 AS col2
----
163

query I rowsort
SELECT ALL 12 - + 69 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT COUNT( ALL - - 65 ) + 19 * 53 AS col0
----
1008

skipif mysql # not compatible
query I rowsort label-6843
SELECT COUNT ( ALL - - 65 ) + 19 * 53 AS col0
----
1008

query II rowsort
SELECT ALL 5 * + 24 AS col0, - 82 AS col1
----
120
-82

query I rowsort
SELECT 11 - + - 42 + - - 16 * - - 93
----
1541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6846
SELECT CASE - ( - 52 ) WHEN - NULLIF ( - + 46, ( - 95 ) ) THEN 64 * + 62 - + 58 DIV + 50 * - MAX( DISTINCT - 66 ) + - 66 ELSE - MIN( + - 28 ) END + - - 23
----
51

skipif mysql # not compatible
query I rowsort label-6846
SELECT CASE - ( - 52 ) WHEN - NULLIF ( - + 46, ( - 95 ) ) THEN 64 * + 62 - + 58 / + 50 * - MAX ( DISTINCT - 66 ) + - 66 ELSE - MIN ( + - 28 ) END + - - 23
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ( - ( COUNT( * ) ) ) * + 92
----
-92

skipif mysql # not compatible
query I rowsort label-6847
SELECT ( - ( COUNT ( * ) ) ) * + 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT 82 * - 0 * - 50 * - COALESCE ( - COALESCE ( 97, + COUNT( * ) ), 34 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6848
SELECT 82 * - 0 * - 50 * - COALESCE ( - COALESCE ( 97, + COUNT ( * ) ), 34 ) AS col0
----
0

query I rowsort
SELECT 40 + - - 22 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6850
SELECT + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6850
SELECT + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT + 67 * + - NULLIF ( + CASE COUNT( + 52 ) WHEN - 70 * - 41 THEN + 12 * CASE - 21 WHEN - 7 + 19 THEN NULL WHEN + 24 THEN - 73 / - - 65 * - 32 * - 45 * - + AVG ( - 82 ) END * 77 + + + 99 + + COUNT( * ) + - 5 + - - 55 + + - 92 * + - 91 WHEN - 45 THEN - 71 ELSE NULL END, + 98 ) + CASE + 39 + COUNT( + 43 ) * 55 WHEN COUNT( * ) - 13 THEN COUNT( * ) * 5 + 25 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6851
SELECT + 67 * + - NULLIF ( + CASE COUNT ( + 52 ) WHEN - 70 * - 41 THEN + 12 * CASE - 21 WHEN - 7 + 19 THEN NULL WHEN + 24 THEN - 73 / - - 65 * - 32 * - 45 * - + AVG ( - 82 ) END * 77 + + + 99 + + COUNT ( * ) + - 5 + - - 55 + + - 92 * + - 91 WHEN - 45 THEN - 71 ELSE NULL END, + 98 ) + CASE + 39 + COUNT ( + 43 ) * 55 WHEN COUNT ( * ) - 13 THEN COUNT ( * ) * 5 + 25 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 68 * + 64 + + - 11 + ( - - 42 ) AS col2
----
-4321

onlyif mysql # aggregate syntax: 
query II rowsort label-6853
SELECT ALL - + COUNT( DISTINCT 83 ) AS col0, - 31 + + ( - ( - 95 ) ) col2
----
-1
64

skipif mysql # not compatible
query II rowsort label-6853
SELECT ALL - + COUNT ( DISTINCT 83 ) AS col0, - 31 + + ( - ( - 95 ) ) col2
----
-1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT + 80 * 66 * - COUNT( * ) + 87 + + - 17 + + NULLIF ( - 19, 38 * - 24 + + 93 ) * + 41 * 25 AS col0
----
-24685

skipif mysql # not compatible
query I rowsort label-6854
SELECT + 80 * 66 * - COUNT ( * ) + 87 + + - 17 + + NULLIF ( - 19, 38 * - 24 + + 93 ) * + 41 * 25 AS col0
----
-24685

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6855
SELECT ALL + 10 DIV + 58 + - COUNT( * ) + - 92
----
-93

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + 10 / + 58 + - COUNT ( * ) + - 92
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL - COUNT( * ) * 10 + - + 48 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL - COUNT ( * ) * 10 + - + 48 AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6857
SELECT + 33 DIV + COUNT( * ), + COUNT( * ) AS col1
----
33
1

skipif mysql # not compatible
query II rowsort label-6857
SELECT + 33 / + COUNT ( * ), + COUNT ( * ) AS col1
----
33
1

onlyif mysql # aggregate syntax: 
query III rowsort label-6858
SELECT ALL ( 36 ) + + 40 - + COUNT( * ) + - 59 AS col0, + 98 + - 39 + - + COUNT( * ) AS col0, COUNT( DISTINCT + 63 ) AS col2
----
16
58
1

skipif mysql # not compatible
query III rowsort label-6858
SELECT ALL ( 36 ) + + 40 - + COUNT ( * ) + - 59 AS col0, + 98 + - 39 + - + COUNT ( * ) AS col0, COUNT ( DISTINCT + 63 ) AS col2
----
16
58
1

query I rowsort
SELECT - 56 + - + 49
----
-105

query I rowsort
SELECT ALL + 2 + + 6 AS col1
----
8

query I rowsort
SELECT - 93 * - 16 + + 25 AS col1
----
1513

query I rowsort
SELECT ALL - + 84 + + 44 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT NULLIF ( + + COUNT( * ), 60 ) * - + 62 * - 41 AS col0
----
2542

skipif mysql # not compatible
query I rowsort label-6863
SELECT NULLIF ( + + COUNT ( * ), 60 ) * - + 62 * - 41 AS col0
----
2542

query II rowsort
SELECT - 73 AS col2, + 53 + 56 + + - 21 AS col1
----
-73
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT ALL - 57 DIV + - 59
----
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL - 57 / + - 59
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT DISTINCT - 39 + + 34 + + - NULLIF ( + 91, + 99 ) + - + COUNT( * ) + - - COUNT( * ) * 14 AS col2, - 99 + - MAX( DISTINCT + - 58 ) + 91 * - 32 AS col0
----
-83
-2953

skipif mysql # not compatible
query II rowsort label-6866
SELECT DISTINCT - 39 + + 34 + + - NULLIF ( + 91, + 99 ) + - + COUNT ( * ) + - - COUNT ( * ) * 14 AS col2, - 99 + - MAX ( DISTINCT + - 58 ) + 91 * - 32 AS col0
----
-83
-2953

query I rowsort
SELECT ALL + 85 + - 62 - + 34 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-6868
SELECT 32, COUNT( * ) AS col2
----
32
1

skipif mysql # not compatible
query II rowsort label-6868
SELECT 32, COUNT ( * ) AS col2
----
32
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6869
SELECT ALL COUNT( * ) * - CAST( + 3 AS SIGNED ) AS col2, - 22 col2
----
-3
-22

skipif mysql # not compatible
query II rowsort label-6869
SELECT ALL COUNT ( * ) * - CAST ( + 3 AS INTEGER ) AS col2, - 22 col2
----
-3
-22

query I rowsort
SELECT ALL + 85 - 74 * - 68 AS col0
----
5117

query I rowsort
SELECT ALL - 22 - + + 34
----
-56

query II rowsort
SELECT 21, + 79 * - 71 AS col2
----
21
-5609

query II rowsort
SELECT - 1 col1, - 10 AS col2
----
-1
-10

query I rowsort
SELECT 66 * - - 67
----
4422

onlyif mysql # DIV for integer division: 
query I rowsort label-6875
SELECT 2 * 35 DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6875
SELECT 2 * 35 / + 72 AS col2
----
0

query II rowsort
SELECT ALL 57, + 75 * - - 98 + 22 AS col1
----
57
7372

query II rowsort
SELECT 70 AS col0, 97
----
70
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT DISTINCT - 68 * + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT - 68 * + COUNT ( * )
----
-68

query I rowsort
SELECT ALL 58 - - 31
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT 92 * + 74 * 45 * + 91 * + COUNT( * ) col2
----
27878760

skipif mysql # not compatible
query I rowsort label-6880
SELECT 92 * + 74 * 45 * + 91 * + COUNT ( * ) col2
----
27878760

onlyif mysql # aggregate syntax: 
query II rowsort label-6881
SELECT ALL COUNT( * ), - 32 AS col0
----
1
-32

skipif mysql # not compatible
query II rowsort label-6881
SELECT ALL COUNT ( * ), - 32 AS col0
----
1
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6882
SELECT ALL CASE + 12 WHEN - - 38 + 92 + 90 THEN NULL WHEN - - 18 THEN NULL ELSE + + ( - - 52 ) END AS col1, CAST( NULL AS DECIMAL ) AS col0
----
52
NULL

skipif mysql # not compatible
query II rowsort label-6882
SELECT ALL CASE + 12 WHEN - - 38 + 92 + 90 THEN NULL WHEN - - 18 THEN NULL ELSE + + ( - - 52 ) END AS col1, CAST ( NULL AS REAL ) AS col0
----
52
NULL

query I rowsort
SELECT ALL 46 * + 13
----
598

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT - - 44 / CASE + - 10 WHEN + - COUNT( * ) THEN - ( + 21 ) + - 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6884
SELECT - - 44 / CASE + - 10 WHEN + - COUNT ( * ) THEN - ( + 21 ) + - 91 END
----
NULL

query I rowsort
SELECT + + 38 + + - 0 AS col0
----
38

query II rowsort
SELECT + + 9, - 2 col2
----
9
-2

query I rowsort
SELECT ALL + + CASE - + 96 WHEN - - AVG ( DISTINCT 6 ) THEN 84 + 49 + - 51 WHEN 36 * + 10 * AVG ( + 7 ) THEN 25 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT ( + ( - 41 ) ) * - 36 * - - 75 * + + 97 + + - ( 20 ) AS col2
----
10737880

query I rowsort
SELECT ALL + + 7 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6890
SELECT + CASE + + 33 WHEN 7 + - 7 - 30 * + CAST( - COUNT( * ) AS DECIMAL ) * - - 86 + - + 13 THEN - COALESCE ( + MAX( + CAST( NULL AS SIGNED ) ), + + MAX( + 19 ), COUNT( * ) ) END * 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT + CASE + + 33 WHEN 7 + - 7 - 30 * + CAST ( - COUNT ( * ) AS REAL ) * - - 86 + - + 13 THEN - COALESCE ( + MAX ( + CAST ( NULL AS INTEGER ) ), + + MAX ( + 19 ), COUNT ( * ) ) END * 86 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6891
SELECT DISTINCT - + 20 * - - 58 * + 68 * - 52 * - 49 + - NULLIF ( + + 95, COUNT( * ) ), + CAST( COUNT( * ) AS SIGNED ) + + COUNT( 89 ) * 43 col2
----
-200986335
44

skipif mysql # not compatible
query II rowsort label-6891
SELECT DISTINCT - + 20 * - - 58 * + 68 * - 52 * - 49 + - NULLIF ( + + 95, COUNT ( * ) ), + CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( 89 ) * 43 col2
----
-200986335
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT DISTINCT - + CAST( - - NULLIF ( + - NULLIF ( + + CAST( - 89 AS SIGNED ), 57 + + - COALESCE ( - 53, - 82 * + 43, - 7 * - 4 + - + COUNT( * ), - - 14 ) * + 82 ), - 91 * + + 65 * 86 + - 54 ) AS SIGNED ) * + 74 + - - 25 + - CASE - + 8 WHEN - COUNT( * ) * + 48 + 74 THEN - ( + - 20 ) + - 50 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT - + CAST ( - - NULLIF ( + - NULLIF ( + + CAST ( - 89 AS INTEGER ), 57 + + - COALESCE ( - 53, - 82 * + 43, - 7 * - 4 + - + COUNT ( * ), - - 14 ) * + 82 ), - 91 * + + 65 * 86 + - 54 ) AS INTEGER ) * + 74 + - - 25 + - CASE - + 8 WHEN - COUNT ( * ) * + 48 + 74 THEN - ( + - 20 ) + - 50 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6893
SELECT ALL + 65 * + - 67 + + 12, + MIN( DISTINCT + ( + + 63 ) ) col2
----
-4343
63

skipif mysql # not compatible
query II rowsort label-6893
SELECT ALL + 65 * + - 67 + + 12, + MIN ( DISTINCT + ( + + 63 ) ) col2
----
-4343
63

query I rowsort
SELECT + + 37 * 90 col2
----
3330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6895
SELECT DISTINCT + 51 * - COALESCE ( - 70, COUNT( * ) + + MIN( 85 ) ) + - + COUNT( * ) * 24 DIV - 53
----
3570

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT + 51 * - COALESCE ( - 70, COUNT ( * ) + + MIN ( 85 ) ) + - + COUNT ( * ) * 24 / - 53
----
3570

onlyif mysql # aggregate syntax: 
query II rowsort label-6896
SELECT - ( + COUNT( ALL 52 ) ) AS col2, NULLIF ( ( 54 ), 54 + - 37 ) AS col0
----
-1
54

skipif mysql # not compatible
query II rowsort label-6896
SELECT - ( + COUNT ( ALL 52 ) ) AS col2, NULLIF ( ( 54 ), 54 + - 37 ) AS col0
----
-1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT + + COUNT( DISTINCT - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-6897
SELECT + + COUNT ( DISTINCT - 11 )
----
1

query II rowsort
SELECT + 60, - 33 AS col0
----
60
-33

query I rowsort
SELECT + + 76 * + 11 * + 30
----
25080

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT MAX( DISTINCT 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-6900
SELECT MAX ( DISTINCT 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT ALL COUNT( * ) * - 16 - - + 70
----
54

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL COUNT ( * ) * - 16 - - + 70
----
54

query I rowsort
SELECT - 13 * - 20 * - 65
----
-16900

query I rowsort
SELECT ALL 36 - 94 + - - 2 * - - 17 * 5 AS col2
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6904
SELECT + COALESCE ( - - 87, + CAST( NULL AS SIGNED ), + ( - 76 ) * + CAST( NULL AS SIGNED ) + + + 54 - - + COUNT( * ), + - 88 * 67 ) + - + 80 - + 9 * + 56 AS col0
----
-497

skipif mysql # not compatible
query I rowsort label-6904
SELECT + COALESCE ( - - 87, + CAST ( NULL AS INTEGER ), + ( - 76 ) * + CAST ( NULL AS INTEGER ) + + + 54 - - + COUNT ( * ), + - 88 * 67 ) + - + 80 - + 9 * + 56 AS col0
----
-497

query I rowsort
SELECT + 77 * + 43
----
3311

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6906
SELECT - CASE + 54 WHEN + - ( ( + 53 ) ) THEN - 35 / ( - CAST( NULL AS DECIMAL ) ) END * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT - CASE + 54 WHEN + - ( ( + 53 ) ) THEN - 35 / ( - CAST ( NULL AS REAL ) ) END * + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT + COUNT( ALL - - 29 ) + 61 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6907
SELECT + COUNT ( ALL - - 29 ) + 61 AS col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6908
SELECT - 0 DIV - + 33
----
0

skipif mysql # not compatible
query I rowsort label-6908
SELECT - 0 / - + 33
----
0

query I rowsort
SELECT ALL NULLIF ( - + 41, - - 61 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6910
SELECT - 70 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT - 70 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 85, + + 88 + - + 35 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT - CASE - + COUNT( * ) WHEN 9 THEN + 19 END / + 30 + - 56 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6912
SELECT - CASE - + COUNT ( * ) WHEN 9 THEN + 19 END / + 30 + - 56 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT - 23 + + + 25 + + ( 93 ) * + - COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6913
SELECT - 23 + + + 25 + + ( 93 ) * + - COUNT ( * ) AS col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6914
SELECT ALL CAST( - - 64 AS SIGNED ), + 18 AS col0
----
64
18

skipif mysql # not compatible
query II rowsort label-6914
SELECT ALL CAST ( - - 64 AS INTEGER ), + 18 AS col0
----
64
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6915
SELECT - 16 + - 89 - + CASE 11 WHEN + - 76 * - - 34 + - - COUNT( * ) THEN NULL WHEN + MAX( ALL + CASE - 31 WHEN - 65 * - CAST( NULL AS SIGNED ) THEN NULL WHEN - ( - ( 65 ) ) THEN + CAST( NULL AS SIGNED ) * 11 + - 99 + - 75 WHEN + 6 * - 39 THEN NULL END ) * 88 * 83 / + 47 THEN 77 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT - 16 + - 89 - + CASE 11 WHEN + - 76 * - - 34 + - - COUNT ( * ) THEN NULL WHEN + MAX ( ALL + CASE - 31 WHEN - 65 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN - ( - ( 65 ) ) THEN + CAST ( NULL AS INTEGER ) * 11 + - 99 + - 75 WHEN + 6 * - 39 THEN NULL END ) * 88 * 83 / + 47 THEN 77 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT - - 15 * 8 + + COUNT( * ) * + 58 AS col1
----
178

skipif mysql # not compatible
query I rowsort label-6916
SELECT - - 15 * 8 + + COUNT ( * ) * + 58 AS col1
----
178

query I rowsort
SELECT - - 9 + 93
----
102

query I rowsort
SELECT - 22 * + + 92
----
-2024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT ALL - + CAST( - 97 AS SIGNED ) + - - 99 col1
----
196

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL - + CAST ( - 97 AS INTEGER ) + - - 99 col1
----
196

query I rowsort
SELECT ALL + + 22 + 0 AS col0
----
22

query I rowsort
SELECT - 79 * + 46
----
-3634

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6922
SELECT ALL + - CAST( + 57 AS SIGNED ) DIV - 44 + 54 * + - 88 AS col2
----
-4751

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL + - CAST ( + 57 AS INTEGER ) / - 44 + 54 * + - 88 AS col2
----
-4751

query I rowsort
SELECT NULLIF ( - + 90, + 17 ) AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6924
SELECT DISTINCT + - 54 DIV - 23 + 97 col2
----
99

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT + - 54 / - 23 + 97 col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6925
SELECT + - 66 DIV - 18 + ( - ( - + 31 ) )
----
34

skipif mysql # not compatible
query I rowsort label-6925
SELECT + - 66 / - 18 + ( - ( - + 31 ) )
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6926
SELECT DISTINCT + + 67 DIV CAST( - - ( + 3 ) AS SIGNED ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT + + 67 / CAST ( - - ( + 3 ) AS INTEGER ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT + + COUNT( * ) + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6927
SELECT + + COUNT ( * ) + 13 AS col2
----
14

query I rowsort
SELECT ALL 21 * - 54 * + 83
----
-94122

query I rowsort
SELECT - 21 * 59 + + 51
----
-1188

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT + 9 DIV + - 87 - - 5
----
5

skipif mysql # not compatible
query I rowsort label-6930
SELECT + 9 / + - 87 - - 5
----
5

query I rowsort
SELECT + - 10 * + 58 + - 4 + - 38
----
-622

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ALL + ( - COALESCE ( - + 61, - - ( + - COUNT( * ) ) ) ) * + COUNT( * ) * + 52 col2
----
3172

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL + ( - COALESCE ( - + 61, - - ( + - COUNT ( * ) ) ) ) * + COUNT ( * ) * + 52 col2
----
3172

query I rowsort
SELECT + 54 + 78 AS col0
----
132

query I rowsort
SELECT DISTINCT 60 * + 45
----
2700

onlyif mysql # aggregate syntax: 
query II rowsort label-6935
SELECT + ( + - 7 ) + 15 AS col1, SUM( ALL + ( 27 ) )
----
8
27

skipif mysql # not compatible
query II rowsort label-6935
SELECT + ( + - 7 ) + 15 AS col1, SUM ( ALL + ( 27 ) )
----
8
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6936
SELECT CASE - 1 WHEN 90 + + 90 THEN NULL WHEN - + ( - + 51 ) + CAST( NULL AS SIGNED ) THEN + ( + 33 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT CASE - 1 WHEN 90 + + 90 THEN NULL WHEN - + ( - + 51 ) + CAST ( NULL AS INTEGER ) THEN + ( + 33 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 18 * 98
----
1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6938
SELECT - 37 * CAST( NULL AS SIGNED ) + - ( - - 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6938
SELECT - 37 * CAST ( NULL AS INTEGER ) + - ( - - 54 ) AS col0
----
NULL

query II rowsort
SELECT - 59 * - 82 * - 33, + 37 AS col1
----
-159654
37

query I rowsort
SELECT ALL 82 * 78 AS col2
----
6396

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL CASE + 55 WHEN 66 * + + COUNT( * ) + - - 23 + 61 + 99 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL CASE + 55 WHEN 66 * + + COUNT ( * ) + - - 23 + 61 + 99 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6942
SELECT - CAST( - 38 AS SIGNED ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-6942
SELECT - CAST ( - 38 AS INTEGER ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6943
SELECT ALL 0, + COUNT( ALL 67 ) * - + 18 AS col2
----
0
-18

skipif mysql # not compatible
query II rowsort label-6943
SELECT ALL 0, + COUNT ( ALL 67 ) * - + 18 AS col2
----
0
-18

query I rowsort
SELECT DISTINCT + 4 * - 20 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT ALL + 96 * + - COUNT( 73 ) * - 61 AS col2
----
5856

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL + 96 * + - COUNT ( 73 ) * - 61 AS col2
----
5856

query I rowsort
SELECT ALL 46 * 70 * + 59 AS col2
----
189980

query I rowsort
SELECT ALL - 32 + - + 22 col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6948
SELECT 21 * - + 95 * - 54 AS col2, - 57 + 39 + - 26 * - + 97 + + - CAST( NULL AS SIGNED ) * AVG ( DISTINCT 57 )
----
107730
NULL

skipif mysql # not compatible
query II rowsort label-6948
SELECT 21 * - + 95 * - 54 AS col2, - 57 + 39 + - 26 * - + 97 + + - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT 57 )
----
107730
NULL

query I rowsort
SELECT DISTINCT + 16 + 68 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT ALL - COUNT( + 4 ) + + 43 + - + 53
----
-11

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL - COUNT ( + 4 ) + + 43 + - + 53
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT 26 * + ( + - COUNT( * ) ) + - 70
----
-96

skipif mysql # not compatible
query I rowsort label-6951
SELECT 26 * + ( + - COUNT ( * ) ) + - 70
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT ALL + 67 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL + 67 / - 73
----
0

query I rowsort
SELECT DISTINCT - 55 + 38 + 35 + + 63 + 46 * 27 + - ( + 71 )
----
1252

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT ALL 47 + + 0 DIV + 22 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL 47 + + 0 / + 22 AS col1
----
47

query I rowsort
SELECT - + ( 1 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT - 75 + + 66 + - COUNT( * ) * + 53
----
-62

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - 75 + + 66 + - COUNT ( * ) * + 53
----
-62

query I rowsort
SELECT ALL + 17 + 98
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT ALL COALESCE ( - + 53, COUNT( * ) )
----
-53

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL COALESCE ( - + 53, COUNT ( * ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT + COUNT( * ) + - 81
----
-80

skipif mysql # not compatible
query I rowsort label-6959
SELECT + COUNT ( * ) + - 81
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6960
SELECT CAST( - ( - 45 ) AS SIGNED ) * + - 70
----
-3150

skipif mysql # not compatible
query I rowsort label-6960
SELECT CAST ( - ( - 45 ) AS INTEGER ) * + - 70
----
-3150

query I rowsort
SELECT ALL + 81 - 73 - + 15
----
-7

query I rowsort
SELECT 74 + + 15 * - + 52 AS col1
----
-706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT - 49 * + + ( + - 31 ) * + + 57 - + CAST( + + 18 AS SIGNED )
----
86565

skipif mysql # not compatible
query I rowsort label-6963
SELECT - 49 * + + ( + - 31 ) * + + 57 - + CAST ( + + 18 AS INTEGER )
----
86565

query I rowsort
SELECT - 19 * + 84 + + 70
----
-1526

query II rowsort
SELECT ALL - + 33 AS col2, ( 86 )
----
-33
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6966
SELECT + NULLIF ( - + SUM( - 31 ), 38 ) * ( + 34 ) * - - COUNT( DISTINCT - ( - 9 ) ) * + 6 * 63 col2, + COUNT( * ) * 53
----
398412
53

skipif mysql # not compatible
query II rowsort label-6966
SELECT + NULLIF ( - + SUM ( - 31 ), 38 ) * ( + 34 ) * - - COUNT ( DISTINCT - ( - 9 ) ) * + 6 * 63 col2, + COUNT ( * ) * 53
----
398412
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6967
SELECT ALL 49 DIV COALESCE ( 13, - 52 ) * - - 32 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL 49 / COALESCE ( 13, - 52 ) * - - 32 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT ALL 7 - - 25 * + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL 7 - - 25 * + COUNT ( * ) AS col2
----
32

query II rowsort
SELECT ALL - 6, - 60 AS col2
----
-6
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT COUNT( DISTINCT - CASE - ( + - 29 ) WHEN - 16 THEN - + 13 * 2 * + + 51 END ) + - 11 + 61 * + 6 * 63 AS col1
----
23047

skipif mysql # not compatible
query I rowsort label-6970
SELECT COUNT ( DISTINCT - CASE - ( + - 29 ) WHEN - 16 THEN - + 13 * 2 * + + 51 END ) + - 11 + 61 * + 6 * 63 AS col1
----
23047

onlyif mysql # DIV for integer division: 
query I rowsort label-6971
SELECT ALL + 35 DIV + + 79
----
0

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL + 35 / + + 79
----
0

query I rowsort
SELECT 51 * 96 * 70
----
342720

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT ALL + 26 DIV - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL + 26 / - 69 AS col1
----
0

query I rowsort
SELECT + 46 * 99 - - COALESCE ( - + 71, - ( 55 ) + ( + 42 ) ) * - + 6 * 97 AS col0
----
45876

query II rowsort
SELECT DISTINCT - 37, 35 AS col1
----
-37
35

query II rowsort
SELECT 51, 10 AS col0
----
51
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT DISTINCT + 9 * - COUNT( ALL + 83 ) col0
----
-9

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT + 9 * - COUNT ( ALL + 83 ) col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6978
SELECT ( - SUM( ALL - 20 ) ) DIV + COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6978
SELECT ( - SUM ( ALL - 20 ) ) / + COUNT ( * ) AS col0
----
20

query I rowsort
SELECT 2 - NULLIF ( + 23, + 34 * 56 * + 88 + + 31 + + 92 ) AS col1
----
-21

query I rowsort
SELECT ALL 5 * - 85 AS col1
----
-425

query I rowsort
SELECT 76 + 53 AS col2
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-6982
SELECT 85 + 56 AS col1, + COUNT( ALL + 55 ) AS col2
----
141
1

skipif mysql # not compatible
query II rowsort label-6982
SELECT 85 + 56 AS col1, + COUNT ( ALL + 55 ) AS col2
----
141
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL 99 + + SUM( ALL - - 52 )
----
151

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL 99 + + SUM ( ALL - - 52 )
----
151

query I rowsort
SELECT 91 + 59 AS col0
----
150

query I rowsort
SELECT COALESCE ( + + 68, + - 25 ) * - 25 AS col1
----
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT COUNT( * ) + + 5 * - 73
----
-364

skipif mysql # not compatible
query I rowsort label-6986
SELECT COUNT ( * ) + + 5 * - 73
----
-364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6987
SELECT DISTINCT + - 1 + + CAST( + CASE - 84 WHEN - - COUNT( * ) + - COUNT( * ) + + + MAX( ALL + - 4 ) + + COUNT( * ) THEN - + 63 ELSE - 84 * + 19 END AS SIGNED ) + 89
----
-1508

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT + - 1 + + CAST ( + CASE - 84 WHEN - - COUNT ( * ) + - COUNT ( * ) + + + MAX ( ALL + - 4 ) + + COUNT ( * ) THEN - + 63 ELSE - 84 * + 19 END AS INTEGER ) + 89
----
-1508

query I rowsort
SELECT ALL - ( - NULLIF ( + 96, 81 ) ) col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT 40 + + + COUNT( * ) + - 11 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6989
SELECT 40 + + + COUNT ( * ) + - 11 AS col1
----
30

query I rowsort
SELECT ALL - 26 + - 95
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6991
SELECT + CASE 96 WHEN - 80 * NULLIF ( + - CAST( + 54 AS SIGNED ), - NULLIF ( - - 86, + 65 ) * + 77 + - 73 * + - 46 ) + - + NULLIF ( 91, + - 10 + - - 7 * + + 59 * CAST( + 26 AS SIGNED ) + - COUNT( * ) ) * - 5 THEN NULL WHEN + 31 THEN NULL WHEN NULLIF ( + + 51, + SUM( ALL - + 65 ) ) THEN + - CAST( + 76 AS DECIMAL ) * + ( - - 82 ) + - 89 + COUNT( * ) * + 97 / ( + ( 36 ) * - 38 ) END + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT + CASE 96 WHEN - 80 * NULLIF ( + - CAST ( + 54 AS INTEGER ), - NULLIF ( - - 86, + 65 ) * + 77 + - 73 * + - 46 ) + - + NULLIF ( 91, + - 10 + - - 7 * + + 59 * CAST ( + 26 AS INTEGER ) + - COUNT ( * ) ) * - 5 THEN NULL WHEN + 31 THEN NULL WHEN NULLIF ( + + 51, + SUM ( ALL - + 65 ) ) THEN + - CAST ( + 76 AS REAL ) * + ( - - 82 ) + - 89 + COUNT ( * ) * + 97 / ( + ( 36 ) * - 38 ) END + 24 AS col1
----
NULL

query I rowsort
SELECT - 84 + 16 + 38 AS col0
----
-30

query I rowsort
SELECT DISTINCT - ( - + 88 )
----
88

query II rowsort
SELECT - + 66, ( - 88 ) AS col1
----
-66
-88

query I rowsort
SELECT 10 + - - 4 + + 6
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6996
SELECT ALL 81 - + ( - 63 ) * + + 94 DIV + + COUNT( * ) AS col2
----
6003

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL 81 - + ( - 63 ) * + + 94 / + + COUNT ( * ) AS col2
----
6003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT COUNT( * ) DIV - + 37 + - - 82 + + 59 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-6997
SELECT COUNT ( * ) / - + 37 + - - 82 + + 59 AS col2
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6998
SELECT + ( - - 63 ) * - COUNT( * ) + + 54 * - COALESCE ( COALESCE ( 14, - - SUM( DISTINCT - 93 ), + 73, - + 62 ), + 74 - 92 DIV - - 68 ), 66 AS col0
----
-819
66

skipif mysql # not compatible
query II rowsort label-6998
SELECT + ( - - 63 ) * - COUNT ( * ) + + 54 * - COALESCE ( COALESCE ( 14, - - SUM ( DISTINCT - 93 ), + 73, - + 62 ), + 74 - 92 / - - 68 ), 66 AS col0
----
-819
66

query I rowsort
SELECT ALL - ( 7 ) AS col1
----
-7

query II rowsort
SELECT DISTINCT - - 26, + 36 AS col0
----
26
36

query I rowsort
SELECT ALL - 28 * + + 23 + - 73 AS col2
----
-717

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT ALL + COUNT( + 0 ) * 68
----
68

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + COUNT ( + 0 ) * 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL - - MIN( ALL 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - - MIN ( ALL 21 ) AS col1
----
21

query II rowsort
SELECT + 74 AS col1, 10
----
74
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7005
SELECT + COUNT( * ) * - - 46 + COUNT( * ) * + + 22 + 25 AS col0, 36 + - COALESCE ( + 72, - - 45 ) AS col2
----
93
-36

skipif mysql # not compatible
query II rowsort label-7005
SELECT + COUNT ( * ) * - - 46 + COUNT ( * ) * + + 22 + 25 AS col0, 36 + - COALESCE ( + 72, - - 45 ) AS col2
----
93
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT MAX( ALL + + 21 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-7006
SELECT MAX ( ALL + + 21 ) col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT CAST( - - 15 AS SIGNED ) * + + 54 * - 74 + 35 * - COUNT( * ) + - + COALESCE ( - CAST( - NULLIF ( - 57, - - 72 * - COUNT( * ) * 72 ) AS SIGNED ), + 5 + + - COALESCE ( 44, - COUNT( * ) ) ) * - 85
----
-64820

skipif mysql # not compatible
query I rowsort label-7007
SELECT CAST ( - - 15 AS INTEGER ) * + + 54 * - 74 + 35 * - COUNT ( * ) + - + COALESCE ( - CAST ( - NULLIF ( - 57, - - 72 * - COUNT ( * ) * 72 ) AS INTEGER ), + 5 + + - COALESCE ( 44, - COUNT ( * ) ) ) * - 85
----
-64820

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT 67 + - 70 - 84 DIV + 33 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7008
SELECT 67 + - 70 - 84 / + 33 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT COUNT( * ) * + ( + 21 ) - - 86
----
107

skipif mysql # not compatible
query I rowsort label-7009
SELECT COUNT ( * ) * + ( + 21 ) - - 86
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT ALL - CAST( 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL - CAST ( 5 AS INTEGER )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7011
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col1, - CASE - 45 WHEN - - 57 THEN MIN( DISTINCT + 3 ) WHEN + - 56 THEN NULL ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7011
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col1, - CASE - 45 WHEN - - 57 THEN MIN ( DISTINCT + 3 ) WHEN + - 56 THEN NULL ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT ALL + 31 * COUNT( * ) * - COUNT( * ) * - - 38 * 83 + 15 col2
----
-97759

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL + 31 * COUNT ( * ) * - COUNT ( * ) * - - 38 * 83 + 15 col2
----
-97759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT DISTINCT + COALESCE ( - 8, - COUNT( * ) DIV 91 * - - 49 )
----
-8

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT + COALESCE ( - 8, - COUNT ( * ) / 91 * - - 49 )
----
-8

query I rowsort
SELECT - 17 + - 48 AS col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT DISTINCT - 87 + 60 DIV 18
----
-84

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT - 87 + 60 / 18
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT ALL + COALESCE ( 8, - 50, - CAST( NULL AS SIGNED ) + + - 37 ) + 63
----
71

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + COALESCE ( 8, - 50, - CAST ( NULL AS INTEGER ) + + - 37 ) + 63
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7017
SELECT DISTINCT - MAX( 11 ) DIV + 50 + + 30 * + + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT - MAX ( 11 ) / + 50 + + 30 * + + COUNT ( * ) AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7018
SELECT DISTINCT - 87 + + - 33 + - - 12 DIV - ( + 31 ) * - 66 * + 91
----
-120

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT - 87 + + - 33 + - - 12 / - ( + 31 ) * - 66 * + 91
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL + COUNT( * ) + - 4
----
-3

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL + COUNT ( * ) + - 4
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL SUM( DISTINCT + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL SUM ( DISTINCT + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT DISTINCT ( + COUNT( + 88 ) ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT ( + COUNT ( + 88 ) ) + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7022
SELECT + CASE + - 75 WHEN 42 THEN NULL WHEN - - AVG ( - 20 ) THEN NULL WHEN 76 * - - CAST( + COUNT( * ) AS SIGNED ) THEN NULL ELSE - 14 END * + - 68 * - - 15
----
14280

skipif mysql # not compatible
query I rowsort label-7022
SELECT + CASE + - 75 WHEN 42 THEN NULL WHEN - - AVG ( - 20 ) THEN NULL WHEN 76 * - - CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL ELSE - 14 END * + - 68 * - - 15
----
14280

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL SUM( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL SUM ( 73 )
----
73

query I rowsort
SELECT - COALESCE ( + 68, 16 )
----
-68

query I rowsort
SELECT ALL + 15 - - 20
----
35

query II rowsort
SELECT - + 9 * 60 col1, 32
----
-540
32

query II rowsort
SELECT + + 4 * 78 AS col1, + 85
----
312
85

query I rowsort
SELECT + - 34 - 72 AS col0
----
-106

query I rowsort
SELECT COALESCE ( + 54, - 35 * + + 36 )
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7030
SELECT ALL + - 31 - - - 63 AS col2, + CAST( NULL AS DECIMAL ) AS col0
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-7030
SELECT ALL + - 31 - - - 63 AS col2, + CAST ( NULL AS REAL ) AS col0
----
-94
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7031
SELECT DISTINCT 10 * 71 + + ( - 25 ) * + - MAX( ALL + 73 ) + + COUNT( * ) - COUNT( * ) DIV + 28 AS col0
----
2536

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT 10 * 71 + + ( - 25 ) * + - MAX ( ALL + 73 ) + + COUNT ( * ) - COUNT ( * ) / + 28 AS col0
----
2536

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT ALL COUNT( * ) - - - 10
----
-9

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL COUNT ( * ) - - - 10
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL COUNT( * ) * - 26
----
-26

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL COUNT ( * ) * - 26
----
-26

query I rowsort
SELECT + - 77 + - + 44 AS col1
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7035
SELECT - CAST( - - 31 AS SIGNED ) col2, 47 col0
----
-31
47

skipif mysql # not compatible
query II rowsort label-7035
SELECT - CAST ( - - 31 AS INTEGER ) col2, 47 col0
----
-31
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7036
SELECT - 84 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-7036
SELECT - 84 / 89
----
0

query I rowsort
SELECT + 95 * - 60 AS col0
----
-5700

query II rowsort
SELECT + 74, 90 AS col1
----
74
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT + 48 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-7039
SELECT + 48 / - 67
----
0

query I rowsort
SELECT ALL + 87 * - CASE + 63 WHEN 7 THEN - - 11 END + + AVG ( + 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ALL + CASE + 93 WHEN 44 THEN NULL WHEN 16 THEN + 63 / + 39 ELSE COUNT( * ) END col2
----
1

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL + CASE + 93 WHEN 44 THEN NULL WHEN 16 THEN + 63 / + 39 ELSE COUNT ( * ) END col2
----
1

query I rowsort
SELECT ALL 81 * 22 * ( - 82 ) + - 60 AS col0
----
-146184

query I rowsort
SELECT + ( + 3 ) AS col1
----
3

query I rowsort
SELECT - 94 * 40 AS col1
----
-3760

onlyif mysql # aggregate syntax: 
query II rowsort label-7045
SELECT + 0 * - 5 - COUNT( * ) AS col2, CASE + 95 WHEN + 10 + + + 82 + 84 THEN NULL ELSE + + 4 + + + 54 END AS col0
----
-1
58

skipif mysql # not compatible
query II rowsort label-7045
SELECT + 0 * - 5 - COUNT ( * ) AS col2, CASE + 95 WHEN + 10 + + + 82 + 84 THEN NULL ELSE + + 4 + + + 54 END AS col0
----
-1
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT + CAST( + 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-7046
SELECT + CAST ( + 49 AS INTEGER )
----
49

query I rowsort
SELECT - 6 * 27 - + ( - 37 ) col2
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT DISTINCT + COUNT( + 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT + COUNT ( + 67 ) AS col2
----
1

query I rowsort
SELECT - 58 * + 23
----
-1334

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL 24 * + COUNT( * ) + + - 11 + + 54 * - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL 24 * + COUNT ( * ) + + - 11 + + 54 * - COUNT ( * )
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-7051
SELECT COALESCE ( - ( 88 ), + 65 + 58 DIV + ( - - 28 ), - 52 ), + 10 AS col2
----
-88
10

skipif mysql # not compatible
query II rowsort label-7051
SELECT COALESCE ( - ( 88 ), + 65 + 58 / + ( - - 28 ), - 52 ), + 10 AS col2
----
-88
10

query I rowsort
SELECT ALL - 44 * + + 57 - + 95 AS col1
----
-2603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7053
SELECT COALESCE ( - CASE - 56 WHEN - - 27 + 9 + COUNT( * ) THEN NULL WHEN + 99 THEN NULL ELSE + 59 END, + CAST( SUM( 73 ) AS SIGNED ) - - - 84 + + 35 * + 31 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7053
SELECT COALESCE ( - CASE - 56 WHEN - - 27 + 9 + COUNT ( * ) THEN NULL WHEN + 99 THEN NULL ELSE + 59 END, + CAST ( SUM ( 73 ) AS INTEGER ) - - - 84 + + 35 * + 31 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT SUM( + 16 ) * 9 * - 83 - + - 50
----
-11902

skipif mysql # not compatible
query I rowsort label-7054
SELECT SUM ( + 16 ) * 9 * - 83 - + - 50
----
-11902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7055
SELECT - 79 * - ( + - 29 ) + + MIN( + - ( + + 76 ) ) - - CAST( NULL AS SIGNED ) * AVG ( - 28 ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT - 79 * - ( + - 29 ) + + MIN ( + - ( + + 76 ) ) - - CAST ( NULL AS INTEGER ) * AVG ( - 28 ) + 6
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7056
SELECT ALL - 45 * - - 70 * 67 DIV COUNT( + + 36 ) * + 29 * - NULLIF ( - 2, + 88 ) + 63 + - 30 * + COUNT( * ) - - COUNT( 33 ) + + 95 DIV ( - 34 )
----
-12240868

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - 45 * - - 70 * 67 / COUNT ( + + 36 ) * + 29 * - NULLIF ( - 2, + 88 ) + 63 + - 30 * + COUNT ( * ) - - COUNT ( 33 ) + + 95 / ( - 34 )
----
-12240868

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT 92 AS col0, COUNT( * ) AS col2
----
92
1

skipif mysql # not compatible
query II rowsort label-7057
SELECT 92 AS col0, COUNT ( * ) AS col2
----
92
1

query I rowsort
SELECT - - ( 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT - MAX( ALL + 51 ) * - + 68 * - - NULLIF ( - + MAX( DISTINCT - 15 ), + 19 ) AS col0
----
52020

skipif mysql # not compatible
query I rowsort label-7059
SELECT - MAX ( ALL + 51 ) * - + 68 * - - NULLIF ( - + MAX ( DISTINCT - 15 ), + 19 ) AS col0
----
52020

query I rowsort
SELECT DISTINCT - - 58 * - - 25 AS col1
----
1450

query I rowsort
SELECT - ( + 60 ) + - 7 + - 89
----
-156

query I rowsort
SELECT ALL - ( - 15 ) * 62 col1
----
930

query I rowsort
SELECT - 46 + + 47 + + ( + + 11 )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7064
SELECT ALL - 83 DIV - COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL - 83 / - COUNT ( * ) AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT DISTINCT CAST( + 16 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT CAST ( + 16 AS INTEGER ) AS col1
----
16

query I rowsort
SELECT - - 97 * + + 59 + 75 + 46 AS col2
----
5844

query I rowsort
SELECT ALL + 92 * - 58 * - - 54
----
-288144

query I rowsort
SELECT ALL - 33 * - 94 + + 18 + 30 AS col0
----
3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7069
SELECT - + 11 DIV + 22 * + COUNT( * ) * 64 * - 27 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7069
SELECT - + 11 / + 22 * + COUNT ( * ) * 64 * - 27 * - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7070
SELECT - - COUNT( * ) * + - 49 DIV + 5 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7070
SELECT - - COUNT ( * ) * + - 49 / + 5 AS col0
----
-9

query I rowsort
SELECT + + 73 + 75
----
148

query I rowsort
SELECT ALL 88 + - 70 + - 29 * 65
----
-1867

query I rowsort
SELECT - COALESCE ( + + 59, - 18 )
----
-59

query I rowsort
SELECT + 72 + - 25 + - 82
----
-35

query I rowsort
SELECT ALL 18 + + ( + - 96 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT ALL 30 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL 30 / 82
----
0

query I rowsort
SELECT DISTINCT 89 + + 55 + - + COALESCE ( 88, - 5 ) + + + NULLIF ( - 5, + + NULLIF ( + 41, - + 66 ) ) + 97
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL COUNT( * ) + - - 86
----
87

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL COUNT ( * ) + - - 86
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7079
SELECT ALL 83 * + - 78 * + MIN( ALL - + 49 ), 20 * - COALESCE ( + - 99, 21 DIV + + 22 + + 61 ) + - 83 AS col1
----
317226
1897

skipif mysql # not compatible
query II rowsort label-7079
SELECT ALL 83 * + - 78 * + MIN ( ALL - + 49 ), 20 * - COALESCE ( + - 99, 21 / + + 22 + + 61 ) + - 83 AS col1
----
317226
1897

query I rowsort
SELECT 92 + 94
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT ALL - SUM( - 71 )
----
71

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL - SUM ( - 71 )
----
71

query I rowsort
SELECT - 39 * 2 + 37
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT ALL - SUM( 56 ) - - + 71
----
15

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL - SUM ( 56 ) - - + 71
----
15

query I rowsort
SELECT 33 * - - 67 + 31 AS col2
----
2242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7085
SELECT ALL COUNT( * ) DIV - 18 * + - NULLIF ( 98, + 77 * + - 1 * + 67 + - 71 * + - 55 + - 25 )
----
0

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL COUNT ( * ) / - 18 * + - NULLIF ( 98, + 77 * + - 1 * + 67 + - 71 * + - 55 + - 25 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ( 19 ) + MAX( - 96 )
----
-77

skipif mysql # not compatible
query I rowsort label-7086
SELECT ( 19 ) + MAX ( - 96 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT DISTINCT 4 * + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT 4 * + + COUNT ( * )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7088
SELECT - - ( + - 59 ), ( - - CAST( 68 AS SIGNED ) ) AS col1
----
-59
68

skipif mysql # not compatible
query II rowsort label-7088
SELECT - - ( + - 59 ), ( - - CAST ( 68 AS INTEGER ) ) AS col1
----
-59
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7089
SELECT 95 DIV + 14
----
6

skipif mysql # not compatible
query I rowsort label-7089
SELECT 95 / + 14
----
6

query I rowsort
SELECT 97 - + 76 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL + - 89 + - 74 + + COUNT( * )
----
-162

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL + - 89 + - 74 + + COUNT ( * )
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT COUNT( * ) - + 56 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-7092
SELECT COUNT ( * ) - + 56 AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7093
SELECT 74 DIV - CAST( - 54 AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7093
SELECT 74 / - CAST ( - 54 AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7094
SELECT ALL - 36 + 67 / 36 * + CAST( NULL AS SIGNED ) + ( + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL - 36 + 67 / 36 * + CAST ( NULL AS INTEGER ) + ( + 55 )
----
NULL

query I rowsort
SELECT DISTINCT + 64 + + 75
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT 11 * COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7096
SELECT 11 * COUNT ( * ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT COUNT( * ) - - 80 * + 80 + COUNT( * ) AS col0
----
6402

skipif mysql # not compatible
query I rowsort label-7097
SELECT COUNT ( * ) - - 80 * + 80 + COUNT ( * ) AS col0
----
6402

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT COUNT( 63 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7098
SELECT COUNT ( 63 ) AS col0
----
1

query I rowsort
SELECT DISTINCT ( 90 ) - + 62 * - 13 AS col0
----
896

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7100
SELECT - COUNT( * ) * - + 51 + - ( + + ( - 9 ) ) + + - 0 DIV - - 88 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7100
SELECT - COUNT ( * ) * - + 51 + - ( + + ( - 9 ) ) + + - 0 / - - 88 AS col1
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT COUNT( * ) AS col2, 31 * - COALESCE ( 6, + + 54 * 62 ) AS col2
----
1
-186

skipif mysql # not compatible
query II rowsort label-7101
SELECT COUNT ( * ) AS col2, 31 * - COALESCE ( 6, + + 54 * 62 ) AS col2
----
1
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7102
SELECT DISTINCT CAST( - 68 AS SIGNED ) - - 38 - + - 87 + 9 * - 66 + - COUNT( * )
----
-538

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT CAST ( - 68 AS INTEGER ) - - 38 - + - 87 + 9 * - 66 + - COUNT ( * )
----
-538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7103
SELECT DISTINCT - CAST( - 61 AS SIGNED ) col0
----
61

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT - CAST ( - 61 AS INTEGER ) col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL - CASE - - 7 WHEN MAX( DISTINCT - + 64 ) - COUNT( * ) THEN NULL ELSE - 29 END
----
29

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL - CASE - - 7 WHEN MAX ( DISTINCT - + 64 ) - COUNT ( * ) THEN NULL ELSE - 29 END
----
29

query II rowsort
SELECT ALL - 94, 59 + + 83 AS col1
----
-94
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7106
SELECT DISTINCT CASE - 47 WHEN - + 27 THEN 12 / 89 + - 64 + + 13 - - + MIN( DISTINCT - - 48 ) * - + 51 / + - 40 + + - 99 / - 22 * 71 END * 4 * 62 / CAST( NULL AS SIGNED ) * + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT CASE - 47 WHEN - + 27 THEN 12 / 89 + - 64 + + 13 - - + MIN ( DISTINCT - - 48 ) * - + 51 / + - 40 + + - 99 / - 22 * 71 END * 4 * 62 / CAST ( NULL AS INTEGER ) * + - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT + CASE + 75 WHEN + - MAX( DISTINCT 89 ) - 91 THEN + COUNT( * ) * - 5 WHEN + + 52 THEN NULL END * - + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + CASE + 75 WHEN + - MAX ( DISTINCT 89 ) - 91 THEN + COUNT ( * ) * - 5 WHEN + + 52 THEN NULL END * - + 89 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 34 - 84
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT ( - + 15 ) * + ( ( 31 ) ) - - - MIN( DISTINCT - - 7 ) AS col0
----
-472

skipif mysql # not compatible
query I rowsort label-7109
SELECT ( - + 15 ) * + ( ( 31 ) ) - - - MIN ( DISTINCT - - 7 ) AS col0
----
-472

onlyif mysql # aggregate syntax: 
query II rowsort label-7110
SELECT - CASE COUNT( * ) WHEN 81 - 1 / - + 42 * 32 * + - 72 + + 94 + - 71 THEN + 58 + + 36 + 42 END * - 63 + + MIN( ALL - 90 ) + - 45 * + - 29 - - - 73 - - + 69 / 95 col1, - 29 AS col0
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-7110
SELECT - CASE COUNT ( * ) WHEN 81 - 1 / - + 42 * 32 * + - 72 + + 94 + - 71 THEN + 58 + + 36 + 42 END * - 63 + + MIN ( ALL - 90 ) + - 45 * + - 29 - - - 73 - - + 69 / 95 col1, - 29 AS col0
----
NULL
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7111
SELECT 30 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT 30 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT ALL - MAX( + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-7112
SELECT ALL - MAX ( + 58 )
----
-58

query I rowsort
SELECT ALL + NULLIF ( - 8, - 56 ) * + - 7
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT 63 + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-7114
SELECT 63 + COUNT ( * )
----
64

query I rowsort
SELECT ALL - ( + + 17 ) AS col0
----
-17

query I rowsort
SELECT ( 42 ) * + 33 + - NULLIF ( 54, + + 78 ) AS col2
----
1332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7117
SELECT 40 - + ( + + CAST( + + 91 AS SIGNED ) ) - - 15 * + COUNT( * ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-7117
SELECT 40 - + ( + + CAST ( + + 91 AS INTEGER ) ) - - 15 * + COUNT ( * ) AS col0
----
-36

query I rowsort
SELECT + 42 * - 82 AS col2
----
-3444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7119
SELECT ALL - - ( - CAST( + 34 AS SIGNED ) ) + - 64 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL - - ( - CAST ( + 34 AS INTEGER ) ) + - 64 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT + COUNT( * ) * + 80 - + CASE - + ( - - 34 ) WHEN + CASE 16 WHEN + 46 * + + CASE COUNT( * ) WHEN 22 + - - 33 * + + ( + SUM( ALL + 31 ) ) THEN + 96 + + 27 + + 68 + + - COUNT( * ) + + + 75 * - 87 * + + ( + 1 ) END THEN 84 WHEN - 60 + 73 THEN + 69 END THEN 52 END / 32 * + COUNT( * ) * + CASE - 66 WHEN - 23 THEN NULL WHEN - 62 THEN - 27 ELSE NULL END + + 53 * 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7120
SELECT + COUNT ( * ) * + 80 - + CASE - + ( - - 34 ) WHEN + CASE 16 WHEN + 46 * + + CASE COUNT ( * ) WHEN 22 + - - 33 * + + ( + SUM ( ALL + 31 ) ) THEN + 96 + + 27 + + 68 + + - COUNT ( * ) + + + 75 * - 87 * + + ( + 1 ) END THEN 84 WHEN - 60 + 73 THEN + 69 END THEN 52 END / 32 * + COUNT ( * ) * + CASE - 66 WHEN - 23 THEN NULL WHEN - 62 THEN - 27 ELSE NULL END + + 53 * 52 AS col1
----
NULL

query I rowsort
SELECT 89 + - 0 AS col1
----
89

onlyif mysql # aggregate syntax: 
query III rowsort label-7122
SELECT - 59 col0, - 28 - 84 AS col0, + + COUNT( * ) col2
----
-59
-112
1

skipif mysql # not compatible
query III rowsort label-7122
SELECT - 59 col0, - 28 - 84 AS col0, + + COUNT ( * ) col2
----
-59
-112
1

query I rowsort
SELECT DISTINCT + 84 + 85 + - 11 * + 90 * + 29 AS col0
----
-28541

query I rowsort
SELECT ALL 61 + + 13 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT 45 * + 48 + + - MAX( DISTINCT - 83 ) - - COALESCE ( - COUNT( * ), - + 26 ) + + + 0 AS col2
----
2242

skipif mysql # not compatible
query I rowsort label-7125
SELECT 45 * + 48 + + - MAX ( DISTINCT - 83 ) - - COALESCE ( - COUNT ( * ), - + 26 ) + + + 0 AS col2
----
2242

onlyif mysql # aggregate syntax: 
query II rowsort label-7126
SELECT ALL + 40 + + + COUNT( ALL 36 ) + + + 2 + + 37 * + COUNT( * ) AS col0, - MIN( 92 ) col0
----
80
-92

skipif mysql # not compatible
query II rowsort label-7126
SELECT ALL + 40 + + + COUNT ( ALL 36 ) + + + 2 + + 37 * + COUNT ( * ) AS col0, - MIN ( 92 ) col0
----
80
-92

query I rowsort
SELECT + + 70 + - 16 AS col2
----
54

query I rowsort
SELECT - - 96 + - - 50 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT DISTINCT SUM( DISTINCT + 60 ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT SUM ( DISTINCT + 60 ) AS col1
----
60

query I rowsort
SELECT ALL + ( 95 ) + + 7 AS col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7131
SELECT - 1 + CASE + + 49 WHEN 32 * - 96 + 13 * + 43 * - COALESCE ( - + 79, - + 27 + - - 35 + - 78 + + 75, - - ( + + COUNT( * ) ) ) THEN - 70 + + 12 ELSE NULL END + - ( + 37 ) + - 12 * - CASE 26 WHEN + COUNT( * ) THEN - - 47 + - CAST( NULL AS DECIMAL ) * - CASE - CAST( 14 AS SIGNED ) WHEN 71 / COUNT( * ) - + ( ( - COUNT( * ) ) ) - + - ( 3 ) THEN 28 * - 10 WHEN - COUNT( * ) + 91 * 94 THEN NULL ELSE 91 + - 32 END * - CAST( NULL AS DECIMAL ) WHEN - 34 * 93 THEN NULL WHEN + 84 THEN + ( COUNT( * ) ) END * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7131
SELECT - 1 + CASE + + 49 WHEN 32 * - 96 + 13 * + 43 * - COALESCE ( - + 79, - + 27 + - - 35 + - 78 + + 75, - - ( + + COUNT ( * ) ) ) THEN - 70 + + 12 ELSE NULL END + - ( + 37 ) + - 12 * - CASE 26 WHEN + COUNT ( * ) THEN - - 47 + - CAST ( NULL AS REAL ) * - CASE - CAST ( 14 AS INTEGER ) WHEN 71 / COUNT ( * ) - + ( ( - COUNT ( * ) ) ) - + - ( 3 ) THEN 28 * - 10 WHEN - COUNT ( * ) + 91 * 94 THEN NULL ELSE 91 + - 32 END * - CAST ( NULL AS REAL ) WHEN - 34 * 93 THEN NULL WHEN + 84 THEN + ( COUNT ( * ) ) END * 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT - CASE - + COUNT( * ) WHEN - ( + ( + 46 ) ) THEN + COALESCE ( + 41, 60 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT - CASE - + COUNT ( * ) WHEN - ( + ( + 46 ) ) THEN + COALESCE ( + 41, 60 ) END AS col0
----
NULL

query I rowsort
SELECT - 77 + - 11
----
-88

query I rowsort
SELECT - 54 + 48 AS col2
----
-6

query I rowsort
SELECT - 71 * + + 38 AS col1
----
-2698

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT - 83 + + + ( + COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-7136
SELECT - 83 + + + ( + COUNT ( * ) )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7137
SELECT DISTINCT COUNT( * ) DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT COUNT ( * ) / - 25
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7138
SELECT 16 AS col2, NULLIF ( - - 17, - 25 + + 25 ) * 63 DIV + + 47 * + COUNT( * ) - + 34 * - 20
----
16
702

skipif mysql # not compatible
query II rowsort label-7138
SELECT 16 AS col2, NULLIF ( - - 17, - 25 + + 25 ) * 63 / + + 47 * + COUNT ( * ) - + 34 * - 20
----
16
702

query I rowsort
SELECT ALL + 15 * + - 57 * 2 AS col2
----
-1710

query I rowsort
SELECT ALL + 42 * - ( + - 6 ) * - 77 AS col2
----
-19404

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT ( - ( COUNT( DISTINCT + 53 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7141
SELECT ( - ( COUNT ( DISTINCT + 53 ) ) ) AS col1
----
-1

query I rowsort
SELECT - 29 + + + 30
----
1

query I rowsort
SELECT DISTINCT + 70 * + - 26 AS col1
----
-1820

query I rowsort
SELECT ALL - ( + 28 ) * - 57
----
1596

query II rowsort
SELECT - 99 * - + 99 AS col1, 19 AS col1
----
9801
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT 43 * - COALESCE ( - - 42, + + 80 + - 23 - - 92 * + 89 * + + 55 - - + NULLIF ( - MIN( + 8 ), + AVG ( 13 ) ) + + 2 * 66 + - 16 * - - COALESCE ( + - COUNT( * ), + 87, + 99 + - 30 * CASE - 51 WHEN - + 37 THEN 62 WHEN - 84 + - COUNT( * ) THEN + + 96 ELSE NULL END * - 23 * - 48 ), - + NULLIF ( - 4, - + 64 + + ( - - 90 ) ) * + 37 ) + 96 * + 67 AS col0
----
4626

skipif mysql # not compatible
query I rowsort label-7146
SELECT 43 * - COALESCE ( - - 42, + + 80 + - 23 - - 92 * + 89 * + + 55 - - + NULLIF ( - MIN ( + 8 ), + AVG ( 13 ) ) + + 2 * 66 + - 16 * - - COALESCE ( + - COUNT ( * ), + 87, + 99 + - 30 * CASE - 51 WHEN - + 37 THEN 62 WHEN - 84 + - COUNT ( * ) THEN + + 96 ELSE NULL END * - 23 * - 48 ), - + NULLIF ( - 4, - + 64 + + ( - - 90 ) ) * + 37 ) + 96 * + 67 AS col0
----
4626

query II rowsort
SELECT - 93 + - 31, 14 AS col1
----
-124
14

query II rowsort
SELECT + 13, + 24 * + - 89 + - 72 col1
----
13
-2208

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7149
SELECT - CAST( NULL AS DECIMAL ) / - 2 - + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT - CAST ( NULL AS REAL ) / - 2 - + 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL + + COUNT( ALL - 42 )
----
1

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + + COUNT ( ALL - 42 )
----
1

query II rowsort
SELECT - 47 AS col2, + 79 AS col2
----
-47
79

onlyif mysql # aggregate syntax: 
query II rowsort label-7152
SELECT ALL - + COUNT( * ) * + - ( - 78 ) - 43 + + - ( - ( + 65 ) ) + - 48 * - 73 AS col2, 54
----
3448
54

skipif mysql # not compatible
query II rowsort label-7152
SELECT ALL - + COUNT ( * ) * + - ( - 78 ) - 43 + + - ( - ( + 65 ) ) + - 48 * - 73 AS col2, 54
----
3448
54

query I rowsort
SELECT DISTINCT + ( + + 84 ) AS col2
----
84

query II rowsort
SELECT DISTINCT + 96 AS col0, 39
----
96
39

query I rowsort
SELECT + 35 + + 15
----
50

query II rowsort
SELECT + 20, + 96 AS col1
----
20
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT + COUNT( * ) * 24 * - - 99 + + - ( - - 47 )
----
2329

skipif mysql # not compatible
query I rowsort label-7157
SELECT + COUNT ( * ) * 24 * - - 99 + + - ( - - 47 )
----
2329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT ALL - NULLIF ( - - 57, + 58 + - 95 * 44 / - 18 + + - ( + 96 ) ) * - CAST( NULL AS SIGNED ) + + 51 + + 67 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL - NULLIF ( - - 57, + 58 + - 95 * 44 / - 18 + + - ( + 96 ) ) * - CAST ( NULL AS INTEGER ) + + 51 + + 67 * - 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT - + 49 * + - 2 * + 63 + - COUNT( * ) + - + 13 * - 99
----
7460

skipif mysql # not compatible
query I rowsort label-7159
SELECT - + 49 * + - 2 * + 63 + - COUNT ( * ) + - + 13 * - 99
----
7460

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT - COUNT( DISTINCT - 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-7160
SELECT - COUNT ( DISTINCT - 33 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7161
SELECT DISTINCT CAST( ( + CASE AVG ( + 23 ) WHEN - 15 + - 47 THEN + AVG ( CAST( - - 87 AS SIGNED ) ) + + ( + 71 ) * + COUNT( * ) END ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT CAST ( ( + CASE AVG ( + 23 ) WHEN - 15 + - 47 THEN + AVG ( CAST ( - - 87 AS INTEGER ) ) + + ( + 71 ) * + COUNT ( * ) END ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 12 + 14 + - ( 61 )
----
-35

query I rowsort
SELECT - 95 + + 51 col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7164
SELECT ALL 7 DIV 52 col2
----
0

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL 7 / 52 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT + 13 * ( COUNT( * ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7165
SELECT + 13 * ( COUNT ( * ) ) AS col2
----
13

query I rowsort
SELECT - CASE WHEN NOT 26 NOT BETWEEN - + ( - 34 ) AND - + 2 THEN - - 51 ELSE NULL END
----
NULL

query I rowsort
SELECT + 42 - + - 38 + - 15 + + 44 * - 70
----
-3015

query I rowsort
SELECT ALL ( + 55 ) * - - 57 col1
----
3135

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT DISTINCT SUM( 83 ) * + - NULLIF ( + 59, + MAX( - 8 ) + + 28 ) AS col2, MIN( DISTINCT - + 60 ) AS col1
----
-4897
-60

skipif mysql # not compatible
query II rowsort label-7169
SELECT DISTINCT SUM ( 83 ) * + - NULLIF ( + 59, + MAX ( - 8 ) + + 28 ) AS col2, MIN ( DISTINCT - + 60 ) AS col1
----
-4897
-60

query I rowsort
SELECT + 12 * - 45
----
-540

query II rowsort
SELECT ALL ( + 27 ), + 3 + + - 16 AS col2
----
27
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7172
SELECT + 82 + 99 AS col0, + 40 * - - CAST( + 21 AS SIGNED )
----
181
840

skipif mysql # not compatible
query II rowsort label-7172
SELECT + 82 + 99 AS col0, + 40 * - - CAST ( + 21 AS INTEGER )
----
181
840

query I rowsort
SELECT - 88 - 85 + + 84 col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7174
SELECT - ( - + CAST( NULL AS SIGNED ) ) AS col2, 46
----
NULL
46

skipif mysql # not compatible
query II rowsort label-7174
SELECT - ( - + CAST ( NULL AS INTEGER ) ) AS col2, 46
----
NULL
46

query I rowsort
SELECT - 81 * - ( + + 46 ) AS col2
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL + MIN( DISTINCT - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL + MIN ( DISTINCT - 7 )
----
-7

query I rowsort
SELECT ALL - 84 * 30
----
-2520

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT DISTINCT 99 DIV - + 46 + - 60
----
-62

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT 99 / - + 46 + - 60
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7179
SELECT ALL 37 / - ( 31 ) / - 58 / - CAST( NULL AS SIGNED ) + - 43 + + NULLIF ( 14, COUNT( * ) / - COUNT( * ) ) + + ( + ( + - NULLIF ( - - 41, 51 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL 37 / - ( 31 ) / - 58 / - CAST ( NULL AS INTEGER ) + - 43 + + NULLIF ( 14, COUNT ( * ) / - COUNT ( * ) ) + + ( + ( + - NULLIF ( - - 41, 51 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT + COALESCE ( COUNT( * ), - + 76 * + + 46 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7180
SELECT + COALESCE ( COUNT ( * ), - + 76 * + + 46 ) AS col2
----
1

query I rowsort
SELECT - + 39 * 99
----
-3861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7182
SELECT ALL + CAST( + 81 AS SIGNED ) * - - 66 - - 42
----
5388

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL + CAST ( + 81 AS INTEGER ) * - - 66 - - 42
----
5388

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - MIN( + 27 ) - - - 72 + - - 30 * + 85 * 91 AS col0
----
231951

skipif mysql # not compatible
query I rowsort label-7183
SELECT - MIN ( + 27 ) - - - 72 + - - 30 * + 85 * 91 AS col0
----
231951

query I rowsort
SELECT 78 * - 50 - - - 53 * + 64 * - - 72
----
-248124

query I rowsort
SELECT - NULLIF ( - 4, - + 37 ) AS col0
----
4

query I rowsort
SELECT 49 + - + 68 AS col1
----
-19

query I rowsort
SELECT - 13 + - 51 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT ALL - COUNT( * ) + 24 * - 49
----
-1177

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL - COUNT ( * ) + 24 * - 49
----
-1177

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT DISTINCT - COALESCE ( + SUM( DISTINCT 8 ), 76, 20 )
----
-8

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - COALESCE ( + SUM ( DISTINCT 8 ), 76, 20 )
----
-8

query I rowsort
SELECT ALL 66 - + 19 + + - 8 + 56 * - + 28
----
-1529

query I rowsort
SELECT ( + ( + 17 ) ) - 50 * + 76 * + 9
----
-34183

query I rowsort
SELECT + 79 + - 6 * - 99 AS col2
----
673

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7193
SELECT - CAST( - 82 AS SIGNED ) AS col2, 78 * - 6 * - CAST( - 53 AS SIGNED ) + 0 + 28 + - 94 * + - 42
----
82
-20828

skipif mysql # not compatible
query II rowsort label-7193
SELECT - CAST ( - 82 AS INTEGER ) AS col2, 78 * - 6 * - CAST ( - 53 AS INTEGER ) + 0 + 28 + - 94 * + - 42
----
82
-20828

query I rowsort
SELECT - - COALESCE ( 93, + 76 + + 34 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + ( - COUNT( * ) ) + 33
----
32

skipif mysql # not compatible
query I rowsort label-7195
SELECT + ( - COUNT ( * ) ) + 33
----
32

query I rowsort
SELECT 85 * - + 6
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT COALESCE ( MIN( 96 ), 16 * + 46 ) + - 25 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7197
SELECT COALESCE ( MIN ( 96 ), 16 * + 46 ) + - 25 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT 95 + - ( - - CASE CASE + 61 WHEN + 1 - - ( - 54 ) THEN NULL ELSE - 38 * - - COUNT( * ) END WHEN - ( - 10 ) * - 51 + 48 THEN NULL WHEN 80 + + COUNT( * ) THEN NULL ELSE - + 4 * - ( - ( ( - 62 ) ) ) * + 71 + + 94 * + 79 + - 68 END ) * - 50 + - + 2
----
1248393

skipif mysql # not compatible
query I rowsort label-7198
SELECT 95 + - ( - - CASE CASE + 61 WHEN + 1 - - ( - 54 ) THEN NULL ELSE - 38 * - - COUNT ( * ) END WHEN - ( - 10 ) * - 51 + 48 THEN NULL WHEN 80 + + COUNT ( * ) THEN NULL ELSE - + 4 * - ( - ( ( - 62 ) ) ) * + 71 + + 94 * + 79 + - 68 END ) * - 50 + - + 2
----
1248393

query I rowsort
SELECT 34 * 78 * 75 AS col1
----
198900

query I rowsort
SELECT 4 + - 43 * + - 45 + + + 83 AS col2
----
2022

query I rowsort
SELECT 11 * + 34
----
374

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7202
SELECT DISTINCT - COUNT( * ) * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - COUNT ( * ) * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7203
SELECT 30 DIV - 35 * CAST( + CAST( - 13 AS DECIMAL ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7203
SELECT 30 / - 35 * CAST ( + CAST ( - 13 AS REAL ) AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7204
SELECT 41 AS col0, + CAST( 96 AS SIGNED ) AS col2
----
41
96

skipif mysql # not compatible
query II rowsort label-7204
SELECT 41 AS col0, + CAST ( 96 AS INTEGER ) AS col2
----
41
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7205
SELECT COUNT( * ) * ( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT COUNT ( * ) * ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT 20 DIV + 17 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7206
SELECT 20 / + 17 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7207
SELECT - 0, + 85 + COUNT( ALL + 7 ) AS col1
----
0
86

skipif mysql # not compatible
query II rowsort label-7207
SELECT - 0, + 85 + COUNT ( ALL + 7 ) AS col1
----
0
86

query II rowsort
SELECT 97, 37 col0
----
97
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT NULLIF ( COUNT( * ), - - ( - + 2 ) / - - 14 + - SUM( ALL - + 23 ) - 96 * + 30 ) + - MIN( 46 ) + COUNT( ALL + 57 )
----
-44

skipif mysql # not compatible
query I rowsort label-7209
SELECT NULLIF ( COUNT ( * ), - - ( - + 2 ) / - - 14 + - SUM ( ALL - + 23 ) - 96 * + 30 ) + - MIN ( 46 ) + COUNT ( ALL + 57 )
----
-44

query I rowsort
SELECT ALL 10 + 51 AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7211
SELECT + - 9 * + + CAST( NULL AS SIGNED ) + 7 + - 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT + - 9 * + + CAST ( NULL AS INTEGER ) + 7 + - 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL 87 + COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL 87 + COUNT ( * ) AS col1
----
88

query I rowsort
SELECT 87 * - 67 AS col1
----
-5829

onlyif mysql # aggregate syntax: 
query II rowsort label-7214
SELECT DISTINCT - 46, + 70 + 5 + - - COUNT( * ) * - - ( + 48 ) AS col0
----
-46
123

skipif mysql # not compatible
query II rowsort label-7214
SELECT DISTINCT - 46, + 70 + 5 + - - COUNT ( * ) * - - ( + 48 ) AS col0
----
-46
123

query II rowsort
SELECT ALL - - 27 AS col1, COALESCE ( + - 65, - + 2 * - 2 ) + + + 89
----
27
24

query I rowsort
SELECT DISTINCT 71 - 11 * - 99 AS col1
----
1160

onlyif mysql # aggregate syntax: 
query II rowsort label-7217
SELECT - NULLIF ( + 29, COUNT( * ) ) AS col0, - 94 + - 59 AS col1
----
-29
-153

skipif mysql # not compatible
query II rowsort label-7217
SELECT - NULLIF ( + 29, COUNT ( * ) ) AS col0, - 94 + - 59 AS col1
----
-29
-153

query I rowsort
SELECT + 19 + - 24 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7219
SELECT DISTINCT CASE + CASE 57 WHEN + 57 THEN NULL ELSE 10 END WHEN - 5 THEN + 31 WHEN - 56 * - - 80 * - COALESCE ( 87, - 21 + - MIN( DISTINCT + - 31 ) - + ( + 76 ) + - 66 / + 51 ) THEN NULL ELSE NULL END * - COALESCE ( - 92, - AVG ( ALL - 73 ) * - ( + CASE 2 WHEN - CAST( NULL AS SIGNED ) + 83 THEN - - NULLIF ( + 74, - + 74 - 82 ) WHEN - + 99 * + COALESCE ( - - 12, - + 81 * 79 * + + 32 + - 98, 41 ) THEN 47 + + COUNT( * ) WHEN 31 * + SUM( ALL + 64 ) THEN 11 * - 66 END ) * - 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT CASE + CASE 57 WHEN + 57 THEN NULL ELSE 10 END WHEN - 5 THEN + 31 WHEN - 56 * - - 80 * - COALESCE ( 87, - 21 + - MIN ( DISTINCT + - 31 ) - + ( + 76 ) + - 66 / + 51 ) THEN NULL ELSE NULL END * - COALESCE ( - 92, - AVG ( ALL - 73 ) * - ( + CASE 2 WHEN - CAST ( NULL AS INTEGER ) + 83 THEN - - NULLIF ( + 74, - + 74 - 82 ) WHEN - + 99 * + COALESCE ( - - 12, - + 81 * 79 * + + 32 + - 98, 41 ) THEN 47 + + COUNT ( * ) WHEN 31 * + SUM ( ALL + 64 ) THEN 11 * - 66 END ) * - 88 )
----
NULL

query I rowsort
SELECT 87 + + 50
----
137

query II rowsort
SELECT + 23 AS col1, - 43 AS col2
----
23
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT 30 * + MIN( - 50 ) AS col0
----
-1500

skipif mysql # not compatible
query I rowsort label-7222
SELECT 30 * + MIN ( - 50 ) AS col0
----
-1500

query II rowsort
SELECT DISTINCT 89 * + 58 col1, 60
----
5162
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT 20 * MIN( DISTINCT + ( + - 65 ) ) * + + 22 + + 75 col1
----
-28525

skipif mysql # not compatible
query I rowsort label-7224
SELECT 20 * MIN ( DISTINCT + ( + - 65 ) ) * + + 22 + + 75 col1
----
-28525

query I rowsort
SELECT 10 * 40 * + - 63 AS col0
----
-25200

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL COUNT( DISTINCT + 88 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL COUNT ( DISTINCT + 88 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT 59 * - 81 * + MIN( ALL CAST( + 82 AS SIGNED ) ) * 78 AS col0
----
-30566484

skipif mysql # not compatible
query I rowsort label-7227
SELECT 59 * - 81 * + MIN ( ALL CAST ( + 82 AS INTEGER ) ) * 78 AS col0
----
-30566484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7228
SELECT 29 - 91 + + + NULLIF ( + AVG ( CAST( NULL AS SIGNED ) ), - + 60 + + 20 + + - COUNT( * ) ) - - 44 + + - 3 + - ( + + NULLIF ( + 84, - + COALESCE ( + - 24, 19 * + COUNT( * ) ) ) ) / - - CAST( NULL AS SIGNED ) * - ( - 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7228
SELECT 29 - 91 + + + NULLIF ( + AVG ( CAST ( NULL AS INTEGER ) ), - + 60 + + 20 + + - COUNT ( * ) ) - - 44 + + - 3 + - ( + + NULLIF ( + 84, - + COALESCE ( + - 24, 19 * + COUNT ( * ) ) ) ) / - - CAST ( NULL AS INTEGER ) * - ( - 41 ) AS col0
----
NULL

query I rowsort
SELECT ALL 64 * + - 1 AS col1
----
-64

query I rowsort
SELECT 36 * - 31 * + 14 AS col1
----
-15624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7231
SELECT DISTINCT 99 + - + CAST( - 95 AS SIGNED )
----
194

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT 99 + - + CAST ( - 95 AS INTEGER )
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT 48 + 96 + + + COUNT( * ) AS col1
----
145

skipif mysql # not compatible
query I rowsort label-7232
SELECT 48 + 96 + + + COUNT ( * ) AS col1
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT ALL + 93 + + CAST( NULL AS SIGNED ) + + AVG ( + - 54 ) * - 74 * - ( 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL + 93 + + CAST ( NULL AS INTEGER ) + + AVG ( + - 54 ) * - 74 * - ( 18 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT ALL 93 + + 72 DIV + 56 - - 43
----
137

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL 93 + + 72 / + 56 - - 43
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-7235
SELECT DISTINCT 51 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT 51 / - 95 AS col1
----
0

query I rowsort
SELECT 35 * 12 AS col1
----
420

query I rowsort
SELECT 33 + 70 col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT + 92 - + 67 * + MAX( - 91 ) + - 23 AS col1
----
6166

skipif mysql # not compatible
query I rowsort label-7238
SELECT + 92 - + 67 * + MAX ( - 91 ) + - 23 AS col1
----
6166

query II rowsort
SELECT + - 37 * - 32 AS col1, 81
----
1184
81

query II rowsort
SELECT + 59 * - 84 - - 59 * - + 37 AS col0, + ( - 73 ) AS col1
----
-7139
-73

query I rowsort
SELECT ALL 73 * - 24 - - - 11
----
-1763

query I rowsort
SELECT + 48 + - 57 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7243
SELECT + + 74 * - COUNT( * ) + + 16 - + 44 - - 25 * + 5 * - COUNT( * ) * 70 DIV 1 * + COUNT( ALL + + CAST( NULL AS DECIMAL ) ) + + + 54, CAST( - + 24 AS SIGNED ) AS col1
----
-48
-24

skipif mysql # not compatible
query II rowsort label-7243
SELECT + + 74 * - COUNT ( * ) + + 16 - + 44 - - 25 * + 5 * - COUNT ( * ) * 70 / 1 * + COUNT ( ALL + + CAST ( NULL AS REAL ) ) + + + 54, CAST ( - + 24 AS INTEGER ) AS col1
----
-48
-24

query I rowsort
SELECT + 75 * - ( - 50 ) * - 51 col2
----
-191250

query I rowsort
SELECT - 44 * - + 3
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT + - CAST( + 17 AS SIGNED ) + - - 53
----
36

skipif mysql # not compatible
query I rowsort label-7246
SELECT + - CAST ( + 17 AS INTEGER ) + - - 53
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT + 19 + - COUNT( * ) * 10 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7247
SELECT + 19 + - COUNT ( * ) * 10 AS col0
----
9

query I rowsort
SELECT ALL + 87 * - + 82 AS col2
----
-7134

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT + 36 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT + 36 / - 77
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7250
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) col1
----
1

query I rowsort
SELECT - 12 - - + 2 AS col2
----
-10

query I rowsort
SELECT + 83 + + 87
----
170

query I rowsort
SELECT - 21 * + 87 + 49 + 75 AS col2
----
-1703

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT MAX( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-7254
SELECT MAX ( 73 )
----
73

query I rowsort
SELECT - 53 + + 94
----
41

query I rowsort
SELECT ALL - 97 + - 99 * + ( - 4 ) + + 30 + NULLIF ( - 11, 38 ) * - 93 + - 85
----
1267

query I rowsort
SELECT - 29 + 22 * - 70 + + 2 AS col2
----
-1567

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT ALL COUNT( * ) + - + 83 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL COUNT ( * ) + - + 83 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT SUM( DISTINCT + + ( + 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT SUM ( DISTINCT + + ( + 1 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL + 25 + - 36 * MAX( ALL + 88 ) AS col1
----
-3143

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL + 25 + - 36 * MAX ( ALL + 88 ) AS col1
----
-3143

onlyif mysql # aggregate syntax: 
query II rowsort label-7261
SELECT ALL COUNT( * ) AS col0, 18 AS col0
----
1
18

skipif mysql # not compatible
query II rowsort label-7261
SELECT ALL COUNT ( * ) AS col0, 18 AS col0
----
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT - 10 + - SUM( + ( 5 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-7262
SELECT - 10 + - SUM ( + ( 5 ) )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7263
SELECT DISTINCT + 80 + + NULLIF ( 35, 9 DIV - 22 * + 50 ) * - CASE + NULLIF ( + 45, COUNT( * ) + 99 ) WHEN CASE + - 56 WHEN + - 95 THEN - - 8 END * 56 + + 27 + - 63 THEN 7 + 37 ELSE - + 37 END + 4 DIV + 38 + - 30 + 64 DIV + + 62 - + + SUM( DISTINCT + 96 ) * + + 57 AS col0
----
-4126

skipif mysql # not compatible
query I rowsort label-7263
SELECT DISTINCT + 80 + + NULLIF ( 35, 9 / - 22 * + 50 ) * - CASE + NULLIF ( + 45, COUNT ( * ) + 99 ) WHEN CASE + - 56 WHEN + - 95 THEN - - 8 END * 56 + + 27 + - 63 THEN 7 + 37 ELSE - + 37 END + 4 / + 38 + - 30 + 64 / + + 62 - + + SUM ( DISTINCT + 96 ) * + + 57 AS col0
----
-4126

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT - 90 + CASE - - 83 WHEN + - 61 THEN NULL WHEN 32 + 92 + - COUNT( * ) THEN + - NULLIF ( + ( - - 82 ), 75 * + 72 ) WHEN 25 * + 76 * + 25 THEN - + 99 ELSE NULL END / + 83 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7264
SELECT - 90 + CASE - - 83 WHEN + - 61 THEN NULL WHEN 32 + 92 + - COUNT ( * ) THEN + - NULLIF ( + ( - - 82 ), 75 * + 72 ) WHEN 25 * + 76 * + 25 THEN - + 99 ELSE NULL END / + 83 col2
----
NULL

query I rowsort
SELECT ALL + 88 + - 47 AS col1
----
41

query I rowsort
SELECT - - 82 * - 37
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - MAX( - 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7267
SELECT - MAX ( - 62 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT - - MIN( DISTINCT - 88 ) + 70 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-7268
SELECT - - MIN ( DISTINCT - 88 ) + 70 AS col0
----
-18

query I rowsort
SELECT ALL - 85 - + - 16
----
-69

query I rowsort
SELECT ALL + - 71 * - - 74 AS col1
----
-5254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT + CAST( 69 AS SIGNED ) * - + 13
----
-897

skipif mysql # not compatible
query I rowsort label-7271
SELECT + CAST ( 69 AS INTEGER ) * - + 13
----
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT - 32 * + + 14 * - COUNT( * )
----
448

skipif mysql # not compatible
query I rowsort label-7272
SELECT - 32 * + + 14 * - COUNT ( * )
----
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7273
SELECT + 6 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT + 6 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7274
SELECT + 67 DIV + + 78 + MIN( DISTINCT - NULLIF ( + 80, + 11 ) ) * + 73
----
-5840

skipif mysql # not compatible
query I rowsort label-7274
SELECT + 67 / + + 78 + MIN ( DISTINCT - NULLIF ( + 80, + 11 ) ) * + 73
----
-5840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7275
SELECT + - ( ( + + 56 ) ), - 84 + COUNT( * ) * - AVG ( - - 56 ) + 69 + + + CAST( NULL AS SIGNED ) * 26 * + + 82 col2
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-7275
SELECT + - ( ( + + 56 ) ), - 84 + COUNT ( * ) * - AVG ( - - 56 ) + 69 + + + CAST ( NULL AS INTEGER ) * 26 * + + 82 col2
----
-56
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7276
SELECT - - COALESCE ( - - 16, 71 + + 74 ) DIV - - 96 AS col0, 72
----
0
72

skipif mysql # not compatible
query II rowsort label-7276
SELECT - - COALESCE ( - - 16, 71 + + 74 ) / - - 96 AS col0, 72
----
0
72

query I rowsort
SELECT + NULLIF ( + 84, + - ( + 86 ) ) AS col0
----
84

query I rowsort
SELECT ALL + - NULLIF ( - 84, ( 54 ) ) AS col2
----
84

query I rowsort
SELECT + 95 * - - 16
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT + NULLIF ( + + NULLIF ( COUNT( * ), - 71 ), - - 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7280
SELECT + NULLIF ( + + NULLIF ( COUNT ( * ), - 71 ), - - 70 ) AS col1
----
1

query I rowsort
SELECT + 89 + - ( - 13 ) + - 13 + + - 65 * + + CASE - 75 WHEN + 3 THEN + - AVG ( + - 99 ) END
----
NULL

query I rowsort
SELECT + NULLIF ( + + 0, + 19 )
----
0

query I rowsort
SELECT + 59 * - 99
----
-5841

onlyif mysql # aggregate syntax: 
query II rowsort label-7284
SELECT CASE - 85 WHEN - 12 THEN - COUNT( * ) END, 64 AS col1
----
NULL
64

skipif mysql # not compatible
query II rowsort label-7284
SELECT CASE - 85 WHEN - 12 THEN - COUNT ( * ) END, 64 AS col1
----
NULL
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7285
SELECT NULLIF ( CASE - + COUNT( * ) WHEN + + 40 THEN - 3 + + CASE 99 WHEN - 55 * - COUNT( * ) THEN + 41 WHEN + CASE + + CAST( NULL AS SIGNED ) WHEN - 86 THEN 48 END * + - 74 THEN NULL ELSE + 31 END * + COUNT( * ) END, + + 97 + + - 22 + + + COUNT( - - 43 ) + + 80 * + 25 * 57 / - MIN( + ( 24 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7285
SELECT NULLIF ( CASE - + COUNT ( * ) WHEN + + 40 THEN - 3 + + CASE 99 WHEN - 55 * - COUNT ( * ) THEN + 41 WHEN + CASE + + CAST ( NULL AS INTEGER ) WHEN - 86 THEN 48 END * + - 74 THEN NULL ELSE + 31 END * + COUNT ( * ) END, + + 97 + + - 22 + + + COUNT ( - - 43 ) + + 80 * + 25 * 57 / - MIN ( + ( 24 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7286
SELECT ALL + 65 col0, 55 DIV COALESCE ( - - MAX( + 95 ), + 22 * + - COUNT( * ) + COUNT( * ) ) + - - 86
----
65
86

skipif mysql # not compatible
query II rowsort label-7286
SELECT ALL + 65 col0, 55 / COALESCE ( - - MAX ( + 95 ), + 22 * + - COUNT ( * ) + COUNT ( * ) ) + - - 86
----
65
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL 79 * + COUNT( * ) + 92 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL 79 * + COUNT ( * ) + 92 AS col2
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT DISTINCT 48 * CAST( NULL AS SIGNED ) * 42 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT 48 * CAST ( NULL AS INTEGER ) * 42 + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT ALL 44 AS col1, 57 + + 33 col2
----
44
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7290
SELECT ALL + 55 * - - CASE 36 WHEN + 22 + - ( + CAST( 16 AS SIGNED ) ) THEN - 10 - - - COUNT( 71 ) / 91 END + + COALESCE ( - ( - COALESCE ( + - MAX( + + 34 ), + 80 ) ), - 61 * + 42 + + + CAST( NULL AS SIGNED ) + + 45 * - COUNT( * ) * COUNT( * ) ) * - CAST( + 64 AS SIGNED ) * - 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + 55 * - - CASE 36 WHEN + 22 + - ( + CAST ( 16 AS INTEGER ) ) THEN - 10 - - - COUNT ( 71 ) / 91 END + + COALESCE ( - ( - COALESCE ( + - MAX ( + + 34 ), + 80 ) ), - 61 * + 42 + + + CAST ( NULL AS INTEGER ) + + 45 * - COUNT ( * ) * COUNT ( * ) ) * - CAST ( + 64 AS INTEGER ) * - 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT - ( COUNT( * ) ) * 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7291
SELECT - ( COUNT ( * ) ) * 98 AS col2
----
-98

query I rowsort
SELECT + 69 + - 47 + + 54
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT - CAST( 9 AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7293
SELECT - CAST ( 9 AS INTEGER ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7294
SELECT - CASE - 74 WHEN + + 85 * COUNT( ALL + 6 ) + 41 + + - 99 THEN + - 68 * - 28 + 1 + 65 / - CAST( + 96 AS SIGNED ) WHEN + - 36 THEN + - CASE + 46 WHEN - 38 + - 93 - - CASE - 86 WHEN - - 43 THEN + 45 / - 8 WHEN + 15 THEN MAX( DISTINCT - 8 ) ELSE - 58 END * COUNT( * ) THEN + COUNT( * ) - - COALESCE ( + COUNT( * ), - 99 * 68 + - 43 ) - + 83 * - + 75 - + + 88 WHEN + COUNT( * ) THEN NULL ELSE NULL END WHEN + + 1 THEN - 25 ELSE NULL END + + ( 23 ) * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7294
SELECT - CASE - 74 WHEN + + 85 * COUNT ( ALL + 6 ) + 41 + + - 99 THEN + - 68 * - 28 + 1 + 65 / - CAST ( + 96 AS INTEGER ) WHEN + - 36 THEN + - CASE + 46 WHEN - 38 + - 93 - - CASE - 86 WHEN - - 43 THEN + 45 / - 8 WHEN + 15 THEN MAX ( DISTINCT - 8 ) ELSE - 58 END * COUNT ( * ) THEN + COUNT ( * ) - - COALESCE ( + COUNT ( * ), - 99 * 68 + - 43 ) - + 83 * - + 75 - + + 88 WHEN + COUNT ( * ) THEN NULL ELSE NULL END WHEN + + 1 THEN - 25 ELSE NULL END + + ( 23 ) * - 85
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7295
SELECT - 52 DIV + 26
----
-2

skipif mysql # not compatible
query I rowsort label-7295
SELECT - 52 / + 26
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7296
SELECT 54 * + 37 col2, CASE + + 38 WHEN - COUNT( * ) / - 50 + + COUNT( * ) THEN NULL WHEN - ( + 80 ) * 18 * - + COUNT( * ) + - - 41 + 62 / COUNT( * ) - SUM( DISTINCT 35 ) THEN - + COUNT( + - 14 ) * + + 27 / + 12 ELSE NULL END AS col0
----
1998
NULL

skipif mysql # not compatible
query II rowsort label-7296
SELECT 54 * + 37 col2, CASE + + 38 WHEN - COUNT ( * ) / - 50 + + COUNT ( * ) THEN NULL WHEN - ( + 80 ) * 18 * - + COUNT ( * ) + - - 41 + 62 / COUNT ( * ) - SUM ( DISTINCT 35 ) THEN - + COUNT ( + - 14 ) * + + 27 / + 12 ELSE NULL END AS col0
----
1998
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL + COUNT( * ) * 70
----
70

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + COUNT ( * ) * 70
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7298
SELECT DISTINCT - + NULLIF ( - + CAST( NULL AS SIGNED ), - COUNT( * ) ) / + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT - + NULLIF ( - + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) / + 49
----
NULL

query I rowsort
SELECT ALL 10 - - 22
----
32

query I rowsort
SELECT DISTINCT - 98 * + - 49
----
4802

query II rowsort
SELECT ALL 96 AS col0, - 78 * - - 99 * + 62
----
96
-478764

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT + MIN( + 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7302
SELECT + MIN ( + 49 ) AS col1
----
49

query I rowsort
SELECT + 30 * - 73 AS col2
----
-2190

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT + 99 * 5 * - ( + ( + 53 ) ) * CASE - 5 WHEN - - COUNT( * ) * + + 7 - - 31 THEN + COUNT( * ) WHEN + 44 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT + 99 * 5 * - ( + ( + 53 ) ) * CASE - 5 WHEN - - COUNT ( * ) * + + 7 - - 31 THEN + COUNT ( * ) WHEN + 44 THEN NULL END
----
NULL

query II rowsort
SELECT - - NULLIF ( + + ( 72 ), + 54 ) AS col1, - 57 - - 43 col0
----
72
-14

query I rowsort
SELECT - + ( + + 94 ) AS col2
----
-94

query II rowsort
SELECT ALL + 29 AS col1, + 19 AS col0
----
29
19

query II rowsort
SELECT - ( + 75 ) AS col1, 1 AS col1
----
-75
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7309
SELECT ALL + 55 * + - 63 * + 28 - - 66 + + 31 + - + 69 + 0 - - 49 * 61 DIV 97 * + COALESCE ( 74, - 52 ) + - COUNT( * ) AS col0, 66 * + 12 * + - 97 AS col1
----
-94773
-76824

skipif mysql # not compatible
query II rowsort label-7309
SELECT ALL + 55 * + - 63 * + 28 - - 66 + + 31 + - + 69 + 0 - - 49 * 61 / 97 * + COALESCE ( 74, - 52 ) + - COUNT ( * ) AS col0, 66 * + 12 * + - 97 AS col1
----
-94773
-76824

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT - 66 * COUNT( - 64 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-7310
SELECT - 66 * COUNT ( - 64 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL - + CASE - 9 WHEN + COUNT( * ) THEN NULL WHEN - 29 / COUNT( * ) * + 66 THEN 52 WHEN + 13 THEN NULL ELSE NULL END + - 2 * 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - + CASE - 9 WHEN + COUNT ( * ) THEN NULL WHEN - 29 / COUNT ( * ) * + 66 THEN 52 WHEN + 13 THEN NULL ELSE NULL END + - 2 * 55 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 89 + + 33 * + 70
----
2399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7313
SELECT 4 + MIN( + 56 ) DIV COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-7313
SELECT 4 + MIN ( + 56 ) / COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7314
SELECT 33 * + COUNT( * ) + + - 60 col1, 17 col1
----
-27
17

skipif mysql # not compatible
query II rowsort label-7314
SELECT 33 * + COUNT ( * ) + + - 60 col1, 17 col1
----
-27
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7315
SELECT 49 DIV + NULLIF ( + 69, + 73 DIV - COUNT( * ) + + 39 + - + 58 * + - 63 + - COUNT( + 34 ) + COUNT( * ) * + 16 + - COUNT( * ) ) col1, 28 + + + 56 AS col0
----
0
84

skipif mysql # not compatible
query II rowsort label-7315
SELECT 49 / + NULLIF ( + 69, + 73 / - COUNT ( * ) + + 39 + - + 58 * + - 63 + - COUNT ( + 34 ) + COUNT ( * ) * + 16 + - COUNT ( * ) ) col1, 28 + + + 56 AS col0
----
0
84

query I rowsort
SELECT 24 * 80 + 77
----
1997

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7317
SELECT ALL ( CAST( NULL AS DECIMAL ) ) + NULLIF ( - COALESCE ( - 78, + 68 + - COUNT( * ) + 35, + - 29 ), + 84 ) * - + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL ( CAST ( NULL AS REAL ) ) + NULLIF ( - COALESCE ( - 78, + 68 + - COUNT ( * ) + 35, + - 29 ), + 84 ) * - + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7318
SELECT - COUNT( * ) * - 99 + + 53 + 14 + - + 36 AS col1, + ( - + 13 )
----
130
-13

skipif mysql # not compatible
query II rowsort label-7318
SELECT - COUNT ( * ) * - 99 + + 53 + 14 + - + 36 AS col1, + ( - + 13 )
----
130
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7319
SELECT ALL - CASE 15 WHEN + 31 - + 80 - - 44 * - ( 59 ) + + ( + + 24 ) THEN + COUNT( * ) WHEN + 90 THEN - 68 * - 62 / + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - CASE 15 WHEN + 31 - + 80 - - 44 * - ( 59 ) + + ( + + 24 ) THEN + COUNT ( * ) WHEN + 90 THEN - 68 * - 62 / + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7320
SELECT 39 + + 97 AS col2, 54 + ( 51 ) AS col2, 61 * - + 70 + + 17 + + - 74 / + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * 38 AS col1
----
136
105
NULL

skipif mysql # not compatible
query III rowsort label-7320
SELECT 39 + + 97 AS col2, 54 + ( 51 ) AS col2, 61 * - + 70 + + 17 + + - 74 / + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * 38 AS col1
----
136
105
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL 41 * + COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL 41 * + COUNT ( * ) AS col0
----
41

query I rowsort
SELECT ALL + 98 + 60 - - + 86 * - 49
----
-4056

onlyif mysql # aggregate syntax: 
query II rowsort label-7323
SELECT CASE - 75 WHEN - COUNT( 80 ) THEN 62 END * + + COUNT( * ) * - - 84 + COUNT( + 53 ) * - 74 AS col0, 65 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-7323
SELECT CASE - 75 WHEN - COUNT ( 80 ) THEN 62 END * + + COUNT ( * ) * - - 84 + COUNT ( + 53 ) * - 74 AS col0, 65 AS col0
----
NULL
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7324
SELECT ALL - COUNT( + - 1 ), - 15 col2
----
-1
-15

skipif mysql # not compatible
query II rowsort label-7324
SELECT ALL - COUNT ( + - 1 ), - 15 col2
----
-1
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT + CAST( + ( - 31 ) AS SIGNED ) * - 72 + - + 85 + - 45 AS col0
----
2102

skipif mysql # not compatible
query I rowsort label-7325
SELECT + CAST ( + ( - 31 ) AS INTEGER ) * - 72 + - + 85 + - 45 AS col0
----
2102

query I rowsort
SELECT ALL 81 - + 53 * - 85
----
4586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7327
SELECT COALESCE ( 78, - SUM( CASE WHEN NULL IS NULL THEN 82 END ) + - 55, 74 ) * + - ( + - 33 ) - 94 / + CAST( NULL AS SIGNED ) + + + 73 * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT COALESCE ( 78, - SUM ( CASE WHEN NULL IS NULL THEN 82 END ) + - 55, 74 ) * + - ( + - 33 ) - 94 / + CAST ( NULL AS INTEGER ) + + + 73 * - 31
----
NULL

query I rowsort
SELECT 93 + + 5 + 26 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT 99 * - 74 + + COUNT( * )
----
-7325

skipif mysql # not compatible
query I rowsort label-7329
SELECT 99 * - 74 + + COUNT ( * )
----
-7325

query I rowsort
SELECT ALL ( - - 13 ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT ALL - + CAST( - - 21 AS SIGNED ) * + 43
----
-903

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL - + CAST ( - - 21 AS INTEGER ) * + 43
----
-903

query I rowsort
SELECT 18 + - + 62 AS col2
----
-44

query I rowsort
SELECT + NULLIF ( + + 73, - + 43 + + 23 ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT SUM( ALL - ( - 58 ) ) + 80 + + - 13 * 82 * - 71
----
75824

skipif mysql # not compatible
query I rowsort label-7334
SELECT SUM ( ALL - ( - 58 ) ) + 80 + + - 13 * 82 * - 71
----
75824

query I rowsort
SELECT ALL + 44 * 85
----
3740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7336
SELECT + COUNT( * ) DIV - 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7336
SELECT + COUNT ( * ) / - 4 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7337
SELECT 8 * - + 30 + - ( CAST( 62 AS SIGNED ) ) AS col2, 33 + + 6 AS col0
----
-302
39

skipif mysql # not compatible
query II rowsort label-7337
SELECT 8 * - + 30 + - ( CAST ( 62 AS INTEGER ) ) AS col2, 33 + + 6 AS col0
----
-302
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7338
SELECT ALL 11 * - CASE 52 WHEN - COUNT( * ) * + - 23 THEN COUNT( * ) WHEN 43 * 99 * - 94 * + 17 + + ( + 84 ) THEN + + 47 * - - 26 + + + COALESCE ( + COUNT( + 78 ), - + 25 + + 56 ) END * - - NULLIF ( + CAST( + 53 AS SIGNED ), COUNT( * ) ) * + 5 + 96 + - 14 + + - CASE + 75 WHEN - COUNT( DISTINCT + + 77 ) THEN + COUNT( * ) * - 83 + + - 39 * - + COALESCE ( + 74, + 14 / + 96 / + 16 ) ELSE + 33 END * - - NULLIF ( 34, 69 + + 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL 11 * - CASE 52 WHEN - COUNT ( * ) * + - 23 THEN COUNT ( * ) WHEN 43 * 99 * - 94 * + 17 + + ( + 84 ) THEN + + 47 * - - 26 + + + COALESCE ( + COUNT ( + 78 ), - + 25 + + 56 ) END * - - NULLIF ( + CAST ( + 53 AS INTEGER ), COUNT ( * ) ) * + 5 + 96 + - 14 + + - CASE + 75 WHEN - COUNT ( DISTINCT + + 77 ) THEN + COUNT ( * ) * - 83 + + - 39 * - + COALESCE ( + 74, + 14 / + 96 / + 16 ) ELSE + 33 END * - - NULLIF ( 34, 69 + + 91 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 26 + - ( 41 ) + - 99 * - + 15
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT DISTINCT + MAX( DISTINCT 24 )
----
24

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT + MAX ( DISTINCT 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7341
SELECT ALL + 92 + 43 - + CAST( NULL AS SIGNED ) * + NULLIF ( - COALESCE ( + 96, 84 * - ( - 14 ) * + 96 + - - AVG ( + 0 ) + + COUNT( * ) ), - 97 ) * - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL + 92 + 43 - + CAST ( NULL AS INTEGER ) * + NULLIF ( - COALESCE ( + 96, 84 * - ( - 14 ) * + 96 + - - AVG ( + 0 ) + + COUNT ( * ) ), - 97 ) * - 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT DISTINCT - 70 + SUM( DISTINCT + 79 )
----
9

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT - 70 + SUM ( DISTINCT + 79 )
----
9

query I rowsort
SELECT ALL + 12 + - 0
----
12

query I rowsort
SELECT + 86 + - 86 AS col0
----
0

query I rowsort
SELECT + 30 * 81
----
2430

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7346
SELECT - NULLIF ( - 70, NULLIF ( + + 24, 67 ) * + - CAST( + ( + ( - COALESCE ( + - 63, + 19 ) ) ) AS SIGNED ) * + 9 ) DIV 76 + 95
----
95

skipif mysql # not compatible
query I rowsort label-7346
SELECT - NULLIF ( - 70, NULLIF ( + + 24, 67 ) * + - CAST ( + ( + ( - COALESCE ( + - 63, + 19 ) ) ) AS INTEGER ) * + 9 ) / 76 + 95
----
95

query II rowsort
SELECT 59 + - 17 + - 68, 2 AS col0
----
-26
2

query I rowsort
SELECT ALL - 93 * + + 50 + 63
----
-4587

query I rowsort
SELECT 30 * - - 62
----
1860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), - 37, - 3 ) * + 2 + - + COALESCE ( ( 45 ), ( - 38 ) ) AS col1
----
-119

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), - 37, - 3 ) * + 2 + - + COALESCE ( ( 45 ), ( - 38 ) ) AS col1
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT DISTINCT 77 * + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT 77 * + + COUNT ( * )
----
77

query I rowsort
SELECT ALL - ( - 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7353
SELECT DISTINCT - CASE + - NULLIF ( + COUNT( * ), - 41 ) WHEN NULLIF ( + + 11, - ( + - 77 ) ) THEN - + 84 DIV 69 * + 97 ELSE - 38 + 42 END AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT - CASE + - NULLIF ( + COUNT ( * ), - 41 ) WHEN NULLIF ( + + 11, - ( + - 77 ) ) THEN - + 84 / 69 * + 97 ELSE - 38 + 42 END AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT ALL ( + 62 ) * - 22 - 93 DIV - - 38 + + 84 AS col0
----
-1282

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL ( + 62 ) * - 22 - 93 / - - 38 + + 84 AS col0
----
-1282

onlyif mysql # aggregate syntax: 
query II rowsort label-7355
SELECT COUNT( * ) AS col0, - 27
----
1
-27

skipif mysql # not compatible
query II rowsort label-7355
SELECT COUNT ( * ) AS col0, - 27
----
1
-27

query I rowsort
SELECT ALL - ( - COALESCE ( - 18, + + 83, + 7 ) )
----
-18

query I rowsort
SELECT 45 * + 81
----
3645

onlyif mysql # aggregate syntax: 
query II rowsort label-7358
SELECT COUNT( * ) AS col1, - 23 + - MAX( DISTINCT - ( 62 ) )
----
1
39

skipif mysql # not compatible
query II rowsort label-7358
SELECT COUNT ( * ) AS col1, - 23 + - MAX ( DISTINCT - ( 62 ) )
----
1
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT + COUNT( DISTINCT + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-7359
SELECT + COUNT ( DISTINCT + 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT + NULLIF ( + - 54, + COUNT( * ) + CASE - - AVG ( - 19 ) WHEN 1 THEN - + 88 END ) * + 46 AS col2
----
-2484

skipif mysql # not compatible
query I rowsort label-7360
SELECT + NULLIF ( + - 54, + COUNT ( * ) + CASE - - AVG ( - 19 ) WHEN 1 THEN - + 88 END ) * + 46 AS col2
----
-2484

onlyif mysql # DIV for integer division: 
query I rowsort label-7361
SELECT ALL - 3 DIV - NULLIF ( + - 59, - + 49 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL - 3 / - NULLIF ( + - 59, - + 49 ) col1
----
0

query I rowsort
SELECT ALL 28 * 63 AS col2
----
1764

query I rowsort
SELECT DISTINCT NULLIF ( + + 69, ( + + 77 ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT DISTINCT - COUNT( ALL + COALESCE ( 24, 87, + - 16 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT - COUNT ( ALL + COALESCE ( 24, 87, + - 16 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT - - SUM( + 4 ) + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7365
SELECT - - SUM ( + 4 ) + + COUNT ( * )
----
5

query I rowsort
SELECT ALL - - 52 * - 12 AS col1
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT - ( + + 21 ) * - COUNT( * ) + + 67 - - - 8 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-7367
SELECT - ( + + 21 ) * - COUNT ( * ) + + 67 - - - 8 AS col1
----
80

query I rowsort
SELECT - + 85 + + + 27
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7369
SELECT 1 AS col2, 1 * - 80 / - + ( - CASE - AVG ( + 27 ) WHEN + 76 THEN - COALESCE ( + + 60, - - COUNT( * ) ) - + 20 WHEN - - ( 18 ) * + 69 + 90 * - - 66 + CASE ( - 22 ) WHEN - 73 * - 33 THEN - 45 / 94 + - + 9 ELSE NULL END THEN NULL WHEN 62 THEN NULL END ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7369
SELECT 1 AS col2, 1 * - 80 / - + ( - CASE - AVG ( + 27 ) WHEN + 76 THEN - COALESCE ( + + 60, - - COUNT ( * ) ) - + 20 WHEN - - ( 18 ) * + 69 + 90 * - - 66 + CASE ( - 22 ) WHEN - 73 * - 33 THEN - 45 / 94 + - + 9 ELSE NULL END THEN NULL WHEN 62 THEN NULL END ) AS col2
----
1
NULL

query I rowsort
SELECT DISTINCT - 15 * - 2 + + 87
----
117

query I rowsort
SELECT DISTINCT - 57 + + 38 AS col1
----
-19

query I rowsort
SELECT + 81 * + - 68
----
-5508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7373
SELECT DISTINCT + + 47 + - + ( + + ( 60 ) ) + - + 27 - + COALESCE ( 70, - + COUNT( * ) DIV 10, + NULLIF ( - 92, - 87 ) ) * + 76 * 23
----
-122400

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT + + 47 + - + ( + + ( 60 ) ) + - + 27 - + COALESCE ( 70, - + COUNT ( * ) / 10, + NULLIF ( - 92, - 87 ) ) * + 76 * 23
----
-122400

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT ALL + COALESCE ( - 89, + 32, - 9 ) DIV 37 - - + 50 * - + 20
----
-1002

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL + COALESCE ( - 89, + 32, - 9 ) / 37 - - + 50 * - + 20
----
-1002

onlyif mysql # DIV for integer division: 
query I rowsort label-7375
SELECT + - 27 DIV + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7375
SELECT + - 27 / + 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT - + COALESCE ( - - 73, + - SUM( - 59 ) * + 29 + - - COALESCE ( + 29, - - 30 ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-7376
SELECT - + COALESCE ( - - 73, + - SUM ( - 59 ) * + 29 + - - COALESCE ( + 29, - - 30 ) ) AS col2
----
-73

query I rowsort
SELECT ALL 1 + + 36
----
37

query I rowsort
SELECT DISTINCT 40 + + 57 + - 69 + + 65 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL 45 * + 33 - - CASE - MAX( ALL - 60 ) WHEN - 89 - 36 - + + 96 * - 78 THEN - - 27 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL 45 * + 33 - - CASE - MAX ( ALL - 60 ) WHEN - 89 - 36 - + + 96 * - 78 THEN - - 27 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7380
SELECT + + COUNT( * ) - 98 + - 0 * COUNT( * ) * 68 + + 99, ( + 5 ) * + + 18 + + 61 AS col2
----
2
151

skipif mysql # not compatible
query II rowsort label-7380
SELECT + + COUNT ( * ) - 98 + - 0 * COUNT ( * ) * 68 + + 99, ( + 5 ) * + + 18 + + 61 AS col2
----
2
151

query II rowsort
SELECT 37 col2, 4
----
37
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL 67 + + - 34 + + ( - 42 ) * - 94 + - 29 / + CASE - 41 WHEN + 72 + - 21 THEN NULL WHEN + COUNT( * ) - - 39 / 99 THEN + 0 END * + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL 67 + + - 34 + + ( - 42 ) * - 94 + - 29 / + CASE - 41 WHEN + 72 + - 21 THEN NULL WHEN + COUNT ( * ) - - 39 / 99 THEN + 0 END * + 30 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7383
SELECT + - 75 - + 1 * 57, + 67 + - - 8 DIV 41 AS col0
----
-132
67

skipif mysql # not compatible
query II rowsort label-7383
SELECT + - 75 - + 1 * 57, + 67 + - - 8 / 41 AS col0
----
-132
67

query I rowsort
SELECT + 41 * 67 * + 76
----
208772

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT + 54 DIV + - 93
----
0

skipif mysql # not compatible
query I rowsort label-7385
SELECT + 54 / + - 93
----
0

query I rowsort
SELECT ALL 18 * 77
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT DISTINCT CASE 70 WHEN 82 THEN NULL ELSE - COUNT( * ) - - - 2 + - - 84 * + + 14 END * + COUNT( * ) * + + 6 * 27
----
190026

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT CASE 70 WHEN 82 THEN NULL ELSE - COUNT ( * ) - - - 2 + - - 84 * + + 14 END * + COUNT ( * ) * + + 6 * 27
----
190026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7388
SELECT ALL - CAST( NULL AS SIGNED ) / 16 - + NULLIF ( - 64, + 61 ) * + + COUNT( * ) + + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - CAST ( NULL AS INTEGER ) / 16 - + NULLIF ( - 64, + 61 ) * + + COUNT ( * ) + + - 74
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT ALL + 7 DIV + + 10 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL + 7 / + + 10 AS col2
----
0

query I rowsort
SELECT + ( + - 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT + 94 + COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7391
SELECT + 94 + COUNT ( * ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT - COALESCE ( 39, + + CASE - 53 WHEN - 64 * - 77 + - 74 THEN NULL ELSE + + CASE + 40 WHEN + MAX( ALL 49 ) THEN 8 WHEN + - 54 * + 84 + + 88 * + 25 + + CASE - 11 WHEN 95 + - - SUM( ALL - 18 ) THEN NULL WHEN + 95 THEN - 83 - 73 + 25 END - - 4 THEN + 22 END * + - 11 * + - 52 END * + + 27 + - COUNT( - 78 ) ) * + + 66 + 56 * - SUM( ALL 54 )
----
-5598

skipif mysql # not compatible
query I rowsort label-7392
SELECT - COALESCE ( 39, + + CASE - 53 WHEN - 64 * - 77 + - 74 THEN NULL ELSE + + CASE + 40 WHEN + MAX ( ALL 49 ) THEN 8 WHEN + - 54 * + 84 + + 88 * + 25 + + CASE - 11 WHEN 95 + - - SUM ( ALL - 18 ) THEN NULL WHEN + 95 THEN - 83 - 73 + 25 END - - 4 THEN + 22 END * + - 11 * + - 52 END * + + 27 + - COUNT ( - 78 ) ) * + + 66 + 56 * - SUM ( ALL 54 )
----
-5598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7393
SELECT + ( - CAST( + 56 AS SIGNED ) )
----
-56

skipif mysql # not compatible
query I rowsort label-7393
SELECT + ( - CAST ( + 56 AS INTEGER ) )
----
-56

query II rowsort
SELECT ( 62 ), - 91 AS col0
----
62
-91

query I rowsort
SELECT ALL - 35 * 29
----
-1015

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT + 66 * 55 + 49 + - + 45 + NULLIF ( - + COUNT( * ), + 18 + - 55 * - 15 - - 54 )
----
3633

skipif mysql # not compatible
query I rowsort label-7396
SELECT + 66 * 55 + 49 + - + 45 + NULLIF ( - + COUNT ( * ), + 18 + - 55 * - 15 - - 54 )
----
3633

query I rowsort
SELECT ALL + ( - 76 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-7398
SELECT - COUNT( * ) * - - 30 AS col2, + 84
----
-30
84

skipif mysql # not compatible
query II rowsort label-7398
SELECT - COUNT ( * ) * - - 30 AS col2, + 84
----
-30
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT CAST( NULL AS SIGNED ) * - 3 + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT CAST ( NULL AS INTEGER ) * - 3 + 45 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 17 * - 50 AS col1
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT + SUM( - 50 ) * + - 97 * - - 77 - 1 + - 19 + 53 + - + 51 * + COUNT( * ) AS col2
----
373432

skipif mysql # not compatible
query I rowsort label-7401
SELECT + SUM ( - 50 ) * + - 97 * - - 77 - 1 + - 19 + 53 + - + 51 * + COUNT ( * ) AS col2
----
373432

onlyif mysql # DIV for integer division: 
query II rowsort label-7402
SELECT - 69 DIV - + 69, 83 AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-7402
SELECT - 69 / - + 69, 83 AS col2
----
1
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7403
SELECT DISTINCT 87 * - - 66 + + CAST( + 38 AS SIGNED ) - - + 13 AS col1
----
5793

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT 87 * - - 66 + + CAST ( + 38 AS INTEGER ) - - + 13 AS col1
----
5793

query I rowsort
SELECT - + COALESCE ( - 12, - - 82 - - ( - 44 ) ) AS col2
----
12

query I rowsort
SELECT ALL - 54 * + 7 + - 98 * + + 99 + - 11 AS col1
----
-10091

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT + COUNT( * ) * - + MAX( 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT + COUNT ( * ) * - + MAX ( 84 )
----
-84

query I rowsort
SELECT - 85 + - 71 AS col2
----
-156

onlyif mysql # DIV for integer division: 
query II rowsort label-7408
SELECT DISTINCT + 85 + - 89 col1, + 82 DIV + - 11
----
-4
-7

skipif mysql # not compatible
query II rowsort label-7408
SELECT DISTINCT + 85 + - 89 col1, + 82 / + - 11
----
-4
-7

query II rowsort
SELECT DISTINCT + 82 * + 81, 86 AS col1
----
6642
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT + - SUM( ALL - 75 ) * - - 81 AS col1
----
6075

skipif mysql # not compatible
query I rowsort label-7410
SELECT + - SUM ( ALL - 75 ) * - - 81 AS col1
----
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL SUM( DISTINCT + 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL SUM ( DISTINCT + 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT + 30 + - - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-7412
SELECT + 30 + - - COUNT ( * )
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7413
SELECT ALL - CAST( NULL AS DECIMAL ) - + NULLIF ( + - 56, - 21 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - CAST ( NULL AS REAL ) - + NULLIF ( + - 56, - 21 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7414
SELECT DISTINCT 60 * 19 * - 24 * + 56 * - - COUNT( * ), - 16 col1
----
-1532160
-16

skipif mysql # not compatible
query II rowsort label-7414
SELECT DISTINCT 60 * 19 * - 24 * + 56 * - - COUNT ( * ), - 16 col1
----
-1532160
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7415
SELECT DISTINCT ( + NULLIF ( COUNT( + 3 ), + 11 ) ) - - CAST( - 91 AS SIGNED ) col0
----
-90

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT ( + NULLIF ( COUNT ( + 3 ), + 11 ) ) - - CAST ( - 91 AS INTEGER ) col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - MAX( ALL + 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-7416
SELECT - MAX ( ALL + 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT + COALESCE ( + SUM( 0 ), + NULLIF ( 24, 10 - 76 ) * - - NULLIF ( 1, + 16 ) ) + COUNT( ALL 59 ) * - - 60 * - 21
----
-1260

skipif mysql # not compatible
query I rowsort label-7417
SELECT + COALESCE ( + SUM ( 0 ), + NULLIF ( 24, 10 - 76 ) * - - NULLIF ( 1, + 16 ) ) + COUNT ( ALL 59 ) * - - 60 * - 21
----
-1260

query I rowsort
SELECT ( 2 ) * + - 95 + + 38
----
-152

query I rowsort
SELECT NULLIF ( + 38, - 34 ) * + - 44 AS col2
----
-1672

onlyif mysql # DIV for integer division: 
query I rowsort label-7420
SELECT + 63 DIV + 72 + - 98 col2
----
-98

skipif mysql # not compatible
query I rowsort label-7420
SELECT + 63 / + 72 + - 98 col2
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-7421
SELECT DISTINCT 17 - 74 - + 10 + + MIN( + ( - - 55 ) ) * - - SUM( + - COALESCE ( - 14, - - NULLIF ( + - 95, 1 ) - + + 78 ) ) AS col2, - COALESCE ( + 60, - - 92 )
----
703
-60

skipif mysql # not compatible
query II rowsort label-7421
SELECT DISTINCT 17 - 74 - + 10 + + MIN ( + ( - - 55 ) ) * - - SUM ( + - COALESCE ( - 14, - - NULLIF ( + - 95, 1 ) - + + 78 ) ) AS col2, - COALESCE ( + 60, - - 92 )
----
703
-60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7422
SELECT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) * 71
----
NULL

query I rowsort
SELECT ALL 23 * + 50 AS col1
----
1150

query II rowsort
SELECT 1, + 91 AS col2
----
1
91

query II rowsort
SELECT ALL - 38 AS col2, 23
----
-38
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT MIN( ALL 54 ) * - 12 + - + 39
----
-687

skipif mysql # not compatible
query I rowsort label-7426
SELECT MIN ( ALL 54 ) * - 12 + - + 39
----
-687

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT COUNT( * ) * COALESCE ( - ( + + 88 ), - 5 * - 5, + 2 + - ( - 34 ) + + + COUNT( * ) ) * + + MAX( DISTINCT 84 )
----
-7392

skipif mysql # not compatible
query I rowsort label-7427
SELECT COUNT ( * ) * COALESCE ( - ( + + 88 ), - 5 * - 5, + 2 + - ( - 34 ) + + + COUNT ( * ) ) * + + MAX ( DISTINCT 84 )
----
-7392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT + CASE + + 12 WHEN - COALESCE ( 19, + - 95 ) THEN NULL WHEN 2 - + MAX( - 12 ) / + - ( CAST( NULL AS SIGNED ) ) * 17 THEN + SUM( DISTINCT + - 41 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT + CASE + + 12 WHEN - COALESCE ( 19, + - 95 ) THEN NULL WHEN 2 - + MAX ( - 12 ) / + - ( CAST ( NULL AS INTEGER ) ) * 17 THEN + SUM ( DISTINCT + - 41 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT ALL - + 97 + + - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL - + 97 + + - COUNT ( * )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ( - - MAX( - 43 ) ) - NULLIF ( + 25, + ( + COUNT( * ) ) ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-7430
SELECT ( - - MAX ( - 43 ) ) - NULLIF ( + 25, + ( + COUNT ( * ) ) ) col1
----
-68

query I rowsort
SELECT DISTINCT 59 + COALESCE ( - 87, ( 2 ) ) AS col1
----
-28

query I rowsort
SELECT ALL + - 84 * + 95 + - - 30 AS col2
----
-7950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7433
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 13, - 59 ) * - 71 col1
----
-923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7435
SELECT 54 DIV COUNT( * ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-7435
SELECT 54 / COUNT ( * ) AS col2
----
54

query I rowsort
SELECT ALL + - 9 + - 69 AS col1
----
-78

query I rowsort
SELECT ALL + - 92 * - + 46 AS col0
----
4232

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL - - 30 + SUM( 39 ) * + MIN( + 6 )
----
264

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - - 30 + SUM ( 39 ) * + MIN ( + 6 )
----
264

query I rowsort
SELECT - 74 + + - 38 col0
----
-112

query I rowsort
SELECT 31 - 63
----
-32

query I rowsort
SELECT DISTINCT - - 80 + 23 AS col1
----
103

query I rowsort
SELECT ALL - NULLIF ( + + 70, + 58 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT CASE - + CASE COUNT( * ) WHEN + 11 / + - 57 THEN COUNT( * ) END WHEN 23 THEN + + 69 * - 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7443
SELECT CASE - + CASE COUNT ( * ) WHEN + 11 / + - 57 THEN COUNT ( * ) END WHEN 23 THEN + + 69 * - 92 ELSE NULL END
----
NULL

query II rowsort
SELECT - 17, 92 AS col2
----
-17
92

query I rowsort
SELECT ALL - 81 - - 65
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7446
SELECT DISTINCT + COUNT( * ) DIV - - 96
----
0

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT + COUNT ( * ) / - - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT DISTINCT SUM( ALL + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT SUM ( ALL + 70 )
----
70

query I rowsort
SELECT ALL - 89 * - ( - 92 ) col1
----
-8188

query I rowsort
SELECT ALL - 78 / CASE + 8 WHEN - 64 THEN - + 80 WHEN ( + 77 ) THEN NULL ELSE NULL END * - 2 - 5 AS col0
----
NULL

query I rowsort
SELECT ALL + - 38 - + 36 AS col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7451
SELECT DISTINCT - + 75 DIV - 99 + + COUNT( * ) * 0 + 33
----
33

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - + 75 / - 99 + + COUNT ( * ) * 0 + 33
----
33

query I rowsort
SELECT ALL 19 * - 40
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL 77 - - COUNT( - 50 )
----
78

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL 77 - - COUNT ( - 50 )
----
78

query II rowsort
SELECT 11, 44 col2
----
11
44

onlyif mysql # DIV for integer division: 
query II rowsort label-7455
SELECT 19 AS col0, 86 DIV 1
----
19
86

skipif mysql # not compatible
query II rowsort label-7455
SELECT 19 AS col0, 86 / 1
----
19
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL + 34 * - + COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL + 34 * - + COUNT ( * ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT 55 - + COUNT( * ) - - + 61 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-7457
SELECT 55 - + COUNT ( * ) - - + 61 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT MIN( ALL - 30 ) - + + 89 + - - 66 * - 26
----
-1835

skipif mysql # not compatible
query I rowsort label-7458
SELECT MIN ( ALL - 30 ) - + + 89 + - - 66 * - 26
----
-1835

query I rowsort
SELECT ALL + 35 * 25 AS col1
----
875

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7460
SELECT DISTINCT - 41 col2, + 1 DIV - SUM( + + ( - + 90 ) ) AS col2
----
-41
0

skipif mysql # not compatible
query II rowsort label-7460
SELECT DISTINCT - 41 col2, + 1 / - SUM ( + + ( - + 90 ) ) AS col2
----
-41
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7461
SELECT DISTINCT - COUNT( * ), 86 + - 97 + - 29 * + 16 + - ( + 6 ) * - CAST( NULL AS SIGNED ) + 42 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7461
SELECT DISTINCT - COUNT ( * ), 86 + - 97 + - 29 * + 16 + - ( + 6 ) * - CAST ( NULL AS INTEGER ) + 42 AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7462
SELECT + 44 col1, - 3 DIV - COUNT( * ) + + + 7 AS col2, 25
----
44
10
25

skipif mysql # not compatible
query III rowsort label-7462
SELECT + 44 col1, - 3 / - COUNT ( * ) + + + 7 AS col2, 25
----
44
10
25

query II rowsort
SELECT ALL 75 + - 87 AS col1, NULLIF ( - 29, - 98 + - COALESCE ( + 86, - 20 + ( + AVG ( DISTINCT 71 ) ) ) ) + + ( + + 48 )
----
-12
19

query II rowsort
SELECT 9 * - + 75 AS col1, - CASE - 79 WHEN - 87 THEN NULL ELSE + 67 + - 9 + + 22 * 39 END
----
-675
-916

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT ALL 69 + + - 9 DIV + 50
----
69

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL 69 + + - 9 / + 50
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT + COUNT( * ) * 59 * - - 78 + + + 85
----
4687

skipif mysql # not compatible
query I rowsort label-7466
SELECT + COUNT ( * ) * 59 * - - 78 + + + 85
----
4687

query I rowsort
SELECT DISTINCT COALESCE ( + 48, + - 43 ) * - + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7468
SELECT ALL - - 22, CAST( - COUNT( * ) AS SIGNED ) + + + 7 DIV 72 AS col0
----
22
-1

skipif mysql # not compatible
query II rowsort label-7468
SELECT ALL - - 22, CAST ( - COUNT ( * ) AS INTEGER ) + + + 7 / 72 AS col0
----
22
-1

query I rowsort
SELECT DISTINCT 66 * - + 96
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT DISTINCT + COUNT( * ) * COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL - 45 + ( 48 ) * - 98 * MAX( DISTINCT - ( NULLIF ( - 10, - 31 + - 8 ) ) ) + - 92 - + 30
----
-47207

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL - 45 + ( 48 ) * - 98 * MAX ( DISTINCT - ( NULLIF ( - 10, - 31 + - 8 ) ) ) + - 92 - + 30
----
-47207

query I rowsort
SELECT + 14 * - 71 + 15 AS col0
----
-979

query II rowsort
SELECT ALL - 97 AS col1, + 42
----
-97
42

query II rowsort
SELECT ALL - + 88 AS col2, 93 * 48 AS col0
----
-88
4464

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT MIN( DISTINCT - + 21 ) * - 46 * COUNT( - 96 ) * - 75 AS col2
----
-72450

skipif mysql # not compatible
query I rowsort label-7475
SELECT MIN ( DISTINCT - + 21 ) * - 46 * COUNT ( - 96 ) * - 75 AS col2
----
-72450

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT - 74 * + + 30 + + 62 DIV 32 AS col2
----
-2219

skipif mysql # not compatible
query I rowsort label-7476
SELECT - 74 * + + 30 + + 62 / 32 AS col2
----
-2219

onlyif mysql # aggregate syntax: 
query II rowsort label-7477
SELECT COUNT( * ) col1, 43
----
1
43

skipif mysql # not compatible
query II rowsort label-7477
SELECT COUNT ( * ) col1, 43
----
1
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7478
SELECT 46 + - - 77 * - + 20 + - + 33 * - + ( - COUNT( * ) ) / + + CAST( NULL AS DECIMAL ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT 46 + - - 77 * - + 20 + - + 33 * - + ( - COUNT ( * ) ) / + + CAST ( NULL AS REAL ) * + 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7479
SELECT ALL - 85 - - CAST( NULL AS SIGNED ) + - 43 - - ( + 50 ) * - 40 + ( - - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL - 85 - - CAST ( NULL AS INTEGER ) + - 43 - - ( + 50 ) * - 40 + ( - - 38 )
----
NULL

query I rowsort
SELECT NULLIF ( + 50, + + 50 ) AS col2
----
NULL

query I rowsort
SELECT + ( + 64 ) + - 15 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT - 64 * + COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-7482
SELECT - 64 * + COUNT ( * ) AS col2
----
-64

query I rowsort
SELECT ALL + 93 * - 99 col2
----
-9207

query II rowsort
SELECT ALL 56 AS col2, + 53 AS col1
----
56
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7485
SELECT DISTINCT NULLIF ( + NULLIF ( + CAST( + - 19 AS SIGNED ), - 19 ), - COALESCE ( - - 47, 66 * - + 62, - + 9 + + COUNT( * ) / + - CAST( - - 70 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT NULLIF ( + NULLIF ( + CAST ( + - 19 AS INTEGER ), - 19 ), - COALESCE ( - - 47, 66 * - + 62, - + 9 + + COUNT ( * ) / + - CAST ( - - 70 AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT DISTINCT + 30 AS col1, + 69 col0
----
30
69

query I rowsort
SELECT ALL - 33 * - 18 col2
----
594

onlyif mysql # aggregate syntax: 
query II rowsort label-7488
SELECT ALL + - NULLIF ( + - 95, + 49 - + + 54 ) - - 89 * - 73, + 8 * + - 53 - + COUNT( * ) + - 42 AS col2
----
-6402
-467

skipif mysql # not compatible
query II rowsort label-7488
SELECT ALL + - NULLIF ( + - 95, + 49 - + + 54 ) - - 89 * - 73, + 8 * + - 53 - + COUNT ( * ) + - 42 AS col2
----
-6402
-467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7489
SELECT ALL + CAST( + + 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL + CAST ( + + 56 AS INTEGER )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT 65 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT 65 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7491
SELECT - 77 * + CAST( 63 AS SIGNED ) AS col0, 3
----
-4851
3

skipif mysql # not compatible
query II rowsort label-7491
SELECT - 77 * + CAST ( 63 AS INTEGER ) AS col0, 3
----
-4851
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7492
SELECT ALL - 76 DIV - ( + 88 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - 76 / - ( + 88 ) AS col1
----
0

query I rowsort
SELECT - ( 20 ) + 17 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7494
SELECT - COUNT( * ) + - COUNT( * ) AS col0, MIN( DISTINCT + 95 ) AS col1
----
-2
95

skipif mysql # not compatible
query II rowsort label-7494
SELECT - COUNT ( * ) + - COUNT ( * ) AS col0, MIN ( DISTINCT + 95 ) AS col1
----
-2
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT - ( - CAST( NULL AS SIGNED ) ) * + NULLIF ( - - 2, - - ( + 50 ) ) + ( + NULLIF ( + - ( + - 78 ), + 95 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT - ( - CAST ( NULL AS INTEGER ) ) * + NULLIF ( - - 2, - - ( + 50 ) ) + ( + NULLIF ( + - ( + - 78 ), + 95 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7496
SELECT ALL 16 * - 92 + - COUNT( * ) + + + 35 DIV 79
----
-1473

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL 16 * - 92 + - COUNT ( * ) + + + 35 / 79
----
-1473

query I rowsort
SELECT ( - NULLIF ( - + 71, + 54 * - 11 * + 66 + - 72 ) ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT ALL COUNT( * ) * - 44 + + ( + + 36 ) + ( - 17 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL COUNT ( * ) * - 44 + + ( + + 36 ) + ( - 17 ) col1
----
-25

query II rowsort
SELECT ALL + 86 * - + 95 AS col2, 57 * - ( - 96 ) col0
----
-8170
5472

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7500
SELECT 13 DIV 57 + ( + 93 ) * CAST( - + 26 AS SIGNED ) + - 72 + - - 91 AS col0
----
-2399

skipif mysql # not compatible
query I rowsort label-7500
SELECT 13 / 57 + ( + 93 ) * CAST ( - + 26 AS INTEGER ) + - 72 + - - 91 AS col0
----
-2399

query I rowsort
SELECT - 51 * 26 AS col0
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL - 32 * + COUNT( * ) + - 26 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL - 32 * + COUNT ( * ) + - 26 AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT DISTINCT + 49 * + 32 * 52 * - SUM( + 68 ) + - 62 / + + MIN( + 8 ) + 4 + + + 41 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT + 49 * + 32 * 52 * - SUM ( + 68 ) + - 62 / + + MIN ( + 8 ) + 4 + + + 41 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 51 * + 99 AS col2
----
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT - + MAX( 87 ) * + 16 * - COUNT( * ) + 87
----
1479

skipif mysql # not compatible
query I rowsort label-7505
SELECT - + MAX ( 87 ) * + 16 * - COUNT ( * ) + 87
----
1479

query I rowsort
SELECT ALL - 5 * - 94 + + ( + + 26 )
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT MIN( DISTINCT + + 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-7507
SELECT MIN ( DISTINCT + + 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT SUM( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-7508
SELECT SUM ( 57 )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-7509
SELECT ALL - 88 DIV 74 + - 61 + 50
----
-12

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - 88 / 74 + - 61 + 50
----
-12

query I rowsort
SELECT ALL + - 88 * - 12 - + ( 93 ) AS col2
----
963

query I rowsort
SELECT + 78 - 91 + ( + 83 ) col0
----
70

query I rowsort
SELECT ALL + - COALESCE ( + 54, + 16, ( - 76 ) * - - 39 ) AS col1
----
-54

query I rowsort
SELECT + 92 - + 7 col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7514
SELECT DISTINCT CAST( + COALESCE ( + COUNT( * ), + ( + - 50 ) * + - 95 ) AS SIGNED ) * 23 * - 62 * + 82
----
-116932

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT CAST ( + COALESCE ( + COUNT ( * ), + ( + - 50 ) * + - 95 ) AS INTEGER ) * 23 * - 62 * + 82
----
-116932

query II rowsort
SELECT + - 92 * - - 27 AS col0, - 61 col1
----
-2484
-61

query I rowsort
SELECT + 48 * - + 41 AS col0
----
-1968

query I rowsort
SELECT - 54 * 18 col0
----
-972

query I rowsort
SELECT ALL 59 + + 82 AS col1
----
141

query I rowsort
SELECT DISTINCT 94 + 81 AS col2
----
175

query I rowsort
SELECT + 0 + + 85
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7521
SELECT DISTINCT 72, 41 * - + CAST( + 53 AS SIGNED ) + - 28 - 35 * + + ( 87 ) * + - 30 + - 84 col2
----
72
89065

skipif mysql # not compatible
query II rowsort label-7521
SELECT DISTINCT 72, 41 * - + CAST ( + 53 AS INTEGER ) + - 28 - 35 * + + ( 87 ) * + - 30 + - 84 col2
----
72
89065

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL CASE + COUNT( * ) WHEN + 11 + + + 41 + - + 33 - - COUNT( - + ( - - 35 ) ) + + + ( - 94 ) THEN - 89 + - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL CASE + COUNT ( * ) WHEN + 11 + + + 41 + - + 33 - - COUNT ( - + ( - - 35 ) ) + + + ( - 94 ) THEN - 89 + - 0 END
----
NULL

query I rowsort
SELECT ALL 0 + - + 19 AS col1
----
-19

query II rowsort
SELECT 4, + 72 AS col0
----
4
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL MAX( ALL - - 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL MAX ( ALL - - 16 ) AS col2
----
16

query I rowsort
SELECT - ( - + 29 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-7527
SELECT ALL NULLIF ( + + SUM( DISTINCT + + 47 ), 91 * + 77 * + 91 ) AS col0, + 93
----
47
93

skipif mysql # not compatible
query II rowsort label-7527
SELECT ALL NULLIF ( + + SUM ( DISTINCT + + 47 ), 91 * + 77 * + 91 ) AS col0, + 93
----
47
93

query I rowsort
SELECT ALL - 45 + + - 66 + - - ( + 92 ) + - 67 AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7529
SELECT ALL 87 DIV 22 * + + SUM( - 41 ) * - 92 + - 73 - - ( + - 76 ) + + 84
----
11251

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL 87 / 22 * + + SUM ( - 41 ) * - 92 + - 73 - - ( + - 76 ) + + 84
----
11251

onlyif mysql # DIV for integer division: 
query I rowsort label-7530
SELECT DISTINCT + + 61 DIV + 44
----
1

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT + + 61 / + 44
----
1

query I rowsort
SELECT - + 40 * 1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT + ( COUNT( * ) ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7532
SELECT + ( COUNT ( * ) ) + - COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT - 94 DIV - + 98 - + - 33 col0
----
33

skipif mysql # not compatible
query I rowsort label-7533
SELECT - 94 / - + 98 - + - 33 col0
----
33

query I rowsort
SELECT ALL + + 86 * 33
----
2838

query I rowsort
SELECT ( + - ( 51 ) ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-7536
SELECT - + COUNT( * ) * + - 46 * COUNT( * ) AS col1, 17 AS col0
----
46
17

skipif mysql # not compatible
query II rowsort label-7536
SELECT - + COUNT ( * ) * + - 46 * COUNT ( * ) AS col1, 17 AS col0
----
46
17

query I rowsort
SELECT ALL + + ( - + 78 ) AS col2
----
-78

query III rowsort
SELECT ALL + 60, - 82 * - + 70 - 97 AS col1, 32 - + 43 AS col2
----
60
5643
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7539
SELECT - + CASE 74 WHEN - 32 + CAST( NULL AS SIGNED ) + COUNT( * ) + + 70 THEN - 72 END + + + MIN( ALL + + 91 ) + - 99 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT - + CASE 74 WHEN - 32 + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 70 THEN - 72 END + + + MIN ( ALL + + 91 ) + - 99 + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT ALL + CAST( - - 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL + CAST ( - - 17 AS INTEGER )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT DISTINCT - 66 * - 59 * - + MIN( DISTINCT 98 )
----
-381612

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT - 66 * - 59 * - + MIN ( DISTINCT 98 )
----
-381612

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7542
SELECT + 27 * 21 + + - COUNT( * ) + 51 - - + 81 - - ( - 61 ) DIV + 25
----
696

skipif mysql # not compatible
query I rowsort label-7542
SELECT + 27 * 21 + + - COUNT ( * ) + 51 - - + 81 - - ( - 61 ) / + 25
----
696

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT DISTINCT + + 56 DIV + + 80 * + 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT + + 56 / + + 80 * + 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT - 70 * - - COUNT( ALL - 91 ) - - + 73 + - - 64 * + 48 * + + 1 + + - 53 AS col1
----
3022

skipif mysql # not compatible
query I rowsort label-7544
SELECT - 70 * - - COUNT ( ALL - 91 ) - - + 73 + - - 64 * + 48 * + + 1 + + - 53 AS col1
----
3022

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT MAX( ALL - + 52 ) + - + 24 - - + 72 * + - 22 * + + SUM( DISTINCT 85 ) AS col1
----
-134716

skipif mysql # not compatible
query I rowsort label-7545
SELECT MAX ( ALL - + 52 ) + - + 24 - - + 72 * + - 22 * + + SUM ( DISTINCT 85 ) AS col1
----
-134716

onlyif mysql # aggregate syntax: 
query II rowsort label-7546
SELECT 60, - COUNT( + 14 ) AS col0
----
60
-1

skipif mysql # not compatible
query II rowsort label-7546
SELECT 60, - COUNT ( + 14 ) AS col0
----
60
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7547
SELECT 9 DIV + ( COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-7547
SELECT 9 / + ( COUNT ( * ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL 18 + + - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL 18 + + - COUNT ( * )
----
17

query I rowsort
SELECT 64 + 37 + - 82
----
19

query I rowsort
SELECT ALL + 85 * - - 89
----
7565

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT ALL + 76 + 86 - + COUNT( * ) * + 67 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL + 76 + 86 - + COUNT ( * ) * + 67 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL 0 + - COUNT( * ) - + - COALESCE ( 91, - 65, - 38 * + ( 25 ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL 0 + - COUNT ( * ) - + - COALESCE ( 91, - 65, - 38 * + ( 25 ) ) AS col0
----
90

query II rowsort
SELECT 57 - + 32 AS col0, - NULLIF ( + + 32, + 93 * 75 ) * - + 83 - + 49 * 95 AS col1
----
25
-1999

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7554
SELECT COUNT( - 38 ) DIV + 87 + 20 * + - 89
----
-1780

skipif mysql # not compatible
query I rowsort label-7554
SELECT COUNT ( - 38 ) / + 87 + 20 * + - 89
----
-1780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7555
SELECT ( - CASE SUM( ALL + - CAST( 66 AS SIGNED ) ) WHEN + COUNT( * ) THEN NULL WHEN + 54 * - ( 66 ) THEN + + 1 + - CAST( - - 39 AS SIGNED ) WHEN + - COUNT( * ) * - + 31 * - 7 THEN NULL ELSE NULL END ) + + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT ( - CASE SUM ( ALL + - CAST ( 66 AS INTEGER ) ) WHEN + COUNT ( * ) THEN NULL WHEN + 54 * - ( 66 ) THEN + + 1 + - CAST ( - - 39 AS INTEGER ) WHEN + - COUNT ( * ) * - + 31 * - 7 THEN NULL ELSE NULL END ) + + - 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT DISTINCT 94 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT 94 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 9 + - 54 + + 20 AS col0
----
-25

query I rowsort
SELECT DISTINCT 58 + + 3
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7559
SELECT MAX( - CAST( - NULLIF ( - - 51, 77 / - 70 + 89 ) AS SIGNED ) ) + - 68 - - + COUNT( - NULLIF ( - 86, 34 * 68 ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7559
SELECT MAX ( - CAST ( - NULLIF ( - - 51, 77 / - 70 + 89 ) AS INTEGER ) ) + - 68 - - + COUNT ( - NULLIF ( - 86, 34 * 68 ) ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT DISTINCT COUNT( * ) * - 88
----
-88

skipif mysql # not compatible
query I rowsort label-7560
SELECT DISTINCT COUNT ( * ) * - 88
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7561
SELECT CAST( NULL AS SIGNED ) + - + 43 AS col1, - 66 + + 42
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-7561
SELECT CAST ( NULL AS INTEGER ) + - + 43 AS col1, - 66 + + 42
----
NULL
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7562
SELECT DISTINCT 45 - 95 - 22 DIV - 10
----
-48

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT 45 - 95 - 22 / - 10
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7563
SELECT DISTINCT COUNT( * ) * 31, ( - + 2 ) * COUNT( * ) col2
----
31
-2

skipif mysql # not compatible
query II rowsort label-7563
SELECT DISTINCT COUNT ( * ) * 31, ( - + 2 ) * COUNT ( * ) col2
----
31
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7564
SELECT 6 + CAST( + + 80 AS SIGNED ) * + - 26 * COUNT( * ) * + - 29 AS col0
----
60326

skipif mysql # not compatible
query I rowsort label-7564
SELECT 6 + CAST ( + + 80 AS INTEGER ) * + - 26 * COUNT ( * ) * + - 29 AS col0
----
60326

query I rowsort
SELECT ALL + 47 - - 89 AS col1
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7566
SELECT + 24 * + + 82 + + - ( + 63 ) + + - 12 + - 73 + + ( + 50 ) + + - 22 * - - CASE + 28 WHEN - 83 * 88 + 93 * - - CAST( NULL AS SIGNED ) + + 34 THEN 0 WHEN + - 65 / - - 91 THEN NULL WHEN - 89 THEN NULL END col0, 83 * + 29 * 43
----
NULL
103501

skipif mysql # not compatible
query II rowsort label-7566
SELECT + 24 * + + 82 + + - ( + 63 ) + + - 12 + - 73 + + ( + 50 ) + + - 22 * - - CASE + 28 WHEN - 83 * 88 + 93 * - - CAST ( NULL AS INTEGER ) + + 34 THEN 0 WHEN + - 65 / - - 91 THEN NULL WHEN - 89 THEN NULL END col0, 83 * + 29 * 43
----
NULL
103501

onlyif mysql # DIV for integer division: 
query II rowsort label-7567
SELECT + 33 DIV + - 34, ( 96 ) AS col2
----
0
96

skipif mysql # not compatible
query II rowsort label-7567
SELECT + 33 / + - 34, ( 96 ) AS col2
----
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT + COUNT( * ) + + 43 + 88 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-7568
SELECT + COUNT ( * ) + + 43 + 88 AS col1
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-7569
SELECT ALL - ( 7 ) AS col0, + MAX( + 4 )
----
-7
4

skipif mysql # not compatible
query II rowsort label-7569
SELECT ALL - ( 7 ) AS col0, + MAX ( + 4 )
----
-7
4

query I rowsort
SELECT ALL - NULLIF ( - - 82, + 53 )
----
-82

query I rowsort
SELECT - 83 * 98
----
-8134

query I rowsort
SELECT 23 * + 85
----
1955

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT ALL 57 DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL 57 / + + 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT - 83 * - 37 + + 59 + 46 * - ( - ( COUNT( * ) ) ) * - - 21 + 2 * - 44 - + 84 - + - NULLIF ( - - CASE - - 51 WHEN 41 THEN - 34 END, - 10 ) * 82 * 52 * 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT - 83 * - 37 + + 59 + 46 * - ( - ( COUNT ( * ) ) ) * - - 21 + 2 * - 44 - + 84 - + - NULLIF ( - - CASE - - 51 WHEN 41 THEN - 34 END, - 10 ) * 82 * 52 * 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT ALL + + MIN( DISTINCT + + 84 ) / + + 53 + - - 52 + - 60 * - MAX( + - CAST( NULL AS SIGNED ) ) * - 4 + + 9 + - 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + + MIN ( DISTINCT + + 84 ) / + + 53 + - - 52 + - 60 * - MAX ( + - CAST ( NULL AS INTEGER ) ) * - 4 + + 9 + - 17 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7576
SELECT + MIN( + 63 ) * + MIN( - + 0 ) + + CAST( + + 10 AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7576
SELECT + MIN ( + 63 ) * + MIN ( - + 0 ) + + CAST ( + + 10 AS INTEGER ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7577
SELECT DISTINCT + NULLIF ( 76, 34 ) * + + CASE ( - 26 ) WHEN CAST( - + 41 AS DECIMAL ) THEN + 74 WHEN - - 4 + - ( + - ( - - 79 ) ) THEN NULL ELSE 71 END - + COUNT( ALL - NULLIF ( 16, - - 99 ) ) AS col2
----
5395

skipif mysql # not compatible
query I rowsort label-7577
SELECT DISTINCT + NULLIF ( 76, 34 ) * + + CASE ( - 26 ) WHEN CAST ( - + 41 AS REAL ) THEN + 74 WHEN - - 4 + - ( + - ( - - 79 ) ) THEN NULL ELSE 71 END - + COUNT ( ALL - NULLIF ( 16, - - 99 ) ) AS col2
----
5395

query II rowsort
SELECT DISTINCT - ( - COALESCE ( 98, - 23, 11 + 46 ) ) + + - 42 AS col2, + 11
----
56
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7579
SELECT + + CAST( 33 AS SIGNED ), 64 AS col2
----
33
64

skipif mysql # not compatible
query II rowsort label-7579
SELECT + + CAST ( 33 AS INTEGER ), 64 AS col2
----
33
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7580
SELECT DISTINCT - - 66 + CASE - + 79 WHEN + CASE 22 WHEN - + 12 THEN NULL WHEN - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + 69 + + - COUNT( * ) THEN + - 11 WHEN 24 THEN 74 * - 26 + + 62 + 78 END THEN NULL ELSE + + 81 END - + MIN( DISTINCT 61 ) col1
----
86

skipif mysql # not compatible
query I rowsort label-7580
SELECT DISTINCT - - 66 + CASE - + 79 WHEN + CASE 22 WHEN - + 12 THEN NULL WHEN - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 69 + + - COUNT ( * ) THEN + - 11 WHEN 24 THEN 74 * - 26 + + 62 + 78 END THEN NULL ELSE + + 81 END - + MIN ( DISTINCT 61 ) col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7581
SELECT ALL + 21 + - - 14 col1, + 55 * + COUNT( * ) AS col0
----
35
55

skipif mysql # not compatible
query II rowsort label-7581
SELECT ALL + 21 + - - 14 col1, + 55 * + COUNT ( * ) AS col0
----
35
55

query I rowsort
SELECT DISTINCT - 51 + - 75 AS col2
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-7583
SELECT 89 * + + ( + COUNT( * ) ) - 48 + - 29 AS col2, 64 AS col0
----
12
64

skipif mysql # not compatible
query II rowsort label-7583
SELECT 89 * + + ( + COUNT ( * ) ) - 48 + - 29 AS col2, 64 AS col0
----
12
64

query I rowsort
SELECT DISTINCT + 99 * + + 43 AS col1
----
4257

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7585
SELECT DISTINCT + COUNT( - CAST( NULL AS DECIMAL ) ) + + 88
----
88

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT + COUNT ( - CAST ( NULL AS REAL ) ) + + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT 77 * - - SUM( + 39 )
----
3003

skipif mysql # not compatible
query I rowsort label-7586
SELECT 77 * - - SUM ( + 39 )
----
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT ALL + 90 + COUNT( * ) + + + 58
----
149

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL + 90 + COUNT ( * ) + + + 58
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7588
SELECT DISTINCT - 51, 42 + - 10 + + CASE + - 93 WHEN - NULLIF ( + 10, 5 ) * + 45 THEN + - 69 + - ( + - COUNT( * ) ) * - - 61 WHEN + 24 THEN NULL WHEN - 60 THEN - + 58 WHEN - - 36 THEN - CASE 94 WHEN - MIN( ALL - - 25 ) THEN - MIN( + CAST( NULL AS SIGNED ) ) * + 78 ELSE NULL END ELSE - 89 END * 30 AS col0
----
-51
-2638

skipif mysql # not compatible
query II rowsort label-7588
SELECT DISTINCT - 51, 42 + - 10 + + CASE + - 93 WHEN - NULLIF ( + 10, 5 ) * + 45 THEN + - 69 + - ( + - COUNT ( * ) ) * - - 61 WHEN + 24 THEN NULL WHEN - 60 THEN - + 58 WHEN - - 36 THEN - CASE 94 WHEN - MIN ( ALL - - 25 ) THEN - MIN ( + CAST ( NULL AS INTEGER ) ) * + 78 ELSE NULL END ELSE - 89 END * 30 AS col0
----
-51
-2638

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT COUNT( * ) + + 47
----
48

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT COUNT ( * ) + + 47
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT ALL MAX( DISTINCT + 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL MAX ( DISTINCT + 81 ) AS col2
----
81

query II rowsort
SELECT - 75 AS col2, + 96
----
-75
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7592
SELECT 56 AS col2, - 39 - - CAST( 28 AS SIGNED ) + + 13
----
56
2

skipif mysql # not compatible
query II rowsort label-7592
SELECT 56 AS col2, - 39 - - CAST ( 28 AS INTEGER ) + + 13
----
56
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL + COUNT( * ) + - + MIN( 60 ) - - 9 * - 5 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + COUNT ( * ) + - + MIN ( 60 ) - - 9 * - 5 AS col1
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-7594
SELECT ALL + 54 DIV 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL + 54 / 96 AS col2
----
0

query I rowsort
SELECT 2 + - 54
----
-52

query I rowsort
SELECT DISTINCT + 36 * + 79 AS col2
----
2844

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT ALL + COUNT( * ) - 62
----
-61

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL + COUNT ( * ) - 62
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7598
SELECT 89 + + + COUNT( * ) DIV + 58
----
89

skipif mysql # not compatible
query I rowsort label-7598
SELECT 89 + + + COUNT ( * ) / + 58
----
89

query II rowsort
SELECT ALL 51 AS col1, 45 AS col1
----
51
45

query I rowsort
SELECT 98 + + ( - + 1 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT 37 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-7601
SELECT 37 / - 99
----
0

query I rowsort
SELECT 14 - 18 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT - MIN( 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-7603
SELECT - MIN ( 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT COUNT( * ) - 31
----
-30

skipif mysql # not compatible
query I rowsort label-7604
SELECT COUNT ( * ) - 31
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL COALESCE ( COUNT( * ), + 89 * - 99 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL COALESCE ( COUNT ( * ), + 89 * - 99 ) AS col0
----
1

query I rowsort
SELECT ALL 85 * - 89 AS col1
----
-7565

query I rowsort
SELECT DISTINCT 96 * + 6 + 76 * 1
----
652

query I rowsort
SELECT + 79 + + 43
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7609
SELECT CASE 83 WHEN + COALESCE ( - 46, 77 ) * + 38 THEN COUNT( * ) * 37 + NULLIF ( + 45, ( - 34 ) * 13 ) WHEN - COUNT( * ) THEN NULL WHEN COALESCE ( + CASE - ( - CASE + 11 WHEN 55 + - ( MAX( ALL 12 ) + + MAX( - 98 ) ) THEN NULLIF ( 46, 33 + 78 * - 95 ) - COALESCE ( 12 + - CASE + 0 + COUNT( * ) * + 45 WHEN + 57 * 83 THEN 33 ELSE 33 END, - 14 ) * - ( + 8 ) END ) WHEN - 22 THEN CASE ( CASE 17 WHEN SUM( 38 ) THEN 92 WHEN 92 - 9 THEN 1 END ) WHEN 71 / 11 + CAST( NULL AS SIGNED ) * - 22 THEN + COUNT( * ) * - NULLIF ( + 92, - 84 + + 89 ) WHEN 68 - 22 * - COUNT( * ) THEN NULL END * - 75 ELSE NULL END, + 63 + 49 * 90 ) * 45 THEN 64 + + ( + 45 ) ELSE ( 93 ) END * - 69 - 26
----
-6443

skipif mysql # not compatible
query I rowsort label-7609
SELECT CASE 83 WHEN + COALESCE ( - 46, 77 ) * + 38 THEN COUNT ( * ) * 37 + NULLIF ( + 45, ( - 34 ) * 13 ) WHEN - COUNT ( * ) THEN NULL WHEN COALESCE ( + CASE - ( - CASE + 11 WHEN 55 + - ( MAX ( ALL 12 ) + + MAX ( - 98 ) ) THEN NULLIF ( 46, 33 + 78 * - 95 ) - COALESCE ( 12 + - CASE + 0 + COUNT ( * ) * + 45 WHEN + 57 * 83 THEN 33 ELSE 33 END, - 14 ) * - ( + 8 ) END ) WHEN - 22 THEN CASE ( CASE 17 WHEN SUM ( 38 ) THEN 92 WHEN 92 - 9 THEN 1 END ) WHEN 71 / 11 + CAST ( NULL AS INTEGER ) * - 22 THEN + COUNT ( * ) * - NULLIF ( + 92, - 84 + + 89 ) WHEN 68 - 22 * - COUNT ( * ) THEN NULL END * - 75 ELSE NULL END, + 63 + 49 * 90 ) * 45 THEN 64 + + ( + 45 ) ELSE ( 93 ) END * - 69 - 26
----
-6443

query I rowsort
SELECT + 55 + 98 * 35 AS col2
----
3485

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT + 83 DIV + 47 - 47 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-7611
SELECT + 83 / + 47 - 47 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT CASE COUNT( * ) WHEN + 56 THEN + NULLIF ( 66, 41 ) WHEN 85 * 69 + + COUNT( * ) THEN 45 * 48 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT CASE COUNT ( * ) WHEN + 56 THEN + NULLIF ( 66, 41 ) WHEN 85 * 69 + + COUNT ( * ) THEN 45 * 48 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - COUNT( * ) + 34 * 88
----
2991

skipif mysql # not compatible
query I rowsort label-7613
SELECT - COUNT ( * ) + 34 * 88
----
2991

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7614
SELECT - CAST( NULL AS DECIMAL ) / + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7614
SELECT - CAST ( NULL AS REAL ) / + 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT ALL 8 * - CASE - COUNT( * ) WHEN + NULLIF ( + 87, 53 ) - ( - 62 ) THEN + 14 WHEN - 22 * 96 THEN 18 END + - 67 * + NULLIF ( - 77, - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL 8 * - CASE - COUNT ( * ) WHEN + NULLIF ( + 87, 53 ) - ( - 62 ) THEN + 14 WHEN - 22 * 96 THEN 18 END + - 67 * + NULLIF ( - 77, - 47 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT + 20 * - 55 + COUNT( * )
----
-1099

skipif mysql # not compatible
query I rowsort label-7616
SELECT + 20 * - 55 + COUNT ( * )
----
-1099

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT MAX( 61 ) * MIN( DISTINCT - 13 ) + 46 * + 21
----
173

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT MAX ( 61 ) * MIN ( DISTINCT - 13 ) + 46 * + 21
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT + CASE - 54 WHEN - 24 * - COUNT( * ) + - COUNT( * ) * COUNT( * ) THEN - 54 + + 56 * + 1 WHEN + AVG ( ALL 32 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT + CASE - 54 WHEN - 24 * - COUNT ( * ) + - COUNT ( * ) * COUNT ( * ) THEN - 54 + + 56 * + 1 WHEN + AVG ( ALL 32 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 76 * + 34 + - 31 * + 75 col1
----
259

query I rowsort
SELECT DISTINCT - 13 * - 67
----
871

query I rowsort
SELECT + CASE ( + 50 ) WHEN + 96 THEN 90 - - 87 WHEN 41 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT + COUNT( * ) * - CASE 21 WHEN 12 * + 81 THEN + CASE 95 WHEN 47 * 69 THEN NULL ELSE COUNT( * ) END WHEN + 88 THEN NULL END + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT + COUNT ( * ) * - CASE 21 WHEN 12 * + 81 THEN + CASE 95 WHEN 47 * 69 THEN NULL ELSE COUNT ( * ) END WHEN + 88 THEN NULL END + - 17
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT + 41 DIV + 54
----
0

skipif mysql # not compatible
query I rowsort label-7623
SELECT + 41 / + 54
----
0

query I rowsort
SELECT 58 * - 29 + + 98 AS col1
----
-1584

query I rowsort
SELECT + 59 * - 63
----
-3717

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT DISTINCT - COUNT( * ) * 3
----
-3

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT - COUNT ( * ) * 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL + 59 - - COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL + 59 - - COUNT ( * ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7628
SELECT ALL - 95 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - 95 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT + COUNT( * ) * - 15
----
-15

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT + COUNT ( * ) * - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL COALESCE ( MAX( 28 ), 98, + 80 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL COALESCE ( MAX ( 28 ), 98, + 80 ) AS col0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT - 87 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT - 87 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 62 * 77 + 14
----
-4760

query I rowsort
SELECT DISTINCT ( 66 ) col1
----
66

query I rowsort
SELECT - 57 * + 40
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT - MIN( 95 ) + - 1
----
-96

skipif mysql # not compatible
query I rowsort label-7635
SELECT - MIN ( 95 ) + - 1
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7636
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT - CAST ( NULL AS REAL ) / 42 AS col0
----
NULL

query I rowsort
SELECT ALL ( 30 ) AS col2
----
30

query I rowsort
SELECT ALL - 96 * - 72
----
6912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7639
SELECT - 21 DIV - COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7639
SELECT - 21 / - COUNT ( * ) AS col0
----
21

query I rowsort
SELECT + 76 * - 31 AS col2
----
-2356

query I rowsort
SELECT - 15 + - 20 * + 13 AS col1
----
-275

query I rowsort
SELECT DISTINCT - - 66 * - 28 col1
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT ALL + SUM( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + SUM ( 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT - + 0 * CASE 66 WHEN COUNT( * ) THEN + 24 * - ( 69 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7644
SELECT - + 0 * CASE 66 WHEN COUNT ( * ) THEN + 24 * - ( 69 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - + 99 + 39 AS col0
----
-60

query I rowsort
SELECT DISTINCT - 78 * - 16
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT - + COALESCE ( ( + MAX( ALL + 42 ) ), - 99 )
----
-42

skipif mysql # not compatible
query I rowsort label-7647
SELECT - + COALESCE ( ( + MAX ( ALL + 42 ) ), - 99 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT - CAST( + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-7648
SELECT - CAST ( + 27 AS INTEGER )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL - + 24 + COUNT( ALL + 72 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL - + 24 + COUNT ( ALL + 72 ) AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7650
SELECT - + 40 DIV 16
----
-2

skipif mysql # not compatible
query I rowsort label-7650
SELECT - + 40 / 16
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT + 79 + - NULLIF ( - 49, + 62 / - 55 + COUNT( * ) )
----
128

skipif mysql # not compatible
query I rowsort label-7651
SELECT + 79 + - NULLIF ( - 49, + 62 / - 55 + COUNT ( * ) )
----
128

query I rowsort
SELECT - 22 * - 20
----
440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7653
SELECT + + 80 DIV COUNT( ALL + 22 * 55 ) + - 16
----
64

skipif mysql # not compatible
query I rowsort label-7653
SELECT + + 80 / COUNT ( ALL + 22 * 55 ) + - 16
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7654
SELECT ALL COUNT( * ) DIV 72 + 80 * + 34
----
2720

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL COUNT ( * ) / 72 + 80 * + 34
----
2720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7655
SELECT DISTINCT + MIN( DISTINCT - 43 ) DIV - 17
----
2

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT + MIN ( DISTINCT - 43 ) / - 17
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT ALL 20 DIV - 98 + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL 20 / - 98 + 15 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT DISTINCT - ( + 94 ) DIV 74 + + 41 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT - ( + 94 ) / 74 + + 41 AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT ALL - 29 DIV 51 + COALESCE ( + 68, 70 DIV + 51 ) * 96
----
6528

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - 29 / 51 + COALESCE ( + 68, 70 / + 51 ) * 96
----
6528

query I rowsort
SELECT + + ( - 13 ) AS col0
----
-13

query I rowsort
SELECT 38 * 72 - 25
----
2711

query I rowsort
SELECT + 71 * - ( COALESCE ( 72, + 87 ) ) AS col2
----
-5112

query I rowsort
SELECT ALL 77 * - 7 AS col2
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ( COUNT( + ( - 2 ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7663
SELECT ( COUNT ( + ( - 2 ) ) ) AS col1
----
1

query I rowsort
SELECT + 97 * + ( + 5 ) + 23
----
508

query I rowsort
SELECT ( NULLIF ( - 18, + 5 + 91 ) )
----
-18

query I rowsort
SELECT + 65 + + 58
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT + 35 * - + 59 * COUNT( * ) col0
----
-2065

skipif mysql # not compatible
query I rowsort label-7667
SELECT + 35 * - + 59 * COUNT ( * ) col0
----
-2065

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT - 41 * + CASE NULLIF ( - MIN( DISTINCT + 44 ), 45 ) WHEN 67 THEN NULL ELSE - 46 + 97 END
----
-2091

skipif mysql # not compatible
query I rowsort label-7668
SELECT - 41 * + CASE NULLIF ( - MIN ( DISTINCT + 44 ), 45 ) WHEN 67 THEN NULL ELSE - 46 + 97 END
----
-2091

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT + ( + 83 ) - MIN( - 67 ) AS col0
----
150

skipif mysql # not compatible
query I rowsort label-7669
SELECT + ( + 83 ) - MIN ( - 67 ) AS col0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT ALL + MAX( DISTINCT - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL + MAX ( DISTINCT - 77 ) AS col2
----
-77

query I rowsort
SELECT + 5 * + 92
----
460

query I rowsort
SELECT - 58 * - + 82 + ( - 36 + 24 )
----
4744

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL + CASE + 73 WHEN + 41 - 33 * COUNT( * ) THEN 87 * NULLIF ( + 17, + COUNT( * ) ) + 45 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL + CASE + 73 WHEN + 41 - 33 * COUNT ( * ) THEN 87 * NULLIF ( + 17, + COUNT ( * ) ) + 45 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT + MIN( + 80 ) * - 61 AS col1
----
-4880

skipif mysql # not compatible
query I rowsort label-7674
SELECT + MIN ( + 80 ) * - 61 AS col1
----
-4880

query I rowsort
SELECT - 75 * 11
----
-825

query I rowsort
SELECT + 46 * - 75 * 21 AS col2
----
-72450

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT ALL + COALESCE ( - + 99, 18, COUNT( * ) * COUNT( * ) ) * - 73 AS col0
----
7227

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + COALESCE ( - + 99, 18, COUNT ( * ) * COUNT ( * ) ) * - 73 AS col0
----
7227

query I rowsort
SELECT ALL - 65 * + 96
----
-6240

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT + 22 DIV 26 * 26
----
0

skipif mysql # not compatible
query I rowsort label-7679
SELECT + 22 / 26 * 26
----
0

query I rowsort
SELECT ALL ( + ( - 83 ) ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT - + 4 * - + ( 12 ) + COALESCE ( - MIN( ALL 38 ), + 98 * 69 )
----
10

skipif mysql # not compatible
query I rowsort label-7681
SELECT - + 4 * - + ( 12 ) + COALESCE ( - MIN ( ALL 38 ), + 98 * 69 )
----
10

query I rowsort
SELECT ALL + ( + 70 ) + + 31 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT ALL + + 51 + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL + + 51 + - COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT ALL - + 72 + + - 79 + 38 * MIN( 44 ) AS col1
----
1521

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL - + 72 + + - 79 + 38 * MIN ( 44 ) AS col1
----
1521

query I rowsort
SELECT - 80 + + ( - 76 )
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT - SUM( DISTINCT - + 82 ) + - 66 * CASE 46 WHEN 95 THEN + 22 WHEN 51 - - CASE 90 WHEN + 39 * + 42 - 52 THEN NULL ELSE 8 * COUNT( * ) END THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT - SUM ( DISTINCT - + 82 ) + - 66 * CASE 46 WHEN 95 THEN + 22 WHEN 51 - - CASE 90 WHEN + 39 * + 42 - 52 THEN NULL ELSE 8 * COUNT ( * ) END THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + + 59 + - 15 * 78
----
-1111

query I rowsort
SELECT - 76 * + - 78 col0
----
5928

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT 39 - - - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7689
SELECT 39 - - - COUNT ( * ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL - ( - COUNT( * ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - ( - COUNT ( * ) ) * - COUNT ( * )
----
-1

query I rowsort
SELECT + 43 + - COALESCE ( - 40, 10 + + 64 * + 66 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7692
SELECT + + 89 * + CAST( 67 AS SIGNED ) * - 53 + 48 AS col2
----
-315991

skipif mysql # not compatible
query I rowsort label-7692
SELECT + + 89 * + CAST ( 67 AS INTEGER ) * - 53 + 48 AS col2
----
-315991

query I rowsort
SELECT ALL 96 - - 92 * + 50 AS col1
----
4696

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL - + COUNT( * ) * 88 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL - + COUNT ( * ) * 88 AS col1
----
-88

query I rowsort
SELECT - 9 + + 79 * 31 AS col0
----
2440

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT 92 * COUNT( * ) * ( 32 ) + - 35 AS col0
----
2909

skipif mysql # not compatible
query I rowsort label-7696
SELECT 92 * COUNT ( * ) * ( 32 ) + - 35 AS col0
----
2909

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT - 92 + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-7697
SELECT - 92 + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT ALL - 58 - CASE - + 98 WHEN + COALESCE ( 38, + 68 ) * - 51 THEN COUNT( * ) / 77 WHEN - 35 THEN SUM( DISTINCT 56 ) END + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL - 58 - CASE - + 98 WHEN + COALESCE ( 38, + 68 ) * - 51 THEN COUNT ( * ) / 77 WHEN - 35 THEN SUM ( DISTINCT 56 ) END + 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7699
SELECT 29, + 88 DIV + - 59 + - MIN( ALL - 35 ) AS col0
----
29
34

skipif mysql # not compatible
query II rowsort label-7699
SELECT 29, + 88 / + - 59 + - MIN ( ALL - 35 ) AS col0
----
29
34

query I rowsort
SELECT 77 * 53
----
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT COUNT( * ) + 12 + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-7701
SELECT COUNT ( * ) + 12 + COUNT ( * )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT 83 DIV 81 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7702
SELECT 83 / 81 AS col0
----
1

query I rowsort
SELECT NULLIF ( + 89, - + 71 ) * + 43
----
3827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7704
SELECT DISTINCT COUNT( * ) DIV + + 44 DIV - 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT COUNT ( * ) / + + 44 / - 22 AS col2
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( + COALESCE ( + + 42, - 94 ), + 98 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT COUNT( * ) + + + 18 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7706
SELECT COUNT ( * ) + + + 18 AS col0
----
19

query II rowsort
SELECT DISTINCT - 41 AS col0, - 48
----
-41
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT 68 * - + 70 + COUNT( * )
----
-4759

skipif mysql # not compatible
query I rowsort label-7708
SELECT 68 * - + 70 + COUNT ( * )
----
-4759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT DISTINCT - CAST( - 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT - CAST ( - 72 AS INTEGER )
----
72

query II rowsort
SELECT + 81, + ( + 94 ) AS col0
----
81
94

query I rowsort
SELECT + 54 * - 26 + - + 72
----
-1476

query I rowsort
SELECT ALL 40 * - 49
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT COUNT( * ) * - - 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7713
SELECT COUNT ( * ) * - - 84 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7714
SELECT CAST( NULL AS SIGNED ) + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT CAST ( NULL AS INTEGER ) + + 52
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( + - 18, - ( + 78 ) ) + + 79 AS col2
----
97

query I rowsort
SELECT DISTINCT ( - 60 ) + 34 + + ( - 39 ) col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-7717
SELECT 24 * 27 + + - 89 DIV 38
----
646

skipif mysql # not compatible
query I rowsort label-7717
SELECT 24 * 27 + + - 89 / 38
----
646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7718
SELECT ALL + MIN( - CAST( + - 47 AS SIGNED ) ) * - 12 AS col0
----
-564

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + MIN ( - CAST ( + - 47 AS INTEGER ) ) * - 12 AS col0
----
-564

query I rowsort
SELECT + 34 + + - 87 AS col0
----
-53

query II rowsort
SELECT - + 31 AS col1, ( + + ( + 4 ) ) * 95 col0
----
-31
380

query I rowsort
SELECT 75 + - + 38 * + 35
----
-1255

query I rowsort
SELECT ALL - 87 + - 50
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ALL 21 * 85 * + COUNT( * ) + + 73
----
1858

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL 21 * 85 * + COUNT ( * ) + + 73
----
1858

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT SUM( DISTINCT + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-7724
SELECT SUM ( DISTINCT + 52 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT + 0 + + 41 - - CAST( + 29 AS SIGNED ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-7725
SELECT + 0 + + 41 - - CAST ( + 29 AS INTEGER ) AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL - 37 * - CAST( 52 AS SIGNED ) col1
----
1924

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL - 37 * - CAST ( 52 AS INTEGER ) col1
----
1924

query I rowsort
SELECT 54 + 56 + - 1 AS col0
----
109

query I rowsort
SELECT ALL + ( 32 ) - - - 15
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL - - ( + 64 ) - + - ( COUNT( 1 ) )
----
65

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - - ( + 64 ) - + - ( COUNT ( 1 ) )
----
65

query I rowsort
SELECT DISTINCT - 44 - + + 60 AS col2
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT - 68 * 30 DIV - 8 AS col0
----
255

skipif mysql # not compatible
query I rowsort label-7731
SELECT - 68 * 30 / - 8 AS col0
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7732
SELECT + CASE - 79 WHEN 56 THEN + 3 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT + CASE - 79 WHEN 56 THEN + 3 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END + 10
----
NULL

query I rowsort
SELECT ALL - - 52 - - 9
----
61

query I rowsort
SELECT + 16 * + 19 AS col0
----
304

onlyif mysql # aggregate syntax: 
query II rowsort label-7735
SELECT - 18 AS col2, - CASE + ( + 30 ) WHEN 9 THEN MIN( ALL + ( + 33 ) ) - - 56 ELSE 51 END AS col1
----
-18
-51

skipif mysql # not compatible
query II rowsort label-7735
SELECT - 18 AS col2, - CASE + ( + 30 ) WHEN 9 THEN MIN ( ALL + ( + 33 ) ) - - 56 ELSE 51 END AS col1
----
-18
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7736
SELECT 41 DIV - + ( + 7 ) + COALESCE ( + 63 + 74, - 89 + 85, ( 38 ) )
----
132

skipif mysql # not compatible
query I rowsort label-7736
SELECT 41 / - + ( + 7 ) + COALESCE ( + 63 + 74, - 89 + 85, ( 38 ) )
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT + COALESCE ( 21, - 65 + + ( 80 ) ) * + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT + COALESCE ( 21, - 65 + + ( 80 ) ) * + COUNT ( * )
----
21

query I rowsort
SELECT 86 * + + NULLIF ( 3, + + AVG ( - 61 ) + - 27 )
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT DISTINCT + SUM( DISTINCT + - 93 ) * - + 73 + ( 7 ) AS col0
----
6796

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT + SUM ( DISTINCT + - 93 ) * - + 73 + ( 7 ) AS col0
----
6796

query I rowsort
SELECT DISTINCT + 9 * + 41 col0
----
369

query I rowsort
SELECT 12 * - 21 AS col0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL + CASE - 84 WHEN + - 94 / 73 - - NULLIF ( - 93, AVG ( DISTINCT - 11 ) ) THEN ( MIN( DISTINCT - 51 ) ) END * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + CASE - 84 WHEN + - 94 / 73 - - NULLIF ( - 93, AVG ( DISTINCT - 11 ) ) THEN ( MIN ( DISTINCT - 51 ) ) END * 89 AS col2
----
NULL

query I rowsort
SELECT ALL - 37 * - 16
----
592

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT DISTINCT - COUNT( 15 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT - COUNT ( 15 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL COUNT( * ) + 60 - - 84 + + 76 * + COUNT( * )
----
221

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL COUNT ( * ) + 60 - - 84 + + 76 * + COUNT ( * )
----
221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7746
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) + - 46 * + ( 6 ) + COUNT( * )
----
-276

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) + - 46 * + ( 6 ) + COUNT ( * )
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT COUNT( * ) - ( + 76 )
----
-75

skipif mysql # not compatible
query I rowsort label-7747
SELECT COUNT ( * ) - ( + 76 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT ALL - ( - - ( + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL - ( - - ( + COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7749
SELECT DISTINCT 69 + 26 DIV MAX( ALL - 60 )
----
69

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT 69 + 26 / MAX ( ALL - 60 )
----
69

query I rowsort
SELECT 38 * ( - - 3 ) + + + 67 - 49
----
132

query I rowsort
SELECT ALL 86 * - + 37
----
-3182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT ALL - CAST( + 61 AS SIGNED ) + - 89 + - - 93 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL - CAST ( + 61 AS INTEGER ) + - 89 + - - 93 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7753
SELECT CAST( - 88 AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7753
SELECT CAST ( - 88 AS INTEGER ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-7754
SELECT - 53 + + COUNT( * ) AS col0, ( 4 ) col0
----
-52
4

skipif mysql # not compatible
query II rowsort label-7754
SELECT - 53 + + COUNT ( * ) AS col0, ( 4 ) col0
----
-52
4

query II rowsort
SELECT + + 22 * - 80 AS col0, 18
----
-1760
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT - ( - SUM( 83 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7756
SELECT - ( - SUM ( 83 ) ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7757
SELECT + 98 / + CASE 38 WHEN + COALESCE ( 38, 93 ) * - 91 THEN - 84 * - 65 WHEN + 82 THEN NULLIF ( + 88, COALESCE ( + COALESCE ( - 75, 83 ), - CAST( + ( - 33 ) AS SIGNED ), - 49 + 87 ) ) END * COUNT( * ) - - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT + 98 / + CASE 38 WHEN + COALESCE ( 38, 93 ) * - 91 THEN - 84 * - 65 WHEN + 82 THEN NULLIF ( + 88, COALESCE ( + COALESCE ( - 75, 83 ), - CAST ( + ( - 33 ) AS INTEGER ), - 49 + 87 ) ) END * COUNT ( * ) - - 18 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 96, - 11 ) AS col2
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7759
SELECT ALL ( - 20 ) DIV - COUNT( ALL - 26 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL ( - 20 ) / - COUNT ( ALL - 26 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT + + COUNT( * ) + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-7760
SELECT + + COUNT ( * ) + - 87
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7761
SELECT - + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7761
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL COUNT( * ) * 12
----
12

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL COUNT ( * ) * 12
----
12

query I rowsort
SELECT + + 76 + - + 6
----
70

query I rowsort
SELECT + 14 + - - 71
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7765
SELECT + - 1 DIV - COALESCE ( + COUNT( * ), - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-7765
SELECT + - 1 / - COALESCE ( + COUNT ( * ), - 37 )
----
1

query I rowsort
SELECT + 27 + - - 77
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL SUM( + 73 ) * + 34 AS col1
----
2482

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL SUM ( + 73 ) * + 34 AS col1
----
2482

query I rowsort
SELECT + 89 + - 24 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT ALL SUM( - 34 ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL SUM ( - 34 ) col0
----
-34

query I rowsort
SELECT + 6 * + 25 * + 15 AS col2
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT DISTINCT 12 * - MAX( ( + 58 ) ) AS col1
----
-696

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT 12 * - MAX ( ( + 58 ) ) AS col1
----
-696

query I rowsort
SELECT ( + - 78 ) AS col2
----
-78

query I rowsort
SELECT + ( - 85 ) + - 24
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT - 84 DIV - 30 - 35
----
-33

skipif mysql # not compatible
query I rowsort label-7774
SELECT - 84 / - 30 - 35
----
-33

query I rowsort
SELECT + 5 * + 75
----
375

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT - COUNT( * ) + - 35 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-7776
SELECT - COUNT ( * ) + - 35 AS col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7777
SELECT + CAST( - + 78 AS SIGNED ) col1
----
-78

skipif mysql # not compatible
query I rowsort label-7777
SELECT + CAST ( - + 78 AS INTEGER ) col1
----
-78

query I rowsort
SELECT ALL + 4 * + NULLIF ( - 16, - 19 + 6 ) + 4 * 26 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7779
SELECT 69 DIV - CAST( + COUNT( * ) AS SIGNED ) + - - 42 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7779
SELECT 69 / - CAST ( + COUNT ( * ) AS INTEGER ) + - - 42 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT + SUM( ALL 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT + SUM ( ALL 79 )
----
79

query I rowsort
SELECT ALL + 33 * + 28
----
924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7782
SELECT COALESCE ( + + 71, 72 DIV + COUNT( DISTINCT + - 51 ) DIV NULLIF ( 33 * ( NULLIF ( + 39, - 48 * + ( - 15 ) ) ), 73 + COALESCE ( + 34, 50 ) ) - 64 - - 61 )
----
71

skipif mysql # not compatible
query I rowsort label-7782
SELECT COALESCE ( + + 71, 72 / + COUNT ( DISTINCT + - 51 ) / NULLIF ( 33 * ( NULLIF ( + 39, - 48 * + ( - 15 ) ) ), 73 + COALESCE ( + 34, 50 ) ) - 64 - - 61 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT NULLIF ( + COUNT( * ), + 88 * + - 78 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7783
SELECT NULLIF ( + COUNT ( * ), + 88 * + - 78 ) AS col1
----
1

query I rowsort
SELECT 61 * 26 + + 54 + - 35 + 53 * + 77
----
5686

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT DISTINCT + 94 * MIN( - - 99 ) + + 97 + 16
----
9419

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT + 94 * MIN ( - - 99 ) + + 97 + 16
----
9419

query I rowsort
SELECT ALL - COALESCE ( + 21, - - 51 ) * + - 98 + + 70
----
2128

query I rowsort
SELECT - + 92 + + + 53
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7788
SELECT DISTINCT + CASE - - 24 WHEN + + 37 + + 91 * + 32 THEN NULL WHEN - 99 THEN ( 6 ) ELSE - 40 * 54 + - CAST( NULL AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT + CASE - - 24 WHEN + + 37 + + 91 * + 32 THEN NULL WHEN - 99 THEN ( 6 ) ELSE - 40 * 54 + - CAST ( NULL AS INTEGER ) END col1
----
NULL

query I rowsort
SELECT + - 18 + - 4 + + + 23 AS col1
----
1

query II rowsort
SELECT DISTINCT + 92 * + 39 - - 30 AS col1, - 53 * - 32
----
3618
1696

onlyif mysql # DIV for integer division: 
query I rowsort label-7791
SELECT ALL - 96 DIV + - 42
----
2

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL - 96 / + - 42
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7792
SELECT - + CAST( - + ( - - 58 ) AS SIGNED ) + - 48 * COUNT( * ) + - 39 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-7792
SELECT - + CAST ( - + ( - - 58 ) AS INTEGER ) + - 48 * COUNT ( * ) + - 39 AS col0
----
-29

query I rowsort
SELECT - 87 * 19 AS col0
----
-1653

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT DISTINCT 52 * - 84 - - NULLIF ( - 36, + 26 + + 25 ) - COUNT( * )
----
-4405

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT 52 * - 84 - - NULLIF ( - 36, + 26 + + 25 ) - COUNT ( * )
----
-4405

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT DISTINCT COUNT( * ) * - 34 / - - CASE + MIN( + 81 ) WHEN 82 * 27 - + 93 THEN NULL WHEN + 43 THEN + 87 * 44 WHEN 20 + - 54 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT COUNT ( * ) * - 34 / - - CASE + MIN ( + 81 ) WHEN 82 * 27 - + 93 THEN NULL WHEN + 43 THEN + 87 * 44 WHEN 20 + - 54 THEN NULL END
----
NULL

query I rowsort
SELECT + - 66 * - - 74
----
-4884

query II rowsort
SELECT - + 17 AS col0, - 54 + + 68
----
-17
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT + 32 + + 67 * MAX( ALL + + 45 ) * + 35 + - 98 * - 61
----
111535

skipif mysql # not compatible
query I rowsort label-7798
SELECT + 32 + + 67 * MAX ( ALL + + 45 ) * + 35 + - 98 * - 61
----
111535

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT + - 60 - 22 * - MIN( DISTINCT + 59 )
----
1238

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT + - 60 - 22 * - MIN ( DISTINCT + 59 )
----
1238

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7800
SELECT - 79 col2, 48 + + NULLIF ( + 17, SUM( + 30 ) ) + 21 * ( COUNT( * ) + - CAST( NULL AS DECIMAL ) * 32 )
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-7800
SELECT - 79 col2, 48 + + NULLIF ( + 17, SUM ( + 30 ) ) + 21 * ( COUNT ( * ) + - CAST ( NULL AS REAL ) * 32 )
----
-79
NULL

query I rowsort
SELECT + 45 + + 54 * + + 49
----
2691

query I rowsort
SELECT ALL 19 * 57 AS col2
----
1083

onlyif mysql # DIV for integer division: 
query II rowsort label-7803
SELECT - 89 * 52 DIV - 13 col0, - 42 AS col0
----
356
-42

skipif mysql # not compatible
query II rowsort label-7803
SELECT - 89 * 52 / - 13 col0, - 42 AS col0
----
356
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT ALL COALESCE ( - 30, 6 * + 38 * - 83 ) * + COUNT( * ) col0
----
-30

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL COALESCE ( - 30, 6 * + 38 * - 83 ) * + COUNT ( * ) col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT - MIN( DISTINCT - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-7805
SELECT - MIN ( DISTINCT - 42 )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7806
SELECT DISTINCT + + CASE + + 49 WHEN + + MIN( + 86 ) THEN NULL ELSE CAST( 92 AS SIGNED ) END * 35
----
3220

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT + + CASE + + 49 WHEN + + MIN ( + 86 ) THEN NULL ELSE CAST ( 92 AS INTEGER ) END * 35
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT ALL SUM( ALL + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL SUM ( ALL + 51 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7808
SELECT DISTINCT 18 + 68 + ( - 72 ), - ( 76 ) * + COUNT( * ) + + 54 AS col2
----
14
-22

skipif mysql # not compatible
query II rowsort label-7808
SELECT DISTINCT 18 + 68 + ( - 72 ), - ( 76 ) * + COUNT ( * ) + + 54 AS col2
----
14
-22

query I rowsort
SELECT - ( 72 ) AS col1
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT + 41 DIV - ( + - ( - 2 ) ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-7810
SELECT + 41 / - ( + - ( - 2 ) ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT - 53 * - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-7811
SELECT - 53 * - COUNT ( * )
----
53

query I rowsort
SELECT + 59 * 57 * - 6 AS col1
----
-20178

query I rowsort
SELECT - ( + 87 ) col2
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT + 11 DIV - 21
----
0

skipif mysql # not compatible
query I rowsort label-7814
SELECT + 11 / - 21
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT ALL - 9 / + + 11 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL - 9 / + + 11 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 23 * 15 AS col1
----
345

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT ALL 29 DIV + 24
----
1

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL 29 / + 24
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7818
SELECT DISTINCT + 76 DIV + - MIN( - 83 ) + + 59 + - 26 * 40 * - 9 AS col2
----
9419

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT + 76 / + - MIN ( - 83 ) + + 59 + - 26 * 40 * - 9 AS col2
----
9419

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7819
SELECT ALL CAST( NULL AS DECIMAL ) * + + MIN( ALL 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL CAST ( NULL AS REAL ) * + + MIN ( ALL 77 )
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + + 8, - 74 + + 27 + 88 ) + + 33 AS col1
----
41

query II rowsort
SELECT 93 AS col0, + 8 + + 81
----
93
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7822
SELECT ALL CAST( - + 38 AS SIGNED ) + - + CASE + 22 WHEN - - 98 THEN NULL ELSE - 64 END * COALESCE ( + 25, - 76 * 49 + - ( - COUNT( * ) + 12 ) ) col2
----
1562

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL CAST ( - + 38 AS INTEGER ) + - + CASE + 22 WHEN - - 98 THEN NULL ELSE - 64 END * COALESCE ( + 25, - 76 * 49 + - ( - COUNT ( * ) + 12 ) ) col2
----
1562

query I rowsort
SELECT COALESCE ( - - 67, - 18, 17 ) + - 99 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT 75 * - 89 + AVG ( DISTINCT + 91 ) + + 2 + COUNT( * ) * CASE NULLIF ( COUNT( * ), 64 ) + - 60 WHEN 72 * + 49 THEN 16 WHEN MIN( DISTINCT + 73 ) THEN - AVG ( 78 ) ELSE NULL END / + 4 * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT 75 * - 89 + AVG ( DISTINCT + 91 ) + + 2 + COUNT ( * ) * CASE NULLIF ( COUNT ( * ), 64 ) + - 60 WHEN 72 * + 49 THEN 16 WHEN MIN ( DISTINCT + 73 ) THEN - AVG ( 78 ) ELSE NULL END / + 4 * - 18
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7825
SELECT 6, + 46 DIV - 71 AS col0
----
6
0

skipif mysql # not compatible
query II rowsort label-7825
SELECT 6, + 46 / - 71 AS col0
----
6
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7826
SELECT ALL - 97 AS col2, - COUNT( * ) AS col0
----
-97
-1

skipif mysql # not compatible
query II rowsort label-7826
SELECT ALL - 97 AS col2, - COUNT ( * ) AS col0
----
-97
-1

query II rowsort
SELECT + 46, + 52 col1
----
46
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7828
SELECT - 4 DIV + - 60 + + + 28 + - + 93 DIV - + 74 - + + COUNT( * ) + + ( 99 ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-7828
SELECT - 4 / + - 60 + + + 28 + - + 93 / - + 74 - + + COUNT ( * ) + + ( 99 ) AS col2
----
127

query I rowsort
SELECT 71 * 81 AS col0
----
5751

query I rowsort
SELECT 42 * 66 AS col0
----
2772

query II rowsort
SELECT 20, 80 AS col2
----
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT + 71 - ( NULLIF ( + 48, COUNT( * ) * 61 ) ) * 80
----
-3769

skipif mysql # not compatible
query I rowsort label-7832
SELECT + 71 - ( NULLIF ( + 48, COUNT ( * ) * 61 ) ) * 80
----
-3769

query I rowsort
SELECT ALL - + 38 * 34 col2
----
-1292

onlyif mysql # aggregate syntax: 
query II rowsort label-7834
SELECT ALL - 9, MAX( DISTINCT + 10 ) + - COUNT( * ) * 96 - 50 AS col2
----
-9
-136

skipif mysql # not compatible
query II rowsort label-7834
SELECT ALL - 9, MAX ( DISTINCT + 10 ) + - COUNT ( * ) * 96 - 50 AS col2
----
-9
-136

query I rowsort
SELECT DISTINCT - 17 * + - 2 * - 90 + + + 38 / - CASE 8 WHEN - 3 * 66 THEN NULL WHEN - 67 THEN ( 22 ) + 62 / + 67 WHEN 97 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 6 * + 28 + - 11 + + 1
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT + COUNT( * ) + - 25 col1
----
-24

skipif mysql # not compatible
query I rowsort label-7837
SELECT + COUNT ( * ) + - 25 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT 98 * 38 + 40 + - - ( - COUNT( * ) ) + - - 89 + 81 * ( - ( CASE + NULLIF ( 91, 77 * + 88 ) WHEN 21 * - ( - 63 * COALESCE ( 1, - 89 * + 13 ) ) THEN 47 + 12 END ) ) / + COALESCE ( 59, - 43 + - 59 ) * COUNT( DISTINCT 14 + 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT 98 * 38 + 40 + - - ( - COUNT ( * ) ) + - - 89 + 81 * ( - ( CASE + NULLIF ( 91, 77 * + 88 ) WHEN 21 * - ( - 63 * COALESCE ( 1, - 89 * + 13 ) ) THEN 47 + 12 END ) ) / + COALESCE ( 59, - 43 + - 59 ) * COUNT ( DISTINCT 14 + 93 ) AS col1
----
NULL

query I rowsort
SELECT 1 + - 91 + - 56
----
-146

query II rowsort
SELECT 91 - + + 75 AS col1, 18 AS col0
----
16
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT NULLIF ( - 94, - + 96 * MAX( - + 37 ) ) * + 93 col1
----
-8742

skipif mysql # not compatible
query I rowsort label-7841
SELECT NULLIF ( - 94, - + 96 * MAX ( - + 37 ) ) * + 93 col1
----
-8742

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT 8 - COUNT( * ) + - 49 + - - COALESCE ( 28, NULLIF ( - 30, CASE 61 WHEN 77 * - 82 + COUNT( * ) THEN 71 * + 95 + 27 END ) + 12 ) * 2 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7842
SELECT 8 - COUNT ( * ) + - 49 + - - COALESCE ( 28, NULLIF ( - 30, CASE 61 WHEN 77 * - 82 + COUNT ( * ) THEN 71 * + 95 + 27 END ) + 12 ) * 2 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7843
SELECT + COUNT( * ), + 28 AS col1
----
1
28

skipif mysql # not compatible
query II rowsort label-7843
SELECT + COUNT ( * ), + 28 AS col1
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT ALL + SUM( ALL + 23 ) * - + 4 * - 62 + - + 96
----
5608

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL + SUM ( ALL + 23 ) * - + 4 * - 62 + - + 96
----
5608

query I rowsort
SELECT CASE 29 WHEN + + 36 THEN NULL ELSE - 64 END + + - 28 AS col0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7846
SELECT ALL - 73 DIV - - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - 73 / - - 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7847
SELECT ALL - MIN( DISTINCT - - 25 ) + - + 32 + + - 59, + 4 * + 53 AS col1
----
-116
212

skipif mysql # not compatible
query II rowsort label-7847
SELECT ALL - MIN ( DISTINCT - - 25 ) + - + 32 + + - 59, + 4 * + 53 AS col1
----
-116
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7848
SELECT ALL + COALESCE ( 36, + NULLIF ( + - CASE - - 80 WHEN CAST( + ( - ( + COALESCE ( - COUNT( * ), - 21 - ( 7 ), - 73 * ( 27 ) ) ) ) AS SIGNED ) THEN - 30 ELSE - 11 DIV + AVG ( DISTINCT + 2 ) END, - 96 ) + + ( ( + 92 ) ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + COALESCE ( 36, + NULLIF ( + - CASE - - 80 WHEN CAST ( + ( - ( + COALESCE ( - COUNT ( * ), - 21 - ( 7 ), - 73 * ( 27 ) ) ) ) AS INTEGER ) THEN - 30 ELSE - 11 / + AVG ( DISTINCT + 2 ) END, - 96 ) + + ( ( + 92 ) ) ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT ( + MIN( DISTINCT - - NULLIF ( - + 57, 65 ) ) ) * + 35
----
-1995

skipif mysql # not compatible
query I rowsort label-7849
SELECT ( + MIN ( DISTINCT - - NULLIF ( - + 57, 65 ) ) ) * + 35
----
-1995

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - COUNT( ALL + 64 ) + + - 53 * + COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7850
SELECT - COUNT ( ALL + 64 ) + + - 53 * + COUNT ( * ) AS col2
----
-54

query I rowsort
SELECT 78 - + 30 + + 69 - - 34 AS col0
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7852
SELECT 92 + - 97 + + CAST( + COUNT( * ) AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-7852
SELECT 92 + - 97 + + CAST ( + COUNT ( * ) AS INTEGER )
----
-4

query II rowsort
SELECT 2 + - 3 AS col1, 68 AS col1
----
-1
68

query I rowsort
SELECT DISTINCT 59 * + 66 col2
----
3894

query I rowsort
SELECT ALL NULLIF ( + + 36, + 99 ) + 91 + - 26
----
101

query I rowsort
SELECT 27 + - 63 AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7857
SELECT + 37 DIV 9 + - 7 + 59 + + 58 - + - COUNT( * ) AS col1
----
115

skipif mysql # not compatible
query I rowsort label-7857
SELECT + 37 / 9 + - 7 + 59 + + 58 - + - COUNT ( * ) AS col1
----
115

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7858
SELECT DISTINCT 10 / 34 * NULLIF ( - + CAST( NULL AS DECIMAL ), 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT 10 / 34 * NULLIF ( - + CAST ( NULL AS REAL ), 54 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7859
SELECT 42 * - CAST( + + COUNT( * ) AS SIGNED ) * + - 98 col2
----
4116

skipif mysql # not compatible
query I rowsort label-7859
SELECT 42 * - CAST ( + + COUNT ( * ) AS INTEGER ) * + - 98 col2
----
4116

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT MAX( + - 44 ) * - 29 * + 64
----
81664

skipif mysql # not compatible
query I rowsort label-7860
SELECT MAX ( + - 44 ) * - 29 * + 64
----
81664

query I rowsort
SELECT DISTINCT 45 * + + 15
----
675

query I rowsort
SELECT ( + 93 ) + - 79
----
14

query I rowsort
SELECT ALL - - 94 col2
----
94

query II rowsort
SELECT ALL - 10 * + 77 col2, - 86
----
-770
-86

query I rowsort
SELECT - 78 * - - ( - 50 ) AS col0
----
3900

query I rowsort
SELECT + - 97 * - 90 + + + 87
----
8817

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT + 44 * ( + COUNT( * ) ) col0
----
44

skipif mysql # not compatible
query I rowsort label-7867
SELECT + 44 * ( + COUNT ( * ) ) col0
----
44

query I rowsort
SELECT - 18 + + 10 AS col1
----
-8

query I rowsort
SELECT + - ( + 9 ) AS col0
----
-9

query I rowsort
SELECT DISTINCT - 25 + 43 * + + 64 AS col0
----
2727

query II rowsort
SELECT ALL - 33 + 13 AS col1, - 55 * 5
----
-20
-275

query I rowsort
SELECT 15 / + CASE 41 WHEN 0 THEN - 95 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 48 * + + 81 - + - 37 * - - 9 * + - 1 * + - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 48 * + + 81 - + - 37 * - - 9 * + - 1 * + - 68 AS col1
----
NULL

query I rowsort
SELECT 92 + 10
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7875
SELECT 47 + - - COUNT( * ) + + + COUNT( * ) - - - 48 DIV + 79 - - 43 + - 18 * - 18 AS col0
----
416

skipif mysql # not compatible
query I rowsort label-7875
SELECT 47 + - - COUNT ( * ) + + + COUNT ( * ) - - - 48 / + 79 - - 43 + - 18 * - 18 AS col0
----
416

query I rowsort
SELECT ALL - 73 + - 32
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT ALL + 1 DIV 99 * + - 48
----
0

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + 1 / 99 * + - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT ALL NULLIF ( - COUNT( * ), - - 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL NULLIF ( - COUNT ( * ), - - 66 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT DISTINCT + 92 + 33 + + COUNT( * ) * + 12 col2
----
137

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + 92 + 33 + + COUNT ( * ) * + 12 col2
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7880
SELECT DISTINCT + COUNT( * ) DIV + + 82 * + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT + COUNT ( * ) / + + 82 * + 89 AS col2
----
0

query I rowsort
SELECT - 46 * + + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT DISTINCT - 29 * NULLIF ( - - 71, - COUNT( * ) )
----
-2059

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT - 29 * NULLIF ( - - 71, - COUNT ( * ) )
----
-2059

query II rowsort
SELECT ALL + 75 - - 97 + - 99, - 19 AS col2
----
73
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT NULLIF ( SUM( ALL + 26 ), + 45 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7884
SELECT NULLIF ( SUM ( ALL + 26 ), + 45 ) AS col0
----
26

query I rowsort
SELECT - 10 - + 63
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-7886
SELECT ALL 22 * 90 * + COUNT( * ) AS col1, + 90
----
1980
90

skipif mysql # not compatible
query II rowsort label-7886
SELECT ALL 22 * 90 * + COUNT ( * ) AS col1, + 90
----
1980
90

query I rowsort
SELECT COALESCE ( + 2, 64 )
----
2

query II rowsort
SELECT + 51 AS col0, ( 74 )
----
51
74

query I rowsort
SELECT DISTINCT + + 27 AS col1
----
27

query I rowsort
SELECT + 83 * + ( - 23 ) + 82 AS col0
----
-1827

query I rowsort
SELECT ALL + - 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT + 96 * - SUM( - 36 ) + + COUNT( * )
----
3457

skipif mysql # not compatible
query I rowsort label-7892
SELECT + 96 * - SUM ( - 36 ) + + COUNT ( * )
----
3457

query II rowsort
SELECT - 25 col2, 80 * - 21 col1
----
-25
-1680

onlyif mysql # DIV for integer division: 
query I rowsort label-7894
SELECT - - 67 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-7894
SELECT - - 67 / - 45
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7895
SELECT + 98 + + - COUNT( * ) * + COUNT( * ) AS col2, 53
----
97
53

skipif mysql # not compatible
query II rowsort label-7895
SELECT + 98 + + - COUNT ( * ) * + COUNT ( * ) AS col2, 53
----
97
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT DISTINCT + COUNT( * ) * 41 + - 4 + + ( - - COALESCE ( - 74, + COALESCE ( - 6, 10, - 89 ), 22 ) ) + + COUNT( * ) + 55 * - CAST( 33 AS SIGNED )
----
-1851

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT + COUNT ( * ) * 41 + - 4 + + ( - - COALESCE ( - 74, + COALESCE ( - 6, 10, - 89 ), 22 ) ) + + COUNT ( * ) + 55 * - CAST ( 33 AS INTEGER )
----
-1851

query I rowsort
SELECT + 12 * + - 94 + - + 45 + - + ( + - 20 ) AS col1
----
-1153

query II rowsort
SELECT DISTINCT + + 90 AS col0, 69 - 58
----
90
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7899
SELECT + CAST( + - 56 AS SIGNED ) DIV + 77 - - + 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7899
SELECT + CAST ( + - 56 AS INTEGER ) / + 77 - - + 5 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT DISTINCT COUNT( - - 91 ) * + COUNT( * ) * - 26 + 46 + - COALESCE ( + 77, + + 42 * 43 + 10 * 6 ) * - 24
----
1868

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT COUNT ( - - 91 ) * + COUNT ( * ) * - 26 + 46 + - COALESCE ( + 77, + + 42 * 43 + 10 * 6 ) * - 24
----
1868

query II rowsort
SELECT ALL 8 * - 51 - - 29 AS col0, 63 AS col0
----
-379
63

query II rowsort
SELECT + 78 * - 36 + - + 96 AS col0, + 70
----
-2904
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7903
SELECT DISTINCT + 4 * CASE WHEN NOT + 41 BETWEEN + 43 AND - CASE - 97 WHEN - 61 * COUNT( * ) THEN - CAST( COUNT( * ) AS SIGNED ) ELSE NULL END THEN + 49 DIV - 86 + COUNT( DISTINCT + NULLIF ( 18, + 40 ) - 78 ) * MAX( ALL 41 + 91 ) ELSE - 51 * - 25 - + COALESCE ( 78, + CAST( NULL AS SIGNED ) * 87, - 4 - SUM( 72 + 23 * 91 ) ) END AS col1
----
528

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT + 4 * CASE WHEN NOT + 41 BETWEEN + 43 AND - CASE - 97 WHEN - 61 * COUNT ( * ) THEN - CAST ( COUNT ( * ) AS INTEGER ) ELSE NULL END THEN + 49 / - 86 + COUNT ( DISTINCT + NULLIF ( 18, + 40 ) - 78 ) * MAX ( ALL 41 + 91 ) ELSE - 51 * - 25 - + COALESCE ( 78, + CAST ( NULL AS INTEGER ) * 87, - 4 - SUM ( 72 + 23 * 91 ) ) END AS col1
----
528

query I rowsort
SELECT + 35 + - 16 AS col0
----
19

query I rowsort
SELECT + + 66 * - ( - 76 ) * - 30 AS col1
----
-150480

query I rowsort
SELECT + + 60 * + - 56
----
-3360

query I rowsort
SELECT - ( + 54 ) AS col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7908
SELECT ALL 97 + 36 + + - 83 + - 88 * + 94 DIV + COUNT( * ) col2
----
-8222

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL 97 + 36 + + - 83 + - 88 * + 94 / + COUNT ( * ) col2
----
-8222

query I rowsort
SELECT ALL 12 * - 57 AS col1
----
-684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7910
SELECT + 24 - - - 42 - - CAST( - 60 AS SIGNED ) * - 75 * - SUM( DISTINCT 28 ) * + - 0 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7910
SELECT + 24 - - - 42 - - CAST ( - 60 AS INTEGER ) * - 75 * - SUM ( DISTINCT 28 ) * + - 0 AS col1
----
-18

query I rowsort
SELECT AVG ( - + CASE 90 WHEN - 35 THEN - 51 + + 14 END )
----
NULL

query II rowsort
SELECT ALL 6 - - + 92 AS col1, + 27 AS col1
----
98
27

query I rowsort
SELECT ALL + 15 * ( + 2 )
----
30

query I rowsort
SELECT DISTINCT NULLIF ( 36, - 15 ) AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7915
SELECT DISTINCT NULLIF ( + - 97, + + 76 ) DIV - 50 + + - 3 + - 95 - + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT NULLIF ( + - 97, + + 76 ) / - 50 + + - 3 + - 95 - + + COUNT ( * )
----
-98

query I rowsort
SELECT + 64 + + - 26 + + CASE - 94 WHEN 69 * + 39 THEN 9 * + 91 ELSE + 11 END + 60
----
109

query I rowsort
SELECT - 70 - - - 63 AS col2
----
-133

query I rowsort
SELECT ALL ( - 73 ) * + 9 AS col1
----
-657

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7919
SELECT + 40 + + + CAST( NULL AS SIGNED ) * + + ( - - 2 ), 10 AS col2
----
NULL
10

skipif mysql # not compatible
query II rowsort label-7919
SELECT + 40 + + + CAST ( NULL AS INTEGER ) * + + ( - - 2 ), 10 AS col2
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL NULLIF ( - 6, - COUNT( * ) * + - 70 + 2 )
----
-6

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL NULLIF ( - 6, - COUNT ( * ) * + - 70 + 2 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7921
SELECT + MIN( ALL - + COALESCE ( - CAST( + + CAST( ( + 3 ) AS SIGNED ) AS SIGNED ), - 82 ) ) * - + 65 AS col0
----
-195

skipif mysql # not compatible
query I rowsort label-7921
SELECT + MIN ( ALL - + COALESCE ( - CAST ( + + CAST ( ( + 3 ) AS INTEGER ) AS INTEGER ), - 82 ) ) * - + 65 AS col0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT DISTINCT ( - ( + - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT ( - ( + - COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT ALL ( - ( 77 ) ) col2
----
-77

query II rowsort
SELECT - 86 + + 18 AS col1, + 16 + 90
----
-68
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7925
SELECT - CAST( - - COUNT( * ) AS SIGNED ) DIV - 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7925
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) / - 36 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7926
SELECT DISTINCT + 71 DIV + + 73
----
0

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT + 71 / + + 73
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7927
SELECT DISTINCT - 74 DIV - 73 + + COUNT( * ) + + COUNT( ALL + 4 ) * MIN( DISTINCT + - ( - + 0 ) )
----
2

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT - 74 / - 73 + + COUNT ( * ) + + COUNT ( ALL + 4 ) * MIN ( DISTINCT + - ( - + 0 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT - - 38 * - COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7928
SELECT - - 38 * - COUNT ( * ) AS col1
----
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7929
SELECT - - CAST( NULL AS DECIMAL ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT - - CAST ( NULL AS REAL ) + + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL + 27 * - ( 9 ) + 59 - 24 + 85 + - NULLIF ( + + 59, + COUNT( * ) - NULLIF ( 46, + 13 + + 22 ) )
----
-182

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL + 27 * - ( 9 ) + 59 - 24 + 85 + - NULLIF ( + + 59, + COUNT ( * ) - NULLIF ( 46, + 13 + + 22 ) )
----
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7931
SELECT ALL 72 DIV - SUM( 59 ) + - - 9 + 80 + + 57 * 87 * - 25
----
-123887

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL 72 / - SUM ( 59 ) + - - 9 + 80 + + 57 * 87 * - 25
----
-123887

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT ALL + + 99 DIV - 4 + + 70
----
46

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL + + 99 / - 4 + + 70
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT - SUM( DISTINCT 70 ) * + 79 AS col2
----
-5530

skipif mysql # not compatible
query I rowsort label-7933
SELECT - SUM ( DISTINCT 70 ) * + 79 AS col2
----
-5530

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL + - 60 * 29 * + ( + - 71 ) + - COUNT( ALL - 51 ) * + 40
----
123500

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL + - 60 * 29 * + ( + - 71 ) + - COUNT ( ALL - 51 ) * + 40
----
123500

onlyif mysql # DIV for integer division: 
query I rowsort label-7935
SELECT DISTINCT - - 1 DIV - 4 + + 59 + 54 * + 90 + 54 + + - 39 + + - ( + 35 ) * 13 AS col1
----
4479

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT - - 1 / - 4 + + 59 + 54 * + 90 + 54 + + - 39 + + - ( + 35 ) * 13 AS col1
----
4479

onlyif mysql # DIV for integer division: 
query II rowsort label-7936
SELECT DISTINCT - 73 DIV + 69 + - 65 * 6 AS col0, + 84 DIV - + COALESCE ( + 90, + 92 + 32 + + 46 )
----
-391
0

skipif mysql # not compatible
query II rowsort label-7936
SELECT DISTINCT - 73 / + 69 + - 65 * 6 AS col0, + 84 / - + COALESCE ( + 90, + 92 + 32 + + 46 )
----
-391
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7937
SELECT DISTINCT + COUNT( * ) * 11 DIV + 14
----
0

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT + COUNT ( * ) * 11 / + 14
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7938
SELECT ALL + CASE + 67 WHEN + + 68 * - + ( + - 52 ) + 43 * - + 74 THEN NULL WHEN + CAST( NULL AS SIGNED ) * + 45 THEN NULL WHEN 72 * + 43 + 53 THEN - 53 WHEN 93 THEN NULL ELSE + NULLIF ( + COUNT( * ), 38 ) END
----
1

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL + CASE + 67 WHEN + + 68 * - + ( + - 52 ) + 43 * - + 74 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * + 45 THEN NULL WHEN 72 * + 43 + 53 THEN - 53 WHEN 93 THEN NULL ELSE + NULLIF ( + COUNT ( * ), 38 ) END
----
1

query II rowsort
SELECT + ( + 36 ) AS col0, 94 AS col1
----
36
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT + 98 + - COUNT( * ) * COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7940
SELECT + 98 + - COUNT ( * ) * COUNT ( * ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7941
SELECT DISTINCT + + 15 * - CAST( NULL AS SIGNED ) + COUNT( - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT + + 15 * - CAST ( NULL AS INTEGER ) + COUNT ( - 52 )
----
NULL

query I rowsort
SELECT + + 56 + - ( + 20 ) * + - CASE 61 WHEN - 79 THEN + 77 ELSE - 22 END AS col2
----
-384

onlyif mysql # DIV for integer division: 
query I rowsort label-7943
SELECT ALL 86 DIV + NULLIF ( + ( 48 ), 66 )
----
1

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL 86 / + NULLIF ( + ( 48 ), 66 )
----
1

query I rowsort
SELECT 27 + + - 27 + 55 AS col2
----
55

query I rowsort
SELECT ALL + 74 - - 56 AS col2
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT COUNT( * ) * - - MAX( DISTINCT + 80 ) * - + 44 + 25 AS col2, - COUNT( * )
----
-3495
-1

skipif mysql # not compatible
query II rowsort label-7946
SELECT COUNT ( * ) * - - MAX ( DISTINCT + 80 ) * - + 44 + 25 AS col2, - COUNT ( * )
----
-3495
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7947
SELECT ALL 88 - + 51 + 50 + + + 96 * - + 39 * + - ( - ( COUNT( * ) ) ) + + + 83 DIV - 28 AS col2
----
-3659

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL 88 - + 51 + 50 + + + 96 * - + 39 * + - ( - ( COUNT ( * ) ) ) + + + 83 / - 28 AS col2
----
-3659

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT DISTINCT 0 * COUNT( * ) * - 50
----
0

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT 0 * COUNT ( * ) * - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL CASE + - 42 WHEN - + 49 THEN + + 50 ELSE 18 + - + COUNT( * ) END * 46 + - + 87
----
695

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL CASE + - 42 WHEN - + 49 THEN + + 50 ELSE 18 + - + COUNT ( * ) END * 46 + - + 87
----
695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT DISTINCT ( + 17 ) * - CAST( NULL AS SIGNED ) + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT ( + 17 ) * - CAST ( NULL AS INTEGER ) + - 40 AS col2
----
NULL

query I rowsort
SELECT ALL 52 - + + 62
----
-10

query I rowsort
SELECT ( - + 40 ) + + + 56
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ( - 64 ) * COUNT( * ) + + 45 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-7953
SELECT ( - 64 ) * COUNT ( * ) + + 45 AS col1
----
-19

query II rowsort
SELECT ALL 85 AS col2, 70 - - - 23 + - - 66
----
85
113

query I rowsort
SELECT DISTINCT + 66 * - 46
----
-3036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7956
SELECT NULLIF ( 4, - - MIN( 26 ) ) DIV + + 31
----
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT NULLIF ( 4, - - MIN ( 26 ) ) / + + 31
----
0

query II rowsort
SELECT ( 27 ) - ( - + 39 ) + - 26 * 79 * + + 99 + + + 95 AS col1, + 79 + - - ( - 77 ) AS col0
----
-203185
2

query I rowsort
SELECT ALL 85 + 31 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT DISTINCT + 29 + 84 + + + COUNT( * ) + 68 * - 86 * + + 33 col0
----
-192870

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + 29 + 84 + + + COUNT ( * ) + 68 * - 86 * + + 33 col0
----
-192870

query I rowsort
SELECT ALL - - 37 + 62
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT ALL - 96 + - MIN( + - 70 ) + + ( + 45 ) + - 65 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL - 96 + - MIN ( + - 70 ) + + ( + 45 ) + - 65 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT MIN( + 3 ) * + 72 - + 61 + - ( + + 57 )
----
98

skipif mysql # not compatible
query I rowsort label-7962
SELECT MIN ( + 3 ) * + 72 - + 61 + - ( + + 57 )
----
98

query I rowsort
SELECT ALL - + ( 39 )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7964
SELECT ALL - 46 + - 93 + - + 5 DIV + 81
----
-139

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL - 46 + - 93 + - + 5 / + 81
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT 40 * - CAST( NULL AS SIGNED ) - - - COALESCE ( - 43, - 99 ) / + 93 + + ( - 21 ) + + 52 - + 11 * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7965
SELECT 40 * - CAST ( NULL AS INTEGER ) - - - COALESCE ( - 43, - 99 ) / + 93 + + ( - 21 ) + + 52 - + 11 * 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT + - COUNT( + + CASE - 78 WHEN 20 / 68 - + 11 + - - ( 90 ) + 57 THEN NULL WHEN 54 THEN + 33 / + 75 END ) * - 22 + - 47 * 37
----
-1739

skipif mysql # not compatible
query I rowsort label-7966
SELECT + - COUNT ( + + CASE - 78 WHEN 20 / 68 - + 11 + - - ( 90 ) + 57 THEN NULL WHEN 54 THEN + 33 / + 75 END ) * - 22 + - 47 * 37
----
-1739

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT + 96 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT + 96 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 82 * 1
----
-82

query I rowsort
SELECT DISTINCT - 52 - 47 AS col2
----
-99

query I rowsort
SELECT DISTINCT - - CASE - - 29 WHEN ( - + 52 ) THEN NULL WHEN + 41 + - + 19 THEN ( - 46 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 61 * + - ( - 12 ) + 16 AS col1
----
-716

query I rowsort
SELECT ALL - + ( 99 )
----
-99

query I rowsort
SELECT DISTINCT + + 90 * + + 34 col1
----
3060

query II rowsort
SELECT ALL - 11, ( - 55 ) AS col2
----
-11
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7975
SELECT 46 * + COALESCE ( - + 58, + 16 - 47 + - COUNT( * ) ), COUNT( * ) AS col0
----
-2668
1

skipif mysql # not compatible
query II rowsort label-7975
SELECT 46 * + COALESCE ( - + 58, + 16 - 47 + - COUNT ( * ) ), COUNT ( * ) AS col0
----
-2668
1

query II rowsort
SELECT ALL - 82 AS col1, 70 col0
----
-82
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT 17 + NULLIF ( 55, 23 ) * + 5 * - CAST( - 6 AS SIGNED ) - - + 70
----
1737

skipif mysql # not compatible
query I rowsort label-7977
SELECT 17 + NULLIF ( 55, 23 ) * + 5 * - CAST ( - 6 AS INTEGER ) - - + 70
----
1737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7978
SELECT 12 AS col0, 7 * + MIN( - 86 ) * - 34 + - - 85 + 69 * + - CASE - 39 WHEN + 34 THEN + - CAST( ( - 47 ) AS SIGNED ) WHEN 83 + - CASE 37 WHEN 47 - - 5 THEN + MIN( ALL + 3 ) + - 51 * + 2 WHEN - 72 * 23 + + ( CASE 74 WHEN 64 THEN 93 WHEN + 18 * + COUNT( * ) + + MAX( + 28 ) THEN + 43 ELSE - SUM( DISTINCT - 36 ) END ) THEN NULL END THEN NULL WHEN - 87 THEN 81 ELSE NULL END * + CAST( SUM( DISTINCT 35 ) AS SIGNED )
----
12
NULL

skipif mysql # not compatible
query II rowsort label-7978
SELECT 12 AS col0, 7 * + MIN ( - 86 ) * - 34 + - - 85 + 69 * + - CASE - 39 WHEN + 34 THEN + - CAST ( ( - 47 ) AS INTEGER ) WHEN 83 + - CASE 37 WHEN 47 - - 5 THEN + MIN ( ALL + 3 ) + - 51 * + 2 WHEN - 72 * 23 + + ( CASE 74 WHEN 64 THEN 93 WHEN + 18 * + COUNT ( * ) + + MAX ( + 28 ) THEN + 43 ELSE - SUM ( DISTINCT - 36 ) END ) THEN NULL END THEN NULL WHEN - 87 THEN 81 ELSE NULL END * + CAST ( SUM ( DISTINCT 35 ) AS INTEGER )
----
12
NULL

query II rowsort
SELECT + 62 AS col1, + 89
----
62
89

query I rowsort
SELECT 65 + + 66
----
131

query I rowsort
SELECT 72 * 70 * - 57 AS col2
----
-287280

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT + 84 * + 6 * + - COUNT( * ) - - 32 * 26 + - + 34
----
294

skipif mysql # not compatible
query I rowsort label-7982
SELECT + 84 * + 6 * + - COUNT ( * ) - - 32 * 26 + - + 34
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT 62 * - CASE - 35 WHEN + 41 + NULLIF ( - ( + - 20 ), - 90 ) * - CASE - 71 WHEN 58 THEN NULL WHEN - 15 THEN 61 * + COALESCE ( + 15, + 7 ) - 59 END / - 68 + + COUNT( * ) * - 2 THEN + COUNT( * ) ELSE + 94 END
----
-5828

skipif mysql # not compatible
query I rowsort label-7983
SELECT 62 * - CASE - 35 WHEN + 41 + NULLIF ( - ( + - 20 ), - 90 ) * - CASE - 71 WHEN 58 THEN NULL WHEN - 15 THEN 61 * + COALESCE ( + 15, + 7 ) - 59 END / - 68 + + COUNT ( * ) * - 2 THEN + COUNT ( * ) ELSE + 94 END
----
-5828

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT 99 * - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT 99 * - COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT - 71 * 26 * + COUNT( * )
----
-1846

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT - 71 * 26 * + COUNT ( * )
----
-1846

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL COUNT( + + 50 ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL COUNT ( + + 50 ) * 75
----
75

query I rowsort
SELECT 81 / CASE - CASE + 90 WHEN - - 97 / - - ( + 42 ) THEN + 92 END WHEN - 15 * 62 * + COALESCE ( + 71, 58 ) THEN + 13 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7988
SELECT ALL - 53 + + 56 + + SUM( ALL - - CAST( + 38 AS SIGNED ) ) - + COUNT( * ) * - 24 * - 67
----
-1567

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL - 53 + + 56 + + SUM ( ALL - - CAST ( + 38 AS INTEGER ) ) - + COUNT ( * ) * - 24 * - 67
----
-1567

onlyif mysql # DIV for integer division: 
query I rowsort label-7989
SELECT DISTINCT 4 + + + 83 DIV 24 * + 74
----
226

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT 4 + + + 83 / 24 * + 74
----
226

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7990
SELECT CAST( 17 AS SIGNED ) - 78 * 75 + + 44 DIV + 65 * - 12 + 47
----
-5786

skipif mysql # not compatible
query I rowsort label-7990
SELECT CAST ( 17 AS INTEGER ) - 78 * 75 + + 44 / + 65 * - 12 + 47
----
-5786

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT 71 + - MAX( - 44 )
----
115

skipif mysql # not compatible
query I rowsort label-7991
SELECT 71 + - MAX ( - 44 )
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT - - COUNT( * ) AS col0, MAX( - 33 ) AS col0
----
1
-33

skipif mysql # not compatible
query II rowsort label-7992
SELECT - - COUNT ( * ) AS col0, MAX ( - 33 ) AS col0
----
1
-33

query I rowsort
SELECT ALL - 10 + + 90 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7994
SELECT ALL CAST( NULL AS SIGNED ) AS col0, SUM( + 45 ) AS col2
----
NULL
45

skipif mysql # not compatible
query II rowsort label-7994
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, SUM ( + 45 ) AS col2
----
NULL
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT + 22 + - + COUNT( * ) + - 85
----
-64

skipif mysql # not compatible
query I rowsort label-7995
SELECT + 22 + - + COUNT ( * ) + - 85
----
-64

query I rowsort
SELECT + 35 + 41 AS col2
----
76

query I rowsort
SELECT NULLIF ( + 30, - 75 ) AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7998
SELECT - COUNT( * ) DIV 22 + - 66 * + 59 AS col2, - 52 AS col0
----
-3894
-52

skipif mysql # not compatible
query II rowsort label-7998
SELECT - COUNT ( * ) / 22 + - 66 * + 59 AS col2, - 52 AS col0
----
-3894
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT DISTINCT + 43 * - + 76 + + MIN( 94 ) - + + 2 * 70 AS col0
----
-3314

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT + 43 * - + 76 + + MIN ( 94 ) - + + 2 * 70 AS col0
----
-3314

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8000
SELECT + ( - COUNT( * ) ) DIV 29 + + - COUNT( * ) + - ( - + 40 ) * COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-8000
SELECT + ( - COUNT ( * ) ) / 29 + + - COUNT ( * ) + - ( - + 40 ) * COUNT ( * )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8001
SELECT ALL + 84 * - - 58 + + 60 + 11 * + - NULLIF ( - + COALESCE ( - + 32, + 71 ), 2 / + 85 * 29 - - COALESCE ( - CAST( NULL AS SIGNED ), 4 ) ) AS col0
----
4580

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL + 84 * - - 58 + + 60 + 11 * + - NULLIF ( - + COALESCE ( - + 32, + 71 ), 2 / + 85 * 29 - - COALESCE ( - CAST ( NULL AS INTEGER ), 4 ) ) AS col0
----
4580

query I rowsort
SELECT + 85 + - + 40 - - 86 AS col0
----
131

query II rowsort
SELECT ALL - 3 col0, - 2 + 7 col2
----
-3
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT - NULLIF ( - - 17, - 92 ) * + - 89 + - 47 + - COUNT( * ) - 91
----
1374

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT - NULLIF ( - - 17, - 92 ) * + - 89 + - 47 + - COUNT ( * ) - 91
----
1374

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL + 23 * + 27 + ( 90 ) * COUNT( * ) AS col2
----
711

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL + 23 * + 27 + ( 90 ) * COUNT ( * ) AS col2
----
711

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT COALESCE ( COUNT( * ), 53 - - 99 ) * 14 + - + 98
----
-84

skipif mysql # not compatible
query I rowsort label-8006
SELECT COALESCE ( COUNT ( * ), 53 - - 99 ) * 14 + - + 98
----
-84

query II rowsort
SELECT ALL + 95 AS col0, 91 * - 29
----
95
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT + NULLIF ( - CASE + + ( + 80 ) WHEN + CASE - 85 WHEN + CASE + COALESCE ( - 49, - 52, 82 ) WHEN + + 34 THEN + 24 / 24 WHEN 2 THEN - ( 39 ) WHEN 13 + + 88 THEN 40 END - - 11 THEN + 48 / + 33 END THEN 91 WHEN 53 + 63 THEN COUNT( * ) END, - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT + NULLIF ( - CASE + + ( + 80 ) WHEN + CASE - 85 WHEN + CASE + COALESCE ( - 49, - 52, 82 ) WHEN + + 34 THEN + 24 / 24 WHEN 2 THEN - ( 39 ) WHEN 13 + + 88 THEN 40 END - - 11 THEN + 48 / + 33 END THEN 91 WHEN 53 + 63 THEN COUNT ( * ) END, - 65 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8009
SELECT COUNT( * ) * + COUNT( * ) DIV - 17 + COALESCE ( 65, - + COUNT( * ), - 30 - 95 + + + 55 + 32 * - ( - + 52 ) ) col1
----
65

skipif mysql # not compatible
query I rowsort label-8009
SELECT COUNT ( * ) * + COUNT ( * ) / - 17 + COALESCE ( 65, - + COUNT ( * ), - 30 - 95 + + + 55 + 32 * - ( - + 52 ) ) col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT MIN( - 31 ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-8010
SELECT MIN ( - 31 ) col2
----
-31

query I rowsort
SELECT - 94 * + 85
----
-7990

query I rowsort
SELECT - 11 + 92 AS col0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8013
SELECT + CAST( NULL AS DECIMAL ) * - - 4 + - - 3 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8013
SELECT + CAST ( NULL AS REAL ) * - - 4 + - - 3 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8014
SELECT DISTINCT CASE 73 WHEN 73 + - - CAST( - + 70 AS SIGNED ) + + 18 * - + CAST( + 19 AS DECIMAL ) * + COALESCE ( 88, 59 * + - 18 * 28 ) THEN + 20 / + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT CASE 73 WHEN 73 + - - CAST ( - + 70 AS INTEGER ) + + 18 * - + CAST ( + 19 AS REAL ) * + COALESCE ( 88, 59 * + - 18 * 28 ) THEN + 20 / + 16 ELSE NULL END
----
NULL

query I rowsort
SELECT - 63 + 62 AS col2
----
-1

query I rowsort
SELECT ALL - 84 + + + 8
----
-76

query I rowsort
SELECT - ( - 31 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT DISTINCT - 67 + CASE + COALESCE ( + 1, - - 42 * 82 + + - COUNT( * ), COUNT( - ( - + 95 ) ) * - 18 ) WHEN 41 + 70 THEN NULL WHEN - 36 THEN - 70 WHEN 24 * + 62 - + 5 THEN COUNT( * ) * CASE 51 WHEN NULLIF ( + 53, - 57 ) / 89 THEN + 49 END + - 80 * 4 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - 67 + CASE + COALESCE ( + 1, - - 42 * 82 + + - COUNT ( * ), COUNT ( - ( - + 95 ) ) * - 18 ) WHEN 41 + 70 THEN NULL WHEN - 36 THEN - 70 WHEN 24 * + 62 - + 5 THEN COUNT ( * ) * CASE 51 WHEN NULLIF ( + 53, - 57 ) / 89 THEN + 49 END + - 80 * 4 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT - 28 * MAX( DISTINCT - 33 ) AS col1
----
924

skipif mysql # not compatible
query I rowsort label-8019
SELECT - 28 * MAX ( DISTINCT - 33 ) AS col1
----
924

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8020
SELECT - COUNT( * ) + 81 * - - 2 AS col1, ( - + COUNT( * ) ) * ( NULLIF ( - + COUNT( * ), + + CASE COUNT( * ) WHEN - MIN( DISTINCT + NULLIF ( 57, 55 ) ) THEN NULL WHEN + 55 THEN 3 - CAST( - COUNT( * ) AS DECIMAL ) / 16 END ) ) * 91 + + COUNT( * )
----
161
92

skipif mysql # not compatible
query II rowsort label-8020
SELECT - COUNT ( * ) + 81 * - - 2 AS col1, ( - + COUNT ( * ) ) * ( NULLIF ( - + COUNT ( * ), + + CASE COUNT ( * ) WHEN - MIN ( DISTINCT + NULLIF ( 57, 55 ) ) THEN NULL WHEN + 55 THEN 3 - CAST ( - COUNT ( * ) AS REAL ) / 16 END ) ) * 91 + + COUNT ( * )
----
161
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT ALL CASE 88 WHEN - 59 * - COUNT( * ) * + + 37 + - 89 THEN NULL ELSE 28 END, - 25 AS col0
----
28
-25

skipif mysql # not compatible
query II rowsort label-8021
SELECT ALL CASE 88 WHEN - 59 * - COUNT ( * ) * + + 37 + - 89 THEN NULL ELSE 28 END, - 25 AS col0
----
28
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL - COALESCE ( + MAX( DISTINCT + 80 ), - SUM( + 39 ) + + 53 ) + COUNT( * ) - + 1 * COUNT( * ) + - COUNT( * ) * + 15 + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL - COALESCE ( + MAX ( DISTINCT + 80 ), - SUM ( + 39 ) + + 53 ) + COUNT ( * ) - + 1 * COUNT ( * ) + - COUNT ( * ) * + 15 + - COUNT ( * )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8023
SELECT ALL NULLIF ( - + 26, + + CAST( - COUNT( * ) AS SIGNED ) )
----
-26

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL NULLIF ( - + 26, + + CAST ( - COUNT ( * ) AS INTEGER ) )
----
-26

query I rowsort
SELECT + - 68 * + 19 AS col2
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT + + 93 * - 71 * - COUNT( * ) col2
----
6603

skipif mysql # not compatible
query I rowsort label-8025
SELECT + + 93 * - 71 * - COUNT ( * ) col2
----
6603

query I rowsort
SELECT DISTINCT + - ( 64 ) - + + CASE + - 23 WHEN - 54 THEN - + 3 * - 99 END col2
----
NULL

query I rowsort
SELECT ALL + + 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL + - MIN( ALL - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + - MIN ( ALL - 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL 75 * + 12 + - CASE - MAX( DISTINCT 25 ) WHEN - 21 * + ( 69 ) + 22 * + - 57 THEN + ( - 94 ) / COUNT( * ) ELSE NULL END - - 7 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL 75 * + 12 + - CASE - MAX ( DISTINCT 25 ) WHEN - 21 * + ( 69 ) + 22 * + - 57 THEN + ( - 94 ) / COUNT ( * ) ELSE NULL END - - 7 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT - 88 + - MAX( + CAST( NULL AS SIGNED ) ) / + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT - 88 + - MAX ( + CAST ( NULL AS INTEGER ) ) / + 92 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT + + MIN( DISTINCT + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-8031
SELECT + + MIN ( DISTINCT + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT 22 * - + COUNT( * ) + 47 * - 91 + - 28 + 79 + - + CASE WHEN NULL NOT IN ( 87, + 44 + - + 15 ) THEN NULL WHEN + 24 IS NOT NULL THEN + NULLIF ( - 8, 92 * 15 + COUNT( * ) * + 33 ) ELSE NULL END * 76 + + 96
----
-3544

skipif mysql # not compatible
query I rowsort label-8032
SELECT 22 * - + COUNT ( * ) + 47 * - 91 + - 28 + 79 + - + CASE WHEN NULL NOT IN ( 87, + 44 + - + 15 ) THEN NULL WHEN + 24 IS NOT NULL THEN + NULLIF ( - 8, 92 * 15 + COUNT ( * ) * + 33 ) ELSE NULL END * 76 + + 96
----
-3544

query I rowsort
SELECT + - 6 * + 86
----
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT + COUNT( * ) + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8034
SELECT + COUNT ( * ) + 51 AS col1
----
52

query I rowsort
SELECT 61 * + 84 * 93 - 73 AS col1
----
476459

query I rowsort
SELECT + NULLIF ( - 88, 71 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT ( + SUM( ALL + 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8037
SELECT ( + SUM ( ALL + 1 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT + COUNT( * ) * COALESCE ( ( - 75 ), - COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-8038
SELECT + COUNT ( * ) * COALESCE ( ( - 75 ), - COUNT ( * ) )
----
-75

query I rowsort
SELECT + 70 + - - 80 + 58 AS col2
----
208

query I rowsort
SELECT DISTINCT - ( + 93 ) * + 19 + + 7
----
-1760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT + NULLIF ( + - 17, - 97 ) * + 57 - - 50 + - + CASE 63 WHEN + + 75 THEN - CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT + NULLIF ( + - 17, - 97 ) * + 57 - - 50 + - + CASE 63 WHEN + + 75 THEN - CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8042
SELECT ALL + 25 DIV - 23 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8042
SELECT ALL + 25 / - 23 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8043
SELECT ALL COUNT( 62 ) * + 0 + - CAST( - CASE - 74 WHEN 13 * + NULLIF ( - - 70, - 42 * + 43 * 30 ) / + 56 THEN 52 * 88 ELSE NULL END AS SIGNED ) * 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL COUNT ( 62 ) * + 0 + - CAST ( - CASE - 74 WHEN 13 * + NULLIF ( - - 70, - 42 * + 43 * 30 ) / + 56 THEN 52 * 88 ELSE NULL END AS INTEGER ) * 82 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT - 75 * + MIN( DISTINCT + COALESCE ( - 30, + 65 + - 85 ) ) * - 70 - - + ( + + 36 ) + + + 10 * - 39 AS col1
----
-157854

skipif mysql # not compatible
query I rowsort label-8044
SELECT - 75 * + MIN ( DISTINCT + COALESCE ( - 30, + 65 + - 85 ) ) * - 70 - - + ( + + 36 ) + + + 10 * - 39 AS col1
----
-157854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8045
SELECT + 52 + COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT + 52 + COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8046
SELECT COALESCE ( - - CASE + 16 WHEN 62 DIV CAST( NULL AS SIGNED ) THEN + 42 DIV + 38 DIV + 64 + 36 END, + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-8046
SELECT COALESCE ( - - CASE + 16 WHEN 62 / CAST ( NULL AS INTEGER ) THEN + 42 / + 38 / + 64 + 36 END, + 47 )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8047
SELECT ALL 22 DIV 20
----
1

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL 22 / 20
----
1

query I rowsort
SELECT COALESCE ( + 44, - + 22 + + - 41, + - ( + + 37 ) ) AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT - 92 + - 21 DIV - ( + 19 )
----
-91

skipif mysql # not compatible
query I rowsort label-8049
SELECT - 92 + - 21 / - ( + 19 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT + COUNT( * ) - + - 41
----
42

skipif mysql # not compatible
query I rowsort label-8050
SELECT + COUNT ( * ) - + - 41
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT COUNT( DISTINCT - - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-8051
SELECT COUNT ( DISTINCT - - 75 )
----
1

query I rowsort
SELECT + NULLIF ( - NULLIF ( 10, + + 36 ), + 38 ) * 87 - - 46 AS col2
----
-824

query I rowsort
SELECT ALL 62 * - ( - 68 ) * + 45
----
189720

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT DISTINCT MAX( + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT MAX ( + 11 ) AS col1
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-8055
SELECT ALL 17 AS col0, + 26 DIV + 92
----
17
0

skipif mysql # not compatible
query II rowsort label-8055
SELECT ALL 17 AS col0, + 26 / + 92
----
17
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + + COUNT( * ) + + 42
----
43

skipif mysql # not compatible
query I rowsort label-8056
SELECT + + COUNT ( * ) + + 42
----
43

query II rowsort
SELECT 87 AS col2, + 98 * + 24 * 27
----
87
63504

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT - MIN( 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-8058
SELECT - MIN ( 91 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8059
SELECT - - 22 - + 85 + 61 AS col0, - CAST( + - 69 AS SIGNED ) * + - 5 AS col2, + 56
----
-2
-345
56

skipif mysql # not compatible
query III rowsort label-8059
SELECT - - 22 - + 85 + 61 AS col0, - CAST ( + - 69 AS INTEGER ) * + - 5 AS col2, + 56
----
-2
-345
56

onlyif mysql # aggregate syntax: 
query III rowsort label-8060
SELECT - + 47 - - NULLIF ( - 72, 19 ) col0, 29 - + - 44 AS col1, - + 74 + + + NULLIF ( - 2, - - AVG ( DISTINCT - ( + 96 ) ) / 15 * 57 + COUNT( * ) * COUNT( * ) ) + 35
----
-119
73
-41

skipif mysql # not compatible
query III rowsort label-8060
SELECT - + 47 - - NULLIF ( - 72, 19 ) col0, 29 - + - 44 AS col1, - + 74 + + + NULLIF ( - 2, - - AVG ( DISTINCT - ( + 96 ) ) / 15 * 57 + COUNT ( * ) * COUNT ( * ) ) + 35
----
-119
73
-41

query I rowsort
SELECT - - 78 * + 61 + - 32
----
4726

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT ALL + 67 DIV 27 + - 54 + - + 0 DIV - 54 * + 17 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL + 67 / 27 + - 54 + - + 0 / - 54 * + 17 AS col0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT - 93 DIV - + 10
----
9

skipif mysql # not compatible
query I rowsort label-8063
SELECT - 93 / - + 10
----
9

query II rowsort
SELECT 98 col0, - 69 AS col2
----
98
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT - CAST( NULL AS SIGNED ) + - + MIN( 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT - CAST ( NULL AS INTEGER ) + - + MIN ( 28 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8066
SELECT DISTINCT COUNT( * ) col2, - 64 DIV + - 53
----
1
1

skipif mysql # not compatible
query II rowsort label-8066
SELECT DISTINCT COUNT ( * ) col2, - 64 / + - 53
----
1
1

query I rowsort
SELECT CASE - 43 WHEN + 46 / 34 + - 15 THEN - - 42 - - 48 ELSE NULL END / + ( NULLIF ( - 57, - - 26 - - - 63 * + 40 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8068
SELECT - CAST( NULL AS SIGNED ) + + + SUM( ALL 20 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8068
SELECT - CAST ( NULL AS INTEGER ) + + + SUM ( ALL 20 ) AS col2
----
NULL

query I rowsort
SELECT - ( - - 65 ) col1
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT + 42 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT + 42 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8071
SELECT ALL + - 33 * + CAST( - + NULLIF ( - NULLIF ( - - COUNT( * ), - 5 * - 35 ), - + 71 + + 84 + + 40 * - - 71 + - 91 - + + 65 / - 95 ) AS SIGNED ) + - 58
----
-91

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL + - 33 * + CAST ( - + NULLIF ( - NULLIF ( - - COUNT ( * ), - 5 * - 35 ), - + 71 + + 84 + + 40 * - - 71 + - 91 - + + 65 / - 95 ) AS INTEGER ) + - 58
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT 14 + - 35 * + + COALESCE ( COUNT( * ), - 2 ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-8072
SELECT 14 + - 35 * + + COALESCE ( COUNT ( * ), - 2 ) col0
----
-21

query I rowsort
SELECT 45 * + 71 AS col0
----
3195

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT DISTINCT ( + 99 ) + - + 31 * + + 75 * - + NULLIF ( + ( - + 78 ), NULLIF ( - COUNT( * ), 52 ) ) * - 60 * + 60
----
652860099

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT ( + 99 ) + - + 31 * + + 75 * - + NULLIF ( + ( - + 78 ), NULLIF ( - COUNT ( * ), 52 ) ) * - 60 * + 60
----
652860099

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL 88 + - + ( COUNT( * ) ) + 9 - + COALESCE ( + 14, - - 39 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL 88 + - + ( COUNT ( * ) ) + 9 - + COALESCE ( + 14, - - 39 ) col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT DISTINCT 17 + - 61 + - + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT 17 + - 61 + - + COUNT ( * )
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8077
SELECT ALL 29 + 94 + MIN( ALL ( + + 62 ) ) * + + COUNT( * ) * 92 - MIN( ALL - + 19 ) * 19 + - - 45 * CASE + 97 WHEN - 89 THEN 6 + MIN( 74 + - COALESCE ( - 49, NULLIF ( ( + 75 ), + 47 * 44 ), + CAST( NULL AS SIGNED ), 22 ) ) WHEN + 79 + 55 THEN 3 * 84 WHEN + 24 THEN NULL WHEN CAST( 59 AS SIGNED ) THEN + 29 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL 29 + 94 + MIN ( ALL ( + + 62 ) ) * + + COUNT ( * ) * 92 - MIN ( ALL - + 19 ) * 19 + - - 45 * CASE + 97 WHEN - 89 THEN 6 + MIN ( 74 + - COALESCE ( - 49, NULLIF ( ( + 75 ), + 47 * 44 ), + CAST ( NULL AS INTEGER ), 22 ) ) WHEN + 79 + 55 THEN 3 * 84 WHEN + 24 THEN NULL WHEN CAST ( 59 AS INTEGER ) THEN + 29 ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8078
SELECT + 9 * - - 67 * 71 * + 34 + - + 39 + CASE 19 WHEN + - 78 * + + 28 THEN MIN( CAST( NULL AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT + 9 * - - 67 * 71 * + 34 + - + 39 + CASE 19 WHEN + - 78 * + + 28 THEN MIN ( CAST ( NULL AS INTEGER ) ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 81 * 76
----
6156

query I rowsort
SELECT ( + COALESCE ( + 4, - + 65 ) ) * + + 46 AS col1
----
184

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL 75 + 35 - - MIN( 22 ) * + + ( + 30 )
----
770

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL 75 + 35 - - MIN ( 22 ) * + + ( + 30 )
----
770

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8082
SELECT DISTINCT 45 * 57 AS col1, CAST( NULL AS SIGNED )
----
2565
NULL

skipif mysql # not compatible
query II rowsort label-8082
SELECT DISTINCT 45 * 57 AS col1, CAST ( NULL AS INTEGER )
----
2565
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8083
SELECT ALL - SUM( DISTINCT + 7 ) AS col2, - MIN( + + ( - 80 ) ) col2, - 56 * + - COUNT( * ) AS col1
----
-7
80
56

skipif mysql # not compatible
query III rowsort label-8083
SELECT ALL - SUM ( DISTINCT + 7 ) AS col2, - MIN ( + + ( - 80 ) ) col2, - 56 * + - COUNT ( * ) AS col1
----
-7
80
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL MAX( ALL + + 52 ) - 96 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL MAX ( ALL + + 52 ) - 96 AS col1
----
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-8085
SELECT DISTINCT + 77 DIV 45 AS col1, + 89 - - - 68 AS col1
----
1
21

skipif mysql # not compatible
query II rowsort label-8085
SELECT DISTINCT + 77 / 45 AS col1, + 89 - - - 68 AS col1
----
1
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT 77 * - CASE - 13 WHEN - ( COUNT( * ) ) THEN 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT 77 * - CASE - 13 WHEN - ( COUNT ( * ) ) THEN 92 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT COUNT( * ) * - 95 + - 10 + - 2 * 35
----
-175

skipif mysql # not compatible
query I rowsort label-8087
SELECT COUNT ( * ) * - 95 + - 10 + - 2 * 35
----
-175

query I rowsort
SELECT 42 + - - ( 27 ) AS col2
----
69

query I rowsort
SELECT + COALESCE ( 9, 64 ) * + + 67
----
603

onlyif mysql # DIV for integer division: 
query II rowsort label-8090
SELECT DISTINCT - 29 DIV - 98 col2, 21 + 14
----
0
35

skipif mysql # not compatible
query II rowsort label-8090
SELECT DISTINCT - 29 / - 98 col2, 21 + 14
----
0
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT + SUM( DISTINCT 70 ) * + 66 * - ( 94 )
----
-434280

skipif mysql # not compatible
query I rowsort label-8091
SELECT + SUM ( DISTINCT 70 ) * + 66 * - ( 94 )
----
-434280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8092
SELECT DISTINCT + + 23 * + 84 * + 68 * - - 66 - - 10 - 16 * - + 89 * + 90 DIV - - COUNT( * ) AS col1
----
8798986

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + + 23 * + 84 * + 68 * - - 66 - - 10 - 16 * - + 89 * + 90 / - - COUNT ( * ) AS col1
----
8798986

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8093
SELECT ALL + + 73 * - - CASE + 51 WHEN - NULLIF ( - + 9, + 16 ) + + NULLIF ( + + 37, + - 64 ) THEN - AVG ( ALL 75 ) WHEN - 80 THEN NULL END / CAST( NULL AS SIGNED ) * + + COUNT( * ) + - 69 * - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL + + 73 * - - CASE + 51 WHEN - NULLIF ( - + 9, + 16 ) + + NULLIF ( + + 37, + - 64 ) THEN - AVG ( ALL 75 ) WHEN - 80 THEN NULL END / CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + - 69 * - 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT - MIN( ALL 40 ) - - ( + COUNT( * ) )
----
-39

skipif mysql # not compatible
query I rowsort label-8094
SELECT - MIN ( ALL 40 ) - - ( + COUNT ( * ) )
----
-39

query I rowsort
SELECT 39 * - - 22 AS col2
----
858

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT + 63 + - + 2 DIV + 89 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8096
SELECT + 63 + - + 2 / + 89 AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8097
SELECT DISTINCT + + 56 DIV - ( + 29 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT + + 56 / - ( + 29 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL - 25 * - NULLIF ( 98, + SUM( ALL 73 ) + 18 ) AS col0
----
2450

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - 25 * - NULLIF ( 98, + SUM ( ALL 73 ) + 18 ) AS col0
----
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT DISTINCT + 43 * + COUNT( * ) + - 97
----
-54

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT + 43 * + COUNT ( * ) + - 97
----
-54

query II rowsort
SELECT ALL CASE + 78 WHEN + - 8 * + + 6 / - 68 / + - 31 THEN + 59 - - + 40 * - - 52 END * + + 33 + + 86 AS col1, - 23 * + ( + + ( - + 54 ) ) * + 86 AS col0
----
NULL
106812

onlyif mysql # DIV for integer division: 
query I rowsort label-8101
SELECT 75 DIV 31 * - 64
----
-128

skipif mysql # not compatible
query I rowsort label-8101
SELECT 75 / 31 * - 64
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT 45 + - NULLIF ( - 97, + COUNT( * ) ) - 4 + + MIN( + 62 ) - 85 - + NULLIF ( + - COUNT( DISTINCT + + 79 ), + 12 ) * - 43 * CASE - - 98 WHEN CAST( NULL AS SIGNED ) THEN + 34 ELSE NULL END + - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT 45 + - NULLIF ( - 97, + COUNT ( * ) ) - 4 + + MIN ( + 62 ) - 85 - + NULLIF ( + - COUNT ( DISTINCT + + 79 ), + 12 ) * - 43 * CASE - - 98 WHEN CAST ( NULL AS INTEGER ) THEN + 34 ELSE NULL END + - 37 AS col0
----
NULL

query I rowsort
SELECT 81 * + 75
----
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL - 25 * ( + + MAX( ALL 25 ) ) AS col2
----
-625

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL - 25 * ( + + MAX ( ALL 25 ) ) AS col2
----
-625

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT SUM( ALL - + NULLIF ( - 12, + 26 * - 55 - 69 ) )
----
12

skipif mysql # not compatible
query I rowsort label-8105
SELECT SUM ( ALL - + NULLIF ( - 12, + 26 * - 55 - 69 ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT ALL MAX( + 4 ) - - 5
----
9

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL MAX ( + 4 ) - - 5
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL + 63 * - - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL + 63 * - - COUNT ( * )
----
63

query I rowsort
SELECT DISTINCT + 54 - - + 43
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT + ( 1 ) * + + 80 + 52 + + COALESCE ( - - 57, + COUNT( * ) ) AS col2
----
189

skipif mysql # not compatible
query I rowsort label-8109
SELECT + ( 1 ) * + + 80 + 52 + + COALESCE ( - - 57, + COUNT ( * ) ) AS col2
----
189

query I rowsort
SELECT 86 + 29
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ( ( - 3 ) ) * + - COUNT( COALESCE ( 72, - 32 - 97 ) ) + - + 68 col1
----
-65

skipif mysql # not compatible
query I rowsort label-8111
SELECT ( ( - 3 ) ) * + - COUNT ( COALESCE ( 72, - 32 - 97 ) ) + - + 68 col1
----
-65

query I rowsort
SELECT - 39 + - 45
----
-84

query II rowsort
SELECT ALL + 0 * - 37 - + 10, 55 col0
----
-10
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + - NULLIF ( MAX( 54 ), 8 ) - + 42 * - 81
----
3348

skipif mysql # not compatible
query I rowsort label-8114
SELECT + - NULLIF ( MAX ( 54 ), 8 ) - + 42 * - 81
----
3348

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT + + 62 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-8115
SELECT + + 62 / + 86
----
0

query I rowsort
SELECT ALL - - 67 * + 95 AS col2
----
6365

query I rowsort
SELECT + + 45 + - + 46
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL - COUNT( * ) * 50 + + 24 + - 15 * - 42
----
604

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - COUNT ( * ) * 50 + + 24 + - 15 * - 42
----
604

onlyif mysql # aggregate syntax: 
query II rowsort label-8119
SELECT ALL - COUNT( * ), COUNT( * ) + - CASE + 38 WHEN 30 THEN - ( + 76 ) / + COUNT( * ) WHEN + + 70 / - 22 THEN ( 95 ) * + 87 ELSE NULL END AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8119
SELECT ALL - COUNT ( * ), COUNT ( * ) + - CASE + 38 WHEN 30 THEN - ( + 76 ) / + COUNT ( * ) WHEN + + 70 / - 22 THEN ( 95 ) * + 87 ELSE NULL END AS col1
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8120
SELECT + - CAST( + COUNT( ALL + 75 ) AS SIGNED ) + - 27 * + 4 AS col2, - 85 AS col1
----
-109
-85

skipif mysql # not compatible
query II rowsort label-8120
SELECT + - CAST ( + COUNT ( ALL + 75 ) AS INTEGER ) + - 27 * + 4 AS col2, - 85 AS col1
----
-109
-85

query I rowsort
SELECT DISTINCT ( 76 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT + 41 + - - 43 * - 39 * + + 17 + + NULLIF ( - COUNT( * ), + 27 )
----
-28469

skipif mysql # not compatible
query I rowsort label-8122
SELECT + 41 + - - 43 * - 39 * + + 17 + + NULLIF ( - COUNT ( * ), + 27 )
----
-28469

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT + COUNT( * ) * 15 - 85 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8123
SELECT + COUNT ( * ) * 15 - 85 AS col1
----
-70

query I rowsort
SELECT ALL 85 + - 98 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8125
SELECT + 24 - COALESCE ( - 14, - CASE 20 WHEN + 40 / - - 74 * - COUNT( * ) + - CAST( 87 AS DECIMAL ) THEN NULL WHEN - 51 * MAX( - 46 ) THEN 48 ELSE NULL END ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8125
SELECT + 24 - COALESCE ( - 14, - CASE 20 WHEN + 40 / - - 74 * - COUNT ( * ) + - CAST ( 87 AS REAL ) THEN NULL WHEN - 51 * MAX ( - 46 ) THEN 48 ELSE NULL END ) AS col1
----
38

query I rowsort
SELECT ALL - 24 + 27 * + 76
----
2028

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8127
SELECT + - CAST( NULL AS DECIMAL ) + + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT + - CAST ( NULL AS REAL ) + + 10 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 33 * + + 73
----
2409

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL + - NULLIF ( - NULLIF ( + 52, - - 53 ), 91 ) * + MIN( - 34 ) AS col2
----
-1768

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + - NULLIF ( - NULLIF ( + 52, - - 53 ), 91 ) * + MIN ( - 34 ) AS col2
----
-1768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8130
SELECT + - 94 + + COUNT( * ) DIV + 91 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8130
SELECT + - 94 + + COUNT ( * ) / + 91 AS col1
----
-94

query I rowsort
SELECT ALL 53 + 64 col2
----
117

query II rowsort
SELECT 2, - 24 AS col0
----
2
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT - CASE - 74 WHEN + - 96 - + 88 THEN NULL ELSE + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8133
SELECT - CASE - 74 WHEN + - 96 - + 88 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8134
SELECT 10 AS col0, ( + + 63 ) DIV - 89 + - 22 * - + 75
----
10
1650

skipif mysql # not compatible
query II rowsort label-8134
SELECT 10 AS col0, ( + + 63 ) / - 89 + - 22 * - + 75
----
10
1650

query I rowsort
SELECT + 11 * 64 * + + 79 AS col1
----
55616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT 66 / + 94 + ( CAST( NULL AS SIGNED ) ) * SUM( + + 51 ) + 53 * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT 66 / + 94 + ( CAST ( NULL AS INTEGER ) ) * SUM ( + + 51 ) + 53 * - 34
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8137
SELECT ALL + COUNT( * ) AS col0, 75
----
1
75

skipif mysql # not compatible
query II rowsort label-8137
SELECT ALL + COUNT ( * ) AS col0, 75
----
1
75

query I rowsort
SELECT ( - + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-8139
SELECT ALL + 6, - COUNT( * ) AS col0
----
6
-1

skipif mysql # not compatible
query II rowsort label-8139
SELECT ALL + 6, - COUNT ( * ) AS col0
----
6
-1

query II rowsort
SELECT ALL + 10 AS col1, 39 AS col2
----
10
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT - 81 * + CASE ( + 26 ) WHEN + 43 THEN + 61 WHEN 20 * + 27 THEN 18 + - 65 + 70 * 1 ELSE + 63 * - AVG ( + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT - 81 * + CASE ( + 26 ) WHEN + 43 THEN + 61 WHEN 20 * + 27 THEN 18 + - 65 + 70 * 1 ELSE + 63 * - AVG ( + CAST ( NULL AS INTEGER ) ) END
----
NULL

query I rowsort
SELECT NULLIF ( - + 23, 82 * + 73 + + - ( + 20 ) )
----
-23

query I rowsort
SELECT ALL 6 * - - 33 - - 49
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT DISTINCT + COALESCE ( + - COUNT( * ), COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT + COALESCE ( + - COUNT ( * ), COUNT ( * ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8145
SELECT ALL - 95 DIV - 16
----
5

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL - 95 / - 16
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT COALESCE ( + COALESCE ( 35, + + 72 ), + CAST( + 10 AS SIGNED ) * + 38 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-8146
SELECT COALESCE ( + COALESCE ( 35, + + 72 ), + CAST ( + 10 AS INTEGER ) * + 38 ) AS col0
----
35

query III rowsort
SELECT ALL + ( - 91 ) AS col0, 95 + + 35 AS col0, - + 42
----
-91
130
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT DISTINCT - CASE - 30 WHEN - - COUNT( + + 54 ) THEN 51 WHEN + + 97 THEN NULL ELSE NULL END * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT - CASE - 30 WHEN - - COUNT ( + + 54 ) THEN 51 WHEN + + 97 THEN NULL ELSE NULL END * 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT - COUNT( * ) * 29
----
-29

skipif mysql # not compatible
query I rowsort label-8149
SELECT - COUNT ( * ) * 29
----
-29

onlyif mysql # aggregate syntax: 
query III rowsort label-8150
SELECT ALL + MAX( DISTINCT 75 ) col1, 64 + 21 AS col0, - - 91 * - 52 + 38 * COUNT( * ) + - - 71
----
75
85
-4623

skipif mysql # not compatible
query III rowsort label-8150
SELECT ALL + MAX ( DISTINCT 75 ) col1, 64 + 21 AS col0, - - 91 * - 52 + 38 * COUNT ( * ) + - - 71
----
75
85
-4623

query I rowsort
SELECT - + 66 * - 97 AS col0
----
6402

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8152
SELECT DISTINCT + + CAST( NULL AS SIGNED ), + 43 AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-8152
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), + 43 AS col1
----
NULL
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8153
SELECT ALL + + 10 * - + CAST( NULL AS SIGNED ) * + 4 + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL + + 10 * - + CAST ( NULL AS INTEGER ) * + 4 + + 86
----
NULL

query II rowsort
SELECT - 59 + + - 42 AS col0, 41
----
-101
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - 48 * 77 * - COUNT( + 33 ) - - ( - 84 ) AS col2
----
3612

skipif mysql # not compatible
query I rowsort label-8155
SELECT - 48 * 77 * - COUNT ( + 33 ) - - ( - 84 ) AS col2
----
3612

query I rowsort
SELECT ALL - + 39 * - + 34
----
1326

query I rowsort
SELECT ALL - - 90 * + + 87 + - - 22 + - - 94 AS col1
----
7946

query I rowsort
SELECT + + 8 + - 25 AS col0
----
-17

query I rowsort
SELECT - - 39 * - 75 * - 18 AS col1
----
52650

query I rowsort
SELECT + - 33 + - 32 AS col2
----
-65

query I rowsort
SELECT + + 58 + - ( + 75 ) AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8162
SELECT ALL + ( ( 32 ) ) + 7 DIV ( - 78 ), + CAST( + - 7 AS DECIMAL ) * + ( SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) ) * + - 42 AS col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-8162
SELECT ALL + ( ( 32 ) ) + 7 / ( - 78 ), + CAST ( + - 7 AS REAL ) * + ( SUM ( DISTINCT + CAST ( NULL AS REAL ) ) ) * + - 42 AS col2
----
32
NULL

query II rowsort
SELECT DISTINCT 21 AS col0, - 74
----
21
-74

query II rowsort
SELECT ALL - 84 + - - 26 - - 17 + 90 AS col2, 70 AS col0
----
49
70

query I rowsort
SELECT - - ( + 94 )
----
94

query II rowsort
SELECT - - 99 AS col0, 9
----
99
9

query I rowsort
SELECT ALL + 92 + 44 + - 98 col1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8168
SELECT ALL - COUNT( * ) * - 57 + + 47 + + ( ( + - COUNT( * ) ) ) DIV - 3 DIV + - COUNT( * )
----
104

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - COUNT ( * ) * - 57 + + 47 + + ( ( + - COUNT ( * ) ) ) / - 3 / + - COUNT ( * )
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-8169
SELECT + 2 DIV + ( + 60 ) * - - 52
----
0

skipif mysql # not compatible
query I rowsort label-8169
SELECT + 2 / + ( + 60 ) * - - 52
----
0

query II rowsort
SELECT DISTINCT 88, 64 + - 4 * - ( - - 5 ) col1
----
88
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT ALL 85 + - + ( - CASE - + 54 WHEN CAST( + 75 AS SIGNED ) THEN NULL WHEN - 68 THEN - 83 WHEN + 29 + 45 + - + 89 + - 47 THEN NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL 85 + - + ( - CASE - + 54 WHEN CAST ( + 75 AS INTEGER ) THEN NULL WHEN - 68 THEN - 83 WHEN + 29 + 45 + - + 89 + - 47 THEN NULL END ) AS col1
----
NULL

query II rowsort
SELECT - NULLIF ( + - 56, + 65 * 39 ) - + 64 AS col0, 31
----
-8
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8173
SELECT + COUNT( * ) + + + CAST( NULL AS SIGNED ) + - COUNT( 25 ) * - 87 AS col2, + 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-8173
SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) + - COUNT ( 25 ) * - 87 AS col2, + 7 AS col2
----
NULL
7

query I rowsort
SELECT + 88 + 30 + - 59 AS col2
----
59

query I rowsort
SELECT + 94 * + ( 54 ) * - 25
----
-126900

query I rowsort
SELECT ALL 99 - + 52 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8177
SELECT ALL MIN( DISTINCT 43 ) AS col0, - CAST( NULL AS SIGNED ) * COALESCE ( 91, + COUNT( * ) )
----
43
NULL

skipif mysql # not compatible
query II rowsort label-8177
SELECT ALL MIN ( DISTINCT 43 ) AS col0, - CAST ( NULL AS INTEGER ) * COALESCE ( 91, + COUNT ( * ) )
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT 72 * + - 89 * - - COUNT( * ) * + 1 + 87
----
-6321

skipif mysql # not compatible
query I rowsort label-8178
SELECT 72 * + - 89 * - - COUNT ( * ) * + 1 + 87
----
-6321

query I rowsort
SELECT - 28 * + 51 col0
----
-1428

query II rowsort
SELECT + 39 * + + 16 * - 58 AS col2, - 2 * 83
----
-36192
-166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT + CAST( - - 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-8181
SELECT + CAST ( - - 22 AS INTEGER )
----
22

query I rowsort
SELECT ALL 97 * 22 * - + 52
----
-110968

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT DISTINCT MIN( DISTINCT + - 58 ) + + 8 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT MIN ( DISTINCT + - 58 ) + + 8 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-8184
SELECT ALL + - 79 + 19 AS col0, 79 + + 75 - - COUNT( * )
----
-60
155

skipif mysql # not compatible
query II rowsort label-8184
SELECT ALL + - 79 + 19 AS col0, 79 + + 75 - - COUNT ( * )
----
-60
155

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT NULLIF ( 35, + SUM( ALL - - 25 ) / + 30 * + AVG ( - 70 ) + + - ( + 53 ) * - 16 )
----
35

skipif mysql # not compatible
query I rowsort label-8185
SELECT NULLIF ( 35, + SUM ( ALL - - 25 ) / + 30 * + AVG ( - 70 ) + + - ( + 53 ) * - 16 )
----
35

query I rowsort
SELECT DISTINCT - 98 + - 96 + + 35 col1
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT DISTINCT + 81 + + NULLIF ( + 10, + 69 * 10 * 49 + CAST( 75 AS SIGNED ) * + 46 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT + 81 + + NULLIF ( + 10, + 69 * 10 * 49 + CAST ( 75 AS INTEGER ) * + 46 ) AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8188
SELECT DISTINCT + - 66 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT + - 66 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8189
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) + - - COUNT( * ) + + + NULLIF ( + 32, 46 )
----
32

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) + - - COUNT ( * ) + + + NULLIF ( + 32, 46 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8190
SELECT - CASE + ( + 19 ) WHEN CAST( NULL AS SIGNED ) * + 71 THEN - 63 * - - 2 / + - COUNT( * ) + - - 1 + - + 17 + - COUNT( ALL + 16 ) * - 38 * 2 / + + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT - CASE + ( + 19 ) WHEN CAST ( NULL AS INTEGER ) * + 71 THEN - 63 * - - 2 / + - COUNT ( * ) + - - 1 + - + 17 + - COUNT ( ALL + 16 ) * - 38 * 2 / + + 96 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8191
SELECT DISTINCT + CASE + - 68 WHEN - 24 * CAST( 28 AS SIGNED ) + + 97 + + COUNT( * ) * CASE + ( 47 ) WHEN + SUM( - 46 ) THEN + - CASE + - 57 WHEN MAX( ALL 45 ) * 97 * - 54 + CASE + COUNT( * ) WHEN + 25 THEN + CAST( + 61 AS SIGNED ) * - 24 END * 37 THEN + 77 + 1 WHEN + 68 + - 0 THEN NULL WHEN + 49 THEN NULL END WHEN 10 THEN NULL END THEN 94 + 95 * COUNT( * ) END + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT + CASE + - 68 WHEN - 24 * CAST ( 28 AS INTEGER ) + + 97 + + COUNT ( * ) * CASE + ( 47 ) WHEN + SUM ( - 46 ) THEN + - CASE + - 57 WHEN MAX ( ALL 45 ) * 97 * - 54 + CASE + COUNT ( * ) WHEN + 25 THEN + CAST ( + 61 AS INTEGER ) * - 24 END * 37 THEN + 77 + 1 WHEN + 68 + - 0 THEN NULL WHEN + 49 THEN NULL END WHEN 10 THEN NULL END THEN 94 + 95 * COUNT ( * ) END + 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT COUNT( * ) + 63 + + 55 * 30
----
1714

skipif mysql # not compatible
query I rowsort label-8192
SELECT COUNT ( * ) + 63 + + 55 * 30
----
1714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8193
SELECT 88 * 33 - + - 15 AS col2, CAST( + - 95 AS SIGNED )
----
2919
-95

skipif mysql # not compatible
query II rowsort label-8193
SELECT 88 * 33 - + - 15 AS col2, CAST ( + - 95 AS INTEGER )
----
2919
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT ALL - ( ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL - ( ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 95 + - 70
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT 14 + + 6 * COUNT( ALL + 88 )
----
20

skipif mysql # not compatible
query I rowsort label-8196
SELECT 14 + + 6 * COUNT ( ALL + 88 )
----
20

query I rowsort
SELECT ALL - 41 - + 93 * - 32 AS col1
----
2935

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT + COUNT( * ) + + NULLIF ( - - 7, + NULLIF ( + COUNT( ALL - 75 ), 89 / + - 7 * - 71 ) )
----
8

skipif mysql # not compatible
query I rowsort label-8198
SELECT + COUNT ( * ) + + NULLIF ( - - 7, + NULLIF ( + COUNT ( ALL - 75 ), 89 / + - 7 * - 71 ) )
----
8

query I rowsort
SELECT DISTINCT + - 57 - + 37 * 46 AS col1
----
-1759

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT MIN( ALL 87 ) + 93
----
180

skipif mysql # not compatible
query I rowsort label-8200
SELECT MIN ( ALL 87 ) + 93
----
180

query I rowsort
SELECT 71 * - 24
----
-1704

query II rowsort
SELECT - 4 AS col2, 45 AS col1
----
-4
45

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT DISTINCT + 21 DIV + - 56 * 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT + 21 / + - 56 * 68 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL SUM( + 92 ) * - + 52 - - - 3 + + ( + ( + 29 ) ) AS col1
----
-4758

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL SUM ( + 92 ) * - + 52 - - - 3 + + ( + ( + 29 ) ) AS col1
----
-4758

query I rowsort
SELECT ALL + 4 * - - 61 AS col1
----
244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT DISTINCT + 95 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT DISTINCT + 95 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 18 AS col2, 87
----
-18
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT MIN( + 19 ) + COUNT( ALL - 11 ) + 58
----
78

skipif mysql # not compatible
query I rowsort label-8208
SELECT MIN ( + 19 ) + COUNT ( ALL - 11 ) + 58
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8209
SELECT 41 DIV - + 20 + 36 + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-8209
SELECT 41 / - + 20 + 36 + COUNT ( * )
----
35

query I rowsort
SELECT 96 * + 75 AS col1
----
7200

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8211
SELECT CAST( NULL AS DECIMAL ) + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT CAST ( NULL AS REAL ) + + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8212
SELECT ALL ( COUNT( ALL + 89 ) ) + 85 * COUNT( * ) - + + 28 + + + 61 * + 24, - 39 - - - 69 AS col0
----
1522
-108

skipif mysql # not compatible
query II rowsort label-8212
SELECT ALL ( COUNT ( ALL + 89 ) ) + 85 * COUNT ( * ) - + + 28 + + + 61 * + 24, - 39 - - - 69 AS col0
----
1522
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT DISTINCT + 59 DIV - 3 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT + 59 / - 3 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8214
SELECT ALL - 50 AS col1, COUNT( * ) + + 23 AS col0
----
-50
24

skipif mysql # not compatible
query II rowsort label-8214
SELECT ALL - 50 AS col1, COUNT ( * ) + + 23 AS col0
----
-50
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT 75 AS col2, - COUNT( * ) * - - 26 + + + 95 + - ( - 41 ) AS col1
----
75
110

skipif mysql # not compatible
query II rowsort label-8215
SELECT 75 AS col2, - COUNT ( * ) * - - 26 + + + 95 + - ( - 41 ) AS col1
----
75
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT DISTINCT COUNT( * ) + 78
----
79

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT COUNT ( * ) + 78
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8217
SELECT + COUNT( DISTINCT + ( - ( 38 ) ) ), + 70 AS col1
----
1
70

skipif mysql # not compatible
query II rowsort label-8217
SELECT + COUNT ( DISTINCT + ( - ( 38 ) ) ), + 70 AS col1
----
1
70

onlyif mysql # DIV for integer division: 
query II rowsort label-8218
SELECT ALL + 77 + - 59 * + 19 AS col1, 47 DIV + 45 AS col0
----
-1044
1

skipif mysql # not compatible
query II rowsort label-8218
SELECT ALL + 77 + - 59 * + 19 AS col1, 47 / + 45 AS col0
----
-1044
1

query I rowsort
SELECT 21 * + - 80 AS col0
----
-1680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8220
SELECT 11 + ( - + CAST( NULL AS SIGNED ) ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT 11 + ( - + CAST ( NULL AS INTEGER ) ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT COUNT( * ) + - + 57
----
-56

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT COUNT ( * ) + - + 57
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-8222
SELECT DISTINCT - COUNT( * ) AS col0, - 91 col1
----
-1
-91

skipif mysql # not compatible
query II rowsort label-8222
SELECT DISTINCT - COUNT ( * ) AS col0, - 91 col1
----
-1
-91

query I rowsort
SELECT ALL - - 59 + - - ( ( + 67 ) )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT - 48 * + COALESCE ( 73, + SUM( 61 ) + 62 + + 77 - + 88 + - 52 * - + 54 * + ( 73 ) ) AS col2
----
-3504

skipif mysql # not compatible
query I rowsort label-8224
SELECT - 48 * + COALESCE ( 73, + SUM ( 61 ) + 62 + + 77 - + 88 + - 52 * - + 54 * + ( 73 ) ) AS col2
----
-3504

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT + 57 DIV + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8225
SELECT + 57 / + 65 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8226
SELECT DISTINCT + 45 DIV 61 * CAST( 32 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT + 45 / 61 * CAST ( 32 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - + 17 - + 33 AS col2
----
-50

query I rowsort
SELECT ALL + CASE 44 WHEN - 11 THEN + 14 END * - - 82 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 53 - + 8, 90 AS col0
----
45
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL 88 * COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL 88 * COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT ALL - 81 * + 67 * - MAX( DISTINCT - 31 )
----
-168237

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL - 81 * + 67 * - MAX ( DISTINCT - 31 )
----
-168237

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT DISTINCT MIN( 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT MIN ( 98 ) AS col1
----
98

query I rowsort
SELECT 90 + + 35 * - + 91 col1
----
-3095

query I rowsort
SELECT - ( - - 90 ) * + + 76 AS col2
----
-6840

query I rowsort
SELECT - 75 + 83 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL - 0 + 29 + - COUNT( + 96 ) * + 10 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL - 0 + 29 + - COUNT ( + 96 ) * + 10 AS col2
----
19

query I rowsort
SELECT ALL ( - 33 ) + - + 6 col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-8238
SELECT - 68 - + COUNT( * ) AS col1, 50 AS col0
----
-69
50

skipif mysql # not compatible
query II rowsort label-8238
SELECT - 68 - + COUNT ( * ) AS col1, 50 AS col0
----
-69
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8239
SELECT ALL + SUM( ALL + 35 ) DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL + SUM ( ALL + 35 ) / - 92
----
0

query I rowsort
SELECT DISTINCT - 19 + 80
----
61

query I rowsort
SELECT 46 * - - 81 - + 0 AS col2
----
3726

onlyif mysql # aggregate syntax: 
query II rowsort label-8242
SELECT DISTINCT + 55 * + - 33 AS col1, - CASE - 38 WHEN COUNT( * ) THEN NULL ELSE + 72 + + - ( 44 ) * - 97 * + 72 END
----
-1815
-307368

skipif mysql # not compatible
query II rowsort label-8242
SELECT DISTINCT + 55 * + - 33 AS col1, - CASE - 38 WHEN COUNT ( * ) THEN NULL ELSE + 72 + + - ( 44 ) * - 97 * + 72 END
----
-1815
-307368

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT COALESCE ( + + 26, COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-8243
SELECT COALESCE ( + + 26, COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8244
SELECT - COUNT( * ) * COUNT( * ) * 18 + - - COUNT( * ) - 84 - COALESCE ( + - 23, - COUNT( * ) DIV 32 * + + 34, + 29 ) - - 77 * + ( + 16 ) * 84 AS col1
----
103410

skipif mysql # not compatible
query I rowsort label-8244
SELECT - COUNT ( * ) * COUNT ( * ) * 18 + - - COUNT ( * ) - 84 - COALESCE ( + - 23, - COUNT ( * ) / 32 * + + 34, + 29 ) - - 77 * + ( + 16 ) * 84 AS col1
----
103410

query I rowsort
SELECT DISTINCT + - 40 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT + - NULLIF ( + 78, + 89 * - COUNT( * ) + - 89 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-8246
SELECT + - NULLIF ( + 78, + 89 * - COUNT ( * ) + - 89 ) AS col2
----
-78

query I rowsort
SELECT + - 60 * - 86
----
5160

query I rowsort
SELECT ALL - 16 * 24 * + 53 AS col0
----
-20352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT + 8 + + CAST( 46 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-8249
SELECT + 8 + + CAST ( 46 AS INTEGER )
----
54

query I rowsort
SELECT + 12 * + COALESCE ( - - ( - + 14 ), + - 46 )
----
-168

query II rowsort
SELECT + 82 * + 43, - 55 col1
----
3526
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL MIN( DISTINCT - 1 ) * + - 1
----
1

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL MIN ( DISTINCT - 1 ) * + - 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT + 21 + MIN( + 90 )
----
111

skipif mysql # not compatible
query I rowsort label-8253
SELECT + 21 + MIN ( + 90 )
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT CAST( + ( - 24 ) AS SIGNED ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8254
SELECT CAST ( + ( - 24 ) AS INTEGER ) AS col1
----
-24

query I rowsort
SELECT DISTINCT 9 * 12
----
108

query I rowsort
SELECT DISTINCT ( + - NULLIF ( + COALESCE ( + + 68, + 2 * 9 - + - 90 ), - 59 * 14 * - ( + 71 ) + + 38 + - 10 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT MIN( ALL + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-8257
SELECT MIN ( ALL + 27 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8258
SELECT ALL CASE - + 53 WHEN + 51 + - 23 + + + NULLIF ( + + 78, - CAST( - - 44 AS SIGNED ) ) THEN NULL ELSE + COUNT( * ) + - 33 + + 59 - + + 54 + + COUNT( * ) + - - 7 * + + NULLIF ( + + ( + 6 ), - + 30 * + ( + CAST( - 56 AS SIGNED ) ) ) + + 85 * 66 END col0
----
5626

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL CASE - + 53 WHEN + 51 + - 23 + + + NULLIF ( + + 78, - CAST ( - - 44 AS INTEGER ) ) THEN NULL ELSE + COUNT ( * ) + - 33 + + 59 - + + 54 + + COUNT ( * ) + - - 7 * + + NULLIF ( + + ( + 6 ), - + 30 * + ( + CAST ( - 56 AS INTEGER ) ) ) + + 85 * 66 END col0
----
5626

query I rowsort
SELECT ALL - 49 * + + 18 AS col1
----
-882

query I rowsort
SELECT + 35 + - + 28 AS col0
----
7

query I rowsort
SELECT + 46 + 17
----
63

query II rowsort
SELECT - 11 + - 14 - - 61 AS col0, 63 AS col1
----
36
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL MIN( + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL MIN ( + 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT - ( + - ( SUM( DISTINCT + 24 ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-8264
SELECT - ( + - ( SUM ( DISTINCT + 24 ) ) )
----
24

query I rowsort
SELECT - 81 + - 78
----
-159

query I rowsort
SELECT ALL + ( + + 33 ) + + - 14 AS col1
----
19

query I rowsort
SELECT ALL - COALESCE ( - + 51, + - 66 ) + + 30
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8268
SELECT - 69 + - 15 DIV - 59
----
-69

skipif mysql # not compatible
query I rowsort label-8268
SELECT - 69 + - 15 / - 59
----
-69

query I rowsort
SELECT ALL 75 * - 32 * - 14 * 68
----
2284800

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT COUNT( * ) * + 1 col0
----
1

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT COUNT ( * ) * + 1 col0
----
1

query I rowsort
SELECT DISTINCT 92 + - - 59 + + 88
----
239

query I rowsort
SELECT ALL ( - ( - 44 ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT DISTINCT ( - ( + + CAST( - 78 AS SIGNED ) ) )
----
78

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT ( - ( + + CAST ( - 78 AS INTEGER ) ) )
----
78

query I rowsort
SELECT - 21 + - 37 AS col0
----
-58

query I rowsort
SELECT ALL - 14 + + 69 + - 2 AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT COALESCE ( 86, - + 13 + - 86 + + CAST( + 48 AS SIGNED ) )
----
86

skipif mysql # not compatible
query I rowsort label-8276
SELECT COALESCE ( 86, - + 13 + - 86 + + CAST ( + 48 AS INTEGER ) )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8277
SELECT ALL + - 95 DIV + 31 - - 97 + + 73 * + 26 DIV + + COUNT( * ) + + 77 - 4
----
2065

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL + - 95 / + 31 - - 97 + + 73 * + 26 / + + COUNT ( * ) + + 77 - 4
----
2065

query I rowsort
SELECT - + 6 * + + 29 + 45
----
-129

query I rowsort
SELECT ALL + ( + 82 )
----
82

query I rowsort
SELECT DISTINCT - 78 * - NULLIF ( - + ( + 15 ), - 46 + - 75 ) AS col0
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT DISTINCT - 67 * 19 - - COUNT( * ) AS col2
----
-1272

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT - 67 * 19 - - COUNT ( * ) AS col2
----
-1272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8282
SELECT - + 56 DIV + NULLIF ( + 28, - COUNT( * ) + 93 - - - 41 + 63 + - 8 ) + - 60
----
-62

skipif mysql # not compatible
query I rowsort label-8282
SELECT - + 56 / + NULLIF ( + 28, - COUNT ( * ) + 93 - - - 41 + 63 + - 8 ) + - 60
----
-62

query I rowsort
SELECT ALL + - CASE - 32 WHEN 39 * + 62 THEN + 57 ELSE 75 * - 45 END AS col1
----
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT - 39 + + 28 * COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8284
SELECT - 39 + + 28 * COUNT ( * ) AS col2
----
-11

query I rowsort
SELECT ALL - + 88 * 68
----
-5984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8286
SELECT - CASE + 84 WHEN 52 THEN + COUNT( * ) * + 80 + ( 62 ) + - + 47 + + 8 + 12 + + 79 DIV 61 + - + 35 ELSE + 18 * - 20 END - + 86 * + 82
----
-6692

skipif mysql # not compatible
query I rowsort label-8286
SELECT - CASE + 84 WHEN 52 THEN + COUNT ( * ) * + 80 + ( 62 ) + - + 47 + + 8 + 12 + + 79 / 61 + - + 35 ELSE + 18 * - 20 END - + 86 * + 82
----
-6692

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT + 66 DIV - + 21 + - 5 col2
----
-8

skipif mysql # not compatible
query I rowsort label-8287
SELECT + 66 / - + 21 + - 5 col2
----
-8

query I rowsort
SELECT ALL + + COALESCE ( + 32, - + 13 + - 51 )
----
32

query I rowsort
SELECT - - 79 * 11 AS col0
----
869

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT COUNT( 18 ) * + 95 + - 20 + - MIN( ALL + + 69 ) * + 66 AS col1
----
-4479

skipif mysql # not compatible
query I rowsort label-8290
SELECT COUNT ( 18 ) * + 95 + - 20 + - MIN ( ALL + + 69 ) * + 66 AS col1
----
-4479

onlyif mysql # aggregate syntax: 
query II rowsort label-8291
SELECT + - NULLIF ( - - COUNT( * ), COUNT( * ) ) * - 87 * - - 66 AS col1, - 74 col2
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-8291
SELECT + - NULLIF ( - - COUNT ( * ), COUNT ( * ) ) * - 87 * - - 66 AS col1, - 74 col2
----
NULL
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-8292
SELECT DISTINCT + - 54 col2, COALESCE ( 59, - COUNT( * ) + + MAX( - 11 ) ) AS col2
----
-54
59

skipif mysql # not compatible
query II rowsort label-8292
SELECT DISTINCT + - 54 col2, COALESCE ( 59, - COUNT ( * ) + + MAX ( - 11 ) ) AS col2
----
-54
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8293
SELECT + CASE + NULLIF ( - 67, - 78 ) WHEN - 42 THEN + CAST( NULL AS SIGNED ) WHEN - 14 THEN + + CASE 34 WHEN 16 * + 65 THEN + COUNT( * ) * + + AVG ( DISTINCT 89 ) + - 94 WHEN 63 - - CASE + 77 WHEN - - 97 - - - 76 * 94 THEN NULL ELSE ( ( 17 ) ) END * + 17 THEN NULL ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT + CASE + NULLIF ( - 67, - 78 ) WHEN - 42 THEN + CAST ( NULL AS INTEGER ) WHEN - 14 THEN + + CASE 34 WHEN 16 * + 65 THEN + COUNT ( * ) * + + AVG ( DISTINCT 89 ) + - 94 WHEN 63 - - CASE + 77 WHEN - - 97 - - - 76 * 94 THEN NULL ELSE ( ( 17 ) ) END * + 17 THEN NULL ELSE NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT NULLIF ( + 13, COUNT( * ) )
----
13

skipif mysql # not compatible
query I rowsort label-8294
SELECT NULLIF ( + 13, COUNT ( * ) )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT + CAST( + 74 AS SIGNED ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8295
SELECT + CAST ( + 74 AS INTEGER ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT + 11 * + 74 * + - MIN( + - 30 )
----
24420

skipif mysql # not compatible
query I rowsort label-8296
SELECT + 11 * + 74 * + - MIN ( + - 30 )
----
24420

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT CASE + COUNT( * ) WHEN 41 THEN NULL ELSE + + 78 END
----
78

skipif mysql # not compatible
query I rowsort label-8297
SELECT CASE + COUNT ( * ) WHEN 41 THEN NULL ELSE + + 78 END
----
78

query I rowsort
SELECT ALL 99 * - 75 col1
----
-7425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT ALL AVG ( DISTINCT + + 63 ) + + 14 * - 63 + - 20 * - CAST( NULL AS SIGNED ) * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL AVG ( DISTINCT + + 63 ) + + 14 * - 63 + - 20 * - CAST ( NULL AS INTEGER ) * + 72
----
NULL

query I rowsort
SELECT DISTINCT 22 + + 85
----
107

query I rowsort
SELECT ALL COALESCE ( + 24, + - ( 72 ) * ( + + 7 ) + 80 ) + + 34
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8302
SELECT ALL 82 AS col2, MIN( + - 62 )
----
82
-62

skipif mysql # not compatible
query II rowsort label-8302
SELECT ALL 82 AS col2, MIN ( + - 62 )
----
82
-62

query I rowsort
SELECT 15 + + 55 AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8304
SELECT 50 * 25 DIV + 39
----
32

skipif mysql # not compatible
query I rowsort label-8304
SELECT 50 * 25 / + 39
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8305
SELECT ALL COUNT( * ) DIV - 92, + 48 * 89 AS col1
----
0
4272

skipif mysql # not compatible
query II rowsort label-8305
SELECT ALL COUNT ( * ) / - 92, + 48 * 89 AS col1
----
0
4272

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ( + - 62 ) + - 27 + + - COUNT( * ) - - 20 + + 80
----
10

skipif mysql # not compatible
query I rowsort label-8306
SELECT ( + - 62 ) + - 27 + + - COUNT ( * ) - - 20 + + 80
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8307
SELECT DISTINCT + - 28 * + SUM( - 71 ) - - 81, 57 * + 13 AS col2
----
2069
741

skipif mysql # not compatible
query II rowsort label-8307
SELECT DISTINCT + - 28 * + SUM ( - 71 ) - - 81, 57 * + 13 AS col2
----
2069
741

query I rowsort
SELECT ALL - - 65 - - 29 - + 10 AS col2
----
84

query I rowsort
SELECT 65 * - + 59 * + - 97 col2
----
371995

onlyif mysql # DIV for integer division: 
query I rowsort label-8310
SELECT ALL 57 * 11 + - ( - + 39 ) + + - 13 DIV 40
----
666

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL 57 * 11 + - ( - + 39 ) + + - 13 / 40
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL NULLIF ( - COUNT( * ), - 51 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL NULLIF ( - COUNT ( * ), - 51 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT - 1 - - - 14 * + - COUNT( * ) * + 55
----
769

skipif mysql # not compatible
query I rowsort label-8312
SELECT - 1 - - - 14 * + - COUNT ( * ) * + 55
----
769

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT ALL - MIN( + + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL - MIN ( + + 48 ) AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8314
SELECT DISTINCT - ( + CAST( + - 53 AS SIGNED ) ) * - - SUM( - CAST( NULL AS DECIMAL ) ) * - 58, COUNT( * ) - - 41 - - CAST( 25 AS SIGNED ) + + COUNT( * ) * - COUNT( * ) * + + ( COUNT( * ) ) AS col0
----
NULL
66

skipif mysql # not compatible
query II rowsort label-8314
SELECT DISTINCT - ( + CAST ( + - 53 AS INTEGER ) ) * - - SUM ( - CAST ( NULL AS REAL ) ) * - 58, COUNT ( * ) - - 41 - - CAST ( 25 AS INTEGER ) + + COUNT ( * ) * - COUNT ( * ) * + + ( COUNT ( * ) ) AS col0
----
NULL
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8315
SELECT ALL - 47 AS col1, 16 + + - ( + + 69 ) * NULLIF ( + 60, + - COUNT( * ) / + 17 ) AS col0
----
-47
-4124

skipif mysql # not compatible
query II rowsort label-8315
SELECT ALL - 47 AS col1, 16 + + - ( + + 69 ) * NULLIF ( + 60, + - COUNT ( * ) / + 17 ) AS col0
----
-47
-4124

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ( + 49 ) * - SUM( DISTINCT - 25 )
----
1225

skipif mysql # not compatible
query I rowsort label-8316
SELECT ( + 49 ) * - SUM ( DISTINCT - 25 )
----
1225

query II rowsort
SELECT ALL - 78, 50 + + ( + 52 ) AS col0
----
-78
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8318
SELECT ALL - NULLIF ( - 73, - 39 + + CAST( NULL AS SIGNED ) )
----
73

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL - NULLIF ( - 73, - 39 + + CAST ( NULL AS INTEGER ) )
----
73

query II rowsort
SELECT DISTINCT - + 25 AS col2, ( 44 ) AS col2
----
-25
44

query I rowsort
SELECT 14 * ( - + 86 )
----
-1204

query I rowsort
SELECT ALL - 22 * + + ( + 59 ) * - + 84
----
109032

query I rowsort
SELECT ALL - NULLIF ( + 0, - + 48 * + 33 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8323
SELECT - 14, + COALESCE ( - - 52, - + 30 ) * CASE + 44 WHEN + - MAX( DISTINCT + - ( - + 82 ) ) THEN - COUNT( * ) WHEN + AVG ( ALL 99 ) * + 20 * + ( - ( - 84 ) ) * - COALESCE ( + - 95, - + COUNT( * ), - AVG ( - 90 ) ) / 48 THEN 55 END - + 53 col2
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-8323
SELECT - 14, + COALESCE ( - - 52, - + 30 ) * CASE + 44 WHEN + - MAX ( DISTINCT + - ( - + 82 ) ) THEN - COUNT ( * ) WHEN + AVG ( ALL 99 ) * + 20 * + ( - ( - 84 ) ) * - COALESCE ( + - 95, - + COUNT ( * ), - AVG ( - 90 ) ) / 48 THEN 55 END - + 53 col2
----
-14
NULL

query I rowsort
SELECT ALL - ( 22 ) + 22 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT + COUNT( DISTINCT 95 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8325
SELECT + COUNT ( DISTINCT 95 ) col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8326
SELECT + + ( - 46 ) * - 43 DIV - COUNT( * ) + - 89 AS col1
----
-2067

skipif mysql # not compatible
query I rowsort label-8326
SELECT + + ( - 46 ) * - 43 / - COUNT ( * ) + - 89 AS col1
----
-2067

query I rowsort
SELECT 80 + + + ( + + 76 )
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT 77 * - COUNT( * ) - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-8328
SELECT 77 * - COUNT ( * ) - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT 90 + - + 38 * COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8329
SELECT 90 + - + 38 * COUNT ( * )
----
52

query I rowsort
SELECT ALL - 77 + + 48 AS col0
----
-29

query I rowsort
SELECT + ( - 58 ) * - 17 - + 95 + 62 + - + 96 + 46
----
903

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8332
SELECT ALL AVG ( + 88 ) + - + CAST( NULL AS DECIMAL ) + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL AVG ( + 88 ) + - + CAST ( NULL AS REAL ) + - 76
----
NULL

query II rowsort
SELECT 6 * + 67 AS col2, 90
----
402
90

query I rowsort
SELECT DISTINCT + 32 + 61 + - - 83 + + 90 * 66
----
6116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8335
SELECT COUNT( * ) + - + 90, + 15 * + - CAST( NULL AS SIGNED ) - + + ( - 1 ) AS col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-8335
SELECT COUNT ( * ) + - + 90, + 15 * + - CAST ( NULL AS INTEGER ) - + + ( - 1 ) AS col0
----
-89
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8336
SELECT ALL + COUNT( * ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 34 + + - 51 + - 71 - - - 45 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT 5 * COUNT( * ) * - - 20
----
100

skipif mysql # not compatible
query I rowsort label-8338
SELECT 5 * COUNT ( * ) * - - 20
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8339
SELECT ( - CAST( + - 82 AS SIGNED ) ) + + 4 * - 45 * 76 DIV + - CASE + 49 WHEN - 21 + AVG ( + 74 ) + + COALESCE ( + 13, + - 43 + 54 ) THEN NULL WHEN - 17 * + 11 + 38 * - + ( - + AVG ( - 38 ) ) THEN + ( 49 ) * + 89 + + CAST( 98 AS SIGNED ) * - 13 ELSE + COUNT( * ) END AS col2
----
13762

skipif mysql # not compatible
query I rowsort label-8339
SELECT ( - CAST ( + - 82 AS INTEGER ) ) + + 4 * - 45 * 76 / + - CASE + 49 WHEN - 21 + AVG ( + 74 ) + + COALESCE ( + 13, + - 43 + 54 ) THEN NULL WHEN - 17 * + 11 + 38 * - + ( - + AVG ( - 38 ) ) THEN + ( 49 ) * + 89 + + CAST ( 98 AS INTEGER ) * - 13 ELSE + COUNT ( * ) END AS col2
----
13762

query I rowsort
SELECT 60 + 49 * + 53
----
2657

query I rowsort
SELECT 30 * - 18
----
-540

query I rowsort
SELECT DISTINCT - 42 * - 50 AS col2
----
2100

query I rowsort
SELECT ALL 74 - + ( 33 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT - CASE + 34 WHEN - 8 THEN + SUM( + + 71 ) + - SUM( 38 ) * - COUNT( + 54 ) WHEN + - COUNT( DISTINCT + + 69 ) - ( 67 ) * + 48 THEN - - 76 + - 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT - CASE + 34 WHEN - 8 THEN + SUM ( + + 71 ) + - SUM ( 38 ) * - COUNT ( + 54 ) WHEN + - COUNT ( DISTINCT + + 69 ) - ( 67 ) * + 48 THEN - - 76 + - 85 END AS col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 31, 85 / - AVG ( ALL - - 37 ) * NULLIF ( + 69, + 6 + - 18 + - + 44 ) ) - 20
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8346
SELECT - ( + 15 ) col2, CAST( - 74 AS SIGNED )
----
-15
-74

skipif mysql # not compatible
query II rowsort label-8346
SELECT - ( + 15 ) col2, CAST ( - 74 AS INTEGER )
----
-15
-74

query I rowsort
SELECT DISTINCT - 31 col2
----
-31

query I rowsort
SELECT - 74 + + 71 - 45 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT - COALESCE ( + - COUNT( * ), + 77 - - NULLIF ( - SUM( - 23 ), + ( 89 ) ) ) + + + ( - 81 )
----
-80

skipif mysql # not compatible
query I rowsort label-8349
SELECT - COALESCE ( + - COUNT ( * ), + 77 - - NULLIF ( - SUM ( - 23 ), + ( 89 ) ) ) + + + ( - 81 )
----
-80

onlyif mysql # aggregate syntax: 
query III rowsort label-8350
SELECT ALL 18 * - + 92, + 10 * MIN( DISTINCT + 89 ) AS col2, - COALESCE ( 68, - - 60 ) AS col2
----
-1656
890
-68

skipif mysql # not compatible
query III rowsort label-8350
SELECT ALL 18 * - + 92, + 10 * MIN ( DISTINCT + 89 ) AS col2, - COALESCE ( 68, - - 60 ) AS col2
----
-1656
890
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-8351
SELECT 83 DIV + + 55
----
1

skipif mysql # not compatible
query I rowsort label-8351
SELECT 83 / + + 55
----
1

query I rowsort
SELECT ALL 32 * + 19 AS col1
----
608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT + 25 * - CAST( - + 78 AS SIGNED ) + - SUM( 49 )
----
1901

skipif mysql # not compatible
query I rowsort label-8353
SELECT + 25 * - CAST ( - + 78 AS INTEGER ) + - SUM ( 49 )
----
1901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8354
SELECT DISTINCT - COALESCE ( - - CAST( - NULLIF ( + 78, - 30 ) AS SIGNED ), CASE WHEN + 20 IS NULL THEN NULL ELSE - - COUNT( * ) + - 65 END * + - 49 * 63 + - 45 + - ( - 19 ) + - - ( 19 ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT - COALESCE ( - - CAST ( - NULLIF ( + 78, - 30 ) AS INTEGER ), CASE WHEN + 20 IS NULL THEN NULL ELSE - - COUNT ( * ) + - 65 END * + - 49 * 63 + - 45 + - ( - 19 ) + - - ( 19 ) ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8355
SELECT CASE 31 WHEN 80 * - 68 + - - COUNT( * ) THEN NULL WHEN + 14 - + - CAST( 80 AS SIGNED ) THEN - - 21 * COUNT( * ) + + - COUNT( * ) * + 27 + 80 ELSE NULL END + 85 * 62 * - 55 * + CAST( - + MIN( - 26 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT CASE 31 WHEN 80 * - 68 + - - COUNT ( * ) THEN NULL WHEN + 14 - + - CAST ( 80 AS INTEGER ) THEN - - 21 * COUNT ( * ) + + - COUNT ( * ) * + 27 + 80 ELSE NULL END + 85 * 62 * - 55 * + CAST ( - + MIN ( - 26 ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 53 * + 39 * - - 70 + 49
----
144739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8357
SELECT DISTINCT - CAST( + + 97 AS SIGNED ) * + + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + - COALESCE ( + 13, 82 ) + - + CAST( NULL AS SIGNED ) + - SUM( DISTINCT - 39 ) * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT - CAST ( + + 97 AS INTEGER ) * + + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + - COALESCE ( + 13, 82 ) + - + CAST ( NULL AS INTEGER ) + - SUM ( DISTINCT - 39 ) * 2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8358
SELECT + - 77 - + 56, 23 + - + COUNT( * ) AS col0
----
-133
22

skipif mysql # not compatible
query II rowsort label-8358
SELECT + - 77 - + 56, 23 + - + COUNT ( * ) AS col0
----
-133
22

query I rowsort
SELECT + + COALESCE ( - 58, 60 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT + COUNT( * ) * + 58 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8360
SELECT + COUNT ( * ) * + 58 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT 81 * 34 * - CASE - + 20 WHEN + 92 + - - ( - 97 ) THEN NULL WHEN + 11 * + - 97 + - - CAST( + - 30 AS SIGNED ) + - 81 * + - 98 * + + 36 * - - 56 THEN - 75 WHEN - COUNT( ALL + 9 ) - ( + + 57 ) THEN NULL END * + 84 + + ( + - CAST( NULL AS SIGNED ) ) + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT 81 * 34 * - CASE - + 20 WHEN + 92 + - - ( - 97 ) THEN NULL WHEN + 11 * + - 97 + - - CAST ( + - 30 AS INTEGER ) + - 81 * + - 98 * + + 36 * - - 56 THEN - 75 WHEN - COUNT ( ALL + 9 ) - ( + + 57 ) THEN NULL END * + 84 + + ( + - CAST ( NULL AS INTEGER ) ) + - 45 AS col2
----
NULL

query I rowsort
SELECT ALL - 99 * + 12 + 38 * - + 50
----
-3088

onlyif mysql # aggregate syntax: 
query II rowsort label-8363
SELECT ALL + COUNT( * ) * + MAX( DISTINCT - - ( 85 ) ), + 18 + + - 47 col0
----
85
-29

skipif mysql # not compatible
query II rowsort label-8363
SELECT ALL + COUNT ( * ) * + MAX ( DISTINCT - - ( 85 ) ), + 18 + + - 47 col0
----
85
-29

query I rowsort
SELECT ALL + 28 * + 49 * - + ( + 5 )
----
-6860

query I rowsort
SELECT - 34 - 50
----
-84

query I rowsort
SELECT - 40 * + ( - 12 ) * 57 col2
----
27360

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT + COUNT( * ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + COUNT ( * ) * 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT - SUM( ALL + 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8368
SELECT - SUM ( ALL + 26 ) AS col2
----
-26

query I rowsort
SELECT - 4 * + 20
----
-80

onlyif mysql # aggregate syntax: 
query III rowsort label-8370
SELECT - 80 * + 6 * - 87 AS col0, 51 - - 53 - + 9, + CASE - ( - 87 ) WHEN - 83 * - 76 * - 32 THEN + 21 / - + 29 / + 22 + + COUNT( * ) - - COUNT( * ) WHEN + + SUM( ALL + 32 ) THEN NULL END * - 39 + - 61 - + + 76 + - 83 + 78 AS col0
----
41760
95
NULL

skipif mysql # not compatible
query III rowsort label-8370
SELECT - 80 * + 6 * - 87 AS col0, 51 - - 53 - + 9, + CASE - ( - 87 ) WHEN - 83 * - 76 * - 32 THEN + 21 / - + 29 / + 22 + + COUNT ( * ) - - COUNT ( * ) WHEN + + SUM ( ALL + 32 ) THEN NULL END * - 39 + - 61 - + + 76 + - 83 + 78 AS col0
----
41760
95
NULL

query II rowsort
SELECT 37 AS col0, CASE + + 54 WHEN - 66 THEN - ( - + 3 ) * + 75 WHEN + 68 + - 85 THEN NULL ELSE NULL END AS col2
----
37
NULL

query I rowsort
SELECT - COALESCE ( 41, 82 )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT ALL COUNT( * ) * + ( CAST( NULL AS SIGNED ) ) - - 92 * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL COUNT ( * ) * + ( CAST ( NULL AS INTEGER ) ) - - 92 * + 44
----
NULL

query I rowsort
SELECT + 92 * - 2
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT + + AVG ( - 28 ) * ( + 7 ) * - + 82 + - CASE COUNT( * ) WHEN 87 * + 56 + + COUNT( * ) THEN + + 40 END * - COUNT( * ) * + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8375
SELECT + + AVG ( - 28 ) * ( + 7 ) * - + 82 + - CASE COUNT ( * ) WHEN 87 * + 56 + + COUNT ( * ) THEN + + 40 END * - COUNT ( * ) * + 28 AS col1
----
NULL

query II rowsort
SELECT - 63 + - 60 + - 12 AS col0, 52 AS col0
----
-135
52

query II rowsort
SELECT - + 51 col0, - 58 AS col0
----
-51
-58

query I rowsort
SELECT ALL + - 27 + 37 col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8379
SELECT + 75 AS col0, + 59 * + COUNT( * )
----
75
59

skipif mysql # not compatible
query II rowsort label-8379
SELECT + 75 AS col0, + 59 * + COUNT ( * )
----
75
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8380
SELECT ALL + 6 + - ( - - 71 ) DIV SUM( + 16 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL + 6 + - ( - - 71 ) / SUM ( + 16 ) col0
----
2

query I rowsort
SELECT ALL - 47 + 48
----
1

query I rowsort
SELECT + - NULLIF ( + 35, - 98 / 92 + - 20 ) + - - 44 + - + 71 + + ( - ( + ( + 55 ) ) ) AS col2
----
-117

query I rowsort
SELECT DISTINCT + 73 + - 7
----
66

query I rowsort
SELECT + + 67 + + 64
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT + - 84 DIV 8 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8385
SELECT + - 84 / 8 AS col2
----
-10

query I rowsort
SELECT DISTINCT 37 * + 40 - ( - - 99 )
----
1381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8387
SELECT DISTINCT COUNT( * ) * + CAST( - + 80 AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT COUNT ( * ) * + CAST ( - + 80 AS INTEGER )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-8388
SELECT 50 DIV + - 43 - - 38 * - ( + 32 ) AS col2
----
-1217

skipif mysql # not compatible
query I rowsort label-8388
SELECT 50 / + - 43 - - 38 * - ( + 32 ) AS col2
----
-1217

query I rowsort
SELECT DISTINCT + 78 * + 46 - + 6
----
3582

onlyif mysql # aggregate syntax: 
query II rowsort label-8390
SELECT ( 50 ) col0, COUNT( * )
----
50
1

skipif mysql # not compatible
query II rowsort label-8390
SELECT ( 50 ) col0, COUNT ( * )
----
50
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8391
SELECT 51 * + 56 * - 55 * + - CAST( CAST( + + 18 AS SIGNED ) AS SIGNED ) + + - 74 AS col0, + 57 + - + 86 AS col1
----
2827366
-29

skipif mysql # not compatible
query II rowsort label-8391
SELECT 51 * + 56 * - 55 * + - CAST ( CAST ( + + 18 AS INTEGER ) AS INTEGER ) + + - 74 AS col0, + 57 + - + 86 AS col1
----
2827366
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8392
SELECT NULLIF ( + COUNT( * ), + + NULLIF ( - + CASE - CAST( + ( 55 ) AS SIGNED ) WHEN - + 38 THEN + 50 - + AVG ( DISTINCT 7 ) ELSE - 19 * + - 9 * 45 END, 97 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8392
SELECT NULLIF ( + COUNT ( * ), + + NULLIF ( - + CASE - CAST ( + ( 55 ) AS INTEGER ) WHEN - + 38 THEN + 50 - + AVG ( DISTINCT 7 ) ELSE - 19 * + - 9 * 45 END, 97 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8393
SELECT + 10 + 93 + - 57 * - 80, - CAST( NULL AS SIGNED ) AS col0
----
4663
NULL

skipif mysql # not compatible
query II rowsort label-8393
SELECT + 10 + 93 + - 57 * - 80, - CAST ( NULL AS INTEGER ) AS col0
----
4663
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT + 55 * + + 92 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT + 55 * + + 92 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL + MAX( 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL + MAX ( 30 ) AS col1
----
30

query II rowsort
SELECT + 86 + + + 5, + 42 AS col0
----
91
42

query I rowsort
SELECT NULLIF ( + 66, 61 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT - MIN( + 10 ) * + - 7 + - 55
----
15

skipif mysql # not compatible
query I rowsort label-8398
SELECT - MIN ( + 10 ) * + - 7 + - 55
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT DISTINCT COUNT( 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8399
SELECT DISTINCT COUNT ( 66 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8400
SELECT - NULLIF ( + ( 21 ), - - 5 ) + - COUNT( * ) + - ( - 72 ) + - MAX( ALL 19 ) + + ( - + ( COUNT( * ) ) ) AS col2, - 79 AS col1
----
30
-79

skipif mysql # not compatible
query II rowsort label-8400
SELECT - NULLIF ( + ( 21 ), - - 5 ) + - COUNT ( * ) + - ( - 72 ) + - MAX ( ALL 19 ) + + ( - + ( COUNT ( * ) ) ) AS col2, - 79 AS col1
----
30
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL NULLIF ( + + MAX( ALL + 40 ), + + 32 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL NULLIF ( + + MAX ( ALL + 40 ), + + 32 ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT + MAX( + 72 ) + 0
----
72

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT + MAX ( + 72 ) + 0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL + + 91 + - SUM( - + 89 ) AS col2
----
180

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL + + 91 + - SUM ( - + 89 ) AS col2
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8404
SELECT DISTINCT + COALESCE ( + COUNT( * ), - 22 * + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * - ( - COUNT( * ) ) * - ( + 97 ) + + ( + CASE - - 22 WHEN - + 14 THEN 18 END ) ) AS col2, COUNT( * ) * + 62 * 84 * - - 34 col2
----
1
177072

skipif mysql # not compatible
query II rowsort label-8404
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - 22 * + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - ( - COUNT ( * ) ) * - ( + 97 ) + + ( + CASE - - 22 WHEN - + 14 THEN 18 END ) ) AS col2, COUNT ( * ) * + 62 * 84 * - - 34 col2
----
1
177072

query I rowsort
SELECT ALL + - 99 + + 67 col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8406
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + 58 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8407
SELECT - SUM( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT - SUM ( ALL CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL - 50 * + - 66 + - - 46 AS col2
----
3346

query II rowsort
SELECT ALL 25 * + 39 AS col2, 71 + 85 AS col1
----
975
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT DISTINCT - MAX( 47 ) - + 79 * + 83 AS col2
----
-6604

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT - MAX ( 47 ) - + 79 * + 83 AS col2
----
-6604

query I rowsort
SELECT DISTINCT 87 - - - 51
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT 8 * + + 3 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-8412
SELECT 8 * + + 3 / 96
----
0

query I rowsort
SELECT 44 * - 39
----
-1716

onlyif mysql # DIV for integer division: 
query I rowsort label-8414
SELECT DISTINCT 22 DIV + + 76
----
0

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT 22 / + + 76
----
0

query I rowsort
SELECT + CASE 76 WHEN - 11 THEN + CASE + 16 WHEN 20 + - 76 * - 21 THEN + - 96 * + 87 WHEN 78 THEN + 25 END * - 50 / - - 35 + 64 * - 91 WHEN + 61 THEN + - 92 END * + + 88 - 7 + 56 AS col0
----
NULL

query II rowsort
SELECT ALL 57 * + 9 * - 87 * ( + 11 ) AS col1, - ( - 18 ) AS col1
----
-490941
18

query I rowsort
SELECT 34 * - - 79 AS col1
----
2686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT ALL 75 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL 75 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 51 * - - 40 * - - 0 AS col2, + 36 + 78 * 42 * + 63 + 83
----
0
206507

onlyif mysql # DIV for integer division: 
query II rowsort label-8420
SELECT + 76 AS col0, 28 DIV - + 57 col1
----
76
0

skipif mysql # not compatible
query II rowsort label-8420
SELECT + 76 AS col0, 28 / - + 57 col1
----
76
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8421
SELECT DISTINCT - COUNT( * ) AS col0, CASE - + COUNT( * ) WHEN + COUNT( * ) - 45 * + 89 * - COUNT( * ) THEN + + 93 ELSE NULL END + CASE - - COUNT( * ) WHEN 36 * + - 38 * 90 - 84 + + - 75 THEN NULL WHEN COUNT( * ) * - - ( + NULLIF ( - 73, 20 ) ) THEN + COUNT( 46 ) WHEN - + 71 THEN 43 END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8421
SELECT DISTINCT - COUNT ( * ) AS col0, CASE - + COUNT ( * ) WHEN + COUNT ( * ) - 45 * + 89 * - COUNT ( * ) THEN + + 93 ELSE NULL END + CASE - - COUNT ( * ) WHEN 36 * + - 38 * 90 - 84 + + - 75 THEN NULL WHEN COUNT ( * ) * - - ( + NULLIF ( - 73, 20 ) ) THEN + COUNT ( 46 ) WHEN - + 71 THEN 43 END
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT DISTINCT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + - 49 / + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 49 / + 3 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( ( - 63 ), 78 ) * + 63 AS col1
----
-3969

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL 15 + + 30 * + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL 15 + + 30 * + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8425
SELECT NULLIF ( + COUNT( * ), + + 30 ) - - 64 DIV - 50 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-8425
SELECT NULLIF ( + COUNT ( * ), + + 30 ) - - 64 / - 50 + + 99
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8426
SELECT ALL + 72 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL + 72 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - CASE + 60 WHEN + ( - 64 ) THEN - 29 ELSE + 94 END AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL - MAX( ALL - 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL - MAX ( ALL - 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL - COUNT( * ) + + 8 - MAX( + 60 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL - COUNT ( * ) + + 8 - MAX ( + 60 ) col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT + 78 + - 67 + - COUNT( * ) + - 57 * - 8 * - 1 * - 5 col0
----
2290

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT + 78 + - 67 + - COUNT ( * ) + - 57 * - 8 * - 1 * - 5 col0
----
2290

query I rowsort
SELECT ( + ( + ( + + 70 ) ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT + COUNT( * ) + - - 11 + - 20
----
-8

skipif mysql # not compatible
query I rowsort label-8432
SELECT + COUNT ( * ) + - - 11 + - 20
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT - CAST( + + 26 AS SIGNED ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8433
SELECT - CAST ( + + 26 AS INTEGER ) AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT CAST( - 6 AS SIGNED ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8434
SELECT CAST ( - 6 AS INTEGER ) AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT - NULLIF ( + 87, + CAST( NULL AS SIGNED ) - 99 * - - 72 / + - 96 ) + - 81
----
-168

skipif mysql # not compatible
query I rowsort label-8435
SELECT - NULLIF ( + 87, + CAST ( NULL AS INTEGER ) - 99 * - - 72 / + - 96 ) + - 81
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8436
SELECT ( + ( + COUNT( ALL 3 ) ) ) DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8436
SELECT ( + ( + COUNT ( ALL 3 ) ) ) / 91 AS col2
----
0

query II rowsort
SELECT ALL + 73 col0, 69
----
73
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8438
SELECT ALL - 13 DIV - COUNT( * ) col0
----
13

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - 13 / - COUNT ( * ) col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8439
SELECT ALL - SUM( 64 ) DIV - 44
----
1

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - SUM ( 64 ) / - 44
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8440
SELECT COUNT( * ) AS col2, 1 AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-8440
SELECT COUNT ( * ) AS col2, 1 AS col2
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8441
SELECT ALL - CAST( - + 54 AS SIGNED ) col1, - 86
----
54
-86

skipif mysql # not compatible
query II rowsort label-8441
SELECT ALL - CAST ( - + 54 AS INTEGER ) col1, - 86
----
54
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8442
SELECT 44 DIV + + 6 * COUNT( ALL 80 )
----
7

skipif mysql # not compatible
query I rowsort label-8442
SELECT 44 / + + 6 * COUNT ( ALL 80 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT ALL - MIN( DISTINCT + + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL - MIN ( DISTINCT + + 46 )
----
-46

query II rowsort
SELECT ALL - 5 AS col2, + 74 * - 17
----
-5
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT - CAST( NULL AS SIGNED ) * + 83 - + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT - CAST ( NULL AS INTEGER ) * + 83 - + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT DISTINCT - CASE - - ( + 61 ) WHEN + 42 + COUNT( * ) * - + 91 THEN + 45 + + + 11 / + 11 + 0 + - - 36 / + + 27 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT - CASE - - ( + 61 ) WHEN + 42 + COUNT ( * ) * - + 91 THEN + 45 + + + 11 / + 11 + 0 + - - 36 / + + 27 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT 50 - - - SUM( - - 13 )
----
37

skipif mysql # not compatible
query I rowsort label-8447
SELECT 50 - - - SUM ( - - 13 )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8448
SELECT ALL 27 + - 79 * CASE + 87 WHEN - - COUNT( - + 55 ) THEN NULL WHEN - + ( + 83 ) * - 64 * + 29 * + 43 * - + 47 THEN AVG ( 94 ) ELSE NULL END * 64 * - - CAST( - CAST( 54 AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL 27 + - 79 * CASE + 87 WHEN - - COUNT ( - + 55 ) THEN NULL WHEN - + ( + 83 ) * - 64 * + 29 * + 43 * - + 47 THEN AVG ( 94 ) ELSE NULL END * 64 * - - CAST ( - CAST ( 54 AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT SUM( ALL 3 )
----
3

skipif mysql # not compatible
query I rowsort label-8449
SELECT SUM ( ALL 3 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8450
SELECT ALL - 61 + + + COUNT( * ) * - 94 * - - 1 DIV + + COUNT( * )
----
-155

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL - 61 + + + COUNT ( * ) * - 94 * - - 1 / + + COUNT ( * )
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-8451
SELECT + COUNT( * ) AS col0, - NULLIF ( 51, + 27 + + - 4 + + 77 ) + 78 + + 54 + COUNT( * ) * COUNT( * ) * + 9 + + 99 col0
----
1
189

skipif mysql # not compatible
query II rowsort label-8451
SELECT + COUNT ( * ) AS col0, - NULLIF ( 51, + 27 + + - 4 + + 77 ) + 78 + + 54 + COUNT ( * ) * COUNT ( * ) * + 9 + + 99 col0
----
1
189

onlyif mysql # aggregate syntax: 
query II rowsort label-8452
SELECT + SUM( ALL 4 ) AS col1, + 37
----
4
37

skipif mysql # not compatible
query II rowsort label-8452
SELECT + SUM ( ALL 4 ) AS col1, + 37
----
4
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT COUNT( * ) + - 41 + + 39 * + 74 AS col2
----
2846

skipif mysql # not compatible
query I rowsort label-8453
SELECT COUNT ( * ) + - 41 + + 39 * + 74 AS col2
----
2846

query II rowsort
SELECT 78, 78 AS col2
----
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8455
SELECT ALL 68 DIV - 77 * 65
----
0

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL 68 / - 77 * 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT SUM( ALL + - 34 ) - + 73 col0
----
-107

skipif mysql # not compatible
query I rowsort label-8456
SELECT SUM ( ALL + - 34 ) - + 73 col0
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8457
SELECT DISTINCT - CAST( + 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT - CAST ( + 10 AS INTEGER )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL 69 + + ( - CAST( 66 AS SIGNED ) ) + + 27 - + 92 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL 69 + + ( - CAST ( 66 AS INTEGER ) ) + + 27 - + 92 AS col1
----
-62

query II rowsort
SELECT ALL - + 8 col1, + 32 - - 14 AS col2
----
-8
46

query II rowsort
SELECT ALL 32 col0, - 8 AS col0
----
32
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + MIN( + 84 ) + + 44
----
128

skipif mysql # not compatible
query I rowsort label-8461
SELECT + MIN ( + 84 ) + + 44
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + + MAX( 60 ) + - - 33 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8462
SELECT + + MAX ( 60 ) + - - 33 AS col0
----
93

query I rowsort
SELECT + 88 * - - 95 AS col1
----
8360

query I rowsort
SELECT + + 94 * - 94 + - 98 AS col1
----
-8934

query II rowsort
SELECT ALL 15 - - 24 AS col2, + 17
----
39
17

query I rowsort
SELECT DISTINCT - 55 * + - 52 AS col0
----
2860

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT ALL - + COUNT( * ) - ( + 10 )
----
-11

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL - + COUNT ( * ) - ( + 10 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8468
SELECT - CAST( + + 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-8468
SELECT - CAST ( + + 25 AS INTEGER )
----
-25

query II rowsort
SELECT DISTINCT + 18 AS col2, 45 AS col0
----
18
45

query I rowsort
SELECT ALL - 73 * - 47 * - - 66 * + 12 * - 83
----
-225540216

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT + - 67 * 4 * CASE - 54 WHEN - - 73 + 21 THEN + 19 + COUNT( * ) WHEN COUNT( * ) THEN NULL END - + SUM( + + 59 ) + - - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT + - 67 * 4 * CASE - 54 WHEN - - 73 + 21 THEN + 19 + COUNT ( * ) WHEN COUNT ( * ) THEN NULL END - + SUM ( + + 59 ) + - - 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8472
SELECT ALL SUM( - 67 ) AS col0, + 68
----
-67
68

skipif mysql # not compatible
query II rowsort label-8472
SELECT ALL SUM ( - 67 ) AS col0, + 68
----
-67
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT + 87 * MAX( DISTINCT - 6 )
----
-522

skipif mysql # not compatible
query I rowsort label-8473
SELECT + 87 * MAX ( DISTINCT - 6 )
----
-522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8474
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8474
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT COUNT( DISTINCT - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT COUNT ( DISTINCT - 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT COUNT( * ) * + 65 * - 27 * - - 9 AS col0
----
-15795

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT COUNT ( * ) * + 65 * - 27 * - - 9 AS col0
----
-15795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT ALL ( 87 ) * ( + + 55 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL ( 87 ) * ( + + 55 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + + 94, - 47 * - 42 ) col0
----
94

query I rowsort
SELECT - 16 - + 21
----
-37

query I rowsort
SELECT ALL 73 * + 37 * + - 96 + - - 2 - + 87 - + 24 * - 56 * - - 48
----
-194869

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT 29 DIV - - 22 + + - 91
----
-90

skipif mysql # not compatible
query I rowsort label-8481
SELECT 29 / - - 22 + + - 91
----
-90

query I rowsort
SELECT + ( + ( + 72 ) ) AS col1
----
72

query I rowsort
SELECT ALL ( - 81 ) * - 16 * - + 24 + - CASE - COALESCE ( + 20, + ( + 51 ) ) WHEN + - 29 THEN + 68 END - + + 65 * 29
----
NULL

query I rowsort
SELECT - 3 + + - 90 * 50 + 55 col2
----
-4448

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT + COUNT( ALL + 32 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8485
SELECT + COUNT ( ALL + 32 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8486
SELECT ALL + ( - 87 ) AS col2, CASE + + 50 WHEN + 48 THEN NULL ELSE - CAST( NULL AS DECIMAL ) / COUNT( + 49 ) END col2
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-8486
SELECT ALL + ( - 87 ) AS col2, CASE + + 50 WHEN + 48 THEN NULL ELSE - CAST ( NULL AS REAL ) / COUNT ( + 49 ) END col2
----
-87
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8487
SELECT DISTINCT + COALESCE ( + CAST( NULL AS SIGNED ), - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8488
SELECT ALL 60 * - - COUNT( * ) + - ( + - COUNT( * ) ) DIV - 9 AS col2, 80 * - 46 - - 99 AS col0
----
60
-3581

skipif mysql # not compatible
query II rowsort label-8488
SELECT ALL 60 * - - COUNT ( * ) + - ( + - COUNT ( * ) ) / - 9 AS col2, 80 * - 46 - - 99 AS col0
----
60
-3581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8489
SELECT - COUNT( DISTINCT + + CAST( + 23 AS SIGNED ) ) * - CAST( - 2 AS SIGNED ) * - 64 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT - COUNT ( DISTINCT + + CAST ( + 23 AS INTEGER ) ) * - CAST ( - 2 AS INTEGER ) * - 64 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8490
SELECT DISTINCT 18 * - NULLIF ( CASE CAST( NULL AS DECIMAL ) WHEN 32 / - + 30 - - 11 * + 27 THEN NULL WHEN + 10 THEN ( + MAX( DISTINCT - 79 ) ) + + + COUNT( * ) + ( - 58 ) END, MAX( 70 ) ) + 55 * - - MIN( DISTINCT + 12 ) - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT 18 * - NULLIF ( CASE CAST ( NULL AS REAL ) WHEN 32 / - + 30 - - 11 * + 27 THEN NULL WHEN + 10 THEN ( + MAX ( DISTINCT - 79 ) ) + + + COUNT ( * ) + ( - 58 ) END, MAX ( 70 ) ) + 55 * - - MIN ( DISTINCT + 12 ) - 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT ALL + ( - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL + ( - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8492
SELECT ALL 68 * - 59 + + - CAST( NULL AS SIGNED ) - + CAST( - 98 AS SIGNED ), 67 AS col0
----
NULL
67

skipif mysql # not compatible
query II rowsort label-8492
SELECT ALL 68 * - 59 + + - CAST ( NULL AS INTEGER ) - + CAST ( - 98 AS INTEGER ), 67 AS col0
----
NULL
67

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT - 89 * + + 15 + - - COUNT( * ) AS col2, COUNT( * ) + - NULLIF ( + 49, + 59 / + 15 - 15 - + + 48 + + 70 + - 77 / 29 ) - - + 26 AS col2
----
-1334
-22

skipif mysql # not compatible
query II rowsort label-8493
SELECT - 89 * + + 15 + - - COUNT ( * ) AS col2, COUNT ( * ) + - NULLIF ( + 49, + 59 / + 15 - 15 - + + 48 + + 70 + - 77 / 29 ) - - + 26 AS col2
----
-1334
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT + SUM( DISTINCT - 44 ) * + 37 AS col0, - 8 * + 86 AS col0
----
-1628
-688

skipif mysql # not compatible
query II rowsort label-8494
SELECT + SUM ( DISTINCT - 44 ) * + 37 AS col0, - 8 * + 86 AS col0
----
-1628
-688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8495
SELECT - ( + 54 ) - - CASE + - 55 WHEN - + 90 + 4 + + 74 + + COUNT( 19 ) + - 38 + + - 69 * 81 * 41 * + 78 + CAST( + - 59 AS SIGNED ) DIV - 63 THEN - 5 ELSE - 63 * 6 DIV ( + 3 ) + - - 22 END - + 81 - + 90 * - 56 AS col0
----
4801

skipif mysql # not compatible
query I rowsort label-8495
SELECT - ( + 54 ) - - CASE + - 55 WHEN - + 90 + 4 + + 74 + + COUNT ( 19 ) + - 38 + + - 69 * 81 * 41 * + 78 + CAST ( + - 59 AS INTEGER ) / - 63 THEN - 5 ELSE - 63 * 6 / ( + 3 ) + - - 22 END - + 81 - + 90 * - 56 AS col0
----
4801

query I rowsort
SELECT + 84 * 38 - + 23 AS col2
----
3169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8497
SELECT DISTINCT + MIN( ALL + - 48 ) DIV - + 41
----
1

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT + MIN ( ALL + - 48 ) / - + 41
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT ALL + - 47 * + - 94 - - ( + MAX( - - 60 ) ) AS col0
----
4478

skipif mysql # not compatible
query I rowsort label-8498
SELECT ALL + - 47 * + - 94 - - ( + MAX ( - - 60 ) ) AS col0
----
4478

query I rowsort
SELECT - 43 * - 57 * 84
----
205884

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT + + COUNT( ALL + + 13 ) - 16 + 50 * - - 40, MIN( - 80 ) AS col2
----
1985
-80

skipif mysql # not compatible
query II rowsort label-8500
SELECT + + COUNT ( ALL + + 13 ) - 16 + 50 * - - 40, MIN ( - 80 ) AS col2
----
1985
-80

query I rowsort
SELECT DISTINCT + 35 * - 2 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ALL + 2 * + SUM( ALL - - 85 ) AS col1
----
170

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL + 2 * + SUM ( ALL - - 85 ) AS col1
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT - COUNT( * ) DIV + - ( - + 73 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8503
SELECT - COUNT ( * ) / + - ( - + 73 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8504
SELECT + CAST( COUNT( * ) AS SIGNED ) DIV - MIN( DISTINCT 96 )
----
0

skipif mysql # not compatible
query I rowsort label-8504
SELECT + CAST ( COUNT ( * ) AS INTEGER ) / - MIN ( DISTINCT 96 )
----
0

query I rowsort
SELECT - 32 + 86
----
54

query I rowsort
SELECT + 2 * + 15 + + 72 + - 73 - 85 + - 66 * + - 98 AS col0
----
6412

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL SUM( ALL 8 ) col0
----
8

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL SUM ( ALL 8 ) col0
----
8

query II rowsort
SELECT ALL 91 AS col0, + 26
----
91
26

query I rowsort
SELECT + 70 + - 64 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8510
SELECT - CASE + MIN( ALL - CAST( 13 AS SIGNED ) ) WHEN CAST( NULL AS SIGNED ) * - CASE - COUNT( * ) WHEN + 53 * - 94 * + MIN( + 61 ) - + COUNT( * ) THEN NULL WHEN + + 86 THEN NULL ELSE + 3 END THEN - NULLIF ( 7, - NULLIF ( - + COUNT( 74 ), - - 48 / - 65 * 62 - + - 81 + 30 + - 55 * + 54 * - 90 + - - 83 ) * COUNT( * ) ) * COUNT( * ) WHEN 24 + COALESCE ( + 52 + - CAST( + 48 + 29 AS DECIMAL ) * + 9, - 66 ) THEN + 51 - 79 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT - CASE + MIN ( ALL - CAST ( 13 AS INTEGER ) ) WHEN CAST ( NULL AS INTEGER ) * - CASE - COUNT ( * ) WHEN + 53 * - 94 * + MIN ( + 61 ) - + COUNT ( * ) THEN NULL WHEN + + 86 THEN NULL ELSE + 3 END THEN - NULLIF ( 7, - NULLIF ( - + COUNT ( 74 ), - - 48 / - 65 * 62 - + - 81 + 30 + - 55 * + 54 * - 90 + - - 83 ) * COUNT ( * ) ) * COUNT ( * ) WHEN 24 + COALESCE ( + 52 + - CAST ( + 48 + 29 AS REAL ) * + 9, - 66 ) THEN + 51 - 79 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8511
SELECT ALL COUNT( * ) AS col1, - 65 * - 60
----
1
3900

skipif mysql # not compatible
query II rowsort label-8511
SELECT ALL COUNT ( * ) AS col1, - 65 * - 60
----
1
3900

query I rowsort
SELECT ALL 34 + - 70
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8513
SELECT ALL 52 + - 34 DIV + 20
----
51

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL 52 + - 34 / + 20
----
51

query II rowsort
SELECT ALL + 33 * + 6 * + 79 AS col2, + 0 AS col2
----
15642
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT + COUNT( * ) * - 24
----
-24

skipif mysql # not compatible
query I rowsort label-8515
SELECT + COUNT ( * ) * - 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT + 22 + + SUM( - 45 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8516
SELECT + 22 + + SUM ( - 45 ) AS col1
----
-23

query I rowsort
SELECT ALL 92 * 49 AS col2
----
4508

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT + COUNT( ALL - 39 ) + - COALESCE ( + - 18, + COALESCE ( + 82, 39 ) )
----
19

skipif mysql # not compatible
query I rowsort label-8518
SELECT + COUNT ( ALL - 39 ) + - COALESCE ( + - 18, + COALESCE ( + 82, 39 ) )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8519
SELECT + CAST( NULL AS SIGNED ), - 47 col1
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-8519
SELECT + CAST ( NULL AS INTEGER ), - 47 col1
----
NULL
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8520
SELECT ALL CASE 59 WHEN - - NULLIF ( - 84, + 4 - - 78 + + + 46 ) + - CAST( 62 AS SIGNED ) THEN + 46 + - MAX( + 24 ) ELSE NULL END / - 98 + + 56 + - + 55 + - 58 + - - COUNT( * ) + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL CASE 59 WHEN - - NULLIF ( - 84, + 4 - - 78 + + + 46 ) + - CAST ( 62 AS INTEGER ) THEN + 46 + - MAX ( + 24 ) ELSE NULL END / - 98 + + 56 + - + 55 + - 58 + - - COUNT ( * ) + - 33 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT - COUNT( * ) + 95 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-8521
SELECT - COUNT ( * ) + 95 AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8522
SELECT ALL COUNT( * ) DIV + 91 - - ( + - 36 ) + 41 - + 91 AS col0, 75
----
-86
75

skipif mysql # not compatible
query II rowsort label-8522
SELECT ALL COUNT ( * ) / + 91 - - ( + - 36 ) + 41 - + 91 AS col0, 75
----
-86
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT + 19 * + 62 + 73 + - 8 + - COUNT( * ) + - COALESCE ( + COALESCE ( - 62, SUM( DISTINCT - 7 ) ), 67 * - + 27 + - COUNT( * ) * 69, 53 * - + COUNT( * ) * + 89 + + - 74 + - + COUNT( ALL - 90 ) - - 54 - + - 14 ) * - ( + - COUNT( * ) ) * 13 + 96 + - 62 * - COUNT( * ) AS col0
----
2206

skipif mysql # not compatible
query I rowsort label-8523
SELECT + 19 * + 62 + 73 + - 8 + - COUNT ( * ) + - COALESCE ( + COALESCE ( - 62, SUM ( DISTINCT - 7 ) ), 67 * - + 27 + - COUNT ( * ) * 69, 53 * - + COUNT ( * ) * + 89 + + - 74 + - + COUNT ( ALL - 90 ) - - 54 - + - 14 ) * - ( + - COUNT ( * ) ) * 13 + 96 + - 62 * - COUNT ( * ) AS col0
----
2206

onlyif mysql # DIV for integer division: 
query I rowsort label-8524
SELECT ( 81 ) DIV 70 * - 92 + - 95
----
-187

skipif mysql # not compatible
query I rowsort label-8524
SELECT ( 81 ) / 70 * - 92 + - 95
----
-187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8525
SELECT + 56 * - 29 DIV COUNT( * ) * 33
----
-53592

skipif mysql # not compatible
query I rowsort label-8525
SELECT + 56 * - 29 / COUNT ( * ) * 33
----
-53592

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT DISTINCT - MAX( - + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT - MAX ( - + 76 )
----
76

query I rowsort
SELECT ALL - + 53 * - 60 * + 28
----
89040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8528
SELECT ALL + - COUNT( * ) * + + ( + + CAST( NULL AS SIGNED ) ) + + 41 + - - 5 + - 62 * - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL + - COUNT ( * ) * + + ( + + CAST ( NULL AS INTEGER ) ) + + 41 + - - 5 + - 62 * - 45 AS col0
----
NULL

query II rowsort
SELECT 81 + + - COALESCE ( 31, 89 ), - 83 * - 72 * - 98 AS col2
----
50
-585648

query I rowsort
SELECT ALL + - 48 * - 15
----
720

query I rowsort
SELECT - 63 + + + 59
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8532
SELECT DISTINCT + MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT + MAX ( DISTINCT - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT 73 + - - ( + - COUNT( * ) ) * 18
----
55

skipif mysql # not compatible
query I rowsort label-8533
SELECT 73 + - - ( + - COUNT ( * ) ) * 18
----
55

query II rowsort
SELECT - 97, 6 AS col1
----
-97
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT 91 + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8535
SELECT 91 + COUNT ( * ) AS col2
----
92

query I rowsort
SELECT NULLIF ( + 85, - 9 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT COUNT( * ) * - MAX( 10 ) * - - 94 * + 62 * + - 90 AS col0
----
5245200

skipif mysql # not compatible
query I rowsort label-8537
SELECT COUNT ( * ) * - MAX ( 10 ) * - - 94 * + 62 * + - 90 AS col0
----
5245200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8538
SELECT ALL + CASE 71 WHEN - - ( 97 ) THEN + COUNT( * ) WHEN - 81 * + - 29 THEN COUNT( * ) + + 76 ELSE COUNT( DISTINCT + + 45 ) END + - CAST( + MIN( ALL - 45 ) AS SIGNED ) AS col1, ( + + 63 )
----
46
63

skipif mysql # not compatible
query II rowsort label-8538
SELECT ALL + CASE 71 WHEN - - ( 97 ) THEN + COUNT ( * ) WHEN - 81 * + - 29 THEN COUNT ( * ) + + 76 ELSE COUNT ( DISTINCT + + 45 ) END + - CAST ( + MIN ( ALL - 45 ) AS INTEGER ) AS col1, ( + + 63 )
----
46
63

query II rowsort
SELECT DISTINCT 93 * - COALESCE ( 70, - + 40, - + 47 ) AS col0, 80
----
-6510
80

query I rowsort
SELECT ALL - 38 * - 49
----
1862

query I rowsort
SELECT 59 + + 9
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8542
SELECT 43 - - 79 - + ( + COUNT( * ) ) * - ( 35 ) DIV + 13 * - COUNT( * ) + + 22 + - CAST( 50 AS SIGNED ) DIV + 90 col1
----
142

skipif mysql # not compatible
query I rowsort label-8542
SELECT 43 - - 79 - + ( + COUNT ( * ) ) * - ( 35 ) / + 13 * - COUNT ( * ) + + 22 + - CAST ( 50 AS INTEGER ) / + 90 col1
----
142

query I rowsort
SELECT 78 * - + ( - - 89 ) col0
----
-6942

query I rowsort
SELECT DISTINCT 51 + + 84
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT MIN( + 86 ) - + - 4
----
90

skipif mysql # not compatible
query I rowsort label-8545
SELECT MIN ( + 86 ) - + - 4
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL 86 - COUNT( DISTINCT 44 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL 86 - COUNT ( DISTINCT 44 ) AS col0
----
85

query II rowsort
SELECT DISTINCT 15 - - 76 * + 68 * 7 AS col2, 85 * - + ( 65 ) col2
----
36191
-5525

onlyif mysql # aggregate syntax: 
query II rowsort label-8548
SELECT + COUNT( * ) * + + 36 * + 95 + COUNT( * ) AS col0, + COUNT( * )
----
3421
1

skipif mysql # not compatible
query II rowsort label-8548
SELECT + COUNT ( * ) * + + 36 * + 95 + COUNT ( * ) AS col0, + COUNT ( * )
----
3421
1

query I rowsort
SELECT ALL 50 - + 94 AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT - 62 * - + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8550
SELECT - 62 * - + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-62

query I rowsort
SELECT ALL + 62 * - 11 AS col1
----
-682

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT + CASE CAST( NULL AS SIGNED ) WHEN + - 48 THEN 87 ELSE + - 63 END
----
-63

skipif mysql # not compatible
query I rowsort label-8552
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN + - 48 THEN 87 ELSE + - 63 END
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT CAST( - + 47 AS SIGNED ) + + COALESCE ( 87, - 89, + + COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-8553
SELECT CAST ( - + 47 AS INTEGER ) + + COALESCE ( 87, - 89, + + COUNT ( * ) )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8554
SELECT DISTINCT 19 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT 19 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8555
SELECT COUNT( * ) * - 38 AS col2, + 86
----
-38
86

skipif mysql # not compatible
query II rowsort label-8555
SELECT COUNT ( * ) * - 38 AS col2, + 86
----
-38
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8556
SELECT 58 DIV 57 - - + COUNT( * ) + 72, 31 AS col1
----
74
31

skipif mysql # not compatible
query II rowsort label-8556
SELECT 58 / 57 - - + COUNT ( * ) + 72, 31 AS col1
----
74
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT MAX( ALL + 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8557
SELECT MAX ( ALL + 46 ) AS col2
----
46

query I rowsort
SELECT DISTINCT + 68 * - + 40
----
-2720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT CAST( NULL AS SIGNED ) / 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT CAST ( NULL AS INTEGER ) / 67 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8560
SELECT + CAST( + 33 AS DECIMAL ) - CAST( COALESCE ( ( 50 ), 20 + 61, + 7, COUNT( + - 26 ) ) AS SIGNED ) * - ( + - AVG ( ALL + + CAST( NULL AS SIGNED ) ) ) + + - ( - CAST( 86 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT + CAST ( + 33 AS REAL ) - CAST ( COALESCE ( ( 50 ), 20 + 61, + 7, COUNT ( + - 26 ) ) AS INTEGER ) * - ( + - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) ) + + - ( - CAST ( 86 AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8561
SELECT - 61 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-8561
SELECT - 61 / - 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8562
SELECT ALL - 85 + + 56 AS col2, MAX( ALL - - 44 ) * - + 24
----
-29
-1056

skipif mysql # not compatible
query II rowsort label-8562
SELECT ALL - 85 + + 56 AS col2, MAX ( ALL - - 44 ) * - + 24
----
-29
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT COUNT( * ) - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8563
SELECT COUNT ( * ) - 23 AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8564
SELECT ALL + - 45 + - + 6 - - + 55 + + 81 * 70 * - CASE - - 72 WHEN COUNT( * ) * - 20 THEN 99 ELSE - 32 + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * - 93 END, + NULLIF ( + 17, + 30 + - 72 / - + 61 ) * - SUM( - 79 ) AS col0
----
NULL
1343

skipif mysql # not compatible
query II rowsort label-8564
SELECT ALL + - 45 + - + 6 - - + 55 + + 81 * 70 * - CASE - - 72 WHEN COUNT ( * ) * - 20 THEN 99 ELSE - 32 + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 93 END, + NULLIF ( + 17, + 30 + - 72 / - + 61 ) * - SUM ( - 79 ) AS col0
----
NULL
1343

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT - - 0 * + - MIN( - 7 ) + - + 64 * + 50 * 21 + - 87
----
-67287

skipif mysql # not compatible
query I rowsort label-8565
SELECT - - 0 * + - MIN ( - 7 ) + - + 64 * + 50 * 21 + - 87
----
-67287

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT DISTINCT 93 + - NULLIF ( - + 73, + 64 * + ( - 33 ) + - - MIN( 23 ) * 3 ) col2
----
166

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT 93 + - NULLIF ( - + 73, + 64 * + ( - 33 ) + - - MIN ( 23 ) * 3 ) col2
----
166

query I rowsort
SELECT ALL - - 33 + 8 * + 9
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-8568
SELECT COALESCE ( 21, + + 40 + 81 DIV 88 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8568
SELECT COALESCE ( 21, + + 40 + 81 / 88 ) AS col2
----
21

query I rowsort
SELECT DISTINCT - - 8 + + 85 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8570
SELECT DISTINCT - ( + 17 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT - ( + 17 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8571
SELECT ALL - 79 + - 90 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL - 79 + - 90 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 53 - 29 + 71 - + + 46
----
49

query II rowsort
SELECT ALL 46 AS col1, 85
----
46
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8574
SELECT DISTINCT + CAST( - + 99 AS SIGNED ) * + COUNT( ALL + 85 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT + CAST ( - + 99 AS INTEGER ) * + COUNT ( ALL + 85 ) AS col1
----
-99

query I rowsort
SELECT 43 + 35 * - 44
----
-1497

query I rowsort
SELECT 53 + - 57 * + 39
----
-2170

query I rowsort
SELECT 88 - + 55 AS col0
----
33

query I rowsort
SELECT DISTINCT 4 * + 65 AS col2
----
260

query I rowsort
SELECT DISTINCT + 62 - 20 * + 90 + - 19
----
-1757

query I rowsort
SELECT ALL 39 * - + COALESCE ( 48, + - 43 )
----
-1872

query II rowsort
SELECT - ( + - 94 ) + 7, 66 + + 10 AS col0
----
101
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL MAX( + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL MAX ( + 13 )
----
13

query I rowsort
SELECT DISTINCT - 89 * 7 AS col1
----
-623

query II rowsort
SELECT + 97 * + NULLIF ( 71, + 94 + 35 ) AS col0, + 65 * 39 AS col0
----
6887
2535

query I rowsort
SELECT - 8 + + 31 + + 18 * - + 39 AS col2
----
-679

query I rowsort
SELECT + + 21 * + - 27
----
-567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT + - 47 DIV + + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-8587
SELECT + - 47 / + + COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT - MAX( DISTINCT 42 ) * COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8588
SELECT - MAX ( DISTINCT 42 ) * COUNT ( * ) AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8589
SELECT DISTINCT + + 70 AS col1, - 39 DIV - COUNT( * )
----
70
39

skipif mysql # not compatible
query II rowsort label-8589
SELECT DISTINCT + + 70 AS col1, - 39 / - COUNT ( * )
----
70
39

onlyif mysql # DIV for integer division: 
query II rowsort label-8590
SELECT ALL + 16 AS col0, 52 DIV - - 60
----
16
0

skipif mysql # not compatible
query II rowsort label-8590
SELECT ALL + 16 AS col0, 52 / - - 60
----
16
0

query I rowsort
SELECT + + 69 + 6 * + 79 AS col0
----
543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT 95 * + + 83 + - CASE - - COALESCE ( 92, 73 + - 74 ) WHEN MAX( + + 29 ) THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN + - 14 / - + 42 * - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT 95 * + + 83 + - CASE - - COALESCE ( 92, 73 + - 74 ) WHEN MAX ( + + 29 ) THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN + - 14 / - + 42 * - 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT SUM( DISTINCT + + 22 ) * 0 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8593
SELECT SUM ( DISTINCT + + 22 ) * 0 + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT ( 99 ) col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL + 10 * + 91 + - 9 * + - COUNT( * ) + - 42 - + + 98 * - COUNT( * ) * + - 39 + 43
----
-2902

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL + 10 * + 91 + - 9 * + - COUNT ( * ) + - 42 - + + 98 * - COUNT ( * ) * + - 39 + 43
----
-2902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8596
SELECT + + CAST( NULL AS SIGNED ) + - - 60 * - COALESCE ( + MIN( 31 ), - 98 * 76 - + 24, - 78 ) * 76 * - + 94 - - 41 + + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT + + CAST ( NULL AS INTEGER ) + - - 60 * - COALESCE ( + MIN ( 31 ), - 98 * 76 - + 24, - 78 ) * 76 * - + 94 - - 41 + + 4 AS col2
----
NULL

query I rowsort
SELECT - 77 * + ( 99 ) - 31
----
-7654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL 38 * - CAST( ( - COUNT( - 87 ) ) AS SIGNED ) * - 46 + + + 66 * + 40
----
892

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL 38 * - CAST ( ( - COUNT ( - 87 ) ) AS INTEGER ) * - 46 + + + 66 * + 40
----
892

query II rowsort
SELECT 40 AS col0, - 8 AS col2
----
40
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8600
SELECT DISTINCT + - 44 * + 17 + + + 63 DIV + + 14 + COUNT( * ) + 10 AS col1, SUM( DISTINCT + 6 ) + + - NULLIF ( 35, - 23 * + 94 + - COUNT( * ) )
----
-733
-29

skipif mysql # not compatible
query II rowsort label-8600
SELECT DISTINCT + - 44 * + 17 + + + 63 / + + 14 + COUNT ( * ) + 10 AS col1, SUM ( DISTINCT + 6 ) + + - NULLIF ( 35, - 23 * + 94 + - COUNT ( * ) )
----
-733
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8601
SELECT ALL NULLIF ( - 93, + COUNT( * ) ) * - + COALESCE ( + 54, CAST( NULL AS SIGNED ), 58 ) + - 35 DIV + COUNT( - + 76 ) + - 62 AS col1
----
4925

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL NULLIF ( - 93, + COUNT ( * ) ) * - + COALESCE ( + 54, CAST ( NULL AS INTEGER ), 58 ) + - 35 / + COUNT ( - + 76 ) + - 62 AS col1
----
4925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8602
SELECT + 97 * + + COUNT( * ) + COUNT( * ) / - CAST( NULL AS SIGNED ) - + ( + 92 ) - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT + 97 * + + COUNT ( * ) + COUNT ( * ) / - CAST ( NULL AS INTEGER ) - + ( + 92 ) - 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL + 62 * - - 90 * - COUNT( - - 26 ) AS col0
----
-5580

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL + 62 * - - 90 * - COUNT ( - - 26 ) AS col0
----
-5580

query I rowsort
SELECT ALL + 9 * + 87 + - NULLIF ( + + COALESCE ( 29, NULLIF ( + 60, + 65 / 93 * 31 ) - - 4, + ( - - 94 ) ), - NULLIF ( + ( + + 30 ), + + 92 ) ) * + + 1 AS col0
----
754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8605
SELECT COUNT( * ) AS col0, + COALESCE ( + - 16, + + 73, 43 ) * 84 + COALESCE ( 52, - ( + CAST( NULL AS SIGNED ) ) * - COUNT( ALL CAST( + - 29 AS SIGNED ) ) * - 41, - 79 DIV + CASE + 34 WHEN + 34 THEN + 53 * - 0 WHEN + 20 THEN NULL WHEN - - ( + + ( COUNT( * ) ) ) THEN NULL WHEN + + 98 THEN NULL END + - - 97, CAST( NULL AS SIGNED ) + + 41 + + + 13 ) AS col0
----
1
-1292

skipif mysql # not compatible
query II rowsort label-8605
SELECT COUNT ( * ) AS col0, + COALESCE ( + - 16, + + 73, 43 ) * 84 + COALESCE ( 52, - ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( ALL CAST ( + - 29 AS INTEGER ) ) * - 41, - 79 / + CASE + 34 WHEN + 34 THEN + 53 * - 0 WHEN + 20 THEN NULL WHEN - - ( + + ( COUNT ( * ) ) ) THEN NULL WHEN + + 98 THEN NULL END + - - 97, CAST ( NULL AS INTEGER ) + + 41 + + + 13 ) AS col0
----
1
-1292

query II rowsort
SELECT DISTINCT 93 AS col0, 16
----
93
16

query II rowsort
SELECT + 5 * + 96, - 38 * 99 AS col1
----
480
-3762

onlyif mysql # DIV for integer division: 
query I rowsort label-8608
SELECT ALL 75 - 85 * - - 99 + 66 + - 57 * 58 DIV - 17 col0
----
-8080

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL 75 - 85 * - - 99 + 66 + - 57 * 58 / - 17 col0
----
-8080

onlyif mysql # aggregate syntax: 
query II rowsort label-8609
SELECT 81, 38 + + 80 + + - 49 * - COUNT( * ) * - 96 AS col2
----
81
-4586

skipif mysql # not compatible
query II rowsort label-8609
SELECT 81, 38 + + 80 + + - 49 * - COUNT ( * ) * - 96 AS col2
----
81
-4586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8610
SELECT NULLIF ( - + 42, + COUNT( * ) ) * + 84 * - CAST( - ( + + 90 ) AS SIGNED ) + 67 - - 36 AS col2
----
-317417

skipif mysql # not compatible
query I rowsort label-8610
SELECT NULLIF ( - + 42, + COUNT ( * ) ) * + 84 * - CAST ( - ( + + 90 ) AS INTEGER ) + 67 - - 36 AS col2
----
-317417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8611
SELECT + MIN( 69 ) DIV 7 + 93 + + CAST( + 80 AS SIGNED ) + + 13 * - + 58 AS col1
----
-572

skipif mysql # not compatible
query I rowsort label-8611
SELECT + MIN ( 69 ) / 7 + 93 + + CAST ( + 80 AS INTEGER ) + + 13 * - + 58 AS col1
----
-572

query I rowsort
SELECT ALL + 75 * 38 AS col2
----
2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8613
SELECT + MAX( 56 ) * - + CAST( + 45 AS SIGNED ), COUNT( * ) AS col2
----
-2520
1

skipif mysql # not compatible
query II rowsort label-8613
SELECT + MAX ( 56 ) * - + CAST ( + 45 AS INTEGER ), COUNT ( * ) AS col2
----
-2520
1

query I rowsort
SELECT ALL CASE - + 88 WHEN ( + 11 ) THEN - ( 8 ) ELSE 2 END
----
2

query I rowsort
SELECT - ( + + 98 ) + + 90 col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8616
SELECT DISTINCT + COUNT( * ) - - COUNT( * ) + 13 * + + 75 * - NULLIF ( COUNT( * ), 22 + 54 DIV + + 1 ) AS col1, 37 DIV - 22
----
-973
-1

skipif mysql # not compatible
query II rowsort label-8616
SELECT DISTINCT + COUNT ( * ) - - COUNT ( * ) + 13 * + + 75 * - NULLIF ( COUNT ( * ), 22 + 54 / + + 1 ) AS col1, 37 / - 22
----
-973
-1

query I rowsort
SELECT + 15 * + 52
----
780

query I rowsort
SELECT - 21 + - + 80 * + 16 AS col2
----
-1301

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT - 73 * - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8619
SELECT - 73 * - COUNT ( * )
----
73

query I rowsort
SELECT - 91 + + 58
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - MAX( ALL - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-8621
SELECT - MAX ( ALL - 26 )
----
26

query I rowsort
SELECT ALL ( - + 94 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT + SUM( DISTINCT 55 )
----
55

skipif mysql # not compatible
query I rowsort label-8623
SELECT + SUM ( DISTINCT 55 )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8624
SELECT ALL - 93 DIV ( 26 ) * 36 + - ( 53 ) + + + 88 * 19
----
1511

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL - 93 / ( 26 ) * 36 + - ( 53 ) + + + 88 * 19
----
1511

query I rowsort
SELECT - ( - COALESCE ( - 32, + + 61 ) ) * + 95 + - 25 + + - 25 AS col1
----
-3090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT DISTINCT + + CAST( + 86 AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT + + CAST ( + 86 AS INTEGER ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8627
SELECT 99 DIV CAST( - + COUNT( * ) AS SIGNED ) + + + 69 - 19 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-8627
SELECT 99 / CAST ( - + COUNT ( * ) AS INTEGER ) + + + 69 - 19 AS col2
----
-49

query I rowsort
SELECT - + 24 * - + 18 AS col0
----
432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT ALL - - 19 DIV - 28 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL - - 19 / - 28 + - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT - 56 * + 3 col1
----
-168

query I rowsort
SELECT + - 49 * - 93
----
4557

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8632
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 96 + - CAST( NULL AS SIGNED ) + - + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 96 + - CAST ( NULL AS INTEGER ) + - + 35 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 29 * + 41 AS col0
----
-1189

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT - 83 DIV + - 32 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8634
SELECT - 83 / + - 32 AS col0
----
2

query II rowsort
SELECT ALL + - 27 AS col0, 24 * + 24
----
-27
576

onlyif mysql # aggregate syntax: 
query II rowsort label-8636
SELECT 36 col2, - COUNT( - + 80 )
----
36
-1

skipif mysql # not compatible
query II rowsort label-8636
SELECT 36 col2, - COUNT ( - + 80 )
----
36
-1

query I rowsort
SELECT ALL + + ( 65 ) AS col1
----
65

query II rowsort
SELECT + 10 AS col1, 12 col1
----
10
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8639
SELECT - COUNT( * ) - - + COUNT( * ) col0, COUNT( * ) + - 80 * - - COUNT( * ) AS col0
----
0
-79

skipif mysql # not compatible
query II rowsort label-8639
SELECT - COUNT ( * ) - - + COUNT ( * ) col0, COUNT ( * ) + - 80 * - - COUNT ( * ) AS col0
----
0
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT + CAST( + ( - + 93 ) AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-8640
SELECT + CAST ( + ( - + 93 ) AS INTEGER )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT CASE + - CAST( NULL AS SIGNED ) WHEN + 12 * - COUNT( + + 41 ) + 91 THEN + 79 * - 34 ELSE - + 96 * - 13 + - + 97 + - ( - COUNT( * ) ) END AS col2
----
1152

skipif mysql # not compatible
query I rowsort label-8641
SELECT CASE + - CAST ( NULL AS INTEGER ) WHEN + 12 * - COUNT ( + + 41 ) + 91 THEN + 79 * - 34 ELSE - + 96 * - 13 + - + 97 + - ( - COUNT ( * ) ) END AS col2
----
1152

query I rowsort
SELECT + 81 - - 45 + - + 94 * 58 - - 79
----
-5247

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT + MIN( + 77 ) * + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-8643
SELECT + MIN ( + 77 ) * + COUNT ( * )
----
77

query I rowsort
SELECT ALL 93 * + 13 AS col2
----
1209

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8645
SELECT + 28 * - CAST( NULL AS SIGNED ) * - 34 + 10 + - - ( + 94 ) * + 64 AS col1, 14 * + ( + 27 ) * + 82 + - ( - 97 ) + - 93
----
NULL
31000

skipif mysql # not compatible
query II rowsort label-8645
SELECT + 28 * - CAST ( NULL AS INTEGER ) * - 34 + 10 + - - ( + 94 ) * + 64 AS col1, 14 * + ( + 27 ) * + 82 + - ( - 97 ) + - 93
----
NULL
31000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8646
SELECT - ( - CAST( + 51 AS SIGNED ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-8646
SELECT - ( - CAST ( + 51 AS INTEGER ) ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL NULLIF ( + CASE 71 WHEN + 90 - - 37 + - 81 * + + 37 THEN COUNT( * ) ELSE NULL END, + 60 / ( + COUNT( * ) ) ) * - COUNT( + 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL NULLIF ( + CASE 71 WHEN + 90 - - 37 + - 81 * + + 37 THEN COUNT ( * ) ELSE NULL END, + 60 / ( + COUNT ( * ) ) ) * - COUNT ( + 60 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL MAX( DISTINCT + + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL MAX ( DISTINCT + + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL NULLIF ( - 74, + - SUM( ALL + 33 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL NULLIF ( - 74, + - SUM ( ALL + 33 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT 97 + 18 + - COUNT( * ) * + + 14
----
101

skipif mysql # not compatible
query I rowsort label-8650
SELECT 97 + 18 + - COUNT ( * ) * + + 14
----
101

query I rowsort
SELECT 68 * + + 34 AS col2
----
2312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8652
SELECT ALL MIN( + ( - 93 ) ) DIV - 21
----
4

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL MIN ( + ( - 93 ) ) / - 21
----
4

query I rowsort
SELECT 19 * + + 8
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL + 8 + 64 * + COUNT( * ) + + + 15 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + 8 + 64 * + COUNT ( * ) + + + 15 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8655
SELECT + 91 + 25 + + CAST( COUNT( * ) AS SIGNED )
----
117

skipif mysql # not compatible
query I rowsort label-8655
SELECT + 91 + 25 + + CAST ( COUNT ( * ) AS INTEGER )
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8656
SELECT ALL - COUNT( * ) + 38 AS col0, - ( - 15 ) + + 3 - + CAST( - 7 AS SIGNED ) * + 20 * - 63 AS col1
----
37
-8802

skipif mysql # not compatible
query II rowsort label-8656
SELECT ALL - COUNT ( * ) + 38 AS col0, - ( - 15 ) + + 3 - + CAST ( - 7 AS INTEGER ) * + 20 * - 63 AS col1
----
37
-8802

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT 35 + 49 + - 2 * - + COUNT( * ) * - COUNT( DISTINCT 8 ) * + 17 + - + COUNT( * ) - - - 21
----
28

skipif mysql # not compatible
query I rowsort label-8657
SELECT 35 + 49 + - 2 * - + COUNT ( * ) * - COUNT ( DISTINCT 8 ) * + 17 + - + COUNT ( * ) - - - 21
----
28

query II rowsort
SELECT + 23 * + 91 * + - 83 AS col0, - 14 AS col1
----
-173719
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-8659
SELECT - 30 DIV - 71 + + 63 - - 35 * 80 AS col0, 36 * + 28 AS col2
----
2863
1008

skipif mysql # not compatible
query II rowsort label-8659
SELECT - 30 / - 71 + + 63 - - 35 * 80 AS col0, 36 * + 28 AS col2
----
2863
1008

query I rowsort
SELECT ALL + 6 + - 43
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT - + 59 * COUNT( * ) - + 62 AS col1
----
-121

skipif mysql # not compatible
query I rowsort label-8661
SELECT - + 59 * COUNT ( * ) - + 62 AS col1
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8662
SELECT - 18 DIV - - 6 + - COALESCE ( - + 89, - - MAX( DISTINCT + 76 ), + COUNT( * ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8662
SELECT - 18 / - - 6 + - COALESCE ( - + 89, - - MAX ( DISTINCT + 76 ), + COUNT ( * ) ) AS col0
----
86

query I rowsort
SELECT + 8 * + 46 AS col2
----
368

query I rowsort
SELECT + 42 * - 9 * - + 53 + + - 82 AS col0
----
19952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8665
SELECT ( - 83 ) * - CASE + 71 WHEN - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) THEN + 4 WHEN + - CAST( - ( - 80 ) AS SIGNED ) * - SUM( - 82 ) THEN 6 * CASE + 20 WHEN - + 43 + + + CAST( NULL AS SIGNED ) THEN - - 17 * - + 2 + 85 END ELSE NULL END + - CAST( NULL AS SIGNED ) + CAST( + - 29 AS SIGNED ) + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT ( - 83 ) * - CASE + 71 WHEN - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN + 4 WHEN + - CAST ( - ( - 80 ) AS INTEGER ) * - SUM ( - 82 ) THEN 6 * CASE + 20 WHEN - + 43 + + + CAST ( NULL AS INTEGER ) THEN - - 17 * - + 2 + 85 END ELSE NULL END + - CAST ( NULL AS INTEGER ) + CAST ( + - 29 AS INTEGER ) + 94
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8666
SELECT ALL + 75 * + ( CAST( NULL AS SIGNED ) ), - ( 72 ) AS col0
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-8666
SELECT ALL + 75 * + ( CAST ( NULL AS INTEGER ) ), - ( 72 ) AS col0
----
NULL
-72

query I rowsort
SELECT 88 + - + 97
----
-9

query II rowsort
SELECT 33, 63 AS col1
----
33
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8669
SELECT MIN( - 19 ) DIV COUNT( * ) AS col1, 27 * - + 26
----
-19
-702

skipif mysql # not compatible
query II rowsort label-8669
SELECT MIN ( - 19 ) / COUNT ( * ) AS col1, 27 * - + 26
----
-19
-702

query II rowsort
SELECT ALL - 4 AS col0, + 48
----
-4
48

query I rowsort
SELECT DISTINCT - COALESCE ( - 78, - 75, 98 * - + 86 ) AS col1
----
78

query II rowsort
SELECT - 64 AS col1, - 65 + 49 * + + 11 * 95 AS col0
----
-64
51140

query II rowsort
SELECT 44, + 73 AS col2
----
44
73

query II rowsort
SELECT - 20, - NULLIF ( + 15, - 87 + - 22 + + + 58 ) + + 26 AS col0
----
-20
11

query II rowsort
SELECT 84 + - - 86 + 59 * + + 63 AS col1, 28 col0
----
3887
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8676
SELECT CASE - - 85 WHEN - + 81 THEN + 0 + - 82 * + - 66 ELSE NULL END * - CAST( + + 53 AS SIGNED ) + COUNT( * ) * 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT CASE - - 85 WHEN - + 81 THEN + 0 + - 82 * + - 66 ELSE NULL END * - CAST ( + + 53 AS INTEGER ) + COUNT ( * ) * 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT DISTINCT CASE + + 54 WHEN - + 27 - - + 67 + - COUNT( * ) THEN NULL ELSE + 98 + 99 - + 73 + 84 DIV + - 21 END + + + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT CASE + + 54 WHEN - + 27 - - + 67 + - COUNT ( * ) THEN NULL ELSE + 98 + 99 - + 73 + 84 / + - 21 END + + + COUNT ( * )
----
121

query I rowsort
SELECT ALL ( + - 72 ) + + 24 + 83 + - + 13 * 65 AS col1
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT - 71 + 24 * - COUNT( + 79 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8679
SELECT - 71 + 24 * - COUNT ( + 79 ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT DISTINCT + 51 + - - CAST( 2 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-8680
SELECT DISTINCT + 51 + - - CAST ( 2 AS INTEGER )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT ALL 59 + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL 59 + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT + 38 DIV + - 51 + - - ( + - 72 ) + 29 * - + 21 * 87 * + 72 - + 21
----
-3814869

skipif mysql # not compatible
query I rowsort label-8682
SELECT + 38 / + - 51 + - - ( + - 72 ) + 29 * - + 21 * 87 * + 72 - + 21
----
-3814869

query I rowsort
SELECT - + CASE - 99 WHEN ( + 32 ) THEN + - ( 1 ) WHEN - 76 * - 52 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8684
SELECT - - 50 AS col2, COUNT( * )
----
50
1

skipif mysql # not compatible
query II rowsort label-8684
SELECT - - 50 AS col2, COUNT ( * )
----
50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT + 21 + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-8685
SELECT + 21 + COUNT ( * )
----
22

query I rowsort
SELECT ALL - 58 + - - 33 AS col2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8687
SELECT 27 DIV - 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-8687
SELECT 27 / - 72 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT - MIN( DISTINCT - 44 ) * - 1 * - 35
----
1540

skipif mysql # not compatible
query I rowsort label-8688
SELECT - MIN ( DISTINCT - 44 ) * - 1 * - 35
----
1540

query II rowsort
SELECT + 66 col0, + 96 AS col0
----
66
96

query I rowsort
SELECT ALL - - ( 90 )
----
90

query I rowsort
SELECT ALL - + 16 * - - 63 - + - 2 + + 97 col0
----
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + COUNT( DISTINCT - 52 ) * - + 62
----
-62

skipif mysql # not compatible
query I rowsort label-8692
SELECT + COUNT ( DISTINCT - 52 ) * - + 62
----
-62

query I rowsort
SELECT ( + - 60 ) * 52
----
-3120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT DISTINCT + - CAST( - - 8 AS SIGNED ) * - 44 * + + 5
----
1760

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT + - CAST ( - - 8 AS INTEGER ) * - 44 * + + 5
----
1760

query I rowsort
SELECT + 37 + + NULLIF ( + NULLIF ( + + 33, + 84 ), + 24 + - + 81 ) col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT MIN( ALL + 17 ) * - 27 + - ( + 7 )
----
-466

skipif mysql # not compatible
query I rowsort label-8696
SELECT MIN ( ALL + 17 ) * - 27 + - ( + 7 )
----
-466

query II rowsort
SELECT ALL - + 11 AS col0, - 96 - + 66 * + 32
----
-11
-2208

query I rowsort
SELECT + + ( 45 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT ALL + NULLIF ( - 68, - 64 * + 65 * COUNT( * ) / + 49 ) * + - 5 AS col2
----
340

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL + NULLIF ( - 68, - 64 * + 65 * COUNT ( * ) / + 49 ) * + - 5 AS col2
----
340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8700
SELECT 59 * - + COUNT( * ) DIV + - 87
----
0

skipif mysql # not compatible
query I rowsort label-8700
SELECT 59 * - + COUNT ( * ) / + - 87
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8701
SELECT DISTINCT + 61 DIV + - 4
----
-15

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT + 61 / + - 4
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL - NULLIF ( - 99, - 35 + - 69 + - 44 - + + 86 * - + COUNT( DISTINCT 39 ) / + 40 )
----
99

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - NULLIF ( - 99, - 35 + - 69 + - 44 - + + 86 * - + COUNT ( DISTINCT 39 ) / + 40 )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL + 44 * - - 62 * - NULLIF ( + - 3, + 53 + + CAST( NULL AS SIGNED ) )
----
8184

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + 44 * - - 62 * - NULLIF ( + - 3, + 53 + + CAST ( NULL AS INTEGER ) )
----
8184

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT MIN( ALL - - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-8704
SELECT MIN ( ALL - - 29 )
----
29

query I rowsort
SELECT + 75 * 91 AS col0
----
6825

query I rowsort
SELECT - 92 - + 82 + 63
----
-111

query I rowsort
SELECT ALL - 44 * + 38
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT + COUNT( DISTINCT + + 71 ) * + 37 + + - 70 col1
----
-33

skipif mysql # not compatible
query I rowsort label-8708
SELECT + COUNT ( DISTINCT + + 71 ) * + 37 + + - 70 col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8709
SELECT - CASE - ( COALESCE ( COUNT( * ), ( 66 ), + 47 ) ) WHEN - 78 THEN - 21 DIV - MAX( ALL + 26 ) - 51 + COUNT( CAST( NULL AS SIGNED ) ) * + - CAST( COUNT( * ) AS SIGNED ) + - - 51 DIV + + 91 + + - 23 DIV - - 78 ELSE - 34 * - NULLIF ( 44, + - 0 - - COUNT( ALL - + 17 ) - - - 37 ) + COUNT( * ) + + + 3 + 29 + - 3 - - 11 * - - 37 END * - 35 * COUNT( * )
----
67655

skipif mysql # not compatible
query I rowsort label-8709
SELECT - CASE - ( COALESCE ( COUNT ( * ), ( 66 ), + 47 ) ) WHEN - 78 THEN - 21 / - MAX ( ALL + 26 ) - 51 + COUNT ( CAST ( NULL AS INTEGER ) ) * + - CAST ( COUNT ( * ) AS INTEGER ) + - - 51 / + + 91 + + - 23 / - - 78 ELSE - 34 * - NULLIF ( 44, + - 0 - - COUNT ( ALL - + 17 ) - - - 37 ) + COUNT ( * ) + + + 3 + 29 + - 3 - - 11 * - - 37 END * - 35 * COUNT ( * )
----
67655

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT COUNT( + COALESCE ( - 10, + 70 ) ) * - + 36 + - 40
----
-76

skipif mysql # not compatible
query I rowsort label-8710
SELECT COUNT ( + COALESCE ( - 10, + 70 ) ) * - + 36 + - 40
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8711
SELECT DISTINCT MAX( + 47 ) col1, - COUNT( * )
----
47
-1

skipif mysql # not compatible
query II rowsort label-8711
SELECT DISTINCT MAX ( + 47 ) col1, - COUNT ( * )
----
47
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT - ( 38 ) + - 47 + 9 * 50 * ( - 43 ) * - COUNT( * )
----
19265

skipif mysql # not compatible
query I rowsort label-8712
SELECT - ( 38 ) + - 47 + 9 * 50 * ( - 43 ) * - COUNT ( * )
----
19265

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL + 54 + + ( + COUNT( DISTINCT - 36 ) )
----
55

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + 54 + + ( + COUNT ( DISTINCT - 36 ) )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8714
SELECT DISTINCT 91 DIV + + MAX( DISTINCT - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT 91 / + + MAX ( DISTINCT - 50 )
----
-1

query I rowsort
SELECT ALL - 27 + - - 46 AS col2
----
19

query II rowsort
SELECT - 15 - + 24 AS col0, 26 + - 26 AS col1
----
-39
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8717
SELECT + 91 - - + COUNT( * ) * + 88 - - - 45, 48 + + - COUNT( * ) AS col2
----
134
47

skipif mysql # not compatible
query II rowsort label-8717
SELECT + 91 - - + COUNT ( * ) * + 88 - - - 45, 48 + + - COUNT ( * ) AS col2
----
134
47

query I rowsort
SELECT ALL + CASE - 51 WHEN - - 85 THEN + 56 + ( + ( - + 36 ) ) END + + 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT - MAX( + 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8719
SELECT - MAX ( + 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT + MIN( ALL - 84 ) + - COUNT( * ) + - + 23 + 77 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8720
SELECT + MIN ( ALL - 84 ) + - COUNT ( * ) + - + 23 + 77 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT CASE - 77 WHEN + 46 + - 92 + + 22 * - + COUNT( * ) THEN - 42 * - COUNT( * ) WHEN - 96 THEN AVG ( ALL - 41 ) / + 40 WHEN COUNT( * ) * + 93 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8721
SELECT CASE - 77 WHEN + 46 + - 92 + + 22 * - + COUNT ( * ) THEN - 42 * - COUNT ( * ) WHEN - 96 THEN AVG ( ALL - 41 ) / + 40 WHEN COUNT ( * ) * + 93 THEN NULL END
----
NULL

query II rowsort
SELECT - - 67 + 4, + 9 col2
----
71
9

query I rowsort
SELECT + 63 * - 24 * 57
----
-86184

query II rowsort
SELECT ALL + ( - 51 ) AS col0, 61 * - - 4
----
-51
244

query I rowsort
SELECT 74 * + + 80 + - 35 + 44 + - - 25 * - 76 AS col2
----
4029

onlyif mysql # DIV for integer division: 
query I rowsort label-8726
SELECT ALL 4 DIV + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL 4 / + 83 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT + 11 DIV - + 48
----
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT + 11 / - + 48
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT ALL 17 DIV - - 78
----
0

skipif mysql # not compatible
query I rowsort label-8728
SELECT ALL 17 / - - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT + COUNT( * ) + 7 * + + 74 * + 73 col2
----
37815

skipif mysql # not compatible
query I rowsort label-8729
SELECT + COUNT ( * ) + 7 * + + 74 * + 73 col2
----
37815

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL + CASE 98 WHEN 50 THEN + SUM( ALL 1 ) END * + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL + CASE 98 WHEN 50 THEN + SUM ( ALL 1 ) END * + - 60
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT + CAST( NULL AS SIGNED ) + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT + CAST ( NULL AS INTEGER ) + 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8732
SELECT + CASE + 85 WHEN + 24 THEN NULL WHEN - + 89 + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) THEN - 31 * + 2 * 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT + CASE + 85 WHEN + 24 THEN NULL WHEN - + 89 + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) THEN - 31 * + 2 * 16 ELSE NULL END
----
NULL

query I rowsort
SELECT ( + - COALESCE ( - 58, + 91, - 57 + 29 ) ) col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8734
SELECT + CASE COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + + 27 * + 0 END * + - 88 * NULLIF ( + + 95, + 47 * AVG ( ALL - 35 ) ) + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT + CASE COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 27 * + 0 END * + - 88 * NULLIF ( + + 95, + 47 * AVG ( ALL - 35 ) ) + - 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8735
SELECT ALL MAX( 75 ) * + COUNT( * ) DIV 78 + 73 * - + 18 AS col2, + COUNT( * ) DIV + COUNT( * )
----
-1314
1

skipif mysql # not compatible
query II rowsort label-8735
SELECT ALL MAX ( 75 ) * + COUNT ( * ) / 78 + 73 * - + 18 AS col2, + COUNT ( * ) / + COUNT ( * )
----
-1314
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8736
SELECT + 69 + + COUNT( * ) + + 47 + - + 70 * 9 * + ( + 7 ) / + 46 * + - 61 * + 6 * COUNT( * ) + - CAST( NULL AS DECIMAL ) - - 86 - - 29 * + + 92 * + 45 + + - 72 * - 55 / - - 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT + 69 + + COUNT ( * ) + + 47 + - + 70 * 9 * + ( + 7 ) / + 46 * + - 61 * + 6 * COUNT ( * ) + - CAST ( NULL AS REAL ) - - 86 - - 29 * + + 92 * + 45 + + - 72 * - 55 / - - 6 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT + CAST( + 27 AS SIGNED ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8737
SELECT + CAST ( + 27 AS INTEGER ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT ALL + COUNT( * ) * - 69 * 31 + 41
----
-2098

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL + COUNT ( * ) * - 69 * 31 + 41
----
-2098

query I rowsort
SELECT CASE WHEN ( NOT NULL NOT IN ( - 26 ) ) THEN + ( - - 31 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8740
SELECT DISTINCT + 29 AS col0, COUNT( * ) AS col1
----
29
1

skipif mysql # not compatible
query II rowsort label-8740
SELECT DISTINCT + 29 AS col0, COUNT ( * ) AS col1
----
29
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8741
SELECT ALL - COUNT( * ) DIV + NULLIF ( - COUNT( ALL + 45 ), 36 ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - COUNT ( * ) / + NULLIF ( - COUNT ( ALL + 45 ), 36 ) / COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT DISTINCT 2 * - 90 * 60 + - 83 * - CAST( - 54 AS SIGNED )
----
-15282

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT 2 * - 90 * 60 + - 83 * - CAST ( - 54 AS INTEGER )
----
-15282

query I rowsort
SELECT - 91 + + 13 * - 30 AS col0
----
-481

onlyif mysql # DIV for integer division: 
query I rowsort label-8744
SELECT - 67 + + - 17 DIV + - 65 * 74 DIV + - 34 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-8744
SELECT - 67 + + - 17 / + - 65 * 74 / + - 34 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT - COUNT( * ) + 19 * - 45 col2
----
-856

skipif mysql # not compatible
query I rowsort label-8745
SELECT - COUNT ( * ) + 19 * - 45 col2
----
-856

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8746
SELECT - COALESCE ( - + 44, 49 * + CAST( 45 AS SIGNED ) - - - ( - 60 ) ) DIV 54 + + 93 + + - 47 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8746
SELECT - COALESCE ( - + 44, 49 * + CAST ( 45 AS INTEGER ) - - - ( - 60 ) ) / 54 + + 93 + + - 47 AS col2
----
46

query I rowsort
SELECT - 80 * - + 39
----
3120

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT - 20 + + 15 DIV + 81 * 96 - - 63 col1
----
43

skipif mysql # not compatible
query I rowsort label-8748
SELECT - 20 + + 15 / + 81 * 96 - - 63 col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT DISTINCT - + SUM( DISTINCT + - 0 ) - ( + 26 ) + - 16
----
-42

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT - + SUM ( DISTINCT + - 0 ) - ( + 26 ) + - 16
----
-42

query I rowsort
SELECT DISTINCT - + ( - - 28 ) * + 69 col2
----
-1932

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8751
SELECT ALL + CASE + 65 WHEN + ( CAST( NULL AS SIGNED ) ) + - COUNT( * ) THEN + 82 + + + SUM( 12 ) + + + 37 * - + 39 * + 81 END col2, + 65 * - 66 * - - 93
----
NULL
-398970

skipif mysql # not compatible
query II rowsort label-8751
SELECT ALL + CASE + 65 WHEN + ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) THEN + 82 + + + SUM ( 12 ) + + + 37 * - + 39 * + 81 END col2, + 65 * - 66 * - - 93
----
NULL
-398970

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8752
SELECT - + 14 + + 80 DIV ( + CAST( + - 68 AS SIGNED ) ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8752
SELECT - + 14 + + 80 / ( + CAST ( + - 68 AS INTEGER ) ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT - - COUNT( * ) + + - 1
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT - - COUNT ( * ) + + - 1
----
0

query I rowsort
SELECT + ( + 25 ) AS col0
----
25

query I rowsort
SELECT - - CASE - + 64 WHEN 81 THEN + 3 END
----
NULL

query I rowsort
SELECT - 83 + + + 22 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT + COUNT( * ) + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-8757
SELECT + COUNT ( * ) + - 17
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8758
SELECT ALL 93 * + COUNT( * ) + + + CAST( 4 AS SIGNED ) * + + 74, + COUNT( * ) AS col2
----
389
1

skipif mysql # not compatible
query II rowsort label-8758
SELECT ALL 93 * + COUNT ( * ) + + + CAST ( 4 AS INTEGER ) * + + 74, + COUNT ( * ) AS col2
----
389
1

query I rowsort
SELECT - 63 * + 60
----
-3780

query I rowsort
SELECT ALL COALESCE ( + 74, + 37 * 53 ) col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT COUNT( * ) * 18 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT COUNT ( * ) * 18 AS col1
----
18

query II rowsort
SELECT + NULLIF ( + 77, - 91 ) AS col0, - 92
----
77
-92

query I rowsort
SELECT 52 * - + 42 col1
----
-2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8764
SELECT 88 * 10 * NULLIF ( + 81, 4 * 28 DIV - COUNT( * ) ) DIV + 84
----
848

skipif mysql # not compatible
query I rowsort label-8764
SELECT 88 * 10 * NULLIF ( + 81, 4 * 28 / - COUNT ( * ) ) / + 84
----
848

query I rowsort
SELECT DISTINCT 28 + ( + + 19 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8766
SELECT + 47 col2, CAST( AVG ( - - 76 ) AS SIGNED ) * - 71 - + 6 col1
----
47
-5402

skipif mysql # not compatible
query II rowsort label-8766
SELECT + 47 col2, CAST ( AVG ( - - 76 ) AS INTEGER ) * - 71 - + 6 col1
----
47
-5402

query I rowsort
SELECT ALL 63 + + 70 AS col1
----
133

query I rowsort
SELECT 78 * + 5 AS col0
----
390

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT + 44 + + COUNT( DISTINCT ( - NULLIF ( - 30, - 66 * + 0 ) ) ) + - 8
----
37

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT + 44 + + COUNT ( DISTINCT ( - NULLIF ( - 30, - 66 * + 0 ) ) ) + - 8
----
37

query I rowsort
SELECT ALL 57 + + 66 * 50 * 22 AS col2
----
72657

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT DISTINCT COUNT( * ) DIV - + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT COUNT ( * ) / - + 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8772
SELECT 68 AS col1, + COUNT( * ) + - 91 col1
----
68
-90

skipif mysql # not compatible
query II rowsort label-8772
SELECT 68 AS col1, + COUNT ( * ) + - 91 col1
----
68
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT ALL 27 + COUNT( * ) + - - 76 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL 27 + COUNT ( * ) + - - 76 AS col2
----
104

query I rowsort
SELECT ALL 9 + + + 62 AS col2
----
71

query II rowsort
SELECT ALL - 48, 35 + 95 AS col1
----
-48
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT COUNT( DISTINCT + 54 ) + - 51
----
-50

skipif mysql # not compatible
query I rowsort label-8776
SELECT COUNT ( DISTINCT + 54 ) + - 51
----
-50

query I rowsort
SELECT DISTINCT 56 * 99
----
5544

onlyif mysql # aggregate syntax: 
query II rowsort label-8778
SELECT DISTINCT - 64, + COUNT( * ) * + + 6 * + 60 col0
----
-64
360

skipif mysql # not compatible
query II rowsort label-8778
SELECT DISTINCT - 64, + COUNT ( * ) * + + 6 * + 60 col0
----
-64
360

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT 3 + + 94 DIV + + 95
----
3

skipif mysql # not compatible
query I rowsort label-8779
SELECT 3 + + 94 / + + 95
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8780
SELECT 3, COUNT( * ) * - 43 AS col2
----
3
-43

skipif mysql # not compatible
query II rowsort label-8780
SELECT 3, COUNT ( * ) * - 43 AS col2
----
3
-43

query II rowsort
SELECT 11 AS col2, - 63 AS col1
----
11
-63

query I rowsort
SELECT ALL COALESCE ( + 21, - 78 )
----
21

query I rowsort
SELECT + 18 * - 5 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL - COUNT( * ) * + + 97
----
-97

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL - COUNT ( * ) * + + 97
----
-97

query II rowsort
SELECT ALL 6, 7 AS col0
----
6
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT 25 * + MAX( + COALESCE ( + 28, 1 ) )
----
700

skipif mysql # not compatible
query I rowsort label-8786
SELECT 25 * + MAX ( + COALESCE ( + 28, 1 ) )
----
700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8787
SELECT DISTINCT + COUNT( * ) DIV + 78 + - 72
----
-72

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT + COUNT ( * ) / + 78 + - 72
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8788
SELECT - 81 DIV CAST( 86 AS SIGNED ) * 9 + + 83 - + + 0 AS col2, - COUNT( + 77 ) AS col2
----
83
-1

skipif mysql # not compatible
query II rowsort label-8788
SELECT - 81 / CAST ( 86 AS INTEGER ) * 9 + + 83 - + + 0 AS col2, - COUNT ( + 77 ) AS col2
----
83
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8789
SELECT NULLIF ( + + 26, 0 ) * NULLIF ( CAST( NULL AS SIGNED ), - AVG ( - + 34 ) + - 31 * + - 10 * 95 + 79 ) * - - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT NULLIF ( + + 26, 0 ) * NULLIF ( CAST ( NULL AS INTEGER ), - AVG ( - + 34 ) + - 31 * + - 10 * 95 + 79 ) * - - 8 AS col1
----
NULL

query II rowsort
SELECT ALL 80 AS col0, - 26
----
80
-26

query I rowsort
SELECT ALL - 52 + - 10 + + - 38
----
-100

query I rowsort
SELECT DISTINCT - 94 + - 82 col1
----
-176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8793
SELECT - 41, + 79 + + + ( - 57 ) DIV - COUNT( * ) + + 90 AS col0
----
-41
226

skipif mysql # not compatible
query II rowsort label-8793
SELECT - 41, + 79 + + + ( - 57 ) / - COUNT ( * ) + + 90 AS col0
----
-41
226

onlyif mysql # DIV for integer division: 
query II rowsort label-8794
SELECT DISTINCT + - 37 + 53 + + 78 + - 91, 35 * 49 DIV - 33 + + 63 AS col1
----
3
12

skipif mysql # not compatible
query II rowsort label-8794
SELECT DISTINCT + - 37 + 53 + + 78 + - 91, 35 * 49 / - 33 + + 63 AS col1
----
3
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT - + CAST( - + 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-8795
SELECT - + CAST ( - + 45 AS INTEGER )
----
45

query I rowsort
SELECT - 14 + + 68
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8797
SELECT - 83 DIV - 53 + + 26 - - 96 DIV 9
----
37

skipif mysql # not compatible
query I rowsort label-8797
SELECT - 83 / - 53 + + 26 - - 96 / 9
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8798
SELECT - 23 + 5 + - 5 + + + ( + 57 ) DIV + - 40
----
-24

skipif mysql # not compatible
query I rowsort label-8798
SELECT - 23 + 5 + - 5 + + + ( + 57 ) / + - 40
----
-24

query I rowsort
SELECT 68 + + - 21
----
47

query I rowsort
SELECT 78 + + 80 * - 95 AS col1
----
-7522

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT - 70 DIV - ( + 12 ) - - 91 * 29 * - 5
----
-13190

skipif mysql # not compatible
query I rowsort label-8801
SELECT - 70 / - ( + 12 ) - - 91 * 29 * - 5
----
-13190

query I rowsort
SELECT ALL - 58 + - 16
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT 31 DIV - - 78 + - 82 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8803
SELECT 31 / - - 78 + - 82 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL - 95 + - + ( + COUNT( * ) ) * - + MIN( + + 79 ) * + 68 * - COUNT( * )
----
-5467

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL - 95 + - + ( + COUNT ( * ) ) * - + MIN ( + + 79 ) * + 68 * - COUNT ( * )
----
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT DISTINCT + COUNT( * ) + - 66 + ( - 88 ) * 72 * + - 85 + 1 AS col0
----
538496

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT + COUNT ( * ) + - 66 + ( - 88 ) * 72 * + - 85 + 1 AS col0
----
538496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8806
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) AS col2, - 1 * + 75 * + 81 col1, - + 18 * + + 62 + + - 12 * + 54
----
NULL
-6075
-1764

skipif mysql # not compatible
query III rowsort label-8806
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2, - 1 * + 75 * + 81 col1, - + 18 * + + 62 + + - 12 * + 54
----
NULL
-6075
-1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8807
SELECT ALL + 22 + 93 + - 15 - + COALESCE ( - - COUNT( * ), + 29 + + + 70, - 10 + - 48, - COUNT( * ) * + 41 + 36 ), CAST( NULL AS SIGNED ) AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-8807
SELECT ALL + 22 + 93 + - 15 - + COALESCE ( - - COUNT ( * ), + 29 + + + 70, - 10 + - 48, - COUNT ( * ) * + 41 + 36 ), CAST ( NULL AS INTEGER ) AS col0
----
99
NULL

query I rowsort
SELECT - 25 * - 38 + + 91 AS col0
----
1041

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT 3 DIV + 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8809
SELECT 3 / + 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT DISTINCT ( 62 ) - + - SUM( DISTINCT - - 95 ) AS col0
----
157

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT ( 62 ) - + - SUM ( DISTINCT - - 95 ) AS col0
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8811
SELECT ALL - CAST( + COUNT( - 76 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - CAST ( + COUNT ( - 76 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT NULLIF ( - 35, - NULLIF ( 76, - COUNT( * ) ) ) * + - 48 AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-8812
SELECT NULLIF ( - 35, - NULLIF ( 76, - COUNT ( * ) ) ) * + - 48 AS col1
----
1680

onlyif mysql # aggregate syntax: 
query II rowsort label-8813
SELECT DISTINCT + COUNT( * ) - + 80 + - 9 - - 37 * + - 83, - 99 col2
----
-3159
-99

skipif mysql # not compatible
query II rowsort label-8813
SELECT DISTINCT + COUNT ( * ) - + 80 + - 9 - - 37 * + - 83, - 99 col2
----
-3159
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8814
SELECT ALL + 19 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + 19 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8815
SELECT 50 DIV - MAX( DISTINCT 9 )
----
-5

skipif mysql # not compatible
query I rowsort label-8815
SELECT 50 / - MAX ( DISTINCT 9 )
----
-5

query II rowsort
SELECT - 38 * - - 8 AS col0, 90
----
-304
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT - ( COUNT( * ) ) * 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8817
SELECT - ( COUNT ( * ) ) * 95 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8818
SELECT COUNT( * ) * - 83, - 40 AS col1
----
-83
-40

skipif mysql # not compatible
query II rowsort label-8818
SELECT COUNT ( * ) * - 83, - 40 AS col1
----
-83
-40

query I rowsort
SELECT ALL + 17 * 35 * - 33
----
-19635

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT 36 * 44 * + 8 + + COUNT( ALL + + 50 ) + 51
----
12724

skipif mysql # not compatible
query I rowsort label-8820
SELECT 36 * 44 * + 8 + + COUNT ( ALL + + 50 ) + 51
----
12724

query II rowsort
SELECT ALL + ( 0 ) AS col1, + 36
----
0
36

query II rowsort
SELECT ALL 87 + + + 75, - 34 AS col1
----
162
-34

query I rowsort
SELECT - ( 88 ) AS col1
----
-88

query I rowsort
SELECT DISTINCT - NULLIF ( + 22, + 57 ) col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8825
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + COUNT( * ) / 77 / ( - + 64 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) / 77 / ( - + 64 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT ALL - COUNT( * ) + COUNT( * ) * 34 + 26 * 65
----
1723

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - COUNT ( * ) + COUNT ( * ) * 34 + 26 * 65
----
1723

query I rowsort
SELECT - COALESCE ( 44, - ( + ( 73 ) ) )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8828
SELECT - 75 + - ( + 3 ) + - + 25 DIV - 70
----
-78

skipif mysql # not compatible
query I rowsort label-8828
SELECT - 75 + - ( + 3 ) + - + 25 / - 70
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8829
SELECT DISTINCT COUNT( * ), ( - 80 ) + - 69 AS col2
----
1
-149

skipif mysql # not compatible
query II rowsort label-8829
SELECT DISTINCT COUNT ( * ), ( - 80 ) + - 69 AS col2
----
1
-149

query II rowsort
SELECT 98 AS col1, 25 - - 27
----
98
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ALL 52 + + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL 52 + + COUNT ( * ) AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8832
SELECT DISTINCT 10 + - ( - + CAST( COUNT( * ) AS SIGNED ) ) * - COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT 10 + - ( - + CAST ( COUNT ( * ) AS INTEGER ) ) * - COUNT ( * ) AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT - 16 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT - 16 / 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT + COALESCE ( + 23, + - 14 * 86 * - 46 ) - - + 67 + MAX( + 99 ) + - 28 * + + 27
----
-567

skipif mysql # not compatible
query I rowsort label-8834
SELECT + COALESCE ( + 23, + - 14 * 86 * - 46 ) - - + 67 + MAX ( + 99 ) + - 28 * + + 27
----
-567

query I rowsort
SELECT - 62 * - 40 * + 91
----
225680

query I rowsort
SELECT NULLIF ( 41, - 22 * 70 * 96 ) AS col0
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-8837
SELECT ALL + 67 AS col0, - ( + 64 ) DIV - 2
----
67
32

skipif mysql # not compatible
query II rowsort label-8837
SELECT ALL + 67 AS col0, - ( + 64 ) / - 2
----
67
32

query I rowsort
SELECT NULLIF ( - 82, - - 67 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT DISTINCT + SUM( + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT + SUM ( + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT - COUNT( * ) - + + 28
----
-29

skipif mysql # not compatible
query I rowsort label-8840
SELECT - COUNT ( * ) - + + 28
----
-29

query I rowsort
SELECT DISTINCT + NULLIF ( - - 29, + 35 ) AS col1
----
29

query II rowsort
SELECT 70, 0 + - 79 * + + ( - - 35 ) AS col0
----
70
-2765

query I rowsort
SELECT + - 51 * 69 AS col2
----
-3519

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT NULLIF ( 38, 25 + + - 50 * + COUNT( * ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8844
SELECT NULLIF ( 38, 25 + + - 50 * + COUNT ( * ) ) AS col1
----
38

query I rowsort
SELECT ALL + + 11 * + 66 + 92
----
818

query I rowsort
SELECT DISTINCT - ( - 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8847
SELECT ALL - - COUNT( * ) DIV SUM( 51 ) AS col1, - 9 * MAX( DISTINCT + 86 ) - + 61 AS col1
----
0
-835

skipif mysql # not compatible
query II rowsort label-8847
SELECT ALL - - COUNT ( * ) / SUM ( 51 ) AS col1, - 9 * MAX ( DISTINCT + 86 ) - + 61 AS col1
----
0
-835

onlyif mysql # aggregate syntax: 
query II rowsort label-8848
SELECT DISTINCT + - 66 + - - COUNT( * ) * 99, - 91 AS col2
----
33
-91

skipif mysql # not compatible
query II rowsort label-8848
SELECT DISTINCT + - 66 + - - COUNT ( * ) * 99, - 91 AS col2
----
33
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8849
SELECT + 43 + + 24 - + - CAST( ( - 37 ) AS SIGNED ) + 34 * 76 * + - 86 - 56 + + COUNT( * ) * + - 27 * - COUNT( * ) * - 3 col1
----
-222331

skipif mysql # not compatible
query I rowsort label-8849
SELECT + 43 + + 24 - + - CAST ( ( - 37 ) AS INTEGER ) + 34 * 76 * + - 86 - 56 + + COUNT ( * ) * + - 27 * - COUNT ( * ) * - 3 col1
----
-222331

onlyif mysql # aggregate syntax: 
query II rowsort label-8850
SELECT - 26, + COUNT( * ) * 33 col1
----
-26
33

skipif mysql # not compatible
query II rowsort label-8850
SELECT - 26, + COUNT ( * ) * 33 col1
----
-26
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT + - MAX( DISTINCT - - ( + + 99 ) ) * + 68
----
-6732

skipif mysql # not compatible
query I rowsort label-8851
SELECT + - MAX ( DISTINCT - - ( + + 99 ) ) * + 68
----
-6732

query I rowsort
SELECT ALL - 44 + - + 51 AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8853
SELECT - - CAST( NULL AS SIGNED ), 30 AS col2
----
NULL
30

skipif mysql # not compatible
query II rowsort label-8853
SELECT - - CAST ( NULL AS INTEGER ), 30 AS col2
----
NULL
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT MAX( + + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8854
SELECT MAX ( + + 20 ) AS col2
----
20

query I rowsort
SELECT + ( - - 96 ) * 73
----
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT - COALESCE ( - 91, + 31 * COUNT( * ) + - 92 * 3 )
----
91

skipif mysql # not compatible
query I rowsort label-8856
SELECT - COALESCE ( - 91, + 31 * COUNT ( * ) + - 92 * 3 )
----
91

query I rowsort
SELECT ALL 11 - + 83
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8858
SELECT - ( - + CAST( - 28 AS SIGNED ) )
----
-28

skipif mysql # not compatible
query I rowsort label-8858
SELECT - ( - + CAST ( - 28 AS INTEGER ) )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT ALL SUM( ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL SUM ( ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 40 - - + 94 * + 88 AS col1
----
8312

query II rowsort
SELECT + 75 + - + 3 + - 28 * - + 13, ( + 38 ) + + 62 * - - 68 * + ( - 94 ) AS col1
----
436
-396266

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT - COALESCE ( 28, + COUNT( 84 ) * + - 86 )
----
-28

skipif mysql # not compatible
query I rowsort label-8862
SELECT - COALESCE ( 28, + COUNT ( 84 ) * + - 86 )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8863
SELECT + 4 + 11 * + COALESCE ( + + 50, + + 9 DIV - 79 DIV - - 41 + 77 )
----
554

skipif mysql # not compatible
query I rowsort label-8863
SELECT + 4 + 11 * + COALESCE ( + + 50, + + 9 / - 79 / - - 41 + 77 )
----
554

onlyif mysql # aggregate syntax: 
query II rowsort label-8864
SELECT + 80 + + COUNT( * ) AS col2, NULLIF ( + COUNT( 94 ), + 81 )
----
81
1

skipif mysql # not compatible
query II rowsort label-8864
SELECT + 80 + + COUNT ( * ) AS col2, NULLIF ( + COUNT ( 94 ), + 81 )
----
81
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8865
SELECT DISTINCT SUM( ALL 14 ) AS col0, - COUNT( * ) DIV - - 70 AS col1
----
14
0

skipif mysql # not compatible
query II rowsort label-8865
SELECT DISTINCT SUM ( ALL 14 ) AS col0, - COUNT ( * ) / - - 70 AS col1
----
14
0

query I rowsort
SELECT 32 * - 77 + + + 75 - + ( + 1 ) * + 20
----
-2409

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL + MAX( + - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + MAX ( + - 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT - 17 * + MAX( ALL + 71 ) + - 38 + 4 + + 3 * - + 81 - 81 AS col0
----
-1565

skipif mysql # not compatible
query I rowsort label-8868
SELECT - 17 * + MAX ( ALL + 71 ) + - 38 + 4 + + 3 * - + 81 - 81 AS col0
----
-1565

query I rowsort
SELECT - 9 * + 55
----
-495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8870
SELECT 96 DIV + NULLIF ( + 63, + AVG ( ALL - 87 ) * + 58 * - COUNT( * ) + + 2 + + COUNT( * ) ) + - + MIN( + 57 ) DIV - 81 * - COALESCE ( + + CAST( - + 77 AS SIGNED ), - - ( COUNT( * ) ) + - + COALESCE ( - 88, - 5 * + 0 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8870
SELECT 96 / + NULLIF ( + 63, + AVG ( ALL - 87 ) * + 58 * - COUNT ( * ) + + 2 + + COUNT ( * ) ) + - + MIN ( + 57 ) / - 81 * - COALESCE ( + + CAST ( - + 77 AS INTEGER ), - - ( COUNT ( * ) ) + - + COALESCE ( - 88, - 5 * + 0 ) )
----
1

query I rowsort
SELECT ALL 32 * + + 68
----
2176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8872
SELECT ALL ( + + 25 ) * - NULLIF ( CAST( NULL AS DECIMAL ), 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL ( + + 25 ) * - NULLIF ( CAST ( NULL AS REAL ), 52 )
----
NULL

query I rowsort
SELECT + - 22 * + NULLIF ( 58, - 83 - + NULLIF ( - 56, + + 38 ) + - + 45 * + 90 ) + + + 94 * + 76 + - + 82 + - - 81 AS col1
----
5867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8874
SELECT ALL - 43 DIV + - ( - MAX( ALL - - 17 ) ) + - 55 + - 2 DIV CAST( + 11 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL - 43 / + - ( - MAX ( ALL - - 17 ) ) + - 55 + - 2 / CAST ( + 11 AS INTEGER )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8875
SELECT DISTINCT 18 DIV + + 59 + + 79 * - 40 + + 57 DIV + 1
----
-3103

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT 18 / + + 59 + + 79 * - 40 + + 57 / + 1
----
-3103

query I rowsort
SELECT 72 * + ( - 48 )
----
-3456

query I rowsort
SELECT ALL + 56 + + + 71 + + 33 AS col1
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8878
SELECT ALL - + MAX( DISTINCT - 3 ) AS col0, + 3 DIV + 51
----
3
0

skipif mysql # not compatible
query II rowsort label-8878
SELECT ALL - + MAX ( DISTINCT - 3 ) AS col0, + 3 / + 51
----
3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT ALL + - COUNT( * ) + + MAX( DISTINCT - 58 ) + - - 94 + 80 * - 65 AS col2
----
-5165

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL + - COUNT ( * ) + + MAX ( DISTINCT - 58 ) + - - 94 + 80 * - 65 AS col2
----
-5165

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT DISTINCT + - CASE - 7 WHEN - ( MIN( - 77 ) ) THEN - - COUNT( * ) END + + - ( CASE - ( - - 11 ) WHEN - 69 - + 55 THEN 6 END ) + - 17 * 29 * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT + - CASE - 7 WHEN - ( MIN ( - 77 ) ) THEN - - COUNT ( * ) END + + - ( CASE - ( - - 11 ) WHEN - 69 - + 55 THEN 6 END ) + - 17 * 29 * - 44
----
NULL

query I rowsort
SELECT DISTINCT - 73 + 60 + - 32 + - + 66 * ( 75 ) * CASE 22 WHEN + 85 + - 89 THEN + 68 ELSE 91 * 41 END + - 22 * - + 3 + 49 + - 51 AS col2
----
-18468431

query I rowsort
SELECT ALL + 15 + 71 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT 18 * - COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8883
SELECT 18 * - COUNT ( * ) AS col2
----
-18

query I rowsort
SELECT 18 * - - 85 * 35 + - 94 * + - COALESCE ( 33, - 72 * 50 ) + - - ( - 91 ) * - 41 AS col2
----
60383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8885
SELECT DISTINCT + 32 - - + COALESCE ( NULLIF ( - ( - + 18 ), 36 + + 53 * 91 + + 18 * + 1 ), - + 1 * + 37 * - 17 ) - - NULLIF ( MIN( DISTINCT + 5 ), + 11 ) DIV 21 * - - 74 * - 5 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT + 32 - - + COALESCE ( NULLIF ( - ( - + 18 ), 36 + + 53 * 91 + + 18 * + 1 ), - + 1 * + 37 * - 17 ) - - NULLIF ( MIN ( DISTINCT + 5 ), + 11 ) / 21 * - - 74 * - 5 AS col2
----
50

query I rowsort
SELECT 97 * 92 col2
----
8924

query II rowsort
SELECT ALL ( + 44 ) - + + 55 AS col2, + 84
----
-11
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT + 27 - - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT + 27 - - COUNT ( * ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT COUNT( * ) + 84
----
85

skipif mysql # not compatible
query I rowsort label-8889
SELECT COUNT ( * ) + 84
----
85

query I rowsort
SELECT ALL ( + 12 ) - + - 63
----
75

query I rowsort
SELECT 38 + 48 + 15 AS col1
----
101

query I rowsort
SELECT DISTINCT 92 * + + 42
----
3864

onlyif mysql # DIV for integer division: 
query II rowsort label-8893
SELECT ALL - 9 * + ( - 95 ) AS col2, - 28 DIV + 85 + + 69 AS col0
----
855
69

skipif mysql # not compatible
query II rowsort label-8893
SELECT ALL - 9 * + ( - 95 ) AS col2, - 28 / + 85 + + 69 AS col0
----
855
69

query I rowsort
SELECT 22 * 69
----
1518

query I rowsort
SELECT DISTINCT 56 * + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT 41 * - MAX( - - 79 ) AS col2
----
-3239

skipif mysql # not compatible
query I rowsort label-8896
SELECT 41 * - MAX ( - - 79 ) AS col2
----
-3239

query I rowsort
SELECT DISTINCT ( 99 ) + + 26 * - 48 AS col2
----
-1149

query II rowsort
SELECT 55 AS col2, + 58 AS col1
----
55
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT - 46 * + ( - + 92 ) / - + 65 + + 95 + - 9 * - CAST( NULL AS SIGNED ) + 29 - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8899
SELECT - 46 * + ( - + 92 ) / - + 65 + + 95 + - 9 * - CAST ( NULL AS INTEGER ) + 29 - - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT + COUNT( + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-8900
SELECT + COUNT ( + 51 )
----
1

query I rowsort
SELECT ALL - 60 + - 15 * - 72 * + + 95 * - 47 * - - 8
----
-38577660

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8902
SELECT DISTINCT COUNT( * ) DIV 42 * - + CASE - COUNT( * ) WHEN - COUNT( * ) + - + 15 DIV 61 THEN - - ( + ( - + 91 ) ) ELSE NULL END * - - 15 + - ( - 72 ) + COUNT( * ) + + COALESCE ( 65, - ( + 10 ) ) AS col2, - 27 * + 98
----
138
-2646

skipif mysql # not compatible
query II rowsort label-8902
SELECT DISTINCT COUNT ( * ) / 42 * - + CASE - COUNT ( * ) WHEN - COUNT ( * ) + - + 15 / 61 THEN - - ( + ( - + 91 ) ) ELSE NULL END * - - 15 + - ( - 72 ) + COUNT ( * ) + + COALESCE ( 65, - ( + 10 ) ) AS col2, - 27 * + 98
----
138
-2646

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8903
SELECT - COUNT( ALL + 33 ) DIV - - 35 col2, 4 + - 69 - 87 AS col0
----
0
-152

skipif mysql # not compatible
query II rowsort label-8903
SELECT - COUNT ( ALL + 33 ) / - - 35 col2, 4 + - 69 - 87 AS col0
----
0
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL - 80 + - + ( + + 74 ) + - SUM( ALL - 89 ) - + + 5 col2
----
-70

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL - 80 + - + ( + + 74 ) + - SUM ( ALL - 89 ) - + + 5 col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8905
SELECT - COALESCE ( - + 62, + + 6 DIV + 14, + ( + 71 ) + + + 79 + 27 DIV COUNT( * ) )
----
62

skipif mysql # not compatible
query I rowsort label-8905
SELECT - COALESCE ( - + 62, + + 6 / + 14, + ( + 71 ) + + + 79 + 27 / COUNT ( * ) )
----
62

query I rowsort
SELECT ALL - 69 * + 91 AS col1
----
-6279

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT ALL - 10 + + 42 * 98 DIV - 1
----
-4126

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL - 10 + + 42 * 98 / - 1
----
-4126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8908
SELECT ALL + COALESCE ( + - ( + CAST( NULL AS SIGNED ) ), - 34 * + - 55 ) * + SUM( + 31 ) * 4 * + 62
----
14376560

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL + COALESCE ( + - ( + CAST ( NULL AS INTEGER ) ), - 34 * + - 55 ) * + SUM ( + 31 ) * 4 * + 62
----
14376560

onlyif mysql # aggregate syntax: 
query II rowsort label-8909
SELECT DISTINCT 76 + - SUM( + 19 ) AS col1, MAX( DISTINCT 24 ) * - + 66
----
57
-1584

skipif mysql # not compatible
query II rowsort label-8909
SELECT DISTINCT 76 + - SUM ( + 19 ) AS col1, MAX ( DISTINCT 24 ) * - + 66
----
57
-1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8910
SELECT + 25 * + AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT + 25 * + AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8911
SELECT ALL MIN( DISTINCT + 22 ) + - - 7 AS col0, - 25 AS col2
----
29
-25

skipif mysql # not compatible
query II rowsort label-8911
SELECT ALL MIN ( DISTINCT + 22 ) + - - 7 AS col0, - 25 AS col2
----
29
-25

query I rowsort
SELECT DISTINCT - + ( + 29 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8913
SELECT ALL - + 17 AS col0, + NULLIF ( + 25, + CASE - 65 WHEN 46 / CAST( NULL AS SIGNED ) * - - 64 * AVG ( ALL + 18 ) THEN - 2 + - + ( + 91 ) + MIN( + + 13 ) END * + + ( COALESCE ( - COALESCE ( + + 22, - CASE 43 WHEN CAST( NULL AS SIGNED ) + - 18 THEN - + ( 98 ) / + 81 WHEN 27 / - - 50 * + 73 + - + 56 THEN NULL END, - COUNT( * ) * + 20 + - NULLIF ( 87, 6 ) ), + - 44, 14 * + AVG ( DISTINCT 9 ) + - 1 ) ) + 36 ) AS col2
----
-17
25

skipif mysql # not compatible
query II rowsort label-8913
SELECT ALL - + 17 AS col0, + NULLIF ( + 25, + CASE - 65 WHEN 46 / CAST ( NULL AS INTEGER ) * - - 64 * AVG ( ALL + 18 ) THEN - 2 + - + ( + 91 ) + MIN ( + + 13 ) END * + + ( COALESCE ( - COALESCE ( + + 22, - CASE 43 WHEN CAST ( NULL AS INTEGER ) + - 18 THEN - + ( 98 ) / + 81 WHEN 27 / - - 50 * + 73 + - + 56 THEN NULL END, - COUNT ( * ) * + 20 + - NULLIF ( 87, 6 ) ), + - 44, 14 * + AVG ( DISTINCT 9 ) + - 1 ) ) + 36 ) AS col2
----
-17
25

onlyif mysql # DIV for integer division: 
query II rowsort label-8914
SELECT ALL - 45, + 72 + - + ( - 88 ) * 95 DIV - 47 + 93 + + 76 * 57 + 73 - + 11 AS col1
----
-45
4382

skipif mysql # not compatible
query II rowsort label-8914
SELECT ALL - 45, + 72 + - + ( - 88 ) * 95 / - 47 + 93 + + 76 * 57 + 73 - + 11 AS col1
----
-45
4382

query I rowsort
SELECT + NULLIF ( 44, 36 / + 58 + + + ( + + 2 ) )
----
44

query I rowsort
SELECT ALL + - 86 - - - COALESCE ( - 30, 79 ) AS col2
----
-56

query I rowsort
SELECT ALL ( - - 7 ) col1
----
7

query I rowsort
SELECT 12 * + 26 col1
----
312

query I rowsort
SELECT DISTINCT - 95 * - 72
----
6840

query II rowsort
SELECT - 88 AS col0, + 2
----
-88
2

query II rowsort
SELECT 3 + + 72 AS col1, 26 AS col1
----
75
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT ALL SUM( ALL + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL SUM ( ALL + 29 ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT COUNT( 90 )
----
1

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT COUNT ( 90 )
----
1

query II rowsort
SELECT ALL + 77 * 73 AS col1, 40 AS col0
----
5621
40

onlyif mysql # DIV for integer division: 
query II rowsort label-8925
SELECT DISTINCT 3 AS col0, 74 + + 54 DIV - 91 * 69
----
3
74

skipif mysql # not compatible
query II rowsort label-8925
SELECT DISTINCT 3 AS col0, 74 + + 54 / - 91 * 69
----
3
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8926
SELECT ALL NULLIF ( - - COUNT( * ), + + 50 + + - 21 ) DIV + NULLIF ( + 16, - - 38 * 11 DIV - 22 ) AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-8926
SELECT ALL NULLIF ( - - COUNT ( * ), + + 50 + + - 21 ) / + NULLIF ( + 16, - - 38 * 11 / - 22 ) AS col2, COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT SUM( DISTINCT + ( - + 89 ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT SUM ( DISTINCT + ( - + 89 ) ) AS col2
----
-89

query III rowsort
SELECT 46 AS col2, 10, - 60 AS col0
----
46
10
-60

query I rowsort
SELECT ALL 97 + + 56 - + - NULLIF ( - 78, - 39 + - 94 * 74 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT COUNT( * ) - - 4 col0
----
5

skipif mysql # not compatible
query I rowsort label-8930
SELECT COUNT ( * ) - - 4 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT ALL + 33 + - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL + 33 + - - COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT 21 * - - MIN( 49 ) AS col0
----
1029

skipif mysql # not compatible
query I rowsort label-8932
SELECT 21 * - - MIN ( 49 ) AS col0
----
1029

query II rowsort
SELECT - 20 AS col0, - 6 AS col0
----
-20
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT 28 + + 49, - COUNT( * ) AS col0
----
77
-1

skipif mysql # not compatible
query II rowsort label-8934
SELECT 28 + + 49, - COUNT ( * ) AS col0
----
77
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8935
SELECT COUNT( * ) + 68 * - 91 DIV - 13
----
477

skipif mysql # not compatible
query I rowsort label-8935
SELECT COUNT ( * ) + 68 * - 91 / - 13
----
477

query I rowsort
SELECT 6 * + - 21 + - 89 + - 62 AS col0
----
-277

query I rowsort
SELECT DISTINCT - 73 * + - 11
----
803

query I rowsort
SELECT ALL + 71 * 24 + 58
----
1762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8939
SELECT DISTINCT + NULLIF ( - - CAST( + - 91 AS SIGNED ), + COUNT( * ) + 0 / 66 * + + NULLIF ( 9, - 59 * - - 27 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT + NULLIF ( - - CAST ( + - 91 AS INTEGER ), + COUNT ( * ) + 0 / 66 * + + NULLIF ( 9, - 59 * - - 27 ) )
----
-91

query I rowsort
SELECT ALL - + 35 * CASE - + NULLIF ( 4, - + 14 ) WHEN + 11 / + 14 * + + 7 THEN NULL WHEN 88 THEN NULL ELSE - - 64 END AS col1
----
-2240

onlyif mysql # aggregate syntax: 
query II rowsort label-8941
SELECT DISTINCT COUNT( - 73 ) * 39 + - 15, - 31 * + 94 - NULLIF ( + - 21, 67 + + 20 - - 6 ) AS col0
----
24
-2893

skipif mysql # not compatible
query II rowsort label-8941
SELECT DISTINCT COUNT ( - 73 ) * 39 + - 15, - 31 * + 94 - NULLIF ( + - 21, 67 + + 20 - - 6 ) AS col0
----
24
-2893

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8942
SELECT DISTINCT + 77 * 31 + + + CAST( NULL AS SIGNED ) * + 9 / 37 + 35, 54 + - 14 + - - 6 + + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) + 65 col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8942
SELECT DISTINCT + 77 * 31 + + + CAST ( NULL AS INTEGER ) * + 9 / 37 + 35, 54 + - 14 + - - 6 + + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) + 65 col1
----
NULL
NULL

query I rowsort
SELECT ALL + 41 * - - 93 - 44 - - 40 + 40 AS col0
----
3849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8944
SELECT + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * - - CASE WHEN NULL < - 83 THEN COUNT( * ) * 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - - CASE WHEN NULL < - 83 THEN COUNT ( * ) * 38 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8945
SELECT + + 55, + NULLIF ( - + 41, + - 49 ) DIV + + 19 + - 75 AS col1
----
55
-77

skipif mysql # not compatible
query II rowsort label-8945
SELECT + + 55, + NULLIF ( - + 41, + - 49 ) / + + 19 + - 75 AS col1
----
55
-77

query II rowsort
SELECT - 45 AS col1, 75 + 48
----
-45
123

query I rowsort
SELECT DISTINCT + - 50 col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-8948
SELECT + 28, 85 * - + COUNT( * ) AS col2
----
28
-85

skipif mysql # not compatible
query II rowsort label-8948
SELECT + 28, 85 * - + COUNT ( * ) AS col2
----
28
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-8949
SELECT ALL + 78 AS col0, COUNT( * ) AS col2
----
78
1

skipif mysql # not compatible
query II rowsort label-8949
SELECT ALL + 78 AS col0, COUNT ( * ) AS col2
----
78
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8950
SELECT ALL + ( - NULLIF ( 32, + 65 * + - CASE - COUNT( * ) WHEN MAX( ALL + CASE - + 61 WHEN + + ( + ( ( + 71 ) ) ) THEN 8 - + + 23 END ) THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN + CASE + ( 96 ) WHEN - 50 + - + COALESCE ( MIN( - 93 ), - - COUNT( DISTINCT - NULLIF ( - 43, 67 ) ), - COUNT( * ) ) THEN 76 ELSE + + 73 END + + NULLIF ( - 53, - 39 * + 9 ) END ) ) * - ( + COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + ( - NULLIF ( 32, + 65 * + - CASE - COUNT ( * ) WHEN MAX ( ALL + CASE - + 61 WHEN + + ( + ( ( + 71 ) ) ) THEN 8 - + + 23 END ) THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN + CASE + ( 96 ) WHEN - 50 + - + COALESCE ( MIN ( - 93 ), - - COUNT ( DISTINCT - NULLIF ( - 43, 67 ) ), - COUNT ( * ) ) THEN 76 ELSE + + 73 END + + NULLIF ( - 53, - 39 * + 9 ) END ) ) * - ( + COUNT ( * ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT - 25 * COUNT( * ) + + 67 * COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8951
SELECT - 25 * COUNT ( * ) + + 67 * COUNT ( * ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT + 81 + + COUNT( * ) - + + 28 * - 54 AS col1
----
1594

skipif mysql # not compatible
query I rowsort label-8952
SELECT + 81 + + COUNT ( * ) - + + 28 * - 54 AS col1
----
1594

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT - 46 * NULLIF ( - MIN( DISTINCT + - 84 ), - ( - + 0 ) )
----
-3864

skipif mysql # not compatible
query I rowsort label-8953
SELECT - 46 * NULLIF ( - MIN ( DISTINCT + - 84 ), - ( - + 0 ) )
----
-3864

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT 36 * + + COUNT( * ) + + - 46 + + 66 * - 85 * MAX( + + 86 )
----
-482470

skipif mysql # not compatible
query I rowsort label-8954
SELECT 36 * + + COUNT ( * ) + + - 46 + + 66 * - 85 * MAX ( + + 86 )
----
-482470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8955
SELECT ALL ( - + ( 31 ) ) + + CASE CASE - 56 WHEN - ( - - CAST( NULL AS SIGNED ) ) THEN + 6 END WHEN COUNT( * ) - + CAST( + 75 AS SIGNED ) + - COUNT( * ) * 92 / - 79 * + - COALESCE ( + 52, 56 ) THEN + MAX( + - CAST( - 15 AS SIGNED ) ) WHEN + + 48 THEN - 28 ELSE + ( + 50 ) + + NULLIF ( - 40, - - COUNT( 14 ) * - - 30 + - 26 - + 41 ) END
----
-21

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL ( - + ( 31 ) ) + + CASE CASE - 56 WHEN - ( - - CAST ( NULL AS INTEGER ) ) THEN + 6 END WHEN COUNT ( * ) - + CAST ( + 75 AS INTEGER ) + - COUNT ( * ) * 92 / - 79 * + - COALESCE ( + 52, 56 ) THEN + MAX ( + - CAST ( - 15 AS INTEGER ) ) WHEN + + 48 THEN - 28 ELSE + ( + 50 ) + + NULLIF ( - 40, - - COUNT ( 14 ) * - - 30 + - 26 - + 41 ) END
----
-21

query I rowsort
SELECT ALL + 46 * + 39 * + + 23
----
41262

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT DISTINCT COALESCE ( + + 27, MIN( + 75 ) * + COUNT( * ), 3 )
----
27

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT COALESCE ( + + 27, MIN ( + 75 ) * + COUNT ( * ), 3 )
----
27

query I rowsort
SELECT DISTINCT 74 + - 62 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8959
SELECT DISTINCT SUM( 3 ) AS col1, ( - CAST( NULL AS SIGNED ) ) + - 56 - - + AVG ( DISTINCT + + CAST( + 76 AS SIGNED ) ) * + + 24 AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8959
SELECT DISTINCT SUM ( 3 ) AS col1, ( - CAST ( NULL AS INTEGER ) ) + - 56 - - + AVG ( DISTINCT + + CAST ( + 76 AS INTEGER ) ) * + + 24 AS col0
----
3
NULL

query I rowsort
SELECT - 3 + - + ( + + 66 )
----
-69

query I rowsort
SELECT ALL + ( + 1 ) * + 55
----
55

query I rowsort
SELECT + 91 * + 36
----
3276

query I rowsort
SELECT DISTINCT + 28 * 71
----
1988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8964
SELECT ALL - 74 + + COALESCE ( - CAST( NULL AS SIGNED ), - 26 ) * + 16 * + + CASE + + COUNT( * ) WHEN - 9 * + CAST( - 18 AS SIGNED ) THEN MAX( DISTINCT + 34 ) END + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL - 74 + + COALESCE ( - CAST ( NULL AS INTEGER ), - 26 ) * + 16 * + + CASE + + COUNT ( * ) WHEN - 9 * + CAST ( - 18 AS INTEGER ) THEN MAX ( DISTINCT + 34 ) END + + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT - SUM( - 2 )
----
2

skipif mysql # not compatible
query I rowsort label-8965
SELECT - SUM ( - 2 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8966
SELECT - COUNT( * ) DIV + - 10
----
0

skipif mysql # not compatible
query I rowsort label-8966
SELECT - COUNT ( * ) / + - 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL + 2 + NULLIF ( + + MIN( 32 ), COUNT( * ) )
----
34

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + 2 + NULLIF ( + + MIN ( 32 ), COUNT ( * ) )
----
34

query I rowsort
SELECT ALL - 74 + 77
----
3

query I rowsort
SELECT - 80 * + - 6
----
480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8970
SELECT ALL COUNT( - - 1 ) DIV - 88 - 37 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL COUNT ( - - 1 ) / - 88 - 37 AS col2
----
-37

query II rowsort
SELECT DISTINCT + ( - 36 ) AS col1, 93 * 25
----
-36
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT + - 91 * + COUNT( * ) * + + 28 + - 75 + 51 * - - ( 68 ) * 65 AS col0
----
222797

skipif mysql # not compatible
query I rowsort label-8972
SELECT + - 91 * + COUNT ( * ) * + + 28 + - 75 + 51 * - - ( 68 ) * 65 AS col0
----
222797

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8973
SELECT DISTINCT - 86 * - CAST( NULL AS SIGNED ), 46 col0
----
NULL
46

skipif mysql # not compatible
query II rowsort label-8973
SELECT DISTINCT - 86 * - CAST ( NULL AS INTEGER ), 46 col0
----
NULL
46

query I rowsort
SELECT + + 17 * + + 23 + 82
----
473

query II rowsort
SELECT DISTINCT 95 * + + 70 AS col0, + ( - - 10 )
----
6650
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8976
SELECT ALL + - COUNT( * ) * 5 + - 65 DIV + 96
----
-5

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL + - COUNT ( * ) * 5 + - 65 / + 96
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT + 82 * + - CASE - 97 WHEN - 87 THEN NULL WHEN + MIN( ALL 20 ) / - 91 + 80 * 98 THEN + 23 + - 37 WHEN - - 38 THEN + + COALESCE ( 78, - 0 + 73 - - 61 * 87 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT + 82 * + - CASE - 97 WHEN - 87 THEN NULL WHEN + MIN ( ALL 20 ) / - 91 + 80 * 98 THEN + 23 + - 37 WHEN - - 38 THEN + + COALESCE ( 78, - 0 + 73 - - 61 * 87 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8978
SELECT ALL + + AVG ( + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL + + AVG ( + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + - 90 * - ( + 47 )
----
4230

query I rowsort
SELECT DISTINCT + + 88 col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT + ( - MIN( DISTINCT + 89 ) )
----
-89

skipif mysql # not compatible
query I rowsort label-8981
SELECT + ( - MIN ( DISTINCT + 89 ) )
----
-89

query II rowsort
SELECT ALL + 71, + 71
----
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT - 83 * - COUNT( * ) + 88 + + + 86 + 77
----
334

skipif mysql # not compatible
query I rowsort label-8983
SELECT - 83 * - COUNT ( * ) + 88 + + + 86 + 77
----
334

query I rowsort
SELECT + 58 * 16 AS col0
----
928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT 50 * + + 59 + + CAST( - 85 AS SIGNED )
----
2865

skipif mysql # not compatible
query I rowsort label-8985
SELECT 50 * + + 59 + + CAST ( - 85 AS INTEGER )
----
2865

query I rowsort
SELECT ALL + 20 * 13 + 32 AS col0
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT - 87 * + 22 * ( - 38 ) + 83 + + 0 * - COUNT( * )
----
72815

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT - 87 * + 22 * ( - 38 ) + 83 + + 0 * - COUNT ( * )
----
72815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT + 98 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT + 98 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT MIN( + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8989
SELECT MIN ( + 96 ) AS col0
----
96

query II rowsort
SELECT + 62 + + 83 + + ( 47 ), - 69 AS col0
----
192
-69

query I rowsort
SELECT ALL 68 * 9
----
612

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT + 80 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT + 80 / 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT SUM( - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-8993
SELECT SUM ( - 91 )
----
-91

query I rowsort
SELECT + 68 + + 74 col2
----
142

query II rowsort
SELECT - 65 col0, + 44 * 60
----
-65
2640

query I rowsort
SELECT DISTINCT 68 col1
----
68

query I rowsort
SELECT ALL - 70 + + + 73
----
3

query I rowsort
SELECT DISTINCT 85 - - + 93 col1
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - 55 * 72 * - 49 + - COUNT( * ) + 46 * + 87 col2
----
198041

skipif mysql # not compatible
query I rowsort label-8999
SELECT - 55 * 72 * - 49 + - COUNT ( * ) + 46 * + 87 col2
----
198041

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT ALL - MAX( + 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL - MAX ( + 27 ) AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9001
SELECT - 3 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9001
SELECT - 3 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT ALL - MIN( 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL - MIN ( 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT 48 + + COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9003
SELECT 48 + + COUNT ( * ) AS col0
----
49

query I rowsort
SELECT 92 - - ( - ( + 69 ) ) AS col0
----
23

query I rowsort
SELECT DISTINCT + 29 * 20 * + + ( - ( + 55 ) )
----
-31900

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT - MAX( DISTINCT 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-9006
SELECT - MAX ( DISTINCT 48 ) AS col2
----
-48

query II rowsort
SELECT COALESCE ( 27, - 58 + - 75 ) AS col1, - COALESCE ( 22, + 95, + 89 )
----
27
-22

query I rowsort
SELECT ALL - + ( - 18 ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9009
SELECT - 71 DIV + + MAX( DISTINCT 21 ) + - 64 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-9009
SELECT - 71 / + + MAX ( DISTINCT 21 ) + - 64 AS col0
----
-67

query I rowsort
SELECT - ( + 53 ) AS col0
----
-53

query I rowsort
SELECT + 94 + + + 66
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT - ( + 38 ) DIV - 9 + - COALESCE ( - 16, + + 2 * 31 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9012
SELECT - ( + 38 ) / - 9 + - COALESCE ( - 16, + + 2 * 31 ) AS col2
----
20

query I rowsort
SELECT DISTINCT - - 50 + - 46
----
4

query I rowsort
SELECT ALL - + 77 col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9015
SELECT ALL - + CAST( NULL AS DECIMAL ) + SUM( - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL - + CAST ( NULL AS REAL ) + SUM ( - 87 )
----
NULL

query I rowsort
SELECT - 60 * + 59
----
-3540

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT ALL - - ( - 17 ) * - + COUNT( * ) * - 53 * + + 72 * - + 41 AS col0
----
2659752

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - - ( - 17 ) * - + COUNT ( * ) * - 53 * + + 72 * - + 41 AS col0
----
2659752

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT - COUNT( * ) + 12
----
11

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT - COUNT ( * ) + 12
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT ALL CAST( NULL AS SIGNED ) * + ( + 37 ) / + 32 - + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL CAST ( NULL AS INTEGER ) * + ( + 37 ) / + 32 - + 76
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9020
SELECT DISTINCT COUNT( + 81 ) + - CAST( - - CAST( + 89 AS DECIMAL ) AS SIGNED ) + 5 * + - 11 AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT COUNT ( + 81 ) + - CAST ( - - CAST ( + 89 AS REAL ) AS INTEGER ) + 5 * + - 11 AS col1
----
-143

query I rowsort
SELECT ALL - ( 72 ) + + - 89 + - 53 AS col1
----
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9022
SELECT DISTINCT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * - + CAST( - 6 AS DECIMAL ) + + COUNT( * ) * COALESCE ( - 53, - 39, + 3 ) / + 47 + - ( + 66 ) AS col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9022
SELECT DISTINCT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + CAST ( - 6 AS REAL ) + + COUNT ( * ) * COALESCE ( - 53, - 39, + 3 ) / + 47 + - ( + 66 ) AS col2, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT ALL 81 + + CASE 21 WHEN - - 38 THEN - 42 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT ALL CASE 70 WHEN ( COUNT( * ) ) THEN - CASE - CAST( NULL AS SIGNED ) WHEN 44 THEN NULL ELSE - SUM( + - 13 ) END ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL CASE 70 WHEN ( COUNT ( * ) ) THEN - CASE - CAST ( NULL AS INTEGER ) WHEN 44 THEN NULL ELSE - SUM ( + - 13 ) END ELSE NULL END + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 45 + - 75
----
-30

query II rowsort
SELECT ALL 15 * - 36, 69 AS col1
----
-540
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9027
SELECT ALL - 11 DIV - + 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL - 11 / - + 83 AS col2
----
0

query I rowsort
SELECT DISTINCT ( - 53 ) - + - 13
----
-40

query I rowsort
SELECT DISTINCT 20 - - ( - NULLIF ( 17, - 68 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL 79 * + SUM( ALL + + 32 ) AS col2
----
2528

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL 79 * + SUM ( ALL + + 32 ) AS col2
----
2528

query I rowsort
SELECT 82 + 14
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT - 2 - + + 26 + - ( COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT - 2 - + + 26 + - ( COUNT ( * ) )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9033
SELECT 86 DIV 60 * - 44 + 52 + - - 11 * + 5 + - MIN( DISTINCT + 23 ) * + 20, + COUNT( 55 ) col1
----
-397
1

skipif mysql # not compatible
query II rowsort label-9033
SELECT 86 / 60 * - 44 + 52 + - - 11 * + 5 + - MIN ( DISTINCT + 23 ) * + 20, + COUNT ( 55 ) col1
----
-397
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9034
SELECT - 75 * - + COUNT( * ), 34 + 45 DIV 23 + - COUNT( * ) * - - 86 AS col2
----
75
-51

skipif mysql # not compatible
query II rowsort label-9034
SELECT - 75 * - + COUNT ( * ), 34 + 45 / 23 + - COUNT ( * ) * - - 86 AS col2
----
75
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT DISTINCT + 69 DIV - 65 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT + 69 / - 65 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT 55 * + COALESCE ( 11, 95 * + 87 ) + + - COUNT( * )
----
604

skipif mysql # not compatible
query I rowsort label-9036
SELECT 55 * + COALESCE ( 11, 95 * + 87 ) + + - COUNT ( * )
----
604

query I rowsort
SELECT ALL - NULLIF ( - 91, + - 84 ) AS col2
----
91

query I rowsort
SELECT DISTINCT NULLIF ( + ( 99 ), - - 48 ) + + 77 AS col1
----
176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9039
SELECT COUNT( * ) * - 68 + + + 8 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT COUNT ( * ) * - 68 + + + 8 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 4 * - NULLIF ( - 50, - 42 ) + 55
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-9041
SELECT + 39 * + + 23 * + 73 * 93 - - 26 + - 28 + + 20 DIV + 58 AS col2
----
6089731

skipif mysql # not compatible
query I rowsort label-9041
SELECT + 39 * + + 23 * + 73 * 93 - - 26 + - 28 + + 20 / + 58 AS col2
----
6089731

query I rowsort
SELECT - 52 * + + 27 - - 5
----
-1399

onlyif mysql # aggregate syntax: 
query II rowsort label-9043
SELECT ALL - + COUNT( - 71 ) AS col1, 96 + + CASE - COALESCE ( + + 72, 11, + - COUNT( * ) ) WHEN + COUNT( * ) - - + 20 THEN + 20 * 16 + CASE + 98 WHEN + COUNT( * ) THEN + + 72 + - 76 * - COUNT( * ) + - COUNT( * ) * - 68 WHEN MIN( - 47 ) THEN NULL WHEN + + 95 + + - 64 THEN NULL END + + 69 * + + 85 + + ( 53 ) * 70 WHEN + 55 + - + 45 / 21 * - 46 * + + ( + 10 ) THEN - 93 + + 14 ELSE NULL END + + ( + 59 ) - - + 69 * - 70
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9043
SELECT ALL - + COUNT ( - 71 ) AS col1, 96 + + CASE - COALESCE ( + + 72, 11, + - COUNT ( * ) ) WHEN + COUNT ( * ) - - + 20 THEN + 20 * 16 + CASE + 98 WHEN + COUNT ( * ) THEN + + 72 + - 76 * - COUNT ( * ) + - COUNT ( * ) * - 68 WHEN MIN ( - 47 ) THEN NULL WHEN + + 95 + + - 64 THEN NULL END + + 69 * + + 85 + + ( 53 ) * 70 WHEN + 55 + - + 45 / 21 * - 46 * + + ( + 10 ) THEN - 93 + + 14 ELSE NULL END + + ( + 59 ) - - + 69 * - 70
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9044
SELECT ALL - 13 * + 42 DIV 40 + - 72 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL - 13 * + 42 / 40 + - 72 AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9045
SELECT DISTINCT + 48 * - - COUNT( * ) + + NULLIF ( COALESCE ( 18, - 30, - + MAX( 62 ) DIV + 85 ), 92 * + + 88 * CASE + + COUNT( * ) WHEN + 15 DIV + - 52 + 49 + - 96 THEN NULL WHEN 81 DIV + 27 + + + 19 + 20 * - ( - 52 ) + - 41 THEN + ( - 61 ) END )
----
66

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT + 48 * - - COUNT ( * ) + + NULLIF ( COALESCE ( 18, - 30, - + MAX ( 62 ) / + 85 ), 92 * + + 88 * CASE + + COUNT ( * ) WHEN + 15 / + - 52 + 49 + - 96 THEN NULL WHEN 81 / + 27 + + + 19 + 20 * - ( - 52 ) + - 41 THEN + ( - 61 ) END )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT COUNT( - + 16 ) * + - 73 - + 47 - NULLIF ( 33, - 71 / + 57 + 88 * NULLIF ( 22, + 1 ) * 50 - - 65 )
----
-153

skipif mysql # not compatible
query I rowsort label-9046
SELECT COUNT ( - + 16 ) * + - 73 - + 47 - NULLIF ( 33, - 71 / + 57 + 88 * NULLIF ( 22, + 1 ) * 50 - - 65 )
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT + NULLIF ( - ( - 28 ), - CAST( NULL AS SIGNED ) )
----
28

skipif mysql # not compatible
query I rowsort label-9047
SELECT + NULLIF ( - ( - 28 ), - CAST ( NULL AS INTEGER ) )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + CASE - 3 WHEN 48 THEN NULL WHEN MAX( - NULLIF ( - 45, - 22 ) ) THEN 25 + + 55 + - - 59 WHEN + 75 - 70 THEN NULL ELSE + COUNT( * ) END * + COUNT( * ) - + + 75 col2
----
-74

skipif mysql # not compatible
query I rowsort label-9048
SELECT + CASE - 3 WHEN 48 THEN NULL WHEN MAX ( - NULLIF ( - 45, - 22 ) ) THEN 25 + + 55 + - - 59 WHEN + 75 - 70 THEN NULL ELSE + COUNT ( * ) END * + COUNT ( * ) - + + 75 col2
----
-74

query II rowsort
SELECT + 95 col1, - 30
----
95
-30

query I rowsort
SELECT ALL - ( 27 ) AS col1
----
-27

query I rowsort
SELECT 31 * + - 78 * - 52 * + 72 AS col2
----
9052992

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT 66 * - + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-9052
SELECT 66 * - + COUNT ( * )
----
-66

query I rowsort
SELECT ALL - 15 * - 51
----
765

query II rowsort
SELECT DISTINCT + 60 * ( - 93 ) AS col0, 56 + + 29 AS col0
----
-5580
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9055
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) + + 95, - CASE WHEN NOT 15 > ( NULL ) THEN + 24 ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9055
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 95, - CASE WHEN NOT 15 > ( NULL ) THEN + 24 ELSE NULL END
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL + 88 - + - MAX( 74 ) + - + 46
----
116

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL + 88 - + - MAX ( 74 ) + - + 46
----
116

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9057
SELECT ALL - CAST( NULL AS DECIMAL ) * NULLIF ( - 13, - + 70 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL - CAST ( NULL AS REAL ) * NULLIF ( - 13, - + 70 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 15 * - + 84 * 92
----
115920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9059
SELECT ALL CASE + + NULLIF ( - 60, + 51 ) WHEN + 90 THEN NULL WHEN + ( + ( 82 ) ) * + 68 + + + CASE + COALESCE ( + CAST( + 64 AS SIGNED ), - + 32 ) WHEN - 95 THEN - + 38 * 83 WHEN 69 THEN NULL WHEN 39 + - 64 THEN NULL END THEN NULL ELSE + 54 - + 75 + 88 * + 53 END
----
4643

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL CASE + + NULLIF ( - 60, + 51 ) WHEN + 90 THEN NULL WHEN + ( + ( 82 ) ) * + 68 + + + CASE + COALESCE ( + CAST ( + 64 AS INTEGER ), - + 32 ) WHEN - 95 THEN - + 38 * 83 WHEN 69 THEN NULL WHEN 39 + - 64 THEN NULL END THEN NULL ELSE + 54 - + 75 + 88 * + 53 END
----
4643

query I rowsort
SELECT ALL CASE + + 9 WHEN 32 THEN 30 * + + 25 * - - AVG ( ALL 65 ) - + 61 WHEN 8 + + 37 + - - 52 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 61 * - - 82
----
-5002

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL NULLIF ( - 77, - + SUM( - 50 ) - 34 )
----
-77

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL NULLIF ( - 77, - + SUM ( - 50 ) - 34 )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9063
SELECT - - CAST( NULL AS SIGNED ) + + + 81 + + + COUNT( * ) - - COALESCE ( - 95, - - COUNT( * ) ) + - ( + 50 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT - - CAST ( NULL AS INTEGER ) + + + 81 + + + COUNT ( * ) - - COALESCE ( - 95, - - COUNT ( * ) ) + - ( + 50 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9064
SELECT DISTINCT - MAX( DISTINCT - ( 5 ) ) AS col2, + 72 AS col1
----
5
72

skipif mysql # not compatible
query II rowsort label-9064
SELECT DISTINCT - MAX ( DISTINCT - ( 5 ) ) AS col2, + 72 AS col1
----
5
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT - + 35 + - COUNT( * ) * + 95
----
-130

skipif mysql # not compatible
query I rowsort label-9065
SELECT - + 35 + - COUNT ( * ) * + 95
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9066
SELECT ALL - CASE WHEN 1 > + + 77 THEN - 9 DIV - 27 DIV - 97 * - MIN( DISTINCT + 83 ) DIV + COUNT( * ) + ( 49 ) ELSE - 52 END
----
52

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL - CASE WHEN 1 > + + 77 THEN - 9 / - 27 / - 97 * - MIN ( DISTINCT + 83 ) / + COUNT ( * ) + ( 49 ) ELSE - 52 END
----
52

query I rowsort
SELECT DISTINCT 61 * + 9
----
549

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9068
SELECT + + 85 DIV + COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-9068
SELECT + + 85 / + COUNT ( * ) AS col2
----
85

query I rowsort
SELECT ALL - + 8 * + - ( + - 86 ) AS col1
----
-688

query I rowsort
SELECT + 76 + 88
----
164

query I rowsort
SELECT ALL 45 + - - 98 col1
----
143

query I rowsort
SELECT + + 33 + 71 AS col1
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9073
SELECT ALL - ( + - COUNT( * ) ) DIV + + 84 * + 51
----
0

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - ( + - COUNT ( * ) ) / + + 84 * + 51
----
0

query I rowsort
SELECT + - 58 + 53 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9075
SELECT ALL - 59 DIV 52 * - + 88 + + + 8 + COUNT( * ), + NULLIF ( - - 10, + COUNT( * ) ) AS col2, + - 46 AS col1
----
97
10
-46

skipif mysql # not compatible
query III rowsort label-9075
SELECT ALL - 59 / 52 * - + 88 + + + 8 + COUNT ( * ), + NULLIF ( - - 10, + COUNT ( * ) ) AS col2, + - 46 AS col1
----
97
10
-46

query I rowsort
SELECT ALL - + 97 * 88 + 42 AS col2
----
-8494

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT - 63 + 4 - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-9077
SELECT - 63 + 4 - COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT ALL + 21 * + 65 + - COALESCE ( + + 25, - ( - 20 ), + - COUNT( * ) * + SUM( ALL - - 29 ) + - MAX( + 20 ) + SUM( - 13 ) DIV + COUNT( * ) * COALESCE ( - 80, - - ( - ( + 34 ) ) * - + COUNT( * ), + 69 * + 29 ) ) col1
----
1340

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL + 21 * + 65 + - COALESCE ( + + 25, - ( - 20 ), + - COUNT ( * ) * + SUM ( ALL - - 29 ) + - MAX ( + 20 ) + SUM ( - 13 ) / + COUNT ( * ) * COALESCE ( - 80, - - ( - ( + 34 ) ) * - + COUNT ( * ), + 69 * + 29 ) ) col1
----
1340

query I rowsort
SELECT + NULLIF ( 26, - 87 + + - 38 ) AS col2
----
26

query I rowsort
SELECT ( - + 29 ) AS col0
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9081
SELECT ALL - 72 * + - 46 * 19 - - 72 * - - COUNT( * ) DIV + ( 89 ) - - - COUNT( * ) col2
----
62927

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - 72 * + - 46 * 19 - - 72 * - - COUNT ( * ) / + ( 89 ) - - - COUNT ( * ) col2
----
62927

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT + ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT + ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT + 45 + - COUNT( * ) col1
----
44

skipif mysql # not compatible
query I rowsort label-9083
SELECT + 45 + - COUNT ( * ) col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT - MAX( 3 ) * - 52
----
156

skipif mysql # not compatible
query I rowsort label-9084
SELECT - MAX ( 3 ) * - 52
----
156

query II rowsort
SELECT DISTINCT + 5 AS col2, + 26
----
5
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT NULLIF ( 93, 86 / - - MAX( 44 ) )
----
93

skipif mysql # not compatible
query I rowsort label-9086
SELECT NULLIF ( 93, 86 / - - MAX ( 44 ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT COALESCE ( - - 37, + + COALESCE ( - 9, COUNT( * ) ) - - 0 + 99 )
----
37

skipif mysql # not compatible
query I rowsort label-9087
SELECT COALESCE ( - - 37, + + COALESCE ( - 9, COUNT ( * ) ) - - 0 + 99 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9088
SELECT ALL + 57 DIV - 43
----
-1

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL + 57 / - 43
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT + MAX( DISTINCT - 95 ) / - 78 * 4 + + CASE - - 61 WHEN ( + 84 ) * COUNT( * ) THEN + + 75 * - MIN( ALL - 23 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT + MAX ( DISTINCT - 95 ) / - 78 * 4 + + CASE - - 61 WHEN ( + 84 ) * COUNT ( * ) THEN + + 75 * - MIN ( ALL - 23 ) END AS col2
----
NULL

query I rowsort
SELECT - ( - 11 ) + - 92 AS col2
----
-81

query II rowsort
SELECT ALL + 30, 98 AS col2
----
30
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT DISTINCT + COUNT( * ) * ( 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT + COUNT ( * ) * ( 52 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9093
SELECT - 27 AS col2, 90 + + COUNT( * ) * - 41
----
-27
49

skipif mysql # not compatible
query II rowsort label-9093
SELECT - 27 AS col2, 90 + + COUNT ( * ) * - 41
----
-27
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9094
SELECT ALL + 69 * - COUNT( * ) + 12 DIV 67 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL + 69 * - COUNT ( * ) + 12 / 67 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL + MAX( DISTINCT - 45 ) * NULLIF ( + 63, 2 )
----
-2835

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + MAX ( DISTINCT - 45 ) * NULLIF ( + 63, 2 )
----
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT DISTINCT + + COUNT( * ) * - - 49 + + CASE - 79 WHEN - + ( 2 ) + + 37 / - + MAX( ALL + + ( - 6 ) ) THEN + 84 ELSE NULL END + - MIN( ALL ( + NULLIF ( - 93, 15 + 5 ) ) ) / - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT + + COUNT ( * ) * - - 49 + + CASE - 79 WHEN - + ( 2 ) + + 37 / - + MAX ( ALL + + ( - 6 ) ) THEN + 84 ELSE NULL END + - MIN ( ALL ( + NULLIF ( - 93, 15 + 5 ) ) ) / - 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL - - COUNT( * ) + 28 * - + 46
----
-1287

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - - COUNT ( * ) + 28 * - + 46
----
-1287

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT - 19 + - COUNT( * ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9098
SELECT - 19 + - COUNT ( * ) AS col2
----
-20

query I rowsort
SELECT DISTINCT - 67 * 90 * - 23
----
138690

query II rowsort
SELECT DISTINCT 30 AS col0, + 4
----
30
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9101
SELECT DISTINCT - + COALESCE ( + 69, + COALESCE ( COALESCE ( - ( + 54 ), - - 94 ), - + 91 * 45 + + - COUNT( * ) ) + + - 17 + - + 14 * + COALESCE ( 14, + - 99 + - - 12 + - 82 + + ( + MIN( DISTINCT - ( + 10 ) ) ) * - 55 * AVG ( - + 96 ) * + - COUNT( + 83 ) DIV 43 ) ) + + 49 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT - + COALESCE ( + 69, + COALESCE ( COALESCE ( - ( + 54 ), - - 94 ), - + 91 * 45 + + - COUNT ( * ) ) + + - 17 + - + 14 * + COALESCE ( 14, + - 99 + - - 12 + - 82 + + ( + MIN ( DISTINCT - ( + 10 ) ) ) * - 55 * AVG ( - + 96 ) * + - COUNT ( + 83 ) / 43 ) ) + + 49 AS col2
----
-20

query I rowsort
SELECT ( + NULLIF ( 71, - 75 + - - 61 ) )
----
71

query I rowsort
SELECT - 77 * - 86 + + + 50 - + 93 + 11 + - 48 * - 79 AS col0
----
10382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9104
SELECT - - COUNT( * ) + - + COALESCE ( 32, 82 - - CAST( + + 31 AS SIGNED ) - 20 / - 87, COALESCE ( - 31, + CAST( - 43 AS DECIMAL ) ) * + 68 + - 81 ) * + 97 + + - CAST( NULL AS DECIMAL ) * - MIN( DISTINCT - - 75 ) * + 87 * + - 46 * - CAST( + 94 AS SIGNED ) * + 51 / - ( + COALESCE ( - - 44, + + 36 + - 20, NULLIF ( - + 73, - - MAX( DISTINCT + + 62 ) ) ) ) + - COUNT( * ) + - CAST( - ( + 39 ) AS SIGNED ) * - NULLIF ( 94, - COUNT( * ) - 71 - 86 * - 68 ) * + - COUNT( * ) + + + 8 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT - - COUNT ( * ) + - + COALESCE ( 32, 82 - - CAST ( + + 31 AS INTEGER ) - 20 / - 87, COALESCE ( - 31, + CAST ( - 43 AS REAL ) ) * + 68 + - 81 ) * + 97 + + - CAST ( NULL AS REAL ) * - MIN ( DISTINCT - - 75 ) * + 87 * + - 46 * - CAST ( + 94 AS INTEGER ) * + 51 / - ( + COALESCE ( - - 44, + + 36 + - 20, NULLIF ( - + 73, - - MAX ( DISTINCT + + 62 ) ) ) ) + - COUNT ( * ) + - CAST ( - ( + 39 ) AS INTEGER ) * - NULLIF ( 94, - COUNT ( * ) - 71 - 86 * - 68 ) * + - COUNT ( * ) + + + 8 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL - 17 + + 26
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-9106
SELECT + 31 AS col1, - 35 DIV + 22 AS col0
----
31
-1

skipif mysql # not compatible
query II rowsort label-9106
SELECT + 31 AS col1, - 35 / + 22 AS col0
----
31
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT - COUNT( * ) AS col2, + 19 AS col1
----
-1
19

skipif mysql # not compatible
query II rowsort label-9107
SELECT - COUNT ( * ) AS col2, + 19 AS col1
----
-1
19

query II rowsort
SELECT 61 AS col1, + 67 + - + 84 + 5
----
61
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT - CASE 58 WHEN NULLIF ( 46, + COUNT( * ) * - + 66 + 53 * - - ( - 20 ) + 98 ) * + 63 / - 55 THEN NULL WHEN - 74 THEN + + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT - CASE 58 WHEN NULLIF ( 46, + COUNT ( * ) * - + 66 + 53 * - - ( - 20 ) + 98 ) * + 63 / - 55 THEN NULL WHEN - 74 THEN + + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - - 62 * + - 6 AS col1
----
-372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9111
SELECT ALL + CAST( + CASE - 91 WHEN 57 - + 39 + + 56 * - 67 * 19 * + CAST( NULL AS SIGNED ) THEN NULL ELSE ( + - 67 ) * 72 * + 38 END AS SIGNED ) + 8
----
-183304

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL + CAST ( + CASE - 91 WHEN 57 - + 39 + + 56 * - 67 * 19 * + CAST ( NULL AS INTEGER ) THEN NULL ELSE ( + - 67 ) * 72 * + 38 END AS INTEGER ) + 8
----
-183304

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ALL CASE + 30 WHEN - 17 THEN + + SUM( + 28 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL CASE + 30 WHEN - 17 THEN + + SUM ( + 28 ) END
----
NULL

query II rowsort
SELECT 98 AS col2, - 42 * + 87 - - 16 col1
----
98
-3638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9114
SELECT ALL - - CAST( + 45 AS SIGNED ) + + 55 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL - - CAST ( + 45 AS INTEGER ) + + 55 AS col0
----
100

query II rowsort
SELECT ALL 66 + - 31 + - 39 * + 97 * + 77 * + 17, 0 AS col2
----
-4951912
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9116
SELECT DISTINCT COUNT( * ) AS col1, 3 col1
----
1
3

skipif mysql # not compatible
query II rowsort label-9116
SELECT DISTINCT COUNT ( * ) AS col1, 3 col1
----
1
3

query II rowsort
SELECT ALL 79 + + 41, - 18 AS col0
----
120
-18

query I rowsort
SELECT DISTINCT + 74 + + NULLIF ( - 24, + + 25 ) AS col0
----
50

query I rowsort
SELECT - 6 + 98
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9120
SELECT + MAX( DISTINCT 92 ) DIV + SUM( DISTINCT + + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-9120
SELECT + MAX ( DISTINCT 92 ) / + SUM ( DISTINCT + + 57 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT 87 * - CAST( - 70 AS SIGNED ) * 36 - + 41 + - + 14 AS col2
----
219185

skipif mysql # not compatible
query I rowsort label-9121
SELECT 87 * - CAST ( - 70 AS INTEGER ) * 36 - + 41 + - + 14 AS col2
----
219185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT CAST( - 33 AS SIGNED ) * - - 50 AS col1
----
-1650

skipif mysql # not compatible
query I rowsort label-9122
SELECT CAST ( - 33 AS INTEGER ) * - - 50 AS col1
----
-1650

onlyif mysql # DIV for integer division: 
query I rowsort label-9123
SELECT - 91 DIV - - 38 + + 13 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9123
SELECT - 91 / - - 38 + + 13 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL + 88 - - 56 - + - COUNT( * ) + + - 10 AS col1
----
135

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + 88 - - 56 - + - COUNT ( * ) + + - 10 AS col1
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9125
SELECT ( + 21 ) * + CAST( COUNT( * ) AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9125
SELECT ( + 21 ) * + CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 89 col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9127
SELECT CAST( - COUNT( * ) AS SIGNED ) * - - 58 AS col1, 33 + 81 + + - 76 + + 97 * - 72 + + 29 + - + COUNT( DISTINCT 77 )
----
-58
-6918

skipif mysql # not compatible
query II rowsort label-9127
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - - 58 AS col1, 33 + 81 + + - 76 + + 97 * - 72 + + 29 + - + COUNT ( DISTINCT 77 )
----
-58
-6918

query I rowsort
SELECT ALL 92 * 72 AS col0
----
6624

query I rowsort
SELECT + 47 * - - 45 - - 29 AS col0
----
2144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9130
SELECT 50 + + SUM( 27 ) * + + CAST( - + 54 AS SIGNED ), 9 + + 84 AS col2
----
-1408
93

skipif mysql # not compatible
query II rowsort label-9130
SELECT 50 + + SUM ( 27 ) * + + CAST ( - + 54 AS INTEGER ), 9 + + 84 AS col2
----
-1408
93

query I rowsort
SELECT DISTINCT 14 * - - 28
----
392

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9132
SELECT CASE CAST( 35 AS SIGNED ) WHEN 10 THEN NULL WHEN - + 99 + 26 THEN 60 ELSE NULL END * - 64 * - ( + + 70 ) * - 58 + CAST( NULL AS SIGNED ) AS col1, - 47
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-9132
SELECT CASE CAST ( 35 AS INTEGER ) WHEN 10 THEN NULL WHEN - + 99 + 26 THEN 60 ELSE NULL END * - 64 * - ( + + 70 ) * - 58 + CAST ( NULL AS INTEGER ) AS col1, - 47
----
NULL
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT DISTINCT 61 * - + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT 61 * - + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 80 + - + 20 - - 22 AS col2
----
-78

query I rowsort
SELECT ALL - CASE ( - - 90 ) WHEN + 78 THEN 40 WHEN - + 59 THEN NULL WHEN + 26 THEN 35 * + 39 + 83 * 62 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9136
SELECT - 95 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9136
SELECT - 95 / 97 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9137
SELECT ALL 64 + - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL 64 + - ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL - 32 + - 28 + - 96 AS col2
----
-156

query I rowsort
SELECT - 22 + 32 * - 18 * - - 63
----
-36310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9140
SELECT + + 1 * - + 11 + + - COUNT( * ) + + + 80 DIV + 81 + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9140
SELECT + + 1 * - + 11 + + - COUNT ( * ) + + + 80 / + 81 + COUNT ( * )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT + 31 DIV - + 3 + + - 14
----
-24

skipif mysql # not compatible
query I rowsort label-9141
SELECT + 31 / - + 3 + + - 14
----
-24

query I rowsort
SELECT ALL + + 16 + + 9 * - 32 AS col1
----
-272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9143
SELECT DISTINCT + 30 DIV - NULLIF ( + COUNT( * ), + COUNT( * ) - - + 26 )
----
-30

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT + 30 / - NULLIF ( + COUNT ( * ), + COUNT ( * ) - - + 26 )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT + CASE + - 74 WHEN - 93 * 79 * - 5 THEN NULL ELSE - 95 DIV + 26 + - + 66 END * - - 12 AS col1
----
-828

skipif mysql # not compatible
query I rowsort label-9144
SELECT + CASE + - 74 WHEN - 93 * 79 * - 5 THEN NULL ELSE - 95 / + 26 + - + 66 END * - - 12 AS col1
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT ALL - + 41 * + + 3 + - CASE + 46 WHEN + 30 THEN NULL WHEN + + ( - - 33 ) * + 4 THEN 17 * - COUNT( DISTINCT - 21 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL - + 41 * + + 3 + - CASE + 46 WHEN + 30 THEN NULL WHEN + + ( - - 33 ) * + 4 THEN 17 * - COUNT ( DISTINCT - 21 ) END col0
----
NULL

query I rowsort
SELECT - 97 + + 41
----
-56

query I rowsort
SELECT - 11 + + 96 + 97 * 61 * 56 * + 46
----
15242277

query I rowsort
SELECT ALL + + 28 + - - 20 * + 11 AS col0
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT MAX( DISTINCT + - 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT MAX ( DISTINCT + - 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT ALL - + COUNT( * ) * - 91
----
91

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL - + COUNT ( * ) * - 91
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT NULLIF ( + COALESCE ( 47, 2 DIV ( - 96 ) DIV + 15 * - COALESCE ( + - COUNT( * ), + 62 * COUNT( * ), 66 ) ), + 41 ) col1
----
47

skipif mysql # not compatible
query I rowsort label-9151
SELECT NULLIF ( + COALESCE ( 47, 2 / ( - 96 ) / + 15 * - COALESCE ( + - COUNT ( * ), + 62 * COUNT ( * ), 66 ) ), + 41 ) col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9152
SELECT ALL + 62 * - ( + - CASE + 44 WHEN + CAST( NULL AS SIGNED ) * 23 * - COUNT( ALL 71 ) THEN COUNT( * ) END ) / + 7 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL + 62 * - ( + - CASE + 44 WHEN + CAST ( NULL AS INTEGER ) * 23 * - COUNT ( ALL 71 ) THEN COUNT ( * ) END ) / + 7 AS col2
----
NULL

query I rowsort
SELECT + ( - 95 ) + - 6 AS col1
----
-101

query I rowsort
SELECT ALL + - 36 - 53 + - 40 AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + 60 + - 82 * - COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-9155
SELECT + 60 + - 82 * - COUNT ( * )
----
142

query II rowsort
SELECT ALL - 70 - + 83 AS col0, 68 AS col1
----
-153
68

query II rowsort
SELECT ( NULLIF ( + + ( + 80 ), + ( + + 19 ) ) ) + + + 60 AS col2, - 83 * - - CASE 74 WHEN - ( - 89 ) * + 7 * + 1 * - 2 THEN COALESCE ( + 15, 58, + + 77 - 13 * - AVG ( DISTINCT + 71 ) - - + 59 + + 79 * + - CASE 25 WHEN - ( + 26 ) THEN - 61 + + 24 WHEN + 34 * - ( + 72 ) THEN NULL WHEN - 61 + - + 81 THEN - 8 ELSE NULL END + 47 * + 4 ) * + AVG ( 85 ) END AS col0
----
140
NULL

query II rowsort
SELECT DISTINCT 81, + 88 AS col0
----
81
88

query I rowsort
SELECT 41 + + 62
----
103

query I rowsort
SELECT ALL - 56 - + + 64 AS col0
----
-120

onlyif mysql # DIV for integer division: 
query II rowsort label-9161
SELECT DISTINCT 86 AS col0, NULLIF ( 97, 87 ) DIV 32 - + + 84 + 15 col1
----
86
-66

skipif mysql # not compatible
query II rowsort label-9161
SELECT DISTINCT 86 AS col0, NULLIF ( 97, 87 ) / 32 - + + 84 + 15 col1
----
86
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT MAX( - + 0 ) * - 58 + - + 64 + 9 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-9162
SELECT MAX ( - + 0 ) * - 58 + - + 64 + 9 AS col2
----
-55

query I rowsort
SELECT ALL - ( + ( + + 36 ) ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT DISTINCT MAX( + NULLIF ( 84, 61 ) ) * + 78
----
6552

skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT MAX ( + NULLIF ( 84, 61 ) ) * + 78
----
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT DISTINCT - NULLIF ( COUNT( * ), + 36 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9165
SELECT DISTINCT - NULLIF ( COUNT ( * ), + 36 ) col0
----
-1

query I rowsort
SELECT 82 * + + 28 AS col2
----
2296

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + 80 * - + CASE - 70 WHEN + + 43 THEN NULL WHEN + COUNT( ALL + 95 ) THEN + MIN( 66 ) WHEN - - 9 THEN - + COUNT( * ) END / 75 + + - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9167
SELECT + 80 * - + CASE - 70 WHEN + + 43 THEN NULL WHEN + COUNT ( ALL + 95 ) THEN + MIN ( 66 ) WHEN - - 9 THEN - + COUNT ( * ) END / 75 + + - 90 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 15 * - 2 * 9 * + 47 AS col1, 79 col1
----
-12690
79

query II rowsort
SELECT ALL - 36 AS col2, 9
----
-36
9

query I rowsort
SELECT DISTINCT - 39 * - + 9
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT 85 * + NULLIF ( - 66, + COUNT( * ) ) * - 30 * + + COUNT( * ) + 53 AS col2
----
168353

skipif mysql # not compatible
query I rowsort label-9171
SELECT 85 * + NULLIF ( - 66, + COUNT ( * ) ) * - 30 * + + COUNT ( * ) + 53 AS col2
----
168353

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT ALL 2 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL 2 / - - 69
----
0

query I rowsort
SELECT ALL 72 + + 63 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT 81 * + 82 + + COUNT( * )
----
6643

skipif mysql # not compatible
query I rowsort label-9174
SELECT 81 * + 82 + + COUNT ( * )
----
6643

query I rowsort
SELECT + 19 * 75 * + 22 AS col2
----
31350

query I rowsort
SELECT ALL - ( + - 14 ) + + COALESCE ( 62, 25 + + 48 ) - + 44 * + 71 AS col0
----
-3048

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9177
SELECT ALL CAST( + 75 AS SIGNED ) + 74 AS col0, 11
----
149
11

skipif mysql # not compatible
query II rowsort label-9177
SELECT ALL CAST ( + 75 AS INTEGER ) + 74 AS col0, 11
----
149
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT - COUNT( DISTINCT - + ( - - 67 ) ) * - 37 * + 63 + - - COUNT( * ) + - - 63
----
2395

skipif mysql # not compatible
query I rowsort label-9178
SELECT - COUNT ( DISTINCT - + ( - - 67 ) ) * - 37 * + 63 + - - COUNT ( * ) + - - 63
----
2395

onlyif mysql # aggregate syntax: 
query II rowsort label-9179
SELECT - 43 AS col2, NULLIF ( COUNT( DISTINCT + 81 ), + + COALESCE ( - - 59, - 75 * + 48 ) - 51 ) AS col2
----
-43
1

skipif mysql # not compatible
query II rowsort label-9179
SELECT - 43 AS col2, NULLIF ( COUNT ( DISTINCT + 81 ), + + COALESCE ( - - 59, - 75 * + 48 ) - 51 ) AS col2
----
-43
1

query I rowsort
SELECT - 86 - 94
----
-180

query I rowsort
SELECT ALL - 35 - 39 * - + 43
----
1642

query I rowsort
SELECT DISTINCT 74 * + 70 col1
----
5180

query I rowsort
SELECT DISTINCT 83 - - 54 AS col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9184
SELECT ALL COUNT( * ) - - 40 + + 77 DIV - + MIN( ALL 62 ) - + + 86 * - - 54 * + 12 + CAST( - 92 AS SIGNED )
----
-55780

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL COUNT ( * ) - - 40 + + 77 / - + MIN ( ALL 62 ) - + + 86 * - - 54 * + 12 + CAST ( - 92 AS INTEGER )
----
-55780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9185
SELECT ALL - NULLIF ( - - CAST( CASE - COUNT( - 27 ) WHEN + 93 / COUNT( * ) + 31 * 9 + 60 - - 81 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE - 98 END AS SIGNED ), + + ( COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL - NULLIF ( - - CAST ( CASE - COUNT ( - 27 ) WHEN + 93 / COUNT ( * ) + 31 * 9 + 60 - - 81 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE - 98 END AS INTEGER ), + + ( COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT - 84 - 68
----
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-9187
SELECT - 58 * ( - - COUNT( * ) ) AS col2, + 7 + - 82 AS col1
----
-58
-75

skipif mysql # not compatible
query II rowsort label-9187
SELECT - 58 * ( - - COUNT ( * ) ) AS col2, + 7 + - 82 AS col1
----
-58
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9188
SELECT - + NULLIF ( + 48, COUNT( * ) * + 15 * + 71 ) DIV + MAX( ALL - 77 ) + + - ( - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9188
SELECT - + NULLIF ( + 48, COUNT ( * ) * + 15 * + 71 ) / + MAX ( ALL - 77 ) + + - ( - 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL MAX( 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL MAX ( 90 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT DISTINCT - 42 * - 96 * - - SUM( - 1 ) * - 23 AS col2
----
92736

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT - 42 * - 96 * - - SUM ( - 1 ) * - 23 AS col2
----
92736

query II rowsort
SELECT ALL - 24 * + 98 AS col0, + 34 * - - 28
----
-2352
952

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT - 22 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-9192
SELECT - 22 / + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT DISTINCT COUNT( * ) * 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT COUNT ( * ) * 62 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT + NULLIF ( + + 98, - - 30 ) + ( + 86 ) + SUM( DISTINCT + 51 )
----
235

skipif mysql # not compatible
query I rowsort label-9194
SELECT + NULLIF ( + + 98, - - 30 ) + ( + 86 ) + SUM ( DISTINCT + 51 )
----
235

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT DISTINCT COUNT( DISTINCT - 70 ) * - 36 + - 12 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT COUNT ( DISTINCT - 70 ) * - 36 + - 12 AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9196
SELECT ALL COUNT( * ) * + - CAST( + + 47 AS SIGNED ) * - ( + + 62 ) + - 96 + - 17 + + 61 + - 68 + - + 44 * 27 * - - 44 * - 11
----
577786

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL COUNT ( * ) * + - CAST ( + + 47 AS INTEGER ) * - ( + + 62 ) + - 96 + - 17 + + 61 + - 68 + - + 44 * 27 * - - 44 * - 11
----
577786

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT + 38 * COUNT( * ) - + 62
----
-24

skipif mysql # not compatible
query I rowsort label-9197
SELECT + 38 * COUNT ( * ) - + 62
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT COALESCE ( + 4, + CAST( NULL AS SIGNED ) * - 74 * 99 * - - 47 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9198
SELECT COALESCE ( + 4, + CAST ( NULL AS INTEGER ) * - 74 * 99 * - - 47 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT ALL 32 * + SUM( - 27 ) * ( + 72 ) + - COUNT( ALL - + 83 )
----
-62209

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL 32 * + SUM ( - 27 ) * ( + 72 ) + - COUNT ( ALL - + 83 )
----
-62209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9200
SELECT 98 / - COALESCE ( + 69, + - 54 ) + + + 90 * + CAST( NULL AS SIGNED ) + + + MIN( ALL 69 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT 98 / - COALESCE ( + 69, + - 54 ) + + + 90 * + CAST ( NULL AS INTEGER ) + + + MIN ( ALL 69 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 38 * - 17 + - + 36
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT - ( - MAX( - - 45 ) ) * - ( - 70 ) - + 83
----
3067

skipif mysql # not compatible
query I rowsort label-9202
SELECT - ( - MAX ( - - 45 ) ) * - ( - 70 ) - + 83
----
3067

query I rowsort
SELECT - 43 * 25 + - + 91
----
-1166

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT - SUM( - - 55 ) * + - ( + 60 ) + 96
----
3396

skipif mysql # not compatible
query I rowsort label-9204
SELECT - SUM ( - - 55 ) * + - ( + 60 ) + 96
----
3396

query I rowsort
SELECT DISTINCT + 28 * - 27 + + 75 * - 62 AS col0
----
-5406

query I rowsort
SELECT ALL + ( + 54 )
----
54

query I rowsort
SELECT + 2 * + 65
----
130

onlyif mysql # DIV for integer division: 
query II rowsort label-9208
SELECT + + 25 * + COALESCE ( 32, + 79 ) AS col2, - ( 61 ) DIV - 4 + - ( - 76 ) + + - 52 col1
----
800
39

skipif mysql # not compatible
query II rowsort label-9208
SELECT + + 25 * + COALESCE ( 32, + 79 ) AS col2, - ( 61 ) / - 4 + - ( - 76 ) + + - 52 col1
----
800
39

query II rowsort
SELECT - ( + - 42 ) + - - 21 + 20 AS col0, - 26 * 17
----
83
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT - + COUNT( * ) + - - COUNT( ALL - 27 ) * - 69 + + 29
----
-41

skipif mysql # not compatible
query I rowsort label-9210
SELECT - + COUNT ( * ) + - - COUNT ( ALL - 27 ) * - 69 + + 29
----
-41

query I rowsort
SELECT DISTINCT + ( - 23 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + 56 * - ( + - 61 ) - + 38 + - CASE 30 WHEN - ( - CASE + + AVG ( - 1 ) WHEN + + 32 THEN NULL ELSE - + 76 END ) / + - 25 THEN + COUNT( * ) / COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT + 56 * - ( + - 61 ) - + 38 + - CASE 30 WHEN - ( - CASE + + AVG ( - 1 ) WHEN + + 32 THEN NULL ELSE - + 76 END ) / + - 25 THEN + COUNT ( * ) / COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( - + 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9214
SELECT + - 99 + 12 DIV + + 33 * - + COUNT( * ) DIV + - ( - - COUNT( * ) ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9214
SELECT + - 99 + 12 / + + 33 * - + COUNT ( * ) / + - ( - - COUNT ( * ) ) AS col2
----
-99

query I rowsort
SELECT - ( - 99 ) col2
----
99

query I rowsort
SELECT + 81 * 62 AS col2
----
5022

query I rowsort
SELECT + 98 + + 52 AS col2
----
150

query I rowsort
SELECT ALL 4 * - - 34 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT + ( + 8 ) + COUNT( ALL - 95 )
----
9

skipif mysql # not compatible
query I rowsort label-9219
SELECT + ( + 8 ) + COUNT ( ALL - 95 )
----
9

query I rowsort
SELECT + 45 * - 19
----
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL COUNT( * ) + + 53 * - 62 * - 59 + 43
----
193918

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL COUNT ( * ) + + 53 * - 62 * - 59 + 43
----
193918

query I rowsort
SELECT + ( 7 ) + + 39
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT + COUNT( * ) + 81 * + 28 AS col1
----
2269

skipif mysql # not compatible
query I rowsort label-9223
SELECT + COUNT ( * ) + 81 * + 28 AS col1
----
2269

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT ALL + 94 * - ( ( - COUNT( * ) ) ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL + 94 * - ( ( - COUNT ( * ) ) ) AS col1
----
94

query I rowsort
SELECT ALL NULLIF ( - - ( - 17 ), - 80 ) col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9226
SELECT + 91 * 90 * COUNT( * ) AS col1, 33 AS col2
----
8190
33

skipif mysql # not compatible
query II rowsort label-9226
SELECT + 91 * 90 * COUNT ( * ) AS col1, 33 AS col2
----
8190
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9227
SELECT DISTINCT + SUM( NULLIF ( CAST( 92 AS SIGNED ), + 46 - + CAST( NULL AS SIGNED ) ) ) * 71 * + + COUNT( * ) AS col1, 78
----
6532
78

skipif mysql # not compatible
query II rowsort label-9227
SELECT DISTINCT + SUM ( NULLIF ( CAST ( 92 AS INTEGER ), + 46 - + CAST ( NULL AS INTEGER ) ) ) * 71 * + + COUNT ( * ) AS col1, 78
----
6532
78

query I rowsort
SELECT ALL 91 * - 6 col1
----
-546

query I rowsort
SELECT + 55 * - 75
----
-4125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT - 61 + - - CAST( NULL AS SIGNED ) + ( + 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT - 61 + - - CAST ( NULL AS INTEGER ) + ( + 60 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL - COUNT( * ) * ( 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL - COUNT ( * ) * ( 17 ) AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9232
SELECT ALL - 11 DIV 47 - COUNT( * ) * - 35
----
35

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - 11 / 47 - COUNT ( * ) * - 35
----
35

query I rowsort
SELECT - 25 * + 41 AS col1
----
-1025

query I rowsort
SELECT - 31 * 36
----
-1116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9235
SELECT 59 DIV 50 + - ( COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9235
SELECT 59 / 50 + - ( COUNT ( * ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9236
SELECT DISTINCT + 78 DIV ( NULLIF ( MIN( ALL + 24 ), 88 + 52 ) ) - COALESCE ( CAST( NULL AS SIGNED ) + 75, + 53 - 13 * 4 )
----
2

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT + 78 / ( NULLIF ( MIN ( ALL + 24 ), 88 + 52 ) ) - COALESCE ( CAST ( NULL AS INTEGER ) + 75, + 53 - 13 * 4 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT ALL + CAST( - 42 AS SIGNED ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + CAST ( - 42 AS INTEGER ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT + SUM( DISTINCT + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT + SUM ( DISTINCT + 33 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT ALL + 33 DIV 55 - + 3
----
-3

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL + 33 / 55 - + 3
----
-3

query I rowsort
SELECT - 95 * 16 AS col1
----
-1520

query I rowsort
SELECT ALL - 59 * 16
----
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT ALL 7 * - 59 - - 96 * COUNT( * )
----
-317

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL 7 * - 59 - - 96 * COUNT ( * )
----
-317

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT - 47 DIV 8
----
-5

skipif mysql # not compatible
query I rowsort label-9243
SELECT - 47 / 8
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT - 59 * MIN( ALL - 47 ) AS col1
----
2773

skipif mysql # not compatible
query I rowsort label-9244
SELECT - 59 * MIN ( ALL - 47 ) AS col1
----
2773

query I rowsort
SELECT - 65 + 52 * 42
----
2119

query I rowsort
SELECT DISTINCT + 42 * + 24 AS col2
----
1008

query I rowsort
SELECT ALL + 69 * + 13 AS col0
----
897

query I rowsort
SELECT 41 * 13
----
533

query I rowsort
SELECT ALL - 97 * 63
----
-6111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9250
SELECT COUNT( ALL COALESCE ( - 74, 91 ) ) DIV 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9250
SELECT COUNT ( ALL COALESCE ( - 74, 91 ) ) / 39 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT ALL 39 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL 39 / 46
----
0

query I rowsort
SELECT DISTINCT 98 + 39
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT SUM( DISTINCT 25 ) - - 58 * - 83
----
-4789

skipif mysql # not compatible
query I rowsort label-9253
SELECT SUM ( DISTINCT 25 ) - - 58 * - 83
----
-4789

query I rowsort
SELECT ALL 33 + 6 AS col1
----
39

query I rowsort
SELECT DISTINCT 51 * 54
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT DISTINCT - 52 + ( COUNT( * ) + + MIN( ALL 71 ) )
----
20

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT - 52 + ( COUNT ( * ) + + MIN ( ALL 71 ) )
----
20

query I rowsort
SELECT ALL 86 * 15 col1
----
1290

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT COUNT( ALL - 18 ) * 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-9258
SELECT COUNT ( ALL - 18 ) * 21 AS col1
----
21

query I rowsort
SELECT ALL 97 + 46 AS col2
----
143

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9260
SELECT DISTINCT 56 + + 59 DIV - CASE + CAST( NULL AS SIGNED ) * + 41 + + CAST( NULL AS SIGNED ) WHEN 94 + 32 THEN - 86 ELSE 45 END AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT 56 + + 59 / - CASE + CAST ( NULL AS INTEGER ) * + 41 + + CAST ( NULL AS INTEGER ) WHEN 94 + 32 THEN - 86 ELSE 45 END AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-9261
SELECT 1 - 78 DIV 56 col2
----
0

skipif mysql # not compatible
query I rowsort label-9261
SELECT 1 - 78 / 56 col2
----
0

query I rowsort
SELECT ALL 50 * 95
----
4750

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT MIN( ALL - 25 ) + 13 col2
----
-12

skipif mysql # not compatible
query I rowsort label-9263
SELECT MIN ( ALL - 25 ) + 13 col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT SUM( DISTINCT + 26 ) * + 61 AS col0
----
1586

skipif mysql # not compatible
query I rowsort label-9264
SELECT SUM ( DISTINCT + 26 ) * + 61 AS col0
----
1586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT 84 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT 84 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT ALL 43 - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL 43 - COUNT ( * ) AS col2
----
42

query I rowsort
SELECT 36 * 89
----
3204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9268
SELECT ALL COALESCE ( + ( 7 ), 25, MAX( DISTINCT 84 ) * - CASE 37 WHEN CAST( NULL AS SIGNED ) THEN CASE - 8 WHEN + 48 THEN + 99 WHEN 8 DIV + 12 THEN NULL ELSE + 2 * + CAST( + 69 AS SIGNED ) END END + + ( - 94 ) ) DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL COALESCE ( + ( 7 ), 25, MAX ( DISTINCT 84 ) * - CASE 37 WHEN CAST ( NULL AS INTEGER ) THEN CASE - 8 WHEN + 48 THEN + 99 WHEN 8 / + 12 THEN NULL ELSE + 2 * + CAST ( + 69 AS INTEGER ) END END + + ( - 94 ) ) / - 31
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9269
SELECT 50 DIV CASE 96 WHEN 22 * + ( - 91 ) + + 55 THEN NULL WHEN + 8 * 71 THEN ( 85 ) ELSE 27 END + 76
----
77

skipif mysql # not compatible
query I rowsort label-9269
SELECT 50 / CASE 96 WHEN 22 * + ( - 91 ) + + 55 THEN NULL WHEN + 8 * 71 THEN ( 85 ) ELSE 27 END + 76
----
77

query I rowsort
SELECT DISTINCT + - ( 98 ) * 56 AS col1
----
-5488

query I rowsort
SELECT 53 + + 71 * 92
----
6585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT 84 * + CAST( - SUM( DISTINCT - 67 ) AS SIGNED ) AS col1
----
5628

skipif mysql # not compatible
query I rowsort label-9272
SELECT 84 * + CAST ( - SUM ( DISTINCT - 67 ) AS INTEGER ) AS col1
----
5628

query I rowsort
SELECT ALL - + 19 * 88 AS col1
----
-1672

query I rowsort
SELECT + + ( 92 ) AS col2
----
92

query I rowsort
SELECT 33 + 13 AS col0
----
46

query I rowsort
SELECT - + 69 * + 3 + - ( + 62 ) col0
----
-269

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT 64 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-9277
SELECT 64 / 55
----
1

query I rowsort
SELECT + 97 * + 83 AS col0
----
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT COUNT( * ) + COUNT( DISTINCT + 51 )
----
2

skipif mysql # not compatible
query I rowsort label-9279
SELECT COUNT ( * ) + COUNT ( DISTINCT + 51 )
----
2

query I rowsort
SELECT ALL + + 27 * 18 AS col1
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT CAST( NULL AS SIGNED ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT CAST ( NULL AS INTEGER ) * 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT COUNT( * ) * 23 + + 48
----
71

skipif mysql # not compatible
query I rowsort label-9282
SELECT COUNT ( * ) * 23 + + 48
----
71

query I rowsort
SELECT 33 * + 6
----
198

query I rowsort
SELECT ALL + 46 + + 54 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT ALL - + 14 + - COUNT( * ) * 92
----
-106

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL - + 14 + - COUNT ( * ) * 92
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT COUNT( * ) + + 3 * 21
----
64

skipif mysql # not compatible
query I rowsort label-9286
SELECT COUNT ( * ) + + 3 * 21
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT + COUNT( * ) * - ( - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-9287
SELECT + COUNT ( * ) * - ( - 63 )
----
63

query I rowsort
SELECT + 56 * 65 + 26 * 19
----
4134

query I rowsort
SELECT DISTINCT + 20 + - 68 + 36
----
-12

query I rowsort
SELECT 66 + 82
----
148

query I rowsort
SELECT NULLIF ( 17, - 56 * + 52 ) - 92
----
-75

query I rowsort
SELECT DISTINCT + 93 * 17 AS col1
----
1581

query I rowsort
SELECT DISTINCT + 21 + 18 col2
----
39

query I rowsort
SELECT ALL - 66 + 69 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT COUNT( - - 6 ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-9295
SELECT COUNT ( - - 6 ) + - 58
----
-57

query I rowsort
SELECT ALL COALESCE ( 98, + 56 ) + - 81
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT DISTINCT MAX( - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT MAX ( - 34 )
----
-34

query I rowsort
SELECT 81 * - 6
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL COUNT( * ) - - MIN( DISTINCT - 48 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL COUNT ( * ) - - MIN ( DISTINCT - 48 ) AS col2
----
-47

query I rowsort
SELECT 29 + - 2
----
27

query I rowsort
SELECT ALL + 4 - + + 94 + - 92 * 48
----
-4506

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT - ( + - 45 ) * - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT - ( + - 45 ) * - COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT DISTINCT + + 13 * + 61 * COUNT( * ) AS col2
----
793

skipif mysql # not compatible
query I rowsort label-9303
SELECT DISTINCT + + 13 * + 61 * COUNT ( * ) AS col2
----
793

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL - ( - MAX( DISTINCT - 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - ( - MAX ( DISTINCT - 38 ) )
----
-38

query I rowsort
SELECT 86 * - 66 * 50 AS col1
----
-283800

onlyif mysql # DIV for integer division: 
query I rowsort label-9306
SELECT + 95 DIV - 4 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-9306
SELECT + 95 / - 4 AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9307
SELECT DISTINCT + CAST( NULL AS SIGNED ) / NULLIF ( 68, + 8 / ( COUNT( * ) ) + - ( - 33 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / NULLIF ( 68, + 8 / ( COUNT ( * ) ) + - ( - 33 ) ) AS col1
----
NULL

query I rowsort
SELECT + - 61 + 38
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9309
SELECT + + 86 DIV - + 20
----
-4

skipif mysql # not compatible
query I rowsort label-9309
SELECT + + 86 / - + 20
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT - CASE 11 WHEN 11 - 58 THEN NULLIF ( MAX( ALL - 74 ), NULLIF ( + 43, - 33 * MIN( 65 ) ) ) * 2 END * - 15 + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT - CASE 11 WHEN 11 - 58 THEN NULLIF ( MAX ( ALL - 74 ), NULLIF ( + 43, - 33 * MIN ( 65 ) ) ) * 2 END * - 15 + 56
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL + 43 * - CAST( 4 AS SIGNED ) + + 72
----
-100

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL + 43 * - CAST ( 4 AS INTEGER ) + + 72
----
-100

query I rowsort
SELECT ALL - 50 * + 87 + 42 AS col1
----
-4308

query I rowsort
SELECT + - CASE - 34 WHEN + 7 + 56 THEN 37 + + 65 / - 82 WHEN ( ( + 6 ) ) + - 62 THEN 46 + + 35 * 99 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9314
SELECT + + 25 DIV + + 56 col1
----
0

skipif mysql # not compatible
query I rowsort label-9314
SELECT + + 25 / + + 56 col1
----
0

query I rowsort
SELECT 20 * - 23 + + ( 87 + NULLIF ( 20 - - 33 * - ( 23 ), 75 * - ( + 70 ) ) )
----
-1112

onlyif mysql # DIV for integer division: 
query I rowsort label-9316
SELECT ALL + 64 * + 72 + 85 DIV 35
----
4610

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL + 64 * + 72 + 85 / 35
----
4610

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT - COUNT( * ) + 21 * - 44
----
-925

skipif mysql # not compatible
query I rowsort label-9317
SELECT - COUNT ( * ) + 21 * - 44
----
-925

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + COALESCE ( + 77, + ( 14 ) + MIN( + 97 ) )
----
77

skipif mysql # not compatible
query I rowsort label-9318
SELECT + COALESCE ( + 77, + ( 14 ) + MIN ( + 97 ) )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT ALL + NULLIF ( - - CAST( - 86 AS SIGNED ), 25 )
----
-86

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL + NULLIF ( - - CAST ( - 86 AS INTEGER ), 25 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT COUNT( ALL + + 23 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9320
SELECT COUNT ( ALL + + 23 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL CASE COALESCE ( - - 47, + 68 * - 47 ) WHEN - 63 * - 16 THEN + 7 + - 5 WHEN + COUNT( * ) / - 12 THEN - 84 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL CASE COALESCE ( - - 47, + 68 * - 47 ) WHEN - 63 * - 16 THEN + 7 + - 5 WHEN + COUNT ( * ) / - 12 THEN - 84 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9322
SELECT - 92 AS col1, 84 * 91 DIV MAX( DISTINCT + 15 * 79 )
----
-92
6

skipif mysql # not compatible
query II rowsort label-9322
SELECT - 92 AS col1, 84 * 91 / MAX ( DISTINCT + 15 * 79 )
----
-92
6

query II rowsort
SELECT - 47, + 29 col1
----
-47
29

query II rowsort
SELECT 91, - 18 + - - 95 * 2 AS col2
----
91
172

query II rowsort
SELECT - 50, + 31 AS col1
----
-50
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL + COUNT( * ) - + 40 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL + COUNT ( * ) - + 40 AS col1
----
-39

query I rowsort
SELECT - ( 77 ) col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT - 50 - ( + + SUM( ALL 8 ) ) + ( 60 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9328
SELECT - 50 - ( + + SUM ( ALL 8 ) ) + ( 60 ) AS col1
----
2

query I rowsort
SELECT - 56 * + - 97 AS col1
----
5432

query I rowsort
SELECT ALL ( 8 ) AS col2
----
8

query I rowsort
SELECT ALL - 72 * + - ( - - 45 )
----
3240

query II rowsort
SELECT 28 AS col1, 99 AS col1
----
28
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT ALL CAST( + + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL CAST ( + + 0 AS INTEGER )
----
0

query I rowsort
SELECT - 96 * 1
----
-96

query I rowsort
SELECT ALL CASE 49 WHEN + + 31 THEN 75 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL COALESCE ( - COUNT( * ), - 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL COALESCE ( - COUNT ( * ), - 55 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9337
SELECT - NULLIF ( + - 51, + 58 ) - 15 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9337
SELECT - NULLIF ( + - 51, + 58 ) - 15 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9338
SELECT - CASE - COUNT( * ) WHEN 77 + + 39 THEN - COALESCE ( 21, SUM( 4 ) + MAX( - ( 53 ) ) ) + + 61 ELSE COUNT( * ) END DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-9338
SELECT - CASE - COUNT ( * ) WHEN 77 + + 39 THEN - COALESCE ( 21, SUM ( 4 ) + MAX ( - ( 53 ) ) ) + + 61 ELSE COUNT ( * ) END / 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT + 66 * - COUNT( * ) + 30
----
-36

skipif mysql # not compatible
query I rowsort label-9339
SELECT + 66 * - COUNT ( * ) + 30
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9340
SELECT ALL + 67 DIV + + 82 * + 66 + - 55 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL + 67 / + + 82 * + 66 + - 55 AS col1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT DISTINCT + 39 DIV + 80 + 58
----
58

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT + 39 / + 80 + 58
----
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9342
SELECT ALL + 3 DIV - - CAST( + 79 AS SIGNED ) * ( 26 ) + - 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + 3 / - - CAST ( + 79 AS INTEGER ) * ( 26 ) + - 17 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9343
SELECT DISTINCT - ( - + COALESCE ( COUNT( * ), 9, 68 + + 95 ) ) / CAST( NULL AS SIGNED ) + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT - ( - + COALESCE ( COUNT ( * ), 9, 68 + + 95 ) ) / CAST ( NULL AS INTEGER ) + 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9344
SELECT + - 19, CAST( NULL AS SIGNED ) AS col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-9344
SELECT + - 19, CAST ( NULL AS INTEGER ) AS col1
----
-19
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9345
SELECT DISTINCT + + 74 AS col2, - COUNT( + ( 39 ) ) AS col0
----
74
-1

skipif mysql # not compatible
query II rowsort label-9345
SELECT DISTINCT + + 74 AS col2, - COUNT ( + ( 39 ) ) AS col0
----
74
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT DISTINCT 39 * + CASE - 80 WHEN + 59 THEN NULL WHEN 48 + + AVG ( + CAST( NULL AS SIGNED ) ) THEN 59 / - 92 END + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT 39 * + CASE - 80 WHEN + 59 THEN NULL WHEN 48 + + AVG ( + CAST ( NULL AS INTEGER ) ) THEN 59 / - 92 END + 18 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT ALL 10 DIV + + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL 10 / + + 36 AS col0
----
0

query I rowsort
SELECT DISTINCT 6 * - + 58 - + 92 AS col0
----
-440

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL - 11 * - - 77 - ( + COUNT( * ) ) AS col0
----
-848

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL - 11 * - - 77 - ( + COUNT ( * ) ) AS col0
----
-848

query I rowsort
SELECT ALL 63 * + 83
----
5229

query I rowsort
SELECT CASE - 48 WHEN + 35 THEN - 46 WHEN + 3 - + 40 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT ALL 27 * 37 * + + MAX( ALL 95 ) AS col1
----
94905

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL 27 * 37 * + + MAX ( ALL 95 ) AS col1
----
94905

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT + COUNT( * ) * + ( - - 87 ) * - 29 col0
----
-2523

skipif mysql # not compatible
query I rowsort label-9353
SELECT + COUNT ( * ) * + ( - - 87 ) * - 29 col0
----
-2523

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9354
SELECT + 68 * - + NULLIF ( - 36, + + 19 ) + - CAST( NULL AS DECIMAL ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT + 68 * - + NULLIF ( - 36, + + 19 ) + - CAST ( NULL AS REAL ) * 52
----
NULL

query I rowsort
SELECT + 9 * 86 AS col0
----
774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9356
SELECT ALL COALESCE ( 53, 67 * COUNT( * ), 76, - 99 DIV - 25 )
----
53

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL COALESCE ( 53, 67 * COUNT ( * ), 76, - 99 / - 25 )
----
53

query I rowsort
SELECT + 26 + - 90 + ( - + 52 ) - + 50
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL 32 * COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL 32 * COUNT ( * ) AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT + 2 + - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT + 2 + - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( + - ( - 65 ) )
----
65

query I rowsort
SELECT 9 * - 36
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT - ( 96 ) + - - CASE 12 WHEN + COUNT( * ) THEN NULL WHEN 19 * COUNT( * ) + + COUNT( - COALESCE ( + 89, + 44 * 86 ) ) THEN NULL ELSE + ( 82 ) END + - 20 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9362
SELECT - ( 96 ) + - - CASE 12 WHEN + COUNT ( * ) THEN NULL WHEN 19 * COUNT ( * ) + + COUNT ( - COALESCE ( + 89, + 44 * 86 ) ) THEN NULL ELSE + ( 82 ) END + - 20 AS col2
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-9363
SELECT ALL - - 96 DIV - 3 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - - 96 / - 3 AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT 28 + COALESCE ( + CAST( NULL AS SIGNED ), 25 )
----
53

skipif mysql # not compatible
query I rowsort label-9364
SELECT 28 + COALESCE ( + CAST ( NULL AS INTEGER ), 25 )
----
53

query II rowsort
SELECT ALL ( + + 30 ) AS col0, COALESCE ( + 55, 19 + - CASE ( + 1 ) WHEN 0 THEN NULL ELSE - 83 END, - 76 ) AS col0
----
30
55

query I rowsort
SELECT ALL - - 21 + + + 21 AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT - 1 DIV ( + 36 )
----
0

skipif mysql # not compatible
query I rowsort label-9367
SELECT - 1 / ( + 36 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT ALL + 14 DIV - 28
----
0

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL + 14 / - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT + NULLIF ( COUNT( * ), COALESCE ( + 28, 3 ) + 6 / - ( - 40 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9369
SELECT + NULLIF ( COUNT ( * ), COALESCE ( + 28, 3 ) + 6 / - ( - 40 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL - SUM( + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL - SUM ( + 69 )
----
-69

query I rowsort
SELECT DISTINCT - + 99 - - - 58 AS col1
----
-157

query I rowsort
SELECT + 51 * + 99 AS col2
----
5049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9373
SELECT ALL CASE - 9 WHEN - ( + CASE + ( ( - CASE + 73 WHEN - 14 / ( 57 ) THEN 82 + 23 END ) ) WHEN COUNT( * ) THEN NULL WHEN - 71 THEN - 33 - + 67 ELSE + 11 END ) * - COALESCE ( SUM( ALL CAST( 82 AS SIGNED ) ) * 30, MAX( 25 ) ) THEN + 95 * + 8 END - COUNT( * ) * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL CASE - 9 WHEN - ( + CASE + ( ( - CASE + 73 WHEN - 14 / ( 57 ) THEN 82 + 23 END ) ) WHEN COUNT ( * ) THEN NULL WHEN - 71 THEN - 33 - + 67 ELSE + 11 END ) * - COALESCE ( SUM ( ALL CAST ( 82 AS INTEGER ) ) * 30, MAX ( 25 ) ) THEN + 95 * + 8 END - COUNT ( * ) * 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9374
SELECT + 80 col0, COUNT( * )
----
80
1

skipif mysql # not compatible
query II rowsort label-9374
SELECT + 80 col0, COUNT ( * )
----
80
1

query I rowsort
SELECT 69 + - 82
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT 8 * + + 37 + - COUNT( * )
----
295

skipif mysql # not compatible
query I rowsort label-9376
SELECT 8 * + + 37 + - COUNT ( * )
----
295

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9377
SELECT ( - CAST( + CAST( + - 92 AS DECIMAL ) AS SIGNED ) ) + - - 20 + 65 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-9377
SELECT ( - CAST ( + CAST ( + - 92 AS REAL ) AS INTEGER ) ) + - - 20 + 65 AS col1
----
177

query I rowsort
SELECT 94 * + 9 AS col2
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT COALESCE ( + + 46, SUM( ALL - 90 ) * - COUNT( * ) * + SUM( ALL - 63 ) + + COUNT( * ) ) + 7
----
53

skipif mysql # not compatible
query I rowsort label-9379
SELECT COALESCE ( + + 46, SUM ( ALL - 90 ) * - COUNT ( * ) * + SUM ( ALL - 63 ) + + COUNT ( * ) ) + 7
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9380
SELECT ALL 4 AS col0, + COUNT( - + ( - 21 ) ) AS col1
----
4
1

skipif mysql # not compatible
query II rowsort label-9380
SELECT ALL 4 AS col0, + COUNT ( - + ( - 21 ) ) AS col1
----
4
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9381
SELECT ALL CASE + 48 WHEN 72 THEN - 12 * + 24 / + ( AVG ( DISTINCT + 23 ) ) WHEN - 1 * NULLIF ( MIN( 70 ) / + 9, - 23 + COALESCE ( 6, - CASE CASE - 17 WHEN 84 THEN NULL WHEN + 68 + CASE COUNT( * ) WHEN 2 * 34 THEN 86 * - 85 ELSE - NULLIF ( 77, CAST( NULL AS SIGNED ) * - 19 + 50 * MIN( + 65 ) ) END THEN 96 END WHEN 32 * - 69 THEN NULL WHEN - 86 THEN 15 - - 48 ELSE COALESCE ( 43, + MIN( ALL - 61 ) ) END ) ) THEN NULL WHEN 70 * 98 THEN NULL END * NULLIF ( + AVG ( DISTINCT - 77 ) + - MIN( 4 ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL CASE + 48 WHEN 72 THEN - 12 * + 24 / + ( AVG ( DISTINCT + 23 ) ) WHEN - 1 * NULLIF ( MIN ( 70 ) / + 9, - 23 + COALESCE ( 6, - CASE CASE - 17 WHEN 84 THEN NULL WHEN + 68 + CASE COUNT ( * ) WHEN 2 * 34 THEN 86 * - 85 ELSE - NULLIF ( 77, CAST ( NULL AS INTEGER ) * - 19 + 50 * MIN ( + 65 ) ) END THEN 96 END WHEN 32 * - 69 THEN NULL WHEN - 86 THEN 15 - - 48 ELSE COALESCE ( 43, + MIN ( ALL - 61 ) ) END ) ) THEN NULL WHEN 70 * 98 THEN NULL END * NULLIF ( + AVG ( DISTINCT - 77 ) + - MIN ( 4 ), - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT ( 31 ) * - 82 * SUM( + 6 ) + 69 * MAX( 81 + 46 ) AS col0
----
-6489

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT ( 31 ) * - 82 * SUM ( + 6 ) + 69 * MAX ( 81 + 46 ) AS col0
----
-6489

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT DISTINCT NULLIF ( + 17, - 81 * + - MIN( ALL - 72 ) ) + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT NULLIF ( + 17, - 81 * + - MIN ( ALL - 72 ) ) + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ( - + SUM( DISTINCT - 95 ) ) * 23 AS col1
----
2185

skipif mysql # not compatible
query I rowsort label-9384
SELECT ( - + SUM ( DISTINCT - 95 ) ) * 23 AS col1
----
2185

query II rowsort
SELECT 59 AS col2, 80
----
59
80

onlyif mysql # aggregate syntax: 
query II rowsort label-9386
SELECT 19 * - 20 * + 90, COALESCE ( - 10, MIN( ALL 81 ) * NULLIF ( - MAX( + 6 ), - 20 ) ) AS col2
----
-34200
-10

skipif mysql # not compatible
query II rowsort label-9386
SELECT 19 * - 20 * + 90, COALESCE ( - 10, MIN ( ALL 81 ) * NULLIF ( - MAX ( + 6 ), - 20 ) ) AS col2
----
-34200
-10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9387
SELECT 54 * - CASE - + 56 WHEN ( - 46 ) * + CAST( NULL AS DECIMAL ) + + COUNT( * ) THEN + 75 - - COUNT( * ) END / 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT 54 * - CASE - + 56 WHEN ( - 46 ) * + CAST ( NULL AS REAL ) + + COUNT ( * ) THEN + 75 - - COUNT ( * ) END / 26 AS col0
----
NULL

query I rowsort
SELECT 84 - - + 6 col0
----
90

query I rowsort
SELECT ALL - 70 + + 57 * - + 74 + - - 5 * + + 96 * + 17 + + 38
----
3910

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT 30 - + COUNT( * ) + - COUNT( * ) * 81
----
-52

skipif mysql # not compatible
query I rowsort label-9390
SELECT 30 - + COUNT ( * ) + - COUNT ( * ) * 81
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL CASE + - 25 WHEN + MIN( - 61 ) THEN 7 - 60 / 57 END + 15 * + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL CASE + - 25 WHEN + MIN ( - 61 ) THEN 7 - 60 / 57 END + 15 * + 96 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( 29 ) * 86 AS col2
----
2494

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT DISTINCT + CASE - 85 WHEN + + COUNT( * ) - 45 THEN + 22 ELSE COUNT( * ) + - 77 END
----
-76

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT + CASE - 85 WHEN + + COUNT ( * ) - 45 THEN + 22 ELSE COUNT ( * ) + - 77 END
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-9394
SELECT DISTINCT - 40 AS col0, + ( 61 ) * ( + MIN( DISTINCT 10 ) ) + 33 * + 89 + + 68 * + 75 AS col1
----
-40
8647

skipif mysql # not compatible
query II rowsort label-9394
SELECT DISTINCT - 40 AS col0, + ( 61 ) * ( + MIN ( DISTINCT 10 ) ) + 33 * + 89 + + 68 * + 75 AS col1
----
-40
8647

query I rowsort
SELECT - 72 + - - 90
----
18

query I rowsort
SELECT - + CASE + 16 WHEN 1 THEN + - 97 WHEN + - 12 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT COUNT( * ) + + 87 - 24 * COUNT( + 12 ) + 67 * + 15
----
1069

skipif mysql # not compatible
query I rowsort label-9397
SELECT COUNT ( * ) + + 87 - 24 * COUNT ( + 12 ) + 67 * + 15
----
1069

query I rowsort
SELECT - CASE + 79 WHEN - - 84 THEN - 65 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9399
SELECT 88 DIV 22 * + ( - 70 ) * - 81 * - 64 - - 12 * 15 + COUNT( * )
----
-1451339

skipif mysql # not compatible
query I rowsort label-9399
SELECT 88 / 22 * + ( - 70 ) * - 81 * - 64 - - 12 * 15 + COUNT ( * )
----
-1451339

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9400
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 92 + - 64 AS col2, - CASE + 22 WHEN + 73 THEN NULL WHEN 52 THEN NULL WHEN 83 THEN - 2 * 63 + - 11 ELSE NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9400
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 92 + - 64 AS col2, - CASE + 22 WHEN + 73 THEN NULL WHEN 52 THEN NULL WHEN 83 THEN - 2 * 63 + - 11 ELSE NULL END AS col1
----
NULL
NULL

query I rowsort
SELECT ALL - 91 * + + 32
----
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + SUM( - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-9402
SELECT + SUM ( - 31 )
----
-31

query II rowsort
SELECT ALL - COALESCE ( 88, + + 54, 33 ) AS col2, 28 AS col2
----
-88
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9404
SELECT CAST( 9 AS SIGNED ) * + 67 AS col0
----
603

skipif mysql # not compatible
query I rowsort label-9404
SELECT CAST ( 9 AS INTEGER ) * + 67 AS col0
----
603

query I rowsort
SELECT 10 * + 19
----
190

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT 21 DIV + + 90 + 78
----
78

skipif mysql # not compatible
query I rowsort label-9406
SELECT 21 / + + 90 + 78
----
78

query I rowsort
SELECT 84 * 79
----
6636

onlyif mysql # DIV for integer division: 
query I rowsort label-9408
SELECT NULLIF ( - 69, ( 80 ) ) DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9408
SELECT NULLIF ( - 69, ( 80 ) ) / + 85 AS col1
----
0

query I rowsort
SELECT 0 + 56
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-9411
SELECT 10 * + 0 AS col0, ( - COUNT( * ) ) AS col0, + 29 AS col0
----
0
-1
29

skipif mysql # not compatible
query III rowsort label-9411
SELECT 10 * + 0 AS col0, ( - COUNT ( * ) ) AS col0, + 29 AS col0
----
0
-1
29

query I rowsort
SELECT DISTINCT + 59 * + 19
----
1121

query I rowsort
SELECT - 67 + + 4 AS col1
----
-63

query I rowsort
SELECT + 73 - - - 8 * - 23
----
257

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL + COALESCE ( 2, 98, - + 0 ) * - NULLIF ( 88, 85 * 63 + - COUNT( ALL - 46 + + 92 ) ) * + 72
----
-12672

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL + COALESCE ( 2, 98, - + 0 ) * - NULLIF ( 88, 85 * 63 + - COUNT ( ALL - 46 + + 92 ) ) * + 72
----
-12672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT 50 * + + 57 + 5 * + 64 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT 50 * + + 57 + 5 * + 64 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + 49 + - + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-9417
SELECT + 49 + - + COUNT ( * )
----
48

query III rowsort
SELECT 31 AS col2, 55 + + 10 + + 67 AS col2, + 90
----
31
132
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT + COUNT( * ) * + ( - + SUM( DISTINCT - 32 ) )
----
32

skipif mysql # not compatible
query I rowsort label-9419
SELECT + COUNT ( * ) * + ( - + SUM ( DISTINCT - 32 ) )
----
32

query I rowsort
SELECT ALL ( + - 91 ) + + 40 * 74
----
2869

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT - COUNT( * ) * + - 19 + - + 33 - + 42 + - ( + SUM( 24 ) ) * + 12 AS col2
----
-344

skipif mysql # not compatible
query I rowsort label-9421
SELECT - COUNT ( * ) * + - 19 + - + 33 - + 42 + - ( + SUM ( 24 ) ) * + 12 AS col2
----
-344

query II rowsort
SELECT 39, - ( - 53 ) + + + COALESCE ( 4, - + 91 ) AS col1
----
39
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9423
SELECT ALL - 58 AS col2, + 8 + + 67 + - COUNT( * ) AS col2
----
-58
74

skipif mysql # not compatible
query II rowsort label-9423
SELECT ALL - 58 AS col2, + 8 + + 67 + - COUNT ( * ) AS col2
----
-58
74

query I rowsort
SELECT ALL + 8 + - 12 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT - SUM( ALL + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-9425
SELECT - SUM ( ALL + 64 )
----
-64

query I rowsort
SELECT + 3 + + 89
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT - + 58 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-9427
SELECT - + 58 / - 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + + 53 + 71 * + ( - + 67 ) - - - ( - + COUNT( * ) ) col2
----
-4703

skipif mysql # not compatible
query I rowsort label-9428
SELECT + + 53 + 71 * + ( - + 67 ) - - - ( - + COUNT ( * ) ) col2
----
-4703

query I rowsort
SELECT ALL - 47 * - 38 * - - 85 AS col1
----
151810

query I rowsort
SELECT - 65 * - 31 col2
----
2015

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT - ( CASE + ( + 72 ) WHEN + COUNT( * ) * - 78 + - 15 * - 49 THEN 12 + 50 WHEN - 98 * COUNT( * ) + 0 THEN - 41 / + 11 + 77 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT - ( CASE + ( + 72 ) WHEN + COUNT ( * ) * - 78 + - 15 * - 49 THEN 12 + 50 WHEN - 98 * COUNT ( * ) + 0 THEN - 41 / + 11 + 77 END ) AS col1
----
NULL

query I rowsort
SELECT + - 78 + + 72 + - 87 * 77 * - 59
----
395235

query II rowsort
SELECT + 83, + 64 col2
----
83
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9434
SELECT DISTINCT CAST( NULL AS SIGNED ) * CASE - + COALESCE ( - COUNT( * ), - 67 * + 45 + 28 - + AVG ( 68 ) ) WHEN + 7 + 7 THEN - 40 / 82 - 71 * + 5 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT CAST ( NULL AS INTEGER ) * CASE - + COALESCE ( - COUNT ( * ), - 67 * + 45 + 28 - + AVG ( 68 ) ) WHEN + 7 + 7 THEN - 40 / 82 - 71 * + 5 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT + COUNT( + 98 ) * 21 * ( + COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-9435
SELECT + COUNT ( + 98 ) * 21 * ( + COUNT ( * ) )
----
21

query I rowsort
SELECT DISTINCT + 65 - ( 40 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL COUNT( - 10 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL COUNT ( - 10 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9438
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) * + + 50 / 39 * + + 4 * + 74 + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) * + + 50 / 39 * + + 4 * + 74 + - 86
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9439
SELECT - - 86, - 54 DIV - + 70 AS col0
----
86
0

skipif mysql # not compatible
query II rowsort label-9439
SELECT - - 86, - 54 / - + 70 AS col0
----
86
0

query I rowsort
SELECT ALL + NULLIF ( + 46, - 35 )
----
46

query II rowsort
SELECT 81 AS col2, 93 + - 76 * 91
----
81
-6823

query I rowsort
SELECT ALL + ( + + 42 ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9443
SELECT 44 / CAST( NULL AS SIGNED ) * MIN( DISTINCT + + 75 ) * + - MIN( DISTINCT 43 ) + + 65 + 78 * CAST( COALESCE ( 3, + 2 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT 44 / CAST ( NULL AS INTEGER ) * MIN ( DISTINCT + + 75 ) * + - MIN ( DISTINCT 43 ) + + 65 + 78 * CAST ( COALESCE ( 3, + 2 ) AS REAL )
----
NULL

query I rowsort
SELECT ( - ( 35 ) ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT + ( COUNT( * ) ) * 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-9445
SELECT + ( COUNT ( * ) ) * 11 AS col0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9446
SELECT - 39 * - ( + 20 ) DIV - - COUNT( * )
----
780

skipif mysql # not compatible
query I rowsort label-9446
SELECT - 39 * - ( + 20 ) / - - COUNT ( * )
----
780

query I rowsort
SELECT + ( - - 22 ) AS col2
----
22

query I rowsort
SELECT + 86 - 9 AS col1
----
77

query I rowsort
SELECT + 3 * + - 99
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL + COUNT( * ) * + - COUNT( * ) + - - 26 + 14 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) + - - 26 + 14 AS col2
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-9451
SELECT + 67 DIV + - 30, 12 col0
----
-2
12

skipif mysql # not compatible
query II rowsort label-9451
SELECT + 67 / + - 30, 12 col0
----
-2
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9452
SELECT 45 * - 11 * - COUNT( * ) * - CAST( - + 73 AS SIGNED ) + + + 87 + - 14 DIV NULLIF ( 83, NULLIF ( + 41, 20 ) * - 55 )
----
36222

skipif mysql # not compatible
query I rowsort label-9452
SELECT 45 * - 11 * - COUNT ( * ) * - CAST ( - + 73 AS INTEGER ) + + + 87 + - 14 / NULLIF ( 83, NULLIF ( + 41, 20 ) * - 55 )
----
36222

query I rowsort
SELECT + 44 * + 84
----
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9454
SELECT - COUNT( * ) * - CASE + ( - NULLIF ( + 34, - + 11 ) ) WHEN 51 + - 24 THEN NULL WHEN ( ( 69 ) ) THEN NULL ELSE 29 END DIV + 84 + - 0
----
0

skipif mysql # not compatible
query I rowsort label-9454
SELECT - COUNT ( * ) * - CASE + ( - NULLIF ( + 34, - + 11 ) ) WHEN 51 + - 24 THEN NULL WHEN ( ( 69 ) ) THEN NULL ELSE 29 END / + 84 + - 0
----
0

query I rowsort
SELECT NULLIF ( + 60, + 60 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9456
SELECT ALL - COUNT( * ) * + 22 DIV + MAX( + 44 ) * - ( - 54 ) + + 10 - + 23 DIV + 55 + ( 89 + COUNT( * ) ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - COUNT ( * ) * + 22 / + MAX ( + 44 ) * - ( - 54 ) + + 10 - + 23 / + 55 + ( 89 + COUNT ( * ) ) AS col1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT ALL + AVG ( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 13 * + - ( + 66 ) col1
----
858

query I rowsort
SELECT DISTINCT + ( - 79 ) AS col0
----
-79

query I rowsort
SELECT ALL + ( + 26 ) * - 2 + + 1 * - + 15
----
-67

query I rowsort
SELECT ALL 1 * + 94 - 90
----
4

query I rowsort
SELECT - 96 * + + 12 AS col0
----
-1152

query I rowsort
SELECT DISTINCT + 51 * + - NULLIF ( + 98, 16 ) * - 66
----
329868

query I rowsort
SELECT - 63 * - + 31
----
1953

query I rowsort
SELECT - 76 - - - 42 AS col0
----
-118

query I rowsort
SELECT + NULLIF ( - - 2, + + 66 * - 41 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT + - 97 * + - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9467
SELECT + - 97 * + - COUNT ( * ) AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT ALL - - CAST( NULL AS SIGNED ) / ( - 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL - - CAST ( NULL AS INTEGER ) / ( - 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT - ( + + COUNT( * ) ) * MIN( + 31 ) * 99 / - CASE - 12 WHEN 38 * + 46 + 40 THEN + NULLIF ( 72, + COALESCE ( - 29, - 22 / 1, - 46 ) + 67 ) WHEN - ( + 27 ) THEN NULL ELSE NULL END + ( - 54 + + 52 ) * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT - ( + + COUNT ( * ) ) * MIN ( + 31 ) * 99 / - CASE - 12 WHEN 38 * + 46 + 40 THEN + NULLIF ( 72, + COALESCE ( - 29, - 22 / 1, - 46 ) + 67 ) WHEN - ( + 27 ) THEN NULL ELSE NULL END + ( - 54 + + 52 ) * + 71 AS col0
----
NULL

query I rowsort
SELECT - - ( - + 52 ) + 46
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT + 39 - + MAX( DISTINCT + 47 ) + + 87 col0
----
79

skipif mysql # not compatible
query I rowsort label-9471
SELECT + 39 - + MAX ( DISTINCT + 47 ) + + 87 col0
----
79

query I rowsort
SELECT DISTINCT - 42 * + + 95
----
-3990

query I rowsort
SELECT - 83 + 72 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + CASE - 35 WHEN + - CASE - ( + ( - 76 ) ) WHEN - 43 THEN - 40 * 78 ELSE NULL END THEN - ( - ( 68 ) ) * ( COUNT( * ) * 0 ) WHEN COUNT( * ) + 7 THEN NULL END - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT + CASE - 35 WHEN + - CASE - ( + ( - 76 ) ) WHEN - 43 THEN - 40 * 78 ELSE NULL END THEN - ( - ( 68 ) ) * ( COUNT ( * ) * 0 ) WHEN COUNT ( * ) + 7 THEN NULL END - 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9475
SELECT + + 14 DIV NULLIF ( + 16, 98 ) * COALESCE ( 10, - COALESCE ( COUNT( * ), 40 ) ) DIV 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9475
SELECT + + 14 / NULLIF ( + 16, 98 ) * COALESCE ( 10, - COALESCE ( COUNT ( * ), 40 ) ) / 16 AS col1
----
0

query II rowsort
SELECT DISTINCT 26 AS col0, 4 - 33
----
26
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9477
SELECT DISTINCT 27 DIV + 58 * + 37 + + + 44 + - 37 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT 27 / + 58 * + 37 + + + 44 + - 37 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9478
SELECT 58 DIV + 60 * 54 + + 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-9478
SELECT 58 / + 60 * 54 + + 29 AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9479
SELECT + 4 DIV - COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9479
SELECT + 4 / - COUNT ( * ) AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9480
SELECT ALL 2 DIV COUNT( * ) + + 79 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL 2 / COUNT ( * ) + + 79 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT ALL MIN( - 32 ) / - - 62 + + CASE + 58 WHEN 39 THEN 99 ELSE NULL END - - 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL MIN ( - 32 ) / - - 62 + + CASE + 58 WHEN 39 THEN 99 ELSE NULL END - - 57 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9482
SELECT ALL + 92 / 58 + + CAST( NULL AS DECIMAL ) + - 43 * - + 36 / - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL + 92 / 58 + + CAST ( NULL AS REAL ) + - 43 * - + 36 / - 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9483
SELECT 50 * 10 DIV + COUNT( * ) + + + 17 + ( + - 71 )
----
446

skipif mysql # not compatible
query I rowsort label-9483
SELECT 50 * 10 / + COUNT ( * ) + + + 17 + ( + - 71 )
----
446

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT NULLIF ( 36, + 85 ) * - + COUNT( * ) + - 6 * + SUM( DISTINCT - 35 )
----
174

skipif mysql # not compatible
query I rowsort label-9484
SELECT NULLIF ( 36, + 85 ) * - + COUNT ( * ) + - 6 * + SUM ( DISTINCT - 35 )
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9485
SELECT - 7 * - COUNT( 93 ) * - + 46 * 57 + - 45 * - 36 * + 64 + CASE - ( + 61 ) WHEN + 22 THEN + 86 + - 1 * 33 WHEN + 93 * 26 + CAST( - 28 AS SIGNED ) THEN - ( 86 ) + + 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT - 7 * - COUNT ( 93 ) * - + 46 * 57 + - 45 * - 36 * + 64 + CASE - ( + 61 ) WHEN + 22 THEN + 86 + - 1 * 33 WHEN + 93 * 26 + CAST ( - 28 AS INTEGER ) THEN - ( 86 ) + + 48 END
----
NULL

query II rowsort
SELECT + 99, 6 AS col1
----
99
6

query I rowsort
SELECT 45 * + - 63 * - 82
----
232470

query I rowsort
SELECT ALL 56 + 66 AS col2
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-9489
SELECT COUNT( * ) + + + NULLIF ( + 92, 2 ), + 71 * + + 72 + + 28 AS col2
----
93
5140

skipif mysql # not compatible
query II rowsort label-9489
SELECT COUNT ( * ) + + + NULLIF ( + 92, 2 ), + 71 * + + 72 + + 28 AS col2
----
93
5140

query I rowsort
SELECT 28 * + + 70 AS col0
----
1960

query I rowsort
SELECT 35 + - + CASE - + 33 WHEN + 85 THEN - - 68 ELSE + 0 END AS col2
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9492
SELECT ALL - COUNT( * ) AS col1, 18
----
-1
18

skipif mysql # not compatible
query II rowsort label-9492
SELECT ALL - COUNT ( * ) AS col1, 18
----
-1
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9493
SELECT ALL CASE + + COUNT( * ) WHEN - - MAX( - 95 ) + + 4 THEN NULL WHEN 42 / + COUNT( * ) + ( - CAST( + COUNT( * ) AS SIGNED ) ) THEN CASE - 39 WHEN COALESCE ( 74, + 25 ) THEN NULL WHEN 22 - 67 THEN NULL ELSE ( 62 ) + 63 END - COUNT( * ) * - NULLIF ( COUNT( * ), 27 ) WHEN 7 THEN NULL END + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL CASE + + COUNT ( * ) WHEN - - MAX ( - 95 ) + + 4 THEN NULL WHEN 42 / + COUNT ( * ) + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) THEN CASE - 39 WHEN COALESCE ( 74, + 25 ) THEN NULL WHEN 22 - 67 THEN NULL ELSE ( 62 ) + 63 END - COUNT ( * ) * - NULLIF ( COUNT ( * ), 27 ) WHEN 7 THEN NULL END + 48
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT ALL 55 - COALESCE ( + 16, - 21 + 52 * 53 ) DIV 85 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL 55 - COALESCE ( + 16, - 21 + 52 * 53 ) / 85 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9495
SELECT + ( + 92 ) * + 88 + + - 65 - - COUNT( * ) + - CAST( - ( COUNT( * ) ) AS SIGNED ) AS col0
----
8033

skipif mysql # not compatible
query I rowsort label-9495
SELECT + ( + 92 ) * + 88 + + - 65 - - COUNT ( * ) + - CAST ( - ( COUNT ( * ) ) AS INTEGER ) AS col0
----
8033

query I rowsort
SELECT DISTINCT 50 * - - 32 AS col1
----
1600

query I rowsort
SELECT - 24 + - 12 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9498
SELECT - 94 - + + CAST( 77 AS SIGNED )
----
-171

skipif mysql # not compatible
query I rowsort label-9498
SELECT - 94 - + + CAST ( 77 AS INTEGER )
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT 8 * - 35 + + + 74 / + + 23 * 76 - - 16 * + + 60 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT 8 * - 35 + + + 74 / + + 23 * 76 - - 16 * + + 60 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT - COUNT( * ) + + + 88 - + 23 - + ( 66 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9500
SELECT - COUNT ( * ) + + + 88 - + 23 - + ( 66 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL COUNT( ALL + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL COUNT ( ALL + 18 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9502
SELECT ( + 70 ) DIV + 81 AS col1, 65 AS col2
----
0
65

skipif mysql # not compatible
query II rowsort label-9502
SELECT ( + 70 ) / + 81 AS col1, 65 AS col2
----
0
65

onlyif mysql # aggregate syntax: 
query II rowsort label-9503
SELECT - 12 AS col2, MIN( ALL - 42 )
----
-12
-42

skipif mysql # not compatible
query II rowsort label-9503
SELECT - 12 AS col2, MIN ( ALL - 42 )
----
-12
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT + 74 + 83 * + ( COUNT( * ) ) + 47 AS col0
----
204

skipif mysql # not compatible
query I rowsort label-9504
SELECT + 74 + 83 * + ( COUNT ( * ) ) + 47 AS col0
----
204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9505
SELECT ALL - 46 * COALESCE ( - + 93, 15 * + - CAST( NULL AS SIGNED ), + - 83 + - - COUNT( * ) )
----
4278

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL - 46 * COALESCE ( - + 93, 15 * + - CAST ( NULL AS INTEGER ), + - 83 + - - COUNT ( * ) )
----
4278

query I rowsort
SELECT - 24 + ( 94 ) + - COALESCE ( 79, + - 26 - 6 + 9 ) * 69
----
-5381

query I rowsort
SELECT 46 + + 93
----
139

query I rowsort
SELECT ALL COALESCE ( 37, - ( + 47 ) )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9509
SELECT - COUNT( * ), + 32 * + COUNT( * ) - 33 AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9509
SELECT - COUNT ( * ), + 32 * + COUNT ( * ) - 33 AS col1
----
-1
-1

query II rowsort
SELECT 79 AS col1, + 98
----
79
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT + MAX( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + MAX ( + 94 )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9512
SELECT ALL 14 AS col2, NULLIF ( 61, COALESCE ( - 10, + + 95 + + - 60 * 92 + COUNT( * ) * + COALESCE ( 91 * - 21 + COALESCE ( + 54, 63 * 33, + 51 + MIN( 91 ), 46 ), - 13 ) ) ) + + 49
----
14
110

skipif mysql # not compatible
query II rowsort label-9512
SELECT ALL 14 AS col2, NULLIF ( 61, COALESCE ( - 10, + + 95 + + - 60 * 92 + COUNT ( * ) * + COALESCE ( 91 * - 21 + COALESCE ( + 54, 63 * 33, + 51 + MIN ( 91 ), 46 ), - 13 ) ) ) + + 49
----
14
110

query I rowsort
SELECT DISTINCT - 44 + + + 47 + 87 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT 13 * + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9514
SELECT 13 * + COUNT ( * ) AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9515
SELECT ALL CAST( 33 AS SIGNED ) + + 45 + 92, 89 AS col0
----
170
89

skipif mysql # not compatible
query II rowsort label-9515
SELECT ALL CAST ( 33 AS INTEGER ) + + 45 + 92, 89 AS col0
----
170
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9516
SELECT DISTINCT - 0 + + COALESCE ( + ( - 72 ), + + COALESCE ( - 76, + 76 + + 44 DIV + - 15 ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT - 0 + + COALESCE ( + ( - 72 ), + + COALESCE ( - 76, + 76 + + 44 / + - 15 ) ) AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9517
SELECT 63 * - 69 * - 42 - + - SUM( DISTINCT - - 22 ) + + 81 + - + COUNT( * ) - + 55 + CASE + 12 WHEN + CAST( NULL AS SIGNED ) THEN - 99 END * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT 63 * - 69 * - 42 - + - SUM ( DISTINCT - - 22 ) + + 81 + - + COUNT ( * ) - + 55 + CASE + 12 WHEN + CAST ( NULL AS INTEGER ) THEN - 99 END * - 10
----
NULL

query I rowsort
SELECT 39 * + 72
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT COUNT( * ) + + 26 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9519
SELECT COUNT ( * ) + + 26 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9520
SELECT ALL CAST( NULL AS SIGNED ) + 29 / - - AVG ( ALL 26 ) AS col2, 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-9520
SELECT ALL CAST ( NULL AS INTEGER ) + 29 / - - AVG ( ALL 26 ) AS col2, 80
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT 29 * - - COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-9521
SELECT 29 * - - COUNT ( * ) AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9522
SELECT ALL + 82 - + COUNT( * ) - + CAST( + ( 17 ) AS SIGNED ) + - - CAST( + 56 AS SIGNED )
----
120

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL + 82 - + COUNT ( * ) - + CAST ( + ( 17 ) AS INTEGER ) + - - CAST ( + 56 AS INTEGER )
----
120

query I rowsort
SELECT ALL 2 - + 68 * AVG ( ALL - 33 ) - + 93 * CASE + 60 WHEN + 88 + NULLIF ( 86, 50 ) / 32 THEN 38 - 88 END / - 20
----
NULL

query I rowsort
SELECT DISTINCT 14 * + COALESCE ( - - 35, - + 69 ) col2
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT 63 * + COALESCE ( + COUNT( * ), 66 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9525
SELECT 63 * + COALESCE ( + COUNT ( * ), 66 ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT COUNT( * ) * + ( - - 37 ) + - 10 + + 51 - + 47 * + 48
----
-2178

skipif mysql # not compatible
query I rowsort label-9526
SELECT COUNT ( * ) * + ( - - 37 ) + - 10 + + 51 - + 47 * + 48
----
-2178

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT + 92 + + 37 + - COUNT( * ) + - + 53
----
75

skipif mysql # not compatible
query I rowsort label-9527
SELECT + 92 + + 37 + - COUNT ( * ) + - + 53
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9528
SELECT COUNT( * ) * 34 + CAST( - 24 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-9528
SELECT COUNT ( * ) * 34 + CAST ( - 24 AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT + COALESCE ( + 47, + - COALESCE ( - 93, + COUNT( * ) ) + - 6 ) * 19 * + + 79
----
70547

skipif mysql # not compatible
query I rowsort label-9529
SELECT + COALESCE ( + 47, + - COALESCE ( - 93, + COUNT ( * ) ) + - 6 ) * 19 * + + 79
----
70547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT + COALESCE ( CAST( NULL AS SIGNED ), - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9530
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), - 35 ) AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT - MAX( DISTINCT CAST( NULL AS SIGNED ) ) * 38 / - AVG ( DISTINCT - - 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * 38 / - AVG ( DISTINCT - - 9 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 19 * 90
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + COALESCE ( MAX( ALL + ( + 5 ) ), - 24 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9533
SELECT + COALESCE ( MAX ( ALL + ( + 5 ) ), - 24 ) AS col2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9534
SELECT DISTINCT - 8 * COALESCE ( + - 53, - NULLIF ( - + 33, - COUNT( * ) + - + 84 + + 53 * - + COUNT( * ) + + 46 ) * 40 + NULLIF ( + CASE - 0 WHEN 14 + COALESCE ( - 37, 19 + - 84 ) * - 41 THEN NULL WHEN 7 THEN 73 + - 25 DIV ( - COUNT( * ) * 37 ) WHEN - 82 THEN NULL END + 60, + 85 ) ) AS col0
----
424

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT - 8 * COALESCE ( + - 53, - NULLIF ( - + 33, - COUNT ( * ) + - + 84 + + 53 * - + COUNT ( * ) + + 46 ) * 40 + NULLIF ( + CASE - 0 WHEN 14 + COALESCE ( - 37, 19 + - 84 ) * - 41 THEN NULL WHEN 7 THEN 73 + - 25 / ( - COUNT ( * ) * 37 ) WHEN - 82 THEN NULL END + 60, + 85 ) ) AS col0
----
424

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9535
SELECT + 38 + - - 58 + - + COUNT( * ) * 57 * - COALESCE ( + 92, + 96, 75 ) + 40 DIV 6
----
5346

skipif mysql # not compatible
query I rowsort label-9535
SELECT + 38 + - - 58 + - + COUNT ( * ) * 57 * - COALESCE ( + 92, + 96, 75 ) + 40 / 6
----
5346

onlyif mysql # DIV for integer division: 
query I rowsort label-9536
SELECT + 65 DIV 35 * 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9536
SELECT + 65 / 35 * 24 AS col2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT 61 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-9537
SELECT 61 / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT - 74 - - COUNT( * ) + - 70
----
-143

skipif mysql # not compatible
query I rowsort label-9538
SELECT - 74 - - COUNT ( * ) + - 70
----
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-9539
SELECT ALL + - 50 DIV 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL + - 50 / 80 AS col2
----
0

query I rowsort
SELECT ALL - + 87 + ( - 39 )
----
-126

query I rowsort
SELECT ALL 58 + - 56 col1
----
2

query I rowsort
SELECT 13 + - 66 col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9543
SELECT - NULLIF ( + 64, - + 71 ), COUNT( * ) AS col2
----
-64
1

skipif mysql # not compatible
query II rowsort label-9543
SELECT - NULLIF ( + 64, - + 71 ), COUNT ( * ) AS col2
----
-64
1

query I rowsort
SELECT + 27 + - + 41 + + 78 AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9545
SELECT - 9 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9545
SELECT - 9 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL - 95 + COUNT( * ) - ( - + COUNT( * ) ) + + - 35 * 59 * - COUNT( * ) * + 84 + NULLIF ( + 79, 17 )
----
173446

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL - 95 + COUNT ( * ) - ( - + COUNT ( * ) ) + + - 35 * 59 * - COUNT ( * ) * + 84 + NULLIF ( + 79, 17 )
----
173446

query I rowsort
SELECT - 21 * + - 72
----
1512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9548
SELECT DISTINCT 44 - + - COUNT( DISTINCT 40 ) + - 10 DIV 61 col0
----
45

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT 44 - + - COUNT ( DISTINCT 40 ) + - 10 / 61 col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9549
SELECT ALL + CAST( - ( - COUNT( * ) ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) col0
----
1

query I rowsort
SELECT ALL + ( - 61 ) * + + 57
----
-3477

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT - COUNT( * ) * + 33 * + - 80 col0
----
2640

skipif mysql # not compatible
query I rowsort label-9551
SELECT - COUNT ( * ) * + 33 * + - 80 col0
----
2640

onlyif mysql # DIV for integer division: 
query I rowsort label-9552
SELECT DISTINCT + 51 DIV - 23
----
-2

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT + 51 / - 23
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9553
SELECT + COUNT( * ) AS col2, 25 DIV + + 71 DIV 61 * + ( + 94 ) + - ( - 19 )
----
1
19

skipif mysql # not compatible
query II rowsort label-9553
SELECT + COUNT ( * ) AS col2, 25 / + + 71 / 61 * + ( + 94 ) + - ( - 19 )
----
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT ALL + 31 * COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL + 31 * COUNT ( * ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT - - 25 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9555
SELECT - - 25 / 64 AS col1
----
0

query I rowsort
SELECT + 90 * - 83
----
-7470

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9557
SELECT - 29 + 45 - + CAST( NULL AS DECIMAL ) + 58 + + 28 / 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT - 29 + 45 - + CAST ( NULL AS REAL ) + 58 + + 28 / 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT ALL 73 * + MAX( - 13 )
----
-949

skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL 73 * + MAX ( - 13 )
----
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT - ( - + 71 ) + - SUM( DISTINCT - + 70 )
----
141

skipif mysql # not compatible
query I rowsort label-9559
SELECT - ( - + 71 ) + - SUM ( DISTINCT - + 70 )
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-9560
SELECT ALL + - 12, - COUNT( * ) + + + 12 AS col0
----
-12
11

skipif mysql # not compatible
query II rowsort label-9560
SELECT ALL + - 12, - COUNT ( * ) + + + 12 AS col0
----
-12
11

query I rowsort
SELECT ALL + 70 * 48 AS col0
----
3360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9562
SELECT DISTINCT + CAST( - - ( 34 ) AS SIGNED ) AS col2, MIN( DISTINCT - ( + 0 ) ) col2
----
34
0

skipif mysql # not compatible
query II rowsort label-9562
SELECT DISTINCT + CAST ( - - ( 34 ) AS INTEGER ) AS col2, MIN ( DISTINCT - ( + 0 ) ) col2
----
34
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9563
SELECT CAST( 74 AS SIGNED ) * + COALESCE ( - 18, + 35 ) * + 58 * - + 29 - - 82 AS col2
----
2240506

skipif mysql # not compatible
query I rowsort label-9563
SELECT CAST ( 74 AS INTEGER ) * + COALESCE ( - 18, + 35 ) * + 58 * - + 29 - - 82 AS col2
----
2240506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT ALL + - CAST( + + 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + - CAST ( + + 34 AS INTEGER ) AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9565
SELECT - - 24 * + AVG ( - 68 ) + 77 + - + 63 + 49 - - 78 * + COUNT( DISTINCT 76 ) - - - 68 + ( CASE - 42 WHEN - 36 + + 92 * - 71 THEN + CASE 10 WHEN + 71 THEN + 48 END WHEN 82 THEN 11 + + 8 END ) * - CASE CAST( NULL AS DECIMAL ) * - 53 - COUNT( * ) WHEN ( 12 ) THEN + 71 * - 41 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT - - 24 * + AVG ( - 68 ) + 77 + - + 63 + 49 - - 78 * + COUNT ( DISTINCT 76 ) - - - 68 + ( CASE - 42 WHEN - 36 + + 92 * - 71 THEN + CASE 10 WHEN + 71 THEN + 48 END WHEN 82 THEN 11 + + 8 END ) * - CASE CAST ( NULL AS REAL ) * - 53 - COUNT ( * ) WHEN ( 12 ) THEN + 71 * - 41 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT + - 18 + - + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-9566
SELECT + - 18 + - + COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT + COUNT( ALL + - 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9567
SELECT + COUNT ( ALL + - 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9568
SELECT - 44 * + MIN( - 87 ) + ( - - CASE 41 WHEN + - COUNT( * ) * - 30 THEN - + 73 + - 55 DIV 62 WHEN NULLIF ( + MIN( + 90 ), 51 ) + COALESCE ( - 89 - 9, ( 73 ) + - 81 ) THEN NULL WHEN 78 DIV 80 + 41 THEN NULL ELSE - 76 + - 61 * MIN( 4 + - 29 * - 92 ) END ) * + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9568
SELECT - 44 * + MIN ( - 87 ) + ( - - CASE 41 WHEN + - COUNT ( * ) * - 30 THEN - + 73 + - 55 / 62 WHEN NULLIF ( + MIN ( + 90 ), 51 ) + COALESCE ( - 89 - 9, ( 73 ) + - 81 ) THEN NULL WHEN 78 / 80 + 41 THEN NULL ELSE - 76 + - 61 * MIN ( 4 + - 29 * - 92 ) END ) * + 75 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9569
SELECT DISTINCT + - 81 + - CAST( 68 AS SIGNED ) AS col2, 41 - CAST( - 77 AS SIGNED ) + + 89
----
-149
207

skipif mysql # not compatible
query II rowsort label-9569
SELECT DISTINCT + - 81 + - CAST ( 68 AS INTEGER ) AS col2, 41 - CAST ( - 77 AS INTEGER ) + + 89
----
-149
207

query I rowsort
SELECT ALL 3 + + - 20 + - - 73
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT + MIN( + 27 ) + + + 46 * + MAX( DISTINCT - 79 ) AS col1, + 5 * 34 * SUM( - 74 )
----
-3607
-12580

skipif mysql # not compatible
query II rowsort label-9571
SELECT + MIN ( + 27 ) + + + 46 * + MAX ( DISTINCT - 79 ) AS col1, + 5 * 34 * SUM ( - 74 )
----
-3607
-12580

query I rowsort
SELECT ALL 42 + 23 AS col0
----
65

query II rowsort
SELECT DISTINCT + 22, - 67 AS col1
----
22
-67

query I rowsort
SELECT ALL - 72 + - 95
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9575
SELECT + ( - 49 ) * - - CAST( - COUNT( * ) AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-9575
SELECT + ( - 49 ) * - - CAST ( - COUNT ( * ) AS INTEGER )
----
49

query I rowsort
SELECT + 57 + + 18 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT - NULLIF ( - + 72, COUNT( * ) / + + 77 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-9577
SELECT - NULLIF ( - + 72, COUNT ( * ) / + + 77 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT + 33 + - COUNT( * ) * - 76
----
109

skipif mysql # not compatible
query I rowsort label-9578
SELECT + 33 + - COUNT ( * ) * - 76
----
109

query II rowsort
SELECT ALL 29 AS col0, 58
----
29
58

query I rowsort
SELECT + 21 * + 24 * - 34 * + - 96 AS col1
----
1645056

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL COUNT( 91 )
----
1

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL COUNT ( 91 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9582
SELECT ALL 39 AS col1, - 29 * - COUNT( * )
----
39
29

skipif mysql # not compatible
query II rowsort label-9582
SELECT ALL 39 AS col1, - 29 * - COUNT ( * )
----
39
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT + 15 + - COUNT( * ) + + + 85 * + 0 + - - 16 * - 71 * - COUNT( * ) * + + COALESCE ( - ( + + ( 96 ) ), - 91 + ( 32 ) ) * 61 AS col1
----
-6652402

skipif mysql # not compatible
query I rowsort label-9583
SELECT + 15 + - COUNT ( * ) + + + 85 * + 0 + - - 16 * - 71 * - COUNT ( * ) * + + COALESCE ( - ( + + ( 96 ) ), - 91 + ( 32 ) ) * 61 AS col1
----
-6652402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9584
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) DIV + 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) / + 54 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9585
SELECT ALL - 64 * + ( + 1 ) * - + MIN( + ( - 0 ) ), - COUNT( + CAST( NULL AS SIGNED ) ) * + - 16 AS col2, + COUNT( * ) AS col1
----
0
0
1

skipif mysql # not compatible
query III rowsort label-9585
SELECT ALL - 64 * + ( + 1 ) * - + MIN ( + ( - 0 ) ), - COUNT ( + CAST ( NULL AS INTEGER ) ) * + - 16 AS col2, + COUNT ( * ) AS col1
----
0
0
1

query I rowsort
SELECT - 67 * + ( - 44 )
----
2948

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL COUNT( DISTINCT - 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL COUNT ( DISTINCT - 19 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT + 37 - MAX( ALL + + 71 )
----
-34

skipif mysql # not compatible
query I rowsort label-9588
SELECT + 37 - MAX ( ALL + + 71 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL + 65 * - COALESCE ( + 9, + - 37, - MIN( DISTINCT 44 ) ) AS col2
----
-585

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL + 65 * - COALESCE ( + 9, + - 37, - MIN ( DISTINCT 44 ) ) AS col2
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT + 31 * COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9590
SELECT + 31 * COUNT ( * ) AS col0
----
31

query II rowsort
SELECT + 16 AS col0, 90 + + 32
----
16
122

query II rowsort
SELECT ALL 88 * + - 99 AS col0, + 34
----
-8712
34

query I rowsort
SELECT DISTINCT + - 33 * 73 AS col2
----
-2409

onlyif mysql # DIV for integer division: 
query I rowsort label-9594
SELECT ALL 71 DIV - 88 + - 56 * + 79 AS col0
----
-4424

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL 71 / - 88 + - 56 * + 79 AS col0
----
-4424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT ALL + CAST( NULL AS SIGNED ) / + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL + CAST ( NULL AS INTEGER ) / + 42
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9596
SELECT - + 13 / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT - + 13 / + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9597
SELECT ALL - 97 DIV 71 + - - 45 * - ( + 18 )
----
-811

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL - 97 / 71 + - - 45 * - ( + 18 )
----
-811

query I rowsort
SELECT - 93 * 25
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + + ( + - 73 ) * - NULLIF ( - - ( - 72 ), - 95 * - COUNT( * ) ) + - - 64
----
-5192

skipif mysql # not compatible
query I rowsort label-9599
SELECT + + ( + - 73 ) * - NULLIF ( - - ( - 72 ), - 95 * - COUNT ( * ) ) + - - 64
----
-5192

query II rowsort
SELECT - 25 AS col2, - 82 AS col1
----
-25
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9601
SELECT 22 * + 76 - - + 68 * - + 83 + ( - 76 ) / - 97 + - + 20 - - COUNT( * ) + + CAST( NULL AS SIGNED ) / 18 * - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT 22 * + 76 - - + 68 * - + 83 + ( - 76 ) / - 97 + - + 20 - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) / 18 * - 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9602
SELECT ALL + + COUNT( * ) DIV - 36 + - ( 14 ) + + 12 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + + COUNT ( * ) / - 36 + - ( 14 ) + + 12 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9603
SELECT DISTINCT + 25 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT + 25 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 79 * + 44 + + 67 * - 73 AS col1
----
-1415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9605
SELECT ALL - - 16 * + + 95, - ( - CASE + COUNT( + ( 71 ) ) WHEN + 2 THEN NULL ELSE + 31 * + + CAST( NULL AS SIGNED ) / 24 / CAST( - CAST( + COALESCE ( COUNT( * ), 11, COUNT( * ) - 4 * - 39, 28 * ( 41 ) ) AS DECIMAL ) AS SIGNED ) END ) AS col2
----
1520
NULL

skipif mysql # not compatible
query II rowsort label-9605
SELECT ALL - - 16 * + + 95, - ( - CASE + COUNT ( + ( 71 ) ) WHEN + 2 THEN NULL ELSE + 31 * + + CAST ( NULL AS INTEGER ) / 24 / CAST ( - CAST ( + COALESCE ( COUNT ( * ), 11, COUNT ( * ) - 4 * - 39, 28 * ( 41 ) ) AS REAL ) AS INTEGER ) END ) AS col2
----
1520
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9606
SELECT - - 87 DIV - 86
----
-1

skipif mysql # not compatible
query I rowsort label-9606
SELECT - - 87 / - 86
----
-1

query I rowsort
SELECT DISTINCT - - 66 * - 81
----
-5346

query I rowsort
SELECT ALL + - 4 + + - 77 * + 17
----
-1313

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT COALESCE ( + MIN( DISTINCT 36 ), - + MAX( DISTINCT - 7 ) + - 9 - + 23, - - 15 * + + ( + 98 ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9609
SELECT COALESCE ( + MIN ( DISTINCT 36 ), - + MAX ( DISTINCT - 7 ) + - 9 - + 23, - - 15 * + + ( + 98 ) ) AS col2
----
36

query I rowsort
SELECT ALL ( + - ( - 75 ) ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9611
SELECT 26 * 76 * ( + COUNT( * ) ) + + COUNT( * ) * + - 83 AS col2, - ( + 10 ) * + - 75 + - - CASE - COUNT( * ) WHEN + 60 * + 39 THEN 26 WHEN 42 THEN NULL WHEN 11 THEN NULL END AS col0
----
1893
NULL

skipif mysql # not compatible
query II rowsort label-9611
SELECT 26 * 76 * ( + COUNT ( * ) ) + + COUNT ( * ) * + - 83 AS col2, - ( + 10 ) * + - 75 + - - CASE - COUNT ( * ) WHEN + 60 * + 39 THEN 26 WHEN 42 THEN NULL WHEN 11 THEN NULL END AS col0
----
1893
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT NULLIF ( 61, - - COUNT( * ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9612
SELECT NULLIF ( 61, - - COUNT ( * ) ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT 3 + + CASE - - COUNT( * ) WHEN 87 THEN NULL WHEN - MAX( DISTINCT + 19 ) THEN 62 ELSE - NULLIF ( 60, + - 66 ) END + COALESCE ( - 82, 39 - 10, COUNT( * ) + 10, MAX( ALL 93 ) )
----
-139

skipif mysql # not compatible
query I rowsort label-9613
SELECT 3 + + CASE - - COUNT ( * ) WHEN 87 THEN NULL WHEN - MAX ( DISTINCT + 19 ) THEN 62 ELSE - NULLIF ( 60, + - 66 ) END + COALESCE ( - 82, 39 - 10, COUNT ( * ) + 10, MAX ( ALL 93 ) )
----
-139

query I rowsort
SELECT NULLIF ( 91, ( - 72 ) ) * + 21
----
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL COALESCE ( + 43, + 32 ) - - 94 + + COUNT( * ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL COALESCE ( + 43, + 32 ) - - 94 + + COUNT ( * ) AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9616
SELECT COALESCE ( - + 33, + - CAST( 82 AS SIGNED ), + 65 ) - - CASE + 9 WHEN + 19 THEN NULL ELSE + + 20 END * ( + - COALESCE ( - COUNT( * ), 24 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-9616
SELECT COALESCE ( - + 33, + - CAST ( 82 AS INTEGER ), + 65 ) - - CASE + 9 WHEN + 19 THEN NULL ELSE + + 20 END * ( + - COALESCE ( - COUNT ( * ), 24 ) )
----
-13

query I rowsort
SELECT 38 + 32 * - 90
----
-2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9618
SELECT ( - - COUNT( ALL + - CAST( NULL AS SIGNED ) ) ) + - 51 - - + 86 * - 84 AS col0
----
-7275

skipif mysql # not compatible
query I rowsort label-9618
SELECT ( - - COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) ) + - 51 - - + 86 * - 84 AS col0
----
-7275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT ALL CAST( 4 AS SIGNED ) * + 55 col0
----
220

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL CAST ( 4 AS INTEGER ) * + 55 col0
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT CAST( + 53 AS SIGNED ) * 29 AS col0
----
1537

skipif mysql # not compatible
query I rowsort label-9620
SELECT CAST ( + 53 AS INTEGER ) * 29 AS col0
----
1537

query I rowsort
SELECT 28 + + - 38
----
-10

query I rowsort
SELECT 38 + + 39 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9623
SELECT 73 - - ( - CAST( + 73 AS SIGNED ) ) + 71 + 27 + CAST( + 5 AS SIGNED ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-9623
SELECT 73 - - ( - CAST ( + 73 AS INTEGER ) ) + 71 + 27 + CAST ( + 5 AS INTEGER ) AS col1
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT 44 DIV 37 * 8
----
8

skipif mysql # not compatible
query I rowsort label-9624
SELECT 44 / 37 * 8
----
8

query II rowsort
SELECT 79 * 44 AS col2, 11 AS col1
----
3476
11

query I rowsort
SELECT 83 + - 54
----
29

query I rowsort
SELECT DISTINCT 48 + + 48 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT + COUNT( * ) * + 46
----
46

skipif mysql # not compatible
query I rowsort label-9628
SELECT + COUNT ( * ) * + 46
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9629
SELECT ALL ( + 2 ) + 91 * CAST( NULL AS DECIMAL ) + - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL ( + 2 ) + 91 * CAST ( NULL AS REAL ) + - - 81
----
NULL

query I rowsort
SELECT ALL + 54 + - + 64 AS col2
----
-10

query I rowsort
SELECT 28 * + 7 col0
----
196

query I rowsort
SELECT DISTINCT + 20 + - 61
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - ( - + 10 ) * - - ( + COUNT( * ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9633
SELECT - ( - + 10 ) * - - ( + COUNT ( * ) ) AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT ( + 98 ) * 82 DIV - 24 + - 18 + 96
----
-256

skipif mysql # not compatible
query I rowsort label-9634
SELECT ( + 98 ) * 82 / - 24 + - 18 + 96
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ALL + 96 + COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL + 96 + COUNT ( * ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT + 27 + - 31 + MIN( 6 ) + + 66 - - 18 * + 76 + - + 28
----
1408

skipif mysql # not compatible
query I rowsort label-9636
SELECT + 27 + - 31 + MIN ( 6 ) + + 66 - - 18 * + 76 + - + 28
----
1408

onlyif mysql # aggregate syntax: 
query II rowsort label-9637
SELECT DISTINCT 6 * - 34 * - - ( + 45 ) * ( - ( COUNT( * ) ) ) AS col2, - COUNT( * )
----
9180
-1

skipif mysql # not compatible
query II rowsort label-9637
SELECT DISTINCT 6 * - 34 * - - ( + 45 ) * ( - ( COUNT ( * ) ) ) AS col2, - COUNT ( * )
----
9180
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9638
SELECT ALL + + 43 + CASE + + 99 WHEN + 55 * 69 / - - 25 * 75 + + 32 - + 95 THEN - CASE - + 59 WHEN + - COUNT( * ) / + 19 THEN NULL ELSE SUM( DISTINCT CAST( NULL AS SIGNED ) ) END * + 0 WHEN + COUNT( * ) THEN NULL END * 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL + + 43 + CASE + + 99 WHEN + 55 * 69 / - - 25 * 75 + + 32 - + 95 THEN - CASE - + 59 WHEN + - COUNT ( * ) / + 19 THEN NULL ELSE SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) END * + 0 WHEN + COUNT ( * ) THEN NULL END * 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT 41 * + + 59 + COUNT( * ) + - 64 AS col0
----
2356

skipif mysql # not compatible
query I rowsort label-9639
SELECT 41 * + + 59 + COUNT ( * ) + - 64 AS col0
----
2356

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT DISTINCT + 77 - + 28 + 16 + + - 29 + 24 DIV - 58 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT + 77 - + 28 + 16 + + - 29 + 24 / - 58 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT - ( + 60 ) + 35 - + + COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-9641
SELECT - ( + 60 ) + 35 - + + COUNT ( * ) AS col0
----
-26

query I rowsort
SELECT - 77 + + + 27 AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT 38 * + CAST( NULL AS SIGNED ) + - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9643
SELECT 38 * + CAST ( NULL AS INTEGER ) + - 72 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT 69 + - - 94 - + - 92 DIV + + 7
----
176

skipif mysql # not compatible
query I rowsort label-9644
SELECT 69 + - - 94 - + - 92 / + + 7
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9645
SELECT DISTINCT - - COUNT( * ) DIV - 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9645
SELECT DISTINCT - - COUNT ( * ) / - 19 AS col1
----
0

query I rowsort
SELECT - 75 * - 58 * - 23 * + + 20 + 89 AS col1
----
-2000911

query I rowsort
SELECT 22 * - 76 AS col2
----
-1672

query I rowsort
SELECT 29 + + - 82 AS col0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9649
SELECT ALL - 64 DIV + 58 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL - 64 / + 58 AS col2
----
-1

query II rowsort
SELECT DISTINCT 84 col1, 75
----
84
75

query I rowsort
SELECT DISTINCT + 83 * - + 38 AS col0
----
-3154

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT CASE + + COUNT( * ) WHEN + NULLIF ( - 37, - + COUNT( * ) ) + + COUNT( ALL ( NULLIF ( 62, + - 79 ) ) ) THEN COUNT( * ) * + 68 * - MAX( DISTINCT + 12 ) WHEN 28 THEN + 20 END + NULLIF ( COUNT( * ), 84 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT CASE + + COUNT ( * ) WHEN + NULLIF ( - 37, - + COUNT ( * ) ) + + COUNT ( ALL ( NULLIF ( 62, + - 79 ) ) ) THEN COUNT ( * ) * + 68 * - MAX ( DISTINCT + 12 ) WHEN 28 THEN + 20 END + NULLIF ( COUNT ( * ), 84 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL COUNT( DISTINCT - ( + 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL COUNT ( DISTINCT - ( + 11 ) )
----
1

query II rowsort
SELECT 35 * - + NULLIF ( + - 19, + 14 ) AS col0, 67
----
665
67

query I rowsort
SELECT 47 * - 14 * - ( 82 )
----
53956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9656
SELECT 83 + COUNT( * ) DIV - COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-9656
SELECT 83 + COUNT ( * ) / - COUNT ( * ) AS col0
----
82

query II rowsort
SELECT - 3 AS col2, 39 AS col2
----
-3
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT 89 * + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9658
SELECT 89 * + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL COUNT( ALL 58 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL COUNT ( ALL 58 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT - 47 + - + 75 * - 22 + + + COUNT( * ) * + + 57 * + 89
----
6676

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT - 47 + - + 75 * - 22 + + + COUNT ( * ) * + + 57 * + 89
----
6676

query I rowsort
SELECT DISTINCT + 93 + + 52 AS col2
----
145

query I rowsort
SELECT ALL 72 * - 61
----
-4392

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT 61, COUNT( * ) AS col0
----
61
1

skipif mysql # not compatible
query II rowsort label-9663
SELECT 61, COUNT ( * ) AS col0
----
61
1

query I rowsort
SELECT ALL + 75 + + + 43
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-9665
SELECT DISTINCT 1 * 86 DIV - + 38 col2
----
-2

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT 1 * 86 / - + 38 col2
----
-2

query I rowsort
SELECT - 66 - + 53
----
-119

query I rowsort
SELECT ALL 6 * - 2 * + 4 + 0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT 80 DIV + 69 + - 8 * COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-9668
SELECT 80 / + 69 + - 8 * COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-9669
SELECT ALL 4 * 78 + 47, + 73 * - - NULLIF ( - 24, - MIN( DISTINCT + 59 ) * ( 52 ) ) AS col2
----
359
-1752

skipif mysql # not compatible
query II rowsort label-9669
SELECT ALL 4 * 78 + 47, + 73 * - - NULLIF ( - 24, - MIN ( DISTINCT + 59 ) * ( 52 ) ) AS col2
----
359
-1752

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT 92 * + NULLIF ( + - 75, + + SUM( 62 ) ) AS col2
----
-6900

skipif mysql # not compatible
query I rowsort label-9670
SELECT 92 * + NULLIF ( + - 75, + + SUM ( 62 ) ) AS col2
----
-6900

query I rowsort
SELECT ALL - 31 * 59 * + 13 AS col2
----
-23777

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT DISTINCT - + 90 AS col2, COUNT( * ) + + - COUNT( * ) * + COALESCE ( 71, - 71 )
----
-90
-70

skipif mysql # not compatible
query II rowsort label-9672
SELECT DISTINCT - + 90 AS col2, COUNT ( * ) + + - COUNT ( * ) * + COALESCE ( 71, - 71 )
----
-90
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9673
SELECT ALL COUNT( * ) * - 86 DIV - - 67 + + 59 DIV + COUNT( * ) - - 5
----
63

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL COUNT ( * ) * - 86 / - - 67 + + 59 / + COUNT ( * ) - - 5
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9674
SELECT ALL - + COALESCE ( - - 80, COUNT( * ) * + 61 * 62 ) DIV - + 90 + - - SUM( DISTINCT + ( - 81 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - + COALESCE ( - - 80, COUNT ( * ) * + 61 * 62 ) / - + 90 + - - SUM ( DISTINCT + ( - 81 ) )
----
-81

query I rowsort
SELECT DISTINCT + + ( - 37 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT DISTINCT - 31 * 7 - - 34 * ( - - 61 ) * - + ( + 85 ) - + COUNT( * ) AS col0, + 5
----
-176508
5

skipif mysql # not compatible
query II rowsort label-9676
SELECT DISTINCT - 31 * 7 - - 34 * ( - - 61 ) * - + ( + 85 ) - + COUNT ( * ) AS col0, + 5
----
-176508
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9677
SELECT DISTINCT - 48 DIV + 12 + - - CAST( + 51 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT - 48 / + 12 + - - CAST ( + 51 AS INTEGER )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT - 66 DIV + 28
----
-2

skipif mysql # not compatible
query I rowsort label-9678
SELECT - 66 / + 28
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL + MAX( - + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + MAX ( - + 11 )
----
-11

query I rowsort
SELECT ALL - - 36 * + + 32 AS col1
----
1152

query I rowsort
SELECT + + ( - 24 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9682
SELECT + CASE 75 WHEN + - 63 / 97 - - 61 * + 97 THEN - 23 WHEN CAST( NULL AS SIGNED ) * 12 * 53 * 29 THEN - + 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9682
SELECT + CASE 75 WHEN + - 63 / 97 - - 61 * + 97 THEN - 23 WHEN CAST ( NULL AS INTEGER ) * 12 * 53 * 29 THEN - + 19 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT + NULLIF ( + 21, 37 / + COUNT( * ) * + 62 * - + 73 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT + NULLIF ( + 21, 37 / + COUNT ( * ) * + 62 * - + 73 ) AS col2
----
21

query I rowsort
SELECT ALL 80 * - 13
----
-1040

query I rowsort
SELECT ALL + ( + + 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT 5 * - - COUNT( * ) + - 56 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9686
SELECT 5 * - - COUNT ( * ) + - 56 AS col1
----
-51

query I rowsort
SELECT + 56 * + 90
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT + COUNT( * ) + + 96
----
97

skipif mysql # not compatible
query I rowsort label-9688
SELECT + COUNT ( * ) + + 96
----
97

query I rowsort
SELECT - 91 + 33 + + 20 * - ( - 43 ) + + 32 AS col1
----
834

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT - MIN( ALL 18 ) * - - 52 + - - MAX( + 88 ) - - 19 AS col0
----
-829

skipif mysql # not compatible
query I rowsort label-9690
SELECT - MIN ( ALL 18 ) * - - 52 + - - MAX ( + 88 ) - - 19 AS col0
----
-829

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - 84 + - - MIN( ALL + 81 ) + 13 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9691
SELECT - 84 + - - MIN ( ALL + 81 ) + 13 AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT DISTINCT + 15 DIV - - 54
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + 15 / - - 54
----
0

query I rowsort
SELECT DISTINCT - 61 + - - 54
----
-7

query I rowsort
SELECT ALL + 6 + + 71 + - 93 - + 7 * + 27 AS col0
----
-205

query II rowsort
SELECT DISTINCT ( + 7 ) AS col2, 19 AS col2
----
7
19

query I rowsort
SELECT - 37 + - 8
----
-45

query I rowsort
SELECT ALL - 43 + ( 20 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT ALL - 34 * - + 74 * COALESCE ( - - 64, + COUNT( * ) ) AS col2
----
161024

skipif mysql # not compatible
query I rowsort label-9698
SELECT ALL - 34 * - + 74 * COALESCE ( - - 64, + COUNT ( * ) ) AS col2
----
161024

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT - 66 * + - 26 * - MAX( + 72 )
----
-123552

skipif mysql # not compatible
query I rowsort label-9699
SELECT - 66 * + - 26 * - MAX ( + 72 )
----
-123552

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT - ( 78 ) - + SUM( DISTINCT ( + 71 ) ) col1
----
-149

skipif mysql # not compatible
query I rowsort label-9700
SELECT - ( 78 ) - + SUM ( DISTINCT ( + 71 ) ) col1
----
-149

query I rowsort
SELECT ALL + - 1 + - - 82 + 25 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL ( - COUNT( * ) ) * - + 56 * - - SUM( DISTINCT - 67 )
----
-3752

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL ( - COUNT ( * ) ) * - + 56 * - - SUM ( DISTINCT - 67 )
----
-3752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9703
SELECT DISTINCT 58 * 4 + - COUNT( * ) DIV + + 13 * + 65 * + 89
----
232

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT 58 * 4 + - COUNT ( * ) / + + 13 * + 65 * + 89
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL + + COUNT( DISTINCT 34 )
----
1

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL + + COUNT ( DISTINCT 34 )
----
1

query I rowsort
SELECT 13 * - + 82 + + 51 AS col2
----
-1015

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + COUNT( * ) / + MAX( DISTINCT + 1 ) * - CASE 51 WHEN + 18 * - 11 + + 65 - - 70 * + - 26 + + 56 THEN NULL WHEN - AVG ( - + 70 ) + + - 5 / 42 THEN + 89 / - 51 WHEN - COALESCE ( 49, NULLIF ( 93, 14 ) * - 28, 57 * 60 - 78 * + 35 ) * 50 THEN NULL ELSE NULL END + 23 * 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT + COUNT ( * ) / + MAX ( DISTINCT + 1 ) * - CASE 51 WHEN + 18 * - 11 + + 65 - - 70 * + - 26 + + 56 THEN NULL WHEN - AVG ( - + 70 ) + + - 5 / 42 THEN + 89 / - 51 WHEN - COALESCE ( 49, NULLIF ( 93, 14 ) * - 28, 57 * 60 - 78 * + 35 ) * 50 THEN NULL ELSE NULL END + 23 * 4 AS col2
----
NULL

query I rowsort
SELECT - - 64 * 78
----
4992

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT - 88 DIV + - 23 + + 84
----
87

skipif mysql # not compatible
query I rowsort label-9708
SELECT - 88 / + - 23 + + 84
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT MIN( ALL 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9709
SELECT MIN ( ALL 73 ) AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9710
SELECT ALL 69 DIV - ( 25 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL 69 / - ( 25 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT - COUNT( * ) * + 85 * + - 10 + CASE + 13 WHEN + + 2 * - 65 THEN + 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT - COUNT ( * ) * + 85 * + - 10 + CASE + 13 WHEN + + 2 * - 65 THEN + 54 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9712
SELECT 10 * COUNT( * ) + + COUNT( * ) / 12 * - 81 * 39 / CASE + 23 WHEN 44 + - - 93 THEN 21 ELSE NULL END * + + ( 86 ) AS col1, + CAST( NULL AS SIGNED ) + - COALESCE ( - 12, 43 * 1 + + 35 )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9712
SELECT 10 * COUNT ( * ) + + COUNT ( * ) / 12 * - 81 * 39 / CASE + 23 WHEN 44 + - - 93 THEN 21 ELSE NULL END * + + ( 86 ) AS col1, + CAST ( NULL AS INTEGER ) + - COALESCE ( - 12, 43 * 1 + + 35 )
----
NULL
NULL

query II rowsort
SELECT ALL + 19 AS col0, + 26
----
19
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT + NULLIF ( 62, - 35 ) DIV - 95 + + 50 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9714
SELECT + NULLIF ( 62, - 35 ) / - 95 + + 50 AS col1
----
50

query I rowsort
SELECT ALL - 47 * - 81 * - - 19 + 98
----
72431

query I rowsort
SELECT + 39 * + 66
----
2574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9717
SELECT + NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) ) + 58 + 83 + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) ) + 58 + 83 + - 61
----
NULL

query I rowsort
SELECT + 15 * - 70
----
-1050

onlyif mysql # DIV for integer division: 
query II rowsort label-9719
SELECT - 21 + + 46 DIV + 66, 6 AS col2
----
-21
6

skipif mysql # not compatible
query II rowsort label-9719
SELECT - 21 + + 46 / + 66, 6 AS col2
----
-21
6

query I rowsort
SELECT + 3 * - - 39 + + 26 AS col2
----
143

query II rowsort
SELECT + ( - ( + 63 ) ) AS col2, - 3 AS col1
----
-63
-3

query I rowsort
SELECT ALL + 20 * - 14 + 39 + 97 * + - 60 + 37 - 63 + 91
----
-5996

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL NULLIF ( + 63, - 98 - 24 + - - 6 - ( CASE + NULLIF ( + COUNT( * ), + 12 + + - ( 79 ) ) WHEN 86 * - + COUNT( * ) THEN 73 / - CASE 77 WHEN - CASE COUNT( * ) WHEN 63 THEN NULL ELSE 94 END THEN + 89 + - 81 END ELSE NULL END ) + 35 )
----
63

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL NULLIF ( + 63, - 98 - 24 + - - 6 - ( CASE + NULLIF ( + COUNT ( * ), + 12 + + - ( 79 ) ) WHEN 86 * - + COUNT ( * ) THEN 73 / - CASE 77 WHEN - CASE COUNT ( * ) WHEN 63 THEN NULL ELSE 94 END THEN + 89 + - 81 END ELSE NULL END ) + 35 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9724
SELECT ALL 28 * + SUM( ALL - 15 ) * + ( 90 ) + COUNT( * ) + - + COUNT( * ) * + - 48 + + 20 * + + 44 - - 72 col1, - 41 * + - MIN( + + 86 ) col2
----
-36799
3526

skipif mysql # not compatible
query II rowsort label-9724
SELECT ALL 28 * + SUM ( ALL - 15 ) * + ( 90 ) + COUNT ( * ) + - + COUNT ( * ) * + - 48 + + 20 * + + 44 - - 72 col1, - 41 * + - MIN ( + + 86 ) col2
----
-36799
3526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9725
SELECT - NULLIF ( - - ( CASE - CAST( + 89 AS SIGNED ) WHEN - 75 THEN + 20 WHEN + - 29 * 64 * + COUNT( * ) + - 36 THEN NULL END ), - SUM( - - COALESCE ( 31, 39 ) ) ) * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9725
SELECT - NULLIF ( - - ( CASE - CAST ( + 89 AS INTEGER ) WHEN - 75 THEN + 20 WHEN + - 29 * 64 * + COUNT ( * ) + - 36 THEN NULL END ), - SUM ( - - COALESCE ( 31, 39 ) ) ) * - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL MAX( ALL 39 )
----
39

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL MAX ( ALL 39 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9727
SELECT - 31 + - 67 DIV 79 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9727
SELECT - 31 + - 67 / 79 AS col1
----
-31

query I rowsort
SELECT DISTINCT - 30 + + 86 col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT + NULLIF ( COUNT( * ), - - 43 / - 56 + - SUM( 73 ) + - 72 + + + 97 ) * - CAST( AVG ( + CAST( - - 66 AS SIGNED ) ) AS SIGNED ) * + 54 * + 27 * 53
----
-5100084

skipif mysql # not compatible
query I rowsort label-9729
SELECT + NULLIF ( COUNT ( * ), - - 43 / - 56 + - SUM ( 73 ) + - 72 + + + 97 ) * - CAST ( AVG ( + CAST ( - - 66 AS INTEGER ) ) AS INTEGER ) * + 54 * + 27 * 53
----
-5100084

query I rowsort
SELECT - 32 + + 74 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL - 0 - 38 + + 26 * + CASE - + 51 WHEN + ( + 40 ) / 19 THEN NULL WHEN - - NULLIF ( - COUNT( * ), + 61 + - - COUNT( * ) ) THEN NULL ELSE - 68 END + 65 + 23 + 1 * - 72
----
-1790

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL - 0 - 38 + + 26 * + CASE - + 51 WHEN + ( + 40 ) / 19 THEN NULL WHEN - - NULLIF ( - COUNT ( * ), + 61 + - - COUNT ( * ) ) THEN NULL ELSE - 68 END + 65 + 23 + 1 * - 72
----
-1790

query I rowsort
SELECT - + 29 col0
----
-29

query I rowsort
SELECT ALL + 9 * 97 + + - 59 * - 17
----
1876

query I rowsort
SELECT 6 + COALESCE ( + 89, 4, - 31 * 57 * - 91 + 73 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT + MAX( DISTINCT + + 10 ) * COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT + MAX ( DISTINCT + + 10 ) * COUNT ( * ) AS col2
----
10

query I rowsort
SELECT ALL + 59 - - 50 + + 42 + + ( 11 ) * + + 16
----
327

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9737
SELECT + COUNT( * ) DIV + - 59 * + ( - + ( MAX( ALL - ( 73 ) ) ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT + COUNT ( * ) / + - 59 * + ( - + ( MAX ( ALL - ( 73 ) ) ) ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL + COUNT( * ) * + - 32
----
-32

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL + COUNT ( * ) * + - 32
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9739
SELECT 21 + - COUNT( * ) * - 45 col0, 98 * + ( + + 85 )
----
66
8330

skipif mysql # not compatible
query II rowsort label-9739
SELECT 21 + - COUNT ( * ) * - 45 col0, 98 * + ( + + 85 )
----
66
8330

query I rowsort
SELECT 24 * - ( + ( + 17 ) )
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT COUNT( 70 )
----
1

skipif mysql # not compatible
query I rowsort label-9741
SELECT COUNT ( 70 )
----
1

query I rowsort
SELECT + 37 * + + 60 col2
----
2220

query I rowsort
SELECT ALL 76 + + - 90
----
-14

query II rowsort
SELECT 64 AS col1, 46
----
64
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT ALL 27 + - - 49 + + - 27 * - - 78 DIV + + 76 + - 33 DIV + - 15 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9745
SELECT ALL 27 + - - 49 + + - 27 * - - 78 / + + 76 + - 33 / + - 15 AS col0
----
51

query III rowsort
SELECT 78, + 16 AS col0, + 10 AS col0
----
78
16
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT 54 - - + MAX( 28 ) col1
----
82

skipif mysql # not compatible
query I rowsort label-9747
SELECT 54 - - + MAX ( 28 ) col1
----
82

query II rowsort
SELECT ALL - 37 AS col1, - 78
----
-37
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9749
SELECT 64, + MAX( - 18 ) + + ( + 14 ) AS col0
----
64
-4

skipif mysql # not compatible
query II rowsort label-9749
SELECT 64, + MAX ( - 18 ) + + ( + 14 ) AS col0
----
64
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT ALL - 43 + + 33 * CAST( 5 AS SIGNED ) * + ( + 51 ) AS col1
----
8372

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL - 43 + + 33 * CAST ( 5 AS INTEGER ) * + ( + 51 ) AS col1
----
8372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9751
SELECT ALL NULLIF ( COUNT( * ), 64 ) + + 21 * + 1 * - CASE + COUNT( * ) WHEN - 18 * 18 - + 67 + - 6 THEN NULL WHEN + 72 THEN - CAST( NULL AS SIGNED ) * + 36 / + 21 END * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL NULLIF ( COUNT ( * ), 64 ) + + 21 * + 1 * - CASE + COUNT ( * ) WHEN - 18 * 18 - + 67 + - 6 THEN NULL WHEN + 72 THEN - CAST ( NULL AS INTEGER ) * + 36 / + 21 END * 57 AS col0
----
NULL

query I rowsort
SELECT 89 * - - 15 * 95 * - 75 * - + 76
----
722902500

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT + 5 * + 67 + + COUNT( * )
----
336

skipif mysql # not compatible
query I rowsort label-9753
SELECT + 5 * + 67 + + COUNT ( * )
----
336

query I rowsort
SELECT 72 + 8 AS col1
----
80

query I rowsort
SELECT ALL 13 - 22
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT DISTINCT COUNT( + + 76 ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT COUNT ( + + 76 ) * + 55
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9757
SELECT SUM( ALL - CAST( NULL AS SIGNED ) ) + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) ) + - 91
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9758
SELECT 2 AS col0, + COUNT( * ) AS col2
----
2
1

skipif mysql # not compatible
query II rowsort label-9758
SELECT 2 AS col0, + COUNT ( * ) AS col2
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT DISTINCT MIN( + + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-9759
SELECT DISTINCT MIN ( + + 37 )
----
37

query I rowsort
SELECT 90 + 45 * 43 * - + 65 * ( + + ( 58 ) ) AS col2
----
-7294860

query I rowsort
SELECT ALL - 69 * 30 * - 47
----
97290

query I rowsort
SELECT 20 * + + 56
----
1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9763
SELECT + 35 + CAST( NULL AS SIGNED ) + - CASE 31 WHEN - 77 THEN NULL ELSE - 23 + + - MAX( DISTINCT + 89 ) + - 78 + COUNT( DISTINCT - - 14 ) * - 89 END + - + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT + 35 + CAST ( NULL AS INTEGER ) + - CASE 31 WHEN - 77 THEN NULL ELSE - 23 + + - MAX ( DISTINCT + 89 ) + - 78 + COUNT ( DISTINCT - - 14 ) * - 89 END + - + 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9764
SELECT ALL 1, - MIN( ALL + + 55 ) - - 1 + - COUNT( * ) * - COUNT( * ) + 9 AS col0
----
1
-44

skipif mysql # not compatible
query II rowsort label-9764
SELECT ALL 1, - MIN ( ALL + + 55 ) - - 1 + - COUNT ( * ) * - COUNT ( * ) + 9 AS col0
----
1
-44

query I rowsort
SELECT 69 + + 55 AS col0
----
124

query I rowsort
SELECT 0 * + + 35 * + 93
----
0

query I rowsort
SELECT DISTINCT 85 col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9768
SELECT - 24 AS col0, - COUNT( + CAST( - CASE + 2 WHEN + 15 THEN NULLIF ( - 37, - 68 + - 22 / + ( - - 11 ) * + - 51 * 93 ) ELSE NULL END AS SIGNED ) )
----
-24
0

skipif mysql # not compatible
query II rowsort label-9768
SELECT - 24 AS col0, - COUNT ( + CAST ( - CASE + 2 WHEN + 15 THEN NULLIF ( - 37, - 68 + - 22 / + ( - - 11 ) * + - 51 * 93 ) ELSE NULL END AS INTEGER ) )
----
-24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL + + 29 * + COUNT( * ) * MIN( - 5 ) * + 87
----
-12615

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL + + 29 * + COUNT ( * ) * MIN ( - 5 ) * + 87
----
-12615

query I rowsort
SELECT + 94 * + 77 col1
----
7238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9771
SELECT DISTINCT 63 DIV ( + + COUNT( * ) ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9771
SELECT DISTINCT 63 / ( + + COUNT ( * ) ) AS col1
----
63

query II rowsort
SELECT ALL + 82 AS col1, ( - + 8 ) * + 53 + 83
----
82
-341

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT - - CASE 70 WHEN + 55 + + 63 + + ( + CASE ( 95 ) WHEN - COUNT( * ) + 98 THEN NULL ELSE + 91 END ) * + 84 * - + 71 THEN - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT - - CASE 70 WHEN + 55 + + 63 + + ( + CASE ( 95 ) WHEN - COUNT ( * ) + 98 THEN NULL ELSE + 91 END ) * + 84 * - + 71 THEN - 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT + + 17 * NULLIF ( + CASE + COUNT( * ) WHEN + 47 - - 78 THEN + - 48 END, - 54 * AVG ( + + 3 ) + - 10 * + CASE COUNT( * ) WHEN + 78 THEN ( + + 85 ) * 71 WHEN - ( COUNT( * ) ) / ( - 19 + COUNT( * ) ) - - 32 THEN - 35 - 10 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT + + 17 * NULLIF ( + CASE + COUNT ( * ) WHEN + 47 - - 78 THEN + - 48 END, - 54 * AVG ( + + 3 ) + - 10 * + CASE COUNT ( * ) WHEN + 78 THEN ( + + 85 ) * 71 WHEN - ( COUNT ( * ) ) / ( - 19 + COUNT ( * ) ) - - 32 THEN - 35 - 10 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT DISTINCT - - MAX( 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT - - MAX ( 82 ) AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9776
SELECT ALL + + 25 * + - 5 * + 63 + + - SUM( ALL + 86 ) * COUNT( * ) * - - 98 + CAST( COUNT( - + 5 ) AS SIGNED ) AS col0
----
-16302

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL + + 25 * + - 5 * + 63 + + - SUM ( ALL + 86 ) * COUNT ( * ) * - - 98 + CAST ( COUNT ( - + 5 ) AS INTEGER ) AS col0
----
-16302

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9777
SELECT ALL - 67 * + 89 + SUM( + - 56 ) + - COALESCE ( - 86, - - 92 + 65 * - - 97 ) DIV - 97 * 65 - 91 DIV - 43 + 85
----
-5932

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL - 67 * + 89 + SUM ( + - 56 ) + - COALESCE ( - 86, - - 92 + 65 * - - 97 ) / - 97 * 65 - 91 / - 43 + 85
----
-5932

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT DISTINCT + 92 * + MAX( ALL - 83 ) + - - 61 AS col2
----
-7575

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT + 92 * + MAX ( ALL - 83 ) + - - 61 AS col2
----
-7575

onlyif mysql # DIV for integer division: 
query I rowsort label-9779
SELECT 46 DIV - 91 + 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9779
SELECT 46 / - 91 + 40 AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9780
SELECT 73 DIV - 6 AS col2, CAST( - 81 AS SIGNED ) col0
----
-12
-81

skipif mysql # not compatible
query II rowsort label-9780
SELECT 73 / - 6 AS col2, CAST ( - 81 AS INTEGER ) col0
----
-12
-81

query I rowsort
SELECT ALL - 74 + - + 86 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT 54 + - MIN( DISTINCT - - 10 ) col2
----
44

skipif mysql # not compatible
query I rowsort label-9782
SELECT 54 + - MIN ( DISTINCT - - 10 ) col2
----
44

query II rowsort
SELECT DISTINCT - ( - - 19 ), 79 AS col2
----
-19
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL SUM( + NULLIF ( 93, + 63 ) ) + + COUNT( * ) * NULLIF ( + 0, - 46 / - 22 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL SUM ( + NULLIF ( 93, + 63 ) ) + + COUNT ( * ) * NULLIF ( + 0, - 46 / - 22 ) AS col0
----
93

query I rowsort
SELECT ALL + 84 * - 37 AS col0
----
-3108

query I rowsort
SELECT DISTINCT - 30 - 20
----
-50

query I rowsort
SELECT ALL + 75 * + - 71
----
-5325

query I rowsort
SELECT 69 * 85 * + 98
----
574770

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT COUNT( * ) + + MAX( + 44 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9789
SELECT COUNT ( * ) + + MAX ( + 44 ) AS col0
----
45

query II rowsort
SELECT ALL + 12 - + 5 AS col1, 98
----
7
98

onlyif mysql # DIV for integer division: 
query II rowsort label-9791
SELECT DISTINCT 72 * - - 97 * + + 80, 1 + ( - 54 ) + - 6 - 70 DIV + 80 AS col1
----
558720
-59

skipif mysql # not compatible
query II rowsort label-9791
SELECT DISTINCT 72 * - - 97 * + + 80, 1 + ( - 54 ) + - 6 - 70 / + 80 AS col1
----
558720
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT 85 * - + 3 * ( - 61 ) + - + 67 + + - COUNT( * ) - - 9 + + 11 - 59 AS col0
----
15448

skipif mysql # not compatible
query I rowsort label-9792
SELECT 85 * - + 3 * ( - 61 ) + - + 67 + + - COUNT ( * ) - - 9 + + 11 - 59 AS col0
----
15448

query I rowsort
SELECT DISTINCT + 30 - - + 89 AS col1
----
119

query I rowsort
SELECT DISTINCT - 67 * ( + ( - 73 ) ) col1
----
4891

onlyif mysql # aggregate syntax: 
query II rowsort label-9795
SELECT ALL + 12 - - 68 + + + MAX( 50 ) * - - ( ( - 43 ) ) AS col1, 11 * - + 60 + 52 AS col0
----
-2070
-608

skipif mysql # not compatible
query II rowsort label-9795
SELECT ALL + 12 - - 68 + + + MAX ( 50 ) * - - ( ( - 43 ) ) AS col1, 11 * - + 60 + 52 AS col0
----
-2070
-608

query I rowsort
SELECT DISTINCT - 58 * - + 81 AS col2
----
4698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT - CAST( - 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-9797
SELECT - CAST ( - 51 AS INTEGER )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9798
SELECT ALL COUNT( * ) DIV + - 85 col1, 91 * 84 AS col1
----
0
7644

skipif mysql # not compatible
query II rowsort label-9798
SELECT ALL COUNT ( * ) / + - 85 col1, 91 * 84 AS col1
----
0
7644

onlyif mysql # aggregate syntax: 
query II rowsort label-9799
SELECT + 89 * - 69 AS col2, - COUNT( * )
----
-6141
-1

skipif mysql # not compatible
query II rowsort label-9799
SELECT + 89 * - 69 AS col2, - COUNT ( * )
----
-6141
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9800
SELECT ALL ( + 46 ) DIV + - 54 AS col2, 70 * 91 * 87
----
0
554190

skipif mysql # not compatible
query II rowsort label-9800
SELECT ALL ( + 46 ) / + - 54 AS col2, 70 * 91 * 87
----
0
554190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9801
SELECT - - COUNT( * ) DIV + - MIN( + 31 ) + - ( - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-9801
SELECT - - COUNT ( * ) / + - MIN ( + 31 ) + - ( - 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT + - 20 * - COUNT( * ) * - + 91 AS col1
----
-1820

skipif mysql # not compatible
query I rowsort label-9802
SELECT + - 20 * - COUNT ( * ) * - + 91 AS col1
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL SUM( DISTINCT + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL SUM ( DISTINCT + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9804
SELECT + + 46 * - + COUNT( * ), 23 + 78 + - MAX( - - 10 ) col1
----
-46
91

skipif mysql # not compatible
query II rowsort label-9804
SELECT + + 46 * - + COUNT ( * ), 23 + 78 + - MAX ( - - 10 ) col1
----
-46
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9805
SELECT ALL + 40 + - ( NULLIF ( - 73, - 38 ) ) * COALESCE ( + CAST( - 89 AS SIGNED ), + 76 + - COUNT( * ) ) DIV + 64 - + 48 col0
----
-109

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL + 40 + - ( NULLIF ( - 73, - 38 ) ) * COALESCE ( + CAST ( - 89 AS INTEGER ), + 76 + - COUNT ( * ) ) / + 64 - + 48 col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT 31 + - + COUNT( * ) + + + ( + COUNT( * ) ) * - + 27 col2
----
3

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT 31 + - + COUNT ( * ) + + + ( + COUNT ( * ) ) * - + 27 col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9807
SELECT DISTINCT - 63 * + + 97 * + 12 DIV - COUNT( * ) AS col2
----
73332

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT - 63 * + + 97 * + 12 / - COUNT ( * ) AS col2
----
73332

query I rowsort
SELECT ALL 75 + + ( - - 67 )
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9809
SELECT + CAST( NULL AS SIGNED ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT + CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT + - 24 * - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT + - 24 * - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9811
SELECT - - 19 + 68 + + 24 DIV - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-9811
SELECT - - 19 + 68 + + 24 / - COUNT ( * )
----
63

query I rowsort
SELECT DISTINCT - 13 + + - 36 + + 47 * ( - 63 ) AS col0
----
-3010

onlyif mysql # aggregate syntax: 
query II rowsort label-9813
SELECT - 46 * - 4 + - 44, 27 * - 58 * - 52 + + COUNT( * ) + COUNT( + + 43 ) * - 29 + 40 AS col2
----
140
81444

skipif mysql # not compatible
query II rowsort label-9813
SELECT - 46 * - 4 + - 44, 27 * - 58 * - 52 + + COUNT ( * ) + COUNT ( + + 43 ) * - 29 + 40 AS col2
----
140
81444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9814
SELECT - 98 + - CAST( - CASE 97 WHEN + + ( - ( 58 ) ) THEN SUM( 56 ) * + 94 + + - COUNT( * ) - + + COUNT( * ) * - 62 * - 87 + - CAST( + - 2 AS SIGNED ) WHEN + COUNT( - 87 ) THEN NULL ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT - 98 + - CAST ( - CASE 97 WHEN + + ( - ( 58 ) ) THEN SUM ( 56 ) * + 94 + + - COUNT ( * ) - + + COUNT ( * ) * - 62 * - 87 + - CAST ( + - 2 AS INTEGER ) WHEN + COUNT ( - 87 ) THEN NULL ELSE NULL END AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9815
SELECT ALL 98 * 27 + + NULLIF ( - 50, - 55 * - 92 * + 14 ) + - + 72 + - MAX( - + 75 ) - + CAST( + MIN( ALL + 37 ) AS SIGNED ) * + + 64 * + 25
----
-56601

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL 98 * 27 + + NULLIF ( - 50, - 55 * - 92 * + 14 ) + - + 72 + - MAX ( - + 75 ) - + CAST ( + MIN ( ALL + 37 ) AS INTEGER ) * + + 64 * + 25
----
-56601

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL + COALESCE ( - COUNT( - 67 ), - - 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + COALESCE ( - COUNT ( - 67 ), - - 38 )
----
-1

query I rowsort
SELECT DISTINCT 73 * + 65 + + 79 + - + 2 AS col2
----
4822

query I rowsort
SELECT + 44 - 37 AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9819
SELECT ALL 50 DIV + 84 col2
----
0

skipif mysql # not compatible
query I rowsort label-9819
SELECT ALL 50 / + 84 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ALL COUNT( * ) * - + ( - - COUNT( * ) ) - 67 * 51 * - 79
----
269942

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL COUNT ( * ) * - + ( - - COUNT ( * ) ) - 67 * 51 * - 79
----
269942

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT + MAX( DISTINCT - 95 ) * - 21 - - 97 AS col1
----
2092

skipif mysql # not compatible
query I rowsort label-9821
SELECT + MAX ( DISTINCT - 95 ) * - 21 - - 97 AS col1
----
2092

query I rowsort
SELECT COALESCE ( - 59, + 11 * + - 42 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT - COUNT( * ) * - - 98 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9823
SELECT - COUNT ( * ) * - - 98 AS col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9824
SELECT - COUNT( * ) DIV + COALESCE ( 74, + + COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9824
SELECT - COUNT ( * ) / + COALESCE ( 74, + + COUNT ( * ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9825
SELECT ALL 85 * ( + - COUNT( * ) ) - + 32 AS col2, NULLIF ( - 48, + NULLIF ( CAST( NULL AS SIGNED ), - + COUNT( * ) + - 25 - + COUNT( * ) ) + + MAX( + + ( - 34 ) ) )
----
-117
-48

skipif mysql # not compatible
query II rowsort label-9825
SELECT ALL 85 * ( + - COUNT ( * ) ) - + 32 AS col2, NULLIF ( - 48, + NULLIF ( CAST ( NULL AS INTEGER ), - + COUNT ( * ) + - 25 - + COUNT ( * ) ) + + MAX ( + + ( - 34 ) ) )
----
-117
-48

query I rowsort
SELECT COALESCE ( - 8, 7 + - 26 ) AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT - CAST( NULL AS SIGNED ) * + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT - CAST ( NULL AS INTEGER ) * + + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT - COUNT( DISTINCT + ( + 26 ) ) * + - ( 89 ) * - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-9828
SELECT - COUNT ( DISTINCT + ( + 26 ) ) * + - ( 89 ) * - COUNT ( * )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9829
SELECT + CAST( NULL AS SIGNED ) * - 9 - 34 * + 66, 13 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-9829
SELECT + CAST ( NULL AS INTEGER ) * - 9 - 34 * + 66, 13 AS col2
----
NULL
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9830
SELECT + 7 AS col0, + COUNT( * ) * - + 59
----
7
-59

skipif mysql # not compatible
query II rowsort label-9830
SELECT + 7 AS col0, + COUNT ( * ) * - + 59
----
7
-59

query II rowsort
SELECT ALL + 69 AS col2, 17 AS col0
----
69
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9832
SELECT COALESCE ( + CAST( + - 35 AS SIGNED ), COUNT( * ) * NULLIF ( - COUNT( * ), - + MIN( DISTINCT + 75 ) + - 20 ) + CAST( NULL AS SIGNED ), - 13 * 96 DIV + + 70 + - 82 + - MIN( DISTINCT + 38 ) - + COUNT( * ) DIV + 33 + 21 * + ( 42 + + 66 ) ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-9832
SELECT COALESCE ( + CAST ( + - 35 AS INTEGER ), COUNT ( * ) * NULLIF ( - COUNT ( * ), - + MIN ( DISTINCT + 75 ) + - 20 ) + CAST ( NULL AS INTEGER ), - 13 * 96 / + + 70 + - 82 + - MIN ( DISTINCT + 38 ) - + COUNT ( * ) / + 33 + 21 * + ( 42 + + 66 ) ) col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9833
SELECT + 55 * - CASE 6 WHEN + COUNT( * ) * + + 25 THEN NULL WHEN + 1 THEN NULL ELSE + 61 - - CAST( - CASE 26 WHEN + + 92 THEN + - 76 WHEN - + 16 THEN - 93 - - - COALESCE ( - CASE - 80 WHEN + - CAST( + 45 AS SIGNED ) THEN NULL WHEN - MIN( 34 ) THEN + 93 END, - 35 ) * 64 WHEN 33 THEN + 43 / - 21 ELSE NULL END AS SIGNED ) END + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT + 55 * - CASE 6 WHEN + COUNT ( * ) * + + 25 THEN NULL WHEN + 1 THEN NULL ELSE + 61 - - CAST ( - CASE 26 WHEN + + 92 THEN + - 76 WHEN - + 16 THEN - 93 - - - COALESCE ( - CASE - 80 WHEN + - CAST ( + 45 AS INTEGER ) THEN NULL WHEN - MIN ( 34 ) THEN + 93 END, - 35 ) * 64 WHEN 33 THEN + 43 / - 21 ELSE NULL END AS INTEGER ) END + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT - - 72 + 80 * 75 + NULLIF ( - COALESCE ( 34, - 51, + 14 + + 71 ), SUM( + 3 ) ) * - 49 + 31
----
7769

skipif mysql # not compatible
query I rowsort label-9834
SELECT - - 72 + 80 * 75 + NULLIF ( - COALESCE ( 34, - 51, + 14 + + 71 ), SUM ( + 3 ) ) * - 49 + 31
----
7769

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT + - 91 * - + COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9835
SELECT + - 91 * - + COUNT ( * ) AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9836
SELECT + 9 DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-9836
SELECT + 9 / - 20
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9837
SELECT DISTINCT - CASE - CAST( NULL AS SIGNED ) WHEN 67 * 95 + 16 THEN - - 27 * 57 ELSE - - COALESCE ( - 80, - - 44 + - 17 * + 97 ) * 78 * - 39 END + + COUNT( * ) - NULLIF ( 68, + 63 / 43 + 93 * + CASE - 60 + - 48 WHEN - 68 / 65 THEN 62 WHEN + 81 THEN NULL ELSE NULL END ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT - CASE - CAST ( NULL AS INTEGER ) WHEN 67 * 95 + 16 THEN - - 27 * 57 ELSE - - COALESCE ( - 80, - - 44 + - 17 * + 97 ) * 78 * - 39 END + + COUNT ( * ) - NULLIF ( 68, + 63 / 43 + 93 * + CASE - 60 + - 48 WHEN - 68 / 65 THEN 62 WHEN + 81 THEN NULL ELSE NULL END ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT - 53 + + CAST( 96 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-9838
SELECT - 53 + + CAST ( 96 AS INTEGER )
----
43

query I rowsort
SELECT ALL 97 + - 68
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT - 67 + MIN( + ( - 67 ) ) AS col2
----
-134

skipif mysql # not compatible
query I rowsort label-9840
SELECT - 67 + MIN ( + ( - 67 ) ) AS col2
----
-134

onlyif mysql # aggregate syntax: 
query III rowsort label-9841
SELECT ALL - 25 * - + 74 * + COUNT( * ) AS col2, 88 AS col0, - 79 - 33 col0
----
1850
88
-112

skipif mysql # not compatible
query III rowsort label-9841
SELECT ALL - 25 * - + 74 * + COUNT ( * ) AS col2, 88 AS col0, - 79 - 33 col0
----
1850
88
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT - + 14 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-9842
SELECT - + 14 / - 53
----
0

query I rowsort
SELECT ALL - 76 + - 72
----
-148

query I rowsort
SELECT - - 70 * + + 56 - - 73
----
3993

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT - COUNT( + 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-9845
SELECT - COUNT ( + 54 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9846
SELECT + - 90 + - + CASE COUNT( * ) WHEN + ( 30 ) * + 47 + 53 * + + CASE - + 74 WHEN - - ( + COALESCE ( - 42, - 10 * - 44 + + 79 ) ) * + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) THEN - 5 + - 81 ELSE 74 END + + 38 THEN - 46 * 14 + + 65 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT + - 90 + - + CASE COUNT ( * ) WHEN + ( 30 ) * + 47 + 53 * + + CASE - + 74 WHEN - - ( + COALESCE ( - 42, - 10 * - 44 + + 79 ) ) * + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) THEN - 5 + - 81 ELSE 74 END + + 38 THEN - 46 * 14 + + 65 END col0
----
NULL

query II rowsort
SELECT ALL 21 col2, 60
----
21
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9848
SELECT - CAST( NULL AS SIGNED ) col1, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-9848
SELECT - CAST ( NULL AS INTEGER ) col1, 98
----
NULL
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9849
SELECT + + 15 + + MAX( - 20 ) + + 88 - + 21 * + + 19 AS col1, 31
----
-316
31

skipif mysql # not compatible
query II rowsort label-9849
SELECT + + 15 + + MAX ( - 20 ) + + 88 - + 21 * + + 19 AS col1, 31
----
-316
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT + ( + 55 ) * + 87 - - ( + + 10 ) - + 85 * + - COALESCE ( 14, - CAST( + 79 AS SIGNED ) ) - + 10 * - + 93
----
6915

skipif mysql # not compatible
query I rowsort label-9850
SELECT + ( + 55 ) * + 87 - - ( + + 10 ) - + 85 * + - COALESCE ( 14, - CAST ( + 79 AS INTEGER ) ) - + 10 * - + 93
----
6915

query I rowsort
SELECT ALL 9 * + + 91 AS col1
----
819

query III rowsort
SELECT DISTINCT + 82 + 88 + 48 AS col1, + 86 AS col2, 75
----
218
86
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT 39 - - - ( - COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT 39 - - - ( - COUNT ( * ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9854
SELECT ALL MAX( ALL + CAST( + 84 AS SIGNED ) )
----
84

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL MAX ( ALL + CAST ( + 84 AS INTEGER ) )
----
84

query I rowsort
SELECT DISTINCT 62 * - + 84 * + 46
----
-239568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9856
SELECT + 87 * COUNT( * ) DIV - - 52 + + + NULLIF ( + 73, 64 + - - 1 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-9856
SELECT + 87 * COUNT ( * ) / - - 52 + + + NULLIF ( + 73, 64 + - - 1 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9857
SELECT CAST( - CASE ( - 97 ) WHEN + COUNT( * ) THEN NULL WHEN - 22 THEN - - MIN( ALL 26 ) * + 34 + + 42 + - 28 - - 64 END AS SIGNED ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT CAST ( - CASE ( - 97 ) WHEN + COUNT ( * ) THEN NULL WHEN - 22 THEN - - MIN ( ALL 26 ) * + 34 + + 42 + - 28 - - 64 END AS INTEGER ) + - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + ( - COALESCE ( - - 72, + 28, - 62 * - - 87 + + 53 + + 14 + + + 68 ) ) * ( 60 ) * + 78
----
-336960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9859
SELECT DISTINCT 96 DIV COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT 96 / COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT 17 + - + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9860
SELECT 17 + - + COUNT ( * ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL COUNT( * ) * - 29 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL COUNT ( * ) * - 29 AS col2
----
-29

query I rowsort
SELECT - 92 * + + 74 + + - 41
----
-6849

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL COUNT( * ) * + 31 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL COUNT ( * ) * + 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT + 71 + + - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-9864
SELECT + 71 + + - COUNT ( * )
----
70

query II rowsort
SELECT ALL - 90 * - 87 AS col0, + 51
----
7830
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9866
SELECT ALL - COUNT( * ) + COALESCE ( 73, - CAST( NULL AS SIGNED ) ) AS col2, 24 AS col0
----
72
24

skipif mysql # not compatible
query II rowsort label-9866
SELECT ALL - COUNT ( * ) + COALESCE ( 73, - CAST ( NULL AS INTEGER ) ) AS col2, 24 AS col0
----
72
24

query I rowsort
SELECT ALL 7 * 73
----
511

onlyif mysql # aggregate syntax: 
query II rowsort label-9868
SELECT ALL COUNT( * ) + + 26 + 73 * + 75 AS col2, + 62 AS col0
----
5502
62

skipif mysql # not compatible
query II rowsort label-9868
SELECT ALL COUNT ( * ) + + 26 + 73 * + 75 AS col2, + 62 AS col0
----
5502
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT DISTINCT - - 85 + 99 * - COUNT( * ) + 50
----
36

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT - - 85 + 99 * - COUNT ( * ) + 50
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT ALL - 80 + - - NULLIF ( - + COALESCE ( + + 65, + SUM( + 59 ) + + 63 ), - ( + + 52 ) ) * 80 AS col1
----
-5280

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL - 80 + - - NULLIF ( - + COALESCE ( + + 65, + SUM ( + 59 ) + + 63 ), - ( + + 52 ) ) * 80 AS col1
----
-5280

query I rowsort
SELECT - + COALESCE ( 4, - ( - 58 ), + 93 * + - 4 )
----
-4

query I rowsort
SELECT ALL + + 56 + + 74
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9873
SELECT 24 - + CAST( + 63 AS SIGNED ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-9873
SELECT 24 - + CAST ( + 63 AS INTEGER ) AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9874
SELECT + COUNT( * ) * - 81 AS col2, - 75 + - + 21 + + 45 * - - COUNT( * ) DIV + 93 * - + 95 col2
----
-81
-96

skipif mysql # not compatible
query II rowsort label-9874
SELECT + COUNT ( * ) * - 81 AS col2, - 75 + - + 21 + + 45 * - - COUNT ( * ) / + 93 * - + 95 col2
----
-81
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9875
SELECT ( + CAST( NULL AS DECIMAL ) ) * - 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT ( + CAST ( NULL AS REAL ) ) * - 86 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9876
SELECT ALL + + 43 * + - 83 AS col0, + 41 / - - 83 + + CAST( NULL AS SIGNED ) AS col1
----
-3569
NULL

skipif mysql # not compatible
query II rowsort label-9876
SELECT ALL + + 43 * + - 83 AS col0, + 41 / - - 83 + + CAST ( NULL AS INTEGER ) AS col1
----
-3569
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9877
SELECT DISTINCT - CAST( - 48 AS SIGNED ) AS col1, - 71 * + COUNT( - + 0 ) AS col0
----
48
-71

skipif mysql # not compatible
query II rowsort label-9877
SELECT DISTINCT - CAST ( - 48 AS INTEGER ) AS col1, - 71 * + COUNT ( - + 0 ) AS col0
----
48
-71

query I rowsort
SELECT DISTINCT + ( 11 ) + - 32 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT ALL + - ( ( 24 ) ) - 48 * - - 47 + - COUNT( * )
----
-2281

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL + - ( ( 24 ) ) - 48 * - - 47 + - COUNT ( * )
----
-2281

query I rowsort
SELECT 23 + 56 AS col2
----
79

query I rowsort
SELECT DISTINCT - 31 - + 38
----
-69

query I rowsort
SELECT ALL + 61 - - 81 col2
----
142

query I rowsort
SELECT 57 + + + 77
----
134

query I rowsort
SELECT 98 + 86 AS col1
----
184

query I rowsort
SELECT COALESCE ( - 85, - 60 ) - + 58
----
-143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9886
SELECT ALL COUNT( * ) DIV COALESCE ( 17, - - 29, + 93, + 1 * - MAX( + 7 ) - 39 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL COUNT ( * ) / COALESCE ( 17, - - 29, + 93, + 1 * - MAX ( + 7 ) - 39 ) AS col1
----
0

query I rowsort
SELECT 82 * - 9 * - - 55 * + 65 * - 17
----
44851950

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT CASE + 33 WHEN 89 THEN 57 * - 82 ELSE NULL END / - COALESCE ( COUNT( * ), - + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT CASE + 33 WHEN 89 THEN 57 * - 82 ELSE NULL END / - COALESCE ( COUNT ( * ), - + 72 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9889
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT ALL COUNT( * ) + 70 col0
----
71

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL COUNT ( * ) + 70 col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT NULLIF ( 17, + + 50 ) + - 32 + + COUNT( * ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT NULLIF ( 17, + + 50 ) + - 32 + + COUNT ( * ) col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9892
SELECT ALL 39 + NULLIF ( + 80, + COUNT( + + CAST( + 41 AS SIGNED ) ) * 86 + - - 4 + NULLIF ( - 32, - - CASE - + NULLIF ( + + CASE + 14 WHEN CASE - COALESCE ( + 6, + 44 / 3 - - 97 ) WHEN 16 * - 30 THEN 71 ELSE NULL END THEN NULL WHEN 92 THEN + 72 - - 16 END, - CASE WHEN 23 NOT BETWEEN NULL AND 94 THEN - 75 * 9 + NULLIF ( 82, 19 ) ELSE NULL END ) WHEN COUNT( * ) * - 37 THEN 4 * + 16 END ) + 13 ) * COUNT( * ) AS col2
----
119

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL 39 + NULLIF ( + 80, + COUNT ( + + CAST ( + 41 AS INTEGER ) ) * 86 + - - 4 + NULLIF ( - 32, - - CASE - + NULLIF ( + + CASE + 14 WHEN CASE - COALESCE ( + 6, + 44 / 3 - - 97 ) WHEN 16 * - 30 THEN 71 ELSE NULL END THEN NULL WHEN 92 THEN + 72 - - 16 END, - CASE WHEN 23 NOT BETWEEN NULL AND 94 THEN - 75 * 9 + NULLIF ( 82, 19 ) ELSE NULL END ) WHEN COUNT ( * ) * - 37 THEN 4 * + 16 END ) + 13 ) * COUNT ( * ) AS col2
----
119

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9893
SELECT + COALESCE ( - 53, - 63 - - 18 + + 21 + + 49, + CAST( + - 0 AS SIGNED ) * + 40 - - - 56 - - 33 + - 72 DIV + + 43 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9893
SELECT + COALESCE ( - 53, - 63 - - 18 + + 21 + + 49, + CAST ( + - 0 AS INTEGER ) * + 40 - - - 56 - - 33 + - 72 / + + 43 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9894
SELECT ALL + 69 + 24 * + COUNT( * ), COALESCE ( 37, + 75 * 34, + 50 ) AS col2
----
93
37

skipif mysql # not compatible
query II rowsort label-9894
SELECT ALL + 69 + 24 * + COUNT ( * ), COALESCE ( 37, + 75 * 34, + 50 ) AS col2
----
93
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL - SUM( ALL - 94 ) * - NULLIF ( - - 79, - 18 - - - 24 )
----
-7426

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL - SUM ( ALL - 94 ) * - NULLIF ( - - 79, - 18 - - - 24 )
----
-7426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9896
SELECT DISTINCT 1 + - + ( - 89 ) + - CASE + CAST( - 37 AS SIGNED ) WHEN + ( CAST( - - COUNT( * ) AS SIGNED ) ) THEN NULL ELSE 27 END AS col1, 54 DIV + COUNT( ALL 56 ) + 10
----
63
64

skipif mysql # not compatible
query II rowsort label-9896
SELECT DISTINCT 1 + - + ( - 89 ) + - CASE + CAST ( - 37 AS INTEGER ) WHEN + ( CAST ( - - COUNT ( * ) AS INTEGER ) ) THEN NULL ELSE 27 END AS col1, 54 / + COUNT ( ALL 56 ) + 10
----
63
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9897
SELECT ALL - COALESCE ( CAST( NULL AS SIGNED ), - - 98 + - MAX( ALL - 53 ) ) col0
----
-151

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), - - 98 + - MAX ( ALL - 53 ) ) col0
----
-151

query I rowsort
SELECT ALL + 9 + + 94 + - + 99
----
4

query I rowsort
SELECT + 8 * - 59 + + 1
----
-471

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL + CASE + 18 WHEN 23 + + 98 + - 31 THEN - - 94 WHEN - 93 THEN + - 64 + + + COUNT( * ) / 81 - + ( + 39 ) + - 3 + - 80 * 39 / - 6 ELSE NULL END * - ( + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL + CASE + 18 WHEN 23 + + 98 + - 31 THEN - - 94 WHEN - 93 THEN + - 64 + + + COUNT ( * ) / 81 - + ( + 39 ) + - 3 + - 80 * 39 / - 6 ELSE NULL END * - ( + 5 )
----
NULL

query I rowsort
SELECT 38 + 12
----
50

query I rowsort
SELECT + + 0 * 26 - + 34
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT MIN( ALL + 94 ) col2
----
94

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT MIN ( ALL + 94 ) col2
----
94

query I rowsort
SELECT ALL - + NULLIF ( + 27, + 88 ) - - - 91 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT CASE 81 WHEN + 82 + - - COUNT( * ) THEN + 66 / - 91 * ( - 94 ) * - 90 - + + 74 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT CASE 81 WHEN + 82 + - - COUNT ( * ) THEN + 66 / - 91 * ( - 94 ) * - 90 - + + 74 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT ALL - 57 * - - 16 * + CAST( + 15 AS SIGNED ) * + - 63
----
861840

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL - 57 * - - 16 * + CAST ( + 15 AS INTEGER ) * + - 63
----
861840

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT + 51 + - - ( - - MIN( - 25 ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9907
SELECT + 51 + - - ( - - MIN ( - 25 ) ) AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT - + CAST( - - 92 AS SIGNED ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-9908
SELECT - + CAST ( - - 92 AS INTEGER ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT DISTINCT - 25, NULLIF ( - COUNT( * ), COUNT( ALL - 15 ) ) + - MAX( ALL + + 9 ) AS col0
----
-25
-10

skipif mysql # not compatible
query II rowsort label-9909
SELECT DISTINCT - 25, NULLIF ( - COUNT ( * ), COUNT ( ALL - 15 ) ) + - MAX ( ALL + + 9 ) AS col0
----
-25
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9910
SELECT 19, + 67 - + NULLIF ( - 82, - 78 + + ( - COUNT( * ) ) / - - 44 ) * - 46 * - 47 col1
----
19
177351

skipif mysql # not compatible
query II rowsort label-9910
SELECT 19, + 67 - + NULLIF ( - 82, - 78 + + ( - COUNT ( * ) ) / - - 44 ) * - 46 * - 47 col1
----
19
177351

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT 53 + - - 29 * - - CASE 89 WHEN - COUNT( * ) * - - 14 * - ( - 13 ) * - 11 THEN + - 70 * + 74 END + 91 + - 39 + - - ( + 73 ) * + + COUNT( * ) / + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT 53 + - - 29 * - - CASE 89 WHEN - COUNT ( * ) * - - 14 * - ( - 13 ) * - 11 THEN + - 70 * + 74 END + 91 + - 39 + - - ( + 73 ) * + + COUNT ( * ) / + + 43
----
NULL

query I rowsort
SELECT 92 * 78 AS col2
----
7176

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL MAX( + 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL MAX ( + 52 ) AS col2
----
52

query II rowsort
SELECT 32 AS col2, + 14 AS col1
----
32
14

query I rowsort
SELECT 2 + + 16 + - 18 + - 9 AS col1
----
-9

query I rowsort
SELECT DISTINCT + 39 * + 79 AS col1
----
3081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9917
SELECT ALL + COUNT( * ) * - ( 56 ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + COUNT ( * ) * - ( 56 ) / - 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT ALL 85 * + CASE + ( + - 63 ) WHEN COUNT( * ) + + + 89 THEN NULL WHEN - 22 + - 95 THEN ( + 34 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL 85 * + CASE + ( + - 63 ) WHEN COUNT ( * ) + + + 89 THEN NULL WHEN - 22 + - 95 THEN ( + 34 ) END AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 9, 10 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9920
SELECT ALL + 21 + + + 27 AS col1, - ( COUNT( * ) ) AS col1
----
48
-1

skipif mysql # not compatible
query II rowsort label-9920
SELECT ALL + 21 + + + 27 AS col1, - ( COUNT ( * ) ) AS col1
----
48
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT ALL + 8 * 95 + - 90 - - 38 * - COUNT( * )
----
632

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL + 8 * 95 + - 90 - - 38 * - COUNT ( * )
----
632

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT NULLIF ( - 19, + SUM( ALL 68 ) ) AS col2, 87
----
-19
87

skipif mysql # not compatible
query II rowsort label-9922
SELECT NULLIF ( - 19, + SUM ( ALL 68 ) ) AS col2, 87
----
-19
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT COUNT( * ) * 53 + COUNT( DISTINCT + + 71 )
----
54

skipif mysql # not compatible
query I rowsort label-9923
SELECT COUNT ( * ) * 53 + COUNT ( DISTINCT + + 71 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT - COUNT( * ) / - - 2 - + 10 * AVG ( ALL - CAST( NULL AS SIGNED ) ) * + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT - COUNT ( * ) / - - 2 - + 10 * AVG ( ALL - CAST ( NULL AS INTEGER ) ) * + + 45
----
NULL

query I rowsort
SELECT 58 * NULLIF ( - - NULLIF ( 15, - 66 ), - 17 * ( + + ( + 30 ) ) + - 77 / 60 ) * 73 * 56 + + + 33
----
3556593

query I rowsort
SELECT + 19 - - 0 col1
----
19

query I rowsort
SELECT + 95 * + 53 * + + 46
----
231610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9928
SELECT ALL - SUM( 6 ) DIV - - COALESCE ( - 87, 3 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL - SUM ( 6 ) / - - COALESCE ( - 87, 3 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT - - 93 + + + CAST( + 56 AS SIGNED )
----
149

skipif mysql # not compatible
query I rowsort label-9929
SELECT - - 93 + + + CAST ( + 56 AS INTEGER )
----
149

query I rowsort
SELECT DISTINCT 45 * - 13
----
-585

query I rowsort
SELECT ALL + 24 * + + 74
----
1776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9932
SELECT ALL + - CASE CAST( + 34 AS SIGNED ) WHEN + COUNT( * ) THEN - - 90 + - - 97 END * - + 53 + - 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL + - CASE CAST ( + 34 AS INTEGER ) WHEN + COUNT ( * ) THEN - - 90 + - - 97 END * - + 53 + - 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL + SUM( + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL + SUM ( + 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL - 75 * - - 40 + - COUNT( * )
----
-3001

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL - 75 * - - 40 + - COUNT ( * )
----
-3001

query I rowsort
SELECT ALL 56 * 78 + + 21 col1
----
4389

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + + MIN( + 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9936
SELECT + + MIN ( + 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL - 46 * + COUNT( * ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL - 46 * + COUNT ( * ) AS col2
----
-46

query II rowsort
SELECT ALL + 63, 92 AS col0
----
63
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT + + SUM( + 15 ) + 49
----
64

skipif mysql # not compatible
query I rowsort label-9939
SELECT + + SUM ( + 15 ) + 49
----
64

query I rowsort
SELECT + + 91 * - ( 51 ) AS col0
----
-4641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9941
SELECT ALL + - CAST( - 55 AS SIGNED ) * - + MAX( ALL - 71 ) * - - NULLIF ( - - MIN( - 87 ), - - 75 * - COALESCE ( - - ( + 1 ), - COUNT( * ), 71 ) ) AS col1
----
-339735

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL + - CAST ( - 55 AS INTEGER ) * - + MAX ( ALL - 71 ) * - - NULLIF ( - - MIN ( - 87 ), - - 75 * - COALESCE ( - - ( + 1 ), - COUNT ( * ), 71 ) ) AS col1
----
-339735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9942
SELECT ALL + COALESCE ( - 69, 4 * 46 * - - 13 DIV + 84, - 88 * + COUNT( * ) + + + CASE - 42 WHEN 50 THEN 60 END ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL + COALESCE ( - 69, 4 * 46 * - - 13 / + 84, - 88 * + COUNT ( * ) + + + CASE - 42 WHEN 50 THEN 60 END ) col2
----
-69

query I rowsort
SELECT + NULLIF ( + 21, + 64 )
----
21

query I rowsort
SELECT ALL 19 - - ( 18 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT + 58 * + COALESCE ( - - 95, + + 36, - - COUNT( * ) + + 99 + + COUNT( * ) )
----
5510

skipif mysql # not compatible
query I rowsort label-9945
SELECT + 58 * + COALESCE ( - - 95, + + 36, - - COUNT ( * ) + + 99 + + COUNT ( * ) )
----
5510

query III rowsort
SELECT - 1, 49 AS col2, 18 AS col1
----
-1
49
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT ALL + 56 - 11 DIV - 34 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL + 56 - 11 / - 34 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + COUNT( * ) - - - 55 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-9948
SELECT + COUNT ( * ) - - - 55 AS col1
----
-54

query I rowsort
SELECT ALL 21 * + ( - - 71 ) AS col2
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT - CASE + 84 WHEN COUNT( * ) * + 72 + + - 50 THEN 23 * COUNT( * ) - 0 ELSE + 76 END
----
-76

skipif mysql # not compatible
query I rowsort label-9950
SELECT - CASE + 84 WHEN COUNT ( * ) * + 72 + + - 50 THEN 23 * COUNT ( * ) - 0 ELSE + 76 END
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT MIN( + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT MIN ( + 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9952
SELECT - ( + CAST( + 29 AS SIGNED ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9952
SELECT - ( + CAST ( + 29 AS INTEGER ) ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL 85 * MIN( 15 )
----
1275

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL 85 * MIN ( 15 )
----
1275

query I rowsort
SELECT DISTINCT 44 + - 78 * 60
----
-4636

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL 79 + + COUNT( * ) + + COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL 79 + + COUNT ( * ) + + COUNT ( * ) AS col1
----
81

query I rowsort
SELECT DISTINCT + 8 + - 95 * + 57
----
-5407

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ALL NULLIF ( 87, - COUNT( * ) / + + 91 ) + - - COUNT( * ) * + 46 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL NULLIF ( 87, - COUNT ( * ) / + + 91 ) + - - COUNT ( * ) * + 46 AS col2
----
133

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9958
SELECT + CAST( NULL AS DECIMAL ) * COALESCE ( - 59, 97, + 5, - - 97 ) * + + MAX( ALL - 26 ) / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT + CAST ( NULL AS REAL ) * COALESCE ( - 59, 97, + 5, - - 97 ) * + + MAX ( ALL - 26 ) / - 22
----
NULL

query I rowsort
SELECT - 96 + 96 AS col2
----
0

query I rowsort
SELECT ALL - 90 + NULLIF ( - - 56, - 12 ) * 1 AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9961
SELECT DISTINCT - 81 * + ( ( - CASE + CAST( NULL AS SIGNED ) WHEN - 12 THEN NULL ELSE - 50 / + - COALESCE ( + CASE - - 75 WHEN COALESCE ( + 40, + 91 + - 65 ) + - 49 THEN + 98 END, - ( + CAST( NULL AS SIGNED ) ) / + + COUNT( * ) ) * 61 * + 11 * + 61 + + ( - 28 ) - 95 / 63 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT - 81 * + ( ( - CASE + CAST ( NULL AS INTEGER ) WHEN - 12 THEN NULL ELSE - 50 / + - COALESCE ( + CASE - - 75 WHEN COALESCE ( + 40, + 91 + - 65 ) + - 49 THEN + 98 END, - ( + CAST ( NULL AS INTEGER ) ) / + + COUNT ( * ) ) * 61 * + 11 * + 61 + + ( - 28 ) - 95 / 63 END ) )
----
NULL

query I rowsort
SELECT - 42 * - 47
----
1974

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT - 60 DIV 4
----
-15

skipif mysql # not compatible
query I rowsort label-9963
SELECT - 60 / 4
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9964
SELECT - + MAX( DISTINCT 30 ) DIV + MIN( DISTINCT - 79 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9964
SELECT - + MAX ( DISTINCT 30 ) / + MIN ( DISTINCT - 79 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9965
SELECT ALL - 35 / - CAST( - CASE - COUNT( * ) WHEN ( - - 89 ) THEN AVG ( + 32 ) * - 41 * - + NULLIF ( + 7, + COUNT( * ) ) * - NULLIF ( SUM( DISTINCT - NULLIF ( - 69, + 49 ) ), + + 95 + + CAST( NULL AS SIGNED ) ) WHEN - + 76 THEN NULL END AS SIGNED ) - - 54 / + 27 * + 87 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - 35 / - CAST ( - CASE - COUNT ( * ) WHEN ( - - 89 ) THEN AVG ( + 32 ) * - 41 * - + NULLIF ( + 7, + COUNT ( * ) ) * - NULLIF ( SUM ( DISTINCT - NULLIF ( - 69, + 49 ) ), + + 95 + + CAST ( NULL AS INTEGER ) ) WHEN - + 76 THEN NULL END AS INTEGER ) - - 54 / + 27 * + 87 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9966
SELECT - + 37 * - - CAST( NULL AS SIGNED ) - + MIN( DISTINCT + - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT - + 37 * - - CAST ( NULL AS INTEGER ) - + MIN ( DISTINCT + - 68 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT + CASE + - 72 WHEN - + COUNT( * ) THEN 32 ELSE - + 42 END
----
-42

skipif mysql # not compatible
query I rowsort label-9967
SELECT + CASE + - 72 WHEN - + COUNT ( * ) THEN 32 ELSE - + 42 END
----
-42

query I rowsort
SELECT - 6 - + 50 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT - 9 * - CASE - 9 WHEN 89 THEN NULL WHEN COUNT( * ) + - 24 THEN + 8 ELSE + 50 END AS col0
----
450

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT - 9 * - CASE - 9 WHEN 89 THEN NULL WHEN COUNT ( * ) + - 24 THEN + 8 ELSE + 50 END AS col0
----
450

onlyif mysql # aggregate syntax: 
query II rowsort label-9970
SELECT ALL ( 70 ) * + + 67 col2, + COUNT( * ) - CASE 36 WHEN - 94 THEN NULL ELSE - 9 END
----
4690
10

skipif mysql # not compatible
query II rowsort label-9970
SELECT ALL ( 70 ) * + + 67 col2, + COUNT ( * ) - CASE 36 WHEN - 94 THEN NULL ELSE - 9 END
----
4690
10

query I rowsort
SELECT ALL 64 * + + 30
----
1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT - 33 - 52 - - - 92 * - CAST( NULL AS SIGNED ) + - - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT - 33 - 52 - - - 92 * - CAST ( NULL AS INTEGER ) + - - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT DISTINCT + + MIN( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT + + MIN ( 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT - + ( + COUNT( * ) ) + 12 * + 95
----
1139

skipif mysql # not compatible
query I rowsort label-9974
SELECT - + ( + COUNT ( * ) ) + 12 * + 95
----
1139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9975
SELECT ALL - 74 * 38 DIV + - MAX( + - 91 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL - 74 * 38 / + - MAX ( + - 91 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT + - COALESCE ( + COUNT( * ), - 9 ) - MAX( + + 35 )
----
-36

skipif mysql # not compatible
query I rowsort label-9976
SELECT + - COALESCE ( + COUNT ( * ), - 9 ) - MAX ( + + 35 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9977
SELECT - CASE - COUNT( * ) WHEN + 56 - - 3 * + ( - - CAST( NULL AS DECIMAL ) ) / + + 26 + MIN( ALL + 87 ) THEN + 47 * - - 90 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT - CASE - COUNT ( * ) WHEN + 56 - - 3 * + ( - - CAST ( NULL AS REAL ) ) / + + 26 + MIN ( ALL + 87 ) THEN + 47 * - - 90 ELSE NULL END col0
----
NULL

query I rowsort
SELECT - + 35 + + 96
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT - 65 * - ( + + 70 ) - - 1 - + - 7 * + MAX( ALL + 45 )
----
4866

skipif mysql # not compatible
query I rowsort label-9979
SELECT - 65 * - ( + + 70 ) - - 1 - + - 7 * + MAX ( ALL + 45 )
----
4866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9980
SELECT - 22 * - NULLIF ( - COUNT( * ), - 11 * - + 57 + + NULLIF ( CAST( NULL AS SIGNED ), 44 + - 77 + + 64 / - + NULLIF ( + CAST( NULL AS DECIMAL ), - + COALESCE ( + - 47, + - 54 * + 64 - + COUNT( * ), 73 / - 88 + NULLIF ( - MAX( - 66 ), 33 * ( COUNT( 61 ) * 37 ) + - 55 ) ) * 81 ) + MAX( DISTINCT 14 ) ) )
----
-22

skipif mysql # not compatible
query I rowsort label-9980
SELECT - 22 * - NULLIF ( - COUNT ( * ), - 11 * - + 57 + + NULLIF ( CAST ( NULL AS INTEGER ), 44 + - 77 + + 64 / - + NULLIF ( + CAST ( NULL AS REAL ), - + COALESCE ( + - 47, + - 54 * + 64 - + COUNT ( * ), 73 / - 88 + NULLIF ( - MAX ( - 66 ), 33 * ( COUNT ( 61 ) * 37 ) + - 55 ) ) * 81 ) + MAX ( DISTINCT 14 ) ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT COALESCE ( + - CASE + + 95 WHEN - 51 THEN + 62 ELSE NULL END, - ( - 37 ) ) - COUNT( + + 14 ) + + 94
----
130

skipif mysql # not compatible
query I rowsort label-9981
SELECT COALESCE ( + - CASE + + 95 WHEN - 51 THEN + 62 ELSE NULL END, - ( - 37 ) ) - COUNT ( + + 14 ) + + 94
----
130

query I rowsort
SELECT DISTINCT + 84 + - 84
----
0

query I rowsort
SELECT NULLIF ( + + 88, + 71 / 98 / + 52 - - 82 ) + + - 87 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9984
SELECT ALL COUNT( * ) + + - CAST( 6 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL COUNT ( * ) + + - CAST ( 6 AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL 32 * + - COUNT( * ) * 96
----
-3072

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL 32 * + - COUNT ( * ) * 96
----
-3072

query I rowsort
SELECT 88 + + 86 AS col1
----
174

query II rowsort
SELECT DISTINCT ( - 35 ) + + 76 col2, - 78 AS col0
----
41
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9988
SELECT ALL SUM( DISTINCT + - 91 ) * - - 57 + - ( + 43 ) + - + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-5231

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL SUM ( DISTINCT + - 91 ) * - - 57 + - ( + 43 ) + - + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-5231

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9989
SELECT - 46, - CAST( COALESCE ( + - 16, + 81 * - 35 + - 92 ) AS SIGNED ) AS col2
----
-46
16

skipif mysql # not compatible
query II rowsort label-9989
SELECT - 46, - CAST ( COALESCE ( + - 16, + 81 * - 35 + - 92 ) AS INTEGER ) AS col2
----
-46
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9990
SELECT ALL CAST( - 65 AS SIGNED ) + + 66 AS col0, + 71 * - 36
----
1
-2556

skipif mysql # not compatible
query II rowsort label-9990
SELECT ALL CAST ( - 65 AS INTEGER ) + + 66 AS col0, + 71 * - 36
----
1
-2556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9991
SELECT DISTINCT COUNT( * ) + + 17 DIV CAST( + 85 AS SIGNED ) * 7 DIV - 77 - - 20 DIV - 24 - + + 72 col1
----
-71

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT COUNT ( * ) + + 17 / CAST ( + 85 AS INTEGER ) * 7 / - 77 - - 20 / - 24 - + + 72 col1
----
-71

query I rowsort
SELECT DISTINCT 89 + - ( 60 )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9993
SELECT ALL + NULLIF ( - 44, - 74 + + - 32 ) DIV 80 * - 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL + NULLIF ( - 44, - 74 + + - 32 ) / 80 * - 43 AS col0
----
0

query I rowsort
SELECT DISTINCT - - 80 col2
----
80

query II rowsort
SELECT - + 2 * 88 + - - 27 + - 87 + + - 72 * - - 20 col0, 22
----
-1676
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9996
SELECT - 1 DIV - - 7 + - + 2 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9996
SELECT - 1 / - - 7 + - + 2 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT ALL - 30 - - 6 DIV + 59
----
-30

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - 30 - - 6 / + 59
----
-30

query I rowsort
SELECT NULLIF ( 30, 94 * + + 99 * 74 + + 32 + + + 40 ) col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9999
SELECT - CASE + COUNT( * ) WHEN - CASE + 19 WHEN - 7 * - 3 THEN + COUNT( * ) WHEN - - 49 + + - 41 THEN + 14 END THEN NULL ELSE - SUM( - CAST( + 60 AS SIGNED ) ) + - 63 END DIV 74 + - + 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-9999
SELECT - CASE + COUNT ( * ) WHEN - CASE + 19 WHEN - 7 * - 3 THEN + COUNT ( * ) WHEN - - 49 + + - 41 THEN + 14 END THEN NULL ELSE - SUM ( - CAST ( + 60 AS INTEGER ) ) + - 63 END / 74 + - + 74 AS col0
----
-74

