sqllogictest
Artifact Content
Not logged in

Artifact 69a74f229a69bf0cbef8bd9eec860bd59265e28c:


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 # aggregate syntax: 
query II rowsort label-0
SELECT SUM( + 32 ), - 6 AS col2
----
32
-6

skipif mysql # not compatible
query II rowsort label-0
SELECT SUM ( + 32 ), - 6 AS col2
----
32
-6

query I rowsort
SELECT ALL - ( + - 14 ) * - 30
----
-420

query I rowsort
SELECT + 69 * - ( + ( - 63 ) ) * + + 71 * + - 86
----
-26542782

query I rowsort
SELECT - CASE + 23 WHEN + - 51 THEN + 13 ELSE NULL END * 41 + - 86 * 9 + - 51 AS col0
----
NULL

query I rowsort
SELECT + 15 * 39
----
585

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5
SELECT + 33 DIV COUNT( * ), 9 AS col2
----
33
9

skipif mysql # not compatible
query II rowsort label-5
SELECT + 33 / COUNT ( * ), 9 AS col2
----
33
9

query I rowsort
SELECT - 38 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT COUNT( 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7
SELECT COUNT ( 28 ) AS col2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT DISTINCT COUNT( * ) + - - ( - + 99 )
----
-98

skipif mysql # not compatible
query I rowsort label-9
SELECT DISTINCT COUNT ( * ) + - - ( - + 99 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT - CASE + - 1 WHEN - 63 * 68 + - + 90 + + CASE + COUNT( * ) WHEN - 23 / 29 + COUNT( * ) THEN COUNT( * ) WHEN - 30 THEN NULL ELSE - 73 + + 35 / 11 END - 64 THEN 45 * COUNT( * ) END + - 8 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT - CASE + - 1 WHEN - 63 * 68 + - + 90 + + CASE + COUNT ( * ) WHEN - 23 / 29 + COUNT ( * ) THEN COUNT ( * ) WHEN - 30 THEN NULL ELSE - 73 + + 35 / 11 END - 64 THEN 45 * COUNT ( * ) END + - 8 * COUNT ( * ) AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-12
SELECT + COUNT( DISTINCT - CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-12
SELECT + COUNT ( DISTINCT - CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col2
----
0

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

query II rowsort
SELECT - ( + 85 ), - ( + 90 ) + - ( + + 30 ) AS col0
----
-85
-120

query II rowsort
SELECT DISTINCT - - 60 - + 2, 21 AS col1
----
58
21

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

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

query I rowsort
SELECT - - 85 col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT ALL + 66 - + ( 35 ) DIV - + 12
----
68

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL + 66 - + ( 35 ) / - + 12
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-19
SELECT - + COALESCE ( 58, + 95 DIV 99 DIV MIN( DISTINCT + + 49 ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-19
SELECT - + COALESCE ( 58, + 95 / 99 / MIN ( DISTINCT + + 49 ) ) AS col1
----
-58

query I rowsort
SELECT ALL - 86 - NULLIF ( + - 24, - 39 )
----
-62

query I rowsort
SELECT COALESCE ( - + 70, 22, 76 ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-22
SELECT - + 47 * CASE - 22 WHEN 2 * + + AVG ( DISTINCT + 89 ) + + + 35 - NULLIF ( - 82, + NULLIF ( - COUNT( * ), 14 ) ) + - COUNT( * ) THEN NULL WHEN COUNT( DISTINCT 16 ) - + 37 THEN 94 WHEN MIN( 41 ) - + CASE - COUNT( * ) WHEN 44 THEN NULL WHEN + 16 THEN CAST( + 92 AS SIGNED ) * - 51 WHEN CAST( NULL AS SIGNED ) * 7 - + 93 THEN 15 END * - 83 THEN NULL WHEN + 74 + 38 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT - + 47 * CASE - 22 WHEN 2 * + + AVG ( DISTINCT + 89 ) + + + 35 - NULLIF ( - 82, + NULLIF ( - COUNT ( * ), 14 ) ) + - COUNT ( * ) THEN NULL WHEN COUNT ( DISTINCT 16 ) - + 37 THEN 94 WHEN MIN ( 41 ) - + CASE - COUNT ( * ) WHEN 44 THEN NULL WHEN + 16 THEN CAST ( + 92 AS INTEGER ) * - 51 WHEN CAST ( NULL AS INTEGER ) * 7 - + 93 THEN 15 END * - 83 THEN NULL WHEN + 74 + 38 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT + NULLIF ( MIN( DISTINCT - + 13 ), + 7 * - ( - MIN( + 17 ) ) + 97 * ( + 63 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-23
SELECT + NULLIF ( MIN ( DISTINCT - + 13 ), + 7 * - ( - MIN ( + 17 ) ) + 97 * ( + 63 ) )
----
-13

query I rowsort
SELECT - 67 * - 31 * 30
----
62310

onlyif mysql # aggregate syntax: 
query II rowsort label-25
SELECT + COUNT( ALL 22 ) AS col2, 57
----
1
57

skipif mysql # not compatible
query II rowsort label-25
SELECT + COUNT ( ALL 22 ) AS col2, 57
----
1
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-26
SELECT - 85 * - - NULLIF ( + - 1, - 95 + + CAST( NULL AS DECIMAL ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-26
SELECT - 85 * - - NULLIF ( + - 1, - 95 + + CAST ( NULL AS REAL ) ) AS col1
----
85

query I rowsort
SELECT + 55 * - + 29
----
-1595

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT ALL + 82 DIV - + 56 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL + 82 / - + 56 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-29
SELECT ALL + MAX( - + 52 ) DIV - 49 + - + 27
----
-26

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL + MAX ( - + 52 ) / - 49 + - + 27
----
-26

query I rowsort
SELECT + 93 * + 65 AS col1
----
6045

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT DISTINCT + 33 DIV + 32 + - - 89 + ( - 62 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT + 33 / + 32 + - - 89 + ( - 62 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT + CASE + 72 WHEN ( - - 82 ) / - ( COALESCE ( - + 34, 80 * 80 - 38 * + CASE - 74 WHEN + 18 + - 18 THEN - 32 + - 46 END ) ) + + 8 * COUNT( * ) THEN + ( 40 ) * - 92 WHEN - 96 + + 78 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT + CASE + 72 WHEN ( - - 82 ) / - ( COALESCE ( - + 34, 80 * 80 - 38 * + CASE - 74 WHEN + 18 + - 18 THEN - 32 + - 46 END ) ) + + 8 * COUNT ( * ) THEN + ( 40 ) * - 92 WHEN - 96 + + 78 THEN COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-33
SELECT - 57 * 2 DIV 25 DIV - + 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-33
SELECT - 57 * 2 / 25 / - + 14 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT + COUNT( * ) + - COALESCE ( COUNT( * ), - 60 ) + + + 31 * - - 54
----
1674

skipif mysql # not compatible
query I rowsort label-35
SELECT + COUNT ( * ) + - COALESCE ( COUNT ( * ), - 60 ) + + + 31 * - - 54
----
1674

query I rowsort
SELECT + NULLIF ( 91, 26 )
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-37
SELECT ALL + 72 AS col0, 2 DIV - 30 AS col2
----
72
0

skipif mysql # not compatible
query II rowsort label-37
SELECT ALL + 72 AS col0, 2 / - 30 AS col2
----
72
0

query I rowsort
SELECT + 62 + 40 * - 91 * 45
----
-163738

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL CASE + COUNT( * ) WHEN - + 20 * AVG ( 77 ) / + COUNT( * ) THEN - + 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL CASE + COUNT ( * ) WHEN - + 20 * AVG ( 77 ) / + COUNT ( * ) THEN - + 62 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-40
SELECT ALL 94 col0, - ( + 91 ) DIV + - 61 AS col1
----
94
1

skipif mysql # not compatible
query II rowsort label-40
SELECT ALL 94 col0, - ( + 91 ) / + - 61 AS col1
----
94
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-42
SELECT CASE + + 20 WHEN CASE 76 WHEN 30 + 71 THEN ( + CAST( NULL AS SIGNED ) ) WHEN 65 + - 75 * - 86 THEN + AVG ( + 36 ) + + 81 * 95 ELSE - COUNT( * ) END THEN NULL WHEN + 71 THEN NULL WHEN + COUNT( * ) * NULLIF ( 57, - ( ( 50 ) ) ) THEN 6 END * + ( 19 + NULLIF ( COUNT( * ) + 86, + 99 + 35 ) * 22 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-42
SELECT CASE + + 20 WHEN CASE 76 WHEN 30 + 71 THEN ( + CAST ( NULL AS INTEGER ) ) WHEN 65 + - 75 * - 86 THEN + AVG ( + 36 ) + + 81 * 95 ELSE - COUNT ( * ) END THEN NULL WHEN + 71 THEN NULL WHEN + COUNT ( * ) * NULLIF ( 57, - ( ( 50 ) ) ) THEN 6 END * + ( 19 + NULLIF ( COUNT ( * ) + 86, + 99 + 35 ) * 22 ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT 28 DIV - - 95
----
0

skipif mysql # not compatible
query I rowsort label-43
SELECT 28 / - - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT - SUM( DISTINCT - 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-44
SELECT - SUM ( DISTINCT - 10 ) AS col2
----
10

query I rowsort
SELECT 90 + + 5 AS col0
----
95

query I rowsort
SELECT 8 - + + 11 * + - 96 - - ( + + CASE + + 51 WHEN - + 39 THEN - - 60 END ) + 79
----
NULL

query I rowsort
SELECT DISTINCT - 70 * 15 AS col0
----
-1050

query I rowsort
SELECT ALL + NULLIF ( 93, NULLIF ( + 47, 6 ) )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT ALL CAST( - COALESCE ( - 48, + 27 ) AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL CAST ( - COALESCE ( - 48, + 27 ) AS INTEGER )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-50
SELECT - CASE + + CASE + NULLIF ( - 99, - COUNT( * ) ) WHEN - + 89 / + + ( - 18 ) THEN + 18 WHEN - 84 THEN NULL END WHEN COALESCE ( 86, 65 * 7, 19 + 15 ) THEN NULL WHEN CASE + 8 WHEN CAST( NULL AS SIGNED ) + - 55 THEN COUNT( * ) WHEN ( 81 ) THEN NULL ELSE NULL END THEN 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-50
SELECT - CASE + + CASE + NULLIF ( - 99, - COUNT ( * ) ) WHEN - + 89 / + + ( - 18 ) THEN + 18 WHEN - 84 THEN NULL END WHEN COALESCE ( 86, 65 * 7, 19 + 15 ) THEN NULL WHEN CASE + 8 WHEN CAST ( NULL AS INTEGER ) + - 55 THEN COUNT ( * ) WHEN ( 81 ) THEN NULL ELSE NULL END THEN 26 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-51
SELECT + COUNT( * ) DIV + 41 + 33 * 93 AS col0
----
3069

skipif mysql # not compatible
query I rowsort label-51
SELECT + COUNT ( * ) / + 41 + 33 * 93 AS col0
----
3069

query I rowsort
SELECT 79 + + ( + 39 ) AS col2
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-53
SELECT - 56 + 92 DIV + + 42 + - 21 * - 94
----
1920

skipif mysql # not compatible
query I rowsort label-53
SELECT - 56 + 92 / + + 42 + - 21 * - 94
----
1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-54
SELECT DISTINCT - - 40 * + - 42 + 88 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-54
SELECT DISTINCT - - 40 * + - 42 + 88 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 78 + + 66
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-56
SELECT - CAST( + - ( 93 ) AS SIGNED ) DIV 6 * - COALESCE ( - 58, + CAST( - - 44 AS SIGNED ), 28 * 81 ) * + COUNT( ALL 92 ) + + 13 + 67 * - 94 AS col1
----
-5415

skipif mysql # not compatible
query I rowsort label-56
SELECT - CAST ( + - ( 93 ) AS INTEGER ) / 6 * - COALESCE ( - 58, + CAST ( - - 44 AS INTEGER ), 28 * 81 ) * + COUNT ( ALL 92 ) + + 13 + 67 * - 94 AS col1
----
-5415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-57
SELECT ALL - COUNT( * ) + 44 DIV 30 * + CASE + 41 WHEN - - NULLIF ( CAST( NULL AS SIGNED ), + 37 DIV - 29 + - CASE 52 WHEN - CAST( + 27 AS SIGNED ) + - NULLIF ( + 54, + 49 ) THEN NULL WHEN + 43 * + 84 THEN NULL ELSE - SUM( - 63 ) END ) THEN NULL ELSE COUNT( * ) END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL - COUNT ( * ) + 44 / 30 * + CASE + 41 WHEN - - NULLIF ( CAST ( NULL AS INTEGER ), + 37 / - 29 + - CASE 52 WHEN - CAST ( + 27 AS INTEGER ) + - NULLIF ( + 54, + 49 ) THEN NULL WHEN + 43 * + 84 THEN NULL ELSE - SUM ( - 63 ) END ) THEN NULL ELSE COUNT ( * ) END AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT ALL - CASE - + 84 WHEN - 24 * + - COUNT( * ) THEN + 30 - - + MAX( + 28 ) * - 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL - CASE - + 84 WHEN - 24 * + - COUNT ( * ) THEN + 30 - - + MAX ( + 28 ) * - 17 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-60
SELECT DISTINCT + CASE - COUNT( * ) WHEN + 20 * - 81 THEN COUNT( * ) * + + 68 * + ( + - 84 ) WHEN - 61 THEN - CASE - 67 WHEN + AVG ( 47 ) + - 62 THEN NULL WHEN + 64 + 24 * 36 THEN 52 * NULLIF ( 0 * + CAST( NULL AS SIGNED ), COUNT( * ) ) END * + COUNT( * ) - + ( + COUNT( DISTINCT - 95 ) ) * 89 END + + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT + CASE - COUNT ( * ) WHEN + 20 * - 81 THEN COUNT ( * ) * + + 68 * + ( + - 84 ) WHEN - 61 THEN - CASE - 67 WHEN + AVG ( 47 ) + - 62 THEN NULL WHEN + 64 + 24 * 36 THEN 52 * NULLIF ( 0 * + CAST ( NULL AS INTEGER ), COUNT ( * ) ) END * + COUNT ( * ) - + ( + COUNT ( DISTINCT - 95 ) ) * 89 END + + 34 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT DISTINCT - CASE 12 WHEN + ( NULLIF ( ( 39 ), - 74 * + 27 ) ) THEN 61 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT - CASE 12 WHEN + ( NULLIF ( ( 39 ), - 74 * + 27 ) ) THEN 61 * COUNT ( * ) END
----
NULL

query I rowsort
SELECT 2 * + 83 AS col0
----
166

query I rowsort
SELECT DISTINCT - ( - 11 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT 21 DIV + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-64
SELECT 21 / + 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT COUNT( ALL + + 72 ) + + 95
----
96

skipif mysql # not compatible
query I rowsort label-65
SELECT COUNT ( ALL + + 72 ) + + 95
----
96

query I rowsort
SELECT DISTINCT + 15 * - 77 * - + 51
----
58905

query II rowsort
SELECT ALL - 61 + - 69, 77 * + 44 AS col0
----
-130
3388

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT DISTINCT + COUNT( * ) / + CASE 46 WHEN + + 30 - - 70 / + 99 THEN + + AVG ( DISTINCT + + 71 ) + + 70 * - 30 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT DISTINCT + COUNT ( * ) / + CASE 46 WHEN + + 30 - - 70 / + 99 THEN + + AVG ( DISTINCT + + 71 ) + + 70 * - 30 ELSE NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT ALL 73 * - - 94
----
6862

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT ALL - COUNT( ALL - - 83 ) - - 20 + - 38
----
-19

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL - COUNT ( ALL - - 83 ) - - 20 + - 38
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-73
SELECT ALL + 98 - - - 73, + 84 * - - COUNT( * ) + CASE + 3 WHEN 0 THEN 80 + 12 WHEN + 62 THEN NULL ELSE CASE COUNT( * ) WHEN 72 + - 72 * - 20 THEN NULL WHEN - 91 + 96 THEN - 17 * - CAST( NULL AS SIGNED ) - MIN( ALL + 10 ) END END + + MAX( 43 ) * - COALESCE ( 40 + AVG ( DISTINCT 17 ), - 56, 9 * + COALESCE ( - 14, 51 ) + + 12 ) AS col2
----
25
NULL

skipif mysql # not compatible
query II rowsort label-73
SELECT ALL + 98 - - - 73, + 84 * - - COUNT ( * ) + CASE + 3 WHEN 0 THEN 80 + 12 WHEN + 62 THEN NULL ELSE CASE COUNT ( * ) WHEN 72 + - 72 * - 20 THEN NULL WHEN - 91 + 96 THEN - 17 * - CAST ( NULL AS INTEGER ) - MIN ( ALL + 10 ) END END + + MAX ( 43 ) * - COALESCE ( 40 + AVG ( DISTINCT 17 ), - 56, 9 * + COALESCE ( - 14, 51 ) + + 12 ) AS col2
----
25
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-75
SELECT - ( + CAST( + + COALESCE ( + 89, 3 + - 8, - 23 * - - 19 + - COUNT( * ) ) AS SIGNED ) )
----
-89

skipif mysql # not compatible
query I rowsort label-75
SELECT - ( + CAST ( + + COALESCE ( + 89, 3 + - 8, - 23 * - - 19 + - COUNT ( * ) ) AS INTEGER ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT ALL CASE - - 65 WHEN - - 23 / + CASE - - 56 WHEN - 42 * + CASE - 63 WHEN - - CASE + 55 WHEN - 89 THEN NULL ELSE - 37 * + 28 + + COUNT( * ) * 27 END THEN MIN( ALL 24 ) * 54 ELSE 63 * + 1 END + 21 THEN + 11 * 49 END - + 61 * 37 THEN - 5 + 99 * NULLIF ( - 9 - 51 / 55, - 57 * + ( COALESCE ( - 0, + ( + AVG ( ALL 96 ) ) ) ) ) ELSE 50 - + 6 END AS col0
----
44

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL CASE - - 65 WHEN - - 23 / + CASE - - 56 WHEN - 42 * + CASE - 63 WHEN - - CASE + 55 WHEN - 89 THEN NULL ELSE - 37 * + 28 + + COUNT ( * ) * 27 END THEN MIN ( ALL 24 ) * 54 ELSE 63 * + 1 END + 21 THEN + 11 * 49 END - + 61 * 37 THEN - 5 + 99 * NULLIF ( - 9 - 51 / 55, - 57 * + ( COALESCE ( - 0, + ( + AVG ( ALL 96 ) ) ) ) ) ELSE 50 - + 6 END AS col0
----
44

query I rowsort
SELECT 76 + - 80 + + + 93 AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-78
SELECT DISTINCT - 99 - - 9 DIV + 56 DIV - COUNT( * ), 79 AS col0
----
-99
79

skipif mysql # not compatible
query II rowsort label-78
SELECT DISTINCT - 99 - - 9 / + 56 / - COUNT ( * ), 79 AS col0
----
-99
79

query I rowsort
SELECT + 51 - + 87 * + 91
----
-7866

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT 15 * + COUNT( DISTINCT - ( - 86 ) ) * + - 75 * - 67 * - 64
----
-4824000

skipif mysql # not compatible
query I rowsort label-80
SELECT 15 * + COUNT ( DISTINCT - ( - 86 ) ) * + - 75 * - 67 * - 64
----
-4824000

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT - NULLIF ( - 2, + 7 / - COUNT( * ) * - 21 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-82
SELECT - NULLIF ( - 2, + 7 / - COUNT ( * ) * - 21 ) AS col0
----
2

query I rowsort
SELECT + 97 + + 31 AS col1
----
128

query I rowsort
SELECT ALL 71 * - 58 AS col2
----
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT MIN( 19 ) * - 19
----
-361

skipif mysql # not compatible
query I rowsort label-85
SELECT MIN ( 19 ) * - 19
----
-361

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

skipif mysql # not compatible
query I rowsort label-86
SELECT 84 + - CAST ( NULL AS REAL ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-87
SELECT ALL - 34 + MIN ( DISTINCT + - 89 ) AS col1
----
-123

query I rowsort
SELECT DISTINCT NULLIF ( + 29, - 35 ) + 79 AS col0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT ALL + 43 DIV 33
----
1

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL + 43 / 33
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-90
SELECT ALL - 84 + 66 * + 9 * - 32, COUNT( * ) AS col0
----
-19092
1

skipif mysql # not compatible
query II rowsort label-90
SELECT ALL - 84 + 66 * + 9 * - 32, COUNT ( * ) AS col0
----
-19092
1

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT 31 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-91
SELECT 31 / 90
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-93
SELECT SUM ( + 54 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-94
SELECT 37 - + - CAST( NULL AS SIGNED ) / - - 61 + + 20 + + 12 AS col0, - 60 * COUNT( * ) AS col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-94
SELECT 37 - + - CAST ( NULL AS INTEGER ) / - - 61 + + 20 + + 12 AS col0, - 60 * COUNT ( * ) AS col0
----
NULL
-60

query I rowsort
SELECT DISTINCT - 52 * 81 - - 16
----
-4196

query I rowsort
SELECT DISTINCT - ( - ( - 38 ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL - 19 * + COUNT( * ) - - 76 * - 44
----
-3363

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - 19 * + COUNT ( * ) - - 76 * - 44
----
-3363

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-98
SELECT DISTINCT + 95, AVG ( DISTINCT - + 17 ) + + CAST( NULL AS SIGNED ) col0
----
95
NULL

skipif mysql # not compatible
query II rowsort label-98
SELECT DISTINCT + 95, AVG ( DISTINCT - + 17 ) + + CAST ( NULL AS INTEGER ) col0
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT - 46 * COUNT( * ) * 97 * + - 74 + - 91
----
330097

skipif mysql # not compatible
query I rowsort label-99
SELECT - 46 * COUNT ( * ) * 97 * + - 74 + - 91
----
330097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-100
SELECT - CAST( NULL AS SIGNED ) - + - 36 + - COUNT( * ) * - - 17 + 60 * + + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT - CAST ( NULL AS INTEGER ) - + - 36 + - COUNT ( * ) * - - 17 + 60 * + + 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-101
SELECT - COALESCE ( + + 43, + 88 + + - 5 + + - 7 + - 54 + + 98 + - - 58 DIV 19 DIV + + NULLIF ( 34, 15 ) * COUNT( * ) ) * 80 AS col1
----
-3440

skipif mysql # not compatible
query I rowsort label-101
SELECT - COALESCE ( + + 43, + 88 + + - 5 + + - 7 + - 54 + + 98 + - - 58 / 19 / + + NULLIF ( 34, 15 ) * COUNT ( * ) ) * 80 AS col1
----
-3440

onlyif mysql # DIV for integer division: 
query I rowsort label-102
SELECT DISTINCT + 85 DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT + 85 / + 90 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-103
SELECT - + 76 DIV + 26
----
-2

skipif mysql # not compatible
query I rowsort label-103
SELECT - + 76 / + 26
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT ALL - - ( - 95 ) DIV + NULLIF ( + 15, 23 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL - - ( - 95 ) / + NULLIF ( + 15, 23 ) AS col2
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT DISTINCT - 54 DIV - - 48 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT - 54 / - - 48 AS col0
----
-1

query I rowsort
SELECT ALL - + 11 * - + 20
----
220

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-107
SELECT - CAST( - 44 AS SIGNED ) DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-107
SELECT - CAST ( - 44 AS INTEGER ) / - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - - ( NULLIF ( + + 41, + - 23 * - + COALESCE ( - 29, + COUNT( * ) ) ) ) + - COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-108
SELECT - - ( NULLIF ( + + 41, + - 23 * - + COALESCE ( - 29, + COUNT ( * ) ) ) ) + - COUNT ( * ) AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-109
SELECT DISTINCT - 88 * - CAST( + 96 AS SIGNED ) AS col2
----
8448

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT - 88 * - CAST ( + 96 AS INTEGER ) AS col2
----
8448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-110
SELECT ALL + + 98 * CAST( + 13 AS SIGNED ) * 58 + - 29 AS col1, + 36
----
73863
36

skipif mysql # not compatible
query II rowsort label-110
SELECT ALL + + 98 * CAST ( + 13 AS INTEGER ) * 58 + - 29 AS col1, + 36
----
73863
36

query II rowsort
SELECT 89 AS col0, 11
----
89
11

query II rowsort
SELECT DISTINCT 59 + 51 + - 6 * - + 88 * + - 57, 79 AS col0
----
-29986
79

query I rowsort
SELECT ALL 64 + - 34 AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-114
SELECT - 47 - + - 94 * + + 55, COUNT( * ) AS col2
----
5123
1

skipif mysql # not compatible
query II rowsort label-114
SELECT - 47 - + - 94 * + + 55, COUNT ( * ) AS col2
----
5123
1

onlyif mysql # aggregate syntax: 
query II rowsort label-115
SELECT MAX( DISTINCT - ( + 77 ) ) AS col2, 85 + SUM( DISTINCT + 31 )
----
-77
116

skipif mysql # not compatible
query II rowsort label-115
SELECT MAX ( DISTINCT - ( + 77 ) ) AS col2, 85 + SUM ( DISTINCT + 31 )
----
-77
116

query I rowsort
SELECT ALL - - 94 + 12 + + 28 * 78
----
2290

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-118
SELECT ALL - COUNT( * ) + + 13 + + 48 DIV 70
----
12

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL - COUNT ( * ) + + 13 + + 48 / 70
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-119
SELECT DISTINCT + COALESCE ( + 89, 37 + - COALESCE ( + 99, + + COUNT( * ) ) + - - 64 + - 3 DIV - ( - 88 ) * 26 )
----
89

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT + COALESCE ( + 89, 37 + - COALESCE ( + 99, + + COUNT ( * ) ) + - - 64 + - 3 / - ( - 88 ) * 26 )
----
89

query I rowsort
SELECT - + 22 + - 69 + 9 + - 42
----
-124

query I rowsort
SELECT + + 17 - - 28
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-122
SELECT ALL CAST( NULL AS SIGNED ) * - SUM( DISTINCT 35 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT 35 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-123
SELECT + 22 - CAST( - 76 AS SIGNED ) * ( - 52 )
----
-3930

skipif mysql # not compatible
query I rowsort label-123
SELECT + 22 - CAST ( - 76 AS INTEGER ) * ( - 52 )
----
-3930

query I rowsort
SELECT ALL COALESCE ( 30, 97 - + 84, - 55 + COALESCE ( + 57, + 86 ) + - + 49 ) - + 43 AS col0
----
-13

query I rowsort
SELECT ALL 75 * - 19 AS col1
----
-1425

query II rowsort
SELECT ALL + 76 AS col2, 77
----
76
77

onlyif mysql # DIV for integer division: 
query I rowsort label-127
SELECT ALL + 25 DIV - 92 - + - 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL + 25 / - 92 - + - 35 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT ALL - 70 DIV + 70 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL - 70 / + 70 AS col2
----
-1

query I rowsort
SELECT + 56 * 69 col2
----
3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-130
SELECT + 43 DIV + SUM( - CAST( 48 AS SIGNED ) ) * - 11 + - - 72 - + + 29
----
43

skipif mysql # not compatible
query I rowsort label-130
SELECT + 43 / + SUM ( - CAST ( 48 AS INTEGER ) ) * - 11 + - - 72 - + + 29
----
43

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-132
SELECT - COUNT( * ) DIV + 42 + + + 58 - - 17 DIV + 45
----
58

skipif mysql # not compatible
query I rowsort label-132
SELECT - COUNT ( * ) / + 42 + + + 58 - - 17 / + 45
----
58

query I rowsort
SELECT ( + + 93 ) col2
----
93

query II rowsort
SELECT + 35 AS col0, + 71 AS col2
----
35
71

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

skipif mysql # not compatible
query I rowsort label-135
SELECT - CAST ( + 98 AS REAL ) + - 83 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-136
SELECT + CASE 37 WHEN - 61 THEN 65 END * + CAST( NULL AS SIGNED ) * + CASE - - 67 WHEN + 49 * + 16 THEN + SUM( ALL 31 ) ELSE NULL END / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT + CASE 37 WHEN - 61 THEN 65 END * + CAST ( NULL AS INTEGER ) * + CASE - - 67 WHEN + 49 * + 16 THEN + SUM ( ALL 31 ) ELSE NULL END / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 1 col2, + 59 AS col2
----
1
59

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

query I rowsort
SELECT - - 14 + + ( + + 75 )
----
89

query I rowsort
SELECT + 38 * + 34 + + 50 * + - 18
----
392

query II rowsort
SELECT ALL + + 26 AS col0, 87 AS col0
----
26
87

query I rowsort
SELECT - 65 + + 2
----
-63

query I rowsort
SELECT DISTINCT - 75 * + - 36 * - + 11 + + 77 * ( - 54 ) + - + 4 - 94 AS col0
----
-33956

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT ALL - COUNT( + 90 ) * + 48 + + 51 + + - 53 + 24 + 76 * - 93
----
-7094

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL - COUNT ( + 90 ) * + 48 + + 51 + + - 53 + 24 + 76 * - 93
----
-7094

onlyif mysql # DIV for integer division: 
query I rowsort label-145
SELECT ALL - 9 DIV - 36 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-145
SELECT ALL - 9 / - 36 AS col1
----
0

query I rowsort
SELECT DISTINCT ( - - 80 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query III rowsort label-147
SELECT - - 23, 15 + + + ( 27 ) AS col0, - COUNT( * ) AS col0
----
23
42
-1

skipif mysql # not compatible
query III rowsort label-147
SELECT - - 23, 15 + + + ( 27 ) AS col0, - COUNT ( * ) AS col0
----
23
42
-1

query I rowsort
SELECT DISTINCT - 75 * + 98 + + 64 + - - 78
----
-7208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-149
SELECT ALL - 39 * - + 48 + + 72 + - - COALESCE ( - 19, CASE - 4 WHEN 99 * - 25 * + + 95 * COUNT( * ) + ( CASE - NULLIF ( 98, 62 DIV - ( + CAST( NULL AS SIGNED ) * 26 ) ) WHEN 80 DIV MAX( 94 ) + COALESCE ( COUNT( * ), - 66 ) THEN 77 + + COALESCE ( COUNT( ALL 46 ) + 86 * - 65, COALESCE ( + COUNT( * ), 21 DIV 77 ) ) * NULLIF ( 65 + + NULLIF ( 77, COUNT( * ) * - CAST( NULL AS SIGNED ) ), - 63 ) ELSE NULL END ) THEN 42 * - 49 + - COALESCE ( 3 + 22 DIV - NULLIF ( COUNT( * ) + + 96, - 67 ), + COUNT( * ) * - 65 ) WHEN + 64 + - 63 THEN NULL ELSE + 18 END * 25 ) col2
----
1925

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL - 39 * - + 48 + + 72 + - - COALESCE ( - 19, CASE - 4 WHEN 99 * - 25 * + + 95 * COUNT ( * ) + ( CASE - NULLIF ( 98, 62 / - ( + CAST ( NULL AS INTEGER ) * 26 ) ) WHEN 80 / MAX ( 94 ) + COALESCE ( COUNT ( * ), - 66 ) THEN 77 + + COALESCE ( COUNT ( ALL 46 ) + 86 * - 65, COALESCE ( + COUNT ( * ), 21 / 77 ) ) * NULLIF ( 65 + + NULLIF ( 77, COUNT ( * ) * - CAST ( NULL AS INTEGER ) ), - 63 ) ELSE NULL END ) THEN 42 * - 49 + - COALESCE ( 3 + 22 / - NULLIF ( COUNT ( * ) + + 96, - 67 ), + COUNT ( * ) * - 65 ) WHEN + 64 + - 63 THEN NULL ELSE + 18 END * 25 ) col2
----
1925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-150
SELECT ALL - 48 / - 71 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-150
SELECT ALL - 48 / - 71 + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-151
SELECT SUM ( - 27 ) col2
----
-27

query I rowsort
SELECT DISTINCT - 15 * + 29
----
-435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-153
SELECT + + CAST( + - ( - 55 ) AS SIGNED ) * - 46 + + + 44 - + 33 * 64
----
-4598

skipif mysql # not compatible
query I rowsort label-153
SELECT + + CAST ( + - ( - 55 ) AS INTEGER ) * - 46 + + + 44 - + 33 * 64
----
-4598

query II rowsort
SELECT - 85 AS col2, 1 - 44 + 50 + 67 AS col1
----
-85
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-155
SELECT + 95 + + - 98 + + 81 * - - COUNT( * ) + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT + 95 + + - 98 + + 81 * - - COUNT ( * ) + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT ALL - 28 - 58 - 59 * + COUNT( * )
----
-145

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL - 28 - 58 - 59 * + COUNT ( * )
----
-145

query I rowsort
SELECT - 10 * - 32 * - 41 AS col2
----
-13120

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

query II rowsort
SELECT ALL 51 - 50 AS col1, + 47 - + 49 AS col1
----
1
-2

query I rowsort
SELECT 72 * ( - 94 ) AS col1
----
-6768

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT - 1 DIV 21 + + + 0 * - 24 * - 50 * - 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-161
SELECT - 1 / 21 + + + 0 * - 24 * - 50 * - 25 AS col2
----
0

query I rowsort
SELECT 56 * - 6 AS col0
----
-336

query II rowsort
SELECT ALL 91 * - 22 AS col1, - 91 * + - ( + 1 ) + - + 62
----
-2002
29

query I rowsort
SELECT DISTINCT - 85 * + - 62 * 91
----
479570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-165
SELECT SUM( DISTINCT - + 96 ) DIV + 91
----
-1

skipif mysql # not compatible
query I rowsort label-165
SELECT SUM ( DISTINCT - + 96 ) / + 91
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT DISTINCT - 71 + - COUNT( * ) + - 67
----
-139

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT - 71 + - COUNT ( * ) + - 67
----
-139

query I rowsort
SELECT - 63 * 10 AS col2
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT - + 35 * - NULLIF ( 71, + 17 + 98 ) - - COUNT( * ) + + ( + + 81 )
----
2567

skipif mysql # not compatible
query I rowsort label-168
SELECT - + 35 * - NULLIF ( 71, + 17 + 98 ) - - COUNT ( * ) + + ( + + 81 )
----
2567

query I rowsort
SELECT ALL 37 + - 32 AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-170
SELECT + MIN( + 91 ) col2, + 63 * ( 48 ) AS col2
----
91
3024

skipif mysql # not compatible
query II rowsort label-170
SELECT + MIN ( + 91 ) col2, + 63 * ( 48 ) AS col2
----
91
3024

query II rowsort
SELECT ALL + 21 + + 49 AS col1, ( 25 )
----
70
25

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL - + 31 * - + ( - - COUNT( * ) ) col0
----
31

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - + 31 * - + ( - - COUNT ( * ) ) col0
----
31

query I rowsort
SELECT + 29 * ( - 6 ) * + 2 * + - 69 - - 7 AS col2
----
24019

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT DISTINCT 8 * - MIN( ALL - 75 ) AS col1
----
600

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT 8 * - MIN ( ALL - 75 ) AS col1
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT - ( + NULLIF ( - 6, + 67 + COUNT( * ) * 94 * COUNT( * ) ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-175
SELECT - ( + NULLIF ( - 6, + 67 + COUNT ( * ) * 94 * COUNT ( * ) ) ) AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-176
SELECT ALL COALESCE ( COUNT( * ), 77 ) * + - SUM( DISTINCT + ( 99 ) ) DIV - + MIN( ALL + ( - - 4 ) ) + 69
----
93

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL COALESCE ( COUNT ( * ), 77 ) * + - SUM ( DISTINCT + ( 99 ) ) / - + MIN ( ALL + ( - - 4 ) ) + 69
----
93

query I rowsort
SELECT 48 + + 23 AS col0
----
71

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

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

query I rowsort
SELECT + 32 - 91
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT DISTINCT - 88 DIV - 85
----
1

skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT - 88 / - 85
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-181
SELECT 37 - - 85 DIV 15 - + 89 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-181
SELECT 37 - - 85 / 15 - + 89 AS col2
----
-47

query I rowsort
SELECT 47 + - 95
----
-48

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

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

query II rowsort
SELECT ALL 6 AS col2, 74 * - 23 AS col1
----
6
-1702

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-185
SELECT DISTINCT + CAST( 48 AS SIGNED ) DIV + + 15
----
3

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT + CAST ( 48 AS INTEGER ) / + + 15
----
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-187
SELECT ALL + 70 * - MIN( ALL - - 25 ) col0, - COUNT( * ) * - 81
----
-1750
81

skipif mysql # not compatible
query II rowsort label-187
SELECT ALL + 70 * - MIN ( ALL - - 25 ) col0, - COUNT ( * ) * - 81
----
-1750
81

query I rowsort
SELECT 37 + 46 + + 69
----
152

query I rowsort
SELECT 72 - - 56
----
128

query I rowsort
SELECT 75 * - - 98 * - + 54
----
-396900

query I rowsort
SELECT 46 + 99 + + 67 + + + 2
----
214

query I rowsort
SELECT 82 - - 41
----
123

query II rowsort
SELECT ALL - 98 * - - ( + - 67 ), NULLIF ( - 44, - + 70 / - ( + 24 ) * - 81 ) * + 60 * 97 AS col0
----
6566
-256080

query I rowsort
SELECT 52 * 4 AS col0
----
208

query I rowsort
SELECT 56 * - - ( + ( 83 ) ) * - 39 + 28
----
-181244

onlyif mysql # aggregate syntax: 
query II rowsort label-196
SELECT DISTINCT COUNT( * ), 92 - + 80 col2
----
1
12

skipif mysql # not compatible
query II rowsort label-196
SELECT DISTINCT COUNT ( * ), 92 - + 80 col2
----
1
12

query I rowsort
SELECT 65 * - - 69 AS col0
----
4485

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT ALL - 7 + - 42 - - 19 + - 35 + - - COUNT( * ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-198
SELECT ALL - 7 + - 42 - - 19 + - 35 + - - COUNT ( * ) AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-199
SELECT 72 + - + 82 + - COALESCE ( - - COUNT( * ), - 40, - 15 * + 83 + + 30 + - + CAST( NULL AS SIGNED ) ) AS col0, - COUNT( DISTINCT NULLIF ( 18, 55 ) ) + + 68
----
-11
67

skipif mysql # not compatible
query II rowsort label-199
SELECT 72 + - + 82 + - COALESCE ( - - COUNT ( * ), - 40, - 15 * + 83 + + 30 + - + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( DISTINCT NULLIF ( 18, 55 ) ) + + 68
----
-11
67

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

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

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

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

query I rowsort
SELECT DISTINCT + 26 + + + 96 + - 98 + + + ( - 85 )
----
-61

query I rowsort
SELECT ALL 37 + - - 7 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT ALL - 63 + - COUNT( * ) - - + 88
----
24

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL - 63 + - COUNT ( * ) - - + 88
----
24

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-206
SELECT + 64 + - - CAST( + 13 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-206
SELECT + 64 + - - CAST ( + 13 AS INTEGER )
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT - NULLIF ( - ( + - 20 ), COUNT( * ) / + 76 ) + - - 49 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-208
SELECT - NULLIF ( - ( + - 20 ), COUNT ( * ) / + 76 ) + - - 49 AS col2
----
29

query II rowsort
SELECT - 90 AS col2, + ( + 91 )
----
-90
91

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT DISTINCT COUNT( * ) * ( - - 80 ) + + NULLIF ( - - 39, + + NULLIF ( - 48, + + 88 + + + 33 ) )
----
119

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT COUNT ( * ) * ( - - 80 ) + + NULLIF ( - - 39, + + NULLIF ( - 48, + + 88 + + + 33 ) )
----
119

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT + COALESCE ( CASE COUNT( * ) WHEN - + 34 + - + 0 / + - 85 THEN + SUM( - 41 ) ELSE + + 68 + + 1 * + + COUNT( * ) END, - + 76, - ( 47 ) ) * 98 AS col1
----
6762

skipif mysql # not compatible
query I rowsort label-212
SELECT + COALESCE ( CASE COUNT ( * ) WHEN - + 34 + - + 0 / + - 85 THEN + SUM ( - 41 ) ELSE + + 68 + + 1 * + + COUNT ( * ) END, - + 76, - ( 47 ) ) * 98 AS col1
----
6762

query I rowsort
SELECT ALL + 81 * + 33 * + - 69 * - - 65 * + - 6 AS col2
----
71930430

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-214
SELECT - - ( - + 24 ) * - 95 + - 44 AS col2, CAST( 78 AS SIGNED ) + - 55
----
2236
23

skipif mysql # not compatible
query II rowsort label-214
SELECT - - ( - + 24 ) * - 95 + - 44 AS col2, CAST ( 78 AS INTEGER ) + - 55
----
2236
23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-216
SELECT ALL 71 DIV - 66
----
-1

skipif mysql # not compatible
query I rowsort label-216
SELECT ALL 71 / - 66
----
-1

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

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

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

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

query I rowsort
SELECT DISTINCT - 24 - - ( + 0 )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-220
SELECT ALL - 66 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL - 66 / 68 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT + COUNT( * ) * + 75 + - - CASE + COUNT( * ) WHEN + + SUM( DISTINCT + 12 ) THEN - + 94 + - - 4 * - 97 * - 46 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-221
SELECT + COUNT ( * ) * + 75 + - - CASE + COUNT ( * ) WHEN + + SUM ( DISTINCT + 12 ) THEN - + 94 + - - 4 * - 97 * - 46 END AS col2
----
NULL

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

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

query I rowsort
SELECT ALL - ( + 52 ) * - 48 AS col2
----
2496

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT + 29 - + COUNT( * ) - + - 43 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT + 29 - + COUNT ( * ) - + - 43 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT ALL NULLIF ( + 53, 80 ) * - + COUNT( ALL + + 78 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL NULLIF ( + 53, 80 ) * - + COUNT ( ALL + + 78 ) AS col2
----
-53

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

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

query I rowsort
SELECT - CASE - 45 WHEN 67 + - 73 - + + 31 THEN - 8 WHEN + 19 * - - 93 - - 85 THEN NULL ELSE - 36 END
----
36

query II rowsort
SELECT DISTINCT + 57 + + 73 col1, 43 - + - 15
----
130
58

onlyif mysql # DIV for integer division: 
query I rowsort label-231
SELECT ALL + 39 + - 91 DIV + + 70
----
38

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL + 39 + - 91 / + + 70
----
38

query I rowsort
SELECT ALL COALESCE ( - ( 67 ), ( 87 ) + + - 57 * + - 58 * - 67 ) AS col2
----
-67

query I rowsort
SELECT ALL + 40 + + 10 col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT + COUNT( * ) - + CAST( 75 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-234
SELECT + COUNT ( * ) - + CAST ( 75 AS INTEGER )
----
-74

query I rowsort
SELECT ALL - 67 * + + 68 AS col1
----
-4556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-236
SELECT - CAST( + 76 AS SIGNED ) + - 19 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-236
SELECT - CAST ( + 76 AS INTEGER ) + - 19 AS col0
----
-95

query I rowsort
SELECT - - 77 * - 15 * - 1 + - 67
----
1088

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-238
SELECT - - 63 * + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + - 91 col2, + 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-238
SELECT - - 63 * + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + - 91 col2, + 84
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT DISTINCT - 6 * + 12 + + 30 + 90 * + CASE ( - + 41 ) WHEN 8 THEN ( - 57 ) + - 1 END * + - COUNT( * ) - + NULLIF ( + 36, 70 + + 55 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT - 6 * + 12 + + 30 + 90 * + CASE ( - + 41 ) WHEN 8 THEN ( - 57 ) + - 1 END * + - COUNT ( * ) - + NULLIF ( + 36, 70 + + 55 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT 16 * - - 70 - COUNT( * ) AS col0
----
1119

skipif mysql # not compatible
query I rowsort label-240
SELECT 16 * - - 70 - COUNT ( * ) AS col0
----
1119

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-242
SELECT - - SUM( - 97 ) DIV 69 - 3 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-242
SELECT - - SUM ( - 97 ) / 69 - 3 AS col1
----
-4

query I rowsort
SELECT - 16 + + 68 * - 34 AS col2
----
-2328

onlyif mysql # aggregate syntax: 
query II rowsort label-244
SELECT + - COUNT( + - 57 ) * - 10 + + - 97 AS col0, - COUNT( * ) AS col2
----
-87
-1

skipif mysql # not compatible
query II rowsort label-244
SELECT + - COUNT ( + - 57 ) * - 10 + + - 97 AS col0, - COUNT ( * ) AS col2
----
-87
-1

query I rowsort
SELECT ALL + 69 * + 77 col2
----
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT - + 6 + + + SUM( ALL - 78 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-246
SELECT - + 6 + + + SUM ( ALL - 78 ) AS col1
----
-84

query I rowsort
SELECT - 93 * 28 - + 92 - - - 27
----
-2723

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-248
SELECT ALL + CAST( + - NULLIF ( + 50, + 16 / + + COALESCE ( + 42, 27, COUNT( 44 ) ) + - 25 + + - 13 * - - 5 + - 32 * 72 / - 80 * 11 ) AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-248
SELECT ALL + CAST ( + - NULLIF ( + 50, + 16 / + + COALESCE ( + 42, 27, COUNT ( 44 ) ) + - 25 + + - 13 * - - 5 + - 32 * 72 / - 80 * 11 ) AS INTEGER )
----
-50

query I rowsort
SELECT + - 32 col2
----
-32

query I rowsort
SELECT - + 14 * + 67
----
-938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-251
SELECT ALL + - NULLIF ( + CAST( 52 AS SIGNED ), COUNT( * ) + + 2 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + - NULLIF ( + CAST ( 52 AS INTEGER ), COUNT ( * ) + + 2 ) AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-252
SELECT ALL + CAST( - 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-252
SELECT ALL + CAST ( - 49 AS INTEGER )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT + 18 + - SUM( - + 71 ) + + COUNT( * ) * - + 3 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-253
SELECT + 18 + - SUM ( - + 71 ) + + COUNT ( * ) * - + 3 AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-254
SELECT DISTINCT + CAST( + 59 AS SIGNED ) * + 94
----
5546

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT + CAST ( + 59 AS INTEGER ) * + 94
----
5546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-255
SELECT + - 68 * 84 * - + CAST( NULL AS SIGNED ) + + COUNT( - ( 72 ) ) + - - 79 * + - 87 + + - 14 + - 6 + 9 + COUNT( * ) col0, - 0 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-255
SELECT + - 68 * 84 * - + CAST ( NULL AS INTEGER ) + + COUNT ( - ( 72 ) ) + - - 79 * + - 87 + + - 14 + - 6 + 9 + COUNT ( * ) col0, - 0 AS col0
----
NULL
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-257
SELECT ALL 98 DIV - 51 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL 98 / - 51 AS col2
----
-1

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

query I rowsort
SELECT + 10 * + + 93 * - 59 * + 58
----
-3182460

query I rowsort
SELECT ALL 92 + - + 28
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-261
SELECT + MAX( - 2 ) - + - 97 AS col1, 71 - - + CAST( NULL AS DECIMAL ) + + 76 / + ( - 6 ) + + 61
----
95
NULL

skipif mysql # not compatible
query II rowsort label-261
SELECT + MAX ( - 2 ) - + - 97 AS col1, 71 - - + CAST ( NULL AS REAL ) + + 76 / + ( - 6 ) + + 61
----
95
NULL

query I rowsort
SELECT + 74 + - 11 AS col2
----
63

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

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

query I rowsort
SELECT DISTINCT 97 + + + 8 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT ALL + COUNT( * ) * - + COUNT( * ) * - COUNT( * ) * + - 92 * + + 52 AS col2
----
-4784

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) * - COUNT ( * ) * + - 92 * + + 52 AS col2
----
-4784

onlyif mysql # aggregate syntax: 
query II rowsort label-266
SELECT ALL COALESCE ( + 93, + 1 ) AS col1, COUNT( * ) * - 1 AS col1
----
93
-1

skipif mysql # not compatible
query II rowsort label-266
SELECT ALL COALESCE ( + 93, + 1 ) AS col1, COUNT ( * ) * - 1 AS col1
----
93
-1

query I rowsort
SELECT + 26 + 13 - 88 AS col1
----
-49

query I rowsort
SELECT ALL 32 + - 17 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-269
SELECT + 38 + + 66 * COUNT( * ) AS col1, 60 * - MAX( - 56 ) * 42 AS col1
----
104
141120

skipif mysql # not compatible
query II rowsort label-269
SELECT + 38 + + 66 * COUNT ( * ) AS col1, 60 * - MAX ( - 56 ) * 42 AS col1
----
104
141120

query I rowsort
SELECT + ( + 26 ) + + 42
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT - 20 - + + COUNT( * ) * - 44 * 38
----
1652

skipif mysql # not compatible
query I rowsort label-271
SELECT - 20 - + + COUNT ( * ) * - 44 * 38
----
1652

query II rowsort
SELECT ALL + NULLIF ( + 37, + 20 ) - - + 13 + + 38 col1, 87 col0
----
88
87

query I rowsort
SELECT + 73 + + - 45
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-274
SELECT ALL - - 24 * MAX( 63 ) * - 20 + + 72 + + + 90 + - 39 * - COUNT( * ), - 92 col2
----
-30039
-92

skipif mysql # not compatible
query II rowsort label-274
SELECT ALL - - 24 * MAX ( 63 ) * - 20 + + 72 + + + 90 + - 39 * - COUNT ( * ), - 92 col2
----
-30039
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-275
SELECT - + CAST( + 6 AS SIGNED ) * - COUNT( * ), - COUNT( * ) AS col0
----
6
-1

skipif mysql # not compatible
query II rowsort label-275
SELECT - + CAST ( + 6 AS INTEGER ) * - COUNT ( * ), - COUNT ( * ) AS col0
----
6
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-277
SELECT DISTINCT - 43 * + 36 * + 12 AS col2, + CAST( + 8 AS SIGNED )
----
-18576
8

skipif mysql # not compatible
query II rowsort label-277
SELECT DISTINCT - 43 * + 36 * + 12 AS col2, + CAST ( + 8 AS INTEGER )
----
-18576
8

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

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

query I rowsort
SELECT - - 29 + - 41 col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT ALL 59 * NULLIF ( - + COUNT( * ), + 5 * 29 * - + NULLIF ( + COUNT( + 70 ), + 11 * + 79 * + 40 + 40 ) + + 5 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL 59 * NULLIF ( - + COUNT ( * ), + 5 * 29 * - + NULLIF ( + COUNT ( + 70 ), + 11 * + 79 * + 40 + 40 ) + + 5 ) AS col2
----
-59

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

onlyif mysql # aggregate syntax: 
query II rowsort label-282
SELECT ALL - - ( 35 ) + + 50 AS col1, - COALESCE ( + 37, + 43, + COUNT( * ) ) * - - 9
----
85
-333

skipif mysql # not compatible
query II rowsort label-282
SELECT ALL - - ( 35 ) + + 50 AS col1, - COALESCE ( + 37, + 43, + COUNT ( * ) ) * - - 9
----
85
-333

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

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

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

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

query I rowsort
SELECT 37 * + 95 col0
----
3515

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT DISTINCT - 57 + - - 90 * - NULLIF ( + COUNT( * ), + + 84 * + + 50 + + 88 - + 88 )
----
-147

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT - 57 + - - 90 * - NULLIF ( + COUNT ( * ), + + 84 * + + 50 + + 88 - + 88 )
----
-147

query II rowsort
SELECT 30, - 67 AS col1
----
30
-67

query I rowsort
SELECT 91 + + ( - 97 ) * ( + 48 ) AS col1
----
-4565

query I rowsort
SELECT DISTINCT - 66 * + + ( + 44 ) AS col0
----
-2904

query I rowsort
SELECT DISTINCT 27 + 8 AS col2
----
35

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

query I rowsort
SELECT ALL - 48 * - ( - - 65 ) AS col1
----
3120

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT DISTINCT + 94 + COALESCE ( 95, - COUNT( * ) )
----
189

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT + 94 + COALESCE ( 95, - COUNT ( * ) )
----
189

query I rowsort
SELECT DISTINCT 79 + 78 AS col1
----
157

query I rowsort
SELECT DISTINCT - 22 + + 29 AS col2
----
7

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

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

query I rowsort
SELECT 7 + 74 + - 7
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-298
SELECT - 79, 1 DIV + + SUM( + - 69 ) + 82 AS col0
----
-79
82

skipif mysql # not compatible
query II rowsort label-298
SELECT - 79, 1 / + + SUM ( + - 69 ) + 82 AS col0
----
-79
82

query II rowsort
SELECT - 84 AS col1, 17 AS col2
----
-84
17

query II rowsort
SELECT 54, 78 - - NULLIF ( - - 84, + 76 ) col0
----
54
162

onlyif mysql # DIV for integer division: 
query I rowsort label-301
SELECT ALL 78 - + + 57 + - 5 DIV - 51
----
21

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL 78 - + + 57 + - 5 / - 51
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-302
SELECT 97 DIV - 16 AS col0, COUNT( * ) + 81
----
-6
82

skipif mysql # not compatible
query II rowsort label-302
SELECT 97 / - 16 AS col0, COUNT ( * ) + 81
----
-6
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ( + - 36 ) * - + 25 * - - 64 * - COUNT( * ) * NULLIF ( - 28, ( + 19 ) + 18 + 80 / + - COALESCE ( - NULLIF ( - 73, - - 87 ), - + 7 ) + + 13 ) * - 42 AS col2
----
-67737600

skipif mysql # not compatible
query I rowsort label-304
SELECT ( + - 36 ) * - + 25 * - - 64 * - COUNT ( * ) * NULLIF ( - 28, ( + 19 ) + 18 + 80 / + - COALESCE ( - NULLIF ( - 73, - - 87 ), - + 7 ) + + 13 ) * - 42 AS col2
----
-67737600

query I rowsort
SELECT ALL - 94 - 8
----
-102

query II rowsort
SELECT - - 43 col0, - CASE + 20 WHEN - 98 THEN 7 * + 36 END / 71 AS col2
----
43
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-308
SELECT ALL 63 * + 54 * + - 81 DIV COUNT( * ) + - 82 - 23 AS col1
----
-275667

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL 63 * + 54 * + - 81 / COUNT ( * ) + - 82 - 23 AS col1
----
-275667

query I rowsort
SELECT 92 + - 12 + - 62 AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-310
SELECT ALL 53 AS col2, 18 + + 80 + - 49 + + 96 + + - 37 DIV + 56 * + SUM( ALL - 47 ) * - 97 * ( - + ( - 38 ) ) + - - COUNT( ALL - - 14 )
----
53
146

skipif mysql # not compatible
query II rowsort label-310
SELECT ALL 53 AS col2, 18 + + 80 + - 49 + + 96 + + - 37 / + 56 * + SUM ( ALL - 47 ) * - 97 * ( - + ( - 38 ) ) + - - COUNT ( ALL - - 14 )
----
53
146

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-312
SELECT 12 * 97 + CAST( - ( + 26 ) AS SIGNED ) DIV NULLIF ( - 10, 93 )
----
1166

skipif mysql # not compatible
query I rowsort label-312
SELECT 12 * 97 + CAST ( - ( + 26 ) AS INTEGER ) / NULLIF ( - 10, 93 )
----
1166

query II rowsort
SELECT DISTINCT - + 99, 4 AS col0
----
-99
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-314
SELECT DISTINCT - - ( - + CAST( + 77 AS SIGNED ) )
----
-77

skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT - - ( - + CAST ( + 77 AS INTEGER ) )
----
-77

query I rowsort
SELECT ALL - 87 * + CASE 81 WHEN 16 THEN 94 * + 52 ELSE 35 * - 14 END
----
42630

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-316
SELECT DISTINCT 66 + + 50 + + ( 18 ) DIV - MIN( - 34 ) AS col0, 22 * + COUNT( * ) AS col2
----
116
22

skipif mysql # not compatible
query II rowsort label-316
SELECT DISTINCT 66 + + 50 + + ( 18 ) / - MIN ( - 34 ) AS col0, 22 * + COUNT ( * ) AS col2
----
116
22

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

query I rowsort
SELECT DISTINCT - 54 + + + 76 AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-319
SELECT ALL 93 + COUNT( * ) AS col1, 84 DIV - 12 AS col1
----
94
-7

skipif mysql # not compatible
query II rowsort label-319
SELECT ALL 93 + COUNT ( * ) AS col1, 84 / - 12 AS col1
----
94
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT - + 31 * + - 94 * + - COUNT( 77 ) + 22 + + ( - 9 ) col0
----
-2901

skipif mysql # not compatible
query I rowsort label-320
SELECT - + 31 * + - 94 * + - COUNT ( 77 ) + 22 + + ( - 9 ) col0
----
-2901

query I rowsort
SELECT 17 * - - 83
----
1411

query I rowsort
SELECT DISTINCT + 70 + - 81 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT 91 DIV - - 47 col0
----
1

skipif mysql # not compatible
query I rowsort label-323
SELECT 91 / - - 47 col0
----
1

query I rowsort
SELECT ALL - 53 + - 47
----
-100

query II rowsort
SELECT 75 + + 28 col0, 98 * + 6
----
103
588

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT ALL - NULLIF ( + 66, - 11 * + COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL - NULLIF ( + 66, - 11 * + COUNT ( * ) )
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT 62 + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-328
SELECT 62 + COUNT ( * ) AS col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-329
SELECT 10 * + + COUNT( * ) AS col1, NULLIF ( + 59, CAST( 13 AS SIGNED ) ) AS col1
----
10
59

skipif mysql # not compatible
query II rowsort label-329
SELECT 10 * + + COUNT ( * ) AS col1, NULLIF ( + 59, CAST ( 13 AS INTEGER ) ) AS col1
----
10
59

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT 81 + - 11 DIV - 69
----
81

skipif mysql # not compatible
query I rowsort label-330
SELECT 81 + - 11 / - 69
----
81

query I rowsort
SELECT ALL - 8 - - + 50
----
42

query I rowsort
SELECT 97 + + - 83 AS col0
----
14

query I rowsort
SELECT 0 * 15 AS col1
----
0

query I rowsort
SELECT ALL - 18 * + + 34
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT DISTINCT MAX( - - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT MAX ( - - 29 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-336
SELECT DISTINCT - COUNT( * ) * 15, 16 col2
----
-15
16

skipif mysql # not compatible
query II rowsort label-336
SELECT DISTINCT - COUNT ( * ) * 15, 16 col2
----
-15
16

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL MIN( ( + - 39 ) ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL MIN ( ( + - 39 ) ) AS col0
----
-39

query I rowsort
SELECT DISTINCT - - 91 * + 71
----
6461

query I rowsort
SELECT 15 + - ( 71 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT 58 DIV - - ( 60 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-340
SELECT 58 / - - ( 60 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-341
SELECT ALL 65 DIV + 37, - ( - 21 ) col1
----
1
21

skipif mysql # not compatible
query II rowsort label-341
SELECT ALL 65 / + 37, - ( - 21 ) col1
----
1
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT 7 * + CASE + 18 WHEN 70 / + + 91 * + - 40 * 34 THEN + + 89 ELSE NULL END / NULLIF ( + + SUM( - 13 ), + - CAST( 92 AS SIGNED ) ) - - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT 7 * + CASE + 18 WHEN 70 / + + 91 * + - 40 * 34 THEN + + 89 ELSE NULL END / NULLIF ( + + SUM ( - 13 ), + - CAST ( 92 AS INTEGER ) ) - - - 68
----
NULL

query I rowsort
SELECT - 5 + - 46 * - 85 + - 29 AS col2
----
3876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-344
SELECT ALL + ( - SUM( ALL 97 ) ) DIV - 52 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL + ( - SUM ( ALL 97 ) ) / - 52 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT NULLIF ( - 49, - - MAX( - 20 ) ) / - ( SUM( DISTINCT 22 ) ) + CASE - 14 WHEN + 57 THEN + ( 26 ) * + 91 * + - 49 + 35 * + 58 ELSE NULL END + - 13 * 65 * - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-345
SELECT NULLIF ( - 49, - - MAX ( - 20 ) ) / - ( SUM ( DISTINCT 22 ) ) + CASE - 14 WHEN + 57 THEN + ( 26 ) * + 91 * + - 49 + 35 * + 58 ELSE NULL END + - 13 * 65 * - 46 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 92 * 78
----
7176

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT + + 27 + - - COUNT( * ) col2
----
28

skipif mysql # not compatible
query I rowsort label-347
SELECT + + 27 + - - COUNT ( * ) col2
----
28

query I rowsort
SELECT ALL 10 * 79 + + 81 * 91 * ( - + 99 ) * - ( - 43 )
----
-31377557

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT ( COUNT( * ) ) * 21 + - 32
----
-11

skipif mysql # not compatible
query I rowsort label-349
SELECT ( COUNT ( * ) ) * 21 + - 32
----
-11

query I rowsort
SELECT + CASE + 3 WHEN - - 31 THEN NULL WHEN + 80 * 33 * - - 94 THEN 26 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT + 51 * - 14 + + - MIN( ALL + 4 ) AS col1
----
-718

skipif mysql # not compatible
query I rowsort label-351
SELECT + 51 * - 14 + + - MIN ( ALL + 4 ) AS col1
----
-718

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT + 94 DIV 50 + - 72 + 72
----
1

skipif mysql # not compatible
query I rowsort label-352
SELECT + 94 / 50 + - 72 + 72
----
1

query I rowsort
SELECT DISTINCT + 26 * + 19 + + 30
----
524

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT ALL 65 * - + 11 + - + 93 * COUNT( * ) DIV + + COUNT( * ) col1
----
-808

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL 65 * - + 11 + - + 93 * COUNT ( * ) / + + COUNT ( * ) col1
----
-808

query I rowsort
SELECT + COALESCE ( - 97, + + 43 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT DISTINCT 58 * + 70 + - ( + COALESCE ( + - ( - 7 ), - SUM( 26 ) * + + 54 + - ( 16 ), 50 + + 2 ) ) + + 46 / + CASE + ( ( + - 49 ) ) WHEN 34 THEN NULL WHEN - ( COUNT( * ) ) + 75 THEN - 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT DISTINCT 58 * + 70 + - ( + COALESCE ( + - ( - 7 ), - SUM ( 26 ) * + + 54 + - ( 16 ), 50 + + 2 ) ) + + 46 / + CASE + ( ( + - 49 ) ) WHEN 34 THEN NULL WHEN - ( COUNT ( * ) ) + 75 THEN - 9 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-357
SELECT COUNT( * ) DIV - 9 + 11 AS col0, - CAST( NULL AS SIGNED )
----
11
NULL

skipif mysql # not compatible
query II rowsort label-357
SELECT COUNT ( * ) / - 9 + 11 AS col0, - CAST ( NULL AS INTEGER )
----
11
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-358
SELECT ALL COALESCE ( - MAX( ALL ( - 14 ) ), - COUNT( * ) * - NULLIF ( + 54, - 41 * - + COUNT( * ) * + + 53 + + COUNT( * ) ) + 39 + + + 5 DIV - SUM( DISTINCT - + 7 ) DIV - 85 * - 95 ) * - 23 + - 64 + 65
----
-321

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL COALESCE ( - MAX ( ALL ( - 14 ) ), - COUNT ( * ) * - NULLIF ( + 54, - 41 * - + COUNT ( * ) * + + 53 + + COUNT ( * ) ) + 39 + + + 5 / - SUM ( DISTINCT - + 7 ) / - 85 * - 95 ) * - 23 + - 64 + 65
----
-321

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

skipif mysql # not compatible
query I rowsort label-359
SELECT MIN ( ALL - 98 )
----
-98

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

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

query I rowsort
SELECT + COALESCE ( + 99, + 5 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-362
SELECT - 21 + + 85 + 93 - + 49 + - CAST( - + 32 AS SIGNED ) * + - MIN( - 72 ) * - 24, 27 AS col0
----
-55188
27

skipif mysql # not compatible
query II rowsort label-362
SELECT - 21 + + 85 + 93 - + 49 + - CAST ( - + 32 AS INTEGER ) * + - MIN ( - 72 ) * - 24, 27 AS col0
----
-55188
27

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT SUM( DISTINCT - NULLIF ( - ( - + 65 ), 98 * - 56 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-363
SELECT SUM ( DISTINCT - NULLIF ( - ( - + 65 ), 98 * - 56 ) )
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT - 76 * ( + - COALESCE ( - + 41, + 28 * + - 97 + - - 81 + + 89 ) ) + + 28 + + 60 DIV 13
----
-3084

skipif mysql # not compatible
query I rowsort label-364
SELECT - 76 * ( + - COALESCE ( - + 41, + 28 * + - 97 + - - 81 + + 89 ) ) + + 28 + + 60 / 13
----
-3084

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL - COUNT( * ) * + 80 col1
----
-80

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - COUNT ( * ) * + 80 col1
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-366
SELECT ALL + 26 AS col2, 58 * ( + 57 ) * 42 + 21 DIV + 58 + - MAX( ALL + - 90 ) * 8 + - COALESCE ( - - 98, + + 85 + + ( - MIN( + 32 ) ), + + 33 ) AS col2
----
26
139474

skipif mysql # not compatible
query II rowsort label-366
SELECT ALL + 26 AS col2, 58 * ( + 57 ) * 42 + 21 / + 58 + - MAX ( ALL + - 90 ) * 8 + - COALESCE ( - - 98, + + 85 + + ( - MIN ( + 32 ) ), + + 33 ) AS col2
----
26
139474

query I rowsort
SELECT + 85 * - + 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-368
SELECT - 44 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-368
SELECT - 44 / 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT DISTINCT MIN( + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT MIN ( + 48 ) AS col1
----
48

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-372
SELECT DISTINCT + - 13 * + COALESCE ( - 62, - CAST( NULL AS SIGNED ) - 22 ) AS col0
----
806

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT + - 13 * + COALESCE ( - 62, - CAST ( NULL AS INTEGER ) - 22 ) AS col0
----
806

query I rowsort
SELECT ALL 99 + + 42 * - 58 AS col0
----
-2337

query I rowsort
SELECT DISTINCT + 59 + + - 83
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-375
SELECT - COUNT( * ) + + 9 + - SUM( DISTINCT + 71 ) * + 61 * + CAST( NULL AS DECIMAL ) + MIN( + 4 ) * CAST( - + 26 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-375
SELECT - COUNT ( * ) + + 9 + - SUM ( DISTINCT + 71 ) * + 61 * + CAST ( NULL AS REAL ) + MIN ( + 4 ) * CAST ( - + 26 AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-376
SELECT - 61, SUM( - + ( - - 29 ) ) - + 34 AS col0
----
-61
-63

skipif mysql # not compatible
query II rowsort label-376
SELECT - 61, SUM ( - + ( - - 29 ) ) - + 34 AS col0
----
-61
-63

query I rowsort
SELECT ALL + + 71 + - + 95 AS col1
----
-24

query I rowsort
SELECT - - 21 + - - 40 AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-379
SELECT + - 15 * + SUM( ALL + - 98 ) * - 9 / 42 - CAST( NULL AS SIGNED ) + + MIN( - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-379
SELECT + - 15 * + SUM ( ALL + - 98 ) * - 9 / 42 - CAST ( NULL AS INTEGER ) + + MIN ( - 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT - + COUNT( * ) + - + 27 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-380
SELECT - + COUNT ( * ) + - + 27 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT + + NULLIF ( + 43, + COUNT( * ) * 2 / + COALESCE ( + ( - 10 ), - 45 ) + 11 - - + 92 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-381
SELECT + + NULLIF ( + 43, + COUNT ( * ) * 2 / + COALESCE ( + ( - 10 ), - 45 ) + 11 - - + 92 ) AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-382
SELECT DISTINCT + ( 6 ) DIV COUNT( * ) AS col0, 2
----
6
2

skipif mysql # not compatible
query II rowsort label-382
SELECT DISTINCT + ( 6 ) / COUNT ( * ) AS col0, 2
----
6
2

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT ALL - CASE - 15 WHEN - + CASE + 10 WHEN + SUM( ALL + + 7 ) THEN NULL WHEN 12 * + - 32 + - ( 42 ) / - 54 + - 61 THEN NULL ELSE 46 END THEN + + 52 ELSE NULL END / + 6 * 52 + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL - CASE - 15 WHEN - + CASE + 10 WHEN + SUM ( ALL + + 7 ) THEN NULL WHEN 12 * + - 32 + - ( 42 ) / - 54 + - 61 THEN NULL ELSE 46 END THEN + + 52 ELSE NULL END / + 6 * 52 + 21 AS col1
----
NULL

query I rowsort
SELECT - 71 * + 9 col1
----
-639

query I rowsort
SELECT ALL 11 * - 40 * + 65
----
-28600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-386
SELECT CAST( + 23 AS SIGNED ) AS col1, + 17
----
23
17

skipif mysql # not compatible
query II rowsort label-386
SELECT CAST ( + 23 AS INTEGER ) AS col1, + 17
----
23
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-387
SELECT DISTINCT 54 / - 24 + 85 * AVG ( + CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-387
SELECT DISTINCT 54 / - 24 + 85 * AVG ( + CAST ( NULL AS REAL ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-388
SELECT + ( + COUNT( * ) ) AS col0, + CASE + - COUNT( * ) WHEN + COUNT( * ) THEN + - CASE - 51 WHEN + - ( 4 ) + - + 26 THEN NULL ELSE - 4 END * 76 + - 83 WHEN - - ( - 93 ) THEN 79 WHEN 78 + 87 THEN NULL END + + - CAST( - 93 AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-388
SELECT + ( + COUNT ( * ) ) AS col0, + CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN + - CASE - 51 WHEN + - ( 4 ) + - + 26 THEN NULL ELSE - 4 END * 76 + - 83 WHEN - - ( - 93 ) THEN 79 WHEN 78 + 87 THEN NULL END + + - CAST ( - 93 AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-389
SELECT + 4 * + - 70 AS col0, 17 * - MAX( ALL - 11 ) AS col2
----
-280
187

skipif mysql # not compatible
query II rowsort label-389
SELECT + 4 * + - 70 AS col0, 17 * - MAX ( ALL - 11 ) AS col2
----
-280
187

query I rowsort
SELECT ALL 9 * - 81 * 36
----
-26244

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-392
SELECT + COALESCE ( - 17, + + ( - 62 ), - ( 22 ) * NULLIF ( - + COUNT( * ), - 72 ) ), - COUNT( * ) col0
----
-17
-1

skipif mysql # not compatible
query II rowsort label-392
SELECT + COALESCE ( - 17, + + ( - 62 ), - ( 22 ) * NULLIF ( - + COUNT ( * ), - 72 ) ), - COUNT ( * ) col0
----
-17
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-393
SELECT - 72 * - CAST( NULL AS SIGNED ) * 76 - + 91, - 74 DIV - 13 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-393
SELECT - 72 * - CAST ( NULL AS INTEGER ) * 76 - + 91, - 74 / - 13 AS col2
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT + ( + 77 ) * + CASE COUNT( * ) WHEN 3 THEN + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-394
SELECT + ( + 77 ) * + CASE COUNT ( * ) WHEN 3 THEN + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-395
SELECT + COUNT( * ) * - + CAST( 4 AS SIGNED ) - + + 68 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-395
SELECT + COUNT ( * ) * - + CAST ( 4 AS INTEGER ) - + + 68 AS col1
----
-72

query I rowsort
SELECT + 38 * + 6 AS col2
----
228

query I rowsort
SELECT ALL + COALESCE ( - 99, + 35 ) * + + 35 col0
----
-3465

query I rowsort
SELECT DISTINCT + 58 col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-399
SELECT + COUNT( * ) + - 78 * + - CAST( + 39 AS SIGNED ) AS col0
----
3043

skipif mysql # not compatible
query I rowsort label-399
SELECT + COUNT ( * ) + - 78 * + - CAST ( + 39 AS INTEGER ) AS col0
----
3043

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-400
SELECT - COUNT( DISTINCT - - 87 ) DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-400
SELECT - COUNT ( DISTINCT - - 87 ) / - 97
----
0

query I rowsort
SELECT + 2 + + - 16
----
-14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT + - 51 + + 45 + COUNT( * ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-403
SELECT + - 51 + + 45 + COUNT ( * ) col2
----
-5

query I rowsort
SELECT ALL 43 * 14 - - 78 col0
----
680

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT + + 77 DIV + 28 + - + 27
----
-25

skipif mysql # not compatible
query I rowsort label-405
SELECT + + 77 / + 28 + - + 27
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT ALL + + 58 * 85 + - - 82 - - COALESCE ( + MAX( + 66 ), + + 21 ) + - 27 * - COUNT( * ) * 68 * 18
----
38126

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL + + 58 * 85 + - - 82 - - COALESCE ( + MAX ( + 66 ), + + 21 ) + - 27 * - COUNT ( * ) * 68 * 18
----
38126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-407
SELECT DISTINCT - NULLIF ( CASE + - MIN( DISTINCT - 24 ) WHEN - 47 THEN + - COALESCE ( 45, - - 40 * 81 * - ( + 31 ) + 58 ) / 17 + - 35 * + - 80 ELSE NULL END, 84 * + - CAST( NULL AS SIGNED ) * - COALESCE ( - CAST( NULL AS SIGNED ), 11 - 43, CAST( NULL AS DECIMAL ) * + 22 ) + + 44 * + 6 ) + + NULLIF ( 84, + 14 * ( SUM( ALL + 82 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT - NULLIF ( CASE + - MIN ( DISTINCT - 24 ) WHEN - 47 THEN + - COALESCE ( 45, - - 40 * 81 * - ( + 31 ) + 58 ) / 17 + - 35 * + - 80 ELSE NULL END, 84 * + - CAST ( NULL AS INTEGER ) * - COALESCE ( - CAST ( NULL AS INTEGER ), 11 - 43, CAST ( NULL AS REAL ) * + 22 ) + + 44 * + 6 ) + + NULLIF ( 84, + 14 * ( SUM ( ALL + 82 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT - 53 + - - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-408
SELECT - 53 + - - COUNT ( * ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT - MIN( DISTINCT 88 ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-409
SELECT - MIN ( DISTINCT 88 ) col1
----
-88

query II rowsort
SELECT ALL - 55 + - 81 AS col2, 45 AS col2
----
-136
45

query I rowsort
SELECT - 3 + 13 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT ALL + 64 + - MAX( + 91 ) - + + SUM( ALL - 19 ) + ( + 17 ) * + 71 * - - 14 + - 50 col1
----
16840

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL + 64 + - MAX ( + 91 ) - + + SUM ( ALL - 19 ) + ( + 17 ) * + 71 * - - 14 + - 50 col1
----
16840

query I rowsort
SELECT DISTINCT NULLIF ( - ( 20 ), + - 51 + - 82 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT DISTINCT + + SUM( DISTINCT + 39 ) * 91
----
3549

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT + + SUM ( DISTINCT + 39 ) * 91
----
3549

query I rowsort
SELECT ALL + 14 * 3 * - - 93 AS col1
----
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT - 69 + + - COUNT( * ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-416
SELECT - 69 + + - COUNT ( * ) col1
----
-70

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

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL + 94 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT 65 DIV + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-418
SELECT 65 / + 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT NULLIF ( + 42, + 93 * - - 55 ) * 79 - - - MIN( + 9 ) AS col1
----
3309

skipif mysql # not compatible
query I rowsort label-419
SELECT NULLIF ( + 42, + 93 * - - 55 ) * 79 - - - MIN ( + 9 ) AS col1
----
3309

query I rowsort
SELECT ALL - COALESCE ( - 43, + 7, + 9 ) AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-421
SELECT ALL 80 DIV - 10 col2
----
-8

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL 80 / - 10 col2
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - COUNT( + + 43 ) * - COUNT( ALL ( 69 ) ) * + 6 + + 30 - + + ( + + ( 57 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-423
SELECT - COUNT ( + + 43 ) * - COUNT ( ALL ( 69 ) ) * + 6 + + 30 - + + ( + + ( 57 ) )
----
-21

query I rowsort
SELECT 90 * - 7 * + 41 AS col0
----
-25830

query I rowsort
SELECT ALL + 86 * + 67
----
5762

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

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

query I rowsort
SELECT DISTINCT + 53 + - 41 AS col2
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT ALL - COALESCE ( - 78, + COUNT( * ) + - 35 ) + 15 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL - COALESCE ( - 78, + COUNT ( * ) + - 35 ) + 15 AS col1
----
93

query I rowsort
SELECT DISTINCT 3 + 11
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-431
SELECT ALL - COALESCE ( + 4, + - 40 ) + - - CASE - 81 WHEN + 56 * 61 + + + 68 THEN + 80 * - 90 + + - 35 * + + 91 * - 23 * - 44 * + + CASE 61 WHEN - 75 - - 25 THEN + 86 END END + + CAST( NULL AS SIGNED ) - + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL - COALESCE ( + 4, + - 40 ) + - - CASE - 81 WHEN + 56 * 61 + + + 68 THEN + 80 * - 90 + + - 35 * + + 91 * - 23 * - 44 * + + CASE 61 WHEN - 75 - - 25 THEN + 86 END END + + CAST ( NULL AS INTEGER ) - + 8 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-432
SELECT - + 84 col2, 92 DIV + 68 + 68
----
-84
69

skipif mysql # not compatible
query II rowsort label-432
SELECT - + 84 col2, 92 / + 68 + 68
----
-84
69

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT - NULLIF ( COUNT( ( + 54 ) ), 65 * 17 + - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-433
SELECT - NULLIF ( COUNT ( ( + 54 ) ), 65 * 17 + - + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 59 + 68 + 52 * - + 49 * - NULLIF ( 74, - - 63 - + 69 )
----
188679

query I rowsort
SELECT - 90 * + 37 * - - 52 AS col0
----
-173160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-436
SELECT - CASE 93 WHEN + 95 THEN 5 * - ( + MAX( + + 64 ) ) * MIN( DISTINCT 54 ) WHEN ( COUNT( * ) ) - 42 * 12 * 62 THEN - COUNT( * ) + - - 30 END * - - 56 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-436
SELECT - CASE 93 WHEN + 95 THEN 5 * - ( + MAX ( + + 64 ) ) * MIN ( DISTINCT 54 ) WHEN ( COUNT ( * ) ) - 42 * 12 * 62 THEN - COUNT ( * ) + - - 30 END * - - 56 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

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

query I rowsort
SELECT ALL 70 - - 55
----
125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT ALL COUNT( ALL + 31 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL COUNT ( ALL + 31 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT ( 23 ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT ( 23 ) / + 88
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-443
SELECT 61 * - 34 * - 76 + + + 4 + + 44 + - + 16 - - CAST( NULL AS SIGNED ) * - 94 * + - 75 * + - 53 * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-443
SELECT 61 * - 34 * - 76 + + + 4 + + 44 + - + 16 - - CAST ( NULL AS INTEGER ) * - 94 * + - 75 * + - 53 * COUNT ( * ) AS col1
----
NULL

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

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

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

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

query II rowsort
SELECT + 52, 21 AS col1
----
52
21

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL - COUNT( + - 49 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL - COUNT ( + - 49 ) AS col1
----
-1

query I rowsort
SELECT 6 * - 31 AS col2
----
-186

query I rowsort
SELECT ALL - 99 * + 34 + + 43
----
-3323

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT 25 DIV 12
----
2

skipif mysql # not compatible
query I rowsort label-450
SELECT 25 / 12
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-451
SELECT DISTINCT - NULLIF ( 98, + + 86 ) * + 57 + - 15 + + MIN( DISTINCT - + 53 ) + - + 90 * - 19 * + 75 + + 18, - 78 col2
----
122614
-78

skipif mysql # not compatible
query II rowsort label-451
SELECT DISTINCT - NULLIF ( 98, + + 86 ) * + 57 + - 15 + + MIN ( DISTINCT - + 53 ) + - + 90 * - 19 * + 75 + + 18, - 78 col2
----
122614
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT 15 DIV + - 58 * - 50
----
0

skipif mysql # not compatible
query I rowsort label-452
SELECT 15 / + - 58 * - 50
----
0

query I rowsort
SELECT 51 * + 3 col2
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-454
SELECT DISTINCT - 10 DIV + 8 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT - 10 / + 8 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT - 88 * 33 - + NULLIF ( + - 57, COUNT( ALL 25 ) * 91 * 91 )
----
-2847

skipif mysql # not compatible
query I rowsort label-455
SELECT - 88 * 33 - + NULLIF ( + - 57, COUNT ( ALL 25 ) * 91 * 91 )
----
-2847

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-456
SELECT DISTINCT + CASE + 25 WHEN 75 + 76 + - CASE 30 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 55 THEN - + 15 END THEN + NULLIF ( + MIN( - 56 ), - 73 ) END + 9 + + 5 + + CAST( NULL AS SIGNED ) / - 98 + + + 72 - - + 24 / CAST( NULL AS SIGNED ) * - COUNT( * ) + + COUNT( * ) * - 9 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + CASE + 25 WHEN 75 + 76 + - CASE 30 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 55 THEN - + 15 END THEN + NULLIF ( + MIN ( - 56 ), - 73 ) END + 9 + + 5 + + CAST ( NULL AS INTEGER ) / - 98 + + + 72 - - + 24 / CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + COUNT ( * ) * - 9 * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 48 * + 7 * + + 48 AS col2
----
16128

query I rowsort
SELECT ALL - 74 * 35 + + 66
----
-2524

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-459
SELECT + 45 AS col1, - CAST( NULL AS SIGNED ) * - 3 AS col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-459
SELECT + 45 AS col1, - CAST ( NULL AS INTEGER ) * - 3 AS col0
----
45
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT + COUNT( * ) * 58 * + 80 * + + ( + 4 ) - - + 40 AS col2
----
18600

skipif mysql # not compatible
query I rowsort label-461
SELECT + COUNT ( * ) * 58 * + 80 * + + ( + 4 ) - - + 40 AS col2
----
18600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT - 88 + + CAST( - 70 AS SIGNED ) col0
----
-158

skipif mysql # not compatible
query I rowsort label-462
SELECT - 88 + + CAST ( - 70 AS INTEGER ) col0
----
-158

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

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

query I rowsort
SELECT ALL + 97 - - 21
----
118

query II rowsort
SELECT ALL + 32, - 57 AS col1
----
32
-57

query II rowsort
SELECT DISTINCT - 80 * 74, + 8 + - 8 col1
----
-5920
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT + + MIN( ALL - 21 ) + - + ( COUNT( * ) ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-468
SELECT + + MIN ( ALL - 21 ) + - + ( COUNT ( * ) ) col2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT ALL + 98 DIV - 66 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL + 98 / - 66 AS col1
----
-1

query I rowsort
SELECT + 60 * - 96 * - 6 * - 59 AS col0
----
-2039040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-471
SELECT + CASE - + COUNT( * ) WHEN 15 * - COUNT( * ) * + ( + AVG ( DISTINCT - 46 ) ) THEN + - 16 * + + CAST( NULL AS SIGNED ) * - + 81 WHEN + 57 + + - AVG ( + 12 ) THEN NULL ELSE + + SUM( ALL - ( - CAST( - 3 AS SIGNED ) ) ) END + + 17 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-471
SELECT + CASE - + COUNT ( * ) WHEN 15 * - COUNT ( * ) * + ( + AVG ( DISTINCT - 46 ) ) THEN + - 16 * + + CAST ( NULL AS INTEGER ) * - + 81 WHEN + 57 + + - AVG ( + 12 ) THEN NULL ELSE + + SUM ( ALL - ( - CAST ( - 3 AS INTEGER ) ) ) END + + 17 AS col1
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-472
SELECT - 57 + - 94 AS col0, - ( + 25 ) - - 0 DIV + - 97
----
-151
-25

skipif mysql # not compatible
query II rowsort label-472
SELECT - 57 + - 94 AS col0, - ( + 25 ) - - 0 / + - 97
----
-151
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT - CASE + 88 WHEN 5 THEN 9 + - + ( + 39 ) * - COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT - CASE + 88 WHEN 5 THEN 9 + - + ( + 39 ) * - COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 51 * + + 87
----
4437

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

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

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

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

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

query I rowsort
SELECT + 60 * + 52 * NULLIF ( 26, + 31 ) + 36
----
81156

query I rowsort
SELECT 87 * + - COALESCE ( + 97, + 70 ) + + 45 AS col1
----
-8394

query II rowsort
SELECT ( 53 ) AS col0, ( ( + 85 ) ) + 89 AS col2
----
53
174

query I rowsort
SELECT DISTINCT - 23 * - 12 + + + 31
----
307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-483
SELECT ALL + CAST( NULL AS SIGNED ) * 20 + - + 82 * 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL + CAST ( NULL AS INTEGER ) * 20 + - + 82 * 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT ALL + 90 * - 78 + - + 57 + 59 + - 78 * + 94 * + CASE - 21 WHEN 89 * 62 THEN NULLIF ( + 17, COUNT( * ) + - 43 - - 69 + COALESCE ( - + 67, - 83 + - NULLIF ( - - 41, - 94 ), + SUM( 66 ), - 25 + - ( 31 ) / 75 ) * + 99 ) + COUNT( * ) * COUNT( * ) WHEN 21 THEN 90 END * + 91 - ( 44 ) / + COALESCE ( - 21, COUNT( * ) + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL + 90 * - 78 + - + 57 + 59 + - 78 * + 94 * + CASE - 21 WHEN 89 * 62 THEN NULLIF ( + 17, COUNT ( * ) + - 43 - - 69 + COALESCE ( - + 67, - 83 + - NULLIF ( - - 41, - 94 ), + SUM ( 66 ), - 25 + - ( 31 ) / 75 ) * + 99 ) + COUNT ( * ) * COUNT ( * ) WHEN 21 THEN 90 END * + 91 - ( 44 ) / + COALESCE ( - 21, COUNT ( * ) + 3 )
----
NULL

query I rowsort
SELECT - 21 * + 64 * - 64 + + - 24 col1
----
85992

query I rowsort
SELECT - 7 * + 99
----
-693

query I rowsort
SELECT ALL - + 4 * - 70 AS col1
----
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-488
SELECT - 6 + COUNT( * ) DIV - COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-488
SELECT - 6 + COUNT ( * ) / - COUNT ( * ) AS col1
----
-7

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-490
SELECT - + 6 + + + MIN( - 3 ) * + - 37 + + - 92 DIV 8 - - + 9 + ( + + COALESCE ( 32, + COUNT( * ), - + 50 ) ), 92 AS col1
----
135
92

skipif mysql # not compatible
query II rowsort label-490
SELECT - + 6 + + + MIN ( - 3 ) * + - 37 + + - 92 / 8 - - + 9 + ( + + COALESCE ( 32, + COUNT ( * ), - + 50 ) ), 92 AS col1
----
135
92

onlyif mysql # DIV for integer division: 
query I rowsort label-491
SELECT + 95 * 7 + 30 DIV - 60
----
665

skipif mysql # not compatible
query I rowsort label-491
SELECT + 95 * 7 + 30 / - 60
----
665

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

skipif mysql # not compatible
query I rowsort label-492
SELECT + MIN ( + 11 )
----
11

query I rowsort
SELECT + ( + + NULLIF ( 99, - 57 ) ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-494
SELECT + COUNT( * ) * + 58 + + - 87 - 87 + + CAST( - 20 AS SIGNED ) * + 15
----
-416

skipif mysql # not compatible
query I rowsort label-494
SELECT + COUNT ( * ) * + 58 + + - 87 - 87 + + CAST ( - 20 AS INTEGER ) * + 15
----
-416

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

skipif mysql # not compatible
query I rowsort label-495
SELECT DISTINCT + CAST ( NULL AS REAL ) / - 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT - 36 * 87 * - NULLIF ( - 85, - 18 + - 46 ) * - COUNT( * ) + - 80 - - 18 * - - 36 AS col0
----
266788

skipif mysql # not compatible
query I rowsort label-496
SELECT - 36 * 87 * - NULLIF ( - 85, - 18 + - 46 ) * - COUNT ( * ) + - 80 - - 18 * - - 36 AS col0
----
266788

onlyif mysql # DIV for integer division: 
query I rowsort label-497
SELECT ALL + + 20 DIV 95 * + 20 * 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL + + 20 / 95 * + 20 * 2 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-498
SELECT - + 10 - - 52, 34 / + CAST( NULL AS SIGNED ) AS col2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-498
SELECT - + 10 - - 52, 34 / + CAST ( NULL AS INTEGER ) AS col2
----
42
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT - + 5 DIV 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-499
SELECT - + 5 / 53 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT - - COUNT( * ) - 28 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-500
SELECT - - COUNT ( * ) - 28 AS col1
----
-27

query I rowsort
SELECT ALL - - 7 * - + 93 * - 91
----
59241

query II rowsort
SELECT - - 86 * + 86 col1, + 92 + + 3 - + ( - 9 ) * 87 col2
----
7396
878

query I rowsort
SELECT DISTINCT ( + + NULLIF ( + 1, - 54 ) ) AS col0
----
1

query I rowsort
SELECT - 45 - - 51
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-505
SELECT DISTINCT - 72 * - - ( COUNT( * ) ), COUNT( * ) * + 3 AS col2
----
-72
3

skipif mysql # not compatible
query II rowsort label-505
SELECT DISTINCT - 72 * - - ( COUNT ( * ) ), COUNT ( * ) * + 3 AS col2
----
-72
3

onlyif mysql # aggregate syntax: 
query II rowsort label-506
SELECT ALL 52 AS col1, COUNT( ALL - 93 ) * + 57 col1
----
52
57

skipif mysql # not compatible
query II rowsort label-506
SELECT ALL 52 AS col1, COUNT ( ALL - 93 ) * + 57 col1
----
52
57

query I rowsort
SELECT + 39 * + 20
----
780

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

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

query I rowsort
SELECT - ( - - 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-510
SELECT - ( + 96 ) + + CASE + 58 WHEN + ( - 55 ) THEN NULL ELSE - - 92 END - + 6, COUNT( * ) * - + 16 * + NULLIF ( + CASE 77 WHEN - 10 THEN - ( - + 46 ) * 43 ELSE + 7 * + 78 END, + + 48 + - 73 ) AS col2
----
-10
-8736

skipif mysql # not compatible
query II rowsort label-510
SELECT - ( + 96 ) + + CASE + 58 WHEN + ( - 55 ) THEN NULL ELSE - - 92 END - + 6, COUNT ( * ) * - + 16 * + NULLIF ( + CASE 77 WHEN - 10 THEN - ( - + 46 ) * 43 ELSE + 7 * + 78 END, + + 48 + - 73 ) AS col2
----
-10
-8736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-511
SELECT ALL CASE 12 WHEN - + 95 * - 54 THEN + 89 + + 1 * + 73 WHEN 99 + AVG ( - 41 ) + + COUNT( * ) * - 0 + + 39 * - COALESCE ( - + CAST( - 22 AS SIGNED ), + CASE - 55 WHEN 76 THEN NULL ELSE + ( + 50 ) * + + ( + + 31 ) END * - 21 + COUNT( * ) ) * - CAST( NULL AS SIGNED ) THEN NULL END / - CAST( 54 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL CASE 12 WHEN - + 95 * - 54 THEN + 89 + + 1 * + 73 WHEN 99 + AVG ( - 41 ) + + COUNT ( * ) * - 0 + + 39 * - COALESCE ( - + CAST ( - 22 AS INTEGER ), + CASE - 55 WHEN 76 THEN NULL ELSE + ( + 50 ) * + + ( + + 31 ) END * - 21 + COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) THEN NULL END / - CAST ( 54 AS INTEGER )
----
NULL

query I rowsort
SELECT + 62 + ( 45 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT + 67 - - - COALESCE ( COUNT( - 29 ), + 80 * - 20 )
----
66

skipif mysql # not compatible
query I rowsort label-513
SELECT + 67 - - - COALESCE ( COUNT ( - 29 ), + 80 * - 20 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-514
SELECT - NULLIF ( - COUNT( * ), 47 * CAST( NULL AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-514
SELECT - NULLIF ( - COUNT ( * ), 47 * CAST ( NULL AS INTEGER ) ) col0
----
1

query II rowsort
SELECT DISTINCT 91 + - + CASE - + 38 WHEN - - ( 27 ) THEN NULL WHEN ( + 46 ) + + 53 + - 61 + - + 35 * - 28 * + 58 * - 71 / - + NULLIF ( 44, - 17 ) THEN - + 58 ELSE NULL END + - 20 AS col2, - 93
----
NULL
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT ALL ( + - COUNT( * ) ) + + 24 * 98
----
2351

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL ( + - COUNT ( * ) ) + + 24 * 98
----
2351

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-518
SELECT ALL 26 + - + 87 * + 73 AS col1, - 92 * 99 DIV + NULLIF ( ( - SUM( + + 93 ) ), - 49 ) AS col1
----
-6325
97

skipif mysql # not compatible
query II rowsort label-518
SELECT ALL 26 + - + 87 * + 73 AS col1, - 92 * 99 / + NULLIF ( ( - SUM ( + + 93 ) ), - 49 ) AS col1
----
-6325
97

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

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

query II rowsort
SELECT + 85 AS col1, + 90 + 44 * - 19 AS col1
----
85
-746

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ALL MAX( + + 41 ) - - + 46 col0
----
87

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL MAX ( + + 41 ) - - + 46 col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-522
SELECT 36 DIV COUNT( ALL + - 41 ) - 5 + + MIN( ALL 12 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-522
SELECT 36 / COUNT ( ALL + - 41 ) - 5 + + MIN ( ALL 12 ) AS col2
----
43

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-524
SELECT ALL - - 10 AS col2, + SUM( - 6 ) DIV + 1 + 4 AS col0
----
10
-2

skipif mysql # not compatible
query II rowsort label-524
SELECT ALL - - 10 AS col2, + SUM ( - 6 ) / + 1 + 4 AS col0
----
10
-2

query I rowsort
SELECT - 93 - + 46 col1
----
-139

query I rowsort
SELECT 5 * - + 91
----
-455

query II rowsort
SELECT ALL - 39 col0, 6
----
-39
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-529
SELECT + NULLIF ( + SUM( ALL - + CAST( NULL AS SIGNED ) ), - 24 - - 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-529
SELECT + NULLIF ( + SUM ( ALL - + CAST ( NULL AS INTEGER ) ), - 24 - - 59 ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-530
SELECT CAST ( NULL AS INTEGER ) + + + 39 - 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-531
SELECT 65, CASE 34 WHEN - + NULLIF ( + 13, - 4 ) THEN NULL WHEN + ( - CAST( NULL AS SIGNED ) ) / - 63 / 17 THEN - 79 + + + MAX( ALL - 21 ) * 63 END AS col0
----
65
NULL

skipif mysql # not compatible
query II rowsort label-531
SELECT 65, CASE 34 WHEN - + NULLIF ( + 13, - 4 ) THEN NULL WHEN + ( - CAST ( NULL AS INTEGER ) ) / - 63 / 17 THEN - 79 + + + MAX ( ALL - 21 ) * 63 END AS col0
----
65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT + 9 * 72 * + - COUNT( 94 ) * + 49 * + ( + - 76 ) + + - COUNT( * ) + - NULLIF ( + NULLIF ( - 15, - - 10 ), + + 50 * + 33 * - + 60 ) AS col0
----
2413166

skipif mysql # not compatible
query I rowsort label-532
SELECT + 9 * 72 * + - COUNT ( 94 ) * + 49 * + ( + - 76 ) + + - COUNT ( * ) + - NULLIF ( + NULLIF ( - 15, - - 10 ), + + 50 * + 33 * - + 60 ) AS col0
----
2413166

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT ALL CASE + 36 WHEN - - COUNT( * ) THEN - 9 + + - 35 * - + 76 ELSE NULL END + + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL CASE + 36 WHEN - - COUNT ( * ) THEN - 9 + + - 35 * - + 76 ELSE NULL END + + - 85
----
NULL

query I rowsort
SELECT ALL + 4 + + 20 AS col1
----
24

query I rowsort
SELECT 10 + 96
----
106

query I rowsort
SELECT ALL + 31 + - + 9 AS col1
----
22

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

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

query I rowsort
SELECT 19 + + 55 + + 6 AS col2
----
80

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

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * )
----
1

query I rowsort
SELECT 29 + - 93
----
-64

query I rowsort
SELECT 0 * + - 38 AS col1
----
0

query I rowsort
SELECT 9 * - 15
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT ALL - CASE + 43 WHEN + COUNT( * ) THEN + ( - + 32 ) END + - MIN( ALL - - ( 25 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL - CASE + 43 WHEN + COUNT ( * ) THEN + ( - + 32 ) END + - MIN ( ALL - - ( 25 ) )
----
NULL

query I rowsort
SELECT ALL + 42 * 17
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT COUNT( * ) + + SUM( + 33 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-545
SELECT COUNT ( * ) + + SUM ( + 33 ) AS col2
----
34

query I rowsort
SELECT 24 * + - CASE 79 WHEN - 87 THEN + 62 ELSE NULL END
----
NULL

query I rowsort
SELECT 34 - - + 30
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT DISTINCT - 43 DIV - - 53 * - 11
----
0

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT - 43 / - - 53 * - 11
----
0

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

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

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

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

query II rowsort
SELECT ALL 98 - - 41 AS col2, ( + + 38 ) + 87
----
139
125

query II rowsort
SELECT DISTINCT - 93 * - - 99 * 69 + + 30, - ( + 34 ) AS col1
----
-635253
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-553
SELECT ALL - SUM( - - 78 ) * - + 30 + + + 76 + - 18 * - ( - + COUNT( * ) ) * + + 83 + + 70 DIV - - 10 AS col2
----
929

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL - SUM ( - - 78 ) * - + 30 + + + 76 + - 18 * - ( - + COUNT ( * ) ) * + + 83 + + 70 / - - 10 AS col2
----
929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-554
SELECT + 18 DIV MAX( - 98 ) + + 6 - + COUNT( * ) + + SUM( DISTINCT + 91 ) * 68 * - 11 - - 97 * - - 74 AS col1
----
-60885

skipif mysql # not compatible
query I rowsort label-554
SELECT + 18 / MAX ( - 98 ) + + 6 - + COUNT ( * ) + + SUM ( DISTINCT + 91 ) * 68 * - 11 - - 97 * - - 74 AS col1
----
-60885

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT - COUNT( - + 88 ) * + MAX( DISTINCT 98 ) + - ( + 63 )
----
-161

skipif mysql # not compatible
query I rowsort label-555
SELECT - COUNT ( - + 88 ) * + MAX ( DISTINCT 98 ) + - ( + 63 )
----
-161

query I rowsort
SELECT - 27 + COALESCE ( - 9, NULLIF ( - ( + 62 ), 27 * - 99 ), + 58, 89 )
----
-36

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-559
SELECT DISTINCT 72 + - CASE + + COALESCE ( - + 51, + 21 * - AVG ( DISTINCT - + 1 ) ) WHEN - - 19 THEN - ( - - COUNT( * ) ) / - COUNT( * ) WHEN + 30 + - CASE 22 WHEN + + 96 * - + 84 THEN 23 / 87 + + 19 * - 56 + 80 ELSE - CAST( + - SUM( - 29 ) AS SIGNED ) END * 6 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT 72 + - CASE + + COALESCE ( - + 51, + 21 * - AVG ( DISTINCT - + 1 ) ) WHEN - - 19 THEN - ( - - COUNT ( * ) ) / - COUNT ( * ) WHEN + 30 + - CASE 22 WHEN + + 96 * - + 84 THEN 23 / 87 + + 19 * - 56 + 80 ELSE - CAST ( + - SUM ( - 29 ) AS INTEGER ) END * 6 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - 40 * - + 32 * + - 10
----
-12800

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL - + MAX( ALL + - 63 ) + 76
----
139

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL - + MAX ( ALL + - 63 ) + 76
----
139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT ALL SUM( DISTINCT - 93 ) + 82
----
-11

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL SUM ( DISTINCT - 93 ) + 82
----
-11

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

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

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

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

query I rowsort
SELECT - 68 * - CASE + + 77 WHEN - - 84 THEN + - AVG ( ALL - + 49 ) - - 50 END * COALESCE ( - 71, + 73 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT DISTINCT COUNT( ALL - + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT COUNT ( ALL - + 10 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-568
SELECT DISTINCT CASE - 80 WHEN - 73 THEN NULL ELSE + 17 DIV - + 43 * + + 75 * + 9 * 62 * + 97 + - 65 * + 4 + - 64 + 51 END - COUNT( * ) col2
----
-274

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT CASE - 80 WHEN - 73 THEN NULL ELSE + 17 / - + 43 * + + 75 * + 9 * 62 * + 97 + - 65 * + 4 + - 64 + 51 END - COUNT ( * ) col2
----
-274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-569
SELECT ALL + 37 - + CASE + 0 WHEN + - MAX( ALL + 98 ) THEN NULL WHEN + + NULLIF ( - 77, 83 * CASE - CAST( + + 22 AS SIGNED ) WHEN - 28 * + 42 + 2 - - 21 * - - ( - + ( ( - + 12 ) ) ) THEN + AVG ( ALL 43 ) WHEN - 70 - + 15 THEN NULL END * + + 41 ) THEN NULL ELSE + + 83 + - 30 END - 28 * - NULLIF ( 80, - 50 ) * + 75 AS col2
----
167984

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL + 37 - + CASE + 0 WHEN + - MAX ( ALL + 98 ) THEN NULL WHEN + + NULLIF ( - 77, 83 * CASE - CAST ( + + 22 AS INTEGER ) WHEN - 28 * + 42 + 2 - - 21 * - - ( - + ( ( - + 12 ) ) ) THEN + AVG ( ALL 43 ) WHEN - 70 - + 15 THEN NULL END * + + 41 ) THEN NULL ELSE + + 83 + - 30 END - 28 * - NULLIF ( 80, - 50 ) * + 75 AS col2
----
167984

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

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

query I rowsort
SELECT + 96 + ( + + 46 ) AS col1
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-572
SELECT - 2 * + 81 * + CAST( + + 63 AS SIGNED )
----
-10206

skipif mysql # not compatible
query I rowsort label-572
SELECT - 2 * + 81 * + CAST ( + + 63 AS INTEGER )
----
-10206

query I rowsort
SELECT ALL - 65 * - 81 AS col0
----
5265

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

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

query I rowsort
SELECT - 72 + + + 67 AS col1
----
-5

query I rowsort
SELECT - ( - 91 ) + - + 34 AS col2
----
57

query I rowsort
SELECT DISTINCT + 93 * - 56
----
-5208

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT ALL NULLIF ( + + 70, - 83 - - MIN( + 63 ) * - COUNT( * ) + 62 * + 17 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL NULLIF ( + + 70, - 83 - - MIN ( + 63 ) * - COUNT ( * ) + 62 * + 17 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-579
SELECT ALL COUNT( * ) AS col1, + 63 - - - 76 col1
----
1
-13

skipif mysql # not compatible
query II rowsort label-579
SELECT ALL COUNT ( * ) AS col1, + 63 - - - 76 col1
----
1
-13

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

query I rowsort
SELECT DISTINCT + NULLIF ( 65, + 33 ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query III rowsort label-582
SELECT DISTINCT + 48 AS col0, 23 DIV 43 AS col1, - 33
----
48
0
-33

skipif mysql # not compatible
query III rowsort label-582
SELECT DISTINCT + 48 AS col0, 23 / 43 AS col1, - 33
----
48
0
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT - NULLIF ( 17, + - 58 * - 41 ) + + + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-584
SELECT - NULLIF ( 17, + - 58 * - 41 ) + + + COUNT ( * )
----
-16

query II rowsort
SELECT + 10 AS col2, 9
----
10
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT NULLIF ( + 54, + CAST( + + 26 AS SIGNED ) * + - 17 + - + 22 )
----
54

skipif mysql # not compatible
query I rowsort label-586
SELECT NULLIF ( + 54, + CAST ( + + 26 AS INTEGER ) * + - 17 + - + 22 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-587
SELECT - CASE + CASE 86 WHEN - + CAST( NULL AS SIGNED ) + + 66 THEN - - 58 WHEN - COUNT( * ) * + + 2 - NULLIF ( 42, + MAX( ALL - ( - + 2 ) ) + - 75 + + - AVG ( DISTINCT - + 57 ) * 2 * 61 ) + + NULLIF ( ( - - 94 ), + 53 + - + MIN( ALL + 50 ) ) THEN NULL END WHEN - 96 * 1 THEN 87 END * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT - CASE + CASE 86 WHEN - + CAST ( NULL AS INTEGER ) + + 66 THEN - - 58 WHEN - COUNT ( * ) * + + 2 - NULLIF ( 42, + MAX ( ALL - ( - + 2 ) ) + - 75 + + - AVG ( DISTINCT - + 57 ) * 2 * 61 ) + + NULLIF ( ( - - 94 ), + 53 + - + MIN ( ALL + 50 ) ) THEN NULL END WHEN - 96 * 1 THEN 87 END * + 47
----
NULL

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

skipif mysql # not compatible
query I rowsort label-588
SELECT + + 43 * 96 * + COUNT ( * ) + + COUNT ( * ) AS col2
----
4129

query I rowsort
SELECT ALL - 49 * - + 83 + 66
----
4133

query I rowsort
SELECT - CASE WHEN ( NULL ) IS NULL THEN NULL ELSE - + 79 END
----
NULL

query I rowsort
SELECT + + 82 - - 51 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT + 4 + - 74 + CASE + 85 WHEN NULLIF ( + CASE - 56 WHEN - COUNT( * ) THEN + COALESCE ( - + 85, - 41, - 49 * - 85 * - 66 + - COUNT( * ) * + + COUNT( * ) ) END, - + 85 ) + - NULLIF ( - + 95, - 26 ) THEN NULL ELSE - 62 END * COALESCE ( 96, - - COUNT( * ) ) + - - MAX( ALL 83 ) * 22
----
-4196

skipif mysql # not compatible
query I rowsort label-592
SELECT + 4 + - 74 + CASE + 85 WHEN NULLIF ( + CASE - 56 WHEN - COUNT ( * ) THEN + COALESCE ( - + 85, - 41, - 49 * - 85 * - 66 + - COUNT ( * ) * + + COUNT ( * ) ) END, - + 85 ) + - NULLIF ( - + 95, - 26 ) THEN NULL ELSE - 62 END * COALESCE ( 96, - - COUNT ( * ) ) + - - MAX ( ALL 83 ) * 22
----
-4196

query I rowsort
SELECT ALL + 43 * - - 32 AS col0
----
1376

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

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + COUNT ( ALL - 31 ) * - 23
----
-23

query I rowsort
SELECT + 16 * 47 col1
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT COUNT( + 20 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-596
SELECT COUNT ( + 20 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT + 86 + - 69 + + COUNT( * ) + - 36
----
-18

skipif mysql # not compatible
query I rowsort label-597
SELECT + 86 + - 69 + + COUNT ( * ) + - 36
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT - ( COUNT( * ) ) * - + 73 - - - 27 * 9 col0
----
-170

skipif mysql # not compatible
query I rowsort label-598
SELECT - ( COUNT ( * ) ) * - + 73 - - - 27 * 9 col0
----
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-599
SELECT + 51 * + CAST( + + 28 AS SIGNED ) col0
----
1428

skipif mysql # not compatible
query I rowsort label-599
SELECT + 51 * + CAST ( + + 28 AS INTEGER ) col0
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT + 68 - SUM( - - 98 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-600
SELECT + 68 - SUM ( - - 98 ) AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-601
SELECT DISTINCT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, + COALESCE ( - 93, 94 ) AS col1
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-601
SELECT DISTINCT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + COALESCE ( - 93, 94 ) AS col1
----
NULL
-93

query II rowsort
SELECT ALL 2 AS col1, - 5 * - + 70
----
2
350

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT + 56 + 11 * - + 22 * 18 + - ( 93 ) - - + 43 + - + ( COUNT( * ) ) AS col1
----
-4351

skipif mysql # not compatible
query I rowsort label-603
SELECT + 56 + 11 * - + 22 * 18 + - ( 93 ) - - + 43 + - + ( COUNT ( * ) ) AS col1
----
-4351

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

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

query I rowsort
SELECT + 32 + - 77 AS col1
----
-45

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

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

query I rowsort
SELECT + 9 + 60 * + + 74
----
4449

query I rowsort
SELECT ALL - 69 * 48
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT + 26 * 56 * + COUNT( * ) AS col2
----
1456

skipif mysql # not compatible
query I rowsort label-609
SELECT + 26 * 56 * + COUNT ( * ) AS col2
----
1456

query II rowsort
SELECT - 70 AS col1, 15
----
-70
15

query I rowsort
SELECT ALL 67 * - - 66
----
4422

query I rowsort
SELECT - 78 + 92 + + 49 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-613
SELECT + 90 + + NULLIF ( + 69, CAST( NULL AS SIGNED ) )
----
159

skipif mysql # not compatible
query I rowsort label-613
SELECT + 90 + + NULLIF ( + 69, CAST ( NULL AS INTEGER ) )
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-614
SELECT - ( + CASE + 64 WHEN - 7 THEN COUNT( * ) * - 19 DIV 10 DIV + 62 * 30 * + CASE - 4 WHEN + 52 THEN + + COUNT( * ) END WHEN + CASE 30 WHEN 76 + - - 40 THEN + ( 22 ) ELSE NULL END THEN 57 * 9 + ( 69 ) ELSE + 55 END ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-614
SELECT - ( + CASE + 64 WHEN - 7 THEN COUNT ( * ) * - 19 / 10 / + 62 * 30 * + CASE - 4 WHEN + 52 THEN + + COUNT ( * ) END WHEN + CASE 30 WHEN 76 + - - 40 THEN + ( 22 ) ELSE NULL END THEN 57 * 9 + ( 69 ) ELSE + 55 END ) AS col0
----
-55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT ALL ( + MIN( + - 7 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL ( + MIN ( + - 7 ) ) AS col0
----
-7

query I rowsort
SELECT - 59 + - - 69
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT - - COUNT( DISTINCT + - 48 ) * 2 * COALESCE ( - CASE + MAX( ALL 66 ) WHEN + ( + - 64 ) THEN NULL WHEN - COALESCE ( 3, + 95 / - 60 / + 84 / + + COUNT( * ) * 29 ) THEN + 37 ELSE + 91 + COUNT( - 62 ) END, 58, 21 ) AS col0
----
-184

skipif mysql # not compatible
query I rowsort label-618
SELECT - - COUNT ( DISTINCT + - 48 ) * 2 * COALESCE ( - CASE + MAX ( ALL 66 ) WHEN + ( + - 64 ) THEN NULL WHEN - COALESCE ( 3, + 95 / - 60 / + 84 / + + COUNT ( * ) * 29 ) THEN + 37 ELSE + 91 + COUNT ( - 62 ) END, 58, 21 ) AS col0
----
-184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-619
SELECT ALL - - 78 * 18 * + CAST( + + 54 AS SIGNED ) * + 89
----
6747624

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL - - 78 * 18 * + CAST ( + + 54 AS INTEGER ) * + 89
----
6747624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-620
SELECT - CAST( - 6 AS SIGNED ) DIV - COUNT( + 48 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-620
SELECT - CAST ( - 6 AS INTEGER ) / - COUNT ( + 48 ) AS col1
----
-6

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

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL 61 / + COUNT ( * ) + - - 90 AS col1
----
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-622
SELECT - 65 DIV - COUNT( + 97 ) + - 46
----
19

skipif mysql # not compatible
query I rowsort label-622
SELECT - 65 / - COUNT ( + 97 ) + - 46
----
19

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

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT - - 77 DIV + - 52
----
-1

skipif mysql # not compatible
query I rowsort label-624
SELECT - - 77 / + - 52
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-625
SELECT - 69 DIV 59 * + 76 + + - COUNT( - 95 ) + + + 29 DIV + + 20 + - 57 * - 34 AS col1
----
1862

skipif mysql # not compatible
query I rowsort label-625
SELECT - 69 / 59 * + 76 + + - COUNT ( - 95 ) + + + 29 / + + 20 + - 57 * - 34 AS col1
----
1862

onlyif mysql # DIV for integer division: 
query I rowsort label-626
SELECT ALL - ( 93 ) * + - 99 * + ( - - 63 ) + + 77 DIV + + 50
----
580042

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL - ( 93 ) * + - 99 * + ( - - 63 ) + + 77 / + + 50
----
580042

query I rowsort
SELECT - + 73 * ( - + 70 ) * - 40 + + 67 AS col1
----
-204333

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-628
SELECT DISTINCT 69 / - 21 - + + AVG ( 47 ) + + CASE + 57 WHEN COUNT( * ) + + COUNT( * ) THEN - + ( + 4 ) END + + 20 AS col0, CAST( NULL AS SIGNED ) + - 28 + + COUNT( * ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-628
SELECT DISTINCT 69 / - 21 - + + AVG ( 47 ) + + CASE + 57 WHEN COUNT ( * ) + + COUNT ( * ) THEN - + ( + 4 ) END + + 20 AS col0, CAST ( NULL AS INTEGER ) + - 28 + + COUNT ( * ) AS col0
----
NULL
NULL

query I rowsort
SELECT ALL - - 6 * - ( 45 ) + + 58 + + - 5 + - 33 * + - 96 AS col1
----
2951

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-630
SELECT DISTINCT - 52 DIV + + 16 + 73 * + 6 + 28 DIV - ( + CASE 1 WHEN ( - 58 ) THEN - + 40 WHEN - NULLIF ( + - COALESCE ( 78, - + COUNT( * ) DIV + + 13 * + 54 + - - 76 ), + 41 ) DIV 68 THEN - - 58 * + - COUNT( * ) + + 20 END ) AS col2
----
435

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT - 52 / + + 16 + 73 * + 6 + 28 / - ( + CASE 1 WHEN ( - 58 ) THEN - + 40 WHEN - NULLIF ( + - COALESCE ( 78, - + COUNT ( * ) / + + 13 * + 54 + - - 76 ), + 41 ) / 68 THEN - - 58 * + - COUNT ( * ) + + 20 END ) AS col2
----
435

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-631
SELECT ALL - + 91 DIV 55 + - 74 * - CAST( - + 19 AS SIGNED ) AS col2
----
-1407

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL - + 91 / 55 + - 74 * - CAST ( - + 19 AS INTEGER ) AS col2
----
-1407

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-633
SELECT ALL + CAST( 74 AS SIGNED ) * + 88
----
6512

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL + CAST ( 74 AS INTEGER ) * + 88
----
6512

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT MAX( + 15 ) * 83 - - 41 + - - 90 AS col0
----
1376

skipif mysql # not compatible
query I rowsort label-634
SELECT MAX ( + 15 ) * 83 - - 41 + - - 90 AS col0
----
1376

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT ALL 91 * - SUM( DISTINCT + 3 ) AS col0
----
-273

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL 91 * - SUM ( DISTINCT + 3 ) AS col0
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-636
SELECT 25 - + 20 DIV + COUNT( * ), + 38 - COUNT( * ) - - 87 col1
----
5
124

skipif mysql # not compatible
query II rowsort label-636
SELECT 25 - + 20 / + COUNT ( * ), + 38 - COUNT ( * ) - - 87 col1
----
5
124

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT COUNT( * ) - + 87
----
-86

skipif mysql # not compatible
query I rowsort label-637
SELECT COUNT ( * ) - + 87
----
-86

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

skipif mysql # not compatible
query I rowsort label-638
SELECT COUNT ( * ) / - 77 * - 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT 44 + - ( - 19 ) + + 66 + + COUNT( * )
----
130

skipif mysql # not compatible
query I rowsort label-639
SELECT 44 + - ( - 19 ) + + 66 + + COUNT ( * )
----
130

query II rowsort
SELECT 50 * - 2, + ( + 96 ) AS col0
----
-100
96

query I rowsort
SELECT 69 - 98 + 20 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-642
SELECT 26 - CASE - - 43 WHEN - 67 THEN 1 + - 52 WHEN - 16 THEN NULL ELSE + - CASE + 20 WHEN 61 THEN - + 35 END END * CAST( - ( - + 9 ) AS SIGNED ) / + COUNT( * ) - - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT 26 - CASE - - 43 WHEN - 67 THEN 1 + - 52 WHEN - 16 THEN NULL ELSE + - CASE + 20 WHEN 61 THEN - + 35 END END * CAST ( - ( - + 9 ) AS INTEGER ) / + COUNT ( * ) - - 82 AS col2
----
NULL

query I rowsort
SELECT ALL + 62 + - + 59
----
3

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

query II rowsort
SELECT 90 * + 3 AS col0, 73
----
270
73

onlyif mysql # aggregate syntax: 
query II rowsort label-646
SELECT ALL + NULLIF ( - 8, - - COUNT( * ) * + 48 + - 34 + COUNT( * ) ) + + - 26, + NULLIF ( + 64, - 16 + + SUM( + 44 ) ) * - + 14 + NULLIF ( 88, - - 45 + + + 90 ) AS col2
----
-34
-808

skipif mysql # not compatible
query II rowsort label-646
SELECT ALL + NULLIF ( - 8, - - COUNT ( * ) * + 48 + - 34 + COUNT ( * ) ) + + - 26, + NULLIF ( + 64, - 16 + + SUM ( + 44 ) ) * - + 14 + NULLIF ( 88, - - 45 + + + 90 ) AS col2
----
-34
-808

query II rowsort
SELECT DISTINCT + 10 * 9 AS col1, 65 + + 15 - + + 12 * + 76
----
90
-832

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

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

query I rowsort
SELECT + + ( - NULLIF ( - 28, - 53 ) ) AS col0
----
28

query I rowsort
SELECT 38 + - 30
----
8

query I rowsort
SELECT + 30 * 23 + + 55 * - 5 * 1 * + 49
----
-12785

onlyif mysql # DIV for integer division: 
query I rowsort label-652
SELECT 28 DIV 76 + NULLIF ( + 68, 42 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-652
SELECT 28 / 76 + NULLIF ( + 68, 42 ) AS col1
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT 30 * + - COUNT( * ) + - - 26
----
-4

skipif mysql # not compatible
query I rowsort label-654
SELECT 30 * + - COUNT ( * ) + - - 26
----
-4

query I rowsort
SELECT 19 * + 86 * + CASE + 83 WHEN - + 84 - + 35 THEN 55 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( - - 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT - SUM( DISTINCT 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT - SUM ( DISTINCT 87 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-658
SELECT 6 * - 10 * + COALESCE ( 2, + 81 ) * + + ( - 33 ) * - COUNT( * ) * COALESCE ( - 39, 18 * CAST( - 31 AS SIGNED ) - 12 * - + 20 * - 70 * - COUNT( * ) * - - COUNT( * ) ) + + + 64
----
154504

skipif mysql # not compatible
query I rowsort label-658
SELECT 6 * - 10 * + COALESCE ( 2, + 81 ) * + + ( - 33 ) * - COUNT ( * ) * COALESCE ( - 39, 18 * CAST ( - 31 AS INTEGER ) - 12 * - + 20 * - 70 * - COUNT ( * ) * - - COUNT ( * ) ) + + + 64
----
154504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT 54 * - CAST( 19 AS SIGNED )
----
-1026

skipif mysql # not compatible
query I rowsort label-659
SELECT 54 * - CAST ( 19 AS INTEGER )
----
-1026

query II rowsort
SELECT + 57 AS col2, 87 * 15
----
57
1305

onlyif mysql # aggregate syntax: 
query II rowsort label-661
SELECT 42, CASE + - 48 WHEN + 98 * + 98 / - 70 + - 41 THEN NULL WHEN COUNT( * ) THEN + - 25 / - 7 + - 0 + NULLIF ( + 10, NULLIF ( 1, - 32 * - 1 + - 95 + - 36 + + - 99 ) ) + 4 * + 72 * - MIN( 45 ) / + AVG ( ALL - 27 ) WHEN - 96 / - 82 * + 69 THEN 33 WHEN + SUM( ALL - 73 ) THEN 57 ELSE NULL END AS col1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-661
SELECT 42, CASE + - 48 WHEN + 98 * + 98 / - 70 + - 41 THEN NULL WHEN COUNT ( * ) THEN + - 25 / - 7 + - 0 + NULLIF ( + 10, NULLIF ( 1, - 32 * - 1 + - 95 + - 36 + + - 99 ) ) + 4 * + 72 * - MIN ( 45 ) / + AVG ( ALL - 27 ) WHEN - 96 / - 82 * + 69 THEN 33 WHEN + SUM ( ALL - 73 ) THEN 57 ELSE NULL END AS col1
----
42
NULL

query I rowsort
SELECT 44 + + 62 AS col0
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-663
SELECT MIN( ALL - - 40 ) + + 35 + ( - COUNT( * ) ) DIV 67 + - + 28 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-663
SELECT MIN ( ALL - - 40 ) + + 35 + ( - COUNT ( * ) ) / 67 + - + 28 AS col0
----
47

query I rowsort
SELECT DISTINCT + 34 + 97
----
131

query I rowsort
SELECT 43 * + 38 + + - 11 + - 63 - - 53 * + 70 * + 84 * + 58 * 16
----
289203480

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-667
SELECT CASE 10 WHEN 48 THEN - COALESCE ( + AVG ( + CAST( NULL AS SIGNED ) ), - 23, + 19 * + 15 * - + NULLIF ( - MAX( DISTINCT CAST( ( - + 85 ) AS SIGNED ) ), - + NULLIF ( - - 7, + - CAST( - + COUNT( * ) AS SIGNED ) ) + + ( + + COUNT( * ) ) ) + - CASE 94 WHEN + + 44 + + 0 * 79 THEN NULL ELSE - 54 END ) ELSE NULL END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-667
SELECT CASE 10 WHEN 48 THEN - COALESCE ( + AVG ( + CAST ( NULL AS INTEGER ) ), - 23, + 19 * + 15 * - + NULLIF ( - MAX ( DISTINCT CAST ( ( - + 85 ) AS INTEGER ) ), - + NULLIF ( - - 7, + - CAST ( - + COUNT ( * ) AS INTEGER ) ) + + ( + + COUNT ( * ) ) ) + - CASE 94 WHEN + + 44 + + 0 * 79 THEN NULL ELSE - 54 END ) ELSE NULL END + + COUNT ( * ) AS col0
----
NULL

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

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

query I rowsort
SELECT 5 + + + 67 + + - 22
----
50

query I rowsort
SELECT - 77 * 28 * + 34 - 94 + - 74 - - ( - CASE 40 WHEN + 39 THEN NULL WHEN + 48 THEN 51 END ) + - + 93 * + - 41 * 81 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 65 * 70 AS col1
----
-4550

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL + 50 + - ( + - COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + 50 + - ( + - COUNT ( * ) )
----
51

query I rowsort
SELECT ALL 65 + + 2
----
67

query I rowsort
SELECT DISTINCT 83 * + - 60
----
-4980

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT ALL MAX( ALL 64 )
----
64

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL MAX ( ALL 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT 74 + - MAX( - 27 ) - 16 * - 48 AS col1
----
869

skipif mysql # not compatible
query I rowsort label-676
SELECT 74 + - MAX ( - 27 ) - 16 * - 48 AS col1
----
869

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-678
SELECT COALESCE ( + 20, CAST( - - 35 AS SIGNED ) DIV 94 + - 99 + 23, - - 10 * 81 + + + 28 * + NULLIF ( 0, + 23 - + + 86 ) - - + COUNT( * ) + + 31 - + + 9 ) + 24 + 87 AS col1
----
131

skipif mysql # not compatible
query I rowsort label-678
SELECT COALESCE ( + 20, CAST ( - - 35 AS INTEGER ) / 94 + - 99 + 23, - - 10 * 81 + + + 28 * + NULLIF ( 0, + 23 - + + 86 ) - - + COUNT ( * ) + + 31 - + + 9 ) + 24 + 87 AS col1
----
131

query I rowsort
SELECT + 6 * + 78 + - 29 * 96
----
-2316

query I rowsort
SELECT + 98 * - - 24 AS col1
----
2352

onlyif mysql # aggregate syntax: 
query II rowsort label-681
SELECT ALL SUM( + 45 ) * COUNT( + 82 ), - 72 AS col0
----
45
-72

skipif mysql # not compatible
query II rowsort label-681
SELECT ALL SUM ( + 45 ) * COUNT ( + 82 ), - 72 AS col0
----
45
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-682
SELECT DISTINCT - 37 * + - CASE + NULLIF ( + 55, + - 56 + - 13 ) WHEN 65 * - 94 + - - CASE + + 85 WHEN + - COUNT( * ) * + 30 + + + 12 * 43 + + 35 * + - 37 + + - 65 THEN NULL ELSE 56 / - CAST( - 30 AS DECIMAL ) * + 4 + - - 96 END + + 91 THEN COUNT( * ) WHEN + + COALESCE ( + CAST( NULL AS SIGNED ), - - 1 ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT - 37 * + - CASE + NULLIF ( + 55, + - 56 + - 13 ) WHEN 65 * - 94 + - - CASE + + 85 WHEN + - COUNT ( * ) * + 30 + + + 12 * 43 + + 35 * + - 37 + + - 65 THEN NULL ELSE 56 / - CAST ( - 30 AS REAL ) * + 4 + - - 96 END + + 91 THEN COUNT ( * ) WHEN + + COALESCE ( + CAST ( NULL AS INTEGER ), - - 1 ) THEN NULL END col0
----
NULL

query I rowsort
SELECT ALL COALESCE ( + 72, + 3 * + ( - - 23 ) * + 33 ) * + 42 * 90
----
272160

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-685
SELECT + 80 DIV COALESCE ( - - COALESCE ( - - 94, - - COUNT( * ) * - - 50 ), - 56 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-685
SELECT + 80 / COALESCE ( - - COALESCE ( - - 94, - - COUNT ( * ) * - - 50 ), - 56 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-686
SELECT - 3 + COUNT( * ) AS col0, 44
----
-2
44

skipif mysql # not compatible
query II rowsort label-686
SELECT - 3 + COUNT ( * ) AS col0, 44
----
-2
44

onlyif mysql # DIV for integer division: 
query I rowsort label-687
SELECT DISTINCT 73 DIV - 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT 73 / - 65 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-688
SELECT ALL - 44 * + 7 + - COALESCE ( + - ( + 93 ), 22, 6 * - - COUNT( ALL - 27 ) ) AS col2, 73 * - - 82
----
-215
5986

skipif mysql # not compatible
query II rowsort label-688
SELECT ALL - 44 * + 7 + - COALESCE ( + - ( + 93 ), 22, 6 * - - COUNT ( ALL - 27 ) ) AS col2, 73 * - - 82
----
-215
5986

query I rowsort
SELECT ALL NULLIF ( 51, 60 ) col0
----
51

query I rowsort
SELECT DISTINCT - 2 + + - 74 AS col0
----
-76

query II rowsort
SELECT ALL + 48 + 57 AS col2, 50 AS col2
----
105
50

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT SUM( ALL + 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-692
SELECT SUM ( ALL + 96 ) AS col2
----
96

query I rowsort
SELECT ALL NULLIF ( - 94, + 10 * 84 ) col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT + ( + COUNT( - 50 ) ) * 82 + + ( - 6 ) + + ( SUM( + - 82 ) ) * 44 * - 15 AS col0
----
54196

skipif mysql # not compatible
query I rowsort label-694
SELECT + ( + COUNT ( - 50 ) ) * 82 + + ( - 6 ) + + ( SUM ( + - 82 ) ) * 44 * - 15 AS col0
----
54196

onlyif mysql # aggregate syntax: 
query II rowsort label-695
SELECT - + COUNT( DISTINCT + - 19 ), 2 + ( + - 26 ) col2
----
-1
-24

skipif mysql # not compatible
query II rowsort label-695
SELECT - + COUNT ( DISTINCT + - 19 ), 2 + ( + - 26 ) col2
----
-1
-24

query I rowsort
SELECT - + 15 * + - 67 * - 14 AS col2
----
-14070

query I rowsort
SELECT - + 65 + + 80 + 30 AS col0
----
45

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-699
SELECT - 55 * 1 * + COALESCE ( + 36, - 8, + CAST( 49 AS SIGNED ) + CAST( - COUNT( ALL + 54 ) AS SIGNED ) * 22 * + + 20 + - COUNT( * ) + ( 93 ), - 42 * 90 ) - 64 * + ( + 72 ) - + 28
----
-6616

skipif mysql # not compatible
query I rowsort label-699
SELECT - 55 * 1 * + COALESCE ( + 36, - 8, + CAST ( 49 AS INTEGER ) + CAST ( - COUNT ( ALL + 54 ) AS INTEGER ) * 22 * + + 20 + - COUNT ( * ) + ( 93 ), - 42 * 90 ) - 64 * + ( + 72 ) - + 28
----
-6616

query I rowsort
SELECT - CASE - 93 WHEN + 97 / + 66 * + + ( - 94 ) THEN NULL WHEN - 85 THEN 61 * + 94 ELSE + + 60 END + + - 94 AS col2
----
-154

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

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

skipif mysql # not compatible
query I rowsort label-702
SELECT - COUNT ( * ) + MAX ( ALL + 66 )
----
65

query I rowsort
SELECT - + 14 * 84 AS col1
----
-1176

onlyif mysql # DIV for integer division: 
query I rowsort label-704
SELECT ALL - 44 DIV + 5 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - 44 / + 5 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT - COUNT( * ) * 15 + - 50 + - + COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-705
SELECT - COUNT ( * ) * 15 + - 50 + - + COUNT ( * ) AS col2
----
-66

query I rowsort
SELECT ALL 4 * + 59 AS col2
----
236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-707
SELECT + CASE 13 WHEN + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 42 * - 90 * - 84 + - COUNT( * ) THEN NULL ELSE + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-707
SELECT + CASE 13 WHEN + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 42 * - 90 * - 84 + - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END
----
1

query I rowsort
SELECT + ( + 94 ) col2
----
94

query I rowsort
SELECT + ( + - 69 ) * - 51
----
3519

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT - 52 * + COUNT( * ) + - 8 + - 22 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-710
SELECT - 52 * + COUNT ( * ) + - 8 + - 22 AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-711
SELECT + CASE + 43 WHEN - COALESCE ( - + 7, - + 15, 53 ) + + 43 THEN - 98 ELSE - CAST( 64 AS SIGNED ) END
----
-64

skipif mysql # not compatible
query I rowsort label-711
SELECT + CASE + 43 WHEN - COALESCE ( - + 7, - + 15, 53 ) + + 43 THEN - 98 ELSE - CAST ( 64 AS INTEGER ) END
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-712
SELECT DISTINCT + CASE - 17 WHEN COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) / + 14 + MAX( + 38 ) THEN - 8 - - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT + CASE - 17 WHEN COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) / + 14 + MAX ( + 38 ) THEN - 8 - - 95 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT ALL - MIN( + - 82 ) * + NULLIF ( - ( + COUNT( + 32 ) ), - MAX( 20 ) + + ( ( - 63 ) ) + 0 ) + - 89 + CASE + + 9 WHEN - 70 * + ( + 99 ) THEN - 45 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL - MIN ( + - 82 ) * + NULLIF ( - ( + COUNT ( + 32 ) ), - MAX ( 20 ) + + ( ( - 63 ) ) + 0 ) + - 89 + CASE + + 9 WHEN - 70 * + ( + 99 ) THEN - 45 END AS col2
----
NULL

query I rowsort
SELECT 79 * + + 54 + 18 col0
----
4284

query II rowsort
SELECT ALL + 98, - 71 col1
----
98
-71

query I rowsort
SELECT ALL 14 * + 7 + ( - + 50 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT ALL - COUNT( DISTINCT - 97 ) DIV - - 71 + 57
----
57

skipif mysql # not compatible
query I rowsort label-717
SELECT ALL - COUNT ( DISTINCT - 97 ) / - - 71 + 57
----
57

query I rowsort
SELECT ALL 20 * + + 28 + + + 17
----
577

query I rowsort
SELECT 80 * 22 + - 36
----
1724

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-720
SELECT + CASE - 55 WHEN 20 THEN + 40 + CAST( ( + - 97 ) AS DECIMAL ) / - 26 - 50 WHEN + - COALESCE ( - 58, - 73 / - MAX( ALL - 80 ) - ( + 3 ) ) THEN - 92 * + 49 + + 8 + CASE - + 27 WHEN 18 + 38 THEN - 88 ELSE NULL END END + + - 77 * - 27 * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-720
SELECT + CASE - 55 WHEN 20 THEN + 40 + CAST ( ( + - 97 ) AS REAL ) / - 26 - 50 WHEN + - COALESCE ( - 58, - 73 / - MAX ( ALL - 80 ) - ( + 3 ) ) THEN - 92 * + 49 + + 8 + CASE - + 27 WHEN 18 + 38 THEN - 88 ELSE NULL END END + + - 77 * - 27 * 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-721
SELECT NULLIF ( + COUNT( * ), 73 + - CAST( 83 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-721
SELECT NULLIF ( + COUNT ( * ), 73 + - CAST ( 83 AS INTEGER ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-722
SELECT ALL 54 DIV - + SUM( ALL - 88 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL 54 / - + SUM ( ALL - 88 ) AS col1
----
0

query I rowsort
SELECT + 60 + - - 38 AS col1
----
98

query I rowsort
SELECT + 78 * - 32
----
-2496

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

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

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

query II rowsort
SELECT - 96, - 69 * ( 25 ) col0
----
-96
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT ALL - SUM( - 56 ) * 53 * - SUM( DISTINCT + - 79 ) AS col2
----
234472

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL - SUM ( - 56 ) * 53 * - SUM ( DISTINCT + - 79 ) AS col2
----
234472

query I rowsort
SELECT 44 * + 97 + + 0 AS col1
----
4268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-730
SELECT ALL + CAST( - COALESCE ( + - 57, - + 71 ) AS SIGNED ) * - 75 + - COALESCE ( - 62, 51 ) + - 59 + + ( - 24 ) + - + 57 * - 48
----
-1560

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + CAST ( - COALESCE ( + - 57, - + 71 ) AS INTEGER ) * - 75 + - COALESCE ( - 62, 51 ) + - 59 + + ( - 24 ) + - + 57 * - 48
----
-1560

query I rowsort
SELECT ALL 86 * - 12
----
-1032

query I rowsort
SELECT DISTINCT - + 97 * + 36 AS col1
----
-3492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT - 83 * CAST( - + 30 AS SIGNED ) + 22 AS col0
----
2512

skipif mysql # not compatible
query I rowsort label-733
SELECT - 83 * CAST ( - + 30 AS INTEGER ) + 22 AS col0
----
2512

onlyif mysql # aggregate syntax: 
query II rowsort label-734
SELECT 3 * - - 61 * - COUNT( * ) AS col1, ( 76 ) AS col1
----
-183
76

skipif mysql # not compatible
query II rowsort label-734
SELECT 3 * - - 61 * - COUNT ( * ) AS col1, ( 76 ) AS col1
----
-183
76

onlyif mysql # DIV for integer division: 
query I rowsort label-735
SELECT 90 + + + 96 DIV 6
----
106

skipif mysql # not compatible
query I rowsort label-735
SELECT 90 + + + 96 / 6
----
106

query I rowsort
SELECT COALESCE ( ( + ( + 53 ) ), - 25 )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-737
SELECT ALL - 48 DIV + + 11
----
-4

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL - 48 / + + 11
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT DISTINCT - 4 DIV 91 * - + 62 * - 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT - 4 / 91 * - + 62 * - 44 AS col1
----
0

query I rowsort
SELECT - 55 + 53 * + ( + + 23 ) AS col1
----
1164

query I rowsort
SELECT DISTINCT - 54 * 8
----
-432

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

query I rowsort
SELECT 34 * + ( + 23 )
----
782

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT COALESCE ( COUNT( * ), 41 * 69 + - - 64 ) * 51 * + COALESCE ( 73, 15 ) + 25 AS col1
----
3748

skipif mysql # not compatible
query I rowsort label-743
SELECT COALESCE ( COUNT ( * ), 41 * 69 + - - 64 ) * 51 * + COALESCE ( 73, 15 ) + 25 AS col1
----
3748

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

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

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

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

query II rowsort
SELECT + 50 AS col2, + 17 - 21
----
50
-4

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

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + COUNT ( * ) + 56 AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-748
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) + + - 89 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) + + - 89 AS col2
----
-90

query I rowsort
SELECT ALL 14 + - ( - + 79 )
----
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-751
SELECT ALL - 48 + + COUNT( * ) + 6 + + ( 64 ) * + CAST( NULL AS SIGNED ) + + COALESCE ( 30, 19 ) + - - 69 * - MAX( 65 ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - 48 + + COUNT ( * ) + 6 + + ( 64 ) * + CAST ( NULL AS INTEGER ) + + COALESCE ( 30, 19 ) + - - 69 * - MAX ( 65 ) * 80
----
NULL

query I rowsort
SELECT ALL - COALESCE ( 3, + + 17 ) AS col0
----
-3

query II rowsort
SELECT 28 AS col1, + 79 - - 84
----
28
163

query I rowsort
SELECT 59 * + ( - + 28 )
----
-1652

query II rowsort
SELECT 95 * - 65 AS col2, - 55
----
-6175
-55

query II rowsort
SELECT ALL - 33 AS col1, - 11 AS col0
----
-33
-11

query II rowsort
SELECT + 73 AS col2, 21
----
73
21

query II rowsort
SELECT 52, - 76 * - - 24 col0
----
52
-1824

query I rowsort
SELECT ALL 48 - 55
----
-7

query I rowsort
SELECT 85 * - - 22 * + 5
----
9350

query II rowsort
SELECT + 82 AS col2, + 87
----
82
87

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT DISTINCT - 3 - 52 * COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - 3 - 52 * COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-763
SELECT DISTINCT - 90, 37 * COUNT( * ) AS col1
----
-90
37

skipif mysql # not compatible
query II rowsort label-763
SELECT DISTINCT - 90, 37 * COUNT ( * ) AS col1
----
-90
37

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT COALESCE ( 58, + COUNT( DISTINCT + - 88 ), 37 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-764
SELECT COALESCE ( 58, + COUNT ( DISTINCT + - 88 ), 37 ) col0
----
58

query I rowsort
SELECT - 28 * 94 AS col0
----
-2632

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL CASE 76 WHEN + 0 - + 47 THEN NULL ELSE - + MAX( - - 88 ) * - 80 - 65 END AS col1
----
6975

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL CASE 76 WHEN + 0 - + 47 THEN NULL ELSE - + MAX ( - - 88 ) * - 80 - 65 END AS col1
----
6975

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

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

query I rowsort
SELECT ALL 34 * - 27
----
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-769
SELECT ALL 73 DIV - + 60 - + - 58 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL 73 / - + 60 - + - 58 AS col0
----
57

query I rowsort
SELECT DISTINCT - 50 * - - 71
----
-3550

query I rowsort
SELECT ALL - + NULLIF ( 20, 63 * 86 ) * + 24 AS col2
----
-480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-772
SELECT ALL + - 57 + COUNT( * ) + + 37 + - 33 + 72 * + COUNT( * ) - ( - - 48 ) * + - COUNT( * ) DIV - 49 * - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + - 57 + COUNT ( * ) + + 37 + - 33 + 72 * + COUNT ( * ) - ( - - 48 ) * + - COUNT ( * ) / - 49 * - COUNT ( * )
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT - COUNT( * ) + 78 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-774
SELECT - COUNT ( * ) + 78 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-775
SELECT - + COALESCE ( - CAST( NULLIF ( ( - 39 ), - 24 * + + 44 + - 58 - + + MAX( - 12 ) ) AS SIGNED ), + - 73 * + COUNT( * ) ) AS col1, 87
----
-39
87

skipif mysql # not compatible
query II rowsort label-775
SELECT - + COALESCE ( - CAST ( NULLIF ( ( - 39 ), - 24 * + + 44 + - 58 - + + MAX ( - 12 ) ) AS INTEGER ), + - 73 * + COUNT ( * ) ) AS col1, 87
----
-39
87

query I rowsort
SELECT ALL + 25 + + + 90 AS col0
----
115

query I rowsort
SELECT 8 * - - 85
----
680

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

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

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

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

query I rowsort
SELECT 73 - + ( - 71 )
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-781
SELECT ALL MIN( - + 77 ) + CAST( + 22 AS SIGNED ) * + 37 AS col2
----
737

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL MIN ( - + 77 ) + CAST ( + 22 AS INTEGER ) * + 37 AS col2
----
737

query I rowsort
SELECT DISTINCT - 6 * + ( 43 )
----
-258

query I rowsort
SELECT ALL + 88 * - 54
----
-4752

onlyif mysql # DIV for integer division: 
query I rowsort label-784
SELECT 69 DIV - 18
----
-3

skipif mysql # not compatible
query I rowsort label-784
SELECT 69 / - 18
----
-3

query I rowsort
SELECT DISTINCT + 7 * 10
----
70

query I rowsort
SELECT 53 * + + 80
----
4240

query II rowsort
SELECT ALL + 89 * - - 18, + 29 + - 55 AS col2
----
1602
-26

query I rowsort
SELECT 59 + + 91 * 18 * - + 68 + + 58 col1
----
-111267

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT ALL 24 * + 72 - + 90 + - + 20 + - 8 + + MIN( + 44 ) * 59 * - 3 AS col2
----
-6178

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL 24 * + 72 - + 90 + - + 20 + - 8 + + MIN ( + 44 ) * 59 * - 3 AS col2
----
-6178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-790
SELECT ALL + 89 * - NULLIF ( CAST( - 43 AS SIGNED ), + - 37 )
----
3827

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL + 89 * - NULLIF ( CAST ( - 43 AS INTEGER ), + - 37 )
----
3827

onlyif mysql # DIV for integer division: 
query II rowsort label-791
SELECT 85 DIV - + 93 AS col0, 86 * + - 99 + + ( - 56 )
----
0
-8570

skipif mysql # not compatible
query II rowsort label-791
SELECT 85 / - + 93 AS col0, 86 * + - 99 + + ( - 56 )
----
0
-8570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-792
SELECT DISTINCT - COALESCE ( - 64, + 96 + + 87 * + 19 DIV + + 60, - - 12 + - COUNT( * ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT - COALESCE ( - 64, + 96 + + 87 * + 19 / + + 60, - - 12 + - COUNT ( * ) ) AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT ALL NULLIF ( + 31, + 1 ) DIV + - 17 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL NULLIF ( + 31, + 1 ) / + - 17 AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-795
SELECT ( COUNT( * ) ) * + + 74 + - 87 * 71 AS col2, COUNT( * )
----
-6103
1

skipif mysql # not compatible
query II rowsort label-795
SELECT ( COUNT ( * ) ) * + + 74 + - 87 * 71 AS col2, COUNT ( * )
----
-6103
1

query I rowsort
SELECT + + 36 * - ( - 83 ) AS col0
----
2988

query I rowsort
SELECT ALL + 53 col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT + ( + 19 ) + 58 + - MAX( DISTINCT CASE CASE - + 79 WHEN - 7 THEN ( + 69 ) END WHEN + 82 THEN + 79 END ) * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-798
SELECT + ( + 19 ) + 58 + - MAX ( DISTINCT CASE CASE - + 79 WHEN - 7 THEN ( + 69 ) END WHEN + 82 THEN + 79 END ) * - 25
----
NULL

query I rowsort
SELECT ALL 4 * + - 18 AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-800
SELECT - CAST( + - 68 AS SIGNED ) * - MAX( - + 6 )
----
408

skipif mysql # not compatible
query I rowsort label-800
SELECT - CAST ( + - 68 AS INTEGER ) * - MAX ( - + 6 )
----
408

query I rowsort
SELECT ALL + 21 * - - 18 * + - 37 * 73 col2
----
-1020978

query II rowsort
SELECT ALL 45 + + 47 col0, - 83 - - 49 AS col2
----
92
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT + - 51 + COUNT( * ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-803
SELECT + - 51 + COUNT ( * ) col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-804
SELECT ALL + COUNT( 58 ) AS col0, - 86 AS col2
----
1
-86

skipif mysql # not compatible
query II rowsort label-804
SELECT ALL + COUNT ( 58 ) AS col0, - 86 AS col2
----
1
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-805
SELECT + COALESCE ( + + 5, 92, CAST( NULL AS SIGNED ) * - - 87, + + 50 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-805
SELECT + COALESCE ( + + 5, 92, CAST ( NULL AS INTEGER ) * - - 87, + + 50 ) AS col1
----
5

query I rowsort
SELECT ALL 7 + + COALESCE ( + 55, - 71 ) * - + 69 AS col2
----
-3788

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT ALL 34 * + COUNT( * ) * + 28 AS col0
----
952

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL 34 * + COUNT ( * ) * + 28 AS col0
----
952

query I rowsort
SELECT ALL ( + 39 ) + - - 66
----
105

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

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

query I rowsort
SELECT ALL 39 * 51
----
1989

onlyif mysql # aggregate syntax: 
query II rowsort label-813
SELECT DISTINCT MIN( DISTINCT - 89 ) + + 79 col0, - 0 AS col0
----
-10
0

skipif mysql # not compatible
query II rowsort label-813
SELECT DISTINCT MIN ( DISTINCT - 89 ) + + 79 col0, - 0 AS col0
----
-10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT + ( 84 ) + NULLIF ( 23, COUNT( * ) )
----
107

skipif mysql # not compatible
query I rowsort label-814
SELECT + ( 84 ) + NULLIF ( 23, COUNT ( * ) )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT + SUM( ALL - 74 ) * - 93 + + 73 * - 55 + - 25 + + - 92 col1
----
2750

skipif mysql # not compatible
query I rowsort label-815
SELECT + SUM ( ALL - 74 ) * - 93 + + 73 * - 55 + - 25 + + - 92 col1
----
2750

query I rowsort
SELECT ALL 85 * - ( + 73 )
----
-6205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT + MIN( ALL + 45 ) + + 38 DIV - 35 + - 40 * + 65 - + + 7
----
-2563

skipif mysql # not compatible
query I rowsort label-817
SELECT + MIN ( ALL + 45 ) + + 38 / - 35 + - 40 * + 65 - + + 7
----
-2563

query I rowsort
SELECT ALL 3 * - 90 AS col2
----
-270

query I rowsort
SELECT - COALESCE ( + 3, + + 96 + + - 68 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-820
SELECT ALL 5, MAX( DISTINCT + 78 ) AS col2
----
5
78

skipif mysql # not compatible
query II rowsort label-820
SELECT ALL 5, MAX ( DISTINCT + 78 ) AS col2
----
5
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-821
SELECT + COUNT( * ) - - MAX( ( + 32 ) ) * - CASE + COUNT( * ) WHEN + ( + CASE - - ( - 74 ) WHEN + ( + 23 ) THEN NULL WHEN - COUNT( * ) THEN - ( + 43 ) ELSE - 73 END ) - - 45 + + 72 THEN - 18 * NULLIF ( 78, - - CAST( + - 93 AS SIGNED ) ) * 97 * + 43 + + 48 - + 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT + COUNT ( * ) - - MAX ( ( + 32 ) ) * - CASE + COUNT ( * ) WHEN + ( + CASE - - ( - 74 ) WHEN + ( + 23 ) THEN NULL WHEN - COUNT ( * ) THEN - ( + 43 ) ELSE - 73 END ) - - 45 + + 72 THEN - 18 * NULLIF ( 78, - - CAST ( + - 93 AS INTEGER ) ) * 97 * + 43 + + 48 - + 84 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT - ( - 87 ) * - NULLIF ( NULLIF ( - 69, - 57 * - - COUNT( * ) * 70 ), + - 81 ) + + 91 AS col0
----
6094

skipif mysql # not compatible
query I rowsort label-822
SELECT - ( - 87 ) * - NULLIF ( NULLIF ( - 69, - 57 * - - COUNT ( * ) * 70 ), + - 81 ) + + 91 AS col0
----
6094

query I rowsort
SELECT ( 65 ) AS col1
----
65

query I rowsort
SELECT - 39 * + 75 + 39 * + ( + 18 )
----
-2223

query II rowsort
SELECT DISTINCT ( + 81 ) * - 78 - - 9 - + + 42 + + + 47 + 71 * + 81 * 95 + - 98 * CASE + 4 WHEN - + 63 * - 97 + + 42 THEN + 59 / - ( + - 39 ) + 96 END, 32 AS col2
----
NULL
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-826
SELECT DISTINCT 14 * 56 * 46 - - 3 DIV + - COALESCE ( + 13, + 84, - - NULLIF ( + COUNT( * ), + 78 ) + 31 + - 15 )
----
36064

skipif mysql # not compatible
query I rowsort label-826
SELECT DISTINCT 14 * 56 * 46 - - 3 / + - COALESCE ( + 13, + 84, - - NULLIF ( + COUNT ( * ), + 78 ) + 31 + - 15 )
----
36064

query I rowsort
SELECT ALL + 58 * + 21 AS col2
----
1218

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

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

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

skipif mysql # not compatible
query II rowsort label-829
SELECT ALL + COUNT ( * ), - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
1
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-831
SELECT + ( CAST( NULL AS SIGNED ) ) - 74 / + 64 * - + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT + ( CAST ( NULL AS INTEGER ) ) - 74 / + 64 * - + 4 AS col0
----
NULL

query II rowsort
SELECT 94, 11 + - + 55 AS col1
----
94
-44

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

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

query I rowsort
SELECT - 49 * + 70 col1
----
-3430

onlyif mysql # DIV for integer division: 
query I rowsort label-835
SELECT - + 5 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-835
SELECT - + 5 / + 38
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-836
SELECT ALL 61 * + - 91 + - + CASE + - 0 WHEN 80 + COUNT( * ) - - - 85 * + COUNT( * ) THEN + + 64 ELSE NULL END + MAX( - 82 ) + - CAST( NULL AS SIGNED ) * ( - 19 ) - - + 22 / + 71 + + 5 + - 62 * ( + 54 ) / + - 58 + + 30 * - MAX( ALL + 37 ) * - + COUNT( * ) / - COUNT( * ) + - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL 61 * + - 91 + - + CASE + - 0 WHEN 80 + COUNT ( * ) - - - 85 * + COUNT ( * ) THEN + + 64 ELSE NULL END + MAX ( - 82 ) + - CAST ( NULL AS INTEGER ) * ( - 19 ) - - + 22 / + 71 + + 5 + - 62 * ( + 54 ) / + - 58 + + 30 * - MAX ( ALL + 37 ) * - + COUNT ( * ) / - COUNT ( * ) + - + 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT - 76 DIV + - 12
----
6

skipif mysql # not compatible
query I rowsort label-837
SELECT - 76 / + - 12
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL - MIN( DISTINCT - 94 ) * + + 34 + 56
----
3252

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - MIN ( DISTINCT - 94 ) * + + 34 + 56
----
3252

query I rowsort
SELECT + + 81 col0
----
81

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

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

query I rowsort
SELECT - 52 + - 26 * - 36 AS col0
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT ALL + - NULLIF ( - 48, 97 + - + 42 + - 95 ) * ( 93 ) * + 29 + + - 23 * - 15 + 70 * 69 - COUNT( * )
----
134630

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL + - NULLIF ( - 48, 97 + - + 42 + - 95 ) * ( 93 ) * + 29 + + - 23 * - 15 + 70 * 69 - COUNT ( * )
----
134630

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-844
SELECT ALL + - 61 * - + 97 * + CAST( 55 AS SIGNED ) AS col0
----
325435

skipif mysql # not compatible
query I rowsort label-844
SELECT ALL + - 61 * - + 97 * + CAST ( 55 AS INTEGER ) AS col0
----
325435

query II rowsort
SELECT - - 37 AS col0, 53 AS col2
----
37
53

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT + 4 - ( + 52 ) - + - COUNT( * ) * + + 37 DIV - 58 * - 20 * - - 45 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-848
SELECT + 4 - ( + 52 ) - + - COUNT ( * ) * + + 37 / - 58 * - 20 * - - 45 AS col0
----
-48

query I rowsort
SELECT DISTINCT + 7 * - 0 AS col0
----
0

query I rowsort
SELECT + ( + 52 ) + - ( ( - 3 ) ) + + 95
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-851
SELECT - SUM( + ( - + 84 ) ) * + - CAST( - COUNT( * ) AS SIGNED ) - 76 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-851
SELECT - SUM ( + ( - + 84 ) ) * + - CAST ( - COUNT ( * ) AS INTEGER ) - 76 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT + SUM( ALL - ( + + 88 ) ) + + + 64 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-852
SELECT + SUM ( ALL - ( + + 88 ) ) + + + 64 AS col1
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-853
SELECT - 44 + + + 60 + - CAST( NULL AS SIGNED ) + + NULLIF ( - ( - NULLIF ( - + COUNT( ALL 49 ), 2 ) ), 45 ) + - COALESCE ( 39, ( + ( - NULLIF ( 15, - + 87 + + 2 ) ) ) * - + 62 + - - 95 + - - 98 + - COUNT( * ) * 67 + 46 + + 50 * 13, + - 98 ) * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-853
SELECT - 44 + + + 60 + - CAST ( NULL AS INTEGER ) + + NULLIF ( - ( - NULLIF ( - + COUNT ( ALL 49 ), 2 ) ), 45 ) + - COALESCE ( 39, ( + ( - NULLIF ( 15, - + 87 + + 2 ) ) ) * - + 62 + - - 95 + - - 98 + - COUNT ( * ) * 67 + 46 + + 50 * 13, + - 98 ) * - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-854
SELECT + 50 * - 8, + ( + - COUNT( * ) ) DIV - 17 * 47 AS col0
----
-400
0

skipif mysql # not compatible
query II rowsort label-854
SELECT + 50 * - 8, + ( + - COUNT ( * ) ) / - 17 * 47 AS col0
----
-400
0

onlyif mysql # aggregate syntax: 
query II rowsort label-855
SELECT DISTINCT 91 * - 81, + COUNT( * ) * + 57 * - + 74 AS col0
----
-7371
-4218

skipif mysql # not compatible
query II rowsort label-855
SELECT DISTINCT 91 * - 81, + COUNT ( * ) * + 57 * - + 74 AS col0
----
-7371
-4218

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-856
SELECT + 14 DIV + MIN( ALL + 89 )
----
0

skipif mysql # not compatible
query I rowsort label-856
SELECT + 14 / + MIN ( ALL + 89 )
----
0

query I rowsort
SELECT ALL 25 * - 83 * + - 49
----
101675

query I rowsort
SELECT + 31 - - 84
----
115

query II rowsort
SELECT DISTINCT 37 * - + 72 AS col1, 1 col1
----
-2664
1

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT DISTINCT 55 * CASE + ( + COUNT( * ) ) WHEN - - 43 THEN NULL ELSE 24 END AS col1
----
1320

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT 55 * CASE + ( + COUNT ( * ) ) WHEN - - 43 THEN NULL ELSE 24 END AS col1
----
1320

onlyif mysql # DIV for integer division: 
query II rowsort label-861
SELECT + 78 DIV - 93 AS col2, + 80 + 40 AS col2
----
0
120

skipif mysql # not compatible
query II rowsort label-861
SELECT + 78 / - 93 AS col2, + 80 + 40 AS col2
----
0
120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-862
SELECT CAST( NULL AS DECIMAL ) * 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-862
SELECT CAST ( NULL AS REAL ) * 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT + 17 * + SUM( - NULLIF ( - - 53, - 89 * - 32 * ( + + 91 ) ) ) * - COUNT( * ) + 66 AS col0
----
967

skipif mysql # not compatible
query I rowsort label-863
SELECT + 17 * + SUM ( - NULLIF ( - - 53, - 89 * - 32 * ( + + 91 ) ) ) * - COUNT ( * ) + 66 AS col0
----
967

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT ALL - 70 + + MIN( + 92 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL - 70 + + MIN ( + 92 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-865
SELECT DISTINCT NULLIF ( + 90, + 44 ) + + 59 * - MIN( DISTINCT - 34 ) + + 14 col2, + 24 * - COUNT( * )
----
2110
-24

skipif mysql # not compatible
query II rowsort label-865
SELECT DISTINCT NULLIF ( + 90, + 44 ) + + 59 * - MIN ( DISTINCT - 34 ) + + 14 col2, + 24 * - COUNT ( * )
----
2110
-24

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

query I rowsort
SELECT ALL - 90 + - 56 AS col1
----
-146

query I rowsort
SELECT 3 + - 13 * + NULLIF ( 4, AVG ( DISTINCT + + 44 ) * + 19 * + 65 )
----
-49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT + MAX( 66 )
----
66

skipif mysql # not compatible
query I rowsort label-870
SELECT + MAX ( 66 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-871
SELECT DISTINCT - 88 + 59 + - COUNT( * ) * - 0 * - 61 - + - COALESCE ( + - 75, 99 + + + 47, - - 52 - + - CAST( + 31 AS SIGNED ) * + 40 / + ( + 77 ) ) - 77 + - ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT - 88 + 59 + - COUNT ( * ) * - 0 * - 61 - + - COALESCE ( + - 75, 99 + + + 47, - - 52 - + - CAST ( + 31 AS INTEGER ) * + 40 / + ( + 77 ) ) - 77 + - ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-872
SELECT DISTINCT - SUM( DISTINCT + CAST( + - 2 AS SIGNED ) ) * + - 13 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - SUM ( DISTINCT + CAST ( + - 2 AS INTEGER ) ) * + - 13 AS col1
----
-26

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

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

query I rowsort
SELECT + 29 * - 48 * + 38 + - ( - ( + 1 ) ) * - 72 AS col0
----
-52968

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT ALL - 38 * 7 / + - AVG ( ALL - + 7 ) * - CASE COUNT( * ) WHEN - - ( 40 ) THEN + 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-875
SELECT ALL - 38 * 7 / + - AVG ( ALL - + 7 ) * - CASE COUNT ( * ) WHEN - - ( 40 ) THEN + 78 ELSE NULL END
----
NULL

query I rowsort
SELECT + 33 + - - 9
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL SUM( - 6 ) * + 16
----
-96

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL SUM ( - 6 ) * + 16
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-878
SELECT ALL + + 58 - + NULLIF ( + + CAST( 27 AS SIGNED ), - - COUNT( DISTINCT 5 ) )
----
31

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL + + 58 - + NULLIF ( + + CAST ( 27 AS INTEGER ), - - COUNT ( DISTINCT 5 ) )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT - ( + 25 ) * COUNT( * ) * - + 26 + - - 82 col0
----
732

skipif mysql # not compatible
query I rowsort label-879
SELECT - ( + 25 ) * COUNT ( * ) * - + 26 + - - 82 col0
----
732

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT 73 DIV - 20 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-880
SELECT 73 / - 20 AS col0
----
-3

query I rowsort
SELECT 43 * - 98
----
-4214

query I rowsort
SELECT 79 * + 87 AS col2
----
6873

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-883
SELECT ALL - 57 DIV + SUM( - 25 ) AS col0, 94 + COUNT( * ) * + + 21 * + 36
----
2
850

skipif mysql # not compatible
query II rowsort label-883
SELECT ALL - 57 / + SUM ( - 25 ) AS col0, 94 + COUNT ( * ) * + + 21 * + 36
----
2
850

onlyif mysql # DIV for integer division: 
query II rowsort label-884
SELECT 53 * + 96 * + 92, - 65 DIV + 2 AS col0
----
468096
-32

skipif mysql # not compatible
query II rowsort label-884
SELECT 53 * + 96 * + 92, - 65 / + 2 AS col0
----
468096
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT SUM( 27 ) * + 20
----
540

skipif mysql # not compatible
query I rowsort label-885
SELECT SUM ( 27 ) * + 20
----
540

query I rowsort
SELECT 59 + - 82 * + 56 AS col1
----
-4533

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

skipif mysql # not compatible
query I rowsort label-887
SELECT 69 + + ( - CAST ( NULL AS INTEGER ) ) * + CAST ( 66 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - 99 AS col1, - 73 AS col2
----
-99
-73

query II rowsort
SELECT 78 * COALESCE ( 8, - - 26, 41 ), 16 * - 68 col0
----
624
-1088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-890
SELECT DISTINCT - 85 * CAST( NULL AS SIGNED ) * - AVG ( + 78 ) * + 15 * 78 + + + CASE - + 21 WHEN - 78 * + 20 * COUNT( ALL - 7 ) * NULLIF ( - + 58, CAST( NULL AS DECIMAL ) ) - - + CAST( NULL AS DECIMAL ) * ( - - 46 ) THEN - + ( + COUNT( * ) ) WHEN - - 10 THEN NULL WHEN + 42 / - 6 + CAST( NULL AS SIGNED ) - + COUNT( DISTINCT + 94 ) + + 57 + + + 19 * + + 57 / + 26 * + 45 + 81 THEN 12 / - COUNT( * ) END * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT - 85 * CAST ( NULL AS INTEGER ) * - AVG ( + 78 ) * + 15 * 78 + + + CASE - + 21 WHEN - 78 * + 20 * COUNT ( ALL - 7 ) * NULLIF ( - + 58, CAST ( NULL AS REAL ) ) - - + CAST ( NULL AS REAL ) * ( - - 46 ) THEN - + ( + COUNT ( * ) ) WHEN - - 10 THEN NULL WHEN + 42 / - 6 + CAST ( NULL AS INTEGER ) - + COUNT ( DISTINCT + 94 ) + + 57 + + + 19 * + + 57 / + 26 * + 45 + 81 THEN 12 / - COUNT ( * ) END * 18
----
NULL

query I rowsort
SELECT 94 + 32
----
126

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

query I rowsort
SELECT ALL - 58 * 3
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT COUNT( * ) + - 3 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-894
SELECT COUNT ( * ) + - 3 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT 23 DIV + + 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-895
SELECT 23 / + + 43 AS col0
----
0

query I rowsort
SELECT 94 * + + 78
----
7332

query I rowsort
SELECT DISTINCT 1 + 98
----
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-899
SELECT ALL 71 + + CASE - SUM( DISTINCT + + CASE - - 40 WHEN - - 2 THEN 4 ELSE + 63 + - 17 END ) WHEN COUNT( * ) THEN - - COUNT( * ) * - 19 * - + 0 ELSE NULL END + + + COUNT( * ) / + - CAST( + COUNT( 81 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL 71 + + CASE - SUM ( DISTINCT + + CASE - - 40 WHEN - - 2 THEN 4 ELSE + 63 + - 17 END ) WHEN COUNT ( * ) THEN - - COUNT ( * ) * - 19 * - + 0 ELSE NULL END + + + COUNT ( * ) / + - CAST ( + COUNT ( 81 ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT DISTINCT - 83 DIV + - NULLIF ( - - 13, 75 ) + - ( + 53 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT - 83 / + - NULLIF ( - - 13, 75 ) + - ( + 53 ) AS col2
----
-47

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

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

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

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

query II rowsort
SELECT DISTINCT - 91 + + 78 * + - 51, + 37 AS col1
----
-4069
37

query I rowsort
SELECT + 7 * 35 AS col2
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT COALESCE ( + 60, + 92 + + MAX( ALL + 85 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-905
SELECT COALESCE ( + 60, + 92 + + MAX ( ALL + 85 ) ) AS col2
----
60

query I rowsort
SELECT + 86 * + + 74 - - + 76
----
6440

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT + COALESCE ( - 87, - - COUNT( * ) + + - 59 )
----
-87

skipif mysql # not compatible
query I rowsort label-907
SELECT + COALESCE ( - 87, - - COUNT ( * ) + + - 59 )
----
-87

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-910
SELECT ALL - COALESCE ( - - 77, - 0 * + 53 * + + 92 + - 57, + 32 * - - 86 * - CASE COUNT( * ) WHEN - 49 THEN 46 * - 56 + + - 51 - CAST( 34 AS SIGNED ) + - - 76 * 38 ELSE NULL END ) AS col0, 20
----
-77
20

skipif mysql # not compatible
query II rowsort label-910
SELECT ALL - COALESCE ( - - 77, - 0 * + 53 * + + 92 + - 57, + 32 * - - 86 * - CASE COUNT ( * ) WHEN - 49 THEN 46 * - 56 + + - 51 - CAST ( 34 AS INTEGER ) + - - 76 * 38 ELSE NULL END ) AS col0, 20
----
-77
20

query I rowsort
SELECT DISTINCT 82 - + 98 AS col2
----
-16

query I rowsort
SELECT + + 74 col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT ALL - - NULLIF ( + ( - SUM( 37 ) ), + + COALESCE ( + 89, - 66, 72 + - 44 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL - - NULLIF ( + ( - SUM ( 37 ) ), + + COALESCE ( + 89, - 66, 72 + - 44 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL - 26 * + MIN( DISTINCT - - 56 )
----
-1456

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - 26 * + MIN ( DISTINCT - - 56 )
----
-1456

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

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

query I rowsort
SELECT 88 * + - 62
----
-5456

query I rowsort
SELECT ALL 80 * + 30 * - - 70
----
168000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-918
SELECT + COUNT( DISTINCT + - 35 ) * - NULLIF ( 17, + + 22 ) + + + CAST( - 61 AS SIGNED ) * - + 13
----
776

skipif mysql # not compatible
query I rowsort label-918
SELECT + COUNT ( DISTINCT + - 35 ) * - NULLIF ( 17, + + 22 ) + + + CAST ( - 61 AS INTEGER ) * - + 13
----
776

query II rowsort
SELECT ALL 90, 32 col1
----
90
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-921
SELECT MAX( 4 ) + + + 63 + - 37 DIV - COUNT( * ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-921
SELECT MAX ( 4 ) + + + 63 + - 37 / - COUNT ( * ) AS col0
----
104

query I rowsort
SELECT ALL 27 * + 69 AS col0
----
1863

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

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL MIN ( 5 )
----
5

query I rowsort
SELECT 88 * 76 AS col2
----
6688

onlyif mysql # DIV for integer division: 
query II rowsort label-925
SELECT DISTINCT 53, + 40 + - - 40 DIV + 77 col2
----
53
40

skipif mysql # not compatible
query II rowsort label-925
SELECT DISTINCT 53, + 40 + - - 40 / + 77 col2
----
53
40

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

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

query I rowsort
SELECT 4 * 97 AS col1
----
388

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-928
SELECT DISTINCT + 26 + COUNT( ALL - CAST( - 46 AS SIGNED ) ) + - 18 col2
----
9

skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT + 26 + COUNT ( ALL - CAST ( - 46 AS INTEGER ) ) + - 18 col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-929
SELECT ALL COUNT( * ), - CAST( 7 AS SIGNED ) + 28 AS col0
----
1
21

skipif mysql # not compatible
query II rowsort label-929
SELECT ALL COUNT ( * ), - CAST ( 7 AS INTEGER ) + 28 AS col0
----
1
21

query II rowsort
SELECT 93, + ( - 9 ) + 27 AS col0
----
93
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-932
SELECT ALL + 8 + - 47 + + 2 * - COUNT( * ) * - 88
----
137

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL + 8 + - 47 + + 2 * - COUNT ( * ) * - 88
----
137

query I rowsort
SELECT ALL COALESCE ( + 67, 73 )
----
67

query II rowsort
SELECT - 48 * 43 AS col2, 47 AS col2
----
-2064
47

query I rowsort
SELECT + 54 * - 28 AS col0
----
-1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT ALL - CAST( NULL AS SIGNED ) + + 50 * + + 98 + + 93 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL - CAST ( NULL AS INTEGER ) + + 50 * + + 98 + + 93 * - CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT ALL - CASE + MAX( DISTINCT - ( - + 3 ) ) WHEN COALESCE ( - - 93, + 87, - + COALESCE ( - 51, 42 + - 82 + - NULLIF ( 39, + - 11 ) ) * - 4 - + 32 ) THEN - 6 - + 31 END * 89 AS col0, 97
----
NULL
97

skipif mysql # not compatible
query II rowsort label-938
SELECT ALL - CASE + MAX ( DISTINCT - ( - + 3 ) ) WHEN COALESCE ( - - 93, + 87, - + COALESCE ( - 51, 42 + - 82 + - NULLIF ( 39, + - 11 ) ) * - 4 - + 32 ) THEN - 6 - + 31 END * 89 AS col0, 97
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT DISTINCT - - 4 * CASE + 93 WHEN - + 1 THEN 79 / + 91 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT - - 4 * CASE + 93 WHEN - + 1 THEN 79 / + 91 * + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-940
SELECT ALL - 9 * + NULLIF ( + - 74, - COALESCE ( + 47, COUNT( * ) ) * - - ( - + 22 ) ) + - 27 * + CAST( NULL AS SIGNED ) + NULLIF ( - COUNT( * ), 64 ) + - NULLIF ( 46, 56 + 91 ) + + 24 - + - 23 * + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL - 9 * + NULLIF ( + - 74, - COALESCE ( + 47, COUNT ( * ) ) * - - ( - + 22 ) ) + - 27 * + CAST ( NULL AS INTEGER ) + NULLIF ( - COUNT ( * ), 64 ) + - NULLIF ( 46, 56 + 91 ) + + 24 - + - 23 * + + 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT - + 52 DIV - 2 + + 78 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-941
SELECT - + 52 / - 2 + + 78 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT CASE 37 WHEN - COUNT( * ) + - - 15 THEN NULL ELSE + + 83 END
----
83

skipif mysql # not compatible
query I rowsort label-942
SELECT CASE 37 WHEN - COUNT ( * ) + - - 15 THEN NULL ELSE + + 83 END
----
83

query I rowsort
SELECT + - 33 col1
----
-33

query I rowsort
SELECT - - 82 + - + 6 AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-945
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - 58
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-945
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - 58
----
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT - ( + 92 ) + - COUNT( * ) - - + 10 * + 89 AS col1
----
797

skipif mysql # not compatible
query I rowsort label-946
SELECT - ( + 92 ) + - COUNT ( * ) - - + 10 * + 89 AS col1
----
797

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-947
SELECT 2 DIV + - ( - 70 ) - + - 15 + + 88 - CAST( 93 AS SIGNED ) * + 44 - 11
----
-4000

skipif mysql # not compatible
query I rowsort label-947
SELECT 2 / + - ( - 70 ) - + - 15 + + 88 - CAST ( 93 AS INTEGER ) * + 44 - 11
----
-4000

query I rowsort
SELECT + - 43 * - 96
----
4128

query I rowsort
SELECT ALL + 16 * + - 96 - + 62 AS col2
----
-1598

query II rowsort
SELECT ALL + 45 AS col0, - 94 * + 32 col0
----
45
-3008

query I rowsort
SELECT + 59 * + ( 9 )
----
531

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-953
SELECT ALL - 55 * - - 81, CAST( NULL AS SIGNED ) AS col2
----
-4455
NULL

skipif mysql # not compatible
query II rowsort label-953
SELECT ALL - 55 * - - 81, CAST ( NULL AS INTEGER ) AS col2
----
-4455
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT ALL 12 * + - SUM( ALL + + 71 ) * + 15 - - CASE + 48 WHEN + 0 THEN 90 END * + - 89 + - - 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL 12 * + - SUM ( ALL + + 71 ) * + 15 - - CASE + 48 WHEN + 0 THEN 90 END * + - 89 + - - 92 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT + - ( + 52 ) + + CASE + 63 WHEN 61 THEN 30 WHEN + 79 + - - 31 + - MIN( ALL - + 66 ) THEN NULL END + 80 * + - ( + - 22 ) * + + 22 + + 45 + + - 64 * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-955
SELECT + - ( + 52 ) + + CASE + 63 WHEN 61 THEN 30 WHEN + 79 + - - 31 + - MIN ( ALL - + 66 ) THEN NULL END + 80 * + - ( + - 22 ) * + + 22 + + 45 + + - 64 * 9
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-956
SELECT - + 80 * - - 81 DIV + COUNT( * ) col1
----
-6480

skipif mysql # not compatible
query I rowsort label-956
SELECT - + 80 * - - 81 / + COUNT ( * ) col1
----
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT + 95 * SUM( + 61 ) + - MAX( DISTINCT - 94 ) * + + 91 + + 43
----
14392

skipif mysql # not compatible
query I rowsort label-957
SELECT + 95 * SUM ( + 61 ) + - MAX ( DISTINCT - 94 ) * + + 91 + + 43
----
14392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-958
SELECT DISTINCT 69 * - + CAST( - ( - + 85 ) AS SIGNED ) AS col0
----
-5865

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT 69 * - + CAST ( - ( - + 85 ) AS INTEGER ) AS col0
----
-5865

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-959
SELECT + - 42 + - 24, - CAST( - 64 AS SIGNED ) AS col0
----
-66
64

skipif mysql # not compatible
query II rowsort label-959
SELECT + - 42 + - 24, - CAST ( - 64 AS INTEGER ) AS col0
----
-66
64

query I rowsort
SELECT ALL - 36 * + 72
----
-2592

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

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

query I rowsort
SELECT DISTINCT 86 * + - ( - 94 ) * + 9 AS col2
----
72756

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT - COALESCE ( + SUM( - 33 ), 59 )
----
33

skipif mysql # not compatible
query I rowsort label-963
SELECT - COALESCE ( + SUM ( - 33 ), 59 )
----
33

query I rowsort
SELECT ALL + NULLIF ( - - 77, - + 44 ) + 87 AS col1
----
164

query I rowsort
SELECT + 67 * + 94 col0
----
6298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-966
SELECT + 85 DIV + - CAST( - + 16 AS SIGNED ) AS col0, COALESCE ( + + COUNT( * ), + COUNT( * ) )
----
5
1

skipif mysql # not compatible
query II rowsort label-966
SELECT + 85 / + - CAST ( - + 16 AS INTEGER ) AS col0, COALESCE ( + + COUNT ( * ), + COUNT ( * ) )
----
5
1

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

skipif mysql # not compatible
query I rowsort label-967
SELECT DISTINCT COUNT ( * ) * 4 / COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT ALL 67 + + + COALESCE ( + 35, - 15, - 43 + - + 67 - - + 17 + - - 82 * + - 24 + - + 67 + + ( - 73 ) * + - COUNT( * ) * - - MIN( - + 1 ) )
----
102

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL 67 + + + COALESCE ( + 35, - 15, - 43 + - + 67 - - + 17 + - - 82 * + - 24 + - + 67 + + ( - 73 ) * + - COUNT ( * ) * - - MIN ( - + 1 ) )
----
102

query I rowsort
SELECT + 72 + - - 62 AS col0
----
134

query I rowsort
SELECT + ( + 75 ) * 75
----
5625

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-972
SELECT ALL + CAST( 40 AS SIGNED ) + + 87 + - 12 + - 98
----
17

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL + CAST ( 40 AS INTEGER ) + + 87 + - 12 + - 98
----
17

query I rowsort
SELECT - 1 * - ( + - 23 ) col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT DISTINCT COALESCE ( + 94, - COUNT( * ) ) + + - 71 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT COALESCE ( + 94, - COUNT ( * ) ) + + - 71 AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-975
SELECT ALL COUNT( * ) + - 92 AS col2, + 21
----
-91
21

skipif mysql # not compatible
query II rowsort label-975
SELECT ALL COUNT ( * ) + - 92 AS col2, + 21
----
-91
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-976
SELECT + + NULLIF ( - 68, - + 87 * 68 - + 20 + - - COUNT( * ) * - 71 + - NULLIF ( COUNT( DISTINCT - - CAST( - - 65 AS SIGNED ) ), - 81 ) ) * - COALESCE ( + 59, COALESCE ( + 94, 15 ) DIV - 36 * - COALESCE ( + 63, 17, + 52 - - 32 ), + - 2 )
----
4012

skipif mysql # not compatible
query I rowsort label-976
SELECT + + NULLIF ( - 68, - + 87 * 68 - + 20 + - - COUNT ( * ) * - 71 + - NULLIF ( COUNT ( DISTINCT - - CAST ( - - 65 AS INTEGER ) ), - 81 ) ) * - COALESCE ( + 59, COALESCE ( + 94, 15 ) / - 36 * - COALESCE ( + 63, 17, + 52 - - 32 ), + - 2 )
----
4012

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-977
SELECT DISTINCT - 9 * + CAST( NULL AS SIGNED ) AS col0, ( + 59 )
----
NULL
59

skipif mysql # not compatible
query II rowsort label-977
SELECT DISTINCT - 9 * + CAST ( NULL AS INTEGER ) AS col0, ( + 59 )
----
NULL
59

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT ALL + 62 DIV - 69 - - + ( 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL + 62 / - 69 - - + ( 96 ) AS col1
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT ALL + ( - - COUNT( DISTINCT - + 23 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL + ( - - COUNT ( DISTINCT - + 23 ) ) AS col0
----
1

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

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

query I rowsort
SELECT DISTINCT + - ( - + 19 ) AS col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-983
SELECT + 51 * + + ( + 6 ) * 32 + - 20 - CAST( NULL AS SIGNED ) / 14
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT + 51 * + + ( + 6 ) * 32 + - 20 - CAST ( NULL AS INTEGER ) / 14
----
NULL

query II rowsort
SELECT ALL + 43, + 16 * + 73 + - + 8 * 5 + - 2 + + 4 AS col0
----
43
1130

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - ( - 72 ) * COUNT( * ) * - 87
----
-6264

skipif mysql # not compatible
query I rowsort label-985
SELECT - ( - 72 ) * COUNT ( * ) * - 87
----
-6264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-986
SELECT ALL 50 * + 92 + 17 DIV + ( COUNT( * ) )
----
4617

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL 50 * + 92 + 17 / + ( COUNT ( * ) )
----
4617

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT DISTINCT - 66 * 95 + 96 + - COUNT( * ) AS col1
----
-6175

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT - 66 * 95 + 96 + - COUNT ( * ) AS col1
----
-6175

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

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + COUNT ( * ) + + 7 AS col1
----
8

query I rowsort
SELECT DISTINCT - NULLIF ( - + 24, + 28 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT ALL 91 + - 62 * - 56 / - 70 * - + CASE - - COUNT( * ) WHEN + + CASE - 87 WHEN - 44 + + 0 THEN - + 43 * + 14 + 18 * 36 * - 69 ELSE NULL END THEN + + COUNT( * ) * 0 + + 64 END * 38 - - 94 + - + COUNT( * ) / + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL 91 + - 62 * - 56 / - 70 * - + CASE - - COUNT ( * ) WHEN + + CASE - 87 WHEN - 44 + + 0 THEN - + 43 * + 14 + 18 * 36 * - 69 ELSE NULL END THEN + + COUNT ( * ) * 0 + + 64 END * 38 - - 94 + - + COUNT ( * ) / + - 94
----
NULL

query I rowsort
SELECT 88 + - 29 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT ALL MAX( - 72 ) * 45 * ( + + 51 ) + + 7
----
-165233

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL MAX ( - 72 ) * 45 * ( + + 51 ) + + 7
----
-165233

query I rowsort
SELECT 94 * + 87
----
8178

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-994
SELECT COUNT( * ) * 5 * - 38 + 2 + - 55 DIV 40 AS col1, + COUNT( * ) col0
----
-189
1

skipif mysql # not compatible
query II rowsort label-994
SELECT COUNT ( * ) * 5 * - 38 + 2 + - 55 / 40 AS col1, + COUNT ( * ) col0
----
-189
1

query II rowsort
SELECT DISTINCT 15 AS col0, - 16 AS col0
----
15
-16

query I rowsort
SELECT DISTINCT 70 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT ( - COUNT( * ) ) + - 68 * + 55 - + 89
----
-3830

skipif mysql # not compatible
query I rowsort label-997
SELECT ( - COUNT ( * ) ) + - 68 * + 55 - + 89
----
-3830

query I rowsort
SELECT 41 + - 98 * + 99 * - 99 col1
----
960539

query II rowsort
SELECT - + 70, 25 AS col0
----
-70
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT 57 - - COUNT( DISTINCT + 96 )
----
58

skipif mysql # not compatible
query I rowsort label-1000
SELECT 57 - - COUNT ( DISTINCT + 96 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1001
SELECT 16 * + CAST( + 90 AS SIGNED ) - - - 12
----
1428

skipif mysql # not compatible
query I rowsort label-1001
SELECT 16 * + CAST ( + 90 AS INTEGER ) - - - 12
----
1428

query I rowsort
SELECT ALL ( 26 ) * 14 AS col0
----
364

query II rowsort
SELECT + 19, 85 AS col2
----
19
85

query I rowsort
SELECT DISTINCT - 54 - + 97 AS col1
----
-151

query I rowsort
SELECT 95 * + 48 AS col2
----
4560

onlyif mysql # aggregate syntax: 
query II rowsort label-1006
SELECT ALL - COUNT( * ) * + 53 * - 2 AS col1, - 96 AS col2
----
106
-96

skipif mysql # not compatible
query II rowsort label-1006
SELECT ALL - COUNT ( * ) * + 53 * - 2 AS col1, - 96 AS col2
----
106
-96

query I rowsort
SELECT 26 - - 4 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + MIN( - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1008
SELECT + MIN ( - 85 ) AS col1
----
-85

query I rowsort
SELECT DISTINCT - ( - 52 ) AS col0
----
52

query I rowsort
SELECT - 50 * - + 65 AS col0
----
3250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1011
SELECT - AVG ( ALL - 34 ) / + 32 + + 95 + COUNT( * ) + + CAST( NULL AS SIGNED ) * - + CAST( - 43 AS SIGNED ) * - + 40 + + - 30 + - + 30 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1011
SELECT - AVG ( ALL - 34 ) / + 32 + + 95 + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - + CAST ( - 43 AS INTEGER ) * - + 40 + + - 30 + - + 30 * + COUNT ( * )
----
NULL

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

query I rowsort
SELECT 52 + - + 16
----
36

query II rowsort
SELECT + - 95 col1, 63
----
-95
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1015
SELECT 11 DIV - + 78
----
0

skipif mysql # not compatible
query I rowsort label-1015
SELECT 11 / - + 78
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL + 3 * 52 + + COUNT( * ) AS col1
----
157

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + 3 * 52 + + COUNT ( * ) AS col1
----
157

query I rowsort
SELECT DISTINCT - - 9 col1
----
9

query I rowsort
SELECT DISTINCT 62 + - 46
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1020
SELECT ALL + COALESCE ( + CAST( NULL AS SIGNED ), COALESCE ( + COUNT( * ), - - 4 * + COALESCE ( + ( + NULLIF ( - 20, + 58 ) ), - CASE CAST( - 4 AS SIGNED ) WHEN 10 * AVG ( 49 ) * - + 29 * - - CAST( NULL AS SIGNED ) + - + 24 + + 79 THEN 75 - + 36 WHEN - 28 THEN 28 * + 39 END * - COALESCE ( - - 51, 9 * - 49 ), COUNT( * ), - 29 DIV + SUM( DISTINCT + 20 ) ) ), - - 4 ) + - 34 - + 46 + + COUNT( * ), MAX( ALL + CAST( NULL AS SIGNED ) ) * - 83 AS col1
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-1020
SELECT ALL + COALESCE ( + CAST ( NULL AS INTEGER ), COALESCE ( + COUNT ( * ), - - 4 * + COALESCE ( + ( + NULLIF ( - 20, + 58 ) ), - CASE CAST ( - 4 AS INTEGER ) WHEN 10 * AVG ( 49 ) * - + 29 * - - CAST ( NULL AS INTEGER ) + - + 24 + + 79 THEN 75 - + 36 WHEN - 28 THEN 28 * + 39 END * - COALESCE ( - - 51, 9 * - 49 ), COUNT ( * ), - 29 / + SUM ( DISTINCT + 20 ) ) ), - - 4 ) + - 34 - + 46 + + COUNT ( * ), MAX ( ALL + CAST ( NULL AS INTEGER ) ) * - 83 AS col1
----
-78
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT 98 + + COALESCE ( 27, + + ( 31 ) * 99 ) DIV + 25 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1021
SELECT 98 + + COALESCE ( 27, + + ( 31 ) * 99 ) / + 25 AS col2
----
99

query I rowsort
SELECT 12 * + 10 * + 50 + - 34 AS col2
----
5966

query I rowsort
SELECT DISTINCT + 22 * - 99 AS col1
----
-2178

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

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

query II rowsort
SELECT ALL + 49 + - 20 col1, 46
----
29
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1026
SELECT 7 DIV - COUNT( * ) col1, ( + 64 )
----
-7
64

skipif mysql # not compatible
query II rowsort label-1026
SELECT 7 / - COUNT ( * ) col1, ( + 64 )
----
-7
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1027
SELECT ALL - 77 + + 20 DIV + + 98 + - 44, + 9 DIV COUNT( * ) AS col0
----
-121
9

skipif mysql # not compatible
query II rowsort label-1027
SELECT ALL - 77 + + 20 / + + 98 + - 44, + 9 / COUNT ( * ) AS col0
----
-121
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1028
SELECT DISTINCT 37 DIV - ( - 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT 37 / - ( - 50 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1029
SELECT 32 DIV - - 67 * - - 18
----
0

skipif mysql # not compatible
query I rowsort label-1029
SELECT 32 / - - 67 * - - 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT DISTINCT SUM( - 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT SUM ( - 48 ) AS col0
----
-48

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1032
SELECT ALL - MAX( + 89 ) * - 45 * - 91 AS col1, COUNT( * ) AS col2, 83 * 35 * 2 * - 34 * - - 34 + + 95 - 92 + - 95 + COUNT( + ( ( 17 ) ) ) AS col2
----
-364455
1
-6716451

skipif mysql # not compatible
query III rowsort label-1032
SELECT ALL - MAX ( + 89 ) * - 45 * - 91 AS col1, COUNT ( * ) AS col2, 83 * 35 * 2 * - 34 * - - 34 + + 95 - 92 + - 95 + COUNT ( + ( ( 17 ) ) ) AS col2
----
-364455
1
-6716451

query I rowsort
SELECT 57 * + 11 * - 54 * + + CASE + 45 WHEN 19 THEN NULL ELSE + 50 END
----
-1692900

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT + ( + 34 ) - 74 + ( + - COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-1034
SELECT + ( + 34 ) - 74 + ( + - COUNT ( * ) )
----
-41

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1037
SELECT 10 * COUNT( * ) + ( - 76 ) * + CASE + CAST( - 81 AS SIGNED ) WHEN - 92 * 84 * + CAST( NULL AS SIGNED ) + + + 82 THEN + ( - + 28 ) + 20 END AS col1, + ( 68 )
----
NULL
68

skipif mysql # not compatible
query II rowsort label-1037
SELECT 10 * COUNT ( * ) + ( - 76 ) * + CASE + CAST ( - 81 AS INTEGER ) WHEN - 92 * 84 * + CAST ( NULL AS INTEGER ) + + + 82 THEN + ( - + 28 ) + 20 END AS col1, + ( 68 )
----
NULL
68

query I rowsort
SELECT 41 + + 76
----
117

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

query I rowsort
SELECT CASE - 39 WHEN + 76 + + + 99 * 91 + - 63 THEN NULL ELSE - 43 END + - 0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1041
SELECT - 48 * COUNT( * ) * 3 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1041
SELECT - 48 * COUNT ( * ) * 3 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT 35 + + 89 + - + 11 * ( + - 29 ) * + MIN( DISTINCT 14 ) - - 41
----
4631

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT 35 + + 89 + - + 11 * ( + - 29 ) * + MIN ( DISTINCT 14 ) - - 41
----
4631

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT ALL + COUNT( * ) * + 90 * + ( - 20 )
----
-1800

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL + COUNT ( * ) * + 90 * + ( - 20 )
----
-1800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1044
SELECT ALL - + 95 * + - 76 * - - 75 + + CAST( NULL AS SIGNED ) / - ( + 88 ) + 98 + + - COUNT( COALESCE ( + 23, - 91, + + 63 / + 79, + + 6 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL - + 95 * + - 76 * - - 75 + + CAST ( NULL AS INTEGER ) / - ( + 88 ) + 98 + + - COUNT ( COALESCE ( + 23, - 91, + + 63 / + 79, + + 6 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 96 * - + 46 + 65
----
-4351

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT COALESCE ( + 73, - COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-1047
SELECT COALESCE ( + 73, - COUNT ( * ) )
----
73

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1049
SELECT + 87, 56 * + + COUNT( DISTINCT - - 69 ) col0
----
87
56

skipif mysql # not compatible
query II rowsort label-1049
SELECT + 87, 56 * + + COUNT ( DISTINCT - - 69 ) col0
----
87
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1050
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), + + 54 ) * - 65 + - - 48 + + - 39 + - - ( + + 69 ) * 95
----
3054

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), + + 54 ) * - 65 + - - 48 + + - 39 + - - ( + + 69 ) * 95
----
3054

query I rowsort
SELECT - 62 * + 58 * 35
----
-125860

onlyif mysql # DIV for integer division: 
query I rowsort label-1052
SELECT + 79 DIV + + 44 - - 31 + + 74 col2
----
106

skipif mysql # not compatible
query I rowsort label-1052
SELECT + 79 / + + 44 - - 31 + + 74 col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT + CASE - 86 WHEN + - 72 THEN + 3 * - 51 * + COUNT( * ) * + CASE 94 WHEN + 93 * - - 47 * + 36 + - 54 THEN - 47 + + - 6 / + - 16 ELSE + 73 - + - 97 END ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT + CASE - 86 WHEN + - 72 THEN + 3 * - 51 * + COUNT ( * ) * + CASE 94 WHEN + 93 * - - 47 * + 36 + - 54 THEN - 47 + + - 6 / + - 16 ELSE + 73 - + - 97 END ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT ALL 98 * + 63 - - COUNT( * )
----
6175

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL 98 * + 63 - - COUNT ( * )
----
6175

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT DISTINCT + MAX( - 29 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT + MAX ( - 29 ) AS col1
----
-29

query I rowsort
SELECT - ( + 32 ) * + - 27 + + 27 - - 73 AS col1
----
964

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

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

query I rowsort
SELECT + 66 * 16
----
1056

query I rowsort
SELECT - 72 * 5 AS col0
----
-360

query I rowsort
SELECT ALL - ( 59 ) * - - 4 - 38
----
-274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1061
SELECT ALL COUNT( NULLIF ( - CAST( + + 41 AS SIGNED ), - 8 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL COUNT ( NULLIF ( - CAST ( + + 41 AS INTEGER ), - 8 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT - 42 + COALESCE ( - + ( + + 69 ), - 71, + 4 ) * + SUM( ALL - + 61 ) AS col2
----
4167

skipif mysql # not compatible
query I rowsort label-1062
SELECT - 42 + COALESCE ( - + ( + + 69 ), - 71, + 4 ) * + SUM ( ALL - + 61 ) AS col2
----
4167

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT - 24 - + 55 DIV + 90 * + 78 + + 20 * - 96
----
-1944

skipif mysql # not compatible
query I rowsort label-1064
SELECT - 24 - + 55 / + 90 * + 78 + + 20 * - 96
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL NULLIF ( + 79, - - 92 + + COUNT( * ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL NULLIF ( + 79, - - 92 + + COUNT ( * ) ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT - 36 * COUNT( * ) * NULLIF ( - 85, - COUNT( * ) ) AS col1
----
3060

skipif mysql # not compatible
query I rowsort label-1066
SELECT - 36 * COUNT ( * ) * NULLIF ( - 85, - COUNT ( * ) ) AS col1
----
3060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1067
SELECT DISTINCT - 21 DIV - - MIN( + 61 )
----
0

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT - 21 / - - MIN ( + 61 )
----
0

query I rowsort
SELECT - - 83 * 92 AS col2
----
7636

onlyif mysql # DIV for integer division: 
query II rowsort label-1069
SELECT DISTINCT - ( + 0 ) DIV + ( - 81 ) * 58 AS col0, - 0
----
0
0

skipif mysql # not compatible
query II rowsort label-1069
SELECT DISTINCT - ( + 0 ) / + ( - 81 ) * 58 AS col0, - 0
----
0
0

query I rowsort
SELECT ALL + + 15 + + 79 AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1071
SELECT + - 33 DIV 17 * + COUNT( DISTINCT + + 32 ) * 98 * 87 AS col1
----
-8526

skipif mysql # not compatible
query I rowsort label-1071
SELECT + - 33 / 17 * + COUNT ( DISTINCT + + 32 ) * 98 * 87 AS col1
----
-8526

query I rowsort
SELECT DISTINCT + 11 * 30
----
330

query I rowsort
SELECT DISTINCT 24 + - - 89 col0
----
113

query I rowsort
SELECT DISTINCT - - 73 + + - 24 * - 25 + + 28 AS col1
----
701

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT DISTINCT + ( - + CASE + + COUNT( * ) WHEN 69 * + 97 * + 23 * + COALESCE ( 92, + - 81 + + 0 ) + 6 THEN - + 53 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT + ( - + CASE + + COUNT ( * ) WHEN 69 * + 97 * + 23 * + COALESCE ( 92, + - 81 + + 0 ) + 6 THEN - + 53 END )
----
NULL

query I rowsort
SELECT + - 81 - 90 AS col0
----
-171

query I rowsort
SELECT DISTINCT - 76 * 75 + - 13
----
-5713

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1078
SELECT ( 87 ) DIV - + COUNT( * ) + + 27
----
-60

skipif mysql # not compatible
query I rowsort label-1078
SELECT ( 87 ) / - + COUNT ( * ) + + 27
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1079
SELECT - CAST( 47 AS SIGNED ) + + 21 col2
----
-26

skipif mysql # not compatible
query I rowsort label-1079
SELECT - CAST ( 47 AS INTEGER ) + + 21 col2
----
-26

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1081
SELECT - 56 DIV + 99 * - 1 + 39 + - 23
----
16

skipif mysql # not compatible
query I rowsort label-1081
SELECT - 56 / + 99 * - 1 + 39 + - 23
----
16

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

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

query I rowsort
SELECT + NULLIF ( + 8, + + 17 / 56 * - - 3 + 31 * 19 * 22 / + 82 ) AS col1
----
8

query I rowsort
SELECT + 49 * + 0 AS col2
----
0

query II rowsort
SELECT ALL + 77 AS col2, 65
----
77
65

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

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

query I rowsort
SELECT 23 * - + 78 + - 0 + - 80 * 63
----
-6834

query II rowsort
SELECT ALL + 87, 4 + 21 + + COALESCE ( - 14, + + 45, 84 ) * + 87 col0
----
87
-1193

query II rowsort
SELECT - 48 * + 74 AS col1, 24 AS col2
----
-3552
24

query II rowsort
SELECT ALL + 93 AS col1, - 0 AS col0
----
93
0

query I rowsort
SELECT CASE 60 WHEN + 81 / + 48 THEN 90 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT - COALESCE ( + 52, - 16 + + 79 + 66 + COUNT( * ) * - 78 ) + COUNT( * ) + 82 - + + 59 * + 69 + + 85 + + - CASE + COUNT( * ) WHEN - 58 THEN + 24 WHEN + + 3 THEN 96 END + - COUNT( * ) * - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT - COALESCE ( + 52, - 16 + + 79 + 66 + COUNT ( * ) * - 78 ) + COUNT ( * ) + 82 - + + 59 * + 69 + + 85 + + - CASE + COUNT ( * ) WHEN - 58 THEN + 24 WHEN + + 3 THEN 96 END + - COUNT ( * ) * - + 68
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1093
SELECT ALL + 15 DIV 32 DIV - ( - 81 ) AS col1, + 72 * + 22
----
0
1584

skipif mysql # not compatible
query II rowsort label-1093
SELECT ALL + 15 / 32 / - ( - 81 ) AS col1, + 72 * + 22
----
0
1584

query I rowsort
SELECT ALL - + 68 * 13 + + 23 AS col2
----
-861

onlyif mysql # aggregate syntax: 
query II rowsort label-1095
SELECT DISTINCT - 76 * 74 + 96 - - - 63 * 22 * - + 3 + - COUNT( * ) * - + 34 + + 95 - 46 - + - 44 AS col2, 99
----
-1243
99

skipif mysql # not compatible
query II rowsort label-1095
SELECT DISTINCT - 76 * 74 + 96 - - - 63 * 22 * - + 3 + - COUNT ( * ) * - + 34 + + 95 - 46 - + - 44 AS col2, 99
----
-1243
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT DISTINCT + + 34 * - - COUNT( * ) * ( + 25 ) * - COUNT( * ) + + 40 + 14 - - MAX( - 75 ) + 51
----
-820

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT + + 34 * - - COUNT ( * ) * ( + 25 ) * - COUNT ( * ) + + 40 + 14 - - MAX ( - 75 ) + 51
----
-820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1097
SELECT + + 43 * - - MAX( ALL 39 ) DIV COUNT( * ) + + 11 + 30
----
1718

skipif mysql # not compatible
query I rowsort label-1097
SELECT + + 43 * - - MAX ( ALL 39 ) / COUNT ( * ) + + 11 + 30
----
1718

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL ( - SUM( ALL - 13 ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL ( - SUM ( ALL - 13 ) ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-1100
SELECT - + NULLIF ( + 4, - 89 * - 59 ) AS col0, 51 * + 44 + + COUNT( * ) * - - 72
----
-4
2316

skipif mysql # not compatible
query II rowsort label-1100
SELECT - + NULLIF ( + 4, - 89 * - 59 ) AS col0, 51 * + 44 + + COUNT ( * ) * - - 72
----
-4
2316

query II rowsort
SELECT + 61 AS col2, + ( - + 13 ) * + 30 col0
----
61
-390

query II rowsort
SELECT ALL 22 col0, + 47 + - NULLIF ( - + 19, + 95 )
----
22
66

query I rowsort
SELECT - 69 * + - 58
----
4002

query I rowsort
SELECT DISTINCT + - 50 + - 28
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-1105
SELECT - + 96 AS col0, - CASE 42 WHEN + + 28 THEN NULL WHEN + + 52 THEN + MAX( ALL + 31 ) END
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-1105
SELECT - + 96 AS col0, - CASE 42 WHEN + + 28 THEN NULL WHEN + + 52 THEN + MAX ( ALL + 31 ) END
----
-96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT ( - 93 ) + 19 + - 7 * + CAST( 60 AS SIGNED ) AS col2
----
-494

skipif mysql # not compatible
query I rowsort label-1106
SELECT ( - 93 ) + 19 + - 7 * + CAST ( 60 AS INTEGER ) AS col2
----
-494

query I rowsort
SELECT - + NULLIF ( + - 18, - 30 )
----
18

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

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

query I rowsort
SELECT DISTINCT + 88 + - 21
----
67

query II rowsort
SELECT 88 - 37 AS col1, + 81 * + 79 + - - 15 AS col1
----
51
6414

query I rowsort
SELECT - + CASE 82 WHEN 99 + - + 58 THEN - + 65 END
----
NULL

query I rowsort
SELECT 6 * + 44
----
264

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

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

query I rowsort
SELECT - 85 * - + 5
----
425

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT 96 + 28 * + - SUM( + - 68 )
----
2000

skipif mysql # not compatible
query I rowsort label-1115
SELECT 96 + 28 * + - SUM ( + - 68 )
----
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT DISTINCT - COUNT( * ) * + + 53 * 10
----
-530

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - COUNT ( * ) * + + 53 * 10
----
-530

query I rowsort
SELECT ALL + 54 * 61
----
3294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1118
SELECT NULLIF ( - COUNT( * ), ( 45 ) * + COALESCE ( + + 76, 72, - COUNT( * ), + CAST( + 38 AS SIGNED ) ) ) + COALESCE ( + 44, + 73 )
----
43

skipif mysql # not compatible
query I rowsort label-1118
SELECT NULLIF ( - COUNT ( * ), ( 45 ) * + COALESCE ( + + 76, 72, - COUNT ( * ), + CAST ( + 38 AS INTEGER ) ) ) + COALESCE ( + 44, + 73 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1119
SELECT ALL - 90 * 65, + CAST( NULL AS SIGNED ) AS col0
----
-5850
NULL

skipif mysql # not compatible
query II rowsort label-1119
SELECT ALL - 90 * 65, + CAST ( NULL AS INTEGER ) AS col0
----
-5850
NULL

query II rowsort
SELECT 13 * 35 * + - 44, + 62 AS col1
----
-20020
62

query II rowsort
SELECT DISTINCT - 9 * + + 71 AS col2, 87
----
-639
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1122
SELECT DISTINCT SUM( 99 ) - COUNT( * ) DIV + + 82 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT SUM ( 99 ) - COUNT ( * ) / + + 82 AS col1
----
99

query I rowsort
SELECT DISTINCT - CASE - 31 WHEN + - 11 THEN - 88 ELSE - - 26 END
----
-26

query I rowsort
SELECT 13 - + 75 * 14 * - + 57 AS col1
----
59863

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT COUNT( * ) * + CASE - 17 WHEN + 80 THEN NULL ELSE 73 END AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1126
SELECT COUNT ( * ) * + CASE - 17 WHEN + 80 THEN NULL ELSE 73 END AS col0
----
73

query I rowsort
SELECT ALL + 47 * - 43 AS col1
----
-2021

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT ALL 83 + + - 81 * + 14 DIV - + 7 - - + 49 AS col0
----
294

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL 83 + + - 81 * + 14 / - + 7 - - + 49 AS col0
----
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1129
SELECT DISTINCT CAST( + - 85 AS SIGNED ) + - COUNT( * ) - 18
----
-104

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT CAST ( + - 85 AS INTEGER ) + - COUNT ( * ) - 18
----
-104

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1130
SELECT DISTINCT 43 + + ( CAST( NULL AS DECIMAL ) ), - 31 * + 67 + + - 4 * 93 AS col2
----
NULL
-2449

skipif mysql # not compatible
query II rowsort label-1130
SELECT DISTINCT 43 + + ( CAST ( NULL AS REAL ) ), - 31 * + 67 + + - 4 * 93 AS col2
----
NULL
-2449

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT 93 DIV + + 36
----
2

skipif mysql # not compatible
query I rowsort label-1132
SELECT 93 / + + 36
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT DISTINCT SUM( + 86 ) + + COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT SUM ( + 86 ) + + COUNT ( * ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT COALESCE ( - + 69, - - COUNT( * ) ) * - 16 - ( + 94 ) + - 74 * - 81 AS col2
----
7004

skipif mysql # not compatible
query I rowsort label-1134
SELECT COALESCE ( - + 69, - - COUNT ( * ) ) * - 16 - ( + 94 ) + - 74 * - 81 AS col2
----
7004

query II rowsort
SELECT - ( + 22 ) AS col2, + 11 + + - 82 + 28 * 88 * - + 65 AS col0
----
-22
-160231

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT DISTINCT + 20 + + + ( COALESCE ( + 44, + COUNT( ALL 33 ) ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT + 20 + + + ( COALESCE ( + 44, + COUNT ( ALL 33 ) ) ) AS col1
----
64

query I rowsort
SELECT ALL + 87 + + + 66 col2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT + NULLIF ( + + CASE COUNT( * ) WHEN + 1 THEN NULL WHEN 39 * - - 52 - SUM( - 82 ) THEN NULL ELSE + 31 + - + SUM( ALL + 26 ) END, + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1138
SELECT + NULLIF ( + + CASE COUNT ( * ) WHEN + 1 THEN NULL WHEN 39 * - - 52 - SUM ( - 82 ) THEN NULL ELSE + 31 + - + SUM ( ALL + 26 ) END, + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT ALL + + 73 * 77 + - COUNT( * ) * - + 61 * + COUNT( * ) - - 35
----
5717

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL + + 73 * 77 + - COUNT ( * ) * - + 61 * + COUNT ( * ) - - 35
----
5717

onlyif mysql # aggregate syntax: 
query II rowsort label-1140
SELECT ALL 91 - + + COUNT( * ) AS col2, + COUNT( * )
----
90
1

skipif mysql # not compatible
query II rowsort label-1140
SELECT ALL 91 - + + COUNT ( * ) AS col2, + COUNT ( * )
----
90
1

query I rowsort
SELECT - ( - 65 ) * - 74
----
-4810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT ALL 57 * - NULLIF ( - COUNT( ALL 14 ), COALESCE ( + 82, + ( - - 86 ) * 46 ) ) * - + 79 * - 88 * - - 16 + + + CAST( NULL AS SIGNED ) + 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL 57 * - NULLIF ( - COUNT ( ALL 14 ), COALESCE ( + 82, + ( - - 86 ) * 46 ) ) * - + 79 * - 88 * - - 16 + + + CAST ( NULL AS INTEGER ) + 73 AS col0
----
NULL

query I rowsort
SELECT 7 + + 52 AS col0
----
59

query I rowsort
SELECT 13 - + 42 col1
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1145
SELECT 23 - 26 - CAST( + NULLIF ( + 38, + + COALESCE ( + 17, - ( + + 99 ), - - 62 + - 3 ) ) AS SIGNED ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1145
SELECT 23 - 26 - CAST ( + NULLIF ( + 38, + + COALESCE ( + 17, - ( + + 99 ), - - 62 + - 3 ) ) AS INTEGER ) AS col0
----
-41

query I rowsort
SELECT 26 * + 38
----
988

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1148
SELECT 32 + 78 DIV + COUNT( ALL 7 ), + CAST( NULL AS SIGNED ) AS col1
----
110
NULL

skipif mysql # not compatible
query II rowsort label-1148
SELECT 32 + 78 / + COUNT ( ALL 7 ), + CAST ( NULL AS INTEGER ) AS col1
----
110
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT MIN( - - 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1149
SELECT MIN ( - - 90 ) AS col1
----
90

query I rowsort
SELECT 23 * 25 + - 47
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT DISTINCT - SUM( DISTINCT - 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - SUM ( DISTINCT - 86 ) AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1152
SELECT 22 + + COUNT( * ) * + ( - COUNT( * ) ) DIV - + NULLIF ( 14, + 76 )
----
22

skipif mysql # not compatible
query I rowsort label-1152
SELECT 22 + + COUNT ( * ) * + ( - COUNT ( * ) ) / - + NULLIF ( 14, + 76 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1153
SELECT ALL - COALESCE ( ( + 24 ), + + 92, + CAST( 76 AS SIGNED ) ) * - 56 / - 31 * CASE + MIN( ALL - 26 ) WHEN - 46 THEN 84 END * + NULLIF ( - 69, 26 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL - COALESCE ( ( + 24 ), + + 92, + CAST ( 76 AS INTEGER ) ) * - 56 / - 31 * CASE + MIN ( ALL - 26 ) WHEN - 46 THEN 84 END * + NULLIF ( - 69, 26 ) AS col0
----
NULL

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

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

query II rowsort
SELECT - 60 * ( 16 ) + - 72, 27 * 84 AS col2
----
-1032
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL - MAX( DISTINCT + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL - MAX ( DISTINCT + 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT DISTINCT - ( - - 28 ) * + COUNT( * ) * + 66
----
-1848

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT - ( - - 28 ) * + COUNT ( * ) * + 66
----
-1848

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1158
SELECT SUM( ALL - + 26 ) / - + 81 + 77 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT SUM ( ALL - + 26 ) / - + 81 + 77 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - ( 41 ) col1
----
-41

query I rowsort
SELECT 51 * + 89 AS col1
----
4539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1161
SELECT 57 + - + 96 DIV + COUNT( ALL + 95 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1161
SELECT 57 + - + 96 / + COUNT ( ALL + 95 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT ALL 60 + + - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL 60 + + - COUNT ( * )
----
59

query I rowsort
SELECT 67 + 81 col1
----
148

query I rowsort
SELECT ALL - 88 + - 55 AS col2
----
-143

query II rowsort
SELECT + 26, 34 AS col1
----
26
34

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

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

query I rowsort
SELECT ALL + - 34 + + 20 AS col0
----
-14

query I rowsort
SELECT + + COALESCE ( + 68, 93 * - 12 ) AS col2
----
68

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1171
SELECT COUNT( * ) + CASE + 31 WHEN - ( - ( MIN( ALL - NULLIF ( + - 68, + CAST( NULL AS SIGNED ) ) ) ) ) * 58 * 12 THEN NULL WHEN NULLIF ( + - 6, - + 45 ) * - COUNT( * ) / - MAX( 13 ) THEN NULL ELSE 20 END col2
----
21

skipif mysql # not compatible
query I rowsort label-1171
SELECT COUNT ( * ) + CASE + 31 WHEN - ( - ( MIN ( ALL - NULLIF ( + - 68, + CAST ( NULL AS INTEGER ) ) ) ) ) * 58 * 12 THEN NULL WHEN NULLIF ( + - 6, - + 45 ) * - COUNT ( * ) / - MAX ( 13 ) THEN NULL ELSE 20 END col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT + COUNT( * ) * + + 13 + 98 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-1172
SELECT + COUNT ( * ) * + + 13 + 98 AS col1
----
111

query I rowsort
SELECT ALL + - 42 + - + 95 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT - CASE + + 77 WHEN 95 THEN - - 57 + + COUNT( * ) ELSE + + 53 END
----
-53

skipif mysql # not compatible
query I rowsort label-1174
SELECT - CASE + + 77 WHEN 95 THEN - - 57 + + COUNT ( * ) ELSE + + 53 END
----
-53

query I rowsort
SELECT DISTINCT 91 + + 44 + + + 10 + - 53 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1176
SELECT DISTINCT + 32 * - CASE + + 42 WHEN + CAST( - 97 AS SIGNED ) THEN + + 92 END + - + 5 - + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT + 32 * - CASE + + 42 WHEN + CAST ( - 97 AS INTEGER ) THEN + + 92 END + - + 5 - + 13
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT + CAST( + 6 AS SIGNED ) * + 3 col2
----
18

skipif mysql # not compatible
query I rowsort label-1177
SELECT + CAST ( + 6 AS INTEGER ) * + 3 col2
----
18

query I rowsort
SELECT + + 19 + - + NULLIF ( 7, + 56 ) AS col0
----
12

query I rowsort
SELECT ALL 75 - + 15 + + COALESCE ( 47, - 70 ) * - 26 * + 54 AS col0
----
-65928

query I rowsort
SELECT - - CASE - - ( + 49 ) WHEN 26 + + 7 + 36 * + 95 / - 58 * - 29 + + - 9 - - - NULLIF ( + 60, - + 90 ) THEN NULL ELSE + 24 END
----
24

query I rowsort
SELECT + + 75 - - 81 * - + ( - + 72 ) - - - 20 AS col2
----
5887

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

query I rowsort
SELECT DISTINCT 7 - - 66
----
73

query I rowsort
SELECT + + ( 90 ) * - 99 + 57
----
-8853

query I rowsort
SELECT ALL COALESCE ( + 3, + 80 ) * + 69 AS col2
----
207

query I rowsort
SELECT + 86 * ( - - 56 ) AS col2
----
4816

query I rowsort
SELECT + 3 + 17
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1188
SELECT DISTINCT + 45 * + - 30 AS col2, 47 + + 53 * + + 51 * + COUNT( * )
----
-1350
2750

skipif mysql # not compatible
query II rowsort label-1188
SELECT DISTINCT + 45 * + - 30 AS col2, 47 + + 53 * + + 51 * + COUNT ( * )
----
-1350
2750

query I rowsort
SELECT + 79 + - 81
----
-2

query I rowsort
SELECT + 50 * NULLIF ( + 34, - 33 )
----
1700

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

skipif mysql # not compatible
query I rowsort label-1191
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), 27 ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1192
SELECT ALL COUNT( * ) + - MIN( DISTINCT ( 29 ) ) + - - 77 * - 8 + + CAST( - - 75 AS SIGNED ) DIV - 98 * 5
----
-644

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL COUNT ( * ) + - MIN ( DISTINCT ( 29 ) ) + - - 77 * - 8 + + CAST ( - - 75 AS INTEGER ) / - 98 * 5
----
-644

query I rowsort
SELECT - NULLIF ( + ( - - 69 ), + 30 ) AS col0
----
-69

query I rowsort
SELECT - 49 + 63 AS col2
----
14

query I rowsort
SELECT - ( + - 4 ) * + 83 AS col1
----
332

onlyif mysql # aggregate syntax: 
query II rowsort label-1196
SELECT DISTINCT 43 * - 16, + 98 * - COUNT( * ) AS col1
----
-688
-98

skipif mysql # not compatible
query II rowsort label-1196
SELECT DISTINCT 43 * - 16, + 98 * - COUNT ( * ) AS col1
----
-688
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1197
SELECT ALL 18 * + CASE 67 WHEN + 38 THEN - 49 ELSE NULL END / - + 13 * CAST( NULL AS SIGNED ) * + - 14 + + 59 + + 91 + + ( + + ( CASE - - 90 WHEN 80 * + + 54 / - 12 - + + COUNT( * ) + - - 21 + - 69 * - 29 / + + ( + 40 ) + - 81 THEN NULL ELSE - 78 END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL 18 * + CASE 67 WHEN + 38 THEN - 49 ELSE NULL END / - + 13 * CAST ( NULL AS INTEGER ) * + - 14 + + 59 + + 91 + + ( + + ( CASE - - 90 WHEN 80 * + + 54 / - 12 - + + COUNT ( * ) + - - 21 + - 69 * - 29 / + + ( + 40 ) + - 81 THEN NULL ELSE - 78 END ) ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1199
SELECT DISTINCT 55 * + + 15 * 46 + + + CAST( NULL AS DECIMAL ) + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT 55 * + + 15 * 46 + + + CAST ( NULL AS REAL ) + - 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + - 77 + - 30 + 15 / + + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + - 77 + - 30 + 15 / + + 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT DISTINCT - 83 * - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT - 83 * - + COUNT ( * )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1202
SELECT ALL MIN( + 60 ) * - + 91 / + COUNT( * ) * + NULLIF ( + 11, - - 27 ) + - COALESCE ( + SUM( + + NULLIF ( - 12, + 21 ) ), - ( 97 ), AVG ( + - 49 ) + - + 44 + COUNT( + + 0 ) * 64 ) / + 44 - - + ( 36 ) + - + 25 * + CASE - 94 WHEN + NULLIF ( + 46, + COUNT( * ) / CASE 40 WHEN 45 THEN + 4 / - - SUM( + 57 ) ELSE NULL END + - - 0 ) * 43 * + - COUNT( * ) THEN + - 51 ELSE - MAX( ALL 58 ) * ( + CASE + 17 WHEN + 43 + + 17 THEN COALESCE ( 81, + CASE 71 WHEN + CAST( 15 AS SIGNED ) THEN NULL WHEN 74 + - 27 THEN 19 * + 65 + - 84 ELSE NULL END ) * AVG ( - 43 * + 94 ) - + 82 / CAST( NULL AS SIGNED ) ELSE NULL END ) + - 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL MIN ( + 60 ) * - + 91 / + COUNT ( * ) * + NULLIF ( + 11, - - 27 ) + - COALESCE ( + SUM ( + + NULLIF ( - 12, + 21 ) ), - ( 97 ), AVG ( + - 49 ) + - + 44 + COUNT ( + + 0 ) * 64 ) / + 44 - - + ( 36 ) + - + 25 * + CASE - 94 WHEN + NULLIF ( + 46, + COUNT ( * ) / CASE 40 WHEN 45 THEN + 4 / - - SUM ( + 57 ) ELSE NULL END + - - 0 ) * 43 * + - COUNT ( * ) THEN + - 51 ELSE - MAX ( ALL 58 ) * ( + CASE + 17 WHEN + 43 + + 17 THEN COALESCE ( 81, + CASE 71 WHEN + CAST ( 15 AS INTEGER ) THEN NULL WHEN 74 + - 27 THEN 19 * + 65 + - 84 ELSE NULL END ) * AVG ( - 43 * + 94 ) - + 82 / CAST ( NULL AS INTEGER ) ELSE NULL END ) + - 99 END
----
NULL

query I rowsort
SELECT ( + + 0 ) col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT 56 * - - COUNT( * ) * + 90 - - 79 * + ( + COUNT( + 1 ) )
----
5119

skipif mysql # not compatible
query I rowsort label-1205
SELECT 56 * - - COUNT ( * ) * + 90 - - 79 * + ( + COUNT ( + 1 ) )
----
5119

onlyif mysql # aggregate syntax: 
query II rowsort label-1206
SELECT ( - - 53 ), COUNT( * ) + - - MIN( + 17 ) + 14 AS col2
----
53
32

skipif mysql # not compatible
query II rowsort label-1206
SELECT ( - - 53 ), COUNT ( * ) + - - MIN ( + 17 ) + 14 AS col2
----
53
32

query I rowsort
SELECT DISTINCT - 84 * - 70 col2
----
5880

query I rowsort
SELECT ALL 67 * - - 67 + + 90 + ( + 40 )
----
4619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1209
SELECT + - CAST( NULL AS SIGNED ) * - - MIN( - 8 ) - - MAX( - ( - 88 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT + - CAST ( NULL AS INTEGER ) * - - MIN ( - 8 ) - - MAX ( - ( - 88 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 45, - 63 / + - 53 ) * 7
----
315

query I rowsort
SELECT - - 6 + - 39 + + + 68
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1212
SELECT DISTINCT - ( + SUM( + - 43 ) ) * 76 - - + 2 + + 1 DIV SUM( ALL + + 31 ) DIV - + 17 * - 69 + - 24 * + + 52 * - COUNT( * )
----
4518

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT - ( + SUM ( + - 43 ) ) * 76 - - + 2 + + 1 / SUM ( ALL + + 31 ) / - + 17 * - 69 + - 24 * + + 52 * - COUNT ( * )
----
4518

query I rowsort
SELECT ALL + NULLIF ( 44, 34 ) AS col0
----
44

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

query I rowsort
SELECT - + 45 * - 38 - - 86 AS col0
----
1796

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT - - 54 * 10 * - COUNT( DISTINCT 35 ) * + 0 * + 53 * + ( - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-1216
SELECT - - 54 * 10 * - COUNT ( DISTINCT 35 ) * + 0 * + 53 * + ( - 82 )
----
0

query I rowsort
SELECT - 90 + + 23
----
-67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1219
SELECT DISTINCT - CASE + CAST( NULL AS SIGNED ) WHEN - 87 THEN 40 WHEN - 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - CASE + CAST ( NULL AS INTEGER ) WHEN - 87 THEN 40 WHEN - 67 THEN NULL END
----
NULL

query I rowsort
SELECT - + 29 + 58 col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1221
SELECT ALL 9 * - COUNT( * ) + CAST( NULL AS SIGNED ) / - 91 col2, + 3 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1221
SELECT ALL 9 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) / - 91 col2, + 3 AS col0
----
NULL
3

query I rowsort
SELECT - ( - NULLIF ( - + 89, - 60 - + 91 ) ) * 10
----
-890

query I rowsort
SELECT ALL + 27 * 87 AS col0
----
2349

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + 38 + + + SUM( 45 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-1224
SELECT + 38 + + + SUM ( 45 ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query II rowsort label-1225
SELECT - 50 DIV + - 83 * - 63 AS col1, + ( + ( - - 20 ) )
----
0
20

skipif mysql # not compatible
query II rowsort label-1225
SELECT - 50 / + - 83 * - 63 AS col1, + ( + ( - - 20 ) )
----
0
20

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

query I rowsort
SELECT - 68 + 38
----
-30

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

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL CAST ( NULL AS REAL ) + + + 71 col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1230
SELECT + 20 + 15 - + CASE ( - 46 ) WHEN 40 THEN - CASE + - NULLIF ( + ( 75 ), + + 89 ) WHEN + - 6 + 16 THEN NULL WHEN + 32 THEN + + 10 * + + 67 * 4 END + + 11 WHEN - CAST( NULL AS SIGNED ) / - CASE - 70 WHEN + 23 + + 62 THEN NULL ELSE ( - + 99 ) END + - ( - MIN( ALL - - 25 ) ) * 97 + - + 68 THEN - 31 + + 80 ELSE NULL END + + + ( + - 32 ) / ( - 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT + 20 + 15 - + CASE ( - 46 ) WHEN 40 THEN - CASE + - NULLIF ( + ( 75 ), + + 89 ) WHEN + - 6 + 16 THEN NULL WHEN + 32 THEN + + 10 * + + 67 * 4 END + + 11 WHEN - CAST ( NULL AS INTEGER ) / - CASE - 70 WHEN + 23 + + 62 THEN NULL ELSE ( - + 99 ) END + - ( - MIN ( ALL - - 25 ) ) * 97 + - + 68 THEN - 31 + + 80 ELSE NULL END + + + ( + - 32 ) / ( - 75 ) AS col0
----
NULL

query I rowsort
SELECT ALL 2 + + 96 AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1232
SELECT + 14 + CAST( 18 AS SIGNED ) * - + 84 * + 31 * - 74 * - ( + 31 ), + 49 col2
----
-107524354
49

skipif mysql # not compatible
query II rowsort label-1232
SELECT + 14 + CAST ( 18 AS INTEGER ) * - + 84 * + 31 * - 74 * - ( + 31 ), + 49 col2
----
-107524354
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL 84 + - SUM( - 77 ) + - 81
----
80

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL 84 + - SUM ( - 77 ) + - 81
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT + 60 * + 1 * - 84 * - COUNT( 0 ) * - MAX( 99 )
----
-498960

skipif mysql # not compatible
query I rowsort label-1234
SELECT + 60 * + 1 * - 84 * - COUNT ( 0 ) * - MAX ( 99 )
----
-498960

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT + 66 + 74 + - 88 * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-1235
SELECT + 66 + 74 + - 88 * + COUNT ( * )
----
52

query I rowsort
SELECT ALL 24 * + - 55
----
-1320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT ALL MIN( ALL + ( + 20 ) ) * + 36 + - 16 AS col2
----
704

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL MIN ( ALL + ( + 20 ) ) * + 36 + - 16 AS col2
----
704

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

query II rowsort
SELECT + 47, 16 AS col1
----
47
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT + COUNT( DISTINCT + 53 ) + + + 21 col2
----
22

skipif mysql # not compatible
query I rowsort label-1241
SELECT + COUNT ( DISTINCT + 53 ) + + + 21 col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT CAST( - MAX( - 99 ) AS SIGNED ) * 41 - - ( + - 46 ) * + 70 col2
----
839

skipif mysql # not compatible
query I rowsort label-1242
SELECT CAST ( - MAX ( - 99 ) AS INTEGER ) * 41 - - ( + - 46 ) * + 70 col2
----
839

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT DISTINCT - 72 DIV 34 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT - 72 / 34 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1244
SELECT - CAST( - + 68 AS SIGNED ) DIV + COUNT( DISTINCT 77 )
----
68

skipif mysql # not compatible
query I rowsort label-1244
SELECT - CAST ( - + 68 AS INTEGER ) / + COUNT ( DISTINCT 77 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT - 36 + - - MIN( + 82 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-1245
SELECT - 36 + - - MIN ( + 82 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT ALL - + MIN( - 66 ) * + + MAX( ALL 71 ) col2
----
4686

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL - + MIN ( - 66 ) * + + MAX ( ALL 71 ) col2
----
4686

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1249
SELECT + 63 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-1249
SELECT + 63 / + 82
----
0

query II rowsort
SELECT ALL - + 2 AS col2, - 85 AS col1
----
-2
-85

query I rowsort
SELECT - ( - - 45 ) * 23 - + 8 + 11 + 4 AS col0
----
-1028

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT COUNT( * ) + + 8 + + 72 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1252
SELECT COUNT ( * ) + + 8 + + 72 AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1253
SELECT - 32 AS col0, + COUNT( * ) * - SUM( ALL 91 ) * 77
----
-32
-7007

skipif mysql # not compatible
query II rowsort label-1253
SELECT - 32 AS col0, + COUNT ( * ) * - SUM ( ALL 91 ) * 77
----
-32
-7007

query I rowsort
SELECT 22 * - ( 63 )
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT 25 - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-1255
SELECT 25 - COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-1256
SELECT - 86 AS col0, - 17 * - 95 * - COUNT( * )
----
-86
-1615

skipif mysql # not compatible
query II rowsort label-1256
SELECT - 86 AS col0, - 17 * - 95 * - COUNT ( * )
----
-86
-1615

query I rowsort
SELECT DISTINCT - COALESCE ( 15, + - 32 + - ( + 55 ) ) + - - ( + + 39 )
----
24

query I rowsort
SELECT ALL - 1 * 39 col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1259
SELECT 34, - CAST( + COUNT( * ) AS SIGNED ) * + 17 + - 45 AS col2
----
34
-62

skipif mysql # not compatible
query II rowsort label-1259
SELECT 34, - CAST ( + COUNT ( * ) AS INTEGER ) * + 17 + - 45 AS col2
----
34
-62

query I rowsort
SELECT ALL - 28 + - - 61
----
33

query II rowsort
SELECT - 97 AS col1, + 68
----
-97
68

query I rowsort
SELECT ALL 84 + - 52 AS col2
----
32

query I rowsort
SELECT 60 * 39 AS col0
----
2340

query I rowsort
SELECT 38 * + + 52
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL - 29 + CASE + + SUM( DISTINCT + + 35 ) WHEN 48 * + 41 * + 81 * 76 THEN NULL WHEN - 42 * - 45 * + + 7 THEN - 46 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - 29 + CASE + + SUM ( DISTINCT + + 35 ) WHEN 48 * + 41 * + 81 * 76 THEN NULL WHEN - 42 * - 45 * + + 7 THEN - 46 END
----
NULL

query II rowsort
SELECT 69, + 21 AS col1
----
69
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1267
SELECT 57 DIV - 6 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1267
SELECT 57 / - 6 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT ALL 18 - - COUNT( * ) * + 32 + - 80 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL 18 - - COUNT ( * ) * + 32 + - 80 AS col2
----
-30

query I rowsort
SELECT DISTINCT 57 * - 63
----
-3591

query II rowsort
SELECT + + 62 AS col1, + NULLIF ( + 18, - - 33 * COALESCE ( - 58, - 66, - 3 + + 85 * + 5 ) + - + 15 - - + 40 / - - ( - 46 ) * - 9 ) AS col2
----
62
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1271
SELECT + COUNT( * ) * COALESCE ( + 43, - 23 ) * + 18 * - 45 + 40 + ( + + CAST( + - 96 AS SIGNED ) ) - - + 95 + - 29 + - 73 + + 82 * - + 36 + + - 43 AS col0
----
-37888

skipif mysql # not compatible
query I rowsort label-1271
SELECT + COUNT ( * ) * COALESCE ( + 43, - 23 ) * + 18 * - 45 + 40 + ( + + CAST ( + - 96 AS INTEGER ) ) - - + 95 + - 29 + - 73 + + 82 * - + 36 + + - 43 AS col0
----
-37888

query I rowsort
SELECT - 67 * - 48 * + 24
----
77184

query II rowsort
SELECT + 15, + 41 - + 98 AS col2
----
15
-57

query II rowsort
SELECT 46, 31 * + - 85 AS col1
----
46
-2635

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT + MIN( 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1276
SELECT + MIN ( 82 ) AS col2
----
82

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

query I rowsort
SELECT + 34 * - + 23 AS col0
----
-782

query I rowsort
SELECT 3 + + + 11
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1280
SELECT DISTINCT COUNT( * ) * 39 DIV COUNT( * ) DIV + COUNT( * ), 84 + - 8 DIV - 69 + - CASE 41 WHEN SUM( DISTINCT 35 ) - - 11 THEN NULL ELSE + 58 * - ( - - 24 ) + 7 + - - 92 * + + 98 - - - 22 END AS col0
----
39
-7525

skipif mysql # not compatible
query II rowsort label-1280
SELECT DISTINCT COUNT ( * ) * 39 / COUNT ( * ) / + COUNT ( * ), 84 + - 8 / - 69 + - CASE 41 WHEN SUM ( DISTINCT 35 ) - - 11 THEN NULL ELSE + 58 * - ( - - 24 ) + 7 + - - 92 * + + 98 - - - 22 END AS col0
----
39
-7525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1281
SELECT ALL - - CAST( NULL AS SIGNED ) + + 93 * - NULLIF ( - 96, - 57 * - 94 + + + CAST( NULL AS SIGNED ) + 25 + - + COUNT( * ) ) * CASE + COALESCE ( + 64, - COALESCE ( + 54, 0 ) * - 46 * - - CAST( NULL AS SIGNED ) * + - 27, - 61 ) WHEN + 9 THEN + + COUNT( * ) ELSE - COUNT( ALL 67 ) * + + NULLIF ( + ( + 88 ), + 32 / COUNT( * ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 93 * - NULLIF ( - 96, - 57 * - 94 + + + CAST ( NULL AS INTEGER ) + 25 + - + COUNT ( * ) ) * CASE + COALESCE ( + 64, - COALESCE ( + 54, 0 ) * - 46 * - - CAST ( NULL AS INTEGER ) * + - 27, - 61 ) WHEN + 9 THEN + + COUNT ( * ) ELSE - COUNT ( ALL 67 ) * + + NULLIF ( + ( + 88 ), + 32 / COUNT ( * ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT ALL + COUNT( * ) + + + 36 * + 11 AS col2
----
397

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL + COUNT ( * ) + + + 36 * + 11 AS col2
----
397

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

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

query II rowsort
SELECT - AVG ( + CASE 12 WHEN + 16 THEN - + 43 * + - 70 WHEN + + 83 THEN NULL ELSE NULL END ) * 6 + - 59 AS col2, + 10 * 89 AS col0
----
NULL
890

query II rowsort
SELECT 20 AS col1, 44
----
20
44

query II rowsort
SELECT + + 57 AS col1, + 73 + 30 * + + 16 * 85
----
57
40873

query I rowsort
SELECT ALL 53 + + + ( 81 )
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1288
SELECT ALL 57 + + 74 - + - 14 * - COALESCE ( COUNT( * ), SUM( ALL + 54 ) + 87, - + 41 * + 10 + COUNT( - 79 ) * - - 58 DIV + 55 ) * - + 90 AS col1
----
1391

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL 57 + + 74 - + - 14 * - COALESCE ( COUNT ( * ), SUM ( ALL + 54 ) + 87, - + 41 * + 10 + COUNT ( - 79 ) * - - 58 / + 55 ) * - + 90 AS col1
----
1391

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1289
SELECT - 55, 7 + + COUNT( * ) - - + 15 DIV - + 11 AS col2
----
-55
7

skipif mysql # not compatible
query II rowsort label-1289
SELECT - 55, 7 + + COUNT ( * ) - - + 15 / - + 11 AS col2
----
-55
7

query I rowsort
SELECT ALL 26 + 3 * + 33 * + 92 * 80 AS col0
----
728666

query I rowsort
SELECT ALL + 69 * + + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1292
SELECT DISTINCT - 14 * 51 * ( SUM( DISTINCT 69 ) ) AS col0
----
-49266

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT - 14 * 51 * ( SUM ( DISTINCT 69 ) ) AS col0
----
-49266

query I rowsort
SELECT ALL + 60 + - 53 + - 75 AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1294
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COALESCE ( - + 71, - ( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) * COALESCE ( + 40, + COUNT( * ) + - COUNT( DISTINCT 95 ) ), 30 * + 59 / 90 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COALESCE ( - + 71, - ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * COALESCE ( + 40, + COUNT ( * ) + - COUNT ( DISTINCT 95 ) ), 30 * + 59 / 90 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1295
SELECT 57 * + CASE 79 WHEN + 34 + - MIN( ALL + - 33 ) + COUNT( * ) + + 45 * - 68 THEN NULL WHEN - 99 * - 60 * - - CASE + - NULLIF ( 27, + 91 * 17 * - 85 * - 41 ) WHEN - + 63 * + 85 / + + COUNT( * ) THEN 40 WHEN - - 81 THEN NULL WHEN - - 6 THEN + 27 ELSE NULL END THEN 15 END * + - ( 42 ) * - 64 + 87 AS col0, 34 + COALESCE ( 3, 57 ) col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-1295
SELECT 57 * + CASE 79 WHEN + 34 + - MIN ( ALL + - 33 ) + COUNT ( * ) + + 45 * - 68 THEN NULL WHEN - 99 * - 60 * - - CASE + - NULLIF ( 27, + 91 * 17 * - 85 * - 41 ) WHEN - + 63 * + 85 / + + COUNT ( * ) THEN 40 WHEN - - 81 THEN NULL WHEN - - 6 THEN + 27 ELSE NULL END THEN 15 END * + - ( 42 ) * - 64 + 87 AS col0, 34 + COALESCE ( 3, 57 ) col0
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT 47 + 61 * COUNT( * ) + + 31 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-1296
SELECT 47 + 61 * COUNT ( * ) + + 31 AS col1
----
139

query I rowsort
SELECT 57 + - 20 + 58 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT ALL MAX( - - 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL MAX ( - - 70 ) AS col1
----
70

query I rowsort
SELECT 66 + + - 66 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( - 51, + 77 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-1301
SELECT ALL NULLIF ( + 25, - 62 * - ( - 88 ) + - COUNT( * ) + - 43 + - NULLIF ( 26, - - 36 * - 9 ) / + 61 ) AS col0, - 48
----
25
-48

skipif mysql # not compatible
query II rowsort label-1301
SELECT ALL NULLIF ( + 25, - 62 * - ( - 88 ) + - COUNT ( * ) + - 43 + - NULLIF ( 26, - - 36 * - 9 ) / + 61 ) AS col0, - 48
----
25
-48

query II rowsort
SELECT - 1 + - - 52, - 99 AS col1
----
51
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT - ( 43 ) * 22 * 69 * - ( - 20 ) + + SUM( - 78 ) AS col1
----
-1305558

skipif mysql # not compatible
query I rowsort label-1303
SELECT - ( 43 ) * 22 * 69 * - ( - 20 ) + + SUM ( - 78 ) AS col1
----
-1305558

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT ALL MAX( + 78 ) * + 66
----
5148

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL MAX ( + 78 ) * + 66
----
5148

query I rowsort
SELECT - ( - 9 ) + - 32 AS col2
----
-23

query I rowsort
SELECT DISTINCT + - 58 * + - 18 * - 45 * + + ( 33 ) AS col1
----
-1550340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1307
SELECT - 73 * - ( - CAST( COUNT( * ) AS SIGNED ) ) * COUNT( * ) * + 67 * + 70
----
-342370

skipif mysql # not compatible
query I rowsort label-1307
SELECT - 73 * - ( - CAST ( COUNT ( * ) AS INTEGER ) ) * COUNT ( * ) * + 67 * + 70
----
-342370

query I rowsort
SELECT ALL + 72 * - 37
----
-2664

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

query I rowsort
SELECT DISTINCT + - 74 AS col1
----
-74

query I rowsort
SELECT ALL + CASE - ( 39 ) WHEN 68 / - + 2 THEN + ( - ( + 81 ) ) * - 70 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT DISTINCT + COALESCE ( - - COUNT( * ), 44 * - 73 * 50 + - 59 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT + COALESCE ( - - COUNT ( * ), 44 * - 73 * 50 + - 59 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT + - ( - - MIN( 8 ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1313
SELECT + - ( - - MIN ( 8 ) ) AS col1
----
-8

query I rowsort
SELECT DISTINCT + 31 col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1315
SELECT ALL + + 62 * - 22 + - 99 + + + 33 DIV - 47 + 12 AS col1
----
-1451

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL + + 62 * - 22 + - 99 + + + 33 / - 47 + 12 AS col1
----
-1451

onlyif mysql # aggregate syntax: 
query II rowsort label-1316
SELECT + COUNT( * ) + + - ( 19 ), - 92 AS col2
----
-18
-92

skipif mysql # not compatible
query II rowsort label-1316
SELECT + COUNT ( * ) + + - ( 19 ), - 92 AS col2
----
-18
-92

query I rowsort
SELECT - 89 * - 90
----
8010

onlyif mysql # aggregate syntax: 
query II rowsort label-1318
SELECT - + 53 * - MIN( DISTINCT + + 83 ) + + COALESCE ( - 1, 87 + - 43 ) + - 74 AS col2, 19
----
4324
19

skipif mysql # not compatible
query II rowsort label-1318
SELECT - + 53 * - MIN ( DISTINCT + + 83 ) + + COALESCE ( - 1, 87 + - 43 ) + - 74 AS col2, 19
----
4324
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT SUM( - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-1319
SELECT SUM ( - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL - MIN( DISTINCT ( + + ( - 63 ) ) ) * - 37 + + COUNT( * ) + COUNT( * ) + + 25 AS col2
----
-2304

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL - MIN ( DISTINCT ( + + ( - 63 ) ) ) * - 37 + + COUNT ( * ) + COUNT ( * ) + + 25 AS col2
----
-2304

onlyif mysql # aggregate syntax: 
query II rowsort label-1321
SELECT + + 15 * 2 * - + COUNT( * ), 16 AS col1
----
-30
16

skipif mysql # not compatible
query II rowsort label-1321
SELECT + + 15 * 2 * - + COUNT ( * ), 16 AS col1
----
-30
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT + 21 + + 92 * + MIN( 6 ) + - 39 * + 29
----
-558

skipif mysql # not compatible
query I rowsort label-1322
SELECT + 21 + + 92 * + MIN ( 6 ) + - 39 * + 29
----
-558

query II rowsort
SELECT ALL - 95 * - 67 + - 55 AS col2, 44 * - 9
----
6310
-396

query I rowsort
SELECT + NULLIF ( + 52, - + 61 * - 77 ) AS col1
----
52

query I rowsort
SELECT ALL 27 * - + 3 + 8
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ALL CASE COUNT( * ) WHEN + 35 / + COALESCE ( + ( + 2 ), - - 14 + - 88 ) + - 9 * - 39 THEN - 28 * COUNT( * ) * + NULLIF ( + 1, + 72 ) WHEN COUNT( * ) THEN + - 5 + + 37 END * 90 + - 22 AS col1
----
2858

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL CASE COUNT ( * ) WHEN + 35 / + COALESCE ( + ( + 2 ), - - 14 + - 88 ) + - 9 * - 39 THEN - 28 * COUNT ( * ) * + NULLIF ( + 1, + 72 ) WHEN COUNT ( * ) THEN + - 5 + + 37 END * 90 + - 22 AS col1
----
2858

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT + CASE + 29 WHEN - 43 * + MIN( - 96 ) THEN + + ( - + 68 ) - + - MAX( - 37 ) ELSE + COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1327
SELECT + CASE + 29 WHEN - 43 * + MIN ( - 96 ) THEN + + ( - + 68 ) - + - MAX ( - 37 ) ELSE + COUNT ( * ) END AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1328
SELECT ALL CAST( + 48 AS SIGNED ) * 7 + + 63 - + - 20 AS col1
----
419

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL CAST ( + 48 AS INTEGER ) * 7 + + 63 - + - 20 AS col1
----
419

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT MIN( 52 )
----
52

skipif mysql # not compatible
query I rowsort label-1330
SELECT MIN ( 52 )
----
52

query I rowsort
SELECT ALL 73 - - - 74 AS col1
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1333
SELECT - CAST( NULL AS SIGNED ) + + NULLIF ( 78, 29 / - ( - 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT - CAST ( NULL AS INTEGER ) + + NULLIF ( 78, 29 / - ( - 89 ) )
----
NULL

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

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

query II rowsort
SELECT - 51 AS col1, + 25 * - - 85 AS col1
----
-51
2125

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

query I rowsort
SELECT - NULLIF ( 87, + 99 ) + 22 AS col2
----
-65

query I rowsort
SELECT ALL - 38 * - + 69 AS col1
----
2622

query I rowsort
SELECT ALL 72 - + + 10 AS col2
----
62

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

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

query I rowsort
SELECT ALL 65 * + 95
----
6175

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

query I rowsort
SELECT - ( 81 ) * + - 56
----
4536

query I rowsort
SELECT ALL CASE + 71 WHEN - 22 * + + 25 THEN + 43 / 1 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT - SUM( ALL + 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-1345
SELECT - SUM ( ALL + 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1346
SELECT - CASE - 98 WHEN - MAX( 86 ) + 33 + + COUNT( * ) + 28 THEN - 63 * + - 21 * 73 - + 27 ELSE - - 93 + - 9 END, + 96 AS col0
----
-84
96

skipif mysql # not compatible
query II rowsort label-1346
SELECT - CASE - 98 WHEN - MAX ( 86 ) + 33 + + COUNT ( * ) + 28 THEN - 63 * + - 21 * 73 - + 27 ELSE - - 93 + - 9 END, + 96 AS col0
----
-84
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT COUNT( DISTINCT 97 )
----
1

skipif mysql # not compatible
query I rowsort label-1348
SELECT COUNT ( DISTINCT 97 )
----
1

query I rowsort
SELECT ALL 63 + - NULLIF ( + 60, 83 ) + - 86
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1350
SELECT - - COUNT( * ) * + MAX( DISTINCT 49 ) * 60 + - 18 - - 62 * + + 35 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT - - COUNT ( * ) * + MAX ( DISTINCT 49 ) * 60 + - 18 - - 62 * + + 35 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT ALL + + 96 DIV - MIN( ALL + - 88 ) + - 19 * + 47 AS col0
----
-892

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL + + 96 / - MIN ( ALL + - 88 ) + - 19 * + 47 AS col0
----
-892

query I rowsort
SELECT - 5 * + - 41 + + 44 AS col1
----
249

query I rowsort
SELECT - + 69 + - 32 AS col1
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1354
SELECT ALL + + 46 DIV 88 + SUM( DISTINCT + 56 ) + - NULLIF ( - + COUNT( * ), - + CASE + + 71 WHEN - CAST( NULL AS SIGNED ) * + 87 * - + 25 + ( + COUNT( * ) ) - - 51 THEN + 98 ELSE - + 67 * 43 - SUM( + ( + 89 ) ) + ( 61 ) DIV ( AVG ( - 17 ) ) END * + COUNT( * ) + - 39 + + 74 + + 25 ) * - - 20 DIV - 58 * - + 10
----
56

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL + + 46 / 88 + SUM ( DISTINCT + 56 ) + - NULLIF ( - + COUNT ( * ), - + CASE + + 71 WHEN - CAST ( NULL AS INTEGER ) * + 87 * - + 25 + ( + COUNT ( * ) ) - - 51 THEN + 98 ELSE - + 67 * 43 - SUM ( + ( + 89 ) ) + ( 61 ) / ( AVG ( - 17 ) ) END * + COUNT ( * ) + - 39 + + 74 + + 25 ) * - - 20 / - 58 * - + 10
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL COUNT( * ) * COUNT( * ) - + - COUNT( * ) + + - 94 * + 75 * 95 AS col1
----
-669748

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL COUNT ( * ) * COUNT ( * ) - + - COUNT ( * ) + + - 94 * + 75 * 95 AS col1
----
-669748

query I rowsort
SELECT + 74 * - 46
----
-3404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1357
SELECT DISTINCT + CAST( 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT + CAST ( 71 AS INTEGER )
----
71

query I rowsort
SELECT + ( NULLIF ( + + 80, + 62 ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT + 26 + - CASE + 61 WHEN + COUNT( * ) + - 62 - + COUNT( * ) THEN - + 37 / + 99 END * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT + 26 + - CASE + 61 WHEN + COUNT ( * ) + - 62 - + COUNT ( * ) THEN - + 37 / + 99 END * + 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1360
SELECT NULLIF ( ( - CASE + - 53 WHEN + CASE - CAST( NULL AS SIGNED ) WHEN 75 THEN - ( + + 77 ) * COUNT( * ) * 56 ELSE NULL END THEN NULL WHEN + + 21 THEN 31 * - 27 DIV + 29 ELSE + 11 END ), + 77 )
----
-11

skipif mysql # not compatible
query I rowsort label-1360
SELECT NULLIF ( ( - CASE + - 53 WHEN + CASE - CAST ( NULL AS INTEGER ) WHEN 75 THEN - ( + + 77 ) * COUNT ( * ) * 56 ELSE NULL END THEN NULL WHEN + + 21 THEN 31 * - 27 / + 29 ELSE + 11 END ), + 77 )
----
-11

query II rowsort
SELECT + ( + + 51 ) col2, - 46
----
51
-46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1362
SELECT - NULLIF ( ( + + COALESCE ( + MIN( ALL 44 ), - 39, - 82 + + - 34 + + - 39 ) ), 4 * - NULLIF ( CAST( + - 99 AS DECIMAL ), + + ( ( + 12 ) ) ) ) * ( + ( + CASE 53 WHEN 17 THEN 35 ELSE NULL END ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1362
SELECT - NULLIF ( ( + + COALESCE ( + MIN ( ALL 44 ), - 39, - 82 + + - 34 + + - 39 ) ), 4 * - NULLIF ( CAST ( + - 99 AS REAL ), + + ( ( + 12 ) ) ) ) * ( + ( + CASE 53 WHEN 17 THEN 35 ELSE NULL END ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1363
SELECT + CAST( NULL AS SIGNED ) * + NULLIF ( + + 65, + 14 + + CASE - 3 WHEN + COUNT( * ) * - 33 THEN - CASE - - AVG ( DISTINCT - - 22 ) WHEN - COUNT( * ) THEN - ( 99 ) ELSE NULL END * - 39 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1363
SELECT + CAST ( NULL AS INTEGER ) * + NULLIF ( + + 65, + 14 + + CASE - 3 WHEN + COUNT ( * ) * - 33 THEN - CASE - - AVG ( DISTINCT - - 22 ) WHEN - COUNT ( * ) THEN - ( 99 ) ELSE NULL END * - 39 END )
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1366
SELECT 72 + 33 + - MIN( ALL - - 1 ) + - SUM( 1 ) * - - CAST( + - 42 AS SIGNED ) * - 33 * + 4 * - + 6 * + - 99 + CASE 28 WHEN - COUNT( * ) * + 46 THEN - - COUNT( * ) + + + 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1366
SELECT 72 + 33 + - MIN ( ALL - - 1 ) + - SUM ( 1 ) * - - CAST ( + - 42 AS INTEGER ) * - 33 * + 4 * - + 6 * + - 99 + CASE 28 WHEN - COUNT ( * ) * + 46 THEN - - COUNT ( * ) + + + 42 END
----
NULL

query I rowsort
SELECT CASE - 49 WHEN - 93 THEN - 55 * + 9 ELSE NULL END + - + 59
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1369
SELECT CAST( NULL AS SIGNED ) / 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT CAST ( NULL AS INTEGER ) / 49 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1370
SELECT - 64 + + 52, - 61 * - CAST( + ( - COUNT( * ) ) AS SIGNED ) DIV + 71 * + + ( - 70 ) DIV - + ( ( - - 26 ) ) + 65 AS col2
----
-12
65

skipif mysql # not compatible
query II rowsort label-1370
SELECT - 64 + + 52, - 61 * - CAST ( + ( - COUNT ( * ) ) AS INTEGER ) / + 71 * + + ( - 70 ) / - + ( ( - - 26 ) ) + 65 AS col2
----
-12
65

query I rowsort
SELECT ALL 33 + - - 93
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT 63 + 24 + + + 37 * + + ( ( - SUM( - 4 ) ) ) * 84 AS col2
----
12519

skipif mysql # not compatible
query I rowsort label-1372
SELECT 63 + 24 + + + 37 * + + ( ( - SUM ( - 4 ) ) ) * 84 AS col2
----
12519

onlyif mysql # aggregate syntax: 
query II rowsort label-1373
SELECT ALL + + 28 + + - COUNT( * ) - - ( + + COUNT( * ) ) AS col0, 16
----
28
16

skipif mysql # not compatible
query II rowsort label-1373
SELECT ALL + + 28 + + - COUNT ( * ) - - ( + + COUNT ( * ) ) AS col0, 16
----
28
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT DISTINCT NULLIF ( 70, + COUNT( * ) * - + 34 ) col1
----
70

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT NULLIF ( 70, + COUNT ( * ) * - + 34 ) col1
----
70

query II rowsort
SELECT DISTINCT + NULLIF ( 52, 24 + 95 + + 65 - ( 10 ) * 21 / - - 30 ) AS col0, 25
----
52
25

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

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

query I rowsort
SELECT 19 * - 15
----
-285

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1378
SELECT + 69 DIV - 96 - 27 + + - COUNT( * ) + + 53 + ( 94 ) * COUNT( * ) * + 97 * - + 40
----
-364695

skipif mysql # not compatible
query I rowsort label-1378
SELECT + 69 / - 96 - 27 + + - COUNT ( * ) + + 53 + ( 94 ) * COUNT ( * ) * + 97 * - + 40
----
-364695

query I rowsort
SELECT - 80 * - ( - 38 )
----
-3040

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1380
SELECT + 54 + - 83 / + 39 + + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT + 54 + - 83 / + 39 + + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1381
SELECT ALL SUM( DISTINCT + 48 ) + + - CAST( - + 28 AS SIGNED ) + + 73 AS col0
----
149

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL SUM ( DISTINCT + 48 ) + + - CAST ( - + 28 AS INTEGER ) + + 73 AS col0
----
149

query II rowsort
SELECT DISTINCT + 46 - + 44, 30 - ( - + 24 ) AS col2
----
2
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1383
SELECT ALL - 87 - - 86 * + ( - + 28 ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL - 87 - - 86 * + ( - + 28 ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1384
SELECT COALESCE ( - 72, + + 5 DIV + - 7 + + 47 - + + COUNT( ALL - 34 ) * - 23 * - + COUNT( * ) * 89 + - - COALESCE ( - + 78, - 17, + - 11 ) + 58 DIV - - 41 + - NULLIF ( 85, + COALESCE ( - + 92, - 51 DIV - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) ) + 25 ) * - - 1, + + 0 * + - 15 + + 52 )
----
-72

skipif mysql # not compatible
query I rowsort label-1384
SELECT COALESCE ( - 72, + + 5 / + - 7 + + 47 - + + COUNT ( ALL - 34 ) * - 23 * - + COUNT ( * ) * 89 + - - COALESCE ( - + 78, - 17, + - 11 ) + 58 / - - 41 + - NULLIF ( 85, + COALESCE ( - + 92, - 51 / - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) ) + 25 ) * - - 1, + + 0 * + - 15 + + 52 )
----
-72

query I rowsort
SELECT DISTINCT - 56 * - 27
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT 51 - COUNT( * ) + - COALESCE ( - + ( - COUNT( * ) ), + 20 ) col1
----
49

skipif mysql # not compatible
query I rowsort label-1386
SELECT 51 - COUNT ( * ) + - COALESCE ( - + ( - COUNT ( * ) ), + 20 ) col1
----
49

query I rowsort
SELECT 86 * + 19
----
1634

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1388
SELECT 2 * - CAST( NULL AS SIGNED ) + + CASE 85 WHEN 47 THEN 98 / + + 85 * - - 18 END AS col0, 4 AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-1388
SELECT 2 * - CAST ( NULL AS INTEGER ) + + CASE 85 WHEN 47 THEN 98 / + + 85 * - - 18 END AS col0, 4 AS col0
----
NULL
4

query I rowsort
SELECT 85 * - 0 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT DISTINCT + 21 DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT + 21 / 53
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1391
SELECT COUNT( * ) + - ( COUNT( * ) ) AS col2, + 23
----
0
23

skipif mysql # not compatible
query II rowsort label-1391
SELECT COUNT ( * ) + - ( COUNT ( * ) ) AS col2, + 23
----
0
23

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

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

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

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

query II rowsort
SELECT - 72 AS col1, 71 * - 26 - - COALESCE ( + 4, - - 18 )
----
-72
-1842

query I rowsort
SELECT 1 * + 31 AS col2
----
31

query I rowsort
SELECT ALL 6 + 93 AS col2
----
99

query I rowsort
SELECT DISTINCT - 31 * + 82 AS col0
----
-2542

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL + SUM( ALL 73 ) + 10 * SUM( 67 + + 25 )
----
993

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL + SUM ( ALL 73 ) + 10 * SUM ( 67 + + 25 )
----
993

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL SUM( ALL 99 ) + 4
----
103

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL SUM ( ALL 99 ) + 4
----
103

query I rowsort
SELECT ALL 70 + + 96
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1401
SELECT COALESCE ( - CAST( - COALESCE ( + CAST( NULL AS SIGNED ), + 48 ) AS SIGNED ), 95 ) - 42
----
6

skipif mysql # not compatible
query I rowsort label-1401
SELECT COALESCE ( - CAST ( - COALESCE ( + CAST ( NULL AS INTEGER ), + 48 ) AS INTEGER ), 95 ) - 42
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT COUNT( * ) - 64 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-1402
SELECT COUNT ( * ) - 64 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT CASE 57 WHEN 42 THEN - MIN( 19 ) * + COUNT( * ) WHEN - 48 + - 25 THEN 75 + + 12 END * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-1403
SELECT CASE 57 WHEN 42 THEN - MIN ( 19 ) * + COUNT ( * ) WHEN - 48 + - 25 THEN 75 + + 12 END * - 58
----
NULL

query I rowsort
SELECT ALL 92 - - 21
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1405
SELECT COALESCE ( 70, 14, CAST( - COUNT( * ) AS SIGNED ) ) * 5 AS col1
----
350

skipif mysql # not compatible
query I rowsort label-1405
SELECT COALESCE ( 70, 14, CAST ( - COUNT ( * ) AS INTEGER ) ) * 5 AS col1
----
350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT DISTINCT COALESCE ( 67, 92, 28 ) / + MIN( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT COALESCE ( 67, 92, 28 ) / + MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT COUNT( * ) * + 36 - - 46 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1407
SELECT COUNT ( * ) * + 36 - - 46 AS col0
----
82

query I rowsort
SELECT NULLIF ( - 39, 3 ) + + 35 * 28 AS col0
----
941

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT + CASE - NULLIF ( 42, 23 ) WHEN + 14 THEN - CASE 79 WHEN - 86 - - 0 THEN - 83 / ( COALESCE ( + 40, SUM( DISTINCT 93 ) ) ) ELSE + 84 / COUNT( * ) END WHEN 95 THEN 40 * - 73 - + 69 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT + CASE - NULLIF ( 42, 23 ) WHEN + 14 THEN - CASE 79 WHEN - 86 - - 0 THEN - 83 / ( COALESCE ( + 40, SUM ( DISTINCT 93 ) ) ) ELSE + 84 / COUNT ( * ) END WHEN 95 THEN 40 * - 73 - + 69 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL ( + 61 ) * - 69
----
-4209

query I rowsort
SELECT 67 * + 80
----
5360

query I rowsort
SELECT 41 * 75 col0
----
3075

query I rowsort
SELECT 76 * 86
----
6536

query I rowsort
SELECT 80 * 3
----
240

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1416
SELECT NULLIF ( COUNT( * ), - 55 + - 72 * + 3 ) DIV 73 + ( + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-1416
SELECT NULLIF ( COUNT ( * ), - 55 + - 72 * + 3 ) / 73 + ( + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL SUM( DISTINCT 77 ) * 6
----
462

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL SUM ( DISTINCT 77 ) * 6
----
462

query I rowsort
SELECT + 8 * 5
----
40

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

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

query I rowsort
SELECT DISTINCT - 25 * 65 col2
----
-1625

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT + 34 * COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT + 34 * COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT - 13 + ( + COUNT( 18 ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1422
SELECT - 13 + ( + COUNT ( 18 ) ) AS col1
----
-12

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1424
SELECT - 30 DIV 20 col1
----
-1

skipif mysql # not compatible
query I rowsort label-1424
SELECT - 30 / 20 col1
----
-1

query I rowsort
SELECT ALL + 8 + - COALESCE ( - 1 - 25, + 85 ) col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT - COALESCE ( COUNT( * ), - 87 ) - ( + 58 )
----
-59

skipif mysql # not compatible
query I rowsort label-1426
SELECT - COALESCE ( COUNT ( * ), - 87 ) - ( + 58 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT + COUNT( * ) * 50 + 94
----
144

skipif mysql # not compatible
query I rowsort label-1427
SELECT + COUNT ( * ) * 50 + 94
----
144

query I rowsort
SELECT ALL + 17 * - 44 AS col2
----
-748

query I rowsort
SELECT ALL ( 64 ) col1
----
64

query I rowsort
SELECT ( - 60 )
----
-60

query I rowsort
SELECT DISTINCT + 95 + + 28 col0
----
123

query I rowsort
SELECT - + ( 48 ) * + 50 AS col2
----
-2400

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

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

query I rowsort
SELECT - 82 - 33 * 25 AS col2
----
-907

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT ALL + MIN( ALL + 83 ) + 35
----
118

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL + MIN ( ALL + 83 ) + 35
----
118

query I rowsort
SELECT - ( + 17 ) * + 41 AS col2
----
-697

query I rowsort
SELECT ALL + COALESCE ( 31, 62 * + 4 ) * - 19 AS col2
----
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT - - 6 + NULLIF ( - 76, - 18 * 97 + - COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-1438
SELECT - - 6 + NULLIF ( - 76, - 18 * 97 + - COUNT ( * ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - + COUNT( * ) + SUM( ALL - 62 )
----
-63

skipif mysql # not compatible
query I rowsort label-1439
SELECT - + COUNT ( * ) + SUM ( ALL - 62 )
----
-63

query I rowsort
SELECT ALL + 21 * + 12 AS col2
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1441
SELECT - - CAST( 16 AS SIGNED ) + - 59
----
-43

skipif mysql # not compatible
query I rowsort label-1441
SELECT - - CAST ( 16 AS INTEGER ) + - 59
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT ALL + + NULLIF ( - MAX( 44 ), + 23 ) * + 32 AS col2
----
-1408

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL + + NULLIF ( - MAX ( 44 ), + 23 ) * + 32 AS col2
----
-1408

query I rowsort
SELECT + 98 + - 43 * + 51
----
-2095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1444
SELECT + 12 + + 3 DIV COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-1444
SELECT + 12 + + 3 / COUNT ( * )
----
15

query I rowsort
SELECT - 55 * 6
----
-330

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT + - COUNT( 83 ) * + 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1447
SELECT + - COUNT ( 83 ) * + 39 AS col2
----
-39

query I rowsort
SELECT DISTINCT - NULLIF ( 60, 35 + 2 ) AS col2
----
-60

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

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

query I rowsort
SELECT ALL 3 * 54 col1
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1451
SELECT + COALESCE ( COUNT( * ), 22, CASE - CASE COUNT( * ) WHEN 0 * - 1 THEN NULL WHEN 44 * + 71 THEN NULL ELSE 9 / - CAST( NULL AS SIGNED ) END WHEN 21 THEN NULL WHEN + 31 / - 44 THEN - 84 + COUNT( * ) END )
----
1

skipif mysql # not compatible
query I rowsort label-1451
SELECT + COALESCE ( COUNT ( * ), 22, CASE - CASE COUNT ( * ) WHEN 0 * - 1 THEN NULL WHEN 44 * + 71 THEN NULL ELSE 9 / - CAST ( NULL AS INTEGER ) END WHEN 21 THEN NULL WHEN + 31 / - 44 THEN - 84 + COUNT ( * ) END )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT DISTINCT COUNT( * ) * + - ( 81 ) col0
----
-81

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT COUNT ( * ) * + - ( 81 ) col0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1453
SELECT DISTINCT COUNT( * ) DIV - 13 * + COUNT( * ) + + 89 DIV + 85 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT COUNT ( * ) / - 13 * + COUNT ( * ) + + 89 / + 85 AS col1
----
1

query I rowsort
SELECT ALL 43 * 36
----
1548

query I rowsort
SELECT + COALESCE ( - 33, - 26, 61 ) col0
----
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT + COALESCE ( - MIN( 83 ), + 28 * + 54 ) col2
----
-83

skipif mysql # not compatible
query I rowsort label-1457
SELECT + COALESCE ( - MIN ( 83 ), + 28 * + 54 ) col2
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1458
SELECT ALL 79 * 65 + + 50 * + CASE + AVG ( 38 ) + ( + 89 ) / - 67 WHEN + COUNT( * ) + COUNT( * ) THEN NULLIF ( SUM( - CAST( NULL AS SIGNED ) ), NULLIF ( CAST( + 82 AS DECIMAL ), 81 ) ) ELSE 66 END
----
8435

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL 79 * 65 + + 50 * + CASE + AVG ( 38 ) + ( + 89 ) / - 67 WHEN + COUNT ( * ) + COUNT ( * ) THEN NULLIF ( SUM ( - CAST ( NULL AS INTEGER ) ), NULLIF ( CAST ( + 82 AS REAL ), 81 ) ) ELSE 66 END
----
8435

query I rowsort
SELECT ALL + 28 * 44 + 11 AS col0
----
1243

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT + COALESCE ( 78, 66 ) + ( NULLIF ( + 50, - COUNT( * ) ) ) * 60 AS col1
----
3078

skipif mysql # not compatible
query I rowsort label-1460
SELECT + COALESCE ( 78, 66 ) + ( NULLIF ( + 50, - COUNT ( * ) ) ) * 60 AS col1
----
3078

onlyif mysql # DIV for integer division: 
query I rowsort label-1461
SELECT DISTINCT - 95 * 75 DIV 53 + - 35 AS col0
----
-169

skipif mysql # not compatible
query I rowsort label-1461
SELECT DISTINCT - 95 * 75 / 53 + - 35 AS col0
----
-169

query I rowsort
SELECT ALL 84 * - + 6 * 73 + 10 AS col2
----
-36782

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1464
SELECT ALL + 95 * - 61 + - 72 DIV + 26
----
-5797

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL + 95 * - 61 + - 72 / + 26
----
-5797

query I rowsort
SELECT - 71 - + - 65 col1
----
-6

query I rowsort
SELECT ALL + + 54 * + + 52 + 28 * - 32 col0
----
1912

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT - - COUNT( * ) + - - 89
----
90

skipif mysql # not compatible
query I rowsort label-1467
SELECT - - COUNT ( * ) + - - 89
----
90

query I rowsort
SELECT - NULLIF ( 85, 81 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - ( - MIN( DISTINCT 46 ) ) col0
----
46

skipif mysql # not compatible
query I rowsort label-1469
SELECT - ( - MIN ( DISTINCT 46 ) ) col0
----
46

query I rowsort
SELECT - 2 + 80 AS col2
----
78

query I rowsort
SELECT - - 72 * + 48 * + 87
----
300672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1472
SELECT ALL - + 25 * - CAST( + COALESCE ( + 72, 90 + - 87 ) AS SIGNED ) * CAST( + 76 AS SIGNED ) + COUNT( * ) DIV 25 - + 58 * - 84 col0
----
141672

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL - + 25 * - CAST ( + COALESCE ( + 72, 90 + - 87 ) AS INTEGER ) * CAST ( + 76 AS INTEGER ) + COUNT ( * ) / 25 - + 58 * - 84 col0
----
141672

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT ALL - + 54 DIV + 69 * + 23
----
0

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL - + 54 / + 69 * + 23
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1475
SELECT ALL - CASE - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN - 27 * + ( 9 ) THEN NULL ELSE - COALESCE ( + 44, CASE + 76 WHEN + 8 / - 89 THEN 84 + 11 WHEN COUNT( DISTINCT + 92 ) + + 1 THEN COUNT( + 15 ) ELSE NULL END + 96 ) + + 6 * + 6 END AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL - CASE - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 27 * + ( 9 ) THEN NULL ELSE - COALESCE ( + 44, CASE + 76 WHEN + 8 / - 89 THEN 84 + 11 WHEN COUNT ( DISTINCT + 92 ) + + 1 THEN COUNT ( + 15 ) ELSE NULL END + 96 ) + + 6 * + 6 END AS col1
----
8

query I rowsort
SELECT - + 45 * + 59 * + 30 AS col0
----
-79650

query I rowsort
SELECT - + 34 - - + 68 AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT - + 28 DIV - 30 - 54 * - 73
----
3942

skipif mysql # not compatible
query I rowsort label-1478
SELECT - + 28 / - 30 - 54 * - 73
----
3942

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT - COALESCE ( + COUNT( * ), CASE - AVG ( + 35 ) WHEN 5 * + 76 THEN 61 END )
----
-1

skipif mysql # not compatible
query I rowsort label-1479
SELECT - COALESCE ( + COUNT ( * ), CASE - AVG ( + 35 ) WHEN 5 * + 76 THEN 61 END )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT SUM( DISTINCT + 22 ) - 4
----
18

skipif mysql # not compatible
query I rowsort label-1480
SELECT SUM ( DISTINCT + 22 ) - 4
----
18

query I rowsort
SELECT ALL - NULLIF ( 25, + 81 * + 31 ) col0
----
-25

query I rowsort
SELECT DISTINCT + - 32 + - + 93 AS col1
----
-125

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

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL 62 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 52 + + 29 AS col2
----
81

query I rowsort
SELECT ALL 55 + - ( + 82 ) + 3
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT NULLIF ( ( COUNT( * ) ), 30 ) * 48 - + 1
----
47

skipif mysql # not compatible
query I rowsort label-1486
SELECT NULLIF ( ( COUNT ( * ) ), 30 ) * 48 - + 1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1487
SELECT ALL - COUNT( * ) AS col1, 49 DIV - COUNT( * ) * COUNT( * ) + 28 AS col0
----
-1
-21

skipif mysql # not compatible
query II rowsort label-1487
SELECT ALL - COUNT ( * ) AS col1, 49 / - COUNT ( * ) * COUNT ( * ) + 28 AS col0
----
-1
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT 60 + + NULLIF ( - COUNT( * ), - 18 * 3 )
----
59

skipif mysql # not compatible
query I rowsort label-1488
SELECT 60 + + NULLIF ( - COUNT ( * ), - 18 * 3 )
----
59

query II rowsort
SELECT 30 AS col2, - 91 AS col2
----
30
-91

query I rowsort
SELECT 25 * + 14 * - 96 + 44 AS col1
----
-33556

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

skipif mysql # not compatible
query I rowsort label-1491
SELECT CAST ( NULL AS INTEGER ) / + 20
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1492
SELECT DISTINCT - COALESCE ( 22, - CASE - 98 WHEN + 94 THEN NULL WHEN ( - COALESCE ( 74, + 76 ) ) + + 4 THEN NULL ELSE - COUNT( 85 ) DIV 10 END - COUNT( * ), 8 * - 92 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - COALESCE ( 22, - CASE - 98 WHEN + 94 THEN NULL WHEN ( - COALESCE ( 74, + 76 ) ) + + 4 THEN NULL ELSE - COUNT ( 85 ) / 10 END - COUNT ( * ), 8 * - 92 ) AS col2
----
-22

query I rowsort
SELECT DISTINCT - 8 + 8 + - 36
----
-36

query II rowsort
SELECT ALL - 65 AS col2, 73
----
-65
73

onlyif mysql # DIV for integer division: 
query II rowsort label-1495
SELECT + 57, + 44 DIV + - 44 AS col2
----
57
-1

skipif mysql # not compatible
query II rowsort label-1495
SELECT + 57, + 44 / + - 44 AS col2
----
57
-1

query I rowsort
SELECT ALL - NULLIF ( + ( - 84 ), 50 ) AS col0
----
84

query I rowsort
SELECT 10 * - 19 AS col0
----
-190

query I rowsort
SELECT ALL 83 * 1 * - 79 col0
----
-6557

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT 90 * 59 * - + MIN( DISTINCT - 89 ) + COUNT( * ) AS col2
----
472591

skipif mysql # not compatible
query I rowsort label-1499
SELECT 90 * 59 * - + MIN ( DISTINCT - 89 ) + COUNT ( * ) AS col2
----
472591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1500
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) ) * - - 99 - + ( - ( - 84 ) ) * - NULLIF ( - 75 * + 19 + - 87 DIV 69, 44 ) AS col1
----
-119784

skipif mysql # not compatible
query I rowsort label-1500
SELECT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - - 99 - + ( - ( - 84 ) ) * - NULLIF ( - 75 * + 19 + - 87 / 69, 44 ) AS col1
----
-119784

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1502
SELECT 92, + CASE + + 8 WHEN - CASE + 62 WHEN - 42 - - 57 THEN COUNT( * ) ELSE 87 END THEN + 10 * - 25 + + 89 WHEN 45 / + ( + 75 ) THEN NULL END / 73 AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-1502
SELECT 92, + CASE + + 8 WHEN - CASE + 62 WHEN - 42 - - 57 THEN COUNT ( * ) ELSE 87 END THEN + 10 * - 25 + + 89 WHEN 45 / + ( + 75 ) THEN NULL END / 73 AS col1
----
92
NULL

query I rowsort
SELECT 40 + - 42
----
-2

query I rowsort
SELECT DISTINCT - - 56 col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-1505
SELECT ALL + 88 AS col1, + 82 * + COUNT( * ) * 77
----
88
6314

skipif mysql # not compatible
query II rowsort label-1505
SELECT ALL + 88 AS col1, + 82 * + COUNT ( * ) * 77
----
88
6314

onlyif mysql # aggregate syntax: 
query II rowsort label-1506
SELECT DISTINCT 42, + COUNT( * ) * + 8 AS col0
----
42
8

skipif mysql # not compatible
query II rowsort label-1506
SELECT DISTINCT 42, + COUNT ( * ) * + 8 AS col0
----
42
8

query II rowsort
SELECT DISTINCT 64 AS col1, 63
----
64
63

query I rowsort
SELECT 9 - - 71
----
80

query I rowsort
SELECT - 71 * - 61 + - 85 AS col0
----
4246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1510
SELECT + MIN( + 95 ) + - CAST( CAST( - 46 AS SIGNED ) AS SIGNED )
----
141

skipif mysql # not compatible
query I rowsort label-1510
SELECT + MIN ( + 95 ) + - CAST ( CAST ( - 46 AS INTEGER ) AS INTEGER )
----
141

query I rowsort
SELECT 88 + - 90 AS col2
----
-2

query I rowsort
SELECT + 37 * 84 * - + ( + 75 )
----
-233100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1513
SELECT + COUNT( * ) * - 81 + + ( + CASE + 10 WHEN + COALESCE ( + 51, ( + 90 ) * 12 - COALESCE ( - COUNT( * ), - COUNT( * ) ) / - 46, 20 / + COUNT( * ) ) * CAST( - 69 AS SIGNED ) THEN + 67 ELSE NULL END ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1513
SELECT + COUNT ( * ) * - 81 + + ( + CASE + 10 WHEN + COALESCE ( + 51, ( + 90 ) * 12 - COALESCE ( - COUNT ( * ), - COUNT ( * ) ) / - 46, 20 / + COUNT ( * ) ) * CAST ( - 69 AS INTEGER ) THEN + 67 ELSE NULL END ) + COUNT ( * )
----
NULL

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

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

query I rowsort
SELECT 78 - 17
----
61

query I rowsort
SELECT DISTINCT - 77 * 21 + + 25 AS col0
----
-1592

query I rowsort
SELECT DISTINCT - 66 + + 29 * - COALESCE ( 11, - 33 + - 80 )
----
-385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1518
SELECT ALL 30 + CAST( - 24 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL 30 + CAST ( - 24 AS INTEGER )
----
6

query I rowsort
SELECT - 74 + - 55 - - - 39
----
-168

query I rowsort
SELECT ALL 43 + - COALESCE ( - 29, - 0 + + 55 ) AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT DISTINCT 32 + - CAST( NULL AS SIGNED ) + - AVG ( ALL 21 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT 32 + - CAST ( NULL AS INTEGER ) + - AVG ( ALL 21 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1522
SELECT ALL + 20 + - - 70 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL + 20 + - - 70 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1523
SELECT 86 + + COUNT( * ) + MAX( DISTINCT - 82 ) - COUNT( * ) * 79 * CAST( NULL AS DECIMAL ) * + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1523
SELECT 86 + + COUNT ( * ) + MAX ( DISTINCT - 82 ) - COUNT ( * ) * 79 * CAST ( NULL AS REAL ) * + 94
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1524
SELECT MAX( DISTINCT CASE + ( 11 ) WHEN 66 THEN NULL ELSE - 46 END ) DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-1524
SELECT MAX ( DISTINCT CASE + ( 11 ) WHEN 66 THEN NULL ELSE - 46 END ) / 85
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1525
SELECT DISTINCT - 75 + - 57 + - - ( + + 14 ) DIV + 77 AS col1
----
-132

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT - 75 + - 57 + - - ( + + 14 ) / + 77 AS col1
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1526
SELECT ALL + 21 + + + CAST( COUNT( * ) AS SIGNED ) DIV 50 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL + 21 + + + CAST ( COUNT ( * ) AS INTEGER ) / 50 AS col0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT 14 + - 13 DIV 18 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-1527
SELECT 14 + - 13 / 18 AS col2
----
14

query I rowsort
SELECT 21 * + 1 * + + 69 col2
----
1449

query I rowsort
SELECT ALL - 49 * 80
----
-3920

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

skipif mysql # not compatible
query I rowsort label-1530
SELECT 91 + + COUNT ( * ) + - 89 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT DISTINCT 64 * - 53 + 12 + + + 48 * MIN( 30 )
----
-1940

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT 64 * - 53 + 12 + + + 48 * MIN ( 30 )
----
-1940

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL 33 * + 3 + 76 * - - COUNT( * ) * 56
----
4355

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL 33 * + 3 + 76 * - - COUNT ( * ) * 56
----
4355

query I rowsort
SELECT DISTINCT - CASE + 31 WHEN 96 + + 88 + + 56 THEN - 41 / + 56 WHEN 33 * - 5 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 76 + 50 * - 26 AS col1
----
-1376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1535
SELECT ALL 42 - + - CAST( + CASE + + 22 WHEN - 95 * 68 THEN + 51 ELSE - 64 END AS SIGNED ) * + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL 42 - + - CAST ( + CASE + + 22 WHEN - 95 * 68 THEN + 51 ELSE - 64 END AS INTEGER ) * + COUNT ( * )
----
-22

query I rowsort
SELECT 20 * + 17 * - 96 AS col0
----
-32640

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL - COUNT( 60 ) * - - ( 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL - COUNT ( 60 ) * - - ( 44 )
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT SUM( + ( ( + NULLIF ( - NULLIF ( 88, + 8 ), + COALESCE ( 64, - 79 ) ) ) ) )
----
-88

skipif mysql # not compatible
query I rowsort label-1539
SELECT SUM ( + ( ( + NULLIF ( - NULLIF ( 88, + 8 ), + COALESCE ( 64, - 79 ) ) ) ) )
----
-88

query II rowsort
SELECT ALL - ( 64 ) AS col0, 55 * 26
----
-64
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT ALL - 59 - + 26 - - 72 - - 97 + 43 * COUNT( 40 ) * - SUM( DISTINCT - COALESCE ( - 17, 49 * + 80 ) - + 24 )
----
385

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - 59 - + 26 - - 72 - - 97 + 43 * COUNT ( 40 ) * - SUM ( DISTINCT - COALESCE ( - 17, 49 * + 80 ) - + 24 )
----
385

query I rowsort
SELECT 10 * - 47 * 82 * 90
----
-3468600

query I rowsort
SELECT - 6 - + 93 AS col2
----
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL - COUNT( - - 92 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - COUNT ( - - 92 ) AS col0
----
-1

query I rowsort
SELECT + 28 * 83
----
2324

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1547
SELECT DISTINCT - 22 DIV CAST( + 57 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT - 22 / CAST ( + 57 AS INTEGER ) col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1549
SELECT 78 * + + 51 + - CAST( NULL AS SIGNED ) - 9 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT 78 * + + 51 + - CAST ( NULL AS INTEGER ) - 9 * + 92
----
NULL

query I rowsort
SELECT + 69 - + 79 col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1551
SELECT 26 * - CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) * 16 + - CAST( 25 AS DECIMAL ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1551
SELECT 26 * - CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) * 16 + - CAST ( 25 AS REAL ) AS col1
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT ALL 48 + + - 42 DIV - 45
----
48

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL 48 + + - 42 / - 45
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1553
SELECT + 91 DIV 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1553
SELECT + 91 / 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT + + 12 + + 89 * + - COUNT( * ) * 65
----
-5773

skipif mysql # not compatible
query I rowsort label-1554
SELECT + + 12 + + 89 * + - COUNT ( * ) * 65
----
-5773

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1555
SELECT + NULLIF ( - + 80, + - 13 + + 1 + CAST( AVG ( 12 ) + 43 AS DECIMAL ) * 24 ) * - 38
----
3040

skipif mysql # not compatible
query I rowsort label-1555
SELECT + NULLIF ( - + 80, + - 13 + + 1 + CAST ( AVG ( 12 ) + 43 AS REAL ) * 24 ) * - 38
----
3040

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT ALL - 37 + 43 - + 86 * + 28 + 5 DIV - 65 AS col2
----
-2402

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL - 37 + 43 - + 86 * + 28 + 5 / - 65 AS col2
----
-2402

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1558
SELECT ALL - AVG ( + 99 ) + 72 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL - AVG ( + 99 ) + 72 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT + 62 * + MIN( ALL + 7 ) * 91 + + 22
----
39516

skipif mysql # not compatible
query I rowsort label-1559
SELECT + 62 * + MIN ( ALL + 7 ) * 91 + + 22
----
39516

query II rowsort
SELECT 63 AS col0, 67
----
63
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT - CASE 57 WHEN - AVG ( DISTINCT + 98 ) * - 76 + - ( - 97 ) / - 23 + + 43 THEN NULL WHEN 70 THEN - COUNT( * ) * 35 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT - CASE 57 WHEN - AVG ( DISTINCT + 98 ) * - 76 + - ( - 97 ) / - 23 + + 43 THEN NULL WHEN 70 THEN - COUNT ( * ) * 35 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 14 * 16 AS col0
----
-224

query I rowsort
SELECT ALL 20 + - 0 AS col2
----
20

query I rowsort
SELECT + 26 - + - 24 AS col0
----
50

query II rowsort
SELECT - 85, 1 col2
----
-85
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT ALL MIN( 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL MIN ( 75 ) AS col2
----
75

query II rowsort
SELECT ALL 84 - + 10 * - 12 AS col0, 57
----
204
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT + 96 * 37 * SUM( - 84 )
----
-298368

skipif mysql # not compatible
query I rowsort label-1569
SELECT + 96 * 37 * SUM ( - 84 )
----
-298368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1570
SELECT ALL + CASE + 98 WHEN 66 - + + 1 THEN - CASE COUNT( * ) WHEN - 31 + 45 THEN 50 WHEN + 77 THEN NULL ELSE NULL END ELSE - CAST( 69 AS SIGNED ) + CAST( NULL AS SIGNED ) * + 11 END - 53 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + CASE + 98 WHEN 66 - + + 1 THEN - CASE COUNT ( * ) WHEN - 31 + 45 THEN 50 WHEN + 77 THEN NULL ELSE NULL END ELSE - CAST ( 69 AS INTEGER ) + CAST ( NULL AS INTEGER ) * + 11 END - 53 * - 48
----
NULL

query I rowsort
SELECT + 18 + - + 82 * - 24
----
1986

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT ( MIN( ALL + 41 ) ) col2
----
41

skipif mysql # not compatible
query I rowsort label-1572
SELECT ( MIN ( ALL + 41 ) ) col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT ALL + 27 DIV 12
----
2

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL + 27 / 12
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1574
SELECT - 12 / - MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT - 12 / - MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1576
SELECT 27 DIV 71 * - ( + 40 ) + 5
----
5

skipif mysql # not compatible
query I rowsort label-1576
SELECT 27 / 71 * - ( + 40 ) + 5
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1577
SELECT DISTINCT + SUM( 41 ) * + 2 DIV - - COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT + SUM ( 41 ) * + 2 / - - COUNT ( * ) AS col0
----
82

query I rowsort
SELECT - 3 + - - 44 * 43 AS col1
----
1889

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT DISTINCT + - MAX( DISTINCT - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT + - MAX ( DISTINCT - 78 ) AS col1
----
78

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

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

query I rowsort
SELECT ALL - + 60 * 21 * 91 * - 38
----
4357080

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT - + 98 * + MAX( ALL - + 25 ) * + 58 AS col2
----
142100

skipif mysql # not compatible
query I rowsort label-1582
SELECT - + 98 * + MAX ( ALL - + 25 ) * + 58 AS col2
----
142100

query I rowsort
SELECT DISTINCT + 41 * + + 52 + + + 59 AS col0
----
2191

query I rowsort
SELECT - 92 * + 84 * 72 * + - 40 * - 3 * 13
----
-868008960

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT + 62 * 62 * - COUNT( * ) + - 40 - 66 * + 80
----
-9164

skipif mysql # not compatible
query I rowsort label-1585
SELECT + 62 * 62 * - COUNT ( * ) + - 40 - 66 * + 80
----
-9164

query I rowsort
SELECT ALL + - ( + COALESCE ( 71, - 15 ) ) AS col1
----
-71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT - - 46 + - 33 + 17 * ( - MAX( 77 ) )
----
-1296

skipif mysql # not compatible
query I rowsort label-1588
SELECT - - 46 + - 33 + 17 * ( - MAX ( 77 ) )
----
-1296

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1591
SELECT + 59 * + 21 + + + CAST( COUNT( DISTINCT + - 84 ) AS SIGNED ) + 76
----
1316

skipif mysql # not compatible
query I rowsort label-1591
SELECT + 59 * + 21 + + + CAST ( COUNT ( DISTINCT + - 84 ) AS INTEGER ) + 76
----
1316

query I rowsort
SELECT ALL + + 56 * - 28 * + + 45 + 74 col1
----
-70486

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

query II rowsort
SELECT - + 64, 87 AS col2
----
-64
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL + NULLIF ( + - 53, - 1 * COUNT( * ) ) * - MIN( 55 ) - + 87 + 96
----
2924

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL + NULLIF ( + - 53, - 1 * COUNT ( * ) ) * - MIN ( 55 ) - + 87 + 96
----
2924

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT CASE + 70 WHEN - 66 THEN NULL ELSE - 13 END * SUM( 86 ) - - 34 AS col1
----
-1084

skipif mysql # not compatible
query I rowsort label-1596
SELECT CASE + 70 WHEN - 66 THEN NULL ELSE - 13 END * SUM ( 86 ) - - 34 AS col1
----
-1084

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT DISTINCT - 54 * - + 60 + + COUNT( * ) + ( - 72 ) AS col2
----
3169

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT - 54 * - + 60 + + COUNT ( * ) + ( - 72 ) AS col2
----
3169

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

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

query I rowsort
SELECT DISTINCT - 83 + - ( + 3 )
----
-86

query I rowsort
SELECT ALL 48 + - ( 91 ) col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1601
SELECT + 14 + + + 90 + + COUNT( 86 ) DIV + ( + 74 ) + - 3 * - 41 * - 65
----
-7891

skipif mysql # not compatible
query I rowsort label-1601
SELECT + 14 + + + 90 + + COUNT ( 86 ) / + ( + 74 ) + - 3 * - 41 * - 65
----
-7891

query I rowsort
SELECT + 32 * + + 96
----
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT + 2 + + MIN( 61 ) + 49 * + + 64 - - + 41
----
3240

skipif mysql # not compatible
query I rowsort label-1603
SELECT + 2 + + MIN ( 61 ) + 49 * + + 64 - - + 41
----
3240

query I rowsort
SELECT ALL - 21 - + - 10 * - 49 * - 80
----
39179

onlyif mysql # DIV for integer division: 
query I rowsort label-1605
SELECT ALL + 58 - - ( 91 ) - 49 * + 56 - 15 + + 11 DIV 21 AS col1
----
-2610

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL + 58 - - ( 91 ) - 49 * + 56 - 15 + + 11 / 21 AS col1
----
-2610

query I rowsort
SELECT DISTINCT 43 * 42 AS col2
----
1806

query I rowsort
SELECT + 55 + + 61
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1608
SELECT ALL MIN( 1 ) - + 50 - 34 + - + 1 * + 48 - + 35 DIV 97
----
-131

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL MIN ( 1 ) - + 50 - 34 + - + 1 * + 48 - + 35 / 97
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1609
SELECT DISTINCT 46 col2, COUNT( * ) * CAST( + - 18 AS SIGNED ) AS col1
----
46
-18

skipif mysql # not compatible
query II rowsort label-1609
SELECT DISTINCT 46 col2, COUNT ( * ) * CAST ( + - 18 AS INTEGER ) AS col1
----
46
-18

query II rowsort
SELECT 54 col2, + 86 AS col0
----
54
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT - CASE - + 62 WHEN + ( - 5 ) * + - COUNT( * ) * COUNT( * ) + 64 * - 94 THEN NULL ELSE + COUNT( * ) * + NULLIF ( - 14, COUNT( * ) ) END
----
14

skipif mysql # not compatible
query I rowsort label-1611
SELECT - CASE - + 62 WHEN + ( - 5 ) * + - COUNT ( * ) * COUNT ( * ) + 64 * - 94 THEN NULL ELSE + COUNT ( * ) * + NULLIF ( - 14, COUNT ( * ) ) END
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ALL COUNT( * ) - + 68
----
-67

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL COUNT ( * ) - + 68
----
-67

query I rowsort
SELECT + 36 * 68 AS col1
----
2448

onlyif mysql # aggregate syntax: 
query II rowsort label-1614
SELECT + 42 * + + 73 AS col2, ( COUNT( * ) ) + + 16 * - 84 col1
----
3066
-1343

skipif mysql # not compatible
query II rowsort label-1614
SELECT + 42 * + + 73 AS col2, ( COUNT ( * ) ) + + 16 * - 84 col1
----
3066
-1343

query I rowsort
SELECT - 1 + 68
----
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1616
SELECT + 6 + + CAST( NULL AS DECIMAL ) + + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT + 6 + + CAST ( NULL AS REAL ) + + - 40
----
NULL

query II rowsort
SELECT ALL + 65 col2, 33
----
65
33

query I rowsort
SELECT ALL + - 66 col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT + COUNT( * ) * + - 62 - - - 49 * - - COUNT( * ) AS col0
----
-111

skipif mysql # not compatible
query I rowsort label-1619
SELECT + COUNT ( * ) * + - 62 - - - 49 * - - COUNT ( * ) AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT - - 36 + 70 * - 53 * COUNT( * ) + + MIN( DISTINCT 3 ) + + COUNT( * ) * - 21 AS col0
----
-3692

skipif mysql # not compatible
query I rowsort label-1620
SELECT - - 36 + 70 * - 53 * COUNT ( * ) + + MIN ( DISTINCT 3 ) + + COUNT ( * ) * - 21 AS col0
----
-3692

query III rowsort
SELECT ALL + - 7 AS col0, - 77, 13 AS col0
----
-7
-77
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT + SUM( DISTINCT - 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-1622
SELECT + SUM ( DISTINCT - 51 ) AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1623
SELECT ( + 96 ) + - - CASE - CAST( + 60 AS DECIMAL ) WHEN - 2 THEN NULL WHEN - COUNT( * ) * 76 + ( - NULLIF ( + ( CAST( 15 AS SIGNED ) ), 98 - 52 ) + 51 * 20 ) THEN CAST( 87 AS SIGNED ) ELSE COUNT( * ) END AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1623
SELECT ( + 96 ) + - - CASE - CAST ( + 60 AS REAL ) WHEN - 2 THEN NULL WHEN - COUNT ( * ) * 76 + ( - NULLIF ( + ( CAST ( 15 AS INTEGER ) ), 98 - 52 ) + 51 * 20 ) THEN CAST ( 87 AS INTEGER ) ELSE COUNT ( * ) END AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1624
SELECT - CAST( NULL AS SIGNED ) * + MIN( - - 95 ) * + 19 + - ( - + 46 ) + - COUNT( 22 + + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1624
SELECT - CAST ( NULL AS INTEGER ) * + MIN ( - - 95 ) * + 19 + - ( - + 46 ) + - COUNT ( 22 + + 72 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT 86 DIV ( 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1625
SELECT 86 / ( 46 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT + CASE WHEN NOT NULL IS NULL THEN 74 END / - 43 * - 55 / - 24 / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT + CASE WHEN NOT NULL IS NULL THEN 74 END / - 43 * - 55 / - 24 / - COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 12 AS col1, 14 - 0 + + 48 + + 66
----
12
128

query I rowsort
SELECT DISTINCT + 87 + + 28 AS col0
----
115

query I rowsort
SELECT DISTINCT - + 11 + 64 AS col1
----
53

query I rowsort
SELECT ( - + 33 ) + - 70
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ALL + MAX( ALL + 71 ) - - MAX( ALL 46 )
----
117

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL + MAX ( ALL + 71 ) - - MAX ( ALL 46 )
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT - COALESCE ( + 12, + 34, + - 91, - NULLIF ( COUNT( * ), - 7 + + 54 / + 32 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-1632
SELECT - COALESCE ( + 12, + 34, + - 91, - NULLIF ( COUNT ( * ), - 7 + + 54 / + 32 ) )
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1633
SELECT ALL 90 - + 13, COUNT( * ) AS col0
----
77
1

skipif mysql # not compatible
query II rowsort label-1633
SELECT ALL 90 - + 13, COUNT ( * ) AS col0
----
77
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1634
SELECT COUNT( * ) DIV + - 66 * - 61
----
0

skipif mysql # not compatible
query I rowsort label-1634
SELECT COUNT ( * ) / + - 66 * - 61
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1635
SELECT DISTINCT CAST( + ( - 93 ) AS SIGNED ) * - 36 + 78 + + 81 * + 5 * 91 col0
----
40281

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT CAST ( + ( - 93 ) AS INTEGER ) * - 36 + 78 + + 81 * + 5 * 91 col0
----
40281

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1636
SELECT DISTINCT + COALESCE ( + 38, + NULLIF ( - 87, + 29 ) * + 79 * - 83 * - 33 + 50 + + 8 ) DIV - CAST( - 96 * ( - 91 * + 87 ) AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT + COALESCE ( + 38, + NULLIF ( - 87, + 29 ) * + 79 * - 83 * - 33 + 50 + + 8 ) / - CAST ( - 96 * ( - 91 * + 87 ) AS INTEGER ) AS col2
----
0

query II rowsort
SELECT 94 + - 43 AS col1, + ( + 77 ) + - 66
----
51
11

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

skipif mysql # not compatible
query I rowsort label-1638
SELECT COUNT ( * ) / COUNT ( 89 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1639
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + ( - MIN( ALL + 44 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + ( - MIN ( ALL + 44 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT 10 - - 3 + + 46 - 40 * - ( + - COUNT( * ) ) * - + CASE ( + COALESCE ( COUNT( * ), 94 * + 13 ) ) WHEN + 20 THEN NULL WHEN + MAX( ALL 41 ) * 52 - 34 THEN NULL WHEN 77 THEN NULL ELSE + 32 * 21 END
----
26939

skipif mysql # not compatible
query I rowsort label-1640
SELECT 10 - - 3 + + 46 - 40 * - ( + - COUNT ( * ) ) * - + CASE ( + COALESCE ( COUNT ( * ), 94 * + 13 ) ) WHEN + 20 THEN NULL WHEN + MAX ( ALL 41 ) * 52 - 34 THEN NULL WHEN 77 THEN NULL ELSE + 32 * 21 END
----
26939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1641
SELECT DISTINCT + SUM( 11 ) * + CASE - COALESCE ( 57, CAST( NULL AS SIGNED ) ) WHEN - + 61 + + 26 * + 84 THEN + ( 78 ) WHEN 39 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT + SUM ( 11 ) * + CASE - COALESCE ( 57, CAST ( NULL AS INTEGER ) ) WHEN - + 61 + + 26 * + 84 THEN + ( 78 ) WHEN 39 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT COUNT( * ) + - MAX( DISTINCT + 81 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1642
SELECT COUNT ( * ) + - MAX ( DISTINCT + 81 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT COUNT( * ) * + CASE + ( - - 22 ) WHEN - 41 THEN NULL WHEN + + 86 * 26 THEN + MAX( 81 ) + 16 WHEN + 44 + 21 THEN NULL ELSE 80 END
----
80

skipif mysql # not compatible
query I rowsort label-1643
SELECT COUNT ( * ) * + CASE + ( - - 22 ) WHEN - 41 THEN NULL WHEN + + 86 * 26 THEN + MAX ( 81 ) + 16 WHEN + 44 + 21 THEN NULL ELSE 80 END
----
80

query I rowsort
SELECT ALL 70 + - 65 * 56 AS col2
----
-3570

query I rowsort
SELECT 55 + + 96 * - + 16 * + 46 col2
----
-70601

query I rowsort
SELECT ALL - COALESCE ( - - 68, - - 46 ) AS col2
----
-68

query II rowsort
SELECT + ( 88 ) col0, + 67 * - 19 AS col0
----
88
-1273

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1649
SELECT 45 - + 60 + - + 67 * 54 + + 19 DIV - 3 + 31 * COUNT( * )
----
-3608

skipif mysql # not compatible
query I rowsort label-1649
SELECT 45 - + 60 + - + 67 * 54 + + 19 / - 3 + 31 * COUNT ( * )
----
-3608

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1650
SELECT ALL - CAST( NULL AS DECIMAL ) + + - COALESCE ( + + ( - 23 ), - 53 + 39 * + 28, - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL - CAST ( NULL AS REAL ) + + - COALESCE ( + + ( - 23 ), - 53 + 39 * + 28, - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1651
SELECT + + CAST( + MAX( ALL - 67 ) AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1651
SELECT + + CAST ( + MAX ( ALL - 67 ) AS INTEGER ) AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1652
SELECT - 84 * 36 + 72 * + 16 * + 96, - COALESCE ( 71, COUNT( * ) DIV 62 ) AS col1
----
107568
-71

skipif mysql # not compatible
query II rowsort label-1652
SELECT - 84 * 36 + 72 * + 16 * + 96, - COALESCE ( 71, COUNT ( * ) / 62 ) AS col1
----
107568
-71

query I rowsort
SELECT 70 + 32
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1654
SELECT ALL - COUNT( ALL 96 ) * - 73 * + - CASE - 93 WHEN + 26 THEN + COALESCE ( + 14, COUNT( * ), + ( 47 ) * + 73 ) WHEN - 24 / - CAST( NULL AS SIGNED ) THEN NULL END * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL - COUNT ( ALL 96 ) * - 73 * + - CASE - 93 WHEN + 26 THEN + COALESCE ( + 14, COUNT ( * ), + ( 47 ) * + 73 ) WHEN - 24 / - CAST ( NULL AS INTEGER ) THEN NULL END * 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT + 29 * 38 + COUNT( * )
----
1103

skipif mysql # not compatible
query I rowsort label-1655
SELECT + 29 * 38 + COUNT ( * )
----
1103

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT ALL - + 8 DIV + + 17
----
0

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL - + 8 / + + 17
----
0

query I rowsort
SELECT - 13 + 74 + + 54 AS col1
----
115

query II rowsort
SELECT ALL - 24 AS col0, 54 AS col0
----
-24
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1659
SELECT DISTINCT 26 DIV 52 DIV - ( 96 ) * - 15
----
0

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT 26 / 52 / - ( 96 ) * - 15
----
0

query I rowsort
SELECT ALL + ( - 27 ) - + + 25
----
-52

query I rowsort
SELECT 58 * - + 92 * + 90 - - 10
----
-480230

query I rowsort
SELECT 14 * - 67 AS col0
----
-938

query I rowsort
SELECT 20 + + + 52 * 72
----
3764

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

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL + COUNT ( ALL 21 ) * - 61 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1665
SELECT - COUNT( * ) AS col2, 88 AS col0
----
-1
88

skipif mysql # not compatible
query II rowsort label-1665
SELECT - COUNT ( * ) AS col2, 88 AS col0
----
-1
88

query I rowsort
SELECT 30 + - 63 AS col2
----
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT ALL SUM( - 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL SUM ( - 94 ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT 10 + 27 + MIN( DISTINCT 13 )
----
50

skipif mysql # not compatible
query I rowsort label-1669
SELECT 10 + 27 + MIN ( DISTINCT 13 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1670
SELECT ALL - ( - + CASE 40 WHEN MAX( ALL - + 42 ) THEN - CASE + + 28 WHEN + 28 - 34 THEN + 25 ELSE + CAST( NULL AS SIGNED ) * + ( + 53 * 54 ) END - MAX( DISTINCT + 66 + + 45 ) END ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL - ( - + CASE 40 WHEN MAX ( ALL - + 42 ) THEN - CASE + + 28 WHEN + 28 - 34 THEN + 25 ELSE + CAST ( NULL AS INTEGER ) * + ( + 53 * 54 ) END - MAX ( DISTINCT + 66 + + 45 ) END ) + 2
----
NULL

query I rowsort
SELECT 20 + 18 AS col2
----
38

query II rowsort
SELECT DISTINCT 2 AS col0, + 47 * + 41 AS col2
----
2
1927

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT DISTINCT + 86 + + 74 - + + ( - COUNT( * ) ) * + 9 + - 43 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT + 86 + + 74 - + + ( - COUNT ( * ) ) * + 9 + - 43 AS col2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-1674
SELECT ALL - 96 DIV - + 33
----
2

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL - 96 / - + 33
----
2

query I rowsort
SELECT DISTINCT 71 + - + 96
----
-25

query I rowsort
SELECT 19 * 64 AS col1
----
1216

query I rowsort
SELECT 55 + - 48 + 1
----
8

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

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

query I rowsort
SELECT + + 36 + - - 85
----
121

query I rowsort
SELECT DISTINCT - + ( CASE 42 WHEN 41 THEN + - 73 END ) * - - ( + 37 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 48 + - 97
----
NULL

query II rowsort
SELECT + 90 col1, 35 - + ( - + 51 ) - + 93 AS col0
----
90
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-1683
SELECT ALL + 36, + 78 DIV - 84 + - - 0 AS col2
----
36
0

skipif mysql # not compatible
query II rowsort label-1683
SELECT ALL + 36, + 78 / - 84 + - - 0 AS col2
----
36
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1684
SELECT DISTINCT - 12 * + - 67 * 92 + - - 44 AS col0, + COUNT( * )
----
74012
1

skipif mysql # not compatible
query II rowsort label-1684
SELECT DISTINCT - 12 * + - 67 * 92 + - - 44 AS col0, + COUNT ( * )
----
74012
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT ALL + 90 DIV - + 8
----
-11

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL + 90 / - + 8
----
-11

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1687
SELECT - CASE 61 WHEN + 30 + 93 + - COUNT( * ) + + 76 + 91 + COALESCE ( SUM( 35 ), 16, 54 + 39, 61 ) * CASE + 74 WHEN + ( + CAST( - 47 AS SIGNED ) ) + COUNT( * ) THEN 87 * 62 END * - 78 / CASE 60 WHEN 56 - - ( SUM( ALL + CAST( NULL AS DECIMAL ) ) ) * 43 THEN 32 / - COUNT( * ) WHEN - COUNT( * ) * 38 THEN NULL ELSE - MAX( - 42 ) END * - COUNT( * ) THEN + 51 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT - CASE 61 WHEN + 30 + 93 + - COUNT ( * ) + + 76 + 91 + COALESCE ( SUM ( 35 ), 16, 54 + 39, 61 ) * CASE + 74 WHEN + ( + CAST ( - 47 AS INTEGER ) ) + COUNT ( * ) THEN 87 * 62 END * - 78 / CASE 60 WHEN 56 - - ( SUM ( ALL + CAST ( NULL AS REAL ) ) ) * 43 THEN 32 / - COUNT ( * ) WHEN - COUNT ( * ) * 38 THEN NULL ELSE - MAX ( - 42 ) END * - COUNT ( * ) THEN + 51 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 31 + + 13 col2
----
44

query I rowsort
SELECT + - 60 * + 60 * - + 77 + + 89 AS col2
----
277289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT + 44 + - CAST( COUNT( * ) AS SIGNED ) - + + 89 + + 60 * - 7 AS col0
----
-466

skipif mysql # not compatible
query I rowsort label-1690
SELECT + 44 + - CAST ( COUNT ( * ) AS INTEGER ) - + + 89 + + 60 * - 7 AS col0
----
-466

onlyif mysql # aggregate syntax: 
query II rowsort label-1691
SELECT ALL + - ( - MAX( + 83 ) ) AS col2, - 31 * - + COALESCE ( - COUNT( * ), - + ( - 21 ) + 39 * - COALESCE ( + 55, CASE NULLIF ( 21, 44 ) WHEN 56 THEN + 34 * 71 END, 81 ) ) * - 66 + + 63 AS col2
----
83
2109

skipif mysql # not compatible
query II rowsort label-1691
SELECT ALL + - ( - MAX ( + 83 ) ) AS col2, - 31 * - + COALESCE ( - COUNT ( * ), - + ( - 21 ) + 39 * - COALESCE ( + 55, CASE NULLIF ( 21, 44 ) WHEN 56 THEN + 34 * 71 END, 81 ) ) * - 66 + + 63 AS col2
----
83
2109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT ALL - CAST( NULL AS SIGNED ) * - 7 * MIN( + 67 ) - MAX( - 36 ) - - - 36 - 68 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL - CAST ( NULL AS INTEGER ) * - 7 * MIN ( + 67 ) - MAX ( - 36 ) - - - 36 - 68 * COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-1693
SELECT + 97, + ( + + ( COUNT ( * ) ) ) col1
----
97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1694
SELECT + COUNT( * ) col1, ( 84 ) + + - COUNT( * ) AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-1694
SELECT + COUNT ( * ) col1, ( 84 ) + + - COUNT ( * ) AS col2
----
1
83

query I rowsort
SELECT + CASE 63 WHEN 38 + + 59 THEN + + 78 * + - 9 - + COALESCE ( + 46, NULLIF ( ( - 81 ), + 64 ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL + CASE - 6 WHEN + 48 THEN NULL WHEN - COUNT( * ) THEN - AVG ( 16 ) END * - - COUNT( ALL - 45 ) * 80 + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL + CASE - 6 WHEN + 48 THEN NULL WHEN - COUNT ( * ) THEN - AVG ( 16 ) END * - - COUNT ( ALL - 45 ) * 80 + - 25
----
NULL

query I rowsort
SELECT DISTINCT 20 * 11
----
220

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT + 96 DIV - 91
----
-1

skipif mysql # not compatible
query I rowsort label-1699
SELECT + 96 / - 91
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1700
SELECT ALL COUNT( * ) + 70 + - + CAST( + - 84 AS SIGNED ) AS col0
----
155

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL COUNT ( * ) + 70 + - + CAST ( + - 84 AS INTEGER ) AS col0
----
155

query I rowsort
SELECT - NULLIF ( + 79, + + 99 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT COUNT( + 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1702
SELECT COUNT ( + 65 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT + 66 DIV 39
----
1

skipif mysql # not compatible
query I rowsort label-1703
SELECT + 66 / 39
----
1

query II rowsort
SELECT - 42 * + 4 AS col1, + 52
----
-168
52

query I rowsort
SELECT ALL 48 + - ( 99 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT ALL COUNT( - 46 ), - 15 AS col2
----
1
-15

skipif mysql # not compatible
query II rowsort label-1706
SELECT ALL COUNT ( - 46 ), - 15 AS col2
----
1
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1707
SELECT ALL - 10 * - - CASE + - CAST( NULL AS DECIMAL ) WHEN + COALESCE ( 34, - 81 * + 68 + + + 16 * - + ( COUNT( * ) ), - MIN( - 99 ) + 49 * + 84 ) * - 31 THEN + 23 + + 78 WHEN 79 * 51 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - 10 * - - CASE + - CAST ( NULL AS REAL ) WHEN + COALESCE ( 34, - 81 * + 68 + + + 16 * - + ( COUNT ( * ) ), - MIN ( - 99 ) + 49 * + 84 ) * - 31 THEN + 23 + + 78 WHEN 79 * 51 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1708
SELECT + 6 + CAST( NULL AS SIGNED ) / + CASE + COUNT( * ) WHEN + 20 THEN - + 26 / COUNT( * ) * 92 WHEN + NULLIF ( + 60, ( 26 ) ) + + SUM( 46 ) THEN 68 ELSE 20 * - COUNT( * ) END * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-1708
SELECT + 6 + CAST ( NULL AS INTEGER ) / + CASE + COUNT ( * ) WHEN + 20 THEN - + 26 / COUNT ( * ) * 92 WHEN + NULLIF ( + 60, ( 26 ) ) + + SUM ( 46 ) THEN 68 ELSE 20 * - COUNT ( * ) END * 68
----
NULL

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

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

query I rowsort
SELECT ALL + + ( 10 ) + + + 11
----
21

query I rowsort
SELECT - 43 - 49 + - 90
----
-182

onlyif mysql # DIV for integer division: 
query II rowsort label-1712
SELECT ALL 17 * + 75 AS col2, 52 + + 7 + - + ( 62 ) * 0 DIV - + 37 AS col0
----
1275
59

skipif mysql # not compatible
query II rowsort label-1712
SELECT ALL 17 * + 75 AS col2, 52 + + 7 + - + ( 62 ) * 0 / - + 37 AS col0
----
1275
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT - 57 + 55 + + NULLIF ( - 74, COUNT( * ) * - 9 * 46 - - 64 ) + + 78
----
2

skipif mysql # not compatible
query I rowsort label-1713
SELECT - 57 + 55 + + NULLIF ( - 74, COUNT ( * ) * - 9 * 46 - - 64 ) + + 78
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1714
SELECT ALL + COALESCE ( + 49, - 89 + + 50 DIV + + COUNT( 74 ) )
----
49

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + COALESCE ( + 49, - 89 + + 50 / + + COUNT ( 74 ) )
----
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL + 24 - - - 90 + + 24 - - + 43 + - 69 * COUNT( * ) * + COUNT( * ) * 72 * - 99 AS col1
----
491833

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL + 24 - - - 90 + + 24 - - + 43 + - 69 * COUNT ( * ) * + COUNT ( * ) * 72 * - 99 AS col1
----
491833

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT DISTINCT - 61 DIV + 44 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1717
SELECT DISTINCT - 61 / + 44 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT - - CASE + 93 WHEN - + 26 THEN NULL WHEN + 8 THEN + 21 WHEN + + 95 * - 68 THEN NULL END + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT - - CASE + 93 WHEN - + 26 THEN NULL WHEN + 8 THEN + 21 WHEN + + 95 * - 68 THEN NULL END + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1719
SELECT DISTINCT + - CASE + MAX( + 71 ) WHEN + NULLIF ( + 1, + CAST( NULL AS SIGNED ) ) THEN NULL WHEN + 76 * - 79 * - - 12 * + 77 THEN 6 * 11 + 63 ELSE - 74 END - 53 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT + - CASE + MAX ( + 71 ) WHEN + NULLIF ( + 1, + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + 76 * - 79 * - - 12 * + 77 THEN 6 * 11 + 63 ELSE - 74 END - 53 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT - - MIN( DISTINCT - ( - NULLIF ( + + 79, + 91 / - 97 + 32 + - + 36 * 27 ) ) ) + - 62 * 4 AS col2
----
-169

skipif mysql # not compatible
query I rowsort label-1720
SELECT - - MIN ( DISTINCT - ( - NULLIF ( + + 79, + 91 / - 97 + 32 + - + 36 * 27 ) ) ) + - 62 * 4 AS col2
----
-169

query I rowsort
SELECT DISTINCT - + 66 * + 58 + + 31
----
-3797

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT - ( + COUNT( ALL + - 62 ) ) - - CASE + - ( - 98 ) WHEN + - CASE 60 WHEN - + 22 THEN - CAST( 31 AS SIGNED ) * - 30 + 81 END THEN NULL WHEN + 28 THEN NULL WHEN + 24 * 49 THEN + 10 ELSE 64 * + 11 END AS col0
----
703

skipif mysql # not compatible
query I rowsort label-1722
SELECT - ( + COUNT ( ALL + - 62 ) ) - - CASE + - ( - 98 ) WHEN + - CASE 60 WHEN - + 22 THEN - CAST ( 31 AS INTEGER ) * - 30 + 81 END THEN NULL WHEN + 28 THEN NULL WHEN + 24 * 49 THEN + 10 ELSE 64 * + 11 END AS col0
----
703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT - 59 * - COALESCE ( 18, - - CAST( - 64 AS SIGNED ) ) AS col2
----
1062

skipif mysql # not compatible
query I rowsort label-1723
SELECT - 59 * - COALESCE ( 18, - - CAST ( - 64 AS INTEGER ) ) AS col2
----
1062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1724
SELECT + 29 * - 31 * NULLIF ( 95, + AVG ( ALL CAST( + 69 AS SIGNED ) ) * - 21 * 1 * 42 - MIN( DISTINCT CAST( NULL AS SIGNED ) ) ) AS col1
----
-85405

skipif mysql # not compatible
query I rowsort label-1724
SELECT + 29 * - 31 * NULLIF ( 95, + AVG ( ALL CAST ( + 69 AS INTEGER ) ) * - 21 * 1 * 42 - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) ) AS col1
----
-85405

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1725
SELECT ALL - CASE 73 WHEN + CASE + COALESCE ( 6, CAST( - 69 AS DECIMAL ), - - 62 * - - 90 ) WHEN + 34 THEN + 35 * + 44 + + 17 ELSE NULL END * - 2 THEN + 34 + + 62 * - COUNT( * ) END * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL - CASE 73 WHEN + CASE + COALESCE ( 6, CAST ( - 69 AS REAL ), - - 62 * - - 90 ) WHEN + 34 THEN + 35 * + 44 + + 17 ELSE NULL END * - 2 THEN + 34 + + 62 * - COUNT ( * ) END * + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT DISTINCT + + 75 * COUNT( * ) * + + 27 + - 14 * - COUNT( * ) * + 32
----
2473

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + + 75 * COUNT ( * ) * + + 27 + - 14 * - COUNT ( * ) * + 32
----
2473

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1727
SELECT + + 87 DIV COUNT( * ) + - 63 * - + 73, + 97 col2
----
4686
97

skipif mysql # not compatible
query II rowsort label-1727
SELECT + + 87 / COUNT ( * ) + - 63 * - + 73, + 97 col2
----
4686
97

query I rowsort
SELECT DISTINCT + - 60 col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1729
SELECT ALL + 6 * + COUNT( * ) + 34 DIV - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + 6 * + COUNT ( * ) + 34 / - COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL - - MAX( + - 98 ) * + 15
----
-1470

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL - - MAX ( + - 98 ) * + 15
----
-1470

onlyif mysql # DIV for integer division: 
query I rowsort label-1731
SELECT + 32 DIV + 27 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1731
SELECT + 32 / + 27 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT 76 * + 54 + - - COUNT( * )
----
4105

skipif mysql # not compatible
query I rowsort label-1732
SELECT 76 * + 54 + - - COUNT ( * )
----
4105

query I rowsort
SELECT - 20 + + 79
----
59

query I rowsort
SELECT + 26 * - 33
----
-858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1735
SELECT ALL - 32 * - + MIN( DISTINCT - 33 ) * + + 55 * - COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ) * 16 + + 9 col2
----
58073

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL - 32 * - + MIN ( DISTINCT - 33 ) * + + 55 * - COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) * 16 + + 9 col2
----
58073

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1736
SELECT ( + ( ( - COUNT( ALL - - CAST( NULL AS DECIMAL ) ) ) ) ) AS col2, 13 AS col2
----
0
13

skipif mysql # not compatible
query II rowsort label-1736
SELECT ( + ( ( - COUNT ( ALL - - CAST ( NULL AS REAL ) ) ) ) ) AS col2, 13 AS col2
----
0
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT ALL - MIN( - 5 ) * 38 + + - 64 col2
----
126

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL - MIN ( - 5 ) * 38 + + - 64 col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT - 14 + + - COUNT( + - 23 ) - 17 * - COUNT( * ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1738
SELECT - 14 + + - COUNT ( + - 23 ) - 17 * - COUNT ( * ) * COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1739
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) + AVG ( 70 ) + 75 + - CAST( + ( 78 ) AS SIGNED ) * - + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) + AVG ( 70 ) + 75 + - CAST ( + ( 78 ) AS INTEGER ) * - + 22 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1740
SELECT DISTINCT - 38 * + 39 + + COUNT( + - 0 ) + - 25 AS col1, 69
----
-1506
69

skipif mysql # not compatible
query II rowsort label-1740
SELECT DISTINCT - 38 * + 39 + + COUNT ( + - 0 ) + - 25 AS col1, 69
----
-1506
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT DISTINCT COUNT( * ) * - 87 * - COUNT( * ) * - 86 AS col2
----
-7482

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT COUNT ( * ) * - 87 * - COUNT ( * ) * - 86 AS col2
----
-7482

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT - COUNT( * ) * + 74 + - 46
----
-120

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT - COUNT ( * ) * + 74 + - 46
----
-120

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1743
SELECT + 42 + - 36 + 6 * 96 * CAST( NULLIF ( - + 88, - - 10 ) AS SIGNED ) DIV 60 DIV - 49 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1743
SELECT + 42 + - 36 + 6 * 96 * CAST ( NULLIF ( - + 88, - - 10 ) AS INTEGER ) / 60 / - 49 AS col0
----
23

query II rowsort
SELECT 32 * - 36 + + + 66, + 49 AS col1
----
-1086
49

query I rowsort
SELECT + 36 + - 45 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-1746
SELECT DISTINCT 7 AS col2, 20 * 57 * - COUNT( * ) * + 78 AS col0
----
7
-88920

skipif mysql # not compatible
query II rowsort label-1746
SELECT DISTINCT 7 AS col2, 20 * 57 * - COUNT ( * ) * + 78 AS col0
----
7
-88920

query I rowsort
SELECT ALL 94 + 21 col1
----
115

query I rowsort
SELECT 45 + + - 51
----
-6

query II rowsort
SELECT DISTINCT 18 AS col0, + 33
----
18
33

query I rowsort
SELECT ALL NULLIF ( + - 73, - 32 + 17 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT DISTINCT + 95 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT + 95 / 71
----
1

query I rowsort
SELECT DISTINCT - 32 * + 81 + - 76 + - 53 AS col1
----
-2721

query I rowsort
SELECT ALL + 73 - + 16
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-1754
SELECT - 77 DIV + + 73 + + 4 AS col2, + 69 AS col2
----
3
69

skipif mysql # not compatible
query II rowsort label-1754
SELECT - 77 / + + 73 + + 4 AS col2, + 69 AS col2
----
3
69

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

query II rowsort
SELECT 75 AS col0, + 8 * + - 5 AS col1
----
75
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT ALL - COALESCE ( + - CAST( NULL AS SIGNED ), + CASE - + 48 WHEN - 43 * + 68 * 65 * - 73 THEN NULL ELSE 90 - + 90 END + ( + 14 ) ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - COALESCE ( + - CAST ( NULL AS INTEGER ), + CASE - + 48 WHEN - 43 * + 68 * 65 * - 73 THEN NULL ELSE 90 - + 90 END + ( + 14 ) ) AS col1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1758
SELECT ALL - 27 * + - COALESCE ( 63, - COUNT( * ) * - 31 DIV + - 71 ) AS col2, + CASE - 71 WHEN 18 THEN + - 98 END * COUNT( * ) AS col1
----
1701
NULL

skipif mysql # not compatible
query II rowsort label-1758
SELECT ALL - 27 * + - COALESCE ( 63, - COUNT ( * ) * - 31 / + - 71 ) AS col2, + CASE - 71 WHEN 18 THEN + - 98 END * COUNT ( * ) AS col1
----
1701
NULL

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

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

query I rowsort
SELECT - 66 + - - 77
----
11

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1762
SELECT - 93 * - - ( - COALESCE ( - ( + + 44 ), - + 21 ) ) col1, - ( - COUNT( * ) ) + - 8
----
-4092
-7

skipif mysql # not compatible
query II rowsort label-1762
SELECT - 93 * - - ( - COALESCE ( - ( + + 44 ), - + 21 ) ) col1, - ( - COUNT ( * ) ) + - 8
----
-4092
-7

query I rowsort
SELECT ALL + + 89 * - 54
----
-4806

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT DISTINCT + 28 + + + 90 - - 82 + + COUNT( * ) + - MAX( - 49 ) * - 47 * 46 AS col2
----
-105737

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT + 28 + + + 90 - - 82 + + COUNT ( * ) + - MAX ( - 49 ) * - 47 * 46 AS col2
----
-105737

query I rowsort
SELECT + + 96 * - 46 + COALESCE ( + 16, - 10 + + 37, + - 20 ) col1
----
-4400

query I rowsort
SELECT 30 + + - 82 col1
----
-52

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1768
SELECT ALL + CAST( + 37 AS SIGNED ) + - 94 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + CAST ( + 37 AS INTEGER ) + - 94 AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT 20 DIV - 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-1769
SELECT 20 / - 84 col1
----
0

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

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

query I rowsort
SELECT ALL 78 + - + 29 AS col2
----
49

query I rowsort
SELECT DISTINCT - ( - 43 ) * + CASE + 63 WHEN + 11 THEN + + 22 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1773
SELECT ALL 54 + + 23 + - ( 27 ) DIV - 96 * + NULLIF ( + - MAX( + 74 ), + 29 * ( + + 68 ) - 31 )
----
77

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL 54 + + 23 + - ( 27 ) / - 96 * + NULLIF ( + - MAX ( + 74 ), + 29 * ( + + 68 ) - 31 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT DISTINCT - CAST( COALESCE ( + 35, + 28 ) AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT - CAST ( COALESCE ( + 35, + 28 ) AS INTEGER )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1775
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) + - - 35 - + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) + - - 35 - + - COUNT ( * )
----
35

query I rowsort
SELECT ALL - 37 + 91 * - - 82
----
7425

query I rowsort
SELECT 35 - + 57
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-1778
SELECT 70 col0, + COALESCE ( - 19, + ( - ( + 5 ) ) * 82 DIV 16 * - 11, 22 )
----
70
-19

skipif mysql # not compatible
query II rowsort label-1778
SELECT 70 col0, + COALESCE ( - 19, + ( - ( + 5 ) ) * 82 / 16 * - 11, 22 )
----
70
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT DISTINCT 53 - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT 53 - COUNT ( * )
----
52

query I rowsort
SELECT DISTINCT 12 * - 45
----
-540

query II rowsort
SELECT 49, 6 + + + 31 AS col0
----
49
37

query I rowsort
SELECT ALL 47 * + 50 col2
----
2350

query I rowsort
SELECT ALL + 83 * - 4
----
-332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1784
SELECT ALL 78 - - 58 + - 94 + + 95 * - ( - 35 ) * 74 + - - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL 78 - - 58 + - 94 + + 95 * - ( - 35 ) * 74 + - - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT 75 * 42 AS col2
----
3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT DISTINCT + - 25 * + - CAST( + 26 AS SIGNED )
----
650

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT + - 25 * + - CAST ( + 26 AS INTEGER )
----
650

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL SUM( ALL + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL SUM ( ALL + 31 ) AS col2
----
31

query II rowsort
SELECT - 92, 43 AS col1
----
-92
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT ALL 35 * NULLIF ( + MAX( DISTINCT 64 ), + 70 )
----
2240

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL 35 * NULLIF ( + MAX ( DISTINCT 64 ), + 70 )
----
2240

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

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

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

query II rowsort
SELECT 2, 13 AS col1
----
2
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT + COUNT( * ) + - 38 + - 91 * + CASE - COALESCE ( + 93, ( CASE + COUNT( * ) WHEN + 42 THEN NULL ELSE - 46 END ) + - 85 * 55 ) WHEN 83 * 3 + COUNT( * ) THEN NULL WHEN + ( + 50 ) + - 56 * + 80 THEN + 76 * - 50 END / - 56 * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT + COUNT ( * ) + - 38 + - 91 * + CASE - COALESCE ( + 93, ( CASE + COUNT ( * ) WHEN + 42 THEN NULL ELSE - 46 END ) + - 85 * 55 ) WHEN 83 * 3 + COUNT ( * ) THEN NULL WHEN + ( + 50 ) + - 56 * + 80 THEN + 76 * - 50 END / - 56 * 16
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1794
SELECT ALL MIN( - ( 10 ) ) DIV - + 42
----
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL MIN ( - ( 10 ) ) / - + 42
----
0

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

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

query II rowsort
SELECT - - 24 AS col0, 55
----
24
55

query I rowsort
SELECT 39 + + 53 - - 23 + + - 28 * + + 15
----
-305

query I rowsort
SELECT ALL - - 74 * + COALESCE ( - 12, 36 ) AS col1
----
-888

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1799
SELECT 45 col2, 66 DIV COUNT( + 6 ) + + 59
----
45
125

skipif mysql # not compatible
query II rowsort label-1799
SELECT 45 col2, 66 / COUNT ( + 6 ) + + 59
----
45
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1800
SELECT ALL + 26 * - NULLIF ( + 95, 98 * + - 77 + - CAST( NULL AS SIGNED ) + + 33 * - COUNT( * ) )
----
-2470

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + 26 * - NULLIF ( + 95, 98 * + - 77 + - CAST ( NULL AS INTEGER ) + + 33 * - COUNT ( * ) )
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT COUNT( * ) + - - 99 col2
----
100

skipif mysql # not compatible
query I rowsort label-1801
SELECT COUNT ( * ) + - - 99 col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT ( + + COUNT( * ) ) - + 74 + + - 54 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-1802
SELECT ( + + COUNT ( * ) ) - + 74 + + - 54 AS col0
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1803
SELECT DISTINCT - - COUNT( * ) * + - 51 - - MAX( ALL + CAST( NULL AS SIGNED ) ) + - + 67 * - 74 + + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT - - COUNT ( * ) * + - 51 - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - + 67 * - 74 + + 94 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1804
SELECT DISTINCT - CAST( + 13 AS SIGNED ) * - + COUNT( * ) + - 37 + 74 + + 47 * + 68 * - CASE - 69 WHEN 77 THEN - 92 + - - 42 + + 17 * ( - CAST( NULL AS SIGNED ) ) END / + 82 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT - CAST ( + 13 AS INTEGER ) * - + COUNT ( * ) + - 37 + 74 + + 47 * + 68 * - CASE - 69 WHEN 77 THEN - 92 + - - 42 + + 17 * ( - CAST ( NULL AS INTEGER ) ) END / + 82 * - 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1805
SELECT CAST( NULL AS SIGNED ) + + 88 AS col0, + CAST( - 77 AS SIGNED )
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-1805
SELECT CAST ( NULL AS INTEGER ) + + 88 AS col0, + CAST ( - 77 AS INTEGER )
----
NULL
-77

query I rowsort
SELECT 45 - - 29 * 88
----
2597

query I rowsort
SELECT 48 * 62
----
2976

onlyif mysql # DIV for integer division: 
query II rowsort label-1808
SELECT - 75 * ( + - 30 ) + - + 48 + - 54 col1, 4 * 17 * 2 DIV + 72
----
2148
1

skipif mysql # not compatible
query II rowsort label-1808
SELECT - 75 * ( + - 30 ) + - + 48 + - 54 col1, 4 * 17 * 2 / + 72
----
2148
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1809
SELECT ALL 6 * 39 * - 4 * + 25 - - 38 * + - CAST( - 85 AS SIGNED ) - 5 AS col0
----
-20175

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL 6 * 39 * - 4 * + 25 - - 38 * + - CAST ( - 85 AS INTEGER ) - 5 AS col0
----
-20175

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT - 1 + - COUNT( * ) + CASE COUNT( * ) WHEN - + 94 THEN 74 WHEN - 45 * 88 * + + 1 + + + 48 - - 92 + - 86 THEN - 68 END + - COUNT( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT - 1 + - COUNT ( * ) + CASE COUNT ( * ) WHEN - + 94 THEN 74 WHEN - 45 * 88 * + + 1 + + + 48 - - 92 + - 86 THEN - 68 END + - COUNT ( 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1811
SELECT DISTINCT - 33 * - 92 col1, - 48 + - + COUNT( * ) AS col0
----
3036
-49

skipif mysql # not compatible
query II rowsort label-1811
SELECT DISTINCT - 33 * - 92 col1, - 48 + - + COUNT ( * ) AS col0
----
3036
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL + COALESCE ( - ( + 75 ), + 5, - + NULLIF ( CASE + + 98 WHEN + ( + - SUM( - NULLIF ( + 17, + - 9 ) ) ) + NULLIF ( - 20, 30 ) THEN + 84 ELSE 75 END, + 22 ) ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + COALESCE ( - ( + 75 ), + 5, - + NULLIF ( CASE + + 98 WHEN + ( + - SUM ( - NULLIF ( + 17, + - 9 ) ) ) + NULLIF ( - 20, 30 ) THEN + 84 ELSE 75 END, + 22 ) ) col0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1813
SELECT + COUNT( * ) * + 9 + + - 90 + ( + 56 ) + COALESCE ( + + 95, + 79 * - + 47 * - 22 - 70, - - COUNT( * ) * + 84 - + 98 ) + COALESCE ( - 26, 5 ) DIV 59 * 73 * 53 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1813
SELECT + COUNT ( * ) * + 9 + + - 90 + ( + 56 ) + COALESCE ( + + 95, + 79 * - + 47 * - 22 - 70, - - COUNT ( * ) * + 84 - + 98 ) + COALESCE ( - 26, 5 ) / 59 * 73 * 53 AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1814
SELECT ALL + COUNT( + 15 ) AS col1, + 28 * - + 59 * 45
----
1
-74340

skipif mysql # not compatible
query II rowsort label-1814
SELECT ALL + COUNT ( + 15 ) AS col1, + 28 * - + 59 * 45
----
1
-74340

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT MAX( ALL - + NULLIF ( - 42, 80 / - + 45 + 80 ) ) * - COALESCE ( MIN( - 99 ), + 46 * + + COUNT( * ) + - 6 - ( MAX( DISTINCT 17 ) ) * COUNT( * ) ) + 89 * + 51
----
8697

skipif mysql # not compatible
query I rowsort label-1815
SELECT MAX ( ALL - + NULLIF ( - 42, 80 / - + 45 + 80 ) ) * - COALESCE ( MIN ( - 99 ), + 46 * + + COUNT ( * ) + - 6 - ( MAX ( DISTINCT 17 ) ) * COUNT ( * ) ) + 89 * + 51
----
8697

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT DISTINCT - 33 * - - CASE WHEN NOT NULL = - 44 THEN 82 END / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT - 33 * - - CASE WHEN NOT NULL = - 44 THEN 82 END / - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + 79 * - + 15 AS col2
----
-1185

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT - - COUNT( * ) + - 42 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-1818
SELECT - - COUNT ( * ) + - 42 AS col1
----
-41

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

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

query II rowsort
SELECT - + 51 + 98, + 55 AS col0
----
47
55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1822
SELECT DISTINCT + NULLIF ( + - 73, + CAST( NULL AS SIGNED ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT + NULLIF ( + - 73, + CAST ( NULL AS INTEGER ) ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT ALL 69 + - - 23 + - 25 - - - COUNT( ALL + + 65 ), 78 + + 58 * + - 42 col0
----
66
-2358

skipif mysql # not compatible
query II rowsort label-1823
SELECT ALL 69 + - - 23 + - 25 - - - COUNT ( ALL + + 65 ), 78 + + 58 * + - 42 col0
----
66
-2358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT DISTINCT CASE + ( + CAST( NULL AS SIGNED ) ) WHEN - 41 THEN NULL WHEN 10 THEN 23 - + 22 * 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT CASE + ( + CAST ( NULL AS INTEGER ) ) WHEN - 41 THEN NULL WHEN 10 THEN 23 - + 22 * 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT - - CASE + 42 WHEN - - 15 THEN + 71 END * - 54 - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1825
SELECT - - CASE + 42 WHEN - - 15 THEN + 71 END * - 54 - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 77 * - 17
----
-1309

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1827
SELECT DISTINCT 96 * + ( + - COALESCE ( - COALESCE ( - - 51, - - COUNT( * ) * + ( + 7 ) * - 29 ), MIN( - 21 ) DIV + 10 ) ) AS col2
----
4896

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT 96 * + ( + - COALESCE ( - COALESCE ( - - 51, - - COUNT ( * ) * + ( + 7 ) * - 29 ), MIN ( - 21 ) / + 10 ) ) AS col2
----
4896

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

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

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

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

query II rowsort
SELECT + - 0 + + - 17, + 66 AS col0
----
-17
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL 72 + + COUNT( * ) * - 25 + - + ( + SUM( DISTINCT + 18 ) )
----
29

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL 72 + + COUNT ( * ) * - 25 + - + ( + SUM ( DISTINCT + 18 ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL MIN( DISTINCT 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL MIN ( DISTINCT 13 ) AS col0
----
13

query I rowsort
SELECT DISTINCT - - 13 + + - 97
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT + 91 + + ( COUNT( * ) ) * + + 51 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-1834
SELECT + 91 + + ( COUNT ( * ) ) * + + 51 AS col2
----
142

query II rowsort
SELECT + 49 * + 45 * + COALESCE ( + 27, - 28, + + 76 ) col2, 33 AS col2
----
59535
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1836
SELECT DISTINCT COUNT( ALL - + 44 ) DIV 85 - - MAX( DISTINCT + - 75 ) - - 54 * + COUNT( ALL 94 ) + - 77 + - 29 + 58 + + 71 - + - 25 * 54 * + 17 col1
----
22952

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT COUNT ( ALL - + 44 ) / 85 - - MAX ( DISTINCT + - 75 ) - - 54 * + COUNT ( ALL 94 ) + - 77 + - 29 + 58 + + 71 - + - 25 * 54 * + 17 col1
----
22952

query I rowsort
SELECT DISTINCT 96 * - 52 AS col1
----
-4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1838
SELECT DISTINCT - COUNT( * ) DIV + - COUNT( * ) + + + 1 - - 57 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT - COUNT ( * ) / + - COUNT ( * ) + + + 1 - - 57 AS col0
----
59

query I rowsort
SELECT + 19 * + - 2 AS col2
----
-38

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1841
SELECT 73 DIV 25 + + + 53 * + 58
----
3076

skipif mysql # not compatible
query I rowsort label-1841
SELECT 73 / 25 + + + 53 * + 58
----
3076

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1842
SELECT DISTINCT - 7 * + - COUNT( * ) DIV - COALESCE ( + + 98, + 71 ) - - 71 * 27 * 85 * 35 + + - 89 AS col2
----
5702986

skipif mysql # not compatible
query I rowsort label-1842
SELECT DISTINCT - 7 * + - COUNT ( * ) / - COALESCE ( + + 98, + 71 ) - - 71 * 27 * 85 * 35 + + - 89 AS col2
----
5702986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1843
SELECT + CASE + NULLIF ( ( + 91 ), 62 ) WHEN 47 * - - 35 + + - 13 / + CAST( + 81 AS SIGNED ) * - 7 + 60 / - AVG ( 69 ) THEN 94 * 33 + + 36 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1843
SELECT + CASE + NULLIF ( ( + 91 ), 62 ) WHEN 47 * - - 35 + + - 13 / + CAST ( + 81 AS INTEGER ) * - 7 + 60 / - AVG ( 69 ) THEN 94 * 33 + + 36 END AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT 36 * + 98 AS col2
----
3528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1846
SELECT + ( COALESCE ( - MIN( - 45 ), - 85 + - - 36 DIV + 63 DIV + 96 ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1846
SELECT + ( COALESCE ( - MIN ( - 45 ), - 85 + - - 36 / + 63 / + 96 ) ) AS col1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1847
SELECT ALL + COALESCE ( - 17, + ( + 76 ) * 72, - 81 DIV + CASE + COUNT( * ) WHEN 4 * - 0 + + COALESCE ( + - 37, + SUM( + 19 ) + 29 ) THEN - 91 END )
----
-17

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL + COALESCE ( - 17, + ( + 76 ) * 72, - 81 / + CASE + COUNT ( * ) WHEN 4 * - 0 + + COALESCE ( + - 37, + SUM ( + 19 ) + 29 ) THEN - 91 END )
----
-17

query II rowsort
SELECT ( + ( - 75 ) ), + 4 AS col0
----
-75
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT DISTINCT COUNT( - 24 ) * + 85 * + CASE - + 39 WHEN - 83 THEN 55 * - - 14 END - AVG ( ALL 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT COUNT ( - 24 ) * + 85 * + CASE - + 39 WHEN - 83 THEN 55 * - - 14 END - AVG ( ALL 74 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT DISTINCT 0 * - 14 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT 0 * - 14 / - 83
----
0

query II rowsort
SELECT DISTINCT + 6 AS col1, - 74 AS col1
----
6
-74

query I rowsort
SELECT COALESCE ( - + 31, + 91 )
----
-31

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

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

query I rowsort
SELECT + 87 * 57 + - + 59 AS col0
----
4900

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT ALL 95 * CAST( 58 AS SIGNED ) * + 47 + - CASE - 71 WHEN 77 + + - 91 THEN - + 5 WHEN 77 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL 95 * CAST ( 58 AS INTEGER ) * + 47 + - CASE - 71 WHEN 77 + + - 91 THEN - + 5 WHEN 77 THEN NULL END col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1858
SELECT ALL + COALESCE ( + ( + CAST( + 95 AS SIGNED ) ), - NULLIF ( + + NULLIF ( + - 20, + - 14 * - ( - 99 ) + + + MIN( - 42 ) * - 54 * + 45 - 80 - 95 ), + 61 - + 64 * 69 ) DIV 75 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL + COALESCE ( + ( + CAST ( + 95 AS INTEGER ) ), - NULLIF ( + + NULLIF ( + - 20, + - 14 * - ( - 99 ) + + + MIN ( - 42 ) * - 54 * + 45 - 80 - 95 ), + 61 - + 64 * 69 ) / 75 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL + + 44 * - + MIN( 43 ) + - 21 AS col1
----
-1913

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL + + 44 * - + MIN ( 43 ) + - 21 AS col1
----
-1913

query I rowsort
SELECT - - 45 * + - 52
----
-2340

query II rowsort
SELECT DISTINCT 55 col0, 41
----
55
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT DISTINCT 66 * COUNT( * ) + 99 * + 48
----
4818

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT 66 * COUNT ( * ) + 99 * + 48
----
4818

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1863
SELECT NULLIF ( + ( - COALESCE ( + CASE - 82 WHEN - 2 + + 40 THEN NULL WHEN - - 11 THEN + 51 + + CAST( - CASE + - 6 WHEN - + 88 + - 73 THEN - AVG ( ALL - 38 ) WHEN + 5 * - MAX( ALL 51 ) THEN 20 END AS SIGNED ) WHEN SUM( 48 ) THEN NULL ELSE - 41 END, 31, - 82 ) ), 80 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1863
SELECT NULLIF ( + ( - COALESCE ( + CASE - 82 WHEN - 2 + + 40 THEN NULL WHEN - - 11 THEN + 51 + + CAST ( - CASE + - 6 WHEN - + 88 + - 73 THEN - AVG ( ALL - 38 ) WHEN + 5 * - MAX ( ALL 51 ) THEN 20 END AS INTEGER ) WHEN SUM ( 48 ) THEN NULL ELSE - 41 END, 31, - 82 ) ), 80 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT + 48 * - - COUNT( ALL - + 69 ) * + MAX( - + 77 )
----
-3696

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT + 48 * - - COUNT ( ALL - + 69 ) * + MAX ( - + 77 )
----
-3696

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1865
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + CAST( MAX( - 23 ) AS DECIMAL ) * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT + CAST ( NULL AS REAL ) + CAST ( MAX ( - 23 ) AS REAL ) * - 26
----
NULL

query I rowsort
SELECT - 3 + 5 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1867
SELECT ALL + 98 + - COUNT( * ) + 49 DIV + 41 AS col2
----
98

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT - COUNT( * ) AS col2, 98 - - 76
----
-1
174

skipif mysql # not compatible
query II rowsort label-1868
SELECT - COUNT ( * ) AS col2, 98 - - 76
----
-1
174

query II rowsort
SELECT - 45, - 81 + - 70 AS col2
----
-45
-151

query I rowsort
SELECT ALL - 49 + - 75
----
-124

query I rowsort
SELECT - 39 + NULLIF ( + 69, 50 ) - - 4 AS col1
----
34

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

query I rowsort
SELECT - + 68 + + 39
----
-29

query II rowsort
SELECT - + 56 AS col2, + 78 - COALESCE ( + ( + 76 ), - 19 )
----
-56
2

query I rowsort
SELECT ALL 38 - 12 * 36 AS col2
----
-394

query I rowsort
SELECT 13 + - 62 col0
----
-49

query I rowsort
SELECT 58 + - 22 / - 62 * - ( + 27 ) * + 62 + - CASE - ( + ( - 53 ) ) WHEN + - 91 + 7 THEN + - 21 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT 29 * 39 DIV 35
----
32

skipif mysql # not compatible
query I rowsort label-1878
SELECT 29 * 39 / 35
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT ( - MAX( ALL 64 ) ) + 1 + + 39 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1879
SELECT ( - MAX ( ALL 64 ) ) + 1 + + 39 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL - SUM( DISTINCT - - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL - SUM ( DISTINCT - - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT - CASE - 84 WHEN - - 18 * 69 - - 5 THEN + ( + 38 ) + 25 + + + MIN( DISTINCT 9 ) + - 27 - ( - 0 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT - CASE - 84 WHEN - - 18 * 69 - - 5 THEN + ( + 38 ) + 25 + + + MIN ( DISTINCT 9 ) + - 27 - ( - 0 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 24 * + + 39
----
936

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1884
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) + - 93 + - 84 * - 13 / - SUM( ALL 41 ) AS col2, 60 AS col0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1884
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 93 + - 84 * - 13 / - SUM ( ALL 41 ) AS col2, 60 AS col0
----
NULL
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1885
SELECT DISTINCT 53 DIV 89 * + 13
----
0

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT 53 / 89 * + 13
----
0

query I rowsort
SELECT 15 * 96 + - 35 AS col2
----
1405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT + 9 * - 48 * + - NULLIF ( + 30, + + COUNT( * ) ) + + + 99 + + + AVG ( + 25 ) / + 94 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT + 9 * - 48 * + - NULLIF ( + 30, + + COUNT ( * ) ) + + + 99 + + + AVG ( + 25 ) / + 94 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL 88 * - + MAX( + 12 )
----
-1056

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL 88 * - + MAX ( + 12 )
----
-1056

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

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

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

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

query I rowsort
SELECT + 55 * + - 58
----
-3190

query I rowsort
SELECT + 94 + - 4
----
90

query I rowsort
SELECT ALL - ( 18 ) * - 6 AS col0
----
108

query I rowsort
SELECT DISTINCT 86 + - 30 + - 70 + - 96 AS col2
----
-110

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1896
SELECT - 87 * 83 DIV + + 91 + - - 15 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1896
SELECT - 87 * 83 / + + 91 + - - 15 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-1897
SELECT 68 + - 25 AS col1, 72 + 82 * - 79 + + + 72 + - MAX( 85 ) col2
----
43
-6419

skipif mysql # not compatible
query II rowsort label-1897
SELECT 68 + - 25 AS col1, 72 + 82 * - 79 + + + 72 + - MAX ( 85 ) col2
----
43
-6419

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL + 28 + + MAX( 31 ) - 74 + - 67 + 22 + + - 91 + - + 43 + + ( - COUNT( * ) ) * + - 84 * - MIN( DISTINCT + + 28 ) * - 94 * 65 + 7 * + 54 AS col0
----
14370904

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL + 28 + + MAX ( 31 ) - 74 + - 67 + 22 + + - 91 + - + 43 + + ( - COUNT ( * ) ) * + - 84 * - MIN ( DISTINCT + + 28 ) * - 94 * 65 + 7 * + 54 AS col0
----
14370904

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1899
SELECT DISTINCT - 11 DIV 15 DIV 57 - - + 71 AS col0, ( - COUNT( * ) ) col0
----
71
-1

skipif mysql # not compatible
query II rowsort label-1899
SELECT DISTINCT - 11 / 15 / 57 - - + 71 AS col0, ( - COUNT ( * ) ) col0
----
71
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT - MIN( ALL 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-1900
SELECT - MIN ( ALL 93 ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT + COUNT( ALL - + 63 ) + 77
----
78

skipif mysql # not compatible
query I rowsort label-1901
SELECT + COUNT ( ALL - + 63 ) + 77
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1902
SELECT - CAST( 90 AS SIGNED ) AS col1, 46 * + - 28 * 91
----
-90
-117208

skipif mysql # not compatible
query II rowsort label-1902
SELECT - CAST ( 90 AS INTEGER ) AS col1, 46 * + - 28 * 91
----
-90
-117208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1903
SELECT ALL 20 - 37 + - CAST( NULL AS DECIMAL ) * - - 27 * - 72 * + NULLIF ( - CAST( NULL AS SIGNED ), - 40 ) + COALESCE ( + - 42, - CAST( NULL AS DECIMAL ) * - + 27 + 56, + COALESCE ( COUNT( * ), 13 + ( + 34 ) / 34, + 7 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL 20 - 37 + - CAST ( NULL AS REAL ) * - - 27 * - 72 * + NULLIF ( - CAST ( NULL AS INTEGER ), - 40 ) + COALESCE ( + - 42, - CAST ( NULL AS REAL ) * - + 27 + 56, + COALESCE ( COUNT ( * ), 13 + ( + 34 ) / 34, + 7 ) ) col1
----
NULL

query I rowsort
SELECT - 60 * 92 * 34 AS col1
----
-187680

query I rowsort
SELECT ALL - 91 * 44
----
-4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1906
SELECT DISTINCT + COALESCE ( - 86, - + 17 + + 47 DIV + 16 * - 24 ) - + + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT + COALESCE ( - 86, - + 17 + + 47 / + 16 * - 24 ) - + + COUNT ( * )
----
-87

query II rowsort
SELECT ALL 19 AS col1, + 13 + 18 AS col1
----
19
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT 29 * MIN( - 79 ) AS col0
----
-2291

skipif mysql # not compatible
query I rowsort label-1908
SELECT 29 * MIN ( - 79 ) AS col0
----
-2291

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1909
SELECT DISTINCT + 10 DIV + - NULLIF ( + - 47, + COUNT( * ) + SUM( ALL 16 ) * + + 81 )
----
0

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + 10 / + - NULLIF ( + - 47, + COUNT ( * ) + SUM ( ALL 16 ) * + + 81 )
----
0

query I rowsort
SELECT 39 * - + 64 * - 88 * + - 3
----
-658944

query I rowsort
SELECT 74 * + + 89
----
6586

query II rowsort
SELECT ALL 84 AS col2, 2 * - 28 col1
----
84
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT 54 + + 97 - + 14 * COUNT( * ) + - + ( - NULLIF ( + COALESCE ( + ( 95 ), + COUNT( * ) ), 50 ) ) * 65
----
6312

skipif mysql # not compatible
query I rowsort label-1913
SELECT 54 + + 97 - + 14 * COUNT ( * ) + - + ( - NULLIF ( + COALESCE ( + ( 95 ), + COUNT ( * ) ), 50 ) ) * 65
----
6312

query II rowsort
SELECT - 38 AS col2, + 24 AS col0
----
-38
24

query I rowsort
SELECT ALL - 19 * 64
----
-1216

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

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

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

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

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

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

query I rowsort
SELECT 93 * 72 + 92 AS col1
----
6788

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

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

query I rowsort
SELECT ALL + 20 * 76 * 17
----
25840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT 54 * 74 * - 26 DIV COUNT( * )
----
-103896

skipif mysql # not compatible
query I rowsort label-1922
SELECT 54 * 74 * - 26 / COUNT ( * )
----
-103896

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT ALL - 48 + - 0 + 19 DIV 17
----
-47

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL - 48 + - 0 + 19 / 17
----
-47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT COALESCE ( - + 49, + 12 + + 42 * + 55 ) DIV - 87 + - NULLIF ( + 48, + + 57 + - 59 + - 2 * 55 ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-1926
SELECT COALESCE ( - + 49, + 12 + + 42 * + 55 ) / - 87 + - NULLIF ( + 48, + + 57 + - 59 + - 2 * 55 ) col2
----
-48

query I rowsort
SELECT + 83 - 1 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT DISTINCT + CASE + 68 WHEN + - 54 THEN NULL WHEN - 0 + - 6 + + 41 THEN + - 77 + - + COUNT( * ) * - COUNT( * ) + + MAX( ALL + 10 ) + - 90 * + 52 END + - MIN( DISTINCT - 83 ) - + CAST( 52 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT + CASE + 68 WHEN + - 54 THEN NULL WHEN - 0 + - 6 + + 41 THEN + - 77 + - + COUNT ( * ) * - COUNT ( * ) + + MAX ( ALL + 10 ) + - 90 * + 52 END + - MIN ( DISTINCT - 83 ) - + CAST ( 52 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1929
SELECT ALL NULLIF ( - 81, + + 66 * MIN( ALL - 33 ) + + 13 + 11 + + COUNT( + 50 ) + 94 + 60 * + 41 * + - 32 ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL NULLIF ( - 81, + + 66 * MIN ( ALL - 33 ) + + 13 + 11 + + COUNT ( + 50 ) + 94 + 60 * + 41 * + - 32 ) / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT DISTINCT + SUM( ALL - 40 ) + - 48 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT + SUM ( ALL - 40 ) + - 48 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT DISTINCT - ( - ( - ( NULLIF ( + + 71, + COUNT( * ) ) ) ) ) + 46
----
-25

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT - ( - ( - ( NULLIF ( + + 71, + COUNT ( * ) ) ) ) ) + 46
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1932
SELECT DISTINCT - 1 * + - 51 DIV 26 * - CAST( - 93 AS SIGNED ) AS col1, - COALESCE ( - 5, - - 20 DIV 76 DIV - - COUNT( * ) DIV COUNT( - 84 ) * - 21 + + COUNT( * ) * - + ( - 39 ) * - ( - 45 ) )
----
93
5

skipif mysql # not compatible
query II rowsort label-1932
SELECT DISTINCT - 1 * + - 51 / 26 * - CAST ( - 93 AS INTEGER ) AS col1, - COALESCE ( - 5, - - 20 / 76 / - - COUNT ( * ) / COUNT ( - 84 ) * - 21 + + COUNT ( * ) * - + ( - 39 ) * - ( - 45 ) )
----
93
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT - MIN( - 22 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1933
SELECT - MIN ( - 22 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 32 * + 70 + - 30
----
-2270

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

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

query I rowsort
SELECT DISTINCT 20 * ( - 57 ) + + + ( + 57 ) * + 56 * + 22 AS col1
----
69084

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL - MAX( - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL - MAX ( - 69 )
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT DISTINCT - SUM( ALL - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT - SUM ( ALL - 93 )
----
93

query I rowsort
SELECT DISTINCT + 88 - - - 44
----
44

query I rowsort
SELECT + 88 + - 76 * + 70 - - 30
----
-5202

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1943
SELECT + - CASE + ( 29 ) WHEN + 4 * + 22 + - 44 * + 36 THEN - 98 ELSE + - 40 END - + CAST( NULL AS DECIMAL ) * + - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT + - CASE + ( 29 ) WHEN + 4 * + 22 + - 44 * + 36 THEN - 98 ELSE + - 40 END - + CAST ( NULL AS REAL ) * + - 48 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT + + ( 1 ) * - + CASE - 96 WHEN 87 - + 33 - - 47 + + 3 - - 54 * 8 + - 26 THEN - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT + + ( 1 ) * - + CASE - 96 WHEN 87 - + 33 - - 47 + + 3 - - 54 * 8 + - 26 THEN - + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 91 + + 12 AS col0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-1946
SELECT - 16 AS col1, - MIN( + 52 )
----
-16
-52

skipif mysql # not compatible
query II rowsort label-1946
SELECT - 16 AS col1, - MIN ( + 52 )
----
-16
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT + 67 + - COUNT( * ) * 93 + 89 + 30 * + 1 + + MIN( 98 )
----
191

skipif mysql # not compatible
query I rowsort label-1947
SELECT + 67 + - COUNT ( * ) * 93 + 89 + 30 * + 1 + + MIN ( 98 )
----
191

onlyif mysql # DIV for integer division: 
query II rowsort label-1948
SELECT + 84 DIV + - 4 AS col2, + 57
----
-21
57

skipif mysql # not compatible
query II rowsort label-1948
SELECT + 84 / + - 4 AS col2, + 57
----
-21
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1949
SELECT ALL COUNT( * ), 55 * + 60 + + 39 AS col1
----
1
3339

skipif mysql # not compatible
query II rowsort label-1949
SELECT ALL COUNT ( * ), 55 * + 60 + + 39 AS col1
----
1
3339

query I rowsort
SELECT + 61 + 89
----
150

query II rowsort
SELECT DISTINCT 31 col1, 49
----
31
49

query I rowsort
SELECT ALL + 88 * - 17 * + + 1
----
-1496

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1953
SELECT - CASE + 19 WHEN + 82 - - + COALESCE ( - + COUNT( DISTINCT - 72 ), - 80 / + + 74 * - 36 ) * 47 THEN - + 64 + + 12 WHEN COALESCE ( + 95, + + CASE - - 89 WHEN 89 * + NULLIF ( 62, + 6 + + 39 ) THEN + 94 ELSE 67 + CAST( - NULLIF ( - 30, 17 ) AS DECIMAL ) / + 95 END * 40, 10 * 11 ) THEN NULL END / + 14 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT - CASE + 19 WHEN + 82 - - + COALESCE ( - + COUNT ( DISTINCT - 72 ), - 80 / + + 74 * - 36 ) * 47 THEN - + 64 + + 12 WHEN COALESCE ( + 95, + + CASE - - 89 WHEN 89 * + NULLIF ( 62, + 6 + + 39 ) THEN + 94 ELSE 67 + CAST ( - NULLIF ( - 30, 17 ) AS REAL ) / + 95 END * 40, 10 * 11 ) THEN NULL END / + 14 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1954
SELECT DISTINCT CASE 33 WHEN - 35 THEN NULL WHEN + MIN( + 0 ) THEN - 76 * - 74 WHEN CASE + 67 WHEN 38 * - 36 + - - 38 + NULLIF ( + + NULLIF ( + 68, + CAST( NULL AS DECIMAL ) ), - 52 ) THEN - 29 - 52 END * + 17 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT CASE 33 WHEN - 35 THEN NULL WHEN + MIN ( + 0 ) THEN - 76 * - 74 WHEN CASE + 67 WHEN 38 * - 36 + - - 38 + NULLIF ( + + NULLIF ( + 68, + CAST ( NULL AS REAL ) ), - 52 ) THEN - 29 - 52 END * + 17 THEN NULL END
----
NULL

query I rowsort
SELECT - NULLIF ( 74, - - 31 )
----
-74

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

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

query II rowsort
SELECT DISTINCT + 50, + 3 AS col1
----
50
3

query I rowsort
SELECT - CASE - 57 WHEN - + 58 THEN - 62 WHEN + + 89 THEN NULL END * - - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT ALL 51 * + 39 + - COUNT( * ) AS col1
----
1988

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL 51 * + 39 + - COUNT ( * ) AS col1
----
1988

query I rowsort
SELECT DISTINCT + + 38 * 3 * - - 22 col1
----
2508

onlyif mysql # aggregate syntax: 
query II rowsort label-1962
SELECT ALL + COUNT( 29 ) * - 17 * 43 + - MAX( + 23 ) col1, + 72 * - - NULLIF ( + + COALESCE ( 29, + 32 ), + - 80 * + - 33 + - + MIN( ALL - - 39 ) )
----
-754
2088

skipif mysql # not compatible
query II rowsort label-1962
SELECT ALL + COUNT ( 29 ) * - 17 * 43 + - MAX ( + 23 ) col1, + 72 * - - NULLIF ( + + COALESCE ( 29, + 32 ), + - 80 * + - 33 + - + MIN ( ALL - - 39 ) )
----
-754
2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1963
SELECT DISTINCT + CAST( + COUNT( - - CAST( + + 38 AS SIGNED ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT + CAST ( + COUNT ( - - CAST ( + + 38 AS INTEGER ) ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT + SUM( ALL + 22 ) * - 61 + - COUNT( * ) * - + NULLIF ( - CASE - 32 WHEN + + 45 + - 94 / - - 4 THEN - + CAST( + 28 AS SIGNED ) WHEN - 56 - + - COALESCE ( - - NULLIF ( - + ( 44 ), + 72 - 31 * 25 ), AVG ( - CAST( 10 AS SIGNED ) ) ) THEN COALESCE ( - 66, 8 ) + 12 * 65 END, 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT + SUM ( ALL + 22 ) * - 61 + - COUNT ( * ) * - + NULLIF ( - CASE - 32 WHEN + + 45 + - 94 / - - 4 THEN - + CAST ( + 28 AS INTEGER ) WHEN - 56 - + - COALESCE ( - - NULLIF ( - + ( 44 ), + 72 - 31 * 25 ), AVG ( - CAST ( 10 AS INTEGER ) ) ) THEN COALESCE ( - 66, 8 ) + 12 * 65 END, 74 )
----
NULL

query I rowsort
SELECT - - 66 - + 2
----
64

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1967
SELECT + COALESCE ( 89, + 14 ) DIV - + 3 + + SUM( + ( + 5 ) ) + + 61 + 78 DIV - - 89 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-1967
SELECT + COALESCE ( 89, + 14 ) / - + 3 + + SUM ( + ( + 5 ) ) + + 61 + 78 / - - 89 AS col1
----
37

query II rowsort
SELECT DISTINCT + 80, + 37 col0
----
80
37

onlyif mysql # aggregate syntax: 
query II rowsort label-1969
SELECT ALL + - COUNT( * ), 82 * - - SUM( DISTINCT - 8 ) * + + NULLIF ( + 11, - - 61 ) AS col1
----
-1
-7216

skipif mysql # not compatible
query II rowsort label-1969
SELECT ALL + - COUNT ( * ), 82 * - - SUM ( DISTINCT - 8 ) * + + NULLIF ( + 11, - - 61 ) AS col1
----
-1
-7216

query I rowsort
SELECT - 78 + + - 29
----
-107

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1972
SELECT ALL + 98 AS col0, 24 * - 48 * NULLIF ( + CAST( NULL AS SIGNED ), - - 18 ) * COALESCE ( - ( + - 87 ), NULLIF ( + - 69, + + 73 ), + CAST( + + CAST( NULL AS DECIMAL ) AS DECIMAL ) * ( + + 62 ) )
----
98
NULL

skipif mysql # not compatible
query II rowsort label-1972
SELECT ALL + 98 AS col0, 24 * - 48 * NULLIF ( + CAST ( NULL AS INTEGER ), - - 18 ) * COALESCE ( - ( + - 87 ), NULLIF ( + - 69, + + 73 ), + CAST ( + + CAST ( NULL AS REAL ) AS REAL ) * ( + + 62 ) )
----
98
NULL

query I rowsort
SELECT - 92 + + 95
----
3

query I rowsort
SELECT - 12 * + - 42 + 27 AS col1
----
531

onlyif mysql # aggregate syntax: 
query II rowsort label-1975
SELECT ALL + - COUNT( * ) AS col1, + 27 * + 25
----
-1
675

skipif mysql # not compatible
query II rowsort label-1975
SELECT ALL + - COUNT ( * ) AS col1, + 27 * + 25
----
-1
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT + 19 + + CAST( 44 AS SIGNED ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1976
SELECT + 19 + + CAST ( 44 AS INTEGER ) AS col1
----
63

query II rowsort
SELECT ALL + + 58 AS col1, - 10 col2
----
58
-10

query I rowsort
SELECT + 33 * + 65 AS col2
----
2145

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

query I rowsort
SELECT + + 90 + - NULLIF ( + + ( 4 ), - 37 ) AS col2
----
86

query II rowsort
SELECT - - 56 AS col1, + ( 78 ) AS col1
----
56
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1982
SELECT + - 15 + 81, MAX( + + 52 ) + + 71 - 62 col1
----
66
61

skipif mysql # not compatible
query II rowsort label-1982
SELECT + - 15 + 81, MAX ( + + 52 ) + + 71 - 62 col1
----
66
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1983
SELECT - CASE 56 WHEN + 75 * - COUNT( * ) THEN NULL WHEN + + 99 * + + CAST( NULL AS DECIMAL ) THEN + + 57 * + 62 WHEN - 63 * - - CAST( NULL AS SIGNED ) THEN CAST( NULL AS DECIMAL ) END * 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1983
SELECT - CASE 56 WHEN + 75 * - COUNT ( * ) THEN NULL WHEN + + 99 * + + CAST ( NULL AS REAL ) THEN + + 57 * + 62 WHEN - 63 * - - CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS REAL ) END * 5 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 81 AS col2, - 35 col1
----
81
-35

query I rowsort
SELECT ALL 79 * - 11 AS col0
----
-869

query I rowsort
SELECT ALL 72 * 39 * + 94
----
263952

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT + COUNT( DISTINCT + - 13 ) * - + 93
----
-93

skipif mysql # not compatible
query I rowsort label-1987
SELECT + COUNT ( DISTINCT + - 13 ) * - + 93
----
-93

query I rowsort
SELECT DISTINCT ( + 6 ) + + 82 * + 44
----
3614

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

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

skipif mysql # not compatible
query I rowsort label-1990
SELECT + COUNT ( * ) * - - 38 / + - 21
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT - NULLIF ( CAST( NULL AS SIGNED ), + 71 * + 76 + + 58 * 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1991
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), + 71 * + 76 + + 58 * 16 )
----
NULL

query I rowsort
SELECT DISTINCT 71 + - + 43 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT DISTINCT 36 + + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-1993
SELECT DISTINCT 36 + + - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1994
SELECT + 47 - 36 + + 39 DIV - 96 + 37 + - + 40 + + NULLIF ( - - 50, + COUNT( * ) * 99 * - - 82 DIV + - 27 * - 28 ) * + COUNT( * ) * 15 AS col2, + 89 * + 25 + + 99 AS col0
----
758
2324

skipif mysql # not compatible
query II rowsort label-1994
SELECT + 47 - 36 + + 39 / - 96 + 37 + - + 40 + + NULLIF ( - - 50, + COUNT ( * ) * 99 * - - 82 / + - 27 * - 28 ) * + COUNT ( * ) * 15 AS col2, + 89 * + 25 + + 99 AS col0
----
758
2324

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT ALL - MIN( 7 ) * + 77 AS col1
----
-539

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL - MIN ( 7 ) * + 77 AS col1
----
-539

query I rowsort
SELECT DISTINCT + 3 + + + COALESCE ( 73, 50 )
----
76

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

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

query I rowsort
SELECT ALL + 6 * + 61
----
366

query I rowsort
SELECT - 10 + + + 62 + - ( - 36 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + ( - + COUNT( * ) ) * + 29 * - - 60
----
-1740

skipif mysql # not compatible
query I rowsort label-2000
SELECT + ( - + COUNT ( * ) ) * + 29 * - - 60
----
-1740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2001
SELECT - CASE + COALESCE ( + + CAST( NULL AS SIGNED ), 49 * + 19 * 72 * - 18 + 47 + 86 * + + 51 * - CASE - 2 WHEN - + 51 / - - 8 THEN NULL WHEN + COUNT( * ) THEN COUNT( * ) + - 83 * + 24 WHEN - 9 THEN 75 + + 82 END, 36 * + 3 ) WHEN 67 THEN COUNT( * ) ELSE + ( 87 ) * + 88 END + COUNT( * ) AS col1
----
-7655

skipif mysql # not compatible
query I rowsort label-2001
SELECT - CASE + COALESCE ( + + CAST ( NULL AS INTEGER ), 49 * + 19 * 72 * - 18 + 47 + 86 * + + 51 * - CASE - 2 WHEN - + 51 / - - 8 THEN NULL WHEN + COUNT ( * ) THEN COUNT ( * ) + - 83 * + 24 WHEN - 9 THEN 75 + + 82 END, 36 * + 3 ) WHEN 67 THEN COUNT ( * ) ELSE + ( 87 ) * + 88 END + COUNT ( * ) AS col1
----
-7655

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT ALL + - CASE - - COUNT( * ) WHEN - 32 * - 99 THEN - COALESCE ( - 54, - 6 * + 10 * + - 60 ) / - 86 + - 59 + 15 WHEN + - 52 + - - 11 * - 84 THEN 77 END * + COUNT( ALL - 50 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL + - CASE - - COUNT ( * ) WHEN - 32 * - 99 THEN - COALESCE ( - 54, - 6 * + 10 * + - 60 ) / - 86 + - 59 + 15 WHEN + - 52 + - - 11 * - 84 THEN 77 END * + COUNT ( ALL - 50 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - 70 * + - COUNT( * ) + NULLIF ( + 87, + + 58 ) + - 14 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-2003
SELECT - 70 * + - COUNT ( * ) + NULLIF ( + 87, + + 58 ) + - 14 AS col2
----
143

query I rowsort
SELECT ALL - 39 * + 56
----
-2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2005
SELECT COUNT( * ) - + 51 + 80 DIV - COALESCE ( - 85, - + NULLIF ( + 92, - 72 + - 90 DIV 59 ) ) * 19
----
-50

skipif mysql # not compatible
query I rowsort label-2005
SELECT COUNT ( * ) - + 51 + 80 / - COALESCE ( - 85, - + NULLIF ( + 92, - 72 + - 90 / 59 ) ) * 19
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL - + ( + COUNT( * ) ) * + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL - + ( + COUNT ( * ) ) * + COUNT ( * ) col2
----
-1

query I rowsort
SELECT DISTINCT + 78 + + 18
----
96

query I rowsort
SELECT ALL 32 + + 77 AS col2
----
109

query II rowsort
SELECT 36 AS col2, + 26
----
36
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL + SUM( ALL 56 ) + - ( + 42 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + SUM ( ALL 56 ) + - ( + 42 ) AS col0
----
14

query II rowsort
SELECT DISTINCT 21 AS col1, - 63 AS col2
----
21
-63

query I rowsort
SELECT 67 * 86
----
5762

query I rowsort
SELECT ALL 25 + - 35 * - 61 + - 70
----
2090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2014
SELECT ALL + 33 + - - 17 DIV + 58 - + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL + 33 + - - 17 / + 58 - + COUNT ( * ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT CASE + 75 WHEN 22 + 34 THEN NULL WHEN + ( + 4 ) THEN - - 3 * 89 ELSE - CASE - 71 WHEN - + COUNT( * ) * + 97 THEN + CASE 52 WHEN 59 * - 6 THEN NULL ELSE - 6 END * - - 25 WHEN AVG ( + 87 ) * + 99 - 92 THEN - 50 ELSE 92 END END - 24 AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-2015
SELECT CASE + 75 WHEN 22 + 34 THEN NULL WHEN + ( + 4 ) THEN - - 3 * 89 ELSE - CASE - 71 WHEN - + COUNT ( * ) * + 97 THEN + CASE 52 WHEN 59 * - 6 THEN NULL ELSE - 6 END * - - 25 WHEN AVG ( + 87 ) * + 99 - 92 THEN - 50 ELSE 92 END END - 24 AS col0
----
-116

query I rowsort
SELECT 57 + 11 AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2017
SELECT 93 - + - 79 DIV 92 DIV - + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2017
SELECT 93 - + - 79 / 92 / - + COUNT ( * ) AS col2
----
93

query I rowsort
SELECT ALL 89 + - - 90
----
179

onlyif mysql # aggregate syntax: 
query II rowsort label-2019
SELECT - 38 AS col1, COUNT( * ) * + + 76 AS col2
----
-38
76

skipif mysql # not compatible
query II rowsort label-2019
SELECT - 38 AS col1, COUNT ( * ) * + + 76 AS col2
----
-38
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT ( CAST( + + 94 AS SIGNED ) ) * + 42 * + - 2 AS col0
----
-7896

skipif mysql # not compatible
query I rowsort label-2020
SELECT ( CAST ( + + 94 AS INTEGER ) ) * + 42 * + - 2 AS col0
----
-7896

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL COUNT( + 5 ) + + - 3 * - + 36 + + 68
----
177

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL COUNT ( + 5 ) + + - 3 * - + 36 + + 68
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL COUNT( ALL + + 7 ) * - + 74 * - + 72
----
5328

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL COUNT ( ALL + + 7 ) * - + 74 * - + 72
----
5328

query I rowsort
SELECT DISTINCT + 16 + - + 10 + - 50 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2024
SELECT 92 + - 74 + + COUNT( * ) AS col1, 38 * + - COUNT( * ) * + + 18 - 52 + NULLIF ( 44, + 47 + - + 20 + - 8 - 72 ) + + - ( ( - 33 ) ) * + MIN( DISTINCT + - 26 ) - + 76 col1
----
19
-1626

skipif mysql # not compatible
query II rowsort label-2024
SELECT 92 + - 74 + + COUNT ( * ) AS col1, 38 * + - COUNT ( * ) * + + 18 - 52 + NULLIF ( 44, + 47 + - + 20 + - 8 - 72 ) + + - ( ( - 33 ) ) * + MIN ( DISTINCT + - 26 ) - + 76 col1
----
19
-1626

query I rowsort
SELECT ALL - 98 + + NULLIF ( 6, 30 )
----
-92

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

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL COUNT ( * ) - + COUNT ( * ) / + 25 AS col0
----
1

query I rowsort
SELECT 79 + 66 AS col2
----
145

query I rowsort
SELECT 82 * - - 67
----
5494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2029
SELECT 18 + - 23 + - 39 DIV 77 + + + 20 * - 15 + + COUNT( * ) * 85 + 94
----
-126

skipif mysql # not compatible
query I rowsort label-2029
SELECT 18 + - 23 + - 39 / 77 + + + 20 * - 15 + + COUNT ( * ) * 85 + 94
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT + COALESCE ( + + MIN( ALL - + ( + 91 ) ), - 9 ) - - CASE - MAX( + - COALESCE ( + - ( - - 54 ), - 1 * - 14, 77 + - 7 ) ) WHEN + 25 THEN COALESCE ( - 9, 69 + 91 ) * + 33 + ( - NULLIF ( COUNT( * ), 74 ) + - 19 ) * 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT + COALESCE ( + + MIN ( ALL - + ( + 91 ) ), - 9 ) - - CASE - MAX ( + - COALESCE ( + - ( - - 54 ), - 1 * - 14, 77 + - 7 ) ) WHEN + 25 THEN COALESCE ( - 9, 69 + 91 ) * + 33 + ( - NULLIF ( COUNT ( * ), 74 ) + - 19 ) * 63 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT ALL - CAST( - 27 AS SIGNED ) * 21 - 43 AS col2
----
524

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL - CAST ( - 27 AS INTEGER ) * 21 - 43 AS col2
----
524

query I rowsort
SELECT 89 * 66 - + 48 + - 99
----
5727

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

query I rowsort
SELECT ALL - - NULLIF ( + NULLIF ( + - CASE 32 WHEN + + 53 * - - ( + + 40 ) + + + 46 + + 28 + 5 THEN NULL ELSE - 58 * - + 72 END, - 15 ), - - ( - 1 ) * + 5 * 66 + 50 ) AS col2
----
-4176

query I rowsort
SELECT + 88 * - 44 AS col1
----
-3872

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2036
SELECT NULLIF ( - - ( 32 ), - CAST( NULL AS SIGNED ) ) DIV - - 90 - - 94 DIV - ( + - 49 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2036
SELECT NULLIF ( - - ( 32 ), - CAST ( NULL AS INTEGER ) ) / - - 90 - - 94 / - ( + - 49 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2037
SELECT ALL - - 71 AS col2, - ( - 25 ) DIV - 26 + - + 29 + + ( + COUNT( * ) ) AS col2
----
71
-28

skipif mysql # not compatible
query II rowsort label-2037
SELECT ALL - - 71 AS col2, - ( - 25 ) / - 26 + - + 29 + + ( + COUNT ( * ) ) AS col2
----
71
-28

query I rowsort
SELECT 73 * + 1 + - 89 + + 51 AS col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT ALL - + CASE + 10 WHEN - ( + - 79 ) * 65 THEN ( - - 98 ) + 25 * CAST( + 33 AS SIGNED ) WHEN - COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL - + CASE + 10 WHEN - ( + - 79 ) * 65 THEN ( - - 98 ) + 25 * CAST ( + 33 AS INTEGER ) WHEN - COUNT ( * ) THEN NULL END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT COUNT( * ) * - + COALESCE ( + COUNT( * ), 24, + 6 + - 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-2041
SELECT COUNT ( * ) * - + COALESCE ( + COUNT ( * ), 24, + 6 + - 75 )
----
-1

query I rowsort
SELECT + + CASE - 59 WHEN - 90 * + 83 THEN + 64 END AS col0
----
NULL

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

query I rowsort
SELECT ( - - 41 ) + 91 + 69 * - 65
----
-4353

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL - + CASE - 29 WHEN 99 THEN NULL WHEN - COUNT( - 21 ) THEN NULL ELSE + - 47 * + 41 + 78 - + - 68 END
----
1781

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - + CASE - 29 WHEN 99 THEN NULL WHEN - COUNT ( - 21 ) THEN NULL ELSE + - 47 * + 41 + 78 - + - 68 END
----
1781

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2046
SELECT ALL - 43 + + 23 DIV - CAST( - NULLIF ( + + 16, 58 ) AS SIGNED ) + + - 64 * 46 * + 85 * - 72
----
18017238

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - 43 + + 23 / - CAST ( - NULLIF ( + + 16, 58 ) AS INTEGER ) + + - 64 * 46 * + 85 * - 72
----
18017238

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT 38 * - 34 * CASE + ( - 22 ) WHEN - SUM( + 5 ) THEN - 94 ELSE NULL END + - 9 * + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT 38 * - 34 * CASE + ( - 22 ) WHEN - SUM ( + 5 ) THEN - 94 ELSE NULL END + - 9 * + 99
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2048
SELECT ALL - 92 + - - 33 AS col1, + SUM( - 5 ) * + + 70 * + + NULLIF ( COUNT( * ), - 99 )
----
-59
-350

skipif mysql # not compatible
query II rowsort label-2048
SELECT ALL - 92 + - - 33 AS col1, + SUM ( - 5 ) * + + 70 * + + NULLIF ( COUNT ( * ), - 99 )
----
-59
-350

query I rowsort
SELECT 67 + + 31
----
98

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

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

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL - 1 + - + 8 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 48 * + 32 col1
----
1536

query I rowsort
SELECT 83 + 87 + + 72
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT 93 + - MIN( ALL 92 ) + + 97 + ( - 90 ) * - 92 + - + 9 + + 72 AS col0
----
8441

skipif mysql # not compatible
query I rowsort label-2054
SELECT 93 + - MIN ( ALL 92 ) + + 97 + ( - 90 ) * - 92 + - + 9 + + 72 AS col0
----
8441

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL + 29 + - SUM( DISTINCT - - 98 ) + 71 * - 24 AS col1
----
-1773

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + 29 + - SUM ( DISTINCT - - 98 ) + 71 * - 24 AS col1
----
-1773

query II rowsort
SELECT DISTINCT - 75 * 26, 1 + 65 AS col0
----
-1950
66

query II rowsort
SELECT 2 * + 76 + + CASE + 22 WHEN + 10 + - 52 THEN NULL WHEN 91 THEN - 50 END * - 89 AS col0, + 23 * + 11 * 65 * - 79 AS col0
----
NULL
-1299155

query I rowsort
SELECT 73 * - 2 AS col2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL + 30 + 95 + 24 + - + NULLIF ( - + ( CASE - + 68 WHEN + ( - + 40 ) THEN - ( - - ( - 9 ) ) * + COALESCE ( + 6, - NULLIF ( 22, + - COALESCE ( + 3, + CASE 8 WHEN 1 + + 29 THEN 78 / MIN( - 72 ) ELSE NULL END ) * MAX( ALL - 50 ) + COUNT( * ) ), - 67 ) * 13 + - ( 87 ) ELSE + 48 + 62 END ), + 81 * 85 ) * + 13 col0
----
1579

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + 30 + 95 + 24 + - + NULLIF ( - + ( CASE - + 68 WHEN + ( - + 40 ) THEN - ( - - ( - 9 ) ) * + COALESCE ( + 6, - NULLIF ( 22, + - COALESCE ( + 3, + CASE 8 WHEN 1 + + 29 THEN 78 / MIN ( - 72 ) ELSE NULL END ) * MAX ( ALL - 50 ) + COUNT ( * ) ), - 67 ) * 13 + - ( 87 ) ELSE + 48 + 62 END ), + 81 * 85 ) * + 13 col0
----
1579

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT + CASE 33 WHEN 41 THEN - COUNT( * ) END - - - 13 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT + CASE 33 WHEN 41 THEN - COUNT ( * ) END - - - 13 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT MAX( ALL ( 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT MAX ( ALL ( 99 ) )
----
99

query II rowsort
SELECT 73 - - 34 + + 23 * + 84, - 44 + - 24 + + + 34 col1
----
2039
-34

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

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

query I rowsort
SELECT 82 - ( - 80 ) AS col1
----
162

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2067
SELECT ALL - CASE + - 85 WHEN 52 * 71 + CAST( NULL AS DECIMAL ) + - + CAST( NULL AS SIGNED ) THEN COALESCE ( - 21, 59 * 5, - 6 * 42 - 45 + + 34 ) END - - + ( - + 67 ) + - 61 * + 79 + - - ( + 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL - CASE + - 85 WHEN 52 * 71 + CAST ( NULL AS REAL ) + - + CAST ( NULL AS INTEGER ) THEN COALESCE ( - 21, 59 * 5, - 6 * 42 - 45 + + 34 ) END - - + ( - + 67 ) + - 61 * + 79 + - - ( + 82 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT + + COUNT( * ) * + 47 - - - 64 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT + + COUNT ( * ) * + 47 - - - 64 AS col0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT + 36 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-2069
SELECT + 36 / - 55
----
0

query I rowsort
SELECT ALL 75 * + ( + 34 ) - 61 + 26 * - - 29 * 15 AS col1
----
13799

query I rowsort
SELECT - ( + 5 ) + - - 65 col1
----
60

query I rowsort
SELECT DISTINCT + - 72 * - 86 AS col1
----
6192

query I rowsort
SELECT DISTINCT - - 60 * + + 73
----
4380

query I rowsort
SELECT ALL + - 42 col0
----
-42

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + - 2 + + - SUM( ALL - + 93 )
----
91

skipif mysql # not compatible
query I rowsort label-2077
SELECT + - 2 + + - SUM ( ALL - + 93 )
----
91

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

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

query I rowsort
SELECT + + 28 * + ( + 69 )
----
1932

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

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT 0 * COUNT ( * ) - - + 10 AS col2
----
10

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

query I rowsort
SELECT + 88 * - 55 * + NULLIF ( + + 12, - 42 + - - 47 ) + 72
----
-58008

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT - 45 * + - CASE + + 48 WHEN - 67 THEN - 68 WHEN - 22 THEN + + 9 ELSE NULL END * - ( COUNT( * ) ) / + + 9 + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT - 45 * + - CASE + + 48 WHEN - 67 THEN - 68 WHEN - 22 THEN + + 9 ELSE NULL END * - ( COUNT ( * ) ) / + + 9 + - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT + COALESCE ( 7, COALESCE ( + - 8, + 67, ( + 39 ) ) * + 52 * ( - 24 ), 64 + 0 + - COUNT( * ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2084
SELECT + COALESCE ( 7, COALESCE ( + - 8, + 67, ( + 39 ) ) * + 52 * ( - 24 ), 64 + 0 + - COUNT ( * ) ) AS col2
----
7

query I rowsort
SELECT + COALESCE ( - - ( 34 ), + ( - 57 ), + + ( - 59 ) ) AS col1
----
34

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

skipif mysql # not compatible
query I rowsort label-2086
SELECT - 84 * COUNT ( * )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2087
SELECT DISTINCT 48 * COUNT( * ) DIV + ( - 50 ) + CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT 48 * COUNT ( * ) / + ( - 50 ) + CAST ( COUNT ( * ) AS INTEGER )
----
1

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

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

query II rowsort
SELECT ALL + 47, 48 AS col0
----
47
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT COUNT( * ) * 78 - 4 + - + COUNT( * ) + + 1 * 90 + + + 1
----
164

skipif mysql # not compatible
query I rowsort label-2090
SELECT COUNT ( * ) * 78 - 4 + - + COUNT ( * ) + + 1 * 90 + + + 1
----
164

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

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

query I rowsort
SELECT 35 * - 43 + + 24 * + 72
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2093
SELECT + CAST( 92 AS SIGNED ) + - ( - + COUNT( * ) ) col0
----
93

skipif mysql # not compatible
query I rowsort label-2093
SELECT + CAST ( 92 AS INTEGER ) + - ( - + COUNT ( * ) ) col0
----
93

query I rowsort
SELECT - 94 - - + 34
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-2095
SELECT ALL COUNT( * ) AS col2, - 31 * + 91 * + 2
----
1
-5642

skipif mysql # not compatible
query II rowsort label-2095
SELECT ALL COUNT ( * ) AS col2, - 31 * + 91 * + 2
----
1
-5642

query I rowsort
SELECT - 88 * - ( 74 ) AS col1
----
6512

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

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

query I rowsort
SELECT DISTINCT 5 * - 0
----
0

query I rowsort
SELECT ALL + - 70 * + + 65
----
-4550

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT - 47 + - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-2101
SELECT - 47 + - COUNT ( * )
----
-48

query I rowsort
SELECT - + 12 + + 56 - + + 39
----
5

query I rowsort
SELECT - - 6 * + - 39 AS col0
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2104
SELECT DISTINCT + COUNT( * ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT + COUNT ( * ) / + 50
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2106
SELECT ALL + COUNT( * ) DIV - 33 + + 46 + - + 41 + - 32 DIV 29
----
4

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + COUNT ( * ) / - 33 + + 46 + - + 41 + - 32 / 29
----
4

query I rowsort
SELECT - 63 * 26 AS col0
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL + 7 * + SUM( - 78 ) * + - COUNT( 28 ) + 85 AS col2
----
631

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL + 7 * + SUM ( - 78 ) * + - COUNT ( 28 ) + 85 AS col2
----
631

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT 96 DIV - 1 + + ( - + 28 ) AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-2109
SELECT 96 / - 1 + + ( - + 28 ) AS col0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT - 82 * 40 + - NULLIF ( NULLIF ( + 12, - - COALESCE ( + 62, - + COUNT( * ) ) * 11 ), + CASE - COUNT( * ) WHEN 65 THEN - 70 ELSE 65 END )
----
-3292

skipif mysql # not compatible
query I rowsort label-2110
SELECT - 82 * 40 + - NULLIF ( NULLIF ( + 12, - - COALESCE ( + 62, - + COUNT ( * ) ) * 11 ), + CASE - COUNT ( * ) WHEN 65 THEN - 70 ELSE 65 END )
----
-3292

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT ALL + 22 col2, + MIN( 83 ) * + 26 + - 29 * + - 23 * - - COUNT( * ) * 39 * - 3 * - + 56 + + - 20 + - 44 + - - 2 AS col2
----
22
4372280

skipif mysql # not compatible
query II rowsort label-2112
SELECT ALL + 22 col2, + MIN ( 83 ) * + 26 + - 29 * + - 23 * - - COUNT ( * ) * 39 * - 3 * - + 56 + + - 20 + - 44 + - - 2 AS col2
----
22
4372280

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2114
SELECT + 1 * COUNT( * ) * - - 94 * + MIN( DISTINCT + ( - 67 ) ) DIV + COUNT( - 64 ) + 45, 82 AS col2
----
-6253
82

skipif mysql # not compatible
query II rowsort label-2114
SELECT + 1 * COUNT ( * ) * - - 94 * + MIN ( DISTINCT + ( - 67 ) ) / + COUNT ( - 64 ) + 45, 82 AS col2
----
-6253
82

query I rowsort
SELECT + 26 * 42 * - 93 + 72
----
-101484

query I rowsort
SELECT + 38 * 3 + 39 * 59
----
2415

query I rowsort
SELECT DISTINCT + 25 col2
----
25

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2119
SELECT ALL COUNT( * ) * 3 DIV - - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL COUNT ( * ) * 3 / - - COUNT ( * )
----
3

query I rowsort
SELECT + COALESCE ( + 50, + 63 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT CASE + 93 WHEN + - COUNT( ALL + + 40 ) + 71 THEN - + 30 + + COUNT( * ) ELSE + + 25 END * + - ( - SUM( 62 ) )
----
1550

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT CASE + 93 WHEN + - COUNT ( ALL + + 40 ) + 71 THEN - + 30 + + COUNT ( * ) ELSE + + 25 END * + - ( - SUM ( 62 ) )
----
1550

query I rowsort
SELECT + 71 + + COALESCE ( + - 61, + 20 ) + + 29 + ( 17 ) * + ( + + 97 ) * + + 77 * 51
----
6475662

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

skipif mysql # not compatible
query I rowsort label-2123
SELECT - COUNT ( * ) * 19 + + - 44 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT ALL SUM( ALL 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL SUM ( ALL 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2125
SELECT ALL - SUM( + 56 ) DIV 58 + - 18 + - - 72 * + + COUNT( * ) * + MIN( - 90 ) * + - 27 * + 30 + 4
----
5248786

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL - SUM ( + 56 ) / 58 + - 18 + - - 72 * + + COUNT ( * ) * + MIN ( - 90 ) * + - 27 * + 30 + 4
----
5248786

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT 74 + - MIN( - 76 )
----
150

skipif mysql # not compatible
query I rowsort label-2126
SELECT 74 + - MIN ( - 76 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT DISTINCT - 96 + + SUM( + - 80 ) + + ( + MIN( + 8 ) ) + - + 14 col0
----
-182

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT - 96 + + SUM ( + - 80 ) + + ( + MIN ( + 8 ) ) + - + 14 col0
----
-182

query I rowsort
SELECT + 40 * 36
----
1440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2129
SELECT ALL - 63 + + 25 + - 97 + 2 DIV 31 DIV - - CAST( - + 14 AS SIGNED ) * - - 92 + 30 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - 63 + + 25 + - 97 + 2 / 31 / - - CAST ( - + 14 AS INTEGER ) * - - 92 + 30 AS col0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2130
SELECT ALL COALESCE ( + 35, 87, - 12 * COUNT( * ) ) * 55 * 39 + - 34 - + 80 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL COALESCE ( + 35, 87, - 12 * COUNT ( * ) ) * 55 * 39 + - 34 - + 80 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT DISTINCT - COUNT( * ) + 76 DIV + 98 + + - 90 * - 37 * COUNT( 83 )
----
3329

skipif mysql # not compatible
query I rowsort label-2131
SELECT DISTINCT - COUNT ( * ) + 76 / + 98 + + - 90 * - 37 * COUNT ( 83 )
----
3329

onlyif mysql # aggregate syntax: 
query II rowsort label-2132
SELECT - - 46, COUNT( * ) + + 69 AS col0
----
46
70

skipif mysql # not compatible
query II rowsort label-2132
SELECT - - 46, COUNT ( * ) + + 69 AS col0
----
46
70

query I rowsort
SELECT ALL + - 67 + + 88 AS col2
----
21

query I rowsort
SELECT ALL 4 * - 22 + + - 67 col1
----
-155

query I rowsort
SELECT 22 * - 97 AS col0
----
-2134

query I rowsort
SELECT - 47 - - 83 + 27
----
63

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2138
SELECT - 34 * + 48 DIV 6 - + - COALESCE ( + 22, + 10 + - + 70 ) + 97
----
-153

skipif mysql # not compatible
query I rowsort label-2138
SELECT - 34 * + 48 / 6 - + - COALESCE ( + 22, + 10 + - + 70 ) + 97
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2139
SELECT DISTINCT - - CAST( NULL AS SIGNED ), COUNT( * ) DIV + 44 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2139
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), COUNT ( * ) / + 44 AS col0
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT ALL - + ( 6 ) DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL - + ( 6 ) / - 26
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2141
SELECT 64 DIV + - NULLIF ( 68, ( 22 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2141
SELECT 64 / + - NULLIF ( 68, ( 22 ) )
----
0

query I rowsort
SELECT ALL - COALESCE ( - 44, - - ( 27 ) + - 61 ) AS col1
----
44

query II rowsort
SELECT 73 * - + 2 * - - 60 AS col2, - 34 col0
----
-8760
-34

query I rowsort
SELECT ALL + 97 - - 80 * - + 35
----
-2703

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2145
SELECT ALL - 43 DIV + 33 AS col0, COUNT( * ) col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-2145
SELECT ALL - 43 / + 33 AS col0, COUNT ( * ) col1
----
-1
1

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

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

query I rowsort
SELECT ALL - NULLIF ( 63, 45 * + 50 + + - 18 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT MIN( ALL - 51 ) * ( - + 51 ) * - 13 + - ( + COALESCE ( - 56, + - COUNT( * ), 12 + 52 + 30 ) ) + + 36
----
-33721

skipif mysql # not compatible
query I rowsort label-2148
SELECT MIN ( ALL - 51 ) * ( - + 51 ) * - 13 + - ( + COALESCE ( - 56, + - COUNT ( * ), 12 + 52 + 30 ) ) + + 36
----
-33721

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT 71 * - COUNT( * ) + - 93 AS col2
----
-164

skipif mysql # not compatible
query I rowsort label-2149
SELECT 71 * - COUNT ( * ) + - 93 AS col2
----
-164

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT 89 * + COUNT( * ) AS col2, - 10 + 56
----
89
46

skipif mysql # not compatible
query II rowsort label-2150
SELECT 89 * + COUNT ( * ) AS col2, - 10 + 56
----
89
46

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

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

query I rowsort
SELECT 17 + + 55 AS col0
----
72

query I rowsort
SELECT ALL 5 * + 24 * 45 AS col1
----
5400

query I rowsort
SELECT 27 + - 40
----
-13

query I rowsort
SELECT ALL - 8 + - 31 + ( + 51 ) + - 45 * - 45
----
2037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2156
SELECT 37 + COALESCE ( - COUNT( * ), 35 * CAST( 5 AS SIGNED ) * - 3, 41 + 48 + + + 38 * NULLIF ( + 33, - 84 ) ) AS col0, CAST( NULL AS SIGNED ) + + + 18 + - 97 * 8 - + - 39 * - 18 / - 37 AS col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-2156
SELECT 37 + COALESCE ( - COUNT ( * ), 35 * CAST ( 5 AS INTEGER ) * - 3, 41 + 48 + + + 38 * NULLIF ( + 33, - 84 ) ) AS col0, CAST ( NULL AS INTEGER ) + + + 18 + - 97 * 8 - + - 39 * - 18 / - 37 AS col1
----
36
NULL

query I rowsort
SELECT 81 - 33 AS col0
----
48

query I rowsort
SELECT DISTINCT + 84 + + 95 AS col2
----
179

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2159
SELECT CASE - CAST( NULL AS DECIMAL ) WHEN + 74 + + - 61 THEN - COUNT( * ) + + 93 WHEN - 58 THEN NULL END AS col2, 78 * 38
----
NULL
2964

skipif mysql # not compatible
query II rowsort label-2159
SELECT CASE - CAST ( NULL AS REAL ) WHEN + 74 + + - 61 THEN - COUNT ( * ) + + 93 WHEN - 58 THEN NULL END AS col2, 78 * 38
----
NULL
2964

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2161
SELECT DISTINCT 92 * - - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT 92 * - - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT 6 + 55 - - ( 66 )
----
127

query II rowsort
SELECT ALL + 91 + - 63, 54 + - + 33 AS col1
----
28
21

query I rowsort
SELECT 86 * - 16 * - + 98
----
134848

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

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

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

query I rowsort
SELECT DISTINCT - 66 * - 48 col0
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT 40 + MIN( DISTINCT - ( 44 ) ) col1
----
-4

skipif mysql # not compatible
query I rowsort label-2168
SELECT 40 + MIN ( DISTINCT - ( 44 ) ) col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2169
SELECT DISTINCT - COUNT( * ) col0, 43 DIV + 99
----
-1
0

skipif mysql # not compatible
query II rowsort label-2169
SELECT DISTINCT - COUNT ( * ) col0, 43 / + 99
----
-1
0

query I rowsort
SELECT + 30 * + + 90 + + 89
----
2789

query I rowsort
SELECT 8 - 23
----
-15

query II rowsort
SELECT ALL - 47 AS col0, 81 * + + 85 AS col1
----
-47
6885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2173
SELECT 39 * 27 + CASE + + 10 WHEN + 40 * ( - 56 ) + + COUNT( * ) THEN + COUNT( * ) + 43 DIV - + 61 END - 15 * - 18, + 92 DIV - COALESCE ( - - CAST( - + 55 AS SIGNED ), - 13 * - - 57, - - ( 88 ) ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2173
SELECT 39 * 27 + CASE + + 10 WHEN + 40 * ( - 56 ) + + COUNT ( * ) THEN + COUNT ( * ) + 43 / - + 61 END - 15 * - 18, + 92 / - COALESCE ( - - CAST ( - + 55 AS INTEGER ), - 13 * - - 57, - - ( 88 ) ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2174
SELECT ALL - ( + SUM( DISTINCT + 59 ) ) col2, - 78
----
-59
-78

skipif mysql # not compatible
query II rowsort label-2174
SELECT ALL - ( + SUM ( DISTINCT + 59 ) ) col2, - 78
----
-59
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2175
SELECT 1 DIV + SUM( ALL 96 )
----
0

skipif mysql # not compatible
query I rowsort label-2175
SELECT 1 / + SUM ( ALL 96 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT DISTINCT - CASE 57 WHEN 1 * - 84 THEN NULL ELSE + 75 END * COUNT( * ) * + 18 AS col2
----
-1350

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT - CASE 57 WHEN 1 * - 84 THEN NULL ELSE + 75 END * COUNT ( * ) * + 18 AS col2
----
-1350

query I rowsort
SELECT ALL - 49 + 53 * - 8 AS col2
----
-473

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT - 97 * - 78 * 47 + + + 46 * - + COUNT( * ) AS col0
----
355556

skipif mysql # not compatible
query I rowsort label-2179
SELECT - 97 * - 78 * 47 + + + 46 * - + COUNT ( * ) AS col0
----
355556

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

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

query I rowsort
SELECT - 5 + - 82
----
-87

query I rowsort
SELECT ALL - 4 * + 36 AS col2
----
-144

query I rowsort
SELECT ALL + ( 22 ) + 46 + + 49 - - + 5 + - + 46 + - 8 + + NULLIF ( - 71, - 0 ) * + 71 * + - 44
----
221872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2184
SELECT + NULLIF ( - 94, + + CASE - 65 WHEN - + NULLIF ( - + COUNT( * ), CAST( NULL AS SIGNED ) * + 63 + - 92 ) THEN SUM( ALL + - 25 ) WHEN + COUNT( * ) THEN - 39 + ( 28 ) END / - CAST( NULL AS SIGNED ) ) + 91 col1
----
-3

skipif mysql # not compatible
query I rowsort label-2184
SELECT + NULLIF ( - 94, + + CASE - 65 WHEN - + NULLIF ( - + COUNT ( * ), CAST ( NULL AS INTEGER ) * + 63 + - 92 ) THEN SUM ( ALL + - 25 ) WHEN + COUNT ( * ) THEN - 39 + ( 28 ) END / - CAST ( NULL AS INTEGER ) ) + 91 col1
----
-3

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

query I rowsort
SELECT DISTINCT + 13 + + 29 AS col1
----
42

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

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL - - 76 + - - COUNT ( * ) AS col0
----
77

query II rowsort
SELECT ALL - 16, + 40 + + 50 AS col1
----
-16
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT - COUNT( * ) + + 63 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2189
SELECT - COUNT ( * ) + + 63 AS col2
----
62

query I rowsort
SELECT DISTINCT + - NULLIF ( - ( 31 ), 63 ) + + 30
----
61

query I rowsort
SELECT + 52 * + 10 + - 27 AS col2
----
493

query I rowsort
SELECT ALL - 28 * + 65 AS col0
----
-1820

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

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

query I rowsort
SELECT + - 17 + - + ( + 14 ) * + + 87 AS col0
----
-1235

query II rowsort
SELECT + 52, 16 AS col2
----
52
16

query I rowsort
SELECT - - NULLIF ( + 70, - - 27 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2197
SELECT + + COALESCE ( - 54, - - COUNT( * ) * + - 73 + - - MIN( + 49 ), + 93 * 42 DIV 34 + + 36 + - MAX( - + 66 ) ) + + 20 + + 80 * - ( + CAST( + COUNT( * ) AS SIGNED ) ) col1
----
-114

skipif mysql # not compatible
query I rowsort label-2197
SELECT + + COALESCE ( - 54, - - COUNT ( * ) * + - 73 + - - MIN ( + 49 ), + 93 * 42 / 34 + + 36 + - MAX ( - + 66 ) ) + + 20 + + 80 * - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) col1
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT ALL - 79 - - - NULLIF ( + + CAST( + + 46 AS SIGNED ), 28 + + + 39 )
----
-125

skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL - 79 - - - NULLIF ( + + CAST ( + + 46 AS INTEGER ), 28 + + + 39 )
----
-125

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

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

query II rowsort
SELECT - + 8, 49 - - 74 AS col0
----
-8
123

query I rowsort
SELECT + + 98 - 11 - 66 - - + 76
----
97

query II rowsort
SELECT ALL + 98, 68 AS col2
----
98
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT DISTINCT 49 / + - CASE - 8 WHEN COUNT( * ) THEN - 28 / + 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT 49 / + - CASE - 8 WHEN COUNT ( * ) THEN - 28 / + 98 END AS col2
----
NULL

query I rowsort
SELECT 71 * - + 67 + - 20
----
-4777

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

query I rowsort
SELECT + 66 * + 42 AS col2
----
2772

query II rowsort
SELECT + ( + 24 ) AS col2, 24 AS col1
----
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL COUNT( - 96 ) * + - 20 + + + 81 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL COUNT ( - 96 ) * + - 20 + + + 81 AS col2
----
61

query I rowsort
SELECT DISTINCT 56 * 85 + - - 46
----
4806

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT DISTINCT + CASE - + 92 WHEN 35 / + 65 * + COUNT( * ) THEN 35 ELSE 63 END
----
63

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT + CASE - + 92 WHEN 35 / + 65 * + COUNT ( * ) THEN 35 ELSE 63 END
----
63

query I rowsort
SELECT ALL - 55 * + 73 + + - 18 * ( 76 ) AS col1
----
-5383

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT + 36 * COUNT( * ) * - 72
----
-2592

skipif mysql # not compatible
query I rowsort label-2213
SELECT + 36 * COUNT ( * ) * - 72
----
-2592

query I rowsort
SELECT ALL - 39 * - 11 * + + 88 * + + 46 * CASE 29 WHEN + + 81 THEN NULL WHEN - 25 * - 35 THEN - 91 + + 49 ELSE NULL END + + COALESCE ( - 88, 2 ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( 32, + 98, 34 ) AS col2
----
32

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

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

query I rowsort
SELECT + 0 + - ( + 74 ) AS col0
----
-74

query I rowsort
SELECT - 6 * 38 col1
----
-228

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

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

query I rowsort
SELECT CASE + 78 WHEN + + NULLIF ( - - 99, - ( + NULLIF ( - - 39, + 88 ) ) ) THEN NULL WHEN - 9 THEN - + 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT DISTINCT + + ( 0 ) * 10 + + + 19 AS col2, + 12 * + 2 * + 30 + - SUM( + + 45 ) + + COUNT( * ) AS col1
----
19
676

skipif mysql # not compatible
query II rowsort label-2221
SELECT DISTINCT + + ( 0 ) * 10 + + + 19 AS col2, + 12 * + 2 * + 30 + - SUM ( + + 45 ) + + COUNT ( * ) AS col1
----
19
676

query I rowsort
SELECT ALL + 35 * - + 54 * + 0 AS col2
----
0

query II rowsort
SELECT - 0 + - + 69 AS col0, + 9
----
-69
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2224
SELECT ALL - - 10 * - AVG ( ALL - CAST( NULL AS SIGNED ) ) + CAST( + 37 AS SIGNED ) - + - ( - ( + 90 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL - - 10 * - AVG ( ALL - CAST ( NULL AS INTEGER ) ) + CAST ( + 37 AS INTEGER ) - + - ( - ( + 90 ) ) AS col0
----
NULL

query I rowsort
SELECT - + 13 * + 66 AS col0
----
-858

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2226
SELECT - ( + 49 ) + + - SUM( + - 43 ) AS col2, + ( - 58 ) DIV + 98 AS col0
----
-6
0

skipif mysql # not compatible
query II rowsort label-2226
SELECT - ( + 49 ) + + - SUM ( + - 43 ) AS col2, + ( - 58 ) / + 98 AS col0
----
-6
0

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

query II rowsort
SELECT - - 77 * - ( - 54 ) + + 68 AS col2, 11 * + 43 * - 77
----
4226
-36421

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT + + COUNT( * ) + - 86 * 31
----
-2665

skipif mysql # not compatible
query I rowsort label-2229
SELECT + + COUNT ( * ) + - 86 * 31
----
-2665

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

query II rowsort
SELECT DISTINCT - 39 * + 69 AS col1, 54
----
-2691
54

query I rowsort
SELECT - + 72 col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT + 2 * + MAX( DISTINCT - 26 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2233
SELECT + 2 * + MAX ( DISTINCT - 26 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-2234
SELECT 59 AS col1, - COALESCE ( COUNT( * ), - 20, - - 15 )
----
59
-1

skipif mysql # not compatible
query II rowsort label-2234
SELECT 59 AS col1, - COALESCE ( COUNT ( * ), - 20, - - 15 )
----
59
-1

query I rowsort
SELECT - 90 + - 22 AS col0
----
-112

query I rowsort
SELECT - ( - 22 ) AS col1
----
22

query I rowsort
SELECT + 54 + - 73
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2238
SELECT + 72 * - CAST( - NULLIF ( - 22, + 51 ) AS SIGNED ) * + 21 AS col1, 16 AS col2
----
-33264
16

skipif mysql # not compatible
query II rowsort label-2238
SELECT + 72 * - CAST ( - NULLIF ( - 22, + 51 ) AS INTEGER ) * + 21 AS col1, 16 AS col2
----
-33264
16

query I rowsort
SELECT - NULLIF ( 40, - 35 + ( - 68 ) * 82 ) AS col2
----
-40

query I rowsort
SELECT ALL - 49 + - + 25
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2241
SELECT DISTINCT 84 DIV - ( COUNT( DISTINCT 26 ) ) + - SUM( ALL 75 )
----
-159

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT 84 / - ( COUNT ( DISTINCT 26 ) ) + - SUM ( ALL 75 )
----
-159

query I rowsort
SELECT ALL ( - + 5 ) + + 29 AS col2
----
24

query I rowsort
SELECT - 46 * + 81 + 26 * + 37 + - + ( - 51 )
----
-2713

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL + 76 + - + CASE - 35 WHEN + MIN( DISTINCT COALESCE ( 73, 97, + + 45 ) ) THEN + 82 + + 35 WHEN - 99 * + MIN( + 98 ) * + 32 THEN - - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL + 76 + - + CASE - 35 WHEN + MIN ( DISTINCT COALESCE ( 73, 97, + + 45 ) ) THEN + 82 + + 35 WHEN - 99 * + MIN ( + 98 ) * + 32 THEN - - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT 49 DIV + 72 * - 29 + - 36 col1
----
-36

skipif mysql # not compatible
query I rowsort label-2245
SELECT 49 / + 72 * - 29 + - 36 col1
----
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT ALL ( + 78 ) DIV + ( - 1 )
----
-78

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL ( + 78 ) / + ( - 1 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2248
SELECT NULLIF ( + + 61, - 84 * + COALESCE ( - 90, + - 25, + 3 ) ) DIV - CAST( + COALESCE ( - + 4, + + 88 DIV 64 * + 33 * + 47 + 51 ) AS SIGNED ), 92 + 8 AS col0
----
15
100

skipif mysql # not compatible
query II rowsort label-2248
SELECT NULLIF ( + + 61, - 84 * + COALESCE ( - 90, + - 25, + 3 ) ) / - CAST ( + COALESCE ( - + 4, + + 88 / 64 * + 33 * + 47 + 51 ) AS INTEGER ), 92 + 8 AS col0
----
15
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT CAST( NULL AS SIGNED ) + + SUM( - 45 ) + + 52 * + AVG ( ALL + ( 18 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT CAST ( NULL AS INTEGER ) + + SUM ( - 45 ) + + 52 * + AVG ( ALL + ( 18 ) )
----
NULL

query I rowsort
SELECT 33 + 94 * - 96 + - + 58 + + + 6
----
-9043

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - NULLIF ( + 98, + 86 ) * - COUNT( * ) + + - NULLIF ( + COUNT( * ), - 16 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2251
SELECT - NULLIF ( + 98, + 86 ) * - COUNT ( * ) + + - NULLIF ( + COUNT ( * ), - 16 ) AS col1
----
97

query I rowsort
SELECT DISTINCT 59 * - - 93 col2
----
5487

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

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

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

query I rowsort
SELECT 35 + 29
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + + COALESCE ( + 66, + 64 * - 52 * 92 + + 16 - - COUNT( * ), 45 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2256
SELECT + + COALESCE ( + 66, + 64 * - 52 * 92 + + 16 - - COUNT ( * ), 45 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2257
SELECT - NULLIF ( + + MIN( + 81 ), - 93 ) + - + 72 AS col2, - ( - 5 ) * - 13 * - - 59 - + 26 * - + 80 * + 44 + + 8 + 53 + 46 + - COUNT( * ) AS col2
----
-153
87791

skipif mysql # not compatible
query II rowsort label-2257
SELECT - NULLIF ( + + MIN ( + 81 ), - 93 ) + - + 72 AS col2, - ( - 5 ) * - 13 * - - 59 - + 26 * - + 80 * + 44 + + 8 + 53 + 46 + - COUNT ( * ) AS col2
----
-153
87791

query I rowsort
SELECT ALL + - 16 - + 82 col2
----
-98

query I rowsort
SELECT - ( 7 ) * - 99 + - + 10 + + 87 * 94 + 70 AS col1
----
8931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2260
SELECT 42 * 94 + + COALESCE ( - 61, - - SUM( + 86 ) + + + 29, + - MAX( DISTINCT + 33 ), + ( - COUNT( * ) ) - + + 21 + - 43 ) * - - 5 * + ( - 93 ) * MIN( - 71 ) + - ( - 49 ) DIV COUNT( * )
----
-2009918

skipif mysql # not compatible
query I rowsort label-2260
SELECT 42 * 94 + + COALESCE ( - 61, - - SUM ( + 86 ) + + + 29, + - MAX ( DISTINCT + 33 ), + ( - COUNT ( * ) ) - + + 21 + - 43 ) * - - 5 * + ( - 93 ) * MIN ( - 71 ) + - ( - 49 ) / COUNT ( * )
----
-2009918

onlyif mysql # DIV for integer division: 
query I rowsort label-2261
SELECT DISTINCT + 79 DIV - - 59 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT + 79 / - - 59 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2262
SELECT ALL + 51 DIV ( - COUNT( * ) ) * + 12 + - 19 + - - 9 * - - 2
----
-613

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + 51 / ( - COUNT ( * ) ) * + 12 + - 19 + - - 9 * - - 2
----
-613

query I rowsort
SELECT 92 + - 5 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT DISTINCT + COUNT( * ) * - 5 + - + 70 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT + COUNT ( * ) * - 5 + - + 70 AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2265
SELECT + 67 - + NULLIF ( - NULLIF ( + 70, - 75 ), + - 8 * - 91 + - 92 * - 32 * + + 10 + + + 46 ) - - 68 + - NULLIF ( + SUM( ALL - 14 ), + 86 ) DIV - 33 + + 28 * 12
----
541

skipif mysql # not compatible
query I rowsort label-2265
SELECT + 67 - + NULLIF ( - NULLIF ( + 70, - 75 ), + - 8 * - 91 + - 92 * - 32 * + + 10 + + + 46 ) - - 68 + - NULLIF ( + SUM ( ALL - 14 ), + 86 ) / - 33 + + 28 * 12
----
541

query I rowsort
SELECT ALL - 85 * + 61 + - 15 * 64 + + - ( 79 )
----
-6224

query I rowsort
SELECT 71 * + + 89 * - 58 * - + 41 AS col0
----
15026582

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT SUM( - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-2268
SELECT SUM ( - 50 )
----
-50

query I rowsort
SELECT 82 * + 43 AS col1
----
3526

query I rowsort
SELECT 18 + + - 63 * - 68 + - + 71 AS col1
----
4231

query I rowsort
SELECT DISTINCT + 7 + 26 col1
----
33

query I rowsort
SELECT 27 + ( 3 ) * 94 AS col1
----
309

query II rowsort
SELECT 17 AS col1, 17 * - 85 col0
----
17
-1445

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL + MIN( 7 ) + 58 + + 61 + + 70 AS col2
----
196

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + MIN ( 7 ) + 58 + + 61 + + 70 AS col2
----
196

query I rowsort
SELECT 8 * - 13
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT DISTINCT + COUNT( * ) + + + 56 col1
----
57

skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT + COUNT ( * ) + + + 56 col1
----
57

query I rowsort
SELECT DISTINCT 48 + ( 77 ) + + 65
----
190

onlyif mysql # aggregate syntax: 
query II rowsort label-2278
SELECT DISTINCT + SUM( 52 ) + + 12 + - + 43 col1, 18
----
21
18

skipif mysql # not compatible
query II rowsort label-2278
SELECT DISTINCT + SUM ( 52 ) + + 12 + - + 43 col1, 18
----
21
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2279
SELECT 36 * ( - CASE + 9 WHEN 71 THEN NULL ELSE - 99 * + 73 * + COUNT( * ) * - 95 END ) AS col0, 82
----
-24716340
82

skipif mysql # not compatible
query II rowsort label-2279
SELECT 36 * ( - CASE + 9 WHEN 71 THEN NULL ELSE - 99 * + 73 * + COUNT ( * ) * - 95 END ) AS col0, 82
----
-24716340
82

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2282
SELECT 55 AS col0, - ( + 3 ) * - ( + + 13 ) + - 85 * + ( 44 ) * + 20 + - COUNT( 56 ) + - 68
----
55
-74830

skipif mysql # not compatible
query II rowsort label-2282
SELECT 55 AS col0, - ( + 3 ) * - ( + + 13 ) + - 85 * + ( 44 ) * + 20 + - COUNT ( 56 ) + - 68
----
55
-74830

onlyif mysql # aggregate syntax: 
query II rowsort label-2283
SELECT DISTINCT - - COALESCE ( COUNT( - - 60 ), + 8 + 32 + - 30 * + 83 * + + 22 * 83 ), + 37 + 67 + 75 * CASE - - 78 WHEN COUNT( * ) THEN NULL WHEN 51 THEN - 31 ELSE - 24 * + 41 END AS col0
----
1
-73696

skipif mysql # not compatible
query II rowsort label-2283
SELECT DISTINCT - - COALESCE ( COUNT ( - - 60 ), + 8 + 32 + - 30 * + 83 * + + 22 * 83 ), + 37 + 67 + 75 * CASE - - 78 WHEN COUNT ( * ) THEN NULL WHEN 51 THEN - 31 ELSE - 24 * + 41 END AS col0
----
1
-73696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2284
SELECT 2 * + NULLIF ( - CAST( - + 77 AS SIGNED ), - 29 ) + MAX( ALL - 14 ) AS col1
----
140

skipif mysql # not compatible
query I rowsort label-2284
SELECT 2 * + NULLIF ( - CAST ( - + 77 AS INTEGER ), - 29 ) + MAX ( ALL - 14 ) AS col1
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT 58 DIV + - 33 + - + 86
----
-87

skipif mysql # not compatible
query I rowsort label-2285
SELECT 58 / + - 33 + - + 86
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT 60 + - - COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-2286
SELECT 60 + - - COUNT ( * ) AS col2
----
61

query II rowsort
SELECT + 20 AS col2, + 94 AS col0
----
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL - - MIN( ALL + + 62 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL - - MIN ( ALL + + 62 ) col0
----
62

query II rowsort
SELECT DISTINCT - 9 AS col2, 74 col1
----
-9
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT + + 35 * - SUM( DISTINCT ( + 86 ) ) + 72 AS col0
----
-2938

skipif mysql # not compatible
query I rowsort label-2290
SELECT + + 35 * - SUM ( DISTINCT ( + 86 ) ) + 72 AS col0
----
-2938

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2291
SELECT + + CASE 66 WHEN + 7 DIV - 60 THEN NULLIF ( + COALESCE ( 60, - MIN( DISTINCT - 52 ) ), CAST( NULL AS DECIMAL ) DIV - + AVG ( 47 ) - + + 55 * + + 77 DIV - + ( + 53 ) + 17 + - - COUNT( * ) ) DIV - - 54 * CASE - - 5 WHEN ( + COUNT( * ) ) THEN 91 * - 94 * - 94 + 68 END WHEN + COUNT( * ) THEN COUNT( * ) WHEN + 87 * 60 - 64 THEN NULL ELSE + 95 END * 10 - 72
----
878

skipif mysql # not compatible
query I rowsort label-2291
SELECT + + CASE 66 WHEN + 7 / - 60 THEN NULLIF ( + COALESCE ( 60, - MIN ( DISTINCT - 52 ) ), CAST ( NULL AS REAL ) / - + AVG ( 47 ) - + + 55 * + + 77 / - + ( + 53 ) + 17 + - - COUNT ( * ) ) / - - 54 * CASE - - 5 WHEN ( + COUNT ( * ) ) THEN 91 * - 94 * - 94 + 68 END WHEN + COUNT ( * ) THEN COUNT ( * ) WHEN + 87 * 60 - 64 THEN NULL ELSE + 95 END * 10 - 72
----
878

query I rowsort
SELECT ALL - 50 * - + 20 + - - 62 + - 0 AS col2
----
1062

query II rowsort
SELECT DISTINCT - 58 AS col1, + 84 col1
----
-58
84

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

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

query I rowsort
SELECT DISTINCT ( + 61 ) * - - 99
----
6039

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT + ( 61 ) + 51 * + COUNT( * ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-2296
SELECT + ( 61 ) + 51 * + COUNT ( * ) AS col1
----
112

query II rowsort
SELECT 6 * 81 - 42 * - 2 col1, - 34 AS col1
----
570
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT ALL 77 + + NULLIF ( - - 94, - + 15 * 61 ) * - CAST( - 67 AS SIGNED ) AS col1
----
6375

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL 77 + + NULLIF ( - - 94, - + 15 * 61 ) * - CAST ( - 67 AS INTEGER ) AS col1
----
6375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT - 1 * + 28 * + 17 * - ( + 67 ) + - 19 + + CAST( NULL AS SIGNED ) + 62 / 62 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT - 1 * + 28 * + 17 * - ( + 67 ) + - 19 + + CAST ( NULL AS INTEGER ) + 62 / 62 col2
----
NULL

query II rowsort
SELECT 14 AS col0, + 89
----
14
89

query I rowsort
SELECT ALL - 56 + - COALESCE ( - 4, - 17 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2302
SELECT - 65 + 87 - MIN( ALL + ( + + CAST( NULL AS SIGNED ) ) ) + + - ( 27 ) * + + COUNT( * ) + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2302
SELECT - 65 + 87 - MIN ( ALL + ( + + CAST ( NULL AS INTEGER ) ) ) + + - ( 27 ) * + + COUNT ( * ) + 59
----
NULL

query I rowsort
SELECT 99 - 37 + + 65 * 57 AS col1
----
3767

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT COUNT( * ) * 1 * 88
----
88

skipif mysql # not compatible
query I rowsort label-2304
SELECT COUNT ( * ) * 1 * 88
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2305
SELECT - COUNT( * ) + + 63 + 76 - 64 DIV + 51 + - 63
----
74

skipif mysql # not compatible
query I rowsort label-2305
SELECT - COUNT ( * ) + + 63 + 76 - 64 / + 51 + - 63
----
74

query I rowsort
SELECT 31 + COALESCE ( 17, 60 ) AS col2
----
48

query II rowsort
SELECT DISTINCT 90 + 66 AS col1, 72
----
156
72

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

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL - COUNT ( * ) / + SUM ( ALL - 98 ) / + + 98 * - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2309
SELECT + 60 / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT DISTINCT 66 + + - 21 + + + 81 + COUNT( * )
----
127

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT 66 + + - 21 + + + 81 + COUNT ( * )
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2311
SELECT DISTINCT 84 DIV - + 95 * + 72, + ( - 34 ) * NULLIF ( 23, - SUM( DISTINCT - + 63 ) * 83 + 30 DIV - 4 ) - + 43 col1
----
0
-825

skipif mysql # not compatible
query II rowsort label-2311
SELECT DISTINCT 84 / - + 95 * + 72, + ( - 34 ) * NULLIF ( 23, - SUM ( DISTINCT - + 63 ) * 83 + 30 / - 4 ) - + 43 col1
----
0
-825

query I rowsort
SELECT - 95 + - 36 * 61 * + - 93
----
204133

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2313
SELECT ALL 19 * 27 AS col1, 28 DIV 80 DIV + MAX( DISTINCT - + 1 ) AS col0
----
513
0

skipif mysql # not compatible
query II rowsort label-2313
SELECT ALL 19 * 27 AS col1, 28 / 80 / + MAX ( DISTINCT - + 1 ) AS col0
----
513
0

query I rowsort
SELECT + 24 + 22 - + 47 + 97 AS col1
----
96

query II rowsort
SELECT + 1 + - 93 AS col1, 72 * - 75
----
-92
-5400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT + 77 - + 23 * - COUNT( * ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT + 77 - + 23 * - COUNT ( * ) AS col1
----
100

query I rowsort
SELECT + 77 + 71 * + 91 * + 9
----
58226

query II rowsort
SELECT - COALESCE ( - 47, + 82 + - 73 ) + + + 19, 21 AS col0
----
66
21

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

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

query I rowsort
SELECT DISTINCT ( + 35 ) * 56 AS col2
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT ALL NULLIF ( + + 70, - SUM( DISTINCT - 49 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL NULLIF ( + + 70, - SUM ( DISTINCT - 49 ) ) AS col2
----
70

query I rowsort
SELECT ALL + 52 * - 64 - + 25 col0
----
-3353

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT - MAX( + 13 ) + 95 + + + 95 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-2324
SELECT - MAX ( + 13 ) + 95 + + + 95 AS col1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT ALL - 45 * 36 + + - 50 + COUNT( * )
----
-1669

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - 45 * 36 + + - 50 + COUNT ( * )
----
-1669

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2326
SELECT + 45 * 30 DIV 21 + + MAX( 27 ) + 57
----
148

skipif mysql # not compatible
query I rowsort label-2326
SELECT + 45 * 30 / 21 + + MAX ( 27 ) + 57
----
148

onlyif mysql # DIV for integer division: 
query II rowsort label-2327
SELECT DISTINCT - ( 97 ) * - 8 + + - 4 DIV 98 + 48 + 91 AS col0, - ( - + 93 ) * - + 32 + - 80
----
915
-3056

skipif mysql # not compatible
query II rowsort label-2327
SELECT DISTINCT - ( 97 ) * - 8 + + - 4 / 98 + 48 + 91 AS col0, - ( - + 93 ) * - + 32 + - 80
----
915
-3056

query I rowsort
SELECT - 46 * - 31 + 89 + COALESCE ( + - ( - 56 ), + - 74 ) AS col1
----
1571

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

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

query I rowsort
SELECT ALL - + 33 * - 38 + + + 78
----
1332

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL + 59 * - + 9 + CASE + 2 WHEN 95 + COALESCE ( 32, - 22 / - ( + 6 ) + + CASE + 37 WHEN - 7 THEN + - 55 WHEN - - 16 / - AVG ( - + 36 ) THEN NULL ELSE - 96 END ) + COALESCE ( 80, + 31 + + MIN( ALL + - 33 ) ) + - + 54 * 29 * - 50 THEN - 94 WHEN + 9 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL + 59 * - + 9 + CASE + 2 WHEN 95 + COALESCE ( 32, - 22 / - ( + 6 ) + + CASE + 37 WHEN - 7 THEN + - 55 WHEN - - 16 / - AVG ( - + 36 ) THEN NULL ELSE - 96 END ) + COALESCE ( 80, + 31 + + MIN ( ALL + - 33 ) ) + - + 54 * 29 * - 50 THEN - 94 WHEN + 9 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2332
SELECT - CAST( + 89 AS SIGNED ) AS col0, COUNT( * ) + CAST( 10 AS SIGNED ) AS col2
----
-89
11

skipif mysql # not compatible
query II rowsort label-2332
SELECT - CAST ( + 89 AS INTEGER ) AS col0, COUNT ( * ) + CAST ( 10 AS INTEGER ) AS col2
----
-89
11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2334
SELECT ALL 22 DIV + COUNT( * ) + + + 28 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL 22 / + COUNT ( * ) + + + 28 AS col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT DISTINCT 32 * + + 73 + 26 DIV + + 5 + - 31 AS col2
----
2310

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT 32 * + + 73 + 26 / + + 5 + - 31 AS col2
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT ALL MAX( + 71 ) * - 2 + - - MIN( DISTINCT + 94 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL MAX ( + 71 ) * - 2 + - - MIN ( DISTINCT + 94 ) AS col0
----
-48

query I rowsort
SELECT - 49 * + 59
----
-2891

query II rowsort
SELECT + - 99 + + 85 AS col1, 17
----
-14
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT + 58 * ( - COUNT( * ) ) + 18 + - 10 * - 33
----
290

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT + 58 * ( - COUNT ( * ) ) + 18 + - 10 * - 33
----
290

query I rowsort
SELECT ALL COALESCE ( + ( - + 50 ), 17, 28 ) col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2341
SELECT + 19 * + 88 DIV ( + COUNT( * ) )
----
1672

skipif mysql # not compatible
query I rowsort label-2341
SELECT + 19 * + 88 / ( + COUNT ( * ) )
----
1672

query II rowsort
SELECT DISTINCT 64 AS col2, 45
----
64
45

query I rowsort
SELECT DISTINCT 43 + 50 + COALESCE ( - 99, + 41, + - 23, + 55 + + ( + 3 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL COUNT( + 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL COUNT ( + 80 ) AS col2
----
1

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

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

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

query II rowsort
SELECT 64 AS col1, 0 - - 5 col1
----
64
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2348
SELECT - 42 DIV + CASE 63 WHEN - 83 THEN + 44 ELSE - - 21 END AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2348
SELECT - 42 / + CASE 63 WHEN - 83 THEN + 44 ELSE - - 21 END AS col2
----
-2

query I rowsort
SELECT + 53 * + + 98
----
5194

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT - 59 + - - 31 - - 61 * - COUNT( * ) * - + 10 col0
----
582

skipif mysql # not compatible
query I rowsort label-2350
SELECT - 59 + - - 31 - - 61 * - COUNT ( * ) * - + 10 col0
----
582

onlyif mysql # DIV for integer division: 
query II rowsort label-2351
SELECT DISTINCT 38 AS col0, + 86 DIV - + COALESCE ( - 7, + 98 + + 19 )
----
38
12

skipif mysql # not compatible
query II rowsort label-2351
SELECT DISTINCT 38 AS col0, + 86 / - + COALESCE ( - 7, + 98 + + 19 )
----
38
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2352
SELECT - CAST( - MAX( - CAST( - - 93 AS DECIMAL ) ) AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-2352
SELECT - CAST ( - MAX ( - CAST ( - - 93 AS REAL ) ) AS INTEGER )
----
-93

query I rowsort
SELECT + 6 - 58 * 31
----
-1792

query I rowsort
SELECT + 23 * - + 59
----
-1357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2355
SELECT ALL COUNT( * ) DIV 1 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL COUNT ( * ) / 1 AS col0
----
1

query I rowsort
SELECT ALL + 28 * 59 * - + 11 * + 31
----
-563332

query II rowsort
SELECT - 0 col0, 48 AS col0
----
0
48

query I rowsort
SELECT - ( ( - 96 ) ) AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT + 70 DIV - 66
----
-1

skipif mysql # not compatible
query I rowsort label-2359
SELECT + 70 / - 66
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2360
SELECT + 87 * + COUNT( 47 ), + 17 + + 89 AS col0
----
87
106

skipif mysql # not compatible
query II rowsort label-2360
SELECT + 87 * + COUNT ( 47 ), + 17 + + 89 AS col0
----
87
106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL + + MAX( ALL + 63 ) * + 5 / - MAX( ALL - + 85 ) * + 8 * - 72 + CASE + COUNT( ALL - ( + 52 ) ) WHEN - 45 * - - 99 THEN + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + + MAX ( ALL + 63 ) * + 5 / - MAX ( ALL - + 85 ) * + 8 * - 72 + CASE + COUNT ( ALL - ( + 52 ) ) WHEN - 45 * - - 99 THEN + 6 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 16 * - ( + - 17 )
----
-272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2364
SELECT ALL + 12 DIV - MIN( - + NULLIF ( 38, - + 6 ) ) + + 11 + 29 - + 50 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + 12 / - MIN ( - + NULLIF ( 38, - + 6 ) ) + + 11 + 29 - + 50 AS col0
----
-10

query I rowsort
SELECT + 1 * + 56 + 25 + - - 85 - 99
----
67

query II rowsort
SELECT ALL + - 9, 73 AS col2
----
-9
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2367
SELECT ALL - 55 * 27 / - CAST( NULL AS SIGNED ) + - 36 + - - 69 * 42 + + ( + - 81 ) + 82 * + + SUM( ALL + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL - 55 * 27 / - CAST ( NULL AS INTEGER ) + - 36 + - - 69 * 42 + + ( + - 81 ) + 82 * + + SUM ( ALL + 51 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2369
SELECT ALL - 83 DIV + + 31 * NULLIF ( + CAST( COUNT( * ) AS SIGNED ), + 54 ) + - 59 - + + 2 * + + COUNT( * ) * 77 * + 58 AS col1
----
-8993

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - 83 / + + 31 * NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), + 54 ) + - 59 - + + 2 * + + COUNT ( * ) * 77 * + 58 AS col1
----
-8993

onlyif mysql # aggregate syntax: 
query II rowsort label-2370
SELECT - NULLIF ( - - 17, - 76 ) AS col1, - 75 * - + 97 * - COUNT( * ) + ( + - 75 )
----
-17
-7350

skipif mysql # not compatible
query II rowsort label-2370
SELECT - NULLIF ( - - 17, - 76 ) AS col1, - 75 * - + 97 * - COUNT ( * ) + ( + - 75 )
----
-17
-7350

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT - COUNT( - 29 ) * 11 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2371
SELECT - COUNT ( - 29 ) * 11 AS col1
----
-11

query II rowsort
SELECT + + 5 AS col0, 5 + + - 89 * 86 * 66 AS col2
----
5
-505159

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

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

query II rowsort
SELECT + 61, 79 AS col0
----
61
79

query I rowsort
SELECT - + 34 + + 62
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT + + MIN( + ( + + 12 ) ) * - 4 + 13 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2376
SELECT + + MIN ( + ( + + 12 ) ) * - 4 + 13 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT + + MAX( + 80 ) * + ( + ( - 93 ) )
----
-7440

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT + + MAX ( + 80 ) * + ( + ( - 93 ) )
----
-7440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2378
SELECT - + COUNT( * ) * 63 DIV + - 12 + - + 15 - + - COUNT( * ) * + MIN( + - 40 ) * 42 + + 58 - 48 + + 14 AS col2
----
-1666

skipif mysql # not compatible
query I rowsort label-2378
SELECT - + COUNT ( * ) * 63 / + - 12 + - + 15 - + - COUNT ( * ) * + MIN ( + - 40 ) * 42 + + 58 - 48 + + 14 AS col2
----
-1666

query I rowsort
SELECT ALL - 94 - + 92 + 28
----
-158

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2381
SELECT 11 + + - 20 + COUNT( * ) - + CAST( NULL AS SIGNED ) - + SUM( ALL + + NULLIF ( - 60, + - 92 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT 11 + + - 20 + COUNT ( * ) - + CAST ( NULL AS INTEGER ) - + SUM ( ALL + + NULLIF ( - 60, + - 92 ) ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT DISTINCT ( 29 ) DIV - - 37
----
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT ( 29 ) / - - 37
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2384
SELECT DISTINCT 23 * - CAST( 86 AS SIGNED ) AS col1
----
-1978

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT 23 * - CAST ( 86 AS INTEGER ) AS col1
----
-1978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT 77 - 17 DIV SUM( DISTINCT - 62 )
----
77

skipif mysql # not compatible
query I rowsort label-2385
SELECT 77 - 17 / SUM ( DISTINCT - 62 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT SUM( DISTINCT - - 73 ) + + 99 - + COUNT( + 53 ) AS col0
----
171

skipif mysql # not compatible
query I rowsort label-2386
SELECT SUM ( DISTINCT - - 73 ) + + 99 - + COUNT ( + 53 ) AS col0
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT CASE - AVG ( + 14 ) WHEN 29 + - 25 + + + 50 * ( CAST( + 54 AS SIGNED ) ) THEN - + 13 END * - 48 * + COUNT( * ) * AVG ( ALL - 54 ) + - - 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT CASE - AVG ( + 14 ) WHEN 29 + - 25 + + + 50 * ( CAST ( + 54 AS INTEGER ) ) THEN - + 13 END * - 48 * + COUNT ( * ) * AVG ( ALL - 54 ) + - - 11 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 26 + 97 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT DISTINCT + 51 + - CAST( + 7 AS SIGNED ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT + 51 + - CAST ( + 7 AS INTEGER ) AS col1
----
44

query I rowsort
SELECT ALL + 93 + - 21 AS col0
----
72

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

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT COUNT ( * ) / 38 AS col1
----
0

query I rowsort
SELECT + 65 + + 44 + + 0
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2393
SELECT COUNT( * ) * + 2 * + + 89 DIV 10 DIV + 33 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2393
SELECT COUNT ( * ) * + 2 * + + 89 / 10 / + 33 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT + 74 + - 68 + + COUNT( * ) + 85
----
92

skipif mysql # not compatible
query I rowsort label-2394
SELECT + 74 + - 68 + + COUNT ( * ) + 85
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2395
SELECT DISTINCT 43 * ( - CASE + CAST( + + 24 AS DECIMAL ) WHEN + ( + + ( - - 85 ) ) / - 53 THEN 51 WHEN - NULLIF ( + 2, + 32 ) THEN NULL ELSE - COALESCE ( - 50, + 52 + 1 ) END ) AS col2
----
-2150

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT 43 * ( - CASE + CAST ( + + 24 AS REAL ) WHEN + ( + + ( - - 85 ) ) / - 53 THEN 51 WHEN - NULLIF ( + 2, + 32 ) THEN NULL ELSE - COALESCE ( - 50, + 52 + 1 ) END ) AS col2
----
-2150

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT 4 + - 47 + - COUNT( * ) * - 77 + + 66
----
100

skipif mysql # not compatible
query I rowsort label-2396
SELECT 4 + - 47 + - COUNT ( * ) * - 77 + + 66
----
100

query I rowsort
SELECT 84 * + + 78 - + 73 + - 12 * + + 21 * + 59 * + 56 * - 30 AS col1
----
24984719

query I rowsort
SELECT ALL - 66 * - 60 AS col2
----
3960

query I rowsort
SELECT DISTINCT + 50 - + 2 AS col2
----
48

query I rowsort
SELECT ALL - 16 - 28
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + 90 * + CASE - COUNT( * ) WHEN + 14 THEN + COUNT( * ) WHEN - 78 THEN NULL WHEN + 22 THEN + 35 END - + 47 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT + 90 * + CASE - COUNT ( * ) WHEN + 14 THEN + COUNT ( * ) WHEN - 78 THEN NULL WHEN + 22 THEN + 35 END - + 47 col1
----
NULL

query I rowsort
SELECT 1 - 0 * 87 AS col2
----
1

query I rowsort
SELECT 46 * + - 34
----
-1564

query I rowsort
SELECT 17 * + + ( - 38 ) * - - 49 AS col2
----
-31654

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2406
SELECT 36 DIV SUM( ALL 51 ) * COALESCE ( - + COUNT( * ), 54 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2406
SELECT 36 / SUM ( ALL 51 ) * COALESCE ( - + COUNT ( * ), 54 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT ALL + 27 * + + SUM( ALL + 16 )
----
432

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL + 27 * + + SUM ( ALL + 16 )
----
432

query II rowsort
SELECT DISTINCT 83, - 63 AS col2
----
83
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-2409
SELECT - 84 AS col1, + 64 DIV 98
----
-84
0

skipif mysql # not compatible
query II rowsort label-2409
SELECT - 84 AS col1, + 64 / 98
----
-84
0

query I rowsort
SELECT 32 * - 36
----
-1152

query I rowsort
SELECT 36 + - 80
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT DISTINCT + 74 + + 14 + MIN( ALL - - 5 ) * + + NULLIF ( - 1, - - ( - 9 ) / 9 * - ( 85 ) ) * - COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT + 74 + + 14 + MIN ( ALL - - 5 ) * + + NULLIF ( - 1, - - ( - 9 ) / 9 * - ( 85 ) ) * - COUNT ( * ) AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT ( CAST( - COALESCE ( - COUNT( * ), - COUNT( * ), 38 ) AS SIGNED ) ) + - 94 * 0 * 14 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2413
SELECT ( CAST ( - COALESCE ( - COUNT ( * ), - COUNT ( * ), 38 ) AS INTEGER ) ) + - 94 * 0 * 14 AS col2
----
1

query I rowsort
SELECT ALL - 56 + - - 81 AS col0
----
25

query I rowsort
SELECT ALL + NULLIF ( - 22, + 17 ) + - 10
----
-32

query I rowsort
SELECT DISTINCT - 66 * 62 * - 66 AS col2
----
270072

query I rowsort
SELECT ALL - 33 * + + 72
----
-2376

query I rowsort
SELECT 50 * 20 AS col1
----
1000

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

query I rowsort
SELECT DISTINCT + - 13 * + 97
----
-1261

query I rowsort
SELECT ALL 32 * + 33
----
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT - SUM( + - 33 ) * 51 + + - 98 col1
----
1585

skipif mysql # not compatible
query I rowsort label-2422
SELECT - SUM ( + - 33 ) * 51 + + - 98 col1
----
1585

query II rowsort
SELECT + + 76, + 88 * - - ( - 16 ) col0
----
76
-1408

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2424
SELECT ALL + + 71 * 94 + + COUNT( * ) + - + CAST( NULL AS DECIMAL ) * + ( - ( 86 ) ) / 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL + + 71 * 94 + + COUNT ( * ) + - + CAST ( NULL AS REAL ) * + ( - ( 86 ) ) / 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT + MAX( - 96 ) / + CASE + 1 WHEN - CASE + - 63 WHEN + - 97 * + 19 * - + 19 THEN NULL ELSE 75 END THEN + 39 * - 76 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT + MAX ( - 96 ) / + CASE + 1 WHEN - CASE + - 63 WHEN + - 97 * + 19 * - + 19 THEN NULL ELSE 75 END THEN + 39 * - 76 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL 58 * - ( + 91 ) * + COUNT( * ) - - 9
----
-5269

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL 58 * - ( + 91 ) * + COUNT ( * ) - - 9
----
-5269

query I rowsort
SELECT ALL + 57 * + 54 AS col1
----
3078

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ( - + MAX( + 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2428
SELECT ( - + MAX ( + 6 ) )
----
-6

query II rowsort
SELECT DISTINCT + + 39 AS col2, 62 + 51 AS col0
----
39
113

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL + - CASE - + 29 WHEN 46 THEN + - COUNT( * ) WHEN + 77 THEN COUNT( * ) WHEN + 8 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + - CASE - + 29 WHEN 46 THEN + - COUNT ( * ) WHEN + 77 THEN COUNT ( * ) WHEN + 8 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT COUNT( * ) * - 24 - + - 12 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2432
SELECT COUNT ( * ) * - 24 - + - 12 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT - 22 * - COUNT( * ) + 70 - + 59 + 44 * COALESCE ( MAX( DISTINCT 36 ), + COUNT( * ), + 1 * - ( ( + 94 ) ) * - ( - NULLIF ( CASE + ( + 98 ) WHEN + 2 THEN 86 ELSE 14 END, + + 21 ) ) )
----
1617

skipif mysql # not compatible
query I rowsort label-2433
SELECT - 22 * - COUNT ( * ) + 70 - + 59 + 44 * COALESCE ( MAX ( DISTINCT 36 ), + COUNT ( * ), + 1 * - ( ( + 94 ) ) * - ( - NULLIF ( CASE + ( + 98 ) WHEN + 2 THEN 86 ELSE 14 END, + + 21 ) ) )
----
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL ( - 44 ) * - - COUNT( * ) + + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL ( - 44 ) * - - COUNT ( * ) + + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT + 54 * + COUNT( * ) * 9 * + - 55
----
-26730

skipif mysql # not compatible
query I rowsort label-2435
SELECT + 54 * + COUNT ( * ) * 9 * + - 55
----
-26730

onlyif mysql # aggregate syntax: 
query II rowsort label-2436
SELECT ALL + 7, ( + SUM( + + 52 ) ) * + - 78 AS col0
----
7
-4056

skipif mysql # not compatible
query II rowsort label-2436
SELECT ALL + 7, ( + SUM ( + + 52 ) ) * + - 78 AS col0
----
7
-4056

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT - COUNT( * ) * - - NULLIF ( COUNT( * ), - 38 - - + 15 - 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-2438
SELECT - COUNT ( * ) * - - NULLIF ( COUNT ( * ), - 38 - - + 15 - 81 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2439
SELECT ALL + 91 col1, + COUNT( * ) AS col2
----
91
1

skipif mysql # not compatible
query II rowsort label-2439
SELECT ALL + 91 col1, + COUNT ( * ) AS col2
----
91
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2440
SELECT ALL COUNT( * ) + - COALESCE ( + MAX( - + 6 ), - + 60 ) + - 82 AS col1, COUNT( * ) DIV + ( - COUNT( * ) ) AS col2
----
-75
-1

skipif mysql # not compatible
query II rowsort label-2440
SELECT ALL COUNT ( * ) + - COALESCE ( + MAX ( - + 6 ), - + 60 ) + - 82 AS col1, COUNT ( * ) / + ( - COUNT ( * ) ) AS col2
----
-75
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2441
SELECT - CASE - 41 WHEN + 77 THEN + 17 ELSE CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2441
SELECT - CASE - 41 WHEN + 77 THEN + 17 ELSE CAST ( NULL AS INTEGER ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 87 + + 33 * + 28 AS col2
----
1011

query II rowsort
SELECT - 43 AS col1, 47 * + 15 AS col2
----
-43
705

query I rowsort
SELECT ALL - 24 + 76
----
52

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

query I rowsort
SELECT DISTINCT 5 + + + 7 + + 6 AS col0
----
18

query II rowsort
SELECT - 51 AS col1, 10
----
-51
10

query I rowsort
SELECT DISTINCT - 79 + 21 + - - 5 + + - 7 col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2449
SELECT DISTINCT + + 53 + - SUM( ALL 28 ) DIV + + 45 col1
----
53

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT + + 53 + - SUM ( ALL 28 ) / + + 45 col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL - - 90 + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL - - 90 + + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2451
SELECT - + 21 AS col0, 87 DIV ( - - 71 ) * + 40 DIV + + 5 - 17 + COUNT( * ) + + 56 + 63 * + 23 col0
----
-21
1497

skipif mysql # not compatible
query II rowsort label-2451
SELECT - + 21 AS col0, 87 / ( - - 71 ) * + 40 / + + 5 - 17 + COUNT ( * ) + + 56 + 63 * + 23 col0
----
-21
1497

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2452
SELECT - + COUNT( ALL + 8 ) - ( + 36 ) DIV - + 14 + ( + + 48 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2452
SELECT - + COUNT ( ALL + 8 ) - ( + 36 ) / - + 14 + ( + + 48 ) AS col0
----
49

query I rowsort
SELECT - 47 * - 46
----
2162

query I rowsort
SELECT - - 90 - 13
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2455
SELECT ALL - 85 - - 12 + + COALESCE ( COUNT( * ), - 43 ) * - 7 AS col0, - COALESCE ( + 82, - - 13 * + - CASE + 87 WHEN + 76 + 63 THEN NULL ELSE 61 - 3 * 75 END - 31 + + + 3 + - 86 + + - 91 + + 45 - + + 46 * - 61 DIV - - 21 + - 76 - + 40 * + 43, - - 90 ) + - 44 AS col2, - 33 - + - 48 * - COUNT( * )
----
-80
-126
-81

skipif mysql # not compatible
query III rowsort label-2455
SELECT ALL - 85 - - 12 + + COALESCE ( COUNT ( * ), - 43 ) * - 7 AS col0, - COALESCE ( + 82, - - 13 * + - CASE + 87 WHEN + 76 + 63 THEN NULL ELSE 61 - 3 * 75 END - 31 + + + 3 + - 86 + + - 91 + + 45 - + + 46 * - 61 / - - 21 + - 76 - + 40 * + 43, - - 90 ) + - 44 AS col2, - 33 - + - 48 * - COUNT ( * )
----
-80
-126
-81

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

skipif mysql # not compatible
query I rowsort label-2456
SELECT - + SUM ( + 82 )
----
-82

query I rowsort
SELECT ALL + - 11 - + 95 + - - 27 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-2458
SELECT - - 30 + + SUM( - + 72 ) + 89 + + 29 + 92 - 7 AS col2, - 1 - COUNT( DISTINCT 67 ) AS col2
----
161
-2

skipif mysql # not compatible
query II rowsort label-2458
SELECT - - 30 + + SUM ( - + 72 ) + 89 + + 29 + 92 - 7 AS col2, - 1 - COUNT ( DISTINCT 67 ) AS col2
----
161
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2459
SELECT ALL 19 DIV + 94 + NULLIF ( - CAST( - 62 AS SIGNED ), 91 ) - - 25 * + + 15 AS col1
----
437

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL 19 / + 94 + NULLIF ( - CAST ( - 62 AS INTEGER ), 91 ) - - 25 * + + 15 AS col1
----
437

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT + 64, COALESCE ( - 38, + COALESCE ( - ( + MIN( - 6 ) ), - + 72 ) - - 10 ) + COUNT( * ) col0
----
64
-37

skipif mysql # not compatible
query II rowsort label-2460
SELECT + 64, COALESCE ( - 38, + COALESCE ( - ( + MIN ( - 6 ) ), - + 72 ) - - 10 ) + COUNT ( * ) col0
----
64
-37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL + - 44 * + + 46 + + + CASE - 89 WHEN - 64 * + 14 THEN - 96 END + - 43 + - 42 + + ( - COUNT( * ) ) * + - CASE 88 WHEN 3 THEN NULL WHEN 85 THEN NULL WHEN NULLIF ( + 7, + ( + + 89 ) * 20 * 99 ) THEN NULL ELSE + 66 / 40 + + 65 END * 83 * + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL + - 44 * + + 46 + + + CASE - 89 WHEN - 64 * + 14 THEN - 96 END + - 43 + - 42 + + ( - COUNT ( * ) ) * + - CASE 88 WHEN 3 THEN NULL WHEN 85 THEN NULL WHEN NULLIF ( + 7, + ( + + 89 ) * 20 * 99 ) THEN NULL ELSE + 66 / 40 + + 65 END * 83 * + 78 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2463
SELECT CAST( NULL AS SIGNED ), 66 AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-2463
SELECT CAST ( NULL AS INTEGER ), 66 AS col1
----
NULL
66

query I rowsort
SELECT + 72 + + - 33 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT ALL + + ( - - CAST( - 74 AS SIGNED ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + + ( - - CAST ( - 74 AS INTEGER ) ) AS col1
----
-74

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

query I rowsort
SELECT 36 * - + 11 + - + ( + NULLIF ( 12, + 79 ) ) AS col0
----
-408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2468
SELECT DISTINCT - NULLIF ( 77, + - CAST( + - 71 AS SIGNED ) ) * MAX( - 29 ) AS col0
----
2233

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT - NULLIF ( 77, + - CAST ( + - 71 AS INTEGER ) ) * MAX ( - 29 ) AS col0
----
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL 86 * - 21 * + 18 + + COUNT( * )
----
-32507

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL 86 * - 21 * + 18 + + COUNT ( * )
----
-32507

onlyif mysql # aggregate syntax: 
query II rowsort label-2470
SELECT + ( - 70 ) AS col0, + COUNT( * ) + 85 + + 71 * ( - 20 ) AS col0
----
-70
-1334

skipif mysql # not compatible
query II rowsort label-2470
SELECT + ( - 70 ) AS col0, + COUNT ( * ) + 85 + + 71 * ( - 20 ) AS col0
----
-70
-1334

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT DISTINCT 48 DIV + 10
----
4

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT 48 / + 10
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2472
SELECT ALL - 33 * + - 19 DIV - COUNT( * ) + ( 68 ) * + 7 AS col0
----
-151

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL - 33 * + - 19 / - COUNT ( * ) + ( 68 ) * + 7 AS col0
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + 71 - - COALESCE ( + 66, + 75, - 56 * + COUNT( * ) ) AS col2
----
137

skipif mysql # not compatible
query I rowsort label-2473
SELECT + 71 - - COALESCE ( + 66, + 75, - 56 * + COUNT ( * ) ) AS col2
----
137

onlyif mysql # DIV for integer division: 
query I rowsort label-2474
SELECT + 88 DIV 83 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2474
SELECT + 88 / 83 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2475
SELECT - CAST( + 28 AS SIGNED ) * 81 AS col0
----
-2268

skipif mysql # not compatible
query I rowsort label-2475
SELECT - CAST ( + 28 AS INTEGER ) * 81 AS col0
----
-2268

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT COUNT( * ) * - 32 + - + MIN( 21 )
----
-53

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT COUNT ( * ) * - 32 + - + MIN ( 21 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL CASE + - 28 WHEN + SUM( ALL - 27 ) THEN NULL WHEN + 56 THEN + 59 ELSE 48 + 39 END AS col1
----
87

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL CASE + - 28 WHEN + SUM ( ALL - 27 ) THEN NULL WHEN + 56 THEN + 59 ELSE 48 + 39 END AS col1
----
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT DISTINCT COUNT( * ) * + MIN( ALL - 52 ) * 55 * 13 + MIN( DISTINCT 40 ) + - NULLIF ( + - 16, 39 + - 3 / + COUNT( * ) )
----
-37124

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT COUNT ( * ) * + MIN ( ALL - 52 ) * 55 * 13 + MIN ( DISTINCT 40 ) + - NULLIF ( + - 16, 39 + - 3 / + COUNT ( * ) )
----
-37124

query I rowsort
SELECT DISTINCT 58 * + 66
----
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL + CASE + 30 WHEN + + 57 THEN NULLIF ( + ( 12 ), - 21 ) WHEN - 93 THEN + + COUNT( * ) + - - 56 / + 59 WHEN + - 44 THEN 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL + CASE + 30 WHEN + + 57 THEN NULLIF ( + ( 12 ), - 21 ) WHEN - 93 THEN + + COUNT ( * ) + - - 56 / + 59 WHEN + - 44 THEN 81 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 92 - 65 + 54
----
81

query I rowsort
SELECT + 61 + + + 22
----
83

query I rowsort
SELECT DISTINCT + + 59 - + 43 AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2485
SELECT + 53 + 57 * + 7 + + - 53 DIV - 30 AS col1
----
453

skipif mysql # not compatible
query I rowsort label-2485
SELECT + 53 + 57 * + 7 + + - 53 / - 30 AS col1
----
453

onlyif mysql # aggregate syntax: 
query II rowsort label-2486
SELECT - MIN( DISTINCT 24 ), - ( - 42 ) AS col0
----
-24
42

skipif mysql # not compatible
query II rowsort label-2486
SELECT - MIN ( DISTINCT 24 ), - ( - 42 ) AS col0
----
-24
42

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT 69 - + 4 DIV + 72 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2488
SELECT 69 - + 4 / + 72 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT - 77 DIV - 62
----
1

skipif mysql # not compatible
query I rowsort label-2489
SELECT - 77 / - 62
----
1

query II rowsort
SELECT 28 * - 42 AS col2, 39 * + 37
----
-1176
1443

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT + 86 - + 2 - + 98 + + + 24 + + MAX( 23 ) * ( ( + 17 ) ) * + 0 * 12 - - 33 + + ( - + 4 )
----
39

skipif mysql # not compatible
query I rowsort label-2491
SELECT + 86 - + 2 - + 98 + + + 24 + + MAX ( 23 ) * ( ( + 17 ) ) * + 0 * 12 - - 33 + + ( - + 4 )
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2492
SELECT ALL - 79 DIV CAST( + 92 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL - 79 / CAST ( + 92 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT NULLIF ( - - 57, + ( - ( + + AVG ( ( - ( - - CAST( NULL AS SIGNED ) ) ) ) ) ) ) * 56 * + CAST( - ( + 98 ) AS SIGNED ) AS col1
----
-312816

skipif mysql # not compatible
query I rowsort label-2493
SELECT NULLIF ( - - 57, + ( - ( + + AVG ( ( - ( - - CAST ( NULL AS INTEGER ) ) ) ) ) ) ) * 56 * + CAST ( - ( + 98 ) AS INTEGER ) AS col1
----
-312816

query I rowsort
SELECT DISTINCT - ( 64 ) AS col0
----
-64

query II rowsort
SELECT + 27 * - + 29 + - 97 + - ( 91 ) * + + 56 * 22 col2, - 84
----
-112992
-84

query I rowsort
SELECT ALL - 4 + 19 + + ( + + 98 ) + + 85
----
198

query I rowsort
SELECT ALL 1 + + - 16 col0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2498
SELECT DISTINCT 60 + + 78 + COUNT( * ) DIV 23 + 64 AS col0
----
202

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT 60 + + 78 + COUNT ( * ) / 23 + 64 AS col0
----
202

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

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

query I rowsort
SELECT ALL - 96 * + 26 col1
----
-2496

query I rowsort
SELECT ALL + 41 + - - 48 AS col2
----
89

query I rowsort
SELECT 45 + + 37 AS col2
----
82

query I rowsort
SELECT ALL - 69 * + 97 AS col0
----
-6693

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2504
SELECT + 75 * - SUM( DISTINCT CAST( NULL AS DECIMAL ) ) * + + 11 * + 75 - + COUNT( * ) * - + 16 + - 14 AS col1, + 51 * - 98 col0
----
NULL
-4998

skipif mysql # not compatible
query II rowsort label-2504
SELECT + 75 * - SUM ( DISTINCT CAST ( NULL AS REAL ) ) * + + 11 * + 75 - + COUNT ( * ) * - + 16 + - 14 AS col1, + 51 * - 98 col0
----
NULL
-4998

query I rowsort
SELECT ALL 12 + - 85 AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2506
SELECT CASE - CAST( NULL AS SIGNED ) WHEN - ( + + COUNT( * ) ) * 46 THEN + 92 + + 53 ELSE - 33 END + 40
----
7

skipif mysql # not compatible
query I rowsort label-2506
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN - ( + + COUNT ( * ) ) * 46 THEN + 92 + + 53 ELSE - 33 END + 40
----
7

query I rowsort
SELECT ALL + 6 + - 90
----
-84

query I rowsort
SELECT 61 * - 89
----
-5429

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT ALL 93 DIV 68 col1
----
1

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL 93 / 68 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT 67 + - 8 DIV + - 66
----
67

skipif mysql # not compatible
query I rowsort label-2510
SELECT 67 + - 8 / + - 66
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT 11 - + MAX( + 95 )
----
-84

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT 11 - + MAX ( + 95 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT - COALESCE ( - 15, - + 61 - - - 34 + + - MAX( - 11 ) * + COALESCE ( + + 9, - ( 31 ) ) * 56, + - COUNT( * ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2512
SELECT - COALESCE ( - 15, - + 61 - - - 34 + + - MAX ( - 11 ) * + COALESCE ( + + 9, - ( 31 ) ) * 56, + - COUNT ( * ) ) AS col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2513
SELECT - - ( 16 ) * - 72 + - - CASE CAST( + 31 AS SIGNED ) WHEN - 63 THEN NULL ELSE + 35 END + - + 60
----
-1177

skipif mysql # not compatible
query I rowsort label-2513
SELECT - - ( 16 ) * - 72 + - - CASE CAST ( + 31 AS INTEGER ) WHEN - 63 THEN NULL ELSE + 35 END + - + 60
----
-1177

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL - MIN( DISTINCT 26 ) * - MIN( 74 ) AS col2
----
1924

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - MIN ( DISTINCT 26 ) * - MIN ( 74 ) AS col2
----
1924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT ALL ( CAST( AVG ( ALL - 60 ) AS SIGNED ) )
----
-60

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL ( CAST ( AVG ( ALL - 60 ) AS INTEGER ) )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT DISTINCT + 83 - 60 - CAST( - 53 AS SIGNED ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT + 83 - 60 - CAST ( - 53 AS INTEGER ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-2517
SELECT ALL 65 * - 31 + COUNT( * ) AS col0, 4 AS col2
----
-2014
4

skipif mysql # not compatible
query II rowsort label-2517
SELECT ALL 65 * - 31 + COUNT ( * ) AS col0, 4 AS col2
----
-2014
4

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

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

query II rowsort
SELECT ALL + 40, 51 AS col0
----
40
51

query I rowsort
SELECT 84 + - 10 + - ( 85 ) * - - 18 * 8
----
-12166

query I rowsort
SELECT - 40 - + + 1
----
-41

query I rowsort
SELECT + 84 + + - 74 * - + 95 * - - 29
----
203954

onlyif mysql # aggregate syntax: 
query II rowsort label-2523
SELECT 4, - 57 * + ( 32 ) * - COUNT( - ( 53 ) ) + - - 23 AS col2
----
4
1847

skipif mysql # not compatible
query II rowsort label-2523
SELECT 4, - 57 * + ( 32 ) * - COUNT ( - ( 53 ) ) + - - 23 AS col2
----
4
1847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2524
SELECT - 67 + + + 30 DIV + 33 * 86 + 62 + + - NULLIF ( + - 59, - 35 * - MIN( - ( - 5 ) ) DIV + 66 )
----
54

skipif mysql # not compatible
query I rowsort label-2524
SELECT - 67 + + + 30 / + 33 * 86 + 62 + + - NULLIF ( + - 59, - 35 * - MIN ( - ( - 5 ) ) / + 66 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2525
SELECT 7 + - - 27 - 21 AS col0, + CASE + 45 WHEN + 17 THEN NULL WHEN + + 7 * - COALESCE ( - 63, + 61 * - COALESCE ( CAST( NULL AS SIGNED ), NULLIF ( - 52, + 44 ) * 83 ) * + AVG ( + + ( + - 81 ) ), + + ( COUNT( * ) ) ) * - CASE 33 WHEN + CASE WHEN 29 IS NULL THEN NULL WHEN 52 + 74 IS NOT NULL THEN ( + + ( + - 19 ) ) * - - SUM( - 93 ) + 24 + CASE AVG ( 51 ) WHEN + COALESCE ( - 75, + 59, + 84 ) THEN - 72 ELSE 33 END ELSE NULL END THEN NULL WHEN + 42 * + 41 + - COUNT( * ) THEN 64 - + 60 ELSE - 64 END - 1 THEN 58 ELSE 8 + + 76 END AS col1
----
13
84

skipif mysql # not compatible
query II rowsort label-2525
SELECT 7 + - - 27 - 21 AS col0, + CASE + 45 WHEN + 17 THEN NULL WHEN + + 7 * - COALESCE ( - 63, + 61 * - COALESCE ( CAST ( NULL AS INTEGER ), NULLIF ( - 52, + 44 ) * 83 ) * + AVG ( + + ( + - 81 ) ), + + ( COUNT ( * ) ) ) * - CASE 33 WHEN + CASE WHEN 29 IS NULL THEN NULL WHEN 52 + 74 IS NOT NULL THEN ( + + ( + - 19 ) ) * - - SUM ( - 93 ) + 24 + CASE AVG ( 51 ) WHEN + COALESCE ( - 75, + 59, + 84 ) THEN - 72 ELSE 33 END ELSE NULL END THEN NULL WHEN + 42 * + 41 + - COUNT ( * ) THEN 64 - + 60 ELSE - 64 END - 1 THEN 58 ELSE 8 + + 76 END AS col1
----
13
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT 22 DIV - ( - 18 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2526
SELECT 22 / - ( - 18 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL - - 76 + - - 18 / - COUNT ( * ) AS col1
----
58

query I rowsort
SELECT 46 + - - 61 + + ( + 93 ) col2
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT DISTINCT - 94 * - NULLIF ( + 14, 10 * + 8 * + 2 * - CAST( NULL AS SIGNED ) ) * + + 54 + + - 17 + 25
----
71072

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - 94 * - NULLIF ( + 14, 10 * + 8 * + 2 * - CAST ( NULL AS INTEGER ) ) * + + 54 + + - 17 + 25
----
71072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2530
SELECT COALESCE ( + - COUNT( * ), - NULLIF ( + + 80, - 17 / COUNT( * ) ) - + + MIN( + + 37 ) ) * - - 33 * - COUNT( DISTINCT - COALESCE ( - 73, - 39 * + 25 * - - 76 * 33, - - 6 + - 52, ( CAST( NULL AS SIGNED ) ) ) ) * - MIN( DISTINCT + 99 ) AS col1
----
-3267

skipif mysql # not compatible
query I rowsort label-2530
SELECT COALESCE ( + - COUNT ( * ), - NULLIF ( + + 80, - 17 / COUNT ( * ) ) - + + MIN ( + + 37 ) ) * - - 33 * - COUNT ( DISTINCT - COALESCE ( - 73, - 39 * + 25 * - - 76 * 33, - - 6 + - 52, ( CAST ( NULL AS INTEGER ) ) ) ) * - MIN ( DISTINCT + 99 ) AS col1
----
-3267

query I rowsort
SELECT ALL 78 * - 6 * - 37 + - 85 AS col2
----
17231

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT 47 * + 79 + 16 * - ( - - COUNT( * ) ) + - + 5
----
3692

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT 47 * + 79 + 16 * - ( - - COUNT ( * ) ) + - + 5
----
3692

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2533
SELECT + COUNT( * ) * NULLIF ( - 59, COUNT( * ) ) DIV - 27 + + 95
----
97

skipif mysql # not compatible
query I rowsort label-2533
SELECT + COUNT ( * ) * NULLIF ( - 59, COUNT ( * ) ) / - 27 + + 95
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2534
SELECT DISTINCT 59 * - + 8 * + 76 * + COALESCE ( - 60, - MAX( ALL - 75 ) * + NULLIF ( + 95, - 24 ) - - + 63 + + 5 * COUNT( * ) + - - COUNT( * ) + - 33 * + 50 ) + - 62 * - SUM( DISTINCT 69 ) + + ( - - NULLIF ( - 96, CASE 58 WHEN + 27 THEN + 67 / + + 51 WHEN + CAST( + + 54 AS SIGNED ) * - 9 * - - CASE - NULLIF ( + - 87, + - 81 * 17 + ( NULLIF ( 2, + 23 ) ) ) WHEN + 20 THEN CASE 89 WHEN MIN( ALL + 98 ) THEN NULL WHEN 32 THEN 2 WHEN - 70 - 83 THEN NULL END END + + 53 * 19 THEN NULL END ) )
----
2156502

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT 59 * - + 8 * + 76 * + COALESCE ( - 60, - MAX ( ALL - 75 ) * + NULLIF ( + 95, - 24 ) - - + 63 + + 5 * COUNT ( * ) + - - COUNT ( * ) + - 33 * + 50 ) + - 62 * - SUM ( DISTINCT 69 ) + + ( - - NULLIF ( - 96, CASE 58 WHEN + 27 THEN + 67 / + + 51 WHEN + CAST ( + + 54 AS INTEGER ) * - 9 * - - CASE - NULLIF ( + - 87, + - 81 * 17 + ( NULLIF ( 2, + 23 ) ) ) WHEN + 20 THEN CASE 89 WHEN MIN ( ALL + 98 ) THEN NULL WHEN 32 THEN 2 WHEN - 70 - 83 THEN NULL END END + + 53 * 19 THEN NULL END ) )
----
2156502

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT ALL 33 * - CASE COUNT( * ) WHEN + COUNT( * ) THEN + 76 * + - 25 * - 56 + + 27 + 45 * 90 + + 24 END + 2 AS col1
----
-3646531

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL 33 * - CASE COUNT ( * ) WHEN + COUNT ( * ) THEN + 76 * + - 25 * - 56 + + 27 + 45 * 90 + + 24 END + 2 AS col1
----
-3646531

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT 71 DIV - 32 col0
----
-2

skipif mysql # not compatible
query I rowsort label-2536
SELECT 71 / - 32 col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2537
SELECT ALL + 38 DIV + 18 AS col1, 39 * + 29 * ( - + COUNT( * ) )
----
2
-1131

skipif mysql # not compatible
query II rowsort label-2537
SELECT ALL + 38 / + 18 AS col1, 39 * + 29 * ( - + COUNT ( * ) )
----
2
-1131

query I rowsort
SELECT ALL + 11 - - - 43 * 84 AS col2
----
-3601

query I rowsort
SELECT ALL - 48 * - 74
----
3552

query II rowsort
SELECT 70 - - - 47 AS col1, 68 * 71
----
23
4828

query I rowsort
SELECT 6 * + - 64
----
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT + 56 * - - CASE + 74 WHEN + COUNT( * ) + + 98 * COUNT( * ) THEN NULL ELSE + 40 END AS col1
----
2240

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT + 56 * - - CASE + 74 WHEN + COUNT ( * ) + + 98 * COUNT ( * ) THEN NULL ELSE + 40 END AS col1
----
2240

query I rowsort
SELECT DISTINCT + + 92 col1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT - 96 * + CAST( - 74 AS SIGNED ) + - 6 - + 30 * - 1 AS col0
----
7128

skipif mysql # not compatible
query I rowsort label-2544
SELECT - 96 * + CAST ( - 74 AS INTEGER ) + - 6 - + 30 * - 1 AS col0
----
7128

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT + COUNT( * ) * - 3 * + + 47
----
-141

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT + COUNT ( * ) * - 3 * + + 47
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2546
SELECT + + CAST( - - 22 AS SIGNED ) - + + 17 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2546
SELECT + + CAST ( - - 22 AS INTEGER ) - + + 17 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2547
SELECT - + CASE 63 WHEN - COUNT( * ) * + CAST( 88 AS SIGNED ) - - 81 + - NULLIF ( 49, + + 57 - - + 52 ) * + + ( + + 33 ) * 8 + + 26 THEN NULL WHEN + ( 62 ) / + + 94 - - 57 THEN NULL ELSE + COUNT( * ) + + COALESCE ( + 76, - - 2 * + 71 ) END
----
-77

skipif mysql # not compatible
query I rowsort label-2547
SELECT - + CASE 63 WHEN - COUNT ( * ) * + CAST ( 88 AS INTEGER ) - - 81 + - NULLIF ( 49, + + 57 - - + 52 ) * + + ( + + 33 ) * 8 + + 26 THEN NULL WHEN + ( 62 ) / + + 94 - - 57 THEN NULL ELSE + COUNT ( * ) + + COALESCE ( + 76, - - 2 * + 71 ) END
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2548
SELECT DISTINCT + 29 DIV + 43 * COUNT( 85 ) * + + 34 - + 81
----
-81

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT + 29 / + 43 * COUNT ( 85 ) * + + 34 - + 81
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT - + COUNT( * ) + + - 34 + - COUNT( * ) + CASE 33 WHEN - 61 THEN - + MAX( - + 47 ) - - SUM( 4 ) END / + - MAX( DISTINCT - - 67 ) + ( 58 ) + - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT - + COUNT ( * ) + + - 34 + - COUNT ( * ) + CASE 33 WHEN - 61 THEN - + MAX ( - + 47 ) - - SUM ( 4 ) END / + - MAX ( DISTINCT - - 67 ) + ( 58 ) + - 12 AS col1
----
NULL

query I rowsort
SELECT ALL 99 * 39 * - 57
----
-220077

query I rowsort
SELECT - 68 * + ( + 33 ) AS col0
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT + COUNT( * ) - + - ( 82 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2552
SELECT + COUNT ( * ) - + - ( 82 ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT + MAX( - 66 ) * - - 87
----
-5742

skipif mysql # not compatible
query I rowsort label-2553
SELECT + MAX ( - 66 ) * - - 87
----
-5742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT + CAST( - 66 AS SIGNED ) + - 51 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-2554
SELECT + CAST ( - 66 AS INTEGER ) + - 51 AS col2
----
-117

query I rowsort
SELECT ALL + 21 + + 6
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL + NULLIF ( + 76, + 76 ) + + COUNT( * ) * + COALESCE ( + COUNT( * ), 6 + + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + NULLIF ( + 76, + 76 ) + + COUNT ( * ) * + COALESCE ( + COUNT ( * ), 6 + + 26 )
----
NULL

query I rowsort
SELECT DISTINCT 83 + + 15 col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT ALL - SUM( DISTINCT 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - SUM ( DISTINCT 23 ) AS col2
----
-23

query I rowsort
SELECT - + NULLIF ( + 40, 87 ) AS col0
----
-40

query I rowsort
SELECT ALL 90 + - 6 + + 85 * - - 57
----
4929

query II rowsort
SELECT 54 AS col1, 92
----
54
92

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

query I rowsort
SELECT + 48 + + - 50
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL 55 * - + 46 - 39 * - + COUNT( * ) AS col2
----
-2491

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL 55 * - + 46 - 39 * - + COUNT ( * ) AS col2
----
-2491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT ALL + CASE - - CAST( NULL AS SIGNED ) WHEN + 68 + 38 + - 16 / - 72 THEN - 41 WHEN - - 99 / 15 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL + CASE - - CAST ( NULL AS INTEGER ) WHEN + 68 + 38 + - 16 / - 72 THEN - 41 WHEN - - 99 / 15 THEN NULL ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT 17 * - 3 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + ( + 69 ) + - COALESCE ( 30, + 26 * NULLIF ( + - 71, - 7 ), - + COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-2568
SELECT + ( + 69 ) + - COALESCE ( 30, + 26 * NULLIF ( + - 71, - 7 ), - + COUNT ( * ) )
----
39

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

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL + COALESCE ( + 87, + COUNT ( * ), - ( 83 ) )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT + CAST( + 6 AS SIGNED ) * - 46 AS col1
----
-276

skipif mysql # not compatible
query I rowsort label-2570
SELECT + CAST ( + 6 AS INTEGER ) * - 46 AS col1
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + COUNT( * ) + - ( - - SUM( ALL - 37 ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2571
SELECT + COUNT ( * ) + - ( - - SUM ( ALL - 37 ) ) AS col2
----
38

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

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

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

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL - 80 / - 98 * - COALESCE ( + 69, - COUNT ( ALL - 52 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT - 28 DIV + 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2574
SELECT - 28 / + 85 AS col1
----
0

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

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

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

query II rowsort
SELECT ALL - 2 * + - 70 * + 22 AS col0, + 98 col2
----
3080
98

query I rowsort
SELECT DISTINCT + + 26 * - 96 AS col0
----
-2496

query I rowsort
SELECT DISTINCT + + ( - + 3 ) AS col0
----
-3

query I rowsort
SELECT - 39 + + 7
----
-32

query I rowsort
SELECT DISTINCT + 0 * + 37 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2582
SELECT + 89 * - CASE - 12 WHEN 17 * 50 - 92 THEN NULL ELSE - - COUNT( * ) END + + 98 AS col0, 57 + + 3 * + MIN( - 81 ) * - + 64 AS col1
----
9
15609

skipif mysql # not compatible
query II rowsort label-2582
SELECT + 89 * - CASE - 12 WHEN 17 * 50 - 92 THEN NULL ELSE - - COUNT ( * ) END + + 98 AS col0, 57 + + 3 * + MIN ( - 81 ) * - + 64 AS col1
----
9
15609

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT + 18 * 82 + CAST( + + 92 AS SIGNED )
----
1568

skipif mysql # not compatible
query I rowsort label-2584
SELECT + 18 * 82 + CAST ( + + 92 AS INTEGER )
----
1568

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL - - 22 + + - CASE + 20 WHEN - COUNT( * ) THEN COALESCE ( + - 57, - 58 ) ELSE - 60 END + - 61 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL - - 22 + + - CASE + 20 WHEN - COUNT ( * ) THEN COALESCE ( + - 57, - 58 ) ELSE - 60 END + - 61 AS col1
----
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2587
SELECT ALL + + ( + 77 ) + 22 * ( + + 32 ) DIV + - 65 + 97
----
164

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + + ( + 77 ) + 22 * ( + + 32 ) / + - 65 + 97
----
164

query I rowsort
SELECT ALL - 15 + + ( - 79 )
----
-94

query I rowsort
SELECT - 69 + - 28
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2590
SELECT DISTINCT - 37 DIV - + 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2590
SELECT DISTINCT - 37 / - + 36 AS col1
----
1

query II rowsort
SELECT ALL 56, 78 AS col1
----
56
78

query I rowsort
SELECT ALL 36 - 10 + - 80 + 62
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-2593
SELECT DISTINCT - NULLIF ( 84, - 55 + COUNT( * ) + + 72 ) * - 29 AS col0, NULLIF ( 35, - MAX( + + 58 ) / 16 ) AS col1
----
2436
35

skipif mysql # not compatible
query II rowsort label-2593
SELECT DISTINCT - NULLIF ( 84, - 55 + COUNT ( * ) + + 72 ) * - 29 AS col0, NULLIF ( 35, - MAX ( + + 58 ) / 16 ) AS col1
----
2436
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2594
SELECT ALL CAST( + - 50 AS SIGNED ) AS col0, - CASE + 69 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) END + + ( + - 41 )
----
-50
-42

skipif mysql # not compatible
query II rowsort label-2594
SELECT ALL CAST ( + - 50 AS INTEGER ) AS col0, - CASE + 69 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END + + ( + - 41 )
----
-50
-42

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

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

query I rowsort
SELECT + 94 + + 47
----
141

query I rowsort
SELECT + 12 * 46
----
552

query I rowsort
SELECT ALL 77 * 68 AS col1
----
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT COUNT( * ) + + 52 + - 94 col1
----
-41

skipif mysql # not compatible
query I rowsort label-2599
SELECT COUNT ( * ) + + 52 + - 94 col1
----
-41

query II rowsort
SELECT ALL - 41 col1, - 74 * + 65 AS col1
----
-41
-4810

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2602
SELECT + 89 AS col1, + 31 * + MIN( DISTINCT + + ( - 68 ) )
----
89
-2108

skipif mysql # not compatible
query II rowsort label-2602
SELECT + 89 AS col1, + 31 * + MIN ( DISTINCT + + ( - 68 ) )
----
89
-2108

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT - 62 * 26 * 9 + - - COUNT( * )
----
-14507

skipif mysql # not compatible
query I rowsort label-2603
SELECT - 62 * 26 * 9 + - - COUNT ( * )
----
-14507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT ( - + 60 ) * CAST( 51 AS SIGNED ) AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-2604
SELECT ( - + 60 ) * CAST ( 51 AS INTEGER ) AS col0
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT - SUM( 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT - SUM ( 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2606
SELECT DISTINCT - 73 AS col0, 94 + COUNT( * )
----
-73
95

skipif mysql # not compatible
query II rowsort label-2606
SELECT DISTINCT - 73 AS col0, 94 + COUNT ( * )
----
-73
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2607
SELECT ALL - ( - 16 ) * 22 - 3 DIV COUNT( * ) * + 17
----
301

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - ( - 16 ) * 22 - 3 / COUNT ( * ) * + 17
----
301

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

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

query II rowsort
SELECT + + 56 AS col2, - 5 AS col2
----
56
-5

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

query I rowsort
SELECT ALL 45 + + 75 * - 93
----
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2612
SELECT 59 - - - CAST( 83 AS SIGNED ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2612
SELECT 59 - - - CAST ( 83 AS INTEGER ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-2613
SELECT + - COUNT( * ) AS col2, - MAX( ALL ( 14 ) ) AS col1
----
-1
-14

skipif mysql # not compatible
query II rowsort label-2613
SELECT + - COUNT ( * ) AS col2, - MAX ( ALL ( 14 ) ) AS col1
----
-1
-14

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

skipif mysql # not compatible
query I rowsort label-2614
SELECT ( - COUNT ( * ) ) * 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT + - COUNT( * ) + + - NULLIF ( 21, - ( 18 ) + - 23 ) + + - COUNT( * ) - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT + - COUNT ( * ) + + - NULLIF ( 21, - ( 18 ) + - 23 ) + + - COUNT ( * ) - COUNT ( * )
----
-24

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

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

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

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

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

query I rowsort
SELECT ALL - 30 * - 87 + + - 25 + - - 23 * - 41 AS col1
----
1642

query I rowsort
SELECT DISTINCT + 72 + + - 57 + 96
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT 20 - - + 69 + + - 31 * CASE + ( - 9 ) WHEN - ( + 61 ) THEN + AVG ( ALL 91 ) * 61 * - 30 WHEN COUNT( * ) THEN + 75 * + 80 END / - 94 * - MAX( ( + 76 ) ) * 63 + 35 + + 53 + + 2 + + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT 20 - - + 69 + + - 31 * CASE + ( - 9 ) WHEN - ( + 61 ) THEN + AVG ( ALL 91 ) * 61 * - 30 WHEN COUNT ( * ) THEN + 75 * + 80 END / - 94 * - MAX ( ( + 76 ) ) * 63 + 35 + + 53 + + 2 + + + 18
----
NULL

query II rowsort
SELECT - - 51, - 50 AS col0
----
51
-50

query I rowsort
SELECT NULLIF ( + - 46, - - 9 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT NULLIF ( 79, - MIN( + NULLIF ( - - 42, 87 * + 44 ) ) ) + - 96 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-2624
SELECT NULLIF ( 79, - MIN ( + NULLIF ( - - 42, 87 * + 44 ) ) ) + - 96 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT - CASE NULLIF ( - COUNT( * ), SUM( + 26 ) ) WHEN - 89 * 88 + + + 39 THEN NULL ELSE - 89 + - - 78 END AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2625
SELECT - CASE NULLIF ( - COUNT ( * ), SUM ( + 26 ) ) WHEN - 89 * 88 + + + 39 THEN NULL ELSE - 89 + - - 78 END AS col2
----
11

query I rowsort
SELECT ALL - 42 - 91 AS col1
----
-133

query I rowsort
SELECT DISTINCT - 24 - ( 96 ) * 94
----
-9048

query II rowsort
SELECT ALL - 51 * - 99 AS col2, 34 AS col2
----
5049
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2629
SELECT 54 * + - 26 AS col1, + COUNT( * )
----
-1404
1

skipif mysql # not compatible
query II rowsort label-2629
SELECT 54 * + - 26 AS col1, + COUNT ( * )
----
-1404
1

query I rowsort
SELECT 90 * + - 94
----
-8460

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT 70 + + COUNT( - + 81 ) + 90 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-2631
SELECT 70 + + COUNT ( - + 81 ) + 90 AS col1
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT ALL - 89 DIV - ( + 3 )
----
29

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - 89 / - ( + 3 )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT ALL 47 * - + NULLIF ( - 88, - CAST( - 3 AS SIGNED ) + 39 * + - 41 ) AS col1
----
4136

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL 47 * - + NULLIF ( - 88, - CAST ( - 3 AS INTEGER ) + 39 * + - 41 ) AS col1
----
4136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2634
SELECT 86 DIV - + 39 AS col0, - 77 * - 6 * + SUM( - NULLIF ( - + 23, + CAST( NULL AS SIGNED ) ) ) AS col2
----
-2
10626

skipif mysql # not compatible
query II rowsort label-2634
SELECT 86 / - + 39 AS col0, - 77 * - 6 * + SUM ( - NULLIF ( - + 23, + CAST ( NULL AS INTEGER ) ) ) AS col2
----
-2
10626

onlyif mysql # DIV for integer division: 
query I rowsort label-2635
SELECT DISTINCT - 7 DIV 10 DIV - - NULLIF ( - - 67, - - 45 * - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT - 7 / 10 / - - NULLIF ( - - 67, - - 45 * - 86 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT + 21 * 36 - - 60 * + + COUNT( * ) * + 76 AS col1
----
5316

skipif mysql # not compatible
query I rowsort label-2636
SELECT + 21 * 36 - - 60 * + + COUNT ( * ) * + 76 AS col1
----
5316

query I rowsort
SELECT DISTINCT ( - + 69 ) * 89 - + 78 AS col0
----
-6219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2638
SELECT + CAST( NULL AS SIGNED ) * + - 79 + + + 45 - + COUNT( * ) / - 90 * MAX( ALL - + ( - - COALESCE ( + - ( + + 79 ), + COALESCE ( + 44, + 49, - CAST( NULL AS SIGNED ) + - - 63 ) * + + 50 ) ) ) * + 24 + + ( - 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT + CAST ( NULL AS INTEGER ) * + - 79 + + + 45 - + COUNT ( * ) / - 90 * MAX ( ALL - + ( - - COALESCE ( + - ( + + 79 ), + COALESCE ( + 44, + 49, - CAST ( NULL AS INTEGER ) + - - 63 ) * + + 50 ) ) ) * + 24 + + ( - 13 )
----
NULL

query I rowsort
SELECT ALL - 16 + 19 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT + COUNT( * ) + - - 43 + 53 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-2640
SELECT + COUNT ( * ) + - - 43 + 53 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT - 26 * CAST( + 41 AS SIGNED ) * 4 - 23
----
-4287

skipif mysql # not compatible
query I rowsort label-2641
SELECT - 26 * CAST ( + 41 AS INTEGER ) * 4 - 23
----
-4287

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2642
SELECT DISTINCT + COALESCE ( + 6, + 90 DIV 41 * 9, - - ( - CASE ( 69 ) WHEN + - 81 THEN - + COUNT( * ) + 17 * - 44 ELSE 49 END ) ) + - 9 - 1 * - 73, - COUNT( * ) AS col0
----
70
-1

skipif mysql # not compatible
query II rowsort label-2642
SELECT DISTINCT + COALESCE ( + 6, + 90 / 41 * 9, - - ( - CASE ( 69 ) WHEN + - 81 THEN - + COUNT ( * ) + 17 * - 44 ELSE 49 END ) ) + - 9 - 1 * - 73, - COUNT ( * ) AS col0
----
70
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT + 26 + - MAX( ALL 54 )
----
-28

skipif mysql # not compatible
query I rowsort label-2643
SELECT + 26 + - MAX ( ALL 54 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT ALL MIN( - + 11 ) + + - 86 + 25 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL MIN ( - + 11 ) + + - 86 + 25 AS col2
----
-72

query I rowsort
SELECT ALL 88 * + 55 AS col0
----
4840

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT + + 5 + 69 * - - COUNT( * ) * + 20 AS col1
----
1385

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT + + 5 + 69 * - - COUNT ( * ) * + 20 AS col1
----
1385

query I rowsort
SELECT 76 * - 22 + + 71
----
-1601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2649
SELECT + NULLIF ( 85, - 62 + + COALESCE ( 2, - - 57 / - - 12 - - ( - 49 ) / + COUNT( * ) + - 21 * - CAST( 88 AS SIGNED ) / + ( + - 82 ) + 60 * + 78 + + NULLIF ( + + COUNT( * ), - 93 ) ) * 68 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-2649
SELECT + NULLIF ( 85, - 62 + + COALESCE ( 2, - - 57 / - - 12 - - ( - 49 ) / + COUNT ( * ) + - 21 * - CAST ( 88 AS INTEGER ) / + ( + - 82 ) + 60 * + 78 + + NULLIF ( + + COUNT ( * ), - 93 ) ) * 68 ) AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2650
SELECT DISTINCT ( + + 16 ) * - CASE AVG ( + 71 ) WHEN - ( - - COUNT( * ) ) + + CASE + ( + CASE + MIN( DISTINCT - + 93 ) WHEN - - 76 * 37 THEN NULL WHEN - - 56 + + 31 THEN - 6 ELSE NULL END ) WHEN + 18 * - 20 + - COUNT( * ) + - ( + + ( 41 ) ) THEN + COUNT( * ) END + - 84 THEN NULL WHEN + + 52 THEN NULL ELSE + 63 END + - + 30 DIV - CASE 88 WHEN + + 16 + 17 THEN + COUNT( * ) WHEN 71 * - - COUNT( * ) + + 75 * - 81 THEN NULL ELSE 45 END AS col0
----
-1008

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT ( + + 16 ) * - CASE AVG ( + 71 ) WHEN - ( - - COUNT ( * ) ) + + CASE + ( + CASE + MIN ( DISTINCT - + 93 ) WHEN - - 76 * 37 THEN NULL WHEN - - 56 + + 31 THEN - 6 ELSE NULL END ) WHEN + 18 * - 20 + - COUNT ( * ) + - ( + + ( 41 ) ) THEN + COUNT ( * ) END + - 84 THEN NULL WHEN + + 52 THEN NULL ELSE + 63 END + - + 30 / - CASE 88 WHEN + + 16 + 17 THEN + COUNT ( * ) WHEN 71 * - - COUNT ( * ) + + 75 * - 81 THEN NULL ELSE 45 END AS col0
----
-1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2651
SELECT + 42 DIV - ( + + 85 ) * - 14 * - 66 * 14 DIV - MIN( DISTINCT - 53 ) + + COUNT( * ) DIV + CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2651
SELECT + 42 / - ( + + 85 ) * - 14 * - 66 * 14 / - MIN ( DISTINCT - 53 ) + + COUNT ( * ) / + CAST ( + COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT ALL ( - 1 ) - - 14 AS col2
----
13

query I rowsort
SELECT 61 + 61 AS col1
----
122

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2655
SELECT 74 * + COUNT( * ) * + 0 AS col0, 90 AS col0
----
0
90

skipif mysql # not compatible
query II rowsort label-2655
SELECT 74 * + COUNT ( * ) * + 0 AS col0, 90 AS col0
----
0
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2656
SELECT 80 + - - COUNT( + 13 ) + + - 93 DIV + 77 col1
----
80

skipif mysql # not compatible
query I rowsort label-2656
SELECT 80 + - - COUNT ( + 13 ) + + - 93 / + 77 col1
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT ALL 60 DIV - + 60
----
-1

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL 60 / - + 60
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2658
SELECT CASE - - 81 WHEN - 11 THEN - + 41 + - CASE 73 WHEN + 30 THEN MIN( DISTINCT + 81 ) ELSE - COUNT( ALL 79 ) * + + CAST( 23 AS SIGNED ) + - - 52 END WHEN + 39 * + - COUNT( * ) THEN NULL WHEN + 9 THEN - COUNT( * ) ELSE NULL END / + + ( + 54 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2658
SELECT CASE - - 81 WHEN - 11 THEN - + 41 + - CASE 73 WHEN + 30 THEN MIN ( DISTINCT + 81 ) ELSE - COUNT ( ALL 79 ) * + + CAST ( 23 AS INTEGER ) + - - 52 END WHEN + 39 * + - COUNT ( * ) THEN NULL WHEN + 9 THEN - COUNT ( * ) ELSE NULL END / + + ( + 54 ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 90 + + - 5
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2660
SELECT - 65 + + + CASE - - COUNT( + 53 ) WHEN - 12 THEN COUNT( * ) ELSE 99 + + + 3 * 4 DIV 26 END AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2660
SELECT - 65 + + + CASE - - COUNT ( + 53 ) WHEN - 12 THEN COUNT ( * ) ELSE 99 + + + 3 * 4 / 26 END AS col2
----
34

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2663
SELECT ALL - 93 * - - 38 DIV + - 2
----
1767

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - 93 * - - 38 / + - 2
----
1767

onlyif mysql # aggregate syntax: 
query II rowsort label-2664
SELECT - 12 * - 64 * + + 97 * 84 AS col2, + COUNT( + - 79 )
----
6257664
1

skipif mysql # not compatible
query II rowsort label-2664
SELECT - 12 * - 64 * + + 97 * 84 AS col2, + COUNT ( + - 79 )
----
6257664
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL 17 + + + 27 + - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL 17 + + + 27 + - COUNT ( * )
----
43

query I rowsort
SELECT - 5 + 46 + COALESCE ( - - 63, 58 * - - 27 + 66 - COALESCE ( - - 87, - - 44 ), - 6 ) * + 43 AS col1
----
2750

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

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

query II rowsort
SELECT ALL - ( + 10 ) + - - 91 AS col2, + 54 AS col0
----
81
54

query I rowsort
SELECT - 81 + + - ( 79 ) col2
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT ALL - CASE WHEN ( NULL ) IS NOT NULL THEN - + 69 ELSE NULL END + - ( - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL - CASE WHEN ( NULL ) IS NOT NULL THEN - + 69 ELSE NULL END + - ( - + COUNT ( * ) )
----
NULL

query I rowsort
SELECT COALESCE ( + + 91, 30 * - + 93 ) AS col0
----
91

query II rowsort
SELECT + 0, - 24 col2
----
0
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2673
SELECT COALESCE ( + COALESCE ( + 34, ( + + 58 ) * - 14 * 16 - + 70 DIV - 41 + - 31 + - 12 - - 41 * 8 DIV MAX( DISTINCT - - 5 ) ), + COUNT( * ) ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2673
SELECT COALESCE ( + COALESCE ( + 34, ( + + 58 ) * - 14 * 16 - + 70 / - 41 + - 31 + - 12 - - 41 * 8 / MAX ( DISTINCT - - 5 ) ), + COUNT ( * ) ) AS col1
----
34

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

skipif mysql # not compatible
query I rowsort label-2674
SELECT - - COUNT ( * ) * - 52 + - - 43 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT + 66 + - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-2675
SELECT + 66 + - COUNT ( * )
----
65

query I rowsort
SELECT DISTINCT + 26 * + 38 * NULLIF ( - 37, + + 47 / 64 ) + + - 90
----
-36646

query I rowsort
SELECT ALL - + 48 * - 3 * 57 + - 27 AS col0
----
8181

query I rowsort
SELECT ALL + + 16 col0
----
16

query I rowsort
SELECT + - 83 + - - 22 * 34 AS col1
----
665

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2680
SELECT + - COUNT( * ) DIV 25 * 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-2680
SELECT + - COUNT ( * ) / 25 * 86 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT - + NULLIF ( + ( + 79 ), + COUNT( ALL + 77 ) ) * - 83 * - 50 AS col0
----
-327850

skipif mysql # not compatible
query I rowsort label-2681
SELECT - + NULLIF ( + ( + 79 ), + COUNT ( ALL + 77 ) ) * - 83 * - 50 AS col0
----
-327850

query I rowsort
SELECT + + ( 20 ) * + 72 * 46 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT - - 38 - SUM( DISTINCT + 79 )
----
-41

skipif mysql # not compatible
query I rowsort label-2683
SELECT - - 38 - SUM ( DISTINCT + 79 )
----
-41

query II rowsort
SELECT + + 34 AS col0, - 35 AS col1
----
34
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2685
SELECT DISTINCT + + CASE + - ( - ( - COUNT( * ) ) ) WHEN 81 + - CAST( NULL AS SIGNED ) THEN 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT + + CASE + - ( - ( - COUNT ( * ) ) ) WHEN 81 + - CAST ( NULL AS INTEGER ) THEN 97 END
----
NULL

query I rowsort
SELECT - 27 * - 61 - - 15 * + + NULLIF ( - 70, + 62 ) + + 51 AS col0
----
648

query I rowsort
SELECT + 5 + + 19 * - 5
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2688
SELECT DISTINCT + + 74, + 41 + 49 DIV COUNT( * ) AS col1
----
74
90

skipif mysql # not compatible
query II rowsort label-2688
SELECT DISTINCT + + 74, + 41 + 49 / COUNT ( * ) AS col1
----
74
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT + 49 * - MIN( DISTINCT NULLIF ( + 71, - 4 ) ) AS col1
----
-3479

skipif mysql # not compatible
query I rowsort label-2689
SELECT + 49 * - MIN ( DISTINCT NULLIF ( + 71, - 4 ) ) AS col1
----
-3479

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT + SUM( DISTINCT - 65 ) - - 32 * - 82 * - COUNT( * ) AS col0
----
2559

skipif mysql # not compatible
query I rowsort label-2691
SELECT + SUM ( DISTINCT - 65 ) - - 32 * - 82 * - COUNT ( * ) AS col0
----
2559

query I rowsort
SELECT DISTINCT 19 * + 17
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT SUM( ALL - + 22 ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-2693
SELECT SUM ( ALL - + 22 ) col2
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT + ( + MAX( DISTINCT - 18 ) ) DIV + - 76 * - + MIN( ALL 21 ) * - COUNT( * ) - + 75 * + + COALESCE ( 28, 68 DIV 43 - - 98 )
----
-2100

skipif mysql # not compatible
query I rowsort label-2694
SELECT + ( + MAX ( DISTINCT - 18 ) ) / + - 76 * - + MIN ( ALL 21 ) * - COUNT ( * ) - + 75 * + + COALESCE ( 28, 68 / 43 - - 98 )
----
-2100

query II rowsort
SELECT ALL 54 * - 61 * - 33 * + 24 AS col0, 73 AS col1
----
2608848
73

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

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

query I rowsort
SELECT DISTINCT 71 * + 24
----
1704

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT - COALESCE ( + 60, - COUNT( ALL + 86 ) + - 53, + 48 ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-2698
SELECT - COALESCE ( + 60, - COUNT ( ALL + 86 ) + - 53, + 48 ) col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL MIN( + ( 58 ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL MIN ( + ( 58 ) ) AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2700
SELECT DISTINCT + 43 DIV ( - CAST( - 51 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT + 43 / ( - CAST ( - 51 AS INTEGER ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2701
SELECT DISTINCT + NULLIF ( 2, - 64 ) + 84 + + ( 77 ) DIV + 27 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT + NULLIF ( 2, - 64 ) + 84 + + ( 77 ) / + 27 AS col2
----
88

query I rowsort
SELECT ALL 64 + ( - 30 )
----
34

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

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

query I rowsort
SELECT + 46 + - 82 + + + 46 AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT + 94 + - COALESCE ( 90, - 98 ) * - + 67 + - - NULLIF ( COALESCE ( NULLIF ( - 38, 55 * - COALESCE ( + CAST( 96 AS SIGNED ), - 35 * - 51 ) ), + - 63 ), - CAST( ( CAST( - 85 AS SIGNED ) ) AS SIGNED ) + - 61 ) AS col0
----
6086

skipif mysql # not compatible
query I rowsort label-2705
SELECT + 94 + - COALESCE ( 90, - 98 ) * - + 67 + - - NULLIF ( COALESCE ( NULLIF ( - 38, 55 * - COALESCE ( + CAST ( 96 AS INTEGER ), - 35 * - 51 ) ), + - 63 ), - CAST ( ( CAST ( - 85 AS INTEGER ) ) AS INTEGER ) + - 61 ) AS col0
----
6086

query I rowsort
SELECT - 64 * + + 49 + + 12
----
-3124

query I rowsort
SELECT ALL + 83 + + + 53 AS col2
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2708
SELECT DISTINCT + + 4 DIV - CASE + AVG ( DISTINCT + CAST( + 57 AS SIGNED ) ) WHEN 29 + + 77 THEN - COUNT( * ) * + AVG ( DISTINCT 90 ) + 59 + + 55 + + 52 * - CAST( NULL AS SIGNED ) + + - 67 ELSE 48 END - + 89 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT + + 4 / - CASE + AVG ( DISTINCT + CAST ( + 57 AS INTEGER ) ) WHEN 29 + + 77 THEN - COUNT ( * ) * + AVG ( DISTINCT 90 ) + 59 + + 55 + + 52 * - CAST ( NULL AS INTEGER ) + + - 67 ELSE 48 END - + 89 AS col0
----
-89

query I rowsort
SELECT ALL + - 59 * + 43 * + + 46
----
-116702

query I rowsort
SELECT - - 53 + NULLIF ( - - 85, - 70 * + 27 ) * + + 98
----
8383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2711
SELECT + + CAST( NULL AS SIGNED ) * - 25 + ( - 90 ) * 52 * - - COUNT( * ) + + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT + + CAST ( NULL AS INTEGER ) * - 25 + ( - 90 ) * 52 * - - COUNT ( * ) + + 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2712
SELECT - 66 * + 83, - COUNT( * ) AS col1
----
-5478
-1

skipif mysql # not compatible
query II rowsort label-2712
SELECT - 66 * + 83, - COUNT ( * ) AS col1
----
-5478
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2714
SELECT SUM( ALL + + 36 ) * + 16 - + - 17 + 37 + - ( + + 92 ) + - 52 * + - 45 - NULLIF ( - 13, COUNT( - - 68 ) ) DIV - + 80 * + 44 * + COUNT( * ) * COUNT( * ) AS col1
----
2878

skipif mysql # not compatible
query I rowsort label-2714
SELECT SUM ( ALL + + 36 ) * + 16 - + - 17 + 37 + - ( + + 92 ) + - 52 * + - 45 - NULLIF ( - 13, COUNT ( - - 68 ) ) / - + 80 * + 44 * + COUNT ( * ) * COUNT ( * ) AS col1
----
2878

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

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

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

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL 83 / + 48 - COALESCE ( COUNT ( * ), + 36 - - - 49 )
----
0

query I rowsort
SELECT - 69 * + 54 + - 56
----
-3782

query I rowsort
SELECT ALL + 20 * + ( - + 74 )
----
-1480

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2720
SELECT NULLIF ( + COUNT( * ), + - 45 + - 26 + + - CAST( NULL AS SIGNED ) - - 2 + - + 77 * + + 65 * - + 65 ) * 56, 66 AS col0
----
56
66

skipif mysql # not compatible
query II rowsort label-2720
SELECT NULLIF ( + COUNT ( * ), + - 45 + - 26 + + - CAST ( NULL AS INTEGER ) - - 2 + - + 77 * + + 65 * - + 65 ) * 56, 66 AS col0
----
56
66

query I rowsort
SELECT ALL 24 + + 70
----
94

query I rowsort
SELECT 96 + - 7 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2723
SELECT ALL COALESCE ( CAST( 4 AS SIGNED ), + MAX( + + 91 ) * - + 35 ) + - 0 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL COALESCE ( CAST ( 4 AS INTEGER ), + MAX ( + + 91 ) * - + 35 ) + - 0 AS col1
----
4

query I rowsort
SELECT DISTINCT ( 74 ) * - CASE - 53 WHEN 97 * - 47 + + - 34 + - 85 THEN - + 64 END * - + 99 + + - 72 AS col0
----
NULL

query I rowsort
SELECT 15 + + 90 + + + 25 * - 12 AS col1
----
-195

query II rowsort
SELECT 38, - 37 AS col0
----
38
-37

query I rowsort
SELECT ( NULLIF ( - + 55, 21 * AVG ( ALL + 6 ) ) ) + + - 44 AS col1
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2728
SELECT SUM( 9 ) * 84 DIV 49
----
15

skipif mysql # not compatible
query I rowsort label-2728
SELECT SUM ( 9 ) * 84 / 49
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2729
SELECT CAST( NULL AS DECIMAL ) + + 12 + - - 65 / + 75 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT CAST ( NULL AS REAL ) + + 12 + - - 65 / + 75 * - 22
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2730
SELECT 41 * 58 DIV - 95 AS col1, 68
----
-25
68

skipif mysql # not compatible
query II rowsort label-2730
SELECT 41 * 58 / - 95 AS col1, 68
----
-25
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT ALL 11 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL 11 / - 77
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2732
SELECT ALL - 11 * NULLIF ( - 30, + + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + + - 97 ) AS col1
----
330

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL - 11 * NULLIF ( - 30, + + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + + - 97 ) AS col1
----
330

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT - - MAX( 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT - - MAX ( 69 ) AS col0
----
69

query I rowsort
SELECT ALL 0 * - 36 * - ( + - 52 ) * 54
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2736
SELECT ALL - COALESCE ( + 67, + - CAST( + - 64 AS SIGNED ) * 6 + + COUNT( ALL + 24 ) ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL - COALESCE ( + 67, + - CAST ( + - 64 AS INTEGER ) * 6 + + COUNT ( ALL + 24 ) ) col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT DISTINCT + 17 * + 26 + + - 24 * 75 DIV - 35 AS col1
----
493

skipif mysql # not compatible
query I rowsort label-2737
SELECT DISTINCT + 17 * + 26 + + - 24 * 75 / - 35 AS col1
----
493

query I rowsort
SELECT 20 * + - 17 AS col1
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT + 6 * - + 25 + + 82 * + 85 - - COUNT( * )
----
6821

skipif mysql # not compatible
query I rowsort label-2739
SELECT + 6 * - + 25 + + 82 * + 85 - - COUNT ( * )
----
6821

query I rowsort
SELECT - 11 - - 69 AS col2
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-2741
SELECT 29 AS col1, + 34 DIV - 2 AS col2
----
29
-17

skipif mysql # not compatible
query II rowsort label-2741
SELECT 29 AS col1, + 34 / - 2 AS col2
----
29
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2742
SELECT ALL - 61 DIV + ( + ( - - 22 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - 61 / + ( + ( - - 22 ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2743
SELECT 80 DIV 72 AS col0, + CASE + 79 WHEN - COUNT( * ) THEN - + 58 DIV + 84 ELSE + + 66 * - COUNT( * ) + + - CASE - 69 WHEN + 57 DIV - 37 THEN NULL WHEN 12 THEN NULL ELSE + 58 END + + + 15 + - + NULLIF ( - 61, 36 ) + - - 71 + - + 98 * + COUNT( * ) END
----
1
-75

skipif mysql # not compatible
query II rowsort label-2743
SELECT 80 / 72 AS col0, + CASE + 79 WHEN - COUNT ( * ) THEN - + 58 / + 84 ELSE + + 66 * - COUNT ( * ) + + - CASE - 69 WHEN + 57 / - 37 THEN NULL WHEN 12 THEN NULL ELSE + 58 END + + + 15 + - + NULLIF ( - 61, 36 ) + - - 71 + - + 98 * + COUNT ( * ) END
----
1
-75

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

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

query I rowsort
SELECT ALL + 89 + + ( + 56 ) + + 11 AS col1
----
156

query I rowsort
SELECT DISTINCT + 16 + 74
----
90

query I rowsort
SELECT DISTINCT - 44 * + + 29 AS col1
----
-1276

query I rowsort
SELECT 89 * + 56
----
4984

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

skipif mysql # not compatible
query II rowsort label-2749
SELECT - 28, - COUNT ( * ) AS col2
----
-28
-1

query I rowsort
SELECT DISTINCT + 71 + + ( - 46 )
----
25

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

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

query I rowsort
SELECT COALESCE ( 22, + 39 * 54 + + + 87, + 74 ) * - 7
----
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-2753
SELECT DISTINCT COUNT( ALL + 65 ) AS col1, 55
----
1
55

skipif mysql # not compatible
query II rowsort label-2753
SELECT DISTINCT COUNT ( ALL + 65 ) AS col1, 55
----
1
55

query II rowsort
SELECT - 93, 69 AS col2
----
-93
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT NULLIF ( + + SUM( - 27 ), + - 52 + 32 ) * ( + - 75 ) AS col1
----
2025

skipif mysql # not compatible
query I rowsort label-2755
SELECT NULLIF ( + + SUM ( - 27 ), + - 52 + 32 ) * ( + - 75 ) AS col1
----
2025

onlyif mysql # aggregate syntax: 
query II rowsort label-2756
SELECT ALL SUM( + + 97 ) AS col2, 97 + 51 * - 8
----
97
-311

skipif mysql # not compatible
query II rowsort label-2756
SELECT ALL SUM ( + + 97 ) AS col2, 97 + 51 * - 8
----
97
-311

onlyif mysql # aggregate syntax: 
query II rowsort label-2757
SELECT 35 AS col2, MIN( ALL + - 16 ) * + 32 + + 85
----
35
-427

skipif mysql # not compatible
query II rowsort label-2757
SELECT 35 AS col2, MIN ( ALL + - 16 ) * + 32 + + 85
----
35
-427

query I rowsort
SELECT ALL 43 * + ( 59 ) AS col0
----
2537

query I rowsort
SELECT NULLIF ( - 51, - ( + - 67 ) )
----
-51

query II rowsort
SELECT ALL - 7 AS col2, 9
----
-7
9

query I rowsort
SELECT + 52 + 65 + + 47
----
164

query I rowsort
SELECT 56 * 72 * + - 16 AS col2
----
-64512

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT + 79 + SUM( + 76 ) + - + 17 AS col0
----
138

skipif mysql # not compatible
query I rowsort label-2763
SELECT + 79 + SUM ( + 76 ) + - + 17 AS col0
----
138

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

query I rowsort
SELECT ALL 18 * 27
----
486

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

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

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

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

query I rowsort
SELECT ALL - - 85 col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2770
SELECT DISTINCT - 25 AS col1, COUNT( * ) * - 12 - 82 * - - 71
----
-25
-5834

skipif mysql # not compatible
query II rowsort label-2770
SELECT DISTINCT - 25 AS col1, COUNT ( * ) * - 12 - 82 * - - 71
----
-25
-5834

onlyif mysql # aggregate syntax: 
query II rowsort label-2771
SELECT + + COUNT( * ), - COUNT( ALL + 60 ) - - 1 col0
----
1
0

skipif mysql # not compatible
query II rowsort label-2771
SELECT + + COUNT ( * ), - COUNT ( ALL + 60 ) - - 1 col0
----
1
0

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

query I rowsort
SELECT + + 75 + + 70 * 32 AS col2
----
2315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2774
SELECT ( - + 50 ) / + 85 * + 93 + + MIN( ALL + + 44 ) - + 33 + - AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT ( - + 50 ) / + 85 * + 93 + + MIN ( ALL + + 44 ) - + 33 + - AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 31 * - 61 AS col0
----
-1891

onlyif mysql # aggregate syntax: 
query II rowsort label-2776
SELECT MIN( ALL - 49 ) AS col1, - 36 * + 31 * + - 2
----
-49
2232

skipif mysql # not compatible
query II rowsort label-2776
SELECT MIN ( ALL - 49 ) AS col1, - 36 * + 31 * + - 2
----
-49
2232

query I rowsort
SELECT DISTINCT - 50 * + + 82 + + 82 + 22
----
-3996

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL - 0 * + NULLIF ( + 25, - COUNT( ALL 30 ) ) + - - 42
----
42

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - 0 * + NULLIF ( + 25, - COUNT ( ALL 30 ) ) + - - 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT ALL + 17 * COUNT( * ) + + - ( + - 87 ) col0
----
104

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + 17 * COUNT ( * ) + + - ( + - 87 ) col0
----
104

query I rowsort
SELECT DISTINCT 54 * - - 8 AS col1
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - 65 + - - CASE 30 WHEN + - AVG ( ALL + - 93 ) / + MAX( + 59 ) - - 3 THEN NULL ELSE - 6 END
----
-71

skipif mysql # not compatible
query I rowsort label-2781
SELECT - 65 + - - CASE 30 WHEN + - AVG ( ALL + - 93 ) / + MAX ( + 59 ) - - 3 THEN NULL ELSE - 6 END
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2782
SELECT ALL - 40 * - 7 + - 49 DIV + + 68 * + MIN( DISTINCT - 22 )
----
280

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - 40 * - 7 + - 49 / + + 68 * + MIN ( DISTINCT - 22 )
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT + CASE 22 WHEN - 67 THEN NULL WHEN - - 3 THEN - + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT + CASE 22 WHEN - 67 THEN NULL WHEN - - 3 THEN - + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + ( - 95 ) + + - 25 AS col0
----
-120

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

skipif mysql # not compatible
query I rowsort label-2785
SELECT - 35 * + + 3 * COUNT ( * ) AS col2
----
-105

query II rowsort
SELECT DISTINCT - 86 * + + 96 AS col0, + 52 + - 35
----
-8256
17

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

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

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

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

query I rowsort
SELECT ALL + + 52 * + 51
----
2652

query I rowsort
SELECT - - 66 + + 98 + 56 * - 3
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT - + MIN( DISTINCT 65 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-2791
SELECT - + MIN ( DISTINCT 65 ) col0
----
-65

query I rowsort
SELECT - 19 + - ( 30 )
----
-49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2794
SELECT ALL ( 10 ), + 95 DIV + COUNT( * ) + ( 96 ) * 22 AS col2
----
10
2207

skipif mysql # not compatible
query II rowsort label-2794
SELECT ALL ( 10 ), + 95 / + COUNT ( * ) + ( 96 ) * 22 AS col2
----
10
2207

query I rowsort
SELECT - 63 * + 1 + - - 90 AS col0
----
27

query I rowsort
SELECT - 77 * + 84 + + 38 AS col1
----
-6430

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT ALL MIN( + - 3 ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL MIN ( + - 3 ) col2
----
-3

query I rowsort
SELECT ALL - - NULLIF ( + - 3, - + 24 + + 21 ) * 21 * + 94 AS col1
----
NULL

query I rowsort
SELECT ALL 29 + 39 - + 31 * - ( - 31 ) * + + 57 AS col0
----
-54709

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL + COUNT( * ) * + - 93 + - - 60
----
-33

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL + COUNT ( * ) * + - 93 + - - 60
----
-33

query I rowsort
SELECT + - 23 * - + NULLIF ( 19, - 41 * + 55 ) * - 97
----
-42389

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT - - CASE - 72 WHEN + 70 THEN + ( + 27 ) END * + + COUNT( * ) * + - 71 * - 31 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT - - CASE - 72 WHEN + 70 THEN + ( + 27 ) END * + + COUNT ( * ) * + - 71 * - 31 * + COUNT ( * )
----
NULL

query I rowsort
SELECT NULLIF ( + 86, - 72 ) AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT ALL - 93 / - COUNT( * ) * - 77 + - + ( - CASE - COUNT( * ) WHEN + - 94 THEN CAST( - 6 AS SIGNED ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - 93 / - COUNT ( * ) * - 77 + - + ( - CASE - COUNT ( * ) WHEN + - 94 THEN CAST ( - 6 AS INTEGER ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT - 6 DIV + 8
----
0

skipif mysql # not compatible
query I rowsort label-2806
SELECT - 6 / + 8
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2807
SELECT ALL - 14 DIV 75 + - - COUNT( * ) + - 50
----
-49

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL - 14 / 75 + - - COUNT ( * ) + - 50
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT + COALESCE ( - 66, + + COUNT( * ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-2808
SELECT + COALESCE ( - 66, + + COUNT ( * ) ) AS col2
----
-66

query I rowsort
SELECT ALL + 61 * - - 79
----
4819

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2810
SELECT ALL + COUNT( ALL + 61 ) DIV 11 + COALESCE ( COUNT( * ), + 33 ) AS col0, 1 col0
----
1
1

skipif mysql # not compatible
query II rowsort label-2810
SELECT ALL + COUNT ( ALL + 61 ) / 11 + COALESCE ( COUNT ( * ), + 33 ) AS col0, 1 col0
----
1
1

query II rowsort
SELECT ALL + 70, + 82 col0
----
70
82

query I rowsort
SELECT + 7 + + 32
----
39

query I rowsort
SELECT + 42 * - 22
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ALL - CASE - + 99 WHEN - 18 THEN - 31 WHEN - - SUM( DISTINCT + - 87 ) THEN NULL ELSE NULL END * - 15 * + 39 - + 11 + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - CASE - + 99 WHEN - 18 THEN - 31 WHEN - - SUM ( DISTINCT + - 87 ) THEN NULL ELSE NULL END * - 15 * + 39 - + 11 + - 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2815
SELECT DISTINCT COUNT( * ) DIV 46 col1
----
0

skipif mysql # not compatible
query I rowsort label-2815
SELECT DISTINCT COUNT ( * ) / 46 col1
----
0

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

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

query I rowsort
SELECT + ( + 39 ) + + - 41 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2818
SELECT - 46 * 50 DIV + 78 + - CAST( + COUNT( * ) AS SIGNED )
----
-30

skipif mysql # not compatible
query I rowsort label-2818
SELECT - 46 * 50 / + 78 + - CAST ( + COUNT ( * ) AS INTEGER )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2819
SELECT - 12 * - NULLIF ( - 7, - 0 - + COALESCE ( - CASE - 34 WHEN 6 THEN NULL WHEN CAST( + 15 AS SIGNED ) + - 5 + + + 13 * + 91 * - + 64 * - + 4 THEN - + 62 END, + - NULLIF ( - 64, + - 80 * - 25 + - ( + 57 ) * + 72 + ( 66 ) ), - 8 * 0 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-2819
SELECT - 12 * - NULLIF ( - 7, - 0 - + COALESCE ( - CASE - 34 WHEN 6 THEN NULL WHEN CAST ( + 15 AS INTEGER ) + - 5 + + + 13 * + 91 * - + 64 * - + 4 THEN - + 62 END, + - NULLIF ( - 64, + - 80 * - 25 + - ( + 57 ) * + 72 + ( 66 ) ), - 8 * 0 ) )
----
-84

query I rowsort
SELECT ALL 35 * 49
----
1715

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2822
SELECT + CAST( MAX( + - 51 ) AS SIGNED ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-2822
SELECT + CAST ( MAX ( + - 51 ) AS INTEGER ) col0
----
-51

query I rowsort
SELECT + 76 * + + 12 * - + 22
----
-20064

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL MAX( - - 70 ) * 29
----
2030

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL MAX ( - - 70 ) * 29
----
2030

query I rowsort
SELECT + 81 - 70
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT + 40 * + COALESCE ( + 81, - + 4 * - - COUNT( * ) ) AS col0
----
3240

skipif mysql # not compatible
query I rowsort label-2826
SELECT + 40 * + COALESCE ( + 81, - + 4 * - - COUNT ( * ) ) AS col0
----
3240

query I rowsort
SELECT + 61 * 54 AS col1
----
3294

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL + 54 + 0 + - MAX( - 77 ) - + - 22 AS col0
----
153

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL + 54 + 0 + - MAX ( - 77 ) - + - 22 AS col0
----
153

query I rowsort
SELECT - + 43 - - + 16
----
-27

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

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

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

query I rowsort
SELECT DISTINCT - ( - + 21 ) * - NULLIF ( - 13, + 63 + 62 )
----
273

query I rowsort
SELECT 28 + ( 35 ) + - - 19 * NULLIF ( 50, - 26 ) + - 84
----
929

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2836
SELECT - 90 + + + 80 + - 66 + - - CAST( NULL AS DECIMAL ) * - 98 * COALESCE ( + CASE + 42 WHEN 73 THEN 88 * - 71 * - 80 END, - 26 * - - AVG ( + CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT - 90 + + + 80 + - 66 + - - CAST ( NULL AS REAL ) * - 98 * COALESCE ( + CASE + 42 WHEN 73 THEN 88 * - 71 * - 80 END, - 26 * - - AVG ( + CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2837
SELECT ALL + - 57 + CAST( - COUNT( ALL + - 7 ) AS SIGNED ) + - - 45 col0
----
-13

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + - 57 + CAST ( - COUNT ( ALL + - 7 ) AS INTEGER ) + - - 45 col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2838
SELECT 67 DIV + - MIN( ALL + 51 ) + - COALESCE ( + CAST( - - 80 AS SIGNED ), NULLIF ( - 75, - 98 ), - COALESCE ( COUNT( * ), + 78 * 10 + 48 + NULLIF ( - 2, - + ( - + CAST( + MIN( ALL - 31 ) AS SIGNED ) ) ) * - + MAX( ALL + 80 ) ) ) + - + 80 AS col0, 84, + 58 + + - 70 col0
----
-161
84
-12

skipif mysql # not compatible
query III rowsort label-2838
SELECT 67 / + - MIN ( ALL + 51 ) + - COALESCE ( + CAST ( - - 80 AS INTEGER ), NULLIF ( - 75, - 98 ), - COALESCE ( COUNT ( * ), + 78 * 10 + 48 + NULLIF ( - 2, - + ( - + CAST ( + MIN ( ALL - 31 ) AS INTEGER ) ) ) * - + MAX ( ALL + 80 ) ) ) + - + 80 AS col0, 84, + 58 + + - 70 col0
----
-161
84
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT 89 * - - COUNT( * ) * - + 81 AS col1
----
-7209

skipif mysql # not compatible
query I rowsort label-2840
SELECT 89 * - - COUNT ( * ) * - + 81 AS col1
----
-7209

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

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

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

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

query I rowsort
SELECT 15 * 80 AS col1
----
1200

query I rowsort
SELECT ALL 94 - 10 AS col1
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT COALESCE ( + + 22, - 86 + + 51 ) * ( + 87 ) * + 60 + + + MIN( DISTINCT + 95 ) AS col1
----
114935

skipif mysql # not compatible
query I rowsort label-2846
SELECT COALESCE ( + + 22, - 86 + + 51 ) * ( + 87 ) * + 60 + + + MIN ( DISTINCT + 95 ) AS col1
----
114935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2847
SELECT ALL - CAST( 20 AS SIGNED ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - CAST ( 20 AS INTEGER ) AS col2
----
-20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2849
SELECT 20 + - 36 + + + 25 DIV - 96 - + NULLIF ( + COUNT( * ), 17 * - + ( - 96 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-2849
SELECT 20 + - 36 + + + 25 / - 96 - + NULLIF ( + COUNT ( * ), 17 * - + ( - 96 ) )
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2850
SELECT ( + NULLIF ( - + 56, - 91 * + - MAX( - - 94 ) ) ) DIV - + ( 37 )
----
1

skipif mysql # not compatible
query I rowsort label-2850
SELECT ( + NULLIF ( - + 56, - 91 * + - MAX ( - - 94 ) ) ) / - + ( 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT 68 * - 4 * - COUNT( * ) * - 81 + + - 97
----
-22129

skipif mysql # not compatible
query I rowsort label-2851
SELECT 68 * - 4 * - COUNT ( * ) * - 81 + + - 97
----
-22129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT + 18 * + ( - + 13 ) + 5 + - 24 * - + ( - CAST( NULL AS SIGNED ) ) + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT + 18 * + ( - + 13 ) + 5 + - 24 * - + ( - CAST ( NULL AS INTEGER ) ) + - 27 AS col1
----
NULL

query I rowsort
SELECT ALL - 83 + + 50
----
-33

query I rowsort
SELECT DISTINCT - 25 + + 86 AS col2
----
61

query I rowsort
SELECT - + CASE - 62 WHEN 14 THEN + 25 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - + 9 + - 88 + 95 AS col0
----
-2

query I rowsort
SELECT - 81 + - 75 AS col0
----
-156

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

query I rowsort
SELECT ALL 78 + - 12 - - 27
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT + ( ( 43 ) ) + + 38 DIV - + 13 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2860
SELECT + ( ( 43 ) ) + + 38 / - + 13 AS col0
----
41

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

query I rowsort
SELECT DISTINCT + + 55 * - 73 AS col2
----
-4015

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT DISTINCT + + MIN( - 47 ) - 40 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT + + MIN ( - 47 ) - 40 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT + ( - NULLIF ( + + 79, - + 99 * + - COUNT( * ) ) ) * - 71 AS col0
----
5609

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT + ( - NULLIF ( + + 79, - + 99 * + - COUNT ( * ) ) ) * - 71 AS col0
----
5609

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT 89 - 42 * + + 22 AS col0, 96 + - + MAX( - + 59 )
----
-835
155

skipif mysql # not compatible
query II rowsort label-2865
SELECT 89 - 42 * + + 22 AS col0, 96 + - + MAX ( - + 59 )
----
-835
155

query I rowsort
SELECT 25 * - 36 AS col0
----
-900

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

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

query I rowsort
SELECT ALL 30 * - ( + + 78 ) * + 94 AS col0
----
-219960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT DISTINCT - MAX( 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT - MAX ( 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT ALL - CASE - + COUNT( * ) WHEN 9 THEN - - 65 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL - CASE - + COUNT ( * ) WHEN 9 THEN - - 65 ELSE NULL END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2872
SELECT COUNT ( * ) * - 87
----
-87

query II rowsort
SELECT + 34 AS col1, - 54 * + - 94 AS col1
----
34
5076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL - COALESCE ( + 39, + - 7 * - COALESCE ( 57, - CAST( NULL AS SIGNED ), + 57 ) ) + 19
----
-20

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - COALESCE ( + 39, + - 7 * - COALESCE ( 57, - CAST ( NULL AS INTEGER ), + 57 ) ) + 19
----
-20

query I rowsort
SELECT DISTINCT + 82 + 12 + ( - 15 ) * + + 8 + + 2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT COUNT( ALL + 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2876
SELECT COUNT ( ALL + 95 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT 39 * COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-2877
SELECT 39 * COUNT ( * ) AS col0
----
39

query I rowsort
SELECT DISTINCT + 64 + 16 AS col2
----
80

query I rowsort
SELECT ALL - 37 + 94 - + + 83
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT COUNT( * ) * - 61 * 10
----
-610

skipif mysql # not compatible
query I rowsort label-2880
SELECT COUNT ( * ) * - 61 * 10
----
-610

query I rowsort
SELECT DISTINCT - 96 + ( 79 ) col2
----
-17

query I rowsort
SELECT DISTINCT + 74 + - 84
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2883
SELECT - + 66 - + 51 * CAST( - 3 AS SIGNED ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2883
SELECT - + 66 - + 51 * CAST ( - 3 AS INTEGER ) AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT + + 2 * + - ( COALESCE ( 65, - 67 * + 41 + - 32 + 91 + - - 76 * + 1, 92 * 68 - + COUNT( * ) * 64, - - CAST( + MAX( DISTINCT 48 ) AS SIGNED ) * 93 ) ) col2
----
-130

skipif mysql # not compatible
query I rowsort label-2884
SELECT + + 2 * + - ( COALESCE ( 65, - 67 * + 41 + - 32 + 91 + - - 76 * + 1, 92 * 68 - + COUNT ( * ) * 64, - - CAST ( + MAX ( DISTINCT 48 ) AS INTEGER ) * 93 ) ) col2
----
-130

query I rowsort
SELECT - ( - - 38 )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2886
SELECT + - 86 DIV - - 13 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2886
SELECT + - 86 / - - 13 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT ALL COUNT( DISTINCT + 76 ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL COUNT ( DISTINCT + 76 ) - + COUNT ( * )
----
0

query I rowsort
SELECT + 54 * + 73
----
3942

query I rowsort
SELECT + 68 - + 65
----
3

query I rowsort
SELECT + - 42 * 83
----
-3486

query I rowsort
SELECT DISTINCT COALESCE ( 44, - - ( - 49 ) )
----
44

query I rowsort
SELECT - - 39 * + 65 * 37 + - 16
----
93779

query I rowsort
SELECT + - 34 * - 57 AS col1
----
1938

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2894
SELECT DISTINCT - COUNT( * ) * + + MIN( + - 22 ) * + MIN( ALL + 37 ) + - COUNT( 22 ) * + - 45 * 11 * 78 DIV + 84
----
1273

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT - COUNT ( * ) * + + MIN ( + - 22 ) * + MIN ( ALL + 37 ) + - COUNT ( 22 ) * + - 45 * 11 * 78 / + 84
----
1273

query I rowsort
SELECT + + 64 + - - 69 * + 90 + - + 63 AS col2
----
6211

query II rowsort
SELECT + 19 * 92 AS col2, 67 + + - 85 AS col0
----
1748
-18

query I rowsort
SELECT - 36 - + 18 - + 84 * + 94 AS col2
----
-7950

query II rowsort
SELECT + 7 + - - 72 AS col1, + 71 * 47 * - - 26 AS col1
----
79
86762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT - 12 - + 97 DIV 9 * - 77 + - COUNT( * ) + + COUNT( DISTINCT - 93 ) + - 64
----
694

skipif mysql # not compatible
query I rowsort label-2899
SELECT - 12 - + 97 / 9 * - 77 + - COUNT ( * ) + + COUNT ( DISTINCT - 93 ) + - 64
----
694

query II rowsort
SELECT ALL 56 AS col0, NULLIF ( 19, + 18 * - - 78 )
----
56
19

query I rowsort
SELECT + 83 + - 32 * + 28
----
-813

query II rowsort
SELECT ALL 9 AS col0, 79 * ( + 20 ) AS col2
----
9
1580

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL + SUM( - 89 ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + SUM ( - 89 ) col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-2906
SELECT - ( - 18 ) DIV - - 69 + - 55 + + 21 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2906
SELECT - ( - 18 ) / - - 69 + - 55 + + 21 AS col1
----
-34

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

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

query II rowsort
SELECT + 69, - 59 AS col0
----
69
-59

query I rowsort
SELECT - 53 + + 10 AS col2
----
-43

query I rowsort
SELECT ALL + ( 14 ) * + - 78 + + 22 AS col0
----
-1070

query I rowsort
SELECT + 17 * 22 * + 27 col0
----
10098

query II rowsort
SELECT + 32 AS col2, - 26
----
32
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT - 40 DIV - - 93 * + ( 51 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2913
SELECT - 40 / - - 93 * + ( 51 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2914
SELECT ALL - 78 * + + COUNT( * ) DIV - COUNT( * ) + 11 * - + 33 - + + ( - 40 )
----
-245

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - 78 * + + COUNT ( * ) / - COUNT ( * ) + 11 * - + 33 - + + ( - 40 )
----
-245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT ALL + 94 * + 59 + - COALESCE ( - 15, - NULLIF ( 45, + 83 ) ) * + ( + - 70 ) * - 9 + + - CAST( NULL AS SIGNED ) + + 68 * + - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL + 94 * + 59 + - COALESCE ( - 15, - NULLIF ( 45, + 83 ) ) * + ( + - 70 ) * - 9 + + - CAST ( NULL AS INTEGER ) + + 68 * + - 98 AS col0
----
NULL

query I rowsort
SELECT ALL 52 * 43 + - 75 AS col2
----
2161

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT - COUNT( * ) + + 60 * + 22
----
1319

skipif mysql # not compatible
query I rowsort label-2917
SELECT - COUNT ( * ) + + 60 * + 22
----
1319

query I rowsort
SELECT - - 56 * 45 + + + 57
----
2577

query II rowsort
SELECT ALL + NULLIF ( - 31, - 85 + - 99 + 14 * + 5 ), ( 88 ) col1
----
-31
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT 95 * - ( + MAX( ALL 42 ) ) + + 24
----
-3966

skipif mysql # not compatible
query I rowsort label-2920
SELECT 95 * - ( + MAX ( ALL 42 ) ) + + 24
----
-3966

query I rowsort
SELECT DISTINCT - 84 * - 10 col2
----
840

query I rowsort
SELECT + - 19 * 63 + + + 45 * 43
----
738

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2923
SELECT + 99 - - + COUNT( * ) AS col1, COUNT( * ) - + CAST( COUNT( * ) AS SIGNED ) * - + ( NULLIF ( - - 31, + 24 ) ) * - COUNT( * ) DIV - + COUNT( * ) + + 34 * + ( - COUNT( * ) )
----
100
-2

skipif mysql # not compatible
query II rowsort label-2923
SELECT + 99 - - + COUNT ( * ) AS col1, COUNT ( * ) - + CAST ( COUNT ( * ) AS INTEGER ) * - + ( NULLIF ( - - 31, + 24 ) ) * - COUNT ( * ) / - + COUNT ( * ) + + 34 * + ( - COUNT ( * ) )
----
100
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT ALL - ( + 22 ) * + 45 + + - ( - 35 ) * COUNT( DISTINCT - 44 ) AS col2
----
-955

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL - ( + 22 ) * + 45 + + - ( - 35 ) * COUNT ( DISTINCT - 44 ) AS col2
----
-955

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT ALL + 49 - 67 + - + MIN( + 18 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL + 49 - 67 + - + MIN ( + 18 ) col0
----
-36

query I rowsort
SELECT ALL - 90 * - - 48 * + - 74 + 89 AS col2
----
319769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2927
SELECT - + MIN( 55 ) + + COALESCE ( + - COUNT( * ), 69 * COUNT( * ) * - - CAST( NULL AS SIGNED ) + - 78 ) + + 85 * 56 DIV 96 + 64
----
57

skipif mysql # not compatible
query I rowsort label-2927
SELECT - + MIN ( 55 ) + + COALESCE ( + - COUNT ( * ), 69 * COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + - 78 ) + + 85 * 56 / 96 + 64
----
57

query II rowsort
SELECT - + 26, 57 + 17 * + 87 AS col2
----
-26
1536

query I rowsort
SELECT + + 30 * - 23
----
-690

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT - 24 * - - COALESCE ( - + 57, + COUNT( * ) ) AS col0
----
1368

skipif mysql # not compatible
query I rowsort label-2931
SELECT - 24 * - - COALESCE ( - + 57, + COUNT ( * ) ) AS col0
----
1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2932
SELECT + 83 * + CAST( 35 AS SIGNED ) col0
----
2905

skipif mysql # not compatible
query I rowsort label-2932
SELECT + 83 * + CAST ( 35 AS INTEGER ) col0
----
2905

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2934
SELECT - ( + CAST( NULL AS SIGNED ) ), + 18 DIV + 60 * - + 34 * + - 9 + - - 42 AS col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-2934
SELECT - ( + CAST ( NULL AS INTEGER ) ), + 18 / + 60 * - + 34 * + - 9 + - - 42 AS col2
----
NULL
42

query I rowsort
SELECT DISTINCT ( + 81 ) + - 88 AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT + 41 - - NULLIF ( + 89, 43 + CAST( NULL AS SIGNED ) ) + + + 42 * - + ( + - ( + 92 ) )
----
3994

skipif mysql # not compatible
query I rowsort label-2936
SELECT + 41 - - NULLIF ( + 89, 43 + CAST ( NULL AS INTEGER ) ) + + + 42 * - + ( + - ( + 92 ) )
----
3994

query I rowsort
SELECT - 4 * 13 * - - 2 - - 79
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT + 93 * - COUNT( ( - 14 ) ) * 72 * + + 84
----
-562464

skipif mysql # not compatible
query I rowsort label-2938
SELECT + 93 * - COUNT ( ( - 14 ) ) * 72 * + + 84
----
-562464

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT ALL + 0 DIV 72 + 78
----
78

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + 0 / 72 + 78
----
78

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2941
SELECT ALL 73 DIV + COUNT( - + 46 ) + + ( 36 ) * - 42 AS col1
----
-1439

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL 73 / + COUNT ( - + 46 ) + + ( 36 ) * - 42 AS col1
----
-1439

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT DISTINCT - ( + - 18 ) / 44 + - 48 + + 73 * COALESCE ( + COUNT( * ), + 58 ) * - + COUNT( * ) + - 66 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - ( + - 18 ) / 44 + - 48 + + 73 * COALESCE ( + COUNT ( * ), + 58 ) * - + COUNT ( * ) + - 66 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT + ( 28 ) + 62 + 28 * COUNT( * ) AS col2
----
118

skipif mysql # not compatible
query I rowsort label-2943
SELECT + ( 28 ) + 62 + 28 * COUNT ( * ) AS col2
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2944
SELECT COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) + + + 81 + 66 DIV - CAST( - ( + 92 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-2944
SELECT COUNT ( DISTINCT CAST ( NULL AS REAL ) ) + + + 81 + 66 / - CAST ( - ( + 92 ) AS INTEGER )
----
81

query I rowsort
SELECT + - 57 col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2946
SELECT - 82 * 73 + CASE - 65 WHEN CAST( NULL AS SIGNED ) / 24 THEN + + 12 * - MAX( + 87 ) + - + 8 WHEN ( 56 ) + - COUNT( * ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT - 82 * 73 + CASE - 65 WHEN CAST ( NULL AS INTEGER ) / 24 THEN + + 12 * - MAX ( + 87 ) + - + 8 WHEN ( 56 ) + - COUNT ( * ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL 88 - + 57 + - SUM( DISTINCT 92 ) * 68 AS col0
----
-6225

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL 88 - + 57 + - SUM ( DISTINCT 92 ) * 68 AS col0
----
-6225

query I rowsort
SELECT DISTINCT 2 * + 93 * - 93
----
-17298

onlyif mysql # aggregate syntax: 
query II rowsort label-2949
SELECT + 41 * COUNT( * ), 31 col1
----
41
31

skipif mysql # not compatible
query II rowsort label-2949
SELECT + 41 * COUNT ( * ), 31 col1
----
41
31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2951
SELECT 98 + 84 AS col1, + 19 * - ( + - NULLIF ( + 26, + - 74 ) ) * - 58 + + + MIN( - - CAST( 34 AS SIGNED ) ) * - 29
----
182
-29638

skipif mysql # not compatible
query II rowsort label-2951
SELECT 98 + 84 AS col1, + 19 * - ( + - NULLIF ( + 26, + - 74 ) ) * - 58 + + + MIN ( - - CAST ( 34 AS INTEGER ) ) * - 29
----
182
-29638

query I rowsort
SELECT 57 * + 94 + - 56 AS col1
----
5302

query I rowsort
SELECT ALL - - ( - - 57 ) * - 20
----
-1140

query I rowsort
SELECT 24 - + + 10 AS col0
----
14

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2956
SELECT 34 - - + 81 + 29 AS col0, CAST( + 9 AS SIGNED ) - - + CAST( - - 41 AS SIGNED ) + - + 2 + 1 + + 39 * + - 2 + - 8 DIV + 55 * COUNT( * ) - + COUNT( ALL 15 ) col1
----
144
-30

skipif mysql # not compatible
query II rowsort label-2956
SELECT 34 - - + 81 + 29 AS col0, CAST ( + 9 AS INTEGER ) - - + CAST ( - - 41 AS INTEGER ) + - + 2 + 1 + + 39 * + - 2 + - 8 / + 55 * COUNT ( * ) - + COUNT ( ALL 15 ) col1
----
144
-30

query II rowsort
SELECT ALL 55, 47 AS col0
----
55
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT + 68 + CASE - 53 WHEN + 19 * - - MIN( 50 ) * - + 16 * + + 0 THEN + SUM( + ( + ( + 5 ) ) ) + - 10 WHEN + + 52 THEN + 79 WHEN - + 13 * 94 + - 9 * - 65 - + ( 5 ) + + + 27 THEN NULL END + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT + 68 + CASE - 53 WHEN + 19 * - - MIN ( 50 ) * - + 16 * + + 0 THEN + SUM ( + ( + ( + 5 ) ) ) + - 10 WHEN + + 52 THEN + 79 WHEN - + 13 * 94 + - 9 * - 65 - + ( 5 ) + + + 27 THEN NULL END + - 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2959
SELECT 46, SUM( + + 89 ) AS col2
----
46
89

skipif mysql # not compatible
query II rowsort label-2959
SELECT 46, SUM ( + + 89 ) AS col2
----
46
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2960
SELECT ALL + AVG ( - + CAST( NULL AS SIGNED ) ) + - 51 AS col0, + 31 + 45 + + 18 AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-2960
SELECT ALL + AVG ( - + CAST ( NULL AS INTEGER ) ) + - 51 AS col0, + 31 + 45 + + 18 AS col2
----
NULL
94

query I rowsort
SELECT 24 + 9
----
33

query II rowsort
SELECT 33 + - 76 - - 51 col2, 44 * + 79
----
8
3476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2963
SELECT 43 + + COUNT( + 7 ) - - 79 + + 92 DIV + 25 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-2963
SELECT 43 + + COUNT ( + 7 ) - - 79 + + 92 / + 25 AS col1
----
126

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2964
SELECT ALL + CAST( - ( + - 56 ) AS SIGNED ) + + 99 DIV 31 * - 4 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + CAST ( - ( + - 56 ) AS INTEGER ) + + 99 / 31 * - 4 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2965
SELECT DISTINCT 25 col0, CAST( NULL AS SIGNED ) / - 6 * + 33 * 51 AS col2
----
25
NULL

skipif mysql # not compatible
query II rowsort label-2965
SELECT DISTINCT 25 col0, CAST ( NULL AS INTEGER ) / - 6 * + 33 * 51 AS col2
----
25
NULL

query I rowsort
SELECT DISTINCT 23 * - 54
----
-1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2967
SELECT ALL 81 + - 78 * - - 94 - - 13 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + 70 + - - ( + NULLIF ( 60, + - 25 ) ) + + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL 81 + - 78 * - - 94 - - 13 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 70 + - - ( + NULLIF ( 60, + - 25 ) ) + + + 27
----
NULL

query I rowsort
SELECT ALL 22 - + 86 AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT DISTINCT - 17 * CAST( + 66 AS SIGNED ) AS col1
----
-1122

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT - 17 * CAST ( + 66 AS INTEGER ) AS col1
----
-1122

query I rowsort
SELECT + + 18 * + - 81 + + 94 + - 59
----
-1423

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL - MAX( DISTINCT - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - MAX ( DISTINCT - 76 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2972
SELECT DISTINCT + CAST( + COUNT( DISTINCT + 81 ) AS SIGNED ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT + CAST ( + COUNT ( DISTINCT + 81 ) AS INTEGER ) * COUNT ( * ) AS col0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2974
SELECT - 92 DIV + + SUM( DISTINCT + 73 ) + - - 69 + 91 + NULLIF ( - - 79, COALESCE ( - 52, NULLIF ( + - 43, 83 ) * + + ( + 45 ) + - CAST( NULL AS DECIMAL ) + - 58 DIV + 85 * - CAST( NULL AS SIGNED ) * + 40 + - 6 + - ( 2 ) - + CAST( NULL AS DECIMAL ) + + ( - 42 ) - - + 96 * - 48 + 38 * 56 * 67 ) )
----
238

skipif mysql # not compatible
query I rowsort label-2974
SELECT - 92 / + + SUM ( DISTINCT + 73 ) + - - 69 + 91 + NULLIF ( - - 79, COALESCE ( - 52, NULLIF ( + - 43, 83 ) * + + ( + 45 ) + - CAST ( NULL AS REAL ) + - 58 / + 85 * - CAST ( NULL AS INTEGER ) * + 40 + - 6 + - ( 2 ) - + CAST ( NULL AS REAL ) + + ( - 42 ) - - + 96 * - 48 + 38 * 56 * 67 ) )
----
238

query I rowsort
SELECT 33 * + + 19 * ( + - 22 )
----
-13794

query I rowsort
SELECT 20 + + 83 AS col1
----
103

query I rowsort
SELECT DISTINCT + 41 * + COALESCE ( + 81, - 9 ) AS col2
----
3321

query I rowsort
SELECT 10 - + 92 + + 81 + + 77 * + - 47 + 93 * 91 * - 38
----
-325214

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL - COUNT( * ) * 69 * 99
----
-6831

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - COUNT ( * ) * 69 * 99
----
-6831

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2980
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + COUNT( - 8 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT CAST ( NULL AS REAL ) * + COUNT ( - 8 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL - COUNT( * ) + - ( + + 31 ) * - 49 * - - 32 * + - COUNT( * ) + + 68
----
-48541

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL - COUNT ( * ) + - ( + + 31 ) * - 49 * - - 32 * + - COUNT ( * ) + + 68
----
-48541

query I rowsort
SELECT 89 + - 11 AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT ALL 20 * - 77 + + 72 + + 68 DIV + + 3
----
-1446

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL 20 * - 77 + + 72 + + 68 / + + 3
----
-1446

query I rowsort
SELECT ALL + 47 + + 34 col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT 34 + COUNT( + CAST( 94 AS SIGNED ) ) * + 54 + - 82 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2985
SELECT 34 + COUNT ( + CAST ( 94 AS INTEGER ) ) * + 54 + - 82 AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2986
SELECT ALL + 8 / + CAST( NULL AS SIGNED ) AS col1, 7
----
NULL
7

skipif mysql # not compatible
query II rowsort label-2986
SELECT ALL + 8 / + CAST ( NULL AS INTEGER ) AS col1, 7
----
NULL
7

query II rowsort
SELECT 43 + 49 AS col2, - 66
----
92
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL COUNT( 1 ) + - - 69 + - + 22
----
48

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL COUNT ( 1 ) + - - 69 + - + 22
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2989
SELECT ( - + 67 ) * SUM( ALL - CAST( NULL AS SIGNED ) ) * - 93 DIV 75 - + 64 AS col1, + 60 DIV 73 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2989
SELECT ( - + 67 ) * SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - 93 / 75 - + 64 AS col1, + 60 / 73 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT DISTINCT + 36 + + MAX( - 39 ) + + + 33, COUNT( * ) AS col0
----
30
1

skipif mysql # not compatible
query II rowsort label-2990
SELECT DISTINCT + 36 + + MAX ( - 39 ) + + + 33, COUNT ( * ) AS col0
----
30
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT ALL + 19 - 36 DIV - 22
----
20

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL + 19 - 36 / - 22
----
20

query I rowsort
SELECT ALL + 19 - - 4 + 18 AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT - CAST( - 40 AS SIGNED ) * - 28
----
-1120

skipif mysql # not compatible
query I rowsort label-2993
SELECT - CAST ( - 40 AS INTEGER ) * - 28
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT - 28 - - + 4 + - SUM( 7 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-2994
SELECT - 28 - - + 4 + - SUM ( 7 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL NULLIF ( + COUNT( * ), COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL NULLIF ( + COUNT ( * ), COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT + 58 DIV 55 - - 10 * + - 5
----
-49

skipif mysql # not compatible
query I rowsort label-2996
SELECT + 58 / 55 - - 10 * + - 5
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2997
SELECT DISTINCT + + 6 DIV NULLIF ( + MIN( ALL - 15 ), - COUNT( * ) ) DIV 55 - + COUNT( DISTINCT - 60 ) + - + 77 col1
----
-78

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT + + 6 / NULLIF ( + MIN ( ALL - 15 ), - COUNT ( * ) ) / 55 - + COUNT ( DISTINCT - 60 ) + - + 77 col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT DISTINCT + SUM( DISTINCT 73 ) col2
----
73

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT + SUM ( DISTINCT 73 ) col2
----
73

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

skipif mysql # not compatible
query I rowsort label-2999
SELECT - COUNT ( * ) / - 7 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3000
SELECT ALL - - COUNT( * ) DIV - - 78 * - 26 * 85
----
0

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - - COUNT ( * ) / - - 78 * - 26 * 85
----
0

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

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

query I rowsort
SELECT ALL 62 * - 26
----
-1612

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

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

query I rowsort
SELECT 9 * - - 87 * 3 - + 22
----
2327

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

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

query I rowsort
SELECT ALL - 12 * + - 22
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT - - COUNT( * ) * 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3007
SELECT - - COUNT ( * ) * 45 AS col0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3008
SELECT ALL + + COUNT( + 37 ) * SUM( DISTINCT - 3 ) - - 28 + + + COUNT( * ) + - + 82 DIV + - 84 + + + 19 + - ( 19 )
----
26

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + + COUNT ( + 37 ) * SUM ( DISTINCT - 3 ) - - 28 + + + COUNT ( * ) + - + 82 / + - 84 + + + 19 + - ( 19 )
----
26

query II rowsort
SELECT DISTINCT - 19 * + 4 + + - ( 37 ), + 34 AS col2
----
-113
34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3011
SELECT - 80 * + ( 17 ) - + - 95 * - + CAST( - - 6 AS SIGNED ) * - ( - 39 ) / CAST( NULL AS SIGNED ) + + 35 + + 41 + + MIN( DISTINCT - - 44 ) col0, 17 + + + COUNT( * ) AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-3011
SELECT - 80 * + ( 17 ) - + - 95 * - + CAST ( - - 6 AS INTEGER ) * - ( - 39 ) / CAST ( NULL AS INTEGER ) + + 35 + + 41 + + MIN ( DISTINCT - - 44 ) col0, 17 + + + COUNT ( * ) AS col2
----
NULL
18

query I rowsort
SELECT - ( - 75 ) col0
----
75

query II rowsort
SELECT DISTINCT 53 AS col0, + 7 * - - 64 + - - 29 + 79
----
53
556

query I rowsort
SELECT ALL 12 * - 27 * + NULLIF ( 77, - 93 ) AS col2
----
-24948

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT + 18 + + 25 DIV + 22 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3015
SELECT + 18 + + 25 / + 22 AS col1
----
19

query I rowsort
SELECT - 24 * + - 13
----
312

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL 6 - + 34 + - CASE + + 98 WHEN 60 THEN NULL ELSE - 7 + + + MIN( 89 ) END
----
-110

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL 6 - + 34 + - CASE + + 98 WHEN 60 THEN NULL ELSE - 7 + + + MIN ( 89 ) END
----
-110

query I rowsort
SELECT ALL 76 * + 45 AS col2
----
3420

query I rowsort
SELECT DISTINCT NULLIF ( 58, 88 * + 64 - + 37 - 83 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + CASE 11 WHEN 36 + + + 36 * - 65 THEN NULL WHEN + 2 THEN NULL WHEN + COALESCE ( 26, + COALESCE ( - AVG ( ALL - 17 ), - - 60 * + NULLIF ( - 2, + - 93 ) ) + - COUNT( * ) ) * - - COUNT( * ) * + 28 THEN 8 * + 2 ELSE + 82 * + SUM( ALL - 21 ) END - 48 col1
----
-1770

skipif mysql # not compatible
query I rowsort label-3020
SELECT + CASE 11 WHEN 36 + + + 36 * - 65 THEN NULL WHEN + 2 THEN NULL WHEN + COALESCE ( 26, + COALESCE ( - AVG ( ALL - 17 ), - - 60 * + NULLIF ( - 2, + - 93 ) ) + - COUNT ( * ) ) * - - COUNT ( * ) * + 28 THEN 8 * + 2 ELSE + 82 * + SUM ( ALL - 21 ) END - 48 col1
----
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL 70 - + SUM( 85 )
----
-15

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL 70 - + SUM ( 85 )
----
-15

query I rowsort
SELECT + 34 + + 38
----
72

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

skipif mysql # not compatible
query I rowsort label-3023
SELECT - 40 + - COUNT ( * ) + - ( 40 ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3024
SELECT - 81 AS col1, + CAST( - - 12 AS SIGNED ) DIV + - MIN( DISTINCT + 18 )
----
-81
0

skipif mysql # not compatible
query II rowsort label-3024
SELECT - 81 AS col1, + CAST ( - - 12 AS INTEGER ) / + - MIN ( DISTINCT + 18 )
----
-81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + COALESCE ( + - 66, + 52, 3 + + COUNT( * ) ) + 79
----
13

skipif mysql # not compatible
query I rowsort label-3025
SELECT + COALESCE ( + - 66, + 52, 3 + + COUNT ( * ) ) + 79
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT - CAST( NULL AS SIGNED ) * CASE - + 7 WHEN SUM( DISTINCT - 68 ) - + NULLIF ( + 83, - + 89 ) THEN + 22 WHEN NULLIF ( COUNT( * ), - + 94 ) THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3026
SELECT - CAST ( NULL AS INTEGER ) * CASE - + 7 WHEN SUM ( DISTINCT - 68 ) - + NULLIF ( + 83, - + 89 ) THEN + 22 WHEN NULLIF ( COUNT ( * ), - + 94 ) THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL MAX( 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL MAX ( 95 ) AS col1
----
95

query I rowsort
SELECT + 4 + - - 56
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT - 10 - + 31 / + 22 * + - NULLIF ( - CASE - 63 WHEN - 62 * 55 * - 58 + - - MAX( DISTINCT + 14 ) + 76 * - + SUM( + 82 ) * + 71 THEN NULL WHEN + 35 * + 91 THEN - 14 WHEN - + 95 - - + 21 THEN NULL END, - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT - 10 - + 31 / + 22 * + - NULLIF ( - CASE - 63 WHEN - 62 * 55 * - 58 + - - MAX ( DISTINCT + 14 ) + 76 * - + SUM ( + 82 ) * + 71 THEN NULL WHEN + 35 * + 91 THEN - 14 WHEN - + 95 - - + 21 THEN NULL END, - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT + CAST( - - 92 AS SIGNED ) + 90 + + + 13 AS col0
----
195

skipif mysql # not compatible
query I rowsort label-3030
SELECT + CAST ( - - 92 AS INTEGER ) + 90 + + + 13 AS col0
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3031
SELECT - CAST( + COUNT( * ) AS SIGNED ) * 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-3031
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * 79 AS col1
----
-79

query I rowsort
SELECT DISTINCT - 70 * - 34 AS col2
----
2380

query I rowsort
SELECT DISTINCT 39 * - 68
----
-2652

query I rowsort
SELECT - 50 + 12
----
-38

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

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

query I rowsort
SELECT + 62 * + ( + 8 ) AS col1
----
496

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3039
SELECT COUNT ( * ) / 83 + + 12
----
12

query I rowsort
SELECT - 38 * - 52
----
1976

query I rowsort
SELECT - 8 + + ( + 33 + 14 ) AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3042
SELECT ALL - MAX( + 95 ) DIV + 20 + - 67 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - MAX ( + 95 ) / + 20 + - 67 AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT ALL - ( - 29 ) DIV - 23 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL - ( - 29 ) / - 23 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3044
SELECT ALL + 16 DIV ( 59 ) + + NULLIF ( 51, COUNT( * ) * + 80 ) * - 3
----
-153

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + 16 / ( 59 ) + + NULLIF ( 51, COUNT ( * ) * + 80 ) * - 3
----
-153

query I rowsort
SELECT - 2 + 94 * + 48 col1
----
4510

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT + MAX( ALL COALESCE ( - 23, - 84 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-3046
SELECT + MAX ( ALL COALESCE ( - 23, - 84 ) )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3047
SELECT ALL + MAX( ALL + 45 ) * + 48 + CAST( NULL AS SIGNED )
----
NULL

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

query I rowsort
SELECT ( - ( 90 ) )
----
-90

query I rowsort
SELECT 54 * - 20 + - 97
----
-1177

query I rowsort
SELECT - 66 + - 11 AS col0
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + ( - 25 ) - + COALESCE ( - 84, COUNT( * ) + 12, - 20 )
----
59

skipif mysql # not compatible
query I rowsort label-3052
SELECT + ( - 25 ) - + COALESCE ( - 84, COUNT ( * ) + 12, - 20 )
----
59

query I rowsort
SELECT 54 * ( 68 ) + - 10 * - 50
----
4172

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT + COUNT( * ) + - COALESCE ( 48, - 45 + 82, 26 - 14 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-3054
SELECT + COUNT ( * ) + - COALESCE ( 48, - 45 + 82, 26 - 14 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT DISTINCT + MIN( 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT + MIN ( 19 ) AS col2
----
19

query I rowsort
SELECT ALL 45 * 73 - 84 col0
----
3201

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

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

query I rowsort
SELECT DISTINCT - 46 * + 62
----
-2852

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT - COUNT( * ) - 90
----
-91

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT - COUNT ( * ) - 90
----
-91

query I rowsort
SELECT 62 * 13
----
806

onlyif mysql # DIV for integer division: 
query I rowsort label-3061
SELECT ALL 59 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL 59 / + 92
----
0

query I rowsort
SELECT 68 + + 56 * 89 AS col0
----
5052

query I rowsort
SELECT ALL 70 - - 40 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT + COUNT( - 96 ) * COUNT( * ) + + 47 * 3 col2
----
142

skipif mysql # not compatible
query I rowsort label-3064
SELECT + COUNT ( - 96 ) * COUNT ( * ) + + 47 * 3 col2
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT DISTINCT 5 DIV 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT 5 / 72 col1
----
0

query I rowsort
SELECT 52 * NULLIF ( ( + 56 ), + 56 - 46 * 15 ) col1
----
2912

query I rowsort
SELECT 87 * 47 col2
----
4089

onlyif mysql # DIV for integer division: 
query I rowsort label-3068
SELECT 94 DIV 81 col1
----
1

skipif mysql # not compatible
query I rowsort label-3068
SELECT 94 / 81 col1
----
1

query I rowsort
SELECT DISTINCT 58 * + 77
----
4466

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT DISTINCT - 1 DIV - 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT - 1 / - 19 AS col2
----
0

query I rowsort
SELECT 77 * - 39 AS col0
----
-3003

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT 84 DIV - 70 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3072
SELECT 84 / - 70 col1
----
-1

query I rowsort
SELECT ALL 4 * + 34 AS col1
----
136

query I rowsort
SELECT DISTINCT 22 * - 43 AS col0
----
-946

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL - - 89 + ( COUNT( * ) ) * ( - 8 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - - 89 + ( COUNT ( * ) ) * ( - 8 ) AS col2
----
81

query I rowsort
SELECT + 92 * 59
----
5428

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3080
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + + 68 DIV COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + 68 / COUNT ( * )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT - 58 - - 86 DIV + 43
----
-56

skipif mysql # not compatible
query I rowsort label-3081
SELECT - 58 - - 86 / + 43
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3082
SELECT + 1 DIV - ( MIN( DISTINCT - 95 ) ) - + 65 DIV - 9 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3082
SELECT + 1 / - ( MIN ( DISTINCT - 95 ) ) - + 65 / - 9 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT ALL - SUM( DISTINCT 24 ) + + 36 * 43
----
1524

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL - SUM ( DISTINCT 24 ) + + 36 * 43
----
1524

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT + + COUNT( 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3084
SELECT + + COUNT ( 72 ) AS col1
----
1

query I rowsort
SELECT ALL - COALESCE ( 3, - 70 )
----
-3

query I rowsort
SELECT DISTINCT 68 + 98 col0
----
166

query I rowsort
SELECT DISTINCT 73 + 73 * - 2 AS col0
----
-73

query I rowsort
SELECT + 17 * 78 AS col2
----
1326

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT - 83 DIV + 24 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3089
SELECT - 83 / + 24 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT - 21 * + 31 + COUNT( * )
----
-650

skipif mysql # not compatible
query I rowsort label-3090
SELECT - 21 * + 31 + COUNT ( * )
----
-650

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT - CASE + - NULLIF ( - 18, COUNT( * ) * NULLIF ( - 17, 2 / 25 ) + + MIN( - 57 + - 21 ) * 86 ) WHEN ( - 61 ) THEN NULL WHEN - 44 * - ( + 13 ) THEN NULL ELSE 78 END
----
-78

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT - CASE + - NULLIF ( - 18, COUNT ( * ) * NULLIF ( - 17, 2 / 25 ) + + MIN ( - 57 + - 21 ) * 86 ) WHEN ( - 61 ) THEN NULL WHEN - 44 * - ( + 13 ) THEN NULL ELSE 78 END
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT DISTINCT + 77 DIV 88 * 91
----
0

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT + 77 / 88 * 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT DISTINCT - MAX( + 49 ) col1
----
-49

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT - MAX ( + 49 ) col1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3094
SELECT 62 DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3094
SELECT 62 / 74 AS col2
----
0

query I rowsort
SELECT ALL + 60 * + - ( 25 )
----
-1500

query I rowsort
SELECT DISTINCT 18 * + 75 AS col1
----
1350

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

skipif mysql # not compatible
query I rowsort label-3097
SELECT 39 / + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 78 * + 30 col2
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT 87 * NULLIF ( 22, - 78 ) * SUM( DISTINCT 1 ) - - 69
----
1983

skipif mysql # not compatible
query I rowsort label-3099
SELECT 87 * NULLIF ( 22, - 78 ) * SUM ( DISTINCT 1 ) - - 69
----
1983

query I rowsort
SELECT 84 * + + 47 AS col0
----
3948

query I rowsort
SELECT DISTINCT - 15 * + 56 * + 9
----
-7560

query I rowsort
SELECT 58 + 83
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT 97 * - - SUM( ALL 88 ) * - 17
----
-145112

skipif mysql # not compatible
query I rowsort label-3103
SELECT 97 * - - SUM ( ALL 88 ) * - 17
----
-145112

query I rowsort
SELECT 68 + 51 + + 94 AS col0
----
213

query I rowsort
SELECT 74 * 94 AS col1
----
6956

query I rowsort
SELECT 87 * - + 95 AS col1
----
-8265

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT DISTINCT MAX( + CASE WHEN NOT 45 IS NOT NULL THEN 39 / + 43 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT MAX ( + CASE WHEN NOT 45 IS NOT NULL THEN 39 / + 43 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT ALL ( 29 ) + - MAX( DISTINCT + 27 + 92 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL ( 29 ) + - MAX ( DISTINCT + 27 + 92 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT COALESCE ( - ( + COALESCE ( - COALESCE ( 75, 1 * - 8 ), ( + 12 ) ) ), 4 * + 11 + MIN( 26 ) ) - + 88 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3109
SELECT COALESCE ( - ( + COALESCE ( - COALESCE ( 75, 1 * - 8 ), ( + 12 ) ) ), 4 * + 11 + MIN ( 26 ) ) - + 88 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - 89 + 21 + COUNT( * ) * 7 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3110
SELECT - 89 + 21 + COUNT ( * ) * 7 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT - 42 + - MAX( DISTINCT + 75 ) AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-3111
SELECT - 42 + - MAX ( DISTINCT + 75 ) AS col2
----
-117

query I rowsort
SELECT - 56 + 22
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL + COUNT( * ) * - 45 * - 75 AS col2
----
3375

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + COUNT ( * ) * - 45 * - 75 AS col2
----
3375

onlyif mysql # DIV for integer division: 
query I rowsort label-3114
SELECT ALL + - 28 DIV - 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL + - 28 / - 80 AS col2
----
0

query I rowsort
SELECT ALL - - 65 + + 72 + + 37 * 57 * - 7
----
-14626

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL - CASE WHEN NOT NULL >= NULL THEN 14 END + - 4 * NULLIF ( + COUNT( * ) + 59, - 90 * COUNT( * ) + + 31 * - 63 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL - CASE WHEN NOT NULL >= NULL THEN 14 END + - 4 * NULLIF ( + COUNT ( * ) + 59, - 90 * COUNT ( * ) + + 31 * - 63 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 57 + 5
----
62

query I rowsort
SELECT ALL 62 * + - 99
----
-6138

query I rowsort
SELECT ALL - 0 * 58 + 52
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3120
SELECT + 5 + - - 99 DIV - ( - COUNT( * ) + 3 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-3120
SELECT + 5 + - - 99 / - ( - COUNT ( * ) + 3 ) AS col0
----
-44

query I rowsort
SELECT ALL - - 75 col0
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT ALL - - ( COALESCE ( COUNT( * ), - COUNT( * ), 57 * 86 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL - - ( COALESCE ( COUNT ( * ), - COUNT ( * ), 57 * 86 ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT - CASE 33 WHEN - 47 + + 5 THEN + ( 34 ) * 6 + + 64 ELSE 69 END * + CAST( + 43 AS SIGNED )
----
-2967

skipif mysql # not compatible
query I rowsort label-3124
SELECT - CASE 33 WHEN - 47 + + 5 THEN + ( 34 ) * 6 + + 64 ELSE 69 END * + CAST ( + 43 AS INTEGER )
----
-2967

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT - + COUNT( * ) * - - 70 + + 51 + 97 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-3125
SELECT - + COUNT ( * ) * - - 70 + + 51 + 97 AS col1
----
78

query I rowsort
SELECT 5 * - - 69 AS col0
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT - 42 * + 41 * 15 + COUNT( * ) AS col0
----
-25829

skipif mysql # not compatible
query I rowsort label-3127
SELECT - 42 * + 41 * 15 + COUNT ( * ) AS col0
----
-25829

onlyif mysql # DIV for integer division: 
query I rowsort label-3128
SELECT - 57 DIV + 33 + - ( 66 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3128
SELECT - 57 / + 33 + - ( 66 ) AS col2
----
-67

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

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

query I rowsort
SELECT 81 + - 50 + 35 * - 36 * 31 AS col1
----
-39029

query I rowsort
SELECT + 71 * + - 25
----
-1775

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ALL - 91 * - MIN( DISTINCT + 1 )
----
91

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL - 91 * - MIN ( DISTINCT + 1 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT + MIN( + - 2 ) + 21 * + CASE - 78 WHEN COUNT( * ) * + COUNT( * ) + + 9 THEN ( 81 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT + MIN ( + - 2 ) + 21 * + CASE - 78 WHEN COUNT ( * ) * + COUNT ( * ) + + 9 THEN ( 81 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT + 35 * - + MIN( NULLIF ( + NULLIF ( 14, 39 ), 18 ) ) AS col0
----
-490

skipif mysql # not compatible
query I rowsort label-3134
SELECT + 35 * - + MIN ( NULLIF ( + NULLIF ( 14, 39 ), 18 ) ) AS col0
----
-490

query I rowsort
SELECT + 30 * 86 + - ( NULLIF ( + 74, 5 + ( 97 + 30 ) ) ) * 89
----
-4006

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT - ( + + 74 ) DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-3139
SELECT - ( + + 74 ) / 95
----
0

query I rowsort
SELECT + NULLIF ( - 85, + 79 ) * - 44 AS col1
----
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + NULLIF ( + 47, - + COUNT( * ) )
----
47

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + NULLIF ( + 47, - + COUNT ( * ) )
----
47

query I rowsort
SELECT ALL 87 + - 64 + 69 AS col1
----
92

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT - ( + ( + - 52 ) ) DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3144
SELECT - ( + ( + - 52 ) ) / - 65 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL + COUNT( * ) + 48 + + - 39 col2
----
10

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL + COUNT ( * ) + 48 + + - 39 col2
----
10

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

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

query I rowsort
SELECT - 51 + + 33 + - 23
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT DISTINCT + 38 DIV 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT + 38 / 48 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT - ( 67 ) / + CAST( NULL AS SIGNED ) * 30 + + 36 * 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT - ( 67 ) / + CAST ( NULL AS INTEGER ) * 30 + + 36 * 46 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3151
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) / 8 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) / 8 col2
----
NULL

query II rowsort
SELECT 35, 77 AS col2
----
35
77

query I rowsort
SELECT ALL - 45 + + - 88
----
-133

onlyif mysql # aggregate syntax: 
query II rowsort label-3154
SELECT - 39 AS col0, CASE - - MIN( DISTINCT ( 40 ) ) WHEN 95 THEN + 26 WHEN - 37 * 76 THEN NULL ELSE - COUNT( * ) END AS col1
----
-39
-1

skipif mysql # not compatible
query II rowsort label-3154
SELECT - 39 AS col0, CASE - - MIN ( DISTINCT ( 40 ) ) WHEN 95 THEN + 26 WHEN - 37 * 76 THEN NULL ELSE - COUNT ( * ) END AS col1
----
-39
-1

query II rowsort
SELECT DISTINCT - 27 AS col0, - 58 * - 86
----
-27
4988

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3156
SELECT 72, CAST( - 83 AS SIGNED ) + - 50 AS col0
----
72
-133

skipif mysql # not compatible
query II rowsort label-3156
SELECT 72, CAST ( - 83 AS INTEGER ) + - 50 AS col0
----
72
-133

query I rowsort
SELECT ALL + - 26 + + 78
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL 6 - + COUNT( * ) col2
----
5

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL 6 - + COUNT ( * ) col2
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3159
SELECT 15, - ( - + 58 ) + + ( + 94 ) DIV - 81 AS col2
----
15
57

skipif mysql # not compatible
query II rowsort label-3159
SELECT 15, - ( - + 58 ) + + ( + 94 ) / - 81 AS col2
----
15
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT + ( - CASE - 23 WHEN ( + COALESCE ( 40, + 67 ) ) / MIN( + 54 * + 30 ) THEN COUNT( * ) + 52 WHEN 36 + + 80 / AVG ( ALL 31 - + 19 ) THEN + 73 * + COUNT( * ) ELSE NULL END ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT + ( - CASE - 23 WHEN ( + COALESCE ( 40, + 67 ) ) / MIN ( + 54 * + 30 ) THEN COUNT ( * ) + 52 WHEN 36 + + 80 / AVG ( ALL 31 - + 19 ) THEN + 73 * + COUNT ( * ) ELSE NULL END ) * + 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT - + 58 ) + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3161
SELECT - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT - + 58 ) + 35 AS col2
----
NULL

query I rowsort
SELECT + - 7 + + 26 AS col1
----
19

query I rowsort
SELECT ALL - ( - 91 ) - + 84
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3164
SELECT ALL 86 DIV + 82
----
1

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL 86 / + 82
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3165
SELECT - + MIN( ALL 28 ) - - 39 + COUNT( * ) * COALESCE ( 97, - 67, - 86 ) DIV 58 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3165
SELECT - + MIN ( ALL 28 ) - - 39 + COUNT ( * ) * COALESCE ( 97, - 67, - 86 ) / 58 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT + - 57 * 98 * - ( - CASE 19 WHEN + 71 + - 80 THEN NULL WHEN + 51 THEN COUNT( * ) * SUM( 40 * 71 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT + - 57 * 98 * - ( - CASE 19 WHEN + 71 + - 80 THEN NULL WHEN + 51 THEN COUNT ( * ) * SUM ( 40 * 71 ) END )
----
NULL

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

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

query I rowsort
SELECT + 35 + + 92 + - 14
----
113

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL CASE 19 WHEN + NULLIF ( COUNT( * ), 74 * - ( + 32 ) ) THEN - 85 END * - COALESCE ( 76, - 41, + 13 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL CASE 19 WHEN + NULLIF ( COUNT ( * ), 74 * - ( + 32 ) ) THEN - 85 END * - COALESCE ( 76, - 41, + 13 )
----
NULL

query I rowsort
SELECT DISTINCT 12 * + 48 * - 19 AS col0
----
-10944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT - 36 DIV COUNT( * ) * + - SUM( DISTINCT - 68 )
----
-2448

skipif mysql # not compatible
query I rowsort label-3172
SELECT - 36 / COUNT ( * ) * + - SUM ( DISTINCT - 68 )
----
-2448

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

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

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

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

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

query I rowsort
SELECT DISTINCT 82 * - 8 * + 97 + - 54 AS col0
----
-63686

query I rowsort
SELECT CASE + AVG ( + 29 ) WHEN - ( - 39 ) THEN - AVG ( 18 ) + 53 * 8 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT ALL + COUNT( * ) * + - NULLIF ( + 14, NULLIF ( + 97, - 70 * CAST( NULL AS SIGNED ) ) ) + 7 * 58
----
392

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + COUNT ( * ) * + - NULLIF ( + 14, NULLIF ( + 97, - 70 * CAST ( NULL AS INTEGER ) ) ) + 7 * 58
----
392

query II rowsort
SELECT ALL 40 * - + 93, + 45 AS col1
----
-3720
45

query I rowsort
SELECT DISTINCT 94 * + - ( + - 18 ) + - 74
----
1618

onlyif mysql # DIV for integer division: 
query I rowsort label-3181
SELECT 70 * 68 * 66 * - 54 + + 16 DIV 43 AS col1
----
-16964640

skipif mysql # not compatible
query I rowsort label-3181
SELECT 70 * 68 * 66 * - 54 + + 16 / 43 AS col1
----
-16964640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3182
SELECT + CAST( NULL AS DECIMAL ) + - + 27 * - COUNT( * ) * 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT + CAST ( NULL AS REAL ) + - + 27 * - COUNT ( * ) * 59 AS col1
----
NULL

query I rowsort
SELECT - 22 * - + 49 * + 3 AS col1
----
3234

query I rowsort
SELECT + - 94 + 10
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3185
SELECT ALL CAST( - 11 AS SIGNED ) * + + 15 * COUNT( ( CAST( NULL AS SIGNED ) ) ) + 94
----
94

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL CAST ( - 11 AS INTEGER ) * + + 15 * COUNT ( ( CAST ( NULL AS INTEGER ) ) ) + 94
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3186
SELECT DISTINCT - CAST( + 88 AS SIGNED ), 34 AS col2
----
-88
34

skipif mysql # not compatible
query II rowsort label-3186
SELECT DISTINCT - CAST ( + 88 AS INTEGER ), 34 AS col2
----
-88
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL - 63 * + 63 + + - 63 + COUNT( * )
----
-4031

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL - 63 * + 63 + + - 63 + COUNT ( * )
----
-4031

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL + + COUNT( ALL - 1 ) - - - SUM( ALL + 25 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + + COUNT ( ALL - 1 ) - - - SUM ( ALL + 25 ) AS col1
----
-24

query I rowsort
SELECT - 60 - - 30 AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3191
SELECT + + 42 * - - ( - CAST( + 76 AS SIGNED ) )
----
-3192

skipif mysql # not compatible
query I rowsort label-3191
SELECT + + 42 * - - ( - CAST ( + 76 AS INTEGER ) )
----
-3192

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

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

query I rowsort
SELECT DISTINCT - - 61 * 49 AS col1
----
2989

query I rowsort
SELECT + - 67 + + - 4 + 44 AS col1
----
-27

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

query II rowsort
SELECT - + 92 + + 16 col0, 40
----
-76
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT + - 23 * + MIN( 92 ) * - + NULLIF ( - 33, - CASE - 24 WHEN + 29 THEN + 21 ELSE 70 END + + 61 * + 5 )
----
-69828

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT + - 23 * + MIN ( 92 ) * - + NULLIF ( - 33, - CASE - 24 WHEN + 29 THEN + 21 ELSE 70 END + + 61 * + 5 )
----
-69828

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT - - NULLIF ( COUNT( * ), - COUNT( * ) + - + COALESCE ( 4, + 58, 53 * - COUNT( * ) ) ) + 67 * - ( + 70 ) AS col1
----
-4689

skipif mysql # not compatible
query I rowsort label-3198
SELECT - - NULLIF ( COUNT ( * ), - COUNT ( * ) + - + COALESCE ( 4, + 58, 53 * - COUNT ( * ) ) ) + 67 * - ( + 70 ) AS col1
----
-4689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3199
SELECT DISTINCT + + COUNT( ALL CAST( NULL AS SIGNED ) ) * + + COUNT( * ) + + 65 + ( 62 )
----
127

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) + + 65 + ( 62 )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL + NULLIF ( SUM( - - 29 ), - ( - 12 ) - - MAX( ALL 24 ) * COUNT( DISTINCT + 5 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL + NULLIF ( SUM ( - - 29 ), - ( - 12 ) - - MAX ( ALL 24 ) * COUNT ( DISTINCT + 5 ) ) AS col0
----
29

query I rowsort
SELECT 11 + + 49 - - 13 + + + 38 * 84 col2
----
3265

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3202
SELECT COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ) ) * 25
----
25

skipif mysql # not compatible
query I rowsort label-3202
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ) ) * 25
----
25

query II rowsort
SELECT + 98 AS col2, 62
----
98
62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3205
SELECT + 22 DIV 97 + - 40 * - - 32 + + 2 AS col0
----
-1278

skipif mysql # not compatible
query I rowsort label-3205
SELECT + 22 / 97 + - 40 * - - 32 + + 2 AS col0
----
-1278

onlyif mysql # DIV for integer division: 
query I rowsort label-3206
SELECT 77 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-3206
SELECT 77 / - 81
----
0

query I rowsort
SELECT ALL 94 + + 13 AS col0
----
107

query I rowsort
SELECT DISTINCT - 56 * - - 14 AS col1
----
-784

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

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

query I rowsort
SELECT ALL - 38 * - 83
----
3154

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT DISTINCT + MAX( + 22 ) + + 17 - - - COUNT( * ) + + + 94 * - 18
----
-1654

skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT + MAX ( + 22 ) + + 17 - - - COUNT ( * ) + + + 94 * - 18
----
-1654

query I rowsort
SELECT 74 * + 29 AS col0
----
2146

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

query I rowsort
SELECT DISTINCT 93 + 54
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT 93 DIV + 31 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3215
SELECT 93 / + 31 AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3216
SELECT ALL 28 DIV - 14
----
-2

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL 28 / - 14
----
-2

query I rowsort
SELECT DISTINCT 45 - 67 + - 93 * + 37 * + + NULLIF ( 43, - 12 * + 43 )
----
-147985

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

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

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

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL - + COUNT ( * ) * + 51 / 77
----
0

query I rowsort
SELECT ALL + 76 - + + 30 AS col0
----
46

query I rowsort
SELECT ALL - 1 * - - 16 + + - ( + - 62 ) * - COALESCE ( + 14, 10 )
----
-884

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3222
SELECT ALL COUNT( + 6 ) * + COUNT( * ) * - + SUM( DISTINCT - 85 ) * CASE - 33 + COUNT( * ) WHEN + 38 + + COALESCE ( ( 50 ), COUNT( - 3 ) ) THEN NULL ELSE 83 DIV + 1 END AS col1
----
7055

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL COUNT ( + 6 ) * + COUNT ( * ) * - + SUM ( DISTINCT - 85 ) * CASE - 33 + COUNT ( * ) WHEN + 38 + + COALESCE ( ( 50 ), COUNT ( - 3 ) ) THEN NULL ELSE 83 / + 1 END AS col1
----
7055

query II rowsort
SELECT - 94 + + ( - - 62 ) col1, + NULLIF ( - 48, 48 + 21 )
----
-32
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3224
SELECT ALL + 13 AS col0, - CAST( + 37 AS SIGNED )
----
13
-37

skipif mysql # not compatible
query II rowsort label-3224
SELECT ALL + 13 AS col0, - CAST ( + 37 AS INTEGER )
----
13
-37

query II rowsort
SELECT ALL - 90 AS col0, 33 + - 73
----
-90
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ALL - MAX( + - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL - MAX ( + - 0 ) AS col1
----
0

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

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

query II rowsort
SELECT DISTINCT 98 AS col0, 51 AS col2
----
98
51

query I rowsort
SELECT ALL - 69 * - 30 AS col2
----
2070

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

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT 53 + - COUNT ( * ) AS col0
----
52

query I rowsort
SELECT + ( + 71 ) * 40
----
2840

onlyif mysql # DIV for integer division: 
query II rowsort label-3233
SELECT ALL - 25 + - 4 DIV - 43 AS col0, 68
----
-25
68

skipif mysql # not compatible
query II rowsort label-3233
SELECT ALL - 25 + - 4 / - 43 AS col0, 68
----
-25
68

query I rowsort
SELECT ALL - 33 + 9
----
-24

query I rowsort
SELECT ALL + 69 * - 58 AS col2
----
-4002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT ALL 12 + - ( + 37 ) * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL 12 + - ( + 37 ) * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3237
SELECT DISTINCT 74 * COUNT( * ) + 35 * - - 90 col1, - SUM( DISTINCT 36 )
----
3224
-36

skipif mysql # not compatible
query II rowsort label-3237
SELECT DISTINCT 74 * COUNT ( * ) + 35 * - - 90 col1, - SUM ( DISTINCT 36 )
----
3224
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT ALL - 42 + - - 91 * - 69 * 78 * + COUNT( * ) AS col2
----
-489804

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - 42 + - - 91 * - 69 * 78 * + COUNT ( * ) AS col2
----
-489804

query I rowsort
SELECT DISTINCT + 15 + + + 84
----
99

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

skipif mysql # not compatible
query II rowsort label-3240
SELECT COUNT ( * ) AS col1, 62
----
1
62

query I rowsort
SELECT ALL + 97 + - 23 - + + 91
----
-17

query I rowsort
SELECT 83 * - 52 col1
----
-4316

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

query I rowsort
SELECT 31 * - - 26 col2
----
806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3245
SELECT ALL - ( - - 58 ) * - 16 + + 48 - + 67 - - 55 + - 11 DIV + COUNT( 94 + 21 * 81 ) AS col1
----
953

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL - ( - - 58 ) * - 16 + + 48 - + 67 - - 55 + - 11 / + COUNT ( 94 + 21 * 81 ) AS col1
----
953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT ALL 4 - - 45 + 34 * - 66 * + 43 / + - COALESCE ( COUNT( * ), COUNT( 72 ) + - 39 ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL 4 - - 45 + 34 * - 66 * + 43 / + - COALESCE ( COUNT ( * ), COUNT ( 72 ) + - 39 ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT DISTINCT - 26 DIV - - 83
----
0

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT - 26 / - - 83
----
0

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

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

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

query I rowsort
SELECT ALL + - 6 * - 68
----
408

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

skipif mysql # not compatible
query I rowsort label-3251
SELECT CAST ( NULL AS INTEGER ) * - 67 AS col0
----
NULL

query I rowsort
SELECT - 10 * 79 * + - 50 + - - 39 + + 45 * + 56
----
42059

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT - COALESCE ( MAX( + + 27 ), - 21 - 86 * - SUM( DISTINCT 84 ), 86 ) + + COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3253
SELECT - COALESCE ( MAX ( + + 27 ), - 21 - 86 * - SUM ( DISTINCT 84 ), 86 ) + + COUNT ( * ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT - COUNT( * ) * 42 - + 65 - - - 37 - - 90
----
-54

skipif mysql # not compatible
query I rowsort label-3254
SELECT - COUNT ( * ) * 42 - + 65 - - - 37 - - 90
----
-54

query II rowsort
SELECT ALL + 69 AS col0, 65 * - 22 AS col0
----
69
-1430

query II rowsort
SELECT ALL - 12 AS col2, 49 + 8 col1
----
-12
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL - 20 + + - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL - 20 + + - COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT DISTINCT COUNT( * ) + - + ( - - 29 ) * - 39 col1
----
1132

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT COUNT ( * ) + - + ( - - 29 ) * - 39 col1
----
1132

onlyif mysql # DIV for integer division: 
query II rowsort label-3260
SELECT ALL - 35 AS col2, + 67 DIV + - 61 + 15
----
-35
14

skipif mysql # not compatible
query II rowsort label-3260
SELECT ALL - 35 AS col2, + 67 / + - 61 + 15
----
-35
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT - + 40 * + 93 * + - ( - NULLIF ( - + 87, 26 * - COUNT( * ) ) ) + + 96 * 77
----
331032

skipif mysql # not compatible
query I rowsort label-3261
SELECT - + 40 * + 93 * + - ( - NULLIF ( - + 87, 26 * - COUNT ( * ) ) ) + + 96 * 77
----
331032

query I rowsort
SELECT ALL 42 * + 96 AS col0
----
4032

onlyif mysql # DIV for integer division: 
query II rowsort label-3263
SELECT - 21 AS col0, - 27 + - - 87 DIV 21 * 95 AS col0
----
-21
353

skipif mysql # not compatible
query II rowsort label-3263
SELECT - 21 AS col0, - 27 + - - 87 / 21 * 95 AS col0
----
-21
353

query I rowsort
SELECT + 81 * 42
----
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - COALESCE ( + - COUNT( * ), + - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-3265
SELECT - COALESCE ( + - COUNT ( * ), + - 11 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3266
SELECT - + 17, - 88 * - NULLIF ( 23, + CAST( NULLIF ( 41, CASE SUM( + 84 ) WHEN 54 + 57 * - NULLIF ( 90 - + CASE - COUNT( * ) + - 24 * - 40 WHEN + 15 THEN NULLIF ( 49, 80 + - 28 ) * - COUNT( * ) + + CAST( 51 + 80 * - 18 AS DECIMAL ) * + 97 WHEN 86 + 14 THEN 74 - CAST( NULL AS SIGNED ) * 80 END, + 69 + 83 ) THEN NULL ELSE 97 END * MIN( DISTINCT + 71 ) ) AS SIGNED ) * COUNT( * ) + 88 ) AS col2
----
-17
2024

skipif mysql # not compatible
query II rowsort label-3266
SELECT - + 17, - 88 * - NULLIF ( 23, + CAST ( NULLIF ( 41, CASE SUM ( + 84 ) WHEN 54 + 57 * - NULLIF ( 90 - + CASE - COUNT ( * ) + - 24 * - 40 WHEN + 15 THEN NULLIF ( 49, 80 + - 28 ) * - COUNT ( * ) + + CAST ( 51 + 80 * - 18 AS REAL ) * + 97 WHEN 86 + 14 THEN 74 - CAST ( NULL AS INTEGER ) * 80 END, + 69 + 83 ) THEN NULL ELSE 97 END * MIN ( DISTINCT + 71 ) ) AS INTEGER ) * COUNT ( * ) + 88 ) AS col2
----
-17
2024

query I rowsort
SELECT ALL 71 + + 17 AS col2
----
88

query I rowsort
SELECT DISTINCT 82 + + ( 29 ) + + ( + 74 )
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT + 63 * + 78 + - + COUNT( * ) + COUNT( * ) * ( + - 50 ) col0
----
4863

skipif mysql # not compatible
query I rowsort label-3269
SELECT + 63 * + 78 + - + COUNT ( * ) + COUNT ( * ) * ( + - 50 ) col0
----
4863

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT + COALESCE ( + - ( + 11 ), 29 - - + ( + + COUNT( * ) ) + - - ( - 5 ) * + 77 * 25 )
----
-11

skipif mysql # not compatible
query I rowsort label-3270
SELECT + COALESCE ( + - ( + 11 ), 29 - - + ( + + COUNT ( * ) ) + - - ( - 5 ) * + 77 * 25 )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3271
SELECT ( + 94 ), - COALESCE ( - 78, - COUNT( * ) ) * + 30 * + ( - 83 ) DIV - COUNT( * ) + 35 AS col0
----
94
194255

skipif mysql # not compatible
query II rowsort label-3271
SELECT ( + 94 ), - COALESCE ( - 78, - COUNT ( * ) ) * + 30 * + ( - 83 ) / - COUNT ( * ) + 35 AS col0
----
94
194255

query I rowsort
SELECT 2 * + + 31 + 98
----
160

query I rowsort
SELECT - 22 - 40 * + 26
----
-1062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3274
SELECT - 81 * + CAST( NULL AS DECIMAL ), - NULLIF ( + - CAST( NULL AS SIGNED ), + + 25 ) + - - 57 + COUNT( * ) + - ( COUNT( * ) ) * + 72
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3274
SELECT - 81 * + CAST ( NULL AS REAL ), - NULLIF ( + - CAST ( NULL AS INTEGER ), + + 25 ) + - - 57 + COUNT ( * ) + - ( COUNT ( * ) ) * + 72
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT + 93 + COUNT( - + 10 ) - 44 col0
----
50

skipif mysql # not compatible
query I rowsort label-3275
SELECT + 93 + COUNT ( - + 10 ) - 44 col0
----
50

query I rowsort
SELECT ALL - 35 * - - ( 26 ) - 35 AS col2
----
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL - COALESCE ( - 13, + COUNT( - 96 ) ) * - 27 * 5 + - 19 AS col0
----
-1774

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - COALESCE ( - 13, + COUNT ( - 96 ) ) * - 27 * 5 + - 19 AS col0
----
-1774

query I rowsort
SELECT NULLIF ( - 28, + + 91 ) col0
----
-28

query I rowsort
SELECT ALL 75 * 55 * + ( + - 81 )
----
-334125

query I rowsort
SELECT - 86 + + 37
----
-49

query I rowsort
SELECT ALL + CASE + - 66 WHEN - 33 + + - 82 THEN NULL WHEN 90 / 45 - 86 THEN 4 + + 66 ELSE - 72 END col1
----
-72

query I rowsort
SELECT DISTINCT - 21 * - - 40 AS col1
----
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3283
SELECT ALL + 58 * + 47 - - 34 + + CAST( NULL AS SIGNED ) * + 43 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL + 58 * + 47 - - 34 + + CAST ( NULL AS INTEGER ) * + 43 col2
----
NULL

query I rowsort
SELECT CASE - - 4 WHEN 98 + + + 71 THEN + - 47 WHEN + - 69 THEN - 51 * - ( 51 ) - 53 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + 75 * - 74 + 79 + 35 + + COUNT( * ) * 49 + 64 * 78
----
-395

skipif mysql # not compatible
query I rowsort label-3285
SELECT + 75 * - 74 + 79 + 35 + + COUNT ( * ) * 49 + 64 * 78
----
-395

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

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

query I rowsort
SELECT DISTINCT + + 41 * + 79
----
3239

query I rowsort
SELECT ALL + NULLIF ( - 65, - + ( - 3 ) * - + 84 ) * - 11 AS col1
----
715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3289
SELECT ALL + - 20 * - 47 + + ( - COUNT( * ) ) + + 45 + + ( 34 ) + COALESCE ( - 91, + 10, - COUNT( * ) DIV COUNT( * ) + 8, 59 + 39 DIV 25 ) * - 3 DIV - COALESCE ( 81 * 43, 65 ) AS col0
----
1018

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL + - 20 * - 47 + + ( - COUNT ( * ) ) + + 45 + + ( 34 ) + COALESCE ( - 91, + 10, - COUNT ( * ) / COUNT ( * ) + 8, 59 + 39 / 25 ) * - 3 / - COALESCE ( 81 * 43, 65 ) AS col0
----
1018

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT DISTINCT CASE + + ( - COALESCE ( - - 26, + - SUM( ALL 13 ) + + + 40 ) ) WHEN + COUNT( * ) + - 3 * + 31 THEN 33 ELSE + 28 + ( + COUNT( * ) - COALESCE ( 93, + 15 * - 47 + NULLIF ( COUNT( + 87 ), 85 * + COUNT( * ) ), + 38 ) ) END * + 27 AS col1
----
-1728

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT CASE + + ( - COALESCE ( - - 26, + - SUM ( ALL 13 ) + + + 40 ) ) WHEN + COUNT ( * ) + - 3 * + 31 THEN 33 ELSE + 28 + ( + COUNT ( * ) - COALESCE ( 93, + 15 * - 47 + NULLIF ( COUNT ( + 87 ), 85 * + COUNT ( * ) ), + 38 ) ) END * + 27 AS col1
----
-1728

onlyif mysql # DIV for integer division: 
query II rowsort label-3291
SELECT - 87 DIV - + 6 AS col0, + 1 DIV + 48
----
14
0

skipif mysql # not compatible
query II rowsort label-3291
SELECT - 87 / - + 6 AS col0, + 1 / + 48
----
14
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + SUM( 81 ) * + 62 + 35 - - + 88 AS col1
----
5145

skipif mysql # not compatible
query I rowsort label-3292
SELECT + SUM ( 81 ) * + 62 + 35 - - + 88 AS col1
----
5145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT - CASE WHEN NULL IS NOT NULL THEN - 41 ELSE - CASE 22 WHEN - - CAST( + - 93 AS SIGNED ) * + 74 + + 31 THEN 45 + ( + 96 ) / 93 END + + 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT - CASE WHEN NULL IS NOT NULL THEN - 41 ELSE - CASE 22 WHEN - - CAST ( + - 93 AS INTEGER ) * + 74 + + 31 THEN 45 + ( + 96 ) / 93 END + + 57 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT DISTINCT + 42 + + - ( 38 ) + + 30 + + 23 - - 73 * 1 * ( NULLIF ( + 86, - CAST( NULL AS SIGNED ) / + 56 + + 26 ) )
----
6335

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT + 42 + + - ( 38 ) + + 30 + + 23 - - 73 * 1 * ( NULLIF ( + 86, - CAST ( NULL AS INTEGER ) / + 56 + + 26 ) )
----
6335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3295
SELECT - - 78 - + ( - + CAST( + 68 AS SIGNED ) ) AS col1
----
146

skipif mysql # not compatible
query I rowsort label-3295
SELECT - - 78 - + ( - + CAST ( + 68 AS INTEGER ) ) AS col1
----
146

query I rowsort
SELECT ALL ( COALESCE ( 29, - + 1 * 56, - 39, - 60 ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT - + 3 * - COUNT( * ) * 17 * 91 AS col2
----
4641

skipif mysql # not compatible
query I rowsort label-3297
SELECT - + 3 * - COUNT ( * ) * 17 * 91 AS col2
----
4641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT + + CAST( - 32 AS SIGNED ) * CASE - ( - 17 ) WHEN - 0 - - COUNT( * ) / 80 THEN 52 * - 8 WHEN - 36 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3298
SELECT + + CAST ( - 32 AS INTEGER ) * CASE - ( - 17 ) WHEN - 0 - - COUNT ( * ) / 80 THEN 52 * - 8 WHEN - 36 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 39 * 56 AS col2
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT - - COUNT( * ) * + 49 * 99
----
4851

skipif mysql # not compatible
query I rowsort label-3300
SELECT - - COUNT ( * ) * + 49 * 99
----
4851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT ALL + 15 + + MIN( - + 12 ) DIV - 33 * 63 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + 15 + + MIN ( - + 12 ) / - 33 * 63 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL COUNT( * ) + + - 28
----
-27

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL COUNT ( * ) + + - 28
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3303
SELECT + COALESCE ( COALESCE ( 41, + COUNT( * ), + 6 DIV + 0 * - - NULLIF ( - + COUNT( * ), 14 * 27 - COUNT( * ) ) * + 26 + + 82, - 54 ), + 64 * COUNT( * ), - 87 DIV + 80 ) * 17 AS col0
----
697

skipif mysql # not compatible
query I rowsort label-3303
SELECT + COALESCE ( COALESCE ( 41, + COUNT ( * ), + 6 / + 0 * - - NULLIF ( - + COUNT ( * ), 14 * 27 - COUNT ( * ) ) * + 26 + + 82, - 54 ), + 64 * COUNT ( * ), - 87 / + 80 ) * 17 AS col0
----
697

query I rowsort
SELECT + 53 + - 21 * + + 22 col1
----
-409

query I rowsort
SELECT ALL 17 - - 79
----
96

query I rowsort
SELECT DISTINCT 76 * 75
----
5700

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3307
SELECT + CASE - 13 WHEN + 22 / + 12 + 92 + COALESCE ( + ( - - 19 ), + 75 * + 71 ) * 66 THEN 3 * - CAST( NULL AS DECIMAL ) WHEN 32 * 65 - 36 THEN COUNT( * ) + 61 END * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT + CASE - 13 WHEN + 22 / + 12 + 92 + COALESCE ( + ( - - 19 ), + 75 * + 71 ) * 66 THEN 3 * - CAST ( NULL AS REAL ) WHEN 32 * 65 - 36 THEN COUNT ( * ) + 61 END * 9
----
NULL

query I rowsort
SELECT + 5 * - 79 AS col1
----
-395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3309
SELECT ALL COUNT( * ) * - 33 * + - 71 * + COALESCE ( 64, 78 DIV + 17 )
----
149952

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL COUNT ( * ) * - 33 * + - 71 * + COALESCE ( 64, 78 / + 17 )
----
149952

query I rowsort
SELECT + 76 + - 84
----
-8

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

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

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

query II rowsort
SELECT DISTINCT + 60, 81 + + - 65 * - 16 AS col2
----
60
1121

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT DISTINCT + 53 DIV - 56
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT + 53 / - 56
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3316
SELECT 58, - 83 + + + 59 * - MIN( DISTINCT 62 ) + + 49 col2
----
58
-3692

skipif mysql # not compatible
query II rowsort label-3316
SELECT 58, - 83 + + + 59 * - MIN ( DISTINCT 62 ) + + 49 col2
----
58
-3692

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT - + 19 DIV - - 19
----
-1

skipif mysql # not compatible
query I rowsort label-3317
SELECT - + 19 / - - 19
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT ALL + 14 * - 97 * - CAST( - + COUNT( * ) AS SIGNED )
----
-1358

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL + 14 * - 97 * - CAST ( - + COUNT ( * ) AS INTEGER )
----
-1358

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT + + 8 * CASE - 30 WHEN + COUNT( * ) + + - ( + 30 ) THEN NULL WHEN - 38 / NULLIF ( + COUNT( * ), CAST( + 12 AS SIGNED ) / ( ( 71 ) - + 43 * - 53 ) ) THEN NULL ELSE 18 * 13 END * - 18 + + 57 AS col0
----
-33639

skipif mysql # not compatible
query I rowsort label-3319
SELECT + + 8 * CASE - 30 WHEN + COUNT ( * ) + + - ( + 30 ) THEN NULL WHEN - 38 / NULLIF ( + COUNT ( * ), CAST ( + 12 AS INTEGER ) / ( ( 71 ) - + 43 * - 53 ) ) THEN NULL ELSE 18 * 13 END * - 18 + + 57 AS col0
----
-33639

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT ALL + - 27 * - ( + - 29 ) col0, 0 * + COUNT( * )
----
-783
0

skipif mysql # not compatible
query II rowsort label-3320
SELECT ALL + - 27 * - ( + - 29 ) col0, 0 * + COUNT ( * )
----
-783
0

query I rowsort
SELECT DISTINCT 56 + - - 82
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3322
SELECT ALL + 23 * CAST( - 39 AS SIGNED ) AS col1, + COUNT( * ) * + - COALESCE ( + + 56, + 18 ) * + + 32 * - 63 col0
----
-897
112896

skipif mysql # not compatible
query II rowsort label-3322
SELECT ALL + 23 * CAST ( - 39 AS INTEGER ) AS col1, + COUNT ( * ) * + - COALESCE ( + + 56, + 18 ) * + + 32 * - 63 col0
----
-897
112896

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL + 73 + 68 * - ( + - COUNT( * ) ) - + 65 + 68
----
144

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL + 73 + 68 * - ( + - COUNT ( * ) ) - + 65 + 68
----
144

query I rowsort
SELECT DISTINCT - + 1 + - 31 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ( + CASE - - 85 WHEN + 17 * 30 + 73 THEN + + COUNT( * ) ELSE + 37 END ) * + 88 + + ( - 93 )
----
3163

skipif mysql # not compatible
query I rowsort label-3326
SELECT ( + CASE - - 85 WHEN + 17 * 30 + 73 THEN + + COUNT ( * ) ELSE + 37 END ) * + 88 + + ( - 93 )
----
3163

query II rowsort
SELECT - 11, + 75 AS col2
----
-11
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT + ( - ( NULLIF ( 17, + - COUNT( * ) * + NULLIF ( - COALESCE ( 75, 16, 81 ), + 63 ) * 75 ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-3328
SELECT + ( - ( NULLIF ( 17, + - COUNT ( * ) * + NULLIF ( - COALESCE ( 75, 16, 81 ), + 63 ) * 75 ) ) )
----
-17

query II rowsort
SELECT 50 AS col0, ( 29 )
----
50
29

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

query I rowsort
SELECT + + 66 * + 71 + 68 col0
----
4754

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT DISTINCT + MAX( ALL - 7 ) + - 81 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT + MAX ( ALL - 7 ) + - 81 AS col0
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-3333
SELECT ALL 56 AS col1, + 27 + - ( + 39 ) DIV - + ( ( - 25 ) ) AS col0
----
56
26

skipif mysql # not compatible
query II rowsort label-3333
SELECT ALL 56 AS col1, + 27 + - ( + 39 ) / - + ( ( - 25 ) ) AS col0
----
56
26

query I rowsort
SELECT - COALESCE ( + 62, 80 ) + 28 + - 75 + 71
----
-38

query I rowsort
SELECT ALL + 46 + + + ( 16 ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3336
SELECT DISTINCT + + 30 - - CAST( + - 6 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT + + 30 - - CAST ( + - 6 AS INTEGER )
----
24

query I rowsort
SELECT DISTINCT - 65 - 78
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT DISTINCT MAX( - + 46 ) - - 10 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT MAX ( - + 46 ) - - 10 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT 68 * + COUNT( ALL + - 76 )
----
68

skipif mysql # not compatible
query I rowsort label-3339
SELECT 68 * + COUNT ( ALL + - 76 )
----
68

query I rowsort
SELECT 6 + + + 81
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT - MAX( DISTINCT + 97 ) * - 89 col1
----
8633

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT - MAX ( DISTINCT + 97 ) * - 89 col1
----
8633

query I rowsort
SELECT 16 + - + 26 + + 42 AS col2
----
32

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

skipif mysql # not compatible
query I rowsort label-3343
SELECT 87 / COUNT ( * ) AS col1
----
87

query I rowsort
SELECT 22 * - ( + 25 ) col1
----
-550

query II rowsort
SELECT DISTINCT 29 - + 38, + 40 + 79 AS col2
----
-9
119

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT ALL 64 DIV 76 * - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL 64 / 76 * - 88 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3347
SELECT 12 DIV - - 41 * + 56 * 59 AS col1, + 87 + + MIN( 55 ) * ( + - 50 )
----
0
-2663

skipif mysql # not compatible
query II rowsort label-3347
SELECT 12 / - - 41 * + 56 * 59 AS col1, + 87 + + MIN ( 55 ) * ( + - 50 )
----
0
-2663

onlyif mysql # aggregate syntax: 
query III rowsort label-3348
SELECT COUNT( * ) * + 25, - 19 * - + 65 * - 13 AS col2, + 66 AS col1
----
25
-16055
66

skipif mysql # not compatible
query III rowsort label-3348
SELECT COUNT ( * ) * + 25, - 19 * - + 65 * - 13 AS col2, + 66 AS col1
----
25
-16055
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3349
SELECT ( - 62 ) * MIN( DISTINCT + 32 ) + + 17 DIV - 52 AS col0
----
-1984

skipif mysql # not compatible
query I rowsort label-3349
SELECT ( - 62 ) * MIN ( DISTINCT + 32 ) + + 17 / - 52 AS col0
----
-1984

query I rowsort
SELECT ALL ( - - 85 ) + + 42 * 45 * - NULLIF ( - 10, 43 ) AS col0
----
18985

query I rowsort
SELECT - 16 * - 69 * - 75 + + - ( + - 52 )
----
-82748

query I rowsort
SELECT 32 * + 38 - - 95 col2
----
1311

query I rowsort
SELECT DISTINCT - + 70 + - 50
----
-120

query I rowsort
SELECT DISTINCT - 35 + 32 AS col0
----
-3

query I rowsort
SELECT ALL + 77 + + - 8 AS col2
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3356
SELECT ALL - CAST( 21 AS SIGNED ) + 72 + + SUM( ALL - 82 ) * + 37 AS col0
----
-2983

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - CAST ( 21 AS INTEGER ) + 72 + + SUM ( ALL - 82 ) * + 37 AS col0
----
-2983

query I rowsort
SELECT - 78 * - 89 AS col2
----
6942

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

query I rowsort
SELECT 79 * + + 72
----
5688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3360
SELECT CASE + SUM( ALL + - 77 ) WHEN - - 37 - - 6 * - 31 + + AVG ( - 27 ) - + + COALESCE ( + 36, CAST( + 67 AS SIGNED ) + + 71 ) * - 74 THEN - 79 + 19 * 10 ELSE 62 * - CASE 59 WHEN 99 / COALESCE ( 50 * 69, 69 ) + - 72 THEN 76 END + - 50 / 33 END * - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT CASE + SUM ( ALL + - 77 ) WHEN - - 37 - - 6 * - 31 + + AVG ( - 27 ) - + + COALESCE ( + 36, CAST ( + 67 AS INTEGER ) + + 71 ) * - 74 THEN - 79 + 19 * 10 ELSE 62 * - CASE 59 WHEN 99 / COALESCE ( 50 * 69, 69 ) + - 72 THEN 76 END + - 50 / 33 END * - 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT - SUM( - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-3361
SELECT - SUM ( - 32 )
----
32

query I rowsort
SELECT + 27 * - - 85 col0
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT ALL ( + + SUM( ALL 97 ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL ( + + SUM ( ALL 97 ) ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT COUNT( * ) * + 95
----
95

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT COUNT ( * ) * + 95
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT CAST( - + 93 AS SIGNED ) * 97 * 38
----
-342798

skipif mysql # not compatible
query I rowsort label-3365
SELECT CAST ( - + 93 AS INTEGER ) * 97 * 38
----
-342798

query I rowsort
SELECT 13 * - 65
----
-845

query II rowsort
SELECT ALL 47 AS col0, 8 col2
----
47
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT SUM( - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT SUM ( - 22 )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT - 60, + 25 * - + COUNT( * ) * + - COUNT( * ) AS col1
----
-60
25

skipif mysql # not compatible
query II rowsort label-3369
SELECT - 60, + 25 * - + COUNT ( * ) * + - COUNT ( * ) AS col1
----
-60
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL - MIN( DISTINCT + 33 ) * - 1
----
33

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL - MIN ( DISTINCT + 33 ) * - 1
----
33

query I rowsort
SELECT 28 + 85 col1
----
113

query I rowsort
SELECT 31 - - - ( - 85 )
----
116

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

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL SUM ( + 78 )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT 47 DIV + 17 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3374
SELECT 47 / + 17 AS col0
----
2

query I rowsort
SELECT ALL - 44 + + + 3
----
-41

query I rowsort
SELECT 18 * 88 AS col0
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT - 86 + - MAX( - 98 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3377
SELECT - 86 + - MAX ( - 98 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT DISTINCT + 72 + 36 + COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT + 72 + 36 + COUNT ( * )
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3379
SELECT ALL - 18 DIV COUNT( * ) DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL - 18 / COUNT ( * ) / - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT - 80 DIV + - 97 * 46
----
0

skipif mysql # not compatible
query I rowsort label-3380
SELECT - 80 / + - 97 * 46
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT ALL - ( + COUNT( * ) ) + - 76, 24 AS col1
----
-77
24

skipif mysql # not compatible
query II rowsort label-3381
SELECT ALL - ( + COUNT ( * ) ) + - 76, 24 AS col1
----
-77
24

query I rowsort
SELECT ALL - 80 * - 21 + + 26 AS col0
----
1706

query I rowsort
SELECT + - COALESCE ( + 26, + - 0 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT - 14 * - 90 + - - CASE COUNT( * ) WHEN COUNT( * ) THEN 17 - - + 62 + - + 42 END * + + 89 AS col0
----
4553

skipif mysql # not compatible
query I rowsort label-3384
SELECT - 14 * - 90 + - - CASE COUNT ( * ) WHEN COUNT ( * ) THEN 17 - - + 62 + - + 42 END * + + 89 AS col0
----
4553

query I rowsort
SELECT + 9 * + 45 + 93 AS col0
----
498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3386
SELECT ALL MAX( ALL - 36 ) * COALESCE ( + COUNT( * ), + COUNT( * ), - 31 ) * - COALESCE ( - COUNT( * ), - + 10 + + MAX( - CAST( NULL AS SIGNED ) ) + 38 * 80, + 39 * 92, + 72 ) * - 29 + - ( CASE + 63 WHEN - 15 THEN - 39 WHEN + 56 - 5 * + COUNT( * ) THEN NULL END + ( - 81 ) ) * - 43 + + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL MAX ( ALL - 36 ) * COALESCE ( + COUNT ( * ), + COUNT ( * ), - 31 ) * - COALESCE ( - COUNT ( * ), - + 10 + + MAX ( - CAST ( NULL AS INTEGER ) ) + 38 * 80, + 39 * 92, + 72 ) * - 29 + - ( CASE + 63 WHEN - 15 THEN - 39 WHEN + 56 - 5 * + COUNT ( * ) THEN NULL END + ( - 81 ) ) * - 43 + + 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT 40 * + 33 + + + AVG ( + - 39 ) + + 42 - + ( - - CASE + 83 WHEN 94 THEN - 64 + + 66 WHEN - 4 THEN 5 + 91 END ) * MIN( 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT 40 * + 33 + + + AVG ( + - 39 ) + + 42 - + ( - - CASE + 83 WHEN 94 THEN - 64 + + 66 WHEN - 4 THEN 5 + 91 END ) * MIN ( 58 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL + - CASE WHEN - COUNT( * ) < - - 88 + - 22 THEN NULL ELSE + - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + - CASE WHEN - COUNT ( * ) < - - 88 + - 22 THEN NULL ELSE + - 0 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL + 79 * - - SUM( - + 37 )
----
-2923

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL + 79 * - - SUM ( - + 37 )
----
-2923

query I rowsort
SELECT ALL + - NULLIF ( + 20, + 18 ) AS col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3391
SELECT DISTINCT + 50 * + - CASE ( + 46 ) WHEN 62 * + - 72 THEN NULL WHEN 86 * - 35 / - - 4 THEN 75 + + ( 87 ) END + ( + CASE COUNT( * ) WHEN + 7 + + CAST( NULL AS SIGNED ) THEN 84 * 89 END ) - 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT + 50 * + - CASE ( + 46 ) WHEN 62 * + - 72 THEN NULL WHEN 86 * - 35 / - - 4 THEN 75 + + ( 87 ) END + ( + CASE COUNT ( * ) WHEN + 7 + + CAST ( NULL AS INTEGER ) THEN 84 * 89 END ) - 89 col0
----
NULL

query II rowsort
SELECT DISTINCT + 12, + NULLIF ( - 65, + 22 ) AS col1
----
12
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3393
SELECT DISTINCT + COUNT( * ) * + + 21 DIV - COUNT( * ) - 95
----
-116

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT + COUNT ( * ) * + + 21 / - COUNT ( * ) - 95
----
-116

query I rowsort
SELECT DISTINCT + NULLIF ( - 39, + + 72 + 31 ) AS col0
----
-39

query I rowsort
SELECT ALL + + 86 AS col1
----
86

query I rowsort
SELECT + 25 - - 83
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT - NULLIF ( + - 95, - 91 ) * - 53 + CAST( - 36 AS SIGNED ) col0
----
-5071

skipif mysql # not compatible
query I rowsort label-3397
SELECT - NULLIF ( + - 95, - 91 ) * - 53 + CAST ( - 36 AS INTEGER ) col0
----
-5071

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + 48 * + 4 * - 84 - - + MIN( DISTINCT - - 40 ) * + 48 * - 21 * + 24 * - 73
----
70624512

skipif mysql # not compatible
query I rowsort label-3398
SELECT + 48 * + 4 * - 84 - - + MIN ( DISTINCT - - 40 ) * + 48 * - 21 * + 24 * - 73
----
70624512

query I rowsort
SELECT + 6 * - ( 7 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL MIN( ALL + 83 ) * + 93 * + 47 * - 4
----
-1451172

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL MIN ( ALL + 83 ) * + 93 * + 47 * - 4
----
-1451172

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT + 53 + + NULLIF ( - 2, + + NULLIF ( + 86, + - MIN( - 93 ) / + 93 * + 47 * + - 34 + + - 80 * 40 + 49 ) + ( - 63 + - 33 ) * 73 )
----
51

skipif mysql # not compatible
query I rowsort label-3401
SELECT + 53 + + NULLIF ( - 2, + + NULLIF ( + 86, + - MIN ( - 93 ) / + 93 * + 47 * + - 34 + + - 80 * 40 + 49 ) + ( - 63 + - 33 ) * 73 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3402
SELECT ALL COUNT( - + 76 ), + 9 * + NULLIF ( + CASE + COUNT( * ) WHEN 2 * - 11 THEN + + 3 WHEN + 98 THEN NULL ELSE 13 END, AVG ( + 6 ) ) * + 93 AS col0
----
1
10881

skipif mysql # not compatible
query II rowsort label-3402
SELECT ALL COUNT ( - + 76 ), + 9 * + NULLIF ( + CASE + COUNT ( * ) WHEN 2 * - 11 THEN + + 3 WHEN + 98 THEN NULL ELSE 13 END, AVG ( + 6 ) ) * + 93 AS col0
----
1
10881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3403
SELECT DISTINCT 11 + - COUNT( * ) + SUM( ALL + 48 ) + - + COUNT( * ) DIV NULLIF ( - 48, 50 * + + 34 * + CASE WHEN NULL IS NOT NULL THEN NULL WHEN NULL NOT BETWEEN ( + COALESCE ( 5, - 53 ) ) AND 93 THEN - 4 END + + MAX( DISTINCT COALESCE ( - 51, 39, + 27 ) ) * + 40 ) + + 57 DIV - 77 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT 11 + - COUNT ( * ) + SUM ( ALL + 48 ) + - + COUNT ( * ) / NULLIF ( - 48, 50 * + + 34 * + CASE WHEN NULL IS NOT NULL THEN NULL WHEN NULL NOT BETWEEN ( + COALESCE ( 5, - 53 ) ) AND 93 THEN - 4 END + + MAX ( DISTINCT COALESCE ( - 51, 39, + 27 ) ) * + 40 ) + + 57 / - 77 AS col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3404
SELECT - 23 + - + 91 + + + 84 + 16 AS col2, - SUM( ( - 81 ) )
----
-14
81

skipif mysql # not compatible
query II rowsort label-3404
SELECT - 23 + - + 91 + + + 84 + 16 AS col2, - SUM ( ( - 81 ) )
----
-14
81

query I rowsort
SELECT DISTINCT 46 + CASE + 95 WHEN 5 + + - 15 THEN NULL WHEN 12 / + 34 + - - 47 + - - 30 * - - 16 * + - 35 / - 82 THEN + 60 END * 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL NULLIF ( ( 31 ), - ( - 60 ) ) + COALESCE ( - COUNT( * ), + 63 + 0, 86 + + 11 )
----
30

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL NULLIF ( ( 31 ), - ( - 60 ) ) + COALESCE ( - COUNT ( * ), + 63 + 0, 86 + + 11 )
----
30

query I rowsort
SELECT - ( - - 29 )
----
-29

query II rowsort
SELECT 14 AS col1, - 36
----
14
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL - ( + 74 ) + - + COUNT( * ) * + CASE 96 WHEN + MAX( 19 ) / ( + - 59 ) + - COUNT( * ) THEN 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL - ( + 74 ) + - + COUNT ( * ) * + CASE 96 WHEN + MAX ( 19 ) / ( + - 59 ) + - COUNT ( * ) THEN 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3410
SELECT - ( + 58 ), + 49 + COUNT( * ) AS col2
----
-58
50

skipif mysql # not compatible
query II rowsort label-3410
SELECT - ( + 58 ), + 49 + COUNT ( * ) AS col2
----
-58
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3411
SELECT ALL COALESCE ( - 20, - 43, 57 * - COALESCE ( COUNT( * ), + 80 DIV COUNT( * ) * - - 48 ) * 91 + - ( 58 ) * + ( NULLIF ( 65, - 8 ) ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL COALESCE ( - 20, - 43, 57 * - COALESCE ( COUNT ( * ), + 80 / COUNT ( * ) * - - 48 ) * 91 + - ( 58 ) * + ( NULLIF ( 65, - 8 ) ) )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3412
SELECT DISTINCT 10 + - SUM( + 78 ) / - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT 10 + - SUM ( + 78 ) / - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 0 AS col1, 61
----
0
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3414
SELECT DISTINCT + 77 + + 83 AS col1, + ( + COUNT( * ) ) * + + 2 * + 69 col0
----
160
138

skipif mysql # not compatible
query II rowsort label-3414
SELECT DISTINCT + 77 + + 83 AS col1, + ( + COUNT ( * ) ) * + + 2 * + 69 col0
----
160
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT SUM( - 3 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT SUM ( - 3 ) AS col2
----
-3

query I rowsort
SELECT ALL + - 70 + - 23
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT - 84 * + + ( + COUNT( DISTINCT - - 64 ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-3417
SELECT - 84 * + + ( + COUNT ( DISTINCT - - 64 ) ) AS col2
----
-84

query II rowsort
SELECT 26 AS col2, + 12 + 21 + + 90
----
26
123

query II rowsort
SELECT - 79, + 80 AS col0
----
-79
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3420
SELECT ALL - + COALESCE ( + - CAST( NULL AS SIGNED ), 55 * - 77 + - - COUNT( * ), 77, + - CAST( + + 72 AS SIGNED ) ) + + + 44 + - ( COUNT( * ) ) - + MIN( + 95 - 46 ) * 32 AS col0
----
2709

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - + COALESCE ( + - CAST ( NULL AS INTEGER ), 55 * - 77 + - - COUNT ( * ), 77, + - CAST ( + + 72 AS INTEGER ) ) + + + 44 + - ( COUNT ( * ) ) - + MIN ( + 95 - 46 ) * 32 AS col0
----
2709

query I rowsort
SELECT + NULLIF ( + 26, + 84 * + 30 ) * - + 36 + - 2 + 1 + + COALESCE ( - - 70, + 42, 22 ) * - 93 * + 63 col2
----
-411067

query I rowsort
SELECT - ( + 8 ) * 80
----
-640

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT - + 30 * - + COUNT( * ) * - - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3423
SELECT - + 30 * - + COUNT ( * ) * - - COUNT ( * ) AS col2
----
30

query I rowsort
SELECT ALL + + ( 23 )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3425
SELECT + 57 DIV + 15 + + 93
----
96

skipif mysql # not compatible
query I rowsort label-3425
SELECT + 57 / + 15 + + 93
----
96

query I rowsort
SELECT - + COALESCE ( - 9, - COALESCE ( 15, + 5 + + 18 * + 40 ) + + 2, - 66 ) + - + 53 - 89 * ( + 72 )
----
-6452

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT - - 70 * + + 75 * - - COUNT( - - 18 ) + 67 + 69 + - 0 * + COUNT( * ) + - 10 AS col0
----
5376

skipif mysql # not compatible
query I rowsort label-3427
SELECT - - 70 * + + 75 * - - COUNT ( - - 18 ) + 67 + 69 + - 0 * + COUNT ( * ) + - 10 AS col0
----
5376

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3428
SELECT ALL 26 DIV + - 7 + MIN( + + 42 )
----
39

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL 26 / + - 7 + MIN ( + + 42 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT - 96 + - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3429
SELECT - 96 + - COUNT ( * ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT - + 95 * + + ( 26 ) + COALESCE ( + 68, - 24 * - 76 - + - CASE 68 WHEN + - 61 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE - 6 + 77 END ) - MIN( + 40 ) AS col0
----
-2442

skipif mysql # not compatible
query I rowsort label-3430
SELECT - + 95 * + + ( 26 ) + COALESCE ( + 68, - 24 * - 76 - + - CASE 68 WHEN + - 61 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE - 6 + 77 END ) - MIN ( + 40 ) AS col0
----
-2442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3431
SELECT ALL + 99 col0, 44 DIV + - CAST( + MIN( - 99 ) AS SIGNED )
----
99
0

skipif mysql # not compatible
query II rowsort label-3431
SELECT ALL + 99 col0, 44 / + - CAST ( + MIN ( - 99 ) AS INTEGER )
----
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3432
SELECT + 69 * 43 * - + 28 + 46 + + CAST( + - 64 AS SIGNED ) + + 46 AS col2
----
-83048

skipif mysql # not compatible
query I rowsort label-3432
SELECT + 69 * 43 * - + 28 + 46 + + CAST ( + - 64 AS INTEGER ) + + 46 AS col2
----
-83048

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT - - MIN( ALL - + 13 ) * - 76
----
988

skipif mysql # not compatible
query I rowsort label-3433
SELECT - - MIN ( ALL - + 13 ) * - 76
----
988

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL + + COUNT( ALL - - COALESCE ( 29, + 46 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL + + COUNT ( ALL - - COALESCE ( 29, + 46 ) )
----
1

query II rowsort
SELECT - 67 * 74 col0, 34 AS col1
----
-4958
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3436
SELECT + ( + ( COUNT( * ) ) ) + - - NULLIF ( - + 4, NULLIF ( + + CAST( COUNT( * ) AS DECIMAL ), + + 95 + + 6 ) ) * + 48 col2
----
-191

skipif mysql # not compatible
query I rowsort label-3436
SELECT + ( + ( COUNT ( * ) ) ) + - - NULLIF ( - + 4, NULLIF ( + + CAST ( COUNT ( * ) AS REAL ), + + 95 + + 6 ) ) * + 48 col2
----
-191

query I rowsort
SELECT ALL - 7 * + - 25 * + 86
----
15050

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT + COUNT( DISTINCT + - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-3438
SELECT + COUNT ( DISTINCT + - 36 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3439
SELECT ALL + ( + - NULLIF ( + - 23, + 44 * + 62 - CAST( - + 11 AS SIGNED ) ) ) AS col1, MIN( DISTINCT 70 ) * - NULLIF ( + 94, AVG ( + 51 ) + 86 )
----
23
-6580

skipif mysql # not compatible
query II rowsort label-3439
SELECT ALL + ( + - NULLIF ( + - 23, + 44 * + 62 - CAST ( - + 11 AS INTEGER ) ) ) AS col1, MIN ( DISTINCT 70 ) * - NULLIF ( + 94, AVG ( + 51 ) + 86 )
----
23
-6580

query I rowsort
SELECT - 53 * - 33 AS col2
----
1749

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT CASE COUNT( * ) WHEN + COUNT( * ) + - 51 THEN - 3 * 58 + 32 WHEN - 98 THEN + - 63 WHEN - MIN( + 33 ) THEN NULL ELSE 83 END AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3441
SELECT CASE COUNT ( * ) WHEN + COUNT ( * ) + - 51 THEN - 3 * 58 + 32 WHEN - 98 THEN + - 63 WHEN - MIN ( + 33 ) THEN NULL ELSE 83 END AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL - MAX( ALL - 16 ) * MIN( DISTINCT 1 )
----
16

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL - MAX ( ALL - 16 ) * MIN ( DISTINCT 1 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT - NULLIF ( - 47, + ( + CASE 15 WHEN + + 92 * 46 / - 30 - + + 31 THEN 28 * - - 69 * - 45 + ( + MAX( 76 ) ) * 42 WHEN + 41 THEN + 75 END ) * 5 ) * + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-3443
SELECT - NULLIF ( - 47, + ( + CASE 15 WHEN + + 92 * 46 / - 30 - + + 31 THEN 28 * - - 69 * - 45 + ( + MAX ( 76 ) ) * 42 WHEN + 41 THEN + 75 END ) * 5 ) * + COUNT ( * )
----
47

query I rowsort
SELECT + 23 * - ( + 72 ) AS col2
----
-1656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3445
SELECT + 40 DIV + - 79 * COUNT( * ) * COALESCE ( + + 48, 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3445
SELECT + 40 / + - 79 * COUNT ( * ) * COALESCE ( + + 48, 80 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT DISTINCT - MIN( + - 21 ) * + 71 + - CASE - CAST( + 85 AS SIGNED ) WHEN 66 THEN - 79 ELSE NULL END * - 8 * + 86 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT - MIN ( + - 21 ) * + 71 + - CASE - CAST ( + 85 AS INTEGER ) WHEN 66 THEN - 79 ELSE NULL END * - 8 * + 86 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3447
SELECT COUNT( * ) - - + COUNT( * ) DIV 6 - + 94 + + 14 * NULLIF ( + ( - + 89 ), - - 19 DIV 29 * - COUNT( * ) + + 65 - 49 * 38 ) - + 47
----
-1386

skipif mysql # not compatible
query I rowsort label-3447
SELECT COUNT ( * ) - - + COUNT ( * ) / 6 - + 94 + + 14 * NULLIF ( + ( - + 89 ), - - 19 / 29 * - COUNT ( * ) + + 65 - 49 * 38 ) - + 47
----
-1386

query I rowsort
SELECT DISTINCT 34 * + - 55 * 19 * + 73
----
-2593690

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ( - - ( + 40 ) ) * CASE - 65 WHEN + MAX( DISTINCT + 15 ) THEN + COUNT( * ) / - 34 - + ( 28 ) WHEN + + 80 THEN NULL WHEN + 45 * + 13 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT ( - - ( + 40 ) ) * CASE - 65 WHEN + MAX ( DISTINCT + 15 ) THEN + COUNT ( * ) / - 34 - + ( 28 ) WHEN + + 80 THEN NULL WHEN + 45 * + 13 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3450
SELECT ALL ( + COUNT( * ) ) * + COUNT( * ) * - 53 DIV + 29 + + - COALESCE ( 72, + COALESCE ( - 53, + 43, - CAST( NULL AS SIGNED ) + 4 * - MAX( DISTINCT 50 ) ) * ( + 53 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL ( + COUNT ( * ) ) * + COUNT ( * ) * - 53 / + 29 + + - COALESCE ( 72, + COALESCE ( - 53, + 43, - CAST ( NULL AS INTEGER ) + 4 * - MAX ( DISTINCT 50 ) ) * ( + 53 ) )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3451
SELECT ALL - 27 + + 12 AS col2, COUNT( * ) * AVG ( + + CAST( NULL AS SIGNED ) ) + - 12 AS col2
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-3451
SELECT ALL - 27 + + 12 AS col2, COUNT ( * ) * AVG ( + + CAST ( NULL AS INTEGER ) ) + - 12 AS col2
----
-15
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3452
SELECT DISTINCT CAST( 93 AS SIGNED ) * - 72 * - NULLIF ( 99, - 5 / + COUNT( * ) + 82 + MIN( + 23 ) ) AS col0, 33 * - 21
----
662904
-693

skipif mysql # not compatible
query II rowsort label-3452
SELECT DISTINCT CAST ( 93 AS INTEGER ) * - 72 * - NULLIF ( 99, - 5 / + COUNT ( * ) + 82 + MIN ( + 23 ) ) AS col0, 33 * - 21
----
662904
-693

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3453
SELECT NULLIF ( + 89, + CAST( NULL AS SIGNED ) * - 91 + + NULLIF ( + + 62, + 6 DIV + 40 + 33 ) ) + + 12 DIV 16
----
89

skipif mysql # not compatible
query I rowsort label-3453
SELECT NULLIF ( + 89, + CAST ( NULL AS INTEGER ) * - 91 + + NULLIF ( + + 62, + 6 / + 40 + 33 ) ) + + 12 / 16
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3454
SELECT CAST( - COUNT( * ) AS SIGNED ) - 89
----
-90

skipif mysql # not compatible
query I rowsort label-3454
SELECT CAST ( - COUNT ( * ) AS INTEGER ) - 89
----
-90

query II rowsort
SELECT ALL ( - 0 ), - 43 AS col2
----
0
-43

query I rowsort
SELECT + 22 * - 27
----
-594

query I rowsort
SELECT 55 + - 24 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3458
SELECT ALL + 63 * + 35 * + + 38 * CASE + 36 WHEN - - ( - + 17 ) THEN NULL ELSE 87 + COUNT( * ) END * + MAX( DISTINCT 58 ) * - COUNT( ALL - COALESCE ( 24, 36 * 42 ) ) + - CASE + 97 WHEN 45 - 24 * + ( + 44 + NULLIF ( + ( + COALESCE ( 99, + 60 + ( + CAST( + 94 AS DECIMAL ) ) * 90 ) ), 83 ) ) THEN 98 WHEN CAST( ( 54 ) AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL + 63 * + 35 * + + 38 * CASE + 36 WHEN - - ( - + 17 ) THEN NULL ELSE 87 + COUNT ( * ) END * + MAX ( DISTINCT 58 ) * - COUNT ( ALL - COALESCE ( 24, 36 * 42 ) ) + - CASE + 97 WHEN 45 - 24 * + ( + 44 + NULLIF ( + ( + COALESCE ( 99, + 60 + ( + CAST ( + 94 AS REAL ) ) * 90 ) ), 83 ) ) THEN 98 WHEN CAST ( ( 54 ) AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT 24 * - 52 * - + COUNT( * )
----
1248

skipif mysql # not compatible
query I rowsort label-3459
SELECT 24 * - 52 * - + COUNT ( * )
----
1248

onlyif mysql # aggregate syntax: 
query II rowsort label-3460
SELECT ALL + + 21 * + + 61 AS col2, NULLIF ( - 62, - - 88 * 69 - + 16 + + COUNT( * ) - 9 )
----
1281
-62

skipif mysql # not compatible
query II rowsort label-3460
SELECT ALL + + 21 * + + 61 AS col2, NULLIF ( - 62, - - 88 * 69 - + 16 + + COUNT ( * ) - 9 )
----
1281
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT + 21 * + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-3461
SELECT + 21 * + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ( MAX( - 81 ) ) - - 11
----
-70

skipif mysql # not compatible
query I rowsort label-3462
SELECT ( MAX ( - 81 ) ) - - 11
----
-70

query I rowsort
SELECT ALL - + 4 AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3464
SELECT - 74 + - 49 - + - 82 DIV 2 + + CASE + - COUNT( - + 57 ) WHEN 81 THEN + + 13 WHEN - 8 THEN - 52 ELSE + + 59 END * 46
----
2632

skipif mysql # not compatible
query I rowsort label-3464
SELECT - 74 + - 49 - + - 82 / 2 + + CASE + - COUNT ( - + 57 ) WHEN 81 THEN + + 13 WHEN - 8 THEN - 52 ELSE + + 59 END * 46
----
2632

query I rowsort
SELECT ALL 43 * - - ( + + 12 )
----
516

query I rowsort
SELECT DISTINCT - 8 * - + 93 + 79
----
823

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT 6 DIV + + 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3467
SELECT 6 / + + 12 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT ALL + NULLIF ( - + 58, + 32 ) DIV + ( + + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL + NULLIF ( - + 58, + 32 ) / + ( + + 62 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3469
SELECT DISTINCT - COALESCE ( - + 36, - + 90 + 35 * + 27, - 66 ) AS col0, - MIN( + 3 ) AS col2
----
36
-3

skipif mysql # not compatible
query II rowsort label-3469
SELECT DISTINCT - COALESCE ( - + 36, - + 90 + 35 * + 27, - 66 ) AS col0, - MIN ( + 3 ) AS col2
----
36
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT ALL - 94 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL - 94 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 21 * - 53 - + - 20 - - 81
----
-1012

query II rowsort
SELECT DISTINCT - 93 AS col2, 7
----
-93
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT COUNT( * ) - + 38 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3473
SELECT COUNT ( * ) - + 38 AS col1
----
-37

query I rowsort
SELECT ALL - 21 + + + 43 col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT 5 * - - COALESCE ( + - 43, + 56 * + COALESCE ( + + ( - CASE - 98 WHEN - - ( - 61 ) THEN + 9 ELSE NULL END ), COUNT( * ) * + + 45 + CASE MAX( DISTINCT 5 ) WHEN 19 THEN - 99 + - 88 WHEN - 2 THEN 57 * + 33 END * 91 ) ) * 63
----
-13545

skipif mysql # not compatible
query I rowsort label-3475
SELECT 5 * - - COALESCE ( + - 43, + 56 * + COALESCE ( + + ( - CASE - 98 WHEN - - ( - 61 ) THEN + 9 ELSE NULL END ), COUNT ( * ) * + + 45 + CASE MAX ( DISTINCT 5 ) WHEN 19 THEN - 99 + - 88 WHEN - 2 THEN 57 * + 33 END * 91 ) ) * 63
----
-13545

query II rowsort
SELECT ALL + 58 + + 53 * - 55 col2, + 20
----
-2857
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT DISTINCT + 49 * ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT + 49 * ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3478
SELECT 21 + + 54 + + - 8 * 15 DIV COALESCE ( + 5, 25 * - CASE + CAST( + - 55 AS SIGNED ) WHEN + - AVG ( ( - 5 ) ) + 92 THEN 7 ELSE NULL END + + 41, - 13 ) + 49
----
100

skipif mysql # not compatible
query I rowsort label-3478
SELECT 21 + + 54 + + - 8 * 15 / COALESCE ( + 5, 25 * - CASE + CAST ( + - 55 AS INTEGER ) WHEN + - AVG ( ( - 5 ) ) + 92 THEN 7 ELSE NULL END + + 41, - 13 ) + 49
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3479
SELECT 31 + - 36 - + 67 + COUNT( * ) + - - CASE + ( 28 ) WHEN + 10 * + - CAST( NULL AS SIGNED ) THEN - 24 END * + - CASE + + MIN( ALL + 76 ) WHEN 98 THEN NULL WHEN 23 * + 6 THEN - 88 * - 97 + - 86 * COUNT( * ) ELSE - 27 - - 82 END * ( MIN( DISTINCT + 62 ) + 28 ) * + SUM( - 79 * 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT 31 + - 36 - + 67 + COUNT ( * ) + - - CASE + ( 28 ) WHEN + 10 * + - CAST ( NULL AS INTEGER ) THEN - 24 END * + - CASE + + MIN ( ALL + 76 ) WHEN 98 THEN NULL WHEN 23 * + 6 THEN - 88 * - 97 + - 86 * COUNT ( * ) ELSE - 27 - - 82 END * ( MIN ( DISTINCT + 62 ) + 28 ) * + SUM ( - 79 * 85 )
----
NULL

query I rowsort
SELECT 40 + + 39 AS col0
----
79

query I rowsort
SELECT ALL 51 + + 70
----
121

query II rowsort
SELECT ALL 23 col1, + 92 AS col0
----
23
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3483
SELECT ALL + 31 * - MAX( - - 74 ), ( + 17 ) AS col2
----
-2294
17

skipif mysql # not compatible
query II rowsort label-3483
SELECT ALL + 31 * - MAX ( - - 74 ), ( + 17 ) AS col2
----
-2294
17

query I rowsort
SELECT CASE + 16 WHEN - 64 THEN + - 37 * + NULLIF ( + - 2, - + 72 - - 76 - 27 ) / 95 END + 14 + + COALESCE ( + + 88, + ( + 55 ), - CASE 3 WHEN 14 + + 70 THEN 36 / 26 END ) - + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT + NULLIF ( - 53, + COUNT( * ) ) - 87 + + 23 + - 45 + - COALESCE ( + 97, - COUNT( * ) ) AS col2
----
-259

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT + NULLIF ( - 53, + COUNT ( * ) ) - 87 + + 23 + - 45 + - COALESCE ( + 97, - COUNT ( * ) ) AS col2
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT ALL 92 - COUNT( * ) - - CASE - 42 WHEN - + 9 THEN NULLIF ( 88, - + 5 ) * + MAX( ALL 8 ) + 91 * + + 76 + + 68 + - COUNT( * ) * - 56 END / - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL 92 - COUNT ( * ) - - CASE - 42 WHEN - + 9 THEN NULLIF ( 88, - + 5 ) * + MAX ( ALL 8 ) + 91 * + + 76 + + 68 + - COUNT ( * ) * - 56 END / - 99 AS col1
----
NULL

query I rowsort
SELECT + 6 * + 58
----
348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3488
SELECT 21 * + - NULLIF ( + + ( + 19 ), 52 * CAST( NULL AS SIGNED ) + - - 71 ) * - 65, 92 * + - COUNT( * ) AS col1
----
25935
-92

skipif mysql # not compatible
query II rowsort label-3488
SELECT 21 * + - NULLIF ( + + ( + 19 ), 52 * CAST ( NULL AS INTEGER ) + - - 71 ) * - 65, 92 * + - COUNT ( * ) AS col1
----
25935
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3489
SELECT ALL COUNT( * ) DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL COUNT ( * ) / + 94 AS col2
----
0

query II rowsort
SELECT - 15 + 42 * + + 14 AS col0, + 28 * + + 79
----
573
2212

query II rowsort
SELECT - + 67 col0, + 78 + - 4
----
-67
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - 28 + - MIN( + 10 ) * - 71 AS col1
----
682

skipif mysql # not compatible
query I rowsort label-3492
SELECT - 28 + - MIN ( + 10 ) * - 71 AS col1
----
682

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT MAX( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT MAX ( 19 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT ALL + CAST( ( 18 ) AS SIGNED ) * 49
----
882

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + CAST ( ( 18 ) AS INTEGER ) * 49
----
882

query I rowsort
SELECT ALL 86 * + 42
----
3612

query II rowsort
SELECT DISTINCT - 18 AS col2, - 53
----
-18
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3497
SELECT - ( 68 ) DIV + COUNT( + - 56 )
----
-68

skipif mysql # not compatible
query I rowsort label-3497
SELECT - ( 68 ) / + COUNT ( + - 56 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ( + - 63 ) * 43 * - COUNT( * )
----
2709

skipif mysql # not compatible
query I rowsort label-3498
SELECT ( + - 63 ) * 43 * - COUNT ( * )
----
2709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3499
SELECT + + CAST( - + MIN( ALL - 94 ) AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-3499
SELECT + + CAST ( - + MIN ( ALL - 94 ) AS INTEGER )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL + + 79 * - 53 + + ( MAX( ALL 23 ) ) + - + 93
----
-4257

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + + 79 * - 53 + + ( MAX ( ALL 23 ) ) + - + 93
----
-4257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT 76 * + + 62 + + CAST( NULL AS SIGNED ) + ( + 78 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT 76 * + + 62 + + CAST ( NULL AS INTEGER ) + ( + 78 ) col0
----
NULL

query I rowsort
SELECT - 14 - - - 18 * + - 22 AS col1
----
382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3503
SELECT + 10 / + 49 - - CAST( NULL AS SIGNED ) - - - 7 + - - COUNT( * ) * + COUNT( * ) * 10 + 3 + 11 / - 19 * - - 74 - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT + 10 / + 49 - - CAST ( NULL AS INTEGER ) - - - 7 + - - COUNT ( * ) * + COUNT ( * ) * 10 + 3 + 11 / - 19 * - - 74 - 1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3504
SELECT ALL + 36 * 59 + + 0 * + + COUNT( * ) DIV - 42 AS col0
----
2124

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL + 36 * 59 + + 0 * + + COUNT ( * ) / - 42 AS col0
----
2124

query I rowsort
SELECT ALL + + 43 * 63 AS col0
----
2709

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT + MIN( DISTINCT + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-3506
SELECT + MIN ( DISTINCT + 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL - - 60 * + 61 * SUM( DISTINCT - 38 ) + - ( COUNT( * ) )
----
-139081

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL - - 60 * + 61 * SUM ( DISTINCT - 38 ) + - ( COUNT ( * ) )
----
-139081

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3508
SELECT 26 * + - 61 + + ( - COUNT( * ) ), - 13 DIV 22 AS col2
----
-1587
0

skipif mysql # not compatible
query II rowsort label-3508
SELECT 26 * + - 61 + + ( - COUNT ( * ) ), - 13 / 22 AS col2
----
-1587
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT COUNT( + - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-3509
SELECT COUNT ( + - 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT + 11 * - COUNT( * ) * 71 * - COUNT( * ) * 77
----
60137

skipif mysql # not compatible
query I rowsort label-3510
SELECT + 11 * - COUNT ( * ) * 71 * - COUNT ( * ) * 77
----
60137

query I rowsort
SELECT DISTINCT - 17 * 74
----
-1258

onlyif mysql # aggregate syntax: 
query II rowsort label-3512
SELECT - COUNT( - - 46 ) + + + ( - 1 ) AS col0, + 26 * - 85 + + 11 + + 84 col0
----
-2
-2115

skipif mysql # not compatible
query II rowsort label-3512
SELECT - COUNT ( - - 46 ) + + + ( - 1 ) AS col0, + 26 * - 85 + + 11 + + 84 col0
----
-2
-2115

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT - 64 DIV - 47
----
1

skipif mysql # not compatible
query I rowsort label-3513
SELECT - 64 / - 47
----
1

query I rowsort
SELECT DISTINCT 87 * 78
----
6786

query II rowsort
SELECT ALL + 27 - - + COALESCE ( 40, + - 56 ) AS col2, 19
----
67
19

query I rowsort
SELECT DISTINCT + ( + ( - + 50 ) ) AS col1
----
-50

query I rowsort
SELECT + 45 * - 92 AS col1
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT - COALESCE ( - + ( + 51 ), - 11 ) * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-3518
SELECT - COALESCE ( - + ( + 51 ), - 11 ) * COUNT ( * )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3519
SELECT ALL + 27 - - - CAST( NULL AS SIGNED ) + - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL + 27 - - - CAST ( NULL AS INTEGER ) + - + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT - COALESCE ( + 74, - 55 + + 80 ) + + + COALESCE ( - 65, - COUNT( * ) + - + 6 )
----
-139

skipif mysql # not compatible
query I rowsort label-3520
SELECT - COALESCE ( + 74, - 55 + + 80 ) + + + COALESCE ( - 65, - COUNT ( * ) + - + 6 )
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL + 0 * + COUNT( ALL + 40 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL + 0 * + COUNT ( ALL + 40 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3522
SELECT - CASE 6 WHEN + - 28 * + SUM( DISTINCT - 18 ) + + + COUNT( + ( - - CAST( - 90 AS SIGNED ) ) ) THEN 84 END - + - 54 + - - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT - CASE 6 WHEN + - 28 * + SUM ( DISTINCT - 18 ) + + + COUNT ( + ( - - CAST ( - 90 AS INTEGER ) ) ) THEN 84 END - + - 54 + - - 8 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + MAX( - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-3523
SELECT + MAX ( - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL SUM( DISTINCT - 20 ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL SUM ( DISTINCT - 20 ) col0
----
-20

query I rowsort
SELECT DISTINCT - 35 * NULLIF ( - 63, - - 94 + - 86 / 6 ) - 8
----
2197

query I rowsort
SELECT + + 8 - 51
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL 59 + - SUM( ALL - + 33 ) + - + 33
----
59

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL 59 + - SUM ( ALL - + 33 ) + - + 33
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3528
SELECT - CAST( NULL AS SIGNED ) + + MIN( ALL - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT - CAST ( NULL AS INTEGER ) + + MIN ( ALL - 68 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT - - 30 * - 26 * 81 + COUNT( * ) * - - 68
----
-63112

skipif mysql # not compatible
query I rowsort label-3529
SELECT - - 30 * - 26 * 81 + COUNT ( * ) * - - 68
----
-63112

query I rowsort
SELECT DISTINCT - 19 + - 10 * 11 AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL MAX( DISTINCT + + ( - 14 ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL MAX ( DISTINCT + + ( - 14 ) ) AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3532
SELECT ALL + - 74 + CASE - + 25 WHEN 30 THEN NULL WHEN - COUNT( DISTINCT 4 ) THEN NULL ELSE 72 + - + COUNT( * ) + - - CAST( - - 46 AS SIGNED ) END + - - 88
----
131

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL + - 74 + CASE - + 25 WHEN 30 THEN NULL WHEN - COUNT ( DISTINCT 4 ) THEN NULL ELSE 72 + - + COUNT ( * ) + - - CAST ( - - 46 AS INTEGER ) END + - - 88
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT DISTINCT 4 * COUNT( - + 37 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT 4 * COUNT ( - + 37 ) AS col1
----
4

query I rowsort
SELECT + 78 * + 32 col2
----
2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT ALL ( + 82 ) * + CAST( NULL AS SIGNED ) + - AVG ( DISTINCT + 35 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL ( + 82 ) * + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT + 35 ) col0
----
NULL

query I rowsort
SELECT + 91 * + 60 + 54 AS col2
----
5514

query I rowsort
SELECT DISTINCT ( + 31 ) * + 31 * - 31 col2
----
-29791

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT 58 DIV + 64 - - 12 col2
----
12

skipif mysql # not compatible
query I rowsort label-3538
SELECT 58 / + 64 - - 12 col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT + CAST( - + 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-3539
SELECT + CAST ( - + 54 AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT - 55 * - 22 + + COUNT( * )
----
1211

skipif mysql # not compatible
query I rowsort label-3540
SELECT - 55 * - 22 + + COUNT ( * )
----
1211

query I rowsort
SELECT + ( - 75 )
----
-75

query I rowsort
SELECT + 58 * + 77 * + - 73 AS col2
----
-326018

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3543
SELECT + COUNT( * ) * - COUNT( * ) - - - CASE + - COUNT( * ) WHEN - CASE + 35 WHEN - 49 * - 17 THEN + 41 ELSE NULL END THEN 81 WHEN - CASE + - 19 WHEN + - 84 + - + 7 + - 15 - 63 * + 81 THEN NULL ELSE + 12 END - - 48 THEN + 37 WHEN 4 + ( COUNT( * ) + + 56 ) THEN MIN( DISTINCT 94 ) DIV 47 + COUNT( * ) * 72 WHEN 89 - 8 THEN 62 * + 42 ELSE COUNT( * ) END * 6 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-3543
SELECT + COUNT ( * ) * - COUNT ( * ) - - - CASE + - COUNT ( * ) WHEN - CASE + 35 WHEN - 49 * - 17 THEN + 41 ELSE NULL END THEN 81 WHEN - CASE + - 19 WHEN + - 84 + - + 7 + - 15 - 63 * + 81 THEN NULL ELSE + 12 END - - 48 THEN + 37 WHEN 4 + ( COUNT ( * ) + + 56 ) THEN MIN ( DISTINCT 94 ) / 47 + COUNT ( * ) * 72 WHEN 89 - 8 THEN 62 * + 42 ELSE COUNT ( * ) END * 6 AS col2
----
-7

query I rowsort
SELECT CASE + 4 WHEN + 65 * + 6 * 93 + + 93 THEN NULL WHEN - 60 + 43 THEN - 27 END
----
NULL

query I rowsort
SELECT 68 * + 50 + + 70 * 80 AS col1
----
9000

query I rowsort
SELECT - 28 * + 41 AS col2
----
-1148

query I rowsort
SELECT DISTINCT 33 * + + 1 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT COALESCE ( - 96, COUNT( * ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-3548
SELECT COALESCE ( - 96, COUNT ( * ) ) AS col2
----
-96

query I rowsort
SELECT ALL - 69 * 14 AS col1
----
-966

query I rowsort
SELECT + 74 + + 84 + 9 col0
----
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT ALL 80 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL 80 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL ( + - 6 ) AS col1
----
-6

query I rowsort
SELECT ALL ( - - 76 ) * + 50 AS col0
----
3800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3554
SELECT - - 86 DIV 12 * 8 + + ( - ( + COUNT( * ) ) ) - - 65
----
120

skipif mysql # not compatible
query I rowsort label-3554
SELECT - - 86 / 12 * 8 + + ( - ( + COUNT ( * ) ) ) - - 65
----
120

query I rowsort
SELECT ALL - CASE 16 WHEN + 83 THEN - COALESCE ( + - 45, + 32 + + 6, 98 - 43 * 69 * + 93, ( 97 ) ) END / + 11
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3556
SELECT ALL ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3557
SELECT + 35 * + 99 + 39 + - - COUNT( * ) + + 10, COUNT( * ) AS col2
----
3515
1

skipif mysql # not compatible
query II rowsort label-3557
SELECT + 35 * + 99 + 39 + - - COUNT ( * ) + + 10, COUNT ( * ) AS col2
----
3515
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT + 77 + SUM( ALL + 82 ) AS col1
----
159

skipif mysql # not compatible
query I rowsort label-3558
SELECT + 77 + SUM ( ALL + 82 ) AS col1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - 51 + + SUM( + 87 ) + - 80 - + COALESCE ( 28, + + 13 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3559
SELECT - 51 + + SUM ( + 87 ) + - 80 - + COALESCE ( 28, + + 13 ) AS col2
----
-72

query I rowsort
SELECT ALL + + 14 + + 19
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT - - 34 + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-3561
SELECT - - 34 + + COUNT ( * )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3562
SELECT DISTINCT - - 1 * + COUNT( * ) - - 70 * COUNT( * ) DIV + COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT - - 1 * + COUNT ( * ) - - 70 * COUNT ( * ) / + COUNT ( * ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT DISTINCT + NULLIF ( + 37, + 72 * - - 99 ) + - CAST( - + COUNT( ALL - + 24 ) AS SIGNED ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT + NULLIF ( + 37, + 72 * - - 99 ) + - CAST ( - + COUNT ( ALL - + 24 ) AS INTEGER ) AS col0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * 27 * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * 27 * 70 AS col1
----
NULL

query I rowsort
SELECT ALL - 79 + 45
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3566
SELECT - 63 + + MAX( - + 5 ), - 77 DIV + NULLIF ( - 94, + ( - ( + + 93 ) ) ) AS col0
----
-68
0

skipif mysql # not compatible
query II rowsort label-3566
SELECT - 63 + + MAX ( - + 5 ), - 77 / + NULLIF ( - 94, + ( - ( + + 93 ) ) ) AS col0
----
-68
0

query I rowsort
SELECT DISTINCT + 88 + - + ( 40 )
----
48

query I rowsort
SELECT ALL - 30 * + 84
----
-2520

query II rowsort
SELECT DISTINCT 12, + 20 AS col1
----
12
20

query II rowsort
SELECT ALL + 62 + - 86 AS col1, - 37 AS col2
----
-24
-37

query I rowsort
SELECT 12 + - ( - + 56 ) AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3572
SELECT DISTINCT COUNT( * ) DIV - 74 * + 33
----
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT COUNT ( * ) / - 74 * + 33
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3573
SELECT ALL 76 - + - 66 - - + 71 DIV - 96
----
142

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL 76 - + - 66 - - + 71 / - 96
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT ALL 35 * + + SUM( 94 ) AS col2
----
3290

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL 35 * + + SUM ( 94 ) AS col2
----
3290

query II rowsort
SELECT 50 AS col1, 71 AS col2
----
50
71

query I rowsort
SELECT DISTINCT - 45 - - - 91 AS col1
----
-136

query II rowsort
SELECT + 5 AS col2, - 94
----
5
-94

query I rowsort
SELECT ALL 28 * ( - 12 ) AS col1
----
-336

query I rowsort
SELECT 63 * - 86 + - 9 + - 72 AS col0
----
-5499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3580
SELECT ALL ( + ( + 88 ) ) * + - CAST( + COUNT( * ) AS SIGNED ) + + 83 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3580
SELECT ALL ( + ( + 88 ) ) * + - CAST ( + COUNT ( * ) AS INTEGER ) + + 83 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT 30 * MIN( ALL 91 ) AS col0
----
2730

skipif mysql # not compatible
query I rowsort label-3581
SELECT 30 * MIN ( ALL 91 ) AS col0
----
2730

query I rowsort
SELECT + 38 * 71 + - - 61 AS col1
----
2759

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT 37 DIV 12
----
3

skipif mysql # not compatible
query I rowsort label-3583
SELECT 37 / 12
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT 75 + 37 - + 56 + + ( + + COUNT( DISTINCT + ( - + 95 ) ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-3584
SELECT 75 + 37 - + 56 + + ( + + COUNT ( DISTINCT + ( - + 95 ) ) ) AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT ALL 93 * - CAST( NULL AS SIGNED ) * ( + + 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL 93 * - CAST ( NULL AS INTEGER ) * ( + + 28 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT - COUNT( * ) * + 27
----
-27

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT - COUNT ( * ) * + 27
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT DISTINCT - CAST( + 39 AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT - CAST ( + 39 AS INTEGER ) AS col1
----
-39

query I rowsort
SELECT 72 * - + 66 AS col2
----
-4752

query II rowsort
SELECT 74 AS col2, + 61 AS col2
----
74
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3590
SELECT - COUNT( * ), - COUNT( - 19 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3590
SELECT - COUNT ( * ), - COUNT ( - 19 )
----
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3591
SELECT + 55 col0, CAST( NULL AS DECIMAL )
----
55
NULL

skipif mysql # not compatible
query II rowsort label-3591
SELECT + 55 col0, CAST ( NULL AS REAL )
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT - + COALESCE ( + 51, COUNT( * ) * + - 81 + 29 )
----
-51

skipif mysql # not compatible
query I rowsort label-3592
SELECT - + COALESCE ( + 51, COUNT ( * ) * + - 81 + 29 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT - 97 * + - COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-3593
SELECT - 97 * + - COUNT ( * )
----
97

query I rowsort
SELECT 24 - 57 + - 74 AS col0
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3595
SELECT ALL + COALESCE ( - COUNT( * ), + + 91, + COUNT( * ) * - COUNT( * ) ) + 26 - - CASE 13 WHEN - 31 THEN + 22 WHEN - 64 THEN NULL ELSE NULL END * - CAST( NULL AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL + COALESCE ( - COUNT ( * ), + + 91, + COUNT ( * ) * - COUNT ( * ) ) + 26 - - CASE 13 WHEN - 31 THEN + 22 WHEN - 64 THEN NULL ELSE NULL END * - CAST ( NULL AS INTEGER ) * 75
----
NULL

query II rowsort
SELECT DISTINCT - 75, 48 + + + 86 AS col0
----
-75
134

query I rowsort
SELECT 93 * + 76
----
7068

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT + COALESCE ( + 81, - 13 * + MAX( - COALESCE ( - ( - 91 ), - 73 ) ) ) * - + 98 AS col1
----
-7938

skipif mysql # not compatible
query I rowsort label-3598
SELECT + COALESCE ( + 81, - 13 * + MAX ( - COALESCE ( - ( - 91 ), - 73 ) ) ) * - + 98 AS col1
----
-7938

query I rowsort
SELECT 25 + 27 * - + CASE + + 64 WHEN + 80 THEN - - 15 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT - 13 * + - COUNT( * ) * - 76 * 93
----
-91884

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - 13 * + - COUNT ( * ) * - 76 * 93
----
-91884

query I rowsort
SELECT DISTINCT - ( - - ( 77 ) )
----
-77

query I rowsort
SELECT ALL - NULLIF ( - 62, + - 36 * - + COALESCE ( - - 24, - ( - + 51 ), - - 95 ) ) AS col2
----
62

query I rowsort
SELECT 40 * - 72
----
-2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3604
SELECT ALL - COALESCE ( - 63, - 41 * - 4 * 77 + - COUNT( * ) + - ( 16 ) + COUNT( * ) + + 97, - + 13 DIV - 85 DIV - COUNT( * ) + 81 * 92 )
----
63

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL - COALESCE ( - 63, - 41 * - 4 * 77 + - COUNT ( * ) + - ( 16 ) + COUNT ( * ) + + 97, - + 13 / - 85 / - COUNT ( * ) + 81 * 92 )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT ALL 45 / ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL 45 / ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + 9 * - COUNT( * ) + 29 + + 16 - - - SUM( + 99 )
----
-63

skipif mysql # not compatible
query I rowsort label-3606
SELECT + 9 * - COUNT ( * ) + 29 + + 16 - - - SUM ( + 99 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT ALL - COALESCE ( SUM( ALL + + 12 ), - + COALESCE ( + 49, 93 + - + 51 * - 39 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - COALESCE ( SUM ( ALL + + 12 ), - + COALESCE ( + 49, 93 + - + 51 * - 39 ) )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT 42 * COUNT( 39 ) * - ( - 72 ) + 53 AS col0
----
3077

skipif mysql # not compatible
query I rowsort label-3608
SELECT 42 * COUNT ( 39 ) * - ( - 72 ) + 53 AS col0
----
3077

query I rowsort
SELECT ALL 39 + 23
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL NULLIF ( - - MIN( + + 30 ), - - ( - ( - 85 ) ) * - 8 * - 98 - - + 84 ) + 59 col2
----
89

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL NULLIF ( - - MIN ( + + 30 ), - - ( - ( - 85 ) ) * - 8 * - 98 - - + 84 ) + 59 col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT CASE + COUNT( * ) WHEN 5 * + 44 + - 18 THEN NULL WHEN - + 20 THEN CAST( NULL AS SIGNED ) / + 37 * 90 + + COUNT( * ) END - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT CASE + COUNT ( * ) WHEN 5 * + 44 + - 18 THEN NULL WHEN - + 20 THEN CAST ( NULL AS INTEGER ) / + 37 * 90 + + COUNT ( * ) END - + 25
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3612
SELECT DISTINCT - 6 + - NULLIF ( - 11, 18 ) + - + 56 * 69 + 33 * - NULLIF ( - 57, + CAST( 74 AS DECIMAL ) + + 90 + ( + + 81 ) * - + 11 DIV 17 + + 80 ) + + CAST( + CASE + COUNT( * ) WHEN 96 THEN NULL WHEN COUNT( * ) THEN + NULLIF ( 55, - 0 ) DIV 8 + + AVG ( 9 ) END AS SIGNED )
----
-1963

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - 6 + - NULLIF ( - 11, 18 ) + - + 56 * 69 + 33 * - NULLIF ( - 57, + CAST ( 74 AS REAL ) + + 90 + ( + + 81 ) * - + 11 / 17 + + 80 ) + + CAST ( + CASE + COUNT ( * ) WHEN 96 THEN NULL WHEN COUNT ( * ) THEN + NULLIF ( 55, - 0 ) / 8 + + AVG ( 9 ) END AS INTEGER )
----
-1963

query I rowsort
SELECT 13 + - 90 AS col1
----
-77

query I rowsort
SELECT ALL - 15 + - 3 * - 36 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT 92 + - - COUNT( * ) - COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3615
SELECT 92 + - - COUNT ( * ) - COUNT ( * ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT + MAX( ALL 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3616
SELECT + MAX ( ALL 34 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL ( - 20 ) + MIN( ALL 88 ) * COUNT( * ) col0
----
68

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL ( - 20 ) + MIN ( ALL 88 ) * COUNT ( * ) col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT - MIN( DISTINCT - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-3618
SELECT - MIN ( DISTINCT - 73 )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT ALL + COUNT( * ) - + 98 AS col0, 54 + - + 67 AS col2
----
-97
-13

skipif mysql # not compatible
query II rowsort label-3619
SELECT ALL + COUNT ( * ) - + 98 AS col0, 54 + - + 67 AS col2
----
-97
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-3620
SELECT - - ( COUNT( * ) ) AS col2, 26 AS col1
----
1
26

skipif mysql # not compatible
query II rowsort label-3620
SELECT - - ( COUNT ( * ) ) AS col2, 26 AS col1
----
1
26

query I rowsort
SELECT + 11 + 43 AS col0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3622
SELECT + 16 DIV - - 61 + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3622
SELECT + 16 / - - 61 + 24 AS col2
----
24

query I rowsort
SELECT + 25 + - 17 * + 69
----
-1148

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3624
SELECT ALL COUNT( * ), - 62 DIV + 91 + + 15 AS col2
----
1
15

skipif mysql # not compatible
query II rowsort label-3624
SELECT ALL COUNT ( * ), - 62 / + 91 + + 15 AS col2
----
1
15

query I rowsort
SELECT ALL + 45 - + 12
----
33

query II rowsort
SELECT ALL 93 AS col1, 80 AS col0
----
93
80

query I rowsort
SELECT - NULLIF ( - - 89, - 19 ) + + + 65 * + - 58 + - 20
----
-3879

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT - 94 * - CASE - COUNT( * ) WHEN + - 99 + 52 THEN CAST( 69 AS SIGNED ) * - 62 - + 51 WHEN + COUNT( * ) THEN - + 77 WHEN - 37 * 41 * 77 * - + 1 + - AVG ( ALL + + 66 ) THEN + 51 * 30 ELSE NULL END * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT - 94 * - CASE - COUNT ( * ) WHEN + - 99 + 52 THEN CAST ( 69 AS INTEGER ) * - 62 - + 51 WHEN + COUNT ( * ) THEN - + 77 WHEN - 37 * 41 * 77 * - + 1 + - AVG ( ALL + + 66 ) THEN + 51 * 30 ELSE NULL END * + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT - COUNT( * ) + - + 93 * + - 99 * + 99 * - 93
----
-84768850

skipif mysql # not compatible
query I rowsort label-3629
SELECT - COUNT ( * ) + - + 93 * + - 99 * + 99 * - 93
----
-84768850

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT + 81 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT + 81 / 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT - 87 + - 48 DIV - ( + - 98 )
----
-87

skipif mysql # not compatible
query I rowsort label-3631
SELECT - 87 + - 48 / - ( + - 98 )
----
-87

query I rowsort
SELECT + 99 + + 44
----
143

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3633
SELECT + 30 / + - CAST( NULL AS DECIMAL ) + + 32 + 7 + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT + 30 / + - CAST ( NULL AS REAL ) + + 32 + 7 + + 55
----
NULL

query I rowsort
SELECT ALL 67 * - 3 + + - COALESCE ( + 71, 25 ) AS col0
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT - ( + 50 ) + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3635
SELECT - ( + 50 ) + COUNT ( * )
----
-49

query I rowsort
SELECT ALL + 65 * - + 75 * 19 AS col2
----
-92625

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT + ( - ( SUM( - ( - + ( - 24 ) ) ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-3637
SELECT + ( - ( SUM ( - ( - + ( - 24 ) ) ) ) )
----
24

query I rowsort
SELECT 37 * - - 56 + - 90 AS col2
----
1982

query I rowsort
SELECT + ( - ( + - ( + - 96 ) ) ) AS col0
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3640
SELECT - CAST( - + CAST( NULL AS DECIMAL ) AS DECIMAL ) / AVG ( DISTINCT - 35 ) + - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT - CAST ( - + CAST ( NULL AS REAL ) AS REAL ) / AVG ( DISTINCT - 35 ) + - - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL 4 * 44 + + - SUM( - - 51 )
----
125

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL 4 * 44 + + - SUM ( - - 51 )
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3642
SELECT COALESCE ( - + 19, 55 * - - 52 + 2 + - COALESCE ( + 59, 65 + - 81 ) * + 7 * CAST( 75 AS SIGNED ) + - + 44 * + - 41 + - + 11 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3642
SELECT COALESCE ( - + 19, 55 * - - 52 + 2 + - COALESCE ( + 59, 65 + - 81 ) * + 7 * CAST ( 75 AS INTEGER ) + - + 44 * + - 41 + - + 11 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT + - MIN( ALL - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-3643
SELECT + - MIN ( ALL - 66 )
----
66

query II rowsort
SELECT 4 AS col2, 59
----
4
59

query I rowsort
SELECT DISTINCT - 38 * - + 20 + + 18 + 54 AS col0
----
832

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT + + SUM( - ( + 97 ) ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-3646
SELECT + + SUM ( - ( + 97 ) ) col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT DISTINCT + SUM( - 87 ) * - - 30 + + 51 + + + 5 AS col2
----
-2554

skipif mysql # not compatible
query I rowsort label-3647
SELECT DISTINCT + SUM ( - 87 ) * - - 30 + + 51 + + + 5 AS col2
----
-2554

query II rowsort
SELECT + - 38 AS col2, + 20
----
-38
20

query II rowsort
SELECT 41, 46 col0
----
41
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT ALL - 30 * - - ( + + COALESCE ( + + MAX( DISTINCT + 30 ), - 77 ) ) - - 20 - - 45 * 7 - + - 66 * + - 58
----
-4393

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - 30 * - - ( + + COALESCE ( + + MAX ( DISTINCT + 30 ), - 77 ) ) - - 20 - - 45 * 7 - + - 66 * + - 58
----
-4393

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT ALL - - ( 90 ) DIV + + 11 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3651
SELECT ALL - - ( 90 ) / + + 11 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT + + 23 * - 69 + + - 37 + - COUNT( * ) + ( - 28 ) * - 27 AS col0
----
-869

skipif mysql # not compatible
query I rowsort label-3652
SELECT + + 23 * - 69 + + - 37 + - COUNT ( * ) + ( - 28 ) * - 27 AS col0
----
-869

query I rowsort
SELECT + ( + + 63 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3654
SELECT + 29 + + MAX( ALL 14 ) - + + 58 col2, - 46 AS col0
----
-15
-46

skipif mysql # not compatible
query II rowsort label-3654
SELECT + 29 + + MAX ( ALL 14 ) - + + 58 col2, - 46 AS col0
----
-15
-46

query I rowsort
SELECT - 86 - - ( + 51 ) * + 81 * 83 AS col1
----
342787

query I rowsort
SELECT DISTINCT + + 23 * + 65 * - 35 AS col1
----
-52325

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL + COUNT( * ) * + 38
----
38

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + COUNT ( * ) * + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT - COUNT( * ) * 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-3658
SELECT - COUNT ( * ) * 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3659
SELECT - NULLIF ( + CASE ( 92 ) WHEN - SUM( + 45 ) THEN NULL WHEN + + 19 - + 17 THEN - 37 END, 48 ) AS col2, + 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3659
SELECT - NULLIF ( + CASE ( 92 ) WHEN - SUM ( + 45 ) THEN NULL WHEN + + 19 - + 17 THEN - 37 END, 48 ) AS col2, + 3
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT + 75 * + SUM( DISTINCT + 13 )
----
975

skipif mysql # not compatible
query I rowsort label-3660
SELECT + 75 * + SUM ( DISTINCT + 13 )
----
975

query II rowsort
SELECT DISTINCT 5 + + 2 AS col0, - 76 col2
----
7
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT ALL 63 + + COUNT( * ) * CASE + 27 WHEN 22 THEN CASE - ( + CAST( NULL AS SIGNED ) ) WHEN - 92 * 78 THEN 54 + + 51 * + 54 ELSE 70 END * - CAST( - 4 AS SIGNED ) * - + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL 63 + + COUNT ( * ) * CASE + 27 WHEN 22 THEN CASE - ( + CAST ( NULL AS INTEGER ) ) WHEN - 92 * 78 THEN 54 + + 51 * + 54 ELSE 70 END * - CAST ( - 4 AS INTEGER ) * - + 86 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT + 28 DIV + - 43
----
0

skipif mysql # not compatible
query I rowsort label-3663
SELECT + 28 / + - 43
----
0

query I rowsort
SELECT + 45 * - - 33
----
1485

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT + 0 * + + 9 DIV + 17 + + 99
----
99

skipif mysql # not compatible
query I rowsort label-3665
SELECT + 0 * + + 9 / + 17 + + 99
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3666
SELECT ( + 92 ) DIV + CASE WHEN COUNT( * ) IS NULL THEN + + 69 ELSE + 49 END + - 51 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3666
SELECT ( + 92 ) / + CASE WHEN COUNT ( * ) IS NULL THEN + + 69 ELSE + 49 END + - 51 AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT - 98 / 4 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT - 98 / 4 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3668
SELECT ALL 31 DIV + 52 * COUNT( * ) + - 7 DIV - + COUNT( ALL 20 )
----
7

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL 31 / + 52 * COUNT ( * ) + - 7 / - + COUNT ( ALL 20 )
----
7

query II rowsort
SELECT + 9 * - - 64, NULLIF ( + 47, + ( - 70 ) ) - - 24 - + 20 AS col1
----
576
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3670
SELECT CAST( + - SUM( ALL + - 9 ) AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3670
SELECT CAST ( + - SUM ( ALL + - 9 ) AS INTEGER ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3671
SELECT ALL - + CAST( NULL AS SIGNED ) * - + COUNT( * ) / + + ( NULLIF ( 86, + 80 ) ) / + 76 / ( + 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL - + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) / + + ( NULLIF ( 86, + 80 ) ) / + 76 / ( + 70 ) AS col1
----
NULL

query I rowsort
SELECT + + 93 + - ( + - 5 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT ALL - CAST( NULL AS SIGNED ) / - ( CAST( NULL AS SIGNED ) ) + 43 / 28 + - + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL - CAST ( NULL AS INTEGER ) / - ( CAST ( NULL AS INTEGER ) ) + 43 / 28 + - + 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT - COUNT( * ) DIV - COUNT( * ) + - + 62
----
-61

skipif mysql # not compatible
query I rowsort label-3674
SELECT - COUNT ( * ) / - COUNT ( * ) + - + 62
----
-61

query I rowsort
SELECT DISTINCT + 74 * - 69 * 54 AS col2
----
-275724

query II rowsort
SELECT ALL - 63 * - 62 AS col0, 11 * + 99
----
3906
1089

query I rowsort
SELECT 99 + - 20 col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT - ( + 84 ) * - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-3678
SELECT - ( + 84 ) * - COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3679
SELECT - 18 + - 48, MIN( 65 ) AS col2
----
-66
65

skipif mysql # not compatible
query II rowsort label-3679
SELECT - 18 + - 48, MIN ( 65 ) AS col2
----
-66
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3680
SELECT ALL + CAST( COUNT( - 89 ) AS SIGNED ) - + 65 * + 57 col0
----
-3704

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL + CAST ( COUNT ( - 89 ) AS INTEGER ) - + 65 * + 57 col0
----
-3704

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT + 34 * - 32 * 59 + 69 + - - COUNT( + 25 ) AS col1
----
-64122

skipif mysql # not compatible
query I rowsort label-3681
SELECT + 34 * - 32 * 59 + 69 + - - COUNT ( + 25 ) AS col1
----
-64122

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT NULLIF ( + COALESCE ( - 2, + 7 ), 88 ) * + COUNT( * ) - - - 41 * + + 40
----
-1642

skipif mysql # not compatible
query I rowsort label-3682
SELECT NULLIF ( + COALESCE ( - 2, + 7 ), 88 ) * + COUNT ( * ) - - - 41 * + + 40
----
-1642

query I rowsort
SELECT ALL - + 10 AS col2
----
-10

query I rowsort
SELECT + - 9 col0
----
-9

query II rowsort
SELECT DISTINCT - 69 * + + 91 + 39 + - + COALESCE ( 71, 30 ) * - + 64 AS col0, 26 + + + COALESCE ( 3, + 4 ) - - 74 * 73
----
-1696
5431

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT CASE - 70 WHEN 6 + + NULLIF ( 4, + 68 ) THEN NULL WHEN 3 THEN - ( + + ( + + 96 ) ) * + SUM( DISTINCT - 29 ) / - MAX( DISTINCT - - 85 ) * + 5 WHEN + + 15 THEN - 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT CASE - 70 WHEN 6 + + NULLIF ( 4, + 68 ) THEN NULL WHEN 3 THEN - ( + + ( + + 96 ) ) * + SUM ( DISTINCT - 29 ) / - MAX ( DISTINCT - - 85 ) * + 5 WHEN + + 15 THEN - 86 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL - 30 * - 20 * + 96 + - CAST( 60 AS SIGNED )
----
57540

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - 30 * - 20 * + 96 + - CAST ( 60 AS INTEGER )
----
57540

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT 1 DIV - 87 * + 17 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3688
SELECT 1 / - 87 * + 17 AS col2
----
0

query I rowsort
SELECT 50 * + 19 * - ( + 66 ) AS col2
----
-62700

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3690
SELECT 60 + - MAX( 60 ) / CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT 60 + - MAX ( 60 ) / CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT 31 DIV + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3691
SELECT 31 / + 39 AS col2
----
0

query I rowsort
SELECT 66 * 10
----
660

query I rowsort
SELECT DISTINCT - 27 * + + 98
----
-2646

query II rowsort
SELECT 46 + - + 13 + + 51 * - ( 70 ), + 23 + 89 AS col2
----
-3537
112

query I rowsort
SELECT ALL 70 + + 2 AS col0
----
72

query I rowsort
SELECT 56 + NULLIF ( - 93, + 36 + 11 ) * + 95 AS col1
----
-8779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3697
SELECT ALL - CAST( NULL AS DECIMAL ) + + CASE - COUNT( * ) WHEN - - CAST( - COUNT( * ) AS SIGNED ) * 55 / - 47 THEN - 32 / 39 + - 95 + + COALESCE ( - COUNT( * ), COUNT( * ) * - 75 ) + ( - - 28 ) * 5 * - 72 / + 91 END + - 16 * ( 75 ) * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL - CAST ( NULL AS REAL ) + + CASE - COUNT ( * ) WHEN - - CAST ( - COUNT ( * ) AS INTEGER ) * 55 / - 47 THEN - 32 / 39 + - 95 + + COALESCE ( - COUNT ( * ), COUNT ( * ) * - 75 ) + ( - - 28 ) * 5 * - 72 / + 91 END + - 16 * ( 75 ) * 62
----
NULL

query I rowsort
SELECT ALL 64 + + 56
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT - 64 * COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT - 64 * COUNT ( * ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL + 10 + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL + 10 + COUNT ( * )
----
11

query I rowsort
SELECT 55 * + 90
----
4950

query I rowsort
SELECT 91 + + 35 + + + 99
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT COALESCE ( - 41, 42 * MIN( + - 43 ) ) + COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3703
SELECT COALESCE ( - 41, 42 * MIN ( + - 43 ) ) + COUNT ( * ) AS col1
----
-40

query I rowsort
SELECT 10 + + + NULLIF ( 3, + 6 ) * + 74 AS col0
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT 81 * + - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-3705
SELECT 81 * + - COUNT ( * )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT ALL - 20 * + COUNT( * ) * + 2 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - 20 * + COUNT ( * ) * + 2 AS col1
----
-40

query I rowsort
SELECT ALL 92 - + 51 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT 75 * - COUNT( ALL - 70 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-3708
SELECT 75 * - COUNT ( ALL - 70 ) AS col0
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3709
SELECT DISTINCT 31 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT 31 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 75 - 86 AS col0
----
-161

query I rowsort
SELECT + 41 * + 64 AS col2
----
2624

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + MIN( - 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3712
SELECT + MIN ( - 73 ) AS col2
----
-73

query I rowsort
SELECT + 15 * COALESCE ( - NULLIF ( + + 82, + 18 ), + 2 * + 52 ) * - + NULLIF ( + 80, - 65 ) + - 59 + 83
----
98424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3714
SELECT 24 * - 98 / - - CASE + 14 WHEN - 36 + + CASE ( 58 ) WHEN COUNT( * ) THEN NULL WHEN + 94 THEN + - COUNT( * ) ELSE - - 42 END * + + 23 - + + 84 THEN NULL WHEN + 98 THEN NULL WHEN - - CAST( + COUNT( * ) AS SIGNED ) - 8 THEN - ( + 72 ) + - NULLIF ( 51, 89 ) END * + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT 24 * - 98 / - - CASE + 14 WHEN - 36 + + CASE ( 58 ) WHEN COUNT ( * ) THEN NULL WHEN + 94 THEN + - COUNT ( * ) ELSE - - 42 END * + + 23 - + + 84 THEN NULL WHEN + 98 THEN NULL WHEN - - CAST ( + COUNT ( * ) AS INTEGER ) - 8 THEN - ( + 72 ) + - NULLIF ( 51, 89 ) END * + 61 AS col2
----
NULL

query II rowsort
SELECT ALL - 26, 71 AS col2
----
-26
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3716
SELECT ALL - COUNT( * ) col2, + 15 * - + 62 * + + 95 AS col1
----
-1
-88350

skipif mysql # not compatible
query II rowsort label-3716
SELECT ALL - COUNT ( * ) col2, + 15 * - + 62 * + + 95 AS col1
----
-1
-88350

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT 93 + + COALESCE ( + + ( + COUNT( * ) ), 68 )
----
94

skipif mysql # not compatible
query I rowsort label-3717
SELECT 93 + + COALESCE ( + + ( + COUNT ( * ) ), 68 )
----
94

query I rowsort
SELECT - 31 * 48
----
-1488

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT 91, - COUNT( * ) + + + COUNT( * ) * - - 40 + - 0 AS col1
----
91
39

skipif mysql # not compatible
query II rowsort label-3719
SELECT 91, - COUNT ( * ) + + + COUNT ( * ) * - - 40 + - 0 AS col1
----
91
39

onlyif mysql # DIV for integer division: 
query II rowsort label-3720
SELECT 76 DIV + CASE - - ( - 18 ) WHEN 41 - - + NULLIF ( + 59, + 39 + + 4 - - 46 * ( - - 39 ) ) THEN NULL WHEN - 3 THEN NULL ELSE 19 END AS col1, 72
----
4
72

skipif mysql # not compatible
query II rowsort label-3720
SELECT 76 / + CASE - - ( - 18 ) WHEN 41 - - + NULLIF ( + 59, + 39 + + 4 - - 46 * ( - - 39 ) ) THEN NULL WHEN - 3 THEN NULL ELSE 19 END AS col1, 72
----
4
72

query I rowsort
SELECT DISTINCT - 23 + + 23 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3722
SELECT DISTINCT 95 col1, 62 + + CAST( + COALESCE ( 63, 42 ) AS SIGNED ) * 73 * + ( + 77 )
----
95
354185

skipif mysql # not compatible
query II rowsort label-3722
SELECT DISTINCT 95 col1, 62 + + CAST ( + COALESCE ( 63, 42 ) AS INTEGER ) * 73 * + ( + 77 )
----
95
354185

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT DISTINCT + COUNT( + + 0 ) * - - 58 + ( + + 33 )
----
91

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT + COUNT ( + + 0 ) * - - 58 + ( + + 33 )
----
91

query I rowsort
SELECT 85 * 5
----
425

query I rowsort
SELECT DISTINCT + 6 + - + 3 - - + 52 AS col0
----
55

query I rowsort
SELECT 71 - + 95 - 38 + - + CASE + ( - - 65 ) WHEN - 44 THEN + 25 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 33 * + 5
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT 81 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT 81 / - 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT COUNT( * ) / - CASE - - 17 WHEN - 19 THEN + ( COUNT( * ) ) - SUM( DISTINCT - 1 ) / - 57 * - COALESCE ( - 12, + 76 * 20 * COUNT( * ) * ( + + 69 ) * 60 ) * + 44 * + 68 / - ( + 47 ) + 82 * 92 WHEN 68 * 10 THEN 55 + - 4 END * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT COUNT ( * ) / - CASE - - 17 WHEN - 19 THEN + ( COUNT ( * ) ) - SUM ( DISTINCT - 1 ) / - 57 * - COALESCE ( - 12, + 76 * 20 * COUNT ( * ) * ( + + 69 ) * 60 ) * + 44 * + 68 / - ( + 47 ) + 82 * 92 WHEN 68 * 10 THEN 55 + - 4 END * 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL COALESCE ( - - COUNT( * ), + + 93 + + + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL COALESCE ( - - COUNT ( * ), + + 93 + + + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT DISTINCT - 34 * - - COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT - 34 * - - COUNT ( * ) AS col2
----
-34

query II rowsort
SELECT DISTINCT 82 AS col2, + 47 AS col1
----
82
47

query II rowsort
SELECT DISTINCT + 18, - ( + 33 ) * 83 + - 40 AS col2
----
18
-2779

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3734
SELECT 41 DIV + 15 + 78 + + - COUNT( * ) * COUNT( * ) * MAX( DISTINCT + 50 ) + 1 DIV + - 12 AS col2, - 54 + + MAX( 77 ) * 96 AS col2
----
30
7338

skipif mysql # not compatible
query II rowsort label-3734
SELECT 41 / + 15 + 78 + + - COUNT ( * ) * COUNT ( * ) * MAX ( DISTINCT + 50 ) + 1 / + - 12 AS col2, - 54 + + MAX ( 77 ) * 96 AS col2
----
30
7338

query II rowsort
SELECT + 95 * 98, + 26 AS col0
----
9310
26

query I rowsort
SELECT - 39 + - ( - 25 ) + + - 19 AS col2
----
-33

query I rowsort
SELECT ALL + + 13 col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL SUM( 10 ) * 68 AS col1
----
680

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL SUM ( 10 ) * 68 AS col1
----
680

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT + 26, + ( - 39 ) * + - 6 + - - NULLIF ( + 21, - + 81 / - 56 ) + 89 * - COUNT( * ) col0
----
26
166

skipif mysql # not compatible
query II rowsort label-3739
SELECT + 26, + ( - 39 ) * + - 6 + - - NULLIF ( + 21, - + 81 / - 56 ) + 89 * - COUNT ( * ) col0
----
26
166

query II rowsort
SELECT DISTINCT + - 54 AS col1, 29 col1
----
-54
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT - + 97 DIV 44 + 97
----
95

skipif mysql # not compatible
query I rowsort label-3741
SELECT - + 97 / 44 + 97
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT + - 34 + CASE 78 WHEN + COUNT( * ) + - - COUNT( * ) - - 75 THEN NULL WHEN + CASE 0 WHEN - ( - 87 ) THEN NULL WHEN + 51 + + 72 + + + 67 * CAST( + - 13 AS SIGNED ) * + 10 THEN 41 END THEN + 61 * - COALESCE ( - - CAST( + 26 AS SIGNED ), - 91 ) + 1 ELSE 49 END * SUM( DISTINCT - 65 * + 82 + + 33 ) AS col0
----
-259587

skipif mysql # not compatible
query I rowsort label-3742
SELECT + - 34 + CASE 78 WHEN + COUNT ( * ) + - - COUNT ( * ) - - 75 THEN NULL WHEN + CASE 0 WHEN - ( - 87 ) THEN NULL WHEN + 51 + + 72 + + + 67 * CAST ( + - 13 AS INTEGER ) * + 10 THEN 41 END THEN + 61 * - COALESCE ( - - CAST ( + 26 AS INTEGER ), - 91 ) + 1 ELSE 49 END * SUM ( DISTINCT - 65 * + 82 + + 33 ) AS col0
----
-259587

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL + + MAX( ALL + 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL + + MAX ( ALL + 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT + COUNT( * ) * - 12 * - 68
----
816

skipif mysql # not compatible
query I rowsort label-3744
SELECT + COUNT ( * ) * - 12 * - 68
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + + 59 + + MIN( ALL + + 4 ) + CASE - + 36 WHEN 84 THEN - ( - 97 ) ELSE NULL END * + NULLIF ( + 76, 17 ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT + + 59 + + MIN ( ALL + + 4 ) + CASE - + 36 WHEN 84 THEN - ( - 97 ) ELSE NULL END * + NULLIF ( + 76, 17 ) * 98
----
NULL

query I rowsort
SELECT ALL + 37 * + 23 + - - 67
----
918

query I rowsort
SELECT + 69 + + 74 * - 63 AS col1
----
-4593

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT + 76 * - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-3748
SELECT + 76 * - COUNT ( * )
----
-76

query I rowsort
SELECT ALL 58 + 59 col0
----
117

query I rowsort
SELECT DISTINCT 52 + 35
----
87

query I rowsort
SELECT + 17 + - + 2 * + 69 * + 69
----
-9505

query II rowsort
SELECT - CASE - AVG ( + - 78 ) WHEN - 87 THEN NULL ELSE + 4 + - 52 END + - 90 AS col0, 96 + - 89
----
-42
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL 87 * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL 87 * + COUNT ( * )
----
87

query I rowsort
SELECT ALL 51 * + 56
----
2856

query I rowsort
SELECT + ( - 70 ) + - ( - 9 ) AS col1
----
-61

query I rowsort
SELECT ALL COALESCE ( - + 68, NULLIF ( - - 35, + 78 * + + 37 ) )
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-3757
SELECT - 15 * 8 AS col1, + MAX( - + 69 ) * COUNT( * ) * - + ( - COUNT( + 24 ) ) AS col2
----
-120
-69

skipif mysql # not compatible
query II rowsort label-3757
SELECT - 15 * 8 AS col1, + MAX ( - + 69 ) * COUNT ( * ) * - + ( - COUNT ( + 24 ) ) AS col2
----
-120
-69

query II rowsort
SELECT - 33 + + - 40 AS col2, - ( - 93 )
----
-73
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3759
SELECT DISTINCT MIN( - 42 ), ( 6 ) DIV - + NULLIF ( - + 29, NULLIF ( - - 22, - - 45 ) ) - + COUNT( * ) AS col0
----
-42
-1

skipif mysql # not compatible
query II rowsort label-3759
SELECT DISTINCT MIN ( - 42 ), ( 6 ) / - + NULLIF ( - + 29, NULLIF ( - - 22, - - 45 ) ) - + COUNT ( * ) AS col0
----
-42
-1

query I rowsort
SELECT - ( + ( - + 34 ) )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3761
SELECT ALL + + 19 * - CAST( NULL AS SIGNED ) + - 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL + + 19 * - CAST ( NULL AS INTEGER ) + - 77 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT - SUM( + 11 ) + - 37 + + + 73
----
25

skipif mysql # not compatible
query I rowsort label-3762
SELECT - SUM ( + 11 ) + - 37 + + + 73
----
25

query I rowsort
SELECT - - 95 * 51 - + 7
----
4838

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT - 84 + - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-3764
SELECT - 84 + - COUNT ( * )
----
-85

query I rowsort
SELECT ALL - 84 * + 70 + - 63 + 82 AS col2
----
-5861

query I rowsort
SELECT DISTINCT + + 44 * 77
----
3388

query I rowsort
SELECT ALL + - 27 * 35
----
-945

onlyif mysql # aggregate syntax: 
query II rowsort label-3768
SELECT + MAX( DISTINCT - 83 ) AS col2, 49 * - 65 AS col2
----
-83
-3185

skipif mysql # not compatible
query II rowsort label-3768
SELECT + MAX ( DISTINCT - 83 ) AS col2, 49 * - 65 AS col2
----
-83
-3185

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT ALL 18 DIV - 15 - - 7 + - 20 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL 18 / - 15 - - 7 + - 20 AS col0
----
-14

query I rowsort
SELECT - COALESCE ( - 23, 96 + + 74 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT MAX( + ( - 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-3771
SELECT MAX ( + ( - 41 ) )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3772
SELECT + CAST( NULL AS SIGNED ) * 83 AS col2, - MIN( ALL + - 94 ) * - 5 AS col0
----
NULL
-470

skipif mysql # not compatible
query II rowsort label-3772
SELECT + CAST ( NULL AS INTEGER ) * 83 AS col2, - MIN ( ALL + - 94 ) * - 5 AS col0
----
NULL
-470

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3773
SELECT ALL 39 * - 42 + 93 + 4 / - CASE 3 WHEN - 98 THEN + + 78 + 59 ELSE NULL END * CAST( NULL AS SIGNED ), + 87 * 35 * - 54 AS col2
----
NULL
-164430

skipif mysql # not compatible
query II rowsort label-3773
SELECT ALL 39 * - 42 + 93 + 4 / - CASE 3 WHEN - 98 THEN + + 78 + 59 ELSE NULL END * CAST ( NULL AS INTEGER ), + 87 * 35 * - 54 AS col2
----
NULL
-164430

query I rowsort
SELECT - 53 * 73 AS col1
----
-3869

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + COALESCE ( - ( + COUNT( ALL - 39 ) ), + - 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-3775
SELECT + COALESCE ( - ( + COUNT ( ALL - 39 ) ), + - 67 )
----
-1

query I rowsort
SELECT ALL 54 * 45 + + 56
----
2486

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT + ( - 66 ) * 34 * 95 + - COUNT( * ) AS col0
----
-213181

skipif mysql # not compatible
query I rowsort label-3777
SELECT + ( - 66 ) * 34 * 95 + - COUNT ( * ) AS col0
----
-213181

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT CASE ( 89 ) WHEN 72 * - NULLIF ( 34, NULLIF ( + 99, 7 * - 33 - - 90 ) ) + - - CASE WHEN NOT ( NULL ) IS NULL THEN + + 89 END + - + COUNT( * ) THEN - COALESCE ( + 68, + 19 ) + + ( 74 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT CASE ( 89 ) WHEN 72 * - NULLIF ( 34, NULLIF ( + 99, 7 * - 33 - - 90 ) ) + - - CASE WHEN NOT ( NULL ) IS NULL THEN + + 89 END + - + COUNT ( * ) THEN - COALESCE ( + 68, + 19 ) + + ( 74 ) END
----
NULL

query II rowsort
SELECT ALL + 20, 99 * + 92 + - 6 col0
----
20
9102

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT + COUNT( * ) + 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3780
SELECT + COUNT ( * ) + 80 AS col1
----
81

query I rowsort
SELECT - ( + 34 ) * 81 * - + 77 AS col0
----
212058

query I rowsort
SELECT + 99 + - 23
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3783
SELECT - CAST( - AVG ( - 39 ) AS SIGNED ) AS col0, - 36
----
-39
-36

skipif mysql # not compatible
query II rowsort label-3783
SELECT - CAST ( - AVG ( - 39 ) AS INTEGER ) AS col0, - 36
----
-39
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3784
SELECT CASE + CAST( COUNT( * ) AS SIGNED ) WHEN - + 80 + + COUNT( * ) THEN + ( + 11 ) ELSE 43 END AS col0
----
43

skipif mysql # not compatible
query I rowsort label-3784
SELECT CASE + CAST ( COUNT ( * ) AS INTEGER ) WHEN - + 80 + + COUNT ( * ) THEN + ( + 11 ) ELSE 43 END AS col0
----
43

query I rowsort
SELECT + 46 + + + 89 col1
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3786
SELECT - CAST( - + AVG ( - NULLIF ( - + ( - 53 ), - 55 ) ) AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-3786
SELECT - CAST ( - + AVG ( - NULLIF ( - + ( - 53 ), - 55 ) ) AS INTEGER )
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-3787
SELECT ALL 4 DIV + - 99 * + 51 AS col0, + 95 * - 59 * - 37 + - + 24 + 66 AS col1
----
0
207427

skipif mysql # not compatible
query II rowsort label-3787
SELECT ALL 4 / + - 99 * + 51 AS col0, + 95 * - 59 * - 37 + - + 24 + 66 AS col1
----
0
207427

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ( COUNT( - - 95 ) ) * - - 15
----
15

skipif mysql # not compatible
query I rowsort label-3788
SELECT ( COUNT ( - - 95 ) ) * - - 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL COUNT( DISTINCT 36 ) * 98 * + + 93 + ( - + 25 ) - - 45 + - + 96 * - - ( - - 90 ) AS col2
----
494

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL COUNT ( DISTINCT 36 ) * 98 * + + 93 + ( - + 25 ) - - 45 + - + 96 * - - ( - - 90 ) AS col2
----
494

onlyif mysql # aggregate syntax: 
query II rowsort label-3790
SELECT 29 - - - 67 * + + COUNT( * ) AS col0, + 89
----
-38
89

skipif mysql # not compatible
query II rowsort label-3790
SELECT 29 - - - 67 * + + COUNT ( * ) AS col0, + 89
----
-38
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT + 94 - + ( - - COUNT( * ) ) + + 49 * - + COUNT( DISTINCT - 27 ) col1
----
44

skipif mysql # not compatible
query I rowsort label-3791
SELECT + 94 - + ( - - COUNT ( * ) ) + + 49 * - + COUNT ( DISTINCT - 27 ) col1
----
44

query I rowsort
SELECT 53 - + 4
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT 86 + 89 + + + MIN( ALL - 81 )
----
94

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT 86 + 89 + + + MIN ( ALL - 81 )
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3794
SELECT ALL + COUNT( * ) + + 9 + + - 68, ( 27 ) AS col0
----
-58
27

skipif mysql # not compatible
query II rowsort label-3794
SELECT ALL + COUNT ( * ) + + 9 + + - 68, ( 27 ) AS col0
----
-58
27

query II rowsort
SELECT ALL 93, - 30 + 57 col2
----
93
27

query I rowsort
SELECT DISTINCT - 94 + + 66
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3797
SELECT 76 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
76
NULL

skipif mysql # not compatible
query II rowsort label-3797
SELECT 76 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
76
NULL

query I rowsort
SELECT ALL + + ( + - 39 ) + 47 + - ( - 95 )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT 22 - - 51 * NULLIF ( - COUNT( * ), + + 70 + - ( - 15 ) + + + 99 + + COUNT( * ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-3799
SELECT 22 - - 51 * NULLIF ( - COUNT ( * ), + + 70 + - ( - 15 ) + + + 99 + + COUNT ( * ) ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3800
SELECT ALL - 3 DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - 3 / + 55 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - 71 * + - 57 + + - MAX( ( - 6 ) ) AS col2
----
4053

skipif mysql # not compatible
query I rowsort label-3801
SELECT - 71 * + - 57 + + - MAX ( ( - 6 ) ) AS col2
----
4053

query II rowsort
SELECT 44 AS col2, + ( + 76 )
----
44
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3803
SELECT - - 15 DIV + 90 * + 49 * 57 * - + 68 + - + 64 * - ( + 9 ) * + 17 + + + NULLIF ( 35, - COUNT( * ) )
----
9827

skipif mysql # not compatible
query I rowsort label-3803
SELECT - - 15 / + 90 * + 49 * 57 * - + 68 + - + 64 * - ( + 9 ) * + 17 + + + NULLIF ( 35, - COUNT ( * ) )
----
9827

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL + COUNT( * ) + 95
----
96

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + COUNT ( * ) + 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT + NULLIF ( + 48, - COUNT( * ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3805
SELECT + NULLIF ( + 48, - COUNT ( * ) ) AS col1
----
48

query I rowsort
SELECT DISTINCT + - ( - + 58 ) + - ( 93 )
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3807
SELECT ALL - + MAX( ALL + - ( + 88 ) ) AS col2, + 17 AS col0
----
88
17

skipif mysql # not compatible
query II rowsort label-3807
SELECT ALL - + MAX ( ALL + - ( + 88 ) ) AS col2, + 17 AS col0
----
88
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3808
SELECT DISTINCT 16 * 48 * - CAST( - COUNT( * ) AS SIGNED ), + 25 AS col0
----
768
25

skipif mysql # not compatible
query II rowsort label-3808
SELECT DISTINCT 16 * 48 * - CAST ( - COUNT ( * ) AS INTEGER ), + 25 AS col0
----
768
25

query I rowsort
SELECT DISTINCT - + CASE - - 42 WHEN - 64 + ( + 31 ) THEN - 47 END
----
NULL

query I rowsort
SELECT ALL - + 7 - - 9
----
2

query I rowsort
SELECT DISTINCT + + 45 * 89 + 24
----
4029

query I rowsort
SELECT 49 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ALL - ( + - NULLIF ( - 25, + COUNT( * ) * - - NULLIF ( + SUM( DISTINCT - + 92 ), - 19 + MAX( DISTINCT + + 57 ) + - 57 / MAX( DISTINCT + - 3 ) ) * - 99 * ( - + 27 ) ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL - ( + - NULLIF ( - 25, + COUNT ( * ) * - - NULLIF ( + SUM ( DISTINCT - + 92 ), - 19 + MAX ( DISTINCT + + 57 ) + - 57 / MAX ( DISTINCT + - 3 ) ) * - 99 * ( - + 27 ) ) ) AS col0
----
-25

query I rowsort
SELECT - 24 * 51 + 60 * + 95
----
4476

query I rowsort
SELECT ALL + 92 - + + 27
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT 75 * + COUNT( * ) * + 46
----
3450

skipif mysql # not compatible
query I rowsort label-3816
SELECT 75 * + COUNT ( * ) * + 46
----
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT - CASE - 86 WHEN - 5 THEN 22 * 80 + + + MIN( DISTINCT - 1 ) - + 54 * - 76 + 35 * 42 * + 40 * - 63 + - 58 + 59 ELSE - 0 - CASE + 86 WHEN + 2 * - 30 * - + ( 42 ) THEN - 64 WHEN + ( 73 ) THEN 4 ELSE NULL END END * - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT - CASE - 86 WHEN - 5 THEN 22 * 80 + + + MIN ( DISTINCT - 1 ) - + 54 * - 76 + 35 * 42 * + 40 * - 63 + - 58 + 59 ELSE - 0 - CASE + 86 WHEN + 2 * - 30 * - + ( 42 ) THEN - 64 WHEN + ( 73 ) THEN 4 ELSE NULL END END * - 22 AS col0
----
NULL

query I rowsort
SELECT 0 * + 53 col0
----
0

query I rowsort
SELECT DISTINCT 51 * + 87
----
4437

query I rowsort
SELECT DISTINCT - 75 * + 92 AS col0
----
-6900

query I rowsort
SELECT 90 * - 33 AS col2
----
-2970

query I rowsort
SELECT 25 * 41
----
1025

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT 45 DIV + 25 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3823
SELECT 45 / + 25 AS col2
----
1

query I rowsort
SELECT + 92 + 95 col2
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT 67 + + MIN( 84 ) AS col2
----
151

skipif mysql # not compatible
query I rowsort label-3825
SELECT 67 + + MIN ( 84 ) AS col2
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT + 19 DIV - 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3826
SELECT + 19 / - 35 AS col1
----
0

query I rowsort
SELECT ALL 58 + + 81 + + + 56 AS col0
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-3828
SELECT COUNT( * ) + 90, 41 AS col0
----
91
41

skipif mysql # not compatible
query II rowsort label-3828
SELECT COUNT ( * ) + 90, 41 AS col0
----
91
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT DISTINCT 98 DIV - 82 + 89 * + 4
----
355

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT 98 / - 82 + 89 * + 4
----
355

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3830
SELECT ALL 2 + 71 - + - COUNT( * ) * + 3 + + 19, - COUNT( * ) * + ( - 58 ) - + 15 + + 58 DIV 38 + + + 32 - + + SUM( ALL 60 ) DIV + 83 + + MAX( ALL + - 46 ) + + 58 col0
----
95
88

skipif mysql # not compatible
query II rowsort label-3830
SELECT ALL 2 + 71 - + - COUNT ( * ) * + 3 + + 19, - COUNT ( * ) * + ( - 58 ) - + 15 + + 58 / 38 + + + 32 - + + SUM ( ALL 60 ) / + 83 + + MAX ( ALL + - 46 ) + + 58 col0
----
95
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT - COUNT( * ) + COALESCE ( + 70, + 29 ) AS col2, 46
----
69
46

skipif mysql # not compatible
query II rowsort label-3831
SELECT - COUNT ( * ) + COALESCE ( + 70, + 29 ) AS col2, 46
----
69
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT COALESCE ( + ( 67 ), + + 73, + - 35 * MIN( DISTINCT ( - + 15 ) ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3832
SELECT COALESCE ( + ( 67 ), + + 73, + - 35 * MIN ( DISTINCT ( - + 15 ) ) ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3833
SELECT ( + 56 ) AS col2, 67 * + + 91 * - COUNT( * )
----
56
-6097

skipif mysql # not compatible
query II rowsort label-3833
SELECT ( + 56 ) AS col2, 67 * + + 91 * - COUNT ( * )
----
56
-6097

onlyif mysql # DIV for integer division: 
query II rowsort label-3834
SELECT ALL + 41 + + - 58 AS col0, CASE - 89 WHEN - 41 * + - 42 THEN NULL WHEN + 55 THEN NULL ELSE + 2 DIV + - 88 END * - 35 AS col1
----
-17
0

skipif mysql # not compatible
query II rowsort label-3834
SELECT ALL + 41 + + - 58 AS col0, CASE - 89 WHEN - 41 * + - 42 THEN NULL WHEN + 55 THEN NULL ELSE + 2 / + - 88 END * - 35 AS col1
----
-17
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3835
SELECT + NULLIF ( + NULLIF ( + MAX( ALL 76 ), CASE WHEN 65 BETWEEN - ( 67 ) AND + 65 * MAX( - 59 ) + - 39 + CAST( + 60 AS SIGNED ) / + COUNT( * ) THEN + 91 * 67 * - CASE + + 3 WHEN + 88 - - - 62 - 54 THEN + 90 + 54 * - 59 WHEN 16 / + 57 + 40 THEN NULL WHEN 23 THEN NULL END END ), 54 * 89 + + 68 ) * ( 28 + + 52 ) AS col0
----
6080

skipif mysql # not compatible
query I rowsort label-3835
SELECT + NULLIF ( + NULLIF ( + MAX ( ALL 76 ), CASE WHEN 65 BETWEEN - ( 67 ) AND + 65 * MAX ( - 59 ) + - 39 + CAST ( + 60 AS INTEGER ) / + COUNT ( * ) THEN + 91 * 67 * - CASE + + 3 WHEN + 88 - - - 62 - 54 THEN + 90 + 54 * - 59 WHEN 16 / + 57 + 40 THEN NULL WHEN 23 THEN NULL END END ), 54 * 89 + + 68 ) * ( 28 + + 52 ) AS col0
----
6080

query I rowsort
SELECT + 82 + 5 * + 8
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-3837
SELECT DISTINCT - - NULLIF ( MAX( - - 27 ), - 38 ) AS col2, - 71 AS col2
----
27
-71

skipif mysql # not compatible
query II rowsort label-3837
SELECT DISTINCT - - NULLIF ( MAX ( - - 27 ), - 38 ) AS col2, - 71 AS col2
----
27
-71

query I rowsort
SELECT DISTINCT - + 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT - MAX( DISTINCT 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-3839
SELECT - MAX ( DISTINCT 33 )
----
-33

query I rowsort
SELECT 56 * 74
----
4144

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT COUNT( DISTINCT + ( - + ( + - 60 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3841
SELECT COUNT ( DISTINCT + ( - + ( + - 60 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT COUNT( DISTINCT 50 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3842
SELECT COUNT ( DISTINCT 50 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL - 60 * - + ( 84 ) * - - 33 * + COUNT( * ) + CASE - 50 WHEN - COUNT( * ) + - 31 THEN - 37 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - 60 * - + ( 84 ) * - - 33 * + COUNT ( * ) + CASE - 50 WHEN - COUNT ( * ) + - 31 THEN - 37 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3844
SELECT SUM( + 71 ) DIV 1 AS col1, 54 - + ( - ( - - 89 ) )
----
71
143

skipif mysql # not compatible
query II rowsort label-3844
SELECT SUM ( + 71 ) / 1 AS col1, 54 - + ( - ( - - 89 ) )
----
71
143

query I rowsort
SELECT 10 * + + 88
----
880

onlyif mysql # DIV for integer division: 
query I rowsort label-3846
SELECT DISTINCT 93 DIV - 90
----
-1

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT 93 / - 90
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT 0 DIV + 62 * + 83
----
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT 0 / + 62 * + 83
----
0

query I rowsort
SELECT ALL - 88 * - 77
----
6776

onlyif mysql # aggregate syntax: 
query II rowsort label-3849
SELECT ALL + COUNT( * ) AS col1, - 18 - - 15 * 0
----
1
-18

skipif mysql # not compatible
query II rowsort label-3849
SELECT ALL + COUNT ( * ) AS col1, - 18 - - 15 * 0
----
1
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3850
SELECT + CAST( NULL AS SIGNED ) * - ( - 69 ) + - SUM( ALL 65 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT + CAST ( NULL AS INTEGER ) * - ( - 69 ) + - SUM ( ALL 65 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3851
SELECT + 63 AS col1, - COUNT( * ) DIV - MAX( ALL + 14 ) + - 64
----
63
-64

skipif mysql # not compatible
query II rowsort label-3851
SELECT + 63 AS col1, - COUNT ( * ) / - MAX ( ALL + 14 ) + - 64
----
63
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT + 16 + + CASE COUNT( * ) WHEN - + 56 THEN - 84 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT + 16 + + CASE COUNT ( * ) WHEN - + 56 THEN - 84 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 86 * + + 8
----
-688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT ALL + SUM( ALL COALESCE ( - 59, - 54, + 20 ) ) + 40 - 65 DIV - MIN( DISTINCT - - 29 )
----
-17

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + SUM ( ALL COALESCE ( - 59, - 54, + 20 ) ) + 40 - 65 / - MIN ( DISTINCT - - 29 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT - 71 + - NULLIF ( 70, - CASE + 98 WHEN COUNT( * ) THEN - CASE - COUNT( * ) WHEN - - COUNT( * ) * ( + 37 ) THEN NULL ELSE - COUNT( * ) * SUM( - - 70 ) * - 44 * - SUM( DISTINCT 85 ) - - - AVG ( + + 98 ) - + 4 END / + - 25 WHEN - 66 THEN NULL END )
----
-141

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT - 71 + - NULLIF ( 70, - CASE + 98 WHEN COUNT ( * ) THEN - CASE - COUNT ( * ) WHEN - - COUNT ( * ) * ( + 37 ) THEN NULL ELSE - COUNT ( * ) * SUM ( - - 70 ) * - 44 * - SUM ( DISTINCT 85 ) - - - AVG ( + + 98 ) - + 4 END / + - 25 WHEN - 66 THEN NULL END )
----
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3856
SELECT - 33 + - MAX( ALL 26 ) DIV COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-3856
SELECT - 33 + - MAX ( ALL 26 ) / COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT ALL - COUNT( * ) * - 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL - COUNT ( * ) * - 9 AS col1
----
9

query I rowsort
SELECT ALL + + 20 + + - 69 AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3859
SELECT DISTINCT - 69 DIV - + 37 + + 96 * + + 98
----
9409

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT - 69 / - + 37 + + 96 * + + 98
----
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT + - 25 * + 20 - - + SUM( - CAST( + 60 AS SIGNED ) )
----
-560

skipif mysql # not compatible
query I rowsort label-3860
SELECT + - 25 * + 20 - - + SUM ( - CAST ( + 60 AS INTEGER ) )
----
-560

query I rowsort
SELECT DISTINCT - 3 * - - 35 + + 65
----
-40

query I rowsort
SELECT - + ( 95 ) AS col2
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3863
SELECT - 92 - 46 * - - CAST( NULL AS DECIMAL ), 54 AS col1
----
NULL
54

skipif mysql # not compatible
query II rowsort label-3863
SELECT - 92 - 46 * - - CAST ( NULL AS REAL ), 54 AS col1
----
NULL
54

query I rowsort
SELECT ALL + ( 75 ) - + + 74 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT COUNT( DISTINCT 10 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT COUNT ( DISTINCT 10 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3866
SELECT + - 23 * 53 * 23 AS col2, + 87 * + COUNT( * )
----
-28037
87

skipif mysql # not compatible
query II rowsort label-3866
SELECT + - 23 * 53 * 23 AS col2, + 87 * + COUNT ( * )
----
-28037
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3867
SELECT + 46 * - 81 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT + 46 * - 81 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3868
SELECT ALL 16 / - + NULLIF ( + CAST( NULL AS SIGNED ), COUNT( * ) ) + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL 16 / - + NULLIF ( + CAST ( NULL AS INTEGER ), COUNT ( * ) ) + - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT + + COUNT( * ) - 65 + + + 91 + + 21 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3869
SELECT + + COUNT ( * ) - 65 + + + 91 + + 21 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3870
SELECT + CAST( NULL AS DECIMAL ) / - - COUNT( * ) + + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT + CAST ( NULL AS REAL ) / - - COUNT ( * ) + + 3 AS col1
----
NULL

query I rowsort
SELECT + - 74 - + 49 AS col1
----
-123

query I rowsort
SELECT ALL - 68 * ( - + 23 ) AS col1
----
1564

query I rowsort
SELECT + - 63 * 8 col2
----
-504

query II rowsort
SELECT ( 66 ), + 28 + - 52 - + 84 AS col0
----
66
-108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3875
SELECT + 35 * COUNT( * ) DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-3875
SELECT + 35 * COUNT ( * ) / + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT + COUNT( * ) + - 36 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3876
SELECT + COUNT ( * ) + - 36 AS col1
----
-35

query I rowsort
SELECT ALL 52 * - 70
----
-3640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3878
SELECT + MAX( - 9 ) * ( COUNT( * ) ) DIV - 6 + - 1 - 64 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3878
SELECT + MAX ( - 9 ) * ( COUNT ( * ) ) / - 6 + - 1 - 64 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT 87 * + + MIN( 9 )
----
783

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT 87 * + + MIN ( 9 )
----
783

onlyif mysql # aggregate syntax: 
query II rowsort label-3880
SELECT ALL + 45, + MIN( 15 ) AS col1
----
45
15

skipif mysql # not compatible
query II rowsort label-3880
SELECT ALL + 45, + MIN ( 15 ) AS col1
----
45
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3881
SELECT 29 DIV - 86 * + + 41 + - + 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3881
SELECT 29 / - 86 * + + 41 + - + 28 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT CASE + 29 WHEN - + 75 + + COUNT( * ) THEN - + COUNT( * ) * - 25 * + 20 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT CASE + 29 WHEN - + 75 + + COUNT ( * ) THEN - + COUNT ( * ) * - 25 * + 20 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + ( + + COUNT( ALL - 54 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3883
SELECT + ( + + COUNT ( ALL - 54 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3884
SELECT - 86 DIV - 22 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3884
SELECT - 86 / - 22 AS col0
----
3

query I rowsort
SELECT 3 * - - 0 + 7
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT + ( + COUNT( * ) ) AS col2, - ( 30 )
----
1
-30

skipif mysql # not compatible
query II rowsort label-3886
SELECT + ( + COUNT ( * ) ) AS col2, - ( 30 )
----
1
-30

query I rowsort
SELECT NULLIF ( - 18, 98 * + 22 ) AS col1
----
-18

query I rowsort
SELECT ALL + 60 * + 79 + 57 AS col0
----
4797

query I rowsort
SELECT 21 * 3 * + 12 * + 28 + - + 34 AS col1
----
21134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3890
SELECT DISTINCT + CASE - 53 WHEN - + 11 * 5 THEN NULL WHEN - COUNT( * ) THEN 6 DIV - CAST( - 58 AS SIGNED ) * 90 + - 25 ELSE 95 END * 67 + - + 0 AS col1
----
6365

skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT + CASE - 53 WHEN - + 11 * 5 THEN NULL WHEN - COUNT ( * ) THEN 6 / - CAST ( - 58 AS INTEGER ) * 90 + - 25 ELSE 95 END * 67 + - + 0 AS col1
----
6365

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3891
SELECT ALL COUNT( * ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL COUNT ( * ) / 71
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3892
SELECT + 50 DIV - + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3892
SELECT + 50 / - + COUNT ( * ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT NULLIF ( + 6, - COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-3893
SELECT NULLIF ( + 6, - COUNT ( * ) )
----
6

query I rowsort
SELECT ALL 32 * + - 44
----
-1408

query I rowsort
SELECT ALL - ( ( 50 ) ) * + ( 10 ) + 21 - + 5 * - - 99 AS col2
----
-974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT - - 71 * + - CAST( NULL AS SIGNED ) + + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT - - 71 * + - CAST ( NULL AS INTEGER ) + + - 87
----
NULL

query I rowsort
SELECT ALL ( 49 ) AS col1
----
49

query I rowsort
SELECT - + 54 + 29 - - 83 AS col1
----
58

query I rowsort
SELECT DISTINCT - - 8 * - 37 + - - 38 + + 18
----
-240

query I rowsort
SELECT 79 * - 87 + - 83
----
-6956

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - - CASE - ( - 36 ) WHEN - 31 THEN NULL WHEN + + 6 THEN NULL WHEN + - ( 43 ) + + ( + SUM( ALL 47 ) ) THEN NULL ELSE ( 20 ) END
----
20

skipif mysql # not compatible
query I rowsort label-3901
SELECT - - CASE - ( - 36 ) WHEN - 31 THEN NULL WHEN + + 6 THEN NULL WHEN + - ( 43 ) + + ( + SUM ( ALL 47 ) ) THEN NULL ELSE ( 20 ) END
----
20

query I rowsort
SELECT - 76 + 81 * 74 AS col2
----
5918

query I rowsort
SELECT - 81 * 19 + - - 64 AS col0
----
-1475

query I rowsort
SELECT DISTINCT ( + 26 )
----
26

query III rowsort
SELECT ALL 57, 29 col2, - 59 AS col0
----
57
29
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3906
SELECT - CAST( NULL AS SIGNED ) + + ( 56 ) - ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3906
SELECT - CAST ( NULL AS INTEGER ) + + ( 56 ) - ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT ALL - COUNT( * ) - + 50 * 56
----
-2801

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL - COUNT ( * ) - + 50 * 56
----
-2801

query II rowsort
SELECT DISTINCT + 73 AS col1, - 65
----
73
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3909
SELECT - + 52 + - + 9 * + COUNT( * ) DIV + 38
----
-52

skipif mysql # not compatible
query I rowsort label-3909
SELECT - + 52 + - + 9 * + COUNT ( * ) / + 38
----
-52

query I rowsort
SELECT ALL - ( - + 75 ) AS col1
----
75

query I rowsort
SELECT DISTINCT + 30 * ( + 49 )
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT - - 19 * COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-3912
SELECT - - 19 * COUNT ( * )
----
19

query I rowsort
SELECT - + 8 * 84 AS col2
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT + CASE - - 28 WHEN 62 THEN 95 WHEN 95 THEN 63 + + MIN( ALL + 70 ) END + + 15 + + 6 + - 41 + 99 * 97 * 24 / 22 * - 13 / 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT + CASE - - 28 WHEN 62 THEN 95 WHEN 95 THEN 63 + + MIN ( ALL + 70 ) END + + 15 + + 6 + - 41 + 99 * 97 * 24 / 22 * - 13 / 79 AS col0
----
NULL

query I rowsort
SELECT ALL + - 88 * 44
----
-3872

query II rowsort
SELECT - + 71 AS col0, - 26 + - + 0 AS col0
----
-71
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT + 67 + + + SUM( DISTINCT 45 ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-3917
SELECT + 67 + + + SUM ( DISTINCT 45 ) AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT + MIN( + ( - - 47 ) )
----
47

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + MIN ( + ( - - 47 ) )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3919
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) col2, + 82 * - + 54 * 67 * - 77 AS col0
----
1
22844052

skipif mysql # not compatible
query II rowsort label-3919
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) col2, + 82 * - + 54 * 67 * - 77 AS col0
----
1
22844052

query I rowsort
SELECT ALL + 34 + - 87 * + 71 AS col1
----
-6143

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ALL - SUM( + 87 ) + - COUNT( 85 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - SUM ( + 87 ) + - COUNT ( 85 ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3922
SELECT CAST( NULL AS SIGNED ) / + CAST( - COUNT( * ) AS SIGNED ) - + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT CAST ( NULL AS INTEGER ) / + CAST ( - COUNT ( * ) AS INTEGER ) - + + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT COUNT( * ) * + 67
----
67

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT COUNT ( * ) * + 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT 92 + - SUM( ALL 80 ) * 71 - - 65 + 22 col1
----
-5501

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT 92 + - SUM ( ALL 80 ) * 71 - - 65 + 22 col1
----
-5501

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT COUNT( * ) - - 21 * 58
----
1219

skipif mysql # not compatible
query I rowsort label-3925
SELECT COUNT ( * ) - - 21 * 58
----
1219

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT ALL 27 + + 42 - - MIN( 65 ) col2
----
134

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL 27 + + 42 - - MIN ( 65 ) col2
----
134

query I rowsort
SELECT 35 * 41 - + - 60 + - - 12 * + + 95 AS col2
----
2635

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT DISTINCT MIN( 85 ) * 17 * + 53 * - CAST( + 9 AS SIGNED )
----
-689265

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT MIN ( 85 ) * 17 * + 53 * - CAST ( + 9 AS INTEGER )
----
-689265

onlyif mysql # aggregate syntax: 
query II rowsort label-3929
SELECT NULLIF ( - 72, - - ( MAX( - + 33 ) ) + - + 34 ) * - + COUNT( * ), + 59 AS col1
----
72
59

skipif mysql # not compatible
query II rowsort label-3929
SELECT NULLIF ( - 72, - - ( MAX ( - + 33 ) ) + - + 34 ) * - + COUNT ( * ), + 59 AS col1
----
72
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL - MAX( DISTINCT + - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL - MAX ( DISTINCT + - 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL 91 + 6 * + 9 + + + MAX( 64 ) * 94 + + - 87 AS col0
----
6074

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL 91 + 6 * + 9 + + + MAX ( 64 ) * 94 + + - 87 AS col0
----
6074

onlyif mysql # aggregate syntax: 
query II rowsort label-3932
SELECT 11 - 92 AS col0, - COUNT( * ) * + - 38 AS col2
----
-81
38

skipif mysql # not compatible
query II rowsort label-3932
SELECT 11 - 92 AS col0, - COUNT ( * ) * + - 38 AS col2
----
-81
38

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3933
SELECT 42 + CAST( NULL AS DECIMAL ) AS col0, + 38 AS col2
----
NULL
38

skipif mysql # not compatible
query II rowsort label-3933
SELECT 42 + CAST ( NULL AS REAL ) AS col0, + 38 AS col2
----
NULL
38

query I rowsort
SELECT + 61 * - 25 * - + 23 + + - ( - + 32 ) - + 70
----
35037

query II rowsort
SELECT ( + 30 ) AS col2, 38 AS col0
----
30
38

query I rowsort
SELECT 91 * + + 48 + - ( - 64 ) AS col1
----
4432

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL + 53 * COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL + 53 * COUNT ( * ) AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3938
SELECT DISTINCT MAX( DISTINCT - 94 ) DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT MAX ( DISTINCT - 94 ) / 95
----
0

query I rowsort
SELECT - 54 + - - 55
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3940
SELECT 39 * + + ( - ( + 67 ) ) / ( 76 ) + COUNT( * ) + 86 + COUNT( + + 60 ) * - 76 * + 44 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT 39 * + + ( - ( + 67 ) ) / ( 76 ) + COUNT ( * ) + 86 + COUNT ( + + 60 ) * - 76 * + 44 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3941
SELECT CASE - 89 WHEN - 41 + + CAST( - 15 AS SIGNED ) + - AVG ( + 92 ) + - - AVG ( 83 ) / - - 5 * 74 THEN - 94 + - - 13 ELSE NULL END - + - 11 / - 1
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT CASE - 89 WHEN - 41 + + CAST ( - 15 AS INTEGER ) + - AVG ( + 92 ) + - - AVG ( 83 ) / - - 5 * 74 THEN - 94 + - - 13 ELSE NULL END - + - 11 / - 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT ALL - 77 + - CAST( 24 AS SIGNED ) * - 61 + + 86
----
1473

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL - 77 + - CAST ( 24 AS INTEGER ) * - 61 + + 86
----
1473

query I rowsort
SELECT + 4 - + 95 * - COALESCE ( 64, + 91 + - - 78 ) + + 89 * 21 AS col0
----
7953

query II rowsort
SELECT - 34, + 47 AS col2
----
-34
47

query II rowsort
SELECT 32 AS col2, - 67 * + + 8 AS col1
----
32
-536

query I rowsort
SELECT 84 + + 74
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-3947
SELECT COUNT( * ) - + - 96 * 38 AS col1, - 17 * - 57 AS col0
----
3649
969

skipif mysql # not compatible
query II rowsort label-3947
SELECT COUNT ( * ) - + - 96 * 38 AS col1, - 17 * - 57 AS col0
----
3649
969

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3948
SELECT 93 + - COUNT( * ) + - 42 AS col1, COUNT( * ) DIV + + ( 7 ) * - SUM( DISTINCT + COALESCE ( - 6, + 3 + + 91 * + 75 ) ) + 99 AS col2
----
50
99

skipif mysql # not compatible
query II rowsort label-3948
SELECT 93 + - COUNT ( * ) + - 42 AS col1, COUNT ( * ) / + + ( 7 ) * - SUM ( DISTINCT + COALESCE ( - 6, + 3 + + 91 * + 75 ) ) + 99 AS col2
----
50
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL - COUNT( * ) + 40 + - COUNT( * ) + - - SUM( - 61 ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL - COUNT ( * ) + 40 + - COUNT ( * ) + - - SUM ( - 61 ) col0
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3950
SELECT 66 / + 85 * - 4 * + - NULLIF ( - - CAST( NULL AS DECIMAL ), + + 38 ) + - + 23 * + - 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT 66 / + 85 * - 4 * + - NULLIF ( - - CAST ( NULL AS REAL ), + + 38 ) + - + 23 * + - 53 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL - COUNT( * ) * + + 89 * - - ( 85 ) * - COALESCE ( - 21, 20, + 90 + + 19 + + ( - + 18 ) ) AS col2
----
-158865

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - COUNT ( * ) * + + 89 * - - ( 85 ) * - COALESCE ( - 21, 20, + 90 + + 19 + + ( - + 18 ) ) AS col2
----
-158865

query I rowsort
SELECT ALL + 39 + + 3 * 53 AS col2
----
198

query I rowsort
SELECT 19 + - - 59 AS col1
----
78

query I rowsort
SELECT ALL + 66 + - - 83 - - - 54 AS col0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3955
SELECT ALL 21 DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL 21 / + - 65
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3956
SELECT - ( - COUNT( * ) ) DIV - 60 + - + SUM( ALL - + 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3956
SELECT - ( - COUNT ( * ) ) / - 60 + - + SUM ( ALL - + 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT DISTINCT - MIN( + 73 ) - + + 37 + 2 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT - MIN ( + 73 ) - + + 37 + 2 AS col1
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT 18 DIV - - 65
----
0

skipif mysql # not compatible
query I rowsort label-3958
SELECT 18 / - - 65
----
0

query I rowsort
SELECT 54 + - 66 - - 98
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3960
SELECT ALL - CAST( 41 AS SIGNED ) * + COUNT( * ) * 40 + - 48 col1
----
-1688

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - CAST ( 41 AS INTEGER ) * + COUNT ( * ) * 40 + - 48 col1
----
-1688

query I rowsort
SELECT 25 * - CASE + 42 WHEN AVG ( - 8 ) THEN NULL WHEN + - 1 THEN + 69 END
----
NULL

query II rowsort
SELECT + 77, 21 AS col2
----
77
21

query I rowsort
SELECT CASE - 63 WHEN - 87 * - 18 + - - 91 THEN - 98 WHEN - - 30 + + 8 THEN NULL ELSE - 50 END + - 59 AS col1
----
-109

query I rowsort
SELECT + 36 * - 47 * - 84 + + 6 + 15
----
142149

query II rowsort
SELECT + 68 AS col2, + 27
----
68
27

query II rowsort
SELECT ALL + 57 * - + ( + 41 ) * 52, + 43 AS col2
----
-121524
43

query I rowsort
SELECT DISTINCT - + 20 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT - + SUM( - ( + + 95 ) )
----
95

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT - + SUM ( - ( + + 95 ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT 41 * + MIN( ALL 91 ) + + 95 - + 37
----
3789

skipif mysql # not compatible
query I rowsort label-3969
SELECT 41 * + MIN ( ALL 91 ) + + 95 - + 37
----
3789

query I rowsort
SELECT - 8 + - + 46
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT + SUM( DISTINCT 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3971
SELECT + SUM ( DISTINCT 13 ) AS col2
----
13

query I rowsort
SELECT + 17 * - ( CASE + 36 WHEN 97 * - ( + + 15 ) THEN + 36 ELSE NULL END ) + - NULLIF ( - ( - - 32 ), + 22 + + 28 - - 12 * + 51 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT 8 DIV + + 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3973
SELECT 8 / + + 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT + 35 * - + CASE + 53 WHEN 93 THEN NULL ELSE + - COUNT( * ) END
----
35

skipif mysql # not compatible
query I rowsort label-3974
SELECT + 35 * - + CASE + 53 WHEN 93 THEN NULL ELSE + - COUNT ( * ) END
----
35

query I rowsort
SELECT ALL - 81 + 92
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT DISTINCT 67 + COUNT( * ) DIV + 15 + - 1 col2
----
66

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT 67 + COUNT ( * ) / + 15 + - 1 col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3977
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, + 41 AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-3977
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + 41 AS col2
----
NULL
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT + CAST( NULL AS SIGNED ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT + CAST ( NULL AS INTEGER ) * 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL COUNT( * ) + + 50 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL COUNT ( * ) + + 50 AS col0
----
51

query I rowsort
SELECT DISTINCT 64 + 44
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT DISTINCT COUNT( * ) * + NULLIF ( - + 86, - 42 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT COUNT ( * ) * + NULLIF ( - + 86, - 42 ) AS col2
----
-86

query I rowsort
SELECT - 93 + + + 78 AS col1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT DISTINCT 17 + 22 DIV - + NULLIF ( - 60, + 63 ) * + + 59
----
17

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT 17 + 22 / - + NULLIF ( - 60, + 63 ) * + + 59
----
17

query I rowsort
SELECT - NULLIF ( - 49, - - 0 + - ( - 52 ) * - ( 91 ) )
----
49

query II rowsort
SELECT - 46 + - + 27 AS col0, 60
----
-73
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT ALL - SUM( DISTINCT - 89 ) + + 86
----
175

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL - SUM ( DISTINCT - 89 ) + + 86
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3987
SELECT - 34 * + - COALESCE ( 97, - 21 - - COUNT( * ) DIV + 44 ) AS col1
----
3298

skipif mysql # not compatible
query I rowsort label-3987
SELECT - 34 * + - COALESCE ( 97, - 21 - - COUNT ( * ) / + 44 ) AS col1
----
3298

query I rowsort
SELECT ( - + 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT ALL - 18 * - - 66 - CASE 48 WHEN - 5 THEN + 76 + + 39 WHEN 83 + MIN( ALL 20 ) THEN NULL ELSE - NULLIF ( 91, CASE 21 WHEN - - AVG ( DISTINCT 74 ) THEN 67 + + + 87 ELSE + 32 + + 22 / - ( + SUM( + 91 ) ) + 7 END ) * - 60 + 79 * + - 50 END + 0 AS col2
----
-2698

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - 18 * - - 66 - CASE 48 WHEN - 5 THEN + 76 + + 39 WHEN 83 + MIN ( ALL 20 ) THEN NULL ELSE - NULLIF ( 91, CASE 21 WHEN - - AVG ( DISTINCT 74 ) THEN 67 + + + 87 ELSE + 32 + + 22 / - ( + SUM ( + 91 ) ) + 7 END ) * - 60 + 79 * + - 50 END + 0 AS col2
----
-2698

query II rowsort
SELECT ALL - 99 * - - 70, 92 + 21 AS col1
----
-6930
113

onlyif mysql # aggregate syntax: 
query II rowsort label-3991
SELECT + ( COUNT( * ) ) AS col0, - 3
----
1
-3

skipif mysql # not compatible
query II rowsort label-3991
SELECT + ( COUNT ( * ) ) AS col0, - 3
----
1
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3992
SELECT - 34 DIV 69 DIV 69 * + 23 - - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3992
SELECT - 34 / 69 / 69 * + 23 - - + COUNT ( * )
----
1

query I rowsort
SELECT NULLIF ( - 43, + 51 * 69 ) AS col2
----
-43

query I rowsort
SELECT - 68 * + 50
----
-3400

query I rowsort
SELECT COALESCE ( 27, + 41 ) AS col0
----
27

query I rowsort
SELECT ALL + ( + + 79 )
----
79

query II rowsort
SELECT - 77 * - - 35 + - - 81 - - - 30 col1, - 87
----
-2644
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3998
SELECT ALL + CAST( - 69 AS SIGNED ) AS col1, 72
----
-69
72

skipif mysql # not compatible
query II rowsort label-3998
SELECT ALL + CAST ( - 69 AS INTEGER ) AS col1, 72
----
-69
72

query I rowsort
SELECT DISTINCT - + 7 * - 31 * 79 * 4
----
68572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4000
SELECT COUNT( * ) * + 26 * - 70 - + COUNT( * ) DIV - MIN( DISTINCT - - 67 ) AS col1
----
-1820

skipif mysql # not compatible
query I rowsort label-4000
SELECT COUNT ( * ) * + 26 * - 70 - + COUNT ( * ) / - MIN ( DISTINCT - - 67 ) AS col1
----
-1820

query I rowsort
SELECT - + 73 - + 62 + 17 * - 38 * 14
----
-9179

query I rowsort
SELECT 87 * - 93 + + 6 AS col2
----
-8085

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4003
SELECT ALL - - MAX( ALL - + CAST( NULL AS DECIMAL ) ) / - 41 / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT ALL - - MAX ( ALL - + CAST ( NULL AS REAL ) ) / - 41 / COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + + 65 + 77 col0
----
142

query I rowsort
SELECT - - 96 * + CASE - + 45 WHEN - 85 / 52 THEN + + 87 END
----
NULL

query II rowsort
SELECT ALL + 46 * + 50 + + 88 * + 32 AS col0, 3
----
5116
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT ALL + 10 * - + 67 * + 30 + 36 DIV + 29
----
-20099

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + 10 * - + 67 * + 30 + 36 / + 29
----
-20099

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT - SUM( DISTINCT - 4 ) * 40 * + 99 + COUNT( - 8 )
----
15841

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT - SUM ( DISTINCT - 4 ) * 40 * + 99 + COUNT ( - 8 )
----
15841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4009
SELECT + + 46 * - 40 + COALESCE ( 57, + 85 * + CAST( NULL AS SIGNED ) * + + 16 - 56 ) + - 3 * + + COUNT( * )
----
-1786

skipif mysql # not compatible
query I rowsort label-4009
SELECT + + 46 * - 40 + COALESCE ( 57, + 85 * + CAST ( NULL AS INTEGER ) * + + 16 - 56 ) + - 3 * + + COUNT ( * )
----
-1786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4010
SELECT ALL - MAX( ALL - 44 ) + - CAST( + 70 AS SIGNED ) * 3 DIV - + 77 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL - MAX ( ALL - 44 ) + - CAST ( + 70 AS INTEGER ) * 3 / - + 77 AS col2
----
46

query I rowsort
SELECT DISTINCT + NULLIF ( - 75, - 99 ) AS col2
----
-75

query I rowsort
SELECT - ( + - ( 65 ) ) + + 84 col1
----
149

query I rowsort
SELECT + 52 * 25
----
1300

query II rowsort
SELECT ALL 31 AS col1, NULLIF ( - - ( + 47 ), 66 )
----
31
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4015
SELECT DISTINCT 83 AS col0, - COUNT( * ) + + - 29 col0
----
83
-30

skipif mysql # not compatible
query II rowsort label-4015
SELECT DISTINCT 83 AS col0, - COUNT ( * ) + + - 29 col0
----
83
-30

query I rowsort
SELECT ALL 76 + 0 col2
----
76

query I rowsort
SELECT + 82 - - 20 + - 33 AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT - CAST( - 90 AS SIGNED ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-4018
SELECT - CAST ( - 90 AS INTEGER ) AS col0
----
90

query I rowsort
SELECT + 58 - - + 12 AS col0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT ALL CAST( - 73 AS SIGNED ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL CAST ( - 73 AS INTEGER ) AS col0
----
-73

query II rowsort
SELECT DISTINCT 92 AS col1, 14 + - 28 AS col2
----
92
-14

query I rowsort
SELECT + 34 + + 65 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL COUNT( * ) * - 11 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL COUNT ( * ) * - 11 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL COUNT( - 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL COUNT ( - 47 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + COUNT( * ) + + + 61
----
62

skipif mysql # not compatible
query I rowsort label-4025
SELECT + COUNT ( * ) + + + 61
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT COUNT( + 11 ) * 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT COUNT ( + 11 ) * 87 AS col0
----
87

query I rowsort
SELECT + 86 * 75 col1
----
6450

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL CASE - + 56 WHEN MAX( + 16 ) THEN + 67 * - 90 * + - 39 + - + 91 - + - AVG ( + - 22 ) * ( + - COUNT( * ) ) + 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL CASE - + 56 WHEN MAX ( + 16 ) THEN + 67 * - 90 * + - 39 + - + 91 - + - AVG ( + - 22 ) * ( + - COUNT ( * ) ) + 78 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ALL COALESCE ( + 14, ( 83 ) - - - 37 ) * + COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL COALESCE ( + 14, ( 83 ) - - - 37 ) * + COUNT ( * ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT + 74 + - 68 * - + COUNT( * ) * + COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-4030
SELECT + 74 + - 68 * - + COUNT ( * ) * + COUNT ( * )
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT - 80 - - COUNT( * ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-4031
SELECT - 80 - - COUNT ( * ) col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT DISTINCT COUNT( + 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT COUNT ( + 31 ) AS col2
----
1

query I rowsort
SELECT + 50 + 2 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL + SUM( - ( - + 67 ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL + SUM ( - ( - + 67 ) ) AS col1
----
67

query I rowsort
SELECT + ( + 78 ) AS col0
----
78

query I rowsort
SELECT 40 / 32 + + - 86 - ( CASE - ( - ( 89 ) ) WHEN + 33 * + ( - + 11 ) * - - 15 THEN 29 WHEN + 17 THEN - ( - 2 ) END ) col1
----
NULL

query I rowsort
SELECT ALL 50 * - 31 * ( + 77 )
----
-119350

query II rowsort
SELECT DISTINCT + 86 col1, 60
----
86
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT - COUNT( * ) * + + 34
----
-34

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - COUNT ( * ) * + + 34
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4040
SELECT + - 0 + + COALESCE ( - COUNT( * ), - 92 ) - + 12 AS col2, + 20 * + + 99
----
-13
1980

skipif mysql # not compatible
query II rowsort label-4040
SELECT + - 0 + + COALESCE ( - COUNT ( * ), - 92 ) - + 12 AS col2, + 20 * + + 99
----
-13
1980

onlyif mysql # aggregate syntax: 
query II rowsort label-4041
SELECT + - 41 * + + COUNT( ALL - 55 ), + 91 + 32 AS col2
----
-41
123

skipif mysql # not compatible
query II rowsort label-4041
SELECT + - 41 * + + COUNT ( ALL - 55 ), + 91 + 32 AS col2
----
-41
123

query I rowsort
SELECT - + 36 + + + 59
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4043
SELECT + + 25 DIV 9 * + ( - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-4043
SELECT + + 25 / 9 * + ( - COUNT ( * ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL COUNT( * ) * + + 34 * - 14
----
-476

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL COUNT ( * ) * + + 34 * - 14
----
-476

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4045
SELECT ALL + MIN( - 14 ) * + 58 * + COUNT( * ) - + - COUNT( 80 ) DIV + 28 + - + 46 AS col2, 42 DIV COALESCE ( - 86, 78 * + + 46 * + 48 * - 44 ) * + 42 + - - 32 - - 44 + + 37 + + + COUNT( * ) * - + 45 - - 74
----
-858
142

skipif mysql # not compatible
query II rowsort label-4045
SELECT ALL + MIN ( - 14 ) * + 58 * + COUNT ( * ) - + - COUNT ( 80 ) / + 28 + - + 46 AS col2, 42 / COALESCE ( - 86, 78 * + + 46 * + 48 * - 44 ) * + 42 + - - 32 - - 44 + + 37 + + + COUNT ( * ) * - + 45 - - 74
----
-858
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4046
SELECT + COUNT( * ) * 48 + + COUNT( * ) * - NULLIF ( - - COUNT( * ), CAST( NULL AS SIGNED ) ) * - 73 * NULLIF ( CAST( NULL AS SIGNED ), 91 * 67 ) + + COUNT( * ) * + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT + COUNT ( * ) * 48 + + COUNT ( * ) * - NULLIF ( - - COUNT ( * ), CAST ( NULL AS INTEGER ) ) * - 73 * NULLIF ( CAST ( NULL AS INTEGER ), 91 * 67 ) + + COUNT ( * ) * + + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT + 53 + 83 + COUNT( * )
----
137

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT + 53 + 83 + COUNT ( * )
----
137

query II rowsort
SELECT ALL - 25, + 97 AS col0
----
-25
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4049
SELECT SUM( DISTINCT + + 26 ) + - + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-4049
SELECT SUM ( DISTINCT + + 26 ) + - + COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL - - COUNT( * ) + - 70
----
-69

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - - COUNT ( * ) + - 70
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT - + 41 + SUM( - - 90 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - + 41 + SUM ( - - 90 ) AS col0
----
49

query I rowsort
SELECT DISTINCT - - 49 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4053
SELECT ALL - 98 + + + 7 + COUNT( * ) * - ( + COUNT( * ) ) * + 83 AS col1, CAST( 16 AS SIGNED )
----
-174
16

skipif mysql # not compatible
query II rowsort label-4053
SELECT ALL - 98 + + + 7 + COUNT ( * ) * - ( + COUNT ( * ) ) * + 83 AS col1, CAST ( 16 AS INTEGER )
----
-174
16

query II rowsort
SELECT ALL - COALESCE ( + 71, - 63 ) AS col2, + 23 AS col0
----
-71
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT 7 * + COUNT( * ) + + 90 * COUNT( * ) * + 70 + + 30
----
6337

skipif mysql # not compatible
query I rowsort label-4055
SELECT 7 * + COUNT ( * ) + + 90 * COUNT ( * ) * + 70 + + 30
----
6337

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4056
SELECT 38 + 14 - + CASE + CAST( + 63 AS DECIMAL ) WHEN 5 * + + MIN( 51 ) * + 98 + + - 92 + 7 + + - MIN( DISTINCT + 32 ) THEN NULL ELSE 29 END * + 19
----
-499

skipif mysql # not compatible
query I rowsort label-4056
SELECT 38 + 14 - + CASE + CAST ( + 63 AS REAL ) WHEN 5 * + + MIN ( 51 ) * + 98 + + - 92 + 7 + + - MIN ( DISTINCT + 32 ) THEN NULL ELSE 29 END * + 19
----
-499

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT 9 + + COUNT( * ) + + + 55 * + 71 + - COUNT( DISTINCT + + ( + NULLIF ( - 91, + 70 ) ) ) - + 35 - - 79 * - + 11
----
3010

skipif mysql # not compatible
query I rowsort label-4057
SELECT 9 + + COUNT ( * ) + + + 55 * + 71 + - COUNT ( DISTINCT + + ( + NULLIF ( - 91, + 70 ) ) ) - + 35 - - 79 * - + 11
----
3010

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4058
SELECT ALL 87 AS col1, + 29 * 27 * - ( + + CAST( NULL AS SIGNED ) ) / + 90 + 60
----
87
NULL

skipif mysql # not compatible
query II rowsort label-4058
SELECT ALL 87 AS col1, + 29 * 27 * - ( + + CAST ( NULL AS INTEGER ) ) / + 90 + 60
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT COUNT( * ) + + CASE 21 WHEN - 12 THEN NULL WHEN - 1 THEN 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT COUNT ( * ) + + CASE 21 WHEN - 12 THEN NULL WHEN - 1 THEN 54 END
----
NULL

query I rowsort
SELECT ALL + 71 - + 36 + 73 * - - 16 - + - 24
----
1227

query II rowsort
SELECT ALL - 7 * - 6, + 19 AS col2
----
42
19

query I rowsort
SELECT ALL COALESCE ( + 67, - 6 - - 81 + + 96 + - 83, 34 ) - + 28 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT 35 * - MAX( 63 ) * - - 82 AS col0
----
-180810

skipif mysql # not compatible
query I rowsort label-4063
SELECT 35 * - MAX ( 63 ) * - - 82 AS col0
----
-180810

query II rowsort
SELECT ALL 52 col2, - 79 AS col0
----
52
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT COUNT( - + 54 ) + - - 79 + - 69 * 6 + - + 19 * - MIN( - 24 ) AS col1
----
-790

skipif mysql # not compatible
query I rowsort label-4065
SELECT COUNT ( - + 54 ) + - - 79 + - 69 * 6 + - + 19 * - MIN ( - 24 ) AS col1
----
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT 25 * - - 28 * + COUNT( * )
----
700

skipif mysql # not compatible
query I rowsort label-4066
SELECT 25 * - - 28 * + COUNT ( * )
----
700

query II rowsort
SELECT DISTINCT 58 AS col1, CASE WHEN NOT 87 IS NULL THEN ( + + 78 ) * - 71 END + - + 28 AS col0
----
58
-5566

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT COUNT( * ) * + 79
----
79

skipif mysql # not compatible
query I rowsort label-4068
SELECT COUNT ( * ) * + 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT CASE 81 WHEN COUNT( * ) THEN - CASE - ( + - COALESCE ( + MIN( DISTINCT - ( - + ( + 58 ) ) ), + 43 - - - 15 - SUM( DISTINCT + ( - 75 ) ) ) ) WHEN + 12 * + + COUNT( * ) THEN + 1 * - ( COUNT( * ) ) ELSE NULL END WHEN - 73 THEN NULL END * + 21 * + NULLIF ( - + 6, - 12 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT CASE 81 WHEN COUNT ( * ) THEN - CASE - ( + - COALESCE ( + MIN ( DISTINCT - ( - + ( + 58 ) ) ), + 43 - - - 15 - SUM ( DISTINCT + ( - 75 ) ) ) ) WHEN + 12 * + + COUNT ( * ) THEN + 1 * - ( COUNT ( * ) ) ELSE NULL END WHEN - 73 THEN NULL END * + 21 * + NULLIF ( - + 6, - 12 ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 16, + 84 AS col1
----
16
84

query I rowsort
SELECT ALL 56 * + 46
----
2576

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT - 22 AS col2, - 25 * + 90 * - MIN( DISTINCT - 90 ) - - + 85
----
-22
-202415

skipif mysql # not compatible
query II rowsort label-4072
SELECT - 22 AS col2, - 25 * + 90 * - MIN ( DISTINCT - 90 ) - - + 85
----
-22
-202415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT ALL CAST( NULL AS SIGNED ) / - ( AVG ( + + 37 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL CAST ( NULL AS INTEGER ) / - ( AVG ( + + 37 ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 9 * 27 AS col2
----
243

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4075
SELECT - ( - 9 ) AS col0, - 91 DIV - COUNT( * ) col2
----
9
91

skipif mysql # not compatible
query II rowsort label-4075
SELECT - ( - 9 ) AS col0, - 91 / - COUNT ( * ) col2
----
9
91

query I rowsort
SELECT ALL 8 * - 55 AS col0
----
-440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4077
SELECT ALL NULLIF ( + 69, - 32 ) * 25 - ( - COUNT( * ) ) + + CAST( NULL AS SIGNED ) * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL NULLIF ( + 69, - 32 ) * 25 - ( - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * 94
----
NULL

query I rowsort
SELECT 81 * + - 2 col2
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL COALESCE ( - CAST( NULLIF ( - 62, + - 85 ) AS SIGNED ), - + 16, + 60 ) + - CAST( + - CASE + - 82 WHEN - 23 / 94 + + 89 THEN + + 91 ELSE + + 26 * COUNT( * ) END AS SIGNED ) * - - 82 col1
----
2194

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL COALESCE ( - CAST ( NULLIF ( - 62, + - 85 ) AS INTEGER ), - + 16, + 60 ) + - CAST ( + - CASE + - 82 WHEN - 23 / 94 + + 89 THEN + + 91 ELSE + + 26 * COUNT ( * ) END AS INTEGER ) * - - 82 col1
----
2194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4080
SELECT DISTINCT - + CAST( + AVG ( + 45 ) AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT - + CAST ( + AVG ( + 45 ) AS INTEGER )
----
-45

query I rowsort
SELECT + - 45 * + 11 - - 21 + 59 * - - 45 + + - 24 AS col0
----
2157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4082
SELECT + 43 * + CAST( + 95 AS SIGNED ) - 90 col2
----
3995

skipif mysql # not compatible
query I rowsort label-4082
SELECT + 43 * + CAST ( + 95 AS INTEGER ) - 90 col2
----
3995

query II rowsort
SELECT DISTINCT + 2 + + 2, 98 AS col1
----
4
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + - COUNT( * ) * - - 54 + + 24 + 28 + + 7 * + 21 * + 57 * + - 38 AS col0
----
-318404

skipif mysql # not compatible
query I rowsort label-4084
SELECT + - COUNT ( * ) * - - 54 + + 24 + 28 + + 7 * + 21 * + 57 * + - 38 AS col0
----
-318404

query I rowsort
SELECT 29 * + + 13 * 84 col1
----
31668

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL 51 * - - ( 41 ) + COUNT( * )
----
2092

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL 51 * - - ( 41 ) + COUNT ( * )
----
2092

query I rowsort
SELECT DISTINCT + - 9 - + 95 AS col0
----
-104

query I rowsort
SELECT 9 * 57
----
513

query II rowsort
SELECT + 51 AS col1, - NULLIF ( + - 88, + 81 ) AS col1
----
51
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT DISTINCT COUNT( + 43 ) * - 58 * - CAST( + 31 AS SIGNED ) * - - ( + + 87 )
----
156426

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT COUNT ( + 43 ) * - 58 * - CAST ( + 31 AS INTEGER ) * - - ( + + 87 )
----
156426

query I rowsort
SELECT 28 * - 19
----
-532

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT ALL + 39 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL + 39 / 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4093
SELECT COUNT( * ) + - - ( + 12 ) DIV + + ( + 60 ) + - 26 DIV - COUNT( * ) col1, 5
----
27
5

skipif mysql # not compatible
query II rowsort label-4093
SELECT COUNT ( * ) + - - ( + 12 ) / + + ( + 60 ) + - 26 / - COUNT ( * ) col1, 5
----
27
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4094
SELECT COUNT( * ) DIV + + 45
----
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT COUNT ( * ) / + + 45
----
0

query II rowsort
SELECT 18 + - 97, + ( 26 ) AS col0
----
-79
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT ALL + CAST( NULL AS SIGNED ) / + 65 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + CAST ( NULL AS INTEGER ) / + 65 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 28 + - 82 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL COUNT( DISTINCT + + 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL COUNT ( DISTINCT + + 56 ) AS col1
----
1

query I rowsort
SELECT 34 - + + 17 + + + 60 * - CASE 15 WHEN + 66 THEN 38 END + - 54 * - 67 * 75 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4100
SELECT 37 / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT 37 / - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 73 * 35 col1
----
2555

onlyif mysql # aggregate syntax: 
query II rowsort label-4102
SELECT 44 + + 92 * - COUNT( * ) AS col0, 41
----
-48
41

skipif mysql # not compatible
query II rowsort label-4102
SELECT 44 + + 92 * - COUNT ( * ) AS col0, 41
----
-48
41

query I rowsort
SELECT ALL + 50 + 19 + 96 * - 54
----
-5115

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT 53 + + ( + COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-4104
SELECT 53 + + ( + COUNT ( * ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL COUNT( + 49 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL COUNT ( + 49 ) col1
----
1

query I rowsort
SELECT 63 + + 41 * - - 45 AS col1
----
1908

query I rowsort
SELECT DISTINCT + 59 * + ( - 71 )
----
-4189

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT SUM( DISTINCT + + 41 ) * + MAX( DISTINCT - 6 )
----
-246

skipif mysql # not compatible
query I rowsort label-4108
SELECT SUM ( DISTINCT + + 41 ) * + MAX ( DISTINCT - 6 )
----
-246

onlyif mysql # DIV for integer division: 
query I rowsort label-4109
SELECT ALL + 50 + + + 38 DIV + 37
----
51

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + 50 + + + 38 / + 37
----
51

query II rowsort
SELECT 43 + + 74 AS col0, 23
----
117
23

onlyif mysql # DIV for integer division: 
query II rowsort label-4111
SELECT 90 * + + 87 AS col1, + ( - NULLIF ( 33, - COALESCE ( - 64, + 41 - + 46 ) * - 72 ) ) * + - 65 + - 39 DIV + + 58
----
7830
2145

skipif mysql # not compatible
query II rowsort label-4111
SELECT 90 * + + 87 AS col1, + ( - NULLIF ( 33, - COALESCE ( - 64, + 41 - + 46 ) * - 72 ) ) * + - 65 + - 39 / + + 58
----
7830
2145

query II rowsort
SELECT - 80 + + - 62, + 55 AS col2
----
-142
55

query I rowsort
SELECT 49 - - 19 * 93 - 60 AS col2
----
1756

query II rowsort
SELECT - 93 * 25 AS col2, + 46 - 82 col1
----
-2325
-36

query I rowsort
SELECT - 63 + 57 AS col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT ALL 87 * - - ( - 26 ) + 36 DIV 12 AS col0
----
-2259

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL 87 * - - ( - 26 ) + 36 / 12 AS col0
----
-2259

onlyif mysql # aggregate syntax: 
query II rowsort label-4117
SELECT + - 83 * 28 + COUNT( * ) * + + COUNT( * ) + 82 AS col0, 33 + + 72 * COUNT( * ) AS col1
----
-2241
105

skipif mysql # not compatible
query II rowsort label-4117
SELECT + - 83 * 28 + COUNT ( * ) * + + COUNT ( * ) + 82 AS col0, 33 + + 72 * COUNT ( * ) AS col1
----
-2241
105

query I rowsort
SELECT DISTINCT - 20 * - 51 + + 98 * 96 AS col0
----
10428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4119
SELECT - COUNT( + + 32 ) DIV + + 74
----
0

skipif mysql # not compatible
query I rowsort label-4119
SELECT - COUNT ( + + 32 ) / + + 74
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4120
SELECT - CAST( NULL AS DECIMAL ) + 3 + + 87 * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT - CAST ( NULL AS REAL ) + 3 + + 87 * + 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + COUNT( * ) * + 13 + + - SUM( ALL + 0 )
----
13

skipif mysql # not compatible
query I rowsort label-4122
SELECT + COUNT ( * ) * + 13 + + - SUM ( ALL + 0 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4123
SELECT - - 26 * 56 AS col2, - ( 49 ) / COUNT( DISTINCT + 0 ) * CASE - + 66 WHEN 83 THEN 40 ELSE NULL END AS col2
----
1456
NULL

skipif mysql # not compatible
query II rowsort label-4123
SELECT - - 26 * 56 AS col2, - ( 49 ) / COUNT ( DISTINCT + 0 ) * CASE - + 66 WHEN 83 THEN 40 ELSE NULL END AS col2
----
1456
NULL

query I rowsort
SELECT 15 * + NULLIF ( + - NULLIF ( + + 95, 77 * - 38 / - 57 + 81 ), + + 82 ) + - + 18 + + 75
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT MAX( + - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-4125
SELECT MAX ( + - 3 )
----
-3

query I rowsort
SELECT + 11 + - 26 AS col2
----
-15

query I rowsort
SELECT ALL + 53 * 52
----
2756

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT MIN( + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4128
SELECT MIN ( + 41 ) AS col2
----
41

query I rowsort
SELECT COALESCE ( - + 30, - + 8 ) * 84 + - 71
----
-2591

query II rowsort
SELECT ALL 42 AS col2, 90 AS col2
----
42
90

query I rowsort
SELECT + 51 * 24 col2
----
1224

query I rowsort
SELECT - ( 59 ) + 98 AS col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4133
SELECT DISTINCT - 36 * + ( + 63 ), - CAST( NULL AS SIGNED ) + - COALESCE ( - + COUNT( * ), + 51 * - COUNT( * ) ) AS col2
----
-2268
NULL

skipif mysql # not compatible
query II rowsort label-4133
SELECT DISTINCT - 36 * + ( + 63 ), - CAST ( NULL AS INTEGER ) + - COALESCE ( - + COUNT ( * ), + 51 * - COUNT ( * ) ) AS col2
----
-2268
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4134
SELECT ALL + 81 + COUNT( * ) * - 1 * + - 51, + 83 AS col0
----
132
83

skipif mysql # not compatible
query II rowsort label-4134
SELECT ALL + 81 + COUNT ( * ) * - 1 * + - 51, + 83 AS col0
----
132
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + 45 + - 34 * + COUNT( * ) + ( + + COUNT( * ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4135
SELECT + 45 + - 34 * + COUNT ( * ) + ( + + COUNT ( * ) ) AS col1
----
12

query II rowsort
SELECT ALL 53 AS col0, - 97 AS col2
----
53
-97

query I rowsort
SELECT ALL - 18 + 91 AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4138
SELECT - 21 * + + COUNT( * ) * + + 70 * - NULLIF ( + 28, + 80 + + + 74 + 22 * - CAST( NULL AS SIGNED ) ) AS col0
----
41160

skipif mysql # not compatible
query I rowsort label-4138
SELECT - 21 * + + COUNT ( * ) * + + 70 * - NULLIF ( + 28, + 80 + + + 74 + 22 * - CAST ( NULL AS INTEGER ) ) AS col0
----
41160

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL + 45 + - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + 45 + - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ALL - 18 + + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - 18 + + COUNT ( * )
----
-17

query I rowsort
SELECT + 85 * - 14 AS col1
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT - ( + 47 ) + COUNT( * ) * COUNT( - 48 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4142
SELECT - ( + 47 ) + COUNT ( * ) * COUNT ( - 48 ) AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4143
SELECT DISTINCT - + 72 DIV + - NULLIF ( COUNT( * ), 86 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT - + 72 / + - NULLIF ( COUNT ( * ), 86 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT - + COUNT( * ) + + 59
----
58

skipif mysql # not compatible
query I rowsort label-4144
SELECT - + COUNT ( * ) + + 59
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT - 26 * 67 * + - MIN( - - 19 )
----
33098

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT - 26 * 67 * + - MIN ( - - 19 )
----
33098

query II rowsort
SELECT ALL + 68 + + 65 + - + 63 * - - 17 AS col1, 29
----
-938
29

query I rowsort
SELECT - - 63 * - 87 AS col0
----
-5481

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL CASE - - 66 WHEN - - ( - MIN( - - 93 ) ) + + ( 5 ) THEN 23 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL CASE - - 66 WHEN - - ( - MIN ( - - 93 ) ) + + ( 5 ) THEN 23 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL + - 11, 56 AS col1
----
-11
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT + - COUNT( + 54 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4150
SELECT + - COUNT ( + 54 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4151
SELECT ALL + + NULLIF ( - 98, - - CAST( - 31 AS SIGNED ) / - - CASE + + 53 WHEN - COUNT( * ) + - - 22 - - + 71 * + 86 - 52 THEN - CAST( NULL AS DECIMAL ) + 62 WHEN - - COUNT( * ) - - 33 - + 62 THEN NULL END + + 29 - CAST( + 87 AS DECIMAL ) * + 59 )
----
-98

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL + + NULLIF ( - 98, - - CAST ( - 31 AS INTEGER ) / - - CASE + + 53 WHEN - COUNT ( * ) + - - 22 - - + 71 * + 86 - 52 THEN - CAST ( NULL AS REAL ) + 62 WHEN - - COUNT ( * ) - - 33 - + 62 THEN NULL END + + 29 - CAST ( + 87 AS REAL ) * + 59 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT - - 36 * - + COUNT( * ) - + 20 + - - ( + 61 )
----
5

skipif mysql # not compatible
query I rowsort label-4152
SELECT - - 36 * - + COUNT ( * ) - + 20 + - - ( + 61 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT MIN( + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4153
SELECT MIN ( + 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4154
SELECT ALL + COUNT( ALL - 27 ) DIV + 27 AS col1, + 51 + 68 + 25 * 50
----
0
1369

skipif mysql # not compatible
query II rowsort label-4154
SELECT ALL + COUNT ( ALL - 27 ) / + 27 AS col1, + 51 + 68 + 25 * 50
----
0
1369

query I rowsort
SELECT 86 * - 62 * 8 - + + 62 * 34 - + 41 + - - 61 - 18 AS col0
----
-44762

query II rowsort
SELECT - 39 * + - 74 * 85, 98 AS col0
----
245310
98

query I rowsort
SELECT ALL + NULLIF ( - 94, + 95 * - 69 ) AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4158
SELECT ALL 82 * + 81 DIV ( - COUNT( 88 ) ) AS col0
----
-6642

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL 82 * + 81 / ( - COUNT ( 88 ) ) AS col0
----
-6642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4159
SELECT + 88 DIV - - ( - MIN( ALL 80 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4159
SELECT + 88 / - - ( - MIN ( ALL 80 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT - COUNT( * ) * - - COUNT( * ) + 36
----
35

skipif mysql # not compatible
query I rowsort label-4160
SELECT - COUNT ( * ) * - - COUNT ( * ) + 36
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT CASE - 24 WHEN + COUNT( * ) THEN + 10 * + 26 WHEN + 34 * + - 21 + - 7 THEN + - 85 WHEN + 34 * + 62 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT CASE - 24 WHEN + COUNT ( * ) THEN + 10 * + 26 WHEN + 34 * + - 21 + - 7 THEN + - 85 WHEN + 34 * + 62 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4162
SELECT ALL CAST( 48 AS SIGNED ) * 16 DIV + - CAST( - 44 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL CAST ( 48 AS INTEGER ) * 16 / + - CAST ( - 44 AS INTEGER )
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-4163
SELECT + 52 DIV + + 63 AS col2, - ( - 52 )
----
0
52

skipif mysql # not compatible
query II rowsort label-4163
SELECT + 52 / + + 63 AS col2, - ( - 52 )
----
0
52

query I rowsort
SELECT + 58 * + 8 AS col2
----
464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4165
SELECT 76 * - 53 - - + 6 * 72 - + CASE + 29 WHEN + - 26 - - 93 - - 22 + CASE WHEN COALESCE ( - 25, - + 76 + + 19, + + 90 ) IS NOT NULL THEN - CASE + - ( - 85 ) WHEN 50 * + 30 + - 52 * - 61 + + COUNT( * ) THEN + COUNT( * ) + + - 34 ELSE NULL END * - + COUNT( * ) WHEN NOT 25 IS NOT NULL THEN NULL END THEN - CASE + 88 WHEN + 92 * + 14 THEN NULL WHEN - 23 - - 71 THEN + 9 ELSE NULL END ELSE 2 + + 4 DIV 31 END AS col2
----
-3598

skipif mysql # not compatible
query I rowsort label-4165
SELECT 76 * - 53 - - + 6 * 72 - + CASE + 29 WHEN + - 26 - - 93 - - 22 + CASE WHEN COALESCE ( - 25, - + 76 + + 19, + + 90 ) IS NOT NULL THEN - CASE + - ( - 85 ) WHEN 50 * + 30 + - 52 * - 61 + + COUNT ( * ) THEN + COUNT ( * ) + + - 34 ELSE NULL END * - + COUNT ( * ) WHEN NOT 25 IS NOT NULL THEN NULL END THEN - CASE + 88 WHEN + 92 * + 14 THEN NULL WHEN - 23 - - 71 THEN + 9 ELSE NULL END ELSE 2 + + 4 / 31 END AS col2
----
-3598

query I rowsort
SELECT CASE 36 WHEN - ( - - 97 ) THEN NULL ELSE - 40 END
----
-40

query I rowsort
SELECT ALL 7 * - 68 * - + 77 + + 49 * - + 18 col0
----
35770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4168
SELECT CASE + 92 WHEN - 7 * - - 15 - + COUNT( * ) THEN NULL ELSE CAST( NULL AS SIGNED ) * 27 - - MAX( - 99 ) END AS col0, + 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-4168
SELECT CASE + 92 WHEN - 7 * - - 15 - + COUNT ( * ) THEN NULL ELSE CAST ( NULL AS INTEGER ) * 27 - - MAX ( - 99 ) END AS col0, + 23
----
NULL
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4169
SELECT ALL + MAX( ALL ( 42 ) ) * - ( - + 73 ) * - + 57 + - 89
----
-174851

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL + MAX ( ALL ( 42 ) ) * - ( - + 73 ) * - + 57 + - 89
----
-174851

query I rowsort
SELECT ALL 51 * + 1 * + 21 + - 5
----
1066

query I rowsort
SELECT + 98 * - 54
----
-5292

query II rowsort
SELECT ALL - 55 * 36 * - 14 + + - 76, + 13 + 56 AS col1
----
27644
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL CASE + COUNT( * ) WHEN + COALESCE ( + + COUNT( * ), - 12 ) THEN + MIN( ALL 97 ) WHEN - - 63 THEN NULL WHEN + + 6 + 9 THEN NULL WHEN - - 80 * 63 THEN + - 19 + - 15 / 90 ELSE NULL END
----
97

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL CASE + COUNT ( * ) WHEN + COALESCE ( + + COUNT ( * ), - 12 ) THEN + MIN ( ALL 97 ) WHEN - - 63 THEN NULL WHEN + + 6 + 9 THEN NULL WHEN - - 80 * 63 THEN + - 19 + - 15 / 90 ELSE NULL END
----
97

query I rowsort
SELECT + 86 + + 21 + + + 99 * 65
----
6542

query II rowsort
SELECT - 68 * + 64 AS col0, - 3
----
-4352
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4176
SELECT ALL 73 + - COUNT( * ) + - NULLIF ( + 14, - CAST( + 70 AS DECIMAL ) )
----
58

skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL 73 + - COUNT ( * ) + - NULLIF ( + 14, - CAST ( + 70 AS REAL ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT + NULLIF ( 59, ( + MIN( DISTINCT 30 ) ) ) + 67
----
126

skipif mysql # not compatible
query I rowsort label-4177
SELECT + NULLIF ( 59, ( + MIN ( DISTINCT 30 ) ) ) + 67
----
126

query I rowsort
SELECT - 85 + + + 14 AS col1
----
-71

query I rowsort
SELECT - 98 + + CASE - - 99 WHEN + 32 + 53 THEN - + 29 + 58 + - - 79 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4180
SELECT - CASE - + ( + + 51 ) WHEN + ( - + 39 ) / + SUM( DISTINCT - - 44 ) * - 78 * 88 * - 79 + - 46 + + 2 THEN - CAST( NULL AS SIGNED ) + ( 84 ) * 92 ELSE ( - 62 ) END
----
62

skipif mysql # not compatible
query I rowsort label-4180
SELECT - CASE - + ( + + 51 ) WHEN + ( - + 39 ) / + SUM ( DISTINCT - - 44 ) * - 78 * 88 * - 79 + - 46 + + 2 THEN - CAST ( NULL AS INTEGER ) + ( 84 ) * 92 ELSE ( - 62 ) END
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT - 25 + 33 * + MAX( - + 99 ) + - + 30 * - SUM( + ( + 27 ) )
----
-2482

skipif mysql # not compatible
query I rowsort label-4181
SELECT - 25 + 33 * + MAX ( - + 99 ) + - + 30 * - SUM ( + ( + 27 ) )
----
-2482

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + COUNT( * ) - - 18
----
19

skipif mysql # not compatible
query I rowsort label-4182
SELECT + COUNT ( * ) - - 18
----
19

query I rowsort
SELECT ALL - 71 - ( ( + 56 ) ) + 44
----
-83

query I rowsort
SELECT 68 * + + 17
----
1156

query I rowsort
SELECT - 57 * - - 74 AS col1
----
-4218

query I rowsort
SELECT - 1 * - - 31 * 31
----
-961

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL + 21 * - - CASE + - 97 WHEN - + COALESCE ( + 71, 87 ) THEN NULL WHEN 58 + + + COUNT( ALL 79 ) + CASE - 50 WHEN - ( - COUNT( DISTINCT + 96 ) ) + + - 44 + 84 * - - 83 / - + ( + SUM( DISTINCT - - 5 ) ) - - 49 + ( 79 ) THEN NULL WHEN 81 THEN NULL WHEN + - 76 THEN + 25 + 67 ELSE 84 + + 7 END + - - ( + ( + 13 ) ) * COUNT( * ) * + 70 / 50 + 47 * + COUNT( * ) THEN - 4 / - 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + 21 * - - CASE + - 97 WHEN - + COALESCE ( + 71, 87 ) THEN NULL WHEN 58 + + + COUNT ( ALL 79 ) + CASE - 50 WHEN - ( - COUNT ( DISTINCT + 96 ) ) + + - 44 + 84 * - - 83 / - + ( + SUM ( DISTINCT - - 5 ) ) - - 49 + ( 79 ) THEN NULL WHEN 81 THEN NULL WHEN + - 76 THEN + 25 + 67 ELSE 84 + + 7 END + - - ( + ( + 13 ) ) * COUNT ( * ) * + 70 / 50 + 47 * + COUNT ( * ) THEN - 4 / - 3 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4188
SELECT 41 * - - NULLIF ( + 48, - - 72 + 94 - + CAST( NULL AS SIGNED ) - - 42 * AVG ( - 66 ) ) + COUNT( * ) AS col2
----
1969

skipif mysql # not compatible
query I rowsort label-4188
SELECT 41 * - - NULLIF ( + 48, - - 72 + 94 - + CAST ( NULL AS INTEGER ) - - 42 * AVG ( - 66 ) ) + COUNT ( * ) AS col2
----
1969

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL - ( NULLIF ( - 17, 83 ) ) * + SUM( 94 ) + 63 - + 35 + - - 10
----
1636

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - ( NULLIF ( - 17, 83 ) ) * + SUM ( 94 ) + 63 - + 35 + - - 10
----
1636

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4190
SELECT 37 * CAST( NULL AS DECIMAL ) * - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT 37 * CAST ( NULL AS REAL ) * - 58 AS col0
----
NULL

query I rowsort
SELECT ALL - + 23 * 3 AS col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4192
SELECT - + 52 DIV - 85 - - 37 + + - 85 - + 42 DIV - 3 + + 78 - + 88 + 44
----
0

skipif mysql # not compatible
query I rowsort label-4192
SELECT - + 52 / - 85 - - 37 + + - 85 - + 42 / - 3 + + 78 - + 88 + 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL - ( - COUNT( * ) ) * - + MIN( - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - ( - COUNT ( * ) ) * - + MIN ( - 35 )
----
35

query I rowsort
SELECT 19 + + 68
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4195
SELECT 54 * + + CAST( NULL AS SIGNED ) * 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT 54 * + + CAST ( NULL AS INTEGER ) * 20 AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 65 ) AS col0
----
-65

query I rowsort
SELECT ALL - 17 + + + 26
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT DISTINCT 57 DIV - 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT 57 / - 60 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4199
SELECT DISTINCT - ( - 14 ) + - 86 + 12 * + ( ( + 26 ) ) * + ( - 75 ) DIV - COUNT( * ), ( - 51 ) + - 9 AS col0
----
23328
-60

skipif mysql # not compatible
query II rowsort label-4199
SELECT DISTINCT - ( - 14 ) + - 86 + 12 * + ( ( + 26 ) ) * + ( - 75 ) / - COUNT ( * ), ( - 51 ) + - 9 AS col0
----
23328
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT DISTINCT 34 + - + CASE WHEN NOT NULL NOT IN ( + 29, - 27 * - CAST( + 94 AS SIGNED ) * + + 98 ) OR NULL <= NULL THEN + CAST( - + 24 AS SIGNED ) WHEN - 14 IS NULL THEN - 96 + + 51 - 41 ELSE 63 END * - COUNT( ALL + + 90 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT 34 + - + CASE WHEN NOT NULL NOT IN ( + 29, - 27 * - CAST ( + 94 AS INTEGER ) * + + 98 ) OR NULL <= NULL THEN + CAST ( - + 24 AS INTEGER ) WHEN - 14 IS NULL THEN - 96 + + 51 - 41 ELSE 63 END * - COUNT ( ALL + + 90 ) AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT 63 + 50 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT 63 + 50 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 18 + - 93 AS col2
----
-111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4203
SELECT MIN( - + CASE - 64 WHEN - 64 THEN + 46 WHEN + 50 THEN NULL END ) * - CAST( + NULLIF ( - + 16, + CAST( NULL AS SIGNED ) ) AS SIGNED ) col2
----
-736

skipif mysql # not compatible
query I rowsort label-4203
SELECT MIN ( - + CASE - 64 WHEN - 64 THEN + 46 WHEN + 50 THEN NULL END ) * - CAST ( + NULLIF ( - + 16, + CAST ( NULL AS INTEGER ) ) AS INTEGER ) col2
----
-736

query I rowsort
SELECT ALL 56 * + 56 * - 16 * - 56 * + 6 * + + 49
----
826097664

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT + 9 * SUM( - + 90 ) * + COUNT( - - 26 ) + + 81 + 53 + - + 17
----
-693

skipif mysql # not compatible
query I rowsort label-4205
SELECT + 9 * SUM ( - + 90 ) * + COUNT ( - - 26 ) + + 81 + 53 + - + 17
----
-693

query II rowsort
SELECT ALL 33 * ( + + 64 ) AS col2, 73 AS col0
----
2112
73

query II rowsort
SELECT DISTINCT 64, 80 AS col2
----
64
80

query I rowsort
SELECT ALL 50 + - 10 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4209
SELECT DISTINCT COUNT( * ) DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT COUNT ( * ) / 68
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT + CASE + COUNT( * ) WHEN 66 * 7 * - 73 THEN NULL ELSE 9 END AS col0, + 72 + - - ( + 36 ) AS col0
----
9
108

skipif mysql # not compatible
query II rowsort label-4210
SELECT + CASE + COUNT ( * ) WHEN 66 * 7 * - 73 THEN NULL ELSE 9 END AS col0, + 72 + - - ( + 36 ) AS col0
----
9
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT DISTINCT CAST( - 0 AS SIGNED ) - - - 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT CAST ( - 0 AS INTEGER ) - - - 99 AS col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT 4 * - COALESCE ( CAST( NULL AS SIGNED ), + 30 ) * - - 74 - - + 98
----
-8782

skipif mysql # not compatible
query I rowsort label-4212
SELECT 4 * - COALESCE ( CAST ( NULL AS INTEGER ), + 30 ) * - - 74 - - + 98
----
-8782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4213
SELECT ALL 15 * - 4 * + CAST( NULL AS SIGNED ), - 31 AS col0
----
NULL
-31

skipif mysql # not compatible
query II rowsort label-4213
SELECT ALL 15 * - 4 * + CAST ( NULL AS INTEGER ), - 31 AS col0
----
NULL
-31

query I rowsort
SELECT 83 - - 17 AS col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4215
SELECT ALL + 14 DIV - + 74
----
0

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL + 14 / - + 74
----
0

query I rowsort
SELECT DISTINCT 33 * + 22 AS col2
----
726

query I rowsort
SELECT ALL ( - + 86 ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4218
SELECT + 21 DIV + 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4218
SELECT + 21 / + 50 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT + COALESCE ( + + 81, + COUNT( * ) - - - 42 + 42 + + 7 * - 30 - + + 52 ) + - + 51
----
30

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT + COALESCE ( + + 81, + COUNT ( * ) - - - 42 + 42 + + 7 * - 30 - + + 52 ) + - + 51
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4220
SELECT - + 62 DIV 90 * - 61 * + NULLIF ( + 3, - 94 ) DIV - 84 * - - 13 + - - 78 + + - 23 + - COUNT( * ) * + 34 + 22 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4220
SELECT - + 62 / 90 * - 61 * + NULLIF ( + 3, - 94 ) / - 84 * - - 13 + - - 78 + + - 23 + - COUNT ( * ) * + 34 + 22 AS col1
----
43

query I rowsort
SELECT ALL + 94 * 23 * - 73 + + - 61
----
-157887

query I rowsort
SELECT ALL 25 * 99 + 16 AS col2
----
2491

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT COUNT( 64 )
----
1

skipif mysql # not compatible
query I rowsort label-4223
SELECT COUNT ( 64 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT ALL ( - - 35 ) DIV + - 97
----
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL ( - - 35 ) / + - 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4225
SELECT 44 DIV 4 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4225
SELECT 44 / 4 AS col1
----
11

query I rowsort
SELECT 95 * ( - + 8 ) - - 32
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT ALL - 22 * + + COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL - 22 * + + COUNT ( * ) AS col2
----
-22

query I rowsort
SELECT 54 * 97 AS col0
----
5238

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4229
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2, 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-4229
SELECT ALL - CAST ( NULL AS REAL ) AS col2, 45
----
NULL
45

query I rowsort
SELECT DISTINCT - 4 * - 55
----
220

query I rowsort
SELECT ALL + 50 + + 18 AS col0
----
68

query I rowsort
SELECT DISTINCT - ( - - 25 )
----
-25

query I rowsort
SELECT DISTINCT + 14 + - 92 + 12 * - + 38
----
-534

onlyif mysql # aggregate syntax: 
query II rowsort label-4234
SELECT + 3 AS col0, MAX( - 62 ) AS col1
----
3
-62

skipif mysql # not compatible
query II rowsort label-4234
SELECT + 3 AS col0, MAX ( - 62 ) AS col1
----
3
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT COUNT( * ), 21 AS col0
----
1
21

skipif mysql # not compatible
query II rowsort label-4235
SELECT COUNT ( * ), 21 AS col0
----
1
21

query I rowsort
SELECT ALL + COALESCE ( - 57, - COALESCE ( + 67, + + 47 ) ) AS col1
----
-57

query I rowsort
SELECT DISTINCT + 14 * + 26
----
364

query II rowsort
SELECT 26, 63 col2
----
26
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4239
SELECT - CASE + NULLIF ( 40, - 98 ) WHEN + - 81 + - - AVG ( ( - + 69 ) ) * 36 THEN - - 96 + - 12 + + - COUNT( * ) END * - + CASE - 14 WHEN COUNT( * ) THEN NULL ELSE + + COUNT( 33 ) + + - 58 END + + 19 AS col2, 55 * COUNT( * ) + 9
----
NULL
64

skipif mysql # not compatible
query II rowsort label-4239
SELECT - CASE + NULLIF ( 40, - 98 ) WHEN + - 81 + - - AVG ( ( - + 69 ) ) * 36 THEN - - 96 + - 12 + + - COUNT ( * ) END * - + CASE - 14 WHEN COUNT ( * ) THEN NULL ELSE + + COUNT ( 33 ) + + - 58 END + + 19 AS col2, 55 * COUNT ( * ) + 9
----
NULL
64

query I rowsort
SELECT ALL + 60 * + 12 * - 61
----
-43920

onlyif mysql # aggregate syntax: 
query II rowsort label-4241
SELECT - 69 AS col2, - COUNT( * )
----
-69
-1

skipif mysql # not compatible
query II rowsort label-4241
SELECT - 69 AS col2, - COUNT ( * )
----
-69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL MAX( - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL MAX ( - 59 ) AS col0
----
-59

query II rowsort
SELECT - 47, - 7 + 70 AS col1
----
-47
63

query I rowsort
SELECT - 33 + 60
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT + ( - + ( - + ( + NULLIF ( + ( + + SUM( 7 ) ), + - 23 ) ) ) ) - + COUNT( * ) * 7 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4245
SELECT + ( - + ( - + ( + NULLIF ( + ( + + SUM ( 7 ) ), + - 23 ) ) ) ) - + COUNT ( * ) * 7 AS col0
----
0

query I rowsort
SELECT - 47 + 41 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - + 23 * + 93 + + 69 * + 90 + + - COUNT( * ) + + 64 AS col1
----
4134

skipif mysql # not compatible
query I rowsort label-4247
SELECT - + 23 * + 93 + + 69 * + 90 + + - COUNT ( * ) + + 64 AS col1
----
4134

query I rowsort
SELECT + ( + + ( - 24 ) ) * - - 75
----
-1800

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT ALL 9, COUNT( * ) + + 61 AS col1
----
9
62

skipif mysql # not compatible
query II rowsort label-4249
SELECT ALL 9, COUNT ( * ) + + 61 AS col1
----
9
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - - COUNT( * ) + - - 84
----
85

skipif mysql # not compatible
query I rowsort label-4250
SELECT - - COUNT ( * ) + - - 84
----
85

query I rowsort
SELECT ALL - 85 * + 92 - + 69 * - - 5 + + 95 + - 56
----
-8126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT ALL - 4 / + 55 + 11 + ( 1 ) + 11 / - - 16 * + 23 + - CAST( NULL AS SIGNED ) * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL - 4 / + 55 + 11 + ( 1 ) + 11 / - - 16 * + 23 + - CAST ( NULL AS INTEGER ) * 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT + - CASE - 83 WHEN - - 3 - + + 58 + + 80 * - + 24 THEN NULL ELSE - CAST( - 25 AS SIGNED ) END + - + 79 * + - 58 * - 26
----
-119157

skipif mysql # not compatible
query I rowsort label-4253
SELECT + - CASE - 83 WHEN - - 3 - + + 58 + + 80 * - + 24 THEN NULL ELSE - CAST ( - 25 AS INTEGER ) END + - + 79 * + - 58 * - 26
----
-119157

onlyif mysql # aggregate syntax: 
query II rowsort label-4254
SELECT ALL 32 col2, + COALESCE ( + ( COUNT( - 32 ) ), + + 31 + - 46, 69 ) col0
----
32
1

skipif mysql # not compatible
query II rowsort label-4254
SELECT ALL 32 col2, + COALESCE ( + ( COUNT ( - 32 ) ), + + 31 + - 46, 69 ) col0
----
32
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4255
SELECT 15 AS col2, + AVG ( ALL + CAST( NULL AS SIGNED ) )
----
15
NULL

skipif mysql # not compatible
query II rowsort label-4255
SELECT 15 AS col2, + AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
15
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4256
SELECT + COUNT( * ) + - 57 + 27 * + COALESCE ( + 44, - 62 + + 90 * - ( + 77 ) * 86 + + 62 + + - NULLIF ( CAST( + 81 AS SIGNED ), + - 14 * - + 54 - - + 39 + - + MAX( ALL + ( + 84 ) ) ) + - - 31 - - 27 DIV + 37, ( + 93 ) * + 9 ) - - ( + - 51 ) AS col1
----
1081

skipif mysql # not compatible
query I rowsort label-4256
SELECT + COUNT ( * ) + - 57 + 27 * + COALESCE ( + 44, - 62 + + 90 * - ( + 77 ) * 86 + + 62 + + - NULLIF ( CAST ( + 81 AS INTEGER ), + - 14 * - + 54 - - + 39 + - + MAX ( ALL + ( + 84 ) ) ) + - - 31 - - 27 / + 37, ( + 93 ) * + 9 ) - - ( + - 51 ) AS col1
----
1081

query I rowsort
SELECT + ( - - 9 ) * + 83
----
747

query I rowsort
SELECT + 46 + - 45 - + + 32 - 9 * 72 AS col0
----
-679

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4259
SELECT DISTINCT - 36 + - 68 - - - COALESCE ( - 12, - 52, AVG ( ALL - 88 ), 61 * - + COUNT( * ) * - COUNT( * ) + - COUNT( * ) ) DIV - 83, - 1 * 74 * + - COUNT( * ) col0
----
-104
74

skipif mysql # not compatible
query II rowsort label-4259
SELECT DISTINCT - 36 + - 68 - - - COALESCE ( - 12, - 52, AVG ( ALL - 88 ), 61 * - + COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) ) / - 83, - 1 * 74 * + - COUNT ( * ) col0
----
-104
74

query I rowsort
SELECT + NULLIF ( + 92, + 78 ) AS col2
----
92

query I rowsort
SELECT DISTINCT + 5 * 1 + + + NULLIF ( - - ( + 54 ), - 61 * - 25 * - + 40 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT + COUNT( * ) + 30 - + 98 * + 88
----
-8593

skipif mysql # not compatible
query I rowsort label-4262
SELECT + COUNT ( * ) + 30 - + 98 * + 88
----
-8593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT ( - CAST( - 36 AS SIGNED ) )
----
36

skipif mysql # not compatible
query I rowsort label-4263
SELECT ( - CAST ( - 36 AS INTEGER ) )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT DISTINCT - 72 * + 3 * + 73 * + - ( + 76 ) + COUNT( * ) * + SUM( + CAST( NULL AS SIGNED ) ) * - MAX( - 80 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT - 72 * + 3 * + 73 * + - ( + 76 ) + COUNT ( * ) * + SUM ( + CAST ( NULL AS INTEGER ) ) * - MAX ( - 80 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4265
SELECT ( - CAST( - + 39 AS SIGNED ) ) AS col0, 74 * COUNT( * ) * ( + + 38 )
----
39
2812

skipif mysql # not compatible
query II rowsort label-4265
SELECT ( - CAST ( - + 39 AS INTEGER ) ) AS col0, 74 * COUNT ( * ) * ( + + 38 )
----
39
2812

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT + ( + 45 ) * + ( + + COUNT( * ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4266
SELECT + ( + 45 ) * + ( + + COUNT ( * ) ) AS col2
----
45

query I rowsort
SELECT ( - 11 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT + 39 * - ( + + COUNT( * ) )
----
-39

skipif mysql # not compatible
query I rowsort label-4268
SELECT + 39 * - ( + + COUNT ( * ) )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4269
SELECT + 91 DIV + COUNT( * ) * - + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4269
SELECT + 91 / + COUNT ( * ) * - + COUNT ( * )
----
-91

query I rowsort
SELECT ALL - 28 * - - 21 AS col0
----
-588

query I rowsort
SELECT - 9 + 57
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-4272
SELECT ALL 15 DIV - + 87, - 79 - + ( + + 10 ) + + - 29 AS col2
----
0
-118

skipif mysql # not compatible
query II rowsort label-4272
SELECT ALL 15 / - + 87, - 79 - + ( + + 10 ) + + - 29 AS col2
----
0
-118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4273
SELECT - 3 + - CAST( NULL AS SIGNED ) - 2, - 87 AS col0
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-4273
SELECT - 3 + - CAST ( NULL AS INTEGER ) - 2, - 87 AS col0
----
NULL
-87

query I rowsort
SELECT DISTINCT + 83 * - + 76 AS col0
----
-6308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4275
SELECT - COUNT( + - 7 ) * - CAST( + - 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-4275
SELECT - COUNT ( + - 7 ) * - CAST ( + - 89 AS INTEGER )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4276
SELECT - - 19 * - 96 * ( + MIN( ALL - 62 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT - - 19 * - 96 * ( + MIN ( ALL - 62 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 89 + 94 + - - 42 * 45
----
1895

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT DISTINCT - COUNT( + 17 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT - COUNT ( + 17 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4279
SELECT - + 19 * + CAST( COUNT( * ) AS SIGNED ) * + + 70 * 29, 85 AS col1
----
-38570
85

skipif mysql # not compatible
query II rowsort label-4279
SELECT - + 19 * + CAST ( COUNT ( * ) AS INTEGER ) * + + 70 * 29, 85 AS col1
----
-38570
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL - 14 * - 26 * - COUNT( * ) * 91 * - - 53 AS col2
----
-1755572

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - 14 * - 26 * - COUNT ( * ) * 91 * - - 53 AS col2
----
-1755572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4281
SELECT ALL - + 46 + ( - CAST( NULL AS SIGNED ) ) * + 79 * - MIN( ALL + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - + 46 + ( - CAST ( NULL AS INTEGER ) ) * + 79 * - MIN ( ALL + 27 )
----
NULL

query I rowsort
SELECT DISTINCT + + 83 + - 29 - + - ( - 85 )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT - 33 - + + CAST( + 42 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-4283
SELECT - 33 - + + CAST ( + 42 AS INTEGER )
----
-75

query II rowsort
SELECT ALL + - CASE - 8 WHEN 38 * + - 96 + + - 31 THEN + 1 ELSE NULL END + + NULLIF ( 44, + 44 / 95 * - 38 + 69 ) * + 79, + 49 AS col0
----
NULL
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4285
SELECT - 60 DIV + - 60, + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-4285
SELECT - 60 / + - 60, + COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT ALL - - 41 + + + 22 + 17 + - 47 col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT + - 12 * + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4287
SELECT + - 12 * + - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4288
SELECT ALL - 7 + + 92 - - 88 DIV COUNT( * ) * - 35 * + 18 + - + 73 * - COALESCE ( + 98, + ( 80 ) + + COUNT( * ) + + 77 * - - 97 * + 10 * COUNT( DISTINCT + 87 ) * 18, - CASE COUNT( * ) WHEN + 68 * + + 10 THEN NULL WHEN 29 THEN - + 45 ELSE NULL END + - - 70 )
----
-48201

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL - 7 + + 92 - - 88 / COUNT ( * ) * - 35 * + 18 + - + 73 * - COALESCE ( + 98, + ( 80 ) + + COUNT ( * ) + + 77 * - - 97 * + 10 * COUNT ( DISTINCT + 87 ) * 18, - CASE COUNT ( * ) WHEN + 68 * + + 10 THEN NULL WHEN 29 THEN - + 45 ELSE NULL END + - - 70 )
----
-48201

query I rowsort
SELECT - - 1 - + 57 AS col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT ALL 17 DIV - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL 17 / - 97 AS col1
----
0

query I rowsort
SELECT - COALESCE ( + 83, 43, + - ( - 71 ) ) AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4292
SELECT ALL + CAST( NULL AS SIGNED ) + - + 27 * - + 9 * CAST( NULL AS SIGNED ), + 48 AS col0
----
NULL
48

skipif mysql # not compatible
query II rowsort label-4292
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 27 * - + 9 * CAST ( NULL AS INTEGER ), + 48 AS col0
----
NULL
48

query II rowsort
SELECT 60, - 26 * - - 38 * + 94 + + 11 col2
----
60
-92861

query I rowsort
SELECT - 69 + 26
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4295
SELECT - COUNT( * ) DIV + 63 + COUNT( * ), 32 AS col0
----
1
32

skipif mysql # not compatible
query II rowsort label-4295
SELECT - COUNT ( * ) / + 63 + COUNT ( * ), 32 AS col0
----
1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + 91 * + 65 + - COUNT( * ) AS col1
----
5914

skipif mysql # not compatible
query I rowsort label-4296
SELECT + 91 * + 65 + - COUNT ( * ) AS col1
----
5914

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT ALL COUNT( * ) - - ( 87 ) * - 40 + - 61 AS col2
----
-3540

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL COUNT ( * ) - - ( 87 ) * - 40 + - 61 AS col2
----
-3540

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ( - NULLIF ( 44, SUM( - + 28 ) * - 9 * - COALESCE ( - + COUNT( * ), - SUM( - 50 ) * + - 14 + - 62, + 53 * - 34 * ( + 71 ) + + 42 ) ) ) * 59
----
-2596

skipif mysql # not compatible
query I rowsort label-4298
SELECT ( - NULLIF ( 44, SUM ( - + 28 ) * - 9 * - COALESCE ( - + COUNT ( * ), - SUM ( - 50 ) * + - 14 + - 62, + 53 * - 34 * ( + 71 ) + + 42 ) ) ) * 59
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL 27 * - - COUNT( * ) col0
----
27

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL 27 * - - COUNT ( * ) col0
----
27

query I rowsort
SELECT DISTINCT 39 * - 88 col0
----
-3432

query II rowsort
SELECT + 57 AS col1, 24 + 48
----
57
72

query I rowsort
SELECT 68 - - 93 col0
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT + COUNT( * ) * - + 88 + - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-4303
SELECT + COUNT ( * ) * - + 88 + - COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-4304
SELECT 89 AS col1, COUNT( - ( 89 ) ) - 36
----
89
-35

skipif mysql # not compatible
query II rowsort label-4304
SELECT 89 AS col1, COUNT ( - ( 89 ) ) - 36
----
89
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4305
SELECT 88 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT 88 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4306
SELECT + COUNT( DISTINCT 58 ) * + 61 AS col1, - COUNT( * ) DIV - - 74 AS col0
----
61
0

skipif mysql # not compatible
query II rowsort label-4306
SELECT + COUNT ( DISTINCT 58 ) * + 61 AS col1, - COUNT ( * ) / - - 74 AS col0
----
61
0

query I rowsort
SELECT - - 44 * 94 - + + 99
----
4037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT ALL CAST( NULL AS SIGNED ) + - 65 / + - 93 * - 98 * - ( + 90 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL CAST ( NULL AS INTEGER ) + - 65 / + - 93 * - 98 * - ( + 90 ) AS col0
----
NULL

query I rowsort
SELECT - 65 * + 88 AS col0
----
-5720

query I rowsort
SELECT ALL + + 81 + 95
----
176

query I rowsort
SELECT DISTINCT CASE - 74 WHEN - ( + 55 ) - + NULLIF ( - 15, + 95 ) THEN + + ( + - NULLIF ( + 6, + - 4 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT CASE - 75 WHEN - ( + - 92 ) THEN NULL ELSE ( - MIN( 36 ) ) + 0 END * 45 - + + 51 AS col1
----
-1671

skipif mysql # not compatible
query I rowsort label-4312
SELECT CASE - 75 WHEN - ( + - 92 ) THEN NULL ELSE ( - MIN ( 36 ) ) + 0 END * 45 - + + 51 AS col1
----
-1671

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4313
SELECT COUNT( * ), + 94 DIV - - 6 AS col2
----
1
15

skipif mysql # not compatible
query II rowsort label-4313
SELECT COUNT ( * ), + 94 / - - 6 AS col2
----
1
15

query I rowsort
SELECT ALL - 2 + + 51 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + COUNT( * ) + 71 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4315
SELECT + COUNT ( * ) + 71 AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4316
SELECT 7 + + COUNT( * ) - - - COUNT( * ) DIV - 54 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4316
SELECT 7 + + COUNT ( * ) - - - COUNT ( * ) / - 54 AS col2
----
8

query II rowsort
SELECT DISTINCT 45, 64 * + 88 AS col1
----
45
5632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4318
SELECT - CAST( 0 AS SIGNED ) + COUNT( * ) - 37
----
-36

skipif mysql # not compatible
query I rowsort label-4318
SELECT - CAST ( 0 AS INTEGER ) + COUNT ( * ) - 37
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4319
SELECT ALL COUNT( * ) AS col2, 64 * CASE - + 5 WHEN - 21 THEN + - ( + 90 ) WHEN + + ( + 85 ) THEN + 96 - 1 WHEN - 93 * + - COUNT( * ) + 3 / - 74 THEN 97 / + 63 END + - 61 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4319
SELECT ALL COUNT ( * ) AS col2, 64 * CASE - + 5 WHEN - 21 THEN + - ( + 90 ) WHEN + + ( + 85 ) THEN + 96 - 1 WHEN - 93 * + - COUNT ( * ) + 3 / - 74 THEN 97 / + 63 END + - 61 AS col1
----
1
NULL

query I rowsort
SELECT - 81 + ( - - 0 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL MIN( + + 62 ) + + - 73
----
-11

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL MIN ( + + 62 ) + + - 73
----
-11

query I rowsort
SELECT - ( 87 ) AS col1
----
-87

query I rowsort
SELECT ALL - 70 * - 18 + 82
----
1342

query I rowsort
SELECT 63 * - - 47 col0
----
2961

query I rowsort
SELECT ALL - 73 * - 72 AS col1
----
5256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT DISTINCT + 18 - - 85 + + CAST( - - 62 AS SIGNED ) - + COUNT( * ) * 85
----
80

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + 18 - - 85 + + CAST ( - - 62 AS INTEGER ) - + COUNT ( * ) * 85
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT CASE 76 WHEN 75 THEN NULL WHEN - - 18 THEN - 49 + - 79 - 52 + MAX( 66 ) ELSE NULL END + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT CASE 76 WHEN 75 THEN NULL WHEN - - 18 THEN - 49 + - 79 - 52 + MAX ( 66 ) ELSE NULL END + - 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT DISTINCT - COUNT( * ) * - COUNT( - 69 ) * 47 + + 76 AS col2
----
123

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT - COUNT ( * ) * - COUNT ( - 69 ) * 47 + + 76 AS col2
----
123

query I rowsort
SELECT ALL - NULLIF ( 38, 75 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT DISTINCT - 55 * + + CASE 27 WHEN + SUM( - 68 ) THEN - 42 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT - 55 * + + CASE 27 WHEN + SUM ( - 68 ) THEN - 42 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4331
SELECT ALL + 1 * NULLIF ( - ( - - 75 ), 31 + + COUNT( * ) ) * 14 + + 48 * 0 * + 70 * - 44 DIV + COUNT( * )
----
-1050

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL + 1 * NULLIF ( - ( - - 75 ), 31 + + COUNT ( * ) ) * 14 + + 48 * 0 * + 70 * - 44 / + COUNT ( * )
----
-1050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT 98 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4332
SELECT 98 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL - COALESCE ( - - 25, 42 + - COUNT( * ) * - 59 * + 30 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL - COALESCE ( - - 25, 42 + - COUNT ( * ) * - 59 * + 30 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT 72 - - MAX( ALL - 80 ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-4334
SELECT 72 - - MAX ( ALL - 80 ) col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT 78 + + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4335
SELECT 78 + + + COUNT ( * )
----
79

query I rowsort
SELECT 33 * - 69 * + 57
----
-129789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4337
SELECT DISTINCT + + CAST( 75 AS SIGNED ) + + 55 * - ( + COUNT( * ) ) * 23
----
-1190

skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT + + CAST ( 75 AS INTEGER ) + + 55 * - ( + COUNT ( * ) ) * 23
----
-1190

query I rowsort
SELECT ALL 66 + + - 84 - 72 * - 47 + + + 83 * + - 71 + - 2 + + 17 * + 27 * 14
----
3897

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + MIN( ALL + 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4339
SELECT + MIN ( ALL + 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ( + COUNT( * ) ) * 21 + 29 + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4340
SELECT ( + COUNT ( * ) ) * 21 + 29 + COUNT ( * )
----
51

query I rowsort
SELECT ALL 55 + - 44 + 94 + - 12 AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4342
SELECT DISTINCT + COUNT( * ) DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + COUNT ( * ) / - 68
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT ALL - 79 - 21 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL - 79 - 21 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4344
SELECT DISTINCT 39 DIV COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT 39 / COUNT ( * ) AS col0
----
39

query II rowsort
SELECT DISTINCT - - 36 * - 58, + ( + 17 ) AS col2
----
-2088
17

query I rowsort
SELECT ALL + - 74 - - - 82 + + ( - 90 ) AS col1
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + 31 - 59 + + - COALESCE ( - + 11, + NULLIF ( + 4, + 56 ) ) - 60 - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-4347
SELECT + 31 - 59 + + - COALESCE ( - + 11, + NULLIF ( + 4, + 56 ) ) - 60 - COUNT ( * )
----
-78

query I rowsort
SELECT 21 * 43 * - 34 AS col2
----
-30702

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - MIN( DISTINCT - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4349
SELECT - MIN ( DISTINCT - 78 )
----
78

query I rowsort
SELECT + 40 * + 71 AS col2
----
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - COUNT( * ) * + + 97
----
-97

skipif mysql # not compatible
query I rowsort label-4351
SELECT - COUNT ( * ) * + + 97
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4352
SELECT DISTINCT 63 * + - MAX( + 64 ), 90 AS col0
----
-4032
90

skipif mysql # not compatible
query II rowsort label-4352
SELECT DISTINCT 63 * + - MAX ( + 64 ), 90 AS col0
----
-4032
90

query I rowsort
SELECT DISTINCT - 24 * - 50 * 29
----
34800

query I rowsort
SELECT DISTINCT - 15 * - + 33
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL MAX( ALL 92 )
----
92

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL MAX ( ALL 92 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4356
SELECT 6 * 92 - COALESCE ( + COUNT( * ), + 45, - + CAST( - + 15 AS SIGNED ) + 72 ) DIV 92 AS col1
----
552

skipif mysql # not compatible
query I rowsort label-4356
SELECT 6 * 92 - COALESCE ( + COUNT ( * ), + 45, - + CAST ( - + 15 AS INTEGER ) + 72 ) / 92 AS col1
----
552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4357
SELECT 97 * + CAST( 34 AS SIGNED ) + - ( - + ( 37 ) )
----
3335

skipif mysql # not compatible
query I rowsort label-4357
SELECT 97 * + CAST ( 34 AS INTEGER ) + - ( - + ( 37 ) )
----
3335

query I rowsort
SELECT - 15 * - 96 AS col0
----
1440

query I rowsort
SELECT COALESCE ( + 48, - 68 * + - ( ( - 16 ) ) - + + 44 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT ALL - ( + COUNT( DISTINCT 33 ) ) * 0 + - CASE - 53 WHEN 0 THEN 7 + COUNT( * ) WHEN + - 87 THEN + COALESCE ( + 41, - 75 - - COUNT( * ) ) * + 1 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL - ( + COUNT ( DISTINCT 33 ) ) * 0 + - CASE - 53 WHEN 0 THEN 7 + COUNT ( * ) WHEN + - 87 THEN + COALESCE ( + 41, - 75 - - COUNT ( * ) ) * + 1 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT ALL - 83 * + CAST( NULL AS SIGNED ) + + + 85 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - 83 * + CAST ( NULL AS INTEGER ) + + + 85 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL + COUNT( * ) * 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL + COUNT ( * ) * 13 AS col1
----
13

query I rowsort
SELECT - 86 + - + ( + 26 )
----
-112

query I rowsort
SELECT - - ( - 14 ) * - - 31
----
-434

query I rowsort
SELECT + 60 * - - 96 AS col0
----
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ( - MIN( + 10 ) ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4366
SELECT ( - MIN ( + 10 ) ) AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT + 14 * NULLIF ( + 12, 47 * + - 5 ) - - 61 + - 55 DIV 16 AS col2
----
226

skipif mysql # not compatible
query I rowsort label-4367
SELECT + 14 * NULLIF ( + 12, 47 * + - 5 ) - - 61 + - 55 / 16 AS col2
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT + + COUNT( * ) - - 31 + ( - + 71 ) + - 50 * - + 60 col0
----
2961

skipif mysql # not compatible
query I rowsort label-4368
SELECT + + COUNT ( * ) - - 31 + ( - + 71 ) + - 50 * - + 60 col0
----
2961

query I rowsort
SELECT ALL 46 * + 18 * - 23 * 23 col0
----
-438012

query II rowsort
SELECT ALL - 80 AS col1, - 45 AS col0
----
-80
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-4371
SELECT 51, COALESCE ( - 3, COUNT( * ) ) AS col2
----
51
-3

skipif mysql # not compatible
query II rowsort label-4371
SELECT 51, COALESCE ( - 3, COUNT ( * ) ) AS col2
----
51
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT + COUNT( * ) + - - 77 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4372
SELECT + COUNT ( * ) + - - 77 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4373
SELECT 89 AS col2, COUNT( * ) + + - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
89
NULL

skipif mysql # not compatible
query II rowsort label-4373
SELECT 89 AS col2, COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT + NULLIF ( 75, + 52 ) / - - 89 * COALESCE ( 79, + 90 ) + - COUNT( * ) + + 96 - - + CASE - - 50 WHEN + 60 THEN NULL WHEN - 24 * + 33 THEN 73 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT + NULLIF ( 75, + 52 ) / - - 89 * COALESCE ( 79, + 90 ) + - COUNT ( * ) + + 96 - - + CASE - - 50 WHEN + 60 THEN NULL WHEN - 24 * + 33 THEN 73 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + ( - 64 ) + + MIN( - 88 )
----
-152

skipif mysql # not compatible
query I rowsort label-4375
SELECT + ( - 64 ) + + MIN ( - 88 )
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT + CAST( NULL AS SIGNED ) / - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT + CAST ( NULL AS INTEGER ) / - 33 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 16 + - 33 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4378
SELECT + 45 + COALESCE ( + 12, - 72 ) - + 23 + + 37 / - COUNT( - 23 ) + + + 69 * - ( + 9 ) * 89 + + CAST( NULL AS SIGNED ) + 6 + - + COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT + 45 + COALESCE ( + 12, - 72 ) - + 23 + + 37 / - COUNT ( - 23 ) + + + 69 * - ( + 9 ) * 89 + + CAST ( NULL AS INTEGER ) + 6 + - + COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 80 ) * - 18 AS col1
----
-1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT - CAST( - + 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-4380
SELECT - CAST ( - + 58 AS INTEGER )
----
58

query II rowsort
SELECT 67 col1, 63
----
67
63

query I rowsort
SELECT - ( + 90 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT DISTINCT 3 + + COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT 3 + + COUNT ( * ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT - 15 + - COALESCE ( - COUNT( * ), - - COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-4384
SELECT - 15 + - COALESCE ( - COUNT ( * ), - - COUNT ( * ) )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4385
SELECT ALL - 65 + - 98 DIV 32
----
-68

skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL - 65 + - 98 / 32
----
-68

query I rowsort
SELECT ALL + ( + 25 ) + + 1 + - 17 AS col1
----
9

query II rowsort
SELECT + - 33, + 90 AS col0
----
-33
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4388
SELECT - MIN( DISTINCT - + 88 ) DIV COUNT( ALL 57 ) * 82 DIV + 76 + + - 80 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4388
SELECT - MIN ( DISTINCT - + 88 ) / COUNT ( ALL 57 ) * 82 / + 76 + + - 80 AS col1
----
14

query I rowsort
SELECT - 58 * 99
----
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL + + 7 * + + MIN( - 55 ) + + 96 col2
----
-289

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL + + 7 * + + MIN ( - 55 ) + + 96 col2
----
-289

onlyif mysql # aggregate syntax: 
query II rowsort label-4391
SELECT 58 AS col0, - ( - COALESCE ( + ( - ( - SUM( - - 41 ) ) ), + 99 ) ) * - 60 col0
----
58
-2460

skipif mysql # not compatible
query II rowsort label-4391
SELECT 58 AS col0, - ( - COALESCE ( + ( - ( - SUM ( - - 41 ) ) ), + 99 ) ) * - 60 col0
----
58
-2460

query I rowsort
SELECT + COALESCE ( + 54, - 71 + - + 37 + + 69 + - ( - 16 ) ) col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - + 29 - + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - + 29 - + 35 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4394
SELECT - 99 * AVG ( - 90 ) + 89 + 61 + CASE + + 35 WHEN 89 THEN + 5 * 45 + + CAST( 58 AS SIGNED ) + - 26 WHEN - - 14 - 65 * + COUNT( * ) THEN ( + - 14 ) WHEN + + 74 * - 4 THEN NULL END + + + CAST( NULL AS DECIMAL ) * + 94, + 35 AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-4394
SELECT - 99 * AVG ( - 90 ) + 89 + 61 + CASE + + 35 WHEN 89 THEN + 5 * 45 + + CAST ( 58 AS INTEGER ) + - 26 WHEN - - 14 - 65 * + COUNT ( * ) THEN ( + - 14 ) WHEN + + 74 * - 4 THEN NULL END + + + CAST ( NULL AS REAL ) * + 94, + 35 AS col0
----
NULL
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT - - 65 * + 99 + 58 * + 0 - COUNT( * ) AS col2
----
6434

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT - - 65 * + 99 + 58 * + 0 - COUNT ( * ) AS col2
----
6434

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT ALL + - 3 * - + COUNT( * ) + + MIN( DISTINCT 30 ) * - + 17 * + 16 AS col1, + COALESCE ( - - 2, MAX( ALL - 41 ) + - 49 * + + 41, + + 69 ) * 66
----
-8157
132

skipif mysql # not compatible
query II rowsort label-4396
SELECT ALL + - 3 * - + COUNT ( * ) + + MIN ( DISTINCT 30 ) * - + 17 * + 16 AS col1, + COALESCE ( - - 2, MAX ( ALL - 41 ) + - 49 * + + 41, + + 69 ) * 66
----
-8157
132

query I rowsort
SELECT - 61 * - NULLIF ( - + 44, - + 80 * + 3 * + 99 ) AS col1
----
-2684

onlyif mysql # aggregate syntax: 
query II rowsort label-4398
SELECT DISTINCT + COUNT( * ), - 42 col0
----
1
-42

skipif mysql # not compatible
query II rowsort label-4398
SELECT DISTINCT + COUNT ( * ), - 42 col0
----
1
-42

query I rowsort
SELECT + 11 * - + 91 + - 1 col2
----
-1002

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT - NULLIF ( + 30, - 23 + - 37 + COUNT( * ) * 51 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4400
SELECT - NULLIF ( + 30, - 23 + - 37 + COUNT ( * ) * 51 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT COUNT( + 75 ) + 10 * + 82 AS col0, 5
----
821
5

skipif mysql # not compatible
query II rowsort label-4401
SELECT COUNT ( + 75 ) + 10 * + 82 AS col0, 5
----
821
5

query I rowsort
SELECT - ( 41 ) AS col0
----
-41

query I rowsort
SELECT 66 * - - 29
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL + 42 + 7 + + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL + 42 + 7 + + COUNT ( * )
----
50

query I rowsort
SELECT 72 - CASE - - 38 WHEN - 41 THEN 26 WHEN NULLIF ( 46, - - 57 ) THEN + - 31 END
----
NULL

query I rowsort
SELECT ( - ( ( 18 ) ) ) * + 16 + + 36 + - 12 * - 57
----
432

query I rowsort
SELECT DISTINCT ( - + 46 ) + ( - 83 ) AS col0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT COUNT( * ) - + 57 - COUNT( * ) - - 34 + + - 34 * - - 78
----
-2675

skipif mysql # not compatible
query I rowsort label-4408
SELECT COUNT ( * ) - + 57 - COUNT ( * ) - - 34 + + - 34 * - - 78
----
-2675

query I rowsort
SELECT DISTINCT 50 * + - 36
----
-1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4410
SELECT 26 DIV - ( - SUM( ALL - 18 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4410
SELECT 26 / - ( - SUM ( ALL - 18 ) )
----
-1

query I rowsort
SELECT ALL 61 + - ( 86 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - 59 + - + COUNT( DISTINCT + - 3 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4412
SELECT - 59 + - + COUNT ( DISTINCT + - 3 ) AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT CAST( 2 AS SIGNED ) + + 47 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4413
SELECT CAST ( 2 AS INTEGER ) + + 47 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT COUNT( * ) / + MIN( 33 ) - + + CASE - CAST( NULL AS SIGNED ) WHEN - 60 THEN NULL WHEN - - 64 THEN + 34 / ( - 22 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4414
SELECT COUNT ( * ) / + MIN ( 33 ) - + + CASE - CAST ( NULL AS INTEGER ) WHEN - 60 THEN NULL WHEN - - 64 THEN + 34 / ( - 22 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT DISTINCT 17 * - - NULLIF ( MIN( - ( + + 59 ) ), 7 ) * + + 21 col0
----
-21063

skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT 17 * - - NULLIF ( MIN ( - ( + + 59 ) ), 7 ) * + + 21 col0
----
-21063

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT COUNT( * ) - 31 * 43
----
-1332

skipif mysql # not compatible
query I rowsort label-4416
SELECT COUNT ( * ) - 31 * 43
----
-1332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT + CAST( - + COUNT( * ) AS SIGNED ) + - + 48 + ( 98 ) col2
----
49

skipif mysql # not compatible
query I rowsort label-4417
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) + - + 48 + ( 98 ) col2
----
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4418
SELECT + 58 * COALESCE ( - - 18, 60 * + 19 + + 50 ) + 11 DIV - + CAST( - 9 AS SIGNED ) AS col1
----
1045

skipif mysql # not compatible
query I rowsort label-4418
SELECT + 58 * COALESCE ( - - 18, 60 * + 19 + + 50 ) + 11 / - + CAST ( - 9 AS INTEGER ) AS col1
----
1045

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + 67 * - - COUNT( * ) - + ( + + 29 ) * ( + - 42 ) * + 66 + - 23 + ( - COALESCE ( - COUNT( * ), - 47 * - 80 + - - ( + - 25 ) + - + 44, 94 ) ) + ( + COALESCE ( - 45, 66 ) ) * 27 col2
----
79218

skipif mysql # not compatible
query I rowsort label-4419
SELECT + 67 * - - COUNT ( * ) - + ( + + 29 ) * ( + - 42 ) * + 66 + - 23 + ( - COALESCE ( - COUNT ( * ), - 47 * - 80 + - - ( + - 25 ) + - + 44, 94 ) ) + ( + COALESCE ( - 45, 66 ) ) * 27 col2
----
79218

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - COUNT( * ) - 52 * - COUNT( * ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4420
SELECT - COUNT ( * ) - 52 * - COUNT ( * ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT 91 DIV - 6
----
-15

skipif mysql # not compatible
query I rowsort label-4421
SELECT 91 / - 6
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT ALL - 10 + + 27 - - COUNT( * ) * - - 99 + - SUM( DISTINCT + - 39 )
----
155

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL - 10 + + 27 - - COUNT ( * ) * - - 99 + - SUM ( DISTINCT + - 39 )
----
155

query I rowsort
SELECT DISTINCT + 55 + 41 AS col2
----
96

query I rowsort
SELECT 1 * - 8
----
-8

query I rowsort
SELECT 81 + + COALESCE ( - 24, - 29 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT 17 - - NULLIF ( 35, COUNT( + 13 ) ) + - - COALESCE ( - 36, + 64, - + 3 ) * - - 41
----
-1424

skipif mysql # not compatible
query I rowsort label-4426
SELECT 17 - - NULLIF ( 35, COUNT ( + 13 ) ) + - - COALESCE ( - 36, + 64, - + 3 ) * - - 41
----
-1424

onlyif mysql # aggregate syntax: 
query II rowsort label-4427
SELECT 14, + COUNT( * ) col1
----
14
1

skipif mysql # not compatible
query II rowsort label-4427
SELECT 14, + COUNT ( * ) col1
----
14
1

query I rowsort
SELECT NULLIF ( - 86, - 72 ) + + ( + + 54 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL + 11 + + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL + 11 + + + COUNT ( * )
----
12

query I rowsort
SELECT 7 + 70 AS col0
----
77

query I rowsort
SELECT DISTINCT + 66 + + ( 74 ) * 10 + - 92 AS col2
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT ALL + COUNT( * ) - + 24
----
-23

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL + COUNT ( * ) - + 24
----
-23

query I rowsort
SELECT 6 * 1
----
6

query I rowsort
SELECT 42 * 44
----
1848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4435
SELECT ALL - CASE - CAST( NULL AS SIGNED ) WHEN 4 + - + 32 THEN + COUNT( * ) / + 93 / + 3 * ( - - 1 ) - + 64 + + 68 + + COUNT( * ) * + 89 END * - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL - CASE - CAST ( NULL AS INTEGER ) WHEN 4 + - + 32 THEN + COUNT ( * ) / + 93 / + 3 * ( - - 1 ) - + 64 + + 68 + + COUNT ( * ) * + 89 END * - 90 AS col0
----
NULL

query I rowsort
SELECT 13 + 19 AS col0
----
32

query II rowsort
SELECT - 96 AS col0, 45 * - - 7 AS col0
----
-96
315

query I rowsort
SELECT + 40 + + 66 AS col1
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-4439
SELECT ALL 10 - - + COUNT( * ) * + + 96 col2, - 97 * + COUNT( * ) AS col2
----
106
-97

skipif mysql # not compatible
query II rowsort label-4439
SELECT ALL 10 - - + COUNT ( * ) * + + 96 col2, - 97 * + COUNT ( * ) AS col2
----
106
-97

query I rowsort
SELECT 96 * + + 9 AS col0
----
864

query I rowsort
SELECT ALL - 87 * 15 * 35 + + ( - 19 ) AS col0
----
-45694

query I rowsort
SELECT + 16 * 16
----
256

query I rowsort
SELECT ALL + 15 * + 90 * - 23
----
-31050

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT 21 * + CASE - + CASE 83 WHEN - 78 THEN - 84 + + 38 ELSE - 93 END WHEN - NULLIF ( 10, + 69 * - + 18 + + - COALESCE ( - - 60, 59 * + 3 + + NULLIF ( - - 92, - 11 ) ) * + + 36 - + 87 ) THEN NULL WHEN + - 67 THEN - 81 * - COUNT( ALL - + 33 ) + + 43 END + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT 21 * + CASE - + CASE 83 WHEN - 78 THEN - 84 + + 38 ELSE - 93 END WHEN - NULLIF ( 10, + 69 * - + 18 + + - COALESCE ( - - 60, 59 * + 3 + + NULLIF ( - - 92, - 11 ) ) * + + 36 - + 87 ) THEN NULL WHEN + - 67 THEN - 81 * - COUNT ( ALL - + 33 ) + + 43 END + - 5
----
NULL

query I rowsort
SELECT 65 * 97 AS col1
----
6305

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT - + 7 DIV + 96 + 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4446
SELECT - + 7 / + 96 + 45 AS col0
----
45

query I rowsort
SELECT ALL + 71 * - 46 + 8 * + - 90 * NULLIF ( 51, - 99 ) AS col2
----
-39986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4448
SELECT + COUNT( * ) * ( + 80 ) DIV - 50 + - 13 + - + 84 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-4448
SELECT + COUNT ( * ) * ( + 80 ) / - 50 + - 13 + - + 84 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL 35 * - - COUNT( * ) + - 2
----
33

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL 35 * - - COUNT ( * ) + - 2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + ( - 8 ) + + COUNT( * ) * + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-4450
SELECT + ( - 8 ) + + COUNT ( * ) * + COUNT ( * )
----
-7

query I rowsort
SELECT DISTINCT + 69 * 86 AS col0
----
5934

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT ALL 60 * - 9 + COUNT( * ) - - - ( 50 )
----
-589

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL 60 * - 9 + COUNT ( * ) - - - ( 50 )
----
-589

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4453
SELECT + 52 DIV CAST( - 78 AS SIGNED ) * + + 15 + + 65 col0
----
65

skipif mysql # not compatible
query I rowsort label-4453
SELECT + 52 / CAST ( - 78 AS INTEGER ) * + + 15 + + 65 col0
----
65

query I rowsort
SELECT ALL 43 * + 80 + + 39 * - 40
----
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT SUM( DISTINCT + + 65 ) col2
----
65

skipif mysql # not compatible
query I rowsort label-4455
SELECT SUM ( DISTINCT + + 65 ) col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT + SUM( ALL + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-4456
SELECT + SUM ( ALL + 23 )
----
23

query I rowsort
SELECT + 58 * + 46 * - - 41 AS col0
----
109388

query II rowsort
SELECT - 63 + 32 + COALESCE ( 18, + + 3 ), + 63 AS col0
----
-13
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT COUNT( ALL + - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-4459
SELECT COUNT ( ALL + - 84 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT - COUNT( * ) * - - COALESCE ( + 58, - 97, - + 7 + NULLIF ( + MAX( - 62 ), 89 / + 2 + - 99 + 72 * 68 * COUNT( * ) / + + 87 * + + CASE + - COUNT( * ) WHEN + + COUNT( * ) + COALESCE ( 95, SUM( - + 41 ) * - 30 - 20 + + - 37 + 33 ) + + ( + NULLIF ( - + 21, 89 ) ) / SUM( 3 ) + - + COUNT( * ) THEN NULL WHEN - 98 THEN + + 99 END ) + - 12 + + 49 ) + - 8 * + - 7 + + CAST( ( + 18 ) AS SIGNED ) * - + 8 + - 68 col2
----
-214

skipif mysql # not compatible
query I rowsort label-4460
SELECT - COUNT ( * ) * - - COALESCE ( + 58, - 97, - + 7 + NULLIF ( + MAX ( - 62 ), 89 / + 2 + - 99 + 72 * 68 * COUNT ( * ) / + + 87 * + + CASE + - COUNT ( * ) WHEN + + COUNT ( * ) + COALESCE ( 95, SUM ( - + 41 ) * - 30 - 20 + + - 37 + 33 ) + + ( + NULLIF ( - + 21, 89 ) ) / SUM ( 3 ) + - + COUNT ( * ) THEN NULL WHEN - 98 THEN + + 99 END ) + - 12 + + 49 ) + - 8 * + - 7 + + CAST ( ( + 18 ) AS INTEGER ) * - + 8 + - 68 col2
----
-214

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT COUNT( DISTINCT - 71 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4461
SELECT COUNT ( DISTINCT - 71 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT MAX( ALL 26 ) col0
----
26

skipif mysql # not compatible
query I rowsort label-4462
SELECT MAX ( ALL 26 ) col0
----
26

query I rowsort
SELECT - 16 + 81 - + 16 + - + 21 * 50 AS col1
----
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL - 79 + + COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL - 79 + + COUNT ( * ) AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4465
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ), + 75 AS col2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-4465
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ), + 75 AS col2
----
NULL
75

query I rowsort
SELECT - ( - - 77 ) AS col0
----
-77

query I rowsort
SELECT ALL CASE 8 WHEN + 0 * - 26 THEN + 91 ELSE NULL END
----
NULL

query I rowsort
SELECT - 97 * 51 * - + 99
----
489753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT - 32 * + + 1 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT - 32 * + + 1 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 44 - - + ( 42 )
----
86

query I rowsort
SELECT + 61 * + 98 AS col1
----
5978

query I rowsort
SELECT - 43 + + ( + - 93 ) AS col1
----
-136

query I rowsort
SELECT - - 47 - 54
----
-7

query I rowsort
SELECT ALL - + 88 * + 24
----
-2112

query I rowsort
SELECT - - ( 89 ) AS col2
----
89

query I rowsort
SELECT - 13 * - 42
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL - + ( + 94 ) * 49 * + 35 + COUNT( * )
----
-161209

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - + ( + 94 ) * 49 * + 35 + COUNT ( * )
----
-161209

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT - 53 * + + COUNT( * ) + - 88
----
-141

skipif mysql # not compatible
query I rowsort label-4478
SELECT - 53 * + + COUNT ( * ) + - 88
----
-141

onlyif mysql # aggregate syntax: 
query II rowsort label-4479
SELECT - - 11 + - CASE + COUNT( * ) WHEN - 48 + ( 1 ) THEN NULL ELSE + + 33 END AS col2, 6 AS col2
----
-22
6

skipif mysql # not compatible
query II rowsort label-4479
SELECT - - 11 + - CASE + COUNT ( * ) WHEN - 48 + ( 1 ) THEN NULL ELSE + + 33 END AS col2, 6 AS col2
----
-22
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT DISTINCT 46 DIV - 69 + + 89
----
89

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT 46 / - 69 + + 89
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4481
SELECT - 80 DIV 28 * - 24 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4481
SELECT - 80 / 28 * - 24 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4482
SELECT ALL 16 DIV + 5 * + + COUNT( DISTINCT - NULLIF ( - - 36, - 99 + - 77 ) ) + 0
----
3

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL 16 / + 5 * + + COUNT ( DISTINCT - NULLIF ( - - 36, - 99 + - 77 ) ) + 0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4483
SELECT DISTINCT 91 DIV + 32 + - - SUM( DISTINCT - 15 ) + - COUNT( + 53 ) + - 82 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT 91 / + 32 + - - SUM ( DISTINCT - 15 ) + - COUNT ( + 53 ) + - 82 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT ALL - CASE - + COUNT( * ) WHEN - 69 * - ( - - NULLIF ( + 82, - - 77 + NULLIF ( - 12, + + COUNT( ALL + 20 ) ) ) ) THEN + 79 + + 29 * + + 7 END / + 64 * + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL - CASE - + COUNT ( * ) WHEN - 69 * - ( - - NULLIF ( + 82, - - 77 + NULLIF ( - 12, + + COUNT ( ALL + 20 ) ) ) ) THEN + 79 + + 29 * + + 7 END / + 64 * + - 12
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL + + ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL + + ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4486
SELECT + + CAST( + - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4486
SELECT + + CAST ( + - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT - 69 + - 82
----
-151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4488
SELECT ALL 52 DIV - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL 52 / - COUNT ( * ) AS col1
----
-52

query I rowsort
SELECT + 64 * - 81 AS col2
----
-5184

query I rowsort
SELECT 83 * 17 + + 61
----
1472

query I rowsort
SELECT + 40 * 21 AS col2
----
840

query I rowsort
SELECT + 75 * - 55 - - 87 + 17 * + 40 * 58 AS col1
----
35402

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4493
SELECT CASE 58 WHEN - - COUNT( * ) THEN + CASE 95 WHEN + 60 + 69 THEN + 16 ELSE NULL END * - 65 ELSE 55 DIV - 35 + + 63 + - 89 END AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4493
SELECT CASE 58 WHEN - - COUNT ( * ) THEN + CASE 95 WHEN + 60 + 69 THEN + 16 ELSE NULL END * - 65 ELSE 55 / - 35 + + 63 + - 89 END AS col2
----
-27

query I rowsort
SELECT + 4 + 41 * - 43 AS col0
----
-1759

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL 93 * - + 2 - + 46 * - SUM( ALL + + 66 ) col1
----
2850

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL 93 * - + 2 - + 46 * - SUM ( ALL + + 66 ) col1
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL + SUM( + + 66 ) col1
----
66

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL + SUM ( + + 66 ) col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4497
SELECT + 80 + - COUNT( * ) + + + 10 DIV ( 48 ) - - 44 + 22 AS col0
----
145

skipif mysql # not compatible
query I rowsort label-4497
SELECT + 80 + - COUNT ( * ) + + + 10 / ( 48 ) - - 44 + 22 AS col0
----
145

query I rowsort
SELECT ALL + COALESCE ( + 79, ( + + 60 ) * 39 ) * - - 55 - - + 44 AS col0
----
4389

query I rowsort
SELECT DISTINCT 45 * + - 77
----
-3465

query I rowsort
SELECT 20 * - 37 + - 95 AS col2
----
-835

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT + 74 * - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-4501
SELECT + 74 * - COUNT ( * )
----
-74

query I rowsort
SELECT + 20 + + + 61
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT - COUNT( * ) - - - 52 * - 96 AS col0
----
4991

skipif mysql # not compatible
query I rowsort label-4503
SELECT - COUNT ( * ) - - - 52 * - 96 AS col0
----
4991

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT ALL - 86 * 54 * + - 91 - - COUNT( * ) * + - 55 * + CASE WHEN NULL IS NULL THEN - 86 ELSE NULL END AS col0
----
427334

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL - 86 * 54 * + - 91 - - COUNT ( * ) * + - 55 * + CASE WHEN NULL IS NULL THEN - 86 ELSE NULL END AS col0
----
427334

query I rowsort
SELECT + 38 * 52 AS col1
----
1976

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT - COUNT( * ) * + 47 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4506
SELECT - COUNT ( * ) * + 47 AS col0
----
-47

query I rowsort
SELECT DISTINCT + ( + 80 ) * - 60
----
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT + COUNT( DISTINCT + + ( - + 76 ) ) + COUNT( ALL 26 )
----
2

skipif mysql # not compatible
query I rowsort label-4508
SELECT + COUNT ( DISTINCT + + ( - + 76 ) ) + COUNT ( ALL 26 )
----
2

query I rowsort
SELECT ALL - 71 * - - ( - ( + 25 ) )
----
1775

query I rowsort
SELECT + 71 * - NULLIF ( - - 43, - 52 * + 46 - 31 * 25 / + 44 * - - 80 ) AS col1
----
-3053

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4511
SELECT - + ( - + 29 ) + COUNT( * ) DIV MAX( + 94 ) AS col0, 21 AS col2
----
29
21

skipif mysql # not compatible
query II rowsort label-4511
SELECT - + ( - + 29 ) + COUNT ( * ) / MAX ( + 94 ) AS col0, 21 AS col2
----
29
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4512
SELECT 22 AS col1, 36 + - + AVG ( ALL ( + CAST( NULL AS SIGNED ) ) ) col0
----
22
NULL

skipif mysql # not compatible
query II rowsort label-4512
SELECT 22 AS col1, 36 + - + AVG ( ALL ( + CAST ( NULL AS INTEGER ) ) ) col0
----
22
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - MIN( + + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-4513
SELECT - MIN ( + + 23 )
----
-23

query I rowsort
SELECT 35 + + 38 AS col0
----
73

query I rowsort
SELECT - 55 * + 19
----
-1045

query I rowsort
SELECT 94 + + - 74 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT - COUNT( ALL 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-4517
SELECT - COUNT ( ALL 75 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4518
SELECT NULLIF ( - 67, + MIN( - - 44 ) ) DIV 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT NULLIF ( - 67, + MIN ( - - 44 ) ) / 72 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL COUNT( * ) + - - 70
----
71

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL COUNT ( * ) + - - 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT - ( - ( - MIN( DISTINCT + 17 ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-4520
SELECT - ( - ( - MIN ( DISTINCT + 17 ) ) )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL - 63 + + 99 + - COUNT( DISTINCT + 41 ) * + 13 * + - 30 * 39
----
15246

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - 63 + + 99 + - COUNT ( DISTINCT + 41 ) * + 13 * + - 30 * 39
----
15246

query I rowsort
SELECT DISTINCT 56 + 15 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT 5 + + + COUNT( * ) + + - 97 * - COUNT( + + 22 ) AS col2
----
103

skipif mysql # not compatible
query I rowsort label-4523
SELECT 5 + + + COUNT ( * ) + + - 97 * - COUNT ( + + 22 ) AS col2
----
103

query I rowsort
SELECT + 5 * + 22 col2
----
110

query II rowsort
SELECT + 89 AS col2, - 10 + - - 0 * + - 88 * 61 AS col0
----
89
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4526
SELECT + - 84 AS col2, CAST( + 49 AS SIGNED ) DIV COUNT( * )
----
-84
49

skipif mysql # not compatible
query II rowsort label-4526
SELECT + - 84 AS col2, CAST ( + 49 AS INTEGER ) / COUNT ( * )
----
-84
49

query I rowsort
SELECT 17 * - - 85 + - - 99
----
1544

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT 43 * 41 * - 50 * SUM( + - 95 )
----
8374250

skipif mysql # not compatible
query I rowsort label-4528
SELECT 43 * 41 * - 50 * SUM ( + - 95 )
----
8374250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4529
SELECT - 71 DIV + 5 + + + COUNT( * ) + NULLIF ( - COUNT( * ), + COUNT( * ) + - 75 * + 59 ) DIV - COUNT( * ) - - + 30 - + - 23
----
41

skipif mysql # not compatible
query I rowsort label-4529
SELECT - 71 / + 5 + + + COUNT ( * ) + NULLIF ( - COUNT ( * ), + COUNT ( * ) + - 75 * + 59 ) / - COUNT ( * ) - - + 30 - + - 23
----
41

query II rowsort
SELECT DISTINCT + 97 - + 0 AS col2, - 79
----
97
-79

query I rowsort
SELECT 1 * - - 3 AS col0
----
3

query III rowsort
SELECT DISTINCT - 39 AS col2, + 60 * - 42 + 9 AS col2, - 27
----
-39
-2511
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT 16 + - 79 * - 1 - + + ( - + 32 ) + 83 + - MIN( DISTINCT - + 62 ) + - - 88 AS col2
----
360

skipif mysql # not compatible
query I rowsort label-4533
SELECT 16 + - 79 * - 1 - + + ( - + 32 ) + 83 + - MIN ( DISTINCT - + 62 ) + - - 88 AS col2
----
360

query I rowsort
SELECT 16 * 31
----
496

query I rowsort
SELECT ALL 32 * - 91
----
-2912

onlyif mysql # DIV for integer division: 
query I rowsort label-4536
SELECT 22 DIV 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT 22 / 60 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4537
SELECT + 54, - CAST( NULL AS SIGNED ) * - + 78 AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-4537
SELECT + 54, - CAST ( NULL AS INTEGER ) * - + 78 AS col0
----
54
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT - COUNT( * ) * - 68
----
68

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - COUNT ( * ) * - 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT 26 * CASE 73 WHEN 23 THEN - 30 END * 42 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT 26 * CASE 73 WHEN 23 THEN - 30 END * 42 - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 13 AS col0, 81
----
13
81

query I rowsort
SELECT + 68 * + 21
----
1428

query I rowsort
SELECT DISTINCT - 8 + 47
----
39

query I rowsort
SELECT - 12 - 62 AS col0
----
-74

query II rowsort
SELECT + 87 AS col0, - ( NULLIF ( - - 67, - 48 ) )
----
87
-67

query I rowsort
SELECT + 26 - ( - 78 )
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4546
SELECT - CAST( - COUNT( * ) AS SIGNED ), 84 / - 68 * 18 * + ( - 60 ) * + COUNT( * ) * + - 5 * + 80 + - CASE 93 WHEN 94 THEN + - CASE 88 WHEN + 39 THEN NULL WHEN - AVG ( + 21 ) / + CAST( + + 76 AS SIGNED ) THEN + ( - 68 ) / 79 * + 79 * - 1 * 85 + - + 7 + + + 66 + + 86 + + COUNT( * ) + - COUNT( * ) * ( - 97 ) * 43 + + COUNT( * ) * 60 * - - AVG ( - 72 ) + + MIN( ALL + - 83 ) - - 25 * + 54 - 27 END - + 78 WHEN + - 39 THEN 84 END + - CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4546
SELECT - CAST ( - COUNT ( * ) AS INTEGER ), 84 / - 68 * 18 * + ( - 60 ) * + COUNT ( * ) * + - 5 * + 80 + - CASE 93 WHEN 94 THEN + - CASE 88 WHEN + 39 THEN NULL WHEN - AVG ( + 21 ) / + CAST ( + + 76 AS INTEGER ) THEN + ( - 68 ) / 79 * + 79 * - 1 * 85 + - + 7 + + + 66 + + 86 + + COUNT ( * ) + - COUNT ( * ) * ( - 97 ) * 43 + + COUNT ( * ) * 60 * - - AVG ( - 72 ) + + MIN ( ALL + - 83 ) - - 25 * + 54 - 27 END - + 78 WHEN + - 39 THEN 84 END + - CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

query I rowsort
SELECT ALL CASE - + 78 WHEN - 4 THEN + 2 / + 90 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4548
SELECT DISTINCT 83 * 91 DIV - 24 + - 37 AS col0
----
-351

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT 83 * 91 / - 24 + - 37 AS col0
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL - 15 + + - COUNT( * ) + 7 * - 99
----
-709

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - 15 + + - COUNT ( * ) + 7 * - 99
----
-709

query I rowsort
SELECT ALL ( + 66 ) * + ( - - 48 ) col2
----
3168

query I rowsort
SELECT - 75 - 71
----
-146

onlyif mysql # aggregate syntax: 
query III rowsort label-4552
SELECT DISTINCT - 65 * - NULLIF ( - - MAX( DISTINCT + 2 ), + - 19 ) + - + 68 AS col0, + 42 AS col1, - 66 + - + 1 AS col0
----
62
42
-67

skipif mysql # not compatible
query III rowsort label-4552
SELECT DISTINCT - 65 * - NULLIF ( - - MAX ( DISTINCT + 2 ), + - 19 ) + - + 68 AS col0, + 42 AS col1, - 66 + - + 1 AS col0
----
62
42
-67

query II rowsort
SELECT - 42 + - - 17 + 61 * + 21, + 60 + + + 41 AS col2
----
1256
101

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT MIN( DISTINCT + 93 ) + - 37 col0
----
56

skipif mysql # not compatible
query I rowsort label-4554
SELECT MIN ( DISTINCT + 93 ) + - 37 col0
----
56

query I rowsort
SELECT + 25 * + 72
----
1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT - - 14 DIV - 69 * + 5 * 28 - + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4556
SELECT - - 14 / - 69 * + 5 * 28 - + + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL + COUNT( * ) * + ( 11 ) - + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL + COUNT ( * ) * + ( 11 ) - + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-4558
SELECT SUM( DISTINCT - 74 ) + + 96, - 12 AS col0
----
22
-12

skipif mysql # not compatible
query II rowsort label-4558
SELECT SUM ( DISTINCT - 74 ) + + 96, - 12 AS col0
----
22
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT 36 * CAST( + COUNT( * ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-4559
SELECT 36 * CAST ( + COUNT ( * ) AS INTEGER )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT - 78 * COALESCE ( + ( - 4 ), - 48 - + 55 ) * COUNT( * ) + - 10 AS col0
----
302

skipif mysql # not compatible
query I rowsort label-4560
SELECT - 78 * COALESCE ( + ( - 4 ), - 48 - + 55 ) * COUNT ( * ) + - 10 AS col0
----
302

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL + NULLIF ( - COUNT( * ), 94 ) * 54
----
-54

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + NULLIF ( - COUNT ( * ), 94 ) * 54
----
-54

query I rowsort
SELECT 57 * + - 25 + + 12
----
-1413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4563
SELECT ALL - CAST( - 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL - CAST ( - 56 AS INTEGER )
----
56

query I rowsort
SELECT 26 * + ( + + 60 )
----
1560

query I rowsort
SELECT ALL + 57 * - 64 AS col2
----
-3648

query I rowsort
SELECT 41 + + 9
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL - COUNT( ALL - 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL - COUNT ( ALL - 44 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT DISTINCT + 76 + 12 * + ( COUNT( * ) ) + 21 + - - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT + 76 + 12 * + ( COUNT ( * ) ) + 21 + - - COUNT ( * )
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4569
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COALESCE ( - + 32, + COALESCE ( 90, - + 73 * + 29, + 3 ), - 84 ) + + 18 - + 63 * - COUNT( * ) * 84 * - 35 + + 73 * + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COALESCE ( - + 32, + COALESCE ( 90, - + 73 * + 29, + 3 ), - 84 ) + + 18 - + 63 * - COUNT ( * ) * 84 * - 35 + + 73 * + 81
----
NULL

query I rowsort
SELECT ALL + CASE - - 82 WHEN + 72 THEN + - 41 WHEN - 99 THEN NULL END + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4571
SELECT + + ( + - 95 ) - - COUNT( * ) DIV + NULLIF ( - + 84, + - COUNT( * ) * + 28 ) + 87
----
-8

skipif mysql # not compatible
query I rowsort label-4571
SELECT + + ( + - 95 ) - - COUNT ( * ) / + NULLIF ( - + 84, + - COUNT ( * ) * + 28 ) + 87
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT + - COUNT( * ) + + 32 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4572
SELECT + - COUNT ( * ) + + 32 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT + ( + - 83 ) * + 25 + + ( + - 58 ) + - + COUNT( * )
----
-2134

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + ( + - 83 ) * + 25 + + ( + - 58 ) + - + COUNT ( * )
----
-2134

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL - + 22 + + 32 - - 12 * - ( COUNT( * ) ) * + 50 + + 56 * 44 col1
----
1874

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - + 22 + + 32 - - 12 * - ( COUNT ( * ) ) * + 50 + + 56 * 44 col1
----
1874

query I rowsort
SELECT DISTINCT + 85 + - 74
----
11

query I rowsort
SELECT ALL - 27 * - + 83
----
2241

query I rowsort
SELECT ALL + + 10 * 92 AS col2
----
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4578
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS SIGNED ) - 69 + + - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) - 69 + + - 23 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4579
SELECT ALL + COALESCE ( - CAST( NULL AS SIGNED ), + + 98 * - + 85, + 35 DIV - 51 + - - 15 DIV + COUNT( * ) ) AS col1
----
-8330

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL + COALESCE ( - CAST ( NULL AS INTEGER ), + + 98 * - + 85, + 35 / - 51 + - - 15 / + COUNT ( * ) ) AS col1
----
-8330

onlyif mysql # aggregate syntax: 
query II rowsort label-4580
SELECT - + 97 * - 82, - NULLIF ( + + 73, + - COUNT( * ) + COUNT( * ) * + 99 + + COUNT( * ) + - + 32 ) AS col0
----
7954
-73

skipif mysql # not compatible
query II rowsort label-4580
SELECT - + 97 * - 82, - NULLIF ( + + 73, + - COUNT ( * ) + COUNT ( * ) * + 99 + + COUNT ( * ) + - + 32 ) AS col0
----
7954
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT - 35 + + + CASE - CASE + AVG ( DISTINCT + + 62 ) WHEN NULLIF ( - + 87, + 72 * + ( COUNT( * ) ) + + 58 * - SUM( - - 0 ) ) THEN + MAX( DISTINCT - - 3 ) WHEN CAST( + NULLIF ( 66, - + 84 ) AS SIGNED ) + 40 THEN NULL END WHEN - 47 / - - ( - 15 ) THEN NULL ELSE 39 END + + 42 + + 87 + - - 54 * + COUNT( * )
----
187

skipif mysql # not compatible
query I rowsort label-4581
SELECT - 35 + + + CASE - CASE + AVG ( DISTINCT + + 62 ) WHEN NULLIF ( - + 87, + 72 * + ( COUNT ( * ) ) + + 58 * - SUM ( - - 0 ) ) THEN + MAX ( DISTINCT - - 3 ) WHEN CAST ( + NULLIF ( 66, - + 84 ) AS INTEGER ) + 40 THEN NULL END WHEN - 47 / - - ( - 15 ) THEN NULL ELSE 39 END + + 42 + + 87 + - - 54 * + COUNT ( * )
----
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4582
SELECT DISTINCT 75 - + MIN( ALL - COALESCE ( - - 51, 48 + - 49 * + ( 64 ) ) ) * - 70 + - 15 DIV - - 17 AS col0
----
-3495

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT 75 - + MIN ( ALL - COALESCE ( - - 51, 48 + - 49 * + ( 64 ) ) ) * - 70 + - 15 / - - 17 AS col0
----
-3495

query I rowsort
SELECT + - 42 + ( 52 )
----
10

query I rowsort
SELECT + 5 + - 90 - - - ( - 54 ) * - + 63 AS col2
----
-3487

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT + 81 + + 50 * ( + + CASE - 27 WHEN + + ( - COUNT( * ) ) + 53 * 86 THEN + + 26 - + 93 WHEN 60 * - COALESCE ( + COUNT( * ), - 64 ) + - + 82 THEN 32 / + 16 * 94 ELSE NULL END ) + COUNT( + - 68 ) + + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT + 81 + + 50 * ( + + CASE - 27 WHEN + + ( - COUNT ( * ) ) + 53 * 86 THEN + + 26 - + 93 WHEN 60 * - COALESCE ( + COUNT ( * ), - 64 ) + - + 82 THEN 32 / + 16 * 94 ELSE NULL END ) + COUNT ( + - 68 ) + + 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL 87 * + - SUM( ALL - - ( - 67 ) ) * + + 95
----
553755

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL 87 * + - SUM ( ALL - - ( - 67 ) ) * + + 95
----
553755

query I rowsort
SELECT ALL + CASE 6 WHEN + 9 THEN + + ( - - 19 ) END
----
NULL

query I rowsort
SELECT - 75 * - 10 * + 12 + + + 35
----
9035

query I rowsort
SELECT ALL + 62 col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT + COUNT( DISTINCT 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4590
SELECT + COUNT ( DISTINCT 61 )
----
1

query I rowsort
SELECT + 45 * - 9 col0
----
-405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4592
SELECT 52 * ( - 11 ) * - ( - 59 ) + - COALESCE ( - CASE 85 WHEN + 95 + 95 THEN - 81 * + CASE + COUNT( * ) WHEN + COUNT( * ) THEN + 1 + 12 + + 38 + - 54 END + + - NULLIF ( COALESCE ( + 56, - 56 * + COUNT( ( - 30 ) ) DIV + + ( - 75 ) + + CAST( NULL AS SIGNED ) + + 23 DIV - 55, + - COUNT( * ) * + 11 ), - 45 * + + COALESCE ( - - ( - 49 ), - COUNT( * ) * + COUNT( - 68 ) + - + 40 ) - + ( + NULLIF ( - 15, 20 ) ) ) + - 67 ELSE - COUNT( * ) - + 26 DIV - 68 + 37 END, - 96 )
----
-33712

skipif mysql # not compatible
query I rowsort label-4592
SELECT 52 * ( - 11 ) * - ( - 59 ) + - COALESCE ( - CASE 85 WHEN + 95 + 95 THEN - 81 * + CASE + COUNT ( * ) WHEN + COUNT ( * ) THEN + 1 + 12 + + 38 + - 54 END + + - NULLIF ( COALESCE ( + 56, - 56 * + COUNT ( ( - 30 ) ) / + + ( - 75 ) + + CAST ( NULL AS INTEGER ) + + 23 / - 55, + - COUNT ( * ) * + 11 ), - 45 * + + COALESCE ( - - ( - 49 ), - COUNT ( * ) * + COUNT ( - 68 ) + - + 40 ) - + ( + NULLIF ( - 15, 20 ) ) ) + - 67 ELSE - COUNT ( * ) - + 26 / - 68 + 37 END, - 96 )
----
-33712

query II rowsort
SELECT ( - ( - 76 ) ) AS col2, + 24
----
76
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4594
SELECT + 24 DIV - NULLIF ( + ( - ( ( 30 ) ) ), + 22 * + 67 + + COUNT( * ) + + + 80 - 39 * CAST( 3 AS SIGNED ) ) + + 80 * - 59
----
-4720

skipif mysql # not compatible
query I rowsort label-4594
SELECT + 24 / - NULLIF ( + ( - ( ( 30 ) ) ), + 22 * + 67 + + COUNT ( * ) + + + 80 - 39 * CAST ( 3 AS INTEGER ) ) + + 80 * - 59
----
-4720

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT ALL - COUNT( * ) * - + MIN( + 45 ) + + 58 * 42 * 43
----
104793

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - COUNT ( * ) * - + MIN ( + 45 ) + + 58 * 42 * 43
----
104793

query I rowsort
SELECT + 15 * + 19
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL + COUNT( ALL - 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL + COUNT ( ALL - 24 ) AS col1
----
1

query II rowsort
SELECT + 99, 99
----
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4599
SELECT ALL + 80 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-4599
SELECT ALL + 80 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
80
NULL

query I rowsort
SELECT DISTINCT - 10 * + - 69 + 72 + 97
----
859

query I rowsort
SELECT + ( - 39 ) col1
----
-39

query I rowsort
SELECT - 44 * + - 70
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL - 77 * COUNT( * ) * + 31 + + 57
----
-2330

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL - 77 * COUNT ( * ) * + 31 + + 57
----
-2330

query I rowsort
SELECT + 55 * + - 30
----
-1650

query I rowsort
SELECT NULLIF ( - 16, - 53 + - 58 + - 58 + 91 * - 73 + - 46 + - 3 + - 42 * + ( + 5 ) * + 56 ) AS col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT + CAST( 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-4606
SELECT + CAST ( 93 AS INTEGER )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4607
SELECT ALL + NULLIF ( + 66, + 19 ) col1, + 30 * - + 70 + NULLIF ( - COUNT( ALL - 49 ), - 79 * - 84 * + - 23 ) * 2 AS col1
----
66
-2102

skipif mysql # not compatible
query II rowsort label-4607
SELECT ALL + NULLIF ( + 66, + 19 ) col1, + 30 * - + 70 + NULLIF ( - COUNT ( ALL - 49 ), - 79 * - 84 * + - 23 ) * 2 AS col1
----
66
-2102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT ALL - - 87 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL - - 87 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT ALL + CASE 40 WHEN - 52 THEN 11 ELSE NULL END * ( COUNT( DISTINCT 39 ) ) + - 77 + - - 83 AS col1, + 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-4609
SELECT ALL + CASE 40 WHEN - 52 THEN 11 ELSE NULL END * ( COUNT ( DISTINCT 39 ) ) + - 77 + - - 83 AS col1, + 27
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT ALL SUM( 10 )
----
10

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL SUM ( 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL + COUNT( DISTINCT - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL + COUNT ( DISTINCT - 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - - COALESCE ( + + 13, + COALESCE ( COUNT( * ), + 82 ) )
----
13

skipif mysql # not compatible
query I rowsort label-4612
SELECT - - COALESCE ( + + 13, + COALESCE ( COUNT ( * ), + 82 ) )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4613
SELECT + CASE 76 WHEN + 28 * - COUNT( * ) - + 81 * - 35 THEN 40 * + ( 55 ) - + COUNT( * ) + - 60 + + 17 - + SUM( ALL 50 ) + + 97 + + + CAST( NULL AS SIGNED ) / - 66 * - 38 / + SUM( 76 ) WHEN CASE - - NULLIF ( - 51, + - 18 ) WHEN + COUNT( DISTINCT 21 ) + + - 6 THEN NULL ELSE - 13 END - - CASE - 43 WHEN - 72 THEN NULL ELSE - 43 END + + 19 + 53 - + 77 * + + 83 + COUNT( * ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT + CASE 76 WHEN + 28 * - COUNT ( * ) - + 81 * - 35 THEN 40 * + ( 55 ) - + COUNT ( * ) + - 60 + + 17 - + SUM ( ALL 50 ) + + 97 + + + CAST ( NULL AS INTEGER ) / - 66 * - 38 / + SUM ( 76 ) WHEN CASE - - NULLIF ( - 51, + - 18 ) WHEN + COUNT ( DISTINCT 21 ) + + - 6 THEN NULL ELSE - 13 END - - CASE - 43 WHEN - 72 THEN NULL ELSE - 43 END + + 19 + 53 - + 77 * + + 83 + COUNT ( * ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4614
SELECT - + 56 col0, - COUNT( * ) * - + 68 * + COALESCE ( + 28, - + CASE + + 65 WHEN COALESCE ( - MIN( ALL - - ( 84 ) ), - 72 * + 83 * - - 98 ) THEN - + CAST( 77 AS SIGNED ) WHEN - CASE COUNT( * ) WHEN + 40 THEN 69 / - - 20 WHEN - + 23 * + 52 THEN NULL ELSE + - 86 - - 31 END / - + 14 + - - 39 + + 11 + - - 65 THEN NULL END + - + COUNT( * ), + ( - + 95 ) ) * + - COUNT( * ) - - SUM( DISTINCT + 86 ) AS col0
----
-56
-1818

skipif mysql # not compatible
query II rowsort label-4614
SELECT - + 56 col0, - COUNT ( * ) * - + 68 * + COALESCE ( + 28, - + CASE + + 65 WHEN COALESCE ( - MIN ( ALL - - ( 84 ) ), - 72 * + 83 * - - 98 ) THEN - + CAST ( 77 AS INTEGER ) WHEN - CASE COUNT ( * ) WHEN + 40 THEN 69 / - - 20 WHEN - + 23 * + 52 THEN NULL ELSE + - 86 - - 31 END / - + 14 + - - 39 + + 11 + - - 65 THEN NULL END + - + COUNT ( * ), + ( - + 95 ) ) * + - COUNT ( * ) - - SUM ( DISTINCT + 86 ) AS col0
----
-56
-1818

query II rowsort
SELECT - 23 AS col0, 88 + - CASE - - 9 WHEN 14 THEN + 36 / - + ( 50 ) + + 1 - - - 35 + 80 ELSE NULL END + + 23 AS col2
----
-23
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4616
SELECT ALL NULLIF ( + MAX( + - 21 ), + COUNT( * ) ) AS col0, CASE + - 46 WHEN - 41 + - 98 THEN - 58 END
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-4616
SELECT ALL NULLIF ( + MAX ( + - 21 ), + COUNT ( * ) ) AS col0, CASE + - 46 WHEN - 41 + - 98 THEN - 58 END
----
-21
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4617
SELECT - - 26 - + - 13 DIV + 10 + + - 8 - + + 18 + - - 79 * - SUM( ALL - - 78 ) + - NULLIF ( + 25, + CAST( 56 AS SIGNED ) * 91 + - 75 ) * + - 39 * 11
----
4564

skipif mysql # not compatible
query I rowsort label-4617
SELECT - - 26 - + - 13 / + 10 + + - 8 - + + 18 + - - 79 * - SUM ( ALL - - 78 ) + - NULLIF ( + 25, + CAST ( 56 AS INTEGER ) * 91 + - 75 ) * + - 39 * 11
----
4564

onlyif mysql # DIV for integer division: 
query I rowsort label-4618
SELECT ALL - - 70 DIV - + 34 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL - - 70 / - + 34 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4619
SELECT - 24 + 27 * + - 93 + - + CAST( + 88 AS SIGNED ) DIV + 48 - + - ( - 8 ) AS col2, + COUNT( * )
----
-2544
1

skipif mysql # not compatible
query II rowsort label-4619
SELECT - 24 + 27 * + - 93 + - + CAST ( + 88 AS INTEGER ) / + 48 - + - ( - 8 ) AS col2, + COUNT ( * )
----
-2544
1

query I rowsort
SELECT + 94 * 83 * + 82 * - - 31
----
19832684

query I rowsort
SELECT DISTINCT - 82 * + 5
----
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT - 37 + + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-4622
SELECT - 37 + + COUNT ( * )
----
-36

query I rowsort
SELECT DISTINCT - ( - 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT ALL - ( - 9 ) * + - MIN( DISTINCT + 3 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL - ( - 9 ) * + - MIN ( DISTINCT + 3 ) AS col1
----
-27

query I rowsort
SELECT ALL 90 * - 17 AS col1
----
-1530

query I rowsort
SELECT - - 85 * + 2 AS col2
----
170

query II rowsort
SELECT ALL + 72, + 67 AS col1
----
72
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT DISTINCT - 47 * 49 + + 29 AS col2, COUNT( ALL + + 88 ) * - 43 + 7 + - 57 * - + 61 * - 47 + NULLIF ( 74, SUM( + ( 46 ) ) )
----
-2274
-163381

skipif mysql # not compatible
query II rowsort label-4628
SELECT DISTINCT - 47 * 49 + + 29 AS col2, COUNT ( ALL + + 88 ) * - 43 + 7 + - 57 * - + 61 * - 47 + NULLIF ( 74, SUM ( + ( 46 ) ) )
----
-2274
-163381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4629
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT - 52 * 6 AS col2
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT + 58 * - + CASE + 29 WHEN + 16 / - 99 THEN + 23 + - ( - - 24 ) + + + 9 + + COUNT( * ) WHEN + 68 * + ( + - 66 ) + ( COUNT( * ) ) THEN - + 85 WHEN - 53 THEN NULL WHEN - - 16 + - AVG ( DISTINCT + 41 ) + - - 87 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT + 58 * - + CASE + 29 WHEN + 16 / - 99 THEN + 23 + - ( - - 24 ) + + + 9 + + COUNT ( * ) WHEN + 68 * + ( + - 66 ) + ( COUNT ( * ) ) THEN - + 85 WHEN - 53 THEN NULL WHEN - - 16 + - AVG ( DISTINCT + 41 ) + - - 87 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 4 + - 63 + + + 0
----
-67

query I rowsort
SELECT - 22 * - + 16 * - 66
----
-23232

onlyif mysql # aggregate syntax: 
query II rowsort label-4634
SELECT DISTINCT + MIN( - - 49 ), 27 + + + 82 * + - ( + 10 ) + + COUNT( * ) * + 81 AS col1
----
49
-712

skipif mysql # not compatible
query II rowsort label-4634
SELECT DISTINCT + MIN ( - - 49 ), 27 + + + 82 * + - ( + 10 ) + + COUNT ( * ) * + 81 AS col1
----
49
-712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4635
SELECT ALL 39 DIV + - 4 + + COUNT( * ) - - 94 + COUNT( * ) + ( 58 ) * - + 49 AS col0
----
-2755

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL 39 / + - 4 + + COUNT ( * ) - - 94 + COUNT ( * ) + ( 58 ) * - + 49 AS col0
----
-2755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4636
SELECT DISTINCT - 16 / + - 67 + - 38 * + + 66 * - CASE MIN( 50 ) WHEN COALESCE ( 25, - 31 / 6 + + + 35, - + 34 + + 74 ) / + + CASE + 40 WHEN COUNT( * ) * + 53 - - 23 THEN - - 68 * + + ( + + 10 ) ELSE - + ( - CAST( 92 AS DECIMAL ) ) + + 6 END / + - 53 + - CASE + MIN( 46 ) WHEN + ( + - 87 ) + + 5 THEN 13 WHEN + CAST( COUNT( * ) AS SIGNED ) * + - 2 + - 46 THEN ( + ( 14 ) ) END + ( + 60 ) THEN + - 61 - 23 + + CASE + COUNT( * ) WHEN - + 24 / - AVG ( ALL 62 ) THEN 8 END + + 57 * 41 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT - 16 / + - 67 + - 38 * + + 66 * - CASE MIN ( 50 ) WHEN COALESCE ( 25, - 31 / 6 + + + 35, - + 34 + + 74 ) / + + CASE + 40 WHEN COUNT ( * ) * + 53 - - 23 THEN - - 68 * + + ( + + 10 ) ELSE - + ( - CAST ( 92 AS REAL ) ) + + 6 END / + - 53 + - CASE + MIN ( 46 ) WHEN + ( + - 87 ) + + 5 THEN 13 WHEN + CAST ( COUNT ( * ) AS INTEGER ) * + - 2 + - 46 THEN ( + ( 14 ) ) END + ( + 60 ) THEN + - 61 - 23 + + CASE + COUNT ( * ) WHEN - + 24 / - AVG ( ALL 62 ) THEN 8 END + + 57 * 41 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT - 57 / 85 + - COUNT( * ) * + CASE 1 WHEN - 32 * - 50 - COUNT( * ) - + COUNT( * ) * + 52 THEN NULL WHEN - 13 * - 30 * - 2 THEN - + 76 * - 79 + - + 71 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT - 57 / 85 + - COUNT ( * ) * + CASE 1 WHEN - 32 * - 50 - COUNT ( * ) - + COUNT ( * ) * + 52 THEN NULL WHEN - 13 * - 30 * - 2 THEN - + 76 * - 79 + - + 71 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4638
SELECT DISTINCT - 66 DIV COUNT( * ) * - 93 * + COUNT( * ) + - SUM( - 0 ) + COUNT( + 14 )
----
6139

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT - 66 / COUNT ( * ) * - 93 * + COUNT ( * ) + - SUM ( - 0 ) + COUNT ( + 14 )
----
6139

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT DISTINCT NULLIF ( 5, 54 ) * + - 33 - + 59 DIV + - 24 AS col2
----
-163

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT NULLIF ( 5, 54 ) * + - 33 - + 59 / + - 24 AS col2
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT DISTINCT 8 + - NULLIF ( + 42, - + 66 ) + - + 66 * + - COUNT( * ) * + 21 * + MIN( ALL - + 53 ) AS col1
----
-73492

skipif mysql # not compatible
query I rowsort label-4640
SELECT DISTINCT 8 + - NULLIF ( + 42, - + 66 ) + - + 66 * + - COUNT ( * ) * + 21 * + MIN ( ALL - + 53 ) AS col1
----
-73492

query I rowsort
SELECT DISTINCT 67 * + - 81
----
-5427

onlyif mysql # DIV for integer division: 
query I rowsort label-4642
SELECT 86 DIV 19 * 25
----
100

skipif mysql # not compatible
query I rowsort label-4642
SELECT 86 / 19 * 25
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT + SUM( - 7 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-4643
SELECT + SUM ( - 7 ) AS col1
----
-7

query I rowsort
SELECT + 15 + + + 83 + - 57 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL - + MAX( DISTINCT - - 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - + MAX ( DISTINCT - - 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT + COUNT( * ) + + MAX( + 56 )
----
57

skipif mysql # not compatible
query I rowsort label-4646
SELECT + COUNT ( * ) + + MAX ( + 56 )
----
57

query I rowsort
SELECT ALL 11 - + + 91
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT - 95 + + MIN( - 71 )
----
-166

skipif mysql # not compatible
query I rowsort label-4648
SELECT - 95 + + MIN ( - 71 )
----
-166

query I rowsort
SELECT ALL - 86 * + 4 + + 18 AS col1
----
-326

query II rowsort
SELECT 74 + - 45 col0, - 97 - 50 AS col0
----
29
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4651
SELECT - 78 + + + 13 * + 58 + CAST( + COUNT( * ) AS SIGNED )
----
677

skipif mysql # not compatible
query I rowsort label-4651
SELECT - 78 + + + 13 * + 58 + CAST ( + COUNT ( * ) AS INTEGER )
----
677

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ( 23 ) * CASE - 76 WHEN + ( + 3 ) + + 87 THEN NULL WHEN COALESCE ( - - 50, + - 43 ) THEN 62 + - 78 WHEN COUNT( 67 ) * - 48 THEN - - 16 ELSE - 67 * - + 36 END
----
55476

skipif mysql # not compatible
query I rowsort label-4652
SELECT ( 23 ) * CASE - 76 WHEN + ( + 3 ) + + 87 THEN NULL WHEN COALESCE ( - - 50, + - 43 ) THEN 62 + - 78 WHEN COUNT ( 67 ) * - 48 THEN - - 16 ELSE - 67 * - + 36 END
----
55476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4653
SELECT + CAST( NULL AS SIGNED ) + + MAX( - 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT + CAST ( NULL AS INTEGER ) + + MAX ( - 10 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 9 * + COALESCE ( - 44, + 25, - 4 ) col0
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT DISTINCT + 93 * 29 * - - COUNT( * ) AS col0
----
2697

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT + 93 * 29 * - - COUNT ( * ) AS col0
----
2697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4656
SELECT + CAST( - + COUNT( * ) AS SIGNED ) + - ( + 86 ) + 20 * + + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-4656
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) + - ( + 86 ) + 20 * + + COUNT ( * )
----
-67

query I rowsort
SELECT DISTINCT ( + ( 38 ) )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4658
SELECT DISTINCT 67 AS col2, - COUNT( * ) DIV - COUNT( * )
----
67
1

skipif mysql # not compatible
query II rowsort label-4658
SELECT DISTINCT 67 AS col2, - COUNT ( * ) / - COUNT ( * )
----
67
1

query I rowsort
SELECT 7 + + ( + ( - NULLIF ( + + 49, + + 29 ) ) ) AS col1
----
-42

query I rowsort
SELECT 10 * 86
----
860

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT COUNT( * ) + - 59
----
-58

skipif mysql # not compatible
query I rowsort label-4661
SELECT COUNT ( * ) + - 59
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT MAX( + 89 ) * - 9 AS col0
----
-801

skipif mysql # not compatible
query I rowsort label-4662
SELECT MAX ( + 89 ) * - 9 AS col0
----
-801

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL - 62 + - COUNT( * ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL - 62 + - COUNT ( * ) col0
----
-63

query I rowsort
SELECT DISTINCT 27 * - 11 col2
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT - COUNT( * ) + - + 44 * 51 AS col1
----
-2245

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT - COUNT ( * ) + - + 44 * 51 AS col1
----
-2245

onlyif mysql # aggregate syntax: 
query II rowsort label-4666
SELECT ALL 40, COUNT( * ) * + COUNT( * ) * + COUNT( * ) AS col0
----
40
1

skipif mysql # not compatible
query II rowsort label-4666
SELECT ALL 40, COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) AS col0
----
40
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4667
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 63 * + 32 / - 74 * + ( - + 61 ) * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 63 * + 32 / - 74 * + ( - + 61 ) * 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4668
SELECT ALL - NULLIF ( + + ( 86 ), ( + - SUM( + 62 ) ) * 12 * COUNT( * ) * + 58 - + CAST( NULL AS DECIMAL ) )
----
-86

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL - NULLIF ( + + ( 86 ), ( + - SUM ( + 62 ) ) * 12 * COUNT ( * ) * + 58 - + CAST ( NULL AS REAL ) )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT 86 + - COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4669
SELECT 86 + - COUNT ( * ) AS col2
----
85

query I rowsort
SELECT ALL 20 - - 53 AS col1
----
73

query I rowsort
SELECT DISTINCT 14 * - 38
----
-532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT DISTINCT - ( CAST( 72 AS SIGNED ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - ( CAST ( 72 AS INTEGER ) ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL - 27 - + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - 27 - + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL COUNT( * ) * 19 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL COUNT ( * ) * 19 AS col1
----
19

query I rowsort
SELECT ALL 60 * - 96 AS col0
----
-5760

query I rowsort
SELECT ( - COALESCE ( 39, + 46 + - 50 ) ) * 63 AS col1
----
-2457

query I rowsort
SELECT DISTINCT 78 * + 5
----
390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4678
SELECT CAST( NULL AS SIGNED ) * CASE - COUNT( * ) WHEN 12 THEN COUNT( DISTINCT 74 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT CAST ( NULL AS INTEGER ) * CASE - COUNT ( * ) WHEN 12 THEN COUNT ( DISTINCT 74 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT ALL COUNT( * ) * CASE AVG ( 52 ) WHEN - SUM( DISTINCT + 76 ) THEN 91 / + CAST( NULL AS SIGNED ) + 83 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL COUNT ( * ) * CASE AVG ( 52 ) WHEN - SUM ( DISTINCT + 76 ) THEN 91 / + CAST ( NULL AS INTEGER ) + 83 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4680
SELECT CASE + ( COUNT( * ) ) WHEN 75 + + ( 58 ) THEN ( 63 ) WHEN 74 THEN - ( + CAST( 42 AS SIGNED ) ) * - 20 ELSE NULL END * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4680
SELECT CASE + ( COUNT ( * ) ) WHEN 75 + + ( 58 ) THEN ( 63 ) WHEN 74 THEN - ( + CAST ( 42 AS INTEGER ) ) * - 20 ELSE NULL END * 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - MIN( + 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - MIN ( + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT 59 * COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT 59 * COUNT ( * ) AS col1
----
59

query I rowsort
SELECT ALL 18 * - 85
----
-1530

onlyif mysql # DIV for integer division: 
query I rowsort label-4684
SELECT ALL ( - 49 ) DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL ( - 49 ) / 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT COALESCE ( - COUNT( * ), - 86 ) * 45
----
-45

skipif mysql # not compatible
query I rowsort label-4685
SELECT COALESCE ( - COUNT ( * ), - 86 ) * 45
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( - 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( - 46 ) AS col2
----
NULL

query I rowsort
SELECT ALL 64 + 33 * 31
----
1087

query I rowsort
SELECT NULLIF ( 52, + 95 ) + - 97 AS col2
----
-45

query I rowsort
SELECT ALL NULLIF ( 77, 11 ) * 95
----
7315

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT NULLIF ( - 45, 23 / + 81 + - ( 61 ) / + 79 ) * MAX( DISTINCT - NULLIF ( 98, 71 * + 7 ) )
----
4410

skipif mysql # not compatible
query I rowsort label-4690
SELECT NULLIF ( - 45, 23 / + 81 + - ( 61 ) / + 79 ) * MAX ( DISTINCT - NULLIF ( 98, 71 * + 7 ) )
----
4410

query I rowsort
SELECT 10 + + 33 AS col1
----
43

query I rowsort
SELECT 52 + 1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT ALL + CAST( NULL AS SIGNED ) + 65 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + CAST ( NULL AS INTEGER ) + 65 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( 20, - 39 - 41 ) * 19
----
380

query I rowsort
SELECT DISTINCT 98 + 45
----
143

query I rowsort
SELECT DISTINCT - 12 + 85 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT DISTINCT COUNT( DISTINCT 32 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT COUNT ( DISTINCT 32 ) col0
----
1

query I rowsort
SELECT - ( 52 ) * + 99
----
-5148

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4699
SELECT - CAST( NULL AS DECIMAL ) / 10
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT - CAST ( NULL AS REAL ) / 10
----
NULL

query I rowsort
SELECT DISTINCT + 58 - 30
----
28

query I rowsort
SELECT ALL 17 * + 43 - 17 AS col2
----
714

query I rowsort
SELECT ALL - 41 * + 71 col1
----
-2911

query I rowsort
SELECT - 85 * 9 AS col0
----
-765

query I rowsort
SELECT ALL - 41 * 71
----
-2911

query I rowsort
SELECT - 10 * 44
----
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4706
SELECT - 54 * CAST( 22 * 47 + + 5 AS SIGNED ) AS col0
----
-56106

skipif mysql # not compatible
query I rowsort label-4706
SELECT - 54 * CAST ( 22 * 47 + + 5 AS INTEGER ) AS col0
----
-56106

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL + 19 * + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + 19 * + COUNT ( * ) AS col0
----
19

query I rowsort
SELECT + + ( 8 ) * 57 + 87
----
543

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT + + ( COUNT( - 71 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT + + ( COUNT ( - 71 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4710
SELECT + COUNT( * ) + + ( 26 ) DIV - 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4710
SELECT + COUNT ( * ) + + ( 26 ) / - 70 AS col1
----
1

query I rowsort
SELECT DISTINCT 14 * - 51
----
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT ALL + 78 * + 97 + + COUNT( * ) * 5
----
7571

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL + 78 * + 97 + + COUNT ( * ) * 5
----
7571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4713
SELECT ALL - 43 * + CAST( + SUM( DISTINCT + 34 ) + - 48 AS SIGNED ) + + 13 AS col2
----
615

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL - 43 * + CAST ( + SUM ( DISTINCT + 34 ) + - 48 AS INTEGER ) + + 13 AS col2
----
615

query I rowsort
SELECT - + NULLIF ( + 77, - ( - 14 ) ) * + 46 AS col2
----
-3542

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT - 2 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-4715
SELECT - 2 / 43
----
0

query I rowsort
SELECT DISTINCT 41 + 75 col0
----
116

query I rowsort
SELECT ALL 93 + - + 14 + - 63 AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT - NULLIF ( CAST( 47 AS SIGNED ), - ( - 70 ) * + 88 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4718
SELECT - NULLIF ( CAST ( 47 AS INTEGER ), - ( - 70 ) * + 88 ) AS col1
----
-47

query I rowsort
SELECT ALL CASE ( + 17 ) WHEN + 13 + - 98 THEN 10 END + + ( - 17 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT DISTINCT 22 + 26 DIV - 58 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT 22 + 26 / - 58 AS col2
----
22

query I rowsort
SELECT ALL 45 + - + 70 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + NULLIF ( 79, - ( 63 ) * COUNT( * ) ) * + 24 AS col0
----
1896

skipif mysql # not compatible
query I rowsort label-4722
SELECT + NULLIF ( 79, - ( 63 ) * COUNT ( * ) ) * + 24 AS col0
----
1896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT + 56 + + CAST( 54 AS SIGNED )
----
110

skipif mysql # not compatible
query I rowsort label-4723
SELECT + 56 + + CAST ( 54 AS INTEGER )
----
110

query I rowsort
SELECT + 33 + + + 85
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT - COUNT( * ) - - + 46 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-4725
SELECT - COUNT ( * ) - - + 46 AS col1
----
45

query I rowsort
SELECT DISTINCT 44 - + - 7 AS col0
----
51

query I rowsort
SELECT ALL 3 * - 57 * + 51 col1
----
-8721

query I rowsort
SELECT DISTINCT + 54 * + 64 * 61
----
210816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT ALL CASE - 55 WHEN - 4 * 27 THEN + 63 * - CAST( - COUNT( * ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL CASE - 55 WHEN - 4 * 27 THEN + 63 * - CAST ( - COUNT ( * ) AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT + COUNT( * ) + + 24 * - 8 AS col2
----
-191

skipif mysql # not compatible
query I rowsort label-4730
SELECT + COUNT ( * ) + + 24 * - 8 AS col2
----
-191

query I rowsort
SELECT - 79 + - ( + 19 ) + + 80 AS col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT - CASE + 39 WHEN 86 THEN - 14 + - CAST( - ( 5 ) AS SIGNED ) END + - 42 / CASE 4 * 9 + 84 WHEN - 23 THEN NULL WHEN + CASE 98 WHEN 72 THEN 18 END THEN NULL ELSE 74 * 44 + 97 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT - CASE + 39 WHEN 86 THEN - 14 + - CAST ( - ( 5 ) AS INTEGER ) END + - 42 / CASE 4 * 9 + 84 WHEN - 23 THEN NULL WHEN + CASE 98 WHEN 72 THEN 18 END THEN NULL ELSE 74 * 44 + 97 END AS col0
----
NULL

query I rowsort
SELECT + ( - 18 ) col1
----
-18

query I rowsort
SELECT + 25 * + 37 col2
----
925

query I rowsort
SELECT DISTINCT + + 82 col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT DISTINCT - COALESCE ( + 81, 56 * + 5 ) DIV + 64
----
-1

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT - COALESCE ( + 81, 56 * + 5 ) / + 64
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT ALL - + 61 DIV COALESCE ( 88, + 27, 73 + 34 ) + + 96 col2
----
96

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL - + 61 / COALESCE ( 88, + 27, 73 + 34 ) + + 96 col2
----
96

query I rowsort
SELECT - 75 * + - 99 AS col2
----
7425

query I rowsort
SELECT - 88 * 32
----
-2816

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT ALL 56 DIV - - 34 + 74
----
75

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL 56 / - - 34 + 74
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4741
SELECT ALL + 25 DIV + 58 * - 54 + COUNT( * ) * - 83 + 95 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL + 25 / + 58 * - 54 + COUNT ( * ) * - 83 + 95 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL + + COUNT( 76 )
----
1

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + + COUNT ( 76 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4743
SELECT ALL + 3 DIV + COALESCE ( + COUNT( * ), - ( + 33 ) + - 13 ) + 89 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + 3 / + COALESCE ( + COUNT ( * ), - ( + 33 ) + - 13 ) + 89 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT + + 39 * + + 61 - + COUNT( DISTINCT NULLIF ( 12, 86 ) )
----
2378

skipif mysql # not compatible
query I rowsort label-4744
SELECT + + 39 * + + 61 - + COUNT ( DISTINCT NULLIF ( 12, 86 ) )
----
2378

query I rowsort
SELECT DISTINCT + + 31 * - 77 * 51
----
-121737

query I rowsort
SELECT DISTINCT + 53 * + 59 + + 9 AS col1
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT + 60 * + MIN( + 15 ) + - 40
----
860

skipif mysql # not compatible
query I rowsort label-4747
SELECT + 60 * + MIN ( + 15 ) + - 40
----
860

query I rowsort
SELECT DISTINCT + ( - 78 ) AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT ALL + 95 * - 82 * - NULLIF ( - 32, - 2 + ( - CASE + 83 WHEN CAST( 31 AS SIGNED ) * 62 THEN NULL ELSE 86 END + 6 ) ) + 83 AS col0
----
-249197

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL + 95 * - 82 * - NULLIF ( - 32, - 2 + ( - CASE + 83 WHEN CAST ( 31 AS INTEGER ) * 62 THEN NULL ELSE 86 END + 6 ) ) + 83 AS col0
----
-249197

query I rowsort
SELECT - 75 - 61
----
-136

onlyif mysql # DIV for integer division: 
query II rowsort label-4751
SELECT - 68, 95 * 95 DIV 7 AS col2
----
-68
1289

skipif mysql # not compatible
query II rowsort label-4751
SELECT - 68, 95 * 95 / 7 AS col2
----
-68
1289

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL + COALESCE ( + - 34, 64 ) + + 20 * - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL + COALESCE ( + - 34, 64 ) + + 20 * - COUNT ( * )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT DISTINCT - 85 DIV SUM( ALL - + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT - 85 / SUM ( ALL - + 86 )
----
0

query I rowsort
SELECT 25 * + 49 AS col2
----
1225

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT ALL 78 AS col2, 66 * MAX( DISTINCT ( 82 ) ) col0
----
78
5412

skipif mysql # not compatible
query II rowsort label-4755
SELECT ALL 78 AS col2, 66 * MAX ( DISTINCT ( 82 ) ) col0
----
78
5412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4756
SELECT 80 DIV + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-4756
SELECT 80 / + COUNT ( * )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT 51 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT 51 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4758
SELECT ALL 89 AS col0, - COALESCE ( - 94, 0 DIV 22, + 13 )
----
89
94

skipif mysql # not compatible
query II rowsort label-4758
SELECT ALL 89 AS col0, - COALESCE ( - 94, 0 / 22, + 13 )
----
89
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4759
SELECT SUM( DISTINCT + 36 ) DIV + CAST( ( 91 ) AS SIGNED ) * 80
----
0

skipif mysql # not compatible
query I rowsort label-4759
SELECT SUM ( DISTINCT + 36 ) / + CAST ( ( 91 ) AS INTEGER ) * 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT SUM( DISTINCT - 91 ) * - + 24
----
2184

skipif mysql # not compatible
query I rowsort label-4760
SELECT SUM ( DISTINCT - 91 ) * - + 24
----
2184

query I rowsort
SELECT 79 + - 8
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4762
SELECT DISTINCT 2 DIV 33 * + + SUM( ALL 79 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT 2 / 33 * + + SUM ( ALL 79 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4763
SELECT MAX( DISTINCT - 71 ) DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-4763
SELECT MAX ( DISTINCT - 71 ) / - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT COUNT( * ) * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4764
SELECT COUNT ( * ) * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT ALL + 51 AS col1, COUNT( * )
----
51
1

skipif mysql # not compatible
query II rowsort label-4765
SELECT ALL + 51 AS col1, COUNT ( * )
----
51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT DISTINCT 94 + + - COUNT( * ) * - - COUNT( * ) * + 16 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT 94 + + - COUNT ( * ) * - - COUNT ( * ) * + 16 AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4767
SELECT DISTINCT - - COUNT( * ) AS col2, 37 * + 2 + - 96
----
1
-22

skipif mysql # not compatible
query II rowsort label-4767
SELECT DISTINCT - - COUNT ( * ) AS col2, 37 * + 2 + - 96
----
1
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT + MIN( ALL - ( - 21 ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4768
SELECT + MIN ( ALL - ( - 21 ) ) AS col2
----
21

query I rowsort
SELECT ALL - - 8 + 77 * - 22
----
-1686

query I rowsort
SELECT + 81 - ( + 25 ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT ALL 51 * + 14 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL 51 * + 14 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT - + 58 + - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT - + 58 + - COUNT ( * )
----
-59

query I rowsort
SELECT DISTINCT 74 + + 52
----
126

query I rowsort
SELECT ALL 78 + 48 AS col2
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT - 48 + - CAST( 52 AS SIGNED )
----
-100

skipif mysql # not compatible
query I rowsort label-4775
SELECT - 48 + - CAST ( 52 AS INTEGER )
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-4776
SELECT 8 AS col0, - COUNT( * ) + + 25 + COUNT( * ) AS col0
----
8
25

skipif mysql # not compatible
query II rowsort label-4776
SELECT 8 AS col0, - COUNT ( * ) + + 25 + COUNT ( * ) AS col0
----
8
25

query I rowsort
SELECT 86 - 75 AS col2
----
11

query I rowsort
SELECT ALL - - 16 + + 78 AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4779
SELECT + 67 AS col0, CAST( + - 64 AS SIGNED )
----
67
-64

skipif mysql # not compatible
query II rowsort label-4779
SELECT + 67 AS col0, CAST ( + - 64 AS INTEGER )
----
67
-64

query I rowsort
SELECT DISTINCT - + 54 AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT DISTINCT + + 91 DIV + - NULLIF ( + 60, 76 * 60 - 52 * - 56 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT + + 91 / + - NULLIF ( + 60, 76 * 60 - 52 * - 56 ) AS col0
----
-1

query I rowsort
SELECT ( + + 60 ) + - 28
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4783
SELECT ALL 81 DIV ( + - 46 ) * + COUNT( - 52 * 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL 81 / ( + - 46 ) * + COUNT ( - 52 * 23 )
----
-1

query I rowsort
SELECT ALL - ( - 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT 12 + COUNT( * ) - - + 87 + 27
----
127

skipif mysql # not compatible
query I rowsort label-4785
SELECT 12 + COUNT ( * ) - - + 87 + 27
----
127

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4786
SELECT DISTINCT + 53 * - - AVG ( - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT + 53 * - - AVG ( - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - 32 ) * + 7 AS col0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL + COUNT( * ) - + COUNT( DISTINCT - 7 )
----
0

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + COUNT ( * ) - + COUNT ( DISTINCT - 7 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT 61 * SUM( 15 ) AS col1
----
915

skipif mysql # not compatible
query I rowsort label-4789
SELECT 61 * SUM ( 15 ) AS col1
----
915

query I rowsort
SELECT 64 + + 7
----
71

query I rowsort
SELECT ALL - 81 * - ( + 77 )
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT + 26 - + + 51 * MIN( DISTINCT - 41 ) * - 38
----
-79432

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT + 26 - + + 51 * MIN ( DISTINCT - 41 ) * - 38
----
-79432

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT COUNT( + + ( - NULLIF ( + 66, + 23 ) ) ) + - ( - 73 + 45 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4793
SELECT COUNT ( + + ( - NULLIF ( + 66, + 23 ) ) ) + - ( - 73 + 45 ) AS col2
----
29

query I rowsort
SELECT ALL - ( + 43 ) * - 21
----
903

query I rowsort
SELECT 60 * - + 48
----
-2880

query II rowsort
SELECT DISTINCT 15 * 88 AS col1, 85 AS col2
----
1320
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4797
SELECT ALL 50 * 59 DIV COUNT( * ) * + 28 * + 18
----
1486800

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL 50 * 59 / COUNT ( * ) * + 28 * + 18
----
1486800

query I rowsort
SELECT 86 * + + 58 AS col1
----
4988

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT ALL - 37 DIV 25
----
-1

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL - 37 / 25
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT 66 + + + COUNT( ALL - 46 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4800
SELECT 66 + + + COUNT ( ALL - 46 ) AS col1
----
67

query I rowsort
SELECT ALL 14 * 89 * 38 * 13 AS col1
----
615524

query I rowsort
SELECT 76 + - 20
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT DISTINCT COUNT( * ) + - - MIN( ALL 3 ) - - + CAST( - 83 AS SIGNED ) * + 42
----
-3482

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT COUNT ( * ) + - - MIN ( ALL 3 ) - - + CAST ( - 83 AS INTEGER ) * + 42
----
-3482

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT 40 + - COUNT( * ) * - MAX( 62 ) AS col0
----
102

skipif mysql # not compatible
query I rowsort label-4804
SELECT 40 + - COUNT ( * ) * - MAX ( 62 ) AS col0
----
102

query I rowsort
SELECT DISTINCT + + 52 + - + 97
----
-45

query I rowsort
SELECT DISTINCT + 38 + ( + + 32 )
----
70

query I rowsort
SELECT DISTINCT 18 + 37 * ( 56 ) * 81 AS col1
----
167850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4808
SELECT - 72 * - - NULLIF ( + 7, + CAST( NULL AS SIGNED ) + + MIN( ALL 14 ) ) + COUNT( * ) * 37
----
-467

skipif mysql # not compatible
query I rowsort label-4808
SELECT - 72 * - - NULLIF ( + 7, + CAST ( NULL AS INTEGER ) + + MIN ( ALL 14 ) ) + COUNT ( * ) * 37
----
-467

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL - COUNT( ALL + + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL - COUNT ( ALL + + 1 )
----
-1

query I rowsort
SELECT ALL - NULLIF ( + 99, - NULLIF ( - + 95, 54 ) + 66 )
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-4811
SELECT 88 * + - COUNT( * ) AS col2, - 75
----
-88
-75

skipif mysql # not compatible
query II rowsort label-4811
SELECT 88 * + - COUNT ( * ) AS col2, - 75
----
-88
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT 39 * + - 18 - COUNT( + 19 )
----
-703

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT 39 * + - 18 - COUNT ( + 19 )
----
-703

query I rowsort
SELECT ALL + ( - - 67 ) * ( - ( + 26 ) ) + - 3
----
-1745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4814
SELECT + - 93 * + 17 + + - COUNT( * ) DIV - + 5 AS col2
----
-1581

skipif mysql # not compatible
query I rowsort label-4814
SELECT + - 93 * + 17 + + - COUNT ( * ) / - + 5 AS col2
----
-1581

query I rowsort
SELECT 23 * - 97 - + 59 AS col1
----
-2290

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - COUNT( * ) * - 81 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-4816
SELECT - COUNT ( * ) * - 81 AS col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4817
SELECT - COALESCE ( COUNT( * ), - 76 ) DIV - + 63 * + 79
----
0

skipif mysql # not compatible
query I rowsort label-4817
SELECT - COALESCE ( COUNT ( * ), - 76 ) / - + 63 * + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT MAX( ALL - + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4818
SELECT MAX ( ALL - + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query III rowsort label-4819
SELECT ALL + 89 AS col0, + COUNT( * ) * - 60 AS col2, 43 * - 79 - + 19 * 42
----
89
-60
-4195

skipif mysql # not compatible
query III rowsort label-4819
SELECT ALL + 89 AS col0, + COUNT ( * ) * - 60 AS col2, 43 * - 79 - + 19 * 42
----
89
-60
-4195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4820
SELECT NULLIF ( + 6, COALESCE ( - - 75, + - 29 ) + + COALESCE ( COUNT( * ), 22, - 59 ) ) * + 18 - 18 DIV + 56 AS col0
----
108

skipif mysql # not compatible
query I rowsort label-4820
SELECT NULLIF ( + 6, COALESCE ( - - 75, + - 29 ) + + COALESCE ( COUNT ( * ), 22, - 59 ) ) * + 18 - 18 / + 56 AS col0
----
108

query II rowsort
SELECT ALL + 5 AS col2, 91 * + 79
----
5
7189

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT ALL - COUNT( * ) * MAX( + + 30 ) * - ( - + ( 36 ) ) + 94 * - 82 AS col0
----
-8788

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL - COUNT ( * ) * MAX ( + + 30 ) * - ( - + ( 36 ) ) + 94 * - 82 AS col0
----
-8788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT ALL + 5 + 42 * + ( + COUNT( * ) ) DIV + - 94 + - MAX( DISTINCT - 26 )
----
31

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + 5 + 42 * + ( + COUNT ( * ) ) / + - 94 + - MAX ( DISTINCT - 26 )
----
31

query I rowsort
SELECT ALL - 50 * 5
----
-250

query I rowsort
SELECT + 26 + - 77 col0
----
-51

query I rowsort
SELECT + ( - 13 ) + + 78 AS col0
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4827
SELECT ALL NULLIF ( 67, - CAST( + + 66 AS DECIMAL ) )
----
67

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL NULLIF ( 67, - CAST ( + + 66 AS REAL ) )
----
67

query II rowsort
SELECT - 1 AS col2, 86
----
-1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT - 26 + - COUNT( * ) + - 91
----
-118

skipif mysql # not compatible
query I rowsort label-4829
SELECT - 26 + - COUNT ( * ) + - 91
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4830
SELECT - 84 - + + 92 + 50 * 78 * - COUNT( * ) + AVG ( + CAST( NULL AS SIGNED ) + - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT - 84 - + + 92 + 50 * 78 * - COUNT ( * ) + AVG ( + CAST ( NULL AS INTEGER ) + - 77 )
----
NULL

query I rowsort
SELECT DISTINCT - 60 + - 33
----
-93

query I rowsort
SELECT ALL + ( 4 ) + - 44
----
-40

query I rowsort
SELECT - 54 + - 12 + - ( - 90 ) + 46 col0
----
70

query I rowsort
SELECT ALL + - 41 * + + 13 * - 6 * + 89
----
284622

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT - + COUNT( * ) * 82 - 23 - + 5 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-4835
SELECT - + COUNT ( * ) * 82 - 23 - + 5 AS col0
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL + + 24 + + CASE 80 WHEN - 30 THEN CAST( NULL AS SIGNED ) * 35 ELSE NULL END - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL + + 24 + + CASE 80 WHEN - 30 THEN CAST ( NULL AS INTEGER ) * 35 ELSE NULL END - 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT - NULLIF ( - COUNT( * ), + 92 )
----
1

skipif mysql # not compatible
query I rowsort label-4837
SELECT - NULLIF ( - COUNT ( * ), + 92 )
----
1

query I rowsort
SELECT ALL - 34 + + 20
----
-14

query I rowsort
SELECT - - 29 - - + 40 AS col0
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4840
SELECT - + 70 * - + 2 / - 59 * CAST( NULL AS DECIMAL ) / + - 81 * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT - + 70 * - + 2 / - 59 * CAST ( NULL AS REAL ) / + - 81 * + 52
----
NULL

query I rowsort
SELECT - + 54 + - 16 - - 88 + + ( - 20 ) + 33
----
31

query I rowsort
SELECT + 99 * ( 49 )
----
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT DISTINCT + 43 * - COUNT( ALL - 63 )
----
-43

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT + 43 * - COUNT ( ALL - 63 )
----
-43

query II rowsort
SELECT ALL 34, 33 + - - 75 AS col2
----
34
108

query I rowsort
SELECT DISTINCT + + 99 * - 43 col2
----
-4257

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT COALESCE ( - - COUNT( * ), + + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT COALESCE ( - - COUNT ( * ), + + 84 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT ALL + + 47 DIV - + 27 - + + 8
----
-9

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + + 47 / - + 27 - + + 8
----
-9

query I rowsort
SELECT DISTINCT + 82 * 74
----
6068

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4849
SELECT ALL - - 70 * + COUNT( ALL + - 71 ) * - CASE 39 WHEN CAST( NULL AS SIGNED ) THEN - 62 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - - 70 * + COUNT ( ALL + - 71 ) * - CASE 39 WHEN CAST ( NULL AS INTEGER ) THEN - 62 ELSE NULL END col2
----
NULL

query I rowsort
SELECT + 79 - - - 74
----
5

query II rowsort
SELECT ALL + - 54, CASE WHEN ( 58 ) = - 63 + 37 OR NOT ( NULL ) <> - 22 THEN + 25 ELSE NULL END * - 44 col2
----
-54
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4852
SELECT ALL 23 DIV 21 * + 68 * - 17
----
-1156

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL 23 / 21 * + 68 * - 17
----
-1156

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ALL + + MIN( ALL - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL + + MIN ( ALL - 85 )
----
-85

query I rowsort
SELECT + - 47 * + - 11 * + + 85
----
43945

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + - 89 * + COUNT( * ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-4855
SELECT + - 89 * + COUNT ( * ) col2
----
-89

query I rowsort
SELECT + + 72 - - ( 85 ) * - 21
----
-1713

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT - 92 * 34 + - SUM( ALL - + 49 ) AS col2
----
-3079

skipif mysql # not compatible
query I rowsort label-4857
SELECT - 92 * 34 + - SUM ( ALL - + 49 ) AS col2
----
-3079

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT + COUNT( * ) * + NULLIF ( + 12, - 59 ) AS col0, + CASE - 88 WHEN 23 THEN 28 * - 16 WHEN ( + 89 ) THEN NULL ELSE NULL END AS col2
----
12
NULL

skipif mysql # not compatible
query II rowsort label-4858
SELECT + COUNT ( * ) * + NULLIF ( + 12, - 59 ) AS col0, + CASE - 88 WHEN 23 THEN 28 * - 16 WHEN ( + 89 ) THEN NULL ELSE NULL END AS col2
----
12
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4859
SELECT + 69 + - 9 * - - COALESCE ( - 51, - 53 - + - MIN( + CAST( NULL AS SIGNED ) ) ) * - 70 AS col2
----
-32061

skipif mysql # not compatible
query I rowsort label-4859
SELECT + 69 + - 9 * - - COALESCE ( - 51, - 53 - + - MIN ( + CAST ( NULL AS INTEGER ) ) ) * - 70 AS col2
----
-32061

onlyif mysql # aggregate syntax: 
query II rowsort label-4860
SELECT ALL + 96 AS col2, 44 - - + 65 * + - SUM( ALL + - 44 )
----
96
2904

skipif mysql # not compatible
query II rowsort label-4860
SELECT ALL + 96 AS col2, 44 - - + 65 * + - SUM ( ALL + - 44 )
----
96
2904

onlyif mysql # aggregate syntax: 
query II rowsort label-4861
SELECT ALL + COUNT( * ) AS col1, + CASE - 93 WHEN 15 THEN + 41 * - COUNT( * ) WHEN + ( + 17 ) THEN + 22 * + 50 END col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4861
SELECT ALL + COUNT ( * ) AS col1, + CASE - 93 WHEN 15 THEN + 41 * - COUNT ( * ) WHEN + ( + 17 ) THEN + 22 * + 50 END col2
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4862
SELECT ALL 35 * - 26 + + 4 * + ( - COUNT( * ) ) * - 31 - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL 35 * - 26 + + 4 * + ( - COUNT ( * ) ) * - 31 - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT COUNT( * ) * - 80 + + 26 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4863
SELECT COUNT ( * ) * - 80 + + 26 AS col1
----
-54

query I rowsort
SELECT + COALESCE ( + 51, - 96 ) AS col2
----
51

query I rowsort
SELECT + 54 * 65 + + - 26 AS col0
----
3484

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT CASE + COUNT( * ) WHEN - 75 * + 50 THEN 15 WHEN + + 98 THEN + 94 WHEN 1 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT CASE + COUNT ( * ) WHEN - 75 * + 50 THEN 15 WHEN + + 98 THEN + 94 WHEN 1 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT + CAST( + 90 AS SIGNED ) * - 26 col1
----
-2340

skipif mysql # not compatible
query I rowsort label-4867
SELECT + CAST ( + 90 AS INTEGER ) * - 26 col1
----
-2340

query I rowsort
SELECT - 85 + - - 44 AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4869
SELECT DISTINCT - COUNT( * ) * + - CAST( 33 AS SIGNED ) + - 58 + COUNT( * ) DIV + 22 * - 44
----
-25

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT - COUNT ( * ) * + - CAST ( 33 AS INTEGER ) + - 58 + COUNT ( * ) / + 22 * - 44
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT - CAST( NULLIF ( - + 31, + 76 ) AS SIGNED ) col1
----
31

skipif mysql # not compatible
query I rowsort label-4870
SELECT - CAST ( NULLIF ( - + 31, + 76 ) AS INTEGER ) col1
----
31

query I rowsort
SELECT + 49 * 56 * - 25
----
-68600

query I rowsort
SELECT - 66 + 46 col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT ALL - 38 + + COUNT( * ) DIV + 43
----
-38

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - 38 + + COUNT ( * ) / + 43
----
-38

query I rowsort
SELECT ALL + 80 + 30 AS col2
----
110

query I rowsort
SELECT + - 0 * + 45 AS col2
----
0

query I rowsort
SELECT - - 94 * - 74 AS col2
----
-6956

query I rowsort
SELECT ALL - 89 * - 3 AS col1
----
267

query I rowsort
SELECT + 14 + + 53
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT - SUM( DISTINCT + 14 ) - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4879
SELECT - SUM ( DISTINCT + 14 ) - COUNT ( * ) AS col2
----
-15

query I rowsort
SELECT - 97 + + 49 - - 39 + + 0 col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4881
SELECT DISTINCT - 86 * + 52 + - 82 * + CAST( NULL AS SIGNED ) + - 68 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT - 86 * + 52 + - 82 * + CAST ( NULL AS INTEGER ) + - 68 + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - + 17 + - + 52 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT - 55 * - - 43 * - + 43 - + - COUNT( * ) + + 50 * - 98 - + 3
----
96793

skipif mysql # not compatible
query I rowsort label-4883
SELECT - 55 * - - 43 * - + 43 - + - COUNT ( * ) + + 50 * - 98 - + 3
----
96793

onlyif mysql # aggregate syntax: 
query II rowsort label-4884
SELECT 39 col2, + COUNT( * )
----
39
1

skipif mysql # not compatible
query II rowsort label-4884
SELECT 39 col2, + COUNT ( * )
----
39
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT ALL CASE - + 51 WHEN - - 9 + 15 * 15 THEN NULL WHEN - 1 THEN + 32 * + 91 WHEN + 67 * 13 + 17 THEN NULLIF ( CASE 54 WHEN 76 THEN + 87 WHEN 74 * - 24 THEN NULL END, 78 ) * CAST( 43 * + 34 AS SIGNED ) + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL CASE - + 51 WHEN - - 9 + 15 * 15 THEN NULL WHEN - 1 THEN + 32 * + 91 WHEN + 67 * 13 + 17 THEN NULLIF ( CASE 54 WHEN 76 THEN + 87 WHEN 74 * - 24 THEN NULL END, 78 ) * CAST ( 43 * + 34 AS INTEGER ) + 75 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT 20 * 36 * - 82 + - - 40 DIV + 13
----
-59037

skipif mysql # not compatible
query I rowsort label-4886
SELECT 20 * 36 * - 82 + - - 40 / + 13
----
-59037

query I rowsort
SELECT + 91 * - - 21
----
1911

query II rowsort
SELECT + 58 AS col0, 45 * + 94 AS col1
----
58
4230

onlyif mysql # DIV for integer division: 
query II rowsort label-4889
SELECT - ( - ( 25 ) ) DIV 21, - ( + 77 ) * 59 AS col0
----
1
-4543

skipif mysql # not compatible
query II rowsort label-4889
SELECT - ( - ( 25 ) ) / 21, - ( + 77 ) * 59 AS col0
----
1
-4543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT DISTINCT - - COALESCE ( 63, + 99 + + ( - - 48 ) + + 64 DIV + COUNT( * ), COUNT( * ) ) * 71
----
4473

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT - - COALESCE ( 63, + 99 + + ( - - 48 ) + + 64 / + COUNT ( * ), COUNT ( * ) ) * 71
----
4473

query II rowsort
SELECT + 8 AS col1, + 93
----
8
93

query I rowsort
SELECT ALL - 37 * - 91 * + ( 67 )
----
225589

query I rowsort
SELECT ALL - - 29 * - + 62
----
-1798

query I rowsort
SELECT ALL - NULLIF ( 31, 54 * 25 ) * - 37 col1
----
1147

query I rowsort
SELECT DISTINCT + 68 + + - 37
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL COUNT( * ) + 40
----
41

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL COUNT ( * ) + 40
----
41

query I rowsort
SELECT DISTINCT 92 + 32 + + 28
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT 53 DIV - 25
----
-2

skipif mysql # not compatible
query I rowsort label-4898
SELECT 53 / - 25
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4899
SELECT 50 * + 15 - COUNT( * ) DIV - + 56 col2
----
750

skipif mysql # not compatible
query I rowsort label-4899
SELECT 50 * + 15 - COUNT ( * ) / - + 56 col2
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL MAX( DISTINCT 10 ) + 50 + + + 69 col0
----
129

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL MAX ( DISTINCT 10 ) + 50 + + + 69 col0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4901
SELECT DISTINCT NULLIF ( COUNT( * ), + ( + COUNT( * ) ) ) + + + CAST( + + 8 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT NULLIF ( COUNT ( * ), + ( + COUNT ( * ) ) ) + + + CAST ( + + 8 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT ALL 91 + COALESCE ( + COUNT( ALL + - 88 ), - ( + - 62 ), ( 2 ) * - COUNT( * ) + - 37 )
----
92

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL 91 + COALESCE ( + COUNT ( ALL + - 88 ), - ( + - 62 ), ( 2 ) * - COUNT ( * ) + - 37 )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4903
SELECT ALL ( - 97 ) + - 26 + + NULLIF ( - + ( + + 3 ), - 10 ) DIV - COUNT( * ) AS col2
----
-120

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL ( - 97 ) + - 26 + + NULLIF ( - + ( + + 3 ), - 10 ) / - COUNT ( * ) AS col2
----
-120

query I rowsort
SELECT ALL ( - 70 ) * + + 94 + + ( + 32 ) + ( + 25 ) * + 60 AS col0
----
-5048

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT - CASE 55 WHEN 95 THEN - 49 WHEN + MIN( ALL + 61 ) THEN NULL END * 67 - + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT - CASE 55 WHEN 95 THEN - 49 WHEN + MIN ( ALL + 61 ) THEN NULL END * 67 - + 34 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 72 + - 97
----
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4907
SELECT ALL 31 + COUNT( * ) / - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL 31 + COUNT ( * ) / - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 54 * - 88 + 1 + + - 60
----
-4811

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL - + ( + + CASE + + COUNT( * ) WHEN - COUNT( * ) + + 53 THEN + MIN( + 79 ) WHEN + 50 + - 14 THEN NULL END ) * + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL - + ( + + CASE + + COUNT ( * ) WHEN - COUNT ( * ) + + 53 THEN + MIN ( + 79 ) WHEN + 50 + - 14 THEN NULL END ) * + 70 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4910
SELECT ( + 52 ) AS col1, CAST( NULL AS DECIMAL ) AS col0
----
52
NULL

skipif mysql # not compatible
query II rowsort label-4910
SELECT ( + 52 ) AS col1, CAST ( NULL AS REAL ) AS col0
----
52
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4911
SELECT DISTINCT 18 DIV + - 81 col1
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT 18 / + - 81 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), + 25 + - COALESCE ( + 4, + - 12 * - COUNT( * ) / 69 ) + 77 * 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), + 25 + - COALESCE ( + 4, + - 12 * - COUNT ( * ) / 69 ) + 77 * 82 )
----
NULL

query I rowsort
SELECT - - 86 col1
----
86

query II rowsort
SELECT ALL + 33 * + 55 AS col2, 61 * + - 72 AS col2
----
1815
-4392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT + CAST( NULL AS SIGNED ) / ( - 0 ) + + 76 - - + 17 * - 37 - - - 77 / 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT + CAST ( NULL AS INTEGER ) / ( - 0 ) + + 76 - - + 17 * - 37 - - - 77 / 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT - MAX( DISTINCT + - 77 ) * + - COUNT( * ) + + 74 * - + CAST( + 13 AS SIGNED ) * 40 AS col2
----
-38557

skipif mysql # not compatible
query I rowsort label-4916
SELECT - MAX ( DISTINCT + - 77 ) * + - COUNT ( * ) + + 74 * - + CAST ( + 13 AS INTEGER ) * 40 AS col2
----
-38557

query II rowsort
SELECT - 14 + 71, + 71 - - + 32 AS col2
----
57
103

query I rowsort
SELECT DISTINCT - 0 * - 83 + + 86 * + - 50 AS col2
----
-4300

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL 58 * NULLIF ( + + COUNT( DISTINCT 9 ), 37 + - 8 + - - 40 * - CASE 18 * + ( - 32 ) WHEN 86 THEN AVG ( ALL 58 ) WHEN 39 THEN NULL END ) * COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL 58 * NULLIF ( + + COUNT ( DISTINCT 9 ), 37 + - 8 + - - 40 * - CASE 18 * + ( - 32 ) WHEN 86 THEN AVG ( ALL 58 ) WHEN 39 THEN NULL END ) * COUNT ( * ) AS col0
----
58

query I rowsort
SELECT 66 + - + 43 + - 64
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT - CASE - - 0 WHEN + COUNT( * ) + - + 40 THEN NULL WHEN + - 48 * - 89 + 27 + 88 THEN ( 77 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT - CASE - - 0 WHEN + COUNT ( * ) + - + 40 THEN NULL WHEN + - 48 * - 89 + 27 + 88 THEN ( 77 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - 41 * - + COALESCE ( - 86, - COUNT( * ) * - 81 * 36 )
----
-3526

skipif mysql # not compatible
query I rowsort label-4922
SELECT - 41 * - + COALESCE ( - 86, - COUNT ( * ) * - 81 * 36 )
----
-3526

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT + COUNT( - 15 ) * - 43
----
-43

skipif mysql # not compatible
query I rowsort label-4923
SELECT + COUNT ( - 15 ) * - 43
----
-43

query I rowsort
SELECT ALL + 81 + - - 25
----
106

query I rowsort
SELECT ALL + 54 + - - 33 AS col0
----
87

query I rowsort
SELECT 70 - - 75 col2
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-4927
SELECT ALL - COUNT( * ) AS col1, + 9 AS col2
----
-1
9

skipif mysql # not compatible
query II rowsort label-4927
SELECT ALL - COUNT ( * ) AS col1, + 9 AS col2
----
-1
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT ALL - 91 + 93 DIV - 37 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL - 91 + 93 / - 37 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL - 18 + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - 18 + COUNT ( * )
----
-17

query II rowsort
SELECT DISTINCT - 21 AS col1, 42 AS col1
----
-21
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT CAST( 62 AS SIGNED ) + 27 * - + 61
----
-1585

skipif mysql # not compatible
query I rowsort label-4931
SELECT CAST ( 62 AS INTEGER ) + 27 * - + 61
----
-1585

query II rowsort
SELECT + 76 AS col1, 50
----
76
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL - NULLIF ( + ( + NULLIF ( + ( - 63 ), + 0 ) ), - COUNT( * ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL - NULLIF ( + ( + NULLIF ( + ( - 63 ), + 0 ) ), - COUNT ( * ) ) AS col0
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4934
SELECT ALL - MAX( + 42 ) + - + 19 DIV 94 * + 52 * + 72 + - - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - MAX ( + 42 ) + - + 19 / 94 * + 52 * + 72 + - - COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4935
SELECT 55 * 38 * - ( - COUNT( * ) ) + - + 80 DIV 73 * - ( - + 85 )
----
2005

skipif mysql # not compatible
query I rowsort label-4935
SELECT 55 * 38 * - ( - COUNT ( * ) ) + - + 80 / 73 * - ( - + 85 )
----
2005

query I rowsort
SELECT 5 - - 21
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4937
SELECT + CAST( NULL AS SIGNED ) * + + 52 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT + CAST ( NULL AS INTEGER ) * + + 52 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL + COALESCE ( + + 19, - ( + 73 ) - - 86 + + COUNT( * ) + 88 - - 4 * + 55 ) + 9 col2
----
28

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + COALESCE ( + + 19, - ( + 73 ) - - 86 + + COUNT ( * ) + 88 - - 4 * + 55 ) + 9 col2
----
28

query I rowsort
SELECT DISTINCT - 64 * - 31
----
1984

query I rowsort
SELECT ALL - 92 + + + 30 col2
----
-62

query I rowsort
SELECT ALL - CASE 26 WHEN 86 THEN + + 35 * - + 47 + - 86 + - 65 + - + 1 WHEN - ( 12 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4942
SELECT ALL ( - CAST( NULL AS SIGNED ) ) + - 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) + - 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT COUNT( * ) + - 37 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4943
SELECT COUNT ( * ) + - 37 AS col2
----
-36

query I rowsort
SELECT ALL - ( + + 63 ) AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT ALL + 56 - + 73 + + - 33 + ( - CAST( + 22 AS SIGNED ) ) + + 38 + - 36
----
-70

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL + 56 - + 73 + + - 33 + ( - CAST ( + 22 AS INTEGER ) ) + + 38 + - 36
----
-70

query I rowsort
SELECT 20 * 28 AS col1
----
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4947
SELECT ALL - CASE + 5 WHEN + CAST( NULL AS SIGNED ) THEN MIN( ALL - ( + ( 6 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - CASE + 5 WHEN + CAST ( NULL AS INTEGER ) THEN MIN ( ALL - ( + ( 6 ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT 94 * + SUM( ALL - 37 ) col0
----
-3478

skipif mysql # not compatible
query I rowsort label-4948
SELECT 94 * + SUM ( ALL - 37 ) col0
----
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT 1 + + + 81 + + COUNT( * ) col0
----
83

skipif mysql # not compatible
query I rowsort label-4949
SELECT 1 + + + 81 + + COUNT ( * ) col0
----
83

query I rowsort
SELECT + 96 + - 6 col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4951
SELECT NULLIF ( + CAST( + 3 AS SIGNED ), - + 8 + + 57 ) * + - 66 AS col2, SUM( DISTINCT + + 20 ) * 52 + ( COUNT( * ) ) AS col1
----
-198
1041

skipif mysql # not compatible
query II rowsort label-4951
SELECT NULLIF ( + CAST ( + 3 AS INTEGER ), - + 8 + + 57 ) * + - 66 AS col2, SUM ( DISTINCT + + 20 ) * 52 + ( COUNT ( * ) ) AS col1
----
-198
1041

query I rowsort
SELECT ALL + ( 73 ) AS col2
----
73

query II rowsort
SELECT ALL 91 AS col2, + 43 + - + 76 AS col0
----
91
-33

query I rowsort
SELECT DISTINCT 58 * - 85
----
-4930

query I rowsort
SELECT + 32 + 43
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT SUM( + 54 ) col2
----
54

skipif mysql # not compatible
query I rowsort label-4956
SELECT SUM ( + 54 ) col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL - + 63 * - COALESCE ( + 92, - COALESCE ( + - 5, + - 46 * ( + + 42 ) + - 45 ), ( - COUNT( * ) ) + + MIN( DISTINCT - 0 ) ) AS col0
----
5796

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL - + 63 * - COALESCE ( + 92, - COALESCE ( + - 5, + - 46 * ( + + 42 ) + - 45 ), ( - COUNT ( * ) ) + + MIN ( DISTINCT - 0 ) ) AS col0
----
5796

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT + NULLIF ( ( + 35 ), + 72 * - 24 * - ( + 48 ) + - 41 * SUM( ALL ( 24 ) - 19 ) ) + - 94 * + 73 AS col0
----
-6827

skipif mysql # not compatible
query I rowsort label-4958
SELECT + NULLIF ( ( + 35 ), + 72 * - 24 * - ( + 48 ) + - 41 * SUM ( ALL ( 24 ) - 19 ) ) + - 94 * + 73 AS col0
----
-6827

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT - 4 * + 11 + + + 49 + COUNT( * ) + - - 25 * + 61 * + - 20 * + + 22 col1
----
-670994

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT - 4 * + 11 + + + 49 + COUNT ( * ) + - - 25 * + 61 * + - 20 * + + 22 col1
----
-670994

query I rowsort
SELECT + - 65 + 69 * + + 50 * 68 + + 82
----
234617

query II rowsort
SELECT 74 AS col2, - 56
----
74
-56

query I rowsort
SELECT ALL + CASE - COALESCE ( + + 76, 91 * 65 ) WHEN - ( + 39 ) + 44 THEN + ( - 2 ) WHEN + 40 THEN + 86 END + + AVG ( DISTINCT 36 + 14 ) col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4963
SELECT + - 15 / + 93 / - - 15 + - + 81 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT + - 15 / + 93 / - - 15 + - + 81 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT ALL - 10 + - - CAST( 94 AS SIGNED ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL - 10 + - - CAST ( 94 AS INTEGER ) AS col0
----
84

query I rowsort
SELECT DISTINCT - 52 + - 15
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT - CAST( - + 30 AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4966
SELECT - CAST ( - + 30 AS INTEGER ) AS col0
----
30

query I rowsort
SELECT + 62 + + 47
----
109

query I rowsort
SELECT ALL 31 + 0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4969
SELECT ALL 36 / + ( + AVG ( + - 83 ) ) - - 2 * + CAST( NULL AS SIGNED ) + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT ALL 36 / + ( + AVG ( + - 83 ) ) - - 2 * + CAST ( NULL AS INTEGER ) + 25
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4970
SELECT + MIN( DISTINCT 0 ) * - 23 + + ( - COALESCE ( - - MAX( + - 88 ), + 20, + 98 + 76 DIV + COUNT( DISTINCT 55 ) ) ) * - 12
----
-1056

skipif mysql # not compatible
query I rowsort label-4970
SELECT + MIN ( DISTINCT 0 ) * - 23 + + ( - COALESCE ( - - MAX ( + - 88 ), + 20, + 98 + 76 / + COUNT ( DISTINCT 55 ) ) ) * - 12
----
-1056

query II rowsort
SELECT DISTINCT 63 * + 18 AS col2, - 53 + + 13 + - 19
----
1134
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4972
SELECT ALL 22 + 66 AS col0, COUNT( * )
----
88
1

skipif mysql # not compatible
query II rowsort label-4972
SELECT ALL 22 + 66 AS col0, COUNT ( * )
----
88
1

query I rowsort
SELECT + COALESCE ( + 84, - 45 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT SUM( 67 ) * + COUNT( * ) + - - 64 * - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-4974
SELECT SUM ( 67 ) * + COUNT ( * ) + - - 64 * - COUNT ( * )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4975
SELECT ( - COUNT( ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ), + 61 * + + NULLIF ( + - 74, + - NULLIF ( ( - COALESCE ( - 58, 51 * - COUNT( * ) ) ), - CASE + 45 WHEN 98 * CAST( NULL AS DECIMAL ) THEN - 86 ELSE + 9 + ( - 65 ) END / - ( COUNT( * ) ) ) - - 17 / 22 ) col0
----
0
-4514

skipif mysql # not compatible
query II rowsort label-4975
SELECT ( - COUNT ( ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ), + 61 * + + NULLIF ( + - 74, + - NULLIF ( ( - COALESCE ( - 58, 51 * - COUNT ( * ) ) ), - CASE + 45 WHEN 98 * CAST ( NULL AS REAL ) THEN - 86 ELSE + 9 + ( - 65 ) END / - ( COUNT ( * ) ) ) - - 17 / 22 ) col0
----
0
-4514

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT DISTINCT + CASE COUNT( * ) WHEN + + MAX( - 91 ) * - 52 + - - 17 + - 55 / + + 96 THEN - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT + CASE COUNT ( * ) WHEN + + MAX ( - 91 ) * - 52 + - - 17 + - 55 / + + 96 THEN - 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT DISTINCT 60 * COUNT( - - 81 ) - + 28 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4977
SELECT DISTINCT 60 * COUNT ( - - 81 ) - + 28 AS col0
----
32

query I rowsort
SELECT DISTINCT + ( - 54 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL COALESCE ( + 80, + - 56 + + 15 * + - 15 * + 57, 26 * - 76 * - COUNT( ALL 73 ) + 22 ) * + 93 - - 15
----
7455

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL COALESCE ( + 80, + - 56 + + 15 * + - 15 * + 57, 26 * - 76 * - COUNT ( ALL 73 ) + 22 ) * + 93 - - 15
----
7455

query I rowsort
SELECT + 59 * + - 77 - 20 AS col1
----
-4563

query II rowsort
SELECT - 20 * + + 88, 75 AS col0
----
-1760
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4982
SELECT - 66 + - 85 DIV + - 95 + + 78 + 21 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4982
SELECT - 66 + - 85 / + - 95 + + 78 + 21 AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT ALL + 95 * + 77 - + 63 DIV 34
----
7314

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + 95 * + 77 - + 63 / 34
----
7314

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT - 94 * 67 * - 49 * MIN( DISTINCT + 8 )
----
2468816

skipif mysql # not compatible
query I rowsort label-4984
SELECT - 94 * 67 * - 49 * MIN ( DISTINCT + 8 )
----
2468816

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT + COUNT( * ) * - - COALESCE ( - 57, + SUM( DISTINCT 88 ) * - 60 ) + + ( + 54 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + COUNT ( * ) * - - COALESCE ( - 57, + SUM ( DISTINCT 88 ) * - 60 ) + + ( + 54 ) AS col2
----
-3

query I rowsort
SELECT ALL + - 51 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL + MAX( DISTINCT ( 89 ) ) * - 69
----
-6141

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + MAX ( DISTINCT ( 89 ) ) * - 69
----
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT - + 55 * - 18 * SUM( DISTINCT + 17 )
----
16830

skipif mysql # not compatible
query I rowsort label-4988
SELECT - + 55 * - 18 * SUM ( DISTINCT + 17 )
----
16830

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - 35 - + SUM( + 51 ) * - 32
----
1597

skipif mysql # not compatible
query I rowsort label-4989
SELECT - 35 - + SUM ( + 51 ) * - 32
----
1597

query I rowsort
SELECT - - ( 71 ) + - - 64 AS col2
----
135

query I rowsort
SELECT - 10 * + ( - + 78 )
----
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT ALL - CAST( NULL AS SIGNED ) + NULLIF ( - COALESCE ( - 80, 73, - - COUNT( * ) / + NULLIF ( - COUNT( * ), - 89 + + ( 50 + ( - COUNT( * ) + 30 * - COUNT( * ) ) ) / 45 ) - - ( - 35 ) ), - 91 - + 3 * - NULLIF ( + CAST( NULL AS SIGNED ) - + 90, + 69 ) ) / MAX( DISTINCT + 42 - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - CAST ( NULL AS INTEGER ) + NULLIF ( - COALESCE ( - 80, 73, - - COUNT ( * ) / + NULLIF ( - COUNT ( * ), - 89 + + ( 50 + ( - COUNT ( * ) + 30 * - COUNT ( * ) ) ) / 45 ) - - ( - 35 ) ), - 91 - + 3 * - NULLIF ( + CAST ( NULL AS INTEGER ) - + 90, + 69 ) ) / MAX ( DISTINCT + 42 - 38 )
----
NULL

query I rowsort
SELECT ALL + 50 * 92 AS col1
----
4600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT ALL CAST( - ( 45 ) AS SIGNED ) + - 10
----
-55

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL CAST ( - ( 45 ) AS INTEGER ) + - 10
----
-55

query I rowsort
SELECT ALL 76 + + 97 col1
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT + + MAX( - + 57 ) * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-4996
SELECT + + MAX ( - + 57 ) * COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT DISTINCT + 31 * - 36 * - 7 DIV - COALESCE ( + - COUNT( ALL - 75 ), + COUNT( * ) - + MIN( ALL - - 64 ) + 93, + 52 * 88 + + 79 ) + + 21 AS col2
----
7833

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT + 31 * - 36 * - 7 / - COALESCE ( + - COUNT ( ALL - 75 ), + COUNT ( * ) - + MIN ( ALL - - 64 ) + 93, + 52 * 88 + + 79 ) + + 21 AS col2
----
7833

query I rowsort
SELECT - - 67 - + - 84
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT - MAX( + + 66 ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-4999
SELECT - MAX ( + + 66 ) col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5000
SELECT ALL 22 + - 53 + + - COUNT( * ) + 0 + + 20 DIV 36 DIV - COUNT( * ) * + 86 * - 24
----
-32

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL 22 + - 53 + + - COUNT ( * ) + 0 + + 20 / 36 / - COUNT ( * ) * + 86 * - 24
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5001
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) * + 86 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + 86 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + ( + CASE 46 WHEN + 22 - + 52 THEN COUNT( * ) * - + 42 ELSE NULL END ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5002
SELECT + ( + CASE 46 WHEN + 22 - + 52 THEN COUNT ( * ) * - + 42 ELSE NULL END ) * + 51
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5003
SELECT - 4 + + 1 DIV 40 * ( - 8 ) AS col0, NULLIF ( - - 72, + + 56 ) col1
----
-4
72

skipif mysql # not compatible
query II rowsort label-5003
SELECT - 4 + + 1 / 40 * ( - 8 ) AS col0, NULLIF ( - - 72, + + 56 ) col1
----
-4
72

query I rowsort
SELECT ALL 16 + + 45 AS col0
----
61

query I rowsort
SELECT ALL + 91 * - 87 col0
----
-7917

query I rowsort
SELECT + ( - 35 ) * - 85 * 46 * - 86
----
-11769100

onlyif mysql # DIV for integer division: 
query II rowsort label-5007
SELECT ALL ( 9 ) * 12, 41 DIV 69 AS col2
----
108
0

skipif mysql # not compatible
query II rowsort label-5007
SELECT ALL ( 9 ) * 12, 41 / 69 AS col2
----
108
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT - NULLIF ( - 58, 49 * - - 26 / - - 81 ) * CAST( NULL AS SIGNED ) + - 7 * + 34 + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT - NULLIF ( - 58, 49 * - - 26 / - - 81 ) * CAST ( NULL AS INTEGER ) + - 7 * + 34 + - 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5009
SELECT DISTINCT MIN( DISTINCT + 86 ) DIV + 85 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT MIN ( DISTINCT + 86 ) / + 85 AS col1
----
1

query I rowsort
SELECT ALL NULLIF ( - + 53, 89 ) * - 19
----
1007

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5011
SELECT + COUNT( * ) DIV + - 78
----
0

skipif mysql # not compatible
query I rowsort label-5011
SELECT + COUNT ( * ) / + - 78
----
0

query I rowsort
SELECT - 96 - 64 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL COUNT( * ) * - - ( + MAX( + 31 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL COUNT ( * ) * - - ( + MAX ( + 31 ) ) AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5014
SELECT 66 DIV - 90 * 65 + + + 45
----
45

skipif mysql # not compatible
query I rowsort label-5014
SELECT 66 / - 90 * 65 + + + 45
----
45

query I rowsort
SELECT ALL 72 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL - MIN( - + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - MIN ( - + 56 )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5017
SELECT - 92 + 87 + + 81 * + COUNT( - 59 ) AS col1, - MAX( - + 80 ) * - 22 * + 57 * + + COALESCE ( 90, - 27 DIV NULLIF ( ( - 89 ), + NULLIF ( NULLIF ( 98, + 69 ), - COUNT( * ) ) ) + 81 DIV ( 56 DIV COUNT( * ) ) ) AS col2
----
76
-9028800

skipif mysql # not compatible
query II rowsort label-5017
SELECT - 92 + 87 + + 81 * + COUNT ( - 59 ) AS col1, - MAX ( - + 80 ) * - 22 * + 57 * + + COALESCE ( 90, - 27 / NULLIF ( ( - 89 ), + NULLIF ( NULLIF ( 98, + 69 ), - COUNT ( * ) ) ) + 81 / ( 56 / COUNT ( * ) ) ) AS col2
----
76
-9028800

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL - SUM( 75 ) * + 38 col0
----
-2850

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL - SUM ( 75 ) * + 38 col0
----
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT DISTINCT - MIN( 2 ) + - + 95
----
-97

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT - MIN ( 2 ) + - + 95
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5020
SELECT + 28 * + COUNT( * ) * + + 67 * + + 96 DIV COUNT( * ) - + 7
----
180089

skipif mysql # not compatible
query I rowsort label-5020
SELECT + 28 * + COUNT ( * ) * + + 67 * + + 96 / COUNT ( * ) - + 7
----
180089

onlyif mysql # DIV for integer division: 
query II rowsort label-5021
SELECT ALL - + 8 + + ( - 51 ) DIV + - 72 + + 32 AS col1, ( 23 ) AS col2
----
24
23

skipif mysql # not compatible
query II rowsort label-5021
SELECT ALL - + 8 + + ( - 51 ) / + - 72 + + 32 AS col1, ( 23 ) AS col2
----
24
23

query I rowsort
SELECT 72 + + + 14 AS col1
----
86

query I rowsort
SELECT 31 + - 71 + - 90 col0
----
-130

query I rowsort
SELECT ALL + + 96 * 28 * 41
----
110208

query I rowsort
SELECT COALESCE ( 97, - COALESCE ( + 90, 43 ) ) AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5026
SELECT ALL ( - COUNT( * ) ) + + - COUNT( * ) + 36 DIV COALESCE ( + CAST( 76 AS SIGNED ), COUNT( * ) - - + 21 * 44 * + COALESCE ( 61, - AVG ( 41 ) DIV - 34 ) + COALESCE ( 67, - ( 69 ), - 75 + 35 * + ( 78 * - 20 ) ) * + 36, 99 ) * + 65
----
-2

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL ( - COUNT ( * ) ) + + - COUNT ( * ) + 36 / COALESCE ( + CAST ( 76 AS INTEGER ), COUNT ( * ) - - + 21 * 44 * + COALESCE ( 61, - AVG ( 41 ) / - 34 ) + COALESCE ( 67, - ( 69 ), - 75 + 35 * + ( 78 * - 20 ) ) * + 36, 99 ) * + 65
----
-2

query I rowsort
SELECT ALL 68 + + 10 col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT DISTINCT + 21 * - SUM( - - 63 ) * - 33 + - 8 * + COUNT( - 90 ) * + ( - 72 ) + - MIN( DISTINCT + CAST( 67 AS SIGNED ) ) * 44 AS col2
----
41287

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT + 21 * - SUM ( - - 63 ) * - 33 + - 8 * + COUNT ( - 90 ) * + ( - 72 ) + - MIN ( DISTINCT + CAST ( 67 AS INTEGER ) ) * 44 AS col2
----
41287

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL + + 20 + COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + + 20 + COUNT ( * ) AS col2
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5030
SELECT DISTINCT + 71 + CAST( NULL AS DECIMAL ) * + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT + 71 + CAST ( NULL AS REAL ) * + - 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT DISTINCT + - 54 * + COALESCE ( + 30, + - 51 DIV CASE 13 WHEN + 89 THEN ( 7 ) ELSE - + 91 END, + 20 * 71 ) + - ( 51 ) AS col0
----
-1671

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT + - 54 * + COALESCE ( + 30, + - 51 / CASE 13 WHEN + 89 THEN ( 7 ) ELSE - + 91 END, + 20 * 71 ) + - ( 51 ) AS col0
----
-1671

query I rowsort
SELECT ALL + - 91 + + + 60
----
-31

query I rowsort
SELECT 89 * - + 25 AS col2
----
-2225

query I rowsort
SELECT + 1 - 66 AS col0
----
-65

query I rowsort
SELECT - - ( 65 ) col0
----
65

query I rowsort
SELECT DISTINCT + 87 - + - 8 AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5037
SELECT ALL - COUNT( * ) DIV + 41 * - + 11
----
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL - COUNT ( * ) / + 41 * - + 11
----
0

query II rowsort
SELECT ALL 16, 63 * - + 45 + + 54 AS col1
----
16
-2781

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT + 5 - + MAX( DISTINCT - 30 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT + 5 - + MAX ( DISTINCT - 30 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5040
SELECT - 69 AS col1, + 1 * 90 * + NULLIF ( - 74, + 40 + - - 29 ) * + - COUNT( * )
----
-69
6660

skipif mysql # not compatible
query II rowsort label-5040
SELECT - 69 AS col1, + 1 * 90 * + NULLIF ( - 74, + 40 + - - 29 ) * + - COUNT ( * )
----
-69
6660

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT 95 + - - COUNT( 57 ) + CASE - + 35 WHEN 37 THEN - + 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT 95 + - - COUNT ( 57 ) + CASE - + 35 WHEN 37 THEN - + 69 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5042
SELECT DISTINCT NULLIF ( + + SUM( - 36 ), - + 84 ) * 17 * - CASE + 55 WHEN - 83 - 72 + - 97 / - 82 THEN - 86 ELSE + COALESCE ( - CAST( + 90 AS SIGNED ), - 22 + + 1 * 38 ) + + 26 END + 61
----
-39107

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT NULLIF ( + + SUM ( - 36 ), - + 84 ) * 17 * - CASE + 55 WHEN - 83 - 72 + - 97 / - 82 THEN - 86 ELSE + COALESCE ( - CAST ( + 90 AS INTEGER ), - 22 + + 1 * 38 ) + + 26 END + 61
----
-39107

query I rowsort
SELECT ALL + 60 * - - 59 col2
----
3540

query I rowsort
SELECT 85 * 23
----
1955

onlyif mysql # aggregate syntax: 
query II rowsort label-5045
SELECT - 34 col2, 14 + COUNT( * ) + - COALESCE ( - + 13, - + 54, + NULLIF ( SUM( DISTINCT + 14 ), + 66 ) ) + - 13 + 67 * MAX( ALL 2 ) AS col1
----
-34
149

skipif mysql # not compatible
query II rowsort label-5045
SELECT - 34 col2, 14 + COUNT ( * ) + - COALESCE ( - + 13, - + 54, + NULLIF ( SUM ( DISTINCT + 14 ), + 66 ) ) + - 13 + 67 * MAX ( ALL 2 ) AS col1
----
-34
149

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - ( - NULLIF ( - - CASE + COUNT( * ) WHEN + 93 THEN 94 / + 83 + - + 54 END, + + 32 ) ) / - MIN( - 57 ) + - 98 * - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT - ( - NULLIF ( - - CASE + COUNT ( * ) WHEN + 93 THEN 94 / + 83 + - + 54 END, + + 32 ) ) / - MIN ( - 57 ) + - 98 * - 75 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5047
SELECT COUNT( * ) * 10 DIV - ( + 16 )
----
0

skipif mysql # not compatible
query I rowsort label-5047
SELECT COUNT ( * ) * 10 / - ( + 16 )
----
0

query I rowsort
SELECT 23 * - ( - 85 ) AS col1
----
1955

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT ALL 55 DIV + 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL 55 / + 50 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ( - COUNT( * ) ) * CASE - - 24 WHEN 33 * - 27 * - COALESCE ( 32, + 74 ) + 63 THEN + AVG ( ( - 5 ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT ( - COUNT ( * ) ) * CASE - - 24 WHEN 33 * - 27 * - COALESCE ( 32, + 74 ) + 63 THEN + AVG ( ( - 5 ) ) END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT ALL + 49 + + 42 + + 33 - + + 1 + 18 - - CAST( NULL AS SIGNED ) * 14 * + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL + 49 + + 42 + + 33 - + + 1 + 18 - - CAST ( NULL AS INTEGER ) * 14 * + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT - COUNT( DISTINCT + 60 ) * + 95 - COUNT( * ) * - 10 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5052
SELECT - COUNT ( DISTINCT + 60 ) * + 95 - COUNT ( * ) * - 10 AS col2
----
-85

query II rowsort
SELECT 56 + + - 49 - - 87 + ( 26 ) * + 81, - 50 + ( + 82 ) AS col1
----
2200
32

query I rowsort
SELECT - 39 * + + 39 AS col1
----
-1521

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5055
SELECT + - 86 AS col0, COUNT( * ) DIV - 99 AS col2
----
-86
0

skipif mysql # not compatible
query II rowsort label-5055
SELECT + - 86 AS col0, COUNT ( * ) / - 99 AS col2
----
-86
0

query I rowsort
SELECT DISTINCT CASE + - 23 WHEN - 85 THEN 73 WHEN - + 44 * 73 + - 13 THEN NULL ELSE + - 1 END * - 36
----
36

query I rowsort
SELECT ALL - 33 + 1 * + 46 * + 72 col0
----
3279

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT + ( + MAX( - - 0 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5058
SELECT + ( + MAX ( - - 0 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT DISTINCT 80 * - 10 - + COALESCE ( - 99, + - 26 * + SUM( 87 ) * - 46, + - 28 - + - 50 - 93 * 14 )
----
-701

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT 80 * - 10 - + COALESCE ( - 99, + - 26 * + SUM ( 87 ) * - 46, + - 28 - + - 50 - 93 * 14 )
----
-701

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT + 33 + - COUNT( + 77 ) / 12 + + + CASE + - 61 WHEN + COUNT( * ) + COUNT( * ) THEN - ( NULLIF ( 76, 53 ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5060
SELECT + 33 + - COUNT ( + 77 ) / 12 + + + CASE + - 61 WHEN + COUNT ( * ) + COUNT ( * ) THEN - ( NULLIF ( 76, 53 ) ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 73 + - 2 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - COUNT( DISTINCT - 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-5062
SELECT - COUNT ( DISTINCT - 75 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT 48 * + + 95 * - 36 - + + COUNT( * ) AS col1, 67 * - 41 AS col0
----
-164161
-2747

skipif mysql # not compatible
query II rowsort label-5063
SELECT 48 * + + 95 * - 36 - + + COUNT ( * ) AS col1, 67 * - 41 AS col0
----
-164161
-2747

onlyif mysql # aggregate syntax: 
query II rowsort label-5064
SELECT - 45, - MAX( - + 23 ) AS col0
----
-45
23

skipif mysql # not compatible
query II rowsort label-5064
SELECT - 45, - MAX ( - + 23 ) AS col0
----
-45
23

query I rowsort
SELECT 94 - + 67 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5066
SELECT - + CASE - CAST( - 27 AS SIGNED ) WHEN - + COALESCE ( + 33, + COUNT( * ), - + 35 ) * - 70 THEN - 14 * + 42 * 52 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT - + CASE - CAST ( - 27 AS INTEGER ) WHEN - + COALESCE ( + 33, + COUNT ( * ), - + 35 ) * - 70 THEN - 14 * + 42 * 52 END col2
----
NULL

query I rowsort
SELECT 89 * - ( - 31 )
----
2759

onlyif mysql # aggregate syntax: 
query II rowsort label-5068
SELECT ALL - COUNT( * ) * + + ( 27 ) AS col0, 83 * - 72 AS col0
----
-27
-5976

skipif mysql # not compatible
query II rowsort label-5068
SELECT ALL - COUNT ( * ) * + + ( 27 ) AS col0, 83 * - 72 AS col0
----
-27
-5976

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL + 74 - - COUNT( * ) * - 5 + - ( - 98 ) AS col0
----
167

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL + 74 - - COUNT ( * ) * - 5 + - ( - 98 ) AS col0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT SUM( DISTINCT + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT SUM ( DISTINCT + 31 )
----
31

query I rowsort
SELECT 79 * + 89 AS col0
----
7031

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT 85 + ( + 33 ) + 37 + + + 88 + 27 + 78 * SUM( DISTINCT - 95 ) AS col1
----
-7140

skipif mysql # not compatible
query I rowsort label-5072
SELECT 85 + ( + 33 ) + 37 + + + 88 + 27 + 78 * SUM ( DISTINCT - 95 ) AS col1
----
-7140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 4 + + 43 * + + 50 - 7 col1
----
2147

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL SUM( ALL 44 )
----
44

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL SUM ( ALL 44 )
----
44

query I rowsort
SELECT ALL CASE WHEN 56 BETWEEN - ( - 81 ) AND - - 29 THEN 16 ELSE + 90 END
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT DISTINCT MIN( DISTINCT - + 14 ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT MIN ( DISTINCT - + 14 ) col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT - 61 + - CAST( AVG ( - + 89 ) AS SIGNED ) col2
----
28

skipif my