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: aggregate syntax: SIGNED type: 
query I rowsort label-0
SELECT + CASE 68 WHEN - 34 * - - COUNT( DISTINCT + - 96 ) THEN MIN( ALL - ( ( - 14 ) ) ) ELSE + - COUNT( * ) + - 89 * - + CAST( NULL AS SIGNED ) * + + 20 END * + 87 / 5 / + 43 + - + 57 * 61 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT + CASE 68 WHEN - 34 * - - COUNT ( DISTINCT + - 96 ) THEN MIN ( ALL - ( ( - 14 ) ) ) ELSE + - COUNT ( * ) + - 89 * - + CAST ( NULL AS INTEGER ) * + + 20 END * + 87 / 5 / + 43 + - + 57 * 61 * 64
----
NULL

query I rowsort
SELECT ALL - 79 + - + 13 AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2
SELECT - MIN( - 0 ) + - + ( + - 82 ) - - COUNT( * ) DIV + 57
----
82

skipif mysql # not compatible
query I rowsort label-2
SELECT - MIN ( - 0 ) + - + ( + - 82 ) - - COUNT ( * ) / + 57
----
82

query I rowsort
SELECT DISTINCT 74 + + - 37 col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4
SELECT ALL + 16 + - + 87 * + CAST( 54 AS SIGNED ) * + 77 AS col2
----
-361730

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + 16 + - + 87 * + CAST ( 54 AS INTEGER ) * + 77 AS col2
----
-361730

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT - COUNT( DISTINCT 11 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5
SELECT - COUNT ( DISTINCT 11 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6
SELECT + + COALESCE ( ( - - 54 ), 55 + 34 + - + 0 * 18 + - 55, + - SUM( 41 ) + - 18 + 61 DIV + - 98, + 97 )
----
54

skipif mysql # not compatible
query I rowsort label-6
SELECT + + COALESCE ( ( - - 54 ), 55 + 34 + - + 0 * 18 + - 55, + - SUM ( 41 ) + - 18 + 61 / + - 98, + 97 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT CASE COUNT( ALL - + 32 ) WHEN - - 5 * - - 43 * 31 + + - 17 THEN NULL WHEN 97 * - 91 THEN + + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT CASE COUNT ( ALL - + 32 ) WHEN - - 5 * - - 43 * 31 + + - 17 THEN NULL WHEN 97 * - 91 THEN + + 86 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT - COUNT( * ) + + 20 + + ( + 24 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9
SELECT - COUNT ( * ) + + 20 + + ( + 24 ) AS col0
----
43

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

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

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

query I rowsort
SELECT - 48 + - 7 + 37 + + - 55 col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-13
SELECT ALL + 84 * - + ( 94 ) + + - CAST( NULL AS SIGNED ) + + + 11 + ( + ( - - 75 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL + 84 * - + ( 94 ) + + - CAST ( NULL AS INTEGER ) + + + 11 + ( + ( - - 75 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-14
SELECT + 25, + 47 * - 26 - + CAST( + + 49 AS SIGNED ) col2
----
25
-1271

skipif mysql # not compatible
query II rowsort label-14
SELECT + 25, + 47 * - 26 - + CAST ( + + 49 AS INTEGER ) col2
----
25
-1271

query I rowsort
SELECT ALL 61 * - - 25 AS col2
----
1525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-16
SELECT - COUNT( * ) * + ( + + CAST( NULL AS SIGNED ) ) * - 17 AS col0, - 83
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-16
SELECT - COUNT ( * ) * + ( + + CAST ( NULL AS INTEGER ) ) * - 17 AS col0, - 83
----
NULL
-83

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

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

query I rowsort
SELECT NULLIF ( + + 97, - 69 * 97 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT ALL - 5 DIV + 15
----
0

skipif mysql # not compatible
query I rowsort label-19
SELECT ALL - 5 / + 15
----
0

query I rowsort
SELECT - + 88 * - 2 AS col2
----
176

query I rowsort
SELECT - - 8 * + 12
----
96

query I rowsort
SELECT + + 50 * + + 69 AS col0
----
3450

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT ALL - + 67 DIV 34 + 20 + + 41 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL - + 67 / 34 + 20 + + 41 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT - + COUNT( * ) - - - 21 + MIN( 15 ) * - 76 AS col1
----
-1162

skipif mysql # not compatible
query I rowsort label-24
SELECT - + COUNT ( * ) - - - 21 + MIN ( 15 ) * - 76 AS col1
----
-1162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-25
SELECT + CAST( - COUNT( * ) AS SIGNED ) DIV + COUNT( * ) AS col2, - 52 + 88 + + + ( + COUNT( * ) ) + - - 77 DIV - - 32
----
-1
39

skipif mysql # not compatible
query II rowsort label-25
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) / + COUNT ( * ) AS col2, - 52 + 88 + + + ( + COUNT ( * ) ) + - - 77 / - - 32
----
-1
39

query I rowsort
SELECT - 3 * - 98 col2
----
294

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

skipif mysql # not compatible
query I rowsort label-27
SELECT + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 89 * NULLIF ( 26, - AVG ( - 38 ) )
----
-2314

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-30
SELECT DISTINCT 18 * + 83 AS col0, - 97 DIV 31
----
1494
-3

skipif mysql # not compatible
query II rowsort label-30
SELECT DISTINCT 18 * + 83 AS col0, - 97 / 31
----
1494
-3

query II rowsort
SELECT ALL 35 * - - 78 AS col0, - 70
----
2730
-70

query I rowsort
SELECT + 41 - - NULLIF ( 57, - 99 ) + ( + ( - - 17 ) )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT ALL - MIN( ALL - 68 ) * + 72 AS col1
----
4896

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL - MIN ( ALL - 68 ) * + 72 AS col1
----
4896

query I rowsort
SELECT + 59 * - 55 AS col2
----
-3245

onlyif mysql # aggregate syntax: 
query II rowsort label-35
SELECT + COUNT( * ) - - COALESCE ( - 88, + - 34 ), 51 AS col2
----
-87
51

skipif mysql # not compatible
query II rowsort label-35
SELECT + COUNT ( * ) - - COALESCE ( - 88, + - 34 ), 51 AS col2
----
-87
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-36
SELECT DISTINCT - CAST( - CASE + NULLIF ( + 20, + 87 ) WHEN - 68 THEN + 93 - - 47 END AS SIGNED ) * + - ( + 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT - CAST ( - CASE + NULLIF ( + 20, + 87 ) WHEN - 68 THEN + 93 - - 47 END AS INTEGER ) * + - ( + 28 ) AS col2
----
NULL

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

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

query I rowsort
SELECT - COALESCE ( - + 65, + COALESCE ( + - ( + 2 ), + - 75 ) + - - 26 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-39
SELECT - MIN( ALL + NULLIF ( - CAST( + + 54 AS SIGNED ), + + 10 - - CAST( NULL AS DECIMAL ) ) ) + + + CASE + COUNT( * ) WHEN 71 - + 37 * - 87 THEN NULL WHEN NULLIF ( + - 32, - 29 / + 90 * + 62 * + + 50 * ( + + 69 ) + + - 44 / + 87 * + CASE + 9 WHEN 12 * 99 + 15 - 0 THEN + 24 * + SUM( 4 ) END ) THEN - 63 + + ( 24 ) + 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-39
SELECT - MIN ( ALL + NULLIF ( - CAST ( + + 54 AS INTEGER ), + + 10 - - CAST ( NULL AS REAL ) ) ) + + + CASE + COUNT ( * ) WHEN 71 - + 37 * - 87 THEN NULL WHEN NULLIF ( + - 32, - 29 / + 90 * + 62 * + + 50 * ( + + 69 ) + + - 44 / + 87 * + CASE + 9 WHEN 12 * 99 + 15 - 0 THEN + 24 * + SUM ( 4 ) END ) THEN - 63 + + ( 24 ) + 44 END AS col2
----
NULL

query I rowsort
SELECT + ( - 27 ) + - NULLIF ( - - 32, + - 73 * + 62 + + 4 / + 63 * + 65 ) AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT ALL 69 DIV 70 * - 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL 69 / 70 * - 19 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-42
SELECT - COALESCE ( 82, - 11 - + NULLIF ( + 33, - 85 + MAX( DISTINCT - 5 ) ), + 55 + CAST( NULL AS SIGNED ) - + 58 + - + 88 )
----
-82

skipif mysql # not compatible
query I rowsort label-42
SELECT - COALESCE ( 82, - 11 - + NULLIF ( + 33, - 85 + MAX ( DISTINCT - 5 ) ), + 55 + CAST ( NULL AS INTEGER ) - + 58 + - + 88 )
----
-82

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-44
SELECT - CASE + 49 WHEN - 68 THEN NULL WHEN + 35 / - + 82 + + - 65 - - ( - + 51 ) * + - 31 * 67 * + 87 * 90 / + 91 THEN + 24 END AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-44
SELECT - CASE + 49 WHEN - 68 THEN NULL WHEN + 35 / - + 82 + + - 65 - - ( - + 51 ) * + - 31 * 67 * + 87 * 90 / + 91 THEN + 24 END AS col1, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-45
SELECT DISTINCT 75 + 22 + + CAST( NULL AS SIGNED ) / + 37 / + 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT 75 + 22 + + CAST ( NULL AS INTEGER ) / + 37 / + 64 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT - MIN( 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-47
SELECT - MIN ( 91 ) AS col0
----
-91

query I rowsort
SELECT ALL 27 + 76
----
103

query I rowsort
SELECT - - NULLIF ( + 26, + 65 ) col1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-50
SELECT - NULLIF ( - - 52, - 62 ) DIV + ( - 99 ) * - - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-50
SELECT - NULLIF ( - - 52, - 62 ) / + ( - 99 ) * - - 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT - COUNT( * ) * + COUNT( * ) - + - COALESCE ( NULLIF ( + - 38, - MIN( 45 ) ), + 3 )
----
-39

skipif mysql # not compatible
query I rowsort label-51
SELECT - COUNT ( * ) * + COUNT ( * ) - + - COALESCE ( NULLIF ( + - 38, - MIN ( 45 ) ), + 3 )
----
-39

query I rowsort
SELECT DISTINCT 50 - + 31
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT - - 29 + + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-53
SELECT - - 29 + + - COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT ALL + 48 * COUNT( * ) + + 96
----
144

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL + 48 * COUNT ( * ) + + 96
----
144

query I rowsort
SELECT + 6 * + 14 * + 47 * - 13 + 40 + - - 92 AS col2
----
-51192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-56
SELECT - COUNT( * ) * - + 44 - + 32 + - 65 + + 64 DIV + COUNT( * ) - + + 95
----
-84

skipif mysql # not compatible
query I rowsort label-56
SELECT - COUNT ( * ) * - + 44 - + 32 + - 65 + + 64 / + COUNT ( * ) - + + 95
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT - - 77 DIV + 22
----
3

skipif mysql # not compatible
query I rowsort label-57
SELECT - - 77 / + 22
----
3

query I rowsort
SELECT 87 * - 99 + + 65 + + 72
----
-8476

query I rowsort
SELECT - 35 * 98
----
-3430

query I rowsort
SELECT ALL - 34 * 72 + + + 14
----
-2434

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT DISTINCT 73 * ( - NULLIF ( - + 31, 85 ) ) * - MAX( DISTINCT - 60 ) * - COUNT( + 57 ) + - - COUNT( * ) + - - 37
----
-135742

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT 73 * ( - NULLIF ( - + 31, 85 ) ) * - MAX ( DISTINCT - 60 ) * - COUNT ( + 57 ) + - - COUNT ( * ) + - - 37
----
-135742

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT 51 DIV + COALESCE ( + + 67, + - 81 * - 22, 56 * + - 75 + - - 1 - + 25 )
----
0

skipif mysql # not compatible
query I rowsort label-62
SELECT 51 / + COALESCE ( + + 67, + - 81 * - 22, 56 * + - 75 + - - 1 - + 25 )
----
0

query I rowsort
SELECT DISTINCT - 34 * - 55
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT + 79 + + SUM( + 41 ) AS col0
----
120

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT + 79 + + SUM ( + 41 ) AS col0
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-65
SELECT ALL 63 * MAX( - 48 ) AS col0, 43
----
-3024
43

skipif mysql # not compatible
query II rowsort label-65
SELECT ALL 63 * MAX ( - 48 ) AS col0, 43
----
-3024
43

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT ALL COUNT( * ) + + 82 + 13 * + - COUNT( * ) + - - 42 * 32 AS col1
----
1414

skipif mysql # not compatible
query I rowsort label-66
SELECT ALL COUNT ( * ) + + 82 + 13 * + - COUNT ( * ) + - - 42 * 32 AS col1
----
1414

query I rowsort
SELECT 86 * + ( 66 )
----
5676

query I rowsort
SELECT 92 + - NULLIF ( 82, - AVG ( + 54 ) ) AS col0
----
10

query I rowsort
SELECT ALL - 16 * 65 AS col2
----
-1040

query I rowsort
SELECT + 3 + 46 col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT DISTINCT SUM( DISTINCT + + 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT SUM ( DISTINCT + + 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL + SUM( + 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL + SUM ( + 50 ) AS col0
----
50

query I rowsort
SELECT - + NULLIF ( - - 62, + 67 ) AS col1
----
-62

query I rowsort
SELECT + COALESCE ( + 38, - 67 + 47 * - - ( - 7 ) + 85 + + 38 - - 14 * 42, - + 46 + - ( + 99 ) * - - ( 78 ) ) AS col1
----
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-76
SELECT ALL - 38 * + 70 * COUNT( COALESCE ( - 20, + - CAST( + + 29 AS SIGNED ) ) )
----
-2660

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - 38 * + 70 * COUNT ( COALESCE ( - 20, + - CAST ( + + 29 AS INTEGER ) ) )
----
-2660

query I rowsort
SELECT 45 + - - 91
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-78
SELECT - COALESCE ( - 12, - CAST( NULL AS SIGNED ) )
----
12

skipif mysql # not compatible
query I rowsort label-78
SELECT - COALESCE ( - 12, - CAST ( NULL AS INTEGER ) )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-79
SELECT DISTINCT + 11 * - CASE + ( - 73 ) WHEN - + COUNT( * ) THEN NULL ELSE 91 * - CASE 50 WHEN COUNT( * ) + + - 87 * + 33 - 77 THEN - + 10 * ( + 49 ) ELSE NULL END END * + + 43 + 40 * + 19 / + CAST( COUNT( * ) AS SIGNED ) + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT + 11 * - CASE + ( - 73 ) WHEN - + COUNT ( * ) THEN NULL ELSE 91 * - CASE 50 WHEN COUNT ( * ) + + - 87 * + 33 - 77 THEN - + 10 * ( + 49 ) ELSE NULL END END * + + 43 + 40 * + 19 / + CAST ( COUNT ( * ) AS INTEGER ) + + 23
----
NULL

query I rowsort
SELECT - 10 * + + 40 * - ( - 1 ) AS col2
----
-400

query I rowsort
SELECT ALL 80 * + + 36
----
2880

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

skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 32 AS col2
----
NULL

query I rowsort
SELECT - 54 * - 50 AS col0
----
2700

query II rowsort
SELECT 20 AS col0, + 11
----
20
11

query I rowsort
SELECT 14 + - ( 35 ) + - - 23
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-86
SELECT - 37 DIV + SUM( + - 21 ) AS col2, + 81 AS col0
----
1
81

skipif mysql # not compatible
query II rowsort label-86
SELECT - 37 / + SUM ( + - 21 ) AS col2, + 81 AS col0
----
1
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-87
SELECT + 76 * - 92 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-87
SELECT + 76 * - 92 + + CAST ( NULL AS REAL )
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-89
SELECT CASE + 20 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + + 95 / - + 88 + + 48 THEN - 46 WHEN + 67 * + 15 THEN - + 97 END * - + COUNT( * ) * + + 33 + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT CASE + 20 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 95 / - + 88 + + 48 THEN - 46 WHEN + 67 * + 15 THEN - + 97 END * - + COUNT ( * ) * + + 33 + + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT ALL + + 99 + 62 + + 47 - COUNT( * )
----
207

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL + + 99 + 62 + + 47 - COUNT ( * )
----
207

query II rowsort
SELECT 1 AS col1, 54 + - 85 + - ( + - 56 ) AS col2
----
1
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-92
SELECT DISTINCT CAST( COUNT( * ) AS DECIMAL ) + - + 92 + - 50 - + + COALESCE ( 74, 24 ) * + CAST( NULL AS DECIMAL ) * + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT CAST ( COUNT ( * ) AS REAL ) + - + 92 + - 50 - + + COALESCE ( 74, 24 ) * + CAST ( NULL AS REAL ) * + 85 AS col2
----
NULL

query II rowsort
SELECT + 99 AS col0, + 72
----
99
72

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

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

query I rowsort
SELECT 32 - - 20 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT COALESCE ( 45, - + COUNT( * ) - - + 67 - 77 ) - - - 19 * + 73 * - 8 AS col2
----
11141

skipif mysql # not compatible
query I rowsort label-96
SELECT COALESCE ( 45, - + COUNT ( * ) - - + 67 - 77 ) - - - 19 * + 73 * - 8 AS col2
----
11141

query II rowsort
SELECT 18 col1, 13 AS col0
----
18
13

onlyif mysql # aggregate syntax: 
query II rowsort label-98
SELECT ALL + 20 * + 65, COUNT( * ) AS col1
----
1300
1

skipif mysql # not compatible
query II rowsort label-98
SELECT ALL + 20 * + 65, COUNT ( * ) AS col1
----
1300
1

query II rowsort
SELECT 88 AS col2, + 18
----
88
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-100
SELECT ALL 64 + - CAST( NULL AS DECIMAL ) * - 47 * - COUNT( * ) - 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL 64 + - CAST ( NULL AS REAL ) * - 47 * - COUNT ( * ) - 98 col0
----
NULL

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

query I rowsort
SELECT ALL + 93 + - 92 * + 52
----
-4691

query I rowsort
SELECT 67 * + - 66 AS col1
----
-4422

query I rowsort
SELECT ALL 58 * 93
----
5394

query I rowsort
SELECT ALL - 29 + + 97 col1
----
68

query I rowsort
SELECT 76 - - 51 col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT DISTINCT - 48 - + - ( - - SUM( 25 ) ) * + - COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT - 48 - + - ( - - SUM ( 25 ) ) * + - COUNT ( * ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT CAST( + - 12 AS SIGNED ) * + 0 * 59 + 64
----
64

skipif mysql # not compatible
query I rowsort label-108
SELECT CAST ( + - 12 AS INTEGER ) * + 0 * 59 + 64
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-109
SELECT ALL - 30 - - CASE 26 WHEN + + 11 + - + 24 * - 82 * + 42 * + 61 + - + 44 THEN - 3 - 14 WHEN - + 90 THEN CAST( NULL AS SIGNED ) + - 74 + - - 15 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL - 30 - - CASE 26 WHEN + + 11 + - + 24 * - 82 * + 42 * + 61 + - + 44 THEN - 3 - 14 WHEN - + 90 THEN CAST ( NULL AS INTEGER ) + - 74 + - - 15 END AS col1
----
NULL

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

query I rowsort
SELECT 76 + 16 AS col0
----
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT ALL + SUM( + 20 ) * + COUNT( DISTINCT - 79 )
----
20

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL + SUM ( + 20 ) * + COUNT ( DISTINCT - 79 )
----
20

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-115
SELECT ALL 92 DIV + COUNT( 89 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL 92 / + COUNT ( 89 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL - - 48 - - - 35 * MAX( DISTINCT - 77 ) AS col1
----
2743

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - - 48 - - - 35 * MAX ( DISTINCT - 77 ) AS col1
----
2743

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT ALL + MIN( DISTINCT - 59 ) - COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL + MIN ( DISTINCT - 59 ) - COUNT ( * ) AS col1
----
-60

query I rowsort
SELECT DISTINCT + 9 * + - 30 + - - 4
----
-266

query II rowsort
SELECT DISTINCT - 88, + 17 + 79 + 27 * ( - - 22 ) col0
----
-88
690

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ALL + 81 * MIN( ALL - - ( + 35 ) )
----
2835

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL + 81 * MIN ( ALL - - ( + 35 ) )
----
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT + 34 + + COUNT( DISTINCT - 62 )
----
35

skipif mysql # not compatible
query I rowsort label-121
SELECT + 34 + + COUNT ( DISTINCT - 62 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT - 8 * - SUM( DISTINCT 48 ) AS col2
----
384

skipif mysql # not compatible
query I rowsort label-122
SELECT - 8 * - SUM ( DISTINCT 48 ) AS col2
----
384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-123
SELECT - CAST( - + 62 AS SIGNED ), 68 AS col2
----
62
68

skipif mysql # not compatible
query II rowsort label-123
SELECT - CAST ( - + 62 AS INTEGER ), 68 AS col2
----
62
68

query I rowsort
SELECT + 61 + 18
----
79

query I rowsort
SELECT ALL - 46 + - 58
----
-104

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

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

query I rowsort
SELECT + 74 * + 0 AS col0
----
0

query I rowsort
SELECT ALL 14 + + - NULLIF ( 18, 92 )
----
-4

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

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

query I rowsort
SELECT DISTINCT - + COALESCE ( + + 67, 88 * + 18, + + 24 - - 18 )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-131
SELECT - 41 DIV - 45 + - + SUM( - 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-131
SELECT - 41 / - 45 + - + SUM ( - 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-132
SELECT + - 57 AS col1, 68 + + 94 + - 59 + + COUNT( * ) + - 89 * + 27
----
-57
-2299

skipif mysql # not compatible
query II rowsort label-132
SELECT + - 57 AS col1, 68 + + 94 + - 59 + + COUNT ( * ) + - 89 * + 27
----
-57
-2299

query I rowsort
SELECT 24 * + + 78 + 52 - 61 AS col1
----
1863

onlyif mysql # aggregate syntax: 
query II rowsort label-134
SELECT MIN( ALL 67 ) AS col2, 92 * - 57 * 10 AS col2
----
67
-52440

skipif mysql # not compatible
query II rowsort label-134
SELECT MIN ( ALL 67 ) AS col2, 92 * - 57 * 10 AS col2
----
67
-52440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-135
SELECT DISTINCT - 6 * + + 35, - CAST( + + COUNT( DISTINCT CAST( - 26 AS DECIMAL ) ) AS SIGNED ) AS col2
----
-210
-1

skipif mysql # not compatible
query II rowsort label-135
SELECT DISTINCT - 6 * + + 35, - CAST ( + + COUNT ( DISTINCT CAST ( - 26 AS REAL ) ) AS INTEGER ) AS col2
----
-210
-1

query I rowsort
SELECT + 5 + - 43 AS col2
----
-38

query I rowsort
SELECT ALL 45 * + 43 - + 8
----
1927

query I rowsort
SELECT - 98 * 97 AS col1
----
-9506

onlyif mysql # aggregate syntax: 
query II rowsort label-139
SELECT ALL COUNT( * ) * + - 32 AS col1, + 33 * + 5
----
-32
165

skipif mysql # not compatible
query II rowsort label-139
SELECT ALL COUNT ( * ) * + - 32 AS col1, + 33 * + 5
----
-32
165

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT ( + + MIN( + 84 ) ) * + 1 + 12 + 93
----
189

skipif mysql # not compatible
query I rowsort label-140
SELECT ( + + MIN ( + 84 ) ) * + 1 + 12 + 93
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-141
SELECT COUNT( ALL - 90 ) AS col2, 31 AS col1
----
1
31

skipif mysql # not compatible
query II rowsort label-141
SELECT COUNT ( ALL - 90 ) AS col2, 31 AS col1
----
1
31

onlyif mysql # DIV for integer division: 
query II rowsort label-142
SELECT DISTINCT 17 * 88 AS col0, + 35 * 16 DIV - 13 col2
----
1496
-43

skipif mysql # not compatible
query II rowsort label-142
SELECT DISTINCT 17 * 88 AS col0, + 35 * 16 / - 13 col2
----
1496
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT + + CAST( NULL AS SIGNED ) * - - NULLIF ( + + ( + + COALESCE ( + + NULLIF ( - 6, - 46 ), 71 + + 1, - 78 / + - COUNT( * ) + + - 85 + + 46 - 98 / - 46, 10 ) ), + 28 ) / 78 + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-143
SELECT + + CAST ( NULL AS INTEGER ) * - - NULLIF ( + + ( + + COALESCE ( + + NULLIF ( - 6, - 46 ), 71 + + 1, - 78 / + - COUNT ( * ) + + - 85 + + 46 - 98 / - 46, 10 ) ), + 28 ) / 78 + + 13
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT - + 66 DIV 9 + + - 21 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-144
SELECT - + 66 / 9 + + - 21 AS col2
----
-28

query I rowsort
SELECT + 31 * - 66
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT ALL + - ( - 60 ) + - SUM( ALL + 58 ) * NULLIF ( - 71, + 4 )
----
4178

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL + - ( - 60 ) + - SUM ( ALL + 58 ) * NULLIF ( - 71, + 4 )
----
4178

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT - 67 + + - 63 DIV 16 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-147
SELECT - 67 + + - 63 / 16 AS col2
----
-70

query I rowsort
SELECT DISTINCT + NULLIF ( 95, - 91 + + NULLIF ( 61, + 47 ) + - - 71 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT ALL - + 16 + + COUNT( DISTINCT + + 63 )
----
-15

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL - + 16 + + COUNT ( DISTINCT + + 63 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-150
SELECT - CASE - 74 WHEN + 51 THEN - 34 ELSE + COUNT( * ) END col2, 46 AS col2
----
-1
46

skipif mysql # not compatible
query II rowsort label-150
SELECT - CASE - 74 WHEN + 51 THEN - 34 ELSE + COUNT ( * ) END col2, 46 AS col2
----
-1
46

onlyif mysql # aggregate syntax: 
query II rowsort label-151
SELECT - + ( - 31 ), 72 + - 40 * 52 + + + COALESCE ( + 17, + ( + + 88 ) * + + COALESCE ( - 0, - - 90 * 62 + ( - + 41 ) ) + - ( + 25 ) + - COUNT( - 18 ) ) AS col0
----
31
-1991

skipif mysql # not compatible
query II rowsort label-151
SELECT - + ( - 31 ), 72 + - 40 * 52 + + + COALESCE ( + 17, + ( + + 88 ) * + + COALESCE ( - 0, - - 90 * 62 + ( - + 41 ) ) + - ( + 25 ) + - COUNT ( - 18 ) ) AS col0
----
31
-1991

onlyif mysql # aggregate syntax: 
query II rowsort label-152
SELECT ALL + COUNT( * ) col1, 15 - + 51 * 78 AS col0
----
1
-3963

skipif mysql # not compatible
query II rowsort label-152
SELECT ALL + COUNT ( * ) col1, 15 - + 51 * 78 AS col0
----
1
-3963

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-153
SELECT + COUNT( + + CAST( NULL AS SIGNED ) ) + COALESCE ( - 92, - 16 * + 26 + + 62 + + NULLIF ( + 7, + 26 ), - 35 DIV + + 5 * - 38 + - 10 ) * - 45 AS col1
----
4140

skipif mysql # not compatible
query I rowsort label-153
SELECT + COUNT ( + + CAST ( NULL AS INTEGER ) ) + COALESCE ( - 92, - 16 * + 26 + + 62 + + NULLIF ( + 7, + 26 ), - 35 / + + 5 * - 38 + - 10 ) * - 45 AS col1
----
4140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-154
SELECT ALL ( + CASE - + 51 WHEN + + NULLIF ( + 95, + 5 * - 92 + 20 + 41 * + MAX( ALL + 76 ) ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE 80 * 33 END ) / 76 + - + CAST( 51 AS SIGNED ) / - + 62 + - 27 * 62 + + 24 + - + 11 + - 74 / - + CAST( NULL AS SIGNED ) * + 14 * CAST( NULL AS SIGNED ) * - ( - 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL ( + CASE - + 51 WHEN + + NULLIF ( + 95, + 5 * - 92 + 20 + 41 * + MAX ( ALL + 76 ) ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 80 * 33 END ) / 76 + - + CAST ( 51 AS INTEGER ) / - + 62 + - 27 * 62 + + 24 + - + 11 + - 74 / - + CAST ( NULL AS INTEGER ) * + 14 * CAST ( NULL AS INTEGER ) * - ( - 14 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + CASE + COALESCE ( - 44, - COUNT( * ) + + 93 ) WHEN 95 - + 83 + - 16 - 56 * + 72 * - 64 THEN + ( 6 ) ELSE 78 END
----
78

skipif mysql # not compatible
query I rowsort label-155
SELECT + CASE + COALESCE ( - 44, - COUNT ( * ) + + 93 ) WHEN 95 - + 83 + - 16 - 56 * + 72 * - 64 THEN + ( 6 ) ELSE 78 END
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-156
SELECT DISTINCT - 75 * + COUNT( * ) / + COUNT( * ) * - CASE - - COALESCE ( 27, + 9, + NULLIF ( + CAST( NULL AS SIGNED ), + - 14 * + - 39 ) ) WHEN - 25 THEN NULL WHEN - 1 THEN NULL ELSE - AVG ( + CAST( NULL AS DECIMAL ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT - 75 * + COUNT ( * ) / + COUNT ( * ) * - CASE - - COALESCE ( 27, + 9, + NULLIF ( + CAST ( NULL AS INTEGER ), + - 14 * + - 39 ) ) WHEN - 25 THEN NULL WHEN - 1 THEN NULL ELSE - AVG ( + CAST ( NULL AS REAL ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT + COALESCE ( 35, - 53 + - NULLIF ( - 2, COUNT( * ) ) ) col1
----
35

skipif mysql # not compatible
query I rowsort label-157
SELECT + COALESCE ( 35, - 53 + - NULLIF ( - 2, COUNT ( * ) ) ) col1
----
35

query I rowsort
SELECT ALL 4 * - 4
----
-16

query I rowsort
SELECT + 75 * + 40 AS col1
----
3000

query I rowsort
SELECT DISTINCT + 12 * + 58 AS col2
----
696

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT + 15 - COUNT( * ) + + - 25 * - + 78
----
1964

skipif mysql # not compatible
query I rowsort label-162
SELECT + 15 - COUNT ( * ) + + - 25 * - + 78
----
1964

onlyif mysql # DIV for integer division: 
query II rowsort label-163
SELECT 90, + 36 DIV 57 AS col2
----
90
0

skipif mysql # not compatible
query II rowsort label-163
SELECT 90, + 36 / 57 AS col2
----
90
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-164
SELECT - 78 col2, + CAST( - 3 AS SIGNED )
----
-78
-3

skipif mysql # not compatible
query II rowsort label-164
SELECT - 78 col2, + CAST ( - 3 AS INTEGER )
----
-78
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT + + 70 * - + 3 + + + 96 + + + 20 * 92 * COUNT( * ) * + 84 * + - 32 AS col2
----
-4946034

skipif mysql # not compatible
query I rowsort label-165
SELECT + + 70 * - + 3 + + + 96 + + + 20 * 92 * COUNT ( * ) * + 84 * + - 32 AS col2
----
-4946034

query II rowsort
SELECT - - 89 col0, - 71 + - - 48 AS col0
----
89
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-167
SELECT + + 26 + + ( - + 33 ) + + 91 * - + 31 * - CAST( NULL AS SIGNED ) + + 89 + + 61 - - 5 + - + COUNT( * ) + - 65 + + MIN( 79 ) * + 66 + + COUNT( * ) + + 20 / + 63 + - NULLIF ( - 55, - 56 + + 51 * + ( + 54 ) + + 39 * - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-167
SELECT + + 26 + + ( - + 33 ) + + 91 * - + 31 * - CAST ( NULL AS INTEGER ) + + 89 + + 61 - - 5 + - + COUNT ( * ) + - 65 + + MIN ( 79 ) * + 66 + + COUNT ( * ) + + 20 / + 63 + - NULLIF ( - 55, - 56 + + 51 * + ( + 54 ) + + 39 * - 7 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT + 29 * + 97 - + 66 * + 56 + COUNT( * )
----
-882

skipif mysql # not compatible
query I rowsort label-168
SELECT + 29 * + 97 - + 66 * + 56 + COUNT ( * )
----
-882

onlyif mysql # aggregate syntax: 
query II rowsort label-169
SELECT DISTINCT + 88 * - NULLIF ( - - 52, - ( MAX( ALL - + 63 ) ) ), 70 col2
----
-4576
70

skipif mysql # not compatible
query II rowsort label-169
SELECT DISTINCT + 88 * - NULLIF ( - - 52, - ( MAX ( ALL - + 63 ) ) ), 70 col2
----
-4576
70

query I rowsort
SELECT ALL + 29 + + 33 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT + - COUNT( * ) * - - 92 * + + 40 AS col1
----
-3680

skipif mysql # not compatible
query I rowsort label-171
SELECT + - COUNT ( * ) * - - 92 * + + 40 AS col1
----
-3680

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL + COUNT( * ) + + 55 * + - 99 col1
----
-5444

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + COUNT ( * ) + + 55 * + - 99 col1
----
-5444

query I rowsort
SELECT + + 74 + 71 * 0 * 75 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-174
SELECT - 32 + + + 1 + + 13 + - + 10 + - CAST( COUNT( * ) AS SIGNED ) + - 83 - + COUNT( * ) - - 43 * 20 - CASE ( - 22 ) WHEN 26 THEN NULL ELSE 76 + COALESCE ( + COUNT( * ), 15 ) END * + 35 * + + 0 DIV + 96 + 36 * COUNT( + + 75 )
----
783

skipif mysql # not compatible
query I rowsort label-174
SELECT - 32 + + + 1 + + 13 + - + 10 + - CAST ( COUNT ( * ) AS INTEGER ) + - 83 - + COUNT ( * ) - - 43 * 20 - CASE ( - 22 ) WHEN 26 THEN NULL ELSE 76 + COALESCE ( + COUNT ( * ), 15 ) END * + 35 * + + 0 / + 96 + 36 * COUNT ( + + 75 )
----
783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-175
SELECT 68 - - COUNT( * ) + + CAST( 11 AS SIGNED ) * + + COALESCE ( - 97, - - COUNT( * ) - - + MAX( + 61 ) * + 61 * - + 90 ) * - + 63 * + COUNT( * ) * - 47 + 97 + 5 * + 72 + + 34 + 52 + 62 + - - 78 DIV COUNT( DISTINCT + + 72 ) AS col0
----
-3158635

skipif mysql # not compatible
query I rowsort label-175
SELECT 68 - - COUNT ( * ) + + CAST ( 11 AS INTEGER ) * + + COALESCE ( - 97, - - COUNT ( * ) - - + MAX ( + 61 ) * + 61 * - + 90 ) * - + 63 * + COUNT ( * ) * - 47 + 97 + 5 * + 72 + + 34 + 52 + 62 + - - 78 / COUNT ( DISTINCT + + 72 ) AS col0
----
-3158635

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT ALL - 61 - 86 + + COUNT( * ) * - 5 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL - 61 - 86 + + COUNT ( * ) * - 5 AS col1
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-178
SELECT 57 * - CAST( + 23 AS SIGNED )
----
-1311

skipif mysql # not compatible
query I rowsort label-178
SELECT 57 * - CAST ( + 23 AS INTEGER )
----
-1311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-179
SELECT DISTINCT COUNT( ALL + 20 ) DIV + COUNT( * ) + - ( + - 55 ) + - + 98 + + + 32 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT COUNT ( ALL + 20 ) / + COUNT ( * ) + - ( + - 55 ) + - + 98 + + + 32 AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-180
SELECT 67 + + 75 - + - 31 + - 31 * 68 + 87 + - SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT 67 + + 75 - + - 31 + - 31 * 68 + 87 + - SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

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

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

query I rowsort
SELECT ALL + 61 - + - 5 + + + 98
----
164

query I rowsort
SELECT 86 + + + 48
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-184
SELECT 92 * ( + COUNT( 62 ) ), + 4 AS col0
----
92
4

skipif mysql # not compatible
query II rowsort label-184
SELECT 92 * ( + COUNT ( 62 ) ), + 4 AS col0
----
92
4

onlyif mysql # aggregate syntax: 
query I rowsort label-185
SELECT DISTINCT - 89 * 51 * - - COALESCE ( - SUM( + - 50 ), + 6, + - 31 ) AS col0
----
-226950

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT - 89 * 51 * - - COALESCE ( - SUM ( + - 50 ), + 6, + - 31 ) AS col0
----
-226950

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT 76 + + 95 + 75 DIV + + 8
----
180

skipif mysql # not compatible
query I rowsort label-186
SELECT 76 + + 95 + 75 / + + 8
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-187
SELECT 98 * COUNT( * ) - - - 6 * + + 28
----
-70

skipif mysql # not compatible
query I rowsort label-187
SELECT 98 * COUNT ( * ) - - - 6 * + + 28
----
-70

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT ALL - COALESCE ( 57, + - CAST( NULL AS SIGNED ), - - 99 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL - COALESCE ( 57, + - CAST ( NULL AS INTEGER ), - - 99 ) AS col1
----
-57

query I rowsort
SELECT ALL 51 * 59 * - - 44 * + 11 AS col1
----
1456356

query II rowsort
SELECT ALL ( + - 53 ) + + + 19 * - 34, 29 AS col2
----
-699
29

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-193
SELECT 20 + - + COALESCE ( COUNT( - 83 ), - - COALESCE ( - - ( - + 19 ), 51 + 35 ) DIV - - COUNT( * ) DIV - 55 * + - 6 + + 11 ) * 4 + + + 77
----
93

skipif mysql # not compatible
query I rowsort label-193
SELECT 20 + - + COALESCE ( COUNT ( - 83 ), - - COALESCE ( - - ( - + 19 ), 51 + 35 ) / - - COUNT ( * ) / - 55 * + - 6 + + 11 ) * 4 + + + 77
----
93

query I rowsort
SELECT - 20 * + - 97 + + + COALESCE ( - 50, - 34 + + + 67 ) + + 49 * 55 - - 68 * - + 5 AS col2
----
4245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-195
SELECT - 4 * + - COALESCE ( - 58, - ( - COUNT( * ) ) * ( - + 16 ) * - + 63 + - + 64 DIV - - 45 - + 58 + - 44 * + 16, 69 ) AS col0
----
-232

skipif mysql # not compatible
query I rowsort label-195
SELECT - 4 * + - COALESCE ( - 58, - ( - COUNT ( * ) ) * ( - + 16 ) * - + 63 + - + 64 / - - 45 - + 58 + - 44 * + 16, 69 ) AS col0
----
-232

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

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

query I rowsort
SELECT ALL + - 24 + + - 55 * ( 66 ) * + 63 AS col0
----
-228714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-198
SELECT ALL - CAST( 51 AS SIGNED ) * 54
----
-2754

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL - CAST ( 51 AS INTEGER ) * 54
----
-2754

onlyif mysql # aggregate syntax: 
query II rowsort label-199
SELECT DISTINCT 19 + MAX( + ( - 5 ) ), 83 * + 52 AS col1
----
14
4316

skipif mysql # not compatible
query II rowsort label-199
SELECT DISTINCT 19 + MAX ( + ( - 5 ) ), 83 * + 52 AS col1
----
14
4316

query I rowsort
SELECT 6 + - ( - 83 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-201
SELECT - 20 * + COUNT( * ) + COUNT( * ) + + 74 * + - 74 DIV COUNT( * ) * COUNT( * ) + - COUNT( * ) * + 78 col2
----
-5573

skipif mysql # not compatible
query I rowsort label-201
SELECT - 20 * + COUNT ( * ) + COUNT ( * ) + + 74 * + - 74 / COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) * + 78 col2
----
-5573

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT ( 56 ) + + + SUM( + 47 ) + - + 36
----
67

skipif mysql # not compatible
query I rowsort label-202
SELECT ( 56 ) + + + SUM ( + 47 ) + - + 36
----
67

query I rowsort
SELECT DISTINCT + 26 - NULLIF ( + 94, 33 / 4 + - 81 ) col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-204
SELECT ALL + CAST( + 52 AS SIGNED ) * + + MAX( DISTINCT 73 )
----
3796

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + CAST ( + 52 AS INTEGER ) * + + MAX ( DISTINCT 73 )
----
3796

query I rowsort
SELECT COALESCE ( 70, 42 ) * 61
----
4270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-206
SELECT ALL 35 - + CAST( COUNT( * ) AS SIGNED ) + - 0 + + 48 + + - 9 DIV + 22
----
82

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL 35 - + CAST ( COUNT ( * ) AS INTEGER ) + - 0 + + 48 + + - 9 / + 22
----
82

query I rowsort
SELECT ALL 94 * + - 38 AS col1
----
-3572

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-208
SELECT AVG ( - 6 ) - + - 59 + + - CASE + 20 WHEN + CAST( NULL AS DECIMAL ) THEN CASE - COUNT( * ) WHEN - 97 THEN + CASE + 55 WHEN 99 THEN - + 58 * + 34 / SUM( ALL - 78 ) + - 82 + 56 END - 71 WHEN - + 93 THEN - 9 END WHEN - 0 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT AVG ( - 6 ) - + - 59 + + - CASE + 20 WHEN + CAST ( NULL AS REAL ) THEN CASE - COUNT ( * ) WHEN - 97 THEN + CASE + 55 WHEN 99 THEN - + 58 * + 34 / SUM ( ALL - 78 ) + - 82 + 56 END - 71 WHEN - + 93 THEN - 9 END WHEN - 0 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-209
SELECT 76, 97 DIV + 31 - + 77 * - 29 AS col2
----
76
2236

skipif mysql # not compatible
query II rowsort label-209
SELECT 76, 97 / + 31 - + 77 * - 29 AS col2
----
76
2236

query I rowsort
SELECT 5 * + - 95 AS col0
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT CASE + + 92 WHEN - - 65 * 2 THEN 93 WHEN + ( - 41 ) * - COUNT( * ) THEN NULL ELSE NULL END * - ( - + 21 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT CASE + + 92 WHEN - - 65 * 2 THEN 93 WHEN + ( - 41 ) * - COUNT ( * ) THEN NULL ELSE NULL END * - ( - + 21 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-212
SELECT ( + 42 ) / + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) * - ( - - COUNT( * ) ) * - 21 - - 53 - COUNT( * )
----
NULL
73

skipif mysql # not compatible
query II rowsort label-212
SELECT ( + 42 ) / + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) * - ( - - COUNT ( * ) ) * - 21 - - 53 - COUNT ( * )
----
NULL
73

query II rowsort
SELECT DISTINCT + 12 * - ( + 92 ) AS col1, ( - 35 ) AS col1
----
-1104
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT 95 DIV - 79
----
-1

skipif mysql # not compatible
query I rowsort label-214
SELECT 95 / - 79
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-215
SELECT ALL 76 * 29 + - - 75 * + - 32 + 17 DIV + 84 * COUNT( * ) - + - 2 * - - 66
----
-64

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL 76 * 29 + - - 75 * + - 32 + 17 / + 84 * COUNT ( * ) - + - 2 * - - 66
----
-64

query II rowsort
SELECT DISTINCT - 33 AS col1, COALESCE ( - 26, - 20 * - + 75 + + ( + ( + COALESCE ( - 87, + 27 ) ) ) * + ( + + 79 ) * - 17 + 94, + 45 )
----
-33
-26

query I rowsort
SELECT ALL - 40 + - - 86 AS col2
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-218
SELECT DISTINCT - ( - - ( + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-218
SELECT DISTINCT - ( - - ( + CAST ( NULL AS REAL ) ) )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-220
SELECT CAST( + COALESCE ( 35, + 47, + 34 * + 2 ) AS SIGNED ) + - 51 + + 15 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT CAST ( + COALESCE ( 35, + 47, + 34 * + 2 ) AS INTEGER ) + - 51 + + 15 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-221
SELECT + COUNT( NULLIF ( CAST( + ( 66 ) AS SIGNED ), 36 * + CAST( NULL AS SIGNED ) + - - 31 + + + 2 - + 85 / - 76 + + - 4 * + 77 ) )
----
1

skipif mysql # not compatible
query I rowsort label-221
SELECT + COUNT ( NULLIF ( CAST ( + ( 66 ) AS INTEGER ), 36 * + CAST ( NULL AS INTEGER ) + - - 31 + + + 2 - + 85 / - 76 + + - 4 * + 77 ) )
----
1

query I rowsort
SELECT ALL + 95 + 71 AS col2
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-223
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), + - 94 / 69 + - CAST( NULL AS SIGNED ) ) + - CASE 30 WHEN - COUNT( * ) THEN + - 63 END + + 83 + 68 + - 42 * 71 + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), + - 94 / 69 + - CAST ( NULL AS INTEGER ) ) + - CASE 30 WHEN - COUNT ( * ) THEN + - 63 END + + 83 + 68 + - 42 * 71 + - 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-224
SELECT 1 - 23 + + 94 col0, - 70 + - - 28 * - ( - COUNT( * ) ) * - COUNT( * ) + NULLIF ( + 25, - - 37 + - COUNT( * ) * + 38 ) - - 54 DIV - 59 AS col2
----
72
-73

skipif mysql # not compatible
query II rowsort label-224
SELECT 1 - 23 + + 94 col0, - 70 + - - 28 * - ( - COUNT ( * ) ) * - COUNT ( * ) + NULLIF ( + 25, - - 37 + - COUNT ( * ) * + 38 ) - - 54 / - 59 AS col2
----
72
-73

query II rowsort
SELECT + 40, - 3 * - 49 AS col2
----
40
147

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT + 84 * COUNT( * ) - + + 43 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-226
SELECT + 84 * COUNT ( * ) - + + 43 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-227
SELECT - CAST( NULL AS SIGNED ) * + - COUNT( * ) * - + 57 * - COUNT( * ) + - 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-227
SELECT - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) * - + 57 * - COUNT ( * ) + - 81 col2
----
NULL

query I rowsort
SELECT DISTINCT 63 * 50
----
3150

query I rowsort
SELECT ALL - - 22 + - 17
----
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-231
SELECT DISTINCT + CAST( + SUM( DISTINCT NULLIF ( + 62, 26 + - 90 ) ) AS SIGNED ) + + + CAST( NULL AS SIGNED ) * + 36 * - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + CAST ( + SUM ( DISTINCT NULLIF ( + 62, 26 + - 90 ) ) AS INTEGER ) + + + CAST ( NULL AS INTEGER ) * + 36 * - 12
----
NULL

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

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

query I rowsort
SELECT 98 - 89
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-234
SELECT 69 * + COUNT( * ) + COUNT( * ) * + 42 + + 1 * - 59 + - - 35 + - - 91 + SUM( + ( - 62 ) ) DIV 96 * - SUM( DISTINCT - 42 ) - 81 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-234
SELECT 69 * + COUNT ( * ) + COUNT ( * ) * + 42 + + 1 * - 59 + - - 35 + - - 91 + SUM ( + ( - 62 ) ) / 96 * - SUM ( DISTINCT - 42 ) - 81 AS col0
----
97

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT ALL - COALESCE ( - 81, ( + - MIN( + - 56 ) ), 48 * + 83 )
----
81

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL - COALESCE ( - 81, ( + - MIN ( + - 56 ) ), 48 * + 83 )
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-238
SELECT ALL + 28 - - CASE CASE 48 WHEN - 30 * - - 99 THEN NULL ELSE 29 END WHEN + + 45 - + 58 / + 3 THEN - 42 ELSE NULL END * + AVG ( - 94 ) - - 15 * - COUNT( ALL - 11 ) + + COUNT( * ) + 49 - - + 0 * COUNT( * ) col0, - 54
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-238
SELECT ALL + 28 - - CASE CASE 48 WHEN - 30 * - - 99 THEN NULL ELSE 29 END WHEN + + 45 - + 58 / + 3 THEN - 42 ELSE NULL END * + AVG ( - 94 ) - - 15 * - COUNT ( ALL - 11 ) + + COUNT ( * ) + 49 - - + 0 * COUNT ( * ) col0, - 54
----
NULL
-54

query I rowsort
SELECT - - 17 * 10 AS col2
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-240
SELECT DISTINCT - + 67 * + CASE + COALESCE ( + 29, 44, - - 69 ) WHEN + + COUNT( * ) + - 7 THEN 37 * - 34 * + - ( + 7 ) * - CAST( + - 81 AS SIGNED ) + + 66 + SUM( + 27 ) * - - 89 + 45 + + ( - CASE - - 69 WHEN + - 82 THEN + - 33 / 73 * + 2 WHEN 59 THEN - ( + + 75 ) END ) + 9 + + 47 - + CASE - 76 WHEN NULLIF ( + - NULLIF ( + 21, - MAX( NULLIF ( + 80, - 47 ) ) + CAST( NULL AS SIGNED ) ), - 62 ) THEN + 25 WHEN 81 + 59 THEN + 67 + - 3 * - 59 END / + 66 / + 52 ELSE NULL END / - NULLIF ( CASE WHEN NULL IS NULL THEN + SUM( DISTINCT 30 ) ELSE NULL END * - 17, CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT - + 67 * + CASE + COALESCE ( + 29, 44, - - 69 ) WHEN + + COUNT ( * ) + - 7 THEN 37 * - 34 * + - ( + 7 ) * - CAST ( + - 81 AS INTEGER ) + + 66 + SUM ( + 27 ) * - - 89 + 45 + + ( - CASE - - 69 WHEN + - 82 THEN + - 33 / 73 * + 2 WHEN 59 THEN - ( + + 75 ) END ) + 9 + + 47 - + CASE - 76 WHEN NULLIF ( + - NULLIF ( + 21, - MAX ( NULLIF ( + 80, - 47 ) ) + CAST ( NULL AS INTEGER ) ), - 62 ) THEN + 25 WHEN 81 + 59 THEN + 67 + - 3 * - 59 END / + 66 / + 52 ELSE NULL END / - NULLIF ( CASE WHEN NULL IS NULL THEN + SUM ( DISTINCT 30 ) ELSE NULL END * - 17, CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT DISTINCT + MAX( ALL + 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT + MAX ( ALL + 44 ) AS col1
----
44

query II rowsort
SELECT - 94 AS col0, + 11
----
-94
11

query II rowsort
SELECT 67 AS col2, + 46
----
67
46

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT + 99 - + - 67 DIV - 72
----
99

skipif mysql # not compatible
query I rowsort label-244
SELECT + 99 - + - 67 / - 72
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT - NULLIF ( + 66, - + COUNT( * ) * - + 99 * + 20 )
----
-66

skipif mysql # not compatible
query I rowsort label-245
SELECT - NULLIF ( + 66, - + COUNT ( * ) * - + 99 * + 20 )
----
-66

query I rowsort
SELECT + 70 + - 59 + + - 4 * - 88
----
363

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-248
SELECT + NULLIF ( - + 9, - 92 ) + + CASE + 1 WHEN - + 20 THEN + 72 WHEN + 96 THEN - - 37 + COALESCE ( - + NULLIF ( - - SUM( 4 ), + 52 ), CAST( NULL AS DECIMAL ), - COUNT( * ) * + - 80 * - - COUNT( * ) * CAST( NULL AS SIGNED ) + - - 28 * + + 15 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-248
SELECT + NULLIF ( - + 9, - 92 ) + + CASE + 1 WHEN - + 20 THEN + 72 WHEN + 96 THEN - - 37 + COALESCE ( - + NULLIF ( - - SUM ( 4 ), + 52 ), CAST ( NULL AS REAL ), - COUNT ( * ) * + - 80 * - - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - - 28 * + + 15 ) END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT ALL 34 + COUNT( * ) col0
----
35

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL 34 + COUNT ( * ) col0
----
35

query I rowsort
SELECT + 40 + + 67 AS col0
----
107

query I rowsort
SELECT ALL 10 * + 19 * - 85 + - 53
----
-16203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-253
SELECT DISTINCT - 18 * CAST( NULL AS SIGNED ) + + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT - 18 * CAST ( NULL AS INTEGER ) + + - 40 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-255
SELECT - COUNT( * ) * + - 78 + - - 46 DIV 11 + + NULLIF ( + - COUNT( * ), AVG ( ALL + 62 ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-255
SELECT - COUNT ( * ) * + - 78 + - - 46 / 11 + + NULLIF ( + - COUNT ( * ), AVG ( ALL + 62 ) ) AS col1
----
81

query I rowsort
SELECT ALL + 85 * - 17 * + 20 + - 84 + + 35
----
-28949

query I rowsort
SELECT + 56 + + ( 58 ) - - - 5 * + 68 col0
----
-226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-258
SELECT + + COUNT( * ) DIV - 8 + + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-258
SELECT + + COUNT ( * ) / - 8 + + 13 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT ALL - - COUNT( * ) * 65 + + 16 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL - - COUNT ( * ) * 65 + + 16 AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-260
SELECT DISTINCT + + 49 * + 56 AS col1, 31 + + 71 * - 69 * - COUNT( * )
----
2744
4930

skipif mysql # not compatible
query II rowsort label-260
SELECT DISTINCT + + 49 * + 56 AS col1, 31 + + 71 * - 69 * - COUNT ( * )
----
2744
4930

query I rowsort
SELECT - 78 * 85 * 85 + + - 93 * - 83 AS col2
----
-555831

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT 73 * - - 51 + - + COUNT( * ) + + + 79
----
3801

skipif mysql # not compatible
query I rowsort label-263
SELECT 73 * - - 51 + - + COUNT ( * ) + + + 79
----
3801

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

query I rowsort
SELECT - 36 + - 33 AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-266
SELECT + - 87 * + 12 * ( - - 65 ), + 1 DIV + COUNT( * ) col1
----
-67860
1

skipif mysql # not compatible
query II rowsort label-266
SELECT + - 87 * + 12 * ( - - 65 ), + 1 / + COUNT ( * ) col1
----
-67860
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-267
SELECT + COUNT( * ), + ( + 71 ) - + 8 - - CASE - 62 WHEN - + 71 THEN NULL ELSE + + 15 DIV 92 END - - 76 + + 52 + - 21 AS col1
----
1
170

skipif mysql # not compatible
query II rowsort label-267
SELECT + COUNT ( * ), + ( + 71 ) - + 8 - - CASE - 62 WHEN - + 71 THEN NULL ELSE + + 15 / 92 END - - 76 + + 52 + - 21 AS col1
----
1
170

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

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

query I rowsort
SELECT - 12 * 51 AS col2
----
-612

query II rowsort
SELECT ALL 10 AS col2, 61 * + + 37 AS col0
----
10
2257

onlyif mysql # aggregate syntax: 
query II rowsort label-271
SELECT - - 29 + + CASE 81 WHEN - + 35 * + ( + COUNT( * ) ) THEN - ( - COALESCE ( 50, - + 66 + 28 ) ) END AS col2, 22 * - 84
----
NULL
-1848

skipif mysql # not compatible
query II rowsort label-271
SELECT - - 29 + + CASE 81 WHEN - + 35 * + ( + COUNT ( * ) ) THEN - ( - COALESCE ( 50, - + 66 + 28 ) ) END AS col2, 22 * - 84
----
NULL
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-272
SELECT - + 55 + - 12 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT - + 55 + - 12 + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - NULLIF ( - 13, COALESCE ( 48, - + NULLIF ( + + 98, - 11 ), + 7 ) )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-275
SELECT - - CASE ( 25 ) WHEN + 23 THEN - 10 + 53 WHEN + + CAST( NULL AS SIGNED ) + - - CASE - 94 WHEN - - 71 + - - MAX( DISTINCT - - CAST( 50 AS SIGNED ) ) THEN NULL WHEN + - 36 THEN - 4 WHEN - CAST( + ( - 40 ) AS SIGNED ) * + MIN( - + CAST( NULL AS SIGNED ) ) THEN NULL END * - CASE + 96 WHEN - COUNT( * ) THEN NULL WHEN 39 THEN 0 END + - - 28 THEN NULL ELSE 11 DIV - COALESCE ( - 74, + + 45 ) + NULLIF ( COALESCE ( - + 52, + 53 * 33 * 23, - + 84 * + 41 ), - 37 ) + + + 58 END + + 81 * - 84 AS col0
----
-6798

skipif mysql # not compatible
query I rowsort label-275
SELECT - - CASE ( 25 ) WHEN + 23 THEN - 10 + 53 WHEN + + CAST ( NULL AS INTEGER ) + - - CASE - 94 WHEN - - 71 + - - MAX ( DISTINCT - - CAST ( 50 AS INTEGER ) ) THEN NULL WHEN + - 36 THEN - 4 WHEN - CAST ( + ( - 40 ) AS INTEGER ) * + MIN ( - + CAST ( NULL AS INTEGER ) ) THEN NULL END * - CASE + 96 WHEN - COUNT ( * ) THEN NULL WHEN 39 THEN 0 END + - - 28 THEN NULL ELSE 11 / - COALESCE ( - 74, + + 45 ) + NULLIF ( COALESCE ( - + 52, + 53 * 33 * 23, - + 84 * + 41 ), - 37 ) + + + 58 END + + 81 * - 84 AS col0
----
-6798

query I rowsort
SELECT - ( - 13 ) * + - 99
----
-1287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT + 0 + + 37 + + 22 / - 87 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-277
SELECT + 0 + + 37 + + 22 / - 87 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 30 * 12 * 93
----
33480

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT - 46 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-279
SELECT - 46 / - 91 AS col0
----
0

query I rowsort
SELECT ALL - 39 + - - 57 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT DISTINCT + 85 + - - MIN( - - 1 ) + 93 + - ( - + 10 )
----
189

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT + 85 + - - MIN ( - - 1 ) + 93 + - ( - + 10 )
----
189

query I rowsort
SELECT DISTINCT - 30 * - NULLIF ( + 1, AVG ( + - 99 ) ) AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-283
SELECT ALL COUNT( * ) + + COUNT( * ) + 38 + - CAST( NULL AS DECIMAL ) * + ( - 52 ) * 30 * + 67 / - 93 + - 20 + - NULLIF ( - 27, + - MIN( + + 64 ) + + + 43 * - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL COUNT ( * ) + + COUNT ( * ) + 38 + - CAST ( NULL AS REAL ) * + ( - 52 ) * 30 * + 67 / - 93 + - 20 + - NULLIF ( - 27, + - MIN ( + + 64 ) + + + 43 * - 17 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT DISTINCT NULLIF ( + + NULLIF ( + 62, + 40 - + 75 ), - MAX( 83 ) + + 38 ) + + 87
----
149

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT NULLIF ( + + NULLIF ( + 62, + 40 - + 75 ), - MAX ( 83 ) + + 38 ) + + 87
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-285
SELECT - 56 * - COUNT( * ) AS col1, 81
----
56
81

skipif mysql # not compatible
query II rowsort label-285
SELECT - 56 * - COUNT ( * ) AS col1, 81
----
56
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-286
SELECT + CASE + 3 WHEN CAST( NULL AS SIGNED ) THEN + CASE 14 WHEN - 8 * + 55 * 83 THEN NULL WHEN + 80 + + 72 + - - AVG ( + + 76 ) * + - NULLIF ( - COUNT( + 94 ), - + ( - - NULLIF ( + + MAX( DISTINCT - 82 ), + 65 + + 78 ) ) / + 27 ) + - + CASE + 58 WHEN + 63 * + - 90 THEN NULL WHEN + 51 THEN + - 49 - 75 + 95 * - CASE - - ( 74 ) WHEN + + 68 THEN + 66 END / + COUNT( * ) END * + 25 * + COUNT( * ) * - CAST( NULL AS SIGNED ) THEN - 28 END ELSE NULL END AS col2, 41 * - 88 * - 86 + - 87 * 80
----
NULL
303328

skipif mysql # not compatible
query II rowsort label-286
SELECT + CASE + 3 WHEN CAST ( NULL AS INTEGER ) THEN + CASE 14 WHEN - 8 * + 55 * 83 THEN NULL WHEN + 80 + + 72 + - - AVG ( + + 76 ) * + - NULLIF ( - COUNT ( + 94 ), - + ( - - NULLIF ( + + MAX ( DISTINCT - 82 ), + 65 + + 78 ) ) / + 27 ) + - + CASE + 58 WHEN + 63 * + - 90 THEN NULL WHEN + 51 THEN + - 49 - 75 + 95 * - CASE - - ( 74 ) WHEN + + 68 THEN + 66 END / + COUNT ( * ) END * + 25 * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) THEN - 28 END ELSE NULL END AS col2, 41 * - 88 * - 86 + - 87 * 80
----
NULL
303328

query I rowsort
SELECT + NULLIF ( + - 31, - - 35 * - - 20 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-288
SELECT DISTINCT + 80 DIV - + 81 * - COUNT( * ) + + COUNT( * ) * + + 36 * + + 70 col0
----
2520

skipif mysql # not compatible
query I rowsort label-288
SELECT DISTINCT + 80 / - + 81 * - COUNT ( * ) + + COUNT ( * ) * + + 36 * + + 70 col0
----
2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-289
SELECT + - CAST( + 77 AS DECIMAL ) - + CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-289
SELECT + - CAST ( + 77 AS REAL ) - + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT ALL - 71 * - ( + - 4 )
----
-284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-291
SELECT + 59 DIV COUNT( * ) DIV - MIN( ALL + 17 ) + + - 89 + 11
----
-81

skipif mysql # not compatible
query I rowsort label-291
SELECT + 59 / COUNT ( * ) / - MIN ( ALL + 17 ) + + - 89 + 11
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT - ( - - COUNT( DISTINCT - 41 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-292
SELECT - ( - - COUNT ( DISTINCT - 41 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL - 22 - + 31 - COUNT( * ) + - COUNT( * ) * + NULLIF ( - 52, - 32 )
----
-2

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL - 22 - + 31 - COUNT ( * ) + - COUNT ( * ) * + NULLIF ( - 52, - 32 )
----
-2

query II rowsort
SELECT 12 * + 40 AS col0, 40 * + 20 * - + 45 AS col1
----
480
-36000

query I rowsort
SELECT ( NULLIF ( 5, + 89 ) ) col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-296
SELECT + ( + - 66 ) * - 53 * - NULLIF ( 85, 97 * - COUNT( * ) ) + + + COUNT( * ) - + 15 / + CASE + + 75 WHEN + 17 / SUM( - 14 ) - 26 THEN + + MAX( - + 42 ) / - + 11 / + 14 * 0 * 34 END
----
NULL

skipif mysql # not compatible
query I rowsort label-296
SELECT + ( + - 66 ) * - 53 * - NULLIF ( 85, 97 * - COUNT ( * ) ) + + + COUNT ( * ) - + 15 / + CASE + + 75 WHEN + 17 / SUM ( - 14 ) - 26 THEN + + MAX ( - + 42 ) / - + 11 / + 14 * 0 * 34 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-297
SELECT DISTINCT - 39 DIV - 44 * - 73 * + 23
----
0

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT - 39 / - 44 * - 73 * + 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL - SUM( DISTINCT + 76 ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - SUM ( DISTINCT + 76 ) AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-299
SELECT - COUNT( - 73 ) AS col2, 44 * + - CASE - - 46 WHEN + 77 THEN NULL WHEN - 77 + - 13 THEN + + ( 24 ) * - 63 * + 31 END * - 77 * CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-299
SELECT - COUNT ( - 73 ) AS col2, 44 * + - CASE - - 46 WHEN + 77 THEN NULL WHEN - 77 + - 13 THEN + + ( 24 ) * - 63 * + 31 END * - 77 * CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT DISTINCT 2 * - 27 AS col2
----
-54

query I rowsort
SELECT COALESCE ( + 20, + 42 ) * - 2 AS col1
----
-40

query I rowsort
SELECT ALL 15 * 51 * - 7
----
-5355

onlyif mysql # aggregate syntax: 
query II rowsort label-303
SELECT - 91, 28 + 34 * - COUNT( * ) AS col2
----
-91
-6

skipif mysql # not compatible
query II rowsort label-303
SELECT - 91, 28 + 34 * - COUNT ( * ) AS col2
----
-91
-6

query I rowsort
SELECT ALL 76 + 11 - + - NULLIF ( + 79, 37 ) AS col2
----
166

query II rowsort
SELECT - 47 AS col1, - 75
----
-47
-75

query II rowsort
SELECT DISTINCT 51, - 21 AS col1
----
51
-21

query I rowsort
SELECT ALL 29 + - 72 col0
----
-43

query I rowsort
SELECT 1 - - 60 AS col0
----
61

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

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

query I rowsort
SELECT ALL + 72 + - 17
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-311
SELECT 20 / - 31 * - + CASE 66 WHEN - 49 * + 31 + + - COALESCE ( + - 72, - 72 * - - 34 + - 80 ) THEN + 87 WHEN - CAST( NULL AS SIGNED ) + COALESCE ( + 30, + - 39, 67 * + 91 ) * 82 - + 43 THEN NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT 20 / - 31 * - + CASE 66 WHEN - 49 * + 31 + + - COALESCE ( + - 72, - 72 * - - 34 + - 80 ) THEN + 87 WHEN - CAST ( NULL AS INTEGER ) + COALESCE ( + 30, + - 39, 67 * + 91 ) * 82 - + 43 THEN NULL END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL - NULLIF ( - + NULLIF ( - + 69, NULLIF ( 66, 28 ) * 12 ), 97 + ( + + 27 ) * - 34 / + COUNT( * ) ) + + + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL - NULLIF ( - + NULLIF ( - + 69, NULLIF ( 66, 28 ) * 12 ), 97 + ( + + 27 ) * - 34 / + COUNT ( * ) ) + + + COUNT ( * )
----
-68

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

query II rowsort
SELECT 3 col0, 44 AS col2
----
3
44

query I rowsort
SELECT 1 + - 76
----
-75

query I rowsort
SELECT 10 + + 61 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT ALL + COUNT( * ) - + 98 - - 56 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL + COUNT ( * ) - + 98 - - 56 AS col2
----
-41

query I rowsort
SELECT 29 * - 99
----
-2871

query I rowsort
SELECT ALL - 82 * + 62 AS col1
----
-5084

query I rowsort
SELECT 36 + + 34 + + 75 AS col0
----
145

query I rowsort
SELECT ALL 38 / + CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE + 86 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-322
SELECT CAST( + NULLIF ( MIN( DISTINCT + 41 ), + COUNT( * ) ) AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-322
SELECT CAST ( + NULLIF ( MIN ( DISTINCT + 41 ), + COUNT ( * ) ) AS INTEGER ) AS col2
----
41

query I rowsort
SELECT ALL + - 2 - 17 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-324
SELECT - ( + + 15 ) * CASE + 57 WHEN + 94 / 81 + - 9 * - 16 * 15 THEN - 34 ELSE + CAST( - ( - 97 ) AS SIGNED ) END * + - 80 * + 49
----
5703600

skipif mysql # not compatible
query I rowsort label-324
SELECT - ( + + 15 ) * CASE + 57 WHEN + 94 / 81 + - 9 * - 16 * 15 THEN - 34 ELSE + CAST ( - ( - 97 ) AS INTEGER ) END * + - 80 * + 49
----
5703600

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

skipif mysql # not compatible
query I rowsort label-325
SELECT ( + 9 ) * - 42 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-326
SELECT + COALESCE ( + + CAST( NULL AS SIGNED ), + 93 + 64 ) + + 15 + - ( - - 34 ) + + CAST( + COALESCE ( + 43, + AVG ( DISTINCT + 8 ) ) AS SIGNED ) - + 38 * + CASE - CAST( NULL AS DECIMAL ) WHEN - - MAX( + 16 ) THEN NULL WHEN 77 + + - 63 THEN 86 * + 27 - + - 63 - - - COUNT( * ) END, - 73 * + 53 AS col0
----
NULL
-3869

skipif mysql # not compatible
query II rowsort label-326
SELECT + COALESCE ( + + CAST ( NULL AS INTEGER ), + 93 + 64 ) + + 15 + - ( - - 34 ) + + CAST ( + COALESCE ( + 43, + AVG ( DISTINCT + 8 ) ) AS INTEGER ) - + 38 * + CASE - CAST ( NULL AS REAL ) WHEN - - MAX ( + 16 ) THEN NULL WHEN 77 + + - 63 THEN 86 * + 27 - + - 63 - - - COUNT ( * ) END, - 73 * + 53 AS col0
----
NULL
-3869

onlyif mysql # aggregate syntax: 
query II rowsort label-327
SELECT + - 83 AS col2, + COUNT( - - 89 ) col2
----
-83
1

skipif mysql # not compatible
query II rowsort label-327
SELECT + - 83 AS col2, + COUNT ( - - 89 ) col2
----
-83
1

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

query I rowsort
SELECT DISTINCT - ( - - COALESCE ( - + 38, - - 56 ) )
----
38

query II rowsort
SELECT DISTINCT - 34 AS col2, 42 + 27 + + - 50 AS col1
----
-34
19

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT + MIN( - + 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-331
SELECT + MIN ( - + 64 ) AS col0
----
-64

query I rowsort
SELECT - 30 * + 22
----
-660

query II rowsort
SELECT ALL - - COALESCE ( 28, 55 ) AS col0, 36 AS col0
----
28
36

query II rowsort
SELECT + - 32 AS col1, - 11 * + 77 * - 72 AS col2
----
-32
60984

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-336
SELECT 62 + - 75 * + 50 * + CAST( + + 90 AS SIGNED ) AS col1
----
-337438

skipif mysql # not compatible
query I rowsort label-336
SELECT 62 + - 75 * + 50 * + CAST ( + + 90 AS INTEGER ) AS col1
----
-337438

query I rowsort
SELECT ALL CASE - - ( CASE + 85 WHEN + - 15 - - + 21 + 30 THEN + 40 + + 79 WHEN - 7 THEN NULL WHEN - + 18 THEN NULL END ) WHEN + 63 THEN - 20 ELSE NULL END + + 93 + - + 68 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT MIN( DISTINCT - 86 ) + - 95 AS col1
----
-181

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT MIN ( DISTINCT - 86 ) + - 95 AS col1
----
-181

query I rowsort
SELECT ALL 23 + - 29 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-341
SELECT - 23 * - CAST( NULL AS SIGNED ) * - 42 * + 89 + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-341
SELECT - 23 * - CAST ( NULL AS INTEGER ) * - 42 * + 89 + - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 58 + + 32
----
90

query I rowsort
SELECT 1 * + - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT 36 + - 46 + - + COUNT( * ) * - 20 + COUNT( * ) * - 79
----
-69

skipif mysql # not compatible
query I rowsort label-344
SELECT 36 + - 46 + - + COUNT ( * ) * - 20 + COUNT ( * ) * - 79
----
-69

query I rowsort
SELECT DISTINCT 22 * COALESCE ( + + 72, + + 53 + + 90 ) AS col2
----
1584

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT ALL - COUNT( ALL 25 ) - - SUM( + 16 ), - ( + 15 ) AS col2
----
15
-15

skipif mysql # not compatible
query II rowsort label-346
SELECT ALL - COUNT ( ALL 25 ) - - SUM ( + 16 ), - ( + 15 ) AS col2
----
15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT 26 * - + 41 * - COUNT( * )
----
1066

skipif mysql # not compatible
query I rowsort label-347
SELECT 26 * - + 41 * - COUNT ( * )
----
1066

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

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

query I rowsort
SELECT - + 18 col1
----
-18

query I rowsort
SELECT - - COALESCE ( - + 99, 58 * 70 - 27 + + 32, + 71 )
----
-99

query I rowsort
SELECT - ( + 87 ) * - - 25
----
-2175

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT DISTINCT 29 DIV - + 12 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT 29 / - + 12 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT ALL - + 63 * + 72 + + 16 + + CAST( - 6 AS SIGNED ) + - - 65 + + - 70 * - ( 47 )
----
-1171

skipif mysql # not compatible
query I rowsort label-353
SELECT ALL - + 63 * + 72 + + 16 + + CAST ( - 6 AS INTEGER ) + - - 65 + + - 70 * - ( 47 )
----
-1171

query I rowsort
SELECT DISTINCT + 11 * - 73 AS col1
----
-803

query I rowsort
SELECT - 31 * 93 col0
----
-2883

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT - COUNT( * ) / + + COUNT( * ) * - CASE - 30 WHEN + - 39 / 41 THEN - + 0 * + 96 + + 57 + - COUNT( * ) ELSE NULL END + 74 * + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT - COUNT ( * ) / + + COUNT ( * ) * - CASE - 30 WHEN + - 39 / 41 THEN - + 0 * + 96 + + 57 + - COUNT ( * ) ELSE NULL END + 74 * + 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT - COUNT( * ) * - 77 * - 39 col0
----
-3003

skipif mysql # not compatible
query I rowsort label-357
SELECT - COUNT ( * ) * - 77 * - 39 col0
----
-3003

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-359
SELECT ALL + CAST( + 8 AS SIGNED ) * - 31 + + - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL + CAST ( + 8 AS INTEGER ) * - 31 + + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT DISTINCT 33 * 88 + 38 - + 86 * - - 7 * 53 * + - MIN( + 9 ) + 54
----
290150

skipif mysql # not compatible
query I rowsort label-360
SELECT DISTINCT 33 * 88 + 38 - + 86 * - - 7 * 53 * + - MIN ( + 9 ) + 54
----
290150

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

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

query I rowsort
SELECT ALL 16 * 46 + + 15 AS col2
----
751

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

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

query I rowsort
SELECT ALL + 57 * + - 86 + - 67 AS col1
----
-4969

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-366
SELECT ALL 56 * 45 * MIN( ALL + 97 ) * - 5 + - 29 + + COUNT( * ) * 28 DIV 88 AS col1
----
-1222229

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL 56 * 45 * MIN ( ALL + 97 ) * - 5 + - 29 + + COUNT ( * ) * 28 / 88 AS col1
----
-1222229

query I rowsort
SELECT DISTINCT 40 * + + 46
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT - MAX( + - 73 ) * 43 + - - 24 + 94 * - + 13
----
1941

skipif mysql # not compatible
query I rowsort label-368
SELECT - MAX ( + - 73 ) * 43 + - - 24 + 94 * - + 13
----
1941

query I rowsort
SELECT ALL 69 - + 91 col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT DISTINCT ( + SUM( + NULLIF ( - - 48, + 91 + 75 ) ) ) col0
----
48

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT ( + SUM ( + NULLIF ( - - 48, + 91 + 75 ) ) ) col0
----
48

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), - 76 * - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-372
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), - 76 * - 14 )
----
NULL

query I rowsort
SELECT ALL 33 - 33 AS col2
----
0

query I rowsort
SELECT - 98 + 75 - - + 83
----
60

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

skipif mysql # not compatible
query I rowsort label-375
SELECT + 15 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( 49, ( - + 84 ) / + - 17 ) col2
----
-49

query I rowsort
SELECT + 97 * - 2 AS col0
----
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-378
SELECT DISTINCT COUNT( * ) * + + 54 * - CASE - 28 WHEN + 12 THEN - 26 ELSE 42 - 76 + 47 * - CASE - MIN( ALL - - 98 ) WHEN + 10 * - ( + MAX( ALL - 22 ) ) - - 4 + + 96 + + 33 / 93 + + + 44 + 31 * - 21 / CAST( NULL AS SIGNED ) * 34 THEN NULL WHEN 14 + + 25 + AVG ( + + 18 ) THEN ( - CAST( NULL AS SIGNED ) ) - + + 98 * + - 40 END * 33 / - ( + 67 ) + + 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT COUNT ( * ) * + + 54 * - CASE - 28 WHEN + 12 THEN - 26 ELSE 42 - 76 + 47 * - CASE - MIN ( ALL - - 98 ) WHEN + 10 * - ( + MAX ( ALL - 22 ) ) - - 4 + + 96 + + 33 / 93 + + + 44 + 31 * - 21 / CAST ( NULL AS INTEGER ) * 34 THEN NULL WHEN 14 + + 25 + AVG ( + + 18 ) THEN ( - CAST ( NULL AS INTEGER ) ) - + + 98 * + - 40 END * 33 / - ( + 67 ) + + 91 END
----
NULL

query I rowsort
SELECT ALL - CASE - - 80 WHEN 99 THEN - + 46 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + + 29 + - 55
----
-26

query II rowsort
SELECT - + ( 38 ) - 52 AS col0, + 4 * + 55 AS col0
----
-90
220

query I rowsort
SELECT ALL COALESCE ( - 0, - 83 )
----
0

query I rowsort
SELECT + - 54 + - 62
----
-116

query II rowsort
SELECT ALL - 54 AS col1, + 10
----
-54
10

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT DISTINCT COUNT( * ) * 6
----
6

skipif mysql # not compatible
query I rowsort label-385
SELECT DISTINCT COUNT ( * ) * 6
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-386
SELECT ALL COALESCE ( - 54, + 12 * - 99 / SUM( ALL 65 ) + - 56 + 63 + 94 * + 29 * + MAX( DISTINCT - - 90 ) ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL COALESCE ( - 54, + 12 * - 99 / SUM ( ALL 65 ) + - 56 + 63 + 94 * + 29 * + MAX ( DISTINCT - - 90 ) ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-387
SELECT ALL 36 + COUNT( * ) DIV + - 92, + ( 74 ) AS col0
----
36
74

skipif mysql # not compatible
query II rowsort label-387
SELECT ALL 36 + COUNT ( * ) / + - 92, + ( 74 ) AS col0
----
36
74

query I rowsort
SELECT DISTINCT + 40 + 87 col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT NULLIF ( + 95, - 39 * - COUNT( * ) + 93 + + 16 + - - COUNT( * ) ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-389
SELECT NULLIF ( + 95, - 39 * - COUNT ( * ) + 93 + + 16 + - - COUNT ( * ) ) AS col0
----
95

query I rowsort
SELECT - 89 + + - 52
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT ALL + 10 DIV - - 4 + - 87 + + 97 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL + 10 / - - 4 + - 87 + + 97 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-392
SELECT ALL + NULLIF ( - CAST( NULL AS SIGNED ), + + 9 * + 44 / 3 + + 51 ) / 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL + NULLIF ( - CAST ( NULL AS INTEGER ), + + 9 * + 44 / 3 + + 51 ) / 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT DISTINCT + MAX( ALL + 45 ) col2
----
45

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT + MAX ( ALL + 45 ) col2
----
45

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

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

query I rowsort
SELECT ALL 48 * + + 13 * 96
----
59904

onlyif mysql # aggregate syntax: 
query II rowsort label-396
SELECT ALL + NULLIF ( COUNT( * ), + 24 ) AS col0, 58 AS col0
----
1
58

skipif mysql # not compatible
query II rowsort label-396
SELECT ALL + NULLIF ( COUNT ( * ), + 24 ) AS col0, 58 AS col0
----
1
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-397
SELECT DISTINCT NULLIF ( 72, + + 7 * + 16 + 37 ) DIV ( + SUM( - + 47 ) ) + + 63
----
62

skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT NULLIF ( 72, + + 7 * + 16 + 37 ) / ( + SUM ( - + 47 ) ) + + 63
----
62

query I rowsort
SELECT ALL + 85 * + 57
----
4845

query I rowsort
SELECT ( - CASE - - ( 46 ) WHEN 91 * + 80 + - 62 * - + COALESCE ( 28, + 65 ) THEN ( + 78 ) WHEN + 4 THEN NULL ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT - 76 * - - 12 AS col0
----
-912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-401
SELECT ALL + 81 * + - 68 - - COALESCE ( - 1, - 40 DIV + - 31 + MIN( - ( - - ( + 6 ) ) ) + + 12 + - COUNT( * ) ) AS col0
----
-5509

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL + 81 * + - 68 - - COALESCE ( - 1, - 40 / + - 31 + MIN ( - ( - - ( + 6 ) ) ) + + 12 + - COUNT ( * ) ) AS col0
----
-5509

query II rowsort
SELECT - 81 + + + 19, - 12 AS col1
----
-62
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT - 77 * - + COUNT( * ) - + 16
----
61

skipif mysql # not compatible
query I rowsort label-403
SELECT - 77 * - + COUNT ( * ) - + 16
----
61

query III rowsort
SELECT DISTINCT + 43, 42 AS col2, + 95 * + 50 AS col2
----
43
42
4750

query I rowsort
SELECT - 10 * 68 AS col1
----
-680

query I rowsort
SELECT ALL 22 * + 99 * + + 5 AS col0
----
10890

query I rowsort
SELECT - 28 + + ( - 87 )
----
-115

query I rowsort
SELECT DISTINCT + 77 * + 86 * + 61 AS col1
----
403942

query I rowsort
SELECT 45 + - 78 AS col2
----
-33

query I rowsort
SELECT ALL + ( - 20 ) * - 4
----
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-411
SELECT ALL + CAST( + 82 AS SIGNED ) * + 1 + 47 + - + ( + 13 ) DIV 23 * + 97 col0
----
129

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + CAST ( + 82 AS INTEGER ) * + 1 + 47 + - + ( + 13 ) / 23 * + 97 col0
----
129

query II rowsort
SELECT - 30, - 56 AS col0
----
-30
-56

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

query I rowsort
SELECT 71 + + 39 AS col2
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-415
SELECT DISTINCT 37 AS col1, 7 + - - COUNT( + 96 ) + + 17 AS col1
----
37
25

skipif mysql # not compatible
query II rowsort label-415
SELECT DISTINCT 37 AS col1, 7 + - - COUNT ( + 96 ) + + 17 AS col1
----
37
25

query II rowsort
SELECT ALL - 22 col2, 98 AS col1
----
-22
98

query I rowsort
SELECT ALL - 3 + + 60
----
57

query I rowsort
SELECT DISTINCT + - 54 + - - 57 AS col0
----
3

query I rowsort
SELECT ALL - 22 + + + 33
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-420
SELECT + 60 * - CASE + 96 WHEN + SUM( ALL + + 14 ) THEN - 33 / - 19 END, 67 * 54 * + CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-420
SELECT + 60 * - CASE + 96 WHEN + SUM ( ALL + + 14 ) THEN - 33 / - 19 END, 67 * 54 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-421
SELECT ALL - 11 DIV + 37 + - 66
----
-66

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL - 11 / + 37 + - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT - + COALESCE ( COUNT( * ), + 88 * 36, - ( - + 72 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-422
SELECT - + COALESCE ( COUNT ( * ), + 88 * 36, - ( - + 72 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-423
SELECT - 90 AS col0, COUNT( * ) + - - ( + 29 ) + 38 DIV + NULLIF ( + ( - 32 ), + NULLIF ( 48, - ( - COUNT( * ) ) * + CAST( NULL AS SIGNED ) ) + + + 52 + - - COUNT( * ) )
----
-90
29

skipif mysql # not compatible
query II rowsort label-423
SELECT - 90 AS col0, COUNT ( * ) + - - ( + 29 ) + 38 / + NULLIF ( + ( - 32 ), + NULLIF ( 48, - ( - COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) ) + + + 52 + - - COUNT ( * ) )
----
-90
29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT ALL - CASE 68 WHEN + 56 THEN NULL ELSE + COALESCE ( 91, - ( ( COALESCE ( + 3, + + 12 ) ) ), + 30 * 21 + COUNT( * ) + + - COUNT( * ), + 42 ) * - 15 * - 71 + - + 34 + 28 + 97 END + - - 18 + - 72
----
-97060

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL - CASE 68 WHEN + 56 THEN NULL ELSE + COALESCE ( 91, - ( ( COALESCE ( + 3, + + 12 ) ) ), + 30 * 21 + COUNT ( * ) + + - COUNT ( * ), + 42 ) * - 15 * - 71 + - + 34 + 28 + 97 END + - - 18 + - 72
----
-97060

query II rowsort
SELECT - 26 - + 32 + - NULLIF ( - - NULLIF ( - 83, 90 ), - 71 ) AS col0, 67
----
25
67

query I rowsort
SELECT 81 * + 53 col1
----
4293

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT ALL + MIN( - 33 ) + - + MAX( ALL + 50 ) + + 12 * - + 99
----
-1271

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + MIN ( - 33 ) + - + MAX ( ALL + 50 ) + + 12 * - + 99
----
-1271

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT ALL + 76 + - - COALESCE ( COUNT( + 59 ), - - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL + 76 + - - COALESCE ( COUNT ( + 59 ), - - COUNT ( * ) )
----
77

query II rowsort
SELECT ALL - + 32 AS col0, 22
----
-32
22

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

query I rowsort
SELECT ALL - + NULLIF ( + 91, - 0 )
----
-91

query I rowsort
SELECT ALL - - 53 - 46 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT + MIN( 23 ) - - + 86 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-434
SELECT + MIN ( 23 ) - - + 86 AS col0
----
109

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-436
SELECT + - COALESCE ( ( + + 31 ), 7 + 83, - + 35 ) / - 8 + - MAX( DISTINCT + + 93 ) * + 65 + - - 86 + - CAST( 89 AS SIGNED ) / + ( - + ( - - COUNT( * ) ) ) * - 78 + + + 61 + + 38 * - 20 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-436
SELECT + - COALESCE ( ( + + 31 ), 7 + 83, - + 35 ) / - 8 + - MAX ( DISTINCT + + 93 ) * + 65 + - - 86 + - CAST ( 89 AS INTEGER ) / + ( - + ( - - COUNT ( * ) ) ) * - 78 + + + 61 + + 38 * - 20 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 63 * - 3 AS col0
----
-189

query I rowsort
SELECT - 4 * - 94 + + 3 * 70 + 67 AS col1
----
653

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT ALL 64 DIV + - COALESCE ( 91, + 94, - - 3 + 28 * + 4 * + 99 * 6 ) * 39 + - 77 + 35 * 59 + - + 44 DIV - 96 AS col1
----
1988

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL 64 / + - COALESCE ( 91, + 94, - - 3 + 28 * + 4 * + 99 * 6 ) * 39 + - 77 + 35 * 59 + - + 44 / - 96 AS col1
----
1988

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT ALL - MAX( ALL + ( + 83 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL - MAX ( ALL + ( + 83 ) ) AS col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-441
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT + - 23 ) / + SUM( + + 57 ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT + - 23 ) / + SUM ( + + 57 ) * + 98
----
NULL

query I rowsort
SELECT ALL 99 * - 99 * - + 34 AS col0
----
333234

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT 29 DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-443
SELECT 29 / 68 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-444
SELECT ALL - COALESCE ( + - COUNT( * ), ( 44 ) DIV 85 ) AS col2, - ( 95 ) DIV 6 AS col1
----
1
-15

skipif mysql # not compatible
query II rowsort label-444
SELECT ALL - COALESCE ( + - COUNT ( * ), ( 44 ) / 85 ) AS col2, - ( 95 ) / 6 AS col1
----
1
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT 39 + - + COUNT( - 52 )
----
38

skipif mysql # not compatible
query I rowsort label-445
SELECT 39 + - + COUNT ( - 52 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-446
SELECT 19 DIV + ( 90 ) * 89 + + 68 + + 80 AS col1
----
148

skipif mysql # not compatible
query I rowsort label-446
SELECT 19 / + ( 90 ) * 89 + + 68 + + 80 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT 82 * 8 * - - MIN( 70 ) - ( + 68 )
----
45852

skipif mysql # not compatible
query I rowsort label-447
SELECT 82 * 8 * - - MIN ( 70 ) - ( + 68 )
----
45852

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-448
SELECT MIN( ALL + 27 ) * - COUNT( * ) * + - 83 * 92 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT MIN ( ALL + 27 ) * - COUNT ( * ) * + - 83 * 92 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-449
SELECT DISTINCT + ( - + CASE CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) WHEN - 33 THEN - - 49 * + 59 + + + 81 WHEN - COALESCE ( - + 66, - 11 - - 34 ) + - CASE - 36 WHEN - + CAST( NULL AS SIGNED ) * + + 58 - - NULLIF ( COUNT( * ), - 80 * + + 99 * + COUNT( - + 31 ) + 93 ) THEN - - 2 * + 21 * 63 * 26 + + SUM( DISTINCT - + 60 ) + - CAST( NULL AS SIGNED ) * 59 + + MAX( DISTINCT - - 59 ) + 7 + - + 2 ELSE NULL END THEN - 99 DIV - - COUNT( - - 44 ) + - COUNT( * ) DIV 8 ELSE 56 * - - MAX( ALL + + 13 ) + + + 65 + + - 50 + 79 END ) + - COUNT( * ) + 37 AS col1
----
-786

skipif mysql # not compatible
query I rowsort label-449
SELECT DISTINCT + ( - + CASE CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN - 33 THEN - - 49 * + 59 + + + 81 WHEN - COALESCE ( - + 66, - 11 - - 34 ) + - CASE - 36 WHEN - + CAST ( NULL AS INTEGER ) * + + 58 - - NULLIF ( COUNT ( * ), - 80 * + + 99 * + COUNT ( - + 31 ) + 93 ) THEN - - 2 * + 21 * 63 * 26 + + SUM ( DISTINCT - + 60 ) + - CAST ( NULL AS INTEGER ) * 59 + + MAX ( DISTINCT - - 59 ) + 7 + - + 2 ELSE NULL END THEN - 99 / - - COUNT ( - - 44 ) + - COUNT ( * ) / 8 ELSE 56 * - - MAX ( ALL + + 13 ) + + + 65 + + - 50 + 79 END ) + - COUNT ( * ) + 37 AS col1
----
-786

onlyif mysql # aggregate syntax: 
query II rowsort label-450
SELECT ALL - COUNT( * ) + 14 AS col2, - 95
----
13
-95

skipif mysql # not compatible
query II rowsort label-450
SELECT ALL - COUNT ( * ) + 14 AS col2, - 95
----
13
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-451
SELECT 54 * - 70 * + 13 AS col1, + 9 DIV 77 DIV - - 41
----
-49140
0

skipif mysql # not compatible
query II rowsort label-451
SELECT 54 * - 70 * + 13 AS col1, + 9 / 77 / - - 41
----
-49140
0

query I rowsort
SELECT DISTINCT - 73 + + NULLIF ( - 7, + + 11 + + ( - + 65 ) ) AS col1
----
-80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-454
SELECT ALL + 82 * 13 * COALESCE ( - 12, COUNT( * ) + - 87 - + 1 * + CAST( 9 AS SIGNED ) ) AS col0
----
-12792

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL + 82 * 13 * COALESCE ( - 12, COUNT ( * ) + - 87 - + 1 * + CAST ( 9 AS INTEGER ) ) AS col0
----
-12792

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-456
SELECT + 58 + + 55 * CAST( NULL AS DECIMAL ) + 54 + + 77 + AVG ( DISTINCT - 74 ) AS col2, 73
----
NULL
73

skipif mysql # not compatible
query II rowsort label-456
SELECT + 58 + + 55 * CAST ( NULL AS REAL ) + 54 + + 77 + AVG ( DISTINCT - 74 ) AS col2, 73
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT - - CASE + COUNT( * ) WHEN + 23 + - 61 + - 1 THEN - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-457
SELECT - - CASE + COUNT ( * ) WHEN + 23 + - 61 + - 1 THEN - 40 END
----
NULL

query I rowsort
SELECT - 24 + - 45 + 74 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT 44 + - COUNT( ALL + 71 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-459
SELECT 44 + - COUNT ( ALL + 71 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-460
SELECT ALL CASE + - 27 WHEN + + 18 - - MIN( 71 ) - - 64 * - 55 + - - 41 THEN NULL WHEN - + 86 THEN NULL ELSE 89 END col2, + COUNT( - 18 )
----
89
1

skipif mysql # not compatible
query II rowsort label-460
SELECT ALL CASE + - 27 WHEN + + 18 - - MIN ( 71 ) - - 64 * - 55 + - - 41 THEN NULL WHEN - + 86 THEN NULL ELSE 89 END col2, + COUNT ( - 18 )
----
89
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-461
SELECT DISTINCT + COUNT( * ) DIV - 74 * NULLIF ( 58, - 57 + MAX( + 26 ) DIV - + 85 ) + - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT + COUNT ( * ) / - 74 * NULLIF ( 58, - 57 + MAX ( + 26 ) / - + 85 ) + - ( - COUNT ( * ) )
----
1

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

query I rowsort
SELECT - 96 * + 59 * + 65 AS col0
----
-368160

query I rowsort
SELECT - 40 * 67 AS col1
----
-2680

query I rowsort
SELECT DISTINCT ( + - ( - 81 ) ) * + 37
----
2997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-466
SELECT DISTINCT - COALESCE ( CAST( NULL AS SIGNED ), - - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT - COALESCE ( CAST ( NULL AS INTEGER ), - - 90 )
----
-90

query I rowsort
SELECT ALL COALESCE ( + 49, - 30 ) * 70 AS col0
----
3430

query I rowsort
SELECT ( 51 ) * + - 21 * - ( + 66 ) AS col0
----
70686

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

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

query I rowsort
SELECT DISTINCT 58 * - + ( 63 )
----
-3654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-471
SELECT 86 * COUNT( * ) + 60 + - + 59 DIV + 60 * - 88 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-471
SELECT 86 * COUNT ( * ) + 60 + - + 59 / + 60 * - 88 AS col0
----
146

query I rowsort
SELECT + 92 + + 62 + - 41 * 61
----
-2347

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT + 27 - - - 65 + + 4 * - 30 + + MAX( 30 ) AS col1
----
-128

skipif mysql # not compatible
query I rowsort label-473
SELECT + 27 - - - 65 + + 4 * - 30 + + MAX ( 30 ) AS col1
----
-128

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

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

query I rowsort
SELECT ALL ( - 6 ) + - 91 AS col2
----
-97

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

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL 9 + COUNT ( * ) AS col1
----
10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-478
SELECT DISTINCT COUNT( * ) * - COUNT( 71 ) DIV 38 AS col2, 85 * + COUNT( * ) AS col0
----
0
85

skipif mysql # not compatible
query II rowsort label-478
SELECT DISTINCT COUNT ( * ) * - COUNT ( 71 ) / 38 AS col2, 85 * + COUNT ( * ) AS col0
----
0
85

query I rowsort
SELECT COALESCE ( 33, + 96 )
----
33

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

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

query I rowsort
SELECT + 81 * - - COALESCE ( + + 87, + 63, - 61 ) col2
----
7047

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

skipif mysql # not compatible
query II rowsort label-482
SELECT + 30 AS col1, - COUNT ( * )
----
30
-1

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-486
SELECT - - 40 DIV + 82 * + COUNT( * ), + CASE - 44 WHEN + - ( 5 ) * - - AVG ( DISTINCT + 98 ) + 61 DIV + - 7 THEN CASE - ( - 92 ) WHEN 60 THEN - 86 END ELSE + 28 + - 77 END AS col1
----
0
-49

skipif mysql # not compatible
query II rowsort label-486
SELECT - - 40 / + 82 * + COUNT ( * ), + CASE - 44 WHEN + - ( 5 ) * - - AVG ( DISTINCT + 98 ) + 61 / + - 7 THEN CASE - ( - 92 ) WHEN 60 THEN - 86 END ELSE + 28 + - 77 END AS col1
----
0
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-487
SELECT ALL + 29 / - CAST( NULL AS SIGNED ) * + 3 + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL + 29 / - CAST ( NULL AS INTEGER ) * + 3 + + 13
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + 36, + + 83 )
----
-36

query I rowsort
SELECT ALL + 59 - - 45 AS col2
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-490
SELECT - CAST( NULL AS SIGNED ) * + CASE - 82 WHEN + 36 + COALESCE ( + - 95, + + 13 ) + - - COUNT( * ) + + - COUNT( * ) + + 78 THEN NULL WHEN 63 THEN - + 99 + 57 + + 89 WHEN - + COUNT( * ) THEN + - 22 ELSE NULL END AS col2, - 31 AS col2
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-490
SELECT - CAST ( NULL AS INTEGER ) * + CASE - 82 WHEN + 36 + COALESCE ( + - 95, + + 13 ) + - - COUNT ( * ) + + - COUNT ( * ) + + 78 THEN NULL WHEN 63 THEN - + 99 + 57 + + 89 WHEN - + COUNT ( * ) THEN + - 22 ELSE NULL END AS col2, - 31 AS col2
----
NULL
-31

query II rowsort
SELECT DISTINCT + 85 AS col2, + 6
----
85
6

query II rowsort
SELECT ALL 26, 8 - + - 47 + + + 25 * - 93 + 43 AS col0
----
26
-2227

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT - - MIN( 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-493
SELECT - - MIN ( 55 ) AS col0
----
55

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

query II rowsort
SELECT 16 col2, + 94 + + + 22
----
16
116

query I rowsort
SELECT DISTINCT - 77 * 99
----
-7623

query II rowsort
SELECT COALESCE ( + + 31, ( - 37 ) * - 29 + - + 54 ), + 78 AS col1
----
31
78

query I rowsort
SELECT ALL - - 81 * 42 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT + - 33 * + - MIN( ALL - 61 )
----
-2013

skipif mysql # not compatible
query I rowsort label-499
SELECT + - 33 * + - MIN ( ALL - 61 )
----
-2013

query I rowsort
SELECT DISTINCT - - 40 * - 32
----
-1280

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

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

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

skipif mysql # not compatible
query I rowsort label-502
SELECT - 35 / - 54 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT DISTINCT + MIN( - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT + MIN ( - 14 ) AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-504
SELECT 0 DIV 40 + 83 col0
----
83

skipif mysql # not compatible
query I rowsort label-504
SELECT 0 / 40 + 83 col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT - NULLIF ( 77, - 30 * - MIN( DISTINCT + 31 ) + - 4 ) * - 86 - - 76 - + COUNT( * ) - - 61
----
6758

skipif mysql # not compatible
query I rowsort label-505
SELECT - NULLIF ( 77, - 30 * - MIN ( DISTINCT + 31 ) + - 4 ) * - 86 - - 76 - + COUNT ( * ) - - 61
----
6758

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT - 99 DIV - - 20 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-506
SELECT - 99 / - - 20 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-507
SELECT + 5 DIV + + 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-507
SELECT + 5 / + + 50 AS col2
----
0

query I rowsort
SELECT ALL - 56 * CASE - - 8 WHEN 40 / - - 83 + - 91 THEN NULL WHEN + 70 THEN NULL ELSE 31 * - 23 END + 77 * + - 71 AS col2
----
34461

query I rowsort
SELECT - 51 + + + 13 * - - 79
----
976

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT ALL ( - 36 ) * - + 62 + - 5 DIV - + 35
----
2232

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL ( - 36 ) * - + 62 + - 5 / - + 35
----
2232

query I rowsort
SELECT ALL 39 * - 89
----
-3471

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

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT - ( - COUNT ( * ) ) * + + COUNT ( * ) / + 31
----
0

query I rowsort
SELECT ALL 95 * + 24 + + 6 AS col0
----
2286

query I rowsort
SELECT ALL 3 * + 25 * - 39 AS col2
----
-2925

query I rowsort
SELECT CASE WHEN NOT NULL IS NOT NULL THEN + 79 ELSE - 21 END
----
79

query I rowsort
SELECT ALL + 94 * 38 + - + 81 AS col2
----
3491

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT COUNT( * ) * 72 + - 2 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-517
SELECT COUNT ( * ) * 72 + - 2 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-518
SELECT ALL COUNT( * ) * - - CAST( + CAST( + 10 AS SIGNED ) AS SIGNED ) * + - 70 + - 99 + - COUNT( * ) - - - 68 col2
----
-868

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL COUNT ( * ) * - - CAST ( + CAST ( + 10 AS INTEGER ) AS INTEGER ) * + - 70 + - 99 + - COUNT ( * ) - - - 68 col2
----
-868

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-519
SELECT ALL + MAX( ALL - CAST( - + 0 AS SIGNED ) ) * + 22 AS col2, CASE 50 WHEN + 31 + - COALESCE ( + 1, - CAST( + CASE - MAX( + 14 ) WHEN SUM( + 48 ) + ( + 61 ) * + 56 THEN 62 END AS DECIMAL ) + - 52 + - 19 ) + + 15 THEN - - 14 * 52 + COALESCE ( + + ( 73 ), + COUNT( - - 16 ) ) WHEN 59 THEN NULL ELSE NULL END
----
0
NULL

skipif mysql # not compatible
query II rowsort label-519
SELECT ALL + MAX ( ALL - CAST ( - + 0 AS INTEGER ) ) * + 22 AS col2, CASE 50 WHEN + 31 + - COALESCE ( + 1, - CAST ( + CASE - MAX ( + 14 ) WHEN SUM ( + 48 ) + ( + 61 ) * + 56 THEN 62 END AS REAL ) + - 52 + - 19 ) + + 15 THEN - - 14 * 52 + COALESCE ( + + ( 73 ), + COUNT ( - - 16 ) ) WHEN 59 THEN NULL ELSE NULL END
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-520
SELECT ALL - 0 * 54 * 78 + - 35 + MIN( DISTINCT 71 ) * - COUNT( * ) - CAST( + 41 AS SIGNED )
----
-147

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL - 0 * 54 * 78 + - 35 + MIN ( DISTINCT 71 ) * - COUNT ( * ) - CAST ( + 41 AS INTEGER )
----
-147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-521
SELECT DISTINCT 85 DIV + 11 - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT 85 / + 11 - COUNT ( * ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT + 29 - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-522
SELECT + 29 - COUNT ( * )
----
28

query I rowsort
SELECT + 33 * - 2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT ALL 3 * MAX( ALL + 21 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL 3 * MAX ( ALL + 21 ) AS col1
----
63

query II rowsort
SELECT - 42 + 22 AS col2, - 83 * - 42 * - 56 AS col0
----
-20
-195216

onlyif mysql # aggregate syntax: 
query II rowsort label-526
SELECT - + COUNT( ALL + 70 ), 66 AS col1
----
-1
66

skipif mysql # not compatible
query II rowsort label-526
SELECT - + COUNT ( ALL + 70 ), 66 AS col1
----
-1
66

query I rowsort
SELECT - 56 + + 74
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-528
SELECT ALL - 47 * MAX( - CAST( - 30 AS SIGNED ) ) * 62 + - MAX( DISTINCT 23 ) AS col0
----
-87443

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - 47 * MAX ( - CAST ( - 30 AS INTEGER ) ) * 62 + - MAX ( DISTINCT 23 ) AS col0
----
-87443

query I rowsort
SELECT + 0 * + 3 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT - - MIN( + 96 ) * - 65 AS col0
----
-6240

skipif mysql # not compatible
query I rowsort label-530
SELECT - - MIN ( + 96 ) * - 65 AS col0
----
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL NULLIF ( 82, COUNT( * ) * + + ( + COUNT( * ) ) ) col2
----
82

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL NULLIF ( 82, COUNT ( * ) * + + ( + COUNT ( * ) ) ) col2
----
82

query I rowsort
SELECT ALL - 87 * 59 col2
----
-5133

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT - + 18 + + - 31 * + 53 * + COUNT( * ) AS col1
----
-1661

skipif mysql # not compatible
query I rowsort label-533
SELECT - + 18 + + - 31 * + 53 * + COUNT ( * ) AS col1
----
-1661

query I rowsort
SELECT ALL - 31 * + 35
----
-1085

query I rowsort
SELECT 30 + 82 AS col1
----
112

query I rowsort
SELECT ALL - 22 * + - 10
----
220

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT DISTINCT - 50 + - 33 DIV + 95 + 33
----
-17

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT - 50 + - 33 / + 95 + 33
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-538
SELECT 4 AS col2, 62 + + - 65 * - COALESCE ( 90, - - CASE - COUNT( * ) WHEN + 99 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN - - MAX( DISTINCT 67 ) + - 81 END, 99 ) * 72 AS col2
----
4
421262

skipif mysql # not compatible
query II rowsort label-538
SELECT 4 AS col2, 62 + + - 65 * - COALESCE ( 90, - - CASE - COUNT ( * ) WHEN + 99 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN - - MAX ( DISTINCT 67 ) + - 81 END, 99 ) * 72 AS col2
----
4
421262

query II rowsort
SELECT 39 AS col1, - 29 AS col0
----
39
-29

query I rowsort
SELECT 5 * - + 67 + 91
----
-244

query I rowsort
SELECT 23 * 69 * ( + - 34 ) + 12 AS col1
----
-53946

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-542
SELECT DISTINCT - CASE + CAST( - 60 AS SIGNED ) WHEN + + CAST( NULL AS SIGNED ) + - COUNT( * ) THEN + 47 ELSE 5 + 20 END + 90 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT - CASE + CAST ( - 60 AS INTEGER ) WHEN + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) THEN + 47 ELSE 5 + 20 END + 90 AS col1
----
65

query I rowsort
SELECT DISTINCT + 87 + - - 46
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT DISTINCT + ( - MIN( + 52 ) ) * - MIN( DISTINCT 89 ) * - + 29
----
-134212

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT + ( - MIN ( + 52 ) ) * - MIN ( DISTINCT 89 ) * - + 29
----
-134212

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT DISTINCT + 88 + 15 * - CASE - - 50 WHEN + - 80 THEN - COUNT( * ) WHEN + 88 THEN NULL WHEN + 26 THEN NULL WHEN + + 5 THEN - + 54 ELSE NULL END * + + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT + 88 + 15 * - CASE - - 50 WHEN + - 80 THEN - COUNT ( * ) WHEN + 88 THEN NULL WHEN + 26 THEN NULL WHEN + + 5 THEN - + 54 ELSE NULL END * + + 72 AS col2
----
NULL

query I rowsort
SELECT ALL + 70 - 61 - + 84
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-548
SELECT 54 * - CAST( + 87 AS SIGNED ) * + + 71
----
-333558

skipif mysql # not compatible
query I rowsort label-548
SELECT 54 * - CAST ( + 87 AS INTEGER ) * + + 71
----
-333558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-549
SELECT SUM( + NULLIF ( 2, NULLIF ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ), 92 ) + - 29 ) ) + COALESCE ( COUNT( * ), - CASE CAST( 19 AS SIGNED ) WHEN 51 THEN - 27 WHEN - 99 THEN NULL ELSE NULL END DIV COUNT( * ), 14 + 0, 96 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-549
SELECT SUM ( + NULLIF ( 2, NULLIF ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), 92 ) + - 29 ) ) + COALESCE ( COUNT ( * ), - CASE CAST ( 19 AS INTEGER ) WHEN 51 THEN - 27 WHEN - 99 THEN NULL ELSE NULL END / COUNT ( * ), 14 + 0, 96 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT DISTINCT COUNT( * ) * 30
----
30

skipif mysql # not compatible
query I rowsort label-550
SELECT DISTINCT COUNT ( * ) * 30
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-551
SELECT ALL + 70 DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + 70 / - 34
----
-2

query I rowsort
SELECT ALL - 7 - + 68 AS col2
----
-75

query I rowsort
SELECT ALL 2 * - 34 AS col2
----
-68

query I rowsort
SELECT ALL - 98 * 74
----
-7252

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT MAX( + 93 ) + 44
----
137

skipif mysql # not compatible
query I rowsort label-555
SELECT MAX ( + 93 ) + 44
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT DISTINCT 49 * - CASE - SUM( ALL ( + 77 ) ) WHEN - 10 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT 49 * - CASE - SUM ( ALL ( + 77 ) ) WHEN - 10 THEN - COUNT ( * ) END AS col1
----
NULL

query I rowsort
SELECT 79 * - 30 AS col0
----
-2370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-558
SELECT - CAST( - 99 AS SIGNED ) * + 97 + 80
----
9683

skipif mysql # not compatible
query I rowsort label-558
SELECT - CAST ( - 99 AS INTEGER ) * + 97 + 80
----
9683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-559
SELECT 26 * 63 + 15 DIV - COUNT( * )
----
1623

skipif mysql # not compatible
query I rowsort label-559
SELECT 26 * 63 + 15 / - COUNT ( * )
----
1623

query I rowsort
SELECT ( + 52 ) * 4
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT NULLIF ( 12, - SUM( DISTINCT 25 ) ) * 14
----
168

skipif mysql # not compatible
query I rowsort label-561
SELECT NULLIF ( 12, - SUM ( DISTINCT 25 ) ) * 14
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT ( + COUNT( + 23 ) ) + + 32 * 82 AS col1
----
2625

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT ( + COUNT ( + 23 ) ) + + 32 * 82 AS col1
----
2625

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT ( 31 ) DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-564
SELECT ( 31 ) / 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL NULLIF ( 26, COUNT( DISTINCT + 97 ) ) + 83 * - 28
----
-2298

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL NULLIF ( 26, COUNT ( DISTINCT + 97 ) ) + 83 * - 28
----
-2298

query I rowsort
SELECT ALL 76 + 92
----
168

query I rowsort
SELECT 4 + - ( COALESCE ( + 46, - 25 ) )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-568
SELECT ( 39 ) DIV + 16
----
2

skipif mysql # not compatible
query I rowsort label-568
SELECT ( 39 ) / + 16
----
2

query I rowsort
SELECT 49 * - 68 AS col1
----
-3332

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

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

query I rowsort
SELECT 58 * ( ( 47 ) ) col0
----
2726

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL - 73 + COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL - 73 + COUNT ( * ) AS col0
----
-72

query I rowsort
SELECT 39 - 36
----
3

query I rowsort
SELECT ALL 34 + 40
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT NULLIF ( + 15, COUNT( * ) + - MAX( DISTINCT 78 ) ) + + 5
----
20

skipif mysql # not compatible
query I rowsort label-576
SELECT NULLIF ( + 15, COUNT ( * ) + - MAX ( DISTINCT 78 ) ) + + 5
----
20

query I rowsort
SELECT ALL + 1 + + 86
----
87

query I rowsort
SELECT ALL 86 + 90 AS col2
----
176

query I rowsort
SELECT - CASE + 10 WHEN + ( 36 ) * 60 THEN 58 / 62 + - 35 * - 75 ELSE NULL END / + 59 + 12
----
NULL

query I rowsort
SELECT + 68 * 4 - 82 AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT + MIN( DISTINCT 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-581
SELECT + MIN ( DISTINCT 60 ) AS col2
----
60

query I rowsort
SELECT ALL - 38 - 25 * - 19 AS col1
----
437

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT MAX( DISTINCT COALESCE ( 39, + 50 + - 15 ) )
----
39

skipif mysql # not compatible
query I rowsort label-583
SELECT MAX ( DISTINCT COALESCE ( 39, + 50 + - 15 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT 64 + MIN( DISTINCT NULLIF ( 6, 7 ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-584
SELECT 64 + MIN ( DISTINCT NULLIF ( 6, 7 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT MIN( - 63 ) * - 18 AS col2
----
1134

skipif mysql # not compatible
query I rowsort label-585
SELECT MIN ( - 63 ) * - 18 AS col2
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT ALL + 66 * CASE - 42 / - COUNT( * ) WHEN COALESCE ( 48, - 44 * 60 + - 32 ) THEN 49 * 14 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL + 66 * CASE - 42 / - COUNT ( * ) WHEN COALESCE ( 48, - 44 * 60 + - 32 ) THEN 49 * 14 END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT DISTINCT - SUM( 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT - SUM ( 27 ) AS col2
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT DISTINCT 37 DIV - 15
----
-2

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT 37 / - 15
----
-2

query I rowsort
SELECT + 41 + 86 * 77
----
6663

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

query I rowsort
SELECT - 24 * 54 AS col0
----
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT COALESCE ( 25, NULLIF ( - 79, COUNT( * ) + - 43 ) * COUNT( * ) ) * 2 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-594
SELECT COALESCE ( 25, NULLIF ( - 79, COUNT ( * ) + - 43 ) * COUNT ( * ) ) * 2 AS col2
----
50

query I rowsort
SELECT + + 91 * 56 + 2
----
5098

query I rowsort
SELECT - 91 + 93 * - 8
----
-835

query I rowsort
SELECT ALL + 40 * + 45
----
1800

onlyif mysql # DIV for integer division: 
query I rowsort label-598
SELECT DISTINCT - + 33 DIV + 10
----
-3

skipif mysql # not compatible
query I rowsort label-598
SELECT DISTINCT - + 33 / + 10
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT DISTINCT + MIN( 2 ) * 52 AS col0
----
104

skipif mysql # not compatible
query I rowsort label-599
SELECT DISTINCT + MIN ( 2 ) * 52 AS col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT DISTINCT MIN( - 87 ) + 98 * 92
----
8929

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT MIN ( - 87 ) + 98 * 92
----
8929

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT DISTINCT + + COUNT( * ) + + 88 * - 90
----
-7919

skipif mysql # not compatible
query I rowsort label-601
SELECT DISTINCT + + COUNT ( * ) + + 88 * - 90
----
-7919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-602
SELECT CASE 16 WHEN COUNT( * ) THEN - 25 WHEN - ( + COUNT( * ) ) THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-602
SELECT CASE 16 WHEN COUNT ( * ) THEN - 25 WHEN - ( + COUNT ( * ) ) THEN CAST ( NULL AS INTEGER ) END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-604
SELECT + - COUNT( * ) + ( + 21 ) DIV + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-604
SELECT + - COUNT ( * ) + ( + 21 ) / + COUNT ( * ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL + 4 + - MAX( 44 + 29 )
----
-69

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + 4 + - MAX ( 44 + 29 )
----
-69

query I rowsort
SELECT + 64 + - 20 col0
----
44

query I rowsort
SELECT - 76 + - + 96
----
-172

query I rowsort
SELECT - CASE - - 94 WHEN + 57 * + 37 THEN - ( - 89 ) * 21 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-609
SELECT + ( - + 24 ) * - CAST( - MAX( ALL - CAST( 23 AS SIGNED ) ) AS SIGNED ) AS col2
----
552

skipif mysql # not compatible
query I rowsort label-609
SELECT + ( - + 24 ) * - CAST ( - MAX ( ALL - CAST ( 23 AS INTEGER ) ) AS INTEGER ) AS col2
----
552

query I rowsort
SELECT + 28 + - + 44
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-611
SELECT ALL 16 + + + 7 * + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL 16 + + + 7 * + COUNT ( * )
----
23

query I rowsort
SELECT + 22 * + 80 * 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT ALL 28 DIV + - 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL 28 / + - 52 col1
----
0

query I rowsort
SELECT DISTINCT 34 * - 81 * 58
----
-159732

query I rowsort
SELECT DISTINCT 45 - 42 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-616
SELECT + 74 + + - CAST( - 16 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-616
SELECT + 74 + + - CAST ( - 16 AS INTEGER )
----
90

query I rowsort
SELECT + 92 * - + 83 AS col1
----
-7636

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-619
SELECT + 39 DIV - 46
----
0

skipif mysql # not compatible
query I rowsort label-619
SELECT + 39 / - 46
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-620
SELECT - 44 DIV - 13 col2
----
3

skipif mysql # not compatible
query I rowsort label-620
SELECT - 44 / - 13 col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-621
SELECT DISTINCT - 25 DIV - + 83 * - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT - 25 / - + 83 * - 93 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-622
SELECT ( + - COALESCE ( + NULLIF ( 89, 85 ), - CAST( CASE - 67 WHEN - ( - ( + NULLIF ( NULLIF ( 7, - 85 + - ( 68 + 76 ) / 68 ), - COUNT( * ) ) ) ) / 25 THEN NULL WHEN + 49 * CASE + 52 WHEN + 30 - - ( + 85 + COUNT( + 42 ) * 17 ) THEN 40 ELSE NULL END THEN ( + COALESCE ( - 50, COUNT( * ), 36 ) ) * + 5 END AS SIGNED ) + + 56 ) ) col0
----
-89

skipif mysql # not compatible
query I rowsort label-622
SELECT ( + - COALESCE ( + NULLIF ( 89, 85 ), - CAST ( CASE - 67 WHEN - ( - ( + NULLIF ( NULLIF ( 7, - 85 + - ( 68 + 76 ) / 68 ), - COUNT ( * ) ) ) ) / 25 THEN NULL WHEN + 49 * CASE + 52 WHEN + 30 - - ( + 85 + COUNT ( + 42 ) * 17 ) THEN 40 ELSE NULL END THEN ( + COALESCE ( - 50, COUNT ( * ), 36 ) ) * + 5 END AS INTEGER ) + + 56 ) ) col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-623
SELECT + - ( + - 43 ) / CASE + COALESCE ( + COUNT( * ), 63 + - 97 ) WHEN + MAX( DISTINCT 46 ) + CAST( COUNT( * ) AS SIGNED ) THEN NULL WHEN + 78 THEN NULL WHEN 12 * 38 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-623
SELECT + - ( + - 43 ) / CASE + COALESCE ( + COUNT ( * ), 63 + - 97 ) WHEN + MAX ( DISTINCT 46 ) + CAST ( COUNT ( * ) AS INTEGER ) THEN NULL WHEN + 78 THEN NULL WHEN 12 * 38 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - 19 * + 79 + 94 AS col1
----
-1407

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT DISTINCT + 51 * + 46 * 91 + 60 * COUNT( * ) AS col0
----
213546

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT + 51 * + 46 * 91 + 60 * COUNT ( * ) AS col0
----
213546

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

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

query I rowsort
SELECT ALL - 1 * - 69 + + 12
----
81

query I rowsort
SELECT - 11 + - 35
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-630
SELECT ALL + - 17 * + - 7 * - 87 + 97 DIV 38
----
-10351

skipif mysql # not compatible
query I rowsort label-630
SELECT ALL + - 17 * + - 7 * - 87 + 97 / 38
----
-10351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-631
SELECT ALL - CASE 68 WHEN + ( - 38 ) + ( - 56 ) THEN CASE - COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN + 21 ELSE NULL END - - 85 END + - 9 * 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL - CASE 68 WHEN + ( - 38 ) + ( - 56 ) THEN CASE - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN + 21 ELSE NULL END - - 85 END + - 9 * 99 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-632
SELECT - 52 DIV 52 * - - 42 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-632
SELECT - 52 / 52 * - - 42 AS col1
----
-42

query I rowsort
SELECT DISTINCT - 55 - - 39 AS col2
----
-16

query I rowsort
SELECT ALL - 73 * - 52 AS col0
----
3796

query I rowsort
SELECT - 22 * 78 AS col1
----
-1716

query II rowsort
SELECT 44 AS col1, 84 + + 32 col1
----
44
116

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-637
SELECT ALL 1, NULLIF ( - 74, - CAST( 40 AS DECIMAL ) + - COUNT( * ) ) * 37 + + CASE - NULLIF ( ( - 16 ), + 94 * - 80 ) - - 72 WHEN ( + 20 ) + + 95 THEN NULL WHEN 33 THEN COUNT( * ) ELSE NULL END * 68 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-637
SELECT ALL 1, NULLIF ( - 74, - CAST ( 40 AS REAL ) + - COUNT ( * ) ) * 37 + + CASE - NULLIF ( ( - 16 ), + 94 * - 80 ) - - 72 WHEN ( + 20 ) + + 95 THEN NULL WHEN 33 THEN COUNT ( * ) ELSE NULL END * 68 AS col2
----
1
NULL

query I rowsort
SELECT - 99 * 79 AS col1
----
-7821

query I rowsort
SELECT - 69 + + 88 AS col0
----
19

query I rowsort
SELECT DISTINCT - 83 * 50
----
-4150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-641
SELECT - 63 * + NULLIF ( + CAST( + 25 AS SIGNED ), - COALESCE ( + 99, 57 + + COUNT( * ) / - CAST( NULL AS SIGNED ) ) / - 98 ) AS col1
----
-1575

skipif mysql # not compatible
query I rowsort label-641
SELECT - 63 * + NULLIF ( + CAST ( + 25 AS INTEGER ), - COALESCE ( + 99, 57 + + COUNT ( * ) / - CAST ( NULL AS INTEGER ) ) / - 98 ) AS col1
----
-1575

query I rowsort
SELECT + 68 * + 88 AS col2
----
5984

query I rowsort
SELECT - COALESCE ( + - 74, + - 91 ) - 89 AS col2
----
-15

query I rowsort
SELECT + 15 + + - CASE 30 WHEN + 28 THEN NULL WHEN 47 THEN + 98 + 32 ELSE + 75 + 9 END
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL 27 * - COUNT( * ) * - - COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL 27 * - COUNT ( * ) * - - COUNT ( * ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT + 33 * ( + MIN( 59 ) )
----
1947

skipif mysql # not compatible
query I rowsort label-646
SELECT + 33 * ( + MIN ( 59 ) )
----
1947

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-647
SELECT + ( CAST( NULL AS SIGNED ) ) + + + MAX( 29 ) - - 37 * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT + ( CAST ( NULL AS INTEGER ) ) + + + MAX ( 29 ) - - 37 * 35
----
NULL

query I rowsort
SELECT DISTINCT 62 * - 68
----
-4216

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL + MAX( ALL - + CASE WHEN NOT 42 >= NULL THEN 86 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL + MAX ( ALL - + CASE WHEN NOT 42 >= NULL THEN 86 END ) AS col0
----
NULL

query I rowsort
SELECT ALL 79 * - 70
----
-5530

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT + 70 - 72 * - CASE + 3 WHEN 30 THEN COUNT( * ) * - 53 END * 65 - - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-651
SELECT + 70 - 72 * - CASE + 3 WHEN 30 THEN COUNT ( * ) * - 53 END * 65 - - 98 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL 40 * + + COUNT ( * ) AS col0
----
40

query II rowsort
SELECT + - 36, - 93 col1
----
-36
-93

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-655
SELECT - COUNT( + NULLIF ( 98, 3 * - CAST( NULL AS SIGNED ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-655
SELECT - COUNT ( + NULLIF ( 98, 3 * - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-656
SELECT + + 95 DIV + COUNT( * ) AS col1
----
95

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

query I rowsort
SELECT + - 25 + 42 + + ( 73 ) AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-658
SELECT DISTINCT - 54 DIV 12 * - 86 * 64 + 68 col0
----
22084

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT - 54 / 12 * - 86 * 64 + 68 col0
----
22084

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT ALL + 40 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + 40 / - 38
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT ALL - MAX( ALL + 55 ) + 38 * - 6
----
-283

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL - MAX ( ALL + 55 ) + 38 * - 6
----
-283

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-661
SELECT + + 51 AS col1, 88 + - 4 * - MAX( ALL - ( CAST( NULL AS SIGNED ) ) * + 76 )
----
51
NULL

skipif mysql # not compatible
query II rowsort label-661
SELECT + + 51 AS col1, 88 + - 4 * - MAX ( ALL - ( CAST ( NULL AS INTEGER ) ) * + 76 )
----
51
NULL

query I rowsort
SELECT ALL - - 95 + - 57 AS col1
----
38

query I rowsort
SELECT DISTINCT + 37 + + 81 + 27 AS col1
----
145

query II rowsort
SELECT ALL - - 70 AS col2, + 69 * + 45
----
70
3105

query I rowsort
SELECT 84 + + 86 AS col1
----
170

query II rowsort
SELECT ALL - 87 AS col2, + 55
----
-87
55

query I rowsort
SELECT ALL + 88 + 21
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-668
SELECT + CASE + COALESCE ( - ( - NULLIF ( CASE COALESCE ( + CAST( 92 AS SIGNED ), 74 ) WHEN CASE NULLIF ( + 26, + NULLIF ( + ( - ( COUNT( * ) ) ), - 97 ) * + 56 ) WHEN 21 - 11 THEN - 44 - + 74 WHEN ( - 87 ) * COUNT( * ) THEN NULL ELSE NULL END THEN - CAST( - 22 AS SIGNED ) + + 78 ELSE NULL END, 27 + ( COALESCE ( - 99, - COUNT( * ) ) ) / COUNT( * ) ) ), - 58 * + 70 + - MAX( DISTINCT + 76 ) ) WHEN + 20 THEN NULL WHEN 80 THEN NULL ELSE 46 * 69 END * - 47 + + COUNT( * ) AS col2
----
-149177

skipif mysql # not compatible
query I rowsort label-668
SELECT + CASE + COALESCE ( - ( - NULLIF ( CASE COALESCE ( + CAST ( 92 AS INTEGER ), 74 ) WHEN CASE NULLIF ( + 26, + NULLIF ( + ( - ( COUNT ( * ) ) ), - 97 ) * + 56 ) WHEN 21 - 11 THEN - 44 - + 74 WHEN ( - 87 ) * COUNT ( * ) THEN NULL ELSE NULL END THEN - CAST ( - 22 AS INTEGER ) + + 78 ELSE NULL END, 27 + ( COALESCE ( - 99, - COUNT ( * ) ) ) / COUNT ( * ) ) ), - 58 * + 70 + - MAX ( DISTINCT + 76 ) ) WHEN + 20 THEN NULL WHEN 80 THEN NULL ELSE 46 * 69 END * - 47 + + COUNT ( * ) AS col2
----
-149177

query I rowsort
SELECT + NULLIF ( 79, + 7 * 16 ) col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-670
SELECT - 7 * - CAST( NULL AS SIGNED ) / - 86 + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-670
SELECT - 7 * - CAST ( NULL AS INTEGER ) / - 86 + 88
----
NULL

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

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

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

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

query I rowsort
SELECT 48 + 84 + + 41 + - 57
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-674
SELECT DISTINCT COUNT( DISTINCT - - ( CAST( + 35 AS SIGNED ) ) ) - - 67
----
68

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT COUNT ( DISTINCT - - ( CAST ( + 35 AS INTEGER ) ) ) - - 67
----
68

query I rowsort
SELECT 58 * - - 54 AS col2
----
3132

query II rowsort
SELECT 64 + 56 AS col1, + 76 col2
----
120
76

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT 74 + + - CASE - + 58 WHEN - 60 THEN + COUNT( * ) * + 41 WHEN - 4 * + 55 THEN NULL ELSE - 80 END AS col0
----
154

skipif mysql # not compatible
query I rowsort label-677
SELECT 74 + + - CASE - + 58 WHEN - 60 THEN + COUNT ( * ) * + 41 WHEN - 4 * + 55 THEN NULL ELSE - 80 END AS col0
----
154

query I rowsort
SELECT 48 * - 15 AS col2
----
-720

query I rowsort
SELECT 83 + + + 68 * + 90
----
6203

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT 54 + + - COUNT( * ) + 84 * 31 * 57
----
148481

skipif mysql # not compatible
query I rowsort label-680
SELECT 54 + + - COUNT ( * ) + 84 * 31 * 57
----
148481

query I rowsort
SELECT 93 + + 44 AS col0
----
137

query I rowsort
SELECT 64 + - 4 AS col1
----
60

query II rowsort
SELECT 73 + + 89 AS col1, + COALESCE ( - 94, 52, + 2 * - 62 + + 6 )
----
162
-94

query I rowsort
SELECT ALL + 7 * 41
----
287

onlyif mysql # DIV for integer division: 
query I rowsort label-685
SELECT 80 DIV 9 DIV + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-685
SELECT 80 / 9 / + 44 AS col1
----
0

query I rowsort
SELECT DISTINCT + 98 * - 39 AS col0
----
-3822

query II rowsort
SELECT DISTINCT + 25 * - 0 AS col1, - 35
----
0
-35

query I rowsort
SELECT DISTINCT - 53 + + 8
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT 8 + - 30 * - + 88 - 55 * + COUNT( * ) AS col0
----
2593

skipif mysql # not compatible
query I rowsort label-689
SELECT 8 + - 30 * - + 88 - 55 * + COUNT ( * ) AS col0
----
2593

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT + COUNT( - 9 ) * + - 50 + + + 30
----
-20

skipif mysql # not compatible
query I rowsort label-690
SELECT + COUNT ( - 9 ) * + - 50 + + + 30
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT DISTINCT - + COALESCE ( - CAST( NULL AS SIGNED ), + + 19 * 50 - - 90 + 72 ) + 12
----
-1100

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT - + COALESCE ( - CAST ( NULL AS INTEGER ), + + 19 * 50 - - 90 + 72 ) + 12
----
-1100

query I rowsort
SELECT ALL + 35 + + + 46 + + - 77 * + - 75
----
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL + COUNT( ALL + ( 26 ) ) + + - 69 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL + COUNT ( ALL + ( 26 ) ) + + - 69 AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-694
SELECT DISTINCT CASE 71 WHEN 13 THEN 74 END + - 80 * CAST( - ( 78 ) + - 78 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT CASE 71 WHEN 13 THEN 74 END + - 80 * CAST ( - ( 78 ) + - 78 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + COALESCE ( + 97, + COALESCE ( 32, - 62, + 26 * + 86 ) )
----
-97

query I rowsort
SELECT ALL - 32 + - 68
----
-100

query I rowsort
SELECT ALL + ( 96 ) + + 28 * + 6
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-698
SELECT DISTINCT - + NULLIF ( - 9, + - CAST( 88 AS SIGNED ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT - + NULLIF ( - 9, + - CAST ( 88 AS INTEGER ) ) AS col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-699
SELECT ALL - 77 + - COUNT( * ) * + 67 + + - 54 - 33 DIV + NULLIF ( 94 * 57 + + 8, 52 + + 32 * + 44 )
----
-198

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL - 77 + - COUNT ( * ) * + 67 + + - 54 - 33 / + NULLIF ( 94 * 57 + + 8, 52 + + 32 * + 44 )
----
-198

query I rowsort
SELECT 50 + + 95 * - + 87
----
-8215

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT COALESCE ( - 76, ( - 8 ) DIV - 67, 14 * 76 ) * - 17 AS col2
----
1292

skipif mysql # not compatible
query I rowsort label-701
SELECT COALESCE ( - 76, ( - 8 ) / - 67, 14 * 76 ) * - 17 AS col2
----
1292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-702
SELECT - 72 DIV + 65 + COUNT( * ) * + 5 + + 50 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-702
SELECT - 72 / + 65 + COUNT ( * ) * + 5 + + 50 AS col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-703
SELECT 30 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-703
SELECT 30 / 87 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-705
SELECT DISTINCT - CASE CASE + - 7 WHEN COUNT( * ) + ( ( 90 ) ) THEN + ( + SUM( 22 ) ) WHEN + 41 THEN NULL END WHEN + 13 THEN 12 DIV 48 WHEN ( 2 ) THEN NULL ELSE + 96 END - + 24 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT - CASE CASE + - 7 WHEN COUNT ( * ) + ( ( 90 ) ) THEN + ( + SUM ( 22 ) ) WHEN + 41 THEN NULL END WHEN + 13 THEN 12 / 48 WHEN ( 2 ) THEN NULL ELSE + 96 END - + 24 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT - + 63 * - 63 - - 97 - CASE + COUNT( * ) WHEN COUNT( * ) - NULLIF ( + 4, COUNT( * ) ) * + 81 THEN - 68 * + 79 END * 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-706
SELECT - + 63 * - 63 - - 97 - CASE + COUNT ( * ) WHEN COUNT ( * ) - NULLIF ( + 4, COUNT ( * ) ) * + 81 THEN - 68 * + 79 END * 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT - 14 * + 56 * - 27 * COUNT( * )
----
21168

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT - 14 * + 56 * - 27 * COUNT ( * )
----
21168

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL COUNT( * ) * + COUNT( DISTINCT - 62 ) * + 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL COUNT ( * ) * + COUNT ( DISTINCT - 62 ) * + 45 AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-709
SELECT DISTINCT - 34 DIV COUNT( * ) * 59
----
-2006

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT - 34 / COUNT ( * ) * 59
----
-2006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-710
SELECT DISTINCT CAST( 84 AS SIGNED ) - 70 col2
----
14

skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT CAST ( 84 AS INTEGER ) - 70 col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-711
SELECT CAST( MAX( - 4 ) AS SIGNED ) * - - 11
----
-44

skipif mysql # not compatible
query I rowsort label-711
SELECT CAST ( MAX ( - 4 ) AS INTEGER ) * - - 11
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT COUNT( * ) * - - 95 * - - 95 AS col2
----
9025

skipif mysql # not compatible
query I rowsort label-713
SELECT COUNT ( * ) * - - 95 * - - 95 AS col2
----
9025

query II rowsort
SELECT 69 AS col2, - 1
----
69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT 16 * + COALESCE ( - 71, - COUNT( * ) - COUNT( * ) )
----
-1136

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT 16 * + COALESCE ( - 71, - COUNT ( * ) - COUNT ( * ) )
----
-1136

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT MAX( - 67 ) * + + 1
----
-67

skipif mysql # not compatible
query I rowsort label-716
SELECT MAX ( - 67 ) * + + 1
----
-67

query I rowsort
SELECT 93 * + 28
----
2604

query I rowsort
SELECT ALL + 38 * + 54
----
2052

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT ALL MIN( - 86 ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL MIN ( - 86 ) col0
----
-86

onlyif mysql # DIV for integer division: 
query II rowsort label-721
SELECT - 66 AS col1, 2 DIV - - 85 AS col1
----
-66
0

skipif mysql # not compatible
query II rowsort label-721
SELECT - 66 AS col1, 2 / - - 85 AS col1
----
-66
0

query II rowsort
SELECT 12, ( + + 26 ) col1
----
12
26

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

query I rowsort
SELECT 8 * - + 12 * - 50
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT - SUM( DISTINCT 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-725
SELECT - SUM ( DISTINCT 6 )
----
-6

query I rowsort
SELECT DISTINCT + NULLIF ( 79, - 95 ) + - - 67 * + 97 + 9 * 20
----
6758

query II rowsort
SELECT ALL - 48 + - - 73 * - - 59 AS col0, 32
----
4259
32

query I rowsort
SELECT 65 + 71 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-729
SELECT - 32 + MIN( DISTINCT - 90 ) AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-729
SELECT - 32 + MIN ( DISTINCT - 90 ) AS col1
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-730
SELECT ALL - + 37 + - COUNT( * ) * + COUNT( * ) AS col1, 25
----
-38
25

skipif mysql # not compatible
query II rowsort label-730
SELECT ALL - + 37 + - COUNT ( * ) * + COUNT ( * ) AS col1, 25
----
-38
25

query I rowsort
SELECT - NULLIF ( 52, - - 23 * 98 ) AS col2
----
-52

query I rowsort
SELECT - + NULLIF ( - + 76, - 65 / - NULLIF ( - 7, + 82 * 42 + 3 * + 59 ) ) * 96 col2
----
7296

query I rowsort
SELECT ALL + - 24 * - 71
----
1704

query I rowsort
SELECT + + 3 * + 57 + + + 55 + 63 + - 67 - 84 + + 61 * 34 AS col2
----
2212

query I rowsort
SELECT - - 43 - + 64 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-736
SELECT COUNT( * ), - 25 * + COUNT( * ) - + 29 * + 34 AS col2
----
1
-1011

skipif mysql # not compatible
query II rowsort label-736
SELECT COUNT ( * ), - 25 * + COUNT ( * ) - + 29 * + 34 AS col2
----
1
-1011

query I rowsort
SELECT COALESCE ( + 42, - ( - + 97 ), + 26 + + 5 ) AS col0
----
42

query I rowsort
SELECT ALL - + NULLIF ( + ( - 50 ), + + 51 ) * - 0 - 62 AS col1
----
-62

query I rowsort
SELECT - 35 * + - 30
----
1050

onlyif mysql # aggregate syntax: 
query II rowsort label-740
SELECT + 37 AS col1, COUNT( * ) * 28
----
37
28

skipif mysql # not compatible
query II rowsort label-740
SELECT + 37 AS col1, COUNT ( * ) * 28
----
37
28

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

query I rowsort
SELECT ALL + 5 * + 36 col1
----
180

onlyif mysql # DIV for integer division: 
query II rowsort label-743
SELECT ALL + 26 AS col1, - 98 DIV - 33 AS col0
----
26
2

skipif mysql # not compatible
query II rowsort label-743
SELECT ALL + 26 AS col1, - 98 / - 33 AS col0
----
26
2

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT + ( + + 59 ) DIV + 81 - + - 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-744
SELECT + ( + + 59 ) / + 81 - + - 34 AS col1
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-745
SELECT - 92 * - + 45 + - 39 + - - 99 DIV 24 AS col0
----
4105

skipif mysql # not compatible
query I rowsort label-745
SELECT - 92 * - + 45 + - 39 + - - 99 / 24 AS col0
----
4105

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT MIN( DISTINCT + ( + 72 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-748
SELECT MIN ( DISTINCT + ( + 72 ) ) AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-749
SELECT - COALESCE ( + - COUNT( * ), + + NULLIF ( - CASE + 27 WHEN + 79 DIV 35 THEN - 65 * 95 WHEN 31 + + 49 * - 72 THEN NULL END, 12 + - 22 DIV - ( + 37 ) ) + 47 ) DIV CASE 52 DIV - COUNT( - 10 ) WHEN 77 THEN 99 ELSE - 21 - 73 END
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT - COALESCE ( + - COUNT ( * ), + + NULLIF ( - CASE + 27 WHEN + 79 / 35 THEN - 65 * 95 WHEN 31 + + 49 * - 72 THEN NULL END, 12 + - 22 / - ( + 37 ) ) + 47 ) / CASE 52 / - COUNT ( - 10 ) WHEN 77 THEN 99 ELSE - 21 - 73 END
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-751
SELECT + COUNT ( * ) + + CASE 61 WHEN - + 53 THEN NULL ELSE + 87 END
----
88

query I rowsort
SELECT ALL + 79 + 76 * 41 AS col1
----
3195

query I rowsort
SELECT DISTINCT - 25 * 32 AS col1
----
-800

onlyif mysql # aggregate syntax: 
query II rowsort label-754
SELECT DISTINCT COUNT( * ) + 20 AS col2, 12 * + 80 * 55
----
21
52800

skipif mysql # not compatible
query II rowsort label-754
SELECT DISTINCT COUNT ( * ) + 20 AS col2, 12 * + 80 * 55
----
21
52800

query I rowsort
SELECT ALL 4 + 48 * - + 67 AS col1
----
-3212

query I rowsort
SELECT + 10 + - 85 * - 91 * - - 76 AS col0
----
587870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-757
SELECT ALL 74 + + + ( - - 15 ) * + - 41 * + 65 + - - ( - CASE 64 WHEN - 85 THEN CAST( NULL AS SIGNED ) WHEN 66 THEN - 9 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL 74 + + + ( - - 15 ) * + - 41 * + 65 + - - ( - CASE 64 WHEN - 85 THEN CAST ( NULL AS INTEGER ) WHEN 66 THEN - 9 END ) AS col0
----
NULL

query II rowsort
SELECT 46 col0, - 45 + 39 AS col0
----
46
-6

query I rowsort
SELECT + ( - NULLIF ( + 21, - 22 ) ) + + + 53 * - 46 * 13 AS col2
----
-31715

query I rowsort
SELECT DISTINCT 9 + + 64
----
73

query II rowsort
SELECT 60, - 80 * - 15 * 85 * 33 AS col0
----
60
3366000

query I rowsort
SELECT + 38 + 1 AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-763
SELECT - CASE + + 93 WHEN 36 / + CAST( 61 AS SIGNED ) + + + CAST( NULL AS DECIMAL ) + MIN( DISTINCT 21 ) + 56 THEN - 97 WHEN + 36 THEN 60 - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT - CASE + + 93 WHEN 36 / + CAST ( 61 AS INTEGER ) + + + CAST ( NULL AS REAL ) + MIN ( DISTINCT 21 ) + 56 THEN - 97 WHEN + 36 THEN 60 - - COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT 73 + + + 93 + + 41
----
207

query I rowsort
SELECT ALL 47 * 25 * + - 2 * + 8 * + 80 * + 76
----
-114304000

query I rowsort
SELECT + 17 * 34 AS col0
----
578

query I rowsort
SELECT ALL - 32 + + + 6 + 88 AS col0
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-768
SELECT DISTINCT 80 AS col1, 56 * - + CAST( NULL AS DECIMAL )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-768
SELECT DISTINCT 80 AS col1, 56 * - + CAST ( NULL AS REAL )
----
80
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-769
SELECT ALL - - COUNT( * ) - 78 + 98 + 44 * CAST( NULL AS SIGNED ) / + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - - COUNT ( * ) - 78 + 98 + 44 * CAST ( NULL AS INTEGER ) / + 37 AS col2
----
NULL

query I rowsort
SELECT - + 72 + - 85 - 5
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-771
SELECT COUNT( * ) col1, - 69 + 36 + - + COUNT( * )
----
1
-34

skipif mysql # not compatible
query II rowsort label-771
SELECT COUNT ( * ) col1, - 69 + 36 + - + COUNT ( * )
----
1
-34

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

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

query II rowsort
SELECT ALL 36 - - 71 AS col0, - 19
----
107
-19

query I rowsort
SELECT NULLIF ( 56, - 88 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-775
SELECT COUNT( * ), COALESCE ( + + COUNT( * ), + + 15, - MIN( 95 ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-775
SELECT COUNT ( * ), COALESCE ( + + COUNT ( * ), + + 15, - MIN ( 95 ) )
----
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-776
SELECT - 89 * + 24 AS col0, COUNT( * )
----
-2136
1

skipif mysql # not compatible
query II rowsort label-776
SELECT - 89 * + 24 AS col0, COUNT ( * )
----
-2136
1

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT 95 * + + 19 * 51 - COUNT( * ) + + ( + + COUNT( * ) )
----
92055

skipif mysql # not compatible
query I rowsort label-777
SELECT 95 * + + 19 * 51 - COUNT ( * ) + + ( + + COUNT ( * ) )
----
92055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-778
SELECT - - 83 / + 35 - + CAST( NULL AS SIGNED ) * 1 + + COALESCE ( 66, 27, + 11 ) + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT - - 83 / + 35 - + CAST ( NULL AS INTEGER ) * 1 + + COALESCE ( 66, 27, + 11 ) + - 15
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT - + MAX( ALL + 49 ) * - 15 * + 8 AS col1
----
5880

skipif mysql # not compatible
query I rowsort label-780
SELECT - + MAX ( ALL + 49 ) * - 15 * + 8 AS col1
----
5880

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT DISTINCT - - 54 * - + 42 + + COUNT( * )
----
-2267

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT - - 54 * - + 42 + + COUNT ( * )
----
-2267

query I rowsort
SELECT + - 1 + + 65 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-783
SELECT + COUNT( * ) / - - CAST( NULL AS SIGNED ) + 51 * SUM( DISTINCT 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-783
SELECT + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) + 51 * SUM ( DISTINCT 4 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-784
SELECT - CAST( NULL AS DECIMAL ) * - + 60 * - 18 + + 52 + + 34 + + 75 * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-784
SELECT - CAST ( NULL AS REAL ) * - + 60 * - 18 + + 52 + + 34 + + 75 * 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT ALL SUM( DISTINCT 76 ) * - 73 + - - 51 AS col0
----
-5497

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL SUM ( DISTINCT 76 ) * - 73 + - - 51 AS col0
----
-5497

query I rowsort
SELECT - ( - + 29 ) * - 18 * 68 AS col2
----
-35496

query I rowsort
SELECT COALESCE ( - 89, 24, - 45 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT ALL - 95 * - - 19 + - CAST( + + 39 AS SIGNED ) AS col1
----
-1844

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL - 95 * - - 19 + - CAST ( + + 39 AS INTEGER ) AS col1
----
-1844

query I rowsort
SELECT NULLIF ( - 64, - - 69 - - 0 ) AS col1
----
-64

query I rowsort
SELECT - 80 * - 84 col2
----
6720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-791
SELECT COALESCE ( + + 38, + + CAST( + ( - - 69 ) AS SIGNED ) * + + 44, 48 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-791
SELECT COALESCE ( + + 38, + + CAST ( + ( - - 69 ) AS INTEGER ) * + + 44, 48 ) col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL COUNT( * ) * 82 * - COUNT( * ) * + 36 + - - 28 * + ( + 55 ) * 5 col0
----
4748

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL COUNT ( * ) * 82 * - COUNT ( * ) * + 36 + - - 28 * + ( + 55 ) * 5 col0
----
4748

query II rowsort
SELECT DISTINCT - 94 * 69 * + 40 AS col1, - 92 + + + NULLIF ( 94, - AVG ( ALL - 43 ) * 26 ) + NULLIF ( - 34, 93 * 17 ) AS col0
----
-259440
-32

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

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

query II rowsort
SELECT + 56 * 92 col2, 73 + + 82 * 89
----
5152
7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-796
SELECT ALL 80 * + COALESCE ( - - 84, + CAST( NULL AS SIGNED ), + - 24 * 36 * + 77 + - ( - 75 + + 0 ) * + 66 ) + + 76 AS col1
----
6796

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL 80 * + COALESCE ( - - 84, + CAST ( NULL AS INTEGER ), + - 24 * 36 * + 77 + - ( - 75 + + 0 ) * + 66 ) + + 76 AS col1
----
6796

query I rowsort
SELECT DISTINCT ( 97 ) + + 66
----
163

query I rowsort
SELECT ALL 14 + ( + + ( + 70 ) ) * - 9 * + 15 + - 68 * + 38 AS col1
----
-12020

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT 79 * + COALESCE ( - 5, + - COALESCE ( - + 21, 58 + COUNT( * ) ) + 87 ) * 94 col2
----
-37130

skipif mysql # not compatible
query I rowsort label-799
SELECT 79 * + COALESCE ( - 5, + - COALESCE ( - + 21, 58 + COUNT ( * ) ) + 87 ) * 94 col2
----
-37130

query I rowsort
SELECT COALESCE ( - - 46, - 42 + 72 + + 61, 58 * + 2 + 88 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT 28 + + MAX( + 25 ) + - 91 + - 73 AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-801
SELECT 28 + + MAX ( + 25 ) + - 91 + - 73 AS col0
----
-111

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

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

query I rowsort
SELECT 59 * + 33 AS col1
----
1947

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-805
SELECT ALL NULLIF ( 77, + 50 * CAST( NULL AS SIGNED ) + + 69 + - 12 ) - 3 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL NULLIF ( 77, + 50 * CAST ( NULL AS INTEGER ) + + 69 + - 12 ) - 3 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT + 90 * MIN( + - 92 )
----
-8280

skipif mysql # not compatible
query I rowsort label-806
SELECT + 90 * MIN ( + - 92 )
----
-8280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-807
SELECT ALL + 71 * + - 11 DIV COUNT( * ) + - 54
----
-835

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL + 71 * + - 11 / COUNT ( * ) + - 54
----
-835

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ( + CASE - 30 WHEN + 10 THEN NULL WHEN + MAX( DISTINCT - 57 ) THEN - 39 * 54 END ) + - ( 84 ) * - SUM( 65 * 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT ( + CASE - 30 WHEN + 10 THEN NULL WHEN + MAX ( DISTINCT - 57 ) THEN - 39 * 54 END ) + - ( 84 ) * - SUM ( 65 * 71 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-809
SELECT 28 * + 86 AS col1, CAST( NULL AS SIGNED )
----
2408
NULL

skipif mysql # not compatible
query II rowsort label-809
SELECT 28 * + 86 AS col1, CAST ( NULL AS INTEGER )
----
2408
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-810
SELECT + 30 + + - ( + 34 ) / CASE 45 WHEN - CASE WHEN NULL IS NULL THEN 52 END / - 3 + CAST( NULL AS SIGNED ) THEN 2 * 16 END + 55 * 36
----
NULL

skipif mysql # not compatible
query I rowsort label-810
SELECT + 30 + + - ( + 34 ) / CASE 45 WHEN - CASE WHEN NULL IS NULL THEN 52 END / - 3 + CAST ( NULL AS INTEGER ) THEN 2 * 16 END + 55 * 36
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT + MIN( DISTINCT + 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-812
SELECT + MIN ( DISTINCT + 12 ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-813
SELECT 50 * - 2 + - MIN( - ( + ( CAST( NULL AS SIGNED ) ) ) ) - + - CAST( 90 AS DECIMAL ) + CASE COUNT( * ) WHEN - 46 + - 52 THEN + 44 / - ( - 1 ) WHEN 21 THEN NULL END * - 43 * - NULLIF ( - 75 + 10, - 90 + + COALESCE ( + 25, NULLIF ( + 2, + 52 ) / 73 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT 50 * - 2 + - MIN ( - ( + ( CAST ( NULL AS INTEGER ) ) ) ) - + - CAST ( 90 AS REAL ) + CASE COUNT ( * ) WHEN - 46 + - 52 THEN + 44 / - ( - 1 ) WHEN 21 THEN NULL END * - 43 * - NULLIF ( - 75 + 10, - 90 + + COALESCE ( + 25, NULLIF ( + 2, + 52 ) / 73 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT + COALESCE ( 77, - COUNT( * ), + + 71 + - COUNT( * ) + 96 + 85 * - 17 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-814
SELECT + COALESCE ( 77, - COUNT ( * ), + + 71 + - COUNT ( * ) + 96 + 85 * - 17 ) AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT + 89 * ( CAST( NULL AS SIGNED ) ) / + + 85 * + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT + 89 * ( CAST ( NULL AS INTEGER ) ) / + + 85 * + - 53
----
NULL

query II rowsort
SELECT 85 AS col0, 21
----
85
21

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ( - + 22 ) * + COUNT( * ) + + 45 * + - 9 - 63 AS col1
----
-490

skipif mysql # not compatible
query I rowsort label-817
SELECT ( - + 22 ) * + COUNT ( * ) + + 45 * + - 9 - 63 AS col1
----
-490

query I rowsort
SELECT ALL - 79 + 16 + - 27 - 87 * 93 AS col1
----
-8181

query I rowsort
SELECT ALL 99 + ( 25 )
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-820
SELECT 14, ( CAST( NULL AS SIGNED ) ) AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-820
SELECT 14, ( CAST ( NULL AS INTEGER ) ) AS col0
----
14
NULL

query I rowsort
SELECT + 52 * 11 - + 31 col1
----
541

query I rowsort
SELECT 79 + - + 69 * + + 58 AS col0
----
-3923

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT DISTINCT - NULLIF ( - 75, + 80 ) * COUNT( * ) + + 19
----
94

skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT - NULLIF ( - 75, + 80 ) * COUNT ( * ) + + 19
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT + 89 * - COUNT( 67 ) + 45
----
-44

skipif mysql # not compatible
query I rowsort label-824
SELECT + 89 * - COUNT ( 67 ) + 45
----
-44

query II rowsort
SELECT ALL - 63, 26 AS col0
----
-63
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-826
SELECT 98 + + - 89 + + 9 * + 70 + - + 90 - MIN( + + 54 ) + ( COUNT( * ) ) DIV - 1
----
494

skipif mysql # not compatible
query I rowsort label-826
SELECT 98 + + - 89 + + 9 * + 70 + - + 90 - MIN ( + + 54 ) + ( COUNT ( * ) ) / - 1
----
494

query I rowsort
SELECT ALL 33 - - 27
----
60

query II rowsort
SELECT DISTINCT 22 AS col1, - 96 + + 13 col1
----
22
-83

query I rowsort
SELECT ALL + 17 - 80 col2
----
-63

query II rowsort
SELECT DISTINCT 75 AS col1, - 93 + + NULLIF ( - + ( - + ( + 47 ) ), - + 61 * + + 48 - - 38 * - 57 )
----
75
-46

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

query I rowsort
SELECT + 44 * 53 * 91 AS col2
----
212212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-833
SELECT DISTINCT - + 5 * CAST( NULL AS DECIMAL ) + - 68 + + + COALESCE ( - 88, + 57 + + + COALESCE ( + CAST( - 10 AS SIGNED ), COUNT( * ) ) ) / ( + 57 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT - + 5 * CAST ( NULL AS REAL ) + - 68 + + + COALESCE ( - 88, + 57 + + + COALESCE ( + CAST ( - 10 AS INTEGER ), COUNT ( * ) ) ) / ( + 57 ) AS col2
----
NULL

query I rowsort
SELECT - CASE 50 WHEN + 63 THEN 47 - + + 92 ELSE + - 98 END AS col2
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-835
SELECT - 4 AS col0, + COUNT( * ) - - MAX( DISTINCT + 42 ) + + SUM( + 91 ) - 23 - - 20 + - 61
----
-4
70

skipif mysql # not compatible
query II rowsort label-835
SELECT - 4 AS col0, + COUNT ( * ) - - MAX ( DISTINCT + 42 ) + + SUM ( + 91 ) - 23 - - 20 + - 61
----
-4
70

query I rowsort
SELECT ALL - 0 * - 44 + - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT DISTINCT - COALESCE ( 7, - + COUNT( 31 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT - COALESCE ( 7, - + COUNT ( 31 ) )
----
-7

query I rowsort
SELECT 42 * ( - 74 )
----
-3108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-839
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) * - - 23 - + - 9
----
32

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) * - - 23 - + - 9
----
32

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-845
SELECT - 41 * + CAST( NULL AS DECIMAL ) + + - 34 + + + 78 AS col1, + CAST( - 68 AS SIGNED )
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-845
SELECT - 41 * + CAST ( NULL AS REAL ) + + - 34 + + + 78 AS col1, + CAST ( - 68 AS INTEGER )
----
NULL
-68

query I rowsort
SELECT DISTINCT 49 * 16 + 91 + + 15 * 79 * ( - 48 )
----
-56005

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT + SUM( 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-847
SELECT + SUM ( 25 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-848
SELECT DISTINCT 55 * + - 65 + - MAX( CAST( NULL AS SIGNED ) ) AS col2, - 64
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-848
SELECT DISTINCT 55 * + - 65 + - MAX ( CAST ( NULL AS INTEGER ) ) AS col2, - 64
----
NULL
-64

query II rowsort
SELECT ALL 87 * - + 96, - 56 AS col1
----
-8352
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT MAX( DISTINCT 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-850
SELECT MAX ( DISTINCT 85 ) AS col0
----
85

query I rowsort
SELECT ALL 51 * + + 27 * - 42
----
-57834

query I rowsort
SELECT 18 + + 72 AS col2
----
90

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT DISTINCT + 49 DIV ( - + 52 ) DIV 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT + 49 / ( - + 52 ) / 21 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-855
SELECT ALL - 85 - - + 56, MAX( DISTINCT 40 ) + 96 AS col1
----
-29
136

skipif mysql # not compatible
query II rowsort label-855
SELECT ALL - 85 - - + 56, MAX ( DISTINCT 40 ) + 96 AS col1
----
-29
136

onlyif mysql # DIV for integer division: 
query I rowsort label-856
SELECT - 97 DIV + - 78
----
1

skipif mysql # not compatible
query I rowsort label-856
SELECT - 97 / + - 78
----
1

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

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

query I rowsort
SELECT + 85 * 24 * - 26 AS col1
----
-53040

query I rowsort
SELECT + + 90 * 61
----
5490

onlyif mysql # DIV for integer division: 
query II rowsort label-860
SELECT - CASE + 57 WHEN - 47 THEN NULL ELSE - 87 END AS col0, 6 DIV - 69 - + 22 AS col0
----
87
-22

skipif mysql # not compatible
query II rowsort label-860
SELECT - CASE + 57 WHEN - 47 THEN NULL ELSE - 87 END AS col0, 6 / - 69 - + 22 AS col0
----
87
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL 42 * + 84 * + COUNT( ALL + - 28 ) + + 69 AS col0
----
3597

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL 42 * + 84 * + COUNT ( ALL + - 28 ) + + 69 AS col0
----
3597

query I rowsort
SELECT DISTINCT 60 * - - 98
----
5880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-863
SELECT CASE - - 55 WHEN + - 45 THEN + COUNT( ALL - CASE 95 WHEN 72 THEN - 53 ELSE + 97 * - 64 + + 81 * + CAST( 53 AS SIGNED ) END ) / COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT CASE - - 55 WHEN + - 45 THEN + COUNT ( ALL - CASE 95 WHEN 72 THEN - 53 ELSE + 97 * - 64 + + 81 * + CAST ( 53 AS INTEGER ) END ) / COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT - + MAX( DISTINCT + + 94 ) + + + 21 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-864
SELECT - + MAX ( DISTINCT + + 94 ) + + + 21 AS col2
----
-73

query I rowsort
SELECT - + 83 - - - 49
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT - 44 * + COUNT( * ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-866
SELECT - 44 * + COUNT ( * ) col2
----
-44

query II rowsort
SELECT ALL - - 97 + 59 AS col2, - NULLIF ( 38, + 70 ) col2
----
156
-38

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-870
SELECT - - 6 DIV 20 * 36 * + 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-870
SELECT - - 6 / 20 * 36 * + 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-871
SELECT - 15 + + 48 AS col2, 99 * + COUNT( * )
----
33
99

skipif mysql # not compatible
query II rowsort label-871
SELECT - 15 + + 48 AS col2, 99 * + COUNT ( * )
----
33
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-872
SELECT DISTINCT + + CAST( - + 64 AS SIGNED ) * + 73
----
-4672

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT + + CAST ( - + 64 AS INTEGER ) * + 73
----
-4672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-873
SELECT - 29 + - - 73 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-873
SELECT - 29 + - - 73 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT ALL COALESCE ( 41, + - CAST( NULL AS SIGNED ), 85 ) + + 25 + - 2
----
64

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL COALESCE ( 41, + - CAST ( NULL AS INTEGER ), 85 ) + + 25 + - 2
----
64

query I rowsort
SELECT DISTINCT + 79 + - - 41 AS col1
----
120

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

query II rowsort
SELECT + 92 AS col0, 12
----
92
12

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-879
SELECT + NULLIF ( - + CAST( NULL AS SIGNED ), + - COUNT( * ) / + 7 + + 18 + - ( - + COUNT( * ) ) / 35 / + 7 - + 52 + NULLIF ( + NULLIF ( - 9, 83 ), - 74 / 68 ) * COUNT( * ) * ( CASE 87 WHEN 28 THEN NULL WHEN - 37 THEN - 42 * 95 ELSE NULL END * - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT + NULLIF ( - + CAST ( NULL AS INTEGER ), + - COUNT ( * ) / + 7 + + 18 + - ( - + COUNT ( * ) ) / 35 / + 7 - + 52 + NULLIF ( + NULLIF ( - 9, 83 ), - 74 / 68 ) * COUNT ( * ) * ( CASE 87 WHEN 28 THEN NULL WHEN - 37 THEN - 42 * 95 ELSE NULL END * - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT CASE - COUNT( * ) WHEN - 43 THEN - 44 WHEN - + NULLIF ( 70, + 18 + + 85 + COUNT( * ) ) THEN NULL END / - CASE 14 WHEN - 43 THEN + 89 END - 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-880
SELECT CASE - COUNT ( * ) WHEN - 43 THEN - 44 WHEN - + NULLIF ( 70, + 18 + + 85 + COUNT ( * ) ) THEN NULL END / - CASE 14 WHEN - 43 THEN + 89 END - 9 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 20 * + + 53 - - 19 * 40 AS col0
----
-300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-882
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) * ( - CAST( 42 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) * ( - CAST ( 42 AS REAL ) )
----
NULL

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

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

query I rowsort
SELECT + NULLIF ( + - 90, + + 30 )
----
-90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT - ( + 68 ) * 72 - 82 + + + ( - COUNT( * ) ) * 84 - 51
----
-5113

skipif mysql # not compatible
query I rowsort label-886
SELECT - ( + 68 ) * 72 - 82 + + + ( - COUNT ( * ) ) * 84 - 51
----
-5113

onlyif mysql # aggregate syntax: 
query II rowsort label-887
SELECT ALL + 72, - COUNT( ALL + 75 ) * - 69 AS col2
----
72
69

skipif mysql # not compatible
query II rowsort label-887
SELECT ALL + 72, - COUNT ( ALL + 75 ) * - 69 AS col2
----
72
69

query I rowsort
SELECT + NULLIF ( - 93, - + 30 / + 21 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT 54 * 86 + + COUNT( * ) * + 28 AS col1
----
4672

skipif mysql # not compatible
query I rowsort label-889
SELECT 54 * 86 + + COUNT ( * ) * + 28 AS col1
----
4672

query I rowsort
SELECT + 20 * 55 col2
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - + 46 * + 40 - - 59 + + COUNT( * )
----
-1780

skipif mysql # not compatible
query I rowsort label-891
SELECT - + 46 * + 40 - - 59 + + COUNT ( * )
----
-1780

query I rowsort
SELECT ALL - 22 * - 16 AS col0
----
352

query II rowsort
SELECT ALL + 16, 92 AS col1
----
16
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-894
SELECT + 70 + + + ( - 68 ) * 73 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT + 70 + + + ( - 68 ) * 73 + + CAST ( NULL AS REAL )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT ALL + - 87 DIV - 60
----
1

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL + - 87 / - 60
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT + - SUM( + 66 ) + + 32 * 91 * - MIN( ALL + 53 ) * - 43
----
6636382

skipif mysql # not compatible
query I rowsort label-897
SELECT + - SUM ( + 66 ) + + 32 * 91 * - MIN ( ALL + 53 ) * - 43
----
6636382

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT ALL + + COALESCE ( - + 0, 95 ) * COUNT( * ) * 88 + + 51 + - COALESCE ( - 70, - 81 ) AS col2
----
121

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL + + COALESCE ( - + 0, 95 ) * COUNT ( * ) * 88 + + 51 + - COALESCE ( - 70, - 81 ) AS col2
----
121

query I rowsort
SELECT ALL - ( + 14 ) * 38 + - - CASE + 43 WHEN - - 16 THEN + - 22 * - ( + + 26 ) END AS col1
----
NULL

query I rowsort
SELECT + - 17 * - - ( + - 2 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT DISTINCT MAX( ALL + - 82 ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT MAX ( ALL + - 82 ) col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT + + COALESCE ( + - 0, + + 23 ) * + 72 * 33 + COUNT( DISTINCT + 27 ) * - + 55 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-902
SELECT + + COALESCE ( + - 0, + + 23 ) * + 72 * 33 + COUNT ( DISTINCT + 27 ) * - + 55 AS col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-903
SELECT - 46 + + COALESCE ( + CAST( NULL AS SIGNED ), 14 - COALESCE ( 6, - 14 ), - 64 + + 62 + + 15 * - 49 )
----
-38

skipif mysql # not compatible
query I rowsort label-903
SELECT - 46 + + COALESCE ( + CAST ( NULL AS INTEGER ), 14 - COALESCE ( 6, - 14 ), - 64 + + 62 + + 15 * - 49 )
----
-38

query I rowsort
SELECT - 99 * + + ( + 66 )
----
-6534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT - NULLIF ( - - NULLIF ( + NULLIF ( + NULLIF ( + 30, + ( - + 18 ) * CAST( NULL AS SIGNED ) + + 3 - - - 23 ), + 34 ), 30 / - COUNT( * ) ), 27 * 26 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-905
SELECT - NULLIF ( - - NULLIF ( + NULLIF ( + NULLIF ( + 30, + ( - + 18 ) * CAST ( NULL AS INTEGER ) + + 3 - - - 23 ), + 34 ), 30 / - COUNT ( * ) ), 27 * 26 ) AS col0
----
-30

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

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

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

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

query I rowsort
SELECT + - NULLIF ( - 86, - 14 + + + 19 ) - - 56 + - 46 * + NULLIF ( + 87, COALESCE ( - 5, - 80 ) ) + ( + ( 87 ) + 40 ) col2
----
-3733

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-909
SELECT - CAST( + 17 AS SIGNED ) * + - 0 * MAX( DISTINCT - + 79 )
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT - CAST ( + 17 AS INTEGER ) * + - 0 * MAX ( DISTINCT - + 79 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL CASE ( - + 32 ) WHEN - + 35 * - + 2 + - 33 + - + 67 THEN + + 3 * - - 92 * NULLIF ( + + 41, + CASE + 75 WHEN 62 THEN 61 WHEN + 22 * 49 + + 86 THEN COUNT( * ) END + + 16 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL CASE ( - + 32 ) WHEN - + 35 * - + 2 + - 33 + - + 67 THEN + + 3 * - - 92 * NULLIF ( + + 41, + CASE + 75 WHEN 62 THEN 61 WHEN + 22 * 49 + + 86 THEN COUNT ( * ) END + + 16 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-911
SELECT - CAST( + - 31 AS SIGNED ) + - + 81
----
-50

skipif mysql # not compatible
query I rowsort label-911
SELECT - CAST ( + - 31 AS INTEGER ) + - + 81
----
-50

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

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

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

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

query I rowsort
SELECT 89 + - 13 AS col2
----
76

query I rowsort
SELECT 92 - 10
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-916
SELECT DISTINCT + 76 / CASE - AVG ( DISTINCT + 65 ) WHEN + ( - 65 ) + COUNT( * ) THEN 20 + + + 23 - + - COUNT( DISTINCT - 0 ) * 25 WHEN COUNT( * ) - MIN( ALL 15 + - 2 ) THEN NULL WHEN 95 * + 94 THEN CAST( NULL AS SIGNED ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT + 76 / CASE - AVG ( DISTINCT + 65 ) WHEN + ( - 65 ) + COUNT ( * ) THEN 20 + + + 23 - + - COUNT ( DISTINCT - 0 ) * 25 WHEN COUNT ( * ) - MIN ( ALL 15 + - 2 ) THEN NULL WHEN 95 * + 94 THEN CAST ( NULL AS INTEGER ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-917
SELECT 25 AS col0, CAST( NULL AS SIGNED )
----
25
NULL

skipif mysql # not compatible
query II rowsort label-917
SELECT 25 AS col0, CAST ( NULL AS INTEGER )
----
25
NULL

query II rowsort
SELECT ALL - 72 AS col2, + 82 AS col2
----
-72
82

query I rowsort
SELECT 8 * 7 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-920
SELECT ALL - 58 * - - CAST( NULL AS SIGNED ) / - COUNT( DISTINCT + + 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL - 58 * - - CAST ( NULL AS INTEGER ) / - COUNT ( DISTINCT + + 6 )
----
NULL

query II rowsort
SELECT 38 AS col0, 96 AS col1
----
38
96

onlyif mysql # aggregate syntax: 
query II rowsort label-922
SELECT ALL - 88 AS col2, COUNT( * ) + 82
----
-88
83

skipif mysql # not compatible
query II rowsort label-922
SELECT ALL - 88 AS col2, COUNT ( * ) + 82
----
-88
83

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

query I rowsort
SELECT 98 * + 76 AS col2
----
7448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-925
SELECT 17 DIV SUM( DISTINCT - - 54 )
----
0

skipif mysql # not compatible
query I rowsort label-925
SELECT 17 / SUM ( DISTINCT - - 54 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT 52 DIV 6 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-926
SELECT 52 / 6 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-927
SELECT DISTINCT - 35 + - - 68 + - 66 + + CAST( NULL AS DECIMAL ) * COUNT( * ) * + - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT - 35 + - - 68 + - 66 + + CAST ( NULL AS REAL ) * COUNT ( * ) * + - 11 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-928
SELECT DISTINCT ( 88 ) + NULLIF ( + COALESCE ( + 65, + 7, + - COUNT( * ) ), 50 * MAX( DISTINCT + 72 ) )
----
153

skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT ( 88 ) + NULLIF ( + COALESCE ( + 65, + 7, + - COUNT ( * ) ), 50 * MAX ( DISTINCT + 72 ) )
----
153

query II rowsort
SELECT + 95, + 35 AS col1
----
95
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-930
SELECT + 81 * 20 + + - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-930
SELECT + 81 * 20 + + - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 60 * + ( - 21 )
----
-1260

query I rowsort
SELECT DISTINCT - 19 + + 21
----
2

query I rowsort
SELECT ALL + 61 + - ( - + 16 )
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT - MAX( - - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-935
SELECT - MAX ( - - 87 )
----
-87

query I rowsort
SELECT + 70 - 20 * - - 89
----
-1710

onlyif mysql # DIV for integer division: 
query II rowsort label-937
SELECT - 2 col1, - 9 DIV - + 56
----
-2
0

skipif mysql # not compatible
query II rowsort label-937
SELECT - 2 col1, - 9 / - + 56
----
-2
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-939
SELECT - 20 - + 77 + - 92 + + + 96 * 97 * + CAST( - 54 AS SIGNED ) * - 60 col2
----
30170691

skipif mysql # not compatible
query I rowsort label-939
SELECT - 20 - + 77 + - 92 + + + 96 * 97 * + CAST ( - 54 AS INTEGER ) * - 60 col2
----
30170691

query II rowsort
SELECT + 25 AS col1, ( + - 75 ) * - + ( - 33 ) AS col1
----
25
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT - SUM( ALL - + 38 ) + + + MIN( - 64 ) - - + 78 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-941
SELECT - SUM ( ALL - + 38 ) + + + MIN ( - 64 ) - - + 78 AS col0
----
52

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

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

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

query II rowsort
SELECT ALL 28 - + 83 AS col0, COALESCE ( + 41, + - 62 ) * 48 + - 42
----
-55
1926

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-945
SELECT 83 DIV + 49 AS col1, - MIN( + + 80 ) * - - 9 + + 44 AS col0
----
1
-676

skipif mysql # not compatible
query II rowsort label-945
SELECT 83 / + 49 AS col1, - MIN ( + + 80 ) * - - 9 + + 44 AS col0
----
1
-676

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT 18 * + COALESCE ( + - 85, - COUNT( * ) )
----
-1530

skipif mysql # not compatible
query I rowsort label-946
SELECT 18 * + COALESCE ( + - 85, - COUNT ( * ) )
----
-1530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT CAST( + 47 AS SIGNED ) + + 97 AS col0
----
144

skipif mysql # not compatible
query I rowsort label-947
SELECT CAST ( + 47 AS INTEGER ) + + 97 AS col0
----
144

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL - SUM( ALL - COALESCE ( - 56, + 60 ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL - SUM ( ALL - COALESCE ( - 56, + 60 ) ) AS col2
----
-56

query I rowsort
SELECT 72 * 48 * 77 + - + 76 AS col2
----
266036

query I rowsort
SELECT 7 * ( - 76 ) col0
----
-532

query I rowsort
SELECT 43 * + + 50 * - + 15
----
-32250

query I rowsort
SELECT ALL - CASE 17 WHEN + 37 THEN - + 84 + 91 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 85 + 0 AS col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-955
SELECT DISTINCT - CASE - 27 WHEN + COUNT( * ) * + - 13 * - - 66 THEN NULL WHEN - 44 THEN + COALESCE ( - MAX( ALL 53 ), - 0 * + 67 * + + CAST( + 95 AS SIGNED ) ) WHEN + 5 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT - CASE - 27 WHEN + COUNT ( * ) * + - 13 * - - 66 THEN NULL WHEN - 44 THEN + COALESCE ( - MAX ( ALL 53 ), - 0 * + 67 * + + CAST ( + 95 AS INTEGER ) ) WHEN + 5 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ALL - 27 + - NULLIF ( + - 13, + 0 - NULLIF ( - 9, 90 + + 91 ) + + CASE + 98 WHEN + 88 THEN NULLIF ( 86, + 13 + + COUNT( * ) ) ELSE COUNT( * ) / + 29 END )
----
-14

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - 27 + - NULLIF ( + - 13, + 0 - NULLIF ( - 9, 90 + + 91 ) + + CASE + 98 WHEN + 88 THEN NULLIF ( 86, + 13 + + COUNT ( * ) ) ELSE COUNT ( * ) / + 29 END )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-957
SELECT DISTINCT - CASE - 63 WHEN 4 THEN NULL WHEN 48 * - CASE + + 9 WHEN + 91 + 99 THEN NULL ELSE - 63 * COUNT( * ) END + + 71 THEN 55 ELSE CAST( NULL AS SIGNED ) * 7 + 68 END + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT - CASE - 63 WHEN 4 THEN NULL WHEN 48 * - CASE + + 9 WHEN + 91 + 99 THEN NULL ELSE - 63 * COUNT ( * ) END + + 71 THEN 55 ELSE CAST ( NULL AS INTEGER ) * 7 + 68 END + 45
----
NULL

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

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

query I rowsort
SELECT - 5 + + + 87 * + + 17 AS col0
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT COALESCE ( + 80, - 40 * + + COUNT( * ) / + - NULLIF ( CASE + - 29 WHEN - 88 THEN NULL ELSE - + 30 END, - 79 + MAX( - 14 ) * 75 ) * 77 ) * - CASE 90 WHEN + NULLIF ( - 24, 64 ) THEN + 88 END - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-960
SELECT COALESCE ( + 80, - 40 * + + COUNT ( * ) / + - NULLIF ( CASE + - 29 WHEN - 88 THEN NULL ELSE - + 30 END, - 79 + MAX ( - 14 ) * 75 ) * 77 ) * - CASE 90 WHEN + NULLIF ( - 24, 64 ) THEN + 88 END - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT 66 + SUM( + - 99 ) + 53 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-961
SELECT 66 + SUM ( + - 99 ) + 53 AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-962
SELECT + 88 - + - 43 DIV + - 47 * - 83 * + - SUM( - 35 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-962
SELECT + 88 - + - 43 / + - 47 * - 83 * + - SUM ( - 35 ) AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT 55 DIV + COUNT( * ) AS col1
----
55

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

query I rowsort
SELECT ALL - ( - 98 ) + 14 AS col0
----
112

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

skipif mysql # not compatible
query I rowsort label-965
SELECT 84 * - + 88 + - COUNT ( * ) + - + 85 AS col0
----
-7478

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

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

query I rowsort
SELECT ALL ( - 8 ) - + - 24
----
16

query I rowsort
SELECT ALL COALESCE ( - + 49, + 24, 30, - - 32 * + + 94 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT + COUNT( * ) + ( 56 )
----
57

skipif mysql # not compatible
query I rowsort label-969
SELECT + COUNT ( * ) + ( 56 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-970
SELECT 91 * + CAST( - - 10 AS SIGNED ) * - SUM( ALL - 41 ) * CAST( NULL AS SIGNED ) / - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-970
SELECT 91 * + CAST ( - - 10 AS INTEGER ) * - SUM ( ALL - 41 ) * CAST ( NULL AS INTEGER ) / - 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-971
SELECT MAX( + + 3 ) + - - 79 - - - COUNT( * ) - 52, - 60 AS col1
----
29
-60

skipif mysql # not compatible
query II rowsort label-971
SELECT MAX ( + + 3 ) + - - 79 - - - COUNT ( * ) - 52, - 60 AS col1
----
29
-60

query II rowsort
SELECT ALL 34 AS col0, 53
----
34
53

query I rowsort
SELECT DISTINCT NULLIF ( - 2, - ( - - 15 ) ) AS col0
----
-2

query II rowsort
SELECT ALL 45 AS col1, - 1
----
45
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT - COUNT( DISTINCT 82 ) * + COUNT( * ) * COUNT( * ) + 83 + + - 81 + - 12 * SUM( ALL 40 ) + - 96 AS col1
----
-575

skipif mysql # not compatible
query I rowsort label-975
SELECT - COUNT ( DISTINCT 82 ) * + COUNT ( * ) * COUNT ( * ) + 83 + + - 81 + - 12 * SUM ( ALL 40 ) + - 96 AS col1
----
-575

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

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT COUNT ( * ) + + MIN ( ALL + 83 )
----
84

query I rowsort
SELECT + 27 * - - 90 AS col0
----
2430

query II rowsort
SELECT 93 AS col1, + 35 * + + 7 AS col1
----
93
245

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT + 45 DIV + 19 col2
----
2

skipif mysql # not compatible
query I rowsort label-979
SELECT + 45 / + 19 col2
----
2

query I rowsort
SELECT + 50 + 10 col0
----
60

query I rowsort
SELECT ALL 15 * 34 AS col0
----
510

query I rowsort
SELECT DISTINCT 44 + - + 13
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT ALL - 12 * + - COUNT( * ) + - COALESCE ( + + 15, + 94 )
----
-3

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL - 12 * + - COUNT ( * ) + - COALESCE ( + + 15, + 94 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT - 31 DIV + 59 + 64
----
64

skipif mysql # not compatible
query I rowsort label-984
SELECT - 31 / + 59 + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT ALL - COUNT( * ) * + + CASE + 28 WHEN 67 THEN + - CASE - 83 WHEN 37 THEN NULL WHEN 96 + - - 55 * + 26 + + 8 THEN NULL WHEN + COUNT( * ) + + 78 THEN 48 * 65 END WHEN ( 52 ) THEN NULL ELSE - 79 * + 64 + - 58 END + - ( 65 )
----
5049

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL - COUNT ( * ) * + + CASE + 28 WHEN 67 THEN + - CASE - 83 WHEN 37 THEN NULL WHEN 96 + - - 55 * + 26 + + 8 THEN NULL WHEN + COUNT ( * ) + + 78 THEN 48 * 65 END WHEN ( 52 ) THEN NULL ELSE - 79 * + 64 + - 58 END + - ( 65 )
----
5049

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-986
SELECT ALL + COALESCE ( + - 73, - + CAST( NULL AS SIGNED ) ), - 67 * - 53 AS col2
----
-73
3551

skipif mysql # not compatible
query II rowsort label-986
SELECT ALL + COALESCE ( + - 73, - + CAST ( NULL AS INTEGER ) ), - 67 * - 53 AS col2
----
-73
3551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-987
SELECT COALESCE ( - 76, - 53, + CAST( NULL AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-987
SELECT COALESCE ( - 76, - 53, + CAST ( NULL AS INTEGER ) )
----
-76

onlyif mysql # DIV for integer division: 
query II rowsort label-988
SELECT DISTINCT 14 * - + 84 + + 73 AS col0, - 19 DIV - 30 * + + 41 AS col2
----
-1103
0

skipif mysql # not compatible
query II rowsort label-988
SELECT DISTINCT 14 * - + 84 + + 73 AS col0, - 19 / - 30 * + + 41 AS col2
----
-1103
0

onlyif mysql # aggregate syntax: 
query II rowsort label-989
SELECT COALESCE ( 23, - MIN( ALL - 0 ), + 16 - + COUNT( * ) + - ( + ( - + COUNT( * ) ) ) + MIN( DISTINCT - 50 ) ), + 82 AS col0
----
23
82

skipif mysql # not compatible
query II rowsort label-989
SELECT COALESCE ( 23, - MIN ( ALL - 0 ), + 16 - + COUNT ( * ) + - ( + ( - + COUNT ( * ) ) ) + MIN ( DISTINCT - 50 ) ), + 82 AS col0
----
23
82

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

skipif mysql # not compatible
query I rowsort label-990
SELECT + MAX ( 20 )
----
20

query II rowsort
SELECT - 8 col2, 28
----
-8
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-992
SELECT ALL 72 * - - CAST( + 53 AS SIGNED ) - 67 + - 73 + - - CASE + COUNT( * ) WHEN COUNT( * ) / - 1 THEN - COUNT( * ) WHEN + - 38 / 83 THEN - 96 WHEN + NULLIF ( + 66, - 35 + 35 ) - - 45 THEN NULL ELSE NULL END * COUNT( * ) * + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL 72 * - - CAST ( + 53 AS INTEGER ) - 67 + - 73 + - - CASE + COUNT ( * ) WHEN COUNT ( * ) / - 1 THEN - COUNT ( * ) WHEN + - 38 / 83 THEN - 96 WHEN + NULLIF ( + 66, - 35 + 35 ) - - 45 THEN NULL ELSE NULL END * COUNT ( * ) * + 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT 26 * 92 * - MAX( ALL + ( 56 ) ) col0
----
-133952

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT 26 * 92 * - MAX ( ALL + ( 56 ) ) col0
----
-133952

query I rowsort
SELECT ALL 76 * - 41 - - 92 AS col1
----
-3024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-995
SELECT - + ( - MAX( DISTINCT + 57 ) ) * + - 80 + - MIN( DISTINCT + 14 ) + - 26 + COALESCE ( - + COUNT( * ), + + 64 + - 48 DIV + + COALESCE ( + - 12, 32 * 18 + 92, + 63 * 6 ) * 33, 5 * 77, + COALESCE ( 48, - ( + COUNT( * ) ), + 67 DIV - 94 ) )
----
-4601

skipif mysql # not compatible
query I rowsort label-995
SELECT - + ( - MAX ( DISTINCT + 57 ) ) * + - 80 + - MIN ( DISTINCT + 14 ) + - 26 + COALESCE ( - + COUNT ( * ), + + 64 + - 48 / + + COALESCE ( + - 12, 32 * 18 + 92, + 63 * 6 ) * 33, 5 * 77, + COALESCE ( 48, - ( + COUNT ( * ) ), + 67 / - 94 ) )
----
-4601

query I rowsort
SELECT DISTINCT + - AVG ( - CASE + COALESCE ( COALESCE ( - 17, 94 * + - 17 ), - + 53 ) WHEN 26 THEN + 97 ELSE NULL END ) * - 93 col0
----
NULL

query I rowsort
SELECT ALL + NULLIF ( - 73, + 33 ) AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-998
SELECT 3 * - 88 + + 50 + COALESCE ( - + 11, + ( - + 26 ), 80 ) - MAX( DISTINCT - 16 ) DIV - 51 + + ( 70 ) AS col1
----
-155

skipif mysql # not compatible
query I rowsort label-998
SELECT 3 * - 88 + + 50 + COALESCE ( - + 11, + ( - + 26 ), 80 ) - MAX ( DISTINCT - 16 ) / - 51 + + ( 70 ) AS col1
----
-155

query II rowsort
SELECT DISTINCT + - 67 AS col2, 40 AS col0
----
-67
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT ALL 84 * - COUNT( * ) + COALESCE ( 57, - 59, 58 * + 73 * - + COALESCE ( 81, CAST( - 54 AS SIGNED ) ) * - 46 ) - + - 25
----
-2

skipif mysql # not compatible
query I rowsort label-1000
SELECT ALL 84 * - COUNT ( * ) + COALESCE ( 57, - 59, 58 * + 73 * - + COALESCE ( 81, CAST ( - 54 AS INTEGER ) ) * - 46 ) - + - 25
----
-2

query II rowsort
SELECT - 55 - 6 + 90 col0, 5 + + 48 * - + 9 AS col0
----
29
-427

query I rowsort
SELECT + 24 * 66 + 31 AS col0
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT DISTINCT + CASE - 78 WHEN + - MAX( - - 32 ) THEN NULL WHEN - + 91 THEN NULL ELSE + 40 + - + 49 END
----
-9

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT + CASE - 78 WHEN + - MAX ( - - 32 ) THEN NULL WHEN - + 91 THEN NULL ELSE + 40 + - + 49 END
----
-9

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

query I rowsort
SELECT - 87 - ( + 83 ) - 69 + + NULLIF ( - 52, 67 ) - + + 19 AS col0
----
-310

onlyif mysql # aggregate syntax: 
query II rowsort label-1006
SELECT ALL - 44 + - 40 col1, + NULLIF ( COUNT( DISTINCT - 96 ), + 11 ) col0
----
-84
1

skipif mysql # not compatible
query II rowsort label-1006
SELECT ALL - 44 + - 40 col1, + NULLIF ( COUNT ( DISTINCT - 96 ), + 11 ) col0
----
-84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT - CASE + 0 WHEN + 67 THEN - 51 + 86 WHEN - 76 THEN MAX( - 27 ) ELSE NULL END * 90 * COUNT( * ) + COUNT( * ) + - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1007
SELECT - CASE + 0 WHEN + 67 THEN - 51 + 86 WHEN - 76 THEN MAX ( - 27 ) ELSE NULL END * 90 * COUNT ( * ) + COUNT ( * ) + - 47 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1008
SELECT - 28 + + CAST( + 76 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-1008
SELECT - 28 + + CAST ( + 76 AS INTEGER )
----
48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1010
SELECT ALL CAST( - 98 AS SIGNED ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL CAST ( - 98 AS INTEGER ) col2
----
-98

query I rowsort
SELECT + 10 - + 35 * - 17
----
605

query I rowsort
SELECT ALL NULLIF ( 34, - + 1 ) + + + 75 AS col1
----
109

query I rowsort
SELECT - 39 * + 9 * 67 col0
----
-23517

query I rowsort
SELECT + 74 + + 13 AS col0
----
87

query I rowsort
SELECT ALL + ( - 81 ) + + + 5
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1016
SELECT ALL + CAST( NULL AS SIGNED ) + - CASE - CAST( 42 AS SIGNED ) WHEN 78 THEN + 82 END + - MAX( ALL + ( - - 77 ) ) + - 64 * - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL + CAST ( NULL AS INTEGER ) + - CASE - CAST ( 42 AS INTEGER ) WHEN 78 THEN + 82 END + - MAX ( ALL + ( - - 77 ) ) + - 64 * - 29 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1017
SELECT - 79 + + MAX( ALL + CAST( - 45 AS SIGNED ) ) + - - 32
----
-92

skipif mysql # not compatible
query I rowsort label-1017
SELECT - 79 + + MAX ( ALL + CAST ( - 45 AS INTEGER ) ) + - - 32
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT - 38 * - COUNT( * ) * + - 17 * + ( + - 69 ) AS col2
----
44574

skipif mysql # not compatible
query I rowsort label-1018
SELECT - 38 * - COUNT ( * ) * + - 17 * + ( + - 69 ) AS col2
----
44574

query I rowsort
SELECT - 1 * - + 36 + 94
----
130

query I rowsort
SELECT 43 * + COALESCE ( + 44, - + ( 59 ) + - 12 ) - 70 AS col1
----
1822

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL ( + + COUNT( * ) ) * + - ( - CASE CASE - ( 81 ) WHEN + - 89 THEN NULL WHEN + 98 - - COUNT( * ) THEN - - AVG ( ALL + 67 ) + 93 END WHEN 77 / 66 THEN + 75 + + 56 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL ( + + COUNT ( * ) ) * + - ( - CASE CASE - ( 81 ) WHEN + - 89 THEN NULL WHEN + 98 - - COUNT ( * ) THEN - - AVG ( ALL + 67 ) + 93 END WHEN 77 / 66 THEN + 75 + + 56 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1022
SELECT + 28 DIV COUNT( * ) + + + 84 + 52 + - MIN( DISTINCT + 38 ) + - 83 AS col0, + COUNT( * ) DIV - ( ( - 70 ) ) - + 96 + MIN( - 61 ) - - 14
----
43
-143

skipif mysql # not compatible
query II rowsort label-1022
SELECT + 28 / COUNT ( * ) + + + 84 + 52 + - MIN ( DISTINCT + 38 ) + - 83 AS col0, + COUNT ( * ) / - ( ( - 70 ) ) - + 96 + MIN ( - 61 ) - - 14
----
43
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT ALL - + 55 DIV - 79 - + 9 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL - + 55 / - 79 - + 9 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT + - 93 + + + 99 + + 74 * + 37 + + + COUNT( * ) + - COUNT( * ) + - - 51 + - + COUNT( * ) * - COUNT( * ) * - 22 * - 17 col1
----
3169

skipif mysql # not compatible
query I rowsort label-1024
SELECT + - 93 + + + 99 + + 74 * + 37 + + + COUNT ( * ) + - COUNT ( * ) + - - 51 + - + COUNT ( * ) * - COUNT ( * ) * - 22 * - 17 col1
----
3169

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

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

query I rowsort
SELECT + 28 * 28 - - + 76
----
860

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1027
SELECT + + 32 + - CASE + 77 WHEN + 82 THEN NULL WHEN 9 THEN - COUNT( * ) * CAST( NULL AS DECIMAL ) + + ( + AVG ( ALL - - 51 ) ) WHEN 12 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT + + 32 + - CASE + 77 WHEN + 82 THEN NULL WHEN 9 THEN - COUNT ( * ) * CAST ( NULL AS REAL ) + + ( + AVG ( ALL - - 51 ) ) WHEN 12 THEN NULL END
----
NULL

query I rowsort
SELECT + + 6 * CASE + + ( - 87 ) WHEN 48 / - + 54 + + - 41 THEN - 74 * + 87 * - - 20 * - - 52 END * - 66 + - 16 - 80 / 87
----
NULL

query I rowsort
SELECT 58 * + - 41 + - 96
----
-2474

query I rowsort
SELECT - 86 + - - 20
----
-66

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

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + COALESCE ( + 36, + + COUNT ( * ), + ( - - 59 ) )
----
36

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1033
SELECT - ( - - 20 ) + - COUNT( + 37 ) + + COUNT( * ) DIV + 49 col0
----
-21

skipif mysql # not compatible
query I rowsort label-1033
SELECT - ( - - 20 ) + - COUNT ( + 37 ) + + COUNT ( * ) / + 49 col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT 91 * + 8 + SUM( ALL - 42 ) + + 56 + - - ( + 59 )
----
801

skipif mysql # not compatible
query I rowsort label-1034
SELECT 91 * + 8 + SUM ( ALL - 42 ) + + 56 + - - ( + 59 )
----
801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1035
SELECT + ( MAX( CAST( - - 91 AS SIGNED ) ) ) + SUM( ALL + - CAST( 23 AS SIGNED ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-1035
SELECT + ( MAX ( CAST ( - - 91 AS INTEGER ) ) ) + SUM ( ALL + - CAST ( 23 AS INTEGER ) ) AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1036
SELECT 8 DIV - CASE + 22 WHEN + 59 + - - 7 - 44 THEN + + COUNT( * ) ELSE NULL END
----
-8

skipif mysql # not compatible
query I rowsort label-1036
SELECT 8 / - CASE + 22 WHEN + 59 + - - 7 - 44 THEN + + COUNT ( * ) ELSE NULL END
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ALL 70 + + 64 * + MAX( DISTINCT - - 92 )
----
5958

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL 70 + + 64 * + MAX ( DISTINCT - - 92 )
----
5958

onlyif mysql # DIV for integer division: 
query I rowsort label-1039
SELECT ALL + 13 + - 90 + + 44 DIV - 53
----
-77

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL + 13 + - 90 + + 44 / - 53
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT CAST( + 49 AS SIGNED ) * + 48 AS col1
----
2352

skipif mysql # not compatible
query I rowsort label-1040
SELECT CAST ( + 49 AS INTEGER ) * + 48 AS col1
----
2352

onlyif mysql # DIV for integer division: 
query II rowsort label-1041
SELECT - 5 * 26 * - 29 + + 54 + + 73 AS col1, 79 DIV - - 63
----
3897
1

skipif mysql # not compatible
query II rowsort label-1041
SELECT - 5 * 26 * - 29 + + 54 + + 73 AS col1, 79 / - - 63
----
3897
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT 37 + + COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-1042
SELECT 37 + + COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1043
SELECT ALL - COUNT( * ) + + + 47 + 7 + + + 59 + - MIN( ALL - 78 ) DIV + 42
----
113

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - COUNT ( * ) + + + 47 + 7 + + + 59 + - MIN ( ALL - 78 ) / + 42
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1044
SELECT 17 * - NULLIF ( - COUNT( * ), + CAST( NULL AS SIGNED ) + 53 * 12 ) * - COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1044
SELECT 17 * - NULLIF ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) + 53 * 12 ) * - COUNT ( * ) AS col1
----
-17

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

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL + CAST ( NULL AS INTEGER ) + 77 AS col0
----
NULL

query II rowsort
SELECT - 51, ( - COALESCE ( + + 61, - - 63 * + 97 + ( 58 ) + + 11, + 24 ) ) AS col2
----
-51
-61

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

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

query I rowsort
SELECT ALL - 41 * + 77
----
-3157

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL + COALESCE ( + 33, 26 * 20 + - COUNT( DISTINCT + 24 ) + 55 ) + 21 * - 93 AS col1
----
-1920

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + COALESCE ( + 33, 26 * 20 + - COUNT ( DISTINCT + 24 ) + 55 ) + 21 * - 93 AS col1
----
-1920

query II rowsort
SELECT - 65, 52 AS col2
----
-65
52

query I rowsort
SELECT 26 - + 48
----
-22

query II rowsort
SELECT - 17 AS col0, + 86 * + - 19 AS col0
----
-17
-1634

query I rowsort
SELECT 68 + 24 * - 56 + - 31
----
-1307

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT MAX( + 46 ) * + 24 AS col0
----
1104

skipif mysql # not compatible
query I rowsort label-1054
SELECT MAX ( + 46 ) * + 24 AS col0
----
1104

query I rowsort
SELECT ALL + 78 * 68 AS col1
----
5304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1056
SELECT + COUNT( * ) + + CASE + 13 WHEN + 5 * 81 + 93 + 32 * - + 24 * + COUNT( * ) THEN 72 / + 29 / + 61 + 20 + - ( CAST( + MAX( DISTINCT + 32 ) AS SIGNED ) ) * + 80 + - 37 END / 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1056
SELECT + COUNT ( * ) + + CASE + 13 WHEN + 5 * 81 + 93 + 32 * - + 24 * + COUNT ( * ) THEN 72 / + 29 / + 61 + 20 + - ( CAST ( + MAX ( DISTINCT + 32 ) AS INTEGER ) ) * + 80 + - 37 END / 80
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 67 ) - + ( + - 33 )
----
-34

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

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

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

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT 60 - - 1 + + - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1060
SELECT + - 20 AS col0, - 48 * + NULLIF ( + + 73, - 74 * + 62 + - COUNT( * ) + - 42 ) * 7 + - 28 DIV - ( 71 ) AS col2
----
-20
-24528

skipif mysql # not compatible
query II rowsort label-1060
SELECT + - 20 AS col0, - 48 * + NULLIF ( + + 73, - 74 * + 62 + - COUNT ( * ) + - 42 ) * 7 + - 28 / - ( 71 ) AS col2
----
-20
-24528

query I rowsort
SELECT - 57 + + 79
----
22

query I rowsort
SELECT 56 * - + 44 * + - 20 AS col1
----
49280

query I rowsort
SELECT 58 * 1 * 60
----
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT ALL + COUNT( * ) * - 24 + 31 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + COUNT ( * ) * - 24 + 31 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL - 57 * - 73 + - SUM( DISTINCT - ( - 13 ) ) + COUNT( * ) * 25 - - - 36 * + + 92
----
861

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL - 57 * - 73 + - SUM ( DISTINCT - ( - 13 ) ) + COUNT ( * ) * 25 - - - 36 * + + 92
----
861

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

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT COUNT ( * ) + + 93 / - 25 * + - COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1067
SELECT DISTINCT 29 * 96 DIV CASE 69 WHEN - + CASE WHEN NOT + 93 IS NULL THEN + COUNT( * ) WHEN NOT - COUNT( * ) + + CAST( NULL AS SIGNED ) IS NOT NULL THEN - 33 ELSE - + 20 + - + 15 END * + 35 + + COUNT( * ) THEN NULL ELSE 39 END AS col0
----
71

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT 29 * 96 / CASE 69 WHEN - + CASE WHEN NOT + 93 IS NULL THEN + COUNT ( * ) WHEN NOT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) IS NOT NULL THEN - 33 ELSE - + 20 + - + 15 END * + 35 + + COUNT ( * ) THEN NULL ELSE 39 END AS col0
----
71

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

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL 33 + - COUNT ( * ) AS col2
----
32

query I rowsort
SELECT NULLIF ( + 22, + 38 ) + - + 63
----
-41

query I rowsort
SELECT 37 * 15
----
555

query I rowsort
SELECT DISTINCT ( + 88 ) + 74 AS col0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT COUNT( * ) - - + 13 col1
----
14

skipif mysql # not compatible
query I rowsort label-1072
SELECT COUNT ( * ) - - + 13 col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1073
SELECT ALL + CAST( - - 33 AS SIGNED ) + + 8
----
41

skipif mysql # not compatible
query I rowsort label-1073
SELECT ALL + CAST ( - - 33 AS INTEGER ) + + 8
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT CAST( NULL AS SIGNED ) - 28 + - 45 * SUM( ALL 45 ) * - 67 + - 43 * + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT CAST ( NULL AS INTEGER ) - 28 + - 45 * SUM ( ALL 45 ) * - 67 + - 43 * + 32 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 56 AS col2, 90 AS col0
----
56
90

query I rowsort
SELECT NULLIF ( 88, - 9 ) + - + 84 AS col1
----
4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT 42 * - NULLIF ( + 23, - NULLIF ( 21, + 8 * COUNT( * ) * - 47 ) )
----
-966

skipif mysql # not compatible
query I rowsort label-1079
SELECT 42 * - NULLIF ( + 23, - NULLIF ( 21, + 8 * COUNT ( * ) * - 47 ) )
----
-966

query I rowsort
SELECT 78 * 13
----
1014

query I rowsort
SELECT 81 + + NULLIF ( 55, - + 91 + 25 ) AS col2
----
136

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

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

query II rowsort
SELECT ALL 73 AS col2, 5 AS col2
----
73
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT + 96 + 86 - - 82 + - 62 * + + 15 - + - 29 * + MAX( DISTINCT - 19 ) + - 42 AS col2
----
-1259

skipif mysql # not compatible
query I rowsort label-1084
SELECT + 96 + 86 - - 82 + - 62 * + + 15 - + - 29 * + MAX ( DISTINCT - 19 ) + - 42 AS col2
----
-1259

onlyif mysql # aggregate syntax: 
query II rowsort label-1085
SELECT ALL - 22 AS col2, + COUNT( * ) * 51
----
-22
51

skipif mysql # not compatible
query II rowsort label-1085
SELECT ALL - 22 AS col2, + COUNT ( * ) * 51
----
-22
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1086
SELECT DISTINCT NULLIF ( - + 66, + NULLIF ( + COALESCE ( - + 78, 77 + + MAX( 15 ) ), NULLIF ( - 60, + - 2 + + - 52 ) ) + + 88 + 12 ), - 4 AS col1
----
-66
-4

skipif mysql # not compatible
query II rowsort label-1086
SELECT DISTINCT NULLIF ( - + 66, + NULLIF ( + COALESCE ( - + 78, 77 + + MAX ( 15 ) ), NULLIF ( - 60, + - 2 + + - 52 ) ) + + 88 + 12 ), - 4 AS col1
----
-66
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1087
SELECT NULLIF ( - 50, + 80 * - + 82 ) + + - 54 * + - CAST( NULL AS SIGNED ) / - NULLIF ( - 41, + - CAST( - 62 AS SIGNED ) ) + CASE - 49 WHEN - CASE WHEN 65 <> ( - CASE - COALESCE ( COUNT( * ), 42 ) WHEN 0 THEN NULL WHEN - 74 + 47 THEN NULL ELSE + 38 END ) THEN 50 - + 39 END * - 2 THEN NULL WHEN + 10 + + 55 THEN NULL ELSE + 24 * - COUNT( * ) + 78 * 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT NULLIF ( - 50, + 80 * - + 82 ) + + - 54 * + - CAST ( NULL AS INTEGER ) / - NULLIF ( - 41, + - CAST ( - 62 AS INTEGER ) ) + CASE - 49 WHEN - CASE WHEN 65 <> ( - CASE - COALESCE ( COUNT ( * ), 42 ) WHEN 0 THEN NULL WHEN - 74 + 47 THEN NULL ELSE + 38 END ) THEN 50 - + 39 END * - 2 THEN NULL WHEN + 10 + + 55 THEN NULL ELSE + 24 * - COUNT ( * ) + 78 * 71 END
----
NULL

query II rowsort
SELECT - - 55, + 5 AS col2
----
55
5

query I rowsort
SELECT DISTINCT NULLIF ( + 30, 74 ) AS col1
----
30

query I rowsort
SELECT - ( - - 73 ) + - 94 AS col0
----
-167

query I rowsort
SELECT - - NULLIF ( - 65, + - 21 ) AS col0
----
-65

query I rowsort
SELECT ALL + 21 * - - 27 AS col2
----
567

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1094
SELECT + NULLIF ( + SUM( + 87 ), + ( + CASE 98 WHEN - - 32 THEN - 58 WHEN - 11 THEN NULL WHEN - 4 THEN NULL WHEN - + 38 THEN - - 62 ELSE NULL END ) * + + 41 + + CAST( NULL AS SIGNED ) + - MIN( DISTINCT - 16 ) + + 78 * - 64 ) col0
----
87

skipif mysql # not compatible
query I rowsort label-1094
SELECT + NULLIF ( + SUM ( + 87 ), + ( + CASE 98 WHEN - - 32 THEN - 58 WHEN - 11 THEN NULL WHEN - 4 THEN NULL WHEN - + 38 THEN - - 62 ELSE NULL END ) * + + 41 + + CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT - 16 ) + + 78 * - 64 ) col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT - COUNT( * ) + + - 40 * + 99
----
-3961

skipif mysql # not compatible
query I rowsort label-1095
SELECT - COUNT ( * ) + + - 40 * + 99
----
-3961

query II rowsort
SELECT ALL + + 95 AS col2, 73
----
95
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT 48 * - COUNT( * ) * SUM( + 65 ) + + + COUNT( * ) - - + 78 * NULLIF ( - + 52, - 88 ) + - - 49
----
-7126

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT 48 * - COUNT ( * ) * SUM ( + 65 ) + + + COUNT ( * ) - - + 78 * NULLIF ( - + 52, - 88 ) + - - 49
----
-7126

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT ALL 85 * + 82 + - - COUNT( * ) + + + 63 * - - 58 * - - 29 + - 88 + + 83 + - ( - 28 ) + + + 34 * 80 + + 22
----
115702

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL 85 * + 82 + - - COUNT ( * ) + + + 63 * - - 58 * - - 29 + - 88 + + 83 + - ( - 28 ) + + + 34 * 80 + + 22
----
115702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1099
SELECT + 6 * - SUM( - 76 ) * + 21 + - - 90 + + COUNT( * ) + + + 94 - + COUNT( * ) DIV COUNT( * ) + - - 29 AS col2
----
9789

skipif mysql # not compatible
query I rowsort label-1099
SELECT + 6 * - SUM ( - 76 ) * + 21 + - - 90 + + COUNT ( * ) + + + 94 - + COUNT ( * ) / COUNT ( * ) + - - 29 AS col2
----
9789

query II rowsort
SELECT DISTINCT + 24, - 56 AS col2
----
24
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-1101
SELECT - 28 DIV 46, 46 * + 39 + + 90 col1
----
0
1884

skipif mysql # not compatible
query II rowsort label-1101
SELECT - 28 / 46, 46 * + 39 + + 90 col1
----
0
1884

onlyif mysql # aggregate syntax: 
query II rowsort label-1102
SELECT - 46 * COUNT( * ), + 93 AS col2
----
-46
93

skipif mysql # not compatible
query II rowsort label-1102
SELECT - 46 * COUNT ( * ), + 93 AS col2
----
-46
93

query II rowsort
SELECT DISTINCT 58 * - - ( + 96 ) AS col2, + 11 AS col1
----
5568
11

query I rowsort
SELECT ALL - 52 * + + 33 + + + 63
----
-1653

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

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

query I rowsort
SELECT + 98 + 12 AS col2
----
110

query I rowsort
SELECT DISTINCT - 68 * + 43 * - 40 * + 88 AS col1
----
10292480

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT ALL + 75 * 22 - - MAX( DISTINCT 51 )
----
1701

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL + 75 * 22 - - MAX ( DISTINCT 51 )
----
1701

query I rowsort
SELECT + NULLIF ( - + 38, - 15 ) AS col0
----
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1110
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + 48 AS col1, + 21
----
NULL
21

skipif mysql # not compatible
query II rowsort label-1110
SELECT DISTINCT CAST ( NULL AS REAL ) - + 48 AS col1, + 21
----
NULL
21

onlyif mysql # aggregate syntax: 
query II rowsort label-1111
SELECT - MAX( - - 99 ) AS col0, - 33
----
-99
-33

skipif mysql # not compatible
query II rowsort label-1111
SELECT - MAX ( - - 99 ) AS col0, - 33
----
-99
-33

query I rowsort
SELECT + 26 + - - 31 + + 44
----
101

query I rowsort
SELECT DISTINCT 38 * 12
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT + NULLIF ( - 35, MAX( - 43 ) / - 59 ) + - - 93
----
58

skipif mysql # not compatible
query I rowsort label-1114
SELECT + NULLIF ( - 35, MAX ( - 43 ) / - 59 ) + - - 93
----
58

query I rowsort
SELECT + 3 * - 96
----
-288

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT ALL + ( - - 64 ) * CAST( + + 37 AS SIGNED ) AS col1
----
2368

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL + ( - - 64 ) * CAST ( + + 37 AS INTEGER ) AS col1
----
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT + + 45 * COUNT( * ) * - - 61
----
2745

skipif mysql # not compatible
query I rowsort label-1118
SELECT + + 45 * COUNT ( * ) * - - 61
----
2745

query I rowsort
SELECT - + 40 + 32
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT - SUM( 46 ) + + 76 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1120
SELECT - SUM ( 46 ) + + 76 AS col1
----
30

query I rowsort
SELECT ALL + CASE + 77 WHEN - + 85 * - 94 THEN NULL WHEN - AVG ( + 13 ) THEN - 98 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT + + NULLIF ( - - ( + 0 ), + NULLIF ( - 39, ( + - 17 ) * + 75 * + - 28 ) ) AS col0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT + + COALESCE ( - + 24, - COALESCE ( + 96, - MAX( DISTINCT - + 51 ) ) ) * - + 3 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1125
SELECT + + COALESCE ( - + 24, - COALESCE ( + 96, - MAX ( DISTINCT - + 51 ) ) ) * - + 3 AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1126
SELECT + 53 * 40 + - - 78 * + + ( - + 3 ) * - NULLIF ( - COUNT( - + 91 ), + - 31 + + - 27 * - CAST( NULL AS SIGNED ) ) + + - 73
----
1813

skipif mysql # not compatible
query I rowsort label-1126
SELECT + 53 * 40 + - - 78 * + + ( - + 3 ) * - NULLIF ( - COUNT ( - + 91 ), + - 31 + + - 27 * - CAST ( NULL AS INTEGER ) ) + + - 73
----
1813

onlyif mysql # DIV for integer division: 
query I rowsort label-1127
SELECT DISTINCT + 85 DIV 10 + 30
----
38

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT + 85 / 10 + 30
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1128
SELECT ALL - COUNT( * ) DIV 94 * - COUNT( * ) + + 13
----
13

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL - COUNT ( * ) / 94 * - COUNT ( * ) + + 13
----
13

query I rowsort
SELECT ( + + COALESCE ( + 10, - + 29 ) )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1130
SELECT DISTINCT + 25 DIV - ( + 79 ) + - 65
----
-65

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT + 25 / - ( + 79 ) + - 65
----
-65

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

query II rowsort
SELECT + 82, - 72 AS col0
----
82
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT ALL + CAST( + + 40 AS SIGNED ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL + CAST ( + + 40 AS INTEGER ) AS col1
----
40

query I rowsort
SELECT DISTINCT + ( - - 72 ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1135
SELECT ALL + COUNT( * ) * 25 - - - 97 + - ( + 87 ) + + 82 * 76 / + CAST( NULL AS SIGNED ) + + 74 * - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL + COUNT ( * ) * 25 - - - 97 + - ( + 87 ) + + 82 * 76 / + CAST ( NULL AS INTEGER ) + + 74 * - + 62
----
NULL

query II rowsort
SELECT - 92 * - 26 * + 0 AS col0, 64 AS col0
----
0
64

query I rowsort
SELECT ( - - 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL + MAX( DISTINCT - + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + MAX ( DISTINCT - + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT 19 * - - 3 * - 55 * + 29 + MAX( DISTINCT - + 35 ) + 86 AS col2
----
-90864

skipif mysql # not compatible
query I rowsort label-1139
SELECT 19 * - - 3 * - 55 * + 29 + MAX ( DISTINCT - + 35 ) + 86 AS col2
----
-90864

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

skipif mysql # not compatible
query I rowsort label-1140
SELECT + COUNT ( * ) / + 31 * - 11 * + 72 AS col0
----
0

query I rowsort
SELECT - 56 * + ( + 21 ) AS col0
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT - 15 + - ( 33 ) * + 28 + - MAX( DISTINCT - 73 ) + + ( - + 61 )
----
-927

skipif mysql # not compatible
query I rowsort label-1142
SELECT - 15 + - ( 33 ) * + 28 + - MAX ( DISTINCT - 73 ) + + ( - + 61 )
----
-927

query I rowsort
SELECT ALL 3 * 0
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL + 46 / + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1146
SELECT DISTINCT + COUNT( * ) DIV - 84 * + - 37
----
0

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT + COUNT ( * ) / - 84 * + - 37
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1147
SELECT ALL + 20 * ( - 68 ) AS col1, - ( 87 ) + + + COUNT( * ) + + + 82 - 78
----
-1360
-82

skipif mysql # not compatible
query II rowsort label-1147
SELECT ALL + 20 * ( - 68 ) AS col1, - ( 87 ) + + + COUNT ( * ) + + + 82 - 78
----
-1360
-82

query I rowsort
SELECT ALL + ( + 53 ) * - 44 + - 65
----
-2397

onlyif mysql # DIV for integer division: 
query I rowsort label-1149
SELECT - 40 * 94 DIV - 98 + ( + - 88 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1149
SELECT - 40 * 94 / - 98 + ( + - 88 ) AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1150
SELECT - - 91 + - 33 + 54 AS col2, - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - + SUM( DISTINCT - 4 )
----
112
NULL

skipif mysql # not compatible
query II rowsort label-1150
SELECT - - 91 + - 33 + 54 AS col2, - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - + SUM ( DISTINCT - 4 )
----
112
NULL

query I rowsort
SELECT + - 85 - + + 24
----
-109

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1153
SELECT ALL 73 AS col0, - 83 DIV + + COUNT( * )
----
73
-83

skipif mysql # not compatible
query II rowsort label-1153
SELECT ALL 73 AS col0, - 83 / + + COUNT ( * )
----
73
-83

query II rowsort
SELECT - 84, 6 AS col2
----
-84
6

query I rowsort
SELECT 62 * + 42
----
2604

query II rowsort
SELECT DISTINCT 55 + 5 * - + 95 AS col1, - 87
----
-420
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-1157
SELECT DISTINCT + 2 + + - 26 DIV + 40
----
2

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT + 2 + + - 26 / + 40
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT DISTINCT 82 DIV 9
----
9

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT 82 / 9
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1159
SELECT - ( - - 50 ) + + + COUNT( * ) * - 32 * - ( - + COALESCE ( COALESCE ( - ( 97 ), 12, - - CASE - CAST( - - 11 AS SIGNED ) WHEN - + 19 + + 97 - 67 THEN + - 9 - 36 - - 56 * + 13 END ), + 32 + COALESCE ( + COUNT( * ), - 5 * 70, 62 ) * - NULLIF ( 48 + + COUNT( * ), + 92 ) ) ) AS col2
----
3054

skipif mysql # not compatible
query I rowsort label-1159
SELECT - ( - - 50 ) + + + COUNT ( * ) * - 32 * - ( - + COALESCE ( COALESCE ( - ( 97 ), 12, - - CASE - CAST ( - - 11 AS INTEGER ) WHEN - + 19 + + 97 - 67 THEN + - 9 - 36 - - 56 * + 13 END ), + 32 + COALESCE ( + COUNT ( * ), - 5 * 70, 62 ) * - NULLIF ( 48 + + COUNT ( * ), + 92 ) ) ) AS col2
----
3054

query I rowsort
SELECT ALL 22 + + + 37
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT - 22 DIV 90 * + - 14 + - 18 + - ( - 97 ) * ( - - 29 ) AS col0
----
2795

skipif mysql # not compatible
query I rowsort label-1161
SELECT - 22 / 90 * + - 14 + - 18 + - ( - 97 ) * ( - - 29 ) AS col0
----
2795

query I rowsort
SELECT 27 + - + 32 * - 8
----
283

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1164
SELECT ALL + 22 DIV + 40 * + - 81 * - 98 * + - 84 * 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL + 22 / + 40 * + - 81 * - 98 * + - 84 * 40 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL - COUNT ( DISTINCT + 91 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT 43 DIV + 30
----
1

skipif mysql # not compatible
query I rowsort label-1166
SELECT 43 / + 30
----
1

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

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

query I rowsort
SELECT 55 * - 64
----
-3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1169
SELECT ALL - CASE - 72 WHEN - 6 + + MAX( DISTINCT - 21 ) + - 18 THEN NULL WHEN + - ( - 40 ) THEN ( - 10 ) + - ( + CAST( + + NULLIF ( + NULLIF ( + 94, - 45 * + + COALESCE ( + 10, + CAST( + ( + 88 ) AS SIGNED ) ) + - ( - 18 ) + + 47 ), 22 ) AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - CASE - 72 WHEN - 6 + + MAX ( DISTINCT - 21 ) + - 18 THEN NULL WHEN + - ( - 40 ) THEN ( - 10 ) + - ( + CAST ( + + NULLIF ( + NULLIF ( + 94, - 45 * + + COALESCE ( + 10, + CAST ( + ( + 88 ) AS INTEGER ) ) + - ( - 18 ) + + 47 ), 22 ) AS INTEGER ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1170
SELECT + 13 DIV 33 * - 20 DIV - COUNT( * ) + 67
----
67

skipif mysql # not compatible
query I rowsort label-1170
SELECT + 13 / 33 * - 20 / - COUNT ( * ) + 67
----
67

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1172
SELECT 78 * 17 * + CAST( COUNT( * ) AS SIGNED ) AS col1, ( COUNT( * ) ) AS col0
----
1326
1

skipif mysql # not compatible
query II rowsort label-1172
SELECT 78 * 17 * + CAST ( COUNT ( * ) AS INTEGER ) AS col1, ( COUNT ( * ) ) AS col0
----
1326
1

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

skipif mysql # not compatible
query I rowsort label-1173
SELECT CAST ( NULL AS INTEGER ) * + 82 + + - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT 51 * - 70 + - MAX( DISTINCT 64 )
----
-3634

skipif mysql # not compatible
query I rowsort label-1174
SELECT 51 * - 70 + - MAX ( DISTINCT 64 )
----
-3634

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ALL CASE + ( + + 89 ) WHEN + - 76 THEN NULL WHEN - - ( + 9 ) THEN + COALESCE ( - + 17, - 71 ) ELSE COUNT( * ) * 77 + + 98 * + 31 END * + 3 + + 65 + COALESCE ( 71, - 63 + - COALESCE ( 72, - ( 43 ) ) ) * - 88
----
3162

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL CASE + ( + + 89 ) WHEN + - 76 THEN NULL WHEN - - ( + 9 ) THEN + COALESCE ( - + 17, - 71 ) ELSE COUNT ( * ) * 77 + + 98 * + 31 END * + 3 + + 65 + COALESCE ( 71, - 63 + - COALESCE ( 72, - ( 43 ) ) ) * - 88
----
3162

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT 61 + - + 30 + + 13 DIV 90
----
31

skipif mysql # not compatible
query I rowsort label-1176
SELECT 61 + - + 30 + + 13 / 90
----
31

query II rowsort
SELECT 68 * - 81 AS col1, 5 * - 64 AS col1
----
-5508
-320

query I rowsort
SELECT 71 + - - 45 AS col0
----
116

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

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

query I rowsort
SELECT 80 * + 26 * - 29 AS col2
----
-60320

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT + NULLIF ( - - 80, + 54 ) * + 90 + - - 81 + MAX( + - 84 ) * + 64 * - 81 * + + ( + 76 ) - - 28 + - 57 AS col2
----
33101908

skipif mysql # not compatible
query I rowsort label-1181
SELECT + NULLIF ( - - 80, + 54 ) * + 90 + - - 81 + MAX ( + - 84 ) * + 64 * - 81 * + + ( + 76 ) - - 28 + - 57 AS col2
----
33101908

query I rowsort
SELECT - 42 * - 87
----
3654

query I rowsort
SELECT 99 + + 27 + + 75
----
201

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

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

query I rowsort
SELECT - + COALESCE ( + 72, 78 * - + 55 * - 85 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1186
SELECT DISTINCT - 32 + - NULLIF ( CASE - - 75 WHEN - - ( COALESCE ( + 47, - + 73 ) ) THEN NULL ELSE + - 20 * - COUNT( ALL + 93 ) - - 27 END, CAST( - 18 AS DECIMAL ) / + AVG ( COALESCE ( - + 32, 13 * + ( 20 ) * COALESCE ( COALESCE ( NULLIF ( 7, 71 ), - 95 + - 22 ) / + 58 + + CASE 16 WHEN + 74 THEN + ( + 46 ) WHEN 80 THEN NULL ELSE NULL END, 24 ) + 6 + 65 * 83 ) ) * - 45 + - 48 ) + - 55 col2
----
-134

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT - 32 + - NULLIF ( CASE - - 75 WHEN - - ( COALESCE ( + 47, - + 73 ) ) THEN NULL ELSE + - 20 * - COUNT ( ALL + 93 ) - - 27 END, CAST ( - 18 AS REAL ) / + AVG ( COALESCE ( - + 32, 13 * + ( 20 ) * COALESCE ( COALESCE ( NULLIF ( 7, 71 ), - 95 + - 22 ) / + 58 + + CASE 16 WHEN + 74 THEN + ( + 46 ) WHEN 80 THEN NULL ELSE NULL END, 24 ) + 6 + 65 * 83 ) ) * - 45 + - 48 ) + - 55 col2
----
-134

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

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

query I rowsort
SELECT + 92 * 55 AS col1
----
5060

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT DISTINCT + NULLIF ( + + 11, - 86 * + 7 ) * + MIN( DISTINCT + 51 ) AS col1
----
561

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT + NULLIF ( + + 11, - 86 * + 7 ) * + MIN ( DISTINCT + 51 ) AS col1
----
561

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT ALL - ( + MAX( + 29 ) ) * - MAX( + - 23 ) AS col0
----
-667

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL - ( + MAX ( + 29 ) ) * - MAX ( + - 23 ) AS col0
----
-667

query I rowsort
SELECT - 40 * + - ( 87 ) AS col1
----
3480

query I rowsort
SELECT ( - 80 ) - - + 36 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-1193
SELECT - 14 * + 86 - ( 41 ) AS col1, - ( + COUNT( * ) )
----
-1245
-1

skipif mysql # not compatible
query II rowsort label-1193
SELECT - 14 * + 86 - ( 41 ) AS col1, - ( + COUNT ( * ) )
----
-1245
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT - - MIN( + 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1194
SELECT - - MIN ( + 94 ) AS col0
----
94

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

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

query I rowsort
SELECT 79 + + 74
----
153

query I rowsort
SELECT + 50 + 21 * + 68 col0
----
1478

query I rowsort
SELECT 27 * + + 10
----
270

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1200
SELECT ALL CAST( NULL AS SIGNED ) * + 99 - - ( + COUNT( * ) ) AS col2
----
NULL

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

query II rowsort
SELECT DISTINCT - 78 AS col2, 81 * - + ( - 93 ) AS col0
----
-78
7533

query I rowsort
SELECT ALL ( + 34 ) * 47 AS col0
----
1598

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

skipif mysql # not compatible
query I rowsort label-1203
SELECT COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1205
SELECT DISTINCT CAST( + 60 AS SIGNED ) * + ( 59 )
----
3540

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT CAST ( + 60 AS INTEGER ) * + ( 59 )
----
3540

query I rowsort
SELECT 61 * + - 36
----
-2196

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1207
SELECT ALL - COUNT( * ) AS col0, + 85 DIV + MAX( + + 74 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-1207
SELECT ALL - COUNT ( * ) AS col0, + 85 / + MAX ( + + 74 )
----
-1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1208
SELECT 80 DIV - 38
----
-2

skipif mysql # not compatible
query I rowsort label-1208
SELECT 80 / - 38
----
-2

query I rowsort
SELECT ALL 44 + + 1 AS col0
----
45

query I rowsort
SELECT 56 * 78 + + 47 AS col0
----
4415

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

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

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

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

query I rowsort
SELECT DISTINCT 14 + - 13 + - 39 AS col0
----
-38

query I rowsort
SELECT ALL + + ( - + ( - 5 ) ) * 56
----
280

query I rowsort
SELECT ALL - - 68 + 80 * - 21
----
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT - + COUNT( * ) + + 88 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1216
SELECT - + COUNT ( * ) + + 88 AS col0
----
87

query I rowsort
SELECT - + 2 * - + 60 + - - 40 + 8 * + 87 + - - 78
----
934

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

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

query I rowsort
SELECT + 29 + + 36
----
65

query II rowsort
SELECT 31, 57 AS col1
----
31
57

query I rowsort
SELECT DISTINCT - - 26 - + 86
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL SUM( DISTINCT + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL SUM ( DISTINCT + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT ALL + 87 - - - MAX( DISTINCT - ( 9 ) ) * + 63 col0
----
654

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL + 87 - - - MAX ( DISTINCT - ( 9 ) ) * + 63 col0
----
654

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT DISTINCT + - 34 - - COUNT( * ) * - 66 * - 39 AS col0
----
2540

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT + - 34 - - COUNT ( * ) * - 66 * - 39 AS col0
----
2540

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT ALL - 95 * + + 47 * + MAX( ALL + 48 ) * - 77 AS col1
----
16502640

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL - 95 * + + 47 * + MAX ( ALL + 48 ) * - 77 AS col1
----
16502640

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT + MAX( 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT + MAX ( 21 ) AS col1
----
21

query I rowsort
SELECT + 15 * 68 AS col2
----
1020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT - 64 + - 4 + CAST( NULL AS SIGNED ) * + - 12 * - + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1228
SELECT - 64 + - 4 + CAST ( NULL AS INTEGER ) * + - 12 * - + 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT + 69 - + + MIN( - 94 ) AS col0
----
163

skipif mysql # not compatible
query I rowsort label-1229
SELECT + 69 - + + MIN ( - 94 ) AS col0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT - 40 + SUM( DISTINCT 54 ) + + COALESCE ( + 14, + 8 * 47 ) * 46 + + 80 col0
----
738

skipif mysql # not compatible
query I rowsort label-1230
SELECT - 40 + SUM ( DISTINCT 54 ) + + COALESCE ( + 14, + 8 * 47 ) * 46 + + 80 col0
----
738

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

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

query I rowsort
SELECT 51 * + ( - - 88 ) * 84 + 54
----
377046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT ALL + CAST( - 74 AS SIGNED ) * 1 AS col0
----
-74

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1234
SELECT + 4 DIV 31 DIV - 77 + - + MIN( - + 53 ) col2
----
53

skipif mysql # not compatible
query I rowsort label-1234
SELECT + 4 / 31 / - 77 + - + MIN ( - + 53 ) col2
----
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT ALL + COUNT( ALL + 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL + COUNT ( ALL + 0 ) AS col0
----
1

query I rowsort
SELECT DISTINCT 60 * + 27 * - 5 + 1 * 40 AS col0
----
-8060

onlyif mysql # aggregate syntax: 
query II rowsort label-1238
SELECT ALL ( + 51 ) * - - COUNT( * ) * 42 * - 37 + + - 19 * 11 * 38 + - - COUNT( * ), + 15 AS col2
----
-87195
15

skipif mysql # not compatible
query II rowsort label-1238
SELECT ALL ( + 51 ) * - - COUNT ( * ) * 42 * - 37 + + - 19 * 11 * 38 + - - COUNT ( * ), + 15 AS col2
----
-87195
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1239
SELECT + COUNT( * ) DIV - - 54 + + + COUNT( DISTINCT - + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-1239
SELECT + COUNT ( * ) / - - 54 + + + COUNT ( DISTINCT - + 30 )
----
1

query I rowsort
SELECT + CASE 83 WHEN + 3 THEN + + 39 + 78 + - 61 + + 35 + - - 47 + + 12 ELSE 37 + 35 END * + + 50 + + 99
----
3699

query I rowsort
SELECT + 32 + + + 85 + - - 25 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT + CASE 18 WHEN + + 54 THEN - COUNT( * ) - - - 63 + 85 WHEN - - 21 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT + CASE 18 WHEN + + 54 THEN - COUNT ( * ) - - - 63 + 85 WHEN - - 21 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT + 8 + + - MAX( - - 95 ) * + ( - 28 )
----
2668

skipif mysql # not compatible
query I rowsort label-1243
SELECT + 8 + + - MAX ( - - 95 ) * + ( - 28 )
----
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT COALESCE ( + 69, - 83 + + - COUNT( * ) * 10 )
----
69

skipif mysql # not compatible
query I rowsort label-1244
SELECT COALESCE ( + 69, - 83 + + - COUNT ( * ) * 10 )
----
69

query I rowsort
SELECT ALL 84 * + 36 AS col0
----
3024

query I rowsort
SELECT + 96 * 10 AS col2
----
960

query I rowsort
SELECT ALL 3 * 89 * - 5 AS col2
----
-1335

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL + + MIN( + - 70 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + + MIN ( + - 70 ) AS col0
----
-70

query I rowsort
SELECT DISTINCT + ( - CASE - + 20 WHEN + - 86 + 75 THEN - 80 ELSE NULL END ) AS col1
----
NULL

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

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

query I rowsort
SELECT - + 21 + + + 53
----
32

query I rowsort
SELECT + - 10 * CASE + 55 WHEN + 73 THEN - 94 WHEN + - 42 THEN NULL WHEN + ( 54 ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL - 99 * 26 AS col2
----
-2574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1254
SELECT ALL 46 * - CAST( NULL AS SIGNED ) + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL 46 * - CAST ( NULL AS INTEGER ) + - 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1255
SELECT DISTINCT 38 AS col2, 62 * COUNT( * ) + + COUNT( * ) + + 14 DIV COALESCE ( CAST( + 51 AS SIGNED ), - 57 + + 38 ) * + 84 + + 18 - - 87 - + 87 + - 40 AS col2
----
38
41

skipif mysql # not compatible
query II rowsort label-1255
SELECT DISTINCT 38 AS col2, 62 * COUNT ( * ) + + COUNT ( * ) + + 14 / COALESCE ( CAST ( + 51 AS INTEGER ), - 57 + + 38 ) * + 84 + + 18 - - 87 - + 87 + - 40 AS col2
----
38
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1256
SELECT - - 95 DIV - ( 94 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1256
SELECT - - 95 / - ( 94 ) AS col1
----
-1

query I rowsort
SELECT + + 84 * 47 * + 99 AS col1
----
390852

query I rowsort
SELECT - 46 + 24 * - 11
----
-310

query II rowsort
SELECT ALL ( - 94 ) col0, + 4 * - 57
----
-94
-228

query I rowsort
SELECT ALL - 92 + - 34
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT - 10 * - MIN( 61 )
----
610

skipif mysql # not compatible
query I rowsort label-1261
SELECT - 10 * - MIN ( 61 )
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT DISTINCT COALESCE ( - - COUNT( * ), - 13, - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT COALESCE ( - - COUNT ( * ), - 13, - 79 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT ALL CASE WHEN 88 IS NOT NULL THEN - 7 + - CAST( NULL AS SIGNED ) ELSE 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL CASE WHEN 88 IS NOT NULL THEN - 7 + - CAST ( NULL AS INTEGER ) ELSE 73 END
----
NULL

query I rowsort
SELECT DISTINCT - 74 + + - 69 * - 89 - - 95 AS col0
----
6162

onlyif mysql # aggregate syntax: 
query II rowsort label-1265
SELECT DISTINCT + COUNT( * ) * + 86, 33 * - 94 * + 31 AS col2
----
86
-96162

skipif mysql # not compatible
query II rowsort label-1265
SELECT DISTINCT + COUNT ( * ) * + 86, 33 * - 94 * + 31 AS col2
----
86
-96162

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL 57 * - - CASE + 28 WHEN COALESCE ( 85, - 4 ) * + 68 THEN + - 93 - MIN( ALL + 56 ) ELSE - + 91 * + 18 END * + - 30 AS col1
----
2800980

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL 57 * - - CASE + 28 WHEN COALESCE ( 85, - 4 ) * + 68 THEN + - 93 - MIN ( ALL + 56 ) ELSE - + 91 * + 18 END * + - 30 AS col1
----
2800980

query I rowsort
SELECT DISTINCT - 74 + 58 AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT 61 DIV - ( COALESCE ( 89, + AVG ( ALL + 70 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1268
SELECT 61 / - ( COALESCE ( 89, + AVG ( ALL + 70 ) ) ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1269
SELECT MAX( DISTINCT - 53 ) DIV 4 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-1269
SELECT MAX ( DISTINCT - 53 ) / 4 / - 97
----
0

query I rowsort
SELECT ALL + 56 + 61
----
117

query I rowsort
SELECT 67 * + 30
----
2010

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL MAX( - + 93 ) + - CASE + - 41 WHEN + 85 THEN NULL ELSE - 6 END AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL MAX ( - + 93 ) + - CASE + - 41 WHEN + 85 THEN NULL ELSE - 6 END AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT DISTINCT 49 + + - NULLIF ( COUNT( * ), - - 11 ) * - CASE - 98 WHEN - 76 THEN NULL WHEN - + 85 * SUM( - 39 ) + + ( NULLIF ( + + COUNT( * ), + 28 * + + 29 * + + COUNT( * ) - - 45 ) ) + 13 THEN + 44 * - + 11 ELSE - COUNT( * ) END * 49 - + COUNT( 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT 49 + + - NULLIF ( COUNT ( * ), - - 11 ) * - CASE - 98 WHEN - 76 THEN NULL WHEN - + 85 * SUM ( - 39 ) + + ( NULLIF ( + + COUNT ( * ), + 28 * + + 29 * + + COUNT ( * ) - - 45 ) ) + 13 THEN + 44 * - + 11 ELSE - COUNT ( * ) END * 49 - + COUNT ( 10 )
----
-1

query II rowsort
SELECT 96 * - + 53 AS col2, 82 * - 19
----
-5088
-1558

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

query I rowsort
SELECT ALL - 11 * - 22
----
242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1278
SELECT ( - CAST( - + 29 AS SIGNED ) ) * - 89 * MIN( ALL - + 10 ) + + 54
----
25864

skipif mysql # not compatible
query I rowsort label-1278
SELECT ( - CAST ( - + 29 AS INTEGER ) ) * - 89 * MIN ( ALL - + 10 ) + + 54
----
25864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1279
SELECT ALL + 95 * + COUNT( * ) AS col1, COUNT( * ) DIV - - 60 + + - 50
----
95
-50

skipif mysql # not compatible
query II rowsort label-1279
SELECT ALL + 95 * + COUNT ( * ) AS col1, COUNT ( * ) / - - 60 + + - 50
----
95
-50

query I rowsort
SELECT DISTINCT - 62 * 47 AS col1
----
-2914

query I rowsort
SELECT - ( 67 ) * + 29
----
-1943

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL - SUM( + 89 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - SUM ( + 89 ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1283
SELECT DISTINCT - 17 * + - 67 AS col0, CAST( NULL AS SIGNED ) AS col0
----
1139
NULL

skipif mysql # not compatible
query II rowsort label-1283
SELECT DISTINCT - 17 * + - 67 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
1139
NULL

query I rowsort
SELECT - + 71 * - + ( + NULLIF ( 71, 12 ) ) * - 22 * - ( - 31 ) + - 49 AS col2
----
-3438011

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT ALL + 79 DIV + + 62 col0
----
1

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL + 79 / + + 62 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1286
SELECT 25 + 74 + 30 + + 67 + + SUM( DISTINCT - 26 ) * CAST( 17 AS SIGNED ) AS col2
----
-246

skipif mysql # not compatible
query I rowsort label-1286
SELECT 25 + 74 + 30 + + 67 + + SUM ( DISTINCT - 26 ) * CAST ( 17 AS INTEGER ) AS col2
----
-246

query I rowsort
SELECT + 83 * - - 57 + + + 14
----
4745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1288
SELECT + NULLIF ( 97, - 27 ) + 60 / CAST( NULL AS SIGNED ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-1288
SELECT + NULLIF ( 97, - 27 ) + 60 / CAST ( NULL AS INTEGER ) * + 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1289
SELECT - 36 DIV COUNT( DISTINCT - 24 ) - - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-1289
SELECT - 36 / COUNT ( DISTINCT - 24 ) - - COUNT ( * )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1290
SELECT + 10 + + CAST( - - 28 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-1290
SELECT + 10 + + CAST ( - - 28 AS INTEGER )
----
38

query II rowsort
SELECT - 50 * + 24, + 10 AS col2
----
-1200
10

query I rowsort
SELECT ALL 28 + - 98
----
-70

query I rowsort
SELECT ALL + 60 + - 98 AS col0
----
-38

query I rowsort
SELECT ( 51 ) - + 88 + 81 * + 87
----
7010

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT DISTINCT ( COUNT( * ) ) + 5
----
6

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT ( COUNT ( * ) ) + 5
----
6

query II rowsort
SELECT ALL 30 AS col1, - 8
----
30
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1297
SELECT DISTINCT CAST( NULL AS SIGNED ) + - COUNT( * ) + + 88 + + CAST( NULL AS SIGNED ) + + - ( - 52 ) * + COUNT( * )
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - 78 + - 38 AS col0
----
-116

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT MIN( ALL 14 ) + + - 56
----
-42

skipif mysql # not compatible
query I rowsort label-1301
SELECT MIN ( ALL 14 ) + + - 56
----
-42

query I rowsort
SELECT 87 - + 65 + 59 AS col1
----
81

query II rowsort
SELECT ALL 50, + 9 * - + 32 AS col2
----
50
-288

query I rowsort
SELECT ALL + 61 + + 75 AS col1
----
136

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1306
SELECT CAST( - COUNT( * ) AS SIGNED ) DIV 53 * COUNT( - + 30 ) * + - 31 * - - 16 + 11 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1306
SELECT CAST ( - COUNT ( * ) AS INTEGER ) / 53 * COUNT ( - + 30 ) * + - 31 * - - 16 + 11 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT ALL - MIN( + + 12 ) * - COUNT( 71 ) * COUNT( * ) + 35 + - + 6 * 21 * 91
----
-11419

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL - MIN ( + + 12 ) * - COUNT ( 71 ) * COUNT ( * ) + 35 + - + 6 * 21 * 91
----
-11419

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1308
SELECT 34 * - 64 + 65 - - + MIN( DISTINCT 36 ) * CASE 13 WHEN COUNT( * ) * - CASE + 15 WHEN + 46 THEN - - ( COUNT( * ) ) ELSE 44 + - + NULLIF ( - 37, + 97 - + 84 / - 47 ) * + 21 * + - 53 END THEN + CAST( - 94 AS DECIMAL ) WHEN 85 - + 61 THEN NULL END + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT 34 * - 64 + 65 - - + MIN ( DISTINCT 36 ) * CASE 13 WHEN COUNT ( * ) * - CASE + 15 WHEN + 46 THEN - - ( COUNT ( * ) ) ELSE 44 + - + NULLIF ( - 37, + 97 - + 84 / - 47 ) * + 21 * + - 53 END THEN + CAST ( - 94 AS REAL ) WHEN 85 - + 61 THEN NULL END + - 53
----
NULL

query II rowsort
SELECT ALL - 41 col0, 74 + 79
----
-41
153

query I rowsort
SELECT DISTINCT + 44 - - 58 + + 37 col0
----
139

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1312
SELECT DISTINCT - - 94 * 96 * + 35 AS col0, COALESCE ( + + 66, + 29 * CAST( - + 24 AS SIGNED ) - + COALESCE ( - 28, + 39, + 87 * - 58 - - + 79 * 80 * + + 77 * + + 90 + - + MAX( ALL - 39 ) + - - COUNT( * ) + 86 * + NULLIF ( - + 88, COALESCE ( - 12, - 41, COUNT( * ) + COUNT( * ) ) DIV SUM( 12 ) ) * 3 ), 99 DIV ( NULLIF ( 74, - 34 * 48 + 60 * + 88 ) ) + + 97, MIN( ALL + 69 ) ) AS col2
----
315840
66

skipif mysql # not compatible
query II rowsort label-1312
SELECT DISTINCT - - 94 * 96 * + 35 AS col0, COALESCE ( + + 66, + 29 * CAST ( - + 24 AS INTEGER ) - + COALESCE ( - 28, + 39, + 87 * - 58 - - + 79 * 80 * + + 77 * + + 90 + - + MAX ( ALL - 39 ) + - - COUNT ( * ) + 86 * + NULLIF ( - + 88, COALESCE ( - 12, - 41, COUNT ( * ) + COUNT ( * ) ) / SUM ( 12 ) ) * 3 ), 99 / ( NULLIF ( 74, - 34 * 48 + 60 * + 88 ) ) + + 97, MIN ( ALL + 69 ) ) AS col2
----
315840
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL - 65 * + + 3 * - - SUM( + COALESCE ( - 51, + 31 * + + 93, + 67 ) ) * 78
----
775710

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL - 65 * + + 3 * - - SUM ( + COALESCE ( - 51, + 31 * + + 93, + 67 ) ) * 78
----
775710

query I rowsort
SELECT - 65 + - - 81
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT - 9 * + 6 * COUNT( DISTINCT - 52 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1316
SELECT - 9 * + 6 * COUNT ( DISTINCT - 52 ) AS col2
----
-54

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1318
SELECT ALL - + COUNT( * ) AS col2, - COUNT( * ) + - 26
----
-1
-27

skipif mysql # not compatible
query II rowsort label-1318
SELECT ALL - + COUNT ( * ) AS col2, - COUNT ( * ) + - 26
----
-1
-27

query I rowsort
SELECT + ( - 84 ) * - 50 * 95 AS col2
----
399000

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

query I rowsort
SELECT DISTINCT + + 27 * 19 * - 66 AS col1
----
-33858

query I rowsort
SELECT DISTINCT + 89 + 60 AS col1
----
149

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1325
SELECT ALL + CASE - + 50 WHEN 79 * - 3 * + CAST( - 82 AS SIGNED ) + 11 * - COUNT( * ) / - ( - + 42 ) THEN + - 21 * - + 98 * - CAST( NULL AS SIGNED ) + + 57 + + - 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL + CASE - + 50 WHEN 79 * - 3 * + CAST ( - 82 AS INTEGER ) + 11 * - COUNT ( * ) / - ( - + 42 ) THEN + - 21 * - + 98 * - CAST ( NULL AS INTEGER ) + + 57 + + - 17 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT + 56 + - COUNT( * ) * + 42
----
14

skipif mysql # not compatible
query I rowsort label-1326
SELECT + 56 + - COUNT ( * ) * + 42
----
14

query I rowsort
SELECT + 55 * + 5 - - 39 AS col2
----
314

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT DISTINCT - COUNT( * ) + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT - COUNT ( * ) + - 66
----
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1329
SELECT ALL CAST( + 93 AS SIGNED ) + + + 77 + + 34 + - 53 + + 17 DIV 87 + + + CAST( 26 AS SIGNED ) * + - 96 + - 28
----
-2373

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL CAST ( + 93 AS INTEGER ) + + + 77 + + 34 + - 53 + + 17 / 87 + + + CAST ( 26 AS INTEGER ) * + - 96 + - 28
----
-2373

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

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

query I rowsort
SELECT ALL 28 + + 74 * 22 AS col0
----
1656

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1332
SELECT + CAST( - 95 AS SIGNED ) + + 34 + 89 + - 20 DIV 82 - + + 13
----
15

skipif mysql # not compatible
query I rowsort label-1332
SELECT + CAST ( - 95 AS INTEGER ) + + 34 + 89 + - 20 / 82 - + + 13
----
15

query I rowsort
SELECT DISTINCT 62 + 90 - - + 3
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT DISTINCT 80 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT 80 / 53
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT + 92 * - MIN( ( - ( 61 ) ) ) AS col0
----
5612

skipif mysql # not compatible
query I rowsort label-1335
SELECT + 92 * - MIN ( ( - ( 61 ) ) ) AS col0
----
5612

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT - 9 + 60 - + - 5 * + - MIN( ALL - 20 ) AS col1
----
151

skipif mysql # not compatible
query I rowsort label-1336
SELECT - 9 + 60 - + - 5 * + - MIN ( ALL - 20 ) AS col1
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL COUNT( * ) - + 19
----
-18

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL COUNT ( * ) - + 19
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1338
SELECT + CAST( NULL AS DECIMAL ) / 0 * + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1338
SELECT + CAST ( NULL AS REAL ) / 0 * + - 72
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1339
SELECT + CASE - 58 WHEN + 66 - 92 DIV - - 56 * + - 69 * COUNT( * ) THEN + - COUNT( * ) * - 29 - 45 DIV - + AVG ( 30 ) ELSE - 0 END * + 41 + - ( + 56 ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-1339
SELECT + CASE - 58 WHEN + 66 - 92 / - - 56 * + - 69 * COUNT ( * ) THEN + - COUNT ( * ) * - 29 - 45 / - + AVG ( 30 ) ELSE - 0 END * + 41 + - ( + 56 ) col1
----
-56

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

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

query II rowsort
SELECT - 67 * - - 44 AS col2, + 10
----
-2948
10

query I rowsort
SELECT - 2 * - ( 98 )
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL + + NULLIF ( COUNT( * ), 81 * - NULLIF ( - - 40, - 80 + - ( + 90 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL + + NULLIF ( COUNT ( * ), 81 * - NULLIF ( - - 40, - 80 + - ( + 90 ) ) ) AS col2
----
1

query I rowsort
SELECT + + 98 - + 31 + - + ( + 5 )
----
62

query II rowsort
SELECT ALL + + ( 93 ) AS col2, 30
----
93
30

query I rowsort
SELECT ALL + + 4 * - 52 * - - 37 * + 44 AS col1
----
-338624

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ALL + - CASE + COUNT( * ) WHEN + + 67 THEN ( - + ( + 91 ) ) WHEN + 10 + + - ( ( - + COUNT( * ) ) ) - + 56 * + 33 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + - CASE + COUNT ( * ) WHEN + + 67 THEN ( - + ( + 91 ) ) WHEN + 10 + + - ( ( - + COUNT ( * ) ) ) - + 56 * + 33 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - 73 * + 24
----
1752

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL + - 12 * MIN( DISTINCT - - 94 ) + + 24
----
-1104

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL + - 12 * MIN ( DISTINCT - - 94 ) + + 24
----
-1104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT ALL + MAX( + - 47 ) * - - 16
----
-752

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + MAX ( + - 47 ) * - - 16
----
-752

query I rowsort
SELECT - - 71 * 52 + - 31
----
3661

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT - + 91 DIV - 10 - + + ( + - 44 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1353
SELECT - + 91 / - 10 - + + ( + - 44 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT + 40 * + 67 + + + 82 * - 59 + COUNT( * ) * - 60 AS col0
----
-2218

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT + 40 * + 67 + + + 82 * - 59 + COUNT ( * ) * - 60 AS col0
----
-2218

query I rowsort
SELECT ALL + 5 * + 74 * 53 + - 26 + + 66 * + 41
----
22290

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT - + COUNT( * ) + - + 99
----
-100

skipif mysql # not compatible
query I rowsort label-1356
SELECT - + COUNT ( * ) + - + 99
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT + 89 * CASE - 75 WHEN + - 44 + + - 49 + + 91 / - 15 * 6 THEN NULL WHEN - + COUNT( * ) THEN 75 END * 93 / - 65 + + COUNT( * ) + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT + 89 * CASE - 75 WHEN + - 44 + + - 49 + + 91 / - 15 * 6 THEN NULL WHEN - + COUNT ( * ) THEN 75 END * 93 / - 65 + + COUNT ( * ) + 13
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1358
SELECT ALL 1 * - 71 * - MAX( ALL 18 ) DIV COUNT( * ) + + 25 AS col2
----
1303

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL 1 * - 71 * - MAX ( ALL 18 ) / COUNT ( * ) + + 25 AS col2
----
1303

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT - SUM( ALL - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-1359
SELECT - SUM ( ALL - 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT DISTINCT SUM( DISTINCT - 57 ) + + ( COALESCE ( - 93, + COALESCE ( MIN( DISTINCT - 67 ), SUM( + 43 ) ) + + - 54, + + 36 ) )
----
-150

skipif mysql # not compatible
query I rowsort label-1360
SELECT DISTINCT SUM ( DISTINCT - 57 ) + + ( COALESCE ( - 93, + COALESCE ( MIN ( DISTINCT - 67 ), SUM ( + 43 ) ) + + - 54, + + 36 ) )
----
-150

query I rowsort
SELECT - 51 + - 29 * 16 - - ( - 60 ) * - 32 AS col0
----
1405

query II rowsort
SELECT - NULLIF ( - 91, - 21 - + 2 * - 27 * 80 * + 31 ) * - - 0 AS col2, - 91
----
0
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1363
SELECT + CAST( NULL AS SIGNED ) * - - MIN( ALL 9 ), - SUM( DISTINCT CASE 93 WHEN 89 THEN - 84 * - 39 ELSE NULL END ) * - 7 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1363
SELECT + CAST ( NULL AS INTEGER ) * - - MIN ( ALL 9 ), - SUM ( DISTINCT CASE 93 WHEN 89 THEN - 84 * - 39 ELSE NULL END ) * - 7 AS col2
----
NULL
NULL

query I rowsort
SELECT ALL + 70 * + - 68
----
-4760

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT DISTINCT 39 - + + 26 * + COUNT( * ) + 27 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT 39 - + + 26 * + COUNT ( * ) + 27 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT ALL MIN( DISTINCT - 25 ) - - 37
----
12

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL MIN ( DISTINCT - 25 ) - - 37
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1367
SELECT - CAST( + 55 AS SIGNED ) * + - 50
----
2750

skipif mysql # not compatible
query I rowsort label-1367
SELECT - CAST ( + 55 AS INTEGER ) * + - 50
----
2750

query I rowsort
SELECT ALL + 70 * - - 74
----
5180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1369
SELECT + CAST( + COUNT( * ) AS SIGNED ) + - + CASE - 70 WHEN + COUNT( * ) * + COALESCE ( 36, - 85 ) / - - 96 * + CAST( + + ( - + 7 ) AS SIGNED ) - + 60 THEN - - 90 + CASE - 24 WHEN + 93 * - 31 THEN SUM( DISTINCT 70 ) WHEN COUNT( * ) THEN NULL ELSE NULL END + - 48 * - 12 ELSE NULL END * - ( - 14 ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + - + CASE - 70 WHEN + COUNT ( * ) * + COALESCE ( 36, - 85 ) / - - 96 * + CAST ( + + ( - + 7 ) AS INTEGER ) - + 60 THEN - - 90 + CASE - 24 WHEN + 93 * - 31 THEN SUM ( DISTINCT 70 ) WHEN COUNT ( * ) THEN NULL ELSE NULL END + - 48 * - 12 ELSE NULL END * - ( - 14 ) + COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT ALL - 43 * CASE + 97 WHEN ( CASE - 44 WHEN 50 THEN 65 WHEN 76 THEN COUNT( 66 ) ELSE NULL END ) - 14 + + + 1 THEN + - 75 * + 98 + 43 + - + CASE WHEN COUNT( * ) IS NOT NULL THEN - + 4 * + 51 * 92 + CASE AVG ( DISTINCT - - 64 ) WHEN 19 + + 43 * 38 THEN 2 * - CASE + 50 WHEN + 0 * 3 THEN NULL WHEN 25 * + MAX( ALL + 66 ) THEN - AVG ( - 54 ) / COUNT( * ) + 24 WHEN - 6 * 48 THEN - 17 + + COUNT( * ) END END ELSE NULL END WHEN CAST( - CAST( + 9 AS SIGNED ) AS SIGNED ) THEN + 73 + - CAST( - 64 + + 64 AS SIGNED ) * - 9 END * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - 43 * CASE + 97 WHEN ( CASE - 44 WHEN 50 THEN 65 WHEN 76 THEN COUNT ( 66 ) ELSE NULL END ) - 14 + + + 1 THEN + - 75 * + 98 + 43 + - + CASE WHEN COUNT ( * ) IS NOT NULL THEN - + 4 * + 51 * 92 + CASE AVG ( DISTINCT - - 64 ) WHEN 19 + + 43 * 38 THEN 2 * - CASE + 50 WHEN + 0 * 3 THEN NULL WHEN 25 * + MAX ( ALL + 66 ) THEN - AVG ( - 54 ) / COUNT ( * ) + 24 WHEN - 6 * 48 THEN - 17 + + COUNT ( * ) END END ELSE NULL END WHEN CAST ( - CAST ( + 9 AS INTEGER ) AS INTEGER ) THEN + 73 + - CAST ( - 64 + + 64 AS INTEGER ) * - 9 END * 31
----
NULL

query I rowsort
SELECT - 61 + - 45 + - - 57 * + 20 col1
----
1034

query I rowsort
SELECT + 19 - + - 19 AS col2
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1374
SELECT ALL 25 DIV + + COALESCE ( - 12, + 45 + + COUNT( + - 58 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-1374
SELECT ALL 25 / + + COALESCE ( - 12, + 45 + + COUNT ( + - 58 ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1375
SELECT + + COALESCE ( + CAST( NULL AS SIGNED ), - + ( - - NULLIF ( + COUNT( * ), - + 8 * - 20 + - COUNT( * ) ) ), - 57 + + 60 ) * - CASE COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN + 67 + - 89 THEN - + 12 / + - 76 + - 33 / 69 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1375
SELECT + + COALESCE ( + CAST ( NULL AS INTEGER ), - + ( - - NULLIF ( + COUNT ( * ), - + 8 * - 20 + - COUNT ( * ) ) ), - 57 + + 60 ) * - CASE COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN + 67 + - 89 THEN - + 12 / + - 76 + - 33 / 69 END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1377
SELECT - + 23 DIV - 70 + + ( + + MAX( ALL 75 ) ) + + 97 * - + COUNT( * ) * - + COUNT( * )
----
172

skipif mysql # not compatible
query I rowsort label-1377
SELECT - + 23 / - 70 + + ( + + MAX ( ALL 75 ) ) + + 97 * - + COUNT ( * ) * - + COUNT ( * )
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1378
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED ) / + 49 AS col0, - 23 * NULLIF ( - + COUNT( * ), 20 * + 70 ) * + + CAST( 71 AS SIGNED )
----
NULL
1633

skipif mysql # not compatible
query II rowsort label-1378
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + 49 AS col0, - 23 * NULLIF ( - + COUNT ( * ), 20 * + 70 ) * + + CAST ( 71 AS INTEGER )
----
NULL
1633

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1379
SELECT - 6 * COALESCE ( + 40, - + 19, - COUNT( * ) ) + 21 * - 10 + - 0 - - ( - 44 ) DIV - COUNT( * ) col1, + 49
----
-406
49

skipif mysql # not compatible
query II rowsort label-1379
SELECT - 6 * COALESCE ( + 40, - + 19, - COUNT ( * ) ) + 21 * - 10 + - 0 - - ( - 44 ) / - COUNT ( * ) col1, + 49
----
-406
49

query I rowsort
SELECT ALL + + 6 col0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1381
SELECT ALL - 37 DIV 32 * + 40 + + + 19
----
-21

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL - 37 / 32 * + 40 + + + 19
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1382
SELECT ALL + 29 DIV 30 + - COUNT( + 80 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL + 29 / 30 + - COUNT ( + 80 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1383
SELECT ALL 10 DIV - + NULLIF ( - MAX( + 56 ), CASE - 89 WHEN + + 43 THEN - - 29 - - 35 * - 66 END ) + + + 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL 10 / - + NULLIF ( - MAX ( + 56 ), CASE - 89 WHEN + + 43 THEN - - 29 - - 35 * - 66 END ) + + + 61 AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1384
SELECT ALL - COUNT( * ) DIV + 7 * + 50 col0, 69 * - - 35 col0
----
0
2415

skipif mysql # not compatible
query II rowsort label-1384
SELECT ALL - COUNT ( * ) / + 7 * + 50 col0, 69 * - - 35 col0
----
0
2415

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT ALL 18 * + 20 - + - ( - - 7 ) + - - 85 + 76 DIV - - 13 - - 76
----
533

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL 18 * + 20 - + - ( - - 7 ) + - - 85 + 76 / - - 13 - - 76
----
533

query I rowsort
SELECT - 47 * - - 12 - 59 AS col2
----
-623

query II rowsort
SELECT + 71 AS col1, - 2
----
71
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-1390
SELECT 55 DIV 50 AS col2, - 30 AS col1
----
1
-30

skipif mysql # not compatible
query II rowsort label-1390
SELECT 55 / 50 AS col2, - 30 AS col1
----
1
-30

query I rowsort
SELECT 90 * - 76
----
-6840

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT COUNT( * ) * - + 23 * + 78
----
-1794

skipif mysql # not compatible
query I rowsort label-1392
SELECT COUNT ( * ) * - + 23 * + 78
----
-1794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1393
SELECT ALL + COUNT( DISTINCT + 6 ) * + CAST( NULL AS SIGNED ) * - 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + COUNT ( DISTINCT + 6 ) * + CAST ( NULL AS INTEGER ) * - 89 AS col2
----
NULL

query II rowsort
SELECT 7 AS col1, 3 * - 92 AS col2
----
7
-276

onlyif mysql # aggregate syntax: 
query II rowsort label-1395
SELECT ALL - COUNT( * ) - - + COUNT( * ) * + - 1 + - 36, + 19 * - 41 * 60 AS col0
----
-38
-46740

skipif mysql # not compatible
query II rowsort label-1395
SELECT ALL - COUNT ( * ) - - + COUNT ( * ) * + - 1 + - 36, + 19 * - 41 * 60 AS col0
----
-38
-46740

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT 90 - MIN( 89 )
----
1

skipif mysql # not compatible
query I rowsort label-1396
SELECT 90 - MIN ( 89 )
----
1

query I rowsort
SELECT 96 + 67 AS col0
----
163

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

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

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

skipif mysql # not compatible
query II rowsort label-1399
SELECT ALL 4 AS col2, - COUNT ( * ) AS col2
----
4
-1

query I rowsort
SELECT 21 + + + 37
----
58

query I rowsort
SELECT ALL - ( + 71 ) * - 35 AS col1
----
2485

query II rowsort
SELECT 5 * + + 17 AS col2, + 47
----
85
47

query II rowsort
SELECT DISTINCT 67 AS col2, 29 - + 84 AS col0
----
67
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1404
SELECT ALL + 51 AS col0, + 0 * + - ( + 77 ) * + 4 * + 56 DIV COUNT( * ) AS col0
----
51
0

skipif mysql # not compatible
query II rowsort label-1404
SELECT ALL + 51 AS col0, + 0 * + - ( + 77 ) * + 4 * + 56 / COUNT ( * ) AS col0
----
51
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL 28 + + MAX( + 54 ) + - 13
----
69

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL 28 + + MAX ( + 54 ) + - 13
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT ALL - 95 + + COUNT( * ) + - - MAX( ALL + 30 ) * - 46 AS col2
----
-1474

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL - 95 + + COUNT ( * ) + - - MAX ( ALL + 30 ) * - 46 AS col2
----
-1474

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT SUM( ( - ( + + 63 ) ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1408
SELECT SUM ( ( - ( + + 63 ) ) ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT 77 * SUM( - 53 ) AS col0
----
-4081

skipif mysql # not compatible
query I rowsort label-1409
SELECT 77 * SUM ( - 53 ) AS col0
----
-4081

query I rowsort
SELECT 56 - - 93 AS col1
----
149

query I rowsort
SELECT DISTINCT + 69 * + ( - 90 ) AS col0
----
-6210

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT - 74 * 73 - - NULLIF ( - COUNT( * ), + 70 - 78 + - 85 + - MAX( ALL + 79 ) ) AS col1
----
-5403

skipif mysql # not compatible
query I rowsort label-1412
SELECT - 74 * 73 - - NULLIF ( - COUNT ( * ), + 70 - 78 + - 85 + - MAX ( ALL + 79 ) ) AS col1
----
-5403

query I rowsort
SELECT DISTINCT 62 - 19 AS col2
----
43

query I rowsort
SELECT 82 + - 61 * + 54 AS col2
----
-3212

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT 25 * - COUNT( * ) + - + 2 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1415
SELECT 25 * - COUNT ( * ) + - + 2 AS col0
----
-27

query I rowsort
SELECT ALL - 33 * + + ( + + 47 ) + + 15
----
-1536

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

skipif mysql # not compatible
query II rowsort label-1417
SELECT 64 + - - COUNT ( * ), - 15 AS col0
----
65
-15

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

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

query I rowsort
SELECT 71 * ( 53 )
----
3763

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT MIN( ALL + 92 ) + 38 + + + 61 AS col1
----
191

skipif mysql # not compatible
query I rowsort label-1420
SELECT MIN ( ALL + 92 ) + 38 + + + 61 AS col1
----
191

query I rowsort
SELECT + 42 * + 84 + + + 85 + 28 + + 11
----
3652

onlyif mysql # DIV for integer division: 
query I rowsort label-1422
SELECT DISTINCT 97 DIV - 15 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT 97 / - 15 AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1423
SELECT 15 DIV + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1423
SELECT 15 / + 49 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT MAX( ALL 8 ) + 13 * + + 99
----
1295

skipif mysql # not compatible
query I rowsort label-1424
SELECT MAX ( ALL 8 ) + 13 * + + 99
----
1295

query I rowsort
SELECT ALL - 35 * 93 * - 99
----
322245

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

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

query I rowsort
SELECT ALL 96 + 71
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT DISTINCT COUNT( + NULLIF ( 17, - 49 - + 12 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT COUNT ( + NULLIF ( 17, - 49 - + 12 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1429
SELECT ALL - ( + COUNT( * ) ) + - 58 col0, ( CAST( NULL AS DECIMAL ) ) * - ( - + CASE + 68 WHEN - 34 THEN - COUNT( * ) / - 2 END )
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-1429
SELECT ALL - ( + COUNT ( * ) ) + - 58 col0, ( CAST ( NULL AS REAL ) ) * - ( - + CASE + 68 WHEN - 34 THEN - COUNT ( * ) / - 2 END )
----
-59
NULL

query I rowsort
SELECT 21 + + 17 * + 13
----
242

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1432
SELECT ALL CASE - - COUNT( * ) WHEN + COUNT( * ) THEN NULL WHEN - CAST( + 30 AS SIGNED ) + 27 THEN NULL WHEN 95 THEN + SUM( 4 ) - + COUNT( * ) + - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL CASE - - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL WHEN - CAST ( + 30 AS INTEGER ) + 27 THEN NULL WHEN 95 THEN + SUM ( 4 ) - + COUNT ( * ) + - 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT - SUM( DISTINCT + 62 ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-1433
SELECT - SUM ( DISTINCT + 62 ) col2
----
-62

query II rowsort
SELECT ALL - 55 + + 15 AS col2, 43
----
-40
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT 99 - COUNT( + 18 )
----
98

skipif mysql # not compatible
query I rowsort label-1435
SELECT 99 - COUNT ( + 18 )
----
98

query I rowsort
SELECT 2 + - 78 * + 44 AS col0
----
-3430

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT - COUNT( * ) - 65 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1437
SELECT - COUNT ( * ) - 65 AS col2
----
-66

query I rowsort
SELECT 48 + - 85 + + 31
----
-6

query II rowsort
SELECT ALL - 89 + + + CASE - + 84 WHEN + + 74 * 82 - - 63 THEN + - AVG ( 0 ) ELSE NULL END, 12 AS col1
----
NULL
12

query I rowsort
SELECT 79 * + 41 AS col1
----
3239

query I rowsort
SELECT DISTINCT - + 93 * - - 0 + ( - 54 ) - - 17 * + 72
----
1170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1442
SELECT DISTINCT - + NULLIF ( + ( - - 20 ), + 95 ) * COUNT( * ) * ( + 50 ) * - 17 + 89 DIV 54 * NULLIF ( + 42, CASE - ( - + AVG ( DISTINCT 82 ) ) WHEN ( + 12 ) + + - COUNT( ALL 71 ) THEN + 86 DIV + 67 - + 9 WHEN - - 39 * 64 * - CAST( NULL AS SIGNED ) THEN NULL END + - + 94 )
----
17042

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT - + NULLIF ( + ( - - 20 ), + 95 ) * COUNT ( * ) * ( + 50 ) * - 17 + 89 / 54 * NULLIF ( + 42, CASE - ( - + AVG ( DISTINCT 82 ) ) WHEN ( + 12 ) + + - COUNT ( ALL 71 ) THEN + 86 / + 67 - + 9 WHEN - - 39 * 64 * - CAST ( NULL AS INTEGER ) THEN NULL END + - + 94 )
----
17042

query I rowsort
SELECT ALL - 39 * 21 * - 63
----
51597

query I rowsort
SELECT ALL + - 40 * + 86 - - - 19 AS col0
----
-3459

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1445
SELECT 59 * 88 + - 1 * + 65 / + CAST( NULL AS DECIMAL ) + + 15 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT 59 * 88 + - 1 * + 65 / + CAST ( NULL AS REAL ) + + 15 + - 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1446
SELECT + - CASE + COUNT( * ) WHEN - + 47 * + 50 * - 49 THEN + 94 END * + + CAST( + 82 AS SIGNED ) + - + CAST( - 81 AS SIGNED ) + 75 * MAX( - - 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT + - CASE + COUNT ( * ) WHEN - + 47 * + 50 * - 49 THEN + 94 END * + + CAST ( + 82 AS INTEGER ) + - + CAST ( - 81 AS INTEGER ) + 75 * MAX ( - - 69 ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1448
SELECT + CAST( + AVG ( DISTINCT - 97 ) AS SIGNED ) + - CAST( - 80 AS SIGNED ) DIV + COUNT( ALL - 33 ) * - COUNT( ALL + 94 ) AS col2
----
-177

skipif mysql # not compatible
query I rowsort label-1448
SELECT + CAST ( + AVG ( DISTINCT - 97 ) AS INTEGER ) + - CAST ( - 80 AS INTEGER ) / + COUNT ( ALL - 33 ) * - COUNT ( ALL + 94 ) AS col2
----
-177

query I rowsort
SELECT DISTINCT 10 * 47 AS col1
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT + COUNT( * ) * + 36 + + + 45 + - 90 + + 58
----
49

skipif mysql # not compatible
query I rowsort label-1450
SELECT + COUNT ( * ) * + 36 + + + 45 + - 90 + + 58
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT ALL 45 * CASE + 23 WHEN + ( + + 33 ) + - - COUNT( * ) THEN NULL WHEN - ( + - 91 ) THEN 87 * 75 END / + 28 * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL 45 * CASE + 23 WHEN + ( + + 33 ) + - - COUNT ( * ) THEN NULL WHEN - ( + - 91 ) THEN 87 * 75 END / + 28 * + 44
----
NULL

query I rowsort
SELECT + 51 * - - 78 * + 52 * - 27
----
-5585112

query I rowsort
SELECT ALL 56 * - 95
----
-5320

query II rowsort
SELECT ALL + 44, 86 * 81 AS col2
----
44
6966

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1457
SELECT + COUNT( + 45 ) - - 54, 97 AS col2
----
55
97

skipif mysql # not compatible
query II rowsort label-1457
SELECT + COUNT ( + 45 ) - - 54, 97 AS col2
----
55
97

query I rowsort
SELECT + NULLIF ( - + 32, + ( 32 ) ) AS col1
----
-32

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

skipif mysql # not compatible
query I rowsort label-1459
SELECT COUNT ( - - 14 )
----
1

query I rowsort
SELECT DISTINCT 55 + - - CASE - + 49 WHEN + - 28 / - 43 THEN + 86 WHEN - 71 THEN NULL ELSE - - 97 END col0
----
152

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT + 84 + - - 20 + - CAST( NULL AS SIGNED ) * - 86 * - + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT + 84 + - - 20 + - CAST ( NULL AS INTEGER ) * - 86 * - + 47 AS col0
----
NULL

query I rowsort
SELECT - ( 92 ) col2
----
-92

query I rowsort
SELECT ALL COALESCE ( - 60, - 49, + 9 ) + - 0 AS col1
----
-60

query I rowsort
SELECT + 19 * + 90
----
1710

query I rowsort
SELECT + 33 * 65 AS col0
----
2145

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT - 2 + + - 3 + + 84 - - - 79 DIV - 23 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1467
SELECT - 2 + + - 3 + + 84 - - - 79 / - 23 AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1468
SELECT ALL + + 3 * - - ( 23 ) + + 11 AS col1, + COUNT( * )
----
80
1

skipif mysql # not compatible
query II rowsort label-1468
SELECT ALL + + 3 * - - ( 23 ) + + 11 AS col1, + COUNT ( * )
----
80
1

query II rowsort
SELECT - + 24 + 14 * + 95 AS col2, - 36
----
1306
-36

query I rowsort
SELECT + - 13 * - + 76 AS col0
----
988

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

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

query II rowsort
SELECT + + ( + + 79 ) * - 30, + 2 AS col1
----
-2370
2

query I rowsort
SELECT ALL + 32 * + 5
----
160

query I rowsort
SELECT DISTINCT - 10 - + 81 AS col1
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1475
SELECT ALL + 52 DIV - 64 * + + COUNT( * ) * + - 56 + - + 96 - - - 92 AS col1
----
-188

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + 52 / - 64 * + + COUNT ( * ) * + - 56 + - + 96 - - - 92 AS col1
----
-188

query I rowsort
SELECT ALL - + 90 - - + 27
----
-63

query I rowsort
SELECT - 5 * + + 24 AS col0
----
-120

query II rowsort
SELECT ALL 20 AS col0, + ( - 10 ) * - 13
----
20
130

query I rowsort
SELECT + 49 - + + 91 - + 94 AS col0
----
-136

query I rowsort
SELECT - NULLIF ( + NULLIF ( + 64, 47 * - - 67 ), - 96 ) * 7 * + 86 * - 98
----
3775744

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT + + 87 DIV + - COALESCE ( - 13, - 31, + 52 * 28 ) - - + 50 * - ( + 5 ) + - - 47
----
-197

skipif mysql # not compatible
query I rowsort label-1481
SELECT + + 87 / + - COALESCE ( - 13, - 31, + 52 * 28 ) - - + 50 * - ( + 5 ) + - - 47
----
-197

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

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

query II rowsort
SELECT - - ( + 30 ) * - + 98 + - NULLIF ( + 96, 80 ) AS col2, 70 AS col1
----
-3036
70

query I rowsort
SELECT ALL + 67 * - 75 AS col1
----
-5025

query I rowsort
SELECT ALL + 43 * - 75 AS col2
----
-3225

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT + 97 DIV - 90 + ( 23 ) * + 60 AS col2
----
1379

skipif mysql # not compatible
query I rowsort label-1487
SELECT + 97 / - 90 + ( 23 ) * + 60 AS col2
----
1379

query I rowsort
SELECT 16 * 42 + + - ( - 34 ) AS col1
----
706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1489
SELECT + 3 - - - CAST( + CAST( - 66 AS SIGNED ) AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-1489
SELECT + 3 - - - CAST ( + CAST ( - 66 AS INTEGER ) AS INTEGER )
----
69

query I rowsort
SELECT DISTINCT + 78 * - - 64 + - + 35 AS col0
----
4957

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT NULLIF ( + 87, - COALESCE ( + MAX( 57 ), 39 + MIN( + 59 ) + - NULLIF ( + 91, - 53 ), + 93, - - 68 * - 98 ) + + 82 + + 95 )
----
87

skipif mysql # not compatible
query I rowsort label-1491
SELECT NULLIF ( + 87, - COALESCE ( + MAX ( 57 ), 39 + MIN ( + 59 ) + - NULLIF ( + 91, - 53 ), + 93, - - 68 * - 98 ) + + 82 + + 95 )
----
87

query I rowsort
SELECT ALL - 45 * + NULLIF ( + 16, - 51 ) + + + 97 AS col2
----
-623

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

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL - COUNT ( ALL + 52 ) / + 18
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1494
SELECT + 85 DIV - 59 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1494
SELECT + 85 / - 59 AS col2
----
-1

query I rowsort
SELECT + 43 + + 81 * - 99 col1
----
-7976

query I rowsort
SELECT - CASE - - 0 WHEN - - 22 THEN + 92 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1497
SELECT ALL + 68 * 58 + 57 + - + ( - 29 ) + ( - NULLIF ( + 60, + COUNT( * ) ) ) * 22 * + MAX( + 2 ) * + + NULLIF ( - 80, + - 2 ) AS col0, + 34 AS col2
----
215230
34

skipif mysql # not compatible
query II rowsort label-1497
SELECT ALL + 68 * 58 + 57 + - + ( - 29 ) + ( - NULLIF ( + 60, + COUNT ( * ) ) ) * 22 * + MAX ( + 2 ) * + + NULLIF ( - 80, + - 2 ) AS col0, + 34 AS col2
----
215230
34

query I rowsort
SELECT DISTINCT - 35 * - - 3 * + 99 * + 29 + + - 65 col0
----
-301520

query I rowsort
SELECT - 8 * - - 23 AS col1
----
-184

query II rowsort
SELECT - 25 + - 63 AS col0, - 31
----
-88
-31

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

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

query I rowsort
SELECT + 53 + + 93
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1503
SELECT DISTINCT 23 * - + 96 AS col1, COUNT( * ) DIV - + 91
----
-2208
0

skipif mysql # not compatible
query II rowsort label-1503
SELECT DISTINCT 23 * - + 96 AS col1, COUNT ( * ) / - + 91
----
-2208
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1504
SELECT + 66 + COUNT( * ) * COUNT( * ) DIV - 74 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-1504
SELECT + 66 + COUNT ( * ) * COUNT ( * ) / - 74 AS col1
----
66

query I rowsort
SELECT ALL 10 * 11 col2
----
110

query I rowsort
SELECT CASE 27 WHEN + 59 / - - 28 + + 50 THEN 16 ELSE 11 END + 94 AS col2
----
105

query II rowsort
SELECT DISTINCT ( + 81 ) AS col2, 29
----
81
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT AVG ( DISTINCT 29 ) - + ( - - CAST( NULL AS SIGNED ) ) * + - 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1508
SELECT AVG ( DISTINCT 29 ) - + ( - - CAST ( NULL AS INTEGER ) ) * + - 50 col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT + 30 + + 3 * + 75 + MAX( DISTINCT - 33 ) + + 64 col2
----
286

skipif mysql # not compatible
query I rowsort label-1510
SELECT + 30 + + 3 * + 75 + MAX ( DISTINCT - 33 ) + + 64 col2
----
286

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1511
SELECT ALL 52 * + - 24 AS col2, CAST( NULL AS DECIMAL ) + + + 90 / 89
----
-1248
NULL

skipif mysql # not compatible
query II rowsort label-1511
SELECT ALL 52 * + - 24 AS col2, CAST ( NULL AS REAL ) + + + 90 / 89
----
-1248
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1512
SELECT - 96 + + ( ( 68 ) ) + + COUNT( * ) + + 41 * COALESCE ( - 82, 4 ) * + 63 - 77 + 74 AS col1, CAST( NULL AS SIGNED ) * + - 90
----
-211836
NULL

skipif mysql # not compatible
query II rowsort label-1512
SELECT - 96 + + ( ( 68 ) ) + + COUNT ( * ) + + 41 * COALESCE ( - 82, 4 ) * + 63 - 77 + 74 AS col1, CAST ( NULL AS INTEGER ) * + - 90
----
-211836
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL - CASE - - 67 WHEN - 94 THEN - 38 WHEN - 9 + + 90 THEN ( + - MIN( + ( 16 ) ) ) + 32 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL - CASE - - 67 WHEN - 94 THEN - 38 WHEN - 9 + + 90 THEN ( + - MIN ( + ( 16 ) ) ) + 32 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1514
SELECT ALL - 57 DIV COALESCE ( - - 30, - 82 + - 63 + ( + 6 ) - + 35 * + NULLIF ( + AVG ( ALL + - 26 ), - COUNT( * ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL - 57 / COALESCE ( - - 30, - 82 + - 63 + ( + 6 ) - + 35 * + NULLIF ( + AVG ( ALL + - 26 ), - COUNT ( * ) ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT COUNT( * ) * 82 + + 36
----
118

skipif mysql # not compatible
query I rowsort label-1515
SELECT COUNT ( * ) * 82 + + 36
----
118

query I rowsort
SELECT ALL 39 + + 93 AS col2
----
132

query I rowsort
SELECT 9 * 25 col1
----
225

query III rowsort
SELECT 95, 99 * + - 17 AS col1, 36 * + 24 - + 49 col1
----
95
-1683
815

onlyif mysql # DIV for integer division: 
query I rowsort label-1519
SELECT 85 DIV - 67 + - 45 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1519
SELECT 85 / - 67 + - 45 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-1520
SELECT ALL + 76 + - + COUNT( * ) + + 86 AS col0, ( 10 ) * - COUNT( * ) AS col0
----
161
-10

skipif mysql # not compatible
query II rowsort label-1520
SELECT ALL + 76 + - + COUNT ( * ) + + 86 AS col0, ( 10 ) * - COUNT ( * ) AS col0
----
161
-10

query II rowsort
SELECT ALL - 50 AS col1, 20 + - 88
----
-50
-68

query I rowsort
SELECT DISTINCT + 94 * + 23 col1
----
2162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1523
SELECT 24 * 38 DIV + CASE - 3 WHEN COUNT( * ) DIV - - 83 * - - 27 * + - 51 THEN - 13 * 10 ELSE - 76 END
----
-12

skipif mysql # not compatible
query I rowsort label-1523
SELECT 24 * 38 / + CASE - 3 WHEN COUNT ( * ) / - - 83 * - - 27 * + - 51 THEN - 13 * 10 ELSE - 76 END
----
-12

query I rowsort
SELECT 31 + - 73 AS col0
----
-42

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

query I rowsort
SELECT 50 * + 70
----
3500

query I rowsort
SELECT 56 + + 34 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1528
SELECT ALL CASE ( + 10 ) WHEN 42 THEN NULL ELSE + SUM( DISTINCT 91 ) * CASE WHEN NOT NULL < ( NULL ) THEN CASE + 73 WHEN + 75 / - 2 + - - SUM( - ( + 55 ) ) THEN NULL WHEN CAST( NULL AS SIGNED ) + - 88 - CAST( - 90 AS SIGNED ) THEN + - 62 WHEN - NULLIF ( COUNT( * ), 50 ) THEN + + CAST( NULL AS SIGNED ) ELSE + NULLIF ( COUNT( * ), + 12 ) END ELSE NULL END - + COUNT( * ) * - + 73 + - 97 * 33 END / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL CASE ( + 10 ) WHEN 42 THEN NULL ELSE + SUM ( DISTINCT 91 ) * CASE WHEN NOT NULL < ( NULL ) THEN CASE + 73 WHEN + 75 / - 2 + - - SUM ( - ( + 55 ) ) THEN NULL WHEN CAST ( NULL AS INTEGER ) + - 88 - CAST ( - 90 AS INTEGER ) THEN + - 62 WHEN - NULLIF ( COUNT ( * ), 50 ) THEN + + CAST ( NULL AS INTEGER ) ELSE + NULLIF ( COUNT ( * ), + 12 ) END ELSE NULL END - + COUNT ( * ) * - + 73 + - 97 * 33 END / + COUNT ( * )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1530
SELECT ALL CASE + 72 WHEN + - MIN( + ( - 53 ) ) THEN NULL WHEN 82 * CAST( NULL AS SIGNED ) + 93 THEN - 6 END * - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL CASE + 72 WHEN + - MIN ( + ( - 53 ) ) THEN NULL WHEN 82 * CAST ( NULL AS INTEGER ) + 93 THEN - 6 END * - 70 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1532
SELECT 25 * ( - 33 ) * + 45 + + CASE + - 12 WHEN - + 61 + AVG ( ALL - + 93 ) + - + 60 + - - COUNT( + 20 ) THEN NULL WHEN + 29 THEN - + SUM( 87 ) ELSE NULL END AS col0, COUNT( * ) - 71 AS col0
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-1532
SELECT 25 * ( - 33 ) * + 45 + + CASE + - 12 WHEN - + 61 + AVG ( ALL - + 93 ) + - + 60 + - - COUNT ( + 20 ) THEN NULL WHEN + 29 THEN - + SUM ( 87 ) ELSE NULL END AS col0, COUNT ( * ) - 71 AS col0
----
NULL
-70

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1534
SELECT - 43 AS col0, - CASE + 66 WHEN 97 + CAST( - 25 AS SIGNED ) + - ( - 83 ) + - - 36 * - 71 + - + 50 THEN 61 * COUNT( * ) ELSE NULL END
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-1534
SELECT - 43 AS col0, - CASE + 66 WHEN 97 + CAST ( - 25 AS INTEGER ) + - ( - 83 ) + - - 36 * - 71 + - + 50 THEN 61 * COUNT ( * ) ELSE NULL END
----
-43
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1535
SELECT - CASE + 27 WHEN + 26 THEN + ( - + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) + + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT - CASE + 27 WHEN + 26 THEN + ( - + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + 69 END
----
NULL

query I rowsort
SELECT - NULLIF ( + 71, + 62 ) + + 43 AS col1
----
-28

query I rowsort
SELECT DISTINCT - - 15 * 35 AS col1
----
525

query I rowsort
SELECT DISTINCT + 98 + - 16 AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1539
SELECT ALL - 34 DIV + 9 + 9
----
6

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL - 34 / + 9 + 9
----
6

query I rowsort
SELECT - NULLIF ( + 7, - 96 * + 11 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL - MIN( - 78 ) + + COALESCE ( - 27, + 97 + + COUNT( * ), - ( 4 ) * 17 ) col0
----
51

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - MIN ( - 78 ) + + COALESCE ( - 27, + 97 + + COUNT ( * ), - ( 4 ) * 17 ) col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT COUNT( * ) - - 5 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1542
SELECT COUNT ( * ) - - 5 AS col1
----
6

query I rowsort
SELECT - + NULLIF ( + + 3, - + 12 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT 80 + - + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1544
SELECT 80 + - + COUNT ( * ) AS col2
----
79

query I rowsort
SELECT ALL 33 * - 51 * 72
----
-121176

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

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

query I rowsort
SELECT 99 + - 13 AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1548
SELECT ALL + 24 * MIN( ALL + - 55 ) + - 79 AS col2, + NULLIF ( + CAST( + - 7 AS SIGNED ), COUNT( * ) * + 30 / + 78 ) + + MIN( DISTINCT - - CAST( 36 AS SIGNED ) ) + + 48 AS col1
----
-1399
77

skipif mysql # not compatible
query II rowsort label-1548
SELECT ALL + 24 * MIN ( ALL + - 55 ) + - 79 AS col2, + NULLIF ( + CAST ( + - 7 AS INTEGER ), COUNT ( * ) * + 30 / + 78 ) + + MIN ( DISTINCT - - CAST ( 36 AS INTEGER ) ) + + 48 AS col1
----
-1399
77

query I rowsort
SELECT 5 * - - 56 * 97 AS col1
----
27160

query I rowsort
SELECT ALL 98 * - 77
----
-7546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT DISTINCT + 30 * + - 34 + - CAST( - 24 AS SIGNED ) AS col0
----
-996

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT + 30 * + - 34 + - CAST ( - 24 AS INTEGER ) AS col0
----
-996

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT ALL - COALESCE ( - 23, - - 29 ) DIV - 44
----
0

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL - COALESCE ( - 23, - - 29 ) / - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT DISTINCT 6 * + + 69 - - CASE 3 WHEN - 1 * COUNT( * ) * + 36 THEN MIN( + 35 ) - 18 WHEN + - 11 * COALESCE ( - + 72, 75 * - NULLIF ( - MIN( 78 ), - ( + MIN( DISTINCT + 81 ) ) ) + 39 ) * - + 69 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT 6 * + + 69 - - CASE 3 WHEN - 1 * COUNT ( * ) * + 36 THEN MIN ( + 35 ) - 18 WHEN + - 11 * COALESCE ( - + 72, 75 * - NULLIF ( - MIN ( 78 ), - ( + MIN ( DISTINCT + 81 ) ) ) + 39 ) * - + 69 THEN NULL END
----
NULL

query I rowsort
SELECT - 81 * - 67 + 26
----
5453

onlyif mysql # aggregate syntax: 
query II rowsort label-1555
SELECT COUNT( * ) AS col1, + 43 * - + 84
----
1
-3612

skipif mysql # not compatible
query II rowsort label-1555
SELECT COUNT ( * ) AS col1, + 43 * - + 84
----
1
-3612

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

skipif mysql # not compatible
query I rowsort label-1556
SELECT MIN ( + + 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT 27 * - 89 + 66 - + MIN( + 78 ) + - - MIN( + 87 ) * 25 AS col2
----
-240

skipif mysql # not compatible
query I rowsort label-1557
SELECT 27 * - 89 + 66 - + MIN ( + 78 ) + - - MIN ( + 87 ) * 25 AS col2
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT CASE - 8 WHEN NULLIF ( + 15, - 50 ) THEN + 23 * 45 + - - ( + 2 ) ELSE NULL END * + 80 - + 96 + + + ( COUNT( * ) ) * 82 / 41 * 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT CASE - 8 WHEN NULLIF ( + 15, - 50 ) THEN + 23 * 45 + - - ( + 2 ) ELSE NULL END * + 80 - + 96 + + + ( COUNT ( * ) ) * 82 / 41 * 88 AS col0
----
NULL

query I rowsort
SELECT + 6 * + - 45 - + 87 col2
----
-357

query I rowsort
SELECT ALL + 91 - - 6
----
97

query II rowsort
SELECT + ( - + 6 ) col2, + 46 AS col1
----
-6
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT DISTINCT - + 67 * - COALESCE ( - COUNT( DISTINCT + + 64 ), 53 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT - + 67 * - COALESCE ( - COUNT ( DISTINCT + + 64 ), 53 ) AS col1
----
-67

query II rowsort
SELECT DISTINCT 32 AS col1, + 48 AS col2
----
32
48

query I rowsort
SELECT ALL - + 17 * + + 4
----
-68

query I rowsort
SELECT - + 1 * 32 AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT - 1 + - 74 DIV - - NULLIF ( - 25, + 35 ) - + 33 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1566
SELECT - 1 + - 74 / - - NULLIF ( - 25, + 35 ) - + 33 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-1567
SELECT DISTINCT - COUNT( * ) AS col1, NULLIF ( + 26, + 4 + - + 7 / - - 61 ) * + 84 * + 27 AS col2
----
-1
58968

skipif mysql # not compatible
query II rowsort label-1567
SELECT DISTINCT - COUNT ( * ) AS col1, NULLIF ( + 26, + 4 + - + 7 / - - 61 ) * + 84 * + 27 AS col2
----
-1
58968

query I rowsort
SELECT - + 51 + + 43 - + 4
----
-12

query I rowsort
SELECT - 28 + 10
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ALL + - 12 + + COUNT( * ) - - - 59
----
-70

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + - 12 + + COUNT ( * ) - - - 59
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT - + COALESCE ( COUNT( * ), SUM( 62 ) ) + - COALESCE ( + 65, - 38 + - + 93 * - - NULLIF ( + 84, 94 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1571
SELECT - + COALESCE ( COUNT ( * ), SUM ( 62 ) ) + - COALESCE ( + 65, - 38 + - + 93 * - - NULLIF ( + 84, 94 ) ) AS col2
----
-66

query I rowsort
SELECT - - 74 + - + 47
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT ALL + 5 * 65 * - COUNT( * )
----
-325

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL + 5 * 65 * - COUNT ( * )
----
-325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1574
SELECT - 17 + + 50 + + CASE + AVG ( + CAST( + + 53 AS SIGNED ) ) WHEN - + ( - + 62 ) THEN - - 94 WHEN - - 10 THEN + 69 END * 63 + + 69 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT - 17 + + 50 + + CASE + AVG ( + CAST ( + + 53 AS INTEGER ) ) WHEN - + ( - + 62 ) THEN - - 94 WHEN - - 10 THEN + 69 END * 63 + + 69 col2
----
NULL

query I rowsort
SELECT - 31 + + 37 + + - 33 AS col0
----
-27

query I rowsort
SELECT - 98 + + 5
----
-93

query I rowsort
SELECT + 80 + + + 57 AS col1
----
137

query I rowsort
SELECT ALL - 94 * + 31 * 72 AS col0
----
-209808

query I rowsort
SELECT + 68 + + 94 - 38
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1580
SELECT DISTINCT + COUNT( ALL - - 74 ) col2, + CAST( - ( - 32 ) AS SIGNED ) * CAST( + 20 AS SIGNED )
----
1
640

skipif mysql # not compatible
query II rowsort label-1580
SELECT DISTINCT + COUNT ( ALL - - 74 ) col2, + CAST ( - ( - 32 ) AS INTEGER ) * CAST ( + 20 AS INTEGER )
----
1
640

query I rowsort
SELECT ALL + 3 * + + ( - ( - 90 ) ) - + ( + - 72 ) AS col0
----
342

query II rowsort
SELECT ( 98 ) AS col0, 5
----
98
5

query I rowsort
SELECT 95 * - - NULLIF ( - + 46, + NULLIF ( + + 63, + - 55 ) / - 5 ) + - 26 * + 52
----
-5722

query I rowsort
SELECT + 38 * - 2
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1585
SELECT - 46 DIV SUM( DISTINCT + 39 ) + + 4 * - + 6 + - 84
----
-109

skipif mysql # not compatible
query I rowsort label-1585
SELECT - 46 / SUM ( DISTINCT + 39 ) + + 4 * - + 6 + - 84
----
-109

query I rowsort
SELECT + 2 * + - 56 * + 77
----
-8624

query I rowsort
SELECT ALL 73 * - - 25 col1
----
1825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1588
SELECT + NULLIF ( + + 61, ( SUM( ALL CAST( NULL AS SIGNED ) ) ) / + 68 - 51 / 92 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1588
SELECT + NULLIF ( + + 61, ( SUM ( ALL CAST ( NULL AS INTEGER ) ) ) / + 68 - 51 / 92 ) AS col0
----
61

query I rowsort
SELECT ALL NULLIF ( + - 57, - + 34 + + - 79 ) * + 61
----
-3477

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1590
SELECT + ( + + 5 ) AS col0, CASE ( + - 78 ) WHEN CAST( NULL AS SIGNED ) * - 95 - 55 + - 75 + - 47 THEN NULL ELSE + ( - 28 ) END
----
5
-28

skipif mysql # not compatible
query II rowsort label-1590
SELECT + ( + + 5 ) AS col0, CASE ( + - 78 ) WHEN CAST ( NULL AS INTEGER ) * - 95 - 55 + - 75 + - 47 THEN NULL ELSE + ( - 28 ) END
----
5
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-1591
SELECT + COUNT( * ) * COUNT( * ) + 61, - 46 * + - ( + 8 ) + + 86 AS col2
----
62
454

skipif mysql # not compatible
query II rowsort label-1591
SELECT + COUNT ( * ) * COUNT ( * ) + 61, - 46 * + - ( + 8 ) + + 86 AS col2
----
62
454

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

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

query I rowsort
SELECT ALL + ( + - 10 ) * + - 21 AS col0
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1594
SELECT ALL - + 89 * COALESCE ( + 1, 0, + - 73 * COALESCE ( - COUNT( * ), - + 72, - CASE - COUNT( * ) WHEN 73 * - 20 DIV + 19 THEN NULL WHEN + + 82 THEN + 46 ELSE NULL END * - 85 ) * + + 89 * - + 38 + + 55 ) DIV ( + ( + - 34 ) )
----
2

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL - + 89 * COALESCE ( + 1, 0, + - 73 * COALESCE ( - COUNT ( * ), - + 72, - CASE - COUNT ( * ) WHEN 73 * - 20 / + 19 THEN NULL WHEN + + 82 THEN + 46 ELSE NULL END * - 85 ) * + + 89 * - + 38 + + 55 ) / ( + ( + - 34 ) )
----
2

query I rowsort
SELECT ALL + ( 99 ) * - NULLIF ( + 50, - 82 ) + + - 26 + + + 4 AS col0
----
-4972

query I rowsort
SELECT DISTINCT - 63 * + - ( - 69 ) + + + 49
----
-4298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1597
SELECT ALL - 39 * + - 15 AS col0, NULLIF ( - CASE - 18 WHEN CASE + 88 WHEN - 35 THEN NULL ELSE + MIN( DISTINCT - 73 ) + - COALESCE ( + ( - COALESCE ( 70, 77 ) ), + ( - 84 ) ) - 16 * - - 48 END + 54 * + 93 THEN NULL WHEN - + CAST( NULL AS SIGNED ) THEN NULL ELSE - 36 END, + 98 )
----
585
36

skipif mysql # not compatible
query II rowsort label-1597
SELECT ALL - 39 * + - 15 AS col0, NULLIF ( - CASE - 18 WHEN CASE + 88 WHEN - 35 THEN NULL ELSE + MIN ( DISTINCT - 73 ) + - COALESCE ( + ( - COALESCE ( 70, 77 ) ), + ( - 84 ) ) - 16 * - - 48 END + 54 * + 93 THEN NULL WHEN - + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 36 END, + 98 )
----
585
36

query I rowsort
SELECT + 2 * 88 + + - 57 * - 63 + + 88 + CASE + ( - 6 ) WHEN - 30 THEN + + 77 * + + 7 + + - 83 + 69 ELSE ( 72 ) * + 32 + - 3 END + 61 * - - 12 AS col2
----
6888

query I rowsort
SELECT ALL - 48 + 55 - + + 80 AS col0
----
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1600
SELECT DISTINCT - - 35 + + NULLIF ( 76, - 1 + + CAST( NULL AS DECIMAL ) ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT - - 35 + + NULLIF ( 76, - 1 + + CAST ( NULL AS REAL ) ) AS col0
----
111

query I rowsort
SELECT - 51 * + 68 AS col2
----
-3468

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

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

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

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

query I rowsort
SELECT - 33 + 99
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1605
SELECT 48, + 40 + - CAST( NULL AS SIGNED ) - + ( + - 3 ) + + 72 * + CAST( 53 AS SIGNED ) * + 70 AS col0
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1605
SELECT 48, + 40 + - CAST ( NULL AS INTEGER ) - + ( + - 3 ) + + 72 * + CAST ( 53 AS INTEGER ) * + 70 AS col0
----
48
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1606
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) * 62 * - + 23 * - + 72
----
NULL
102672

skipif mysql # not compatible
query II rowsort label-1606
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) * 62 * - + 23 * - + 72
----
NULL
102672

query I rowsort
SELECT - 9 + + 73 col2
----
64

query I rowsort
SELECT + 15 * - 84
----
-1260

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT - NULLIF ( - + 13, + - 76 ) DIV ( 92 ) + - 90 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1609
SELECT - NULLIF ( - + 13, + - 76 ) / ( 92 ) + - 90 AS col2
----
-90

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

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

query I rowsort
SELECT - 79 * + 26
----
-2054

onlyif mysql # aggregate syntax: 
query II rowsort label-1612
SELECT 54, 7 * + COUNT( * ) - + 42 AS col1
----
54
-35

skipif mysql # not compatible
query II rowsort label-1612
SELECT 54, 7 * + COUNT ( * ) - + 42 AS col1
----
54
-35

query II rowsort
SELECT DISTINCT - 97 col0, 2
----
-97
2

query I rowsort
SELECT 68 + 38
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT 31 + COUNT( * ) + 39 * + 66 + 51 * + + 5 * + + 19
----
7451

skipif mysql # not compatible
query I rowsort label-1615
SELECT 31 + COUNT ( * ) + 39 * + 66 + 51 * + + 5 * + + 19
----
7451

query I rowsort
SELECT + 83 * - + 12
----
-996

query I rowsort
SELECT ( - 64 ) * 22
----
-1408

query I rowsort
SELECT DISTINCT + 62 + + 21
----
83

query II rowsort
SELECT + + 54 AS col0, 23 - + 28 - 38 + + 23 * 46
----
54
1015

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT DISTINCT 89 + - + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT 89 + - + COUNT ( * )
----
88

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL 7 * + CASE + 54 WHEN + - AVG ( ALL - 2 ) + - + 97 + - - 61 THEN NULL ELSE + NULLIF ( + + 10, - + 20 * COUNT( + 23 ) ) END AS col0
----
70

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL 7 * + CASE + 54 WHEN + - AVG ( ALL - 2 ) + - + 97 + - - 61 THEN NULL ELSE + NULLIF ( + + 10, - + 20 * COUNT ( + 23 ) ) END AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1623
SELECT + COUNT( * ) * COUNT( 83 ) + + - NULLIF ( COUNT( * ), 53 ) * + 15 * - - 52 AS col0, SUM( ( 42 ) ) AS col0
----
-779
42

skipif mysql # not compatible
query II rowsort label-1623
SELECT + COUNT ( * ) * COUNT ( 83 ) + + - NULLIF ( COUNT ( * ), 53 ) * + 15 * - - 52 AS col0, SUM ( ( 42 ) ) AS col0
----
-779
42

query I rowsort
SELECT + 13 + - 77 * + 69 AS col2
----
-5300

query II rowsort
SELECT 83, 17 AS col2
----
83
17

query I rowsort
SELECT 80 + - 8 AS col0
----
72

query I rowsort
SELECT 15 + - 80 * + 16 col1
----
-1265

query I rowsort
SELECT ALL 75 - + - 41
----
116

query I rowsort
SELECT 24 + + + 69 + - 51 + + 34 * 84 col0
----
2898

query I rowsort
SELECT ALL + COALESCE ( + 29, + 33 + - 26 ) * - 52 * - 92 AS col0
----
138736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1631
SELECT DISTINCT CASE - + CAST( NULL AS SIGNED ) WHEN + 30 * - 11 - CASE - 31 WHEN + 10 + + 33 + - 29 + - COUNT( * ) THEN NULL ELSE + 57 + 22 + 91 * - + 19 / + + COUNT( * ) + + 40 / CAST( + ( + 82 ) AS SIGNED ) END THEN + 21 / CAST( AVG ( - ( + 86 ) ) AS SIGNED ) - - 5 WHEN 85 THEN + 70 * - + 43 + - - CAST( NULL AS SIGNED ) ELSE NULL END * + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT CASE - + CAST ( NULL AS INTEGER ) WHEN + 30 * - 11 - CASE - 31 WHEN + 10 + + 33 + - 29 + - COUNT ( * ) THEN NULL ELSE + 57 + 22 + 91 * - + 19 / + + COUNT ( * ) + + 40 / CAST ( + ( + 82 ) AS INTEGER ) END THEN + 21 / CAST ( AVG ( - ( + 86 ) ) AS INTEGER ) - - 5 WHEN 85 THEN + 70 * - + 43 + - - CAST ( NULL AS INTEGER ) ELSE NULL END * + 77 AS col1
----
NULL

query I rowsort
SELECT 43 * + + 75 * 80
----
258000

query I rowsort
SELECT ALL + 31 * - 45 AS col2
----
-1395

onlyif mysql # DIV for integer division: 
query I rowsort label-1634
SELECT 59 + + 61 DIV 75
----
59

skipif mysql # not compatible
query I rowsort label-1634
SELECT 59 + + 61 / 75
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1635
SELECT DISTINCT + 86 DIV + 96 col1, COUNT( * ) + - 24
----
0
-23

skipif mysql # not compatible
query II rowsort label-1635
SELECT DISTINCT + 86 / + 96 col1, COUNT ( * ) + - 24
----
0
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1636
SELECT ALL - 60 * + ( - AVG ( ALL + - 35 ) ) * 22 + + + AVG ( + 53 ) - + + ( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - 60 * + ( - AVG ( ALL + - 35 ) ) * 22 + + + AVG ( + 53 ) - + + ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1637
SELECT 65 DIV + 96 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1637
SELECT 65 / + 96 / + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1638
SELECT DISTINCT - 87 + COALESCE ( 7, + + COALESCE ( 46, CASE + 61 WHEN - 56 THEN NULL ELSE AVG ( - 85 ) * - - 14 - COUNT( * ) * - - 41 END * 50 * 22 * SUM( - 64 ), + 49 + - CASE NULLIF ( - 82, 93 ) WHEN + 35 + + 86 DIV - - 15 DIV - 3 * + 12 THEN - - 76 + + 35 * 23 END ) * - - 66 DIV - 46 + MIN( - NULLIF ( 17, - 99 + + 70 ) ) - 57 DIV 31 * 44, CAST( NULL AS SIGNED ) + + 9 * 55, 88 ) + - 92 DIV + 56
----
-81

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT - 87 + COALESCE ( 7, + + COALESCE ( 46, CASE + 61 WHEN - 56 THEN NULL ELSE AVG ( - 85 ) * - - 14 - COUNT ( * ) * - - 41 END * 50 * 22 * SUM ( - 64 ), + 49 + - CASE NULLIF ( - 82, 93 ) WHEN + 35 + + 86 / - - 15 / - 3 * + 12 THEN - - 76 + + 35 * 23 END ) * - - 66 / - 46 + MIN ( - NULLIF ( 17, - 99 + + 70 ) ) - 57 / 31 * 44, CAST ( NULL AS INTEGER ) + + 9 * 55, 88 ) + - 92 / + 56
----
-81

query I rowsort
SELECT ALL - 69 + 95 * + - 45 AS col2
----
-4344

query I rowsort
SELECT 49 * - 24 AS col2
----
-1176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1641
SELECT + 94 / - 24 * - + 76 + 85 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1641
SELECT + 94 / - 24 * - + 76 + 85 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 98 * AVG ( + 29 ) * CASE - 68 WHEN 53 THEN - - 11 + + 35 * + 88 ELSE NULL END - - + 7 * + 62
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1643
SELECT DISTINCT - CASE + 7 WHEN 75 THEN 16 DIV - - 82 * + ( + - 91 ) + ( + 24 ) ELSE + - NULLIF ( + + 19, + 67 ) END AS col2, - 70 * + CASE + 26 WHEN + 49 THEN - + 90 + - 0 * - + COUNT( * ) END + - 80 - 93 * + 41 * - 52 AS col0
----
19
NULL

skipif mysql # not compatible
query II rowsort label-1643
SELECT DISTINCT - CASE + 7 WHEN 75 THEN 16 / - - 82 * + ( + - 91 ) + ( + 24 ) ELSE + - NULLIF ( + + 19, + 67 ) END AS col2, - 70 * + CASE + 26 WHEN + 49 THEN - + 90 + - 0 * - + COUNT ( * ) END + - 80 - 93 * + 41 * - 52 AS col0
----
19
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1644
SELECT ALL COUNT( * ) + - 33, + COUNT( * ) + + 48 AS col2
----
-32
49

skipif mysql # not compatible
query II rowsort label-1644
SELECT ALL COUNT ( * ) + - 33, + COUNT ( * ) + + 48 AS col2
----
-32
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT ALL + + ( - 27 ) * ( + 39 ) * + COUNT( * )
----
-1053

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL + + ( - 27 ) * ( + 39 ) * + COUNT ( * )
----
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL - NULLIF ( - 93, - MAX( DISTINCT + - 95 ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL - NULLIF ( - 93, - MAX ( DISTINCT + - 95 ) ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT DISTINCT COUNT( * ) + + + 37 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT COUNT ( * ) + + + 37 AS col2
----
38

query II rowsort
SELECT + 88 - 45, ( 86 ) * + - 24 AS col2
----
43
-2064

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

query I rowsort
SELECT - 1 * - - NULLIF ( + 81, 74 ) + + 3 * + - 62 * - 99 * - - 26 + + - 35 AS col1
----
478648

query I rowsort
SELECT + 71 * - + ( - 29 )
----
2059

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT ALL - MAX( DISTINCT + - 46 ) * + 29 AS col2
----
1334

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL - MAX ( DISTINCT + - 46 ) * + 29 AS col2
----
1334

query I rowsort
SELECT - 11 * - + 12 col2
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT ALL - NULLIF ( ( - 47 ), + 42 ) DIV - + 39 + + 10 - + 52 * 7 * 51 - + 22 AS col0
----
-18577

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - NULLIF ( ( - 47 ), + 42 ) / - + 39 + + 10 - + 52 * 7 * 51 - + 22 AS col0
----
-18577

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

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

query I rowsort
SELECT DISTINCT 68 - + 54
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1657
SELECT - 38 DIV 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT - 38 / 54 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL COALESCE ( 33, 91, + - 13 * + COUNT( DISTINCT + + 42 ) + 39, NULLIF ( - + 48, 14 ) * + MIN( 20 ) ) * NULLIF ( 23, + - 28 - + 88 ) + MAX( 92 ) col1
----
851

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL COALESCE ( 33, 91, + - 13 * + COUNT ( DISTINCT + + 42 ) + 39, NULLIF ( - + 48, 14 ) * + MIN ( 20 ) ) * NULLIF ( 23, + - 28 - + 88 ) + MAX ( 92 ) col1
----
851

query I rowsort
SELECT 43 * - 16
----
-688

query II rowsort
SELECT DISTINCT 77 AS col1, 58
----
77
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1661
SELECT ALL 36 AS col0, 70 * + + NULLIF ( + 82, - CAST( + 26 AS SIGNED ) ) col0
----
36
5740

skipif mysql # not compatible
query II rowsort label-1661
SELECT ALL 36 AS col0, 70 * + + NULLIF ( + 82, - CAST ( + 26 AS INTEGER ) ) col0
----
36
5740

query I rowsort
SELECT ALL + 0 + - 18 - + 84 * + + 11
----
-942

query I rowsort
SELECT + 2 * - + 52
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT - 8 * ( + 95 ) DIV + COUNT( * )
----
-760

skipif mysql # not compatible
query I rowsort label-1664
SELECT - 8 * ( + 95 ) / + COUNT ( * )
----
-760

query I rowsort
SELECT ALL 14 + - + 6 AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1666
SELECT + 20 + 67 * 60 DIV + - 61
----
-45

skipif mysql # not compatible
query I rowsort label-1666
SELECT + 20 + 67 * 60 / + - 61
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT + 72 + + 88 + 99 + + + MIN( - - 81 ) * - - CASE + 90 WHEN - 52 THEN 93 * 41 ELSE NULL END + 93 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT + 72 + + 88 + 99 + + + MIN ( - - 81 ) * - - CASE + 90 WHEN - 52 THEN 93 * 41 ELSE NULL END + 93 col2
----
NULL

query I rowsort
SELECT - 78 * + 5
----
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-1669
SELECT + 70 + + 16 DIV - + 16
----
69

skipif mysql # not compatible
query I rowsort label-1669
SELECT + 70 + + 16 / - + 16
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT ALL - CAST( NULL AS SIGNED ) * - 51 + + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL - CAST ( NULL AS INTEGER ) * - 51 + + 74 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ALL 83 * - 68 + MAX( DISTINCT - + 50 ) + + 39 * 23 * + 69 AS col2
----
56199

skipif mysql # not compatible
query I rowsort label-1671
SELECT ALL 83 * - 68 + MAX ( DISTINCT - + 50 ) + + 39 * 23 * + 69 AS col2
----
56199

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT + 87 DIV - - 2 + - + 63 + - ( + - 22 )
----
2

skipif mysql # not compatible
query I rowsort label-1673
SELECT + 87 / - - 2 + - + 63 + - ( + - 22 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT - - 58 + 13 + 61 DIV 88 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-1674
SELECT - - 58 + 13 + 61 / 88 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL CASE 26 WHEN - COUNT( * ) THEN + + 14 END * + 42 - + COUNT( * ) * + - 41 * COALESCE ( + 45, SUM( - 66 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL CASE 26 WHEN - COUNT ( * ) THEN + + 14 END * + 42 - + COUNT ( * ) * + - 41 * COALESCE ( + 45, SUM ( - 66 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 61 * - 94
----
-5734

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT - - CASE - 5 WHEN 46 * + MAX( DISTINCT + 89 ) * - - 91 THEN + + 10 + 51 ELSE 79 END + 14 * - - 29 + + 75 AS col1
----
560

skipif mysql # not compatible
query I rowsort label-1677
SELECT - - CASE - 5 WHEN 46 * + MAX ( DISTINCT + 89 ) * - - 91 THEN + + 10 + 51 ELSE 79 END + 14 * - - 29 + + 75 AS col1
----
560

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

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT - COUNT ( * ) * 21 - + - 4 / + 45
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT - ( COALESCE ( - 21, - 86 DIV + 23 * 40 ) ) + - + 57 * - + 79 * 90 AS col2
----
405291

skipif mysql # not compatible
query I rowsort label-1679
SELECT - ( COALESCE ( - 21, - 86 / + 23 * 40 ) ) + - + 57 * - + 79 * 90 AS col2
----
405291

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT DISTINCT - MAX( DISTINCT + 17 ) * 49 AS col2
----
-833

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - MAX ( DISTINCT + 17 ) * 49 AS col2
----
-833

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

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

query I rowsort
SELECT - + 39 * + - 12 AS col2
----
468

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1684
SELECT ALL 80 / 11 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL 80 / 11 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 86 + - 34
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT + 92 * - 35 * - COUNT( ALL + - 52 ) AS col1
----
3220

skipif mysql # not compatible
query I rowsort label-1686
SELECT + 92 * - 35 * - COUNT ( ALL + - 52 ) AS col1
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT - MAX( ALL - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-1687
SELECT - MAX ( ALL - 32 )
----
32

query I rowsort
SELECT ALL 74 + + + 66 + - 35 + + 27 - + 29 * + ( + 28 ) AS col0
----
-680

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

skipif mysql # not compatible
query I rowsort label-1689
SELECT - COUNT ( DISTINCT + - 4 ) + 51 AS col0
----
50

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

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - COUNT ( * ) / 31
----
0

query I rowsort
SELECT + 56 + + 41 AS col2
----
97

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

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - CAST ( - 15 AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT - 20 * - 8
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1695
SELECT - COALESCE ( - - COUNT( * ), 74 + - 75 - + 87 DIV - + COUNT( * ) ) AS col2, MIN( - 63 ) * + + ( + 78 ) * + 29
----
-1
-142506

skipif mysql # not compatible
query II rowsort label-1695
SELECT - COALESCE ( - - COUNT ( * ), 74 + - 75 - + 87 / - + COUNT ( * ) ) AS col2, MIN ( - 63 ) * + + ( + 78 ) * + 29
----
-1
-142506

query I rowsort
SELECT ALL 60 + - 4 * - 42 * 91
----
15348

query II rowsort
SELECT ALL 58 AS col1, 60 + 35 AS col0
----
58
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1698
SELECT DISTINCT + 27 AS col0, - MIN( ALL - 18 ) + 3 * - 83 * 99 AS col0
----
27
-24633

skipif mysql # not compatible
query II rowsort label-1698
SELECT DISTINCT + 27 AS col0, - MIN ( ALL - 18 ) + 3 * - 83 * 99 AS col0
----
27
-24633

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

query I rowsort
SELECT - 26 * - 55 AS col1
----
1430

query I rowsort
SELECT + + 84 * + 34 * + 19 AS col0
----
54264

query I rowsort
SELECT - 40 + - 74
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT DISTINCT 44 * + + 62 + 59 + CAST( + 88 AS SIGNED ) * - ( 28 ) * 17
----
-39101

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT 44 * + + 62 + 59 + CAST ( + 88 AS INTEGER ) * - ( 28 ) * 17
----
-39101

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1705
SELECT + + 35 DIV - + 30 - 33
----
-34

skipif mysql # not compatible
query I rowsort label-1705
SELECT + + 35 / - + 30 - 33
----
-34

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

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

query I rowsort
SELECT ALL + ( - - COALESCE ( + 11, + 14 * + 96 ) ) AS col2
----
11

query I rowsort
SELECT + 42 * - 41 + + + 51 + 20 AS col0
----
-1651

onlyif mysql # aggregate syntax: 
query II rowsort label-1709
SELECT ALL + - 85, COUNT( * ) + - - 63 AS col0
----
-85
64

skipif mysql # not compatible
query II rowsort label-1709
SELECT ALL + - 85, COUNT ( * ) + - - 63 AS col0
----
-85
64

query I rowsort
SELECT - 29 * + 76
----
-2204

query I rowsort
SELECT + - 26 col2
----
-26

query I rowsort
SELECT - COALESCE ( + 38, 69 + 26 ) * + - 27
----
1026

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT - 16 + + + COUNT( * ) * + COUNT( * ) * + 93 col2
----
77

skipif mysql # not compatible
query I rowsort label-1713
SELECT - 16 + + + COUNT ( * ) * + COUNT ( * ) * + 93 col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1714
SELECT - 86 DIV ( + 99 )
----
0

skipif mysql # not compatible
query I rowsort label-1714
SELECT - 86 / ( + 99 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1715
SELECT NULLIF ( + COALESCE ( 40, NULLIF ( 84, + 1 ), 40 * + 12 - - + 85 DIV - 13 DIV - 85 + + COUNT( * ) ), - COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-1715
SELECT NULLIF ( + COALESCE ( 40, NULLIF ( 84, + 1 ), 40 * + 12 - - + 85 / - 13 / - 85 + + COUNT ( * ) ), - COUNT ( * ) )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT - ( 29 ) * - 8 * COUNT( * ) AS col2
----
232

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - ( 29 ) * - 8 * COUNT ( * ) AS col2
----
232

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

query I rowsort
SELECT 59 * NULLIF ( + 15, - + 47 )
----
885

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT 49 * - ( + MAX( 66 ) )
----
-3234

skipif mysql # not compatible
query I rowsort label-1721
SELECT 49 * - ( + MAX ( 66 ) )
----
-3234

onlyif mysql # aggregate syntax: 
query II rowsort label-1722
SELECT DISTINCT + MAX( - 73 ) + - 45 AS col1, 23 + ( + - 57 ) + + COUNT( * )
----
-118
-33

skipif mysql # not compatible
query II rowsort label-1722
SELECT DISTINCT + MAX ( - 73 ) + - 45 AS col1, 23 + ( + - 57 ) + + COUNT ( * )
----
-118
-33

query I rowsort
SELECT ALL 60 + - 62 + - - 6 AS col1
----
4

query I rowsort
SELECT 74 - + 1 + 82
----
155

query I rowsort
SELECT DISTINCT + 56 - ( + 25 )
----
31

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

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

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

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

query I rowsort
SELECT - 84 * + 21 AS col2
----
-1764

query I rowsort
SELECT 0 + - 38 col2
----
-38

query I rowsort
SELECT - 41 + NULLIF ( + 39, - - 36 ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1731
SELECT 90 - CAST( - 19 AS SIGNED )
----
109

skipif mysql # not compatible
query I rowsort label-1731
SELECT 90 - CAST ( - 19 AS INTEGER )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT MIN( ALL - 9 ) + + 56 + + 56 col2
----
103

skipif mysql # not compatible
query I rowsort label-1732
SELECT MIN ( ALL - 9 ) + + 56 + + 56 col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT + + NULLIF ( + COUNT( * ), NULLIF ( - + COUNT( * ), + 4 * + 40 + - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1733
SELECT + + NULLIF ( + COUNT ( * ), NULLIF ( - + COUNT ( * ), + 4 * + 40 + - COUNT ( * ) ) )
----
1

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( + + 48, + 72 + + 41 * NULLIF ( - 83, + 28 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT DISTINCT - - MIN( ALL + COALESCE ( + 91, - 29 ) )
----
91

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT - - MIN ( ALL + COALESCE ( + 91, - 29 ) )
----
91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1738
SELECT - - 41 DIV + 94 + - ( + 25 ) + - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-1738
SELECT - - 41 / + 94 + - ( + 25 ) + - COUNT ( * )
----
-26

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

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL - CAST ( NULL AS INTEGER ) * - 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1740
SELECT + COUNT( - 78 ) col0, - 37 AS col1
----
1
-37

skipif mysql # not compatible
query II rowsort label-1740
SELECT + COUNT ( - 78 ) col0, - 37 AS col1
----
1
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1741
SELECT DISTINCT 14 + + ( CASE 70 WHEN - - 87 * - - 19 * CAST( NULL AS DECIMAL ) THEN - 85 END ) - + 15 * - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT 14 + + ( CASE 70 WHEN - - 87 * - - 19 * CAST ( NULL AS REAL ) THEN - 85 END ) - + 15 * - 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL CASE + 85 WHEN - 63 THEN - 4 / - 17 + ( - 17 ) * CASE + + ( + 95 ) WHEN AVG ( 77 ) + + 1 THEN 12 * + - COUNT( * ) END END + - ( + - 86 ) + - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL CASE + 85 WHEN - 63 THEN - 4 / - 17 + ( - 17 ) * CASE + + ( + 95 ) WHEN AVG ( 77 ) + + 1 THEN 12 * + - COUNT ( * ) END END + - ( + - 86 ) + - 63 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 62 + - 47 + 0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT ALL + 41 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-1744
SELECT ALL + 41 / 59
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1745
SELECT 59 DIV 26 * + 29
----
58

skipif mysql # not compatible
query I rowsort label-1745
SELECT 59 / 26 * + 29
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1746
SELECT ALL CAST( NULL AS SIGNED ) + 29 / - 78, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1746
SELECT ALL CAST ( NULL AS INTEGER ) + 29 / - 78, - COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT 75 - + - 53
----
128

query II rowsort
SELECT 19 col2, 11
----
19
11

query I rowsort
SELECT ALL + 42 * + - 5 AS col1
----
-210

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

skipif mysql # not compatible
query I rowsort label-1750
SELECT CAST ( NULL AS INTEGER ) + - 12 + COUNT ( * ) * - 26 / 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1751
SELECT + 84 * - 6 - COUNT( * ) DIV 32 AS col1
----
-504

skipif mysql # not compatible
query I rowsort label-1751
SELECT + 84 * - 6 - COUNT ( * ) / 32 AS col1
----
-504

query I rowsort
SELECT CASE - 62 WHEN - 55 THEN NULL WHEN + 58 THEN + + 59 + + 43 END + + 23 AS col0
----
NULL

query I rowsort
SELECT 94 * - - 40
----
3760

query I rowsort
SELECT ALL - 69 + - 29 AS col0
----
-98

query II rowsort
SELECT - 46 AS col0, + 93 * - 28 AS col1
----
-46
-2604

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

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

query I rowsort
SELECT ALL 31 * - - 84 AS col2
----
2604

query I rowsort
SELECT ALL + 70 - + NULLIF ( + 1, - 71 )
----
69

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

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

query II rowsort
SELECT DISTINCT 62, + CASE 60 WHEN + 49 THEN NULL WHEN - 87 THEN - + 65 WHEN 57 THEN + 0 END * - - 81 AS col0
----
62
NULL

query I rowsort
SELECT 38 * - ( + 63 ) + + 10
----
-2384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1762
SELECT - CAST( - 34 AS DECIMAL ) + + 59 + - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) + + + 99
----
NULL
100

skipif mysql # not compatible
query II rowsort label-1762
SELECT - CAST ( - 34 AS REAL ) + + 59 + - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) + + + 99
----
NULL
100

query II rowsort
SELECT - 15 AS col1, 97
----
-15
97

query I rowsort
SELECT + 81 * + 79 * - + 83 AS col1
----
-531117

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1766
SELECT ( + 88 ) + COUNT( * ) / + CASE - SUM( ALL + + ( - 46 ) ) WHEN + 46 THEN NULL ELSE - CAST( NULL AS SIGNED ) + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1766
SELECT ( + 88 ) + COUNT ( * ) / + CASE - SUM ( ALL + + ( - 46 ) ) WHEN + 46 THEN NULL ELSE - CAST ( NULL AS INTEGER ) + 97 END
----
NULL

query I rowsort
SELECT 5 + - 19
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT - COALESCE ( - 46, 21 ) * + CASE + 13 WHEN 64 + + ( - COALESCE ( - 17, COUNT( ALL - 23 ), 10 + 86, 5 ) ) * + - 87 THEN NULL ELSE + 26 + - 11 * 93 + - 55 END * - 42 * + MIN( ALL - 84 )
----
-170726976

skipif mysql # not compatible
query I rowsort label-1768
SELECT - COALESCE ( - 46, 21 ) * + CASE + 13 WHEN 64 + + ( - COALESCE ( - 17, COUNT ( ALL - 23 ), 10 + 86, 5 ) ) * + - 87 THEN NULL ELSE + 26 + - 11 * 93 + - 55 END * - 42 * + MIN ( ALL - 84 )
----
-170726976

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

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

query I rowsort
SELECT DISTINCT - 40 * - 94 * 7 * 71 AS col0
----
1868720

onlyif mysql # aggregate syntax: 
query II rowsort label-1771
SELECT ALL - 25, ( + MAX( 83 ) ) * - + 26 + + 57 + - 18 AS col0
----
-25
-2119

skipif mysql # not compatible
query II rowsort label-1771
SELECT ALL - 25, ( + MAX ( 83 ) ) * - + 26 + + 57 + - 18 AS col0
----
-25
-2119

onlyif mysql # DIV for integer division: 
query II rowsort label-1772
SELECT 25, 70 DIV + 67 + - - 73 + - ( + - 90 ) col1
----
25
164

skipif mysql # not compatible
query II rowsort label-1772
SELECT 25, 70 / + 67 + - - 73 + - ( + - 90 ) col1
----
25
164

query I rowsort
SELECT ALL + - 79 * - 64 AS col2
----
5056

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1775
SELECT CASE + MAX( ALL + - 66 ) WHEN - CASE 26 WHEN - 52 THEN - 6 WHEN - 77 * - NULLIF ( 53, - 83 ) THEN NULL ELSE NULL END THEN NULL WHEN + COUNT( * ) THEN - + 78 + - 14 ELSE + CASE - COUNT( * ) WHEN - - ( + 37 ) THEN + + COUNT( - - 54 ) + - 48 + 17 ELSE - + 72 + - 14 + - 19 DIV COUNT( * ) DIV + 59 END END - + - 34 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-1775
SELECT CASE + MAX ( ALL + - 66 ) WHEN - CASE 26 WHEN - 52 THEN - 6 WHEN - 77 * - NULLIF ( 53, - 83 ) THEN NULL ELSE NULL END THEN NULL WHEN + COUNT ( * ) THEN - + 78 + - 14 ELSE + CASE - COUNT ( * ) WHEN - - ( + 37 ) THEN + + COUNT ( - - 54 ) + - 48 + 17 ELSE - + 72 + - 14 + - 19 / COUNT ( * ) / + 59 END END - + - 34 AS col2
----
-52

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1777
SELECT ALL + 97 DIV 50 + CAST( + 51 AS SIGNED ) * - COALESCE ( - ( + 32 ), 63, - 58 * + - 58 - + COALESCE ( + + COUNT( * ), - ( NULLIF ( 70, - CAST( NULL AS SIGNED ) ) ) - + 99, - + ( + 15 ), - ( 91 ) + - + 87 ) + 78 * + COUNT( + 96 ) ) AS col0
----
1633

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL + 97 / 50 + CAST ( + 51 AS INTEGER ) * - COALESCE ( - ( + 32 ), 63, - 58 * + - 58 - + COALESCE ( + + COUNT ( * ), - ( NULLIF ( 70, - CAST ( NULL AS INTEGER ) ) ) - + 99, - + ( + 15 ), - ( 91 ) + - + 87 ) + 78 * + COUNT ( + 96 ) ) AS col0
----
1633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1778
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) + - 81 + - 45 * + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 81 + - 45 * + 64 AS col0
----
NULL

query I rowsort
SELECT ALL - 34 * 47 + - - 52 AS col0
----
-1546

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

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

query I rowsort
SELECT + 33 + 26 * + 42
----
1125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1782
SELECT ALL + SUM( DISTINCT + 29 ) * SUM( - 42 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL + SUM ( DISTINCT + 29 ) * SUM ( - 42 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

query I rowsort
SELECT + COALESCE ( 74, - 55 ) AS col1
----
74

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

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

query I rowsort
SELECT ALL 85 - 34 AS col1
----
51

query I rowsort
SELECT DISTINCT 96 * + - ( + 35 ) * + 21
----
-70560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1788
SELECT DISTINCT 14 * + - CASE - + COUNT( * ) WHEN + + CAST( - 51 AS SIGNED ) + SUM( - + 94 ) THEN 73 WHEN - + 43 THEN + 52 + - 40 ELSE NULL END * 26 + - + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT 14 * + - CASE - + COUNT ( * ) WHEN + + CAST ( - 51 AS INTEGER ) + SUM ( - + 94 ) THEN 73 WHEN - + 43 THEN + 52 + - 40 ELSE NULL END * 26 + - + 18 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT + COUNT( * ) - 99 - - 9 * 70
----
532

skipif mysql # not compatible
query I rowsort label-1790
SELECT + COUNT ( * ) - 99 - - 9 * 70
----
532

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT + 7 - + + 47 DIV - 9
----
12

skipif mysql # not compatible
query I rowsort label-1791
SELECT + 7 - + + 47 / - 9
----
12

query I rowsort
SELECT DISTINCT - 35 * + + 54
----
-1890

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT ALL - - 32 * 86 DIV + 22 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL - - 32 * 86 / + 22 AS col0
----
125

query I rowsort
SELECT DISTINCT + 44 * + ( 58 ) AS col1
----
2552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1795
SELECT + 37 * COUNT( * ) AS col2, + SUM( DISTINCT 95 ) - + + 8 + - - CAST( NULL AS SIGNED ) * 45 AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-1795
SELECT + 37 * COUNT ( * ) AS col2, + SUM ( DISTINCT 95 ) - + + 8 + - - CAST ( NULL AS INTEGER ) * 45 AS col2
----
37
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT - MAX( DISTINCT - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-1797
SELECT - MAX ( DISTINCT - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT DISTINCT + MAX( 3 ) + + 64
----
67

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT + MAX ( 3 ) + + 64
----
67

query I rowsort
SELECT + - 87 + 50 col2
----
-37

query I rowsort
SELECT ALL + - 77 + 67 + - 18 col1
----
-28

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

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

query II rowsort
SELECT - 9 - + 18, 45 AS col1
----
-27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT - 18 * - + COUNT( * ) - - + 93 + - + 3
----
108

skipif mysql # not compatible
query I rowsort label-1803
SELECT - 18 * - + COUNT ( * ) - - + 93 + - + 3
----
108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1804
SELECT ALL + MAX( - CAST( NULL AS DECIMAL ) ), + 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-1804
SELECT ALL + MAX ( - CAST ( NULL AS REAL ) ), + 83 AS col1
----
NULL
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT ALL - NULLIF ( - - 74, - + 81 * 34 - 3 ) DIV - + 16 + + - 74
----
-70

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - NULLIF ( - - 74, - + 81 * 34 - 3 ) / - + 16 + + - 74
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1806
SELECT DISTINCT + 96 DIV - 94 + - 33 + - + 0 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT + 96 / - 94 + - 33 + - + 0 AS col1
----
-34

query I rowsort
SELECT ALL - 35 * - - 23 AS col0
----
-805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1808
SELECT - - 29 DIV ( + COUNT( * ) ) + - MIN( + - 73 ) + 53 * 61
----
3335

skipif mysql # not compatible
query I rowsort label-1808
SELECT - - 29 / ( + COUNT ( * ) ) + - MIN ( + - 73 ) + 53 * 61
----
3335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1809
SELECT ( + + 39 ) DIV 82 + - 89 + - 60 - - 65 * + + COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-1809
SELECT ( + + 39 ) / 82 + - 89 + - 60 - - 65 * + + COUNT ( * ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT ALL - 41 * + COUNT( * ) * + + 38 AS col1
----
-1558

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - 41 * + COUNT ( * ) * + + 38 AS col1
----
-1558

query II rowsort
SELECT ( + NULLIF ( ( - 30 ), 56 ) ) AS col0, + 57 AS col1
----
-30
57

query I rowsort
SELECT - 73 * - - 64 AS col1
----
-4672

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1814
SELECT COALESCE ( + 9, + 34 - 25 * - - 23 DIV 50, - 28 + 11 ), + 37 AS col0
----
9
37

skipif mysql # not compatible
query II rowsort label-1814
SELECT COALESCE ( + 9, + 34 - 25 * - - 23 / 50, - 28 + 11 ), + 37 AS col0
----
9
37

query I rowsort
SELECT + 75 * + 18 - 89 + 60 * - 71 * 7
----
-28559

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT + COUNT( * ) + + 93 + + + 25 * - ( + + 55 ) AS col2
----
-1281

skipif mysql # not compatible
query I rowsort label-1816
SELECT + COUNT ( * ) + + 93 + + + 25 * - ( + + 55 ) AS col2
----
-1281

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1818
SELECT - 31 * + CAST( NULL AS SIGNED ) * 1 * 96 - - 57 * + 26 * + - 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1818
SELECT - 31 * + CAST ( NULL AS INTEGER ) * 1 * 96 - - 57 * + 26 * + - 45 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT + 89 - + COUNT( * ) col0
----
88

skipif mysql # not compatible
query I rowsort label-1820
SELECT + 89 - + COUNT ( * ) col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT ALL 95 * CASE - 85 WHEN 19 THEN NULLIF ( ( - 8 ), - ( - COUNT( * ) ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL 95 * CASE - 85 WHEN 19 THEN NULLIF ( ( - 8 ), - ( - COUNT ( * ) ) ) ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - 46 * - + 44 + 92 * 61 AS col2
----
7636

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT ALL + ( + - 17 ) + - 23 + CAST( + AVG ( - - 54 ) AS SIGNED ) + + 95 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + ( + - 17 ) + - 23 + CAST ( + AVG ( - - 54 ) AS INTEGER ) + + 95 AS col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT + + 76 + - + 30 - + + 81 * - + 4 * + 24 * COUNT( * ) + - 19
----
7803

skipif mysql # not compatible
query I rowsort label-1825
SELECT + + 76 + - + 30 - + + 81 * - + 4 * + 24 * COUNT ( * ) + - 19
----
7803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT DISTINCT 22 + - CASE + - 43 WHEN - CAST( NULL AS SIGNED ) THEN 43 END + - 5 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT 22 + - CASE + - 43 WHEN - CAST ( NULL AS INTEGER ) THEN 43 END + - 5 * 13
----
NULL

query II rowsort
SELECT 23, 0 col1
----
23
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1828
SELECT DISTINCT 36 + + 42 / - COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT 36 + + 42 / - COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT ALL 63 * + ( 65 ) * + - 84 * - 90 * SUM( ALL NULLIF ( 44, - 31 ) )
----
1362160800

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL 63 * + ( 65 ) * + - 84 * - 90 * SUM ( ALL NULLIF ( 44, - 31 ) )
----
1362160800

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT DISTINCT + 19 DIV - 37
----
0

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT + 19 / - 37
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT DISTINCT - CAST( + + 46 AS SIGNED ) * + 48
----
-2208

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT - CAST ( + + 46 AS INTEGER ) * + 48
----
-2208

query I rowsort
SELECT DISTINCT + 39 * + 46 AS col0
----
1794

query I rowsort
SELECT DISTINCT ( - 44 ) + - 60
----
-104

query I rowsort
SELECT ALL - 6 + - 56 AS col2
----
-62

query I rowsort
SELECT 16 * - 82
----
-1312

query II rowsort
SELECT - 52, + 26 AS col2
----
-52
26

query II rowsort
SELECT ALL - 7 AS col0, 32
----
-7
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT 43 - 12 + + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-1840
SELECT 43 - 12 + + + COUNT ( * )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1841
SELECT 78 * + COUNT( * ) AS col0, 66 * + 81 - - CAST( + 69 AS SIGNED ) + - 15 + + 43
----
78
5443

skipif mysql # not compatible
query II rowsort label-1841
SELECT 78 * + COUNT ( * ) AS col0, 66 * + 81 - - CAST ( + 69 AS INTEGER ) + - 15 + + 43
----
78
5443

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1842
SELECT DISTINCT - 37 - 73 DIV MIN( ALL ( + 18 ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT - 37 - 73 / MIN ( ALL ( + 18 ) ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL - COALESCE ( - - COUNT( * ), + 3 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL - COALESCE ( - - COUNT ( * ), + 3 ) AS col1
----
-1

query II rowsort
SELECT DISTINCT - ( - 3 ), + 29 col2
----
3
29

onlyif mysql # aggregate syntax: 
query II rowsort label-1845
SELECT ALL - 10 * + COUNT( * ), 74 + + 1 * - 56 AS col0
----
-10
18

skipif mysql # not compatible
query II rowsort label-1845
SELECT ALL - 10 * + COUNT ( * ), 74 + + 1 * - 56 AS col0
----
-10
18

query I rowsort
SELECT DISTINCT - 38 - + + 42
----
-80

query II rowsort
SELECT + 9 * + - 30 + + NULLIF ( - + 25, + 12 * - + 64 ), + 81 - + 30 AS col1
----
-295
51

query I rowsort
SELECT 87 - + 11
----
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT 77 + + COUNT( * ) + - 98 * - 85 AS col1
----
8408

skipif mysql # not compatible
query I rowsort label-1850
SELECT 77 + + COUNT ( * ) + - 98 * - 85 AS col1
----
8408

onlyif mysql # DIV for integer division: 
query I rowsort label-1851
SELECT 13 DIV - + 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1851
SELECT 13 / - + 29 AS col1
----
0

query I rowsort
SELECT 83 * - 35 AS col2
----
-2905

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1855
SELECT ALL + 88 AS col2, + ( - - COUNT( * ) ) AS col1
----
88
1

skipif mysql # not compatible
query II rowsort label-1855
SELECT ALL + 88 AS col2, + ( - - COUNT ( * ) ) AS col1
----
88
1

query I rowsort
SELECT DISTINCT - + 35 + COALESCE ( ( - 91 ), 81 * + ( + - 18 ) + + - ( - 23 ), - 52 ) - - 81
----
-45

query I rowsort
SELECT ALL + + 73 + + 85 * + 65
----
5598

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT COUNT( * ) - - + 38
----
39

skipif mysql # not compatible
query I rowsort label-1858
SELECT COUNT ( * ) - - + 38
----
39

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

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

query I rowsort
SELECT 69 - - - 39 * + 69 * + 53 * - + 96 * 5 - + - ( - + 31 )
----
68459078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1861
SELECT 57 AS col1, 59 + + + COUNT( * ) + - ( - 13 ) * - CAST( + 72 AS SIGNED ) AS col2
----
57
-876

skipif mysql # not compatible
query II rowsort label-1861
SELECT 57 AS col1, 59 + + + COUNT ( * ) + - ( - 13 ) * - CAST ( + 72 AS INTEGER ) AS col2
----
57
-876

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL + 34 * + + SUM( ALL - 94 ) * - COUNT( * ) + + 69
----
3265

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL + 34 * + + SUM ( ALL - 94 ) * - COUNT ( * ) + + 69
----
3265

query II rowsort
SELECT - - 59 col1, 53 * + 2 * + NULLIF ( - 14, - + 51 )
----
59
-1484

query II rowsort
SELECT ALL - 3, 73 AS col1
----
-3
73

query II rowsort
SELECT - + 46, - ( 98 ) AS col2
----
-46
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL - - CAST( + ( - 41 ) AS SIGNED ) + - 5
----
-46

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL - - CAST ( + ( - 41 ) AS INTEGER ) + - 5
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL - ( COUNT( * ) ) + - - 11
----
10

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - ( COUNT ( * ) ) + - - 11
----
10

query I rowsort
SELECT - 44 - + ( + 59 ) AS col2
----
-103

query I rowsort
SELECT ALL + 40 * 43 AS col2
----
1720

query I rowsort
SELECT - ( - 12 ) - + 19 - 75 AS col1
----
-82

query II rowsort
SELECT ALL 97 AS col2, + 81
----
97
81

query II rowsort
SELECT + 25, 21 col1
----
25
21

query I rowsort
SELECT - 10 + + + 45 * + + 56 AS col2
----
2510

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1874
SELECT COUNT( * ) + - + 9 / + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1874
SELECT COUNT ( * ) + - + 9 / + + CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1875
SELECT ( 16 ) * - - 24 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT ALL 92 DIV + 15
----
6

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL 92 / + 15
----
6

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1878
SELECT 52 + 84 col2, COUNT( * ) + - 29 AS col0
----
136
-28

skipif mysql # not compatible
query II rowsort label-1878
SELECT 52 + 84 col2, COUNT ( * ) + - 29 AS col0
----
136
-28

query I rowsort
SELECT 88 - - + 93 * + 62 * - 45
----
-259382

query I rowsort
SELECT DISTINCT 27 * - 20
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT ALL ( + 53 ) DIV + - 70 + 70 * - 27 + - - 9 AS col0
----
-1881

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL ( + 53 ) / + - 70 + 70 * - 27 + - - 9 AS col0
----
-1881

onlyif mysql # DIV for integer division: 
query I rowsort label-1882
SELECT ( + - 2 ) DIV 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1882
SELECT ( + - 2 ) / 24 AS col0
----
0

query II rowsort
SELECT ALL - 24 * + 86 AS col1, + 99 + + - 24 AS col1
----
-2064
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT 88 * + - 74 + + - COALESCE ( + 95, COUNT( * ) + - - 36 )
----
-6607

skipif mysql # not compatible
query I rowsort label-1884
SELECT 88 * + - 74 + + - COALESCE ( + 95, COUNT ( * ) + - - 36 )
----
-6607

query II rowsort
SELECT DISTINCT 91 * + + 41, + 33 AS col0
----
3731
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1886
SELECT ALL 85 * 16 * - + 49 DIV - COUNT( * ) AS col0
----
66640

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL 85 * 16 * - + 49 / - COUNT ( * ) AS col0
----
66640

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT MAX( DISTINCT - + 8 ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-1887
SELECT MAX ( DISTINCT - + 8 ) col2
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1888
SELECT 3 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT 3 * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1889
SELECT ALL - COALESCE ( - COUNT( * ), - 98, COALESCE ( + MIN( + 70 ), - - 47 + COUNT( * ) ) + - COUNT( * ) DIV + - 28 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL - COALESCE ( - COUNT ( * ), - 98, COALESCE ( + MIN ( + 70 ), - - 47 + COUNT ( * ) ) + - COUNT ( * ) / + - 28 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT + 79 * + - 39 + - 43 + 54 + + COUNT( * ) * - 1 AS col2
----
-3071

skipif mysql # not compatible
query I rowsort label-1890
SELECT + 79 * + - 39 + - 43 + 54 + + COUNT ( * ) * - 1 AS col2
----
-3071

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT DISTINCT 25 + - - COUNT( * ) + + + 55 + + + 70 + - - 66 * + 30 AS col0
----
2131

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT 25 + - - COUNT ( * ) + + + 55 + + + 70 + - - 66 * + 30 AS col0
----
2131

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT ALL - COUNT( * ) + - + 32, CASE 14 WHEN + - 56 THEN + COUNT( * ) WHEN - - 79 THEN NULL END col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-1892
SELECT ALL - COUNT ( * ) + - + 32, CASE 14 WHEN + - 56 THEN + COUNT ( * ) WHEN - - 79 THEN NULL END col0
----
-33
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1893
SELECT 80 * 53 + COUNT( * ) * + 10 + - 25, ( + - COALESCE ( + 68, + 54 + CASE - + NULLIF ( - - COALESCE ( + 55, - MAX( DISTINCT - 47 ) ), 84 ) WHEN - 29 - + 43 + + 81 THEN NULL ELSE + - ( + 65 ) END DIV + 87 + 10 * 37 * CAST( NULL AS SIGNED ) * - 58 * - - 63 ) ) * - 6 + 55 AS col0
----
4225
463

skipif mysql # not compatible
query II rowsort label-1893
SELECT 80 * 53 + COUNT ( * ) * + 10 + - 25, ( + - COALESCE ( + 68, + 54 + CASE - + NULLIF ( - - COALESCE ( + 55, - MAX ( DISTINCT - 47 ) ), 84 ) WHEN - 29 - + 43 + + 81 THEN NULL ELSE + - ( + 65 ) END / + 87 + 10 * 37 * CAST ( NULL AS INTEGER ) * - 58 * - - 63 ) ) * - 6 + 55 AS col0
----
4225
463

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT DISTINCT 60 + 32 + COUNT( ALL - 18 ) * + - ( + 32 ) * - 74 + + MAX( ALL - 85 ) + - COUNT( * ) - 16 AS col0
----
2358

skipif mysql # not compatible
query I rowsort label-1894
SELECT DISTINCT 60 + 32 + COUNT ( ALL - 18 ) * + - ( + 32 ) * - 74 + + MAX ( ALL - 85 ) + - COUNT ( * ) - 16 AS col0
----
2358

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

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - + ( + 95 ) + + COUNT ( * ) AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1896
SELECT DISTINCT + COUNT( * ) * - - COALESCE ( 98, + + ( - 9 ) ) DIV + + 71 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT + COUNT ( * ) * - - COALESCE ( 98, + + ( - 9 ) ) / + + 71 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + + MAX( DISTINCT - 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-1897
SELECT + + MAX ( DISTINCT - 18 ) AS col1
----
-18

query I rowsort
SELECT ( - 86 ) + + 32 AS col1
----
-54

query II rowsort
SELECT DISTINCT + 63 * 62 AS col2, 89
----
3906
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1900
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ), 2 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-1900
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), 2 AS col0
----
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL + COALESCE ( - 20, + 63 + - 74 - + COUNT( * ), + 77 + + COUNT( * ) ) + 54 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL + COALESCE ( - 20, + 63 + - 74 - + COUNT ( * ), + 77 + + COUNT ( * ) ) + 54 AS col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1902
SELECT DISTINCT - CAST( - - 45 AS SIGNED ) + - COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT - CAST ( - - 45 AS INTEGER ) + - COUNT ( * ) AS col1
----
-46

query I rowsort
SELECT - 42 + 82 * - 50
----
-4142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT ALL CASE - NULLIF ( - - 97, + - 99 ) WHEN - 56 + - 69 THEN 48 + SUM( - 92 ) + 28 + 86 + - 19 + 31 * - 24 + - + ( + CAST( 14 AS SIGNED ) ) / + 96 * + 8 WHEN + 36 THEN NULL WHEN + 40 THEN NULL ELSE 21 * - + 8 * 88 + 16 * + + 49 * - 37 END
----
-43792

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL CASE - NULLIF ( - - 97, + - 99 ) WHEN - 56 + - 69 THEN 48 + SUM ( - 92 ) + 28 + 86 + - 19 + 31 * - 24 + - + ( + CAST ( 14 AS INTEGER ) ) / + 96 * + 8 WHEN + 36 THEN NULL WHEN + 40 THEN NULL ELSE 21 * - + 8 * 88 + 16 * + + 49 * - 37 END
----
-43792

query I rowsort
SELECT ALL + NULLIF ( 33, + 63 / - 13 - - 97 ) AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1906
SELECT - - CAST( + COUNT( + 80 ) AS SIGNED ) * - - ( + 38 ) + - + COALESCE ( + - CASE WHEN 97 IN ( + 63, 68 ) THEN NULL ELSE 92 END, + SUM( ALL 32 ) ) * - 31 * + - 82 AS col1
----
233902

skipif mysql # not compatible
query I rowsort label-1906
SELECT - - CAST ( + COUNT ( + 80 ) AS INTEGER ) * - - ( + 38 ) + - + COALESCE ( + - CASE WHEN 97 IN ( + 63, 68 ) THEN NULL ELSE 92 END, + SUM ( ALL 32 ) ) * - 31 * + - 82 AS col1
----
233902

query I rowsort
SELECT + + ( - + 53 ) + - 14 + 34
----
-33

query I rowsort
SELECT + - 17 + + 0 * 22 AS col0
----
-17

query I rowsort
SELECT ALL NULLIF ( 61, 84 * + - 90 ) col0
----
61

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

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

query I rowsort
SELECT ALL + 19 * + 36 AS col0
----
684

query I rowsort
SELECT + ( - + CASE + 72 WHEN + 23 + + CASE 71 WHEN - + 99 THEN + - 37 * + 40 ELSE NULL END THEN - 8 + - + 36 END ) + + 54 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 50 * CASE - 79 WHEN - 26 THEN - 77 END
----
NULL

query I rowsort
SELECT + 20 + + - 52 * 18
----
-916

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT + 97 DIV + 83 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1916
SELECT + 97 / + 83 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT DISTINCT - MAX( DISTINCT - + NULLIF ( + - 45, - + 11 * - 70 + - 51 - - 80 + + + 46 * + 51 ) ) * - 65 + - 33 + + - COALESCE ( - - 97, ( 12 ) - + + 8, + + 40 ) + - + 70 * - 80 + - 49 * 74
----
4769

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT - MAX ( DISTINCT - + NULLIF ( + - 45, - + 11 * - 70 + - 51 - - 80 + + + 46 * + 51 ) ) * - 65 + - 33 + + - COALESCE ( - - 97, ( 12 ) - + + 8, + + 40 ) + - + 70 * - 80 + - 49 * 74
----
4769

query I rowsort
SELECT ( - 97 ) col1
----
-97

query I rowsort
SELECT ALL - 34 * + 91 + - - 53 + - 52 + 37 AS col1
----
-3056

query I rowsort
SELECT + NULLIF ( + - 18, - - 84 / 7 / - 62 ) AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1921
SELECT + 13 * - - ( + 86 ) DIV + - COUNT( * )
----
-1118

skipif mysql # not compatible
query I rowsort label-1921
SELECT + 13 * - - ( + 86 ) / + - COUNT ( * )
----
-1118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1922
SELECT DISTINCT + 23 * + CASE - MAX( DISTINCT 77 ) WHEN + + 92 - - ( - 75 ) THEN 30 - 70 + - CAST( - MIN( DISTINCT + + ( + + 50 ) ) AS SIGNED ) * + + AVG ( - CAST( NULL AS SIGNED ) ) WHEN 85 + - COUNT( * ) THEN NULL END + - 41 + + CAST( NULL AS SIGNED ) * - - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + 23 * + CASE - MAX ( DISTINCT 77 ) WHEN + + 92 - - ( - 75 ) THEN 30 - 70 + - CAST ( - MIN ( DISTINCT + + ( + + 50 ) ) AS INTEGER ) * + + AVG ( - CAST ( NULL AS INTEGER ) ) WHEN 85 + - COUNT ( * ) THEN NULL END + - 41 + + CAST ( NULL AS INTEGER ) * - - 12 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1923
SELECT + CASE - 19 WHEN - 2 THEN - + 8 * - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) * - - 84 THEN + 3 + 34 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT + CASE - 19 WHEN - 2 THEN - + 8 * - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) * - - 84 THEN + 3 + 34 END AS col1
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( - 62, 25 * - + 92 ) * 50 + + 73 + + 92 + - + ( + 91 ) + + 6 * 60
----
3534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1925
SELECT + - COUNT( + + 91 ) * + 24 * + 19 / + 75 / - 39 + + 17 + 45 - - COUNT( * ) * 95 + - CAST( NULL AS SIGNED ), 75 AS col0
----
NULL
75

skipif mysql # not compatible
query II rowsort label-1925
SELECT + - COUNT ( + + 91 ) * + 24 * + 19 / + 75 / - 39 + + 17 + 45 - - COUNT ( * ) * 95 + - CAST ( NULL AS INTEGER ), 75 AS col0
----
NULL
75

query II rowsort
SELECT + + 76 AS col2, + 93 - 50 * 29 AS col0
----
76
-1357

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1928
SELECT + - 30 * 58 + + 42 DIV + CAST( - 82 AS SIGNED )
----
-1740

skipif mysql # not compatible
query I rowsort label-1928
SELECT + - 30 * 58 + + 42 / + CAST ( - 82 AS INTEGER )
----
-1740

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

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

query II rowsort
SELECT ALL + 66 * 26 - + - 96 + - + 26 * - 84 * - 16 + - - COALESCE ( + 46, - 12 ) col2, + 20 AS col1
----
-33086
20

query II rowsort
SELECT ALL + - 73 AS col0, + 86 AS col0
----
-73
86

query I rowsort
SELECT DISTINCT + + 93 * + 64
----
5952

query II rowsort
SELECT DISTINCT - 50 AS col2, 74 AS col2
----
-50
74

query I rowsort
SELECT ALL - + 92 * + + 13 * + 89 - 69
----
-106513

query I rowsort
SELECT + - 18 * + 75 AS col1
----
-1350

query I rowsort
SELECT ALL + 7 * + 33
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1937
SELECT + + NULLIF ( + - COALESCE ( - 98, + ( - 87 ) ), - - CAST( NULL AS SIGNED ) + - 45 * COALESCE ( 58, 95 ) * SUM( ALL - + 53 ) + - 62 ) - 29 + + 49 + - + CASE 3 WHEN + + 3 THEN + 63 WHEN 80 THEN NULL ELSE NULL END DIV 67
----
118

skipif mysql # not compatible
query I rowsort label-1937
SELECT + + NULLIF ( + - COALESCE ( - 98, + ( - 87 ) ), - - CAST ( NULL AS INTEGER ) + - 45 * COALESCE ( 58, 95 ) * SUM ( ALL - + 53 ) + - 62 ) - 29 + + 49 + - + CASE 3 WHEN + + 3 THEN + 63 WHEN 80 THEN NULL ELSE NULL END / 67
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - ( + 76 ) * + COUNT( * ) * + 69 + 52 AS col1
----
-5192

skipif mysql # not compatible
query I rowsort label-1938
SELECT - ( + 76 ) * + COUNT ( * ) * + 69 + 52 AS col1
----
-5192

query I rowsort
SELECT - - 27 - - 43 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL + NULLIF ( - SUM( + 9 ), - 59 )
----
-9

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL + NULLIF ( - SUM ( + 9 ), - 59 )
----
-9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1942
SELECT - CAST( NULL AS SIGNED ) / + 66 / 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT - CAST ( NULL AS INTEGER ) / + 66 / 35
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1943
SELECT - 10 AS col1, NULLIF ( - + 78, - MAX( DISTINCT 53 ) ) AS col1
----
-10
-78

skipif mysql # not compatible
query II rowsort label-1943
SELECT - 10 AS col1, NULLIF ( - + 78, - MAX ( DISTINCT 53 ) ) AS col1
----
-10
-78

query I rowsort
SELECT ALL + 51 * + 41
----
2091

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL NULLIF ( COUNT( * ), 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL NULLIF ( COUNT ( * ), 31 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - 27 - + + COUNT( * ) + 32 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1946
SELECT - 27 - + + COUNT ( * ) + 32 AS col1
----
4

query II rowsort
SELECT DISTINCT - 79 + 82 AS col2, 48 + 48 col0
----
3
96

query II rowsort
SELECT ALL ( + 33 ) AS col2, - 88
----
33
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-1949
SELECT - 91 + COUNT( * ) AS col1, + 68 + + COUNT( * ) + - MAX( - 48 ) - 70 * + 22 - COUNT( * )
----
-90
-1424

skipif mysql # not compatible
query II rowsort label-1949
SELECT - 91 + COUNT ( * ) AS col1, + 68 + + COUNT ( * ) + - MAX ( - 48 ) - 70 * + 22 - COUNT ( * )
----
-90
-1424

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT - ( - COUNT( * ) ) + NULLIF ( + - 60, ( - AVG ( - 83 ) ) )
----
-59

skipif mysql # not compatible
query I rowsort label-1950
SELECT - ( - COUNT ( * ) ) + NULLIF ( + - 60, ( - AVG ( - 83 ) ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - ( 67 ) * + COUNT( * ) * - ( 90 ) + + 1
----
6031

skipif mysql # not compatible
query I rowsort label-1951
SELECT - ( 67 ) * + COUNT ( * ) * - ( 90 ) + + 1
----
6031

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT DISTINCT + 73 DIV + + 96 * 62 + - 37 col2
----
-37

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT + 73 / + + 96 * 62 + - 37 col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL + 89 * - - COUNT( * ) * - - 44 AS col1
----
3916

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + 89 * - - COUNT ( * ) * - - 44 AS col1
----
3916

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1954
SELECT DISTINCT 27 DIV - CAST( + 36 AS SIGNED ) + + 76 AS col1, 53
----
76
53

skipif mysql # not compatible
query II rowsort label-1954
SELECT DISTINCT 27 / - CAST ( + 36 AS INTEGER ) + + 76 AS col1, 53
----
76
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT DISTINCT + MAX( ALL + 74 ) * + - 84
----
-6216

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT + MAX ( ALL + 74 ) * + - 84
----
-6216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1956
SELECT DISTINCT - 96 / + 34 + 53 + - ( - 26 ) + + 50 + + CAST( NULL AS SIGNED ) * + COUNT( * ) * + 88 + - 42 * - SUM( ALL - - ( + 35 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - 96 / + 34 + 53 + - ( - 26 ) + + 50 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 88 + - 42 * - SUM ( ALL - - ( + 35 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1957
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + 47 * 4 + - 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + 47 * 4 + - 32 col1
----
NULL

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

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

query I rowsort
SELECT - 47 + 5
----
-42

query I rowsort
SELECT DISTINCT + 46 - 78 AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT - + MAX( ALL + 26 ) * - + ( - 65 ) - 99 AS col1
----
-1789

skipif mysql # not compatible
query I rowsort label-1961
SELECT - + MAX ( ALL + 26 ) * - + ( - 65 ) - 99 AS col1
----
-1789

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

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + COUNT ( * ) / + + 87 * + 92 * + - 65 AS col2
----
0

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

query I rowsort
SELECT ALL - 22 * + + COALESCE ( 78, + 18 + - 46 ) AS col1
----
-1716

query I rowsort
SELECT 39 * + - 19
----
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT - COUNT( * ) * - SUM( ALL - 56 ) * + - 82 * + 1 * - - 14 AS col0
----
64288

skipif mysql # not compatible
query I rowsort label-1966
SELECT - COUNT ( * ) * - SUM ( ALL - 56 ) * + - 82 * + 1 * - - 14 AS col0
----
64288

query I rowsort
SELECT ALL 7 * + 55
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT + 82 * + - COUNT( * ) + - 44 + NULLIF ( - + COALESCE ( - + 75, + + 67 + - 23, - + 10 + + 96 ), - COUNT( DISTINCT + + 22 ) ) - 13 + - + 32 * + 22 - + - COUNT( * )
----
-767

skipif mysql # not compatible
query I rowsort label-1968
SELECT + 82 * + - COUNT ( * ) + - 44 + NULLIF ( - + COALESCE ( - + 75, + + 67 + - 23, - + 10 + + 96 ), - COUNT ( DISTINCT + + 22 ) ) - 13 + - + 32 * + 22 - + - COUNT ( * )
----
-767

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT - 60 + + 76 DIV + + 78 + 55 * - 13 AS col1
----
-775

skipif mysql # not compatible
query I rowsort label-1969
SELECT - 60 + + 76 / + + 78 + 55 * - 13 AS col1
----
-775

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL ( + + COALESCE ( - ( + COUNT( * ) ), - 42 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL ( + + COALESCE ( - ( + COUNT ( * ) ), - 42 ) ) AS col2
----
-1

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

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

query I rowsort
SELECT + 26 + 62 AS col2
----
88

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

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL 9 / + COUNT ( * )
----
9

query I rowsort
SELECT 97 + + 41 + - 27 * + - 78 + + 51 + - 63
----
2232

query II rowsort
SELECT - 70, NULLIF ( + 5, + + 79 ) + - COALESCE ( 26, + + 63, + 53 ) * - - ( 84 ) AS col2
----
-70
-2179

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT 6 DIV - + 41 * - ( + 37 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1976
SELECT 6 / - + 41 * - ( + 37 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( - + 86, + 21 ) + 72 * + 60 AS col0
----
4406

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT 96 DIV 66 col1
----
1

skipif mysql # not compatible
query I rowsort label-1978
SELECT 96 / 66 col1
----
1

query I rowsort
SELECT ALL - 30 + 48
----
18

query I rowsort
SELECT 3 * 86 * - + 64
----
-16512

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT DISTINCT - 48 + - - COUNT( * ) - - + COALESCE ( + 13, - 45 )
----
-34

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT - 48 + - - COUNT ( * ) - - + COALESCE ( + 13, - 45 )
----
-34

query I rowsort
SELECT 19 + 92
----
111

query I rowsort
SELECT DISTINCT + 85 + + 98
----
183

query I rowsort
SELECT 93 * 28 * + 72
----
187488

query I rowsort
SELECT 2 * - - 32 AS col2
----
64

query I rowsort
SELECT DISTINCT - CASE - 61 WHEN + 31 THEN + 16 + - + 31 * - 90 * - - 86 END
----
NULL

query I rowsort
SELECT DISTINCT - 40 * - 20
----
800

query I rowsort
SELECT DISTINCT + ( 48 ) - + 88 * 19 AS col0
----
-1624

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1990
SELECT ALL - + 51 * 47 * - - 66 - - CAST( + ( 98 ) AS SIGNED ) DIV 51
----
-158201

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL - + 51 * 47 * - - 66 - - CAST ( + ( 98 ) AS INTEGER ) / 51
----
-158201

query II rowsort
SELECT + 15 AS col1, 6
----
15
6

query I rowsort
SELECT DISTINCT - 73 * + - 21
----
1533

query II rowsort
SELECT ALL - - 25 AS col1, - 54 + + ( 81 ) AS col2
----
25
27

query I rowsort
SELECT 82 + 23 AS col0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-1995
SELECT ALL - 41 DIV + 57 col2
----
0

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL - 41 / + 57 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1996
SELECT 31 DIV - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1996
SELECT 31 / - 59 AS col0
----
0

query II rowsort
SELECT + 55 AS col1, - 56
----
55
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL + - SUM( + - 42 ) + + 74 + 9
----
125

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL + - SUM ( + - 42 ) + + 74 + 9
----
125

query I rowsort
SELECT ALL + 50 + + 45 AS col0
----
95

query II rowsort
SELECT ALL 54 + - CASE 97 WHEN - 36 THEN - 19 WHEN - + 84 THEN NULL ELSE NULL END * ( + + 47 ) * - 77 - + + 85 AS col2, 20 AS col2
----
NULL
20

query I rowsort
SELECT ALL ( + + ( 82 ) ) + + 16
----
98

query I rowsort
SELECT DISTINCT 68 * 24 col2
----
1632

onlyif mysql # aggregate syntax: 
query II rowsort label-2003
SELECT - 9 col0, CASE - - COUNT( - 22 ) WHEN + + 67 * - 16 * 25 THEN NULL ELSE + 64 END AS col1
----
-9
64

skipif mysql # not compatible
query II rowsort label-2003
SELECT - 9 col0, CASE - - COUNT ( - 22 ) WHEN + + 67 * - 16 * 25 THEN NULL ELSE + 64 END AS col1
----
-9
64

query I rowsort
SELECT 97 * - + 16
----
-1552

query II rowsort
SELECT 68 - + - 73 + - - 59 * 91 + 91 - + 45, 99 AS col1
----
5556
99

query I rowsort
SELECT ALL 62 + + + 51 AS col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT SUM( DISTINCT 53 ) + + + 77 col1
----
130

skipif mysql # not compatible
query I rowsort label-2007
SELECT SUM ( DISTINCT 53 ) + + + 77 col1
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-2008
SELECT 97 AS col1, COUNT( * ) * + + 70 AS col2
----
97
70

skipif mysql # not compatible
query II rowsort label-2008
SELECT 97 AS col1, COUNT ( * ) * + + 70 AS col2
----
97
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2009
SELECT ALL 56 + - 30 * 61 * 45 * 40 + COUNT( * ) DIV + 98 + - 66
----
-3294010

skipif mysql # not compatible
query I rowsort label-2009
SELECT ALL 56 + - 30 * 61 * 45 * 40 + COUNT ( * ) / + 98 + - 66
----
-3294010

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

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

query I rowsort
SELECT ALL 26 + + + 74 + 0
----
100

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2013
SELECT ALL CASE - + ( + 55 ) WHEN + CASE - + 40 WHEN - COUNT( * ) THEN NULL ELSE + - 36 END THEN NULL WHEN - + 66 THEN NULL WHEN 83 THEN 42 ELSE NULL END - + + NULLIF ( + - 14, - 15 ) + + COALESCE ( 3, + 26 * - CAST( - 90 AS SIGNED ) * - COALESCE ( - - CAST( NULL AS SIGNED ), ( + + 61 ), 36 ) + - 54 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL CASE - + ( + 55 ) WHEN + CASE - + 40 WHEN - COUNT ( * ) THEN NULL ELSE + - 36 END THEN NULL WHEN - + 66 THEN NULL WHEN 83 THEN 42 ELSE NULL END - + + NULLIF ( + - 14, - 15 ) + + COALESCE ( 3, + 26 * - CAST ( - 90 AS INTEGER ) * - COALESCE ( - - CAST ( NULL AS INTEGER ), ( + + 61 ), 36 ) + - 54 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2014
SELECT DISTINCT 55 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT 55 / 76
----
0

query I rowsort
SELECT 31 + + - 94 * - 83
----
7833

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2017
SELECT ALL MAX( ALL - 66 ) * + + ( - - 25 ) + - 30 DIV - 1, 85 AS col2
----
-1620
85

skipif mysql # not compatible
query II rowsort label-2017
SELECT ALL MAX ( ALL - 66 ) * + + ( - - 25 ) + - 30 / - 1, 85 AS col2
----
-1620
85

query I rowsort
SELECT + 54 + - 63 AS col2
----
-9

query II rowsort
SELECT 21 AS col2, + 27 AS col0
----
21
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2021
SELECT DISTINCT COUNT( * ) AS col0, - 49 * + 32 * - 27 AS col2
----
1
42336

skipif mysql # not compatible
query II rowsort label-2021
SELECT DISTINCT COUNT ( * ) AS col0, - 49 * + 32 * - 27 AS col2
----
1
42336

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL COUNT( 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL COUNT ( 11 ) AS col2
----
1

query II rowsort
SELECT ALL + 38 col2, 22 AS col0
----
38
22

query I rowsort
SELECT - + 3 * + 48 + + 53
----
-91

query I rowsort
SELECT - 79 * - 34 AS col1
----
2686

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT - 40 / - - 66 * - - 32 * 50 + - + 14 * - CASE COUNT( * ) WHEN 76 THEN - - 72 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT - 40 / - - 66 * - - 32 * 50 + - + 14 * - CASE COUNT ( * ) WHEN 76 THEN - - 72 END AS col0
----
NULL

query II rowsort
SELECT ALL + 87 AS col1, - 77
----
87
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT + COUNT( * ) * + CASE + - 24 WHEN + - 54 THEN NULL WHEN + - COUNT( * ) THEN - 4 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT + COUNT ( * ) * + CASE + - 24 WHEN + - 54 THEN NULL WHEN + - COUNT ( * ) THEN - 4 END * COUNT ( * )
----
NULL

query II rowsort
SELECT + + 74 AS col0, - 2 AS col2
----
74
-2

query I rowsort
SELECT - - 89 + + - 47
----
42

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

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

query II rowsort
SELECT - + 14 + + 46, ( + 80 ) AS col2
----
32
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2033
SELECT COUNT( * ) * - 53 DIV - SUM( - 90 ) + 9 + - 53 AS col0, + 29 + + + 31 - + 78 AS col2
----
-44
-18

skipif mysql # not compatible
query II rowsort label-2033
SELECT COUNT ( * ) * - 53 / - SUM ( - 90 ) + 9 + - 53 AS col0, + 29 + + + 31 - + 78 AS col2
----
-44
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL - - 6 * - SUM( - 38 ) AS col2
----
228

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL - - 6 * - SUM ( - 38 ) AS col2
----
228

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

query I rowsort
SELECT ALL - 31 * 67 + + 16
----
-2061

query II rowsort
SELECT ALL + 35 AS col0, - 25 + + - 25
----
35
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT - 8 + + 7 * CAST( - 24 AS SIGNED ) + + - 35
----
-211

skipif mysql # not compatible
query I rowsort label-2038
SELECT - 8 + + 7 * CAST ( - 24 AS INTEGER ) + + - 35
----
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT 87 * 57 + 50 * - 55 + COALESCE ( - + COUNT( * ), 56 )
----
2208

skipif mysql # not compatible
query I rowsort label-2039
SELECT 87 * 57 + 50 * - 55 + COALESCE ( - + COUNT ( * ), 56 )
----
2208

query II rowsort
SELECT ALL 39 * 6 * - 16 + + ( + + 77 ) - 30 col1, 35 AS col1
----
-3697
35

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

skipif mysql # not compatible
query I rowsort label-2041
SELECT - + COUNT ( * ) + 55 AS col0
----
54

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

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

query I rowsort
SELECT ALL 66 * 54 + - 61
----
3503

query I rowsort
SELECT - 68 + - - ( - 46 ) * + - 22 AS col0
----
944

query I rowsort
SELECT 29 * - 14 + 77
----
-329

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2047
SELECT DISTINCT + COUNT( * ) + - 16 + 7 * + - 4 + - 8 DIV + 28 * + 31
----
-43

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT + COUNT ( * ) + - 16 + 7 * + - 4 + - 8 / + 28 * + 31
----
-43

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT DISTINCT 67 - - + 33 * - CAST( NULL AS SIGNED ) * 83
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2050
SELECT + 91 + - + 56 AS col0, 32 + CAST( NULL AS SIGNED )
----
35
NULL

skipif mysql # not compatible
query II rowsort label-2050
SELECT + 91 + - + 56 AS col0, 32 + CAST ( NULL AS INTEGER )
----
35
NULL

query I rowsort
SELECT DISTINCT 14 * + 20
----
280

query I rowsort
SELECT ALL ( 92 ) * - 41 + 1
----
-3771

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT - ( + NULLIF ( - CASE + 62 WHEN 95 THEN NULL WHEN - - 68 THEN - - 4 * - 5 WHEN COUNT( * ) THEN NULL ELSE NULL END, + COUNT( * ) + + + 95 + + + COUNT( * ) - - NULLIF ( - 78, 72 ) - CASE - + 21 WHEN - COUNT( ALL + 51 ) THEN NULL ELSE + ( - CASE 36 WHEN + 85 + + 28 THEN NULL ELSE 31 * - 41 * - - COALESCE ( + 81, - - COUNT( * ) * - - MAX( 44 ) + 48 * + 67, - 0 ) END ) END * + - 60 + 68 * - - 32 ) ) AS col0, 67 * - + 56 AS col1
----
NULL
-3752

skipif mysql # not compatible
query II rowsort label-2053
SELECT - ( + NULLIF ( - CASE + 62 WHEN 95 THEN NULL WHEN - - 68 THEN - - 4 * - 5 WHEN COUNT ( * ) THEN NULL ELSE NULL END, + COUNT ( * ) + + + 95 + + + COUNT ( * ) - - NULLIF ( - 78, 72 ) - CASE - + 21 WHEN - COUNT ( ALL + 51 ) THEN NULL ELSE + ( - CASE 36 WHEN + 85 + + 28 THEN NULL ELSE 31 * - 41 * - - COALESCE ( + 81, - - COUNT ( * ) * - - MAX ( 44 ) + 48 * + 67, - 0 ) END ) END * + - 60 + 68 * - - 32 ) ) AS col0, 67 * - + 56 AS col1
----
NULL
-3752

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2054
SELECT + 60 + + + 44 + - COUNT( * ) * - - 87 + + 26 DIV + 79 * + + 83 * + 1 AS col0, ( - 25 ) AS col2
----
17
-25

skipif mysql # not compatible
query II rowsort label-2054
SELECT + 60 + + + 44 + - COUNT ( * ) * - - 87 + + 26 / + 79 * + + 83 * + 1 AS col0, ( - 25 ) AS col2
----
17
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL COUNT( * ) * ( 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL COUNT ( * ) * ( 0 ) col2
----
0

query I rowsort
SELECT + 24 * - 72 * + 9 * + 12 AS col1
----
-186624

query I rowsort
SELECT DISTINCT + - ( + - 85 ) * + - 52
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT + - ( - COUNT( * ) ) + CASE + 22 WHEN - 22 + 68 THEN NULL ELSE - MAX( ALL 31 ) + - 98 * - 82 * 38 END col1
----
305338

skipif mysql # not compatible
query I rowsort label-2059
SELECT + - ( - COUNT ( * ) ) + CASE + 22 WHEN - 22 + 68 THEN NULL ELSE - MAX ( ALL 31 ) + - 98 * - 82 * 38 END col1
----
305338

onlyif mysql # DIV for integer division: 
query I rowsort label-2060
SELECT + - 35 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-2060
SELECT + - 35 / - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT + + COUNT( * ) * + ( + - 35 ) * + - 27 - - 26 AS col1
----
971

skipif mysql # not compatible
query I rowsort label-2061
SELECT + + COUNT ( * ) * + ( + - 35 ) * + - 27 - - 26 AS col1
----
971

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2062
SELECT ALL + COUNT( * ) DIV - - COALESCE ( - ( + CAST( NULL AS SIGNED ) ), - 17 + + + 22 ) * + + 42 * + + 48 - 20 - + COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL + COUNT ( * ) / - - COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), - 17 + + + 22 ) * + + 42 * + + 48 - 20 - + COUNT ( * ) AS col2
----
-21

query I rowsort
SELECT ALL + COALESCE ( - 57, + 3, + 58 ) col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT 60 / - 21 - + CASE 97 WHEN 32 + COUNT( - - NULLIF ( + 98, - 47 ) ) THEN NULL WHEN - 46 THEN 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT 60 / - 21 - + CASE 97 WHEN 32 + COUNT ( - - NULLIF ( + 98, - 47 ) ) THEN NULL WHEN - 46 THEN 85 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT DISTINCT ( - - 54 ) DIV ( + 98 ) + + + 68 * - - 89
----
6052

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT ( - - 54 ) / ( + 98 ) + + + 68 * - - 89
----
6052

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2066
SELECT + 43 DIV + COALESCE ( - + 80, + 9 ) * + 46 AS col2, - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-2066
SELECT + 43 / + COALESCE ( - + 80, + 9 ) * + 46 AS col2, - COUNT ( * ) AS col2
----
0
-1

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

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL + ( - - 43 ) / COUNT ( * ) + + 17 AS col0
----
60

query I rowsort
SELECT DISTINCT + 72 * - + 58
----
-4176

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

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

query II rowsort
SELECT + + 17 - ( 75 ) col0, + 22 col2
----
-58
22

query I rowsort
SELECT + NULLIF ( - - 19, 73 ) AS col0
----
19

query I rowsort
SELECT ALL + 83 * + 40 + 82
----
3402

query I rowsort
SELECT + - CASE 83 WHEN - - 5 / - 97 THEN NULL WHEN + 7 THEN NULL WHEN - 14 THEN NULL ELSE - 98 END
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT ALL 24 * + CAST( NULL AS SIGNED ) + CAST( 44 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT ALL 24 * + CAST ( NULL AS INTEGER ) + CAST ( 44 AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT COALESCE ( + 88, + - 29 DIV 8 * + 82 + - - 91 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2075
SELECT COALESCE ( + 88, + - 29 / 8 * + 82 + - - 91 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL - 14 * - - 5 - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - 14 * - - 5 - COUNT ( * )
----
-71

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2078
SELECT ALL + 61 * - + 54 DIV - ( - COUNT( * ) )
----
-3294

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + 61 * - + 54 / - ( - COUNT ( * ) )
----
-3294

onlyif mysql # aggregate syntax: 
query II rowsort label-2079
SELECT - ( + + 19 ) + + ( - COUNT( * ) ) AS col0, 85 AS col0
----
-20
85

skipif mysql # not compatible
query II rowsort label-2079
SELECT - ( + + 19 ) + + ( - COUNT ( * ) ) AS col0, 85 AS col0
----
-20
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT - MAX( DISTINCT - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-2080
SELECT - MAX ( DISTINCT - 45 ) AS col2
----
45

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2082
SELECT DISTINCT + 26 * + COALESCE ( CASE 71 WHEN - 82 THEN - + 7 END, + - 21 + - COUNT( * ) + + 14 * - - 87 * 2 + + + CAST( 98 AS SIGNED ) * + 63 ) AS col0
----
223288

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT + 26 * + COALESCE ( CASE 71 WHEN - 82 THEN - + 7 END, + - 21 + - COUNT ( * ) + + 14 * - - 87 * 2 + + + CAST ( 98 AS INTEGER ) * + 63 ) AS col0
----
223288

query II rowsort
SELECT ALL 30 col2, 34
----
30
34

query I rowsort
SELECT DISTINCT + 17 - - 47
----
64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2085
SELECT NULLIF ( + NULLIF ( + + CAST( NULL AS SIGNED ), CAST( - 75 AS DECIMAL ) ), - 46 * - 35 + - 95 ) * + - 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT NULLIF ( + NULLIF ( + + CAST ( NULL AS INTEGER ), CAST ( - 75 AS REAL ) ), - 46 * - 35 + - 95 ) * + - 32 col1
----
NULL

query II rowsort
SELECT ALL 88 col0, + 75
----
88
75

query II rowsort
SELECT DISTINCT 90 AS col1, + 12 AS col0
----
90
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT COUNT( * ) + + ( - MAX( ALL 21 ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-2088
SELECT COUNT ( * ) + + ( - MAX ( ALL 21 ) ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL 19 * - COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL 19 * - COUNT ( * ) AS col2
----
-19

query I rowsort
SELECT NULLIF ( + 58, 76 ) - + 9 AS col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT ALL + 99 DIV + 27 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + 99 / + 27 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT COUNT( * ) + - + ( - + 31 ) col0
----
32

skipif mysql # not compatible
query I rowsort label-2092
SELECT COUNT ( * ) + - + ( - + 31 ) col0
----
32

query II rowsort
SELECT ALL 53 AS col2, 95 AS col2
----
53
95

query I rowsort
SELECT ALL 13 * 28
----
364

onlyif mysql # aggregate syntax: 
query III rowsort label-2095
SELECT - 55 AS col2, - COUNT( DISTINCT ( - - 73 ) ), + ( - - 69 ) AS col0
----
-55
-1
69

skipif mysql # not compatible
query III rowsort label-2095
SELECT - 55 AS col2, - COUNT ( DISTINCT ( - - 73 ) ), + ( - - 69 ) AS col0
----
-55
-1
69

query I rowsort
SELECT DISTINCT + 27 + 30
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT 11 DIV + + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2097
SELECT 11 / + + 78 AS col2
----
0

query I rowsort
SELECT ALL 30 + - - COALESCE ( - - 73, 86 ) + 22
----
125

query I rowsort
SELECT 60 + + 92
----
152

query I rowsort
SELECT - 88 - 21
----
-109

query II rowsort
SELECT - - 91, + COALESCE ( - 98, 36, - 57 ) col2
----
91
-98

query I rowsort
SELECT ALL + - 73 + 14
----
-59

query I rowsort
SELECT ALL - 12 + + - 77 AS col2
----
-89

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

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

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

query I rowsort
SELECT ALL 46 + + 58 col0
----
104

query I rowsort
SELECT 8 * + 21
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-2108
SELECT NULLIF ( + 24, - 65 ), - MAX( 67 ) AS col1
----
24
-67

skipif mysql # not compatible
query II rowsort label-2108
SELECT NULLIF ( + 24, - 65 ), - MAX ( 67 ) AS col1
----
24
-67

query I rowsort
SELECT DISTINCT + 85 - 78 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL - - MAX( ALL 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL - - MAX ( ALL 67 ) AS col0
----
67

query I rowsort
SELECT + + 57 * + - 13 * + 17 + - ( + CASE - ( - ( - + 27 ) ) WHEN - 87 THEN NULL WHEN 63 THEN + AVG ( - 28 ) END ) * 47 * - + 44 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT DISTINCT 31 - + 7 + + 1 - 74 + - 36 - + 1 * + 40 * - 64 * + SUM( ALL ( + - 30 ) ) AS col2
----
-76885

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT 31 - + 7 + + 1 - 74 + - 36 - + 1 * + 40 * - 64 * + SUM ( ALL ( + - 30 ) ) AS col2
----
-76885

query I rowsort
SELECT 66 * + - 60 + 6 AS col0
----
-3954

query I rowsort
SELECT DISTINCT 45 * 8 AS col2
----
360

query II rowsort
SELECT 12 + - - 13, 14 * 78 AS col1
----
25
1092

query I rowsort
SELECT 86 * + + 40 AS col2
----
3440

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT 22 + - + 36 - - COUNT( ALL + 92 ) * + 50 * 87 AS col0
----
4336

skipif mysql # not compatible
query I rowsort label-2117
SELECT 22 + - + 36 - - COUNT ( ALL + 92 ) * + 50 * 87 AS col0
----
4336

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT - NULLIF ( + 41, + 2 - - MIN( DISTINCT - - 64 ) ) * 94 * - 0 + - + 52 * - + 3
----
156

skipif mysql # not compatible
query I rowsort label-2118
SELECT - NULLIF ( + 41, + 2 - - MIN ( DISTINCT - - 64 ) ) * 94 * - 0 + - + 52 * - + 3
----
156

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2120
SELECT DISTINCT - 85 DIV + - 69, 77 AS col0
----
1
77

skipif mysql # not compatible
query II rowsort label-2120
SELECT DISTINCT - 85 / + - 69, 77 AS col0
----
1
77

query I rowsort
SELECT 47 + + 56 AS col2
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2122
SELECT DISTINCT + ( - 44 ) * - - COALESCE ( - - 81, + 39 + + SUM( 83 ) DIV - - ( - + 41 ) * - 75, - 78 ) * ( 16 ) AS col1
----
-57024

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT + ( - 44 ) * - - COALESCE ( - - 81, + 39 + + SUM ( 83 ) / - - ( - + 41 ) * - 75, - 78 ) * ( 16 ) AS col1
----
-57024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2123
SELECT DISTINCT + 86 * 94 AS col0, CASE - 41 WHEN 34 * + + 91 THEN - 76 / - NULLIF ( + - 13, MAX( DISTINCT + 91 ) + + CAST( + CASE 60 WHEN 59 THEN NULL WHEN 21 THEN + 61 * 11 WHEN CASE CASE 38 WHEN - 19 * 89 THEN MIN( ALL 52 ) ELSE + 32 + + CAST( + NULLIF ( - - COUNT( * ), - + 25 + - 54 + + + 58 * + 36 * + 64 * - + 31 ) AS SIGNED ) END WHEN + NULLIF ( 29, + 61 ) THEN - 14 + + SUM( ALL - - 63 ) WHEN 31 THEN NULL WHEN - ( - 0 ) THEN NULL END THEN 79 ELSE + 88 END AS SIGNED ) * 17 * + 37 + + 62 + ( + 95 ) * ( + 85 ) * 87 ) * + 91 + + 99 * - 55 WHEN - 81 THEN 2 END
----
8084
NULL

skipif mysql # not compatible
query II rowsort label-2123
SELECT DISTINCT + 86 * 94 AS col0, CASE - 41 WHEN 34 * + + 91 THEN - 76 / - NULLIF ( + - 13, MAX ( DISTINCT + 91 ) + + CAST ( + CASE 60 WHEN 59 THEN NULL WHEN 21 THEN + 61 * 11 WHEN CASE CASE 38 WHEN - 19 * 89 THEN MIN ( ALL 52 ) ELSE + 32 + + CAST ( + NULLIF ( - - COUNT ( * ), - + 25 + - 54 + + + 58 * + 36 * + 64 * - + 31 ) AS INTEGER ) END WHEN + NULLIF ( 29, + 61 ) THEN - 14 + + SUM ( ALL - - 63 ) WHEN 31 THEN NULL WHEN - ( - 0 ) THEN NULL END THEN 79 ELSE + 88 END AS INTEGER ) * 17 * + 37 + + 62 + ( + 95 ) * ( + 85 ) * 87 ) * + 91 + + 99 * - 55 WHEN - 81 THEN 2 END
----
8084
NULL

query I rowsort
SELECT 47 + + CASE - + 62 WHEN + - 26 THEN 80 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2125
SELECT ALL + CAST( NULL AS SIGNED ) + - ( + + 94 ) + 33 + - 45 - + 95 * - - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL + CAST ( NULL AS INTEGER ) + - ( + + 94 ) + 33 + - 45 - + 95 * - - 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT 66 * - NULLIF ( + - 60, 97 / + 21 ) * - COUNT( * ) AS col2
----
-3960

skipif mysql # not compatible
query I rowsort label-2126
SELECT 66 * - NULLIF ( + - 60, 97 / + 21 ) * - COUNT ( * ) AS col2
----
-3960

query I rowsort
SELECT ALL - 77 + - 71 AS col2
----
-148

query I rowsort
SELECT 13 + - 90
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT ALL - NULLIF ( 92, - 48 / 71 * CAST( NULL AS SIGNED ) - - ( 22 ) * - CAST( NULL AS SIGNED ) )
----
-92

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - NULLIF ( 92, - 48 / 71 * CAST ( NULL AS INTEGER ) - - ( 22 ) * - CAST ( NULL AS INTEGER ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT 75 * 38 * - + COALESCE ( - - COUNT( * ), SUM( ( - 52 ) ), + COUNT( ALL - 81 ) )
----
-2850

skipif mysql # not compatible
query I rowsort label-2130
SELECT 75 * 38 * - + COALESCE ( - - COUNT ( * ), SUM ( ( - 52 ) ), + COUNT ( ALL - 81 ) )
----
-2850

query II rowsort
SELECT ALL - 63 + NULLIF ( + ( - 19 ), - 57 ), 75 AS col2
----
-82
75

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

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

query II rowsort
SELECT ALL + 83 + 85, 31 col0
----
168
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2134
SELECT ALL - + 8 + + 17 DIV 38 DIV - 82 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL - + 8 + + 17 / 38 / - 82 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT - NULLIF ( + COUNT( * ), ( + COALESCE ( + 92, - 77 * + + 65 + + 51, COUNT( * ) ) ) ) - - 29 * - 51 AS col1
----
-1480

skipif mysql # not compatible
query I rowsort label-2135
SELECT - NULLIF ( + COUNT ( * ), ( + COALESCE ( + 92, - 77 * + + 65 + + 51, COUNT ( * ) ) ) ) - - 29 * - 51 AS col1
----
-1480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT NULLIF ( 55, + 29 ) * + 44 + MIN( 71 ) - 59 + - - 16 * - 16 * 96 + + 2 + - ( - 17 ) + + 74 + - 5 * 57 AS col1
----
-22336

skipif mysql # not compatible
query I rowsort label-2137
SELECT NULLIF ( 55, + 29 ) * + 44 + MIN ( 71 ) - 59 + - - 16 * - 16 * 96 + + 2 + - ( - 17 ) + + 74 + - 5 * 57 AS col1
----
-22336

onlyif mysql # aggregate syntax: 
query II rowsort label-2138
SELECT DISTINCT - - 3 * - 66, 96 + - 36 + COUNT( * ) AS col0
----
-198
61

skipif mysql # not compatible
query II rowsort label-2138
SELECT DISTINCT - - 3 * - 66, 96 + - 36 + COUNT ( * ) AS col0
----
-198
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT ALL + - AVG ( ALL + 26 ) * 6 - - 52 * 10 / CASE COUNT( * ) WHEN + SUM( 21 ) THEN + - 14 * - - 7 - - + 26 + + - 92 + - 39 + 87 + - + CASE 46 WHEN - + ( - + CASE - - 98 WHEN + 78 THEN - 28 WHEN - 55 / - 96 * - 14 THEN + ( - 84 ) END ) THEN + 80 + + 57 END * - 65 + MAX( - 59 ) END * + 4 + + NULLIF ( + COUNT( ALL - 42 ), 45 ) AS col1, - 0 + SUM( ALL + 4 ) col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-2139
SELECT ALL + - AVG ( ALL + 26 ) * 6 - - 52 * 10 / CASE COUNT ( * ) WHEN + SUM ( 21 ) THEN + - 14 * - - 7 - - + 26 + + - 92 + - 39 + 87 + - + CASE 46 WHEN - + ( - + CASE - - 98 WHEN + 78 THEN - 28 WHEN - 55 / - 96 * - 14 THEN + ( - 84 ) END ) THEN + 80 + + 57 END * - 65 + MAX ( - 59 ) END * + 4 + + NULLIF ( + COUNT ( ALL - 42 ), 45 ) AS col1, - 0 + SUM ( ALL + 4 ) col1
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT COALESCE ( + ( + - 87 ), + MIN( 37 ), + 93 ) - + + 76
----
-163

skipif mysql # not compatible
query I rowsort label-2140
SELECT COALESCE ( + ( + - 87 ), + MIN ( 37 ), + 93 ) - + + 76
----
-163

query I rowsort
SELECT + 62 * - + 41
----
-2542

query I rowsort
SELECT + 68 * 45 AS col0
----
3060

query I rowsort
SELECT DISTINCT 91 * + 60 AS col0
----
5460

onlyif mysql # aggregate syntax: 
query II rowsort label-2144
SELECT ALL + 76 AS col1, 79 * - MAX( 99 )
----
76
-7821

skipif mysql # not compatible
query II rowsort label-2144
SELECT ALL + 76 AS col1, 79 * - MAX ( 99 )
----
76
-7821

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT + CASE ( COUNT( * ) ) WHEN + + 37 THEN 52 WHEN CASE 80 WHEN + NULLIF ( 57, 10 ) THEN NULL ELSE + 64 END * - ( 10 ) THEN NULL ELSE + 17 END
----
17

skipif mysql # not compatible
query I rowsort label-2145
SELECT + CASE ( COUNT ( * ) ) WHEN + + 37 THEN 52 WHEN CASE 80 WHEN + NULLIF ( 57, 10 ) THEN NULL ELSE + 64 END * - ( 10 ) THEN NULL ELSE + 17 END
----
17

query I rowsort
SELECT ALL 26 * + - 72
----
-1872

query I rowsort
SELECT + 32 * - 27 * + 14
----
-12096

query I rowsort
SELECT ALL 43 * + + 62
----
2666

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT + NULLIF ( - + CASE WHEN NOT 6 IS NOT NULL THEN + 72 + - COUNT( * ) END, + 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT + NULLIF ( - + CASE WHEN NOT 6 IS NOT NULL THEN + 72 + - COUNT ( * ) END, + 17 ) AS col2
----
NULL

query I rowsort
SELECT + 72 + + 85
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-2151
SELECT ALL + 36 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL + 36 / + 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL - 82 + - - ( CASE 43 WHEN - AVG ( 16 ) THEN + 8 ELSE NULL END ) - ( - SUM( - - 95 ) ) + 68 * - + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL - 82 + - - ( CASE 43 WHEN - AVG ( 16 ) THEN + 8 ELSE NULL END ) - ( - SUM ( - - 95 ) ) + 68 * - + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT 46 * - + ( 1 ) * COUNT( * ) * + + 9 + COALESCE ( + + 81, + 6 )
----
-333

skipif mysql # not compatible
query I rowsort label-2153
SELECT 46 * - + ( 1 ) * COUNT ( * ) * + + 9 + COALESCE ( + + 81, + 6 )
----
-333

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2155
SELECT ALL + 10 + + 27 DIV COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + 10 + + 27 / COUNT ( * )
----
37

query I rowsort
SELECT ALL - 46 + 57 * 41 col0
----
2291

query I rowsort
SELECT - 12 + - 89 AS col1
----
-101

query I rowsort
SELECT ALL - 37 * 62 AS col0
----
-2294

query I rowsort
SELECT DISTINCT - 65 + + 68 * - 80
----
-5505

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT DISTINCT MAX( 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT MAX ( 4 ) AS col0
----
4

query I rowsort
SELECT ALL - 47 - - 92
----
45

query I rowsort
SELECT - ( 28 ) + + 90
----
62

query I rowsort
SELECT ALL CASE + 79 WHEN - 56 / + COALESCE ( + 3 * 77, - 33 + NULLIF ( + 93, 41 * - 51 ) * 88, ( ( 49 ) ) * 51 ) THEN 83 * 70 END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 78, + 85 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - COUNT( * ) + 20 * 10
----
199

skipif mysql # not compatible
query I rowsort label-2165
SELECT - COUNT ( * ) + 20 * 10
----
199

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

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

query I rowsort
SELECT DISTINCT ( ( + 37 ) ) AS col1
----
37

query I rowsort
SELECT DISTINCT ( 69 ) AS col2
----
69

query I rowsort
SELECT ALL - ( 9 ) * + 65 AS col2
----
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT - 98 DIV 15 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2170
SELECT - 98 / 15 AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT + 2 DIV + 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT + 2 / + 8 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2172
SELECT 3 DIV - 28 + 71 * + 91 AS col2
----
6461

skipif mysql # not compatible
query I rowsort label-2172
SELECT 3 / - 28 + 71 * + 91 AS col2
----
6461

onlyif mysql # DIV for integer division: 
query I rowsort label-2173
SELECT - ( 5 ) DIV - 25 col1
----
0

skipif mysql # not compatible
query I rowsort label-2173
SELECT - ( 5 ) / - 25 col1
----
0

query I rowsort
SELECT + 68 * 38 AS col1
----
2584

query I rowsort
SELECT - 80 + - 5
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2176
SELECT - 93 * + CASE ( 15 ) * 43 WHEN 48 THEN NULL WHEN 91 THEN AVG ( NULLIF ( + 95, 2 ) ) + + 33 * 44 END - 13 / CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2176
SELECT - 93 * + CASE ( 15 ) * 43 WHEN 48 THEN NULL WHEN 91 THEN AVG ( NULLIF ( + 95, 2 ) ) + + 33 * 44 END - 13 / CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT + ( 24 ) * 30 AS col2
----
720

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

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

query I rowsort
SELECT - 93 * - 29 + 57 AS col2
----
2754

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2181
SELECT 40 DIV CASE + 64 * 83 WHEN CAST( COUNT( * ) AS SIGNED ) * + 25 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 78 END + SUM( ALL 78 ) * 36 AS col2
----
2808

skipif mysql # not compatible
query I rowsort label-2181
SELECT 40 / CASE + 64 * 83 WHEN CAST ( COUNT ( * ) AS INTEGER ) * + 25 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 78 END + SUM ( ALL 78 ) * 36 AS col2
----
2808

query I rowsort
SELECT ALL 30 * + 38 + - 20
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL - 12 * + 75 + - COUNT( DISTINCT 16 + 97 ) AS col1
----
-901

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL - 12 * + 75 + - COUNT ( DISTINCT 16 + 97 ) AS col1
----
-901

query I rowsort
SELECT - 72 * - 35 AS col0
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT NULLIF ( 38, - 93 ) * - COUNT( ALL + 54 ) + 89
----
51

skipif mysql # not compatible
query I rowsort label-2185
SELECT NULLIF ( 38, - 93 ) * - COUNT ( ALL + 54 ) + 89
----
51

query I rowsort
SELECT + 54 * 87 + 41
----
4739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2187
SELECT + MAX( ALL 37 ) * - 50 + COUNT( * ) DIV ( + 60 )
----
-1850

skipif mysql # not compatible
query I rowsort label-2187
SELECT + MAX ( ALL 37 ) * - 50 + COUNT ( * ) / ( + 60 )
----
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT CASE 11 WHEN 12 THEN MAX( + 75 ) ELSE 48 * 85 + - 21 END AS col0
----
4059

skipif mysql # not compatible
query I rowsort label-2188
SELECT CASE 11 WHEN 12 THEN MAX ( + 75 ) ELSE 48 * 85 + - 21 END AS col0
----
4059

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

query I rowsort
SELECT + 42 * ( + 17 * - 57 )
----
-40698

query I rowsort
SELECT DISTINCT 47 * 74 + 98
----
3576

query I rowsort
SELECT ALL 16 * 16 + 81 * 73
----
6169

query I rowsort
SELECT DISTINCT + 57 * - 9 AS col1
----
-513

query I rowsort
SELECT ALL 68 * 91
----
6188

query I rowsort
SELECT + 7 * 69 AS col1
----
483

query I rowsort
SELECT DISTINCT + 81 * 4 - 65 AS col1
----
259

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

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

query I rowsort
SELECT - - 69 * 87 AS col1
----
6003

query I rowsort
SELECT + + 0 * + 45 AS col0
----
0

query I rowsort
SELECT + 96 + 94 * + 41
----
3950

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT - COALESCE ( 86, 21 DIV - 32 )
----
-86

skipif mysql # not compatible
query I rowsort label-2201
SELECT - COALESCE ( 86, 21 / - 32 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2202
SELECT + ( 69 ) * CASE - COUNT( * ) WHEN 69 + 27 / 33 THEN NULL WHEN + 53 * CAST( - 59 AS SIGNED ) + - ( + 0 + 61 ) * 90 THEN 51 / - 74 + - 90 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT + ( 69 ) * CASE - COUNT ( * ) WHEN 69 + 27 / 33 THEN NULL WHEN + 53 * CAST ( - 59 AS INTEGER ) + - ( + 0 + 61 ) * 90 THEN 51 / - 74 + - 90 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT ALL - COALESCE ( + 94, 37 ) - - 40 * + 95
----
3706

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

query I rowsort
SELECT ALL - 79 * - 7 AS col0
----
553

query I rowsort
SELECT + 89 * + 75
----
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT MIN( DISTINCT + 99 ) + 81 AS col1
----
180

skipif mysql # not compatible
query I rowsort label-2208
SELECT MIN ( DISTINCT + 99 ) + 81 AS col1
----
180

query I rowsort
SELECT - - ( 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT CASE 49 WHEN 1 + ( - 98 ) THEN SUM( 37 ) / 20 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2210
SELECT CASE 49 WHEN 1 + ( - 98 ) THEN SUM ( 37 ) / 20 END AS col0
----
NULL

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

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

query I rowsort
SELECT - 26 * + + 7 + 28 * 16 AS col2
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT COUNT( ALL 75 ) * - 55
----
-55

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT COUNT ( ALL 75 ) * - 55
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL - COUNT( * ) + + 42 col2
----
41

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL - COUNT ( * ) + + 42 col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT ALL + 81 + - + COALESCE ( - 60, 40 ) + + ( MIN( 6 ) ) AS col2
----
147

skipif mysql # not compatible
query I rowsort label-2215
SELECT ALL + 81 + - + COALESCE ( - 60, 40 ) + + ( MIN ( 6 ) ) AS col2
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT DISTINCT - NULLIF ( + + 69, + COUNT( * ) + - COUNT( * ) ) + 88 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT - NULLIF ( + + 69, + COUNT ( * ) + - COUNT ( * ) ) + 88 AS col2
----
19

query I rowsort
SELECT DISTINCT + 36 * - - 88
----
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT ALL - 81 + - CAST( NULL AS SIGNED ) - 43 / + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - 81 + - CAST ( NULL AS INTEGER ) - 43 / + 55 AS col2
----
NULL

query I rowsort
SELECT ALL - 8 + + 83 * - 11
----
-921

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT ALL + ( + 10 ) DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL + ( + 10 ) / + 99 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2221
SELECT SUM( DISTINCT - - 61 ) DIV + ( + 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2221
SELECT SUM ( DISTINCT - - 61 ) / + ( + 47 ) AS col1
----
1

query I rowsort
SELECT 27 - + 89 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL + 18 * MAX( ALL 9 ) col2
----
162

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL + 18 * MAX ( ALL 9 ) col2
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-2224
SELECT 46 DIV - 22
----
-2

skipif mysql # not compatible
query I rowsort label-2224
SELECT 46 / - 22
----
-2

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

query I rowsort
SELECT DISTINCT + ( - 22 ) * + 61 AS col1
----
-1342

query I rowsort
SELECT ALL 30 - 5 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT DISTINCT + 64 - + SUM( ALL - 69 ) AS col1
----
133

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT + 64 - + SUM ( ALL - 69 ) AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT MIN( ALL + 37 ) * MAX( DISTINCT 99 ) AS col2
----
3663

skipif mysql # not compatible
query I rowsort label-2229
SELECT MIN ( ALL + 37 ) * MAX ( DISTINCT 99 ) AS col2
----
3663

query I rowsort
SELECT + 49 + - 19 + - 47 AS col0
----
-17

query I rowsort
SELECT 26 * - COALESCE ( - 16, ( - 48 ) * - 92 ) * 54
----
22464

query I rowsort
SELECT ALL CASE - + 6 WHEN 48 THEN 86 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT - COUNT( ALL - + 55 ) + - 73 * - 14 AS col2
----
1021

skipif mysql # not compatible
query I rowsort label-2233
SELECT - COUNT ( ALL - + 55 ) + - 73 * - 14 AS col2
----
1021

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL + SUM( + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL + SUM ( + 13 ) AS col0
----
13

query I rowsort
SELECT 29 * NULLIF ( + 82, 66 ) AS col2
----
2378

query I rowsort
SELECT + 48 + 95 AS col1
----
143

query I rowsort
SELECT 75 * - 98 AS col2
----
-7350

query I rowsort
SELECT ALL 27 + - 23 - + ( - 52 )
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT 8 DIV + 7 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2242
SELECT 8 / + 7 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT 68 + + + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT 68 + + + COUNT ( * ) AS col1
----
69

query II rowsort
SELECT DISTINCT 8 col2, COALESCE ( - 90, ( + 17 ) )
----
8
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT ALL COUNT( * ) + + 91 + + 8 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL COUNT ( * ) + + 91 + + 8 AS col1
----
100

query I rowsort
SELECT ALL - 22 + + + 53 + - 47 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT ALL - 13 + - + 25 + + 10 * + MAX( ( 9 ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL - 13 + - + 25 + + 10 * + MAX ( ( 9 ) ) AS col2
----
52

query I rowsort
SELECT 37 - + COALESCE ( - ( 65 ), + 25 ) AS col0
----
102

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

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

query I rowsort
SELECT ALL + 49 * - + 41 AS col0
----
-2009

query I rowsort
SELECT 47 * + 63 AS col0
----
2961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2252
SELECT SUM( + 24 ) DIV - - 11 + - 58 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2252
SELECT SUM ( + 24 ) / - - 11 + - 58 AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2253
SELECT MAX( CAST( NULL AS DECIMAL ) )
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2254
SELECT 77 DIV 16 + MIN( + 68 ) DIV 82
----
4

skipif mysql # not compatible
query I rowsort label-2254
SELECT 77 / 16 + MIN ( + 68 ) / 82
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT CAST( NULL AS SIGNED ) + - MAX( DISTINCT - 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT - 59 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2257
SELECT 50 * + 50 + + - COUNT( * ) + CAST( + ( 98 ) AS SIGNED ) * + 25
----
4949

skipif mysql # not compatible
query I rowsort label-2257
SELECT 50 * + 50 + + - COUNT ( * ) + CAST ( + ( 98 ) AS INTEGER ) * + 25
----
4949

query I rowsort
SELECT ALL - 77 - + - 37
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2259
SELECT ALL CAST( NULL AS SIGNED ) * + CASE + 38 WHEN - COUNT( * ) THEN - 38 - + 15 / - 74 WHEN + 76 + 63 * - 20 THEN NULL END * 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL CAST ( NULL AS INTEGER ) * + CASE + 38 WHEN - COUNT ( * ) THEN - 38 - + 15 / - 74 WHEN + 76 + 63 * - 20 THEN NULL END * 99
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2260
SELECT ALL - COUNT( * ), - 81 * - 25 AS col2
----
-1
2025

skipif mysql # not compatible
query II rowsort label-2260
SELECT ALL - COUNT ( * ), - 81 * - 25 AS col2
----
-1
2025

query I rowsort
SELECT 72 + - 10
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT ALL - COUNT( ALL + 58 ) * - 16 - 56 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - COUNT ( ALL + 58 ) * - 16 - 56 AS col0
----
-40

query I rowsort
SELECT - NULLIF ( + ( - 76 ), + 21 ) * 30 AS col0
----
2280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2264
SELECT 5 * COUNT( * ) DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-2264
SELECT 5 * COUNT ( * ) / - 65
----
0

query I rowsort
SELECT + 7 * - - 25 + - 92 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL - - CASE + ( + - 39 ) WHEN + MAX( DISTINCT 8 ) THEN + SUM( + 24 ) + ( 13 ) * 46 END * 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - - CASE + ( + - 39 ) WHEN + MAX ( DISTINCT 8 ) THEN + SUM ( + 24 ) + ( 13 ) * 46 END * 21 AS col0
----
NULL

query II rowsort
SELECT + 93 AS col2, - 7
----
93
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT 53 * - 96 + 49 * 70 + + COUNT( * ) AS col1
----
-1657

skipif mysql # not compatible
query I rowsort label-2268
SELECT 53 * - 96 + 49 * 70 + + COUNT ( * ) AS col1
----
-1657

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

skipif mysql # not compatible
query II rowsort label-2269
SELECT + COUNT ( * ) col0, COUNT ( * ) * - - 83 * + 93
----
1
7719

query I rowsort
SELECT ALL + + 86 * 35 AS col1
----
3010

query I rowsort
SELECT + 78 * + 67 + 29
----
5255

query I rowsort
SELECT ALL - NULLIF ( 73, - 4 ) * - 46 AS col2
----
3358

query II rowsort
SELECT - 27 col2, 98 + - 76
----
-27
22

query I rowsort
SELECT ALL + CASE 82 WHEN - ( + 32 ) / 34 THEN - 91 + 53 WHEN 25 + - 97 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 15 + + + 57 + + - 51 - 84 AS col0
----
-63

query I rowsort
SELECT - 85 - + 50 AS col1
----
-135

query I rowsort
SELECT ALL + ( + 52 ) + + 79 AS col2
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2278
SELECT DISTINCT 62 * + CASE 88 WHEN - COALESCE ( + 37, CAST( NULL AS SIGNED ) + 55 ) / - 82 THEN + 1 + - NULLIF ( COUNT( * ), + 17 * + COUNT( * ) + 86 ) WHEN 68 THEN + 30 WHEN - 42 * - 32 THEN NULL ELSE + ( - 30 ) END AS col2
----
-1860

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT 62 * + CASE 88 WHEN - COALESCE ( + 37, CAST ( NULL AS INTEGER ) + 55 ) / - 82 THEN + 1 + - NULLIF ( COUNT ( * ), + 17 * + COUNT ( * ) + 86 ) WHEN 68 THEN + 30 WHEN - 42 * - 32 THEN NULL ELSE + ( - 30 ) END AS col2
----
-1860

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL 21 + - COUNT( * ) + 9
----
29

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL 21 + - COUNT ( * ) + 9
----
29

query I rowsort
SELECT ALL 79 + - 20 + + 98 AS col2
----
157

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

skipif mysql # not compatible
query I rowsort label-2281
SELECT + 85 - - COUNT ( * ) / + - 96
----
85

query II rowsort
SELECT ALL 91 * + 21 AS col2, + 21
----
1911
21

query I rowsort
SELECT + 3 + - + 80
----
-77

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

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL ( COUNT ( * ) ) + + 53 col1
----
54

query II rowsort
SELECT + 49 * - 96 AS col0, 80 * + 25 * - COALESCE ( - 7, ( 8 ) )
----
-4704
14000

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT - COALESCE ( + + 91, + 11, - NULLIF ( - ( - 47 ), + COUNT( * ) * COALESCE ( 28, + 91 + - 13, - 14 * 47 ) - ( - COUNT( * ) - ( COUNT( * ) ) ) ) + + COUNT( * ) ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-2286
SELECT - COALESCE ( + + 91, + 11, - NULLIF ( - ( - 47 ), + COUNT ( * ) * COALESCE ( 28, + 91 + - 13, - 14 * 47 ) - ( - COUNT ( * ) - ( COUNT ( * ) ) ) ) + + COUNT ( * ) ) AS col0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT + 67 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2287
SELECT + 67 / + 99 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2288
SELECT COALESCE ( + COUNT( * ), + - 49 + + 76, + CAST( NULL AS SIGNED ) + + ( 74 - MAX( DISTINCT 86 ) ) ) * + 99 + 68 AS col0
----
167

skipif mysql # not compatible
query I rowsort label-2288
SELECT COALESCE ( + COUNT ( * ), + - 49 + + 76, + CAST ( NULL AS INTEGER ) + + ( 74 - MAX ( DISTINCT 86 ) ) ) * + 99 + 68 AS col0
----
167

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2289
SELECT ALL 13 DIV + + MIN( - + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL 13 / + + MIN ( - + 93 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2290
SELECT DISTINCT + COUNT( * ) * - + 17 - 85 + - - 70 DIV + COALESCE ( 69 + 2 * NULLIF ( 34, + ( + 39 ) * - 37 + - 49 ), 84 )
----
-102

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + COUNT ( * ) * - + 17 - 85 + - - 70 / + COALESCE ( 69 + 2 * NULLIF ( 34, + ( + 39 ) * - 37 + - 49 ), 84 )
----
-102

query I rowsort
SELECT ALL + 19 * 45 AS col0
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT CASE - COUNT( * ) WHEN 90 THEN - + 79 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT CASE - COUNT ( * ) WHEN 90 THEN - + 79 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + 77 - - 7 * - 90 * + 35 * NULLIF ( - 55 * + SUM( + 20 ), - MIN( 6 ) ) AS col2
----
24255077

skipif mysql # not compatible
query I rowsort label-2293
SELECT + 77 - - 7 * - 90 * + 35 * NULLIF ( - 55 * + SUM ( + 20 ), - MIN ( 6 ) ) AS col2
----
24255077

query I rowsort
SELECT - 83 * - 22 AS col0
----
1826

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2296
SELECT - ( - + 86 ) AS col0, 0 * CAST( 52 AS SIGNED ) * COUNT( * ) AS col0
----
86
0

skipif mysql # not compatible
query II rowsort label-2296
SELECT - ( - + 86 ) AS col0, 0 * CAST ( 52 AS INTEGER ) * COUNT ( * ) AS col0
----
86
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2297
SELECT ALL + ( 80 ) AS col2, + SUM( DISTINCT - - 42 )
----
80
42

skipif mysql # not compatible
query II rowsort label-2297
SELECT ALL + ( 80 ) AS col2, + SUM ( DISTINCT - - 42 )
----
80
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2298
SELECT + ( + 48 ) + + + 37 DIV + 91
----
48

skipif mysql # not compatible
query I rowsort label-2298
SELECT + ( + 48 ) + + + 37 / + 91
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2299
SELECT + 47 DIV - COUNT( * ) + COUNT( * ) AS col1
----
-46

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

query I rowsort
SELECT - 16 * + 81 AS col1
----
-1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2301
SELECT ALL + + MIN( ALL - 74 ) * - 99 + - CAST( + ( 89 ) AS SIGNED ) + + 51 col0
----
7288

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + + MIN ( ALL - 74 ) * - 99 + - CAST ( + ( 89 ) AS INTEGER ) + + 51 col0
----
7288

query II rowsort
SELECT ( - 65 ) AS col0, 84 AS col2
----
-65
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2303
SELECT - 30 * 58 DIV + 56
----
-31

skipif mysql # not compatible
query I rowsort label-2303
SELECT - 30 * 58 / + 56
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2304
SELECT - - 11 + + + COUNT( * ) DIV + 93 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2304
SELECT - - 11 + + + COUNT ( * ) / + 93 AS col2
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT DISTINCT COALESCE ( + SUM( - 94 ), - - 44 * - 66 + ( MAX( ALL ( 5 ) ) + + 63 * NULLIF ( 57 + + 10, + 67 - - 0 ) ), - 41 ) + - COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT COALESCE ( + SUM ( - 94 ), - - 44 * - 66 + ( MAX ( ALL ( 5 ) ) + + 63 * NULLIF ( 57 + + 10, + 67 - - 0 ) ), - 41 ) + - COUNT ( * ) AS col0
----
-95

query I rowsort
SELECT ALL + 94 + - 84 + + 71
----
81

query I rowsort
SELECT - 86 + + 46 AS col1
----
-40

query I rowsort
SELECT - 62 + - 99
----
-161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2310
SELECT ALL CAST( NULL AS DECIMAL ), CASE - COUNT( * ) WHEN - 39 - + 45 + - COUNT( * ) THEN NULL WHEN + 63 THEN 56 * 98 END + 86 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2310
SELECT ALL CAST ( NULL AS REAL ), CASE - COUNT ( * ) WHEN - 39 - + 45 + - COUNT ( * ) THEN NULL WHEN + 63 THEN 56 * 98 END + 86 AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - 26 * + COUNT( * ) * 36
----
-936

skipif mysql # not compatible
query I rowsort label-2311
SELECT - 26 * + COUNT ( * ) * 36
----
-936

query I rowsort
SELECT + 32 * + 46 AS col1
----
1472

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2314
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT - CAST ( NULL AS REAL ) / 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT DISTINCT CAST( - - 61 AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT CAST ( - - 61 AS INTEGER ) AS col1
----
61

query I rowsort
SELECT ALL 7 * - - 60 * - 14 AS col1
----
-5880

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

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

query I rowsort
SELECT DISTINCT - 5 * + - 15 AS col2
----
75

query I rowsort
SELECT - 60 * - 31
----
1860

onlyif mysql # aggregate syntax: 
query II rowsort label-2320
SELECT + MAX( ALL + 87 ) * 37, - 51 AS col2
----
3219
-51

skipif mysql # not compatible
query II rowsort label-2320
SELECT + MAX ( ALL + 87 ) * 37, - 51 AS col2
----
3219
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT 51 DIV 4 - - 46
----
58

skipif mysql # not compatible
query I rowsort label-2321
SELECT 51 / 4 - - 46
----
58

query I rowsort
SELECT ALL + - NULLIF ( + 88, + 14 * + 40 ) AS col2
----
-88

query I rowsort
SELECT ALL 4 + 79
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT - CASE + - 36 WHEN + - 9 + - MAX( DISTINCT - 10 ) + 70 THEN ( 72 ) WHEN + 18 THEN 55 / - COUNT( * ) + + 45 / + 54 END + - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT - CASE + - 36 WHEN + - 9 + - MAX ( DISTINCT - 10 ) + 70 THEN ( 72 ) WHEN + 18 THEN 55 / - COUNT ( * ) + + 45 / + 54 END + - 51 AS col2
----
NULL

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

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

query I rowsort
SELECT 4 + - 88 AS col0
----
-84

query I rowsort
SELECT DISTINCT 75 * + + 91 AS col1
----
6825

query I rowsort
SELECT DISTINCT + - 14 + 22
----
8

query I rowsort
SELECT - 90 * - + 56
----
5040

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT + 31 * - 78 + - 31 DIV - 74 col2
----
-2418

skipif mysql # not compatible
query I rowsort label-2330
SELECT + 31 * - 78 + - 31 / - 74 col2
----
-2418

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2331
SELECT COALESCE ( - 52, - CAST( NULL AS SIGNED ), + - 17 DIV 12 ) * + 66 AS col0
----
-3432

skipif mysql # not compatible
query I rowsort label-2331
SELECT COALESCE ( - 52, - CAST ( NULL AS INTEGER ), + - 17 / 12 ) * + 66 AS col0
----
-3432

query III rowsort
SELECT 17 AS col1, 82 AS col1, COALESCE ( - + 10, - 48 - + - 55 ) col2
----
17
82
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL - SUM( DISTINCT - ( - 93 ) ) - - + ( + 21 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - SUM ( DISTINCT - ( - 93 ) ) - - + ( + 21 ) AS col1
----
-72

query I rowsort
SELECT 31 - + 45 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-2335
SELECT - 10 col2, + COUNT( - + 46 )
----
-10
1

skipif mysql # not compatible
query II rowsort label-2335
SELECT - 10 col2, + COUNT ( - + 46 )
----
-10
1

query I rowsort
SELECT 37 + 56
----
93

query I rowsort
SELECT ( + - 88 ) - 61
----
-149

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT 76 DIV + 35
----
2

skipif mysql # not compatible
query I rowsort label-2338
SELECT 76 / + 35
----
2

query I rowsort
SELECT ALL + 91 * + 91
----
8281

query I rowsort
SELECT 47 * - 13 AS col1
----
-611

query I rowsort
SELECT ALL 8 - + 72 + - 4 AS col2
----
-68

query I rowsort
SELECT ALL + 64 - + + 57
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2343
SELECT 66 DIV - + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2343
SELECT 66 / - + 67 AS col2
----
0

query I rowsort
SELECT 72 + + ( - + 86 ) AS col1
----
-14

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

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

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

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

query II rowsort
SELECT - 86 AS col2, + 97 - - 29 AS col2
----
-86
126

query II rowsort
SELECT 41 col2, + 74 AS col0
----
41
74

query II rowsort
SELECT - 44 AS col0, + 76 AS col1
----
-44
76

query I rowsort
SELECT 7 + - COALESCE ( - 67, + 26 * - 52 ) AS col0
----
74

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

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

query I rowsort
SELECT 49 * + 32 - + 81
----
1487

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT ALL + 85 + + 27 * CASE + - SUM( ALL 55 ) WHEN 49 THEN - 58 + - 12 ELSE NULL END * 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL + 85 + + 27 * CASE + - SUM ( ALL 55 ) WHEN 49 THEN - 58 + - 12 ELSE NULL END * 54 AS col1
----
NULL

query II rowsort
SELECT ALL - 16 + + 18, + 90 AS col0
----
2
90

query I rowsort
SELECT + ( + 9 ) * 92
----
828

query I rowsort
SELECT ALL + 24 + + 38 * + 19 * - 95 AS col0
----
-68566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2357
SELECT + COALESCE ( + 88, - COUNT( * ), + - CASE 18 WHEN + 77 THEN NULL WHEN CAST( 9 AS SIGNED ) THEN MAX( 4 ) + + 64 END * 57 + 10 )
----
88

skipif mysql # not compatible
query I rowsort label-2357
SELECT + COALESCE ( + 88, - COUNT ( * ), + - CASE 18 WHEN + 77 THEN NULL WHEN CAST ( 9 AS INTEGER ) THEN MAX ( 4 ) + + 64 END * 57 + 10 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2358
SELECT - 91 * - COALESCE ( - 73, - 48 + 44 * - 54, CASE CAST( NULL AS SIGNED ) WHEN - 39 THEN NULL WHEN - AVG ( ALL 73 ) + + 24 THEN - 94 END ) + + 23 - 87 AS col1
----
-6707

skipif mysql # not compatible
query I rowsort label-2358
SELECT - 91 * - COALESCE ( - 73, - 48 + 44 * - 54, CASE CAST ( NULL AS INTEGER ) WHEN - 39 THEN NULL WHEN - AVG ( ALL 73 ) + + 24 THEN - 94 END ) + + 23 - 87 AS col1
----
-6707

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT DISTINCT - - CAST( - 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT - - CAST ( - 77 AS INTEGER )
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2360
SELECT - - 73 * + 25 * ( 26 ) * CAST( NULL AS SIGNED ) + - COUNT( * ) * COUNT( * ) - + ( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT - - 73 * + 25 * ( 26 ) * CAST ( NULL AS INTEGER ) + - COUNT ( * ) * COUNT ( * ) - + ( 79 )
----
NULL

query I rowsort
SELECT 98 * + 24
----
2352

query II rowsort
SELECT ( - 60 ), 33 + - - 97 AS col0
----
-60
130

query I rowsort
SELECT ALL - 9 + - + ( - 68 ) - + 82 + 36 AS col2
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-2364
SELECT ALL - - 48, - 88 * 20 DIV 5 AS col1
----
48
-352

skipif mysql # not compatible
query II rowsort label-2364
SELECT ALL - - 48, - 88 * 20 / 5 AS col1
----
48
-352

query II rowsort
SELECT + 31 + 79 AS col2, + 98 AS col2
----
110
98

query I rowsort
SELECT ALL + 48 - + - 80 col0
----
128

query I rowsort
SELECT COALESCE ( - + 88, + + ( + 80 ) ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT - NULLIF ( + - MAX( ALL 73 ), COUNT( * ) ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2368
SELECT - NULLIF ( + - MAX ( ALL 73 ), COUNT ( * ) ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT COUNT( * ) + SUM( - 64 ) + 82 * - - MAX( DISTINCT - 93 ) + - + 56 AS col0
----
-7745

skipif mysql # not compatible
query I rowsort label-2369
SELECT COUNT ( * ) + SUM ( - 64 ) + 82 * - - MAX ( DISTINCT - 93 ) + - + 56 AS col0
----
-7745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2370
SELECT ALL 62 * MIN( ALL - 65 ) DIV - + 14 - - ( - 64 ) + - - 29 * + 35 AS col1
----
1238

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL 62 * MIN ( ALL - 65 ) / - + 14 - - ( - 64 ) + - - 29 * + 35 AS col1
----
1238

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT CASE - 8 WHEN + 41 * + COALESCE ( - NULLIF ( 0, - 42 ), MIN( DISTINCT 47 ) - 20, + 84 ) * 91 + - ( + 72 ) * - 68 + + 70 THEN + 44 END + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT CASE - 8 WHEN + 41 * + COALESCE ( - NULLIF ( 0, - 42 ), MIN ( DISTINCT 47 ) - 20, + 84 ) * 91 + - ( + 72 ) * - 68 + + 70 THEN + 44 END + 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL NULLIF ( + 37, + 6 * + + SUM( ALL + 80 ) ) * - 11 AS col1
----
-407

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL NULLIF ( + 37, + 6 * + + SUM ( ALL + 80 ) ) * - 11 AS col1
----
-407

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT CASE + ( - 3 ) WHEN - + COUNT( * ) * + - 78 + - 34 THEN COUNT( * ) + - 84 END * - ( 48 * 87 + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT CASE + ( - 3 ) WHEN - + COUNT ( * ) * + - 78 + - 34 THEN COUNT ( * ) + - 84 END * - ( 48 * 87 + - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2374
SELECT CAST( COALESCE ( - 51, COUNT( * ) ) AS SIGNED ) + + 79 - + - MIN( + - 45 ) DIV + 41 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2374
SELECT CAST ( COALESCE ( - 51, COUNT ( * ) ) AS INTEGER ) + + 79 - + - MIN ( + - 45 ) / + 41 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT COALESCE ( COALESCE ( 81, 32 * 65 + 80 + + COUNT( * ), 2 ), 32 ) * - 32 AS col1
----
-2592

skipif mysql # not compatible
query I rowsort label-2375
SELECT COALESCE ( COALESCE ( 81, 32 * 65 + 80 + + COUNT ( * ), 2 ), 32 ) * - 32 AS col1
----
-2592

query I rowsort
SELECT 82 * - 6 AS col0
----
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT 85 + - 32 + - + SUM( ALL + - 95 ) * 13 * + 57 AS col2
----
70448

skipif mysql # not compatible
query I rowsort label-2377
SELECT 85 + - 32 + - + SUM ( ALL + - 95 ) * 13 * + 57 AS col2
----
70448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2378
SELECT CAST( + + COUNT( * ) AS SIGNED ) + + ( + + 69 ) + + - COUNT( * ) * + 38
----
32

skipif mysql # not compatible
query I rowsort label-2378
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) + + ( + + 69 ) + + - COUNT ( * ) * + 38
----
32

query I rowsort
SELECT - COALESCE ( - - 34, + 50 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT - COALESCE ( + 1, - 28 + 86 * + + COUNT( * ) * MIN( DISTINCT + 7 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2380
SELECT - COALESCE ( + 1, - 28 + 86 * + + COUNT ( * ) * MIN ( DISTINCT + 7 ) )
----
-1

query I rowsort
SELECT 97 - + + 84
----
13

query I rowsort
SELECT DISTINCT - - 98 + + + 80 + ( - - 41 ) col1
----
219

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT - MIN( ALL + - 25 ) * 89 + 20 + - ( - ( + - 86 ) ) + COUNT( * ) DIV MIN( 72 )
----
2159

skipif mysql # not compatible
query I rowsort label-2385
SELECT - MIN ( ALL + - 25 ) * 89 + 20 + - ( - ( + - 86 ) ) + COUNT ( * ) / MIN ( 72 )
----
2159

query I rowsort
SELECT ALL + 91 * 43 + - 37 * - - COALESCE ( + NULLIF ( - 23, - NULLIF ( - 18, 6 * 15 ) ), 77 ) * + 71 + + 60 * + 99 AS col0
----
70274

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT - MIN( DISTINCT - 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-2387
SELECT - MIN ( DISTINCT - 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT - 9 + + 39 * + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-2388
SELECT - 9 + + 39 * + COUNT ( * ) AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2389
SELECT - - 12 * + NULLIF ( 66, 8 + COUNT( * ) + + CAST( NULL AS SIGNED ) / + 34 * 87 ) + 49 * + 90 AS col1
----
5202

skipif mysql # not compatible
query I rowsort label-2389
SELECT - - 12 * + NULLIF ( 66, 8 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) / + 34 * 87 ) + 49 * + 90 AS col1
----
5202

query I rowsort
SELECT - + COALESCE ( - 43, 17 ) * - - 4
----
172

query I rowsort
SELECT 32 * - - 11 + - 22 col0
----
330

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2392
SELECT ALL + 68 * - 61, 21 * 59 * - - ( + - COUNT( * ) ) * - CAST( NULL AS DECIMAL ) AS col1
----
-4148
NULL

skipif mysql # not compatible
query II rowsort label-2392
SELECT ALL + 68 * - 61, 21 * 59 * - - ( + - COUNT ( * ) ) * - CAST ( NULL AS REAL ) AS col1
----
-4148
NULL

query I rowsort
SELECT - + ( + + 99 ) + + 4 + + + 88
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2394
SELECT - ( NULLIF ( + + COUNT( * ), + CAST( NULL AS SIGNED ) ) ) * + ( + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-2394
SELECT - ( NULLIF ( + + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) * + ( + 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT + NULLIF ( - - ( - + CASE 60 WHEN COUNT( * ) + 85 + 98 / 79 THEN - 93 ELSE NULL END ), COUNT( * ) + - ( 13 ) / 6 ) * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT + NULLIF ( - - ( - + CASE 60 WHEN COUNT ( * ) + 85 + 98 / 79 THEN - 93 ELSE NULL END ), COUNT ( * ) + - ( 13 ) / 6 ) * 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT - - 13 * - SUM( + 90 )
----
-1170

skipif mysql # not compatible
query I rowsort label-2396
SELECT - - 13 * - SUM ( + 90 )
----
-1170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2397
SELECT + + 11 * CAST( NULL AS SIGNED ) * - - NULLIF ( + + 1, - - 33 ) * + 21 + 25 + COUNT( * ) * 65 + + 44 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT + + 11 * CAST ( NULL AS INTEGER ) * - - NULLIF ( + + 1, - - 33 ) * + 21 + 25 + COUNT ( * ) * 65 + + 44 + 30
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2398
SELECT - COALESCE ( - 37, + + 39 * + 37 ) DIV - 23 AS col0, 3 * - 35 - 82 col0
----
-1
-187

skipif mysql # not compatible
query II rowsort label-2398
SELECT - COALESCE ( - 37, + + 39 * + 37 ) / - 23 AS col0, 3 * - 35 - 82 col0
----
-1
-187

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

skipif mysql # not compatible
query II rowsort label-2399
SELECT COUNT ( * ) AS col2, 80 AS col2
----
1
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2400
SELECT - 3 * + 66 * + + SUM( ALL - NULLIF ( - - 64, + - 20 ) ), + ( - 58 ) AS col0
----
12672
-58

skipif mysql # not compatible
query II rowsort label-2400
SELECT - 3 * + 66 * + + SUM ( ALL - NULLIF ( - - 64, + - 20 ) ), + ( - 58 ) AS col0
----
12672
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2401
SELECT + 20 / 87 / + + 32 * - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT + 20 / 87 / + + 32 * - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2402
SELECT ALL - 73 DIV + CAST( + 67 AS SIGNED ) AS col1, 72 * - + 21 AS col2
----
-1
-1512

skipif mysql # not compatible
query II rowsort label-2402
SELECT ALL - 73 / + CAST ( + 67 AS INTEGER ) AS col1, 72 * - + 21 AS col2
----
-1
-1512

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

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

query I rowsort
SELECT + 90 + 47 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT - MIN( DISTINCT 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2405
SELECT - MIN ( DISTINCT 0 ) AS col2
----
0

query II rowsort
SELECT + 37 - + ( - - 85 ) + - 35 AS col0, + 64 AS col0
----
-83
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT + ( - - MIN( - 54 ) ) - 34 * - 41
----
1340

skipif mysql # not compatible
query I rowsort label-2407
SELECT + ( - - MIN ( - 54 ) ) - 34 * - 41
----
1340

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT + ( - - 20 ) * 86 * COUNT( * ) AS col1
----
1720

skipif mysql # not compatible
query I rowsort label-2408
SELECT + ( - - 20 ) * 86 * COUNT ( * ) AS col1
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT DISTINCT 54 * - + MAX( DISTINCT 1 )
----
-54

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT 54 * - + MAX ( DISTINCT 1 )
----
-54

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

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL 13 + - + COUNT ( * ) + + - 15 AS col1
----
-3

query I rowsort
SELECT + 0 + + + 64 AS col0
----
64

query II rowsort
SELECT + 96 col0, + 6 - 9
----
96
-3

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

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

query II rowsort
SELECT - 30 AS col0, - 29 AS col1
----
-30
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT ALL - 22 - - COALESCE ( - 82, + ( + - 88 ) ) - + COUNT( * ) AS col2, 35 * - 52 AS col0
----
-105
-1820

skipif mysql # not compatible
query II rowsort label-2415
SELECT ALL - 22 - - COALESCE ( - 82, + ( + - 88 ) ) - + COUNT ( * ) AS col2, 35 * - 52 AS col0
----
-105
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2416
SELECT ALL 80 / + + 26 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL 80 / + + 26 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT DISTINCT + - CASE + + 4 WHEN 77 * - + 21 THEN - 58 / - 19 ELSE + - CAST( NULL AS SIGNED ) * - 36 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT + - CASE + + 4 WHEN 77 * - + 21 THEN - 58 / - 19 ELSE + - CAST ( NULL AS INTEGER ) * - 36 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL - - 41 / + + CASE 4 WHEN + CASE + ( + 14 ) WHEN + ( - 59 ) THEN NULL ELSE - COUNT( * ) END THEN - ( + 28 ) ELSE NULL END * + COUNT( * ) - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL - - 41 / + + CASE 4 WHEN + CASE + ( + 14 ) WHEN + ( - 59 ) THEN NULL ELSE - COUNT ( * ) END THEN - ( + 28 ) ELSE NULL END * + COUNT ( * ) - 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT - + 3 * - - COUNT( * ) * 12 col2
----
-36

skipif mysql # not compatible
query I rowsort label-2419
SELECT - + 3 * - - COUNT ( * ) * 12 col2
----
-36

query II rowsort
SELECT ALL + - 86 AS col1, 26 * + 79 AS col1
----
-86
2054

onlyif mysql # DIV for integer division: 
query I rowsort label-2421
SELECT ALL + 14 DIV 46 * + 23 - - ( 6 ) * 39 + - 23
----
211

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + 14 / 46 * + 23 - - ( 6 ) * 39 + - 23
----
211

query I rowsort
SELECT + + 1 - 81
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT 26 * + 29 - - SUM( - 65 ) AS col2
----
689

skipif mysql # not compatible
query I rowsort label-2423
SELECT 26 * + 29 - - SUM ( - 65 ) AS col2
----
689

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT - - COUNT( * ) * - 57 + + 67
----
10

skipif mysql # not compatible
query I rowsort label-2424
SELECT - - COUNT ( * ) * - 57 + + 67
----
10

query I rowsort
SELECT - - 76 + - 34 - - 84
----
126

query I rowsort
SELECT ALL + NULLIF ( + + 48, - 40 ) col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL + MAX( ALL + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL + MAX ( ALL + 69 ) AS col2
----
69

query II rowsort
SELECT - 97 - 62, 87 AS col0
----
-159
87

query I rowsort
SELECT ALL - 59 * 37
----
-2183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2430
SELECT + COALESCE ( - 47, COUNT( * ), 84 DIV - 28, + + 87 + + 89 + - 47 + 17 * + 77 * - 22 ) * - 0 - - 30 DIV 64
----
0

skipif mysql # not compatible
query I rowsort label-2430
SELECT + COALESCE ( - 47, COUNT ( * ), 84 / - 28, + + 87 + + 89 + - 47 + 17 * + 77 * - 22 ) * - 0 - - 30 / 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL + COALESCE ( + 30, - 81 * COUNT( * ) * - + 14 * + 84 + + 22 * + 91 * 16, + COUNT( 3 ) )
----
30

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + COALESCE ( + 30, - 81 * COUNT ( * ) * - + 14 * + 84 + + 22 * + 91 * 16, + COUNT ( 3 ) )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT - 49 + 42 - + - 13 DIV - 68
----
-7

skipif mysql # not compatible
query I rowsort label-2432
SELECT - 49 + 42 - + - 13 / - 68
----
-7

query I rowsort
SELECT NULLIF ( - 64, - 65 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT - COALESCE ( - 57, + - 53 * COUNT( 34 ), + + COUNT( DISTINCT + 67 ) ) + - + 35 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2434
SELECT - COALESCE ( - 57, + - 53 * COUNT ( 34 ), + + COUNT ( DISTINCT + 67 ) ) + - + 35 AS col2
----
22

query I rowsort
SELECT DISTINCT + 15 * 21 col1
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL 15 * + - 69 * - + 56 + + 13 + 28 * + - 36 * MIN( - 12 ) + - - COUNT( * )
----
70070

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL 15 * + - 69 * - + 56 + + 13 + 28 * + - 36 * MIN ( - 12 ) + - - COUNT ( * )
----
70070

onlyif mysql # DIV for integer division: 
query I rowsort label-2437
SELECT DISTINCT 60 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT 60 / 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL - 43 + - 79 * NULLIF ( - 58, - + COUNT( * ) + + 29 ) AS col2
----
4539

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL - 43 + - 79 * NULLIF ( - 58, - + COUNT ( * ) + + 29 ) AS col2
----
4539

query I rowsort
SELECT 0 * + 36 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2440
SELECT ALL COUNT( + 58 ) * + CAST( NULL AS SIGNED ) * COALESCE ( 40, - COUNT( * ) * + 53, - - ( + 99 ) ) + 13 * - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL COUNT ( + 58 ) * + CAST ( NULL AS INTEGER ) * COALESCE ( 40, - COUNT ( * ) * + 53, - - ( + 99 ) ) + 13 * - 73 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT 7 DIV ( 69 )
----
0

skipif mysql # not compatible
query I rowsort label-2441
SELECT 7 / ( 69 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT COUNT( * ) + ( + - 38 ) - - 94 * + COUNT( * ) + - + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2442
SELECT COUNT ( * ) + ( + - 38 ) - - 94 * + COUNT ( * ) + - + COUNT ( * ) AS col1
----
56

query I rowsort
SELECT + 77 + + ( 31 ) AS col1
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-2444
SELECT COUNT( * ) * + 64 AS col2, - MAX( DISTINCT + 41 )
----
64
-41

skipif mysql # not compatible
query II rowsort label-2444
SELECT COUNT ( * ) * + 64 AS col2, - MAX ( DISTINCT + 41 )
----
64
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-2445
SELECT DISTINCT 30 - + 95 + - + 55 * + 99, + 20 DIV - ( - + 76 ) + 5 * - 95 + 63 AS col2
----
-5510
-412

skipif mysql # not compatible
query II rowsort label-2445
SELECT DISTINCT 30 - + 95 + - + 55 * + 99, + 20 / - ( - + 76 ) + 5 * - 95 + 63 AS col2
----
-5510
-412

query II rowsort
SELECT + 40 + + 64 AS col2, - 53 AS col2
----
104
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2447
SELECT ALL + CASE - 83 WHEN - 38 * 68 THEN NULL ELSE + - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + CASE - 83 WHEN - 38 * 68 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - 84 * - 62 * + 96 AS col2
----
499968

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT COUNT( * ) * 39 + - - ( + 55 ) * + NULLIF ( + 67, + 77 ) AS col0
----
3724

skipif mysql # not compatible
query I rowsort label-2449
SELECT COUNT ( * ) * 39 + - - ( + 55 ) * + NULLIF ( + 67, + 77 ) AS col0
----
3724

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT COALESCE ( + + 76, - CASE + 42 WHEN 85 - + 24 - + 56 DIV - 46 THEN 4 * 42 + + 0 ELSE NULL END ) DIV 71 + 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-2450
SELECT COALESCE ( + + 76, - CASE + 42 WHEN 85 - + 24 - + 56 / - 46 THEN 4 * 42 + + 0 ELSE NULL END ) / 71 + 95 AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2451
SELECT + CASE - 59 WHEN - 28 + + - ( - ( + 84 ) ) THEN + + ( + + 61 ) * - + CAST( NULL AS SIGNED ) WHEN 2 * - ( - 36 ) THEN + 21 + - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT + CASE - 59 WHEN - 28 + + - ( - ( + 84 ) ) THEN + + ( + + 61 ) * - + CAST ( NULL AS INTEGER ) WHEN 2 * - ( - 36 ) THEN + 21 + - 93 END
----
NULL

query I rowsort
SELECT + 7 + - + 85 AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2453
SELECT + + NULLIF ( - 39, + 49 ) DIV + 33 - COUNT( * ) DIV 31 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2453
SELECT + + NULLIF ( - 39, + 49 ) / + 33 - COUNT ( * ) / 31 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT 80 * 82 * - 23 + - CAST( NULL AS SIGNED ) - COUNT( * ) + ( 15 ) * 82 * 84 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT 80 * 82 * - 23 + - CAST ( NULL AS INTEGER ) - COUNT ( * ) + ( 15 ) * 82 * 84 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL 60 * - MIN( ALL + 38 ) AS col0
----
-2280

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL 60 * - MIN ( ALL + 38 ) AS col0
----
-2280

onlyif mysql # DIV for integer division: 
query I rowsort label-2456
SELECT DISTINCT 99 DIV + 22 + - 20 col2
----
-16

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT 99 / + 22 + - 20 col2
----
-16

query I rowsort
SELECT DISTINCT - 36 * - 33 AS col1
----
1188

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT 45 DIV + 39
----
1

skipif mysql # not compatible
query I rowsort label-2458
SELECT 45 / + 39
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2459
SELECT DISTINCT - ( - + ( + - MAX( - + CAST( 72 AS SIGNED ) ) ) )
----
72

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT - ( - + ( + - MAX ( - + CAST ( 72 AS INTEGER ) ) ) )
----
72

query II rowsort
SELECT + 3, 8 AS col0
----
3
8

query I rowsort
SELECT 75 + 85
----
160

query I rowsort
SELECT ALL 79 * 96 col2
----
7584

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT NULLIF ( + 7, - 41 ) DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-2463
SELECT NULLIF ( + 7, - 41 ) / + 93
----
0

query I rowsort
SELECT DISTINCT + 28 + + 50
----
78

query I rowsort
SELECT ALL - 74 + + - 20 + 8 - 41 AS col0
----
-127

query I rowsort
SELECT DISTINCT 37 + 74
----
111

query I rowsort
SELECT ALL 96 + - - ( + + 45 ) AS col2
----
141

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

query I rowsort
SELECT DISTINCT - 29 * - - ( 38 ) AS col1
----
-1102

query I rowsort
SELECT DISTINCT - 56 + + CASE - 57 WHEN - 5 * + 62 THEN - 49 + - + 68 - + 16 - + ( 93 ) * - 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2471
SELECT MIN( - 29 ) + - 5, + COUNT( * ) AS col0
----
-34
1

skipif mysql # not compatible
query II rowsort label-2471
SELECT MIN ( - 29 ) + - 5, + COUNT ( * ) AS col0
----
-34
1

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2474
SELECT 42 AS col0, + 82 * + 43 * 68 + + - 73 - - MIN( ALL 71 ) DIV - - COUNT( * )
----
42
239766

skipif mysql # not compatible
query II rowsort label-2474
SELECT 42 AS col0, + 82 * + 43 * 68 + + - 73 - - MIN ( ALL 71 ) / - - COUNT ( * )
----
42
239766

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT ALL - 11 - + 56 - + 60 * + - CAST( NULL AS SIGNED ) / MAX( DISTINCT 30 ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - 11 - + 56 - + 60 * + - CAST ( NULL AS INTEGER ) / MAX ( DISTINCT 30 ) * - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT 0 - - - 22 + 47 AS col0
----
25

query I rowsort
SELECT 35 * ( + 23 )
----
805

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2478
SELECT - 42, CAST( + 31 AS SIGNED ) AS col0
----
-42
31

skipif mysql # not compatible
query II rowsort label-2478
SELECT - 42, CAST ( + 31 AS INTEGER ) AS col0
----
-42
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT COALESCE ( - 89, - COUNT( * ) ) - + 96 AS col1
----
-185

skipif mysql # not compatible
query I rowsort label-2479
SELECT COALESCE ( - 89, - COUNT ( * ) ) - + 96 AS col1
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2480
SELECT DISTINCT + - COUNT( * ) * 69 DIV - - 3 + - 77
----
-100

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT + - COUNT ( * ) * 69 / - - 3 + - 77
----
-100

query I rowsort
SELECT 19 * + 15 AS col0
----
285

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2482
SELECT ALL + 25 DIV - CASE + 61 WHEN - + 39 + 56 + + 56 THEN NULL WHEN + CAST( NULL AS DECIMAL ) THEN NULL ELSE - + 3 * 27 END col0
----
0

skipif mysql # not compatible
query I rowsort label-2482
SELECT ALL + 25 / - CASE + 61 WHEN - + 39 + 56 + + 56 THEN NULL WHEN + CAST ( NULL AS REAL ) THEN NULL ELSE - + 3 * 27 END col0
----
0

query I rowsort
SELECT DISTINCT + + 36 - - 12 AS col1
----
48

query I rowsort
SELECT 11 - - 86
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2485
SELECT ALL + + CAST( + - ( - CASE WHEN NOT - 7 IS NULL THEN NULL ELSE + - COUNT( * ) + + CAST( NULL AS SIGNED ) - - - CAST( NULL AS SIGNED ) / - 78 / 64 / 59 END ) AS SIGNED ) / - 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL + + CAST ( + - ( - CASE WHEN NOT - 7 IS NULL THEN NULL ELSE + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - - CAST ( NULL AS INTEGER ) / - 78 / 64 / 59 END ) AS INTEGER ) / - 19 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2486
SELECT ( - + CAST( - 91 AS SIGNED ) ) * CAST( - - AVG ( ALL + 1 ) AS SIGNED ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2486
SELECT ( - + CAST ( - 91 AS INTEGER ) ) * CAST ( - - AVG ( ALL + 1 ) AS INTEGER ) AS col0
----
91

query I rowsort
SELECT + 82 * 25 * - - 69
----
141450

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

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

query I rowsort
SELECT ALL 48 * 44 - 77
----
2035

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT 67 * + COALESCE ( 47, 41 DIV + - 78 * + 6 ) AS col1
----
3149

skipif mysql # not compatible
query I rowsort label-2490
SELECT 67 * + COALESCE ( 47, 41 / + - 78 * + 6 ) AS col1
----
3149

query I rowsort
SELECT + NULLIF ( - 66, 25 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT COALESCE ( + 17, + - 58 - - ( - + MAX( - ( - 66 ) ) ) + + 21 - + ( - + 13 ) ) + + COUNT( * ) col0
----
18

skipif mysql # not compatible
query I rowsort label-2492
SELECT COALESCE ( + 17, + - 58 - - ( - + MAX ( - ( - 66 ) ) ) + + 21 - + ( - + 13 ) ) + + COUNT ( * ) col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT ( 20 ) * MAX( - - 89 )
----
1780

skipif mysql # not compatible
query I rowsort label-2493
SELECT ( 20 ) * MAX ( - - 89 )
----
1780

query I rowsort
SELECT 56 - 35 * - 6 + 19 AS col1
----
285

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT + COUNT( * ) AS col0, + 58 + - + 6 * MIN( ALL - 14 ) * + 55 * + - 50 col0
----
1
-230942

skipif mysql # not compatible
query II rowsort label-2495
SELECT + COUNT ( * ) AS col0, + 58 + - + 6 * MIN ( ALL - 14 ) * + 55 * + - 50 col0
----
1
-230942

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2496
SELECT CASE - 82 WHEN + 93 / 74 THEN - - 26 END / - - CASE - CAST( + - ( - 97 ) AS DECIMAL ) WHEN CAST( 0 AS SIGNED ) * 17 THEN + 57 / - 52 END + - ( 45 + - CAST( NULL AS SIGNED ) ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT CASE - 82 WHEN + 93 / 74 THEN - - 26 END / - - CASE - CAST ( + - ( - 97 ) AS REAL ) WHEN CAST ( 0 AS INTEGER ) * 17 THEN + 57 / - 52 END + - ( 45 + - CAST ( NULL AS INTEGER ) ) * 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ALL 1 * - 87 + - COUNT( * ) + - 39 + + + 1
----
-126

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL 1 * - 87 + - COUNT ( * ) + - 39 + + + 1
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT + 14 * 59 + + 30 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT + 14 * 59 + + 30 * - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2499
SELECT ( + CAST ( NULL AS INTEGER ) ) * - 50 + 57 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2500
SELECT + NULLIF ( - - 21, + CASE + 4 WHEN + 4 / COALESCE ( + + MAX( 77 ), - - COUNT( * ), - CAST( NULL AS SIGNED ) - - + 72 + + 97 * 84, + 2 - 14 / + 88 ) - 73 THEN 78 * 21 + - ( + 24 + - 51 ) * + 67 END ) col0
----
21

skipif mysql # not compatible
query I rowsort label-2500
SELECT + NULLIF ( - - 21, + CASE + 4 WHEN + 4 / COALESCE ( + + MAX ( 77 ), - - COUNT ( * ), - CAST ( NULL AS INTEGER ) - - + 72 + + 97 * 84, + 2 - 14 / + 88 ) - 73 THEN 78 * 21 + - ( + 24 + - 51 ) * + 67 END ) col0
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-2501
SELECT ALL - 46, 7 DIV + - 97 AS col1
----
-46
0

skipif mysql # not compatible
query II rowsort label-2501
SELECT ALL - 46, 7 / + - 97 AS col1
----
-46
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2502
SELECT ALL COUNT( * ) * 60 + 5 DIV - + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL COUNT ( * ) * 60 + 5 / - + COUNT ( * )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2503
SELECT ALL - COALESCE ( + 73, - 57 + - 7 - 77 * + 75 + + 22 * 98 * NULLIF ( + 64, MAX( - CAST( NULL AS SIGNED ) ) ) ) + NULLIF ( 96, - COALESCE ( COALESCE ( NULLIF ( + 81, 52 ), - CASE 79 WHEN - 20 THEN 64 + CAST( - 49 AS SIGNED ) ELSE 56 + + 49 END * + 84 + - 33 * + 31, + ( + 10 ) * 14 - + 29 * + 79, + CASE + COUNT( * ) WHEN 58 THEN NULL WHEN 45 / - NULLIF ( + 18, - 6 ) THEN 85 / 17 - + 83 / - COUNT( DISTINCT + 71 / 39 ) END + - ( 16 ) / + COALESCE ( SUM( ALL - 42 ) * + 38, 47 ) ), 19 ) ) * 92 AS col0
----
8759

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL - COALESCE ( + 73, - 57 + - 7 - 77 * + 75 + + 22 * 98 * NULLIF ( + 64, MAX ( - CAST ( NULL AS INTEGER ) ) ) ) + NULLIF ( 96, - COALESCE ( COALESCE ( NULLIF ( + 81, 52 ), - CASE 79 WHEN - 20 THEN 64 + CAST ( - 49 AS INTEGER ) ELSE 56 + + 49 END * + 84 + - 33 * + 31, + ( + 10 ) * 14 - + 29 * + 79, + CASE + COUNT ( * ) WHEN 58 THEN NULL WHEN 45 / - NULLIF ( + 18, - 6 ) THEN 85 / 17 - + 83 / - COUNT ( DISTINCT + 71 / 39 ) END + - ( 16 ) / + COALESCE ( SUM ( ALL - 42 ) * + 38, 47 ) ), 19 ) ) * 92 AS col0
----
8759

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT + 84 - - SUM( DISTINCT + - CASE + 96 WHEN + 67 THEN 3 END ) + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT + 84 - - SUM ( DISTINCT + - CASE + 96 WHEN + 67 THEN 3 END ) + - 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2505
SELECT ALL + 36 col0, + CASE 5 WHEN - COUNT( * ) + 71 / + 36 * COUNT( * ) + + COUNT( * ) THEN - - ( + CAST( NULL AS SIGNED ) ) + - + 18 WHEN 11 * 6 THEN NULL ELSE 62 END + - 58
----
36
4

skipif mysql # not compatible
query II rowsort label-2505
SELECT ALL + 36 col0, + CASE 5 WHEN - COUNT ( * ) + 71 / + 36 * COUNT ( * ) + + COUNT ( * ) THEN - - ( + CAST ( NULL AS INTEGER ) ) + - + 18 WHEN 11 * 6 THEN NULL ELSE 62 END + - 58
----
36
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT + ( + CAST( - - CAST( - CAST( ( + 20 ) AS SIGNED ) AS SIGNED ) AS SIGNED ) ) + - - 32
----
12

skipif mysql # not compatible
query I rowsort label-2506
SELECT + ( + CAST ( - - CAST ( - CAST ( ( + 20 ) AS INTEGER ) AS INTEGER ) AS INTEGER ) ) + - - 32
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT - 75 * 90 - - 24 * - - COUNT( * ) * - + 20 * - 27 * + MAX( ALL + 39 ) * MAX( DISTINCT - 1 ) AS col2
----
-512190

skipif mysql # not compatible
query I rowsort label-2507
SELECT - 75 * 90 - - 24 * - - COUNT ( * ) * - + 20 * - 27 * + MAX ( ALL + 39 ) * MAX ( DISTINCT - 1 ) AS col2
----
-512190

query I rowsort
SELECT + ( + 60 ) * - + 14 AS col1
----
-840

onlyif mysql # DIV for integer division: 
query II rowsort label-2509
SELECT + 83, 30 DIV - ( + 15 ) AS col2
----
83
-2

skipif mysql # not compatible
query II rowsort label-2509
SELECT + 83, 30 / - ( + 15 ) AS col2
----
83
-2

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

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

query II rowsort
SELECT + 37, 66 AS col2
----
37
66

query I rowsort
SELECT - 13 + + 4 AS col0
----
-9

query I rowsort
SELECT + 24 + + + 18 AS col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2514
SELECT DISTINCT 89 * + + COUNT( * ) col0, + ( - 43 )
----
89
-43

skipif mysql # not compatible
query II rowsort label-2514
SELECT DISTINCT 89 * + + COUNT ( * ) col0, + ( - 43 )
----
89
-43

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2517
SELECT 62 col1, - 48 * - MAX( - 61 )
----
62
-2928

skipif mysql # not compatible
query II rowsort label-2517
SELECT 62 col1, - 48 * - MAX ( - 61 )
----
62
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL + 96 * - - COUNT( ALL 38 )
----
96

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + 96 * - - COUNT ( ALL 38 )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2519
SELECT - - 91 * ( COUNT( * ) ) * + - 29 col1, - 53
----
-2639
-53

skipif mysql # not compatible
query II rowsort label-2519
SELECT - - 91 * ( COUNT ( * ) ) * + - 29 col1, - 53
----
-2639
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT ALL - CASE WHEN 86 BETWEEN - - AVG ( ALL - 94 ) - - 0 AND ( + + 20 * - - 22 / - 11 + 31 * - AVG ( - 46 ) + + 8 + CAST( NULL AS SIGNED ) ) THEN - 43 * 92 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL - CASE WHEN 86 BETWEEN - - AVG ( ALL - 94 ) - - 0 AND ( + + 20 * - - 22 / - 11 + 31 * - AVG ( - 46 ) + + 8 + CAST ( NULL AS INTEGER ) ) THEN - 43 * 92 END AS col1
----
NULL

query I rowsort
SELECT + + 79 + - 70
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2522
SELECT ALL - 54 AS col1, 18 + - NULLIF ( 36, - COUNT( * ) )
----
-54
-18

skipif mysql # not compatible
query II rowsort label-2522
SELECT ALL - 54 AS col1, 18 + - NULLIF ( 36, - COUNT ( * ) )
----
-54
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2523
SELECT - 66 DIV + 65
----
-1

skipif mysql # not compatible
query I rowsort label-2523
SELECT - 66 / + 65
----
-1

query I rowsort
SELECT - 75 + + - 53
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT + 2 * COUNT( * ) + - + 62
----
-60

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT + 2 * COUNT ( * ) + - + 62
----
-60

query I rowsort
SELECT DISTINCT + 91 + 40 * - + 68 AS col1
----
-2629

query I rowsort
SELECT ALL + 33 + + 17
----
50

query I rowsort
SELECT - - 64 + + COALESCE ( + 55, + - 91, + 31 ) * - 45 * 15 AS col2
----
-37061

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2529
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - CAST ( NULL AS REAL ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT - + 72 + - 43 col1
----
-115

query I rowsort
SELECT + NULLIF ( - 55, + 59 / 72 * + 3 - + 50 ) AS col1
----
-55

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

skipif mysql # not compatible
query I rowsort label-2532
SELECT - 62 * + CAST ( NULL AS INTEGER ) + + 69
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2533
SELECT ALL 54 DIV + 23 + - 29 col0
----
-27

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL 54 / + 23 + - 29 col0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2534
SELECT 46 DIV + 89 + + 62 + 29 + - 18 * + ( - 48 )
----
955

skipif mysql # not compatible
query I rowsort label-2534
SELECT 46 / + 89 + + 62 + 29 + - 18 * + ( - 48 )
----
955

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT - 38 + - MAX( ALL - 47 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2535
SELECT - 38 + - MAX ( ALL - 47 ) AS col0
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT + 47 * - 16 * - 8 + 46 - - 38 * - - COUNT( * ) AS col2
----
6100

skipif mysql # not compatible
query I rowsort label-2537
SELECT + 47 * - 16 * - 8 + 46 - - 38 * - - COUNT ( * ) AS col2
----
6100

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL 60 * + COUNT( * ) * 32 + - ( + 29 ) AS col0
----
1891

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL 60 * + COUNT ( * ) * 32 + - ( + 29 ) AS col0
----
1891

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2540
SELECT - CAST( NULL AS SIGNED ) * + - 7 AS col0, 24 col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-2540
SELECT - CAST ( NULL AS INTEGER ) * + - 7 AS col0, 24 col2
----
NULL
24

query I rowsort
SELECT + 42 + + - 64
----
-22

query I rowsort
SELECT + 18 * + 50 AS col2
----
900

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2543
SELECT DISTINCT COALESCE ( + 43, - + 41 DIV + - CAST( - 61 AS SIGNED ) + + 70 ) DIV - - 21 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT COALESCE ( + 43, - + 41 / + - CAST ( - 61 AS INTEGER ) + + 70 ) / - - 21 AS col1
----
2

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2545
SELECT DISTINCT COALESCE ( - + CASE + - ( + - 54 ) WHEN + 85 THEN + COUNT( * ) + - 70 + + 34 * - 52 * + 70 + COUNT( * ) + 29 WHEN 79 - 96 THEN + COUNT( + CAST( 17 AS DECIMAL ) ) * ( - ( + COALESCE ( 30, + 67 + ( 83 ) DIV - 77 ) ) * COUNT( * ) ) ELSE NULL END, - 83 * + COUNT( * ) + + 87 )
----
4

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT COALESCE ( - + CASE + - ( + - 54 ) WHEN + 85 THEN + COUNT ( * ) + - 70 + + 34 * - 52 * + 70 + COUNT ( * ) + 29 WHEN 79 - 96 THEN + COUNT ( + CAST ( 17 AS REAL ) ) * ( - ( + COALESCE ( 30, + 67 + ( 83 ) / - 77 ) ) * COUNT ( * ) ) ELSE NULL END, - 83 * + COUNT ( * ) + + 87 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT DISTINCT COUNT( DISTINCT + 46 ) * + 30
----
30

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT COUNT ( DISTINCT + 46 ) * + 30
----
30

query I rowsort
SELECT + 37 * + 67 * ( + 50 )
----
123950

query I rowsort
SELECT + ( - + 4 ) + - 11 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2549
SELECT - 20 DIV - - 36
----
0

skipif mysql # not compatible
query I rowsort label-2549
SELECT - 20 / - - 36
----
0

query I rowsort
SELECT + + 42 * - + 33 * + 50 AS col2
----
-69300

query I rowsort
SELECT + 64 - - ( + 29 ) AS col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2552
SELECT ALL NULLIF ( 37, - NULLIF ( 87, - 93 - - 68 + COUNT( * ) ) ) AS col0, + 97 * 27 + CAST( NULL AS SIGNED ) AS col2
----
37
NULL

skipif mysql # not compatible
query II rowsort label-2552
SELECT ALL NULLIF ( 37, - NULLIF ( 87, - 93 - - 68 + COUNT ( * ) ) ) AS col0, + 97 * 27 + CAST ( NULL AS INTEGER ) AS col2
----
37
NULL

query II rowsort
SELECT DISTINCT + + 56 + 79 col1, - 21
----
135
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT ALL - + 94 + - 4 DIV - 99
----
-94

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL - + 94 + - 4 / - 99
----
-94

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

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL 70 + 64 - CAST ( NULL AS INTEGER )
----
NULL

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

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

query II rowsort
SELECT - + ( + 13 ) AS col2, 2 AS col0
----
-13
2

query I rowsort
SELECT COALESCE ( + 27, - 69 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL 92 + + COUNT( * ) + COALESCE ( + 54, + COUNT( * ) )
----
147

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL 92 + + COUNT ( * ) + COALESCE ( + 54, + COUNT ( * ) )
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2560
SELECT - 93 * - 53 + + 1 + 54 + - 6 + - 5 * + - COUNT( * ) DIV - 68 AS col2
----
4978

skipif mysql # not compatible
query I rowsort label-2560
SELECT - 93 * - 53 + + 1 + 54 + - 6 + - 5 * + - COUNT ( * ) / - 68 AS col2
----
4978

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2561
SELECT ALL CAST( NULL AS SIGNED ), 23 DIV + + 89 + + 68 AS col0
----
NULL
68

skipif mysql # not compatible
query II rowsort label-2561
SELECT ALL CAST ( NULL AS INTEGER ), 23 / + + 89 + + 68 AS col0
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL 20 - + - COUNT( * ) * + 11 - - 51 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL 20 - + - COUNT ( * ) * + 11 - - 51 AS col0
----
82

query II rowsort
SELECT DISTINCT - 52, 49 AS col1
----
-52
49

query II rowsort
SELECT ALL - 29 AS col2, + 93 col2
----
-29
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2565
SELECT 0 DIV - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT 0 / - 26 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2566
SELECT ALL - NULLIF ( + SUM( - 99 ), + - NULLIF ( 16, ( 68 ) + + 16 * + - 41 ) ), - 28 + COUNT( * ) AS col2
----
99
-27

skipif mysql # not compatible
query II rowsort label-2566
SELECT ALL - NULLIF ( + SUM ( - 99 ), + - NULLIF ( 16, ( 68 ) + + 16 * + - 41 ) ), - 28 + COUNT ( * ) AS col2
----
99
-27

query I rowsort
SELECT 74 + 4 + 79 AS col2
----
157

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

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

query II rowsort
SELECT 7 col0, 96 col2
----
7
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT 52 * 57 DIV + ( + 30 ) + + 26
----
124

skipif mysql # not compatible
query I rowsort label-2570
SELECT 52 * 57 / + ( + 30 ) + + 26
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT ALL - 79 DIV 51 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL - 79 / 51 AS col0
----
-1

query I rowsort
SELECT - 67 * - 95 * 14 + - 81
----
89029

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

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

query II rowsort
SELECT ALL - 45, + 81 AS col0
----
-45
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2575
SELECT ALL CAST( 64 AS SIGNED ) * + 87, MAX( DISTINCT - ( + 34 ) ) + + CAST( NULL AS SIGNED ) AS col1
----
5568
NULL

skipif mysql # not compatible
query II rowsort label-2575
SELECT ALL CAST ( 64 AS INTEGER ) * + 87, MAX ( DISTINCT - ( + 34 ) ) + + CAST ( NULL AS INTEGER ) AS col1
----
5568
NULL

query I rowsort
SELECT ALL + 7 * 0 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2578
SELECT 35 - + MIN( + 52 ) * 39 * - - CAST( NULL AS SIGNED ) + + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT 35 - + MIN ( + 52 ) * 39 * - - CAST ( NULL AS INTEGER ) + + 79 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 90 * 22 * 7 AS col0
----
13860

query I rowsort
SELECT 9 + - ( ( + 57 ) )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT - ( 64 ) * 26 + ( + + CASE + + 99 WHEN + 64 THEN NULL WHEN 36 THEN NULL ELSE + 24 DIV - 75 END )
----
-1664

skipif mysql # not compatible
query I rowsort label-2581
SELECT - ( 64 ) * 26 + ( + + CASE + + 99 WHEN + 64 THEN NULL WHEN 36 THEN NULL ELSE + 24 / - 75 END )
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT COUNT( * ) * + COALESCE ( + - 96, + 62 ) + 18 + + 42
----
-36

skipif mysql # not compatible
query I rowsort label-2582
SELECT COUNT ( * ) * + COALESCE ( + - 96, + 62 ) + 18 + + 42
----
-36

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 50 + + - NULLIF ( + 63, + + 86 + + + 71 ) col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL + + 88 + - 39 * 86 + - COUNT( ALL - 54 )
----
-3267

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + + 88 + - 39 * 86 + - COUNT ( ALL - 54 )
----
-3267

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2589
SELECT ALL COALESCE ( 86, - + 96 - - 95 + - - 95 ) + COUNT( * ), 83 AS col1
----
87
83

skipif mysql # not compatible
query II rowsort label-2589
SELECT ALL COALESCE ( 86, - + 96 - - 95 + - - 95 ) + COUNT ( * ), 83 AS col1
----
87
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL + SUM( 96 ) + + MAX( DISTINCT + 23 ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + SUM ( 96 ) + + MAX ( DISTINCT + 23 ) AS col0
----
119

query II rowsort
SELECT DISTINCT - 16 AS col1, 49
----
-16
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2592
SELECT CAST( - 23 AS SIGNED ) + + + 48
----
25

skipif mysql # not compatible
query I rowsort label-2592
SELECT CAST ( - 23 AS INTEGER ) + + + 48
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT - 43 - 21 + - ( + 6 ) * 63 + MIN( 82 ) * + 38 + 22 + - 30 AS col0
----
2666

skipif mysql # not compatible
query I rowsort label-2593
SELECT - 43 - 21 + - ( + 6 ) * 63 + MIN ( 82 ) * + 38 + 22 + - 30 AS col0
----
2666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2594
SELECT ALL CAST( NULL AS SIGNED ), + 97 + + MIN( + 64 ) + + - 76 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-2594
SELECT ALL CAST ( NULL AS INTEGER ), + 97 + + MIN ( + 64 ) + + - 76 AS col1
----
NULL
85

query I rowsort
SELECT 21 + - + 10 + - 45 AS col0
----
-34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2597
SELECT ALL + CASE + 56 WHEN - + 4 THEN - COUNT( * ) * + - 22 * + 9 + + CAST( NULL AS SIGNED ) ELSE NULL END * + 71 AS col0, 97
----
NULL
97

skipif mysql # not compatible
query II rowsort label-2597
SELECT ALL + CASE + 56 WHEN - + 4 THEN - COUNT ( * ) * + - 22 * + 9 + + CAST ( NULL AS INTEGER ) ELSE NULL END * + 71 AS col0, 97
----
NULL
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT 10 + - + 84 + CAST( 96 AS SIGNED ) + + ( + - 7 )
----
15

skipif mysql # not compatible
query I rowsort label-2598
SELECT 10 + - + 84 + CAST ( 96 AS INTEGER ) + + ( + - 7 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT - MIN( - 82 ) / - 20 + NULLIF ( - CAST( NULL AS SIGNED ), 8 ) + - 4 * + 57 + - - ( - + 44 ) + + 90 + + 46 * + COALESCE ( - 36, + 24 ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT - MIN ( - 82 ) / - 20 + NULLIF ( - CAST ( NULL AS INTEGER ), 8 ) + - 4 * + 57 + - - ( - + 44 ) + + 90 + + 46 * + COALESCE ( - 36, + 24 ) * + 20
----
NULL

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

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

query I rowsort
SELECT 29 + - - 4 + 62 + ( - 53 ) * - 76 AS col0
----
4123

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT MAX( 9 ) AS col2, 80 AS col2
----
9
80

skipif mysql # not compatible
query II rowsort label-2602
SELECT MAX ( 9 ) AS col2, 80 AS col2
----
9
80

query II rowsort
SELECT ALL 31 * 20 AS col2, - 9 * + 29
----
620
-261

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ALL + COUNT( * ) + - + 13 + + - 48 col0
----
-60

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL + COUNT ( * ) + - + 13 + + - 48 col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2606
SELECT CAST( NULL AS DECIMAL ) * - SUM( - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2606
SELECT CAST ( NULL AS REAL ) * - SUM ( - 39 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2607
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 25 + MAX( ALL + 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 25 + MAX ( ALL + 16 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2608
SELECT + NULLIF ( + - COALESCE ( 24, 94 * - - 73, + ( + 15 ) - + 98 ), - 37 + + - CASE - 30 WHEN + 32 + 2 - - 0 + 23 * 55 THEN 74 ELSE CAST( - 29 AS SIGNED ) END )
----
-24

skipif mysql # not compatible
query I rowsort label-2608
SELECT + NULLIF ( + - COALESCE ( 24, 94 * - - 73, + ( + 15 ) - + 98 ), - 37 + + - CASE - 30 WHEN + 32 + 2 - - 0 + 23 * 55 THEN 74 ELSE CAST ( - 29 AS INTEGER ) END )
----
-24

query I rowsort
SELECT ALL - - 15 + - + 67 * + - 42 + + 99
----
2928

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT ALL + 37 DIV 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL + 37 / 58 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2611
SELECT COUNT( * ) * - 51 + 89 + - 49 DIV 54 * + ( - 42 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2611
SELECT COUNT ( * ) * - 51 + 89 + - 49 / 54 * + ( - 42 ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL - + 48 + + COUNT( * ) + 22 + 35 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - + 48 + + COUNT ( * ) + 22 + 35 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT - CASE + 44 WHEN COUNT( * ) * + - 67 THEN - CASE - 27 WHEN 36 THEN - 30 END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT - CASE + 44 WHEN COUNT ( * ) * + - 67 THEN - CASE - 27 WHEN 36 THEN - 30 END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2614
SELECT ALL 99 + COUNT( * ) * - 95 * - ( - 70 ) AS col2, 98 * + - 14
----
-6551
-1372

skipif mysql # not compatible
query II rowsort label-2614
SELECT ALL 99 + COUNT ( * ) * - 95 * - ( - 70 ) AS col2, 98 * + - 14
----
-6551
-1372

query I rowsort
SELECT DISTINCT - 79 + - 10 AS col2
----
-89

query I rowsort
SELECT NULLIF ( - 17, 71 ) + 33 + 89 AS col0
----
105

query I rowsort
SELECT + 48 * 18 + 26 AS col0
----
890

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

query I rowsort
SELECT DISTINCT - 39 - + 12 + - + ( - NULLIF ( - 35, + + 9 ) ) + - 3 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - + COUNT( - - 50 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2620
SELECT - + COUNT ( - - 50 ) AS col2
----
-1

query I rowsort
SELECT ALL CASE + - 76 WHEN - - 64 THEN NULL ELSE - 13 * - - 73 + + 66 END AS col1
----
-883

query I rowsort
SELECT DISTINCT 91 - + + 19 * + + 85
----
-1524

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT - MIN( DISTINCT + + 13 ) * - COUNT( * ) - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-2623
SELECT - MIN ( DISTINCT + + 13 ) * - COUNT ( * ) - COUNT ( * )
----
12

query I rowsort
SELECT ALL 67 * + - 82
----
-5494

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT + 49 - + ( + 70 ) - - SUM( DISTINCT - 30 ) + 39
----
-12

skipif mysql # not compatible
query I rowsort label-2625
SELECT + 49 - + ( + 70 ) - - SUM ( DISTINCT - 30 ) + 39
----
-12

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

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

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

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

query II rowsort
SELECT ALL 64 AS col0, - 66
----
64
-66

query I rowsort
SELECT + 25 * + ( + 84 ) * - - 28 + - 83 * + ( 53 ) + 81 AS col0
----
54482

query I rowsort
SELECT ALL + 80 * - 13
----
-1040

query I rowsort
SELECT ALL 90 * + 68 * + ( - 92 )
----
-563040

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ( - CASE - 96 WHEN + + CASE 68 WHEN - 72 THEN ( ( - SUM( ALL + 47 ) ) ) ELSE - 91 END + 76 - 54 * + - 30 THEN + 87 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT ( - CASE - 96 WHEN + + CASE 68 WHEN - 72 THEN ( ( - SUM ( ALL + 47 ) ) ) ELSE - 91 END + 76 - 54 * + - 30 THEN + 87 END )
----
NULL

query I rowsort
SELECT + 95 - 5 + - 15 * 90
----
-1260

query I rowsort
SELECT + 54 * 57 AS col2
----
3078

query I rowsort
SELECT DISTINCT - 67 * + 48 + + 74
----
-3142

query I rowsort
SELECT ALL + 34 * - - 48 + - 84 * + + 43
----
-1980

query I rowsort
SELECT - 24 * + 81 * 60
----
-116640

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT 17 * - 59 + + + 26 * CASE + 90 WHEN - 62 * - 22 THEN NULL WHEN - 52 THEN NULL ELSE COUNT( * ) * 66 END
----
713

skipif mysql # not compatible
query I rowsort label-2638
SELECT 17 * - 59 + + + 26 * CASE + 90 WHEN - 62 * - 22 THEN NULL WHEN - 52 THEN NULL ELSE COUNT ( * ) * 66 END
----
713

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - 78 / + MIN( ALL + 10 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - 78 / + MIN ( ALL + 10 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + 25, - 36 ) * - 85
----
2125

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

skipif mysql # not compatible
query I rowsort label-2641
SELECT - 4 * ( + 81 ) + + - ( - COUNT ( * ) ) / - 67
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL - + ( - 18 ) * + - COUNT( * ) + - + COUNT( * ) * - ( + + 78 ) * 6
----
450

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - + ( - 18 ) * + - COUNT ( * ) + - + COUNT ( * ) * - ( + + 78 ) * 6
----
450

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2644
SELECT ALL + 67 AS col0, - CAST( NULL AS SIGNED ) AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-2644
SELECT ALL + 67 AS col0, - CAST ( NULL AS INTEGER ) AS col0
----
67
NULL

query II rowsort
SELECT + NULLIF ( 3, + 1 ), - ( + - 77 ) + + 16 AS col0
----
3
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2646
SELECT ALL + 56 * - + CAST( COUNT( * ) AS SIGNED ) + + - 81 * - + COALESCE ( + - CAST( NULL AS DECIMAL ), - + ( + - ( + 60 ) ) + 57 ) + + 96 + + - COUNT( * ) * - 78 + - 9 * 29 * + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL + 56 * - + CAST ( COUNT ( * ) AS INTEGER ) + + - 81 * - + COALESCE ( + - CAST ( NULL AS REAL ), - + ( + - ( + 60 ) ) + 57 ) + + 96 + + - COUNT ( * ) * - 78 + - 9 * 29 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 16 * + 61 + 78 + 7 AS col0
----
1061

query I rowsort
SELECT ALL + 70 * - - 56 - 43 AS col0
----
3877

onlyif mysql # DIV for integer division: 
query I rowsort label-2649
SELECT DISTINCT + 92 DIV - - 36
----
2

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT + 92 / - - 36
----
2

query I rowsort
SELECT - 2 * - 93
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2651
SELECT ALL + + COALESCE ( - 15, - - 27 + 20 + 1 + - 13 + ( + COUNT( ALL - - 33 ) ) ) DIV 52 + SUM( DISTINCT + - 47 ) + NULLIF ( MAX( - CAST( + 50 AS SIGNED ) ), + 55 DIV 87 ) + - 21 DIV + MIN( 84 )
----
-97

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL + + COALESCE ( - 15, - - 27 + 20 + 1 + - 13 + ( + COUNT ( ALL - - 33 ) ) ) / 52 + SUM ( DISTINCT + - 47 ) + NULLIF ( MAX ( - CAST ( + 50 AS INTEGER ) ), + 55 / 87 ) + - 21 / + MIN ( 84 )
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT DISTINCT + 48 DIV + 26
----
1

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT + 48 / + 26
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT DISTINCT 20 DIV 13 * - 64 * - 29 AS col1
----
1856

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT 20 / 13 * - 64 * - 29 AS col1
----
1856

query I rowsort
SELECT - - COALESCE ( - - 37, - 2 - - + 47 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT - - COUNT( * ) * - COALESCE ( + 94, + 97 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2655
SELECT - - COUNT ( * ) * - COALESCE ( + 94, + 97 ) AS col2
----
-94

query I rowsort
SELECT ALL + NULLIF ( - 76, 20 ) AS col2
----
-76

query I rowsort
SELECT - ( 4 ) - 86 + - - 70 * + 28 * + 26 * + 41 AS col0
----
2089270

query I rowsort
SELECT - 20 + - 64 AS col2
----
-84

query I rowsort
SELECT ALL + 93 * - + 11 * - 82
----
83886

query I rowsort
SELECT + 38 * - 19
----
-722

query I rowsort
SELECT - NULLIF ( + 44, 95 * + - 43 + - 4 ) + + + 40 col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT - 26 + + - 16 * SUM( DISTINCT 95 )
----
-1546

skipif mysql # not compatible
query I rowsort label-2662
SELECT - 26 + + - 16 * SUM ( DISTINCT 95 )
----
-1546

query II rowsort
SELECT DISTINCT ( + 22 ) col1, + 87 * - 18 * - + 12 * - CASE + 65 WHEN 17 THEN NULL ELSE + 20 END
----
22
-375840

query II rowsort
SELECT DISTINCT ( - 75 ) AS col0, 37 col1
----
-75
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT DISTINCT + 66 + + - 8 + - MIN( ALL + 20 ) col1
----
38

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT + 66 + + - 8 + - MIN ( ALL + 20 ) col1
----
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL + NULLIF ( - COUNT( * ), 29 ) + - 94 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL + NULLIF ( - COUNT ( * ), 29 ) + - 94 AS col2
----
-95

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2669
SELECT ALL - 40 DIV 85 + + 89 * - - COUNT( * ) * - 29
----
-2581

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - 40 / 85 + + 89 * - - COUNT ( * ) * - 29
----
-2581

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT + 12 * NULLIF ( + - 57, - 24 / + 84 * 73 * - + COUNT( * ) * + COUNT( * ) * - 76 / - - 11 ) AS col1
----
-684

skipif mysql # not compatible
query I rowsort label-2670
SELECT + 12 * NULLIF ( + - 57, - 24 / + 84 * 73 * - + COUNT ( * ) * + COUNT ( * ) * - 76 / - - 11 ) AS col1
----
-684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2671
SELECT ALL - NULLIF ( + + 76, - 95 ) / - 32 + + 94 / - + CAST( NULL AS SIGNED ) + - 34 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL - NULLIF ( + + 76, - 95 ) / - 32 + + 94 / - + CAST ( NULL AS INTEGER ) + - 34 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2672
SELECT DISTINCT - 77 * - CAST( - MIN( - 39 ) AS SIGNED ) AS col2
----
3003

skipif mysql # not compatible
query I rowsort label-2672
SELECT DISTINCT - 77 * - CAST ( - MIN ( - 39 ) AS INTEGER ) AS col2
----
3003

query II rowsort
SELECT DISTINCT + 22 AS col1, + 34 col2
----
22
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2674
SELECT DISTINCT + 12 AS col2, 84 * COUNT( * ) + - 23 AS col2
----
12
61

skipif mysql # not compatible
query II rowsort label-2674
SELECT DISTINCT + 12 AS col2, 84 * COUNT ( * ) + - 23 AS col2
----
12
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2675
SELECT DISTINCT + MIN( + - 91 ) * - 92 * - - COUNT( DISTINCT + 65 ) * + + 93 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + MIN ( + - 91 ) * - 92 * - - COUNT ( DISTINCT + 65 ) * + + 93 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2676
SELECT + 17 - - 77 DIV + - 26 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2676
SELECT + 17 - - 77 / + - 26 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT + COALESCE ( COUNT( * ), + 21 * NULLIF ( 51, + 15 + - - CASE - COUNT( * ) WHEN 89 THEN 28 * + + 43 - + 80 ELSE + ( + - 62 ) * + 8 * 91 + - 13 END * 29 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2677
SELECT + COALESCE ( COUNT ( * ), + 21 * NULLIF ( 51, + 15 + - - CASE - COUNT ( * ) WHEN 89 THEN 28 * + + 43 - + 80 ELSE + ( + - 62 ) * + 8 * 91 + - 13 END * 29 ) )
----
1

query I rowsort
SELECT ALL 61 * + 70 AS col1
----
4270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2679
SELECT + 59 AS col2, + NULLIF ( + 17, 68 * CASE 10 WHEN 65 THEN NULL WHEN + - 95 + + - 36 + COUNT( * ) + - 53 * 68 * - 32 * CAST( + 22 AS DECIMAL ) * - 5 + 11 THEN NULL ELSE + 89 END * + CAST( 75 * COUNT( + 37 ) AS DECIMAL ) + CAST( - 13 AS SIGNED ) * 7 )
----
59
17

skipif mysql # not compatible
query II rowsort label-2679
SELECT + 59 AS col2, + NULLIF ( + 17, 68 * CASE 10 WHEN 65 THEN NULL WHEN + - 95 + + - 36 + COUNT ( * ) + - 53 * 68 * - 32 * CAST ( + 22 AS REAL ) * - 5 + 11 THEN NULL ELSE + 89 END * + CAST ( 75 * COUNT ( + 37 ) AS REAL ) + CAST ( - 13 AS INTEGER ) * 7 )
----
59
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT ALL + 19 DIV + 10 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL + 19 / + 10 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL + ( + + 54 ) * + + 84 + - 38 + - - COUNT( * ) * 19 + - COUNT( * )
----
4516

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + ( + + 54 ) * + + 84 + - 38 + - - COUNT ( * ) * 19 + - COUNT ( * )
----
4516

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT + 40 * COUNT( - + 84 ) * + COUNT( * ) + + 30 + - 68
----
2

skipif mysql # not compatible
query I rowsort label-2682
SELECT + 40 * COUNT ( - + 84 ) * + COUNT ( * ) + + 30 + - 68
----
2

query I rowsort
SELECT DISTINCT - 2 * - - ( - - 40 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL + 69 * + MIN( + + ( + 37 ) ) + + 31 AS col0
----
2584

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + 69 * + MIN ( + + ( + 37 ) ) + + 31 AS col0
----
2584

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2685
SELECT + 10 + + ( - COALESCE ( - - 99, + COUNT( * ) * + - 34 - + - 69 * - 14 * + 29 DIV 58 + 51 * + ( - COUNT( * ) ) * 24 + COUNT( * ) + 64 + + 59, - COUNT( * ) * NULLIF ( SUM( DISTINCT - 19 ) * + 41, + 60 * 20 ) ) )
----
-89

skipif mysql # not compatible
query I rowsort label-2685
SELECT + 10 + + ( - COALESCE ( - - 99, + COUNT ( * ) * + - 34 - + - 69 * - 14 * + 29 / 58 + 51 * + ( - COUNT ( * ) ) * 24 + COUNT ( * ) + 64 + + 59, - COUNT ( * ) * NULLIF ( SUM ( DISTINCT - 19 ) * + 41, + 60 * 20 ) ) )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT 99 DIV ( + 22 )
----
4

skipif mysql # not compatible
query I rowsort label-2686
SELECT 99 / ( + 22 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT 29 * 1 DIV - 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT 29 * 1 / - 95 AS col1
----
0

query I rowsort
SELECT DISTINCT - NULLIF ( - + 50, + - 79 ) + + + 97 * 29 * 67 AS col0
----
188521

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL 8 + ( SUM( ALL ( - - 4 ) ) ) * 84
----
344

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL 8 + ( SUM ( ALL ( - - 4 ) ) ) * 84
----
344

query I rowsort
SELECT ALL + ( - 93 ) * 97 AS col2
----
-9021

query I rowsort
SELECT 19 * - 34 * + 25
----
-16150

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT - 35 + + 57 + - COUNT( * ) + + 62 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - 35 + + 57 + - COUNT ( * ) + + 62 AS col1
----
83

query II rowsort
SELECT DISTINCT + 80 * - 54, 60 * - 49 AS col2
----
-4320
-2940

query I rowsort
SELECT ALL + 62 * ( + + 2 ) AS col2
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT DISTINCT - CAST( NULL AS SIGNED ) + CASE + 72 WHEN - + ( + + ( + 76 ) ) + + 16 + + 9 THEN + 6 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + CASE + 72 WHEN - + ( + + ( + 76 ) ) + + 16 + + 9 THEN + 6 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT 15 - + + 88 + + + 33 * - COUNT( * ) + - + 49 + - 47
----
-202

skipif mysql # not compatible
query I rowsort label-2696
SELECT 15 - + + 88 + + + 33 * - COUNT ( * ) + - + 49 + - 47
----
-202

query I rowsort
SELECT ALL - 90 + 23 * - 17 AS col2
----
-481

query I rowsort
SELECT 34 * 96 * 28
----
91392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2699
SELECT ALL - CAST( + SUM( ALL + 76 ) AS SIGNED ) - + 20 + + 50, MAX( 6 ) col2
----
-46
6

skipif mysql # not compatible
query II rowsort label-2699
SELECT ALL - CAST ( + SUM ( ALL + 76 ) AS INTEGER ) - + 20 + + 50, MAX ( 6 ) col2
----
-46
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT ALL 59 * + COUNT( * ) AS col0, 39 * - 66 + - 29 AS col1
----
59
-2603

skipif mysql # not compatible
query II rowsort label-2700
SELECT ALL 59 * + COUNT ( * ) AS col0, 39 * - 66 + - 29 AS col1
----
59
-2603

query I rowsort
SELECT ALL - + 66 * + 84 + - - 36 * - + 72
----
-8136

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT - MAX( DISTINCT + + 22 ) + 8
----
-14

skipif mysql # not compatible
query I rowsort label-2702
SELECT - MAX ( DISTINCT + + 22 ) + 8
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2703
SELECT + 88 DIV MIN( - 89 )
----
0

skipif mysql # not compatible
query I rowsort label-2703
SELECT + 88 / MIN ( - 89 )
----
0

query I rowsort
SELECT ALL + 34 * + - 61 AS col1
----
-2074

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT + 45 * - COUNT( * ) + + + COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2705
SELECT + 45 * - COUNT ( * ) + + + COUNT ( * ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2706
SELECT DISTINCT + 90 * + - ( 64 ) AS col2, + COUNT( * ) col1
----
-5760
1

skipif mysql # not compatible
query II rowsort label-2706
SELECT DISTINCT + 90 * + - ( 64 ) AS col2, + COUNT ( * ) col1
----
-5760
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + 28 + + - 25 * + + 10 * COUNT( * ) * 62 col1
----
-15472

skipif mysql # not compatible
query I rowsort label-2707
SELECT + 28 + + - 25 * + + 10 * COUNT ( * ) * 62 col1
----
-15472

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT - COUNT( * ) * - 67 * - 11 * + 10 AS col0
----
-7370

skipif mysql # not compatible
query I rowsort label-2708
SELECT - COUNT ( * ) * - 67 * - 11 * + 10 AS col0
----
-7370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT - 69 * + 32 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT - 69 * + 32 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 65 * + 15 col2
----
975

query I rowsort
SELECT DISTINCT - 90 + 72
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT - CASE + - ( - COALESCE ( 77, - 85, 30 * COUNT( * ) + - NULLIF ( + 85, + 87 * - COUNT( * ) + + 80 ) ) ) WHEN - COUNT( * ) THEN + 63 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT - CASE + - ( - COALESCE ( 77, - 85, 30 * COUNT ( * ) + - NULLIF ( + 85, + 87 * - COUNT ( * ) + + 80 ) ) ) WHEN - COUNT ( * ) THEN + 63 END AS col1
----
NULL

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

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

query I rowsort
SELECT DISTINCT 73 + + + ( 31 )
----
104

query II rowsort
SELECT ALL 49 col2, - 20 + - 58 * - 59
----
49
3402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT DISTINCT 55 + - 6 + 31 + - 39 * + COUNT( DISTINCT - 91 ) + CASE - + COUNT( * ) WHEN + CAST( 4 AS SIGNED ) + 67 + + 28 + - AVG ( + 12 ) - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) THEN 73 * - 46 + 64 END * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT 55 + - 6 + 31 + - 39 * + COUNT ( DISTINCT - 91 ) + CASE - + COUNT ( * ) WHEN + CAST ( 4 AS INTEGER ) + 67 + + 28 + - AVG ( + 12 ) - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) THEN 73 * - 46 + 64 END * + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL 67 + NULLIF ( - + 59, - 27 / + 80 ) - - COUNT( * ) * + 27 * - - 79 * - - 29 * - 43
----
-2659843

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL 67 + NULLIF ( - + 59, - 27 / + 80 ) - - COUNT ( * ) * + 27 * - - 79 * - - 29 * - 43
----
-2659843

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

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

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

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

query I rowsort
SELECT 38 * - 26
----
-988

query II rowsort
SELECT ALL 15 AS col1, 48
----
15
48

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2723
SELECT 45 DIV + MAX( - 45 ) * - COUNT( * ) + + 55 DIV - 95 AS col1, 75 * 14
----
1
1050

skipif mysql # not compatible
query II rowsort label-2723
SELECT 45 / + MAX ( - 45 ) * - COUNT ( * ) + + 55 / - 95 AS col1, 75 * 14
----
1
1050

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ( + - COUNT( * ) ) + + - COUNT( * ) * + - MAX( DISTINCT - 12 )
----
-13

skipif mysql # not compatible
query I rowsort label-2725
SELECT ( + - COUNT ( * ) ) + + - COUNT ( * ) * + - MAX ( DISTINCT - 12 )
----
-13

query I rowsort
SELECT 28 * + - 72
----
-2016

query I rowsort
SELECT 34 + + NULLIF ( 90, - - 64 ) col0
----
124

query I rowsort
SELECT DISTINCT - 86 * + 76
----
-6536

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT DISTINCT AVG ( DISTINCT - - 12 ) - CASE + + COUNT( * ) WHEN - 66 THEN + 43 * + COUNT( * ) END / + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT AVG ( DISTINCT - - 12 ) - CASE + + COUNT ( * ) WHEN - 66 THEN + 43 * + COUNT ( * ) END / + 82 AS col2
----
NULL

query I rowsort
SELECT 54 * - 76 AS col1
----
-4104

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2731
SELECT ALL COUNT( * ), 87 DIV 32 * + 52 AS col2
----
1
104

skipif mysql # not compatible
query II rowsort label-2731
SELECT ALL COUNT ( * ), 87 / 32 * + 52 AS col2
----
1
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2732
SELECT 69 + NULLIF ( CAST( 69 AS SIGNED ), - 34 ) * - - 87 * 39 + 43 - + - CASE 1 WHEN 99 + - + 69 * + 9 THEN NULL WHEN + COUNT( * ) * - 15 + + - 9 * + COUNT( - 1 ) * - COALESCE ( + 4 + 2, 19 ) THEN - 93 WHEN 61 THEN NULL ELSE 97 + COUNT( * ) END AS col0
----
234327

skipif mysql # not compatible
query I rowsort label-2732
SELECT 69 + NULLIF ( CAST ( 69 AS INTEGER ), - 34 ) * - - 87 * 39 + 43 - + - CASE 1 WHEN 99 + - + 69 * + 9 THEN NULL WHEN + COUNT ( * ) * - 15 + + - 9 * + COUNT ( - 1 ) * - COALESCE ( + 4 + 2, 19 ) THEN - 93 WHEN 61 THEN NULL ELSE 97 + COUNT ( * ) END AS col0
----
234327

query II rowsort
SELECT ALL 26 col0, 45 * + - 54 + - 37
----
26
-2467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT DISTINCT + CAST( - ( 61 ) AS SIGNED ) * - 30 * - + 10 AS col0
----
-18300

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT + CAST ( - ( 61 ) AS INTEGER ) * - 30 * - + 10 AS col0
----
-18300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2735
SELECT - COUNT( * ) DIV - 12 + - 70 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2735
SELECT - COUNT ( * ) / - 12 + - 70 AS col1
----
-70

query I rowsort
SELECT - 55 * + 86
----
-4730

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT DISTINCT - + 72 * MAX( DISTINCT - 76 )
----
5472

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT - + 72 * MAX ( DISTINCT - 76 )
----
5472

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

skipif mysql # not compatible
query II rowsort label-2738
SELECT - COUNT ( * ) AS col2, - 73
----
-1
-73

query I rowsort
SELECT - 13 * - 32
----
416

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT DISTINCT + COALESCE ( + + COUNT( 41 ), - - SUM( + + 66 ) + + 10 - + 39 - ( - CASE 17 WHEN 73 + 24 - + 26 * + 46 THEN - - 25 WHEN 17 + + - ( + 12 ) / 55 THEN NULL ELSE NULL END ) )
----
1

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT + COALESCE ( + + COUNT ( 41 ), - - SUM ( + + 66 ) + + 10 - + 39 - ( - CASE 17 WHEN 73 + 24 - + 26 * + 46 THEN - - 25 WHEN 17 + + - ( + 12 ) / 55 THEN NULL ELSE NULL END ) )
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT - 79 * 64 + - + 17 / + CASE - - COUNT( * ) WHEN + + 77 THEN - 4 + - COALESCE ( 97, + 49 * + - 68 + + 77 * - + MAX( DISTINCT + 83 ) * + 59 ) - + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT - 79 * 64 + - + 17 / + CASE - - COUNT ( * ) WHEN + + 77 THEN - 4 + - COALESCE ( 97, + 49 * + - 68 + + 77 * - + MAX ( DISTINCT + 83 ) * + 59 ) - + COUNT ( * ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2743
SELECT - + CAST( NULL AS SIGNED ) / + 48 * 45, MAX( + CAST( NULL AS SIGNED ) ) - + 35 / + 55 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2743
SELECT - + CAST ( NULL AS INTEGER ) / + 48 * 45, MAX ( + CAST ( NULL AS INTEGER ) ) - + 35 / + 55 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + + 25 * - 13 + MAX( ALL ( + 87 ) )
----
-238

skipif mysql # not compatible
query I rowsort label-2744
SELECT + + 25 * - 13 + MAX ( ALL ( + 87 ) )
----
-238

query I rowsort
SELECT DISTINCT - 13 * - 70 + - + 6 AS col2
----
904

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2747
SELECT + MIN( 1 ) * + ( + - 90 ) * - - ( 89 ) * + 50 * + - 33 AS col0, - 82
----
13216500
-82

skipif mysql # not compatible
query II rowsort label-2747
SELECT + MIN ( 1 ) * + ( + - 90 ) * - - ( 89 ) * + 50 * + - 33 AS col0, - 82
----
13216500
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2748
SELECT + + CAST( CASE + 43 WHEN ( + 6 ) + ( - 29 ) THEN 5 ELSE + 45 END AS SIGNED ) * - 79 DIV - - COUNT( * ) AS col0
----
-3555

skipif mysql # not compatible
query I rowsort label-2748
SELECT + + CAST ( CASE + 43 WHEN ( + 6 ) + ( - 29 ) THEN 5 ELSE + 45 END AS INTEGER ) * - 79 / - - COUNT ( * ) AS col0
----
-3555

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL - COUNT( - 62 ) * 95 + + + 39 + - - 63 * 83
----
5173

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - COUNT ( - 62 ) * 95 + + + 39 + - - 63 * 83
----
5173

query I rowsort
SELECT - + 81 - + - 93 AS col2
----
12

query I rowsort
SELECT DISTINCT 67 * - 64 * + - ( + 93 ) + + 48 AS col1
----
398832

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT + 84 * COUNT( * ) + 19 * - COUNT( * ) * - 89 + + 69 AS col1
----
1844

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT + 84 * COUNT ( * ) + 19 * - COUNT ( * ) * - 89 + + 69 AS col1
----
1844

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT DISTINCT + - MAX( ALL 66 ) * 87 * + 43 + - 24
----
-246930

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + - MAX ( ALL 66 ) * 87 * + 43 + - 24
----
-246930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2754
SELECT + 62 / - + CAST( NULL AS SIGNED ) AS col2, + 78 AS col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-2754
SELECT + 62 / - + CAST ( NULL AS INTEGER ) AS col2, + 78 AS col2
----
NULL
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL 18 * - + 55 + - COUNT( * ) AS col0
----
-991

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL 18 * - + 55 + - COUNT ( * ) AS col0
----
-991

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT + 80 * - + SUM( DISTINCT - 48 ) * - - COALESCE ( - 19, + COUNT( * ) )
----
-72960

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT + 80 * - + SUM ( DISTINCT - 48 ) * - - COALESCE ( - 19, + COUNT ( * ) )
----
-72960

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT 89 * + 90 + - COUNT( * ) AS col1
----
8009

skipif mysql # not compatible
query I rowsort label-2757
SELECT 89 * + 90 + - COUNT ( * ) AS col1
----
8009

query I rowsort
SELECT + 49 + 75
----
124

query I rowsort
SELECT + 37 * - 50
----
-1850

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

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

query I rowsort
SELECT ALL + 90 - - 64 + + + 54 * - 59 - - 74 AS col0
----
-2958

query II rowsort
SELECT ALL 83 * - + 61 col1, 12
----
-5063
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2763
SELECT ALL 95 * 21 * - COUNT( NULLIF ( 99, - CAST( NULL AS SIGNED ) ) )
----
-1995

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL 95 * 21 * - COUNT ( NULLIF ( 99, - CAST ( NULL AS INTEGER ) ) )
----
-1995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2764
SELECT ALL MAX( ALL + + COALESCE ( + 41, 95 * + + ( 24 ) + - - CAST( + + 47 AS SIGNED ) ) )
----
41

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL MAX ( ALL + + COALESCE ( + 41, 95 * + + ( 24 ) + - - CAST ( + + 47 AS INTEGER ) ) )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT - ( + + 86 ) col2, 52 * 2 * + - NULLIF ( - + 96, + 23 + - 76 ) * - COUNT( DISTINCT - + 54 ) * ( - 92 ) + + 84
----
-86
918612

skipif mysql # not compatible
query II rowsort label-2765
SELECT - ( + + 86 ) col2, 52 * 2 * + - NULLIF ( - + 96, + 23 + - 76 ) * - COUNT ( DISTINCT - + 54 ) * ( - 92 ) + + 84
----
-86
918612

query I rowsort
SELECT DISTINCT ( - ( - - 93 ) )
----
-93

query I rowsort
SELECT ALL + - 99 * 7 AS col0
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT + MAX( DISTINCT + - ( + 80 ) ) * + 29 AS col0
----
-2320

skipif mysql # not compatible
query I rowsort label-2768
SELECT + MAX ( DISTINCT + - ( + 80 ) ) * + 29 AS col0
----
-2320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2769
SELECT ALL CAST( - + SUM( 11 ) AS SIGNED ) DIV - NULLIF ( + 24, + + 81 ) * + 63 col2
----
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL CAST ( - + SUM ( 11 ) AS INTEGER ) / - NULLIF ( + 24, + + 81 ) * + 63 col2
----
0

query II rowsort
SELECT ALL + - 73 * - 52, + 45 AS col0
----
3796
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT ALL + + COALESCE ( - 62, - 8 * + 28 + 47 + 59 DIV + ( - + 28 ), + 46 ) DIV + 92 + - 74
----
-74

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL + + COALESCE ( - 62, - 8 * + 28 + 47 + 59 / + ( - + 28 ), + 46 ) / + 92 + - 74
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2772
SELECT - 78 * - 42 * - NULLIF ( + + AVG ( ALL 86 ), + + ( + 10 ) ) * 48 * 10 - + + 13 + - 78 * MAX( 1 ) - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT - 78 * - 42 * - NULLIF ( + + AVG ( ALL 86 ), + + ( + 10 ) ) * 48 * 10 - + + 13 + - 78 * MAX ( 1 ) - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT + 11 * 26 * - 10 + COALESCE ( + 49, 10 DIV + ( ( + ( + 71 ) ) ) + 42 ) DIV - 26 - - 29 AS col0
----
-2832

skipif mysql # not compatible
query I rowsort label-2773
SELECT + 11 * 26 * - 10 + COALESCE ( + 49, 10 / + ( ( + ( + 71 ) ) ) + 42 ) / - 26 - - 29 AS col0
----
-2832

query I rowsort
SELECT - + 96 * - 64 AS col1
----
6144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2775
SELECT ALL + 9 DIV - 53 + 83 DIV - + NULLIF ( - 50, ( COUNT( + 59 ) ) * - CASE - COUNT( * ) WHEN + 71 * - 82 THEN NULL WHEN - ( - COUNT( ALL 22 ) ) * + 25 DIV COUNT( * ) * + 90 + - COUNT( * ) - + COUNT( * ) * NULLIF ( - COUNT( - 55 ), COUNT( * ) ) - 69 * - 3 THEN NULL WHEN 31 THEN NULL ELSE CAST( NULL AS SIGNED ) END )
----
1

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL + 9 / - 53 + 83 / - + NULLIF ( - 50, ( COUNT ( + 59 ) ) * - CASE - COUNT ( * ) WHEN + 71 * - 82 THEN NULL WHEN - ( - COUNT ( ALL 22 ) ) * + 25 / COUNT ( * ) * + 90 + - COUNT ( * ) - + COUNT ( * ) * NULLIF ( - COUNT ( - 55 ), COUNT ( * ) ) - 69 * - 3 THEN NULL WHEN 31 THEN NULL ELSE CAST ( NULL AS INTEGER ) END )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT ALL 2 / + 15 * - + CAST( NULL AS SIGNED ) + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL 2 / + 15 * - + CAST ( NULL AS INTEGER ) + - 92
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2777
SELECT - 56 * + + CAST( NULL AS DECIMAL ) * ( 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2777
SELECT - 56 * + + CAST ( NULL AS REAL ) * ( 1 )
----
NULL

query I rowsort
SELECT - 8 + - + ( 17 ) * + ( + 85 ) + + 75 AS col1
----
-1378

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT ALL - 30 * - - 22 * + + 72 - COALESCE ( + + 75, + 93 + - 42 * 41, 79 DIV - - 46 ) DIV 70
----
-47521

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL - 30 * - - 22 * + + 72 - COALESCE ( + + 75, + 93 + - 42 * 41, 79 / - - 46 ) / 70
----
-47521

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT + CASE + COUNT( * ) WHEN 58 / - ( - 19 ) + 2 THEN + + 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT + CASE + COUNT ( * ) WHEN 58 / - ( - 19 ) + 2 THEN + + 16 ELSE NULL END
----
NULL

query I rowsort
SELECT - 13 + COALESCE ( 39, - + 91 - - + 7 + + COALESCE ( - 91, + 0 ) * - 84 ) * + 15 + + - 61
----
511

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2782
SELECT - 72 DIV 91 * 16 AS col0, + ( + MIN( 36 ) ) * + + ( - - 42 )
----
0
1512

skipif mysql # not compatible
query II rowsort label-2782
SELECT - 72 / 91 * 16 AS col0, + ( + MIN ( 36 ) ) * + + ( - - 42 )
----
0
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT - MAX( DISTINCT 96 ) * + 93 - - 74 AS col2
----
-8854

skipif mysql # not compatible
query I rowsort label-2783
SELECT - MAX ( DISTINCT 96 ) * + 93 - - 74 AS col2
----
-8854

query II rowsort
SELECT ALL + 3 * - 70 - - 66, - 19 - - - 71 AS col0
----
-144
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2785
SELECT DISTINCT CAST( - 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT CAST ( - 62 AS INTEGER )
----
-62

query I rowsort
SELECT CASE - 81 WHEN + + 71 THEN 79 WHEN - 49 THEN NULL ELSE + + 15 END * + - 68 - 59 AS col2
----
-1079

query I rowsort
SELECT - 53 + - 8 AS col0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-2788
SELECT + ( + 34 ) + 45 - - 10 DIV + + 20
----
79

skipif mysql # not compatible
query I rowsort label-2788
SELECT + ( + 34 ) + 45 - - 10 / + + 20
----
79

query I rowsort
SELECT - ( 37 ) AS col1
----
-37

query I rowsort
SELECT - 30 * - 82 AS col2
----
2460

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2792
SELECT DISTINCT 40, COUNT( ALL 39 ) + NULLIF ( - 66, + ( 16 ) ) AS col2
----
40
-65

skipif mysql # not compatible
query II rowsort label-2792
SELECT DISTINCT 40, COUNT ( ALL 39 ) + NULLIF ( - 66, + ( 16 ) ) AS col2
----
40
-65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2793
SELECT CAST( - 27 AS SIGNED ) - + + 53 AS col2, - 88
----
-80
-88

skipif mysql # not compatible
query II rowsort label-2793
SELECT CAST ( - 27 AS INTEGER ) - + + 53 AS col2, - 88
----
-80
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL 98 * COUNT( * ) + + 94
----
192

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL 98 * COUNT ( * ) + + 94
----
192

query I rowsort
SELECT ALL ( + - 78 ) col2
----
-78

query II rowsort
SELECT ALL - 30, 3 * + 64 + 64 col2
----
-30
256

query I rowsort
SELECT + 81 + - 57 * 12 AS col2
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL + NULLIF ( + COUNT( * ), MAX( DISTINCT - 80 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL + NULLIF ( + COUNT ( * ), MAX ( DISTINCT - 80 ) ) AS col1
----
1

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

query I rowsort
SELECT - 4 + 95 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL - COUNT( * ) + + - ( MIN( ALL + - 58 ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL - COUNT ( * ) + + - ( MIN ( ALL + - 58 ) ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2802
SELECT ALL ( - 64 ) + + - 92 + - + ( 11 ), CASE + MIN( - 30 ) WHEN 50 * - + 34 THEN NULL ELSE 95 + + 77 + + COUNT( * ) * - 52 END - - 53 AS col2
----
-167
173

skipif mysql # not compatible
query II rowsort label-2802
SELECT ALL ( - 64 ) + + - 92 + - + ( 11 ), CASE + MIN ( - 30 ) WHEN 50 * - + 34 THEN NULL ELSE 95 + + 77 + + COUNT ( * ) * - 52 END - - 53 AS col2
----
-167
173

query I rowsort
SELECT - 31 + + NULLIF ( - 66, + 30 )
----
-97

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

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

skipif mysql # not compatible
query I rowsort label-2805
SELECT - 75 / - COUNT ( * ) + + - 81 AS col2
----
-6

query I rowsort
SELECT ALL + 59 + - 1
----
58

query I rowsort
SELECT NULLIF ( - 74, - 17 ) * - + 77
----
5698

query I rowsort
SELECT DISTINCT + 20 * 36 * 64 AS col2
----
46080

onlyif mysql # DIV for integer division: 
query I rowsort label-2809
SELECT ALL + 9 DIV - + NULLIF ( + 16, - 25 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL + 9 / - + NULLIF ( + 16, - 25 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT 89 * 76 * 78 - MAX( 4 ) col1
----
527588

skipif mysql # not compatible
query I rowsort label-2810
SELECT 89 * 76 * 78 - MAX ( 4 ) col1
----
527588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2811
SELECT COUNT( * ) col2, COALESCE ( COUNT( * ), - + 92 * - 82 * 26 * + 2, + 76 ) * - + ( + COUNT( * ) ) + + 82 + - CASE 11 WHEN + ( + 8 ) * CASE + 37 WHEN + + 50 + + 34 THEN - 62 WHEN + 52 * 22 THEN CAST( NULL AS SIGNED ) WHEN 73 THEN NULL ELSE - CAST( NULL AS SIGNED ) * 62 END + AVG ( + 99 ) * - 10 THEN 51 ELSE NULL END * + 20 * COUNT( * ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2811
SELECT COUNT ( * ) col2, COALESCE ( COUNT ( * ), - + 92 * - 82 * 26 * + 2, + 76 ) * - + ( + COUNT ( * ) ) + + 82 + - CASE 11 WHEN + ( + 8 ) * CASE + 37 WHEN + + 50 + + 34 THEN - 62 WHEN + 52 * 22 THEN CAST ( NULL AS INTEGER ) WHEN 73 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * 62 END + AVG ( + 99 ) * - 10 THEN 51 ELSE NULL END * + 20 * COUNT ( * ) AS col0
----
1
NULL

query I rowsort
SELECT DISTINCT ( 23 ) - - 96 AS col2
----
119

query II rowsort
SELECT + 47, + 45 AS col1
----
47
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2814
SELECT ALL - 71 - - CAST( + 72 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - 71 - - CAST ( + 72 AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2815
SELECT 2 AS col1, NULLIF ( + - 86, - 97 * MAX( ALL 62 ) ) AS col2
----
2
-86

skipif mysql # not compatible
query II rowsort label-2815
SELECT 2 AS col1, NULLIF ( + - 86, - 97 * MAX ( ALL 62 ) ) AS col2
----
2
-86

query II rowsort
SELECT 38 - + + 3 AS col0, 32
----
35
32

query I rowsort
SELECT ALL 78 - + 50 * 7 AS col2
----
-272

onlyif mysql # aggregate syntax: 
query II rowsort label-2818
SELECT DISTINCT NULLIF ( + 26, - - 42 + + COUNT( * ) * + - 72 / + 58 ) * - ( ( - 77 ) ) AS col1, + 2
----
2002
2

skipif mysql # not compatible
query II rowsort label-2818
SELECT DISTINCT NULLIF ( + 26, - - 42 + + COUNT ( * ) * + - 72 / + 58 ) * - ( ( - 77 ) ) AS col1, + 2
----
2002
2

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

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

query II rowsort
SELECT DISTINCT - 92, + 8 col0
----
-92
8

query II rowsort
SELECT + 22 AS col0, 18
----
22
18

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

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT - NULLIF ( - + 74, COUNT ( * ) )
----
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2824
SELECT ALL + 73 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + 73 / 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT 44 * MAX( DISTINCT + 57 )
----
2508

skipif mysql # not compatible
query I rowsort label-2825
SELECT 44 * MAX ( DISTINCT + 57 )
----
2508

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT MAX( - + 34 ) * 60
----
-2040

skipif mysql # not compatible
query I rowsort label-2826
SELECT MAX ( - + 34 ) * 60
----
-2040

query II rowsort
SELECT - 33 AS col1, - 5 AS col2
----
-33
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2828
SELECT DISTINCT 37 AS col2, - COUNT( ALL 28 ) AS col2
----
37
-1

skipif mysql # not compatible
query II rowsort label-2828
SELECT DISTINCT 37 AS col2, - COUNT ( ALL 28 ) AS col2
----
37
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL + COUNT( * ) * - 18 col0
----
-18

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + COUNT ( * ) * - 18 col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT 69 * + CAST( NULLIF ( - 71, - - 88 ) AS SIGNED )
----
-4899

skipif mysql # not compatible
query I rowsort label-2830
SELECT 69 * + CAST ( NULLIF ( - 71, - - 88 ) AS INTEGER )
----
-4899

query I rowsort
SELECT DISTINCT + - 65 * 83 * 2 col2
----
-10790

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT - 68 + - - 77 * + - MAX( 5 ) AS col0
----
-453

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT - 68 + - - 77 * + - MAX ( 5 ) AS col0
----
-453

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT + + SUM( - 43 ) + + 18 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT + + SUM ( - 43 ) + + 18 AS col0
----
-25

query I rowsort
SELECT 65 * 4
----
260

onlyif mysql # aggregate syntax: 
query II rowsort label-2837
SELECT ALL + COUNT( * ) + + + 90 AS col0, 74 AS col0
----
91
74

skipif mysql # not compatible
query II rowsort label-2837
SELECT ALL + COUNT ( * ) + + + 90 AS col0, 74 AS col0
----
91
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT + MIN( + - 74 ) - + + 61 * - 46 + CASE + COUNT( * ) WHEN MAX( ALL - + NULLIF ( + 18, + + COALESCE ( - 90, 82 * + + 78 * - + 1 + 61 ) ) ) THEN + - 65 + + + 13 + 29 * - 28 ELSE + 94 END
----
2826

skipif mysql # not compatible
query I rowsort label-2838
SELECT + MIN ( + - 74 ) - + + 61 * - 46 + CASE + COUNT ( * ) WHEN MAX ( ALL - + NULLIF ( + 18, + + COALESCE ( - 90, 82 * + + 78 * - + 1 + 61 ) ) ) THEN + - 65 + + + 13 + 29 * - 28 ELSE + 94 END
----
2826

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT SUM( ALL + 82 ) - 11 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-2839
SELECT SUM ( ALL + 82 ) - 11 AS col1
----
71

query I rowsort
SELECT ALL + - 10 + + ( 25 ) + - + 47 AS col0
----
-32

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

skipif mysql # not compatible
query I rowsort label-2841
SELECT CAST ( NULL AS REAL ) + 91 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 93 AS col1, 66 * - 52 * - 98
----
-93
336336

query I rowsort
SELECT - 4 * - 66
----
264

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2845
SELECT + - COUNT( * ) AS col1, - 17 * 36 * - - 41 * - 56
----
-1
1405152

skipif mysql # not compatible
query II rowsort label-2845
SELECT + - COUNT ( * ) AS col1, - 17 * 36 * - - 41 * - 56
----
-1
1405152

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT - MIN( ALL 52 ) + + 42 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-2846
SELECT - MIN ( ALL 52 ) + + 42 AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2847
SELECT + 70 * 53 DIV + 16 AS col2
----
231

skipif mysql # not compatible
query I rowsort label-2847
SELECT + 70 * 53 / + 16 AS col2
----
231

query I rowsort
SELECT 34 * 86 * - + 19
----
-55556

query I rowsort
SELECT - 45 + ( - 58 ) * + 35 AS col1
----
-2075

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2850
SELECT MIN( + 63 ) AS col2, - ( + 81 ) DIV + ( + 54 ) + + 48 AS col1
----
63
47

skipif mysql # not compatible
query II rowsort label-2850
SELECT MIN ( + 63 ) AS col2, - ( + 81 ) / + ( + 54 ) + + 48 AS col1
----
63
47

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

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

query II rowsort
SELECT 35 * 49 col1, + 9 + + 11 AS col0
----
1715
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2853
SELECT - CASE + - 88 WHEN 54 THEN NULL WHEN COALESCE ( + 72, + 57 ) * - + COUNT( * ) * - 70 + + - NULLIF ( - 88, 13 * COUNT( * ) ) * - 94 / 78 THEN 48 END / 57 + - CAST( 77 AS SIGNED ) + - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT - CASE + - 88 WHEN 54 THEN NULL WHEN COALESCE ( + 72, + 57 ) * - + COUNT ( * ) * - 70 + + - NULLIF ( - 88, 13 * COUNT ( * ) ) * - 94 / 78 THEN 48 END / 57 + - CAST ( 77 AS INTEGER ) + - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2854
SELECT + MIN( DISTINCT 70 ) AS col1, 7 AS col2
----
70
7

skipif mysql # not compatible
query II rowsort label-2854
SELECT + MIN ( DISTINCT 70 ) AS col1, 7 AS col2
----
70
7

query II rowsort
SELECT 47 + - 57 AS col2, - 53
----
-10
-53

query I rowsort
SELECT ALL - 40 * + 18 col1
----
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT 54 DIV - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2857
SELECT 54 / - 67 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2858
SELECT + MAX ( + 16 )
----
16

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2860
SELECT 37 * + ( + 53 ) AS col0, 40 + - COUNT( * ) AS col1
----
1961
39

skipif mysql # not compatible
query II rowsort label-2860
SELECT 37 * + ( + 53 ) AS col0, 40 + - COUNT ( * ) AS col1
----
1961
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT 77 * - 69 * COUNT( * ) + + + 33 + + 73 * 42 AS col2
----
-2214

skipif mysql # not compatible
query I rowsort label-2861
SELECT 77 * - 69 * COUNT ( * ) + + + 33 + + 73 * 42 AS col2
----
-2214

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT - ( - 96 ) + + MAX( 36 ) AS col2
----
132

skipif mysql # not compatible
query I rowsort label-2862
SELECT - ( - 96 ) + + MAX ( 36 ) AS col2
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2863
SELECT - ( + - 54 ) * + - CAST( NULL AS SIGNED ) * + CASE + 8 WHEN MAX( DISTINCT - 21 ) THEN NULL ELSE + 83 END / + 58 + 7, - 3 * - CAST( - - 28 AS SIGNED ) * - 46 AS col0
----
NULL
-3864

skipif mysql # not compatible
query II rowsort label-2863
SELECT - ( + - 54 ) * + - CAST ( NULL AS INTEGER ) * + CASE + 8 WHEN MAX ( DISTINCT - 21 ) THEN NULL ELSE + 83 END / + 58 + 7, - 3 * - CAST ( - - 28 AS INTEGER ) * - 46 AS col0
----
NULL
-3864

query I rowsort
SELECT ALL + 68 + 94 + 11 AS col1
----
173

query I rowsort
SELECT + NULLIF ( 91, - ( - 36 ) ) + + 54 AS col0
----
145

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

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

query I rowsort
SELECT + 0 + - 78 + + 63
----
-15

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-2869
SELECT ALL 82 + + 26 AS col1, - 26 AS col1, - MAX( - 87 ) * 10 AS col1
----
108
-26
870

skipif mysql # not compatible
query III rowsort label-2869
SELECT ALL 82 + + 26 AS col1, - 26 AS col1, - MAX ( - 87 ) * 10 AS col1
----
108
-26
870

query II rowsort
SELECT - - 33 - + + 21, - 79 AS col2
----
12
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT DISTINCT + MIN( - 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT + MIN ( - 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2872
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) + - + 3 + + 15
----
11

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) + - + 3 + + 15
----
11

query II rowsort
SELECT - + 72 + - + 12 AS col0, ( + ( + 38 ) )
----
-84
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2874
SELECT + CASE + 43 WHEN + 10 + - + COUNT( + - CAST( NULL AS SIGNED ) ) + 95 THEN + 14 * - + 53 / - 91 WHEN - - 88 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT + CASE + 43 WHEN + 10 + - + COUNT ( + - CAST ( NULL AS INTEGER ) ) + 95 THEN + 14 * - + 53 / - 91 WHEN - - 88 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - - 87 * + + 50 AS col2
----
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-2876
SELECT - 52 + + 99 DIV 22 + - 15 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2876
SELECT - 52 + + 99 / 22 + - 15 AS col2
----
-63

query I rowsort
SELECT ALL 22 + - 7 * + 8 * + 83
----
-4626

query II rowsort
SELECT - 66 + + + 13 AS col1, 82 * - - 13
----
-53
1066

query I rowsort
SELECT ALL + + 75 - + 70 * - 6 AS col0
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT DISTINCT SUM( + 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT SUM ( + 51 ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL - COALESCE ( + 8, + CASE + 69 WHEN + 81 THEN + + 4 * 28 + COUNT( * ) - 67 + + - 37 + - + 35 + + 79 * - 80 - + + 28 ELSE - 64 END, 69 + + 37 + - 81 + - 7 * 79 + - - 1 * 29 * - COUNT( * ) + - 58 * - 65 ) * - ( 14 + COUNT( * ) * 3 )
----
136

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - COALESCE ( + 8, + CASE + 69 WHEN + 81 THEN + + 4 * 28 + COUNT ( * ) - 67 + + - 37 + - + 35 + + 79 * - 80 - + + 28 ELSE - 64 END, 69 + + 37 + - 81 + - 7 * 79 + - - 1 * 29 * - COUNT ( * ) + - 58 * - 65 ) * - ( 14 + COUNT ( * ) * 3 )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - - ( - + 39 ) * + - CASE + 78 WHEN + + 96 * - + 92 * - 94 + 0 + + COUNT( * ) + - 84 * - - 0 + - - 69 / + 65 THEN - + COUNT( * ) END - - + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2882
SELECT - - ( - + 39 ) * + - CASE + 78 WHEN + + 96 * - + 92 * - 94 + 0 + + COUNT ( * ) + - 84 * - - 0 + - - 69 / + 65 THEN - + COUNT ( * ) END - - + 6 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2883
SELECT DISTINCT + 20 DIV + - 34
----
0

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT + 20 / + - 34
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2884
SELECT DISTINCT - + 45 - CAST( NULL AS SIGNED ) - + + 6 * + + 79 / - 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT - + 45 - CAST ( NULL AS INTEGER ) - + + 6 * + + 79 / - 35 col0
----
NULL

query II rowsort
SELECT ALL - ( + 54 ) AS col1, 16
----
-54
16

query I rowsort
SELECT - - 82 + NULLIF ( - + 98, 41 * + 17 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL - 76 - + COALESCE ( + 94, - - 44 * + ( 19 ) ) * - + MIN( ALL 82 ) AS col0
----
7632

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL - 76 - + COALESCE ( + 94, - - 44 * + ( 19 ) ) * - + MIN ( ALL 82 ) AS col0
----
7632

query I rowsort
SELECT + + 7 + - 9 AS col0
----
-2

query II rowsort
SELECT - - 96 * + - 81, - 82 AS col0
----
-7776
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2890
SELECT ALL + NULLIF ( + SUM( ALL + CAST( NULL AS SIGNED ) ), - + 26 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL + NULLIF ( + SUM ( ALL + CAST ( NULL AS INTEGER ) ), - + 26 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT + MAX( ALL 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2891
SELECT + MAX ( ALL 46 ) AS col1
----
46

query II rowsort
SELECT DISTINCT + 80 col1, 19
----
80
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT ALL + CASE + 95 WHEN - 35 THEN + ( - 38 ) * COUNT( * ) - 57 + + + 27 WHEN - 41 * - NULLIF ( - CASE - 97 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 29 THEN + 57 ELSE + + 74 + CASE - 69 WHEN - 17 THEN - ( + CAST( NULL AS SIGNED ) ) END END, - ( 73 ) * + 4 ) THEN NULL WHEN CAST( + 49 AS SIGNED ) THEN NULL ELSE NULLIF ( + 22, + SUM( DISTINCT - 84 ) ) END
----
22

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL + CASE + 95 WHEN - 35 THEN + ( - 38 ) * COUNT ( * ) - 57 + + + 27 WHEN - 41 * - NULLIF ( - CASE - 97 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 29 THEN + 57 ELSE + + 74 + CASE - 69 WHEN - 17 THEN - ( + CAST ( NULL AS INTEGER ) ) END END, - ( 73 ) * + 4 ) THEN NULL WHEN CAST ( + 49 AS INTEGER ) THEN NULL ELSE NULLIF ( + 22, + SUM ( DISTINCT - 84 ) ) END
----
22

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

skipif mysql # not compatible
query I rowsort label-2894
SELECT + MIN ( DISTINCT + ( + 47 ) ) AS col2
----
47

query II rowsort
SELECT DISTINCT + 25 col0, 55 + 12
----
25
67

query I rowsort
SELECT ALL 49 * + 46 AS col1
----
2254

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT - 51 * - 67 + + + ( + 60 ) * 35 + + - COUNT( * ) col0
----
5516

skipif mysql # not compatible
query I rowsort label-2898
SELECT - 51 * - 67 + + + ( + 60 ) * 35 + + - COUNT ( * ) col0
----
5516

query I rowsort
SELECT ALL 19 * + 23 + 60
----
497

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2900
SELECT ALL + CAST( - + CASE - 20 WHEN NULLIF ( + 88, + CAST( + 74 AS SIGNED ) ) THEN + + 31 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL + CAST ( - + CASE - 20 WHEN NULLIF ( + 88, + CAST ( + 74 AS INTEGER ) ) THEN + + 31 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2901
SELECT DISTINCT 6 * - + ( COALESCE ( + CAST( NULL AS SIGNED ), + + 16 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT 6 * - + ( COALESCE ( + CAST ( NULL AS INTEGER ), + + 16 ) )
----
-96

query I rowsort
SELECT ALL 35 * - 6
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT MAX( ALL 75 ) * - ( 24 ) + - 20
----
-1820

skipif mysql # not compatible
query I rowsort label-2903
SELECT MAX ( ALL 75 ) * - ( 24 ) + - 20
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2904
SELECT + + COALESCE ( + - COUNT( * ), CAST( 82 AS SIGNED ) ) - + + COALESCE ( - 13, COALESCE ( 52, + CAST( + 51 AS SIGNED ) ) ) + - - 97
----
109

skipif mysql # not compatible
query I rowsort label-2904
SELECT + + COALESCE ( + - COUNT ( * ), CAST ( 82 AS INTEGER ) ) - + + COALESCE ( - 13, COALESCE ( 52, + CAST ( + 51 AS INTEGER ) ) ) + - - 97
----
109

query I rowsort
SELECT ALL + 24 * + 72 AS col0
----
1728

onlyif mysql # aggregate syntax: 
query II rowsort label-2906
SELECT DISTINCT + COUNT( * ), + COALESCE ( 77, + 50 ) AS col2
----
1
77

skipif mysql # not compatible
query II rowsort label-2906
SELECT DISTINCT + COUNT ( * ), + COALESCE ( 77, + 50 ) AS col2
----
1
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2907
SELECT ALL 35 * 77 / 19 + + + COALESCE ( + MIN( DISTINCT + NULLIF ( + 76, 3 ) ), - 83 * - 93 ) / - 9 * - COUNT( * ) + + CAST( NULL AS SIGNED ) * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL 35 * 77 / 19 + + + COALESCE ( + MIN ( DISTINCT + NULLIF ( + 76, 3 ) ), - 83 * - 93 ) / - 9 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 47
----
NULL

query I rowsort
SELECT + + 68 + 6 AS col2
----
74

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2912
SELECT + + COUNT( * ) + + 34 + - MAX( 26 ) DIV SUM( ALL 39 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2912
SELECT + + COUNT ( * ) + + 34 + - MAX ( 26 ) / SUM ( ALL 39 ) AS col0
----
35

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2914
SELECT ALL - 47 / - - CASE - ( AVG ( + 67 ) ) WHEN - 35 * + 19 + - 96 + + CAST( 77 AS SIGNED ) THEN NULL WHEN - - 88 THEN - 22 ELSE NULL END / - COUNT( * ) + - 78 * + + 21 + MAX( ( - - NULLIF ( - COALESCE ( - 48, + 19 / 77 + + - 82 + 61 * - 57 ), 14 * - 19 ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - 47 / - - CASE - ( AVG ( + 67 ) ) WHEN - 35 * + 19 + - 96 + + CAST ( 77 AS INTEGER ) THEN NULL WHEN - - 88 THEN - 22 ELSE NULL END / - COUNT ( * ) + - 78 * + + 21 + MAX ( ( - - NULLIF ( - COALESCE ( - 48, + 19 / 77 + + - 82 + 61 * - 57 ), 14 * - 19 ) ) ) AS col1
----
NULL

query I rowsort
SELECT + - 42 * + - 62 AS col2
----
2604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2916
SELECT + CASE - 60 WHEN - COUNT( * ) / 20 THEN NULL WHEN 39 / - 70 + 42 THEN - COUNT( * ) ELSE CASE + 70 WHEN - - 85 + + CAST( NULL AS SIGNED ) THEN 19 + + - 54 WHEN COUNT( * ) + + CAST( NULL AS SIGNED ) THEN - + 24 * 77 * 83 END * + MIN( + + 8 ) END - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT + CASE - 60 WHEN - COUNT ( * ) / 20 THEN NULL WHEN 39 / - 70 + 42 THEN - COUNT ( * ) ELSE CASE + 70 WHEN - - 85 + + CAST ( NULL AS INTEGER ) THEN 19 + + - 54 WHEN COUNT ( * ) + + CAST ( NULL AS INTEGER ) THEN - + 24 * 77 * 83 END * + MIN ( + + 8 ) END - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT - 22 DIV 3
----
-7

skipif mysql # not compatible
query I rowsort label-2917
SELECT - 22 / 3
----
-7

query II rowsort
SELECT - - 33, 71 * ( 65 ) AS col1
----
33
4615

onlyif mysql # aggregate syntax: 
query II rowsort label-2919
SELECT ALL - 76 AS col2, - COUNT( * ) * - 72 AS col0
----
-76
72

skipif mysql # not compatible
query II rowsort label-2919
SELECT ALL - 76 AS col2, - COUNT ( * ) * - 72 AS col0
----
-76
72

query II rowsort
SELECT DISTINCT 60 AS col1, - 70 + + 82 AS col0
----
60
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT - 91 DIV 43 DIV COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-2921
SELECT - 91 / 43 / COUNT ( * ) col0
----
-2

query I rowsort
SELECT DISTINCT - 58 * 20 AS col2
----
-1160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2923
SELECT - COUNT( * ) DIV - MAX( - 84 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2923
SELECT - COUNT ( * ) / - MAX ( - 84 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2924
SELECT ALL + MIN( + - 87 ), - 51 * - + 63 * + 37 + + - 38 AS col2
----
-87
118843

skipif mysql # not compatible
query II rowsort label-2924
SELECT ALL + MIN ( + - 87 ), - 51 * - + 63 * + 37 + + - 38 AS col2
----
-87
118843

query I rowsort
SELECT - 13 + - + 60 * - 2
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT 13 DIV + + ( - - 22 ) * - 14 - + 95 + - + 16
----
-111

skipif mysql # not compatible
query I rowsort label-2926
SELECT 13 / + + ( - - 22 ) * - 14 - + 95 + - + 16
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT DISTINCT + 23 DIV + 24
----
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT + 23 / + 24
----
0

query I rowsort
SELECT ALL + 14 + 24
----
38

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

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL - 50 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT NULLIF ( + 20, + - 36 ) * 97 + - 85, 59 AS col0
----
1855
59

query I rowsort
SELECT DISTINCT - 69 + + - 41 + - 63
----
-173

query I rowsort
SELECT DISTINCT 30 * 70 * + 77 AS col0
----
161700

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT DISTINCT SUM( DISTINCT 28 ) + ( - 69 ) * 16 - + ( + - 76 ) * - NULLIF ( - 47, 25 ) AS col2
----
2496

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT SUM ( DISTINCT 28 ) + ( - 69 ) * 16 - + ( + - 76 ) * - NULLIF ( - 47, 25 ) AS col2
----
2496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2934
SELECT COUNT( * ) * 85 DIV + 77 + - + 68 col1
----
-67

skipif mysql # not compatible
query I rowsort label-2934
SELECT COUNT ( * ) * 85 / + 77 + - + 68 col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT 51 * - + 89 + - COUNT( * )
----
-4540

skipif mysql # not compatible
query I rowsort label-2935
SELECT 51 * - + 89 + - COUNT ( * )
----
-4540

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT ALL 42 - - COUNT( * ) + 46 col2
----
89

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL 42 - - COUNT ( * ) + 46 col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2937
SELECT - 25 * - COUNT( * ) * + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) * - 50 + - MIN( DISTINCT + CAST( - 20 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT - 25 * - COUNT ( * ) * + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) * - 50 + - MIN ( DISTINCT + CAST ( - 20 AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - + CASE 4 WHEN - + 19 THEN 45 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT ALL - ( - NULLIF ( - - CAST( 57 AS SIGNED ), + 9 / 81 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - ( - NULLIF ( - - CAST ( 57 AS INTEGER ), + 9 / 81 ) ) AS col0
----
57

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

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

query II rowsort
SELECT DISTINCT - 93 * + + 57 AS col0, + 80 + + + 39 - + + 0 * + - 69 AS col1
----
-5301
119

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT 12 DIV 88 * - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2942
SELECT 12 / 88 * - 63 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2943
SELECT - CASE + ( - COUNT( * ) ) WHEN + COALESCE ( + AVG ( DISTINCT 74 ), + CAST( + 99 AS DECIMAL ) ) * - COUNT( CAST( - ( 15 ) AS SIGNED ) ) + 35 THEN NULL WHEN + 35 * - COUNT( * ) * ( - COUNT( * ) ) + - ( + 16 ) * + 15 - + 93 THEN NULL ELSE + COUNT( * ) END + 91 + - + 19
----
71

skipif mysql # not compatible
query I rowsort label-2943
SELECT - CASE + ( - COUNT ( * ) ) WHEN + COALESCE ( + AVG ( DISTINCT 74 ), + CAST ( + 99 AS REAL ) ) * - COUNT ( CAST ( - ( 15 ) AS INTEGER ) ) + 35 THEN NULL WHEN + 35 * - COUNT ( * ) * ( - COUNT ( * ) ) + - ( + 16 ) * + 15 - + 93 THEN NULL ELSE + COUNT ( * ) END + 91 + - + 19
----
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT MIN( ALL + 27 ) + 23
----
50

skipif mysql # not compatible
query I rowsort label-2945
SELECT MIN ( ALL + 27 ) + 23
----
50

query I rowsort
SELECT ALL 8 + + COALESCE ( + 26, + - NULLIF ( 60, + 37 ) + ( - COALESCE ( 6, + + 36 ) ) ) + 8 * + 72 AS col0
----
610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2947
SELECT COUNT( * ) * - SUM( DISTINCT - 76 ) * 15 - CAST( 29 AS SIGNED ), + 3 + + - 11 AS col0
----
1111
-8

skipif mysql # not compatible
query II rowsort label-2947
SELECT COUNT ( * ) * - SUM ( DISTINCT - 76 ) * 15 - CAST ( 29 AS INTEGER ), + 3 + + - 11 AS col0
----
1111
-8

query I rowsort
SELECT 73 + + 89 AS col0
----
162

query I rowsort
SELECT DISTINCT + 36 + 7 * - - 98
----
722

query I rowsort
SELECT DISTINCT + 27 * + 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT ALL CASE 58 WHEN - + 87 * + - COUNT( * ) * + + 77 + + 42 + - 15 THEN 93 END + COUNT( * ) * - 70 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL CASE 58 WHEN - + 87 * + - COUNT ( * ) * + + 77 + + 42 + - 15 THEN 93 END + COUNT ( * ) * - 70 * + COUNT ( * )
----
NULL

query I rowsort
SELECT ( + - 78 ) * + 71 AS col1
----
-5538

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL + COUNT( * ) * + ( + COUNT( ALL - NULLIF ( + CASE - 6 WHEN + + 36 THEN - 12 * 74 ELSE - - 83 END, + ( - 17 ) ) ) ) * - 17 + + 82 + - + 33 - 14
----
18

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL + COUNT ( * ) * + ( + COUNT ( ALL - NULLIF ( + CASE - 6 WHEN + + 36 THEN - 12 * 74 ELSE - - 83 END, + ( - 17 ) ) ) ) * - 17 + + 82 + - + 33 - 14
----
18

query I rowsort
SELECT 69 + + + 82
----
151

query I rowsort
SELECT DISTINCT 7 + + ( - ( - 40 ) ) + 29
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL + 83 + 35 - - 70 * + COUNT( * ) * COUNT( * ) + - 44 * + + 18
----
-604

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + 83 + 35 - - 70 * + COUNT ( * ) * COUNT ( * ) + - 44 * + + 18
----
-604

query I rowsort
SELECT 88 * - 87 col1
----
-7656

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL + 10 * + COALESCE ( + + ( + 80 ), + 91, 37 * + + COUNT( * ) * + ( - 91 ), + + 1 )
----
800

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + 10 * + COALESCE ( + + ( + 80 ), + 91, 37 * + + COUNT ( * ) * + ( - 91 ), + + 1 )
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT COUNT( * ) + + + 93 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-2959
SELECT COUNT ( * ) + + + 93 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ALL + 74 / - + CASE - 61 WHEN + 68 THEN + - 96 END * - SUM( ALL - 78 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL + 74 / - + CASE - 61 WHEN + 68 THEN + - 96 END * - SUM ( ALL - 78 ) AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + + 82, - - 28 + + 75 ) - - 78 * + 50
----
3818

query I rowsort
SELECT 88 * + 69
----
6072

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT DISTINCT - CASE + - 27 WHEN + 47 * - + 0 THEN NULL WHEN + 8 / + 52 * + COUNT( * ) THEN 49 ELSE NULL END * + 61 * + COUNT( * ) / + COUNT( DISTINCT 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT - CASE + - 27 WHEN + 47 * - + 0 THEN NULL WHEN + 8 / + 52 * + COUNT ( * ) THEN 49 ELSE NULL END * + 61 * + COUNT ( * ) / + COUNT ( DISTINCT 82 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT 52 * 59 + - 54 - + - 60 * + - COUNT( * ), 51 AS col1
----
2954
51

skipif mysql # not compatible
query II rowsort label-2965
SELECT 52 * 59 + - 54 - + - 60 * + - COUNT ( * ), 51 AS col1
----
2954
51

query I rowsort
SELECT ALL - ( + 71 ) - - + 93
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2967
SELECT ( - 22 ) * + - 20 + + + ( - - ( CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT ( - 22 ) * + - 20 + + + ( - - ( CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL - CASE 90 WHEN + NULLIF ( + - NULLIF ( - 76, COUNT( * ) ), - 18 + - MAX( + 79 ) ) * 57 + - AVG ( - 89 ) THEN - 15 * + + 5 ELSE NULL END - + - 3 * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL - CASE 90 WHEN + NULLIF ( + - NULLIF ( - 76, COUNT ( * ) ), - 18 + - MAX ( + 79 ) ) * 57 + - AVG ( - 89 ) THEN - 15 * + + 5 ELSE NULL END - + - 3 * - 26
----
NULL

query I rowsort
SELECT 47 * + COALESCE ( - 26, 53 )
----
-1222

query I rowsort
SELECT ALL + 64 * + 89
----
5696

query II rowsort
SELECT ALL 66 AS col2, - 59 * - 28 AS col0
----
66
1652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2972
SELECT - - NULLIF ( + 93, - + CAST( NULL AS SIGNED ) + COUNT( * ) ) col2
----
93

skipif mysql # not compatible
query I rowsort label-2972
SELECT - - NULLIF ( + 93, - + CAST ( NULL AS INTEGER ) + COUNT ( * ) ) col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-2973
SELECT ALL + ( + 85 ) * 15 AS col2, NULLIF ( - 53, - - COUNT( * ) )
----
1275
-53

skipif mysql # not compatible
query II rowsort label-2973
SELECT ALL + ( + 85 ) * 15 AS col2, NULLIF ( - 53, - - COUNT ( * ) )
----
1275
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT ( 18 ) + - 29 + + + 75 * - - MAX( + 13 )
----
964

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT ( 18 ) + - 29 + + + 75 * - - MAX ( + 13 )
----
964

query I rowsort
SELECT ALL 1 + + - 80 + - 83 + + 87 + 55
----
-20

query II rowsort
SELECT - 78 col0, 2 AS col1
----
-78
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT ALL COUNT( * ) + 9 + ( + - 90 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL COUNT ( * ) + 9 + ( + - 90 ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2978
SELECT 83 + - ( + 29 ) + + CAST( + 62 AS SIGNED ) - + COUNT( ALL - - 75 ) + + COUNT( * ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2978
SELECT 83 + - ( + 29 ) + + CAST ( + 62 AS INTEGER ) - + COUNT ( ALL - - 75 ) + + COUNT ( * ) AS col0
----
116

query II rowsort
SELECT - 11, 8 AS col1
----
-11
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT - COUNT( * ) + - + MIN( + - 89 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2980
SELECT - COUNT ( * ) + - + MIN ( + - 89 ) AS col2
----
88

query I rowsort
SELECT + COALESCE ( - 46, - 49 ) * - 46
----
2116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2982
SELECT + COUNT( ALL - 36 ) * 78 + + - 49 DIV + COALESCE ( 17, + 20 * 82 + - COUNT( * ) + + ( - + 38 ) + + - 80 + - 50, 13 ) * + COUNT( * ) + 55 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-2982
SELECT + COUNT ( ALL - 36 ) * 78 + + - 49 / + COALESCE ( 17, + 20 * 82 + - COUNT ( * ) + + ( - + 38 ) + + - 80 + - 50, 13 ) * + COUNT ( * ) + 55 AS col0
----
131

query I rowsort
SELECT + 8 - - 30
----
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT + MAX( DISTINCT 77 ) + - COALESCE ( + 70, - 31 )
----
7

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT + MAX ( DISTINCT 77 ) + - COALESCE ( + 70, - 31 )
----
7

query I rowsort
SELECT ALL 66 + 26
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT + 36 + - + 7 - COUNT( * ) * + + CASE NULLIF ( - - 37, + 46 * - + 60 + - 81 + ( 96 ) + + 57 ) WHEN + 37 THEN - - 7 * - - 90 + - 22 WHEN - 43 THEN NULL END + 28 AS col0
----
-551

skipif mysql # not compatible
query I rowsort label-2987
SELECT + 36 + - + 7 - COUNT ( * ) * + + CASE NULLIF ( - - 37, + 46 * - + 60 + - 81 + ( 96 ) + + 57 ) WHEN + 37 THEN - - 7 * - - 90 + - 22 WHEN - 43 THEN NULL END + 28 AS col0
----
-551

query I rowsort
SELECT ALL - 51 - 89 AS col0
----
-140

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT 88 DIV 78 + 40 * + 3 - + + ( + 91 ) + - + 79 * + + 33 AS col1
----
-2577

skipif mysql # not compatible
query I rowsort label-2991
SELECT 88 / 78 + 40 * + 3 - + + ( + 91 ) + - + 79 * + + 33 AS col1
----
-2577

query II rowsort
SELECT ALL 57 * 72 - 89 * + - 12 AS col0, - 82
----
5172
-82

query I rowsort
SELECT - 82 + - 47 AS col2
----
-129

query I rowsort
SELECT ALL + 79 * 52
----
4108

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT ( + 28 ) DIV 26 * - 86 * - + 34 + 21 AS col1
----
2945

skipif mysql # not compatible
query I rowsort label-2995
SELECT ( + 28 ) / 26 * - 86 * - + 34 + 21 AS col1
----
2945

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

query II rowsort
SELECT + + 81 + - 86 AS col1, + 98
----
-5
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT - 16 * - + 57 + + - 70 / + ( - 19 ) * + CAST( NULL AS SIGNED ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT - 16 * - + 57 + + - 70 / + ( - 19 ) * + CAST ( NULL AS INTEGER ) * - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT + + COUNT( * ) * + 31 * - 12 * MAX( ALL - ( 44 ) ) + - CASE - 53 WHEN + - 17 + - + 80 THEN - 87 ELSE NULL END + + 92 + + + 81 * + 26 - + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2999
SELECT + + COUNT ( * ) * + 31 * - 12 * MAX ( ALL - ( 44 ) ) + - CASE - 53 WHEN + - 17 + - + 80 THEN - 87 ELSE NULL END + + 92 + + + 81 * + 26 - + 63
----
NULL

query II rowsort
SELECT 15 * + + 14 + 43 * - - 91, 6 AS col2
----
4123
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT - + 98 * - SUM( 17 ) AS col1
----
1666

skipif mysql # not compatible
query I rowsort label-3001
SELECT - + 98 * - SUM ( 17 ) AS col1
----
1666

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

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

query I rowsort
SELECT + + COALESCE ( + 83, + 48 * 74 ) * - - 15
----
1245

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

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

query I rowsort
SELECT - 19 + - ( + 21 )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT ALL - - COUNT( * ) * - CAST( NULL AS SIGNED ) + - 51 * - COUNT( * ) + + + 68 + - + 54 * + - AVG ( 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 51 * - COUNT ( * ) + + + 68 + - + 54 * + - AVG ( 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT - - COUNT( * ) * + CASE 5 WHEN - + ( + 42 ) / + + 38 THEN + COUNT( * ) END + - 92 + + + ( - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT - - COUNT ( * ) * + CASE 5 WHEN - + ( + 42 ) / + + 38 THEN + COUNT ( * ) END + - 92 + + + ( - 50 )
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - 36, + 71 )
----
-36

query I rowsort
SELECT ALL ( + + 28 ) * 18 + 56 + - 74 * 94 * + 46 - ( - 83 )
----
-319333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT 72 * + 51 - - CAST( NULL AS SIGNED ) + 52 * - - 13 * + + 7 / - - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT 72 * + 51 - - CAST ( NULL AS INTEGER ) + 52 * - - 13 * + + 7 / - - 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL - COALESCE ( 9, CASE - + 25 WHEN + SUM( DISTINCT + 11 ) THEN + NULLIF ( + + ( - 71 ), - 74 ) END ) + COALESCE ( - 10, + - 45, + + 3 * 86 )
----
-19

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL - COALESCE ( 9, CASE - + 25 WHEN + SUM ( DISTINCT + 11 ) THEN + NULLIF ( + + ( - 71 ), - 74 ) END ) + COALESCE ( - 10, + - 45, + + 3 * 86 )
----
-19

query I rowsort
SELECT ALL + 27 * - - ( + 7 )
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT DISTINCT 13 + - SUM( - ( + 24 ) ) col0
----
37

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT 13 + - SUM ( - ( + 24 ) ) col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT ALL 72 - 92 + - COUNT( * ) * - + 94
----
74

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL 72 - 92 + - COUNT ( * ) * - + 94
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3015
SELECT + 78 * 76 DIV + COUNT( * )
----
5928

skipif mysql # not compatible
query I rowsort label-3015
SELECT + 78 * 76 / + COUNT ( * )
----
5928

query I rowsort
SELECT DISTINCT ( - 40 ) AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3017
SELECT - CASE + + CAST( NULL AS SIGNED ) WHEN 47 THEN - 28 * + COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT - CASE + + CAST ( NULL AS INTEGER ) WHEN 47 THEN - 28 * + COUNT ( * ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT + 13 * + COUNT( * ) * + - 71
----
-923

skipif mysql # not compatible
query I rowsort label-3018
SELECT + 13 * + COUNT ( * ) * + - 71
----
-923

onlyif mysql # DIV for integer division: 
query II rowsort label-3019
SELECT ALL - 92 DIV 18 AS col2, + 72 AS col1
----
-5
72

skipif mysql # not compatible
query II rowsort label-3019
SELECT ALL - 92 / 18 AS col2, + 72 AS col1
----
-5
72

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

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

query I rowsort
SELECT - 42 * 12 AS col2
----
-504

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3024
SELECT - COALESCE ( - + ( 39 ), + + 53 + - ( - + 7 ) + + 20 + + - MIN( ALL - 2 ) * - + COUNT( * ) + + 1 DIV + ( + - 28 ) * + 91, - + MAX( DISTINCT - - 69 ) ) * 34 AS col2, COUNT( * ) * - 17 AS col2
----
1326
-17

skipif mysql # not compatible
query II rowsort label-3024
SELECT - COALESCE ( - + ( 39 ), + + 53 + - ( - + 7 ) + + 20 + + - MIN ( ALL - 2 ) * - + COUNT ( * ) + + 1 / + ( + - 28 ) * + 91, - + MAX ( DISTINCT - - 69 ) ) * 34 AS col2, COUNT ( * ) * - 17 AS col2
----
1326
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT - 77 * - COUNT( - 61 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3025
SELECT - 77 * - COUNT ( - 61 ) AS col0
----
77

query II rowsort
SELECT - ( 17 ) AS col1, + 33
----
-17
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT + 94 / - CAST( + 18 AS SIGNED ) * - CASE - - 26 WHEN - 77 THEN + NULLIF ( + 57, + 74 ) WHEN 9 + 70 THEN - ( COUNT( * ) ) / 62 * + - 75 ELSE - 93 END * 91 + + - ( - CASE 38 WHEN 80 THEN - COALESCE ( ( - 29 ), - - ( 48 ) ) WHEN + 24 THEN NULL END ) * - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT + 94 / - CAST ( + 18 AS INTEGER ) * - CASE - - 26 WHEN - 77 THEN + NULLIF ( + 57, + 74 ) WHEN 9 + 70 THEN - ( COUNT ( * ) ) / 62 * + - 75 ELSE - 93 END * 91 + + - ( - CASE 38 WHEN 80 THEN - COALESCE ( ( - 29 ), - - ( 48 ) ) WHEN + 24 THEN NULL END ) * - 43 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT ALL 21 DIV 93 - + - 2
----
2

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL 21 / 93 - + - 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT DISTINCT COUNT( * ) * COALESCE ( COUNT( * ), - - 53 + 56 - + 86 + + - 65, + + 32 * NULLIF ( - + 19, - 37 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT COUNT ( * ) * COALESCE ( COUNT ( * ), - - 53 + 56 - + 86 + + - 65, + + 32 * NULLIF ( - + 19, - 37 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT + + 8 * 37 + - ( - COUNT( * ) ) AS col0
----
297

skipif mysql # not compatible
query I rowsort label-3030
SELECT + + 8 * 37 + - ( - COUNT ( * ) ) AS col0
----
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3031
SELECT - COUNT( * ) * + SUM( - 73 ) + - 23 + 22 DIV - ( SUM( - 95 ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3031
SELECT - COUNT ( * ) * + SUM ( - 73 ) + - 23 + 22 / - ( SUM ( - 95 ) ) AS col1
----
50

query II rowsort
SELECT + 37 + - 5 AS col2, - 88 AS col2
----
32
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT - MIN( + + 59 ) * - + 81 + 42 AS col0
----
4821

skipif mysql # not compatible
query I rowsort label-3033
SELECT - MIN ( + + 59 ) * - + 81 + 42 AS col0
----
4821

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT NULLIF ( + + 69, - NULLIF ( - ( + 79 ), 3 ) + + COUNT( * ) * - 51 )
----
69

skipif mysql # not compatible
query I rowsort label-3034
SELECT NULLIF ( + + 69, - NULLIF ( - ( + 79 ), 3 ) + + COUNT ( * ) * - 51 )
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL AVG ( + 9 ) / + 48 + + - 9 * MAX( DISTINCT - 20 ) * + - CASE 38 WHEN + - 47 THEN - COALESCE ( - AVG ( + 92 ), - 1 + + 6, 65 * - + 63, - - COUNT( * ) ) * - - 53 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL AVG ( + 9 ) / + 48 + + - 9 * MAX ( DISTINCT - 20 ) * + - CASE 38 WHEN + - 47 THEN - COALESCE ( - AVG ( + 92 ), - 1 + + 6, 65 * - + 63, - - COUNT ( * ) ) * - - 53 END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3037
SELECT DISTINCT 71 * + 81 DIV - 27 * - + COUNT( * ) - COUNT( * ) + - + 83
----
129

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT 71 * + 81 / - 27 * - + COUNT ( * ) - COUNT ( * ) + - + 83
----
129

query I rowsort
SELECT + ( 64 ) + - 86
----
-22

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

skipif mysql # not compatible
query I rowsort label-3039
SELECT + MAX ( - - 88 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3040
SELECT + - 31 DIV 1 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3040
SELECT + - 31 / 1 AS col2
----
-31

query I rowsort
SELECT 64 * - - 20 AS col2
----
1280

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT - 66 * - - 98 * + - SUM( DISTINCT - COALESCE ( 72, + ( - - 83 ) ) )
----
-465696

skipif mysql # not compatible
query I rowsort label-3042
SELECT - 66 * - - 98 * + - SUM ( DISTINCT - COALESCE ( 72, + ( - - 83 ) ) )
----
-465696

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT - 19 DIV - - 18 + + 28
----
27

skipif mysql # not compatible
query I rowsort label-3043
SELECT - 19 / - - 18 + + 28
----
27

query II rowsort
SELECT ALL 45, - 40 AS col0
----
45
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-3045
SELECT ALL - SUM( ALL - 60 ) - 60 AS col0, + 40 AS col0
----
0
40

skipif mysql # not compatible
query II rowsort label-3045
SELECT ALL - SUM ( ALL - 60 ) - 60 AS col0, + 40 AS col0
----
0
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL - 96 * + COUNT( * ) * 31 * + 14 AS col2
----
-41664

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - 96 * + COUNT ( * ) * 31 * + 14 AS col2
----
-41664

query I rowsort
SELECT 88 - - + 95 AS col1
----
183

query II rowsort
SELECT - 59 AS col2, 19 + 97
----
-59
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT 72 + - CASE - 95 WHEN + 50 * + 45 + - - 99 THEN - 7 * MAX( + 74 ) + NULLIF ( + - 4, - 65 + + + 4 * + COUNT( * ) * 63 ) + - 41 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT 72 + - CASE - 95 WHEN + 50 * + 45 + - - 99 THEN - 7 * MAX ( + 74 ) + NULLIF ( + - 4, - 65 + + + 4 * + COUNT ( * ) * 63 ) + - 41 END col1
----
NULL

query I rowsort
SELECT ALL - 88 * + 83
----
-7304

query I rowsort
SELECT 4 * - + 80
----
-320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3052
SELECT DISTINCT 17 DIV - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT 17 / - COUNT ( * ) AS col0
----
-17

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

skipif mysql # not compatible
query I rowsort label-3053
SELECT 16 + 11 + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 87 + + 84
----
171

query I rowsort
SELECT 94 * - 74 * - 97
----
674732

query I rowsort
SELECT - 51 * + - 5 AS col2
----
255

query II rowsort
SELECT + 72 AS col1, 66 + + 71 - + 47 * 7 col2
----
72
-192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3058
SELECT 22, CAST( NULL AS SIGNED ) AS col0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-3058
SELECT 22, CAST ( NULL AS INTEGER ) AS col0
----
22
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3059
SELECT - 34 DIV + 22 + 30, 67 AS col1
----
29
67

skipif mysql # not compatible
query II rowsort label-3059
SELECT - 34 / + 22 + 30, 67 AS col1
----
29
67

query I rowsort
SELECT ALL 4 + - 25 * 6
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3061
SELECT ( - COUNT( * ) ) * 52 DIV MAX( ALL + 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-3061
SELECT ( - COUNT ( * ) ) * 52 / MAX ( ALL + 45 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3062
SELECT - + 6 DIV - - 82 + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-3062
SELECT - + 6 / - - 82 + - 27
----
-27

query I rowsort
SELECT DISTINCT - 74 * + 69
----
-5106

query I rowsort
SELECT - 5 + + + 78 AS col2
----
73

query I rowsort
SELECT ALL - NULLIF ( + + 4, 86 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3066
SELECT ALL - CAST( NULL AS DECIMAL ) * 2 * - - COUNT( * ) * + 10 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL - CAST ( NULL AS REAL ) * 2 * - - COUNT ( * ) * + 10 * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 83 + - - 64 AS col0
----
-19

query I rowsort
SELECT + 72 * - 21 * + 89
----
-134568

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT - COUNT( * ) * + 68 * 91 + - 77 - + - 98
----
-6167

skipif mysql # not compatible
query I rowsort label-3069
SELECT - COUNT ( * ) * + 68 * 91 + - 77 - + - 98
----
-6167

query II rowsort
SELECT + 18, 75 + + 75 AS col2
----
18
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3071
SELECT CASE + CASE COUNT( * ) WHEN + SUM( - + 45 ) THEN 59 END WHEN + COUNT( * ) THEN NULL WHEN + 10 * CAST( - 46 AS SIGNED ) + NULLIF ( CAST( NULL AS SIGNED ), + 97 ) - - 13 THEN NULLIF ( COUNT( * ), 75 * - 1 - + 35 ) END + + - 51 / + 69 + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT CASE + CASE COUNT ( * ) WHEN + SUM ( - + 45 ) THEN 59 END WHEN + COUNT ( * ) THEN NULL WHEN + 10 * CAST ( - 46 AS INTEGER ) + NULLIF ( CAST ( NULL AS INTEGER ), + 97 ) - - 13 THEN NULLIF ( COUNT ( * ), 75 * - 1 - + 35 ) END + + - 51 / + 69 + 50
----
NULL

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

query I rowsort
SELECT 12 + - 1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-3074
SELECT DISTINCT - COUNT( DISTINCT - + 67 ) - - 85, + 33 * - CASE 58 WHEN + COUNT( * ) * + 64 + + 94 + + 1 + - 50 / 33 THEN NULL WHEN + - 86 THEN COUNT( + 83 ) * - 96 * 57 ELSE NULL END AS col0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-3074
SELECT DISTINCT - COUNT ( DISTINCT - + 67 ) - - 85, + 33 * - CASE 58 WHEN + COUNT ( * ) * + 64 + + 94 + + 1 + - 50 / 33 THEN NULL WHEN + - 86 THEN COUNT ( + 83 ) * - 96 * 57 ELSE NULL END AS col0
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + COUNT( * ) + - MIN( ALL + 11 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3075
SELECT + COUNT ( * ) + - MIN ( ALL + 11 ) AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT DISTINCT + 9 * + - CASE - 31 WHEN - ( + - ( + + CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN - 94 THEN NULL WHEN 77 THEN - 62 ELSE NULL END * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT + 9 * + - CASE - 31 WHEN - ( + - ( + + CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN - 94 THEN NULL WHEN 77 THEN - 62 ELSE NULL END * - 6
----
NULL

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

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

query I rowsort
SELECT ALL - 64 * - - 96 AS col0
----
-6144

query I rowsort
SELECT ALL 43 * + 71 col1
----
3053

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT NULLIF ( 29, + ( + 49 ) + MIN( ALL 48 ) ) * - - 1 + 97
----
126

skipif mysql # not compatible
query I rowsort label-3080
SELECT NULLIF ( 29, + ( + 49 ) + MIN ( ALL 48 ) ) * - - 1 + 97
----
126

query II rowsort
SELECT 98 + 10, 66 * - 16 col1
----
108
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT CASE 1 WHEN - 26 THEN - 90 + - 26 END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT CASE 1 WHEN - 26 THEN - 90 + - 26 END * COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT 17 + 17 AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3085
SELECT ( - - 90 ) * CASE - 97 WHEN + 95 / + CAST( - 59 AS SIGNED ) + - COUNT( * ) + - 49 + + 23 + 82 + + CAST( - 27 AS SIGNED ) - + 0 * - 99 * + + MAX( DISTINCT - + 73 ) * + CASE 31 WHEN + 94 * - + ( 67 ) THEN NULL WHEN 98 + COUNT( * ) THEN - MAX( + - ( - ( + ( - 60 ) ) ) ) ELSE 31 + MIN( DISTINCT + 72 ) / + 53 END THEN 15 WHEN COUNT( * ) THEN NULL ELSE NULL END * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT ( - - 90 ) * CASE - 97 WHEN + 95 / + CAST ( - 59 AS INTEGER ) + - COUNT ( * ) + - 49 + + 23 + 82 + + CAST ( - 27 AS INTEGER ) - + 0 * - 99 * + + MAX ( DISTINCT - + 73 ) * + CASE 31 WHEN + 94 * - + ( 67 ) THEN NULL WHEN 98 + COUNT ( * ) THEN - MAX ( + - ( - ( + ( - 60 ) ) ) ) ELSE 31 + MIN ( DISTINCT + 72 ) / + 53 END THEN 15 WHEN COUNT ( * ) THEN NULL ELSE NULL END * + 75
----
NULL

query I rowsort
SELECT DISTINCT - ( + 95 ) + + - 7
----
-102

query I rowsort
SELECT ALL - 57 * 69 * 27 AS col2
----
-106191

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT DISTINCT + - 0 * - + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * - + AVG ( DISTINCT + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT + - 0 * - + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * - + AVG ( DISTINCT + 79 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3090
SELECT DISTINCT + - 69 * - MIN( ALL 28 ) * + NULLIF ( + CASE 77 WHEN - 68 * - 53 + - COUNT( * ) + - - 19 * + 37 - + 18 THEN NULL ELSE + CAST( - + MIN( - + 18 ) AS SIGNED ) END, + + 84 + + SUM( + - 61 ) + + 54 - - + 96 * CAST( NULL AS SIGNED ) ) * + - 55 - COUNT( * ) * - - COUNT( * ) * 63 / - AVG ( 72 ) / - 65 + - 99 - ( 36 - 9 / - 62 ) + 33 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT + - 69 * - MIN ( ALL 28 ) * + NULLIF ( + CASE 77 WHEN - 68 * - 53 + - COUNT ( * ) + - - 19 * + 37 - + 18 THEN NULL ELSE + CAST ( - + MIN ( - + 18 ) AS INTEGER ) END, + + 84 + + SUM ( + - 61 ) + + 54 - - + 96 * CAST ( NULL AS INTEGER ) ) * + - 55 - COUNT ( * ) * - - COUNT ( * ) * 63 / - AVG ( 72 ) / - 65 + - 99 - ( 36 - 9 / - 62 ) + 33 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3091
SELECT DISTINCT 41 * + - COUNT( * ) * ( + 56 ) * - 44 + - 70 + - CASE - 11 WHEN + - ( ( - COUNT( * ) ) ) * 55 + + 19 / + 21 + 99 + + 66 * - - 50 THEN NULL WHEN + + 1 THEN NULL WHEN - - 64 * + 70 THEN - + 15 * CASE 12 WHEN - 2 * + - 83 + + 64 THEN - ( + CAST( 67 AS DECIMAL ) ) WHEN + 42 + COUNT( * ) THEN NULL END + - 95 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT 41 * + - COUNT ( * ) * ( + 56 ) * - 44 + - 70 + - CASE - 11 WHEN + - ( ( - COUNT ( * ) ) ) * 55 + + 19 / + 21 + 99 + + 66 * - - 50 THEN NULL WHEN + + 1 THEN NULL WHEN - - 64 * + 70 THEN - + 15 * CASE 12 WHEN - 2 * + - 83 + + 64 THEN - ( + CAST ( 67 AS REAL ) ) WHEN + 42 + COUNT ( * ) THEN NULL END + - 95 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT - + COUNT( * ) * + - 86 + + 91 - - + COUNT( * ) + - 79 * - 33
----
2785

skipif mysql # not compatible
query I rowsort label-3092
SELECT - + COUNT ( * ) * + - 86 + + 91 - - + COUNT ( * ) + - 79 * - 33
----
2785

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + 26 * 96 * + COUNT( ALL - 72 ) + 22 AS col0
----
2518

skipif mysql # not compatible
query I rowsort label-3093
SELECT + 26 * 96 * + COUNT ( ALL - 72 ) + 22 AS col0
----
2518

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3094
SELECT ALL + + 75 DIV 53 - 30 + - + 5 + ( ( - COUNT( * ) ) ) AS col2, 42 AS col0
----
-35
42

skipif mysql # not compatible
query II rowsort label-3094
SELECT ALL + + 75 / 53 - 30 + - + 5 + ( ( - COUNT ( * ) ) ) AS col2, 42 AS col0
----
-35
42

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3096
SELECT DISTINCT - - 19 * 44 - ( + - 60 ), - 40 * - - ( 28 ) * + + COUNT( 34 ) - + 84 + - 62 col1
----
896
-1266

skipif mysql # not compatible
query II rowsort label-3096
SELECT DISTINCT - - 19 * 44 - ( + - 60 ), - 40 * - - ( 28 ) * + + COUNT ( 34 ) - + 84 + - 62 col1
----
896
-1266

query I rowsort
SELECT - - 90 - + + 71
----
19

query I rowsort
SELECT ALL - 79 * - - 29
----
-2291

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT DISTINCT - 5 * - + MIN( DISTINCT + 9 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT - 5 * - + MIN ( DISTINCT + 9 ) AS col0
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT + COALESCE ( - COUNT( * ), - 66 - - 13 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3101
SELECT + COALESCE ( - COUNT ( * ), - 66 - - 13 ) AS col0
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT + CASE 33 WHEN ( 54 ) + - 14 + 35 THEN NULL ELSE + + 53 * 98 + + - CAST( NULL AS SIGNED ) - 30 * - 54 END * - + CAST( ( + - 38 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT + CASE 33 WHEN ( 54 ) + - 14 + 35 THEN NULL ELSE + + 53 * 98 + + - CAST ( NULL AS INTEGER ) - 30 * - 54 END * - + CAST ( ( + - 38 ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3104
SELECT + 84 * + CAST( + 44 AS SIGNED ) * COUNT( * ) col2
----
3696

skipif mysql # not compatible
query I rowsort label-3104
SELECT + 84 * + CAST ( + 44 AS INTEGER ) * COUNT ( * ) col2
----
3696

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

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

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

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL ( + CAST ( + - 99 AS INTEGER ) ) AS col2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3107
SELECT - COALESCE ( 1, + 15 DIV 77 * + + ( - 10 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3107
SELECT - COALESCE ( 1, + 15 / 77 * + + ( - 10 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3108
SELECT ALL NULLIF ( - 52, + + 38 + - NULLIF ( + 27, + 98 * 62 ) ) * - 18 + COUNT( * ) DIV + 24
----
936

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL NULLIF ( - 52, + + 38 + - NULLIF ( + 27, + 98 * 62 ) ) * - 18 + COUNT ( * ) / + 24
----
936

query I rowsort
SELECT - NULLIF ( - 68, - 17 )
----
68

query I rowsort
SELECT + 36 + - + 72
----
-36

query I rowsort
SELECT + 41 - 94
----
-53

query I rowsort
SELECT + 18 * - 48 AS col0
----
-864

query II rowsort
SELECT 68 AS col2, - 50 AS col0
----
68
-50

query I rowsort
SELECT + 88 + + + 21
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-3115
SELECT - CASE - + 61 WHEN - 25 / + COUNT( * ) THEN + 43 * - 2 - + SUM( + 83 ) + + 16 + + 0 / 75 * 72 WHEN + - 82 THEN NULL WHEN - ( + 91 ) THEN NULL END AS col2, 90 AS col0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3115
SELECT - CASE - + 61 WHEN - 25 / + COUNT ( * ) THEN + 43 * - 2 - + SUM ( + 83 ) + + 16 + + 0 / 75 * 72 WHEN + - 82 THEN NULL WHEN - ( + 91 ) THEN NULL END AS col2, 90 AS col0
----
NULL
90

query I rowsort
SELECT ALL + 76 + 5 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + + AVG ( + - 82 ) + + - CASE 70 WHEN + 89 THEN + 63 ELSE + ( - CASE + SUM( ALL 23 ) WHEN + 65 THEN - - 7 END ) * + 87 + - 65 - 49 / 46 * - 37 * 82 * + 80 * + - 19 + - 77 - - 37 * - 48 * 30 * - + COUNT( - 72 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3117
SELECT + + AVG ( + - 82 ) + + - CASE 70 WHEN + 89 THEN + 63 ELSE + ( - CASE + SUM ( ALL 23 ) WHEN + 65 THEN - - 7 END ) * + 87 + - 65 - 49 / 46 * - 37 * 82 * + 80 * + - 19 + - 77 - - 37 * - 48 * 30 * - + COUNT ( - 72 ) END
----
NULL

query I rowsort
SELECT ALL - 7 * 1 AS col0
----
-7

query II rowsort
SELECT DISTINCT + 90, 13 AS col1
----
90
13

query I rowsort
SELECT ALL 44 + - 41
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + NULLIF ( 48, COUNT( * ) * 38 * + - 0 + - 90 ) * + 90 AS col1
----
4320

skipif mysql # not compatible
query I rowsort label-3121
SELECT + NULLIF ( 48, COUNT ( * ) * 38 * + - 0 + - 90 ) * + 90 AS col1
----
4320

query I rowsort
SELECT - 96 * - 57 AS col1
----
5472

onlyif mysql # aggregate syntax: 
query II rowsort label-3123
SELECT ALL 69 AS col0, - 84 * - - COUNT( * ) AS col1
----
69
-84

skipif mysql # not compatible
query II rowsort label-3123
SELECT ALL 69 AS col0, - 84 * - - COUNT ( * ) AS col1
----
69
-84

query I rowsort
SELECT - + 80 + 7 * + + 57 * 28 + - + 18 AS col1
----
11074

query I rowsort
SELECT - + 69 * + 50 - - 60 + - 49 AS col2
----
-3439

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3127
SELECT + 64 DIV + 94 + - + CAST( - 99 AS SIGNED ) - + 63 * + 6 AS col0
----
-279

skipif mysql # not compatible
query I rowsort label-3127
SELECT + 64 / + 94 + - + CAST ( - 99 AS INTEGER ) - + 63 * + 6 AS col0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT - 99 * + COUNT( * ) + - 88
----
-187

skipif mysql # not compatible
query I rowsort label-3128
SELECT - 99 * + COUNT ( * ) + - 88
----
-187

query I rowsort
SELECT ALL + ( + 46 ) * 3
----
138

query II rowsort
SELECT - 65 AS col1, 9
----
-65
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3131
SELECT + 62 * - CAST( - - 90 AS SIGNED ) + - CAST( 40 AS SIGNED ) + - + 30 + + COUNT( * )
----
-5649

skipif mysql # not compatible
query I rowsort label-3131
SELECT + 62 * - CAST ( - - 90 AS INTEGER ) + - CAST ( 40 AS INTEGER ) + - + 30 + + COUNT ( * )
----
-5649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3132
SELECT ( - 8 ) AS col2, + NULLIF ( + 3, + 73 * 15 / COUNT( * ) * 45 + 40 / - 45 + - CAST( NULL AS SIGNED ) ) + 85
----
-8
88

skipif mysql # not compatible
query II rowsort label-3132
SELECT ( - 8 ) AS col2, + NULLIF ( + 3, + 73 * 15 / COUNT ( * ) * 45 + 40 / - 45 + - CAST ( NULL AS INTEGER ) ) + 85
----
-8
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3133
SELECT DISTINCT + 46 DIV ( - 40 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT + 46 / ( - 40 ) AS col2
----
-1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT + 84 DIV + ( + 87 ) * 70
----
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT + 84 / + ( + 87 ) * 70
----
0

query I rowsort
SELECT - 96 + - 63 AS col0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT + COUNT( ALL - - 32 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3138
SELECT + COUNT ( ALL - - 32 ) AS col1
----
1

query II rowsort
SELECT 65 * + 9 + + + 24 + 85 * + - 62 * + 53 * 36 AS col1, + ( ( 97 ) ) + - - 36
----
-10054551
133

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT ALL 36 * + + 1 + 62 - 59 DIV - - 43
----
97

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL 36 * + + 1 + 62 - 59 / - - 43
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3141
SELECT - ( - - 84 ) * + CAST( - 29 AS SIGNED ) * - + 85 * + + CAST( NULL AS SIGNED ), + 51 * - 44 col2
----
NULL
-2244

skipif mysql # not compatible
query II rowsort label-3141
SELECT - ( - - 84 ) * + CAST ( - 29 AS INTEGER ) * - + 85 * + + CAST ( NULL AS INTEGER ), + 51 * - 44 col2
----
NULL
-2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3142
SELECT + 42 + - + 8 + + 39 * - MAX( + 70 ) * CAST( NULL AS SIGNED ) * COUNT( * ) * + 80 * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT + 42 + - + 8 + + 39 * - MAX ( + 70 ) * CAST ( NULL AS INTEGER ) * COUNT ( * ) * + 80 * + 79
----
NULL

query I rowsort
SELECT DISTINCT + 57 * + ( + 65 )
----
3705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3144
SELECT COUNT( * ) AS col0, CAST( NULL AS DECIMAL ) - - + CAST( + COUNT( * ) AS SIGNED ) * + - 41
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3144
SELECT COUNT ( * ) AS col0, CAST ( NULL AS REAL ) - - + CAST ( + COUNT ( * ) AS INTEGER ) * + - 41
----
1
NULL

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

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

query I rowsort
SELECT DISTINCT - 85 + - + 56 * + - 74 * + 68 AS col1
----
281707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3147
SELECT CASE + MIN( ( + + 51 ) ) WHEN + + 54 + + - 6 THEN + CAST( - - COUNT( * ) AS SIGNED ) / + - 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3147
SELECT CASE + MIN ( ( + + 51 ) ) WHEN + + 54 + + - 6 THEN + CAST ( - - COUNT ( * ) AS INTEGER ) / + - 51 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3148
SELECT - 30, + 37 * + CASE + COUNT( * ) WHEN - 11 THEN - 64 + COUNT( * ) + - 84 + - 28 / CASE + 17 WHEN ( - - 77 ) + + 60 * + 99 * - - 95 - - 99 + + 26 THEN NULL WHEN + - 74 THEN NULL ELSE + + 95 - - 10 END + - + 14 / + - 28 ELSE NULL END + - COUNT( ALL - - 13 ) col1
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-3148
SELECT - 30, + 37 * + CASE + COUNT ( * ) WHEN - 11 THEN - 64 + COUNT ( * ) + - 84 + - 28 / CASE + 17 WHEN ( - - 77 ) + + 60 * + 99 * - - 95 - - 99 + + 26 THEN NULL WHEN + - 74 THEN NULL ELSE + + 95 - - 10 END + - + 14 / + - 28 ELSE NULL END + - COUNT ( ALL - - 13 ) col1
----
-30
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT ALL COUNT( * ) - - MAX( + - ( 82 ) ) * + + CASE + CAST( NULL AS SIGNED ) WHEN - 41 THEN NULL WHEN + + ( + - 62 ) THEN 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL COUNT ( * ) - - MAX ( + - ( 82 ) ) * + + CASE + CAST ( NULL AS INTEGER ) WHEN - 41 THEN NULL WHEN + + ( + - 62 ) THEN 74 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3150
SELECT + 11 DIV - CASE - + CAST( - - COUNT( * ) AS SIGNED ) WHEN + - 99 * - 80 + 2 + + ( - + 13 ) + + 77 + + SUM( - CAST( NULL AS SIGNED ) ) * + ( + 54 ) THEN NULL ELSE + 46 * + ( - + 61 ) END
----
0

skipif mysql # not compatible
query I rowsort label-3150
SELECT + 11 / - CASE - + CAST ( - - COUNT ( * ) AS INTEGER ) WHEN + - 99 * - 80 + 2 + + ( - + 13 ) + + 77 + + SUM ( - CAST ( NULL AS INTEGER ) ) * + ( + 54 ) THEN NULL ELSE + 46 * + ( - + 61 ) END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT 7 * + CAST( + - 34 AS SIGNED ) + + - 32 AS col1
----
-270

skipif mysql # not compatible
query I rowsort label-3151
SELECT 7 * + CAST ( + - 34 AS INTEGER ) + + - 32 AS col1
----
-270

query I rowsort
SELECT ALL - 53 * - 97
----
5141

query II rowsort
SELECT ALL - 66 AS col1, 56 AS col1
----
-66
56

query II rowsort
SELECT - 97 AS col2, 72
----
-97
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3155
SELECT DISTINCT 9, COUNT( - 22 ) + - + CAST( - ( 0 ) AS SIGNED ) AS col0
----
9
1

skipif mysql # not compatible
query II rowsort label-3155
SELECT DISTINCT 9, COUNT ( - 22 ) + - + CAST ( - ( 0 ) AS INTEGER ) AS col0
----
9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL - COUNT( * ) - MAX( - - 86 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - COUNT ( * ) - MAX ( - - 86 ) AS col2
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-3157
SELECT 87 DIV 90 - + 77 * - 70 * - 46 + + 45, + 79 AS col1
----
-247895
79

skipif mysql # not compatible
query II rowsort label-3157
SELECT 87 / 90 - + 77 * - 70 * - 46 + + 45, + 79 AS col1
----
-247895
79

query I rowsort
SELECT - 17 * + 59 * + 92 - + 24
----
-92300

query I rowsort
SELECT ALL + 35 * + 10 AS col2
----
350

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT - MAX( - 86 ) - + 70 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3160
SELECT - MAX ( - 86 ) - + 70 AS col2
----
16

query II rowsort
SELECT DISTINCT ( 91 ) AS col0, - 70
----
91
-70

query I rowsort
SELECT + 83 * - 84 + 24 * + 23 AS col0
----
-6420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3163
SELECT DISTINCT - CAST( + + CASE + - 14 WHEN - 66 THEN - - COUNT( * ) WHEN - 66 THEN 22 + CAST( - - 75 AS SIGNED ) WHEN - 88 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT DISTINCT - CAST ( + + CASE + - 14 WHEN - 66 THEN - - COUNT ( * ) WHEN - 66 THEN 22 + CAST ( - - 75 AS INTEGER ) WHEN - 88 THEN NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT 56 * + 2 AS col2
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3165
SELECT + + COUNT( * ), - NULLIF ( 19, - CASE + COALESCE ( + 26, - 7 ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 76 / - + 71 + + - 41 * - - NULLIF ( - 24, - + 70 + + - COUNT( * ) ) * - 30 + - - 19 + 13 * - 8 + 85 / + 22 + 23 + - COUNT( * ) + 42 + + SUM( 15 ) * 52 + + 0 END * + 83 / COUNT( * ) ) + - 65 * + COUNT( DISTINCT 94 * + 9 ) AS col0
----
1
-84

skipif mysql # not compatible
query II rowsort label-3165
SELECT + + COUNT ( * ), - NULLIF ( 19, - CASE + COALESCE ( + 26, - 7 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 76 / - + 71 + + - 41 * - - NULLIF ( - 24, - + 70 + + - COUNT ( * ) ) * - 30 + - - 19 + 13 * - 8 + 85 / + 22 + 23 + - COUNT ( * ) + 42 + + SUM ( 15 ) * 52 + + 0 END * + 83 / COUNT ( * ) ) + - 65 * + COUNT ( DISTINCT 94 * + 9 ) AS col0
----
1
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT CAST( + - ( - - 18 ) AS SIGNED ) * - 49 AS col1
----
882

skipif mysql # not compatible
query I rowsort label-3166
SELECT CAST ( + - ( - - 18 ) AS INTEGER ) * - 49 AS col1
----
882

query I rowsort
SELECT ALL + 60 + 12
----
72

query I rowsort
SELECT DISTINCT 19 + + ( + + 63 ) + - - 29 AS col2
----
111

query I rowsort
SELECT ALL 78 + - 88 * + 35
----
-3002

query II rowsort
SELECT DISTINCT - 15 + - 34 AS col1, 95 AS col0
----
-49
95

query I rowsort
SELECT 88 * + 9
----
792

query II rowsort
SELECT 23 * 33 AS col0, 41 AS col1
----
759
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3173
SELECT 42 DIV - 46 * + 81 DIV 23
----
0

skipif mysql # not compatible
query I rowsort label-3173
SELECT 42 / - 46 * + 81 / 23
----
0

query I rowsort
SELECT ALL - 98 + + 71
----
-27

query I rowsort
SELECT 13 - 44
----
-31

query I rowsort
SELECT ALL - CASE + + AVG ( DISTINCT + - 52 ) WHEN 68 THEN 39 * + + 7 ELSE NULL END * - 2 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT ALL - CASE - 65 WHEN 9 / + 14 THEN NULL WHEN + 11 * + 95 + - - 42 + + 65 THEN + + 64 WHEN + + 38 - NULLIF ( + 90, + 53 + 10 ) THEN 34 * - 20 / 24 * - 35 * CAST( + + ( + - NULLIF ( - + 45, 76 + - 33 ) ) AS SIGNED ) - COUNT( - + 33 ) ELSE NULL END - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL - CASE - 65 WHEN 9 / + 14 THEN NULL WHEN + 11 * + 95 + - - 42 + + 65 THEN + + 64 WHEN + + 38 - NULLIF ( + 90, + 53 + 10 ) THEN 34 * - 20 / 24 * - 35 * CAST ( + + ( + - NULLIF ( - + 45, 76 + - 33 ) ) AS INTEGER ) - COUNT ( - + 33 ) ELSE NULL END - 93
----
NULL

query I rowsort
SELECT ALL - ( + 57 ) - - 23
----
-34

query II rowsort
SELECT DISTINCT + 57 * + 8 AS col1, - 81 AS col0
----
456
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL + - 81 * + ( - COUNT( * ) ) * - - 96 * - 52 + - 7
----
-404359

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + - 81 * + ( - COUNT ( * ) ) * - - 96 * - 52 + - 7
----
-404359

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3181
SELECT + 9 + + 65 - - 65 * MIN( - + 25 ) DIV + COUNT( * ) col1
----
-1551

skipif mysql # not compatible
query I rowsort label-3181
SELECT + 9 + + 65 - - 65 * MIN ( - + 25 ) / + COUNT ( * ) col1
----
-1551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT NULLIF ( - 48, - - 20 * + 21 ) + + 28 - - - 15 + - - CAST( 17 AS SIGNED ) * 80 * - - 8 AS col1
----
10845

skipif mysql # not compatible
query I rowsort label-3182
SELECT NULLIF ( - 48, - - 20 * + 21 ) + + 28 - - - 15 + - - CAST ( 17 AS INTEGER ) * 80 * - - 8 AS col1
----
10845

query I rowsort
SELECT DISTINCT NULLIF ( + - 91, + 68 )
----
-91

query I rowsort
SELECT 94 + + ( 99 ) AS col0
----
193

query II rowsort
SELECT ALL + 92 * - 78, - 53 + 87 AS col1
----
-7176
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3186
SELECT ( - 9 ) DIV + + 92 + 62 + 69
----
131

skipif mysql # not compatible
query I rowsort label-3186
SELECT ( - 9 ) / + + 92 + 62 + 69
----
131

onlyif mysql # aggregate syntax: 
query III rowsort label-3187
SELECT ALL + SUM( - + 75 ) * - 79, 46 + + 41 AS col1, COUNT( * ) AS col0
----
5925
87
1

skipif mysql # not compatible
query III rowsort label-3187
SELECT ALL + SUM ( - + 75 ) * - 79, 46 + + 41 AS col1, COUNT ( * ) AS col0
----
5925
87
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT - ( CAST( + AVG ( + 25 ) AS SIGNED ) )
----
-25

skipif mysql # not compatible
query I rowsort label-3188
SELECT - ( CAST ( + AVG ( + 25 ) AS INTEGER ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + 8 + + 36 * COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3189
SELECT + 8 + + 36 * COUNT ( * ) AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT 4 DIV 24 * + 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3190
SELECT 4 / 24 * + 35 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT - 17 DIV 56 - + 66
----
-66

skipif mysql # not compatible
query I rowsort label-3191
SELECT - 17 / 56 - + 66
----
-66

query I rowsort
SELECT 63 + - 49 AS col2
----
14

query II rowsort
SELECT DISTINCT - COALESCE ( - - ( + 85 ), NULLIF ( + + 22, 55 + + 92 * 60 ) + + + 89, 97 ), + 10 AS col1
----
-85
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT DISTINCT 10 * - 18 + + 75 DIV 4
----
-162

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT 10 * - 18 + + 75 / 4
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-3195
SELECT ALL 67 DIV + 2 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL 67 / + 2 AS col2
----
33

query I rowsort
SELECT ALL 54 * + - 45 + + 61 col2
----
-2369

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL + 6 * - MAX( ALL + 20 ) + - 42 + + COUNT( * )
----
-161

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + 6 * - MAX ( ALL + 20 ) + - 42 + + COUNT ( * )
----
-161

query I rowsort
SELECT ALL + 74 * - 45
----
-3330

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

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

query I rowsort
SELECT + 10 * - 27 + - 28 * + 30 AS col0
----
-1110

query I rowsort
SELECT NULLIF ( + 64, 70 ) - 12
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT 2 * 16 + - SUM( + + 38 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-3202
SELECT 2 * 16 + - SUM ( + + 38 ) AS col0
----
-6

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

query I rowsort
SELECT ALL 24 + 81 col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3205
SELECT - 59 * - - CAST( + 35 AS SIGNED ) * + + ( 6 ) + - + MAX( ALL + + 99 ) AS col1
----
-12489

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 59 * - - CAST ( + 35 AS INTEGER ) * + + ( 6 ) + - + MAX ( ALL + + 99 ) AS col1
----
-12489

query II rowsort
SELECT ALL - 52 AS col0, - 64
----
-52
-64

query I rowsort
SELECT ALL 88 - - 67 + - 67 * - + 70 * + 46 AS col1
----
215895

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT - 71 * - 39 + COUNT( * ) AS col1
----
2770

skipif mysql # not compatible
query I rowsort label-3208
SELECT - 71 * - 39 + COUNT ( * ) AS col1
----
2770

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT ALL - 67 - + - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - 67 - + - COUNT ( * )
----
-66

query II rowsort
SELECT 16 AS col2, 93
----
16
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT - - MIN( + 7 ) * - COUNT( * ) - + - 76 * - + 92
----
-6999

skipif mysql # not compatible
query I rowsort label-3211
SELECT - - MIN ( + 7 ) * - COUNT ( * ) - + - 76 * - + 92
----
-6999

query II rowsort
SELECT - - 47 AS col2, + 46 AS col1
----
47
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT ALL - - 16 - - 19 + 17 + + + 23 * 52 + + 28, - COUNT( DISTINCT 17 ) AS col2
----
1276
-1

skipif mysql # not compatible
query II rowsort label-3213
SELECT ALL - - 16 - - 19 + 17 + + + 23 * 52 + + 28, - COUNT ( DISTINCT 17 ) AS col2
----
1276
-1

query I rowsort
SELECT - 76 + 39 + 51 * + 31
----
1544

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

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT - + 66 / - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT - 20 * + + SUM( 93 ) - + - 10 + 27
----
-1823

skipif mysql # not compatible
query I rowsort label-3216
SELECT - 20 * + + SUM ( 93 ) - + - 10 + 27
----
-1823

query I rowsort
SELECT ALL - COALESCE ( ( 89 ), ( + 15 ) ) * - 50 AS col2
----
4450

query I rowsort
SELECT DISTINCT + + 74 * 67 * + + 93 + - 6 AS col0
----
461088

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT - + COUNT( * ) * + - ( - 39 ) + + 34
----
-5

skipif mysql # not compatible
query I rowsort label-3219
SELECT - + COUNT ( * ) * + - ( - 39 ) + + 34
----
-5

query I rowsort
SELECT ALL + 10 * 72
----
720

query I rowsort
SELECT ALL - + 61 + - 59
----
-120

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

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

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

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

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

query I rowsort
SELECT + 6 * + + 40 AS col0
----
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3226
SELECT DISTINCT - + 19 + - ( + COUNT( * ) ) * + + 24 DIV + 90
----
-19

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT - + 19 + - ( + COUNT ( * ) ) * + + 24 / + 90
----
-19

query I rowsort
SELECT ALL - NULLIF ( 61, + 52 ) AS col2
----
-61

query I rowsort
SELECT - 31 * + + 90 AS col0
----
-2790

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ( - SUM( - - 76 ) ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-3229
SELECT ( - SUM ( - - 76 ) ) col2
----
-76

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT - 56 DIV + 83 + + 63 + + 44 + - 50 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3231
SELECT - 56 / + 83 + + 63 + + 44 + - 50 AS col2
----
57

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

skipif mysql # not compatible
query II rowsort label-3232
SELECT ( - COUNT ( * ) ), - 74 * - CAST ( NULL AS INTEGER ) + 30 AS col2
----
-1
NULL

query I rowsort
SELECT + CASE + - 14 WHEN - 93 * 2 THEN NULL ELSE - 9 END AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3234
SELECT + COUNT( * ) * ( COALESCE ( - - 7, - 54 DIV + 69 + - 92 ) )
----
7

skipif mysql # not compatible
query I rowsort label-3234
SELECT + COUNT ( * ) * ( COALESCE ( - - 7, - 54 / + 69 + - 92 ) )
----
7

query I rowsort
SELECT + 23 + + - 63 + + 32
----
-8

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3237
SELECT + CASE 88 WHEN + COUNT( * ) THEN - 45 WHEN + COALESCE ( + - 39, - ( - 65 ) ) THEN NULL WHEN + 28 - - CAST( + COALESCE ( 16, ( 37 ), + 90 + + + 73 ) AS SIGNED ) THEN NULL END * + 65, + 33 col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-3237
SELECT + CASE 88 WHEN + COUNT ( * ) THEN - 45 WHEN + COALESCE ( + - 39, - ( - 65 ) ) THEN NULL WHEN + 28 - - CAST ( + COALESCE ( 16, ( 37 ), + 90 + + + 73 ) AS INTEGER ) THEN NULL END * + 65, + 33 col2
----
NULL
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT + - 86 - + 96 * MIN( DISTINCT - + 88 ) AS col0
----
8362

skipif mysql # not compatible
query I rowsort label-3238
SELECT + - 86 - + 96 * MIN ( DISTINCT - + 88 ) AS col0
----
8362

query I rowsort
SELECT DISTINCT 39 * + - 19
----
-741

query I rowsort
SELECT + 93 * + + 94 - + 6 AS col0
----
8736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3241
SELECT ALL - 87 * - 64 + + 2 DIV - + 22 - + COUNT( * ) * 13
----
5555

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL - 87 * - 64 + + 2 / - + 22 - + COUNT ( * ) * 13
----
5555

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT + + 22 * - COUNT( * ) + + ( - + 93 ) AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-3243
SELECT + + 22 * - COUNT ( * ) + + ( - + 93 ) AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT - 63 - - + 26 + COUNT( * ) * + - 29
----
-66

skipif mysql # not compatible
query I rowsort label-3244
SELECT - 63 - - + 26 + COUNT ( * ) * + - 29
----
-66

query I rowsort
SELECT + 7 + 22 AS col2
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3246
SELECT DISTINCT + 31 DIV ( + 77 ) + + COUNT( * ) DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT + 31 / ( + 77 ) + + COUNT ( * ) / 43
----
0

query II rowsort
SELECT + 20 + - 35, 25 AS col2
----
-15
25

query I rowsort
SELECT - - 20 * - 97 * + 28 * 19 AS col2
----
-1032080

query I rowsort
SELECT DISTINCT 95 + - 38 * + 40 * - + 51
----
77615

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL + + ( + 52 ) * - 51 + + - COUNT( * )
----
-2653

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL + + ( + 52 ) * - 51 + + - COUNT ( * )
----
-2653

query I rowsort
SELECT ALL - ( - + 71 ) + - - 95 AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT - - 35 + + COALESCE ( - COUNT( * ), + 41, 20 + - 69 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3252
SELECT - - 35 + + COALESCE ( - COUNT ( * ), + 41, 20 + - 69 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT - + CASE + 59 WHEN COUNT( * ) THEN NULL ELSE - MIN( - 46 ) END + + + 9 - - 3 + - 80 AS col0
----
-114

skipif mysql # not compatible
query I rowsort label-3253
SELECT - + CASE + 59 WHEN COUNT ( * ) THEN NULL ELSE - MIN ( - 46 ) END + + + 9 - - 3 + - 80 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL + + NULLIF ( + COALESCE ( - + 46, + 28 ), - NULLIF ( - 5, + 13 * + + COUNT( * ) + + - 39 * 1 + + - COALESCE ( MAX( - 96 ), + 37 + + 96 - 98 * + 97 ) + + 86 + - 4 * + - 5 - + - COUNT( * ) * + 88 * + ( + COUNT( * ) ) * + - 3 / - + 19 ) * COUNT( * ) * + COUNT( * ) + + 79 ) * + - 31 + - COUNT( * )
----
1425

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL + + NULLIF ( + COALESCE ( - + 46, + 28 ), - NULLIF ( - 5, + 13 * + + COUNT ( * ) + + - 39 * 1 + + - COALESCE ( MAX ( - 96 ), + 37 + + 96 - 98 * + 97 ) + + 86 + - 4 * + - 5 - + - COUNT ( * ) * + 88 * + ( + COUNT ( * ) ) * + - 3 / - + 19 ) * COUNT ( * ) * + COUNT ( * ) + + 79 ) * + - 31 + - COUNT ( * )
----
1425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3255
SELECT ALL + 38 * + COALESCE ( 22, - 10 ) * + 10 + 85 * 39 + + 50 - + - 71 - - + 12 DIV 9 * - + ( - - COUNT( * ) ) AS col0
----
11795

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL + 38 * + COALESCE ( 22, - 10 ) * + 10 + 85 * 39 + + 50 - + - 71 - - + 12 / 9 * - + ( - - COUNT ( * ) ) AS col0
----
11795

query I rowsort
SELECT ALL - 47 + - 34 + + + 92
----
11

query III rowsort
SELECT - 92 AS col1, + 91 + + 65 AS col0, + 94
----
-92
156
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - 2 + - COUNT( * ) - + 86 * + + 8
----
-691

skipif mysql # not compatible
query I rowsort label-3258
SELECT - 2 + - COUNT ( * ) - + 86 * + + 8
----
-691

query I rowsort
SELECT - 78 + 27
----
-51

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

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

query I rowsort
SELECT + 54 + 92 * 61
----
5666

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3262
SELECT DISTINCT 26 / 84 / CAST( NULL AS SIGNED ) * + + 28 - - ( + - 80 ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3262
SELECT DISTINCT 26 / 84 / CAST ( NULL AS INTEGER ) * + + 28 - - ( + - 80 ), COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3263
SELECT ALL + 87 AS col1, + MIN( DISTINCT - 36 ) * - ( - ( - 70 ) ) + - NULLIF ( + COUNT( * ), COUNT( * ) - + SUM( ALL + - 2 ) ) + 36
----
87
2555

skipif mysql # not compatible
query II rowsort label-3263
SELECT ALL + 87 AS col1, + MIN ( DISTINCT - 36 ) * - ( - ( - 70 ) ) + - NULLIF ( + COUNT ( * ), COUNT ( * ) - + SUM ( ALL + - 2 ) ) + 36
----
87
2555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3264
SELECT - 26 * NULLIF ( COUNT( * ), - - NULLIF ( + + 23, + 2 ) * + 84 * - ( + 11 ) + CAST( + CASE + 29 WHEN - CASE WHEN ( - ( ( 60 ) ) < NULL ) THEN + 11 WHEN + 81 NOT IN ( 74, CASE - COUNT( DISTINCT 54 ) WHEN - 65 * - - 59 + - 71 * - 14 * - MIN( ALL 32 ) * + + 82 * + COUNT( * ) - - 12 THEN - 79 END * - COALESCE ( - 92, 17 ) ) THEN NULL WHEN NOT 54 * + 91 NOT IN ( + 48 ) THEN NULL ELSE 65 END THEN 11 * + 13 + - 95 WHEN 11 + - 56 THEN 86 ELSE - 29 END AS SIGNED ) ) + 9 * 95 AS col1
----
829

skipif mysql # not compatible
query I rowsort label-3264
SELECT - 26 * NULLIF ( COUNT ( * ), - - NULLIF ( + + 23, + 2 ) * + 84 * - ( + 11 ) + CAST ( + CASE + 29 WHEN - CASE WHEN ( - ( ( 60 ) ) < NULL ) THEN + 11 WHEN + 81 NOT IN ( 74, CASE - COUNT ( DISTINCT 54 ) WHEN - 65 * - - 59 + - 71 * - 14 * - MIN ( ALL 32 ) * + + 82 * + COUNT ( * ) - - 12 THEN - 79 END * - COALESCE ( - 92, 17 ) ) THEN NULL WHEN NOT 54 * + 91 NOT IN ( + 48 ) THEN NULL ELSE 65 END THEN 11 * + 13 + - 95 WHEN 11 + - 56 THEN 86 ELSE - 29 END AS INTEGER ) ) + 9 * 95 AS col1
----
829

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT 16 DIV ( - 22 )
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT 16 / ( - 22 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3266
SELECT DISTINCT + COUNT( 54 ) * + + CASE CASE - + CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) * 3 + + 42 + + CASE + CAST( + 93 AS SIGNED ) WHEN - - 23 + + 99 THEN NULL ELSE 21 * - - COUNT( * ) + 4 END + 14 + - 83 + + - 21 * + - 23 * - ( 94 ) + MAX( ALL + 57 ) + 18 - - - COUNT( DISTINCT + - CAST( NULL AS SIGNED ) ) THEN + 72 WHEN 67 * - 66 + + 9 THEN NULL END WHEN - + 19 + + 79 THEN - ( - 37 ) / 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT + COUNT ( 54 ) * + + CASE CASE - + CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) * 3 + + 42 + + CASE + CAST ( + 93 AS INTEGER ) WHEN - - 23 + + 99 THEN NULL ELSE 21 * - - COUNT ( * ) + 4 END + 14 + - 83 + + - 21 * + - 23 * - ( 94 ) + MAX ( ALL + 57 ) + 18 - - - COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) ) THEN + 72 WHEN 67 * - 66 + + 9 THEN NULL END WHEN - + 19 + + 79 THEN - ( - 37 ) / 6 ELSE NULL END
----
NULL

query I rowsort
SELECT 40 * + 93 + + - 72 AS col1
----
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT COUNT( * ) + - 75 + - + 9
----
-83

skipif mysql # not compatible
query I rowsort label-3268
SELECT COUNT ( * ) + - 75 + - + 9
----
-83

query I rowsort
SELECT DISTINCT + - 32 * + 90 AS col0
----
-2880

query I rowsort
SELECT ALL ( + 35 ) + + 29 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT 7 + MAX( 53 ) * + 97
----
5148

skipif mysql # not compatible
query I rowsort label-3271
SELECT 7 + MAX ( 53 ) * + 97
----
5148

onlyif mysql # DIV for integer division: 
query I rowsort label-3272
SELECT ALL + 54 DIV 40 - + 63 + 10 col2
----
-52

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + 54 / 40 - + 63 + 10 col2
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-3273
SELECT ALL - - 55 AS col0, 4 * + 3 DIV - 90 AS col0
----
55
0

skipif mysql # not compatible
query II rowsort label-3273
SELECT ALL - - 55 AS col0, 4 * + 3 / - 90 AS col0
----
55
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT ALL 94 + - COUNT( * ) * 51 - - 65
----
108

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL 94 + - COUNT ( * ) * 51 - - 65
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3275
SELECT + 78 DIV + 5 + + - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-3275
SELECT + 78 / + 5 + + - COUNT ( * )
----
14

query I rowsort
SELECT + 61 + - 15 + ( 26 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL SUM( ALL + 47 ) + - 1 * + COUNT( * ) + - 0 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL SUM ( ALL + 47 ) + - 1 * + COUNT ( * ) + - 0 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT ALL MIN( ALL 6 ) + 37 + - ( - - 95 ) AS col1, 15 * - 20 - - - 93
----
-52
-393

skipif mysql # not compatible
query II rowsort label-3278
SELECT ALL MIN ( ALL 6 ) + 37 + - ( - - 95 ) AS col1, 15 * - 20 - - - 93
----
-52
-393

query I rowsort
SELECT DISTINCT - 42 * - 78
----
3276

query II rowsort
SELECT ALL 41, - 61 AS col1
----
41
-61

query I rowsort
SELECT DISTINCT + NULLIF ( + 68, + + 44 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL COUNT( * ) + + 88 + - MAX( - 28 ) * - 0 + CASE 88 WHEN - 54 + 75 THEN NULL WHEN + 74 * + - COUNT( * ) THEN + + 3 * 56 + 27 WHEN - 17 THEN NULL END + - 30 + - 39 + + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL COUNT ( * ) + + 88 + - MAX ( - 28 ) * - 0 + CASE 88 WHEN - 54 + 75 THEN NULL WHEN + 74 * + - COUNT ( * ) THEN + + 3 * 56 + 27 WHEN - 17 THEN NULL END + - 30 + - 39 + + 22 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3283
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + 17 AS col2, ( - 68 ) * + 11 * + + 86 * 29 - + - 93 AS col1
----
NULL
-1865419

skipif mysql # not compatible
query II rowsort label-3283
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + 17 AS col2, ( - 68 ) * + 11 * + + 86 * 29 - + - 93 AS col1
----
NULL
-1865419

query I rowsort
SELECT 25 * + 10 - 64
----
186

query I rowsort
SELECT 91 - - 2 AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT 36 DIV - 24
----
-1

skipif mysql # not compatible
query I rowsort label-3286
SELECT 36 / - 24
----
-1

query I rowsort
SELECT 42 * - 7 * 43 AS col1
----
-12642

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

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

query I rowsort
SELECT 26 - 63
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3290
SELECT ALL 48 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL 48 / - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 55 AS col2, + 14
----
55
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3292
SELECT ALL 65 DIV + - 68
----
0

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL 65 / + - 68
----
0

query I rowsort
SELECT ALL + 80 * 2 AS col0
----
160

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

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

query I rowsort
SELECT 16 + - 78 AS col2
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3296
SELECT 51 DIV - 74 AS col2, - 54 + 57 + + CAST( - - 23 AS SIGNED ) + + - CAST( NULL AS SIGNED ) DIV MIN( DISTINCT 33 ) DIV + + 55 + + AVG ( - 2 ) + + MIN( + + 74 ) * - + 60
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3296
SELECT 51 / - 74 AS col2, - 54 + 57 + + CAST ( - - 23 AS INTEGER ) + + - CAST ( NULL AS INTEGER ) / MIN ( DISTINCT 33 ) / + + 55 + + AVG ( - 2 ) + + MIN ( + + 74 ) * - + 60
----
0
NULL

query I rowsort
SELECT 22 * 44 AS col1
----
968

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT 72 * + MIN( DISTINCT + 57 ) + - + COUNT( * )
----
4103

skipif mysql # not compatible
query I rowsort label-3298
SELECT 72 * + MIN ( DISTINCT + 57 ) + - + COUNT ( * )
----
4103

query I rowsort
SELECT 32 * 37 AS col0
----
1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3300
SELECT 67 + ( - CAST( NULL AS SIGNED ) ) + - 76 AS col0, SUM( + + 36 ) col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-3300
SELECT 67 + ( - CAST ( NULL AS INTEGER ) ) + - 76 AS col0, SUM ( + + 36 ) col2
----
NULL
36

query II rowsort
SELECT + 25, 56 + + + ( 77 ) + - 78 * - ( - ( - 31 ) ) AS col2
----
25
2551

query II rowsort
SELECT 46, ( - 68 ) + - 86 + 92 * + NULLIF ( - + 43, - 5 + + 44 ) + 75 + + + NULLIF ( - 51, - - 10 ) AS col2
----
46
-4086

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3303
SELECT ALL - 8 + + + NULLIF ( + 75, - CAST( NULL AS DECIMAL ) ), 95 * + 72 + + + COUNT( * ) AS col1
----
67
6841

skipif mysql # not compatible
query II rowsort label-3303
SELECT ALL - 8 + + + NULLIF ( + 75, - CAST ( NULL AS REAL ) ), 95 * + 72 + + + COUNT ( * ) AS col1
----
67
6841

query I rowsort
SELECT 57 * - - 13 * + 42
----
31122

query II rowsort
SELECT ALL - 35 AS col1, 50 * - + 36 * - 67
----
-35
120600

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT + COUNT( * ) + + 90
----
91

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + COUNT ( * ) + + 90
----
91

query I rowsort
SELECT ALL + - 30 + - 51 col0
----
-81

query I rowsort
SELECT - - 22 * - 89 - + 72
----
-2030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3309
SELECT ALL - - NULLIF ( + ( - ( + 70 ) ), - NULLIF ( 72, - - 38 ) / - 73 * - COUNT( * ) ) AS col0, + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
-70
0

skipif mysql # not compatible
query II rowsort label-3309
SELECT ALL - - NULLIF ( + ( - ( + 70 ) ), - NULLIF ( 72, - - 38 ) / - 73 * - COUNT ( * ) ) AS col0, + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
-70
0

query I rowsort
SELECT 91 * 11 * 42
----
42042

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT - 84 * SUM( DISTINCT 80 ) * - 68 AS col1, + 8 AS col2
----
456960
8

skipif mysql # not compatible
query II rowsort label-3311
SELECT - 84 * SUM ( DISTINCT 80 ) * - 68 AS col1, + 8 AS col2
----
456960
8

query I rowsort
SELECT DISTINCT - 31 * 85 AS col2
----
-2635

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT ALL COALESCE ( - 86, + + MIN( ALL + - 35 ), + - 34 + 33 ) + - 70
----
-156

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL COALESCE ( - 86, + + MIN ( ALL + - 35 ), + - 34 + 33 ) + - 70
----
-156

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL - ( + 89 ) * MAX( DISTINCT 73 ) AS col1
----
-6497

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - ( + 89 ) * MAX ( DISTINCT 73 ) AS col1
----
-6497

onlyif mysql # aggregate syntax: 
query II rowsort label-3316
SELECT 93 * - 86 * COUNT( * ) - - ( - ( 44 ) ) AS col2, + COUNT( * )
----
-8042
1

skipif mysql # not compatible
query II rowsort label-3316
SELECT 93 * - 86 * COUNT ( * ) - - ( - ( 44 ) ) AS col2, + COUNT ( * )
----
-8042
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT DISTINCT - - ( - 5 ) * - CAST( NULL AS SIGNED ) * + + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT - - ( - 5 ) * - CAST ( NULL AS INTEGER ) * + + 67 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT SUM( - 93 ) + - - 84 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-3318
SELECT SUM ( - 93 ) + - - 84 AS col2
----
-9

query II rowsort
SELECT ALL 19 AS col1, 26
----
19
26

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT DISTINCT + MAX( DISTINCT + 0 ), - 10 * - 38 * - COUNT( * ) col0
----
0
-380

skipif mysql # not compatible
query II rowsort label-3320
SELECT DISTINCT + MAX ( DISTINCT + 0 ), - 10 * - 38 * - COUNT ( * ) col0
----
0
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT - NULLIF ( + - 52, + + 44 + + 0 * COUNT( * ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3321
SELECT - NULLIF ( + - 52, + + 44 + + 0 * COUNT ( * ) ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3322
SELECT ALL CAST( + + CAST( 56 AS DECIMAL ) AS SIGNED ) * - 42 - COUNT( * ) AS col0
----
-2353

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL CAST ( + + CAST ( 56 AS REAL ) AS INTEGER ) * - 42 - COUNT ( * ) AS col0
----
-2353

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

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

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

query I rowsort
SELECT + 19 + - 1 AS col1
----
18

query I rowsort
SELECT ALL 25 * + - 53
----
-1325

query I rowsort
SELECT + 36 * 96
----
3456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3328
SELECT - 89 + + 10 - + CAST( NULL AS SIGNED ) / + 83 + - 96 / 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT - 89 + + 10 - + CAST ( NULL AS INTEGER ) / + 83 + - 96 / 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT + COALESCE ( - 82, + SUM( 74 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-3329
SELECT + COALESCE ( - 82, + SUM ( 74 ) )
----
-82

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

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

query II rowsort
SELECT ALL 61 * + 20 + - + 40 + + 16 + 50, 82 AS col1
----
1246
82

query I rowsort
SELECT - NULLIF ( 10, + 82 + 29 * + 17 * - COALESCE ( + 10, 4 * - 99 ) ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3333
SELECT + - NULLIF ( 48, 13 / - - 56 + - 27 - MIN( ALL 77 ) * - 29 + - 88 + + 17 + - 57 + - 61 * + 56 + + + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 13 + + COALESCE ( + 5, - 72 / + CAST( + 26 AS DECIMAL ), + 39 - 55 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-3333
SELECT + - NULLIF ( 48, 13 / - - 56 + - 27 - MIN ( ALL 77 ) * - 29 + - 88 + + 17 + - 57 + - 61 * + 56 + + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 13 + + COALESCE ( + 5, - 72 / + CAST ( + 26 AS REAL ), + 39 - 55 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT + - ( COUNT( * ) ) * + 58 + + 38 + - + 52 col2
----
-72

skipif mysql # not compatible
query I rowsort label-3334
SELECT + - ( COUNT ( * ) ) * + 58 + + 38 + - + 52 col2
----
-72

query I rowsort
SELECT - 16 + + 46 + 84 * + 26
----
2214

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT - - 99 * + COUNT( * ) + - - MIN( DISTINCT - + ( - ( - - 56 ) ) ) + - + 81 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3336
SELECT - - 99 * + COUNT ( * ) + - - MIN ( DISTINCT - + ( - ( - - 56 ) ) ) + - + 81 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT DISTINCT + + SUM( DISTINCT - 56 ) * - 9 - 81 AS col2
----
423

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT + + SUM ( DISTINCT - 56 ) * - 9 - 81 AS col2
----
423

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT ALL 2 * 57 * + 52 + COUNT( - 82 ) * + NULLIF ( + + 42, 92 ) col2
----
5970

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL 2 * 57 * + 52 + COUNT ( - 82 ) * + NULLIF ( + + 42, 92 ) col2
----
5970

query I rowsort
SELECT DISTINCT - 91 * - 93 col1
----
8463

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3341
SELECT ALL COUNT( * ) * 84 DIV + + 22 - - 31 + - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL COUNT ( * ) * 84 / + + 22 - - 31 + - COUNT ( * )
----
33

query I rowsort
SELECT - 18 * - 70 * - 33 * + - 86 - ( - + 30 )
----
3575910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3343
SELECT DISTINCT + 59 * + 25 - + 28 - - + COUNT( * ) * + COUNT( * ) + - 42 DIV + + 43
----
1448

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT + 59 * + 25 - + 28 - - + COUNT ( * ) * + COUNT ( * ) + - 42 / + + 43
----
1448

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT - - MIN( 32 ) * - 42
----
-1344

skipif mysql # not compatible
query I rowsort label-3344
SELECT - - MIN ( 32 ) * - 42
----
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT ALL - 92 DIV 11 - - ( + - 56 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL - 92 / 11 - - ( + - 56 ) AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT - + CAST( + MIN( DISTINCT - 26 ) AS SIGNED ) * - COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-3346
SELECT - + CAST ( + MIN ( DISTINCT - 26 ) AS INTEGER ) * - COUNT ( * )
----
-26

query II rowsort
SELECT DISTINCT - 59 * - + 21, 57 AS col0
----
1239
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3348
SELECT DISTINCT 85 AS col0, 56 + + 28 + - - MAX( DISTINCT + 67 ) DIV - - MAX( 25 )
----
85
86

skipif mysql # not compatible
query II rowsort label-3348
SELECT DISTINCT 85 AS col0, 56 + + 28 + - - MAX ( DISTINCT + 67 ) / - - MAX ( 25 )
----
85
86

query I rowsort
SELECT DISTINCT ( ( + - 44 ) ) AS col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3350
SELECT - 7 - - + COALESCE ( + 67, - - 50 ) - 55 + + 54 AS col1, 46 DIV + ( - COUNT( - 35 ) ) AS col1
----
59
-46

skipif mysql # not compatible
query II rowsort label-3350
SELECT - 7 - - + COALESCE ( + 67, - - 50 ) - 55 + + 54 AS col1, 46 / + ( - COUNT ( - 35 ) ) AS col1
----
59
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3351
SELECT - COALESCE ( + + 50, + + NULLIF ( + 64, + 39 * + 0 + NULLIF ( + COUNT( * ), + - 69 ) ) DIV 87 )
----
-50

skipif mysql # not compatible
query I rowsort label-3351
SELECT - COALESCE ( + + 50, + + NULLIF ( + 64, + 39 * + 0 + NULLIF ( + COUNT ( * ), + - 69 ) ) / 87 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL CASE - COUNT( * ) WHEN - 92 THEN - MAX( DISTINCT + + COALESCE ( + - 19, 10 ) ) END + + + MAX( + 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL CASE - COUNT ( * ) WHEN - 92 THEN - MAX ( DISTINCT + + COALESCE ( + - 19, 10 ) ) END + + + MAX ( + 1 )
----
NULL

query I rowsort
SELECT - 83 - 44
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3354
SELECT - 1 DIV + MAX( - 69 ), 64 AS col2
----
0
64

skipif mysql # not compatible
query II rowsort label-3354
SELECT - 1 / + MAX ( - 69 ), 64 AS col2
----
0
64

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

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

query I rowsort
SELECT + 83 + - + 69 * - - 1 AS col0
----
14

query I rowsort
SELECT DISTINCT - 63 + 68
----
5

query I rowsort
SELECT ALL 52 + + 72 col0
----
124

query I rowsort
SELECT DISTINCT 70 * 26 AS col1
----
1820

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

skipif mysql # not compatible
query I rowsort label-3360
SELECT + MIN ( - 90 )
----
-90

query I rowsort
SELECT + 93 + + 75
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL COUNT( DISTINCT + 9 ) * - - 29 * + 80 + + CASE 47 WHEN - 0 * 32 * 83 THEN NULL ELSE - 37 END AS col2
----
2283

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL COUNT ( DISTINCT + 9 ) * - - 29 * + 80 + + CASE 47 WHEN - 0 * 32 * 83 THEN NULL ELSE - 37 END AS col2
----
2283

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT - MAX( 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3363
SELECT - MAX ( 99 ) AS col1
----
-99

query II rowsort
SELECT + 2 AS col2, + ( - + 20 )
----
2
-20

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3367
SELECT ALL + CASE + CAST( NULL AS SIGNED ) WHEN COUNT( * ) + + + 17 THEN - MAX( 46 ) - - 83 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + + + 17 THEN - MAX ( 46 ) - - 83 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3368
SELECT + + COUNT( * ) DIV - + 98 * + 41
----
0

skipif mysql # not compatible
query I rowsort label-3368
SELECT + + COUNT ( * ) / - + 98 * + 41
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3369
SELECT DISTINCT 6 DIV 13 DIV 54 * + + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT 6 / 13 / 54 * + + 91 AS col0
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3372
SELECT DISTINCT 8 DIV 38 - 33 col0, 96
----
-33
96

skipif mysql # not compatible
query II rowsort label-3372
SELECT DISTINCT 8 / 38 - 33 col0, 96
----
-33
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3373
SELECT DISTINCT - 54 DIV - 89 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT - 54 / - 89 + + COUNT ( * )
----
1

query I rowsort
SELECT - 16 * + 94 AS col2
----
-1504

query I rowsort
SELECT + 60 + - 62 + - 65 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3376
SELECT + COALESCE ( - - COUNT( * ), COUNT( * ) ) AS col0, 46 * + + 79 AS col1
----
1
3634

skipif mysql # not compatible
query II rowsort label-3376
SELECT + COALESCE ( - - COUNT ( * ), COUNT ( * ) ) AS col0, 46 * + + 79 AS col1
----
1
3634

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT + CASE - ( + + 84 ) WHEN + 72 / 41 + 61 - + 77 + COUNT( * ) THEN + 50 END + - 34 * + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT + CASE - ( + + 84 ) WHEN + 72 / 41 + 61 - + 77 + COUNT ( * ) THEN + 50 END + - 34 * + - 39
----
NULL

query I rowsort
SELECT ALL - + 82 * + ( 29 ) AS col1
----
-2378

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT + NULLIF ( - + 47, + 44 + 26 + + ( 61 ) * - - 51 * - COUNT( * ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3379
SELECT + NULLIF ( - + 47, + 44 + 26 + + ( 61 ) * - - 51 * - COUNT ( * ) ) AS col1
----
-47

query II rowsort
SELECT ALL + + 57 AS col2, - 25
----
57
-25

query I rowsort
SELECT ALL + 86 * 64 - + 9 AS col1
----
5495

query I rowsort
SELECT ALL 49 * - + 5 * + 20 AS col0
----
-4900

query I rowsort
SELECT 45 * + + 59 * + 19
----
50445

onlyif mysql # aggregate syntax: 
query II rowsort label-3384
SELECT NULLIF ( + 62, 57 * 7 ) + - 91 col1, COUNT( * )
----
-29
1

skipif mysql # not compatible
query II rowsort label-3384
SELECT NULLIF ( + 62, 57 * 7 ) + - 91 col1, COUNT ( * )
----
-29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT 25 + 4 + - ( - COUNT( * ) ) * - 71 * MAX( ALL - - 79 ) * ( - 88 ) + 97
----
493718

skipif mysql # not compatible
query I rowsort label-3385
SELECT 25 + 4 + - ( - COUNT ( * ) ) * - 71 * MAX ( ALL - - 79 ) * ( - 88 ) + 97
----
493718

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT COUNT( 63 ) - - - 54 * - 8 - - 14 * - 73 AS col1
----
-589

skipif mysql # not compatible
query I rowsort label-3386
SELECT COUNT ( 63 ) - - - 54 * - 8 - - 14 * - 73 AS col1
----
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT 35 + - 64 * - MAX( DISTINCT + 42 ) AS col2
----
2723

skipif mysql # not compatible
query I rowsort label-3387
SELECT 35 + - 64 * - MAX ( DISTINCT + 42 ) AS col2
----
2723

query I rowsort
SELECT 70 + + 45 + - + 75 * - 13
----
1090

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL - SUM( DISTINCT 81 ) + 72 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL - SUM ( DISTINCT 81 ) + 72 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3391
SELECT 51 + - - NULLIF ( 27, ( 25 ) * - 56 + - 71 + + + COUNT( * ) * + + COALESCE ( + ( 14 ), - 46 ) ), + CAST( NULL AS DECIMAL ) / COUNT( * ) AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-3391
SELECT 51 + - - NULLIF ( 27, ( 25 ) * - 56 + - 71 + + + COUNT ( * ) * + + COALESCE ( + ( 14 ), - 46 ) ), + CAST ( NULL AS REAL ) / COUNT ( * ) AS col0
----
78
NULL

query II rowsort
SELECT DISTINCT + 31 + 71 AS col1, ( - - 54 )
----
102
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3393
SELECT DISTINCT - CAST( - + 13 AS SIGNED ) + + - 52 + - + 92, + 14 * + CASE + + 86 WHEN 43 THEN - ( - MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) ) END / - NULLIF ( 44, + AVG ( DISTINCT + + 44 ) * + + COUNT( * ) - - 43 - + 31 ) AS col1
----
-131
NULL

skipif mysql # not compatible
query II rowsort label-3393
SELECT DISTINCT - CAST ( - + 13 AS INTEGER ) + + - 52 + - + 92, + 14 * + CASE + + 86 WHEN 43 THEN - ( - MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) END / - NULLIF ( 44, + AVG ( DISTINCT + + 44 ) * + + COUNT ( * ) - - 43 - + 31 ) AS col1
----
-131
NULL

query II rowsort
SELECT 47 + + + 28 AS col0, ( 69 )
----
75
69

query I rowsort
SELECT 50 * + 5
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT CASE - COUNT( * ) WHEN COUNT( * ) THEN + + 25 ELSE NULL END * - 10 - - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT CASE - COUNT ( * ) WHEN COUNT ( * ) THEN + + 25 ELSE NULL END * - 10 - - - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 57 + - + 80 AS col2, + 83 * 65 AS col0
----
-23
5395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3398
SELECT CASE - 27 WHEN 90 THEN NULL WHEN - 20 THEN MAX( ALL - + 12 ) ELSE + 50 + + 30 + - 41 - + - 77 END DIV - 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3398
SELECT CASE - 27 WHEN 90 THEN NULL WHEN - 20 THEN MAX ( ALL - + 12 ) ELSE + 50 + + 30 + - 41 - + - 77 END / - 68 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3399
SELECT + ( CASE SUM( DISTINCT - 84 ) WHEN - 20 THEN - COUNT( * ) * - 13 * - - 65 * - 72 * - - ( 43 ) * COUNT( * ) * 92 ELSE + CAST( - - 87 AS SIGNED ) END ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3399
SELECT + ( CASE SUM ( DISTINCT - 84 ) WHEN - 20 THEN - COUNT ( * ) * - 13 * - - 65 * - 72 * - - ( 43 ) * COUNT ( * ) * 92 ELSE + CAST ( - - 87 AS INTEGER ) END ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3400
SELECT - + ( + 62 ), 64 * + + 74 + + COUNT( * ) AS col0
----
-62
4737

skipif mysql # not compatible
query II rowsort label-3400
SELECT - + ( + 62 ), 64 * + + 74 + + COUNT ( * ) AS col0
----
-62
4737

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL MAX( 87 ) - + 27
----
60

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL MAX ( 87 ) - + 27
----
60

query I rowsort
SELECT 30 + + 46 AS col0
----
76

query I rowsort
SELECT + 55 * + ( - 83 ) AS col0
----
-4565

query I rowsort
SELECT ALL 95 * - 87 AS col0
----
-8265

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT - 39 DIV - 31 + + - 34 DIV - - 45 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3405
SELECT - 39 / - 31 + + - 34 / - - 45 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3406
SELECT DISTINCT - CAST( + 31 AS SIGNED ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT - CAST ( + 31 AS INTEGER ) AS col2
----
-31

query I rowsort
SELECT + 31 + 46 AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3408
SELECT - - 72 DIV + 84 * + 63 DIV + COUNT( * ) + - SUM( ALL NULLIF ( + 27, + 94 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-3408
SELECT - - 72 / + 84 * + 63 / + COUNT ( * ) + - SUM ( ALL NULLIF ( + 27, + 94 ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL - SUM( DISTINCT + ( - 19 ) ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL - SUM ( DISTINCT + ( - 19 ) ) AS col2
----
19

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

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

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

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

query I rowsort
SELECT - + 43 * + 99 + 73
----
-4184

query I rowsort
SELECT DISTINCT + - 26 * + 89 AS col0
----
-2314

onlyif mysql # aggregate syntax: 
query II rowsort label-3414
SELECT DISTINCT - 77, 91 * + COUNT( * ) * - 40 AS col2
----
-77
-3640

skipif mysql # not compatible
query II rowsort label-3414
SELECT DISTINCT - 77, 91 * + COUNT ( * ) * - 40 AS col2
----
-77
-3640

query I rowsort
SELECT ( + 79 ) * + 23 - + 2
----
1815

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3416
SELECT + 75 * + + NULLIF ( 71, 3 * - COUNT( * ) * - 44 * + 41 * - ( - CAST( - COUNT( - 3 ) AS SIGNED ) ) * - NULLIF ( + COUNT( * ), + CASE - 24 WHEN COUNT( * ) / + 20 * ( + 78 ) THEN + + CASE + - 53 WHEN + 52 THEN NULL ELSE + - 28 + + 97 END END + + 76 ) + - 7 ) + 92 col0
----
5417

skipif mysql # not compatible
query I rowsort label-3416
SELECT + 75 * + + NULLIF ( 71, 3 * - COUNT ( * ) * - 44 * + 41 * - ( - CAST ( - COUNT ( - 3 ) AS INTEGER ) ) * - NULLIF ( + COUNT ( * ), + CASE - 24 WHEN COUNT ( * ) / + 20 * ( + 78 ) THEN + + CASE + - 53 WHEN + 52 THEN NULL ELSE + - 28 + + 97 END END + + 76 ) + - 7 ) + 92 col0
----
5417

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL SUM( ALL + - 43 ) + - + 35 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL SUM ( ALL + - 43 ) + - + 35 AS col2
----
-78

query I rowsort
SELECT 70 + + - ( + 55 ) + 91 AS col0
----
106

query I rowsort
SELECT ALL 83 * + 97
----
8051

query II rowsort
SELECT DISTINCT 1, + 44 * + 8 AS col1
----
1
352

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT DISTINCT 1 + - COUNT( 51 ) + 9 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT 1 + - COUNT ( 51 ) + 9 AS col0
----
9

query I rowsort
SELECT 70 * 91
----
6370

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

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

query I rowsort
SELECT ALL - 64 + 81 AS col2
----
17

query I rowsort
SELECT 50 - - - 84 + - 98
----
-132

query I rowsort
SELECT 95 * - - 50
----
4750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT ALL + 91 * - 27 DIV + COUNT( * ) AS col0
----
-2457

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL + 91 * - 27 / + COUNT ( * ) AS col0
----
-2457

query I rowsort
SELECT DISTINCT + 73 * + 27
----
1971

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT - 79 - + + 54 * + + 98 * + 63 + - 23 * - NULLIF ( 96, + COUNT( * ) ) + + - NULLIF ( + + 13, + + COUNT( * ) - 18 )
----
-331280

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - 79 - + + 54 * + + 98 * + 63 + - 23 * - NULLIF ( 96, + COUNT ( * ) ) + + - NULLIF ( + + 13, + + COUNT ( * ) - 18 )
----
-331280

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT + - 53 * - 71 + - 19 * - - MIN( + 75 ) * - 17 AS col0
----
27988

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT + - 53 * - 71 + - 19 * - - MIN ( + 75 ) * - 17 AS col0
----
27988

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3431
SELECT DISTINCT CAST( NULL AS SIGNED ), 65 - - ( ( + 21 ) ) AS col0
----
NULL
86

skipif mysql # not compatible
query II rowsort label-3431
SELECT DISTINCT CAST ( NULL AS INTEGER ), 65 - - ( ( + 21 ) ) AS col0
----
NULL
86

query I rowsort
SELECT + 76 * - 49 + 91
----
-3633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT ALL - + COALESCE ( 36, - CASE - + COUNT( * ) WHEN - 54 * 35 THEN NULL WHEN 80 THEN NULL ELSE - 40 * - + 23 DIV - 20 + - 95 END, 48 * + 13 + + ( + 78 ) * 32 - ( + 25 ) + + 58 DIV + 12 * - SUM( ALL - 8 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL - + COALESCE ( 36, - CASE - + COUNT ( * ) WHEN - 54 * 35 THEN NULL WHEN 80 THEN NULL ELSE - 40 * - + 23 / - 20 + - 95 END, 48 * + 13 + + ( + 78 ) * 32 - ( + 25 ) + + 58 / + 12 * - SUM ( ALL - 8 ) )
----
-36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3435
SELECT CAST( + 99 AS SIGNED ) * 90
----
8910

skipif mysql # not compatible
query I rowsort label-3435
SELECT CAST ( + 99 AS INTEGER ) * 90
----
8910

query II rowsort
SELECT + 32, 47 AS col2
----
32
47

query I rowsort
SELECT + 3 - + + 49 AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3438
SELECT - 42 DIV - - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3438
SELECT - 42 / - - 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT - COALESCE ( - 62, 31 + - COUNT( * ) ) * 95
----
5890

skipif mysql # not compatible
query I rowsort label-3439
SELECT - COALESCE ( - 62, 31 + - COUNT ( * ) ) * 95
----
5890

query I rowsort
SELECT 63 * - 58 col2
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL + - 28 * + COUNT( * ) + - 41 col0
----
-69

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL + - 28 * + COUNT ( * ) + - 41 col0
----
-69

query I rowsort
SELECT ALL - 31 * 92 + - - 11 * - NULLIF ( 83, - 2 ) + 80
----
-3685

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL + - SUM( 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL + - SUM ( 31 ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3444
SELECT ( - + CASE - + MAX( DISTINCT - + 64 ) WHEN CASE 3 WHEN + 66 THEN NULL WHEN + + 6 THEN - 35 ELSE NULL END + - 54 + + + 54 THEN - 76 * - + CAST( + 60 AS SIGNED ) + + COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT ( - + CASE - + MAX ( DISTINCT - + 64 ) WHEN CASE 3 WHEN + 66 THEN NULL WHEN + + 6 THEN - 35 ELSE NULL END + - 54 + + + 54 THEN - 76 * - + CAST ( + 60 AS INTEGER ) + + COUNT ( * ) END )
----
NULL

query II rowsort
SELECT ALL - + 10 * 16 + + 81 * ( - - 12 ), 46 AS col1
----
812
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3446
SELECT - 84 + + 20 DIV 22 * CAST( + CAST( + 41 AS SIGNED ) AS SIGNED ) * + CASE + - NULLIF ( + COUNT( 60 ), - COUNT( * ) ) WHEN 43 THEN NULL WHEN 33 THEN 61 * - COUNT( * ) ELSE + + 33 + - COUNT( * ) END AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3446
SELECT - 84 + + 20 / 22 * CAST ( + CAST ( + 41 AS INTEGER ) AS INTEGER ) * + CASE + - NULLIF ( + COUNT ( 60 ), - COUNT ( * ) ) WHEN 43 THEN NULL WHEN 33 THEN 61 * - COUNT ( * ) ELSE + + 33 + - COUNT ( * ) END AS col0
----
-84

query I rowsort
SELECT + 60 + 1 col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3448
SELECT + MIN( - 71 ), 11 * - - CAST( + 49 AS SIGNED ) * - + 12 * + - 83 AS col0
----
-71
536844

skipif mysql # not compatible
query II rowsort label-3448
SELECT + MIN ( - 71 ), 11 * - - CAST ( + 49 AS INTEGER ) * - + 12 * + - 83 AS col0
----
-71
536844

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3450
SELECT ALL 48 + COUNT( * ), 98 col1
----
49
98

skipif mysql # not compatible
query II rowsort label-3450
SELECT ALL 48 + COUNT ( * ), 98 col1
----
49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT + COUNT( * ) * + 25 + 61 + 21
----
107

skipif mysql # not compatible
query I rowsort label-3451
SELECT + COUNT ( * ) * + 25 + 61 + 21
----
107

query I rowsort
SELECT ALL COALESCE ( + 4, - - 95 ) + + 6
----
10

query II rowsort
SELECT DISTINCT 56, 82 AS col2
----
56
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT ALL 30 DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL 30 / - 89 AS col0
----
0

query I rowsort
SELECT - 76 - - 37
----
-39

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3457
SELECT + 88 * 68 DIV + COUNT( * ) AS col1
----
5984

skipif mysql # not compatible
query I rowsort label-3457
SELECT + 88 * 68 / + COUNT ( * ) AS col1
----
5984

query I rowsort
SELECT + ( + 35 ) * 22 + - 33
----
737

onlyif mysql # aggregate syntax: 
query II rowsort label-3459
SELECT DISTINCT 87 * 77, + COUNT( * ) AS col2
----
6699
1

skipif mysql # not compatible
query II rowsort label-3459
SELECT DISTINCT 87 * 77, + COUNT ( * ) AS col2
----
6699
1

query II rowsort
SELECT ALL 30, - 44 AS col1
----
30
-44

query I rowsort
SELECT + - 80 + + 93
----
13

query I rowsort
SELECT ALL - 75 - + 33 * + 26 - 5 col1
----
-938

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

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

query II rowsort
SELECT ALL 15, + 46 + - 36 AS col0
----
15
10

query II rowsort
SELECT - + 52 AS col0, + 53 AS col0
----
-52
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT + COUNT( * ) + NULLIF ( - 69, - + 61 / CAST( + NULLIF ( - + ( - 27 ), 73 ) AS SIGNED ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3466
SELECT + COUNT ( * ) + NULLIF ( - 69, - + 61 / CAST ( + NULLIF ( - + ( - 27 ), 73 ) AS INTEGER ) ) AS col1
----
-68

query II rowsort
SELECT 37 col2, - 50
----
37
-50

query II rowsort
SELECT DISTINCT 99, - ( - 70 ) AS col1
----
99
70

query II rowsort
SELECT ALL + 42 AS col1, 0
----
42
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT - - 29 AS col1, COUNT( * ) + + + 79 + - 29 AS col2
----
29
51

skipif mysql # not compatible
query II rowsort label-3471
SELECT - - 29 AS col1, COUNT ( * ) + + + 79 + - 29 AS col2
----
29
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT - 1 + - SUM( ALL + + 41 ) - - - ( + + 94 ) - + - 31 * SUM( DISTINCT 84 ) * 15 AS col2
----
38924

skipif mysql # not compatible
query I rowsort label-3472
SELECT - 1 + - SUM ( ALL + + 41 ) - - - ( + + 94 ) - + - 31 * SUM ( DISTINCT 84 ) * 15 AS col2
----
38924

query I rowsort
SELECT COALESCE ( - 3, + 16 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - - COUNT( * ) + + MIN( 47 )
----
48

skipif mysql # not compatible
query I rowsort label-3474
SELECT - - COUNT ( * ) + + MIN ( 47 )
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3475
SELECT DISTINCT - 31 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT - 31 / + 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3476
SELECT ALL + + 6 AS col1, - 37 * 19 * + COUNT( * )
----
6
-703

skipif mysql # not compatible
query II rowsort label-3476
SELECT ALL + + 6 AS col1, - 37 * 19 * + COUNT ( * )
----
6
-703

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3477
SELECT COUNT( 17 ) DIV - 53 * - 49 - + 13 + + 48
----
35

skipif mysql # not compatible
query I rowsort label-3477
SELECT COUNT ( 17 ) / - 53 * - 49 - + 13 + + 48
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3478
SELECT ALL - ( - 0 ) DIV - - 32 * - 46 + + + 19 + + 68 DIV + MAX( ALL - 97 ) * - CAST( 99 AS SIGNED ) + MIN( DISTINCT 52 ) + + - 57
----
14

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - ( - 0 ) / - - 32 * - 46 + + + 19 + + 68 / + MAX ( ALL - 97 ) * - CAST ( 99 AS INTEGER ) + MIN ( DISTINCT 52 ) + + - 57
----
14

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

skipif mysql # not compatible
query I rowsort label-3479
SELECT + - MAX ( - 86 )
----
86

query II rowsort
SELECT 17 AS col0, + 17
----
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3481
SELECT - 42 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-3481
SELECT - 42 / 78
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT - 54 + + - 57 + - 10 DIV 88 AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-3482
SELECT - 54 + + - 57 + - 10 / 88 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL + SUM( DISTINCT + 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + SUM ( DISTINCT + 63 ) AS col1
----
63

query I rowsort
SELECT - ( + + 40 ) * + 60 AS col0
----
-2400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + CASE - MAX( DISTINCT + 61 ) WHEN - 73 + COALESCE ( - - ( + CASE + + 87 WHEN - ( + - 25 ) + 38 THEN + + COALESCE ( AVG ( ALL 72 ), + 41, + 37 ) WHEN + COUNT( * ) THEN NULL END ), 17 * - - 56 ) THEN - + ( 50 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT + CASE - MAX ( DISTINCT + 61 ) WHEN - 73 + COALESCE ( - - ( + CASE + + 87 WHEN - ( + - 25 ) + 38 THEN + + COALESCE ( AVG ( ALL 72 ), + 41, + 37 ) WHEN + COUNT ( * ) THEN NULL END ), 17 * - - 56 ) THEN - + ( 50 ) END AS col0
----
NULL

query I rowsort
SELECT ALL - 0 * 69 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT NULLIF ( + CAST( - 84 AS SIGNED ), + 61 * + + ( 35 ) + - 36 ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-3488
SELECT NULLIF ( + CAST ( - 84 AS INTEGER ), + 61 * + + ( 35 ) + - 36 ) col1
----
-84

query I rowsort
SELECT + 0 + - - 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT + SUM( ALL 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3490
SELECT + SUM ( ALL 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3491
SELECT + ( COUNT( + - 97 ) ) + + 29 DIV - 38 * 11 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3491
SELECT + ( COUNT ( + - 97 ) ) + + 29 / - 38 * 11 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - SUM( DISTINCT 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-3492
SELECT - SUM ( DISTINCT 78 ) AS col2
----
-78

query I rowsort
SELECT DISTINCT 9 * - - 52 * + 1 * - + 61 - - 66
----
-28482

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL 28 * 74 * - COALESCE ( MIN( + - 87 ), - 66 + - COUNT( * ) )
----
180264

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL 28 * 74 * - COALESCE ( MIN ( + - 87 ), - 66 + - COUNT ( * ) )
----
180264

query I rowsort
SELECT + 34 * - 56
----
-1904

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3498
SELECT + CAST( 43 AS SIGNED ) - - COUNT( * ) + + 91 + - - CAST( NULLIF ( - + 42, + + 2 ) AS SIGNED ) DIV CASE + 66 WHEN - - 45 + - 22 + 49 THEN NULL ELSE COUNT( * ) END + 41 - - 86 * + - 83 * 88 AS col1
----
-628010

skipif mysql # not compatible
query I rowsort label-3498
SELECT + CAST ( 43 AS INTEGER ) - - COUNT ( * ) + + 91 + - - CAST ( NULLIF ( - + 42, + + 2 ) AS INTEGER ) / CASE + 66 WHEN - - 45 + - 22 + 49 THEN NULL ELSE COUNT ( * ) END + 41 - - 86 * + - 83 * 88 AS col1
----
-628010

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT NULLIF ( 2, CASE + 14 WHEN + COUNT( ALL + 38 ) + + 79 * + + CASE 95 WHEN - CASE + + 29 WHEN - - 99 THEN + + SUM( ALL + 41 ) ELSE NULL END THEN + + 31 ELSE NULL END + 55 + + 53 THEN - 23 / + + MIN( DISTINCT + 58 ) ELSE NULL END + - - 70 * + - 57 )
----
2

skipif mysql # not compatible
query I rowsort label-3499
SELECT NULLIF ( 2, CASE + 14 WHEN + COUNT ( ALL + 38 ) + + 79 * + + CASE 95 WHEN - CASE + + 29 WHEN - - 99 THEN + + SUM ( ALL + 41 ) ELSE NULL END THEN + + 31 ELSE NULL END + 55 + + 53 THEN - 23 / + + MIN ( DISTINCT + 58 ) ELSE NULL END + - - 70 * + - 57 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3500
SELECT ALL 27 * 30 col2, 15 + + 37 DIV - COUNT( DISTINCT 98 )
----
810
-22

skipif mysql # not compatible
query II rowsort label-3500
SELECT ALL 27 * 30 col2, 15 + + 37 / - COUNT ( DISTINCT 98 )
----
810
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-3501
SELECT + - 32 DIV + 25 + - 73 * NULLIF ( - 56, + 41 ) AS col1
----
4087

skipif mysql # not compatible
query I rowsort label-3501
SELECT + - 32 / + 25 + - 73 * NULLIF ( - 56, + 41 ) AS col1
----
4087

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

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

query I rowsort
SELECT + + 57 * + 28 * 36 + 29
----
57485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT - + CAST( - + 14 AS SIGNED ) + + - 12 + + - 94
----
-92

skipif mysql # not compatible
query I rowsort label-3504
SELECT - + CAST ( - + 14 AS INTEGER ) + + - 12 + + - 94
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT ALL - 46 + - COUNT( * ) + - 7 * + CAST( NULL AS SIGNED ) + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - 46 + - COUNT ( * ) + - 7 * + CAST ( NULL AS INTEGER ) + 93
----
NULL

query I rowsort
SELECT ALL + 2 * + 47 * 86 - - 8
----
8092

query II rowsort
SELECT 92 - - + 3 AS col2, - 91
----
95
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL + COUNT( DISTINCT + 37 ) + - - 75 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL + COUNT ( DISTINCT + 37 ) + - - 75 AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3509
SELECT + 83 * 0, CAST( - 57 AS SIGNED ) AS col1
----
0
-57

skipif mysql # not compatible
query II rowsort label-3509
SELECT + 83 * 0, CAST ( - 57 AS INTEGER ) AS col1
----
0
-57

query I rowsort
SELECT DISTINCT - COALESCE ( + + 34, + ( + 49 ) - - - 45 + - + 59 )
----
-34

query I rowsort
SELECT 61 - - - 6
----
55

query I rowsort
SELECT ALL - 86 * + + 9 * 81 + - ( + 77 ) + + - 83 AS col2
----
-62854

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + COUNT( * ) * - - 45 + - + 3 - - - 11 + - + 51 + + + 71 * 66 + + 12 - + 79 * COUNT( * ) + ( - MIN( ALL - 46 ) )
----
4645

skipif mysql # not compatible
query I rowsort label-3513
SELECT + COUNT ( * ) * - - 45 + - + 3 - - - 11 + - + 51 + + + 71 * 66 + + 12 - + 79 * COUNT ( * ) + ( - MIN ( ALL - 46 ) )
----
4645

query I rowsort
SELECT DISTINCT - 76 - + 7 AS col1
----
-83

query I rowsort
SELECT 54 * - 49 AS col2
----
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT ALL COUNT( * ) * NULLIF ( - 92, - 39 )
----
-92

skipif mysql # not compatible
query I rowsort label-3516
SELECT ALL COUNT ( * ) * NULLIF ( - 92, - 39 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT - SUM( 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT - SUM ( 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL - NULLIF ( - ( - COUNT( * ) ), 87 * + 34 / + 14 + 14 + COUNT( * ) * + - CASE + - 97 WHEN - 58 * - - COUNT( * ) * + + 57 THEN - CASE 33 WHEN - 7 THEN NULL WHEN + MAX( NULLIF ( 48, + 32 ) ) THEN - - 83 ELSE NULL END END ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - NULLIF ( - ( - COUNT ( * ) ), 87 * + 34 / + 14 + 14 + COUNT ( * ) * + - CASE + - 97 WHEN - 58 * - - COUNT ( * ) * + + 57 THEN - CASE 33 WHEN - 7 THEN NULL WHEN + MAX ( NULLIF ( 48, + 32 ) ) THEN - - 83 ELSE NULL END END ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3519
SELECT - 37 * 88 + + 49 + + CAST( - + 36 AS SIGNED ) + 3 + - ( - ( - - COUNT( * ) ) ) DIV 10 - - - 10, - ( - + 0 ) AS col2
----
-3250
0

skipif mysql # not compatible
query II rowsort label-3519
SELECT - 37 * 88 + + 49 + + CAST ( - + 36 AS INTEGER ) + 3 + - ( - ( - - COUNT ( * ) ) ) / 10 - - - 10, - ( - + 0 ) AS col2
----
-3250
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3520
SELECT COALESCE ( - - 89, - COALESCE ( - + 6, + + 6 DIV 73 ) * 87 ) * - - COUNT( * ) * + NULLIF ( 63, + 68 ) * MIN( ALL + 99 ) + 81 AS col2
----
555174

skipif mysql # not compatible
query I rowsort label-3520
SELECT COALESCE ( - - 89, - COALESCE ( - + 6, + + 6 / 73 ) * 87 ) * - - COUNT ( * ) * + NULLIF ( 63, + 68 ) * MIN ( ALL + 99 ) + 81 AS col2
----
555174

query I rowsort
SELECT 80 * - + 80
----
-6400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3522
SELECT + COUNT( * ) DIV + - ( - 72 ) + - 18 * 60 AS col1
----
-1080

skipif mysql # not compatible
query I rowsort label-3522
SELECT + COUNT ( * ) / + - ( - 72 ) + - 18 * 60 AS col1
----
-1080

onlyif mysql # aggregate syntax: 
query III rowsort label-3523
SELECT ALL - COUNT( * ), 34 * - 4 + + - 25 col2, + 32 AS col1
----
-1
-161
32

skipif mysql # not compatible
query III rowsort label-3523
SELECT ALL - COUNT ( * ), 34 * - 4 + + - 25 col2, + 32 AS col1
----
-1
-161
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT 60 + + 54 - + - COUNT( * ) * - + 58 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3525
SELECT 60 + + 54 - + - COUNT ( * ) * - + 58 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT + 55 * - - SUM( 97 ) + 83 * - + 4
----
5003

skipif mysql # not compatible
query I rowsort label-3526
SELECT + 55 * - - SUM ( 97 ) + 83 * - + 4
----
5003

query I rowsort
SELECT 79 * 26 * ( + 31 ) AS col1
----
63674

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( 21, 7 )
----
-21

query II rowsort
SELECT DISTINCT - 27 AS col0, 74 * - - 21
----
-27
1554

onlyif mysql # aggregate syntax: 
query II rowsort label-3531
SELECT 4 + ( - COUNT( * ) ) AS col0, 23 AS col1
----
3
23

skipif mysql # not compatible
query II rowsort label-3531
SELECT 4 + ( - COUNT ( * ) ) AS col0, 23 AS col1
----
3
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT MIN( ALL 25 ) - + ( + + 50 ) - + + 7 * - - 92
----
-669

skipif mysql # not compatible
query I rowsort label-3532
SELECT MIN ( ALL 25 ) - + ( + + 50 ) - + + 7 * - - 92
----
-669

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3534
SELECT 92 + - MIN( DISTINCT - 32 ) + - CASE COUNT( * ) WHEN - - 10 * + SUM( 73 ) THEN + - ( + NULLIF ( + 88, 68 ) ) WHEN + + CASE - 3 WHEN - 13 THEN NULL WHEN 62 * - COUNT( * ) THEN - 71 END THEN NULL ELSE NULL END AS col0, 97 * + - 38 + ( - 83 ) + + CAST( NULL AS SIGNED ) - + - COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3534
SELECT 92 + - MIN ( DISTINCT - 32 ) + - CASE COUNT ( * ) WHEN - - 10 * + SUM ( 73 ) THEN + - ( + NULLIF ( + 88, 68 ) ) WHEN + + CASE - 3 WHEN - 13 THEN NULL WHEN 62 * - COUNT ( * ) THEN - 71 END THEN NULL ELSE NULL END AS col0, 97 * + - 38 + ( - 83 ) + + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) AS col0
----
NULL
NULL

query I rowsort
SELECT + 56 + 14
----
70

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

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

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

skipif mysql # not compatible
query I rowsort label-3537
SELECT + COUNT ( ALL - - 51 ) * 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3538
SELECT DISTINCT 34 + + COALESCE ( - 17, + 22, + 89 + + 10 + 7 ) + ( + - COUNT( * ) ) + CASE + 23 WHEN + - AVG ( 99 ) THEN + + COUNT( * ) - MAX( ( + - 87 ) ) END * - 54, 20 AS col0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-3538
SELECT DISTINCT 34 + + COALESCE ( - 17, + 22, + 89 + + 10 + 7 ) + ( + - COUNT ( * ) ) + CASE + 23 WHEN + - AVG ( 99 ) THEN + + COUNT ( * ) - MAX ( ( + - 87 ) ) END * - 54, 20 AS col0
----
NULL
20

query I rowsort
SELECT ALL + 17 + 88
----
105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3540
SELECT DISTINCT + + 92 + - CASE 85 WHEN + 20 * + + CAST( - 72 AS DECIMAL ) + - 13 + - + ( + COALESCE ( + + 49, 8 * + 68 + + ( - + 20 ) + - 25, 76 ) ) * COUNT( * ) THEN NULL ELSE 37 END * + COUNT( * ) * - 55 AS col1
----
2127

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + + 92 + - CASE 85 WHEN + 20 * + + CAST ( - 72 AS REAL ) + - 13 + - + ( + COALESCE ( + + 49, 8 * + 68 + + ( - + 20 ) + - 25, 76 ) ) * COUNT ( * ) THEN NULL ELSE 37 END * + COUNT ( * ) * - 55 AS col1
----
2127

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

skipif mysql # not compatible
query II rowsort label-3541
SELECT ALL 12, - ( COUNT ( * ) ) AS col2
----
12
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3542
SELECT ALL 19 + + 45 + + 9 * + - NULLIF ( - COALESCE ( 65, + 12 + + 90 ), + 83 + - CAST( - COUNT( * ) AS SIGNED ) * - + 14 )
----
649

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL 19 + + 45 + + 9 * + - NULLIF ( - COALESCE ( 65, + 12 + + 90 ), + 83 + - CAST ( - COUNT ( * ) AS INTEGER ) * - + 14 )
----
649

query I rowsort
SELECT + 97 + + 46 col2
----
143

query I rowsort
SELECT DISTINCT - 49 + + + 61 + + - 92 + + + 33 * 23
----
679

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT + COUNT( * ) + + + 83 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3545
SELECT + COUNT ( * ) + + + 83 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT COALESCE ( COUNT( * ), + + 32 * 66 * - 1 * - - 53 ) + + ( - + 90 ) - - COALESCE ( + 99, + + 95 * + - ( ( + ( - COUNT( * ) ) ) ) + 24 + 91 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3546
SELECT COALESCE ( COUNT ( * ), + + 32 * 66 * - 1 * - - 53 ) + + ( - + 90 ) - - COALESCE ( + 99, + + 95 * + - ( ( + ( - COUNT ( * ) ) ) ) + 24 + 91 ) AS col0
----
10

query I rowsort
SELECT DISTINCT 59 * + 91 AS col2
----
5369

query I rowsort
SELECT ALL 64 * - - 58 AS col2
----
3712

query I rowsort
SELECT ALL - 41 - + 38
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT - CAST( NULL AS SIGNED ) + - 66 + + + 75 * + + 65 * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT - CAST ( NULL AS INTEGER ) + - 66 + + + 75 * + + 65 * 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3551
SELECT ALL CAST( NULL AS SIGNED ) * + 86 col2, 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-3551
SELECT ALL CAST ( NULL AS INTEGER ) * + 86 col2, 55
----
NULL
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3552
SELECT MAX( + 55 ), + CAST( NULL AS SIGNED ) AS col0
----
55
NULL

skipif mysql # not compatible
query II rowsort label-3552
SELECT MAX ( + 55 ), + CAST ( NULL AS INTEGER ) AS col0
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT COUNT( DISTINCT + + COALESCE ( - 64, + 4 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3553
SELECT COUNT ( DISTINCT + + COALESCE ( - 64, + 4 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT 86 + + + NULLIF ( + 69, - SUM( ALL - 59 ) ) + - 55
----
100

skipif mysql # not compatible
query I rowsort label-3554
SELECT 86 + + + NULLIF ( + 69, - SUM ( ALL - 59 ) ) + - 55
----
100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT COUNT( 40 ) * - 10
----
-10

skipif mysql # not compatible
query I rowsort label-3556
SELECT COUNT ( 40 ) * - 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT CASE - NULLIF ( + + 55, 83 + - + 13 * + COUNT( * ) + + 23 + - SUM( - - 39 ) * - + 82 ) WHEN - 54 THEN NULL WHEN + - 49 / - 14 + + 48 * - - 34 * 12 THEN 76 END * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT CASE - NULLIF ( + + 55, 83 + - + 13 * + COUNT ( * ) + + 23 + - SUM ( - - 39 ) * - + 82 ) WHEN - 54 THEN NULL WHEN + - 49 / - 14 + + 48 * - - 34 * 12 THEN 76 END * + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT DISTINCT 64 + - 65 * - - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT 64 + - 65 * - - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3559
SELECT 4 * + + COUNT( * ) AS col2, 99
----
4
99

skipif mysql # not compatible
query II rowsort label-3559
SELECT 4 * + + COUNT ( * ) AS col2, 99
----
4
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3560
SELECT ALL 99 + - 12 + - 56 DIV + 28 + + + COALESCE ( + 11, - 90, - 73 + + 77 DIV 46 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL 99 + - 12 + - 56 / + 28 + + + COALESCE ( + 11, - 90, - 73 + + 77 / 46 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3561
SELECT + COALESCE ( - 96, + + 35 * 40 + COUNT( * ) * + CASE - 1 WHEN - + 77 THEN NULL ELSE - 22 * + 6 END * - + 79 + + 19 ) AS col1, + COUNT( * )
----
-96
1

skipif mysql # not compatible
query II rowsort label-3561
SELECT + COALESCE ( - 96, + + 35 * 40 + COUNT ( * ) * + CASE - 1 WHEN - + 77 THEN NULL ELSE - 22 * + 6 END * - + 79 + + 19 ) AS col1, + COUNT ( * )
----
-96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL + COUNT( * ) + + CASE 14 WHEN + 29 THEN + + 16 WHEN COUNT( * ) THEN 57 + - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + COUNT ( * ) + + CASE 14 WHEN + 29 THEN + + 16 WHEN COUNT ( * ) THEN 57 + - 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ( - - CASE + + 76 WHEN 64 THEN NULL WHEN + 14 + 89 + - - 37 * - COUNT( * ) * 71 THEN - 91 ELSE NULL END ) * AVG ( + - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT ( - - CASE + + 76 WHEN 64 THEN NULL WHEN + 14 + 89 + - - 37 * - COUNT ( * ) * 71 THEN - 91 ELSE NULL END ) * AVG ( + - 71 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT 7 * + - MAX( DISTINCT 74 ) * + 28
----
-14504

skipif mysql # not compatible
query I rowsort label-3564
SELECT 7 * + - MAX ( DISTINCT 74 ) * + 28
----
-14504

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT ALL - 46 + - CASE + 60 WHEN - 52 - + AVG ( ( 15 ) ) + + COUNT( DISTINCT + 31 ) THEN + - 47 * - - NULLIF ( + + 74, - 57 ) + - - 64 + - 29 * + 72 WHEN - + 20 THEN NULL END / + 8 * + 61 * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL - 46 + - CASE + 60 WHEN - 52 - + AVG ( ( 15 ) ) + + COUNT ( DISTINCT + 31 ) THEN + - 47 * - - NULLIF ( + + 74, - 57 ) + - - 64 + - 29 * + 72 WHEN - + 20 THEN NULL END / + 8 * + 61 * + 68 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3566
SELECT ALL + + NULLIF ( - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ), + - COUNT( * ) + - COUNT( * ) ) + MIN( 54 ) * + 46 + + COUNT( * ) + 52 + + 88 * 66 / - 79 + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + + NULLIF ( - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ), + - COUNT ( * ) + - COUNT ( * ) ) + MIN ( 54 ) * + 46 + + COUNT ( * ) + 52 + + 88 * 66 / - 79 + + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL + SUM( - 11 ) * + 32 - 59 * + 32 * 23
----
-43776

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL + SUM ( - 11 ) * + 32 - 59 * + 32 * 23
----
-43776

query I rowsort
SELECT - - 49 + + 3 * + ( 74 ) * 67 AS col0
----
14923

query I rowsort
SELECT ALL - 11 + + 83 AS col2
----
72

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

query II rowsort
SELECT - + 31 + + 46 AS col1, 22 * - - 45
----
15
990

query I rowsort
SELECT ALL + + 89 * - 78 col0
----
-6942

query II rowsort
SELECT ( - + 63 ), 56 AS col1
----
-63
56

query I rowsort
SELECT + 65 + + - 74 AS col2
----
-9

query I rowsort
SELECT DISTINCT + 3 - + + 0 AS col0
----
3

query I rowsort
SELECT - 22 * - 95 AS col1
----
2090

query I rowsort
SELECT DISTINCT + CASE - ( 85 ) WHEN + + 0 THEN - - 70 END
----
NULL

query I rowsort
SELECT + ( + 64 ) * 59 AS col0
----
3776

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT DISTINCT + 59 DIV + 29
----
2

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT + 59 / + 29
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3580
SELECT ( - - MIN( ALL - 84 ) ) col1, + 63 AS col0
----
-84
63

skipif mysql # not compatible
query II rowsort label-3580
SELECT ( - - MIN ( ALL - 84 ) ) col1, + 63 AS col0
----
-84
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3581
SELECT + COALESCE ( - + 52, - - 53 DIV + 43 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3581
SELECT + COALESCE ( - + 52, - - 53 / + 43 ) AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3582
SELECT + CAST( - 80 AS SIGNED ) DIV COUNT( - 40 )
----
-80

skipif mysql # not compatible
query I rowsort label-3582
SELECT + CAST ( - 80 AS INTEGER ) / COUNT ( - 40 )
----
-80

query I rowsort
SELECT ALL 66 * 9 * + 26 AS col1
----
15444

query I rowsort
SELECT ALL 59 * - 2 * + 24
----
-2832

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT NULLIF ( + 22, - + MAX( - + 80 ) / + + 75 + + 32 ) * + - 22 - + MIN( + - 27 ) + - ( - 71 ) AS col1
----
-386

skipif mysql # not compatible
query I rowsort label-3585
SELECT NULLIF ( + 22, - + MAX ( - + 80 ) / + + 75 + + 32 ) * + - 22 - + MIN ( + - 27 ) + - ( - 71 ) AS col1
----
-386

onlyif mysql # DIV for integer division: 
query I rowsort label-3586
SELECT + 24 DIV - 53 * + 32
----
0

skipif mysql # not compatible
query I rowsort label-3586
SELECT + 24 / - 53 * + 32
----
0

query I rowsort
SELECT ALL - 41 * 50
----
-2050

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3588
SELECT ALL - 33 * - 69 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT ALL - 33 * - 69 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 72 * - 8 + 58 - - + 6 col1
----
-512

query I rowsort
SELECT 69 * - + 61 + 9
----
-4200

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3591
SELECT + ( - COALESCE ( - 1, + + 68 DIV 18 + + CAST( NULL AS SIGNED ) * + 41, - + 41 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3591
SELECT + ( - COALESCE ( - 1, + + 68 / 18 + + CAST ( NULL AS INTEGER ) * + 41, - + 41 ) )
----
1

query I rowsort
SELECT + ( 1 ) + - - 38 AS col2
----
39

query II rowsort
SELECT ALL + 59 col0, + 6 * + 19 AS col0
----
59
114

query I rowsort
SELECT + 58 + + 66 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT ALL + 40 * + SUM( - - 56 ) + 48 + - 71 col1
----
2217

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL + 40 * + SUM ( - - 56 ) + 48 + - 71 col1
----
2217

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL - COUNT( * ) * + 84 + - 40 + 69
----
-55

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL - COUNT ( * ) * + 84 + - 40 + 69
----
-55

query I rowsort
SELECT + 77 + + 43
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3599
SELECT DISTINCT + 59 * CASE 90 WHEN 33 THEN 64 ELSE NULL END, - COALESCE ( + - MAX( ALL - 12 ), - 39 * + - 84 - 6 * - 6 ) + + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3599
SELECT DISTINCT + 59 * CASE 90 WHEN 33 THEN 64 ELSE NULL END, - COALESCE ( + - MAX ( ALL - 12 ), - 39 * + - 84 - 6 * - 6 ) + + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3600
SELECT ALL + ( + ( - CASE - 36 WHEN - 1 THEN - COUNT( * ) * CAST( NULL AS SIGNED ) * 19 ELSE - 86 END ) )
----
86

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL + ( + ( - CASE - 36 WHEN - 1 THEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) * 19 ELSE - 86 END ) )
----
86

query I rowsort
SELECT ALL + + 67 * + 87 + - NULLIF ( - COALESCE ( 78, + + 18 ), - - 84 * 78 ) - - 58
----
5965

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT - + 45 + + 6 + + + 32 * - 0 * CASE + + 48 WHEN + + 66 + + + 66 THEN - 56 - + 7 + + 82 + + - 33 * COALESCE ( - CASE - + 35 WHEN + 43 THEN + 1 * - - 75 + COUNT( * ) ELSE NULL END, - 86 * - 11 + + - 43 * + SUM( ALL + 63 ) ) * + COUNT( * ) * 67 * - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT - + 45 + + 6 + + + 32 * - 0 * CASE + + 48 WHEN + + 66 + + + 66 THEN - 56 - + 7 + + 82 + + - 33 * COALESCE ( - CASE - + 35 WHEN + 43 THEN + 1 * - - 75 + COUNT ( * ) ELSE NULL END, - 86 * - 11 + + - 43 * + SUM ( ALL + 63 ) ) * + COUNT ( * ) * 67 * - 67 END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT + - CASE - COUNT( * ) WHEN + - 99 + 14 + 39 + - + COUNT( * ) * 75 THEN - COUNT( * ) END / + ( - 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT + - CASE - COUNT ( * ) WHEN + - 99 + 14 + 39 + - + COUNT ( * ) * 75 THEN - COUNT ( * ) END / + ( - 65 )
----
NULL

query I rowsort
SELECT - 40 + - - 37 AS col0
----
-3

query I rowsort
SELECT + 79 * - 61
----
-4819

query I rowsort
SELECT ALL - 99 - 79
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT - 7 DIV + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3609
SELECT - 7 / + 26 AS col2
----
0

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

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

query II rowsort
SELECT DISTINCT + 75 AS col0, 85 / - + CASE + + 91 WHEN 50 / 26 THEN - 11 ELSE NULL END * + 80 col0
----
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3612
SELECT - COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) + - - MIN( - - 27 )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3612
SELECT - COUNT ( * ) AS col1, CAST ( NULL AS REAL ) + - - MIN ( - - 27 )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3613
SELECT + 82 + + + COUNT( - 87 ), + 7 * - 59 AS col1
----
83
-413

skipif mysql # not compatible
query II rowsort label-3613
SELECT + 82 + + + COUNT ( - 87 ), + 7 * - 59 AS col1
----
83
-413

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3614
SELECT - ( + + CAST( NULL AS DECIMAL ) ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT - ( + + CAST ( NULL AS REAL ) ) * + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT - MAX( 50 ) + + 2 + + + 51 * - 1 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3615
SELECT - MAX ( 50 ) + + 2 + + + 51 * - 1 AS col0
----
-99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3617
SELECT - COALESCE ( + + 65, + + 80 + - + 40 + + 62 + + CASE - 3 WHEN CAST( - COUNT( * ) AS SIGNED ) * + + 33 * + 49 THEN + 82 END + + CAST( - 46 AS SIGNED ) * + 81 * 27 + - COUNT( + 81 ) DIV 69 )
----
-65

skipif mysql # not compatible
query I rowsort label-3617
SELECT - COALESCE ( + + 65, + + 80 + - + 40 + + 62 + + CASE - 3 WHEN CAST ( - COUNT ( * ) AS INTEGER ) * + + 33 * + 49 THEN + 82 END + + CAST ( - 46 AS INTEGER ) * + 81 * 27 + - COUNT ( + 81 ) / 69 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT - ( - 50 ) * 46 * COUNT( * ) AS col2
----
2300

skipif mysql # not compatible
query I rowsort label-3618
SELECT - ( - 50 ) * 46 * COUNT ( * ) AS col2
----
2300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3619
SELECT ALL + 73 * + 23 DIV - COUNT( + 2 ) AS col0
----
-1679

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL + 73 * + 23 / - COUNT ( + 2 ) AS col0
----
-1679

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3620
SELECT - ( - 23 ) + + 12 DIV NULLIF ( - COUNT( * ), + 25 * - + 56 * - - 20 + - 51 + - 49 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3620
SELECT - ( - 23 ) + + 12 / NULLIF ( - COUNT ( * ), + 25 * - + 56 * - - 20 + - 51 + - 49 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL - COALESCE ( + + 66, + + 47 ) / + CASE + 38 WHEN - AVG ( + ( + 42 ) ) THEN + 72 + - COUNT( * ) END + - - ( + COUNT( * ) ) + + + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL - COALESCE ( + + 66, + + 47 ) / + CASE + 38 WHEN - AVG ( + ( + 42 ) ) THEN + 72 + - COUNT ( * ) END + - - ( + COUNT ( * ) ) + + + 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT COUNT( * ) * + - ( - 2 ) + + - COALESCE ( 71, 78 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3622
SELECT COUNT ( * ) * + - ( - 2 ) + + - COALESCE ( 71, 78 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT + COUNT( - 94 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3623
SELECT + COUNT ( - 94 ) col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT ALL - 89 DIV 10 + 41
----
33

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - 89 / 10 + 41
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT 73 DIV - 75 + - 68 col0
----
-68

skipif mysql # not compatible
query I rowsort label-3625
SELECT 73 / - 75 + - 68 col0
----
-68

query I rowsort
SELECT + 94 + - + 32 + - 2 - - 18 AS col0
----
78

query I rowsort
SELECT DISTINCT + NULLIF ( + 5, 85 + - 27 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT ALL + 12 / COUNT( * ) + - 1 + SUM( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL + 12 / COUNT ( * ) + - 1 + SUM ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 82 * - - 6
----
-492

query I rowsort
SELECT + 88 + - 36 - - 7 AS col2
----
59

query I rowsort
SELECT - ( ( - - 74 ) ) * + + 80 AS col0
----
-5920

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT - COALESCE ( + 55, - 80, + 98 * - - 85 + - 14 - - 53 * - MIN( ALL 64 ), + 77 * 53 - + - MIN( + 27 ) / + 17 ) * - 1 - + + MIN( ALL 24 ) + ( + + 76 ) * + 41 * - + MIN( + CASE - 0 WHEN 21 + 8 + + 44 / + 2 + - + 96 THEN NULL WHEN + COALESCE ( - 14, + 71 ) + 72 THEN + + 40 + + + 46 / + + 34 * + 54 WHEN 35 THEN NULL WHEN - 28 THEN + 16 END ) + - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT - COALESCE ( + 55, - 80, + 98 * - - 85 + - 14 - - 53 * - MIN ( ALL 64 ), + 77 * 53 - + - MIN ( + 27 ) / + 17 ) * - 1 - + + MIN ( ALL 24 ) + ( + + 76 ) * + 41 * - + MIN ( + CASE - 0 WHEN 21 + 8 + + 44 / + 2 + - + 96 THEN NULL WHEN + COALESCE ( - 14, + 71 ) + 72 THEN + + 40 + + + 46 / + + 34 * + 54 WHEN 35 THEN NULL WHEN - 28 THEN + 16 END ) + - 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL CASE + 11 WHEN - + ( - + 88 ) * + COUNT( * ) * 63 THEN NULL WHEN - + NULLIF ( 54, 76 ) THEN NULL WHEN - ( - - MAX( ALL + 38 ) ) + - - COALESCE ( - 40, - + 7 ) + - 83 * - + COALESCE ( + 16, 34 + 18 + 16 / 88 ) * - 47 - + 38 THEN + 45 * 84 / 41 * 79 WHEN 65 THEN NULL ELSE NULL END + - - 76 * + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL CASE + 11 WHEN - + ( - + 88 ) * + COUNT ( * ) * 63 THEN NULL WHEN - + NULLIF ( 54, 76 ) THEN NULL WHEN - ( - - MAX ( ALL + 38 ) ) + - - COALESCE ( - 40, - + 7 ) + - 83 * - + COALESCE ( + 16, 34 + 18 + 16 / 88 ) * - 47 - + 38 THEN + 45 * 84 / 41 * 79 WHEN 65 THEN NULL ELSE NULL END + - - 76 * + 54
----
NULL

query I rowsort
SELECT ALL 29 * - 50
----
-1450

query I rowsort
SELECT ALL - 11 + - - 56
----
45

query I rowsort
SELECT 10 * - 67 * + 20 AS col2
----
-13400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT + 75 * + CASE - 58 WHEN 36 + 24 THEN ( + COUNT( * ) ) WHEN - + 73 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT + 75 * + CASE - 58 WHEN 36 + 24 THEN ( + COUNT ( * ) ) WHEN - + 73 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3639
SELECT ALL NULLIF ( 47, + 94 ) DIV + 39 - + 11 - - + COUNT( * ), - SUM( DISTINCT - 88 ) AS col2
----
-9
88

skipif mysql # not compatible
query II rowsort label-3639
SELECT ALL NULLIF ( 47, + 94 ) / + 39 - + 11 - - + COUNT ( * ), - SUM ( DISTINCT - 88 ) AS col2
----
-9
88

query II rowsort
SELECT DISTINCT - - 67, 16 AS col1
----
67
16

query I rowsort
SELECT - 41 - + 25 + - 21 AS col2
----
-87

query I rowsort
SELECT 44 * 3 AS col2
----
132

query II rowsort
SELECT + - 46 AS col2, - 71
----
-46
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT + 31 AS col1, 96 * COUNT( * ) - - 87 * + 87 + 17
----
31
7682

skipif mysql # not compatible
query II rowsort label-3644
SELECT + 31 AS col1, 96 * COUNT ( * ) - - 87 * + 87 + 17
----
31
7682

query I rowsort
SELECT ALL + 3 - 31
----
-28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3646
SELECT COALESCE ( - 14, - 50 DIV - ( ( - - 43 ) ) * + CAST( + 63 AS SIGNED ) ) * 81 AS col2
----
-1134

skipif mysql # not compatible
query I rowsort label-3646
SELECT COALESCE ( - 14, - 50 / - ( ( - - 43 ) ) * + CAST ( + 63 AS INTEGER ) ) * 81 AS col2
----
-1134

onlyif mysql # aggregate syntax: 
query II rowsort label-3647
SELECT DISTINCT 26 * + + COUNT( * ), 68 AS col1
----
26
68

skipif mysql # not compatible
query II rowsort label-3647
SELECT DISTINCT 26 * + + COUNT ( * ), 68 AS col1
----
26
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - MAX( - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - MAX ( - 46 )
----
46

query I rowsort
SELECT ALL + 53 * + 6 AS col1
----
318

query I rowsort
SELECT 46 * - 19 AS col2
----
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT 95 + 17 * COUNT( - 78 ) + + + 87 AS col1
----
199

skipif mysql # not compatible
query I rowsort label-3651
SELECT 95 + 17 * COUNT ( - 78 ) + + + 87 AS col1
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3652
SELECT - COUNT( * ) DIV - COALESCE ( 73, - 50 DIV - COALESCE ( - - 63, + + COUNT( * ) ) ) DIV 9 + - 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3652
SELECT - COUNT ( * ) / - COALESCE ( 73, - 50 / - COALESCE ( - - 63, + + COUNT ( * ) ) ) / 9 + - 38 AS col1
----
-38

query I rowsort
SELECT ALL 10 * - + 45 + - 16
----
-466

query I rowsort
SELECT 25 * + 88 AS col0
----
2200

query I rowsort
SELECT - 84 + - - 38 AS col0
----
-46

query I rowsort
SELECT 96 + + 50 AS col2
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3657
SELECT MIN( DISTINCT + 37 ) DIV + ( 3 ) + - COUNT( * ), + 43 AS col2
----
11
43

skipif mysql # not compatible
query II rowsort label-3657
SELECT MIN ( DISTINCT + 37 ) / + ( 3 ) + - COUNT ( * ), + 43 AS col2
----
11
43

query I rowsort
SELECT ALL 54 + 87 + - 62 AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3659
SELECT DISTINCT - MAX( ALL + 27 ) DIV 43, + 81 col2
----
0
81

skipif mysql # not compatible
query II rowsort label-3659
SELECT DISTINCT - MAX ( ALL + 27 ) / 43, + 81 col2
----
0
81

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3661
SELECT 95 DIV 90 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3661
SELECT 95 / 90 AS col0
----
1

query I rowsort
SELECT DISTINCT - 69 + 50 + 96
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-3663
SELECT DISTINCT - 96 DIV - - 15, - 47 AS col2
----
-6
-47

skipif mysql # not compatible
query II rowsort label-3663
SELECT DISTINCT - 96 / - - 15, - 47 AS col2
----
-6
-47

query I rowsort
SELECT ALL - 42 + 66 col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3665
SELECT 76 - 85, CAST( - 61 AS SIGNED ) AS col1
----
-9
-61

skipif mysql # not compatible
query II rowsort label-3665
SELECT 76 - 85, CAST ( - 61 AS INTEGER ) AS col1
----
-9
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3666
SELECT DISTINCT - 24 + - CASE - MAX( 24 ) WHEN + 18 / + + 42 THEN NULL ELSE - + 62 END, 92 * - 34 AS col1
----
38
-3128

skipif mysql # not compatible
query II rowsort label-3666
SELECT DISTINCT - 24 + - CASE - MAX ( 24 ) WHEN + 18 / + + 42 THEN NULL ELSE - + 62 END, 92 * - 34 AS col1
----
38
-3128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3667
SELECT DISTINCT + CASE 63 WHEN 16 THEN + 43 WHEN + CAST( NULL AS SIGNED ) / 19 + 19 THEN NULL WHEN - - 59 * - 86 + - 54 * - - 32 + - 40 THEN - + 68 - + COUNT( * ) / + COUNT( * ) ELSE NULL END + - + 74 * + + 36 + + + 0 * + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT + CASE 63 WHEN 16 THEN + 43 WHEN + CAST ( NULL AS INTEGER ) / 19 + 19 THEN NULL WHEN - - 59 * - 86 + - 54 * - - 32 + - 40 THEN - + 68 - + COUNT ( * ) / + COUNT ( * ) ELSE NULL END + - + 74 * + + 36 + + + 0 * + 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3668
SELECT ALL - COALESCE ( 8, - - CAST( - CAST( - CAST( 1 AS SIGNED ) AS SIGNED ) AS SIGNED ) ) + 90 - + 99 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL - COALESCE ( 8, - - CAST ( - CAST ( - CAST ( 1 AS INTEGER ) AS INTEGER ) AS INTEGER ) ) + 90 - + 99 AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3669
SELECT 43 DIV + 42 - - 67 - - - 28 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3669
SELECT 43 / + 42 - - 67 - - - 28 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT + 75 * - 51 + + COUNT( * ) + - + ( - 82 ) AS col2
----
-3742

skipif mysql # not compatible
query I rowsort label-3670
SELECT + 75 * - 51 + + COUNT ( * ) + - + ( - 82 ) AS col2
----
-3742

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT COALESCE ( 59, + - 7 ) * + MIN( + 5 ) AS col1
----
295

skipif mysql # not compatible
query I rowsort label-3671
SELECT COALESCE ( 59, + - 7 ) * + MIN ( + 5 ) AS col1
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT + 39 + + 38 + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3672
SELECT + 39 + + 38 + COUNT ( * ) AS col2
----
78

query I rowsort
SELECT + - 73 * - - 69 + 35 - + 22 - 74 + + 47
----
-5051

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

query I rowsort
SELECT + CASE + - 25 WHEN - 96 THEN - + ( - 6 ) + ( + + ( + ( + 58 ) ) ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 74, - 67 ) * + ( - 3 ) AS col0
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT 92 DIV - 66 + + + 62 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3677
SELECT 92 / - 66 + + + 62 AS col1
----
61

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3679
SELECT DISTINCT - + 41 / + CASE - + AVG ( - 81 ) WHEN 49 THEN - + 95 END * - + 58 + - 31 AS col1, - ( CAST( + - 58 AS SIGNED ) ) AS col2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-3679
SELECT DISTINCT - + 41 / + CASE - + AVG ( - 81 ) WHEN 49 THEN - + 95 END * - + 58 + - 31 AS col1, - ( CAST ( + - 58 AS INTEGER ) ) AS col2
----
NULL
58

query I rowsort
SELECT ALL 14 * 4 * 18
----
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3681
SELECT + + CAST( NULL AS SIGNED ) * 64 - - + 99 + + ( - - SUM( DISTINCT 3 ) ) / + ( - - 16 ) + - - 24 * - 46 + - 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT + + CAST ( NULL AS INTEGER ) * 64 - - + 99 + + ( - - SUM ( DISTINCT 3 ) ) / + ( - - 16 ) + - - 24 * - 46 + - 9 AS col1
----
NULL

query I rowsort
SELECT ALL + 71 * + + 32 * + + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT DISTINCT - 13 * 29 + + CAST( + + 35 AS SIGNED ) AS col0
----
-342

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT - 13 * 29 + + CAST ( + + 35 AS INTEGER ) AS col0
----
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT 61 * 55 * + SUM( DISTINCT - 36 ) - - - 72 * - 33 AS col1
----
-118404

skipif mysql # not compatible
query I rowsort label-3684
SELECT 61 * 55 * + SUM ( DISTINCT - 36 ) - - - 72 * - 33 AS col1
----
-118404

query I rowsort
SELECT 40 * - 6
----
-240

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

skipif mysql # not compatible
query I rowsort label-3686
SELECT + COUNT ( * ) * - 75 + 77
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT MIN( ALL - - 59 ) + - - 76 + + 44 * + - 63 * + COUNT( * ) AS col0
----
-2637

skipif mysql # not compatible
query I rowsort label-3687
SELECT MIN ( ALL - - 59 ) + - - 76 + + 44 * + - 63 * + COUNT ( * ) AS col0
----
-2637

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - COUNT( DISTINCT - 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-3688
SELECT - COUNT ( DISTINCT - 52 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT DISTINCT 72 + - 63 + + COUNT( * ) + - - 56 - + COUNT( * ) - - 4
----
69

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT 72 + - 63 + + COUNT ( * ) + - - 56 - + COUNT ( * ) - - 4
----
69

query I rowsort
SELECT ALL 36 + - + 86 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT 86 + - COALESCE ( - 5, - - 3 * NULLIF ( COUNT( - 88 ), 86 ) ) + 54 * + + 64 + MAX( DISTINCT + 99 )
----
3646

skipif mysql # not compatible
query I rowsort label-3691
SELECT 86 + - COALESCE ( - 5, - - 3 * NULLIF ( COUNT ( - 88 ), 86 ) ) + 54 * + + 64 + MAX ( DISTINCT + 99 )
----
3646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3692
SELECT DISTINCT 66 DIV SUM( DISTINCT + 65 ) * - SUM( DISTINCT + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT 66 / SUM ( DISTINCT + 65 ) * - SUM ( DISTINCT + 48 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3693
SELECT SUM( ALL 35 ) * - ( - 65 ) * 42 + + - 3 + + + ( COUNT( * ) ) DIV 23 AS col2
----
95547

skipif mysql # not compatible
query I rowsort label-3693
SELECT SUM ( ALL 35 ) * - ( - 65 ) * 42 + + - 3 + + + ( COUNT ( * ) ) / 23 AS col2
----
95547

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ( + + 54 ) - - - COUNT( * ) * 41 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3694
SELECT ( + + 54 ) - - - COUNT ( * ) * 41 AS col2
----
13

query II rowsort
SELECT 85 + - + 27 - + 37, 80 AS col2
----
21
80

query I rowsort
SELECT DISTINCT 94 + + 23
----
117

query II rowsort
SELECT ALL 53 AS col2, 63 AS col0
----
53
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3698
SELECT - COUNT( ALL + CAST( NULL AS SIGNED ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3698
SELECT - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT ALL COUNT( * ) AS col0, 96
----
1
96

skipif mysql # not compatible
query II rowsort label-3699
SELECT ALL COUNT ( * ) AS col0, 96
----
1
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3700
SELECT ALL + 47 DIV 81 * + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL + 47 / 81 * + COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3701
SELECT DISTINCT + COUNT( * ) DIV - - 83
----
0

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + COUNT ( * ) / - - 83
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT 52 col1, + COUNT( * ) + - 51 + + 70 * + ( + COUNT( * ) )
----
52
20

skipif mysql # not compatible
query II rowsort label-3702
SELECT 52 col1, + COUNT ( * ) + - 51 + + 70 * + ( + COUNT ( * ) )
----
52
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3703
SELECT + - CAST( + MIN( - 61 ) AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-3703
SELECT + - CAST ( + MIN ( - 61 ) AS INTEGER )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT - - 42 + 73 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT - - 42 + 73 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3705
SELECT ALL - NULLIF ( + - ( + + 88 ), - + ( - ( - CAST( + COUNT( * ) AS SIGNED ) ) ) ) * - ( + 44 ), 86 - 7 AS col1
----
-3872
79

skipif mysql # not compatible
query II rowsort label-3705
SELECT ALL - NULLIF ( + - ( + + 88 ), - + ( - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) ) ) * - ( + 44 ), 86 - 7 AS col1
----
-3872
79

query I rowsort
SELECT + ( - + 90 ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT - + SUM( ALL + + 65 ) * + + 64
----
-4160

skipif mysql # not compatible
query I rowsort label-3707
SELECT - + SUM ( ALL + + 65 ) * + + 64
----
-4160

query I rowsort
SELECT ALL 29 * - 37 AS col2
----
-1073

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3709
SELECT - 77 AS col1, + 0 + CAST( NULL AS SIGNED ) AS col2
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-3709
SELECT - 77 AS col1, + 0 + CAST ( NULL AS INTEGER ) AS col2
----
-77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3710
SELECT ALL + + COUNT( * ) AS col1, + CAST( + NULLIF ( - - MAX( 91 ), + + 37 + - - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
1
91

skipif mysql # not compatible
query II rowsort label-3710
SELECT ALL + + COUNT ( * ) AS col1, + CAST ( + NULLIF ( - - MAX ( 91 ), + + 37 + - - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
1
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3711
SELECT - + COUNT( * ) DIV - CAST( 23 AS SIGNED ) * - + NULLIF ( + 50, - + 98 ) + + 14 + - - 48 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3711
SELECT - + COUNT ( * ) / - CAST ( 23 AS INTEGER ) * - + NULLIF ( + 50, - + 98 ) + + 14 + - - 48 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL + COUNT( * ) * - - 32 + 66 + + + COUNT( * ) * + 47 * 65 * MAX( 9 )
----
27593

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL + COUNT ( * ) * - - 32 + 66 + + + COUNT ( * ) * + 47 * 65 * MAX ( 9 )
----
27593

query I rowsort
SELECT - - 45 - 40 * + 31
----
-1195

onlyif mysql # aggregate syntax: 
query II rowsort label-3714
SELECT - + COUNT( + - NULLIF ( + - 8, + + 12 ) ) * NULLIF ( - 58, 23 + + - 32 ), 30 AS col2
----
58
30

skipif mysql # not compatible
query II rowsort label-3714
SELECT - + COUNT ( + - NULLIF ( + - 8, + + 12 ) ) * NULLIF ( - 58, 23 + + - 32 ), 30 AS col2
----
58
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT DISTINCT + 27 * + ( MAX( + 22 ) ) * CAST( NULL AS SIGNED ) * - - 20 - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT + 27 * + ( MAX ( + 22 ) ) * CAST ( NULL AS INTEGER ) * - - 20 - + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT DISTINCT - - COUNT( * ) + 95 * + + 15 + - - 23 + + 60 AS col2
----
1509

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - - COUNT ( * ) + 95 * + + 15 + - - 23 + + 60 AS col2
----
1509

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT ALL + - ( + COUNT( * ) ) DIV - 4 + + 28
----
28

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + - ( + COUNT ( * ) ) / - 4 + + 28
----
28

query I rowsort
SELECT - ( + + 60 ) + + + 92 AS col1
----
32

query I rowsort
SELECT DISTINCT + 96 * + CASE + + 93 WHEN + - 59 THEN 6 END * - + 39
----
NULL

query I rowsort
SELECT ALL - 42 + - 60 * - 45 AS col0
----
2658

query I rowsort
SELECT - ( - ( 63 ) ) * + 2 * 9 + + 71
----
1205

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3722
SELECT - COUNT( DISTINCT ( - 45 ) ) + - 51 AS col2, ( 49 ) DIV - - 96 * - - COALESCE ( 58, - + 59 * - 10 * - - COUNT( ALL + - 3 ) ) + 31 + 7
----
-52
38

skipif mysql # not compatible
query II rowsort label-3722
SELECT - COUNT ( DISTINCT ( - 45 ) ) + - 51 AS col2, ( 49 ) / - - 96 * - - COALESCE ( 58, - + 59 * - 10 * - - COUNT ( ALL + - 3 ) ) + 31 + 7
----
-52
38

query I rowsort
SELECT - NULLIF ( 34, + 39 / - 44 ) AS col1
----
-34

query I rowsort
SELECT + 89 + + 26
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3725
SELECT + 47 - + 96 / + + CASE + + COALESCE ( + CAST( + + 66 AS SIGNED ), - 66, 87 ) WHEN COUNT( * ) * + ( + 82 ) + + - ( - ( - 57 ) ) * + + 4 THEN + 15 WHEN - ( 59 ) THEN NULL END + - - CAST( - NULLIF ( - 43, + 73 - + 76 ) AS SIGNED ) - - 90 AS col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3725
SELECT + 47 - + 96 / + + CASE + + COALESCE ( + CAST ( + + 66 AS INTEGER ), - 66, 87 ) WHEN COUNT ( * ) * + ( + 82 ) + + - ( - ( - 57 ) ) * + + 4 THEN + 15 WHEN - ( 59 ) THEN NULL END + - - CAST ( - NULLIF ( - 43, + 73 - + 76 ) AS INTEGER ) - - 90 AS col2, + COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - COUNT( ALL - 33 )
----
-1

skipif mysql # not compatible
query I rowsort label-3726
SELECT - COUNT ( ALL - 33 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3727
SELECT + SUM( + - 58 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT + SUM ( + - 58 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3728
SELECT ALL + 24 - - CASE - + 96 WHEN - 30 THEN - MAX( ALL - - 72 ) WHEN - ( 55 ) * - + 82 + 8 * ( - - CAST( + COUNT( * ) AS SIGNED ) ) THEN - + ( - - 73 ) * + 71 + - 85 + ( - 77 ) + - 73 WHEN + 55 THEN NULL END * + ( + 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL + 24 - - CASE - + 96 WHEN - 30 THEN - MAX ( ALL - - 72 ) WHEN - ( 55 ) * - + 82 + 8 * ( - - CAST ( + COUNT ( * ) AS INTEGER ) ) THEN - + ( - - 73 ) * + 71 + - 85 + ( - 77 ) + - 73 WHEN + 55 THEN NULL END * + ( + 94 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT + 53 * + MAX( - - 81 )
----
4293

skipif mysql # not compatible
query I rowsort label-3729
SELECT + 53 * + MAX ( - - 81 )
----
4293

query I rowsort
SELECT DISTINCT + 6 - - 82 - - 51 AS col0
----
139

query I rowsort
SELECT - 17 - - - 65 * 90 AS col0
----
-5867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT + 93 - + + 47 DIV - 55
----
93

skipif mysql # not compatible
query I rowsort label-3733
SELECT + 93 - + + 47 / - 55
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT + 52 DIV - ( + + 47 )
----
-1

skipif mysql # not compatible
query I rowsort label-3734
SELECT + 52 / - ( + + 47 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT + COUNT( ALL + - 74 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3735
SELECT + COUNT ( ALL + - 74 ) * - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3736
SELECT ALL + + CASE + COUNT( * ) WHEN + - 78 + - - CAST( NULL AS SIGNED ) + + 68 * - + 60 * + - 98 THEN - MAX( ALL + + 87 ) ELSE NULLIF ( 95, + COUNT( * ) ) END
----
95

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL + + CASE + COUNT ( * ) WHEN + - 78 + - - CAST ( NULL AS INTEGER ) + + 68 * - + 60 * + - 98 THEN - MAX ( ALL + + 87 ) ELSE NULLIF ( 95, + COUNT ( * ) ) END
----
95

query I rowsort
SELECT DISTINCT - NULLIF ( 16, - 80 + - + CASE - 4 WHEN + 96 THEN - 81 ELSE 68 END ) * + 37 + - - 87 * - - 75 + + 92
----
6025

query I rowsort
SELECT + 35 * 86 AS col0
----
3010

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT + - 35 - 87, 97 + + + SUM( + 44 ) AS col2
----
-122
141

skipif mysql # not compatible
query II rowsort label-3739
SELECT + - 35 - 87, 97 + + + SUM ( + 44 ) AS col2
----
-122
141

query I rowsort
SELECT ALL + COALESCE ( + 33, + 58 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT - - 7 * + - 80 + COUNT( * ) AS col0
----
-559

skipif mysql # not compatible
query I rowsort label-3741
SELECT - - 7 * + - 80 + COUNT ( * ) AS col0
----
-559

query II rowsort
SELECT - - 86 * 97 AS col1, - 46 * + - 43 * + 32 AS col0
----
8342
63296

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT 94 * - 38 - 33 DIV + 45
----
-3572

skipif mysql # not compatible
query I rowsort label-3743
SELECT 94 * - 38 - 33 / + 45
----
-3572

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT DISTINCT + COUNT( * ) * - + COALESCE ( 84, + 28 + 76 )
----
-84

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + COUNT ( * ) * - + COALESCE ( 84, + 28 + 76 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL - 28 * - 4 + COALESCE ( - - COUNT( * ), + 99 * COUNT( * ) - - - MIN( DISTINCT + 38 ), + 4 ) * - + 19 * + 30 AS col1
----
-458

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - 28 * - 4 + COALESCE ( - - COUNT ( * ), + 99 * COUNT ( * ) - - - MIN ( DISTINCT + 38 ), + 4 ) * - + 19 * + 30 AS col1
----
-458

query I rowsort
SELECT ALL 48 * + 40 + 67 AS col0
----
1987

query I rowsort
SELECT + NULLIF ( - 64, - + 15 ) AS col1
----
-64

query I rowsort
SELECT DISTINCT + 10 * 49 AS col2
----
490

query I rowsort
SELECT NULLIF ( - - 34, ( 1 ) )
----
34

query I rowsort
SELECT - ( + - 19 ) * - + 60
----
-1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT ALL CAST( + - 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL CAST ( + - 18 AS INTEGER )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3752
SELECT - CAST( - 74 AS SIGNED ) + - + 62 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3752
SELECT - CAST ( - 74 AS INTEGER ) + - + 62 AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3753
SELECT ALL + 92 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL + 92 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL + 93 - + + 56 * + + MIN( + + 12 ) * - 18
----
12189

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + 93 - + + 56 * + + MIN ( + + 12 ) * - 18
----
12189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT DISTINCT - NULLIF ( + - COALESCE ( 4, + 85 + COUNT( * ) + COUNT( * ) DIV - 10 DIV 89 * - - 74 ), - SUM( - - 20 ) * + + 12 + COUNT( * ) - + ( NULLIF ( - 50, - - SUM( ALL + 50 ) ) ) ) * 25 * + + COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT - NULLIF ( + - COALESCE ( 4, + 85 + COUNT ( * ) + COUNT ( * ) / - 10 / 89 * - - 74 ), - SUM ( - - 20 ) * + + 12 + COUNT ( * ) - + ( NULLIF ( - 50, - - SUM ( ALL + 50 ) ) ) ) * 25 * + + COUNT ( * ) AS col0
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-3756
SELECT ALL 7 AS col2, 24 + - + 46 DIV + - 16
----
7
26

skipif mysql # not compatible
query II rowsort label-3756
SELECT ALL 7 AS col2, 24 + - + 46 / + - 16
----
7
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL - 48 * - 62 * + + COUNT( * )
----
2976

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL - 48 * - 62 * + + COUNT ( * )
----
2976

query II rowsort
SELECT ALL 18 AS col0, - 42
----
18
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT 20 + + 72 * 93 + - 61 * - CASE 95 WHEN + + 46 + MIN( ALL + 68 ) THEN + 73 * + 24 WHEN - + 31 + COUNT( * ) + + 46 THEN NULL WHEN - 32 THEN NULL ELSE + 98 * + COUNT( - - 20 ) END + + ( - - COUNT( * ) ) AS col0
----
12695

skipif mysql # not compatible
query I rowsort label-3759
SELECT 20 + + 72 * 93 + - 61 * - CASE 95 WHEN + + 46 + MIN ( ALL + 68 ) THEN + 73 * + 24 WHEN - + 31 + COUNT ( * ) + + 46 THEN NULL WHEN - 32 THEN NULL ELSE + 98 * + COUNT ( - - 20 ) END + + ( - - COUNT ( * ) ) AS col0
----
12695

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT COUNT( * ) * + COALESCE ( - 83, MIN( + 18 ) ) * 35
----
-2905

skipif mysql # not compatible
query I rowsort label-3760
SELECT COUNT ( * ) * + COALESCE ( - 83, MIN ( + 18 ) ) * 35
----
-2905

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL 34 + - COUNT( * ) * COUNT( * ) col1
----
33

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL 34 + - COUNT ( * ) * COUNT ( * ) col1
----
33

query I rowsort
SELECT 45 + - 39 AS col2
----
6

query I rowsort
SELECT ALL 27 * 77 AS col1
----
2079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3764
SELECT ( + 2 ) DIV + 45 + CASE 58 WHEN COUNT( DISTINCT - 22 ) THEN - 1 * COUNT( * ) WHEN + ( - 30 ) - - COUNT( * ) * - 50 THEN NULL ELSE COUNT( * ) * 31 + 27 END AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3764
SELECT ( + 2 ) / + 45 + CASE 58 WHEN COUNT ( DISTINCT - 22 ) THEN - 1 * COUNT ( * ) WHEN + ( - 30 ) - - COUNT ( * ) * - 50 THEN NULL ELSE COUNT ( * ) * 31 + 27 END AS col1
----
58

query I rowsort
SELECT ALL 98 + + 84
----
182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3766
SELECT CAST( - 33 AS SIGNED ) DIV 27 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3766
SELECT CAST ( - 33 AS INTEGER ) / 27 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT CAST( + ( + 26 ) AS SIGNED ) + 45 * + ( 26 ) AS col0
----
1196

skipif mysql # not compatible
query I rowsort label-3767
SELECT CAST ( + ( + 26 ) AS INTEGER ) + 45 * + ( 26 ) AS col0
----
1196

query I rowsort
SELECT ALL 91 * 56
----
5096

query I rowsort
SELECT ALL 50 + + 9 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT DISTINCT 85 + - COUNT( + 78 ) * + 1 col1
----
84

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT 85 + - COUNT ( + 78 ) * + 1 col1
----
84

query I rowsort
SELECT ALL 44 + - 91 * - 14 AS col2
----
1318

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL 55 * NULLIF ( - 2, ( - ( MAX( DISTINCT 47 ) ) ) )
----
-110

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL 55 * NULLIF ( - 2, ( - ( MAX ( DISTINCT 47 ) ) ) )
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL 20 + + ( + COUNT( * ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL 20 + + ( + COUNT ( * ) ) AS col2
----
21

query I rowsort
SELECT DISTINCT 79 + 10
----
89

query I rowsort
SELECT DISTINCT 49 + 41 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL 84 - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL 84 - COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT 79 - NULLIF ( 50, - 50 * - NULLIF ( 44, 32 ) - 19 * - ( - COUNT( * ) ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3777
SELECT 79 - NULLIF ( 50, - 50 * - NULLIF ( 44, 32 ) - 19 * - ( - COUNT ( * ) ) ) AS col2
----
29

query I rowsort
SELECT ALL 78 * - CASE ( - NULLIF ( - 70, 69 - 98 ) ) WHEN - 11 THEN 10 + + 8 END AS col2
----
NULL

query I rowsort
SELECT 85 * - 95
----
-8075

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT + 29 * 53 - - CASE 91 + - 51 WHEN COUNT( * ) + 25 / 53 THEN NULL ELSE 85 + 36 * + 23 END AS col0
----
2450

skipif mysql # not compatible
query I rowsort label-3780
SELECT + 29 * 53 - - CASE 91 + - 51 WHEN COUNT ( * ) + 25 / 53 THEN NULL ELSE 85 + 36 * + 23 END AS col0
----
2450

query I rowsort
SELECT 24 * 30 AS col0
----
720

query I rowsort
SELECT 30 + + 30
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT 14 - + MAX( + ( + 36 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3783
SELECT 14 - + MAX ( + ( + 36 ) ) AS col0
----
-22

query I rowsort
SELECT 4 * - 12 AS col2
----
-48

query I rowsort
SELECT 39 * + 56
----
2184

query I rowsort
SELECT ( + 86 ) + 9
----
95

query I rowsort
SELECT 55 + + 29
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT 29 * ( NULLIF ( - 71, COUNT( * ) ) )
----
-2059

skipif mysql # not compatible
query I rowsort label-3788
SELECT 29 * ( NULLIF ( - 71, COUNT ( * ) ) )
----
-2059

query I rowsort
SELECT ALL - 17 + 24 AS col1
----
7

query I rowsort
SELECT DISTINCT - 99 + - 49 AS col0
----
-148

query I rowsort
SELECT ( + ( 5 ) )
----
5

query I rowsort
SELECT ALL - 99 + 10 * + 21
----
111

query I rowsort
SELECT - 26 * - 76 AS col1
----
1976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT ALL - - CAST( NULL AS SIGNED ) + - 33 * 57 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 33 * 57 col1
----
NULL

query I rowsort
SELECT - 39 * 54 AS col0
----
-2106

query I rowsort
SELECT DISTINCT - 55 + - 69
----
-124

query I rowsort
SELECT DISTINCT + 97 * 50 AS col2
----
4850

query I rowsort
SELECT + 92 + - 14
----
78

query I rowsort
SELECT + 75 * + 90
----
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL CASE - 10 WHEN 29 THEN NULL WHEN 51 * + 22 THEN + 42 + 26 WHEN 11 THEN - CASE + COUNT( * ) WHEN - 19 THEN 34 WHEN + 9 THEN NULL ELSE - 40 + 98 END END * - 28 + + MAX( DISTINCT 85 - - NULLIF ( + 47, 62 * NULLIF ( + 4, CASE 26 WHEN 40 THEN + 14 * 24 END * 87 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL CASE - 10 WHEN 29 THEN NULL WHEN 51 * + 22 THEN + 42 + 26 WHEN 11 THEN - CASE + COUNT ( * ) WHEN - 19 THEN 34 WHEN + 9 THEN NULL ELSE - 40 + 98 END END * - 28 + + MAX ( DISTINCT 85 - - NULLIF ( + 47, 62 * NULLIF ( + 4, CASE 26 WHEN 40 THEN + 14 * 24 END * 87 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + - COUNT( * ) * 21 - 35 * + ( 84 )
----
-2961

skipif mysql # not compatible
query I rowsort label-3801
SELECT + - COUNT ( * ) * 21 - 35 * + ( 84 )
----
-2961

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT + COALESCE ( COUNT( * ), 58, 71 - + 69 )
----
1

skipif mysql # not compatible
query I rowsort label-3802
SELECT + COALESCE ( COUNT ( * ), 58, 71 - + 69 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT - CASE + MAX( 94 ) WHEN 45 * COUNT( + 76 ) THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT - CASE + MAX ( 94 ) WHEN 45 * COUNT ( + 76 ) THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - 34 * - 54 - - 29 * - 22
----
1198

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT + COUNT( * ) * + 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT + COUNT ( * ) * + 33 AS col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3806
SELECT - + COUNT( * ) * - COUNT( * ) - + CAST( - 92 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-3806
SELECT - + COUNT ( * ) * - COUNT ( * ) - + CAST ( - 92 AS INTEGER )
----
93

query I rowsort
SELECT ALL 65 * - 15
----
-975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT + 63 * CAST( NULL AS SIGNED ) + AVG ( ALL + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT + 63 * CAST ( NULL AS INTEGER ) + AVG ( ALL + 77 )
----
NULL

query I rowsort
SELECT ALL 1 * + ( 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT 93 * + COALESCE ( 53, 38 - + 90 * 17 ) + COUNT( * ) AS col1
----
4930

skipif mysql # not compatible
query I rowsort label-3810
SELECT 93 * + COALESCE ( 53, 38 - + 90 * 17 ) + COUNT ( * ) AS col1
----
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL + COUNT( ALL + 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + COUNT ( ALL + 14 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT + 89 + - - CASE 63 WHEN NULLIF ( - COUNT( * ), ( 85 ) + 72 ) * + 61 + 37 THEN 50 + 47 * 67 WHEN - 71 THEN - SUM( DISTINCT + 52 ) + - 21 ELSE NULL END + + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT + 89 + - - CASE 63 WHEN NULLIF ( - COUNT ( * ), ( 85 ) + 72 ) * + 61 + 37 THEN 50 + 47 * 67 WHEN - 71 THEN - SUM ( DISTINCT + 52 ) + - 21 ELSE NULL END + + 44 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3813
SELECT + 65 + CAST( NULL AS SIGNED ) - COUNT( DISTINCT 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT + 65 + CAST ( NULL AS INTEGER ) - COUNT ( DISTINCT 26 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3814
SELECT + 82 DIV + + 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3814
SELECT + 82 / + + 65 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3815
SELECT ALL MAX( DISTINCT - 57 ) DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL MAX ( DISTINCT - 57 ) / - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT + 94 + 25 DIV - 14 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3816
SELECT + 94 + 25 / - 14 AS col0
----
93

query I rowsort
SELECT 21 * - 99 * 90 + + 6 AS col1
----
-187104

query I rowsort
SELECT + 29 * + 42
----
1218

query I rowsort
SELECT + 68 * - 3 + + 41 AS col2
----
-163

query I rowsort
SELECT ALL - 30 * - 51 AS col2
----
1530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3821
SELECT DISTINCT AVG ( DISTINCT + - CAST( - CASE 85 WHEN 81 THEN - 32 / 70 ELSE NULL END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT AVG ( DISTINCT + - CAST ( - CASE 85 WHEN 81 THEN - 32 / 70 ELSE NULL END AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 58 + - - 68
----
126

query I rowsort
SELECT DISTINCT - 3 + - - 55
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT - COUNT( * ) + + - NULLIF ( + 60, 44 * ( + 85 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-3824
SELECT - COUNT ( * ) + + - NULLIF ( + 60, 44 * ( + 85 ) )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT + + COUNT( * ) + 59 * 60 col0
----
3541

skipif mysql # not compatible
query I rowsort label-3825
SELECT + + COUNT ( * ) + 59 * 60 col0
----
3541

query I rowsort
SELECT + NULLIF ( - 30, - AVG ( ALL - 62 ) ) AS col1
----
-30

query I rowsort
SELECT + - 62 + + 37
----
-25

query I rowsort
SELECT - - 56 - - 94 AS col2
----
150

query I rowsort
SELECT DISTINCT + - 67 + 22 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL - - 4 + MIN( 55 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - - 4 + MIN ( 55 ) AS col0
----
59

query I rowsort
SELECT - 12 + - - 21
----
9

query I rowsort
SELECT DISTINCT - 74 - + ( 6 ) AS col1
----
-80

query I rowsort
SELECT - 39 + + 14
----
-25

query I rowsort
SELECT ALL + + 62 * - 89 + 39 AS col0
----
-5479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3835
SELECT - - CASE - ( COUNT( * ) ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - MIN( 56 ) + - 97 THEN + AVG ( 51 ) * + 93 WHEN + NULLIF ( + 73, AVG ( - 48 ) + + 88 * 68 ) DIV + 37 THEN + 63 ELSE + 28 - + COUNT( * ) END DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT - - CASE - ( COUNT ( * ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - MIN ( 56 ) + - 97 THEN + AVG ( 51 ) * + 93 WHEN + NULLIF ( + 73, AVG ( - 48 ) + + 88 * 68 ) / + 37 THEN + 63 ELSE + 28 - + COUNT ( * ) END / 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT - - ( + - 88 ) DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-3836
SELECT - - ( + - 88 ) / + 98
----
0

query I rowsort
SELECT DISTINCT + - 12 * - 38 - 9
----
447

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL - + COUNT( * ) * - 64
----
64

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL - + COUNT ( * ) * - 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + CASE COUNT( * ) WHEN - 33 - - 95 / - 62 THEN NULL WHEN 2 THEN NULL WHEN + 72 * 46 THEN NULLIF ( 77, - AVG ( 50 ) + 7 ) WHEN + 2 / 54 THEN - 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3839
SELECT + CASE COUNT ( * ) WHEN - 33 - - 95 / - 62 THEN NULL WHEN 2 THEN NULL WHEN + 72 * 46 THEN NULLIF ( 77, - AVG ( 50 ) + 7 ) WHEN + 2 / 54 THEN - 14 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - + MAX( DISTINCT 8 ) + 22 * 4 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3840
SELECT - + MAX ( DISTINCT 8 ) + 22 * 4 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - - COALESCE ( + + MAX( ALL 68 ), - 89 ) * 5
----
340

skipif mysql # not compatible
query I rowsort label-3841
SELECT - - COALESCE ( + + MAX ( ALL 68 ), - 89 ) * 5
----
340

query I rowsort
SELECT - + 43 * - 65 + ( 41 ) + 69 AS col2
----
2905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3843
SELECT ALL + - COUNT( DISTINCT - 23 ) * - 37 - 76 * CAST( 38 AS SIGNED )
----
-2851

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL + - COUNT ( DISTINCT - 23 ) * - 37 - 76 * CAST ( 38 AS INTEGER )
----
-2851

query I rowsort
SELECT - 36 * 78 AS col1
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT ALL + NULLIF ( + - COUNT( * ), + + ( 35 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL + NULLIF ( + - COUNT ( * ), + + ( 35 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT DISTINCT + CAST( 61 AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT + CAST ( 61 AS INTEGER ) AS col1
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT - 77 - 16 + + 51 DIV COUNT( * ) * - COUNT( + 17 ) AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-3847
SELECT - 77 - 16 + + 51 / COUNT ( * ) * - COUNT ( + 17 ) AS col2
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL - 27 * + + 0 + - COALESCE ( - 89, 41 * - 70 ) + - COUNT( ALL + 99 + - ( + 84 ) * 34 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL - 27 * + + 0 + - COALESCE ( - 89, 41 * - 70 ) + - COUNT ( ALL + 99 + - ( + 84 ) * 34 ) AS col0
----
88

query I rowsort
SELECT CASE - 48 WHEN COALESCE ( 72, 49 - - 17 ) THEN NULL WHEN + ( + 91 ) THEN + 59 * - ( + 62 ) + COALESCE ( - 57 + + 81 * - 82, 30 * NULLIF ( - 9, + 6 ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT 34 * + + 5 + + 32 * - CASE - COALESCE ( - MAX( - 71 ), 21 * - 80 ) * 56 + 77 WHEN 78 THEN NULL WHEN 67 + + 43 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT 34 * + + 5 + + 32 * - CASE - COALESCE ( - MAX ( - 71 ), 21 * - 80 ) * 56 + 77 WHEN 78 THEN NULL WHEN 67 + + 43 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT CASE - 8 WHEN - 74 THEN NULL WHEN + 2 + 47 * 38 THEN - 50 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT ALL + COUNT( * ) * 8 + - - 46 - - 27 DIV - 94
----
54

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL + COUNT ( * ) * 8 + - - 46 - - 27 / - 94
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3853
SELECT ALL COUNT( - + CAST( NULL AS SIGNED ) ) * - COUNT( * ) * COUNT( DISTINCT 68 ) + 2 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL COUNT ( - + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * COUNT ( DISTINCT 68 ) + 2 AS col2
----
2

query I rowsort
SELECT DISTINCT - 17 * + + 23 * - 20 + 10 AS col1
----
7830

query II rowsort
SELECT ALL 69 col1, + 1 AS col1
----
69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT - MAX( DISTINCT + + 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3856
SELECT - MAX ( DISTINCT + + 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3857
SELECT + + ( + - COUNT( * ) ) + - 94 DIV + 1 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-3857
SELECT + + ( + - COUNT ( * ) ) + - 94 / + 1 AS col2
----
-95

query I rowsort
SELECT + - 27 * + - 76 AS col1
----
2052

query I rowsort
SELECT DISTINCT 13 - + 16 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT DISTINCT - COUNT( * ) * + + 54 col2
----
-54

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT - COUNT ( * ) * + + 54 col2
----
-54

query I rowsort
SELECT - ( + + 62 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT DISTINCT + ( + - COUNT( * ) ) - + 28
----
-29

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT + ( + - COUNT ( * ) ) - + 28
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3863
SELECT - 14 AS col2, COUNT( * )
----
-14
1

skipif mysql # not compatible
query II rowsort label-3863
SELECT - 14 AS col2, COUNT ( * )
----
-14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT - - SUM( - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-3864
SELECT - - SUM ( - 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT COALESCE ( + ( + 69 ), COUNT( * ) + 23 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-3865
SELECT COALESCE ( + ( + 69 ), COUNT ( * ) + 23 ) AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT 82 * - - COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-3866
SELECT 82 * - - COUNT ( * ) AS col0
----
82

query I rowsort
SELECT 70 + 43
----
113

query I rowsort
SELECT - 4 + + 67
----
63

query I rowsort
SELECT 62 * 41
----
2542

query I rowsort
SELECT - - 67 * + 79 - - 58
----
5351

query II rowsort
SELECT ALL - - 70 AS col0, 12
----
70
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT 29 DIV - - COUNT( ALL 55 ) - 48
----
-19

skipif mysql # not compatible
query I rowsort label-3872
SELECT 29 / - - COUNT ( ALL 55 ) - 48
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT 23 + + + COUNT( * ) * + 48
----
71

skipif mysql # not compatible
query I rowsort label-3873
SELECT 23 + + + COUNT ( * ) * + 48
----
71

onlyif mysql # DIV for integer division: 
query II rowsort label-3874
SELECT 30 DIV + 70 AS col1, + 6
----
0
6

skipif mysql # not compatible
query II rowsort label-3874
SELECT 30 / + 70 AS col1, + 6
----
0
6

query I rowsort
SELECT DISTINCT + 20 + - - 47 - + 36
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3876
SELECT 29 * - CAST( NULL AS SIGNED ) + - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT 29 * - CAST ( NULL AS INTEGER ) + - 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3877
SELECT COUNT( * ) DIV - 41 * - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3877
SELECT COUNT ( * ) / - 41 * - 94 AS col1
----
0

query I rowsort
SELECT 13 + - - 82 * - 54 AS col2
----
-4415

query I rowsort
SELECT - 16 * + 56 - 51 - 92 AS col2
----
-1039

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3880
SELECT 20 DIV + 51 col0, 50 * + - CASE + 70 WHEN + 78 THEN NULL WHEN + 37 * 87 THEN - 81 * - COUNT( * ) WHEN 49 THEN NULL ELSE ( + CASE 52 WHEN - 10 * + COUNT( * ) + 10 THEN - COUNT( * ) * - 10 ELSE NULL END ) END * - ( 24 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3880
SELECT 20 / + 51 col0, 50 * + - CASE + 70 WHEN + 78 THEN NULL WHEN + 37 * 87 THEN - 81 * - COUNT ( * ) WHEN 49 THEN NULL ELSE ( + CASE 52 WHEN - 10 * + COUNT ( * ) + 10 THEN - COUNT ( * ) * - 10 ELSE NULL END ) END * - ( 24 )
----
0
NULL

query I rowsort
SELECT 23 + 99 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT 66 / CASE + - 86 WHEN + 59 THEN 78 + - MIN( ALL - 51 - ( 20 + 21 * + 65 ) ) * 67 WHEN - COUNT( * ) * 13 + 68 THEN NULL END - + 61 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT 66 / CASE + - 86 WHEN + 59 THEN 78 + - MIN ( ALL - 51 - ( 20 + 21 * + 65 ) ) * 67 WHEN - COUNT ( * ) * 13 + 68 THEN NULL END - + 61 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT - 16 * + - CASE + COUNT( * ) WHEN - COUNT( * ) THEN NULL WHEN - 50 - 87 THEN NULL WHEN + 17 - + 61 THEN COALESCE ( + 1, 36 * - 95, + 64 * ( - 69 ), - 82 + + COUNT( * ) ) * 2 END + + 79 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT - 16 * + - CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN NULL WHEN - 50 - 87 THEN NULL WHEN + 17 - + 61 THEN COALESCE ( + 1, 36 * - 95, + 64 * ( - 69 ), - 82 + + COUNT ( * ) ) * 2 END + + 79 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + 3 + - 89
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT - ( 31 ) * - + NULLIF ( + COUNT( * ), 68 ) + - 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3885
SELECT - ( 31 ) * - + NULLIF ( + COUNT ( * ), 68 ) + - 15 AS col0
----
16

query I rowsort
SELECT 58 + - 24 - + - 3 AS col2
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3887
SELECT DISTINCT - CASE - - NULLIF ( 42, + 2 * 8 ) WHEN ( 96 ) * 16 THEN + 11 + + ( + 43 ) WHEN 97 - - CAST( NULL AS DECIMAL ) THEN ( - 93 ) + - 46 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT - CASE - - NULLIF ( 42, + 2 * 8 ) WHEN ( 96 ) * 16 THEN + 11 + + ( + 43 ) WHEN 97 - - CAST ( NULL AS REAL ) THEN ( - 93 ) + - 46 ELSE NULL END col2
----
NULL

query I rowsort
SELECT 38 * + 34 AS col0
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT 45 + COUNT( * ) * 68 - + CASE - 89 WHEN 52 * 21 - 78 THEN 0 ELSE NULL END + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT 45 + COUNT ( * ) * 68 - + CASE - 89 WHEN 52 * 21 - 78 THEN 0 ELSE NULL END + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 86 - 25 * 23
----
-489

query I rowsort
SELECT + 71 * 88 + + 71 + 76 AS col1
----
6395

query I rowsort
SELECT ALL 2 * + ( - 66 ) AS col1
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - COUNT( DISTINCT - 71 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3893
SELECT - COUNT ( DISTINCT - 71 ) AS col1
----
-1

query I rowsort
SELECT + 94 + - 84 + - 6 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT DISTINCT - MAX( DISTINCT - 99 ) - 79 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - MAX ( DISTINCT - 99 ) - 79 AS col2
----
20

query I rowsort
SELECT + ( + 82 ) AS col0
----
82

query I rowsort
SELECT 5 + - + 58 + + ( + 38 ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3898
SELECT COALESCE ( COUNT( * ), - COALESCE ( 11, 92 DIV 62 - 61, + CAST( NULL AS SIGNED ) + 89, + 96 + - 42 * + 9 ) * 70 ) DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-3898
SELECT COALESCE ( COUNT ( * ), - COALESCE ( 11, 92 / 62 - 61, + CAST ( NULL AS INTEGER ) + 89, + 96 + - 42 * + 9 ) * 70 ) / 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - COUNT( * ) * + 49 * COUNT( + 69 ) * + COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3899
SELECT - COUNT ( * ) * + 49 * COUNT ( + 69 ) * + COUNT ( * ) AS col0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3900
SELECT DISTINCT - 33 DIV 89 * 99
----
0

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT - 33 / 89 * 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT + 58 + - + 97 - + CASE - COUNT( * ) WHEN COUNT( * ) + + 19 THEN NULL WHEN 94 THEN - 19 * 14 + 80 / CAST( NULL AS SIGNED ) END + - 27 * - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT + 58 + - + 97 - + CASE - COUNT ( * ) WHEN COUNT ( * ) + + 19 THEN NULL WHEN 94 THEN - 19 * 14 + 80 / CAST ( NULL AS INTEGER ) END + - 27 * - 1 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT ALL CAST( NULL AS SIGNED ) * 85 + 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL CAST ( NULL AS INTEGER ) * 85 + 46 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3903
SELECT + 11 + 85 + + CAST( + 49 AS SIGNED ) * + 27
----
1419

skipif mysql # not compatible
query I rowsort label-3903
SELECT + 11 + 85 + + CAST ( + 49 AS INTEGER ) * + 27
----
1419

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL + COUNT( * ) + 39 * + + 35 AS col1
----
1366

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL + COUNT ( * ) + 39 * + + 35 AS col1
----
1366

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT DISTINCT + MIN( ALL + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + MIN ( ALL + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT 53 + + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-3906
SELECT 53 + + COUNT ( * )
----
54

query I rowsort
SELECT CASE 23 WHEN - 73 THEN - + 85 * - - 66 + + 73 WHEN - 8 THEN 86 - 18 END * 67 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT CAST( NULL AS SIGNED ) * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT CAST ( NULL AS INTEGER ) * + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT COUNT( - 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3909
SELECT COUNT ( - 80 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT ( 38 ) + SUM( DISTINCT + 63 ) AS col1
----
101

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT ( 38 ) + SUM ( DISTINCT + 63 ) AS col1
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT CAST( NULL AS SIGNED ) * 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT CAST ( NULL AS INTEGER ) * 78 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3912
SELECT + 50 * 43 DIV ( + NULLIF ( 72, - 59 - - 48 ) ) + 3
----
32

skipif mysql # not compatible
query I rowsort label-3912
SELECT + 50 * 43 / ( + NULLIF ( 72, - 59 - - 48 ) ) + 3
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL COUNT( * ) + ( 33 ) * - + 78 + - MIN( ALL 36 )
----
-2609

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL COUNT ( * ) + ( 33 ) * - + 78 + - MIN ( ALL 36 )
----
-2609

query I rowsort
SELECT ALL + 71 + + 53 AS col1
----
124

query I rowsort
SELECT 48 * - 77 AS col0
----
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT + MAX( DISTINCT - 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-3916
SELECT + MAX ( DISTINCT - 9 ) AS col1
----
-9

query I rowsort
SELECT ALL - 72 - 37 + - - 82 AS col0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3918
SELECT 38 - - 85 + - - 36 * + 86 / NULLIF ( - 20, 64 * + COALESCE ( + ( - CASE - COUNT( * ) WHEN 36 THEN 3 ELSE + 62 + ( - 61 ) END ), - 4 ) + 98 * - 2 ) + + ( ( - COUNT( * ) ) + 60 ) / - AVG ( DISTINCT 13 * CASE WHEN CAST( NULL AS SIGNED ) IS NULL THEN NULL ELSE - 24 * 72 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT 38 - - 85 + - - 36 * + 86 / NULLIF ( - 20, 64 * + COALESCE ( + ( - CASE - COUNT ( * ) WHEN 36 THEN 3 ELSE + 62 + ( - 61 ) END ), - 4 ) + 98 * - 2 ) + + ( ( - COUNT ( * ) ) + 60 ) / - AVG ( DISTINCT 13 * CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN NULL ELSE - 24 * 72 END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3919
SELECT 74 * + - COUNT( - 20 ), + 58 DIV - 8 col0
----
-74
-7

skipif mysql # not compatible
query II rowsort label-3919
SELECT 74 * + - COUNT ( - 20 ), + 58 / - 8 col0
----
-74
-7

query I rowsort
SELECT ALL + 99 * - 13 col2
----
-1287

query I rowsort
SELECT 90 + + 73 AS col0
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT ALL 22 - 95 * - 88 + - + 37 DIV - + 84 AS col0
----
8382

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL 22 - 95 * - 88 + - + 37 / - + 84 AS col0
----
8382

query I rowsort
SELECT 64 * - 27
----
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT - 78 - - + COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT - 78 - - + COUNT ( * ) AS col2
----
-77

query II rowsort
SELECT - 75 AS col0, 94 + - + 83 + + 74 * + 63 * 53
----
-75
247097

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT - - CASE 10 WHEN + 57 + - + MAX( 58 ) THEN - 94 WHEN + COALESCE ( - 24, + 6 ) * 44 - 60 THEN 67 / 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT - - CASE 10 WHEN + 57 + - + MAX ( 58 ) THEN - 94 WHEN + COALESCE ( - 24, + 6 ) * 44 - 60 THEN 67 / 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL + - 43 * + + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL + - 43 * + + COUNT ( * ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT - + MAX( + - 52 ) * 74 col1
----
3848

skipif mysql # not compatible
query I rowsort label-3928
SELECT - + MAX ( + - 52 ) * 74 col1
----
3848

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT + - MAX( DISTINCT + NULLIF ( + - 26, + 27 * + + 10 * 14 + + 89 ) ) * 62
----
1612

skipif mysql # not compatible
query I rowsort label-3929
SELECT + - MAX ( DISTINCT + NULLIF ( + - 26, + 27 * + + 10 * 14 + + 89 ) ) * 62
----
1612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3930
SELECT DISTINCT COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 12 + - 90 AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3932
SELECT CAST( NULLIF ( - 47, - COUNT( * ) - NULLIF ( - COUNT( * ), MIN( DISTINCT + 74 ) ) + + COUNT( * ) ) AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-3932
SELECT CAST ( NULLIF ( - 47, - COUNT ( * ) - NULLIF ( - COUNT ( * ), MIN ( DISTINCT + 74 ) ) + + COUNT ( * ) ) AS INTEGER )
----
-47

query I rowsort
SELECT - 8 * - 7
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT DISTINCT SUM( - ( + 86 ) )
----
-86

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT SUM ( - ( + 86 ) )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT - + 1 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT - + 1 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 61 + 72
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3937
SELECT + 35 DIV + ( NULLIF ( - - 73, - - 81 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3937
SELECT + 35 / + ( NULLIF ( - - 73, - - 81 ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3938
SELECT ALL - 77 + - 4 * + 84, 13 DIV - 17 AS col1
----
-413
0

skipif mysql # not compatible
query II rowsort label-3938
SELECT ALL - 77 + - 4 * + 84, 13 / - 17 AS col1
----
-413
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT - 78 + + - COUNT( * ) * + 84 + 25 * + 69 AS col0
----
1563

skipif mysql # not compatible
query I rowsort label-3939
SELECT - 78 + + - COUNT ( * ) * + 84 + 25 * + 69 AS col0
----
1563

query I rowsort
SELECT - 54 + 81 col2
----
27

query II rowsort
SELECT ALL 80 AS col2, ( - + 6 ) AS col2
----
80
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3942
SELECT ALL 24 DIV + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL 24 / + + COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT + 30 + - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-3943
SELECT + 30 + - COUNT ( * )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT DISTINCT + CAST( + + ( + 81 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + CAST ( + + ( + 81 ) AS INTEGER )
----
81

query I rowsort
SELECT ALL 96 * - 68 + + 73
----
-6455

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT - 8 * ( + 38 ) - COUNT( * ) + - + 14 + - + 66 + - 37 * 39 AS col2
----
-1828

skipif mysql # not compatible
query I rowsort label-3946
SELECT - 8 * ( + 38 ) - COUNT ( * ) + - + 14 + - + 66 + - 37 * 39 AS col2
----
-1828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3947
SELECT 3 / - 27 + + + 71 + - ( - CAST( NULL AS SIGNED ) ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT 3 / - 27 + + + 71 + - ( - CAST ( NULL AS INTEGER ) ) * - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3948
SELECT + 88 * - - CASE - 15 WHEN 7 THEN 89 WHEN + + 55 THEN + ( COUNT( * ) ) ELSE NULL END * COALESCE ( - CAST( NULL AS SIGNED ) - ( - 60 ), COALESCE ( - 70, - 28 * 40, 3 * - 32 ) + MIN( + NULLIF ( 21, CASE 88 WHEN + ( + 21 ) THEN 6 END ) + + 73 ) * + 35, + COUNT( DISTINCT 97 ) / + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3948
SELECT + 88 * - - CASE - 15 WHEN 7 THEN 89 WHEN + + 55 THEN + ( COUNT ( * ) ) ELSE NULL END * COALESCE ( - CAST ( NULL AS INTEGER ) - ( - 60 ), COALESCE ( - 70, - 28 * 40, 3 * - 32 ) + MIN ( + NULLIF ( 21, CASE 88 WHEN + ( + 21 ) THEN 6 END ) + + 73 ) * + 35, + COUNT ( DISTINCT 97 ) / + 40 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3949
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 70
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT - 51 * 48 DIV 97 + - 77 * - 2
----
129

skipif mysql # not compatible
query I rowsort label-3950
SELECT - 51 * 48 / 97 + - 77 * - 2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + 40 + + - COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3951
SELECT + 40 + + - COUNT ( * ) AS col2
----
39

query II rowsort
SELECT ALL + 19 col2, 30 * - - 46 + 94 AS col1
----
19
1474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3953
SELECT + COALESCE ( 6, + COUNT( * ) + + ( + CAST( - 29 AS SIGNED ) ) * 14 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-3953
SELECT + COALESCE ( 6, + COUNT ( * ) + + ( + CAST ( - 29 AS INTEGER ) ) * 14 ) col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT + COUNT( * ) + 97 * COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-3954
SELECT + COUNT ( * ) + 97 * COUNT ( * )
----
98

query II rowsort
SELECT ALL + 93, + 58 col1
----
93
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT CASE 80 WHEN + 12 THEN + + 95 ELSE + COUNT( * ) * - COALESCE ( + 98, 64 ) END
----
-98

skipif mysql # not compatible
query I rowsort label-3956
SELECT CASE 80 WHEN + 12 THEN + + 95 ELSE + COUNT ( * ) * - COALESCE ( + 98, 64 ) END
----
-98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3957
SELECT ALL - 41 / + + CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL - 41 / + + CAST ( NULL AS REAL ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + 10 * + NULLIF ( - ( 65 ), - + COUNT( * ) * - 41 + 32 ) AS col1
----
-650

skipif mysql # not compatible
query I rowsort label-3958
SELECT + 10 * + NULLIF ( - ( 65 ), - + COUNT ( * ) * - 41 + 32 ) AS col1
----
-650

onlyif mysql # aggregate syntax: 
query II rowsort label-3959
SELECT ALL + - COUNT( * ) col0, - 50 * - 30 * + - 77 AS col1
----
-1
-115500

skipif mysql # not compatible
query II rowsort label-3959
SELECT ALL + - COUNT ( * ) col0, - 50 * - 30 * + - 77 AS col1
----
-1
-115500

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT - 81 + + + ( + - COUNT( * ) )
----
-82

skipif mysql # not compatible
query I rowsort label-3960
SELECT - 81 + + + ( + - COUNT ( * ) )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3961
SELECT + 20 DIV + - COUNT( * ) AS col0, 50 AS col2
----
-20
50

skipif mysql # not compatible
query II rowsort label-3961
SELECT + 20 / + - COUNT ( * ) AS col0, 50 AS col2
----
-20
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT DISTINCT 69 * + + NULLIF ( + 11, - + 72 * ( - COUNT( * ) ) * + 49 + - 69 ) + - 52
----
707

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT 69 * + + NULLIF ( + 11, - + 72 * ( - COUNT ( * ) ) * + 49 + - 69 ) + - 52
----
707

query I rowsort
SELECT - COALESCE ( - - 42, + 34 - - 51 + - + 98 )
----
-42

query I rowsort
SELECT ALL ( - ( - ( 79 ) ) )
----
79

query I rowsort
SELECT ALL - 41 + 5 * - + 8 AS col2
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3966
SELECT ALL + 83 DIV 65
----
1

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + 83 / 65
----
1

query I rowsort
SELECT DISTINCT + 39 + - 89 * 22 AS col0
----
-1919

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL - - ( - + MIN( ( 73 ) ) ) + + 1 + - - 32 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - - ( - + MIN ( ( 73 ) ) ) + + 1 + - - 32 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-3969
SELECT + 78 AS col0, + COUNT( ALL + 55 )
----
78
1

skipif mysql # not compatible
query II rowsort label-3969
SELECT + 78 AS col0, + COUNT ( ALL + 55 )
----
78
1

query I rowsort
SELECT - + 12 + + COALESCE ( + 68, - 53 - - 64, - 83 * 70 ) AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT DISTINCT - CAST( + 69 AS SIGNED ) + COALESCE ( + 33, + 6 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT - CAST ( + 69 AS INTEGER ) + COALESCE ( + 33, + 6 ) AS col0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3972
SELECT DISTINCT - ( + + 27 ) + + COALESCE ( 18, + - 62, + 14 DIV + 62 * MIN( + 28 * CASE WHEN NOT + 39 IS NULL THEN NULL ELSE 75 END ) )
----
-9

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT - ( + + 27 ) + + COALESCE ( 18, + - 62, + 14 / + 62 * MIN ( + 28 * CASE WHEN NOT + 39 IS NULL THEN NULL ELSE 75 END ) )
----
-9

query I rowsort
SELECT ALL - 71 + - - 24
----
-47

query II rowsort
SELECT ALL ( - 22 ), - 7 + - 42 + + - 46 col0
----
-22
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT - COUNT( - ( + - 88 ) ) * + - 53 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT - COUNT ( - ( + - 88 ) ) * + - 53 AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3976
SELECT DISTINCT CAST( - 85 AS SIGNED ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT CAST ( - 85 AS INTEGER ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT + COALESCE ( - 81, + - COUNT( * ) ) + 51
----
-30

skipif mysql # not compatible
query I rowsort label-3977
SELECT + COALESCE ( - 81, + - COUNT ( * ) ) + 51
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT - COUNT( + 87 ) * 50
----
-50

skipif mysql # not compatible
query I rowsort label-3978
SELECT - COUNT ( + 87 ) * 50
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT DISTINCT 70 DIV 84 * + - ( + 84 ) * - 21 col0
----
0

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT 70 / 84 * + - ( + 84 ) * - 21 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3980
SELECT DISTINCT + CAST( - 55 AS SIGNED ) DIV + ( - - 40 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3980
SELECT DISTINCT + CAST ( - 55 AS INTEGER ) / + ( - - 40 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3981
SELECT + COUNT( ALL + 57 ) * - 83 + + 32 * + 86, 30 AS col0
----
2669
30

skipif mysql # not compatible
query II rowsort label-3981
SELECT + COUNT ( ALL + 57 ) * - 83 + + 32 * + 86, 30 AS col0
----
2669
30

query I rowsort
SELECT ALL 5 * + 34 col0
----
170

query I rowsort
SELECT ALL 98 * - 40
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT - 86 * COUNT( DISTINCT + + 96 ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT - 86 * COUNT ( DISTINCT + + 96 ) col0
----
-86

query I rowsort
SELECT + 79 * + 75
----
5925

query I rowsort
SELECT 13 - - + 70 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT + + COUNT( - 35 )
----
1

skipif mysql # not compatible
query I rowsort label-3987
SELECT + + COUNT ( - 35 )
----
1

query I rowsort
SELECT ALL 58 * 75 * - 78 + + ( + + 75 )
----
-339225

query II rowsort
SELECT 44 * - 31 AS col0, 94 AS col2
----
-1364
94

query I rowsort
SELECT DISTINCT - NULLIF ( + + 25, - 68 ) + + + 37 AS col1
----
12

query I rowsort
SELECT 98 * + + 90 * - 23 + + 56 AS col1
----
-202804

onlyif mysql # DIV for integer division: 
query I rowsort label-3992
SELECT ALL 15 + + 98 DIV + 77 + + 31
----
47

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL 15 + + 98 / + 77 + + 31
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT ALL ( + 23 ) + - 18 + + + 81 + + 32 + 79 * + 3 * - COALESCE ( - 99, 48 + 64 ) + - 10 DIV + 63 * + 45 AS col0
----
23581

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL ( + 23 ) + - 18 + + + 81 + + 32 + 79 * + 3 * - COALESCE ( - 99, 48 + 64 ) + - 10 / + 63 * + 45 AS col0
----
23581

query I rowsort
SELECT ALL 98 + - + 94 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT DISTINCT - 54 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - 54 / - 93
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3996
SELECT DISTINCT 42 + 51 AS col1, - SUM( 63 ) AS col1
----
93
-63

skipif mysql # not compatible
query II rowsort label-3996
SELECT DISTINCT 42 + 51 AS col1, - SUM ( 63 ) AS col1
----
93
-63

query I rowsort
SELECT ALL + - 75 * - - 29 * - 51
----
110925

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3998
SELECT CAST( - - 21 AS SIGNED ) DIV + 66 + 90 * - 6 AS col2, ( - 6 ) AS col2
----
-540
-6

skipif mysql # not compatible
query II rowsort label-3998
SELECT CAST ( - - 21 AS INTEGER ) / + 66 + 90 * - 6 AS col2, ( - 6 ) AS col2
----
-540
-6

query I rowsort
SELECT ALL - 10 + + 48 + + 4 * + 37 * - 96 AS col1
----
-14170

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL - 52 + - - COUNT( * ) + - 40 * + COUNT( * ) * - ( + 2 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - 52 + - - COUNT ( * ) + - 40 * + COUNT ( * ) * - ( + 2 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ( 91 ) * + CASE 14 WHEN + 73 + + 64 THEN NULL WHEN + - COUNT( * ) / - 13 THEN 51 + + 70 WHEN + 35 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT ( 91 ) * + CASE 14 WHEN + 73 + + 64 THEN NULL WHEN + - COUNT ( * ) / - 13 THEN 51 + + 70 WHEN + 35 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT ALL 87 * + - CASE - + 53 WHEN 95 THEN + 89 + + - COALESCE ( + 5, COUNT( * ) ) + 18 WHEN + 29 THEN NULL END + + 16 * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL 87 * + - CASE - + 53 WHEN 95 THEN + 89 + + - COALESCE ( + 5, COUNT ( * ) ) + 18 WHEN + 29 THEN NULL END + + 16 * + 56
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4003
SELECT 82 DIV COUNT( * ) DIV 61 * 18 + COUNT( * ) * 84 + 18
----
120

skipif mysql # not compatible
query I rowsort label-4003
SELECT 82 / COUNT ( * ) / 61 * 18 + COUNT ( * ) * 84 + 18
----
120

query I rowsort
SELECT - COALESCE ( + 74, + 16 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL - + 71 - + 43 * + COUNT( * ) AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - + 71 - + 43 * + COUNT ( * ) AS col2
----
-114

query I rowsort
SELECT DISTINCT 54 * + 83 AS col2
----
4482

onlyif mysql # aggregate syntax: 
query II rowsort label-4007
SELECT 39 - + 31 + + - COUNT( * ) col0, 41 * - + COUNT( * )
----
7
-41

skipif mysql # not compatible
query II rowsort label-4007
SELECT 39 - + 31 + + - COUNT ( * ) col0, 41 * - + COUNT ( * )
----
7
-41

query I rowsort
SELECT ALL 89 * 67 AS col2
----
5963

query II rowsort
SELECT DISTINCT 81 AS col0, 67 * + 0 + + 72
----
81
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4010
SELECT ALL 6 - - 90 + + - 37 + + + 74 + + - 19 * 47 + - MIN( + - CAST( - 79 AS SIGNED ) ) * 21 AS col0
----
-2419

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL 6 - - 90 + + - 37 + + + 74 + + - 19 * 47 + - MIN ( + - CAST ( - 79 AS INTEGER ) ) * 21 AS col0
----
-2419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4011
SELECT 18 AS col2, CAST( + MAX( 26 ) AS SIGNED ) AS col2
----
18
26

skipif mysql # not compatible
query II rowsort label-4011
SELECT 18 AS col2, CAST ( + MAX ( 26 ) AS INTEGER ) AS col2
----
18
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT COUNT( * ) * MIN( - 8 ) * + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-4012
SELECT COUNT ( * ) * MIN ( - 8 ) * + COUNT ( * )
----
-8

query I rowsort
SELECT 74 * - 15
----
-1110

onlyif mysql # aggregate syntax: 
query II rowsort label-4014
SELECT DISTINCT 44, COUNT( ALL 18 ) * + - 34 AS col0
----
44
-34

skipif mysql # not compatible
query II rowsort label-4014
SELECT DISTINCT 44, COUNT ( ALL 18 ) * + - 34 AS col0
----
44
-34

query I rowsort
SELECT 48 + 70
----
118

query II rowsort
SELECT - 98 AS col0, + 57 AS col2
----
-98
57

query I rowsort
SELECT 58 + 73
----
131

query I rowsort
SELECT ALL + 40 * 39 * + 98 AS col2
----
152880

query II rowsort
SELECT ALL - 3 AS col2, + 34
----
-3
34

query I rowsort
SELECT 41 * - + ( + 46 ) + - + 46 AS col1
----
-1932

query I rowsort
SELECT ALL + 41 * + NULLIF ( - 81, - 70 ) AS col0
----
-3321

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT - + COUNT( ALL + 41 ) * 47 * + 9 + COALESCE ( ( + - MIN( - 80 ) ), + 12, 5, + 76 )
----
-343

skipif mysql # not compatible
query I rowsort label-4022
SELECT - + COUNT ( ALL + 41 ) * 47 * + 9 + COALESCE ( ( + - MIN ( - 80 ) ), + 12, 5, + 76 )
----
-343

onlyif mysql # DIV for integer division: 
query I rowsort label-4023
SELECT + - 54 DIV - 96 + 57
----
57

skipif mysql # not compatible
query I rowsort label-4023
SELECT + - 54 / - 96 + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL - COUNT( * ) + + 45
----
44

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL - COUNT ( * ) + + 45
----
44

query II rowsort
SELECT - 67 AS col0, + 77 * + 43
----
-67
3311

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4026
SELECT - ( COUNT( * ) ) DIV + COUNT( + 83 ), COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-4026
SELECT - ( COUNT ( * ) ) / + COUNT ( + 83 ), COUNT ( * ) AS col2
----
-1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4027
SELECT ALL + 5 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + 5 / - 68
----
0

query I rowsort
SELECT ALL - 47 + - 34 * + 94
----
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT + + MIN( 17 )
----
17

skipif mysql # not compatible
query I rowsort label-4029
SELECT + + MIN ( 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL + COUNT( * ) * 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL + COUNT ( * ) * 81 AS col1
----
81

query I rowsort
SELECT + 61 * 42
----
2562

query I rowsort
SELECT DISTINCT - 14 + - 14 col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4033
SELECT - 28 + + CAST( NULL AS SIGNED ) + AVG ( DISTINCT - 90 ) / - 27 * - 13 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT - 28 + + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT - 90 ) / - 27 * - 13 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4034
SELECT COUNT( * ) AS col2, 84 + + - 85 + 92 AS col1
----
1
91

skipif mysql # not compatible
query II rowsort label-4034
SELECT COUNT ( * ) AS col2, 84 + + - 85 + 92 AS col1
----
1
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4035
SELECT - COUNT( * ) * + - MAX( DISTINCT 5 ) * - - 17 + + + COUNT( 15 ) / + COUNT( * ) + ( 96 ) + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT - COUNT ( * ) * + - MAX ( DISTINCT 5 ) * - - 17 + + + COUNT ( 15 ) / + COUNT ( * ) + ( 96 ) + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4036
SELECT CASE + COUNT( * ) WHEN - 62 * + 55 * + COUNT( * ) - - MIN( + 35 ) * 9 + - CAST( ( - 40 ) AS SIGNED ) THEN - SUM( ALL - 39 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4036
SELECT CASE + COUNT ( * ) WHEN - 62 * + 55 * + COUNT ( * ) - - MIN ( + 35 ) * 9 + - CAST ( ( - 40 ) AS INTEGER ) THEN - SUM ( ALL - 39 ) END AS col2
----
NULL

query I rowsort
SELECT 66 * + 82
----
5412

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT DISTINCT + - COUNT( * ) * 24 + + + 91 * - 20 * + + COUNT( * )
----
-1844

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT + - COUNT ( * ) * 24 + + + 91 * - 20 * + + COUNT ( * )
----
-1844

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL MIN( + 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL MIN ( + 87 ) AS col1
----
87

query I rowsort
SELECT ALL 95 * 79
----
7505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT ( + MAX( ALL + CAST( NULL AS SIGNED ) ) ) + - - 81 + + + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4041
SELECT ( + MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) + - - 81 + + + 15 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4042
SELECT ALL ( - 48 ) - - SUM( DISTINCT - 58 ) AS col2, - CAST( NULL AS SIGNED ) / - - 0 * - - 6 AS col0, 20 * + COUNT( * ) * 11 + + 36 AS col0
----
-106
NULL
256

skipif mysql # not compatible
query III rowsort label-4042
SELECT ALL ( - 48 ) - - SUM ( DISTINCT - 58 ) AS col2, - CAST ( NULL AS INTEGER ) / - - 0 * - - 6 AS col0, 20 * + COUNT ( * ) * 11 + + 36 AS col0
----
-106
NULL
256

query I rowsort
SELECT 58 + - ( - 30 ) * + 47 + 99
----
1567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4044
SELECT ALL CAST( NULL AS SIGNED ) / + 33 AS col1, - 34 * + COUNT( * ) * - 20 col0
----
NULL
680

skipif mysql # not compatible
query II rowsort label-4044
SELECT ALL CAST ( NULL AS INTEGER ) / + 33 AS col1, - 34 * + COUNT ( * ) * - 20 col0
----
NULL
680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4045
SELECT 74 + - 6 + - - 29 * - 93, COUNT( * ) AS col2, COUNT( * ) * - + CAST( NULL AS SIGNED ) - - + 79 + 65 * ( 62 ) AS col0
----
-2629
1
NULL

skipif mysql # not compatible
query III rowsort label-4045
SELECT 74 + - 6 + - - 29 * - 93, COUNT ( * ) AS col2, COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - - + 79 + 65 * ( 62 ) AS col0
----
-2629
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT 94 * - COUNT( - + 33 )
----
-94

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT 94 * - COUNT ( - + 33 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4047
SELECT CAST( - COUNT( * ) AS SIGNED ) * - SUM( 83 ) * + 33 + - 56 + - + 53 + - 79 + + 73 * + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
2551

skipif mysql # not compatible
query I rowsort label-4047
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - SUM ( 83 ) * + 33 + - 56 + - + 53 + - 79 + + 73 * + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
2551

query I rowsort
SELECT ALL 99 * + 94 * + 81 AS col0
----
753786

query I rowsort
SELECT DISTINCT 58 * 10 * - 93
----
-53940

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT 77 DIV + - 59 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4050
SELECT 77 / + - 59 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ALL - COUNT( + 46 ) + - NULLIF ( + 21, - 80 ) * - + 0
----
-1

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - COUNT ( + 46 ) + - NULLIF ( + 21, - 80 ) * - + 0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4052
SELECT CASE - + ( + NULLIF ( + 70, 32 / + 47 ) ) WHEN - 44 THEN NULL WHEN + + CAST( + 80 AS SIGNED ) THEN MAX( 78 ) WHEN 12 THEN NULL ELSE + 42 END
----
42

skipif mysql # not compatible
query I rowsort label-4052
SELECT CASE - + ( + NULLIF ( + 70, 32 / + 47 ) ) WHEN - 44 THEN NULL WHEN + + CAST ( + 80 AS INTEGER ) THEN MAX ( 78 ) WHEN 12 THEN NULL ELSE + 42 END
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4053
SELECT NULLIF ( + - COUNT( + 96 ), + 57 ) col0, 84 * + CAST( NULL AS SIGNED ) * - COALESCE ( - 54, - 74 / - COUNT( * ) ) + - 18 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4053
SELECT NULLIF ( + - COUNT ( + 96 ), + 57 ) col0, 84 * + CAST ( NULL AS INTEGER ) * - COALESCE ( - 54, - 74 / - COUNT ( * ) ) + - 18 AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL 25 * + 5 + - MIN( ALL + 62 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL 25 * + 5 + - MIN ( ALL + 62 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT + NULLIF ( COUNT( * ), - 32 * 73 )
----
1

skipif mysql # not compatible
query I rowsort label-4055
SELECT + NULLIF ( COUNT ( * ), - 32 * 73 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT ALL CAST( NULL AS SIGNED ) * + + 70 + - 94 * - + 99 * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL CAST ( NULL AS INTEGER ) * + + 70 + - 94 * - + 99 * 35 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 54 * - 95 * - + 0 * - 14 + - + 87 + - + 78 col0
----
-165

query I rowsort
SELECT ALL + - 76 col1
----
-76

query II rowsort
SELECT + + ( - + 42 ), + 65 * + 11 + + + 20 * + 17 * - 34 col0
----
-42
-10845

query I rowsort
SELECT DISTINCT + 27 * - 19 * - 69
----
35397

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT - 63 DIV 46
----
-1

skipif mysql # not compatible
query I rowsort label-4061
SELECT - 63 / 46
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL + - ( - - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + - ( - - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT 55 * COUNT( * ) + + - 74 + SUM( ALL + 49 )
----
30

skipif mysql # not compatible
query I rowsort label-4063
SELECT 55 * COUNT ( * ) + + - 74 + SUM ( ALL + 49 )
----
30

query II rowsort
SELECT - + 38 * 97 AS col1, + ( + 49 ) AS col0
----
-3686
49

query I rowsort
SELECT ALL + + ( 87 ) AS col0
----
87

query I rowsort
SELECT DISTINCT 87 * - 88
----
-7656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT DISTINCT - - 50 / - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - - 50 / - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT - SUM( - - 75 ) * - - COALESCE ( MAX( ALL 57 ), 75 ) - 89
----
-4364

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - SUM ( - - 75 ) * - - COALESCE ( MAX ( ALL 57 ), 75 ) - 89
----
-4364

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT ALL 5 * - COUNT( - 4 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL 5 * - COUNT ( - 4 ) AS col1
----
-5

query I rowsort
SELECT ALL ( 14 ) col1
----
14

query I rowsort
SELECT DISTINCT ( - 34 ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT DISTINCT + 67 * - + COALESCE ( COUNT( * ), CASE + 9 WHEN - 16 THEN + 95 * + 94 END + 62 + SUM( - 57 ) ) * + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-4072
SELECT DISTINCT + 67 * - + COALESCE ( COUNT ( * ), CASE + 9 WHEN - 16 THEN + 95 * + 94 END + 62 + SUM ( - 57 ) ) * + COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT + ( - CASE - 40 WHEN + - 20 THEN NULL WHEN - - 45 THEN - - 68 END ) * + COALESCE ( 11, 95 + + COUNT( * ) - - 59, COUNT( * ) * 10 + 70 ) + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT + ( - CASE - 40 WHEN + - 20 THEN NULL WHEN - - 45 THEN - - 68 END ) * + COALESCE ( 11, 95 + + COUNT ( * ) - - 59, COUNT ( * ) * 10 + 70 ) + 68 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4074
SELECT 43 AS col0, + 26 * COUNT( * )
----
43
26

skipif mysql # not compatible
query II rowsort label-4074
SELECT 43 AS col0, + 26 * COUNT ( * )
----
43
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT DISTINCT + ( 7 ) * - 78 * - + 32 * + 10 + + - 31 + - - MIN( DISTINCT - - 36 ) + 93 + - 72 AS col0
----
174746

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT + ( 7 ) * - 78 * - + 32 * + 10 + + - 31 + - - MIN ( DISTINCT - - 36 ) + 93 + - 72 AS col0
----
174746

onlyif mysql # aggregate syntax: 
query II rowsort label-4076
SELECT ALL ( ( 60 ) ) AS col2, - 34 * - COUNT( * ) + + - 44 + - + 83 * 10
----
60
-840

skipif mysql # not compatible
query II rowsort label-4076
SELECT ALL ( ( 60 ) ) AS col2, - 34 * - COUNT ( * ) + + - 44 + - + 83 * 10
----
60
-840

query I rowsort
SELECT + ( + + 65 ) * - + ( - 97 ) + - 10
----
6295

query I rowsort
SELECT + ( + + 20 ) - + 91 + + + 6 * + 72
----
361

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT 67, - MIN( - - 85 ) AS col2
----
67
-85

skipif mysql # not compatible
query II rowsort label-4079
SELECT 67, - MIN ( - - 85 ) AS col2
----
67
-85

query I rowsort
SELECT ALL 82 + + + 23
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4081
SELECT DISTINCT 40 + 12 + MIN( DISTINCT + 41 ) DIV 30
----
53

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT 40 + 12 + MIN ( DISTINCT + 41 ) / 30
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4082
SELECT - 58 DIV - - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-4082
SELECT - 58 / - - COUNT ( * )
----
-58

query I rowsort
SELECT + 64 * - + 36
----
-2304

query I rowsort
SELECT + 75 + - - ( - 78 ) * + 14 + + 30
----
-987

onlyif mysql # DIV for integer division: 
query I rowsort label-4085
SELECT DISTINCT 87 DIV 56 * + 48
----
48

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT 87 / 56 * + 48
----
48

query I rowsort
SELECT ALL 46 + + 56 AS col1
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4087
SELECT + CASE - 75 WHEN + - 46 THEN + 16 ELSE NULL END + + + COUNT( * ), + 99 DIV - 58 AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4087
SELECT + CASE - 75 WHEN + - 46 THEN + 16 ELSE NULL END + + + COUNT ( * ), + 99 / - 58 AS col1
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT + 28 + + - 87 * + COUNT( * ) + + 16 + + 77 * + + COUNT( * ) * 25 AS col0
----
1882

skipif mysql # not compatible
query I rowsort label-4088
SELECT + 28 + + - 87 * + COUNT ( * ) + + 16 + + 77 * + + COUNT ( * ) * 25 AS col0
----
1882

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - 34 - - COALESCE ( + - COUNT( * ), + COUNT( * ) ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4089
SELECT - 34 - - COALESCE ( + - COUNT ( * ), + COUNT ( * ) ) AS col1
----
-35

query I rowsort
SELECT ALL 39 * + 22
----
858

query I rowsort
SELECT DISTINCT 51 * 81 AS col2
----
4131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4092
SELECT DISTINCT COUNT( * ) DIV - 27 * + COUNT( * ) + - 55 * + 14 * COUNT( * ) * 60 AS col0
----
-46200

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT COUNT ( * ) / - 27 * + COUNT ( * ) + - 55 * + 14 * COUNT ( * ) * 60 AS col0
----
-46200

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT + 34 + SUM( DISTINCT + 7 )
----
41

skipif mysql # not compatible
query I rowsort label-4093
SELECT + 34 + SUM ( DISTINCT + 7 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT + MAX( ALL + + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4094
SELECT + MAX ( ALL + + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT + - MIN( - 81 )
----
81

skipif mysql # not compatible
query I rowsort label-4095
SELECT + - MIN ( - 81 )
----
81

query I rowsort
SELECT DISTINCT + NULLIF ( - 21, - - NULLIF ( 81, + 13 * - 65 + 34 + 64 ) ) col0
----
-21

query I rowsort
SELECT + + 59 * - 2 col1
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4098
SELECT DISTINCT + 30 DIV 99 - COUNT( * ) - - 66 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT + 30 / 99 - COUNT ( * ) - - 66 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT - COUNT( * ) * + - 50
----
50

skipif mysql # not compatible
query I rowsort label-4099
SELECT - COUNT ( * ) * + - 50
----
50

query II rowsort
SELECT ALL - 82 * - 85 * + - 86 AS col1, + 10 + - 38 + + 0 + + - 97 AS col2
----
-599420
-125

query I rowsort
SELECT DISTINCT - 71 * + 66 col1
----
-4686

query I rowsort
SELECT ALL - + 97 * - 39 * + + 91
----
344253

query I rowsort
SELECT + 3 * 74
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT - - COALESCE ( + + 90, 83 * - + COUNT( * ), - - 80 * 42 + - COALESCE ( - 39, - 20 ) * 7 * 90 ) * 85 AS col1
----
7650

skipif mysql # not compatible
query I rowsort label-4104
SELECT - - COALESCE ( + + 90, 83 * - + COUNT ( * ), - - 80 * 42 + - COALESCE ( - 39, - 20 ) * 7 * 90 ) * 85 AS col1
----
7650

query I rowsort
SELECT - 48 - + + 3 AS col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL CAST( 46 AS SIGNED ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL CAST ( 46 AS INTEGER ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query III rowsort label-4107
SELECT COUNT( * ), 13 col2, 27 AS col1
----
1
13
27

skipif mysql # not compatible
query III rowsort label-4107
SELECT COUNT ( * ), 13 col2, 27 AS col1
----
1
13
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT - COUNT( * ) + + - 74 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-4108
SELECT - COUNT ( * ) + + - 74 AS col2
----
-75

query I rowsort
SELECT ALL - 91 * + 1 * - 49 * + 52
----
231868

query I rowsort
SELECT 93 + + 26
----
119

query I rowsort
SELECT ALL - 82 + - 34 * - - 79
----
-2768

query I rowsort
SELECT 73 * + - CASE + 65 WHEN + 29 * - 74 - - 95 + - - 11 THEN 49 END * + + 24 * 6
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4113
SELECT 8 + + 2 AS col1, + 59 + - + 24 + + + MIN( 44 ) + - 15 * + + 67 * + 56 AS col1, + COUNT( * ) AS col0
----
10
-56201
1

skipif mysql # not compatible
query III rowsort label-4113
SELECT 8 + + 2 AS col1, + 59 + - + 24 + + + MIN ( 44 ) + - 15 * + + 67 * + 56 AS col1, + COUNT ( * ) AS col0
----
10
-56201
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4114
SELECT ALL COUNT( * ) + - 13, - 19 AS col0
----
-12
-19

skipif mysql # not compatible
query II rowsort label-4114
SELECT ALL COUNT ( * ) + - 13, - 19 AS col0
----
-12
-19

query I rowsort
SELECT ALL - 19 + 65
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT DISTINCT + 65 + + 88 + - COUNT( + 81 ) - - 32 * 92 AS col1
----
3096

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT + 65 + + 88 + - COUNT ( + 81 ) - - 32 * 92 AS col1
----
3096

query I rowsort
SELECT ALL 35 + - 28
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT + COUNT( - 79 )
----
1

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT + COUNT ( - 79 )
----
1

query I rowsort
SELECT + 71 - + 49
----
22

query I rowsort
SELECT + - ( + - 6 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4121
SELECT 60 AS col2, - 42 + COUNT( * ) AS col1
----
60
-41

skipif mysql # not compatible
query II rowsort label-4121
SELECT 60 AS col2, - 42 + COUNT ( * ) AS col1
----
60
-41

query II rowsort
SELECT ALL + 93 * - 64, - 96 * - - 95 AS col1
----
-5952
-9120

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ( - 0 ) * + COUNT( * ) - 32 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4123
SELECT ( - 0 ) * + COUNT ( * ) - 32 AS col1
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4124
SELECT ALL 24 * - - 84 DIV + - SUM( ALL 82 ) + 20 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL 24 * - - 84 / + - SUM ( ALL 82 ) + 20 AS col1
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-4125
SELECT DISTINCT - 3 AS col0, 6 DIV - 39 AS col0
----
-3
0

skipif mysql # not compatible
query II rowsort label-4125
SELECT DISTINCT - 3 AS col0, 6 / - 39 AS col0
----
-3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT - 21 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT - 21 / + 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL - SUM( - 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL - SUM ( - 43 ) AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4128
SELECT ALL - - 65 AS col2, + CAST( - 44 AS SIGNED ) * - 58
----
65
2552

skipif mysql # not compatible
query II rowsort label-4128
SELECT ALL - - 65 AS col2, + CAST ( - 44 AS INTEGER ) * - 58
----
65
2552

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT ( + ( - 25 ) ) DIV 3
----
-8

skipif mysql # not compatible
query I rowsort label-4129
SELECT ( + ( - 25 ) ) / 3
----
-8

query I rowsort
SELECT + 71 * + 43 col2
----
3053

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4131
SELECT ALL - + 45, 85 DIV 84 + 86 + COUNT( * ) * - - 3 + - - 67 AS col2
----
-45
157

skipif mysql # not compatible
query II rowsort label-4131
SELECT ALL - + 45, 85 / 84 + 86 + COUNT ( * ) * - - 3 + - - 67 AS col2
----
-45
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT + 34 * - ( - + 86 ) * 34 + MIN( + 83 )
----
99499

skipif mysql # not compatible
query I rowsort label-4132
SELECT + 34 * - ( - + 86 ) * 34 + MIN ( + 83 )
----
99499

query II rowsort
SELECT 58 * 53, + ( - NULLIF ( + 19, + 73 ) ) + 76 + + 64 AS col1
----
3074
121

query I rowsort
SELECT ALL 24 + + 50
----
74

query II rowsort
SELECT ALL + 50 + + 76 AS col1, 36 AS col0
----
126
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT DISTINCT 35 + - COALESCE ( + 48, NULLIF ( + - 73, - 61 ) * - - NULLIF ( + 13, - CAST( NULL AS SIGNED ) - - 51 * - NULLIF ( + + 81, - 10 * 47 ) / - 10 + COUNT( 16 ) ) * + ( COUNT( ALL 81 ) ) + + 4 * - 73, - 6 * 86, 99 * 12 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT 35 + - COALESCE ( + 48, NULLIF ( + - 73, - 61 ) * - - NULLIF ( + 13, - CAST ( NULL AS INTEGER ) - - 51 * - NULLIF ( + + 81, - 10 * 47 ) / - 10 + COUNT ( 16 ) ) * + ( COUNT ( ALL 81 ) ) + + 4 * - 73, - 6 * 86, 99 * 12 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT 86 + + 92 - NULLIF ( 65, + 52 * + COALESCE ( - + COUNT( * ), 7 ) ) * + 17 + - 31 * + 88 + + + COUNT( * )
----
-3654

skipif mysql # not compatible
query I rowsort label-4137
SELECT 86 + + 92 - NULLIF ( 65, + 52 * + COALESCE ( - + COUNT ( * ), 7 ) ) * + 17 + - 31 * + 88 + + + COUNT ( * )
----
-3654

query I rowsort
SELECT DISTINCT - 5 * 67 AS col2
----
-335

onlyif mysql # aggregate syntax: 
query II rowsort label-4139
SELECT ALL + 50 + + MIN( DISTINCT + 6 ) * - COALESCE ( + 78, - + 30 + + 41 ), COUNT( - 25 ) AS col1
----
-418
1

skipif mysql # not compatible
query II rowsort label-4139
SELECT ALL + 50 + + MIN ( DISTINCT + 6 ) * - COALESCE ( + 78, - + 30 + + 41 ), COUNT ( - 25 ) AS col1
----
-418
1

query I rowsort
SELECT 9 * - + COALESCE ( - 17, 19 + + + 40 - + 2 )
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-4141
SELECT DISTINCT - 33 - - 84 AS col0, MIN( DISTINCT + 87 )
----
51
87

skipif mysql # not compatible
query II rowsort label-4141
SELECT DISTINCT - 33 - - 84 AS col0, MIN ( DISTINCT + 87 )
----
51
87

query I rowsort
SELECT 8 - 0 + 32 + + + 5 * + - 46 * + 78 + - 83 AS col0
----
-17983

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4143
SELECT ALL + MIN( - 15 ) DIV + 27 + + SUM( + 66 ) + 77
----
143

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL + MIN ( - 15 ) / + 27 + + SUM ( + 66 ) + 77
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - SUM( 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4144
SELECT - SUM ( 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT - COALESCE ( + MIN( - + 55 ), + - COUNT( * ) * 61 * + ( + 82 ), + 66 + COUNT( * ) * + MIN( ALL + - 80 ) * 69 * - 39 + 76 + + 75 )
----
55

skipif mysql # not compatible
query I rowsort label-4145
SELECT - COALESCE ( + MIN ( - + 55 ), + - COUNT ( * ) * 61 * + ( + 82 ), + 66 + COUNT ( * ) * + MIN ( ALL + - 80 ) * 69 * - 39 + 76 + + 75 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT - CAST( NULL AS SIGNED ) - + 65 - 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT - CAST ( NULL AS INTEGER ) - + 65 - 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT 97 + - COUNT( - 8 ) * + 31
----
66

skipif mysql # not compatible
query I rowsort label-4147
SELECT 97 + - COUNT ( - 8 ) * + 31
----
66

query I rowsort
SELECT ALL - 37 * 53 AS col0
----
-1961

query I rowsort
SELECT 28 * - - ( - + 35 ) col2
----
-980

query I rowsort
SELECT - 96 + - 32 col1
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4151
SELECT DISTINCT - - 56 * + 56 + - 89 * - 13 + - 3 * - + 53 * - 54, 19 * - - CASE + 33 WHEN 19 * - 83 THEN - COUNT( * ) ELSE CAST( - MAX( + 91 ) AS SIGNED ) * + 31 END + 44 col0
----
-4293
-53555

skipif mysql # not compatible
query II rowsort label-4151
SELECT DISTINCT - - 56 * + 56 + - 89 * - 13 + - 3 * - + 53 * - 54, 19 * - - CASE + 33 WHEN 19 * - 83 THEN - COUNT ( * ) ELSE CAST ( - MAX ( + 91 ) AS INTEGER ) * + 31 END + 44 col0
----
-4293
-53555

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL - + SUM( 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL - + SUM ( 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT - - ( + COUNT( DISTINCT - + ( + 87 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT - - ( + COUNT ( DISTINCT - + ( + 87 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT MAX( DISTINCT - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4154
SELECT MAX ( DISTINCT - 51 )
----
-51

query I rowsort
SELECT DISTINCT - - 11 col1
----
11

query I rowsort
SELECT ALL - CASE 22 WHEN + 1 THEN NULL ELSE + 86 END
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT - 88 * - MAX( ALL 39 )
----
3432

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT - 88 * - MAX ( ALL 39 )
----
3432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4158
SELECT DISTINCT MAX( DISTINCT + + 90 ) * - - 3 * + COUNT( * ) + CAST( NULL AS SIGNED ) * - + ( 46 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT MAX ( DISTINCT + + 90 ) * - - 3 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - + ( 46 ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 63 * 43 + - 20 AS col0
----
-2729

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT SUM( ALL + 76 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4160
SELECT SUM ( ALL + 76 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT 80 * - 53 + + - 13 * + COUNT( - 67 ) AS col2
----
-4253

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT 80 * - 53 + + - 13 * + COUNT ( - 67 ) AS col2
----
-4253

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT ALL - 3, COUNT( * ) AS col2
----
-3
1

skipif mysql # not compatible
query II rowsort label-4162
SELECT ALL - 3, COUNT ( * ) AS col2
----
-3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT ALL COUNT( DISTINCT 51 ) * - 78 + + 88 * + - 90 AS col1
----
-7998

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL COUNT ( DISTINCT 51 ) * - 78 + + 88 * + - 90 AS col1
----
-7998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4164
SELECT + ( - CASE COUNT( 61 ) WHEN - 33 / - - CAST( NULL AS SIGNED ) * - - 31 + AVG ( - 49 ) - + 37 * - 69 THEN NULL WHEN - 13 + - - ( 78 ) THEN NULL ELSE COUNT( DISTINCT 53 ) END ) * 63 col0
----
-63

skipif mysql # not compatible
query I rowsort label-4164
SELECT + ( - CASE COUNT ( 61 ) WHEN - 33 / - - CAST ( NULL AS INTEGER ) * - - 31 + AVG ( - 49 ) - + 37 * - 69 THEN NULL WHEN - 13 + - - ( 78 ) THEN NULL ELSE COUNT ( DISTINCT 53 ) END ) * 63 col0
----
-63

query I rowsort
SELECT ALL 77 * + 41 AS col2
----
3157

query I rowsort
SELECT DISTINCT 35 + + 9
----
44

query I rowsort
SELECT DISTINCT 94 + + 59
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT MAX( DISTINCT - ( - 40 ) )
----
40

skipif mysql # not compatible
query I rowsort label-4168
SELECT MAX ( DISTINCT - ( - 40 ) )
----
40

query I rowsort
SELECT + COALESCE ( - 96, 73 * 51 - - 78 * - 17 + - + 73 * + + 89 * 3 - 72 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4170
SELECT ALL 29 + 3 * CASE + + CAST( - 82 AS DECIMAL ) WHEN ( + 64 ) THEN 64 * + 74 - - 5 + - - COALESCE ( + - 70, - 77 ) + - 95 * CAST( - ( 49 ) AS SIGNED ) WHEN + 20 + - 37 THEN 11 + 14 WHEN + 85 THEN ( - 63 ) - + 67 ELSE - COUNT( * ) END
----
26

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL 29 + 3 * CASE + + CAST ( - 82 AS REAL ) WHEN ( + 64 ) THEN 64 * + 74 - - 5 + - - COALESCE ( + - 70, - 77 ) + - 95 * CAST ( - ( 49 ) AS INTEGER ) WHEN + 20 + - 37 THEN 11 + 14 WHEN + 85 THEN ( - 63 ) - + 67 ELSE - COUNT ( * ) END
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT COUNT( - + 60 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4171
SELECT COUNT ( - + 60 ) AS col1
----
1

query I rowsort
SELECT 64 * - 48 - - 90 AS col1
----
-2982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4173
SELECT 55 * CAST( NULL AS SIGNED ) + - - 95 + - + 96 - - 25 * - + 95 * + ( - 46 ) - - - 69 - - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4173
SELECT 55 * CAST ( NULL AS INTEGER ) + - - 95 + - + 96 - - 25 * - + 95 * + ( - 46 ) - - - 69 - - 16 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4174
SELECT ALL 34 + CAST( - 49 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL 34 + CAST ( - 49 AS INTEGER )
----
-15

query I rowsort
SELECT ALL 93 + - ( + 4 )
----
89

query II rowsort
SELECT ALL 56, - 9 * - 91 col0
----
56
819

query I rowsort
SELECT + 99 + 53 - + - 88 + - 84 * + 61
----
-4884

query II rowsort
SELECT - ( - - ( - + 68 ) ) AS col1, - 86 AS col1
----
68
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT DISTINCT COUNT( * ) * - 2
----
-2

skipif mysql # not compatible
query I rowsort label-4179
SELECT DISTINCT COUNT ( * ) * - 2
----
-2

query I rowsort
SELECT ALL 81 - 88 + + 38 AS col1
----
31

query I rowsort
SELECT + ( - 53 ) * 33
----
-1749

query I rowsort
SELECT - 51 + + 29
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4183
SELECT DISTINCT - - CASE WHEN 31 > - COUNT( * ) + + + COUNT( * ) * - COUNT( * ) * - + MAX( + CASE 9 WHEN + + 86 THEN - 43 END ) THEN - 82 * 57 * COALESCE ( + 94 / - 88, 91, COUNT( * ) ) + 65 + 55 * COUNT( * ) ELSE + 6 * 48 END - + MIN( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT - - CASE WHEN 31 > - COUNT ( * ) + + + COUNT ( * ) * - COUNT ( * ) * - + MAX ( + CASE 9 WHEN + + 86 THEN - 43 END ) THEN - 82 * 57 * COALESCE ( + 94 / - 88, 91, COUNT ( * ) ) + 65 + 55 * COUNT ( * ) ELSE + 6 * 48 END - + MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 33 * 53 col2
----
1749

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4185
SELECT - - 41 + SUM( ALL - + 27 ) + - + 97 - + 82 + 89 * + 80 + - 58 - 4 + - 40 + 59 DIV + + 10 AS col2
----
6858

skipif mysql # not compatible
query I rowsort label-4185
SELECT - - 41 + SUM ( ALL - + 27 ) + - + 97 - + 82 + 89 * + 80 + - 58 - 4 + - 40 + 59 / + + 10 AS col2
----
6858

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT - COUNT( * ) * + - 83 + + - 54
----
29

skipif mysql # not compatible
query I rowsort label-4186
SELECT - COUNT ( * ) * + - 83 + + - 54
----
29

query II rowsort
SELECT ALL 59, 28 AS col1
----
59
28

query II rowsort
SELECT ALL + 66 * + ( - 47 ), 20 * - 63 AS col0
----
-3102
-1260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4189
SELECT - - CAST( COUNT( * ) AS SIGNED ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-4189
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) / + 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4190
SELECT DISTINCT + 44 DIV + 82 + + COALESCE ( + - ( + 87 ), - 60 DIV - COALESCE ( - NULLIF ( + 30, 2 * + 44 * - SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) ), ( AVG ( DISTINCT - 79 ) ) ) * COALESCE ( 42 * 51, 1 + + 45 ) - - 57 + - 48 * 59 ) * 20
----
-1740

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT + 44 / + 82 + + COALESCE ( + - ( + 87 ), - 60 / - COALESCE ( - NULLIF ( + 30, 2 * + 44 * - SUM ( DISTINCT + CAST ( NULL AS REAL ) ) ), ( AVG ( DISTINCT - 79 ) ) ) * COALESCE ( 42 * 51, 1 + + 45 ) - - 57 + - 48 * 59 ) * 20
----
-1740

onlyif mysql # aggregate syntax: 
query II rowsort label-4191
SELECT DISTINCT - 71 AS col1, + COUNT( + 4 ) * - 44 * - - 32
----
-71
-1408

skipif mysql # not compatible
query II rowsort label-4191
SELECT DISTINCT - 71 AS col1, + COUNT ( + 4 ) * - 44 * - - 32
----
-71
-1408

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4192
SELECT ALL + MIN( - 59 ) * + - 25 col2, 36 + CAST( NULL AS DECIMAL ) AS col1
----
1475
NULL

skipif mysql # not compatible
query II rowsort label-4192
SELECT ALL + MIN ( - 59 ) * + - 25 col2, 36 + CAST ( NULL AS REAL ) AS col1
----
1475
NULL

query I rowsort
SELECT - ( - - 79 ) * - 32 * + + 7 AS col2
----
17696

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - 30 * + SUM( DISTINCT + 81 ) AS col1
----
-2430

skipif mysql # not compatible
query I rowsort label-4194
SELECT - 30 * + SUM ( DISTINCT + 81 ) AS col1
----
-2430

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4195
SELECT ALL - 50 + - + 71 DIV + 83 AS col1, CASE + MIN( DISTINCT - 45 ) WHEN 37 - + + ( - + 37 ) + 91 + ( - 45 ) * - 61 DIV 91 THEN NULL ELSE 89 DIV - 86 END * - 61 AS col2
----
-50
61

skipif mysql # not compatible
query II rowsort label-4195
SELECT ALL - 50 + - + 71 / + 83 AS col1, CASE + MIN ( DISTINCT - 45 ) WHEN 37 - + + ( - + 37 ) + 91 + ( - 45 ) * - 61 / 91 THEN NULL ELSE 89 / - 86 END * - 61 AS col2
----
-50
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT ALL - + 65 * 34 * CASE + 46 WHEN 25 * - COUNT( * ) THEN 26 ELSE - COUNT( * ) END + + - CAST( NULL AS SIGNED ) + - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL - + 65 * 34 * CASE + 46 WHEN 25 * - COUNT ( * ) THEN 26 ELSE - COUNT ( * ) END + + - CAST ( NULL AS INTEGER ) + - 52 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - ( 14 ) * - COUNT( ALL + 71 ) - + + 72 + + + 58 + - 14 + - - 19 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4197
SELECT - ( 14 ) * - COUNT ( ALL + 71 ) - + + 72 + + + 58 + - 14 + - - 19 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT - MIN( DISTINCT 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4198
SELECT - MIN ( DISTINCT 6 ) AS col2
----
-6

query I rowsort
SELECT DISTINCT + - 36 * - 18
----
648

query I rowsort
SELECT ALL - 95 * + - 91 + - - 18 AS col0
----
8663

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL MIN( DISTINCT + + ( + 36 ) ) * - + 94 + + 42
----
-3342

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL MIN ( DISTINCT + + ( + 36 ) ) * - + 94 + + 42
----
-3342

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT - COUNT( * ) + + - COUNT( * ) * - 99 + 4 * + 68 * - 49
----
-13230

skipif mysql # not compatible
query I rowsort label-4202
SELECT - COUNT ( * ) + + - COUNT ( * ) * - 99 + 4 * + 68 * - 49
----
-13230

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT + 0 * COUNT( * ) - + 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4203
SELECT + 0 * COUNT ( * ) - + 24 AS col0
----
-24

query I rowsort
SELECT + CASE WHEN 7 IS NULL THEN + 4 ELSE + 0 END
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4205
SELECT ALL 19 * - - 66 + + + 76 * - CAST( + 82 AS SIGNED ) + + 30 + - 35 AS col0, ( - 26 )
----
-4983
-26

skipif mysql # not compatible
query II rowsort label-4205
SELECT ALL 19 * - - 66 + + + 76 * - CAST ( + 82 AS INTEGER ) + + 30 + - 35 AS col0, ( - 26 )
----
-4983
-26

query I rowsort
SELECT NULLIF ( + + 89, + 27 )
----
89

query I rowsort
SELECT + NULLIF ( + + 91, 91 + 75 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4208
SELECT NULLIF ( - - 62, - CAST( - - 11 AS SIGNED ) ), ( - - 29 ) AS col1
----
62
29

skipif mysql # not compatible
query II rowsort label-4208
SELECT NULLIF ( - - 62, - CAST ( - - 11 AS INTEGER ) ), ( - - 29 ) AS col1
----
62
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT + 37 * - COUNT( * ) + - 81 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-4209
SELECT + 37 * - COUNT ( * ) + - 81 AS col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL COUNT( * ) * + COUNT( * ) * + 90 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL COUNT ( * ) * + COUNT ( * ) * + 90 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT COALESCE ( 20, 22, + - COUNT( * ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4211
SELECT COALESCE ( 20, 22, + - COUNT ( * ) ) AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT DISTINCT + 78 DIV + NULLIF ( 25, - 36 * - 44 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT + 78 / + NULLIF ( 25, - 36 * - 44 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4213
SELECT ALL + 58 * + 73 - + - 29 + - - COUNT( * ), - 67 + NULLIF ( - COUNT( * ), MIN( + 70 ) / + + CASE + COUNT( * ) WHEN - 93 THEN NULL WHEN - ( - 76 ) + + COUNT( * ) THEN NULL ELSE - COUNT( * ) - COUNT( DISTINCT 20 ) * - 35 END + - 81 ) AS col2
----
4264
-68

skipif mysql # not compatible
query II rowsort label-4213
SELECT ALL + 58 * + 73 - + - 29 + - - COUNT ( * ), - 67 + NULLIF ( - COUNT ( * ), MIN ( + 70 ) / + + CASE + COUNT ( * ) WHEN - 93 THEN NULL WHEN - ( - 76 ) + + COUNT ( * ) THEN NULL ELSE - COUNT ( * ) - COUNT ( DISTINCT 20 ) * - 35 END + - 81 ) AS col2
----
4264
-68

query II rowsort
SELECT + 81 * + 8 AS col1, 5 + - 81
----
648
-76

query I rowsort
SELECT DISTINCT + NULLIF ( + + 3, 54 )
----
3

query I rowsort
SELECT DISTINCT 22 * + 81
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL COUNT( + 87 ) * + 2 - - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL COUNT ( + 87 ) * + 2 - - COUNT ( * ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4218
SELECT - 45 * - CAST( COUNT( * ) AS SIGNED ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4218
SELECT - 45 * - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
45

query I rowsort
SELECT + 51 * - - 66 * + 2
----
6732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4220
SELECT ( - CAST( NULL AS SIGNED ) ) * 69 + COALESCE ( + 48, + COUNT( CAST( NULL AS SIGNED ) ) ) - - 33 * 66 * + 7, 91 * + - 10 - + 84 DIV + - COUNT( * ) AS col0
----
NULL
-826

skipif mysql # not compatible
query II rowsort label-4220
SELECT ( - CAST ( NULL AS INTEGER ) ) * 69 + COALESCE ( + 48, + COUNT ( CAST ( NULL AS INTEGER ) ) ) - - 33 * 66 * + 7, 91 * + - 10 - + 84 / + - COUNT ( * ) AS col0
----
NULL
-826

query I rowsort
SELECT + 22 * - ( + - 24 )
----
528

query I rowsort
SELECT + 39 + + + 62
----
101

query II rowsort
SELECT - ( 96 ), - ( + - 37 ) AS col2
----
-96
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT DISTINCT + MAX( + 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT + MAX ( + 12 ) AS col2
----
12

query I rowsort
SELECT + + NULLIF ( 37, - + 88 * + - 23 * - - 18 ) * - 96
----
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL ( - + 20 ) * + SUM( + - 81 ) + + 65 AS col0
----
1685

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL ( - + 20 ) * + SUM ( + - 81 ) + + 65 AS col0
----
1685

query I rowsort
SELECT + 74 - - 57
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4228
SELECT DISTINCT + 98 * - ( CASE + 93 WHEN 55 * 61 * 3 - + 16 THEN NULL WHEN - 70 THEN + CAST( 57 AS SIGNED ) * + 38 * - 50 ELSE COUNT( * ) * - 47 - CAST( 81 AS SIGNED ) * + 2 END )
----
20482

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + 98 * - ( CASE + 93 WHEN 55 * 61 * 3 - + 16 THEN NULL WHEN - 70 THEN + CAST ( 57 AS INTEGER ) * + 38 * - 50 ELSE COUNT ( * ) * - 47 - CAST ( 81 AS INTEGER ) * + 2 END )
----
20482

query I rowsort
SELECT + ( - 28 ) + - + 49 * + 86 * - 2 * + 88
----
741636

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT + 1 + - + 21, SUM( + 48 ) AS col1
----
-20
48

skipif mysql # not compatible
query II rowsort label-4230
SELECT + 1 + - + 21, SUM ( + 48 ) AS col1
----
-20
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4231
SELECT + ( COUNT( * ) ) AS col2, 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-4231
SELECT + ( COUNT ( * ) ) AS col2, 93 AS col1
----
1
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT - 28 DIV + 88 + - + 84
----
-84

skipif mysql # not compatible
query I rowsort label-4232
SELECT - 28 / + 88 + - + 84
----
-84

query I rowsort
SELECT - - 93 - 35 - 93 AS col1
----
-35

query I rowsort
SELECT ALL + + 76 + - NULLIF ( ( + - 82 ), NULLIF ( - 10, 25 ) * + 84 )
----
158

query I rowsort
SELECT ALL + 13 + + 68
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT - - CAST( NULL AS SIGNED ) + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT - - CAST ( NULL AS INTEGER ) + - 77
----
NULL

query I rowsort
SELECT - 3 * 44 + 13 + - 17 + + - 41 + - 55 AS col1
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT DISTINCT - ( - COUNT( * ) ) + + 8
----
9

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT - ( - COUNT ( * ) ) + + 8
----
9

query I rowsort
SELECT ALL - 63 + - 56 AS col0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT 57 * - + COUNT( * ) * - 62
----
3534

skipif mysql # not compatible
query I rowsort label-4240
SELECT 57 * - + COUNT ( * ) * - 62
----
3534

query I rowsort
SELECT ALL + 91 * + 13 * - 2 AS col2
----
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT + SUM( DISTINCT 27 ) * - NULLIF ( + + 7, - 57 ) + + 58
----
-131

skipif mysql # not compatible
query I rowsort label-4242
SELECT + SUM ( DISTINCT 27 ) * - NULLIF ( + + 7, - 57 ) + + 58
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT + MIN( - + 69 ) * + 6 * 16
----
-6624

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + MIN ( - + 69 ) * + 6 * 16
----
-6624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4244
SELECT DISTINCT - 19 - - 78 + - - CASE - COALESCE ( - - ( - CASE 22 WHEN + 86 * - 37 - + COUNT( * ) + + CASE - 52 WHEN + ( + NULLIF ( - - 26, 52 ) ) * 77 THEN + 3 / - 84 END + - 60 * + 31 * + 43 + + ( 13 ) * 83 THEN 23 WHEN - ( + 55 ) * 74 THEN NULL WHEN - 56 THEN NULL END ), + 34 / - CAST( 69 * 62 AS DECIMAL ), + 94 * + COUNT( * ) ) WHEN 71 * - 32 THEN - 52 WHEN - 64 * + COUNT( - CAST( NULL AS SIGNED ) ) THEN COUNT( * ) * SUM( ALL 76 ) + - 23 ELSE NULL END + - CAST( MAX( DISTINCT 91 ) + COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT - 19 - - 78 + - - CASE - COALESCE ( - - ( - CASE 22 WHEN + 86 * - 37 - + COUNT ( * ) + + CASE - 52 WHEN + ( + NULLIF ( - - 26, 52 ) ) * 77 THEN + 3 / - 84 END + - 60 * + 31 * + 43 + + ( 13 ) * 83 THEN 23 WHEN - ( + 55 ) * 74 THEN NULL WHEN - 56 THEN NULL END ), + 34 / - CAST ( 69 * 62 AS REAL ), + 94 * + COUNT ( * ) ) WHEN 71 * - 32 THEN - 52 WHEN - 64 * + COUNT ( - CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) * SUM ( ALL 76 ) + - 23 ELSE NULL END + - CAST ( MAX ( DISTINCT 91 ) + COUNT ( * ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 64 * + 74 AS col0
----
4736

query I rowsort
SELECT ALL + 92 * - 34 col1
----
-3128

onlyif mysql # aggregate syntax: 
query II rowsort label-4247
SELECT ALL - NULLIF ( ( - 12 ), - + 60 ) - - 63 * - 4 AS col1, - SUM( ALL + 59 ) * + 75
----
-240
-4425

skipif mysql # not compatible
query II rowsort label-4247
SELECT ALL - NULLIF ( ( - 12 ), - + 60 ) - - 63 * - 4 AS col1, - SUM ( ALL + 59 ) * + 75
----
-240
-4425

query II rowsort
SELECT ALL - 73 AS col1, 43
----
-73
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4249
SELECT 8 + CAST( NULL AS DECIMAL ) * + ( - 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT 8 + CAST ( NULL AS REAL ) * + ( - 98 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT COUNT( * ) * - + 90 col1
----
-90

skipif mysql # not compatible
query I rowsort label-4250
SELECT COUNT ( * ) * - + 90 col1
----
-90

query I rowsort
SELECT 98 + - 51 * + 54 + 2
----
-2654

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT 1 DIV 17
----
0

skipif mysql # not compatible
query I rowsort label-4252
SELECT 1 / 17
----
0

query I rowsort
SELECT 37 * - ( - + ( - 84 ) ) AS col1
----
-3108

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT ALL - 29 DIV - 65 col0
----
0

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - 29 / - 65 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT 93 * - COUNT( - 90 ) + + - 14 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-4255
SELECT 93 * - COUNT ( - 90 ) + + - 14 AS col1
----
-107

query I rowsort
SELECT 43 - + 25 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL - 66 / + CASE + 95 WHEN + - CASE ( - 51 ) WHEN 83 THEN NULL WHEN + 78 * + - 11 THEN NULLIF ( - SUM( + + 93 ), + - 17 - 41 + 24 ) WHEN + 50 THEN 24 - - 40 END THEN + 16 + 97 WHEN 22 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - 66 / + CASE + 95 WHEN + - CASE ( - 51 ) WHEN 83 THEN NULL WHEN + 78 * + - 11 THEN NULLIF ( - SUM ( + + 93 ), + - 17 - 41 + 24 ) WHEN + 50 THEN 24 - - 40 END THEN + 16 + 97 WHEN 22 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4258
SELECT - 49 DIV - + 20
----
2

skipif mysql # not compatible
query I rowsort label-4258
SELECT - 49 / - + 20
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4259
SELECT ALL - 49 + + 64 DIV + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4259
SELECT ALL - 49 + + 64 / + COUNT ( * ) AS col2
----
15

query I rowsort
SELECT + 71 + ( + 10 ) * + - 21 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT COUNT( ALL + NULLIF ( 87, - - 25 + + + NULLIF ( - - 75, + 48 ) ) ) + + - 26 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4261
SELECT COUNT ( ALL + NULLIF ( 87, - - 25 + + + NULLIF ( - - 75, + 48 ) ) ) + + - 26 AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4262
SELECT ALL + 83 + - 67 DIV + COUNT( + 60 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + 83 + - 67 / + COUNT ( + 60 ) AS col1
----
16

query I rowsort
SELECT ALL + 34 + - 25
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT CAST( + + CASE - 55 WHEN - COUNT( * ) THEN NULL WHEN - - 57 * + + 38 + - 81 THEN AVG ( - 3 ) / + COUNT( * ) END AS SIGNED ) / + 16 - - 68 + - 63 / + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT CAST ( + + CASE - 55 WHEN - COUNT ( * ) THEN NULL WHEN - - 57 * + + 38 + - 81 THEN AVG ( - 3 ) / + COUNT ( * ) END AS INTEGER ) / + 16 - - 68 + - 63 / + + 1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT - 21 + - SUM( + 99 ) + - 13 DIV - MAX( + - 66 ) AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-4265
SELECT - 21 + - SUM ( + 99 ) + - 13 / - MAX ( + - 66 ) AS col2
----
-120

query II rowsort
SELECT DISTINCT 84 AS col2, 18 + + 23 AS col0
----
84
41

query I rowsort
SELECT ALL 48 + - 43 AS col1
----
5

query II rowsort
SELECT DISTINCT - 9 * + + 6 * + 40 AS col0, - 23
----
-2160
-23

query I rowsort
SELECT ALL - 7 - 64
----
-71

query I rowsort
SELECT DISTINCT 89 * 7 AS col2
----
623

query I rowsort
SELECT 67 - + + 72 AS col1
----
-5

query I rowsort
SELECT + 92 * + 24 - 13 AS col0
----
2195

query I rowsort
SELECT DISTINCT 77 * + 76 * + - 83
----
-485716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4274
SELECT + 29 AS col2, 96 + CAST( NULL AS SIGNED ) + 97 + - - NULLIF ( - 57, + + ( - 12 ) ) * + CAST( 54 AS DECIMAL ) + - NULLIF ( - 13, - CASE + + NULLIF ( 61, - COALESCE ( 45, COALESCE ( - 72, COALESCE ( - 58, + CASE + SUM( 33 ) WHEN - CAST( NULL AS SIGNED ) THEN 63 + - 32 ELSE NULL END ), + 81 ) ) + + 9 ) WHEN - 99 - - 19 * + 6 THEN NULL WHEN - NULLIF ( 61, 63 ) THEN NULL WHEN 53 THEN NULL WHEN 99 THEN - 81 * 15 END - + COALESCE ( + 69, MIN( DISTINCT - 8 ) ) ) + + 25 * - 69
----
29
NULL

skipif mysql # not compatible
query II rowsort label-4274
SELECT + 29 AS col2, 96 + CAST ( NULL AS INTEGER ) + 97 + - - NULLIF ( - 57, + + ( - 12 ) ) * + CAST ( 54 AS REAL ) + - NULLIF ( - 13, - CASE + + NULLIF ( 61, - COALESCE ( 45, COALESCE ( - 72, COALESCE ( - 58, + CASE + SUM ( 33 ) WHEN - CAST ( NULL AS INTEGER ) THEN 63 + - 32 ELSE NULL END ), + 81 ) ) + + 9 ) WHEN - 99 - - 19 * + 6 THEN NULL WHEN - NULLIF ( 61, 63 ) THEN NULL WHEN 53 THEN NULL WHEN 99 THEN - 81 * 15 END - + COALESCE ( + 69, MIN ( DISTINCT - 8 ) ) ) + + 25 * - 69
----
29
NULL

query II rowsort
SELECT DISTINCT - 25 AS col0, 45
----
-25
45

query II rowsort
SELECT ALL - 31 AS col1, 0
----
-31
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4277
SELECT DISTINCT - 14 DIV + 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT - 14 / + 45 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT ALL - COUNT( * ) * - 35 col0
----
35

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - COUNT ( * ) * - 35 col0
----
35

query I rowsort
SELECT 11 - + NULLIF ( - 80, 64 ) * - - ( + 76 ) + - 34 AS col1
----
6057

query I rowsort
SELECT 18 * + - 71 AS col2
----
-1278

query I rowsort
SELECT - 54 * + - 2 * 5 * - 41 - - + 5
----
-22135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT ALL - CASE - - 84 WHEN + 30 + 9 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - CASE - - 84 WHEN + 30 + 9 THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT CAST( - 26 AS SIGNED ) * - + 37 AS col1
----
962

skipif mysql # not compatible
query I rowsort label-4283
SELECT CAST ( - 26 AS INTEGER ) * - + 37 AS col1
----
962

query II rowsort
SELECT 93 AS col2, - 63 + - + 46
----
93
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-4285
SELECT 37 DIV - 33 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4285
SELECT 37 / - 33 AS col2
----
-1

query I rowsort
SELECT ALL + 97 * - 56 AS col1
----
-5432

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4287
SELECT NULLIF ( + CASE + - NULLIF ( - 67, 77 + + CAST( + NULLIF ( + 50, + CAST( NULL AS DECIMAL ) ) AS DECIMAL ) ) WHEN - 39 THEN - 14 * + 31 WHEN 28 THEN NULL END, - - 24 ) * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT NULLIF ( + CASE + - NULLIF ( - 67, 77 + + CAST ( + NULLIF ( + 50, + CAST ( NULL AS REAL ) ) AS REAL ) ) WHEN - 39 THEN - 14 * + 31 WHEN 28 THEN NULL END, - - 24 ) * 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT 6 * - MIN( 63 ) * - 68 + - SUM( DISTINCT 94 ) AS col0
----
25610

skipif mysql # not compatible
query I rowsort label-4288
SELECT 6 * - MIN ( 63 ) * - 68 + - SUM ( DISTINCT 94 ) AS col0
----
25610

query I rowsort
SELECT DISTINCT - 25 * + + 45 col2
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL + ( + + 40 ) + 57 + - CASE COUNT( * ) WHEN - 4 * + 74 THEN NULL ELSE 75 + - 73 END - - + MAX( DISTINCT - - 98 ) * - 50 + - 40 * + COALESCE ( + + COUNT( * ), - ( + 46 ) ) * 91 AS col0
----
-8445

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + ( + + 40 ) + 57 + - CASE COUNT ( * ) WHEN - 4 * + 74 THEN NULL ELSE 75 + - 73 END - - + MAX ( DISTINCT - - 98 ) * - 50 + - 40 * + COALESCE ( + + COUNT ( * ), - ( + 46 ) ) * 91 AS col0
----
-8445

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT NULLIF ( 55, + 90 + + COUNT( * ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4291
SELECT NULLIF ( 55, + 90 + + COUNT ( * ) ) AS col1
----
55

query I rowsort
SELECT + ( + 2 ) * + 88
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT - - 47 + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT - - 47 + + COUNT ( * )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4294
SELECT + CAST( NULL AS SIGNED ), + 59 * + 54 AS col1
----
NULL
3186

skipif mysql # not compatible
query II rowsort label-4294
SELECT + CAST ( NULL AS INTEGER ), + 59 * + 54 AS col1
----
NULL
3186

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - COUNT( ALL - + 81 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4295
SELECT - COUNT ( ALL - + 81 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + 63 * + NULLIF ( + 52, 23 ) * + 80 + + 10 - + 6 * SUM( ALL - 19 )
----
262204

skipif mysql # not compatible
query I rowsort label-4296
SELECT + 63 * + NULLIF ( + 52, 23 ) * + 80 + + 10 - + 6 * SUM ( ALL - 19 )
----
262204

query I rowsort
SELECT - ( + - 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT ALL 68, + MAX( ALL - 74 ) AS col0
----
68
-74

skipif mysql # not compatible
query II rowsort label-4298
SELECT ALL 68, + MAX ( ALL - 74 ) AS col0
----
68
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT DISTINCT COUNT( - - 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT COUNT ( - - 47 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4300
SELECT DISTINCT + CAST( - 16 AS SIGNED ) * - COUNT( ALL - - 67 ) + + + 86
----
102

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT + CAST ( - 16 AS INTEGER ) * - COUNT ( ALL - - 67 ) + + + 86
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT - + 29 - - SUM( + 35 ) + + 41 * - - 62 * - 35
----
-88964

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT - + 29 - - SUM ( + 35 ) + + 41 * - - 62 * - 35
----
-88964

query I rowsort
SELECT DISTINCT - 69 - + - 11 col0
----
-58

query I rowsort
SELECT - CASE - 61 WHEN - - 97 + - 31 / + - 72 + - + 27 / - - 80 + + + 88 * - + 51 THEN - 43 + 31 + + ( - NULLIF ( - - 40, - 6 ) ) * + 52 - - 32 ELSE + 65 * 64 END
----
-4160

onlyif mysql # aggregate syntax: 
query II rowsort label-4304
SELECT + + COUNT( * ) + - 52 - + 69 - - 46 * + MAX( DISTINCT - 56 ), + COUNT( * ) * + - 60 * - COUNT( * ) + 93 AS col2
----
-2696
153

skipif mysql # not compatible
query II rowsort label-4304
SELECT + + COUNT ( * ) + - 52 - + 69 - - 46 * + MAX ( DISTINCT - 56 ), + COUNT ( * ) * + - 60 * - COUNT ( * ) + 93 AS col2
----
-2696
153

query I rowsort
SELECT - - 72 * - 39
----
-2808

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4306
SELECT ALL 41, CAST( + - 89 AS SIGNED ) DIV + CASE CASE ( - 99 ) WHEN - ( 42 ) - + 38 + - - 94 THEN NULL ELSE + 34 END WHEN + 83 + - 43 THEN 62 * - 64 ELSE - 56 + 37 END + 76 AS col1
----
41
80

skipif mysql # not compatible
query II rowsort label-4306
SELECT ALL 41, CAST ( + - 89 AS INTEGER ) / + CASE CASE ( - 99 ) WHEN - ( 42 ) - + 38 + - - 94 THEN NULL ELSE + 34 END WHEN + 83 + - 43 THEN 62 * - 64 ELSE - 56 + 37 END + 76 AS col1
----
41
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT - MIN( ALL + 28 ) + COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4307
SELECT - MIN ( ALL + 28 ) + COUNT ( * ) AS col0
----
-27

query I rowsort
SELECT - 12 + 9
----
-3

query II rowsort
SELECT + 18 - - 28 AS col1, 18 * + 84 * ( + 50 ) AS col1
----
46
75600

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT CASE COUNT( * ) WHEN 73 THEN COUNT( * ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT CASE COUNT ( * ) WHEN 73 THEN COUNT ( * ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT DISTINCT NULLIF ( 37, 12 * - 38 + - - COUNT( * ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT NULLIF ( 37, 12 * - 38 + - - COUNT ( * ) ) AS col2
----
37

query I rowsort
SELECT ALL NULLIF ( + 45, 84 ) - 83 AS col2
----
-38

query I rowsort
SELECT ALL CASE + - 3 WHEN + + 18 THEN + 74 * 47 END AS col1
----
NULL

query I rowsort
SELECT + 82 * 85
----
6970

onlyif mysql # aggregate syntax: 
query II rowsort label-4315
SELECT + 35 + - COUNT( * ) * + 58, 51 - + + 31 AS col0
----
-23
20

skipif mysql # not compatible
query II rowsort label-4315
SELECT + 35 + - COUNT ( * ) * + 58, 51 - + + 31 AS col0
----
-23
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT + 52 * - MAX( 82 )
----
-4264

skipif mysql # not compatible
query I rowsort label-4316
SELECT + 52 * - MAX ( 82 )
----
-4264

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT CASE + SUM( DISTINCT + 58 ) WHEN - 54 * + - 16 THEN + - 36 WHEN + 76 THEN NULL ELSE + 49 + - 72 + + 26 END AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4317
SELECT CASE + SUM ( DISTINCT + 58 ) WHEN - 54 * + - 16 THEN + - 36 WHEN + 76 THEN NULL ELSE + 49 + - 72 + + 26 END AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT CASE - - 34 WHEN - 59 THEN - - COUNT( * ) WHEN + 15 / + 88 * + 17 + - + 15 + - 78 - - 96 THEN + 57 * + + COUNT( * ) * + CASE - + 41 WHEN - NULLIF ( + COUNT( * ), + + 40 * 73 ) THEN 41 + - CAST( NULL AS SIGNED ) * COUNT( * ) ELSE + COUNT( - 81 ) END + COUNT( - 28 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4318
SELECT CASE - - 34 WHEN - 59 THEN - - COUNT ( * ) WHEN + 15 / + 88 * + 17 + - + 15 + - 78 - - 96 THEN + 57 * + + COUNT ( * ) * + CASE - + 41 WHEN - NULLIF ( + COUNT ( * ), + + 40 * 73 ) THEN 41 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) ELSE + COUNT ( - 81 ) END + COUNT ( - 28 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL - 5 * + + COUNT( * ) + - 66 + + + 34
----
-37

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - 5 * + + COUNT ( * ) + - 66 + + + 34
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4320
SELECT CASE NULLIF ( COUNT( * ), + COUNT( * ) / COUNT( * ) + - 65 + + - 31 ) WHEN ( - 80 ) / + 5 THEN + 42 WHEN - CAST( - NULLIF ( + - NULLIF ( ( + + ( CAST( NULL AS DECIMAL ) ) ), NULLIF ( COUNT( * ), + 5 * + 80 ) * + 75 ), 48 ) AS SIGNED ) THEN 8 ELSE + 1 * - 95 END AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4320
SELECT CASE NULLIF ( COUNT ( * ), + COUNT ( * ) / COUNT ( * ) + - 65 + + - 31 ) WHEN ( - 80 ) / + 5 THEN + 42 WHEN - CAST ( - NULLIF ( + - NULLIF ( ( + + ( CAST ( NULL AS REAL ) ) ), NULLIF ( COUNT ( * ), + 5 * + 80 ) * + 75 ), 48 ) AS INTEGER ) THEN 8 ELSE + 1 * - 95 END AS col2
----
-95

query I rowsort
SELECT ALL - 67 * + 24 + + - 90 AS col2
----
-1698

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4322
SELECT + ( - 52 ) col2, 40 + - + 34 + + 16, - 49 * 79 + 22 + - CAST( NULL AS SIGNED ) col1
----
-52
22
NULL

skipif mysql # not compatible
query III rowsort label-4322
SELECT + ( - 52 ) col2, 40 + - + 34 + + 16, - 49 * 79 + 22 + - CAST ( NULL AS INTEGER ) col1
----
-52
22
NULL

query I rowsort
SELECT - 5 * 22 + - + 91 AS col0
----
-201

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT ALL + NULLIF ( + 63, SUM( - ( + + 77 ) ) ) AS col0, 56
----
63
56

skipif mysql # not compatible
query II rowsort label-4324
SELECT ALL + NULLIF ( + 63, SUM ( - ( + + 77 ) ) ) AS col0, 56
----
63
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4325
SELECT DISTINCT + 0 DIV - + MIN( - 3 ) + + 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT + 0 / - + MIN ( - 3 ) + + 26 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT ALL - 72 * + + CAST( NULL AS SIGNED ) + 99 + - + CAST( + 10 AS SIGNED ) + + COUNT( * ) / - 58 * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL - 72 * + + CAST ( NULL AS INTEGER ) + 99 + - + CAST ( + 10 AS INTEGER ) + + COUNT ( * ) / - 58 * + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT + 6 + CAST( NULL AS SIGNED ) + + - 98 + + ( - + 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT + 6 + CAST ( NULL AS INTEGER ) + + - 98 + + ( - + 87 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT 86 * 93 + + + COUNT( * ) * - 48 * + - COUNT( * ) AS col2
----
8046

skipif mysql # not compatible
query I rowsort label-4328
SELECT 86 * 93 + + + COUNT ( * ) * - 48 * + - COUNT ( * ) AS col2
----
8046

query I rowsort
SELECT ALL + ( + - 27 ) * 3 + - - 18
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL - - MIN( + 85 ) * + SUM( - - 61 ) * - 91 * COUNT( * ) AS col2
----
-471835

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL - - MIN ( + 85 ) * + SUM ( - - 61 ) * - 91 * COUNT ( * ) AS col2
----
-471835

onlyif mysql # aggregate syntax: 
query II rowsort label-4331
SELECT ALL + 79 * + + ( + ( - 37 ) ) * + 30 - 30 + + + 40 + - 78 * - + MIN( 38 ) AS col1, + 74 * ( - 37 ) AS col2
----
-84716
-2738

skipif mysql # not compatible
query II rowsort label-4331
SELECT ALL + 79 * + + ( + ( - 37 ) ) * + 30 - 30 + + + 40 + - 78 * - + MIN ( 38 ) AS col1, + 74 * ( - 37 ) AS col2
----
-84716
-2738

query I rowsort
SELECT - - 20 + + 35
----
55

query I rowsort
SELECT ALL - ( + + ( - 55 ) ) AS col2
----
55

query I rowsort
SELECT ALL + - 39 - 98
----
-137

query I rowsort
SELECT DISTINCT + CASE + 96 WHEN - - 0 + - - 24 + + 8 / CASE + + 66 WHEN - 51 THEN 37 ELSE NULL END + 10 THEN NULL WHEN + + 52 * 93 + NULLIF ( - 2, 44 * - ( - 47 ) * 69 - 51 ) * 23 THEN NULL ELSE 57 * + 10 END AS col2
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT DISTINCT + 32 - - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4336
SELECT DISTINCT + 32 - - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - COUNT( * ) * 40 - - + 91
----
51

skipif mysql # not compatible
query I rowsort label-4337
SELECT - COUNT ( * ) * 40 - - + 91
----
51

query II rowsort
SELECT + + 4 + 69, + 30 AS col2
----
73
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT + COUNT( * ) * 52
----
52

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + COUNT ( * ) * 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT - ( + - 44 ) * - 48 + - COUNT( * ) * + 40 + + 0 AS col1
----
-2152

skipif mysql # not compatible
query I rowsort label-4340
SELECT - ( + - 44 ) * - 48 + - COUNT ( * ) * + 40 + + 0 AS col1
----
-2152

query II rowsort
SELECT 38 AS col2, 89 AS col0
----
38
89

query I rowsort
SELECT ALL ( + + ( + NULLIF ( - 86, 68 ) ) ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT + 15 * + - ( - COUNT( * ) )
----
15

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + 15 * + - ( - COUNT ( * ) )
----
15

query I rowsort
SELECT + 35 * + 30
----
1050

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT + 52 DIV + 32
----
1

skipif mysql # not compatible
query I rowsort label-4345
SELECT + 52 / + 32
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4346
SELECT - 23 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT - 23 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4347
SELECT - NULLIF ( + - 32, + COUNT( * ) / - 67 + 77 ) * + - 56 + - 81 - CAST( - 79 AS SIGNED )
----
-1794

skipif mysql # not compatible
query I rowsort label-4347
SELECT - NULLIF ( + - 32, + COUNT ( * ) / - 67 + 77 ) * + - 56 + - 81 - CAST ( - 79 AS INTEGER )
----
-1794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT ALL CAST( NULL AS SIGNED ) / 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL CAST ( NULL AS INTEGER ) / 22
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-4349
SELECT - 17 DIV ( - 74 ), + 4 AS col2, - 44 AS col0
----
0
4
-44

skipif mysql # not compatible
query III rowsort label-4349
SELECT - 17 / ( - 74 ), + 4 AS col2, - 44 AS col0
----
0
4
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4350
SELECT ALL + 78 / + 66 / - MIN( DISTINCT 36 ) + + NULLIF ( + CAST( NULL AS SIGNED ), AVG ( DISTINCT 22 ) + + 30 + - + 61 + + 94 ) * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL + 78 / + 66 / - MIN ( DISTINCT 36 ) + + NULLIF ( + CAST ( NULL AS INTEGER ), AVG ( DISTINCT 22 ) + + 30 + - + 61 + + 94 ) * + 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT + CASE 94 WHEN + - 6 * + 20 * + 30 THEN + COUNT( * ) * + 13 * + + 46 * + COALESCE ( 66, + 68 ) + 70 * + - CAST( 34 AS SIGNED ) / 5 * - - 48 - + 71 WHEN + ( + ( - 52 ) ) THEN - 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT + CASE 94 WHEN + - 6 * + 20 * + 30 THEN + COUNT ( * ) * + 13 * + + 46 * + COALESCE ( 66, + 68 ) + 70 * + - CAST ( 34 AS INTEGER ) / 5 * - - 48 - + 71 WHEN + ( + ( - 52 ) ) THEN - 85 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4352
SELECT ALL - 23 / - COUNT( * ) * - + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - 23 / - COUNT ( * ) * - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT CAST( - + 40 AS SIGNED ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4353
SELECT CAST ( - + 40 AS INTEGER ) AS col0
----
-40

query II rowsort
SELECT ALL + 72 AS col1, - 3
----
72
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4355
SELECT ALL COUNT( 31 ) DIV 77 + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL COUNT ( 31 ) / 77 + - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT - 1 * + 7 - + - COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-4356
SELECT - 1 * + 7 - + - COUNT ( * ) col2
----
-6

query I rowsort
SELECT + 95 + + NULLIF ( - + 61, - - 77 + - 17 * - - 5 )
----
34

query II rowsort
SELECT 75 AS col0, + AVG ( - 91 ) * CASE + 15 WHEN - 26 THEN + 66 END
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + 88 * + COUNT( ALL - + 53 ) * - 65 + - 61 + - 22
----
-5803

skipif mysql # not compatible
query I rowsort label-4359
SELECT + 88 * + COUNT ( ALL - + 53 ) * - 65 + - 61 + - 22
----
-5803

query II rowsort
SELECT DISTINCT + - 53 AS col1, + 24 AS col1
----
-53
24

query II rowsort
SELECT ALL - 37 AS col0, 6
----
-37
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT - CAST( NULL AS SIGNED ) / + 31 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT - CAST ( NULL AS INTEGER ) / + 31 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4363
SELECT - 58 + + NULLIF ( - 95, - 53 * - COUNT( * ) * - + CAST( 44 AS SIGNED ) - - 43 ) AS col2, - 88 AS col1
----
-153
-88

skipif mysql # not compatible
query II rowsort label-4363
SELECT - 58 + + NULLIF ( - 95, - 53 * - COUNT ( * ) * - + CAST ( 44 AS INTEGER ) - - 43 ) AS col2, - 88 AS col1
----
-153
-88

query II rowsort
SELECT - 92 AS col0, + 25
----
-92
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4365
SELECT ALL 37 DIV - - ( + 64 ) - ( 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL 37 / - - ( + 64 ) - ( 39 ) AS col2
----
-39

query I rowsort
SELECT 60 - 45
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4367
SELECT ( 22 ) * - - 91 * + MIN( DISTINCT - ( - CAST( - 50 AS SIGNED ) ) )
----
-100100

skipif mysql # not compatible
query I rowsort label-4367
SELECT ( 22 ) * - - 91 * + MIN ( DISTINCT - ( - CAST ( - 50 AS INTEGER ) ) )
----
-100100

query I rowsort
SELECT ALL + + COALESCE ( + 34, - ( + 80 ) ) * + + 81 AS col2
----
2754

query I rowsort
SELECT DISTINCT + 0 * - 7 + ( 34 ) * 97 * - ( - 34 ) AS col2
----
112132

query II rowsort
SELECT - - 44 AS col0, + 88 + - + 24
----
44
64

query I rowsort
SELECT 2 - 40 + 72 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL COUNT( * ) * 54 col0
----
54

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL COUNT ( * ) * 54 col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT DISTINCT + COALESCE ( + MAX( + - 67 ), - CASE + 18 WHEN - CASE - 25 WHEN + + 13 THEN - 75 WHEN - 25 THEN + - 28 END + + 21 * - 30 THEN + 12 * 34 - MAX( - - 39 ) WHEN 49 THEN NULL ELSE NULL END ) + - ( - NULLIF ( 76, - CAST( + 67 AS SIGNED ) * 84 ) ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT + COALESCE ( + MAX ( + - 67 ), - CASE + 18 WHEN - CASE - 25 WHEN + + 13 THEN - 75 WHEN - 25 THEN + - 28 END + + 21 * - 30 THEN + 12 * 34 - MAX ( - - 39 ) WHEN 49 THEN NULL ELSE NULL END ) + - ( - NULLIF ( 76, - CAST ( + 67 AS INTEGER ) * 84 ) ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4374
SELECT ALL - 74 + COUNT( * ) AS col0, - NULLIF ( - - 2, - + ( + + 99 ) ) AS col0
----
-73
-2

skipif mysql # not compatible
query II rowsort label-4374
SELECT ALL - 74 + COUNT ( * ) AS col0, - NULLIF ( - - 2, - + ( + + 99 ) ) AS col0
----
-73
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT 31 + - 7 AS col2, COUNT( * )
----
24
1

skipif mysql # not compatible
query II rowsort label-4375
SELECT 31 + - 7 AS col2, COUNT ( * )
----
24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL + 10 + + - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + 10 + + - COUNT ( * ) AS col2
----
9

query I rowsort
SELECT 1 + - 67 col0
----
-66

query I rowsort
SELECT 11 + + - 51 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT 20 + + COUNT( - - 68 ) + - 79 * - 0
----
21

skipif mysql # not compatible
query I rowsort label-4379
SELECT 20 + + COUNT ( - - 68 ) + - 79 * - 0
----
21

query I rowsort
SELECT DISTINCT + 66 + + 52
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL - 11 + + COALESCE ( - + 72, - - MIN( DISTINCT - 12 ) * + 18 )
----
-83

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - 11 + + COALESCE ( - + 72, - - MIN ( DISTINCT - 12 ) * + 18 )
----
-83

query I rowsort
SELECT DISTINCT + 57 * - 78
----
-4446

query I rowsort
SELECT DISTINCT - 84 * - 38
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT - CASE - MIN( + 97 ) WHEN ( + + 92 ) THEN - 13 WHEN - 92 / - + MIN( 18 ) - 73 + + COALESCE ( - COUNT( * ), + 91 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT - CASE - MIN ( + 97 ) WHEN ( + + 92 ) THEN - 13 WHEN - 92 / - + MIN ( 18 ) - 73 + + COALESCE ( - COUNT ( * ), + 91 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT DISTINCT - ( 70 ) + - MAX( - - 36 ) * + 79
----
-2914

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT - ( 70 ) + - MAX ( - - 36 ) * + 79
----
-2914

query I rowsort
SELECT ALL - 48 - + 81 * - ( - 80 ) - 84 col2
----
-6612

query I rowsort
SELECT 72 + + 33
----
105

query I rowsort
SELECT DISTINCT - - COALESCE ( - NULLIF ( + ( + 27 ), - - 84 ), 43 ) col0
----
-27

query I rowsort
SELECT - 16 * + 19
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT + - 6 * + COUNT( * ) + - 65 + + 6 * - + 45 * + 29
----
-7901

skipif mysql # not compatible
query I rowsort label-4390
SELECT + - 6 * + COUNT ( * ) + - 65 + + 6 * - + 45 * + 29
----
-7901

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT 29 * + 61 + COUNT( * )
----
1770

skipif mysql # not compatible
query I rowsort label-4391
SELECT 29 * + 61 + COUNT ( * )
----
1770

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL - CASE MAX( 13 ) WHEN - + 30 THEN NULL ELSE MAX( DISTINCT 65 ) - - - 39 + - + 91 - - MAX( 7 ) + 99 * 5 END AS col0
----
-437

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL - CASE MAX ( 13 ) WHEN - + 30 THEN NULL ELSE MAX ( DISTINCT 65 ) - - - 39 + - + 91 - - MAX ( 7 ) + 99 * 5 END AS col0
----
-437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT ALL 26 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL 26 - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT COALESCE ( 10, 39, + 97 * 6 ) * - - 5
----
50

query II rowsort
SELECT - 74 + + 57 AS col0, 77 + 60 + - + 62
----
-17
75

query I rowsort
SELECT DISTINCT 44 * + 51 * - 72 + + - COALESCE ( - 4, + 76 ) + 57 - + - 70 + + 56 AS col0
----
-161381

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL - + COALESCE ( + 43, + 72 - - COUNT( * ) + - 46 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - + COALESCE ( + 43, + 72 - - COUNT ( * ) + - 46 ) AS col0
----
-43

query I rowsort
SELECT DISTINCT + NULLIF ( - - 44, - + 34 ) AS col1
----
44

query I rowsort
SELECT 44 + + - 20 + - - 25
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT 33 + 55 * - COUNT( 56 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT 33 + 55 * - COUNT ( 56 ) AS col1
----
-22

query I rowsort
SELECT DISTINCT 83 + 47 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL COUNT( * ) + - 33 + SUM( ALL - 45 ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL COUNT ( * ) + - 33 + SUM ( ALL - 45 ) col2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4403
SELECT DISTINCT 0 DIV - + COUNT( * ) * + 34
----
0

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT 0 / - + COUNT ( * ) * + 34
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4404
SELECT 31 DIV COUNT( - 36 ) * 52 - + 66 col2
----
1546

skipif mysql # not compatible
query I rowsort label-4404
SELECT 31 / COUNT ( - 36 ) * 52 - + 66 col2
----
1546

query I rowsort
SELECT ALL 35 * - 2 * + 46 * 9 col1
----
-28980

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL COUNT( * ) + - ( - 11 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL COUNT ( * ) + - ( - 11 ) AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4407
SELECT COUNT( * ) DIV - 28 * + NULLIF ( - 4, 99 DIV - 6 * + 75 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4407
SELECT COUNT ( * ) / - 28 * + NULLIF ( - 4, 99 / - 6 * + 75 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT COUNT( * ) * - - 8 * - + COUNT( DISTINCT + - 27 )
----
-8

skipif mysql # not compatible
query I rowsort label-4408
SELECT COUNT ( * ) * - - 8 * - + COUNT ( DISTINCT + - 27 )
----
-8

query I rowsort
SELECT ALL + 79 + - + 45
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT COUNT( * ) + 75 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4410
SELECT COUNT ( * ) + 75 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT 20 + MIN( DISTINCT - 15 ) + + 23 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4411
SELECT 20 + MIN ( DISTINCT - 15 ) + + 23 AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT ALL - 80 - - 46 - ( MIN( DISTINCT CAST( - + 21 AS SIGNED ) ) ) * ( + - CAST( NULL AS SIGNED ) ) / 10 + ( 28 ) + + - 94 + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL - 80 - - 46 - ( MIN ( DISTINCT CAST ( - + 21 AS INTEGER ) ) ) * ( + - CAST ( NULL AS INTEGER ) ) / 10 + ( 28 ) + + - 94 + 19 AS col0
----
NULL

query I rowsort
SELECT 26 * + 86 AS col1
----
2236

onlyif mysql # aggregate syntax: 
query II rowsort label-4414
SELECT - 4 AS col2, COUNT( * ) * 10 AS col0
----
-4
10

skipif mysql # not compatible
query II rowsort label-4414
SELECT - 4 AS col2, COUNT ( * ) * 10 AS col0
----
-4
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT COALESCE ( + - 72, + - 11 + COUNT( * ) * - - 53, + 90 + 6 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4415
SELECT COALESCE ( + - 72, + - 11 + COUNT ( * ) * - - 53, + 90 + 6 ) AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4416
SELECT COUNT( * ) / + CAST( NULL AS DECIMAL ) + - 65 - ( + - ( - 14 ) ) + + - 86 - - 7 - CAST( NULL AS SIGNED ) + - 27 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT COUNT ( * ) / + CAST ( NULL AS REAL ) + - 65 - ( + - ( - 14 ) ) + + - 86 - - 7 - CAST ( NULL AS INTEGER ) + - 27 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT - 91 + - CAST( NULL AS SIGNED ) - + - 70 / - 85 + - + 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT - 91 + - CAST ( NULL AS INTEGER ) - + - 70 / - 85 + - + 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4418
SELECT ALL 50 * + - COUNT( * ) - + 18 col0, 13 col0
----
-68
13

skipif mysql # not compatible
query II rowsort label-4418
SELECT ALL 50 * + - COUNT ( * ) - + 18 col0, 13 col0
----
-68
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL - SUM( DISTINCT + 53 ) * 62 + + - 14 AS col2
----
-3300

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - SUM ( DISTINCT + 53 ) * 62 + + - 14 AS col2
----
-3300

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4420
SELECT - 13 DIV 85 * 9 AS col0, + NULLIF ( - 43, 22 DIV - ( + COUNT( * ) ) ) * + CASE + 15 WHEN + - 75 THEN + + 76 * - 60 * 96 - - 17 - + COUNT( * ) + COUNT( * ) WHEN + 19 - + 35 + CASE + COUNT( * ) WHEN 63 THEN - 21 + AVG ( + 21 ) END THEN NULL END + 81
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4420
SELECT - 13 / 85 * 9 AS col0, + NULLIF ( - 43, 22 / - ( + COUNT ( * ) ) ) * + CASE + 15 WHEN + - 75 THEN + + 76 * - 60 * 96 - - 17 - + COUNT ( * ) + COUNT ( * ) WHEN + 19 - + 35 + CASE + COUNT ( * ) WHEN 63 THEN - 21 + AVG ( + 21 ) END THEN NULL END + 81
----
0
NULL

query I rowsort
SELECT ALL - 38 * - 43 col1
----
1634

query II rowsort
SELECT + ( - ( + - 56 ) ) col1, - 53 AS col1
----
56
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT - - 20 * - 79 + - ( COUNT( * ) )
----
-1581

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - - 20 * - 79 + - ( COUNT ( * ) )
----
-1581

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT + SUM( DISTINCT + 91 ) col2
----
91

skipif mysql # not compatible
query I rowsort label-4424
SELECT + SUM ( DISTINCT + 91 ) col2
----
91

query I rowsort
SELECT - + 83 * - - 37 AS col1
----
-3071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4426
SELECT - SUM( + - CAST( - 30 AS SIGNED ) ) * - 10
----
300

skipif mysql # not compatible
query I rowsort label-4426
SELECT - SUM ( + - CAST ( - 30 AS INTEGER ) ) * - 10
----
300

query I rowsort
SELECT + 63 * 4
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-4428
SELECT - 16 DIV + 54 col1
----
0

skipif mysql # not compatible
query I rowsort label-4428
SELECT - 16 / + 54 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL - - COUNT( 82 ) * 21 * + COALESCE ( + 11, - 11, - 27 * + MAX( DISTINCT + 38 ) + + 36, + 96 ) + 64 AS col0
----
295

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - - COUNT ( 82 ) * 21 * + COALESCE ( + 11, - 11, - 27 * + MAX ( DISTINCT + 38 ) + + 36, + 96 ) + 64 AS col0
----
295

query II rowsort
SELECT 47 AS col2, 96
----
47
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL 53 * + 78 + + + COUNT( - 75 ) AS col2
----
4135

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL 53 * + 78 + + + COUNT ( - 75 ) AS col2
----
4135

query I rowsort
SELECT ALL - 10 + - 90 AS col1
----
-100

query I rowsort
SELECT DISTINCT 59 * - 53 * + - 17
----
53159

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT MAX( - + ( - - 71 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-4434
SELECT MAX ( - + ( - - 71 ) )
----
-71

query I rowsort
SELECT ALL 94 * - - 3 AS col1
----
282

query I rowsort
SELECT - 0 + + - 0
----
0

query I rowsort
SELECT + 76 + + 9 AS col2
----
85

query II rowsort
SELECT 61 AS col2, 57 col1
----
61
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL - MIN( ALL - + ( 11 ) ) * + 67 * + 36 + 42 * - - COUNT( ALL - 49 ) AS col1
----
26574

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL - MIN ( ALL - + ( 11 ) ) * + 67 * + 36 + 42 * - - COUNT ( ALL - 49 ) AS col1
----
26574

query I rowsort
SELECT + 70 + - 63
----
7

query II rowsort
SELECT 42 AS col2, - 63
----
42
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT + 22 + - + COUNT( * ) DIV 45 - + COUNT( * ) - + - NULLIF ( + COUNT( * ), - ( - COALESCE ( - + 76, 49 ) ) ) * 22 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4442
SELECT + 22 + - + COUNT ( * ) / 45 - + COUNT ( * ) - + - NULLIF ( + COUNT ( * ), - ( - COALESCE ( - + 76, 49 ) ) ) * 22 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL COUNT( * ) - 94 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL COUNT ( * ) - 94 AS col1
----
-93

query I rowsort
SELECT + 34 * + 60
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT + COUNT( * ) * - - 54 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4445
SELECT + COUNT ( * ) * - - 54 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-4446
SELECT DISTINCT NULLIF ( + 25, ( + CASE - 59 WHEN + - 16 + - + 55 THEN + MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) END ) ) DIV + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT NULLIF ( + 25, ( + CASE - 59 WHEN + - 16 + - + 55 THEN + MIN ( DISTINCT - CAST ( NULL AS REAL ) ) END ) ) / + COUNT ( * ) AS col2
----
25

query I rowsort
SELECT + 10 + - 22 AS col1
----
-12

query I rowsort
SELECT - NULLIF ( - - 16, 17 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + 86 + + COUNT( * ) + 91 AS col2
----
178

skipif mysql # not compatible
query I rowsort label-4449
SELECT + 86 + + COUNT ( * ) + 91 AS col2
----
178

query II rowsort
SELECT DISTINCT 8 AS col0, 27 AS col0
----
8
27

query I rowsort
SELECT + 63 + - - 26 + - 7 + + - 70 + NULLIF ( + 38, + 91 ) AS col1
----
50

query I rowsort
SELECT ALL - 49 - - 48
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT + 80 * + NULLIF ( - + CAST( 92 AS SIGNED ), 38 ) * - - 51 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT + 80 * + NULLIF ( - + CAST ( 92 AS INTEGER ), 38 ) * - - 51 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL + MIN( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + MIN ( + 51 )
----
51

query I rowsort
SELECT ALL + 89 * - 94 * - 69
----
577254

query I rowsort
SELECT + + 78 + + - ( 88 ) + + - 83
----
-93

query II rowsort
SELECT ALL + 89, - 21 AS col2
----
89
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4458
SELECT + - 32, - CAST( + 34 AS SIGNED ) + + ( + - COUNT( * ) ) AS col1
----
-32
-35

skipif mysql # not compatible
query II rowsort label-4458
SELECT + - 32, - CAST ( + 34 AS INTEGER ) + + ( + - COUNT ( * ) ) AS col1
----
-32
-35

query I rowsort
SELECT - - 4 + + 14 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT ALL - CAST( COALESCE ( - - 59, + 18, + 31 + + 48 + - 89 * - 95 - + 38 / - 50 * - ( - 48 ) + SUM( + 49 ) + - AVG ( - 3 ) - - - 37 / 34 * + + 17 ) AS SIGNED ) * 32 * + + 44 col2
----
-83072

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL - CAST ( COALESCE ( - - 59, + 18, + 31 + + 48 + - 89 * - 95 - + 38 / - 50 * - ( - 48 ) + SUM ( + 49 ) + - AVG ( - 3 ) - - - 37 / 34 * + + 17 ) AS INTEGER ) * 32 * + + 44 col2
----
-83072

query I rowsort
SELECT + 50 * - 83
----
-4150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4462
SELECT + - 54 * + 20 + 1 + 8 - + CAST( NULL AS SIGNED ) + + + COUNT( * ) * + 12 AS col2, + 44 * COUNT( * ) - + 73 AS col2
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-4462
SELECT + - 54 * + 20 + 1 + 8 - + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + 12 AS col2, + 44 * COUNT ( * ) - + 73 AS col2
----
NULL
-29

query II rowsort
SELECT + 60 AS col0, + 85 + - 61
----
60
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4464
SELECT + 9 DIV - 25 + 27 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4464
SELECT + 9 / - 25 + 27 AS col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-4465
SELECT DISTINCT + 32 AS col0, 86 * + - COUNT( * ) AS col2
----
32
-86

skipif mysql # not compatible
query II rowsort label-4465
SELECT DISTINCT + 32 AS col0, 86 * + - COUNT ( * ) AS col2
----
32
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL - - COUNT( * ) * 95
----
95

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL - - COUNT ( * ) * 95
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + MIN( 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4467
SELECT + MIN ( 48 ) AS col0
----
48

query I rowsort
SELECT DISTINCT 63 * + 3 + + 20 AS col2
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT + ( COALESCE ( + 17, - + NULLIF ( - + 52, + COUNT( NULLIF ( + 65, + 19 ) ) ) ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4469
SELECT + ( COALESCE ( + 17, - + NULLIF ( - + 52, + COUNT ( NULLIF ( + 65, + 19 ) ) ) ) ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL + + 51 * - COUNT( * ) * + + 32 * + 66 col2
----
-107712

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + + 51 * - COUNT ( * ) * + + 32 * + 66 col2
----
-107712

query I rowsort
SELECT - 89 * 30 * - 11 AS col2
----
29370

query I rowsort
SELECT DISTINCT + - 0 * 88 AS col1
----
0

query I rowsort
SELECT NULLIF ( + 21, 77 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT - 53 * + - CAST( - 71 AS SIGNED )
----
-3763

skipif mysql # not compatible
query I rowsort label-4474
SELECT - 53 * + - CAST ( - 71 AS INTEGER )
----
-3763

query II rowsort
SELECT ALL ( + + 74 ), 74
----
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT - CASE - SUM( DISTINCT 89 ) WHEN - ( ( ( + 14 ) ) ) + - 39 THEN + + 85 * + - 88 END * - COUNT( * ) - - + 75 + - 88 + 17 * - - COALESCE ( 83, - + 41, + COUNT( * ) + + - COUNT( * ), + 14 * - 92 ) / - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT - CASE - SUM ( DISTINCT 89 ) WHEN - ( ( ( + 14 ) ) ) + - 39 THEN + + 85 * + - 88 END * - COUNT ( * ) - - + 75 + - 88 + 17 * - - COALESCE ( 83, - + 41, + COUNT ( * ) + + - COUNT ( * ), + 14 * - 92 ) / - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - NULLIF ( - - MAX( ( - COALESCE ( 37, - 83, + 52 ) ) ), 32 )
----
37

skipif mysql # not compatible
query I rowsort label-4477
SELECT - NULLIF ( - - MAX ( ( - COALESCE ( 37, - 83, + 52 ) ) ), 32 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + 36 * - 9 * COUNT( DISTINCT + 43 ) - + COALESCE ( - 7, + CASE 44 WHEN + 64 THEN + 20 * 40 * + + 63 + - - 75 + - 18 END, - + 69, + + 45 + 6 ) AS col0
----
-317

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + 36 * - 9 * COUNT ( DISTINCT + 43 ) - + COALESCE ( - 7, + CASE 44 WHEN + 64 THEN + 20 * 40 * + + 63 + - - 75 + - 18 END, - + 69, + + 45 + 6 ) AS col0
----
-317

query I rowsort
SELECT - 58 * - 35
----
2030

query I rowsort
SELECT - CASE + 73 WHEN - 38 / + 93 * - 39 THEN - ( + 94 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4481
SELECT MIN( DISTINCT + 56 ) AS col2, - 33 AS col1
----
56
-33

skipif mysql # not compatible
query II rowsort label-4481
SELECT MIN ( DISTINCT + 56 ) AS col2, - 33 AS col1
----
56
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT COUNT( DISTINCT - 4 ) * + 82 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4482
SELECT COUNT ( DISTINCT - 4 ) * + 82 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4483
SELECT DISTINCT + 35 * COALESCE ( + COALESCE ( - - COUNT( * ), + 16 * - COUNT( * ) - CAST( + + ( - + 59 ) AS SIGNED ) + + COUNT( * ) + - 52 * - + COALESCE ( + COUNT( - CAST( NULL AS SIGNED ) ), + 24, 7 * - - 62 + 40 ) ), 16 * - + 78 * + + 0 * - - 80 - - 39 * ( COUNT( * ) ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + 35 * COALESCE ( + COALESCE ( - - COUNT ( * ), + 16 * - COUNT ( * ) - CAST ( + + ( - + 59 ) AS INTEGER ) + + COUNT ( * ) + - 52 * - + COALESCE ( + COUNT ( - CAST ( NULL AS INTEGER ) ), + 24, 7 * - - 62 + 40 ) ), 16 * - + 78 * + + 0 * - - 80 - - 39 * ( COUNT ( * ) ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT + NULLIF ( + 25, + 22 ) + - SUM( + 93 ) + - 8
----
-76

skipif mysql # not compatible
query I rowsort label-4484
SELECT + NULLIF ( + 25, + 22 ) + - SUM ( + 93 ) + - 8
----
-76

query I rowsort
SELECT 47 * - 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL CASE 63 WHEN - NULLIF ( + CAST( + 75 AS SIGNED ), - 82 ) - + + 49 THEN NULL ELSE 83 END + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL CASE 63 WHEN - NULLIF ( + CAST ( + 75 AS INTEGER ), - 82 ) - + + 49 THEN NULL ELSE 83 END + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT - 62 + + 76 DIV 77 DIV - 1 - 51 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-4487
SELECT - 62 + + 76 / 77 / - 1 - 51 AS col2
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4488
SELECT COUNT( * ) DIV + - COALESCE ( 21, COALESCE ( + - ( + 0 ), - - 68 ) * + COUNT( * ) + - 60 + + + 76 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT COUNT ( * ) / + - COALESCE ( 21, COALESCE ( + - ( + 0 ), - - 68 ) * + COUNT ( * ) + - 60 + + + 76 ) col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT + + CAST( 52 AS SIGNED ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4489
SELECT + + CAST ( 52 AS INTEGER ) AS col2
----
52

query I rowsort
SELECT ALL 54 + + - 36 * - 86 AS col0
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT ALL - 12 + - 16 + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL - 12 + - 16 + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT DISTINCT - MIN( - 66 ) * - + 59 - - CASE - 27 WHEN + - 18 THEN + 8 END + + 60 / + + 10 * - + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT - MIN ( - 66 ) * - + 59 - - CASE - 27 WHEN + - 18 THEN + 8 END + + 60 / + + 10 * - + 1 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4493
SELECT DISTINCT CAST( ( + + 46 ) AS SIGNED ) + + 62 * - - 97 + + + 84 DIV - ( - + 66 )
----
6061

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT CAST ( ( + + 46 ) AS INTEGER ) + + 62 * - - 97 + + + 84 / - ( - + 66 )
----
6061

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT - 19 * + + COUNT( * ) * + 72 - 78 + + 73 * + 66 + + - ( + - COUNT( * ) ) * - - 72
----
3444

skipif mysql # not compatible
query I rowsort label-4494
SELECT - 19 * + + COUNT ( * ) * + 72 - 78 + + 73 * + 66 + + - ( + - COUNT ( * ) ) * - - 72
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT DISTINCT + ( - 14 ) * + 21 + + 92 * + CASE + + 6 WHEN + COUNT( * ) THEN 42 * + - CASE - + ( + - 81 ) WHEN + - COUNT( + 6 ) + 41 THEN - + ( 74 ) * - 74 WHEN + + 80 THEN NULL WHEN + 55 THEN - + NULLIF ( - 32, 24 + + 39 * 93 ) END + + 79 END * - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT + ( - 14 ) * + 21 + + 92 * + CASE + + 6 WHEN + COUNT ( * ) THEN 42 * + - CASE - + ( + - 81 ) WHEN + - COUNT ( + 6 ) + 41 THEN - + ( 74 ) * - 74 WHEN + + 80 THEN NULL WHEN + 55 THEN - + NULLIF ( - 32, 24 + + 39 * 93 ) END + + 79 END * - 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT COUNT( DISTINCT + + 69 ) * - 30
----
-30

skipif mysql # not compatible
query I rowsort label-4496
SELECT COUNT ( DISTINCT + + 69 ) * - 30
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4497
SELECT ALL - 11 - - COALESCE ( - CASE + - 32 WHEN - - 76 THEN - 28 DIV + 83 * + - ( - 34 ) END, + 40 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL - 11 - - COALESCE ( - CASE + - 32 WHEN - - 76 THEN - 28 / + 83 * + - ( - 34 ) END, + 40 ) AS col1
----
29

query I rowsort
SELECT - 25 * + - ( - + 83 ) / - CASE + + ( + + 98 ) WHEN + 16 THEN + + 47 WHEN 54 THEN 64 * + 22 + - 39 - + 49 END + + ( - - 19 ) - + 6
----
NULL

query I rowsort
SELECT DISTINCT + 38 * - 7 * 27 * - 72
----
517104

query I rowsort
SELECT ( - 73 ) + + 18
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT DISTINCT + ( - 95 ) * - 11 * - + 61 * + + MIN( ALL + 54 ) AS col2
----
-3442230

skipif mysql # not compatible
query I rowsort label-4501
SELECT DISTINCT + ( - 95 ) * - 11 * - + 61 * + + MIN ( ALL + 54 ) AS col2
----
-3442230

query II rowsort
SELECT 48 * + + 75 + 38 col1, + 80
----
3638
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4503
SELECT CAST( NULL AS DECIMAL ) * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT CAST ( NULL AS REAL ) * 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT COUNT( DISTINCT + ( ( - - 15 ) ) ) * + + 39
----
39

skipif mysql # not compatible
query I rowsort label-4504
SELECT COUNT ( DISTINCT + ( ( - - 15 ) ) ) * + + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL + 21 * + MAX( + 50 ) AS col2
----
1050

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + 21 * + MAX ( + 50 ) AS col2
----
1050

query I rowsort
SELECT 36 + - + 28
----
8

query II rowsort
SELECT ALL 45, 35 AS col1
----
45
35

query I rowsort
SELECT DISTINCT - 76 * 95 AS col0
----
-7220

query II rowsort
SELECT - 1 AS col0, - 43 AS col1
----
-1
-43

query I rowsort
SELECT 65 * + 59
----
3835

query I rowsort
SELECT 42 * - 4 col1
----
-168

query I rowsort
SELECT 80 + 38
----
118

query I rowsort
SELECT DISTINCT - + 13 + + 45 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - COUNT( * ) + 0 col1
----
-1

skipif mysql # not compatible
query I rowsort label-4514
SELECT - COUNT ( * ) + 0 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL - - 63 + - MIN( 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL - - 63 + - MIN ( 62 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT CASE 41 WHEN - 35 * - 79 * - COUNT( * ) + - - COUNT( * ) + 88 * - CAST( NULL AS SIGNED ) * COUNT( * ) - - - 15 THEN - + NULLIF ( - + COUNT( * ), 83 * + - ( + - 53 ) + - 60 ) WHEN + + 66 / + CAST( ( - + 71 ) AS SIGNED ) * + - 48 THEN NULL ELSE NULL END + - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT CASE 41 WHEN - 35 * - 79 * - COUNT ( * ) + - - COUNT ( * ) + 88 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) - - - 15 THEN - + NULLIF ( - + COUNT ( * ), 83 * + - ( + - 53 ) + - 60 ) WHEN + + 66 / + CAST ( ( - + 71 ) AS INTEGER ) * + - 48 THEN NULL ELSE NULL END + - 35 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT - CAST( - 66 AS SIGNED ) col1
----
66

skipif mysql # not compatible
query I rowsort label-4517
SELECT - CAST ( - 66 AS INTEGER ) col1
----
66

query I rowsort
SELECT DISTINCT - NULLIF ( + - 92, - 51 )
----
92

query I rowsort
SELECT DISTINCT 94 + + 65 AS col0
----
159

query II rowsort
SELECT ALL + + 34 + - 68 * + 49 AS col0, + 7
----
-3298
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4521
SELECT ALL - - 71 + + + 33 - + NULLIF ( - - CAST( NULL AS SIGNED ), COUNT( * ) / - + 60 + CAST( NULL AS DECIMAL ) * SUM( - 96 ) ) + - 51 * + ( + 17 ) + + 74 * - 46 * + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - - 71 + + + 33 - + NULLIF ( - - CAST ( NULL AS INTEGER ), COUNT ( * ) / - + 60 + CAST ( NULL AS REAL ) * SUM ( - 96 ) ) + - 51 * + ( + 17 ) + + 74 * - 46 * + 45 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4522
SELECT - + 87 AS col1, CAST( NULL AS SIGNED ) * + 49 + + 23 AS col1
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-4522
SELECT - + 87 AS col1, CAST ( NULL AS INTEGER ) * + 49 + + 23 AS col1
----
-87
NULL

query I rowsort
SELECT ALL 22 + ( 1 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL COUNT( * ) + + 80 * 24 + - - 55 * - 42
----
-389

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL COUNT ( * ) + + 80 * 24 + - - 55 * - 42
----
-389

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL + + SUM( DISTINCT - 7 ) * + - ( + - ( - 29 ) ) col1
----
203

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + + SUM ( DISTINCT - 7 ) * + - ( + - ( - 29 ) ) col1
----
203

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4526
SELECT - CAST( NULL AS DECIMAL ) + + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT - CAST ( NULL AS REAL ) + + - 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4527
SELECT COALESCE ( 79, + + 91 * - ( - 0 ) ) * - + 21 + - 60 + + + 21 * + 67 + - - NULLIF ( - COALESCE ( 56, + + 45 ), - 81 ) * + CASE ( - COUNT( * ) ) WHEN + CASE 92 WHEN - 15 THEN 64 WHEN + 56 + + + CAST( ( 41 ) AS SIGNED ) * 70 THEN NULL END * CAST( NULL AS SIGNED ) THEN + 87 END - - CASE 91 + 36 * - 47 WHEN 43 - + 92 * 59 THEN 23 + + AVG ( ( 94 ) ) ELSE - 52 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT COALESCE ( 79, + + 91 * - ( - 0 ) ) * - + 21 + - 60 + + + 21 * + 67 + - - NULLIF ( - COALESCE ( 56, + + 45 ), - 81 ) * + CASE ( - COUNT ( * ) ) WHEN + CASE 92 WHEN - 15 THEN 64 WHEN + 56 + + + CAST ( ( 41 ) AS INTEGER ) * 70 THEN NULL END * CAST ( NULL AS INTEGER ) THEN + 87 END - - CASE 91 + 36 * - 47 WHEN 43 - + 92 * 59 THEN 23 + + AVG ( ( 94 ) ) ELSE - 52 END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT ALL CAST( NULL AS SIGNED ) * - 69 + - - CAST( - ( - - 18 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL CAST ( NULL AS INTEGER ) * - 69 + - - CAST ( - ( - - 18 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT - + 51 * + 48 - - COUNT( * ) - COUNT( * ) AS col1
----
-2448

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - + 51 * + 48 - - COUNT ( * ) - COUNT ( * ) AS col1
----
-2448

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + MAX( ALL - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-4530
SELECT + MAX ( ALL - 35 ) AS col2
----
-35

query II rowsort
SELECT ALL 65 * - + 34 AS col1, 19 AS col0
----
-2210
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT COALESCE ( + 70, - 73 * - + 27 - + 67 * SUM( DISTINCT - - 41 ) * - 21 * - COUNT( * ) + - NULLIF ( 86, 5 ) + + + 16 - - 71 * + 19 ) + + - CAST( + - 46 AS SIGNED )
----
116

skipif mysql # not compatible
query I rowsort label-4532
SELECT COALESCE ( + 70, - 73 * - + 27 - + 67 * SUM ( DISTINCT - - 41 ) * - 21 * - COUNT ( * ) + - NULLIF ( 86, 5 ) + + + 16 - - 71 * + 19 ) + + - CAST ( + - 46 AS INTEGER )
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4533
SELECT DISTINCT + ( + NULLIF ( COUNT( * ), 85 * - NULLIF ( - 90, - + 11 - - ( + + ( + ( CAST( NULL AS SIGNED ) ) ) ) ) * + 27 * - COUNT( * ) - + - COUNT( * ) + - - 53 + 77 + COUNT( * ) * - + 81 ) ) * + 80 DIV - - 74 - + CAST( - 68 AS SIGNED ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT + ( + NULLIF ( COUNT ( * ), 85 * - NULLIF ( - 90, - + 11 - - ( + + ( + ( CAST ( NULL AS INTEGER ) ) ) ) ) * + 27 * - COUNT ( * ) - + - COUNT ( * ) + - - 53 + 77 + COUNT ( * ) * - + 81 ) ) * + 80 / - - 74 - + CAST ( - 68 AS INTEGER ) AS col1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT 11 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT 11 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT 52 * - + 61 * - CAST( NULL AS SIGNED ) + - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT 52 * - + 61 * - CAST ( NULL AS INTEGER ) + - 70 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4536
SELECT CAST( - NULLIF ( + 88, - + 78 * + 38 + + 79 ) AS SIGNED ) + 34 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4536
SELECT CAST ( - NULLIF ( + 88, - + 78 * + 38 + + 79 ) AS INTEGER ) + 34 AS col2
----
-54

query I rowsort
SELECT ALL ( NULLIF ( + 46, + 18 ) ) * - CASE 47 WHEN - 69 THEN - - 66 ELSE NULL END
----
NULL

query II rowsort
SELECT - 17 + + + 29 AS col1, + 11 * - 75
----
12
-825

query I rowsort
SELECT ALL ( - 40 ) * 75 AS col2
----
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT DISTINCT + NULLIF ( COUNT( * ), + - 34 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT + NULLIF ( COUNT ( * ), + - 34 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4541
SELECT ALL - 90 + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL - 90 + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 67 * ( + 31 ) + 0 AS col0
----
-2077

onlyif mysql # aggregate syntax: 
query II rowsort label-4543
SELECT DISTINCT + 8 + + COALESCE ( 44, - 66, + - MAX( ALL - 13 ) ) * + 12 + CASE + 37 WHEN 32 + + + 70 THEN - - 50 WHEN - - 54 THEN NULL END + + 40 AS col0, 62 - - 20 AS col0
----
NULL
82

skipif mysql # not compatible
query II rowsort label-4543
SELECT DISTINCT + 8 + + COALESCE ( 44, - 66, + - MAX ( ALL - 13 ) ) * + 12 + CASE + 37 WHEN 32 + + + 70 THEN - - 50 WHEN - - 54 THEN NULL END + + 40 AS col0, 62 - - 20 AS col0
----
NULL
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL + COUNT( 24 )
----
1

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + COUNT ( 24 )
----
1

query I rowsort
SELECT - 57 * - + 11
----
627

query I rowsort
SELECT DISTINCT - 17 + 74 * + 82
----
6051

query I rowsort
SELECT ALL + NULLIF ( + - 22, + 68 + 8 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4548
SELECT - - 89 * - ( + - 13 ) * - 43 * + - 71 * - CAST( - MIN( - - 64 ) AS SIGNED )
----
226068544

skipif mysql # not compatible
query I rowsort label-4548
SELECT - - 89 * - ( + - 13 ) * - 43 * + - 71 * - CAST ( - MIN ( - - 64 ) AS INTEGER )
----
226068544

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT - + NULLIF ( 10, - MIN( - 89 ) + + + 67 ) * + 8 + COUNT( * ), + 89 AS col0
----
-79
89

skipif mysql # not compatible
query II rowsort label-4549
SELECT - + NULLIF ( 10, - MIN ( - 89 ) + + + 67 ) * + 8 + COUNT ( * ), + 89 AS col0
----
-79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT ALL - COUNT( * ) - - 3 col2
----
2

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL - COUNT ( * ) - - 3 col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4551
SELECT - + 54 + - CAST( + 69 AS SIGNED )
----
-123

skipif mysql # not compatible
query I rowsort label-4551
SELECT - + 54 + - CAST ( + 69 AS INTEGER )
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4552
SELECT - + COALESCE ( - 0, - 53, 45 * + + 4 ) / + CAST( NULL AS SIGNED ) * 42 - + - 49 + + + 98 AS col2, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4552
SELECT - + COALESCE ( - 0, - 53, 45 * + + 4 ) / + CAST ( NULL AS INTEGER ) * 42 - + - 49 + + + 98 AS col2, - COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT DISTINCT + 10 * + - COUNT( * ) * + COUNT( * ) + + 38 * + - 41 * 34 AS col0
----
-52982

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + 10 * + - COUNT ( * ) * + COUNT ( * ) + + 38 * + - 41 * 34 AS col0
----
-52982

onlyif mysql # aggregate syntax: 
query II rowsort label-4554
SELECT - 96 * - - COUNT( * ), + 72 col1
----
-96
72

skipif mysql # not compatible
query II rowsort label-4554
SELECT - 96 * - - COUNT ( * ), + 72 col1
----
-96
72

query I rowsort
SELECT ( + - 28 ) AS col2
----
-28

query I rowsort
SELECT - 18 * + - 95 AS col1
----
1710

query I rowsort
SELECT + 23 * + 39
----
897

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT 84 * 74 - 20 DIV - 50 AS col2
----
6216

skipif mysql # not compatible
query I rowsort label-4558
SELECT 84 * 74 - 20 / - 50 AS col2
----
6216

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT COALESCE ( NULLIF ( + 84, - MAX( ALL + ( - - 77 ) ) ), - - 54 )
----
84

skipif mysql # not compatible
query I rowsort label-4559
SELECT COALESCE ( NULLIF ( + 84, - MAX ( ALL + ( - - 77 ) ) ), - - 54 )
----
84

query I rowsort
SELECT 66 * - + 74 * 93 * 94 + - 42 col1
----
-42695970

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT ALL 82 DIV - + 26 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL 82 / - + 26 AS col1
----
-3

query II rowsort
SELECT ALL + 81 AS col2, 88 * + 81 - - 60
----
81
7188

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT + CASE + 50 WHEN - + 26 + + 37 + - 8 * + COUNT( * ) * - + COALESCE ( - 45, + 49 + - 94, - 87 + - + COUNT( * ) * - ( + 35 ) ) THEN NULL WHEN 76 THEN + + 6 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4563
SELECT + CASE + 50 WHEN - + 26 + + 37 + - 8 * + COUNT ( * ) * - + COALESCE ( - 45, + 49 + - 94, - 87 + - + COUNT ( * ) * - ( + 35 ) ) THEN NULL WHEN 76 THEN + + 6 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT ALL 66 * 3 * + 45 DIV 3 + - 27 + - 33 AS col1
----
2910

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL 66 * 3 * + 45 / 3 + - 27 + - 33 AS col1
----
2910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4565
SELECT ALL COUNT( - 70 ) * 68 DIV - + 40 + + 33 * - - 53 AS col1
----
1748

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL COUNT ( - 70 ) * 68 / - + 40 + + 33 * - - 53 AS col1
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT COUNT( * ) * - - COUNT( * ) * - 41 - 46
----
-87

skipif mysql # not compatible
query I rowsort label-4566
SELECT COUNT ( * ) * - - COUNT ( * ) * - 41 - 46
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT - 78 * 72 + + - COUNT( * ) - 38
----
-5655

skipif mysql # not compatible
query I rowsort label-4567
SELECT - 78 * 72 + + - COUNT ( * ) - 38
----
-5655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4568
SELECT COALESCE ( - COUNT( * ), + - 20 DIV + + 40 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4568
SELECT COALESCE ( - COUNT ( * ), + - 20 / + + 40 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + MIN( + - 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4569
SELECT + MIN ( + - 74 ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT MIN( ALL - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4570
SELECT MIN ( ALL - 7 ) AS col2
----
-7

query I rowsort
SELECT + 98 + - - 84 AS col0
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT DISTINCT + 88 * - COUNT( * ) + - + 60 DIV + 17 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT + 88 * - COUNT ( * ) + - + 60 / + 17 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL + ( COUNT( * ) ) * - 50 - - 45 + + + 65 * - 53 + - 35 AS col1
----
-3485

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL + ( COUNT ( * ) ) * - 50 - - 45 + + + 65 * - 53 + - 35 AS col1
----
-3485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT ALL - + CAST( - 84 AS SIGNED ) + 99 + 72 AS col1
----
255

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - + CAST ( - 84 AS INTEGER ) + 99 + 72 AS col1
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT + - 93 * - + 54 * - 91 * + COUNT( * )
----
-457002

skipif mysql # not compatible
query I rowsort label-4575
SELECT + - 93 * - + 54 * - 91 * + COUNT ( * )
----
-457002

onlyif mysql # DIV for integer division: 
query I rowsort label-4576
SELECT DISTINCT + 55 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT + 55 / - 92
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-4577
SELECT DISTINCT - 45, COUNT( ALL 19 ) AS col1, SUM( + 40 ) * - + 1 * - COUNT( * ) AS col0
----
-45
1
40

skipif mysql # not compatible
query III rowsort label-4577
SELECT DISTINCT - 45, COUNT ( ALL 19 ) AS col1, SUM ( + 40 ) * - + 1 * - COUNT ( * ) AS col0
----
-45
1
40

query I rowsort
SELECT - + ( ( + 73 ) ) + - 53
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL 61 - - + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL 61 - - + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4580
SELECT + COUNT( * ) DIV - + 1 DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4580
SELECT + COUNT ( * ) / - + 1 / + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT + 61 * + - 84 * - + 45 + 25 * 82 + - + 90 AS col1
----
232540

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT ALL + MAX( + 3 ) col1
----
3

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL + MAX ( + 3 ) col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4583
SELECT - + 17 DIV + COUNT( * ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4583
SELECT - + 17 / + COUNT ( * ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT 89 * + - COUNT( * ) + + 49 * ( - CASE + 20 WHEN ( 22 ) THEN + 11 * - - 48 + + 45 + - 85 * - 21 END ) / + 33 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT 89 * + - COUNT ( * ) + + 49 * ( - CASE + 20 WHEN ( 22 ) THEN + 11 * - - 48 + + 45 + - 85 * - 21 END ) / + 33 * - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - ( - - 80 ) AS col1, - 56 col1
----
-80
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT - 63 DIV - 89 + + + 99
----
99

skipif mysql # not compatible
query I rowsort label-4586
SELECT - 63 / - 89 + + + 99
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL + CAST( - 14 AS SIGNED ) + - COUNT( ALL - 29 )
----
-15

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + CAST ( - 14 AS INTEGER ) + - COUNT ( ALL - 29 )
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-4588
SELECT ALL - 84 AS col1, 20 + + - 61 DIV + 29 AS col2
----
-84
18

skipif mysql # not compatible
query II rowsort label-4588
SELECT ALL - 84 AS col1, 20 + + - 61 / + 29 AS col2
----
-84
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4589
SELECT 45 DIV 6 * - - COUNT( * ) DIV - SUM( ALL - CAST( + ( + 78 ) AS SIGNED ) ) DIV SUM( DISTINCT - + 46 ) * 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT 45 / 6 * - - COUNT ( * ) / - SUM ( ALL - CAST ( + ( + 78 ) AS INTEGER ) ) / SUM ( DISTINCT - + 46 ) * 23 AS col1
----
0

query I rowsort
SELECT ALL - 90 + - 38 AS col2
----
-128

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT 26 AS col2, COALESCE ( + + 33, + 76 ) * COUNT( * ) AS col1
----
26
33

skipif mysql # not compatible
query II rowsort label-4591
SELECT 26 AS col2, COALESCE ( + + 33, + 76 ) * COUNT ( * ) AS col1
----
26
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4592
SELECT 71 * - + 54 DIV COUNT( * ) AS col1
----
-3834

skipif mysql # not compatible
query I rowsort label-4592
SELECT 71 * - + 54 / COUNT ( * ) AS col1
----
-3834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4593
SELECT ALL - 45 AS col2, + SUM( 96 ) * + + 70 / - CASE + ( ( - + 57 ) ) WHEN COALESCE ( + - COUNT( * ), CAST( NULL AS SIGNED ) * + + COUNT( * ) ) * - 90 + - MAX( DISTINCT + 42 ) * - 16 * SUM( - 44 ) + MIN( DISTINCT - + 24 ) * COUNT( * ) + + + 8 THEN 63 * + + 36 END
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-4593
SELECT ALL - 45 AS col2, + SUM ( 96 ) * + + 70 / - CASE + ( ( - + 57 ) ) WHEN COALESCE ( + - COUNT ( * ), CAST ( NULL AS INTEGER ) * + + COUNT ( * ) ) * - 90 + - MAX ( DISTINCT + 42 ) * - 16 * SUM ( - 44 ) + MIN ( DISTINCT - + 24 ) * COUNT ( * ) + + + 8 THEN 63 * + + 36 END
----
-45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT DISTINCT 27 + + MIN( 74 ) col2
----
101

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT 27 + + MIN ( 74 ) col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT DISTINCT - NULLIF ( + + COUNT( * ), 2 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT - NULLIF ( + + COUNT ( * ), 2 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4597
SELECT ALL + - 27 DIV 9 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL + - 27 / 9 AS col1
----
-3

query II rowsort
SELECT ALL 91 AS col1, ( + 10 )
----
91
10

query I rowsort
SELECT 39 * 54 AS col1
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT - ( - 71 ) DIV - 43
----
-1

skipif mysql # not compatible
query I rowsort label-4600
SELECT - ( - 71 ) / - 43
----
-1

query I rowsort
SELECT + 71 * - - 29 col1
----
2059

query I rowsort
SELECT 19 - - 80 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT + COUNT( + - 78 ) * - MAX( + 20 ) * + 37
----
-740

skipif mysql # not compatible
query I rowsort label-4603
SELECT + COUNT ( + - 78 ) * - MAX ( + 20 ) * + 37
----
-740

onlyif mysql # aggregate syntax: 
query II rowsort label-4604
SELECT - - 11, 76 * ( - + 43 ) + NULLIF ( 59, COUNT( DISTINCT + + 91 ) ) AS col2
----
11
-3209

skipif mysql # not compatible
query II rowsort label-4604
SELECT - - 11, 76 * ( - + 43 ) + NULLIF ( 59, COUNT ( DISTINCT + + 91 ) ) AS col2
----
11
-3209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT ALL - 32 * + CAST( - 36 AS SIGNED ) AS col1
----
1152

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - 32 * + CAST ( - 36 AS INTEGER ) AS col1
----
1152

query I rowsort
SELECT - 17 * + 27
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT - 87 * + COUNT( * ) + - 87 * + 64
----
-5655

skipif mysql # not compatible
query I rowsort label-4607
SELECT - 87 * + COUNT ( * ) + - 87 * + 64
----
-5655

onlyif mysql # aggregate syntax: 
query II rowsort label-4608
SELECT ALL 32, + COUNT( * ) + + 94 - + + 93 * - 21 * - 52 AS col0
----
32
-101461

skipif mysql # not compatible
query II rowsort label-4608
SELECT ALL 32, + COUNT ( * ) + + 94 - + + 93 * - 21 * - 52 AS col0
----
32
-101461

query I rowsort
SELECT - 45 + - 5 AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4610
SELECT DISTINCT + 76 + - 85 + - 73 + AVG ( DISTINCT - 97 ) + - 57 * - 95 * - ( - + NULLIF ( - + NULLIF ( + COALESCE ( + MAX( ALL + CAST( + + ( 84 ) AS SIGNED ) ), + 49 / + + 52 + - 22 * + - 58 * - - 14 + 65 ), - + 23 ), + CAST( NULL AS SIGNED ) ) ) * + COUNT( * ) * + 13 * - 28 * 93 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT + 76 + - 85 + - 73 + AVG ( DISTINCT - 97 ) + - 57 * - 95 * - ( - + NULLIF ( - + NULLIF ( + COALESCE ( + MAX ( ALL + CAST ( + + ( 84 ) AS INTEGER ) ), + 49 / + + 52 + - 22 * + - 58 * - - 14 + 65 ), - + 23 ), + CAST ( NULL AS INTEGER ) ) ) * + COUNT ( * ) * + 13 * - 28 * 93 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4611
SELECT ALL - 3 + - + 86 + - 78 * - ( + 4 ) + - - COALESCE ( 70, + ( - 11 ) ) * 36 + - 44 * - COUNT( * ) AS col1, 10 * + SUM( DISTINCT 17 )
----
2787
170

skipif mysql # not compatible
query II rowsort label-4611
SELECT ALL - 3 + - + 86 + - 78 * - ( + 4 ) + - - COALESCE ( 70, + ( - 11 ) ) * 36 + - 44 * - COUNT ( * ) AS col1, 10 * + SUM ( DISTINCT 17 )
----
2787
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT + COUNT( * ) DIV + CAST( - 62 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + COUNT ( * ) / + CAST ( - 62 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT DISTINCT 5 + - 93 * 75
----
-6970

query I rowsort
SELECT + 8 * 93 + + 31
----
775

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT 81 DIV - 83 * - 66
----
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT 81 / - 83 * - 66
----
0

query I rowsort
SELECT ALL + 58 + + - 34 * - 14 * - 59
----
-28026

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL - ( - CASE + + NULLIF ( 37, + + 3 - - - 71 - - + 32 + 2 ) WHEN CASE + MAX( ALL - 74 ) WHEN - 70 + - + 5 THEN 37 + - 91 * + 30 END THEN NULL WHEN - 97 + - 46 THEN - 21 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - ( - CASE + + NULLIF ( 37, + + 3 - - - 71 - - + 32 + 2 ) WHEN CASE + MAX ( ALL - 74 ) WHEN - 70 + - + 5 THEN 37 + - 91 * + 30 END THEN NULL WHEN - 97 + - 46 THEN - 21 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT 71 + + 11 DIV - - 9 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4618
SELECT 71 + + 11 / - - 9 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL 4 + - - 66 + - 82 * + 95 + - + COUNT( * ) AS col1
----
-7721

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL 4 + - - 66 + - 82 * + 95 + - + COUNT ( * ) AS col1
----
-7721

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT ALL + 68 * + 96 DIV + + 8
----
816

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL + 68 * + 96 / + + 8
----
816

query I rowsort
SELECT - 8 * 52 - + - 65 AS col2
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT 8 * + 86 + - + COUNT( * ) + + + 43 AS col1
----
730

skipif mysql # not compatible
query I rowsort label-4622
SELECT 8 * + 86 + - + COUNT ( * ) + + + 43 AS col1
----
730

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT 57 * - 84 * + SUM( 84 )
----
-402192

skipif mysql # not compatible
query I rowsort label-4623
SELECT 57 * - 84 * + SUM ( 84 )
----
-402192

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + + 86 * + 63 + - 66 * - MAX( - 24 ) * + + 87 AS col0
----
-132390

skipif mysql # not compatible
query I rowsort label-4624
SELECT + + 86 * + 63 + - 66 * - MAX ( - 24 ) * + + 87 AS col0
----
-132390

query II rowsort
SELECT + 69 * 30 AS col0, 31 AS col1
----
2070
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT COUNT( * ) + - 70 + 47 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4626
SELECT COUNT ( * ) + - 70 + 47 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT + CAST( NULL AS SIGNED ) + + CASE + 23 WHEN - 10 / 2 * - - 60 + - COUNT( * ) + + 19 THEN + 1 * - 4 ELSE NULL END * + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT + CAST ( NULL AS INTEGER ) + + CASE + 23 WHEN - 10 / 2 * - - 60 + - COUNT ( * ) + + 19 THEN + 1 * - 4 ELSE NULL END * + 44 AS col0
----
NULL

query I rowsort
SELECT ALL 66 * - COALESCE ( + + 95, 30 * - 13 + 8 ) AS col1
----
-6270

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT - 35 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT - 35 / - 56
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT DISTINCT + 45 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT + 45 / 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT + 23 * - COUNT( * ) + + + 20 + - - 76 * - 14 + 8 * - 33
----
-1331

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + 23 * - COUNT ( * ) + + + 20 + - - 76 * - 14 + 8 * - 33
----
-1331

query I rowsort
SELECT 3 + 21 AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT COALESCE ( + 69, + + 21 * - + 59 - - + 63 * - COUNT( * ) ) DIV + + 59
----
1

skipif mysql # not compatible
query I rowsort label-4633
SELECT COALESCE ( + 69, + + 21 * - + 59 - - + 63 * - COUNT ( * ) ) / + + 59
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT - MAX( DISTINCT - + 29 ) + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-4634
SELECT - MAX ( DISTINCT - + 29 ) + COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4635
SELECT ALL + COUNT( * ) * - 90 AS col1, + 19 AS col1
----
-90
19

skipif mysql # not compatible
query II rowsort label-4635
SELECT ALL + COUNT ( * ) * - 90 AS col1, + 19 AS col1
----
-90
19

query I rowsort
SELECT - ( - 57 ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT + 89 + + NULLIF ( + + COALESCE ( SUM( DISTINCT + + 30 ), - 82 * + 53 ), - 80 ) * + 6
----
269

skipif mysql # not compatible
query I rowsort label-4637
SELECT + 89 + + NULLIF ( + + COALESCE ( SUM ( DISTINCT + + 30 ), - 82 * + 53 ), - 80 ) * + 6
----
269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT DISTINCT - + 15 + + ( - 56 ) + + COALESCE ( 82, + CAST( NULL AS SIGNED ) )
----
11

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT - + 15 + + ( - 56 ) + + COALESCE ( 82, + CAST ( NULL AS INTEGER ) )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4639
SELECT ALL + 60 * + 60 * COUNT( * ) * COUNT( * ) - + + CAST( - 80 AS SIGNED ) + + + CASE - 7 WHEN MAX( DISTINCT - 15 ) * - + 23 + - 63 / 58 * 68 * + + 21 THEN NULL WHEN + 98 THEN + + COUNT( * ) + - ( - 65 ) ELSE 38 END + - 15 + 19 AS col0
----
3722

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + 60 * + 60 * COUNT ( * ) * COUNT ( * ) - + + CAST ( - 80 AS INTEGER ) + + + CASE - 7 WHEN MAX ( DISTINCT - 15 ) * - + 23 + - 63 / 58 * 68 * + + 21 THEN NULL WHEN + 98 THEN + + COUNT ( * ) + - ( - 65 ) ELSE 38 END + - 15 + 19 AS col0
----
3722

query I rowsort
SELECT DISTINCT 0 + - + 97 * - 6 + + - 51 col0
----
531

query I rowsort
SELECT ALL 70 + - + 33
----
37

query I rowsort
SELECT DISTINCT 5 + - + 99 AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT DISTINCT 64 + + 38 DIV - 16 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT 64 + + 38 / - 16 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT - COALESCE ( COUNT( * ), - + COUNT( * ) + - 80 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4644
SELECT - COALESCE ( COUNT ( * ), - + COUNT ( * ) + - 80 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT + ( 96 ) * + + CASE - 47 WHEN - 67 * 47 - - - NULLIF ( + 79, + MIN( DISTINCT 30 ) / + 27 * - 82 ) THEN + 45 * + 26 WHEN + 23 * + 77 * 30 THEN 17 ELSE - MIN( - 27 ) END AS col2
----
2592

skipif mysql # not compatible
query I rowsort label-4645
SELECT + ( 96 ) * + + CASE - 47 WHEN - 67 * 47 - - - NULLIF ( + 79, + MIN ( DISTINCT 30 ) / + 27 * - 82 ) THEN + 45 * + 26 WHEN + 23 * + 77 * 30 THEN 17 ELSE - MIN ( - 27 ) END AS col2
----
2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT ALL CAST( + - 47 AS SIGNED ) * - 44 + + + 96 AS col1
----
2164

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL CAST ( + - 47 AS INTEGER ) * - 44 + + + 96 AS col1
----
2164

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + MIN( 9 )
----
9

skipif mysql # not compatible
query I rowsort label-4647
SELECT + MIN ( 9 )
----
9

query I rowsort
SELECT + 4 * + 8 + - 67
----
-35

query I rowsort
SELECT NULLIF ( 59, - 50 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ( COALESCE ( - + 45, - 2 ) ) * COUNT( * ) * - + 80 + - 65 + - 30 * + 58
----
1795

skipif mysql # not compatible
query I rowsort label-4650
SELECT ( COALESCE ( - + 45, - 2 ) ) * COUNT ( * ) * - + 80 + - 65 + - 30 * + 58
----
1795

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT ALL 22 * + 66 * - 70 - - 46 + - 0 + 56 DIV - 85
----
-101594

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL 22 * + 66 * - 70 - - 46 + - 0 + 56 / - 85
----
-101594

query I rowsort
SELECT DISTINCT 98 * + 47
----
4606

query I rowsort
SELECT + 27 * - - 60
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + COALESCE ( 21, - - 22, + - COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-4654
SELECT + COALESCE ( 21, - - 22, + - COUNT ( * ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT CASE - ( + MAX( ALL + + 27 ) ) WHEN 99 + - + 43 + + 47 THEN NULL WHEN - + 77 * 0 - 45 THEN - + 88 * 77 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT CASE - ( + MAX ( ALL + + 27 ) ) WHEN 99 + - + 43 + + 47 THEN NULL WHEN - + 77 * 0 - 45 THEN - + 88 * 77 END
----
NULL

query II rowsort
SELECT + - 62 * ( - 54 ), 63 AS col0
----
3348
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - - COUNT( - 76 ) + 28 + - - 40 + 27 * + SUM( DISTINCT - - 14 ) + - COUNT( * ) AS col2
----
446

skipif mysql # not compatible
query I rowsort label-4657
SELECT - - COUNT ( - 76 ) + 28 + - - 40 + 27 * + SUM ( DISTINCT - - 14 ) + - COUNT ( * ) AS col2
----
446

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4658
SELECT - 53 DIV CAST( 48 AS SIGNED ) + + - 81 + - 20
----
-102

skipif mysql # not compatible
query I rowsort label-4658
SELECT - 53 / CAST ( 48 AS INTEGER ) + + - 81 + - 20
----
-102

query I rowsort
SELECT - + 82 * - ( 82 ) + - + 52
----
6672

query I rowsort
SELECT ALL 94 * + 33
----
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT DISTINCT + COALESCE ( + 49, - 52 + 81 + + 19, 46, - 72 * 60 * + - COUNT( * ) + 5 + - 96 * + 14 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT + COALESCE ( + 49, - 52 + 81 + + 19, 46, - 72 * 60 * + - COUNT ( * ) + 5 + - 96 * + 14 ) AS col1
----
49

query I rowsort
SELECT - - ( + 1 ) * + 65 col0
----
65

onlyif mysql # aggregate syntax: 
query III rowsort label-4663
SELECT DISTINCT - MAX( ALL - ( - 6 ) ), 7 AS col2, - 5 AS col2
----
-6
7
-5

skipif mysql # not compatible
query III rowsort label-4663
SELECT DISTINCT - MAX ( ALL - ( - 6 ) ), 7 AS col2, - 5 AS col2
----
-6
7
-5

query I rowsort
SELECT - 13 - 91 AS col1
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT ALL - COUNT( * ) + - MIN( + 36 )
----
-37

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL - COUNT ( * ) + - MIN ( + 36 )
----
-37

query I rowsort
SELECT - COALESCE ( + 93, + 58 ) - + 3 col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT DISTINCT CASE - - 24 WHEN - 21 * - 51 * + 10 + + 37 - 12 * + - NULLIF ( 86, + NULLIF ( - NULLIF ( + + 67, - + 21 / COUNT( * ) - + 77 - + + 59 / - 27 ), - AVG ( DISTINCT 4 ) ) ) THEN 65 ELSE 55 * - MAX( + 42 ) + + 9 END col1
----
-2301

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT CASE - - 24 WHEN - 21 * - 51 * + 10 + + 37 - 12 * + - NULLIF ( 86, + NULLIF ( - NULLIF ( + + 67, - + 21 / COUNT ( * ) - + 77 - + + 59 / - 27 ), - AVG ( DISTINCT 4 ) ) ) THEN 65 ELSE 55 * - MAX ( + 42 ) + + 9 END col1
----
-2301

query I rowsort
SELECT ALL + 8 + 10
----
18

query I rowsort
SELECT DISTINCT 18 * 68 * 39 AS col2
----
47736

query I rowsort
SELECT ALL - 76 + 2 AS col1
----
-74

query I rowsort
SELECT - 41 * 95
----
-3895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT - 12 + 24 * + CAST( NULL AS SIGNED ) * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT - 12 + 24 * + CAST ( NULL AS INTEGER ) * + 91 AS col2
----
NULL

query II rowsort
SELECT ALL ( - + 46 ) AS col1, 10 AS col0
----
-46
10

query I rowsort
SELECT - 5 * - ( - - 63 ) AS col1
----
315

query I rowsort
SELECT - 58 + + 86 + + 11
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4676
SELECT 78 * + - 39 * 8 + - 49 col2, 30 + + COUNT( DISTINCT 44 )
----
-24385
31

skipif mysql # not compatible
query II rowsort label-4676
SELECT 78 * + - 39 * 8 + - 49 col2, 30 + + COUNT ( DISTINCT 44 )
----
-24385
31

query II rowsort
SELECT - 15 * + 2 AS col2, - 55 AS col2
----
-30
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT CAST( - 75 AS SIGNED ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4678
SELECT CAST ( - 75 AS INTEGER ) AS col0
----
-75

query I rowsort
SELECT DISTINCT 44 * + 77 * - + 3 AS col1
----
-10164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4680
SELECT + COALESCE ( 26, - - 90 - + 69 * 70 * - - 51 ) DIV + + 70 + - - CASE 3 WHEN + + 12 * 66 THEN - 69 ELSE + COUNT( * ) + - + COALESCE ( + 51, - 64, + + 4 + - + 56 ) + 95 DIV + 8 END - - 31
----
-8

skipif mysql # not compatible
query I rowsort label-4680
SELECT + COALESCE ( 26, - - 90 - + 69 * 70 * - - 51 ) / + + 70 + - - CASE 3 WHEN + + 12 * 66 THEN - 69 ELSE + COUNT ( * ) + - + COALESCE ( + 51, - 64, + + 4 + - + 56 ) + 95 / + 8 END - - 31
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4681
SELECT + - COUNT( * ) DIV - 68 * - + 40
----
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT + - COUNT ( * ) / - 68 * - + 40
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4682
SELECT + 42 * 25 DIV + 11 + - + MAX( DISTINCT 84 ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4682
SELECT + 42 * 25 / + 11 + - + MAX ( DISTINCT 84 ) AS col0
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4683
SELECT + AVG ( + CAST( NULL AS DECIMAL ) ) + - - 14 * + 97 * + + 8 * 35 + - 52 * + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT + AVG ( + CAST ( NULL AS REAL ) ) + - - 14 * + 97 * + + 8 * 35 + - 52 * + 92 AS col0
----
NULL

query I rowsort
SELECT ALL + 89 * 42 + - 43 + + - ( + COALESCE ( - + 91, + 1 * - + 19 * - NULLIF ( + 82, - 89 + - 16 ) ) ) AS col0
----
3786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4685
SELECT + COUNT( * ) DIV + - COALESCE ( - 47, + COUNT( * ) ) * + 83 + + - 85 + - - NULLIF ( + 58, + 80 ) - + + 85 - + 77 * 33 - 58 * 45 DIV 28 AS col0
----
-2746

skipif mysql # not compatible
query I rowsort label-4685
SELECT + COUNT ( * ) / + - COALESCE ( - 47, + COUNT ( * ) ) * + 83 + + - 85 + - - NULLIF ( + 58, + 80 ) - + + 85 - + 77 * 33 - 58 * 45 / 28 AS col0
----
-2746

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL - - ( 37 ) * - COALESCE ( 58, - + 1, 46 ) + - - COUNT( * ) - 96 + 89 * 70 + 62 AS col1
----
4051

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - - ( 37 ) * - COALESCE ( 58, - + 1, 46 ) + - - COUNT ( * ) - 96 + 89 * 70 + 62 AS col1
----
4051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT + 49 * + - CAST( NULL AS SIGNED ) - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT + 49 * + - CAST ( NULL AS INTEGER ) - + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT + - ( - + 71 ) + - 76 + - COALESCE ( + 0, - - NULLIF ( - 97, + + 8 * - - COUNT( * ) * 50 ) * - MIN( DISTINCT + + 31 ) ) * + 56 + + - 92
----
-97

skipif mysql # not compatible
query I rowsort label-4688
SELECT + - ( - + 71 ) + - 76 + - COALESCE ( + 0, - - NULLIF ( - 97, + + 8 * - - COUNT ( * ) * 50 ) * - MIN ( DISTINCT + + 31 ) ) * + 56 + + - 92
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT + - 59 - 84 + + + COUNT( + ( + - 33 ) ) * ( - COUNT( * ) ) * 55
----
-198

skipif mysql # not compatible
query I rowsort label-4689
SELECT + - 59 - 84 + + + COUNT ( + ( + - 33 ) ) * ( - COUNT ( * ) ) * 55
----
-198

query I rowsort
SELECT ALL + + ( - + 45 )
----
-45

query I rowsort
SELECT ( 13 ) * 10 + 48 + + + 75 AS col1
----
253

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4692
SELECT ALL ( 48 ) DIV + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL ( 48 ) / + COUNT ( * )
----
48

query I rowsort
SELECT DISTINCT + COALESCE ( - 7, 32 + - 72 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4694
SELECT ALL + COALESCE ( - + 47, 29 / - COUNT( * ) ) + + CAST( NULL AS DECIMAL ) + + + 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL + COALESCE ( - + 47, 29 / - COUNT ( * ) ) + + CAST ( NULL AS REAL ) + + + 78 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 21 * - 88
----
1848

query I rowsort
SELECT 74 + + 64 AS col2
----
138

query I rowsort
SELECT ALL - 72 * + 94 AS col2
----
-6768

query II rowsort
SELECT - 65, - 10 AS col1
----
-65
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL - 45 - + + MIN( ALL 53 ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL - 45 - + + MIN ( ALL 53 ) AS col2
----
-98

query I rowsort
SELECT 64 * - 99
----
-6336

query I rowsort
SELECT 0 * + + 65 * - - 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT 71 + - COALESCE ( + 74, - 55 - + + 78, ( - 67 ) ) DIV - 23 + NULLIF ( + - 85, - + 43 - + + 54 )
----
-11

skipif mysql # not compatible
query I rowsort label-4702
SELECT 71 + - COALESCE ( + 74, - 55 - + + 78, ( - 67 ) ) / - 23 + NULLIF ( + - 85, - + 43 - + + 54 )
----
-11

onlyif mysql # DIV for integer division: 
query II rowsort label-4703
SELECT ALL 79, 90 DIV 84 * 99 + + 39 AS col1
----
79
138

skipif mysql # not compatible
query II rowsort label-4703
SELECT ALL 79, 90 / 84 * 99 + + 39 AS col1
----
79
138

query I rowsort
SELECT 90 * + - 38 AS col2
----
-3420

query I rowsort
SELECT DISTINCT - 27 - 73 AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL - 9 * COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL - 9 * COUNT ( * ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4707
SELECT 15 + 78 + - SUM( - - 42 ) * - + COALESCE ( + 17, + + 31 ) * CAST( + COUNT( * ) AS SIGNED )
----
807

skipif mysql # not compatible
query I rowsort label-4707
SELECT 15 + 78 + - SUM ( - - 42 ) * - + COALESCE ( + 17, + + 31 ) * CAST ( + COUNT ( * ) AS INTEGER )
----
807

query I rowsort
SELECT ALL - 37 * 19
----
-703

query I rowsort
SELECT ALL + 10 * 55 AS col2
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT - 56 * + MAX( - + 97 ) AS col1
----
5432

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - 56 * + MAX ( - + 97 ) AS col1
----
5432

query I rowsort
SELECT DISTINCT 27 + 51
----
78

query I rowsort
SELECT ALL 32 + + 43
----
75

query I rowsort
SELECT 62 + + 74
----
136

query I rowsort
SELECT - 22 * 63 * 82 + + ( - + 35 ) * - 24
----
-112812

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL 12 + + 18 - COALESCE ( 48, 74 ) + - COUNT( * ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL 12 + + 18 - COALESCE ( 48, 74 ) + - COUNT ( * ) AS col1
----
-19

query I rowsort
SELECT 88 * - 60
----
-5280

query I rowsort
SELECT DISTINCT - + 96 + + 59 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL - 83 * - - 92 - - COUNT( * ) col2
----
-7635

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - 83 * - - 92 - - COUNT ( * ) col2
----
-7635

query I rowsort
SELECT DISTINCT 83 + + - 95 AS col1
----
-12

query I rowsort
SELECT ALL + 92 + + + 4 AS col1
----
96

query I rowsort
SELECT - + 50 * + + 91 + + - 49
----
-4599

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT - 45 DIV 86 * - - 64 * 29 + - 80
----
-80

skipif mysql # not compatible
query I rowsort label-4722
SELECT - 45 / 86 * - - 64 * 29 + - 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT COUNT( - 96 ) * - 89 + + 85 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4723
SELECT COUNT ( - 96 ) * - 89 + + 85 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT CASE + 70 WHEN - - AVG ( ALL 76 ) / + + 47 * 40 * - 28 THEN - MIN( + - 67 ) WHEN + 66 THEN NULL ELSE NULL END + + - ( - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT CASE + 70 WHEN - - AVG ( ALL 76 ) / + + 47 * 40 * - 28 THEN - MIN ( + - 67 ) WHEN + 66 THEN NULL ELSE NULL END + + - ( - + COUNT ( * ) )
----
NULL

query II rowsort
SELECT - 13 AS col1, 6
----
-13
6

query II rowsort
SELECT ALL 67, 15 AS col0
----
67
15

query II rowsort
SELECT DISTINCT 19, - 53 + - - 42 AS col0
----
19
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4728
SELECT DISTINCT 5 DIV ( + 63 ) * + 95 + ( - - 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT 5 / ( + 63 ) * + 95 + ( - - 63 ) AS col1
----
63

query II rowsort
SELECT ALL 25, ( + - 57 ) AS col1
----
25
-57

query II rowsort
SELECT DISTINCT 28, - ( 26 ) AS col0
----
28
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-4731
SELECT ALL 80 AS col0, COALESCE ( - 35, 32 ) * 72 DIV + - 16
----
80
157

skipif mysql # not compatible
query II rowsort label-4731
SELECT ALL 80 AS col0, COALESCE ( - 35, 32 ) * 72 / + - 16
----
80
157

query I rowsort
SELECT ALL - 14 * - 1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4733
SELECT 99 * - CASE - + 7 WHEN - - 17 + + + MIN( - 27 ) THEN - 63 ELSE - 55 * + - 80 + + NULLIF ( + 85, + 95 ) DIV + 77 END
----
-435699

skipif mysql # not compatible
query I rowsort label-4733
SELECT 99 * - CASE - + 7 WHEN - - 17 + + + MIN ( - 27 ) THEN - 63 ELSE - 55 * + - 80 + + NULLIF ( + 85, + 95 ) / + 77 END
----
-435699

query I rowsort
SELECT ALL 34 * 82 AS col1
----
2788

query I rowsort
SELECT 70 * ( 41 )
----
2870

query I rowsort
SELECT ( - + 30 ) + + - ( + 19 ) * + 11
----
-239

query I rowsort
SELECT 9 - + 16 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4738
SELECT - COUNT( + 23 ) AS col2, 72 AS col1
----
-1
72

skipif mysql # not compatible
query II rowsort label-4738
SELECT - COUNT ( + 23 ) AS col2, 72 AS col1
----
-1
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4739
SELECT ALL 91 AS col1, COUNT( * ) * - 62 AS col0
----
91
-62

skipif mysql # not compatible
query II rowsort label-4739
SELECT ALL 91 AS col1, COUNT ( * ) * - 62 AS col0
----
91
-62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4740
SELECT 25 * - + 33 DIV 99 DIV + NULLIF ( 97, - 13 + + + ( - 74 ) * CAST( 49 AS SIGNED ) - + 81 + + - 45 + 90 * - 81 - + + 9 + 75 - - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4740
SELECT 25 * - + 33 / 99 / + NULLIF ( 97, - 13 + + + ( - 74 ) * CAST ( 49 AS INTEGER ) - + 81 + + - 45 + 90 * - 81 - + + 9 + 75 - - CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT 33 + - - 88
----
121

query I rowsort
SELECT ALL 92 + + 87 AS col1
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL SUM( DISTINCT - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL SUM ( DISTINCT - 69 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT 15 DIV - - 39 * + - 7
----
0

skipif mysql # not compatible
query I rowsort label-4744
SELECT 15 / - - 39 * + - 7
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4745
SELECT ALL + CAST( NULL AS SIGNED ) * + + 89 + 95 + + 76 + + - 29 - + COUNT( * ) * + COUNT( * ) / - - 16 * - 47 + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 89 + 95 + + 76 + + - 29 - + COUNT ( * ) * + COUNT ( * ) / - - 16 * - 47 + - 58
----
NULL

query I rowsort
SELECT ALL - 97 * - 70 * + 51 * + 16 + + 60
----
5540700

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4747
SELECT ALL + COALESCE ( - 95, - + 76, - 42, + 52 ) DIV - CAST( 25 AS SIGNED ) + + + 7 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL + COALESCE ( - 95, - + 76, - 42, + 52 ) / - CAST ( 25 AS INTEGER ) + + + 7 AS col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4748
SELECT - 90 * - 60 + + 64 + + COUNT( * ) AS col1, 3 + - 73
----
5465
-70

skipif mysql # not compatible
query II rowsort label-4748
SELECT - 90 * - 60 + + 64 + + COUNT ( * ) AS col1, 3 + - 73
----
5465
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT + COUNT( - 9 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4749
SELECT + COUNT ( - 9 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT - - 42 * + 4 DIV - COUNT( * )
----
-168

skipif mysql # not compatible
query I rowsort label-4750
SELECT - - 42 * + 4 / - COUNT ( * )
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-4751
SELECT ALL - - 3 * + + 21 + + 77 - - 52 DIV 2 + - 27 AS col0
----
139

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - - 3 * + + 21 + + 77 - - 52 / 2 + - 27 AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT COUNT( DISTINCT - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-4752
SELECT COUNT ( DISTINCT - 36 )
----
1

query I rowsort
SELECT DISTINCT + 34 * - 52 + + 0 AS col1
----
-1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT ALL + CAST( 40 AS SIGNED ) * + 58 + COUNT( * ) * - + 48
----
2272

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL + CAST ( 40 AS INTEGER ) * + 58 + COUNT ( * ) * - + 48
----
2272

onlyif mysql # DIV for integer division: 
query II rowsort label-4755
SELECT DISTINCT + + 28 AS col1, - 37 DIV - 9 AS col1
----
28
4

skipif mysql # not compatible
query II rowsort label-4755
SELECT DISTINCT + + 28 AS col1, - 37 / - 9 AS col1
----
28
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT - - 18 * - NULLIF ( - - 93, 67 ) * - COUNT( * ) - + 48 * + COUNT( * )
----
1626

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT - - 18 * - NULLIF ( - - 93, 67 ) * - COUNT ( * ) - + 48 * + COUNT ( * )
----
1626

query I rowsort
SELECT - 59 + + 81 AS col1
----
22

query I rowsort
SELECT + 29 + - 66
----
-37

query II rowsort
SELECT 70, + NULLIF ( + NULLIF ( - 55, + 35 ), + 77 ) AS col1
----
70
-55

query II rowsort
SELECT + - 74 AS col2, 63 * 3 + - 43 AS col0
----
-74
146

query I rowsort
SELECT + + 66 + - 27
----
39

query I rowsort
SELECT + + 49 * 68
----
3332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4763
SELECT + COALESCE ( + 51, 33 DIV COUNT( * ) * - + CAST( + + ( + 71 ) AS SIGNED ) * 46 + + - 10, - + 37 )
----
51

skipif mysql # not compatible
query I rowsort label-4763
SELECT + COALESCE ( + 51, 33 / COUNT ( * ) * - + CAST ( + + ( + 71 ) AS INTEGER ) * 46 + + - 10, - + 37 )
----
51

query I rowsort
SELECT DISTINCT + NULLIF ( 11, - 95 * + - 91 ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4765
SELECT ALL + 45 DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL + 45 / 56 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4766
SELECT + CASE 61 WHEN + COUNT( DISTINCT - 51 ) * - + CAST( NULL AS SIGNED ) THEN - 33 WHEN + + 71 THEN + 62 ELSE + 17 * + 77 / 20 / - CAST( + 2 AS SIGNED ) / + CASE 57 WHEN - + ( - 41 ) THEN + + COUNT( * ) WHEN 92 THEN NULL ELSE NULL END * - - 25 + + AVG ( - 63 ) + - NULLIF ( + 2, - 81 ) END * - + MAX( ALL + - 79 ) AS col2, + 48 * 53 + + + COUNT( * ) + + 29 * + 8
----
NULL
2777

skipif mysql # not compatible
query II rowsort label-4766
SELECT + CASE 61 WHEN + COUNT ( DISTINCT - 51 ) * - + CAST ( NULL AS INTEGER ) THEN - 33 WHEN + + 71 THEN + 62 ELSE + 17 * + 77 / 20 / - CAST ( + 2 AS INTEGER ) / + CASE 57 WHEN - + ( - 41 ) THEN + + COUNT ( * ) WHEN 92 THEN NULL ELSE NULL END * - - 25 + + AVG ( - 63 ) + - NULLIF ( + 2, - 81 ) END * - + MAX ( ALL + - 79 ) AS col2, + 48 * 53 + + + COUNT ( * ) + + 29 * + 8
----
NULL
2777

query I rowsort
SELECT DISTINCT + 27 * + + 30 * - 10
----
-8100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4768
SELECT + CAST( NULL AS SIGNED ) + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT + CAST ( NULL AS INTEGER ) + - 52
----
NULL

query II rowsort
SELECT ALL 34 * 5 AS col0, 17 AS col2
----
170
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT + 5 + + 12 * 99 * COUNT( * ) AS col2
----
1193

skipif mysql # not compatible
query I rowsort label-4770
SELECT + 5 + + 12 * 99 * COUNT ( * ) AS col2
----
1193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4771
SELECT + 16 * + 83 * + + MAX( + ( + 11 ) ) * - 53 * 76 DIV - + CAST( + 38 AS SIGNED ) + - 65
----
1548383

skipif mysql # not compatible
query I rowsort label-4771
SELECT + 16 * + 83 * + + MAX ( + ( + 11 ) ) * - 53 * 76 / - + CAST ( + 38 AS INTEGER ) + - 65
----
1548383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4772
SELECT + 98 DIV 82 * COUNT( * ) * 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4772
SELECT + 98 / 82 * COUNT ( * ) * 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) - 62 * - 55 AS col2
----
3410

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) - 62 * - 55 AS col2
----
3410

query II rowsort
SELECT + 62 + - + 57, 42 + + - 17 AS col0
----
5
25

query I rowsort
SELECT + 9 - + + 44
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT - NULLIF ( + COUNT( * ), + ( 40 ) * 24 ) + + 97 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - NULLIF ( + COUNT ( * ), + ( 40 ) * 24 ) + + 97 AS col2
----
96

query I rowsort
SELECT ALL + 66 + + 95 AS col0
----
161

query I rowsort
SELECT + ( + 92 ) + + 88 col0
----
180

query I rowsort
SELECT + + ( 61 ) AS col1
----
61

query I rowsort
SELECT 85 * + + COALESCE ( - 36, + + ( + 88 ) * - 58 + - 4 ) + - + 76
----
-3136

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT - 88 DIV + 43 - - 95 * - 78 AS col2
----
-7412

skipif mysql # not compatible
query I rowsort label-4781
SELECT - 88 / + 43 - - 95 * - 78 AS col2
----
-7412

onlyif mysql # DIV for integer division: 
query I rowsort label-4782
SELECT ALL + 21 DIV + COALESCE ( + - 94, 60, + 55 DIV ( - 90 ) ) - 10 * + - 73
----
730

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL + 21 / + COALESCE ( + - 94, 60, + 55 / ( - 90 ) ) - 10 * + - 73
----
730

onlyif mysql # DIV for integer division: 
query I rowsort label-4783
SELECT DISTINCT + 83 DIV + 50 + + 83
----
84

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT + 83 / + 50 + + 83
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT - + COUNT( * ) + + + 26 + + COUNT( * ) * - 39
----
-14

skipif mysql # not compatible
query I rowsort label-4784
SELECT - + COUNT ( * ) + + + 26 + + COUNT ( * ) * - 39
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + 29 + + 93 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + 29 + + 93 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT ALL + SUM( + - 80 ) * - 69 AS col1
----
5520

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + SUM ( + - 80 ) * - 69 AS col1
----
5520

onlyif mysql # DIV for integer division: 
query I rowsort label-4787
SELECT - 66 DIV + + 75 + - 84 * - 62
----
5208

skipif mysql # not compatible
query I rowsort label-4787
SELECT - 66 / + + 75 + - 84 * - 62
----
5208

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT - 36 DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-4788
SELECT - 36 / + 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT + CAST( - 68 AS SIGNED ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4789
SELECT + CAST ( - 68 AS INTEGER ) AS col2
----
-68

query I rowsort
SELECT ALL + 98 * - 96 + 66
----
-9342

onlyif mysql # aggregate syntax: 
query II rowsort label-4791
SELECT DISTINCT + COUNT( * ), + COUNT( * ) + 24 - + 95 + - 74 col1
----
1
-144

skipif mysql # not compatible
query II rowsort label-4791
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) + 24 - + 95 + - 74 col1
----
1
-144

query I rowsort
SELECT ALL - 13 * + 81
----
-1053

query I rowsort
SELECT DISTINCT + 59 * + + 77
----
4543

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT COALESCE ( + SUM( + 22 ), + + 53 * - 67 + + - 61 * + 70, + + ( + 88 ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4794
SELECT COALESCE ( + SUM ( + 22 ), + + 53 * - 67 + + - 61 * + 70, + + ( + 88 ) ) AS col1
----
22

query I rowsort
SELECT ALL + 41 * - 56 AS col0
----
-2296

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT 50 * + 81 + - 49 + - + COUNT( * ) AS col2
----
4000

skipif mysql # not compatible
query I rowsort label-4796
SELECT 50 * + 81 + - 49 + - + COUNT ( * ) AS col2
----
4000

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT NULLIF ( - - 10, + ( + COUNT( * ) ) )
----
10

skipif mysql # not compatible
query I rowsort label-4797
SELECT NULLIF ( - - 10, + ( + COUNT ( * ) ) )
----
10

query II rowsort
SELECT + 22 AS col2, 71 + 21
----
22
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4799
SELECT + 22 * - CAST( - 25 AS SIGNED ) * + 68 AS col0
----
37400

skipif mysql # not compatible
query I rowsort label-4799
SELECT + 22 * - CAST ( - 25 AS INTEGER ) * + 68 AS col0
----
37400

query I rowsort
SELECT - NULLIF ( - - 30, AVG ( ALL 27 ) ) AS col0
----
-30

query I rowsort
SELECT - ( - ( + + COALESCE ( - ( - + 46 ), - 96 ) ) ) AS col0
----
46

query I rowsort
SELECT + 57 * 41 col1
----
2337

query I rowsort
SELECT DISTINCT 52 * + 76 * + COALESCE ( 68, - 69, - 30 * 79, - 15 + ( - - 16 ) ) + 70 + + - 85 * - 71 * 75 * 7 AS col1
----
3437181

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT - 86 * CASE + 29 WHEN + + 83 + + + AVG ( DISTINCT + + 65 ) THEN + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT - 86 * CASE + 29 WHEN + + 83 + + + AVG ( DISTINCT + + 65 ) THEN + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT DISTINCT + COUNT( * ) + 29 - - 56 * + ( - 36 )
----
-1986

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT + COUNT ( * ) + 29 - - 56 * + ( - 36 )
----
-1986

query II rowsort
SELECT 60 AS col0, + 61 * + 59
----
60
3599

query I rowsort
SELECT ALL + 79 * + + 98 AS col2
----
7742

query I rowsort
SELECT DISTINCT + 24 + - 47
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT - COALESCE ( - 12, CAST( - 54 AS SIGNED ) ) + + 8 col1
----
20

skipif mysql # not compatible
query I rowsort label-4809
SELECT - COALESCE ( - 12, CAST ( - 54 AS INTEGER ) ) + + 8 col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT COUNT( * ) + + 52
----
53

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT COUNT ( * ) + + 52
----
53

query I rowsort
SELECT DISTINCT + - 2 - 50
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-4812
SELECT ALL 78 DIV 69 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL 78 / 69 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL ( - - ( + - 93 ) ) - + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL ( - - ( + - 93 ) ) - + COUNT ( * )
----
-94

query I rowsort
SELECT ALL - 54 * + 67 AS col0
----
-3618

onlyif mysql # aggregate syntax: 
query II rowsort label-4815
SELECT - COUNT( * ), + 66 + - + 87 AS col1
----
-1
-21

skipif mysql # not compatible
query II rowsort label-4815
SELECT - COUNT ( * ), + 66 + - + 87 AS col1
----
-1
-21

query I rowsort
SELECT DISTINCT - - ( + 37 ) col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT + ( - + 75 ) * + - CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4817
SELECT + ( - + 75 ) * + - CAST ( + 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT - - 87 * 52 + - COUNT( * ) AS col2
----
4523

skipif mysql # not compatible
query I rowsort label-4818
SELECT - - 87 * 52 + - COUNT ( * ) AS col2
----
4523

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL - + MAX( ALL - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - + MAX ( ALL - 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT + + NULLIF ( - 23, - 35 / 61 * - ( + COUNT( * ) ) + + - 2 )
----
-23

skipif mysql # not compatible
query I rowsort label-4820
SELECT + + NULLIF ( - 23, - 35 / 61 * - ( + COUNT ( * ) ) + + - 2 )
----
-23

query I rowsort
SELECT + 55 * + + 89
----
4895

query I rowsort
SELECT DISTINCT - + 29 col1
----
-29

query I rowsort
SELECT ALL 34 * + 12
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT COUNT( * ) + - + 55 * 42
----
-2309

skipif mysql # not compatible
query I rowsort label-4824
SELECT COUNT ( * ) + - + 55 * 42
----
-2309

query I rowsort
SELECT DISTINCT - CASE - 88 WHEN + + ( - 10 ) * - ( + 83 ) THEN - + 87 WHEN + 92 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 17 + - 19 * - 89 AS col0
----
1708

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4827
SELECT - 92 * - COUNT( + 25 ) * + 64 - CASE + + 80 WHEN - - CAST( 62 AS SIGNED ) THEN + 60 WHEN - + 68 * + 13 - - - ( - 6 ) THEN NULL ELSE NULL END * - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT - 92 * - COUNT ( + 25 ) * + 64 - CASE + + 80 WHEN - - CAST ( 62 AS INTEGER ) THEN + 60 WHEN - + 68 * + 13 - - - ( - 6 ) THEN NULL ELSE NULL END * - 33
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT ALL - 82 DIV - 17 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - 82 / - 17 AS col2
----
4

query II rowsort
SELECT 19 + - 61 + 13 * 16 AS col0, + 39
----
166
39

query I rowsort
SELECT DISTINCT 16 + - + 96
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL 75 * - COUNT( + + 8 ) * - 29 * + 73
----
158775

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL 75 * - COUNT ( + + 8 ) * - 29 * + 73
----
158775

query I rowsort
SELECT 9 + + 3
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL + COUNT( * ) * + - 54 * 44 * - 6 * - 20 * COUNT( * ) * - - 51
----
-14541120

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL + COUNT ( * ) * + - 54 * 44 * - 6 * - 20 * COUNT ( * ) * - - 51
----
-14541120

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT ALL - COUNT( * ) + + 98 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - COUNT ( * ) + + 98 AS col0
----
97

query I rowsort
SELECT ALL + 92 + 1 * + 52
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-4836
SELECT DISTINCT - COUNT( * ) + - + 87 AS col1, - 88 AS col2
----
-88
-88

skipif mysql # not compatible
query II rowsort label-4836
SELECT DISTINCT - COUNT ( * ) + - + 87 AS col1, - 88 AS col2
----
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT + MIN( + - 50 ) + 47 - + SUM( DISTINCT 89 ) - - - 93 * - 22
----
1954

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + MIN ( + - 50 ) + 47 - + SUM ( DISTINCT 89 ) - - - 93 * - 22
----
1954

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4838
SELECT ALL + CAST( NULL AS SIGNED ) + - 83, + 16 AS col0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-4838
SELECT ALL + CAST ( NULL AS INTEGER ) + - 83, + 16 AS col0
----
NULL
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT 62 + + COUNT( * ) + + NULLIF ( + 17, - NULLIF ( + + SUM( DISTINCT 48 ), - 31 ) )
----
80

skipif mysql # not compatible
query I rowsort label-4839
SELECT 62 + + COUNT ( * ) + + NULLIF ( + 17, - NULLIF ( + + SUM ( DISTINCT 48 ), - 31 ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT - - MAX( ALL + 27 ) - ( 21 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT - - MAX ( ALL + 27 ) - ( 21 ) AS col2
----
6

query I rowsort
SELECT ( + 33 ) + 11
----
44

query I rowsort
SELECT DISTINCT - ( - 4 ) - + 90
----
-86

query I rowsort
SELECT + 46 * + 51 + + - 67
----
2279

onlyif mysql # aggregate syntax: 
query II rowsort label-4844
SELECT ALL + NULLIF ( + 97, - - COUNT( * ) ) - + 88 AS col0, + 72 AS col0
----
9
72

skipif mysql # not compatible
query II rowsort label-4844
SELECT ALL + NULLIF ( + 97, - - COUNT ( * ) ) - + 88 AS col0, + 72 AS col0
----
9
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT - COUNT( DISTINCT 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - COUNT ( DISTINCT 26 )
----
-1

query I rowsort
SELECT DISTINCT - 56 * 63 * + 34 + 84
----
-119868

query II rowsort
SELECT - 12 * + 5, 67 AS col1
----
-60
67

query I rowsort
SELECT 78 + + - 72
----
6

query II rowsort
SELECT - 95 + - - 30 AS col2, 67 AS col1
----
-65
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT - 53 - MAX( DISTINCT + 69 )
----
-122

skipif mysql # not compatible
query I rowsort label-4850
SELECT - 53 - MAX ( DISTINCT + 69 )
----
-122

onlyif mysql # DIV for integer division: 
query II rowsort label-4851
SELECT ALL - + 45 DIV + 52 + + 7 + + 20 AS col2, 50 - + - 15 AS col2
----
27
65

skipif mysql # not compatible
query II rowsort label-4851
SELECT ALL - + 45 / + 52 + + 7 + + 20 AS col2, 50 - + - 15 AS col2
----
27
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query III rowsort
SELECT + 6 AS col0, - 25 * + + 56 AS col1, - 24 col2
----
6
-1400
-24

query I rowsort
SELECT ALL 11 + + 91 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT 19 * - - COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4855
SELECT 19 * - - COUNT ( * ) AS col1
----
19

query I rowsort
SELECT DISTINCT 5 * + 12 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL CASE + ( 20 ) WHEN - 37 / - + 66 + + 81 + ( SUM( 62 ) ) - + + NULLIF ( - 80, + COUNT( * ) * + + 67 - + 2 ) * + - COUNT( * ) * - MAX( + 45 ) * + + 74 THEN - 16 ELSE NULL END + - 46 + + ( 4 ) * - 43 + - - 88 * - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL CASE + ( 20 ) WHEN - 37 / - + 66 + + 81 + ( SUM ( 62 ) ) - + + NULLIF ( - 80, + COUNT ( * ) * + + 67 - + 2 ) * + - COUNT ( * ) * - MAX ( + 45 ) * + + 74 THEN - 16 ELSE NULL END + - 46 + + ( 4 ) * - 43 + - - 88 * - 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT + COUNT( DISTINCT + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-4858
SELECT + COUNT ( DISTINCT + 95 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL 75 + SUM( + + 10 ) * 8 * - - COUNT( * )
----
155

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL 75 + SUM ( + + 10 ) * 8 * - - COUNT ( * )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT DISTINCT 34 * - - NULLIF ( - + 0, + MIN( ALL + + 45 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT 34 * - - NULLIF ( - + 0, + MIN ( ALL + + 45 ) ) AS col1
----
0

query I rowsort
SELECT 9 * - 66 AS col1
----
-594

query II rowsort
SELECT DISTINCT - 50 AS col1, - 92 AS col2
----
-50
-92

query I rowsort
SELECT - 16 * - 94 col0
----
1504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4864
SELECT ALL + CAST( + 33 AS SIGNED ) - CASE WHEN - ( - + CAST( NULL AS SIGNED ) ) IS NOT NULL THEN - + 89 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL + CAST ( + 33 AS INTEGER ) - CASE WHEN - ( - + CAST ( NULL AS INTEGER ) ) IS NOT NULL THEN - + 89 END AS col2
----
NULL

query I rowsort
SELECT - CASE - 32 WHEN - 93 THEN 7 * - 11 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT DISTINCT COUNT( - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT COUNT ( - 69 )
----
1

query I rowsort
SELECT + 80 - + + 66 + + 83 - + 29 * NULLIF ( - - ( + 82 ), + - 52 + 40 ) AS col0
----
-2281

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - MIN( DISTINCT 51 ) * - ( - COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-4868
SELECT - MIN ( DISTINCT 51 ) * - ( - COUNT ( * ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT - 56 - - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-4869
SELECT - 56 - - COUNT ( * )
----
-55

query I rowsort
SELECT DISTINCT 82 * + CASE WHEN NOT - 62 < + - 5 THEN 83 END * 72 + + 17 + 82 * - 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT - + 40 + + 44 * + SUM( DISTINCT ( - 69 ) ) + CASE + + 83 WHEN - + COUNT( * ) + - - COALESCE ( CAST( NULL AS SIGNED ), - ( - + 53 ) ) + - + 65 + - SUM( + CAST( - ( - 39 ) AS SIGNED ) ) * - 6 * + 42 + + - 37 * - + 35 * 45 * - COUNT( * ) * - 37 + + + 88 + - + 30 - + + 85 + - 26 * + 25 * + 30 + + CAST( NULL AS SIGNED ) + - + 28 + - 1 * - 17 * + COALESCE ( + ( + CAST( NULL AS SIGNED ) ), - 71, COUNT( * ) ) / CASE - 18 * + 53 + - 71 WHEN + 0 / NULLIF ( - 1, - 42 + 91 ) THEN 6 END * - 47 THEN + CASE 82 WHEN NULLIF ( + COALESCE ( ( 67 ), + 95 * + 63 ), COUNT( * ) / + 97 ) * + 33 THEN + 24 ELSE NULL END ELSE NULL END + SUM( DISTINCT 23 ) * 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT - + 40 + + 44 * + SUM ( DISTINCT ( - 69 ) ) + CASE + + 83 WHEN - + COUNT ( * ) + - - COALESCE ( CAST ( NULL AS INTEGER ), - ( - + 53 ) ) + - + 65 + - SUM ( + CAST ( - ( - 39 ) AS INTEGER ) ) * - 6 * + 42 + + - 37 * - + 35 * 45 * - COUNT ( * ) * - 37 + + + 88 + - + 30 - + + 85 + - 26 * + 25 * + 30 + + CAST ( NULL AS INTEGER ) + - + 28 + - 1 * - 17 * + COALESCE ( + ( + CAST ( NULL AS INTEGER ) ), - 71, COUNT ( * ) ) / CASE - 18 * + 53 + - 71 WHEN + 0 / NULLIF ( - 1, - 42 + 91 ) THEN 6 END * - 47 THEN + CASE 82 WHEN NULLIF ( + COALESCE ( ( 67 ), + 95 * + 63 ), COUNT ( * ) / + 97 ) * + 33 THEN + 24 ELSE NULL END ELSE NULL END + SUM ( DISTINCT 23 ) * 43 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL CAST( + 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL CAST ( + 17 AS INTEGER )
----
17

query I rowsort
SELECT - 30 * 91 * + 11 * + + 87
----
-2612610

query I rowsort
SELECT ALL 0 * + ( 87 )
----
0

query I rowsort
SELECT ALL - 59 * - + 99 AS col2
----
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT - COUNT( * ) * - 69 * - + 47 * + - CASE WHEN NOT + NULLIF ( - + 68, - 18 ) <> + ( 64 ) + + - 86 THEN - 31 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT - COUNT ( * ) * - 69 * - + 47 * + - CASE WHEN NOT + NULLIF ( - + 68, - 18 ) <> + ( 64 ) + + - 86 THEN - 31 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( ( + 23 ) )
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4878
SELECT - 20, 1 + - COUNT( * ) AS col0
----
-20
0

skipif mysql # not compatible
query II rowsort label-4878
SELECT - 20, 1 + - COUNT ( * ) AS col0
----
-20
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT - COUNT( DISTINCT - 43 ) - 72 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4879
SELECT - COUNT ( DISTINCT - 43 ) - 72 AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4880
SELECT - + CAST( + 56 AS SIGNED ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT - + CAST ( + 56 AS INTEGER ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL + SUM( - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + SUM ( - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT DISTINCT - + COUNT( * ) * ( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4882
SELECT DISTINCT - + COUNT ( * ) * ( - 1 )
----
1

query I rowsort
SELECT - + 38 + - + 83
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4884
SELECT ALL 85 * - CAST( + - 68 AS SIGNED ) + - 9 * - ( + 67 ) * - COALESCE ( - 86, + 98 + - 89 + MIN( ALL - 44 ), - + 91 - + CASE - + 14 WHEN - + 19 * - 8 THEN - 58 * + 82 DIV + + 85 * SUM( - 6 ) * 64 * - 74 END + + 45 ) + 78 + 44 * + - 15 col2
----
57056

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL 85 * - CAST ( + - 68 AS INTEGER ) + - 9 * - ( + 67 ) * - COALESCE ( - 86, + 98 + - 89 + MIN ( ALL - 44 ), - + 91 - + CASE - + 14 WHEN - + 19 * - 8 THEN - 58 * + 82 / + + 85 * SUM ( - 6 ) * 64 * - 74 END + + 45 ) + 78 + 44 * + - 15 col2
----
57056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4885
SELECT DISTINCT - 0 DIV - COUNT( * ) + + 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - 0 / - COUNT ( * ) + + 24 AS col1
----
24

query I rowsort
SELECT ALL + + 80 + - COALESCE ( - 91, - - 89 )
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT ALL 68 * - 15 - - 56 * - COUNT( * ) + - CASE - 96 WHEN CAST( + AVG ( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) THEN + 18 END + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL 68 * - 15 - - 56 * - COUNT ( * ) + - CASE - 96 WHEN CAST ( + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) THEN + 18 END + + 32 AS col1
----
NULL

query I rowsort
SELECT + 97 * 24 * + + 44 + + - 85 AS col2
----
102347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4889
SELECT 53 AS col2, CAST( - + ( 18 ) AS SIGNED ) + - CASE - + 34 WHEN - COUNT( * ) THEN NULL ELSE + 29 END
----
53
-47

skipif mysql # not compatible
query II rowsort label-4889
SELECT 53 AS col2, CAST ( - + ( 18 ) AS INTEGER ) + - CASE - + 34 WHEN - COUNT ( * ) THEN NULL ELSE + 29 END
----
53
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT + 82 DIV + 20 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4890
SELECT + 82 / + 20 AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4891
SELECT ALL + MAX( ALL - 70 ) * ( - + CAST( NULL AS SIGNED ) ) + - + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + MAX ( ALL - 70 ) * ( - + CAST ( NULL AS INTEGER ) ) + - + 16 AS col0
----
NULL

query I rowsort
SELECT + 99 * + - 43
----
-4257

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT ALL 2 * 29 + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-4893
SELECT ALL 2 * 29 + + COUNT ( * )
----
59

query II rowsort
SELECT DISTINCT + 41 AS col1, 15
----
41
15

query I rowsort
SELECT ALL + 85 * - - 21 + 97 col2
----
1882

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4896
SELECT DISTINCT + COUNT( * ) DIV - 4 col2, - 14 * - 99 AS col0
----
0
1386

skipif mysql # not compatible
query II rowsort label-4896
SELECT DISTINCT + COUNT ( * ) / - 4 col2, - 14 * - 99 AS col0
----
0
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT + 98 * - MIN( DISTINCT 96 )
----
-9408

skipif mysql # not compatible
query I rowsort label-4897
SELECT + 98 * - MIN ( DISTINCT 96 )
----
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT - CAST( NULL AS SIGNED ) + - 86 * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT - CAST ( NULL AS INTEGER ) + - 86 * - 20
----
NULL

query I rowsort
SELECT - 46 * + + 61 + + 52 + 16 AS col0
----
-2738

query I rowsort
SELECT COALESCE ( + 82, - + 12 )
----
82

query I rowsort
SELECT + 4 * - 11 AS col2
----
-44

query I rowsort
SELECT + 58 * + + 9 + - 1 AS col1
----
521

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT + 56 + - - 28 DIV ( + 37 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4903
SELECT + 56 + - - 28 / ( + 37 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL + 81 * + + 18 - + COALESCE ( - + COUNT( * ), - COUNT( + + ( - - 56 ) ) + + 50 ) AS col1
----
1459

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + 81 * + + 18 - + COALESCE ( - + COUNT ( * ), - COUNT ( + + ( - - 56 ) ) + + 50 ) AS col1
----
1459

query I rowsort
SELECT + 74 * - 21 AS col2
----
-1554

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT DISTINCT MIN( + 24 ) * + 65 - 2 AS col0
----
1558

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT MIN ( + 24 ) * + 65 - 2 AS col0
----
1558

onlyif mysql # aggregate syntax: 
query II rowsort label-4907
SELECT ALL COUNT( * ), 6 AS col1
----
1
6

skipif mysql # not compatible
query II rowsort label-4907
SELECT ALL COUNT ( * ), 6 AS col1
----
1
6

query I rowsort
SELECT + 19 * + 93 AS col0
----
1767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4909
SELECT + 28 DIV - COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4909
SELECT + 28 / - COUNT ( * ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT - NULLIF ( - 88, + 76 - + COUNT( * ) + - 24 * + + 25 * + 71 ) * + 53 + - 16 - SUM( ALL + + 83 ) + - + 51 * + + NULLIF ( 53, - 9 * - 65 + + 20 )
----
1862

skipif mysql # not compatible
query I rowsort label-4910
SELECT - NULLIF ( - 88, + 76 - + COUNT ( * ) + - 24 * + + 25 * + 71 ) * + 53 + - 16 - SUM ( ALL + + 83 ) + - + 51 * + + NULLIF ( 53, - 9 * - 65 + + 20 )
----
1862

onlyif mysql # aggregate syntax: 
query II rowsort label-4911
SELECT COUNT( * ), 2 * - + 98 AS col2
----
1
-196

skipif mysql # not compatible
query II rowsort label-4911
SELECT COUNT ( * ), 2 * - + 98 AS col2
----
1
-196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT + 41 * 44 + NULLIF ( - CAST( + 21 AS SIGNED ), + 9 ) + + 23 AS col0
----
1806

skipif mysql # not compatible
query I rowsort label-4912
SELECT + 41 * 44 + NULLIF ( - CAST ( + 21 AS INTEGER ), + 9 ) + + 23 AS col0
----
1806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4913
SELECT - - COUNT( * ) * + 99 + ( - - 83 ) + ( - 26 ) DIV + ( - 33 )
----
182

skipif mysql # not compatible
query I rowsort label-4913
SELECT - - COUNT ( * ) * + 99 + ( - - 83 ) + ( - 26 ) / + ( - 33 )
----
182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4914
SELECT ALL + CAST( NULL AS SIGNED ), 98 + + 89 - - + 41 * + + 30 + 50 DIV + 90 AS col0
----
NULL
1417

skipif mysql # not compatible
query II rowsort label-4914
SELECT ALL + CAST ( NULL AS INTEGER ), 98 + + 89 - - + 41 * + + 30 + 50 / + 90 AS col0
----
NULL
1417

query I rowsort
SELECT + 17 + + 48 + 67 AS col2
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4916
SELECT DISTINCT - NULLIF ( - + COUNT( * ), + 13 * NULLIF ( 2, + 57 * - 50 ) + 73 ) * + - 1 DIV - 57 * - + 36 AS col1, + 51 AS col2
----
0
51

skipif mysql # not compatible
query II rowsort label-4916
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), + 13 * NULLIF ( 2, + 57 * - 50 ) + 73 ) * + - 1 / - 57 * - + 36 AS col1, + 51 AS col2
----
0
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT ALL + ( - + 67 ) * 55 * 84 * + 11 * + CAST( 57 AS SIGNED ) AS col1
----
-194081580

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + ( - + 67 ) * 55 * 84 * + 11 * + CAST ( 57 AS INTEGER ) AS col1
----
-194081580

query I rowsort
SELECT - 30 + - 35 + + 40 + + 66
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL ( + COUNT( * ) ) + - - SUM( ALL - 35 ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL ( + COUNT ( * ) ) + - - SUM ( ALL - 35 ) AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4920
SELECT DISTINCT 18 + - 92 + 82 + + MAX( 86 ) / - 24 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT 18 + - 92 + 82 + + MAX ( 86 ) / - 24 * + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + 54 * + 27 AS col1, 98
----
1458
98

onlyif mysql # DIV for integer division: 
query II rowsort label-4922
SELECT + + 90 DIV 71, 61 * - - 48 AS col0
----
1
2928

skipif mysql # not compatible
query II rowsort label-4922
SELECT + + 90 / 71, 61 * - - 48 AS col0
----
1
2928

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT - + MAX( 86 ) + + CASE 92 WHEN + 16 THEN NULL ELSE 22 END AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4923
SELECT - + MAX ( 86 ) + + CASE 92 WHEN + 16 THEN NULL ELSE 22 END AS col1
----
-64

query I rowsort
SELECT DISTINCT + 79 + - 66
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - - 10 + + 0 + COUNT( * ) * - + COUNT( * ) + + 91
----
100

skipif mysql # not compatible
query I rowsort label-4925
SELECT - - 10 + + 0 + COUNT ( * ) * - + COUNT ( * ) + + 91
----
100

query I rowsort
SELECT - + ( 61 ) col0
----
-61

query I rowsort
SELECT ALL - ( - 56 ) + + + NULLIF ( - 79, + + 64 * - + 98 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4928
SELECT - ( 18 ) * + - MAX( DISTINCT CASE 42 WHEN + - 26 THEN + - 21 WHEN 17 + + 80 THEN NULL END ) - 65, - 8 AS col0
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-4928
SELECT - ( 18 ) * + - MAX ( DISTINCT CASE 42 WHEN + - 26 THEN + - 21 WHEN 17 + + 80 THEN NULL END ) - 65, - 8 AS col0
----
NULL
-8

query I rowsort
SELECT ALL + 33 * + 29
----
957

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT DISTINCT + 96 DIV 59 - + - ( - 31 ) + + 66 col0
----
36

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT + 96 / 59 - + - ( - 31 ) + + 66 col0
----
36

query I rowsort
SELECT DISTINCT + 51 * - 11 * - ( + + 9 ) AS col1
----
5049

query I rowsort
SELECT ALL + ( - 21 ) * - 88 * 51 AS col2
----
94248

query I rowsort
SELECT 14 * 93 col0
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT + COUNT( * ) - - 86 * + 58 * - - COALESCE ( + 48, 49, + 23 ) * + + 6 + 6 + 8 AS col1
----
1436559

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT + COUNT ( * ) - - 86 * + 58 * - - COALESCE ( + 48, 49, + 23 ) * + + 6 + 6 + 8 AS col1
----
1436559

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT ALL + COUNT( * ) * - + ( + 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL + COUNT ( * ) * - + ( + 85 ) AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT ALL 68 DIV - + 11
----
-6

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL 68 / - + 11
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4937
SELECT DISTINCT - CAST( + - 32 AS SIGNED ) AS col2, - 66 col0
----
32
-66

skipif mysql # not compatible
query II rowsort label-4937
SELECT DISTINCT - CAST ( + - 32 AS INTEGER ) AS col2, - 66 col0
----
32
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL - MAX( ALL 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL - MAX ( ALL 16 ) AS col0
----
-16

query I rowsort
SELECT 53 * 64 AS col0
----
3392

onlyif mysql # DIV for integer division: 
query II rowsort label-4940
SELECT ALL - 98 DIV 72 AS col2, 59 + 2
----
-1
61

skipif mysql # not compatible
query II rowsort label-4940
SELECT ALL - 98 / 72 AS col2, 59 + 2
----
-1
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4941
SELECT ALL - SUM( DISTINCT - - 48 ) DIV - + ( - + 25 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL - SUM ( DISTINCT - - 48 ) / - + ( - + 25 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4942
SELECT + CAST( - NULLIF ( + 61, - 43 - - 36 ) AS SIGNED ) DIV + 60 - + 8 AS col2, 99 * - 7 + - - 55
----
-9
-638

skipif mysql # not compatible
query II rowsort label-4942
SELECT + CAST ( - NULLIF ( + 61, - 43 - - 36 ) AS INTEGER ) / + 60 - + 8 AS col2, 99 * - 7 + - - 55
----
-9
-638

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT - COALESCE ( - 59, - 80 + + SUM( DISTINCT + 23 ) )
----
59

skipif mysql # not compatible
query I rowsort label-4943
SELECT - COALESCE ( - 59, - 80 + + SUM ( DISTINCT + 23 ) )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT + 65 * + ( + + ( - 1 ) ) * - 47 + + 88 * - - CAST( + 9 AS SIGNED ) AS col1
----
3847

skipif mysql # not compatible
query I rowsort label-4944
SELECT + 65 * + ( + + ( - 1 ) ) * - 47 + + 88 * - - CAST ( + 9 AS INTEGER ) AS col1
----
3847

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT - COUNT( * ) + + 77, 53 AS col0
----
76
53

skipif mysql # not compatible
query II rowsort label-4945
SELECT - COUNT ( * ) + + 77, 53 AS col0
----
76
53

query I rowsort
SELECT DISTINCT 4 + + 62 col2
----
66

query I rowsort
SELECT ALL - 77 + 41 - + - 65 + + 37 + 95
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT - 92 - - + MIN( 3 )
----
-89

skipif mysql # not compatible
query I rowsort label-4948
SELECT - 92 - - + MIN ( 3 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT - ( - COUNT( * ) ) + 39
----
40

skipif mysql # not compatible
query I rowsort label-4949
SELECT - ( - COUNT ( * ) ) + 39
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4950
SELECT DISTINCT - COUNT( * ) * + + COALESCE ( + - 41, - + 37 DIV + - 54 ) * + 1 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT - COUNT ( * ) * + + COALESCE ( + - 41, - + 37 / + - 54 ) * + 1 AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4951
SELECT DISTINCT 49 + - - 66 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT 49 + - - 66 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4952
SELECT + 34 * 95 DIV 24 + COUNT( * ) * - + 11 AS col0
----
123

skipif mysql # not compatible
query I rowsort label-4952
SELECT + 34 * 95 / 24 + COUNT ( * ) * - + 11 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT ALL + COUNT( DISTINCT 98 ) + - + 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL + COUNT ( DISTINCT 98 ) + - + 65 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT COUNT( * ) + - 22 * - 8
----
177

skipif mysql # not compatible
query I rowsort label-4954
SELECT COUNT ( * ) + - 22 * - 8
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT COALESCE ( + 61, + - COUNT( * ) ) - 91 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4955
SELECT COALESCE ( + 61, + - COUNT ( * ) ) - 91 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4956
SELECT ALL + ( - + 30 ) AS col0, + COUNT( * ) * - 40 + - SUM( 61 ) * - CAST( - 13 AS SIGNED ) + - 19 AS col1
----
-30
-852

skipif mysql # not compatible
query II rowsort label-4956
SELECT ALL + ( - + 30 ) AS col0, + COUNT ( * ) * - 40 + - SUM ( 61 ) * - CAST ( - 13 AS INTEGER ) + - 19 AS col1
----
-30
-852

query I rowsort
SELECT ALL 34 + + 83
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL + COALESCE ( 60, + - 93 + - 20 + COUNT( * ) * + - COUNT( * ), + 1 ) + - - ( ( - - 74 ) )
----
134

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL + COALESCE ( 60, + - 93 + - 20 + COUNT ( * ) * + - COUNT ( * ), + 1 ) + - - ( ( - - 74 ) )
----
134

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT ALL 91 DIV - + 62 + - + 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL 91 / - + 62 + - + 25 AS col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4960
SELECT NULLIF ( + 31, - 73 * + MAX( DISTINCT CAST( 80 AS SIGNED ) ) ) + - CASE CAST( - 88 AS DECIMAL ) WHEN + 37 THEN NULL WHEN + 59 THEN + ( - 80 ) ELSE COUNT( * ) END
----
30

skipif mysql # not compatible
query I rowsort label-4960
SELECT NULLIF ( + 31, - 73 * + MAX ( DISTINCT CAST ( 80 AS INTEGER ) ) ) + - CASE CAST ( - 88 AS REAL ) WHEN + 37 THEN NULL WHEN + 59 THEN + ( - 80 ) ELSE COUNT ( * ) END
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT ALL + MAX( DISTINCT - 16 ) * - 23 + COUNT( * ) DIV - - COUNT( * ) AS col2
----
369

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + MAX ( DISTINCT - 16 ) * - 23 + COUNT ( * ) / - - COUNT ( * ) AS col2
----
369

onlyif mysql # aggregate syntax: 
query II rowsort label-4962
SELECT DISTINCT 8 AS col0, + 59 + - SUM( ALL + 87 ) * 64 col1
----
8
-5509

skipif mysql # not compatible
query II rowsort label-4962
SELECT DISTINCT 8 AS col0, + 59 + - SUM ( ALL + 87 ) * 64 col1
----
8
-5509

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT ALL 11 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL 11 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 * - 36
----
-648

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4965
SELECT DISTINCT SUM( + 11 ) - 58 DIV - 17 AS col1, + COALESCE ( - - 89, + - 36 * 33 + - - 95, + 41 + 2 ) + ( 24 ) AS col2
----
14
113

skipif mysql # not compatible
query II rowsort label-4965
SELECT DISTINCT SUM ( + 11 ) - 58 / - 17 AS col1, + COALESCE ( - - 89, + - 36 * 33 + - - 95, + 41 + 2 ) + ( 24 ) AS col2
----
14
113

query I rowsort
SELECT CASE + 82 WHEN - + 46 THEN NULL ELSE 32 END * + 77
----
2464

query II rowsort
SELECT 9 AS col0, 5
----
9
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4968
SELECT ALL COALESCE ( + 40, + 53 DIV + 19 * - + 61 DIV COUNT( * ) * - 20 * - COUNT( ALL + 29 ) * + + 72 ) * + 32
----
1280

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL COALESCE ( + 40, + 53 / + 19 * - + 61 / COUNT ( * ) * - 20 * - COUNT ( ALL + 29 ) * + + 72 ) * + 32
----
1280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4969
SELECT ALL - CASE + 88 WHEN 3 THEN + 72 + - - 89 + - 82 ELSE + + 5 * + CAST( NULL AS SIGNED ) * + 47 - + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL - CASE + 88 WHEN 3 THEN + 72 + - - 89 + - 82 ELSE + + 5 * + CAST ( NULL AS INTEGER ) * + 47 - + + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4970
SELECT - CAST( NULL AS SIGNED ) / + COUNT( * ) + + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4970
SELECT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL - COUNT( DISTINCT + - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - COUNT ( DISTINCT + - 50 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT 34 + + 33 + + COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4972
SELECT 34 + + 33 + + COUNT ( * ) AS col1
----
68

query I rowsort
SELECT ALL + 2 * + 96 AS col1
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT - 49 * ( - 89 ) + COUNT( * )
----
4362

skipif mysql # not compatible
query I rowsort label-4974
SELECT - 49 * ( - 89 ) + COUNT ( * )
----
4362

query I rowsort
SELECT 49 * + 54 AS col2
----
2646

query II rowsort
SELECT ALL - NULLIF ( - 91, + 97 ), + 87 col2
----
91
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4977
SELECT 94 * - NULLIF ( + COALESCE ( + - 74, 35 DIV - 8 ), - - 97 ) + + - 18 + + 62 * 52
----
10162

skipif mysql # not compatible
query I rowsort label-4977
SELECT 94 * - NULLIF ( + COALESCE ( + - 74, 35 / - 8 ), - - 97 ) + + - 18 + + 62 * 52
----
10162

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL - MAX( ALL - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - MAX ( ALL - 60 )
----
60

query I rowsort
SELECT 33 * + + ( + 96 )
----
3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT DISTINCT - CAST( - ( - 71 ) AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT - CAST ( - ( - 71 ) AS INTEGER ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 69 - - - CASE + 82 WHEN CAST( - 82 AS SIGNED ) * + - CAST( NULL AS SIGNED ) * + 7 + - COALESCE ( + + 82, - COUNT( * ) + COALESCE ( COUNT( 48 ), + 42 ) ) THEN NULL WHEN + 15 * - COALESCE ( + 66, - + 10, + 86 + + 73 * - + 96 ) + + 80 + 57 THEN + 67 * + - 41 * MAX( + ( - + 44 ) ) / + + 3 - + 20 ELSE + 73 * + 66 + - 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 69 - - - CASE + 82 WHEN CAST ( - 82 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * + 7 + - COALESCE ( + + 82, - COUNT ( * ) + COALESCE ( COUNT ( 48 ), + 42 ) ) THEN NULL WHEN + 15 * - COALESCE ( + 66, - + 10, + 86 + + 73 * - + 96 ) + + 80 + 57 THEN + 67 * + - 41 * MAX ( + ( - + 44 ) ) / + + 3 - + 20 ELSE + 73 * + 66 + - 73 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4982
SELECT - 86 * 83 DIV ( 51 ) * COUNT( * ) + + - 80 + - 21 + - + 93 + - + 95 DIV 33
----
-335

skipif mysql # not compatible
query I rowsort label-4982
SELECT - 86 * 83 / ( 51 ) * COUNT ( * ) + + - 80 + - 21 + - + 93 + - + 95 / 33
----
-335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4983
SELECT ALL - + 16 AS col0, CASE + 12 WHEN - - 24 + + CAST( NULL AS SIGNED ) THEN + 23 ELSE + 39 + - 75 * + + COUNT( * ) END
----
-16
-36

skipif mysql # not compatible
query II rowsort label-4983
SELECT ALL - + 16 AS col0, CASE + 12 WHEN - - 24 + + CAST ( NULL AS INTEGER ) THEN + 23 ELSE + 39 + - 75 * + + COUNT ( * ) END
----
-16
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4984
SELECT ALL - + 29, COUNT( * ) AS col2
----
-29
1

skipif mysql # not compatible
query II rowsort label-4984
SELECT ALL - + 29, COUNT ( * ) AS col2
----
-29
1

query I rowsort
SELECT DISTINCT ( + - 90 ) + + ( + 96 )
----
6

query I rowsort
SELECT DISTINCT 52 + + 91 + 33 AS col1
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT ALL + 65 + 53 * - 89 AS col2, + ( COUNT( * ) ) * - 18
----
-4652
-18

skipif mysql # not compatible
query II rowsort label-4987
SELECT ALL + 65 + 53 * - 89 AS col2, + ( COUNT ( * ) ) * - 18
----
-4652
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT - SUM( - - 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-4988
SELECT - SUM ( - - 64 )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4989
SELECT ALL 84, 64 * - - CAST( NULL AS SIGNED ) AS col2
----
84
NULL

skipif mysql # not compatible
query II rowsort label-4989
SELECT ALL 84, 64 * - - CAST ( NULL AS INTEGER ) AS col2
----
84
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT 72 DIV + 19 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4990
SELECT 72 / + 19 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4991
SELECT DISTINCT ( + 81 ) + - ( - CAST( NULL AS DECIMAL ) ) + 84 * - 10 + + - CASE 16 WHEN 55 THEN - 49 ELSE + 82 END * - COUNT( * ) * + - 19 + - + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT ( + 81 ) + - ( - CAST ( NULL AS REAL ) ) + 84 * - 10 + + - CASE 16 WHEN 55 THEN - 49 ELSE + 82 END * - COUNT ( * ) * + - 19 + - + 29 AS col2
----
NULL

query I rowsort
SELECT ALL 23 + 64
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4993
SELECT CAST( NULL AS SIGNED ) col0, - 44 + 47 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4993
SELECT CAST ( NULL AS INTEGER ) col0, - 44 + 47 AS col0
----
NULL
3

query I rowsort
SELECT ALL 36 - NULLIF ( ( - 57 ), + 86 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4995
SELECT DISTINCT + 71 * + ( + - 6 ), + MAX( ALL - + 22 ) AS col0
----
-426
-22

skipif mysql # not compatible
query II rowsort label-4995
SELECT DISTINCT + 71 * + ( + - 6 ), + MAX ( ALL - + 22 ) AS col0
----
-426
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4996
SELECT + 15 + COUNT( * ) + + NULLIF ( - 79, + - 62 ) - + 32 + + 73 * - CAST( + - MAX( ALL 10 ) AS SIGNED ) * - - 54 - ( 31 )
----
39294

skipif mysql # not compatible
query I rowsort label-4996
SELECT + 15 + COUNT ( * ) + + NULLIF ( - 79, + - 62 ) - + 32 + + 73 * - CAST ( + - MAX ( ALL 10 ) AS INTEGER ) * - - 54 - ( 31 )
----
39294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4997
SELECT DISTINCT - + 69 - - + CASE + 57 WHEN - - 26 * - NULLIF ( - 76, + 61 + - - 38 ) + CAST( NULL AS SIGNED ) + ( COUNT( * ) ) THEN NULL ELSE 42 DIV - - 20 END AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT - + 69 - - + CASE + 57 WHEN - - 26 * - NULLIF ( - 76, + 61 + - - 38 ) + CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) THEN NULL ELSE 42 / - - 20 END AS col0
----
-67

query I rowsort
SELECT + 28 + + 50 + + 31
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT ALL MAX( DISTINCT + 8 ) - - + 55
----
63

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL MAX ( DISTINCT + 8 ) - - + 55
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5000
SELECT DISTINCT 70 * - + 75 AS col2, + 67 * CAST( MIN( + CAST( - 91 AS SIGNED ) ) AS SIGNED )
----
-5250
-6097

skipif mysql # not compatible
query II rowsort label-5000
SELECT DISTINCT 70 * - + 75 AS col2, + 67 * CAST ( MIN ( + CAST ( - 91 AS INTEGER ) ) AS INTEGER )
----
-5250
-6097

query I rowsort
SELECT + 99 * + - 69 * + + 30
----
-204930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5002
SELECT + COUNT( 70 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT + COUNT ( 70 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5003
SELECT ALL 58 DIV 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL 58 / 51 AS col2
----
1

query I rowsort
SELECT + 63 * - 48 AS col1
----
-3024

query I rowsort
SELECT - 69 + + 72
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL + MIN( 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL + MIN ( 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5007
SELECT ALL - 70 * + 87 AS col2, + 43 + + COUNT( DISTINCT + 44 )
----
-6090
44

skipif mysql # not compatible
query II rowsort label-5007
SELECT ALL - 70 * + 87 AS col2, + 43 + + COUNT ( DISTINCT + 44 )
----
-6090
44

query I rowsort
SELECT + 33 * - 79 * - NULLIF ( + 78, + 5 * ( + - 37 ) + + 73 ) AS col2
----
203346

query I rowsort
SELECT ALL 39 * + 25
----
975

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT COUNT( 85 ) * 90
----
90

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT COUNT ( 85 ) * 90
----
90

query I rowsort
SELECT ALL 8 * - + 68 + 55 AS col2
----
-489

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT COALESCE ( + COUNT( * ), - ( + 11 ), - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-5012
SELECT COALESCE ( + COUNT ( * ), - ( + 11 ), - 78 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5013
SELECT - COUNT( * ) * - + ( + 22 ) DIV - 66 AS col1, 83 * + - 66 AS col1
----
0
-5478

skipif mysql # not compatible
query II rowsort label-5013
SELECT - COUNT ( * ) * - + ( + 22 ) / - 66 AS col1, 83 * + - 66 AS col1
----
0
-5478

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT + NULLIF ( COUNT( * ), COUNT( * ) + - 1 * + - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-5014
SELECT + NULLIF ( COUNT ( * ), COUNT ( * ) + - 1 * + - 6 )
----
1

query I rowsort
SELECT - 79 * 80 AS col2
----
-6320

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5016
SELECT ALL CAST( NULL AS DECIMAL ) * - - 24 + - - 46 + + - 39 AS col1, 55 AS col1
----
NULL
55

skipif mysql # not compatible
query II rowsort label-5016
SELECT ALL CAST ( NULL AS REAL ) * - - 24 + - - 46 + + - 39 AS col1, 55 AS col1
----
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT + - COUNT( * ) - - 51
----
50

skipif mysql # not compatible
query I rowsort label-5017
SELECT + - COUNT ( * ) - - 51
----
50

query I rowsort
SELECT ALL + ( ( - - 7 ) )
----
7

query I rowsort
SELECT - + 55 * 7
----
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT - COALESCE ( + ( - 3 ), 85, - - CASE WHEN - 71 IS NULL THEN NULL ELSE 76 END + - ( 37 ) DIV - - 88 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5020
SELECT - COALESCE ( + ( - 3 ), 85, - - CASE WHEN - 71 IS NULL THEN NULL ELSE 76 END + - ( 37 ) / - - 88 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL 38 * COUNT( 54 ) * + 21 + - - 80
----
878

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL 38 * COUNT ( 54 ) * + 21 + - - 80
----
878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5022
SELECT MIN( + 22 ) * - CAST( NULL AS SIGNED ) + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT MIN ( + 22 ) * - CAST ( NULL AS INTEGER ) + - 37 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5023
SELECT - 37 DIV 61 AS col1, 33 AS col1
----
0
33

skipif mysql # not compatible
query II rowsort label-5023
SELECT - 37 / 61 AS col1, 33 AS col1
----
0
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ALL - 82 * + 89 + - COUNT( * ) - - SUM( 61 )
----
-7238

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL - 82 * + 89 + - COUNT ( * ) - - SUM ( 61 )
----
-7238

onlyif mysql # aggregate syntax: 
query II rowsort label-5025
SELECT DISTINCT - 89 * - + COUNT( * ) * + 31 * - 57 col2, COUNT( ALL + - 22 ) AS col2
----
-157263
1

skipif mysql # not compatible
query II rowsort label-5025
SELECT DISTINCT - 89 * - + COUNT ( * ) * + 31 * - 57 col2, COUNT ( ALL + - 22 ) AS col2
----
-157263
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT ALL MIN( DISTINCT + 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL MIN ( DISTINCT + 13 ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5027
SELECT DISTINCT 52 DIV - - CASE + + 56 WHEN + - 83 THEN CAST( NULL AS SIGNED ) + + + 24 DIV + 15 WHEN - 11 * MAX( + 64 ) THEN + + 2 + - COUNT( * ) ELSE + + 35 DIV 20 + - 41 END
----
-1

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT 52 / - - CASE + + 56 WHEN + - 83 THEN CAST ( NULL AS INTEGER ) + + + 24 / + 15 WHEN - 11 * MAX ( + 64 ) THEN + + 2 + - COUNT ( * ) ELSE + + 35 / 20 + - 41 END
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT - 0 DIV 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5028
SELECT - 0 / 82 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5029
SELECT ALL + 1 DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + 1 / + COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT - COALESCE ( - + 22, - 15 * - 50 * - + 29 * - + ( - + 79 ) * + 94 + + 72 * + - 25 + + 18, - ( AVG ( ALL - 21 ) ) DIV + 93 + 2 ) * - 30 - 4 AS col0
----
-664

skipif mysql # not compatible
query I rowsort label-5030
SELECT - COALESCE ( - + 22, - 15 * - 50 * - + 29 * - + ( - + 79 ) * + 94 + + 72 * + - 25 + + 18, - ( AVG ( ALL - 21 ) ) / + 93 + 2 ) * - 30 - 4 AS col0
----
-664

query I rowsort
SELECT - 88 * 61 * CASE 95 WHEN + 22 THEN - + 95 + - 26 WHEN - + 58 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT ALL CAST( - - COUNT( ALL - 38 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL CAST ( - - COUNT ( ALL - 38 ) AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT 17 * 12 * ( + - 71 )
----
-14484

query I rowsort
SELECT - 81 - 37 col2
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-5035
SELECT ALL 52 * + COUNT( 88 ) AS col2, + NULLIF ( + COUNT( * ), - 83 )
----
52
1

skipif mysql # not compatible
query II rowsort label-5035
SELECT ALL 52 * + COUNT ( 88 ) AS col2, + NULLIF ( + COUNT ( * ), - 83 )
----
52
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5036
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 88 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 88 col0
----
NULL

query I rowsort
SELECT + 10 * 92 * + 97 AS col0
----
89240

query I rowsort
SELECT ALL - 2 + 35 AS col2
----
33

query I rowsort
SELECT - 21 + + 93 + + 72 * - 46
----
-3240

query I rowsort
SELECT + 27 - 83
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5041
SELECT ALL + 55 DIV - 45 + + COUNT( ALL - - 67 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL + 55 / - 45 + + COUNT ( ALL - - 67 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5042
SELECT CAST( + SUM( DISTINCT - CAST( - - 79 AS DECIMAL ) ) AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-5042
SELECT CAST ( + SUM ( DISTINCT - CAST ( - - 79 AS REAL ) ) AS INTEGER )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT ALL 66 DIV - + 72 * COALESCE ( - 94, - + 49, - COALESCE ( + 44, 70 + + + 48 ) ) + - + MAX( ALL ( 82 ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL 66 / - + 72 * COALESCE ( - 94, - + 49, - COALESCE ( + 44, 70 + + + 48 ) ) + - + MAX ( ALL ( 82 ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5044
SELECT COUNT( * ) DIV 83 + - 95
----
-95

skipif mysql # not compatible
query I rowsort label-5044
SELECT COUNT ( * ) / 83 + - 95
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5045
SELECT ALL ( + COUNT( * ) ) DIV - 8 * 54 DIV 97 + + 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL ( + COUNT ( * ) ) / - 8 * 54 / 97 + + 35 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT COALESCE ( + SUM( - 37 ), - 3, - 38 ) * - COUNT( * ) + 87 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-5046
SELECT COALESCE ( + SUM ( - 37 ), - 3, - 38 ) * - COUNT ( * ) + 87 AS col2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT DISTINCT 3 DIV - + 73
----
0

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT 3 / - + 73
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5048
SELECT ALL 94 DIV - 24 + + - 15 DIV 65 + + 67 * - CAST( + 19 AS SIGNED ) AS col2
----
-1276

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL 94 / - 24 + + - 15 / 65 + + 67 * - CAST ( + 19 AS INTEGER ) AS col2
----
-1276

query I rowsort
SELECT DISTINCT + ( 58 ) col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5050
SELECT ALL 98 DIV + 98 + + - 60
----
-59

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL 98 / + 98 + + - 60
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5051
SELECT ALL + + 50 AS col1, 93 + COUNT( * ) * 30 col1
----
50
123

skipif mysql # not compatible
query II rowsort label-5051
SELECT ALL + + 50 AS col1, 93 + COUNT ( * ) * 30 col1
----
50
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT ALL 55 * 98 * + COUNT( * ) AS col0
----
5390

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL 55 * 98 * + COUNT ( * ) AS col0
----
5390

query I rowsort
SELECT + 2 * ( 42 ) + 89 AS col1
----
173

onlyif mysql # aggregate syntax: 
query II rowsort label-5054
SELECT ALL 69 * - 79 * + 77 AS col1, 71 + SUM( + + 48 ) + + 95 AS col0
----
-419727
214

skipif mysql # not compatible
query II rowsort label-5054
SELECT ALL 69 * - 79 * + 77 AS col1, 71 + SUM ( + + 48 ) + + 95 AS col0
----
-419727
214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5055
SELECT DISTINCT + ( + ( + ( - - ( COUNT( * ) ) ) ) ) * - - 38 DIV 51 - - 76 + - - 88 + + - NULLIF ( - 15, + - 39 ) - + 45 * + NULLIF ( - 10, 37 + - 63 + + - 24 * + 46 ) AS col0
----
629

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT + ( + ( + ( - - ( COUNT ( * ) ) ) ) ) * - - 38 / 51 - - 76 + - - 88 + + - NULLIF ( - 15, + - 39 ) - + 45 * + NULLIF ( - 10, 37 + - 63 + + - 24 * + 46 ) AS col0
----
629

query I rowsort
SELECT - + 68 + - 88 AS col1
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT ALL ( + 61 ) * + 36 * - 22 / 25 / - CASE + NULLIF ( 94, - 35 ) WHEN - 77 / + 54 * - 40 THEN NULL WHEN + 1 THEN NULL ELSE - 9 * - CASE - 15 WHEN - 39 - - - NULLIF ( 47, + ( - - COUNT( * ) ) ) THEN + - CAST( - COUNT( * ) AS SIGNED ) + - - COALESCE ( + - 55, + COUNT( * ) ) / COUNT( * ) - 98 END END - + - 86 + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL ( + 61 ) * + 36 * - 22 / 25 / - CASE + NULLIF ( 94, - 35 ) WHEN - 77 / + 54 * - 40 THEN NULL WHEN + 1 THEN NULL ELSE - 9 * - CASE - 15 WHEN - 39 - - - NULLIF ( 47, + ( - - COUNT ( * ) ) ) THEN + - CAST ( - COUNT ( * ) AS INTEGER ) + - - COALESCE ( + - 55, + COUNT ( * ) ) / COUNT ( * ) - 98 END END - + - 86 + 61
----
NULL

query I rowsort
SELECT + + 82 * 41 AS col2
----
3362

query II rowsort
SELECT 95, + 37 AS col1
----
95
37

query I rowsort
SELECT ALL 27 * - 52 - + + ( + + ( + 14 ) ) * - 2 AS col0
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT DISTINCT + MAX( DISTINCT - 87 ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-5061
SELECT DISTINCT + MAX ( DISTINCT - 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL - - 31 * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - - 31 * + COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT + 50 + + + 67 - 27, COUNT( * ) AS col0
----
90
1

skipif mysql # not compatible
query II rowsort label-5063
SELECT + 50 + + + 67 - 27, COUNT ( * ) AS col0
----
90
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT DISTINCT + + CAST( - 80 AS SIGNED ) * - 83
----
6640

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT + + CAST ( - 80 AS INTEGER ) * - 83
----
6640

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT COUNT( + + 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5065
SELECT COUNT ( + + 10 ) AS col2
----
1

query I rowsort
SELECT ALL + ( - 44 ) * + 39 + + - 66
----
-1782

query I rowsort
SELECT DISTINCT + 88 * + 2
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT ALL - ( - + CAST( - - 13 AS SIGNED ) ) + + 67 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - ( - + CAST ( - - 13 AS INTEGER ) ) + + 67 AS col0
----
80

query I rowsort
SELECT 27 - - 22
----
49

query II rowsort
SELECT DISTINCT 70 col2, 80 AS col0
----
70
80

query I rowsort
SELECT ALL - 98 + + + 91
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5072
SELECT DISTINCT 63 + + 64 DIV + + 65 + + 77
----
140

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT 63 + + 64 / + + 65 + + 77
----
140

query I rowsort
SELECT 24 * - 34 AS col2
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT MAX( DISTINCT - - 86 ) + - 52
----
34

skipif mysql # not compatible
query I rowsort label-5074
SELECT MAX ( DISTINCT - - 86 ) + - 52
----
34

query I rowsort
SELECT 69 + - - 91
----
160

query I rowsort
SELECT ALL - 98 + + NULLIF ( + 15, + - 18 + + 19 + + 52 * - - 32 / - - 64 ) * - 6
----
-188

onlyif mysql # aggregate syntax: 
query II rowsort label-5077
SELECT 19 AS col0, COUNT( * ) + + 64
----
19
65

skipif mysql # not compatible
query II rowsort label-5077
SELECT 19 AS col0, COUNT ( * ) + + 64
----
19
65

query I rowsort
SELECT 49 * + - 64
----
-3136

query I rowsort
SELECT 59 * - + 67 AS col0
----
-3953

query I rowsort
SELECT ALL - ( - + 48 ) + - 57 - - 24 * + - NULLIF ( - 82, + - 73 ) + + 82 * 47 + - + 44
----
5769

query II rowsort
SELECT ALL - 39 AS col0, + 58 AS col0
----
-39
58

query I rowsort
SELECT DISTINCT + 16 * 4 + - - 66 - - + 19 + + + 30 * - + 81
----
-2281

query I rowsort
SELECT + NULLIF ( - 32, - + 74 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-5084
SELECT - 41 AS col1, 21 * - - COUNT( * ) AS col2
----
-41
21

skipif mysql # not compatible
query II rowsort label-5084
SELECT - 41 AS col1, 21 * - - COUNT ( * ) AS col2
----
-41
21

query II rowsort
SELECT + 80 AS col2, - 83 * 41 * - 28 AS col1
----
80
95284

onlyif mysql # DIV for integer division: 
query I rowsort label-5086
SELECT + 92 DIV + 71
----
1

skipif mysql # not compatible
query I rowsort label-5086
SELECT + 92 / + 71
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT 9 * 8 + - - COUNT( * ) * + 64 * - 0
----
72

skipif mysql # not compatible
query I rowsort label-5087
SELECT 9 * 8 + - - COUNT ( * ) * + 64 * - 0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-5088
SELECT DISTINCT - COALESCE ( 85, 32 DIV + + 75 )
----
-85

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - COALESCE ( 85, 32 / + + 75 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT DISTINCT - - SUM( ALL - ( 39 ) )
----
-39

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT - - SUM ( ALL - ( 39 ) )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + 83 * + COUNT( * ) - - 94
----
177

skipif mysql # not compatible
query I rowsort label-5090
SELECT + 83 * + COUNT ( * ) - - 94
----
177

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5091
SELECT DISTINCT 46 DIV - COALESCE ( + + NULLIF ( + CAST( NULL AS SIGNED ), - 3 ), - 26 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT 46 / - COALESCE ( + + NULLIF ( + CAST ( NULL AS INTEGER ), - 3 ), - 26 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL - 51 * + MIN( ALL + 98 ) col1
----
-4998

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - 51 * + MIN ( ALL + 98 ) col1
----
-4998

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5093
SELECT COUNT( * ) DIV - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT COUNT ( * ) / - 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT ALL + COALESCE ( - 70, + - 98 ) * + + COUNT( * ) + 28 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL + COALESCE ( - 70, + - 98 ) * + + COUNT ( * ) + 28 AS col2
----
-42

query I rowsort
SELECT 73 + NULLIF ( - + 73, - - 83 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL - + COUNT( DISTINCT - 80 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL - + COUNT ( DISTINCT - 80 ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5097
SELECT 4 DIV + - 75 - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5097
SELECT 4 / + - 75 - + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5098
SELECT 53 * - CASE WHEN - 75 IS NOT NULL THEN NULL WHEN NOT 38 >= 3 THEN - COUNT( * ) + - + 79 + - - CASE + 55 WHEN - - CAST( NULL AS SIGNED ) + - - 8 THEN + - 59 / - 14 WHEN - 72 * + COUNT( DISTINCT + 98 ) THEN NULL ELSE NULL END * COUNT( * ) ELSE NULL END * COUNT( DISTINCT 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT 53 * - CASE WHEN - 75 IS NOT NULL THEN NULL WHEN NOT 38 >= 3 THEN - COUNT ( * ) + - + 79 + - - CASE + 55 WHEN - - CAST ( NULL AS INTEGER ) + - - 8 THEN + - 59 / - 14 WHEN - 72 * + COUNT ( DISTINCT + 98 ) THEN NULL ELSE NULL END * COUNT ( * ) ELSE NULL END * COUNT ( DISTINCT 31 ) AS col2
----
NULL

query I rowsort
SELECT ALL 35 + + 32
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT 27 + 33 - + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-5100
SELECT 27 + 33 - + COUNT ( * )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT DISTINCT + 84 + - ( + CAST( 72 AS SIGNED ) )
----
12

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + 84 + - ( + CAST ( 72 AS INTEGER ) )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5102
SELECT NULLIF ( - + 56, + - 11 + - + 82 + + 72 * COALESCE ( + - CASE WHEN COUNT( * ) >= + - 99 THEN 49 * + + 92 + - 57 ELSE NULL END, + + COALESCE ( - 55, - COUNT( * ), 95 - + 0 ) ) ) + - - 90 * + + 32, COUNT( * ) col2
----
2824
1

skipif mysql # not compatible
query II rowsort label-5102
SELECT NULLIF ( - + 56, + - 11 + - + 82 + + 72 * COALESCE ( + - CASE WHEN COUNT ( * ) >= + - 99 THEN 49 * + + 92 + - 57 ELSE NULL END, + + COALESCE ( - 55, - COUNT ( * ), 95 - + 0 ) ) ) + - - 90 * + + 32, COUNT ( * ) col2
----
2824
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5103
SELECT ALL NULLIF ( - 72, + 90 ) + - 19 + + 2 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL NULLIF ( - 72, + 90 ) + - 19 + + 2 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 57 * - 38 AS col2
----
-2166

query I rowsort
SELECT 24 + - + 41 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT - MAX( ALL - ( - + 69 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-5106
SELECT - MAX ( ALL - ( - + 69 ) )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT ALL + 66 + CASE + 32 WHEN - 5 THEN + 20 - + 35 WHEN + 87 THEN + + 58 * + - MIN( + 74 ) ELSE + 46 END AS col1
----
112

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL + 66 + CASE + 32 WHEN - 5 THEN + 20 - + 35 WHEN + 87 THEN + + 58 * + - MIN ( + 74 ) ELSE + 46 END AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT COUNT( * ) - COUNT( * ) * - - 86
----
-85

skipif mysql # not compatible
query I rowsort label-5108
SELECT COUNT ( * ) - COUNT ( * ) * - - 86
----
-85

query I rowsort
SELECT 59 - 46 AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT ALL CAST( 86 AS SIGNED ) + - + 97 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL CAST ( 86 AS INTEGER ) + - + 97 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL - 67 - MAX( 32 ) * - 85 + - 50 * - + 88
----
7053

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - 67 - MAX ( 32 ) * - 85 + - 50 * - + 88
----
7053

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5112
SELECT 44 - + 44 * + SUM( 10 ) DIV 48 DIV 88 * - 48 AS col1, COUNT( * ) AS col0
----
44
1

skipif mysql # not compatible
query II rowsort label-5112
SELECT 44 - + 44 * + SUM ( 10 ) / 48 / 88 * - 48 AS col1, COUNT ( * ) AS col0
----
44
1

query I rowsort
SELECT + 67 * - 64 + - 52
----
-4340

query I rowsort
SELECT 90 - - 50 - + - 92 + 5
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT DISTINCT - + COALESCE ( + 11, - 75 + 67 ) * COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT - + COALESCE ( + 11, - 75 + 67 ) * COUNT ( * ) AS col0
----
-11

query I rowsort
SELECT + 99 * 87 * - 49 * + 41
----
-17303517

query II rowsort
SELECT DISTINCT + 4 * + 16, 75 AS col1
----
64
75

query I rowsort
SELECT ALL - NULLIF ( - 44, - - 86 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL - 55 * - 97 * COUNT( * )
----
5335

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL - 55 * - 97 * COUNT ( * )
----
5335

query I rowsort
SELECT DISTINCT + + 22 * - 64 * - + 29
----
40832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5121
SELECT - 56 * + - MAX( - + 19 ) + CAST( + SUM( ALL + 63 ) AS SIGNED ) * + - COUNT( * ) AS col1
----
-1127

skipif mysql # not compatible
query I rowsort label-5121
SELECT - 56 * + - MAX ( - + 19 ) + CAST ( + SUM ( ALL + 63 ) AS INTEGER ) * + - COUNT ( * ) AS col1
----
-1127

query II rowsort
SELECT - 32 * - - 25, - 57 AS col1
----
-800
-57

query I rowsort
SELECT DISTINCT + + 80 col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5124
SELECT - - CASE + - 97 WHEN + - NULLIF ( - + 78, + NULLIF ( 36, CAST( - 7 AS SIGNED ) ) ) + COUNT( * ) * - 50 THEN NULL WHEN 93 * + - 88 - + 71 THEN - 83 + - 28 END * COALESCE ( + 84, + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT - - CASE + - 97 WHEN + - NULLIF ( - + 78, + NULLIF ( 36, CAST ( - 7 AS INTEGER ) ) ) + COUNT ( * ) * - 50 THEN NULL WHEN 93 * + - 88 - + 71 THEN - 83 + - 28 END * COALESCE ( + 84, + 84 )
----
NULL

query I rowsort
SELECT ALL - ( 91 ) * + 91 * - ( + - 99 ) + - 45
----
-819864

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT - 11 + + CASE - + 71 WHEN + - COUNT( * ) * 71 * + CASE - 23 WHEN + - 50 THEN + - COUNT( * ) * ( 9 ) - + 27 + - 88 END THEN - 21 WHEN - MAX( DISTINCT - 64 ) / - COUNT( * ) THEN NULL ELSE NULL END + + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT - 11 + + CASE - + 71 WHEN + - COUNT ( * ) * 71 * + CASE - 23 WHEN + - 50 THEN + - COUNT ( * ) * ( 9 ) - + 27 + - 88 END THEN - 21 WHEN - MAX ( DISTINCT - 64 ) / - COUNT ( * ) THEN NULL ELSE NULL END + + 63 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 88 + - 22
----
-110

query I rowsort
SELECT DISTINCT 70 + + - 74
----
-4

query I rowsort
SELECT ALL 29 * + 4
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5130
SELECT ALL CASE - + 70 WHEN + 11 - - 42 THEN NULL ELSE + - 59 END + + ( - 2 ) + - + 59 * + CAST( NULL AS SIGNED ) * + ( + 64 ) / - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL CASE - + 70 WHEN + 11 - - 42 THEN NULL ELSE + - 59 END + + ( - 2 ) + - + 59 * + CAST ( NULL AS INTEGER ) * + ( + 64 ) / - 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT - 17 * + - 23 + + CAST( + 39 AS SIGNED ) AS col1
----
430

skipif mysql # not compatible
query I rowsort label-5131
SELECT - 17 * + - 23 + + CAST ( + 39 AS INTEGER ) AS col1
----
430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5132
SELECT - 81 - 15 + + 26 + + 13 + 83 * + COALESCE ( - 2, - + 56 + - + 65 + 3 ) / + + ( + CAST( NULL AS SIGNED ) ) * - - CAST( - - COUNT( * ) AS SIGNED ) + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT - 81 - 15 + + 26 + + 13 + 83 * + COALESCE ( - 2, - + 56 + - + 65 + 3 ) / + + ( + CAST ( NULL AS INTEGER ) ) * - - CAST ( - - COUNT ( * ) AS INTEGER ) + 64 AS col2
----
NULL

query I rowsort
SELECT + 87 * + - 49 col2
----
-4263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5134
SELECT ALL 93 * + MAX( - - NULLIF ( - 5, + 48 ) ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL 93 * + MAX ( - - NULLIF ( - 5, + 48 ) ) / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 50, - 9 AS col0
----
50
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT + 4 + + MIN( ALL + 50 ) col2
----
54

skipif mysql # not compatible
query I rowsort label-5136
SELECT + 4 + + MIN ( ALL + 50 ) col2
----
54

query II rowsort
SELECT 93 col0, 29 * - + 61 AS col0
----
93
-1769

query I rowsort
SELECT ALL 86 + + NULLIF ( + 16, + 86 * 16 - 40 ) * + 5
----
166

query I rowsort
SELECT + 51 * - - 47 * + 69
----
165393

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT DISTINCT MIN( ALL - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT MIN ( ALL - 27 ) AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5141
SELECT + CAST( COUNT( 70 ) AS SIGNED ) * + CAST( - 31 AS SIGNED ) * - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-5141
SELECT + CAST ( COUNT ( 70 ) AS INTEGER ) * + CAST ( - 31 AS INTEGER ) * - COUNT ( * )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5142
SELECT - CASE + COUNT( * ) WHEN + 46 / - 72 * - 38 + + 41 THEN - SUM( DISTINCT + 19 ) WHEN COALESCE ( 9, + 55, - + COUNT( * ) ) THEN + ( + + 1 ) * + ( - + COUNT( * ) ) ELSE NULL END col1, 4
----
NULL
4

skipif mysql # not compatible
query II rowsort label-5142
SELECT - CASE + COUNT ( * ) WHEN + 46 / - 72 * - 38 + + 41 THEN - SUM ( DISTINCT + 19 ) WHEN COALESCE ( 9, + 55, - + COUNT ( * ) ) THEN + ( + + 1 ) * + ( - + COUNT ( * ) ) ELSE NULL END col1, 4
----
NULL
4

query I rowsort
SELECT - 61 + 11 col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL 35 * - + COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL 35 * - + COUNT ( * ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT + 5 * - + COUNT( * ) * - + 69
----
345

skipif mysql # not compatible
query I rowsort label-5145
SELECT + 5 * - + COUNT ( * ) * - + 69
----
345

query I rowsort
SELECT - 74 + + 37 AS col0
----
-37

query I rowsort
SELECT ALL - - 0 * - 22
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT ALL + - CAST( + 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL + - CAST ( + 36 AS INTEGER )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT + + COALESCE ( + 32, + NULLIF ( + - 21, + - 94 * + COUNT( * ) ) )
----
32

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + + COALESCE ( + 32, + NULLIF ( + - 21, + - 94 * + COUNT ( * ) ) )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT - + NULLIF ( 57, 25 ) / 42 / + CAST( NULL AS SIGNED ) * + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT - + NULLIF ( 57, 25 ) / 42 / + CAST ( NULL AS INTEGER ) * + 43 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5151
SELECT + 24 DIV + 7 - + - 22 + 25 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5151
SELECT + 24 / + 7 - + - 22 + 25 AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT + - 18 DIV + 17 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5152
SELECT + - 18 / + 17 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + + NULLIF ( - 3, NULLIF ( - - ( - 93 ), - ( + - 91 ) * + 50 - + - ( - - COUNT( * ) ) ) - COUNT( * ) * + 18 * - 7 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5153
SELECT + + NULLIF ( - 3, NULLIF ( - - ( - 93 ), - ( + - 91 ) * + 50 - + - ( - - COUNT ( * ) ) ) - COUNT ( * ) * + 18 * - 7 ) AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT - + CAST( NULL AS SIGNED ) * + 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT - + CAST ( NULL AS INTEGER ) * + 79 col2
----
NULL

query I rowsort
SELECT ALL - + 65 * + 25 + - - 90 + - 56
----
-1591

onlyif mysql # aggregate syntax: 
query II rowsort label-5156
SELECT 7, + COUNT( * ) * - 53 col1
----
7
-53

skipif mysql # not compatible
query II rowsort label-5156
SELECT 7, + COUNT ( * ) * - 53 col1
----
7
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT + 43 * + SUM( ALL - ( 2 ) ) + - 9 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT + 43 * + SUM ( ALL - ( 2 ) ) + - 9 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - 94 * MIN( ALL - 63 )
----
5922

skipif mysql # not compatible
query I rowsort label-5158
SELECT - 94 * MIN ( ALL - 63 )
----
5922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT ALL + CAST( 61 AS SIGNED ) * ( - 22 ) + 36
----
-1306

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL + CAST ( 61 AS INTEGER ) * ( - 22 ) + 36
----
-1306

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT DISTINCT + MIN( + 42 ) AS col1, 12 + + COUNT( * ) AS col0
----
42
13

skipif mysql # not compatible
query II rowsort label-5160
SELECT DISTINCT + MIN ( + 42 ) AS col1, 12 + + COUNT ( * ) AS col0
----
42
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT NULLIF ( 47, CAST( - - AVG ( - - 9 ) AS SIGNED ) )
----
47

skipif mysql # not compatible
query I rowsort label-5161
SELECT NULLIF ( 47, CAST ( - - AVG ( - - 9 ) AS INTEGER ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - ( - - 28 ) * - + COUNT( * ) + + - 47 * + CASE - COUNT( * ) WHEN + COUNT( * ) THEN 25 * - COUNT( * ) * 26 / - 62 - - MAX( + - 35 ) * - 14 WHEN SUM( ALL + + 25 ) THEN NULL END + - 59 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT - ( - - 28 ) * - + COUNT ( * ) + + - 47 * + CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN 25 * - COUNT ( * ) * 26 / - 62 - - MAX ( + - 35 ) * - 14 WHEN SUM ( ALL + + 25 ) THEN NULL END + - 59 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT - MIN( - 13 ) - + - 59
----
72

skipif mysql # not compatible
query I rowsort label-5163
SELECT - MIN ( - 13 ) - + - 59
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL + CASE - 16 WHEN + - COUNT( * ) THEN ( 86 ) ELSE - 67 END AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + CASE - 16 WHEN + - COUNT ( * ) THEN ( 86 ) ELSE - 67 END AS col1
----
-67

query I rowsort
SELECT COALESCE ( + 10, - 90 )
----
10

query I rowsort
SELECT ALL ( + 5 ) AS col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5167
SELECT ALL 22 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL 22 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5168
SELECT + 75 * + 9 + + COALESCE ( + - 87, - - MAX( - + 15 ), - 98 ) AS col1, + 39
----
588
39

skipif mysql # not compatible
query II rowsort label-5168
SELECT + 75 * + 9 + + COALESCE ( + - 87, - - MAX ( - + 15 ), - 98 ) AS col1, + 39
----
588
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5169
SELECT - CASE 97 WHEN 24 THEN NULL ELSE MIN( DISTINCT - + 55 ) END AS col2, COALESCE ( + - 90, - 78 ) + 46
----
55
-44

skipif mysql # not compatible
query II rowsort label-5169
SELECT - CASE 97 WHEN 24 THEN NULL ELSE MIN ( DISTINCT - + 55 ) END AS col2, COALESCE ( + - 90, - 78 ) + 46
----
55
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL - 22 / + + ( + CAST( NULL AS SIGNED ) ) * + - 22 * - 13 * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL - 22 / + + ( + CAST ( NULL AS INTEGER ) ) * + - 22 * - 13 * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT + MIN( + - 42 ) * + 68 AS col2
----
-2856

skipif mysql # not compatible
query I rowsort label-5171
SELECT + MIN ( + - 42 ) * + 68 AS col2
----
-2856

query I rowsort
SELECT - 9 + - + 63 * - - 20 * 58 * + + 1
----
-73089

query I rowsort
SELECT + 50 + - - ( + 95 ) AS col1
----
145

query II rowsort
SELECT + 67 * - 70 * + 2 * - 42 AS col2, ( + + ( + 65 ) ) * - + 52 + - - 24
----
393960
-3356

query I rowsort
SELECT + - ( 10 ) - + 55 AS col2
----
-65

query I rowsort
SELECT DISTINCT + 68 * - 70
----
-4760

query II rowsort
SELECT ALL - - 81 * - 55, 84 AS col1
----
-4455
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5178
SELECT ALL NULLIF ( + - CAST( - 66 AS SIGNED ), - - 69 * + 53 * + CAST( + - 78 AS SIGNED ) * + ( - + AVG ( + - NULLIF ( 12, - 7 ) ) ) * + - 44 + + 9 + + 29 + - - 42 * + 65 * + - 13 * - ( 76 ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL NULLIF ( + - CAST ( - 66 AS INTEGER ), - - 69 * + 53 * + CAST ( + - 78 AS INTEGER ) * + ( - + AVG ( + - NULLIF ( 12, - 7 ) ) ) * + - 44 + + 9 + + 29 + - - 42 * + 65 * + - 13 * - ( 76 ) ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT - CAST( NULL AS SIGNED ) * + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT - CAST ( NULL AS INTEGER ) * + 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5180
SELECT ALL - ( - + COUNT( * ) ) + 52 DIV - + 77 + - 9 + + ( + 57 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL - ( - + COUNT ( * ) ) + 52 / - + 77 + - 9 + + ( + 57 ) AS col0
----
49

query I rowsort
SELECT 22 + + - 69 * - + 49
----
3403

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT ALL + 3 + + - 29 + + ( + - MAX( + 53 ) ) - 7 + - CASE + 90 WHEN - - 30 / + + 99 / ( + 11 ) * 24 - + 84 / + 9 + - - SUM( - 7 ) + + + 2 + + 22 THEN NULL WHEN + - ( SUM( - + 13 ) ) / 92 + - ( 62 ) THEN + + 24 + - + 8 WHEN - 24 + - 43 + + 91 * - - 8 * + ( + - 70 ) * + + 61 + 67 THEN + - 57 WHEN - ( - 79 ) THEN 50 ELSE NULL END * 50 + + ( - + 23 ) - 88 + 63 * 12 / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL + 3 + + - 29 + + ( + - MAX ( + 53 ) ) - 7 + - CASE + 90 WHEN - - 30 / + + 99 / ( + 11 ) * 24 - + 84 / + 9 + - - SUM ( - 7 ) + + + 2 + + 22 THEN NULL WHEN + - ( SUM ( - + 13 ) ) / 92 + - ( 62 ) THEN + + 24 + - + 8 WHEN - 24 + - 43 + + 91 * - - 8 * + ( + - 70 ) * + + 61 + 67 THEN + - 57 WHEN - ( - 79 ) THEN 50 ELSE NULL END * 50 + + ( - + 23 ) - 88 + 63 * 12 / 90
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5183
SELECT - - CAST( NULL AS SIGNED ) / + - 57 * - 91 * - - 90 + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT - - CAST ( NULL AS INTEGER ) / + - 57 * - 91 * - - 90 + - 6
----
NULL

query I rowsort
SELECT ALL - 33 * ( - 51 ) AS col0
----
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT COUNT( * ) + - - 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5185
SELECT COUNT ( * ) + - - 46 AS col2
----
47

query I rowsort
SELECT ( - 93 ) * + + 68 + + - ( 40 ) col1
----
-6364

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL - + 5 + + COUNT( * ) * - 4 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL - + 5 + + COUNT ( * ) * - 4 AS col2
----
-9

query I rowsort
SELECT - 77 * + 71 AS col1
----
-5467

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT DISTINCT + 25 DIV 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT + 25 / 5 AS col0
----
5

query II rowsort
SELECT + 57, + ( 77 ) AS col2
----
57
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT 72 + 53 * + SUM( DISTINCT + + 48 ) AS col0
----
2616

skipif mysql # not compatible
query I rowsort label-5191
SELECT 72 + 53 * + SUM ( DISTINCT + + 48 ) AS col0
----
2616

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ( ( - CASE - 34 WHEN + - 2 THEN + COUNT( * ) * NULLIF ( - 74, - - 21 ) - + + 23 + + 50 * + 77 ELSE - 35 * - 96 + 36 * 25 END ) ) * - COUNT( * )
----
4260

skipif mysql # not compatible
query I rowsort label-5192
SELECT ( ( - CASE - 34 WHEN + - 2 THEN + COUNT ( * ) * NULLIF ( - 74, - - 21 ) - + + 23 + + 50 * + 77 ELSE - 35 * - 96 + 36 * 25 END ) ) * - COUNT ( * )
----
4260

query I rowsort
SELECT 78 * - + 43
----
-3354

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT DISTINCT + 7 DIV 56 DIV + 1 * + + 17 col0
----
0

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + 7 / 56 / + 1 * + + 17 col0
----
0

query I rowsort
SELECT ALL - 53 - 7
----
-60

query I rowsort
SELECT DISTINCT + 98 * - 5 * - 66 AS col0
----
32340

onlyif mysql # DIV for integer division: 
query I rowsort label-5197
SELECT 62 DIV 83 DIV + 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5197
SELECT 62 / 83 / + 7 AS col2
----
0

query I rowsort
SELECT ALL - 53 - + + 6
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5199
SELECT + NULLIF ( - 19, + 93 ) * + + 76 - + CAST( - 9 AS SIGNED ), - 16 + + - COUNT( * ) AS col1, - 57 AS col1
----
-1435
-17
-57

skipif mysql # not compatible
query III rowsort label-5199
SELECT + NULLIF ( - 19, + 93 ) * + + 76 - + CAST ( - 9 AS INTEGER ), - 16 + + - COUNT ( * ) AS col1, - 57 AS col1
----
-1435
-17
-57

query I rowsort
SELECT 61 - 18 * + ( - + 90 )
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT 97 * + COUNT( * ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-5201
SELECT 97 * + COUNT ( * ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5202
SELECT 68 * + - ( + NULLIF ( + 5, - CAST( NULL AS SIGNED ) ) ) AS col1, - 71 * COUNT( * ) AS col1
----
-340
-71

skipif mysql # not compatible
query II rowsort label-5202
SELECT 68 * + - ( + NULLIF ( + 5, - CAST ( NULL AS INTEGER ) ) ) AS col1, - 71 * COUNT ( * ) AS col1
----
-340
-71

query I rowsort
SELECT 45 * - ( - 17 ) + - 88 AS col2
----
677

query I rowsort
SELECT COALESCE ( + 77, - 71 ) + 23 AS col2
----
100

query I rowsort
SELECT 84 + 38
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5206
SELECT DISTINCT + 64 + ( + - 12 ) + COUNT( * ) - + - MIN( + + CAST( 37 AS SIGNED ) ) - - 65, CASE 9 WHEN - COALESCE ( + 93, 34 / + 4 ) THEN + + MAX( DISTINCT + + 86 ) ELSE NULL END + - AVG ( + - CASE + + 81 WHEN + 43 THEN NULL ELSE 31 END ) AS col1
----
155
NULL

skipif mysql # not compatible
query II rowsort label-5206
SELECT DISTINCT + 64 + ( + - 12 ) + COUNT ( * ) - + - MIN ( + + CAST ( 37 AS INTEGER ) ) - - 65, CASE 9 WHEN - COALESCE ( + 93, 34 / + 4 ) THEN + + MAX ( DISTINCT + + 86 ) ELSE NULL END + - AVG ( + - CASE + + 81 WHEN + 43 THEN NULL ELSE 31 END ) AS col1
----
155
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT + COALESCE ( - SUM( DISTINCT + 71 ), - 22 ) - + 11 * + 36 * + 84 * 42 + 17 AS col2
----
-1397142

skipif mysql # not compatible
query I rowsort label-5207
SELECT + COALESCE ( - SUM ( DISTINCT + 71 ), - 22 ) - + 11 * + 36 * + 84 * 42 + 17 AS col2
----
-1397142

query II rowsort
SELECT - 9 + - - 24 + - + 21 AS col0, 61 * 76 AS col0
----
-6
4636

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL - + COUNT( * ) + - 19
----
-20

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL - + COUNT ( * ) + - 19
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5210
SELECT 68 / COALESCE ( - CASE 78 WHEN + 48 THEN + MAX( + 67 ) + 50 WHEN + 97 + - COUNT( * ) THEN - 89 WHEN ( 84 ) THEN + - CAST( - ( + - 58 ) AS SIGNED ) END, - 62 ) * 52 + - 0 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5210
SELECT 68 / COALESCE ( - CASE 78 WHEN + 48 THEN + MAX ( + 67 ) + 50 WHEN + 97 + - COUNT ( * ) THEN - 89 WHEN ( 84 ) THEN + - CAST ( - ( + - 58 ) AS INTEGER ) END, - 62 ) * 52 + - 0 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5211
SELECT ALL + MAX( ALL - + 6 ) + - - 57, 54 AS col2
----
51
54

skipif mysql # not compatible
query II rowsort label-5211
SELECT ALL + MAX ( ALL - + 6 ) + - - 57, 54 AS col2
----
51
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5212
SELECT DISTINCT + - 16 * - MAX( - + NULLIF ( + 67, - CAST( NULL AS SIGNED ) + + - 53 * + + 54 * - + 95 ) )
----
-1072

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT + - 16 * - MAX ( - + NULLIF ( + 67, - CAST ( NULL AS INTEGER ) + + - 53 * + + 54 * - + 95 ) )
----
-1072

query I rowsort
SELECT 45 + + 70 * + ( 72 ) AS col1
----
5085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5214
SELECT COALESCE ( + 99, + MAX( ALL - 82 ) * CAST( - 27 AS SIGNED ) * - - 93 + 33 ) DIV + 93 + - COUNT( * ) * - 94
----
95

skipif mysql # not compatible
query I rowsort label-5214
SELECT COALESCE ( + 99, + MAX ( ALL - 82 ) * CAST ( - 27 AS INTEGER ) * - - 93 + 33 ) / + 93 + - COUNT ( * ) * - 94
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT ALL COUNT( * ) + + NULLIF ( + - 86, + - CAST( NULL AS SIGNED ) )
----
-85

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL COUNT ( * ) + + NULLIF ( + - 86, + - CAST ( NULL AS INTEGER ) )
----
-85

query I rowsort
SELECT 37 + + + 28 AS col2
----
65

query I rowsort
SELECT ALL 42 + 31
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL + + CASE 68 WHEN + + 75 THEN + + 84 + - 60 END * - 22 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + + CASE 68 WHEN + + 75 THEN + + 84 + - 60 END * - 22 / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - + 11 + - - 6 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT 16 * - COUNT( * ) + + - 68 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-5220
SELECT 16 * - COUNT ( * ) + + - 68 AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT ALL - CASE WHEN NOT + CAST( NULL AS SIGNED ) IS NULL THEN + 65 * ( + 20 ) END * + 1 + + + 91 + + + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL - CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN + 65 * ( + 20 ) END * + 1 + + + 91 + + + 22 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5222
SELECT - COUNT( * ) col1, + 23 + + 79 * 3 col0
----
-1
260

skipif mysql # not compatible
query II rowsort label-5222
SELECT - COUNT ( * ) col1, + 23 + + 79 * 3 col0
----
-1
260

onlyif mysql # aggregate syntax: 
query II rowsort label-5223
SELECT ALL - + COUNT( * ), 80 AS col0
----
-1
80

skipif mysql # not compatible
query II rowsort label-5223
SELECT ALL - + COUNT ( * ), 80 AS col0
----
-1
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5224
SELECT + 77 DIV - SUM( ALL - - 46 ) + + - NULLIF ( 74, - + ( 24 ) * + ( ( - 72 ) ) * + - 85 + - 7 ) + + - ( 26 ) * 11 * - - 34 * + 32 + + 28 + 76 AS col0
----
-311139

skipif mysql # not compatible
query I rowsort label-5224
SELECT + 77 / - SUM ( ALL - - 46 ) + + - NULLIF ( 74, - + ( 24 ) * + ( ( - 72 ) ) * + - 85 + - 7 ) + + - ( 26 ) * 11 * - - 34 * + 32 + + 28 + 76 AS col0
----
-311139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) * - 63 + + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - 63 + + - 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5226
SELECT + COUNT( * ) AS col2, 50 + - + CASE + + COUNT( * ) WHEN 90 THEN NULL WHEN 37 THEN + + COUNT( * ) WHEN - 46 * + 75 THEN NULL ELSE - + 7 / + - NULLIF ( - - CAST( NULL AS SIGNED ), + + 20 ) END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5226
SELECT + COUNT ( * ) AS col2, 50 + - + CASE + + COUNT ( * ) WHEN 90 THEN NULL WHEN 37 THEN + + COUNT ( * ) WHEN - 46 * + 75 THEN NULL ELSE - + 7 / + - NULLIF ( - - CAST ( NULL AS INTEGER ), + + 20 ) END
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5227
SELECT ALL 70 - - 35 DIV + 42 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL 70 - - 35 / + 42 AS col1
----
70

onlyif mysql # aggregate syntax: 
query III rowsort label-5228
SELECT COUNT( * ) AS col1, 49 + - 83 + 18 AS col2, + + MAX( + 45 ) col1
----
1
-16
45

skipif mysql # not compatible
query III rowsort label-5228
SELECT COUNT ( * ) AS col1, 49 + - 83 + 18 AS col2, + + MAX ( + 45 ) col1
----
1
-16
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL 46 * + 9 * + + COUNT( ALL - 48 )
----
414

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL 46 * + 9 * + + COUNT ( ALL - 48 )
----
414

query I rowsort
SELECT ALL 64 * 29 AS col1
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT ( 82 ) * - COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT ( 82 ) * - COUNT ( * ) AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5232
SELECT + COUNT( * ) AS col1, + 57 + MAX( ALL 25 ) DIV + 83
----
1
57

skipif mysql # not compatible
query II rowsort label-5232
SELECT + COUNT ( * ) AS col1, + 57 + MAX ( ALL 25 ) / + 83
----
1
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5233
SELECT + 29 DIV COUNT( * ) + 69
----
98

skipif mysql # not compatible
query I rowsort label-5233
SELECT + 29 / COUNT ( * ) + 69
----
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5234
SELECT DISTINCT - 10 AS col0, - CASE - 13 WHEN - 8 THEN - - 35 WHEN + CAST( - ( - CAST( CAST( - 26 AS SIGNED ) AS SIGNED ) ) AS DECIMAL ) THEN NULL END AS col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-5234
SELECT DISTINCT - 10 AS col0, - CASE - 13 WHEN - 8 THEN - - 35 WHEN + CAST ( - ( - CAST ( CAST ( - 26 AS INTEGER ) AS INTEGER ) ) AS REAL ) THEN NULL END AS col0
----
-10
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5235
SELECT DISTINCT - COUNT( * ) col0, CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5235
SELECT DISTINCT - COUNT ( * ) col0, CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT 97 - - 82
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ( 23 ) * + 13 * - COUNT( * )
----
-299

skipif mysql # not compatible
query I rowsort label-5237
SELECT ( 23 ) * + 13 * - COUNT ( * )
----
-299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5238
SELECT DISTINCT + MAX( ALL 45 ) DIV + 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT + MAX ( ALL 45 ) / + 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5239
SELECT + 37, + ( 28 ) * 43 * - + COALESCE ( - 83, + 3 ) * + - CASE - 62 WHEN 18 THEN - + 65 WHEN + COALESCE ( 19, 26 / - 96 ) + - 60 - 44 * + 24 THEN 48 * ( - COUNT( * ) ) + 13 + + MAX( ALL - 63 ) * + 25 ELSE NULL END + 69 AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-5239
SELECT + 37, + ( 28 ) * 43 * - + COALESCE ( - 83, + 3 ) * + - CASE - 62 WHEN 18 THEN - + 65 WHEN + COALESCE ( 19, 26 / - 96 ) + - 60 - 44 * + 24 THEN 48 * ( - COUNT ( * ) ) + 13 + + MAX ( ALL - 63 ) * + 25 ELSE NULL END + 69 AS col1
----
37
NULL

query I rowsort
SELECT ALL + 59 * 50 AS col2
----
2950

onlyif mysql # aggregate syntax: 
query II rowsort label-5241
SELECT DISTINCT COUNT( * ) AS col2, + 81 AS col2
----
1
81

skipif mysql # not compatible
query II rowsort label-5241
SELECT DISTINCT COUNT ( * ) AS col2, + 81 AS col2
----
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ALL + MIN( ALL + - 5 ) + - 88 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + MIN ( ALL + - 5 ) + - 88 AS col1
----
-93

query I rowsort
SELECT 93 * - 3 * - NULLIF ( + 13, 58 )
----
3627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5244
SELECT DISTINCT 62 + + COALESCE ( - - 4, - + 64 / + 28 ) + - 22 * + 99 + + COUNT( - - 80 ) * CAST( + + CASE + - 27 WHEN - 43 + - + 12 THEN 52 WHEN - - 2 THEN NULL END AS SIGNED ), 85 AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-5244
SELECT DISTINCT 62 + + COALESCE ( - - 4, - + 64 / + 28 ) + - 22 * + 99 + + COUNT ( - - 80 ) * CAST ( + + CASE + - 27 WHEN - 43 + - + 12 THEN 52 WHEN - - 2 THEN NULL END AS INTEGER ), 85 AS col0
----
NULL
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT ALL - 87 * CAST( + CASE - 59 WHEN - - 38 THEN 92 * 55 WHEN - 46 / + COUNT( * ) + + 51 + - 9 + + + 77 THEN + COUNT( * ) END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL - 87 * CAST ( + CASE - 59 WHEN - - 38 THEN 92 * 55 WHEN - 46 / + COUNT ( * ) + + 51 + - 9 + + + 77 THEN + COUNT ( * ) END AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5246
SELECT - 32 * + - CAST( NULL AS SIGNED ) / + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT - 32 * + - CAST ( NULL AS INTEGER ) / + 61
----
NULL

query II rowsort
SELECT DISTINCT + + 80 + - 26 + 69 * + 80 AS col1, ( + 92 ) AS col1
----
5574
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5248
SELECT DISTINCT - 65 AS col0, COUNT( * ) AS col1
----
-65
1

skipif mysql # not compatible
query II rowsort label-5248
SELECT DISTINCT - 65 AS col0, COUNT ( * ) AS col1
----
-65
1

query II rowsort
SELECT - + 39 AS col2, + 1 AS col0
----
-39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + + COUNT( * ) + + 48
----
49

skipif mysql # not compatible
query I rowsort label-5250
SELECT + + COUNT ( * ) + + 48
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT - 30 * COUNT( * ) * - 85 + 93 + 84 * + 7 AS col0
----
3231

skipif mysql # not compatible
query I rowsort label-5251
SELECT - 30 * COUNT ( * ) * - 85 + 93 + 84 * + 7 AS col0
----
3231

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT COUNT( - 98 ) AS col2, - 43 AS col0
----
1
-43

skipif mysql # not compatible
query II rowsort label-5252
SELECT COUNT ( - 98 ) AS col2, - 43 AS col0
----
1
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5253
SELECT - 73 + + + CAST( + + 28 AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-5253
SELECT - 73 + + + CAST ( + + 28 AS INTEGER )
----
-45

query II rowsort
SELECT ALL - 36 + 66 AS col0, - 4 AS col1
----
30
-4

query I rowsort
SELECT - 96 - + 33
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-5256
SELECT DISTINCT + COALESCE ( + - 51, - - ( - - 56 ) * - + 29 DIV + 75 ) + - 49
----
-100

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT + COALESCE ( + - 51, - - ( - - 56 ) * - + 29 / + 75 ) + - 49
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL - CASE - - 95 WHEN + - 70 + + 23 THEN COUNT( * ) END - + CAST( NULL AS SIGNED ) + - 2 / COALESCE ( + + COUNT( * ), + 17 + - 46 ) * - + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL - CASE - - 95 WHEN + - 70 + + 23 THEN COUNT ( * ) END - + CAST ( NULL AS INTEGER ) + - 2 / COALESCE ( + + COUNT ( * ), + 17 + - 46 ) * - + 75
----
NULL

query II rowsort
SELECT DISTINCT 46 AS col2, 32 AS col0
----
46
32

query I rowsort
SELECT - + 20 + 51 AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5260
SELECT - NULLIF ( + 97, MAX( + - 67 ) * + + COUNT( * ) - + CASE 83 WHEN - - 66 THEN NULL WHEN 69 THEN + + 1 WHEN - COALESCE ( + 32, - + COUNT( * ) + 0 + + 56 * + ( 77 ) + 98 ) * 23 THEN + SUM( 82 ) ELSE NULL END ) - 49, 82 + 90 AS col0
----
-146
172

skipif mysql # not compatible
query II rowsort label-5260
SELECT - NULLIF ( + 97, MAX ( + - 67 ) * + + COUNT ( * ) - + CASE 83 WHEN - - 66 THEN NULL WHEN 69 THEN + + 1 WHEN - COALESCE ( + 32, - + COUNT ( * ) + 0 + + 56 * + ( 77 ) + 98 ) * 23 THEN + SUM ( 82 ) ELSE NULL END ) - 49, 82 + 90 AS col0
----
-146
172

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT + - MIN( ALL + 81 ) * - 41
----
3321

skipif mysql # not compatible
query I rowsort label-5261
SELECT + - MIN ( ALL + 81 ) * - 41
----
3321

query I rowsort
SELECT ALL + 51 * 79
----
4029

query I rowsort
SELECT + 59 - 28 - + - 82
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5264
SELECT - 50 DIV - 16 + - - COUNT( * ) * - 46 * - 24
----
1107

skipif mysql # not compatible
query I rowsort label-5264
SELECT - 50 / - 16 + - - COUNT ( * ) * - 46 * - 24
----
1107

query I rowsort
SELECT DISTINCT - 1 * - + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT - COALESCE ( + 93, + 8 ) * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-5266
SELECT - COALESCE ( + 93, + 8 ) * COUNT ( * )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5267
SELECT COUNT( * ) * - 80 / - COUNT( 90 ) * + 90 + + CAST( NULL AS SIGNED ) * 27, 39 * + 6 * + ( - 84 ) AS col2
----
NULL
-19656

skipif mysql # not compatible
query II rowsort label-5267
SELECT COUNT ( * ) * - 80 / - COUNT ( 90 ) * + 90 + + CAST ( NULL AS INTEGER ) * 27, 39 * + 6 * + ( - 84 ) AS col2
----
NULL
-19656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5268
SELECT 53 DIV ( 34 ) + + - 31 + - - 43 * MAX( + 22 )
----
916

skipif mysql # not compatible
query I rowsort label-5268
SELECT 53 / ( 34 ) + + - 31 + - - 43 * MAX ( + 22 )
----
916

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 46 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 46 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT ALL - COUNT( * ) * - COUNT( * ) - - + COUNT( ALL - 80 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL - COUNT ( * ) * - COUNT ( * ) - - + COUNT ( ALL - 80 ) AS col0
----
2

query II rowsort
SELECT ( - 17 ) AS col1, - 14 + 81 AS col2
----
-17
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5272
SELECT COALESCE ( + COUNT( * ), - - 42 + + ( - CAST( NULL AS SIGNED ) ) + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-5272
SELECT COALESCE ( + COUNT ( * ), - - 42 + + ( - CAST ( NULL AS INTEGER ) ) + 70 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5273
SELECT + 25 DIV - MAX( DISTINCT 10 ) + 68
----
66

skipif mysql # not compatible
query I rowsort label-5273
SELECT + 25 / - MAX ( DISTINCT 10 ) + 68
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT NULLIF ( - - 65, + + 91 + - COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-5274
SELECT NULLIF ( - - 65, + + 91 + - COUNT ( * ) )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT + 74 + - - CAST( NULL AS SIGNED ) + - 54 + + + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT + 74 + - - CAST ( NULL AS INTEGER ) + - 54 + + + 31 AS col2
----
NULL

query II rowsort
SELECT + ( 62 ), - 61 AS col1
----
62
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-5277
SELECT ALL COUNT( 99 ) * 48, 27 + - 87 col2
----
48
-60

skipif mysql # not compatible
query II rowsort label-5277
SELECT ALL COUNT ( 99 ) * 48, 27 + - 87 col2
----
48
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5278
SELECT DISTINCT SUM( ALL 84 ) * 87 + CAST( + SUM( - - 5 ) AS SIGNED )
----
7313

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT SUM ( ALL 84 ) * 87 + CAST ( + SUM ( - - 5 ) AS INTEGER )
----
7313

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT ALL COUNT( * ) * + + 18 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL COUNT ( * ) * + + 18 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT DISTINCT CASE + 53 WHEN + - NULLIF ( + ( - MIN( - - 11 ) ), + + 94 ) THEN + + 71 + + 37 END * + COUNT( - + 31 ) + - 27 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT CASE + 53 WHEN + - NULLIF ( + ( - MIN ( - - 11 ) ), + + 94 ) THEN + + 71 + + 37 END * + COUNT ( - + 31 ) + - 27 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL 5 * - + COUNT( * ) + + + 39
----
34

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL 5 * - + COUNT ( * ) + + + 39
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5282
SELECT + COALESCE ( 7, - ( + + 73 ) * - + CASE - ( - - 86 ) WHEN - - 45 * - - 78 * - 49 * 52 THEN NULL ELSE COUNT( * ) * - 92 END + 93, + + ( - 14 ) * + 27 + + 55 * + MAX( 47 ) + + 3 - - AVG ( - 70 ) DIV COUNT( * ) + 10 + 14 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-5282
SELECT + COALESCE ( 7, - ( + + 73 ) * - + CASE - ( - - 86 ) WHEN - - 45 * - - 78 * - 49 * 52 THEN NULL ELSE COUNT ( * ) * - 92 END + 93, + + ( - 14 ) * + 27 + + 55 * + MAX ( 47 ) + + 3 - - AVG ( - 70 ) / COUNT ( * ) + 10 + 14 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5283
SELECT - 14 + + + 39 AS col0, + CASE 95 WHEN + 56 THEN + 42 + 50 WHEN + 17 THEN NULL ELSE + COUNT( * ) END AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-5283
SELECT - 14 + + + 39 AS col0, + CASE 95 WHEN + 56 THEN + 42 + 50 WHEN + 17 THEN NULL ELSE + COUNT ( * ) END AS col0
----
25
1

query I rowsort
SELECT - 69 * + 16 + + 80 - + 75 - 1 AS col1
----
-1100

query I rowsort
SELECT - 32 * 31 AS col2
----
-992

query I rowsort
SELECT DISTINCT ( - 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5287
SELECT ALL - COUNT( * ) - + 66 DIV 94 * 0 * - 97
----
-1

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - COUNT ( * ) - + 66 / 94 * 0 * - 97
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5288
SELECT ALL - NULLIF ( - COUNT( * ), - + 44 * 14 * + COUNT( * ) DIV - + 48 * - 57 * + 92 ) DIV - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - NULLIF ( - COUNT ( * ), - + 44 * 14 * + COUNT ( * ) / - + 48 * - 57 * + 92 ) / - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5289
SELECT DISTINCT + - COUNT( * ) * + + COALESCE ( + COUNT( * ), - CASE + - SUM( NULLIF ( + 95, + + 10 + + 9 * + 71 + + 53 + + - 93 ) ) WHEN + - 69 * + 24 * + 90 THEN NULL ELSE - - 54 END + - - COUNT( * ) DIV - 47 DIV + + ( - COUNT( * ) ) ) * + + 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT + - COUNT ( * ) * + + COALESCE ( + COUNT ( * ), - CASE + - SUM ( NULLIF ( + 95, + + 10 + + 9 * + 71 + + 53 + + - 93 ) ) WHEN + - 69 * + 24 * + 90 THEN NULL ELSE - - 54 END + - - COUNT ( * ) / - 47 / + + ( - COUNT ( * ) ) ) * + + 79 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL + + COUNT( * ) * + - 10 - - 36 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL + + COUNT ( * ) * + - 10 - - 36 AS col2
----
26

query I rowsort
SELECT ALL 90 * + + 14
----
1260

query I rowsort
SELECT - - ( + ( + 50 ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT + - 44 * - COUNT( * ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT + - 44 * - COUNT ( * ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL - 63 - + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - 63 - + COUNT ( * )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5295
SELECT NULLIF ( 52, - 55 * + CAST( 55 AS SIGNED ) ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5295
SELECT NULLIF ( 52, - 55 * + CAST ( 55 AS INTEGER ) ) AS col1
----
52

query I rowsort
SELECT - 57 + - 12 + + 52 col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - + 83 * - + ( + COUNT( 6 ) )
----
83

skipif mysql # not compatible
query I rowsort label-5297
SELECT - + 83 * - + ( + COUNT ( 6 ) )
----
83

query I rowsort
SELECT DISTINCT 75 * + - 10 * + 93 AS col0
----
-69750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5299
SELECT ALL CAST( + + CASE + + 51 WHEN + + MIN( + - CAST( NULL AS SIGNED ) ) THEN - 4 * - - 40 WHEN - 25 THEN NULL WHEN + 17 THEN NULL ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL CAST ( + + CASE + + 51 WHEN + + MIN ( + - CAST ( NULL AS INTEGER ) ) THEN - 4 * - - 40 WHEN - 25 THEN NULL WHEN + 17 THEN NULL ELSE NULL END AS INTEGER )
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 19, - 67 )
----
-19

query II rowsort
SELECT ALL + NULLIF ( - 49, + 92 ) col0, 67 AS col2
----
-49
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT + SUM( - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-5302
SELECT + SUM ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT - 81 * 87 * + COUNT( * )
----
-7047

skipif mysql # not compatible
query I rowsort label-5303
SELECT - 81 * 87 * + COUNT ( * )
----
-7047

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT ALL - 94 DIV CASE + - 33 WHEN - 57 DIV + 90 THEN NULL WHEN 11 * + - AVG ( + - ( - 28 ) ) THEN NULL ELSE + 16 END AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL - 94 / CASE + - 33 WHEN - 57 / + 90 THEN NULL WHEN 11 * + - AVG ( + - ( - 28 ) ) THEN NULL ELSE + 16 END AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5305
SELECT + ( 14 ) DIV + - 22 + - + 80 AS col0, COUNT( DISTINCT + 87 ), COUNT( * ) * + - 22 AS col2
----
-80
1
-22

skipif mysql # not compatible
query III rowsort label-5305
SELECT + ( 14 ) / + - 22 + - + 80 AS col0, COUNT ( DISTINCT + 87 ), COUNT ( * ) * + - 22 AS col2
----
-80
1
-22

query I rowsort
SELECT ALL + ( + 7 ) AS col1
----
7

query I rowsort
SELECT - 45 + + + 60 AS col2
----
15

query I rowsort
SELECT DISTINCT + 4 * - 73
----
-292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT DISTINCT MIN( DISTINCT + - 47 ) DIV + + 52 + + 14 + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT MIN ( DISTINCT + - 47 ) / + + 52 + + 14 + COUNT ( * )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5310
SELECT DISTINCT ( + + 68 ) DIV + 60 + SUM( DISTINCT + + 53 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT ( + + 68 ) / + 60 + SUM ( DISTINCT + + 53 ) AS col0
----
54

query I rowsort
SELECT 95 * - + ( - + 55 ) - + 42 col1
----
5183

query I rowsort
SELECT ALL - 59 * - 9 AS col1
----
531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5313
SELECT COALESCE ( + 99, COALESCE ( - 91, - 57 ), + 24 + + COUNT( * ) ) + + ( - COALESCE ( - ( + + ( 22 ) ), 67 ) ) - - CAST( - COUNT( * ) AS SIGNED ) * - 15 AS col2
----
136

skipif mysql # not compatible
query I rowsort label-5313
SELECT COALESCE ( + 99, COALESCE ( - 91, - 57 ), + 24 + + COUNT ( * ) ) + + ( - COALESCE ( - ( + + ( 22 ) ), 67 ) ) - - CAST ( - COUNT ( * ) AS INTEGER ) * - 15 AS col2
----
136

query I rowsort
SELECT + 20 * - - 0 * - 41 + - + 74
----
-74

query I rowsort
SELECT - 3 - - 96
----
93

query I rowsort
SELECT DISTINCT ( - 8 ) * - + NULLIF ( + ( - 78 ), - 50 * - 90 ) col1
----
-624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5317
SELECT DISTINCT - - 30 col0, + 75 + - - COALESCE ( + CAST( NULL AS SIGNED ), 55 DIV 55 + - 78 ) - ( + COUNT( * ) ) * - + 99
----
30
97

skipif mysql # not compatible
query II rowsort label-5317
SELECT DISTINCT - - 30 col0, + 75 + - - COALESCE ( + CAST ( NULL AS INTEGER ), 55 / 55 + - 78 ) - ( + COUNT ( * ) ) * - + 99
----
30
97

query II rowsort
SELECT - 13, 95 AS col2
----
-13
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5319
SELECT ALL + 25, COUNT( * ) - + ( - + ( + 24 ) ) AS col1
----
25
25

skipif mysql # not compatible
query II rowsort label-5319
SELECT ALL + 25, COUNT ( * ) - + ( - + ( + 24 ) ) AS col1
----
25
25

query I rowsort
SELECT ALL 75 * + + 5
----
375

query I rowsort
SELECT - COALESCE ( - 55, 76 ) + ( - + 87 )
----
-32

query I rowsort
SELECT 2 + + - 43 + + - 68
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT + 81 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT + 81 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT MAX( DISTINCT + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-5324
SELECT MAX ( DISTINCT + 12 )
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-5325
SELECT DISTINCT 65 col0, + 38 DIV 75 * + + 44 - + + 15 AS col2
----
65
-15

skipif mysql # not compatible
query II rowsort label-5325
SELECT DISTINCT 65 col0, + 38 / 75 * + + 44 - + + 15 AS col2
----
65
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL - 52 * + - COUNT( * ) * + 68
----
3536

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL - 52 * + - COUNT ( * ) * + 68
----
3536

query II rowsort
SELECT ALL - 90 * 25 * - 71 * + + 33, + 92 AS col0
----
5271750
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5328
SELECT 81 + - ( - 8 ) DIV 54 + - - 97 AS col0, 27 * + SUM( ALL 80 ) AS col1
----
178
2160

skipif mysql # not compatible
query II rowsort label-5328
SELECT 81 + - ( - 8 ) / 54 + - - 97 AS col0, 27 * + SUM ( ALL 80 ) AS col1
----
178
2160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5329
SELECT 88 - - - MAX( - + 79 ) - - - MAX( ALL + 83 ) DIV 93 AS col1
----
167

skipif mysql # not compatible
query I rowsort label-5329
SELECT 88 - - - MAX ( - + 79 ) - - - MAX ( ALL + 83 ) / 93 AS col1
----
167

query I rowsort
SELECT 91 * - 24
----
-2184

query I rowsort
SELECT 62 + + 49 * - 75 AS col0
----
-3613

query I rowsort
SELECT 97 + - + 30
----
67

query I rowsort
SELECT ALL - 90 * - ( 77 )
----
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT DISTINCT + COUNT( * ) + - + 63
----
-62

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT + COUNT ( * ) + - + 63
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5335
SELECT COUNT( * ) DIV - + SUM( ALL 30 ) * + COUNT( DISTINCT + + 37 ) + - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5335
SELECT COUNT ( * ) / - + SUM ( ALL 30 ) * + COUNT ( DISTINCT + + 37 ) + - 60 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT ALL 45 * - - 42 * + COUNT( * ) AS col2
----
1890

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL 45 * - - 42 * + COUNT ( * ) AS col2
----
1890

query I rowsort
SELECT ALL - ( + - ( - 35 ) )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5338
SELECT DISTINCT + 18 + 91 AS col2, ( - - 98 ) + CAST( NULL AS SIGNED ) + 90 - 38 * 28 * 49
----
109
NULL

skipif mysql # not compatible
query II rowsort label-5338
SELECT DISTINCT + 18 + 91 AS col2, ( - - 98 ) + CAST ( NULL AS INTEGER ) + 90 - 38 * 28 * 49
----
109
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL - 28 * - NULLIF ( + 66, - - MAX( - 98 ) )
----
1848

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - 28 * - NULLIF ( + 66, - - MAX ( - 98 ) )
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL + COUNT( * ) + - ( 27 )
----
-26

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + COUNT ( * ) + - ( 27 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT DISTINCT - 46 + - SUM( DISTINCT + - 99 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT - 46 + - SUM ( DISTINCT + - 99 ) AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT 96 DIV - - 3 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5342
SELECT 96 / - - 3 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT 31 + MIN( - 6 ) + - 12 * + - 90
----
1105

skipif mysql # not compatible
query I rowsort label-5343
SELECT 31 + MIN ( - 6 ) + - 12 * + - 90
----
1105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5344
SELECT ALL - COALESCE ( - 16, - 45, + CAST( NULL AS SIGNED ) ) * + + COUNT( * ) * COUNT( ALL 72 ) AS col0, 54 AS col2
----
16
54

skipif mysql # not compatible
query II rowsort label-5344
SELECT ALL - COALESCE ( - 16, - 45, + CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) * COUNT ( ALL 72 ) AS col0, 54 AS col2
----
16
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT NULLIF ( - 32, + 91 ) + - CAST( NULL AS SIGNED ) + + - 24 * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT NULLIF ( - 32, + 91 ) + - CAST ( NULL AS INTEGER ) + + - 24 * + 52
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5346
SELECT ALL - - MIN( ALL + 35 ) AS col0, + 58 - - 79
----
35
137

skipif mysql # not compatible
query II rowsort label-5346
SELECT ALL - - MIN ( ALL + 35 ) AS col0, + 58 - - 79
----
35
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT ALL + + CAST( NULL AS SIGNED ) - + CASE + ( + ( - 98 ) ) WHEN + - COUNT( * ) * + + 36 THEN - COUNT( * ) / + + 39 WHEN 63 THEN 4 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL + + CAST ( NULL AS INTEGER ) - + CASE + ( + ( - 98 ) ) WHEN + - COUNT ( * ) * + + 36 THEN - COUNT ( * ) / + + 39 WHEN 63 THEN 4 END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5348
SELECT + 53 DIV - - 19 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5348
SELECT + 53 / - - 19 AS col2
----
2

query I rowsort
SELECT 60 * - 15
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL - - COUNT( * ) * + 87 + 34 col2
----
121

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL - - COUNT ( * ) * + 87 + 34 col2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-5351
SELECT ALL 20 DIV + 52
----
0

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL 20 / + 52
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5352
SELECT 37 * - COUNT( * ) col1, + ( + - 60 )
----
-37
-60

skipif mysql # not compatible
query II rowsort label-5352
SELECT 37 * - COUNT ( * ) col1, + ( + - 60 )
----
-37
-60

query I rowsort
SELECT 39 - ( 50 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + ( - MAX( ALL + 44 ) ) * 55
----
-2420

skipif mysql # not compatible
query I rowsort label-5354
SELECT + ( - MAX ( ALL + 44 ) ) * 55
----
-2420

query I rowsort
SELECT + 12 + + - 31 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT + ( - - COUNT( * ) ) * + 87 col0
----
87

skipif mysql # not compatible
query I rowsort label-5356
SELECT + ( - - COUNT ( * ) ) * + 87 col0
----
87

query I rowsort
SELECT ALL 9 * - 75 + 93 + 40 + - 47
----
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT - MAX( DISTINCT + + 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5358
SELECT - MAX ( DISTINCT + + 58 ) AS col1
----
-58

query I rowsort
SELECT 85 * + 70 AS col2
----
5950

query I rowsort
SELECT ALL - 11 + + 27 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + MAX( + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-5361
SELECT + MAX ( + 15 )
----
15

query I rowsort
SELECT DISTINCT 46 + + 41 - + 5 - + 26 + - 44
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT - NULLIF ( + COUNT( * ), 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-5363
SELECT - NULLIF ( + COUNT ( * ), 27 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT + 16 * CASE + + COUNT( * ) WHEN 85 * 68 * ( - 88 ) THEN NULL WHEN - ( 54 ) * NULLIF ( 24, - + 41 / - 20 ) + - 2 + + + 73 * ( COUNT( * ) ) THEN + + 87 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT + 16 * CASE + + COUNT ( * ) WHEN 85 * 68 * ( - 88 ) THEN NULL WHEN - ( 54 ) * NULLIF ( 24, - + 41 / - 20 ) + - 2 + + + 73 * ( COUNT ( * ) ) THEN + + 87 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL COUNT( + 13 ) * + 21 + + 84
----
105

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL COUNT ( + 13 ) * + 21 + + 84
----
105

query I rowsort
SELECT + 9 * + - 35
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT - 86 * + - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-5367
SELECT - 86 * + - COUNT ( * ) AS col2
----
86

query I rowsort
SELECT ALL 91 * + - 50 AS col0
----
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT + CASE + - 49 WHEN + 80 / - 79 THEN - 78 * + ( + COUNT( - 41 ) ) * - 25 - + 97 WHEN + + 69 + + 25 THEN NULL ELSE + 75 - + - 27 END AS col1
----
102

skipif mysql # not compatible
query I rowsort label-5369
SELECT + CASE + - 49 WHEN + 80 / - 79 THEN - 78 * + ( + COUNT ( - 41 ) ) * - 25 - + 97 WHEN + + 69 + + 25 THEN NULL ELSE + 75 - + - 27 END AS col1
----
102

query I rowsort
SELECT ALL + ( - 35 ) col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT - 24 * - COUNT( 51 ) - + 77 * 42 * 18 * - - CAST( - CASE - COALESCE ( - - 29, 81 * - 51 ) WHEN COUNT( DISTINCT 42 ) THEN + 54 * + + 34 - + COUNT( * ) / - 37 ELSE NULL END AS SIGNED ) + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT - 24 * - COUNT ( 51 ) - + 77 * 42 * 18 * - - CAST ( - CASE - COALESCE ( - - 29, 81 * - 51 ) WHEN COUNT ( DISTINCT 42 ) THEN + 54 * + + 34 - + COUNT ( * ) / - 37 ELSE NULL END AS INTEGER ) + - 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL + MAX( ALL 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + MAX ( ALL 66 ) AS col0
----
66

query I rowsort
SELECT - 30 * - 96 + - 73 col0
----
2807

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT - 78 + CASE AVG ( ALL 86 ) WHEN 76 * 4 + CAST( NULL AS SIGNED ) THEN NULL WHEN 92 + - CAST( 87 AS SIGNED ) THEN NULL ELSE 14 END
----
-64

skipif mysql # not compatible
query I rowsort label-5374
SELECT - 78 + CASE AVG ( ALL 86 ) WHEN 76 * 4 + CAST ( NULL AS INTEGER ) THEN NULL WHEN 92 + - CAST ( 87 AS INTEGER ) THEN NULL ELSE 14 END
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5375
SELECT - MAX( ALL 17 ) DIV NULLIF ( 5 + 87 * 19, + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-5375
SELECT - MAX ( ALL 17 ) / NULLIF ( 5 + 87 * 19, + 17 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5376
SELECT ALL + CAST( - 12 AS SIGNED ) DIV - ( 81 + MAX( CAST( + NULLIF ( 72, 93 - 66 * 96 ) AS SIGNED ) ) * NULLIF ( 81, COALESCE ( 41, - 25 * 76 + 16 ) * 60 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL + CAST ( - 12 AS INTEGER ) / - ( 81 + MAX ( CAST ( + NULLIF ( 72, 93 - 66 * 96 ) AS INTEGER ) ) * NULLIF ( 81, COALESCE ( 41, - 25 * 76 + 16 ) * 60 ) )
----
0

query I rowsort
SELECT 7 * + 4 + 68
----
96

query I rowsort
SELECT + 92 * 23 - 22 AS col0
----
2094

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - MAX( DISTINCT + 57 ) * 95 col1
----
-5415

skipif mysql # not compatible
query I rowsort label-5379
SELECT - MAX ( DISTINCT + 57 ) * 95 col1
----
-5415

query I rowsort
SELECT DISTINCT ( 85 ) AS col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT DISTINCT + CAST( 20 AS SIGNED ) + 20
----
40

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT + CAST ( 20 AS INTEGER ) + 20
----
40

query I rowsort
SELECT + 29 * 63 + NULLIF ( 74, 45 )
----
1901

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT - ( - 67 ) DIV + 28
----
2

skipif mysql # not compatible
query I rowsort label-5383
SELECT - ( - 67 ) / + 28
----
2

query I rowsort
SELECT ALL - 8 + COALESCE ( 73, 42, 77 )
----
65

query I rowsort
SELECT - 94 + ( 25 + 33 ) * + 42
----
2342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT - ( + 47 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT - ( + 47 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) * - 98 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * - 98 AS col0
----
-99

query I rowsort
SELECT ALL 58 + + 7
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT - MAX( 79 ) + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5389
SELECT - MAX ( 79 ) + COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL NULLIF ( - 39, 18 * COUNT( * ) )
----
-39

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL NULLIF ( - 39, 18 * COUNT ( * ) )
----
-39

query I rowsort
SELECT - 40 + - 17 * 8 AS col0
----
-176

query I rowsort
SELECT + 92 + 70
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL - COUNT( * ) - - 85 * - 10 col1
----
-851

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL - COUNT ( * ) - - 85 * - 10 col1
----
-851

query I rowsort
SELECT DISTINCT + 46 * 93
----
4278

query I rowsort
SELECT - ( + 98 ) + 34 * 30
----
922

query I rowsort
SELECT + 86 + 78
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5397
SELECT ALL CASE + COUNT( * ) WHEN + 6 THEN NULL WHEN 5 THEN NULL WHEN + 27 THEN NULL WHEN + COUNT( - 84 ) + + 66 DIV + 70 THEN 60 * 86 ELSE + CAST( NULL AS SIGNED ) END * 82 AS col2
----
423120

skipif mysql # not compatible
query I rowsort label-5397
SELECT ALL CASE + COUNT ( * ) WHEN + 6 THEN NULL WHEN 5 THEN NULL WHEN + 27 THEN NULL WHEN + COUNT ( - 84 ) + + 66 / + 70 THEN 60 * 86 ELSE + CAST ( NULL AS INTEGER ) END * 82 AS col2
----
423120

query I rowsort
SELECT + 62 + + 36
----
98

query I rowsort
SELECT - 20 * 29 + - 64 col2
----
-644

onlyif mysql # DIV for integer division: 
query I rowsort label-5400
SELECT ALL - 36 DIV - 75 - 92 DIV + 68 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL - 36 / - 75 - 92 / + 68 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5401
SELECT + 50 DIV - 8
----
-6

skipif mysql # not compatible
query I rowsort label-5401
SELECT + 50 / - 8
----
-6

query I rowsort
SELECT + 26 + + 44
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT + COUNT( * ) + MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT + COUNT ( * ) + MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + 52 * 76
----
3952

onlyif mysql # DIV for integer division: 
query I rowsort label-5405
SELECT DISTINCT 23 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT 23 / 94
----
0

query I rowsort
SELECT ALL + - ( - 48 )
----
48

query I rowsort
SELECT + 11 + 88 * + 42
----
3707

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT - 85 + SUM( + 74 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5408
SELECT - 85 + SUM ( + 74 ) AS col1
----
-11

query I rowsort
SELECT ALL - 52 * - 56 + - COALESCE ( 17 + - 28, + 75 * - 9 ) * - ( COALESCE ( 7, - 57 ) )
----
2835

query I rowsort
SELECT - - 75 + - 69 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT ALL 47 * + 33 + + COUNT( * )
----
1552

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL 47 * + 33 + + COUNT ( * )
----
1552

query I rowsort
SELECT + - ( 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT - 96 + COUNT( * ) * NULLIF ( - 1, 52 )
----
-97

skipif mysql # not compatible
query I rowsort label-5413
SELECT - 96 + COUNT ( * ) * NULLIF ( - 1, 52 )
----
-97

query I rowsort
SELECT DISTINCT + 94 * 89 + ( 39 )
----
8405

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - COALESCE ( + NULLIF ( - COUNT( * ), ( + 19 ) ), 81 ) * - 1
----
-1

skipif mysql # not compatible
query I rowsort label-5415
SELECT - COALESCE ( + NULLIF ( - COUNT ( * ), ( + 19 ) ), 81 ) * - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT - 24 + COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5416
SELECT - 24 + COUNT ( * ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5417
SELECT ALL 62 * - 92 + + CAST( CASE + 50 WHEN - 58 THEN + ( + 4 ) + 38 * 44 WHEN + 94 * 24 THEN NULL END + + CASE 52 WHEN + 69 THEN 78 * - 54 WHEN + 73 THEN NULL ELSE NULL END * NULLIF ( - 59 * - COALESCE ( + 97, COUNT( * ) - - 39, COUNT( ALL + CAST( NULL AS SIGNED ) ) / COALESCE ( + CASE - COUNT( * ) WHEN + 54 + - 37 THEN - 95 END, 62 ) ), ( + COUNT( * ) ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL 62 * - 92 + + CAST ( CASE + 50 WHEN - 58 THEN + ( + 4 ) + 38 * 44 WHEN + 94 * 24 THEN NULL END + + CASE 52 WHEN + 69 THEN 78 * - 54 WHEN + 73 THEN NULL ELSE NULL END * NULLIF ( - 59 * - COALESCE ( + 97, COUNT ( * ) - - 39, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) / COALESCE ( + CASE - COUNT ( * ) WHEN + 54 + - 37 THEN - 95 END, 62 ) ), ( + COUNT ( * ) ) ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5418
SELECT 90 * + + CASE 76 WHEN CAST( - 31 AS DECIMAL ) + - COUNT( 81 ) THEN NULL ELSE - COALESCE ( ( + 21 ), - 73 + + 61 * - 23, - 66 * 88 + - 69 ) + + 47 * 59 END * + 92 AS col2
----
22786560

skipif mysql # not compatible
query I rowsort label-5418
SELECT 90 * + + CASE 76 WHEN CAST ( - 31 AS REAL ) + - COUNT ( 81 ) THEN NULL ELSE - COALESCE ( ( + 21 ), - 73 + + 61 * - 23, - 66 * 88 + - 69 ) + + 47 * 59 END * + 92 AS col2
----
22786560

query I rowsort
SELECT ALL - 32 - + - 74 * 93 col1
----
6850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5420
SELECT ALL NULLIF ( + 84, + 14 + MIN( CAST( NULL AS SIGNED ) ) * + 44 ) - + CAST( 20 AS SIGNED ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL NULLIF ( + 84, + 14 + MIN ( CAST ( NULL AS INTEGER ) ) * + 44 ) - + CAST ( 20 AS INTEGER ) AS col0
----
64

query I rowsort
SELECT 80 * + 54
----
4320

query I rowsort
SELECT 16 * - 43
----
-688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT 22 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT 22 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 12 - - 49 - + 32 * ( 82 * ( 97 ) )
----
-254467

query I rowsort
SELECT 15 * + 24
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5426
SELECT ALL CAST( NULL AS SIGNED ) * - + MIN( - 65 ) * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL CAST ( NULL AS INTEGER ) * - + MIN ( - 65 ) * - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT COALESCE ( + COUNT( * ), - 97 ) * 21
----
21

skipif mysql # not compatible
query I rowsort label-5427
SELECT COALESCE ( + COUNT ( * ), - 97 ) * 21
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT - ( + NULLIF ( 72, + COUNT( * ) ) ) * CAST( CASE - NULLIF ( 25, - 0 ) WHEN - 88 THEN COUNT( * ) WHEN 78 + - ( - CAST( NULL AS SIGNED ) + - 65 * COUNT( * ) ) THEN 75 / 7 ELSE + 97 * + 88 + 31 END AS SIGNED ) + - COUNT( * ) AS col0
----
-616825

skipif mysql # not compatible
query I rowsort label-5428
SELECT - ( + NULLIF ( 72, + COUNT ( * ) ) ) * CAST ( CASE - NULLIF ( 25, - 0 ) WHEN - 88 THEN COUNT ( * ) WHEN 78 + - ( - CAST ( NULL AS INTEGER ) + - 65 * COUNT ( * ) ) THEN 75 / 7 ELSE + 97 * + 88 + 31 END AS INTEGER ) + - COUNT ( * ) AS col0
----
-616825

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ( + CASE - COALESCE ( COUNT( * ), 71 + - 19 ) WHEN - 31 THEN CASE 60 WHEN - COUNT( DISTINCT 7 ) THEN - 47 + ( SUM( + 53 ) ) END + 38 END ) / + 53 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5429
SELECT ( + CASE - COALESCE ( COUNT ( * ), 71 + - 19 ) WHEN - 31 THEN CASE 60 WHEN - COUNT ( DISTINCT 7 ) THEN - 47 + ( SUM ( + 53 ) ) END + 38 END ) / + 53 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL + + 95 * SUM( 73 ) AS col0
----
6935

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL + + 95 * SUM ( 73 ) AS col0
----
6935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT COUNT( * ) DIV COUNT( * ) + - 65 DIV - 72
----
1

skipif mysql # not compatible
query I rowsort label-5431
SELECT COUNT ( * ) / COUNT ( * ) + - 65 / - 72
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5432
SELECT + + 63 * + 63 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT + + 63 * + 63 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 91 + - 73 AS col0
----
18

query I rowsort
SELECT + 78 * ( 12 ) AS col0
----
936

query I rowsort
SELECT ALL - 76 + - 33
----
-109

query I rowsort
SELECT ALL - ( + ( 81 ) ) col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT DISTINCT - - 53 + - + COUNT( * ) + + COUNT( * ) * 15
----
67

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT - - 53 + - + COUNT ( * ) + + COUNT ( * ) * 15
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT DISTINCT + 48 + + COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT + 48 + + COUNT ( * ) AS col1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5439
SELECT - 45 DIV - + ( - 89 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5439
SELECT - 45 / - + ( - 89 ) col0
----
0

query I rowsort
SELECT DISTINCT 98 + 87 + ( + 22 ) col0
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5441
SELECT ALL NULLIF ( + 87, - CAST( - 25 AS SIGNED ) - 12 ) * COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL NULLIF ( + 87, - CAST ( - 25 AS INTEGER ) - 12 ) * COUNT ( * ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT + 11 / COALESCE ( 89, 52 + + ( 75 ), 85 ) * + CASE 45 WHEN + CASE 74 WHEN + COUNT( * ) THEN AVG ( 15 ) WHEN 71 + COUNT( * ) THEN NULL END THEN 30 + + 34 WHEN 75 THEN 67 * + 39 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT + 11 / COALESCE ( 89, 52 + + ( 75 ), 85 ) * + CASE 45 WHEN + CASE 74 WHEN + COUNT ( * ) THEN AVG ( 15 ) WHEN 71 + COUNT ( * ) THEN NULL END THEN 30 + + 34 WHEN 75 THEN 67 * + 39 END col0
----
NULL

query I rowsort
SELECT + 57 * - 87 + + 44 + + 79
----
-4836

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT DISTINCT 59 * + + 78 * + MAX( - 12 ) AS col0
----
-55224

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT 59 * + + 78 * + MAX ( - 12 ) AS col0
----
-55224

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + CASE + 34 WHEN + 53 + 99 THEN NULL WHEN COUNT( ALL 24 ) THEN NULL ELSE 45 END
----
45

skipif mysql # not compatible
query I rowsort label-5445
SELECT + CASE + 34 WHEN + 53 + 99 THEN NULL WHEN COUNT ( ALL 24 ) THEN NULL ELSE 45 END
----
45

query I rowsort
SELECT + - ( - - 6 )
----
-6

query I rowsort
SELECT ALL - 0 + + 93 + + 18 * 67
----
1299

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT ALL - 89 * + 70 + 88 DIV - 53 AS col1
----
-6231

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL - 89 * + 70 + 88 / - 53 AS col1
----
-6231

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT ALL 22 - 71 + 63 DIV 5 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL 22 - 71 + 63 / 5 AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5450
SELECT ALL 3, SUM( - CAST( - 6 AS SIGNED ) ) + + 51 AS col2
----
3
57

skipif mysql # not compatible
query II rowsort label-5450
SELECT ALL 3, SUM ( - CAST ( - 6 AS INTEGER ) ) + + 51 AS col2
----
3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT 0 * 9 + + COUNT( 73 ) * 21
----
21

skipif mysql # not compatible
query I rowsort label-5451
SELECT 0 * 9 + + COUNT ( 73 ) * 21
----
21

query I rowsort
SELECT - 63 * 91 - + 67 - 84
----
-5884

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT 96 + + + COALESCE ( + COALESCE ( - 93, - ( 43 ) * CASE - 11 * + 55 WHEN 15 * + 36 - - 71 THEN 87 ELSE 21 * - 0 + 38 END ), COUNT( * ), - 77 + 98 ) + - 55 * + 42 col0
----
-2307

skipif mysql # not compatible
query I rowsort label-5453
SELECT 96 + + + COALESCE ( + COALESCE ( - 93, - ( 43 ) * CASE - 11 * + 55 WHEN 15 * + 36 - - 71 THEN 87 ELSE 21 * - 0 + 38 END ), COUNT ( * ), - 77 + 98 ) + - 55 * + 42 col0
----
-2307

query I rowsort
SELECT ( 12 ) + - NULLIF ( ( - 85 ), + ( - 38 ) ) AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT CAST( NULL AS SIGNED ) + 26 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT CAST ( NULL AS INTEGER ) + 26 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT 15 * + 17 * - MIN( 81 ) * 51
----
-1053405

skipif mysql # not compatible
query I rowsort label-5456
SELECT 15 * + 17 * - MIN ( 81 ) * 51
----
-1053405

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT ALL 15 DIV 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL 15 / 36 AS col1
----
0

query I rowsort
SELECT 22 + - 7 col2
----
15

query I rowsort
SELECT ALL 33 * + 94
----
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL COUNT( ALL + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL COUNT ( ALL + 36 )
----
1

query I rowsort
SELECT 31 + + 92
----
123

query II rowsort
SELECT ALL 83 AS col0, 71 col2
----
83
71

query I rowsort
SELECT DISTINCT - CASE WHEN - 47 <> 15 * ( + 25 ) THEN NULL ELSE 86 END * 75
----
NULL

query I rowsort
SELECT 41 + + 78 AS col1
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5465
SELECT - COUNT( * ), + COUNT( * ) DIV 33 + 58 AS col2
----
-1
58

skipif mysql # not compatible
query II rowsort label-5465
SELECT - COUNT ( * ), + COUNT ( * ) / 33 + 58 AS col2
----
-1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT MIN( 22 ) + 97 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-5466
SELECT MIN ( 22 ) + 97 AS col0
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5467
SELECT ALL + NULLIF ( + 40, 40 + CAST( NULL AS SIGNED ) * - COUNT( * ) ) + 59
----
99

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL + NULLIF ( + 40, 40 + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) + 59
----
99

query II rowsort
SELECT 1 AS col2, 58 + 66 + 29 AS col0
----
1
153

query I rowsort
SELECT + 79 * 71 + + - ( 20 ) AS col1
----
5589

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT ALL - NULLIF ( + + 84, + + CASE 98 WHEN - COUNT( * ) THEN 20 + 0 / 52 ELSE NULL END * 0 )
----
-84

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - NULLIF ( + + 84, + + CASE 98 WHEN - COUNT ( * ) THEN 20 + 0 / 52 ELSE NULL END * 0 )
----
-84

query II rowsort
SELECT + 77, + 48 AS col0
----
77
48

query I rowsort
SELECT ( - NULLIF ( - 7, 60 + + 59 ) ) + 85
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL SUM( + ( + - ( - 77 ) ) ) * MAX( ALL ( + 36 ) ) + - COUNT( ALL - 41 ) AS col2
----
2771

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL SUM ( + ( + - ( - 77 ) ) ) * MAX ( ALL ( + 36 ) ) + - COUNT ( ALL - 41 ) AS col2
----
2771

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT + + 22 * - CASE COUNT( * ) WHEN - 50 THEN 50 END + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT + + 22 * - CASE COUNT ( * ) WHEN - 50 THEN 50 END + 27
----
NULL

query I rowsort
SELECT 29 * 43 * - 3 AS col1
----
-3741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT - + 43 DIV 63 - - - 85 + + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-5476
SELECT - + 43 / 63 - - - 85 + + COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT 9 * COUNT( 22 )
----
9

skipif mysql # not compatible
query I rowsort label-5477
SELECT 9 * COUNT ( 22 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT + + CAST( 91 AS SIGNED ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5478
SELECT + + CAST ( 91 AS INTEGER ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT MIN( DISTINCT + - 27 ) * 50 - 45 * COUNT( * ) - - ( 41 ) * CASE 61 WHEN - MIN( 21 ) * 12 + 67 THEN 32 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT MIN ( DISTINCT + - 27 ) * 50 - 45 * COUNT ( * ) - - ( 41 ) * CASE 61 WHEN - MIN ( 21 ) * 12 + 67 THEN 32 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL COUNT( * ) * - MIN( 58 ) * NULLIF ( + 0, 96 + + 53 ) - - 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL COUNT ( * ) * - MIN ( 58 ) * NULLIF ( + 0, 96 + + 53 ) - - 12 AS col0
----
12

query I rowsort
SELECT - + 23 * 64 AS col0
----
-1472

query II rowsort
SELECT ALL + 19 AS col1, 18 AS col0
----
19
18

query I rowsort
SELECT 7 * + 18 + - - 79 + 94
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT 84 * 75 * NULLIF ( 18, + 11 + 39 * + 52 ) - COUNT( * )
----
113399

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT 84 * 75 * NULLIF ( 18, + 11 + 39 * + 52 ) - COUNT ( * )
----
113399

query I rowsort
SELECT DISTINCT ( - - ( + 94 ) ) - - 43 AS col1
----
137

query I rowsort
SELECT + 93 * + 56 * 6 AS col0
----
31248

query I rowsort
SELECT - 63 * - 89 AS col0
----
5607

query I rowsort
SELECT + NULLIF ( + - 66, - + COALESCE ( 12, + 81 + 0, - 68 ) ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT COUNT( * ) * - + 17 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT COUNT ( * ) * - + 17 AS col0
----
-17

query I rowsort
SELECT - COALESCE ( - 40, + 64 * - + 75 ) - - 18
----
58

query I rowsort
SELECT + ( - 51 ) * - ( + 97 ) AS col0
----
4947

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT - 96 * + COUNT( ALL + - 54 ) + - 80 AS col1
----
-176

skipif mysql # not compatible
query I rowsort label-5492
SELECT - 96 * + COUNT ( ALL + - 54 ) + - 80 AS col1
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL SUM( 85 ) * + - 77 * 32
----
-209440

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL SUM ( 85 ) * + - 77 * 32
----
-209440

query I rowsort
SELECT + 33 * + 99
----
3267

query I rowsort
SELECT + 39 + - + 55
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL 92 * + MAX( + 50 ) AS col2
----
4600

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL 92 * + MAX ( + 50 ) AS col2
----
4600

query II rowsort
SELECT + 3 * - 9 AS col0, - 45 * + 35
----
-27
-1575

query I rowsort
SELECT + 91 - - 75
----
166

query I rowsort
SELECT - 56 * 41
----
-2296

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT - 52 * - + 68 * + COUNT( * ) AS col1
----
3536

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT - 52 * - + 68 * + COUNT ( * ) AS col1
----
3536

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5501
SELECT + - ( - CASE CAST( NULL AS SIGNED ) WHEN + 35 * - 14 THEN NULL ELSE - 28 * + 23 END ) DIV 70
----
-9

skipif mysql # not compatible
query I rowsort label-5501
SELECT + - ( - CASE CAST ( NULL AS INTEGER ) WHEN + 35 * - 14 THEN NULL ELSE - 28 * + 23 END ) / 70
----
-9

query I rowsort
SELECT ALL 51 + 65
----
116

query I rowsort
SELECT DISTINCT + 81 + 38 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL - 59 + 83 + + SUM( 73 ) * 66 * + 2 AS col1
----
9660

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - 59 + 83 + + SUM ( 73 ) * 66 * + 2 AS col1
----
9660

query II rowsort
SELECT DISTINCT 78 * + 37, 89 col0
----
2886
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - NULLIF ( - - COUNT( * ), + - 80 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5506
SELECT - NULLIF ( - - COUNT ( * ), + - 80 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT DISTINCT - ( - + 2 ) * - COUNT( * ) * - 11 * SUM( ALL 95 ) AS col2
----
2090

skipif mysql # not compatible
query I rowsort label-5507
SELECT DISTINCT - ( - + 2 ) * - COUNT ( * ) * - 11 * SUM ( ALL 95 ) AS col2
----
2090

query I rowsort
SELECT ALL + NULLIF ( + 75, 4 * + COALESCE ( 88, - 43 ) ) AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5509
SELECT + + 82 / - + 90 + 56 + - - CASE 43 WHEN 1 THEN NULL ELSE CAST( NULL AS SIGNED ) + ( COALESCE ( - 27, 4 + ( COUNT( * ) ) ) ) * 49 END / + 48 + + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5509
SELECT + + 82 / - + 90 + 56 + - - CASE 43 WHEN 1 THEN NULL ELSE CAST ( NULL AS INTEGER ) + ( COALESCE ( - 27, 4 + ( COUNT ( * ) ) ) ) * 49 END / + 48 + + 23 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5510
SELECT + 69 * - COUNT( * ) + 3 + - 72 * COUNT( * ) - - 74 * CASE CAST( NULL AS SIGNED ) WHEN + ( 71 ) THEN + 59 ELSE - 12 END
----
-1026

skipif mysql # not compatible
query I rowsort label-5510
SELECT + 69 * - COUNT ( * ) + 3 + - 72 * COUNT ( * ) - - 74 * CASE CAST ( NULL AS INTEGER ) WHEN + ( 71 ) THEN + 59 ELSE - 12 END
----
-1026

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5511
SELECT - - 44 + + - 47 / CAST( NULL AS DECIMAL ) + + 5 * + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT - - 44 + + - 47 / CAST ( NULL AS REAL ) + + 5 * + 96
----
NULL

query I rowsort
SELECT - + COALESCE ( - 16, + 47 ) * - 79 * 85 AS col0
----
-107440

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT + + SUM( 99 ) col0
----
99

skipif mysql # not compatible
query I rowsort label-5513
SELECT + + SUM ( 99 ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL - - CASE - + ( - 81 ) WHEN - + COUNT( DISTINCT + 81 ) * - 54 THEN NULL ELSE - 79 + 47 END * MIN( ALL + 3 + 75 ) AS col2
----
-2496

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL - - CASE - + ( - 81 ) WHEN - + COUNT ( DISTINCT + 81 ) * - 54 THEN NULL ELSE - 79 + 47 END * MIN ( ALL + 3 + 75 ) AS col2
----
-2496

onlyif mysql # DIV for integer division: 
query I rowsort label-5515
SELECT - 90 * - 84 + 28 + + 19 DIV 59
----
7588

skipif mysql # not compatible
query I rowsort label-5515
SELECT - 90 * - 84 + 28 + + 19 / 59
----
7588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT - COALESCE ( 59, 80 * + + 12 * - NULLIF ( - CAST( NULL AS SIGNED ) * - 91, + 33 * + 37 ) - - 45 * 23, + CAST( NULL AS SIGNED ), 25 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5516
SELECT - COALESCE ( 59, 80 * + + 12 * - NULLIF ( - CAST ( NULL AS INTEGER ) * - 91, + 33 * + 37 ) - - 45 * 23, + CAST ( NULL AS INTEGER ), 25 ) AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT - - 81 DIV + 94 + - + 76
----
-76

skipif mysql # not compatible
query I rowsort label-5517
SELECT - - 81 / + 94 + - + 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ALL + COUNT( DISTINCT - ( - 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + COUNT ( DISTINCT - ( - 47 ) )
----
1

query I rowsort
SELECT + - COALESCE ( + 73, + 70 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL + + COALESCE ( + COUNT( * ), 29 * - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL + + COALESCE ( + COUNT ( * ), 29 * - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - + 75 - + + COUNT( * ) * - 42 * - COUNT( * ) + COUNT( * )
----
-116

skipif mysql # not compatible
query I rowsort label-5521
SELECT - + 75 - + + COUNT ( * ) * - 42 * - COUNT ( * ) + COUNT ( * )
----
-116

onlyif mysql # aggregate syntax: 
query II rowsort label-5522
SELECT - COUNT( ALL + 15 ) * - 66 col0, 78
----
66
78

skipif mysql # not compatible
query II rowsort label-5522
SELECT - COUNT ( ALL + 15 ) * - 66 col0, 78
----
66
78

query I rowsort
SELECT NULLIF ( - - 49, + ( + 68 ) * + + 24 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT COUNT( * ) * + - 63 + - - 7 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5524
SELECT COUNT ( * ) * + - 63 + - - 7 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT - 92 * - 16 + - - COUNT( * ) + + + 28 + + 76 + 90 AS col2
----
1667

skipif mysql # not compatible
query I rowsort label-5525
SELECT - 92 * - 16 + - - COUNT ( * ) + + + 28 + + 76 + 90 AS col2
----
1667

query I rowsort
SELECT - 34 * + ( + + 70 ) AS col1
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL + 10 * - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL + 10 * - COUNT ( * )
----
-10

query I rowsort
SELECT - 55 * + + 41 - + 54 AS col2
----
-2309

query I rowsort
SELECT DISTINCT + 1 * + 33
----
33

query I rowsort
SELECT - 27 - + 67 - + - ( - - ( - 73 ) ) * 63 * - 14
----
64292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT - 86 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT - 86 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 22, 28 AS col2
----
22
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT - NULLIF ( - + 1, COUNT( * ) + + NULLIF ( 41, - 66 ) * 79 )
----
1

skipif mysql # not compatible
query I rowsort label-5533
SELECT - NULLIF ( - + 1, COUNT ( * ) + + NULLIF ( 41, - 66 ) * 79 )
----
1

query I rowsort
SELECT ALL + 33 * + + 46 + 81 AS col1
----
1599

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT + 97 - - MIN( + + COALESCE ( 49, 90 ) ) - 80 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5535
SELECT + 97 - - MIN ( + + COALESCE ( 49, 90 ) ) - 80 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT SUM( DISTINCT 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5536
SELECT SUM ( DISTINCT 81 ) AS col2
----
81

query I rowsort
SELECT - 68 + + 30 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT + NULLIF ( - CAST( + 41 AS SIGNED ), + 80 + + + 67 ) * + COUNT( * ) - - SUM( 50 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-5538
SELECT + NULLIF ( - CAST ( + 41 AS INTEGER ), + 80 + + + 67 ) * + COUNT ( * ) - - SUM ( 50 ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5539
SELECT ALL CAST( - ( 77 ) AS SIGNED ) * - NULLIF ( + NULLIF ( 44, 28 * - 89 ), - COUNT( * ) )
----
3388

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL CAST ( - ( 77 ) AS INTEGER ) * - NULLIF ( + NULLIF ( 44, 28 * - 89 ), - COUNT ( * ) )
----
3388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT - 44 + CAST( NULL AS SIGNED ) + 67 * - 35 - - + 69 * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT - 44 + CAST ( NULL AS INTEGER ) + 67 * - 35 - - + 69 * + 1
----
NULL

query I rowsort
SELECT + 50 * 32
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT - NULLIF ( - + 57, - COUNT( * ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5542
SELECT - NULLIF ( - + 57, - COUNT ( * ) ) AS col2
----
57

query I rowsort
SELECT ALL + 48 + - 70 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5544
SELECT DISTINCT - ( + COUNT( * ) ) + - 2 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT - ( + COUNT ( * ) ) + - 2 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5545
SELECT DISTINCT 67 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT 67 * + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 62 AS col0, - 68 AS col0
----
-62
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5547
SELECT DISTINCT 74, - CAST( NULL AS SIGNED ) col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-5547
SELECT DISTINCT 74, - CAST ( NULL AS INTEGER ) col2
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT 36 + + 95 * + - ( COUNT( * ) ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5548
SELECT 36 + + 95 * + - ( COUNT ( * ) ) AS col1
----
-59

query I rowsort
SELECT 66 * + - 62 AS col2
----
-4092

onlyif mysql # aggregate syntax: 
query II rowsort label-5550
SELECT DISTINCT + ( - - 20 ) - - 4 col2, + COUNT( * )
----
24
1

skipif mysql # not compatible
query II rowsort label-5550
SELECT DISTINCT + ( - - 20 ) - - 4 col2, + COUNT ( * )
----
24
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5551
SELECT DISTINCT - - CASE + 34 WHEN 78 * CAST( + 95 AS DECIMAL ) THEN NULL ELSE - ( + 40 ) - - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT - - CASE + 34 WHEN 78 * CAST ( + 95 AS REAL ) THEN NULL ELSE - ( + 40 ) - - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5552
SELECT DISTINCT CAST( MAX( - CAST( 26 AS SIGNED ) ) AS SIGNED ) * + + ( + 30 ) - NULLIF ( - 41, ( - 66 ) ) DIV 29
----
-779

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT CAST ( MAX ( - CAST ( 26 AS INTEGER ) ) AS INTEGER ) * + + ( + 30 ) - NULLIF ( - 41, ( - 66 ) ) / 29
----
-779

query I rowsort
SELECT ALL 10 * 22 AS col1
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT + CASE - 44 WHEN + + 41 THEN + - COUNT( * ) / COUNT( ALL 98 ) WHEN 31 THEN + COUNT( * ) WHEN 46 THEN NULL WHEN + 34 THEN + ( - 39 ) END - - 24 * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT + CASE - 44 WHEN + + 41 THEN + - COUNT ( * ) / COUNT ( ALL 98 ) WHEN 31 THEN + COUNT ( * ) WHEN 46 THEN NULL WHEN + 34 THEN + ( - 39 ) END - - 24 * 27
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5555
SELECT 38 DIV - - COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-5555
SELECT 38 / - - COUNT ( * ) AS col1
----
38

query II rowsort
SELECT - 9, + 37 AS col2
----
-9
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL - COUNT( * ) + - MIN( 32 ) + + MAX( ALL 51 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - COUNT ( * ) + - MIN ( 32 ) + + MAX ( ALL 51 ) AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5558
SELECT DISTINCT - 48 col1, 15 + + + 36 * - 10 + + CAST( NULL AS SIGNED ) + - 81 + + COUNT( * ) * - 53 * - CASE 85 / - COUNT( * ) + 26 WHEN - 77 / - 21 + + MIN( 60 ) THEN - COUNT( * ) WHEN 27 + 6 THEN NULL WHEN 80 THEN - 23 ELSE NULL END
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-5558
SELECT DISTINCT - 48 col1, 15 + + + 36 * - 10 + + CAST ( NULL AS INTEGER ) + - 81 + + COUNT ( * ) * - 53 * - CASE 85 / - COUNT ( * ) + 26 WHEN - 77 / - 21 + + MIN ( 60 ) THEN - COUNT ( * ) WHEN 27 + 6 THEN NULL WHEN 80 THEN - 23 ELSE NULL END
----
-48
NULL

query I rowsort
SELECT - 88 * + + ( - 78 ) + - + 85
----
6779

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5560
SELECT 25 - COALESCE ( 7, + - 20 * COUNT( DISTINCT 46 ) ) DIV 13 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5560
SELECT 25 - COALESCE ( 7, + - 20 * COUNT ( DISTINCT 46 ) ) / 13 AS col2
----
25

query I rowsort
SELECT ALL - 42 + - 14
----
-56

query I rowsort
SELECT ALL + 51 * + 67 * - + 79
----
-269943

query I rowsort
SELECT 41 * - ( - 8 ) * + 58 AS col2
----
19024

query I rowsort
SELECT ALL + ( + 50 ) + - ( + 77 ) + + 53
----
26

query I rowsort
SELECT 12 * - 63
----
-756

query I rowsort
SELECT DISTINCT + 70 * - - 82 AS col1
----
5740

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT + 24, COUNT( * ) * + + 92 AS col0
----
24
92

skipif mysql # not compatible
query II rowsort label-5567
SELECT + 24, COUNT ( * ) * + + 92 AS col0
----
24
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT 57 + + 85 + - + COUNT( * ) col2
----
141

skipif mysql # not compatible
query I rowsort label-5568
SELECT 57 + + 85 + - + COUNT ( * ) col2
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) + 78 - + 83 + + COUNT( * ) + + - 20 * + 16 * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) + 78 - + 83 + + COUNT ( * ) + + - 20 * + 16 * 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL + MAX( ALL 93 ) * + 70 AS col0
----
6510

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL + MAX ( ALL 93 ) * + 70 AS col0
----
6510

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + AVG ( - + 54 ) * COUNT( * ) * - CASE + 56 WHEN 18 + 4 * ( 46 ) THEN + 82 END * + MIN( ALL 19 ) + - 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5571
SELECT + AVG ( - + 54 ) * COUNT ( * ) * - CASE + 56 WHEN 18 + 4 * ( 46 ) THEN + 82 END * + MIN ( ALL 19 ) + - 40 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 83, - 70 - + 85 AS col1
----
83
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-5573
SELECT DISTINCT 36 AS col2, - COUNT( * ) * - 43 + + + 0 - - 42
----
36
85

skipif mysql # not compatible
query II rowsort label-5573
SELECT DISTINCT 36 AS col2, - COUNT ( * ) * - 43 + + + 0 - - 42
----
36
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5574
SELECT DISTINCT 26 DIV ( + 43 )
----
0

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT 26 / ( + 43 )
----
0

query II rowsort
SELECT DISTINCT 79 AS col1, - 79 - - 87 + + - 30
----
79
-22

query I rowsort
SELECT ALL - + 82 - + - 20
----
-62

query I rowsort
SELECT + 30 * - 14 * + 35 col1
----
-14700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5578
SELECT + COALESCE ( COALESCE ( + CASE - CASE + CASE - ( - 83 ) WHEN COUNT( * ) + 81 * 44 THEN - 34 ELSE COUNT( * ) END WHEN 15 THEN - 80 WHEN - COUNT( * ) * COUNT( * ) THEN + 48 - 54 * - COUNT( * ) WHEN ( 15 ) + + AVG ( CAST( NULL AS SIGNED ) ) THEN NULL END WHEN ( SUM( + 50 ) ) * - 36 + COUNT( * ) * 52 THEN - CAST( - SUM( 28 ) AS SIGNED ) ELSE NULL END, - 69, - 76 ), - COUNT( * ), - 88 )
----
-69

skipif mysql # not compatible
query I rowsort label-5578
SELECT + COALESCE ( COALESCE ( + CASE - CASE + CASE - ( - 83 ) WHEN COUNT ( * ) + 81 * 44 THEN - 34 ELSE COUNT ( * ) END WHEN 15 THEN - 80 WHEN - COUNT ( * ) * COUNT ( * ) THEN + 48 - 54 * - COUNT ( * ) WHEN ( 15 ) + + AVG ( CAST ( NULL AS INTEGER ) ) THEN NULL END WHEN ( SUM ( + 50 ) ) * - 36 + COUNT ( * ) * 52 THEN - CAST ( - SUM ( 28 ) AS INTEGER ) ELSE NULL END, - 69, - 76 ), - COUNT ( * ), - 88 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5579
SELECT ALL - 57 DIV - ( + - MAX( ALL 99 ) ) * 22 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL - 57 / - ( + - MAX ( ALL 99 ) ) * 22 AS col2
----
0

query I rowsort
SELECT 12 * + 34 + - 69
----
339

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5581
SELECT ALL - + SUM( ALL - 25 ) DIV - COUNT( ALL + 77 ) AS col1, + MIN( + - 76 ) * 74 AS col1
----
-25
-5624

skipif mysql # not compatible
query II rowsort label-5581
SELECT ALL - + SUM ( ALL - 25 ) / - COUNT ( ALL + 77 ) AS col1, + MIN ( + - 76 ) * 74 AS col1
----
-25
-5624

onlyif mysql # DIV for integer division: 
query II rowsort label-5582
SELECT - - 45 AS col0, 89 DIV + 24 AS col0
----
45
3

skipif mysql # not compatible
query II rowsort label-5582
SELECT - - 45 AS col0, 89 / + 24 AS col0
----
45
3

query I rowsort
SELECT + 89 - + + 50 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5584
SELECT ALL 14 AS col2, + CAST( COUNT( DISTINCT + + 16 ) AS SIGNED ) * + 53 + MIN( 97 )
----
14
150

skipif mysql # not compatible
query II rowsort label-5584
SELECT ALL 14 AS col2, + CAST ( COUNT ( DISTINCT + + 16 ) AS INTEGER ) * + 53 + MIN ( 97 )
----
14
150

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT ALL MIN( COALESCE ( - 35, - 92 + + 49 ) ) * + 34 + + CASE - 74 WHEN - 10 + 82 THEN 40 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL MIN ( COALESCE ( - 35, - 92 + + 49 ) ) * + 34 + + CASE - 74 WHEN - 10 + 82 THEN 40 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT 60 * + CAST( NULL AS SIGNED ) / - - 6 / + COUNT( * ) + - 78 + + 13 - + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT 60 * + CAST ( NULL AS INTEGER ) / - - 6 / + COUNT ( * ) + - 78 + + 13 - + 40 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5587
SELECT - + 86 * + - CASE 3 WHEN - COUNT( * ) THEN 31 - + 62 WHEN ( 85 ) + 75 THEN + 90 * - CAST( 95 AS SIGNED ) END + + NULLIF ( 24, COUNT( * ) ) * 83 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT - + 86 * + - CASE 3 WHEN - COUNT ( * ) THEN 31 - + 62 WHEN ( 85 ) + 75 THEN + 90 * - CAST ( 95 AS INTEGER ) END + + NULLIF ( 24, COUNT ( * ) ) * 83 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ( 27 ) * + SUM( - 62 ) * + - 74 + 44 + + 5
----
123925

skipif mysql # not compatible
query I rowsort label-5588
SELECT ( 27 ) * + SUM ( - 62 ) * + - 74 + 44 + + 5
----
123925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5589
SELECT - + CAST( NULL AS SIGNED ) * NULLIF ( + - ( + 36 ), - 31 + - - 40 * 86 ) + COUNT( - 84 ) * + 97 + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT - + CAST ( NULL AS INTEGER ) * NULLIF ( + - ( + 36 ), - 31 + - - 40 * 86 ) + COUNT ( - 84 ) * + 97 + - 26
----
NULL

query II rowsort
SELECT + 27 AS col1, 50
----
27
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5591
SELECT MIN( 85 ) col0, - 29 AS col1
----
85
-29

skipif mysql # not compatible
query II rowsort label-5591
SELECT MIN ( 85 ) col0, - 29 AS col1
----
85
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL COUNT( * ) + + - 97 + + 62 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL COUNT ( * ) + + - 97 + + 62 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5593
SELECT ALL CAST( NULL AS SIGNED ) + + 33 / 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL CAST ( NULL AS INTEGER ) + + 33 / 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT COUNT( ( + + 77 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5594
SELECT COUNT ( ( + + 77 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT - CASE MIN( 73 ) WHEN + + COUNT( * ) - - 44 THEN 86 END * - 53 + - SUM( DISTINCT 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT - CASE MIN ( 73 ) WHEN + + COUNT ( * ) - - 44 THEN 86 END * - 53 + - SUM ( DISTINCT 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL - COUNT( ALL + 45 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL - COUNT ( ALL + 45 ) AS col2
----
-1

query I rowsort
SELECT ALL 69 + - 81 AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5598
SELECT 12 + + + 86 + + - 17 - 12 / ( + CAST( NULL AS SIGNED ) ) / + - ( 43 ) * 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT 12 + + + 86 + + - 17 - 12 / ( + CAST ( NULL AS INTEGER ) ) / + - ( 43 ) * 30 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5599
SELECT ALL - SUM( ALL 20 ) AS col1, CAST( 67 AS SIGNED )
----
-20
67

skipif mysql # not compatible
query II rowsort label-5599
SELECT ALL - SUM ( ALL 20 ) AS col1, CAST ( 67 AS INTEGER )
----
-20
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT + 46 * + - 10 * + CASE WHEN + 98 NOT IN ( - - 13 + - ( 95 ) ) THEN NULL WHEN ( 82 ) IN ( + 17 ) THEN - 66 * + 83 ELSE - COUNT( * ) * ( - 27 ) END + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT + 46 * + - 10 * + CASE WHEN + 98 NOT IN ( - - 13 + - ( 95 ) ) THEN NULL WHEN ( 82 ) IN ( + 17 ) THEN - 66 * + 83 ELSE - COUNT ( * ) * ( - 27 ) END + 97 AS col2
----
NULL

query I rowsort
SELECT - 8 * + NULLIF ( - 95, - - 50 ) - - ( 82 ) AS col2
----
842

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT - MIN( ALL + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT - MIN ( ALL + 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT - SUM( DISTINCT - 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - SUM ( DISTINCT - 26 ) AS col1
----
26

query I rowsort
SELECT ALL + 21 * - 86
----
-1806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT 37 + CASE + 98 WHEN - CASE + 76 WHEN + - NULLIF ( + + 18, - CASE COUNT( * ) WHEN COUNT( * ) + COUNT( * ) THEN NULL WHEN - 88 THEN + 31 END ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + CASE + 45 WHEN 74 + + 25 * NULLIF ( ( CASE 92 WHEN - 4 THEN - 2 * - SUM( ( CAST( 56 AS SIGNED ) ) ) WHEN - MAX( DISTINCT 28 ) + 87 THEN NULL END ), 27 ) THEN 73 + COUNT( * ) WHEN + 1 / + 2 - COUNT( * ) THEN NULL END / 74 END - 30 THEN NULL WHEN 29 THEN + 15 + 1 * + 16 WHEN + MIN( DISTINCT + 88 ) THEN - 74 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT 37 + CASE + 98 WHEN - CASE + 76 WHEN + - NULLIF ( + + 18, - CASE COUNT ( * ) WHEN COUNT ( * ) + COUNT ( * ) THEN NULL WHEN - 88 THEN + 31 END ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + CASE + 45 WHEN 74 + + 25 * NULLIF ( ( CASE 92 WHEN - 4 THEN - 2 * - SUM ( ( CAST ( 56 AS INTEGER ) ) ) WHEN - MAX ( DISTINCT 28 ) + 87 THEN NULL END ), 27 ) THEN 73 + COUNT ( * ) WHEN + 1 / + 2 - COUNT ( * ) THEN NULL END / 74 END - 30 THEN NULL WHEN 29 THEN + 15 + 1 * + 16 WHEN + MIN ( DISTINCT + 88 ) THEN - 74 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT 80 - - 51 DIV + 48 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-5606
SELECT 80 - - 51 / + 48 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL + - 67 * + 10 * - - MIN( DISTINCT - + NULLIF ( + ( - 4 ), - - 11 ) )
----
-2680

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL + - 67 * + 10 * - - MIN ( DISTINCT - + NULLIF ( + ( - 4 ), - - 11 ) )
----
-2680

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT + NULLIF ( - 47, + 1 + + SUM( 78 ) - NULLIF ( 35, 23 ) * - 84 ) + SUM( DISTINCT 74 )
----
27

skipif mysql # not compatible
query I rowsort label-5608
SELECT + NULLIF ( - 47, + 1 + + SUM ( 78 ) - NULLIF ( 35, 23 ) * - 84 ) + SUM ( DISTINCT 74 )
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5609
SELECT - + 0 - + 58, + 47 / CAST( NULL AS DECIMAL ) AS col2
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-5609
SELECT - + 0 - + 58, + 47 / CAST ( NULL AS REAL ) AS col2
----
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT - - 31 + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5610
SELECT - - 31 + + COUNT ( * )
----
32

query I rowsort
SELECT - - 26 - - + 16 * - 68 col0
----
-1062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5612
SELECT - + CASE - COALESCE ( + NULLIF ( 14, - + 30 / - + ( - + 3 ) * - 87 + 35 ), - ( 73 ), + 83 * - 0 ) WHEN CAST( NULL AS SIGNED ) + COUNT( * ) THEN NULL WHEN MIN( DISTINCT 28 ) + - 30 THEN COUNT( * ) * CAST( NULL AS SIGNED ) END * + ( 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT - + CASE - COALESCE ( + NULLIF ( 14, - + 30 / - + ( - + 3 ) * - 87 + 35 ), - ( 73 ), + 83 * - 0 ) WHEN CAST ( NULL AS INTEGER ) + COUNT ( * ) THEN NULL WHEN MIN ( DISTINCT 28 ) + - 30 THEN COUNT ( * ) * CAST ( NULL AS INTEGER ) END * + ( 71 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5613
SELECT ALL CAST( + 27 AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL CAST ( + 27 AS INTEGER ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5614
SELECT - 73 + - 7 AS col2, COUNT( * ) AS col1
----
-80
1

skipif mysql # not compatible
query II rowsort label-5614
SELECT - 73 + - 7 AS col2, COUNT ( * ) AS col1
----
-80
1

query I rowsort
SELECT ALL - 34 * + 54 AS col2
----
-1836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT - 86 + + CAST( NULL AS SIGNED ) * + ( 13 ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT - 86 + + CAST ( NULL AS INTEGER ) * + ( 13 ) * - 46
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5617
SELECT ALL COALESCE ( + 98, - - 33, + 72 ) DIV - + 2
----
-49

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL COALESCE ( + 98, - - 33, + 72 ) / - + 2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5618
SELECT - - 74 DIV - 68 + - 52 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-5618
SELECT - - 74 / - 68 + - 52 AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5619
SELECT ALL - COUNT( * ) + + NULLIF ( + CAST( NULL AS SIGNED ), + + 28 ) * COALESCE ( + NULLIF ( SUM( DISTINCT - 97 ), 59 * 42 ), 13 - MIN( DISTINCT 99 + 58 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL - COUNT ( * ) + + NULLIF ( + CAST ( NULL AS INTEGER ), + + 28 ) * COALESCE ( + NULLIF ( SUM ( DISTINCT - 97 ), 59 * 42 ), 13 - MIN ( DISTINCT 99 + 58 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT - - COALESCE ( - - 55, - ( - 48 ) * + + 33, COUNT( * ), 38 * 86 ) * + 78
----
4290

skipif mysql # not compatible
query I rowsort label-5620
SELECT - - COALESCE ( - - 55, - ( - 48 ) * + + 33, COUNT ( * ), 38 * 86 ) * + 78
----
4290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5621
SELECT - + 13 / - ( - CAST( - 44 AS SIGNED ) ) / + + CAST( NULL AS SIGNED ) * - ( - 49 ) + 20 * AVG ( ALL + 0 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT - + 13 / - ( - CAST ( - 44 AS INTEGER ) ) / + + CAST ( NULL AS INTEGER ) * - ( - 49 ) + 20 * AVG ( ALL + 0 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT + + COUNT( * ) + + - ( 0 )
----
1

skipif mysql # not compatible
query I rowsort label-5622
SELECT + + COUNT ( * ) + + - ( 0 )
----
1

query I rowsort
SELECT ALL - 69 + + 21 + 28 * 53 AS col0
----
1436

query I rowsort
SELECT - 3 * + - 54
----
162

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5625
SELECT ALL + AVG ( ALL - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL + AVG ( ALL - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5626
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * - 66 + - - 56 + - CAST( + + CASE 13 WHEN - - 56 * 1 THEN + 63 ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * - 66 + - - 56 + - CAST ( + + CASE 13 WHEN - - 56 * 1 THEN + 63 ELSE NULL END AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5627
SELECT DISTINCT + 45 * + 11 + - - 51, 54 DIV + 9 AS col1
----
546
6

skipif mysql # not compatible
query II rowsort label-5627
SELECT DISTINCT + 45 * + 11 + - - 51, 54 / + 9 AS col1
----
546
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT + MAX( DISTINCT + 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5628
SELECT + MAX ( DISTINCT + 15 ) AS col1
----
15

query I rowsort
SELECT - 51 - - COALESCE ( + 34, - 78, 83 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT + COALESCE ( - 55, - 20 * + - 38 * COUNT( * ) + + 42 + - + 35 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5630
SELECT + COALESCE ( - 55, - 20 * + - 38 * COUNT ( * ) + + 42 + - + 35 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT CASE + 63 WHEN 74 THEN + - 19 WHEN + MIN( + + 82 ) * + ( + 42 ) / 25 THEN 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT CASE + 63 WHEN 74 THEN + - 19 WHEN + MIN ( + + 82 ) * + ( + 42 ) / 25 THEN 25 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT + 4 / 90 + + 52 + + + 45 + - 75 + 27 * - 67 * + - CASE 5 WHEN + 77 THEN 29 + 36 ELSE - 75 * + 4 END * + 92 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT + 4 / 90 + + 52 + + + 45 + - 75 + 27 * - 67 * + - CASE 5 WHEN + 77 THEN 29 + 36 ELSE - 75 * + 4 END * + 92 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5633
SELECT ALL NULLIF ( - COUNT( * ), 15 / - + 10 ) * + 30 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL NULLIF ( - COUNT ( * ), 15 / - + 10 ) * + 30 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5634
SELECT DISTINCT 62 DIV COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT 62 / COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL - 89 * COALESCE ( 17, ( 13 ) + - 91, - + CASE + COALESCE ( 4, + 87 ) WHEN + MIN( 88 ) + 80 * 23 THEN NULL WHEN 41 + 70 * + 79 THEN + 93 END * + 35 + 49 ) AS col2
----
-1513

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL - 89 * COALESCE ( 17, ( 13 ) + - 91, - + CASE + COALESCE ( 4, + 87 ) WHEN + MIN ( 88 ) + 80 * 23 THEN NULL WHEN 41 + 70 * + 79 THEN + 93 END * + 35 + 49 ) AS col2
----
-1513

onlyif mysql # aggregate syntax: 
query II rowsort label-5636
SELECT + 91 + + 16 + - 57 * - 50 + COUNT( * ) * 83 AS col0, 28 * 40 * + COUNT( * )
----
3040
1120

skipif mysql # not compatible
query II rowsort label-5636
SELECT + 91 + + 16 + - 57 * - 50 + COUNT ( * ) * 83 AS col0, 28 * 40 * + COUNT ( * )
----
3040
1120

query I rowsort
SELECT ALL 97 * - 51
----
-4947

onlyif mysql # aggregate syntax: 
query II rowsort label-5638
SELECT ALL COUNT( * ) * 31 - 11 AS col1, 6 AS col0
----
20
6

skipif mysql # not compatible
query II rowsort label-5638
SELECT ALL COUNT ( * ) * 31 - 11 AS col1, 6 AS col0
----
20
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT + CASE - 61 WHEN + 94 * + 77 THEN NULL ELSE - NULLIF ( + 90, + MIN( DISTINCT - ( - 4 ) ) * 91 + - 60 ) END AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5639
SELECT + CASE - 61 WHEN + 94 * + 77 THEN NULL ELSE - NULLIF ( + 90, + MIN ( DISTINCT - ( - 4 ) ) * 91 + - 60 ) END AS col0
----
-90

query II rowsort
SELECT DISTINCT 90 * - 6 * + - 32, + 21 + + 74 AS col0
----
17280
95

query II rowsort
SELECT ALL + 20, + 43 AS col1
----
20
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT - - 71 * - COUNT( * ) + - CASE + 51 WHEN - COUNT( * ) * + - 27 THEN 14 * - 85 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT - - 71 * - COUNT ( * ) + - CASE + 51 WHEN - COUNT ( * ) * + - 27 THEN 14 * - 85 END
----
NULL

query I rowsort
SELECT + 44 * 18
----
792

query I rowsort
SELECT DISTINCT 13 * 43 AS col2
----
559

query II rowsort
SELECT ALL 31 AS col1, + 31 AS col0
----
31
31

query I rowsort
SELECT DISTINCT + COALESCE ( - + 90, + + 43 * - 93 * 17 ) AS col1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5647
SELECT ( + CAST( + + 60 AS SIGNED ) )
----
60

skipif mysql # not compatible
query I rowsort label-5647
SELECT ( + CAST ( + + 60 AS INTEGER ) )
----
60

query I rowsort
SELECT + + 8 - 77
----
-69

query I rowsort
SELECT + ( - 96 ) * 54 AS col1
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT - - 44 * + + MAX( 45 )
----
1980

skipif mysql # not compatible
query I rowsort label-5650
SELECT - - 44 * + + MAX ( 45 )
----
1980

query I rowsort
SELECT + - 33 - 60 AS col2
----
-93

query I rowsort
SELECT ALL - ( - 73 ) * - 35 AS col2
----
-2555

query II rowsort
SELECT - + 77 AS col1, 44 * + - NULLIF ( - - 98, + 73 ) AS col2
----
-77
-4312

onlyif mysql # DIV for integer division: 
query I rowsort label-5654
SELECT - - ( - ( - 56 ) ) * 2 DIV + + 48 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5654
SELECT - - ( - ( - 56 ) ) * 2 / + + 48 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5655
SELECT DISTINCT - CASE - ( - COUNT( * ) ) WHEN - CASE 78 WHEN + COUNT( * ) * - 75 THEN NULL ELSE 89 * CAST( NULL AS SIGNED ) + - 81 END * 27 THEN NULL WHEN - ( CAST( + 81 AS SIGNED ) ) THEN CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT - CASE - ( - COUNT ( * ) ) WHEN - CASE 78 WHEN + COUNT ( * ) * - 75 THEN NULL ELSE 89 * CAST ( NULL AS INTEGER ) + - 81 END * 27 THEN NULL WHEN - ( CAST ( + 81 AS INTEGER ) ) THEN CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5656
SELECT - + CAST( NULL AS SIGNED ) AS col2, + 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-5656
SELECT - + CAST ( NULL AS INTEGER ) AS col2, + 48
----
NULL
48

query I rowsort
SELECT ALL COALESCE ( 56, + + 10 + + 63 - + 99 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT DISTINCT + - NULLIF ( + 44, - - COUNT( ALL + 48 ) ) + 90
----
46

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT + - NULLIF ( + 44, - - COUNT ( ALL + 48 ) ) + 90
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT DISTINCT 16 + - COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT 16 + - COUNT ( * ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5660
SELECT DISTINCT ( 55 ), COUNT( * ) AS col0
----
55
1

skipif mysql # not compatible
query II rowsort label-5660
SELECT DISTINCT ( 55 ), COUNT ( * ) AS col0
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT ALL ( - COUNT( ALL 23 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL ( - COUNT ( ALL 23 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5662
SELECT - 51 + + - MIN( DISTINCT 61 ) DIV + 91 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-5662
SELECT - 51 + + - MIN ( DISTINCT 61 ) / + 91 AS col2
----
-51

query I rowsort
SELECT - 57 * + + 5
----
-285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5664
SELECT 93 * - CAST( + NULLIF ( ( - - 24 ), - 19 ) AS SIGNED ) * 77 - - + NULLIF ( 83, + 37 + + 21 * 75 ) + - 65
----
-171846

skipif mysql # not compatible
query I rowsort label-5664
SELECT 93 * - CAST ( + NULLIF ( ( - - 24 ), - 19 ) AS INTEGER ) * 77 - - + NULLIF ( 83, + 37 + + 21 * 75 ) + - 65
----
-171846

query II rowsort
SELECT - 21 * - - 36, 8 AS col0
----
-756
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT ALL + 20 DIV 48 * 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL + 20 / 48 * 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5667
SELECT - 97 * - - 21 AS col2, - 4 * COUNT( * ) - - 89
----
-2037
85

skipif mysql # not compatible
query II rowsort label-5667
SELECT - 97 * - - 21 AS col2, - 4 * COUNT ( * ) - - 89
----
-2037
85

query I rowsort
SELECT ALL 9 * 14 AS col1
----
126

query I rowsort
SELECT DISTINCT - 48 * - 83 * 1
----
3984

query I rowsort
SELECT + 67 * + - 82
----
-5494

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5671
SELECT ALL - 21 * - 32 * - + CASE + CAST( + + 53 AS DECIMAL ) WHEN - 61 THEN + COUNT( * ) + + AVG ( DISTINCT 73 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL - 21 * - 32 * - + CASE + CAST ( + + 53 AS REAL ) WHEN - 61 THEN + COUNT ( * ) + + AVG ( DISTINCT 73 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 12 * - - 67 + + + 72 + 45
----
921

query I rowsort
SELECT DISTINCT - COALESCE ( + 79, 27 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5674
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) * - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) * - - 54
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5675
SELECT + 41 - + AVG ( ALL + + 18 ) + - + CAST( NULL AS SIGNED ) / + 58 * + 97 + 44 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT + 41 - + AVG ( ALL + + 18 ) + - + CAST ( NULL AS INTEGER ) / + 58 * + 97 + 44 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT MIN( + 26 ) + + 33
----
59

skipif mysql # not compatible
query I rowsort label-5676
SELECT MIN ( + 26 ) + + 33
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT DISTINCT 3 + - SUM( ALL - 43 ) * COALESCE ( + + 35, 43 ) + 45
----
1553

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT 3 + - SUM ( ALL - 43 ) * COALESCE ( + + 35, 43 ) + 45
----
1553

query I rowsort
SELECT ALL + 68 + - 34 - - - 95 AS col1
----
-61

query I rowsort
SELECT 69 + + 8 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5680
SELECT ALL - CASE 1 WHEN + 22 THEN - - 41 * 5 * - CAST( NULL AS SIGNED ) WHEN 85 - 77 * + + SUM( 56 ) THEN NULL WHEN + MIN( ALL - 43 ) THEN NULL END + + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL - CASE 1 WHEN + 22 THEN - - 41 * 5 * - CAST ( NULL AS INTEGER ) WHEN 85 - 77 * + + SUM ( 56 ) THEN NULL WHEN + MIN ( ALL - 43 ) THEN NULL END + + 52 AS col0
----
NULL

query I rowsort
SELECT 58 - + 17 AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5682
SELECT ALL 74 + - 51 DIV - - 6 + + + 0
----
66

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL 74 + - 51 / - - 6 + + + 0
----
66

query I rowsort
SELECT ALL 88 + - 30
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5684
SELECT + 58 * + + 70 * + CAST( + COUNT( * ) AS SIGNED ), 23 AS col2
----
4060
23

skipif mysql # not compatible
query II rowsort label-5684
SELECT + 58 * + + 70 * + CAST ( + COUNT ( * ) AS INTEGER ), 23 AS col2
----
4060
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT DISTINCT COUNT( * ) + SUM( DISTINCT + 51 ) * - 15 + - 71 * 12
----
-1616

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT COUNT ( * ) + SUM ( DISTINCT + 51 ) * - 15 + - 71 * 12
----
-1616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5686
SELECT ALL + 52 + - CAST( NULL AS SIGNED ), - ( + 71 ) DIV + 62 + ( + MAX( - CAST( + 3 AS SIGNED ) ) ) AS col0
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-5686
SELECT ALL + 52 + - CAST ( NULL AS INTEGER ), - ( + 71 ) / + 62 + ( + MAX ( - CAST ( + 3 AS INTEGER ) ) ) AS col0
----
NULL
-4

query I rowsort
SELECT + 85 + - - 83
----
168

query I rowsort
SELECT + 98 + - 63 AS col2
----
35

query I rowsort
SELECT 44 + - - 42 col2
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5690
SELECT ALL CAST( NULL AS DECIMAL ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL CAST ( NULL AS REAL ) + + 21
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5691
SELECT DISTINCT - CAST( + 81 AS SIGNED ) - + 50 + 66 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT - CAST ( + 81 AS INTEGER ) - + 50 + 66 AS col0
----
-65

query I rowsort
SELECT DISTINCT + 7 * + 91
----
637

query I rowsort
SELECT ALL CASE + + 86 WHEN - + 23 THEN - 21 + - + 26 WHEN - 22 THEN NULL END * + 4 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 45 - 72 + - 96
----
-123

query I rowsort
SELECT ALL - NULLIF ( - 58, - 40 )
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5696
SELECT + 96 DIV + 4 + + - ( - - 77 ) * + - 22 AS col0
----
1718

skipif mysql # not compatible
query I rowsort label-5696
SELECT + 96 / + 4 + + - ( - - 77 ) * + - 22 AS col0
----
1718

query I rowsort
SELECT DISTINCT + 16 * 4
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5698
SELECT ( COUNT( * ) ) DIV + - 75 AS col2, + 72
----
0
72

skipif mysql # not compatible
query II rowsort label-5698
SELECT ( COUNT ( * ) ) / + - 75 AS col2, + 72
----
0
72

query I rowsort
SELECT 75 * - - 44 AS col2
----
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT - COUNT( * ) * - 10 + + 34
----
44

skipif mysql # not compatible
query I rowsort label-5700
SELECT - COUNT ( * ) * - 10 + + 34
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT 49 - + - COUNT( * ) * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-5701
SELECT 49 - + - COUNT ( * ) * COUNT ( * )
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5702
SELECT + 8 * COUNT( * ) - + - 64 AS col1, - 10 + - CAST( NULL AS DECIMAL ) + + COUNT( * ) * + 9 * - + ( + - 2 )
----
72
NULL

skipif mysql # not compatible
query II rowsort label-5702
SELECT + 8 * COUNT ( * ) - + - 64 AS col1, - 10 + - CAST ( NULL AS REAL ) + + COUNT ( * ) * + 9 * - + ( + - 2 )
----
72
NULL

query I rowsort
SELECT ALL + 62 * - 73
----
-4526

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT 65 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-5704
SELECT 65 / 50
----
1

query I rowsort
SELECT DISTINCT + 44 * - 11 * - 50
----
24200

query I rowsort
SELECT + + NULLIF ( - 75, + 85 ) AS col2
----
-75

query I rowsort
SELECT ALL - 58 + - 37 col2
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-5708
SELECT ALL + 47 + + - MIN( + + 2 ) AS col2, 75
----
45
75

skipif mysql # not compatible
query II rowsort label-5708
SELECT ALL + 47 + + - MIN ( + + 2 ) AS col2, 75
----
45
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT ALL - 89 * + 86 * - COUNT( DISTINCT - 34 )
----
7654

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL - 89 * + 86 * - COUNT ( DISTINCT - 34 )
----
7654

query I rowsort
SELECT DISTINCT - - 18 + + - 18 AS col0
----
0

query I rowsort
SELECT DISTINCT + 55 * 18 * + COALESCE ( - 24, + 4 )
----
-23760

onlyif mysql # aggregate syntax: 
query II rowsort label-5712
SELECT ALL - SUM( DISTINCT - 42 ) + 21 + - ( 33 ) AS col0, + 94
----
30
94

skipif mysql # not compatible
query II rowsort label-5712
SELECT ALL - SUM ( DISTINCT - 42 ) + 21 + - ( 33 ) AS col0, + 94
----
30
94

query II rowsort
SELECT + + 37, - 62 + + + 46 AS col1
----
37
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT - 64 * - CAST( 40 AS SIGNED ) * + 4 * - SUM( DISTINCT - + 28 ) + - - ( - - 11 )
----
286731

skipif mysql # not compatible
query I rowsort label-5714
SELECT - 64 * - CAST ( 40 AS INTEGER ) * + 4 * - SUM ( DISTINCT - + 28 ) + - - ( - - 11 )
----
286731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5715
SELECT DISTINCT - COUNT( * ) AS col2, 85 / - + 83 + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5715
SELECT DISTINCT - COUNT ( * ) AS col2, 85 / - + 83 + CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT ALL - CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE CASE - 86 WHEN - 37 THEN - + 43 END END + + - 27 AS col0
----
NULL

query I rowsort
SELECT + 55 * + - NULLIF ( + 81, + 86 )
----
-4455

query I rowsort
SELECT - - ( 16 )
----
16

query I rowsort
SELECT ALL - + 76 + - 54 AS col2
----
-130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5720
SELECT DISTINCT - 12 DIV - NULLIF ( ( + 31 ), + - COALESCE ( 19, + 46 ) + - COUNT( * ) + + NULLIF ( 70, 12 * - 58 + - 57 * 72 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT - 12 / - NULLIF ( ( + 31 ), + - COALESCE ( 19, + 46 ) + - COUNT ( * ) + + NULLIF ( 70, 12 * - 58 + - 57 * 72 ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5721
SELECT COUNT( * ), + COUNT( CAST( 31 AS SIGNED ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-5721
SELECT COUNT ( * ), + COUNT ( CAST ( 31 AS INTEGER ) )
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5722
SELECT - COUNT( * ) - + 95 - 10 DIV + 81
----
-96

skipif mysql # not compatible
query I rowsort label-5722
SELECT - COUNT ( * ) - + 95 - 10 / + 81
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT - 91 * + + NULLIF ( - 2, + 69 / - 52 * 79 + + COUNT( * ) ) * + - 71 + 49
----
-12873

skipif mysql # not compatible
query I rowsort label-5723
SELECT - 91 * + + NULLIF ( - 2, + 69 / - 52 * 79 + + COUNT ( * ) ) * + - 71 + 49
----
-12873

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT COUNT( * ) - - - 51
----
-50

skipif mysql # not compatible
query I rowsort label-5724
SELECT COUNT ( * ) - - - 51
----
-50

query II rowsort
SELECT ALL 95 AS col1, - COALESCE ( - 4, - 39 ) - + - 42
----
95
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL COUNT( * ) * + 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL COUNT ( * ) * + 74 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5727
SELECT ALL 92 DIV + ( - NULLIF ( + - COUNT( * ), - 9 * - 10 ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL 92 / + ( - NULLIF ( + - COUNT ( * ), - 9 * - 10 ) ) AS col1
----
92

query I rowsort
SELECT 50 - + 2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5729
SELECT ALL 6 AS col2, ( - - COUNT( * ) ) + - 31 + - + 16 * + 74 * 10 * + CAST( - - ( - 37 ) AS SIGNED ) * + COALESCE ( 80, 20 + - 5 ) + 36
----
6
35046406

skipif mysql # not compatible
query II rowsort label-5729
SELECT ALL 6 AS col2, ( - - COUNT ( * ) ) + - 31 + - + 16 * + 74 * 10 * + CAST ( - - ( - 37 ) AS INTEGER ) * + COALESCE ( 80, 20 + - 5 ) + 36
----
6
35046406

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT CASE - 36 WHEN - COALESCE ( + 45, + 45, - COUNT( * ) ) THEN - 10 ELSE + ( + - 66 ) * - 19 END - - 60 * + SUM( 68 )
----
5334

skipif mysql # not compatible
query I rowsort label-5730
SELECT CASE - 36 WHEN - COALESCE ( + 45, + 45, - COUNT ( * ) ) THEN - 10 ELSE + ( + - 66 ) * - 19 END - - 60 * + SUM ( 68 )
----
5334

query I rowsort
SELECT 69 + + + 10
----
79

query II rowsort
SELECT 2, 22 AS col1
----
2
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + COUNT( * ) + - + 12 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5733
SELECT + COUNT ( * ) + - + 12 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT + MIN( DISTINCT + 38 ) * - 31 AS col2
----
-1178

skipif mysql # not compatible
query I rowsort label-5734
SELECT + MIN ( DISTINCT + 38 ) * - 31 AS col2
----
-1178

query I rowsort
SELECT COALESCE ( 66, 7, - 70 ) AS col2
----
66

query I rowsort
SELECT DISTINCT + 85 * - - ( + + 55 ) AS col1
----
4675

query I rowsort
SELECT + COALESCE ( - - 74, - - 68 )
----
74

query I rowsort
SELECT ALL 54 * + - 22 + + 86 AS col2
----
-1102

query I rowsort
SELECT ALL 4 * - 72 + + ( + 7 ) + ( 74 ) col1
----
-207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5740
SELECT DISTINCT 31 * - - CAST( CASE - - 52 WHEN + 75 THEN + COUNT( * ) WHEN 17 THEN NULL END AS SIGNED ) * + 94 + 41 / + 32 * + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT 31 * - - CAST ( CASE - - 52 WHEN + 75 THEN + COUNT ( * ) WHEN 17 THEN NULL END AS INTEGER ) * + 94 + 41 / + 32 * + - 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5741
SELECT ALL + 20 AS col1, + 14 * - COUNT( * )
----
20
-14

skipif mysql # not compatible
query II rowsort label-5741
SELECT ALL + 20 AS col1, + 14 * - COUNT ( * )
----
20
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT NULLIF ( COUNT( * ), + 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5742
SELECT NULLIF ( COUNT ( * ), + 29 ) AS col0
----
1

query I rowsort
SELECT ALL 98 * + 39 AS col2
----
3822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5744
SELECT + + 88 DIV - - 79 - - COUNT( * ) + + 54 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5744
SELECT + + 88 / - - 79 - - COUNT ( * ) + + 54 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5745
SELECT ALL - 37 * + + CAST( + COUNT( * ) AS SIGNED ) + - 91 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - 37 * + + CAST ( + COUNT ( * ) AS INTEGER ) + - 91 AS col2
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT + + 21 + - + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5746
SELECT + + 21 + - + COUNT ( * ) AS col2
----
20

query II rowsort
SELECT + - 50 AS col0, - 48 AS col2
----
-50
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5748
SELECT - + ( 95 ) DIV - - 48
----
-1

skipif mysql # not compatible
query I rowsort label-5748
SELECT - + ( 95 ) / - - 48
----
-1

query I rowsort
SELECT ALL + 59 * + 45 * + 51 + + 32
----
135437

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL + + COALESCE ( 33, + 98, - + 85 + + 1 * + 9 * + 5, + 20 - + + COUNT( * ) * 17 )
----
33

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL + + COALESCE ( 33, + 98, - + 85 + + 1 * + 9 * + 5, + 20 - + + COUNT ( * ) * 17 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5751
SELECT + 95 AS col1, - NULLIF ( - 96, - 42 / + 15 + - + 23 + + NULLIF ( - + 74, - 89 * - 12 ) * ( 36 ) * 60 * COALESCE ( COALESCE ( 98, + 49 + 6 ) - + 86 * - COUNT( 92 * ( - 22 ) ), + 75 + 73 * + 50, - COALESCE ( 10, ( CASE 99 WHEN - 4 THEN + 50 ELSE NULL END ) * + 8, 99 ), + 43 ) )
----
95
96

skipif mysql # not compatible
query II rowsort label-5751
SELECT + 95 AS col1, - NULLIF ( - 96, - 42 / + 15 + - + 23 + + NULLIF ( - + 74, - 89 * - 12 ) * ( 36 ) * 60 * COALESCE ( COALESCE ( 98, + 49 + 6 ) - + 86 * - COUNT ( 92 * ( - 22 ) ), + 75 + 73 * + 50, - COALESCE ( 10, ( CASE 99 WHEN - 4 THEN + 50 ELSE NULL END ) * + 8, 99 ), + 43 ) )
----
95
96

query I rowsort
SELECT ALL ( 17 ) * - - 33 + - + 78 + 88 + 37 + + + 8 * - 25 + - 13
----
395

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT + 73 * - 5 - - 69 + + 80 * 71 * - 69 + COUNT( * ) * 63 * - 70 * - - 69
----
-696506

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT + 73 * - 5 - - 69 + + 80 * 71 * - 69 + COUNT ( * ) * 63 * - 70 * - - 69
----
-696506

query I rowsort
SELECT ( + + 13 ) col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5755
SELECT ALL - - ( - + 85 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - - ( - + 85 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5756
SELECT ALL + + 14, COUNT( * ) AS col2
----
14
1

skipif mysql # not compatible
query II rowsort label-5756
SELECT ALL + + 14, COUNT ( * ) AS col2
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT - 53 + + + CASE - 48 WHEN + - 43 THEN NULL WHEN - ( + 21 ) * 62 THEN NULL ELSE 67 * + COUNT( - 38 ) + - 12 * - 35 END
----
434

skipif mysql # not compatible
query I rowsort label-5757
SELECT - 53 + + + CASE - 48 WHEN + - 43 THEN NULL WHEN - ( + 21 ) * 62 THEN NULL ELSE 67 * + COUNT ( - 38 ) + - 12 * - 35 END
----
434

query I rowsort
SELECT ALL - + 73 * + 64
----
-4672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5759
SELECT DISTINCT + + 11 * - CAST( NULL AS SIGNED ) * + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT + + 11 * - CAST ( NULL AS INTEGER ) * + 67 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT 19 * COUNT( * ) * + 0 * + 65 + + 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5760
SELECT 19 * COUNT ( * ) * + 0 * + 65 + + 37 AS col2
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT ALL + SUM( - 60 ) * COALESCE ( + 36, 20 * + - COUNT( * ) - + + COUNT( * ) ), 30 AS col1
----
-2160
30

skipif mysql # not compatible
query II rowsort label-5761
SELECT ALL + SUM ( - 60 ) * COALESCE ( + 36, 20 * + - COUNT ( * ) - + + COUNT ( * ) ), 30 AS col1
----
-2160
30

query I rowsort
SELECT - + 44 + ( - + 78 ) + - - ( + 66 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT + COUNT( * ) * - 71 + - 10 - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-5763
SELECT + COUNT ( * ) * - 71 + - 10 - COUNT ( * )
----
-82

query II rowsort
SELECT - 80 col2, ( 14 )
----
-80
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - - 70 + ( COUNT( * ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5765
SELECT - - 70 + ( COUNT ( * ) ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5766
SELECT + - 64 + - - NULLIF ( + CASE 19 WHEN + 91 THEN + + 58 + - + 51 + + COALESCE ( - + 69, + 48 * + CAST( + MIN( 41 ) AS SIGNED ) * - 92 ) WHEN - 38 / 21 THEN NULL WHEN 70 * + 4 - 39 THEN + 23 - - ( + 16 ) ELSE NULL END, + 85 - 71 ) * + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT + - 64 + - - NULLIF ( + CASE 19 WHEN + 91 THEN + + 58 + - + 51 + + COALESCE ( - + 69, + 48 * + CAST ( + MIN ( 41 ) AS INTEGER ) * - 92 ) WHEN - 38 / 21 THEN NULL WHEN 70 * + 4 - 39 THEN + 23 - - ( + 16 ) ELSE NULL END, + 85 - 71 ) * + 15 AS col1
----
NULL

query I rowsort
SELECT ALL - 59 - - 98 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5768
SELECT 1, CAST( NULL AS SIGNED ) col0, COUNT( * ) + + 12 AS col1
----
1
NULL
13

skipif mysql # not compatible
query III rowsort label-5768
SELECT 1, CAST ( NULL AS INTEGER ) col0, COUNT ( * ) + + 12 AS col1
----
1
NULL
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL CASE + - 9 WHEN - COUNT( * ) + + 15 THEN - 24 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL CASE + - 9 WHEN - COUNT ( * ) + + 15 THEN - 24 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT DISTINCT 51 * + COUNT( * ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT 51 * + COUNT ( * ) AS col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT + 75 + - CAST( - 40 AS SIGNED )
----
115

skipif mysql # not compatible
query I rowsort label-5771
SELECT + 75 + - CAST ( - 40 AS INTEGER )
----
115

query II rowsort
SELECT ALL 86 * - - 38 AS col0, 78 AS col0
----
3268
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT DISTINCT - 89 * - SUM( - + 93 )
----
-8277

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT - 89 * - SUM ( - + 93 )
----
-8277

query II rowsort
SELECT - ( + 67 ), + 58 * + ( + 31 ) * + 2 - + 25 * + 59 AS col0
----
-67
2121

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT ALL 50 * + + CASE - - 0 WHEN - 99 + - 6 THEN 99 ELSE NULL END * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL 50 * + + CASE - - 0 WHEN - 99 + - 6 THEN 99 ELSE NULL END * + + COUNT ( * )
----
NULL

query I rowsort
SELECT - 56 + 98 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT - MIN( + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5777
SELECT - MIN ( + 50 )
----
-50

query I rowsort
SELECT + ( 11 ) + + - 67 AS col0
----
-56

query I rowsort
SELECT + COALESCE ( - 14, + 70 * 11 + 29 ) * - - 80
----
-1120

query I rowsort
SELECT DISTINCT 44 + 44
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5781
SELECT DISTINCT + 17 * - 4, 87 * + CAST( NULL AS DECIMAL ) * 88 AS col2, 67 AS col1
----
-68
NULL
67

skipif mysql # not compatible
query III rowsort label-5781
SELECT DISTINCT + 17 * - 4, 87 * + CAST ( NULL AS REAL ) * 88 AS col2, 67 AS col1
----
-68
NULL
67

query I rowsort
SELECT ALL 20 + - 75
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL SUM( + + 35 ) + 81 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL SUM ( + + 35 ) + 81 AS col0
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-5784
SELECT DISTINCT 38 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT 38 / - 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5785
SELECT DISTINCT 93 DIV 79 + - 14 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT 93 / 79 + - 14 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT + 78 + - COUNT( * ) * - 52
----
130

skipif mysql # not compatible
query I rowsort label-5786
SELECT + 78 + - COUNT ( * ) * - 52
----
130

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5787
SELECT + + CAST( - 40 AS SIGNED ) - + 46 + - 42 DIV + 55 AS col2, 75 col1
----
-86
75

skipif mysql # not compatible
query II rowsort label-5787
SELECT + + CAST ( - 40 AS INTEGER ) - + 46 + - 42 / + 55 AS col2, 75 col1
----
-86
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT ALL - CAST( 0 AS SIGNED ) / 83 + - 79 + + CAST( - COUNT( * ) AS SIGNED ) * 98 + 5 * - COUNT( * ) + + ( - CASE - 66 WHEN COUNT( * ) * - COUNT( * ) THEN - 99 WHEN + 51 * 8 + 8 THEN NULL END ) + + 10 * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL - CAST ( 0 AS INTEGER ) / 83 + - 79 + + CAST ( - COUNT ( * ) AS INTEGER ) * 98 + 5 * - COUNT ( * ) + + ( - CASE - 66 WHEN COUNT ( * ) * - COUNT ( * ) THEN - 99 WHEN + 51 * 8 + 8 THEN NULL END ) + + 10 * - 40
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT - 92 * 10 + 37 AS col0, - 34 * + MAX( ALL + - 34 )
----
-883
1156

skipif mysql # not compatible
query II rowsort label-5789
SELECT - 92 * 10 + 37 AS col0, - 34 * + MAX ( ALL + - 34 )
----
-883
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT DISTINCT - - ( COUNT( * ) ) * - 99 * - ( 99 ) - - COALESCE ( - + ( 54 ), 86, + 60 ) AS col0
----
9747

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT - - ( COUNT ( * ) ) * - 99 * - ( 99 ) - - COALESCE ( - + ( 54 ), 86, + 60 ) AS col0
----
9747

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT DISTINCT - - 54 * - 9 * - COUNT( * ) - + 57 * - COALESCE ( + 46, - 97 + + 8 ) AS col0
----
3108

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT - - 54 * - 9 * - COUNT ( * ) - + 57 * - COALESCE ( + 46, - 97 + + 8 ) AS col0
----
3108

query I rowsort
SELECT - - 68 + 7 col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5793
SELECT + NULLIF ( - 60, - 7 + + - CAST( NULL AS SIGNED ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5793
SELECT + NULLIF ( - 60, - 7 + + - CAST ( NULL AS INTEGER ) ) AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-5794
SELECT ALL - - 46 DIV - 55 - - 25
----
25

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL - - 46 / - 55 - - 25
----
25

query I rowsort
SELECT - - 24 * CASE + ( - + 65 ) WHEN + + 83 * + + 86 THEN + - 36 / + + 33 * - 79 * - 31 ELSE NULL END + - + 40 * + + 91 - + 15 / + 46 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT ALL - COUNT( * ) * - 39 DIV + + 52
----
0

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL - COUNT ( * ) * - 39 / + + 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT ALL 10 DIV COALESCE ( - - 14, + 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL 10 / COALESCE ( - - 14, + 26 ) AS col1
----
0

query I rowsort
SELECT ALL + 2 * 2 AS col1
----
4

onlyif mysql # aggregate syntax: 
query III rowsort label-5799
SELECT - 92 col1, - ( + COUNT( ALL + 95 ) ), - 93 * 44 AS col0
----
-92
-1
-4092

skipif mysql # not compatible
query III rowsort label-5799
SELECT - 92 col1, - ( + COUNT ( ALL + 95 ) ), - 93 * 44 AS col0
----
-92
-1
-4092

query I rowsort
SELECT ALL + 93 * - - 12
----
1116

query I rowsort
SELECT ALL - 3 * - 83
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT 40 - 17 * - + COUNT( - - 86 )
----
57

skipif mysql # not compatible
query I rowsort label-5802
SELECT 40 - 17 * - + COUNT ( - - 86 )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5803
SELECT - 56 AS col1, SUM( 89 ) + - 82
----
-56
7

skipif mysql # not compatible
query II rowsort label-5803
SELECT - 56 AS col1, SUM ( 89 ) + - 82
----
-56
7

query I rowsort
SELECT 50 + + - 70
----
-20

query II rowsort
SELECT 48 AS col2, - 67 + - + 82 AS col2
----
48
-149

query II rowsort
SELECT - 61 col0, + 53
----
-61
53

query I rowsort
SELECT 59 + - - 22
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5808
SELECT 29 col2, + 99 + COUNT( * )
----
29
100

skipif mysql # not compatible
query II rowsort label-5808
SELECT 29 col2, + 99 + COUNT ( * )
----
29
100

query I rowsort
SELECT ALL 3 + - + 10 AS col2
----
-7

query I rowsort
SELECT 85 - + 45
----
40

query I rowsort
SELECT ALL 97 * 57 AS col2
----
5529

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT 91 DIV 32 * - ( + 91 )
----
-182

skipif mysql # not compatible
query I rowsort label-5812
SELECT 91 / 32 * - ( + 91 )
----
-182

query I rowsort
SELECT ALL - 40 + 98 * + + 37 - - 83 AS col2
----
3669

query I rowsort
SELECT DISTINCT + 51 * + 18 AS col0
----
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5815
SELECT + 77 + - COUNT( * ) * - 77 * + 22 * + 34 + - ( 67 ) DIV 24 + - - 48 - + + COUNT( * ) * 65 AS col2
----
57654

skipif mysql # not compatible
query I rowsort label-5815
SELECT + 77 + - COUNT ( * ) * - 77 * + 22 * + 34 + - ( 67 ) / 24 + - - 48 - + + COUNT ( * ) * 65 AS col2
----
57654

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5816
SELECT - 82 DIV + 94 * + COUNT( * ) + + + 75 - - 45 * + 96 - - SUM( DISTINCT - ( 27 ) ) * 52
----
2991

skipif mysql # not compatible
query I rowsort label-5816
SELECT - 82 / + 94 * + COUNT ( * ) + + + 75 - - 45 * + 96 - - SUM ( DISTINCT - ( 27 ) ) * 52
----
2991

query I rowsort
SELECT ALL 29 - + 63 - 62 * - 85
----
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT ALL - - COUNT( + ( 20 ) ) * + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL - - COUNT ( + ( 20 ) ) * + - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT 69 AS col1, - 38
----
69
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT ALL - 69 DIV - 53
----
1

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL - 69 / - 53
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT MIN( ALL - 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5821
SELECT MIN ( ALL - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT - 75 + - COUNT( * ) * COUNT( * ) * + 20 + + ( - 54 ) + 3 * - - 70
----
61

skipif mysql # not compatible
query I rowsort label-5822
SELECT - 75 + - COUNT ( * ) * COUNT ( * ) * + 20 + + ( - 54 ) + 3 * - - 70
----
61

query I rowsort
SELECT 38 + - + 57
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5824
SELECT DISTINCT - - 27 AS col1, - COUNT( * )
----
27
-1

skipif mysql # not compatible
query II rowsort label-5824
SELECT DISTINCT - - 27 AS col1, - COUNT ( * )
----
27
-1

query I rowsort
SELECT - 98 * 60 + + 92 * + - 16 + + ( 8 ) AS col2
----
-7344

onlyif mysql # aggregate syntax: 
query II rowsort label-5826
SELECT ALL - COALESCE ( + + 46, 66 ), + COUNT( * ) AS col0
----
-46
1

skipif mysql # not compatible
query II rowsort label-5826
SELECT ALL - COALESCE ( + + 46, 66 ), + COUNT ( * ) AS col0
----
-46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL 98 * - - ( + COUNT( * ) ) + + 68
----
166

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL 98 * - - ( + COUNT ( * ) ) + + 68
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT COUNT( * ) + - - 60
----
61

skipif mysql # not compatible
query I rowsort label-5828
SELECT COUNT ( * ) + - - 60
----
61

query I rowsort
SELECT DISTINCT - + ( - - 62 )
----
-62

query I rowsort
SELECT ALL - COALESCE ( - + 81, + - 69 ) col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT COUNT( * ) * - 62 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5831
SELECT COUNT ( * ) * - 62 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT COUNT( * ) * - COUNT( * ) + - 83 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5832
SELECT COUNT ( * ) * - COUNT ( * ) + - 83 AS col0
----
-84

query I rowsort
SELECT ALL 57 + 68 * - - 40
----
2777

query I rowsort
SELECT 50 + 94 AS col1
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT ALL + 44 + 94 + - + 39 DIV - 84
----
138

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL + 44 + 94 + - + 39 / - 84
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT CASE 12 WHEN + COUNT( * ) * 45 THEN + 39 * - + 94 - - 42 ELSE - CASE + COUNT( * ) WHEN - 94 THEN NULL WHEN COUNT( * ) + + 25 THEN NULL ELSE COUNT( ALL - CASE - 78 WHEN - 94 THEN - ( + 12 ) + 30 END ) + + 94 END * 88 END * 45
----
-372240

skipif mysql # not compatible
query I rowsort label-5836
SELECT CASE 12 WHEN + COUNT ( * ) * 45 THEN + 39 * - + 94 - - 42 ELSE - CASE + COUNT ( * ) WHEN - 94 THEN NULL WHEN COUNT ( * ) + + 25 THEN NULL ELSE COUNT ( ALL - CASE - 78 WHEN - 94 THEN - ( + 12 ) + 30 END ) + + 94 END * 88 END * 45
----
-372240

onlyif mysql # aggregate syntax: 
query II rowsort label-5837
SELECT 69 * - - COUNT( * ) AS col2, + 72 + - 9
----
69
63

skipif mysql # not compatible
query II rowsort label-5837
SELECT 69 * - - COUNT ( * ) AS col2, + 72 + - 9
----
69
63

query I rowsort
SELECT ALL - 72 + ( + 76 ) + - ( + + 55 ) col0
----
-51

query I rowsort
SELECT DISTINCT + 17 * - 15
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT 85 + 11 + + 37 * - COUNT( * ) * - 55 * COUNT( * ) AS col0
----
2131

skipif mysql # not compatible
query I rowsort label-5840
SELECT 85 + 11 + + 37 * - COUNT ( * ) * - 55 * COUNT ( * ) AS col0
----
2131

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL - COUNT( * ) + MAX( + - 55 )
----
-56

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL - COUNT ( * ) + MAX ( + - 55 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT 94 + + 84 + - 21 + - COUNT( * ) AS col2
----
156

skipif mysql # not compatible
query I rowsort label-5842
SELECT 94 + + 84 + - 21 + - COUNT ( * ) AS col2
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT ALL - 72 + + COALESCE ( + COUNT( * ), + 37, - + 41 ) * COUNT( ALL + - 25 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL - 72 + + COALESCE ( + COUNT ( * ), + 37, - + 41 ) * COUNT ( ALL + - 25 ) AS col1
----
-71

query I rowsort
SELECT 84 * 82 AS col2
----
6888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5845
SELECT 19 + - CAST( NULL AS SIGNED ) + - COUNT( * ) + CASE WHEN NOT + 17 IN ( - - MAX( + + 70 ) * - NULLIF ( + + 33, 94 + + COALESCE ( + COUNT( * ), - - 14 + CASE 60 WHEN - 21 THEN + COALESCE ( + 62, - 33 ) - - 83 * - 25 WHEN SUM( ALL - ( 84 ) ) * + 63 THEN + 89 WHEN ( ( + 2 ) ) THEN NULL END ) ) ) THEN + 67 - - 55 END + 11 * 28 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT 19 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + CASE WHEN NOT + 17 IN ( - - MAX ( + + 70 ) * - NULLIF ( + + 33, 94 + + COALESCE ( + COUNT ( * ), - - 14 + CASE 60 WHEN - 21 THEN + COALESCE ( + 62, - 33 ) - - 83 * - 25 WHEN SUM ( ALL - ( 84 ) ) * + 63 THEN + 89 WHEN ( ( + 2 ) ) THEN NULL END ) ) ) THEN + 67 - - 55 END + 11 * 28 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT DISTINCT MIN( DISTINCT - + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT MIN ( DISTINCT - + 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT DISTINCT - COUNT( * ) - 93 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT - COUNT ( * ) - 93 AS col0
----
-94

query I rowsort
SELECT + 50 * 1
----
50

query I rowsort
SELECT 73 + 55 AS col1
----
128

query I rowsort
SELECT ALL - ( 52 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT 26 * + 38 * - + 40 + - ( - ( - COUNT( * ) ) )
----
-39521

skipif mysql # not compatible
query I rowsort label-5851
SELECT 26 * + 38 * - + 40 + - ( - ( - COUNT ( * ) ) )
----
-39521

onlyif mysql # DIV for integer division: 
query I rowsort label-5852
SELECT 65 DIV 4 * - + 83 * + 77 + + + 16 AS col2
----
-102240

skipif mysql # not compatible
query I rowsort label-5852
SELECT 65 / 4 * - + 83 * + 77 + + + 16 AS col2
----
-102240

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL 16 * + - COUNT( * ) * + MAX( ALL - 41 )
----
656

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL 16 * + - COUNT ( * ) * + MAX ( ALL - 41 )
----
656

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT COUNT( ALL + 12 ) * - 52 * 46 * + 18 AS col0
----
-43056

skipif mysql # not compatible
query I rowsort label-5854
SELECT COUNT ( ALL + 12 ) * - 52 * 46 * + 18 AS col0
----
-43056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5855
SELECT ALL + 46 * COUNT( * ) + + + CAST( - 18 AS SIGNED ) - + + 7 - + 11 + + 20 + + 97 * - + 32 + NULLIF ( + + 84, + + 82 ) + + - 19 + 6 AS col0
----
-3003

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL + 46 * COUNT ( * ) + + + CAST ( - 18 AS INTEGER ) - + + 7 - + 11 + + 20 + + 97 * - + 32 + NULLIF ( + + 84, + + 82 ) + + - 19 + 6 AS col0
----
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT DISTINCT + 35 * COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT + 35 * COUNT ( * ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT ALL - MAX( ALL - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL - MAX ( ALL - 55 )
----
55

query I rowsort
SELECT ALL + + 62 * 57 - - + 20
----
3554

onlyif mysql # DIV for integer division: 
query I rowsort label-5859
SELECT DISTINCT 61 DIV - 65 + - + 38 * - 54 + - + 5 - + 3
----
2044

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT 61 / - 65 + - + 38 * - 54 + - + 5 - + 3
----
2044

query II rowsort
SELECT ALL - ( + 70 ) col2, 51 + - 61 * - - 7 + - 39 AS col2
----
-70
-415

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5861
SELECT + 49 DIV - COUNT( - 45 ) + + ( - + 87 ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-5861
SELECT + 49 / - COUNT ( - 45 ) + + ( - + 87 ) AS col0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT COUNT( DISTINCT 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5862
SELECT COUNT ( DISTINCT 80 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT DISTINCT 75 DIV 31
----
2

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT 75 / 31
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL 34 + + - COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL 34 + + - COUNT ( * ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT + 39 * + SUM( DISTINCT 12 )
----
468

skipif mysql # not compatible
query I rowsort label-5865
SELECT + 39 * + SUM ( DISTINCT 12 )
----
468

query I rowsort
SELECT DISTINCT 69 + + 78 AS col1
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL 4 + 38 + COUNT( * ) * + 72 + + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * + CASE - ( + - COUNT( * ) ) WHEN - - 64 THEN - 27 WHEN + ( + 79 ) THEN + 52 WHEN + 82 THEN 51 END * ( - 73 * 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL 4 + 38 + COUNT ( * ) * + 72 + + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + CASE - ( + - COUNT ( * ) ) WHEN - - 64 THEN - 27 WHEN + ( + 79 ) THEN + 52 WHEN + 82 THEN 51 END * ( - 73 * 27 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 21 * - 18
----
-378

query I rowsort
SELECT DISTINCT 33 + + + NULLIF ( + - 62, - 45 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL MIN( ALL - - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL MIN ( ALL - - 13 )
----
13

query I rowsort
SELECT ALL 68 + 41 AS col1
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5872
SELECT + CASE + CAST( + COUNT( * ) AS SIGNED ) WHEN 1 + + 62 DIV 94 * 63 THEN - - 88 WHEN + CAST( NULL AS SIGNED ) THEN - ( + 57 ) DIV - 65 * - 26 + + NULLIF ( + 70, 59 ) ELSE NULL END * - 90 AS col1
----
-7920

skipif mysql # not compatible
query I rowsort label-5872
SELECT + CASE + CAST ( + COUNT ( * ) AS INTEGER ) WHEN 1 + + 62 / 94 * 63 THEN - - 88 WHEN + CAST ( NULL AS INTEGER ) THEN - ( + 57 ) / - 65 * - 26 + + NULLIF ( + 70, 59 ) ELSE NULL END * - 90 AS col1
----
-7920

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT - CASE 2 WHEN - + COUNT( * ) / - COUNT( * ) THEN + - COUNT( * ) + + 27 WHEN - 83 THEN + - 66 ELSE NULL END AS col1, - COUNT( * ) + + 62
----
NULL
61

skipif mysql # not compatible
query II rowsort label-5873
SELECT - CASE 2 WHEN - + COUNT ( * ) / - COUNT ( * ) THEN + - COUNT ( * ) + + 27 WHEN - 83 THEN + - 66 ELSE NULL END AS col1, - COUNT ( * ) + + 62
----
NULL
61

query I rowsort
SELECT + 50 + + 41
----
91

query I rowsort
SELECT - 32 * + ( + 68 ) AS col0
----
-2176

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5876
SELECT + CAST( NULL AS DECIMAL ) * - 71 * ( + CAST( NULL AS SIGNED ) ) / - 96 + - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT + CAST ( NULL AS REAL ) * - 71 * ( + CAST ( NULL AS INTEGER ) ) / - 96 + - 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT + COUNT( * ) + - 46 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5877
SELECT + COUNT ( * ) + - 46 AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT ALL - 41 - - 65 - + - 75 DIV 45 col0
----
25

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - 41 - - 65 - + - 75 / 45 col0
----
25

query I rowsort
SELECT ALL + ( + ( 86 ) ) * - + 25
----
-2150

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT + + 13 DIV - + ( - + 26 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5880
SELECT + + 13 / - + ( - + 26 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ALL + - 81 * 25 + - - 25 - - CASE 18 WHEN + 17 THEN + + COUNT( * ) + - - 57 END / - + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL + - 81 * 25 + - - 25 - - CASE 18 WHEN + 17 THEN + + COUNT ( * ) + - - 57 END / - + 69 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5882
SELECT DISTINCT 46 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT 46 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5883
SELECT DISTINCT CASE 32 WHEN + 90 * + 53 / 64 - + COUNT( * ) * - - 27 * 5 THEN + - 37 * - 28 * - 14 / + 70 + - 42 + + + 28 - - + 17 + COUNT( * ) * CAST( NULL AS SIGNED ) WHEN - 75 THEN + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT CASE 32 WHEN + 90 * + 53 / 64 - + COUNT ( * ) * - - 27 * 5 THEN + - 37 * - 28 * - 14 / + 70 + - 42 + + + 28 - - + 17 + COUNT ( * ) * CAST ( NULL AS INTEGER ) WHEN - 75 THEN + 41 ELSE NULL END
----
NULL

query I rowsort
SELECT - + 63 + + 24
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT + 48 + + COUNT( * ) + + 97
----
146

skipif mysql # not compatible
query I rowsort label-5885
SELECT + 48 + + COUNT ( * ) + + 97
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5886
SELECT ALL + - ( - + ( + - CAST( 19 AS SIGNED ) ) ) * + COUNT( * ) * - - 82 * 4 AS col1
----
-6232

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL + - ( - + ( + - CAST ( 19 AS INTEGER ) ) ) * + COUNT ( * ) * - - 82 * 4 AS col1
----
-6232

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT SUM( DISTINCT - 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-5887
SELECT SUM ( DISTINCT - 83 ) AS col2
----
-83

query II rowsort
SELECT + 26, + NULLIF ( 41, ( + 46 ) * 92 + - 11 + 61 * 13 * - 57 + 6 ) col2
----
26
41

query I rowsort
SELECT DISTINCT + NULLIF ( - - 61, - 19 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL + - 85 * + ( 42 ) + + CASE - + 2 WHEN MAX( ALL + 46 ) THEN - AVG ( ALL + + 6 ) END / - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL + - 85 * + ( 42 ) + + CASE - + 2 WHEN MAX ( ALL + 46 ) THEN - AVG ( ALL + + 6 ) END / - 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT DISTINCT + + MAX( ALL + 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT + + MAX ( ALL + 51 ) AS col2
----
51

query I rowsort
SELECT - + 59 + - 32
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5893
SELECT DISTINCT + + 12, COUNT( * ) * + - ( + 99 ) AS col0
----
12
-99

skipif mysql # not compatible
query II rowsort label-5893
SELECT DISTINCT + + 12, COUNT ( * ) * + - ( + 99 ) AS col0
----
12
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5894
SELECT ALL 34 * + - 16 * 19 * - COALESCE ( + MAX( - ( - 44 ) ), + - 8, + COUNT( * ) * + 84 - - 65 - + 40 + 4 * + 44 + - - 84 ) * SUM( DISTINCT + CAST( 86 AS SIGNED ) ) + + MIN( ALL 57 ) + + 71 * - 65
----
39106866

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL 34 * + - 16 * 19 * - COALESCE ( + MAX ( - ( - 44 ) ), + - 8, + COUNT ( * ) * + 84 - - 65 - + 40 + 4 * + 44 + - - 84 ) * SUM ( DISTINCT + CAST ( 86 AS INTEGER ) ) + + MIN ( ALL 57 ) + + 71 * - 65
----
39106866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT - NULLIF ( - ( + CAST( NULL AS SIGNED ) ), - + 46 * - NULLIF ( 19, 41 + - COUNT( + CAST( - - 87 AS SIGNED ) ) + + COUNT( * ) ) + + + NULLIF ( 19, + 39 * + 4 * 69 * + COUNT( * ) + 64 ) + + 20 ) + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT - NULLIF ( - ( + CAST ( NULL AS INTEGER ) ), - + 46 * - NULLIF ( 19, 41 + - COUNT ( + CAST ( - - 87 AS INTEGER ) ) + + COUNT ( * ) ) + + + NULLIF ( 19, + 39 * + 4 * 69 * + COUNT ( * ) + 64 ) + + 20 ) + - 73
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5896
SELECT + CAST( NULL AS DECIMAL ) * 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT + CAST ( NULL AS REAL ) * 0 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT 44 * + + COUNT( * ) + + NULLIF ( + 26, 58 * + 16 * 87 )
----
70

skipif mysql # not compatible
query I rowsort label-5897
SELECT 44 * + + COUNT ( * ) + + NULLIF ( + 26, 58 * + 16 * 87 )
----
70

query I rowsort
SELECT ALL 97 * + 32 + + 14
----
3118

query I rowsort
SELECT ALL + 44 * - 70 AS col2
----
-3080

query I rowsort
SELECT 72 * 61 + + 1 AS col0
----
4393

query II rowsort
SELECT ALL + 49 AS col0, 66 + + + 0 - + 20
----
49
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5902
SELECT + CASE 41 WHEN + ( + MIN( - 56 ) ) * + 7 - ( + - NULLIF ( - CASE - 46 WHEN + + MIN( ALL CAST( NULL AS SIGNED ) ) * - 0 THEN - - 85 END, CAST( NULL AS SIGNED ) + - 99 ) ) THEN NULLIF ( + CAST( NULL AS DECIMAL ), NULLIF ( 55, 68 + - 4 ) ) WHEN + 66 THEN 51 * + 19 END + + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT + CASE 41 WHEN + ( + MIN ( - 56 ) ) * + 7 - ( + - NULLIF ( - CASE - 46 WHEN + + MIN ( ALL CAST ( NULL AS INTEGER ) ) * - 0 THEN - - 85 END, CAST ( NULL AS INTEGER ) + - 99 ) ) THEN NULLIF ( + CAST ( NULL AS REAL ), NULLIF ( 55, 68 + - 4 ) ) WHEN + 66 THEN 51 * + 19 END + + 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5903
SELECT ALL ( COALESCE ( - COUNT( * ), - 70 ) ) * + ( CASE WHEN NOT - 0 IS NULL THEN COUNT( * ) WHEN NOT NULL BETWEEN ( ( MIN( 72 ) ) * - 1 / 16 * 74 - ( 18 + + 54 ) * 24 ) AND + ( 6 ) * - 41 THEN + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 79 ELSE NULL END ) + - 19 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL ( COALESCE ( - COUNT ( * ), - 70 ) ) * + ( CASE WHEN NOT - 0 IS NULL THEN COUNT ( * ) WHEN NOT NULL BETWEEN ( ( MIN ( 72 ) ) * - 1 / 16 * 74 - ( 18 + + 54 ) * 24 ) AND + ( 6 ) * - 41 THEN + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 79 ELSE NULL END ) + - 19 AS col1
----
-20

query I rowsort
SELECT + 62 + + 86 + - 35 col2
----
113

query I rowsort
SELECT - 74 * + 91 * 70
----
-471380

query I rowsort
SELECT + 80 * - 71 col1
----
-5680

query I rowsort
SELECT + 56 * + ( - 10 ) * - 32 + - 79 AS col2
----
17841

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT ALL 20 DIV + - 2 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL 20 / + - 2 AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5909
SELECT DISTINCT + 97 * - NULLIF ( + 13, 19 ) - ( - 9 ) AS col0, - CASE + + 98 WHEN - 11 + - + 75 + - CASE NULLIF ( - 48, + 76 / + - 84 ) WHEN 92 + 8 * - 80 THEN NULL ELSE 40 - - CAST( - 89 + + COUNT( * ) AS SIGNED ) / + 15 END / MIN( DISTINCT - 36 ) * - 5 THEN NULL WHEN MAX( - CAST( NULL AS DECIMAL ) ) + + 19 / 50 THEN - 56 * 36 + - 51 * CASE MIN( ALL - 11 ) WHEN 64 THEN NULL WHEN 66 THEN + 86 WHEN - 36 + + 18 THEN NULLIF ( 36, + 10 ) * - 38 END ELSE - 53 * 99 END * + CAST( CASE 37 WHEN - 33 THEN + 18 + - COUNT( * ) WHEN + 76 THEN NULL END AS SIGNED ) + + 18 col1
----
-1252
NULL

skipif mysql # not compatible
query II rowsort label-5909
SELECT DISTINCT + 97 * - NULLIF ( + 13, 19 ) - ( - 9 ) AS col0, - CASE + + 98 WHEN - 11 + - + 75 + - CASE NULLIF ( - 48, + 76 / + - 84 ) WHEN 92 + 8 * - 80 THEN NULL ELSE 40 - - CAST ( - 89 + + COUNT ( * ) AS INTEGER ) / + 15 END / MIN ( DISTINCT - 36 ) * - 5 THEN NULL WHEN MAX ( - CAST ( NULL AS REAL ) ) + + 19 / 50 THEN - 56 * 36 + - 51 * CASE MIN ( ALL - 11 ) WHEN 64 THEN NULL WHEN 66 THEN + 86 WHEN - 36 + + 18 THEN NULLIF ( 36, + 10 ) * - 38 END ELSE - 53 * 99 END * + CAST ( CASE 37 WHEN - 33 THEN + 18 + - COUNT ( * ) WHEN + 76 THEN NULL END AS INTEGER ) + + 18 col1
----
-1252
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT MAX( ALL - + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-5910
SELECT MAX ( ALL - + 27 )
----
-27

query I rowsort
SELECT + 8 + - 39 * + - 55
----
2153

query I rowsort
SELECT DISTINCT ( + + 6 ) * - 19 AS col2
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-5913
SELECT ALL COUNT( * ) AS col1, COUNT( * ) * + 19 col1
----
1
19

skipif mysql # not compatible
query II rowsort label-5913
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) * + 19 col1
----
1
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5914
SELECT + 72 + - + 79 + COALESCE ( CAST( NULL AS SIGNED ), + COUNT( * ) ) + + COUNT( * ) + - 67 + + 47 * + - 61 * + CASE AVG ( - 4 ) WHEN MAX( DISTINCT - 86 ) THEN 9 ELSE NULL END * - - 35 + - 61 * 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT + 72 + - + 79 + COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) + + COUNT ( * ) + - 67 + + 47 * + - 61 * + CASE AVG ( - 4 ) WHEN MAX ( DISTINCT - 86 ) THEN 9 ELSE NULL END * - - 35 + - 61 * 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT + 79 + - COUNT( 86 ) DIV + + 31 DIV - - COUNT( * ) * - - 14 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5915
SELECT + 79 + - COUNT ( 86 ) / + + 31 / - - COUNT ( * ) * - - 14 AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5916
SELECT 57 AS col0, NULLIF ( AVG ( DISTINCT + + 72 ), 24 ) * AVG ( + + CAST( NULL AS SIGNED ) ) * - 32
----
57
NULL

skipif mysql # not compatible
query II rowsort label-5916
SELECT 57 AS col0, NULLIF ( AVG ( DISTINCT + + 72 ), 24 ) * AVG ( + + CAST ( NULL AS INTEGER ) ) * - 32
----
57
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT + - 1 DIV + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5917
SELECT + - 1 / + 17 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT + - 90 + + + 65 * - COUNT( * ) AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-5918
SELECT + - 90 + + + 65 * - COUNT ( * ) AS col0
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT - + 26 + + 99 DIV - 18 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5919
SELECT - + 26 + + 99 / - 18 AS col0
----
-31

query II rowsort
SELECT 1 AS col0, 56 AS col2
----
1
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT + + 57 * - MIN( ALL - + 14 ) * + 66 + 14 + + ( - 7 )
----
52675

skipif mysql # not compatible
query I rowsort label-5921
SELECT + + 57 * - MIN ( ALL - + 14 ) * + 66 + 14 + + ( - 7 )
----
52675

onlyif mysql # aggregate syntax: 
query II rowsort label-5922
SELECT - - 82 col1, COUNT( * )
----
82
1

skipif mysql # not compatible
query II rowsort label-5922
SELECT - - 82 col1, COUNT ( * )
----
82
1

query I rowsort
SELECT ALL + 55 + - ( 18 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5924
SELECT + - 49 + 81 * + COUNT( * ) + + 70 AS col1, + 71 AS col1
----
102
71

skipif mysql # not compatible
query II rowsort label-5924
SELECT + - 49 + 81 * + COUNT ( * ) + + 70 AS col1, + 71 AS col1
----
102
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5925
SELECT ALL COUNT( DISTINCT + 25 ) DIV + 3 * - + CAST( + - 28 AS SIGNED ) * - 22
----
0

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL COUNT ( DISTINCT + 25 ) / + 3 * - + CAST ( + - 28 AS INTEGER ) * - 22
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5926
SELECT DISTINCT 83 * - ( - 86 ) * 96 * 87 DIV - 6 + 26
----
-9936070

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT 83 * - ( - 86 ) * 96 * 87 / - 6 + 26
----
-9936070

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL - CASE - COUNT( * ) WHEN - + COUNT( * ) + + - 21 - + 77 + - CASE - ( + - ( ( 47 ) ) ) WHEN 68 THEN - 24 WHEN - COUNT( * ) THEN NULL ELSE NULL END THEN - 84 ELSE - 4 END + COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL - CASE - COUNT ( * ) WHEN - + COUNT ( * ) + + - 21 - + 77 + - CASE - ( + - ( ( 47 ) ) ) WHEN 68 THEN - 24 WHEN - COUNT ( * ) THEN NULL ELSE NULL END THEN - 84 ELSE - 4 END + COUNT ( * ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT + - MIN( DISTINCT + 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5928
SELECT + - MIN ( DISTINCT + 15 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT COUNT( * ) * + 30 - + 74 * - NULLIF ( 4, + COALESCE ( 34, + - 15, + COUNT( * ) + - - 33 ) ) + COUNT( * ) + 10 - COALESCE ( + 61, + 2 * ( - 82 ) - 43 ) * + ( 86 + 61 )
----
-8630

skipif mysql # not compatible
query I rowsort label-5929
SELECT COUNT ( * ) * + 30 - + 74 * - NULLIF ( 4, + COALESCE ( 34, + - 15, + COUNT ( * ) + - - 33 ) ) + COUNT ( * ) + 10 - COALESCE ( + 61, + 2 * ( - 82 ) - 43 ) * + ( 86 + 61 )
----
-8630

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL + 39 + - - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL + 39 + - - COUNT ( * )
----
40

query I rowsort
SELECT DISTINCT - ( ( + + 67 ) ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT DISTINCT 57 + - - ( - 66 ) * - COUNT( * ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT 57 + - - ( - 66 ) * - COUNT ( * ) AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT 85 * + + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-5933
SELECT 85 * + + COUNT ( * )
----
85

query I rowsort
SELECT ALL - 40 - + 71 + 51 + + - 45 * - 1 AS col0
----
-15

query I rowsort
SELECT 10 * - ( - 85 )
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT ALL - 77 * COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL - 77 * COUNT ( * ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT ALL - COALESCE ( - MAX( DISTINCT + + 62 ), - 93, + + COUNT( * ) - + + 52 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL - COALESCE ( - MAX ( DISTINCT + + 62 ), - 93, + + COUNT ( * ) - + + 52 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT DISTINCT - 96 * + COALESCE ( 27, + 44, - SUM( ALL 99 ) )
----
-2592

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT - 96 * + COALESCE ( 27, + 44, - SUM ( ALL 99 ) )
----
-2592

query I rowsort
SELECT 79 * - 99
----
-7821

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT SUM( 70 )
----
70

skipif mysql # not compatible
query I rowsort label-5940
SELECT SUM ( 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT ALL + CASE + + 34 WHEN - + 97 + - - 69 + - 8 THEN + 64 WHEN 61 * - 51 THEN NULL END + COUNT( + 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL + CASE + + 34 WHEN - + 97 + - - 69 + - 8 THEN + 64 WHEN 61 * - 51 THEN NULL END + COUNT ( + 55 )
----
NULL

query I rowsort
SELECT + 30 + - - 44 + + 76
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5943
SELECT + COUNT( * ) + + 26 + COUNT( * ) * + 77 DIV - 30
----
25

skipif mysql # not compatible
query I rowsort label-5943
SELECT + COUNT ( * ) + + 26 + COUNT ( * ) * + 77 / - 30
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5944
SELECT DISTINCT + ( - SUM( + NULLIF ( + + 85, - 39 ) ) ) * - + MAX( ALL 2 ) col2, 13 - - NULLIF ( + 99, + + 1 ) AS col0
----
170
112

skipif mysql # not compatible
query II rowsort label-5944
SELECT DISTINCT + ( - SUM ( + NULLIF ( + + 85, - 39 ) ) ) * - + MAX ( ALL 2 ) col2, 13 - - NULLIF ( + 99, + + 1 ) AS col0
----
170
112

query I rowsort
SELECT DISTINCT + 48 + 3
----
51

query I rowsort
SELECT ALL + 84 + + + 99
----
183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5947
SELECT + 93 + - - 74 * 32 + + 14 DIV 71 DIV - + NULLIF ( + + COUNT( * ), - + 60 - 42 ) AS col2
----
2461

skipif mysql # not compatible
query I rowsort label-5947
SELECT + 93 + - - 74 * 32 + + 14 / 71 / - + NULLIF ( + + COUNT ( * ), - + 60 - 42 ) AS col2
----
2461

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5948
SELECT ALL 71 * 5 AS col1, - 0 + - + COUNT( * ) + - ( 62 ) + - 83 DIV 18
----
355
-67

skipif mysql # not compatible
query II rowsort label-5948
SELECT ALL 71 * 5 AS col1, - 0 + - + COUNT ( * ) + - ( 62 ) + - 83 / 18
----
355
-67

query I rowsort
SELECT 61 * 84
----
5124

query I rowsort
SELECT + 46 + - 15 + + 16 * - + 82
----
-1281

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT DISTINCT + ( + MIN( + - 50 ) ) + - - COUNT( ALL - 30 ) + - 50 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT + ( + MIN ( + - 50 ) ) + - - COUNT ( ALL - 30 ) + - 50 AS col2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5952
SELECT + 70 DIV - - 90 - + 2 * + ( - + 43 )
----
86

skipif mysql # not compatible
query I rowsort label-5952
SELECT + 70 / - - 90 - + 2 * + ( - + 43 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5953
SELECT DISTINCT - 11, - ( + 35 ) DIV - - 76 - 16 + + NULLIF ( + 95, + - 51 - - COUNT( * ) ) AS col0
----
-11
79

skipif mysql # not compatible
query II rowsort label-5953
SELECT DISTINCT - 11, - ( + 35 ) / - - 76 - 16 + + NULLIF ( + 95, + - 51 - - COUNT ( * ) ) AS col0
----
-11
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT MIN( DISTINCT - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-5954
SELECT MIN ( DISTINCT - 55 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT + 7 DIV + 97 + + 36 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5955
SELECT + 7 / + 97 + + 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT - 26 * + - MAX( DISTINCT - 12 ) - + 41 * + 79
----
-3551

skipif mysql # not compatible
query I rowsort label-5956
SELECT - 26 * + - MAX ( DISTINCT - 12 ) - + 41 * + 79
----
-3551

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT 81 * + 10 * - COUNT( * ) + 71 - - + ( + + 70 ) * 41
----
2131

skipif mysql # not compatible
query I rowsort label-5957
SELECT 81 * + 10 * - COUNT ( * ) + 71 - - + ( + + 70 ) * 41
----
2131

query I rowsort
SELECT 20 - - 42
----
62

query I rowsort
SELECT ALL - 9 - - 75 + - 19
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL - COUNT( ALL 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL - COUNT ( ALL 74 )
----
-1

query II rowsort
SELECT + 25 * - + 21 * 80 + - 23, 94 AS col2
----
-42023
94

query I rowsort
SELECT 3 * + 76 AS col1
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-5963
SELECT ALL - 74 AS col0, COUNT( * )
----
-74
1

skipif mysql # not compatible
query II rowsort label-5963
SELECT ALL - 74 AS col0, COUNT ( * )
----
-74
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT 46 * - - ( - + COUNT( * ) ) + + 21 / COALESCE ( - 65, - 2 / - + ( - 84 ) / - + 2 + 16 ) + - 52 + - CASE - - MAX( ALL - - 10 ) WHEN 56 THEN 53 END * - - 4 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5964
SELECT 46 * - - ( - + COUNT ( * ) ) + + 21 / COALESCE ( - 65, - 2 / - + ( - 84 ) / - + 2 + 16 ) + - 52 + - CASE - - MAX ( ALL - - 10 ) WHEN 56 THEN 53 END * - - 4 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5965
SELECT ALL 2 * 3 * COUNT( * ), + CAST( NULL AS SIGNED ) / + COUNT( * ) col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-5965
SELECT ALL 2 * 3 * COUNT ( * ), + CAST ( NULL AS INTEGER ) / + COUNT ( * ) col1
----
6
NULL

query I rowsort
SELECT 19 + - + 24 * 85
----
-2021

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT DISTINCT - COUNT( - - 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT - COUNT ( - - 82 )
----
-1

query II rowsort
SELECT 94 AS col2, ( + - 49 )
----
94
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5969
SELECT DISTINCT - ( - 52 ) DIV 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5969
SELECT DISTINCT - ( - 52 ) / 75 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT + 75 DIV 93 * - + 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5970
SELECT + 75 / 93 * - + 48 AS col0
----
0

query I rowsort
SELECT 96 * 62 AS col1
----
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT - COUNT( 68 ) + + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5972
SELECT - COUNT ( 68 ) + + + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT ALL - + MAX( - + 54 ) * + 78
----
4212

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL - + MAX ( - + 54 ) * + 78
----
4212

query II rowsort
SELECT 55 AS col2, - 35 col0
----
55
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5975
SELECT ALL + CAST( NULL AS SIGNED ) + + 85 + - + MIN( ALL + 19 ) / + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL + CAST ( NULL AS INTEGER ) + + 85 + - + MIN ( ALL + 19 ) / + 91
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5976
SELECT - COUNT( * ) AS col2, 50 * - - 8
----
-1
400

skipif mysql # not compatible
query II rowsort label-5976
SELECT - COUNT ( * ) AS col2, 50 * - - 8
----
-1
400

query I rowsort
SELECT ALL + + 20 + - + 91 AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5978
SELECT ALL - 55 + + CAST( 46 AS SIGNED ) - + 4 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL - 55 + + CAST ( 46 AS INTEGER ) - + 4 AS col1
----
-13

query I rowsort
SELECT DISTINCT - - 90 + 14 + - 52 AS col0
----
52

query I rowsort
SELECT - 16 * - 16 * + - 66
----
-16896

onlyif mysql # DIV for integer division: 
query I rowsort label-5981
SELECT DISTINCT + - 78 DIV - 41
----
1

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT + - 78 / - 41
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT - 39 + + 11 + + CAST( + CAST( + 57 AS SIGNED ) AS SIGNED ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5982
SELECT - 39 + + 11 + + CAST ( + CAST ( + 57 AS INTEGER ) AS INTEGER ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5983
SELECT - 43 DIV 79 DIV + 50 * - + COUNT( ALL - CAST( 90 AS DECIMAL ) ) AS col0, + 11 + - 5 + + 87
----
0
93

skipif mysql # not compatible
query II rowsort label-5983
SELECT - 43 / 79 / + 50 * - + COUNT ( ALL - CAST ( 90 AS REAL ) ) AS col0, + 11 + - 5 + + 87
----
0
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5984
SELECT + 13 DIV + 66 * - 69 * + ( - - 35 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5984
SELECT + 13 / + 66 * - 69 * + ( - - 35 ) AS col0
----
0

query I rowsort
SELECT - + 97 * 66 AS col2
----
-6402

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5986
SELECT - + 68 AS col0, + 22 + + 82 * + + CAST( NULL AS SIGNED )
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-5986
SELECT - + 68 AS col0, + 22 + + 82 * + + CAST ( NULL AS INTEGER )
----
-68
NULL

query I rowsort
SELECT ALL - 11 * + 5 AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5988
SELECT ALL - 53 - - 32 * - 72, - COUNT( + CAST( NULL AS SIGNED ) ) * 38 col2
----
-2357
0

skipif mysql # not compatible
query II rowsort label-5988
SELECT ALL - 53 - - 32 * - 72, - COUNT ( + CAST ( NULL AS INTEGER ) ) * 38 col2
----
-2357
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5989
SELECT + MAX( 45 ) + - - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5989
SELECT + MAX ( 45 ) + - - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query II rowsort
SELECT ( 8 ) AS col0, + 46 AS col1
----
8
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT - COUNT( * ) - - 3 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5991
SELECT - COUNT ( * ) - - 3 AS col0
----
2

query I rowsort
SELECT + 15 * 18
----
270

query I rowsort
SELECT - 59 * - - 35 + ( + - 97 ) + + 45 * 94
----
2068

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT + 79 * + COUNT( * ) * - 96
----
-7584

skipif mysql # not compatible
query I rowsort label-5994
SELECT + 79 * + COUNT ( * ) * - 96
----
-7584

onlyif mysql # aggregate syntax: 
query II rowsort label-5995
SELECT ALL CASE + + 92 WHEN COUNT( * ) + - 52 + - + 18 + - 1 THEN NULL WHEN 62 THEN - 2 END / 2, ( - 80 ) AS col2
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-5995
SELECT ALL CASE + + 92 WHEN COUNT ( * ) + - 52 + - + 18 + - 1 THEN NULL WHEN 62 THEN - 2 END / 2, ( - 80 ) AS col2
----
NULL
-80

query I rowsort
SELECT + NULLIF ( + ( + 92 ), + 19 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT + 49 * - - NULLIF ( - - 62, COUNT( * ) ) AS col0
----
3038

skipif mysql # not compatible
query I rowsort label-5997
SELECT + 49 * - - NULLIF ( - - 62, COUNT ( * ) ) AS col0
----
3038

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5998
SELECT + 61 - + 90 + + 14 DIV 68 * - + 41, COUNT( * ) AS col0
----
-29
1

skipif mysql # not compatible
query II rowsort label-5998
SELECT + 61 - + 90 + + 14 / 68 * - + 41, COUNT ( * ) AS col0
----
-29
1

query I rowsort
SELECT + 26 * 70 AS col0
----
1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6000
SELECT 51 * 70 / + + COUNT( * ) - 60 + - COUNT( * ) * + 56 + MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT 51 * 70 / + + COUNT ( * ) - 60 + - COUNT ( * ) * + 56 + MAX ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT NULLIF ( + - 74, 83 * - 38 - + 83 ) AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6002
SELECT ALL 49 * + 38, ( 22 ) * - - 27 * - 63 * + CAST( - 70 AS SIGNED ) AS col0
----
1862
2619540

skipif mysql # not compatible
query II rowsort label-6002
SELECT ALL 49 * + 38, ( 22 ) * - - 27 * - 63 * + CAST ( - 70 AS INTEGER ) AS col0
----
1862
2619540

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT + 13 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT + 13 / - + 65
----
0

query I rowsort
SELECT ALL - + 93 * 94 AS col2
----
-8742

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT - 48 * + - COUNT( ALL - 2 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-6005
SELECT - 48 * + - COUNT ( ALL - 2 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT + - COUNT( * ) + 1 + - 81 + + 20 * + - 67
----
-1421

skipif mysql # not compatible
query I rowsort label-6006
SELECT + - COUNT ( * ) + 1 + - 81 + + 20 * + - 67
----
-1421

query I rowsort
SELECT + 14 + - NULLIF ( 55, + 3 ) AS col0
----
-41

query I rowsort
SELECT ALL + 7 * - - 29 - + 64 AS col0
----
139

query I rowsort
SELECT - NULLIF ( 57, - - ( + 23 ) / - 35 + + + 85 ) + 38 AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT - + 37 - - 49 DIV + - 26 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-6010
SELECT - + 37 - - 49 / + - 26 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT + CASE - ( - 41 ) WHEN 6 THEN - 7 WHEN 39 * - COALESCE ( COUNT( * ), 23 ) - 5 + + + 42 + COUNT( * ) * 38 / - 89 THEN NULL ELSE NULL END * 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT + CASE - ( - 41 ) WHEN 6 THEN - 7 WHEN 39 * - COALESCE ( COUNT ( * ), 23 ) - 5 + + + 42 + COUNT ( * ) * 38 / - 89 THEN NULL ELSE NULL END * 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6012
SELECT - - 68 + - COALESCE ( ( - CAST( NULL AS SIGNED ) ), + + 20 + + 99, + 29 ) AS col2, 88 * - CAST( NULL AS DECIMAL )
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-6012
SELECT - - 68 + - COALESCE ( ( - CAST ( NULL AS INTEGER ) ), + + 20 + + 99, + 29 ) AS col2, 88 * - CAST ( NULL AS REAL )
----
-51
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT ALL - 62 DIV - ( 7 ) - + ( + 6 )
----
2

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL - 62 / - ( 7 ) - + ( + 6 )
----
2

query I rowsort
SELECT - + 51 * + - COALESCE ( - COALESCE ( - 6, + 69 - - CASE - 72 WHEN 30 * 69 + + 20 * 39 THEN 15 END ), - 47 * 49 ) + 66 + 49 + + 10 + + + 98 + 35 AS col0
----
564

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL + - MIN( + 89 ) * + + 33 col0
----
-2937

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL + - MIN ( + 89 ) * + + 33 col0
----
-2937

query I rowsort
SELECT - 91 + + - 87 + 84
----
-94

query I rowsort
SELECT ALL ( + CASE - + 21 WHEN + - 4 THEN NULL WHEN - ( - 28 ) THEN + 76 * 16 * 79 END ) AS col2
----
NULL

query I rowsort
SELECT - 34 * - 19
----
646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6019
SELECT - COUNT( DISTINCT 27 ) + - 73 + 15 + CAST( + 33 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-6019
SELECT - COUNT ( DISTINCT 27 ) + - 73 + 15 + CAST ( + 33 AS INTEGER )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-6020
SELECT ALL + 54 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL + 54 / - 63
----
0

query I rowsort
SELECT + 92 + - 59 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT - COALESCE ( - COUNT( - - 58 ), - COUNT( * ) + - + 56 ) * + 96 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6022
SELECT - COALESCE ( - COUNT ( - - 58 ), - COUNT ( * ) + - + 56 ) * + 96 AS col1
----
96

query I rowsort
SELECT - 97 - 69 + - 84 - 70 AS col1
----
-320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6024
SELECT CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6024
SELECT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT DISTINCT - 94 DIV 17 + + COUNT( * ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - 94 / 17 + + COUNT ( * ) col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6026
SELECT DISTINCT ( + CASE - + CAST( NULL AS SIGNED ) WHEN - 31 THEN + 49 + + COUNT( * ) ELSE - 11 DIV + 46 END ) * - MIN( + 64 ) * - 28 + + + 31 + - COALESCE ( + + 48, + 26 ) AS col1, - COALESCE ( - + 51, - 83 * 12, + 36 ) + + 61 col0
----
-17
112

skipif mysql # not compatible
query II rowsort label-6026
SELECT DISTINCT ( + CASE - + CAST ( NULL AS INTEGER ) WHEN - 31 THEN + 49 + + COUNT ( * ) ELSE - 11 / + 46 END ) * - MIN ( + 64 ) * - 28 + + + 31 + - COALESCE ( + + 48, + 26 ) AS col1, - COALESCE ( - + 51, - 83 * 12, + 36 ) + + 61 col0
----
-17
112

query I rowsort
SELECT + NULLIF ( 18, + - 29 / - 64 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT - 37 + + 8 + COALESCE ( COUNT( * ), + 39 * + - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-6028
SELECT - 37 + + 8 + COALESCE ( COUNT ( * ), + 39 * + - 28 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT CAST( - + 67 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6029
SELECT CAST ( - + 67 AS INTEGER ) AS col1
----
-67

query I rowsort
SELECT 56 * + ( 9 ) + + 97 AS col1
----
601

query I rowsort
SELECT + 20 - + + 50 AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6032
SELECT - CAST( - 13 AS SIGNED ) * 48 - + 43 + 36 DIV - 83
----
581

skipif mysql # not compatible
query I rowsort label-6032
SELECT - CAST ( - 13 AS INTEGER ) * 48 - + 43 + 36 / - 83
----
581

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT ALL - 45 DIV - 86 + + + COALESCE ( - 75, + 51 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL - 45 / - 86 + + + COALESCE ( - 75, + 51 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT + COUNT( * ) * - 91
----
-91

skipif mysql # not compatible
query I rowsort label-6034
SELECT + COUNT ( * ) * - 91
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT DISTINCT + CAST( + + 42 AS SIGNED ) col1
----
42

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT + CAST ( + + 42 AS INTEGER ) col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6036
SELECT ALL COALESCE ( + 8, - 38, CASE - - ( - - COUNT( * ) ) WHEN + ( + + 81 ) + - CAST( NULL AS DECIMAL ) THEN NULL WHEN - NULLIF ( 35, + - 5 + + - 0 ) * + 29 + - COALESCE ( NULLIF ( - MIN( - + 14 ), - - 56 * + 74 + + 12 ), 71 - + 89, - 27 ) THEN 49 WHEN 22 THEN COUNT( * ) ELSE COUNT( * ) * - 89 + 29 END ) * 86 + 20 * COUNT( * ) AS col1
----
708

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL COALESCE ( + 8, - 38, CASE - - ( - - COUNT ( * ) ) WHEN + ( + + 81 ) + - CAST ( NULL AS REAL ) THEN NULL WHEN - NULLIF ( 35, + - 5 + + - 0 ) * + 29 + - COALESCE ( NULLIF ( - MIN ( - + 14 ), - - 56 * + 74 + + 12 ), 71 - + 89, - 27 ) THEN 49 WHEN 22 THEN COUNT ( * ) ELSE COUNT ( * ) * - 89 + 29 END ) * 86 + 20 * COUNT ( * ) AS col1
----
708

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT + 18 + COUNT( * ) + + 72 * COUNT( * ) * - 28 AS col0
----
-1997

skipif mysql # not compatible
query I rowsort label-6037
SELECT + 18 + COUNT ( * ) + + 72 * COUNT ( * ) * - 28 AS col0
----
-1997

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL + ( + 2 ) * + MIN( - 31 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL + ( + 2 ) * + MIN ( - 31 ) AS col1
----
-62

query II rowsort
SELECT 22 AS col1, - 27 col1
----
22
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6040
SELECT 33 * - + COUNT( * ) + + - 87 + 59 - - CAST( NULL AS SIGNED ) col1, 71 + + - 69
----
NULL
2

skipif mysql # not compatible
query II rowsort label-6040
SELECT 33 * - + COUNT ( * ) + + - 87 + 59 - - CAST ( NULL AS INTEGER ) col1, 71 + + - 69
----
NULL
2

query II rowsort
SELECT ALL 15 - - ( - 19 ), 15 AS col2
----
-4
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6042
SELECT ALL - 36 * 39 DIV + NULLIF ( NULLIF ( COUNT( * ), - 42 ), - MAX( - 25 ) )
----
-1404

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL - 36 * 39 / + NULLIF ( NULLIF ( COUNT ( * ), - 42 ), - MAX ( - 25 ) )
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL - SUM( ALL - ( + 62 ) ) * + - 76 * 12 * + - 20 * 73
----
82554240

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - SUM ( ALL - ( + 62 ) ) * + - 76 * 12 * + - 20 * 73
----
82554240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6044
SELECT - ( - CASE + 55 WHEN - + 98 + + CAST( 81 AS SIGNED ) THEN ( + 19 ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT - ( - CASE + 55 WHEN - + 98 + + CAST ( 81 AS INTEGER ) THEN ( + 19 ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT + SUM( ALL + - 27 ) + + + 86 AS col2, 80 AS col1
----
59
80

skipif mysql # not compatible
query II rowsort label-6045
SELECT + SUM ( ALL + - 27 ) + + + 86 AS col2, 80 AS col1
----
59
80

query I rowsort
SELECT - - ( 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL 65 - + - 23 + 78 * - - 50 + COUNT( * ) + + 71 AS col1
----
4060

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL 65 - + - 23 + 78 * - - 50 + COUNT ( * ) + + 71 AS col1
----
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT - COUNT( * ) * - 72 * + 73 * 90 AS col1
----
473040

skipif mysql # not compatible
query I rowsort label-6048
SELECT - COUNT ( * ) * - 72 * + 73 * 90 AS col1
----
473040

query I rowsort
SELECT ( + NULLIF ( 86, + 68 + + 80 ) ) * + 55 AS col0
----
4730

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT 61 + - COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6050
SELECT 61 + - COUNT ( * ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6051
SELECT 29 AS col2, + COALESCE ( ( + + 54 ), + ( - 83 ), COUNT( * ) ) - 65 AS col1
----
29
-11

skipif mysql # not compatible
query II rowsort label-6051
SELECT 29 AS col2, + COALESCE ( ( + + 54 ), + ( - 83 ), COUNT ( * ) ) - 65 AS col1
----
29
-11

query I rowsort
SELECT 94 * + ( 2 ) AS col2
----
188

query II rowsort
SELECT - 47, - 16 col1
----
-47
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT 10 + 37 + - - 72 * + COUNT( * ) + 21 + + 48
----
188

skipif mysql # not compatible
query I rowsort label-6054
SELECT 10 + 37 + - - 72 * + COUNT ( * ) + 21 + + 48
----
188

query I rowsort
SELECT 19 + + 8 * - 8 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL - CASE COUNT( * ) WHEN COUNT( * ) THEN 48 END + + - 62
----
-110

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL - CASE COUNT ( * ) WHEN COUNT ( * ) THEN 48 END + + - 62
----
-110

query I rowsort
SELECT 29 + - 15
----
14

query I rowsort
SELECT ALL - 32 + + - 68 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT 51 * - 90 + + 47 + 29 + - - 84 - - - 64 * + COUNT( * )
----
-4494

skipif mysql # not compatible
query I rowsort label-6059
SELECT 51 * - 90 + + 47 + 29 + - - 84 - - - 64 * + COUNT ( * )
----
-4494

query I rowsort
SELECT 19 * + ( + 41 )
----
779

query I rowsort
SELECT + 12 * 14 * - - ( - + 84 ) + + 55 col1
----
-14057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6062
SELECT ALL - 88 + - CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL - 88 + - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6063
SELECT COUNT( * ) * + CAST( + 76 AS SIGNED ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6063
SELECT COUNT ( * ) * + CAST ( + 76 AS INTEGER ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT DISTINCT 96 * NULLIF ( + MIN( - 72 ), - 27 )
----
-6912

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT 96 * NULLIF ( + MIN ( - 72 ), - 27 )
----
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL - 31 - - COALESCE ( 52, + 92 * + + 23 - MIN( DISTINCT - 22 ), - 83 + - ( 28 ) )
----
21

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL - 31 - - COALESCE ( 52, + 92 * + + 23 - MIN ( DISTINCT - 22 ), - 83 + - ( 28 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT MAX( DISTINCT + NULLIF ( 87, - 77 + - + 41 ) ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6066
SELECT MAX ( DISTINCT + NULLIF ( 87, - 77 + - + 41 ) ) AS col1
----
87

query II rowsort
SELECT + 69 - - - 67 AS col0, 33 AS col0
----
2
33

query I rowsort
SELECT + NULLIF ( 94, - + ( 12 ) ) * 17 AS col0
----
1598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6069
SELECT DISTINCT + 40 * - + CAST( + 9 AS SIGNED ) * COUNT( * ) * + 79 AS col1
----
-28440

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT + 40 * - + CAST ( + 9 AS INTEGER ) * COUNT ( * ) * + 79 AS col1
----
-28440

query I rowsort
SELECT DISTINCT - CASE - - 13 WHEN 62 * - 66 * 41 + + 17 THEN - 52 / - ( 31 ) + + - 30 * - + 11 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6071
SELECT DISTINCT - + 70, + CAST( NULL AS SIGNED ) AS col1
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-6071
SELECT DISTINCT - + 70, + CAST ( NULL AS INTEGER ) AS col1
----
-70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT ALL - - MIN( - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL - - MIN ( - 6 )
----
-6

query I rowsort
SELECT 20 - - 1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT ALL - 24 * SUM( ALL - 95 ) + - 43 * + 2 AS col2
----
2194

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL - 24 * SUM ( ALL - 95 ) + - 43 * + 2 AS col2
----
2194

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT + ( - - CASE - 66 WHEN - COALESCE ( + 79, - + COUNT( * ) ) THEN CASE + + 27 WHEN + 38 + + 48 * - ( - 87 ) THEN - 78 END WHEN COALESCE ( - 4, - - 76 * - 78 + + 59, - ( 72 ) ) THEN - 74 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT + ( - - CASE - 66 WHEN - COALESCE ( + 79, - + COUNT ( * ) ) THEN CASE + + 27 WHEN + 38 + + 48 * - ( - 87 ) THEN - 78 END WHEN COALESCE ( - 4, - - 76 * - 78 + + 59, - ( 72 ) ) THEN - 74 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT + CAST( + 84 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-6076
SELECT + CAST ( + 84 AS INTEGER )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6077
SELECT - + 97 AS col2, + ( - + 75 ) * NULLIF ( 27, + - 53 / + - CAST( 43 AS SIGNED ) + - 1 )
----
-97
-2025

skipif mysql # not compatible
query II rowsort label-6077
SELECT - + 97 AS col2, + ( - + 75 ) * NULLIF ( 27, + - 53 / + - CAST ( 43 AS INTEGER ) + - 1 )
----
-97
-2025

query I rowsort
SELECT + 59 * + + 62 AS col1
----
3658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6079
SELECT COUNT( ALL - 92 ) + - - CAST( - + 97 AS SIGNED ) * 30 col2
----
-2909

skipif mysql # not compatible
query I rowsort label-6079
SELECT COUNT ( ALL - 92 ) + - - CAST ( - + 97 AS INTEGER ) * 30 col2
----
-2909

query I rowsort
SELECT ALL COALESCE ( - 28, ( + 26 ) ) * 52 AS col0
----
-1456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6081
SELECT - 27 AS col0, + COUNT( CAST( NULL AS SIGNED ) ) AS col0
----
-27
0

skipif mysql # not compatible
query II rowsort label-6081
SELECT - 27 AS col0, + COUNT ( CAST ( NULL AS INTEGER ) ) AS col0
----
-27
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT CASE + 16 WHEN + 44 THEN NULL ELSE - + COUNT( * ) END + - COUNT( * ) * - ( - ( - - ( 72 ) ) )
----
-73

skipif mysql # not compatible
query I rowsort label-6082
SELECT CASE + 16 WHEN + 44 THEN NULL ELSE - + COUNT ( * ) END + - COUNT ( * ) * - ( - ( - - ( 72 ) ) )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT 94 DIV 42 col1
----
2

skipif mysql # not compatible
query I rowsort label-6083
SELECT 94 / 42 col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6084
SELECT ALL COUNT( ALL + 38 ) * 20 * - CAST( NULL AS DECIMAL ) * - 76 * 99 * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL COUNT ( ALL + 38 ) * 20 * - CAST ( NULL AS REAL ) * - 76 * 99 * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT 22 + - - 41 + NULLIF ( - + COUNT( * ), - 76 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6085
SELECT 22 + - - 41 + NULLIF ( - + COUNT ( * ), - 76 ) AS col0
----
62

query I rowsort
SELECT DISTINCT + ( + - 81 ) + - 73
----
-154

query I rowsort
SELECT DISTINCT - 19 + + 85 + ( - 64 ) * - + 59
----
3842

query I rowsort
SELECT ALL - 1 * + 76
----
-76

query I rowsort
SELECT NULLIF ( + 66, + 19 ) AS col0
----
66

query I rowsort
SELECT ALL 73 * + 17
----
1241

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT DISTINCT + MAX( ALL 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT + MAX ( ALL 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL + ( - + NULLIF ( + 14, COUNT( * ) ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + ( - + NULLIF ( + 14, COUNT ( * ) ) ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-6093
SELECT ALL - 2 * + 7, COUNT( * ) * + + COUNT( - - 33 ) * + + 29 AS col1
----
-14
29

skipif mysql # not compatible
query II rowsort label-6093
SELECT ALL - 2 * + 7, COUNT ( * ) * + + COUNT ( - - 33 ) * + + 29 AS col1
----
-14
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT + 31 * + COUNT( * ) * COALESCE ( + CASE WHEN NULL = ( + 7 ) THEN + 79 END, - - 76 ) AS col2
----
2356

skipif mysql # not compatible
query I rowsort label-6094
SELECT + 31 * + COUNT ( * ) * COALESCE ( + CASE WHEN NULL = ( + 7 ) THEN + 79 END, - - 76 ) AS col2
----
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT DISTINCT + - SUM( 12 ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT + - SUM ( 12 ) col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT - 67 + + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-6096
SELECT - 67 + + COUNT ( * )
----
-66

query I rowsort
SELECT - 50 - + 87 + - 96 AS col0
----
-233

query I rowsort
SELECT ALL - 75 * 95 * + 61 - - 94 + + 39 AS col2
----
-434492

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT + 86 * + CASE - 16 WHEN + 84 THEN + - COUNT( * ) WHEN + 53 * - 86 * + 29 - - 29 THEN - 89 + - 25 + 69 / - - MIN( ALL - 60 ) + - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT + 86 * + CASE - 16 WHEN + 84 THEN + - COUNT ( * ) WHEN + 53 * - 86 * + 29 - - 29 THEN - 89 + - 25 + 69 / - - MIN ( ALL - 60 ) + - 66 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6100
SELECT - 8 / - + 27 + 42 + - NULLIF ( - 26, + - 35 * 6 - + - 25 * + 8 ) + + + CAST( NULL AS DECIMAL ) - 77 + 63 - CAST( NULL AS SIGNED ) + - - 43 * COUNT( * ) * + - ( + 93 ) * - 95 + - 9 * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT - 8 / - + 27 + 42 + - NULLIF ( - 26, + - 35 * 6 - + - 25 * + 8 ) + + + CAST ( NULL AS REAL ) - 77 + 63 - CAST ( NULL AS INTEGER ) + - - 43 * COUNT ( * ) * + - ( + 93 ) * - 95 + - 9 * 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT - + 64 + + SUM( DISTINCT + 94 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6101
SELECT - + 64 + + SUM ( DISTINCT + 94 ) AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6102
SELECT - - 89 + - 32 DIV + 8 col1
----
85

skipif mysql # not compatible
query I rowsort label-6102
SELECT - - 89 + - 32 / + 8 col1
----
85

query I rowsort
SELECT + - 40 + 90
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6104
SELECT - + 12 + - 19 DIV - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-6104
SELECT - + 12 + - 19 / - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6105
SELECT DISTINCT - 1 + 96 * - COUNT( - + 9 ) * 99 AS col2, 85
----
-9505
85

skipif mysql # not compatible
query II rowsort label-6105
SELECT DISTINCT - 1 + 96 * - COUNT ( - + 9 ) * 99 AS col2, 85
----
-9505
85

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT - COUNT( * ), + 21 AS col1
----
-1
21

skipif mysql # not compatible
query II rowsort label-6106
SELECT - COUNT ( * ), + 21 AS col1
----
-1
21

query I rowsort
SELECT ALL + 5 + - - 63 + + 57 AS col0
----
125

query I rowsort
SELECT DISTINCT - 50 + 24
----
-26

query II rowsort
SELECT ALL 91 AS col2, + ( + 22 )
----
91
22

query I rowsort
SELECT + 74 + - 12 + + 37 + 3
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-6111
SELECT + 33 * + ( - 57 ), 63 + + 27 - - COUNT( * ) + + + 75 + COALESCE ( - 38, 63 * 5 * 23 ) * + MAX( 86 ) - + 62 * - 78 * + + 47 AS col2
----
-1881
224190

skipif mysql # not compatible
query II rowsort label-6111
SELECT + 33 * + ( - 57 ), 63 + + 27 - - COUNT ( * ) + + + 75 + COALESCE ( - 38, 63 * 5 * 23 ) * + MAX ( 86 ) - + 62 * - 78 * + + 47 AS col2
----
-1881
224190

onlyif mysql # DIV for integer division: 
query I rowsort label-6112
SELECT ALL - 32 + 23 DIV - ( 34 )
----
-32

skipif mysql # not compatible
query I rowsort label-6112
SELECT ALL - 32 + 23 / - ( 34 )
----
-32

query I rowsort
SELECT - NULLIF ( - + 60, - 69 ) AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6114
SELECT ALL 2 AS col1, SUM( DISTINCT - + CAST( 26 AS SIGNED ) ) AS col0
----
2
-26

skipif mysql # not compatible
query II rowsort label-6114
SELECT ALL 2 AS col1, SUM ( DISTINCT - + CAST ( 26 AS INTEGER ) ) AS col0
----
2
-26

query I rowsort
SELECT - 38 + + 82
----
44

query I rowsort
SELECT - 97 - 36
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT + COUNT( * ) + + NULLIF ( + - COUNT( * ), + 96 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT + COUNT ( * ) + + NULLIF ( + - COUNT ( * ), + 96 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6118
SELECT DISTINCT COALESCE ( + 66, + MAX( - 63 ) * CAST( NULL AS SIGNED ) * - + 74 ) - - - 65
----
1

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT COALESCE ( + 66, + MAX ( - 63 ) * CAST ( NULL AS INTEGER ) * - + 74 ) - - - 65
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6119
SELECT ALL 85 * COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL 85 * COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 67 * - 28 AS col1
----
-1876

onlyif mysql # aggregate syntax: 
query II rowsort label-6121
SELECT ALL COUNT( * ), 42 AS col1
----
1
42

skipif mysql # not compatible
query II rowsort label-6121
SELECT ALL COUNT ( * ), 42 AS col1
----
1
42

query I rowsort
SELECT + 61 + - 94 col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6123
SELECT ALL 76 AS col2, COUNT( * ) * - + 35 * + + ( COALESCE ( - + COUNT( * ), + - 27, + - 18 ) ) + + - 6 + 57 - COUNT( * ) * + + 81 + - 18
----
76
-13

skipif mysql # not compatible
query II rowsort label-6123
SELECT ALL 76 AS col2, COUNT ( * ) * - + 35 * + + ( COALESCE ( - + COUNT ( * ), + - 27, + - 18 ) ) + + - 6 + 57 - COUNT ( * ) * + + 81 + - 18
----
76
-13

query I rowsort
SELECT + 7 * - - 13 col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT - 13 * COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-6125
SELECT - 13 * COUNT ( * )
----
-13

query II rowsort
SELECT ALL + 8, 99 AS col0
----
8
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6127
SELECT + COUNT( * ) AS col1, 29 * + + CASE + 35 WHEN + + 67 / + + 68 * COUNT( * ) - 47 THEN NULL WHEN - + 91 THEN 9 WHEN + - 83 + + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * COUNT( * )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6127
SELECT + COUNT ( * ) AS col1, 29 * + + CASE + 35 WHEN + + 67 / + + 68 * COUNT ( * ) - 47 THEN NULL WHEN - + 91 THEN 9 WHEN + - 83 + + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * COUNT ( * )
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6128
SELECT - 25 * + - CASE + 51 WHEN - 68 * - - CAST( NULL AS SIGNED ) THEN + 61 WHEN + - 99 THEN 67 WHEN - CAST( - CASE + 26 WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN + + 45 * + - 25 THEN NULL ELSE + COUNT( * ) * 72 + + COUNT( * ) / - 50 END AS SIGNED ) THEN NULL END + + - 28, 33 AS col1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-6128
SELECT - 25 * + - CASE + 51 WHEN - 68 * - - CAST ( NULL AS INTEGER ) THEN + 61 WHEN + - 99 THEN 67 WHEN - CAST ( - CASE + 26 WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN + + 45 * + - 25 THEN NULL ELSE + COUNT ( * ) * 72 + + COUNT ( * ) / - 50 END AS INTEGER ) THEN NULL END + + - 28, 33 AS col1
----
NULL
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6129
SELECT - CASE + - 86 WHEN 32 THEN 36 * - + CAST( - + 62 AS SIGNED ) - 59 WHEN + COUNT( * ) THEN 85 + + - 8 * - 40 / 22 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT - CASE + - 86 WHEN 32 THEN 36 * - + CAST ( - + 62 AS INTEGER ) - 59 WHEN + COUNT ( * ) THEN 85 + + - 8 * - 40 / 22 END AS col1
----
NULL

query I rowsort
SELECT ALL - 90 * + 87 col2
----
-7830

query I rowsort
SELECT + + ( + 61 ) AS col0
----
61

query I rowsort
SELECT DISTINCT 66 * - 76
----
-5016

onlyif mysql # aggregate syntax: 
query II rowsort label-6133
SELECT DISTINCT + 13 * - 36 + - - COUNT( * ) + + ( - + COALESCE ( 38, + 92 * - 29 + + 43 ) ), 87 AS col2
----
-505
87

skipif mysql # not compatible
query II rowsort label-6133
SELECT DISTINCT + 13 * - 36 + - - COUNT ( * ) + + ( - + COALESCE ( 38, + 92 * - 29 + + 43 ) ), 87 AS col2
----
-505
87

query I rowsort
SELECT - 54 * - 94 * + CASE 77 WHEN 61 THEN - 19 WHEN + + 41 THEN NULL END * 18 - 57
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6135
SELECT - CAST( NULL AS DECIMAL ) / + 25 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT - CAST ( NULL AS REAL ) / + 25 col0
----
NULL

query I rowsort
SELECT ALL 74 * + 10 + - - 41 + 60 * + NULLIF ( + 77, 13 )
----
5401

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT - - 8 DIV + + 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT - - 8 / + + 60 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT DISTINCT + + NULLIF ( - - 78, + - ( 56 ) / 22 ) * 78 - + MIN( DISTINCT + + 74 ) AS col0
----
6010

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT + + NULLIF ( - - 78, + - ( 56 ) / 22 ) * 78 - + MIN ( DISTINCT + + 74 ) AS col0
----
6010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6139
SELECT - NULLIF ( - + 27, + 73 * 10 ) - COALESCE ( - 53, + COUNT( * ) + + 19, + NULLIF ( - + CAST( NULL AS SIGNED ), - + 45 + - 15 * - MAX( 22 ) ) DIV + COUNT( * ) + + 88 + 90 ) * 79
----
4214

skipif mysql # not compatible
query I rowsort label-6139
SELECT - NULLIF ( - + 27, + 73 * 10 ) - COALESCE ( - 53, + COUNT ( * ) + + 19, + NULLIF ( - + CAST ( NULL AS INTEGER ), - + 45 + - 15 * - MAX ( 22 ) ) / + COUNT ( * ) + + 88 + 90 ) * 79
----
4214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6140
SELECT - 8 * + 57 * + - CASE + - 80 WHEN - 44 THEN - ( - CAST( NULL AS SIGNED ) ) * - 89 - 33 ELSE NULL END - - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT - 8 * + 57 * + - CASE + - 80 WHEN - 44 THEN - ( - CAST ( NULL AS INTEGER ) ) * - 89 - 33 ELSE NULL END - - 80 AS col1
----
NULL

query II rowsort
SELECT DISTINCT ( + - 34 ) AS col0, 6 * 36 * + + 23
----
-34
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT - 21 + + COUNT( DISTINCT - - 51 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-6142
SELECT - 21 + + COUNT ( DISTINCT - - 51 ) col1
----
-20

query I rowsort
SELECT - 97 + + + 61
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT COUNT( + - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-6144
SELECT COUNT ( + - 74 )
----
1

query I rowsort
SELECT ALL + ( + + 8 ) * 66 AS col0
----
528

query I rowsort
SELECT ALL ( - + 71 ) AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6147
SELECT DISTINCT - CAST( + 76 AS SIGNED ) - + 42 DIV - MAX( DISTINCT 72 ) - - 79 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT - CAST ( + 76 AS INTEGER ) - + 42 / - MAX ( DISTINCT 72 ) - - 79 AS col0
----
3

query I rowsort
SELECT 57 + - 42 - + 3 AS col1
----
12

query I rowsort
SELECT 34 + 50 * + 93
----
4684

onlyif mysql # DIV for integer division: 
query I rowsort label-6150
SELECT 37 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-6150
SELECT 37 / 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT COUNT( * ) + - - NULLIF ( + 83, - 62 + 45 + 15 * - - 56 * 82 * - COUNT( * ) * - - COUNT( * ) * - 44 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6151
SELECT COUNT ( * ) + - - NULLIF ( + 83, - 62 + 45 + 15 * - - 56 * 82 * - COUNT ( * ) * - - COUNT ( * ) * - 44 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT DISTINCT 37 * - + 44 * + COALESCE ( - ( 30 ), + 41 ) * + 84 - - COUNT( * ) * + NULLIF ( COUNT( * ), - - ( - + ( - 39 ) ) / - 41 + + COUNT( * ) * - - 89 + - + 91 / - + 47 ) AS col2
----
4102561

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT 37 * - + 44 * + COALESCE ( - ( 30 ), + 41 ) * + 84 - - COUNT ( * ) * + NULLIF ( COUNT ( * ), - - ( - + ( - 39 ) ) / - 41 + + COUNT ( * ) * - - 89 + - + 91 / - + 47 ) AS col2
----
4102561

query I rowsort
SELECT ALL + 19 * 61 AS col0
----
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT DISTINCT + COUNT( * ) + - 72 * 27 AS col1
----
-1943

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT + COUNT ( * ) + - 72 * 27 AS col1
----
-1943

query I rowsort
SELECT 5 + 48 + + + 11 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT + COUNT( - 41 ) + + 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6156
SELECT + COUNT ( - 41 ) + + 15 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT ( + 57 ) - + SUM( DISTINCT + - ( + 27 ) )
----
84

skipif mysql # not compatible
query I rowsort label-6157
SELECT ( + 57 ) - + SUM ( DISTINCT + - ( + 27 ) )
----
84

query II rowsort
SELECT ( + 97 ), 94 + - 68 AS col1
----
97
26

query I rowsort
SELECT + + 51 * - + 94 + + 94 * + 79 + - + 23 col1
----
2609

query I rowsort
SELECT ALL - 7 + + + 85 + - 20 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL + NULLIF ( - - COUNT( * ), + 62 + - + 30 * - 49 / + 4 * 79 * - 24 / 20 + 57 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL + NULLIF ( - - COUNT ( * ), + 62 + - + 30 * - 49 / + 4 * 79 * - 24 / 20 + 57 ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6162
SELECT DISTINCT + 73 + + 22 * - + MIN( DISTINCT - 16 ), 5 + - 97 AS col1
----
425
-92

skipif mysql # not compatible
query II rowsort label-6162
SELECT DISTINCT + 73 + + 22 * - + MIN ( DISTINCT - 16 ), 5 + - 97 AS col1
----
425
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL + MIN( + 61 ) + - + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL + MIN ( + 61 ) + - + COUNT ( * )
----
60

query I rowsort
SELECT - 15 + - - 90 AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6165
SELECT MAX( DISTINCT - - CAST( NULL AS DECIMAL ) ) + - COALESCE ( + + ( - + 92 ), + ( COALESCE ( + 38, - 80, - ( + 76 ) / - 67 / 64 + 83 ) ) + + SUM( + 44 ) + - + 39 + - AVG ( + 86 ) + 71 * 76 * + + COUNT( * ) * + MIN( ALL + 99 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT MAX ( DISTINCT - - CAST ( NULL AS REAL ) ) + - COALESCE ( + + ( - + 92 ), + ( COALESCE ( + 38, - 80, - ( + 76 ) / - 67 / 64 + 83 ) ) + + SUM ( + 44 ) + - + 39 + - AVG ( + 86 ) + 71 * 76 * + + COUNT ( * ) * + MIN ( ALL + 99 ) ) AS col0
----
NULL

query I rowsort
SELECT ( 86 ) * - + 96
----
-8256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6167
SELECT 38 * 39 * + + CAST( + MIN( ALL + 72 ) AS SIGNED ) AS col2
----
106704

skipif mysql # not compatible
query I rowsort label-6167
SELECT 38 * 39 * + + CAST ( + MIN ( ALL + 72 ) AS INTEGER ) AS col2
----
106704

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT + MAX( - + 24 ) - - + 59
----
35

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT + MAX ( - + 24 ) - - + 59
----
35

query I rowsort
SELECT 28 * - 86 col2
----
-2408

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT DISTINCT - 60 DIV 16 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT - 60 / 16 AS col1
----
-3

query I rowsort
SELECT DISTINCT 15 - + 14 * + + 72 AS col1
----
-993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6172
SELECT ALL - 42 * - AVG ( ALL 58 ) * - 68 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - 42 * - AVG ( ALL 58 ) * - 68 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6173
SELECT 48 DIV COALESCE ( - CAST( - - 46 AS SIGNED ), 3 DIV + - 77 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6173
SELECT 48 / COALESCE ( - CAST ( - - 46 AS INTEGER ), 3 / + - 77 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6174
SELECT ALL - MIN( + 70 ) DIV - ( - + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - MIN ( + 70 ) / - ( - + 96 )
----
0

query I rowsort
SELECT ( - 28 ) * + 65
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT 63 + + - CASE + 50 WHEN 94 THEN NULL ELSE - - 42 END + 21 - - - 83 * - MIN( DISTINCT + 45 )
----
3777

skipif mysql # not compatible
query I rowsort label-6176
SELECT 63 + + - CASE + 50 WHEN 94 THEN NULL ELSE - - 42 END + 21 - - - 83 * - MIN ( DISTINCT + 45 )
----
3777

query I rowsort
SELECT ALL + 71 * + - 57 AS col2
----
-4047

query I rowsort
SELECT 53 * 27
----
1431

query I rowsort
SELECT ALL + 98 * + 99 AS col1
----
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT DISTINCT MAX( - + 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT MAX ( - + 63 ) AS col1
----
-63

query I rowsort
SELECT ALL - - 62 + - + 21
----
41

onlyif mysql # DIV for integer division: 
query II rowsort label-6182
SELECT DISTINCT 4 AS col1, + 45 DIV 53 * - 95
----
4
0

skipif mysql # not compatible
query II rowsort label-6182
SELECT DISTINCT 4 AS col1, + 45 / 53 * - 95
----
4
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6183
SELECT + MIN( ALL + 35 ) + + 39 * 19 * 35 AS col1, + 25 AS col1
----
25970
25

skipif mysql # not compatible
query II rowsort label-6183
SELECT + MIN ( ALL + 35 ) + + 39 * 19 * 35 AS col1, + 25 AS col1
----
25970
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT + COUNT( - 76 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6184
SELECT + COUNT ( - 76 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6185
SELECT - CASE 59 WHEN 72 - - 81 THEN + 7 + 96 + + 16 WHEN - + 42 * ( - 49 ) + - - 95 THEN NULL END / 77 * - + 35, + COUNT( * ) * COALESCE ( + - 14, 33 ) AS col1
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-6185
SELECT - CASE 59 WHEN 72 - - 81 THEN + 7 + 96 + + 16 WHEN - + 42 * ( - 49 ) + - - 95 THEN NULL END / 77 * - + 35, + COUNT ( * ) * COALESCE ( + - 14, 33 ) AS col1
----
NULL
-14

query I rowsort
SELECT ALL 91 * 98 + + 57 + - 90 AS col1
----
8885

onlyif mysql # DIV for integer division: 
query I rowsort label-6187
SELECT 89 DIV + + 33 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6187
SELECT 89 / + + 33 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT DISTINCT - - MIN( DISTINCT + 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT - - MIN ( DISTINCT + 41 ) AS col0
----
41

query I rowsort
SELECT ( 21 ) * - 46 * + 81 AS col1
----
-78246

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6190
SELECT NULLIF ( - 28, CAST( + - MIN( - 47 ) AS DECIMAL ) * + 47 * 62 ) * ( MIN( + 87 ) ) - - 71 AS col0
----
-2365

skipif mysql # not compatible
query I rowsort label-6190
SELECT NULLIF ( - 28, CAST ( + - MIN ( - 47 ) AS REAL ) * + 47 * 62 ) * ( MIN ( + 87 ) ) - - 71 AS col0
----
-2365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6191
SELECT CAST( NULL AS SIGNED ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6191
SELECT CAST ( NULL AS INTEGER ) * 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT 22 + COUNT( DISTINCT + 66 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-6192
SELECT 22 + COUNT ( DISTINCT + 66 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + MAX( ALL 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-6193
SELECT + MAX ( ALL 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT ALL 62 * - COUNT( * ) * - - 70 col1
----
-4340

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL 62 * - COUNT ( * ) * - - 70 col1
----
-4340

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT + MAX( - 7 ) * - 25 * 11 - - - SUM( + - 96 ) * + 0 + 49 + + ( - + 65 ) + + + CASE + 86 WHEN COALESCE ( + COUNT( * ), - - MIN( + 61 ) * CASE 7 WHEN + - 68 THEN - ( - - 31 ) + 8 + + 46 + + + 80 * + 69 WHEN + ( + 57 ) + - 11 THEN NULL END * 11 + 23 ) + - 67 THEN NULL ELSE - 22 END
----
1887

skipif mysql # not compatible
query I rowsort label-6195
SELECT + MAX ( - 7 ) * - 25 * 11 - - - SUM ( + - 96 ) * + 0 + 49 + + ( - + 65 ) + + + CASE + 86 WHEN COALESCE ( + COUNT ( * ), - - MIN ( + 61 ) * CASE 7 WHEN + - 68 THEN - ( - - 31 ) + 8 + + 46 + + + 80 * + 69 WHEN + ( + 57 ) + - 11 THEN NULL END * 11 + 23 ) + - 67 THEN NULL ELSE - 22 END
----
1887

query I rowsort
SELECT + 20 - - 53 AS col0
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-6197
SELECT + 32 DIV 91, - 6 AS col2
----
0
-6

skipif mysql # not compatible
query II rowsort label-6197
SELECT + 32 / 91, - 6 AS col2
----
0
-6

query I rowsort
SELECT - 38 * 80 AS col1
----
-3040

query II rowsort
SELECT 3 col1, - 13 AS col1
----
3
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6200
SELECT + 8 + - - COUNT( * ) DIV 76 * - - 69
----
8

skipif mysql # not compatible
query I rowsort label-6200
SELECT + 8 + - - COUNT ( * ) / 76 * - - 69
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT COUNT( * ) * - 69 + - 57
----
-126

skipif mysql # not compatible
query I rowsort label-6201
SELECT COUNT ( * ) * - 69 + - 57
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT + 2 DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-6202
SELECT + 2 / 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL 8 + + + 77 + + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL 8 + + + 77 + + COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6204
SELECT ALL 72 AS col0, - 75 + + MAX( DISTINCT - 71 )
----
72
-146

skipif mysql # not compatible
query II rowsort label-6204
SELECT ALL 72 AS col0, - 75 + + MAX ( DISTINCT - 71 )
----
72
-146

query I rowsort
SELECT ALL - 12 + + - 91
----
-103

query I rowsort
SELECT - 72 * + 68 * + - 76 AS col0
----
372096

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6207
SELECT - - COALESCE ( - 54, + CAST( + - 73 AS SIGNED ) ) + + 26 + - 78 DIV - 5 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6207
SELECT - - COALESCE ( - 54, + CAST ( + - 73 AS INTEGER ) ) + + 26 + - 78 / - 5 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT DISTINCT 32 + - - 80 * - 50 + + - SUM( ALL + - ( + - 44 ) ) - COUNT( * ) - 95 * - COUNT( * )
----
-3918

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT 32 + - - 80 * - 50 + + - SUM ( ALL + - ( + - 44 ) ) - COUNT ( * ) - 95 * - COUNT ( * )
----
-3918

onlyif mysql # aggregate syntax: 
query II rowsort label-6209
SELECT - ( 90 ) AS col1, MAX( - NULLIF ( - + 28, + 22 ) ) col0
----
-90
28

skipif mysql # not compatible
query II rowsort label-6209
SELECT - ( 90 ) AS col1, MAX ( - NULLIF ( - + 28, + 22 ) ) col0
----
-90
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT + 20 + - - NULLIF ( - 16, + 98 ) + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-6210
SELECT + 20 + - - NULLIF ( - 16, + 98 ) + - COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT - - MAX( DISTINCT - 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-6211
SELECT - - MAX ( DISTINCT - 72 )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6212
SELECT - ( - - COUNT( + - 35 ) ) + - - CAST( 69 AS SIGNED ) DIV + CAST( - 3 AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-6212
SELECT - ( - - COUNT ( + - 35 ) ) + - - CAST ( 69 AS INTEGER ) / + CAST ( - 3 AS INTEGER )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT - 3 * - ( COUNT( * ) ) + - 95 + 83 + - - 46 * - 84 * - 1 AS col0
----
3855

skipif mysql # not compatible
query I rowsort label-6213
SELECT - 3 * - ( COUNT ( * ) ) + - 95 + 83 + - - 46 * - 84 * - 1 AS col0
----
3855

query I rowsort
SELECT ALL 17 + - 57 + - 47 * ( + + 33 ) * - + 65
----
100775

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT DISTINCT NULLIF ( + 76, 11 ) + 63 - - 26 - - 36 DIV 67 DIV - 21 * - - 52 * - 87 AS col2
----
165

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT NULLIF ( + 76, 11 ) + 63 - - 26 - - 36 / 67 / - 21 * - - 52 * - 87 AS col2
----
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6216
SELECT DISTINCT CAST( - 3 AS SIGNED ) AS col2, + 56 + COUNT( - + 76 )
----
-3
57

skipif mysql # not compatible
query II rowsort label-6216
SELECT DISTINCT CAST ( - 3 AS INTEGER ) AS col2, + 56 + COUNT ( - + 76 )
----
-3
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6217
SELECT 79 DIV 21 + - MIN( + 96 ) - 80 AS col2
----
-173

skipif mysql # not compatible
query I rowsort label-6217
SELECT 79 / 21 + - MIN ( + 96 ) - 80 AS col2
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6218
SELECT - + COALESCE ( - COALESCE ( - + NULLIF ( + + COALESCE ( COUNT( * ), 24, - + 41 ), + - 19 ), 89 * - 6 + + 20 + + 23 * 88 ), + 2, + 69 ) + - CAST( NULL AS SIGNED ) AS col0, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6218
SELECT - + COALESCE ( - COALESCE ( - + NULLIF ( + + COALESCE ( COUNT ( * ), 24, - + 41 ), + - 19 ), 89 * - 6 + + 20 + + 23 * 88 ), + 2, + 69 ) + - CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * )
----
NULL
-1

query II rowsort
SELECT DISTINCT + 45, 74 AS col0
----
45
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL - - ( + COUNT( * ) ) * 66 - - 15 + + 16 * + 86 + - 60
----
1397

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL - - ( + COUNT ( * ) ) * 66 - - 15 + + 16 * + 86 + - 60
----
1397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6221
SELECT - - COALESCE ( - 32, + 75, + 39 ) DIV ( - - 61 ) * - COUNT( * ) + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6221
SELECT - - COALESCE ( - 32, + 75, + 39 ) / ( - - 61 ) * - COUNT ( * ) + + COUNT ( * ) AS col2
----
1

query II rowsort
SELECT + 91 AS col1, 45 + + 72 AS col2
----
91
117

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6223
SELECT CASE - CAST( NULL AS DECIMAL ) WHEN - 85 THEN + 43 ELSE + + 44 END * + 3 + - - 7 + 92
----
231

skipif mysql # not compatible
query I rowsort label-6223
SELECT CASE - CAST ( NULL AS REAL ) WHEN - 85 THEN + 43 ELSE + + 44 END * + 3 + - - 7 + 92
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6224
SELECT ALL + CAST( + ( + CASE - 22 WHEN - 11 * 95 / - - COUNT( * ) THEN NULL WHEN - - 90 THEN + 2 - 1 + 98 / + 52 / - + 69 WHEN - - 18 THEN NULL ELSE - 99 END ) AS SIGNED ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + CAST ( + ( + CASE - 22 WHEN - 11 * 95 / - - COUNT ( * ) THEN NULL WHEN - - 90 THEN + 2 - 1 + 98 / + 52 / - + 69 WHEN - - 18 THEN NULL ELSE - 99 END ) AS INTEGER ) AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6225
SELECT - 51 * 68 DIV - NULLIF ( + - 52, + + 59 ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-6225
SELECT - 51 * 68 / - NULLIF ( + - 52, + + 59 ) col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT ALL + CAST( - - 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + CAST ( - - 14 AS INTEGER ) AS col2
----
14

query I rowsort
SELECT - 56 * - - 4
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT - 15 * - COUNT( DISTINCT + + 51 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-6228
SELECT - 15 * - COUNT ( DISTINCT + + 51 ) AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6229
SELECT + 88 * + 56 + + COALESCE ( - CASE + 84 WHEN 12 + + 96 THEN NULL WHEN - + CAST( - - 21 AS DECIMAL ) / - 29 THEN + - 83 ELSE NULL END, 72 * - COUNT( 46 ) )
----
4856

skipif mysql # not compatible
query I rowsort label-6229
SELECT + 88 * + 56 + + COALESCE ( - CASE + 84 WHEN 12 + + 96 THEN NULL WHEN - + CAST ( - - 21 AS REAL ) / - 29 THEN + - 83 ELSE NULL END, 72 * - COUNT ( 46 ) )
----
4856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT ALL + CASE + - 92 WHEN + + CAST( + 89 AS SIGNED ) THEN + 90 WHEN ( 85 ) + + 42 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL + CASE + - 92 WHEN + + CAST ( + 89 AS INTEGER ) THEN + 90 WHEN ( 85 ) + + 42 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT NULLIF ( ( - - 41 ), - 15 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT SUM( ALL + + COALESCE ( - + 30, - 11 ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-6232
SELECT SUM ( ALL + + COALESCE ( - + 30, - 11 ) ) AS col2
----
-30

query I rowsort
SELECT + 61 * 17 AS col2
----
1037

query II rowsort
SELECT - ( 20 ) AS col1, 53
----
-20
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT MAX( ALL - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-6235
SELECT MAX ( ALL - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT + 48 + 94 + COUNT( * )
----
143

skipif mysql # not compatible
query I rowsort label-6236
SELECT + 48 + 94 + COUNT ( * )
----
143

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6237
SELECT ALL 54 + - 24 AS col1, CAST( - COUNT( 16 ) AS DECIMAL ) + CASE + - SUM( + - 76 ) WHEN + COUNT( * ) THEN NULL WHEN + - MAX( - - ( + 53 ) ) THEN 54 ELSE NULL END AS col1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-6237
SELECT ALL 54 + - 24 AS col1, CAST ( - COUNT ( 16 ) AS REAL ) + CASE + - SUM ( + - 76 ) WHEN + COUNT ( * ) THEN NULL WHEN + - MAX ( - - ( + 53 ) ) THEN 54 ELSE NULL END AS col1
----
30
NULL

query I rowsort
SELECT ALL - 71 + + 69 col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6239
SELECT - - 69 + - ( + 7 ) * - 38 * - - CAST( NULL AS SIGNED ) * ( - + 71 ), COUNT( * ) + + + 87 col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-6239
SELECT - - 69 + - ( + 7 ) * - 38 * - - CAST ( NULL AS INTEGER ) * ( - + 71 ), COUNT ( * ) + + + 87 col1
----
NULL
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ( - MIN( DISTINCT + 14 ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-6240
SELECT ( - MIN ( DISTINCT + 14 ) ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT + - 25 * + 16 * + ( - COUNT( * ) ) AS col2
----
400

skipif mysql # not compatible
query I rowsort label-6241
SELECT + - 25 * + 16 * + ( - COUNT ( * ) ) AS col2
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT + CASE + - 86 WHEN SUM( DISTINCT + 44 ) THEN NULL ELSE - 72 END + + 57
----
-15

skipif mysql # not compatible
query I rowsort label-6242
SELECT + CASE + - 86 WHEN SUM ( DISTINCT + 44 ) THEN NULL ELSE - 72 END + + 57
----
-15

query I rowsort
SELECT - - 67 + + 77 AS col2
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-6244
SELECT MAX( DISTINCT - 29 ), + 97 AS col0
----
-29
97

skipif mysql # not compatible
query II rowsort label-6244
SELECT MAX ( DISTINCT - 29 ), + 97 AS col0
----
-29
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT ( - COUNT( * ) ) * - - 82 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6245
SELECT ( - COUNT ( * ) ) * - - 82 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL - MIN( + 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL - MIN ( + 67 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-6247
SELECT DISTINCT - COUNT( * ), 4 AS col2
----
-1
4

skipif mysql # not compatible
query II rowsort label-6247
SELECT DISTINCT - COUNT ( * ), 4 AS col2
----
-1
4

query I rowsort
SELECT 41 * - 44 * 56
----
-101024

onlyif mysql # aggregate syntax: 
query II rowsort label-6249
SELECT ALL - 83 AS col2, COUNT( * ) * - - COUNT( * )
----
-83
1

skipif mysql # not compatible
query II rowsort label-6249
SELECT ALL - 83 AS col2, COUNT ( * ) * - - COUNT ( * )
----
-83
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6250
SELECT COUNT( * ) DIV - 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6250
SELECT COUNT ( * ) / - 35 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT DISTINCT - COUNT( DISTINCT + - 15 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6251
SELECT DISTINCT - COUNT ( DISTINCT + - 15 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT - 47 * - COALESCE ( 29, - COUNT( * ), - COUNT( * ) ) - ( + - 24 ) * - 77
----
-485

skipif mysql # not compatible
query I rowsort label-6252
SELECT - 47 * - COALESCE ( 29, - COUNT ( * ), - COUNT ( * ) ) - ( + - 24 ) * - 77
----
-485

query I rowsort
SELECT ALL - 84 + 64
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT COUNT( * ) * - 50 + 74 + + 59 * + + 4
----
260

skipif mysql # not compatible
query I rowsort label-6254
SELECT COUNT ( * ) * - 50 + 74 + + 59 * + + 4
----
260

query II rowsort
SELECT + 5 AS col1, - 21 * + - 11 + - 81 AS col0
----
5
150

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT DISTINCT - MIN( ALL 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT - MIN ( ALL 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6257
SELECT 57 + + COUNT( * ) + - COALESCE ( 16, + + 60 ) * 2 + 5 * 41 DIV + 26
----
33

skipif mysql # not compatible
query I rowsort label-6257
SELECT 57 + + COUNT ( * ) + - COALESCE ( 16, + + 60 ) * 2 + 5 * 41 / + 26
----
33

query I rowsort
SELECT ALL + 12 + - 65
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT ALL + CAST( NULL AS SIGNED ) / + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL + CAST ( NULL AS INTEGER ) / + 87 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ALL - 84 + + + MAX( - 38 ) * + ( - COUNT( - + 29 ) ) + + 38
----
-8

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL - 84 + + + MAX ( - 38 ) * + ( - COUNT ( - + 29 ) ) + + 38
----
-8

query I rowsort
SELECT DISTINCT - 67 + + 44
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6262
SELECT 92 + CAST( 44 AS SIGNED ) + 15, - 57 AS col1
----
151
-57

skipif mysql # not compatible
query II rowsort label-6262
SELECT 92 + CAST ( 44 AS INTEGER ) + 15, - 57 AS col1
----
151
-57

query I rowsort
SELECT ALL - 49 + + 10 AS col1
----
-39

query II rowsort
SELECT 58 AS col0, + 96 AS col1
----
58
96

query I rowsort
SELECT ALL CASE - + 47 WHEN + 73 * - - 66 + - + 86 + 19 THEN + - 68 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6266
SELECT 45 * - 34 + - MAX( 1 ) DIV 90 * - - 8 DIV 7 AS col1
----
-1530

skipif mysql # not compatible
query I rowsort label-6266
SELECT 45 * - 34 + - MAX ( 1 ) / 90 * - - 8 / 7 AS col1
----
-1530

query I rowsort
SELECT ALL - ( + 39 ) - + + 89 + - 1 - + 22
----
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-6268
SELECT DISTINCT COUNT( * ), - COALESCE ( + + 38, + 59 ) AS col1
----
1
-38

skipif mysql # not compatible
query II rowsort label-6268
SELECT DISTINCT COUNT ( * ), - COALESCE ( + + 38, + 59 ) AS col1
----
1
-38

query I rowsort
SELECT - 43 * - + 82
----
3526

query II rowsort
SELECT 38 AS col1, - 66 + 60 * 54 + - 55 + 38 * + 16 + 23 AS col2
----
38
3750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6271
SELECT - 8 col0, CASE + 22 WHEN + 42 * + COUNT( * ) + + + COUNT( * ) + - - 99 * - - MAX( ALL 16 ) THEN NULL WHEN - - NULLIF ( + AVG ( - + 39 ), + 25 * - 65 + 62 - - ( + + 2 ) + + - ( + - 85 ) ) + + CAST( NULL AS SIGNED ) * + + 97 THEN NULL ELSE + + 91 * 74 * + 18 - + 98 + 53 END AS col2
----
-8
121167

skipif mysql # not compatible
query II rowsort label-6271
SELECT - 8 col0, CASE + 22 WHEN + 42 * + COUNT ( * ) + + + COUNT ( * ) + - - 99 * - - MAX ( ALL 16 ) THEN NULL WHEN - - NULLIF ( + AVG ( - + 39 ), + 25 * - 65 + 62 - - ( + + 2 ) + + - ( + - 85 ) ) + + CAST ( NULL AS INTEGER ) * + + 97 THEN NULL ELSE + + 91 * 74 * + 18 - + 98 + 53 END AS col2
----
-8
121167

onlyif mysql # aggregate syntax: 
query II rowsort label-6272
SELECT - COUNT( * ), 49 AS col2
----
-1
49

skipif mysql # not compatible
query II rowsort label-6272
SELECT - COUNT ( * ), 49 AS col2
----
-1
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL 39 - + MAX( DISTINCT - + 85 ) AS col1
----
124

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL 39 - + MAX ( DISTINCT - + 85 ) AS col1
----
124

query I rowsort
SELECT CASE - 59 WHEN - 15 THEN 31 ELSE - - 22 END AS col2
----
22

query I rowsort
SELECT + 32 + - 92 AS col1
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6276
SELECT 94 AS col0, CAST( NULL AS DECIMAL ) AS col1
----
94
NULL

skipif mysql # not compatible
query II rowsort label-6276
SELECT 94 AS col0, CAST ( NULL AS REAL ) AS col1
----
94
NULL

query I rowsort
SELECT ALL + 63 * 56 AS col1
----
3528

query II rowsort
SELECT DISTINCT 87 AS col2, - 69
----
87
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-6279
SELECT - - 97 AS col1, COUNT( * ) AS col0
----
97
1

skipif mysql # not compatible
query II rowsort label-6279
SELECT - - 97 AS col1, COUNT ( * ) AS col0
----
97
1

query I rowsort
SELECT DISTINCT - + NULLIF ( + 5, 73 ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6281
SELECT CAST( NULL AS SIGNED ) + + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6281
SELECT CAST ( NULL AS INTEGER ) + + 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6282
SELECT + NULLIF ( - + COUNT( * ), + 8 ) DIV ( + - COUNT( * ) ) * 85 * SUM( - 12 ) * 7 + - - 65 AS col2
----
-7075

skipif mysql # not compatible
query I rowsort label-6282
SELECT + NULLIF ( - + COUNT ( * ), + 8 ) / ( + - COUNT ( * ) ) * 85 * SUM ( - 12 ) * 7 + - - 65 AS col2
----
-7075

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT COUNT( * ) * - + 68 + + - CASE + COUNT( * ) WHEN + + 6 * - + 30 + + ( - COALESCE ( COALESCE ( + + 24, + 74 ), + + 44 + - 89 * - NULLIF ( + - ( + 44 ), - COUNT( * ) ) * 12 ) ) THEN - 48 * + 7 * NULLIF ( + 52, + + 60 ) WHEN - ( + 38 ) / + 72 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT COUNT ( * ) * - + 68 + + - CASE + COUNT ( * ) WHEN + + 6 * - + 30 + + ( - COALESCE ( COALESCE ( + + 24, + 74 ), + + 44 + - 89 * - NULLIF ( + - ( + 44 ), - COUNT ( * ) ) * 12 ) ) THEN - 48 * + 7 * NULLIF ( + 52, + + 60 ) WHEN - ( + 38 ) / + 72 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 44 + 41 AS col2, + 54 + + - 99
----
85
-45

query I rowsort
SELECT ALL - COALESCE ( - + 3, + 67 ) AS col2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6286
SELECT 82 + NULLIF ( + 46, - - 0 ) - - + CASE - - 69 WHEN - 10 THEN + 39 WHEN + CAST( NULL AS DECIMAL ) THEN + 24 * 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT 82 + NULLIF ( + 46, - - 0 ) - - + CASE - - 69 WHEN - 10 THEN + 39 WHEN + CAST ( NULL AS REAL ) THEN + 24 * 19 END
----
NULL

query I rowsort
SELECT ALL - 80 + 73 * 70
----
5030

query I rowsort
SELECT ( 81 ) * + 33 * + 72
----
192456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6289
SELECT ALL - NULLIF ( + 54, - + CASE 9 WHEN + - 80 * + 22 * + ( 34 ) - + + COUNT( * ) + - COUNT( * ) + + 83 THEN - CASE 16 WHEN 2 THEN - - 85 WHEN 51 * - 75 + + 65 + - CAST( NULL AS SIGNED ) THEN NULL WHEN + + 72 / 52 + - 61 THEN NULL ELSE + + 31 + + COUNT( * ) END END ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL - NULLIF ( + 54, - + CASE 9 WHEN + - 80 * + 22 * + ( 34 ) - + + COUNT ( * ) + - COUNT ( * ) + + 83 THEN - CASE 16 WHEN 2 THEN - - 85 WHEN 51 * - 75 + + 65 + - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 72 / 52 + - 61 THEN NULL ELSE + + 31 + + COUNT ( * ) END END ) AS col0
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-6290
SELECT 82 DIV + + 9, + 29 AS col0
----
9
29

skipif mysql # not compatible
query II rowsort label-6290
SELECT 82 / + + 9, + 29 AS col0
----
9
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6291
SELECT ALL + MIN( ALL + 84 ) - - 40 * + 7 AS col2, + 66 col0
----
364
66

skipif mysql # not compatible
query II rowsort label-6291
SELECT ALL + MIN ( ALL + 84 ) - - 40 * + 7 AS col2, + 66 col0
----
364
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6292
SELECT ALL + - 82 * - ( - 0 ) DIV - 2 * MIN( - - 61 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL + - 82 * - ( - 0 ) / - 2 * MIN ( - - 61 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6293
SELECT DISTINCT - + NULLIF ( 81, + + 74 ) - COUNT( * ), 96 AS col0
----
-82
96

skipif mysql # not compatible
query II rowsort label-6293
SELECT DISTINCT - + NULLIF ( 81, + + 74 ) - COUNT ( * ), 96 AS col0
----
-82
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - - MIN( - + 98 ) * + - COUNT( * ) + + + CASE 59 WHEN - COUNT( * ) THEN + - 50 * - 94 END + - + 8 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT - - MIN ( - + 98 ) * + - COUNT ( * ) + + + CASE 59 WHEN - COUNT ( * ) THEN + - 50 * - 94 END + - + 8 * - 5
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6295
SELECT DISTINCT + 86 * + CAST( NULL AS SIGNED ) / + AVG ( 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT + 86 * + CAST ( NULL AS INTEGER ) / + AVG ( 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT ALL - - 69 * 54 + + - 47 * - ( + COUNT( * ) ) * - 66
----
624

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL - - 69 * 54 + + - 47 * - ( + COUNT ( * ) ) * - 66
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT 12 / - - 89 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT 12 / - - 89 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT + 63 DIV 21 + - - 53 * + NULLIF ( + 95, - 18 )
----
5038

skipif mysql # not compatible
query I rowsort label-6298
SELECT + 63 / 21 + - - 53 * + NULLIF ( + 95, - 18 )
----
5038

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT + COUNT( * ) - + + 61 * - 44
----
2685

skipif mysql # not compatible
query I rowsort label-6299
SELECT + COUNT ( * ) - + + 61 * - 44
----
2685

query I rowsort
SELECT COALESCE ( - 95, - 50, - 76 )
----
-95

query I rowsort
SELECT 33 + - 29 + + + 13 * + 16 - - 75 + 31 * 63
----
2240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6302
SELECT + CAST( NULL AS SIGNED ) * + 92, - CAST( NULL AS SIGNED ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6302
SELECT + CAST ( NULL AS INTEGER ) * + 92, - CAST ( NULL AS INTEGER ) AS col2
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 43 + - - 47
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT + MAX( DISTINCT 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT + MAX ( DISTINCT 10 ) AS col2
----
10

query I rowsort
SELECT ALL + 21 + 45
----
66

query II rowsort
SELECT ALL - - 64 + - 96 AS col0, + 43 * 50 + - - 62 * - 13 AS col2
----
-32
1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6307
SELECT - - 46 * - 34 * + MIN( + 79 ) AS col0, + CAST( + - 78 AS SIGNED ) AS col1
----
-123556
-78

skipif mysql # not compatible
query II rowsort label-6307
SELECT - - 46 * - 34 * + MIN ( + 79 ) AS col0, + CAST ( + - 78 AS INTEGER ) AS col1
----
-123556
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT + COALESCE ( + 69, - 37 ) * + 17 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT + COALESCE ( + 69, - 37 ) * + 17 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query III rowsort
SELECT 42 AS col0, - 27 * - + 20 AS col2, + + 73 AS col0
----
42
540
73

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6310
SELECT 80, - NULLIF ( - + 5, - 87 ) * - + CAST( NULL AS DECIMAL ) + + 93 + + + 20 AS col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-6310
SELECT 80, - NULLIF ( - + 5, - 87 ) * - + CAST ( NULL AS REAL ) + + 93 + + + 20 AS col2
----
80
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6311
SELECT CASE + 18 WHEN + + ( + 69 ) + + - COUNT( * ) THEN + 48 WHEN + 52 + - - 46 THEN NULL WHEN - 13 / - 24 * + + COUNT( * ) THEN 87 + + - 65 END AS col1, 21 col0
----
NULL
21

skipif mysql # not compatible
query II rowsort label-6311
SELECT CASE + 18 WHEN + + ( + 69 ) + + - COUNT ( * ) THEN + 48 WHEN + 52 + - - 46 THEN NULL WHEN - 13 / - 24 * + + COUNT ( * ) THEN 87 + + - 65 END AS col1, 21 col0
----
NULL
21

onlyif mysql # aggregate syntax: 
query II rowsort label-6312
SELECT ALL + 18 AS col2, COUNT( * ) * + 28
----
18
28

skipif mysql # not compatible
query II rowsort label-6312
SELECT ALL + 18 AS col2, COUNT ( * ) * + 28
----
18
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT + COALESCE ( - COUNT( + + 91 ), 25, + - COUNT( * ) * + + 91 )
----
-1

skipif mysql # not compatible
query I rowsort label-6313
SELECT + COALESCE ( - COUNT ( + + 91 ), 25, + - COUNT ( * ) * + + 91 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6314
SELECT DISTINCT 1 * - 27 + 19 DIV - 8
----
-29

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT 1 * - 27 + 19 / - 8
----
-29

query I rowsort
SELECT + COALESCE ( 29, + 20 ) * + 37 AS col1
----
1073

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6316
SELECT ALL 75 * + 30 / 88 * + 64 + CAST( + - 39 AS DECIMAL ) - + 54 * + ( + SUM( CASE - 87 WHEN + 85 THEN ( 71 ) + 88 WHEN + - 95 THEN + + 57 END ) ) * + COUNT( DISTINCT + 63 ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL 75 * + 30 / 88 * + 64 + CAST ( + - 39 AS REAL ) - + 54 * + ( + SUM ( CASE - 87 WHEN + 85 THEN ( 71 ) + 88 WHEN + - 95 THEN + + 57 END ) ) * + COUNT ( DISTINCT + 63 ) / COUNT ( * )
----
NULL

query I rowsort
SELECT 58 * + + 82 + + - ( + 23 ) AS col2
----
4733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT + 20 - - CAST( NULL AS SIGNED ) * NULLIF ( + CAST( NULL AS SIGNED ), - 56 ) * 22 + + ( + 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT + 20 - - CAST ( NULL AS INTEGER ) * NULLIF ( + CAST ( NULL AS INTEGER ), - 56 ) * 22 + + ( + 24 )
----
NULL

query II rowsort
SELECT ALL + 37 AS col1, 12
----
37
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6320
SELECT + CAST( NULL AS SIGNED ) * + 75 + - + 10 AS col1, + 96
----
NULL
96

skipif mysql # not compatible
query II rowsort label-6320
SELECT + CAST ( NULL AS INTEGER ) * + 75 + - + 10 AS col1, + 96
----
NULL
96

query I rowsort
SELECT - 2 * - 51
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT + 72 + + COUNT( * ) + - 14 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6322
SELECT + 72 + + COUNT ( * ) + - 14 AS col1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6323
SELECT ALL 54 * 8 * 75, CASE + - 98 WHEN + + 89 + 81 THEN NULL WHEN + - CASE - SUM( ALL - 50 ) WHEN 43 * + 51 * - SUM( + - COALESCE ( + 92, - + 90 + - - 74 + + 82 * - 2 ) ) - - 21 THEN NULL WHEN + 40 THEN + NULLIF ( - 25, + 51 ) / - 8 WHEN - 61 * + 14 THEN NULL ELSE NULL END / 7 * - 84 - - 38 THEN COUNT( * ) + - 24 END - 55 AS col0
----
32400
NULL

skipif mysql # not compatible
query II rowsort label-6323
SELECT ALL 54 * 8 * 75, CASE + - 98 WHEN + + 89 + 81 THEN NULL WHEN + - CASE - SUM ( ALL - 50 ) WHEN 43 * + 51 * - SUM ( + - COALESCE ( + 92, - + 90 + - - 74 + + 82 * - 2 ) ) - - 21 THEN NULL WHEN + 40 THEN + NULLIF ( - 25, + 51 ) / - 8 WHEN - 61 * + 14 THEN NULL ELSE NULL END / 7 * - 84 - - 38 THEN COUNT ( * ) + - 24 END - 55 AS col0
----
32400
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT + CASE 44 WHEN 5 - + 46 THEN NULL WHEN + COUNT( * ) THEN + 49 / + - 8 END * 45 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT + CASE 44 WHEN 5 - + 46 THEN NULL WHEN + COUNT ( * ) THEN + 49 / + - 8 END * 45 * + 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT DISTINCT - 90 * + 47 + + COUNT( * )
----
-4229

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT - 90 * + 47 + + COUNT ( * )
----
-4229

query I rowsort
SELECT - - 46 * - NULLIF ( - - 24, - 87 - - 26 ) AS col0
----
-1104

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT - - MIN( ALL - 93 ) + + 65 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6327
SELECT - - MIN ( ALL - 93 ) + + 65 AS col1
----
-28

query I rowsort
SELECT + - 2 + + 97 * - + 33 + + - 53 + - - 46
----
-3210

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT - COUNT( * ) * - - 51 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-6329
SELECT - COUNT ( * ) * - - 51 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT COALESCE ( + 42, - - CASE 28 WHEN - - 83 THEN - + ( - + 87 ) * 63 + + 20 * 43 * COUNT( * ) * + 98 * + + 18 END, + - 31 + + + 29 + + 20 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6330
SELECT COALESCE ( + 42, - - CASE 28 WHEN - - 83 THEN - + ( - + 87 ) * 63 + + 20 * 43 * COUNT ( * ) * + 98 * + + 18 END, + - 31 + + + 29 + + 20 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT - + COUNT( * ) * - 99 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6331
SELECT - + COUNT ( * ) * - 99 AS col2
----
99

query I rowsort
SELECT DISTINCT - - 12 * - 68 AS col2
----
-816

query I rowsort
SELECT ALL - + 62 * + 78
----
-4836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6334
SELECT - 3 + - 18 + - NULLIF ( - - 91, - 83 DIV - + 28 ) + + - SUM( 36 ) * + + 39 - - + 94 DIV - SUM( DISTINCT 59 )
----
-1517

skipif mysql # not compatible
query I rowsort label-6334
SELECT - 3 + - 18 + - NULLIF ( - - 91, - 83 / - + 28 ) + + - SUM ( 36 ) * + + 39 - - + 94 / - SUM ( DISTINCT 59 )
----
-1517

query I rowsort
SELECT ALL + 52 + - 57 + + 75 + + 83 - 32 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT - COUNT( * ) + - 21 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6336
SELECT - COUNT ( * ) + - 21 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT + ( + - MAX( ALL - COALESCE ( ( - 25 ), - 59 ) ) ) - + SUM( 96 ) + COUNT( * )
----
-120

skipif mysql # not compatible
query I rowsort label-6337
SELECT + ( + - MAX ( ALL - COALESCE ( ( - 25 ), - 59 ) ) ) - + SUM ( 96 ) + COUNT ( * )
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6338
SELECT DISTINCT CAST( + 7 AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT CAST ( + 7 AS INTEGER ) AS col0
----
7

query I rowsort
SELECT - 86 + - 74 AS col2
----
-160

query I rowsort
SELECT 53 * + 66 * + - 89 + - 42 AS col2
----
-311364

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT - 44 * - MAX( + - 56 )
----
-2464

skipif mysql # not compatible
query I rowsort label-6341
SELECT - 44 * - MAX ( + - 56 )
----
-2464

query I rowsort
SELECT DISTINCT - 8 * 90 AS col1
----
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6343
SELECT ALL 9 / - + CAST( NULL AS SIGNED ) - + MAX( + 54 ) AS col0, 4 * + - COUNT( * ) - + + COUNT( * )
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-6343
SELECT ALL 9 / - + CAST ( NULL AS INTEGER ) - + MAX ( + 54 ) AS col0, 4 * + - COUNT ( * ) - + + COUNT ( * )
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + SUM( + + ( - NULLIF ( + - 1, + - 81 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6344
SELECT + SUM ( + + ( - NULLIF ( + - 1, + - 81 ) ) )
----
1

query II rowsort
SELECT + ( + 87 ), 77 AS col2
----
87
77

query I rowsort
SELECT + 84 + - - 15 AS col1
----
99

query I rowsort
SELECT ALL 90 * - - ( - 65 )
----
-5850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT DISTINCT - 8 * + 81 * 15 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT - 8 * + 81 * 15 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6349
SELECT ALL + 53 AS col2, - SUM( DISTINCT - 23 )
----
53
23

skipif mysql # not compatible
query II rowsort label-6349
SELECT ALL + 53 AS col2, - SUM ( DISTINCT - 23 )
----
53
23

query I rowsort
SELECT DISTINCT + ( 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6351
SELECT DISTINCT 21 DIV COUNT( 16 ) - - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT 21 / COUNT ( 16 ) - - COUNT ( * )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL + MAX( DISTINCT + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL + MAX ( DISTINCT + 39 )
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6353
SELECT + 48 DIV + - CAST( 53 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6353
SELECT + 48 / + - CAST ( 53 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT + COUNT( * ) * + 62 - + + 56 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6354
SELECT + COUNT ( * ) * + 62 - + + 56 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT + COUNT( * ) * + 45 + - - 19
----
64

skipif mysql # not compatible
query I rowsort label-6355
SELECT + COUNT ( * ) * + 45 + - - 19
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL COUNT( * ) * 89
----
89

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL COUNT ( * ) * 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL + 20 * - - 47 + + - 12 + + + COUNT( + 19 ) AS col1
----
929

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL + 20 * - - 47 + + - 12 + + + COUNT ( + 19 ) AS col1
----
929

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT + 85 + + - MIN( 49 )
----
36

skipif mysql # not compatible
query I rowsort label-6358
SELECT + 85 + + - MIN ( 49 )
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6359
SELECT DISTINCT - COUNT( * ) + + - 31 DIV + 67
----
-1

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT - COUNT ( * ) + + - 31 / + 67
----
-1

query II rowsort
SELECT ALL - 45 * 67 AS col1, + 54 AS col0
----
-3015
54

query I rowsort
SELECT ALL + 76 + ( 54 ) + + + 53 AS col2
----
183

query I rowsort
SELECT DISTINCT 77 * - 20 * + - 45 AS col1
----
69300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6363
SELECT ALL + 54 + + COUNT( * ) + - 30 + + 19 + COALESCE ( - 50, - COUNT( * ) ) * NULLIF ( - 70, 85 * - + 73 * + 21 * 79 - CASE + + CASE - + 5 WHEN - ( - COUNT( * ) ) + + 68 THEN NULL ELSE + 37 END WHEN CAST( NULL AS DECIMAL ) THEN 28 - 73 + - CASE + 21 WHEN - + 36 THEN - 7 * - - 86 END + 67 * + ( + + 69 ) * - 72 - + CAST( + 13 AS SIGNED ) * 50 ELSE NULL END + - 15 / 26 ) - 31 * 21 * 67
----
-40073

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + 54 + + COUNT ( * ) + - 30 + + 19 + COALESCE ( - 50, - COUNT ( * ) ) * NULLIF ( - 70, 85 * - + 73 * + 21 * 79 - CASE + + CASE - + 5 WHEN - ( - COUNT ( * ) ) + + 68 THEN NULL ELSE + 37 END WHEN CAST ( NULL AS REAL ) THEN 28 - 73 + - CASE + 21 WHEN - + 36 THEN - 7 * - - 86 END + 67 * + ( + + 69 ) * - 72 - + CAST ( + 13 AS INTEGER ) * 50 ELSE NULL END + - 15 / 26 ) - 31 * 21 * 67
----
-40073

query I rowsort
SELECT ALL + 84 * + 40 + 64 AS col1
----
3424

query I rowsort
SELECT DISTINCT + 26 + + 75 AS col2
----
101

query I rowsort
SELECT ALL 22 + + 96 AS col0
----
118

query II rowsort
SELECT - + 44 AS col2, - 25 col1
----
-44
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT - + SUM( + 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-6368
SELECT - + SUM ( + 38 ) AS col1
----
-38

query I rowsort
SELECT + 1 * 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT 90 - - COALESCE ( + 44, 3 ) + - 0 + + COUNT( * ) + + - 63 + + - 29 * + 27 AS col1
----
-711

skipif mysql # not compatible
query I rowsort label-6370
SELECT 90 - - COALESCE ( + 44, 3 ) + - 0 + + COUNT ( * ) + + - 63 + + - 29 * + 27 AS col1
----
-711

query II rowsort
SELECT - + 34 AS col1, 67 AS col2
----
-34
67

query I rowsort
SELECT ALL ( - ( 85 ) ) + - + 54
----
-139

query I rowsort
SELECT ALL - 93 * - - 28
----
-2604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6374
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 74 + + + ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 74 + + + ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6375
SELECT DISTINCT - 66 - 33 AS col2, 63 + + + NULLIF ( COUNT( * ), + 45 ) * - + COUNT( * ) + - + 49 * - + 43 + + COUNT( * ) AS col0
----
-99
2170

skipif mysql # not compatible
query II rowsort label-6375
SELECT DISTINCT - 66 - 33 AS col2, 63 + + + NULLIF ( COUNT ( * ), + 45 ) * - + COUNT ( * ) + - + 49 * - + 43 + + COUNT ( * ) AS col0
----
-99
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT 76 * - COALESCE ( + 52, + MIN( - 46 ) * + 91 ) AS col2
----
-3952

skipif mysql # not compatible
query I rowsort label-6376
SELECT 76 * - COALESCE ( + 52, + MIN ( - 46 ) * + 91 ) AS col2
----
-3952

query I rowsort
SELECT ALL - 94 * - 97
----
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT CASE COUNT( * ) WHEN + 6 * - 86 THEN - 90 END * - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT CASE COUNT ( * ) WHEN + 6 * - 86 THEN - 90 END * - 7 AS col0
----
NULL

query I rowsort
SELECT 63 - 37
----
26

query I rowsort
SELECT 66 * - + 38 AS col0
----
-2508

query I rowsort
SELECT ALL - NULLIF ( 39, + 70 )
----
-39

query I rowsort
SELECT ALL - 22 * - 3 AS col2
----
66

query I rowsort
SELECT ALL - COALESCE ( - 30, 45, 33 + - - 74 )
----
30

query II rowsort
SELECT 81 + + COALESCE ( - 40, + - 60 ) + - 42 - - COALESCE ( - 88, 63 - - 53 ) - + - 75 * + 61 * + 4, 33 col2
----
18211
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT SUM( 64 ) * + + 7 * + 48 + - + 64 AS col1
----
21440

skipif mysql # not compatible
query I rowsort label-6385
SELECT SUM ( 64 ) * + + 7 * + 48 + - + 64 AS col1
----
21440

query I rowsort
SELECT - 7 * + 25 + + 69 + - 14 col0
----
-120

query I rowsort
SELECT - 54 * - + 6 + 5 + + 21 AS col1
----
350

onlyif mysql # aggregate syntax: 
query II rowsort label-6388
SELECT - + MAX( + COALESCE ( + + 17, - - 41 ) ) * + 53 + + + 4 + - 34 AS col0, - 17 - + 46
----
-931
-63

skipif mysql # not compatible
query II rowsort label-6388
SELECT - + MAX ( + COALESCE ( + + 17, - - 41 ) ) * + 53 + + + 4 + - 34 AS col0, - 17 - + 46
----
-931
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6389
SELECT DISTINCT + - 33 + + 78 + + 70 DIV 55 * - 28, 3 * - COUNT( * ) DIV + + 18 - - 1 + + 11 AS col2
----
17
12

skipif mysql # not compatible
query II rowsort label-6389
SELECT DISTINCT + - 33 + + 78 + + 70 / 55 * - 28, 3 * - COUNT ( * ) / + + 18 - - 1 + + 11 AS col2
----
17
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6390
SELECT DISTINCT - 16 + + 5 + - AVG ( DISTINCT 86 ) * + CAST( COUNT( * ) AS SIGNED ) * CASE - 84 WHEN MIN( DISTINCT + 91 ) * 12 THEN - 76 * CAST( NULL AS SIGNED ) + - + NULLIF ( + + 33, - 88 + - 65 ) WHEN 43 * + - 4 THEN NULL END + + COUNT( * ) - - 31 * - 29 + + + 20 * + 64 + - + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT - 16 + + 5 + - AVG ( DISTINCT 86 ) * + CAST ( COUNT ( * ) AS INTEGER ) * CASE - 84 WHEN MIN ( DISTINCT + 91 ) * 12 THEN - 76 * CAST ( NULL AS INTEGER ) + - + NULLIF ( + + 33, - 88 + - 65 ) WHEN 43 * + - 4 THEN NULL END + + COUNT ( * ) - - 31 * - 29 + + + 20 * + 64 + - + 42 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL - COUNT( * ) + SUM( + 89 )
----
88

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL - COUNT ( * ) + SUM ( + 89 )
----
88

query I rowsort
SELECT - 78 * - ( - 80 ) + 75 AS col0
----
-6165

onlyif mysql # aggregate syntax: 
query II rowsort label-6393
SELECT DISTINCT - + MIN( 4 ) AS col0, - NULLIF ( + - 26, + - 1 ) * + COUNT( - 15 ) * - 1 AS col1
----
-4
-26

skipif mysql # not compatible
query II rowsort label-6393
SELECT DISTINCT - + MIN ( 4 ) AS col0, - NULLIF ( + - 26, + - 1 ) * + COUNT ( - 15 ) * - 1 AS col1
----
-4
-26

query I rowsort
SELECT DISTINCT + 97 + + + 75
----
172

query I rowsort
SELECT - NULLIF ( 94, + + 86 / 93 * - 84 + 93 + + - 76 ) AS col1
----
-94

query I rowsort
SELECT ALL 6 + + - 55 * - + 59
----
3251

query I rowsort
SELECT - 76 * + + 44 + 83
----
-3261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6398
SELECT + MIN( DISTINCT - 19 ) DIV 56 * - + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6398
SELECT + MIN ( DISTINCT - 19 ) / 56 * - + 75 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6399
SELECT DISTINCT + 20 DIV COUNT( * ) AS col2, + 58
----
20
58

skipif mysql # not compatible
query II rowsort label-6399
SELECT DISTINCT + 20 / COUNT ( * ) AS col2, + 58
----
20
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6400
SELECT DISTINCT 33 * 26 DIV + - 63
----
-13

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT 33 * 26 / + - 63
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT ALL + COUNT( * ) - - + 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL + COUNT ( * ) - - + 15 AS col0
----
16

query II rowsort
SELECT - - ( + 27 ), + COALESCE ( 70, 71 * - 75 * - + 15 - + 9 ) AS col1
----
27
70

query I rowsort
SELECT ALL 74 - - 35 + - 78 AS col1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6404
SELECT ALL 45 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL 45 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT MIN( ALL - 74 ) - + 26
----
-100

skipif mysql # not compatible
query I rowsort label-6405
SELECT MIN ( ALL - 74 ) - + 26
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT - SUM( - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-6406
SELECT - SUM ( - 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT NULLIF ( 55, 89 + - 62 * - 34 * - - COUNT( * ) * 73 / + 54 ) + 61
----
116

skipif mysql # not compatible
query I rowsort label-6407
SELECT NULLIF ( 55, 89 + - 62 * - 34 * - - COUNT ( * ) * 73 / + 54 ) + 61
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6408
SELECT MAX( DISTINCT - - 31 ) + - + 1 + 96 - + - CAST( + 7 AS SIGNED ), 21 * 78 AS col0
----
133
1638

skipif mysql # not compatible
query II rowsort label-6408
SELECT MAX ( DISTINCT - - 31 ) + - + 1 + 96 - + - CAST ( + 7 AS INTEGER ), 21 * 78 AS col0
----
133
1638

onlyif mysql # aggregate syntax: 
query II rowsort label-6409
SELECT 77 col2, SUM( ALL - + 87 ) AS col0
----
77
-87

skipif mysql # not compatible
query II rowsort label-6409
SELECT 77 col2, SUM ( ALL - + 87 ) AS col0
----
77
-87

query I rowsort
SELECT 8 - - - 72 - + ( + 55 )
----
-119

query II rowsort
SELECT ALL 53, - 97 col1
----
53
-97

query I rowsort
SELECT 91 + - 49 AS col2
----
42

query II rowsort
SELECT 98 + + + 58 - - 10 * + + 76, + 43 + - 55 + + 41 AS col0
----
916
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6414
SELECT ALL 31 DIV - ( + 7 )
----
-4

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL 31 / - ( + 7 )
----
-4

query II rowsort
SELECT 7 + - 71 * 88 AS col1, - 57 AS col1
----
-6241
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT DISTINCT SUM( ALL - 99 ) * + 31 * + + 78 + - 85 + 29 * - 62 * - CASE - 8 WHEN + 20 / 9 + - + COUNT( * ) + - + 41 THEN NULL ELSE + + 54 + + - 93 * - 33 END + - 87 * NULLIF ( + 49, + COUNT( 49 ) * 91 ) AS col1
----
5371424

skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT SUM ( ALL - 99 ) * + 31 * + + 78 + - 85 + 29 * - 62 * - CASE - 8 WHEN + 20 / 9 + - + COUNT ( * ) + - + 41 THEN NULL ELSE + + 54 + + - 93 * - 33 END + - 87 * NULLIF ( + 49, + COUNT ( 49 ) * 91 ) AS col1
----
5371424

query II rowsort
SELECT ALL - 52, - 6 AS col1
----
-52
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT + COALESCE ( + COUNT( * ), 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6418
SELECT + COALESCE ( + COUNT ( * ), 88 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6419
SELECT ( - + 96 ) DIV + + ( + - 79 ) + + - ( - + 2 ) * COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6419
SELECT ( - + 96 ) / + + ( + - 79 ) + + - ( - + 2 ) * COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6420
SELECT - ( 90 ) DIV + ( 36 ) * + - COUNT( * ) + - 95 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6420
SELECT - ( 90 ) / + ( 36 ) * + - COUNT ( * ) + - 95 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT + NULLIF ( 12, + - ( + COALESCE ( + + 0, 97 / - CASE + - 14 WHEN - CASE - 12 WHEN - 9 THEN NULL WHEN 58 THEN 52 * + - 66 + - 54 ELSE - 59 - + COUNT( * ) * - 31 * - + 19 * + 38 - - 89 - - - 30 * + - 0 * COUNT( * ) + 63 END THEN NULL WHEN 40 THEN 11 * COALESCE ( + NULLIF ( - 32, - + 66 ), 84 ) * 98 * 86 ELSE NULL END + + COALESCE ( COUNT( * ), 74 ) ) ) )
----
12

skipif mysql # not compatible
query I rowsort label-6421
SELECT + NULLIF ( 12, + - ( + COALESCE ( + + 0, 97 / - CASE + - 14 WHEN - CASE - 12 WHEN - 9 THEN NULL WHEN 58 THEN 52 * + - 66 + - 54 ELSE - 59 - + COUNT ( * ) * - 31 * - + 19 * + 38 - - 89 - - - 30 * + - 0 * COUNT ( * ) + 63 END THEN NULL WHEN 40 THEN 11 * COALESCE ( + NULLIF ( - 32, - + 66 ), 84 ) * 98 * 86 ELSE NULL END + + COALESCE ( COUNT ( * ), 74 ) ) ) )
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-6422
SELECT + 18 DIV - + 98 * + - 93 + 12, + 44 col2
----
12
44

skipif mysql # not compatible
query II rowsort label-6422
SELECT + 18 / - + 98 * + - 93 + 12, + 44 col2
----
12
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6423
SELECT - - NULLIF ( + + 34, - + 43 * - + MAX( DISTINCT - 23 ) - 70 ) DIV COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6423
SELECT - - NULLIF ( + + 34, - + 43 * - + MAX ( DISTINCT - 23 ) - 70 ) / COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT ALL + 49 * 80 + - COUNT( * ) AS col0
----
3919

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL + 49 * 80 + - COUNT ( * ) AS col0
----
3919

query I rowsort
SELECT DISTINCT - - 68 * 60 + - ( 24 )
----
4056

query I rowsort
SELECT - + 40 * + + ( + 43 ) + - 9
----
-1729

query I rowsort
SELECT ALL - + 48 * - 52 + - 37 + + + 99 * + 72
----
9587

query II rowsort
SELECT DISTINCT + 95 * - 30 * 1, ( - 19 ) AS col0
----
-2850
-19

query I rowsort
SELECT - 37 * + - 18
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT ALL - + 16 * - 23 * - + COUNT( * ) + + 32 + - - 48
----
-288

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL - + 16 * - 23 * - + COUNT ( * ) + + 32 + - - 48
----
-288

query I rowsort
SELECT - CASE + - 53 WHEN + + 8 THEN + 27 ELSE + + 19 END
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + - MAX( DISTINCT - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-6432
SELECT + - MAX ( DISTINCT - 11 )
----
11

query II rowsort
SELECT ALL + + 99 AS col2, + 45
----
99
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT + + COUNT( * ) * - 95
----
-95

skipif mysql # not compatible
query I rowsort label-6434
SELECT + + COUNT ( * ) * - 95
----
-95

query I rowsort
SELECT ALL 13 * + 4 * + NULLIF ( + 76, - 77 / 58 ) AS col2
----
3952

onlyif mysql # aggregate syntax: 
query II rowsort label-6436
SELECT ALL + - COALESCE ( - 14, - + MAX( DISTINCT + 52 ) + - 24, 66 ) * + - CASE 52 WHEN - + 70 * - + 77 THEN ( - 8 ) END / 58 AS col2, 5 * - + 79 AS col1
----
NULL
-395

skipif mysql # not compatible
query II rowsort label-6436
SELECT ALL + - COALESCE ( - 14, - + MAX ( DISTINCT + 52 ) + - 24, 66 ) * + - CASE 52 WHEN - + 70 * - + 77 THEN ( - 8 ) END / 58 AS col2, 5 * - + 79 AS col1
----
NULL
-395

query I rowsort
SELECT DISTINCT + 74 * + 69
----
5106

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT + COUNT( * ) * 68 * - 72 + - COUNT( * ) AS col0
----
-4897

skipif mysql # not compatible
query I rowsort label-6438
SELECT + COUNT ( * ) * 68 * - 72 + - COUNT ( * ) AS col0
----
-4897

query I rowsort
SELECT + 15 - + 40 col2
----
-25

query I rowsort
SELECT DISTINCT ( + 91 )
----
91

query I rowsort
SELECT - NULLIF ( + + 89, 58 ) * + 6 * + 53 * - 56 AS col0
----
1584912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6442
SELECT - 79 * + + CASE 5 WHEN CAST( - - COUNT( * ) AS SIGNED ) + CAST( + SUM( ALL - 39 ) AS SIGNED ) THEN - 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT - 79 * + + CASE 5 WHEN CAST ( - - COUNT ( * ) AS INTEGER ) + CAST ( + SUM ( ALL - 39 ) AS INTEGER ) THEN - 6 END
----
NULL

query I rowsort
SELECT - NULLIF ( - 57, 25 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT + 3 + + - 72 + 53 + COUNT( * ) * - 82 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-6444
SELECT + 3 + + - 72 + 53 + COUNT ( * ) * - 82 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL 85 * COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL 85 * COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT + NULLIF ( + - 92, - MAX( + 10 ) ) * - 1
----
92

skipif mysql # not compatible
query I rowsort label-6446
SELECT + NULLIF ( + - 92, - MAX ( + 10 ) ) * - 1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT - NULLIF ( 51, 31 / - 69 * - - 54 * + COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-6447
SELECT - NULLIF ( 51, 31 / - 69 * - - 54 * + COUNT ( * ) )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT DISTINCT 90 + - + COUNT( * ) AS col2, - ( + 4 ) * SUM( ALL + 25 ) - + COUNT( * )
----
89
-101

skipif mysql # not compatible
query II rowsort label-6448
SELECT DISTINCT 90 + - + COUNT ( * ) AS col2, - ( + 4 ) * SUM ( ALL + 25 ) - + COUNT ( * )
----
89
-101

query I rowsort
SELECT + NULLIF ( - 81, + 17 * 33 * - + 34 + - 39 ) * ( + + 53 ) AS col0
----
-4293

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT + 19 * + - 9 * MIN( ALL + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6450
SELECT + 19 * + - 9 * MIN ( ALL + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT ALL COUNT( * ) + + 39 + 78 * - 41 AS col2
----
-3158

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL COUNT ( * ) + + 39 + 78 * - 41 AS col2
----
-3158

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT - COALESCE ( + 54, MAX( DISTINCT - 26 ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6452
SELECT - COALESCE ( + 54, MAX ( DISTINCT - 26 ) ) AS col0
----
-54

query I rowsort
SELECT + 7 - + + 5
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT - 72 DIV + 23 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6454
SELECT - 72 / + 23 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT - + COUNT( * ) / + 89 * - SUM( + CASE + 8 WHEN + + 96 * 55 * - 32 THEN NULL WHEN + 86 THEN + - 33 ELSE NULL END ) + + 95 + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT - + COUNT ( * ) / + 89 * - SUM ( + CASE + 8 WHEN + + 96 * 55 * - 32 THEN NULL WHEN + 86 THEN + - 33 ELSE NULL END ) + + 95 + 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6456
SELECT ALL + - COUNT( ALL 94 ) DIV - ( - + 5 ) * 52 + - - 32
----
32

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL + - COUNT ( ALL 94 ) / - ( - + 5 ) * 52 + - - 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT + 41 * + - COUNT( * ) * + 69 AS col2
----
-2829

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT + 41 * + - COUNT ( * ) * + 69 AS col2
----
-2829

query I rowsort
SELECT + + 8 + - 35 col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-6459
SELECT - + 3 DIV 34 * + CASE - 65 WHEN 81 + + 26 THEN NULL ELSE - 93 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6459
SELECT - + 3 / 34 * + CASE - 65 WHEN 81 + + 26 THEN NULL ELSE - 93 END AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT ALL - + 39 * CASE + 22 WHEN AVG ( DISTINCT - ( + 35 ) ) * + 55 + + 32 THEN - + 44 END - + - 83 - - - COUNT( * ) + - COALESCE ( - - 0, 48, - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL - + 39 * CASE + 22 WHEN AVG ( DISTINCT - ( + 35 ) ) * + 55 + + 32 THEN - + 44 END - + - 83 - - - COUNT ( * ) + - COALESCE ( - - 0, 48, - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT + - 92 * - - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT + - 92 * - - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6462
SELECT + COALESCE ( - 69, + + SUM( CAST( NULL AS SIGNED ) ) + - + 24 * 80 )
----
-69

skipif mysql # not compatible
query I rowsort label-6462
SELECT + COALESCE ( - 69, + + SUM ( CAST ( NULL AS INTEGER ) ) + - + 24 * 80 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6463
SELECT NULLIF ( ( 98 ), - 0 + + 60 ) * - - SUM( CAST( NULL AS SIGNED ) ) + - - 32 * - 40 * + - 47 * + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT NULLIF ( ( 98 ), - 0 + + 60 ) * - - SUM ( CAST ( NULL AS INTEGER ) ) + - - 32 * - 40 * + - 47 * + 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6464
SELECT - 28 DIV CAST( + 54 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6464
SELECT - 28 / CAST ( + 54 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT - 71 + 38 AS col1
----
-33

query I rowsort
SELECT ALL - 0 * 4 - + + 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT - NULLIF ( 2, - COALESCE ( - + MAX( + 68 ), 62 + + ( - + 75 ) * + + 39 + + - COUNT( * ) ) - + 64 + - 75 )
----
-2

skipif mysql # not compatible
query I rowsort label-6467
SELECT - NULLIF ( 2, - COALESCE ( - + MAX ( + 68 ), 62 + + ( - + 75 ) * + + 39 + + - COUNT ( * ) ) - + 64 + - 75 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL + + SUM( + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL + + SUM ( + 31 )
----
31

query I rowsort
SELECT ALL + NULLIF ( + 70, - 28 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6470
SELECT DISTINCT + - CAST( + 54 AS SIGNED ) AS col2, 14 AS col0
----
-54
14

skipif mysql # not compatible
query II rowsort label-6470
SELECT DISTINCT + - CAST ( + 54 AS INTEGER ) AS col2, 14 AS col0
----
-54
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6471
SELECT + - 90 * + 23 * - COUNT( * ) * + - CASE + 27 WHEN - 68 THEN + + 51 END AS col0, 37 * - - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6471
SELECT + - 90 * + 23 * - COUNT ( * ) * + - CASE + 27 WHEN - 68 THEN + + 51 END AS col0, 37 * - - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT + NULLIF ( + 2, + + COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT + NULLIF ( + 2, + + COUNT ( * ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT NULLIF ( + + COUNT( * ), - 84 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6473
SELECT NULLIF ( + + COUNT ( * ), - 84 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT + 86 * - COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-6474
SELECT + 86 * - COUNT ( * ) AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6475
SELECT ALL NULLIF ( + - COUNT( * ), + 8 - - CAST( NULL AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL NULLIF ( + - COUNT ( * ), + 8 - - CAST ( NULL AS INTEGER ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6476
SELECT ALL + 72 * - COUNT( * ) * 76 AS col0, + 90 AS col2
----
-5472
90

skipif mysql # not compatible
query II rowsort label-6476
SELECT ALL + 72 * - COUNT ( * ) * 76 AS col0, + 90 AS col2
----
-5472
90

query II rowsort
SELECT ALL 49 AS col1, - 25 + + 85
----
49
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT COUNT( * ) AS col1, 32 + + ( 43 ) AS col1
----
1
75

skipif mysql # not compatible
query II rowsort label-6478
SELECT COUNT ( * ) AS col1, 32 + + ( 43 ) AS col1
----
1
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6479
SELECT ALL CAST( + - 68 AS SIGNED ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL CAST ( + - 68 AS INTEGER ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL COUNT( * ) + + ( - 52 ) + - + CASE COALESCE ( 83, + 55 + - - 7, - 32 + + + COUNT( * ) ) WHEN MAX( DISTINCT - 21 ) THEN NULL WHEN 85 THEN NULL ELSE 46 - + + 47 END * - 57
----
-108

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL COUNT ( * ) + + ( - 52 ) + - + CASE COALESCE ( 83, + 55 + - - 7, - 32 + + + COUNT ( * ) ) WHEN MAX ( DISTINCT - 21 ) THEN NULL WHEN 85 THEN NULL ELSE 46 - + + 47 END * - 57
----
-108

query I rowsort
SELECT + 43 - 5
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT DISTINCT CAST( - - 41 AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT CAST ( - - 41 AS INTEGER ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6483
SELECT - 14 DIV - 62 * + COUNT( * ) * 19 * - 61 * - CAST( - - 67 AS SIGNED ) * - - COUNT( * ) - + 74 + - 11 + + 57 * - 50 * + 96
----
-273685

skipif mysql # not compatible
query I rowsort label-6483
SELECT - 14 / - 62 * + COUNT ( * ) * 19 * - 61 * - CAST ( - - 67 AS INTEGER ) * - - COUNT ( * ) - + 74 + - 11 + + 57 * - 50 * + 96
----
-273685

query I rowsort
SELECT + 20 * + 94 AS col2
----
1880

query I rowsort
SELECT ALL - 27 + 63
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6486
SELECT - 31 + MAX( + 24 ) - 30 DIV + 94
----
-7

skipif mysql # not compatible
query I rowsort label-6486
SELECT - 31 + MAX ( + 24 ) - 30 / + 94
----
-7

query I rowsort
SELECT + 96 * 21 AS col1
----
2016

query I rowsort
SELECT 97 + 32
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT ALL 78 + - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL 78 + - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6490
SELECT DISTINCT 13 + - + SUM( - 81 ) DIV + - 45 + + 75 + COUNT( ALL + 67 ) + 39 * + + 86 * 46 AS col1
----
154372

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT 13 + - + SUM ( - 81 ) / + - 45 + + 75 + COUNT ( ALL + 67 ) + 39 * + + 86 * 46 AS col1
----
154372

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL ( + - 90 ) + - COUNT( ALL + - 76 )
----
-91

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL ( + - 90 ) + - COUNT ( ALL + - 76 )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6492
SELECT - 76, MAX( - ( - 74 ) ) AS col0
----
-76
74

skipif mysql # not compatible
query II rowsort label-6492
SELECT - 76, MAX ( - ( - 74 ) ) AS col0
----
-76
74

query I rowsort
SELECT ALL - 92 + - - 18 AS col2
----
-74

query II rowsort
SELECT 54 AS col0, 49 col2
----
54
49

query I rowsort
SELECT ALL + 18 * - 91
----
-1638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6496
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( - SUM( - 7 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( - SUM ( - 7 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL 45 - + CASE + 39 WHEN - 80 * - 51 THEN NULL WHEN 65 THEN - + 30 ELSE - - COUNT( * ) * - 79 + + 92 END
----
32

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL 45 - + CASE + 39 WHEN - 80 * - 51 THEN NULL WHEN 65 THEN - + 30 ELSE - - COUNT ( * ) * - 79 + + 92 END
----
32

query I rowsort
SELECT ( + 81 ) col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6499
SELECT 62 * - COUNT( ALL + COALESCE ( + CAST( NULL AS SIGNED ), - COALESCE ( + - 27, - 21 ) ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-6499
SELECT 62 * - COUNT ( ALL + COALESCE ( + CAST ( NULL AS INTEGER ), - COALESCE ( + - 27, - 21 ) ) ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-6500
SELECT + 35 AS col2, COUNT( * ) + - 42
----
35
-41

skipif mysql # not compatible
query II rowsort label-6500
SELECT + 35 AS col2, COUNT ( * ) + - 42
----
35
-41

query I rowsort
SELECT ALL 12 - - 37 + 82 * + 73 AS col2
----
6035

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6502
SELECT CAST( - 59 AS SIGNED ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-6502
SELECT CAST ( - 59 AS INTEGER ) col2
----
-59

query II rowsort
SELECT + 8, + 87 col2
----
8
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6504
SELECT ALL - + COALESCE ( 51, + + ( - CAST( + - 25 AS SIGNED ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - + COALESCE ( 51, + + ( - CAST ( + - 25 AS INTEGER ) ) )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT - NULLIF ( - 69, 64 ) * - - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6505
SELECT - NULLIF ( - 69, 64 ) * - - COUNT ( * )
----
69

query I rowsort
SELECT - 19 * - + 38 AS col0
----
722

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6507
SELECT 66 - 52 AS col1, - COALESCE ( - + CAST( 6 AS SIGNED ), 0 ) * - 78 DIV 1 - 1
----
14
-469

skipif mysql # not compatible
query II rowsort label-6507
SELECT 66 - 52 AS col1, - COALESCE ( - + CAST ( 6 AS INTEGER ), 0 ) * - 78 / 1 - 1
----
14
-469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6508
SELECT CAST( + - 97 AS SIGNED ) * - 16 + - 27 * 52 col1
----
148

skipif mysql # not compatible
query I rowsort label-6508
SELECT CAST ( + - 97 AS INTEGER ) * - 16 + - 27 * 52 col1
----
148

query I rowsort
SELECT DISTINCT 21 * 28
----
588

query I rowsort
SELECT 85 * - 6 AS col0
----
-510

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6511
SELECT ALL - 4 DIV + CAST( + + 89 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL - 4 / + CAST ( + + 89 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL 56 + SUM( DISTINCT ( - + ( + 66 ) ) ) + + 37 + - 98
----
-71

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL 56 + SUM ( DISTINCT ( - + ( + 66 ) ) ) + + 37 + - 98
----
-71

query I rowsort
SELECT DISTINCT 15 + - 52 * - 9 * 48 + - 56 * - 37
----
24551

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6514
SELECT - COUNT( * ) * - - NULLIF ( + - NULLIF ( - 43, CASE WHEN ( NOT - COUNT( * ) > NULL ) THEN + 52 END - + + ( - 34 ) + + + 39 * - + 35 * - 95 * + - 7 ), - + COUNT( * ) * 59 ) DIV - + 56 + 60 * 44 + - SUM( ALL - 71 ) * 85, - 45 + - NULLIF ( - + 80, + COALESCE ( + 48, - + 66 ) ) AS col1
----
8675
35

skipif mysql # not compatible
query II rowsort label-6514
SELECT - COUNT ( * ) * - - NULLIF ( + - NULLIF ( - 43, CASE WHEN ( NOT - COUNT ( * ) > NULL ) THEN + 52 END - + + ( - 34 ) + + + 39 * - + 35 * - 95 * + - 7 ), - + COUNT ( * ) * 59 ) / - + 56 + 60 * 44 + - SUM ( ALL - 71 ) * 85, - 45 + - NULLIF ( - + 80, + COALESCE ( + 48, - + 66 ) ) AS col1
----
8675
35

onlyif mysql # DIV for integer division: 
query II rowsort label-6515
SELECT DISTINCT + 59 + + 23 AS col2, - ( + 96 ) DIV 89 col2
----
82
-1

skipif mysql # not compatible
query II rowsort label-6515
SELECT DISTINCT + 59 + + 23 AS col2, - ( + 96 ) / 89 col2
----
82
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT 17 + + SUM( - - 31 )
----
48

skipif mysql # not compatible
query I rowsort label-6516
SELECT 17 + + SUM ( - - 31 )
----
48

query II rowsort
SELECT - 5 AS col0, 69 AS col2
----
-5
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6518
SELECT ALL - 32 + - 1 * + COUNT( * ) * + 62 * COUNT( - - CAST( NULL AS DECIMAL ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL - 32 + - 1 * + COUNT ( * ) * + 62 * COUNT ( - - CAST ( NULL AS REAL ) )
----
-32

query II rowsort
SELECT 97 * + NULLIF ( + 29, - 44 ), + 15 * + - 46 * 5 AS col2
----
2813
-3450

onlyif mysql # aggregate syntax: 
query II rowsort label-6520
SELECT ALL 61 col1, + COUNT( + 41 ) col0
----
61
1

skipif mysql # not compatible
query II rowsort label-6520
SELECT ALL 61 col1, + COUNT ( + 41 ) col0
----
61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT ALL - ( - 21 ) + + COUNT( * ) * 25 + 35
----
81

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - ( - 21 ) + + COUNT ( * ) * 25 + 35
----
81

query II rowsort
SELECT ALL 72 AS col2, 47 AS col1
----
72
47

query I rowsort
SELECT DISTINCT - 14 - + 13 * + 48
----
-638

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT DISTINCT - 49 col1, COALESCE ( - CASE 42 WHEN 51 THEN NULL WHEN + - COUNT( * ) THEN + 41 END, - 6, 69, - ( 51 ) * + 91 )
----
-49
-6

skipif mysql # not compatible
query II rowsort label-6524
SELECT DISTINCT - 49 col1, COALESCE ( - CASE 42 WHEN 51 THEN NULL WHEN + - COUNT ( * ) THEN + 41 END, - 6, 69, - ( 51 ) * + 91 )
----
-49
-6

query I rowsort
SELECT ALL - + 11 - + - 73
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6526
SELECT - 91 AS col0, - COUNT( * ) - - COUNT( * ) AS col1
----
-91
0

skipif mysql # not compatible
query II rowsort label-6526
SELECT - 91 AS col0, - COUNT ( * ) - - COUNT ( * ) AS col1
----
-91
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6527
SELECT 56 * + 10 / CAST( NULL AS SIGNED ) + + 16 / + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6527
SELECT 56 * + 10 / CAST ( NULL AS INTEGER ) + + 16 / + 71
----
NULL

query II rowsort
SELECT + 41, + 29 * - 0 + - ( 83 ) + + ( + - 14 ) + 65 + - + 83 * - + 60 + + 12 + COALESCE ( 31, 82 + + - 26 ) * - - 58 AS col0
----
41
6758

onlyif mysql # DIV for integer division: 
query I rowsort label-6529
SELECT + 83 DIV - 42 + + 75 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6529
SELECT + 83 / - 42 + + 75 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6530
SELECT - - COUNT( * ) AS col1, ( COUNT( * ) ) * - CAST( NULL AS SIGNED ) * 69 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6530
SELECT - - COUNT ( * ) AS col1, ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) * 69 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT ALL + 99 * - - 92 * - - 0 - + - CASE - 77 WHEN - SUM( DISTINCT - 71 ) + + + 25 THEN - 22 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL + 99 * - - 92 * - - 0 - + - CASE - 77 WHEN - SUM ( DISTINCT - 71 ) + + + 25 THEN - 22 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6532
SELECT - 49 DIV 8 * + 37 AS col0
----
-222

skipif mysql # not compatible
query I rowsort label-6532
SELECT - 49 / 8 * + 37 AS col0
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-6533
SELECT DISTINCT + 3 DIV 62 * - 9
----
0

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT + 3 / 62 * - 9
----
0

query I rowsort
SELECT DISTINCT 88 * - 62 AS col1
----
-5456

query I rowsort
SELECT DISTINCT + 87 * - - 17 AS col1
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT DISTINCT - COUNT( - 56 ) * - 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6536
SELECT DISTINCT - COUNT ( - 56 ) * - 16 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6537
SELECT + 48, CAST( - 63 AS SIGNED ) * - 49 + + 37 AS col0
----
48
3124

skipif mysql # not compatible
query II rowsort label-6537
SELECT + 48, CAST ( - 63 AS INTEGER ) * - 49 + + 37 AS col0
----
48
3124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6538
SELECT ALL + 62 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL + 62 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + COALESCE ( - 9, - 74 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6540
SELECT 82 * + COUNT( * ) * 72 AS col2, CASE + 16 WHEN - - 71 THEN + CAST( NULL AS SIGNED ) END AS col0
----
5904
NULL

skipif mysql # not compatible
query II rowsort label-6540
SELECT 82 * + COUNT ( * ) * 72 AS col2, CASE + 16 WHEN - - 71 THEN + CAST ( NULL AS INTEGER ) END AS col0
----
5904
NULL

query I rowsort
SELECT ALL 80 + + 9 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ALL - MIN( DISTINCT - + 31 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL - MIN ( DISTINCT - + 31 ) AS col1
----
31

query I rowsort
SELECT ALL 56 + - - 29
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6544
SELECT ALL CASE + CASE 56 WHEN + - CAST( + 15 AS DECIMAL ) THEN CAST( NULL AS SIGNED ) / - - MAX( + - 12 ) - + + 14 END WHEN + + CASE 10 WHEN + 97 THEN NULL ELSE + 0 END + - + 17 - + 19 + 98 * + 28 THEN NULL WHEN - 17 - + + COUNT( * ) * + 43 THEN - + 42 ELSE NULL END + - 87 * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL CASE + CASE 56 WHEN + - CAST ( + 15 AS REAL ) THEN CAST ( NULL AS INTEGER ) / - - MAX ( + - 12 ) - + + 14 END WHEN + + CASE 10 WHEN + 97 THEN NULL ELSE + 0 END + - + 17 - + 19 + 98 * + 28 THEN NULL WHEN - 17 - + + COUNT ( * ) * + 43 THEN - + 42 ELSE NULL END + - 87 * - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT DISTINCT COUNT( ALL - + 33 ) + - 94
----
-93

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT COUNT ( ALL - + 33 ) + - 94
----
-93

query I rowsort
SELECT ALL - 99 + + 65
----
-34

query I rowsort
SELECT DISTINCT 50 + - - 87 AS col0
----
137

query I rowsort
SELECT DISTINCT 67 * 6 * + 50 AS col2
----
20100

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT + MIN( ALL - - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT + MIN ( ALL - - 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6550
SELECT ALL COUNT( * ) + - - 32 - - - 19 DIV MAX( + 59 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL COUNT ( * ) + - - 32 - - - 19 / MAX ( + 59 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6551
SELECT + 84 + - 74 AS col0, MAX( - 48 ) + - 44
----
10
-92

skipif mysql # not compatible
query II rowsort label-6551
SELECT + 84 + - 74 AS col0, MAX ( - 48 ) + - 44
----
10
-92

query II rowsort
SELECT + 43 * 80 AS col1, - 77 AS col1
----
3440
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6553
SELECT - CASE - 15 WHEN - - 73 THEN - 57 WHEN + - 94 * + COUNT( * ) * - 45 + 21 * + + NULLIF ( - COUNT( * ), - COUNT( * ) ) - + - 73 * - ( + 55 ) * - 83 THEN - 14 WHEN COUNT( * ) THEN NULL WHEN CAST( + 73 AS SIGNED ) * COUNT( * ) + - 23 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT - CASE - 15 WHEN - - 73 THEN - 57 WHEN + - 94 * + COUNT ( * ) * - 45 + 21 * + + NULLIF ( - COUNT ( * ), - COUNT ( * ) ) - + - 73 * - ( + 55 ) * - 83 THEN - 14 WHEN COUNT ( * ) THEN NULL WHEN CAST ( + 73 AS INTEGER ) * COUNT ( * ) + - 23 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6554
SELECT DISTINCT + CAST( 7 AS SIGNED ) DIV - 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT + CAST ( 7 AS INTEGER ) / - 11 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6555
SELECT - 13 * - COUNT( * ) AS col1, - ( 27 ) * - + COALESCE ( + 61, - SUM( - CAST( 11 AS SIGNED ) ) ) AS col0
----
13
1647

skipif mysql # not compatible
query II rowsort label-6555
SELECT - 13 * - COUNT ( * ) AS col1, - ( 27 ) * - + COALESCE ( + 61, - SUM ( - CAST ( 11 AS INTEGER ) ) ) AS col0
----
13
1647

onlyif mysql # aggregate syntax: 
query II rowsort label-6556
SELECT - COUNT( * ) - + 33 AS col0, 99 AS col1
----
-34
99

skipif mysql # not compatible
query II rowsort label-6556
SELECT - COUNT ( * ) - + 33 AS col0, 99 AS col1
----
-34
99

query I rowsort
SELECT ALL ( + 38 ) - - 75 + 39 * + + 12 - 13 + + NULLIF ( - 34, - 96 ) * - + 54 * + 87 AS col1
----
160300

query I rowsort
SELECT + + 79 + + 64 * + + 45
----
2959

query I rowsort
SELECT - + CASE 44 WHEN + + 82 THEN NULL WHEN 47 THEN 17 + + ( - 1 ) END AS col1
----
NULL

query I rowsort
SELECT - ( 80 ) col0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6561
SELECT - - 40 * - CAST( - 70 AS SIGNED ) col2
----
2800

skipif mysql # not compatible
query I rowsort label-6561
SELECT - - 40 * - CAST ( - 70 AS INTEGER ) col2
----
2800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6562
SELECT ALL - + 84 * + - 75 * ( - 7 ) * COUNT( * ) + - - CAST( + 90 AS SIGNED ) + - 75 * + 94 * - - 67 * COALESCE ( - + COUNT( * ), - - COUNT( * ) * 67 )
----
428340

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL - + 84 * + - 75 * ( - 7 ) * COUNT ( * ) + - - CAST ( + 90 AS INTEGER ) + - 75 * + 94 * - - 67 * COALESCE ( - + COUNT ( * ), - - COUNT ( * ) * 67 )
----
428340

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT DISTINCT 89 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT 89 / + 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6564
SELECT ALL - + ( - - 86 ) * - CASE - 84 WHEN + 40 THEN + - COUNT( * ) WHEN + 79 * 65 + 15 THEN + 31 + - + COUNT( * ) * 99 ELSE NULLIF ( - 6, + - 49 * CAST( NULL AS SIGNED ) ) END / CASE 12 WHEN - - 63 - + + AVG ( - 37 ) THEN + 20 + + ( - 44 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL - + ( - - 86 ) * - CASE - 84 WHEN + 40 THEN + - COUNT ( * ) WHEN + 79 * 65 + 15 THEN + 31 + - + COUNT ( * ) * 99 ELSE NULLIF ( - 6, + - 49 * CAST ( NULL AS INTEGER ) ) END / CASE 12 WHEN - - 63 - + + AVG ( - 37 ) THEN + 20 + + ( - 44 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6565
SELECT - ( - - 19 ) * - COALESCE ( - - MAX( DISTINCT + + 99 ), NULLIF ( - CAST( NULL AS SIGNED ), 90 ) ) AS col1, + MAX( ALL - 63 )
----
1881
-63

skipif mysql # not compatible
query II rowsort label-6565
SELECT - ( - - 19 ) * - COALESCE ( - - MAX ( DISTINCT + + 99 ), NULLIF ( - CAST ( NULL AS INTEGER ), 90 ) ) AS col1, + MAX ( ALL - 63 )
----
1881
-63

query I rowsort
SELECT ALL - - 17 * + - 91
----
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT + CASE + 42 WHEN + COUNT( * ) * + COUNT( * ) + + - 12 THEN - 28 * - 64 * + 82 + + + MAX( ALL + 92 ) / - 52 + + 12 * + - 43 - + 3 + + 91 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6567
SELECT + CASE + 42 WHEN + COUNT ( * ) * + COUNT ( * ) + + - 12 THEN - 28 * - 64 * + 82 + + + MAX ( ALL + 92 ) / - 52 + + 12 * + - 43 - + 3 + + 91 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - ( - NULLIF ( - + 31, - + 64 * 66 ) ) * - - 87
----
-2697

query I rowsort
SELECT + 25 * + 24 - + + 32 + 70 * - 88
----
-5592

query I rowsort
SELECT ALL 29 * 50 + 38 AS col2
----
1488

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT + MIN( - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-6571
SELECT + MIN ( - 69 )
----
-69

query I rowsort
SELECT ALL - 72 * + 88 + - + 2 * - 39 * + 1 + - 89 AS col0
----
-6347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6573
SELECT DISTINCT COALESCE ( + - CASE + 63 WHEN - COUNT( * ) + + - 91 THEN NULL WHEN - - ( - 82 ) * + CAST( NULL AS SIGNED ) + - 78 * 74 - 15 THEN + 75 * - ( - + 28 ) * 49 * + 35 + + - COUNT( * ) * - + 75 WHEN 16 THEN + 37 ELSE 80 END, - 56 + 27, 67 ) * 19 AS col0
----
-1520

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT COALESCE ( + - CASE + 63 WHEN - COUNT ( * ) + + - 91 THEN NULL WHEN - - ( - 82 ) * + CAST ( NULL AS INTEGER ) + - 78 * 74 - 15 THEN + 75 * - ( - + 28 ) * 49 * + 35 + + - COUNT ( * ) * - + 75 WHEN 16 THEN + 37 ELSE 80 END, - 56 + 27, 67 ) * 19 AS col0
----
-1520

query I rowsort
SELECT DISTINCT + 33 * - + 85 * - 18 + - 22 AS col2
----
50468

query I rowsort
SELECT ALL + 4 * 17 * - 76
----
-5168

query I rowsort
SELECT - 97 * 32 AS col0
----
-3104

query I rowsort
SELECT ALL - 40 * - - 70
----
-2800

query I rowsort
SELECT ALL + 23 * + 91 * - 69 + - 3 - 56 AS col1
----
-144476

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT - 67 - + COUNT( * ) * - 78 * + - 39
----
-3109

skipif mysql # not compatible
query I rowsort label-6579
SELECT - 67 - + COUNT ( * ) * - 78 * + - 39
----
-3109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT + 85 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT + 85 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 43 - + - 91 + + 7 - - + 19
----
160

query I rowsort
SELECT CASE + - 46 WHEN + 62 THEN - 87 WHEN - 70 THEN 67 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6583
SELECT ALL - 46 * + + CAST( + 48 AS SIGNED ) * 5 - 39 DIV + 55 + + COUNT( DISTINCT - COALESCE ( - 48, + 89 ) ) AS col2
----
-11039

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - 46 * + + CAST ( + 48 AS INTEGER ) * 5 - 39 / + 55 + + COUNT ( DISTINCT - COALESCE ( - 48, + 89 ) ) AS col2
----
-11039

query I rowsort
SELECT ALL ( 6 ) * + - 10 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6585
SELECT 69 * + - 71 * - - 66 + - MAX( DISTINCT - ( - 80 ) ), - ( 24 ) AS col1
----
-323414
-24

skipif mysql # not compatible
query II rowsort label-6585
SELECT 69 * + - 71 * - - 66 + - MAX ( DISTINCT - ( - 80 ) ), - ( 24 ) AS col1
----
-323414
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT - NULLIF ( + - 13, 22 / ( + 98 ) * - 28 + + COUNT( * ) / 79 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6586
SELECT - NULLIF ( + - 13, 22 / ( + 98 ) * - 28 + + COUNT ( * ) / 79 ) AS col2
----
13

query I rowsort
SELECT ALL - ( 42 ) col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6588
SELECT DISTINCT 21 * 0 * + 37 AS col1, + COUNT( * ) + - 40 - + 71 AS col1
----
0
-110

skipif mysql # not compatible
query II rowsort label-6588
SELECT DISTINCT 21 * 0 * + 37 AS col1, + COUNT ( * ) + - 40 - + 71 AS col1
----
0
-110

query II rowsort
SELECT DISTINCT 20 AS col0, + 32 col1
----
20
32

query I rowsort
SELECT DISTINCT 83 * + 78
----
6474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6591
SELECT + 22 DIV 84 - + - 4 + 58 * 9 * - 0 * - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-6591
SELECT + 22 / 84 - + - 4 + 58 * 9 * - 0 * - COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT - CASE - COUNT( * ) WHEN + 86 THEN + 54 - COUNT( * ) ELSE + ( - ( 67 ) ) END
----
67

skipif mysql # not compatible
query I rowsort label-6592
SELECT - CASE - COUNT ( * ) WHEN + 86 THEN + 54 - COUNT ( * ) ELSE + ( - ( 67 ) ) END
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT ALL MIN( - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL MIN ( - 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT + ( - + COALESCE ( - - CASE + + 50 WHEN + 92 + - ( - - 66 ) / - 84 THEN - - 20 ELSE + COUNT( * ) END, 66 ) ) - - 27
----
26

skipif mysql # not compatible
query I rowsort label-6594
SELECT + ( - + COALESCE ( - - CASE + + 50 WHEN + 92 + - ( - - 66 ) / - 84 THEN - - 20 ELSE + COUNT ( * ) END, 66 ) ) - - 27
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT - - CAST( - + 30 AS SIGNED ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6595
SELECT - - CAST ( - + 30 AS INTEGER ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6596
SELECT ( - MAX( - 64 ) ) AS col1, COUNT( * ) * - COALESCE ( 51, + 13 )
----
64
-51

skipif mysql # not compatible
query II rowsort label-6596
SELECT ( - MAX ( - 64 ) ) AS col1, COUNT ( * ) * - COALESCE ( 51, + 13 )
----
64
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6597
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - ( - 81 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - ( - 81 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6598
SELECT - 38 * 31 DIV - 67
----
17

skipif mysql # not compatible
query I rowsort label-6598
SELECT - 38 * 31 / - 67
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT DISTINCT + - NULLIF ( CAST( NULL AS SIGNED ), - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT + - NULLIF ( CAST ( NULL AS INTEGER ), - 45 )
----
NULL

query I rowsort
SELECT 8 * - - 20 - + ( + - 72 ) * - 0 AS col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT + ( 84 ) + - - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-6601
SELECT + ( 84 ) + - - COUNT ( * )
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6602
SELECT - 70 / - 72 - CASE - SUM( DISTINCT - 89 ) WHEN 78 THEN NULL WHEN - 24 THEN 74 * - 23 * - 37 * - + 35 / COUNT( * ) - CASE + MIN( DISTINCT - 91 ) WHEN - 14 * - CAST( NULL AS DECIMAL ) THEN NULL WHEN - 77 + + COALESCE ( 51, + + 61 ) THEN - SUM( + 76 ) END + ( + 76 ) + - 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT - 70 / - 72 - CASE - SUM ( DISTINCT - 89 ) WHEN 78 THEN NULL WHEN - 24 THEN 74 * - 23 * - 37 * - + 35 / COUNT ( * ) - CASE + MIN ( DISTINCT - 91 ) WHEN - 14 * - CAST ( NULL AS REAL ) THEN NULL WHEN - 77 + + COALESCE ( 51, + + 61 ) THEN - SUM ( + 76 ) END + ( + 76 ) + - 88 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - ( ( + + 18 ) )
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-6604
SELECT ALL + COUNT( DISTINCT + + 55 ) - MAX( - + 46 ) - - - 23 * - 70 + - 29 col0, 55 AS col0
----
1628
55

skipif mysql # not compatible
query II rowsort label-6604
SELECT ALL + COUNT ( DISTINCT + + 55 ) - MAX ( - + 46 ) - - - 23 * - 70 + - 29 col0, 55 AS col0
----
1628
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6605
SELECT - COUNT( * ) * - CASE - AVG ( ALL + 69 ) WHEN - 81 + + ( + - AVG ( ALL + 40 ) ) + - - 86 * - 3 * - + ( + - 29 ) * - - 94 * + 20 THEN + 77 + 98 - COUNT( * ) ELSE NULL END + + - 0 * + 14 AS col2, ( 45 ) DIV + - 78 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6605
SELECT - COUNT ( * ) * - CASE - AVG ( ALL + 69 ) WHEN - 81 + + ( + - AVG ( ALL + 40 ) ) + - - 86 * - 3 * - + ( + - 29 ) * - - 94 * + 20 THEN + 77 + 98 - COUNT ( * ) ELSE NULL END + + - 0 * + 14 AS col2, ( 45 ) / + - 78 AS col2
----
NULL
0

query I rowsort
SELECT COALESCE ( - + 28, + 53 * - 56 ) * + 38 AS col1
----
-1064

query I rowsort
SELECT DISTINCT - COALESCE ( + + 15, + 81 )
----
-15

query I rowsort
SELECT ALL - CASE 59 WHEN - ( 27 ) THEN 39 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT COUNT( * ) + 55 col0
----
56

skipif mysql # not compatible
query I rowsort label-6609
SELECT COUNT ( * ) + 55 col0
----
56

query I rowsort
SELECT ALL - 82 - 84
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT DISTINCT - COUNT( + 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-6611
SELECT DISTINCT - COUNT ( + 82 )
----
-1

query I rowsort
SELECT ALL 49 * ( 47 ) AS col2
----
2303

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6613
SELECT ALL 8 - - 31 * - 46 - 24 AS col2, - 41 * CAST( NULL AS SIGNED )
----
-1442
NULL

skipif mysql # not compatible
query II rowsort label-6613
SELECT ALL 8 - - 31 * - 46 - 24 AS col2, - 41 * CAST ( NULL AS INTEGER )
----
-1442
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT - 88 * + + COUNT( * ) + - ( + 76 ) AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-6614
SELECT - 88 * + + COUNT ( * ) + - ( + 76 ) AS col1
----
-164

query I rowsort
SELECT ALL + ( - 25 ) * + 52 AS col0
----
-1300

query I rowsort
SELECT 25 * - 69 * 24 AS col1
----
-41400

query I rowsort
SELECT 32 + + 76 * + 23
----
1780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6618
SELECT DISTINCT + 92 * + CAST( - 10 AS SIGNED )
----
-920

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT + 92 * + CAST ( - 10 AS INTEGER )
----
-920

onlyif mysql # aggregate syntax: 
query II rowsort label-6619
SELECT ALL - CASE - 80 WHEN - - NULLIF ( - 57, + + 64 ) THEN + 54 * + COALESCE ( 23, - COUNT( * ) ) ELSE NULL END AS col1, + 33 - + 67
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-6619
SELECT ALL - CASE - 80 WHEN - - NULLIF ( - 57, + + 64 ) THEN + 54 * + COALESCE ( 23, - COUNT ( * ) ) ELSE NULL END AS col1, + 33 - + 67
----
NULL
-34

query I rowsort
SELECT 85 * - 17 AS col2
----
-1445

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT 62 - COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6621
SELECT 62 - COUNT ( * ) AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6622
SELECT - COALESCE ( COALESCE ( - 48, - + 78, - - 79 DIV SUM( DISTINCT - 37 ) DIV + + 40 - - COALESCE ( + 98, + - 30, + 93 ) * 14 * - 55 + - - 2 * - + 76 ), + + 6 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-6622
SELECT - COALESCE ( COALESCE ( - 48, - + 78, - - 79 / SUM ( DISTINCT - 37 ) / + + 40 - - COALESCE ( + 98, + - 30, + 93 ) * 14 * - 55 + - - 2 * - + 76 ), + + 6 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT + 29 + - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6623
SELECT + 29 + - COUNT ( * ) AS col2
----
28

query I rowsort
SELECT + NULLIF ( - - 2, 44 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6625
SELECT + CAST( 28 AS SIGNED ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6625
SELECT + CAST ( 28 AS INTEGER ) AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT 0 DIV + + 48
----
0

skipif mysql # not compatible
query I rowsort label-6626
SELECT 0 / + + 48
----
0

query II rowsort
SELECT 31 - - ( 95 ) * + 33, 4 AS col1
----
3166
4

query I rowsort
SELECT DISTINCT - 75 * + 20 AS col0
----
-1500

query I rowsort
SELECT ALL 39 + - 81 AS col1
----
-42

query I rowsort
SELECT 34 + - - 67 - - + 68
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ALL MAX( ALL - - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL MAX ( ALL - - 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT DISTINCT - 14 * - COUNT( * ) + + - COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - 14 * - COUNT ( * ) + + - COUNT ( * ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6633
SELECT + COUNT( * ) + + CAST( - + 83 AS SIGNED ) + - ( + MIN( DISTINCT + 86 ) ) + - 21 * - + CAST( - + 78 AS SIGNED ) AS col1, CASE - 9 WHEN + - 90 + - COUNT( * ) - - ( - COUNT( * ) ) THEN 43 * + 79 END + - + 71 * + COUNT( * ) AS col1
----
-1806
NULL

skipif mysql # not compatible
query II rowsort label-6633
SELECT + COUNT ( * ) + + CAST ( - + 83 AS INTEGER ) + - ( + MIN ( DISTINCT + 86 ) ) + - 21 * - + CAST ( - + 78 AS INTEGER ) AS col1, CASE - 9 WHEN + - 90 + - COUNT ( * ) - - ( - COUNT ( * ) ) THEN 43 * + 79 END + - + 71 * + COUNT ( * ) AS col1
----
-1806
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6634
SELECT 72 col2, 33 DIV 39
----
72
0

skipif mysql # not compatible
query II rowsort label-6634
SELECT 72 col2, 33 / 39
----
72
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6635
SELECT - COUNT( * ) DIV - + 83 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6635
SELECT - COUNT ( * ) / - + 83 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL CASE + + MIN( - 77 ) WHEN - + 48 THEN 74 + 3 * + + ( - + 22 ) ELSE NULL END - 13 + + + 71 * - + 69 / 27 * - 38 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL CASE + + MIN ( - 77 ) WHEN - + 48 THEN 74 + 3 * + + ( - + 22 ) ELSE NULL END - 13 + + + 71 * - + 69 / 27 * - 38 * 93
----
NULL

query I rowsort
SELECT ( 29 ) * 58 AS col0
----
1682

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT 86 DIV - ( - 18 ) + 98
----
102

skipif mysql # not compatible
query I rowsort label-6638
SELECT 86 / - ( - 18 ) + 98
----
102

query II rowsort
SELECT DISTINCT + 95 - - 80 * - 5 AS col2, 40
----
-305
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT COUNT( * ) + + 73 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6640
SELECT COUNT ( * ) + + 73 AS col0
----
74

query I rowsort
SELECT DISTINCT + ( 42 ) * 77 col0
----
3234

onlyif mysql # aggregate syntax: 
query II rowsort label-6642
SELECT ALL - COUNT( * ) - - 39 + + MIN( - 60 ) * - 59 col2, 53 * - COUNT( * ) + + 66
----
3578
13

skipif mysql # not compatible
query II rowsort label-6642
SELECT ALL - COUNT ( * ) - - 39 + + MIN ( - 60 ) * - 59 col2, 53 * - COUNT ( * ) + + 66
----
3578
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6643
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - 63 * 26 - 51
----
NULL
-1689

skipif mysql # not compatible
query II rowsort label-6643
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - 63 * 26 - 51
----
NULL
-1689

query I rowsort
SELECT 36 * + 18
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT - MIN( ALL 48 ) * - 36 + - 29 AS col0
----
1699

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT - MIN ( ALL 48 ) * - 36 + - 29 AS col0
----
1699

query II rowsort
SELECT ALL - 90 AS col1, CASE - + 45 WHEN - - 56 THEN NULL ELSE 69 END AS col1
----
-90
69

query I rowsort
SELECT 61 * + 87 AS col0
----
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT COUNT( * ) * + - 55 * 64 + - + 49
----
-3569

skipif mysql # not compatible
query I rowsort label-6648
SELECT COUNT ( * ) * + - 55 * 64 + - + 49
----
-3569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6649
SELECT 35 - CAST( 15 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-6649
SELECT 35 - CAST ( 15 AS INTEGER )
----
20

query I rowsort
SELECT 45 - 90
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT 51 DIV + ( + - 93 ) * + + ( 7 ) + + 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6651
SELECT 51 / + ( + - 93 ) * + + ( 7 ) + + 33 AS col2
----
33

query I rowsort
SELECT ALL - 31 + + 47 * 91 * 54
----
230927

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT DISTINCT - 20 DIV + NULLIF ( - 27, - + COALESCE ( + - 29, - 1 + 55 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT - 20 / + NULLIF ( - 27, - + COALESCE ( + - 29, - 1 + 55 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT ALL + 62 + + + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL + 62 + + + COUNT ( * )
----
63

query I rowsort
SELECT 31 + - 8 + - 61 AS col1
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6656
SELECT - 43 DIV - + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6656
SELECT - 43 / - + COUNT ( * ) AS col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6657
SELECT ALL - 70 + - CASE 14 WHEN 21 THEN NULL ELSE + + MIN( DISTINCT 81 ) / - CAST( NULL AS SIGNED ) END + 83 * - 27 * + + 42 * + COUNT( * ) * 24 - + + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - 70 + - CASE 14 WHEN 21 THEN NULL ELSE + + MIN ( DISTINCT 81 ) / - CAST ( NULL AS INTEGER ) END + 83 * - 27 * + + 42 * + COUNT ( * ) * 24 - + + 96 AS col1
----
NULL

query I rowsort
SELECT - 27 * - 96
----
2592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6659
SELECT DISTINCT + 79 * + - 36 - - - CASE MAX( - 46 ) WHEN 48 THEN + 43 + + 29 + + 53 ELSE NULL END * + CAST( + 79 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT + 79 * + - 36 - - - CASE MAX ( - 46 ) WHEN 48 THEN + 43 + + 29 + + 53 ELSE NULL END * + CAST ( + 79 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT - - SUM( + 98 ) col2
----
98

skipif mysql # not compatible
query I rowsort label-6660
SELECT - - SUM ( + 98 ) col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT NULLIF ( - 69, - 53 + - 88 ) + - ( - COALESCE ( + COUNT( * ), + + 47 ) ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-6661
SELECT NULLIF ( - 69, - 53 + - 88 ) + - ( - COALESCE ( + COUNT ( * ), + + 47 ) ) col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6662
SELECT ALL - CASE CAST( NULL AS SIGNED ) WHEN + 5 THEN NULL WHEN 15 THEN NULL ELSE + + NULLIF ( COUNT( + 68 ), - 19 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - CASE CAST ( NULL AS INTEGER ) WHEN + 5 THEN NULL WHEN 15 THEN NULL ELSE + + NULLIF ( COUNT ( + 68 ), - 19 ) END
----
-1

query II rowsort
SELECT + 93 * - ( - 34 ), - NULLIF ( + - ( - 95 ), - - 61 ) AS col1
----
3162
-95

query I rowsort
SELECT ALL COALESCE ( 40, + 12 * - - 29 + 30 ) col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL 46 + + + ( + COUNT( * ) ) + + 25
----
72

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL 46 + + + ( + COUNT ( * ) ) + + 25
----
72

query II rowsort
SELECT + 79 AS col0, 5 AS col2
----
79
5

query I rowsort
SELECT - CASE - + CASE - + 39 WHEN - 61 THEN NULL WHEN - 72 THEN - + 14 * + 69 WHEN - 4 THEN NULL END WHEN AVG ( ALL + COALESCE ( + 92, + 55 ) ) THEN 1 ELSE NULL END col2
----
NULL

query I rowsort
SELECT 28 + - 33
----
-5

query II rowsort
SELECT - 79 AS col0, 62 + + 37 AS col1
----
-79
99

query I rowsort
SELECT ALL 12 - 91 col0
----
-79

query I rowsort
SELECT ALL 26 - 72 AS col1
----
-46

query I rowsort
SELECT - + 14 - - 58 AS col2
----
44

query I rowsort
SELECT + 98 * 58 AS col0
----
5684

query I rowsort
SELECT DISTINCT 3 * + 36
----
108

query I rowsort
SELECT + 68 - ( + - 34 ) * - 49
----
-1598

query I rowsort
SELECT ALL 38 * + - 57 * + - 52
----
112632

query I rowsort
SELECT + 44 + + - 18 col0
----
26

query I rowsort
SELECT ALL - 82 * + + ( 1 )
----
-82

query I rowsort
SELECT + 62 * 38
----
2356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6680
SELECT - 74 * MAX( ALL - 0 ) * + 39 + - + 65 + + 41 * + + 36 + - 90 DIV + 75 + - - 42
----
1452

skipif mysql # not compatible
query I rowsort label-6680
SELECT - 74 * MAX ( ALL - 0 ) * + 39 + - + 65 + + 41 * + + 36 + - 90 / + 75 + - - 42
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT ALL + MAX( DISTINCT 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6681
SELECT ALL + MAX ( DISTINCT 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT + 38 * - 91 * - - MAX( ALL 34 )
----
-117572

skipif mysql # not compatible
query I rowsort label-6682
SELECT + 38 * - 91 * - - MAX ( ALL 34 )
----
-117572

query I rowsort
SELECT + 26 * - 53 AS col0
----
-1378

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT + 84 + COUNT( ALL + 97 )
----
85

skipif mysql # not compatible
query I rowsort label-6684
SELECT + 84 + COUNT ( ALL + 97 )
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT - 24 DIV - 96 - + - 23
----
23

skipif mysql # not compatible
query I rowsort label-6685
SELECT - 24 / - 96 - + - 23
----
23

query I rowsort
SELECT + 2 * 20 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT - MIN( + COALESCE ( - + 16, + 26 ) ) + 31
----
47

skipif mysql # not compatible
query I rowsort label-6687
SELECT - MIN ( + COALESCE ( - + 16, + 26 ) ) + 31
----
47

query II rowsort
SELECT ALL + 90 AS col2, 87
----
90
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6689
SELECT CASE + 40 WHEN + - 91 + 67 THEN NULL ELSE + CASE 92 WHEN COALESCE ( + 70, + ( 86 ) / 65 + - + COUNT( * ), 31 + 44 + + NULLIF ( 24, CAST( NULL AS SIGNED ) + 30 * - 58 * 54 ) * - - 25 * + COUNT( * ) ) * - 72 + COUNT( * ) THEN NULL WHEN - - 34 * COUNT( * ) THEN 0 END - - + 38 / - 5 * 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT CASE + 40 WHEN + - 91 + 67 THEN NULL ELSE + CASE 92 WHEN COALESCE ( + 70, + ( 86 ) / 65 + - + COUNT ( * ), 31 + 44 + + NULLIF ( 24, CAST ( NULL AS INTEGER ) + 30 * - 58 * 54 ) * - - 25 * + COUNT ( * ) ) * - 72 + COUNT ( * ) THEN NULL WHEN - - 34 * COUNT ( * ) THEN 0 END - - + 38 / - 5 * 13 END
----
NULL

query II rowsort
SELECT ALL + 6 AS col2, 24 AS col1
----
6
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT + 72 * + 4 * + - COUNT( * ) col2
----
-288

skipif mysql # not compatible
query I rowsort label-6691
SELECT + 72 * + 4 * + - COUNT ( * ) col2
----
-288

query I rowsort
SELECT + ( ( + + 60 ) ) AS col0
----
60

query I rowsort
SELECT ALL - 20 * + - 8 col0
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6694
SELECT NULLIF ( + + 93, - - CASE - 99 WHEN - 27 THEN 6 * 85 * - - COUNT( ALL - 89 ) * + COUNT( * ) ELSE NULL END * ( + + 24 ) + - 49 + ( 20 ) + - + 46 * - 91 + + ( - ( - 26 ) ) + + - MIN( ALL - CAST( NULL AS SIGNED ) ) * - + 23 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6694
SELECT NULLIF ( + + 93, - - CASE - 99 WHEN - 27 THEN 6 * 85 * - - COUNT ( ALL - 89 ) * + COUNT ( * ) ELSE NULL END * ( + + 24 ) + - 49 + ( 20 ) + - + 46 * - 91 + + ( - ( - 26 ) ) + + - MIN ( ALL - CAST ( NULL AS INTEGER ) ) * - + 23 ) AS col0
----
93

query I rowsort
SELECT ALL - 5 * 17 * + 38 + + 37 + + - 43 * + 61 + + 68
----
-5748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6696
SELECT - 62 * 96 + CAST( + 79 AS SIGNED ) AS col1
----
-5873

skipif mysql # not compatible
query I rowsort label-6696
SELECT - 62 * 96 + CAST ( + 79 AS INTEGER ) AS col1
----
-5873

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT DISTINCT + NULLIF ( + - 63, - 33 ) * ( - - 48 ) + ( SUM( ALL 72 ) ) - - - MAX( - 87 ) + + ( - 91 ) + 84 * + MAX( 10 )
----
-2116

skipif mysql # not compatible
query I rowsort label-6697
SELECT DISTINCT + NULLIF ( + - 63, - 33 ) * ( - - 48 ) + ( SUM ( ALL 72 ) ) - - - MAX ( - 87 ) + + ( - 91 ) + 84 * + MAX ( 10 )
----
-2116

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL - 41 * + - 13 + 31 * - COUNT( * ) AS col1
----
502

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL - 41 * + - 13 + 31 * - COUNT ( * ) AS col1
----
502

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6699
SELECT - - 30 DIV + 66 * + COUNT( * ) + - + 68
----
-68

skipif mysql # not compatible
query I rowsort label-6699
SELECT - - 30 / + 66 * + COUNT ( * ) + - + 68
----
-68

query II rowsort
SELECT + 67 AS col2, 16 * 45 + 54 * + + 4 AS col1
----
67
936

query I rowsort
SELECT - - 44 + - 76
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT ALL - + 57 + - - SUM( - 93 ) AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL - + 57 + - - SUM ( - 93 ) AS col1
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT ALL - 84 - + 25 DIV - 4 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL - 84 - + 25 / - 4 AS col0
----
-78

query I rowsort
SELECT - 0 - + 35 + + 26 * + - 54 + + + 75 * - - 22
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT - COUNT( * ) * - ( 8 )
----
8

skipif mysql # not compatible
query I rowsort label-6705
SELECT - COUNT ( * ) * - ( 8 )
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6706
SELECT ALL + - 90 DIV 15 AS col2, 10 DIV CAST( + 26 AS SIGNED ) AS col2
----
-6
0

skipif mysql # not compatible
query II rowsort label-6706
SELECT ALL + - 90 / 15 AS col2, 10 / CAST ( + 26 AS INTEGER ) AS col2
----
-6
0

query I rowsort
SELECT - - 29 + 39 AS col1
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6708
SELECT ALL - CAST( NULL AS DECIMAL ) - + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL - CAST ( NULL AS REAL ) - + 36 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT - + COUNT( - 12 ) + + - 16 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6709
SELECT - + COUNT ( - 12 ) + + - 16 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT - - ( - + 29 ) + - NULLIF ( - - ( 66 ), + - 78 + 69 ) + MIN( ALL - 12 ) * 20 AS col0
----
-335

skipif mysql # not compatible
query I rowsort label-6710
SELECT - - ( - + 29 ) + - NULLIF ( - - ( 66 ), + - 78 + 69 ) + MIN ( ALL - 12 ) * 20 AS col0
----
-335

query II rowsort
SELECT - + 17, 77 AS col1
----
-17
77

query II rowsort
SELECT DISTINCT 30 AS col1, 54 * - 35 * + 4 AS col1
----
30
-7560

query II rowsort
SELECT ALL - 73 * - 43 AS col1, 83 * 35 AS col0
----
3139
2905

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT + CASE WHEN NOT NULL IS NULL THEN NULL ELSE - ( - + 39 ) END - - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6714
SELECT + CASE WHEN NOT NULL IS NULL THEN NULL ELSE - ( - + 39 ) END - - COUNT ( * ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6715
SELECT ALL CAST( 39 AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL CAST ( 39 AS INTEGER ) AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6716
SELECT - 44 + - COUNT( * ) DIV 20
----
-44

skipif mysql # not compatible
query I rowsort label-6716
SELECT - 44 + - COUNT ( * ) / 20
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6717
SELECT - 38 * 62 AS col1, CAST( NULL AS SIGNED ) - + 34 * + ( + - COUNT( * ) ) + COUNT( * )
----
-2356
NULL

skipif mysql # not compatible
query II rowsort label-6717
SELECT - 38 * 62 AS col1, CAST ( NULL AS INTEGER ) - + 34 * + ( + - COUNT ( * ) ) + COUNT ( * )
----
-2356
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6718
SELECT ALL ( NULLIF ( + + COUNT( * ), + - COUNT( * ) + - 78 ) ) AS col1, 2 AS col0
----
1
2

skipif mysql # not compatible
query II rowsort label-6718
SELECT ALL ( NULLIF ( + + COUNT ( * ), + - COUNT ( * ) + - 78 ) ) AS col1, 2 AS col0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT + COUNT( * ) + - 29 + + + COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-6719
SELECT + COUNT ( * ) + - 29 + + + COUNT ( * ) AS col0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6720
SELECT + 91 + + + CAST( NULL AS SIGNED ) * + 81 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT + 91 + + + CAST ( NULL AS INTEGER ) * + 81 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT - 2 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-6721
SELECT - 2 / 42
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6722
SELECT + 8 * + - 85, + 68 * - ( + COUNT( * ) ) AS col2
----
-680
-68

skipif mysql # not compatible
query II rowsort label-6722
SELECT + 8 * + - 85, + 68 * - ( + COUNT ( * ) ) AS col2
----
-680
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-6723
SELECT + COUNT( * ) * + COALESCE ( - 44, - - 88, + 16 ) AS col1, - 88
----
-44
-88

skipif mysql # not compatible
query II rowsort label-6723
SELECT + COUNT ( * ) * + COALESCE ( - 44, - - 88, + 16 ) AS col1, - 88
----
-44
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6724
SELECT ALL + CASE - 79 WHEN SUM( 39 ) DIV + 77 THEN - 27 + - - 41 ELSE - - 72 END DIV 21 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL + CASE - 79 WHEN SUM ( 39 ) / + 77 THEN - 27 + - - 41 ELSE - - 72 END / 21 AS col0
----
3

query I rowsort
SELECT + 72 + - 6
----
66

query I rowsort
SELECT + NULLIF ( 33, + 86 ) AS col1
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6727
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 28 * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT + CAST ( NULL AS REAL ) * 28 * 84
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6728
SELECT ALL + COUNT( * ) DIV 60 + + - 46, 42 + 3 AS col0
----
-46
45

skipif mysql # not compatible
query II rowsort label-6728
SELECT ALL + COUNT ( * ) / 60 + + - 46, 42 + 3 AS col0
----
-46
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT ALL 25 DIV 56 + 42 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL 25 / 56 + 42 AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6730
SELECT + ( - COALESCE ( + CASE - + 18 WHEN - COUNT( * ) + + - 66 THEN - + 50 * + + 99 END, - CAST( NULL AS SIGNED ) + + + 29, - + 40 ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6730
SELECT + ( - COALESCE ( + CASE - + 18 WHEN - COUNT ( * ) + + - 66 THEN - + 50 * + + 99 END, - CAST ( NULL AS INTEGER ) + + + 29, - + 40 ) ) AS col0
----
40

query II rowsort
SELECT + + 76 * + 10 AS col0, - ( - + 99 )
----
760
99

query I rowsort
SELECT + + NULLIF ( + 10, + + 15 / - + 52 )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6733
SELECT + + ( - COALESCE ( + 45, + 85 + - 24 DIV + 62, + - 2 * + 96 ) ) + + + 77 * - 89
----
-6898

skipif mysql # not compatible
query I rowsort label-6733
SELECT + + ( - COALESCE ( + 45, + 85 + - 24 / + 62, + - 2 * + 96 ) ) + + + 77 * - 89
----
-6898

query I rowsort
SELECT ALL + + NULLIF ( 30, - + COALESCE ( - 45, 24, 68 ) ) col0
----
30

query II rowsort
SELECT ALL - 29 * - 68 AS col2, + 58 * - - 22
----
1972
1276

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT DISTINCT - 96 * + COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT - 96 * + COUNT ( * ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT DISTINCT COUNT( DISTINCT - 88 ) * + 33 + + NULLIF ( 12, - 92 )
----
45

skipif mysql # not compatible
query I rowsort label-6737
SELECT DISTINCT COUNT ( DISTINCT - 88 ) * + 33 + + NULLIF ( 12, - 92 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT ( - COUNT( + 55 ) ) * - COUNT( - 7 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6738
SELECT ( - COUNT ( + 55 ) ) * - COUNT ( - 7 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6739
SELECT + 38 * 19 DIV 5 * + 57 * + 48 + - 23 * 90 * + COUNT( * ) col2
----
391914

skipif mysql # not compatible
query I rowsort label-6739
SELECT + 38 * 19 / 5 * + 57 * + 48 + - 23 * 90 * + COUNT ( * ) col2
----
391914

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT ALL + 27 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + 27 / + 94 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6741
SELECT DISTINCT + COUNT( * ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT + COUNT ( * ) / 42
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6742
SELECT 45 * + + COUNT( 81 ) AS col1, + MIN( DISTINCT - 14 ) col1
----
45
-14

skipif mysql # not compatible
query II rowsort label-6742
SELECT 45 * + + COUNT ( 81 ) AS col1, + MIN ( DISTINCT - 14 ) col1
----
45
-14

query II rowsort
SELECT DISTINCT 38 AS col1, 57 AS col0
----
38
57

query I rowsort
SELECT 19 * - 99
----
-1881

onlyif mysql # aggregate syntax: 
query II rowsort label-6745
SELECT 39, + COUNT( * ) + + - COUNT( * ) AS col0
----
39
0

skipif mysql # not compatible
query II rowsort label-6745
SELECT 39, + COUNT ( * ) + + - COUNT ( * ) AS col0
----
39
0

query I rowsort
SELECT 26 - - 30 AS col2
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-6747
SELECT - 94 AS col2, 34 DIV - - 69 col1
----
-94
0

skipif mysql # not compatible
query II rowsort label-6747
SELECT - 94 AS col2, 34 / - - 69 col1
----
-94
0

query I rowsort
SELECT ALL + 92 + + 61 AS col1
----
153

query I rowsort
SELECT 35 + - 22 + - 7 + + - 77
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT DISTINCT - 65 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT DISTINCT - 65 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 45 + - 1 col0
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6752
SELECT DISTINCT - 28 AS col0, 38 * 73 + - 45 - + COUNT( + 32 ) - - 34 * CAST( NULL AS SIGNED ) + + + NULLIF ( + + 21, + 7 / 21 ) AS col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-6752
SELECT DISTINCT - 28 AS col0, 38 * 73 + - 45 - + COUNT ( + 32 ) - - 34 * CAST ( NULL AS INTEGER ) + + + NULLIF ( + + 21, + 7 / 21 ) AS col1
----
-28
NULL

query II rowsort
SELECT ALL - 31, 57 + - 64 AS col0
----
-31
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6754
SELECT ALL 95 + + NULLIF ( - 65, SUM( 56 ) + - 32 ) * - COALESCE ( - 80, - ( + - 51 ), - CAST( + 17 AS SIGNED ) )
----
-5105

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL 95 + + NULLIF ( - 65, SUM ( 56 ) + - 32 ) * - COALESCE ( - 80, - ( + - 51 ), - CAST ( + 17 AS INTEGER ) )
----
-5105

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT + 71 * + 67 - - + COUNT( * )
----
4758

skipif mysql # not compatible
query I rowsort label-6755
SELECT + 71 * + 67 - - + COUNT ( * )
----
4758

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL - NULLIF ( + + ( + 71 ), - 7 * + COUNT( * ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - NULLIF ( + + ( + 71 ), - 7 * + COUNT ( * ) ) AS col1
----
-71

query I rowsort
SELECT - 23 * + 53
----
-1219

query I rowsort
SELECT ALL 67 - 91 AS col2
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6759
SELECT DISTINCT + - 49 DIV - SUM( 66 )
----
0

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT + - 49 / - SUM ( 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT 23 + COUNT( * ) + - - 67 * 58 + + 11 - + 17 AS col0
----
3904

skipif mysql # not compatible
query I rowsort label-6760
SELECT 23 + COUNT ( * ) + - - 67 * 58 + + 11 - + 17 AS col0
----
3904

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL 90 * - - 21 * - 31 + + + 99 + - 28 * + COUNT( * ) * - + 67
----
-56615

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL 90 * - - 21 * - 31 + + + 99 + - 28 * + COUNT ( * ) * - + 67
----
-56615

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL + COUNT( * ) * - - 81 * + 14 + 83 AS col2
----
1217

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + COUNT ( * ) * - - 81 * + 14 + 83 AS col2
----
1217

query I rowsort
SELECT ALL - 89 - 30 + 90
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6764
SELECT DISTINCT 52 - + - CAST( NULL AS SIGNED ) * + 59 + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT 52 - + - CAST ( NULL AS INTEGER ) * + 59 + + 75
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT ALL - + 56 AS col2, COALESCE ( + + 43, + 39 * COUNT( * ), 82 ) + - - 95 - - - 62 + - 56 * - 82 * 31 + - 31 AS col2
----
-56
142397

skipif mysql # not compatible
query II rowsort label-6765
SELECT ALL - + 56 AS col2, COALESCE ( + + 43, + 39 * COUNT ( * ), 82 ) + - - 95 - - - 62 + - 56 * - 82 * 31 + - 31 AS col2
----
-56
142397

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT + 15 * + + 84 + COUNT( * ) col2
----
1261

skipif mysql # not compatible
query I rowsort label-6766
SELECT + 15 * + + 84 + COUNT ( * ) col2
----
1261

query I rowsort
SELECT + 44 * + 37 + 50
----
1678

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT 10 + 62 + + COUNT( * ) * - 32 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6768
SELECT 10 + 62 + + COUNT ( * ) * - 32 AS col0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6769
SELECT - 53 DIV + 39 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6769
SELECT - 53 / + 39 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT - MAX( - 33 ) + + + 79 * - NULLIF ( + 90, 54 * 75 + + AVG ( 72 ) * ( + - 10 ) + - 6 ) AS col1
----
-7077

skipif mysql # not compatible
query I rowsort label-6770
SELECT - MAX ( - 33 ) + + + 79 * - NULLIF ( + 90, 54 * 75 + + AVG ( 72 ) * ( + - 10 ) + - 6 ) AS col1
----
-7077

query II rowsort
SELECT - 87 AS col1, 11
----
-87
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6772
SELECT + 2 * + COUNT( - 17 ) + - 74 DIV - 6 + 4
----
18

skipif mysql # not compatible
query I rowsort label-6772
SELECT + 2 * + COUNT ( - 17 ) + - 74 / - 6 + 4
----
18

query I rowsort
SELECT ALL + 23 + - + 55 * - 79 AS col2
----
4368

query I rowsort
SELECT ALL COALESCE ( - 13, - - 28 + + 92 ) * - 23 * - 16 AS col2
----
-4784

onlyif mysql # aggregate syntax: 
query II rowsort label-6775
SELECT 55 + COUNT( DISTINCT + - 64 ) * + 72, + COUNT( * ) * - 61 AS col1
----
127
-61

skipif mysql # not compatible
query II rowsort label-6775
SELECT 55 + COUNT ( DISTINCT + - 64 ) * + 72, + COUNT ( * ) * - 61 AS col1
----
127
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT COUNT( * ) + NULLIF ( + - 95, - 37 - + 53 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6776
SELECT COUNT ( * ) + NULLIF ( + - 95, - 37 - + 53 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT DISTINCT SUM( DISTINCT + 19 ) + + 0 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT SUM ( DISTINCT + 19 ) + + 0 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6778
SELECT ALL + 88 DIV - 51 col2
----
-1

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL + 88 / - 51 col2
----
-1

query I rowsort
SELECT DISTINCT 72 + - ( + + 8 ) + - 55 + - ( ( - - 10 ) ) * 7
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT DISTINCT MAX( - 37 ) col0
----
-37

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT MAX ( - 37 ) col0
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6781
SELECT ALL - 88 DIV - SUM( DISTINCT 32 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL - 88 / - SUM ( DISTINCT 32 ) col2
----
2

query I rowsort
SELECT COALESCE ( + 50, - 57 ) AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6783
SELECT ALL COUNT( * ) * + 70 * - 23 * - COALESCE ( - + 87, 27 * + 40 * - + COALESCE ( 65, - CASE 51 WHEN CASE - + 49 WHEN 39 THEN NULL ELSE + 65 - + CAST( NULL AS SIGNED ) END DIV 0 THEN + + 49 * 85 END + - 25 + - 40 DIV MAX( DISTINCT 67 ), + 70 + 61 ) ) * + 29 + + - NULLIF ( + 69, - 67 * - ( + + 35 ) ) - + COALESCE ( - 0, 42 - - - CAST( NULL AS SIGNED ) ) AS col0
----
-4062099

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL COUNT ( * ) * + 70 * - 23 * - COALESCE ( - + 87, 27 * + 40 * - + COALESCE ( 65, - CASE 51 WHEN CASE - + 49 WHEN 39 THEN NULL ELSE + 65 - + CAST ( NULL AS INTEGER ) END / 0 THEN + + 49 * 85 END + - 25 + - 40 / MAX ( DISTINCT 67 ), + 70 + 61 ) ) * + 29 + + - NULLIF ( + 69, - 67 * - ( + + 35 ) ) - + COALESCE ( - 0, 42 - - - CAST ( NULL AS INTEGER ) ) AS col0
----
-4062099

onlyif mysql # DIV for integer division: 
query II rowsort label-6784
SELECT 60 DIV - 41 col1, 93
----
-1
93

skipif mysql # not compatible
query II rowsort label-6784
SELECT 60 / - 41 col1, 93
----
-1
93

query I rowsort
SELECT 96 * + - 77 * 67 * - 34 AS col0
----
16838976

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT - COUNT( * ) * + + 14 * - + 65 AS col2
----
910

skipif mysql # not compatible
query I rowsort label-6786
SELECT - COUNT ( * ) * + + 14 * - + 65 AS col2
----
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6787
SELECT + CAST( - 92 AS SIGNED ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-6787
SELECT + CAST ( - 92 AS INTEGER ) AS col0
----
-92

query I rowsort
SELECT ALL + + 96 * - + 84 AS col0
----
-8064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6789
SELECT 69 * - - COALESCE ( - ( - - 56 ), - - COUNT( * ) DIV 81 + COUNT( * ) - - + COUNT( * ) ) + - 60 DIV 79 + 51 DIV - 76, CAST( NULL AS SIGNED ) + - 64 - - - 73 AS col0
----
-3864
NULL

skipif mysql # not compatible
query II rowsort label-6789
SELECT 69 * - - COALESCE ( - ( - - 56 ), - - COUNT ( * ) / 81 + COUNT ( * ) - - + COUNT ( * ) ) + - 60 / 79 + 51 / - 76, CAST ( NULL AS INTEGER ) + - 64 - - - 73 AS col0
----
-3864
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6790
SELECT + 0 * - 52 DIV + COUNT( * ) * - ( - + 14 ) * + + 40 + - 90 + + 57 * + - MAX( + - 28 )
----
1506

skipif mysql # not compatible
query I rowsort label-6790
SELECT + 0 * - 52 / + COUNT ( * ) * - ( - + 14 ) * + + 40 + - 90 + + 57 * + - MAX ( + - 28 )
----
1506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6791
SELECT CASE - 60 WHEN + COALESCE ( - 58, + + COALESCE ( NULLIF ( 63, + + AVG ( ALL + 40 ) + - 26 ), 11 * - 2 ), 45 - - - CASE 14 WHEN - 82 THEN + 77 + - - 9 WHEN 60 THEN + 23 * 24 * - + NULLIF ( - 92, - - ( CAST( NULL AS SIGNED ) ) * - 31 ) END ) / - 72 * - 81 + + - 77 * 86 THEN - COUNT( * ) + + + 5 + - 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6791
SELECT CASE - 60 WHEN + COALESCE ( - 58, + + COALESCE ( NULLIF ( 63, + + AVG ( ALL + 40 ) + - 26 ), 11 * - 2 ), 45 - - - CASE 14 WHEN - 82 THEN + 77 + - - 9 WHEN 60 THEN + 23 * 24 * - + NULLIF ( - 92, - - ( CAST ( NULL AS INTEGER ) ) * - 31 ) END ) / - 72 * - 81 + + - 77 * 86 THEN - COUNT ( * ) + + + 5 + - 70 END
----
NULL

query I rowsort
SELECT - 80 + + - 75 AS col0
----
-155

query I rowsort
SELECT - 24 * - 88 AS col1
----
2112

query I rowsort
SELECT - 51 - - 7
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL + 86 * + + MAX( ALL + 72 ) + + + 73 AS col0
----
6265

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL + 86 * + + MAX ( ALL + 72 ) + + + 73 AS col0
----
6265

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT ALL - - 79 DIV + - NULLIF ( + 42, - - 86 ) + - + 69 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL - - 79 / + - NULLIF ( + 42, - - 86 ) + - + 69 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-6797
SELECT ALL 13 + + - 74 / - CASE 89 WHEN 58 THEN MAX( - + 64 ) ELSE NULL END * - 3 * + COUNT( * ) AS col1, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6797
SELECT ALL 13 + + - 74 / - CASE 89 WHEN 58 THEN MAX ( - + 64 ) ELSE NULL END * - 3 * + COUNT ( * ) AS col1, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT - NULLIF ( - 37, - - 64 ) * + 35 * + + 26 * + - 27 * + 63 AS col2
----
-57272670

onlyif mysql # aggregate syntax: 
query II rowsort label-6799
SELECT + 96 * ( + - 6 ) * + ( + COUNT( - - 5 ) ) + - 28 + 25 + - + 91 + - 36 + 35 - 51 * + - NULLIF ( + + 65, 71 ) + + 68 * + 42 * - 89 * + - 27 AS col2, + 57
----
6865612
57

skipif mysql # not compatible
query II rowsort label-6799
SELECT + 96 * ( + - 6 ) * + ( + COUNT ( - - 5 ) ) + - 28 + 25 + - + 91 + - 36 + 35 - 51 * + - NULLIF ( + + 65, 71 ) + + 68 * + 42 * - 89 * + - 27 AS col2, + 57
----
6865612
57

query I rowsort
SELECT - 86 * - 7 * 94 col0
----
56588

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT + 68 DIV - 40 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6801
SELECT + 68 / - 40 AS col0
----
-1

query II rowsort
SELECT - 79 * + 61 * + - 86, + 57 AS col1
----
414434
57

query I rowsort
SELECT + 85 * NULLIF ( 56, + 53 )
----
4760

onlyif mysql # aggregate syntax: 
query II rowsort label-6804
SELECT + COUNT( DISTINCT 1 ) * + ( + + 74 ) * - + 42 + COALESCE ( + 97, + 92 + - 20 ) * 40 AS col1, + 9 * COUNT( * ) + + 14
----
772
23

skipif mysql # not compatible
query II rowsort label-6804
SELECT + COUNT ( DISTINCT 1 ) * + ( + + 74 ) * - + 42 + COALESCE ( + 97, + 92 + - 20 ) * 40 AS col1, + 9 * COUNT ( * ) + + 14
----
772
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL - COUNT( 68 ) + - ( - + COUNT( * ) ) + + - 2 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL - COUNT ( 68 ) + - ( - + COUNT ( * ) ) + + - 2 AS col2
----
-2

query I rowsort
SELECT ALL 2 * 26
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT - CASE - CASE - - 98 WHEN + - 88 THEN - 95 END WHEN 34 THEN NULL WHEN 47 * + - ( - 37 ) + - + CASE ( - 42 ) WHEN 33 THEN NULL ELSE - - COUNT( * ) END * + + 74 THEN NULL ELSE NULLIF ( + 52, + COUNT( * ) * + + COUNT( * ) ) END
----
-52

skipif mysql # not compatible
query I rowsort label-6807
SELECT - CASE - CASE - - 98 WHEN + - 88 THEN - 95 END WHEN 34 THEN NULL WHEN 47 * + - ( - 37 ) + - + CASE ( - 42 ) WHEN 33 THEN NULL ELSE - - COUNT ( * ) END * + + 74 THEN NULL ELSE NULLIF ( + 52, + COUNT ( * ) * + + COUNT ( * ) ) END
----
-52

query I rowsort
SELECT ALL 20 + 21 + - 98 AS col0
----
-57

query I rowsort
SELECT + ( + 24 ) - - 91
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6810
SELECT - COALESCE ( + COALESCE ( 7, - + 57 ), - - CAST( NULL AS SIGNED ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6810
SELECT - COALESCE ( + COALESCE ( 7, - + 57 ), - - CAST ( NULL AS INTEGER ) ) AS col2
----
-7

query I rowsort
SELECT + 96 + - - 95 col0
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT - ( + + COUNT( + - 65 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6812
SELECT - ( + + COUNT ( + - 65 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT - MIN( ( + 87 ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-6813
SELECT - MIN ( ( + 87 ) ) AS col1
----
-87

query I rowsort
SELECT + 72 + 70 + - + 17 AS col1
----
125

query I rowsort
SELECT + 78 * - 96
----
-7488

query I rowsort
SELECT + 89 * + - 53 * - 54
----
254718

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT + COUNT( * ) + - + MAX( DISTINCT - 53 ) - + + 62
----
-8

skipif mysql # not compatible
query I rowsort label-6817
SELECT + COUNT ( * ) + - + MAX ( DISTINCT - 53 ) - + + 62
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT + COUNT( DISTINCT - 42 ) + + 58 + + 71
----
130

skipif mysql # not compatible
query I rowsort label-6818
SELECT + COUNT ( DISTINCT - 42 ) + + 58 + + 71
----
130

query I rowsort
SELECT + 42 + + 31
----
73

query I rowsort
SELECT + 59 * - 41
----
-2419

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT DISTINCT 65 * - 34 DIV - 2
----
1105

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT 65 * - 34 / - 2
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT 53 * + - SUM( DISTINCT + 36 ) + 69 + 76
----
-1763

skipif mysql # not compatible
query I rowsort label-6822
SELECT 53 * + - SUM ( DISTINCT + 36 ) + 69 + 76
----
-1763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6823
SELECT - COUNT( * ) DIV 51 + - 31 + + CAST( - - 75 AS SIGNED ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-6823
SELECT - COUNT ( * ) / 51 + - 31 + + CAST ( - - 75 AS INTEGER ) AS col0
----
44

query I rowsort
SELECT ALL + - ( 89 )
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6825
SELECT - + MAX( ALL 8 ) DIV - + 24 * - - 60 - - 8
----
8

skipif mysql # not compatible
query I rowsort label-6825
SELECT - + MAX ( ALL 8 ) / - + 24 * - - 60 - - 8
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6826
SELECT DISTINCT 29 DIV + - 31 + + 9 + - - 72 * 59
----
4257

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT 29 / + - 31 + + 9 + - - 72 * 59
----
4257

query I rowsort
SELECT ALL + 6 * - 22 AS col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT + - MAX( + + 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-6828
SELECT + - MAX ( + + 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT - + 95 * + COUNT( * ) * - 78
----
7410

skipif mysql # not compatible
query I rowsort label-6829
SELECT - + 95 * + COUNT ( * ) * - 78
----
7410

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL + 46 * + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL + 46 * + + COUNT ( * )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6831
SELECT - CAST( - - 41 AS SIGNED ) * + - ( - ( - - 78 ) ) AS col2
----
-3198

skipif mysql # not compatible
query I rowsort label-6831
SELECT - CAST ( - - 41 AS INTEGER ) * + - ( - ( - - 78 ) ) AS col2
----
-3198

query I rowsort
SELECT DISTINCT - 13 * 94
----
-1222

query I rowsort
SELECT - 56 * 37 + + - 25
----
-2097

query I rowsort
SELECT - - 69 * + 47
----
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT + MIN( DISTINCT + 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6835
SELECT + MIN ( DISTINCT + 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6836
SELECT DISTINCT - COUNT( * ) * - 83 + 65 - + 70 col2, + 86
----
78
86

skipif mysql # not compatible
query II rowsort label-6836
SELECT DISTINCT - COUNT ( * ) * - 83 + 65 - + 70 col2, + 86
----
78
86

query I rowsort
SELECT ALL - 1 * - 49 + - 48 col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6838
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 41 AS col0
----
NULL

query I rowsort
SELECT - 8 + + 8 - 30
----
-30

query I rowsort
SELECT ALL 34 * + 22 - + + 79 * + 42
----
-2570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT 24 * COUNT( * ) * 81 + + - 13 DIV - + 67 col2
----
1944

skipif mysql # not compatible
query I rowsort label-6841
SELECT 24 * COUNT ( * ) * 81 + + - 13 / - + 67 col2
----
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT - MIN( DISTINCT - 71 ) * 61 - - CASE + 74 WHEN + 72 THEN 15 + + - 95 ELSE - + NULLIF ( - 58, COUNT( + 0 ) * - 54 ) * 53 * COUNT( * ) END AS col1
----
7405

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT - MIN ( DISTINCT - 71 ) * 61 - - CASE + 74 WHEN + 72 THEN 15 + + - 95 ELSE - + NULLIF ( - 58, COUNT ( + 0 ) * - 54 ) * 53 * COUNT ( * ) END AS col1
----
7405

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT + ( - 41 ) + - - 21 * 93 * COUNT( * ) AS col1
----
1912

skipif mysql # not compatible
query I rowsort label-6843
SELECT + ( - 41 ) + - - 21 * 93 * COUNT ( * ) AS col1
----
1912

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT + COUNT( DISTINCT 21 ) + + + 84
----
85

skipif mysql # not compatible
query I rowsort label-6844
SELECT + COUNT ( DISTINCT 21 ) + + + 84
----
85

query I rowsort
SELECT ALL - 61 - + 6 - - + 86 * - 33 AS col0
----
-2905

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6846
SELECT - 90 DIV 78 * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6846
SELECT - 90 / 78 * + COUNT ( * )
----
-1

query II rowsort
SELECT 36, 11 AS col1
----
36
11

query I rowsort
SELECT + 54 + 3 AS col0
----
57

query I rowsort
SELECT - 66 * + - 63 AS col1
----
4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6850
SELECT + 72 * + CAST( 62 AS SIGNED ) * 94 + - COUNT( * ) - - 52 + - - COUNT( * ) * - 24
----
419643

skipif mysql # not compatible
query I rowsort label-6850
SELECT + 72 * + CAST ( 62 AS INTEGER ) * 94 + - COUNT ( * ) - - 52 + - - COUNT ( * ) * - 24
----
419643

onlyif mysql # DIV for integer division: 
query II rowsort label-6851
SELECT DISTINCT 6, 13 DIV + + 66 * - 95 * + - 51 DIV 49 AS col1
----
6
0

skipif mysql # not compatible
query II rowsort label-6851
SELECT DISTINCT 6, 13 / + + 66 * - 95 * + - 51 / 49 AS col1
----
6
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6852
SELECT + 36 * MAX( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT + 36 * MAX ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT - - 9 AS col2, - 26 col1
----
9
-26

query I rowsort
SELECT 39 * + + ( 98 )
----
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6855
SELECT + 48 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6855
SELECT + 48 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 18 * + - 39
----
-702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6857
SELECT - + CASE 96 WHEN - - CAST( - + 27 AS SIGNED ) - - 85 THEN - 24 WHEN + 28 THEN NULL WHEN CASE - + ( 46 ) WHEN - 68 THEN - 93 END THEN + 1 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT - + CASE 96 WHEN - - CAST ( - + 27 AS INTEGER ) - - 85 THEN - 24 WHEN + 28 THEN NULL WHEN CASE - + ( 46 ) WHEN - 68 THEN - 93 END THEN + 1 END col2
----
NULL

query I rowsort
SELECT DISTINCT 84 + + - 28
----
56

query I rowsort
SELECT - 33 * - 60 + + + 68 AS col1
----
2048

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6860
SELECT ALL - + CAST( NULL AS SIGNED ) + + 71 AS col2, 59 * COUNT( * ) * 22 AS col0
----
NULL
1298

skipif mysql # not compatible
query II rowsort label-6860
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 71 AS col2, 59 * COUNT ( * ) * 22 AS col0
----
NULL
1298

query I rowsort
SELECT + + NULLIF ( 92, ( + 4 ) + + - 26 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT ( + - 1 ) + + COUNT( * ) * COUNT( ALL - 54 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6862
SELECT ( + - 1 ) + + COUNT ( * ) * COUNT ( ALL - 54 ) AS col0
----
0

query I rowsort
SELECT - 31 * + 91 col0
----
-2821

query I rowsort
SELECT NULLIF ( - 1, - 94 ) * + 67
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6865
SELECT ( - 77 ) DIV + CAST( SUM( ALL + + 15 ) AS SIGNED ) DIV - 1 + 12 + - - MIN( ALL 30 ) * - 41, - 47 col2
----
-1213
-47

skipif mysql # not compatible
query II rowsort label-6865
SELECT ( - 77 ) / + CAST ( SUM ( ALL + + 15 ) AS INTEGER ) / - 1 + 12 + - - MIN ( ALL 30 ) * - 41, - 47 col2
----
-1213
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6866
SELECT DISTINCT - COALESCE ( 68, - COUNT( * ), - NULLIF ( 47, + + ( + 17 ) + 7 ) + + 99 + - 11 * + 4, + 65 * - 18 DIV - - 13 * + 86 - COALESCE ( - 91, + + COUNT( * ) ) * 48 * 62 DIV 93 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT - COALESCE ( 68, - COUNT ( * ), - NULLIF ( 47, + + ( + 17 ) + 7 ) + + 99 + - 11 * + 4, + 65 * - 18 / - - 13 * + 86 - COALESCE ( - 91, + + COUNT ( * ) ) * 48 * 62 / 93 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL - 74 - - - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - 74 - - - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT DISTINCT - NULLIF ( - 66, COUNT( * ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT - NULLIF ( - 66, COUNT ( * ) ) AS col0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6869
SELECT 51 - - + 8 DIV - 60 DIV + COUNT( - 71 )
----
51

skipif mysql # not compatible
query I rowsort label-6869
SELECT 51 - - + 8 / - 60 / + COUNT ( - 71 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT 54 * - COUNT( DISTINCT - 10 ) * + + 50 AS col2
----
-2700

skipif mysql # not compatible
query I rowsort label-6870
SELECT 54 * - COUNT ( DISTINCT - 10 ) * + + 50 AS col2
----
-2700

query I rowsort
SELECT 60 - 92 AS col2
----
-32

query II rowsort
SELECT 96 * + 98 col0, 70 * + ( 19 ) + 88
----
9408
1418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6873
SELECT DISTINCT + 57 DIV NULLIF ( - COUNT( * ), - - 20 - 88 + - NULLIF ( - ( 72 ), - 94 + - 61 * + CASE 80 WHEN CAST( NULL AS SIGNED ) DIV 52 * 47 * ( - 53 ) + + ( 43 ) + - 96 THEN + CASE - 82 WHEN + + 60 THEN + AVG ( + 86 ) ELSE NULL END * - COUNT( + 93 ) - + - COUNT( * ) + + 82 DIV + - 97 * - 50 + + 76 * - - 18 ELSE - + 39 DIV + - 65 * 59 DIV + COUNT( * ) * 90 END + - 85 * + - 58 * + 25 ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT + 57 / NULLIF ( - COUNT ( * ), - - 20 - 88 + - NULLIF ( - ( 72 ), - 94 + - 61 * + CASE 80 WHEN CAST ( NULL AS INTEGER ) / 52 * 47 * ( - 53 ) + + ( 43 ) + - 96 THEN + CASE - 82 WHEN + + 60 THEN + AVG ( + 86 ) ELSE NULL END * - COUNT ( + 93 ) - + - COUNT ( * ) + + 82 / + - 97 * - 50 + + 76 * - - 18 ELSE - + 39 / + - 65 * 59 / + COUNT ( * ) * 90 END + - 85 * + - 58 * + 25 ) ) AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT ALL + 30 * - CAST( NULL AS SIGNED ) * + 87 * - 19 * - 19 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL + 30 * - CAST ( NULL AS INTEGER ) * + 87 * - 19 * - 19 col1
----
NULL

query I rowsort
SELECT 95 - + + 44 AS col1
----
51

query I rowsort
SELECT ALL + 40 * - - 95
----
3800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6877
SELECT COALESCE ( + 56, + - 43, - 98 DIV - CASE - 67 WHEN - + COUNT( * ) * - 25 THEN + CASE - 64 WHEN - SUM( + 63 ) + - 29 THEN - 98 + 43 WHEN 66 + + 8 THEN + 62 * 16 + - CASE + ( - + 45 ) WHEN + 31 THEN NULL WHEN ( + + 67 ) THEN NULL ELSE - 72 END END WHEN - - ( - 77 ) + + COUNT( * ) THEN 20 END + + ( + 21 ) ) + + 59
----
115

skipif mysql # not compatible
query I rowsort label-6877
SELECT COALESCE ( + 56, + - 43, - 98 / - CASE - 67 WHEN - + COUNT ( * ) * - 25 THEN + CASE - 64 WHEN - SUM ( + 63 ) + - 29 THEN - 98 + 43 WHEN 66 + + 8 THEN + 62 * 16 + - CASE + ( - + 45 ) WHEN + 31 THEN NULL WHEN ( + + 67 ) THEN NULL ELSE - 72 END END WHEN - - ( - 77 ) + + COUNT ( * ) THEN 20 END + + ( + 21 ) ) + + 59
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT - 46 * - CAST( NULL AS SIGNED ) + + - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT - 46 * - CAST ( NULL AS INTEGER ) + + - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT COUNT( * ) * + - 60 + 9
----
-51

skipif mysql # not compatible
query I rowsort label-6879
SELECT COUNT ( * ) * + - 60 + 9
----
-51

query I rowsort
SELECT - 90 + - 30 * + - 95 * 81
----
230760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT ALL CAST( NULL AS SIGNED ) / + 46 + + - 91 / 9 + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL CAST ( NULL AS INTEGER ) / + 46 + + - 91 / 9 + - 77
----
NULL

query I rowsort
SELECT ALL 34 + + - 68 + - + ( 22 ) - + 87
----
-143

query I rowsort
SELECT 46 + - 40 + + 23 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT + COUNT( * ) * + - 11 * 98 * - 62 AS col2
----
66836

skipif mysql # not compatible
query I rowsort label-6884
SELECT + COUNT ( * ) * + - 11 * 98 * - 62 AS col2
----
66836

onlyif mysql # aggregate syntax: 
query II rowsort label-6885
SELECT ALL COUNT( DISTINCT + 0 ) AS col1, 2
----
1
2

skipif mysql # not compatible
query II rowsort label-6885
SELECT ALL COUNT ( DISTINCT + 0 ) AS col1, 2
----
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6886
SELECT DISTINCT + 54 + - COUNT( * ) AS col1, + 7 col1
----
53
7

skipif mysql # not compatible
query II rowsort label-6886
SELECT DISTINCT + 54 + - COUNT ( * ) AS col1, + 7 col1
----
53
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT COUNT( DISTINCT 94 )
----
1

skipif mysql # not compatible
query I rowsort label-6887
SELECT COUNT ( DISTINCT 94 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT SUM( ALL - + ( + 6 ) ) + - 46 + + 90 * 59 AS col0
----
5258

skipif mysql # not compatible
query I rowsort label-6888
SELECT SUM ( ALL - + ( + 6 ) ) + - 46 + + 90 * 59 AS col0
----
5258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6889
SELECT ALL + 63 + 83 col2, - 38 / - CAST( NULL AS SIGNED ) + COUNT( * ) * 84 AS col1
----
146
NULL

skipif mysql # not compatible
query II rowsort label-6889
SELECT ALL + 63 + 83 col2, - 38 / - CAST ( NULL AS INTEGER ) + COUNT ( * ) * 84 AS col1
----
146
NULL

query I rowsort
SELECT ALL ( + - 93 ) * 49
----
-4557

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT DISTINCT 44 - + COUNT( * ) * 70 * - 59 * CASE + 79 WHEN - - COUNT( * ) THEN NULL ELSE - + 13 * + 35 + - + 32 END + + - 42 + 81 AS col1
----
-2011227

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT 44 - + COUNT ( * ) * 70 * - 59 * CASE + 79 WHEN - - COUNT ( * ) THEN NULL ELSE - + 13 * + 35 + - + 32 END + + - 42 + 81 AS col1
----
-2011227

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT MAX( ALL 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6892
SELECT MAX ( ALL 24 ) AS col1
----
24

query II rowsort
SELECT + 35 AS col0, - 89 AS col2
----
35
-89

query I rowsort
SELECT 89 * + - 35 col2
----
-3115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT CAST( - 25 AS SIGNED ) + + + 24 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6895
SELECT CAST ( - 25 AS INTEGER ) + + + 24 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6896
SELECT MIN( CAST( + 50 AS SIGNED ) ) + + 44 * 33 AS col1
----
1502

skipif mysql # not compatible
query I rowsort label-6896
SELECT MIN ( CAST ( + 50 AS INTEGER ) ) + + 44 * 33 AS col1
----
1502

query II rowsort
SELECT ALL - 5, 41 AS col0
----
-5
41

query I rowsort
SELECT ALL 7 * 56
----
392

onlyif mysql # aggregate syntax: 
query II rowsort label-6899
SELECT 71 * + 15 + - - 92 + + 36 * 52 * + + 78 AS col0, + COUNT( * ) AS col2
----
147173
1

skipif mysql # not compatible
query II rowsort label-6899
SELECT 71 * + 15 + - - 92 + + 36 * 52 * + + 78 AS col0, + COUNT ( * ) AS col2
----
147173
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6900
SELECT ALL COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6900
SELECT ALL COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

query II rowsort
SELECT - 4 AS col2, NULLIF ( + - 45, + - 66 / 89 ) AS col1
----
-4
-45

query I rowsort
SELECT ALL 1 * + 49
----
49

query II rowsort
SELECT 12, + 37 * + 89 + + 48 AS col0
----
12
3341

query I rowsort
SELECT - COALESCE ( NULLIF ( + 25, - + 95 ), + 28 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT - 89 + + ( SUM( ALL 8 ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-6905
SELECT - 89 + + ( SUM ( ALL 8 ) ) AS col0
----
-81

query II rowsort
SELECT ALL 13, + 0 AS col1
----
13
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6907
SELECT - COALESCE ( 21, - MIN( ALL - CAST( + ( + 86 ) AS SIGNED ) ) )
----
-21

skipif mysql # not compatible
query I rowsort label-6907
SELECT - COALESCE ( 21, - MIN ( ALL - CAST ( + ( + 86 ) AS INTEGER ) ) )
----
-21

query I rowsort
SELECT + CASE - + 91 WHEN + 44 THEN 97 * - + 63 END * NULLIF ( + 85, - - 46 ) AS col2
----
NULL

query I rowsort
SELECT - 65 + 61 col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT - + MAX( ALL + + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6910
SELECT - + MAX ( ALL + + 0 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6911
SELECT DISTINCT + - 12 + - - 9 + - CAST( NULL AS SIGNED ) * - 51 + - - 90 + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT + - 12 + - - 9 + - CAST ( NULL AS INTEGER ) * - 51 + - - 90 + 80
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6912
SELECT + 16 col1, CASE - 73 WHEN - 73 * - 98 * - + COUNT( * ) THEN 93 WHEN + 1 THEN 69 + + 13 END
----
16
NULL

skipif mysql # not compatible
query II rowsort label-6912
SELECT + 16 col1, CASE - 73 WHEN - 73 * - 98 * - + COUNT ( * ) THEN 93 WHEN + 1 THEN 69 + + 13 END
----
16
NULL

query I rowsort
SELECT ALL + + 62 + + 92 * 98 + 2 AS col0
----
9080

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT ALL + COUNT( * ) + - - 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL + COUNT ( * ) + - - 51 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT DISTINCT + SUM( DISTINCT + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT + SUM ( DISTINCT + 23 ) AS col0
----
23

query II rowsort
SELECT - 17 AS col1, - 59 AS col1
----
-17
-59

query I rowsort
SELECT ALL - 28 + + - 47
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT SUM( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-6918
SELECT SUM ( 88 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6919
SELECT - - 47 * + + COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT - - 47 * + + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6920
SELECT - - COUNT( * ) col1, ( + + SUM( - 55 ) ) - + + SUM( ALL + + 38 ) - + 61 DIV + MAX( ALL + + 75 ) * - ( 76 ) AS col2, 72
----
1
-93
72

skipif mysql # not compatible
query III rowsort label-6920
SELECT - - COUNT ( * ) col1, ( + + SUM ( - 55 ) ) - + + SUM ( ALL + + 38 ) - + 61 / + MAX ( ALL + + 75 ) * - ( 76 ) AS col2, 72
----
1
-93
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6921
SELECT ALL - - 57 * CASE - COALESCE ( - + MIN( ALL + 87 ), 9 ) WHEN 12 THEN NULL ELSE + CASE COUNT( * ) WHEN - + 78 + + - 8 + - 30 + 36 + 52 + - 0 THEN - - CAST( NULL AS SIGNED ) ELSE + - 36 END - + 98 END AS col2, 17
----
-7638
17

skipif mysql # not compatible
query II rowsort label-6921
SELECT ALL - - 57 * CASE - COALESCE ( - + MIN ( ALL + 87 ), 9 ) WHEN 12 THEN NULL ELSE + CASE COUNT ( * ) WHEN - + 78 + + - 8 + - 30 + 36 + 52 + - 0 THEN - - CAST ( NULL AS INTEGER ) ELSE + - 36 END - + 98 END AS col2, 17
----
-7638
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6922
SELECT + 51 DIV + + 71 + + + 59 AS col1, 23 * - + CASE + + 83 WHEN + ( - 31 ) THEN - 76 END * + + COUNT( * ) * 87 * + 12 + 48 + + - 77 AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-6922
SELECT + 51 / + + 71 + + + 59 AS col1, 23 * - + CASE + + 83 WHEN + ( - 31 ) THEN - 76 END * + + COUNT ( * ) * 87 * + 12 + 48 + + - 77 AS col1
----
59
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6923
SELECT ALL + 5, CAST( NULL AS SIGNED ) * - 66 * + 13 * + COUNT( * ) * - 50 * CAST( NULL AS SIGNED ) * - CASE - 58 WHEN - 88 THEN NULL WHEN + 14 THEN - + 41 / - 9 * + CAST( 89 AS SIGNED ) / 12 + CAST( 44 AS SIGNED ) - + 88 + 19 + - 37 END AS col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-6923
SELECT ALL + 5, CAST ( NULL AS INTEGER ) * - 66 * + 13 * + COUNT ( * ) * - 50 * CAST ( NULL AS INTEGER ) * - CASE - 58 WHEN - 88 THEN NULL WHEN + 14 THEN - + 41 / - 9 * + CAST ( 89 AS INTEGER ) / 12 + CAST ( 44 AS INTEGER ) - + 88 + 19 + - 37 END AS col1
----
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6924
SELECT ALL + - 65 * - CAST( 93 AS SIGNED ) AS col2
----
6045

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL + - 65 * - CAST ( 93 AS INTEGER ) AS col2
----
6045

query II rowsort
SELECT DISTINCT + 69 AS col1, + 37 col0
----
69
37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6926
SELECT NULLIF ( - ( - 28 ), - CAST( + + 98 AS DECIMAL ) )
----
28

skipif mysql # not compatible
query I rowsort label-6926
SELECT NULLIF ( - ( - 28 ), - CAST ( + + 98 AS REAL ) )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT + CASE - COUNT( ALL + 61 ) WHEN 19 + - 91 THEN - 66 WHEN + 42 THEN NULL WHEN - 26 THEN 75 ELSE 94 END * + 95 - - 13
----
8943

skipif mysql # not compatible
query I rowsort label-6927
SELECT + CASE - COUNT ( ALL + 61 ) WHEN 19 + - 91 THEN - 66 WHEN + 42 THEN NULL WHEN - 26 THEN 75 ELSE 94 END * + 95 - - 13
----
8943

query I rowsort
SELECT ALL 67 * - + 64 * 47
----
-201536

query I rowsort
SELECT DISTINCT 2 * + 80
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT DISTINCT + SUM( - 17 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT + SUM ( - 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT ALL + MIN( - - ( + 46 ) ) * + ( - 7 ) * + + 23 * - 83 + ( + 15 ) + - - 12 * - 73
----
613837

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL + MIN ( - - ( + 46 ) ) * + ( - 7 ) * + + 23 * - 83 + ( + 15 ) + - - 12 * - 73
----
613837

query I rowsort
SELECT DISTINCT + 57 * 23
----
1311

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT ALL + COUNT( 67 )
----
1

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL + COUNT ( 67 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6934
SELECT MIN( DISTINCT - 5 ) AS col2, ( + + 91 )
----
-5
91

skipif mysql # not compatible
query II rowsort label-6934
SELECT MIN ( DISTINCT - 5 ) AS col2, ( + + 91 )
----
-5
91

onlyif mysql # DIV for integer division: 
query II rowsort label-6935
SELECT ALL 54 DIV 49, 85 * + 81 AS col1
----
1
6885

skipif mysql # not compatible
query II rowsort label-6935
SELECT ALL 54 / 49, 85 * + 81 AS col1
----
1
6885

query I rowsort
SELECT + 65 * 28 AS col1
----
1820

query I rowsort
SELECT + 77 - + 35 - - + 12 + + 5 * 48 - + - 36
----
330

query I rowsort
SELECT - 42 * - 74
----
3108

query I rowsort
SELECT DISTINCT NULLIF ( - 98, - 80 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT DISTINCT + 29 + + 39 - - COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT + 29 + + 39 - - COUNT ( * ) AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6941
SELECT + 52 + + - 6 + + COUNT( * ) DIV - + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6941
SELECT + 52 + + - 6 + + COUNT ( * ) / - + COUNT ( * )
----
45

query II rowsort
SELECT - 22 - 25 col2, + 18
----
-47
18

query I rowsort
SELECT + 65 + + + 70 + + 2 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT + - COUNT( * ) + + 26
----
25

skipif mysql # not compatible
query I rowsort label-6944
SELECT + - COUNT ( * ) + + 26
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT - - 91 + COUNT( * ) * 33 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-6945
SELECT - - 91 + COUNT ( * ) * 33 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT ALL + COUNT( DISTINCT + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL + COUNT ( DISTINCT + 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT ALL - - COUNT( * ) * ( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-6947
SELECT ALL - - COUNT ( * ) * ( 65 )
----
65

query I rowsort
SELECT ALL - 43 * - 20
----
860

onlyif mysql # aggregate syntax: 
query II rowsort label-6949
SELECT DISTINCT + NULLIF ( + - MAX( - ( + 90 ) ), - - 41 + - COUNT( * ) ) col1, 29
----
90
29

skipif mysql # not compatible
query II rowsort label-6949
SELECT DISTINCT + NULLIF ( + - MAX ( - ( + 90 ) ), - - 41 + - COUNT ( * ) ) col1, 29
----
90
29

query II rowsort
SELECT - ( + + 78 ) + 8, - 60 * 13 AS col1
----
-70
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT - MIN( ALL - NULLIF ( 77, - - 77 ) ) * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT - MIN ( ALL - NULLIF ( 77, - - 77 ) ) * - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( + 88 ) * 52
----
4576

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT + 89 * + COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT + 89 * + COUNT ( * ) AS col1
----
89

query I rowsort
SELECT ALL + 71 + - 56 AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6955
SELECT ALL - 16 DIV + 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL - 16 / + 21 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6956
SELECT 43, - MAX( + + 51 ) * 65 AS col1
----
43
-3315

skipif mysql # not compatible
query II rowsort label-6956
SELECT 43, - MAX ( + + 51 ) * 65 AS col1
----
43
-3315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6957
SELECT 95 - + COUNT( ALL - 5 ) + CAST( + 72 AS SIGNED )
----
166

skipif mysql # not compatible
query I rowsort label-6957
SELECT 95 - + COUNT ( ALL - 5 ) + CAST ( + 72 AS INTEGER )
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6958
SELECT + 97 col0, CAST( NULL AS SIGNED ) + 32 + COALESCE ( 75, + 47 ) AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-6958
SELECT + 97 col0, CAST ( NULL AS INTEGER ) + 32 + COALESCE ( 75, + 47 ) AS col1
----
97
NULL

query II rowsort
SELECT 5 - 5 * 81, 61 * - 20 AS col1
----
-400
-1220

query I rowsort
SELECT ALL - COALESCE ( + NULLIF ( + 30, 82 ), - 16 * + 83 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT DISTINCT - 26 + - COUNT( * ) + + 16 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT - 26 + - COUNT ( * ) + + 16 AS col1
----
-11

query I rowsort
SELECT + 92 * + 62 * - - 84 + - - 69 * + 20 AS col0
----
480516

query I rowsort
SELECT ALL 48 + 37 + - 29 * - 79
----
2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT 95 + CAST( NULL AS SIGNED ) * - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6964
SELECT 95 + CAST ( NULL AS INTEGER ) * - 60 AS col2
----
NULL

query I rowsort
SELECT ALL - 36 + - - 47 AS col2
----
11

query I rowsort
SELECT ALL - NULLIF ( + + 30, - - 14 * ( + 3 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT 45 * COUNT( DISTINCT 1 ) + - 62 * ( 93 ) AS col2
----
-5721

skipif mysql # not compatible
query I rowsort label-6967
SELECT 45 * COUNT ( DISTINCT 1 ) + - 62 * ( 93 ) AS col2
----
-5721

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6968
SELECT ALL - 9 + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL - 9 + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT DISTINCT 47 - + 56 DIV + 13
----
43

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT 47 - + 56 / + 13
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6970
SELECT 10 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT 10 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6971
SELECT MAX( DISTINCT - 28 ) + ( 77 + - 36 DIV - 9 )
----
53

skipif mysql # not compatible
query I rowsort label-6971
SELECT MAX ( DISTINCT - 28 ) + ( 77 + - 36 / - 9 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT ALL COUNT( * ) * ( + 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL COUNT ( * ) * ( + 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6973
SELECT COUNT( * ) DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-6973
SELECT COUNT ( * ) / 85
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6974
SELECT ALL 46 DIV - COALESCE ( 60, CAST( NULL AS SIGNED ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL 46 / - COALESCE ( 60, CAST ( NULL AS INTEGER ) ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6975
SELECT DISTINCT SUM( 69 ) DIV 15 col0
----
4

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT SUM ( 69 ) / 15 col0
----
4

query I rowsort
SELECT ALL 28 * - 25 AS col1
----
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6977
SELECT COALESCE ( 84, MAX( 15 ), 82 ) * CAST( 60 DIV 72 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6977
SELECT COALESCE ( 84, MAX ( 15 ), 82 ) * CAST ( 60 / 72 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL CASE + 35 WHEN - 74 THEN NULL WHEN + 28 THEN COUNT( * ) / - COALESCE ( 60, 90 ) END * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL CASE + 35 WHEN - 74 THEN NULL WHEN + 28 THEN COUNT ( * ) / - COALESCE ( 60, 90 ) END * 43 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 57 * + 73 AS col0
----
4161

query I rowsort
SELECT 29 - 15 * ( - 87 - 6 )
----
1424

query I rowsort
SELECT ALL 92 * + 92
----
8464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT 35 * - CAST( + ( + 91 ) AS SIGNED ) AS col1
----
-3185

skipif mysql # not compatible
query I rowsort label-6982
SELECT 35 * - CAST ( + ( + 91 ) AS INTEGER ) AS col1
----
-3185

query I rowsort
SELECT 89 * + 93 AS col2
----
8277

query I rowsort
SELECT ( - 23 ) - 85
----
-108

query I rowsort
SELECT DISTINCT 49 + + ( - 11 - - 35 * + 93 ) AS col0
----
3293

query I rowsort
SELECT ALL - 12 * 55
----
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6987
SELECT DISTINCT + COUNT( 51 ) + - 23 DIV 97 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT + COUNT ( 51 ) + - 23 / 97 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL 84 + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL 84 + - COUNT ( * ) AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6989
SELECT DISTINCT 43 DIV ( + 3 )
----
14

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT 43 / ( + 3 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6990
SELECT ALL + 39 + 82 DIV - COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL + 39 + 82 / - COUNT ( * ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT MAX( 6 ) * 63 + 59
----
437

skipif mysql # not compatible
query I rowsort label-6991
SELECT MAX ( 6 ) * 63 + 59
----
437

query I rowsort
SELECT ALL - 12 * - 47
----
564

onlyif mysql # DIV for integer division: 
query I rowsort label-6993
SELECT 40 DIV + ( 11 ) + 93 DIV 62
----
4

skipif mysql # not compatible
query I rowsort label-6993
SELECT 40 / + ( 11 ) + 93 / 62
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT + SUM( ALL 60 )
----
60

skipif mysql # not compatible
query I rowsort label-6994
SELECT + SUM ( ALL 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL + COUNT( * ) + - 93 col1
----
-92

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL + COUNT ( * ) + - 93 col1
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6996
SELECT 95 DIV - 75
----
-1

skipif mysql # not compatible
query I rowsort label-6996
SELECT 95 / - 75
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT DISTINCT - CASE 1 WHEN + 78 THEN 22 WHEN + 36 * - COUNT( * ) THEN - 93 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT - CASE 1 WHEN + 78 THEN 22 WHEN + 36 * - COUNT ( * ) THEN - 93 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL - 40 + - 64
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT ALL + 50 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL + 50 / 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT DISTINCT - COUNT( * ) - 76
----
-77

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT - COUNT ( * ) - 76
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7001
SELECT DISTINCT + 68 DIV - 4
----
-17

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT + 68 / - 4
----
-17

query I rowsort
SELECT + 7 + - 73
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL - + ( + NULLIF ( - 38, - COUNT( * ) + - NULLIF ( 0, - 8 * 8 ) / - 90 ) ) * + 32 AS col2
----
1216

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - + ( + NULLIF ( - 38, - COUNT ( * ) + - NULLIF ( 0, - 8 * 8 ) / - 90 ) ) * + 32 AS col2
----
1216

query I rowsort
SELECT 23 - 22 AS col0
----
1

query I rowsort
SELECT 67 * 49 col2
----
3283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7006
SELECT - COALESCE ( + COUNT( * ), COUNT( * ) - 50 * ( AVG ( 25 ) DIV 81 ), ( 44 ) * 86, - 55 * + 41 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7006
SELECT - COALESCE ( + COUNT ( * ), COUNT ( * ) - 50 * ( AVG ( 25 ) / 81 ), ( 44 ) * 86, - 55 * + 41 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL - COUNT( ALL 85 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL - COUNT ( ALL 85 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - ( + 57 ) AS col0
----
-57

query I rowsort
SELECT 46 * - 73
----
-3358

query I rowsort
SELECT NULLIF ( 37, 67 * 12 ) AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7011
SELECT DISTINCT - - COALESCE ( + 0, - 95 * 60, - 9 ) * + COALESCE ( - SUM( - 77 ) + - 49, + 98, CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT - - COALESCE ( + 0, - 95 * 60, - 9 ) * + COALESCE ( - SUM ( - 77 ) + - 49, + 98, CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - 97 * + 37 AS col1
----
-3589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7013
SELECT + 6 - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT + 6 - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 26 * 90 AS col2
----
2340

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT + 50 + - 50 DIV 34 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7015
SELECT + 50 + - 50 / 34 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ( - SUM( ALL 14 ) ) - 20
----
-34

skipif mysql # not compatible
query I rowsort label-7016
SELECT ( - SUM ( ALL 14 ) ) - 20
----
-34

query I rowsort
SELECT + 64 + ( + 84 )
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT ALL - + 4 + COUNT( * ) * - 39 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL - + 4 + COUNT ( * ) * - 39 AS col2
----
-43

query I rowsort
SELECT 64 + + 65 + - 23
----
106

query I rowsort
SELECT DISTINCT + 25 + 54 + 3
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT DISTINCT 50 + - 41 * COUNT( * ) col2
----
9

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT 50 + - 41 * COUNT ( * ) col2
----
9

query I rowsort
SELECT ALL 9 + + 3
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT DISTINCT 73 + - COUNT( * ) + + 9
----
81

skipif mysql # not compatible
query I rowsort label-7023
SELECT DISTINCT 73 + - COUNT ( * ) + + 9
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT + 79 + + + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-7024
SELECT + 79 + + + COUNT ( * ) AS col2
----
80

query I rowsort
SELECT ALL 85 + - 55 AS col1
----
30

query I rowsort
SELECT DISTINCT 43 * - CASE 52 WHEN + 45 THEN - 66 END AS col2
----
NULL

query I rowsort
SELECT ALL 2 * + 63 AS col1
----
126

query I rowsort
SELECT + 8 + + 58
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT 53 DIV - - 62 + ( + NULLIF ( + 28, - 97 ) )
----
28

skipif mysql # not compatible
query I rowsort label-7029
SELECT 53 / - - 62 + ( + NULLIF ( + 28, - 97 ) )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT ALL + 78 * - + 80 * COUNT( * ) + 97
----
-6143

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + 78 * - + 80 * COUNT ( * ) + 97
----
-6143

query I rowsort
SELECT ALL - 95 * - - 40 + + 41 AS col0
----
-3759

query I rowsort
SELECT COALESCE ( + 3, 58 + - 90, - 55 * 99 )
----
3

query I rowsort
SELECT DISTINCT 1 * - 67 * + 64
----
-4288

query I rowsort
SELECT + COALESCE ( - 83, + 70 ) * + 68 AS col2
----
-5644

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT - 59 * + + 0 * + 40 + - 99 * COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-7035
SELECT - 59 * + + 0 * + 40 + - 99 * COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT ALL 71 * 83 - + COUNT( * ) * + 76
----
5817

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL 71 * 83 - + COUNT ( * ) * + 76
----
5817

query I rowsort
SELECT ALL - 63 * - 19 * 52 - NULLIF ( 85 + - ( 24 ), - 20 + 99 ) AS col0
----
62183

query I rowsort
SELECT - 83 * + 74 * 31 AS col2
----
-190402

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT + CASE + - 51 WHEN 39 THEN 82 + 48 END * 74 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7039
SELECT + CASE + - 51 WHEN 39 THEN 82 + 48 END * 74 + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 0 - - 76
----
76

query I rowsort
SELECT ALL + CASE 23 WHEN 1 THEN - 97 END AS col2
----
NULL

query I rowsort
SELECT - 15 * + 26 + - 32 + - 66 col0
----
-488

query I rowsort
SELECT + 18 * ( - 80 ) * + 67
----
-96480

query I rowsort
SELECT ALL + 9 * - 8 AS col1
----
-72

query I rowsort
SELECT + NULLIF ( - 36, 76 ) + 75 * - 27
----
-2061

query I rowsort
SELECT DISTINCT + 81 * - + CASE 87 WHEN 91 THEN + 8 * 78 + - 54 WHEN + ( - 55 ) THEN NULL END + + 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 19 * 34 * + NULLIF ( - 69, + ( - 51 ) )
----
-44574

onlyif mysql # DIV for integer division: 
query I rowsort label-7048
SELECT - - ( + - 62 ) DIV 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7048
SELECT - - ( + - 62 ) / 74 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7049
SELECT ALL + - COALESCE ( - ( - 70 ), 50, - 59 ) DIV 6 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL + - COALESCE ( - ( - 70 ), 50, - 59 ) / 6 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT - + 93 * - COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-7050
SELECT - + 93 * - COUNT ( * )
----
93

query I rowsort
SELECT - 90 + + - 19
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT + CAST( NULL AS SIGNED ) + - 12 + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT + CAST ( NULL AS INTEGER ) + - 12 + 12
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7053
SELECT ALL - - COUNT( * ) + + 25 DIV + 11
----
3

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL - - COUNT ( * ) + + 25 / + 11
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT DISTINCT + CASE + 39 WHEN 71 THEN COALESCE ( 51, + 88 * CASE 53 WHEN COUNT( * ) * - 95 + 71 THEN 26 WHEN 99 + COUNT( * ) THEN 42 END ) - COUNT( * ) ELSE NULL END * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT + CASE + 39 WHEN 71 THEN COALESCE ( 51, + 88 * CASE 53 WHEN COUNT ( * ) * - 95 + 71 THEN 26 WHEN 99 + COUNT ( * ) THEN 42 END ) - COUNT ( * ) ELSE NULL END * 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL + 63 + + ( + ( + COUNT( * ) ) )
----
64

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL + 63 + + ( + ( + COUNT ( * ) ) )
----
64

query I rowsort
SELECT DISTINCT - 5 + ( 83 )
----
78

query I rowsort
SELECT ALL + 41 * 18 * - 14
----
-10332

query I rowsort
SELECT - + NULLIF ( 32, - 97 * AVG ( - 32 ) ) + - 3
----
-35

query I rowsort
SELECT ALL - 84 + 85 + - - 75 * - 80
----
-5999

query I rowsort
SELECT DISTINCT + 30 * - 2 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT - ( - + 54 ) * COUNT( * ) * 55 AS col1
----
2970

skipif mysql # not compatible
query I rowsort label-7061
SELECT - ( - + 54 ) * COUNT ( * ) * 55 AS col1
----
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL COUNT( DISTINCT - + ( 99 ) ) + 56
----
57

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL COUNT ( DISTINCT - + ( 99 ) ) + 56
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT - COUNT( ALL + 94 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7063
SELECT - COUNT ( ALL + 94 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL + 12 * MAX( + 37 ) * - 13
----
-5772

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL + 12 * MAX ( + 37 ) * - 13
----
-5772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7065
SELECT - COALESCE ( + 52, - + ( COALESCE ( + 34, + 62, 92 ) ), + COUNT( * ), - 93 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT - COALESCE ( + 52, - + ( COALESCE ( + 34, + 62, 92 ) ), + COUNT ( * ), - 93 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 67 - + 11 AS col1
----
-78

query I rowsort
SELECT + 90 + - 14
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT DISTINCT - COUNT( * ) + - COUNT( DISTINCT 43 ) * 5
----
-6

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT - COUNT ( * ) + - COUNT ( DISTINCT 43 ) * 5
----
-6

query II rowsort
SELECT ALL 83, - 65 AS col2
----
83
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT - SUM( ALL + 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-7070
SELECT - SUM ( ALL + 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT + 67 + - ( + + COUNT( * ) ) + 65 * + 77
----
5071

skipif mysql # not compatible
query I rowsort label-7071
SELECT + 67 + - ( + + COUNT ( * ) ) + 65 * + 77
----
5071

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT - ( NULLIF ( - 18, + COUNT( * ) + 17 ) )
----
18

skipif mysql # not compatible
query I rowsort label-7072
SELECT - ( NULLIF ( - 18, + COUNT ( * ) + 17 ) )
----
18

query I rowsort
SELECT ALL 31 + - 18
----
13

query I rowsort
SELECT DISTINCT ( - + ( - - 97 ) ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7075
SELECT DISTINCT 93 / + CAST( NULL AS SIGNED ) - 31 - + ( + COUNT( + 93 ) + COALESCE ( 13, 81 * - 34 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT 93 / + CAST ( NULL AS INTEGER ) - 31 - + ( + COUNT ( + 93 ) + COALESCE ( 13, 81 * - 34 ) ) col2
----
NULL

query I rowsort
SELECT ALL ( - 31 ) * - 93 * - 14
----
-40362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7077
SELECT ALL + 77 / + + ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL + 77 / + + ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7078
SELECT ALL 67 DIV - ( + ( - NULLIF ( - ( CAST( 53 AS SIGNED ) ), 76 - CASE 33 WHEN + 51 THEN - 3 END * - 25 ) ) ) - ( NULLIF ( + 62, 24 + - COUNT( * ) ) )
----
-63

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL 67 / - ( + ( - NULLIF ( - ( CAST ( 53 AS INTEGER ) ), 76 - CASE 33 WHEN + 51 THEN - 3 END * - 25 ) ) ) - ( NULLIF ( + 62, 24 + - COUNT ( * ) ) )
----
-63

query I rowsort
SELECT + 83 * + + 14 AS col2
----
1162

query I rowsort
SELECT ALL 89 * - - 44 AS col0
----
3916

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT 77 * - 95 * + ( - MIN( ALL 98 ) ) + - COALESCE ( ( 80 ), COUNT( DISTINCT + 88 ) ) AS col2
----
716790

skipif mysql # not compatible
query I rowsort label-7081
SELECT 77 * - 95 * + ( - MIN ( ALL 98 ) ) + - COALESCE ( ( 80 ), COUNT ( DISTINCT + 88 ) ) AS col2
----
716790

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT + 59 * - COUNT( * ) * - 71 * NULLIF ( 63, 43 )
----
263907

skipif mysql # not compatible
query I rowsort label-7082
SELECT + 59 * - COUNT ( * ) * - 71 * NULLIF ( 63, 43 )
----
263907

query I rowsort
SELECT + 77 + 89
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL CASE + 12 WHEN COUNT( * ) THEN - 78 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL CASE + 12 WHEN COUNT ( * ) THEN - 78 END * + COUNT ( * )
----
NULL

query I rowsort
SELECT + NULLIF ( - ( 76 ), 77 * + 52 + + 57 ) AS col1
----
-76

query I rowsort
SELECT + 16 * - 7 + - 86
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ALL - 69 * - + COALESCE ( - COUNT( * ), 33 ) + - 14
----
-83

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL - 69 * - + COALESCE ( - COUNT ( * ), 33 ) + - 14
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT ALL + + MIN( ALL - COALESCE ( - 27, 40 ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL + + MIN ( ALL - COALESCE ( - 27, 40 ) ) AS col0
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-7089
SELECT ALL + 96, 46 DIV 84 AS col1
----
96
0

skipif mysql # not compatible
query II rowsort label-7089
SELECT ALL + 96, 46 / 84 AS col1
----
96
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7090
SELECT + - 45 AS col2, 93 + + 94 + 26 * + COUNT( * ) AS col0
----
-45
213

skipif mysql # not compatible
query II rowsort label-7090
SELECT + - 45 AS col2, 93 + + 94 + 26 * + COUNT ( * ) AS col0
----
-45
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT ALL + 11 * - CAST( NULL AS SIGNED ) + - 98 + - 83 * 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL + 11 * - CAST ( NULL AS INTEGER ) + - 98 + - 83 * 19 AS col1
----
NULL

query I rowsort
SELECT + 5 + - 80 AS col2
----
-75

query I rowsort
SELECT + ( NULLIF ( - + 26, + 8 ) ) * 66 AS col1
----
-1716

query I rowsort
SELECT - 88 * - 19
----
1672

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT ALL + COUNT( * ) * 32 + + 81 * - 93 + ( 89 ) * + 48 AS col2
----
-3229

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL + COUNT ( * ) * 32 + + 81 * - 93 + ( 89 ) * + 48 AS col2
----
-3229

onlyif mysql # DIV for integer division: 
query II rowsort label-7096
SELECT DISTINCT + - 62 AS col1, + COALESCE ( - 69, 8 DIV - ( - 61 ) )
----
-62
-69

skipif mysql # not compatible
query II rowsort label-7096
SELECT DISTINCT + - 62 AS col1, + COALESCE ( - 69, 8 / - ( - 61 ) )
----
-62
-69

query I rowsort
SELECT + + 56 - - 31 * + 16 + NULLIF ( - 88, 85 ) AS col2
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT + ( - CASE - 58 WHEN ( 99 ) + 91 * 99 THEN NULL ELSE COUNT( * ) + + 37 * - 50 END )
----
1849

skipif mysql # not compatible
query I rowsort label-7098
SELECT + ( - CASE - 58 WHEN ( 99 ) + 91 * 99 THEN NULL ELSE COUNT ( * ) + + 37 * - 50 END )
----
1849

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT ALL - CAST( NULL AS SIGNED ) * + 87 + - 78 + + CAST( NULL AS SIGNED ) * + CASE 68 * 36 WHEN + 85 * 11 THEN 92 + - CAST( 11 AS SIGNED ) WHEN - 60 / - 30 THEN - 76 ELSE - 57 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - CAST ( NULL AS INTEGER ) * + 87 + - 78 + + CAST ( NULL AS INTEGER ) * + CASE 68 * 36 WHEN + 85 * 11 THEN 92 + - CAST ( 11 AS INTEGER ) WHEN - 60 / - 30 THEN - 76 ELSE - 57 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL + - 29 + - + MAX( - 71 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + - 29 + - + MAX ( - 71 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT ALL + COUNT( * ) + - 50
----
-49

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL + COUNT ( * ) + - 50
----
-49

query II rowsort
SELECT - 95 col2, - 64 * + 3 AS col0
----
-95
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7103
SELECT ALL - CASE + 13 WHEN 92 + - CAST( NULL AS SIGNED ) THEN - 9 WHEN - COALESCE ( - 11, + 24 ) THEN 93 ELSE NULL END + - 60 * CASE 97 WHEN 5 THEN 61 WHEN + 29 * - 70 THEN - 30 * - MAX( ALL ( 39 ) * 4 ) + 79 * 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL - CASE + 13 WHEN 92 + - CAST ( NULL AS INTEGER ) THEN - 9 WHEN - COALESCE ( - 11, + 24 ) THEN 93 ELSE NULL END + - 60 * CASE 97 WHEN 5 THEN 61 WHEN + 29 * - 70 THEN - 30 * - MAX ( ALL ( 39 ) * 4 ) + 79 * 71 END
----
NULL

query I rowsort
SELECT ( + 38 ) + - 24
----
14

query I rowsort
SELECT 99 - - - 11 * 35 * - 88 + - 77
----
33902

query I rowsort
SELECT 73 + 93 AS col1
----
166

query I rowsort
SELECT 89 * + 53 AS col2
----
4717

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ALL + COUNT( 91 ) * 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL + COUNT ( 91 ) * 95 AS col2
----
95

query I rowsort
SELECT DISTINCT + 8 - NULLIF ( 19, + 84 * 97 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT COUNT( * ) + - 19 + 17
----
-1

skipif mysql # not compatible
query I rowsort label-7110
SELECT COUNT ( * ) + - 19 + 17
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT ALL + COUNT( 72 ) - - 66 * 45 AS col0
----
2971

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL + COUNT ( 72 ) - - 66 * 45 AS col0
----
2971

query I rowsort
SELECT ALL + 81 * 76
----
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-7113
SELECT ALL COUNT( 85 ) - - + 57 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL COUNT ( 85 ) - - + 57 AS col2
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7114
SELECT 94 + COUNT( DISTINCT + + 18 ) DIV - 39 * NULLIF ( - 53, 47 ) + + ( 4 )
----
98

skipif mysql # not compatible
query I rowsort label-7114
SELECT 94 + COUNT ( DISTINCT + + 18 ) / - 39 * NULLIF ( - 53, 47 ) + + ( 4 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT - CASE - 30 WHEN + + 52 THEN - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT - CASE - 30 WHEN + + 52 THEN - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT 18 DIV + 50 + + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7116
SELECT 18 / + 50 + + 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7117
SELECT COUNT( * ) + - 75 AS col2, 7 * - SUM( + ( 51 ) )
----
-74
-357

skipif mysql # not compatible
query II rowsort label-7117
SELECT COUNT ( * ) + - 75 AS col2, 7 * - SUM ( + ( 51 ) )
----
-74
-357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7118
SELECT ALL + 92 DIV COUNT( * ) - + ( - 33 ) AS col1
----
125

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL + 92 / COUNT ( * ) - + ( - 33 ) AS col1
----
125

query I rowsort
SELECT 87 * 65 + + 0 + 30
----
5685

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7120
SELECT - 48 * - COUNT( * ) / COUNT( * ) * + 30 + + 59 * - COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7120
SELECT - 48 * - COUNT ( * ) / COUNT ( * ) * + 30 + + 59 * - COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL - + CASE - - 50 WHEN CASE - 80 WHEN 34 * + 93 - - 35 * - COALESCE ( + 7 * 24 + 32, + ( + 92 ), + 7 ) THEN 87 / 42 WHEN 49 + - 67 THEN NULL END THEN NULL WHEN 7 * COALESCE ( + 96, ( 70 ) - 48 * 26, ( + AVG ( ALL 1 ) ), 61 - 16 ) THEN NULL WHEN CASE - 75 WHEN 33 * 93 THEN 9 / + 22 WHEN 1 THEN + COUNT( * ) END THEN 44 / COUNT( 11 ) + + AVG ( 74 + 99 * + ( + 30 ) ) END / - ( 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL - + CASE - - 50 WHEN CASE - 80 WHEN 34 * + 93 - - 35 * - COALESCE ( + 7 * 24 + 32, + ( + 92 ), + 7 ) THEN 87 / 42 WHEN 49 + - 67 THEN NULL END THEN NULL WHEN 7 * COALESCE ( + 96, ( 70 ) - 48 * 26, ( + AVG ( ALL 1 ) ), 61 - 16 ) THEN NULL WHEN CASE - 75 WHEN 33 * 93 THEN 9 / + 22 WHEN 1 THEN + COUNT ( * ) END THEN 44 / COUNT ( 11 ) + + AVG ( 74 + 99 * + ( + 30 ) ) END / - ( 76 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT - 36 DIV + 63 * - 76
----
0

skipif mysql # not compatible
query I rowsort label-7122
SELECT - 36 / + 63 * - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT ALL - 32 + - COUNT( * ) * + - 92
----
60

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL - 32 + - COUNT ( * ) * + - 92
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT NULLIF ( + 59, + 4 ) DIV 82 - + ( + 55 + + 67 ) * + 86
----
-10492

skipif mysql # not compatible
query I rowsort label-7124
SELECT NULLIF ( + 59, + 4 ) / 82 - + ( + 55 + + 67 ) * + 86
----
-10492

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL COUNT( * ) + MIN( ALL + + 59 ) - - 71 + COUNT( * ) * + 0 * MAX( - 1 ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL COUNT ( * ) + MIN ( ALL + + 59 ) - - 71 + COUNT ( * ) * + 0 * MAX ( - 1 ) AS col0
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7126
SELECT - CASE + COUNT( * ) WHEN + 71 * 92 THEN 74 END * - COUNT( * ) + CAST( 55 - - 41 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7126
SELECT - CASE + COUNT ( * ) WHEN + 71 * 92 THEN 74 END * - COUNT ( * ) + CAST ( 55 - - 41 AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT + 3 DIV + 98 + + NULLIF ( + 56, 90 )
----
56

skipif mysql # not compatible
query I rowsort label-7127
SELECT + 3 / + 98 + + NULLIF ( + 56, 90 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7128
SELECT ( CAST( + - AVG ( 18 ) AS SIGNED ) ) * + 27 + 38
----
-448

skipif mysql # not compatible
query I rowsort label-7128
SELECT ( CAST ( + - AVG ( 18 ) AS INTEGER ) ) * + 27 + 38
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL + 65 + + - SUM( DISTINCT ( 97 ) ) + - 22 * + 86 * COUNT( * )
----
-1924

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + 65 + + - SUM ( DISTINCT ( 97 ) ) + - 22 * + 86 * COUNT ( * )
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT COUNT( ALL - - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-7130
SELECT COUNT ( ALL - - 71 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7131
SELECT + CAST( - ( + COUNT( 38 ) ) AS SIGNED ) * - 97 + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-7131
SELECT + CAST ( - ( + COUNT ( 38 ) ) AS INTEGER ) * - 97 + COUNT ( * )
----
98

query I rowsort
SELECT + 25 + - 53 * - 63
----
3364

query I rowsort
SELECT 70 + - - 18
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT 36 * + 9 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT 36 * + 9 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7135
SELECT - COUNT( * ) DIV + 36 * - - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT - COUNT ( * ) / + 36 * - - 54 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT COUNT( * ) + - + 26 * + 78 AS col1
----
-2027

skipif mysql # not compatible
query I rowsort label-7136
SELECT COUNT ( * ) + - + 26 * + 78 AS col1
----
-2027

query I rowsort
SELECT ALL 79 * + - 24 * + + 77
----
-145992

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT 8 + - COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-7138
SELECT 8 + - COUNT ( * ) AS col1
----
7

query I rowsort
SELECT DISTINCT 14 * - 7
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT 18 + + + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7140
SELECT 18 + + + COUNT ( * )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT 89 * - CAST( + 28 AS SIGNED )
----
-2492

skipif mysql # not compatible
query I rowsort label-7141
SELECT 89 * - CAST ( + 28 AS INTEGER )
----
-2492

query I rowsort
SELECT DISTINCT 61 * - + 69
----
-4209

query I rowsort
SELECT DISTINCT 78 * + 50 AS col0
----
3900

query II rowsort
SELECT - 35, + 29 AS col1
----
-35
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7145
SELECT ALL - 22 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - 22 / + 79
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7146
SELECT 24 * - - COUNT( ALL 43 ), - 48 AS col0
----
24
-48

skipif mysql # not compatible
query II rowsort label-7146
SELECT 24 * - - COUNT ( ALL 43 ), - 48 AS col0
----
24
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7147
SELECT 84 col1, + MAX( + 72 ) + ( + 57 )
----
84
129

skipif mysql # not compatible
query II rowsort label-7147
SELECT 84 col1, + MAX ( + 72 ) + ( + 57 )
----
84
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7148
SELECT ALL - COALESCE ( + 27, 87 + + + COUNT( * ) ) DIV + ( 18 ) + - 5 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL - COALESCE ( + 27, 87 + + + COUNT ( * ) ) / + ( 18 ) + - 5 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7149
SELECT 39 + - 95 - - CAST( NULL AS SIGNED ) / MAX( DISTINCT - - 10 ) + CASE + 5 WHEN COUNT( * ) THEN 99 + 11 ELSE - COUNT( * ) END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT 39 + - 95 - - CAST ( NULL AS INTEGER ) / MAX ( DISTINCT - - 10 ) + CASE + 5 WHEN COUNT ( * ) THEN 99 + 11 ELSE - COUNT ( * ) END * 77
----
NULL

query I rowsort
SELECT 13 * 33 * + COALESCE ( 35, - 83 * 79 ) * 91 AS col2
----
1366365

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL COUNT( - 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL COUNT ( - 78 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT 96 * SUM( ALL + 45 ) * + 63 * + 99 - + 17
----
26943823

skipif mysql # not compatible
query I rowsort label-7152
SELECT 96 * SUM ( ALL + 45 ) * + 63 * + 99 - + 17
----
26943823

onlyif mysql # aggregate syntax: 
query II rowsort label-7153
SELECT DISTINCT - SUM( + ( + 2 ) ) AS col0, COALESCE ( + - 95, 86, 30, + 8 + 30 ) AS col0
----
-2
-95

skipif mysql # not compatible
query II rowsort label-7153
SELECT DISTINCT - SUM ( + ( + 2 ) ) AS col0, COALESCE ( + - 95, 86, 30, + 8 + 30 ) AS col0
----
-2
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7154
SELECT DISTINCT - COUNT( * ) * + 52 + 19 + - 11 + CAST( + 95 AS SIGNED ) * - 15
----
-1469

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT - COUNT ( * ) * + 52 + 19 + - 11 + CAST ( + 95 AS INTEGER ) * - 15
----
-1469

query I rowsort
SELECT ALL - + 87 * + 86 + 22 * + 96 AS col0
----
-5370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT + 73 * - CAST( CASE + 34 WHEN - ( AVG ( ( - ( 80 ) ) ) ) THEN NULL ELSE - 76 END AS SIGNED ) + - COUNT( ALL + 16 + 67 ) AS col0
----
5547

skipif mysql # not compatible
query I rowsort label-7156
SELECT + 73 * - CAST ( CASE + 34 WHEN - ( AVG ( ( - ( 80 ) ) ) ) THEN NULL ELSE - 76 END AS INTEGER ) + - COUNT ( ALL + 16 + 67 ) AS col0
----
5547

query I rowsort
SELECT + 57 + + 18
----
75

query I rowsort
SELECT ALL 24 * + 86 + - 77 * + 58 AS col0
----
-2402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7159
SELECT DISTINCT CASE WHEN ( NULL ) BETWEEN + 19 AND 16 + 64 THEN 82 / + MAX( + 12 ) ELSE NULL END * + CAST( NULL AS SIGNED ) + - ( 20 + ( 54 ) / 97 ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT CASE WHEN ( NULL ) BETWEEN + 19 AND 16 + 64 THEN 82 / + MAX ( + 12 ) ELSE NULL END * + CAST ( NULL AS INTEGER ) + - ( 20 + ( 54 ) / 97 ) * 75
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + + 1, 78 * - - 11 + - 89 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7161
SELECT ALL + 30 * - 76 + CASE + NULLIF ( 52, 9 ) WHEN CAST( NULL AS DECIMAL ) THEN - NULLIF ( - MAX( - 52 ), COUNT( * ) - NULLIF ( ( - MIN( DISTINCT 20 ) ), 0 + + MAX( + COALESCE ( + 32, - 28 * - 95, - 9 * + 61 ) ) ) ) ELSE CASE + 37 WHEN COUNT( * ) - 8 THEN COUNT( - 91 ) ELSE ( 21 ) * 68 + 66 END * CAST( 29 + - 79 AS SIGNED ) END + COALESCE ( + COUNT( * ), + 45, 81 )
----
-76979

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL + 30 * - 76 + CASE + NULLIF ( 52, 9 ) WHEN CAST ( NULL AS REAL ) THEN - NULLIF ( - MAX ( - 52 ), COUNT ( * ) - NULLIF ( ( - MIN ( DISTINCT 20 ) ), 0 + + MAX ( + COALESCE ( + 32, - 28 * - 95, - 9 * + 61 ) ) ) ) ELSE CASE + 37 WHEN COUNT ( * ) - 8 THEN COUNT ( - 91 ) ELSE ( 21 ) * 68 + 66 END * CAST ( 29 + - 79 AS INTEGER ) END + COALESCE ( + COUNT ( * ), + 45, 81 )
----
-76979

query I rowsort
SELECT ALL 81 * + - 11 + + - 2 + - 16 * - 77
----
339

query I rowsort
SELECT DISTINCT + + 82 - + 11 col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT + + COALESCE ( - 47, + - 52 + - COUNT( * ) + - 51 * + 60, 67 * + 48 ) * 66 AS col2
----
-3102

skipif mysql # not compatible
query I rowsort label-7164
SELECT + + COALESCE ( - 47, + - 52 + - COUNT ( * ) + - 51 * + 60, 67 * + 48 ) * 66 AS col2
----
-3102

onlyif mysql # DIV for integer division: 
query I rowsort label-7165
SELECT + - 99 DIV 84
----
-1

skipif mysql # not compatible
query I rowsort label-7165
SELECT + - 99 / 84
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7166
SELECT ALL 42 * - COALESCE ( + + CAST( 38 AS SIGNED ), + COUNT( * ) + + 41 * + 20 )
----
-1596

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL 42 * - COALESCE ( + + CAST ( 38 AS INTEGER ), + COUNT ( * ) + + 41 * + 20 )
----
-1596

query I rowsort
SELECT - - 29 + - 95
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT - 62 * - MIN( ALL + 3 ) AS col2
----
186

skipif mysql # not compatible
query I rowsort label-7168
SELECT - 62 * - MIN ( ALL + 3 ) AS col2
----
186

query II rowsort
SELECT - 66 AS col2, 22
----
-66
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT + ( - 95 ) - 12 + + COUNT( * ) * + 1
----
-106

skipif mysql # not compatible
query I rowsort label-7170
SELECT + ( - 95 ) - 12 + + COUNT ( * ) * + 1
----
-106

query I rowsort
SELECT ALL CASE - 4 WHEN + 10 THEN + 37 WHEN 25 * + COALESCE ( - 20, - 58 * + 68 ) + + 97 - 11 * 35 THEN 67 + 71 ELSE + 7 * 91 END AS col1
----
637

onlyif mysql # DIV for integer division: 
query II rowsort label-7172
SELECT ALL 23 AS col0, - 21 DIV + 15 + - + 16 + - - 51
----
23
34

skipif mysql # not compatible
query II rowsort label-7172
SELECT ALL 23 AS col0, - 21 / + 15 + - + 16 + - - 51
----
23
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7173
SELECT 26 * 79 * + + CASE 33 WHEN + NULLIF ( - 18, + 47 / + COUNT( * ) ) + 61 THEN NULL WHEN + CAST( - 78 AS DECIMAL ) + 68 THEN ( - 17 ) ELSE - CAST( NULL AS SIGNED ) / + 37 END * COUNT( * ) - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT 26 * 79 * + + CASE 33 WHEN + NULLIF ( - 18, + 47 / + COUNT ( * ) ) + 61 THEN NULL WHEN + CAST ( - 78 AS REAL ) + 68 THEN ( - 17 ) ELSE - CAST ( NULL AS INTEGER ) / + 37 END * COUNT ( * ) - 29 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7174
SELECT ALL 80 AS col1, + CAST( NULL AS SIGNED ) / - - ( SUM( ALL + COALESCE ( + 92, + ( - ( + 31 ) ), 83 ) ) )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-7174
SELECT ALL 80 AS col1, + CAST ( NULL AS INTEGER ) / - - ( SUM ( ALL + COALESCE ( + 92, + ( - ( + 31 ) ), 83 ) ) )
----
80
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7175
SELECT 75 AS col1, 6 + - - COUNT( + - 47 )
----
75
7

skipif mysql # not compatible
query II rowsort label-7175
SELECT 75 AS col1, 6 + - - COUNT ( + - 47 )
----
75
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7176
SELECT ALL 82 AS col2, - 97 + COUNT( * )
----
82
-96

skipif mysql # not compatible
query II rowsort label-7176
SELECT ALL 82 AS col2, - 97 + COUNT ( * )
----
82
-96

query II rowsort
SELECT ALL 34 AS col1, - 25 + 46 AS col2
----
34
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT + 84 * + + CAST( NULL AS SIGNED ) / + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT + 84 * + + CAST ( NULL AS INTEGER ) / + - 26
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7179
SELECT ALL 91 col2, COUNT( * ) + - 72 + + 16 AS col2
----
91
-55

skipif mysql # not compatible
query II rowsort label-7179
SELECT ALL 91 col2, COUNT ( * ) + - 72 + + 16 AS col2
----
91
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT DISTINCT COUNT( * ) * COUNT( + + 15 ) * + 15 - + + 33 * - 22
----
741

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT COUNT ( * ) * COUNT ( + + 15 ) * + 15 - + + 33 * - 22
----
741

query I rowsort
SELECT + 31 + + 90 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT + 36 - + SUM( ALL + 77 ) + + 32 * - 63 AS col1
----
-2057

skipif mysql # not compatible
query I rowsort label-7182
SELECT + 36 - + SUM ( ALL + 77 ) + + 32 * - 63 AS col1
----
-2057

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - 54 * - + COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7183
SELECT - 54 * - + COUNT ( * ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query III rowsort label-7184
SELECT ALL 0 AS col0, + COUNT( * ) + 97 * - 96 AS col0, + - 31 AS col2
----
0
-9311
-31

skipif mysql # not compatible
query III rowsort label-7184
SELECT ALL 0 AS col0, + COUNT ( * ) + 97 * - 96 AS col0, + - 31 AS col2
----
0
-9311
-31

query I rowsort
SELECT - NULLIF ( + 77, + 93 )
----
-77

query II rowsort
SELECT ALL 2 AS col1, 25 * + + 43 AS col1
----
2
1075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7187
SELECT - NULLIF ( - - 27, 93 + - COUNT( * ) * - - CAST( + COUNT( * ) AS SIGNED ) )
----
-27

skipif mysql # not compatible
query I rowsort label-7187
SELECT - NULLIF ( - - 27, 93 + - COUNT ( * ) * - - CAST ( + COUNT ( * ) AS INTEGER ) )
----
-27

query I rowsort
SELECT + 0 + + 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT ALL COUNT( * ) * COUNT( * ) * + - 48 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL COUNT ( * ) * COUNT ( * ) * + - 48 AS col2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7190
SELECT DISTINCT 8 AS col0, - 8 DIV + - COUNT( * ) AS col2
----
8
8

skipif mysql # not compatible
query II rowsort label-7190
SELECT DISTINCT 8 AS col0, - 8 / + - COUNT ( * ) AS col2
----
8
8

query I rowsort
SELECT ALL NULLIF ( + - 35, + + ( + 81 ) ) + - CASE 66 WHEN + 82 THEN 90 ELSE - ( 29 ) END AS col0
----
-6

query I rowsort
SELECT ALL NULLIF ( - 46, - - 31 )
----
-46

query II rowsort
SELECT 99, - 62 col2
----
99
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT - 27 DIV 3
----
-9

skipif mysql # not compatible
query I rowsort label-7194
SELECT - 27 / 3
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT + MAX( DISTINCT - 80 ) + + 31 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7195
SELECT + MAX ( DISTINCT - 80 ) + + 31 AS col2
----
-49

query I rowsort
SELECT - + 71 + - ( 95 )
----
-166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7197
SELECT DISTINCT + - MIN( ALL 84 ) DIV + 2 + - 34 * + + 37 AS col2
----
-1300

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT + - MIN ( ALL 84 ) / + 2 + - 34 * + + 37 AS col2
----
-1300

query II rowsort
SELECT ALL + 20 AS col0, - 59 + - 57 + + 95
----
20
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7199
SELECT DISTINCT - 97 * + - CASE 57 WHEN - COUNT( * ) THEN NULL WHEN - - 46 * - - 78 + - NULLIF ( CAST( NULL AS SIGNED ), 23 * SUM( ALL 24 ) ) THEN - 64 + - 75 WHEN 49 - + 86 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT - 97 * + - CASE 57 WHEN - COUNT ( * ) THEN NULL WHEN - - 46 * - - 78 + - NULLIF ( CAST ( NULL AS INTEGER ), 23 * SUM ( ALL 24 ) ) THEN - 64 + - 75 WHEN 49 - + 86 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 92 * - 77 - + - 99 AS col0
----
-6985

query II rowsort
SELECT - 2 AS col0, + 42 col0
----
-2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT + MIN( - 50 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT + MIN ( - 50 ) AS col1
----
-50

query II rowsort
SELECT ALL + - 54 AS col0, CASE - 94 WHEN - 42 THEN - + 12 / 69 WHEN 91 THEN NULL END
----
-54
NULL

query I rowsort
SELECT - + 67 + - 6 col0
----
-73

query I rowsort
SELECT - ( 36 ) + 89
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT DISTINCT + NULLIF ( + + 56, - 59 + CAST( + CASE - + 54 WHEN 19 THEN NULL ELSE ( CASE 72 WHEN + 1 + 26 * - COUNT( * ) THEN NULL WHEN 94 * 88 THEN 60 END ) / NULLIF ( + 90 * + 90, - 93 * - MAX( 29 ) + AVG ( ALL + 2 ) ) END AS SIGNED ) * SUM( + 71 ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT + NULLIF ( + + 56, - 59 + CAST ( + CASE - + 54 WHEN 19 THEN NULL ELSE ( CASE 72 WHEN + 1 + 26 * - COUNT ( * ) THEN NULL WHEN 94 * 88 THEN 60 END ) / NULLIF ( + 90 * + 90, - 93 * - MAX ( 29 ) + AVG ( ALL + 2 ) ) END AS INTEGER ) * SUM ( + 71 ) ) AS col1
----
56

query I rowsort
SELECT DISTINCT ( - + 46 ) * + - 79
----
3634

query I rowsort
SELECT - 67 * + 46 col1
----
-3082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7209
SELECT ALL + COUNT( * ) DIV - - 88, CASE - 12 WHEN + 41 THEN NULL WHEN + - 18 THEN + COUNT( * ) ELSE - CASE 32 WHEN - COALESCE ( CAST( - 48 AS SIGNED ), + 38 + - 62 ) * CAST( 4 + - 50 AS SIGNED ) THEN 31 + 66 END END * + 67 col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7209
SELECT ALL + COUNT ( * ) / - - 88, CASE - 12 WHEN + 41 THEN NULL WHEN + - 18 THEN + COUNT ( * ) ELSE - CASE 32 WHEN - COALESCE ( CAST ( - 48 AS INTEGER ), + 38 + - 62 ) * CAST ( 4 + - 50 AS INTEGER ) THEN 31 + 66 END END * + 67 col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7210
SELECT SUM( - + 19 ) AS col1, + 99 AS col2
----
-19
99

skipif mysql # not compatible
query II rowsort label-7210
SELECT SUM ( - + 19 ) AS col1, + 99 AS col2
----
-19
99

query I rowsort
SELECT + 60 + + 66 + + 58
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT DISTINCT + 4 * - CAST( 52 AS SIGNED ) * 72
----
-14976

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT + 4 * - CAST ( 52 AS INTEGER ) * 72
----
-14976

query I rowsort
SELECT - 31 * - - 16 AS col1
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT + COUNT( * ) + - + NULLIF ( - NULLIF ( - - COALESCE ( 64, - 84 ), 28 ), 82 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7214
SELECT + COUNT ( * ) + - + NULLIF ( - NULLIF ( - - COALESCE ( 64, - 84 ), 28 ), 82 ) AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7215
SELECT DISTINCT + COUNT( * ) + CAST( - 5 AS SIGNED ) * + 59
----
-294

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT + COUNT ( * ) + CAST ( - 5 AS INTEGER ) * + 59
----
-294

query II rowsort
SELECT ALL - 59 * + + 48 AS col0, - 51 * - 80 + + 12 AS col0
----
-2832
4092

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT DISTINCT + NULLIF ( + 60, MAX( - 15 ) ) + - 57 + COALESCE ( + 68, 12, 80 * - 85 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT + NULLIF ( + 60, MAX ( - 15 ) ) + - 57 + COALESCE ( + 68, 12, 80 * - 85 ) AS col2
----
71

query I rowsort
SELECT DISTINCT 71 + + 52
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-7219
SELECT ALL + ( + 86 ) + 15 DIV 29 * - 72
----
86

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL + ( + 86 ) + 15 / 29 * - 72
----
86

query II rowsort
SELECT DISTINCT 6 + 12 col1, 72 * + + 5
----
18
360

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT - COUNT( DISTINCT - 28 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7221
SELECT - COUNT ( DISTINCT - 28 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT + + 84 + - SUM( ALL 38 ) + - COUNT( * ) * ( 39 )
----
7

skipif mysql # not compatible
query I rowsort label-7222
SELECT + + 84 + - SUM ( ALL 38 ) + - COUNT ( * ) * ( 39 )
----
7

query I rowsort
SELECT ALL - COALESCE ( 97, - + 19 ) * - + 91
----
8827

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-7224
SELECT ALL - + ( + - CAST( NULL AS DECIMAL ) ) AS col2, + ( + + 81 ) DIV + - 20 AS col1
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-7224
SELECT ALL - + ( + - CAST ( NULL AS REAL ) ) AS col2, + ( + + 81 ) / + - 20 AS col1
----
NULL
-4

query I rowsort
SELECT ALL - ( + 83 ) - - - ( + 79 ) AS col2
----
-162

query I rowsort
SELECT + 19 * - 89 * 42
----
-71022

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT DISTINCT - COALESCE ( - 47, - - 35, 98 + - ( + 84 ) * - - 55, NULLIF ( 43, - 11 + 70 * 61 ) * 42 + COUNT( * ) )
----
47

skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT - COALESCE ( - 47, - - 35, 98 + - ( + 84 ) * - - 55, NULLIF ( 43, - 11 + 70 * 61 ) * 42 + COUNT ( * ) )
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7228
SELECT ALL 15 DIV + + 6 + + + 56 - 30 * + 83 AS col2
----
-2432

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL 15 / + + 6 + + + 56 - 30 * + 83 AS col2
----
-2432

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7229
SELECT ALL + 76 DIV + - 94 AS col2, 0 * + 43 * + COUNT( * ) - + + ( + 31 ) AS col0
----
0
-31

skipif mysql # not compatible
query II rowsort label-7229
SELECT ALL + 76 / + - 94 AS col2, 0 * + 43 * + COUNT ( * ) - + + ( + 31 ) AS col0
----
0
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT + ( + 11 ) * NULLIF ( - 66, - 80 * 85 * - + 50 * - 34 + COUNT( * ) ) * - 98 - 9
----
71139

skipif mysql # not compatible
query I rowsort label-7230
SELECT + ( + 11 ) * NULLIF ( - 66, - 80 * 85 * - + 50 * - 34 + COUNT ( * ) ) * - 98 - 9
----
71139

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT ALL - + COUNT( DISTINCT 82 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL - + COUNT ( DISTINCT 82 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7232
SELECT - CASE 82 WHEN 16 * + 35 * - - 24 + 3 THEN - + 71 + COUNT( * ) * COUNT( * ) WHEN - 42 * - 92 THEN + CAST( NULL AS SIGNED ) * 90 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT - CASE 82 WHEN 16 * + 35 * - - 24 + 3 THEN - + 71 + COUNT ( * ) * COUNT ( * ) WHEN - 42 * - 92 THEN + CAST ( NULL AS INTEGER ) * 90 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT ALL + ( - 94 ) * - - COUNT( * ) + - 56 * + - 39 AS col2
----
2090

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL + ( - 94 ) * - - COUNT ( * ) + - 56 * + - 39 AS col2
----
2090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7234
SELECT ( + + 50 ) * + + CAST( NULL AS SIGNED ) - 36 - + 34 + + COUNT( * ) + - 98 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7234
SELECT ( + + 50 ) * + + CAST ( NULL AS INTEGER ) - 36 - + 34 + + COUNT ( * ) + - 98 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 27 * + 48
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT ALL + COUNT( * ) * 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL + COUNT ( * ) * 95 AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT CAST( - 99 AS SIGNED ) + 4 + + 15 * + 52 + - 36 + - 30
----
619

skipif mysql # not compatible
query I rowsort label-7237
SELECT CAST ( - 99 AS INTEGER ) + 4 + + 15 * + 52 + - 36 + - 30
----
619

query II rowsort
SELECT 0 AS col2, 69 + + 30 AS col1
----
0
99

query I rowsort
SELECT 7 + 67
----
74

onlyif mysql # DIV for integer division: 
query II rowsort label-7240
SELECT 17 DIV 70 * - 20 DIV 65, - 48 * - 23 AS col2
----
0
1104

skipif mysql # not compatible
query II rowsort label-7240
SELECT 17 / 70 * - 20 / 65, - 48 * - 23 AS col2
----
0
1104

query I rowsort
SELECT ALL + 0 + + 15 * + + CASE - 84 WHEN 65 + + 54 + 10 * + - 95 * 34 / 23 THEN - 2 * 49 END * + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT - 78 * - + COUNT( + 35 ) - + 32 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-7242
SELECT - 78 * - + COUNT ( + 35 ) - + 32 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT DISTINCT + COUNT( * ) + - - 95 - - + MIN( ALL - 45 )
----
51

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT + COUNT ( * ) + - - 95 - - + MIN ( ALL - 45 )
----
51

query I rowsort
SELECT ALL + 73 * + 22 col2
----
1606

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT COUNT( * ) + - + MAX( + + 61 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7245
SELECT COUNT ( * ) + - + MAX ( + + 61 ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT 23 + COALESCE ( + 63, - 44, COUNT( ALL + NULLIF ( 93, + - 90 ) ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-7246
SELECT 23 + COALESCE ( + 63, - 44, COUNT ( ALL + NULLIF ( 93, + - 90 ) ) ) AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7247
SELECT - 57, 5 DIV + 94 * + NULLIF ( 47, - CASE - 84 WHEN SUM( ALL 9 ) * 33 THEN 75 * - COUNT( * ) + 21 WHEN + 41 THEN 45 ELSE - 71 END DIV 49 + + 55 DIV - 42 ) col0
----
-57
0

skipif mysql # not compatible
query II rowsort label-7247
SELECT - 57, 5 / + 94 * + NULLIF ( 47, - CASE - 84 WHEN SUM ( ALL 9 ) * 33 THEN 75 * - COUNT ( * ) + 21 WHEN + 41 THEN 45 ELSE - 71 END / 49 + + 55 / - 42 ) col0
----
-57
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT 32 + COUNT( * ) col2
----
33

skipif mysql # not compatible
query I rowsort label-7248
SELECT 32 + COUNT ( * ) col2
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-7249
SELECT 68 - ( - 68 ) AS col0, 61 DIV - 67 AS col1
----
136
0

skipif mysql # not compatible
query II rowsort label-7249
SELECT 68 - ( - 68 ) AS col0, 61 / - 67 AS col1
----
136
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT DISTINCT - - ( - + CASE COUNT( * ) WHEN - 66 THEN NULL WHEN + 36 * - 28 * - + 87 + + MIN( + 26 ) - 1 / - 12 * - 10 THEN + 73 + + 45 END ) + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT - - ( - + CASE COUNT ( * ) WHEN - 66 THEN NULL WHEN + 36 * - 28 * - + 87 + + MIN ( + 26 ) - 1 / - 12 * - 10 THEN + 73 + + 45 END ) + 71 AS col1
----
NULL

query I rowsort
SELECT ALL + - 30 + - - 44
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT COALESCE ( 21, 85, + - CAST( NULL AS SIGNED ) ) + + 9
----
30

skipif mysql # not compatible
query I rowsort label-7252
SELECT COALESCE ( 21, 85, + - CAST ( NULL AS INTEGER ) ) + + 9
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT DISTINCT + + SUM( ALL NULLIF ( 69, + 31 * + + 95 ) ) * - 23 + + - 40
----
-1627

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT + + SUM ( ALL NULLIF ( 69, + 31 * + + 95 ) ) * - 23 + + - 40
----
-1627

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT DISTINCT - COUNT( * ) - + 15 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-7254
SELECT DISTINCT - COUNT ( * ) - + 15 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7255
SELECT + 42 + + CAST( NULL AS SIGNED ) + 19 AS col0, + 55 col2, + 4 DIV 13 - 16 + - 61 * - COUNT( * ) col1
----
NULL
55
45

skipif mysql # not compatible
query III rowsort label-7255
SELECT + 42 + + CAST ( NULL AS INTEGER ) + 19 AS col0, + 55 col2, + 4 / 13 - 16 + - 61 * - COUNT ( * ) col1
----
NULL
55
45

query I rowsort
SELECT 39 * + 2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT MIN( ALL + 87 ) + - 68 + - MIN( DISTINCT 92 ) + 1 + - CASE 9 WHEN 25 * + COUNT( 89 / 72 ) THEN + 57 * + 61 END + + 49 * + ( 36 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT MIN ( ALL + 87 ) + - 68 + - MIN ( DISTINCT 92 ) + 1 + - CASE 9 WHEN 25 * + COUNT ( 89 / 72 ) THEN + 57 * + 61 END + + 49 * + ( 36 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7258
SELECT - 59 DIV - CAST( + 10 AS SIGNED ) + + + 42 + + + COUNT( + 15 )
----
48

skipif mysql # not compatible
query I rowsort label-7258
SELECT - 59 / - CAST ( + 10 AS INTEGER ) + + + 42 + + + COUNT ( + 15 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT 4 * + ( CASE 13 WHEN + 21 * 52 * + COUNT( * ) THEN - CASE CASE 7 WHEN 71 THEN 37 ELSE COUNT( * ) * 49 END WHEN - 72 THEN NULL WHEN 48 + - 31 THEN - 12 END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT 4 * + ( CASE 13 WHEN + 21 * 52 * + COUNT ( * ) THEN - CASE CASE 7 WHEN 71 THEN 37 ELSE COUNT ( * ) * 49 END WHEN - 72 THEN NULL WHEN 48 + - 31 THEN - 12 END END )
----
NULL

query I rowsort
SELECT ALL + 47 * + 26 AS col2
----
1222

query I rowsort
SELECT CASE 78 WHEN + - 64 * 77 / - 82 + 37 * 19 + 30 * - 50 - - 39 THEN NULL ELSE 44 END * + 42 AS col0
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT + 53 * - COUNT( * ) + - 90 AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-7262
SELECT + 53 * - COUNT ( * ) + - 90 AS col2
----
-143

query I rowsort
SELECT DISTINCT 31 * - 15
----
-465

query I rowsort
SELECT DISTINCT 14 * 1 * 48
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT ( - CASE + - 31 WHEN ( + - COUNT( * ) ) * 93 THEN NULL WHEN 79 THEN - + 90 * ( 55 ) ELSE NULL END ) + + 85 * 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7265
SELECT ( - CASE + - 31 WHEN ( + - COUNT ( * ) ) * 93 THEN NULL WHEN 79 THEN - + 90 * ( 55 ) ELSE NULL END ) + + 85 * 72 col1
----
NULL

query I rowsort
SELECT ALL 49 + + ( + 84 )
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7267
SELECT 98 * + 11 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT 98 * + 11 * - CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT 33 + - - 47 col1, + ( - 2 ) AS col1
----
80
-2

query I rowsort
SELECT NULLIF ( + 27, - ( + 91 ) * ( + 24 ) ) * - + ( 70 ) AS col0
----
-1890

query I rowsort
SELECT ALL 13 + - 52
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7271
SELECT ALL ( 76 ) + + CAST( + 98 AS SIGNED ) + + + CASE WHEN NOT ( ( - NULLIF ( 79, 11 ) ) IS NULL ) THEN MIN( DISTINCT 92 ) END
----
266

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL ( 76 ) + + CAST ( + 98 AS INTEGER ) + + + CASE WHEN NOT ( ( - NULLIF ( 79, 11 ) ) IS NULL ) THEN MIN ( DISTINCT 92 ) END
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT + 87 + 32 * COUNT( * )
----
119

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT + 87 + 32 * COUNT ( * )
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7273
SELECT CAST( NULL AS SIGNED ) * - 88, + 82 * + - 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7273
SELECT CAST ( NULL AS INTEGER ) * - 88, + 82 * + - 0 AS col1
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT 58 + - - 3 + + 67 DIV + 18
----
64

skipif mysql # not compatible
query I rowsort label-7274
SELECT 58 + - - 3 + + 67 / + 18
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7275
SELECT ALL + CAST( + 28 AS SIGNED ) * + 52 * COUNT( * )
----
1456

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL + CAST ( + 28 AS INTEGER ) * + 52 * COUNT ( * )
----
1456

query I rowsort
SELECT DISTINCT - 88 - 1 + - 46 AS col1
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7277
SELECT ALL - 70 - + CASE + - 18 WHEN + - 88 - 34 THEN - 95 * 76 + 50 + - 44 + 44 WHEN + 12 * - 1 THEN 49 WHEN 68 THEN NULL ELSE - 99 + + NULLIF ( - 84 + 5, - 41 ) / CAST( NULL AS SIGNED ) END + - 80 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - 70 - + CASE + - 18 WHEN + - 88 - 34 THEN - 95 * 76 + 50 + - 44 + 44 WHEN + 12 * - 1 THEN 49 WHEN 68 THEN NULL ELSE - 99 + + NULLIF ( - 84 + 5, - 41 ) / CAST ( NULL AS INTEGER ) END + - 80 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT 48 * COUNT( * ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7278
SELECT 48 * COUNT ( * ) AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7279
SELECT - 60 + CAST( 93 AS SIGNED ) * + NULLIF ( - 94, + 68 + + - 74 ) * 30
----
-262320

skipif mysql # not compatible
query I rowsort label-7279
SELECT - 60 + CAST ( 93 AS INTEGER ) * + NULLIF ( - 94, + 68 + + - 74 ) * 30
----
-262320

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL - + MIN( DISTINCT 83 ) - + 93 col2
----
-176

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - + MIN ( DISTINCT 83 ) - + 93 col2
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7281
SELECT - ( + CAST( 58 AS SIGNED ) ) * - COUNT( * ), ( + COUNT( * ) ) AS col1
----
58
1

skipif mysql # not compatible
query II rowsort label-7281
SELECT - ( + CAST ( 58 AS INTEGER ) ) * - COUNT ( * ), ( + COUNT ( * ) ) AS col1
----
58
1

query II rowsort
SELECT DISTINCT - 70 * - - 47, + 50 AS col1
----
-3290
50

onlyif mysql # DIV for integer division: 
query II rowsort label-7283
SELECT DISTINCT - 59 DIV + 27 - - 79 * - 93 AS col1, + 47 + - 88 * 97
----
-7349
-8489

skipif mysql # not compatible
query II rowsort label-7283
SELECT DISTINCT - 59 / + 27 - - 79 * - 93 AS col1, + 47 + - 88 * 97
----
-7349
-8489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT - + 32 / CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT - + 32 / CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT - - 15 + - + 99 + + 53 * - 92 AS col0
----
-4960

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT - COUNT( ALL + 45 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7286
SELECT - COUNT ( ALL + 45 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT - - 71 / MIN( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT - - 71 / MIN ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 65 * 73 col0
----
-4745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7289
SELECT DISTINCT + NULLIF ( - 73, 3 * 63 + - - CAST( - 28 AS SIGNED ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT + NULLIF ( - 73, 3 * 63 + - - CAST ( - 28 AS INTEGER ) ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7290
SELECT DISTINCT - 27 + 57 AS col0, - NULLIF ( COALESCE ( - 31, - CAST( NULL AS SIGNED ) ), + CAST( NULL AS SIGNED ) / + 53 ) AS col2
----
30
31

skipif mysql # not compatible
query II rowsort label-7290
SELECT DISTINCT - 27 + 57 AS col0, - NULLIF ( COALESCE ( - 31, - CAST ( NULL AS INTEGER ) ), + CAST ( NULL AS INTEGER ) / + 53 ) AS col2
----
30
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT - 94 - - 98 + + - 63 + - ( MIN( 41 ) )
----
-100

skipif mysql # not compatible
query I rowsort label-7291
SELECT - 94 - - 98 + + - 63 + - ( MIN ( 41 ) )
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7292
SELECT ALL + MIN( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL + MIN ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL + - 82 * + 21 - - + 68 + - 13 + COUNT( * ) + + COUNT( * ) * - + 9 + 93 + - + CASE 11 WHEN 5 THEN + 46 ELSE NULL END * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL + - 82 * + 21 - - + 68 + - 13 + COUNT ( * ) + + COUNT ( * ) * - + 9 + 93 + - + CASE 11 WHEN 5 THEN + 46 ELSE NULL END * 1
----
NULL

query I rowsort
SELECT - - NULLIF ( + 75, - - 74 * - - 62 ) * - 23 + + 33
----
-1692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7295
SELECT + COUNT( * ) * - 78 + 38 - - 42 DIV 55
----
-40

skipif mysql # not compatible
query I rowsort label-7295
SELECT + COUNT ( * ) * - 78 + 38 - - 42 / 55
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7296
SELECT COALESCE ( - 72, + CAST( NULL AS SIGNED ), 42 * CAST( - COUNT( * ) AS SIGNED ) * - 11 )
----
-72

skipif mysql # not compatible
query I rowsort label-7296
SELECT COALESCE ( - 72, + CAST ( NULL AS INTEGER ), 42 * CAST ( - COUNT ( * ) AS INTEGER ) * - 11 )
----
-72

query I rowsort
SELECT + CASE 39 WHEN + 1 THEN + + 34 WHEN + 37 + 56 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7298
SELECT ALL + 99 * + SUM( + 42 ) + 90 + + COALESCE ( 92, + + 22 * + ( CASE - 12 WHEN + CASE - COUNT( * ) WHEN 65 * + 25 THEN NULL WHEN 96 * CAST( NULLIF ( ( 9 ), - 47 ) * 64 AS SIGNED ) + - 35 THEN + CAST( - COUNT( * ) AS DECIMAL ) + 40 ELSE NULL END + CAST( ( AVG ( 63 ) ) + + COUNT( * ) AS SIGNED ) THEN + 71 * 42 ELSE NULL END ) + - COALESCE ( + 60 - - 1, - 3 * + 87 ) - + 54 * 42 )
----
4340

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL + 99 * + SUM ( + 42 ) + 90 + + COALESCE ( 92, + + 22 * + ( CASE - 12 WHEN + CASE - COUNT ( * ) WHEN 65 * + 25 THEN NULL WHEN 96 * CAST ( NULLIF ( ( 9 ), - 47 ) * 64 AS INTEGER ) + - 35 THEN + CAST ( - COUNT ( * ) AS REAL ) + 40 ELSE NULL END + CAST ( ( AVG ( 63 ) ) + + COUNT ( * ) AS INTEGER ) THEN + 71 * 42 ELSE NULL END ) + - COALESCE ( + 60 - - 1, - 3 * + 87 ) - + 54 * 42 )
----
4340

query I rowsort
SELECT + 38 * - 91
----
-3458

query I rowsort
SELECT 64 * 4 * + ( - - 86 ) * - + 92 * ( 29 ) - - 87 * - 51
----
-58743125

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT ALL SUM( 13 ) * + 58 * - 94 AS col1
----
-70876

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL SUM ( 13 ) * + 58 * - 94 AS col1
----
-70876

query I rowsort
SELECT + 2 * 43
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-7303
SELECT DISTINCT + 71 AS col2, - COUNT( * ) + - + 82 * - 4 AS col2
----
71
327

skipif mysql # not compatible
query II rowsort label-7303
SELECT DISTINCT + 71 AS col2, - COUNT ( * ) + - + 82 * - 4 AS col2
----
71
327

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL 70 * - ( + 31 ) + + SUM( DISTINCT - 30 )
----
-2200

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL 70 * - ( + 31 ) + + SUM ( DISTINCT - 30 )
----
-2200

query I rowsort
SELECT + COALESCE ( 28, - 59, - 5 )
----
28

query I rowsort
SELECT 37 * + 78 + 78 + + 10 + + ( - ( + - 5 ) ) * - ( + 0 )
----
2974

onlyif mysql # aggregate syntax: 
query II rowsort label-7307
SELECT COUNT( * ) * + - 15 - + 33, 28 + + + 68 AS col2
----
-48
96

skipif mysql # not compatible
query II rowsort label-7307
SELECT COUNT ( * ) * + - 15 - + 33, 28 + + + 68 AS col2
----
-48
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT + COUNT( * ) + + + 62 * - 55 + NULLIF ( + CASE - 36 WHEN 22 THEN - 78 * + - 41 WHEN ( - 54 ) THEN NULL ELSE - 40 - + 6 END, 10 + 85 * 22 )
----
-3455

skipif mysql # not compatible
query I rowsort label-7308
SELECT + COUNT ( * ) + + + 62 * - 55 + NULLIF ( + CASE - 36 WHEN 22 THEN - 78 * + - 41 WHEN ( - 54 ) THEN NULL ELSE - 40 - + 6 END, 10 + 85 * 22 )
----
-3455

onlyif mysql # aggregate syntax: 
query II rowsort label-7309
SELECT ALL 7 * - 69 - - 36, 82 * - + COUNT( * ) AS col1
----
-447
-82

skipif mysql # not compatible
query II rowsort label-7309
SELECT ALL 7 * - 69 - - 36, 82 * - + COUNT ( * ) AS col1
----
-447
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT + 36 / - CASE - COUNT( + 47 ) WHEN + - 2 * - COUNT( * ) * + AVG ( ALL + 8 ) THEN - 70 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT + 36 / - CASE - COUNT ( + 47 ) WHEN + - 2 * - COUNT ( * ) * + AVG ( ALL + 8 ) THEN - 70 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT DISTINCT 47 DIV 99 * + 11
----
0

skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT 47 / 99 * + 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT ALL MAX( ALL - - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL MAX ( ALL - - 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT ALL 59 * + + COUNT( * ) - 68 + + 77 + - + 88
----
-20

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL 59 * + + COUNT ( * ) - 68 + + 77 + - + 88
----
-20

query II rowsort
SELECT DISTINCT + 56, + 15 * 55 AS col0
----
56
825

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT + MIN( ALL CASE - 78 WHEN 69 THEN + + 97 WHEN + 92 THEN NULL ELSE NULL END ) + ( - + 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7315
SELECT + MIN ( ALL CASE - 78 WHEN 69 THEN + + 97 WHEN + 92 THEN NULL ELSE NULL END ) + ( - + 73 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT - - COALESCE ( + + 31, - + 42, + + 70 * 2 - - COUNT( * ) ) * + MIN( - NULLIF ( 16, - 88 ) )
----
-496

skipif mysql # not compatible
query I rowsort label-7316
SELECT - - COALESCE ( + + 31, - + 42, + + 70 * 2 - - COUNT ( * ) ) * + MIN ( - NULLIF ( 16, - 88 ) )
----
-496

query I rowsort
SELECT ALL - 30 * - 67 col2
----
2010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7318
SELECT - - COALESCE ( - - 49, + ( + COUNT( * ) ) DIV + + 93, + 14 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7318
SELECT - - COALESCE ( - - 49, + ( + COUNT ( * ) ) / + + 93, + 14 ) AS col1
----
49

query I rowsort
SELECT + + 91 + - CASE + + 22 WHEN + - AVG ( COALESCE ( - - 68, - 99 / + 42 ) ) + - 50 THEN - 49 END AS col1
----
NULL

query I rowsort
SELECT + 38 * + + 57
----
2166

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT - COUNT( * ) * + - 86
----
86

skipif mysql # not compatible
query I rowsort label-7321
SELECT - COUNT ( * ) * + - 86
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7322
SELECT ALL + + CAST( + - 20 AS SIGNED ) + - 33 - + + ( - - 64 )
----
-117

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL + + CAST ( + - 20 AS INTEGER ) + - 33 - + + ( - - 64 )
----
-117

query I rowsort
SELECT - ( + + 77 ) + 42 - - 15 * + 42
----
595

query I rowsort
SELECT DISTINCT + 23 + + 70 AS col2
----
93

query I rowsort
SELECT ALL + 65 * + - 30
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL + - COUNT( 53 ) + - - MIN( - 29 )
----
-30

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL + - COUNT ( 53 ) + - - MIN ( - 29 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7327
SELECT + NULLIF ( + 19, - CAST( NULL AS SIGNED ) ) + 39 DIV - + 46 * 62 * 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7327
SELECT + NULLIF ( + 19, - CAST ( NULL AS INTEGER ) ) + 39 / - + 46 * 62 * 19 AS col0
----
19

query I rowsort
SELECT - 54 + + ( - + 10 ) * + + 86 AS col1
----
-914

query I rowsort
SELECT ALL - + ( + + 9 ) + - + 22 + + 33 * 50 AS col2
----
1619

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL + - 4 * - MAX( + 92 ) AS col2
----
368

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL + - 4 * - MAX ( + 92 ) AS col2
----
368

onlyif mysql # DIV for integer division: 
query I rowsort label-7331
SELECT - 38 DIV + 5 * + 1 col2
----
-7

skipif mysql # not compatible
query I rowsort label-7331
SELECT - 38 / + 5 * + 1 col2
----
-7

query II rowsort
SELECT DISTINCT + ( - 16 ) AS col2, + 56 * - ( + 66 )
----
-16
-3696

onlyif mysql # aggregate syntax: 
query II rowsort label-7333
SELECT - 26 + - + COALESCE ( + COUNT( + + 86 ), + 28 ) * - 94 AS col0, NULLIF ( - 23, + 46 ) AS col2
----
68
-23

skipif mysql # not compatible
query II rowsort label-7333
SELECT - 26 + - + COALESCE ( + COUNT ( + + 86 ), + 28 ) * - 94 AS col0, NULLIF ( - 23, + 46 ) AS col2
----
68
-23

query I rowsort
SELECT - 66 * 38 + 19 AS col0
----
-2489

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT - 96 * COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-7335
SELECT - 96 * COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7336
SELECT DISTINCT - NULLIF ( - MAX( + 93 ), 68 ) DIV - MAX( DISTINCT 55 ) - - 96 + - 18 + - COUNT( * ) + MIN( - 43 ) * + 83 * + ( 40 DIV + MIN( ALL - 75 ) )
----
76

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT - NULLIF ( - MAX ( + 93 ), 68 ) / - MAX ( DISTINCT 55 ) - - 96 + - 18 + - COUNT ( * ) + MIN ( - 43 ) * + 83 * + ( 40 / + MIN ( ALL - 75 ) )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7337
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0, 31 AS col2
----
NULL
31

skipif mysql # not compatible
query II rowsort label-7337
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0, 31 AS col2
----
NULL
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7338
SELECT ALL COUNT( * ) / - 3 / - NULLIF ( + + COUNT( * ), 25 * - + 2 / NULLIF ( - 93, - 36 * + AVG ( 70 ) * 46 - 49 ) ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL COUNT ( * ) / - 3 / - NULLIF ( + + COUNT ( * ), 25 * - + 2 / NULLIF ( - 93, - 36 * + AVG ( 70 ) * 46 - 49 ) ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ( MAX( 93 ) )
----
93

skipif mysql # not compatible
query I rowsort label-7339
SELECT ( MAX ( 93 ) )
----
93

query I rowsort
SELECT + 28 * + 23 + - - 47 + + 80 AS col2
----
771

query II rowsort
SELECT 40 AS col2, - 87
----
40
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT 51 * - COUNT( * ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7342
SELECT 51 * - COUNT ( * ) AS col1
----
-51

query I rowsort
SELECT ALL 6 * - 76 * - - 9
----
-4104

onlyif mysql # DIV for integer division: 
query I rowsort label-7344
SELECT ALL + 70 DIV - 45 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL + 70 / - 45 col0
----
-1

query II rowsort
SELECT + 5 AS col1, 7 col2
----
5
7

query II rowsort
SELECT ALL - 38, - 16 AS col1
----
-38
-16

query I rowsort
SELECT ALL ( + 7 ) * 90
----
630

query III rowsort
SELECT + 31 AS col0, + 59 AS col0, - 89 + 42 AS col0
----
31
59
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7349
SELECT - NULLIF ( - COUNT( DISTINCT - 76 ), - 89 - - 14 + COUNT( * ) * + CAST( - 93 AS SIGNED ) * - 53 ) * - + 5 * 44
----
-220

skipif mysql # not compatible
query I rowsort label-7349
SELECT - NULLIF ( - COUNT ( DISTINCT - 76 ), - 89 - - 14 + COUNT ( * ) * + CAST ( - 93 AS INTEGER ) * - 53 ) * - + 5 * 44
----
-220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7350
SELECT 20 AS col0, - ( - + 14 ) / - MIN( - CAST( NULL AS SIGNED ) ) + - 88 + + + CASE + - NULLIF ( 35, + 62 ) WHEN CAST( NULL AS SIGNED ) THEN MAX( 53 ) * + 58 WHEN 30 - ( COUNT( - 35 ) + - 31 ) * COUNT( * ) THEN NULL ELSE NULL END AS col1
----
20
NULL

skipif mysql # not compatible
query II rowsort label-7350
SELECT 20 AS col0, - ( - + 14 ) / - MIN ( - CAST ( NULL AS INTEGER ) ) + - 88 + + + CASE + - NULLIF ( 35, + 62 ) WHEN CAST ( NULL AS INTEGER ) THEN MAX ( 53 ) * + 58 WHEN 30 - ( COUNT ( - 35 ) + - 31 ) * COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
20
NULL

query II rowsort
SELECT ALL 70 AS col0, 4 + 86
----
70
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT - 22 DIV 9
----
-2

skipif mysql # not compatible
query I rowsort label-7352
SELECT - 22 / 9
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7353
SELECT - 10 AS col1, + NULLIF ( - + MIN( - 67 ), + 30 ) col1
----
-10
67

skipif mysql # not compatible
query II rowsort label-7353
SELECT - 10 AS col1, + NULLIF ( - + MIN ( - 67 ), + 30 ) col1
----
-10
67

query II rowsort
SELECT - 32 AS col1, ( - 97 ) + + - 79
----
-32
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7355
SELECT NULLIF ( + 50, + + CAST( - - 75 AS SIGNED ) ) * - COUNT( * ) + + - CAST( + 65 AS SIGNED ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-7355
SELECT NULLIF ( + 50, + + CAST ( - - 75 AS INTEGER ) ) * - COUNT ( * ) + + - CAST ( + 65 AS INTEGER ) AS col1
----
-115

query II rowsort
SELECT ALL - 94, - 40 AS col0
----
-94
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7357
SELECT - 29 + - 41 + + NULLIF ( - 64, 17 * + + 31 ) col2, ( + - 47 ) - 80 + 80 DIV 23 * - 20 * - ( + COUNT( - 85 ) ) AS col2
----
-134
-67

skipif mysql # not compatible
query II rowsort label-7357
SELECT - 29 + - 41 + + NULLIF ( - 64, 17 * + + 31 ) col2, ( + - 47 ) - 80 + 80 / 23 * - 20 * - ( + COUNT ( - 85 ) ) AS col2
----
-134
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7358
SELECT 13 col0, 16 * + CAST( - 54 AS SIGNED ) AS col2
----
13
-864

skipif mysql # not compatible
query II rowsort label-7358
SELECT 13 col0, 16 * + CAST ( - 54 AS INTEGER ) AS col2
----
13
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT 14 + + COUNT( * ) col2
----
15

skipif mysql # not compatible
query I rowsort label-7359
SELECT 14 + + COUNT ( * ) col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT DISTINCT SUM( 24 ) * + 52
----
1248

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT SUM ( 24 ) * + 52
----
1248

onlyif mysql # aggregate syntax: 
query II rowsort label-7361
SELECT 50 AS col1, COUNT( * )
----
50
1

skipif mysql # not compatible
query II rowsort label-7361
SELECT 50 AS col1, COUNT ( * )
----
50
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT ( + - 23 ) * - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7362
SELECT ( + - 23 ) * - COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7363
SELECT DISTINCT COUNT( * ) + SUM( ALL - 23 ), MIN( + 7 ) col2
----
-22
7

skipif mysql # not compatible
query II rowsort label-7363
SELECT DISTINCT COUNT ( * ) + SUM ( ALL - 23 ), MIN ( + 7 ) col2
----
-22
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7364
SELECT DISTINCT - 0 - - 28, - SUM( DISTINCT 66 ) * COUNT( * ) + - CASE - 38 WHEN - 99 THEN - 12 ELSE 39 END - - 83 AS col2
----
28
-22

skipif mysql # not compatible
query II rowsort label-7364
SELECT DISTINCT - 0 - - 28, - SUM ( DISTINCT 66 ) * COUNT ( * ) + - CASE - 38 WHEN - 99 THEN - 12 ELSE 39 END - - 83 AS col2
----
28
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-7365
SELECT ALL - COUNT( ALL 34 ) AS col0, - COUNT( * ) AS col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7365
SELECT ALL - COUNT ( ALL 34 ) AS col0, - COUNT ( * ) AS col1
----
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7366
SELECT DISTINCT + 55 DIV - - 71
----
0

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT + 55 / - - 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT 61 * COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7367
SELECT 61 * COUNT ( * ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT DISTINCT + 29 * - + NULLIF ( 83, + 3 ) * - SUM( DISTINCT 97 )
----
233479

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT + 29 * - + NULLIF ( 83, + 3 ) * - SUM ( DISTINCT 97 )
----
233479

query I rowsort
SELECT 38 * - - 27 - + - 35 AS col2
----
1061

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7370
SELECT 51 * + COUNT( * ) * - + NULLIF ( + CAST( NULL AS SIGNED ), + CASE - + 39 WHEN CAST( 28 AS SIGNED ) * - 56 THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + SUM( ALL - - 9 ) ELSE NULL END * - 37 + 27 ) / - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT 51 * + COUNT ( * ) * - + NULLIF ( + CAST ( NULL AS INTEGER ), + CASE - + 39 WHEN CAST ( 28 AS INTEGER ) * - 56 THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + SUM ( ALL - - 9 ) ELSE NULL END * - 37 + 27 ) / - 36 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7371
SELECT ALL - NULLIF ( + 63, - - 36 * 80 + CAST( - - CASE + - 56 WHEN + 13 * + + COUNT( * ) * + 6 * + 56 THEN + 75 END AS SIGNED ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL - NULLIF ( + 63, - - 36 * 80 + CAST ( - - CASE + - 56 WHEN + 13 * + + COUNT ( * ) * + 6 * + 56 THEN + 75 END AS INTEGER ) ) AS col0
----
-63

query I rowsort
SELECT DISTINCT + 66 * - 2 * + - 69 AS col0
----
9108

query I rowsort
SELECT 57 + - 21
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-7374
SELECT + + 51 * 12 * 35 - + - 54 DIV - - 58 AS col0, + 28 + - + 97 col2
----
21420
-69

skipif mysql # not compatible
query II rowsort label-7374
SELECT + + 51 * 12 * 35 - + - 54 / - - 58 AS col0, + 28 + - + 97 col2
----
21420
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7375
SELECT DISTINCT - - CASE - 61 WHEN - 80 THEN NULL WHEN + - 60 + - - 27 THEN NULL ELSE MIN( + 1 ) * - NULLIF ( 4, + CAST( 92 AS SIGNED ) ) * - ( CAST( NULL AS SIGNED ) ) * - 53 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT - - CASE - 61 WHEN - 80 THEN NULL WHEN + - 60 + - - 27 THEN NULL ELSE MIN ( + 1 ) * - NULLIF ( 4, + CAST ( 92 AS INTEGER ) ) * - ( CAST ( NULL AS INTEGER ) ) * - 53 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT ALL 59 + + COUNT( * ) * - 8 * + 54 + 90
----
-283

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL 59 + + COUNT ( * ) * - 8 * + 54 + 90
----
-283

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL - 89 + - ( NULLIF ( + 8, - ( 88 ) / + 72 * + COUNT( * ) + - - 89 ) ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL - 89 + - ( NULLIF ( + 8, - ( 88 ) / + 72 * + COUNT ( * ) + - - 89 ) ) col2
----
-97

query I rowsort
SELECT 84 * - 0 + + - 69 AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7379
SELECT DISTINCT + - 37 DIV - SUM( 98 ) * 68 DIV 33 * COUNT( * ) * + ( - - NULLIF ( - 7, + + 12 DIV + 68 + - + 92 + 93 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT + - 37 / - SUM ( 98 ) * 68 / 33 * COUNT ( * ) * + ( - - NULLIF ( - 7, + + 12 / + 68 + - + 92 + 93 ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7380
SELECT CAST( NULL AS SIGNED ) + - SUM( 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7380
SELECT CAST ( NULL AS INTEGER ) + - SUM ( 17 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7381
SELECT ALL + 87 + + + 22 DIV - - COALESCE ( COALESCE ( - 26, 69 + + 8 * + COUNT( * ) ), - 8 * + + 0 + - COALESCE ( - ( ( 27 ) ), 87 ) * + NULLIF ( - 33, + 16 - - ( - 24 ) ), MIN( ALL 1 ) - + 43 * + ( + 27 * - ( - ( 89 ) ) ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL + 87 + + + 22 / - - COALESCE ( COALESCE ( - 26, 69 + + 8 * + COUNT ( * ) ), - 8 * + + 0 + - COALESCE ( - ( ( 27 ) ), 87 ) * + NULLIF ( - 33, + 16 - - ( - 24 ) ), MIN ( ALL 1 ) - + 43 * + ( + 27 * - ( - ( 89 ) ) ) ) AS col0
----
87

query I rowsort
SELECT ALL - - 24 + 5 * + 15
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT COALESCE ( - COUNT( * ), + 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-7383
SELECT COALESCE ( - COUNT ( * ), + 37 )
----
-1

query I rowsort
SELECT 8 * + 0 * + 43 AS col2
----
0

query I rowsort
SELECT 52 * - 39
----
-2028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT - CAST( - - 78 AS SIGNED ) + + ( 21 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-7386
SELECT - CAST ( - - 78 AS INTEGER ) + + ( 21 ) AS col1
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7387
SELECT ALL 89 DIV - - COUNT( * ) col1, - 46 AS col0
----
89
-46

skipif mysql # not compatible
query II rowsort label-7387
SELECT ALL 89 / - - COUNT ( * ) col1, - 46 AS col0
----
89
-46

query I rowsort
SELECT 62 + + 36 * - + 77
----
-2710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7389
SELECT + CAST( ( CAST( + + MIN( ALL - + 96 ) AS DECIMAL ) ) AS SIGNED ) * + 91
----
-8736

skipif mysql # not compatible
query I rowsort label-7389
SELECT + CAST ( ( CAST ( + + MIN ( ALL - + 96 ) AS REAL ) ) AS INTEGER ) * + 91
----
-8736

onlyif mysql # DIV for integer division: 
query I rowsort label-7390
SELECT DISTINCT 50 DIV + + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT 50 / + + 54 AS col1
----
0

query II rowsort
SELECT 79, 70 + + ( 68 ) col2
----
79
138

query II rowsort
SELECT ALL 16 AS col1, 25 AS col0
----
16
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT COUNT( * ) + + 41 + + 33 + - 30 + 56
----
101

skipif mysql # not compatible
query I rowsort label-7393
SELECT COUNT ( * ) + + 41 + + 33 + - 30 + 56
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT ( + 2 ) - + COALESCE ( COUNT( * ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7394
SELECT ( + 2 ) - + COALESCE ( COUNT ( * ), COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT ( - 58 ) - 71 - COUNT( * ) * - - 19
----
-148

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT ( - 58 ) - 71 - COUNT ( * ) * - - 19
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT ALL 25 AS col1, COUNT( * )
----
25
1

skipif mysql # not compatible
query II rowsort label-7396
SELECT ALL 25 AS col1, COUNT ( * )
----
25
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7397
SELECT ALL + COUNT( * ), + 12 AS col0
----
1
12

skipif mysql # not compatible
query II rowsort label-7397
SELECT ALL + COUNT ( * ), + 12 AS col0
----
1
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7398
SELECT + COUNT( * ) + - 3 + - - 40 DIV + 66 + + 67 * 88
----
5894

skipif mysql # not compatible
query I rowsort label-7398
SELECT + COUNT ( * ) + - 3 + - - 40 / + 66 + + 67 * 88
----
5894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 34
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7400
SELECT 43 * - CAST( NULL AS SIGNED ) / + 45 / + COALESCE ( + COUNT( * ), - - 36 ) + + ( + COALESCE ( + COUNT( * ), 56 * - + 71 / + 32 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT 43 * - CAST ( NULL AS INTEGER ) / + 45 / + COALESCE ( + COUNT ( * ), - - 36 ) + + ( + COALESCE ( + COUNT ( * ), 56 * - + 71 / + 32 ) ) AS col2
----
NULL

query II rowsort
SELECT ALL + 12 AS col1, + 54
----
12
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7402
SELECT - 41 DIV - + 51
----
0

skipif mysql # not compatible
query I rowsort label-7402
SELECT - 41 / - + 51
----
0

query I rowsort
SELECT - 59 + - 42 AS col2
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT ALL - 7 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL - 7 / - 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT - 75 * + 75 * + + 27 + + COUNT( * )
----
-151874

skipif mysql # not compatible
query I rowsort label-7405
SELECT - 75 * + 75 * + + 27 + + COUNT ( * )
----
-151874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7406
SELECT + - CAST( NULL AS SIGNED ) / 5 + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7406
SELECT + - CAST ( NULL AS INTEGER ) / 5 + 33 AS col2
----
NULL

query II rowsort
SELECT 99 * + 53 + 28 AS col2, 72 AS col1
----
5275
72

query I rowsort
SELECT ALL - ( + 11 ) * + 57 * - - 66 + 28 AS col0
----
-41354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7409
SELECT - 4 * + + 76 * COUNT( * ) / + 62 / + CASE - COUNT( * ) WHEN + + 53 THEN 69 / 41 * - + 22 WHEN 93 * - COUNT( - + 15 ) THEN - CAST( NULL AS SIGNED ) WHEN + 63 THEN + 14 + + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT - 4 * + + 76 * COUNT ( * ) / + 62 / + CASE - COUNT ( * ) WHEN + + 53 THEN 69 / 41 * - + 22 WHEN 93 * - COUNT ( - + 15 ) THEN - CAST ( NULL AS INTEGER ) WHEN + 63 THEN + 14 + + 45 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 18 * 16 + 1 - + 53 + - 19 AS col0
----
217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT DISTINCT + + 59 * + 70 + - COALESCE ( - - 55, + CAST( NULL AS SIGNED ) + + 48 + 16 ) AS col0
----
4075

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT + + 59 * + 70 + - COALESCE ( - - 55, + CAST ( NULL AS INTEGER ) + + 48 + 16 ) AS col0
----
4075

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7412
SELECT DISTINCT - 49 * + 75 * - + CAST( NULL AS SIGNED ), + ( - - NULLIF ( - 2, - 42 * CAST( - 75 AS SIGNED ) ) ) * - 51 * 37 AS col2
----
NULL
3774

skipif mysql # not compatible
query II rowsort label-7412
SELECT DISTINCT - 49 * + 75 * - + CAST ( NULL AS INTEGER ), + ( - - NULLIF ( - 2, - 42 * CAST ( - 75 AS INTEGER ) ) ) * - 51 * 37 AS col2
----
NULL
3774

onlyif mysql # DIV for integer division: 
query I rowsort label-7413
SELECT ALL - + 64 DIV + 53
----
-1

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - + 64 / + 53
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT + - NULLIF ( - 61, + + MIN( ALL - + 52 ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-7414
SELECT + - NULLIF ( - 61, + + MIN ( ALL - + 52 ) ) AS col2
----
61

query I rowsort
SELECT + 84 - - 7 * - 8 + 99 * + + 37 AS col2
----
3691

query II rowsort
SELECT + - 74 AS col2, 25 AS col0
----
-74
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT ALL - CAST( - 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL - CAST ( - 10 AS INTEGER )
----
10

query II rowsort
SELECT DISTINCT COALESCE ( - 72, 75 * + 97 ) AS col2, + 51 AS col2
----
-72
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7419
SELECT ALL - + 97 - - 33 DIV + 85 col1
----
-97

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL - + 97 - - 33 / + 85 col1
----
-97

query I rowsort
SELECT - 47 - - 21
----
-26

query I rowsort
SELECT ALL 87 * + ( + 19 ) * 66 + - 91
----
109007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7422
SELECT - ( 76 ) + + 66 - + + COALESCE ( 74, - 11 DIV - 59, + MAX( - + 43 ) * - - ( - 11 ) ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-7422
SELECT - ( 76 ) + + 66 - + + COALESCE ( 74, - 11 / - 59, + MAX ( - + 43 ) * - - ( - 11 ) ) col2
----
-84

query I rowsort
SELECT DISTINCT - - 67 * - 62
----
-4154

query II rowsort
SELECT DISTINCT 41 AS col1, - 98
----
41
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7425
SELECT ALL - MAX( DISTINCT 75 ) * + ( + COUNT( * ) ) DIV 95 col2
----
0

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL - MAX ( DISTINCT 75 ) * + ( + COUNT ( * ) ) / 95 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT - 49 + - NULLIF ( + + MAX( ALL + + 47 ), + + COUNT( * ) * - NULLIF ( 23, COUNT( * ) + 5 ) + - 89 + - CASE - 5 WHEN - 64 THEN - MIN( 13 ) END - 59 * + 49 * 33 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7426
SELECT - 49 + - NULLIF ( + + MAX ( ALL + + 47 ), + + COUNT ( * ) * - NULLIF ( 23, COUNT ( * ) + 5 ) + - 89 + - CASE - 5 WHEN - 64 THEN - MIN ( 13 ) END - 59 * + 49 * 33 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT - 26 + - COUNT( ALL - - 61 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7427
SELECT - 26 + - COUNT ( ALL - - 61 ) AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7428
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT + NULLIF ( + 36, 10 * + COUNT( * ) + + 80 - 45 ) + + CASE - 80 WHEN + 31 THEN NULL ELSE + 30 - 48 END
----
18

skipif mysql # not compatible
query I rowsort label-7429
SELECT + NULLIF ( + 36, 10 * + COUNT ( * ) + + 80 - 45 ) + + CASE - 80 WHEN + 31 THEN NULL ELSE + 30 - 48 END
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT - COALESCE ( + 38, - + COUNT( * ) * + + 67 ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-7430
SELECT - COALESCE ( + 38, - + COUNT ( * ) * + + 67 ) col0
----
-38

query I rowsort
SELECT - 19 * + 97
----
-1843

query I rowsort
SELECT + 25 + - 32
----
-7

query I rowsort
SELECT DISTINCT ( - + 98 ) AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7434
SELECT ALL ( - 85 ) AS col2, + CAST( + ( ( 21 ) ) AS SIGNED ) AS col1
----
-85
21

skipif mysql # not compatible
query II rowsort label-7434
SELECT ALL ( - 85 ) AS col2, + CAST ( + ( ( 21 ) ) AS INTEGER ) AS col1
----
-85
21

query I rowsort
SELECT + 72 + 81
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-7436
SELECT ALL - 11 DIV + + 39
----
0

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL - 11 / + + 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT + ( CASE - 57 WHEN + + NULLIF ( - CASE - COUNT( * ) WHEN + 18 THEN - 28 END, + 0 ) + + - 29 THEN - 4 END ) * 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT + ( CASE - 57 WHEN + + NULLIF ( - CASE - COUNT ( * ) WHEN + 18 THEN - 28 END, + 0 ) + + - 29 THEN - 4 END ) * 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7438
SELECT - 78 DIV COUNT( * ) - + 0 DIV MIN( DISTINCT - 79 ) * 66 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-7438
SELECT - 78 / COUNT ( * ) - + 0 / MIN ( DISTINCT - 79 ) * 66 AS col2
----
-78

query II rowsort
SELECT + ( + - 17 ) AS col0, - 28
----
-17
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT CAST( - - 9 AS SIGNED ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-7440
SELECT CAST ( - - 9 AS INTEGER ) AS col0
----
9

query I rowsort
SELECT + 29 * + ( - 15 ) AS col1
----
-435

query I rowsort
SELECT + 35 * 57
----
1995

onlyif mysql # aggregate syntax: 
query II rowsort label-7443
SELECT ( 25 ), 26 + + COUNT( * ) + 17 AS col2
----
25
44

skipif mysql # not compatible
query II rowsort label-7443
SELECT ( 25 ), 26 + + COUNT ( * ) + 17 AS col2
----
25
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7444
SELECT ALL 21 DIV - MAX( 53 ) + + 98 - + - 15 + - COALESCE ( + 76, - COUNT( * ) ) * + 36 AS col1
----
-2623

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL 21 / - MAX ( 53 ) + + 98 - + - 15 + - COALESCE ( + 76, - COUNT ( * ) ) * + 36 AS col1
----
-2623

query I rowsort
SELECT + 33 * 62 - 29 * - 13
----
2423

query I rowsort
SELECT DISTINCT - - 84 * 81 + + ( + 88 ) + - 84
----
6808

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT + - COUNT( * ) + + + 81 * + 78 AS col2
----
6317

skipif mysql # not compatible
query I rowsort label-7447
SELECT + - COUNT ( * ) + + + 81 * + 78 AS col2
----
6317

onlyif mysql # DIV for integer division: 
query I rowsort label-7448
SELECT ALL + 37 DIV - 34 col0
----
-1

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL + 37 / - 34 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7449
SELECT + 5 * + 91 + + COALESCE ( 73, + 8 DIV - 77 + 45 ) - + 63 + - + COUNT( * ) col2
----
464

skipif mysql # not compatible
query I rowsort label-7449
SELECT + 5 * + 91 + + COALESCE ( 73, + 8 / - 77 + 45 ) - + 63 + - + COUNT ( * ) col2
----
464

query I rowsort
SELECT DISTINCT - 4 * 61 + - - ( 50 ) AS col2
----
-194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7451
SELECT ALL - 41 * + + 19 + CAST( NULL AS SIGNED ) + COALESCE ( 92, - 45 ) / - COUNT( * ) * + + ( - SUM( 31 ) ) - + 32 - - 15 * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - 41 * + + 19 + CAST ( NULL AS INTEGER ) + COALESCE ( 92, - 45 ) / - COUNT ( * ) * + + ( - SUM ( 31 ) ) - + 32 - - 15 * + 10
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT DISTINCT - - CASE COUNT( * ) WHEN ( 44 ) - + 78 + - 74 THEN 79 - + - 98 END * + 32 AS col0, + 89 * ( - COUNT( * ) )
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-7452
SELECT DISTINCT - - CASE COUNT ( * ) WHEN ( 44 ) - + 78 + - 74 THEN 79 - + - 98 END * + 32 AS col0, + 89 * ( - COUNT ( * ) )
----
NULL
-89

query I rowsort
SELECT ALL + COALESCE ( - + 4, 58 ) * 17 * + - ( - 85 ) + - 23 - 96
----
-5899

query I rowsort
SELECT + NULLIF ( + 4, - + 6 ) AS col1
----
4

query I rowsort
SELECT 32 * 69
----
2208

query I rowsort
SELECT 71 + + 41
----
112

query I rowsort
SELECT DISTINCT - 6 * + + 90 AS col0
----
-540

query I rowsort
SELECT DISTINCT 42 + + 91 AS col2
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7459
SELECT ALL - 25 * - - CASE + + 69 WHEN + 3 THEN - + COALESCE ( - 33, - ( - - 27 ) * - 25 * - - 18 * - CAST( NULL AS SIGNED ) + + 93 * NULLIF ( 75, + 52 * - 55 - - 44 ) + 65 ) + CASE 51 WHEN 86 + 83 THEN NULL WHEN 28 THEN NULL WHEN 8 THEN 66 ELSE NULL END * - CAST( NULL AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL - 25 * - - CASE + + 69 WHEN + 3 THEN - + COALESCE ( - 33, - ( - - 27 ) * - 25 * - - 18 * - CAST ( NULL AS INTEGER ) + + 93 * NULLIF ( 75, + 52 * - 55 - - 44 ) + 65 ) + CASE 51 WHEN 86 + 83 THEN NULL WHEN 28 THEN NULL WHEN 8 THEN 66 ELSE NULL END * - CAST ( NULL AS INTEGER ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7460
SELECT 77 / + - MAX( ALL - - 79 ) / + - 10 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7460
SELECT 77 / + - MAX ( ALL - - 79 ) / + - 10 * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - 88 AS col2, 33 AS col2
----
-88
33

query I rowsort
SELECT ALL + 52 + + + 82
----
134

query I rowsort
SELECT 57 + - 92
----
-35

query I rowsort
SELECT 67 + - 95 + - 0 + + 68 * 24 + - 51 AS col2
----
1553

query I rowsort
SELECT 83 + + + 54 AS col2
----
137

query I rowsort
SELECT DISTINCT - 35 + 56 AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7467
SELECT DISTINCT - 60 DIV - 32
----
1

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT - 60 / - 32
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7468
SELECT - 1 DIV 55 + + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-7468
SELECT - 1 / 55 + + - 93
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7469
SELECT ALL - + ( + COUNT( * ) ) + + CAST( + 31 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL - + ( + COUNT ( * ) ) + + CAST ( + 31 AS INTEGER )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7470
SELECT DISTINCT + + 30 DIV + MIN( + ( 78 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT + + 30 / + MIN ( + ( 78 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT + 13 + + COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7471
SELECT + 13 + + COUNT ( * ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT ALL - + CASE SUM( 28 ) WHEN + + 46 * - 23 + + 99 - 35 THEN NULL WHEN + ( - + COALESCE ( + 66, COUNT( * ) ) ) THEN - + 25 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL - + CASE SUM ( 28 ) WHEN + + 46 * - 23 + + 99 - 35 THEN NULL WHEN + ( - + COALESCE ( + 66, COUNT ( * ) ) ) THEN - + 25 ELSE NULL END col1
----
NULL

query I rowsort
SELECT 58 + - 3 AS col1
----
55

query I rowsort
SELECT DISTINCT - 8 * - - 14 AS col0
----
-112

query I rowsort
SELECT ALL 19 - - - 4 AS col2
----
15

query I rowsort
SELECT + CASE WHEN NOT NULL IN ( + 2 ) THEN + 70 ELSE NULL END col2
----
NULL

query II rowsort
SELECT 66 AS col1, 0 * + + 20
----
66
0

query I rowsort
SELECT ALL 33 * - - 93
----
3069

query I rowsort
SELECT 37 * - 81
----
-2997

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT - COUNT( * ) * + 46 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7480
SELECT - COUNT ( * ) * + 46 AS col1
----
-46

query I rowsort
SELECT - 5 * 43
----
-215

query II rowsort
SELECT DISTINCT 55 * 39 col0, - 39 + + 45
----
2145
6

query I rowsort
SELECT 42 * 7 col1
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-7484
SELECT ALL + 83 + - 0 + - + 63 DIV + - 51 col1
----
84

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL + 83 + - 0 + - + 63 / + - 51 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ( - + COUNT( * ) ) + + 0
----
-1

skipif mysql # not compatible
query I rowsort label-7485
SELECT ( - + COUNT ( * ) ) + + 0
----
-1

query I rowsort
SELECT 67 * + 31 AS col0
----
2077

query I rowsort
SELECT 71 * - ( + 10 ) AS col0
----
-710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT DISTINCT 13 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT 13 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( 98 ) * - 90 AS col1
----
-8820

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT 51 + - 96 + COUNT( * ) - 54 + 10 * + + 37 + + 33 * - 18 * + 54 + 78 AS col0
----
-31726

skipif mysql # not compatible
query I rowsort label-7490
SELECT 51 + - 96 + COUNT ( * ) - 54 + 10 * + + 37 + + 33 * - 18 * + 54 + 78 AS col0
----
-31726

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT MIN( ALL - + 95 ) * 47 * + - COUNT( * ) * + 34 col1
----
151810

skipif mysql # not compatible
query I rowsort label-7491
SELECT MIN ( ALL - + 95 ) * 47 * + - COUNT ( * ) * + 34 col1
----
151810

query II rowsort
SELECT 93 + + 13 AS col2, 62 + + 66
----
106
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT - SUM( - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-7493
SELECT - SUM ( - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT ALL + 48 + - + COUNT( * ) + - ( - 81 ) * - 87
----
-7000

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL + 48 + - + COUNT ( * ) + - ( - 81 ) * - 87
----
-7000

query I rowsort
SELECT 83 * + 81
----
6723

onlyif mysql # DIV for integer division: 
query I rowsort label-7496
SELECT ALL - 49 + - 71 + 5 DIV + + 83 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - 49 + - 71 + 5 / + + 83 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-7497
SELECT ALL + ( + 72 ) - COUNT( * ) - - + 82 AS col2, MIN( ALL - 39 ) * + + 85 AS col0
----
153
-3315

skipif mysql # not compatible
query II rowsort label-7497
SELECT ALL + ( + 72 ) - COUNT ( * ) - - + 82 AS col2, MIN ( ALL - 39 ) * + + 85 AS col0
----
153
-3315

query I rowsort
SELECT DISTINCT + + 28 * - - 19
----
532

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT - 11 * + - 4 + MIN( - 11 ) col0, - 58 AS col0
----
33
-58

skipif mysql # not compatible
query II rowsort label-7499
SELECT - 11 * + - 4 + MIN ( - 11 ) col0, - 58 AS col0
----
33
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL + SUM( - 42 ) * + 52 AS col2
----
-2184

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + SUM ( - 42 ) * + 52 AS col2
----
-2184

query I rowsort
SELECT 83 + + 18 + - 51 AS col0
----
50

query II rowsort
SELECT 56 AS col2, ( 56 ) AS col1
----
56
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7503
SELECT ALL - NULLIF ( - COUNT( * ), + 25 ) * 27 * + 96 - SUM( ALL 55 ) AS col0, 5 + + 62 col2
----
2537
67

skipif mysql # not compatible
query II rowsort label-7503
SELECT ALL - NULLIF ( - COUNT ( * ), + 25 ) * 27 * + 96 - SUM ( ALL 55 ) AS col0, 5 + + 62 col2
----
2537
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7504
SELECT 81, CAST( + ( + 58 ) AS SIGNED ) AS col1
----
81
58

skipif mysql # not compatible
query II rowsort label-7504
SELECT 81, CAST ( + ( + 58 ) AS INTEGER ) AS col1
----
81
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7505
SELECT - 78 * + 89 + + COALESCE ( 65, + 57, + 53 ) + - 39 * 50 - + 18 - + - COALESCE ( MIN( DISTINCT + 81 ), - - 22 * MAX( 70 ) + - 13 * - CAST( NULL AS SIGNED ), CAST( + 61 AS SIGNED ) * - 47 ) DIV + MIN( ( 27 ) )
----
-8842

skipif mysql # not compatible
query I rowsort label-7505
SELECT - 78 * + 89 + + COALESCE ( 65, + 57, + 53 ) + - 39 * 50 - + 18 - + - COALESCE ( MIN ( DISTINCT + 81 ), - - 22 * MAX ( 70 ) + - 13 * - CAST ( NULL AS INTEGER ), CAST ( + 61 AS INTEGER ) * - 47 ) / + MIN ( ( 27 ) )
----
-8842

query II rowsort
SELECT DISTINCT - 80 AS col1, - 53 AS col2
----
-80
-53

query I rowsort
SELECT ALL + 54 * + 45
----
2430

onlyif mysql # DIV for integer division: 
query I rowsort label-7508
SELECT DISTINCT + ( + - 66 ) DIV - 4 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT + ( + - 66 ) / - 4 AS col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7509
SELECT ALL + - 10 AS col0, - 52 * ( - - SUM( ALL - 82 ) ) * 40 col0
----
-10
170560

skipif mysql # not compatible
query II rowsort label-7509
SELECT ALL + - 10 AS col0, - 52 * ( - - SUM ( ALL - 82 ) ) * 40 col0
----
-10
170560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT - CAST( - 46 AS SIGNED ) + - 13 col0
----
33

skipif mysql # not compatible
query I rowsort label-7510
SELECT - CAST ( - 46 AS INTEGER ) + - 13 col0
----
33

query I rowsort
SELECT - 94 + + 28
----
-66

query II rowsort
SELECT 79 AS col2, + 47 AS col2
----
79
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7513
SELECT ALL - 33 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL - 33 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7514
SELECT COALESCE ( 42, - - 66, 94 ) * - 4 - - 79 * + 97 + COALESCE ( 27, - AVG ( DISTINCT 37 ) + + - 27 + - - 32, 10 + + 6 + - + SUM( DISTINCT - 23 ) + 85 ) DIV 15 + 95
----
7591

skipif mysql # not compatible
query I rowsort label-7514
SELECT COALESCE ( 42, - - 66, 94 ) * - 4 - - 79 * + 97 + COALESCE ( 27, - AVG ( DISTINCT 37 ) + + - 27 + - - 32, 10 + + 6 + - + SUM ( DISTINCT - 23 ) + 85 ) / 15 + 95
----
7591

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7515
SELECT ALL 8 + - COUNT( + 80 ) + - 3 DIV + + 12 * + 57
----
7

skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL 8 + - COUNT ( + 80 ) + - 3 / + + 12 * + 57
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7516
SELECT ALL 67 + + 56 DIV ( - 36 ) + + 27 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL 67 + + 56 / ( - 36 ) + + 27 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + SUM( DISTINCT - 32 ) + + 38
----
6

skipif mysql # not compatible
query I rowsort label-7517
SELECT + SUM ( DISTINCT - 32 ) + + 38
----
6

query I rowsort
SELECT ALL ( - - 44 ) * - + 25
----
-1100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7519
SELECT + 49 + MIN( - 1 ) DIV + 46 + + 69
----
118

skipif mysql # not compatible
query I rowsort label-7519
SELECT + 49 + MIN ( - 1 ) / + 46 + + 69
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7520
SELECT - CASE - - SUM( + - 39 ) WHEN + + 24 * 74 + - NULLIF ( - + 83, - COALESCE ( NULLIF ( + 7, 80 ), 1, + 40 ) ) + - - 21 THEN NULL WHEN CAST( NULL AS SIGNED ) / + - 66 + 75 * + 99 THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT - CASE - - SUM ( + - 39 ) WHEN + + 24 * 74 + - NULLIF ( - + 83, - COALESCE ( NULLIF ( + 7, 80 ), 1, + 40 ) ) + - - 21 THEN NULL WHEN CAST ( NULL AS INTEGER ) / + - 66 + 75 * + 99 THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7521
SELECT DISTINCT 66 + + 86 + + 7 DIV - 27 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT 66 + + 86 + + 7 / - 27 AS col0
----
152

query I rowsort
SELECT - 95 + - + ( 87 ) * + COALESCE ( + - 64, 84 + 71 + + - 69 * + 91 ) AS col0
----
5473

query II rowsort
SELECT DISTINCT 71 + - + 49 AS col0, - 60 AS col2
----
22
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7524
SELECT ALL - CASE + 62 WHEN + 90 THEN 98 WHEN - SUM( - + NULLIF ( - 7, + + 7 ) ) THEN NULL WHEN 42 THEN NULL ELSE NULL END * + CASE + 73 WHEN + CAST( NULL AS DECIMAL ) * - 79 THEN + - 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - CASE + 62 WHEN + 90 THEN 98 WHEN - SUM ( - + NULLIF ( - 7, + + 7 ) ) THEN NULL WHEN 42 THEN NULL ELSE NULL END * + CASE + 73 WHEN + CAST ( NULL AS REAL ) * - 79 THEN + - 44 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7525
SELECT + COUNT( * ) + 19, 96 AS col0
----
20
96

skipif mysql # not compatible
query II rowsort label-7525
SELECT + COUNT ( * ) + 19, 96 AS col0
----
20
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL 6 - + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL 6 - + COUNT ( * )
----
5

query I rowsort
SELECT + 76 + + 35 + 36
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL CASE - COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN - + COUNT( + NULLIF ( 66, - - 21 ) ) * - 52 THEN + 28 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL CASE - COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - + COUNT ( + NULLIF ( 66, - - 21 ) ) * - 52 THEN + 28 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT - 70 - - - ( + 94 ) + + MIN( ALL 73 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-7529
SELECT - 70 - - - ( + 94 ) + + MIN ( ALL 73 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT + + 94 + - + MIN( + 21 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7530
SELECT + + 94 + - + MIN ( + 21 ) AS col2
----
73

query I rowsort
SELECT - - 88 - - 33 + - NULLIF ( + 34, ( - 81 ) )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7532
SELECT - + 13 + - + 94 AS col1, + CAST( - + 96 AS SIGNED )
----
-107
-96

skipif mysql # not compatible
query II rowsort label-7532
SELECT - + 13 + - + 94 AS col1, + CAST ( - + 96 AS INTEGER )
----
-107
-96

query I rowsort
SELECT + 57 * 37
----
2109

query II rowsort
SELECT ( + 18 ), - 79 + - 26 AS col2
----
18
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT - 71 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT - 71 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT - - ( - NULLIF ( - ( + 72 ), + COUNT( * ) ) ) * - 41
----
-2952

skipif mysql # not compatible
query I rowsort label-7536
SELECT - - ( - NULLIF ( - ( + 72 ), + COUNT ( * ) ) ) * - 41
----
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL + - CASE + + NULLIF ( + 23, - - 39 * - 74 * + + ( - 43 ) ) WHEN + + COUNT( * ) THEN NULL ELSE 92 END
----
-92

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL + - CASE + + NULLIF ( + 23, - - 39 * - 74 * + + ( - 43 ) ) WHEN + + COUNT ( * ) THEN NULL ELSE 92 END
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT + + MIN( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + + MIN ( - 16 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7539
SELECT ALL + + CAST( 71 AS SIGNED ) * COUNT( 94 ) DIV + - 90
----
0

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL + + CAST ( 71 AS INTEGER ) * COUNT ( 94 ) / + - 90
----
0

query I rowsort
SELECT CASE - ( - - 11 ) WHEN 56 + + 22 THEN - 79 END AS col1
----
NULL

query I rowsort
SELECT - - 87 + + 26 AS col0
----
113

query I rowsort
SELECT DISTINCT + + 83 * 78 * 35 + 8 AS col2
----
226598

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7543
SELECT - + CAST( NULL AS DECIMAL ) * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT - + CAST ( NULL AS REAL ) * 63 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 33 * + - 67 + + - 89
----
-2300

query I rowsort
SELECT - 73 * + 19
----
-1387

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT + NULLIF ( + 2, NULLIF ( - NULLIF ( 49, - + 66 ), + - COUNT( * ) * 66 * + 19 ) / 59 + + - 36 + MAX( ALL - - 95 ) - - 19 * 93 + 30 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT + NULLIF ( + 2, NULLIF ( - NULLIF ( 49, - + 66 ), + - COUNT ( * ) * 66 * + 19 ) / 59 + + - 36 + MAX ( ALL - - 95 ) - - 19 * 93 + 30 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7547
SELECT + SUM( DISTINCT - ( + 27 ) ), + 23 AS col2
----
-27
23

skipif mysql # not compatible
query II rowsort label-7547
SELECT + SUM ( DISTINCT - ( + 27 ) ), + 23 AS col2
----
-27
23

query I rowsort
SELECT + 43 * + + 3 AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT NULLIF ( + COUNT( * ), 85 * + - 74 + - 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7549
SELECT NULLIF ( + COUNT ( * ), 85 * + - 74 + - 21 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7550
SELECT + 62 * + 66 * SUM( DISTINCT ( - - 16 ) ) - - 29 + + 5 DIV - + 33 AS col0
----
65501

skipif mysql # not compatible
query I rowsort label-7550
SELECT + 62 * + 66 * SUM ( DISTINCT ( - - 16 ) ) - - 29 + + 5 / - + 33 AS col0
----
65501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7551
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL 25 * + - 18
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - SUM( 40 ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7553
SELECT - SUM ( 40 ) AS col2
----
-40

query I rowsort
SELECT + 36 + - 9
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT - ( - - COALESCE ( - - ( + + CAST( NULL AS SIGNED ) ), - 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-7555
SELECT - ( - - COALESCE ( - - ( + + CAST ( NULL AS INTEGER ) ), - 16 ) )
----
16

query I rowsort
SELECT DISTINCT + 3 * - + 12
----
-36

query I rowsort
SELECT DISTINCT 55 * 54 - + 98 - 10 AS col0
----
2862

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7558
SELECT + CAST( NULL AS SIGNED ) + + 48 / + 40 col2, - 78 * 29 * + 67
----
NULL
-151554

skipif mysql # not compatible
query II rowsort label-7558
SELECT + CAST ( NULL AS INTEGER ) + + 48 / + 40 col2, - 78 * 29 * + 67
----
NULL
-151554

onlyif mysql # aggregate syntax: 
query II rowsort label-7559
SELECT + SUM( + 4 ) - - - 46 AS col0, + 39 AS col0
----
-42
39

skipif mysql # not compatible
query II rowsort label-7559
SELECT + SUM ( + 4 ) - - - 46 AS col0, + 39 AS col0
----
-42
39

query I rowsort
SELECT DISTINCT + 76 * - + 17 AS col1
----
-1292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7561
SELECT - CAST( NULL AS SIGNED ) * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT - CAST ( NULL AS INTEGER ) * - 20
----
NULL

query I rowsort
SELECT + 53 * + + 80
----
4240

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT - COUNT( ALL + - 12 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7563
SELECT - COUNT ( ALL + - 12 ) AS col2
----
-1

query II rowsort
SELECT 51 AS col1, 63 AS col2
----
51
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT + 47 + + + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-7565
SELECT + 47 + + + COUNT ( * ) AS col2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT ALL 11 DIV - 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL 11 / - 60 AS col2
----
0

query I rowsort
SELECT + + 48 * 81
----
3888

query I rowsort
SELECT + 2 + - + 32 * + + COALESCE ( + 75, ( 56 ) ) AS col0
----
-2398

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7569
SELECT DISTINCT + ( - COUNT( * ) ) * + 10 * - 24 AS col0, - 89 DIV + - 96 AS col0
----
240
0

skipif mysql # not compatible
query II rowsort label-7569
SELECT DISTINCT + ( - COUNT ( * ) ) * + 10 * - 24 AS col0, - 89 / + - 96 AS col0
----
240
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7570
SELECT DISTINCT + 10 DIV ( + 89 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT + 10 / ( + 89 ) AS col2
----
0

query I rowsort
SELECT DISTINCT CASE 32 WHEN 51 THEN - 2 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT + 69 * - 97 + COALESCE ( + 17, - - 55 * - COUNT( * ) )
----
-6676

skipif mysql # not compatible
query I rowsort label-7572
SELECT + 69 * - 97 + COALESCE ( + 17, - - 55 * - COUNT ( * ) )
----
-6676

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT DISTINCT + SUM( 32 ) * - 64 - - COUNT( * ) * - + 42 AS col2
----
-2090

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT + SUM ( 32 ) * - 64 - - COUNT ( * ) * - + 42 AS col2
----
-2090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7574
SELECT ALL - - 71 / CASE - - 70 WHEN - + 93 * - + CAST( + + ( - + AVG ( 93 ) ) AS SIGNED ) THEN ( 31 ) * 37 ELSE + COUNT( * ) + + 37 + - 51 + - CAST( NULL AS SIGNED ) + + COUNT( * ) * - COUNT( DISTINCT + 50 ) * + NULLIF ( COALESCE ( - 55, 36 * - 75 ) * 31 - - SUM( DISTINCT + 91 + 34 / + 92 ) * 80, 2 * - NULLIF ( + CASE 97 WHEN 14 THEN NULL WHEN + ( - 64 ) THEN 4 END * - 55, - 71 - - 0 ) ) END * ( 6 * - 82 ) + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL - - 71 / CASE - - 70 WHEN - + 93 * - + CAST ( + + ( - + AVG ( 93 ) ) AS INTEGER ) THEN ( 31 ) * 37 ELSE + COUNT ( * ) + + 37 + - 51 + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - COUNT ( DISTINCT + 50 ) * + NULLIF ( COALESCE ( - 55, 36 * - 75 ) * 31 - - SUM ( DISTINCT + 91 + 34 / + 92 ) * 80, 2 * - NULLIF ( + CASE 97 WHEN 14 THEN NULL WHEN + ( - 64 ) THEN 4 END * - 55, - 71 - - 0 ) ) END * ( 6 * - 82 ) + - 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7575
SELECT + 10 DIV 55 * - 40 * - 76 * NULLIF ( + + COALESCE ( + 74, 53 * + 48 - + 94 * - + ( - 37 ) - + 52 ), + 54 ) * CAST( + - 48 AS SIGNED ) + - 52 + + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-7575
SELECT + 10 / 55 * - 40 * - 76 * NULLIF ( + + COALESCE ( + 74, 53 * + 48 - + 94 * - + ( - 37 ) - + 52 ), + 54 ) * CAST ( + - 48 AS INTEGER ) + - 52 + + COUNT ( * )
----
-51

query I rowsort
SELECT + - ( - 61 )
----
61

query I rowsort
SELECT + 49 + + 88 + - - 97 AS col1
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7578
SELECT + + 7 AS col0, - 98 + + - 73 + CAST( NULL AS SIGNED ) + 70 - + 33 + - 64 * - - COUNT( * ) * - - 43
----
7
NULL

skipif mysql # not compatible
query II rowsort label-7578
SELECT + + 7 AS col0, - 98 + + - 73 + CAST ( NULL AS INTEGER ) + 70 - + 33 + - 64 * - - COUNT ( * ) * - - 43
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT + ( - + 94 ) * + ( 61 ) - + 49 - SUM( 81 ) * 4 + ( - 93 ) col2
----
-6200

skipif mysql # not compatible
query I rowsort label-7579
SELECT + ( - + 94 ) * + ( 61 ) - + 49 - SUM ( 81 ) * 4 + ( - 93 ) col2
----
-6200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7580
SELECT - CAST( 74 AS SIGNED ) - 40
----
-114

skipif mysql # not compatible
query I rowsort label-7580
SELECT - CAST ( 74 AS INTEGER ) - 40
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-7581
SELECT DISTINCT - + 77 AS col2, + 50 + + + MAX( DISTINCT COALESCE ( - 46, - - 93 ) )
----
-77
4

skipif mysql # not compatible
query II rowsort label-7581
SELECT DISTINCT - + 77 AS col2, + 50 + + + MAX ( DISTINCT COALESCE ( - 46, - - 93 ) )
----
-77
4

query I rowsort
SELECT 61 * + 78 + - 89 AS col0
----
4669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7583
SELECT ALL + 34 + 40 + - CAST( NULL AS SIGNED ) / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + 34 + 40 + - CAST ( NULL AS INTEGER ) / - 98
----
NULL

query I rowsort
SELECT 61 + + - 10 AS col0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7585
SELECT 98 * 11 - - COUNT( * ) + 52 - 63 + + + 72 * SUM( DISTINCT + 85 ) * - COUNT( DISTINCT 76 ) + ( + - COUNT( * ) ) * + 74 * - + 13 AS col1, 45 * - - 75 AS col1
----
-4090
3375

skipif mysql # not compatible
query II rowsort label-7585
SELECT 98 * 11 - - COUNT ( * ) + 52 - 63 + + + 72 * SUM ( DISTINCT + 85 ) * - COUNT ( DISTINCT 76 ) + ( + - COUNT ( * ) ) * + 74 * - + 13 AS col1, 45 * - - 75 AS col1
----
-4090
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL - COUNT( * ) - - + 93 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL - COUNT ( * ) - - + 93 AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7587
SELECT CAST( - - CASE 18 WHEN - 20 * - + 64 - 40 * + 89 / 5 THEN - 38 * - ( 40 ) - + 35 ELSE + - 47 END AS SIGNED ) * 38 + - + 47 AS col1
----
-1833

skipif mysql # not compatible
query I rowsort label-7587
SELECT CAST ( - - CASE 18 WHEN - 20 * - + 64 - 40 * + 89 / 5 THEN - 38 * - ( 40 ) - + 35 ELSE + - 47 END AS INTEGER ) * 38 + - + 47 AS col1
----
-1833

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7588
SELECT ALL - 62 * - 60 * + NULLIF ( + 34, 74 * 14 * + - ( + CAST( NULL AS DECIMAL ) ) ) AS col2
----
126480

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - 62 * - 60 * + NULLIF ( + 34, 74 * 14 * + - ( + CAST ( NULL AS REAL ) ) ) AS col2
----
126480

query I rowsort
SELECT 5 + + + NULLIF ( 92, + COALESCE ( + 32, + + 16 ) ) AS col2
----
97

query I rowsort
SELECT 12 * + 53 AS col0
----
636

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT 82 + COUNT( * ) * + - 67
----
15

skipif mysql # not compatible
query I rowsort label-7591
SELECT 82 + COUNT ( * ) * + - 67
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7592
SELECT DISTINCT - COUNT( * ) DIV 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT - COUNT ( * ) / 34 AS col0
----
0

query I rowsort
SELECT 92 + - 15 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT - COALESCE ( 84, - 2 * 27 + + 49, COUNT( * ), 33 * - 9 + 39 ) * + 52 AS col0
----
-4368

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT - COALESCE ( 84, - 2 * 27 + + 49, COUNT ( * ), 33 * - 9 + 39 ) * + 52 AS col0
----
-4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7595
SELECT 40 + + - CASE + - 71 WHEN - 40 / CASE 1 WHEN 85 / + AVG ( 74 ) + - 28 + 93 + + CASE + + CAST( + 76 AS SIGNED ) WHEN + ( - ( + ( - - 6 ) ) ) THEN + 85 WHEN - 72 + + 78 THEN - 58 + CASE - 62 WHEN MAX( ALL 15 ) THEN NULL WHEN 47 THEN COUNT( * ) END WHEN - CAST( NULL AS SIGNED ) * COUNT( * ) + COUNT( * ) * 38 THEN NULL ELSE NULL END * ( + CAST( NULL AS SIGNED ) * 88 ) THEN - 6 ELSE 58 * 8 END + 3 THEN NULL ELSE - 46 + + COUNT( * ) * - 67 END * 79 col1
----
8967

skipif mysql # not compatible
query I rowsort label-7595
SELECT 40 + + - CASE + - 71 WHEN - 40 / CASE 1 WHEN 85 / + AVG ( 74 ) + - 28 + 93 + + CASE + + CAST ( + 76 AS INTEGER ) WHEN + ( - ( + ( - - 6 ) ) ) THEN + 85 WHEN - 72 + + 78 THEN - 58 + CASE - 62 WHEN MAX ( ALL 15 ) THEN NULL WHEN 47 THEN COUNT ( * ) END WHEN - CAST ( NULL AS INTEGER ) * COUNT ( * ) + COUNT ( * ) * 38 THEN NULL ELSE NULL END * ( + CAST ( NULL AS INTEGER ) * 88 ) THEN - 6 ELSE 58 * 8 END + 3 THEN NULL ELSE - 46 + + COUNT ( * ) * - 67 END * 79 col1
----
8967

query I rowsort
SELECT 11 * - ( 62 )
----
-682

query I rowsort
SELECT + 39 + - 60 + 57 * - - 81 + - 91
----
4505

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT ( - 11 ) + - 14 + - - NULLIF ( - 83, 70 / - - COUNT( * ) )
----
-108

skipif mysql # not compatible
query I rowsort label-7598
SELECT ( - 11 ) + - 14 + - - NULLIF ( - 83, 70 / - - COUNT ( * ) )
----
-108

query I rowsort
SELECT + 66 + - 15
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7600
SELECT ALL - 31 + + 35 - 70 - SUM( DISTINCT + + 94 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - 31 + + 35 - 70 - SUM ( DISTINCT + + 94 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - 89 - + 53 AS col2, 48 col0
----
-142
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7602
SELECT - COALESCE ( + 11, - - 41 * + - 66 DIV - 49, + + 32 ) + + 51 * 39 AS col2
----
1978

skipif mysql # not compatible
query I rowsort label-7602
SELECT - COALESCE ( + 11, - - 41 * + - 66 / - 49, + + 32 ) + + 51 * 39 AS col2
----
1978

query I rowsort
SELECT 27 + - 96
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT DISTINCT - 48 + 74 - - CAST( NULL AS SIGNED ) * + 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT - 48 + 74 - - CAST ( NULL AS INTEGER ) * + 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT DISTINCT - 37 + - COUNT( * ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT - 37 + - COUNT ( * ) col2
----
-38

query I rowsort
SELECT ALL + ( + 65 ) + - - 78 AS col0
----
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT ( + 28 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT ( + 28 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7608
SELECT ALL - 4 DIV - - 56 AS col2, 30 AS col2
----
0
30

skipif mysql # not compatible
query II rowsort label-7608
SELECT ALL - 4 / - - 56 AS col2, 30 AS col2
----
0
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT + + MIN( ALL - 21 ) * - + 81 * + 17 + - 78 AS col2
----
28839

skipif mysql # not compatible
query I rowsort label-7609
SELECT + + MIN ( ALL - 21 ) * - + 81 * + 17 + - 78 AS col2
----
28839

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7610
SELECT + + 69 / + 41 + + - 60 + + + 38 + 54 + - 73 * - - ( + ( COUNT( DISTINCT + 28 ) ) ) + + 20 * + CASE + 64 WHEN CAST( + 86 AS SIGNED ) * MIN( DISTINCT - - 70 ) THEN NULL WHEN - 33 THEN - AVG ( + 15 ) END * - 14 / COUNT( ALL 73 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT + + 69 / + 41 + + - 60 + + + 38 + 54 + - 73 * - - ( + ( COUNT ( DISTINCT + 28 ) ) ) + + 20 * + CASE + 64 WHEN CAST ( + 86 AS INTEGER ) * MIN ( DISTINCT - - 70 ) THEN NULL WHEN - 33 THEN - AVG ( + 15 ) END * - 14 / COUNT ( ALL 73 ) col0
----
NULL

query I rowsort
SELECT ALL - 54 + 21 col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT - 49 * - + 15 col0, + MIN( DISTINCT + 42 ) * 65 * + MAX( - - 96 ) + - 52 AS col0
----
735
262028

skipif mysql # not compatible
query II rowsort label-7612
SELECT - 49 * - + 15 col0, + MIN ( DISTINCT + 42 ) * 65 * + MAX ( - - 96 ) + - 52 AS col0
----
735
262028

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7613
SELECT 87 + CAST( + 16 AS SIGNED ) + - 62 - + - 71 DIV 93 + - 10 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7613
SELECT 87 + CAST ( + 16 AS INTEGER ) + - 62 - + - 71 / 93 + - 10 AS col0
----
31

query I rowsort
SELECT ALL 49 * - 61 * + - 12 * - - 30
----
1076040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7615
SELECT + 29 * - ( - NULLIF ( - 73, + COUNT( * ) ) ) + + 5 DIV + - 88 + + 18 DIV - COUNT( * ) col1
----
-2135

skipif mysql # not compatible
query I rowsort label-7615
SELECT + 29 * - ( - NULLIF ( - 73, + COUNT ( * ) ) ) + + 5 / + - 88 + + 18 / - COUNT ( * ) col1
----
-2135

query I rowsort
SELECT 2 * 93 + + 93 * + - 65
----
-5859

query I rowsort
SELECT DISTINCT 55 - + + 57 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL - SUM( 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL - SUM ( 3 )
----
-3

query I rowsort
SELECT 2 * + 74
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT MAX( - 43 ) - + + 59
----
-102

skipif mysql # not compatible
query I rowsort label-7620
SELECT MAX ( - 43 ) - + + 59
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-7621
SELECT 21 DIV 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7621
SELECT 21 / 60 AS col2
----
0

query I rowsort
SELECT ALL - 31 * 13 AS col1
----
-403

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT MIN( ALL + 65 ) * + + 21 + + - COALESCE ( 54, 67 * - - 93 * 76 ) - - + 28 + COUNT( * )
----
1340

skipif mysql # not compatible
query I rowsort label-7623
SELECT MIN ( ALL + 65 ) * + + 21 + + - COALESCE ( 54, 67 * - - 93 * 76 ) - - + 28 + COUNT ( * )
----
1340

query I rowsort
SELECT + 15 * + + 82 - - - 37 * + 73 * 30 * 48
----
-3888210

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT COUNT( * ) + - - 61 + + 43 AS col2
----
105

skipif mysql # not compatible
query I rowsort label-7625
SELECT COUNT ( * ) + - - 61 + + 43 AS col2
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT ALL COUNT( * ) AS col1, - COUNT( * ) + + ( + + 43 ) AS col1
----
1
42

skipif mysql # not compatible
query II rowsort label-7626
SELECT ALL COUNT ( * ) AS col1, - COUNT ( * ) + + ( + + 43 ) AS col1
----
1
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7627
SELECT DISTINCT + 93 + + 20 - - CAST( - - 55 AS SIGNED ) * - 8
----
-327

skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT + 93 + + 20 - - CAST ( - - 55 AS INTEGER ) * - 8
----
-327

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7628
SELECT ALL + - ( - - COUNT( ALL - 10 ) ) DIV 3 * - - 99, + 36 * - 46 AS col0
----
0
-1656

skipif mysql # not compatible
query II rowsort label-7628
SELECT ALL + - ( - - COUNT ( ALL - 10 ) ) / 3 * - - 99, + 36 * - 46 AS col0
----
0
-1656

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT - 90 * - + MAX( DISTINCT - ( + 13 ) )
----
-1170

skipif mysql # not compatible
query I rowsort label-7629
SELECT - 90 * - + MAX ( DISTINCT - ( + 13 ) )
----
-1170

query II rowsort
SELECT COALESCE ( + 72, 65 ) AS col1, 29 AS col0
----
72
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - + MAX( DISTINCT - + 1 ) + + 82
----
83

skipif mysql # not compatible
query I rowsort label-7631
SELECT - + MAX ( DISTINCT - + 1 ) + + 82
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7632
SELECT - 17 DIV + 47 col1
----
0

skipif mysql # not compatible
query I rowsort label-7632
SELECT - 17 / + 47 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT - - CAST( - COUNT( * ) AS SIGNED ) + 21 / 16 * + CAST( NULL AS SIGNED ) + - 3 / - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7633
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) + 21 / 16 * + CAST ( NULL AS INTEGER ) + - 3 / - 6 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT + 91 - + CAST( + + 30 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-7634
SELECT + 91 - + CAST ( + + 30 AS INTEGER )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT - COUNT( + + 53 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7635
SELECT - COUNT ( + + 53 ) AS col1
----
-1

query I rowsort
SELECT + + 24 * + 46 * - + 87 + - 59
----
-96107

query I rowsort
SELECT - NULLIF ( - 53, - 18 )
----
53

query II rowsort
SELECT DISTINCT 11 AS col0, - 22
----
11
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - + CASE 93 WHEN + 10 THEN NULL WHEN + 84 THEN 78 WHEN + - 51 / + 42 + 21 THEN - 96 / - 32 * + 56 + NULLIF ( - 36, - 84 ) - + COUNT( 95 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT - + CASE 93 WHEN + 10 THEN NULL WHEN + 84 THEN 78 WHEN + - 51 / + 42 + 21 THEN - 96 / - 32 * + 56 + NULLIF ( - 36, - 84 ) - + COUNT ( 95 ) END
----
NULL

query I rowsort
SELECT ALL - - 72 * 29
----
2088

query I rowsort
SELECT - 67 * + - 87 AS col1
----
5829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7642
SELECT - COUNT( * ) - + COUNT( * ) * 19 * + COALESCE ( CASE + - 57 WHEN - 83 THEN + 61 * - 48 + + - COUNT( * ) - + 64 * + ( + - CAST( - 62 AS SIGNED ) ) + COUNT( * ) DIV + - 29 DIV + + 17 * 77 + + 34 ELSE + 49 END, - 85 + 97 ) DIV COUNT( * ) - 33 DIV - 43 AS col0
----
-932

skipif mysql # not compatible
query I rowsort label-7642
SELECT - COUNT ( * ) - + COUNT ( * ) * 19 * + COALESCE ( CASE + - 57 WHEN - 83 THEN + 61 * - 48 + + - COUNT ( * ) - + 64 * + ( + - CAST ( - 62 AS INTEGER ) ) + COUNT ( * ) / + - 29 / + + 17 * 77 + + 34 ELSE + 49 END, - 85 + 97 ) / COUNT ( * ) - 33 / - 43 AS col0
----
-932

query I rowsort
SELECT - ( + 92 ) * - 27 * + 81 * + + 1 * + 54 AS col1
----
10865016

query I rowsort
SELECT - 33 + + 17 + + 80 col0
----
64

query I rowsort
SELECT + - 98 * - - 25 * + 63
----
-154350

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT ALL + + COUNT( 67 )
----
1

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL + + COUNT ( 67 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7647
SELECT + 50 * 69 * + 48 + - 40 + - CAST( - SUM( 8 ) AS SIGNED ) * - 58 - - ( - - 94 ) * - 21 AS col1
----
163122

skipif mysql # not compatible
query I rowsort label-7647
SELECT + 50 * 69 * + 48 + - 40 + - CAST ( - SUM ( 8 ) AS INTEGER ) * - 58 - - ( - - 94 ) * - 21 AS col1
----
163122

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT CASE - 24 WHEN + COUNT( * ) + 12 THEN + + 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT CASE - 24 WHEN + COUNT ( * ) + 12 THEN + + 20 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT ALL 2 DIV NULLIF ( + 88, + + 34 - - - 6 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL 2 / NULLIF ( + 88, + + 34 - - - 6 ) AS col2
----
0

query I rowsort
SELECT ALL + NULLIF ( 97, - - 76 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT CAST( NULL AS SIGNED ) / + 26 - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT CAST ( NULL AS INTEGER ) / + 26 - 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7652
SELECT ALL + 44 DIV - COUNT( * ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL + 44 / - COUNT ( * ) AS col2
----
-44

query I rowsort
SELECT + 78 * - - 66 col2
----
5148

query I rowsort
SELECT 8 * 18 + + + 10 AS col2
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT COUNT( * ) * + 21 + - ( + 60 ) AS col1, - 73 + - - CASE - 6 WHEN 80 THEN + MIN( ALL + - 69 ) ELSE NULL END AS col2
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-7655
SELECT COUNT ( * ) * + 21 + - ( + 60 ) AS col1, - 73 + - - CASE - 6 WHEN 80 THEN + MIN ( ALL + - 69 ) ELSE NULL END AS col2
----
-39
NULL

query I rowsort
SELECT + 54 * - - 51
----
2754

query I rowsort
SELECT + 13 * 32
----
416

onlyif mysql # aggregate syntax: 
query II rowsort label-7658
SELECT + ( - - COUNT( * ) ) AS col0, - 63 * 18 * + 77 AS col1
----
1
-87318

skipif mysql # not compatible
query II rowsort label-7658
SELECT + ( - - COUNT ( * ) ) AS col0, - 63 * 18 * + 77 AS col1
----
1
-87318

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT + COUNT( * ) + - NULLIF ( + + 46, - - 6 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7659
SELECT + COUNT ( * ) + - NULLIF ( + + 46, - - 6 ) AS col0
----
-45

query I rowsort
SELECT 72 * - - 34 - - 15 AS col2
----
2463

query I rowsort
SELECT + 18 * + + CASE - 44 WHEN + 26 THEN - - 95 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 24 * + - 12
----
288

query I rowsort
SELECT DISTINCT - 87 * - 11 * + 34 + - - 32 AS col0
----
32570

onlyif mysql # aggregate syntax: 
query II rowsort label-7664
SELECT ALL + COUNT( DISTINCT 54 ) AS col0, + 11 AS col2
----
1
11

skipif mysql # not compatible
query II rowsort label-7664
SELECT ALL + COUNT ( DISTINCT 54 ) AS col0, + 11 AS col2
----
1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT 72 * + + COUNT( * ) + + 21 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-7665
SELECT 72 * + + COUNT ( * ) + + 21 AS col0
----
93

query II rowsort
SELECT ALL + 92 AS col2, 75
----
92
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT DISTINCT + 10 * COUNT( * ) + + SUM( + 17 ) - - - 89 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT + 10 * COUNT ( * ) + + SUM ( + 17 ) - - - 89 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT COUNT( * ) * + 31 * - 90 * + 13 + - 37 AS col2
----
-36307

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT COUNT ( * ) * + 31 * - 90 * + 13 + - 37 AS col2
----
-36307

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7669
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, CAST( - ( 64 ) AS SIGNED )
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-7669
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, CAST ( - ( 64 ) AS INTEGER )
----
NULL
-64

query II rowsort
SELECT 35, - 63 AS col1
----
35
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7671
SELECT - 4 * - COUNT( * ) + - 78 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT - 4 * - COUNT ( * ) + - 78 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + + 69 * + 6 + - 47 - - COUNT( * ) + + SUM( ALL 44 ) * + + 52 col2
----
2656

skipif mysql # not compatible
query I rowsort label-7672
SELECT + + 69 * + 6 + - 47 - - COUNT ( * ) + + SUM ( ALL 44 ) * + + 52 col2
----
2656

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL - + NULLIF ( COALESCE ( + 68, + + 43 ), - + CASE 33 WHEN - COUNT( * ) / + COUNT( * ) - 48 THEN - + 87 WHEN 46 THEN + 86 + + + 89 + - 13 / + 57 ELSE - + COUNT( DISTINCT - + 20 ) END + 88 ) + - 87 - - ( - 43 ) AS col0
----
-198

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL - + NULLIF ( COALESCE ( + 68, + + 43 ), - + CASE 33 WHEN - COUNT ( * ) / + COUNT ( * ) - 48 THEN - + 87 WHEN 46 THEN + 86 + + + 89 + - 13 / + 57 ELSE - + COUNT ( DISTINCT - + 20 ) END + 88 ) + - 87 - - ( - 43 ) AS col0
----
-198

query I rowsort
SELECT - + ( 86 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT ALL - CAST( + ( + + 80 ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-7675
SELECT ALL - CAST ( + ( + + 80 ) AS INTEGER )
----
-80

query I rowsort
SELECT - - 10 * - 92 AS col0
----
-920

query I rowsort
SELECT ALL 21 - + 9 col0
----
12

query I rowsort
SELECT - 65 + - - 57 + + + 89 AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7679
SELECT + - 7 + + - 57, - COUNT( * ) DIV - - 84 * 60 AS col0
----
-64
0

skipif mysql # not compatible
query II rowsort label-7679
SELECT + - 7 + + - 57, - COUNT ( * ) / - - 84 * 60 AS col0
----
-64
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT + NULLIF ( - 24, - SUM( + 91 ) + + 46 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT + NULLIF ( - 24, - SUM ( + 91 ) + + 46 ) AS col0
----
-24

query I rowsort
SELECT + + 32 + + + 43
----
75

query II rowsort
SELECT - 7, 20 AS col2
----
-7
20

query I rowsort
SELECT ALL COALESCE ( 79, - + 84 ) AS col0
----
79

query I rowsort
SELECT - + 83 * - 59
----
4897

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT ALL - MAX( 80 ) * + ( + - ( - + SUM( DISTINCT + 48 ) ) )
----
-3840

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL - MAX ( 80 ) * + ( + - ( - + SUM ( DISTINCT + 48 ) ) )
----
-3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7686
SELECT + 21 * - + 90 + + CAST( + 5 AS SIGNED ) DIV - - SUM( ALL + - 68 ) AS col0
----
-1890

skipif mysql # not compatible
query I rowsort label-7686
SELECT + 21 * - + 90 + + CAST ( + 5 AS INTEGER ) / - - SUM ( ALL + - 68 ) AS col0
----
-1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7687
SELECT DISTINCT + NULLIF ( 84, 59 ) * MAX( ALL - 33 ) AS col0, - 2 * + SUM( ALL + ( - 77 ) ) + 97 DIV + 93 + - 85 + 32 + - 23 + - 7 * + 64
----
-2772
-369

skipif mysql # not compatible
query II rowsort label-7687
SELECT DISTINCT + NULLIF ( 84, 59 ) * MAX ( ALL - 33 ) AS col0, - 2 * + SUM ( ALL + ( - 77 ) ) + 97 / + 93 + - 85 + 32 + - 23 + - 7 * + 64
----
-2772
-369

query I rowsort
SELECT + CASE 83 WHEN + 6 * 93 THEN + 90 WHEN - 54 - + 11 THEN 45 * 30 + 64 WHEN - - AVG ( + 19 ) THEN 43 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT ALL + ( COALESCE ( - 64, COUNT( * ) * - - 50 * + CAST( NULL AS SIGNED ) + - 72 - + ( - 12 ), + 4 + - 19 ) ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL + ( COALESCE ( - 64, COUNT ( * ) * - - 50 * + CAST ( NULL AS INTEGER ) + - 72 - + ( - 12 ), + 4 + - 19 ) ) AS col2
----
-64

query I rowsort
SELECT + 30 + - 84 AS col1
----
-54

query I rowsort
SELECT - 82 * + 37 + - + 76 col0
----
-3110

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + COUNT( * ) * + 38 * + 43 col2
----
1634

skipif mysql # not compatible
query I rowsort label-7692
SELECT + COUNT ( * ) * + 38 * + 43 col2
----
1634

onlyif mysql # DIV for integer division: 
query II rowsort label-7693
SELECT ALL + 60 DIV 88 * - 35 * + 59 + 71 AS col2, 88 AS col0
----
71
88

skipif mysql # not compatible
query II rowsort label-7693
SELECT ALL + 60 / 88 * - 35 * + 59 + 71 AS col2, 88 AS col0
----
71
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7694
SELECT DISTINCT ( - COUNT( + 66 ) ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT ( - COUNT ( + 66 ) ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT ALL + 99 DIV 42 + 38
----
40

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL + 99 / 42 + 38
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7696
SELECT DISTINCT - COUNT( * ) DIV + - 90 * + 51 + ( + - 37 ) * - 12
----
444

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT - COUNT ( * ) / + - 90 * + 51 + ( + - 37 ) * - 12
----
444

query I rowsort
SELECT + 88 + + + 25
----
113

query I rowsort
SELECT DISTINCT + ( + - 71 ) * 55 - - ( + + 98 ) + - 88 AS col0
----
-3895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7699
SELECT 40 DIV ( + - COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-7699
SELECT 40 / ( + - COUNT ( * ) )
----
-40

query I rowsort
SELECT 11 - - + ( 64 )
----
75

query I rowsort
SELECT 33 + + 70
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT COUNT( * ) + - COALESCE ( - - 96, 74, COUNT( * ) + + 31 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT COUNT ( * ) + - COALESCE ( - - 96, 74, COUNT ( * ) + + 31 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL 43 + + - 98 + - NULLIF ( 58, + 26 + - ( 78 ) ) - + COUNT( * )
----
-114

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL 43 + + - 98 + - NULLIF ( 58, + 26 + - ( 78 ) ) - + COUNT ( * )
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-7704
SELECT ALL 82 * 18 AS col0, + COUNT( * ) - COUNT( * ) * + 82
----
1476
-81

skipif mysql # not compatible
query II rowsort label-7704
SELECT ALL 82 * 18 AS col0, + COUNT ( * ) - COUNT ( * ) * + 82
----
1476
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7705
SELECT DISTINCT CASE 38 WHEN + 78 THEN MIN( 12 ) - + 3 * 85 * - - MIN( 28 ) * - 15 - 58 * - 30 + + + 60 + - + 37 + + 48 * + CASE + ( + 72 ) WHEN + - 82 + - 66 THEN - 14 * + 19 WHEN - COALESCE ( + ( 53 ), - CAST( NULL AS SIGNED ) + - 40 ) / + 21 + CAST( - 32 AS SIGNED ) THEN NULL ELSE NULL END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT CASE 38 WHEN + 78 THEN MIN ( 12 ) - + 3 * 85 * - - MIN ( 28 ) * - 15 - 58 * - 30 + + + 60 + - + 37 + + 48 * + CASE + ( + 72 ) WHEN + - 82 + - 66 THEN - 14 * + 19 WHEN - COALESCE ( + ( 53 ), - CAST ( NULL AS INTEGER ) + - 40 ) / + 21 + CAST ( - 32 AS INTEGER ) THEN NULL ELSE NULL END ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7706
SELECT - - CAST( - 83 AS SIGNED ) AS col0, + COALESCE ( - - 79, 66 + + - CASE - ( + 99 ) WHEN + + 70 + + 15 DIV COUNT( * ) * - 15 + - MAX( ALL + 26 ) THEN ( + ( - 82 ) ) ELSE + - 57 * - ( 79 ) DIV - COUNT( * ) + - + 74 + ( + 12 ) END + ( + COALESCE ( - 56, + 70 ) - 20 * - 2 ) ) AS col2
----
-83
79

skipif mysql # not compatible
query II rowsort label-7706
SELECT - - CAST ( - 83 AS INTEGER ) AS col0, + COALESCE ( - - 79, 66 + + - CASE - ( + 99 ) WHEN + + 70 + + 15 / COUNT ( * ) * - 15 + - MAX ( ALL + 26 ) THEN ( + ( - 82 ) ) ELSE + - 57 * - ( 79 ) / - COUNT ( * ) + - + 74 + ( + 12 ) END + ( + COALESCE ( - 56, + 70 ) - 20 * - 2 ) ) AS col2
----
-83
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT - ( - - CAST( + + COUNT( * ) AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7707
SELECT - ( - - CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col2
----
-1

query I rowsort
SELECT + ( - 40 ) * - 73
----
2920

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL 55 * + 47 + + - MIN( + ( + 3 ) ) * - 99
----
2882

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL 55 * + 47 + + - MIN ( + ( + 3 ) ) * - 99
----
2882

query I rowsort
SELECT ALL 12 * 99 AS col1
----
1188

query I rowsort
SELECT ALL - 15 * - 47 AS col2
----
705

query II rowsort
SELECT 6 col0, - 98 * + - 58 AS col1
----
6
5684

onlyif mysql # aggregate syntax: 
query II rowsort label-7713
SELECT ALL 59, ( + 77 ) + + CASE - 35 WHEN 64 * + ( - 48 ) + + 40 + 40 / + CASE - - 44 WHEN 58 / - 46 * + COUNT( * ) + 78 + - 93 THEN NULL WHEN - 29 THEN + 3 / + COUNT( * ) END THEN NULL WHEN + - 67 THEN 25 END col2
----
59
NULL

skipif mysql # not compatible
query II rowsort label-7713
SELECT ALL 59, ( + 77 ) + + CASE - 35 WHEN 64 * + ( - 48 ) + + 40 + 40 / + CASE - - 44 WHEN 58 / - 46 * + COUNT ( * ) + 78 + - 93 THEN NULL WHEN - 29 THEN + 3 / + COUNT ( * ) END THEN NULL WHEN + - 67 THEN 25 END col2
----
59
NULL

query I rowsort
SELECT 5 * + 76 AS col0
----
380

onlyif mysql # aggregate syntax: 
query II rowsort label-7715
SELECT DISTINCT 16, 47 + + - 43 * - 15 + - 51 * + 59 * - NULLIF ( - - COUNT( * ), + - 45 * - AVG ( - - ( - 7 ) ) + ( - 26 ) ) * + 73 * + - COUNT( * ) AS col1
----
16
-218965

skipif mysql # not compatible
query II rowsort label-7715
SELECT DISTINCT 16, 47 + + - 43 * - 15 + - 51 * + 59 * - NULLIF ( - - COUNT ( * ), + - 45 * - AVG ( - - ( - 7 ) ) + ( - 26 ) ) * + 73 * + - COUNT ( * ) AS col1
----
16
-218965

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT ALL + 44 + - - MAX( - - 79 ) * + 17
----
1387

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL + 44 + - - MAX ( - - 79 ) * + 17
----
1387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7717
SELECT ( - CAST( 67 AS SIGNED ) ) + 33 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7717
SELECT ( - CAST ( 67 AS INTEGER ) ) + 33 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7718
SELECT 44 * - 72 + - CAST( NULL AS SIGNED ) - - + ( 20 ) * - CAST( NULL AS DECIMAL ) AS col1, + 12 AS col2
----
NULL
12

skipif mysql # not compatible
query II rowsort label-7718
SELECT 44 * - 72 + - CAST ( NULL AS INTEGER ) - - + ( 20 ) * - CAST ( NULL AS REAL ) AS col1, + 12 AS col2
----
NULL
12

query I rowsort
SELECT DISTINCT + 99 * - - 94 AS col0
----
9306

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7720
SELECT DISTINCT + 27 + + + ( COUNT( * ) ) * 3 AS col2, - 0 / - COUNT( * ) * + AVG ( DISTINCT 42 ) + - + CAST( NULL AS DECIMAL ) / - 55 * - 10 AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-7720
SELECT DISTINCT + 27 + + + ( COUNT ( * ) ) * 3 AS col2, - 0 / - COUNT ( * ) * + AVG ( DISTINCT 42 ) + - + CAST ( NULL AS REAL ) / - 55 * - 10 AS col2
----
30
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7721
SELECT ALL + MIN( + 27 ) + + COUNT( * ) col2, - NULLIF ( + + 59, - SUM( CAST( NULL AS DECIMAL ) ) + + 24 ) + NULLIF ( - + 98, + 53 / 17 * + + ( + 67 ) ) + COALESCE ( - MIN( + 11 ), + 37 + 25 * + 85 * - 92 - - COUNT( * ) ) * ( + 74 )
----
28
-971

skipif mysql # not compatible
query II rowsort label-7721
SELECT ALL + MIN ( + 27 ) + + COUNT ( * ) col2, - NULLIF ( + + 59, - SUM ( CAST ( NULL AS REAL ) ) + + 24 ) + NULLIF ( - + 98, + 53 / 17 * + + ( + 67 ) ) + COALESCE ( - MIN ( + 11 ), + 37 + 25 * + 85 * - 92 - - COUNT ( * ) ) * ( + 74 )
----
28
-971

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT 9 * - 63 + + 86 * COUNT( * ) AS col1
----
-481

skipif mysql # not compatible
query I rowsort label-7722
SELECT 9 * - 63 + + 86 * COUNT ( * ) AS col1
----
-481

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ALL - MIN( + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL - MIN ( + 23 )
----
-23

query I rowsort
SELECT ALL + 82 + + 90
----
172

query I rowsort
SELECT 20 + + 49
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT 9 * ( 96 ) - + - NULLIF ( 1, - NULLIF ( - - CAST( NULL AS SIGNED ), + 86 * + 77 ) ) AS col0
----
865

skipif mysql # not compatible
query I rowsort label-7726
SELECT 9 * ( 96 ) - + - NULLIF ( 1, - NULLIF ( - - CAST ( NULL AS INTEGER ), + 86 * + 77 ) ) AS col0
----
865

query I rowsort
SELECT + 74 + 26
----
100

query I rowsort
SELECT ALL - 32 * 41 AS col0
----
-1312

query I rowsort
SELECT DISTINCT - 21 - 96
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7730
SELECT ALL - 40 AS col2, CASE + 92 WHEN 87 THEN - + 40 WHEN - 79 THEN NULL WHEN - 39 + 22 + 66 + - 8 * CAST( NULL AS SIGNED ) * 19 + - 57 / - 42 + - + CASE + 50 WHEN + + 33 - - 87 THEN 77 - - - 33 END + + - 38 * - + 95 * - + MAX( + 16 ) * - 65 THEN NULL ELSE - ( - 70 ) END AS col1
----
-40
70

skipif mysql # not compatible
query II rowsort label-7730
SELECT ALL - 40 AS col2, CASE + 92 WHEN 87 THEN - + 40 WHEN - 79 THEN NULL WHEN - 39 + 22 + 66 + - 8 * CAST ( NULL AS INTEGER ) * 19 + - 57 / - 42 + - + CASE + 50 WHEN + + 33 - - 87 THEN 77 - - - 33 END + + - 38 * - + 95 * - + MAX ( + 16 ) * - 65 THEN NULL ELSE - ( - 70 ) END AS col1
----
-40
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7731
SELECT + COUNT( * ) + + - 53 DIV + + 79
----
1

skipif mysql # not compatible
query I rowsort label-7731
SELECT + COUNT ( * ) + + - 53 / + + 79
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7732
SELECT ALL - + CAST( + - AVG ( ALL + 5 ) AS SIGNED ) - + + 73
----
-68

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL - + CAST ( + - AVG ( ALL + 5 ) AS INTEGER ) - + + 73
----
-68

query I rowsort
SELECT + 33 * - 77 * + 26 AS col1
----
-66066

query I rowsort
SELECT 60 + + 92 * + 29 * - 62
----
-165356

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT - SUM( ALL - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7735
SELECT - SUM ( ALL - 61 ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7736
SELECT + CAST( NULL AS SIGNED ), + 59 AS col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-7736
SELECT + CAST ( NULL AS INTEGER ), + 59 AS col1
----
NULL
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7737
SELECT 65 DIV - 64 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7737
SELECT 65 / - 64 AS col2
----
-1

query I rowsort
SELECT 16 * - - 12 + + 72 AS col0
----
264

query II rowsort
SELECT ALL - 55, + 12 * + 43 + - 49 AS col2
----
-55
467

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT ALL + COUNT( * ) * + 70 col2
----
70

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL + COUNT ( * ) * + 70 col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7741
SELECT 45 DIV 90 + 7 + + + 20 + - COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7741
SELECT 45 / 90 + 7 + + + 20 + - COUNT ( * ) AS col1
----
26

query I rowsort
SELECT ( - 89 ) + + + 41 * 65 AS col0
----
2576

query I rowsort
SELECT + 49 + - + 97 - - 65 + + - 55 * + - 38 AS col0
----
2107

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7744
SELECT ALL - 9 AS col0, - CAST( - + 70 AS SIGNED ) AS col2
----
-9
70

skipif mysql # not compatible
query II rowsort label-7744
SELECT ALL - 9 AS col0, - CAST ( - + 70 AS INTEGER ) AS col2
----
-9
70

query II rowsort
SELECT 15 * - 0 AS col1, 57
----
0
57

query I rowsort
SELECT ALL 19 + + 89
----
108

query I rowsort
SELECT 86 * 1 col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7748
SELECT ALL 83 + - + CAST( + COUNT( + 21 ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL 83 + - + CAST ( + COUNT ( + 21 ) AS INTEGER )
----
82

query I rowsort
SELECT ALL 36 * + 75
----
2700

onlyif mysql # DIV for integer division: 
query I rowsort label-7750
SELECT 30 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-7750
SELECT 30 / + 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7751
SELECT CASE COUNT( DISTINCT + + 16 ) WHEN + 26 THEN COALESCE ( + ( + CAST( + + ( 34 ) AS SIGNED ) ), 39, - ( - NULLIF ( - 35, + - 64 / - 71 * + 26 ) ) ) * 37 + + 2 - - 9 * + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT CASE COUNT ( DISTINCT + + 16 ) WHEN + 26 THEN COALESCE ( + ( + CAST ( + + ( 34 ) AS INTEGER ) ), 39, - ( - NULLIF ( - 35, + - 64 / - 71 * + 26 ) ) ) * 37 + + 2 - - 9 * + 96 END
----
NULL

query I rowsort
SELECT COALESCE ( + NULLIF ( 49, 7 ), + 83 ) AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7753
SELECT NULLIF ( - 93, - CAST( + NULLIF ( - COUNT( * ), + - 42 ) AS SIGNED ) + + 50 ) AS col1, 45
----
-93
45

skipif mysql # not compatible
query II rowsort label-7753
SELECT NULLIF ( - 93, - CAST ( + NULLIF ( - COUNT ( * ), + - 42 ) AS INTEGER ) + + 50 ) AS col1, 45
----
-93
45

query I rowsort
SELECT - 17 + 69
----
52

query I rowsort
SELECT + NULLIF ( - 89, - 61 ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT + CASE - + CAST( NULL AS SIGNED ) WHEN - 2 THEN + + 99 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT + CASE - + CAST ( NULL AS INTEGER ) WHEN - 2 THEN + + 99 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT + 36 * + 60 + COUNT( ALL - 88 ) AS col2
----
2161

skipif mysql # not compatible
query I rowsort label-7757
SELECT + 36 * + 60 + COUNT ( ALL - 88 ) AS col2
----
2161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT ALL CAST( NULL AS SIGNED ) * + + 34 - - + 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL CAST ( NULL AS INTEGER ) * + + 34 - - + 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT + NULLIF ( - COALESCE ( - 45, + + ( + 69 ), - - 45 * - 31 + - 97 ), - COUNT( * ) * + - COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-7759
SELECT + NULLIF ( - COALESCE ( - 45, + + ( + 69 ), - - 45 * - 31 + - 97 ), - COUNT ( * ) * + - COUNT ( * ) )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7760
SELECT ALL 42 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL 42 / - 99
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7761
SELECT DISTINCT - 63 * - 50 - 99 * MIN( + 84 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT - 63 * - 50 - 99 * MIN ( + 84 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 93 * + 78 * - 44 + - - 51 AS col0
----
319227

query I rowsort
SELECT ALL - - 30 * - ( + 90 ) * - + 17 * - 80 + 84 col1
----
-3671916

query I rowsort
SELECT - + ( + - 9 ) * + - ( - 68 )
----
612

query II rowsort
SELECT - 61 - - 9 AS col1, 18 + 23
----
-52
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7766
SELECT - 31 * + 95 * CAST( NULL AS SIGNED ) * - COUNT( DISTINCT 23 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT - 31 * + 95 * CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT 23 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 5 col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT + + 41 * - + 3 * - + SUM( ALL ( + + 1 ) ) + 8
----
131

skipif mysql # not compatible
query I rowsort label-7768
SELECT + + 41 * - + 3 * - + SUM ( ALL ( + + 1 ) ) + 8
----
131

onlyif mysql # aggregate syntax: 
query II rowsort label-7769
SELECT + - COUNT( * ) + + 96, + COUNT( * ) AS col0
----
95
1

skipif mysql # not compatible
query II rowsort label-7769
SELECT + - COUNT ( * ) + + 96, + COUNT ( * ) AS col0
----
95
1

query I rowsort
SELECT ALL - COALESCE ( - 32, 68 ) AS col1
----
32

query I rowsort
SELECT ALL - COALESCE ( + - NULLIF ( + 29, - - 39 ), - 50 )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT DISTINCT + - CASE 34 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 99 THEN - - 40 * - + 35 ELSE NULL END + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT DISTINCT + - CASE 34 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 99 THEN - - 40 * - + 35 ELSE NULL END + 59 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7773
SELECT - NULLIF ( - COALESCE ( - 19, + 98 ), 73 ) * - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7773
SELECT - NULLIF ( - COALESCE ( - 19, + 98 ), 73 ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 31 * 90
----
2790

query I rowsort
SELECT - 2 * + - 53
----
106

query I rowsort
SELECT + 95 - - ( + 3 ) + 73
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7777
SELECT ALL 66 + - + 44 DIV - CAST( - + MAX( ALL + 82 ) AS SIGNED ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL 66 + - + 44 / - CAST ( - + MAX ( ALL + 82 ) AS INTEGER ) AS col1
----
66

query I rowsort
SELECT + 72 * 72 AS col1
----
5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7779
SELECT ALL - NULLIF ( + + COALESCE ( - 64, + 2, + - 74 ), - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * 23 * + COUNT( + NULLIF ( + - ( + 24 ), ( - - 31 ) ) ) ) + - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL - NULLIF ( + + COALESCE ( - 64, + 2, + - 74 ), - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * 23 * + COUNT ( + NULLIF ( + - ( + 24 ), ( - - 31 ) ) ) ) + - COUNT ( * ) AS col2
----
63

query I rowsort
SELECT ALL 59 + + - 29 col1
----
30

query II rowsort
SELECT DISTINCT 81 AS col1, 3
----
81
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT + 41 * - ( + 43 ) * + COALESCE ( + - 0, + - CAST( NULL AS SIGNED ) * - 93 - + 46 + + 9, - - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-7782
SELECT + 41 * - ( + 43 ) * + COALESCE ( + - 0, + - CAST ( NULL AS INTEGER ) * - 93 - + 46 + + 9, - - 47 )
----
0

query I rowsort
SELECT + ( - ( - + 67 ) ) AS col0
----
67

query I rowsort
SELECT + 5 * + 37
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7785
SELECT - SUM( DISTINCT + 22 ) DIV 44 * + 4 * - - COUNT( * ) + - ( + 6 ) * + NULLIF ( 55, 72 ), 0 AS col2
----
-330
0

skipif mysql # not compatible
query II rowsort label-7785
SELECT - SUM ( DISTINCT + 22 ) / 44 * + 4 * - - COUNT ( * ) + - ( + 6 ) * + NULLIF ( 55, 72 ), 0 AS col2
----
-330
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7786
SELECT + 82 DIV 70 * 60 + - 67 * - 69 * - 48 * 46 AS col2
----
-10207524

skipif mysql # not compatible
query I rowsort label-7786
SELECT + 82 / 70 * 60 + - 67 * - 69 * - 48 * 46 AS col2
----
-10207524

query I rowsort
SELECT ALL NULLIF ( - 7, + + 5 ) * ( - + 88 ) - - + 17
----
633

query I rowsort
SELECT DISTINCT + + ( + 5 )
----
5

query II rowsort
SELECT ALL + + 71, 4 AS col2
----
71
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7790
SELECT - COUNT( + 16 ) * - - 53 + - ( + 14 ) * - - 91 + + - COUNT( + 85 ) AS col0, + 82 * - + 9 * + 50
----
-1328
-36900

skipif mysql # not compatible
query II rowsort label-7790
SELECT - COUNT ( + 16 ) * - - 53 + - ( + 14 ) * - - 91 + + - COUNT ( + 85 ) AS col0, + 82 * - + 9 * + 50
----
-1328
-36900

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7791
SELECT - + 60 DIV - - 33 + - CAST( + 2 AS SIGNED ) + + - CAST( 8 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-7791
SELECT - + 60 / - - 33 + - CAST ( + 2 AS INTEGER ) + + - CAST ( 8 AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT + - 49 * - 67 + - COUNT( * )
----
3282

skipif mysql # not compatible
query I rowsort label-7792
SELECT + - 49 * - 67 + - COUNT ( * )
----
3282

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7793
SELECT + 59 + - - 37 - + CAST( 18 AS SIGNED ) * - 26, 40 AS col2
----
564
40

skipif mysql # not compatible
query II rowsort label-7793
SELECT + 59 + - - 37 - + CAST ( 18 AS INTEGER ) * - 26, 40 AS col2
----
564
40

query I rowsort
SELECT + ( + - NULLIF ( - 21, 36 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL - 50 * - COUNT( * ) * - 75 + - - 25
----
-3725

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL - 50 * - COUNT ( * ) * - 75 + - - 25
----
-3725

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT + 15 * + COUNT( * ) + - CASE - + ( + COUNT( * ) ) WHEN + - COUNT( * ) THEN NULL ELSE - COUNT( * ) * + 47 END / + 91 - 28 + + COUNT( 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT + 15 * + COUNT ( * ) + - CASE - + ( + COUNT ( * ) ) WHEN + - COUNT ( * ) THEN NULL ELSE - COUNT ( * ) * + 47 END / + 91 - 28 + + COUNT ( 65 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7797
SELECT DISTINCT + COUNT( * ) * + - COUNT( + 41 ) + 87 + - + 87 * - + 21 AS col1, 99 AS col1
----
1913
99

skipif mysql # not compatible
query II rowsort label-7797
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( + 41 ) + 87 + - + 87 * - + 21 AS col1, 99 AS col1
----
1913
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7798
SELECT ALL 81 * - 30 + - - COUNT( 18 ) * - COUNT( * ) + - 56 + - 75 DIV + 24, MIN( + ( - 82 ) ) * - - 12 AS col2
----
-2490
-984

skipif mysql # not compatible
query II rowsort label-7798
SELECT ALL 81 * - 30 + - - COUNT ( 18 ) * - COUNT ( * ) + - 56 + - 75 / + 24, MIN ( + ( - 82 ) ) * - - 12 AS col2
----
-2490
-984

query I rowsort
SELECT + - ( - 26 ) + + + 78 col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT - + COUNT( ALL + + CASE 55 WHEN - - 75 THEN NULL ELSE + 63 - 17 END ) + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7800
SELECT - + COUNT ( ALL + + CASE 55 WHEN - - 75 THEN NULL ELSE + 63 - 17 END ) + COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT - + CASE - + 0 WHEN CAST( NULL AS SIGNED ) * + 74 + + 19 THEN 86 ELSE NULL END - - 43 * + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT - + CASE - + 0 WHEN CAST ( NULL AS INTEGER ) * + 74 + + 19 THEN 86 ELSE NULL END - - 43 * + - 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7802
SELECT - NULLIF ( 73, CAST( + 43 AS SIGNED ) * - 99 - + + CASE - 12 WHEN - 6 - - - 7 THEN CASE NULLIF ( 22, + + 72 ) WHEN - + 9 * + - 48 - + 27 + + COUNT( * ) + + 85 THEN NULL WHEN + 86 - + + 93 + 81 * + + 78 THEN 79 ELSE 62 / + CAST( + CASE 31 WHEN SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) + 50 THEN NULL WHEN - 77 THEN 59 ELSE NULL END AS SIGNED ) / 53 + + CAST( + 7 + 43 * + 73 AS SIGNED ) + 68 END ELSE NULL END * 17 ) + - 36 AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-7802
SELECT - NULLIF ( 73, CAST ( + 43 AS INTEGER ) * - 99 - + + CASE - 12 WHEN - 6 - - - 7 THEN CASE NULLIF ( 22, + + 72 ) WHEN - + 9 * + - 48 - + 27 + + COUNT ( * ) + + 85 THEN NULL WHEN + 86 - + + 93 + 81 * + + 78 THEN 79 ELSE 62 / + CAST ( + CASE 31 WHEN SUM ( DISTINCT - CAST ( NULL AS REAL ) ) + 50 THEN NULL WHEN - 77 THEN 59 ELSE NULL END AS INTEGER ) / 53 + + CAST ( + 7 + 43 * + 73 AS INTEGER ) + 68 END ELSE NULL END * 17 ) + - 36 AS col1
----
-109

query I rowsort
SELECT - 8 * - 21 AS col1
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT - 66 + - 94 + - - COUNT( * ) + + 9 * + 92 * + 99 - + 25 * - - 76
----
79913

skipif mysql # not compatible
query I rowsort label-7804
SELECT - 66 + - 94 + - - COUNT ( * ) + + 9 * + 92 * + 99 - + 25 * - - 76
----
79913

query I rowsort
SELECT ALL - ( - 92 ) + 1
----
93

query I rowsort
SELECT - 96 + + + 22
----
-74

query I rowsort
SELECT ALL ( 44 ) AS col1
----
44

query I rowsort
SELECT - 72 + + 54 AS col0
----
-18

query I rowsort
SELECT DISTINCT ( - + 30 ) * + 96 col0
----
-2880

query II rowsort
SELECT DISTINCT 70 col2, 36 + + 28
----
70
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ALL - COUNT( * ) - - 32 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL - COUNT ( * ) - - 32 AS col2
----
31

query I rowsort
SELECT 4 * + 8
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT COUNT( * ) + + NULLIF ( + - 40, - 21 + - 28 * + AVG ( ALL + 10 ) ) + + AVG ( 92 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT COUNT ( * ) + + NULLIF ( + - 40, - 21 + - 28 * + AVG ( ALL + 10 ) ) + + AVG ( 92 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7814
SELECT 11 DIV NULLIF ( - + 51, - + 71 DIV + + CAST( + 1 AS SIGNED ) - + 96 + - 61 ) * ( + 1 )
----
0

skipif mysql # not compatible
query I rowsort label-7814
SELECT 11 / NULLIF ( - + 51, - + 71 / + + CAST ( + 1 AS INTEGER ) - + 96 + - 61 ) * ( + 1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT COUNT( * ) + + CASE + 36 WHEN - 34 / + + COUNT( * ) THEN 45 * + 82 WHEN + COUNT( DISTINCT + 89 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT COUNT ( * ) + + CASE + 36 WHEN - 34 / + + COUNT ( * ) THEN 45 * + 82 WHEN + COUNT ( DISTINCT + 89 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT + COUNT( * ) * + + COUNT( - 67 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( - 67 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7817
SELECT 56 + - + 56 + - + 91 + 93 + + 42 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7817
SELECT 56 + - + 56 + - + 91 + 93 + + 42 * + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 78 * - 80, - 18 AS col2
----
6240
-18

query I rowsort
SELECT 46 * - 46
----
-2116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT ALL - CAST( 15 AS SIGNED ) * + 82 AS col0
----
-1230

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL - CAST ( 15 AS INTEGER ) * + 82 AS col0
----
-1230

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7821
SELECT DISTINCT - 97 AS col1, + COALESCE ( 71, + 96 ) DIV + - COUNT( * )
----
-97
-71

skipif mysql # not compatible
query II rowsort label-7821
SELECT DISTINCT - 97 AS col1, + COALESCE ( 71, + 96 ) / + - COUNT ( * )
----
-97
-71

query I rowsort
SELECT + ( 81 ) * - - 2 + - 45 AS col1
----
117

query II rowsort
SELECT - 3 AS col2, 93 - - 2 col1
----
-3
95

query II rowsort
SELECT DISTINCT - 53 AS col1, 5
----
-53
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT ALL - + COUNT( ( 43 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL - + COUNT ( ( 43 ) )
----
-1

query I rowsort
SELECT + + NULLIF ( - - 75, + 55 + 38 + 24 )
----
75

query I rowsort
SELECT ALL + 9 * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7828
SELECT + + COUNT( * ), 44 * MIN( ALL + 70 ) + 40 AS col1
----
1
3120

skipif mysql # not compatible
query II rowsort label-7828
SELECT + + COUNT ( * ), 44 * MIN ( ALL + 70 ) + 40 AS col1
----
1
3120

query II rowsort
SELECT + - 4 AS col1, 12 col2
----
-4
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7830
SELECT ALL 10 + + ( - 10 ) * + 67 AS col2, - 74 * COUNT( * ) AS col0
----
-660
-74

skipif mysql # not compatible
query II rowsort label-7830
SELECT ALL 10 + + ( - 10 ) * + 67 AS col2, - 74 * COUNT ( * ) AS col0
----
-660
-74

query II rowsort
SELECT + 10 AS col1, + 76
----
10
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7832
SELECT + 60 col2, 82 * COUNT( * ) DIV - 28
----
60
-2

skipif mysql # not compatible
query II rowsort label-7832
SELECT + 60 col2, 82 * COUNT ( * ) / - 28
----
60
-2

query I rowsort
SELECT + 2 + + 21 AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7834
SELECT ALL 76 + - - 95 DIV + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL 76 + - - 95 / + - COUNT ( * )
----
-19

query II rowsort
SELECT + 44 AS col1, 35 AS col1
----
44
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL + COUNT( * ) + - 58 * 83
----
-4813

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL + COUNT ( * ) + - 58 * 83
----
-4813

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT + ( + 14 ) + - 92 + + - 69 DIV ( - 62 ) + + 12 * - NULLIF ( + 27, - - NULLIF ( - 20, - AVG ( DISTINCT - + 28 ) ) ) * - - 19 + 53
----
-6180

skipif mysql # not compatible
query I rowsort label-7837
SELECT + ( + 14 ) + - 92 + + - 69 / ( - 62 ) + + 12 * - NULLIF ( + 27, - - NULLIF ( - 20, - AVG ( DISTINCT - + 28 ) ) ) * - - 19 + 53
----
-6180

query II rowsort
SELECT 76 AS col0, - 32 - 11
----
76
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT ALL - 63 AS col2, 96 * COALESCE ( 78, - - 96 ) - + 36 + + CASE - - 79 WHEN ( + 48 ) + - 32 THEN NULL WHEN + 35 * + 65 / + 50 * + - 62 THEN 69 + + 49 WHEN - COUNT( * ) THEN - + 80 ELSE - 30 END + 57 + + 27 AS col0
----
-63
7506

skipif mysql # not compatible
query II rowsort label-7839
SELECT ALL - 63 AS col2, 96 * COALESCE ( 78, - - 96 ) - + 36 + + CASE - - 79 WHEN ( + 48 ) + - 32 THEN NULL WHEN + 35 * + 65 / + 50 * + - 62 THEN 69 + + 49 WHEN - COUNT ( * ) THEN - + 80 ELSE - 30 END + 57 + + 27 AS col0
----
-63
7506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7840
SELECT ALL + 32 DIV + - COUNT( * ) + - + 71 + + - 97 * 62 + - ( - + 45 ) * + 1 col0
----
-6072

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + 32 / + - COUNT ( * ) + - + 71 + + - 97 * 62 + - ( - + 45 ) * + 1 col0
----
-6072

query II rowsort
SELECT DISTINCT - + 17 AS col2, ( - 62 )
----
-17
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT COALESCE ( 1, + - 11, - CASE - 33 WHEN COUNT( * ) THEN - 69 + 49 ELSE NULL END + + 4 ) * - MAX( ALL 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7842
SELECT COALESCE ( 1, + - 11, - CASE - 33 WHEN COUNT ( * ) THEN - 69 + 49 ELSE NULL END + + 4 ) * - MAX ( ALL 37 ) AS col1
----
-37

query I rowsort
SELECT 24 - 43 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7844
SELECT 11 - - - 29 + - CASE - CASE + 75 WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - - 87 END WHEN - COUNT( * ) * + ( - ( + 29 ) ) / - 77 - + 4 + - + 25 - - + MAX( ALL - + 61 ) * - COUNT( * ) * + 29 THEN - - 19 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT 11 - - - 29 + - CASE - CASE + 75 WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - - 87 END WHEN - COUNT ( * ) * + ( - ( + 29 ) ) / - 77 - + 4 + - + 25 - - + MAX ( ALL - + 61 ) * - COUNT ( * ) * + 29 THEN - - 19 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7845
SELECT ( + - 16 ) * - COUNT( * ) DIV + CAST( - 83 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7845
SELECT ( + - 16 ) * - COUNT ( * ) / + CAST ( - 83 AS INTEGER )
----
0

query II rowsort
SELECT 49 * - 21 AS col2, + 31 AS col0
----
-1029
31

query II rowsort
SELECT 39 * + - 95 AS col0, ( + 89 ) - + 87 col0
----
-3705
2

query I rowsort
SELECT ALL + 92 * NULLIF ( + - 2, 31 ) col1
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT 36 + 29 * + SUM( ALL + 31 ) AS col1
----
935

skipif mysql # not compatible
query I rowsort label-7849
SELECT 36 + 29 * + SUM ( ALL + 31 ) AS col1
----
935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7850
SELECT MIN( - + 17 ) DIV 4 - COUNT( * ) DIV 77 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7850
SELECT MIN ( - + 17 ) / 4 - COUNT ( * ) / 77 AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7851
SELECT 9 DIV + 81 + + SUM( 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7851
SELECT 9 / + 81 + + SUM ( 58 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT ALL - MAX( - 99 ) + 68
----
167

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - MAX ( - 99 ) + 68
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT + COUNT( * ) + + ( + COUNT( * ) ) + - 36
----
-34

skipif mysql # not compatible
query I rowsort label-7853
SELECT + COUNT ( * ) + + ( + COUNT ( * ) ) + - 36
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7854
SELECT COUNT( * ) DIV 12 - - COUNT( * ) * 77
----
77

skipif mysql # not compatible
query I rowsort label-7854
SELECT COUNT ( * ) / 12 - - COUNT ( * ) * 77
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7855
SELECT 27 DIV + 44
----
0

skipif mysql # not compatible
query I rowsort label-7855
SELECT 27 / + 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT + COUNT( * ) * + 80 + 79 * + COALESCE ( - 46, - + 21, + 73 + + 78 + - 94 ) AS col1
----
-3554

skipif mysql # not compatible
query I rowsort label-7856
SELECT + COUNT ( * ) * + 80 + 79 * + COALESCE ( - 46, - + 21, + 73 + + 78 + - 94 ) AS col1
----
-3554

query I rowsort
SELECT DISTINCT - 10 * + - 93 AS col1
----
930

query I rowsort
SELECT ALL + 49 * COALESCE ( - 34, ( - 36 ) + + + 39 * - 72 ) + + - 24
----
-1690

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - COALESCE ( - 62, + + 54 * - 27 ) * - 45 * 40 + + + 39 - - - COUNT( - 88 ) + - - 70 * + 68 + + - 70 AS col0
----
-106872

skipif mysql # not compatible
query I rowsort label-7859
SELECT - COALESCE ( - 62, + + 54 * - 27 ) * - 45 * 40 + + + 39 - - - COUNT ( - 88 ) + - - 70 * + 68 + + - 70 AS col0
----
-106872

query I rowsort
SELECT ALL - + 14 * + 3
----
-42

query I rowsort
SELECT ALL - 99 * 33 * - 72 + NULLIF ( - 93, 90 * + 18 )
----
235131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7862
SELECT + - CASE WHEN NOT NULL IS NULL THEN CAST( NULL AS SIGNED ) ELSE + - 54 END
----
54

skipif mysql # not compatible
query I rowsort label-7862
SELECT + - CASE WHEN NOT NULL IS NULL THEN CAST ( NULL AS INTEGER ) ELSE + - 54 END
----
54

query I rowsort
SELECT DISTINCT COALESCE ( - 99, + 49 ) * - 23 * - 78 + + + 97
----
-177509

onlyif mysql # aggregate syntax: 
query II rowsort label-7864
SELECT DISTINCT - SUM( DISTINCT + 95 ) col2, + 48 AS col0
----
-95
48

skipif mysql # not compatible
query II rowsort label-7864
SELECT DISTINCT - SUM ( DISTINCT + 95 ) col2, + 48 AS col0
----
-95
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT + 44 * COUNT( ALL + - 17 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7865
SELECT + 44 * COUNT ( ALL + - 17 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT DISTINCT - 3 * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT - 3 * + COUNT ( * )
----
-3

query I rowsort
SELECT DISTINCT - ( 14 ) col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL 24 - + 17 + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL 24 - + 17 + COUNT ( * )
----
8

query I rowsort
SELECT DISTINCT 28 * - 9 AS col2
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT DISTINCT 19 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT 19 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7871
SELECT + COUNT( * ), - 13 AS col2
----
1
-13

skipif mysql # not compatible
query II rowsort label-7871
SELECT + COUNT ( * ), - 13 AS col2
----
1
-13

query I rowsort
SELECT ALL 54 * - 91
----
-4914

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7873
SELECT ALL COUNT( * ) - + + 89 + - 15 DIV - COUNT( + - 92 ) + - 43 AS col0, MIN( ALL - + 56 )
----
-116
-56

skipif mysql # not compatible
query II rowsort label-7873
SELECT ALL COUNT ( * ) - + + 89 + - 15 / - COUNT ( + - 92 ) + - 43 AS col0, MIN ( ALL - + 56 )
----
-116
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-7874
SELECT DISTINCT 11 AS col1, 99 DIV 79 * + 27 AS col1
----
11
27

skipif mysql # not compatible
query II rowsort label-7874
SELECT DISTINCT 11 AS col1, 99 / 79 * + 27 AS col1
----
11
27

query I rowsort
SELECT + 36 + - 66 AS col0
----
-30

query I rowsort
SELECT + 1 * - + 41
----
-41

query I rowsort
SELECT 86 * 19 * - 52 + - + 50
----
-85018

query I rowsort
SELECT + 18 - - 19
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT + 65 DIV - - 71
----
0

skipif mysql # not compatible
query I rowsort label-7879
SELECT + 65 / - - 71
----
0

query I rowsort
SELECT + 83 + 59 + - - 71 * + - 94
----
-6532

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT + COUNT( * ) * - - 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7881
SELECT + COUNT ( * ) * - - 56 AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7882
SELECT DISTINCT COUNT( * ) DIV 82 * + COALESCE ( - 89, CASE + - NULLIF ( + + MAX( ALL 20 ), COUNT( * ) ) WHEN + + COUNT( * ) + + + 90 THEN NULL WHEN - 87 * + 5 THEN 33 * + 0 + + 17 END * + NULLIF ( - - 68, - + NULLIF ( + 50, + COUNT( DISTINCT + + 36 ) + - 83 DIV + ( - 53 ) * 75 + - - 40 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT COUNT ( * ) / 82 * + COALESCE ( - 89, CASE + - NULLIF ( + + MAX ( ALL 20 ), COUNT ( * ) ) WHEN + + COUNT ( * ) + + + 90 THEN NULL WHEN - 87 * + 5 THEN 33 * + 0 + + 17 END * + NULLIF ( - - 68, - + NULLIF ( + 50, + COUNT ( DISTINCT + + 36 ) + - 83 / + ( - 53 ) * 75 + - - 40 ) ) )
----
0

query I rowsort
SELECT - 35 + + + 50 AS col2
----
15

query I rowsort
SELECT DISTINCT 0 * - 53 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7885
SELECT - CAST( NULL AS SIGNED ) + - ( 70 ) + + COALESCE ( - ( + 81 ), + - COALESCE ( 50, - 17 ) ) * + 95 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT - CAST ( NULL AS INTEGER ) + - ( 70 ) + + COALESCE ( - ( + 81 ), + - COALESCE ( 50, - 17 ) ) * + 95 col0
----
NULL

query I rowsort
SELECT DISTINCT 34 * 51 AS col2
----
1734

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT - + NULLIF ( + 84, - 64 * - 92 + + - SUM( DISTINCT 98 ) + + 41 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7887
SELECT - + NULLIF ( + 84, - 64 * - 92 + + - SUM ( DISTINCT 98 ) + + 41 ) AS col2
----
-84

query I rowsort
SELECT ALL + 81 * + - 10 * + 77 * - - 62 AS col0
----
-3866940

query I rowsort
SELECT ALL + 23 + - 75 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT ALL - 74 DIV - COALESCE ( + 11, - + COALESCE ( - COUNT( * ), + - 85 ), + 16 ) DIV - COUNT( * ) + 91
----
85

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL - 74 / - COALESCE ( + 11, - + COALESCE ( - COUNT ( * ), + - 85 ), + 16 ) / - COUNT ( * ) + 91
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT - 3 * + 71 - + COUNT( * ) AS col1
----
-214

skipif mysql # not compatible
query I rowsort label-7891
SELECT - 3 * + 71 - + COUNT ( * ) AS col1
----
-214

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT - 98 * + - 79 * - + COUNT( * ) * 75 * 31 col2
----
-18000150

skipif mysql # not compatible
query I rowsort label-7892
SELECT - 98 * + - 79 * - + COUNT ( * ) * 75 * 31 col2
----
-18000150

onlyif mysql # aggregate syntax: 
query II rowsort label-7893
SELECT ALL - 65 * + ( + 68 ) col2, 31 * - ( - + CASE 91 WHEN 85 THEN NULL WHEN - + 89 THEN NULL ELSE + - COUNT( * ) * - COALESCE ( + ( 55 ), 15, + 86 * - 90 ) END ) * - 38 + - 84 AS col2
----
-4420
-64874

skipif mysql # not compatible
query II rowsort label-7893
SELECT ALL - 65 * + ( + 68 ) col2, 31 * - ( - + CASE 91 WHEN 85 THEN NULL WHEN - + 89 THEN NULL ELSE + - COUNT ( * ) * - COALESCE ( + ( 55 ), 15, + 86 * - 90 ) END ) * - 38 + - 84 AS col2
----
-4420
-64874

query I rowsort
SELECT DISTINCT - - 70 * 7 - - 46 + 41
----
577

query I rowsort
SELECT - - 10 * 49
----
490

query I rowsort
SELECT ALL + - NULLIF ( + - 31, + 48 - - - 39 )
----
31

query II rowsort
SELECT ALL + + 17, + 68 AS col1
----
17
68

query I rowsort
SELECT - 19 * - ( 5 )
----
95

query I rowsort
SELECT NULLIF ( + 59, + 97 )
----
59

query I rowsort
SELECT - 96 + - - 50
----
-46

query I rowsort
SELECT CASE 11 WHEN + 55 THEN NULL ELSE + + ( + + 14 ) END
----
14

query I rowsort
SELECT ALL + ( + + 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT COALESCE ( COUNT( * ), - COUNT( * ) + 18 * COUNT( * ), 2 + + - ( + + 66 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7903
SELECT COALESCE ( COUNT ( * ), - COUNT ( * ) + 18 * COUNT ( * ), 2 + + - ( + + 66 ) )
----
1

query I rowsort
SELECT + 67 * + 22 + - 83 AS col0
----
1391

query I rowsort
SELECT + 78 - 86 + + CASE + NULLIF ( AVG ( DISTINCT + 2 ), 58 ) WHEN + 10 THEN NULL WHEN + 14 / - 45 THEN + 9 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7906
SELECT - 89 * + COUNT( * ) AS col1, COALESCE ( CAST( NULL AS SIGNED ), - ( + - 58 ) )
----
-89
58

skipif mysql # not compatible
query II rowsort label-7906
SELECT - 89 * + COUNT ( * ) AS col1, COALESCE ( CAST ( NULL AS INTEGER ), - ( + - 58 ) )
----
-89
58

query I rowsort
SELECT ALL 1 * - 84
----
-84

query I rowsort
SELECT DISTINCT 18 * + 86
----
1548

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7909
SELECT ALL 53 * + 91, COUNT( * ) + - + 72 DIV + + 10 AS col0
----
4823
-6

skipif mysql # not compatible
query II rowsort label-7909
SELECT ALL 53 * + 91, COUNT ( * ) + - + 72 / + + 10 AS col0
----
4823
-6

query I rowsort
SELECT + 59 * - 59
----
-3481

query II rowsort
SELECT ALL - ( + 90 ) * - - 68 * + - 38 AS col1, + 36 col0
----
232560
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT COUNT( ALL - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-7912
SELECT COUNT ( ALL - 54 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7913
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 17 + - 87 AS col0
----
-70

query I rowsort
SELECT ALL 93 + 23
----
116

query I rowsort
SELECT DISTINCT 52 + - 90
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7917
SELECT ALL 11 + - 35 + - 57 + 64 DIV COUNT( * ) - + 35 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL 11 + - 35 + - 57 + 64 / COUNT ( * ) - + 35 AS col2
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7918
SELECT + MAX( DISTINCT - 46 ) / 60 + 79 + - ( 84 ) + + 7 + - NULLIF ( 82, - 4 ) / + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT + MAX ( DISTINCT - 46 ) / 60 + 79 + - ( 84 ) + + 7 + - NULLIF ( 82, - 4 ) / + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 16 * - 20 * - 23 + 43
----
-7317

onlyif mysql # DIV for integer division: 
query I rowsort label-7920
SELECT DISTINCT CASE + 9 WHEN 64 + + + 38 * - - 29 THEN NULL ELSE 17 END DIV 89 + 9
----
9

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT CASE + 9 WHEN 64 + + + 38 * - - 29 THEN NULL ELSE 17 END / 89 + 9
----
9

query I rowsort
SELECT + 46 - - 39 - - 89 * 46 * - NULLIF ( - 78, - 91 )
----
319417

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7922
SELECT ALL 15 + + NULLIF ( - - CASE + 51 WHEN + 24 + + + CAST( 25 AS SIGNED ) THEN + COUNT( * ) END, - - 35 + 50 ) + + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL 15 + + NULLIF ( - - CASE + 51 WHEN + 24 + + + CAST ( 25 AS INTEGER ) THEN + COUNT ( * ) END, - - 35 + 50 ) + + + 10
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7923
SELECT + 99 + - - 36 + 98 * 12 DIV - 40
----
106

skipif mysql # not compatible
query I rowsort label-7923
SELECT + 99 + - - 36 + 98 * 12 / - 40
----
106

query I rowsort
SELECT DISTINCT - 69 * - 47 AS col2
----
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + COUNT( * ) + - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7925
SELECT + COUNT ( * ) + - COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT - MAX( ALL - 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7926
SELECT - MAX ( ALL - 90 ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT ALL CAST( + 30 AS SIGNED ) * + + 75 + - 21 * + - 48
----
3258

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL CAST ( + 30 AS INTEGER ) * + + 75 + - 21 * + - 48
----
3258

query I rowsort
SELECT + - 31 + - CASE - 84 WHEN + - ( + - 18 ) THEN - - 62 WHEN + 26 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7929
SELECT ( + 14 ) DIV - COUNT( * ) - + - 52 AS col1, 34
----
38
34

skipif mysql # not compatible
query II rowsort label-7929
SELECT ( + 14 ) / - COUNT ( * ) - + - 52 AS col1, 34
----
38
34

query I rowsort
SELECT ALL - 76 * + 40
----
-3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT ALL COUNT( * ) - - 74 / + 42 * + - CAST( NULL AS SIGNED ) + + CASE 16 WHEN - ( 93 ) THEN 91 WHEN + - COUNT( * ) - + 17 THEN + 5 - + 54 + + SUM( 84 ) END * 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL COUNT ( * ) - - 74 / + 42 * + - CAST ( NULL AS INTEGER ) + + CASE 16 WHEN - ( 93 ) THEN 91 WHEN + - COUNT ( * ) - + 17 THEN + 5 - + 54 + + SUM ( 84 ) END * 30 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT - 28 DIV 29 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT - 28 / 29 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7933
SELECT ALL + - ( + + 75 ) DIV 88 * - 43 AS col1, + 82 * + 22 * + 79 + - - 8
----
0
142524

skipif mysql # not compatible
query II rowsort label-7933
SELECT ALL + - ( + + 75 ) / 88 * - 43 AS col1, + 82 * + 22 * + 79 + - - 8
----
0
142524

query I rowsort
SELECT 30 * + 67 * + 81 * + 50 AS col2
----
8140500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7935
SELECT ALL MAX( + 50 ) DIV - MIN( + 95 ) DIV COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL MAX ( + 50 ) / - MIN ( + 95 ) / COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7936
SELECT 40 * + 52 DIV COUNT( * )
----
2080

skipif mysql # not compatible
query I rowsort label-7936
SELECT 40 * + 52 / COUNT ( * )
----
2080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7937
SELECT ALL - 23 + - 2 + + + NULLIF ( - - 83, CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) col2, COUNT( * ) - + 10
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-7937
SELECT ALL - 23 + - 2 + + + NULLIF ( - - 83, CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) col2, COUNT ( * ) - + 10
----
NULL
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT ALL + 60 + ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL + 60 + ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 37 * 4 * 44 * - 24 + + 82 + + - ( - 25 )
----
-156181

query II rowsort
SELECT DISTINCT - 7 AS col0, 59
----
-7
59

query I rowsort
SELECT ALL + 60 + 89
----
149

query I rowsort
SELECT 45 + - + ( + + 93 ) + 58
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT 90 - - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-7943
SELECT 90 - - - COUNT ( * )
----
89

query I rowsort
SELECT ALL - 88 + - 71 AS col2
----
-159

query I rowsort
SELECT ALL + 61 + - + 23 * - 67 * 77
----
118718

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT COUNT( ALL 81 ) + + 19 AS col0, - ( - + 91 ) col0
----
20
91

skipif mysql # not compatible
query II rowsort label-7946
SELECT COUNT ( ALL 81 ) + + 19 AS col0, - ( - + 91 ) col0
----
20
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL 64 + COUNT( * ) + - 97 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL 64 + COUNT ( * ) + - 97 AS col2
----
-32

query I rowsort
SELECT 80 + 93
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT ALL + 89 * + 42 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL + 89 * + 42 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( + 29 ) + - 99
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT ALL - - 8 + - COUNT( * ) * - - 70 + - 14 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL - - 8 + - COUNT ( * ) * - - 70 + - 14 AS col0
----
-76

query I rowsort
SELECT ALL + 32 * - 64
----
-2048

query II rowsort
SELECT DISTINCT - 45, + 92 AS col0
----
-45
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT - COALESCE ( + COUNT( * ), + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-7954
SELECT - COALESCE ( + COUNT ( * ), + 74 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7955
SELECT 94 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT 94 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 71 * + + 83 col2
----
5893

query I rowsort
SELECT + 80 + + ( + - ( - - 22 ) )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT - 19 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT - 19 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7959
SELECT DISTINCT - COUNT( * ) / - 53 - - CASE 87 WHEN + + CASE + 89 WHEN CAST( + CAST( 81 AS DECIMAL ) AS SIGNED ) THEN - + 14 / COUNT( * ) / 51 - 13 END * - 19 * + 63 THEN + MAX( + 31 ) + - + ( + + COALESCE ( + + CAST( NULL AS SIGNED ), + 59 + - NULLIF ( 2, + 42 * - 63 + - 86 + - 75 ) ) ) + NULLIF ( - 99, - 40 ) * - COUNT( * ) ELSE NULL END + 53 * - 2 / 13
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT - COUNT ( * ) / - 53 - - CASE 87 WHEN + + CASE + 89 WHEN CAST ( + CAST ( 81 AS REAL ) AS INTEGER ) THEN - + 14 / COUNT ( * ) / 51 - 13 END * - 19 * + 63 THEN + MAX ( + 31 ) + - + ( + + COALESCE ( + + CAST ( NULL AS INTEGER ), + 59 + - NULLIF ( 2, + 42 * - 63 + - 86 + - 75 ) ) ) + NULLIF ( - 99, - 40 ) * - COUNT ( * ) ELSE NULL END + 53 * - 2 / 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL ( - + 69 ) * + + COUNT( * ) + + 9 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL ( - + 69 ) * + + COUNT ( * ) + + 9 AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT ALL 16 DIV - + 18
----
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL 16 / - + 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT DISTINCT - COUNT( 98 ) * - 96
----
96

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - COUNT ( 98 ) * - 96
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT DISTINCT 34 DIV + + 92
----
0

skipif mysql # not compatible
query I rowsort label-7963
SELECT DISTINCT 34 / + + 92
----
0

query I rowsort
SELECT + 12 - - 95 - + 88
----
19

onlyif mysql # DIV for integer division: 
query II rowsort label-7965
SELECT 42 DIV - NULLIF ( 52, + 5 * - 3 ) AS col0, 81 + - 53 AS col2
----
0
28

skipif mysql # not compatible
query II rowsort label-7965
SELECT 42 / - NULLIF ( 52, + 5 * - 3 ) AS col0, 81 + - 53 AS col2
----
0
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7966
SELECT ALL - NULLIF ( 33, + 57 ) * + - 9 * MAX( CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL - NULLIF ( 33, + 57 ) * + - 9 * MAX ( CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 64 * - 60 AS col1
----
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7968
SELECT - CAST( NULL AS SIGNED ) * + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT - CAST ( NULL AS INTEGER ) * + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7969
SELECT + 1, CASE - 50 WHEN - - SUM( ALL 54 ) * + + 1 * + COUNT( * ) THEN NULL ELSE 8 + + 40 END + + 84 AS col0
----
1
132

skipif mysql # not compatible
query II rowsort label-7969
SELECT + 1, CASE - 50 WHEN - - SUM ( ALL 54 ) * + + 1 * + COUNT ( * ) THEN NULL ELSE 8 + + 40 END + + 84 AS col0
----
1
132

query II rowsort
SELECT 9, + 97 AS col2
----
9
97

query I rowsort
SELECT ALL 96 + + + ( - 79 )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7972
SELECT ALL MAX( DISTINCT + 84 ) + - 68 * - - CAST( + 26 AS SIGNED ) AS col1
----
-1684

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL MAX ( DISTINCT + 84 ) + - 68 * - - CAST ( + 26 AS INTEGER ) AS col1
----
-1684

query I rowsort
SELECT ALL + 91 + - 32 AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT ALL - 37 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL - 37 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 49 - + 28 AS col2
----
21

query I rowsort
SELECT + 33 * + 60 * + 64 * + 4 - 44 + + - 50 AS col2
----
506786

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT 65 / - CASE + SUM( ALL + + 86 ) WHEN + 19 THEN - + 59 + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT 65 / - CASE + SUM ( ALL + + 86 ) WHEN + 19 THEN - + 59 + COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7978
SELECT ALL 42 + - 57 DIV - 77 * + - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL 42 + - 57 / - 77 * + - COUNT ( * )
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7979
SELECT + 25 AS col2, + CAST( 25 AS SIGNED ) DIV + 17 + 71 AS col0
----
25
72

skipif mysql # not compatible
query II rowsort label-7979
SELECT + 25 AS col2, + CAST ( 25 AS INTEGER ) / + 17 + 71 AS col0
----
25
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT ALL - 29 + CAST( NULL AS SIGNED ) / - COUNT( * ) - + - COUNT( ALL - 3 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL - 29 + CAST ( NULL AS INTEGER ) / - COUNT ( * ) - + - COUNT ( ALL - 3 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7981
SELECT DISTINCT + 74 + + 44 - + 22 + 6 DIV + 40 * - CAST( - + 85 AS SIGNED ) * - COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + 74 + + 44 - + 22 + 6 / + 40 * - CAST ( - + 85 AS INTEGER ) * - COUNT ( * ) AS col1
----
96

query I rowsort
SELECT ( + 30 ) + - 90
----
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7983
SELECT CAST( + 2 AS SIGNED ) DIV + 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7983
SELECT CAST ( + 2 AS INTEGER ) / + 11 AS col2
----
0

query I rowsort
SELECT DISTINCT + 56 + - + 50 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT DISTINCT CAST( NULL AS SIGNED ) / MIN( DISTINCT - 40 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT CAST ( NULL AS INTEGER ) / MIN ( DISTINCT - 40 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7986
SELECT DISTINCT + 47 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT + 47 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7987
SELECT DISTINCT 41 + - 73 DIV + CAST( 97 AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT 41 + - 73 / + CAST ( 97 AS INTEGER ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL MIN( ALL - + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL MIN ( ALL - + 74 )
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-7989
SELECT 80 DIV + + 72 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7989
SELECT 80 / + + 72 AS col2
----
1

query I rowsort
SELECT DISTINCT + 57 + 19 - - 24 + + + NULLIF ( 13, + AVG ( - 33 ) ) * + + 60 + 11 AS col2
----
891

query I rowsort
SELECT ALL - 2 * + 19
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT ALL 68 col0, - 84 + + MAX( ALL - 67 )
----
68
-151

skipif mysql # not compatible
query II rowsort label-7992
SELECT ALL 68 col0, - 84 + + MAX ( ALL - 67 )
----
68
-151

query I rowsort
SELECT COALESCE ( - 92, 25 * 65 ) * + + 5 AS col2
----
-460

query I rowsort
SELECT + 67 - 71 AS col2
----
-4

query I rowsort
SELECT ALL ( - - 69 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT + 13 col2, COUNT( * ) + + 30 + 23 * + ( 42 )
----
13
997

skipif mysql # not compatible
query II rowsort label-7996
SELECT + 13 col2, COUNT ( * ) + + 30 + 23 * + ( 42 )
----
13
997

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7997
SELECT ALL - 78 - + 78 + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL - 78 - + 78 + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT + COUNT( * ) * + 97 + 49 - ( 76 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7998
SELECT + COUNT ( * ) * + 97 + 49 - ( 76 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT DISTINCT - 87 * - CASE + - ( COUNT( * ) ) WHEN NULLIF ( + 24, + 91 ) + - 4 THEN NULL WHEN 89 THEN + 51 ELSE 94 END AS col0
----
8178

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT - 87 * - CASE + - ( COUNT ( * ) ) WHEN NULLIF ( + 24, + 91 ) + - 4 THEN NULL WHEN 89 THEN + 51 ELSE 94 END AS col0
----
8178

query II rowsort
SELECT ALL + 45 AS col0, + 43 col1
----
45
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - + 48 - - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-8001
SELECT - + 48 - - COUNT ( * )
----
-47

query I rowsort
SELECT - - 37 * - + 32
----
-1184

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + - COUNT( * ) * + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8003
SELECT + - COUNT ( * ) * + - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 26 * - 77
----
-2002

query II rowsort
SELECT 5 AS col1, 99
----
5
99

query I rowsort
SELECT + + 98 * 71
----
6958

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL - MAX( DISTINCT + 27 ) * + 26 + - - CASE + 48 WHEN + 36 + 27 THEN - 37 WHEN + - CASE COUNT( + 15 ) WHEN + COUNT( * ) THEN + 31 WHEN + COALESCE ( + - COUNT( ALL + 83 ), + 86 * + + COUNT( * ) * + COUNT( * ) * COUNT( * ), + 39 * - 17, COALESCE ( - + 70, - + 69 ) + - 93 + + MAX( ALL + 32 ) ) THEN - + 81 * - 8 * 10 * COUNT( * ) + - 74 ELSE NULL END * NULLIF ( + 36, 39 * 33 ) THEN NULL END + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL - MAX ( DISTINCT + 27 ) * + 26 + - - CASE + 48 WHEN + 36 + 27 THEN - 37 WHEN + - CASE COUNT ( + 15 ) WHEN + COUNT ( * ) THEN + 31 WHEN + COALESCE ( + - COUNT ( ALL + 83 ), + 86 * + + COUNT ( * ) * + COUNT ( * ) * COUNT ( * ), + 39 * - 17, COALESCE ( - + 70, - + 69 ) + - 93 + + MAX ( ALL + 32 ) ) THEN - + 81 * - 8 * 10 * COUNT ( * ) + - 74 ELSE NULL END * NULLIF ( + 36, 39 * 33 ) THEN NULL END + 85 AS col1
----
NULL

query I rowsort
SELECT + 80 - - 83
----
163

query II rowsort
SELECT ALL 43, + 68 AS col2
----
43
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8010
SELECT - 19 * + + COUNT( * ) * SUM( ALL - 90 ) AS col2, + 18 DIV 46 + + + CAST( + + 11 AS SIGNED )
----
1710
11

skipif mysql # not compatible
query II rowsort label-8010
SELECT - 19 * + + COUNT ( * ) * SUM ( ALL - 90 ) AS col2, + 18 / 46 + + + CAST ( + + 11 AS INTEGER )
----
1710
11

onlyif mysql # aggregate syntax: 
query II rowsort label-8011
SELECT - NULLIF ( - + 42, - + 95 ) + + COUNT( DISTINCT - 27 ) + + COUNT( * ), 50 AS col2
----
44
50

skipif mysql # not compatible
query II rowsort label-8011
SELECT - NULLIF ( - + 42, - + 95 ) + + COUNT ( DISTINCT - 27 ) + + COUNT ( * ), 50 AS col2
----
44
50

query I rowsort
SELECT + 93 - + 65
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL + 32 * COUNT( * ) + + - 23 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL + 32 * COUNT ( * ) + + - 23 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL CASE + COUNT( * ) WHEN - 65 THEN 61 WHEN - + 15 THEN + COUNT( * ) - 9 * 59 WHEN - 23 THEN - 63 END * + + ( - + 49 ) * + - 14 / 79 * - - 75 + - + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL CASE + COUNT ( * ) WHEN - 65 THEN 61 WHEN - + 15 THEN + COUNT ( * ) - 9 * 59 WHEN - 23 THEN - 63 END * + + ( - + 49 ) * + - 14 / 79 * - - 75 + - + 9 AS col0
----
NULL

query I rowsort
SELECT ALL 42 * - 87 + + COALESCE ( ( 2 ), 90, - + 19 - - 91 )
----
-3652

onlyif mysql # aggregate syntax: 
query II rowsort label-8016
SELECT DISTINCT - 33 * 39 + - + 77, CASE COUNT( - 14 ) WHEN NULLIF ( - 95, - - 93 ) THEN 79 ELSE NULL END - + + MAX( ALL + 26 ) - + 9 * - 79 col1
----
-1364
NULL

skipif mysql # not compatible
query II rowsort label-8016
SELECT DISTINCT - 33 * 39 + - + 77, CASE COUNT ( - 14 ) WHEN NULLIF ( - 95, - - 93 ) THEN 79 ELSE NULL END - + + MAX ( ALL + 26 ) - + 9 * - 79 col1
----
-1364
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8017
SELECT + 19 + - 17 + - - 39 DIV - CAST( + 95 AS SIGNED ) * + + 82 - + 40
----
-38

skipif mysql # not compatible
query I rowsort label-8017
SELECT + 19 + - 17 + - - 39 / - CAST ( + 95 AS INTEGER ) * + + 82 - + 40
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT NULLIF ( - 45, + - SUM( ALL - + 51 ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8018
SELECT NULLIF ( - 45, + - SUM ( ALL - + 51 ) ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL 10 * + 43 + - + COUNT( * )
----
429

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL 10 * + 43 + - + COUNT ( * )
----
429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8020
SELECT - 29 * + - COUNT( * ) + 12 * + CAST( + + 71 AS SIGNED ) AS col0
----
881

skipif mysql # not compatible
query I rowsort label-8020
SELECT - 29 * + - COUNT ( * ) + 12 * + CAST ( + + 71 AS INTEGER ) AS col0
----
881

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT + 83 * MAX( 11 ) AS col0
----
913

skipif mysql # not compatible
query I rowsort label-8021
SELECT + 83 * MAX ( 11 ) AS col0
----
913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8022
SELECT - CAST( 70 AS SIGNED ) + + - 37 AS col2
----
-107

skipif mysql # not compatible
query I rowsort label-8022
SELECT - CAST ( 70 AS INTEGER ) + + - 37 AS col2
----
-107

query I rowsort
SELECT ALL 82 * + 12
----
984

query I rowsort
SELECT DISTINCT 97 * - 56 - + - 15 * - - 6 col1
----
-5342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8025
SELECT MIN( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT MIN ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT MIN( ALL + + 76 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-8026
SELECT MIN ( ALL + + 76 ) col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8027
SELECT - 35 - 72 AS col1, COUNT( * ) AS col1
----
-107
1

skipif mysql # not compatible
query II rowsort label-8027
SELECT - 35 - 72 AS col1, COUNT ( * ) AS col1
----
-107
1

query I rowsort
SELECT DISTINCT - 82 * 82 - + 11 * + 20
----
-6944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT ALL - 49 * - CAST( - 18 AS SIGNED ) AS col0
----
-882

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL - 49 * - CAST ( - 18 AS INTEGER ) AS col0
----
-882

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8030
SELECT - + 27 + - + CAST( NULL AS DECIMAL ) + 20 + + 91 * + 12 + + + 40 * + 15 + + 61 * - 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT - + 27 + - + CAST ( NULL AS REAL ) + 20 + + 91 * + 12 + + + 40 * + 15 + + 61 * - 69 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8031
SELECT DISTINCT + COUNT( * ) * + 0 DIV + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT + COUNT ( * ) * + 0 / + + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - - 52 + + 63 + - - 1 * + 45
----
160

query I rowsort
SELECT ALL - 88 * + 94
----
-8272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8034
SELECT DISTINCT + COUNT( * ) * 55 * + MIN( - - 22 ) DIV COUNT( * ) AS col1
----
1210

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT + COUNT ( * ) * 55 * + MIN ( - - 22 ) / COUNT ( * ) AS col1
----
1210

query I rowsort
SELECT + + 8 * - 6 + + 52
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8036
SELECT - - 2 + COALESCE ( + CASE MAX( DISTINCT 19 ) WHEN - - 85 THEN + 81 + - MAX( ALL + 95 ) WHEN + 78 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN - CAST( NULL AS SIGNED ) WHEN - 15 THEN NULL ELSE 7 END, - + 89 ) * 78 AS col0
----
548

skipif mysql # not compatible
query I rowsort label-8036
SELECT - - 2 + COALESCE ( + CASE MAX ( DISTINCT 19 ) WHEN - - 85 THEN + 81 + - MAX ( ALL + 95 ) WHEN + 78 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) WHEN - 15 THEN NULL ELSE 7 END, - + 89 ) * 78 AS col0
----
548

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT - ( + - COUNT( * ) ) * 47 + + NULLIF ( 29, + 41 * + MAX( - 45 ) ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8037
SELECT - ( + - COUNT ( * ) ) * 47 + + NULLIF ( 29, + 41 * + MAX ( - 45 ) ) AS col2
----
76

query I rowsort
SELECT - 64 + + + 40
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT ALL - + 60 DIV - 51 + + 30 * - MAX( + - 32 ) + - MAX( ALL - - 50 ) * + - 57 AS col1
----
3811

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL - + 60 / - 51 + + 30 * - MAX ( + - 32 ) + - MAX ( ALL - - 50 ) * + - 57 AS col1
----
3811

query I rowsort
SELECT DISTINCT + - 48 + + + 50 - 76
----
-74

query I rowsort
SELECT ALL + 73 + + + 71 * - 28 AS col0
----
-1915

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT 96 + - - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT 96 + - - COUNT ( * ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL 54 * - 92 * - COUNT( * )
----
4968

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL 54 * - 92 * - COUNT ( * )
----
4968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8044
SELECT DISTINCT - ( + + 16 ) + - + 14 + + CAST( - 47 AS SIGNED ) * 22 AS col2, + MAX( ALL 92 ) * COUNT( * ) AS col2, + 55 AS col2
----
-1064
92
55

skipif mysql # not compatible
query III rowsort label-8044
SELECT DISTINCT - ( + + 16 ) + - + 14 + + CAST ( - 47 AS INTEGER ) * 22 AS col2, + MAX ( ALL 92 ) * COUNT ( * ) AS col2, + 55 AS col2
----
-1064
92
55

query I rowsort
SELECT DISTINCT + NULLIF ( + 96, 68 ) AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8046
SELECT ALL 6 DIV + 96 + - COUNT( 95 ) - 12
----
-13

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL 6 / + 96 + - COUNT ( 95 ) - 12
----
-13

query I rowsort
SELECT - 7 - - 97 AS col0
----
90

query I rowsort
SELECT + COALESCE ( - + 60, + - 13 * + 14 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8049
SELECT CAST( - CASE 34 WHEN COUNT( * ) + - 1 + - ( + 37 ) THEN - 48 * 42 * 8 * 62 * 25 + + ( - 4 ) - + - 19 ELSE + 27 END AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-8049
SELECT CAST ( - CASE 34 WHEN COUNT ( * ) + - 1 + - ( + 37 ) THEN - 48 * 42 * 8 * 62 * 25 + + ( - 4 ) - + - 19 ELSE + 27 END AS INTEGER )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-8050
SELECT ALL + ( + + SUM( ALL 55 ) ), 70 AS col0
----
55
70

skipif mysql # not compatible
query II rowsort label-8050
SELECT ALL + ( + + SUM ( ALL 55 ) ), 70 AS col0
----
55
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8051
SELECT COUNT( * ) DIV 20 - 94
----
-94

skipif mysql # not compatible
query I rowsort label-8051
SELECT COUNT ( * ) / 20 - 94
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8052
SELECT ALL + SUM( 93 ) DIV 76 - + COUNT( * ), - 6 AS col1
----
0
-6

skipif mysql # not compatible
query II rowsort label-8052
SELECT ALL + SUM ( 93 ) / 76 - + COUNT ( * ), - 6 AS col1
----
0
-6

query II rowsort
SELECT DISTINCT + 35 AS col1, 61 * - + 80 col2
----
35
-4880

query I rowsort
SELECT ALL 41 * - 65
----
-2665

onlyif mysql # DIV for integer division: 
query I rowsort label-8055
SELECT ALL - 30 DIV 11 * + 82 * 2
----
-328

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL - 30 / 11 * + 82 * 2
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + SUM( + - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8056
SELECT + SUM ( + - 54 ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8057
SELECT - SUM( 48 ) / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT - SUM ( 48 ) / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 99 * 60
----
5940

query I rowsort
SELECT DISTINCT 22 * + - 51
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL 93 * - - COUNT( * ) + 27 * - 8
----
-123

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL 93 * - - COUNT ( * ) + 27 * - 8
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT + - 42 + COUNT( * ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-8061
SELECT + - 42 + COUNT ( * ) col2
----
-41

query II rowsort
SELECT ALL + 61, 42 AS col0
----
61
42

query I rowsort
SELECT + - COALESCE ( - 30, - 4, + 65 )
----
30

query II rowsort
SELECT DISTINCT - - 55 col2, 83 AS col0
----
55
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT ALL - 92 * 80 * + + COUNT( * ) * + 96 col0
----
-706560

skipif mysql # not compatible
query I rowsort label-8065
SELECT ALL - 92 * 80 * + + COUNT ( * ) * + 96 col0
----
-706560

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT DISTINCT COUNT( ( + + 44 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT COUNT ( ( + + 44 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 59 + + - 77 + + - 26 AS col0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT - MAX( DISTINCT - 26 ) * + + 65 * 15 AS col2
----
25350

skipif mysql # not compatible
query I rowsort label-8068
SELECT - MAX ( DISTINCT - 26 ) * + + 65 * 15 AS col2
----
25350

query I rowsort
SELECT 18 * - ( + 13 )
----
-234

query II rowsort
SELECT 16 AS col1, 69 * + 32 AS col2
----
16
2208

query I rowsort
SELECT 51 + - + 61 * - 37 * + 81 AS col2
----
182868

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8072
SELECT - COALESCE ( + MAX( - 74 ), + 67, - 23 * + + 92 DIV ( 98 ) )
----
74

skipif mysql # not compatible
query I rowsort label-8072
SELECT - COALESCE ( + MAX ( - 74 ), + 67, - 23 * + + 92 / ( 98 ) )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8073
SELECT + 60, ( - CAST( NULL AS SIGNED ) ) / - 90 + + - COALESCE ( + 61, - 10 ) - - - COUNT( * ) AS col2
----
60
NULL

skipif mysql # not compatible
query II rowsort label-8073
SELECT + 60, ( - CAST ( NULL AS INTEGER ) ) / - 90 + + - COALESCE ( + 61, - 10 ) - - - COUNT ( * ) AS col2
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL COUNT( * ) + - - 40 - + 47 + 55 * + COUNT( * ) + - + 94 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL COUNT ( * ) + - - 40 - + 47 + 55 * + COUNT ( * ) + - + 94 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL + - COUNT( * ) + + COUNT( * ) + - 34 + 50 * + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) + - 34 + 50 * + COUNT ( * )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8076
SELECT - COALESCE ( - MIN( DISTINCT + + 13 ), - 94 + + - 76 ) - + CAST( NULL AS SIGNED ) AS col0, + 3 + 10 * CASE 70 WHEN + + 89 * - 75 THEN NULL ELSE + 7 END + - NULLIF ( - 63, - 66 * - 7 + - 24 + 80 )
----
NULL
136

skipif mysql # not compatible
query II rowsort label-8076
SELECT - COALESCE ( - MIN ( DISTINCT + + 13 ), - 94 + + - 76 ) - + CAST ( NULL AS INTEGER ) AS col0, + 3 + 10 * CASE 70 WHEN + + 89 * - 75 THEN NULL ELSE + 7 END + - NULLIF ( - 63, - 66 * - 7 + - 24 + 80 )
----
NULL
136

query II rowsort
SELECT 72 AS col0, 37
----
72
37

query I rowsort
SELECT 20 - - + ( + 32 ) col1
----
52

query II rowsort
SELECT ALL - 7 AS col2, 95 AS col0
----
-7
95

query I rowsort
SELECT DISTINCT + 83 + - 35 col1
----
48

query I rowsort
SELECT ALL + 42 + - + 82 + + 20
----
-20

query I rowsort
SELECT NULLIF ( 42, - 25 ) + + ( - 89 ) + - + 31 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT 84 - - - COALESCE ( 57, + 94 * + 70 * 35 + - 47 ) - - ( - MIN( ALL 0 ) ) + + 47 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8083
SELECT 84 - - - COALESCE ( 57, + 94 * + 70 * 35 + - 47 ) - - ( - MIN ( ALL 0 ) ) + + 47 AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT DISTINCT + 15 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT + 15 / - 70
----
0

query I rowsort
SELECT ALL ( + 86 ) - - + 92 col0
----
178

query I rowsort
SELECT DISTINCT - COALESCE ( - 29, + 79 ) AS col1
----
29

query I rowsort
SELECT 74 * - ( + + 20 ) AS col1
----
-1480

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT - COALESCE ( - COUNT( * ), - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT - COALESCE ( - COUNT ( * ), - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT 64 * COUNT( - 38 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-8089
SELECT 64 * COUNT ( - 38 ) AS col2
----
64

query I rowsort
SELECT 0 * + 36 * + 24
----
0

query I rowsort
SELECT ALL - ( + + 99 )
----
-99

query I rowsort
SELECT DISTINCT - 25 * 85 AS col2
----
-2125

query I rowsort
SELECT + 82 * + 96 * 83 + + + 13
----
653389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8094
SELECT 19 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT 19 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT ALL - COUNT( - - ( + 17 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL - COUNT ( - - ( + 17 ) ) AS col1
----
-1

query I rowsort
SELECT 25 * - + 25 AS col2
----
-625

query I rowsort
SELECT DISTINCT - 26 * 27 AS col1
----
-702

query I rowsort
SELECT DISTINCT - NULLIF ( 40, 55 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT DISTINCT - 63 + - COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT - 63 + - COUNT ( * ) AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8100
SELECT ALL + + COALESCE ( - 40, + + 88 * - COUNT( * ) * + 93, - 90 ) DIV - + 95
----
0

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL + + COALESCE ( - 40, + + 88 * - COUNT ( * ) * + 93, - 90 ) / - + 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8101
SELECT 86 + - COALESCE ( - + 7, - 14 DIV 41 )
----
93

skipif mysql # not compatible
query I rowsort label-8101
SELECT 86 + - COALESCE ( - + 7, - 14 / 41 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT DISTINCT MAX( ALL + 7 ) * + - CAST( - 33 AS SIGNED ) * - 89 AS col0
----
-20559

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT MAX ( ALL + 7 ) * + - CAST ( - 33 AS INTEGER ) * - 89 AS col0
----
-20559

query I rowsort
SELECT ALL - 6 * 1 * + 36 AS col2
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8104
SELECT ALL COUNT( * ) + + + ( COUNT( * ) ) DIV + 95
----
1

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL COUNT ( * ) + + + ( COUNT ( * ) ) / + 95
----
1

query I rowsort
SELECT DISTINCT + 87 + + 63
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT COUNT( * ) * - 21 * + 33 * - - ( - + 43 ) AS col0
----
29799

skipif mysql # not compatible
query I rowsort label-8106
SELECT COUNT ( * ) * - 21 * + 33 * - - ( - + 43 ) AS col0
----
29799

query II rowsort
SELECT 59 AS col2, - 99
----
59
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8108
SELECT COUNT( * ) DIV - - 73
----
0

skipif mysql # not compatible
query I rowsort label-8108
SELECT COUNT ( * ) / - - 73
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8109
SELECT 84 + + 46 DIV - 99, + 27 AS col2
----
84
27

skipif mysql # not compatible
query II rowsort label-8109
SELECT 84 + + 46 / - 99, + 27 AS col2
----
84
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8110
SELECT AVG ( + 69 ) * - + 57 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT AVG ( + 69 ) * - + 57 - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 13 * + 11 col2
----
143

query I rowsort
SELECT ALL 72 - - 9 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT ALL + 11 * COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL + 11 * COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL + COUNT( * ) * - 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL + COUNT ( * ) * - 26 AS col1
----
-26

query I rowsort
SELECT DISTINCT 77 * 92 col1
----
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT 90 + + - COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8116
SELECT 90 + + - COUNT ( * ) AS col2
----
89

query I rowsort
SELECT ALL 12 * - 58 AS col2
----
-696

query I rowsort
SELECT 0 * + 5 AS col1
----
0

query I rowsort
SELECT 9 * + 6 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8120
SELECT COALESCE ( + CAST( - 24 AS SIGNED ), 20 + + 46 + + 28 - NULLIF ( COALESCE ( 56, - 40 * + + 87 ), + - 35 * - 77 / - 64 + COUNT( * ) ) - - 87, + 73 )
----
-24

skipif mysql # not compatible
query I rowsort label-8120
SELECT COALESCE ( + CAST ( - 24 AS INTEGER ), 20 + + 46 + + 28 - NULLIF ( COALESCE ( 56, - 40 * + + 87 ), + - 35 * - 77 / - 64 + COUNT ( * ) ) - - 87, + 73 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8121
SELECT CAST( NULLIF ( + COUNT( * ), + 17 * - + ( + COUNT( * ) ) ) AS SIGNED ) DIV + ( - 89 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8121
SELECT CAST ( NULLIF ( + COUNT ( * ), + 17 * - + ( + COUNT ( * ) ) ) AS INTEGER ) / + ( - 89 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8122
SELECT CASE NULLIF ( + 71, - 36 ) WHEN + - 61 * - COUNT( * ) * - - 54 + 56 + + 58 THEN NULL WHEN + 93 * - + 6 * - 45 + + 22 THEN 32 END / + 18 * ( 68 ) * CAST( NULL AS SIGNED ) + + + ( - ( 28 ) ) + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT CASE NULLIF ( + 71, - 36 ) WHEN + - 61 * - COUNT ( * ) * - - 54 + 56 + + 58 THEN NULL WHEN + 93 * - + 6 * - 45 + + 22 THEN 32 END / + 18 * ( 68 ) * CAST ( NULL AS INTEGER ) + + + ( - ( 28 ) ) + - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL + MIN( + COALESCE ( 87, - - 17 * - 3, - - 4 * - + 56 ) )
----
87

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL + MIN ( + COALESCE ( 87, - - 17 * - 3, - - 4 * - + 56 ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT - SUM( + 83 ) * - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-8124
SELECT - SUM ( + 83 ) * - COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT + 72 * NULLIF ( CASE 88 WHEN COUNT( * ) THEN SUM( - 36 ) END, - + 41 ) + - 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT + 72 * NULLIF ( CASE 88 WHEN COUNT ( * ) THEN SUM ( - 36 ) END, - + 41 ) + - 77 col2
----
NULL

query I rowsort
SELECT ALL + 70 * + 2 + - 41
----
99

query I rowsort
SELECT - - 65 * - 26
----
-1690

query I rowsort
SELECT DISTINCT + + 17 * - - 87 AS col1
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL + COUNT( * ) * + 16 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL + COUNT ( * ) * + 16 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT - COUNT( * ) * - 38 + - COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8130
SELECT - COUNT ( * ) * - 38 + - COUNT ( * ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT + 50 * + COUNT( * ) + - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8131
SELECT + 50 * + COUNT ( * ) + - COUNT ( * ) AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8132
SELECT + CASE + + CAST( NULL AS SIGNED ) WHEN + + 67 THEN - - 18 WHEN - ( + 0 ) + + 54 + + ( 27 ) * + + 92 * + 50 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT + CASE + + CAST ( NULL AS INTEGER ) WHEN + + 67 THEN - - 18 WHEN - ( + 0 ) + + 54 + + ( 27 ) * + + 92 * + 50 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + - 74 * 36 col1
----
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT - + 38 * - + COUNT( * ) * + 31 * + + 8 AS col1
----
9424

skipif mysql # not compatible
query I rowsort label-8134
SELECT - + 38 * - + COUNT ( * ) * + 31 * + + 8 AS col1
----
9424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8135
SELECT DISTINCT + NULLIF ( - CAST( - + ( - + 83 ) AS SIGNED ), + + 5 ) + + - COUNT( * ) + ( + 94 ) * 96 * - 93 * - 73
----
61263852

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT + NULLIF ( - CAST ( - + ( - + 83 ) AS INTEGER ), + + 5 ) + + - COUNT ( * ) + ( + 94 ) * 96 * - 93 * - 73
----
61263852

query I rowsort
SELECT ALL - 57 + + - 8 AS col0
----
-65

query I rowsort
SELECT ALL + 94 * - 26
----
-2444

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT ALL + - ( - SUM( - 67 ) ) - + 71
----
-138

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL + - ( - SUM ( - 67 ) ) - + 71
----
-138

query I rowsort
SELECT CASE - 65 WHEN 81 THEN + 92 + - + 4 - - 78 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8140
SELECT - 78 * + - CAST( NULL AS DECIMAL ) + - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8140
SELECT - 78 * + - CAST ( NULL AS REAL ) + - - 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8141
SELECT + CAST( 41 AS SIGNED ) DIV ( - + 95 ) * - - 96 + + 82 + + MIN( ALL 38 )
----
120

skipif mysql # not compatible
query I rowsort label-8141
SELECT + CAST ( 41 AS INTEGER ) / ( - + 95 ) * - - 96 + + 82 + + MIN ( ALL 38 )
----
120

query I rowsort
SELECT ALL 72 - - + 45
----
117

query I rowsort
SELECT DISTINCT ( - 13 ) col2
----
-13

query I rowsort
SELECT ALL ( + 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT + 54 - + COUNT( - + 0 )
----
53

skipif mysql # not compatible
query I rowsort label-8145
SELECT + 54 - + COUNT ( - + 0 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8146
SELECT + COALESCE ( COUNT( * ), + + CAST( SUM( - 55 ) AS SIGNED ) ) - - 88 AS col2, 51
----
89
51

skipif mysql # not compatible
query II rowsort label-8146
SELECT + COALESCE ( COUNT ( * ), + + CAST ( SUM ( - 55 ) AS INTEGER ) ) - - 88 AS col2, 51
----
89
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8147
SELECT ALL 36 * 71 DIV COUNT( * )
----
2556

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL 36 * 71 / COUNT ( * )
----
2556

query I rowsort
SELECT + 6 + - 30 + + 3 col0
----
-21

query I rowsort
SELECT + 82 + - 90 * + 77 AS col1
----
-6848

query I rowsort
SELECT + 70 + + 76
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT + 76 - - + 22 + - - COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-8151
SELECT + 76 - - + 22 + - - COUNT ( * ) AS col0
----
99

query II rowsort
SELECT 66, + 47 col1
----
66
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8153
SELECT + CAST( NULL AS SIGNED ) + 75 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT + CAST ( NULL AS INTEGER ) + 75 col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8154
SELECT ALL 61 DIV + + 19 + + 30 * - 98, + 8 col0
----
-2937
8

skipif mysql # not compatible
query II rowsort label-8154
SELECT ALL 61 / + + 19 + + 30 * - 98, + 8 col0
----
-2937
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8155
SELECT ALL + 16 DIV + + COALESCE ( - ( - 17 ), - COUNT( * ) DIV + 7 ) + + - 83 * + 17 + COUNT( * ) + 88 * + COUNT( * ) AS col2, 50 AS col2, 10
----
-1322
50
10

skipif mysql # not compatible
query III rowsort label-8155
SELECT ALL + 16 / + + COALESCE ( - ( - 17 ), - COUNT ( * ) / + 7 ) + + - 83 * + 17 + COUNT ( * ) + 88 * + COUNT ( * ) AS col2, 50 AS col2, 10
----
-1322
50
10

query I rowsort
SELECT + 16 + 3
----
19

query I rowsort
SELECT + + ( + - 59 ) + - 77 AS col1
----
-136

query I rowsort
SELECT DISTINCT 44 * + 34
----
1496

onlyif mysql # DIV for integer division: 
query I rowsort label-8159
SELECT ALL - 4 DIV + - 45 + - 8
----
-8

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL - 4 / + - 45 + - 8
----
-8

query I rowsort
SELECT + + 50 * 7 AS col0
----
350

query III rowsort
SELECT + + 70 AS col1, 69 AS col0, ( - 64 ) + - 6 AS col2
----
70
69
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT - 1 DIV - 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8162
SELECT - 1 / - 80 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8163
SELECT DISTINCT - - 37 * - 15 DIV 40 DIV - - 91 + + + 95 + - 84 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT - - 37 * - 15 / 40 / - - 91 + + + 95 + - 84 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8164
SELECT + 45 + 27 + + CASE - 62 WHEN - 90 * CASE + 33 WHEN + + 10 THEN NULL ELSE - 26 + - CASE CAST( NULL AS SIGNED ) WHEN - + 85 THEN + + CASE SUM( ALL - 33 ) WHEN ( + - 42 ) / + + COUNT( * ) - 23 THEN + - 62 * - 31 - + CAST( NULL AS SIGNED ) WHEN - 25 * - 79 + - CAST( NULL AS SIGNED ) THEN NULL END ELSE NULL END END THEN CASE WHEN NOT ( NOT COUNT( * ) IS NULL ) THEN + + 40 + MIN( DISTINCT 68 ) * 70 END * - 71 WHEN COALESCE ( 19, 71 ) * 86 THEN CAST( AVG ( + 22 ) AS DECIMAL ) ELSE NULL END - 68 * 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT + 45 + 27 + + CASE - 62 WHEN - 90 * CASE + 33 WHEN + + 10 THEN NULL ELSE - 26 + - CASE CAST ( NULL AS INTEGER ) WHEN - + 85 THEN + + CASE SUM ( ALL - 33 ) WHEN ( + - 42 ) / + + COUNT ( * ) - 23 THEN + - 62 * - 31 - + CAST ( NULL AS INTEGER ) WHEN - 25 * - 79 + - CAST ( NULL AS INTEGER ) THEN NULL END ELSE NULL END END THEN CASE WHEN NOT ( NOT COUNT ( * ) IS NULL ) THEN + + 40 + MIN ( DISTINCT 68 ) * 70 END * - 71 WHEN COALESCE ( 19, 71 ) * 86 THEN CAST ( AVG ( + 22 ) AS REAL ) ELSE NULL END - 68 * 96 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8165
SELECT ALL + - 38 * 64 * - CAST( + 1 AS SIGNED ) * + 56 - + 38 + + MIN( DISTINCT - 37 ) + + + 23, 18 + - 1 * - 11 * - COUNT( * ) AS col2
----
136140
7

skipif mysql # not compatible
query II rowsort label-8165
SELECT ALL + - 38 * 64 * - CAST ( + 1 AS INTEGER ) * + 56 - + 38 + + MIN ( DISTINCT - 37 ) + + + 23, 18 + - 1 * - 11 * - COUNT ( * ) AS col2
----
136140
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8166
SELECT ALL - - CAST( - ( + + 31 ) AS SIGNED ) DIV + 5
----
-6

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL - - CAST ( - ( + + 31 ) AS INTEGER ) / + 5
----
-6

query II rowsort
SELECT DISTINCT - 31 * - - 85 + + ( + 23 ) AS col1, 30
----
-2612
30

query I rowsort
SELECT ALL + + 39 * 36 AS col0
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT + + COUNT( * ) * + - 57 col2
----
-57

skipif mysql # not compatible
query I rowsort label-8169
SELECT + + COUNT ( * ) * + - 57 col2
----
-57

query I rowsort
SELECT - 8 + 27
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT ALL + + COUNT( * ) * - - 34 * - 31 + 39 AS col2
----
-1015

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL + + COUNT ( * ) * - - 34 * - 31 + 39 AS col2
----
-1015

query I rowsort
SELECT + 48 + 85
----
133

query I rowsort
SELECT - 17 + + 97 AS col1
----
80

query II rowsort
SELECT ALL + - 91 AS col0, + 10
----
-91
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8175
SELECT DISTINCT + - 97 * - 58 + SUM( - 11 ) DIV - COUNT( * ) + 71 AS col2
----
5708

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT + - 97 * - 58 + SUM ( - 11 ) / - COUNT ( * ) + 71 AS col2
----
5708

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL + NULLIF ( COUNT( * ), - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + NULLIF ( COUNT ( * ), - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT - ( + - 85 ) * - ( - 57 )
----
4845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT DISTINCT CAST( + 92 AS SIGNED ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT CAST ( + 92 AS INTEGER ) AS col0
----
92

query I rowsort
SELECT - 13 * + + 42
----
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT ALL 25 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL 25 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT - 30 + 19 * COUNT( * ) * - 85 * - MAX( ALL - 62 ) + + + 98 * - 95
----
-109470

skipif mysql # not compatible
query I rowsort label-8181
SELECT - 30 + 19 * COUNT ( * ) * - 85 * - MAX ( ALL - 62 ) + + + 98 * - 95
----
-109470

query II rowsort
SELECT ALL ( + - 80 ) AS col2, 62 AS col0
----
-80
62

query I rowsort
SELECT - ( 93 ) + + 13 AS col1
----
-80

query I rowsort
SELECT - 24 * - - 7 AS col2
----
-168

query I rowsort
SELECT + 59 * - + ( + 19 ) * - 49 AS col2
----
54929

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL + COUNT( * ) + - 3
----
-2

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + COUNT ( * ) + - 3
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT + 76 + + 81 + CAST( - 99 AS SIGNED ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8187
SELECT + 76 + + 81 + CAST ( - 99 AS INTEGER ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8188
SELECT 90 * + + 93, 42 + - COUNT( * ) + NULLIF ( + 36, 46 ) + 2 AS col1
----
8370
79

skipif mysql # not compatible
query II rowsort label-8188
SELECT 90 * + + 93, 42 + - COUNT ( * ) + NULLIF ( + 36, 46 ) + 2 AS col1
----
8370
79

query II rowsort
SELECT DISTINCT + 39 + + - 9 * + + 33, + 46 AS col1
----
-258
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8190
SELECT DISTINCT COALESCE ( + COUNT( * ), - COALESCE ( - 31, + - 69, - + 23 * + - CAST( NULL AS SIGNED ) * + ( - - 54 ) ) + - COUNT( * ) ) * - + 98 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT COALESCE ( + COUNT ( * ), - COALESCE ( - 31, + - 69, - + 23 * + - CAST ( NULL AS INTEGER ) * + ( - - 54 ) ) + - COUNT ( * ) ) * - + 98 AS col2
----
-98

query I rowsort
SELECT DISTINCT 76 + - 34
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8192
SELECT DISTINCT - MAX( + CAST( + + 65 AS SIGNED ) ) + 4 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT - MAX ( + CAST ( + + 65 AS INTEGER ) ) + 4 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8193
SELECT DISTINCT CAST( - - SUM( + 97 ) AS SIGNED ) + 62
----
159

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT CAST ( - - SUM ( + 97 ) AS INTEGER ) + 62
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT + CASE + - 22 WHEN - COUNT( * ) - COUNT( * ) THEN + + 69 * 60 * - + ( + COUNT( * ) ) + + + 16 + + 44 * + + COUNT( * ) ELSE NULL END * MIN( + - 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT + CASE + - 22 WHEN - COUNT ( * ) - COUNT ( * ) THEN + + 69 * 60 * - + ( + COUNT ( * ) ) + + + 16 + + 44 * + + COUNT ( * ) ELSE NULL END * MIN ( + - 53 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT ( + CAST( NULL AS SIGNED ) ) * 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT ( + CAST ( NULL AS INTEGER ) ) * 99 AS col0
----
NULL

query I rowsort
SELECT ALL 37 + + 68
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT 79 * COUNT( * ) - - - COUNT( - 38 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8197
SELECT 79 * COUNT ( * ) - - - COUNT ( - 38 ) AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT - 16 DIV 22 - 11 + - 27 - + 28 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-8198
SELECT - 16 / 22 - 11 + - 27 - + 28 AS col0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT - CAST( - 69 AS SIGNED ) * + 62
----
4278

skipif mysql # not compatible
query I rowsort label-8199
SELECT - CAST ( - 69 AS INTEGER ) * + 62
----
4278

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT + + NULLIF ( + + 77, - - 58 * + COUNT( DISTINCT 41 ) )
----
77

skipif mysql # not compatible
query I rowsort label-8200
SELECT + + NULLIF ( + + 77, - - 58 * + COUNT ( DISTINCT 41 ) )
----
77

query I rowsort
SELECT DISTINCT 22 - 95 * + 11
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT ALL 96 * + 26 + 4 * - - 81 * - 69 * - - COUNT( * ) AS col0
----
-19860

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL 96 * + 26 + 4 * - - 81 * - 69 * - - COUNT ( * ) AS col0
----
-19860

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT DISTINCT + MIN( ALL + 52 ) * + + 13
----
676

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT + MIN ( ALL + 52 ) * + + 13
----
676

query II rowsort
SELECT - 23 * - 42 AS col0, CASE - 8 WHEN 9 THEN - + 13 ELSE - 83 END * + - CASE - 78 WHEN + 72 THEN - 49 END + + 59 + - + 51 / + - 81 + - + 19 * 50 + 66 AS col0
----
966
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8205
SELECT - SUM( - ( - ( 1 ) ) ) * + 48 + - - 78 - + - 20 * - 14 + 4 DIV 7 DIV - ( - + CASE + + COUNT( * ) WHEN - + 15 + 93 * + 22 THEN - 33 WHEN + + 73 THEN - 43 WHEN + 39 + - 40 THEN - COUNT( * ) ELSE + 7 END ) * 19
----
-250

skipif mysql # not compatible
query I rowsort label-8205
SELECT - SUM ( - ( - ( 1 ) ) ) * + 48 + - - 78 - + - 20 * - 14 + 4 / 7 / - ( - + CASE + + COUNT ( * ) WHEN - + 15 + 93 * + 22 THEN - 33 WHEN + + 73 THEN - 43 WHEN + 39 + - 40 THEN - COUNT ( * ) ELSE + 7 END ) * 19
----
-250

onlyif mysql # DIV for integer division: 
query I rowsort label-8206
SELECT ALL + 17 DIV ( 20 )
----
0

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + 17 / ( 20 )
----
0

query I rowsort
SELECT + 72 * 52
----
3744

onlyif mysql # aggregate syntax: 
query II rowsort label-8208
SELECT DISTINCT - COUNT( * ) AS col1, - 19 * COUNT( * ) * + 72 * - COUNT( * )
----
-1
1368

skipif mysql # not compatible
query II rowsort label-8208
SELECT DISTINCT - COUNT ( * ) AS col1, - 19 * COUNT ( * ) * + 72 * - COUNT ( * )
----
-1
1368

onlyif mysql # aggregate syntax: 
query II rowsort label-8209
SELECT 88 * 59 + - MIN( + 18 ) * + MAX( DISTINCT - 89 ), + 3 AS col1
----
6794
3

skipif mysql # not compatible
query II rowsort label-8209
SELECT 88 * 59 + - MIN ( + 18 ) * + MAX ( DISTINCT - 89 ), + 3 AS col1
----
6794
3

query I rowsort
SELECT 93 * 54
----
5022

onlyif mysql # DIV for integer division: 
query II rowsort label-8211
SELECT - 59, 31 * - 12 DIV 3 AS col1
----
-59
-124

skipif mysql # not compatible
query II rowsort label-8211
SELECT - 59, 31 * - 12 / 3 AS col1
----
-59
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT + 54 * CASE 60 WHEN + - COUNT( * ) THEN NULL ELSE 61 + + 37 * - NULLIF ( 54, + 45 ) END + - ( + 64 ) * 18 * - CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT + 54 * CASE 60 WHEN + - COUNT ( * ) THEN NULL ELSE 61 + + 37 * - NULLIF ( 54, + 45 ) END + - ( + 64 ) * 18 * - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 12 * - 8
----
-96

query I rowsort
SELECT ALL 53 + - - ( - 32 ) * - + 68 + 69 * - + 39
----
-462

query I rowsort
SELECT 2 + + ( - 34 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8216
SELECT ALL - 53 + + 86 + - 37 - 54 DIV 69 * - 23
----
-4

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL - 53 + + 86 + - 37 - 54 / 69 * - 23
----
-4

query I rowsort
SELECT 9 - 79 col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL + 90 + - COUNT( * ) + COUNT( ALL - 61 ) * 2 + - 97
----
-6

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + 90 + - COUNT ( * ) + COUNT ( ALL - 61 ) * 2 + - 97
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8219
SELECT 18 + + COUNT( * ) + + + COALESCE ( + - 44, - 46, - COUNT( - 59 ) * + + 26 * + 19 + - - 62 + - 15 + 1 ) * 44 AS col2, 48
----
-1917
48

skipif mysql # not compatible
query II rowsort label-8219
SELECT 18 + + COUNT ( * ) + + + COALESCE ( + - 44, - 46, - COUNT ( - 59 ) * + + 26 * + 19 + - - 62 + - 15 + 1 ) * 44 AS col2, 48
----
-1917
48

query II rowsort
SELECT DISTINCT 34 col2, + 66 * - + 29 AS col1
----
34
-1914

query I rowsort
SELECT 99 * + 36
----
3564

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT COUNT( * ) + + 83 + - - 8
----
92

skipif mysql # not compatible
query I rowsort label-8222
SELECT COUNT ( * ) + + 83 + - - 8
----
92

query I rowsort
SELECT + 5 + - + 24 AS col0
----
-19

query I rowsort
SELECT + 74 - 42 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + 14 * - NULLIF ( + 66, - 54 * + COUNT( * ) ) AS col2
----
-924

skipif mysql # not compatible
query I rowsort label-8225
SELECT + 14 * - NULLIF ( + 66, - 54 * + COUNT ( * ) ) AS col2
----
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-8226
SELECT ALL + + 43 DIV + - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + + 43 / + - 52 AS col1
----
0

query II rowsort
SELECT DISTINCT - 58 AS col1, + 77 * + 45 + + 18 AS col0
----
-58
3483

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL + ( + 47 ) * - 37 - + COUNT( * ) AS col2
----
-1740

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL + ( + 47 ) * - 37 - + COUNT ( * ) AS col2
----
-1740

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8229
SELECT ALL - 76, CAST( 45 AS SIGNED ) AS col1
----
-76
45

skipif mysql # not compatible
query II rowsort label-8229
SELECT ALL - 76, CAST ( 45 AS INTEGER ) AS col1
----
-76
45

query II rowsort
SELECT + NULLIF ( 86, - + 93 ), 66 * - + 96 AS col2
----
86
-6336

query I rowsort
SELECT ALL - + 55 * + 14
----
-770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT - 59 * COALESCE ( + + CAST( NULL AS SIGNED ), - 37 * - 58 * CAST( NULL AS SIGNED ) / COUNT( * ) + + 48 * - 46 + 67 * - + COUNT( * ) * - + 70 - ( 72 ) * - + 99 ) + - COUNT( * ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT - 59 * COALESCE ( + + CAST ( NULL AS INTEGER ), - 37 * - 58 * CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 48 * - 46 + 67 * - + COUNT ( * ) * - + 70 - ( 72 ) * - + 99 ) + - COUNT ( * ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT + 21 * + 32 * - 43 - + 91 - - + 45 * + 61 * - MAX( + 44 ) * ( - MIN( DISTINCT + 74 ) ) + + 23 * + - 65 col1
----
8907238

skipif mysql # not compatible
query I rowsort label-8233
SELECT + 21 * + 32 * - 43 - + 91 - - + 45 * + 61 * - MAX ( + 44 ) * ( - MIN ( DISTINCT + 74 ) ) + + 23 * + - 65 col1
----
8907238

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT + 90 * COUNT( ALL - 33 ) * + 45
----
4050

skipif mysql # not compatible
query I rowsort label-8234
SELECT + 90 * COUNT ( ALL - 33 ) * + 45
----
4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8235
SELECT + 72 * - SUM( - 54 ) * + 48 + - + 15 + - 31 * 84 * CAST( NULL AS SIGNED ) + - 29 - - 24 + - + 61 + - 99 * - 4 / + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT + 72 * - SUM ( - 54 ) * + 48 + - + 15 + - 31 * 84 * CAST ( NULL AS INTEGER ) + - 29 - - 24 + - + 61 + - 99 * - 4 / + 27 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8236
SELECT + ( - AVG ( + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT + ( - AVG ( + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT ALL ( 39 ) * - MIN( DISTINCT - 28 ) - + - 15 - - 77
----
1184

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL ( 39 ) * - MIN ( DISTINCT - 28 ) - + - 15 - - 77
----
1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8238
SELECT ALL - - 40 AS col1, COUNT( * ) - - 34 / + - 69 + - - 5 * + + 6 * - + CAST( - CASE + 31 WHEN 92 + 18 THEN + 4 + - 76 + - 88 END AS SIGNED ) + - 49 AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-8238
SELECT ALL - - 40 AS col1, COUNT ( * ) - - 34 / + - 69 + - - 5 * + + 6 * - + CAST ( - CASE + 31 WHEN 92 + 18 THEN + 4 + - 76 + - 88 END AS INTEGER ) + - 49 AS col2
----
40
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT 58 DIV 37 * + + 3
----
3

skipif mysql # not compatible
query I rowsort label-8239
SELECT 58 / 37 * + + 3
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8240
SELECT 20 * - CAST( NULL AS SIGNED ) / + 57 + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT 20 * - CAST ( NULL AS INTEGER ) / + 57 + 40
----
NULL

query I rowsort
SELECT ALL 13 + + - 35 + - 18 * + 53
----
-976

query I rowsort
SELECT 3 + - 95 * + + 97
----
-9212

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT DISTINCT 48 + - MAX( ALL - ( + 79 ) ) + + + 38 AS col1
----
165

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT 48 + - MAX ( ALL - ( + 79 ) ) + + + 38 AS col1
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT + CASE - + ( + 82 ) WHEN + 59 THEN 73 END * 74 * 50 / + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT + CASE - + ( + 82 ) WHEN + 59 THEN 73 END * 74 * 50 / + + COUNT ( * )
----
NULL

query I rowsort
SELECT - 77 + 58 col0
----
-19

query I rowsort
SELECT + 47 * + 37 * - 23 AS col0
----
-39997

query I rowsort
SELECT ALL 53 + + - 27 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT DISTINCT 12 + COUNT( * ) * + 26
----
38

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT 12 + COUNT ( * ) * + 26
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL + 21 + - + ( - COUNT( * ) )
----
22

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + 21 + - + ( - COUNT ( * ) )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8250
SELECT + 41 * - + CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT + 41 * - + CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT + 17 * - ( - - ( MIN( + 64 ) ) )
----
-1088

skipif mysql # not compatible
query I rowsort label-8251
SELECT + 17 * - ( - - ( MIN ( + 64 ) ) )
----
-1088

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8252
SELECT + CAST( NULL AS DECIMAL ) - + 43 / + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8252
SELECT + CAST ( NULL AS REAL ) - + 43 / + 16 AS col2
----
NULL

query I rowsort
SELECT + 81 * 60
----
4860

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8254
SELECT ALL - CAST( NULL AS SIGNED ) * 51 AS col2, - 57 * - - 23
----
NULL
-1311

skipif mysql # not compatible
query II rowsort label-8254
SELECT ALL - CAST ( NULL AS INTEGER ) * 51 AS col2, - 57 * - - 23
----
NULL
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT - CASE - 82 WHEN 39 + + + ( ( + 79 ) ) THEN + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT - CASE - 82 WHEN 39 + + + ( ( + 79 ) ) THEN + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT ALL COUNT( DISTINCT 19 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL COUNT ( DISTINCT 19 ) col2
----
1

query I rowsort
SELECT DISTINCT - 32 * - 57 * - 22
----
-40128

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL COUNT( - - 78 ) * + 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL COUNT ( - - 78 ) * + 33 AS col2
----
33

query I rowsort
SELECT DISTINCT - CASE 92 WHEN - ( + AVG ( DISTINCT 33 ) ) * - 3 * - AVG ( ALL + + 17 ) THEN + 35 * - 15 WHEN 76 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT DISTINCT - COALESCE ( 10, COUNT( DISTINCT - ( - - 50 ) ) + 62 )
----
-10

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT - COALESCE ( 10, COUNT ( DISTINCT - ( - - 50 ) ) + 62 )
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-8261
SELECT - - COUNT( * ) + - 20 col1, - 38 AS col0
----
-19
-38

skipif mysql # not compatible
query II rowsort label-8261
SELECT - - COUNT ( * ) + - 20 col1, - 38 AS col0
----
-19
-38

query I rowsort
SELECT + + COALESCE ( 79, 78 + 75 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT - 57 * + MAX( + 83 ) * - 76 - + ( - - 13 ) + + + 62 + + 91
----
359696

skipif mysql # not compatible
query I rowsort label-8263
SELECT - 57 * + MAX ( + 83 ) * - 76 - + ( - - 13 ) + + + 62 + + 91
----
359696

query I rowsort
SELECT - 84 + + + ( + 13 )
----
-71

query I rowsort
SELECT DISTINCT + + 90 * - - 31
----
2790

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL - + COUNT( * ) * MIN( DISTINCT + - 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL - + COUNT ( * ) * MIN ( DISTINCT + - 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL ( + + 85 ) * - SUM( - 74 ) + + COUNT( 73 ) AS col2
----
6291

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL ( + + 85 ) * - SUM ( - 74 ) + + COUNT ( 73 ) AS col2
----
6291

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT - + MAX( ALL + + 24 ) * - 53
----
1272

skipif mysql # not compatible
query I rowsort label-8268
SELECT - + MAX ( ALL + + 24 ) * - 53
----
1272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8269
SELECT DISTINCT + CAST( - COUNT( + + 28 ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT + CAST ( - COUNT ( + + 28 ) AS INTEGER ) col1
----
-1

query I rowsort
SELECT NULLIF ( - 98, ( - 54 ) / + 91 ) AS col1
----
-98

query I rowsort
SELECT + NULLIF ( + - 8, - 39 * 16 + - 54 * ( 59 ) + - 12 + + 0 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT + NULLIF ( + 94, + COALESCE ( + COUNT( * ), 54 + + 23, + 6 ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8272
SELECT + NULLIF ( + 94, + COALESCE ( + COUNT ( * ), 54 + + 23, + 6 ) ) AS col2
----
94

query I rowsort
SELECT NULLIF ( - 55, - 44 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT + COUNT( + 9 )
----
1

skipif mysql # not compatible
query I rowsort label-8274
SELECT + COUNT ( + 9 )
----
1

query I rowsort
SELECT ALL + 56 * + + 38 + + + 85 + 43 * + 79 AS col2
----
5610

query II rowsort
SELECT DISTINCT + COALESCE ( - ( - + 1 ), 29, - - 85 ), - 78 AS col2
----
1
-78

query I rowsort
SELECT + NULLIF ( - + 47, - 61 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT SUM( - - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-8278
SELECT SUM ( - - 74 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8279
SELECT ALL + 62 DIV - 5
----
-12

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL + 62 / - 5
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT + 18 DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT + 18 / + - 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8281
SELECT - ( - COUNT( * ) ) * + 49 * - + 88 * - 82 - + 60 * COUNT( * ) * - + ( - - CASE - 60 WHEN + CAST( 52 AS SIGNED ) THEN + 59 / + 78 + + ( + ( - + 93 ) ) ELSE NULL END ) + + + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT - ( - COUNT ( * ) ) * + 49 * - + 88 * - 82 - + 60 * COUNT ( * ) * - + ( - - CASE - 60 WHEN + CAST ( 52 AS INTEGER ) THEN + 59 / + 78 + + ( + ( - + 93 ) ) ELSE NULL END ) + + + 91 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8282
SELECT ALL - CAST( NULL AS SIGNED ) * - ( - - 89 ) - COALESCE ( - 75, 65 * - - 66 * + - 16 + - 27 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL - CAST ( NULL AS INTEGER ) * - ( - - 89 ) - COALESCE ( - 75, 65 * - - 66 * + - 16 + - 27 ) col2
----
NULL

query I rowsort
SELECT + 82 + - + 31 + - + 33
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8284
SELECT + MIN( + 44 ) - + 15 AS col0, 85 * - - 96 * - 57
----
29
-465120

skipif mysql # not compatible
query II rowsort label-8284
SELECT + MIN ( + 44 ) - + 15 AS col0, 85 * - - 96 * - 57
----
29
-465120

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT MAX( - 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8285
SELECT MAX ( - 62 ) AS col2
----
-62

query I rowsort
SELECT + 58 + + 11 + 61
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL - MAX( DISTINCT - 17 ) - + 90 * - + 69 + - 80 * - 68 AS col2
----
11667

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL - MAX ( DISTINCT - 17 ) - + 90 * - + 69 + - 80 * - 68 AS col2
----
11667

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT + 10 + + COALESCE ( - MIN( + - 27 ), + 66 * - COALESCE ( - - 26, - ( 61 ) - + 1 + - 30, - - NULLIF ( - 51, + SUM( DISTINCT 86 ) ) ) )
----
37

skipif mysql # not compatible
query I rowsort label-8288
SELECT + 10 + + COALESCE ( - MIN ( + - 27 ), + 66 * - COALESCE ( - - 26, - ( 61 ) - + 1 + - 30, - - NULLIF ( - 51, + SUM ( DISTINCT 86 ) ) ) )
----
37

query I rowsort
SELECT + + 25 + + 77
----
102

query I rowsort
SELECT + - 50 + + 83 AS col2
----
33

query I rowsort
SELECT + + 76 + - - 81
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT - 45 * + ( - + CAST( - 78 AS SIGNED ) )
----
-3510

skipif mysql # not compatible
query I rowsort label-8292
SELECT - 45 * + ( - + CAST ( - 78 AS INTEGER ) )
----
-3510

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT + COUNT( * ) + - + 16 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8293
SELECT + COUNT ( * ) + - + 16 AS col2
----
-15

query I rowsort
SELECT ALL 72 * - 17 AS col2
----
-1224

query I rowsort
SELECT + - 98 * 54
----
-5292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT ALL + + ( - CASE + - 87 WHEN + 34 * 4 * + 60 * + 71 THEN - - ( 53 ) - + - 24 WHEN - + 13 + + 51 / - 75 THEN NULL WHEN + 8 - - 64 + CAST( - 97 AS SIGNED ) + + NULLIF ( + + 83, + 84 + - 28 ) THEN - 94 + + 59 / 77 ELSE ( - CAST( NULL AS SIGNED ) ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT ALL + + ( - CASE + - 87 WHEN + 34 * 4 * + 60 * + 71 THEN - - ( 53 ) - + - 24 WHEN - + 13 + + 51 / - 75 THEN NULL WHEN + 8 - - 64 + CAST ( - 97 AS INTEGER ) + + NULLIF ( + + 83, + 84 + - 28 ) THEN - 94 + + 59 / 77 ELSE ( - CAST ( NULL AS INTEGER ) ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT ALL COUNT( * ) / 43 + - - CASE MAX( - 82 ) WHEN - + COUNT( * ) THEN + 74 * - ( + + 52 ) * + 41 * ( + + 6 ) END + - 75 + NULLIF ( 76, 86 ) * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL COUNT ( * ) / 43 + - - CASE MAX ( - 82 ) WHEN - + COUNT ( * ) THEN + 74 * - ( + + 52 ) * + 41 * ( + + 6 ) END + - 75 + NULLIF ( 76, 86 ) * - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8298
SELECT ALL + 56 DIV + - 86 + + - 45 col2, - 27 + + 26 AS col0
----
-45
-1

skipif mysql # not compatible
query II rowsort label-8298
SELECT ALL + 56 / + - 86 + + - 45 col2, - 27 + + 26 AS col0
----
-45
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8299
SELECT DISTINCT 96 DIV CAST( 53 AS SIGNED ) + - 20
----
-19

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT 96 / CAST ( 53 AS INTEGER ) + - 20
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8300
SELECT ALL COUNT( * ) DIV + 33 + 70 * - - 33 + + 53 * - 24 - + 74 + + 2 AS col0
----
966

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL COUNT ( * ) / + 33 + 70 * - - 33 + + 53 * - 24 - + 74 + + 2 AS col0
----
966

onlyif mysql # aggregate syntax: 
query II rowsort label-8301
SELECT ALL - COUNT( * ) AS col0, + 30 AS col2
----
-1
30

skipif mysql # not compatible
query II rowsort label-8301
SELECT ALL - COUNT ( * ) AS col0, + 30 AS col2
----
-1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT ( - - CASE - 50 WHEN - 21 * + + 75 THEN + COUNT( * ) END ) / + 96 + + 0 + + 77 + + ( - 19 ) * + + 63 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT ( - - CASE - 50 WHEN - 21 * + + 75 THEN + COUNT ( * ) END ) / + 96 + + 0 + + 77 + + ( - 19 ) * + + 63 * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8303
SELECT ALL 78 + + CAST( NULL AS DECIMAL ) - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL 78 + + CAST ( NULL AS REAL ) - + 99
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8304
SELECT ALL 36 DIV - + NULLIF ( - 56, + 60 )
----
0

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL 36 / - + NULLIF ( - 56, + 60 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8305
SELECT 15, - MIN( - + 90 ) + + - 97 + - 41 * - - COALESCE ( + 14, + + 91 ) col0
----
15
-581

skipif mysql # not compatible
query II rowsort label-8305
SELECT 15, - MIN ( - + 90 ) + + - 97 + - 41 * - - COALESCE ( + 14, + + 91 ) col0
----
15
-581

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL - COUNT( * ) + + 16 col0
----
15

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL - COUNT ( * ) + + 16 col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT ALL + 67 * - COALESCE ( ( + - 71 ), + 99 * + - NULLIF ( - + 62, 74 ) + - 78 + - - 93, - - 0 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + 67 * - COALESCE ( ( + - 71 ), + 99 * + - NULLIF ( - + 62, 74 ) + - 78 + - - 93, - - 0 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 9 + + - 97 col0, - 87 AS col1
----
-88
-87

query I rowsort
SELECT 12 * - 65 * 71 col0
----
-55380

query II rowsort
SELECT ALL - 83, 49 AS col1
----
-83
49

onlyif mysql # aggregate syntax: 
query II rowsort label-8311
SELECT 9 col0, COUNT( * ) + + 87
----
9
88

skipif mysql # not compatible
query II rowsort label-8311
SELECT 9 col0, COUNT ( * ) + + 87
----
9
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8312
SELECT COUNT( * ) + 0 - + 43 DIV - MAX( ALL 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8312
SELECT COUNT ( * ) + 0 - + 43 / - MAX ( ALL 51 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT DISTINCT - COUNT( * ) - + + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT - COUNT ( * ) - + + COUNT ( * ) AS col2
----
-2

query II rowsort
SELECT + 20, 96 AS col0
----
20
96

query II rowsort
SELECT 52, + 26 AS col0
----
52
26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8316
SELECT 44 + CAST( NULL AS SIGNED ) AS col1, 88 AS col0
----
NULL
88

skipif mysql # not compatible
query II rowsort label-8316
SELECT 44 + CAST ( NULL AS INTEGER ) AS col1, 88 AS col0
----
NULL
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT ALL - CAST( - 44 AS SIGNED ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - CAST ( - 44 AS INTEGER ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT ALL 34 AS col2, SUM( 3 ) AS col1
----
34
3

skipif mysql # not compatible
query II rowsort label-8318
SELECT ALL 34 AS col2, SUM ( 3 ) AS col1
----
34
3

query I rowsort
SELECT DISTINCT 5 * + 4
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-8320
SELECT 52 AS col1, 64 * - COUNT( * )
----
52
-64

skipif mysql # not compatible
query II rowsort label-8320
SELECT 52 AS col1, 64 * - COUNT ( * )
----
52
-64

query I rowsort
SELECT ALL 40 * - 9 AS col0
----
-360

onlyif mysql # DIV for integer division: 
query II rowsort label-8322
SELECT ALL 43, ( - - 31 ) DIV - 34 * + 13 AS col1
----
43
0

skipif mysql # not compatible
query II rowsort label-8322
SELECT ALL 43, ( - - 31 ) / - 34 * + 13 AS col1
----
43
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8323
SELECT ALL + 83 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL + 83 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8324
SELECT ALL COUNT( * ) + - - CAST( - - 15 AS SIGNED ) * - 60 AS col1
----
-899

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL COUNT ( * ) + - - CAST ( - - 15 AS INTEGER ) * - 60 AS col1
----
-899

query I rowsort
SELECT 10 * - 50
----
-500

query I rowsort
SELECT ALL - + 81 * - 40 * - 53 * NULLIF ( 80, + 30 ) + + - 88 + + 71 AS col2
----
-13737617

query I rowsort
SELECT - COALESCE ( + 9, 20 * 57 ) AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT + COUNT( * ) - + 96 / + - COUNT( * ) * 29 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT + COUNT ( * ) - + 96 / + - COUNT ( * ) * 29 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT - 32 + COUNT( * ) * 3
----
-29

skipif mysql # not compatible
query I rowsort label-8329
SELECT - 32 + COUNT ( * ) * 3
----
-29

query I rowsort
SELECT DISTINCT 2 + + 58 AS col0
----
60

query II rowsort
SELECT - 72, - 8 + + 2 AS col0
----
-72
-6

query I rowsort
SELECT + NULLIF ( - - 52, - 18 )
----
52

query I rowsort
SELECT + - 80 * - 68 + + 53
----
5493

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT DISTINCT 91 * 66 + + 73 + - - SUM( ALL - 11 ) AS col0
----
6068

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT 91 * 66 + + 73 + - - SUM ( ALL - 11 ) AS col0
----
6068

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT 9 * NULLIF ( 89, + COUNT( * ) )
----
801

skipif mysql # not compatible
query I rowsort label-8335
SELECT 9 * NULLIF ( 89, + COUNT ( * ) )
----
801

query I rowsort
SELECT 92 * + 59
----
5428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8337
SELECT 90 * + 86 / - MIN( 48 ) - - CAST( NULL AS SIGNED ), - 47 AS col0
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-8337
SELECT 90 * + 86 / - MIN ( 48 ) - - CAST ( NULL AS INTEGER ), - 47 AS col0
----
NULL
-47

query I rowsort
SELECT 47 * 93 AS col0
----
4371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8339
SELECT ALL - ( 75 ) * - CASE - COUNT( * ) WHEN + - COUNT( * ) / + 61 + + ( - - 39 ) * - CASE + - COALESCE ( + COUNT( * ), + + 10 ) WHEN + - 69 THEN NULL WHEN + 28 * + - 47 THEN NULL ELSE - 78 END * - - COUNT( * ) / + 99 THEN NULL ELSE - - 28 + 99 * - 86 END * + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - ( 75 ) * - CASE - COUNT ( * ) WHEN + - COUNT ( * ) / + 61 + + ( - - 39 ) * - CASE + - COALESCE ( + COUNT ( * ), + + 10 ) WHEN + - 69 THEN NULL WHEN + 28 * + - 47 THEN NULL ELSE - 78 END * - - COUNT ( * ) / + 99 THEN NULL ELSE - - 28 + 99 * - 86 END * + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT 37 DIV 50 * ( + 49 )
----
0

skipif mysql # not compatible
query I rowsort label-8340
SELECT 37 / 50 * ( + 49 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8341
SELECT CAST( NULL AS SIGNED ) + ( + 48 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT CAST ( NULL AS INTEGER ) + ( + 48 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 28 * 24
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT COUNT( * ) * + MIN( ALL 25 ) + + 53 + - 84
----
-6

skipif mysql # not compatible
query I rowsort label-8343
SELECT COUNT ( * ) * + MIN ( ALL 25 ) + + 53 + - 84
----
-6

query II rowsort
SELECT + ( - 53 ), + 0 AS col1
----
-53
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT DISTINCT COALESCE ( 86, - MAX( - 97 ) + + 67, + - 74 )
----
86

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT COALESCE ( 86, - MAX ( - 97 ) + + 67, + - 74 )
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8346
SELECT ALL + CAST( + 44 AS SIGNED ) + - 59 DIV - 52 col0
----
45

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL + CAST ( + 44 AS INTEGER ) + - 59 / - 52 col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8347
SELECT + 58 + + COUNT( * ) + - + CAST( + 33 AS SIGNED ) + + 66
----
92

skipif mysql # not compatible
query I rowsort label-8347
SELECT + 58 + + COUNT ( * ) + - + CAST ( + 33 AS INTEGER ) + + 66
----
92

query I rowsort
SELECT 78 + - - 24 * - - 43
----
1110

query I rowsort
SELECT DISTINCT + + 17 + - 57 col1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8350
SELECT DISTINCT - ( - 41 ) AS col1, + 39 + COUNT( * ) + - - 35 * + 28
----
41
1020

skipif mysql # not compatible
query II rowsort label-8350
SELECT DISTINCT - ( - 41 ) AS col1, + 39 + COUNT ( * ) + - - 35 * + 28
----
41
1020

query I rowsort
SELECT DISTINCT 33 + - - 76 AS col1
----
109

query I rowsort
SELECT DISTINCT - 60 + ( 26 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8353
SELECT ALL COUNT( 39 ) AS col1, 85 DIV + 88 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-8353
SELECT ALL COUNT ( 39 ) AS col1, 85 / + 88 AS col2
----
1
0

query I rowsort
SELECT 4 * - 36
----
-144

query I rowsort
SELECT 48 + + + 36 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT - COALESCE ( 46, NULLIF ( + MAX( ALL - 60 ), - 19 + + 27 ) * - 76 * - + 19 - - 97 )
----
-46

skipif mysql # not compatible
query I rowsort label-8356
SELECT - COALESCE ( 46, NULLIF ( + MAX ( ALL - 60 ), - 19 + + 27 ) * - 76 * - + 19 - - 97 )
----
-46

query I rowsort
SELECT 94 + - - 18 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT - + SUM( + 2 ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-8358
SELECT - + SUM ( + 2 ) col0
----
-2

query II rowsort
SELECT ALL + ( 59 ), + 90 AS col1
----
59
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT ALL 18 + + COUNT( + 4 ) * 26 + - COUNT( ALL 59 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL 18 + + COUNT ( + 4 ) * 26 + - COUNT ( ALL 59 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT + - SUM( ALL + - 98 ) * - 89 * - + 20
----
174440

skipif mysql # not compatible
query I rowsort label-8361
SELECT + - SUM ( ALL + - 98 ) * - 89 * - + 20
----
174440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8362
SELECT DISTINCT COUNT( * ) - + CAST( NULL AS SIGNED ) - 64 * - 60 + + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT COUNT ( * ) - + CAST ( NULL AS INTEGER ) - 64 * - 60 + + 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL + MIN( DISTINCT COALESCE ( 76, + 38 + ( - 48 ) * 28, ( + 75 ) ) ) * + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL + MIN ( DISTINCT COALESCE ( 76, + 38 + ( - 48 ) * 28, ( + 75 ) ) ) * + COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8364
SELECT DISTINCT 59 * - - 39 - + ( - COUNT( * ) ) col0, 51 + + 14 AS col2
----
2302
65

skipif mysql # not compatible
query II rowsort label-8364
SELECT DISTINCT 59 * - - 39 - + ( - COUNT ( * ) ) col0, 51 + + 14 AS col2
----
2302
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT + 77 DIV + 76
----
1

skipif mysql # not compatible
query I rowsort label-8365
SELECT + 77 / + 76
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + COALESCE ( - 8, COUNT( * ) * - ( - 92 ) + + + 32 + + 90 * - 90, + - COUNT( * ) * - NULLIF ( + 36, 84 * COALESCE ( + + 88, - 5, + + 43 ) ) ) + + 90 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8366
SELECT + COALESCE ( - 8, COUNT ( * ) * - ( - 92 ) + + + 32 + + 90 * - 90, + - COUNT ( * ) * - NULLIF ( + 36, 84 * COALESCE ( + + 88, - 5, + + 43 ) ) ) + + 90 AS col0
----
82

query I rowsort
SELECT + 65 * + 15 AS col1
----
975

query I rowsort
SELECT + 71 * + + 2 * + 58 * 1
----
8236

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT + 88 - + + COUNT( * ) + + 24
----
111

skipif mysql # not compatible
query I rowsort label-8369
SELECT + 88 - + + COUNT ( * ) + + 24
----
111

query I rowsort
SELECT ALL 29 * + 66 * COALESCE ( - - NULLIF ( - 51, - 38 + + 75 ), - 6 ) AS col0
----
-97614

query I rowsort
SELECT + 35 * - - 37 AS col2
----
1295

query I rowsort
SELECT ALL 41 * + 92 AS col2
----
3772

query I rowsort
SELECT + 99 * - + 68 AS col2
----
-6732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT 32 * + CAST( NULL AS SIGNED ) * + + 18 + 61 + + - 82 * - - 30 + + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT 32 * + CAST ( NULL AS INTEGER ) * + + 18 + 61 + + - 82 * - - 30 + + 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT COUNT( + 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8375
SELECT COUNT ( + 73 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8376
SELECT - CASE + CAST( NULL AS DECIMAL ) WHEN - + COUNT( * ) THEN + 36 + - + 47 + CAST( - + 16 AS SIGNED ) + 32 END + - MAX( + 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT - CASE + CAST ( NULL AS REAL ) WHEN - + COUNT ( * ) THEN + 36 + - + 47 + CAST ( - + 16 AS INTEGER ) + 32 END + - MAX ( + 91 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8377
SELECT + 89 col2, + SUM( DISTINCT - + 60 ) + + 82 AS col1
----
89
22

skipif mysql # not compatible
query II rowsort label-8377
SELECT + 89 col2, + SUM ( DISTINCT - + 60 ) + + 82 AS col1
----
89
22

query I rowsort
SELECT + 69 * + 77
----
5313

query I rowsort
SELECT + ( - + ( - 54 ) ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT - + SUM( DISTINCT + 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8380
SELECT - + SUM ( DISTINCT + 7 ) AS col0
----
-7

query II rowsort
SELECT DISTINCT - 21, + 47 AS col2
----
-21
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8382
SELECT ALL - - 18 + 46 * + 83 - - CAST( NULL AS SIGNED ) + 95 / NULLIF ( + 69, - - MAX( 15 ) ) / - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL - - 18 + 46 * + 83 - - CAST ( NULL AS INTEGER ) + 95 / NULLIF ( + 69, - - MAX ( 15 ) ) / - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL NULLIF ( - + COUNT( * ), - - ( + + 52 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL NULLIF ( - + COUNT ( * ), - - ( + + 52 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8384
SELECT + 39 AS col0, COALESCE ( - 38, CAST( COALESCE ( - - 60, 16 * - CAST( - - COUNT( * ) AS SIGNED ) + + COUNT( * ) ) AS SIGNED ), - + 24 * + 43 + + + 67 + - 79 * 98 ) DIV - 18 - CAST( 54 AS SIGNED ) AS col1
----
39
-52

skipif mysql # not compatible
query II rowsort label-8384
SELECT + 39 AS col0, COALESCE ( - 38, CAST ( COALESCE ( - - 60, 16 * - CAST ( - - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) ) AS INTEGER ), - + 24 * + 43 + + + 67 + - 79 * 98 ) / - 18 - CAST ( 54 AS INTEGER ) AS col1
----
39
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT - + 61 DIV 71 * 25
----
0

skipif mysql # not compatible
query I rowsort label-8385
SELECT - + 61 / 71 * 25
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8386
SELECT - CASE + CASE ( 81 ) WHEN - 62 THEN + 21 * + 86 + - + CAST( + - 94 AS SIGNED ) ELSE NULL END WHEN + 29 + COUNT( * ) THEN NULL ELSE 53 END
----
-53

skipif mysql # not compatible
query I rowsort label-8386
SELECT - CASE + CASE ( 81 ) WHEN - 62 THEN + 21 * + 86 + - + CAST ( + - 94 AS INTEGER ) ELSE NULL END WHEN + 29 + COUNT ( * ) THEN NULL ELSE 53 END
----
-53

query II rowsort
SELECT + 0 AS col1, 63 * 55 * 87
----
0
301455

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - + MAX( ALL - 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8388
SELECT - + MAX ( ALL - 60 ) AS col0
----
60

query I rowsort
SELECT - + ( - - 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT DISTINCT - 37 * + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT - 37 * + + COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT - SUM( ALL + 38 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8391
SELECT - SUM ( ALL + 38 ) AS col2
----
-38

query I rowsort
SELECT ALL 51 * + + 45
----
2295

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT - COUNT( * ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT - COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT - MAX( ALL + 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-8394
SELECT - MAX ( ALL + 55 ) AS col1
----
-55

query I rowsort
SELECT DISTINCT - 17 * + 47 AS col0
----
-799

query I rowsort
SELECT 8 * - 52 + + - 86 AS col1
----
-502

query I rowsort
SELECT DISTINCT + 18 * + + 80 * 16
----
23040

query I rowsort
SELECT ALL + 0 * 71 col0
----
0

query I rowsort
SELECT + 11 * - + 13
----
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-8400
SELECT ALL 60 DIV - - 33 + - - COALESCE ( - + 55, + 78, + + ( - 23 ) DIV + 16 * 19 DIV 71 + + 61 - + 49 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL 60 / - - 33 + - - COALESCE ( - + 55, + 78, + + ( - 23 ) / + 16 * 19 / 71 + + 61 - + 49 ) AS col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8401
SELECT DISTINCT 82 DIV + 43 AS col2, - ( COUNT( * ) ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-8401
SELECT DISTINCT 82 / + 43 AS col2, - ( COUNT ( * ) ) AS col2
----
1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8402
SELECT - 99 DIV 58 * - + 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-8402
SELECT - 99 / 58 * - + 69 AS col2
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8403
SELECT DISTINCT - 93 DIV - - 93 + - SUM( 83 ), 94 AS col1
----
-84
94

skipif mysql # not compatible
query II rowsort label-8403
SELECT DISTINCT - 93 / - - 93 + - SUM ( 83 ), 94 AS col1
----
-84
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8404
SELECT + CAST( 83 AS SIGNED ) AS col0, COUNT( * ) AS col1
----
83
1

skipif mysql # not compatible
query II rowsort label-8404
SELECT + CAST ( 83 AS INTEGER ) AS col0, COUNT ( * ) AS col1
----
83
1

query I rowsort
SELECT ( + - 34 ) col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT DISTINCT + COUNT( * ) * - SUM( - + 14 ) + - - 90 + + + 5 + + + 19 col1
----
128

skipif mysql # not compatible
query I rowsort label-8406
SELECT DISTINCT + COUNT ( * ) * - SUM ( - + 14 ) + - - 90 + + + 5 + + + 19 col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL + 33 * - 75 + - COUNT( - 78 )
----
-2476

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL + 33 * - 75 + - COUNT ( - 78 )
----
-2476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT - 91 * + 21 + + 56 + - 79 * + 64 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT - 91 * + 21 + + 56 + - 79 * + 64 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - + NULLIF ( + 1, - 69 * 33 ), + 97 * 38 AS col0
----
-1
3686

query II rowsort
SELECT 64 + - - 41 AS col0, 70
----
105
70

query I rowsort
SELECT 8 - + 27 + 53
----
34

query I rowsort
SELECT DISTINCT CASE + 28 WHEN + ( + 87 ) * + - 30 / - 5 + 46 THEN - + 77 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8413
SELECT DISTINCT + NULLIF ( + CAST( NULL AS DECIMAL ), 55 * 94 + - + 58 + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT + NULLIF ( + CAST ( NULL AS REAL ), 55 * 94 + - + 58 + 73 )
----
NULL

query I rowsort
SELECT ALL COALESCE ( - 99, + - 64, + 54 ) - + 12 + + ( - 6 ) * 10 + 3
----
-168

query I rowsort
SELECT DISTINCT 57 - + 19 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ALL - ( + 7 ) * 27 * - SUM( + 14 ) AS col1
----
2646

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL - ( + 7 ) * 27 * - SUM ( + 14 ) AS col1
----
2646

query I rowsort
SELECT + 45 * + 14 * + 54
----
34020

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8418
SELECT 64 * + ( + + 63 ) + - - 72 AS col1, 88 * + + COALESCE ( + COUNT( * ), - SUM( + 48 ) * ( + + 52 ) * - 66 - - + 48 - - - 32 DIV + COUNT( * ) * 90 + + ( - - 98 ) ) * - 67 AS col0
----
4104
-5896

skipif mysql # not compatible
query II rowsort label-8418
SELECT 64 * + ( + + 63 ) + - - 72 AS col1, 88 * + + COALESCE ( + COUNT ( * ), - SUM ( + 48 ) * ( + + 52 ) * - 66 - - + 48 - - - 32 / + COUNT ( * ) * 90 + + ( - - 98 ) ) * - 67 AS col0
----
4104
-5896

onlyif mysql # aggregate syntax: 
query II rowsort label-8419
SELECT 67 * - - 48, CASE + + 73 WHEN 85 * - - COUNT( * ) - 54 + + AVG ( DISTINCT + 74 ) THEN NULL ELSE + 68 END * - - 26 * - 46 AS col2
----
3216
-81328

skipif mysql # not compatible
query II rowsort label-8419
SELECT 67 * - - 48, CASE + + 73 WHEN 85 * - - COUNT ( * ) - 54 + + AVG ( DISTINCT + 74 ) THEN NULL ELSE + 68 END * - - 26 * - 46 AS col2
----
3216
-81328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8420
SELECT 8 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT 8 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT - 0 * - + 58 + 86 DIV + 59
----
1

skipif mysql # not compatible
query I rowsort label-8421
SELECT - 0 * - + 58 + 86 / + 59
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT 78 - - MIN( ALL 36 ) + + 88 AS col2
----
202

skipif mysql # not compatible
query I rowsort label-8422
SELECT 78 - - MIN ( ALL 36 ) + + 88 AS col2
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL + 42 * + 17 * - COUNT( * ) AS col1
----
-714

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL + 42 * + 17 * - COUNT ( * ) AS col1
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT 52 + COUNT( * ) + 7 * + - 44
----
-255

skipif mysql # not compatible
query I rowsort label-8424
SELECT 52 + COUNT ( * ) + 7 * + - 44
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT DISTINCT - 15 + 92 - + - 32 + + COUNT( * ) + - - COUNT( * ) + COUNT( * ) + + 43 * 43 AS col0
----
1961

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT - 15 + 92 - + - 32 + + COUNT ( * ) + - - COUNT ( * ) + COUNT ( * ) + + 43 * 43 AS col0
----
1961

query I rowsort
SELECT ALL 34 + + ( + 95 ) * + 22 AS col1
----
2124

query I rowsort
SELECT + ( + 21 ) * 47 * - 30 + NULLIF ( ( - 26 ), 75 ) * - - 21 + 84 AS col2
----
-30072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8428
SELECT + + 93 * SUM( ALL - 66 ) DIV + + 46 + + + 48
----
-85

skipif mysql # not compatible
query I rowsort label-8428
SELECT + + 93 * SUM ( ALL - 66 ) / + + 46 + + + 48
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT 99 + - 84 * - + SUM( ALL - ( - + 46 ) ) * + + 33
----
127611

skipif mysql # not compatible
query I rowsort label-8429
SELECT 99 + - 84 * - + SUM ( ALL - ( - + 46 ) ) * + + 33
----
127611

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT ALL 57 DIV + 57
----
1

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL 57 / + 57
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT 30 / - ( - 64 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8431
SELECT 30 / - ( - 64 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8432
SELECT COUNT( * ) AS col2, 91 AS col2
----
1
91

skipif mysql # not compatible
query II rowsort label-8432
SELECT COUNT ( * ) AS col2, 91 AS col2
----
1
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT + CAST( NULL AS SIGNED ) + - + CASE - - 7 WHEN AVG ( ALL ( - + 59 ) ) * - + 25 * + - 8 * 29 THEN + - 74 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT + CAST ( NULL AS INTEGER ) + - + CASE - - 7 WHEN AVG ( ALL ( - + 59 ) ) * - + 25 * + - 8 * 29 THEN + - 74 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL - 48 * + COUNT( * ) + - 48 * COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL - 48 * + COUNT ( * ) + - 48 * COUNT ( * )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL - 98 * - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL - 98 * - COUNT ( * )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT + 76 * + + CAST( - - 82 AS SIGNED ) + - + 29
----
6203

skipif mysql # not compatible
query I rowsort label-8436
SELECT + 76 * + + CAST ( - - 82 AS INTEGER ) + - + 29
----
6203

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL COUNT( * ) * - 82 * + 37 AS col1
----
-3034

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL COUNT ( * ) * - 82 * + 37 AS col1
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT DISTINCT + MAX( ALL - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT + MAX ( ALL - 54 )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8439
SELECT - 43 DIV - COUNT( - + 97 ) AS col2, MIN( 17 ) AS col1
----
43
17

skipif mysql # not compatible
query II rowsort label-8439
SELECT - 43 / - COUNT ( - + 97 ) AS col2, MIN ( 17 ) AS col1
----
43
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT 79 * 97 * 75 DIV 47 AS col1
----
12228

skipif mysql # not compatible
query I rowsort label-8440
SELECT 79 * 97 * 75 / 47 AS col1
----
12228

query II rowsort
SELECT COALESCE ( - 8, + 11 ) AS col0, 93 * + 27 * - - 48 + 51 + 24
----
-8
120603

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT ALL - 38 col2, MIN( 64 )
----
-38
64

skipif mysql # not compatible
query II rowsort label-8442
SELECT ALL - 38 col2, MIN ( 64 )
----
-38
64

query I rowsort
SELECT NULLIF ( 0, - ( + COALESCE ( + 58, + ( 16 ), + + 57 ) ) + 41 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8444
SELECT ALL CAST( + 80 AS SIGNED ) DIV - 35 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL CAST ( + 80 AS INTEGER ) / - 35 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8445
SELECT CAST( NULL AS SIGNED ) / + - 57 * - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT CAST ( NULL AS INTEGER ) / + - 57 * - + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT - MAX( + + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-8446
SELECT - MAX ( + + 24 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8447
SELECT ALL + NULLIF ( + 5, + 46 + + CAST( - COUNT( * ) AS SIGNED ) + - AVG ( - ( + 50 ) ) ) + - 72 - COUNT( * ) * COALESCE ( + + 27, + 9, 21 * - + 2 + + 78 + 28 ) * + - 84 AS col1
----
2201

skipif mysql # not compatible
query I rowsort label-8447
SELECT ALL + NULLIF ( + 5, + 46 + + CAST ( - COUNT ( * ) AS INTEGER ) + - AVG ( - ( + 50 ) ) ) + - 72 - COUNT ( * ) * COALESCE ( + + 27, + 9, 21 * - + 2 + + 78 + 28 ) * + - 84 AS col1
----
2201

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL - 45 + - COUNT( * ) * - 50
----
5

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - 45 + - COUNT ( * ) * - 50
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8449
SELECT ALL 18 DIV - + 24
----
0

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL 18 / - + 24
----
0

query I rowsort
SELECT 43 + + ( + - 52 ) AS col1
----
-9

query I rowsort
SELECT 47 - - - 85 + 9 * + 69 AS col0
----
583

query I rowsort
SELECT 53 * 69 AS col2
----
3657

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL NULLIF ( - - 41, 20 + - + 33 * ( - + SUM( DISTINCT + 59 ) ) * 49 + 60 ) + - 68 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL NULLIF ( - - 41, 20 + - + 33 * ( - + SUM ( DISTINCT + 59 ) ) * 49 + 60 ) + - 68 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ( - 67 ) * - + SUM( 52 ) - + - 54 + + 96 * + - AVG ( 60 ) * + COUNT( * ) * + 41 * + 77 / CASE WHEN NOT COALESCE ( + - AVG ( ALL - 78 ), - COUNT( * ), 12 ) IS NOT NULL THEN + 13 WHEN NOT + 31 IS NOT NULL THEN COUNT( - - 6 ) + + ( - + 15 ) * - 82 / - COUNT( * ) WHEN NOT NULL BETWEEN ( 83 ) AND NULL THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT ( - 67 ) * - + SUM ( 52 ) - + - 54 + + 96 * + - AVG ( 60 ) * + COUNT ( * ) * + 41 * + 77 / CASE WHEN NOT COALESCE ( + - AVG ( ALL - 78 ), - COUNT ( * ), 12 ) IS NOT NULL THEN + 13 WHEN NOT + 31 IS NOT NULL THEN COUNT ( - - 6 ) + + ( - + 15 ) * - 82 / - COUNT ( * ) WHEN NOT NULL BETWEEN ( 83 ) AND NULL THEN NULL END AS col2
----
NULL

query II rowsort
SELECT + 82 AS col2, + 67 AS col0
----
82
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT ALL 7 * COUNT( * ) + ( + + 48 ) * + 9
----
439

skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL 7 * COUNT ( * ) + ( + + 48 ) * + 9
----
439

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT DISTINCT - NULLIF ( + + COUNT( DISTINCT + + 79 ), - 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT - NULLIF ( + + COUNT ( DISTINCT + + 79 ), - 11 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT 81 * + 41 * + COUNT( * ) col1
----
3321

skipif mysql # not compatible
query I rowsort label-8458
SELECT 81 * + 41 * + COUNT ( * ) col1
----
3321

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT ALL - MAX( DISTINCT + + 90 ) * + 47 - - + 66 + + - 26
----
-4190

skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL - MAX ( DISTINCT + + 90 ) * + 47 - - + 66 + + - 26
----
-4190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8460
SELECT + MAX( + 47 ) * 72 * 62 - - COUNT( * ) DIV + 70 + + - ( - - 3 ) AS col2
----
209805

skipif mysql # not compatible
query I rowsort label-8460
SELECT + MAX ( + 47 ) * 72 * 62 - - COUNT ( * ) / + 70 + + - ( - - 3 ) AS col2
----
209805

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT - 15 * COUNT( * ) * + 42 * 18
----
-11340

skipif mysql # not compatible
query I rowsort label-8461
SELECT - 15 * COUNT ( * ) * + 42 * 18
----
-11340

query I rowsort
SELECT - 85 * - 52 AS col2
----
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT - - 88 + 6 + + MAX( - ( - 42 ) ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-8463
SELECT - - 88 + 6 + + MAX ( - ( - 42 ) ) AS col0
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8464
SELECT ALL + COALESCE ( - CAST( - 40 AS SIGNED ), - 4 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + COALESCE ( - CAST ( - 40 AS INTEGER ), - 4 ) AS col0
----
40

query I rowsort
SELECT DISTINCT 53 * 22 - + + 81 AS col0
----
1085

query II rowsort
SELECT DISTINCT + - 17 col2, - 36
----
-17
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8467
SELECT ALL + - CASE - - 82 WHEN + + MAX( ALL - 45 ) THEN + 60 * - COUNT( * ) * + 91 * - 66 / + 83 + + 81 + + - 73 ELSE AVG ( ALL + 61 ) + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + - CASE - - 82 WHEN + + MAX ( ALL - 45 ) THEN + 60 * - COUNT ( * ) * + 91 * - 66 / + 83 + + 81 + + - 73 ELSE AVG ( ALL + 61 ) + + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - + 3 * + - 80
----
240

query I rowsort
SELECT - 74 - - 91 - - 89 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT + 44 * - COALESCE ( + COUNT( * ), + 90 * COUNT( * ) + + COALESCE ( + - COUNT( * ), + - 65 ) * - - 98 ) + - 62 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-8470
SELECT + 44 * - COALESCE ( + COUNT ( * ), + 90 * COUNT ( * ) + + COALESCE ( + - COUNT ( * ), + - 65 ) * - - 98 ) + - 62 AS col0
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8471
SELECT + 87 + - MIN( DISTINCT + 4 ) - - 69 + - CAST( - + 34 AS SIGNED ) DIV + - 10
----
149

skipif mysql # not compatible
query I rowsort label-8471
SELECT + 87 + - MIN ( DISTINCT + 4 ) - - 69 + - CAST ( - + 34 AS INTEGER ) / + - 10
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8472
SELECT ALL + - CASE + - CASE + 11 WHEN + 18 THEN NULL WHEN - - 94 THEN NULL WHEN - NULLIF ( 8, 18 / + - COALESCE ( NULLIF ( - CAST( - - MAX( + NULLIF ( - 45, + 82 ) ) AS SIGNED ), COUNT( * ) ), - 34, - 6 * + - 71 * + MAX( DISTINCT + ( 15 ) ) + 94 * + 67 ) ) THEN + + 94 + - 11 ELSE NULL END WHEN CAST( NULL AS SIGNED ) THEN + - 33 ELSE + 34 + - 55 END AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL + - CASE + - CASE + 11 WHEN + 18 THEN NULL WHEN - - 94 THEN NULL WHEN - NULLIF ( 8, 18 / + - COALESCE ( NULLIF ( - CAST ( - - MAX ( + NULLIF ( - 45, + 82 ) ) AS INTEGER ), COUNT ( * ) ), - 34, - 6 * + - 71 * + MAX ( DISTINCT + ( 15 ) ) + 94 * + 67 ) ) THEN + + 94 + - 11 ELSE NULL END WHEN CAST ( NULL AS INTEGER ) THEN + - 33 ELSE + 34 + - 55 END AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT - - NULLIF ( - + MIN( ( 75 ) ), - 94 + - + NULLIF ( + 9, + + ( + 80 ) ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8473
SELECT - - NULLIF ( - + MIN ( ( 75 ) ), - 94 + - + NULLIF ( + 9, + + ( + 80 ) ) ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8474
SELECT - - 87 * - + CAST( NULL AS SIGNED ) / + + 35 + - COALESCE ( + 68, + - 10, 39 + + NULLIF ( + 33, - 6 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8474
SELECT - - 87 * - + CAST ( NULL AS INTEGER ) / + + 35 + - COALESCE ( + 68, + - 10, 39 + + NULLIF ( + 33, - 6 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8475
SELECT - - CASE + CAST( - NULLIF ( - - 20, + COUNT( * ) + + + 52 ) AS SIGNED ) WHEN ( - 0 ) THEN 16 * 8 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT - - CASE + CAST ( - NULLIF ( - - 20, + COUNT ( * ) + + + 52 ) AS INTEGER ) WHEN ( - 0 ) THEN 16 * 8 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT - + NULLIF ( - + 69, - + COUNT( * ) ) + - + 18
----
51

skipif mysql # not compatible
query I rowsort label-8476
SELECT - + NULLIF ( - + 69, - + COUNT ( * ) ) + - + 18
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL ( ( - COALESCE ( + - COUNT( * ), + NULLIF ( - 65, 81 ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL ( ( - COALESCE ( + - COUNT ( * ), + NULLIF ( - 65, 81 ) ) ) )
----
1

query I rowsort
SELECT ALL + 13 + 26 * + + 99
----
2587

query I rowsort
SELECT DISTINCT COALESCE ( 97, + 52, + 38, + + 92 * + 15 )
----
97

query II rowsort
SELECT ALL + 4 + 79 AS col1, - 34
----
83
-34

query I rowsort
SELECT DISTINCT 65 * + - ( + 64 ) AS col2
----
-4160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8482
SELECT DISTINCT 77 + + NULLIF ( - - 25, + 87 * - - 21 + + 76 ) DIV MIN( DISTINCT 51 ) AS col2, 26 + + 51
----
77
77

skipif mysql # not compatible
query II rowsort label-8482
SELECT DISTINCT 77 + + NULLIF ( - - 25, + 87 * - - 21 + + 76 ) / MIN ( DISTINCT 51 ) AS col2, 26 + + 51
----
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8483
SELECT - COALESCE ( CASE + CAST( NULL AS SIGNED ) WHEN - + 67 - - - COALESCE ( - 18, - - COUNT( - 27 ) / 27 ) THEN - + 12 END, + - ( + + 46 ) )
----
46

skipif mysql # not compatible
query I rowsort label-8483
SELECT - COALESCE ( CASE + CAST ( NULL AS INTEGER ) WHEN - + 67 - - - COALESCE ( - 18, - - COUNT ( - 27 ) / 27 ) THEN - + 12 END, + - ( + + 46 ) )
----
46

query I rowsort
SELECT DISTINCT 12 + - + 50 * + 73 - + 96
----
-3734

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - MAX( DISTINCT + - 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8485
SELECT - MAX ( DISTINCT + - 88 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8486
SELECT + 53 * COUNT( * ) AS col1, 20 * + + 88 + + 63 + + CASE + 79 WHEN - CAST( - - 71 AS SIGNED ) THEN AVG ( ALL - ( + + ( + 57 ) ) ) - MIN( + - CAST( - 3 AS SIGNED ) ) * MIN( DISTINCT + ( + 49 ) ) END * - - 50 * - + SUM( + CAST( NULL AS SIGNED ) ) / 68 * - 93
----
53
NULL

skipif mysql # not compatible
query II rowsort label-8486
SELECT + 53 * COUNT ( * ) AS col1, 20 * + + 88 + + 63 + + CASE + 79 WHEN - CAST ( - - 71 AS INTEGER ) THEN AVG ( ALL - ( + + ( + 57 ) ) ) - MIN ( + - CAST ( - 3 AS INTEGER ) ) * MIN ( DISTINCT + ( + 49 ) ) END * - - 50 * - + SUM ( + CAST ( NULL AS INTEGER ) ) / 68 * - 93
----
53
NULL

query I rowsort
SELECT + 70 + + 37 + + 18 + 94 + + + 57 * + - 51
----
-2688

query I rowsort
SELECT DISTINCT 58 - + 45
----
13

query I rowsort
SELECT DISTINCT - 97 * + - 99 col2
----
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT + MIN( + + 76 ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT + MIN ( + + 76 ) / + 85
----
0

query I rowsort
SELECT + 87 * - - 51 * 15 col2
----
66555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8492
SELECT CAST( NULL AS SIGNED ) / - 18 * - - MIN( + + 25 ) + + - 77 - + 39 + - 81 + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT CAST ( NULL AS INTEGER ) / - 18 * - - MIN ( + + 25 ) + + - 77 - + 39 + - 81 + 48
----
NULL

query I rowsort
SELECT ALL 98 * + 76 AS col2
----
7448

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT + + 34 DIV - - 49 * - 30 + + + 87 * - 3 * + 6 AS col0
----
-1566

skipif mysql # not compatible
query I rowsort label-8494
SELECT + + 34 / - - 49 * - 30 + + + 87 * - 3 * + 6 AS col0
----
-1566

onlyif mysql # DIV for integer division: 
query II rowsort label-8495
SELECT - + ( - + 62 ) DIV + - 25 col1, 40
----
-2
40

skipif mysql # not compatible
query II rowsort label-8495
SELECT - + ( - + 62 ) / + - 25 col1, 40
----
-2
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8496
SELECT + 72 DIV - 47 + + COUNT( * ) AS col1, + 49 - 88 AS col2
----
0
-39

skipif mysql # not compatible
query II rowsort label-8496
SELECT + 72 / - 47 + + COUNT ( * ) AS col1, + 49 - 88 AS col2
----
0
-39

query I rowsort
SELECT ALL - 53 * 60 + + 33
----
-3147

query I rowsort
SELECT DISTINCT + 20 * - - 52 * + 23
----
23920

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT - COUNT( * ) + - + 60 * + 93 AS col0
----
-5581

skipif mysql # not compatible
query I rowsort label-8499
SELECT - COUNT ( * ) + - + 60 * + 93 AS col0
----
-5581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8500
SELECT - 49 * - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8500
SELECT - 49 * - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8501
SELECT DISTINCT + + NULLIF ( COALESCE ( + + 39, - - CASE + 47 WHEN - 3 * - 90 THEN + 37 + - NULLIF ( + 77, + 12 * + COUNT( * ) + - 83 DIV 61 + - 19 * 13 * - - 96 + + CAST( NULLIF ( + 55, + COALESCE ( + 88, 26 + - 0 + 20 * + + 67, - 55 ) ) AS SIGNED ) ) WHEN - - 87 THEN NULL END + 10, - 91 DIV 59 * - - 14 ), - 51 ) col0
----
39

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT + + NULLIF ( COALESCE ( + + 39, - - CASE + 47 WHEN - 3 * - 90 THEN + 37 + - NULLIF ( + 77, + 12 * + COUNT ( * ) + - 83 / 61 + - 19 * 13 * - - 96 + + CAST ( NULLIF ( + 55, + COALESCE ( + 88, 26 + - 0 + 20 * + + 67, - 55 ) ) AS INTEGER ) ) WHEN - - 87 THEN NULL END + 10, - 91 / 59 * - - 14 ), - 51 ) col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT + NULLIF ( + 34, - CAST( NULL AS SIGNED ) ) col2
----
34

skipif mysql # not compatible
query I rowsort label-8502
SELECT + NULLIF ( + 34, - CAST ( NULL AS INTEGER ) ) col2
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-8503
SELECT DISTINCT - - 25 DIV - 45 col2, - 2 AS col1
----
0
-2

skipif mysql # not compatible
query II rowsort label-8503
SELECT DISTINCT - - 25 / - 45 col2, - 2 AS col1
----
0
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT + + 32 * + CASE + - 40 WHEN AVG ( DISTINCT + + 74 ) THEN ( - ( 3 ) ) WHEN + - 12 + + CASE 47 WHEN - + 55 + - 93 THEN COUNT( * ) * + - 32 WHEN - COUNT( * ) / - ( + 5 ) * - 63 THEN + 78 + + 89 - + - 47 END THEN NULL WHEN 68 THEN + 9 WHEN - 51 THEN - 44 + + - 21 * + 83 * + ( 15 ) / - 11 + + + 75 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8504
SELECT + + 32 * + CASE + - 40 WHEN AVG ( DISTINCT + + 74 ) THEN ( - ( 3 ) ) WHEN + - 12 + + CASE 47 WHEN - + 55 + - 93 THEN COUNT ( * ) * + - 32 WHEN - COUNT ( * ) / - ( + 5 ) * - 63 THEN + 78 + + 89 - + - 47 END THEN NULL WHEN 68 THEN + 9 WHEN - 51 THEN - 44 + + - 21 * + 83 * + ( 15 ) / - 11 + + + 75 + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - - 9 * - 76 * - 38 + 86 - 96
----
25982

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8506
SELECT ALL 96 * + + 90 + - COUNT( * ) + + 48 + 82 - - 68 DIV 11
----
8775

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL 96 * + + 90 + - COUNT ( * ) + + 48 + 82 - - 68 / 11
----
8775

query I rowsort
SELECT DISTINCT + 77 * + 61 col2
----
4697

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8508
SELECT - 52 * - - COALESCE ( 36, 89 DIV + 80 * + 1 + 84 ) AS col1, 95 * + COUNT( * )
----
-1872
95

skipif mysql # not compatible
query II rowsort label-8508
SELECT - 52 * - - COALESCE ( 36, 89 / + 80 * + 1 + 84 ) AS col1, 95 * + COUNT ( * )
----
-1872
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL - + 77 * + - 46 + + - COUNT( * ) AS col1
----
3541

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL - + 77 * + - 46 + + - COUNT ( * ) AS col1
----
3541

onlyif mysql # aggregate syntax: 
query II rowsort label-8510
SELECT ALL - 44 * + - COUNT( * ) + - 8 AS col0, 62
----
36
62

skipif mysql # not compatible
query II rowsort label-8510
SELECT ALL - 44 * + - COUNT ( * ) + - 8 AS col0, 62
----
36
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8511
SELECT COUNT( * ) AS col1, 66 AS col2
----
1
66

skipif mysql # not compatible
query II rowsort label-8511
SELECT COUNT ( * ) AS col1, 66 AS col2
----
1
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL ( CAST( 76 AS SIGNED ) ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL ( CAST ( 76 AS INTEGER ) ) AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT - 6 + + 55 + + 61 * + COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-8514
SELECT - 6 + + 55 + + 61 * + COUNT ( * )
----
110

query I rowsort
SELECT - 65 * 70
----
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL - ( - COUNT( * ) ) + + 89 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL - ( - COUNT ( * ) ) + + 89 AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8517
SELECT DISTINCT + COUNT( * ) DIV + ( - 17 ) * - 7 + 97
----
97

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT + COUNT ( * ) / + ( - 17 ) * - 7 + 97
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8518
SELECT - 53 - - + 9 DIV - + 77 col2
----
-53

skipif mysql # not compatible
query I rowsort label-8518
SELECT - 53 - - + 9 / - + 77 col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-8519
SELECT + MIN( - 91 ) * + - 45, + 58 * + - COUNT( * ) * 72 AS col0
----
4095
-4176

skipif mysql # not compatible
query II rowsort label-8519
SELECT + MIN ( - 91 ) * + - 45, + 58 * + - COUNT ( * ) * 72 AS col0
----
4095
-4176

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT ALL + 10 DIV 2 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL + 10 / 2 AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8521
SELECT - COUNT( * ) AS col0, - COUNT( * ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8521
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) AS col2
----
-1
-1

query I rowsort
SELECT DISTINCT 58 - + - 91
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT ALL CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + 99 * - 81
----
-8019

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT + 17 + - 47 * - 92 + + ( - 0 ) - - 29 - CASE + 34 WHEN COUNT( * ) * + 66 THEN NULL WHEN + 84 THEN ( + 94 ) ELSE 59 END AS col1
----
4311

skipif mysql # not compatible
query I rowsort label-8525
SELECT + 17 + - 47 * - 92 + + ( - 0 ) - - 29 - CASE + 34 WHEN COUNT ( * ) * + 66 THEN NULL WHEN + 84 THEN ( + 94 ) ELSE 59 END AS col1
----
4311

query I rowsort
SELECT 91 - - - 56 col2
----
35

query I rowsort
SELECT ALL 57 - - 57
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT 62 * + - 58 * - MIN( ( + ( - 4 ) ) ) AS col2
----
-14384

skipif mysql # not compatible
query I rowsort label-8528
SELECT 62 * + - 58 * - MIN ( ( + ( - 4 ) ) ) AS col2
----
-14384

query I rowsort
SELECT 97 * - 89 col1
----
-8633

query II rowsort
SELECT 48, 26 AS col0
----
48
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8531
SELECT + 53, COUNT( * ) AS col2
----
53
1

skipif mysql # not compatible
query II rowsort label-8531
SELECT + 53, COUNT ( * ) AS col2
----
53
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8532
SELECT ALL - - CASE + CAST( - COUNT( * ) AS SIGNED ) WHEN + + 9 THEN NULL WHEN - 22 / 80 + ( + + 9 ) THEN - 31 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL - - CASE + CAST ( - COUNT ( * ) AS INTEGER ) WHEN + + 9 THEN NULL WHEN - 22 / 80 + ( + + 9 ) THEN - 31 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL - 98 col0, 17 - 84
----
-98
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT ALL - MAX( ALL - + 0 ) DIV + - 65 * + 24 * - 88 * - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - MAX ( ALL - + 0 ) / + - 65 * + 24 * - 88 * - 38 AS col2
----
0

query II rowsort
SELECT ALL - 87 AS col1, 76 * + 1 AS col0
----
-87
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT ALL - COUNT( ALL - 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - COUNT ( ALL - 43 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8537
SELECT DISTINCT - - CAST( + 0 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT - - CAST ( + 0 AS INTEGER ) col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8538
SELECT ALL + COALESCE ( - COALESCE ( + 22, 98 ), - COUNT( * ) DIV 13 * + ( 3 ) + - COUNT( * ) + + - COUNT( * ) * 43 * - + 18 ) + + - COUNT( * ) * - 64 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL + COALESCE ( - COALESCE ( + 22, 98 ), - COUNT ( * ) / 13 * + ( 3 ) + - COUNT ( * ) + + - COUNT ( * ) * 43 * - + 18 ) + + - COUNT ( * ) * - 64 AS col2
----
42

query I rowsort
SELECT + 86 * + 83 + 47
----
7185

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT COUNT( DISTINCT - - 36 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8540
SELECT COUNT ( DISTINCT - - 36 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8541
SELECT COUNT( * ) * 71 - 71 AS col1, - MAX( ALL 54 )
----
0
-54

skipif mysql # not compatible
query II rowsort label-8541
SELECT COUNT ( * ) * 71 - 71 AS col1, - MAX ( ALL 54 )
----
0
-54

query I rowsort
SELECT DISTINCT 35 * - ( + - 47 )
----
1645

query II rowsort
SELECT 97 AS col2, + 5 AS col2
----
97
5

query I rowsort
SELECT 33 + + + 3
----
36

query II rowsort
SELECT DISTINCT + 48 * - 59 + 55 AS col0, + COALESCE ( - 59, + ( 12 ) ) col1
----
-2777
-59

query I rowsort
SELECT ALL 19 + 20 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT COUNT( * ) + - - 36 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT COUNT ( * ) + - - 36 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT 47 - - NULLIF ( - 93, - 95 * + COUNT( * ) * + 42 ) * + 55 AS col1
----
-5068

skipif mysql # not compatible
query I rowsort label-8548
SELECT 47 - - NULLIF ( - 93, - 95 * + COUNT ( * ) * + 42 ) * + 55 AS col1
----
-5068

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8549
SELECT ALL CAST( + 57 AS DECIMAL ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL CAST ( + 57 AS REAL ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT 56 + MAX( + 21 ) + - 70 * + - 61 * - - CAST( NULL AS SIGNED ) * - 5 + + - 28 / + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-8550
SELECT 56 + MAX ( + 21 ) + - 70 * + - 61 * - - CAST ( NULL AS INTEGER ) * - 5 + + - 28 / + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT 46 + - MIN( ALL + ( - 92 ) )
----
138

skipif mysql # not compatible
query I rowsort label-8551
SELECT 46 + - MIN ( ALL + ( - 92 ) )
----
138

query II rowsort
SELECT ALL - 51 - - - 48, ( + + ( + + 63 ) ) col1
----
-99
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL + 24 * COALESCE ( - 42, 72 - - - 58 + + MIN( ALL 63 ), 90 ) AS col2
----
-1008

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL + 24 * COALESCE ( - 42, 72 - - - 58 + + MIN ( ALL 63 ), 90 ) AS col2
----
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-8554
SELECT 81 + - - 92 DIV 7 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8554
SELECT 81 + - - 92 / 7 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8555
SELECT 62 DIV + - 2 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8555
SELECT 62 / + - 2 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT SUM( + 55 ) * - + 36 - + COUNT( * ) col2
----
-1981

skipif mysql # not compatible
query I rowsort label-8556
SELECT SUM ( + 55 ) * - + 36 - + COUNT ( * ) col2
----
-1981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8557
SELECT 68 + + - CAST( NULL AS SIGNED ) + - + 69 - + + CAST( 87 AS SIGNED ) * 54 * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT 68 + + - CAST ( NULL AS INTEGER ) + - + 69 - + + CAST ( 87 AS INTEGER ) * 54 * - 58
----
NULL

query II rowsort
SELECT 7 * 62, 42 + + 13 * - 65 * 36 AS col1
----
434
-30378

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT ALL + 88 DIV 77 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL + 88 / 77 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT COUNT( + ( 21 ) ) + + 73
----
74

skipif mysql # not compatible
query I rowsort label-8560
SELECT COUNT ( + ( 21 ) ) + + 73
----
74

query I rowsort
SELECT ALL + 31 * 98 * + 94
----
285572

query II rowsort
SELECT + 4 * 53, - 19 + - 33 AS col2
----
212
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT ALL + 71 * - 25 + + COUNT( * )
----
-1774

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL + 71 * - 25 + + COUNT ( * )
----
-1774

query I rowsort
SELECT - 71 * - 47 AS col1
----
3337

query I rowsort
SELECT ALL 23 + + 53 - 19
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT 99 - - COUNT( * ) * + 72 AS col2
----
171

skipif mysql # not compatible
query I rowsort label-8566
SELECT 99 - - COUNT ( * ) * + 72 AS col2
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT ALL + AVG ( - + 36 ) + + - NULLIF ( + 31, 18 + - 74 ) + - 47 + + - CAST( NULL AS SIGNED ) / - - AVG ( DISTINCT - 53 ) * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL + AVG ( - + 36 ) + + - NULLIF ( + 31, 18 + - 74 ) + - 47 + + - CAST ( NULL AS INTEGER ) / - - AVG ( DISTINCT - 53 ) * + 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8568
SELECT ALL - CAST( NULL AS SIGNED ) + 29 - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL - CAST ( NULL AS INTEGER ) + 29 - + COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8569
SELECT ALL MIN( DISTINCT 39 ) DIV 36 * - 96 + + - 79
----
-175

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL MIN ( DISTINCT 39 ) / 36 * - 96 + + - 79
----
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8570
SELECT + + MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8571
SELECT DISTINCT COALESCE ( + + 31, - 9 + + 13 * + - 15 ) + + COALESCE ( + + 81, + 30 ) * + + CASE + COALESCE ( - 93, - 95 * + NULLIF ( - - 38, - + 86 * - CAST( COALESCE ( + + 34, + 27, + 31 ) AS DECIMAL ) - + NULLIF ( + 42, 10 ) ) ) WHEN + 52 + - + 39 * + + 37 + - - 38 - - 54 THEN NULL WHEN + 97 * - 47 + - 0 THEN + 93 ELSE - 26 END * - COUNT( * ) + - - NULLIF ( + - 40, + CASE + 8 WHEN ( + + 20 ) * + + NULLIF ( + NULLIF ( + 54, + + 91 ), - CASE COUNT( * ) WHEN 29 THEN - - 70 + + 26 WHEN 53 THEN MIN( DISTINCT 96 ) - + COUNT( * ) END * - 95 ) + - CAST( NULL AS SIGNED ) * 99 THEN NULL WHEN 12 THEN + 86 ELSE 19 END )
----
2097

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT COALESCE ( + + 31, - 9 + + 13 * + - 15 ) + + COALESCE ( + + 81, + 30 ) * + + CASE + COALESCE ( - 93, - 95 * + NULLIF ( - - 38, - + 86 * - CAST ( COALESCE ( + + 34, + 27, + 31 ) AS REAL ) - + NULLIF ( + 42, 10 ) ) ) WHEN + 52 + - + 39 * + + 37 + - - 38 - - 54 THEN NULL WHEN + 97 * - 47 + - 0 THEN + 93 ELSE - 26 END * - COUNT ( * ) + - - NULLIF ( + - 40, + CASE + 8 WHEN ( + + 20 ) * + + NULLIF ( + NULLIF ( + 54, + + 91 ), - CASE COUNT ( * ) WHEN 29 THEN - - 70 + + 26 WHEN 53 THEN MIN ( DISTINCT 96 ) - + COUNT ( * ) END * - 95 ) + - CAST ( NULL AS INTEGER ) * 99 THEN NULL WHEN 12 THEN + 86 ELSE 19 END )
----
2097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT CASE - NULLIF ( - + 78, - 26 ) WHEN AVG ( - - 81 ) THEN - 7 WHEN 82 THEN NULL WHEN 86 / + + CAST( NULL AS SIGNED ) * + + ( + 56 ) THEN - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT CASE - NULLIF ( - + 78, - 26 ) WHEN AVG ( - - 81 ) THEN - 7 WHEN 82 THEN NULL WHEN 86 / + + CAST ( NULL AS INTEGER ) * + + ( + 56 ) THEN - 40 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT ALL 26 + - - 29 + + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL 26 + - - 29 + + + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8574
SELECT ALL + 94 * - 73 AS col0, MAX( 33 ) AS col2
----
-6862
33

skipif mysql # not compatible
query II rowsort label-8574
SELECT ALL + 94 * - 73 AS col0, MAX ( 33 ) AS col2
----
-6862
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT - 70 + - 20 * 44 DIV 54
----
-86

skipif mysql # not compatible
query I rowsort label-8575
SELECT - 70 + - 20 * 44 / 54
----
-86

query I rowsort
SELECT ALL 48 * - + 41 AS col1
----
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT + MIN( + 53 ) col0
----
53

skipif mysql # not compatible
query I rowsort label-8577
SELECT + MIN ( + 53 ) col0
----
53

query I rowsort
SELECT 53 * 16 AS col1
----
848

query I rowsort
SELECT DISTINCT 53 * 52 AS col1
----
2756

query I rowsort
SELECT - ( + - 10 ) + - - 51 AS col0
----
61

query I rowsort
SELECT ALL + 93 * - 3
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT + ( - 91 ) * - NULLIF ( 87, + SUM( DISTINCT - 25 ) ) + - + 4 - - 44 * + NULLIF ( - 15, + 90 + 83 ) AS col2
----
7253

skipif mysql # not compatible
query I rowsort label-8582
SELECT + ( - 91 ) * - NULLIF ( 87, + SUM ( DISTINCT - 25 ) ) + - + 4 - - 44 * + NULLIF ( - 15, + 90 + 83 ) AS col2
----
7253

query I rowsort
SELECT ALL 39 + - 76 * 93 AS col1
----
-7029

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL 98 + 40 + COUNT( * ) * - + 93 * - CASE + 77 WHEN 48 * + 86 THEN 24 END + + 12 * 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL 98 + 40 + COUNT ( * ) * - + 93 * - CASE + 77 WHEN 48 * + 86 THEN 24 END + + 12 * 9 AS col0
----
NULL

query I rowsort
SELECT ALL + 48 + - 64 AS col0
----
-16

query I rowsort
SELECT DISTINCT + 75 * 67
----
5025

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8587
SELECT - COALESCE ( CASE + 40 WHEN - 36 THEN 15 END, 18 DIV CAST( + 83 AS SIGNED ), 5 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8587
SELECT - COALESCE ( CASE + 40 WHEN - 36 THEN 15 END, 18 / CAST ( + 83 AS INTEGER ), 5 ) AS col0
----
0

query I rowsort
SELECT - 62 - + 2 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL MIN( DISTINCT - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL MIN ( DISTINCT - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL - COALESCE ( CASE + 54 WHEN + 55 * + 17 THEN NULL ELSE SUM( 16 ) END, + 16, + 76 ) + - 98
----
-114

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL - COALESCE ( CASE + 54 WHEN + 55 * + 17 THEN NULL ELSE SUM ( 16 ) END, + 16, + 76 ) + - 98
----
-114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8591
SELECT ALL + MIN( DISTINCT + CAST( + 29 AS SIGNED ) ) + 65 col2
----
94

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL + MIN ( DISTINCT + CAST ( + 29 AS INTEGER ) ) + 65 col2
----
94

query I rowsort
SELECT DISTINCT - 31 + - 92
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT - 26 + - 99 * COUNT( * )
----
-125

skipif mysql # not compatible
query I rowsort label-8593
SELECT - 26 + - 99 * COUNT ( * )
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT DISTINCT MIN( ALL 13 )
----
13

skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT MIN ( ALL 13 )
----
13

query I rowsort
SELECT DISTINCT + 44 * - 49 + 71 * 90 AS col1
----
4234

query I rowsort
SELECT DISTINCT + 0 * + 63 + - 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT DISTINCT ( - COUNT( * ) ) * - 55 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8597
SELECT DISTINCT ( - COUNT ( * ) ) * - 55 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL 14 * COUNT( 65 * ( + 8 ) ) + - COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL 14 * COUNT ( 65 * ( + 8 ) ) + - COUNT ( * ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8599
SELECT ALL + ( - COALESCE ( MAX( ALL CAST( NULL AS SIGNED ) ), + 39 * COALESCE ( 95, 41 ) ) ) * + ( - CASE 79 WHEN - 61 + 59 THEN - 74 * - 4 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + ( - COALESCE ( MAX ( ALL CAST ( NULL AS INTEGER ) ), + 39 * COALESCE ( 95, 41 ) ) ) * + ( - CASE 79 WHEN - 61 + 59 THEN - 74 * - 4 END ) AS col0
----
NULL

query I rowsort
SELECT - 20 * + ( + 12 ) + + 67 AS col0
----
-173

query I rowsort
SELECT - 1 * 27 col1
----
-27

query I rowsort
SELECT DISTINCT + 41 * + 65 AS col0
----
2665

query I rowsort
SELECT 50 * + ( - 19 ) - 34 AS col2
----
-984

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT - COUNT( ALL 1 ) + 17 col1
----
16

skipif mysql # not compatible
query I rowsort label-8604
SELECT - COUNT ( ALL 1 ) + 17 col1
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8605
SELECT + ( - CAST( NULL AS DECIMAL ) ) * 20 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT + ( - CAST ( NULL AS REAL ) ) * 20 col1
----
NULL

query I rowsort
SELECT DISTINCT + ( 74 ) * + 92 AS col1
----
6808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT ALL + CAST( 69 AS SIGNED ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL + CAST ( 69 AS INTEGER ) AS col1
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8608
SELECT ALL + NULLIF ( - ( 64 ), CAST( 46 AS DECIMAL ) )
----
-64

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + NULLIF ( - ( 64 ), CAST ( 46 AS REAL ) )
----
-64

query I rowsort
SELECT COALESCE ( + 33, 23 * 81 )
----
33

query I rowsort
SELECT + 76 + - 30
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8611
SELECT - 88 DIV + 9
----
-9

skipif mysql # not compatible
query I rowsort label-8611
SELECT - 88 / + 9
----
-9

query I rowsort
SELECT + 94 * ( - 67 ) AS col1
----
-6298

query I rowsort
SELECT DISTINCT 99 * + 49 AS col1
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT + SUM( DISTINCT 59 )
----
59

skipif mysql # not compatible
query I rowsort label-8614
SELECT + SUM ( DISTINCT 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT + ( - 57 ) * NULLIF ( - COUNT( * ), - 28 * - 51 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8615
SELECT + ( - 57 ) * NULLIF ( - COUNT ( * ), - 28 * - 51 ) AS col2
----
57

query I rowsort
SELECT 97 * 97 + 33 * 63
----
11488

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ALL 56 * + COUNT( * ) + CASE + 43 WHEN - COUNT( * ) THEN NULL WHEN ( MAX( DISTINCT ( + 5 ) ) ) THEN - 5 * 5 WHEN 1 THEN NULL END * + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL 56 * + COUNT ( * ) + CASE + 43 WHEN - COUNT ( * ) THEN NULL WHEN ( MAX ( DISTINCT ( + 5 ) ) ) THEN - 5 * 5 WHEN 1 THEN NULL END * + 96 AS col1
----
NULL

query I rowsort
SELECT + 40 + - 38
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8619
SELECT DISTINCT CAST( - ( COUNT( * ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT CAST ( - ( COUNT ( * ) ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT + ( + 38 ) * + 9
----
342

query I rowsort
SELECT ALL 40 + - 17 AS col0
----
23

query I rowsort
SELECT DISTINCT 57 * 65
----
3705

query I rowsort
SELECT ALL - 16 + 21
----
5

query I rowsort
SELECT + 86 + + 50
----
136

query I rowsort
SELECT + ( 83 ) + - 76
----
7

query I rowsort
SELECT + - 93 * 79 AS col0
----
-7347

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT + 0 + MAX( + ( + 17 ) - 71 )
----
-54

skipif mysql # not compatible
query I rowsort label-8627
SELECT + 0 + MAX ( + ( + 17 ) - 71 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT + NULLIF ( 57, + SUM( DISTINCT - 63 ) * ( 64 ) )
----
57

skipif mysql # not compatible
query I rowsort label-8628
SELECT + NULLIF ( 57, + SUM ( DISTINCT - 63 ) * ( 64 ) )
----
57

query I rowsort
SELECT ALL + 13 + + 79 AS col1
----
92

query I rowsort
SELECT ALL 83 + + ( - 37 ) * + 51
----
-1804

query I rowsort
SELECT + - ( + 46 ) + 75 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT - + 16 * COUNT( 1 - - 70 )
----
-16

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT - + 16 * COUNT ( 1 - - 70 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT + MIN( + 40 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT + MIN ( + 40 ) AS col1
----
40

query I rowsort
SELECT ALL - 88 * + 30 AS col2
----
-2640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8635
SELECT + 89 + CASE 66 + CAST( NULL AS SIGNED ) WHEN 2 THEN - 22 WHEN MIN( DISTINCT 14 ) THEN 25 * 86 WHEN 97 / - 16 THEN NULL ELSE + 18 * COUNT( * ) + 23 * + 44 END * - ( - 67 ) AS col2
----
69099

skipif mysql # not compatible
query I rowsort label-8635
SELECT + 89 + CASE 66 + CAST ( NULL AS INTEGER ) WHEN 2 THEN - 22 WHEN MIN ( DISTINCT 14 ) THEN 25 * 86 WHEN 97 / - 16 THEN NULL ELSE + 18 * COUNT ( * ) + 23 * + 44 END * - ( - 67 ) AS col2
----
69099

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL 58 * - COUNT( ALL 42 / 14 )
----
-58

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL 58 * - COUNT ( ALL 42 / 14 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT DISTINCT + 19 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT + 19 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT DISTINCT + MAX( ALL - 20 ) * - 7 col1
----
140

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT + MAX ( ALL - 20 ) * - 7 col1
----
140

query I rowsort
SELECT - - 91 + - 21
----
70

query I rowsort
SELECT DISTINCT - 86 - 46 AS col2
----
-132

query I rowsort
SELECT ALL 85 * 81
----
6885

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT - 58 DIV 21 + 86 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-8642
SELECT - 58 / 21 + 86 / 36
----
0

query I rowsort
SELECT - - 42 + - 70
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT + - COUNT( * ) * + MIN( DISTINCT - 78 + 98 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8644
SELECT + - COUNT ( * ) * + MIN ( DISTINCT - 78 + 98 ) AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT + + CAST( + 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-8645
SELECT + + CAST ( + 52 AS INTEGER )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - MIN( ALL + 8 ) + - 91
----
-99

skipif mysql # not compatible
query I rowsort label-8646
SELECT - MIN ( ALL + 8 ) + - 91
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8647
SELECT DISTINCT - 45 DIV 17
----
-2

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT - 45 / 17
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL + - SUM( ALL 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + - SUM ( ALL 15 )
----
-15

query I rowsort
SELECT ALL - 64 * + 92
----
-5888

query I rowsort
SELECT - 7 * ( + 64 ) AS col0
----
-448

onlyif mysql # DIV for integer division: 
query I rowsort label-8651
SELECT ALL - 92 DIV - 52
----
1

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL - 92 / - 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT + CASE + COUNT( * ) WHEN - 59 THEN + 57 WHEN 19 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - 59 THEN + 57 WHEN 19 THEN + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 10 * CASE + 61 WHEN + 58 THEN 7 ELSE NULL END
----
NULL

query I rowsort
SELECT 55 * + 24
----
1320

query I rowsort
SELECT 91 * - - 68 * 42
----
259896

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL - 92 * + + ( 62 ) * - COALESCE ( 59 + + 45, 15, + SUM( ALL + 67 ) * 25 )
----
593216

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - 92 * + + ( 62 ) * - COALESCE ( 59 + + 45, 15, + SUM ( ALL + 67 ) * 25 )
----
593216

query I rowsort
SELECT DISTINCT - NULLIF ( - 45, 97 ) AS col0
----
45

query I rowsort
SELECT ALL - ( + + 82 ) AS col2
----
-82

query I rowsort
SELECT ALL 11 + - + 83 * 18
----
-1483

query I rowsort
SELECT 81 * 49 AS col2
----
3969

query I rowsort
SELECT ALL - 93 + - 54
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT DISTINCT 46 + - CAST( NULL AS SIGNED ) + - 86 * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT 46 + - CAST ( NULL AS INTEGER ) + - 86 * 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT - 75 + + - 64 * ( - ( CASE 21 WHEN 3 + + COALESCE ( 36, + 12 + + 92 * + 48, MAX( ALL 86 ) - 87 * 53, + 81 * 42 ) THEN 85 * 16 ELSE + 64 END ) ) AS col1
----
4021

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT - 75 + + - 64 * ( - ( CASE 21 WHEN 3 + + COALESCE ( 36, + 12 + + 92 * + 48, MAX ( ALL 86 ) - 87 * 53, + 81 * 42 ) THEN 85 * 16 ELSE + 64 END ) ) AS col1
----
4021

query I rowsort
SELECT ALL 81 + ( + 36 ) AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT 6 * + + MAX( ALL - 51 ) * + COUNT( * ) AS col0
----
-306

skipif mysql # not compatible
query I rowsort label-8665
SELECT 6 * + + MAX ( ALL - 51 ) * + COUNT ( * ) AS col0
----
-306

query I rowsort
SELECT 80 + - - 22 * + 4
----
168

query I rowsort
SELECT ALL - ( + 47 ) + + 51
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8668
SELECT - COALESCE ( + - 69, - 44, - ( 42 ) ) DIV + ( + 64 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8668
SELECT - COALESCE ( + - 69, - 44, - ( 42 ) ) / + ( + 64 ) AS col0
----
1

query I rowsort
SELECT 77 - 5
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT - COUNT( + ( 29 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT - COUNT ( + ( 29 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - 64 + ( COUNT( * ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8671
SELECT - 64 + ( COUNT ( * ) ) AS col2
----
-63

query I rowsort
SELECT ALL + ( - COALESCE ( + ( + 81 ), 73, 93 * - ( 79 ), - 1 ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT + COUNT( * ) - - ( 53 ) * COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-8673
SELECT + COUNT ( * ) - - ( 53 ) * COUNT ( * )
----
54

query I rowsort
SELECT - + ( - 65 ) AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT ALL + CAST( NULL AS SIGNED ) - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL + CAST ( NULL AS INTEGER ) - 70 AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( - 6, 58 + + 60 ) * 73 AS col1
----
-438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8677
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8678
SELECT DISTINCT - 83 * - ( + ( NULLIF ( CAST( NULL AS DECIMAL ), - 0 * 79 ) ) ) * ( - ( - 89 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - 83 * - ( + ( NULLIF ( CAST ( NULL AS REAL ), - 0 * 79 ) ) ) * ( - ( - 89 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT DISTINCT 77 * + - COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT 77 * + - COUNT ( * ) AS col1
----
-77

query I rowsort
SELECT ALL 89 * + - 15 * - 90 AS col0
----
120150

query I rowsort
SELECT - ( + + 83 ) * 84 + - 61 + - 77
----
-7110

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL - COALESCE ( - COUNT( ALL - 52 ), NULLIF ( 40, 15 * + 96 - 29 ) - 34 * + 8 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL - COALESCE ( - COUNT ( ALL - 52 ), NULLIF ( 40, 15 * + 96 - 29 ) - 34 * + 8 ) AS col1
----
1

query II rowsort
SELECT + 98 col0, 72 AS col2
----
98
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8684
SELECT MIN( + 4 ) DIV - - 52 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8684
SELECT MIN ( + 4 ) / - - 52 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 91 * + + 81 col2
----
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL + 61 + - - 62 + - ( - 49 ) + - ( ( 19 ) + COUNT( * ) * - 68 )
----
221

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + 61 + - - 62 + - ( - 49 ) + - ( ( 19 ) + COUNT ( * ) * - 68 )
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8687
SELECT + 17 / 8 * - 53 + + CAST( NULL AS SIGNED ) * - 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8687
SELECT + 17 / 8 * - 53 + + CAST ( NULL AS INTEGER ) * - 23 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT 0 * - COUNT( * ) * NULLIF ( MAX( DISTINCT + 48 ), 38 / + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-8688
SELECT 0 * - COUNT ( * ) * NULLIF ( MAX ( DISTINCT + 48 ), 38 / + 40 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT 71 + 25 + 56 DIV COUNT( * ) col0
----
152

skipif mysql # not compatible
query I rowsort label-8689
SELECT 71 + 25 + 56 / COUNT ( * ) col0
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT ALL + 34 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL + 34 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 29 * - 77 + - 82 + 45 col0
----
-2270

query I rowsort
SELECT ALL 23 + - 78
----
-55

query II rowsort
SELECT DISTINCT - 19 AS col2, 78 AS col0
----
-19
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT CAST( NULL AS SIGNED ) * - 14 / + 11 + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT CAST ( NULL AS INTEGER ) * - 14 / + 11 + + 3
----
NULL

query I rowsort
SELECT ALL - 61 + 60 + - 31 * + 1 AS col2
----
-32

query I rowsort
SELECT 80 * - + ( 38 )
----
-3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT ALL - COUNT( - - NULLIF ( + CAST( 65 AS SIGNED ), 61 + ( - 16 ) * 75 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL - COUNT ( - - NULLIF ( + CAST ( 65 AS INTEGER ), 61 + ( - 16 ) * 75 ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT COUNT( * ) + + + 89
----
90

skipif mysql # not compatible
query I rowsort label-8698
SELECT COUNT ( * ) + + + 89
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT + COUNT( * ) * + ( 17 ) + + COALESCE ( - 28 + + 56, 84 ) * 73 AS col2
----
2061

skipif mysql # not compatible
query I rowsort label-8699
SELECT + COUNT ( * ) * + ( 17 ) + + COALESCE ( - 28 + + 56, 84 ) * 73 AS col2
----
2061

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL SUM( DISTINCT + + ( - 96 ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL SUM ( DISTINCT + + ( - 96 ) ) AS col2
----
-96

query I rowsort
SELECT - 35 + + 29 + + 51 - 11 * + 1 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT COUNT( ALL - - 3 )
----
1

skipif mysql # not compatible
query I rowsort label-8702
SELECT COUNT ( ALL - - 3 )
----
1

query I rowsort
SELECT DISTINCT - 10 * - 60 * - - 55 AS col1
----
33000

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT CASE 57 WHEN + 14 THEN CASE - ( 77 ) WHEN 79 + 37 THEN + 43 ELSE NULL END WHEN + 37 THEN NULL WHEN SUM( - 48 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT CASE 57 WHEN + 14 THEN CASE - ( 77 ) WHEN 79 + 37 THEN + 43 ELSE NULL END WHEN + 37 THEN NULL WHEN SUM ( - 48 ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT ALL + 72 - - + 3 * + 39 - 68 * ( COUNT( * ) + - CAST( NULL AS SIGNED ) * + 77 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL + 72 - - + 3 * + 39 - 68 * ( COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + 77 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8706
SELECT + ( - 27 ) * COALESCE ( + COUNT( * ), + NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) * + 27 ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-8706
SELECT + ( - 27 ) * COALESCE ( + COUNT ( * ), + NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) * + 27 ) ) AS col1
----
-27

query I rowsort
SELECT + 84 + - 27
----
57

query II rowsort
SELECT 2 AS col2, - 97 * - 71 AS col2
----
2
6887

onlyif mysql # aggregate syntax: 
query II rowsort label-8709
SELECT DISTINCT + 89 AS col1, + COUNT( * ) AS col2
----
89
1

skipif mysql # not compatible
query II rowsort label-8709
SELECT DISTINCT + 89 AS col1, + COUNT ( * ) AS col2
----
89
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8710
SELECT ALL + 11 DIV + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL + 11 / + 38 AS col1
----
0

query I rowsort
SELECT - 37 * 67 + - + 52 * 88 AS col1
----
-7055

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT DISTINCT + ( 59 ) * - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT + ( 59 ) * - COUNT ( * )
----
-59

query II rowsort
SELECT ALL 86 AS col2, - 48 * - + 74
----
86
3552

query I rowsort
SELECT + 60 + + + 20
----
80

query I rowsort
SELECT 71 + + - 16 + 45 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT ALL + - 90 * COALESCE ( + COUNT( 14 ), 31, - 9 )
----
-90

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL + - 90 * COALESCE ( + COUNT ( 14 ), 31, - 9 )
----
-90

query I rowsort
SELECT DISTINCT + - 65 * 31
----
-2015

query I rowsort
SELECT DISTINCT - ( 36 ) * - 18 * 30
----
19440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8719
SELECT DISTINCT + 26 + + 63 * - 76 + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT + 26 + + 63 * - 76 + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - 71 * - 88
----
6248

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT + MAX( + + 16 ) + 19
----
35

skipif mysql # not compatible
query I rowsort label-8721
SELECT + MAX ( + + 16 ) + 19
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT CASE - 0 WHEN - COUNT( * ) THEN - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT CASE - 0 WHEN - COUNT ( * ) THEN - 48 END
----
NULL

query I rowsort
SELECT ALL 38 * 64 + - 92 col0
----
2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8724
SELECT + COUNT( * ) * 38 AS col1, ( - + 45 ) + - ( 84 + COUNT( * ) * + 84 ) DIV 64 AS col2
----
38
-47

skipif mysql # not compatible
query II rowsort label-8724
SELECT + COUNT ( * ) * 38 AS col1, ( - + 45 ) + - ( 84 + COUNT ( * ) * + 84 ) / 64 AS col2
----
38
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT ALL - CAST( NULL AS SIGNED ) * - - ( - 41 ) + NULLIF ( 51, 17 * 73 ) + 15 * + COUNT( + ( - 5 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL - CAST ( NULL AS INTEGER ) * - - ( - 41 ) + NULLIF ( 51, 17 * 73 ) + 15 * + COUNT ( + ( - 5 ) ) AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( ( 58 ), - - 58 + 90 * 75 )
----
58

query I rowsort
SELECT ALL - 78 * + 17 + + 34 + 65
----
-1227

query I rowsort
SELECT + ( 78 ) * - 55 AS col1
----
-4290

onlyif mysql # DIV for integer division: 
query I rowsort label-8729
SELECT - 63 DIV - 16
----
3

skipif mysql # not compatible
query I rowsort label-8729
SELECT - 63 / - 16
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT + ( - - 2 ) * + MAX( - 89 ) + 16 AS col2
----
-162

skipif mysql # not compatible
query I rowsort label-8730
SELECT + ( - - 2 ) * + MAX ( - 89 ) + 16 AS col2
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8731
SELECT + COALESCE ( + + COUNT( * ), 96, - - 96 * - CAST( NULL AS SIGNED ) - 57 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8731
SELECT + COALESCE ( + + COUNT ( * ), 96, - - 96 * - CAST ( NULL AS INTEGER ) - 57 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8732
SELECT MAX( DISTINCT + 84 ), COUNT( * ) * + - 30 AS col1
----
84
-30

skipif mysql # not compatible
query II rowsort label-8732
SELECT MAX ( DISTINCT + 84 ), COUNT ( * ) * + - 30 AS col1
----
84
-30

query I rowsort
SELECT ALL + CASE + 62 WHEN - + NULLIF ( + 6, - 61 + - 66 ) / + 67 THEN 5 * + 82 - 99 / 47 END
----
NULL

query I rowsort
SELECT ALL 61 * + 46 - - + 11 AS col2
----
2817

query I rowsort
SELECT ALL + ( + - 59 )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8736
SELECT - - 95 DIV - - SUM( - - 46 ) + + 46 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8736
SELECT - - 95 / - - SUM ( - - 46 ) + + 46 AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8737
SELECT ALL COALESCE ( + COALESCE ( + - CASE 4 WHEN + 42 THEN NULL ELSE + 15 END, - ( NULLIF ( + 18, 88 ) ) + - 63 ), 35, + 71 - 80 ) DIV + 33
----
0

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL COALESCE ( + COALESCE ( + - CASE 4 WHEN + 42 THEN NULL ELSE + 15 END, - ( NULLIF ( + 18, 88 ) ) + - 63 ), 35, + 71 - 80 ) / + 33
----
0

query I rowsort
SELECT ALL - ( - ( 89 ) ) AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT - 72 * + + ( - 7 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT - 72 * + + ( - 7 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 8 * - 5 AS col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8741
SELECT - 78 + - 65 - NULLIF ( - 55, 42 ) + COUNT( * ) DIV COALESCE ( - 22 + 68, - 4 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8741
SELECT - 78 + - 65 - NULLIF ( - 55, 42 ) + COUNT ( * ) / COALESCE ( - 22 + 68, - 4 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT DISTINCT + + NULLIF ( + - 88, - - 14 * - 78 ) * + COUNT( * ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT + + NULLIF ( + - 88, - - 14 * - 78 ) * + COUNT ( * ) col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL + COUNT( * ) * + - 67 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL + COUNT ( * ) * + - 67 AS col0
----
-67

query I rowsort
SELECT DISTINCT + 38 * - 11 + 87
----
-331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8745
SELECT - - COUNT( * ) + ( - 82 ) DIV - 25 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8745
SELECT - - COUNT ( * ) + ( - 82 ) / - 25 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL + COUNT( * ) * - + 48 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL + COUNT ( * ) * - + 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL NULLIF ( + - 64, MAX( + 65 ) * - 44 - - 93 * + 57 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL NULLIF ( + - 64, MAX ( + 65 ) * - 44 - - 93 * + 57 ) AS col1
----
-64

query I rowsort
SELECT - + ( - 56 ) * + 26
----
1456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8749
SELECT ALL + - MIN( DISTINCT + 11 ) + ( 57 ) DIV 28 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + - MIN ( DISTINCT + 11 ) + ( 57 ) / 28 AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT ALL - CAST( - 8 AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL - CAST ( - 8 AS INTEGER ) AS col2
----
8

query I rowsort
SELECT + ( - COALESCE ( 37, + ( 18 ) ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT + CASE + 14 WHEN + 89 THEN NULL WHEN - ( 79 ) THEN NULL WHEN COUNT( + 11 ) + - 22 THEN 4 * 66 END + ( + 9 + 82 * + 46 ) * - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT + CASE + 14 WHEN + 89 THEN NULL WHEN - ( 79 ) THEN NULL WHEN COUNT ( + 11 ) + - 22 THEN 4 * 66 END + ( + 9 + 82 * + 46 ) * - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT - 97 + + 87 * + - ( + - MIN( DISTINCT + 70 ) ) * + 66
----
401843

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - 97 + + 87 * + - ( + - MIN ( DISTINCT + 70 ) ) * + 66
----
401843

onlyif mysql # DIV for integer division: 
query I rowsort label-8754
SELECT - NULLIF ( + 84, - 59 ) DIV ( - 18 )
----
4

skipif mysql # not compatible
query I rowsort label-8754
SELECT - NULLIF ( + 84, - 59 ) / ( - 18 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL + + 63 + 51 * - NULLIF ( - - 65, 88 ) + ( - COUNT( * ) )
----
-3253

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL + + 63 + 51 * - NULLIF ( - - 65, 88 ) + ( - COUNT ( * ) )
----
-3253

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT DISTINCT + 51 DIV - - 26 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT + 51 / - - 26 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT - 65 - - + 29 * + COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-8757
SELECT - 65 - - + 29 * + COUNT ( * ) AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8758
SELECT - ( + - 11 ) DIV + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-8758
SELECT - ( + - 11 ) / + + COUNT ( * )
----
11

query I rowsort
SELECT ALL + 61 + 31 AS col2
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT ALL - 83 DIV 16 * 43 + + COUNT( * ) * ( - ( 20 ) ) AS col0
----
-235

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL - 83 / 16 * 43 + + COUNT ( * ) * ( - ( 20 ) ) AS col0
----
-235

query I rowsort
SELECT ALL - 34 * - 85
----
2890

onlyif mysql # DIV for integer division: 
query I rowsort label-8762
SELECT 61 DIV - 45 - ( + 1 )
----
-2

skipif mysql # not compatible
query I rowsort label-8762
SELECT 61 / - 45 - ( + 1 )
----
-2

query I rowsort
SELECT ALL + 71 * 56 col0
----
3976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT + 21 * - 89 + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT + 21 * - 89 + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT + 88 * - - COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8765
SELECT + 88 * - - COUNT ( * ) AS col0
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8766
SELECT ALL ( - + 61 ) DIV - 45 + + 71 * - MAX( - 13 ) * 83
----
76610

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL ( - + 61 ) / - 45 + + 71 * - MAX ( - 13 ) * 83
----
76610

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8767
SELECT CASE + 17 WHEN + - 26 * + - 36 * - + MIN( ALL 97 ) * ( 54 * CAST( NULL AS DECIMAL ) ) THEN + 61 * 45 END * - 96 + 17 * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT CASE + 17 WHEN + - 26 * + - 36 * - + MIN ( ALL 97 ) * ( 54 * CAST ( NULL AS REAL ) ) THEN + 61 * 45 END * - 96 + 17 * + 53 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8768
SELECT CAST( - 42 AS SIGNED ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8768
SELECT CAST ( - 42 AS INTEGER ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8769
SELECT + COUNT( * ) AS col1, 88 * 49 - + + ( - - COUNT( DISTINCT 38 ) )
----
1
4311

skipif mysql # not compatible
query II rowsort label-8769
SELECT + COUNT ( * ) AS col1, 88 * 49 - + + ( - - COUNT ( DISTINCT 38 ) )
----
1
4311

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + 57 * + 96 * - MIN( - 27 )
----
147744

skipif mysql # not compatible
query I rowsort label-8770
SELECT + 57 * + 96 * - MIN ( - 27 )
----
147744

query I rowsort
SELECT + 28 + + 48 col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT ALL SUM( 57 ) DIV - MAX( ALL + 98 ) * + 70 - - 86 * 40 AS col0
----
3440

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL SUM ( 57 ) / - MAX ( ALL + 98 ) * + 70 - - 86 * 40 AS col0
----
3440

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT - 82 * - 1 + + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-8773
SELECT - 82 * - 1 + + - COUNT ( * )
----
81

query I rowsort
SELECT ALL - 41 * + 58 - 58
----
-2436

query I rowsort
SELECT 8 * + - 53 + - 96 col2
----
-520

query I rowsort
SELECT DISTINCT - ( - + 93 ) * + 78 * 21 AS col1
----
152334

query I rowsort
SELECT NULLIF ( + + 59, 38 * 62 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT ALL ( COUNT( * ) ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8778
SELECT ALL ( COUNT ( * ) ) * + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT + 66 + + + NULLIF ( COALESCE ( + + 57, - + CAST( 58 AS SIGNED ) ), - 96 * 33 + 62 ) + ( CAST( NULL AS SIGNED ) + CAST( 98 AS SIGNED ) / 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8779
SELECT + 66 + + + NULLIF ( COALESCE ( + + 57, - + CAST ( 58 AS INTEGER ) ), - 96 * 33 + 62 ) + ( CAST ( NULL AS INTEGER ) + CAST ( 98 AS INTEGER ) / 12 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT DISTINCT + MIN( ALL + - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT + MIN ( ALL + - 54 ) AS col2
----
-54

query I rowsort
SELECT + 28 * - 56
----
-1568

query I rowsort
SELECT + - 14 + + - 44 AS col1
----
-58

query I rowsort
SELECT + + 39 * - - ( 35 ) AS col0
----
1365

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT ALL - - 40 DIV 49 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL - - 40 / 49 AS col0
----
0

query I rowsort
SELECT ALL 25 + - 38 col1
----
-13

query I rowsort
SELECT ALL - 59 + ( - 0 ) * - - 72
----
-59

query I rowsort
SELECT DISTINCT - + 90 * + 78 col2
----
-7020

query I rowsort
SELECT ALL + + 27 + 21 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT 3 * ( + 97 ) + + 50 * - + COUNT( * ) + + 25
----
266

skipif mysql # not compatible
query I rowsort label-8789
SELECT 3 * ( + 97 ) + + 50 * - + COUNT ( * ) + + 25
----
266

query II rowsort
SELECT - 82 + - 30 * + 12 col0, - 9
----
-442
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT ALL 52 DIV - 3 * - ( - - 1 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL 52 / - 3 * - ( - - 1 ) AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8792
SELECT - + COUNT( ALL + CAST( + + 87 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8792
SELECT - + COUNT ( ALL + CAST ( + + 87 AS INTEGER ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8793
SELECT 93 + + 20 DIV 29 * 64
----
93

skipif mysql # not compatible
query I rowsort label-8793
SELECT 93 + + 20 / 29 * 64
----
93

query I rowsort
SELECT ALL + - ( + - 76 ) * + - 48 * + 13
----
-47424

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT 11 + COUNT( * ) + 91
----
103

skipif mysql # not compatible
query I rowsort label-8795
SELECT 11 + COUNT ( * ) + 91
----
103

query I rowsort
SELECT - NULLIF ( + + 30, - 50 )
----
-30

query I rowsort
SELECT 71 + + 73 + 44
----
188

query I rowsort
SELECT 75 * - 70 * + 40
----
-210000

query I rowsort
SELECT ALL 6 * + - 0 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT ALL + 29 + - - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL + 29 + - - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 57 * + 81 AS col2
----
4617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8802
SELECT DISTINCT + 48 - + + COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) ) DIV + + 1
----
47

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT + 48 - + + COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) / + + 1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8803
SELECT 0 * + ( + ( + + 5 ) ) DIV - + 43 * - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8803
SELECT 0 * + ( + ( + + 5 ) ) / - + 43 * - - COUNT ( * )
----
0

query II rowsort
SELECT - 3 AS col1, + 26
----
-3
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT 6 + + 80 * MAX( 27 ) + + + 93
----
2259

skipif mysql # not compatible
query I rowsort label-8805
SELECT 6 + + 80 * MAX ( 27 ) + + + 93
----
2259

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT ALL - COUNT( * ) - - 96 + - - 98 + - + SUM( - + 37 ) * - 98 * + COALESCE ( 84, + COUNT( * ) + COUNT( * ) )
----
-304391

skipif mysql # not compatible
query I rowsort label-8806
SELECT ALL - COUNT ( * ) - - 96 + - - 98 + - + SUM ( - + 37 ) * - 98 * + COALESCE ( 84, + COUNT ( * ) + COUNT ( * ) )
----
-304391

query II rowsort
SELECT 8 AS col1, NULLIF ( + - ( - 5 ), + 22 ) + + 25 AS col0
----
8
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8808
SELECT ALL - 12 DIV - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - 12 / - COUNT ( * ) AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT 90 * - CAST( - 94 AS SIGNED ) AS col0
----
8460

skipif mysql # not compatible
query I rowsort label-8809
SELECT 90 * - CAST ( - 94 AS INTEGER ) AS col0
----
8460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8810
SELECT ALL - COUNT( * ) DIV + - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL - COUNT ( * ) / + - 98 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8811
SELECT 96 DIV + + 12 col2
----
8

skipif mysql # not compatible
query I rowsort label-8811
SELECT 96 / + + 12 col2
----
8

query I rowsort
SELECT 32 * - + 79 AS col0
----
-2528

query I rowsort
SELECT DISTINCT - ( - 37 ) * 34 AS col0
----
1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8814
SELECT ALL - CAST( + 95 AS SIGNED ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - CAST ( + 95 AS INTEGER ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT - COALESCE ( - + 90, - COALESCE ( + COUNT( * ), - 48, 68 * 45 ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT - COALESCE ( - + 90, - COALESCE ( + COUNT ( * ), - 48, 68 * 45 ) ) AS col1
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT 22 DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-8816
SELECT 22 / 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT DISTINCT - 94 * - + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT - 94 * - + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT - COUNT( ALL - - 54 ) * - 81
----
81

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT - COUNT ( ALL - - 54 ) * - 81
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT 5 * - - COUNT( * ) * + - 30 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-8819
SELECT 5 * - - COUNT ( * ) * + - 30 AS col0
----
-150

query II rowsort
SELECT + - 21, - 25 AS col1
----
-21
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT + - MIN( - ( - 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-8821
SELECT + - MIN ( - ( - 74 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT 97 * + + SUM( ALL + 54 )
----
5238

skipif mysql # not compatible
query I rowsort label-8822
SELECT 97 * + + SUM ( ALL + 54 )
----
5238

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT - NULLIF ( + MIN( - 97 ), - 12 )
----
97

skipif mysql # not compatible
query I rowsort label-8823
SELECT - NULLIF ( + MIN ( - 97 ), - 12 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT COUNT( * ) - + 52 + + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-8824
SELECT COUNT ( * ) - + 52 + + COUNT ( * )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT 77 * + COALESCE ( + - 35, - - ( + - CAST( NULL AS SIGNED ) ) ) AS col2
----
-2695

skipif mysql # not compatible
query I rowsort label-8825
SELECT 77 * + COALESCE ( + - 35, - - ( + - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-2695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8826
SELECT DISTINCT - 21 + CAST( NULL AS SIGNED ) * - + 84 * - MIN( DISTINCT - 20 ) - - - 94 + + CASE - 42 WHEN 72 * 53 THEN + COUNT( * ) WHEN 59 THEN 3 / - COUNT( + 71 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT - 21 + CAST ( NULL AS INTEGER ) * - + 84 * - MIN ( DISTINCT - 20 ) - - - 94 + + CASE - 42 WHEN 72 * 53 THEN + COUNT ( * ) WHEN 59 THEN 3 / - COUNT ( + 71 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT + MAX( - - 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8827
SELECT + MAX ( - - 18 ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8828
SELECT ALL + 46 + + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL + 46 + + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8829
SELECT COUNT( DISTINCT + CAST( + - ( + - ( + 29 ) ) AS SIGNED ) ) DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-8829
SELECT COUNT ( DISTINCT + CAST ( + - ( + - ( + 29 ) ) AS INTEGER ) ) / + 46
----
0

query I rowsort
SELECT - + 44 * - - ( + 19 ) + + 72 + - - 71 * + 42 AS col2
----
2218

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT - - COUNT( * ) AS col2, + 52 - - 82 AS col1
----
1
134

skipif mysql # not compatible
query II rowsort label-8831
SELECT - - COUNT ( * ) AS col2, + 52 - - 82 AS col1
----
1
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8832
SELECT ALL - CASE 47 WHEN - COUNT( * ) THEN + 60 / - 73 WHEN 40 THEN 49 + - 37 WHEN NULLIF ( CAST( 94 AS SIGNED ), + 36 + 49 ) THEN - CAST( MIN( DISTINCT + 54 ) AS SIGNED ) WHEN 44 / + 74 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - CASE 47 WHEN - COUNT ( * ) THEN + 60 / - 73 WHEN 40 THEN 49 + - 37 WHEN NULLIF ( CAST ( 94 AS INTEGER ), + 36 + 49 ) THEN - CAST ( MIN ( DISTINCT + 54 ) AS INTEGER ) WHEN 44 / + 74 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8833
SELECT - + CAST( NULL AS SIGNED ), - COALESCE ( - + 49, - NULLIF ( - SUM( DISTINCT - 75 ), + 95 * + 29 ) * 87 + + ( ( - MAX( - 43 ) ) ) ) AS col0
----
NULL
49

skipif mysql # not compatible
query II rowsort label-8833
SELECT - + CAST ( NULL AS INTEGER ), - COALESCE ( - + 49, - NULLIF ( - SUM ( DISTINCT - 75 ), + 95 * + 29 ) * 87 + + ( ( - MAX ( - 43 ) ) ) ) AS col0
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT 46 + + 19 * - MAX( 52 ) * + - 73 * - 53 * + 46 + 76 * + 51
----
-175834390

skipif mysql # not compatible
query I rowsort label-8834
SELECT 46 + + 19 * - MAX ( 52 ) * + - 73 * - 53 * + 46 + 76 * + 51
----
-175834390

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + 80 * - 36 * - 98 * - COUNT( * )
----
-282240

skipif mysql # not compatible
query I rowsort label-8835
SELECT + 80 * - 36 * - 98 * - COUNT ( * )
----
-282240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8836
SELECT DISTINCT COUNT( * ), 47 + + 1 + - ( - CAST( NULL AS SIGNED ) ) + - 40 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8836
SELECT DISTINCT COUNT ( * ), 47 + + 1 + - ( - CAST ( NULL AS INTEGER ) ) + - 40 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL + COUNT( * ) + 4
----
5

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + COUNT ( * ) + 4
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT DISTINCT - CAST( + 13 AS SIGNED ) + - ( + COALESCE ( 58, - - COALESCE ( 2, - COALESCE ( 48, 29 * - 83 ) ) ) ) + - 56 * COUNT( * ) AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - CAST ( + 13 AS INTEGER ) + - ( + COALESCE ( 58, - - COALESCE ( 2, - COALESCE ( 48, 29 * - 83 ) ) ) ) + - 56 * COUNT ( * ) AS col0
----
-127

query I rowsort
SELECT DISTINCT - 14 + - NULLIF ( 32, - 86 ) * - + 78 + 18 AS col0
----
2500

onlyif mysql # aggregate syntax: 
query II rowsort label-8840
SELECT DISTINCT 59 - + 92, CASE - + COUNT( DISTINCT + 57 ) WHEN + + 52 THEN NULL ELSE - - 5 END col0
----
-33
5

skipif mysql # not compatible
query II rowsort label-8840
SELECT DISTINCT 59 - + 92, CASE - + COUNT ( DISTINCT + 57 ) WHEN + + 52 THEN NULL ELSE - - 5 END col0
----
-33
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8841
SELECT COALESCE ( ( + COUNT( * ) ), - - 63 / - 26 - + - CAST( - 92 AS SIGNED ) ) * + ( CASE - SUM( DISTINCT 1 ) WHEN SUM( ALL - 64 ) + - 35 THEN 59 WHEN 40 THEN COUNT( * ) END * 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT COALESCE ( ( + COUNT ( * ) ), - - 63 / - 26 - + - CAST ( - 92 AS INTEGER ) ) * + ( CASE - SUM ( DISTINCT 1 ) WHEN SUM ( ALL - 64 ) + - 35 THEN 59 WHEN 40 THEN COUNT ( * ) END * 19 )
----
NULL

query II rowsort
SELECT DISTINCT 94 - 42 AS col2, NULLIF ( 58, 8 * 74 )
----
52
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT DISTINCT - NULLIF ( - 69, ( 76 ) ) * + ( + + COUNT( ( 34 ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT - NULLIF ( - 69, ( 76 ) ) * + ( + + COUNT ( ( 34 ) ) )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT 0 * - CAST( NULL AS SIGNED ) * 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT 0 * - CAST ( NULL AS INTEGER ) * 99 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8845
SELECT 35 * COUNT( DISTINCT + - CAST( + - 5 AS SIGNED ) )
----
35

skipif mysql # not compatible
query I rowsort label-8845
SELECT 35 * COUNT ( DISTINCT + - CAST ( + - 5 AS INTEGER ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL - MIN( + 83 ) * + + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL - MIN ( + 83 ) * + + COUNT ( * )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT ALL COUNT( ALL - 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL COUNT ( ALL - 16 ) AS col1
----
1

query I rowsort
SELECT 25 * - + 1 AS col0
----
-25

query I rowsort
SELECT 41 - - 95 * + 97 + + 76 AS col0
----
9332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8850
SELECT ALL - CASE CASE + 31 WHEN - 62 THEN - 70 * + 9 * + 70 WHEN - 86 + COUNT( * ) * 28 THEN 39 * - COALESCE ( 84, 49 * + COUNT( DISTINCT 59 ) + 11, - 70, COUNT( * ) ) ELSE NULL END WHEN - CAST( - MIN( ALL CAST( NULL AS SIGNED ) ) AS DECIMAL ) THEN - MAX( + NULLIF ( + 85, + CAST( NULL AS DECIMAL ) * + 23 ) ) / - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL - CASE CASE + 31 WHEN - 62 THEN - 70 * + 9 * + 70 WHEN - 86 + COUNT ( * ) * 28 THEN 39 * - COALESCE ( 84, 49 * + COUNT ( DISTINCT 59 ) + 11, - 70, COUNT ( * ) ) ELSE NULL END WHEN - CAST ( - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS REAL ) THEN - MAX ( + NULLIF ( + 85, + CAST ( NULL AS REAL ) * + 23 ) ) / - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT COUNT( + 6 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8851
SELECT COUNT ( + 6 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT 45 DIV - 28 + - 97
----
-98

skipif mysql # not compatible
query I rowsort label-8852
SELECT 45 / - 28 + - 97
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8853
SELECT 50 * - COUNT( * ), - 74 * + 36 * 66 AS col1
----
-50
-175824

skipif mysql # not compatible
query II rowsort label-8853
SELECT 50 * - COUNT ( * ), - 74 * + 36 * 66 AS col1
----
-50
-175824

query I rowsort
SELECT - ( - 10 ) + 44 AS col0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT 15 + - COUNT( DISTINCT CASE + ( ( 5 ) ) WHEN + 21 THEN - CAST( COALESCE ( + ( + 12 ), - CAST( NULL AS SIGNED ) * 98, 74 ) AS SIGNED ) END ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8855
SELECT 15 + - COUNT ( DISTINCT CASE + ( ( 5 ) ) WHEN + 21 THEN - CAST ( COALESCE ( + ( + 12 ), - CAST ( NULL AS INTEGER ) * 98, 74 ) AS INTEGER ) END ) AS col0
----
15

query I rowsort
SELECT ALL - - 48 * + 14 - + 7 AS col0
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT + 77 * 74 + + - CASE + 11 WHEN + + 89 THEN 48 WHEN + + CASE 13 WHEN - 65 + + 77 THEN + 31 WHEN 44 THEN NULL END THEN - COUNT( * ) + - COUNT( * ) WHEN + 30 THEN + COUNT( * ) END / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT + 77 * 74 + + - CASE + 11 WHEN + + 89 THEN 48 WHEN + + CASE 13 WHEN - 65 + + 77 THEN + 31 WHEN 44 THEN NULL END THEN - COUNT ( * ) + - COUNT ( * ) WHEN + 30 THEN + COUNT ( * ) END / 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT + 90 * 5 * + + COUNT( * ) * - - COUNT( * ) + - 65 AS col0
----
385

skipif mysql # not compatible
query I rowsort label-8858
SELECT + 90 * 5 * + + COUNT ( * ) * - - COUNT ( * ) + - 65 AS col0
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL + - NULLIF ( - - 30, 50 ) * - - 72 + 7 + - 95 + 43 - SUM( ALL + 47 ) + + 96
----
-2156

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL + - NULLIF ( - - 30, 50 ) * - - 72 + 7 + - 95 + 43 - SUM ( ALL + 47 ) + + 96
----
-2156

onlyif mysql # DIV for integer division: 
query II rowsort label-8860
SELECT ALL + 97 * + 19 + 17, 34 DIV + + 30 AS col1
----
1860
1

skipif mysql # not compatible
query II rowsort label-8860
SELECT ALL + 97 * + 19 + 17, 34 / + + 30 AS col1
----
1860
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8861
SELECT - + 6 * - CAST( NULL AS SIGNED ) * - COUNT( * ) + + 7 - + COALESCE ( + 14, 23 + - ( + 45 ) * - 88, ( 76 ) * 10 + - CASE - COUNT( * ) WHEN 76 THEN - 33 * + 93 ELSE NULL END ) * COALESCE ( + COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8861
SELECT - + 6 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + 7 - + COALESCE ( + 14, 23 + - ( + 45 ) * - 88, ( 76 ) * 10 + - CASE - COUNT ( * ) WHEN 76 THEN - 33 * + 93 ELSE NULL END ) * COALESCE ( + COUNT ( * ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL + + 56 * + ( COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + + 56 * + ( COUNT ( * ) )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT + - COALESCE ( + 99, 43, 68 ) + + CAST( - + 17 AS SIGNED )
----
-116

skipif mysql # not compatible
query I rowsort label-8863
SELECT + - COALESCE ( + 99, 43, 68 ) + + CAST ( - + 17 AS INTEGER )
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL - 26 * + SUM( - CASE 89 WHEN + 62 + - - 77 THEN + 5 ELSE 56 END ) col0
----
1456

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL - 26 * + SUM ( - CASE 89 WHEN + 62 + - - 77 THEN + 5 ELSE 56 END ) col0
----
1456

query I rowsort
SELECT + ( + - ( + + 12 ) )
----
-12

query I rowsort
SELECT + + 57 + + 89 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ( + NULLIF ( - 38, + COUNT( * ) ) ) * COALESCE ( + - 18, - 9 * + 43 ) + COUNT( * ) * + 65 + 33
----
782

skipif mysql # not compatible
query I rowsort label-8867
SELECT ( + NULLIF ( - 38, + COUNT ( * ) ) ) * COALESCE ( + - 18, - 9 * + 43 ) + COUNT ( * ) * + 65 + 33
----
782

query I rowsort
SELECT DISTINCT 75 * 73 * - 66 AS col1
----
-361350

query I rowsort
SELECT ALL - + 1 - + ( + 20 )
----
-21

query I rowsort
SELECT ALL ( - + 33 ) - 41 + + 94
----
20

query I rowsort
SELECT + 88 + + - 7
----
81

query I rowsort
SELECT ALL 53 * - 95
----
-5035

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT - SUM( - + 20 ) * - - 60, + 5 * + 44 * ( 98 ) col1
----
1200
21560

skipif mysql # not compatible
query II rowsort label-8873
SELECT - SUM ( - + 20 ) * - - 60, + 5 * + 44 * ( 98 ) col1
----
1200
21560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT - NULLIF ( - + CAST( - + 92 AS SIGNED ), + 24 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-8874
SELECT - NULLIF ( - + CAST ( - + 92 AS INTEGER ), + 24 ) AS col0
----
-92

query II rowsort
SELECT ALL 2 AS col1, ( + 68 ) + - + 0
----
2
68

query I rowsort
SELECT + 52 + - + 78
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT + 11 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-8877
SELECT + 11 / - 70
----
0

query I rowsort
SELECT ALL + 12 * 37 AS col0
----
444

onlyif mysql # aggregate syntax: 
query II rowsort label-8879
SELECT DISTINCT 59 AS col2, 17 * - + 71 - CASE WHEN 26 NOT BETWEEN ( - COUNT( * ) * 53 + - 60 * - COUNT( * ) ) AND NULL THEN NULL ELSE COUNT( * ) * 99 END
----
59
-1306

skipif mysql # not compatible
query II rowsort label-8879
SELECT DISTINCT 59 AS col2, 17 * - + 71 - CASE WHEN 26 NOT BETWEEN ( - COUNT ( * ) * 53 + - 60 * - COUNT ( * ) ) AND NULL THEN NULL ELSE COUNT ( * ) * 99 END
----
59
-1306

onlyif mysql # aggregate syntax: 
query II rowsort label-8880
SELECT ALL 10 AS col1, - ( - COALESCE ( 29, 68 + - 96, - CASE - 22 WHEN - ( 21 ) THEN - COUNT( * ) WHEN ( + 50 ) THEN NULL ELSE NULL END * + 8 ) ) AS col1
----
10
29

skipif mysql # not compatible
query II rowsort label-8880
SELECT ALL 10 AS col1, - ( - COALESCE ( 29, 68 + - 96, - CASE - 22 WHEN - ( 21 ) THEN - COUNT ( * ) WHEN ( + 50 ) THEN NULL ELSE NULL END * + 8 ) ) AS col1
----
10
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8881
SELECT ALL 12 AS col2, - ( - CAST( + - 74 AS SIGNED ) ) + 97 AS col1
----
12
23

skipif mysql # not compatible
query II rowsort label-8881
SELECT ALL 12 AS col2, - ( - CAST ( + - 74 AS INTEGER ) ) + 97 AS col1
----
12
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT + 99 + - + CASE - 68 WHEN + + ( - + COUNT( * ) ) THEN - 3 WHEN - 8 THEN NULL ELSE + 78 + 59 END
----
-38

skipif mysql # not compatible
query I rowsort label-8882
SELECT + 99 + - + CASE - 68 WHEN + + ( - + COUNT ( * ) ) THEN - 3 WHEN - 8 THEN NULL ELSE + 78 + 59 END
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8883
SELECT ALL 21 AS col2, COUNT( * ) * + 55 AS col0
----
21
55

skipif mysql # not compatible
query II rowsort label-8883
SELECT ALL 21 AS col2, COUNT ( * ) * + 55 AS col0
----
21
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT + 75 + CASE 95 WHEN + COUNT( * ) * + + ( + + 64 ) + 52 THEN NULL WHEN + COUNT( * ) * + ( + AVG ( ALL 44 ) + + 73 * - 72 ) + COUNT( * ) * - 85 THEN - 55 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8884
SELECT + 75 + CASE 95 WHEN + COUNT ( * ) * + + ( + + 64 ) + 52 THEN NULL WHEN + COUNT ( * ) * + ( + AVG ( ALL 44 ) + + 73 * - 72 ) + COUNT ( * ) * - 85 THEN - 55 END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8885
SELECT ALL ( + + 38 ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL ( + + 38 ) / 67
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8886
SELECT + 45 DIV - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-8886
SELECT + 45 / - COUNT ( * )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT + NULLIF ( + 10, + MIN( 22 ) )
----
10

skipif mysql # not compatible
query I rowsort label-8887
SELECT + NULLIF ( + 10, + MIN ( 22 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT - 27 + + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-8888
SELECT - 27 + + COUNT ( * )
----
-26

query I rowsort
SELECT DISTINCT - - 96 * - - 81 + - 21 AS col0
----
7755

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT - - COUNT( * ) * 59 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8890
SELECT - - COUNT ( * ) * 59 AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT ALL + - 23 * + CAST( NULL AS SIGNED ) + - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + - 23 * + CAST ( NULL AS INTEGER ) + - + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT + SUM( DISTINCT 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT + SUM ( DISTINCT 83 ) AS col0
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-8893
SELECT DISTINCT + 78 col0, + 77 DIV - + 63 + 47 AS col2
----
78
46

skipif mysql # not compatible
query II rowsort label-8893
SELECT DISTINCT + 78 col0, + 77 / - + 63 + 47 AS col2
----
78
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT ALL + + SUM( DISTINCT - 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-8894
SELECT ALL + + SUM ( DISTINCT - 78 ) AS col1
----
-78

query II rowsort
SELECT + - 40 AS col1, - 27 AS col1
----
-40
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8896
SELECT ALL 41 * - CAST( NULL AS DECIMAL ) * + CASE - - 80 WHEN + 47 * - - COUNT( - 80 ) * - 83 * 76 + + 24 / ( COALESCE ( + AVG ( DISTINCT 7 ), 86 ) ) THEN - 4 ELSE NULL END + - 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL 41 * - CAST ( NULL AS REAL ) * + CASE - - 80 WHEN + 47 * - - COUNT ( - 80 ) * - 83 * 76 + + 24 / ( COALESCE ( + AVG ( DISTINCT 7 ), 86 ) ) THEN - 4 ELSE NULL END + - 86 AS col2
----
NULL

query II rowsort
SELECT - 51 col1, + 75 AS col1
----
-51
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8898
SELECT + - COUNT( * ) AS col2, + 96
----
-1
96

skipif mysql # not compatible
query II rowsort label-8898
SELECT + - COUNT ( * ) AS col2, + 96
----
-1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT ALL - 7 * - - ( + 56 ) - COUNT( * ) AS col1
----
-393

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL - 7 * - - ( + 56 ) - COUNT ( * ) AS col1
----
-393

query I rowsort
SELECT ALL + 89 * 17 AS col0
----
1513

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT DISTINCT + COALESCE ( - + 90, + 6 * - 23 * COUNT( * ) )
----
-90

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT + COALESCE ( - + 90, + 6 * - 23 * COUNT ( * ) )
----
-90

query I rowsort
SELECT ALL + ( - + 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8903
SELECT DISTINCT + + COUNT( ALL - + 32 ) * + 79 DIV 81 AS col1, 7 + + - 45 * + 55
----
0
-2468

skipif mysql # not compatible
query II rowsort label-8903
SELECT DISTINCT + + COUNT ( ALL - + 32 ) * + 79 / 81 AS col1, 7 + + - 45 * + 55
----
0
-2468

query I rowsort
SELECT DISTINCT - ( + - 59 ) * - 81 * + 61 * 77
----
-22446963

onlyif mysql # aggregate syntax: 
query II rowsort label-8905
SELECT DISTINCT + - 3 AS col0, ( 78 ) - COUNT( DISTINCT - 71 )
----
-3
77

skipif mysql # not compatible
query II rowsort label-8905
SELECT DISTINCT + - 3 AS col0, ( 78 ) - COUNT ( DISTINCT - 71 )
----
-3
77

query I rowsort
SELECT ALL + ( - - ( - 38 ) ) AS col0
----
-38

query I rowsort
SELECT - 51 * + + 61 AS col0
----
-3111

query I rowsort
SELECT ALL - - 49 * - 47 col1
----
-2303

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT - ( + + 46 ) + + + NULLIF ( + + COUNT( * ), - 96 ) - 99
----
-144

skipif mysql # not compatible
query I rowsort label-8909
SELECT - ( + + 46 ) + + + NULLIF ( + + COUNT ( * ), - 96 ) - 99
----
-144

query I rowsort
SELECT - 47 - 87 AS col1
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT + 65 * - 54 * NULLIF ( - + COUNT( DISTINCT 29 ), + - 66 - CASE 54 WHEN - COUNT( * ) THEN AVG ( DISTINCT + 51 ) * 24 WHEN + 61 THEN 31 - - 53 END )
----
3510

skipif mysql # not compatible
query I rowsort label-8911
SELECT + 65 * - 54 * NULLIF ( - + COUNT ( DISTINCT 29 ), + - 66 - CASE 54 WHEN - COUNT ( * ) THEN AVG ( DISTINCT + 51 ) * 24 WHEN + 61 THEN 31 - - 53 END )
----
3510

query I rowsort
SELECT + 41 * + 12 AS col0
----
492

query I rowsort
SELECT - 12 + - 58
----
-70

query I rowsort
SELECT ALL ( + 60 ) AS col2
----
60

query I rowsort
SELECT - 5 * 4 AS col2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT ALL COALESCE ( 40, + - 93 * - 13 / + 73 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL COALESCE ( 40, + - 93 * - 13 / + 73 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8917
SELECT ALL 93 + CAST( NULL AS DECIMAL ) AS col2, + 83 col2
----
NULL
83

skipif mysql # not compatible
query II rowsort label-8917
SELECT ALL 93 + CAST ( NULL AS REAL ) AS col2, + 83 col2
----
NULL
83

query I rowsort
SELECT - 69 * + 97
----
-6693

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + 75 * + MIN( - 83 ) AS col2
----
-6225

skipif mysql # not compatible
query I rowsort label-8919
SELECT + 75 * + MIN ( - 83 ) AS col2
----
-6225

query I rowsort
SELECT ALL 57 + + 72 AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT - 63 - - COUNT( * ) + + - NULLIF ( - 0, - 41 / 31 - - + 74 + + 69 ) + + 20 * + 71 * - 71
----
-100882

skipif mysql # not compatible
query I rowsort label-8921
SELECT - 63 - - COUNT ( * ) + + - NULLIF ( - 0, - 41 / 31 - - + 74 + + 69 ) + + 20 * + 71 * - 71
----
-100882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8922
SELECT + COALESCE ( - + COUNT( * ), + 48 * - COUNT( * ) + - + 96 * - NULLIF ( - + COALESCE ( + + 88, + - COUNT( * ) DIV CAST( NULL AS SIGNED ), 92 + + 79 * ( + COALESCE ( 55, + 75 ) * 65 ) ), 76 ) + 30, - 33 ) DIV NULLIF ( + MAX( - 97 ) * 63, 37 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT + COALESCE ( - + COUNT ( * ), + 48 * - COUNT ( * ) + - + 96 * - NULLIF ( - + COALESCE ( + + 88, + - COUNT ( * ) / CAST ( NULL AS INTEGER ), 92 + + 79 * ( + COALESCE ( 55, + 75 ) * 65 ) ), 76 ) + 30, - 33 ) / NULLIF ( + MAX ( - 97 ) * 63, 37 ) AS col1
----
0

query I rowsort
SELECT + 39 - - - 94
----
-55

query I rowsort
SELECT - NULLIF ( - + 52, 45 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL - 9 + 5 + + - 69 - COUNT( * ) + 86 + - ( - 54 ) - 68 * + - 50 + - 10 col1
----
3456

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - 9 + 5 + + - 69 - COUNT ( * ) + 86 + - ( - 54 ) - 68 * + - 50 + - 10 col1
----
3456

query II rowsort
SELECT DISTINCT 18 + - 81, + 68 + + 31 + - - 79 * - 17 AS col2
----
-63
-1244

onlyif mysql # aggregate syntax: 
query II rowsort label-8927
SELECT ALL 23 + - 53 * - 67 * COALESCE ( + SUM( ALL - 21 ), + 60 ) AS col2, - SUM( + 6 ) + 21 * + ( 58 * COUNT( * ) )
----
-74548
1212

skipif mysql # not compatible
query II rowsort label-8927
SELECT ALL 23 + - 53 * - 67 * COALESCE ( + SUM ( ALL - 21 ), + 60 ) AS col2, - SUM ( + 6 ) + 21 * + ( 58 * COUNT ( * ) )
----
-74548
1212

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8928
SELECT + 85 DIV 24 - - SUM( DISTINCT - 99 ) * - 40
----
3963

skipif mysql # not compatible
query I rowsort label-8928
SELECT + 85 / 24 - - SUM ( DISTINCT - 99 ) * - 40
----
3963

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT - 10 * MIN( 30 ) AS col1
----
-300

skipif mysql # not compatible
query I rowsort label-8929
SELECT - 10 * MIN ( 30 ) AS col1
----
-300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8930
SELECT - + 81 * + 72 + - COALESCE ( + 87, + 10 * - - 90 ) DIV + 67 + - MIN( - 0 ) * 59 + 76 * COUNT( * ) AS col0
----
-5757

skipif mysql # not compatible
query I rowsort label-8930
SELECT - + 81 * + 72 + - COALESCE ( + 87, + 10 * - - 90 ) / + 67 + - MIN ( - 0 ) * 59 + 76 * COUNT ( * ) AS col0
----
-5757

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8931
SELECT 21 - - + 59 AS col2, 87 DIV - COUNT( * ) AS col2
----
80
-87

skipif mysql # not compatible
query II rowsort label-8931
SELECT 21 - - + 59 AS col2, 87 / - COUNT ( * ) AS col2
----
80
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT + 59 * + COUNT( * ) * + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-8932
SELECT + 59 * + COUNT ( * ) * + COUNT ( * )
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8933
SELECT - 18 / - 32 * + - 39 * + + CAST( NULL AS DECIMAL ) + + + 88 + + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT - 18 / - 32 * + - 39 * + + CAST ( NULL AS REAL ) + + + 88 + + 43 AS col2
----
NULL

query I rowsort
SELECT ALL + 9 - 26
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8935
SELECT COALESCE ( CAST( NULL AS SIGNED ), + + 16 ) + + CAST( + + 1 AS SIGNED ) + + - 14 + - - 0 + - + MIN( + 50 ) - - 13 * - NULLIF ( + 29, COUNT( * ) ) AS col0
----
-424

skipif mysql # not compatible
query I rowsort label-8935
SELECT COALESCE ( CAST ( NULL AS INTEGER ), + + 16 ) + + CAST ( + + 1 AS INTEGER ) + + - 14 + - - 0 + - + MIN ( + 50 ) - - 13 * - NULLIF ( + 29, COUNT ( * ) ) AS col0
----
-424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8936
SELECT ALL - - ( CASE - + 65 WHEN - COUNT( * ) - + - 7 THEN + CAST( - 89 AS SIGNED ) * 74 WHEN + + COALESCE ( - 53, 84 + + 60, 94 + NULLIF ( - 76, 39 ) ) THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL - - ( CASE - + 65 WHEN - COUNT ( * ) - + - 7 THEN + CAST ( - 89 AS INTEGER ) * 74 WHEN + + COALESCE ( - 53, 84 + + 60, 94 + NULLIF ( - 76, 39 ) ) THEN NULL END ) AS col0
----
NULL

query I rowsort
SELECT + 99 + - + 84
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL - ( + - 95 ) - 30 + COUNT( * ) + 62 AS col0
----
128

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - ( + - 95 ) - 30 + COUNT ( * ) + 62 AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT + 30 * - + 2 * 88 + - COUNT( * )
----
-5281

skipif mysql # not compatible
query I rowsort label-8939
SELECT + 30 * - + 2 * 88 + - COUNT ( * )
----
-5281

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL - + COUNT( * ) - 86 * - 1
----
85

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL - + COUNT ( * ) - 86 * - 1
----
85

query I rowsort
SELECT ALL - - 92 col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT + SUM( - 45 ) * + COUNT( * ) * 76 col1
----
-3420

skipif mysql # not compatible
query I rowsort label-8942
SELECT + SUM ( - 45 ) * + COUNT ( * ) * 76 col1
----
-3420

query I rowsort
SELECT - 49 + + ( - 57 ) + + 73 * - 35
----
-2661

query II rowsort
SELECT 19 + ( - 10 ) AS col1, 63 AS col2
----
9
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT 26 * 91 DIV - 44 col2
----
-53

skipif mysql # not compatible
query I rowsort label-8945
SELECT 26 * 91 / - 44 col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT DISTINCT + CASE - 80 WHEN + - MIN( 54 ) * 78 THEN + 27 WHEN - + 10 THEN + 54 END / - 75 * - 35 * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT + CASE - 80 WHEN + - MIN ( 54 ) * 78 THEN + 27 WHEN - + 10 THEN + 54 END / - 75 * - 35 * - 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL - MAX( - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL - MAX ( - 10 ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8948
SELECT 9 AS col0, CASE + 26 WHEN 11 - 69 * + 66 * + 19 THEN + 42 ELSE NULL END + - NULLIF ( COUNT( * ), CAST( NULL AS SIGNED ) ) + - 79 * COALESCE ( + 21 - - ( 3 ), COUNT( * ) * CASE + 59 * ( + 61 ) WHEN COUNT( * ) * + 61 THEN - COUNT( * ) ELSE NULL END ) * - COUNT( - CAST( NULL AS DECIMAL ) )
----
9
NULL

skipif mysql # not compatible
query II rowsort label-8948
SELECT 9 AS col0, CASE + 26 WHEN 11 - 69 * + 66 * + 19 THEN + 42 ELSE NULL END + - NULLIF ( COUNT ( * ), CAST ( NULL AS INTEGER ) ) + - 79 * COALESCE ( + 21 - - ( 3 ), COUNT ( * ) * CASE + 59 * ( + 61 ) WHEN COUNT ( * ) * + 61 THEN - COUNT ( * ) ELSE NULL END ) * - COUNT ( - CAST ( NULL AS REAL ) )
----
9
NULL

query II rowsort
SELECT ALL 97, - 88 - + 71 * - + 20 col2
----
97
1332

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT 16 DIV 33 DIV - + 22 col0
----
0

skipif mysql # not compatible
query I rowsort label-8950
SELECT 16 / 33 / - + 22 col0
----
0

query I rowsort
SELECT DISTINCT - 40 + + - 86 AS col2
----
-126

query I rowsort
SELECT DISTINCT - 67 * - 99 * 32 AS col2
----
212256

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT 99 - - COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-8953
SELECT 99 - - COUNT ( * )
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT 6 DIV - 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT 6 / - 8 AS col0
----
0

query I rowsort
SELECT DISTINCT - ( - 72 ) + + ( + 37 ) + - 88 * - + 71 * - COALESCE ( 62, + 4 * 43 ) + - 4
----
-387271

query I rowsort
SELECT ALL + CASE WHEN NOT - 75 NOT BETWEEN NULL AND 96 / - 86 THEN + 81 END + - 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT 31 + + 57 + + 79 * - 56 + - - 65 + COALESCE ( + 89, ( + 22 ) * + - COUNT( * ) ) * 20 AS col1
----
-2491

skipif mysql # not compatible
query I rowsort label-8957
SELECT 31 + + 57 + + 79 * - 56 + - - 65 + COALESCE ( + 89, ( + 22 ) * + - COUNT ( * ) ) * 20 AS col1
----
-2491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8958
SELECT 25 AS col0, + COUNT( * ) * + + 14 + + 73 * + CAST( NULL AS SIGNED ) AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-8958
SELECT 25 AS col0, + COUNT ( * ) * + + 14 + + 73 * + CAST ( NULL AS INTEGER ) AS col0
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT 40 + CASE + + ( - COUNT( * ) ) WHEN - + 19 THEN + 18 WHEN + - 89 * + COUNT( * ) * + 31 * - + 46 / 77 + - ( - 26 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT 40 + CASE + + ( - COUNT ( * ) ) WHEN - + 19 THEN + 18 WHEN + - 89 * + COUNT ( * ) * + 31 * - + 46 / 77 + - ( - 26 ) THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8960
SELECT ALL + 77 + - + CAST( - CAST( - AVG ( + 72 ) AS SIGNED ) AS SIGNED ) AS col1, - 0 DIV - 90 - + 28
----
5
-28

skipif mysql # not compatible
query II rowsort label-8960
SELECT ALL + 77 + - + CAST ( - CAST ( - AVG ( + 72 ) AS INTEGER ) AS INTEGER ) AS col1, - 0 / - 90 - + 28
----
5
-28

query I rowsort
SELECT ALL 3 + 28 * + - 55 col0
----
-1537

onlyif mysql # aggregate syntax: 
query II rowsort label-8962
SELECT - + 13 AS col1, + COUNT( * ) + + 94 * + - 12
----
-13
-1127

skipif mysql # not compatible
query II rowsort label-8962
SELECT - + 13 AS col1, + COUNT ( * ) + + 94 * + - 12
----
-13
-1127

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT SUM( 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8963
SELECT SUM ( 28 ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8964
SELECT ( COUNT( ALL 75 ) ) + CAST( + 89 AS DECIMAL ) + 34 * + + CASE + + 76 WHEN - 52 THEN NULL WHEN - + 71 * - 88 THEN + 7 ELSE NULL END / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT ( COUNT ( ALL 75 ) ) + CAST ( + 89 AS REAL ) + 34 * + + CASE + + 76 WHEN - 52 THEN NULL WHEN - + 71 * - 88 THEN + 7 ELSE NULL END / - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 13 - 79
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL + ( MIN( + 30 ) ) * - 21
----
-630

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL + ( MIN ( + 30 ) ) * - 21
----
-630

query I rowsort
SELECT + 57 * + 59
----
3363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8968
SELECT 67 * CAST( - + 20 AS SIGNED )
----
-1340

skipif mysql # not compatible
query I rowsort label-8968
SELECT 67 * CAST ( - + 20 AS INTEGER )
----
-1340

onlyif mysql # aggregate syntax: 
query II rowsort label-8969
SELECT ALL - + COUNT( * ) col1, - CASE 58 WHEN COALESCE ( 41, - + COUNT( * ) ) THEN 25 ELSE + 96 + 20 END AS col0
----
-1
-116

skipif mysql # not compatible
query II rowsort label-8969
SELECT ALL - + COUNT ( * ) col1, - CASE 58 WHEN COALESCE ( 41, - + COUNT ( * ) ) THEN 25 ELSE + 96 + 20 END AS col0
----
-1
-116

query I rowsort
SELECT DISTINCT - + ( - 10 ) AS col0
----
10

query II rowsort
SELECT DISTINCT - + 32 AS col2, 31 AS col2
----
-32
31

query II rowsort
SELECT ALL - 48, 43 + - 29 AS col0
----
-48
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8973
SELECT + COALESCE ( + + COALESCE ( 37, - ( + - 2 ) + SUM( ALL - - ( - - 68 ) ), 23 ), + COUNT( * ) DIV - 16 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8973
SELECT + COALESCE ( + + COALESCE ( 37, - ( + - 2 ) + SUM ( ALL - - ( - - 68 ) ), 23 ), + COUNT ( * ) / - 16 ) AS col2
----
37

query I rowsort
SELECT 7 * + 60 AS col0
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL - - MAX( DISTINCT - + 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - - MAX ( DISTINCT - + 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT - NULLIF ( - - 49, - 84 + - - MIN( ALL + 68 ) / COUNT( * ) - 83 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8976
SELECT - NULLIF ( - - 49, - 84 + - - MIN ( ALL + 68 ) / COUNT ( * ) - 83 ) AS col0
----
-49

query I rowsort
SELECT ALL - NULLIF ( + 33, 21 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8978
SELECT + CASE 0 WHEN + 50 THEN 97 WHEN + - 52 THEN 4 END * - + 34 + - + 85 + 39 + 45 + + SUM( CAST( NULL AS SIGNED ) ) * + 76 / - 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT + CASE 0 WHEN + 50 THEN 97 WHEN + - 52 THEN 4 END * - + 34 + - + 85 + 39 + 45 + + SUM ( CAST ( NULL AS INTEGER ) ) * + 76 / - 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + COUNT( * ) * - - 15 * 67
----
1005

skipif mysql # not compatible
query I rowsort label-8979
SELECT + COUNT ( * ) * - - 15 * 67
----
1005

query I rowsort
SELECT ALL - 62 * + 33 AS col2
----
-2046

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT - 56 DIV + ( - - 72 ) + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-8981
SELECT - 56 / + ( - - 72 ) + - 69
----
-69

query I rowsort
SELECT ALL 26 * - 82
----
-2132

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT DISTINCT 59 DIV - + 34
----
-1

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT 59 / - + 34
----
-1

query I rowsort
SELECT 89 * 9 - 70
----
731

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ALL COUNT( * ) + ( + 9 )
----
10

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL COUNT ( * ) + ( + 9 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT + NULLIF ( + COUNT( + 19 ), 24 ) * - + 19 + - 75 + - - 99 + + + 29
----
34

skipif mysql # not compatible
query I rowsort label-8986
SELECT + NULLIF ( + COUNT ( + 19 ), 24 ) * - + 19 + - 75 + - - 99 + + + 29
----
34

query II rowsort
SELECT 0 AS col1, 67
----
0
67

query I rowsort
SELECT 41 + + 50 * + + ( + 99 )
----
4991

onlyif mysql # aggregate syntax: 
query II rowsort label-8989
SELECT - 63 AS col0, COUNT( * ) AS col0
----
-63
1

skipif mysql # not compatible
query II rowsort label-8989
SELECT - 63 AS col0, COUNT ( * ) AS col0
----
-63
1

query I rowsort
SELECT DISTINCT NULLIF ( + + 29, - 73 ) + + 20
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL - 18 * 83 * + COUNT( * ) AS col1
----
-1494

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL - 18 * 83 * + COUNT ( * ) AS col1
----
-1494

query I rowsort
SELECT DISTINCT + 64 + 78 * - 14 * - 46 AS col2
----
50296

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT ALL - 91 * 88 * - - COUNT( * )
----
-8008

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL - 91 * 88 * - - COUNT ( * )
----
-8008

query I rowsort
SELECT - 68 * + 75
----
-5100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8995
SELECT ALL - ( + 52 ) * + COALESCE ( - COUNT( * ), - 90 DIV - + ( - 74 ) + + 81 * + 56 DIV - 28 ) - - CASE 9 WHEN 42 * 90 THEN NULL WHEN - 98 + - 28 THEN NULL ELSE NULLIF ( 69, - 92 ) + - 20 * + 83 END AS col2
----
-1539

skipif mysql # not compatible
query I rowsort label-8995
SELECT ALL - ( + 52 ) * + COALESCE ( - COUNT ( * ), - 90 / - + ( - 74 ) + + 81 * + 56 / - 28 ) - - CASE 9 WHEN 42 * 90 THEN NULL WHEN - 98 + - 28 THEN NULL ELSE NULLIF ( 69, - 92 ) + - 20 * + 83 END AS col2
----
-1539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8996
SELECT DISTINCT + MAX( ALL - 47 ) - + 37 DIV COUNT( * ) * 68 * 69 AS col0
----
-173651

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT + MAX ( ALL - 47 ) - + 37 / COUNT ( * ) * 68 * 69 AS col0
----
-173651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8997
SELECT - NULLIF ( - SUM( CAST( NULL AS SIGNED ) ), - ( - MIN( ALL 76 ) ) + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8997
SELECT - NULLIF ( - SUM ( CAST ( NULL AS INTEGER ) ), - ( - MIN ( ALL 76 ) ) + 85 )
----
NULL

query I rowsort
SELECT - + 79 * 27 + + 88 * ( 36 )
----
1035

query I rowsort
SELECT - 41 - + + 40 AS col0
----
-81

query II rowsort
SELECT ALL 57 col1, + ( - 71 ) AS col1
----
57
-71

query I rowsort
SELECT - 54 - + 64
----
-118

query I rowsort
SELECT ALL + + 18 - + 87
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT - 68 + + + SUM( + 52 )
----
-16

skipif mysql # not compatible
query I rowsort label-9003
SELECT - 68 + + + SUM ( + 52 )
----
-16

query I rowsort
SELECT DISTINCT ( - - 81 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT + - 72 - + - MAX( DISTINCT + 39 ) * 17 col1
----
591

skipif mysql # not compatible
query I rowsort label-9005
SELECT + - 72 - + - MAX ( DISTINCT + 39 ) * 17 col1
----
591

query I rowsort
SELECT DISTINCT + CASE + 68 WHEN - - 13 THEN - ( + 85 ) + + + ( 29 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9007
SELECT ALL - 14 * 33 * + 57 + + 66 DIV - 47
----
-26335

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL - 14 * 33 * + 57 + + 66 / - 47
----
-26335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9008
SELECT - 84 + - ( - + CAST( NULL AS SIGNED ) ) - CASE - 34 WHEN + - ( + 69 ) THEN 7 * + - 46 + COUNT( * ) WHEN ( 87 ) * - 67 - - 49 / 60 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT - 84 + - ( - + CAST ( NULL AS INTEGER ) ) - CASE - 34 WHEN + - ( + 69 ) THEN 7 * + - 46 + COUNT ( * ) WHEN ( 87 ) * - 67 - - 49 / 60 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - COALESCE ( - 76, + 51, - 44 ) * 3 + - + 4 AS col2
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT - 21 * + + 77 + + MAX( DISTINCT - + 51 )
----
-1668

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT - 21 * + + 77 + + MAX ( DISTINCT - + 51 )
----
-1668

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL + 49 * - 96 + - COUNT( * ) + 88 * 89
----
3127

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL + 49 * - 96 + - COUNT ( * ) + 88 * 89
----
3127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9012
SELECT ALL + 83 * - 79 + + 43 + + MAX( ( - - 79 ) ) + - ( + + NULLIF ( + - 80, + COUNT( * ) ) ) * 1 DIV + 27 col2
----
-6433

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL + 83 * - 79 + + 43 + + MAX ( ( - - 79 ) ) + - ( + + NULLIF ( + - 80, + COUNT ( * ) ) ) * 1 / + 27 col2
----
-6433

query I rowsort
SELECT COALESCE ( + 70, - + CASE - 36 WHEN + 35 THEN NULL ELSE - 18 END ) AS col2
----
70

query I rowsort
SELECT - 86 * - 72 * + 91 + + - NULLIF ( - - 9, + 36 ) + 13
----
563476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9015
SELECT ALL COUNT( * ) DIV + ( + + ( + + ( + 25 ) ) ) AS col0, 79 * CASE + 99 WHEN - 21 * - - 76 THEN NULL WHEN + CASE - 10 WHEN 52 + - COUNT( * ) THEN - 23 DIV - CAST( NULL AS SIGNED ) ELSE 12 END + + 7 * + 20 THEN ( + 12 ) + 56 END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9015
SELECT ALL COUNT ( * ) / + ( + + ( + + ( + 25 ) ) ) AS col0, 79 * CASE + 99 WHEN - 21 * - - 76 THEN NULL WHEN + CASE - 10 WHEN 52 + - COUNT ( * ) THEN - 23 / - CAST ( NULL AS INTEGER ) ELSE 12 END + + 7 * + 20 THEN ( + 12 ) + 56 END AS col1
----
0
NULL

query I rowsort
SELECT 95 * - 6 + - - ( 6 )
----
-564

query II rowsort
SELECT 13 * + 85 * - 50 * + 95 + - - 4, + 9 AS col2
----
-5248746
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT - CASE - - 94 WHEN - COUNT( * ) THEN NULL WHEN MAX( 69 ) + + 30 THEN 0 - + + 10 ELSE COALESCE ( 62, - 22, 19 ) * + 48 END * + 84 + 48 AS col0
----
-249936

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT - CASE - - 94 WHEN - COUNT ( * ) THEN NULL WHEN MAX ( 69 ) + + 30 THEN 0 - + + 10 ELSE COALESCE ( 62, - 22, 19 ) * + 48 END * + 84 + 48 AS col0
----
-249936

onlyif mysql # DIV for integer division: 
query II rowsort label-9019
SELECT ALL + 22 DIV + 81 AS col1, 2
----
0
2

skipif mysql # not compatible
query II rowsort label-9019
SELECT ALL + 22 / + 81 AS col1, 2
----
0
2

query I rowsort
SELECT + 75 * - 48
----
-3600

onlyif mysql # aggregate syntax: 
query II rowsort label-9021
SELECT ALL 98 * + + 56, COUNT( * ) AS col2
----
5488
1

skipif mysql # not compatible
query II rowsort label-9021
SELECT ALL 98 * + + 56, COUNT ( * ) AS col2
----
5488
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9022
SELECT - COUNT( * ) * + COUNT( * ) * CAST( NULL AS SIGNED ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT - COUNT ( * ) * + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT MAX( + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9023
SELECT MAX ( + 2 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9024
SELECT + 62 + + COALESCE ( 52, + 1, 76, + CASE - CAST( NULL AS SIGNED ) WHEN - 24 THEN - - 16 + + + 40 + - + 20 - + 88 + 92 DIV 74 ELSE - 76 END - 83 )
----
114

skipif mysql # not compatible
query I rowsort label-9024
SELECT + 62 + + COALESCE ( 52, + 1, 76, + CASE - CAST ( NULL AS INTEGER ) WHEN - 24 THEN - - 16 + + + 40 + - + 20 - + 88 + 92 / 74 ELSE - 76 END - 83 )
----
114

query I rowsort
SELECT + + 91 + + 74
----
165

query I rowsort
SELECT + ( 10 ) * - 31
----
-310

onlyif mysql # aggregate syntax: 
query II rowsort label-9027
SELECT - 99 * COUNT( * ) * ( - 30 ) * - + ( - 50 ) + + 75 * - 42, - 89 AS col1
----
145350
-89

skipif mysql # not compatible
query II rowsort label-9027
SELECT - 99 * COUNT ( * ) * ( - 30 ) * - + ( - 50 ) + + 75 * - 42, - 89 AS col1
----
145350
-89

query II rowsort
SELECT + - 16 + - 81, 81 * + 32 AS col2
----
-97
2592

query I rowsort
SELECT + 43 - - - 16 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT - - ( + + 96 ) * COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9030
SELECT - - ( + + 96 ) * COUNT ( * ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9031
SELECT ALL - 61 DIV CAST( + NULLIF ( 92, - 11 * CAST( NULL AS DECIMAL ) + + ( + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) + 94
----
94

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - 61 / CAST ( + NULLIF ( 92, - 11 * CAST ( NULL AS REAL ) + + ( + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) + 94
----
94

query I rowsort
SELECT - 75 + 86 + - 35 * + + 77
----
-2684

query I rowsort
SELECT - + ( - - 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT + COUNT( * ) * SUM( ALL - + ( 87 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-9034
SELECT + COUNT ( * ) * SUM ( ALL - + ( 87 ) )
----
-87

query I rowsort
SELECT - 2 + 6 col0
----
4

query I rowsort
SELECT + 46 * 58 * - + 24
----
-64032

onlyif mysql # DIV for integer division: 
query II rowsort label-9037
SELECT - 29 DIV - + 68 AS col1, 64 AS col0
----
0
64

skipif mysql # not compatible
query II rowsort label-9037
SELECT - 29 / - + 68 AS col1, 64 AS col0
----
0
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9038
SELECT ALL - - 38 DIV - 72 * + 93 * + ( + 57 ) * 12 * + - COUNT( * ) + 89 + + COALESCE ( + CASE - 33 WHEN + + 0 * + COUNT( * ) THEN NULL WHEN COUNT( * ) + COUNT( * ) * 43 THEN NULL WHEN 51 THEN - 91 DIV 78 ELSE + 52 END, - 93 - - 24 ) + - 91 * 64 AS col1
----
-5683

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL - - 38 / - 72 * + 93 * + ( + 57 ) * 12 * + - COUNT ( * ) + 89 + + COALESCE ( + CASE - 33 WHEN + + 0 * + COUNT ( * ) THEN NULL WHEN COUNT ( * ) + COUNT ( * ) * 43 THEN NULL WHEN 51 THEN - 91 / 78 ELSE + 52 END, - 93 - - 24 ) + - 91 * 64 AS col1
----
-5683

query I rowsort
SELECT - + 40 * + 4 * - CASE + 8 WHEN - 65 THEN NULL WHEN - 36 THEN NULL ELSE + + 80 END
----
12800

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT ALL 11 DIV 55 + - ( 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL 11 / 55 + - ( 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT - - MAX( ALL - 36 ) * + COUNT( - 92 )
----
-36

skipif mysql # not compatible
query I rowsort label-9041
SELECT - - MAX ( ALL - 36 ) * + COUNT ( - 92 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT COUNT( DISTINCT + - 98 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9042
SELECT COUNT ( DISTINCT + - 98 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9043
SELECT ALL + 94 / COUNT( - 91 ) + + + CASE + + CASE + 46 WHEN 35 THEN 90 ELSE + + ( 33 ) * + 58 + + SUM( - 72 ) + + 10 - - 19 END WHEN - CASE - NULLIF ( MAX( ALL + 92 ), + CAST( - ( + NULLIF ( 83, 5 + 91 ) ) AS SIGNED ) ) WHEN + 75 * 90 + 81 THEN 51 END THEN 73 * 11 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL + 94 / COUNT ( - 91 ) + + + CASE + + CASE + 46 WHEN 35 THEN 90 ELSE + + ( 33 ) * + 58 + + SUM ( - 72 ) + + 10 - - 19 END WHEN - CASE - NULLIF ( MAX ( ALL + 92 ), + CAST ( - ( + NULLIF ( 83, 5 + 91 ) ) AS INTEGER ) ) WHEN + 75 * 90 + 81 THEN 51 END THEN 73 * 11 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT DISTINCT - COUNT( * ) * - 5
----
5

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT - COUNT ( * ) * - 5
----
5

query I rowsort
SELECT - 59 * - 76
----
4484

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL + SUM( ALL + - 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + SUM ( ALL + - 51 ) AS col0
----
-51

query I rowsort
SELECT DISTINCT - 36 * - 36
----
1296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT DISTINCT + CAST( - 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT + CAST ( - 87 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT - 23 * + ( + COUNT( * ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9049
SELECT - 23 * + ( + COUNT ( * ) ) AS col2
----
-23

query I rowsort
SELECT + ( ( 58 ) ) AS col1
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9051
SELECT ALL + 29 DIV - - ( + NULLIF ( + 51, + 11 + - - MIN( ALL 82 ) DIV - 52 * 42 + + 28 ) ) - - - 59 * 4 + - ( - 67 ) DIV - COUNT( * )
----
-303

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL + 29 / - - ( + NULLIF ( + 51, + 11 + - - MIN ( ALL 82 ) / - 52 * 42 + + 28 ) ) - - - 59 * 4 + - ( - 67 ) / - COUNT ( * )
----
-303

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT COUNT( ALL - - 5 ) * - 91 col1
----
-91

skipif mysql # not compatible
query I rowsort label-9052
SELECT COUNT ( ALL - - 5 ) * - 91 col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9053
SELECT ALL + CAST( NULL AS SIGNED ) * COALESCE ( + 67, - + ( + 74 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL + CAST ( NULL AS INTEGER ) * COALESCE ( + 67, - + ( + 74 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT 40 * + - COUNT( * ) * + 62, + 55 AS col2
----
-2480
55

skipif mysql # not compatible
query II rowsort label-9054
SELECT 40 * + - COUNT ( * ) * + 62, + 55 AS col2
----
-2480
55

query I rowsort
SELECT 64 * + 73 - + + ( 84 )
----
4588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9056
SELECT DISTINCT 86 DIV + ( + COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT 86 / + ( + COUNT ( * ) )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT 44 DIV - ( 85 ) + - 72
----
-72

skipif mysql # not compatible
query I rowsort label-9057
SELECT 44 / - ( 85 ) + - 72
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT DISTINCT + 23 DIV - 5 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT + 23 / - 5 AS col2
----
-4

query I rowsort
SELECT DISTINCT 76 * - + 35 + - - 18
----
-2642

query I rowsort
SELECT ALL - ( 15 ) col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT - + CAST( + - 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9061
SELECT - + CAST ( + - 46 AS INTEGER ) AS col2
----
46

query I rowsort
SELECT DISTINCT - 32 * 45 AS col2
----
-1440

query II rowsort
SELECT 42 AS col0, 5
----
42
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL + MIN( ( + 38 ) ) * + 53
----
2014

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL + MIN ( ( + 38 ) ) * + 53
----
2014

query I rowsort
SELECT - 16 + 69
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT 93 * COUNT( * ) * + + 0 + 67 + + 70 col0
----
137

skipif mysql # not compatible
query I rowsort label-9066
SELECT 93 * COUNT ( * ) * + + 0 + 67 + + 70 col0
----
137

query I rowsort
SELECT ( - 32 ) - + 68 AS col1
----
-100

query I rowsort
SELECT ALL + NULLIF ( - - 2, ( 31 ) ) AS col1
----
2

query I rowsort
SELECT ALL + 83 + 8 AS col1
----
91

query II rowsort
SELECT 28, 58 AS col0
----
28
58

query I rowsort
SELECT ALL 49 + - - 8 col2
----
57

query I rowsort
SELECT DISTINCT + 56 + - 44
----
12

query I rowsort
SELECT 35 - 32 * + - 3
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9074
SELECT ALL ( - 12 ) * - COUNT( ALL 78 ) DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL ( - 12 ) * - COUNT ( ALL 78 ) / - 55
----
0

query I rowsort
SELECT 44 + - - 48 * - 52
----
-2452

query I rowsort
SELECT ALL + 95 - + 68
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9077
SELECT 60 * + ( + 3 ) * + - CAST( + - COUNT( + 89 ) AS SIGNED ) * - COUNT( + 6 ) + + + 14, + CAST( - 14 AS SIGNED ) * + - ( - + 87 ) + 39 AS col0
----
-166
-1179

skipif mysql # not compatible
query II rowsort label-9077
SELECT 60 * + ( + 3 ) * + - CAST ( + - COUNT ( + 89 ) AS INTEGER ) * - COUNT ( + 6 ) + + + 14, + CAST ( - 14 AS INTEGER ) * + - ( - + 87 ) + 39 AS col0
----
-166
-1179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT 34 + + COUNT( * ) DIV - 86 * + NULLIF ( - - 51, + 35 * + + SUM( DISTINCT - 20 ) + 96 + + 23 )
----
34

skipif mysql # not compatible
query I rowsort label-9078
SELECT 34 + + COUNT ( * ) / - 86 * + NULLIF ( - - 51, + 35 * + + SUM ( DISTINCT - 20 ) + 96 + + 23 )
----
34

query I rowsort
SELECT DISTINCT - NULLIF ( + 53, + 44 ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL - MIN( - NULLIF ( - 84, - 9 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL - MIN ( - NULLIF ( - 84, - 9 ) )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT 69 + - COUNT( * ) * - - COUNT( + - 85 ) * 29 + COUNT( * ) * - ( COALESCE ( + 27, + 33, - ( - COUNT( * ) ) ) ) * 27 + + 36 AS col1
----
-653

skipif mysql # not compatible
query I rowsort label-9081
SELECT 69 + - COUNT ( * ) * - - COUNT ( + - 85 ) * 29 + COUNT ( * ) * - ( COALESCE ( + 27, + 33, - ( - COUNT ( * ) ) ) ) * 27 + + 36 AS col1
----
-653

query II rowsort
SELECT 79 + 18 AS col0, 22 AS col2
----
97
22

query I rowsort
SELECT 50 * 53 * 46
----
121900

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT MAX( 46 ) * - 64
----
-2944

skipif mysql # not compatible
query I rowsort label-9084
SELECT MAX ( 46 ) * - 64
----
-2944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9085
SELECT ALL + 87 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL + 87 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 87 * 60 + + - 36 + + 68 * - 54 - + - 44 AS col0
----
1556

query II rowsort
SELECT 69 * - 40, + 95 AS col1
----
-2760
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9088
SELECT + 57 + - COUNT( * ) - ( - - 31 ), COUNT( * ) col0
----
25
1

skipif mysql # not compatible
query II rowsort label-9088
SELECT + 57 + - COUNT ( * ) - ( - - 31 ), COUNT ( * ) col0
----
25
1

query I rowsort
SELECT ALL COALESCE ( 32, + 42 ) AS col0
----
32

query I rowsort
SELECT + 84 + - - 49 * + 80
----
4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9091
SELECT DISTINCT - COUNT( * ) + + COALESCE ( + + 26, COALESCE ( + CAST( NULL AS SIGNED ), + 3 + 40 ) )
----
25

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT - COUNT ( * ) + + COALESCE ( + + 26, COALESCE ( + CAST ( NULL AS INTEGER ), + 3 + 40 ) )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9092
SELECT - - NULLIF ( + 21, + COUNT( * ) - 82 + 60 / - - COALESCE ( - 78, - + CAST( 77 AS SIGNED ) * 89, + 7 ) * 78 + ( + 3 ) )
----
21

skipif mysql # not compatible
query I rowsort label-9092
SELECT - - NULLIF ( + 21, + COUNT ( * ) - 82 + 60 / - - COALESCE ( - 78, - + CAST ( 77 AS INTEGER ) * 89, + 7 ) * 78 + ( + 3 ) )
----
21

query I rowsort
SELECT 38 + - + 56 + - CASE + 2 WHEN - 29 THEN NULL WHEN ( + 32 ) THEN + 30 * + 89 + + 93 - + 43 END * 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL 81 * 60 * - + COUNT( * )
----
-4860

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL 81 * 60 * - + COUNT ( * )
----
-4860

query I rowsort
SELECT ALL - - 44 + + 16 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9096
SELECT ALL CAST( 87 AS SIGNED ) * - - MAX( DISTINCT - 12 ) * 60 * + 79
----
-4948560

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL CAST ( 87 AS INTEGER ) * - - MAX ( DISTINCT - 12 ) * 60 * + 79
----
-4948560

query I rowsort
SELECT ( + - 56 ) AS col2
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9098
SELECT DISTINCT - 27 * CAST( ( 57 ) AS SIGNED ) * COUNT( * ), 36 AS col1
----
-1539
36

skipif mysql # not compatible
query II rowsort label-9098
SELECT DISTINCT - 27 * CAST ( ( 57 ) AS INTEGER ) * COUNT ( * ), 36 AS col1
----
-1539
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9099
SELECT COALESCE ( ( - 50 ), + 31 + + 64, + ( + 57 ) * CAST( - 64 AS SIGNED ) * - - 51 ) + - - NULLIF ( - - 43, + + 73 )
----
-7

skipif mysql # not compatible
query I rowsort label-9099
SELECT COALESCE ( ( - 50 ), + 31 + + 64, + ( + 57 ) * CAST ( - 64 AS INTEGER ) * - - 51 ) + - - NULLIF ( - - 43, + + 73 )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9100
SELECT ( - CAST( - + 95 AS SIGNED ) ) + + + 54
----
149

skipif mysql # not compatible
query I rowsort label-9100
SELECT ( - CAST ( - + 95 AS INTEGER ) ) + + + 54
----
149

query I rowsort
SELECT ALL ( ( + - 28 ) ) * 36
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT + MAX( ( - 80 ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-9102
SELECT + MAX ( ( - 80 ) ) AS col0
----
-80

query I rowsort
SELECT CASE - 34 WHEN - 16 THEN - - 36 + + 92 END
----
NULL

query I rowsort
SELECT + 52 * + 87 AS col2
----
4524

query I rowsort
SELECT ALL - 64 * - 53 AS col1
----
3392

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9106
SELECT + 70 DIV + CAST( - 46 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9106
SELECT + 70 / + CAST ( - 46 AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT + MIN( DISTINCT + + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-9107
SELECT + MIN ( DISTINCT + + 85 )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9108
SELECT + COUNT( * ) * - + AVG ( DISTINCT 44 ) + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9108
SELECT + COUNT ( * ) * - + AVG ( DISTINCT 44 ) + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 11 AS col2, 55 * + 35
----
11
1925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9110
SELECT + 34 DIV + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9110
SELECT + 34 / + COUNT ( * )
----
34

query I rowsort
SELECT DISTINCT 74 * + NULLIF ( - 19, 59 ) AS col0
----
-1406

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT - 3 DIV - + 74
----
0

skipif mysql # not compatible
query I rowsort label-9112
SELECT - 3 / - + 74
----
0

query I rowsort
SELECT ALL 59 * - 13 + - 14 + + - 26 * - 50 + + 97
----
616

query II rowsort
SELECT - + 54 * + - ( 74 ) * - 56 - - 92 AS col2, 23 * + 93 AS col2
----
-223684
2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT ALL + + 57 * - + 90 + + 3 DIV + + COUNT( * ) AS col2
----
-5127

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + + 57 * - + 90 + + 3 / + + COUNT ( * ) AS col2
----
-5127

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT SUM( ALL 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9116
SELECT SUM ( ALL 70 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT - + NULLIF ( 66, + COUNT( * ) ) - + - 59 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9117
SELECT - + NULLIF ( 66, + COUNT ( * ) ) - + - 59 AS col2
----
-7

query I rowsort
SELECT DISTINCT - 41 + - - 3
----
-38

query I rowsort
SELECT ALL + 83 + 76
----
159

query I rowsort
SELECT DISTINCT NULLIF ( 15, - 77 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9121
SELECT DISTINCT - MIN( + 10 ) + + 99 DIV - + ( + 26 ) + + 51 col0
----
38

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT - MIN ( + 10 ) + + 99 / - + ( + 26 ) + + 51 col0
----
38

query I rowsort
SELECT - 26 + - 54
----
-80

query I rowsort
SELECT DISTINCT - 0 + + 92 AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT ALL + CAST( + 80 AS SIGNED ) - - 2
----
82

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + CAST ( + 80 AS INTEGER ) - - 2
----
82

query I rowsort
SELECT - + 61 * 46 + 75 + + 7 * 61 AS col2
----
-2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT ALL COALESCE ( - + 15, CAST( + 90 AS SIGNED ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL COALESCE ( - + 15, CAST ( + 90 AS INTEGER ) )
----
-15

query I rowsort
SELECT - - 92 + - + 25
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT CASE - COUNT( * ) WHEN COALESCE ( - 3, - - 27 ) THEN - COALESCE ( + ( + COUNT( * ) ), + ( + 17 ) * 49 + - 22 + + NULLIF ( - - 18, + - 2 ) * - 51 + COUNT( * ), 3 * 56 ) * 86 + + COUNT( * ) WHEN 2 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT CASE - COUNT ( * ) WHEN COALESCE ( - 3, - - 27 ) THEN - COALESCE ( + ( + COUNT ( * ) ), + ( + 17 ) * 49 + - 22 + + NULLIF ( - - 18, + - 2 ) * - 51 + COUNT ( * ), 3 * 56 ) * 86 + + COUNT ( * ) WHEN 2 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9129
SELECT - + ( + - CAST( + + COUNT( * ) AS SIGNED ) ) * - 87
----
-87

skipif mysql # not compatible
query I rowsort label-9129
SELECT - + ( + - CAST ( + + COUNT ( * ) AS INTEGER ) ) * - 87
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT - + 17 + - 71 + - 44 DIV - 10 + - 24 * 22
----
-612

skipif mysql # not compatible
query I rowsort label-9130
SELECT - + 17 + - 71 + - 44 / - 10 + - 24 * 22
----
-612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT - 24 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT - 24 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 24 + + 44 col1
----
20

query I rowsort
SELECT - 83 * + ( - 6 )
----
498

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL COALESCE ( COALESCE ( - + 51, - + COUNT( * ) ), - 49 )
----
-51

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL COALESCE ( COALESCE ( - + 51, - + COUNT ( * ) ), - 49 )
----
-51

query I rowsort
SELECT DISTINCT CASE 69 WHEN 5 THEN NULL WHEN - - 26 THEN 92 - 2 * 82 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL 70 * + SUM( + - 25 )
----
-1750

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL 70 * + SUM ( + - 25 )
----
-1750

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT - SUM( NULLIF ( 6, ( - 35 ) * - 68 + - 34 ) ) + - 81
----
-87

skipif mysql # not compatible
query I rowsort label-9137
SELECT - SUM ( NULLIF ( 6, ( - 35 ) * - 68 + - 34 ) ) + - 81
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9138
SELECT + 52 + + 51 - + 42 + - 99 * - CAST( COUNT( 42 ) AS SIGNED ) * - - 23 AS col0
----
2338

skipif mysql # not compatible
query I rowsort label-9138
SELECT + 52 + + 51 - + 42 + - 99 * - CAST ( COUNT ( 42 ) AS INTEGER ) * - - 23 AS col0
----
2338

onlyif mysql # DIV for integer division: 
query I rowsort label-9139
SELECT - COALESCE ( + - 88, - 50 DIV 20 * + 61 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-9139
SELECT - COALESCE ( + - 88, - 50 / 20 * + 61 ) AS col2
----
88

query I rowsort
SELECT 68 * + - 55 + + + 12 + - 98 * + 9
----
-4610

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT + 46 - + MAX( DISTINCT + 53 )
----
-7

skipif mysql # not compatible
query I rowsort label-9141
SELECT + 46 - + MAX ( DISTINCT + 53 )
----
-7

query I rowsort
SELECT - 58 * - - 60 * 35
----
-121800

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT + MIN( 20 )
----
20

skipif mysql # not compatible
query I rowsort label-9143
SELECT + MIN ( 20 )
----
20

query I rowsort
SELECT + 0 * 44 + - 5
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9145
SELECT + MIN( 93 ) AS col1, - 36
----
93
-36

skipif mysql # not compatible
query II rowsort label-9145
SELECT + MIN ( 93 ) AS col1, - 36
----
93
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9146
SELECT 33 DIV - COALESCE ( + 92, - NULLIF ( ( - ( + 33 ) ), + + 44 + - 6 * + - 82 - - + SUM( ALL - 57 ) ), - 17 * - 36 ) * - COUNT( * ) + + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-9146
SELECT 33 / - COALESCE ( + 92, - NULLIF ( ( - ( + 33 ) ), + + 44 + - 6 * + - 82 - - + SUM ( ALL - 57 ) ), - 17 * - 36 ) * - COUNT ( * ) + + - 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9147
SELECT DISTINCT + 43 DIV 64 DIV 56 + - 79 AS col1, COUNT( * ) * COUNT( * )
----
-79
1

skipif mysql # not compatible
query II rowsort label-9147
SELECT DISTINCT + 43 / 64 / 56 + - 79 AS col1, COUNT ( * ) * COUNT ( * )
----
-79
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9148
SELECT ( + 65 ), + 97 DIV 32 AS col2
----
65
3

skipif mysql # not compatible
query II rowsort label-9148
SELECT ( + 65 ), + 97 / 32 AS col2
----
65
3

query I rowsort
SELECT NULLIF ( - - 60, - 37 ) * 32 * - 22 + + 86 + 85
----
-42069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9150
SELECT ALL CASE + - 71 WHEN + 7 THEN - 57 ELSE NULL END / - - 50 / + CASE + + COUNT( * ) WHEN - 31 THEN 83 + ( - + ( 3 ) ) / + 24 * - 24 END + + + 54 * + CASE + CAST( NULL AS SIGNED ) WHEN - CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT 65 <> ( 28 ) THEN 84 ELSE 94 - 51 END * + CASE 88 + 81 WHEN COUNT( * ) THEN NULL WHEN - 72 * 87 THEN - COUNT( * ) + COUNT( * ) * CASE + 74 WHEN + 73 * 12 THEN NULL WHEN - 0 * - 65 THEN 17 END ELSE - 81 END THEN NULL ELSE - 58 / + CASE - 37 * 5 WHEN 65 THEN - MAX( 97 ) * - 70 WHEN 79 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL CASE + - 71 WHEN + 7 THEN - 57 ELSE NULL END / - - 50 / + CASE + + COUNT ( * ) WHEN - 31 THEN 83 + ( - + ( 3 ) ) / + 24 * - 24 END + + + 54 * + CASE + CAST ( NULL AS INTEGER ) WHEN - CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT 65 <> ( 28 ) THEN 84 ELSE 94 - 51 END * + CASE 88 + 81 WHEN COUNT ( * ) THEN NULL WHEN - 72 * 87 THEN - COUNT ( * ) + COUNT ( * ) * CASE + 74 WHEN + 73 * 12 THEN NULL WHEN - 0 * - 65 THEN 17 END ELSE - 81 END THEN NULL ELSE - 58 / + CASE - 37 * 5 WHEN 65 THEN - MAX ( 97 ) * - 70 WHEN 79 THEN NULL END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT + - 34 + CASE - ( COUNT( * ) ) WHEN - 26 THEN - + 41 WHEN NULLIF ( + 43, + - CASE + 20 WHEN - 46 THEN - 39 ELSE NULL END * - 7 ) + + 60 * + 78 THEN - 13 END + + 16 / NULLIF ( SUM( ALL + ( 58 ) ), + COALESCE ( + 44, CASE + 26 WHEN 42 / + SUM( DISTINCT 19 ) + 50 * + 41 THEN + COUNT( * ) / - 9 ELSE NULL END, - 72 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT + - 34 + CASE - ( COUNT ( * ) ) WHEN - 26 THEN - + 41 WHEN NULLIF ( + 43, + - CASE + 20 WHEN - 46 THEN - 39 ELSE NULL END * - 7 ) + + 60 * + 78 THEN - 13 END + + 16 / NULLIF ( SUM ( ALL + ( 58 ) ), + COALESCE ( + 44, CASE + 26 WHEN 42 / + SUM ( DISTINCT 19 ) + 50 * + 41 THEN + COUNT ( * ) / - 9 ELSE NULL END, - 72 ) ) AS col1
----
NULL

query II rowsort
SELECT - 72 AS col1, 75 AS col0
----
-72
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9153
SELECT - CAST( NULL AS SIGNED ) / - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT - CAST ( NULL AS INTEGER ) / - 26
----
NULL

query I rowsort
SELECT DISTINCT 44 * - - 72 + + + 56 * + 98 * + 61
----
337936

query II rowsort
SELECT + 22 AS col2, + 83 * - - 71 AS col2
----
22
5893

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9156
SELECT + + 82 + - COUNT( * ) * + 49 + CAST( NULL AS DECIMAL ) - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT + + 82 + - COUNT ( * ) * + 49 + CAST ( NULL AS REAL ) - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT + - NULLIF ( 84, + - 73 ) - + COUNT( DISTINCT - 13 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-9157
SELECT + - NULLIF ( 84, + - 73 ) - + COUNT ( DISTINCT - 13 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ALL MIN( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL MIN ( + 51 )
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-9159
SELECT 91, 92 DIV - 58 AS col1
----
91
-1

skipif mysql # not compatible
query II rowsort label-9159
SELECT 91, 92 / - 58 AS col1
----
91
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9160
SELECT 16, + CAST( - 0 AS SIGNED ) AS col0
----
16
0

skipif mysql # not compatible
query II rowsort label-9160
SELECT 16, + CAST ( - 0 AS INTEGER ) AS col0
----
16
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9161
SELECT - + COUNT( DISTINCT + 15 ) * + 11 + 17 AS col1, - 91 AS col2
----
6
-91

skipif mysql # not compatible
query II rowsort label-9161
SELECT - + COUNT ( DISTINCT + 15 ) * + 11 + 17 AS col1, - 91 AS col2
----
6
-91

query II rowsort
SELECT 53 AS col0, 52 AS col0
----
53
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9163
SELECT + CAST( NULL AS SIGNED ) * MIN( ALL + + 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT + CAST ( NULL AS INTEGER ) * MIN ( ALL + + 13 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT COUNT( * ) + + + 33 * - - 6 AS col0
----
199

skipif mysql # not compatible
query I rowsort label-9164
SELECT COUNT ( * ) + + + 33 * - - 6 AS col0
----
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9165
SELECT ALL - 26 AS col0, 98 DIV + ( + - COUNT( * ) )
----
-26
-98

skipif mysql # not compatible
query II rowsort label-9165
SELECT ALL - 26 AS col0, 98 / + ( + - COUNT ( * ) )
----
-26
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-9166
SELECT - 63 AS col2, - 82 - COUNT( + 70 ) + CASE - 79 WHEN + 85 * - MIN( ALL - - 8 ) THEN 70 + 24 * - ( - MIN( - 55 ) ) * 21 END * + + 17 * 51 col0
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-9166
SELECT - 63 AS col2, - 82 - COUNT ( + 70 ) + CASE - 79 WHEN + 85 * - MIN ( ALL - - 8 ) THEN 70 + 24 * - ( - MIN ( - 55 ) ) * 21 END * + + 17 * 51 col0
----
-63
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9167
SELECT 50 DIV - + COUNT( * ) AS col0, + 65
----
-50
65

skipif mysql # not compatible
query II rowsort label-9167
SELECT 50 / - + COUNT ( * ) AS col0, + 65
----
-50
65

query I rowsort
SELECT DISTINCT - 91 * - 8 AS col1
----
728

query I rowsort
SELECT 34 * 83 * 14 AS col2
----
39508

query I rowsort
SELECT 69 + 50
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9171
SELECT ALL + 28 DIV + 95 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL + 28 / + 95 * - + COUNT ( * )
----
0

query I rowsort
SELECT ALL - 74 + 16 AS col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT ALL - 1 + - 4 + + 94 DIV - 73 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL - 1 + - 4 + + 94 / - 73 AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9174
SELECT 78 DIV + 23, - ( 80 ) DIV - 9 AS col0, - COUNT( * ) col1
----
3
8
-1

skipif mysql # not compatible
query III rowsort label-9174
SELECT 78 / + 23, - ( 80 ) / - 9 AS col0, - COUNT ( * ) col1
----
3
8
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT ALL + 29 * CAST( ( - + 74 ) AS SIGNED ) AS col1
----
-2146

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL + 29 * CAST ( ( - + 74 ) AS INTEGER ) AS col1
----
-2146

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT COUNT( * ) * 39 + + NULLIF ( + 51, + + 36 ) + + 22 - ( 17 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9176
SELECT COUNT ( * ) * 39 + + NULLIF ( + 51, + + 36 ) + + 22 - ( 17 ) AS col2
----
95

query I rowsort
SELECT DISTINCT - 55 + 99
----
44

query I rowsort
SELECT ALL - ( - - 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT DISTINCT 42 - NULLIF ( + SUM( - 41 ), + 72 + - + ( 5 ) ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT 42 - NULLIF ( + SUM ( - 41 ), + 72 + - + ( 5 ) ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL - CASE + 14 WHEN + + COUNT( * ) + 85 THEN 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL - CASE + 14 WHEN + + COUNT ( * ) + 85 THEN 51 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9181
SELECT ALL - - ( COUNT( * ) ) AS col1, 14 + - ( - - 66 ) + + + 74 AS col2
----
1
22

skipif mysql # not compatible
query II rowsort label-9181
SELECT ALL - - ( COUNT ( * ) ) AS col1, 14 + - ( - - 66 ) + + + 74 AS col2
----
1
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT 82 * 44 * + + 12 + + 13 + + ( - + COUNT( - 67 ) ) * 48
----
43261

skipif mysql # not compatible
query I rowsort label-9182
SELECT 82 * 44 * + + 12 + + 13 + + ( - + COUNT ( - 67 ) ) * 48
----
43261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9183
SELECT DISTINCT + 39 - 84, - CASE + - 64 WHEN - + COALESCE ( + + 14, - CASE - 33 WHEN + 30 * + 19 THEN NULL ELSE - NULLIF ( CAST( NULL AS SIGNED ), - 28 ) * + + AVG ( + 99 ) * - 51 END, - 84, SUM( ALL - 24 ) ) * 57 THEN - 8 WHEN 54 THEN NULL END - - 49 AS col1
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-9183
SELECT DISTINCT + 39 - 84, - CASE + - 64 WHEN - + COALESCE ( + + 14, - CASE - 33 WHEN + 30 * + 19 THEN NULL ELSE - NULLIF ( CAST ( NULL AS INTEGER ), - 28 ) * + + AVG ( + 99 ) * - 51 END, - 84, SUM ( ALL - 24 ) ) * 57 THEN - 8 WHEN 54 THEN NULL END - - 49 AS col1
----
-45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT 62 * - 43 + - COUNT( * )
----
-2667

skipif mysql # not compatible
query I rowsort label-9184
SELECT 62 * - 43 + - COUNT ( * )
----
-2667

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9185
SELECT ALL 89 * COUNT( * ) DIV - 21, 58 * ( - 95 ) AS col1
----
-4
-5510

skipif mysql # not compatible
query II rowsort label-9185
SELECT ALL 89 * COUNT ( * ) / - 21, 58 * ( - 95 ) AS col1
----
-4
-5510

onlyif mysql # DIV for integer division: 
query II rowsort label-9186
SELECT ALL + 32 DIV ( + 42 ), 64 col1
----
0
64

skipif mysql # not compatible
query II rowsort label-9186
SELECT ALL + 32 / ( + 42 ), 64 col1
----
0
64

query II rowsort
SELECT ALL 30, - 43 - + 45 AS col0
----
30
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT MIN( + ( 2 ) ) * + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9188
SELECT MIN ( + ( 2 ) ) * + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT 24 + 16 + - 55 * + MAX( ALL - - 78 ) AS col2
----
-4250

skipif mysql # not compatible
query I rowsort label-9189
SELECT 24 + 16 + - 55 * + MAX ( ALL - - 78 ) AS col2
----
-4250

query I rowsort
SELECT 60 - - 91 + - 38 + - 21
----
92

query I rowsort
SELECT 79 * + 64
----
5056

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9192
SELECT 90 col2, + CAST( + 43 AS SIGNED ) * - 11 AS col1
----
90
-473

skipif mysql # not compatible
query II rowsort label-9192
SELECT 90 col2, + CAST ( + 43 AS INTEGER ) * - 11 AS col1
----
90
-473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9193
SELECT ALL + 42 + 4 * - + 97 + + 98 - COUNT( * ) - 68 - - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL + 42 + 4 * - + 97 + + 98 - COUNT ( * ) - 68 - - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9194
SELECT DISTINCT - 87 + - - 1 - - COUNT( + - 97 ) / + CAST( + 89 AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT - 87 + - - 1 - - COUNT ( + - 97 ) / + CAST ( + 89 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL - MAX( DISTINCT ( - + 38 ) ) + - COALESCE ( - 20, - COUNT( * ) + + 5 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL - MAX ( DISTINCT ( - + 38 ) ) + - COALESCE ( - 20, - COUNT ( * ) + + 5 ) col0
----
58

query II rowsort
SELECT DISTINCT 12, 61 AS col2
----
12
61

query I rowsort
SELECT ALL + 42 + - + 73 AS col2
----
-31

query I rowsort
SELECT DISTINCT 91 * - + 87 + 79 + - 85 + + 73 AS col2
----
-7850

onlyif mysql # aggregate syntax: 
query II rowsort label-9199
SELECT COUNT( * ), + 55 * 67 - + - 99 + COUNT( ALL - + 45 ) AS col0
----
1
3785

skipif mysql # not compatible
query II rowsort label-9199
SELECT COUNT ( * ), + 55 * 67 - + - 99 + COUNT ( ALL - + 45 ) AS col0
----
1
3785

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9200
SELECT 84 * - CASE - 2 WHEN + - 64 + 26 + + 12 * + CASE + 25 WHEN MIN( ALL - 65 ) + CAST( + 78 AS DECIMAL ) + 40 * + - COALESCE ( - + COALESCE ( - 43, 6 * 86 + 37 ), 62, COALESCE ( 31, + 66 * 13 - 38 ) ) / 44 THEN 58 + - 95 END * 91 THEN + 18 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT 84 * - CASE - 2 WHEN + - 64 + 26 + + 12 * + CASE + 25 WHEN MIN ( ALL - 65 ) + CAST ( + 78 AS REAL ) + 40 * + - COALESCE ( - + COALESCE ( - 43, 6 * 86 + 37 ), 62, COALESCE ( 31, + 66 * 13 - 38 ) ) / 44 THEN 58 + - 95 END * 91 THEN + 18 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL + 62 * + COUNT( 12 ) * - 22 - 98
----
-1462

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + 62 * + COUNT ( 12 ) * - 22 - 98
----
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL - 85 * - COALESCE ( + SUM( ALL - 10 ), - 84, + 37 + + 15 ) - 0 AS col0
----
-850

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL - 85 * - COALESCE ( + SUM ( ALL - 10 ), - 84, + 37 + + 15 ) - 0 AS col0
----
-850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT + CAST( NULL AS SIGNED ) * - 76 + - 24 / + + COUNT( * ) + + 50 / + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT + CAST ( NULL AS INTEGER ) * - 76 + - 24 / + + COUNT ( * ) + + 50 / + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL 31 * - 12 * + MIN( DISTINCT + - 89 ) * 88 * 54
----
157329216

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL 31 * - 12 * + MIN ( DISTINCT + - 89 ) * 88 * 54
----
157329216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT DISTINCT - 12 * + - NULLIF ( - + 52, + CAST( NULL AS SIGNED ) )
----
-624

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT - 12 * + - NULLIF ( - + 52, + CAST ( NULL AS INTEGER ) )
----
-624

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT 7 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-9206
SELECT 7 / - 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9207
SELECT 51 DIV 22 * - 87 AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-9207
SELECT 51 / 22 * - 87 AS col0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT ( + COUNT( * ) ) + + 85 + - 6 + 24
----
104

skipif mysql # not compatible
query I rowsort label-9208
SELECT ( + COUNT ( * ) ) + + 85 + - 6 + 24
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT 97 + - ( - COUNT( * ) ) + - 36 + + COUNT( * ) + + 59 * + 42 AS col0
----
2541

skipif mysql # not compatible
query I rowsort label-9209
SELECT 97 + - ( - COUNT ( * ) ) + - 36 + + COUNT ( * ) + + 59 * + 42 AS col0
----
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL + COUNT( * ) * - 93 + + CASE + 89 WHEN - 15 - - 36 THEN 10 END / - SUM( ALL - 62 ) + + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL + COUNT ( * ) * - 93 + + CASE + 89 WHEN - 15 - - 36 THEN 10 END / - SUM ( ALL - 62 ) + + 53 AS col0
----
NULL

query I rowsort
SELECT + + 41 + + + 61 col2
----
102

query I rowsort
SELECT - ( - - 13 ) AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9213
SELECT DISTINCT + CASE + 1 WHEN + + 8 * + CASE 5 WHEN - 37 THEN + COUNT( * ) * - 91 ELSE NULL END * CAST( NULL AS DECIMAL ) / - 37 * - - 50 THEN + - CASE + 70 WHEN - + 29 THEN NULL ELSE + 86 END + - - 67 WHEN + + 79 THEN NULL END * ( 91 ) + 53 * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT + CASE + 1 WHEN + + 8 * + CASE 5 WHEN - 37 THEN + COUNT ( * ) * - 91 ELSE NULL END * CAST ( NULL AS REAL ) / - 37 * - - 50 THEN + - CASE + 70 WHEN - + 29 THEN NULL ELSE + 86 END + - - 67 WHEN + + 79 THEN NULL END * ( 91 ) + 53 * - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL + - COUNT( * ) * - - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + - COUNT ( * ) * - - COUNT ( * ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL COUNT( + 32 ) * - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL COUNT ( + 32 ) * - - COUNT ( * ) col0
----
1

query I rowsort
SELECT + 30 * - 26 AS col1
----
-780

onlyif mysql # aggregate syntax: 
query II rowsort label-9217
SELECT ALL COUNT( * ) + - - 1 + + 0 AS col1, COUNT( * ) + 99 - + - 30
----
2
130

skipif mysql # not compatible
query II rowsort label-9217
SELECT ALL COUNT ( * ) + - - 1 + + 0 AS col1, COUNT ( * ) + 99 - + - 30
----
2
130

query I rowsort
SELECT + - 72 + - + 88 AS col2
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT + 47 + + 58 + - 50 + + - COALESCE ( - 81, + - 69, - MIN( - + 84 ) ) AS col0
----
136

skipif mysql # not compatible
query I rowsort label-9219
SELECT + 47 + + 58 + - 50 + + - COALESCE ( - 81, + - 69, - MIN ( - + 84 ) ) AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL 53 + - + COUNT( DISTINCT 9 )
----
52

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL 53 + - + COUNT ( DISTINCT 9 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL 12 * COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL 12 * COUNT ( * ) AS col2
----
12

query I rowsort
SELECT + ( - 18 ) + 88 col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9223
SELECT DISTINCT 46 * COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT 46 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 5 + - + 39
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL COUNT( * ) + + - ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL COUNT ( * ) + + - ( COUNT ( * ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT + ( - 86 ) DIV 36 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9226
SELECT + ( - 86 ) / 36 AS col0
----
-2

query II rowsort
SELECT ALL 52 * - - 71 AS col2, - 17
----
3692
-17

query I rowsort
SELECT DISTINCT 11 * 24
----
264

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9229
SELECT DISTINCT - 83 DIV + CAST( - + 56 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT - 83 / + CAST ( - + 56 AS INTEGER )
----
1

query II rowsort
SELECT - COALESCE ( - 6, + 27, 48 ), 18 AS col2
----
6
18

query I rowsort
SELECT + 51 / + + CASE + 63 WHEN + 11 THEN + 97 - - - 55 ELSE NULL END
----
NULL

query I rowsort
SELECT + 57 * - 63
----
-3591

query II rowsort
SELECT - 33 * + - 91 AS col1, - 81
----
3003
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9234
SELECT ALL 39 + - CASE CAST( + 2 AS SIGNED ) WHEN 61 THEN - 62 ELSE 41 END + - 17 + + + COUNT( * ) * + - COUNT( * ) * + 65 * 42 * - COUNT( * ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT ALL 39 + - CASE CAST ( + 2 AS INTEGER ) WHEN 61 THEN - 62 ELSE 41 END + - 17 + + + COUNT ( * ) * + - COUNT ( * ) * + 65 * 42 * - COUNT ( * ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL + COALESCE ( - - 16, - 90 + + 56 + + - 66 + 61 * 71 ) * SUM( ALL - 30 )
----
-480

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL + COALESCE ( - - 16, - 90 + + 56 + + - 66 + 61 * 71 ) * SUM ( ALL - 30 )
----
-480

query I rowsort
SELECT + ( 52 ) * 69 + 10
----
3598

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT 25 DIV + - 30 + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-9237
SELECT 25 / + - 30 + - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT MAX( - 14 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9238
SELECT MAX ( - 14 ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT + - NULLIF ( + 52, COUNT( * ) / - 50 + ( + - 28 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-9239
SELECT + - NULLIF ( + 52, COUNT ( * ) / - 50 + ( + - 28 ) )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9240
SELECT - - 23 * - + 25 + CAST( NULL AS SIGNED ) - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT - - 23 * - + 25 + CAST ( NULL AS INTEGER ) - 89
----
NULL

query II rowsort
SELECT - + 58 * + 6 + + 17 + 41, + 19 AS col2
----
-290
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9242
SELECT ALL + + 28 * - 55 + CAST( NULL AS SIGNED ) + + 49 * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + + 28 * - 55 + CAST ( NULL AS INTEGER ) + + 49 * + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT + COALESCE ( - + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) + + - 23 / + ( 69 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT + COALESCE ( - + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) + + - 23 / + ( 69 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9244
SELECT - + COUNT( * ) * + - 23 AS col0, - 95 * + MAX( ALL - - 19 ) - + - COUNT( * ) AS col1
----
23
-1804

skipif mysql # not compatible
query II rowsort label-9244
SELECT - + COUNT ( * ) * + - 23 AS col0, - 95 * + MAX ( ALL - - 19 ) - + - COUNT ( * ) AS col1
----
23
-1804

query I rowsort
SELECT - + 29 * - 30 + 43
----
913

query I rowsort
SELECT - 37 * ( 99 )
----
-3663

query I rowsort
SELECT 68 * 22 - + - 43 AS col1
----
1539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9248
SELECT DISTINCT SUM( - 34 ) * - 16 * + + ( - - 17 ) + 16 + + 64 DIV 11 + 60 * ( + + 43 )
----
11849

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT SUM ( - 34 ) * - 16 * + + ( - - 17 ) + 16 + + 64 / 11 + 60 * ( + + 43 )
----
11849

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL - SUM( DISTINCT - 44 ) * + ( + - MIN( 93 ) ) + 36 + - 37
----
-4093

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - SUM ( DISTINCT - 44 ) * + ( + - MIN ( 93 ) ) + 36 + - 37
----
-4093

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT DISTINCT + 60 * + CASE 83 WHEN - COUNT( * ) THEN NULL WHEN + 51 THEN NULL ELSE 96 END AS col1
----
5760

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT + 60 * + CASE 83 WHEN - COUNT ( * ) THEN NULL WHEN + 51 THEN NULL ELSE 96 END AS col1
----
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL ( + + 79 ) * 58 + + + 73 + + ( - COUNT( * ) )
----
4654

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL ( + + 79 ) * 58 + + + 73 + + ( - COUNT ( * ) )
----
4654

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9252
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - 49
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-9252
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - 49
----
NULL
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ALL + 42 + - MAX( ALL - 55 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL + 42 + - MAX ( ALL - 55 ) AS col1
----
97

query I rowsort
SELECT DISTINCT - 88 + - 65
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT MIN( ALL 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9255
SELECT MIN ( ALL 64 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9256
SELECT + 34 DIV - COALESCE ( 70, 54, 74 * 35 ) col1, COUNT( * ) col1
----
0
1

skipif mysql # not compatible
query II rowsort label-9256
SELECT + 34 / - COALESCE ( 70, 54, 74 * 35 ) col1, COUNT ( * ) col1
----
0
1

query I rowsort
SELECT - 45 * - 81
----
3645

query I rowsort
SELECT - NULLIF ( 44, ( - - 61 ) * + - 73 ) + ( - - 9 ) AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9259
SELECT - CAST( + 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-9259
SELECT - CAST ( + 19 AS INTEGER )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9260
SELECT ALL 92 * - - CAST( 94 AS SIGNED ) * 77 AS col2
----
665896

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL 92 * - - CAST ( 94 AS INTEGER ) * 77 AS col2
----
665896

query I rowsort
SELECT + 98 + - 91
----
7

query I rowsort
SELECT ALL - 7 * - - 91 AS col2
----
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT DISTINCT - 98 * - - CASE + - 62 WHEN + COUNT( * ) + + + 42 * - - 86 THEN 48 END * + SUM( DISTINCT - - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT - 98 * - - CASE + - 62 WHEN + COUNT ( * ) + + + 42 * - - 86 THEN 48 END * + SUM ( DISTINCT - - 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT ALL SUM( ALL 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL SUM ( ALL 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT DISTINCT MAX( DISTINCT + COALESCE ( + 37, 34 ) ) * + 7 * 60 AS col0
----
15540

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT MAX ( DISTINCT + COALESCE ( + 37, 34 ) ) * + 7 * 60 AS col0
----
15540

query I rowsort
SELECT ALL - 34 * - 59 AS col1
----
2006

query I rowsort
SELECT DISTINCT 35 * + 92 AS col2
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT - ( + CASE 93 WHEN + ( - - COUNT( * ) ) THEN NULL ELSE + + 71 END ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9268
SELECT - ( + CASE 93 WHEN + ( - - COUNT ( * ) ) THEN NULL ELSE + + 71 END ) AS col2
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT + + CAST( NULL AS SIGNED ) + + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT + + CAST ( NULL AS INTEGER ) + + + 40
----
NULL

query I rowsort
SELECT + - 79 * + 49
----
-3871

query I rowsort
SELECT + 96 + + 27 * + - ( 91 )
----
-2361

query I rowsort
SELECT + + ( 30 ) AS col1
----
30

query I rowsort
SELECT - - ( - 53 ) * + + 55 + - 43 + - - 67 + + 57 + - - 50 + 17
----
-2767

query II rowsort
SELECT ( - - ( - 20 ) ) col1, + NULLIF ( - 34, + 50 )
----
-20
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT ALL - MAX( + 47 ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL - MAX ( + 47 ) col1
----
-47

query I rowsort
SELECT DISTINCT - - ( 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT DISTINCT + MAX( DISTINCT 51 ) + + 83
----
134

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT + MAX ( DISTINCT 51 ) + + 83
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL - 27 * + 26 * - 4 + + - MIN( DISTINCT 63 ) + 58 AS col2
----
2803

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL - 27 * + 26 * - 4 + + - MIN ( DISTINCT 63 ) + 58 AS col2
----
2803

onlyif mysql # aggregate syntax: 
query II rowsort label-9279
SELECT COUNT( - 28 ) * + 54 AS col1, 38 AS col0
----
54
38

skipif mysql # not compatible
query II rowsort label-9279
SELECT COUNT ( - 28 ) * + 54 AS col1, 38 AS col0
----
54
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9280
SELECT ALL + SUM( + + 90 ) + - NULLIF ( - + 51, + 22 + - CAST( NULL AS SIGNED ) + - 9 * + - 6 ) - + CASE + 25 WHEN + COALESCE ( ( + CAST( NULL AS SIGNED ) ), - 35 * + 58, - CAST( NULL AS DECIMAL ) ) THEN NULL WHEN + + 56 * + 55 + + 40 * 89 THEN + COUNT( * ) ELSE - 1 + + ( + 79 + 75 ) END AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL + SUM ( + + 90 ) + - NULLIF ( - + 51, + 22 + - CAST ( NULL AS INTEGER ) + - 9 * + - 6 ) - + CASE + 25 WHEN + COALESCE ( ( + CAST ( NULL AS INTEGER ) ), - 35 * + 58, - CAST ( NULL AS REAL ) ) THEN NULL WHEN + + 56 * + 55 + + 40 * 89 THEN + COUNT ( * ) ELSE - 1 + + ( + 79 + 75 ) END AS col1
----
-12

query I rowsort
SELECT ALL 82 * + - 55 AS col1
----
-4510

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT 70 + - COUNT( * ) + - - 10 + + 52
----
131

skipif mysql # not compatible
query I rowsort label-9282
SELECT 70 + - COUNT ( * ) + - - 10 + + 52
----
131

query I rowsort
SELECT - 22 * - + 13
----
286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT ALL + 75 + COALESCE ( + - 97, + + 78 * + COUNT( * ) - + COUNT( * ) + + 71, - 92 * - COUNT( * ) + 80 * COUNT( * ) * + 46 ) * + + 52 * + - 66 * + + 11 * - CAST( - 17 AS SIGNED )
----
62253123

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL + 75 + COALESCE ( + - 97, + + 78 * + COUNT ( * ) - + COUNT ( * ) + + 71, - 92 * - COUNT ( * ) + 80 * COUNT ( * ) * + 46 ) * + + 52 * + - 66 * + + 11 * - CAST ( - 17 AS INTEGER )
----
62253123

query II rowsort
SELECT + 27 col0, - 93 * + 92 - + 2
----
27
-8558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9286
SELECT DISTINCT - 1 DIV - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT - 1 / - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 94 + - - 27 * - 70
----
-1796

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL - 83 * + ( + + MIN( ALL 56 ) ) * - - 87
----
-404376

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL - 83 * + ( + + MIN ( ALL 56 ) ) * - - 87
----
-404376

query I rowsort
SELECT 79 + + 12 AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9290
SELECT ALL - 10 DIV - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - 10 / - 42 AS col0
----
0

query I rowsort
SELECT DISTINCT + 56 - 73 - 40
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT MIN( ALL 61 ) + 7 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9292
SELECT MIN ( ALL 61 ) + 7 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL - 11 * + COUNT( * ) * - 33 col2
----
363

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL - 11 * + COUNT ( * ) * - 33 col2
----
363

query I rowsort
SELECT 84 * ( 62 )
----
5208

query II rowsort
SELECT ALL 60, 43 AS col2
----
60
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT - 62 AS col2, - 82 - 37 - + 50 * 28 * - COUNT( * ) + + 50
----
-62
1331

skipif mysql # not compatible
query II rowsort label-9296
SELECT - 62 AS col2, - 82 - 37 - + 50 * 28 * - COUNT ( * ) + + 50
----
-62
1331

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL - COUNT( * ) * - 15 * - ( + COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL - COUNT ( * ) * - 15 * - ( + COUNT ( * ) )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9298
SELECT 43 AS col2, - COUNT( * ) * - CAST( + + 30 AS SIGNED ) AS col1
----
43
30

skipif mysql # not compatible
query II rowsort label-9298
SELECT 43 AS col2, - COUNT ( * ) * - CAST ( + + 30 AS INTEGER ) AS col1
----
43
30

query II rowsort
SELECT ALL 72, 3 col2
----
72
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9300
SELECT DISTINCT 23 AS col1, + 60 * + 41 * COUNT( * )
----
23
2460

skipif mysql # not compatible
query II rowsort label-9300
SELECT DISTINCT 23 AS col1, + 60 * + 41 * COUNT ( * )
----
23
2460

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9301
SELECT 22, - CAST( NULL AS SIGNED ) * 33 * - CAST( + + 79 AS DECIMAL ) AS col0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-9301
SELECT 22, - CAST ( NULL AS INTEGER ) * 33 * - CAST ( + + 79 AS REAL ) AS col0
----
22
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9302
SELECT ALL + 0, ( COUNT( * ) ) + + 98 + + 34 + + - COUNT( * ) DIV + - 99 + + ( + + 41 ) AS col1
----
0
174

skipif mysql # not compatible
query II rowsort label-9302
SELECT ALL + 0, ( COUNT ( * ) ) + + 98 + + 34 + + - COUNT ( * ) / + - 99 + + ( + + 41 ) AS col1
----
0
174

query I rowsort
SELECT - 94 * 96 AS col1
----
-9024

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT ALL - + 98 DIV 37
----
-2

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL - + 98 / 37
----
-2

query I rowsort
SELECT ALL + + 36 + - 27
----
9

query I rowsort
SELECT 82 - 99 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL + COUNT( + ( - + ( - + 12 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL + COUNT ( + ( - + ( - + 12 ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT DISTINCT + + 86 + + COUNT( ALL 7 )
----
87

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT + + 86 + + COUNT ( ALL 7 )
----
87

query I rowsort
SELECT ALL - + 23 + + 89 + 81 AS col2
----
147

query II rowsort
SELECT + + 59 AS col2, + 90 + 69 + + + 40 col2
----
59
199

query II rowsort
SELECT 77, 64 col0
----
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL - 87 + ( + MAX( DISTINCT - 14 ) ) AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - 87 + ( + MAX ( DISTINCT - 14 ) ) AS col0
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9313
SELECT - 40 DIV + 21 - - + MIN( - 97 ) + + 83 + + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-9313
SELECT - 40 / + 21 - - + MIN ( - 97 ) + + 83 + + COUNT ( * )
----
-14

query II rowsort
SELECT + 44 AS col1, + 45 AS col0
----
44
45

query I rowsort
SELECT ALL + ( 49 ) + + 57 AS col0
----
106

query I rowsort
SELECT ALL 94 + + 56
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-9317
SELECT + COUNT( * ), 82 + + ( + 11 ) AS col2
----
1
93

skipif mysql # not compatible
query II rowsort label-9317
SELECT + COUNT ( * ), 82 + + ( + 11 ) AS col2
----
1
93

onlyif mysql # aggregate syntax: 
query II rowsort label-9318
SELECT DISTINCT - - COUNT( * ) AS col2, + ( + - 41 ) AS col2
----
1
-41

skipif mysql # not compatible
query II rowsort label-9318
SELECT DISTINCT - - COUNT ( * ) AS col2, + ( + - 41 ) AS col2
----
1
-41

query I rowsort
SELECT ALL 82 * - 21 AS col1
----
-1722

query II rowsort
SELECT ALL 94 - - 32, + 94 AS col1
----
126
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT + SUM( ALL - 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9321
SELECT + SUM ( ALL - 84 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-9322
SELECT ALL + COUNT( * ) - 85 AS col1, + CASE - - 22 WHEN - 34 THEN - 28 END AS col0
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-9322
SELECT ALL + COUNT ( * ) - 85 AS col1, + CASE - - 22 WHEN - 34 THEN - 28 END AS col0
----
-84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT MIN( ALL 65 ) * + 48 * + + 13
----
40560

skipif mysql # not compatible
query I rowsort label-9323
SELECT MIN ( ALL 65 ) * + 48 * + + 13
----
40560

query I rowsort
SELECT ALL 46 * - 37 * - NULLIF ( + 46, - 2 * + 40 )
----
78292

onlyif mysql # DIV for integer division: 
query II rowsort label-9325
SELECT 94 DIV - - 99 AS col1, - 95 AS col1
----
0
-95

skipif mysql # not compatible
query II rowsort label-9325
SELECT 94 / - - 99 AS col1, - 95 AS col1
----
0
-95

query I rowsort
SELECT 24 * - 58 + + + 66
----
-1326

query I rowsort
SELECT + 88 * - - 69 - - 80 AS col2
----
6152

query I rowsort
SELECT DISTINCT 28 * 75
----
2100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9329
SELECT ( - COUNT( * ) ) DIV + - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9329
SELECT ( - COUNT ( * ) ) / + - 72 AS col2
----
0

query I rowsort
SELECT 3 * - + 49 AS col1
----
-147

onlyif mysql # DIV for integer division: 
query II rowsort label-9331
SELECT DISTINCT + 62 DIV - 89 AS col1, 6
----
0
6

skipif mysql # not compatible
query II rowsort label-9331
SELECT DISTINCT + 62 / - 89 AS col1, 6
----
0
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9332
SELECT ( + - 36 ) DIV + - ( + MIN( DISTINCT 56 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9332
SELECT ( + - 36 ) / + - ( + MIN ( DISTINCT 56 ) ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT ALL + 53 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL + 53 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9334
SELECT - + ( + SUM( + - 5 ) ) AS col1, + 5 * + - 11
----
5
-55

skipif mysql # not compatible
query II rowsort label-9334
SELECT - + ( + SUM ( + - 5 ) ) AS col1, + 5 * + - 11
----
5
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9335
SELECT ALL + SUM( ALL - 49 ) + + 94 AS col1, - SUM( - - NULLIF ( 3, - + 48 ) ) + - + MAX( ALL + + 41 ) AS col2
----
45
-44

skipif mysql # not compatible
query II rowsort label-9335
SELECT ALL + SUM ( ALL - 49 ) + + 94 AS col1, - SUM ( - - NULLIF ( 3, - + 48 ) ) + - + MAX ( ALL + + 41 ) AS col2
----
45
-44

query I rowsort
SELECT ALL NULLIF ( - 91, + 72 + + - ( - 19 ) ) col0
----
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-9337
SELECT - 25 DIV - 96 AS col1, 48 + 94 AS col2
----
0
142

skipif mysql # not compatible
query II rowsort label-9337
SELECT - 25 / - 96 AS col1, 48 + 94 AS col2
----
0
142

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT DISTINCT + 6 DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT + 6 / 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT - MIN( 88 ) * + COUNT( ALL - ( - 25 ) ) - - 36 - + 55
----
-107

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT - MIN ( 88 ) * + COUNT ( ALL - ( - 25 ) ) - - 36 - + 55
----
-107

onlyif mysql # aggregate syntax: 
query II rowsort label-9340
SELECT ALL 0 * + + 37 + - + 15 * - 21 - 24 + + SUM( DISTINCT + + 39 ) * - 50, + 8 + - 79 + + 71 + + 73 AS col0
----
-1659
73

skipif mysql # not compatible
query II rowsort label-9340
SELECT ALL 0 * + + 37 + - + 15 * - 21 - 24 + + SUM ( DISTINCT + + 39 ) * - 50, + 8 + - 79 + + 71 + + 73 AS col0
----
-1659
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT DISTINCT + - MIN( - + 13 ) * + CASE + 58 WHEN + + 44 THEN + 99 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT + - MIN ( - + 13 ) * + CASE + 58 WHEN + + 44 THEN + 99 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 16 * - 27 - 34 AS col0
----
-466

query I rowsort
SELECT DISTINCT + 1 * - - 36 AS col0
----
36

query II rowsort
SELECT DISTINCT - 38 * + 48 * - + 49 AS col2, 51 * - 93 col0
----
89376
-4743

query II rowsort
SELECT ALL + 24, - 39 AS col1
----
24
-39

query I rowsort
SELECT NULLIF ( 93, 59 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT + CAST( NULL AS SIGNED ) / - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT + CAST ( NULL AS INTEGER ) / - 45
----
NULL

query I rowsort
SELECT + 11 * + 85
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT + MIN( ALL - NULLIF ( + + 22, - 46 + + - 48 + 29 ) ) * 44 AS col1
----
-968

skipif mysql # not compatible
query I rowsort label-9349
SELECT + MIN ( ALL - NULLIF ( + + 22, - 46 + + - 48 + 29 ) ) * 44 AS col1
----
-968

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL + COALESCE ( - + COUNT( ALL + - 31 ), - 30 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL + COALESCE ( - + COUNT ( ALL + - 31 ), - 30 ) AS col0
----
-1

query I rowsort
SELECT + 75 + - 52 col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9352
SELECT ALL + COALESCE ( + CASE 99 WHEN + 18 THEN NULL WHEN - - 5 THEN - + 20 ELSE COALESCE ( - 93, 19 DIV 4 * + ( - CAST( NULL AS SIGNED ) ) + 76 - - 34 ) END, + COALESCE ( - - 24, - NULLIF ( - CASE - SUM( + 67 ) WHEN - 24 THEN + 50 * + 97 + - 29 WHEN 95 THEN NULL ELSE - 17 END, AVG ( DISTINCT 18 ) + CAST( NULL AS SIGNED ) ) ), - ( 47 ) ) * + ( - COALESCE ( - 78, - 95 ) )
----
-7254

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL + COALESCE ( + CASE 99 WHEN + 18 THEN NULL WHEN - - 5 THEN - + 20 ELSE COALESCE ( - 93, 19 / 4 * + ( - CAST ( NULL AS INTEGER ) ) + 76 - - 34 ) END, + COALESCE ( - - 24, - NULLIF ( - CASE - SUM ( + 67 ) WHEN - 24 THEN + 50 * + 97 + - 29 WHEN 95 THEN NULL ELSE - 17 END, AVG ( DISTINCT 18 ) + CAST ( NULL AS INTEGER ) ) ), - ( 47 ) ) * + ( - COALESCE ( - 78, - 95 ) )
----
-7254

query I rowsort
SELECT + 68 + - - 39
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT SUM( ALL - 51 ) * 22
----
-1122

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT SUM ( ALL - 51 ) * 22
----
-1122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9355
SELECT + 45 + 13 * + - 5 + ( COALESCE ( - 53, COUNT( * ) - + COALESCE ( + 68, + + 52 + - CAST( NULL AS SIGNED ), + - 54 * + + 20 + - - 39 + + 49 DIV 71 ) - + CAST( + 87 AS SIGNED ) * MAX( + 98 ) * - NULLIF ( - 51, + COUNT( * ) * COUNT( * ) ) + - 31 + + 46, - 57 * + CASE + 87 * + 36 WHEN 33 THEN - ( - 29 ) + 4 WHEN + COUNT( * ) THEN NULL ELSE - ( COUNT( + CASE + 25 WHEN 85 THEN + NULLIF ( 8, + 75 ) ELSE NULL END ) ) END ) ) - - 93 DIV COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9355
SELECT + 45 + 13 * + - 5 + ( COALESCE ( - 53, COUNT ( * ) - + COALESCE ( + 68, + + 52 + - CAST ( NULL AS INTEGER ), + - 54 * + + 20 + - - 39 + + 49 / 71 ) - + CAST ( + 87 AS INTEGER ) * MAX ( + 98 ) * - NULLIF ( - 51, + COUNT ( * ) * COUNT ( * ) ) + - 31 + + 46, - 57 * + CASE + 87 * + 36 WHEN 33 THEN - ( - 29 ) + 4 WHEN + COUNT ( * ) THEN NULL ELSE - ( COUNT ( + CASE + 25 WHEN 85 THEN + NULLIF ( 8, + 75 ) ELSE NULL END ) ) END ) ) - - 93 / COUNT ( * ) AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT + 15 * ( 98 ) DIV + + 37
----
39

skipif mysql # not compatible
query I rowsort label-9356
SELECT + 15 * ( 98 ) / + + 37
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT - 83 * - - 88 + - + SUM( - 92 )
----
-7212

skipif mysql # not compatible
query I rowsort label-9357
SELECT - 83 * - - 88 + - + SUM ( - 92 )
----
-7212

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT SUM( + - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-9358
SELECT SUM ( + - 96 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT - ( CAST( 55 AS SIGNED ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9359
SELECT - ( CAST ( 55 AS INTEGER ) ) AS col1
----
-55

query I rowsort
SELECT - 97 + 62 + 1 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9361
SELECT DISTINCT - NULLIF ( - 19, - COUNT( * ) ) AS col2, - 85 * - SUM( - + 67 ) AS col2
----
19
-5695

skipif mysql # not compatible
query II rowsort label-9361
SELECT DISTINCT - NULLIF ( - 19, - COUNT ( * ) ) AS col2, - 85 * - SUM ( - + 67 ) AS col2
----
19
-5695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT - + CAST( + - COALESCE ( 22, 33, + + 39 ) AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-9362
SELECT - + CAST ( + - COALESCE ( 22, 33, + + 39 ) AS INTEGER )
----
22

query I rowsort
SELECT ALL + 12 + - 3 * - 83 col1
----
261

onlyif mysql # aggregate syntax: 
query II rowsort label-9364
SELECT DISTINCT - COUNT( + + 31 ) + - + 60, - 0 AS col2
----
-61
0

skipif mysql # not compatible
query II rowsort label-9364
SELECT DISTINCT - COUNT ( + + 31 ) + - + 60, - 0 AS col2
----
-61
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9365
SELECT ALL 85 + + COALESCE ( 66, - 60 ) + - 43 - + - CAST( NULL AS SIGNED ) * + + 38 * - 46 AS col2, ( + MAX( DISTINCT + + 47 ) ) DIV 39 * 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-9365
SELECT ALL 85 + + COALESCE ( 66, - 60 ) + - 43 - + - CAST ( NULL AS INTEGER ) * + + 38 * - 46 AS col2, ( + MAX ( DISTINCT + + 47 ) ) / 39 * 76
----
NULL
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT + - CAST( NULL AS SIGNED ) - - CASE 2 WHEN 35 THEN - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9366
SELECT + - CAST ( NULL AS INTEGER ) - - CASE 2 WHEN 35 THEN - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT - + 34 * 80
----
-2720

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT ALL + 29 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL + 29 / 99
----
0

query I rowsort
SELECT - ( - + 24 ) col1
----
24

query I rowsort
SELECT DISTINCT + + 18 + - 15
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT + 18 * - CASE COALESCE ( + - 21, + 53, 9 + - - 29 ) WHEN - - COUNT( * ) + - 79 + + 43 THEN 84 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT + 18 * - CASE COALESCE ( + - 21, + 53, 9 + - - 29 ) WHEN - - COUNT ( * ) + - 79 + + 43 THEN 84 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9372
SELECT - 32 - - 73 * - - 45 * - ( - ( + CASE - 93 WHEN - COUNT( DISTINCT + + 82 ) * - 55 THEN NULL WHEN + 57 - - 73 + + CAST( 57 AS SIGNED ) THEN + 5 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT - 32 - - 73 * - - 45 * - ( - ( + CASE - 93 WHEN - COUNT ( DISTINCT + + 82 ) * - 55 THEN NULL WHEN + 57 - - 73 + + CAST ( 57 AS INTEGER ) THEN + 5 ELSE NULL END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL + + ( + + COUNT( * ) ) * + CASE 7 WHEN 55 THEN + - COUNT( * ) END + - 44 * + 11 * - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + + ( + + COUNT ( * ) ) * + CASE 7 WHEN 55 THEN + - COUNT ( * ) END + - 44 * + 11 * - 89
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9374
SELECT DISTINCT + COUNT( * ) AS col1, 88 col2
----
1
88

skipif mysql # not compatible
query II rowsort label-9374
SELECT DISTINCT + COUNT ( * ) AS col1, 88 col2
----
1
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT ALL + NULLIF ( - CAST( - + 85 AS SIGNED ), - 34 - + ( - 11 ) )
----
85

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL + NULLIF ( - CAST ( - + 85 AS INTEGER ), - 34 - + ( - 11 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT 64 * + COUNT( * ) * + 10 - + 23 + 37 * - 14
----
99

skipif mysql # not compatible
query I rowsort label-9376
SELECT 64 * + COUNT ( * ) * + 10 - + 23 + 37 * - 14
----
99

query II rowsort
SELECT - ( ( - 13 ) ) AS col2, - ( + 33 ) AS col0
----
13
-33

query I rowsort
SELECT ALL + NULLIF ( - + 70, + + 32 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9379
SELECT + 74 * + + COALESCE ( - COALESCE ( + 2, - ( - 78 ) ), - 11 + - COUNT( DISTINCT - + 65 ), - - COUNT( * ), + 38 DIV - NULLIF ( - 24, + + 53 - + SUM( + 12 ) ) + - 71 * + - 51 * MAX( 94 ) * + 61 ) - - 77 * + NULLIF ( + 1, - CASE - 38 WHEN COUNT( * ) THEN 74 END DIV - 24 ) * 38 - - 23 * - COUNT( * ) AS col2
----
2755

skipif mysql # not compatible
query I rowsort label-9379
SELECT + 74 * + + COALESCE ( - COALESCE ( + 2, - ( - 78 ) ), - 11 + - COUNT ( DISTINCT - + 65 ), - - COUNT ( * ), + 38 / - NULLIF ( - 24, + + 53 - + SUM ( + 12 ) ) + - 71 * + - 51 * MAX ( 94 ) * + 61 ) - - 77 * + NULLIF ( + 1, - CASE - 38 WHEN COUNT ( * ) THEN 74 END / - 24 ) * 38 - - 23 * - COUNT ( * ) AS col2
----
2755

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT - 11 * - + COUNT( * ) + 96 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-9380
SELECT - 11 * - + COUNT ( * ) + 96 AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9381
SELECT DISTINCT + ( + CAST( + - COUNT( - + 38 ) AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT + ( + CAST ( + - COUNT ( - + 38 ) AS INTEGER ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 70 * - 64 AS col2
----
-4480

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9383
SELECT - CAST( - 50 AS SIGNED ) DIV - 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9383
SELECT - CAST ( - 50 AS INTEGER ) / - 7 AS col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT DISTINCT + 79 DIV - - 3
----
26

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT + 79 / - - 3
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9385
SELECT DISTINCT - 76 DIV - 76 + - COUNT( DISTINCT + 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT - 76 / - 76 + - COUNT ( DISTINCT + 65 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT ALL - 61 * + 98 * - COALESCE ( + 16, 21 + + COUNT( * ) ) AS col0
----
95648

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL - 61 * + 98 * - COALESCE ( + 16, 21 + + COUNT ( * ) ) AS col0
----
95648

query I rowsort
SELECT ( + 30 ) col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9388
SELECT - COALESCE ( + 34, + ( + - 31 ) + + ( + MIN( ALL - 73 ) ), + CAST( NULL AS SIGNED ), + 98 + - - 77 * + 65 ) + - + 38 + NULLIF ( SUM( DISTINCT + ( 68 ) ), CAST( + CASE - 33 WHEN + 18 THEN - 36 WHEN - - 20 * + 21 * - - 89 / + AVG ( DISTINCT + 64 ) THEN + 42 / - 63 END AS SIGNED ) ) + + ( COUNT( * ) + - ( - 48 ) * - NULLIF ( - 71, COUNT( DISTINCT CAST( 48 AS DECIMAL ) ) ) ) * + 74 * + COUNT( * )
----
252262

skipif mysql # not compatible
query I rowsort label-9388
SELECT - COALESCE ( + 34, + ( + - 31 ) + + ( + MIN ( ALL - 73 ) ), + CAST ( NULL AS INTEGER ), + 98 + - - 77 * + 65 ) + - + 38 + NULLIF ( SUM ( DISTINCT + ( 68 ) ), CAST ( + CASE - 33 WHEN + 18 THEN - 36 WHEN - - 20 * + 21 * - - 89 / + AVG ( DISTINCT + 64 ) THEN + 42 / - 63 END AS INTEGER ) ) + + ( COUNT ( * ) + - ( - 48 ) * - NULLIF ( - 71, COUNT ( DISTINCT CAST ( 48 AS REAL ) ) ) ) * + 74 * + COUNT ( * )
----
252262

onlyif mysql # DIV for integer division: 
query II rowsort label-9389
SELECT 3 DIV + 15 AS col2, + 33
----
0
33

skipif mysql # not compatible
query II rowsort label-9389
SELECT 3 / + 15 AS col2, + 33
----
0
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT 38 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT 38 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 27 + + + 12
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9392
SELECT DISTINCT 44 + + + 95, + 1 + - 41 * ( + CASE + 48 WHEN + 14 THEN NULL ELSE + + 96 + 10 + - COUNT( * ) + - 38 + - CAST( NULL AS SIGNED ) * + 85 END ) * + 85 + - - CAST( NULL AS DECIMAL ) AS col1
----
139
NULL

skipif mysql # not compatible
query II rowsort label-9392
SELECT DISTINCT 44 + + + 95, + 1 + - 41 * ( + CASE + 48 WHEN + 14 THEN NULL ELSE + + 96 + 10 + - COUNT ( * ) + - 38 + - CAST ( NULL AS INTEGER ) * + 85 END ) * + 85 + - - CAST ( NULL AS REAL ) AS col1
----
139
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9393
SELECT DISTINCT - COUNT( * ) + + 17 AS col2, - CAST( + + 21 AS SIGNED ) * + + 37 AS col1
----
16
-777

skipif mysql # not compatible
query II rowsort label-9393
SELECT DISTINCT - COUNT ( * ) + + 17 AS col2, - CAST ( + + 21 AS INTEGER ) * + + 37 AS col1
----
16
-777

query I rowsort
SELECT ALL 79 + - + 61 AS col0
----
18

query I rowsort
SELECT 28 - - - 78 * + + 39 AS col0
----
-3014

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9396
SELECT ALL + 44 + + + 59 DIV - MIN( ALL - 4 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL + 44 + + + 59 / - MIN ( ALL - 4 ) AS col1
----
58

query I rowsort
SELECT ALL + 75 + - + 5
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9398
SELECT + 66 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT + 66 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT ALL - 0 * - NULLIF ( CAST( NULL AS SIGNED ), + 37 + ( - + 57 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL - 0 * - NULLIF ( CAST ( NULL AS INTEGER ), + 37 + ( - + 57 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9400
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) - 32 * + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-9400
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) - 32 * + COUNT ( * )
----
-32

query I rowsort
SELECT ALL 19 * - + 20 AS col2
----
-380

query II rowsort
SELECT 60 + + 8 + + 20 * - - ( + ( 63 ) ) + 18 AS col1, 26 / - CASE - 47 WHEN - - 91 * - - 56 THEN - - 4 END AS col0
----
1346
NULL

query I rowsort
SELECT ALL 33 - - 79
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT DISTINCT - MAX( DISTINCT - - 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT - MAX ( DISTINCT - - 61 ) AS col0
----
-61

query I rowsort
SELECT ALL - 48 - + 48 col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9406
SELECT NULLIF ( + CAST( NULL AS SIGNED ), - 83 + + 65 * COUNT( * ) ) + - - 24 - + + 85 * - 13 * - 34 col2, - ( - 2 )
----
NULL
2

skipif mysql # not compatible
query II rowsort label-9406
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), - 83 + + 65 * COUNT ( * ) ) + - - 24 - + + 85 * - 13 * - 34 col2, - ( - 2 )
----
NULL
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT ALL - 68 DIV + ( + + 67 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - 68 / + ( + + 67 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT 60 * + + COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-9408
SELECT 60 * + + COUNT ( * ) AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9409
SELECT - CAST( 65 AS SIGNED ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-9409
SELECT - CAST ( 65 AS INTEGER ) AS col0
----
-65

query I rowsort
SELECT - CASE - + ( + 97 ) WHEN + 16 THEN 37 END AS col2
----
NULL

query I rowsort
SELECT - 79 + - 32 AS col2
----
-111

query I rowsort
SELECT 69 * 57 AS col2
----
3933

query I rowsort
SELECT ALL - NULLIF ( + 81, 44 * + - 33 - + 25 )
----
-81

query I rowsort
SELECT 14 * 93 AS col1
----
1302

query I rowsort
SELECT ALL + 84 * - 49 col1
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL COUNT( ALL - - 57 ) * + + ( - - 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL COUNT ( ALL - - 57 ) * + + ( - - 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL - 21 + + NULLIF ( 61, + COUNT( * ) ) + + - 74
----
-34

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL - 21 + + NULLIF ( 61, + COUNT ( * ) ) + + - 74
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9418
SELECT 94 + 64 + + 34 DIV - COALESCE ( + 97, - 45, 43 ) + + CAST( + COALESCE ( 20, + AVG ( DISTINCT 63 ) + 50 ) AS SIGNED ) + COALESCE ( + + 15, MAX( ALL 48 ) + + - 1 + - COUNT( - 11 ), CASE + COUNT( * ) WHEN + - NULLIF ( - + CASE - 87 WHEN + 89 THEN + 25 ELSE NULL END, - 90 + 15 ) * - AVG ( ALL + 75 ) + - 46 THEN - ( + COUNT( * ) ) + - 28 END ) col2
----
193

skipif mysql # not compatible
query I rowsort label-9418
SELECT 94 + 64 + + 34 / - COALESCE ( + 97, - 45, 43 ) + + CAST ( + COALESCE ( 20, + AVG ( DISTINCT 63 ) + 50 ) AS INTEGER ) + COALESCE ( + + 15, MAX ( ALL 48 ) + + - 1 + - COUNT ( - 11 ), CASE + COUNT ( * ) WHEN + - NULLIF ( - + CASE - 87 WHEN + 89 THEN + 25 ELSE NULL END, - 90 + 15 ) * - AVG ( ALL + 75 ) + - 46 THEN - ( + COUNT ( * ) ) + - 28 END ) col2
----
193

query I rowsort
SELECT 85 * 94 + + ( - 56 )
----
7934

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT DISTINCT - COUNT( * ) + + - 32 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT - COUNT ( * ) + + - 32 AS col0
----
-33

query I rowsort
SELECT 42 * + + 99 AS col1
----
4158

onlyif mysql # aggregate syntax: 
query II rowsort label-9422
SELECT + 11, COUNT( * ) + - 99 AS col0
----
11
-98

skipif mysql # not compatible
query II rowsort label-9422
SELECT + 11, COUNT ( * ) + - 99 AS col0
----
11
-98

query I rowsort
SELECT 19 + + 41 AS col1
----
60

query I rowsort
SELECT ALL - ( ( - 36 ) )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9425
SELECT ALL + ( + COUNT( * ) ) + + CAST( 5 AS SIGNED ) + + - 74 AS col2, 18 + - 53 + - - 57 - - 59 * - 80 * + 72 + - + 99 AS col2
----
-68
-339917

skipif mysql # not compatible
query II rowsort label-9425
SELECT ALL + ( + COUNT ( * ) ) + + CAST ( 5 AS INTEGER ) + + - 74 AS col2, 18 + - 53 + - - 57 - - 59 * - 80 * + 72 + - + 99 AS col2
----
-68
-339917

query I rowsort
SELECT DISTINCT - ( + 90 ) * + + 71 + + 91 AS col0
----
-6299

query II rowsort
SELECT + - 36 col0, - 1 AS col0
----
-36
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9428
SELECT CAST( + + 50 AS SIGNED ) * 10 AS col2
----
500

skipif mysql # not compatible
query I rowsort label-9428
SELECT CAST ( + + 50 AS INTEGER ) * 10 AS col2
----
500

onlyif mysql # aggregate syntax: 
query II rowsort label-9429
SELECT ALL COUNT( * ) AS col1, - 12 + - 2 + - + COUNT( * ) AS col1
----
1
-15

skipif mysql # not compatible
query II rowsort label-9429
SELECT ALL COUNT ( * ) AS col1, - 12 + - 2 + - + COUNT ( * ) AS col1
----
1
-15

query II rowsort
SELECT 23 AS col1, - 14 AS col0
----
23
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT + - COUNT( * ) * + 99 + 90 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9431
SELECT + - COUNT ( * ) * + 99 + 90 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9432
SELECT 75 * + + 27 DIV 83 DIV - + ( 65 ) * - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9432
SELECT 75 * + + 27 / 83 / - + ( 65 ) * - 83 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT ALL - 63 DIV + ( - 95 ) * - 24
----
0

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL - 63 / + ( - 95 ) * - 24
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9434
SELECT 5 DIV + 1 + - ( + 40 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9434
SELECT 5 / + 1 + - ( + 40 ) AS col0
----
-35

query I rowsort
SELECT ALL + NULLIF ( - + 52, - 57 ) AS col0
----
-52

query I rowsort
SELECT - + ( - NULLIF ( - 72, - 56 ) ) AS col2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9437
SELECT ALL - CAST( 92 AS SIGNED ) - - - 41 * + 36
----
-1568

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL - CAST ( 92 AS INTEGER ) - - - 41 * + 36
----
-1568

onlyif mysql # DIV for integer division: 
query II rowsort label-9438
SELECT - + 28, - 40 DIV - 85 AS col0
----
-28
0

skipif mysql # not compatible
query II rowsort label-9438
SELECT - + 28, - 40 / - 85 AS col0
----
-28
0

query I rowsort
SELECT - 80 - - - 53
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT - CASE - + 73 WHEN - COALESCE ( NULLIF ( - 89, + + COUNT( * ) * + 67 * + 57 ), + - 74 ) THEN NULL WHEN - + 28 - - + 68 * - + 70 THEN - NULLIF ( + COUNT( * ), + ( + 3 ) ) END - + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9440
SELECT - CASE - + 73 WHEN - COALESCE ( NULLIF ( - 89, + + COUNT ( * ) * + 67 * + 57 ), + - 74 ) THEN NULL WHEN - + 28 - - + 68 * - + 70 THEN - NULLIF ( + COUNT ( * ), + ( + 3 ) ) END - + 66
----
NULL

query I rowsort
SELECT DISTINCT 17 + - - 90 - + 31 * + - 2 + - - 77
----
246

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9442
SELECT ALL 76 col1, 14 AS col2, - NULLIF ( - - 97, + - 50 * + - 30 DIV + 41 - COALESCE ( - 83, + + COALESCE ( + - ( - + COUNT( ALL - - 39 ) ), - 50 * - SUM( ALL - 35 ) + - 97 ), 0, 68 DIV + 47 * 99 ) + - 73 + - 86 * 66 ) * 43 + 60 * - 92 - 27 DIV ( 55 + + ( 88 ) )
----
76
14
-9691

skipif mysql # not compatible
query III rowsort label-9442
SELECT ALL 76 col1, 14 AS col2, - NULLIF ( - - 97, + - 50 * + - 30 / + 41 - COALESCE ( - 83, + + COALESCE ( + - ( - + COUNT ( ALL - - 39 ) ), - 50 * - SUM ( ALL - 35 ) + - 97 ), 0, 68 / + 47 * 99 ) + - 73 + - 86 * 66 ) * 43 + 60 * - 92 - 27 / ( 55 + + ( 88 ) )
----
76
14
-9691

query I rowsort
SELECT ALL 52 + 20 AS col2
----
72

query II rowsort
SELECT ALL 32, 80 AS col0
----
32
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT COALESCE ( - - 8, + 59, - 75 ) * COUNT( * ) + COUNT( * ) + 93 + + 7 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT COALESCE ( - - 8, + 59, - 75 ) * COUNT ( * ) + COUNT ( * ) + 93 + + 7 AS col2
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9446
SELECT ALL - COUNT( + 61 ) * - - 36 DIV - - 56 * - - 55 * + COUNT( * ) + + 53
----
53

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL - COUNT ( + 61 ) * - - 36 / - - 56 * - - 55 * + COUNT ( * ) + + 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT 98 * COALESCE ( 81, + - CASE - 6 WHEN - 17 THEN + 48 ELSE NULL END ) + + 92 - - 96 + + - 38 * + NULLIF ( - + 82, 63 + - COALESCE ( 44, 27 + + 72 + - SUM( NULLIF ( + - 35, + ( - - 12 ) ) ), - - COUNT( * ) ) )
----
11242

skipif mysql # not compatible
query I rowsort label-9447
SELECT 98 * COALESCE ( 81, + - CASE - 6 WHEN - 17 THEN + 48 ELSE NULL END ) + + 92 - - 96 + + - 38 * + NULLIF ( - + 82, 63 + - COALESCE ( 44, 27 + + 72 + - SUM ( NULLIF ( + - 35, + ( - - 12 ) ) ), - - COUNT ( * ) ) )
----
11242

onlyif mysql # aggregate syntax: 
query II rowsort label-9448
SELECT CASE - 92 WHEN + - 25 THEN + 14 END, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9448
SELECT CASE - 92 WHEN + - 25 THEN + 14 END, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9449
SELECT - 27 * + CAST( NULL AS DECIMAL ) - - - 8 + 80 * - + 91 * ( - 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9449
SELECT - 27 * + CAST ( NULL AS REAL ) - - - 8 + 80 * - + 91 * ( - 62 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9450
SELECT + 55, SUM( DISTINCT 8 ) AS col0
----
55
8

skipif mysql # not compatible
query II rowsort label-9450
SELECT + 55, SUM ( DISTINCT 8 ) AS col0
----
55
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT ALL - CAST( NULL AS SIGNED ) * - - 35 + - 75 + - - 76 * - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 35 + - 75 + - - 76 * - 84 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9452
SELECT ALL + 44 * + 6 + + 70 DIV + 95
----
264

skipif mysql # not compatible
query I rowsort label-9452
SELECT ALL + 44 * + 6 + + 70 / + 95
----
264

query I rowsort
SELECT + 86 * - 26 * + + 86 AS col1
----
-192296

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9454
SELECT ALL + 67 col0, ( + - 26 ) + 69, 24 - - + ( + + 98 ) / - CAST( NULL AS DECIMAL ) AS col0
----
67
43
NULL

skipif mysql # not compatible
query III rowsort label-9454
SELECT ALL + 67 col0, ( + - 26 ) + 69, 24 - - + ( + + 98 ) / - CAST ( NULL AS REAL ) AS col0
----
67
43
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9455
SELECT ALL + 51 * COUNT( DISTINCT - 7 ) - - 80 * + 47 * COUNT( * ) - 15 * 63 + + - 81 AS col2, 97 * COUNT( + 42 )
----
2785
97

skipif mysql # not compatible
query II rowsort label-9455
SELECT ALL + 51 * COUNT ( DISTINCT - 7 ) - - 80 * + 47 * COUNT ( * ) - 15 * 63 + + - 81 AS col2, 97 * COUNT ( + 42 )
----
2785
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9456
SELECT + 50 + - 62 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT + 50 + - 62 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT - - 22 * CAST( - - 73 AS SIGNED )
----
1606

skipif mysql # not compatible
query I rowsort label-9457
SELECT - - 22 * CAST ( - - 73 AS INTEGER )
----
1606

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9458
SELECT DISTINCT + 92 AS col1, + CAST( NULL AS SIGNED ) AS col2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-9458
SELECT DISTINCT + 92 AS col1, + CAST ( NULL AS INTEGER ) AS col2
----
92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT + COUNT( * ) + - 97 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-9459
SELECT + COUNT ( * ) + - 97 AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9460
SELECT DISTINCT - - 12 DIV + 4 col1
----
3

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT - - 12 / + 4 col1
----
3

query II rowsort
SELECT ALL + ( - 97 ), ( + 62 ) AS col1
----
-97
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9462
SELECT - - CAST( NULL AS SIGNED ) * - 61 - + - SUM( - 93 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT - - CAST ( NULL AS INTEGER ) * - 61 - + - SUM ( - 93 ) AS col2
----
NULL

query I rowsort
SELECT - 98 + + - 37 + - 12 AS col0
----
-147

onlyif mysql # DIV for integer division: 
query II rowsort label-9464
SELECT ALL - - 37 * 31 AS col0, - 73 DIV - 14 AS col2
----
1147
5

skipif mysql # not compatible
query II rowsort label-9464
SELECT ALL - - 37 * 31 AS col0, - 73 / - 14 AS col2
----
1147
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9465
SELECT DISTINCT - + ( ( 66 ) ) * COUNT( * ) * CAST( AVG ( DISTINCT - 68 ) AS SIGNED ) - - 36 AS col2
----
4524

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT - + ( ( 66 ) ) * COUNT ( * ) * CAST ( AVG ( DISTINCT - 68 ) AS INTEGER ) - - 36 AS col2
----
4524

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9466
SELECT ALL - 10 AS col2, 73 * - 48 * + AVG ( CAST( NULL AS SIGNED ) ) AS col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-9466
SELECT ALL - 10 AS col2, 73 * - 48 * + AVG ( CAST ( NULL AS INTEGER ) ) AS col0
----
-10
NULL

query I rowsort
SELECT - 25 * + - 73 + + 57 AS col0
----
1882

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT DISTINCT - ( SUM( ALL 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT - ( SUM ( ALL 74 ) )
----
-74

query I rowsort
SELECT ALL + + 45 * + 46 * + 20 AS col0
----
41400

query I rowsort
SELECT - 78 + 93 * - 10
----
-1008

onlyif mysql # DIV for integer division: 
query I rowsort label-9471
SELECT + + 96 + - 68 + 51 DIV - 77 * - + ( - 49 ) + + 15 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9471
SELECT + + 96 + - 68 + 51 / - 77 * - + ( - 49 ) + + 15 AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT DISTINCT 40 + CAST( 2 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT 40 + CAST ( 2 AS INTEGER )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT ALL - 16 + + 22 / - + 5 * 0 * ( 49 ) * - CASE + 55 WHEN - + 53 * - 50 THEN - CAST( NULL AS SIGNED ) WHEN - 94 THEN NULL ELSE NULL END + + AVG ( DISTINCT 77 ) * + ( + 37 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - 16 + + 22 / - + 5 * 0 * ( 49 ) * - CASE + 55 WHEN - + 53 * - 50 THEN - CAST ( NULL AS INTEGER ) WHEN - 94 THEN NULL ELSE NULL END + + AVG ( DISTINCT 77 ) * + ( + 37 ) AS col2
----
NULL

query I rowsort
SELECT - + 10 + - 77
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9475
SELECT ALL + - COUNT( * ) + + CAST( NULL AS SIGNED ) + 8 * 65 + + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 8 * 65 + + - 11 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT DISTINCT + COUNT( * ) + - MIN( ALL COALESCE ( + 59, + - 7, - 22 ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT + COUNT ( * ) + - MIN ( ALL COALESCE ( + 59, + - 7, - 22 ) ) AS col2
----
-58

query I rowsort
SELECT - NULLIF ( - 90, - ( - 71 ) + 75 ) AS col2
----
90

query II rowsort
SELECT + 11 + 11 AS col2, 27
----
22
27

query I rowsort
SELECT ALL + 2 + - 63
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9480
SELECT DISTINCT 75 + 55 * - 74 / + 86 - - COUNT( * ) + 45 * + CAST( NULL AS SIGNED ) * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT 75 + 55 * - 74 / + 86 - - COUNT ( * ) + 45 * + CAST ( NULL AS INTEGER ) * + 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + 53 + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + 53 + + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT + 5 + + - 23 + - 98 * + + 12 * - 57 + - 83 * - 75 * - SUM( DISTINCT 80 ) * - 61
----
30445014

skipif mysql # not compatible
query I rowsort label-9482
SELECT + 5 + + - 23 + - 98 * + + 12 * - 57 + - 83 * - 75 * - SUM ( DISTINCT 80 ) * - 61
----
30445014

query I rowsort
SELECT - 61 * 72 + - 62 AS col1
----
-4454

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT ALL + 0 DIV - 70 + + 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL + 0 / - 70 + + 24 AS col1
----
24

query I rowsort
SELECT + 69 * + 95
----
6555

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL + NULLIF ( - COUNT( * ), - - ( - 48 ) * - 65 + - - 58 + - ( + 68 ) ) * COALESCE ( + COUNT( * ), + 71 * 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL + NULLIF ( - COUNT ( * ), - - ( - 48 ) * - 65 + - - 58 + - ( + 68 ) ) * COALESCE ( + COUNT ( * ), + 71 * 7 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT + 62 + - + 67 * - COUNT( * ) - - 4
----
133

skipif mysql # not compatible
query I rowsort label-9487
SELECT + 62 + - + 67 * - COUNT ( * ) - - 4
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT ALL - 23 DIV - - 22 - + ( 97 ) + - 2 + - 89 DIV - + 54 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL - 23 / - - 22 - + ( 97 ) + - 2 + - 89 / - + 54 AS col0
----
-99

query I rowsort
SELECT ( - - 88 ) col1
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-9490
SELECT + - 18 DIV 14 AS col1, 70
----
-1
70

skipif mysql # not compatible
query II rowsort label-9490
SELECT + - 18 / 14 AS col1, 70
----
-1
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9491
SELECT ALL + 12 DIV COUNT( * ) * + 93
----
1116

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL + 12 / COUNT ( * ) * + 93
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-9492
SELECT + + COUNT( * ) * 50
----
50

skipif mysql # not compatible
query I rowsort label-9492
SELECT + + COUNT ( * ) * 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ALL MAX( 67 ) * ( + + COALESCE ( 98, + ( - ( + + 22 ) ) ) )
----
6566

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL MAX ( 67 ) * ( + + COALESCE ( 98, + ( - ( + + 22 ) ) ) )
----
6566

query I rowsort
SELECT DISTINCT + ( - - 11 ) AS col0
----
11

query I rowsort
SELECT + ( + ( 80 ) )
----
80

query I rowsort
SELECT - 23 * - 83 + - + 37 col2
----
1872

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL SUM( ALL + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL SUM ( ALL + 18 )
----
18

query I rowsort
SELECT 25 * - 74 + 36
----
-1814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9499
SELECT ALL 30 * NULLIF ( - 74, + NULLIF ( - - 22, - 25 * - 19 * + + 52 ) + 52 * CASE - - 52 WHEN + 55 THEN + 46 ELSE COUNT( * ) END ) + - ( MIN( ALL + + 33 ) ) AS col1, + 30 + + CAST( - 8 AS DECIMAL ) + - CAST( NULL AS SIGNED ) * - 20 * - + NULLIF ( + 11, + 92 - + + CAST( NULL AS SIGNED ) + + 97 * 85 ) + + 72 * 89 col1
----
-2253
NULL

skipif mysql # not compatible
query II rowsort label-9499
SELECT ALL 30 * NULLIF ( - 74, + NULLIF ( - - 22, - 25 * - 19 * + + 52 ) + 52 * CASE - - 52 WHEN + 55 THEN + 46 ELSE COUNT ( * ) END ) + - ( MIN ( ALL + + 33 ) ) AS col1, + 30 + + CAST ( - 8 AS REAL ) + - CAST ( NULL AS INTEGER ) * - 20 * - + NULLIF ( + 11, + 92 - + + CAST ( NULL AS INTEGER ) + + 97 * 85 ) + + 72 * 89 col1
----
-2253
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT - + 56 DIV + + 18
----
-3

skipif mysql # not compatible
query I rowsort label-9500
SELECT - + 56 / + + 18
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL + 38 * - + COALESCE ( - 87, - 74 * - 7 ) + + COUNT( * )
----
3307

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL + 38 * - + COALESCE ( - 87, - 74 * - 7 ) + + COUNT ( * )
----
3307

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9502
SELECT DISTINCT - ( - - COUNT( * ) ) * - 51 + 98 + - + 70 + + - 4 + 43 DIV + 53
----
75

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT - ( - - COUNT ( * ) ) * - 51 + 98 + - + 70 + + - 4 + 43 / + 53
----
75

query I rowsort
SELECT DISTINCT + 28 * 11 AS col1
----
308

query I rowsort
SELECT DISTINCT + 17 + 74 + 88 AS col1
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9505
SELECT ALL + + CASE + 4 WHEN 87 THEN - 20 * 27 + MAX( ALL 94 ) + + - 8 * + 23 * 21 WHEN + 42 * + 42 + + CAST( NULL AS SIGNED ) - 62 + - + COUNT( * ) THEN NULL WHEN + - 61 THEN NULL END * - 37 AS col2, - ( + 46 )
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-9505
SELECT ALL + + CASE + 4 WHEN 87 THEN - 20 * 27 + MAX ( ALL 94 ) + + - 8 * + 23 * 21 WHEN + 42 * + 42 + + CAST ( NULL AS INTEGER ) - 62 + - + COUNT ( * ) THEN NULL WHEN + - 61 THEN NULL END * - 37 AS col2, - ( + 46 )
----
NULL
-46

query I rowsort
SELECT - 35 * - + 16
----
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9507
SELECT DISTINCT ( + MIN( DISTINCT ( + CAST( NULL AS SIGNED ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT ( + MIN ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT 87 - + + ( 52 ) + + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-9508
SELECT 87 - + + ( 52 ) + + + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL - 62 * - - 32 * + NULLIF ( 79, 90 * MAX( + - 99 ) + - + 66 ) col1
----
-156736

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL - 62 * - - 32 * + NULLIF ( 79, 90 * MAX ( + - 99 ) + - + 66 ) col1
----
-156736

query I rowsort
SELECT ALL + ( 18 ) * - 86 + 16
----
-1532

query I rowsort
SELECT NULLIF ( - 14, - 45 ) + - 76 AS col0
----
-90

query I rowsort
SELECT DISTINCT + 89 + - 67 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9513
SELECT ALL 97 col0, + CASE - 42 WHEN 90 + - - 90 + + 76 * 63 * - + 54 THEN + 4 ELSE NULL END + - + 96 * + + 20 / + CASE - 61 WHEN - - CASE + 69 WHEN + + 77 THEN + 51 + - 30 WHEN 10 / 46 THEN NULL END / - 6 * COUNT( * ) + COUNT( * ) * - COALESCE ( - 78, + - CAST( - + 78 AS SIGNED ) * + 94 - 4 ) + + 17 * 23 THEN 16 + + 41 WHEN 34 * - COUNT( * ) THEN NULL END
----
97
NULL

skipif mysql # not compatible
query II rowsort label-9513
SELECT ALL 97 col0, + CASE - 42 WHEN 90 + - - 90 + + 76 * 63 * - + 54 THEN + 4 ELSE NULL END + - + 96 * + + 20 / + CASE - 61 WHEN - - CASE + 69 WHEN + + 77 THEN + 51 + - 30 WHEN 10 / 46 THEN NULL END / - 6 * COUNT ( * ) + COUNT ( * ) * - COALESCE ( - 78, + - CAST ( - + 78 AS INTEGER ) * + 94 - 4 ) + + 17 * 23 THEN 16 + + 41 WHEN 34 * - COUNT ( * ) THEN NULL END
----
97
NULL

query I rowsort
SELECT 32 - - 93 col1
----
125

query I rowsort
SELECT 41 + - 78
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9516
SELECT - 62 DIV 23 + + 62 * - 92
----
-5706

skipif mysql # not compatible
query I rowsort label-9516
SELECT - 62 / 23 + + 62 * - 92
----
-5706

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL + 0 * + COUNT( ALL - ( CASE 93 WHEN - 75 THEN NULL ELSE + 18 END ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL + 0 * + COUNT ( ALL - ( CASE 93 WHEN - 75 THEN NULL ELSE + 18 END ) ) AS col2
----
0

query I rowsort
SELECT 31 + + 8
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ( COUNT( * ) ) * ( + 36 ) + - 58 - 42 * - COALESCE ( - - 33, 62, - 18 ) AS col1
----
1364

skipif mysql # not compatible
query I rowsort label-9519
SELECT ( COUNT ( * ) ) * ( + 36 ) + - 58 - 42 * - COALESCE ( - - 33, 62, - 18 ) AS col1
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT 56 * + MAX( DISTINCT - 84 ) * + 70 + + 96 - 74 AS col2
----
-329258

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT 56 * + MAX ( DISTINCT - 84 ) * + 70 + + 96 - 74 AS col2
----
-329258

onlyif mysql # DIV for integer division: 
query II rowsort label-9521
SELECT + 87 DIV + + 50 - 32, 17 + 16 + 69 * - + 81 AS col1
----
-31
-5556

skipif mysql # not compatible
query II rowsort label-9521
SELECT + 87 / + + 50 - 32, 17 + 16 + 69 * - + 81 AS col1
----
-31
-5556

query I rowsort
SELECT ALL + - 78 * - + 8 AS col1
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT DISTINCT - + MAX( + 87 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT - + MAX ( + 87 ) AS col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT DISTINCT + + 28 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT + + 28 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + + 34, - 90 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9526
SELECT 3 * + COUNT( * ) + + 29 + + 57 DIV + NULLIF ( + 57, + COUNT( - + 60 ) + - 89 )
----
33

skipif mysql # not compatible
query I rowsort label-9526
SELECT 3 * + COUNT ( * ) + + 29 + + 57 / + NULLIF ( + 57, + COUNT ( - + 60 ) + - 89 )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT ALL - 84 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL - 84 / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT DISTINCT - - SUM( ALL 6 )
----
6

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT - - SUM ( ALL 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT + COUNT( * ) + 75
----
76

skipif mysql # not compatible
query I rowsort label-9529
SELECT + COUNT ( * ) + 75
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-9530
SELECT + 93 AS col2, 72 + + 37 DIV + 12 AS col0
----
93
75

skipif mysql # not compatible
query II rowsort label-9530
SELECT + 93 AS col2, 72 + + 37 / + 12 AS col0
----
93
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9531
SELECT ALL - COUNT( * ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL - COUNT ( * ) / 67
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT + - COUNT( * ) * + CASE - - 67 WHEN + - 84 + - 2 * 43 * - 57 + - ( 16 ) THEN NULL ELSE + 2 / + CAST( NULL AS SIGNED ) - 29 END + 23 + - 94 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT + - COUNT ( * ) * + CASE - - 67 WHEN + - 84 + - 2 * 43 * - 57 + - ( 16 ) THEN NULL ELSE + 2 / + CAST ( NULL AS INTEGER ) - 29 END + 23 + - 94 / + COUNT ( * )
----
NULL

query II rowsort
SELECT - 16 * 85 + + + 60 AS col2, 43 col1
----
-1300
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT + - NULLIF ( - 63, - 27 + COUNT( * ) * + 72 )
----
63

skipif mysql # not compatible
query I rowsort label-9534
SELECT + - NULLIF ( - 63, - 27 + COUNT ( * ) * + 72 )
----
63

query II rowsort
SELECT + - 73, + 39 + - - 21 * - - ( - 61 ) AS col1
----
-73
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT ALL 99 + SUM( ( + 94 ) ) * + 57 + + + 51
----
5508

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL 99 + SUM ( ( + 94 ) ) * + 57 + + + 51
----
5508

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT + + COUNT( * ) * + 39 - 8
----
31

skipif mysql # not compatible
query I rowsort label-9537
SELECT + + COUNT ( * ) * + 39 - 8
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT ALL 26 + + COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL 26 + + COUNT ( * ) AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9539
SELECT ALL - ( + - 36 ) + + - COALESCE ( + + COALESCE ( + 62, + 48 * CAST( NULL AS SIGNED ) * + CASE 30 WHEN - 10 * 26 * - 31 - + + ( + + 91 ) DIV - ( - - NULLIF ( - + 90, 33 DIV 14 * 87 ) ) * - 90 THEN COALESCE ( - 82, + 75 * COUNT( * ) DIV 69 + + + 91 - - 47 ) DIV + 4 ELSE NULL END ), + 93, 47 * - NULLIF ( 7, + 88 DIV - 4 - 69 DIV COUNT( * ) ) + - 40 ) + 58 * - COUNT( * ) * NULLIF ( 95 * 5, + 18 ) AS col1
----
-27576

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL - ( + - 36 ) + + - COALESCE ( + + COALESCE ( + 62, + 48 * CAST ( NULL AS INTEGER ) * + CASE 30 WHEN - 10 * 26 * - 31 - + + ( + + 91 ) / - ( - - NULLIF ( - + 90, 33 / 14 * 87 ) ) * - 90 THEN COALESCE ( - 82, + 75 * COUNT ( * ) / 69 + + + 91 - - 47 ) / + 4 ELSE NULL END ), + 93, 47 * - NULLIF ( 7, + 88 / - 4 - 69 / COUNT ( * ) ) + - 40 ) + 58 * - COUNT ( * ) * NULLIF ( 95 * 5, + 18 ) AS col1
----
-27576

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL MIN( - - 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL MIN ( - - 67 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT ALL - + 2 + + 39 + - SUM( 31 ) * + + 10 * - 17 * - + 68
----
-358323

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL - + 2 + + 39 + - SUM ( 31 ) * + + 10 * - 17 * - + 68
----
-358323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT CASE + COUNT( * ) WHEN - - 39 + - CAST( NULL AS SIGNED ) * ( + - COUNT( * ) ) THEN NULL ELSE + - 64 + 73 END + - COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9542
SELECT CASE + COUNT ( * ) WHEN - - 39 + - CAST ( NULL AS INTEGER ) * ( + - COUNT ( * ) ) THEN NULL ELSE + - 64 + 73 END + - COUNT ( * ) AS col1
----
8

query I rowsort
SELECT 23 - 74 + + ( - 16 ) AS col1
----
-67

query I rowsort
SELECT 32 - 10 AS col0
----
22

onlyif mysql # aggregate syntax: 
query III rowsort label-9545
SELECT 42 + - COUNT( DISTINCT 17 ) + - - 25 AS col1, - 45 AS col0, 4 AS col0
----
66
-45
4

skipif mysql # not compatible
query III rowsort label-9545
SELECT 42 + - COUNT ( DISTINCT 17 ) + - - 25 AS col1, - 45 AS col0, 4 AS col0
----
66
-45
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL + ( - - 22 ) - CASE + 34 WHEN - 77 THEN NULL ELSE + ( - 22 ) END - 70 + - SUM( + 57 ) + 47 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + ( - - 22 ) - CASE + 34 WHEN - 77 THEN NULL ELSE + ( - 22 ) END - 70 + - SUM ( + 57 ) + 47 AS col0
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9547
SELECT CAST( NULL AS DECIMAL ) * 81 / - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT CAST ( NULL AS REAL ) * 81 / - 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9548
SELECT 22 + COUNT( - ( - CASE CAST( NULL AS SIGNED ) WHEN - ( 92 ) THEN 78 WHEN + 39 THEN - + 57 WHEN 88 + 81 THEN NULL END ) )
----
22

skipif mysql # not compatible
query I rowsort label-9548
SELECT 22 + COUNT ( - ( - CASE CAST ( NULL AS INTEGER ) WHEN - ( 92 ) THEN 78 WHEN + 39 THEN - + 57 WHEN 88 + 81 THEN NULL END ) )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL + MIN( ALL + - 0 ) * - 45
----
0

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL + MIN ( ALL + - 0 ) * - 45
----
0

query I rowsort
SELECT 38 * - 99 col0
----
-3762

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9551
SELECT 57 DIV + 1 AS col1, 65 DIV - - MIN( DISTINCT - - 74 )
----
57
0

skipif mysql # not compatible
query II rowsort label-9551
SELECT 57 / + 1 AS col1, 65 / - - MIN ( DISTINCT - - 74 )
----
57
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL - 68 * COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL - 68 * COUNT ( * ) AS col2
----
-68

query I rowsort
SELECT 28 + ( - 53 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT - NULLIF ( - 49, - SUM( ALL - - 68 ) * - - SUM( ALL + 34 ) / - AVG ( DISTINCT - 62 ) + + ( - COUNT( ALL + + 26 ) ) + 79 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT - NULLIF ( - 49, - SUM ( ALL - - 68 ) * - - SUM ( ALL + 34 ) / - AVG ( DISTINCT - 62 ) + + ( - COUNT ( ALL + + 26 ) ) + 79 ) AS col0
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-9555
SELECT 47 DIV - - ( + ( - 69 ) ) AS col0, + 27 + 43
----
0
70

skipif mysql # not compatible
query II rowsort label-9555
SELECT 47 / - - ( + ( - 69 ) ) AS col0, + 27 + 43
----
0
70

query I rowsort
SELECT ALL - ( - + 9 ) * - 41 col0
----
-369

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT DISTINCT + COUNT( * ) * + 99 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT + COUNT ( * ) * + 99 AS col1
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9558
SELECT DISTINCT - + COALESCE ( CASE - 21 WHEN 34 THEN COUNT( * ) END, - + 43 + - 10 ) DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT - + COALESCE ( CASE - 21 WHEN 34 THEN COUNT ( * ) END, - + 43 + - 10 ) / 93
----
0

query I rowsort
SELECT DISTINCT - - 16 col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT DISTINCT + COUNT( * ) * - 42 + - 36
----
-78

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + COUNT ( * ) * - 42 + - 36
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-9561
SELECT DISTINCT - 73 * + 92 + - COALESCE ( 19, + 66 DIV + - 43 + + 64 ) + - 30 + + + 32 AS col2
----
-6733

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT - 73 * + 92 + - COALESCE ( 19, + 66 / + - 43 + + 64 ) + - 30 + + + 32 AS col2
----
-6733

onlyif mysql # aggregate syntax: 
query II rowsort label-9562
SELECT ALL COUNT( * ) * - 93 + - COALESCE ( - 31, + + 61 + 30 + + 31 ) AS col1, + SUM( DISTINCT + 32 ) AS col2
----
-62
32

skipif mysql # not compatible
query II rowsort label-9562
SELECT ALL COUNT ( * ) * - 93 + - COALESCE ( - 31, + + 61 + 30 + + 31 ) AS col1, + SUM ( DISTINCT + 32 ) AS col2
----
-62
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT - 14 + + ( - SUM( ALL 32 ) ) + + - 82 * - 17 * 81 AS col2
----
112868

skipif mysql # not compatible
query I rowsort label-9563
SELECT - 14 + + ( - SUM ( ALL 32 ) ) + + - 82 * - 17 * 81 AS col2
----
112868

query I rowsort
SELECT + 53 + - 61 AS col2
----
-8

query I rowsort
SELECT DISTINCT + 61 * + 88 + + 55
----
5423

query II rowsort
SELECT DISTINCT - 50 + - 27 + - CASE + 46 WHEN - 95 * 52 * ( + 93 ) THEN - 91 + 81 END AS col1, - 38
----
NULL
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-9567
SELECT - 67 * - 26 + + 72 DIV + 84, + 29 DIV - 5 col2
----
1742
-5

skipif mysql # not compatible
query II rowsort label-9567
SELECT - 67 * - 26 + + 72 / + 84, + 29 / - 5 col2
----
1742
-5

query I rowsort
SELECT ALL - + 58 + 43 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9569
SELECT DISTINCT 29 + - - 71, + NULLIF ( + + ( + - 5 ), - 28 * - MIN( ALL - 19 ) * 63 + - 41 ) AS col1
----
100
-5

skipif mysql # not compatible
query II rowsort label-9569
SELECT DISTINCT 29 + - - 71, + NULLIF ( + + ( + - 5 ), - 28 * - MIN ( ALL - 19 ) * 63 + - 41 ) AS col1
----
100
-5

query I rowsort
SELECT ALL 33 + 14 AS col1
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9571
SELECT COALESCE ( + - MAX( + ( 16 ) ), + COUNT( * ) + - + CAST( - COUNT( * ) AS SIGNED ) ) AS col2, - 85 AS col1
----
-16
-85

skipif mysql # not compatible
query II rowsort label-9571
SELECT COALESCE ( + - MAX ( + ( 16 ) ), + COUNT ( * ) + - + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2, - 85 AS col1
----
-16
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9572
SELECT - 47 DIV + - 95 AS col2, + MAX( ALL - 88 ) + + 28 + - + COALESCE ( + - 27, CASE - 32 WHEN - - 36 THEN - 21 WHEN + 29 THEN NULL ELSE + + 56 END + COUNT( * ), + ( + 28 ) * + COUNT( * ) + + + 56 ) AS col2
----
0
-33

skipif mysql # not compatible
query II rowsort label-9572
SELECT - 47 / + - 95 AS col2, + MAX ( ALL - 88 ) + + 28 + - + COALESCE ( + - 27, CASE - 32 WHEN - - 36 THEN - 21 WHEN + 29 THEN NULL ELSE + + 56 END + COUNT ( * ), + ( + 28 ) * + COUNT ( * ) + + + 56 ) AS col2
----
0
-33

query I rowsort
SELECT ALL NULLIF ( - 33, - 85 ) - - 17 * 26 AS col1
----
409

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT + 82 + + MAX( 96 )
----
178

skipif mysql # not compatible
query I rowsort label-9574
SELECT + 82 + + MAX ( 96 )
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9575
SELECT ALL 88 - + CAST( MIN( 9 ) AS SIGNED ) * + 39, + 85 AS col1
----
-263
85

skipif mysql # not compatible
query II rowsort label-9575
SELECT ALL 88 - + CAST ( MIN ( 9 ) AS INTEGER ) * + 39, + 85 AS col1
----
-263
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9576
SELECT + 93 DIV + 27
----
3

skipif mysql # not compatible
query I rowsort label-9576
SELECT + 93 / + 27
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9577
SELECT ALL CASE 2 WHEN 10 + - - COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) * - + 46 THEN NULL WHEN - 94 THEN + CASE - - 46 WHEN + - CAST( NULL AS SIGNED ) THEN ( - 52 ) END * - 80 WHEN - + NULLIF ( + COUNT( * ), - - COUNT( * ) + + 59 + - 46 * - 40 - + ( + - 2 ) ) THEN - MAX( DISTINCT - + NULLIF ( 60, - - 26 ) ) END, + 87 AS col0
----
NULL
87

skipif mysql # not compatible
query II rowsort label-9577
SELECT ALL CASE 2 WHEN 10 + - - COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * - + 46 THEN NULL WHEN - 94 THEN + CASE - - 46 WHEN + - CAST ( NULL AS INTEGER ) THEN ( - 52 ) END * - 80 WHEN - + NULLIF ( + COUNT ( * ), - - COUNT ( * ) + + 59 + - 46 * - 40 - + ( + - 2 ) ) THEN - MAX ( DISTINCT - + NULLIF ( 60, - - 26 ) ) END, + 87 AS col0
----
NULL
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9578
SELECT DISTINCT 17 DIV - 86 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT 17 / - 86 * + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9579
SELECT - NULLIF ( ( + 25 ), + - MIN( ALL + 21 ) + - - 7 ) AS col0, + COUNT( - + ( 21 ) ) * - 31 AS col2
----
-25
-31

skipif mysql # not compatible
query II rowsort label-9579
SELECT - NULLIF ( ( + 25 ), + - MIN ( ALL + 21 ) + - - 7 ) AS col0, + COUNT ( - + ( 21 ) ) * - 31 AS col2
----
-25
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT ALL 52 - - - 32 - 68 * - 47 + + + 33 DIV + + 33 AS col2
----
3217

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL 52 - - - 32 - 68 * - 47 + + + 33 / + + 33 AS col2
----
3217

query I rowsort
SELECT + 63 * - + 63 col1
----
-3969

query II rowsort
SELECT 86 AS col1, 71 col0
----
86
71

query I rowsort
SELECT + 34 - 19
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9584
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * + - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * + - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT + 10 - + ( - 68 ) + + 40 + + ( + COUNT( * ) ) - - SUM( - 8 ) * + COUNT( * ) * + ( + - 93 ) + + - 80
----
783

skipif mysql # not compatible
query I rowsort label-9585
SELECT + 10 - + ( - 68 ) + + 40 + + ( + COUNT ( * ) ) - - SUM ( - 8 ) * + COUNT ( * ) * + ( + - 93 ) + + - 80
----
783

query II rowsort
SELECT ALL 2 col0, - 70 col0
----
2
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT + 86 + + 40 + - COUNT( * )
----
125

skipif mysql # not compatible
query I rowsort label-9587
SELECT + 86 + + 40 + - COUNT ( * )
----
125

query II rowsort
SELECT ALL 5, - 48 AS col1
----
5
-48

query I rowsort
SELECT - 9 + + 49 AS col0
----
40

query II rowsort
SELECT 86 AS col2, + 73
----
86
73

query I rowsort
SELECT ALL + 0 + - 21
----
-21

query I rowsort
SELECT + 56 - 50 AS col0
----
6

query I rowsort
SELECT ALL - 37 * + + 55 AS col0
----
-2035

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT 79 + - + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT 79 + - + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT DISTINCT - COUNT( * ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT - COUNT ( * ) * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9596
SELECT DISTINCT - 6 DIV - COALESCE ( + + 31, + AVG ( DISTINCT + 64 ), - 64 + + ( - - 26 ) ) * 21 * - 90 - COUNT( * ) + 49 + - - 1 + + MAX( ALL + + 83 ) * 83 * 48 - + 80 + - 37 * COUNT( * )
----
330604

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT - 6 / - COALESCE ( + + 31, + AVG ( DISTINCT + 64 ), - 64 + + ( - - 26 ) ) * 21 * - 90 - COUNT ( * ) + 49 + - - 1 + + MAX ( ALL + + 83 ) * 83 * 48 - + 80 + - 37 * COUNT ( * )
----
330604

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT + ( + 35 ) * - + MIN( DISTINCT + + 78 ) + 82 AS col2
----
-2648

skipif mysql # not compatible
query I rowsort label-9597
SELECT + ( + 35 ) * - + MIN ( DISTINCT + + 78 ) + 82 AS col2
----
-2648

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT + - 76 DIV - + 97 + - - 84 * - 29 AS col0
----
-2436

skipif mysql # not compatible
query I rowsort label-9598
SELECT + - 76 / - + 97 + - - 84 * - 29 AS col0
----
-2436

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT + 26 * + - 76 + - SUM( + 79 ) * + MAX( DISTINCT - 87 )
----
4897

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT + 26 * + - 76 + - SUM ( + 79 ) * + MAX ( DISTINCT - 87 )
----
4897

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT ALL + COUNT( * ) AS col1, + 31 AS col0
----
1
31

skipif mysql # not compatible
query II rowsort label-9600
SELECT ALL + COUNT ( * ) AS col1, + 31 AS col0
----
1
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9601
SELECT - - 12 DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT - - 12 / - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT + - COUNT( ALL + 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + - COUNT ( ALL + 44 )
----
-1

query I rowsort
SELECT ALL + - 35 * + + 67 + - 41
----
-2386

query I rowsort
SELECT DISTINCT - 61 * + 71 + + 32 AS col2
----
-4299

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT - 18 + - 11 + - + 66 * ( - COUNT( * ) ) + + 29
----
66

skipif mysql # not compatible
query I rowsort label-9605
SELECT - 18 + - 11 + - + 66 * ( - COUNT ( * ) ) + + 29
----
66

query II rowsort
SELECT 20, 26 * - 78 AS col0
----
20
-2028

query I rowsort
SELECT COALESCE ( + 40, 82 * - 4, - - 69 + 68 - + 65 - + 35 * - 29 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT - + 67 * - SUM( ALL + 12 ) + - + MIN( + - 31 ) * 32
----
1796

skipif mysql # not compatible
query I rowsort label-9608
SELECT - + 67 * - SUM ( ALL + 12 ) + - + MIN ( + - 31 ) * 32
----
1796

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT + + NULLIF ( - 53, + + 81 * + MIN( - - 84 ) * 15 / + - 97 )
----
-53

skipif mysql # not compatible
query I rowsort label-9609
SELECT + + NULLIF ( - 53, + + 81 * + MIN ( - - 84 ) * 15 / + - 97 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - 95 * + + 70 * + 43 * COUNT( * ) * - 97 + + + COUNT( * ) col1
----
27737151

skipif mysql # not compatible
query I rowsort label-9610
SELECT - 95 * + + 70 * + 43 * COUNT ( * ) * - 97 + + + COUNT ( * ) col1
----
27737151

query I rowsort
SELECT - 52 * + 7 AS col1
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL 64 * + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL 64 * + - COUNT ( * )
----
-64

query I rowsort
SELECT - 70 + + 39 AS col0
----
-31

query I rowsort
SELECT ALL - NULLIF ( 43, - ( - 52 ) - + - 35 ) * - 3
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9615
SELECT ALL 80 AS col2, - 97 * + CAST( + 96 AS SIGNED ) AS col1
----
80
-9312

skipif mysql # not compatible
query II rowsort label-9615
SELECT ALL 80 AS col2, - 97 * + CAST ( + 96 AS INTEGER ) AS col1
----
80
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9616
SELECT DISTINCT - 85 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT - 85 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9617
SELECT DISTINCT CAST( + + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT CAST ( + + 67 AS INTEGER )
----
67

query I rowsort
SELECT - 34 + - 78 + + 5 + + - 84 + - 26 + - 22 AS col1
----
-239

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT + 40 DIV - 19
----
-2

skipif mysql # not compatible
query I rowsort label-9619
SELECT + 40 / - 19
----
-2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9620
SELECT DISTINCT CAST( NULL AS SIGNED ) col0, - CAST( NULL AS DECIMAL ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9620
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, - CAST ( NULL AS REAL ) AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT ALL CAST( + ( 27 ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL CAST ( + ( 27 ) AS INTEGER )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + 57 * - 98 - COUNT( * ) * COUNT( * )
----
-5587

skipif mysql # not compatible
query I rowsort label-9622
SELECT + 57 * - 98 - COUNT ( * ) * COUNT ( * )
----
-5587

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT - 86 + - + COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9623
SELECT - 86 + - + COUNT ( * ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + SUM( DISTINCT 85 ) + + 60 AS col0
----
145

skipif mysql # not compatible
query I rowsort label-9624
SELECT + SUM ( DISTINCT 85 ) + + 60 AS col0
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-9625
SELECT ALL 98 DIV 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL 98 / 37 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9626
SELECT - 4 DIV - CASE WHEN NOT 64 < + NULLIF ( - 61, - 3 ) THEN - 44 END * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9626
SELECT - 4 / - CASE WHEN NOT 64 < + NULLIF ( - 61, - 3 ) THEN - 44 END * + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT + 68 + 41 + + 77 AS col2
----
186

query I rowsort
SELECT - NULLIF ( - - 56, + 0 * - ( - 82 ) ) AS col1
----
-56

query I rowsort
SELECT ALL 92 + + 5 col0
----
97

query I rowsort
SELECT ALL 50 + + 56 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT + SUM( - - 61 ) + 25
----
86

skipif mysql # not compatible
query I rowsort label-9631
SELECT + SUM ( - - 61 ) + 25
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9632
SELECT ALL + ( + + 72 ) DIV 39
----
1

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL + ( + + 72 ) / 39
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9633
SELECT + SUM( + + 32 ) DIV - - 79 + - 75 col2
----
-75

skipif mysql # not compatible
query I rowsort label-9633
SELECT + SUM ( + + 32 ) / - - 79 + - 75 col2
----
-75

query I rowsort
SELECT + 32 + - 9
----
23

query I rowsort
SELECT DISTINCT 97 * + 61 * + 3 AS col1
----
17751

query I rowsort
SELECT ALL 56 + 95 + + COALESCE ( - - 11, + 54 ) + + + 58 * - - 95 * + 38 AS col2
----
209542

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT - COUNT( * ) * - - 71 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-9637
SELECT - COUNT ( * ) * - - 71 AS col1
----
-71

query I rowsort
SELECT DISTINCT + 86 + - 72 AS col1
----
14

query I rowsort
SELECT DISTINCT 39 + - 63 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT ALL + MIN( DISTINCT - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL + MIN ( DISTINCT - 56 )
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9641
SELECT - - NULLIF ( COALESCE ( 35, 29 * MAX( + 17 ) + - 43 DIV - COUNT( * ) + - - ( + + COUNT( * ) ) ), + 92 ) col2
----
35

skipif mysql # not compatible
query I rowsort label-9641
SELECT - - NULLIF ( COALESCE ( 35, 29 * MAX ( + 17 ) + - 43 / - COUNT ( * ) + - - ( + + COUNT ( * ) ) ), + 92 ) col2
----
35

query II rowsort
SELECT 99 col1, - 42 + + 34 AS col2
----
99
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT ALL + CAST( + 61 AS SIGNED ) + - 90
----
-29

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL + CAST ( + 61 AS INTEGER ) + - 90
----
-29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-9644
SELECT ALL + 68 col0, 82 * 28 DIV 87 * + + CAST( + 48 AS SIGNED ) * 92, + 38 AS col0
----
68
114816
38

skipif mysql # not compatible
query III rowsort label-9644
SELECT ALL + 68 col0, 82 * 28 / 87 * + + CAST ( + 48 AS INTEGER ) * 92, + 38 AS col0
----
68
114816
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9645
SELECT 56 / + + CAST( NULL AS SIGNED ) + + 54 - + 29, CAST( NULL AS SIGNED ) * + 16 col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9645
SELECT 56 / + + CAST ( NULL AS INTEGER ) + + 54 - + 29, CAST ( NULL AS INTEGER ) * + 16 col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL + - COALESCE ( + 55, CAST( NULL AS SIGNED ) + - + 6 * + NULLIF ( - + 93, + 73 - 56 ) )
----
-55

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL + - COALESCE ( + 55, CAST ( NULL AS INTEGER ) + - + 6 * + NULLIF ( - + 93, + 73 - 56 ) )
----
-55

query I rowsort
SELECT + 53 * - 7 AS col2
----
-371

query I rowsort
SELECT ALL - NULLIF ( + 34, + 74 ) * + 93 - - - ( 6 ) + 73 * 26
----
-1270

query I rowsort
SELECT 4 + 62
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT ALL - 1 DIV + 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL - 1 / + 68 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9651
SELECT + MIN( ALL - - CAST( - 58 AS SIGNED ) )
----
-58

skipif mysql # not compatible
query I rowsort label-9651
SELECT + MIN ( ALL - - CAST ( - 58 AS INTEGER ) )
----
-58

query II rowsort
SELECT - 20 - + 59, 95 col0
----
-79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT - COUNT( - 33 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9653
SELECT - COUNT ( - 33 ) AS col2
----
-1

query I rowsort
SELECT ALL + + 91 - 2
----
89

query I rowsort
SELECT DISTINCT - 7 * 92 AS col2
----
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT ALL - SUM( ALL + - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL - SUM ( ALL + - 29 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9657
SELECT DISTINCT + 26 DIV - 54 * + + NULLIF ( + 92, - + COUNT( * ) - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT + 26 / - 54 * + + NULLIF ( + 92, - + COUNT ( * ) - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT ALL + 17 DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL + 17 / 28
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9659
SELECT 41 * 95 DIV + 89 * COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-9659
SELECT 41 * 95 / + 89 * COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9660
SELECT DISTINCT - ( MAX( DISTINCT 54 ) ) AS col0, + ( - 98 ) * 65
----
-54
-6370

skipif mysql # not compatible
query II rowsort label-9660
SELECT DISTINCT - ( MAX ( DISTINCT 54 ) ) AS col0, + ( - 98 ) * 65
----
-54
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT + MAX( - 82 ) * + 18 + - + NULLIF ( + 11, - + COUNT( * ) * 59 ) + + 70 + - 5
----
-1422

skipif mysql # not compatible
query I rowsort label-9661
SELECT + MAX ( - 82 ) * + 18 + - + NULLIF ( + 11, - + COUNT ( * ) * 59 ) + + 70 + - 5
----
-1422

query I rowsort
SELECT DISTINCT - 54 * + ( 48 )
----
-2592

query I rowsort
SELECT 41 * - + ( 34 )
----
-1394

query I rowsort
SELECT DISTINCT + 36 + 8
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9665
SELECT ALL - 82 + - - 24 AS col1, - 4 DIV COUNT( * ) AS col1
----
-58
-4

skipif mysql # not compatible
query II rowsort label-9665
SELECT ALL - 82 + - - 24 AS col1, - 4 / COUNT ( * ) AS col1
----
-58
-4

query I rowsort
SELECT 66 * + 16 * 41 col1
----
43296

query I rowsort
SELECT DISTINCT + 37 + 6 * 81 AS col2
----
523

query I rowsort
SELECT ALL - 82 + 92 + - 39 + - ( 6 ) + + + 34 + ( 50 )
----
49

query I rowsort
SELECT 47 - + + COALESCE ( - 60, 38 ) + + 42 AS col1
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-9670
SELECT DISTINCT - 23 DIV - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT - 23 / - 66 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT ALL COUNT( 97 ) * + - 49 * + + 37 AS col1
----
-1813

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL COUNT ( 97 ) * + - 49 * + + 37 AS col1
----
-1813

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT ALL CASE - 99 WHEN COUNT( - + 86 ) THEN NULL ELSE - + ( + 47 ) + - + 19 - + 3 + - + 46 END - 49 AS col2, 39
----
-164
39

skipif mysql # not compatible
query II rowsort label-9672
SELECT ALL CASE - 99 WHEN COUNT ( - + 86 ) THEN NULL ELSE - + ( + 47 ) + - + 19 - + 3 + - + 46 END - 49 AS col2, 39
----
-164
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9673
SELECT 42 + + COUNT( * ) AS col2, 80 DIV + - 67 + - 67 col0
----
43
-68

skipif mysql # not compatible
query II rowsort label-9673
SELECT 42 + + COUNT ( * ) AS col2, 80 / + - 67 + - 67 col0
----
43
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT ( - - 47 ) * - - 19 * + COUNT( * )
----
893

skipif mysql # not compatible
query I rowsort label-9674
SELECT ( - - 47 ) * - - 19 * + COUNT ( * )
----
893

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL - 71 - + 38 - - MAX( ALL + 60 )
----
-49

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - 71 - + 38 - - MAX ( ALL + 60 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT + 91 * + + 45 + - COUNT( * ) + ( + + MAX( - 34 ) )
----
4060

skipif mysql # not compatible
query I rowsort label-9676
SELECT + 91 * + + 45 + - COUNT ( * ) + ( + + MAX ( - 34 ) )
----
4060

query I rowsort
SELECT DISTINCT - + COALESCE ( 2, + 26, + - ( + 90 ) + 41 + - 95 * + 67 ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT + + CAST( + 21 AS SIGNED ) col0
----
21

skipif mysql # not compatible
query I rowsort label-9678
SELECT + + CAST ( + 21 AS INTEGER ) col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9679
SELECT ALL - - CAST( - 17 AS SIGNED ), 70 AS col2
----
-17
70

skipif mysql # not compatible
query II rowsort label-9679
SELECT ALL - - CAST ( - 17 AS INTEGER ), 70 AS col2
----
-17
70

query I rowsort
SELECT DISTINCT - 78 * - COALESCE ( + + 75, + 64 + + - 71 )
----
5850

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT ( + COUNT( * ) ) * 89 AS col0, + MIN( DISTINCT + 64 ) * - 23 * - 70 + + 41
----
89
103081

skipif mysql # not compatible
query II rowsort label-9681
SELECT ( + COUNT ( * ) ) * 89 AS col0, + MIN ( DISTINCT + 64 ) * - 23 * - 70 + + 41
----
89
103081

query I rowsort
SELECT ALL + 40 * - - 98
----
3920

query I rowsort
SELECT ALL 29 + - 50
----
-21

query I rowsort
SELECT 12 + + - 51 AS col0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT 51 DIV + - 77
----
0

skipif mysql # not compatible
query I rowsort label-9685
SELECT 51 / + - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT ( 3 ) + + 63 + - - COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9686
SELECT ( 3 ) + + 63 + - - COUNT ( * ) AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9687
SELECT ALL CAST( NULL AS SIGNED ) * 81 * 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL CAST ( NULL AS INTEGER ) * 81 * 90 AS col2
----
NULL

query I rowsort
SELECT ALL + 22 * - - 8
----
176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9689
SELECT CAST( NULL AS DECIMAL ) + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9689
SELECT CAST ( NULL AS REAL ) + + 8 AS col1
----
NULL

query I rowsort
SELECT ALL + 13 + + - 22
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - ( + - 8 ) * + 24 + - COUNT( * ) AS col2
----
191

skipif mysql # not compatible
query I rowsort label-9691
SELECT - ( + - 8 ) * + 24 + - COUNT ( * ) AS col2
----
191

query II rowsort
SELECT 57 + - 65 + 23 AS col1, + 81 * + 81
----
15
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT ALL - MAX( 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL - MAX ( 46 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9694
SELECT + 66 * 92 + 19 + + MAX( + - 98 ) + - - COUNT( * ) - + - 9 * CAST( NULL AS SIGNED ) / + COALESCE ( 9, - - 41 - + 30 * + MAX( 3 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT + 66 * 92 + 19 + + MAX ( + - 98 ) + - - COUNT ( * ) - + - 9 * CAST ( NULL AS INTEGER ) / + COALESCE ( 9, - - 41 - + 30 * + MAX ( 3 ) )
----
NULL

query I rowsort
SELECT DISTINCT - 96 + - 66
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT SUM( 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9696
SELECT SUM ( 97 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL - 36 - COUNT( * ) col1
----
-37

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL - 36 - COUNT ( * ) col1
----
-37

query I rowsort
SELECT ALL + - 41 * - 54 * - + 34 AS col2
----
-75276

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT + COUNT( * ) * + + 64 * + 48 + - - 42 + - + 12 * + 99
----
1926

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT + COUNT ( * ) * + + 64 * + 48 + - - 42 + - + 12 * + 99
----
1926

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT MIN( + 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-9700
SELECT MIN ( + 73 ) AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT - CAST( NULL AS SIGNED ) * 58 * + 70 - + 99 + 0 / - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT - CAST ( NULL AS INTEGER ) * 58 * + 70 - + 99 + 0 / - 76
----
NULL

query I rowsort
SELECT - 84 + - 2 AS col2
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9703
SELECT NULLIF ( - + 47, ( CAST( NULL AS SIGNED ) ) * + CAST( - + COUNT( * ) AS SIGNED ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-9703
SELECT NULLIF ( - + 47, ( CAST ( NULL AS INTEGER ) ) * + CAST ( - + COUNT ( * ) AS INTEGER ) ) AS col1
----
-47

query II rowsort
SELECT - 80 col0, + 97 AS col1
----
-80
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9705
SELECT + CAST( + 85 AS SIGNED ) + + COUNT( * ) col1, - COUNT( * ) DIV COUNT( * ) AS col0
----
86
-1

skipif mysql # not compatible
query II rowsort label-9705
SELECT + CAST ( + 85 AS INTEGER ) + + COUNT ( * ) col1, - COUNT ( * ) / COUNT ( * ) AS col0
----
86
-1

query I rowsort
SELECT - 11 * + 8
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT - 25 * + COUNT( * ) * - 7 - + 32 * + 61 * + 79 * - - 45 + - - 23
----
-6939162

skipif mysql # not compatible
query I rowsort label-9707
SELECT - 25 * + COUNT ( * ) * - 7 - + 32 * + 61 * + 79 * - - 45 + - - 23
----
-6939162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9708
SELECT - 28 DIV + COUNT( * ) + - 52 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-9708
SELECT - 28 / + COUNT ( * ) + - 52 AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9709
SELECT ALL - - 32 * - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL - - 32 * - - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 32 * - 78 + + + 16
----
-2480

query I rowsort
SELECT NULLIF ( + 39, - 56 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT + COALESCE ( - 62, COUNT( * ) * + 31 * + 4 + + COUNT( * ) )
----
-62

skipif mysql # not compatible
query I rowsort label-9712
SELECT + COALESCE ( - 62, COUNT ( * ) * + 31 * + 4 + + COUNT ( * ) )
----
-62

query I rowsort
SELECT - 11 * - 91 AS col0
----
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT CASE - + 75 WHEN - 67 THEN NULL WHEN - + 96 * - 64 - COUNT( * ) THEN NULL WHEN - + 38 / + COUNT( * ) THEN 98 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT CASE - + 75 WHEN - 67 THEN NULL WHEN - + 96 * - 64 - COUNT ( * ) THEN NULL WHEN - + 38 / + COUNT ( * ) THEN 98 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9715
SELECT ALL CAST( 46 AS SIGNED ) * 75 AS col1
----
3450

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL CAST ( 46 AS INTEGER ) * 75 AS col1
----
3450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9716
SELECT + CAST( NULL AS SIGNED ) / - + COALESCE ( - 98, - - ( 9 ) ) + + 53 + + 11 col1, - MAX( - 61 )
----
NULL
61

skipif mysql # not compatible
query II rowsort label-9716
SELECT + CAST ( NULL AS INTEGER ) / - + COALESCE ( - 98, - - ( 9 ) ) + + 53 + + 11 col1, - MAX ( - 61 )
----
NULL
61

query I rowsort
SELECT DISTINCT 94 * - - 2 + 44
----
232

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT DISTINCT + COUNT( 67 ) AS col1, - 67
----
1
-67

skipif mysql # not compatible
query II rowsort label-9718
SELECT DISTINCT + COUNT ( 67 ) AS col1, - 67
----
1
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT MIN( ALL + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9719
SELECT MIN ( ALL + 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT ALL COUNT( * ) * - 48 * MAX( ALL + - 68 ) + - 55 + + 87 AS col2
----
3296

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL COUNT ( * ) * - 48 * MAX ( ALL + - 68 ) + - 55 + + 87 AS col2
----
3296

query I rowsort
SELECT ALL + 91 * + 52 AS col2
----
4732

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT COUNT( ALL + ( - + 89 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9722
SELECT COUNT ( ALL + ( - + 89 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT + 21 * - + COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-9723
SELECT + 21 * - + COUNT ( * ) AS col1
----
-21

query I rowsort
SELECT + 27 * 72 * + 49 col1
----
95256

query I rowsort
SELECT ALL 68 * - + ( + 57 ) * - 82 * + 69
----
21930408

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9726
SELECT - 79 DIV CAST( + 87 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9726
SELECT - 79 / CAST ( + 87 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT + 91 * COALESCE ( + ( 20 ), 82, - 74, - 0 )
----
1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9728
SELECT - COUNT( * ) * + 2 * - - MIN( ALL CAST( NULL AS SIGNED ) ), ( 64 ) AS col0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-9728
SELECT - COUNT ( * ) * + 2 * - - MIN ( ALL CAST ( NULL AS INTEGER ) ), ( 64 ) AS col0
----
NULL
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9729
SELECT - - 35 * - NULLIF ( + 11, - 66 * + 56 * - COUNT( * ) + - ( + COALESCE ( 91, 44 ) ) + - 29 + - 32 + - 58 + - CAST( NULL AS SIGNED ) * + COUNT( * ) ) AS col0
----
-385

skipif mysql # not compatible
query I rowsort label-9729
SELECT - - 35 * - NULLIF ( + 11, - 66 * + 56 * - COUNT ( * ) + - ( + COALESCE ( 91, 44 ) ) + - 29 + - 32 + - 58 + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) AS col0
----
-385

query I rowsort
SELECT + 59 + - 82
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-9731
SELECT ALL - + 85 DIV - 95 * + - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL - + 85 / - 95 * + - 91 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9732
SELECT + + COUNT( * ) * + + COUNT( * ) DIV + 17 * + 89 * 46
----
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT + + COUNT ( * ) * + + COUNT ( * ) / + 17 * + 89 * 46
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9733
SELECT + - CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) + + + 37 + - + 26 + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9733
SELECT + - CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) + + + 37 + - + 26 + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL + 89 * COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL + 89 * COUNT ( * ) AS col1
----
89

query I rowsort
SELECT - + 8 + 68
----
60

query I rowsort
SELECT DISTINCT - 39 + + + 45 * + 1
----
6

query II rowsort
SELECT - - 34 + + 17, 19 AS col2
----
51
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL - 28 * - SUM( DISTINCT - 84 ) * - COUNT( - 70 ) + 30 + 80 * - - 48 AS col0
----
6222

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - 28 * - SUM ( DISTINCT - 84 ) * - COUNT ( - 70 ) + 30 + 80 * - - 48 AS col0
----
6222

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT - 45 * CASE - + 55 WHEN + 18 + - MAX( - 70 ) THEN + + 8 / + + 72 + + - CASE - COUNT( * ) WHEN + - 62 THEN 27 END / + 20 WHEN + AVG ( + 24 ) THEN - 81 + - 25 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9739
SELECT - 45 * CASE - + 55 WHEN + 18 + - MAX ( - 70 ) THEN + + 8 / + + 72 + + - CASE - COUNT ( * ) WHEN + - 62 THEN 27 END / + 20 WHEN + AVG ( + 24 ) THEN - 81 + - 25 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT - CAST( + - NULLIF ( - 98, + 71 ) AS SIGNED ) - - COUNT( * ) * 37
----
-61

skipif mysql # not compatible
query I rowsort label-9740
SELECT - CAST ( + - NULLIF ( - 98, + 71 ) AS INTEGER ) - - COUNT ( * ) * 37
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9741
SELECT ALL - 93 DIV - MIN( + + 15 ) + - 31 + + - 6 + 18 + 36
----
23

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - 93 / - MIN ( + + 15 ) + - 31 + + - 6 + 18 + 36
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT - 88 DIV + 73
----
-1

skipif mysql # not compatible
query I rowsort label-9742
SELECT - 88 / + 73
----
-1

query I rowsort
SELECT + 93 * - 41 AS col1
----
-3813

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9744
SELECT ALL 84 DIV 1 + - CAST( COUNT( * ) AS SIGNED ) * 24
----
60

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL 84 / 1 + - CAST ( COUNT ( * ) AS INTEGER ) * 24
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9745
SELECT DISTINCT - COUNT( * ) DIV - 62 + - 33 col1
----
-33

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT - COUNT ( * ) / - 62 + - 33 col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9746
SELECT + 78 * CASE 14 WHEN + + SUM( + 74 ) * - 23 THEN NULL ELSE 16 * - 49 * + CAST( NULL AS SIGNED ) / 23 END + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT + 78 * CASE 14 WHEN + + SUM ( + 74 ) * - 23 THEN NULL ELSE 16 * - 49 * + CAST ( NULL AS INTEGER ) / 23 END + + 93 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9747
SELECT + CASE - COALESCE ( + - COUNT( * ), + 51 + + 33 ) WHEN - - COUNT( * ) / - + MIN( - - 75 ) - - CASE CAST( - ( + 50 ) AS SIGNED ) WHEN - + 62 + + COUNT( * ) * ( + - 93 ) THEN - - NULLIF ( - - 29, - 6 ) * + COALESCE ( - CAST( NULL AS DECIMAL ), 87 ) * + 83 END THEN 22 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT + CASE - COALESCE ( + - COUNT ( * ), + 51 + + 33 ) WHEN - - COUNT ( * ) / - + MIN ( - - 75 ) - - CASE CAST ( - ( + 50 ) AS INTEGER ) WHEN - + 62 + + COUNT ( * ) * ( + - 93 ) THEN - - NULLIF ( - - 29, - 6 ) * + COALESCE ( - CAST ( NULL AS REAL ), 87 ) * + 83 END THEN 22 END AS col0
----
NULL

query I rowsort
SELECT ALL - 96 * + 12 AS col2
----
-1152

query I rowsort
SELECT - 4 * - + 42 AS col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT + COALESCE ( - + 27, - MAX( - 30 ) * 13 + + 54 )
----
-27

skipif mysql # not compatible
query I rowsort label-9750
SELECT + COALESCE ( - + 27, - MAX ( - 30 ) * 13 + + 54 )
----
-27

query I rowsort
SELECT - 21 + 32 col1
----
11

query I rowsort
SELECT ALL + 23 * COALESCE ( 60, + 92 + + 57 ) * 53 AS col2
----
73140

query I rowsort
SELECT + 58 * 12 * 53 + 28 + - 45 AS col0
----
36871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9754
SELECT DISTINCT + COALESCE ( - + 4, - 65 - - 94 DIV MAX( DISTINCT 39 ) ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT + COALESCE ( - + 4, - 65 - - 94 / MAX ( DISTINCT 39 ) ) AS col1
----
-4

query I rowsort
SELECT ALL + ( - 22 ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT MIN( ALL 36 ) + + 48 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9756
SELECT MIN ( ALL 36 ) + + 48 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9757
SELECT - - CASE - 23 WHEN + + 54 THEN NULL WHEN - 35 + - + CAST( NULL AS SIGNED ) * - 86 THEN + 67 / - - 61 ELSE NULL END * COUNT( * ) * + + 87 + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT - - CASE - 23 WHEN + + 54 THEN NULL WHEN - 35 + - + CAST ( NULL AS INTEGER ) * - 86 THEN + 67 / - - 61 ELSE NULL END * COUNT ( * ) * + + 87 + + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT - COUNT( + 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-9758
SELECT - COUNT ( + 38 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT + COUNT( * ) + - + 94 * - 68 AS col0
----
6393

skipif mysql # not compatible
query I rowsort label-9759
SELECT + COUNT ( * ) + - + 94 * - 68 AS col0
----
6393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9760
SELECT CAST( + 17 AS SIGNED ) * 74 AS col2, MAX( + + 98 ) * 93 * + 69 col2
----
1258
628866

skipif mysql # not compatible
query II rowsort label-9760
SELECT CAST ( + 17 AS INTEGER ) * 74 AS col2, MAX ( + + 98 ) * 93 * + 69 col2
----
1258
628866

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT 17 + 87 + - COUNT( * ) * + 99 + + 44 * 43 AS col2
----
1897

skipif mysql # not compatible
query I rowsort label-9761
SELECT 17 + 87 + - COUNT ( * ) * + 99 + + 44 * 43 AS col2
----
1897

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT DISTINCT MAX( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT MAX ( 45 )
----
45

query I rowsort
SELECT ALL - 1 + COALESCE ( - + 66, 47, 26, + 7 ) * + + COALESCE ( - 66, - 81, - - 18 + + 16 )
----
4355

query I rowsort
SELECT DISTINCT - 90 + + 66
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT - COUNT( * ) * + + 45 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9765
SELECT - COUNT ( * ) * + + 45 AS col0
----
-45

query I rowsort
SELECT - 87 * 13
----
-1131

query I rowsort
SELECT 65 * + 35 * - 32 - - 22 * 55 AS col1
----
-71590

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT CASE - + COUNT( * ) WHEN + 75 THEN NULL WHEN - 11 THEN NULL ELSE 19 END col1
----
19

skipif mysql # not compatible
query I rowsort label-9768
SELECT CASE - + COUNT ( * ) WHEN + 75 THEN NULL WHEN - 11 THEN NULL ELSE 19 END col1
----
19

query II rowsort
SELECT - 19, + 17 AS col0
----
-19
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT ALL + 63 + + COALESCE ( - + 87, + 23 * 30 DIV 43 ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL + 63 + + COALESCE ( - + 87, + 23 * 30 / 43 ) col2
----
-24

query I rowsort
SELECT DISTINCT - 9 * - + 68 * 38
----
23256

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT 67 + + MAX( + 38 ) AS col0
----
105

skipif mysql # not compatible
query I rowsort label-9772
SELECT 67 + + MAX ( + 38 ) AS col0
----
105

query I rowsort
SELECT ALL - 82 - 25 AS col1
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT - 9 * + - COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT - 9 * + - COUNT ( * ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT 82 + - + ( - - 50 ) - - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9775
SELECT 82 + - + ( - - 50 ) - - COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT 86 * - - MIN( - + 21 )
----
-1806

skipif mysql # not compatible
query I rowsort label-9776
SELECT 86 * - - MIN ( - + 21 )
----
-1806

query II rowsort
SELECT 42 col1, - NULLIF ( + 50, 71 )
----
42
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9778
SELECT 12 AS col2, CAST( 52 AS SIGNED ) AS col1
----
12
52

skipif mysql # not compatible
query II rowsort label-9778
SELECT 12 AS col2, CAST ( 52 AS INTEGER ) AS col1
----
12
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL - NULLIF ( COUNT( * ), 81 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL - NULLIF ( COUNT ( * ), 81 ) AS col0
----
-1

query I rowsort
SELECT 76 * - 79 * + 77
----
-462308

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT DISTINCT - 1 - - + 11 DIV - + 3
----
-4

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT - 1 - - + 11 / - + 3
----
-4

query II rowsort
SELECT + 5 AS col2, + 25
----
5
25

query I rowsort
SELECT 1 * + 95
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9784
SELECT COUNT( * ) DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-9784
SELECT COUNT ( * ) / + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT DISTINCT + 47 * - + 18 * - MAX( ALL - 33 ) * - + 88
----
2456784

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT + 47 * - + 18 * - MAX ( ALL - 33 ) * - + 88
----
2456784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9786
SELECT + 22 * - COALESCE ( 80, CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) + + COUNT( * ) + - 34 / - 19 - - + SUM( + - 92 ) + + 72 / COUNT( + + 90 ) * + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + ( 41 ) - + - CASE - - 35 WHEN 42 THEN NULL WHEN - ( - 30 ) THEN + + 62 END * - + COUNT( ALL - ( - ( 90 ) ) ) * + - 22 * 38, 97 * + + CAST( NULL AS SIGNED ) + + 29 + NULLIF ( - 84, NULLIF ( 44, 23 * 30 + ( - 3 + + ( ( 88 ) - ( - 1 ) ) * + 64 ) ) - 19 ) + + CASE 10 WHEN - 2 - + 55 THEN ( 58 ) + - COALESCE ( 6, - CAST( NULL AS SIGNED ) / 24, - SUM( 35 ) ) ELSE COUNT( DISTINCT ( 52 ) ) END * 55 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9786
SELECT + 22 * - COALESCE ( 80, CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) + + COUNT ( * ) + - 34 / - 19 - - + SUM ( + - 92 ) + + 72 / COUNT ( + + 90 ) * + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + ( 41 ) - + - CASE - - 35 WHEN 42 THEN NULL WHEN - ( - 30 ) THEN + + 62 END * - + COUNT ( ALL - ( - ( 90 ) ) ) * + - 22 * 38, 97 * + + CAST ( NULL AS INTEGER ) + + 29 + NULLIF ( - 84, NULLIF ( 44, 23 * 30 + ( - 3 + + ( ( 88 ) - ( - 1 ) ) * + 64 ) ) - 19 ) + + CASE 10 WHEN - 2 - + 55 THEN ( 58 ) + - COALESCE ( 6, - CAST ( NULL AS INTEGER ) / 24, - SUM ( 35 ) ) ELSE COUNT ( DISTINCT ( 52 ) ) END * 55 AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9787
SELECT + 2 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-9787
SELECT + 2 / 40
----
0

query I rowsort
SELECT ALL + + 43 * + + 46 * + - 5
----
-9890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9789
SELECT - 50 / - - 60 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9789
SELECT - 50 / - - 60 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - + ( - - 13 ) AS col2, 72
----
-13
72

query I rowsort
SELECT ALL + 53 + - + 91 + - 84 col0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT - 77 - + COUNT( * ) + - 38 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-9792
SELECT - 77 - + COUNT ( * ) + - 38 AS col2
----
-116

query I rowsort
SELECT ALL + 30 + 25 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT - SUM( DISTINCT 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9794
SELECT - SUM ( DISTINCT 5 ) AS col2
----
-5

query I rowsort
SELECT + 0 * - 21
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9796
SELECT DISTINCT - 70 AS col0, - 92 * + COUNT( * ) * 91
----
-70
-8372

skipif mysql # not compatible
query II rowsort label-9796
SELECT DISTINCT - 70 AS col0, - 92 * + COUNT ( * ) * 91
----
-70
-8372

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9797
SELECT - NULLIF ( CAST( NULL AS DECIMAL ), - 29 + - COUNT( * ) ) * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT - NULLIF ( CAST ( NULL AS REAL ), - 29 + - COUNT ( * ) ) * - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - COALESCE ( + COUNT( * ), 87 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9798
SELECT - COALESCE ( + COUNT ( * ), 87 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT CASE - ( + 70 ) WHEN - COUNT( * ) + - + COUNT( * ) + 84 * + 24 THEN 53 WHEN NULLIF ( + - SUM( 63 ), + + 81 ) THEN - 37 END + + 71 + + 57 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT CASE - ( + 70 ) WHEN - COUNT ( * ) + - + COUNT ( * ) + 84 * + 24 THEN 53 WHEN NULLIF ( + - SUM ( 63 ), + + 81 ) THEN - 37 END + + 71 + + 57 col2
----
NULL

query I rowsort
SELECT + 40 - + ( + 13 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9801
SELECT - - 21 AS col0, 63 + - COUNT( * ) AS col0
----
21
62

skipif mysql # not compatible
query II rowsort label-9801
SELECT - - 21 AS col0, 63 + - COUNT ( * ) AS col0
----
21
62

query I rowsort
SELECT 80 * + 55 AS col2
----
4400

query I rowsort
SELECT ALL 24 + - - 27 + 12 AS col2
----
63

query I rowsort
SELECT DISTINCT 68 + 82 * + + 74 + + 47
----
6183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9805
SELECT ( - 12 ) + + + 90 AS col2, - SUM( ( + 91 ) ) + + 30 + + - 85 * + + 14 * - 27 * + 32 * CAST( NULL AS SIGNED ) + + MAX( ALL + 82 ) col1
----
78
NULL

skipif mysql # not compatible
query II rowsort label-9805
SELECT ( - 12 ) + + + 90 AS col2, - SUM ( ( + 91 ) ) + + 30 + + - 85 * + + 14 * - 27 * + 32 * CAST ( NULL AS INTEGER ) + + MAX ( ALL + 82 ) col1
----
78
NULL

query II rowsort
SELECT DISTINCT + 50 - + - 46, 84 col2
----
96
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT 86 * + COUNT( * ) * + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9807
SELECT 86 * + COUNT ( * ) * + COUNT ( * ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9808
SELECT COALESCE ( 33, - 59 * + 55, - - 36 DIV - 30 )
----
33

skipif mysql # not compatible
query I rowsort label-9808
SELECT COALESCE ( 33, - 59 * + 55, - - 36 / - 30 )
----
33

query I rowsort
SELECT DISTINCT 32 * - 34 - 38
----
-1126

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT + COUNT( * ) * + MIN( DISTINCT 10 ) col2
----
10

skipif mysql # not compatible
query I rowsort label-9810
SELECT + COUNT ( * ) * + MIN ( DISTINCT 10 ) col2
----
10

query I rowsort
SELECT ALL + 60 * + 11 * + 15 AS col1
----
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT - NULLIF ( - - 52, 91 - - 29 ) - - + COUNT( DISTINCT + 16 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9812
SELECT - NULLIF ( - - 52, 91 - - 29 ) - - + COUNT ( DISTINCT + 16 ) AS col1
----
-51

query I rowsort
SELECT - 97 * + + 15 AS col2
----
-1455

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT ALL 87 * + COUNT( DISTINCT + + 15 ) + + 31 * 61
----
1978

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL 87 * + COUNT ( DISTINCT + + 15 ) + + 31 * 61
----
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + NULLIF ( + 38, + COUNT( * ) ) + - + 88 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-9815
SELECT + NULLIF ( + 38, + COUNT ( * ) ) + - + 88 AS col0
----
-50

query I rowsort
SELECT - 12 * 5 - - 78 AS col2
----
18

query I rowsort
SELECT - 95 - + 55 AS col1
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9818
SELECT - 7 * - CAST( 93 AS SIGNED ) + 56 + - CAST( + NULLIF ( - 3, COUNT( * ) ) AS SIGNED ) DIV - 20 - + + 30 + 80 * - 71 - - + 48 * + 25
----
-3803

skipif mysql # not compatible
query I rowsort label-9818
SELECT - 7 * - CAST ( 93 AS INTEGER ) + 56 + - CAST ( + NULLIF ( - 3, COUNT ( * ) ) AS INTEGER ) / - 20 - + + 30 + 80 * - 71 - - + 48 * + 25
----
-3803

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9819
SELECT DISTINCT + - COALESCE ( - MAX( 64 ), - 64, - 75 ) * - COUNT( * ) + + 68 + + - CASE - 39 WHEN + 4 * + COALESCE ( + 6, + 75 ) + - - 64 + + ( + MIN( - 78 ) ) - + CAST( - - ( - + CAST( - COUNT( * ) AS SIGNED ) ) AS SIGNED ) + - - 89 + + 71 + + COUNT( * ) * 4 + - SUM( 8 ) / + - 65 * 4 * - COUNT( * ) + - 3 / + 66 * + 76 THEN NULL ELSE 45 * - CASE 2 WHEN ( 18 ) THEN 38 * - 18 ELSE 74 + 70 * + 54 END + 69 END * 12 AS col1
----
2080336

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + - COALESCE ( - MAX ( 64 ), - 64, - 75 ) * - COUNT ( * ) + + 68 + + - CASE - 39 WHEN + 4 * + COALESCE ( + 6, + 75 ) + - - 64 + + ( + MIN ( - 78 ) ) - + CAST ( - - ( - + CAST ( - COUNT ( * ) AS INTEGER ) ) AS INTEGER ) + - - 89 + + 71 + + COUNT ( * ) * 4 + - SUM ( 8 ) / + - 65 * 4 * - COUNT ( * ) + - 3 / + 66 * + 76 THEN NULL ELSE 45 * - CASE 2 WHEN ( 18 ) THEN 38 * - 18 ELSE 74 + 70 * + 54 END + 69 END * 12 AS col1
----
2080336

query II rowsort
SELECT ALL + 1 + + - NULLIF ( + 0, 43 * + - 38 ) AS col1, 5 col0
----
1
5

query I rowsort
SELECT - - 96 + + - 30
----
66

query I rowsort
SELECT - - 46 + + - 4 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT - + 35 * ( + + NULLIF ( - + CASE + 13 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + + 53 END, 69 ) )
----
1855

skipif mysql # not compatible
query I rowsort label-9823
SELECT - + 35 * ( + + NULLIF ( - + CASE + 13 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + + 53 END, 69 ) )
----
1855

query I rowsort
SELECT - 55 * - + 47 AS col0
----
2585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9825
SELECT ALL + NULLIF ( + CAST( - 64 AS SIGNED ), - 49 ) * - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL + NULLIF ( + CAST ( - 64 AS INTEGER ), - 49 ) * - COUNT ( * )
----
64

query I rowsort
SELECT - 78 * - 18
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT - 47 - + - MAX( DISTINCT - 46 )
----
-93

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT - 47 - + - MAX ( DISTINCT - 46 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT ALL + ( + NULLIF ( 52, + + COUNT( * ) * - COUNT( * ) + 17 ) ) col1
----
52

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL + ( + NULLIF ( 52, + + COUNT ( * ) * - COUNT ( * ) + 17 ) ) col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9829
SELECT - + 78 + - - COUNT( * ) + + CAST( NULL AS DECIMAL ) * 1 * + 55 / + CAST( NULL AS SIGNED ) * - 49 * - 54 + - MAX( DISTINCT + 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9829
SELECT - + 78 + - - COUNT ( * ) + + CAST ( NULL AS REAL ) * 1 * + 55 / + CAST ( NULL AS INTEGER ) * - 49 * - 54 + - MAX ( DISTINCT + 87 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT DISTINCT ( - CAST( ( 42 ) AS SIGNED ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT ( - CAST ( ( 42 ) AS INTEGER ) ) AS col1
----
-42

query I rowsort
SELECT + NULLIF ( - 43, 59 ) * - 46
----
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT - COUNT( * ) + - CASE + + COUNT( * ) WHEN + 23 THEN - 35 ELSE - 5 END + 15 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9832
SELECT - COUNT ( * ) + - CASE + + COUNT ( * ) WHEN + 23 THEN - 35 ELSE - 5 END + 15 AS col0
----
19

query I rowsort
SELECT - 81 - 99
----
-180

query I rowsort
SELECT + 4 + + - 90
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9835
SELECT + CAST( + + COUNT( * ) AS SIGNED ) DIV - - ( - - 46 ) + COALESCE ( + 98, - 69 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9835
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) / - - ( - - 46 ) + COALESCE ( + 98, - 69 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - COALESCE ( + COUNT( * ), CASE - 62 WHEN + 84 THEN + 11 * 53 WHEN 37 THEN - SUM( - + ( 84 ) ) END + + + COUNT( * ) * - - 16 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9836
SELECT - COALESCE ( + COUNT ( * ), CASE - 62 WHEN + 84 THEN + 11 * 53 WHEN 37 THEN - SUM ( - + ( 84 ) ) END + + + COUNT ( * ) * - - 16 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT + MIN( DISTINCT 5 ) + + SUM( ( 6 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-9837
SELECT + MIN ( DISTINCT 5 ) + + SUM ( ( 6 ) ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL + MAX( + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL + MAX ( + 81 )
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9839
SELECT + MIN( - 94 ) DIV 85 + ( + 62 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9839
SELECT + MIN ( - 94 ) / 85 + ( + 62 ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT CAST( - + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-9840
SELECT CAST ( - + 27 AS INTEGER )
----
-27

query I rowsort
SELECT DISTINCT 68 * - 48 col2
----
-3264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9842
SELECT + 97 DIV - - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-9842
SELECT + 97 / - - COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + 9 * - 1 * + COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9843
SELECT + 9 * - 1 * + COUNT ( * ) AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT ALL 55 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL 55 / + 61
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT + 61 DIV - - 36
----
1

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 61 / - - 36
----
1

query II rowsort
SELECT - + 86 + 66 + + - 11 AS col0, ( - 60 ) AS col0
----
-31
-60

query I rowsort
SELECT + + 75 * 63 AS col2
----
4725

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9848
SELECT DISTINCT + - 72 AS col2, CAST( NULL AS SIGNED ) * + CASE - - 31 WHEN + - 94 THEN - 29 * + 6 * 48 * + 58 WHEN + - 45 THEN + - 9 * - MAX( + ( + + 46 ) ) / COUNT( * ) + ( + 98 ) ELSE SUM( 44 ) END - - + 40 AS col1
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-9848
SELECT DISTINCT + - 72 AS col2, CAST ( NULL AS INTEGER ) * + CASE - - 31 WHEN + - 94 THEN - 29 * + 6 * 48 * + 58 WHEN + - 45 THEN + - 9 * - MAX ( + ( + + 46 ) ) / COUNT ( * ) + ( + 98 ) ELSE SUM ( 44 ) END - - + 40 AS col1
----
-72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT + + MIN( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-9849
SELECT + + MIN ( - 88 )
----
-88

query I rowsort
SELECT ALL + + ( + 78 )
----
78

query I rowsort
SELECT ALL - - ( 17 ) * - - ( 97 ) + - 45 AS col2
----
1604

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9852
SELECT DISTINCT + + 36 * + 11 + 78 + MAX( 45 ) DIV 93 * - 92 AS col1
----
474

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + + 36 * + 11 + 78 + MAX ( 45 ) / 93 * - 92 AS col1
----
474

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT + 12 - + - CASE + 56 WHEN - - 74 THEN + - COALESCE ( - - COUNT( * ), + ( + 76 ) + - 63 + - - COUNT( * ) ) / + 36 WHEN 10 * 38 * + COALESCE ( 86, - 99 + 57 * + 48 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9853
SELECT + 12 - + - CASE + 56 WHEN - - 74 THEN + - COALESCE ( - - COUNT ( * ), + ( + 76 ) + - 63 + - - COUNT ( * ) ) / + 36 WHEN 10 * 38 * + COALESCE ( 86, - 99 + 57 * + 48 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9854
SELECT + - 94 col0, 52 DIV 59 AS col0
----
-94
0

skipif mysql # not compatible
query II rowsort label-9854
SELECT + - 94 col0, 52 / 59 AS col0
----
-94
0

query II rowsort
SELECT + + 58, + 52 AS col1
----
58
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9856
SELECT 38, 9 + 71 - 68 * + 31 - CASE ( 69 ) WHEN - 76 + - + 84 THEN + + 86 - - + 67 / + 24 * + + ( + - COUNT( * ) ) WHEN + - ( - 51 ) * NULLIF ( + 31, + 10 ) THEN + 29 ELSE NULL END + 80 * + + 69 AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-9856
SELECT 38, 9 + 71 - 68 * + 31 - CASE ( 69 ) WHEN - 76 + - + 84 THEN + + 86 - - + 67 / + 24 * + + ( + - COUNT ( * ) ) WHEN + - ( - 51 ) * NULLIF ( + 31, + 10 ) THEN + 29 ELSE NULL END + 80 * + + 69 AS col2
----
38
NULL

query I rowsort
SELECT ( - - 64 ) AS col0
----
64

query II rowsort
SELECT DISTINCT - 92, + 72 AS col2
----
-92
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9859
SELECT ALL - - 95 DIV + - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - - 95 / + - COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9860
SELECT DISTINCT - + COALESCE ( + + COUNT( ALL 71 ), COUNT( * ) DIV - - ( + + 86 ) ) DIV - + 75
----
0

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT - + COALESCE ( + + COUNT ( ALL 71 ), COUNT ( * ) / - - ( + + 86 ) ) / - + 75
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT + 42 DIV + - 5 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9861
SELECT + 42 / + - 5 AS col1
----
-8

query I rowsort
SELECT - 11 * - - 34 col1
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT ALL ( - NULLIF ( + COUNT( * ), - - COUNT( * ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL ( - NULLIF ( + COUNT ( * ), - - COUNT ( * ) ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9864
SELECT - SUM( - 65 ) + + 67 - + 91 DIV 93
----
132

skipif mysql # not compatible
query I rowsort label-9864
SELECT - SUM ( - 65 ) + + 67 - + 91 / 93
----
132

query I rowsort
SELECT - ( 71 ) * 75
----
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT - 58 + - COUNT( DISTINCT 33 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9866
SELECT - 58 + - COUNT ( DISTINCT 33 ) AS col1
----
-59

query I rowsort
SELECT + 63 - - 90
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT - ( - - 35 ) * 0 - + - COALESCE ( - 50, 84 * - + COUNT( * ) + + 34, + 23 ) - + - 47
----
-3

skipif mysql # not compatible
query I rowsort label-9868
SELECT - ( - - 35 ) * 0 - + - COALESCE ( - 50, 84 * - + COUNT ( * ) + + 34, + 23 ) - + - 47
----
-3

query I rowsort
SELECT ALL + 61 + + - 11 + 46 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT 82 + - + 3 + + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9870
SELECT 82 + - + 3 + + COUNT ( * ) AS col2
----
80

query I rowsort
SELECT 91 * + - 3
----
-273

query I rowsort
SELECT 26 * + - 71 AS col2
----
-1846

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT DISTINCT 14 + + MIN( ALL - 50 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT 14 + + MIN ( ALL - 50 ) AS col1
----
-36

query I rowsort
SELECT DISTINCT - 43 + + 84 + + - 74
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT - 30 - - + COUNT( 7 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9875
SELECT - 30 - - + COUNT ( 7 ) AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT ALL - 23 * - CAST( - 25 AS SIGNED )
----
-575

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - 23 * - CAST ( - 25 AS INTEGER )
----
-575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9877
SELECT - - 65 * 44 + - MAX( DISTINCT - + 22 ) - + 30 + + - 82 DIV + + 23
----
2849

skipif mysql # not compatible
query I rowsort label-9877
SELECT - - 65 * 44 + - MAX ( DISTINCT - + 22 ) - + 30 + + - 82 / + + 23
----
2849

query I rowsort
SELECT - 96 + + 86 + + 4
----
-6

query I rowsort
SELECT 47 * + + 96 AS col2
----
4512

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT + COUNT( * ) + - 73 * 31
----
-2262

skipif mysql # not compatible
query I rowsort label-9880
SELECT + COUNT ( * ) + - 73 * 31
----
-2262

onlyif mysql # aggregate syntax: 
query II rowsort label-9881
SELECT 19 * + 29 + + MAX( 44 ) col1, 11 * - + ( - + COUNT( * ) ) * - 97
----
595
-1067

skipif mysql # not compatible
query II rowsort label-9881
SELECT 19 * + 29 + + MAX ( 44 ) col1, 11 * - + ( - + COUNT ( * ) ) * - 97
----
595
-1067

query II rowsort
SELECT + 93 - + + 72 AS col2, + 84
----
21
84

query I rowsort
SELECT ( + - 85 ) * + + 35
----
-2975

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT DISTINCT 11 - - 18 DIV - 27
----
11

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT 11 - - 18 / - 27
----
11

query I rowsort
SELECT ALL - 67 * 81
----
-5427

onlyif mysql # DIV for integer division: 
query I rowsort label-9886
SELECT DISTINCT + 56 * COALESCE ( - 31, - 64 DIV 82 ) AS col1
----
-1736

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT + 56 * COALESCE ( - 31, - 64 / 82 ) AS col1
----
-1736

onlyif mysql # aggregate syntax: 
query II rowsort label-9887
SELECT - MIN( DISTINCT + + 90 ), + 98 - 16 * - 88 AS col0
----
-90
1506

skipif mysql # not compatible
query II rowsort label-9887
SELECT - MIN ( DISTINCT + + 90 ), + 98 - 16 * - 88 AS col0
----
-90
1506

query I rowsort
SELECT 58 + - 18 + 54
----
94

query I rowsort
SELECT ALL 93 * + + 40
----
3720

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT 57 + + MAX( 29 ) + + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-9890
SELECT 57 + + MAX ( 29 ) + + - COUNT ( * )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9891
SELECT DISTINCT 73, ( + CAST( NULL AS SIGNED ) ) AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-9891
SELECT DISTINCT 73, ( + CAST ( NULL AS INTEGER ) ) AS col0
----
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT 92 + - + 94 * COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT 92 + - + 94 * COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT 1 / ( - CASE WHEN 4 IS NOT NULL THEN NULL ELSE 39 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT 85 - + 26 * - COUNT( * )
----
111

skipif mysql # not compatible
query I rowsort label-9894
SELECT 85 - + 26 * - COUNT ( * )
----
111

query I rowsort
SELECT 27 + - 62 AS col0
----
-35

query II rowsort
SELECT DISTINCT 53 AS col1, + 78
----
53
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL - NULLIF ( - 28, - + 21 * - + 45 - - + COUNT( * ) + - 97 * - CASE WHEN - 45 < - 83 THEN NULL ELSE 42 + - 96 * - 25 END + - 13 ) + - COUNT( * ) + 52 * + 74
----
3875

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL - NULLIF ( - 28, - + 21 * - + 45 - - + COUNT ( * ) + - 97 * - CASE WHEN - 45 < - 83 THEN NULL ELSE 42 + - 96 * - 25 END + - 13 ) + - COUNT ( * ) + 52 * + 74
----
3875

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9898
SELECT 16 + CAST( 83 AS SIGNED ) + 70 DIV + + 32
----
101

skipif mysql # not compatible
query I rowsort label-9898
SELECT 16 + CAST ( 83 AS INTEGER ) + 70 / + + 32
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT DISTINCT - ( + SUM( + + 32 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT - ( + SUM ( + + 32 ) )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9900
SELECT COUNT( * ) * - 69 + + CAST( 77 AS SIGNED ) + NULLIF ( 8, CASE - - 99 WHEN 24 * + 81 + - + ( 42 ) THEN NULL WHEN - 2 THEN + MAX( DISTINCT - 33 ) ELSE NULL END * - ( + 15 ) )
----
16

skipif mysql # not compatible
query I rowsort label-9900
SELECT COUNT ( * ) * - 69 + + CAST ( 77 AS INTEGER ) + NULLIF ( 8, CASE - - 99 WHEN 24 * + 81 + - + ( 42 ) THEN NULL WHEN - 2 THEN + MAX ( DISTINCT - 33 ) ELSE NULL END * - ( + 15 ) )
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9901
SELECT ALL - NULLIF ( + CAST( NULL AS DECIMAL ), - - COUNT( DISTINCT 42 ) * + CASE - AVG ( 84 ) WHEN + - 47 * + - 36 THEN NULL ELSE 28 * + SUM( DISTINCT 96 ) * 67 - + - 52 * - 67 END + 31 + + COUNT( * ) + - + 83 + - + 29 - - 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL - NULLIF ( + CAST ( NULL AS REAL ), - - COUNT ( DISTINCT 42 ) * + CASE - AVG ( 84 ) WHEN + - 47 * + - 36 THEN NULL ELSE 28 * + SUM ( DISTINCT 96 ) * 67 - + - 52 * - 67 END + 31 + + COUNT ( * ) + - + 83 + - + 29 - - 87 ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 83 AS col2, ( ( - 94 ) ) * - 75
----
-83
7050

query I rowsort
SELECT 42 * 34 * ( + 18 ) + - 2 + 15 * - 31
----
25237

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT DISTINCT - + 87 DIV + 19 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT - + 87 / + 19 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-9905
SELECT + 19 AS col0, 61 - - 22 - + NULLIF ( CASE - 48 WHEN - 1 + - 95 THEN NULL WHEN - - 91 THEN NULL WHEN 9 THEN 80 ELSE - COUNT( * ) + 68 END, - AVG ( 5 ) / 27 + - 41 ) - + 38 * - 11 col2
----
19
434

skipif mysql # not compatible
query II rowsort label-9905
SELECT + 19 AS col0, 61 - - 22 - + NULLIF ( CASE - 48 WHEN - 1 + - 95 THEN NULL WHEN - - 91 THEN NULL WHEN 9 THEN 80 ELSE - COUNT ( * ) + 68 END, - AVG ( 5 ) / 27 + - 41 ) - + 38 * - 11 col2
----
19
434

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT DISTINCT - + SUM( DISTINCT 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT - + SUM ( DISTINCT 46 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT + 28 * + - COUNT( * ) - + 69 * - 79 - + - 58 AS col0
----
5481

skipif mysql # not compatible
query I rowsort label-9907
SELECT + 28 * + - COUNT ( * ) - + 69 * - 79 - + - 58 AS col0
----
5481

onlyif mysql # DIV for integer division: 
query I rowsort label-9908
SELECT - 33 DIV - 32 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9908
SELECT - 33 / - 32 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT MAX( ALL + 49 ) + + ( + 5 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9909
SELECT MAX ( ALL + 49 ) + + ( + 5 ) AS col0
----
54

query I rowsort
SELECT + - NULLIF ( + 57, + 91 * - + 10 )
----
-57

query I rowsort
SELECT 90 * CASE + 43 WHEN + 48 THEN NULL ELSE 39 * - ( - - 78 ) END
----
-273780

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT MAX( DISTINCT - 0 ) * - + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9912
SELECT MAX ( DISTINCT - 0 ) * - + 25 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9913
SELECT ALL 58 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL 58 / - 75 AS col1
----
0

query I rowsort
SELECT ALL 40 * - 46 AS col0
----
-1840

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT + 46 * + 3 DIV 7 DIV + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9915
SELECT + 46 * + 3 / 7 / + 90 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT - CASE + 16 WHEN + + NULLIF ( + 26, - + 8 ) * - 42 THEN + 65 WHEN - CAST( - 8 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT - CASE + 16 WHEN + + NULLIF ( + 26, - + 8 ) * - 42 THEN + 65 WHEN - CAST ( - 8 AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL 86 + - 20 + 1 - 61 * 4
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT - COUNT( * ) AS col2, 45 AS col2
----
-1
45

skipif mysql # not compatible
query II rowsort label-9918
SELECT - COUNT ( * ) AS col2, 45 AS col2
----
-1
45

query II rowsort
SELECT 4 AS col0, + 26 + - 48
----
4
-22

query II rowsort
SELECT ALL 91 col0, + 99 AS col1
----
91
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT - COUNT( ALL + 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-9921
SELECT - COUNT ( ALL + 84 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT - 92 + + - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9922
SELECT - 92 + + - COUNT ( * )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9923
SELECT - 50 - 64 + - 59 * + 72, + CASE + 89 WHEN 9 THEN - 92 * 79 WHEN - CAST( NULL AS SIGNED ) / - 75 + 90 THEN - 84 + + 74 ELSE + 62 * + COUNT( * ) END AS col1
----
-4362
62

skipif mysql # not compatible
query II rowsort label-9923
SELECT - 50 - 64 + - 59 * + 72, + CASE + 89 WHEN 9 THEN - 92 * 79 WHEN - CAST ( NULL AS INTEGER ) / - 75 + 90 THEN - 84 + + 74 ELSE + 62 * + COUNT ( * ) END AS col1
----
-4362
62

query I rowsort
SELECT + 14 * 93 AS col2
----
1302

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT ALL + 71 DIV + 38
----
1

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL + 71 / + 38
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9926
SELECT ALL COUNT( * ) - - - 38 DIV 18 * 38 * + - 22
----
1673

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL COUNT ( * ) - - - 38 / 18 * 38 * + - 22
----
1673

query I rowsort
SELECT + 65 + - 67 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT + + COUNT( 42 ) * 24 * - - 78 + + 38
----
1910

skipif mysql # not compatible
query I rowsort label-9928
SELECT + + COUNT ( 42 ) * 24 * - - 78 + + 38
----
1910

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - + 63 * - + NULLIF ( COUNT( * ), - 71 ) + - + 61 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9929
SELECT - + 63 * - + NULLIF ( COUNT ( * ), - 71 ) + - + 61 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9930
SELECT + CAST( - 96 AS SIGNED ) + + + 52
----
-44

skipif mysql # not compatible
query I rowsort label-9930
SELECT + CAST ( - 96 AS INTEGER ) + + + 52
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9931
SELECT - 48 DIV 60 + + COUNT( * ) + - 31
----
-30

skipif mysql # not compatible
query I rowsort label-9931
SELECT - 48 / 60 + + COUNT ( * ) + - 31
----
-30

query II rowsort
SELECT ALL + 90, - 68 * + + 26 AS col1
----
90
-1768

onlyif mysql # DIV for integer division: 
query I rowsort label-9933
SELECT + + 28 DIV + ( ( - 55 ) ) * + NULLIF ( - ( + 63 ), + 91 + + - ( + + 29 ) ) + - 8 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9933
SELECT + + 28 / + ( ( - 55 ) ) * + NULLIF ( - ( + 63 ), + 91 + + - ( + + 29 ) ) + - 8 AS col0
----
-8

query II rowsort
SELECT ALL + 67, - NULLIF ( 4, + 17 ) AS col1
----
67
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9935
SELECT - 56 DIV + SUM( NULLIF ( 21, + + 85 * + - 95 ) ) - - + ( - 53 ) - + 3 col0, + 17 AS col1
----
-58
17

skipif mysql # not compatible
query II rowsort label-9935
SELECT - 56 / + SUM ( NULLIF ( 21, + + 85 * + - 95 ) ) - - + ( - 53 ) - + 3 col0, + 17 AS col1
----
-58
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL - + 85 * - CASE COUNT( * ) WHEN 77 THEN + 9 + + + 4 / + - COUNT( * ) * COUNT( * ) END / + + 71 - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL - + 85 * - CASE COUNT ( * ) WHEN 77 THEN + 9 + + + 4 / + - COUNT ( * ) * COUNT ( * ) END / + + 71 - 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT + + CASE - COUNT( * ) WHEN - 43 + - 39 THEN + + MAX( DISTINCT - COALESCE ( - 31, + + 93 ) ) WHEN - COALESCE ( - 59, + 65, + 13 + 76 * - 7 ) + 98 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT + + CASE - COUNT ( * ) WHEN - 43 + - 39 THEN + + MAX ( DISTINCT - COALESCE ( - 31, + + 93 ) ) WHEN - COALESCE ( - 59, + 65, + 13 + 76 * - 7 ) + 98 THEN NULL END col0
----
NULL

query I rowsort
SELECT - + 67 * ( + 2 ) * - 11 AS col2
----
1474

query I rowsort
SELECT + - ( + 80 ) col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9940
SELECT - MIN( ALL ( + + 3 ) ) + + 64 DIV + - 32 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9940
SELECT - MIN ( ALL ( + + 3 ) ) + + 64 / + - 32 AS col2
----
-5

query II rowsort
SELECT + 9 AS col2, - ( + 25 ) - - 96 AS col1
----
9
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9942
SELECT - COUNT( * ) + + + 37 DIV - 89
----
-1

skipif mysql # not compatible
query I rowsort label-9942
SELECT - COUNT ( * ) + + + 37 / - 89
----
-1

query I rowsort
SELECT + 1 * + 97 * 52 + ( 59 ) + 23 * + 82 AS col0
----
6989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9944
SELECT + 91 - CASE 28 WHEN - - 46 THEN + CASE - 75 WHEN + + COUNT( + 88 ) THEN + - COUNT( + 14 ) + + COUNT( * ) DIV 56 * + + 50 * SUM( + 16 ) DIV - + 3 END - CASE - - 64 WHEN + - 9 * + 31 + - 41 + ( - 64 ) + + 79 DIV - + ( 39 ) THEN + - 90 * + 58 END + + 99 + COUNT( * ) * 52 ELSE - 29 + + + 62 END - - - 16 + COUNT( - 45 ) * 97 * 94 * 97 - + COUNT( * ) * - 17 DIV 4 AS col2
----
884492

skipif mysql # not compatible
query I rowsort label-9944
SELECT + 91 - CASE 28 WHEN - - 46 THEN + CASE - 75 WHEN + + COUNT ( + 88 ) THEN + - COUNT ( + 14 ) + + COUNT ( * ) / 56 * + + 50 * SUM ( + 16 ) / - + 3 END - CASE - - 64 WHEN + - 9 * + 31 + - 41 + ( - 64 ) + + 79 / - + ( 39 ) THEN + - 90 * + 58 END + + 99 + COUNT ( * ) * 52 ELSE - 29 + + + 62 END - - - 16 + COUNT ( - 45 ) * 97 * 94 * 97 - + COUNT ( * ) * - 17 / 4 AS col2
----
884492

query II rowsort
SELECT + - 59, 8 AS col1
----
-59
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9946
SELECT DISTINCT + + 0 AS col1, - COUNT( * ) * - + 82 AS col1
----
0
82

skipif mysql # not compatible
query II rowsort label-9946
SELECT DISTINCT + + 0 AS col1, - COUNT ( * ) * - + 82 AS col1
----
0
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9947
SELECT ALL + ( + 41 ) AS col1, + CAST( - + 30 AS SIGNED )
----
41
-30

skipif mysql # not compatible
query II rowsort label-9947
SELECT ALL + ( + 41 ) AS col1, + CAST ( - + 30 AS INTEGER )
----
41
-30

query I rowsort
SELECT ALL 37 * NULLIF ( + - 22, 80 - 13 + + + 77 ) + + ( + 10 ) AS col2
----
-804

query I rowsort
SELECT - ( - 34 ) + + + 49 AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT ALL COUNT( * ) * - 6 * CAST( - - ( + 16 ) AS SIGNED ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL COUNT ( * ) * - 6 * CAST ( - - ( + 16 ) AS INTEGER ) AS col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT + 5 + + + CAST( 38 AS SIGNED ) + - 80 + 38 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9951
SELECT + 5 + + + CAST ( 38 AS INTEGER ) + - 80 + 38 AS col1
----
1

query I rowsort
SELECT ALL 80 * - + 43 + - - 92 + - 26 col1
----
-3374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT - CAST( NULL AS SIGNED ) / - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT - CAST ( NULL AS INTEGER ) / - 16
----
NULL

query II rowsort
SELECT + 51 + + 16 AS col2, 69
----
67
69

query I rowsort
SELECT DISTINCT ( + - 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT ALL CAST( - 71 AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL CAST ( - 71 AS INTEGER ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ALL COUNT( * ) - 53 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL COUNT ( * ) - 53 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9958
SELECT - NULLIF ( - + NULLIF ( + 22, COUNT( * ) ), 28 ) AS col0, - 90 * + 11 * - - 61 AS col2
----
22
-60390

skipif mysql # not compatible
query II rowsort label-9958
SELECT - NULLIF ( - + NULLIF ( + 22, COUNT ( * ) ), 28 ) AS col0, - 90 * + 11 * - - 61 AS col2
----
22
-60390

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT DISTINCT + 84 DIV 21 * 24
----
96

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT + 84 / 21 * 24
----
96

query I rowsort
SELECT ALL 26 * 94 AS col2
----
2444

query I rowsort
SELECT + 32 + + 89 - NULLIF ( + 27, + 72 ) + 7
----
101

query II rowsort
SELECT + 91 * - 54 AS col2, + 40
----
-4914
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9963
SELECT + 8 + - + COUNT( * ), + COUNT( * ) * + 19 * + 37 + + + ( - 75 ) * + COUNT( * ) AS col1
----
7
628

skipif mysql # not compatible
query II rowsort label-9963
SELECT + 8 + - + COUNT ( * ), + COUNT ( * ) * + 19 * + 37 + + + ( - 75 ) * + COUNT ( * ) AS col1
----
7
628

query I rowsort
SELECT + 96 + + 57 + - - 20 AS col1
----
173

query II rowsort
SELECT + 2 + + + 74 AS col2, 71 + - 73 AS col2
----
76
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT + 37 * + CASE + - 61 WHEN 75 THEN NULL WHEN 40 * - 1 + + COUNT( * ) + + 55 + - + 58 / 54 THEN COUNT( * ) END + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT + 37 * + CASE + - 61 WHEN 75 THEN NULL WHEN 40 * - 1 + + COUNT ( * ) + + 55 + - + 58 / 54 THEN COUNT ( * ) END + + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - - 1 + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9967
SELECT - - 1 + + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT + + 56 * + 31 * - 94 AS col1
----
-163184

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL - 51 * - 15 / ( + 49 ) + - CASE + 91 WHEN - 45 * CASE MIN( 68 ) WHEN - 81 THEN - 38 ELSE NULL END / + + 74 THEN - - 84 WHEN + 10 - AVG ( DISTINCT 91 ) THEN + + 88 + - - 89 + - 34 END + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL - 51 * - 15 / ( + 49 ) + - CASE + 91 WHEN - 45 * CASE MIN ( 68 ) WHEN - 81 THEN - 38 ELSE NULL END / + + 74 THEN - - 84 WHEN + 10 - AVG ( DISTINCT 91 ) THEN + + 88 + - - 89 + - 34 END + 59 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9970
SELECT + + 65 + - 8, - CAST( - 50 AS SIGNED ) - 33 col2
----
57
17

skipif mysql # not compatible
query II rowsort label-9970
SELECT + + 65 + - 8, - CAST ( - 50 AS INTEGER ) - 33 col2
----
57
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT + - CASE 29 WHEN - 31 + 90 / - 62 THEN + - 68 - 19 + - - 77 + - ( - 81 ) * - + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * + - 61 END / - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9971
SELECT + - CASE 29 WHEN - 31 + 90 / - 62 THEN + - 68 - 19 + - - 77 + - ( - 81 ) * - + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * + - 61 END / - 58 AS col2
----
NULL

query I rowsort
SELECT - 40 * + + 12 AS col0
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT SUM( + + ( - - 59 ) )
----
59

skipif mysql # not compatible
query I rowsort label-9973
SELECT SUM ( + + ( - - 59 ) )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT ALL 57 DIV 22 + 6
----
8

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL 57 / 22 + 6
----
8

query I rowsort
SELECT + NULLIF ( - 83, - 24 ) * + ( + ( - - 46 ) ) + + 18
----
-3800

onlyif mysql # DIV for integer division: 
query I rowsort label-9976
SELECT - 53 DIV - 73 + 17
----
17

skipif mysql # not compatible
query I rowsort label-9976
SELECT - 53 / - 73 + 17
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9977
SELECT ALL - 22 DIV + + COUNT( * ) + - - COUNT( + 68 )
----
-21

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL - 22 / + + COUNT ( * ) + - - COUNT ( + 68 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL - CAST( NULL AS SIGNED ) + + + NULLIF ( + ( ( - - COALESCE ( - 72, + + 66 * 63 ) ) ), COUNT( * ) + - + COUNT( * ) ) + - 16 * - + ( 82 ) + + 47 * + - COALESCE ( + + COUNT( * ), - CAST( ( 40 ) AS SIGNED ) ) * - + CAST( - 63 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - CAST ( NULL AS INTEGER ) + + + NULLIF ( + ( ( - - COALESCE ( - 72, + + 66 * 63 ) ) ), COUNT ( * ) + - + COUNT ( * ) ) + - 16 * - + ( 82 ) + + 47 * + - COALESCE ( + + COUNT ( * ), - CAST ( ( 40 ) AS INTEGER ) ) * - + CAST ( - 63 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 75 + 85 * - ( 18 ) + - - 77 AS col1
----
-1378

onlyif mysql # aggregate syntax: 
query II rowsort label-9980
SELECT DISTINCT COUNT( * ) + 15 AS col1, 9 + 27
----
16
36

skipif mysql # not compatible
query II rowsort label-9980
SELECT DISTINCT COUNT ( * ) + 15 AS col1, 9 + 27
----
16
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * - 38
----
NULL

query I rowsort
SELECT ALL + ( + + 31 ) + - 19 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT 95 * + SUM( DISTINCT 96 )
----
9120

skipif mysql # not compatible
query I rowsort label-9983
SELECT 95 * + SUM ( DISTINCT 96 )
----
9120

query I rowsort
SELECT ALL + 42 + - 7 AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9985
SELECT COUNT( * ) * - + SUM( - 87 ) DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-9985
SELECT COUNT ( * ) * - + SUM ( - 87 ) / - 92
----
0

query II rowsort
SELECT + 79 col2, 93 col0
----
79
93

query I rowsort
SELECT 94 + - 98
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL - MIN( + 18 ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - MIN ( + 18 ) col1
----
-18

query I rowsort
SELECT 10 * - 73 * - 79
----
57670

onlyif mysql # aggregate syntax: 
query II rowsort label-9990
SELECT ALL 44 AS col0, + 14 + - COUNT( - + 68 ) AS col2
----
44
13

skipif mysql # not compatible
query II rowsort label-9990
SELECT ALL 44 AS col0, + 14 + - COUNT ( - + 68 ) AS col2
----
44
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9991
SELECT COALESCE ( CAST( NULL AS SIGNED ), - 14 DIV + 67 + + 84, - COALESCE ( - 13, - + 59 ) ) - + - 26 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-9991
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - 14 / + 67 + + 84, - COALESCE ( - 13, - + 59 ) ) - + - 26 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL + ( + COUNT( * ) ) - + 47
----
-46

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL + ( + COUNT ( * ) ) - + 47
----
-46

query I rowsort
SELECT 0 * 99
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9994
SELECT - 53, + COUNT( * ) + + COUNT( * ) + - 1 AS col1
----
-53
1

skipif mysql # not compatible
query II rowsort label-9994
SELECT - 53, + COUNT ( * ) + + COUNT ( * ) + - 1 AS col1
----
-53
1

query II rowsort
SELECT ALL 55 AS col1, ( + + 25 ) + - 99
----
55
-74

query I rowsort
SELECT 19 + 75 col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT 55 DIV + 9
----
6

skipif mysql # not compatible
query I rowsort label-9997
SELECT 55 / + 9
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT 26 * - ( - - 50 ) * + COUNT( DISTINCT - 20 ) - - + 45 * 73 AS col1
----
1985

skipif mysql # not compatible
query I rowsort label-9998
SELECT 26 * - ( - - 50 ) * + COUNT ( DISTINCT - 20 ) - - + 45 * 73 AS col1
----
1985

onlyif mysql # aggregate syntax: 
query II rowsort label-9999
SELECT 72, + COUNT( - + 13 ) AS col1
----
72
1

skipif mysql # not compatible
query II rowsort label-9999
SELECT 72, + COUNT ( - + 13 ) AS col1
----
72
1

