sqllogictest
Artifact Content
Not logged in

Artifact b0f0d5606a02855ed0e9cbdb0c9a3e6ec7d0b861:


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 mys