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 mysql # not compatible
query I rowsort label-5078
SELECT - 61 + - CAST ( AVG ( - + 89 ) AS INTEGER ) col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT DISTINCT + MAX( + + 34 ) * - ( + 71 ) + + + 57 AS col1
----
-2357

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT + MAX ( + + 34 ) * - ( + 71 ) + + + 57 AS col1
----
-2357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5080
SELECT COALESCE ( 79, - - 75 DIV CAST( 5 AS SIGNED ) + + + COUNT( - 8 ) * - - 72 - - CAST( NULL AS SIGNED ), 18 )
----
79

skipif mysql # not compatible
query I rowsort label-5080
SELECT COALESCE ( 79, - - 75 / CAST ( 5 AS INTEGER ) + + + COUNT ( - 8 ) * - - 72 - - CAST ( NULL AS INTEGER ), 18 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT - 9 DIV - 79 + + - 71 + - 95 col1
----
-166

skipif mysql # not compatible
query I rowsort label-5081
SELECT - 9 / - 79 + + - 71 + - 95 col1
----
-166

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT ALL - 49 * + + ( + 88 ) + + + 96 DIV - + 92 + + 58 * + ( - 79 ) AS col0
----
-8895

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL - 49 * + + ( + 88 ) + + + 96 / - + 92 + + 58 * + ( - 79 ) AS col0
----
-8895

query I rowsort
SELECT - 25 + - 81
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5084
SELECT + CAST( NULL AS SIGNED ) + MAX( DISTINCT + 58 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT + CAST ( NULL AS INTEGER ) + MAX ( DISTINCT + 58 ) col2
----
NULL

query II rowsort
SELECT - 40 + 21, + 59 AS col0
----
-19
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL + 82 * - 6 + 94 + + MIN( 69 ) + + - 37
----
-366

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL + 82 * - 6 + 94 + + MIN ( 69 ) + + - 37
----
-366

query I rowsort
SELECT - 33 * - 37 * - + 22 + 35 AS col0
----
-26827

query II rowsort
SELECT + + 18 - 97, - 57 AS col0
----
-79
-57

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5090
SELECT ALL - 3 * + - 17 DIV + ( + COUNT( * ) ) + - + COUNT( * ) * 25 * + - COUNT( * ) + 80
----
156

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - 3 * + - 17 / + ( + COUNT ( * ) ) + - + COUNT ( * ) * 25 * + - COUNT ( * ) + 80
----
156

query I rowsort
SELECT DISTINCT 99 * + ( + 39 ) * - 94 + - - 72
----
-362862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5092
SELECT - COALESCE ( + 67, + - 27 + + 9 * 65 + - 30 * + 28, + 57 ) * + COALESCE ( 71, + 16 * 59 + - SUM( + 84 ) DIV 16 )
----
-4757

skipif mysql # not compatible
query I rowsort label-5092
SELECT - COALESCE ( + 67, + - 27 + + 9 * 65 + - 30 * + 28, + 57 ) * + COALESCE ( 71, + 16 * 59 + - SUM ( + 84 ) / 16 )
----
-4757

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5093
SELECT + 57 * + 98 DIV + COUNT( * ) + ( - 96 ) + 60
----
5550

skipif mysql # not compatible
query I rowsort label-5093
SELECT + 57 * + 98 / + COUNT ( * ) + ( - 96 ) + 60
----
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + + 16 * ( 53 ) * - COUNT( * )
----
-848

skipif mysql # not compatible
query I rowsort label-5094
SELECT + + 16 * ( 53 ) * - COUNT ( * )
----
-848

query I rowsort
SELECT + - 5 + - 71
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT + NULLIF ( + + 43, + COUNT( * ) + - + 83 + + - 46 + - - 31 ) col0
----
43

skipif mysql # not compatible
query I rowsort label-5096
SELECT + NULLIF ( + + 43, + COUNT ( * ) + - + 83 + + - 46 + - - 31 ) col0
----
43

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

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

query I rowsort
SELECT ALL + 61 - + - 18 * - 33 * + + 69 + - 40
----
-40965

query I rowsort
SELECT ALL 76 * - 56 * NULLIF ( - 95, - + 83 + 89 * - 19 + + - 32 )
----
404320

query I rowsort
SELECT + 33 * + 15 AS col1
----
495

query I rowsort
SELECT 96 * 18 + - 69 AS col0
----
1659

query I rowsort
SELECT + 27 + 74 AS col0
----
101

query I rowsort
SELECT + 98 * ( + 6 ) AS col0
----
588

query I rowsort
SELECT + 3 * - - 59
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT - COALESCE ( - 96, + + ( + COUNT( * ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-5105
SELECT - COALESCE ( - 96, + + ( + COUNT ( * ) ) )
----
96

query I rowsort
SELECT - 21 + + 21 * NULLIF ( + - 67, 52 * + 94 * - 58 ) AS col1
----
-1428

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT - COUNT( DISTINCT - 51 ) + ( + 0 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5108
SELECT - COUNT ( DISTINCT - 51 ) + ( + 0 ) AS col1
----
-1

query I rowsort
SELECT ALL - ( - 29 ) + + 85 AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ALL CASE + + AVG ( DISTINCT - 40 ) WHEN + - ( - NULLIF ( + + ( - 32 ), + - 16 - COUNT( * ) ) ) * - 83 * 38 * + 75 THEN - SUM( ALL + 15 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL CASE + + AVG ( DISTINCT - 40 ) WHEN + - ( - NULLIF ( + + ( - 32 ), + - 16 - COUNT ( * ) ) ) * - 83 * 38 * + 75 THEN - SUM ( ALL + 15 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5111
SELECT ALL COALESCE ( - 54, + + 9 DIV + 30 DIV ( - 19 ) + - 43 ) + - 7, + 13 col2
----
-61
13

skipif mysql # not compatible
query II rowsort label-5111
SELECT ALL COALESCE ( - 54, + + 9 / + 30 / ( - 19 ) + - 43 ) + - 7, + 13 col2
----
-61
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5112
SELECT ALL - 71 + 85 - + - MIN( + 92 ) * CAST( + ( + COUNT( 70 ) ) AS SIGNED )
----
106

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL - 71 + 85 - + - MIN ( + 92 ) * CAST ( + ( + COUNT ( 70 ) ) AS INTEGER )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL COUNT( * ) + 31 + - 28 + - 37 * 84 * + 43 AS col0
----
-133640

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL COUNT ( * ) + 31 + - 28 + - 37 * 84 * + 43 AS col0
----
-133640

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT DISTINCT CASE WHEN NOT 72 IS NOT NULL THEN NULL ELSE MAX( ALL - + 66 ) + - COUNT( * ) END
----
-67

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT CASE WHEN NOT 72 IS NOT NULL THEN NULL ELSE MAX ( ALL - + 66 ) + - COUNT ( * ) END
----
-67

query I rowsort
SELECT DISTINCT COALESCE ( + + 68, + 34, - 44 + - 58 ) AS col1
----
68

query I rowsort
SELECT + 1 * ( - + NULLIF ( 13, + 56 + - 29 + - 97 ) )
----
-13

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

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

query I rowsort
SELECT + - COALESCE ( 47, ( - 14 ), + 42 )
----
-47

query II rowsort
SELECT DISTINCT + + 12 AS col1, 52
----
12
52

query I rowsort
SELECT - 61 * + 34 col2
----
-2074

query I rowsort
SELECT - 74 * + + 41 AS col1
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL - - 76 * + 96 * 79 + 21 - + COUNT( * ) AS col0
----
576404

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - - 76 * + 96 * 79 + 21 - + COUNT ( * ) AS col0
----
576404

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT ALL 97 DIV 50 - + + 42 + + + 96
----
55

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL 97 / 50 - + + 42 + + + 96
----
55

query I rowsort
SELECT + 1 * + - 48 + - 49 - - 75 AS col2
----
-22

query I rowsort
SELECT - + 20 * + 89 col1
----
-1780

query I rowsort
SELECT ALL - + 84 * - 73
----
6132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT + 13 * COUNT( * ) - - + 15 + + - 1 + - + CAST( NULL AS SIGNED ) * 28 + - 60 * - ( + + CAST( NULL AS SIGNED ) ) * 62 * + + 84 * + 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT + 13 * COUNT ( * ) - - + 15 + + - 1 + - + CAST ( NULL AS INTEGER ) * 28 + - 60 * - ( + + CAST ( NULL AS INTEGER ) ) * 62 * + + 84 * + 39 col0
----
NULL

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

query I rowsort
SELECT - + ( 26 ) + + 1 AS col1
----
-25

query I rowsort
SELECT ALL - - 17 * + 53 AS col1
----
901

query I rowsort
SELECT - 77 * - - 11 + + 35 - + 3 * + 10 AS col1
----
-842

query II rowsort
SELECT + 58 col0, 16 + 92
----
58
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT + COALESCE ( + 76, - ( + COALESCE ( - 65, - CASE + + 35 WHEN + - 37 * 96 THEN COUNT( * ) END * + 74 + - - 14 ) ) )
----
76

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT + COALESCE ( + 76, - ( + COALESCE ( - 65, - CASE + + 35 WHEN + - 37 * 96 THEN COUNT ( * ) END * + 74 + - - 14 ) ) )
----
76

query I rowsort
SELECT NULLIF ( 67, 43 )
----
67

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT + 4 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-5137
SELECT + 4 / 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT ALL COUNT( * ) * 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL COUNT ( * ) * 14 AS col1
----
14

query I rowsort
SELECT - ( - 54 ) * + 53 AS col1
----
2862

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5140
SELECT CAST( NULL AS DECIMAL ) * 72 + 79 * + 48 * 46 * - - MAX( - - 33 ) * + SUM( + + 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT CAST ( NULL AS REAL ) * 72 + 79 * + 48 * 46 * - - MAX ( - - 33 ) * + SUM ( + + 90 )
----
NULL

query II rowsort
SELECT DISTINCT 3 * 83 AS col2, 54 AS col0
----
249
54

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

skipif mysql # not compatible
query I rowsort label-5142
SELECT COUNT ( * ) / - - 46 AS col2
----
0

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

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

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

query I rowsort
SELECT DISTINCT 91 + - 83
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT 29 + - CASE 70 WHEN + 15 THEN + COUNT( * ) + + - ( 23 ) - + 18 * + 24 + + 47 ELSE + - 22 END
----
51

skipif mysql # not compatible
query I rowsort label-5146
SELECT 29 + - CASE 70 WHEN + 15 THEN + COUNT ( * ) + + - ( 23 ) - + 18 * + 24 + + 47 ELSE + - 22 END
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL 89 + - COUNT( * ) + + ( + + 32 ) AS col2
----
120

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL 89 + - COUNT ( * ) + + ( + + 32 ) AS col2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5148
SELECT DISTINCT + - MIN( ALL ( + + CAST( 25 AS SIGNED ) ) ) * - 24 AS col0
----
600

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT + - MIN ( ALL ( + + CAST ( 25 AS INTEGER ) ) ) * - 24 AS col0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT - 68 - + MAX( DISTINCT + 34 )
----
-102

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT - 68 - + MAX ( DISTINCT + 34 )
----
-102

query I rowsort
SELECT ALL + ( + - 82 ) * - + ( 73 )
----
5986

onlyif mysql # aggregate syntax: 
query II rowsort label-5151
SELECT + CASE + + 39 WHEN + 13 THEN 1 ELSE NULL END AS col2, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5151
SELECT + CASE + + 39 WHEN + 13 THEN 1 ELSE NULL END AS col2, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT - SUM( ALL - 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5152
SELECT - SUM ( ALL - 51 ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT + + NULLIF ( NULLIF ( - 26, - 67 ), 36 * - 86 ) DIV - + 38 + + - 59
----
-59

skipif mysql # not compatible
query I rowsort label-5153
SELECT + + NULLIF ( NULLIF ( - 26, - 67 ), 36 * - 86 ) / - + 38 + + - 59
----
-59

query I rowsort
SELECT - 94 * - ( - - 25 )
----
2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5155
SELECT COUNT( * ) + + MIN( ALL + ( 5 ) ) DIV - 94 + - COUNT( * ) + + + 30 * + 29 + + COUNT( * ) AS col1
----
871

skipif mysql # not compatible
query I rowsort label-5155
SELECT COUNT ( * ) + + MIN ( ALL + ( 5 ) ) / - 94 + - COUNT ( * ) + + + 30 * + 29 + + COUNT ( * ) AS col1
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT - COUNT( 19 ) * + - 53 + 25 + 3
----
81

skipif mysql # not compatible
query I rowsort label-5156
SELECT - COUNT ( 19 ) * + - 53 + 25 + 3
----
81

query I rowsort
SELECT 33 * - 80 * 2 AS col0
----
-5280

query I rowsort
SELECT ALL - + 69 * + 94 col2
----
-6486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT CAST( NULL AS SIGNED ) * - - ( - 32 ) * - - 87 + + 76 - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT CAST ( NULL AS INTEGER ) * - - ( - 32 ) * - - 87 + + 76 - - 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT - 98 * + 38 + - - COUNT( * ) + 18 + - + 71 * 2
----
-3847

skipif mysql # not compatible
query I rowsort label-5160
SELECT - 98 * + 38 + - - COUNT ( * ) + 18 + - + 71 * 2
----
-3847

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT COUNT( * ) * - SUM( DISTINCT - 21 ) + + - CASE + 66 WHEN + COUNT( * ) THEN SUM( 17 ) * - + SUM( + 26 ) WHEN + 20 THEN 96 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT COUNT ( * ) * - SUM ( DISTINCT - 21 ) + + - CASE + 66 WHEN + COUNT ( * ) THEN SUM ( 17 ) * - + SUM ( + 26 ) WHEN + 20 THEN 96 END AS col0
----
NULL

query I rowsort
SELECT + 10 * - 62 * - 30
----
18600

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5164
SELECT 2, 38 / CAST( NULL AS DECIMAL ) * + 45 + COUNT( * ) + 1 col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5164
SELECT 2, 38 / CAST ( NULL AS REAL ) * + 45 + COUNT ( * ) + 1 col2
----
2
NULL

query I rowsort
SELECT 33 * 24 * - - 72 + + + 35
----
57059

onlyif mysql # aggregate syntax: 
query II rowsort label-5166
SELECT COUNT( * ) * - 16 * + - 62 * + - 2 * - 84 AS col1, - 91 + - + 41 AS col0
----
166656
-132

skipif mysql # not compatible
query II rowsort label-5166
SELECT COUNT ( * ) * - 16 * + - 62 * + - 2 * - 84 AS col1, - 91 + - + 41 AS col0
----
166656
-132

query I rowsort
SELECT DISTINCT + 97 + + + 5 * + + 84 + - 21 * 3 * - 31
----
2470

query I rowsort
SELECT DISTINCT + 25 * - + 79 AS col1
----
-1975

query II rowsort
SELECT DISTINCT 26 AS col2, 72 + + 76
----
26
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL CAST( 40 AS SIGNED ) + 46 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL CAST ( 40 AS INTEGER ) + 46 AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT - 79 * COUNT( * ) + - 25 * + + 57 AS col2
----
-1504

skipif mysql # not compatible
query I rowsort label-5171
SELECT - 79 * COUNT ( * ) + - 25 * + + 57 AS col2
----
-1504

query I rowsort
SELECT 39 + + + 36
----
75

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

skipif mysql # not compatible
query I rowsort label-5173
SELECT COUNT ( * ) * - - 36
----
36

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

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

query I rowsort
SELECT 19 * + ( ( - - 39 ) ) AS col2
----
741

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

skipif mysql # not compatible
query II rowsort label-5176
SELECT - 42 AS col2, COUNT ( * )
----
-42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ( SUM( 33 ) ) * - 10 + 74 + + SUM( DISTINCT ( + 30 ) ) + + COUNT( DISTINCT - 43 ) + + 34 AS col0
----
-191

skipif mysql # not compatible
query I rowsort label-5177
SELECT ( SUM ( 33 ) ) * - 10 + 74 + + SUM ( DISTINCT ( + 30 ) ) + + COUNT ( DISTINCT - 43 ) + + 34 AS col0
----
-191

query I rowsort
SELECT ALL 90 - - - 8
----
82

query I rowsort
SELECT ALL 49 * - 17
----
-833

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT ALL COUNT( ALL 59 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL COUNT ( ALL 59 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT + + 68 * - + NULLIF ( + ( + 2 ), COUNT( + 97 ) ) * - - 57 - - - 22 + + 3 AS col1
----
-7771

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT + + 68 * - + NULLIF ( + ( + 2 ), COUNT ( + 97 ) ) * - - 57 - - - 22 + + 3 AS col1
----
-7771

query I rowsort
SELECT ALL - + 5 - - - 1 AS col2
----
-6

query I rowsort
SELECT 86 * + + 97 col0
----
8342

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

skipif mysql # not compatible
query I rowsort label-5184
SELECT - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT - 9 - - COUNT( 96 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-5185
SELECT - 9 - - COUNT ( 96 ) AS col0
----
-8

query II rowsort
SELECT + 19 AS col0, + 23
----
19
23

query I rowsort
SELECT - 50 * + - 15 * - 58
----
-43500

query I rowsort
SELECT DISTINCT 37 * 65 AS col0
----
2405

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT ( - 99 ) * - + COALESCE ( CASE + - 74 WHEN + 96 + - ( - 95 ) THEN - 8 + ( - - 63 ) - COUNT( DISTINCT - 17 ) WHEN + 27 * 50 THEN NULL WHEN 66 THEN NULL END, 14 * - 27 + - 16, - COUNT( * ) + COUNT( * ) )
----
-39006

skipif mysql # not compatible
query I rowsort label-5189
SELECT ( - 99 ) * - + COALESCE ( CASE + - 74 WHEN + 96 + - ( - 95 ) THEN - 8 + ( - - 63 ) - COUNT ( DISTINCT - 17 ) WHEN + 27 * 50 THEN NULL WHEN 66 THEN NULL END, 14 * - 27 + - 16, - COUNT ( * ) + COUNT ( * ) )
----
-39006

query I rowsort
SELECT DISTINCT - + CASE + AVG ( DISTINCT - 1 ) WHEN + + 20 THEN - 44 WHEN + + 32 THEN - 47 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5191
SELECT ALL + - CASE + 3 WHEN 44 + + COUNT( * ) THEN NULL WHEN 61 THEN - + 37 END * + 31 * - + ( + MAX( + 27 ) ) + - CAST( + + ( - MAX( + - 81 ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + - CASE + 3 WHEN 44 + + COUNT ( * ) THEN NULL WHEN 61 THEN - + 37 END * + 31 * - + ( + MAX ( + 27 ) ) + - CAST ( + + ( - MAX ( + - 81 ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5192
SELECT CAST( NULL AS SIGNED ) / + + 56 + - - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT CAST ( NULL AS INTEGER ) / + + 56 + - - 69
----
NULL

query I rowsort
SELECT + 51 + 71
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL 33 + - 41 + SUM( ( 58 ) ) * + 1
----
50

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL 33 + - 41 + SUM ( ( 58 ) ) * + 1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL - COALESCE ( + 67, + COUNT( * ), + 71 * + 93 ) + - 22
----
-89

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL - COALESCE ( + 67, + COUNT ( * ), + 71 * + 93 ) + - 22
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5196
SELECT - 62 DIV - 10
----
6

skipif mysql # not compatible
query I rowsort label-5196
SELECT - 62 / - 10
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT ALL + MAX( + - 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL + MAX ( + - 65 ) AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT - 97 + 96 DIV - 16 + - + 19 * NULLIF ( - 37, + 8 )
----
600

skipif mysql # not compatible
query I rowsort label-5198
SELECT - 97 + 96 / - 16 + - + 19 * NULLIF ( - 37, + 8 )
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT MAX( - + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-5199
SELECT MAX ( - + 69 )
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5200
SELECT ALL COUNT( * ) AS col0, 50 * - + 53 + + - 23
----
1
-2673

skipif mysql # not compatible
query II rowsort label-5200
SELECT ALL COUNT ( * ) AS col0, 50 * - + 53 + + - 23
----
1
-2673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5201
SELECT - CASE - CAST( + + 64 AS SIGNED ) WHEN + CASE WHEN - + 95 NOT IN ( + 61 * - 76 - + 30 * + + COUNT( * ) + - ( + CAST( NULL AS SIGNED ) ), 81 * - + 16 ) OR NOT 66 >= - ( CASE - 93 WHEN - 66 * 43 THEN NULL ELSE COUNT( * ) END ) THEN NULL WHEN NOT NULLIF ( COALESCE ( 22, COALESCE ( + 58, 55 + + 27 * 18 ) ), 41 ) - 18 <= 44 THEN 1 ELSE + 1 * + 71 + + 65 * COUNT( * ) END * 96 + 13 THEN + 72 WHEN 17 THEN 44 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT - CASE - CAST ( + + 64 AS INTEGER ) WHEN + CASE WHEN - + 95 NOT IN ( + 61 * - 76 - + 30 * + + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ), 81 * - + 16 ) OR NOT 66 >= - ( CASE - 93 WHEN - 66 * 43 THEN NULL ELSE COUNT ( * ) END ) THEN NULL WHEN NOT NULLIF ( COALESCE ( 22, COALESCE ( + 58, 55 + + 27 * 18 ) ), 41 ) - 18 <= 44 THEN 1 ELSE + 1 * + 71 + + 65 * COUNT ( * ) END * 96 + 13 THEN + 72 WHEN 17 THEN 44 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 50, - - 15 ) - - 34
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5203
SELECT 85 * 95 * - COUNT( * ) * - MIN( ALL + 28 ) * + 73 + CASE + COUNT( * ) WHEN - - 25 THEN NULL WHEN + CASE - 44 WHEN - 41 * MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) - + NULLIF ( - + 55, + ( - 41 ) + COUNT( * ) ) THEN NULL WHEN - 96 THEN - 41 END THEN - 16 END + SUM( 7 ) * 57 + NULLIF ( + 58, + 68 * 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT 85 * 95 * - COUNT ( * ) * - MIN ( ALL + 28 ) * + 73 + CASE + COUNT ( * ) WHEN - - 25 THEN NULL WHEN + CASE - 44 WHEN - 41 * MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) - + NULLIF ( - + 55, + ( - 41 ) + COUNT ( * ) ) THEN NULL WHEN - 96 THEN - 41 END THEN - 16 END + SUM ( 7 ) * 57 + NULLIF ( + 58, + 68 * 95 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5204
SELECT - 42, - COALESCE ( - 92, + 55, - 46 ) - 79 / - + AVG ( ALL 23 ) * + CAST( NULL AS SIGNED ) AS col2
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-5204
SELECT - 42, - COALESCE ( - 92, + 55, - 46 ) - 79 / - + AVG ( ALL 23 ) * + CAST ( NULL AS INTEGER ) AS col2
----
-42
NULL

query I rowsort
SELECT DISTINCT NULLIF ( + 33, 44 ) AS col0
----
33

query I rowsort
SELECT DISTINCT - 22 - 1 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT 25 AS col1, MAX( + 58 ) - - 67 col2
----
25
125

skipif mysql # not compatible
query II rowsort label-5207
SELECT 25 AS col1, MAX ( + 58 ) - - 67 col2
----
25
125

onlyif mysql # aggregate syntax: 
query II rowsort label-5208
SELECT ALL ( + 3 ), SUM( 75 ) AS col1
----
3
75

skipif mysql # not compatible
query II rowsort label-5208
SELECT ALL ( + 3 ), SUM ( 75 ) AS col1
----
3
75

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

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

query I rowsort
SELECT - 93 + + - 30
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-5211
SELECT - 98 DIV - - 66 + 36 * - 77 AS col1
----
-2773

skipif mysql # not compatible
query I rowsort label-5211
SELECT - 98 / - - 66 + 36 * - 77 AS col1
----
-2773

onlyif mysql # aggregate syntax: 
query II rowsort label-5212
SELECT + MIN( 98 ) * 2 + + - COUNT( * ) + 71 * CASE - + 81 WHEN + - 27 THEN NULL WHEN - - 43 THEN + COUNT( * ) * 1 END * 36 + + + ( + 6 ), + 15 * + + COUNT( * ) AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-5212
SELECT + MIN ( 98 ) * 2 + + - COUNT ( * ) + 71 * CASE - + 81 WHEN + - 27 THEN NULL WHEN - - 43 THEN + COUNT ( * ) * 1 END * 36 + + + ( + 6 ), + 15 * + + COUNT ( * ) AS col1
----
NULL
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT - NULLIF ( - 23, + + 37 ) + - NULLIF ( + 85, 84 / - - 50 * 55 * - 89 * 36 + - 1 / - 6 + NULLIF ( + - CAST( 92 AS SIGNED ), - 78 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-5213
SELECT - NULLIF ( - 23, + + 37 ) + - NULLIF ( + 85, 84 / - - 50 * 55 * - 89 * 36 + - 1 / - 6 + NULLIF ( + - CAST ( 92 AS INTEGER ), - 78 ) )
----
-62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT DISTINCT - 16 DIV + - 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT - 16 / + - 31 AS col2
----
0

query I rowsort
SELECT - + 47 * - + 29
----
1363

query I rowsort
SELECT ALL - 83 * - ( - 48 ) AS col2
----
-3984

query II rowsort
SELECT DISTINCT 20 AS col1, + 27 AS col0
----
20
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT - - COUNT( * ) * 39 + 8 * + 22 - - 25 * + 93 * - ( + 77 )
----
-178810

skipif mysql # not compatible
query I rowsort label-5219
SELECT - - COUNT ( * ) * 39 + 8 * + 22 - - 25 * + 93 * - ( + 77 )
----
-178810

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5222
SELECT ALL + + 98 * - 79 AS col1, 83 + 60 + 95 - CASE + 98 WHEN + 23 THEN - + 88 - 24 WHEN + - ( + + 14 ) * + - 4 THEN + + 12 END * + 58 * - ( - COUNT( * ) ) * COUNT( * ) + + ( + 19 )
----
-7742
NULL

skipif mysql # not compatible
query II rowsort label-5222
SELECT ALL + + 98 * - 79 AS col1, 83 + 60 + 95 - CASE + 98 WHEN + 23 THEN - + 88 - 24 WHEN + - ( + + 14 ) * + - 4 THEN + + 12 END * + 58 * - ( - COUNT ( * ) ) * COUNT ( * ) + + ( + 19 )
----
-7742
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5223
SELECT - - 28 DIV - 94 col1, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-5223
SELECT - - 28 / - 94 col1, + COUNT ( * )
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5224
SELECT - COUNT( * ) DIV - 60 + - MIN( 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5224
SELECT - COUNT ( * ) / - 60 + - MIN ( 37 ) AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5225
SELECT ALL + - 15 DIV - CASE + 47 WHEN + COUNT( * ) THEN + 53 * + - 34 + 4 + 64 * + - 73 + NULLIF ( + SUM( - 79 ), + CASE - 72 WHEN ( - 64 ) THEN COUNT( * ) WHEN 62 THEN - COUNT( CAST( + 82 AS SIGNED ) ) END * + 56 ) WHEN MIN( + 0 ) + + COUNT( * ) THEN 76 WHEN + 90 * - 23 THEN COUNT( * ) ELSE - ( - COUNT( * ) ) END + + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL + - 15 / - CASE + 47 WHEN + COUNT ( * ) THEN + 53 * + - 34 + 4 + 64 * + - 73 + NULLIF ( + SUM ( - 79 ), + CASE - 72 WHEN ( - 64 ) THEN COUNT ( * ) WHEN 62 THEN - COUNT ( CAST ( + 82 AS INTEGER ) ) END * + 56 ) WHEN MIN ( + 0 ) + + COUNT ( * ) THEN 76 WHEN + 90 * - 23 THEN COUNT ( * ) ELSE - ( - COUNT ( * ) ) END + + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5226
SELECT + 10, 89 * + - 99 + + CASE + 93 WHEN + COUNT( * ) + + 9 + + 31 THEN SUM( - + 24 ) WHEN + + 39 * + 14 / + + ( - + 89 ) / + - 14 + 78 THEN NULL END * 57 AS col1
----
10
NULL

skipif mysql # not compatible
query II rowsort label-5226
SELECT + 10, 89 * + - 99 + + CASE + 93 WHEN + COUNT ( * ) + + 9 + + 31 THEN SUM ( - + 24 ) WHEN + + 39 * + 14 / + + ( - + 89 ) / + - 14 + 78 THEN NULL END * 57 AS col1
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT - - CASE - COUNT( * ) WHEN + 18 + 53 THEN + + 52 ELSE - + 47 END * 31 + + CASE + 13 WHEN 69 THEN NULL WHEN - 41 THEN - 55 END + + 36 + 44 - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - - CASE - COUNT ( * ) WHEN + 18 + 53 THEN + + 52 ELSE - + 47 END * 31 + + CASE + 13 WHEN 69 THEN NULL WHEN - 41 THEN - 55 END + + 36 + 44 - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT ALL + COALESCE ( ( - ( - MAX( ALL + 99 ) ) ), + 68 )
----
99

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + COALESCE ( ( - ( - MAX ( ALL + 99 ) ) ), + 68 )
----
99

query I rowsort
SELECT + NULLIF ( + - 16, COALESCE ( 23, 43 * - - 18 ) )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5230
SELECT + 21 * 76 AS col2, + NULLIF ( - COUNT( * ), - + 88 ) + 19
----
1596
18

skipif mysql # not compatible
query II rowsort label-5230
SELECT + 21 * 76 AS col2, + NULLIF ( - COUNT ( * ), - + 88 ) + 19
----
1596
18

query I rowsort
SELECT ALL 27 * - 57 AS col2
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT CASE - COUNT( * ) WHEN ( 18 ) THEN - + ( + 87 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT CASE - COUNT ( * ) WHEN ( 18 ) THEN - + ( + 87 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5233
SELECT ALL + 45 * COALESCE ( + + COUNT( * ), + - COUNT( DISTINCT + 23 ) ) * 33 + CAST( NULL AS SIGNED ) - 25 * + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL + 45 * COALESCE ( + + COUNT ( * ), + - COUNT ( DISTINCT + 23 ) ) * 33 + CAST ( NULL AS INTEGER ) - 25 * + - 3
----
NULL

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

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

query I rowsort
SELECT + 3 + - 48
----
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5236
SELECT CASE + SUM( ALL - 76 ) WHEN COUNT( * ) + - - 40 + - COUNT( * ) THEN NULL WHEN - 64 + + COUNT( * ) THEN - ( + + CAST( - + COUNT( * ) AS DECIMAL ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT CASE + SUM ( ALL - 76 ) WHEN COUNT ( * ) + - - 40 + - COUNT ( * ) THEN NULL WHEN - 64 + + COUNT ( * ) THEN - ( + + CAST ( - + COUNT ( * ) AS REAL ) ) END col0
----
NULL

query I rowsort
SELECT COALESCE ( - ( ( - 6 ) ), 40 + - 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL - MAX( + 58 ) * - - COUNT( * ) - + 50 + - + 26 * + - 20 * - - 88 * - 26
----
-1189868

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL - MAX ( + 58 ) * - - COUNT ( * ) - + 50 + - + 26 * + - 20 * - - 88 * - 26
----
-1189868

onlyif mysql # DIV for integer division: 
query II rowsort label-5239
SELECT ALL - 8 DIV 77 AS col2, - 42
----
0
-42

skipif mysql # not compatible
query II rowsort label-5239
SELECT ALL - 8 / 77 AS col2, - 42
----
0
-42

query I rowsort
SELECT + 32 * + - 45 + 45
----
-1395

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT ALL 13 DIV - 58 * + 10 col2
----
0

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL 13 / - 58 * + 10 col2
----
0

query I rowsort
SELECT + 19 * - - 44 col0
----
836

query I rowsort
SELECT + 95 * + 88
----
8360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5244
SELECT - ( + + 9 ) + - - 93 + + 25 DIV - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-5244
SELECT - ( + + 9 ) + - - 93 + + 25 / - COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT - + MIN( DISTINCT 70 ) + + 14
----
-56

skipif mysql # not compatible
query I rowsort label-5245
SELECT - + MIN ( DISTINCT 70 ) + + 14
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT SUM( DISTINCT 15 )
----
15

skipif mysql # not compatible
query I rowsort label-5246
SELECT SUM ( DISTINCT 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL - - COUNT( ALL - - 93 ) * + 94 + - 20
----
74

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - - COUNT ( ALL - - 93 ) * + 94 + - 20
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5248
SELECT - + 92 * - 78 - + COUNT( * ) col0, 94 AS col1
----
7175
94

skipif mysql # not compatible
query II rowsort label-5248
SELECT - + 92 * - 78 - + COUNT ( * ) col0, 94 AS col1
----
7175
94

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

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

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

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT - + COUNT ( * ) + - 73 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-5251
SELECT ALL + + 63 + 98, - NULLIF ( + 58, - + COUNT( * ) ) AS col0
----
161
-58

skipif mysql # not compatible
query II rowsort label-5251
SELECT ALL + + 63 + 98, - NULLIF ( + 58, - + COUNT ( * ) ) AS col0
----
161
-58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5253
SELECT DISTINCT - + 33 + + + ( NULLIF ( + 4, COALESCE ( 50, - COUNT( * ) * + 91 * + + 4, - SUM( DISTINCT 59 ), - 79 ) ) ), + 53 * + 95 * - 9 AS col1
----
-29
-45315

skipif mysql # not compatible
query II rowsort label-5253
SELECT DISTINCT - + 33 + + + ( NULLIF ( + 4, COALESCE ( 50, - COUNT ( * ) * + 91 * + + 4, - SUM ( DISTINCT 59 ), - 79 ) ) ), + 53 * + 95 * - 9 AS col1
----
-29
-45315

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT - 68 * + COUNT( DISTINCT + 31 )
----
-68

skipif mysql # not compatible
query I rowsort label-5254
SELECT - 68 * + COUNT ( DISTINCT + 31 )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5255
SELECT ALL - 71 + - - 41 * + 57 + 3 - - 27 + - + 92 * - 68, + CAST( 0 AS SIGNED ) AS col2
----
8552
0

skipif mysql # not compatible
query II rowsort label-5255
SELECT ALL - 71 + - - 41 * + 57 + 3 - - 27 + - + 92 * - 68, + CAST ( 0 AS INTEGER ) AS col2
----
8552
0

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

skipif mysql # not compatible
query I rowsort label-5256
SELECT - + 66 - + 34 + + + CAST ( NULL AS INTEGER ) * - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT DISTINCT - NULLIF ( + ( COUNT( * ) ), - + 90 - + COALESCE ( - COUNT( * ), + 14 + - 18 + 88 * - 48, - 32 * + + AVG ( ALL 75 ) * + - 72 ) + - 42 * + 46 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT - NULLIF ( + ( COUNT ( * ) ), - + 90 - + COALESCE ( - COUNT ( * ), + 14 + - 18 + 88 * - 48, - 32 * + + AVG ( ALL 75 ) * + - 72 ) + - 42 * + 46 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT + NULLIF ( - - 25, - + CASE + - 76 WHEN + 67 THEN + - 50 + + + CASE + 63 WHEN + - NULLIF ( + 2, - MIN( - - 51 ) * + ( - 41 ) + + - COUNT( * ) * - 45 ) * + ( + 47 ) + 85 - 7 * 35 THEN NULL WHEN 93 THEN NULL ELSE 27 END ELSE NULL END )
----
25

skipif mysql # not compatible
query I rowsort label-5258
SELECT + NULLIF ( - - 25, - + CASE + - 76 WHEN + 67 THEN + - 50 + + + CASE + 63 WHEN + - NULLIF ( + 2, - MIN ( - - 51 ) * + ( - 41 ) + + - COUNT ( * ) * - 45 ) * + ( + 47 ) + 85 - 7 * 35 THEN NULL WHEN 93 THEN NULL ELSE 27 END ELSE NULL END )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL 87 + - + 8 - - 55 + - - COUNT( * ) + - + 88 * + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL 87 + - + 8 - - 55 + - - COUNT ( * ) + - + 88 * + + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT 4 * SUM( 81 ) AS col2
----
324

skipif mysql # not compatible
query I rowsort label-5260
SELECT 4 * SUM ( 81 ) AS col2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT 57 * 4 + - - ( - + COUNT( * ) ) * - COUNT( * ) AS col1
----
229

skipif mysql # not compatible
query I rowsort label-5261
SELECT 57 * 4 + - - ( - + COUNT ( * ) ) * - COUNT ( * ) AS col1
----
229

query I rowsort
SELECT 42 * - - 72 AS col2
----
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5263
SELECT ALL + ( - MIN( - + 95 ) ) - + 35 + 24 + + CAST( - CASE + - 23 WHEN 62 / + - 6 + - - 41 + - 68 * - + 77 * 66 / - 17 THEN NULL ELSE 34 - + 11 + + + 8 + 3 END AS SIGNED ) - 32 * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL + ( - MIN ( - + 95 ) ) - + 35 + 24 + + CAST ( - CASE + - 23 WHEN 62 / + - 6 + - - 41 + - 68 * - + 77 * 66 / - 17 THEN NULL ELSE 34 - + 11 + + + 8 + 3 END AS INTEGER ) - 32 * COUNT ( * )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5264
SELECT 21 DIV + + 1 + - 46 * + - 56
----
2597

skipif mysql # not compatible
query I rowsort label-5264
SELECT 21 / + + 1 + - 46 * + - 56
----
2597

query I rowsort
SELECT 68 * + 69 AS col1
----
4692

onlyif mysql # aggregate syntax: 
query II rowsort label-5266
SELECT ALL - 3 AS col2, 38 + + COUNT( * )
----
-3
39

skipif mysql # not compatible
query II rowsort label-5266
SELECT ALL - 3 AS col2, 38 + + COUNT ( * )
----
-3
39

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

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

query I rowsort
SELECT ALL - ( - - 37 ) AS col2
----
-37

query I rowsort
SELECT ALL 26 * - 56 AS col0
----
-1456

query I rowsort
SELECT 58 * - 50
----
-2900

query II rowsort
SELECT + 28 * + 60 + + 34, - 41 AS col1
----
1714
-41

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

query I rowsort
SELECT 48 * + - 66
----
-3168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5274
SELECT - 3 AS col1, CASE + 16 WHEN - CAST( NULL AS SIGNED ) THEN + ( + 45 ) / - COUNT( DISTINCT - 44 ) - MIN( 60 ) * - 42 * - 63 WHEN + 22 THEN NULL END AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5274
SELECT - 3 AS col1, CASE + 16 WHEN - CAST ( NULL AS INTEGER ) THEN + ( + 45 ) / - COUNT ( DISTINCT - 44 ) - MIN ( 60 ) * - 42 * - 63 WHEN + 22 THEN NULL END AS col1
----
-3
NULL

query I rowsort
SELECT - 89 * - 37 AS col1
----
3293

query I rowsort
SELECT - 2 * + 19 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT CASE + COUNT( * ) WHEN - 25 THEN + + MAX( + ( - - ( - 81 ) ) ) ELSE NULL END - 79 + 11 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5277
SELECT CASE + COUNT ( * ) WHEN - 25 THEN + + MAX ( + ( - - ( - 81 ) ) ) ELSE NULL END - 79 + 11 col1
----
NULL

query I rowsort
SELECT + 69 * - + 77 AS col0
----
-5313

query I rowsort
SELECT + 39 * - - 2 + - 23 + + 73 + 27
----
155

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

query I rowsort
SELECT - NULLIF ( - 96, - 46 + - - 51 * - - 20 ) + + ( 84 ) + - 91 AS col0
----
89

query II rowsort
SELECT ALL 0 AS col2, + 5
----
0
5

query I rowsort
SELECT - 18 + + 65
----
47

query I rowsort
SELECT ALL 88 + - 50 AS col1
----
38

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

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

query I rowsort
SELECT 71 + - - 48
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT NULLIF ( - 36, - CAST( + 2 AS SIGNED ) ) + 99 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5287
SELECT NULLIF ( - 36, - CAST ( + 2 AS INTEGER ) ) + 99 AS col2
----
63

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT ALL + 52 - CASE + 35 WHEN - 78 THEN NULL ELSE + COUNT( * ) END + - 12 + + - 66 AS col0, COUNT( * ) AS col0
----
-27
1

skipif mysql # not compatible
query II rowsort label-5289
SELECT ALL + 52 - CASE + 35 WHEN - 78 THEN NULL ELSE + COUNT ( * ) END + - 12 + + - 66 AS col0, COUNT ( * ) AS col0
----
-27
1

query I rowsort
SELECT ( - - 91 ) * + + 71 col0
----
6461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT 49 * + MIN( ALL - + CAST( 47 AS SIGNED ) )
----
-2303

skipif mysql # not compatible
query I rowsort label-5291
SELECT 49 * + MIN ( ALL - + CAST ( 47 AS INTEGER ) )
----
-2303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5292
SELECT COUNT( * ) DIV - 73 + - 91 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-5292
SELECT COUNT ( * ) / - 73 + - 91 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT - CASE 54 WHEN 9 * - - 84 THEN SUM( + - NULLIF ( 31, + + 79 ) ) WHEN - 72 - 64 + + - 47 / + 59 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT - CASE 54 WHEN 9 * - - 84 THEN SUM ( + - NULLIF ( 31, + + 79 ) ) WHEN - 72 - 64 + + - 47 / + 59 THEN NULL ELSE NULL END
----
NULL

query II rowsort
SELECT 39 * + 70 AS col1, + 23 AS col1
----
2730
23

query I rowsort
SELECT DISTINCT + 8 * + 69
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT ALL + COUNT( * ) * + - 28 * - - 60 col1
----
-1680

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + COUNT ( * ) * + - 28 * - - 60 col1
----
-1680

query I rowsort
SELECT 38 * ( - - 89 ) AS col2
----
3382

query I rowsort
SELECT + 24 * 0 + 2 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5299
SELECT 57 - - ( + CASE - 30 WHEN + + 70 * + COALESCE ( + + ( 91 ), - 48 + + + 74 ) THEN NULL WHEN - COUNT( * ) * - CAST( + 26 AS SIGNED ) THEN NULL WHEN + 76 THEN ( 76 ) ELSE NULL END ) * - - MIN( COALESCE ( + 99, - 99 * 51 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT 57 - - ( + CASE - 30 WHEN + + 70 * + COALESCE ( + + ( 91 ), - 48 + + + 74 ) THEN NULL WHEN - COUNT ( * ) * - CAST ( + 26 AS INTEGER ) THEN NULL WHEN + 76 THEN ( 76 ) ELSE NULL END ) * - - MIN ( COALESCE ( + 99, - 99 * 51 ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT - 98 + + - 39 AS col1, 29 + ( 82 ) * + 96 AS col0
----
-137
7901

query I rowsort
SELECT ALL - 40 + 50 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL + + MIN( + 63 ) + - 79 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL + + MIN ( + 63 ) + - 79 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT COUNT( * ) - - 10
----
11

skipif mysql # not compatible
query I rowsort label-5303
SELECT COUNT ( * ) - - 10
----
11

query I rowsort
SELECT ALL 92 + + 67 AS col1
----
159

query I rowsort
SELECT 56 * + + 7 AS col2
----
392

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

skipif mysql # not compatible
query I rowsort label-5306
SELECT - + SUM ( + 87 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5307
SELECT + COUNT( * ) + 14 + + 56 DIV + CAST( - 80 AS SIGNED ) - - COUNT( - + 93 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5307
SELECT + COUNT ( * ) + 14 + + 56 / + CAST ( - 80 AS INTEGER ) - - COUNT ( - + 93 ) AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5308
SELECT ALL 20 * - + COUNT( * ) + - 98 * - + CASE + ( MIN( - 49 ) ) WHEN - 84 THEN + + 13 + + 69 + - 59 + COUNT( 3 ) DIV COALESCE ( - 33, + 3 * + - 65 + + + 8 ) DIV - + 4 WHEN - 16 THEN + 68 + 42 ELSE 37 END * + 71 + SUM( - 29 ) AS col2
----
257397

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL 20 * - + COUNT ( * ) + - 98 * - + CASE + ( MIN ( - 49 ) ) WHEN - 84 THEN + + 13 + + 69 + - 59 + COUNT ( 3 ) / COALESCE ( - 33, + 3 * + - 65 + + + 8 ) / - + 4 WHEN - 16 THEN + 68 + 42 ELSE 37 END * + 71 + SUM ( - 29 ) AS col2
----
257397

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT + 89 DIV ( + 22 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5309
SELECT + 89 / ( + 22 ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5310
SELECT + + 83 DIV - CAST( + COUNT( * ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-5310
SELECT + + 83 / - CAST ( + COUNT ( * ) AS INTEGER )
----
-83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT + 10 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-5312
SELECT + 10 / - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT - 16 * 69 * - CASE + ( 57 ) WHEN - COUNT( * ) THEN + ( 55 ) * + + 98 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT - 16 * 69 * - CASE + ( 57 ) WHEN - COUNT ( * ) THEN + ( 55 ) * + + 98 END AS col2
----
NULL

query I rowsort
SELECT + 86 - - 54
----
140

query II rowsort
SELECT ALL 12 col0, - 39
----
12
-39

query II rowsort
SELECT - 14 AS col1, 93 AS col1
----
-14
93

query I rowsort
SELECT ALL + 21 * - 54 AS col2
----
-1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5318
SELECT DISTINCT + COALESCE ( + + 57, + 41 * - - 7 + CAST( NULL AS SIGNED ) ) AS col2, - ( - COUNT( * ) ) * + - COUNT( * )
----
57
-1

skipif mysql # not compatible
query II rowsort label-5318
SELECT DISTINCT + COALESCE ( + + 57, + 41 * - - 7 + CAST ( NULL AS INTEGER ) ) AS col2, - ( - COUNT ( * ) ) * + - COUNT ( * )
----
57
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT NULLIF ( + - 81, - 79 / + + 34 * + SUM( ALL - 91 ) + 88 + - + 92 )
----
-81

skipif mysql # not compatible
query I rowsort label-5319
SELECT NULLIF ( + - 81, - 79 / + + 34 * + SUM ( ALL - 91 ) + 88 + - + 92 )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5320
SELECT COALESCE ( + 60, 13 + + COUNT( * ), + 95 - - 25 * - CAST( NULL AS SIGNED ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-5320
SELECT COALESCE ( + 60, 13 + + COUNT ( * ), + 95 - - 25 * - CAST ( NULL AS INTEGER ) ) AS col0
----
60

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT ALL - 87 DIV - - 80 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - 87 / - - 80 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5325
SELECT DISTINCT COUNT( * ) * + CAST( 6 AS SIGNED ) * - COUNT( * ) * 11 + - ( - 80 ) + - 83 + 39 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT COUNT ( * ) * + CAST ( 6 AS INTEGER ) * - COUNT ( * ) * 11 + - ( - 80 ) + - 83 + 39 AS col0
----
-30

query II rowsort
SELECT DISTINCT 39 * 37 + - 0 col0, 54
----
1443
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT - - MIN( - 34 ) - - COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5328
SELECT - - MIN ( - 34 ) - - COUNT ( * ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT - COUNT( ALL - 76 ) * + 81 * + + 25 AS col1
----
-2025

skipif mysql # not compatible
query I rowsort label-5329
SELECT - COUNT ( ALL - 76 ) * + 81 * + + 25 AS col1
----
-2025

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5332
SELECT - - 63 AS col0, + 86 DIV 89 * + 11 AS col1
----
63
0

skipif mysql # not compatible
query II rowsort label-5332
SELECT - - 63 AS col0, + 86 / 89 * + 11 AS col1
----
63
0

query I rowsort
SELECT ALL - 92 - - 53 + - 64 * 54 AS col0
----
-3495

query II rowsort
SELECT ALL 85 AS col2, + 76 + + - 89 + 72 + + - 88 AS col2
----
85
-29

query I rowsort
SELECT - 10 - + 73 AS col0
----
-83

query I rowsort
SELECT + - 54 * + 49
----
-2646

query I rowsort
SELECT ALL - 43 * - + 71
----
3053

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT + NULLIF ( - + NULLIF ( 98, + - 92 ), + ( - COUNT( * ) ) ) - + 84 AS col2
----
-182

skipif mysql # not compatible
query I rowsort label-5338
SELECT + NULLIF ( - + NULLIF ( 98, + - 92 ), + ( - COUNT ( * ) ) ) - + 84 AS col2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL + - COUNT( DISTINCT - 42 ) - 40
----
-41

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + - COUNT ( DISTINCT - 42 ) - 40
----
-41

query I rowsort
SELECT ( 69 ) AS col1
----
69

query II rowsort
SELECT - - 32, + 94 AS col2
----
32
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT - 76 + 8 * - COUNT( * ) + - 91 AS col1
----
-175

skipif mysql # not compatible
query I rowsort label-5342
SELECT - 76 + 8 * - COUNT ( * ) + - 91 AS col1
----
-175

query II rowsort
SELECT - 80 * - + 43 - + + 59 AS col2, + ( - + 92 ) AS col2
----
3381
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT + + 71 DIV + + 76 col0
----
0

skipif mysql # not compatible
query I rowsort label-5344
SELECT + + 71 / + + 76 col0
----
0

query I rowsort
SELECT + 63 + 99
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5346
SELECT ALL CAST( + 46 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL CAST ( + 46 AS INTEGER ) AS col1
----
46

query I rowsort
SELECT DISTINCT - 35 * 18
----
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT DISTINCT CAST( + 29 AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT CAST ( + 29 AS INTEGER ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT - NULLIF ( + 59, - COUNT( * ) * + NULLIF ( 10, + ( + COUNT( * ) ) ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-5349
SELECT - NULLIF ( + 59, - COUNT ( * ) * + NULLIF ( 10, + ( + COUNT ( * ) ) ) ) AS col0
----
-59

query I rowsort
SELECT + 9 + - ( + 86 ) + - + 22 AS col1
----
-99

query I rowsort
SELECT - NULLIF ( + 28, - + 74 )
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5352
SELECT + 26 DIV SUM( 70 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT + 26 / SUM ( 70 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5353
SELECT ALL 66 DIV 10 * - 53 + 21
----
-297

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL 66 / 10 * - 53 + 21
----
-297

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5355
SELECT ALL 66 DIV - + 98 + + + 56
----
56

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL 66 / - + 98 + + + 56
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5356
SELECT ALL 3 DIV + ( 87 ) + - - 56 * + 54
----
3024

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL 3 / + ( 87 ) + - - 56 * + 54
----
3024

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT ALL 84 DIV - - 34 + - 74
----
-72

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL 84 / - - 34 + - 74
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-5358
SELECT + COUNT( * ) / + CASE 94 WHEN + COUNT( * ) THEN - 89 * - 76 ELSE NULL END + + 36 AS col1, + 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-5358
SELECT + COUNT ( * ) / + CASE 94 WHEN + COUNT ( * ) THEN - 89 * - 76 ELSE NULL END + + 36 AS col1, + 23
----
NULL
23

query II rowsort
SELECT ALL + 18 AS col0, + 90
----
18
90

query I rowsort
SELECT 8 * 96 + - + 10
----
758

query I rowsort
SELECT ALL - + ( - - 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - COUNT( * ) * - 5 + + 30 + + 96 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-5362
SELECT - COUNT ( * ) * - 5 + + 30 + + 96 AS col0
----
131

query II rowsort
SELECT DISTINCT - 59, 46 * 84 AS col2
----
-59
3864

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

query I rowsort
SELECT DISTINCT - 5 * + + 96
----
-480

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

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

query I rowsort
SELECT 66 * - 22 - - + 32 + 1 + + - 2 + + 74 * - 28 AS col0
----
-3493

query I rowsort
SELECT - - 57 col1
----
57

query II rowsort
SELECT - 86 AS col1, 42 * - 22 AS col1
----
-86
-924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5370
SELECT - 65 DIV CASE + 49 WHEN - MAX( - - 16 ) THEN NULL ELSE - 36 END
----
1

skipif mysql # not compatible
query I rowsort label-5370
SELECT - 65 / CASE + 49 WHEN - MAX ( - - 16 ) THEN NULL ELSE - 36 END
----
1

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5373
SELECT DISTINCT + + 7 DIV - + 79 + 51 - + 78 - - 66 * + + 19 * + COALESCE ( 69, + COUNT( * ) ) AS col0
----
86499

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT + + 7 / - + 79 + 51 - + 78 - - 66 * + + 19 * + COALESCE ( 69, + COUNT ( * ) ) AS col0
----
86499

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5374
SELECT DISTINCT - ( 82 ) * - COALESCE ( - - 24, - CAST( NULL AS SIGNED ), + + 64 * - + 15 + 71 + - 0 DIV 18 ) + - 95
----
1873

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT - ( 82 ) * - COALESCE ( - - 24, - CAST ( NULL AS INTEGER ), + + 64 * - + 15 + 71 + - 0 / 18 ) + - 95
----
1873

query I rowsort
SELECT ALL - 30 + - 3 + - 91 AS col1
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT ALL 3 + - ( + 89 ) + 65 * + - CASE + MIN( + CAST( + 90 AS SIGNED ) ) WHEN - + 57 THEN NULL WHEN - + 81 THEN NULL ELSE + CAST( NULL AS SIGNED ) * + 73 + - 64 END + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL 3 + - ( + 89 ) + 65 * + - CASE + MIN ( + CAST ( + 90 AS INTEGER ) ) WHEN - + 57 THEN NULL WHEN - + 81 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * + 73 + - 64 END + 99 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT 42 * + MAX( DISTINCT + 73 ) * MIN( + - 27 )
----
-82782

skipif mysql # not compatible
query I rowsort label-5377
SELECT 42 * + MAX ( DISTINCT + 73 ) * MIN ( + - 27 )
----
-82782

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT DISTINCT - 86 * + 74 * + + 96 * - COUNT( * ) AS col2
----
610944

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT - 86 * + 74 * + + 96 * - COUNT ( * ) AS col2
----
610944

query I rowsort
SELECT ALL 67 + + 78 AS col1
----
145

query I rowsort
SELECT 67 - - 52
----
119

query I rowsort
SELECT DISTINCT - 86 * + CASE + 46 WHEN 11 * 84 THEN - + 54 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL - 68 + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL - 68 + COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT COUNT( ALL - + 11 ) + + 73
----
74

skipif mysql # not compatible
query I rowsort label-5383
SELECT COUNT ( ALL - + 11 ) + + 73
----
74

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

skipif mysql # not compatible
query I rowsort label-5384
SELECT - COUNT ( * ) / 98 - ( - COUNT ( * ) )
----
1

query I rowsort
SELECT COALESCE ( - + 12, - 46 + + 55 * + + 21 + 19 ) col2
----
-12

query I rowsort
SELECT + 19 * 27
----
513

query I rowsort
SELECT + 89 * + 71 + + 84 + + - 56 * 14 AS col2
----
5619

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

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - COUNT ( * ) / + + 45 + + 2 AS col2
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5390
SELECT + 46 + + CAST( + 51 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-5390
SELECT + 46 + + CAST ( + 51 AS INTEGER )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT - COUNT( - 75 ) * + - NULLIF ( - 20, + + COUNT( ALL - 64 ) ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5391
SELECT - COUNT ( - 75 ) * + - NULLIF ( - 20, + + COUNT ( ALL - 64 ) ) AS col2
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT DISTINCT - 65 - - 73 DIV 56 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT - 65 - - 73 / 56 AS col0
----
-64

query I rowsort
SELECT + 35 * 49
----
1715

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT + 44 - + ( + - ( + COUNT( - + 92 ) ) ) - - 93 + 18 * - 89 AS col0
----
-1464

skipif mysql # not compatible
query I rowsort label-5395
SELECT + 44 - + ( + - ( + COUNT ( - + 92 ) ) ) - - 93 + 18 * - 89 AS col0
----
-1464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5396
SELECT ALL - + CASE + COALESCE ( + 76, + 3, + 46 * + 55 * 87 ) WHEN - - 35 * + 52 THEN NULL ELSE + + 22 + + - 29 + + - SUM( ALL + 17 ) * 83 DIV + COUNT( * ) + + - 84 + + + 58 * - + 17 END
----
2488

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - + CASE + COALESCE ( + 76, + 3, + 46 * + 55 * 87 ) WHEN - - 35 * + 52 THEN NULL ELSE + + 22 + + - 29 + + - SUM ( ALL + 17 ) * 83 / + COUNT ( * ) + + - 84 + + + 58 * - + 17 END
----
2488

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT - NULLIF ( - 78, 50 * + + 23 * - SUM( + + 63 ) + - COUNT( * ) * 77 / - + COUNT( * ) ) col1
----
78

skipif mysql # not compatible
query I rowsort label-5397
SELECT - NULLIF ( - 78, 50 * + + 23 * - SUM ( + + 63 ) + - COUNT ( * ) * 77 / - + COUNT ( * ) ) col1
----
78

query I rowsort
SELECT - 72 + 18
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT ALL - - 4 DIV + + 3
----
1

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - - 4 / + + 3
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5400
SELECT DISTINCT - COALESCE ( 36, AVG ( - - 98 ) * COUNT( * ) DIV - 94 * + 89 + + 4 - + + 47 + + 44 * + - 8 * + - 70 - - 24 DIV + 92 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT - COALESCE ( 36, AVG ( - - 98 ) * COUNT ( * ) / - 94 * + 89 + + 4 - + + 47 + + 44 * + - 8 * + - 70 - - 24 / + 92 ) col1
----
-36

query I rowsort
SELECT ALL + 62 + - 84
----
-22

query I rowsort
SELECT 58 - + 41
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5403
SELECT ALL COALESCE ( 89, - 38 ) DIV - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL COALESCE ( 89, - 38 ) / - COUNT ( * )
----
-89

query I rowsort
SELECT 67 + - 26 AS col1
----
41

query I rowsort
SELECT ALL + 72 * + 72 * + 16 * 31 AS col1
----
2571264

onlyif mysql # aggregate syntax: 
query II rowsort label-5406
SELECT 91 AS col1, 17 * - - COUNT( * ) * + 72
----
91
1224

skipif mysql # not compatible
query II rowsort label-5406
SELECT 91 AS col1, 17 * - - COUNT ( * ) * + 72
----
91
1224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5407
SELECT 35, - CAST( - - 75 AS SIGNED ) * - 65 AS col2
----
35
4875

skipif mysql # not compatible
query II rowsort label-5407
SELECT 35, - CAST ( - - 75 AS INTEGER ) * - 65 AS col2
----
35
4875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5408
SELECT 57 + + + CAST( + 5 AS SIGNED ) * + - 80 * + + MAX( - 37 )
----
14857

skipif mysql # not compatible
query I rowsort label-5408
SELECT 57 + + + CAST ( + 5 AS INTEGER ) * + - 80 * + + MAX ( - 37 )
----
14857

query I rowsort
SELECT 93 - 30 AS col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5410
SELECT 43 AS col2, COUNT( * ) - - + ( - + NULLIF ( + ( 7 ), - - 28 * + 77 + 23 ) ) DIV 33 DIV + - 32 + 32 AS col1
----
43
33

skipif mysql # not compatible
query II rowsort label-5410
SELECT 43 AS col2, COUNT ( * ) - - + ( - + NULLIF ( + ( 7 ), - - 28 * + 77 + 23 ) ) / 33 / + - 32 + 32 AS col1
----
43
33

query I rowsort
SELECT DISTINCT 97 + + 83
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT ALL + 27 DIV 1
----
27

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL + 27 / 1
----
27

query I rowsort
SELECT 73 * + - 69
----
-5037

query I rowsort
SELECT ALL - 0 + 87
----
87

query I rowsort
SELECT DISTINCT COALESCE ( + + 11, - 8 * 12 - + 4 + + 9 * 71 - 18 - + 3 * + 92 ) AS col2
----
11

query I rowsort
SELECT ALL + 0 - 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL MAX( 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL MAX ( 41 ) AS col1
----
41

query II rowsort
SELECT - 41 AS col1, + 20
----
-41
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT NULLIF ( + CAST( - - 65 AS SIGNED ), + MAX( ALL + 1 ) ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5419
SELECT NULLIF ( + CAST ( - - 65 AS INTEGER ), + MAX ( ALL + 1 ) ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT COALESCE ( - 68, + + 52 * + - 21 + MAX( DISTINCT + 14 ) ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-5420
SELECT COALESCE ( - 68, + + 52 * + - 21 + MAX ( DISTINCT + 14 ) ) AS col0
----
-68

query I rowsort
SELECT + 87 * + + 86 - - 28 AS col1
----
7510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5422
SELECT - 26 + + CAST( - COUNT( - 71 ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-5422
SELECT - 26 + + CAST ( - COUNT ( - 71 ) AS INTEGER )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT + + ( NULLIF ( - 72, 34 - COUNT( * ) + 98 ) ) * + - 98 + + COUNT( * ) * 49 AS col0
----
7105

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT + + ( NULLIF ( - 72, 34 - COUNT ( * ) + 98 ) ) * + - 98 + + COUNT ( * ) * 49 AS col0
----
7105

query II rowsort
SELECT ALL + - 70 AS col2, - ( - 45 ) AS col2
----
-70
45

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT ALL + 27 * + + 12 * + - 69 - + 38 DIV 13
----
-22358

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + 27 * + + 12 * + - 69 - + 38 / 13
----
-22358

query I rowsort
SELECT + - 16 * + - 24
----
384

onlyif mysql # aggregate syntax: 
query II rowsort label-5428
SELECT ALL + COUNT( * ) AS col0, 58 + 76
----
1
134

skipif mysql # not compatible
query II rowsort label-5428
SELECT ALL + COUNT ( * ) AS col0, 58 + 76
----
1
134

query II rowsort
SELECT 56 AS col1, 5 + 2 * + - 98 + - 9 + + 55 AS col1
----
56
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-5430
SELECT ALL + + 37, + COUNT( * ) + - NULLIF ( - ( - 17 ), 95 + - MIN( - - 74 ) ) col0
----
37
-16

skipif mysql # not compatible
query II rowsort label-5430
SELECT ALL + + 37, + COUNT ( * ) + - NULLIF ( - ( - 17 ), 95 + - MIN ( - - 74 ) ) col0
----
37
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT + - ( + + COUNT( * ) ) + + 68 - + - 85 * - 90 * + 60 col1
----
-458933

skipif mysql # not compatible
query I rowsort label-5431
SELECT + - ( + + COUNT ( * ) ) + + 68 - + - 85 * - 90 * + 60 col1
----
-458933

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT ALL ( - 47 ) DIV - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL ( - 47 ) / - 61 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT SUM( ALL - - 57 ) * + 36 * + 9 + + 23 AS col1
----
18491

skipif mysql # not compatible
query I rowsort label-5433
SELECT SUM ( ALL - - 57 ) * + 36 * + 9 + + 23 AS col1
----
18491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5434
SELECT + + COUNT( * ) - 4 - - 58 DIV 58 + - NULLIF ( 89, - - COUNT( * ) ) + - + ( + 4 ) * - 81 * 2 AS col2
----
557

skipif mysql # not compatible
query I rowsort label-5434
SELECT + + COUNT ( * ) - 4 - - 58 / 58 + - NULLIF ( 89, - - COUNT ( * ) ) + - + ( + 4 ) * - 81 * 2 AS col2
----
557

query I rowsort
SELECT ALL 0 * ( - 35 )
----
0

query I rowsort
SELECT + AVG ( ALL + NULLIF ( - + 17, - 17 ) ) * 35 + - 87 * - - 51 AS col1
----
NULL

query I rowsort
SELECT ALL - 29 + - - 19 AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5438
SELECT COUNT( * ) * + 7 - + CAST( + 54 AS SIGNED ) + SUM( + CAST( NULL AS SIGNED ) ) - + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT COUNT ( * ) * + 7 - + CAST ( + 54 AS INTEGER ) + SUM ( + CAST ( NULL AS INTEGER ) ) - + + 87
----
NULL

query I rowsort
SELECT + 4 * + 31 AS col0
----
124

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

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

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

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

query I rowsort
SELECT ALL 92 + - 37 - - 41 * 84 + 52 AS col1
----
3551

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT - NULLIF ( + - COALESCE ( 89, - - ( + 78 ) * - MIN( - 43 ) * + 56 + - - 0 + 96 ), - 81 )
----
89

skipif mysql # not compatible
query I rowsort label-5443
SELECT - NULLIF ( + - COALESCE ( 89, - - ( + 78 ) * - MIN ( - 43 ) * + 56 + - - 0 + 96 ), - 81 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT + MAX( - NULLIF ( + + 20, - + 81 ) ) * + + 27 col2
----
-540

skipif mysql # not compatible
query I rowsort label-5444
SELECT + MAX ( - NULLIF ( + + 20, - + 81 ) ) * + + 27 col2
----
-540

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

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

query I rowsort
SELECT DISTINCT 91 - 43
----
48

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

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL 84 * 18 / - COALESCE ( COUNT ( * ), + + 24 ) col2
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT + ( + CASE 17 WHEN - 13 / - 82 THEN + COUNT( * ) + + 22 END ) * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT + ( + CASE 17 WHEN - 13 / - 82 THEN + COUNT ( * ) + + 22 END ) * + 46
----
NULL

query I rowsort
SELECT - 13 * - 61 AS col0
----
793

query I rowsort
SELECT - 48 * 49 * + COALESCE ( + 50, 35 + - 59 ) AS col0
----
-117600

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT - 66 DIV 9 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5451
SELECT - 66 / 9 AS col2
----
-7

query I rowsort
SELECT - 77 * + 4 AS col2
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT DISTINCT 83 * - CASE - - 94 WHEN + + 44 * - 13 + + 64 THEN NULL WHEN - + COUNT( * ) THEN 28 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT 83 * - CASE - - 94 WHEN + + 44 * - 13 + + 64 THEN NULL WHEN - + COUNT ( * ) THEN 28 ELSE NULL END col0
----
NULL

query I rowsort
SELECT ALL 85 * 87 AS col0
----
7395

query I rowsort
SELECT DISTINCT + ( - 55 ) col1
----
-55

query I rowsort
SELECT DISTINCT + - 3 col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT - COUNT( * ) * - 54 * 43 - MIN( DISTINCT - 87 )
----
2409

skipif mysql # not compatible
query I rowsort label-5457
SELECT - COUNT ( * ) * - 54 * 43 - MIN ( DISTINCT - 87 )
----
2409

onlyif mysql # DIV for integer division: 
query I rowsort label-5458
SELECT ALL - 65 DIV ( 30 ) + - + ( 86 ) + + - 69
----
-157

skipif mysql # not compatible
query I rowsort label-5458
SELECT ALL - 65 / ( 30 ) + - + ( 86 ) + + - 69
----
-157

query I rowsort
SELECT ALL + + 63 * - 36 - + 0
----
-2268

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

query I rowsort
SELECT - - 93 * - 52 * - - 62 AS col2
----
-299832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5462
SELECT 35 DIV + + 74 * 33 + - 4 + 47 + 38 * + + 10 * - COUNT( * )
----
-337

skipif mysql # not compatible
query I rowsort label-5462
SELECT 35 / + + 74 * 33 + - 4 + 47 + 38 * + + 10 * - COUNT ( * )
----
-337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT DISTINCT - ( - 36 ) * - CAST( + + MIN( - 91 ) AS SIGNED ) * + + 79 * - 68 + + NULLIF ( + + ( 14 ), COUNT( * ) ) - - - MAX( ALL - 66 ) AS col0
----
-17598592

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT - ( - 36 ) * - CAST ( + + MIN ( - 91 ) AS INTEGER ) * + + 79 * - 68 + + NULLIF ( + + ( 14 ), COUNT ( * ) ) - - - MAX ( ALL - 66 ) AS col0
----
-17598592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5464
SELECT - 45 + + - 79 * + SUM( DISTINCT - 90 ) AS col2, 24 + - 18 - ( 54 ) * CAST( NULL AS SIGNED ) + 85 + + - NULLIF ( - 80, + 9 ) * - ( 8 ) AS col2
----
7065
NULL

skipif mysql # not compatible
query II rowsort label-5464
SELECT - 45 + + - 79 * + SUM ( DISTINCT - 90 ) AS col2, 24 + - 18 - ( 54 ) * CAST ( NULL AS INTEGER ) + 85 + + - NULLIF ( - 80, + 9 ) * - ( 8 ) AS col2
----
7065
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5465
SELECT DISTINCT CAST( NULL AS SIGNED ) * SUM( DISTINCT + + 26 ) * 18 / + 83 + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT DISTINCT CAST ( NULL AS INTEGER ) * SUM ( DISTINCT + + 26 ) * 18 / + 83 + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL COUNT( * ) * - - 78 + - - 68 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL COUNT ( * ) * - - 78 + - - 68 AS col1
----
146

query I rowsort
SELECT DISTINCT - 28 * - - 69 - + 39 + - 72 AS col1
----
-2043

onlyif mysql # DIV for integer division: 
query I rowsort label-5468
SELECT + 90 DIV + - 30
----
-3

skipif mysql # not compatible
query I rowsort label-5468
SELECT + 90 / + - 30
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5469
SELECT ALL + COUNT( * ) * - 5 + CAST( - - 73 AS SIGNED ) col1
----
68

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL + COUNT ( * ) * - 5 + CAST ( - - 73 AS INTEGER ) col1
----
68

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

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

query I rowsort
SELECT - 98 + 43 + + + 88
----
33

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

skipif mysql # not compatible
query I rowsort label-5472
SELECT - 56 * COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT - 74 + - 49 + + MAX( + + 98 ) - 5 + + 75 * - ( - COUNT( * ) ) * + 97
----
7245

skipif mysql # not compatible
query I rowsort label-5473
SELECT - 74 + - 49 + + MAX ( + + 98 ) - 5 + + 75 * - ( - COUNT ( * ) ) * + 97
----
7245

onlyif mysql # DIV for integer division: 
query I rowsort label-5474
SELECT + 80 DIV + - ( - - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-5474
SELECT + 80 / + - ( - - 57 )
----
-1

query I rowsort
SELECT DISTINCT 85 * 69 col1
----
5865

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT 3 * - COUNT( ALL - + 18 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT 3 * - COUNT ( ALL - + 18 ) AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT ALL 94 * - + ( + CASE - 13 WHEN - COALESCE ( - - COUNT( * ), + 37 + + 28 ) THEN + 57 / 39 END ) - - CAST( - 40 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL 94 * - + ( + CASE - 13 WHEN - COALESCE ( - - COUNT ( * ), + 37 + + 28 ) THEN + 57 / 39 END ) - - CAST ( - 40 AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT SUM( ALL + 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5478
SELECT SUM ( ALL + 63 ) AS col2
----
63

query I rowsort
SELECT 2 + - ( - 83 ) * - 87
----
-7219

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5480
SELECT CAST( NULL AS DECIMAL ) + - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5480
SELECT CAST ( NULL AS REAL ) + - 73 AS col0
----
NULL

query II rowsort
SELECT CASE - - 91 WHEN + 26 THEN + 97 - 53 END + - + 55 col0, 89 * 25
----
NULL
2225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5482
SELECT CAST( NULL AS DECIMAL ) * + - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT CAST ( NULL AS REAL ) * + - 53 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 88 AS col2, + 56 AS col0
----
88
56

query I rowsort
SELECT 27 - - 31 + - 49 AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5485
SELECT DISTINCT 44, NULLIF ( + 67, + + 10 / + + 71 + 8 * + CASE - + CAST( 87 AS SIGNED ) WHEN - ( + - 61 ) THEN NULL WHEN 38 THEN NULL ELSE - COUNT( * ) + - 99 - - - 49 END / + 51 + 67 ) AS col2
----
44
67

skipif mysql # not compatible
query II rowsort label-5485
SELECT DISTINCT 44, NULLIF ( + 67, + + 10 / + + 71 + 8 * + CASE - + CAST ( 87 AS INTEGER ) WHEN - ( + - 61 ) THEN NULL WHEN 38 THEN NULL ELSE - COUNT ( * ) + - 99 - - - 49 END / + 51 + 67 ) AS col2
----
44
67

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

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

query I rowsort
SELECT 98 + + 6 col2
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-5488
SELECT - 75 DIV + + 64
----
-1

skipif mysql # not compatible
query I rowsort label-5488
SELECT - 75 / + + 64
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT - 77 + + 45 + + + SUM( 26 ) + + 70
----
64

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT - 77 + + 45 + + + SUM ( 26 ) + + 70
----
64

query II rowsort
SELECT 54 AS col0, 66 AS col1
----
54
66

query I rowsort
SELECT ALL 32 + - + 58 col1
----
-26

query I rowsort
SELECT DISTINCT + 86 * - - 54 AS col0
----
4644

query I rowsort
SELECT ALL - 28 + + ( 43 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT SUM( - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-5494
SELECT SUM ( - 57 ) AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5495
SELECT ALL - CAST( NULL AS SIGNED ), + 36 AS col0
----
NULL
36

skipif mysql # not compatible
query II rowsort label-5495
SELECT ALL - CAST ( NULL AS INTEGER ), + 36 AS col0
----
NULL
36

query I rowsort
SELECT + 24 + 92 col0
----
116

query I rowsort
SELECT ALL 94 + - 90 * + 64 AS col0
----
-5666

query I rowsort
SELECT DISTINCT + 37 + + 6 AS col1
----
43

query I rowsort
SELECT DISTINCT 3 * - 16
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5500
SELECT ALL - + CASE - - 44 WHEN - 61 * + + COUNT( ALL - - 55 ) THEN 92 END + - - COUNT( + 24 ) + - CAST( + COUNT( 13 ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL - + CASE - - 44 WHEN - 61 * + + COUNT ( ALL - - 55 ) THEN 92 END + - - COUNT ( + 24 ) + - CAST ( + COUNT ( 13 ) AS REAL )
----
NULL

query I rowsort
SELECT ALL + - 35 + 63 * - 82 col2
----
-5201

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

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL - COUNT ( * ) + + 39 AS col0
----
38

query I rowsort
SELECT 69 + 28
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5504
SELECT CASE 42 WHEN + 38 * + 15 * - - COUNT( * ) - 4 THEN 11 + + 30 * - + 19 * - 76 WHEN + 5 THEN + + ( MIN( ALL 55 ) ) * - CAST( - 22 AS DECIMAL ) + + COUNT( * ) END * - 3 + AVG ( ALL + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT CASE 42 WHEN + 38 * + 15 * - - COUNT ( * ) - 4 THEN 11 + + 30 * - + 19 * - 76 WHEN + 5 THEN + + ( MIN ( ALL 55 ) ) * - CAST ( - 22 AS REAL ) + + COUNT ( * ) END * - 3 + AVG ( ALL + 57 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5505
SELECT + SUM ( - 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT + - NULLIF ( + COUNT( * ), + + COUNT( * ) - - CASE - - 85 WHEN - - ( + 95 ) THEN COUNT( * ) / - + 73 ELSE - 35 + + 43 + 57 + - + COUNT( * ) END * - + CASE 48 WHEN - 42 THEN NULL ELSE - 8 END + - 65 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5506
SELECT + - NULLIF ( + COUNT ( * ), + + COUNT ( * ) - - CASE - - 85 WHEN - - ( + 95 ) THEN COUNT ( * ) / - + 73 ELSE - 35 + + 43 + 57 + - + COUNT ( * ) END * - + CASE 48 WHEN - 42 THEN NULL ELSE - 8 END + - 65 ) AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT + 96 * - MIN( DISTINCT - + 51 ) + - + 79 AS col1
----
4817

skipif mysql # not compatible
query I rowsort label-5508
SELECT + 96 * - MIN ( DISTINCT - + 51 ) + - + 79 AS col1
----
4817

onlyif mysql # aggregate syntax: 
query II rowsort label-5509
SELECT 21, 42 + - - 59 * - + ( + - SUM( ALL + + ( + - 12 ) ) ) col1
----
21
-666

skipif mysql # not compatible
query II rowsort label-5509
SELECT 21, 42 + - - 59 * - + ( + - SUM ( ALL + + ( + - 12 ) ) ) col1
----
21
-666

query I rowsort
SELECT ALL - 68 * 69
----
-4692

query I rowsort
SELECT ALL - ( - CASE + + 30 WHEN 33 - + 21 * + COALESCE ( + 76, + 49 ) THEN - 33 END )
----
NULL

query II rowsort
SELECT 83 + 8 AS col0, + 92 * 75
----
91
6900

query I rowsort
SELECT ALL - 41 * - 14
----
574

query I rowsort
SELECT DISTINCT - COALESCE ( + + 4, + 21 * ( + 2 ) + + - 68, + - 71 + - - 46 )
----
-4

query II rowsort
SELECT 21 AS col0, - 98 AS col0
----
21
-98

query I rowsort
SELECT 76 * + + ( - - 14 ) AS col0
----
1064

query I rowsort
SELECT 12 * - + 19
----
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT 18 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-5518
SELECT 18 / - 53
----
0

query II rowsort
SELECT - 84 AS col2, 68 + + 48 AS col0
----
-84
116

query I rowsort
SELECT ( - 94 ) + + 71
----
-23

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5522
SELECT ALL - 6 DIV - 69 * CAST( - ( + - 34 ) AS SIGNED ) DIV + + SUM( ALL - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL - 6 / - 69 * CAST ( - ( + - 34 ) AS INTEGER ) / + + SUM ( ALL - 59 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5523
SELECT DISTINCT - 97 DIV MIN( DISTINCT - ( + 22 ) ) * - ( - MAX( ALL - - 65 ) ) AS col0
----
260

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - 97 / MIN ( DISTINCT - ( + 22 ) ) * - ( - MAX ( ALL - - 65 ) ) AS col0
----
260

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

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

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

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL MIN ( - 71 )
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5526
SELECT DISTINCT - COUNT( * ) + - 69 + + NULLIF ( - CASE + + COUNT( * ) WHEN 4 THEN NULL WHEN + 85 THEN NULL WHEN + - ( - 28 ) * + 81 THEN - COUNT( DISTINCT - + 9 ) / + + 90 + - + 81 ELSE NULL END, - 31 ) * + CAST( NULL AS SIGNED ) * 48 + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT - COUNT ( * ) + - 69 + + NULLIF ( - CASE + + COUNT ( * ) WHEN 4 THEN NULL WHEN + 85 THEN NULL WHEN + - ( - 28 ) * + 81 THEN - COUNT ( DISTINCT - + 9 ) / + + 90 + - + 81 ELSE NULL END, - 31 ) * + CAST ( NULL AS INTEGER ) * 48 + + 75
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5527
SELECT - ( - 85 ) + + - 55 + 15 DIV + 54 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-5527
SELECT - ( - 85 ) + + - 55 + 15 / + 54 AS col1
----
30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5530
SELECT ( 47 ) - - CAST( + NULLIF ( 96, + CAST( + + 21 AS SIGNED ) ) AS SIGNED ) + 32 + - + 52 * - 7 col2
----
539

skipif mysql # not compatible
query I rowsort label-5530
SELECT ( 47 ) - - CAST ( + NULLIF ( 96, + CAST ( + + 21 AS INTEGER ) ) AS INTEGER ) + 32 + - + 52 * - 7 col2
----
539

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT ALL - 99 + - SUM( ALL - 37 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL - 99 + - SUM ( ALL - 37 ) AS col1
----
-62

query I rowsort
SELECT 92 - + + 30 col1
----
62

query I rowsort
SELECT ALL - 88 * + 26
----
-2288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5534
SELECT - - 23, + CAST( NULL AS SIGNED ) AS col2
----
23
NULL

skipif mysql # not compatible
query II rowsort label-5534
SELECT - - 23, + CAST ( NULL AS INTEGER ) AS col2
----
23
NULL

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

skipif mysql # not compatible
query I rowsort label-5535
SELECT + COUNT ( * ) + + 12 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5536
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) + 67 - + + 5
----
61

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) + 67 - + + 5
----
61

query II rowsort
SELECT DISTINCT + 97 AS col1, 31
----
97
31

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

query II rowsort
SELECT 62, COALESCE ( 95, + - 43 ) * + 42 AS col1
----
62
3990

onlyif mysql # aggregate syntax: 
query II rowsort label-5540
SELECT + 50 AS col2, MAX( DISTINCT - 1 ) + - ( 38 ) AS col1
----
50
-39

skipif mysql # not compatible
query II rowsort label-5540
SELECT + 50 AS col2, MAX ( DISTINCT - 1 ) + - ( 38 ) AS col1
----
50
-39

query I rowsort
SELECT ALL - 98 * - 9 + 3
----
885

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5542
SELECT ( + CASE + 5 WHEN + COUNT( * ) THEN NULL WHEN - + COUNT( DISTINCT 5 ) THEN - CAST( 6 AS DECIMAL ) END ) * + ( + 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT ( + CASE + 5 WHEN + COUNT ( * ) THEN NULL WHEN - + COUNT ( DISTINCT 5 ) THEN - CAST ( 6 AS REAL ) END ) * + ( + 27 ) AS col1
----
NULL

query I rowsort
SELECT + + 38 col2
----
38

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

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

query II rowsort
SELECT + - 71, 84 * + ( - - 29 ) col1
----
-71
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5546
SELECT + 20 / 79 + 54 + + + 60 - - - 52 + + 95 + + 51 * - 78 * + COUNT( * ) * - 82 * 41 * - 31 + + CAST( NULL AS SIGNED ) * - COUNT( * ) col1, 82 + - COALESCE ( - 48, + + ( + 3 ) ) + COUNT( * )
----
NULL
131

skipif mysql # not compatible
query II rowsort label-5546
SELECT + 20 / 79 + 54 + + + 60 - - - 52 + + 95 + + 51 * - 78 * + COUNT ( * ) * - 82 * 41 * - 31 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1, 82 + - COALESCE ( - 48, + + ( + 3 ) ) + COUNT ( * )
----
NULL
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5547
SELECT ALL - COUNT( * ) * - 21 * + ( + CAST( NULL AS SIGNED ) ) + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL - COUNT ( * ) * - 21 * + ( + CAST ( NULL AS INTEGER ) ) + + 45
----
NULL

query I rowsort
SELECT ALL 33 * - + 19 AS col1
----
-627

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT 86 DIV + 39 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5549
SELECT 86 / + 39 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5550
SELECT - 79 * - NULLIF ( + 64, + 75 ) * + + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT - 79 * - NULLIF ( + 64, + 75 ) * + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 91 + - 4 AS col0
----
87

query I rowsort
SELECT - 43 * + 34 AS col0
----
-1462

query I rowsort
SELECT - 49 * 10
----
-490

query I rowsort
SELECT - 61 + 97 + - + ( 99 ) * - CASE 31 WHEN + COALESCE ( + 22, 71 - + 94, - + 30 ) - - 0 THEN 65 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT ALL CASE ( - + 9 ) WHEN + ( - + 21 ) THEN CAST( NULL AS SIGNED ) / + 34 + - 19 WHEN + - 76 THEN + 95 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL CASE ( - + 9 ) WHEN + ( - + 21 ) THEN CAST ( NULL AS INTEGER ) / + 34 + - 19 WHEN + - 76 THEN + 95 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 83 * 77
----
-6391

query I rowsort
SELECT - 13 + 46 + 59 AS col0
----
92

query I rowsort
SELECT ALL - 10 + - 7
----
-17

query I rowsort
SELECT - 31 + + - 29 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT DISTINCT COALESCE ( - 18, 10 * - + COUNT( * ) + - - 96 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT COALESCE ( - 18, 10 * - + COUNT ( * ) + - - 96 ) col0
----
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5561
SELECT - 77 / - ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT - 77 / - ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT - 83 + + + 78 AS col0
----
-5

query I rowsort
SELECT ALL - ( - 67 ) + + ( + ( 95 ) ) AS col0
----
162

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

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

query I rowsort
SELECT CASE + 98 WHEN 5 THEN + 86 * + 95 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT + - 8 + + 76 - + - COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-5566
SELECT + - 8 + + 76 - + - COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT + + COUNT( * ) + + COUNT( - 6 )
----
2

skipif mysql # not compatible
query I rowsort label-5567
SELECT + + COUNT ( * ) + + COUNT ( - 6 )
----
2

query I rowsort
SELECT ALL + - 56 + NULLIF ( - 52, 45 )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT - CASE - 0 WHEN + COALESCE ( 66, + COALESCE ( 88, + + 60, ( - 10 ) + 51 * COUNT( * ) * 6 ) ) THEN - + 53 ELSE NULL END + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT - CASE - 0 WHEN + COALESCE ( 66, + COALESCE ( 88, + + 60, ( - 10 ) + 51 * COUNT ( * ) * 6 ) ) THEN - + 53 ELSE NULL END + + 13
----
NULL

query II rowsort
SELECT - 97 + - 48 col2, - 62 + + - 13
----
-145
-75

query I rowsort
SELECT DISTINCT 41 * + 96
----
3936

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5572
SELECT ALL + CAST( COALESCE ( - 3, - 45 ) AS SIGNED ) + - COALESCE ( 41, + 34 * + 50 ) DIV 69
----
-3

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL + CAST ( COALESCE ( - 3, - 45 ) AS INTEGER ) + - COALESCE ( 41, + 34 * + 50 ) / 69
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT + - 56 * MAX( DISTINCT + 71 )
----
-3976

skipif mysql # not compatible
query I rowsort label-5573
SELECT + - 56 * MAX ( DISTINCT + 71 )
----
-3976

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT + + COUNT( * ) - 95 * + ( - 3 ) AS col0
----
286

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT + + COUNT ( * ) - 95 * + ( - 3 ) AS col0
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL - + 51 * - MAX( + 1 )
----
51

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL - + 51 * - MAX ( + 1 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT + - COUNT( * ) + - CASE + 22 WHEN - + 63 THEN + 81 + 82 + - - 13 + + 26 WHEN - 75 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT + - COUNT ( * ) + - CASE + 22 WHEN - + 63 THEN + 81 + 82 + - - 13 + + 26 WHEN - 75 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT ALL - 1 - + 43 AS col1, 74 * + 45 AS col0
----
-44
3330

onlyif mysql # DIV for integer division: 
query I rowsort label-5578
SELECT - 85 DIV - 33 + + 23 * + - 43 AS col0
----
-987

skipif mysql # not compatible
query I rowsort label-5578
SELECT - 85 / - 33 + + 23 * + - 43 AS col0
----
-987

query I rowsort
SELECT + 9 + 23 AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5580
SELECT DISTINCT COALESCE ( 14, + CASE - + 34 WHEN - 61 THEN + 10 * 21 * - 52 * - COALESCE ( MIN( - - 70 ), 3 - - 99 / + + 20, 24 ) * + 28 + 14 * + 65 * + ( 84 ) * + 75 * COALESCE ( - - 23, + 72 * - 3, + 28 ) + + 19 WHEN + 38 THEN - ( COUNT( * ) ) END + - 59 ) * 23 - CAST( NULL AS SIGNED ) * + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT COALESCE ( 14, + CASE - + 34 WHEN - 61 THEN + 10 * 21 * - 52 * - COALESCE ( MIN ( - - 70 ), 3 - - 99 / + + 20, 24 ) * + 28 + 14 * + 65 * + ( 84 ) * + 75 * COALESCE ( - - 23, + 72 * - 3, + 28 ) + + 19 WHEN + 38 THEN - ( COUNT ( * ) ) END + - 59 ) * 23 - CAST ( NULL AS INTEGER ) * + 6 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5581
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 43, - 98 + - CAST( NULL AS SIGNED ) col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5581
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 43, - 98 + - CAST ( NULL AS INTEGER ) col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5582
SELECT + - 55 * + CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) + + 49 * 96, - 75 AS col0
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-5582
SELECT + - 55 * + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) + + 49 * 96, - 75 AS col0
----
NULL
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT ALL 85 DIV 52
----
1

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL 85 / 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT + SUM( DISTINCT 59 ) * - 28 AS col2
----
-1652

skipif mysql # not compatible
query I rowsort label-5584
SELECT + SUM ( DISTINCT 59 ) * - 28 AS col2
----
-1652

query I rowsort
SELECT 78 * - 25 + 11 * + 9 * + 3 * - - ( + - 14 )
----
-6108

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL SUM( 22 ) * - - 36
----
792

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL SUM ( 22 ) * - - 36
----
792

query I rowsort
SELECT + ( 61 ) * 70 + - 39
----
4231

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT + SUM( DISTINCT + - 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT + SUM ( DISTINCT + - 15 ) AS col2
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT + 14 DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT + 14 / - 23
----
0

query II rowsort
SELECT + 35, 84 + - 51 AS col2
----
35
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT ALL - ( CASE 0 WHEN - 24 + + MAX( 81 ) THEN NULL WHEN - CASE 60 WHEN - ( + 15 ) THEN 9 / + 78 + + 39 ELSE + 1 - 45 END + + - 77 THEN + 84 END ) * + - 80 + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL - ( CASE 0 WHEN - 24 + + MAX ( 81 ) THEN NULL WHEN - CASE 60 WHEN - ( + 15 ) THEN 9 / + 78 + + 39 ELSE + 1 - 45 END + + - 77 THEN + 84 END ) * + - 80 + 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT ALL - 82 * + COUNT( * ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL SUM( DISTINCT 43 )
----
43

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL SUM ( DISTINCT 43 )
----
43

query I rowsort
SELECT - ( ( + NULLIF ( + - NULLIF ( - 78, - 47 ), - 66 ) ) )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5595
SELECT DISTINCT COALESCE ( - CAST( 92 AS SIGNED ), - 86 * 76 * - + 39, + SUM( - ( 21 ) ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT COALESCE ( - CAST ( 92 AS INTEGER ), - 86 * 76 * - + 39, + SUM ( - ( 21 ) ) ) AS col0
----
-92

query I rowsort
SELECT ALL + 83 * - 77 + - 85 AS col2
----
-6476

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT ALL - COUNT( * ), - 38 AS col1
----
-1
-38

skipif mysql # not compatible
query II rowsort label-5597
SELECT ALL - COUNT ( * ), - 38 AS col1
----
-1
-38

query I rowsort
SELECT ALL + 66 + 53
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5599
SELECT DISTINCT - COUNT( - - 1 ) * CASE + + ( - 37 ) WHEN - - COUNT( * ) THEN + COALESCE ( - COALESCE ( ( - COUNT( * ) ), + + 51 ), - - COUNT( * ) + + COUNT( * ) + MAX( DISTINCT - - 25 ) * + 12 + + + CAST( - COALESCE ( 32, + 70 * + 49, + 53 ) AS SIGNED ) + 57 + - 5 * + - COALESCE ( + - 30, - + COALESCE ( + 38, 78 ) / COUNT( 52 ), 63 ) * 49 + - 53 * + 14 / + NULLIF ( 98, 47 * 41 ), + 69 - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * + 87, + COUNT( * ) * 61 ) ELSE NULL END / 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT - COUNT ( - - 1 ) * CASE + + ( - 37 ) WHEN - - COUNT ( * ) THEN + COALESCE ( - COALESCE ( ( - COUNT ( * ) ), + + 51 ), - - COUNT ( * ) + + COUNT ( * ) + MAX ( DISTINCT - - 25 ) * + 12 + + + CAST ( - COALESCE ( 32, + 70 * + 49, + 53 ) AS INTEGER ) + 57 + - 5 * + - COALESCE ( + - 30, - + COALESCE ( + 38, 78 ) / COUNT ( 52 ), 63 ) * 49 + - 53 * + 14 / + NULLIF ( 98, 47 * 41 ), + 69 - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 87, + COUNT ( * ) * 61 ) ELSE NULL END / 85
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5600
SELECT DISTINCT + + 79 * - 64 DIV - 4 AS col2
----
1264

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT + + 79 * - 64 / - 4 AS col2
----
1264

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

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

query I rowsort
SELECT - + 41 + 1 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT - MIN( - 88 ) - 52 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-5603
SELECT - MIN ( - 88 ) - 52 AS col0
----
36

query I rowsort
SELECT - 98 + + 21
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5605
SELECT - + 84 DIV 4 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5605
SELECT - + 84 / 4 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL 60 * - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL 60 * - COUNT ( * )
----
-60

query I rowsort
SELECT ALL 73 * - - 14
----
1022

query I rowsort
SELECT 60 + + 10 * + 27 AS col1
----
330

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5609
SELECT CAST( NULL AS DECIMAL ) / - 71 - ( - 83 ) + - 39 - + 40 * 70 + + - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT CAST ( NULL AS REAL ) / - 71 - ( - 83 ) + - 39 - + 40 * 70 + + - 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT DISTINCT + 27 * - COUNT( * ) * - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT + 27 * - COUNT ( * ) * - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT COUNT( * ) + - COALESCE ( + SUM( - 65 ), 54 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-5611
SELECT COUNT ( * ) + - COALESCE ( + SUM ( - 65 ), 54 ) AS col2
----
66

query II rowsort
SELECT 76 * + 65 col2, + 16 + 39 AS col1
----
4940
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT DISTINCT COUNT( * ) + 55 + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT COUNT ( * ) + 55 + COUNT ( * )
----
57

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

query I rowsort
SELECT 18 - 4
----
14

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

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

query I rowsort
SELECT ( + 31 ) * - 7 AS col1
----
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT ALL COALESCE ( + COUNT( * ), 17 ) + + - 88
----
-87

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL COALESCE ( + COUNT ( * ), 17 ) + + - 88
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT 1 + - 44 * + - MAX( + - 37 ) * - - NULLIF ( + COUNT( * ), + 84 ) AS col1
----
-1627

skipif mysql # not compatible
query I rowsort label-5620
SELECT 1 + - 44 * + - MAX ( + - 37 ) * - - NULLIF ( + COUNT ( * ), + 84 ) AS col1
----
-1627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5621
SELECT - 81 * + - MIN( DISTINCT + - 71 ) * - 41 * - CAST( NULL AS SIGNED ) + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT - 81 * + - MIN ( DISTINCT + - 71 ) * - 41 * - CAST ( NULL AS INTEGER ) + - 93
----
NULL

query I rowsort
SELECT - ( + 74 ) * 86
----
-6364

query I rowsort
SELECT 90 + + - 37 + 46
----
99

query I rowsort
SELECT ALL - 25 * - - ( 49 )
----
-1225

query I rowsort
SELECT ALL + 20 - - + 41 * + 43 AS col2
----
1783

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5626
SELECT 21 + - 42 + - + 20 * - ( + + CAST( + + 50 AS SIGNED ) )
----
979

skipif mysql # not compatible
query I rowsort label-5626
SELECT 21 + - 42 + - + 20 * - ( + + CAST ( + + 50 AS INTEGER ) )
----
979

query I rowsort
SELECT + 93 * - + 78 + - 9 AS col2
----
-7263

query I rowsort
SELECT ALL 72 - 28
----
44

query I rowsort
SELECT - 16 + + - 26 * - 80
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT COUNT( * ) * + - 91 + + 58 * - 30 AS col1
----
-1831

skipif mysql # not compatible
query I rowsort label-5630
SELECT COUNT ( * ) * + - 91 + + 58 * - 30 AS col1
----
-1831

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT - ( + ( CASE - 16 WHEN - 47 + - - 18 THEN - CASE MAX( DISTINCT 68 ) WHEN + 12 THEN NULL WHEN - + 4 + + + 18 + - - ( - 55 ) * - + ( - 6 ) THEN + - SUM( DISTINCT - - 87 ) * + CASE + CASE - ( + 49 ) WHEN + 59 * 81 + MAX( DISTINCT - 59 ) * + 11 THEN 62 END WHEN + 15 THEN - 8 * + MIN( DISTINCT + 96 * + 89 ) WHEN MIN( + 95 ) THEN NULL ELSE + 42 END * + 55 ELSE NULL END END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - ( + ( CASE - 16 WHEN - 47 + - - 18 THEN - CASE MAX ( DISTINCT 68 ) WHEN + 12 THEN NULL WHEN - + 4 + + + 18 + - - ( - 55 ) * - + ( - 6 ) THEN + - SUM ( DISTINCT - - 87 ) * + CASE + CASE - ( + 49 ) WHEN + 59 * 81 + MAX ( DISTINCT - 59 ) * + 11 THEN 62 END WHEN + 15 THEN - 8 * + MIN ( DISTINCT + 96 * + 89 ) WHEN MIN ( + 95 ) THEN NULL ELSE + 42 END * + 55 ELSE NULL END END ) )
----
NULL

query I rowsort
SELECT DISTINCT + 26 - - 54 AS col0
----
80

query I rowsort
SELECT ALL + + 84 * - 26 AS col0
----
-2184

query I rowsort
SELECT + 91 * + - 86
----
-7826

onlyif mysql # aggregate syntax: 
query II rowsort label-5636
SELECT DISTINCT + 60 * - 31, + 34 * - - NULLIF ( SUM( ALL - 87 ), + 53 ) * + ( + - ( + - 11 ) ) * - - 71 AS col2
----
-1860
-2310198

skipif mysql # not compatible
query II rowsort label-5636
SELECT DISTINCT + 60 * - 31, + 34 * - - NULLIF ( SUM ( ALL - 87 ), + 53 ) * + ( + - ( + - 11 ) ) * - - 71 AS col2
----
-1860
-2310198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5637
SELECT ALL + 49 * + 52 DIV + COUNT( * )
----
2548

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL + 49 * + 52 / + COUNT ( * )
----
2548

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5638
SELECT ALL + CAST( - 16 AS SIGNED ) AS col1, + 50
----
-16
50

skipif mysql # not compatible
query II rowsort label-5638
SELECT ALL + CAST ( - 16 AS INTEGER ) AS col1, + 50
----
-16
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5639
SELECT ALL 88 * 76 DIV - - NULLIF ( + 38, + 42 + + + 6 * - MAX( ALL + 68 ) + + - COUNT( * ) + - COUNT( * ) ) AS col1
----
176

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL 88 * 76 / - - NULLIF ( + 38, + 42 + + + 6 * - MAX ( ALL + 68 ) + + - COUNT ( * ) + - COUNT ( * ) ) AS col1
----
176

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT 12 DIV - - ( 6 )
----
2

skipif mysql # not compatible
query I rowsort label-5641
SELECT 12 / - - ( 6 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL - SUM( - - 31 ) + 82 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - SUM ( - - 31 ) + 82 AS col2
----
51

query I rowsort
SELECT ALL + 23 + - 44 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT 9 + - + COALESCE ( + 55, + + COUNT( + + 28 ) * ( - 78 ) ) * + - 5 * + + COUNT( * ) * - 26
----
-7141

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT 9 + - + COALESCE ( + 55, + + COUNT ( + + 28 ) * ( - 78 ) ) * + - 5 * + + COUNT ( * ) * - 26
----
-7141

query I rowsort
SELECT 95 * 34 AS col2
----
3230

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT ALL - 51 DIV - 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL - 51 / - 7 AS col0
----
7

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

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

query I rowsort
SELECT ALL - 78 + + NULLIF ( 82, - - COALESCE ( 18, + - 78 ) )
----
4

query I rowsort
SELECT ALL + 24 + - 85 * + ( + 45 ) AS col0
----
-3801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5650
SELECT ALL 85 + ( CAST( - 85 AS SIGNED ) ) + + 12 AS col0, 88
----
12
88

skipif mysql # not compatible
query II rowsort label-5650
SELECT ALL 85 + ( CAST ( - 85 AS INTEGER ) ) + + 12 AS col0, 88
----
12
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT 21 * + - AVG ( ALL + + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT 21 * + - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5652
SELECT 79 DIV 86 + + + CASE - - SUM( - + 81 ) WHEN 71 + - - SUM( ALL - 27 ) + + COUNT( * ) + 35 * - + 46 * - - 36 THEN NULL WHEN - + 16 THEN + + NULLIF ( 34, + 56 ) * + AVG ( DISTINCT 35 ) + - 60 * - + 19 ELSE - 93 * + 48 END DIV ( - + CASE - - COUNT( * ) WHEN + 26 DIV + 88 THEN NULL ELSE 94 END ) col2
----
47

skipif mysql # not compatible
query I rowsort label-5652
SELECT 79 / 86 + + + CASE - - SUM ( - + 81 ) WHEN 71 + - - SUM ( ALL - 27 ) + + COUNT ( * ) + 35 * - + 46 * - - 36 THEN NULL WHEN - + 16 THEN + + NULLIF ( 34, + 56 ) * + AVG ( DISTINCT 35 ) + - 60 * - + 19 ELSE - 93 * + 48 END / ( - + CASE - - COUNT ( * ) WHEN + 26 / + 88 THEN NULL ELSE 94 END ) col2
----
47

query I rowsort
SELECT 52 * + - ( 34 ) + 35
----
-1733

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT ALL - SUM( - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL - SUM ( - 52 )
----
52

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

query II rowsort
SELECT 38 AS col0, 40
----
38
40

query II rowsort
SELECT DISTINCT - 4 AS col0, - 78 * 31 AS col0
----
-4
-2418

query II rowsort
SELECT + 7, - 50 * - 78 * + 59 AS col2
----
7
230100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5659
SELECT NULLIF ( + COALESCE ( 87, 91 * 39 DIV + 4 + + CAST( NULL AS SIGNED ), - 32 ), + COALESCE ( - CASE + - CASE + + 37 WHEN + + 40 THEN + 52 END WHEN CASE - 64 WHEN + - 29 - 49 THEN + 86 + + 39 ELSE + - 94 END - + CAST( NULL AS SIGNED ) THEN - - 23 WHEN - COUNT( * ) + + 24 + + + 4 THEN - 5 WHEN - CASE - 46 WHEN 20 * + 85 THEN COUNT( * ) * COUNT( * ) END * - 33 THEN NULL ELSE NULL END, - 69 ) * - 71 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-5659
SELECT NULLIF ( + COALESCE ( 87, 91 * 39 / + 4 + + CAST ( NULL AS INTEGER ), - 32 ), + COALESCE ( - CASE + - CASE + + 37 WHEN + + 40 THEN + 52 END WHEN CASE - 64 WHEN + - 29 - 49 THEN + 86 + + 39 ELSE + - 94 END - + CAST ( NULL AS INTEGER ) THEN - - 23 WHEN - COUNT ( * ) + + 24 + + + 4 THEN - 5 WHEN - CASE - 46 WHEN 20 * + 85 THEN COUNT ( * ) * COUNT ( * ) END * - 33 THEN NULL ELSE NULL END, - 69 ) * - 71 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT - COUNT( * ) * + 71 - - - 95 col2
----
-166

skipif mysql # not compatible
query I rowsort label-5660
SELECT - COUNT ( * ) * + 71 - - - 95 col2
----
-166

query I rowsort
SELECT ALL - 88 * 70 * + + 8 * + 28 + - + 94
----
-1379934

query I rowsort
SELECT 12 * - 16 AS col1
----
-192

query I rowsort
SELECT - - COALESCE ( - 10, - - 50 + - 63 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5664
SELECT + CAST( + SUM( 70 ) AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5664
SELECT + CAST ( + SUM ( 70 ) AS INTEGER ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5665
SELECT ( + - 36 ) * + - 65 * ( + + 61 ) AS col1, 17 - 83 + + + 89 - COUNT( * ) + + 50
----
142740
72

skipif mysql # not compatible
query II rowsort label-5665
SELECT ( + - 36 ) * + - 65 * ( + + 61 ) AS col1, 17 - 83 + + + 89 - COUNT ( * ) + + 50
----
142740
72

query I rowsort
SELECT - COALESCE ( + + 74, + 1 ) AS col2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT 92 DIV - + ( 55 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5667
SELECT 92 / - + ( 55 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT 53 * + MIN( + ( + 51 ) ) - - - COUNT( * )
----
2702

skipif mysql # not compatible
query I rowsort label-5668
SELECT 53 * + MIN ( + ( + 51 ) ) - - - COUNT ( * )
----
2702

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5669
SELECT ALL 33 DIV + 43 * - SUM( + + 93 ) + - 59 + + ( - 84 ) + - ( MAX( ALL - - 38 ) ) * + - 5 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL 33 / + 43 * - SUM ( + + 93 ) + - 59 + + ( - 84 ) + - ( MAX ( ALL - - 38 ) ) * + - 5 AS col1
----
47

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

skipif mysql # not compatible
query I rowsort label-5670
SELECT + COUNT ( * ) - 0 * + - 10 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5671
SELECT + + MIN( + + 80 ) DIV + + SUM( 43 )
----
1

skipif mysql # not compatible
query I rowsort label-5671
SELECT + + MIN ( + + 80 ) / + + SUM ( 43 )
----
1

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

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

query I rowsort
SELECT - + NULLIF ( 38, - 25 )
----
-38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT + - 76 * 49 + - NULLIF ( 63, + - NULLIF ( - 45, 82 + 18 + + + 96 ) * - COUNT( * ) ) + + - 37 - - 79 * + ( - + 56 ) * 93 AS col1
----
-415256

skipif mysql # not compatible
query I rowsort label-5675
SELECT + - 76 * 49 + - NULLIF ( 63, + - NULLIF ( - 45, 82 + 18 + + + 96 ) * - COUNT ( * ) ) + + - 37 - - 79 * + ( - + 56 ) * 93 AS col1
----
-415256

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT DISTINCT - 70 + 71 * 84 AS col1, CASE NULLIF ( 28, COUNT( 87 ) + + + 46 ) WHEN - 91 THEN + - 4 + 71 + + + 33 ELSE NULL END + + - COUNT( * ) AS col1
----
5894
NULL

skipif mysql # not compatible
query II rowsort label-5676
SELECT DISTINCT - 70 + 71 * 84 AS col1, CASE NULLIF ( 28, COUNT ( 87 ) + + + 46 ) WHEN - 91 THEN + - 4 + 71 + + + 33 ELSE NULL END + + - COUNT ( * ) AS col1
----
5894
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL + 12 + COALESCE ( + COUNT( * ), - - 63 ) * - 92 * 20 * - + COUNT( * ) AS col1
----
1852

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + 12 + COALESCE ( + COUNT ( * ), - - 63 ) * - 92 * 20 * - + COUNT ( * ) AS col1
----
1852

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ( - + ( - + COUNT( DISTINCT 31 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5678
SELECT ( - + ( - + COUNT ( DISTINCT 31 ) ) ) AS col0
----
1

query II rowsort
SELECT ALL 1 AS col0, + ( 62 ) + - 46
----
1
16

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

skipif mysql # not compatible
query I rowsort label-5680
SELECT + 62 * COUNT ( * ) * - 73 AS col2
----
-4526

query I rowsort
SELECT DISTINCT 68 + + - 13
----
55

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

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

query I rowsort
SELECT ALL 3 + 79 + + 49 AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL + 94 * + COALESCE ( SUM( DISTINCT - + 67 ), + 89 ) + 77 * + 56
----
-1986

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL + 94 * + COALESCE ( SUM ( DISTINCT - + 67 ), + 89 ) + 77 * + 56
----
-1986

onlyif mysql # DIV for integer division: 
query II rowsort label-5685
SELECT + 65, + ( 74 ) DIV + 62 + - - 64 AS col1
----
65
65

skipif mysql # not compatible
query II rowsort label-5685
SELECT + 65, + ( 74 ) / + 62 + - - 64 AS col1
----
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT + CASE + + 24 WHEN - ( SUM( DISTINCT + 50 ) ) * - 41 THEN + + 0 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT + CASE + + 24 WHEN - ( SUM ( DISTINCT + 50 ) ) * - 41 THEN + + 0 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5687
SELECT 92 DIV CAST( + 93 AS SIGNED ) + 42 + + COUNT( * ) * - 94 * + - 99 col1
----
9348

skipif mysql # not compatible
query I rowsort label-5687
SELECT 92 / CAST ( + 93 AS INTEGER ) + 42 + + COUNT ( * ) * - 94 * + - 99 col1
----
9348

query I rowsort
SELECT CASE - 95 WHEN + - 67 THEN NULL ELSE - 21 + - 8 + 41 END
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-5689
SELECT + 23, + 19 DIV - 47 AS col1
----
23
0

skipif mysql # not compatible
query II rowsort label-5689
SELECT + 23, + 19 / - 47 AS col1
----
23
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5690
SELECT ALL - ( - 83 ) * + + 82 * + 82 + - 75 + + 12 AS col1, + SUM( ALL - 29 ) * 14 * - - 86 AS col2
----
558029
-34916

skipif mysql # not compatible
query II rowsort label-5690
SELECT ALL - ( - 83 ) * + + 82 * + 82 + - 75 + + 12 AS col1, + SUM ( ALL - 29 ) * 14 * - - 86 AS col2
----
558029
-34916

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT COALESCE ( + COALESCE ( + 71, - + 91 ), COUNT( * ) * + 53 * MAX( + 98 ) * + + 17 + - 84 + 46 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5691
SELECT COALESCE ( + COALESCE ( + 71, - + 91 ), COUNT ( * ) * + 53 * MAX ( + 98 ) * + + 17 + - 84 + 46 ) AS col2
----
71

query I rowsort
SELECT + 72 - + 87
----
-15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5694
SELECT - 37 * + + 82 * + CASE - 30 WHEN + 62 * + 66 + + 10 / + CAST( - 33 AS SIGNED ) THEN - + CAST( NULL AS SIGNED ) WHEN + 32 THEN - 55 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT - 37 * + + 82 * + CASE - 30 WHEN + 62 * + 66 + + 10 / + CAST ( - 33 AS INTEGER ) THEN - + CAST ( NULL AS INTEGER ) WHEN + 32 THEN - 55 ELSE NULL END col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5696
SELECT ALL + 23 * + - 13 - - 59 + - MAX( + 2 ) / + 86 * - CAST( + - COALESCE ( + + 28, - COUNT( * ) * + COUNT( - 59 ) ) AS SIGNED ) * 77 + - - COUNT( * ) * - + COUNT( * ) * AVG ( - CAST( NULL AS SIGNED ) ) - - 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + 23 * + - 13 - - 59 + - MAX ( + 2 ) / + 86 * - CAST ( + - COALESCE ( + + 28, - COUNT ( * ) * + COUNT ( - 59 ) ) AS INTEGER ) * 77 + - - COUNT ( * ) * - + COUNT ( * ) * AVG ( - CAST ( NULL AS INTEGER ) ) - - 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5697
SELECT DISTINCT - 2 DIV + MIN( - + 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT - 2 / + MIN ( - + 94 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5698
SELECT ALL - 85 * - - SUM( ALL CAST( NULL AS SIGNED ) ) / + 78 / + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL - 85 * - - SUM ( ALL CAST ( NULL AS INTEGER ) ) / + 78 / + + 42
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5699
SELECT - - 49 * - COALESCE ( 60, 34 + 0 * - NULLIF ( - 54, + MIN( 59 ) DIV + + SUM( + 73 ) * + + 78 + + 19 * - - 93 ) DIV CASE 68 WHEN + 91 + NULLIF ( 11, - CASE 65 WHEN 64 + 89 THEN NULL WHEN + 28 THEN 7 ELSE NULL END * + - 31 - - + 97 * NULLIF ( - + 65, 15 ) ) THEN NULL WHEN 26 THEN 23 + + COUNT( * ) ELSE NULL END ) * 8 + + ( + 19 ) * COUNT( * ) AS col2
----
-23501

skipif mysql # not compatible
query I rowsort label-5699
SELECT - - 49 * - COALESCE ( 60, 34 + 0 * - NULLIF ( - 54, + MIN ( 59 ) / + + SUM ( + 73 ) * + + 78 + + 19 * - - 93 ) / CASE 68 WHEN + 91 + NULLIF ( 11, - CASE 65 WHEN 64 + 89 THEN NULL WHEN + 28 THEN 7 ELSE NULL END * + - 31 - - + 97 * NULLIF ( - + 65, 15 ) ) THEN NULL WHEN 26 THEN 23 + + COUNT ( * ) ELSE NULL END ) * 8 + + ( + 19 ) * COUNT ( * ) AS col2
----
-23501

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

query II rowsort
SELECT - - NULLIF ( - + 10, + 73 ) * + 51 AS col0, - 40
----
-510
-40

query I rowsort
SELECT - 23 + + 5 + - 58 * - 22 AS col1
----
1258

query I rowsort
SELECT 32 * 96 - 12 AS col2
----
3060

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5705
SELECT CASE + 43 WHEN - 15 THEN - + ( COUNT( * ) ) + - 95 WHEN + CAST( NULL AS SIGNED ) + + 32 THEN NULL ELSE NULL END * + 5 * COUNT( * ) + + 71 + + - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT CASE + 43 WHEN - 15 THEN - + ( COUNT ( * ) ) + - 95 WHEN + CAST ( NULL AS INTEGER ) + + 32 THEN NULL ELSE NULL END * + 5 * COUNT ( * ) + + 71 + + - 69 AS col2
----
NULL

query I rowsort
SELECT ALL + 2 + - + 14 + + 81 col0
----
69

query I rowsort
SELECT + + 22 + + - 64 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5708
SELECT - + CAST( + 81 AS SIGNED ) AS col2, 59
----
-81
59

skipif mysql # not compatible
query II rowsort label-5708
SELECT - + CAST ( + 81 AS INTEGER ) AS col2, 59
----
-81
59

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

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

query I rowsort
SELECT + + 72 + + ( 54 )
----
126

query I rowsort
SELECT ALL ( - - ( - 34 ) ) * + 56 * NULLIF ( + 4, + + 19 ) AS col1
----
-7616

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL + 23 + + + NULLIF ( SUM( ALL 50 ), - 33 + + - 61 + + 37 * - + 7 + COUNT( * ) * - 52 ) + - - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL + 23 + + + NULLIF ( SUM ( ALL 50 ), - 33 + + - 61 + + 37 * - + 7 + COUNT ( * ) * - 52 ) + - - COUNT ( * )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT - NULLIF ( + ( - + ( + 89 ) ), + - ( - SUM( DISTINCT + 37 ) ) * 98 * + - CASE CASE - SUM( - + 91 ) WHEN + 89 THEN NULL WHEN + 48 THEN - - NULLIF ( + + CAST( NULL AS SIGNED ), - 76 - + 11 ) - + - 75 + 7 END WHEN + ( 48 ) + 23 - + CAST( NULL AS SIGNED ) / + - CAST( - 38 AS SIGNED ) THEN + 76 END ) col2
----
89

skipif mysql # not compatible
query I rowsort label-5713
SELECT - NULLIF ( + ( - + ( + 89 ) ), + - ( - SUM ( DISTINCT + 37 ) ) * 98 * + - CASE CASE - SUM ( - + 91 ) WHEN + 89 THEN NULL WHEN + 48 THEN - - NULLIF ( + + CAST ( NULL AS INTEGER ), - 76 - + 11 ) - + - 75 + 7 END WHEN + ( 48 ) + 23 - + CAST ( NULL AS INTEGER ) / + - CAST ( - 38 AS INTEGER ) THEN + 76 END ) col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT + 97 DIV - - 13
----
7

skipif mysql # not compatible
query I rowsort label-5714
SELECT + 97 / - - 13
----
7

query I rowsort
SELECT + 15 * + 37
----
555

query I rowsort
SELECT ALL 21 * + - 26 * + 49
----
-26754

onlyif mysql # DIV for integer division: 
query I rowsort label-5717
SELECT DISTINCT NULLIF ( 75, + 27 * - 61 ) DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT NULLIF ( 75, + 27 * - 61 ) / - 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5718
SELECT + ( + 80 ) DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-5718
SELECT + ( + 80 ) / 44
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5719
SELECT + 67 DIV + - 73
----
0

skipif mysql # not compatible
query I rowsort label-5719
SELECT + 67 / + - 73
----
0

query I rowsort
SELECT + 79 * + 79
----
6241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5721
SELECT ALL CASE - 91 WHEN - 2 THEN NULL WHEN - + 89 THEN + 8 - - COUNT( * ) ELSE 1 END DIV ( - + 12 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL CASE - 91 WHEN - 2 THEN NULL WHEN - + 89 THEN + 8 - - COUNT ( * ) ELSE 1 END / ( - + 12 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5722
SELECT ALL 49 - - NULLIF ( 64, - CASE - 9 WHEN 1 + COUNT( ALL + 13 ) THEN - 64 ELSE COUNT( * ) END ) + CAST( - + 80 AS SIGNED ) - 51 + + COUNT( * ) * 86 * 76 * - + 18 * - COUNT( * )
----
117630

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL 49 - - NULLIF ( 64, - CASE - 9 WHEN 1 + COUNT ( ALL + 13 ) THEN - 64 ELSE COUNT ( * ) END ) + CAST ( - + 80 AS INTEGER ) - 51 + + COUNT ( * ) * 86 * 76 * - + 18 * - COUNT ( * )
----
117630

onlyif mysql # DIV for integer division: 
query I rowsort label-5723
SELECT 16 DIV + 93 * - 38 + - - 84 col0
----
84

skipif mysql # not compatible
query I rowsort label-5723
SELECT 16 / + 93 * - 38 + - - 84 col0
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL - 16 * - MIN( 35 ) * 73 col1
----
40880

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL - 16 * - MIN ( 35 ) * 73 col1
----
40880

query I rowsort
SELECT ALL + COALESCE ( 41, + 59 ) AS col0
----
41

query I rowsort
SELECT + 95 * 55 + 58 AS col2
----
5283

query I rowsort
SELECT - 77 * + - 50
----
3850

query I rowsort
SELECT + 89 * + + 10
----
890

query I rowsort
SELECT - 95 + + 2 AS col2
----
-93

query I rowsort
SELECT - 68 + + 15 * 49
----
667

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5732
SELECT - SUM( ALL CAST( - + 5 AS SIGNED ) ) * - ( + + ( 74 ) ) AS col2
----
-370

skipif mysql # not compatible
query I rowsort label-5732
SELECT - SUM ( ALL CAST ( - + 5 AS INTEGER ) ) * - ( + + ( 74 ) ) AS col2
----
-370

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT + + COUNT( 29 ) * + 29 + + 72 * - 77 + - + 8 AS col2
----
-5523

skipif mysql # not compatible
query I rowsort label-5734
SELECT + + COUNT ( 29 ) * + 29 + + 72 * - 77 + - + 8 AS col2
----
-5523

onlyif mysql # aggregate syntax: 
query II rowsort label-5735
SELECT DISTINCT + + MIN( DISTINCT 19 ) col2, 76 AS col0
----
19
76

skipif mysql # not compatible
query II rowsort label-5735
SELECT DISTINCT + + MIN ( DISTINCT 19 ) col2, 76 AS col0
----
19
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT ALL 77 * + 14 + - COUNT( * )
----
1077

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL 77 * + 14 + - COUNT ( * )
----
1077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5738
SELECT + 62 * COALESCE ( + + 49, - 86 * 56 * + CAST( NULL AS SIGNED ) - + - 96 * 28 * - 86 )
----
3038

skipif mysql # not compatible
query I rowsort label-5738
SELECT + 62 * COALESCE ( + + 49, - 86 * 56 * + CAST ( NULL AS INTEGER ) - + - 96 * 28 * - 86 )
----
3038

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT + CASE NULLIF ( - - 63, - SUM( DISTINCT - 21 ) - - 87 ) WHEN - - 41 THEN 99 WHEN 89 + 69 THEN - + ( + + 0 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT + CASE NULLIF ( - - 63, - SUM ( DISTINCT - 21 ) - - 87 ) WHEN - - 41 THEN 99 WHEN 89 + 69 THEN - + ( + + 0 ) ELSE NULL END
----
NULL

query II rowsort
SELECT - 84 * + 93, - 66 AS col0
----
-7812
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5741
SELECT + COUNT( * ) * - MAX( DISTINCT 43 ) + - + 8 DIV - 93 col1
----
-43

skipif mysql # not compatible
query I rowsort label-5741
SELECT + COUNT ( * ) * - MAX ( DISTINCT 43 ) + - + 8 / - 93 col1
----
-43

query I rowsort
SELECT DISTINCT - ( + 44 ) * - + 35
----
1540

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

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL CAST ( NULL AS REAL ) + 68
----
NULL

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

skipif mysql # not compatible
query II rowsort label-5744
SELECT 38 AS col1, COUNT ( * )
----
38
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5745
SELECT 21 - 85 DIV + 2 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5745
SELECT 21 - 85 / + 2 AS col2
----
-21

query I rowsort
SELECT 95 + 37 + + 49 * 94 AS col1
----
4738

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

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL + COUNT ( * ) - + + 46 AS col1
----
-45

query II rowsort
SELECT 11 * + - 91 * + - 95 AS col1, 51 AS col2
----
95095
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5749
SELECT ALL CASE - 8 WHEN - 79 - - + CAST( + 78 AS SIGNED ) THEN - 57 END * - - COUNT( + 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL CASE - 8 WHEN - 79 - - + CAST ( + 78 AS INTEGER ) THEN - 57 END * - - COUNT ( + 71 )
----
NULL

query I rowsort
SELECT ALL + 29 - - 84
----
113

query I rowsort
SELECT ALL 96 - 25 AS col2
----
71

query I rowsort
SELECT DISTINCT ( + - 46 ) * - 7 AS col2
----
322

onlyif mysql # DIV for integer division: 
query II rowsort label-5753
SELECT ( + 55 ) DIV + 82, 75 col1
----
0
75

skipif mysql # not compatible
query II rowsort label-5753
SELECT ( + 55 ) / + 82, 75 col1
----
0
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ( 5 ) * 66 * + ( + + 0 ) * SUM( ALL - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-5755
SELECT ( 5 ) * 66 * + ( + + 0 ) * SUM ( ALL - 29 )
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL 36 / - + COUNT ( * )
----
-36

query I rowsort
SELECT ALL - 1 + 29 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + 30 * - COUNT( * ) - 19 + + 53 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5759
SELECT + 30 * - COUNT ( * ) - 19 + + 53 AS col1
----
4

query I rowsort
SELECT + NULLIF ( + 47, - 76 ) * + - 12 col2
----
-564

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

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

query I rowsort
SELECT ALL 72 + + 50
----
122

query I rowsort
SELECT ALL + - ( + + 87 ) * 9 * + 40 + + + 48 AS col2
----
-31272

query I rowsort
SELECT DISTINCT - - 13 + - 65 + + 73 * + + 97 + - + 59 + + 42 + + 66
----
7078

query II rowsort
SELECT DISTINCT - 7 + 76 * + - 64 AS col2, COALESCE ( - 55, 55, + 79 ) + - 85
----
-4871
-140

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

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

query I rowsort
SELECT 69 + - 30 + - 47 AS col2
----
-8

query II rowsort
SELECT + 35 + 36 - - 9 AS col2, + 7 + + 6
----
80
13

query I rowsort
SELECT ALL - 14 + - 51 * 87 - + 14 + + 61
----
-4404

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + - COUNT( * ) * + 42 + - COUNT( * ) - 95
----
-138

skipif mysql # not compatible
query I rowsort label-5770
SELECT + - COUNT ( * ) * + 42 + - COUNT ( * ) - 95
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT - ( + + 99 ) * - + 59 + MAX( ALL - + ( + 82 ) ) AS col2
----
5759

skipif mysql # not compatible
query I rowsort label-5771
SELECT - ( + + 99 ) * - + 59 + MAX ( ALL - + ( + 82 ) ) AS col2
----
5759

query I rowsort
SELECT ( + + 81 ) + - 30 AS col0
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-5773
SELECT ALL + CASE - 73 WHEN 87 THEN + NULLIF ( 30, - 92 * + - COALESCE ( + COUNT( * ), - NULLIF ( - MIN( + 99 ), 83 ) * - - AVG ( 86 ) ) * - - COUNT( * ) * 99 * - 27 * - 79 + CAST( + 36 AS DECIMAL ) + 31 ) ELSE - ( + 15 ) END DIV + 95
----
0

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL + CASE - 73 WHEN 87 THEN + NULLIF ( 30, - 92 * + - COALESCE ( + COUNT ( * ), - NULLIF ( - MIN ( + 99 ), 83 ) * - - AVG ( 86 ) ) * - - COUNT ( * ) * 99 * - 27 * - 79 + CAST ( + 36 AS REAL ) + 31 ) ELSE - ( + 15 ) END / + 95
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5775
SELECT - COUNT( ALL + + CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5775
SELECT - COUNT ( ALL + + CAST ( NULL AS REAL ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5776
SELECT ALL + CASE 6 WHEN 48 + + CASE 66 WHEN 49 + + + 50 THEN NULL WHEN + - 11 THEN - 25 END THEN + COALESCE ( ( + 40 ), - - 43 ) ELSE ( 57 ) END - + CASE + + 33 WHEN NULLIF ( - 98, 31 ) * + 64 * + CAST( NULL AS SIGNED ) + + 57 THEN NULL ELSE - 4 END col0, CAST( NULL AS SIGNED ) AS col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-5776
SELECT ALL + CASE 6 WHEN 48 + + CASE 66 WHEN 49 + + + 50 THEN NULL WHEN + - 11 THEN - 25 END THEN + COALESCE ( ( + 40 ), - - 43 ) ELSE ( 57 ) END - + CASE + + 33 WHEN NULLIF ( - 98, 31 ) * + 64 * + CAST ( NULL AS INTEGER ) + + 57 THEN NULL ELSE - 4 END col0, CAST ( NULL AS INTEGER ) AS col2
----
61
NULL

query I rowsort
SELECT 5 * 74 AS col2
----
370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5778
SELECT 40 + - COUNT( * ) + 90 + 95 DIV - + CAST( ( 27 ) AS SIGNED ) AS col1
----
126

skipif mysql # not compatible
query I rowsort label-5778
SELECT 40 + - COUNT ( * ) + 90 + 95 / - + CAST ( ( 27 ) AS INTEGER ) AS col1
----
126

onlyif mysql # DIV for integer division: 
query II rowsort label-5779
SELECT 11 DIV + 31, 59 * 83 AS col0
----
0
4897

skipif mysql # not compatible
query II rowsort label-5779
SELECT 11 / + 31, 59 * 83 AS col0
----
0
4897

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

skipif mysql # not compatible
query I rowsort label-5780
SELECT 46 / - COUNT ( * )
----
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT COUNT( ALL - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT COUNT ( ALL - 85 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT DISTINCT + COALESCE ( + - 58, 87 * COALESCE ( 2, + CASE - 3 WHEN - 8 - + 8 THEN NULL WHEN - 83 + + 54 + 87 * 9 THEN COUNT( * ) * + 16 - - - 37 WHEN + + COUNT( * ) THEN NULL END * + 95 / 67 * + + 47 ) + + 36 + 49 + + 19 * - 16 / 79 + - ( 24 ) ) * CASE 61 WHEN - 95 THEN NULL WHEN + 16 THEN AVG ( + 55 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT + COALESCE ( + - 58, 87 * COALESCE ( 2, + CASE - 3 WHEN - 8 - + 8 THEN NULL WHEN - 83 + + 54 + 87 * 9 THEN COUNT ( * ) * + 16 - - - 37 WHEN + + COUNT ( * ) THEN NULL END * + 95 / 67 * + + 47 ) + + 36 + 49 + + 19 * - 16 / 79 + - ( 24 ) ) * CASE 61 WHEN - 95 THEN NULL WHEN + 16 THEN AVG ( + 55 ) END
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT 62 + + 2 DIV 71 * 74 + - - 17 + + 88 col1
----
167

skipif mysql # not compatible
query I rowsort label-5786
SELECT 62 + + 2 / 71 * 74 + - - 17 + + 88 col1
----
167

query I rowsort
SELECT 36 * + 82 AS col0
----
2952

query I rowsort
SELECT DISTINCT + 81 * + 26 AS col0
----
2106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5789
SELECT ALL - 26 + COUNT( * ) + + - 69 * + 62 + + COUNT( * ) DIV - 30 * - COUNT( * ) AS col2
----
-4303

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL - 26 + COUNT ( * ) + + - 69 * + 62 + + COUNT ( * ) / - 30 * - COUNT ( * ) AS col2
----
-4303

onlyif mysql # aggregate syntax: 
query II rowsort label-5790
SELECT COUNT( * ) + COUNT( * ) + ( - + 7 ) AS col2, ( NULLIF ( + ( + 3 ), - 28 - + ( 22 ) ) )
----
-5
3

skipif mysql # not compatible
query II rowsort label-5790
SELECT COUNT ( * ) + COUNT ( * ) + ( - + 7 ) AS col2, ( NULLIF ( + ( + 3 ), - 28 - + ( 22 ) ) )
----
-5
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5791
SELECT DISTINCT 86 * - + 77 DIV - 7 + - - 47 + - COUNT( * ) AS col2, + 71 * - 98 + - - 35 AS col2
----
992
-6923

skipif mysql # not compatible
query II rowsort label-5791
SELECT DISTINCT 86 * - + 77 / - 7 + - - 47 + - COUNT ( * ) AS col2, + 71 * - 98 + - - 35 AS col2
----
992
-6923

query II rowsort
SELECT ALL - + 32 * 28 * + 22 + - - 61 - 12 + + ( + 63 ), 81 AS col2
----
-19600
81

query I rowsort
SELECT DISTINCT 94 * - + 94 + + 36
----
-8800

onlyif mysql # DIV for integer division: 
query I rowsort label-5794
SELECT - + 23 DIV + 22 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5794
SELECT - + 23 / + 22 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5795
SELECT DISTINCT 45 DIV CASE + 3 WHEN + 51 DIV 13 DIV + 21 + 31 + COUNT( DISTINCT - - 83 ) + + - CAST( - 4 AS SIGNED ) + 69 THEN + - 62 WHEN + + ( CAST( NULLIF ( 71, - ( - - 43 ) + + + 65 ) AS SIGNED ) ) - - 82 + + + 48 + - + ( + 36 ) DIV + + 71 * + ( - - MAX( - 13 ) ) + - COUNT( * ) * - - SUM( - + 52 ) THEN + 63 + + AVG ( DISTINCT - + 17 ) ELSE - 38 END DIV 28 + + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT 45 / CASE + 3 WHEN + 51 / 13 / + 21 + 31 + COUNT ( DISTINCT - - 83 ) + + - CAST ( - 4 AS INTEGER ) + 69 THEN + - 62 WHEN + + ( CAST ( NULLIF ( 71, - ( - - 43 ) + + + 65 ) AS INTEGER ) ) - - 82 + + + 48 + - + ( + 36 ) / + + 71 * + ( - - MAX ( - 13 ) ) + - COUNT ( * ) * - - SUM ( - + 52 ) THEN + 63 + + AVG ( DISTINCT - + 17 ) ELSE - 38 END / 28 + + 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL COUNT( * ) * + 55 + + 77 + + + 15 + - 47 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL COUNT ( * ) * + 55 + + 77 + + + 15 + - 47 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT ALL + COALESCE ( COALESCE ( + MAX( ALL + 60 ), - CASE - + 49 WHEN + + 89 * 45 - - - COUNT( * ) THEN + - ( + 51 ) END * - + 90 - - + 36 - + 65 ), - 63 + - 27, - 42 + + + MAX( - 88 ) + + 47 * + - 88 )
----
60

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL + COALESCE ( COALESCE ( + MAX ( ALL + 60 ), - CASE - + 49 WHEN + + 89 * 45 - - - COUNT ( * ) THEN + - ( + 51 ) END * - + 90 - - + 36 - + 65 ), - 63 + - 27, - 42 + + + MAX ( - 88 ) + + 47 * + - 88 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT - ( - SUM( + 32 ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-5798
SELECT - ( - SUM ( + 32 ) ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT ALL - + 82 * COUNT( * ) + - - 87 + COUNT( * ) * 81 + + 88 * + - 84 - 50 AS col1
----
-7356

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL - + 82 * COUNT ( * ) + - - 87 + COUNT ( * ) * 81 + + 88 * + - 84 - 50 AS col1
----
-7356

query II rowsort
SELECT ALL - 4 * - 35 AS col0, + 47
----
140
47

query I rowsort
SELECT DISTINCT - 60 * + 82 * + 48
----
-236160

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5803
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * - + 98 - + + 82
----
16

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * - + 98 - + + 82
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5804
SELECT COUNT( * ) AS col2, + 80 * - 61 AS col1, + 88 + - 90 + + CAST( + + 20 AS SIGNED ) + + AVG ( ALL - NULLIF ( - 53, 0 ) ) * CASE - COUNT( * ) WHEN + 31 THEN - 89 * + 12 + - 28 - 41 / - 56 * - CAST( NULL AS SIGNED ) END * - + 30
----
1
-4880
NULL

skipif mysql # not compatible
query III rowsort label-5804
SELECT COUNT ( * ) AS col2, + 80 * - 61 AS col1, + 88 + - 90 + + CAST ( + + 20 AS INTEGER ) + + AVG ( ALL - NULLIF ( - 53, 0 ) ) * CASE - COUNT ( * ) WHEN + 31 THEN - 89 * + 12 + - 28 - 41 / - 56 * - CAST ( NULL AS INTEGER ) END * - + 30
----
1
-4880
NULL

query II rowsort
SELECT 87 AS col0, 25 + 88
----
87
113

onlyif mysql # DIV for integer division: 
query I rowsort label-5806
SELECT DISTINCT - 75 DIV + + 54 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT - 75 / + + 54 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query III rowsort label-5807
SELECT + 85 * 46 * - + 10 * + COUNT( * ) * - 5 AS col1, ( + 69 ) + + 37 AS col2, - 98
----
195500
106
-98

skipif mysql # not compatible
query III rowsort label-5807
SELECT + 85 * 46 * - + 10 * + COUNT ( * ) * - 5 AS col1, ( + 69 ) + + 37 AS col2, - 98
----
195500
106
-98

query I rowsort
SELECT DISTINCT CASE - 71 WHEN - - 52 THEN NULL WHEN - 37 THEN + + 51 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT DISTINCT - 57 * + + 88 * - - CAST( + - 17 AS SIGNED ) AS col1
----
85272

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT - 57 * + + 88 * - - CAST ( + - 17 AS INTEGER ) AS col1
----
85272

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT + 72 + - ( - COUNT( * ) )
----
73

skipif mysql # not compatible
query I rowsort label-5810
SELECT + 72 + - ( - COUNT ( * ) )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5811
SELECT - SUM( + 94 ) - + 26 DIV - ( + MIN( 84 ) ) + + COUNT( * ) * ( - + 95 )
----
-189

skipif mysql # not compatible
query I rowsort label-5811
SELECT - SUM ( + 94 ) - + 26 / - ( + MIN ( 84 ) ) + + COUNT ( * ) * ( - + 95 )
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT ALL COUNT( ALL + 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL COUNT ( ALL + 89 ) AS col2
----
1

query I rowsort
SELECT + 90 * + - 81
----
-7290

query I rowsort
SELECT - 75 col2
----
-75

query I rowsort
SELECT - 54 - 6 AS col0
----
-60

query I rowsort
SELECT ALL - 58 + + 1 AS col0
----
-57

query I rowsort
SELECT ALL + 94 + - 75
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT - 18 + + 27 - + NULLIF ( COUNT( * ), + 11 * + COUNT( * ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5818
SELECT - 18 + + 27 - + NULLIF ( COUNT ( * ), + 11 * + COUNT ( * ) ) AS col2
----
8

query I rowsort
SELECT - ( - 87 ) + - 95
----
-8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5822
SELECT ALL - - COUNT( * ) + - - 85 * - - CAST( - + 36 AS SIGNED ) AS col2
----
-3059

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - - COUNT ( * ) + - - 85 * - - CAST ( - + 36 AS INTEGER ) AS col2
----
-3059

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT CASE - + 38 WHEN + MAX( 27 ) THEN + - 48 + 69 WHEN 95 THEN + ( - 7 ) * 74 + 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT CASE - + 38 WHEN + MAX ( 27 ) THEN + - 48 + 69 WHEN 95 THEN + ( - 7 ) * 74 + 25 END AS col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + + 89, + + 33 + - 1, - - 48 ) + - NULLIF ( + + ( + 0 ), 0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5825
SELECT - NULLIF ( + + ( + + 16 ), - 94 * - + 73 * + 82 + - AVG ( + - ( - 9 ) ) - 72 + + ( - CASE - 43 WHEN 49 THEN - + CAST( NULL AS SIGNED ) END ) ), 93 AS col2
----
-16
93

skipif mysql # not compatible
query II rowsort label-5825
SELECT - NULLIF ( + + ( + + 16 ), - 94 * - + 73 * + 82 + - AVG ( + - ( - 9 ) ) - 72 + + ( - CASE - 43 WHEN 49 THEN - + CAST ( NULL AS INTEGER ) END ) ), 93 AS col2
----
-16
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5826
SELECT - + 38 * - + CASE + - 37 WHEN + 3 + + + 82 THEN 28 WHEN + 18 THEN + - 6 END + - - 36 + + COUNT( * ) + + - 52, + 54 * - 48 + - COUNT( * ) AS col1
----
NULL
-2593

skipif mysql # not compatible
query II rowsort label-5826
SELECT - + 38 * - + CASE + - 37 WHEN + 3 + + + 82 THEN 28 WHEN + 18 THEN + - 6 END + - - 36 + + COUNT ( * ) + + - 52, + 54 * - 48 + - COUNT ( * ) AS col1
----
NULL
-2593

query I rowsort
SELECT + - 19 col1
----
-19

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

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

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

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

query I rowsort
SELECT DISTINCT - 66 * - 52 AS col0
----
3432

query I rowsort
SELECT ALL - 22 * - + ( + ( 65 ) ) AS col2
----
1430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5832
SELECT DISTINCT 37 * + 5 / COALESCE ( - CAST( NULL AS SIGNED ), - + 18 - 13 ) * + + ( + - 53 ) + + 80 - - NULLIF ( 96, 96 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT 37 * + 5 / COALESCE ( - CAST ( NULL AS INTEGER ), - + 18 - 13 ) * + + ( + - 53 ) + + 80 - - NULLIF ( 96, 96 ) col2
----
NULL

query I rowsort
SELECT + + 80 * + 38 + + + 26 AS col0
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT + + 36 - + CASE WHEN NOT - 62 <= + - 89 / + - 51 * + 15 + - - 94 + 84 / - COALESCE ( - + SUM( ALL - 93 ), + + 18 ) + 14 THEN - - 48 + - - 6 END + COUNT( + + 13 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT + + 36 - + CASE WHEN NOT - 62 <= + - 89 / + - 51 * + 15 + - - 94 + 84 / - COALESCE ( - + SUM ( ALL - 93 ), + + 18 ) + 14 THEN - - 48 + - - 6 END + COUNT ( + + 13 ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 86 * + + 90 * + 44 AS col1
----
340560

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT 67 DIV 53 + 49 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5836
SELECT 67 / 53 + 49 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT CASE 51 WHEN - + 43 + 85 THEN NULL WHEN - ( - - MIN( ALL + + 31 ) ) THEN + + 34 END * - 33 * + 52 + 73 + + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT CASE 51 WHEN - + 43 + 85 THEN NULL WHEN - ( - - MIN ( ALL + + 31 ) ) THEN + + 34 END * - 33 * + 52 + 73 + + 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5838
SELECT - COUNT( * ) DIV + - COUNT( * ) DIV COALESCE ( - COUNT( * ), + + 73 * - 62 DIV + 15 DIV - - ( - 66 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5838
SELECT - COUNT ( * ) / + - COUNT ( * ) / COALESCE ( - COUNT ( * ), + + 73 * - 62 / + 15 / - - ( - 66 ) ) AS col0
----
-1

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

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

query I rowsort
SELECT - 20 + + 36 - - - 19 + 25
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT + 21 * ( + 56 ) * + 56 * + ( COUNT( + + 23 ) ) - + 89 col2
----
65767

skipif mysql # not compatible
query I rowsort label-5841
SELECT + 21 * ( + 56 ) * + 56 * + ( COUNT ( + + 23 ) ) - + 89 col2
----
65767

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT + CASE + - 67 WHEN 5 THEN - + 67 + - 75 + - 0 * 76 + + 33 + + ( + SUM( DISTINCT - 96 ) ) / + - 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT + CASE + - 67 WHEN 5 THEN - + 67 + - 75 + - 0 * 76 + + 33 + + ( + SUM ( DISTINCT - 96 ) ) / + - 87 END
----
NULL

query I rowsort
SELECT + 26 * + 7
----
182

query I rowsort
SELECT + 85 + - - 89
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL + COUNT( + + 90 ) * - COALESCE ( COUNT( * ), - - 57 * - 23 + - 29 ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL + COUNT ( + + 90 ) * - COALESCE ( COUNT ( * ), - - 57 * - 23 + - 29 ) + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5846
SELECT DISTINCT 10 AS col0, COUNT( * ) + + + 42
----
10
43

skipif mysql # not compatible
query II rowsort label-5846
SELECT DISTINCT 10 AS col0, COUNT ( * ) + + + 42
----
10
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT DISTINCT 92 * - COUNT( - 29 ) + - 45 * - 70 col2
----
3058

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT 92 * - COUNT ( - 29 ) + - 45 * - 70 col2
----
3058

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

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

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

query I rowsort
SELECT ALL 84 * + 82
----
6888

query I rowsort
SELECT - 90 * + 49 AS col0
----
-4410

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

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

query I rowsort
SELECT DISTINCT 29 * - 67 + + 98
----
-1845

onlyif mysql # aggregate syntax: 
query II rowsort label-5854
SELECT MAX( - 25 ) AS col1, 63
----
-25
63

skipif mysql # not compatible
query II rowsort label-5854
SELECT MAX ( - 25 ) AS col1, 63
----
-25
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5855
SELECT - 27 AS col0, - COUNT( ALL - - 65 )
----
-27
-1

skipif mysql # not compatible
query II rowsort label-5855
SELECT - 27 AS col0, - COUNT ( ALL - - 65 )
----
-27
-1

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

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

query I rowsort
SELECT ALL CASE + 96 WHEN + 42 THEN 43 ELSE NULL END
----
NULL

query I rowsort
SELECT + COALESCE ( + 38, 99 ) + 14 + 76
----
128

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

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

query I rowsort
SELECT DISTINCT - 27 + - 71 AS col1
----
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-5861
SELECT - 92 AS col1, + 84 DIV ( 59 ) * - 38 * 62 + - 73
----
-92
-2429

skipif mysql # not compatible
query II rowsort label-5861
SELECT - 92 AS col1, + 84 / ( 59 ) * - 38 * 62 + - 73
----
-92
-2429

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5862
SELECT ALL - CASE + + 48 WHEN CAST( + 86 AS DECIMAL ) THEN 3 * - 48 + + 91 END / + COUNT( * ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL - CASE + + 48 WHEN CAST ( + 86 AS REAL ) THEN 3 * - 48 + + 91 END / + COUNT ( * ) * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 34, + 89 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5864
SELECT 15 AS col2, - COUNT( * ) * 53 * 5 + + COUNT( * )
----
15
-264

skipif mysql # not compatible
query II rowsort label-5864
SELECT 15 AS col2, - COUNT ( * ) * 53 * 5 + + COUNT ( * )
----
15
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5865
SELECT ALL + 29 - - 0 DIV + COUNT( * ) + - + 34 DIV - 11
----
32

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL + 29 - - 0 / + COUNT ( * ) + - + 34 / - 11
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT - 79 * 7 col2, COUNT( - + 45 )
----
-553
1

skipif mysql # not compatible
query II rowsort label-5866
SELECT - 79 * 7 col2, COUNT ( - + 45 )
----
-553
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5867
SELECT - 88 + - - COUNT( * ) AS col2, - 63 - + - 48
----
-87
-15

skipif mysql # not compatible
query II rowsort label-5867
SELECT - 88 + - - COUNT ( * ) AS col2, - 63 - + - 48
----
-87
-15

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

skipif mysql # not compatible
query II rowsort label-5868
SELECT - 7 AS col1, - COUNT ( * )
----
-7
-1

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

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

query I rowsort
SELECT DISTINCT ( + - 75 ) * - 45
----
3375

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

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

query II rowsort
SELECT + 30, - 59 AS col1
----
30
-59

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

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

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

query I rowsort
SELECT 37 + - 36 * + 86
----
-3059

query I rowsort
SELECT - 95 * - 67
----
6365

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

skipif mysql # not compatible
query II rowsort label-5877
SELECT 51 AS col2, COUNT ( * ) AS col2
----
51
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5878
SELECT + 92, + NULLIF ( + ( - NULLIF ( - CAST( NULL AS DECIMAL ), + + 30 * - COALESCE ( 64, + COALESCE ( + COUNT( * ), - - COUNT( * ) * 91 ) / - - 79 - + 6 ) + 81 + - 21 - - SUM( 90 ) ) ), + + 61 ) * + 27 AS col2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-5878
SELECT + 92, + NULLIF ( + ( - NULLIF ( - CAST ( NULL AS REAL ), + + 30 * - COALESCE ( 64, + COALESCE ( + COUNT ( * ), - - COUNT ( * ) * 91 ) / - - 79 - + 6 ) + 81 + - 21 - - SUM ( 90 ) ) ), + + 61 ) * + 27 AS col2
----
92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT ALL - 75 * 7 * + COALESCE ( - + 89, 4 - - + 31 * COUNT( * ) ) * 46 AS col2
----
2149350

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL - 75 * 7 * + COALESCE ( - + 89, 4 - - + 31 * COUNT ( * ) ) * 46 AS col2
----
2149350

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT ALL - 2 DIV + + 46 * - 30
----
0

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - 2 / + + 46 * - 30
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT 49 DIV - 3 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5881
SELECT 49 / - 3 AS col0
----
-16

query I rowsort
SELECT 55 * - ( - 84 ) * - 97 + 78
----
-448062

query I rowsort
SELECT DISTINCT + 57 + - 79 + + + ( - 16 ) AS col0
----
-38

query I rowsort
SELECT ALL + 39 + + 20 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT - 37 * 32 - - + COUNT( * )
----
-1183

skipif mysql # not compatible
query I rowsort label-5885
SELECT - 37 * 32 - - + COUNT ( * )
----
-1183

onlyif mysql # aggregate syntax: 
query II rowsort label-5886
SELECT ALL - 12 * 4 AS col2, COUNT( * ) + + 32
----
-48
33

skipif mysql # not compatible
query II rowsort label-5886
SELECT ALL - 12 * 4 AS col2, COUNT ( * ) + + 32
----
-48
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5887
SELECT ALL 89 DIV - SUM( + 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL 89 / - SUM ( + 67 )
----
-1

query II rowsort
SELECT ALL + 40 + 26 AS col1, - 1
----
66
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5889
SELECT DISTINCT COUNT( * ) + + + 35, 44 AS col0
----
36
44

skipif mysql # not compatible
query II rowsort label-5889
SELECT DISTINCT COUNT ( * ) + + + 35, 44 AS col0
----
36
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT MIN( DISTINCT - + 19 ) + + 37 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5890
SELECT MIN ( DISTINCT - + 19 ) + + 37 AS col0
----
18

query I rowsort
SELECT ( + + 96 ) - - 6 * - ( - 27 ) * - 75 * 9 + - 84
----
-109338

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT - 10 - SUM( DISTINCT - - 42 )
----
-52

skipif mysql # not compatible
query I rowsort label-5892
SELECT - 10 - SUM ( DISTINCT - - 42 )
----
-52

query I rowsort
SELECT ALL 93 - - NULLIF ( + + 16, 67 )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT DISTINCT + SUM( 71 ) * - - 8 + + 58 AS col1
----
626

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT + SUM ( 71 ) * - - 8 + + 58 AS col1
----
626

query I rowsort
SELECT DISTINCT + 88 * + + 33 AS col0
----
2904

query I rowsort
SELECT - 77 + - - 92 - + 61
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - CASE + + 91 WHEN - + COUNT( * ) THEN NULL WHEN - NULLIF ( + - 95, - 1 * + ( - 42 ) + - COUNT( * ) + - 74 / + - 18 ) + - COALESCE ( - 89, + 65 + 50 ) + - 7 * 67 THEN - 15 / COUNT( * ) * + 71 + + ( - 10 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT - CASE + + 91 WHEN - + COUNT ( * ) THEN NULL WHEN - NULLIF ( + - 95, - 1 * + ( - 42 ) + - COUNT ( * ) + - 74 / + - 18 ) + - COALESCE ( - 89, + 65 + 50 ) + - 7 * 67 THEN - 15 / COUNT ( * ) * + 71 + + ( - 10 ) END
----
NULL

query I rowsort
SELECT ALL + CASE 39 WHEN - + 60 - + ( 6 ) * - + 17 + + ( - 0 ) + - 67 THEN NULL ELSE + - 61 END * + 11 AS col2
----
-671

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5900
SELECT ALL + + 49 DIV 3 DIV - 65 + + 27 + - ( - 2 ) + 68 * - + 8 * MAX( - 8 )
----
4381

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL + + 49 / 3 / - 65 + + 27 + - ( - 2 ) + 68 * - + 8 * MAX ( - 8 )
----
4381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5901
SELECT ( - - 74 ) DIV - COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5901
SELECT ( - - 74 ) / - COUNT ( * ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5902
SELECT - 52 + + - CAST( NULL AS DECIMAL ), - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5902
SELECT - 52 + + - CAST ( NULL AS REAL ), - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT 8 DIV + - 97
----
0

skipif mysql # not compatible
query I rowsort label-5903
SELECT 8 / + - 97
----
0

query I rowsort
SELECT 38 + CASE - 47 WHEN + 32 THEN NULL ELSE - ( - 86 ) END AS col2
----
124

query I rowsort
SELECT DISTINCT - 23 * 89 AS col0
----
-2047

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT - 48 DIV - - ( + - COALESCE ( - 59, 23 ) ) + - 68 + - 72
----
-140

skipif mysql # not compatible
query I rowsort label-5906
SELECT - 48 / - - ( + - COALESCE ( - 59, 23 ) ) + - 68 + - 72
----
-140

query I rowsort
SELECT ALL - + 13 * 60 + + 36 AS col0
----
-744

query I rowsort
SELECT DISTINCT 40 * - + 47 + - NULLIF ( + 77, 88 * 73 * + 34 ) AS col0
----
-1957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5909
SELECT ALL ( - COUNT( * ) ) * 91 * CAST( 61 AS SIGNED ) + - + 42 / + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT ALL ( - COUNT ( * ) ) * 91 * CAST ( 61 AS INTEGER ) + - + 42 / + CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT + 0, - 16 col1
----
0
-16

query I rowsort
SELECT ALL 67 + - 17 AS col2
----
50

query II rowsort
SELECT 7 * - 62 + - 60 AS col2, 72
----
-494
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT 55 - + + 72 * COUNT( * ) * COUNT( * ) * - + ( + ( 12 ) ) col0
----
919

skipif mysql # not compatible
query I rowsort label-5913
SELECT 55 - + + 72 * COUNT ( * ) * COUNT ( * ) * - + ( + ( 12 ) ) col0
----
919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5914
SELECT NULLIF ( ( CAST( - + COUNT( * ) AS SIGNED ) ), - ( 91 ) ) * + COUNT( * ) - - + COALESCE ( 14, MIN( ALL + - 84 ) * - NULLIF ( + + 33, + 86 ) + + 33 + - 56 )
----
13

skipif mysql # not compatible
query I rowsort label-5914
SELECT NULLIF ( ( CAST ( - + COUNT ( * ) AS INTEGER ) ), - ( 91 ) ) * + COUNT ( * ) - - + COALESCE ( 14, MIN ( ALL + - 84 ) * - NULLIF ( + + 33, + 86 ) + + 33 + - 56 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5915
SELECT + 34 * + ( + CAST( 64 AS SIGNED ) ) + - SUM( + 57 ) DIV + 64 AS col1
----
2176

skipif mysql # not compatible
query I rowsort label-5915
SELECT + 34 * + ( + CAST ( 64 AS INTEGER ) ) + - SUM ( + 57 ) / + 64 AS col1
----
2176

query I rowsort
SELECT ALL + 71 + - 9 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT + CASE CASE + 12 WHEN - - 88 * + 4 THEN + 99 * + 67 WHEN 61 + NULLIF ( + 18, - 30 * - + 86 * - 79 * - 92 + SUM( - - 97 ) + - - 0 * 0 ) THEN NULL END WHEN - + ( ( + - 6 ) ) THEN + - 16 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5917
SELECT + CASE CASE + 12 WHEN - - 88 * + 4 THEN + 99 * + 67 WHEN 61 + NULLIF ( + 18, - 30 * - + 86 * - 79 * - 92 + SUM ( - - 97 ) + - - 0 * 0 ) THEN NULL END WHEN - + ( ( + - 6 ) ) THEN + - 16 ELSE NULL END
----
NULL

query I rowsort
SELECT 45 + + + 24
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5919
SELECT + 14 AS col2, MAX( DISTINCT 45 ) + - 48 AS col0
----
14
-3

skipif mysql # not compatible
query II rowsort label-5919
SELECT + 14 AS col2, MAX ( DISTINCT 45 ) + - 48 AS col0
----
14
-3

query I rowsort
SELECT DISTINCT 66 + 43
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5921
SELECT ALL + 29 col2, CAST( NULL AS SIGNED ) - - 63 + - - 90 * - ( - COUNT( * ) )
----
29
NULL

skipif mysql # not compatible
query II rowsort label-5921
SELECT ALL + 29 col2, CAST ( NULL AS INTEGER ) - - 63 + - - 90 * - ( - COUNT ( * ) )
----
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ( - ( + + COUNT( * ) ) ) * + ( - 60 ) * + 12 * + 44 - + 18 + + 12 col2
----
31674

skipif mysql # not compatible
query I rowsort label-5922
SELECT ( - ( + + COUNT ( * ) ) ) * + ( - 60 ) * + 12 * + 44 - + 18 + + 12 col2
----
31674

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5923
SELECT DISTINCT NULLIF ( + COUNT( ALL - 77 ), + + ( + CAST( + 5 AS DECIMAL ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT NULLIF ( + COUNT ( ALL - 77 ), + + ( + CAST ( + 5 AS REAL ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5924
SELECT ALL + COUNT( * ) - + - CAST( + + 92 AS SIGNED ) col0
----
93

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL + COUNT ( * ) - + - CAST ( + + 92 AS INTEGER ) col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5925
SELECT ALL COUNT( * ), + 5 * - 96 AS col1
----
1
-480

skipif mysql # not compatible
query II rowsort label-5925
SELECT ALL COUNT ( * ), + 5 * - 96 AS col1
----
1
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT NULLIF ( - - SUM( ALL + 74 ), + 67 )
----
74

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT NULLIF ( - - SUM ( ALL + 74 ), + 67 )
----
74

query I rowsort
SELECT ALL + 9 - + + 72 * + 3
----
-207

query II rowsort
SELECT - ( + 62 ) * 64 AS col0, 18 * + + 56 * 36 * - - 64 + - 67
----
-3968
2322365

query I rowsort
SELECT + 59 * + 38
----
2242

onlyif mysql # aggregate syntax: 
query II rowsort label-5930
SELECT 82 * 39 + + + COUNT( * ), + 57 + - - 72 AS col0
----
3199
129

skipif mysql # not compatible
query II rowsort label-5930
SELECT 82 * 39 + + + COUNT ( * ), + 57 + - - 72 AS col0
----
3199
129

query I rowsort
SELECT - COALESCE ( 94, - 27 * + 11 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5932
SELECT - SUM( DISTINCT + 73 ) + 24 + CAST( NULL AS DECIMAL ) + + COUNT( ALL + 89 ) * + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5932
SELECT - SUM ( DISTINCT + 73 ) + 24 + CAST ( NULL AS REAL ) + + COUNT ( ALL + 89 ) * + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT - SUM( ALL + 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5933
SELECT - SUM ( ALL + 39 ) AS col1
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5934
SELECT - 70 + + 77 + 57 + - 32 * 90 + - 68 DIV - 78 AS col1
----
-2816

skipif mysql # not compatible
query I rowsort label-5934
SELECT - 70 + + 77 + 57 + - 32 * 90 + - 68 / - 78 AS col1
----
-2816

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

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT COUNT ( * ) / + + 7 AS col2
----
0

query I rowsort
SELECT DISTINCT CASE + 71 WHEN - - 23 THEN 36 * + 34 / - 55 END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5938
SELECT - + 55 * - 47 * + 68, NULLIF ( - ( - + 46 ), - COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col2
----
175780
NULL

skipif mysql # not compatible
query II rowsort label-5938
SELECT - + 55 * - 47 * + 68, NULLIF ( - ( - + 46 ), - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col2
----
175780
NULL

query I rowsort
SELECT + - 49 + 84 + + ( - 57 ) + - 31 * 88 * 39 col0
----
-106414

query I rowsort
SELECT + + 74 + + COALESCE ( 53, + 60 )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT ALL - 94 + + COUNT( ALL - 73 )
----
-93

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL - 94 + + COUNT ( ALL - 73 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT + COUNT( * ) * + - 85 + 94 + - - 83 + MAX( - 52 ) * + + ( + + COUNT( * ) ) * + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT + COUNT ( * ) * + - 85 + 94 + - - 83 + MAX ( - 52 ) * + + ( + + COUNT ( * ) ) * + COUNT ( * ) AS col0
----
40

query I rowsort
SELECT ( 47 ) AS col1
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-5944
SELECT ( 82 ) AS col0, ( 66 ) + + 14 DIV + 53 * - 3 AS col1
----
82
66

skipif mysql # not compatible
query II rowsort label-5944
SELECT ( 82 ) AS col0, ( 66 ) + + 14 / + 53 * - 3 AS col1
----
82
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5945
SELECT + 67 * CAST( NULL AS SIGNED ) * 8 * + + 19 * + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5945
SELECT + 67 * CAST ( NULL AS INTEGER ) * 8 * + + 19 * + 62 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT + CASE 25 WHEN 68 * + - 35 + - - CAST( + + 4 AS SIGNED ) THEN - 48 / + + 12 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5946
SELECT + CASE 25 WHEN 68 * + - 35 + - - CAST ( + + 4 AS INTEGER ) THEN - 48 / + + 12 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT + CASE - 69 WHEN - + COUNT( * ) + - 37 * - - 14 * 94 THEN NULL WHEN + - 7 THEN 4 + - 96 WHEN + COUNT( * ) THEN - - 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT + CASE - 69 WHEN - + COUNT ( * ) + - 37 * - - 14 * 94 THEN NULL WHEN + - 7 THEN 4 + - 96 WHEN + COUNT ( * ) THEN - - 44 END
----
NULL

query I rowsort
SELECT COALESCE ( + 69, - 37 * - 1, + + 97 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL - 95 * + - SUM( ALL + ( + + 73 ) ) + - 54 AS col2
----
6881

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - 95 * + - SUM ( ALL + ( + + 73 ) ) + - 54 AS col2
----
6881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5950
SELECT CASE 57 WHEN + 95 * - 77 / - CAST( NULL AS SIGNED ) THEN 81 + 17 * - 81 WHEN 94 / - 18 + 32 + - ( - 98 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT CASE 57 WHEN + 95 * - 77 / - CAST ( NULL AS INTEGER ) THEN 81 + 17 * - 81 WHEN 94 / - 18 + 32 + - ( - 98 ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5951
SELECT ALL ( + 44 ) * + - MIN( ALL - 29 ) - 45 + CAST( NULL AS SIGNED ) * 97 / AVG ( ALL 90 ) AS col1, 78 * + 35
----
NULL
2730

skipif mysql # not compatible
query II rowsort label-5951
SELECT ALL ( + 44 ) * + - MIN ( ALL - 29 ) - 45 + CAST ( NULL AS INTEGER ) * 97 / AVG ( ALL 90 ) AS col1, 78 * + 35
----
NULL
2730

query I rowsort
SELECT ALL 54 * + 75 AS col1
----
4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT + AVG ( + - 87 ) + + 36 - + - CASE 81 WHEN + - 71 THEN - CASE - + 93 WHEN 75 THEN + 30 ELSE + - COUNT( * ) + + 60 - + 81 / - NULLIF ( - + 97, 17 ) * 47 END / - - 99 WHEN + 85 THEN NULL END * - + CASE 46 WHEN - + ( - 47 ) THEN NULL WHEN + + 17 THEN 75 + 40 * - + COUNT( * ) * + 4 WHEN + CAST( + + CAST( + 73 AS SIGNED ) AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT + AVG ( + - 87 ) + + 36 - + - CASE 81 WHEN + - 71 THEN - CASE - + 93 WHEN 75 THEN + 30 ELSE + - COUNT ( * ) + + 60 - + 81 / - NULLIF ( - + 97, 17 ) * 47 END / - - 99 WHEN + 85 THEN NULL END * - + CASE 46 WHEN - + ( - 47 ) THEN NULL WHEN + + 17 THEN 75 + 40 * - + COUNT ( * ) * + 4 WHEN + CAST ( + + CAST ( + 73 AS INTEGER ) AS INTEGER ) THEN NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5954
SELECT - ( + COUNT ( * ) ) * + 1 * + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * - 62 * + 66 * - + 7
----
0

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

skipif mysql # not compatible
query I rowsort label-5955
SELECT NULLIF ( + 64, - NULLIF ( - COUNT ( * ), - 66 ) )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5956
SELECT ALL MAX( + - 45 ) * CASE 82 WHEN + 54 THEN NULL WHEN + 33 * + 41 * COUNT( * ) - ( ( COUNT( * ) ) ) THEN + 43 END * + + 11 + + ( 68 ) + + + 89 / + - 71 / - + 2 - + - 82 * 22 AS col0, ( + 70 )
----
NULL
70

skipif mysql # not compatible
query II rowsort label-5956
SELECT ALL MAX ( + - 45 ) * CASE 82 WHEN + 54 THEN NULL WHEN + 33 * + 41 * COUNT ( * ) - ( ( COUNT ( * ) ) ) THEN + 43 END * + + 11 + + ( 68 ) + + + 89 / + - 71 / - + 2 - + - 82 * 22 AS col0, ( + 70 )
----
NULL
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL ( COALESCE ( 99, - - MAX( 73 ) ) ) col2
----
99

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL ( COALESCE ( 99, - - MAX ( 73 ) ) ) col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT ALL - CAST( - - 30 AS SIGNED ) * + - 26
----
780

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL - CAST ( - - 30 AS INTEGER ) * + - 26
----
780

query I rowsort
SELECT - 68 * + 11 + 12 AS col2
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT - + COUNT( DISTINCT - CASE 14 WHEN - 0 + 84 THEN - - 47 WHEN 3 THEN NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT - + COUNT ( DISTINCT - CASE 14 WHEN - 0 + 84 THEN - - 47 WHEN 3 THEN NULL END )
----
0

query I rowsort
SELECT - - ( - + COALESCE ( - - 24, + 37 * + 32 - - - 65 * + 43 ) ) AS col1
----
-24

query I rowsort
SELECT + 25 + + 92
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT - - MIN( DISTINCT - - ( + - ( - 33 ) ) ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-5964
SELECT - - MIN ( DISTINCT - - ( + - ( - 33 ) ) ) / - 51
----
0

query I rowsort
SELECT - + 78 * + 39 - - - 83 AS col1
----
-3125

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

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

query I rowsort
SELECT DISTINCT - + 48 + + 20 + 68
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT ALL COALESCE ( + NULLIF ( - 9, + 74 + ( 46 ) ), + COUNT( * ) ) * - 10
----
90

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL COALESCE ( + NULLIF ( - 9, + 74 + ( 46 ) ), + COUNT ( * ) ) * - 10
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5969
SELECT ALL - + COUNT( DISTINCT - + CAST( + + 91 AS SIGNED ) ) + SUM( DISTINCT - 8 )
----
-9

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL - + COUNT ( DISTINCT - + CAST ( + + 91 AS INTEGER ) ) + SUM ( DISTINCT - 8 )
----
-9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5971
SELECT DISTINCT + - ( - 27 ) + + 65 DIV + 2, COUNT( * ) * 9 + - 10 AS col0
----
59
-1

skipif mysql # not compatible
query II rowsort label-5971
SELECT DISTINCT + - ( - 27 ) + + 65 / + 2, COUNT ( * ) * 9 + - 10 AS col0
----
59
-1

query I rowsort
SELECT - 50 + - 23 * + - 37 * + - 38
----
-32388

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

query I rowsort
SELECT ALL 20 * + COALESCE ( + - 3, - 81 )
----
-60

query I rowsort
SELECT - 44 + + 30 AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-5976
SELECT ALL + 0 DIV 81 * + 17 + - - 60
----
60

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL + 0 / 81 * + 17 + - - 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT + 25 * + COUNT( * ) * - 62 * + 3 + 28 * - 19 * - + 94 AS col1
----
45358

skipif mysql # not compatible
query I rowsort label-5977
SELECT + 25 * + COUNT ( * ) * - 62 * + 3 + 28 * - 19 * - + 94 AS col1
----
45358

query I rowsort
SELECT ALL + 8 - + 7
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5979
SELECT ALL - CAST( 29 AS SIGNED ) * + 12 AS col2, + 40 col1
----
-348
40

skipif mysql # not compatible
query II rowsort label-5979
SELECT ALL - CAST ( 29 AS INTEGER ) * + 12 AS col2, + 40 col1
----
-348
40

query I rowsort
SELECT ALL 8 - 34
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT 71 * COUNT( DISTINCT 33 )
----
71

skipif mysql # not compatible
query I rowsort label-5981
SELECT 71 * COUNT ( DISTINCT 33 )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-5982
SELECT ALL - 10 AS col1, + 58 * + + 31 * 92 * + - 72 * + COUNT( * )
----
-10
-11909952

skipif mysql # not compatible
query II rowsort label-5982
SELECT ALL - 10 AS col1, + 58 * + + 31 * 92 * + - 72 * + COUNT ( * )
----
-10
-11909952

query I rowsort
SELECT 84 * 86 * - 50 AS col1
----
-361200

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT SUM( 6 ) * ( 3 ) + - 94 * - + 1
----
112

skipif mysql # not compatible
query I rowsort label-5984
SELECT SUM ( 6 ) * ( 3 ) + - 94 * - + 1
----
112

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

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

query I rowsort
SELECT 61 * + 95 * + 42 AS col2
----
243390

onlyif mysql # DIV for integer division: 
query I rowsort label-5987
SELECT DISTINCT 7 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT 7 / + 61
----
0

query I rowsort
SELECT 74 * 89
----
6586

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

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

query I rowsort
SELECT 80 + 31 AS col1
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-5991
SELECT ALL 36 DIV 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL 36 / 61 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5992
SELECT + 24 * - - 98 + + 70 DIV + 65 + COUNT( * )
----
2354

skipif mysql # not compatible
query I rowsort label-5992
SELECT + 24 * - - 98 + + 70 / + 65 + COUNT ( * )
----
2354

query I rowsort
SELECT DISTINCT 71 * - - 76 AS col0
----
5396

query I rowsort
SELECT ALL + 68 * - 41
----
-2788

query I rowsort
SELECT ALL 26 + 34 AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-5996
SELECT DISTINCT 44 + - 86 DIV - 97
----
44

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT 44 + - 86 / - 97
----
44

query I rowsort
SELECT ALL - - 13 + 36 AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT DISTINCT + 16 + - MIN( + 35 ) * - - 94
----
-3274

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT + 16 + - MIN ( + 35 ) * - - 94
----
-3274

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

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

query I rowsort
SELECT COALESCE ( + 17, + ( + COALESCE ( + - 38, + - 7 ) ) ) + - - 31 AS col1
----
48

query I rowsort
SELECT DISTINCT - 44 * - 5
----
220

query I rowsort
SELECT DISTINCT 56 + - 80
----
-24

query I rowsort
SELECT + 95 * + 50 + 11 + 37 + - + 19 * + 43 AS col2
----
3981

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT - 0 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT - 0 + + COUNT ( * )
----
1

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

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

query I rowsort
SELECT 6 + - 88 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT - 61 * + MIN( 14 ) + - - 37 AS col0
----
-817

skipif mysql # not compatible
query I rowsort label-6008
SELECT - 61 * + MIN ( 14 ) + - - 37 AS col0
----
-817

query I rowsort
SELECT 75 + - 34
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT DISTINCT MAX( DISTINCT 26 ) - ( 21 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT MAX ( DISTINCT 26 ) - ( 21 ) AS col2
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6012
SELECT 19 AS col0, - 23 * COUNT( * ) * + 5 + CAST( - 37 AS SIGNED ) + + + COUNT( * )
----
19
-151

skipif mysql # not compatible
query II rowsort label-6012
SELECT 19 AS col0, - 23 * COUNT ( * ) * + 5 + CAST ( - 37 AS INTEGER ) + + + COUNT ( * )
----
19
-151

query I rowsort
SELECT DISTINCT - 40 - - - 23 col1
----
-63

query II rowsort
SELECT 43 AS col0, 61 + + 98 * 38 * 45 AS col0
----
43
167641

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL - COALESCE ( - COUNT( * ), + 45, + 24 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL - COALESCE ( - COUNT ( * ), + 45, + 24 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6016
SELECT + 22 AS col1, ( + + AVG ( + 41 ) ) / + CAST( NULL AS SIGNED ) + 95
----
22
NULL

skipif mysql # not compatible
query II rowsort label-6016
SELECT + 22 AS col1, ( + + AVG ( + 41 ) ) / + CAST ( NULL AS INTEGER ) + 95
----
22
NULL

query I rowsort
SELECT ALL - 23 * + 81
----
-1863

query II rowsort
SELECT DISTINCT - 57 AS col1, + 0 AS col0
----
-57
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6019
SELECT DISTINCT - 5 * + 6 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT - 5 * + 6 / + 50
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6020
SELECT 57 AS col2, - COUNT( * ) * - - 88 DIV - + COALESCE ( - - COUNT( * ), + NULLIF ( 23, + 8 ) )
----
57
88

skipif mysql # not compatible
query II rowsort label-6020
SELECT 57 AS col2, - COUNT ( * ) * - - 88 / - + COALESCE ( - - COUNT ( * ), + NULLIF ( 23, + 8 ) )
----
57
88

query I rowsort
SELECT 9 * - 97
----
-873

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6022
SELECT ALL - SUM( ALL - 63 ) + COALESCE ( + 83, - MAX( + - 80 ) DIV + MAX( DISTINCT 54 ) - 4 + - MIN( - + 75 ) + + - 29 ) AS col2, 53 AS col1
----
146
53

skipif mysql # not compatible
query II rowsort label-6022
SELECT ALL - SUM ( ALL - 63 ) + COALESCE ( + 83, - MAX ( + - 80 ) / + MAX ( DISTINCT 54 ) - 4 + - MIN ( - + 75 ) + + - 29 ) AS col2, 53 AS col1
----
146
53

query I rowsort
SELECT 79 + + + 24 * - ( 63 ) + + 71 * + + 94 + + 98
----
5339

query II rowsort
SELECT ALL - 92, 32 col0
----
-92
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6025
SELECT - CAST( - 67 AS SIGNED ) * - ( 13 )
----
-871

skipif mysql # not compatible
query I rowsort label-6025
SELECT - CAST ( - 67 AS INTEGER ) * - ( 13 )
----
-871

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL COUNT( + 82 ) + + + MIN( + - 63 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL COUNT ( + 82 ) + + + MIN ( + - 63 ) AS col0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6027
SELECT - 2 * 83 - + CAST( NULL AS SIGNED ) * - 46 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6027
SELECT - 2 * 83 - + CAST ( NULL AS INTEGER ) * - 46 + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 71 col2, 65
----
71
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6029
SELECT ALL - COALESCE ( + 8, COALESCE ( 89, 19 * + 48 * + 5 DIV 50 + + COUNT( + 33 ) * - 2 ) ) * - + 8 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL - COALESCE ( + 8, COALESCE ( 89, 19 * + 48 * + 5 / 50 + + COUNT ( + 33 ) * - 2 ) ) * - + 8 AS col1
----
64

query I rowsort
SELECT ALL 22 * + 59 AS col2
----
1298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6031
SELECT DISTINCT NULLIF ( NULLIF ( 46, + + NULLIF ( - + 70, + COALESCE ( - CAST( - + 98 AS SIGNED ), - 2 ) * + ( - - CAST( - - 27 AS SIGNED ) ) - - 55 ) ), + 51 * + COUNT( * ) / + 24 / - CASE COUNT( * ) WHEN - COUNT( * ) THEN - 45 ELSE NULL END )
----
46

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT NULLIF ( NULLIF ( 46, + + NULLIF ( - + 70, + COALESCE ( - CAST ( - + 98 AS INTEGER ), - 2 ) * + ( - - CAST ( - - 27 AS INTEGER ) ) - - 55 ) ), + 51 * + COUNT ( * ) / + 24 / - CASE COUNT ( * ) WHEN - COUNT ( * ) THEN - 45 ELSE NULL END )
----
46

query I rowsort
SELECT ALL - 62 + + 39
----
-23

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

skipif mysql # not compatible
query I rowsort label-6033
SELECT + 10 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6034
SELECT - + 85, - MIN( DISTINCT 16 ) AS col1
----
-85
-16

skipif mysql # not compatible
query II rowsort label-6034
SELECT - + 85, - MIN ( DISTINCT 16 ) AS col1
----
-85
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6035
SELECT - - COUNT( * ) AS col2, + CAST( 80 AS SIGNED ) * + 4 AS col2
----
1
320

skipif mysql # not compatible
query II rowsort label-6035
SELECT - - COUNT ( * ) AS col2, + CAST ( 80 AS INTEGER ) * + 4 AS col2
----
1
320

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT - SUM( - 19 ) - + 23 * - + 9 * + 85
----
17614

skipif mysql # not compatible
query I rowsort label-6036
SELECT - SUM ( - 19 ) - + 23 * - + 9 * + 85
----
17614

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

query I rowsort
SELECT + 59 + + 3 AS col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-6039
SELECT ALL COUNT( * ) AS col0, 29 * - COUNT( * ) + + - 61 AS col1
----
1
-90

skipif mysql # not compatible
query II rowsort label-6039
SELECT ALL COUNT ( * ) AS col0, 29 * - COUNT ( * ) + + - 61 AS col1
----
1
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6040
SELECT - COALESCE ( + + 45, 85 DIV - - COUNT( * ) * + 5, - - NULLIF ( + 58, + 18 + + 85 ) * - + ( 92 ) + + ( - 16 ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6040
SELECT - COALESCE ( + + 45, 85 / - - COUNT ( * ) * + 5, - - NULLIF ( + 58, + 18 + + 85 ) * - + ( 92 ) + + ( - 16 ) ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT ALL MAX( DISTINCT ( + 17 ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL MAX ( DISTINCT ( + 17 ) ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6042
SELECT - MIN( DISTINCT - 70 ) * 49 + - 0 * + 17 col2, + CASE + 5 WHEN - COUNT( * ) THEN NULL WHEN - 1 THEN - 7 * + COUNT( * ) END
----
3430
NULL

skipif mysql # not compatible
query II rowsort label-6042
SELECT - MIN ( DISTINCT - 70 ) * 49 + - 0 * + 17 col2, + CASE + 5 WHEN - COUNT ( * ) THEN NULL WHEN - 1 THEN - 7 * + COUNT ( * ) END
----
3430
NULL

query I rowsort
SELECT + 85 + - 94
----
-9

query I rowsort
SELECT + 61 + + 60 + + 97
----
218

query I rowsort
SELECT - 9 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT - NULLIF ( - + 89, + COALESCE ( + + AVG ( DISTINCT - 71 ), - NULLIF ( - 61, COUNT( * ) ), + 63, + 75 ) - + CASE + 63 WHEN 8 THEN NULL ELSE 34 / + 18 END ) + 49 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-6046
SELECT - NULLIF ( - + 89, + COALESCE ( + + AVG ( DISTINCT - 71 ), - NULLIF ( - 61, COUNT ( * ) ), + 63, + 75 ) - + CASE + 63 WHEN 8 THEN NULL ELSE 34 / + 18 END ) + 49 AS col1
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6047
SELECT + COUNT( * ) + - + 11 + - - 88 * + - NULLIF ( + + COALESCE ( + CAST( NULL AS SIGNED ), - 76 ), - - ( + 52 ) * 97 ) AS col0
----
6678

skipif mysql # not compatible
query I rowsort label-6047
SELECT + COUNT ( * ) + - + 11 + - - 88 * + - NULLIF ( + + COALESCE ( + CAST ( NULL AS INTEGER ), - 76 ), - - ( + 52 ) * 97 ) AS col0
----
6678

query I rowsort
SELECT - 43 * - 49
----
2107

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT NULLIF ( CASE - 47 WHEN + 98 THEN 99 / COUNT( - 12 ) + - ( - + 30 ) WHEN + COUNT( * ) THEN NULL WHEN - + 24 THEN NULL ELSE - NULLIF ( CASE - - COALESCE ( + 0, - 74 + NULLIF ( + 48, 0 ) * 4 - - - COUNT( * ) / - - COUNT( * ) ) WHEN 9 * 73 + + 75 / + + 30 THEN + 77 * 59 * - 22 END, MAX( + 80 ) ) END, COUNT( ALL 41 ) * - - MAX( + 40 ) * ( - - 99 ) * - + 44 * COALESCE ( - + 73, 84, 18, - 74 * 3 ) + + 84 + - 3 * - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT NULLIF ( CASE - 47 WHEN + 98 THEN 99 / COUNT ( - 12 ) + - ( - + 30 ) WHEN + COUNT ( * ) THEN NULL WHEN - + 24 THEN NULL ELSE - NULLIF ( CASE - - COALESCE ( + 0, - 74 + NULLIF ( + 48, 0 ) * 4 - - - COUNT ( * ) / - - COUNT ( * ) ) WHEN 9 * 73 + + 75 / + + 30 THEN + 77 * 59 * - 22 END, MAX ( + 80 ) ) END, COUNT ( ALL 41 ) * - - MAX ( + 40 ) * ( - - 99 ) * - + 44 * COALESCE ( - + 73, 84, 18, - 74 * 3 ) + + 84 + - 3 * - 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT 82 * + 46 + - + COUNT( * ) + + 88 AS col0
----
3859

skipif mysql # not compatible
query I rowsort label-6050
SELECT 82 * + 46 + - + COUNT ( * ) + + 88 AS col0
----
3859

query I rowsort
SELECT ALL 95 * + - 71
----
-6745

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT - MIN( DISTINCT - 87 ) + 84 * 67 - COUNT( * )
----
5714

skipif mysql # not compatible
query I rowsort label-6052
SELECT - MIN ( DISTINCT - 87 ) + 84 * 67 - COUNT ( * )
----
5714

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL 97 * - SUM( ALL - + 2 ) + 82 col2
----
276

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL 97 * - SUM ( ALL - + 2 ) + 82 col2
----
276

query I rowsort
SELECT - 77 + 92
----
15

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

skipif mysql # not compatible
query I rowsort label-6055
SELECT - COUNT ( * ) * - 64 / - - COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6056
SELECT + COUNT( DISTINCT 78 ) AS col0, - 32 * - 27 + - + 52
----
1
812

skipif mysql # not compatible
query II rowsort label-6056
SELECT + COUNT ( DISTINCT 78 ) AS col0, - 32 * - 27 + - + 52
----
1
812

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT - - 21 + - CAST( - NULLIF ( + 0, - 10 ) AS SIGNED ) * - - NULLIF ( + 52, + + 86 ) - + 16 * + - 43
----
709

skipif mysql # not compatible
query I rowsort label-6058
SELECT - - 21 + - CAST ( - NULLIF ( + 0, - 10 ) AS INTEGER ) * - - NULLIF ( + 52, + + 86 ) - + 16 * + - 43
----
709

query I rowsort
SELECT DISTINCT - + 26 * NULLIF ( + + 65, + + 27 ) + - 21 AS col1
----
-1711

query I rowsort
SELECT - + 22 col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT + 64 + + 69 * COUNT( * ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-6061
SELECT + 64 + + 69 * COUNT ( * ) AS col2
----
133

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

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

query I rowsort
SELECT + 77 + - 3 AS col2
----
74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6065
SELECT - ( CASE + - CAST( - + 68 AS SIGNED ) WHEN + + COUNT( * ) * - MIN( ALL - 84 ) THEN + + 7 * + COALESCE ( - CASE 34 WHEN - 71 THEN 80 * - 85 WHEN - 69 THEN NULL ELSE NULL END, - 91 ) END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6065
SELECT - ( CASE + - CAST ( - + 68 AS INTEGER ) WHEN + + COUNT ( * ) * - MIN ( ALL - 84 ) THEN + + 7 * + COALESCE ( - CASE 34 WHEN - 71 THEN 80 * - 85 WHEN - 69 THEN NULL ELSE NULL END, - 91 ) END ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6067
SELECT + 53 + + + CAST( - 10 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6067
SELECT + 53 + + + CAST ( - 10 AS INTEGER ) AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6068
SELECT DISTINCT + 23 DIV - - MIN( DISTINCT 47 ) + + 62 DIV - 15
----
-4

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT + 23 / - - MIN ( DISTINCT 47 ) + + 62 / - 15
----
-4

query II rowsort
SELECT ALL 96 * + 40, 93 AS col1
----
3840
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT DISTINCT SUM( DISTINCT 19 ) * - - 63 * SUM( DISTINCT - 89 ) AS col0
----
-106533

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT SUM ( DISTINCT 19 ) * - - 63 * SUM ( DISTINCT - 89 ) AS col0
----
-106533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6071
SELECT ALL 62 * + ( + 85 ) * + 86 * 48 + - + ( - MAX( + - 24 ) ) * - CAST( + ( - + CAST( 61 AS SIGNED ) ) AS SIGNED ) col1
----
21753096

skipif mysql # not compatible
query I rowsort label-6071
SELECT ALL 62 * + ( + 85 ) * + 86 * 48 + - + ( - MAX ( + - 24 ) ) * - CAST ( + ( - + CAST ( 61 AS INTEGER ) ) AS INTEGER ) col1
----
21753096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT + ( + CAST( NULL AS SIGNED ) ) / - + 18 + 16 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT + ( + CAST ( NULL AS INTEGER ) ) / - + 18 + 16 * 92
----
NULL

query I rowsort
SELECT - 44 - 86
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT + COUNT( * ) * - NULLIF ( 67, 88 + 11 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6074
SELECT + COUNT ( * ) * - NULLIF ( 67, 88 + 11 ) AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6075
SELECT ALL 55 * + CAST( - - 60 AS SIGNED ) AS col2, + 52 + + 17 * + 12 + - 64 + 28 + + - 61
----
3300
159

skipif mysql # not compatible
query II rowsort label-6075
SELECT ALL 55 * + CAST ( - - 60 AS INTEGER ) AS col2, + 52 + + 17 * + 12 + - 64 + 28 + + - 61
----
3300
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6076
SELECT + CASE + 96 WHEN - + 48 * - - 65 / + 99 * COALESCE ( - - COUNT( * ), + ( - 56 ) * + 42 - - CASE - 45 WHEN + 38 THEN + 47 WHEN - - 52 * - 62 + + COUNT( DISTINCT - - 15 ) * + AVG ( - 67 ) THEN NULL END + - 54 * 75 ) / - COALESCE ( - + 76, - AVG ( - 90 ) + - 39 + MIN( + 3 ) + SUM( ALL 65 ) + 42 * + - 96 * + + 68 - + 44 * - 77 + + + 23, + 16 * - 97 ) + + 10 + 72 + - 89 THEN - 18 WHEN + 36 THEN COUNT( * ) + - 5 ELSE + 86 + - 54 END + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT + CASE + 96 WHEN - + 48 * - - 65 / + 99 * COALESCE ( - - COUNT ( * ), + ( - 56 ) * + 42 - - CASE - 45 WHEN + 38 THEN + 47 WHEN - - 52 * - 62 + + COUNT ( DISTINCT - - 15 ) * + AVG ( - 67 ) THEN NULL END + - 54 * 75 ) / - COALESCE ( - + 76, - AVG ( - 90 ) + - 39 + MIN ( + 3 ) + SUM ( ALL 65 ) + 42 * + - 96 * + + 68 - + 44 * - 77 + + + 23, + 16 * - 97 ) + + 10 + 72 + - 89 THEN - 18 WHEN + 36 THEN COUNT ( * ) + - 5 ELSE + 86 + - 54 END + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT - COALESCE ( + 78, COUNT( * ), ( + 47 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-6077
SELECT - COALESCE ( + 78, COUNT ( * ), ( + 47 ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT + 43 + 19 * 32 * + COUNT( * ) + - ( COUNT( * ) ) AS col0
----
650

skipif mysql # not compatible
query I rowsort label-6078
SELECT + 43 + 19 * 32 * + COUNT ( * ) + - ( COUNT ( * ) ) AS col0
----
650

query II rowsort
SELECT 68 AS col1, - 38
----
68
-38

query I rowsort
SELECT - 19 * 61
----
-1159

query II rowsort
SELECT ALL 16, + 7 AS col1
----
16
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL + CASE - 64 WHEN + MAX( - 27 ) * + 23 THEN 10 + COUNT( * ) + 88 * + - 36 ELSE NULL END * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL + CASE - 64 WHEN + MAX ( - 27 ) * + 23 THEN 10 + COUNT ( * ) + 88 * + - 36 ELSE NULL END * + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6084
SELECT + CAST( - + 99 AS SIGNED ) * 19
----
-1881

skipif mysql # not compatible
query I rowsort label-6084
SELECT + CAST ( - + 99 AS INTEGER ) * 19
----
-1881

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6085
SELECT ALL CAST( NULL AS SIGNED ) / + 55 + + + 38 AS col2, - 82 * + - 12
----
NULL
984

skipif mysql # not compatible
query II rowsort label-6085
SELECT ALL CAST ( NULL AS INTEGER ) / + 55 + + + 38 AS col2, - 82 * + - 12
----
NULL
984

onlyif mysql # DIV for integer division: 
query II rowsort label-6086
SELECT DISTINCT 93 DIV 32 + + 16 AS col1, 51
----
18
51

skipif mysql # not compatible
query II rowsort label-6086
SELECT DISTINCT 93 / 32 + + 16 AS col1, 51
----
18
51

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

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

query II rowsort
SELECT + 30, - ( + 9 ) AS col2
----
30
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6089
SELECT ALL + 50 AS col0, CAST( NULL AS SIGNED ) AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-6089
SELECT ALL + 50 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
50
NULL

query I rowsort
SELECT ALL COALESCE ( + 89, - ( + - 88 ) + - 52 + - + 9 + + + 80 ) * - - 50 AS col0
----
4450

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

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

query I rowsort
SELECT - 53 * + 84 col0
----
-4452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6093
SELECT CAST( + - 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-6093
SELECT CAST ( + - 18 AS INTEGER )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT 25 * COUNT( ALL + 50 ) - 96 * + 70
----
-6695

skipif mysql # not compatible
query I rowsort label-6094
SELECT 25 * COUNT ( ALL + 50 ) - 96 * + 70
----
-6695

query II rowsort
SELECT 5, - 82 + + + 22 col2
----
5
-60

query I rowsort
SELECT + + ( + - 13 ) * - 85 AS col1
----
1105

query I rowsort
SELECT ALL - 87 * - 88 AS col1
----
7656

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT DISTINCT 77 * COUNT( ALL + 21 ) - - ( 49 ) AS col1
----
126

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT 77 * COUNT ( ALL + 21 ) - - ( 49 ) AS col1
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-6099
SELECT DISTINCT + COALESCE ( + 9, - - 68 ) AS col1, + ( + 40 ) + ( + + 91 ) + + 90 - + 3 - + 11 * 88 + - MAX( ALL + 94 )
----
9
-844

skipif mysql # not compatible
query II rowsort label-6099
SELECT DISTINCT + COALESCE ( + 9, - - 68 ) AS col1, + ( + 40 ) + ( + + 91 ) + + 90 - + 3 - + 11 * 88 + - MAX ( ALL + 94 )
----
9
-844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6100
SELECT DISTINCT - - 17 * + 54 - - COUNT( * ) - - 4 + 90 * + COUNT( * ) / 54 * + COUNT( 15 ) * CAST( NULL AS SIGNED ) * 4 * + 56 / + ( + 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT - - 17 * + 54 - - COUNT ( * ) - - 4 + 90 * + COUNT ( * ) / 54 * + COUNT ( 15 ) * CAST ( NULL AS INTEGER ) * 4 * + 56 / + ( + 38 )
----
NULL

query II rowsort
SELECT ALL + + NULLIF ( 45, - + 8 * 21 / 41 * + + 59 ) col2, - 7
----
45
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT - MIN( DISTINCT - 48 ) + - - 4 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6103
SELECT - MIN ( DISTINCT - 48 ) + - - 4 AS col0
----
52

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

skipif mysql # not compatible
query I rowsort label-6104
SELECT - MAX ( DISTINCT 80 )
----
-80

query I rowsort
SELECT ALL + + 51 * + + 92 AS col1
----
4692

query I rowsort
SELECT + 14 * 14 * - - CASE - - 76 WHEN + 90 THEN - - 80 * - 88 * - 47 * - - 77 END col2
----
NULL

query II rowsort
SELECT ALL 52, 52
----
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT DISTINCT MAX( + 95 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-6108
SELECT DISTINCT MAX ( + 95 ) col2
----
95

query I rowsort
SELECT ALL + + 59 * - 68 * + - 97 * - 94 col1
----
-36581416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6110
SELECT - 50 * - NULLIF ( - 3, + - COUNT( * ) * 63 - - 36 + + + 69 ) * - + MAX( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6110
SELECT - 50 * - NULLIF ( - 3, + - COUNT ( * ) * 63 - - 36 + + + 69 ) * - + MAX ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6112
SELECT DISTINCT + - 9 * + + 35 + 7 * - + 43 + + 47 DIV + 89
----
-616

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT + - 9 * + + 35 + 7 * - + 43 + + 47 / + 89
----
-616

query I rowsort
SELECT ALL + NULLIF ( + + 78, + 39 + - 71 ) AS col1
----
78

query II rowsort
SELECT 48 + + 76 AS col1, 52 AS col1
----
124
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT MAX( DISTINCT - - 51 ) - + + 33 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6115
SELECT MAX ( DISTINCT - - 51 ) - + + 33 AS col1
----
18

query I rowsort
SELECT ALL 49 + - 84 + + - 32 AS col0
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-6117
SELECT ALL 8 DIV + 57 * 47
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL 8 / + 57 * 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT DISTINCT + 36 + - 1 * - 27 DIV + + 32 * + 23 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT + 36 + - 1 * - 27 / + + 32 * + 23 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6119
SELECT ALL COUNT( * ) + + 4 + + 62 * COUNT( * ) * CAST( AVG ( DISTINCT + 51 ) AS SIGNED ) + - MAX( 79 )
----
3088

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL COUNT ( * ) + + 4 + + 62 * COUNT ( * ) * CAST ( AVG ( DISTINCT + 51 ) AS INTEGER ) + - MAX ( 79 )
----
3088

query I rowsort
SELECT ALL + 18 + - 14 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT ALL - 64 DIV - 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL - 64 / - 37 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT 99 DIV + ( + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-6122
SELECT 99 / + ( + 87 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6123
SELECT DISTINCT 7 * - 22, + COUNT( * ) DIV + 8 AS col0
----
-154
0

skipif mysql # not compatible
query II rowsort label-6123
SELECT DISTINCT 7 * - 22, + COUNT ( * ) / + 8 AS col0
----
-154
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL COUNT( ALL - - 42 ) + - + 77 * + 74 + - - ( 24 )
----
-5673

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL COUNT ( ALL - - 42 ) + - + 77 * + 74 + - - ( 24 )
----
-5673

query I rowsort
SELECT 80 + - - 97 * - 73 * + + 35 + - 95 AS col1
----
-247850

query I rowsort
SELECT 18 * 72 AS col2
----
1296

onlyif mysql # DIV for integer division: 
query II rowsort label-6127
SELECT 25 DIV + 34 AS col1, 12
----
0
12

skipif mysql # not compatible
query II rowsort label-6127
SELECT 25 / + 34 AS col1, 12
----
0
12

query I rowsort
SELECT ALL ( + - ( - 63 ) ) + 31
----
94

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT ALL 66 - - + 78 DIV + 50 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL 66 - - + 78 / + 50 AS col1
----
67

query II rowsort
SELECT 26 + + COALESCE ( - 70, NULLIF ( 19, + - 54 * 48 + - 3 + 25 ) ) AS col0, 75
----
-44
75

query I rowsort
SELECT ALL - - 91 - - - 57 * + 85
----
-4754

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL - COALESCE ( - 5, + COUNT( * ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL - COALESCE ( - 5, + COUNT ( * ) ) AS col1
----
5

query I rowsort
SELECT + 90 * - - 12 * - 88
----
-95040

onlyif mysql # DIV for integer division: 
query I rowsort label-6135
SELECT ALL 29 * - ( + 49 ) * + 84 * + 62 + - + 9 DIV 87
----
-7400568

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL 29 * - ( + 49 ) * + 84 * + 62 + - + 9 / 87
----
-7400568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6136
SELECT - SUM( - 35 ) DIV - - 13 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6136
SELECT - SUM ( - 35 ) / - - 13 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT 26 * + 40 * - 92 - + - MAX( - 77 ) col1
----
-95757

skipif mysql # not compatible
query I rowsort label-6137
SELECT 26 * + 40 * - 92 - + - MAX ( - 77 ) col1
----
-95757

query I rowsort
SELECT ALL 95 * - 83 AS col2
----
-7885

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT 93 + - + 44 + + NULLIF ( ( 85 ), + COUNT( * ) ) + 98 * 1 * + + COUNT( * )
----
232

skipif mysql # not compatible
query I rowsort label-6141
SELECT 93 + - + 44 + + NULLIF ( ( 85 ), + COUNT ( * ) ) + 98 * 1 * + + COUNT ( * )
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT COUNT( * ) * 85 * - CASE - 91 WHEN + + ( - + 52 ) + - 66 THEN - - 80 * - ( - AVG ( ALL + + 58 ) ) - + 59 / - + 31 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6142
SELECT COUNT ( * ) * 85 * - CASE - 91 WHEN + + ( - + 52 ) + - 66 THEN - - 80 * - ( - AVG ( ALL + + 58 ) ) - + 59 / - + 31 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 77 * + + 15 * + - 52 col2
----
-60060

query I rowsort
SELECT DISTINCT 37 + - 51 * - - 35
----
-1748

query I rowsort
SELECT 90 + + 3
----
93

query I rowsort
SELECT ALL - 86 + 11 * 12 * - 34 AS col2
----
-4574

query I rowsort
SELECT ALL + 32 + 66 col0
----
98

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

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

query I rowsort
SELECT 80 * - - 70
----
5600

onlyif mysql # DIV for integer division: 
query I rowsort label-6150
SELECT 15 + + 49 DIV - 56 * + 37 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6150
SELECT 15 + + 49 / - 56 * + 37 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT COUNT( * ) + 41
----
42

skipif mysql # not compatible
query I rowsort label-6151
SELECT COUNT ( * ) + 41
----
42

query I rowsort
SELECT 34 + 45
----
79

query I rowsort
SELECT 5 * + 36 AS col0
----
180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT ALL + 88 - NULLIF ( - ( + 83 ), - 92 ) * COUNT( * )
----
171

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL + 88 - NULLIF ( - ( + 83 ), - 92 ) * COUNT ( * )
----
171

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6157
SELECT ALL - 24 DIV - - NULLIF ( - - 97, - ( 43 ) + - 95 ) AS col0, 71 * + 15
----
0
1065

skipif mysql # not compatible
query II rowsort label-6157
SELECT ALL - 24 / - - NULLIF ( - - 97, - ( 43 ) + - 95 ) AS col0, 71 * + 15
----
0
1065

query I rowsort
SELECT ALL - 48 * + + 58
----
-2784

query I rowsort
SELECT - 3 * 1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT MIN( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-6160
SELECT MIN ( 33 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6161
SELECT + CAST( NULL AS SIGNED ) * - + 13 / COALESCE ( - 41, - COUNT( 65 ) ) AS col1, 47
----
NULL
47

skipif mysql # not compatible
query II rowsort label-6161
SELECT + CAST ( NULL AS INTEGER ) * - + 13 / COALESCE ( - 41, - COUNT ( 65 ) ) AS col1, 47
----
NULL
47

query I rowsort
SELECT DISTINCT - + 95
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6163
SELECT ALL 0 * + + 81 * + CAST( - 2 AS SIGNED ) + + 60, - 55 AS col1
----
60
-55

skipif mysql # not compatible
query II rowsort label-6163
SELECT ALL 0 * + + 81 * + CAST ( - 2 AS INTEGER ) + + 60, - 55 AS col1
----
60
-55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT - + 94 * - ( - 31 ) - + 54 + - - CAST( NULL AS SIGNED ) * - - 51 * + + 22 * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT - + 94 * - ( - 31 ) - + 54 + - - CAST ( NULL AS INTEGER ) * - - 51 * + + 22 * 28
----
NULL

query I rowsort
SELECT ALL - 44 * - - 9 / CASE - 23 WHEN + 45 THEN + - 57 WHEN - + 48 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6167
SELECT + COUNT( * ) AS col2, 66 * - - 14 + - + 59 col1
----
1
865

skipif mysql # not compatible
query II rowsort label-6167
SELECT + COUNT ( * ) AS col2, 66 * - - 14 + - + 59 col1
----
1
865

query I rowsort
SELECT + ( + NULLIF ( + 73, - 94 ) ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT + - 83 * COUNT( * ) - - 41 + + 99 + - - ( + 79 ) + + - 6 * 45 * - - 82
----
-22004

skipif mysql # not compatible
query I rowsort label-6169
SELECT + - 83 * COUNT ( * ) - - 41 + + 99 + - - ( + 79 ) + + - 6 * 45 * - - 82
----
-22004

query I rowsort
SELECT ALL + CASE - 73 WHEN 45 THEN - 6 WHEN ( 12 ) THEN NULL ELSE + 21 * - - 82 END * 80
----
137760

query I rowsort
SELECT ALL - 8 * - - 94 + - + 11 * - 34 + - + 23 AS col0
----
-401

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + CASE + - 25 WHEN - + 72 THEN 93 * 81 WHEN 72 * - 85 * + MAX( ALL - 51 ) THEN - 69 ELSE NULL END + 41 * 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT + CASE + - 25 WHEN - + 72 THEN 93 * 81 WHEN 72 * - 85 * + MAX ( ALL - 51 ) THEN - 69 ELSE NULL END + 41 * 65 AS col1
----
NULL

query I rowsort
SELECT + 60 * 86 * + 21
----
108360

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT ALL NULLIF ( 22, COUNT( * ) ) * - 3 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL NULLIF ( 22, COUNT ( * ) ) * - 3 AS col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6176
SELECT - - COUNT( * ) DIV - COUNT( ALL - + 57 ) AS col0, 65 * + NULLIF ( 69, 13 ) + + - 25 AS col0
----
-1
4460

skipif mysql # not compatible
query II rowsort label-6176
SELECT - - COUNT ( * ) / - COUNT ( ALL - + 57 ) AS col0, 65 * + NULLIF ( 69, 13 ) + + - 25 AS col0
----
-1
4460

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT + CASE 11 WHEN - 28 THEN + ( + 56 ) * - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT + CASE 11 WHEN - 28 THEN + ( + 56 ) * - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL COUNT( * ) + - MIN( ALL - + 58 ) + + - 7 * + 99 - COUNT( * ) AS col2
----
-635

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL COUNT ( * ) + - MIN ( ALL - + 58 ) + + - 7 * + 99 - COUNT ( * ) AS col2
----
-635

query I rowsort
SELECT DISTINCT 38 + - + 67
----
-29

query I rowsort
SELECT ALL 96 * + 16 * + - 88
----
-135168

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

query I rowsort
SELECT + 67 + - 68 AS col2
----
-1

query I rowsort
SELECT ALL 73 + + 69
----
142

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6185
SELECT DISTINCT - MIN( + + 6 ) - + + 46 * + + 39 * - 36 - + 16 + + 87 + - + 47 * - 6 col0, - COUNT( * ) AS col2
----
64931
-1

skipif mysql # not compatible
query II rowsort label-6185
SELECT DISTINCT - MIN ( + + 6 ) - + + 46 * + + 39 * - 36 - + 16 + + 87 + - + 47 * - 6 col0, - COUNT ( * ) AS col2
----
64931
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT ALL + 1 DIV 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL + 1 / 88 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT - 1 * - SUM( DISTINCT - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-6187
SELECT - 1 * - SUM ( DISTINCT - 57 ) AS col2
----
-57

query I rowsort
SELECT ALL - 28 * - ( - ( + 4 ) ) AS col1
----
-112

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

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

query I rowsort
SELECT DISTINCT + 56 - 36 col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6191
SELECT DISTINCT SUM( - 14 ), - 6 * - COUNT( * ) DIV + - ( - + COUNT( * ) ) AS col1
----
-14
6

skipif mysql # not compatible
query II rowsort label-6191
SELECT DISTINCT SUM ( - 14 ), - 6 * - COUNT ( * ) / + - ( - + COUNT ( * ) ) AS col1
----
-14
6

query I rowsort
SELECT ALL - NULLIF ( + 8, 54 * 5 + - - 93 ) * - 11 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT - 31 + COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-6193
SELECT - 31 + COUNT ( * ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT - 1 - - MAX( DISTINCT 96 ) col0
----
95

skipif mysql # not compatible
query I rowsort label-6194
SELECT - 1 - - MAX ( DISTINCT 96 ) col0
----
95

query II rowsort
SELECT - 45 + + 59 AS col0, 55 - + 73
----
14
-18

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT - - 36 + + CAST( - 62 AS SIGNED ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-6197
SELECT - - 36 + + CAST ( - 62 AS INTEGER ) col1
----
-26

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

skipif mysql # not compatible
query I rowsort label-6198
SELECT - 72 / + - ( ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6199
SELECT ALL + - 44 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + - 44 / - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT - + 33 * MIN( ALL 32 ) + 52
----
-1004

skipif mysql # not compatible
query I rowsort label-6200
SELECT - + 33 * MIN ( ALL 32 ) + 52
----
-1004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6201
SELECT ALL + + 50 AS col0, ( - + 41 ) + 28 + COUNT( ALL CAST( + - 54 AS SIGNED ) ) AS col1, + 92 * - 58
----
50
-12
-5336

skipif mysql # not compatible
query III rowsort label-6201
SELECT ALL + + 50 AS col0, ( - + 41 ) + 28 + COUNT ( ALL CAST ( + - 54 AS INTEGER ) ) AS col1, + 92 * - 58
----
50
-12
-5336

onlyif mysql # aggregate syntax: 
query III rowsort label-6202
SELECT ALL + 25 col1, 29 * + 76 + - 44 AS col0, COUNT( * ) AS col0
----
25
2160
1

skipif mysql # not compatible
query III rowsort label-6202
SELECT ALL + 25 col1, 29 * + 76 + - 44 AS col0, COUNT ( * ) AS col0
----
25
2160
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6203
SELECT 87 DIV + 49 + - 73 * 15 * + 3 + - + ( + 27 ) * 93 DIV MIN( DISTINCT + 24 ) AS col1
----
-3388

skipif mysql # not compatible
query I rowsort label-6203
SELECT 87 / + 49 + - 73 * 15 * + 3 + - + ( + 27 ) * 93 / MIN ( DISTINCT + 24 ) AS col1
----
-3388

query I rowsort
SELECT ALL + - ( + 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT DISTINCT + SUM( ALL + NULLIF ( + - 2, - 6 + 94 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT + SUM ( ALL + NULLIF ( + - 2, - 6 + 94 ) )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6206
SELECT ALL 53 DIV - - 28 + - - 92 + + 37 + 49
----
179

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL 53 / - - 28 + - - 92 + + 37 + 49
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT + - 37 * - - 12 * - COUNT( DISTINCT + COALESCE ( - 56, + 54, + 31 ) )
----
444

skipif mysql # not compatible
query I rowsort label-6207
SELECT + - 37 * - - 12 * - COUNT ( DISTINCT + COALESCE ( - 56, + 54, + 31 ) )
----
444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6208
SELECT ALL MIN( 12 ) * + 60 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL MIN ( 12 ) * + 60 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + 71 AS col1, + 11 AS col1
----
71
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6210
SELECT + COUNT( * ) + 97 AS col0, 35
----
98
35

skipif mysql # not compatible
query II rowsort label-6210
SELECT + COUNT ( * ) + 97 AS col0, 35
----
98
35

query I rowsort
SELECT ALL - + 40 * + 45 * + 27
----
-48600

query II rowsort
SELECT + + 22 AS col0, + 24 * 50 col0
----
22
1200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6213
SELECT - 74 DIV + 80 - - 84 + + + ( + COUNT( * ) ) col2
----
85

skipif mysql # not compatible
query I rowsort label-6213
SELECT - 74 / + 80 - - 84 + + + ( + COUNT ( * ) ) col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL 52 * + - 11 + - MAX( ALL 90 )
----
-662

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL 52 * + - 11 + - MAX ( ALL 90 )
----
-662

onlyif mysql # DIV for integer division: 
query II rowsort label-6215
SELECT + 71 col2, 79 DIV + 64 AS col1
----
71
1

skipif mysql # not compatible
query II rowsort label-6215
SELECT + 71 col2, 79 / + 64 AS col1
----
71
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6216
SELECT - MAX( ALL - 8 ) DIV - - 56 + + - COUNT( * ) + + + 18 col2
----
17

skipif mysql # not compatible
query I rowsort label-6216
SELECT - MAX ( ALL - 8 ) / - - 56 + + - COUNT ( * ) + + + 18 col2
----
17

query II rowsort
SELECT - 5, 14 * - 38 + + 78 AS col1
----
-5
-454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6218
SELECT ALL SUM( ALL - + CAST( NULL AS SIGNED ) ) * + 33 * - 1 + - COUNT( * ) + - + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL SUM ( ALL - + CAST ( NULL AS INTEGER ) ) * + 33 * - 1 + - COUNT ( * ) + - + 53 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6219
SELECT DISTINCT - 77 * + COALESCE ( + + ( + CASE - + COALESCE ( - 70, - 60, + MAX( + 5 ) * - CASE + CASE + - COUNT( ALL + - 98 ) WHEN 25 - 51 THEN NULL ELSE - COUNT( * ) END WHEN - CASE NULLIF ( MAX( ALL - 72 ), + 46 * - CAST( NULL AS SIGNED ) ) WHEN - - 53 THEN + 14 + - NULLIF ( - - 26, + ( + 36 ) ) * - COALESCE ( - 41, - 87 ) * + ( + - 42 ) + - CAST( NULL AS SIGNED ) END THEN + 0 ELSE NULL END ) WHEN + - 12 THEN 65 * + 14 + + COUNT( * ) + 2 ELSE - 21 END ), - 97 * + 11 ) AS col2
----
1617

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT - 77 * + COALESCE ( + + ( + CASE - + COALESCE ( - 70, - 60, + MAX ( + 5 ) * - CASE + CASE + - COUNT ( ALL + - 98 ) WHEN 25 - 51 THEN NULL ELSE - COUNT ( * ) END WHEN - CASE NULLIF ( MAX ( ALL - 72 ), + 46 * - CAST ( NULL AS INTEGER ) ) WHEN - - 53 THEN + 14 + - NULLIF ( - - 26, + ( + 36 ) ) * - COALESCE ( - 41, - 87 ) * + ( + - 42 ) + - CAST ( NULL AS INTEGER ) END THEN + 0 ELSE NULL END ) WHEN + - 12 THEN 65 * + 14 + + COUNT ( * ) + 2 ELSE - 21 END ), - 97 * + 11 ) AS col2
----
1617

query I rowsort
SELECT ALL 3 * + + 72 + + 18 + 14 - + + 31 AS col2
----
217

query II rowsort
SELECT - 72 + 16 + - 93 * ( + 94 ), - ( - 28 ) AS col1
----
-8798
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6222
SELECT - NULLIF ( + 96, + 24 * + + 63 ) * 47 DIV - + 91 + 8 + + + 31 + - - 49 * + - COUNT( * ), - COUNT( * ) * 5 AS col0
----
39
-5

skipif mysql # not compatible
query II rowsort label-6222
SELECT - NULLIF ( + 96, + 24 * + + 63 ) * 47 / - + 91 + 8 + + + 31 + - - 49 * + - COUNT ( * ), - COUNT ( * ) * 5 AS col0
----
39
-5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT - CASE + 69 WHEN - 80 THEN NULL WHEN - + 40 / - - 30 / + COUNT( * ) THEN 67 WHEN - + ( + 23 ) THEN NULL WHEN - 91 * + + 68 * 48 + + + 87 + - COUNT( * ) * - - 56 * + 40 * - 1 THEN 25 * - 35 + 43 + + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT - CASE + 69 WHEN - 80 THEN NULL WHEN - + 40 / - - 30 / + COUNT ( * ) THEN 67 WHEN - + ( + 23 ) THEN NULL WHEN - 91 * + + 68 * 48 + + + 87 + - COUNT ( * ) * - - 56 * + 40 * - 1 THEN 25 * - 35 + 43 + + 36 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6226
SELECT - ( - COUNT( * ) ) AS col1, + 10 + - 81
----
1
-71

skipif mysql # not compatible
query II rowsort label-6226
SELECT - ( - COUNT ( * ) ) AS col1, + 10 + - 81
----
1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT DISTINCT COUNT( * ) * - - 8 - + 39
----
-31

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT COUNT ( * ) * - - 8 - + 39
----
-31

query I rowsort
SELECT ALL COALESCE ( + + 8, 90 ) * + + 78 + + 42 AS col1
----
666

query I rowsort
SELECT + 19 + - - NULLIF ( 64, + 35 ) AS col0
----
83

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6231
SELECT DISTINCT COUNT( * ) * 39, 46 AS col2
----
39
46

skipif mysql # not compatible
query II rowsort label-6231
SELECT DISTINCT COUNT ( * ) * 39, 46 AS col2
----
39
46

query I rowsort
SELECT DISTINCT COALESCE ( + 32, - + 37 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6233
SELECT + 71 * CAST( + + 75 AS SIGNED )
----
5325

skipif mysql # not compatible
query I rowsort label-6233
SELECT + 71 * CAST ( + + 75 AS INTEGER )
----
5325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6234
SELECT + 41 + CAST( - 69 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-6234
SELECT + 41 + CAST ( - 69 AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-6235
SELECT DISTINCT COUNT( - + 95 ) AS col0, 81
----
1
81

skipif mysql # not compatible
query II rowsort label-6235
SELECT DISTINCT COUNT ( - + 95 ) AS col0, 81
----
1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6236
SELECT + COUNT( * ) * - - ( 82 ) + 6 - CAST( 30 AS SIGNED ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-6236
SELECT + COUNT ( * ) * - - ( 82 ) + 6 - CAST ( 30 AS INTEGER ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT DISTINCT + - 42 * - COUNT( * ) * + 41 AS col0
----
1722

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT + - 42 * - COUNT ( * ) * + 41 AS col0
----
1722

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6238
SELECT ALL - CAST( - - COUNT( ALL + + 52 ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL - CAST ( - - COUNT ( ALL + + 52 ) AS INTEGER ) AS col1
----
-1

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

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

query I rowsort
SELECT ALL + 5 * + + 81 * 89
----
36045

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT DISTINCT - SUM( - ( 23 ) ) * COUNT( * ) * - - 87 col2
----
2001

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT - SUM ( - ( 23 ) ) * COUNT ( * ) * - - 87 col2
----
2001

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL - + 13 + - + COUNT( - 20 )
----
-14

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - + 13 + - + COUNT ( - 20 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT + 14 * - + CASE - 37 WHEN + 4 THEN - 15 - COUNT( * ) * - - 83 * + COUNT( * ) WHEN + 10 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6243
SELECT + 14 * - + CASE - 37 WHEN + 4 THEN - 15 - COUNT ( * ) * - - 83 * + COUNT ( * ) WHEN + 10 THEN NULL ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL + COUNT ( * ) * + 39 / - + 96
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6245
SELECT ALL - COUNT( ALL - 70 ) AS col1, 42 + - - 95 col1
----
-1
137

skipif mysql # not compatible
query II rowsort label-6245
SELECT ALL - COUNT ( ALL - 70 ) AS col1, 42 + - - 95 col1
----
-1
137

query II rowsort
SELECT - ( + + 3 ) AS col0, 18
----
-3
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6247
SELECT + COUNT( * ) DIV 77, COUNT( * ) + + + 83 * + 70 AS col1
----
0
5811

skipif mysql # not compatible
query II rowsort label-6247
SELECT + COUNT ( * ) / 77, COUNT ( * ) + + + 83 * + 70 AS col1
----
0
5811

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT ALL + 95 + + + 90 + - 0 DIV - 15
----
185

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL + 95 + + + 90 + - 0 / - 15
----
185

query I rowsort
SELECT + + 56 * + - 3 - 68 - 86 AS col2
----
-322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6250
SELECT ALL - 20 + + MAX( + + 81 ), ( - CAST( + 6 AS SIGNED ) ) AS col1
----
61
-6

skipif mysql # not compatible
query II rowsort label-6250
SELECT ALL - 20 + + MAX ( + + 81 ), ( - CAST ( + 6 AS INTEGER ) ) AS col1
----
61
-6

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

skipif mysql # not compatible
query I rowsort label-6251
SELECT 29 - + COUNT ( * ) + + 18 AS col1
----
46

query I rowsort
SELECT ALL ( - 95 ) * - 19 AS col0
----
1805

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6253
SELECT DISTINCT + COUNT( * ) DIV - 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT DISTINCT + COUNT ( * ) / - 89 AS col0
----
0

query I rowsort
SELECT ALL - 73 - + 35
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT COUNT( * ) * 3 + + 75 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6255
SELECT COUNT ( * ) * 3 + + 75 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6256
SELECT 83 + - CAST( 10 AS SIGNED ) + + 62 + - + ( COUNT( * ) ), 19 DIV + 53 * - 88 AS col2
----
134
0

skipif mysql # not compatible
query II rowsort label-6256
SELECT 83 + - CAST ( 10 AS INTEGER ) + + 62 + - + ( COUNT ( * ) ), 19 / + 53 * - 88 AS col2
----
134
0

query I rowsort
SELECT - 61 * + + 32 - - 13 AS col1
----
-1939

query I rowsort
SELECT ALL - 1 * - - 81 col1
----
-81

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6260
SELECT + 55 * 85 + - - 63 col1, 42 * + COUNT( * ) * COUNT( * )
----
4738
42

skipif mysql # not compatible
query II rowsort label-6260
SELECT + 55 * 85 + - - 63 col1, 42 * + COUNT ( * ) * COUNT ( * )
----
4738
42

query II rowsort
SELECT 31 AS col0, 28
----
31
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6262
SELECT DISTINCT + 56 - - SUM( - + COALESCE ( - CAST( NULL AS SIGNED ), ( + 33 ) ) ) + CAST( NULL AS DECIMAL ) * MIN( + + 23 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT + 56 - - SUM ( - + COALESCE ( - CAST ( NULL AS INTEGER ), ( + 33 ) ) ) + CAST ( NULL AS REAL ) * MIN ( + + 23 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6263
SELECT ALL - 82 AS col1, 71 + 6 DIV 45 AS col1
----
-82
71

skipif mysql # not compatible
query II rowsort label-6263
SELECT ALL - 82 AS col1, 71 + 6 / 45 AS col1
----
-82
71

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

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

query I rowsort
SELECT ALL + NULLIF ( - + 96, - 11 + + 14 ) * 67
----
-6432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6266
SELECT DISTINCT 17 AS col2, CAST( NULL AS SIGNED ) * - COUNT( * )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-6266
SELECT DISTINCT 17 AS col2, CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
17
NULL

query I rowsort
SELECT 27 + - 31 AS col0
----
-4

query II rowsort
SELECT ALL 74 AS col0, - 6 + + 95
----
74
89

query II rowsort
SELECT DISTINCT 26 col2, + 34 * + ( + 92 )
----
26
3128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6270
SELECT COUNT( * ) * + ( 95 ) * - CASE CASE + 71 WHEN - - 96 * - COALESCE ( - 82, ( - 73 ) + 39 ) THEN NULL ELSE + 62 END WHEN + - 43 THEN 39 + - 96 + + - 80 / 95 WHEN + COUNT( * ) / NULLIF ( + 37, - ( + 36 ) ) + - CAST( NULL AS SIGNED ) + - - 25 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT COUNT ( * ) * + ( 95 ) * - CASE CASE + 71 WHEN - - 96 * - COALESCE ( - 82, ( - 73 ) + 39 ) THEN NULL ELSE + 62 END WHEN + - 43 THEN 39 + - 96 + + - 80 / 95 WHEN + COUNT ( * ) / NULLIF ( + 37, - ( + 36 ) ) + - CAST ( NULL AS INTEGER ) + - - 25 THEN NULL END AS col0
----
NULL

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

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

query I rowsort
SELECT 70 * - + 87
----
-6090

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL 23 * + + SUM( 42 ) AS col2
----
966

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL 23 * + + SUM ( 42 ) AS col2
----
966

query I rowsort
SELECT DISTINCT + 98 + + ( - COALESCE ( 45, - 39, - 68, - 86 * COALESCE ( + 16, + 80 ) ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT ALL + COUNT( * ) + - 34 + - 25 * - 35 * 2 * 55
----
96217

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL + COUNT ( * ) + - 34 + - 25 * - 35 * 2 * 55
----
96217

query I rowsort
SELECT DISTINCT - 18 + ( + - 42 ) col2
----
-60

query I rowsort
SELECT + 16 + ( - 28 ) * + 79 col1
----
-2196

onlyif mysql # aggregate syntax: 
query II rowsort label-6278
SELECT ( + COUNT( ALL + 33 ) ) + - 24 AS col2, + 99
----
-23
99

skipif mysql # not compatible
query II rowsort label-6278
SELECT ( + COUNT ( ALL + 33 ) ) + - 24 AS col2, + 99
----
-23
99

query I rowsort
SELECT + ( + + 75 ) - - 41 + + 90 AS col0
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT ALL 68 + + 98 * + COUNT( * ) * + - 81 AS col0
----
-7870

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL 68 + + 98 * + COUNT ( * ) * + - 81 AS col0
----
-7870

query I rowsort
SELECT ALL NULLIF ( + 60, - + 96 + 40 )
----
60

query I rowsort
SELECT 75 + + + 50 AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT COUNT( * ) * - 75 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-6283
SELECT COUNT ( * ) * - 75 AS col0
----
-75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6285
SELECT ALL 85 * - + CAST( - 29 AS SIGNED ) * + ( + 35 ) + + - MAX( DISTINCT + 37 ) * 30 DIV - + 52 + - + 38 + + 6 + 31 - - 16 + - + COUNT( * ) * + + 1 DIV + 58
----
86311

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL 85 * - + CAST ( - 29 AS INTEGER ) * + ( + 35 ) + + - MAX ( DISTINCT + 37 ) * 30 / - + 52 + - + 38 + + 6 + 31 - - 16 + - + COUNT ( * ) * + + 1 / + 58
----
86311

query I rowsort
SELECT - 65 + 98 AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT ALL 35 DIV NULLIF ( - 76, + - 83 * 66 * + - 58 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL 35 / NULLIF ( - 76, + - 83 * 66 * + - 58 ) AS col1
----
0

query I rowsort
SELECT ALL + + 73 * + - 64 AS col0
----
-4672

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - ( - 41 ) + + 21 + + MAX( DISTINCT 75 ) * - 50 * 57 * 14 AS col2
----
-2992438

skipif mysql # not compatible
query I rowsort label-6289
SELECT - ( - 41 ) + + 21 + + MAX ( DISTINCT 75 ) * - 50 * 57 * 14 AS col2
----
-2992438

query I rowsort
SELECT ( - - 13 ) * + + ( - + 80 ) * ( + 26 ) + + 63 AS col2
----
-26977

query I rowsort
SELECT 9 * + + 49
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT 18 + + COUNT( * ) col2
----
19

skipif mysql # not compatible
query I rowsort label-6292
SELECT 18 + + COUNT ( * ) col2
----
19

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

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

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

query I rowsort
SELECT - 94 * + 36 + - - 2 * 91 * 7 + - 98
----
-2208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6296
SELECT 99 * - CAST( - 35 AS SIGNED )
----
3465

skipif mysql # not compatible
query I rowsort label-6296
SELECT 99 * - CAST ( - 35 AS INTEGER )
----
3465

query I rowsort
SELECT 34 * - 49 AS col1
----
-1666

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT ALL - SUM( + 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL - SUM ( + 17 ) AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT ALL - 79 DIV - + 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL - 79 / - + 48 AS col2
----
1

query I rowsort
SELECT 14 * - - 44 AS col2
----
616

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

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

query I rowsort
SELECT - 36 * - 47
----
1692

query I rowsort
SELECT + NULLIF ( 35, - - 99 ) + + 32 AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6306
SELECT DISTINCT + CASE + + COUNT( * ) WHEN - + 64 * 29 * - + MAX( + ( 96 ) ) * + - ( - - 70 ) + - - 19 THEN NULLIF ( - 38, + 88 * + MIN( ALL + - 37 ) ) * - + 17 + + NULLIF ( COUNT( * ), - 83 ) ELSE 95 END + - - ( - COUNT( * ) ) - ( - + 85 ) AS col1, - ( - 62 ) * + CAST( NULL AS DECIMAL ) AS col1
----
179
NULL

skipif mysql # not compatible
query II rowsort label-6306
SELECT DISTINCT + CASE + + COUNT ( * ) WHEN - + 64 * 29 * - + MAX ( + ( 96 ) ) * + - ( - - 70 ) + - - 19 THEN NULLIF ( - 38, + 88 * + MIN ( ALL + - 37 ) ) * - + 17 + + NULLIF ( COUNT ( * ), - 83 ) ELSE 95 END + - - ( - COUNT ( * ) ) - ( - + 85 ) AS col1, - ( - 62 ) * + CAST ( NULL AS REAL ) AS col1
----
179
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6307
SELECT + 18 DIV - 18 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6307
SELECT + 18 / - 18 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL - 34 + + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL - 34 + + + COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6309
SELECT ALL + 80 + + 63 + 50 - - NULLIF ( 16, - + COALESCE ( - - COUNT( * ), + 52 ) ) - 86 AS col1, ( - 23 ) - 3 * + 74
----
123
-245

skipif mysql # not compatible
query II rowsort label-6309
SELECT ALL + 80 + + 63 + 50 - - NULLIF ( 16, - + COALESCE ( - - COUNT ( * ), + 52 ) ) - 86 AS col1, ( - 23 ) - 3 * + 74
----
123
-245

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT DISTINCT - - 71 + SUM( + - 90 )
----
-19

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT - - 71 + SUM ( + - 90 )
----
-19

query I rowsort
SELECT ALL - 69 + - 24
----
-93

query I rowsort
SELECT - - 30 + - + 83
----
-53

query I rowsort
SELECT ALL 66 + 80 AS col2
----
146

query I rowsort
SELECT - 36 * - 58
----
2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6316
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) - - - 34 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) - - - 34 AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6317
SELECT ALL - 84 DIV + - 77 + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL - 84 / + - 77 + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT + COALESCE ( 84, - MIN( DISTINCT ( + 49 ) ), 68 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6318
SELECT + COALESCE ( 84, - MIN ( DISTINCT ( + 49 ) ), 68 ) AS col1
----
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT DISTINCT 51 * + COUNT( * ) + 73 * - 86
----
-6227

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT 51 * + COUNT ( * ) + 73 * - 86
----
-6227

query I rowsort
SELECT + - COALESCE ( + 90, + 92 + + 95 ) * - 64 AS col2
----
5760

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT ALL 20 DIV - - 95 * - 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL 20 / - - 95 * - 39 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT + NULLIF ( - + 61, - 47 ) DIV 7 * - 88 + + 98 AS col1
----
802

skipif mysql # not compatible
query I rowsort label-6325
SELECT + NULLIF ( - + 61, - 47 ) / 7 * - 88 + + 98 AS col1
----
802

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6326
SELECT - 32 DIV MAX( ALL + - 8 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6326
SELECT - 32 / MAX ( ALL + - 8 ) AS col0
----
4

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

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

query I rowsort
SELECT ALL + CASE - + NULLIF ( + 64, + 58 ) WHEN + + 54 THEN + + AVG ( ALL - 78 ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 78 - + 83 - 78
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT ALL + COUNT( + 57 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL + COUNT ( + 57 ) AS col0
----
1

query I rowsort
SELECT + 72 * 53 AS col1
----
3816

query I rowsort
SELECT + 42 + + 51 AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6333
SELECT ALL - CAST( NULL AS SIGNED ) * - CAST( 51 AS SIGNED ) + COALESCE ( + COUNT( * ), - 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL - CAST ( NULL AS INTEGER ) * - CAST ( 51 AS INTEGER ) + COALESCE ( + COUNT ( * ), - 25 )
----
NULL

query I rowsort
SELECT + 36 * 34
----
1224

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6336
SELECT DISTINCT - NULLIF ( + 75, + - 2 * + SUM( ALL 99 ) ) * 93 * + - 68 + + ( - 28 ) + + 45 * + 65 + + SUM( + 89 ) AS col2, + 13
----
477286
13

skipif mysql # not compatible
query II rowsort label-6336
SELECT DISTINCT - NULLIF ( + 75, + - 2 * + SUM ( ALL 99 ) ) * 93 * + - 68 + + ( - 28 ) + + 45 * + 65 + + SUM ( + 89 ) AS col2, + 13
----
477286
13

query I rowsort
SELECT ALL - 26 * + 12 * 49 + 77 AS col0
----
-15211

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT COUNT( * ) * + - 10 + 87 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6339
SELECT COUNT ( * ) * + - 10 + 87 AS col0
----
77

query I rowsort
SELECT DISTINCT + 16 * + - 69 * - + 65 + + 26 + - 66 * - - 41 + + - 16 AS col1
----
69064

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6341
SELECT DISTINCT - 32 * + 86 * - CAST( NULL AS DECIMAL ) + - + 82 + - 13 AS col2, 3 AS col2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6341
SELECT DISTINCT - 32 * + 86 * - CAST ( NULL AS REAL ) + - + 82 + - 13 AS col2, 3 AS col2
----
NULL
3

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

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT 51 * + COUNT ( * ) + - 0 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT DISTINCT ( + ( + 28 ) ) * - MIN( ALL + 44 * + 55 ) + 23 AS col1
----
-67737

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT ( + ( + 28 ) ) * - MIN ( ALL + 44 * + 55 ) + 23 AS col1
----
-67737

query I rowsort
SELECT + 70 + 18 col2
----
88

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

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

query I rowsort
SELECT ALL CASE 96 WHEN + 51 * - 72 + - 50 THEN NULL ELSE + ( ( - 56 ) ) END
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT - NULLIF ( + ( 34 ), ( - 74 ) ) + 17 * - COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-6347
SELECT - NULLIF ( + ( 34 ), ( - 74 ) ) + 17 * - COUNT ( * ) AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT - CAST( 74 AS SIGNED ) * + 62
----
-4588

skipif mysql # not compatible
query I rowsort label-6348
SELECT - CAST ( 74 AS INTEGER ) * + 62
----
-4588

query I rowsort
SELECT - NULLIF ( 51, + 35 ) + - 15
----
-66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT ALL + 4 - + COUNT( * ) * - 71 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + 4 - + COUNT ( * ) * - 71 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL - COUNT( * ) * 55 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL - COUNT ( * ) * 55 AS col2
----
-55

query I rowsort
SELECT ALL NULLIF ( + 76, 98 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT - 16 - COUNT( DISTINCT - 60 + 95 )
----
-17

skipif mysql # not compatible
query I rowsort label-6354
SELECT - 16 - COUNT ( DISTINCT - 60 + 95 )
----
-17

query I rowsort
SELECT ALL + 13 * + 13
----
169

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

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

query I rowsort
SELECT ALL + 4 - - 29
----
33

query I rowsort
SELECT ALL - 41 * 30
----
-1230

query I rowsort
SELECT ALL 80 - + 5 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT + 62 - NULLIF ( COUNT( * ), 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 62 - NULLIF ( COUNT ( * ), 1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6361
SELECT DISTINCT CAST( 1 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT CAST ( 1 AS INTEGER ) AS col0
----
1

query I rowsort
SELECT - 32 + + 30 AS col2
----
-2

query I rowsort
SELECT + 38 - - ( - 90 )
----
-52

query I rowsort
SELECT DISTINCT 62 * + 76
----
4712

query I rowsort
SELECT DISTINCT 79 * - 85
----
-6715

query I rowsort
SELECT - 85 * - 54
----
4590

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

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

query I rowsort
SELECT DISTINCT - 97 * 42 AS col1
----
-4074

query I rowsort
SELECT + 48 + + 42 col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL COALESCE ( + 2, - 65 ) + + COUNT( * ) * - 5 col0
----
-3

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL COALESCE ( + 2, - 65 ) + + COUNT ( * ) * - 5 col0
----
-3

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

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

query I rowsort
SELECT + 42 * 84 + - ( 21 ) * - 48 AS col0
----
4536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6373
SELECT ( 29 ) DIV - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-6373
SELECT ( 29 ) / - COUNT ( * ) col0
----
-29

query I rowsort
SELECT DISTINCT ( 34 ) + - 15
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL 7 + 99 * - COALESCE ( SUM( + 45 ) * 23, + 31 ) AS col2
----
-102458

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL 7 + 99 * - COALESCE ( SUM ( + 45 ) * 23, + 31 ) AS col2
----
-102458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6376
SELECT COALESCE ( 58, COUNT( * ), - 8 + CASE + CAST( NULL AS SIGNED ) + + 93 WHEN + 69 THEN + MIN( 43 ) WHEN MIN( + 35 ) * + 17 THEN NULL ELSE NULL END ) * - 56
----
-3248

skipif mysql # not compatible
query I rowsort label-6376
SELECT COALESCE ( 58, COUNT ( * ), - 8 + CASE + CAST ( NULL AS INTEGER ) + + 93 WHEN + 69 THEN + MIN ( 43 ) WHEN MIN ( + 35 ) * + 17 THEN NULL ELSE NULL END ) * - 56
----
-3248

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

query I rowsort
SELECT ( 38 ) + 29
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6379
SELECT ALL 71 + - COALESCE ( COALESCE ( 20, 86 ) + - 73, 58 * + 80, COUNT( * ) * + 66 ) DIV + 20 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL 71 + - COALESCE ( COALESCE ( 20, 86 ) + - 73, 58 * + 80, COUNT ( * ) * + 66 ) / + 20 AS col2
----
73

query I rowsort
SELECT DISTINCT - 35 + 33
----
-2

query I rowsort
SELECT ALL - COALESCE ( + 54, - 16 )
----
-54

query I rowsort
SELECT + 68 + 14
----
82

query I rowsort
SELECT 4 - 72 * + 18 AS col1
----
-1292

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT 24 + - 10 * COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-6385
SELECT 24 + - 10 * COUNT ( * )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT ALL - COUNT( * ) - CASE 27 WHEN 4 * + 5 THEN 20 * 53 END * - CASE + COUNT( * ) WHEN + 39 THEN CAST( NULL AS SIGNED ) WHEN - 78 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL - COUNT ( * ) - CASE 27 WHEN 4 * + 5 THEN 20 * 53 END * - CASE + COUNT ( * ) WHEN + 39 THEN CAST ( NULL AS INTEGER ) WHEN - 78 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 9 * 10 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT ALL + COALESCE ( - 23, COUNT( * ) ) * NULLIF ( - 67, ( + COUNT( * ) ) )
----
1541

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL + COALESCE ( - 23, COUNT ( * ) ) * NULLIF ( - 67, ( + COUNT ( * ) ) )
----
1541

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

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT + COUNT ( ALL + 51 ) AS col1
----
1

query I rowsort
SELECT 4 + - ( + 58 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + 36 - - SUM( 49 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-6391
SELECT + 36 - - SUM ( 49 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL - ( MAX( 76 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL - ( MAX ( 76 ) )
----
-76

query I rowsort
SELECT 50 * COALESCE ( + 58 * - 22, - 63 * 91 )
----
-63800

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

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

query I rowsort
SELECT + 68 + - 10 * 36
----
-292

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

skipif mysql # not compatible
query I rowsort label-6396
SELECT COUNT ( * ) / - 81 AS col0
----
0

query I rowsort
SELECT ALL + + 99 * + 91 AS col0
----
9009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6398
SELECT 73 + CAST( 68 + + MIN( DISTINCT + 50 ) AS SIGNED ) DIV COUNT( * )
----
191

skipif mysql # not compatible
query I rowsort label-6398
SELECT 73 + CAST ( 68 + + MIN ( DISTINCT + 50 ) AS INTEGER ) / COUNT ( * )
----
191

query I rowsort
SELECT ALL + 84 * + 21 AS col0
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT - CASE 6 WHEN + 62 * 82 THEN NULL WHEN + SUM( ALL 36 ) * + ( 79 ) + + NULLIF ( AVG ( + 92 ) - 80, 76 ) THEN + NULLIF ( 5, + 79 * + 64 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6400
SELECT - CASE 6 WHEN + 62 * 82 THEN NULL WHEN + SUM ( ALL 36 ) * + ( 79 ) + + NULLIF ( AVG ( + 92 ) - 80, 76 ) THEN + NULLIF ( 5, + 79 * + 64 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6401
SELECT COALESCE ( - 69, - 56 * 41 ) + + COUNT( * ) DIV 73
----
-69

skipif mysql # not compatible
query I rowsort label-6401
SELECT COALESCE ( - 69, - 56 * 41 ) + + COUNT ( * ) / 73
----
-69

query I rowsort
SELECT ALL - + 86 * - 45
----
3870

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT 21 DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6403
SELECT 21 / 81 AS col2
----
0

query I rowsort
SELECT ALL - 40 * 95 AS col2
----
-3800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6405
SELECT DISTINCT + 28 + - MIN( 16 ) DIV - 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT + 28 + - MIN ( 16 ) / - 28 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT DISTINCT COUNT( * ) + + 21 * - 50 AS col1
----
-1049

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT COUNT ( * ) + + 21 * - 50 AS col1
----
-1049

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

skipif mysql # not compatible
query I rowsort label-6407
SELECT 37 * COUNT ( * ) / + 36
----
1

query I rowsort
SELECT ALL - 83 + 43 + - 80 * ( 35 ) AS col0
----
-2840

query I rowsort
SELECT ALL - 20 + + 17
----
-3

query I rowsort
SELECT 84 * + - 9 + + 87 col1
----
-669

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT ALL - 11 + - 91 DIV 3 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - 11 + - 91 / 3 AS col2
----
-41

query I rowsort
SELECT 27 * - - 62 * + 97
----
162378

query I rowsort
SELECT ALL + 48 + + 74 * 90
----
6708

query I rowsort
SELECT DISTINCT 24 * ( 23 )
----
552

query I rowsort
SELECT ALL 59 + 39 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT SUM( ALL + + 99 ) - ( + COUNT( * ) + 23 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6416
SELECT SUM ( ALL + + 99 ) - ( + COUNT ( * ) + 23 ) AS col1
----
75

query I rowsort
SELECT ALL + ( - - 38 ) + - 23 AS col2
----
15

query I rowsort
SELECT DISTINCT 94 + - 71 AS col1
----
23

query I rowsort
SELECT ALL 53 + + 22 col1
----
75

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

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

query I rowsort
SELECT ( - 16 ) * + 83 AS col2
----
-1328

query I rowsort
SELECT 19 + - 9
----
10

query I rowsort
SELECT + 40 - + 21 AS col0
----
19

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6425
SELECT ALL + 57 - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL + 57 - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT 95 * + + SUM( ALL - 52 )
----
-4940

skipif mysql # not compatible
query I rowsort label-6426
SELECT 95 * + + SUM ( ALL - 52 )
----
-4940

onlyif mysql # DIV for integer division: 
query I rowsort label-6427
SELECT ALL 33 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL 33 / 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT DISTINCT + + 10 - COUNT( * ) - - 90 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT + + 10 - COUNT ( * ) - - 90 AS col2
----
99

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

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

query I rowsort
SELECT 88 + - 38
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT - COALESCE ( + - MIN( + 36 ), 87 + 80, COUNT( * ) * 28, - COUNT( * ) * 71 ) col1
----
36

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT - COALESCE ( + - MIN ( + 36 ), 87 + 80, COUNT ( * ) * 28, - COUNT ( * ) * 71 ) col1
----
36

query I rowsort
SELECT + ( - 47 ) * 99 AS col0
----
-4653

query I rowsort
SELECT + 82 + + - 5 * 0 AS col1
----
82

query I rowsort
SELECT - NULLIF ( + + 85, 62 ) AS col0
----
-85

query I rowsort
SELECT + 51 * - 50 - 49 * 14 + + 28
----
-3208

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ( COUNT( * ) ) + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6437
SELECT ( COUNT ( * ) ) + 51 AS col2
----
52

query I rowsort
SELECT ALL - 55 * + + 29 + + 87
----
-1508

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT + 9 * + MAX( 90 )
----
810

skipif mysql # not compatible
query I rowsort label-6439
SELECT + 9 * + MAX ( 90 )
----
810

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT 88 * - 53 + + 99 DIV + 66
----
-4663

skipif mysql # not compatible
query I rowsort label-6440
SELECT 88 * - 53 + + 99 / + 66
----
-4663

query I rowsort
SELECT 75 - 37
----
38

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

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

query I rowsort
SELECT - 32 + + - NULLIF ( + 73, - 90 )
----
-105

query I rowsort
SELECT ALL + 89 + - 43 + 27
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6445
SELECT 67 + - 35 + 53 DIV + 54 * + 67 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6445
SELECT 67 + - 35 + 53 / + 54 * + 67 AS col0
----
32

query I rowsort
SELECT ALL + 78 + 44 * 70
----
3158

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL - CASE WHEN NOT 20 BETWEEN ( - COALESCE ( 20, 44 * 47 ) ) AND ( COUNT( * ) ) THEN - COALESCE ( + SUM( ALL 13 ), - 42 - 37 ) ELSE NULL END
----
13

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL - CASE WHEN NOT 20 BETWEEN ( - COALESCE ( 20, 44 * 47 ) ) AND ( COUNT ( * ) ) THEN - COALESCE ( + SUM ( ALL 13 ), - 42 - 37 ) ELSE NULL END
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT DISTINCT COALESCE ( - SUM( - 58 ), + ( + NULLIF ( - 94, - ( 61 ) * 56 + - 36 ) ) * - 51 ) + + CAST( 20 AS SIGNED ) * 14 col0
----
338

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT COALESCE ( - SUM ( - 58 ), + ( + NULLIF ( - 94, - ( 61 ) * 56 + - 36 ) ) * - 51 ) + + CAST ( 20 AS INTEGER ) * 14 col0
----
338

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

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - ( + ( + COUNT ( * ) ) ) + COUNT ( + 91 ) AS col0
----
0

query I rowsort
SELECT ALL ( + 1 ) + ( 69 ) * 5
----
346

query I rowsort
SELECT + 43 + - 60 AS col2
----
-17

query I rowsort
SELECT - 25 + 2 + + 60
----
37

query I rowsort
SELECT ALL + 79 + + + 34
----
113

query I rowsort
SELECT - CASE 58 WHEN 99 THEN NULL WHEN 38 + 33 THEN 17 ELSE + 32 + + 54 END
----
-86

query I rowsort
SELECT - 1 + + 65 col2
----
64

query I rowsort
SELECT DISTINCT - 7 * - 49 AS col1
----
343

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6457
SELECT - 33 * - COALESCE ( - ( MIN( ALL + ( + 70 ) ) ), - CASE + COUNT( * ) WHEN + COUNT( * ) + COUNT( * ) DIV CAST( + 79 AS SIGNED ) THEN COALESCE ( + 23, - 53 + CAST( + 8 + - 33 AS SIGNED ) * + 5 ) END * + 30, - 65 * 77 ) + COUNT( * ) DIV - 85
----
-2310

skipif mysql # not compatible
query I rowsort label-6457
SELECT - 33 * - COALESCE ( - ( MIN ( ALL + ( + 70 ) ) ), - CASE + COUNT ( * ) WHEN + COUNT ( * ) + COUNT ( * ) / CAST ( + 79 AS INTEGER ) THEN COALESCE ( + 23, - 53 + CAST ( + 8 + - 33 AS INTEGER ) * + 5 ) END * + 30, - 65 * 77 ) + COUNT ( * ) / - 85
----
-2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6458
SELECT ALL + 17 * + 6 * 75 + + CAST( NULLIF ( CAST( - SUM( 56 ) AS SIGNED ), - 43 ) AS SIGNED ) AS col0
----
7594

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL + 17 * + 6 * 75 + + CAST ( NULLIF ( CAST ( - SUM ( 56 ) AS INTEGER ), - 43 ) AS INTEGER ) AS col0
----
7594

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT - COALESCE ( 70, - + MIN( 15 ) * 22 + - 89 ) + + 56
----
-14

skipif mysql # not compatible
query I rowsort label-6459
SELECT - COALESCE ( 70, - + MIN ( 15 ) * 22 + - 89 ) + + 56
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6460
SELECT ALL 70 * + 47 / CAST( NULL AS SIGNED ) - - CASE 89 WHEN - 93 * 85 THEN - COUNT( * ) - + 87 / + 70 ELSE 46 * 42 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL 70 * + 47 / CAST ( NULL AS INTEGER ) - - CASE 89 WHEN - 93 * 85 THEN - COUNT ( * ) - + 87 / + 70 ELSE 46 * 42 END
----
NULL

query II rowsort
SELECT + 72 AS col2, 68 + 9 AS col0
----
72
77

query I rowsort
SELECT ALL + COALESCE ( - ( 30 ), ( 2 ) + - 66 )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6463
SELECT ALL + 7, + ( - 60 ) * + COUNT( * ) + + 27 AS col1
----
7
-33

skipif mysql # not compatible
query II rowsort label-6463
SELECT ALL + 7, + ( - 60 ) * + COUNT ( * ) + + 27 AS col1
----
7
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT DISTINCT COUNT( * ) * 49 * + - 54 - + ( - 85 ) AS col0
----
-2561

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT COUNT ( * ) * 49 * + - 54 - + ( - 85 ) AS col0
----
-2561

query I rowsort
SELECT 44 * - 80 + - + 92
----
-3612

onlyif mysql # aggregate syntax: 
query II rowsort label-6466
SELECT + 80 AS col2, - ( + COUNT( DISTINCT 2 ) ) AS col2
----
80
-1

skipif mysql # not compatible
query II rowsort label-6466
SELECT + 80 AS col2, - ( + COUNT ( DISTINCT 2 ) ) AS col2
----
80
-1

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

query I rowsort
SELECT - COALESCE ( - - 26, + 13 ) * 37
----
-962

query I rowsort
SELECT DISTINCT + - 49 * + 51
----
-2499

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL + CASE + - 43 WHEN COUNT( 87 ) * - 33 THEN COALESCE ( - MIN( ALL + 84 ), 77 * 12 + 90 ) * ( 99 + - COUNT( * ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL + CASE + - 43 WHEN COUNT ( 87 ) * - 33 THEN COALESCE ( - MIN ( ALL + 84 ), 77 * 12 + 90 ) * ( 99 + - COUNT ( * ) ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL + 11 * 6 + + 36 + 17 * + COUNT( * )
----
119

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + 11 * 6 + + 36 + 17 * + COUNT ( * )
----
119

query II rowsort
SELECT ALL + 54 AS col1, - 33 - + 48 * + 76 col1
----
54
-3681

query I rowsort
SELECT - - 89 + 46
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6474
SELECT DISTINCT + 78 * - + 16 * CAST( 46 AS SIGNED )
----
-57408

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT + 78 * - + 16 * CAST ( 46 AS INTEGER )
----
-57408

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

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

query I rowsort
SELECT - 66 * - 82 - - 23 * - 62 AS col0
----
3986

query I rowsort
SELECT + COALESCE ( + 38, + 3 + 88 ) * 73 - + 16 AS col1
----
2758

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

skipif mysql # not compatible
query I rowsort label-6478
SELECT + 50 + COUNT ( * ) + - 39 + + COUNT ( * ) / - 6 AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6479
SELECT - 94 DIV - - 16
----
-5

skipif mysql # not compatible
query I rowsort label-6479
SELECT - 94 / - - 16
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT NULLIF ( + MIN( - 91 ), 64 + 93 )
----
-91

skipif mysql # not compatible
query I rowsort label-6480
SELECT NULLIF ( + MIN ( - 91 ), 64 + 93 )
----
-91

query I rowsort
SELECT - - 2 * + - 18 * + - 17 + 42 AS col1
----
654

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6482
SELECT DISTINCT + - ( + CAST( NULL AS DECIMAL ) ) + + - MIN( - 36 ) * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT + - ( + CAST ( NULL AS REAL ) ) + + - MIN ( - 36 ) * 66
----
NULL

query I rowsort
SELECT DISTINCT - 2 + - - 79 AS col1
----
77

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

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

query I rowsort
SELECT ALL + 32 + + 8 AS col1
----
40

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

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

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

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

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

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

query I rowsort
SELECT - NULLIF ( ( - + 52 ), 6 + + 18 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT - NULLIF ( CASE + + 10 WHEN - + ( COUNT( DISTINCT + 65 ) ) THEN 44 ELSE + ( - 27 ) * 20 END, AVG ( DISTINCT 57 ) ) AS col2
----
540

skipif mysql # not compatible
query I rowsort label-6491
SELECT - NULLIF ( CASE + + 10 WHEN - + ( COUNT ( DISTINCT + 65 ) ) THEN 44 ELSE + ( - 27 ) * 20 END, AVG ( DISTINCT 57 ) ) AS col2
----
540

query I rowsort
SELECT + 90 * + 47 AS col1
----
4230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6493
SELECT ALL 95 + 98 * + + 42 + 4 DIV - COALESCE ( 99 * + COUNT( * ), 18 )
----
4211

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL 95 + 98 * + + 42 + 4 / - COALESCE ( 99 * + COUNT ( * ), 18 )
----
4211

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT DISTINCT - 3 - 58 - - COUNT( * ) + + - 17 + 51 * + ( 88 ) AS col2
----
4411

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT - 3 - 58 - - COUNT ( * ) + + - 17 + 51 * + ( 88 ) AS col2
----
4411

query I rowsort
SELECT ALL CASE 44 WHEN - 69 + - 63 + 79 THEN 67 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6496
SELECT ALL - 94 DIV - - 31 * - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL - 94 / - - 31 * - COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT - 59 * MIN( + 79 ) AS col2
----
-4661

skipif mysql # not compatible
query I rowsort label-6497
SELECT - 59 * MIN ( + 79 ) AS col2
----
-4661

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

skipif mysql # not compatible
query I rowsort label-6498
SELECT + COUNT ( * ) + - CAST ( - 63 AS INTEGER )
----
64

query I rowsort
SELECT 58 * - 65 + ( + 26 ) AS col0
----
-3744

onlyif mysql # DIV for integer division: 
query I rowsort label-6500
SELECT ALL 35 DIV - - 79 - + ( 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL 35 / - - 79 - + ( 88 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6501
SELECT + CAST( 86 AS SIGNED ) col0, MAX( + + 11 ) AS col0
----
86
11

skipif mysql # not compatible
query II rowsort label-6501
SELECT + CAST ( 86 AS INTEGER ) col0, MAX ( + + 11 ) AS col0
----
86
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT DISTINCT 47 DIV - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT 47 / - 70 AS col2
----
0

query I rowsort
SELECT ALL + 13 * - 36 * 34 AS col2
----
-15912

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

skipif mysql # not compatible
query I rowsort label-6504
SELECT + 76 / - 26 - - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 29 * + 42 + + 36 AS col0
----
1254

query I rowsort
SELECT - - 18 * + + 81 AS col1
----
1458

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6507
SELECT - - 60 + - 91 AS col0, + 41 + + 10 * CAST( NULL AS SIGNED ) AS col1
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-6507
SELECT - - 60 + - 91 AS col0, + 41 + + 10 * CAST ( NULL AS INTEGER ) AS col1
----
-31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT - MIN( DISTINCT + 56 ) * - 33
----
1848

skipif mysql # not compatible
query I rowsort label-6508
SELECT - MIN ( DISTINCT + 56 ) * - 33
----
1848

query I rowsort
SELECT ALL + + 72 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT ALL + 63 * + - SUM( 4 ) + 10 * 84
----
588

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL + 63 * + - SUM ( 4 ) + 10 * 84
----
588

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6512
SELECT - 64 * + 61, COUNT( * ) * 98 DIV + ( 99 ) + + 65 AS col0
----
-3904
65

skipif mysql # not compatible
query II rowsort label-6512
SELECT - 64 * + 61, COUNT ( * ) * 98 / + ( 99 ) + + 65 AS col0
----
-3904
65

query I rowsort
SELECT - 38 - - 12 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL - ( 35 ) * COUNT( * ) + 9
----
-26

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL - ( 35 ) * COUNT ( * ) + 9
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6515
SELECT ALL + 5 * CASE + COUNT( * ) WHEN + CASE - 31 WHEN 49 THEN 39 + 28 END THEN - 90 WHEN + AVG ( DISTINCT 97 ) * + 1 THEN NULL WHEN 73 THEN COUNT( * ) ELSE + 28 END * - 20 + - 94 * 8 + NULLIF ( - COALESCE ( + COALESCE ( + ( 2 ), + 61 * - 80 + 15 ), + 46 DIV + 45 + 64 ), MIN( DISTINCT + 46 ) * COALESCE ( 54, - 66 * 48, COUNT( * ) ) ) AS col0
----
-3554

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL + 5 * CASE + COUNT ( * ) WHEN + CASE - 31 WHEN 49 THEN 39 + 28 END THEN - 90 WHEN + AVG ( DISTINCT 97 ) * + 1 THEN NULL WHEN 73 THEN COUNT ( * ) ELSE + 28 END * - 20 + - 94 * 8 + NULLIF ( - COALESCE ( + COALESCE ( + ( 2 ), + 61 * - 80 + 15 ), + 46 / + 45 + 64 ), MIN ( DISTINCT + 46 ) * COALESCE ( 54, - 66 * 48, COUNT ( * ) ) ) AS col0
----
-3554

query I rowsort
SELECT - - 17 * - + 2 + + - 20
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6517
SELECT - + 84 + 51 + + - ( 70 ) DIV 23
----
-36

skipif mysql # not compatible
query I rowsort label-6517
SELECT - + 84 + 51 + + - ( 70 ) / 23
----
-36

query I rowsort
SELECT ALL + 73 * 28
----
2044

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT NULLIF ( + SUM( ALL 38 ), + - 43 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-6519
SELECT NULLIF ( + SUM ( ALL 38 ), + - 43 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT ALL + + ( + - 73 ) * - + COUNT( * ) * + 22 * MAX( ALL 55 * ( + 5 ) ) + + 99 * - 89
----
432839

skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL + + ( + - 73 ) * - + COUNT ( * ) * + 22 * MAX ( ALL 55 * ( + 5 ) ) + + 99 * - 89
----
432839

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6521
SELECT - ( - - CAST( NULL AS SIGNED ) ) AS col0, 35
----
NULL
35

skipif mysql # not compatible
query II rowsort label-6521
SELECT - ( - - CAST ( NULL AS INTEGER ) ) AS col0, 35
----
NULL
35

query I rowsort
SELECT - ( + 79 ) + - ( 59 ) AS col1
----
-138

query I rowsort
SELECT - 85 * 27 AS col1
----
-2295

query I rowsort
SELECT 18 + 16 AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6525
SELECT ( + - 11 ) + ( - + 69 ) + + NULLIF ( 53, - COUNT( * ) ) DIV 84 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-6525
SELECT ( + - 11 ) + ( - + 69 ) + + NULLIF ( 53, - COUNT ( * ) ) / 84 AS col2
----
-80

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT ALL 84 DIV + CASE - 39 WHEN 24 + AVG ( + 78 ) THEN - ( 7 ) * + ( 3 ) ELSE 29 END
----
2

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL 84 / + CASE - 39 WHEN 24 + AVG ( + 78 ) THEN - ( 7 ) * + ( 3 ) ELSE 29 END
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT 43 + - 1 * + + COUNT( * ) * - - 21 * + MIN( - 62 ) * - 56 col0
----
-72869

skipif mysql # not compatible
query I rowsort label-6529
SELECT 43 + - 1 * + + COUNT ( * ) * - - 21 * + MIN ( - 62 ) * - 56 col0
----
-72869

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT DISTINCT 2 DIV - - 15
----
0

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT 2 / - - 15
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6531
SELECT 53 + - MIN( DISTINCT 23 ) * - CAST( + 76 AS SIGNED ) * - 94 AS col1
----
-164259

skipif mysql # not compatible
query I rowsort label-6531
SELECT 53 + - MIN ( DISTINCT 23 ) * - CAST ( + 76 AS INTEGER ) * - 94 AS col1
----
-164259

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

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL 78 - - CAST ( NULL AS INTEGER ) - - ( + 21 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT MIN( 32 ) + 36
----
68

skipif mysql # not compatible
query I rowsort label-6533
SELECT MIN ( 32 ) + 36
----
68

query I rowsort
SELECT 33 + 68 AS col1
----
101

query I rowsort
SELECT 43 + 72 AS col0
----
115

query I rowsort
SELECT 78 + 39
----
117

query I rowsort
SELECT ALL 42 * - 7
----
-294

query I rowsort
SELECT DISTINCT 77 * - 88 * - 24 AS col1
----
162624

query I rowsort
SELECT 62 * + - 79
----
-4898

query I rowsort
SELECT 97 + + 71 AS col1
----
168

query I rowsort
SELECT ALL 94 * + 90 * - 75
----
-634500

query I rowsort
SELECT 68 + + - 90 AS col1
----
-22

query I rowsort
SELECT DISTINCT 41 * + + 42 AS col2
----
1722

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT 24 * + 99 * + + COUNT( * )
----
2376

skipif mysql # not compatible
query I rowsort label-6544
SELECT 24 * + 99 * + + COUNT ( * )
----
2376

query II rowsort
SELECT ALL - 83 AS col0, 45
----
-83
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT MAX( + 2 ) * - 29 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6546
SELECT MAX ( + 2 ) * - 29 AS col1
----
-58

query I rowsort
SELECT - 9 + + + 93 + + 23 AS col0
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6548
SELECT ALL - NULLIF ( - 95, + + 23 ) / CASE + 64 WHEN - 23 THEN SUM( ALL 56 ) + - 45 * 63 WHEN 80 / - 56 THEN - 59 WHEN - CAST( NULL AS SIGNED ) THEN - CAST( NULL AS SIGNED ) + CASE 39 WHEN 65 * + 36 THEN COUNT( 78 ) * - SUM( 72 ) - + 69 * 10 END ELSE NULL END / 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL - NULLIF ( - 95, + + 23 ) / CASE + 64 WHEN - 23 THEN SUM ( ALL 56 ) + - 45 * 63 WHEN 80 / - 56 THEN - 59 WHEN - CAST ( NULL AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) + CASE 39 WHEN 65 * + 36 THEN COUNT ( 78 ) * - SUM ( 72 ) - + 69 * 10 END ELSE NULL END / 80 AS col2
----
NULL

query I rowsort
SELECT + 61 * + - 16 + + - 28 col1
----
-1004

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT + MIN( ALL + 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6550
SELECT + MIN ( ALL + 96 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT DISTINCT - 26 + + 24 + - - 87 + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT - 26 + + 24 + - - 87 + COUNT ( * ) AS col0
----
86

query I rowsort
SELECT ALL + 68 + + 79 AS col1
----
147

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT ALL - 57 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL - 57 / 75
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6555
SELECT ALL - + 77 + - CAST( 23 AS SIGNED )
----
-100

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL - + 77 + - CAST ( 23 AS INTEGER )
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT DISTINCT + - 15 + 64 DIV - 66 * 84 + + 14
----
-1

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT + - 15 + 64 / - 66 * 84 + + 14
----
-1

query I rowsort
SELECT DISTINCT - 24 * + + ( 98 ) AS col1
----
-2352

query I rowsort
SELECT DISTINCT 68 + 75
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6559
SELECT ALL CAST( + 87 AS SIGNED ) + - COUNT( * ) * - ( + 94 ) * 80
----
7607

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL CAST ( + 87 AS INTEGER ) + - COUNT ( * ) * - ( + 94 ) * 80
----
7607

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6561
SELECT - + NULLIF ( 15, COUNT( * ) ) * - 19 - + 52 DIV ( - 41 + CAST( + 49 - - 59 AS SIGNED ) )
----
285

skipif mysql # not compatible
query I rowsort label-6561
SELECT - + NULLIF ( 15, COUNT ( * ) ) * - 19 - + 52 / ( - 41 + CAST ( + 49 - - 59 AS INTEGER ) )
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6562
SELECT 41 AS col1, CAST( NULL AS SIGNED )
----
41
NULL

skipif mysql # not compatible
query II rowsort label-6562
SELECT 41 AS col1, CAST ( NULL AS INTEGER )
----
41
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT + COUNT( ALL - 41 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6563
SELECT + COUNT ( ALL - 41 ) AS col0
----
1

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

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

query I rowsort
SELECT - 52 * + + 69 AS col2
----
-3588

query III rowsort
SELECT - 33, + 18 + - 10 + + 6 AS col2, - 89 AS col0
----
-33
14
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6567
SELECT 63 + + - COALESCE ( 13, - 25 * - - CAST( - - 66 AS SIGNED ) - + COALESCE ( SUM( 34 ), + 10 ) DIV 29 ) + 85
----
135

skipif mysql # not compatible
query I rowsort label-6567
SELECT 63 + + - COALESCE ( 13, - 25 * - - CAST ( - - 66 AS INTEGER ) - + COALESCE ( SUM ( 34 ), + 10 ) / 29 ) + 85
----
135

query I rowsort
SELECT ALL + 66 - + 25 * - 89 col0
----
2291

query I rowsort
SELECT DISTINCT - 2 - - 95
----
93

query I rowsort
SELECT 46 - - 40 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT ALL - 93 * - COUNT( * ) col1
----
93

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL - 93 * - COUNT ( * ) col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL MAX( - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL MAX ( - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT DISTINCT 95 * + MIN( 1 ) * + - 95 + - COUNT( + - 51 )
----
-9026

skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT 95 * + MIN ( 1 ) * + - 95 + - COUNT ( + - 51 )
----
-9026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6574
SELECT 36 * + 86, CAST( + + ( - SUM( DISTINCT ( + 71 ) ) ) AS SIGNED ) * 50 AS col1
----
3096
-3550

skipif mysql # not compatible
query II rowsort label-6574
SELECT 36 * + 86, CAST ( + + ( - SUM ( DISTINCT ( + 71 ) ) ) AS INTEGER ) * 50 AS col1
----
3096
-3550

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT 72 * COUNT( * ) * 52
----
3744

skipif mysql # not compatible
query I rowsort label-6575
SELECT 72 * COUNT ( * ) * 52
----
3744

query II rowsort
SELECT 12 AS col1, + 80 col1
----
12
80

query I rowsort
SELECT ALL + 85 * - 21 AS col0
----
-1785

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL MAX( DISTINCT + - 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL MAX ( DISTINCT + - 29 ) AS col0
----
-29

query II rowsort
SELECT 41, 46 * + ( - 67 ) AS col2
----
41
-3082

query II rowsort
SELECT ALL 24, + 81 * + ( + 12 ) * - + 38 * - 50 AS col0
----
24
1846800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6582
SELECT ALL COUNT( * ) DIV 36, 48 + + 82 * - + 2 AS col1
----
0
-116

skipif mysql # not compatible
query II rowsort label-6582
SELECT ALL COUNT ( * ) / 36, 48 + + 82 * - + 2 AS col1
----
0
-116

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

skipif mysql # not compatible
query I rowsort label-6583
SELECT MIN ( ALL + 79 ) * - COUNT ( * ) AS col0
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-6584
SELECT ALL + 59 DIV 35, CASE 16 WHEN 13 THEN + NULLIF ( + 75, 64 * 31 - - 76 DIV + ( 37 ) ) WHEN - 97 THEN NULL ELSE NULL END col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6584
SELECT ALL + 59 / 35, CASE 16 WHEN 13 THEN + NULLIF ( + 75, 64 * 31 - - 76 / + ( 37 ) ) WHEN - 97 THEN NULL ELSE NULL END col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6585
SELECT 55 col2, COALESCE ( - - COUNT( * ), - 80 ) * + 30 AS col0
----
55
30

skipif mysql # not compatible
query II rowsort label-6585
SELECT 55 col2, COALESCE ( - - COUNT ( * ), - 80 ) * + 30 AS col0
----
55
30

query I rowsort
SELECT 97 * - 26 AS col1
----
-2522

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

skipif mysql # not compatible
query I rowsort label-6587
SELECT + 10 + - COUNT ( * ) AS col0
----
9

query II rowsort
SELECT ALL + 83 AS col2, ( 76 ) AS col0
----
83
76

query I rowsort
SELECT + 24 + - + 87
----
-63

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6593
SELECT + 42 DIV - - ( + ( + 58 ) ) + + - ( - COUNT( DISTINCT + 20 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6593
SELECT + 42 / - - ( + ( + 58 ) ) + + - ( - COUNT ( DISTINCT + 20 ) )
----
1

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

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

query I rowsort
SELECT ALL + 28 * - 93
----
-2604

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT - 73 - - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-6596
SELECT - 73 - - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT 57 + - - 4 * + - 70 + + + 16
----
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-6598
SELECT - 54 * + 83 + 84 DIV - + 98
----
-4482

skipif mysql # not compatible
query I rowsort label-6598
SELECT - 54 * + 83 + 84 / - + 98
----
-4482

query I rowsort
SELECT + + 51 * - 99
----
-5049

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

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

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

query I rowsort
SELECT + + 90 * + 87 * - ( + 61 ) AS col2
----
-477630

query I rowsort
SELECT ALL 15 * - + 76
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT ALL 58 * - MAX( DISTINCT - 86 ) - 55 AS col1
----
4933

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL 58 * - MAX ( DISTINCT - 86 ) - 55 AS col1
----
4933

query I rowsort
SELECT DISTINCT + 62 * - + CASE 7 WHEN - 64 THEN + 84 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6606
SELECT ALL + COALESCE ( + 93, + 57, - CASE - 30 WHEN + CASE + 24 WHEN - 4 THEN + CASE 97 WHEN 43 * 68 THEN + 93 * + CAST( NULL AS SIGNED ) + + COUNT( * ) ELSE NULL END + + 22 END * 50 THEN - NULLIF ( ( 36 ), 80 * COUNT( * ) ) END )
----
93

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL + COALESCE ( + 93, + 57, - CASE - 30 WHEN + CASE + 24 WHEN - 4 THEN + CASE 97 WHEN 43 * 68 THEN + 93 * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) ELSE NULL END + + 22 END * 50 THEN - NULLIF ( ( 36 ), 80 * COUNT ( * ) ) END )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT + CASE 66 WHEN 14 THEN + + 21 WHEN 91 THEN - 63 ELSE NULL END * - CASE + CASE 39 WHEN - AVG ( ALL 7 ) * + MAX( + 59 ) + + COALESCE ( COUNT( * ), COUNT( * ) - - 32 ) THEN + SUM( ALL 90 ) WHEN - 54 THEN NULL WHEN 87 THEN 41 * 65 ELSE 54 * + 66 + 26 END WHEN 62 THEN + 13 WHEN + 85 THEN + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6607
SELECT + CASE 66 WHEN 14 THEN + + 21 WHEN 91 THEN - 63 ELSE NULL END * - CASE + CASE 39 WHEN - AVG ( ALL 7 ) * + MAX ( + 59 ) + + COALESCE ( COUNT ( * ), COUNT ( * ) - - 32 ) THEN + SUM ( ALL 90 ) WHEN - 54 THEN NULL WHEN 87 THEN 41 * 65 ELSE 54 * + 66 + 26 END WHEN 62 THEN + 13 WHEN + 85 THEN + 50 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6608
SELECT ALL CAST( + ( - SUM( DISTINCT + - 5 ) ) AS SIGNED ) * 57 + + 83
----
368

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL CAST ( + ( - SUM ( DISTINCT + - 5 ) ) AS INTEGER ) * 57 + + 83
----
368

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL COUNT( * ) - + 80 + - + ( + ( + 75 ) ) * 9 - - + 95 + 25 AS col0
----
-634

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL COUNT ( * ) - + 80 + - + ( + ( + 75 ) ) * 9 - - + 95 + 25 AS col0
----
-634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6610
SELECT + COUNT( * ) DIV 61 * + - 88 DIV + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6610
SELECT + COUNT ( * ) / 61 * + - 88 / + 38 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6611
SELECT - ( + CASE + + 28 WHEN - + 83 THEN 54 ELSE + ( - 14 ) + - 73 END ) DIV 61
----
1

skipif mysql # not compatible
query I rowsort label-6611
SELECT - ( + CASE + + 28 WHEN - + 83 THEN 54 ELSE + ( - 14 ) + - 73 END ) / 61
----
1

query I rowsort
SELECT 26 * + + 89 + 8 AS col0
----
2322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6613
SELECT - CASE + 41 WHEN - + 9 / MAX( DISTINCT + 27 ) THEN NULL WHEN - CAST( + - 59 AS SIGNED ) + + 69 THEN COUNT( * ) - + 99 ELSE + 44 * + 90 END * 51 AS col2
----
-201960

skipif mysql # not compatible
query I rowsort label-6613
SELECT - CASE + 41 WHEN - + 9 / MAX ( DISTINCT + 27 ) THEN NULL WHEN - CAST ( + - 59 AS INTEGER ) + + 69 THEN COUNT ( * ) - + 99 ELSE + 44 * + 90 END * 51 AS col2
----
-201960

query I rowsort
SELECT - 1 + - 96
----
-97

query I rowsort
SELECT DISTINCT NULLIF ( + + 69, + 28 ) AS col2
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6616
SELECT DISTINCT 24 + + NULLIF ( + 34, - 1 * - + 5 + + CAST( - + 18 AS DECIMAL ) ) * - 97
----
-3274

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT 24 + + NULLIF ( + 34, - 1 * - + 5 + + CAST ( - + 18 AS REAL ) ) * - 97
----
-3274

query I rowsort
SELECT ALL - 99 + + 79 + 56 + + + 43
----
79

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

skipif mysql # not compatible
query I rowsort label-6618
SELECT - 53 + - COUNT ( * ) AS col2
----
-54

query I rowsort
SELECT DISTINCT + 72 * + 8 AS col1
----
576

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT + NULLIF ( + + 67, + - 48 ) * + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-6621
SELECT + NULLIF ( + + 67, + - 48 ) * + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6622
SELECT DISTINCT + 54 * 20 AS col0, + ( MIN( DISTINCT + 56 ) ) - - 21
----
1080
77

skipif mysql # not compatible
query II rowsort label-6622
SELECT DISTINCT + 54 * 20 AS col0, + ( MIN ( DISTINCT + 56 ) ) - - 21
----
1080
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6623
SELECT ALL - 0 + + ( + 78 ) DIV + + NULLIF ( + SUM( + 13 ), - + 33 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL - 0 + + ( + 78 ) / + + NULLIF ( + SUM ( + 13 ), - + 33 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL + 17 * + + COUNT( * ) * 33 AS col2
----
561

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL + 17 * + + COUNT ( * ) * 33 AS col2
----
561

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT - + 12 DIV - + 44 * 9
----
0

skipif mysql # not compatible
query I rowsort label-6625
SELECT - + 12 / - + 44 * 9
----
0

query II rowsort
SELECT - 91 + - 17 AS col1, 10
----
-108
10

query I rowsort
SELECT ALL + - 73 + 21 + + 44
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT ALL - ( COUNT( * ) ) + 11
----
10

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - ( COUNT ( * ) ) + 11
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6629
SELECT DISTINCT 44 DIV + 89 + 87 + - - COALESCE ( - + COUNT( * ), - 43 ) + - NULLIF ( + ( + CAST( 55 AS SIGNED ) ), + 48 * COUNT( * ) ) + - 18 + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT 44 / + 89 + 87 + - - COALESCE ( - + COUNT ( * ), - 43 ) + - NULLIF ( + ( + CAST ( 55 AS INTEGER ) ), + 48 * COUNT ( * ) ) + - 18 + + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6630
SELECT ALL - ( 59 ) DIV + ( COUNT( * ) ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL - ( 59 ) / + ( COUNT ( * ) ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT CASE - 68 WHEN COUNT( * ) + + 72 THEN + 9 / + 8 + + + 30 * 13 WHEN 49 * 51 + + COUNT( + CASE 45 WHEN 86 THEN 24 END ) THEN NULL ELSE CASE SUM( ALL 68 ) WHEN 1 * 43 - + 5 THEN 0 * + COUNT( * ) END END
----
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT CASE - 68 WHEN COUNT ( * ) + + 72 THEN + 9 / + 8 + + + 30 * 13 WHEN 49 * 51 + + COUNT ( + CASE 45 WHEN 86 THEN 24 END ) THEN NULL ELSE CASE SUM ( ALL 68 ) WHEN 1 * 43 - + 5 THEN 0 * + COUNT ( * ) END END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6632
SELECT ALL - ( + NULLIF ( - 81, - CAST( NULL AS SIGNED ) - - + ( 66 ) - 9 ) ) DIV - CAST( + SUM( 74 ) AS SIGNED ) + + COALESCE ( + 7 + 7, 34, + COUNT( * ), + 56 )
----
13

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - ( + NULLIF ( - 81, - CAST ( NULL AS INTEGER ) - - + ( 66 ) - 9 ) ) / - CAST ( + SUM ( 74 ) AS INTEGER ) + + COALESCE ( + 7 + 7, 34, + COUNT ( * ), + 56 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6633
SELECT DISTINCT - + 31 DIV 10 * + CASE - - CAST( NULL AS DECIMAL ) WHEN + MAX( ALL + CAST( - 80 AS SIGNED ) ) THEN NULL WHEN - NULLIF ( + 75, + 0 * 55 + COUNT( * ) ) THEN 56 + 84 ELSE 36 END * 63
----
-6804

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT - + 31 / 10 * + CASE - - CAST ( NULL AS REAL ) WHEN + MAX ( ALL + CAST ( - 80 AS INTEGER ) ) THEN NULL WHEN - NULLIF ( + 75, + 0 * 55 + COUNT ( * ) ) THEN 56 + 84 ELSE 36 END * 63
----
-6804

onlyif mysql # DIV for integer division: 
query I rowsort label-6634
SELECT - - 85 DIV - NULLIF ( 86, 83 ) + - 79
----
-79

skipif mysql # not compatible
query I rowsort label-6634
SELECT - - 85 / - NULLIF ( 86, 83 ) + - 79
----
-79

query II rowsort
SELECT + - 80 * + + 73 AS col0, 35 - 34 AS col1
----
-5840
1

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

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

query I rowsort
SELECT 30 * + 7 + 6 + 87 AS col2
----
303

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL + - 60 * - - COUNT( * ) + - + 69 + - + ( - + 62 ) - + + 77
----
-144

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + - 60 * - - COUNT ( * ) + - + 69 + - + ( - + 62 ) - + + 77
----
-144

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

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

query I rowsort
SELECT DISTINCT + 22 * + + 31 AS col2
----
682

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6641
SELECT + 67 + + - 29 + - - 75 DIV COUNT( - 62 ) AS col1
----
113

skipif mysql # not compatible
query I rowsort label-6641
SELECT + 67 + + - 29 + - - 75 / COUNT ( - 62 ) AS col1
----
113

query II rowsort
SELECT DISTINCT + 95 AS col0, - 73 AS col0
----
95
-73

query II rowsort
SELECT COALESCE ( - 63, 64 ) AS col1, + 57 col1
----
-63
57

query I rowsort
SELECT - 14 - + 90 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT CASE + 46 WHEN + + 32 THEN - 68 ELSE + 43 + + COUNT( * ) * - COUNT( * ) END
----
42

skipif mysql # not compatible
query I rowsort label-6645
SELECT CASE + 46 WHEN + + 32 THEN - 68 ELSE + 43 + + COUNT ( * ) * - COUNT ( * ) END
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6646
SELECT MAX( + - COALESCE ( 7, CAST( NULL AS SIGNED ) * 13 + + 2 ) ) * - 17 * 26 + - ( + 64 )
----
3030

skipif mysql # not compatible
query I rowsort label-6646
SELECT MAX ( + - COALESCE ( 7, CAST ( NULL AS INTEGER ) * 13 + + 2 ) ) * - 17 * 26 + - ( + 64 )
----
3030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6647
SELECT ALL 19 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL 19 / - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT ALL + 20 * + COUNT( * ) + - - 40
----
60

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL + 20 * + COUNT ( * ) + - - 40
----
60

query I rowsort
SELECT - ( 2 ) col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL 56 * - + MAX( - ( + 12 ) ) + + ( - 27 ) * - 22 - + 28 * + 69
----
-666

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL 56 * - + MAX ( - ( + 12 ) ) + + ( - 27 ) * - 22 - + 28 * + 69
----
-666

query I rowsort
SELECT + 77 * + 21 AS col1
----
1617

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

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

query I rowsort
SELECT ALL + 65 * + - 57 + + 84 AS col2
----
-3621

query I rowsort
SELECT DISTINCT 77 * - + 93
----
-7161

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL MIN( - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL MIN ( - 11 ) AS col2
----
-11

query I rowsort
SELECT ALL - 30 + - 76 AS col1
----
-106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6659
SELECT DISTINCT COUNT( * ) + + - 80 + - + COALESCE ( - - 85, - 58 * - 22 * - 15 - 78 ) + MIN( + 38 + 4 DIV 22 )
----
-126

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT COUNT ( * ) + + - 80 + - + COALESCE ( - - 85, - 58 * - 22 * - 15 - 78 ) + MIN ( + 38 + 4 / 22 )
----
-126

query II rowsort
SELECT 74, ( + 77 ) col2
----
74
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6661
SELECT ALL + CAST( NULLIF ( + COUNT( * ), + - AVG ( + + 30 ) / + COUNT( * ) ) AS SIGNED ) - - + 6 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-6661
SELECT ALL + CAST ( NULLIF ( + COUNT ( * ), + - AVG ( + + 30 ) / + COUNT ( * ) ) AS INTEGER ) - - + 6 AS col2
----
7

query I rowsort
SELECT DISTINCT - 78 * + 80 + + - 45
----
-6285

query I rowsort
SELECT 27 + + + 23 col0
----
50

query I rowsort
SELECT ALL - 45 * - - 21
----
-945

query I rowsort
SELECT - 22 + - - 78
----
56

query II rowsort
SELECT - 31 * 20 + - - 87 AS col1, + 91
----
-533
91

query I rowsort
SELECT - 83 * - 88 + + 60 AS col1
----
7364

query II rowsort
SELECT + 85 AS col2, 29 + + + 44 AS col0
----
85
73

query I rowsort
SELECT ALL - 84 * + - 56
----
4704

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT + 71 + 69 DIV 40 * + - 62 * 64
----
-3897

skipif mysql # not compatible
query I rowsort label-6670
SELECT + 71 + 69 / 40 * + - 62 * 64
----
-3897

onlyif mysql # aggregate syntax: 
query II rowsort label-6671
SELECT ALL - 86, MAX( + 97 ) AS col0
----
-86
97

skipif mysql # not compatible
query II rowsort label-6671
SELECT ALL - 86, MAX ( + 97 ) AS col0
----
-86
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6672
SELECT DISTINCT - 29 DIV 6 * + 4 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT - 29 / 6 * + 4 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT - 94 / - 44 * + 3 + - CASE + 3 WHEN + + 20 + + - NULLIF ( - - 41, COUNT( * ) * CASE 52 WHEN + MIN( ALL 79 ) THEN 39 END ) THEN + AVG ( ALL - 84 ) / + 13 END - - 41 * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6673
SELECT - 94 / - 44 * + 3 + - CASE + 3 WHEN + + 20 + + - NULLIF ( - - 41, COUNT ( * ) * CASE 52 WHEN + MIN ( ALL 79 ) THEN 39 END ) THEN + AVG ( ALL - 84 ) / + 13 END - - 41 * + 68
----
NULL

query I rowsort
SELECT 46 + + 93 + - 48
----
91

query I rowsort
SELECT ( - - 24 ) + + + 35
----
59

query I rowsort
SELECT ALL 78 * - - 73 AS col0
----
5694

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6677
SELECT DISTINCT - 44 + 51, ( ( CAST( NULL AS DECIMAL ) ) ) + + 20 AS col0
----
7
NULL

skipif mysql # not compatible
query II rowsort label-6677
SELECT DISTINCT - 44 + 51, ( ( CAST ( NULL AS REAL ) ) ) + + 20 AS col0
----
7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT DISTINCT 13 * - COALESCE ( + - 67, + 79 + + MIN( - + ( + ( + 25 ) ) ) )
----
871

skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT 13 * - COALESCE ( + - 67, + 79 + + MIN ( - + ( + ( + 25 ) ) ) )
----
871

query I rowsort
SELECT ALL - 72 * + - 6 AS col0
----
432

query I rowsort
SELECT 87 * + ( + 77 )
----
6699

query I rowsort
SELECT ALL 65 + + 8
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6682
SELECT ALL 36 + + + COALESCE ( + 98, + 32 ) col1, - ( 46 ) - - COUNT( * )
----
134
-45

skipif mysql # not compatible
query II rowsort label-6682
SELECT ALL 36 + + + COALESCE ( + 98, + 32 ) col1, - ( 46 ) - - COUNT ( * )
----
134
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT 68 + - COUNT( * ) col2
----
67

skipif mysql # not compatible
query I rowsort label-6683
SELECT 68 + - COUNT ( * ) col2
----
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6684
SELECT NULLIF ( 99, - 28 ) - - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT NULLIF ( 99, - 28 ) - - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 0 * - 53 * 93 + + + ( 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT 13 * SUM( + 89 ) AS col1
----
1157

skipif mysql # not compatible
query I rowsort label-6686
SELECT 13 * SUM ( + 89 ) AS col1
----
1157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6687
SELECT ALL 29 + CASE CAST( NULL AS SIGNED ) WHEN 97 THEN NULL WHEN + 4 / + 6 * + - 39 - - 20 THEN NULL ELSE + COUNT( DISTINCT + NULLIF ( 49, + 44 ) ) END AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL 29 + CASE CAST ( NULL AS INTEGER ) WHEN 97 THEN NULL WHEN + 4 / + 6 * + - 39 - - 20 THEN NULL ELSE + COUNT ( DISTINCT + NULLIF ( 49, + 44 ) ) END AS col1
----
30

query I rowsort
SELECT ALL 64 * 87 AS col1
----
5568

query I rowsort
SELECT DISTINCT + 82 - + ( + - 99 ) col1
----
181

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

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

query I rowsort
SELECT 16 + + NULLIF ( - 22, 7 * 77 + + 60 - + 11 ) AS col1
----
-6

query I rowsort
SELECT ALL - 40 * 9
----
-360

query I rowsort
SELECT 63 + 45
----
108

query I rowsort
SELECT ALL - + 6 - + + 60
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT MIN( + 46 ) * + + 97 * - - 40 * - 94 + - ( + 26 )
----
-16777146

skipif mysql # not compatible
query I rowsort label-6695
SELECT MIN ( + 46 ) * + + 97 * - - 40 * - 94 + - ( + 26 )
----
-16777146

query I rowsort
SELECT DISTINCT - 7 * - - 46
----
-322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6697
SELECT ALL 23 * NULLIF ( - COUNT( * ), + 46 * - + NULLIF ( - 34, - CAST( NULL AS SIGNED ) + - + 8 * + + 87 ) )
----
-23

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL 23 * NULLIF ( - COUNT ( * ), + 46 * - + NULLIF ( - 34, - CAST ( NULL AS INTEGER ) + - + 8 * + + 87 ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT - 62 + - + COUNT( - 5 )
----
-63

skipif mysql # not compatible
query I rowsort label-6698
SELECT - 62 + - + COUNT ( - 5 )
----
-63

query I rowsort
SELECT 55 * + + 71 * + - ( - 52 )
----
203060

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6700
SELECT 73 DIV 88 AS col2, + NULLIF ( COUNT( * ), 6 )
----
0
1

skipif mysql # not compatible
query II rowsort label-6700
SELECT 73 / 88 AS col2, + NULLIF ( COUNT ( * ), 6 )
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6701
SELECT 32 + 68 + MIN( + 28 ) DIV + COUNT( * ) - - 89 AS col1
----
217

skipif mysql # not compatible
query I rowsort label-6701
SELECT 32 + 68 + MIN ( + 28 ) / + COUNT ( * ) - - 89 AS col1
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT + 29 * - + SUM( DISTINCT + - 8 )
----
232

skipif mysql # not compatible
query I rowsort label-6702
SELECT + 29 * - + SUM ( DISTINCT + - 8 )
----
232

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT DISTINCT - 0 * - SUM( ALL 16 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT - 0 * - SUM ( ALL 16 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT ALL SUM( ALL ( 86 ) ) + + - 12
----
74

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL SUM ( ALL ( 86 ) ) + + - 12
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT 30 * - COUNT( * ) + - 77 * - 68 - - 20
----
5226

skipif mysql # not compatible
query I rowsort label-6706
SELECT 30 * - COUNT ( * ) + - 77 * - 68 - - 20
----
5226

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6709
SELECT + MIN ( - - ( + - 86 ) )
----
-86

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

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

query II rowsort
SELECT ( 82 ) * - 58 + - ( + 27 ) AS col0, 17 AS col0
----
-4783
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL - COUNT( * ) + - COUNT( * ) - + + 73 * - 48
----
3502

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL - COUNT ( * ) + - COUNT ( * ) - + + 73 * - 48
----
3502

query I rowsort
SELECT DISTINCT 7 + + 5 AS col1
----
12

query I rowsort
SELECT 78 + 78 AS col1
----
156

onlyif mysql # DIV for integer division: 
query II rowsort label-6715
SELECT 81 * + ( - + 64 ) AS col1, - 85 DIV + 26 AS col2
----
-5184
-3

skipif mysql # not compatible
query II rowsort label-6715
SELECT 81 * + ( - + 64 ) AS col1, - 85 / + 26 AS col2
----
-5184
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT DISTINCT + MIN( ALL 11 ) + - - 54 * - 54
----
-2905

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT + MIN ( ALL 11 ) + - - 54 * - 54
----
-2905

query I rowsort
SELECT 68 * 88 AS col1
----
5984

query I rowsort
SELECT 6 * ( - 17 ) AS col1
----
-102

query II rowsort
SELECT 13 AS col2, 92 + - 0 * 4 + - 14 AS col1
----
13
78

query I rowsort
SELECT DISTINCT + 95 + + 39
----
134

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

skipif mysql # not compatible
query I rowsort label-6721
SELECT 22 + - CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT 29 col1, 56 * 32 col2
----
29
1792

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

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

query I rowsort
SELECT ALL - 47 - - 96 * 45 col2
----
4273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6725
SELECT - 68 * - 38 * + + CASE + 99 WHEN MIN( + 4 ) + COALESCE ( - 87, - + COUNT( * ) + - - 72 * - COUNT( * ), + 23 + - 94 ) THEN 66 / + MAX( ALL CAST( NULL AS SIGNED ) ) + 72 WHEN + 33 THEN 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT - 68 * - 38 * + + CASE + 99 WHEN MIN ( + 4 ) + COALESCE ( - 87, - + COUNT ( * ) + - - 72 * - COUNT ( * ), + 23 + - 94 ) THEN 66 / + MAX ( ALL CAST ( NULL AS INTEGER ) ) + 72 WHEN + 33 THEN 6 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6726
SELECT - 63 AS col2, CAST( - 66 AS SIGNED ) + + 16 AS col2
----
-63
-50

skipif mysql # not compatible
query II rowsort label-6726
SELECT - 63 AS col2, CAST ( - 66 AS INTEGER ) + + 16 AS col2
----
-63
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT ALL + SUM( 23 ) - 80 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL + SUM ( 23 ) - 80 AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6728
SELECT ALL + NULLIF ( + CAST( 4 AS SIGNED ), 15 + ( 46 ) + + 97 )
----
4

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL + NULLIF ( + CAST ( 4 AS INTEGER ), 15 + ( 46 ) + + 97 )
----
4

query I rowsort
SELECT - + 23 * - 96 AS col2
----
2208

onlyif mysql # DIV for integer division: 
query II rowsort label-6730
SELECT + 13 DIV 83 + 43, + ( + - 2 ) + - - 62 AS col0
----
43
60

skipif mysql # not compatible
query II rowsort label-6730
SELECT + 13 / 83 + 43, + ( + - 2 ) + - - 62 AS col0
----
43
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT DISTINCT COUNT( DISTINCT + 86 ) * 31 * + 43 AS col1
----
1333

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT COUNT ( DISTINCT + 86 ) * 31 * + 43 AS col1
----
1333

query I rowsort
SELECT ALL 70 * - - 15 col2
----
1050

onlyif mysql # aggregate syntax: 
query II rowsort label-6733
SELECT DISTINCT - COUNT( * ) * + 16 + - SUM( DISTINCT - + 71 ) * + 78 AS col2, 48 + - COALESCE ( 38, + - 86 ) AS col0
----
5522
10

skipif mysql # not compatible
query II rowsort label-6733
SELECT DISTINCT - COUNT ( * ) * + 16 + - SUM ( DISTINCT - + 71 ) * + 78 AS col2, 48 + - COALESCE ( 38, + - 86 ) AS col0
----
5522
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6734
SELECT ALL MIN( ALL - + 18 ) * + + COALESCE ( - 31, + 94 )
----
558

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL MIN ( ALL - + 18 ) * + + COALESCE ( - 31, + 94 )
----
558

query I rowsort
SELECT DISTINCT + 35 + + + 18 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT - + 71 + + 77 + 38 * - 89 + 59 * - - CASE 17 WHEN NULLIF ( - - AVG ( 88 ), 19 * - 52 ) * + ( - 12 ) THEN NULL WHEN - 38 + - 13 / 8 THEN NULLIF ( - 48, MIN( ALL + 2 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT - + 71 + + 77 + 38 * - 89 + 59 * - - CASE 17 WHEN NULLIF ( - - AVG ( 88 ), 19 * - 52 ) * + ( - 12 ) THEN NULL WHEN - 38 + - 13 / 8 THEN NULLIF ( - 48, MIN ( ALL + 2 ) ) ELSE NULL END
----
NULL

query II rowsort
SELECT - 3 AS col2, 97
----
-3
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT + 67 DIV + 45
----
1

skipif mysql # not compatible
query I rowsort label-6738
SELECT + 67 / + 45
----
1

query II rowsort
SELECT ALL 37 + - 67 - + 24, + 66 AS col0
----
-54
66

query I rowsort
SELECT + - 96 + + 64 AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT + + 80 DIV + 50 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6741
SELECT + + 80 / + 50 AS col2
----
1

query I rowsort
SELECT + + 21 + + CASE - 22 WHEN - 25 THEN NULL WHEN ( - 55 ) / ( + 52 ) THEN NULL ELSE - - ( ( + 3 ) ) END
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6743
SELECT - CAST( 39 AS SIGNED ) * - + 11 col0
----
429

skipif mysql # not compatible
query I rowsort label-6743
SELECT - CAST ( 39 AS INTEGER ) * - + 11 col0
----
429

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6745
SELECT ALL ( 39 ) * - + 21 * - - 82 - - COUNT( * ) + 55, ( - + 4 ) * 73 DIV 16 AS col1
----
-67102
-18

skipif mysql # not compatible
query II rowsort label-6745
SELECT ALL ( 39 ) * - + 21 * - - 82 - - COUNT ( * ) + 55, ( - + 4 ) * 73 / 16 AS col1
----
-67102
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT + COALESCE ( + 17, 57 + - 61 DIV + + 88 )
----
17

skipif mysql # not compatible
query I rowsort label-6746
SELECT + COALESCE ( + 17, 57 + - 61 / + + 88 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT COALESCE ( + - NULLIF ( COALESCE ( + ( - COUNT( * ) ), + + CASE COUNT( ( ( 17 ) ) ) WHEN + + 95 / 46 THEN 7 + 88 WHEN 92 THEN NULL END * 84 ), - 43 ), 19 * + ( + 56 * COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6747
SELECT COALESCE ( + - NULLIF ( COALESCE ( + ( - COUNT ( * ) ), + + CASE COUNT ( ( ( 17 ) ) ) WHEN + + 95 / 46 THEN 7 + 88 WHEN 92 THEN NULL END * 84 ), - 43 ), 19 * + ( + 56 * COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6748
SELECT ALL + COALESCE ( - + 8, COUNT( * ) * - 17 + - 68, - 7 ) * - CASE + 21 WHEN - CAST( NULL AS SIGNED ) * - COALESCE ( + NULLIF ( CAST( 97 AS SIGNED ), + 90 ), 12 + - CAST( NULL AS SIGNED ) * + 38 ) THEN 21 WHEN COUNT( * ) THEN + 76 END * COUNT( ALL + 95 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL + COALESCE ( - + 8, COUNT ( * ) * - 17 + - 68, - 7 ) * - CASE + 21 WHEN - CAST ( NULL AS INTEGER ) * - COALESCE ( + NULLIF ( CAST ( 97 AS INTEGER ), + 90 ), 12 + - CAST ( NULL AS INTEGER ) * + 38 ) THEN 21 WHEN COUNT ( * ) THEN + 76 END * COUNT ( ALL + 95 ) AS col0
----
NULL

query I rowsort
SELECT - 88 - - - 12
----
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6750
SELECT ALL AVG ( + NULLIF ( 15, 71 ) ) * - 71 * - - CASE - 34 WHEN - CAST( NULL AS SIGNED ) THEN 53 - 4 WHEN + 15 * 96 THEN - COUNT( * ) * - 86 END / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL AVG ( + NULLIF ( 15, 71 ) ) * - 71 * - - CASE - 34 WHEN - CAST ( NULL AS INTEGER ) THEN 53 - 4 WHEN + 15 * 96 THEN - COUNT ( * ) * - 86 END / COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT - 23 + 78 - - COUNT( * ) * - 45
----
10

skipif mysql # not compatible
query I rowsort label-6751
SELECT - 23 + 78 - - COUNT ( * ) * - 45
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6752
SELECT DISTINCT + COUNT( DISTINCT 23 ), 34 + - - 49 AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-6752
SELECT DISTINCT + COUNT ( DISTINCT 23 ), 34 + - - 49 AS col2
----
1
83

query I rowsort
SELECT + 52 + + - 44 + + 19
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6754
SELECT + - 2 + + SUM( ALL 27 ) + - MAX( ALL - 33 ) + - + 96 + + CAST( + ( COUNT( 90 ) ) AS SIGNED ) + + 46 + - 54 DIV 28 * + 4
----
5

skipif mysql # not compatible
query I rowsort label-6754
SELECT + - 2 + + SUM ( ALL 27 ) + - MAX ( ALL - 33 ) + - + 96 + + CAST ( + ( COUNT ( 90 ) ) AS INTEGER ) + + 46 + - 54 / 28 * + 4
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT - + 96 - - 87 - + - 74 * NULLIF ( - - NULLIF ( 31, + + 13 * + + MAX( - 22 ) ), - - 74 ) AS col1
----
2285

skipif mysql # not compatible
query I rowsort label-6755
SELECT - + 96 - - 87 - + - 74 * NULLIF ( - - NULLIF ( 31, + + 13 * + + MAX ( - 22 ) ), - - 74 ) AS col1
----
2285

query I rowsort
SELECT + 51 * + 11 + - 50
----
511

query I rowsort
SELECT - 44 - + 96
----
-140

onlyif mysql # DIV for integer division: 
query II rowsort label-6758
SELECT - + 38, 97 DIV + 37 AS col2
----
-38
2

skipif mysql # not compatible
query II rowsort label-6758
SELECT - + 38, 97 / + 37 AS col2
----
-38
2

query I rowsort
SELECT ALL + 58 * - + 5 - - 94 + + 89
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT - - 52 + + 23 * - 60 * + 44 + + - MIN( 25 ) + 33
----
-60660

skipif mysql # not compatible
query I rowsort label-6760
SELECT - - 52 + + 23 * - 60 * + 44 + + - MIN ( 25 ) + 33
----
-60660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6761
SELECT + MIN( ALL 6 ) * 47 DIV + - 31 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-6761
SELECT + MIN ( ALL 6 ) * 47 / + - 31 AS col2
----
-9

query II rowsort
SELECT DISTINCT 69 col2, 84
----
69
84

query I rowsort
SELECT ALL - 66 * + 26
----
-1716

query I rowsort
SELECT - 11 + - 32 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT - COUNT( * ) + + - 25 + - 13 * - - COUNT( * ) AS col0, 42 + - CASE 67 WHEN 48 THEN - - 60 * + COUNT( * ) ELSE NULL END * 59 + - 37 * MAX( DISTINCT 56 * + 62 ) AS col0
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-6765
SELECT - COUNT ( * ) + + - 25 + - 13 * - - COUNT ( * ) AS col0, 42 + - CASE 67 WHEN 48 THEN - - 60 * + COUNT ( * ) ELSE NULL END * 59 + - 37 * MAX ( DISTINCT 56 * + 62 ) AS col0
----
-39
NULL

query II rowsort
SELECT ALL 15 AS col2, - 97 AS col0
----
15
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6767
SELECT ALL + 6 + COUNT( * ) + 71 + + CAST( NULL AS SIGNED ) + 61 + - 59 * - COUNT( ALL - + 36 ) / COUNT( * ) col1, + COUNT( * ) + SUM( ALL 41 ) * 86
----
NULL
3527

skipif mysql # not compatible
query II rowsort label-6767
SELECT ALL + 6 + COUNT ( * ) + 71 + + CAST ( NULL AS INTEGER ) + 61 + - 59 * - COUNT ( ALL - + 36 ) / COUNT ( * ) col1, + COUNT ( * ) + SUM ( ALL 41 ) * 86
----
NULL
3527

onlyif mysql # aggregate syntax: 
query II rowsort label-6768
SELECT 79, COUNT( * ) col0
----
79
1

skipif mysql # not compatible
query II rowsort label-6768
SELECT 79, COUNT ( * ) col0
----
79
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6769
SELECT + + 36 + - + COALESCE ( + - 68, - 34 * + 24 + + - 53 + 44 * - 82 - + 60 ) DIV NULLIF ( - 97, + 13 + MAX( - 42 ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6769
SELECT + + 36 + - + COALESCE ( + - 68, - 34 * + 24 + + - 53 + 44 * - 82 - + 60 ) / NULLIF ( - 97, + 13 + MAX ( - 42 ) ) AS col1
----
36

query I rowsort
SELECT - ( - - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT + - COALESCE ( + 27, - - 48, + - 62 + 87, - COUNT( * ) ) + - 8
----
-35

skipif mysql # not compatible
query I rowsort label-6771
SELECT + - COALESCE ( + 27, - - 48, + - 62 + 87, - COUNT ( * ) ) + - 8
----
-35

query I rowsort
SELECT - - 51 * + - 89 * - 12 * - 53
----
-2886804

query I rowsort
SELECT + 74 + - - ( 17 ) * + + 49 * + - 47 AS col1
----
-39077

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

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT + CAST ( + - SUM ( 0 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 7 * 45 * - 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 7 * 45 * - 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT + ( COUNT( * ) ) * - 52 * - 69
----
3588

skipif mysql # not compatible
query I rowsort label-6776
SELECT + ( COUNT ( * ) ) * - 52 * - 69
----
3588

query I rowsort
SELECT - COALESCE ( - 66, - 73 - - + 65 + - 90 ) AS col2
----
66

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6779
SELECT ALL 65 DIV - - COUNT( * ) + + - 17 * + 37 * + + 94 AS col0
----
-59061

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL 65 / - - COUNT ( * ) + + - 17 * + 37 * + + 94 AS col0
----
-59061

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT - ( + ( - - 76 ) ) * - COUNT( * ) + + 33
----
109

skipif mysql # not compatible
query I rowsort label-6780
SELECT - ( + ( - - 76 ) ) * - COUNT ( * ) + + 33
----
109

query I rowsort
SELECT ALL 13 * 53
----
689

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6782
SELECT CAST( + NULLIF ( + + COALESCE ( - 61, - 33, - 14 - - - CASE - + ( + + 50 ) WHEN - 69 * 55 THEN - + 71 / MAX( 66 ) - 72 * 85 WHEN + COUNT( * ) THEN NULL END ), MAX( ( - CAST( 67 AS SIGNED ) ) ) ) AS SIGNED ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-6782
SELECT CAST ( + NULLIF ( + + COALESCE ( - 61, - 33, - 14 - - - CASE - + ( + + 50 ) WHEN - 69 * 55 THEN - + 71 / MAX ( 66 ) - 72 * 85 WHEN + COUNT ( * ) THEN NULL END ), MAX ( ( - CAST ( 67 AS INTEGER ) ) ) ) AS INTEGER ) AS col0
----
-61

query I rowsort
SELECT + COALESCE ( + 94, + - 75 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT + 95 * - CASE 5 WHEN + MIN( + - 73 ) * - 56 THEN - 40 WHEN - - 83 THEN + 46 WHEN + 33 THEN NULL WHEN + 36 - + 5 * COALESCE ( ( COUNT( * ) ), - 42 - 98 ) THEN - ( + 19 ) END * + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT + 95 * - CASE 5 WHEN + MIN ( + - 73 ) * - 56 THEN - 40 WHEN - - 83 THEN + 46 WHEN + 33 THEN NULL WHEN + 36 - + 5 * COALESCE ( ( COUNT ( * ) ), - 42 - 98 ) THEN - ( + 19 ) END * + 68 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6785
SELECT CAST( - CASE WHEN NULL IS NOT NULL THEN NULL ELSE COUNT( * ) END AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6785
SELECT CAST ( - CASE WHEN NULL IS NOT NULL THEN NULL ELSE COUNT ( * ) END AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT ALL + 50 * CASE - 4 WHEN 42 - + + 75 THEN NULL ELSE - COUNT( * ) END
----
-50

skipif mysql # not compatible
query I rowsort label-6786
SELECT ALL + 50 * CASE - 4 WHEN 42 - + + 75 THEN NULL ELSE - COUNT ( * ) END
----
-50

query I rowsort
SELECT + ( + 27 ) * - 45
----
-1215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6788
SELECT + 47 - - CASE + + CASE + 42 WHEN - - 14 / - 83 * - + 55 * CAST( NULL AS SIGNED ) + - 34 THEN NULL WHEN COUNT( * ) / + COALESCE ( + 2, + 12 ) * 58 + + 30 THEN + 95 + ( 30 ) * + NULLIF ( COUNT( * ) + + CASE 32 WHEN CASE 81 WHEN + 88 THEN 43 ELSE NULL END THEN + 35 ELSE NULL END, - 59 / - 59 - + 62 ) ELSE NULL END WHEN 61 THEN COUNT( * ) * + 53 END + NULLIF ( - COUNT( - 18 ) + - 18, + COUNT( * ) * - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT + 47 - - CASE + + CASE + 42 WHEN - - 14 / - 83 * - + 55 * CAST ( NULL AS INTEGER ) + - 34 THEN NULL WHEN COUNT ( * ) / + COALESCE ( + 2, + 12 ) * 58 + + 30 THEN + 95 + ( 30 ) * + NULLIF ( COUNT ( * ) + + CASE 32 WHEN CASE 81 WHEN + 88 THEN 43 ELSE NULL END THEN + 35 ELSE NULL END, - 59 / - 59 - + 62 ) ELSE NULL END WHEN 61 THEN COUNT ( * ) * + 53 END + NULLIF ( - COUNT ( - 18 ) + - 18, + COUNT ( * ) * - 16 )
----
NULL

query I rowsort
SELECT 12 + + - 81 AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6790
SELECT ALL + SUM( - 32 ) * + + 15 * - 82 DIV - COUNT( * ) AS col1
----
-39360

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL + SUM ( - 32 ) * + + 15 * - 82 / - COUNT ( * ) AS col1
----
-39360

onlyif mysql # DIV for integer division: 
query I rowsort label-6791
SELECT 69 * + 72 + - 14 DIV - 9
----
4969

skipif mysql # not compatible
query I rowsort label-6791
SELECT 69 * + 72 + - 14 / - 9
----
4969

query I rowsort
SELECT 61 * 74
----
4514

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT 48 * + + COUNT( * ) * 87 AS col1
----
4176

skipif mysql # not compatible
query I rowsort label-6793
SELECT 48 * + + COUNT ( * ) * 87 AS col1
----
4176

query I rowsort
SELECT 91 + 32 - + 47 * - 81 * + 11
----
42000

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT - 33 - - 35 + + 66 * 13 + 43 + 74 + - - COUNT( * ) + + 46 - - + ( - ( + 67 ) ) * + + 53 * ( 87 - - 37 ) AS col1
----
-439300

skipif mysql # not compatible
query I rowsort label-6795
SELECT - 33 - - 35 + + 66 * 13 + 43 + 74 + - - COUNT ( * ) + + 46 - - + ( - ( + 67 ) ) * + + 53 * ( 87 - - 37 ) AS col1
----
-439300

query II rowsort
SELECT DISTINCT + 28 * + 43 AS col1, 47 * + 25
----
1204
1175

query I rowsort
SELECT DISTINCT 47 * 60 AS col0
----
2820

onlyif mysql # aggregate syntax: 
query II rowsort label-6798
SELECT DISTINCT 74 + 27 * + - 16 * 73 * + 54 AS col2, + COUNT( * ) col0
----
-1702870
1

skipif mysql # not compatible
query II rowsort label-6798
SELECT DISTINCT 74 + 27 * + - 16 * 73 * + 54 AS col2, + COUNT ( * ) col0
----
-1702870
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL + 35 + - 17 + + + SUM( DISTINCT + + 69 ) + 8 + 9 * 43 AS col2
----
482

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + 35 + - 17 + + + SUM ( DISTINCT + + 69 ) + 8 + 9 * 43 AS col2
----
482

query I rowsort
SELECT 96 - 85 * - 97 col0
----
8341

onlyif mysql # DIV for integer division: 
query I rowsort label-6801
SELECT - 88 DIV - - 26 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6801
SELECT - 88 / - - 26 AS col1
----
-3

query I rowsort
SELECT - - NULLIF ( - 76, + 58 / 6 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT 66 - + COUNT( + 29 )
----
65

skipif mysql # not compatible
query I rowsort label-6803
SELECT 66 - + COUNT ( + 29 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6804
SELECT ALL + ( - - 30 ), - CAST( NULL AS SIGNED ) * - + MAX( - 99 ) AS col0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-6804
SELECT ALL + ( - - 30 ), - CAST ( NULL AS INTEGER ) * - + MAX ( - 99 ) AS col0
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT DISTINCT - 99 + + COALESCE ( - COUNT( * ), - NULLIF ( COUNT( * ), + + 80 * - - 67 + - AVG ( + - 97 ) - - COUNT( * ) + + - 11 * + + 7 - + 89 + - 27 / 86 ) ) AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT - 99 + + COALESCE ( - COUNT ( * ), - NULLIF ( COUNT ( * ), + + 80 * - - 67 + - AVG ( + - 97 ) - - COUNT ( * ) + + - 11 * + + 7 - + 89 + - 27 / 86 ) ) AS col0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6806
SELECT ALL - 81 - + + 65 * - ( + MAX( ALL + 29 ) ) - ( - 46 ) DIV + 80 AS col0
----
1804

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL - 81 - + + 65 * - ( + MAX ( ALL + 29 ) ) - ( - 46 ) / + 80 AS col0
----
1804

onlyif mysql # DIV for integer division: 
query II rowsort label-6807
SELECT - 88, 3 DIV - 9 AS col1
----
-88
0

skipif mysql # not compatible
query II rowsort label-6807
SELECT - 88, 3 / - 9 AS col1
----
-88
0

query I rowsort
SELECT NULLIF ( + 48, + ( - 63 ) ) * 74
----
3552

onlyif mysql # DIV for integer division: 
query I rowsort label-6809
SELECT 16 - + + 84 - + - 95 DIV 13
----
-61

skipif mysql # not compatible
query I rowsort label-6809
SELECT 16 - + + 84 - + - 95 / 13
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT 29, + MAX( ALL 47 ) + 3 AS col1
----
29
50

skipif mysql # not compatible
query II rowsort label-6810
SELECT 29, + MAX ( ALL 47 ) + 3 AS col1
----
29
50

query I rowsort
SELECT 96 * - 67 AS col1
----
-6432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6812
SELECT - COUNT( DISTINCT 77 ) DIV + 60 + 13 * 17
----
221

skipif mysql # not compatible
query I rowsort label-6812
SELECT - COUNT ( DISTINCT 77 ) / + 60 + 13 * 17
----
221

query I rowsort
SELECT DISTINCT - COALESCE ( ( CASE 31 WHEN 53 THEN NULL WHEN 39 * + 91 THEN 31 ELSE + 4 END ), + 20 ) AS col2
----
-4

query I rowsort
SELECT 22 * - 37 AS col2
----
-814

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6816
SELECT DISTINCT - SUM( - CAST( + 18 AS SIGNED ) ) * + 14 AS col0
----
252

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT - SUM ( - CAST ( + 18 AS INTEGER ) ) * + 14 AS col0
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-6817
SELECT ALL - 76 AS col2, COUNT( ALL - + 62 ) * + 47 AS col2
----
-76
47

skipif mysql # not compatible
query II rowsort label-6817
SELECT ALL - 76 AS col2, COUNT ( ALL - + 62 ) * + 47 AS col2
----
-76
47

query I rowsort
SELECT 12 * ( - - 43 )
----
516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6819
SELECT 47 * NULLIF ( - 74, - - COUNT( * ) + + CAST( + - 71 AS SIGNED ) )
----
-3478

skipif mysql # not compatible
query I rowsort label-6819
SELECT 47 * NULLIF ( - 74, - - COUNT ( * ) + + CAST ( + - 71 AS INTEGER ) )
----
-3478

query II rowsort
SELECT ( - - 58 ) + - 12, 67 AS col1
----
46
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT ALL ( + 45 ) DIV + - ( - - 25 ) + - 17 + - - 2
----
-16

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL ( + 45 ) / + - ( - - 25 ) + - 17 + - - 2
----
-16

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

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

query I rowsort
SELECT ALL + 50 + - COALESCE ( + - 29, 94 * + - 96 ) * - 93 AS col0
----
-2647

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6824
SELECT - + COUNT( - 35 ) * + + 74 + + CASE + 72 WHEN COUNT( * ) + + + 40 THEN NULL WHEN + CAST( 43 AS DECIMAL ) THEN - 82 + 80 ELSE - 66 END
----
-140

skipif mysql # not compatible
query I rowsort label-6824
SELECT - + COUNT ( - 35 ) * + + 74 + + CASE + 72 WHEN COUNT ( * ) + + + 40 THEN NULL WHEN + CAST ( 43 AS REAL ) THEN - 82 + 80 ELSE - 66 END
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL MAX( ALL + 33 ) + + 41 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL MAX ( ALL + 33 ) + + 41 AS col2
----
74

query I rowsort
SELECT DISTINCT - COALESCE ( + ( - + 61 ), 95 * + - 46 * - 95, - + 98 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6827
SELECT 65 + + - 55 * + CASE 50 WHEN CAST( 81 AS SIGNED ) THEN - 15 WHEN - 52 THEN + CAST( - - 26 AS SIGNED ) + + + CASE COALESCE ( - - 67, - CAST( 15 AS SIGNED ) + COUNT( * ) ) WHEN + 22 THEN NULL WHEN 48 THEN NULL ELSE CASE + 75 WHEN - 84 * + COUNT( * ) + - 30 THEN 83 + - 31 DIV COUNT( * ) END END + 57 WHEN + COUNT( * ) THEN + 75 * 74 ELSE 78 END
----
-4225

skipif mysql # not compatible
query I rowsort label-6827
SELECT 65 + + - 55 * + CASE 50 WHEN CAST ( 81 AS INTEGER ) THEN - 15 WHEN - 52 THEN + CAST ( - - 26 AS INTEGER ) + + + CASE COALESCE ( - - 67, - CAST ( 15 AS INTEGER ) + COUNT ( * ) ) WHEN + 22 THEN NULL WHEN 48 THEN NULL ELSE CASE + 75 WHEN - 84 * + COUNT ( * ) + - 30 THEN 83 + - 31 / COUNT ( * ) END END + 57 WHEN + COUNT ( * ) THEN + 75 * 74 ELSE 78 END
----
-4225

query I rowsort
SELECT + 29 - + 63 * 6 * 77
----
-29077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6829
SELECT - 4 * + 42 + + - 7 + + - 35 * - - 38 - + COALESCE ( + 15, - 84 ) + 86 + + COUNT( * ) + COUNT( DISTINCT + 89 ) DIV - ( - COUNT( * ) ) + - SUM( 55 - - ( 7 + - 7 ) ) * 19 AS col1
----
-2477

skipif mysql # not compatible
query I rowsort label-6829
SELECT - 4 * + 42 + + - 7 + + - 35 * - - 38 - + COALESCE ( + 15, - 84 ) + 86 + + COUNT ( * ) + COUNT ( DISTINCT + 89 ) / - ( - COUNT ( * ) ) + - SUM ( 55 - - ( 7 + - 7 ) ) * 19 AS col1
----
-2477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6830
SELECT + COALESCE ( + + 36, 59, + 5 * 10 * + + COUNT( * ) * - + ( - 0 ) * - CAST( 27 AS SIGNED ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-6830
SELECT + COALESCE ( + + 36, 59, + 5 * 10 * + + COUNT ( * ) * - + ( - 0 ) * - CAST ( 27 AS INTEGER ) ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL - 23 + CASE 60 WHEN - ( - + ( 58 ) ) THEN 58 / - 51 * - 46 * ( - COUNT( * ) ) WHEN + 33 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL - 23 + CASE 60 WHEN - ( - + ( 58 ) ) THEN 58 / - 51 * - 46 * ( - COUNT ( * ) ) WHEN + 33 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 65 * - 12
----
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL + COALESCE ( + - 16, - 44 * + 93, + MIN( ALL 68 ) * + 92 * - 54 + - ( 44 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + COALESCE ( + - 16, - 44 * + 93, + MIN ( ALL 68 ) * + 92 * - 54 + - ( 44 ) )
----
-16

query I rowsort
SELECT - 36 + - 88 AS col1
----
-124

query I rowsort
SELECT 0 * - - 25 * - 87 * - 97
----
0

query I rowsort
SELECT 6 + + - 26 col2
----
-20

query I rowsort
SELECT 16 + 79 * - 57 AS col2
----
-4487

query I rowsort
SELECT 90 * - - 43
----
3870

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT ALL - SUM( ALL + + 61 ) * - - 80 col1
----
-4880

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL - SUM ( ALL + + 61 ) * - - 80 col1
----
-4880

onlyif mysql # DIV for integer division: 
query I rowsort label-6840
SELECT 96 DIV - 90
----
-1

skipif mysql # not compatible
query I rowsort label-6840
SELECT 96 / - 90
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6841
SELECT ALL 77 DIV - - 82 * + CAST( + 98 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL 77 / - - 82 * + CAST ( + 98 AS INTEGER )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT NULLIF ( + ( + MAX( ALL 36 ) ), + - 75 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-6843
SELECT NULLIF ( + ( + MAX ( ALL 36 ) ), + - 75 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT - 12 - - + SUM( ALL + + 96 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6844
SELECT - 12 - - + SUM ( ALL + + 96 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT - 18 * + MAX( DISTINCT + 24 ) * + 84 col2
----
-36288

skipif mysql # not compatible
query I rowsort label-6845
SELECT - 18 * + MAX ( DISTINCT + 24 ) * + 84 col2
----
-36288

query I rowsort
SELECT ALL - 78 * + + 92 AS col2
----
-7176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT - CAST( NULL AS SIGNED ) * - 31 - + - 12 * + + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6847
SELECT - CAST ( NULL AS INTEGER ) * - 31 - + - 12 * + + 9 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT COALESCE ( + - 56, ( + COALESCE ( - 13, - - 66 + + COUNT( * ), + - 9 ) ) + - + 67 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6848
SELECT COALESCE ( + - 56, ( + COALESCE ( - 13, - - 66 + + COUNT ( * ), + - 9 ) ) + - + 67 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT DISTINCT + 64 * + + 45 * + CASE ( + 16 ) WHEN - - 71 / COUNT( * ) * - 33 + - + 30 THEN - COUNT( * ) WHEN + 53 THEN + - 58 WHEN - COUNT( * ) * - 74 THEN NULL ELSE 86 END * 40 + 76
----
9907276

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT + 64 * + + 45 * + CASE ( + 16 ) WHEN - - 71 / COUNT ( * ) * - 33 + - + 30 THEN - COUNT ( * ) WHEN + 53 THEN + - 58 WHEN - COUNT ( * ) * - 74 THEN NULL ELSE 86 END * 40 + 76
----
9907276

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT 90 * - COUNT( * ) - + - 10 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-6852
SELECT 90 * - COUNT ( * ) - + - 10 AS col0
----
-80

query I rowsort
SELECT ALL 7 * + 85 AS col2
----
595

query I rowsort
SELECT - 34 * 41 + + 12 + + 66 AS col0
----
-1316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-6855
SELECT - + 13 DIV - 1 + - 97 * + - 24 AS col0, NULLIF ( + 10, + 37 ), 28 * - AVG ( DISTINCT 0 ) * - + ( - CASE - + 34 WHEN 94 * 87 THEN 99 * + 60 END ) * - 35 + + NULLIF ( COUNT( * ), - 30 + - 18 ) * 58 + - CAST( 9 AS SIGNED ) col2
----
2341
10
NULL

skipif mysql # not compatible
query III rowsort label-6855
SELECT - + 13 / - 1 + - 97 * + - 24 AS col0, NULLIF ( + 10, + 37 ), 28 * - AVG ( DISTINCT 0 ) * - + ( - CASE - + 34 WHEN 94 * 87 THEN 99 * + 60 END ) * - 35 + + NULLIF ( COUNT ( * ), - 30 + - 18 ) * 58 + - CAST ( 9 AS INTEGER ) col2
----
2341
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT + 44 * + - 58 + + 20 + COUNT( * ) * - 32 + - COALESCE ( COUNT( * ), + 35 * - 75 + - + 0 + - 81 ) AS col0
----
-2565

skipif mysql # not compatible
query I rowsort label-6856
SELECT + 44 * + - 58 + + 20 + COUNT ( * ) * - 32 + - COALESCE ( COUNT ( * ), + 35 * - 75 + - + 0 + - 81 ) AS col0
----
-2565

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT + CASE + COALESCE ( 43, + 20, ( 51 ), + 18 ) WHEN + 64 - 17 + + + 39 * - + COUNT( * ) THEN + + 94 * - 27 + + - 49 WHEN + 15 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT + CASE + COALESCE ( 43, + 20, ( 51 ), + 18 ) WHEN + 64 - 17 + + + 39 * - + COUNT ( * ) THEN + + 94 * - 27 + + - 49 WHEN + 15 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6858
SELECT ALL + 90 * + 92 * ( + 10 ) DIV - 8 + - NULLIF ( + - 0, + CASE + COUNT( 57 ) WHEN + - 88 DIV - 91 - - 6 THEN - 60 ELSE NULL END ) + + 53 col1
----
-10297

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL + 90 * + 92 * ( + 10 ) / - 8 + - NULLIF ( + - 0, + CASE + COUNT ( 57 ) WHEN + - 88 / - 91 - - 6 THEN - 60 ELSE NULL END ) + + 53 col1
----
-10297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT + + COALESCE ( - 72, - CAST( - + 4 AS SIGNED ) * 73 )
----
-72

skipif mysql # not compatible
query I rowsort label-6859
SELECT + + COALESCE ( - 72, - CAST ( - + 4 AS INTEGER ) * 73 )
----
-72

query I rowsort
SELECT ALL + + 69 * ( + 49 ) AS col1
----
3381

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT + 80 DIV 76 * + - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6861
SELECT + 80 / 76 * + - 0 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT DISTINCT 19 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT 19 / 68 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6863
SELECT + 72 * - + 23 * - - SUM( DISTINCT - 14 ) - - 42 + 88 * + 20 AS col2, + CAST( - 87 AS SIGNED ) + - NULLIF ( 75, - 84 * NULLIF ( - 23, + 51 + + 96 ) ) AS col2
----
24986
-162

skipif mysql # not compatible
query II rowsort label-6863
SELECT + 72 * - + 23 * - - SUM ( DISTINCT - 14 ) - - 42 + 88 * + 20 AS col2, + CAST ( - 87 AS INTEGER ) + - NULLIF ( 75, - 84 * NULLIF ( - 23, + 51 + + 96 ) ) AS col2
----
24986
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6864
SELECT + - 36 - + 86 DIV 34 * + - 51 + 52 * COALESCE ( + MAX( + 24 ), + NULLIF ( + + 88, 84 ) + + + 91 * + 17, 46 + 59 )
----
1314

skipif mysql # not compatible
query I rowsort label-6864
SELECT + - 36 - + 86 / 34 * + - 51 + 52 * COALESCE ( + MAX ( + 24 ), + NULLIF ( + + 88, 84 ) + + + 91 * + 17, 46 + 59 )
----
1314

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT - COALESCE ( + 67, - + 11 * - COUNT( * ) ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-6865
SELECT - COALESCE ( + 67, - + 11 * - COUNT ( * ) ) AS col0
----
-67

query I rowsort
SELECT ALL 90 * + + 92 AS col0
----
8280

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT + MIN( 24 ) * 1
----
24

skipif mysql # not compatible
query I rowsort label-6867
SELECT + MIN ( 24 ) * 1
----
24

query I rowsort
SELECT - CASE - 56 WHEN - 42 THEN 42 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6869
SELECT - CASE WHEN + CAST( + COALESCE ( - COUNT( DISTINCT + 9 ), - 95, + COUNT( * ) * - - 11 + + COALESCE ( + MIN( + 24 ), COUNT( * ), 15 ) + + COUNT( * ) * 63 ) AS SIGNED ) NOT BETWEEN ( NULLIF ( 40, + CAST( NULL AS SIGNED ) - ( - 74 - + 52 ) ) ) AND + 22 * - CAST( NULL AS DECIMAL ) + 12 THEN - COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-6869
SELECT - CASE WHEN + CAST ( + COALESCE ( - COUNT ( DISTINCT + 9 ), - 95, + COUNT ( * ) * - - 11 + + COALESCE ( + MIN ( + 24 ), COUNT ( * ), 15 ) + + COUNT ( * ) * 63 ) AS INTEGER ) NOT BETWEEN ( NULLIF ( 40, + CAST ( NULL AS INTEGER ) - ( - 74 - + 52 ) ) ) AND + 22 * - CAST ( NULL AS REAL ) + 12 THEN - COUNT ( * ) END
----
1

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

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

query I rowsort
SELECT + 48 - - 88 col2
----
136

query I rowsort
SELECT + 24 - - 40
----
64

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

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

query I rowsort
SELECT - 1 * - 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6875
SELECT + NULLIF ( - 4, - 5 * + - COUNT( * ) ) + 19 AS col1, 1 AS col0
----
15
1

skipif mysql # not compatible
query II rowsort label-6875
SELECT + NULLIF ( - 4, - 5 * + - COUNT ( * ) ) + 19 AS col1, 1 AS col0
----
15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT - 94 - + COUNT( * ) + - - ( + 83 )
----
-12

skipif mysql # not compatible
query I rowsort label-6876
SELECT - 94 - + COUNT ( * ) + - - ( + 83 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT + 6 * CAST( 26 AS SIGNED ) AS col0
----
156

skipif mysql # not compatible
query I rowsort label-6877
SELECT + 6 * CAST ( 26 AS INTEGER ) AS col0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6878
SELECT + 65 + + CAST( NULL AS SIGNED ) * + - SUM( + 71 ) - + + 52 AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6879
SELECT - MIN( ALL - + 2 ) - - + MAX( ALL - CAST( NULL AS SIGNED ) ) + + 70 + CASE - - 61 WHEN - ( ( 21 ) ) THEN + 2 WHEN - 23 * - 97 - 22 THEN NULL END - COUNT( * ) / 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT - MIN ( ALL - + 2 ) - - + MAX ( ALL - CAST ( NULL AS INTEGER ) ) + + 70 + CASE - - 61 WHEN - ( ( 21 ) ) THEN + 2 WHEN - 23 * - 97 - 22 THEN NULL END - COUNT ( * ) / 95 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6880
SELECT ALL + ( - 96 ) DIV 48 + + 55 + - 70 AS col0, + 46 * + 30 * + 85
----
-17
117300

skipif mysql # not compatible
query II rowsort label-6880
SELECT ALL + ( - 96 ) / 48 + + 55 + - 70 AS col0, + 46 * + 30 * + 85
----
-17
117300

onlyif mysql # DIV for integer division: 
query I rowsort label-6881
SELECT ALL + 76 DIV - 23 + - + 55
----
-58

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL + 76 / - 23 + - + 55
----
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6882
SELECT ALL - CAST( - + 89 AS SIGNED ) DIV - - 29 + - + 73 col1
----
-70

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL - CAST ( - + 89 AS INTEGER ) / - - 29 + - + 73 col1
----
-70

query I rowsort
SELECT DISTINCT + 2 * - - 3 AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6884
SELECT ALL COUNT( * ) DIV - 54 + 6 - + ( - 92 ) + + + 62
----
160

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL COUNT ( * ) / - 54 + 6 - + ( - 92 ) + + + 62
----
160

query I rowsort
SELECT ALL ( + 66 ) * - 85 - - 37 + + + 84 AS col1
----
-5489

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

query I rowsort
SELECT - 12 * - - 36 + 89
----
-343

query I rowsort
SELECT - - 84 * - - 70 * - + 92
----
-540960

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

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

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

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL + - 33 / 69 - + 87 * - - COUNT ( * ) AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT ALL NULLIF ( + 83, 19 * - + 79 + + 27 ) * - + 90 / - + 39 + 50 - - CAST( NULL AS SIGNED ) * - 43 + + ( - - 95 ) * - 81 * 78 + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL NULLIF ( + 83, 19 * - + 79 + + 27 ) * - + 90 / - + 39 + 50 - - CAST ( NULL AS INTEGER ) * - 43 + + ( - - 95 ) * - 81 * 78 + - 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6892
SELECT - 37 * + - 32 + + - 66, - CAST( 89 AS SIGNED ) + 76 AS col1
----
1118
-13

skipif mysql # not compatible
query II rowsort label-6892
SELECT - 37 * + - 32 + + - 66, - CAST ( 89 AS INTEGER ) + 76 AS col1
----
1118
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT ALL + 42 * + + 96 - 16 DIV 95 DIV + 87
----
4032

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL + 42 * + + 96 - 16 / 95 / + 87
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT - + 57 * - + ( + - 75 ) - COUNT( DISTINCT + 23 ) * + 3 AS col0
----
-4278

skipif mysql # not compatible
query I rowsort label-6894
SELECT - + 57 * - + ( + - 75 ) - COUNT ( DISTINCT + 23 ) * + 3 AS col0
----
-4278

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6896
SELECT + COUNT( * ) * 59 + + 30 - - CAST( - 78 AS SIGNED ) + + 39 + + 23 * + CAST( + - 89 AS SIGNED )
----
-1997

skipif mysql # not compatible
query I rowsort label-6896
SELECT + COUNT ( * ) * 59 + + 30 - - CAST ( - 78 AS INTEGER ) + + 39 + + 23 * + CAST ( + - 89 AS INTEGER )
----
-1997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6897
SELECT + COUNT( * ) - + + 14 + ( - + COUNT( * ) ) + + 60 + 38 + ( + 24 ) - + + CAST( + COUNT( * ) AS SIGNED ) + - - ( - 22 ) + 7 * + 77
----
624

skipif mysql # not compatible
query I rowsort label-6897
SELECT + COUNT ( * ) - + + 14 + ( - + COUNT ( * ) ) + + 60 + 38 + ( + 24 ) - + + CAST ( + COUNT ( * ) AS INTEGER ) + - - ( - 22 ) + 7 * + 77
----
624

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT - ( + ( + 22 ) ) DIV 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6898
SELECT - ( + ( + 22 ) ) / 50 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT + 77 * MAX ( - 47 ) * ( - + 47 ) AS col2
----
170093

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

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

query I rowsort
SELECT DISTINCT + 68 * - - 96 * 10
----
65280

query I rowsort
SELECT ALL ( CASE 52 WHEN 6 THEN - 12 - - 99 END ) / 91
----
NULL

query II rowsort
SELECT ALL 89, - 91 AS col0
----
89
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6904
SELECT 16 + - 68, + 64 + COUNT( * ) * - - 28 AS col2
----
-52
92

skipif mysql # not compatible
query II rowsort label-6904
SELECT 16 + - 68, + 64 + COUNT ( * ) * - - 28 AS col2
----
-52
92

query II rowsort
SELECT ALL 44 AS col2, 27
----
44
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6906
SELECT DISTINCT 48 + + + COUNT( * ) col1, - 60 + + 67
----
49
7

skipif mysql # not compatible
query II rowsort label-6906
SELECT DISTINCT 48 + + + COUNT ( * ) col1, - 60 + + 67
----
49
7

query II rowsort
SELECT 39 AS col2, + 96 + + - 54 * 72
----
39
-3792

onlyif mysql # aggregate syntax: 
query II rowsort label-6908
SELECT 75 AS col1, + 25 + + 60 + NULLIF ( - NULLIF ( - 83, - + 52 * - COUNT( * ) ), + 44 ) + - + 7 * ( + + 48 ) AS col2
----
75
-168

skipif mysql # not compatible
query II rowsort label-6908
SELECT 75 AS col1, + 25 + + 60 + NULLIF ( - NULLIF ( - 83, - + 52 * - COUNT ( * ) ), + 44 ) + - + 7 * ( + + 48 ) AS col2
----
75
-168

query I rowsort
SELECT COALESCE ( + - 5, - 23 ) + + + 70
----
65

query I rowsort
SELECT 50 + 2 - 37 AS col2
----
15

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

skipif mysql # not compatible
query I rowsort label-6911
SELECT ALL 77 + + COUNT ( * ) AS col0
----
78

query II rowsort
SELECT - 10, + 80 * 92 AS col0
----
-10
7360

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

skipif mysql # not compatible
query I rowsort label-6913
SELECT COUNT ( * ) * 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT DISTINCT 6 + - - COALESCE ( + 40, + 18 ) - - - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT 6 + - - COALESCE ( + 40, + 18 ) - - - COUNT ( * )
----
45

query I rowsort
SELECT ALL 70 * ( + + 45 )
----
3150

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

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

query I rowsort
SELECT ( + 49 ) * + + 30 AS col2
----
1470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6918
SELECT - - 68 * - - 10 + 90 - - 5 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6918
SELECT - - 68 * - - 10 + 90 - - 5 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6919
SELECT + + 17, COALESCE ( - COUNT( * ), - - 26 * 36 DIV - + ( - 50 ) * + + 51, + 25 * 10 ) AS col0
----
17
-1

skipif mysql # not compatible
query II rowsort label-6919
SELECT + + 17, COALESCE ( - COUNT ( * ), - - 26 * 36 / - + ( - 50 ) * + + 51, + 25 * 10 ) AS col0
----
17
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6920
SELECT 61 + COUNT( * ) - - COUNT( * ) + - 38 * - 59 * ( - 91 ) * 78 * 98 + 57 / COUNT( * ) / + MAX( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT 61 + COUNT ( * ) - - COUNT ( * ) + - 38 * - 59 * ( - 91 ) * 78 * 98 + 57 / COUNT ( * ) / + MAX ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - NULLIF ( ( - 83 ), + 0 * - 36 + + 16 ) * - 50
----
-4150

query II rowsort
SELECT ALL - 20 AS col1, 53 AS col2
----
-20
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6923
SELECT DISTINCT + - NULLIF ( - 1, - - 46 - - - 75 + 35 - - 55 / + CAST( NULL AS DECIMAL ) * 96 * 4 * 46 / - 13 / - 3 * + 11 * - COALESCE ( ( COUNT( * ) ), - 24, 73 ) ) * 11
----
11

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT + - NULLIF ( - 1, - - 46 - - - 75 + 35 - - 55 / + CAST ( NULL AS REAL ) * 96 * 4 * 46 / - 13 / - 3 * + 11 * - COALESCE ( ( COUNT ( * ) ), - 24, 73 ) ) * 11
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6924
SELECT DISTINCT 13 DIV - + 75 + + COUNT( 56 ) + + + 49
----
50

skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT 13 / - + 75 + + COUNT ( 56 ) + + + 49
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT ALL + + SUM( - + 66 ) * - - 44
----
-2904

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL + + SUM ( - + 66 ) * - - 44
----
-2904

query I rowsort
SELECT DISTINCT 40 * + 69 + 64 * 4 * - + 23 AS col2
----
-3128

query I rowsort
SELECT DISTINCT + 44 * + + ( 19 ) + - 48 * - + 10 * - 14 + + 23 AS col0
----
-5861

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT DISTINCT MAX( DISTINCT - 34 ) * 33
----
-1122

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT MAX ( DISTINCT - 34 ) * 33
----
-1122

query II rowsort
SELECT 78 * 58 AS col2, - 41
----
4524
-41

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

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

query III rowsort
SELECT + + 12 AS col2, - 55 + + 33 * 33, 88 - + + 40 + + + 33 AS col2
----
12
1034
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT - NULLIF ( - + 30, 29 * - + ( - COUNT( * ) ) ) + 97
----
127

skipif mysql # not compatible
query I rowsort label-6932
SELECT - NULLIF ( - + 30, 29 * - + ( - COUNT ( * ) ) ) + 97
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT 58 * - 0 DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT 58 * - 0 / 36
----
0

query I rowsort
SELECT ALL 38 * + 97 * + - 91 AS col0
----
-335426

onlyif mysql # DIV for integer division: 
query II rowsort label-6935
SELECT DISTINCT - 17, 41 DIV - + 29 AS col0
----
-17
-1

skipif mysql # not compatible
query II rowsort label-6935
SELECT DISTINCT - 17, 41 / - + 29 AS col0
----
-17
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT ALL - SUM( - 26 ) + + 20 + - 76 col0
----
-30

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL - SUM ( - 26 ) + + 20 + - 76 col0
----
-30

query I rowsort
SELECT DISTINCT + 37 * - 38
----
-1406

query I rowsort
SELECT ALL - 92 + + + 58 + - 44 AS col1
----
-78

query I rowsort
SELECT 55 * 0 * - - 98 - 15
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6940
SELECT 6 + + NULLIF ( 62, - COUNT( * ) ) DIV - COUNT( DISTINCT - 23 ) + - 62 * - 21 + - - CAST( + 0 AS SIGNED ) AS col2
----
1246

skipif mysql # not compatible
query I rowsort label-6940
SELECT 6 + + NULLIF ( 62, - COUNT ( * ) ) / - COUNT ( DISTINCT - 23 ) + - 62 * - 21 + - - CAST ( + 0 AS INTEGER ) AS col2
----
1246

query I rowsort
SELECT 15 + - 74
----
-59

query II rowsort
SELECT DISTINCT + 74 + - 33, 98 AS col0
----
41
98

query I rowsort
SELECT ALL 29 + + 33 + + - 53
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT COUNT( * ) - + - 11
----
12

skipif mysql # not compatible
query I rowsort label-6944
SELECT COUNT ( * ) - + - 11
----
12

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6946
SELECT 30 + + 9 DIV COUNT( * ) col1
----
39

skipif mysql # not compatible
query I rowsort label-6946
SELECT 30 + + 9 / COUNT ( * ) col1
----
39

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6948
SELECT - ( + CAST( NULL AS SIGNED ) ) - + MAX( ALL + 73 ) + - - CAST( NULL AS SIGNED ) * + + 62 AS col0
----
NULL

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

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

query I rowsort
SELECT 45 - + 3 * + 93 + - + 2 AS col0
----
-236

onlyif mysql # aggregate syntax: 
query II rowsort label-6951
SELECT + 23 * + 62 AS col1, + COUNT( * )
----
1426
1

skipif mysql # not compatible
query II rowsort label-6951
SELECT + 23 * + 62 AS col1, + COUNT ( * )
----
1426
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT ALL + 39 * CASE + - 58 WHEN - CAST( - - 77 AS SIGNED ) THEN + - COALESCE ( 63, - 31 ) WHEN 58 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL + 39 * CASE + - 58 WHEN - CAST ( - - 77 AS INTEGER ) THEN + - COALESCE ( 63, - 31 ) WHEN 58 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT + 6 * MIN( ALL 27 ) - 54 * - - 22
----
-1026

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT + 6 * MIN ( ALL 27 ) - 54 * - - 22
----
-1026

query I rowsort
SELECT 24 + - - 91
----
115

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6956
SELECT ALL CAST( NULL AS SIGNED ) * - 31 AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6956
SELECT ALL CAST ( NULL AS INTEGER ) * - 31 AS col1, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6957
SELECT + - NULLIF ( 45, + + 70 * + + 94 - + ( COUNT( + 49 ) ) ) * + - COUNT( * ) + - NULLIF ( + - 3, 90 + COUNT( * ) ) + - + CAST( - 44 AS DECIMAL ) + + 41 + - - 96 + - 48 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT + - NULLIF ( 45, + + 70 * + + 94 - + ( COUNT ( + 49 ) ) ) * + - COUNT ( * ) + - NULLIF ( + - 3, 90 + COUNT ( * ) ) + - + CAST ( - 44 AS REAL ) + + 41 + - - 96 + - 48 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6958
SELECT - MAX( ALL 95 ) DIV + 23 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-6958
SELECT - MAX ( ALL 95 ) / + 23 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6959
SELECT - 66 * ( + 64 ) + + 63 + COUNT( * ) + + + CAST( + 96 AS SIGNED ) + - 30 * + COUNT( * )
----
-4094

skipif mysql # not compatible
query I rowsort label-6959
SELECT - 66 * ( + 64 ) + + 63 + COUNT ( * ) + + + CAST ( + 96 AS INTEGER ) + - 30 * + COUNT ( * )
----
-4094

query I rowsort
SELECT ALL - - 70 col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT + COUNT( * ) + - 10 * - - 94 + - - ( - + MIN( ALL - 37 ) ) - - CAST( NULL AS SIGNED ) * + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT + COUNT ( * ) + - 10 * - - 94 + - - ( - + MIN ( ALL - 37 ) ) - - CAST ( NULL AS INTEGER ) * + 37 AS col1
----
NULL

query I rowsort
SELECT ALL + + ( 80 ) * - + 96 + - ( + ( 46 ) ) * - - ( + 81 )
----
-11406

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT + - SUM( - - 85 ) + - - 96 - - ( - 84 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-6963
SELECT + - SUM ( - - 85 ) + - - 96 - - ( - 84 ) AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6964
SELECT - ( + 85 ) * + 37 + + 42 DIV ( COUNT( * ) )
----
-3103

skipif mysql # not compatible
query I rowsort label-6964
SELECT - ( + 85 ) * + 37 + + 42 / ( COUNT ( * ) )
----
-3103

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT MAX( - - 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6965
SELECT MAX ( - - 13 ) AS col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT ALL 14 DIV 5
----
2

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL 14 / 5
----
2

query I rowsort
SELECT + 37 + 9 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT + COUNT( ALL 33 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6968
SELECT + COUNT ( ALL 33 ) AS col2
----
1

query I rowsort
SELECT - 1 * - 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT ALL COALESCE ( + + COUNT( * ), - 95, - + 92 * 46 ) + - - 5 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL COALESCE ( + + COUNT ( * ), - 95, - + 92 * 46 ) + - - 5 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6971
SELECT + CAST( NULL AS SIGNED ) + + 78 / 63 + - ( - CAST( NULL AS SIGNED ) ) / - CASE + - 3 WHEN - + COUNT( * ) + + - 73 THEN + 64 WHEN AVG ( - 35 ) THEN - 77 * 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT + CAST ( NULL AS INTEGER ) + + 78 / 63 + - ( - CAST ( NULL AS INTEGER ) ) / - CASE + - 3 WHEN - + COUNT ( * ) + + - 73 THEN + 64 WHEN AVG ( - 35 ) THEN - 77 * 92 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT - 19 - - 27 * - MIN( - NULLIF ( + CAST( + + 81 AS SIGNED ), + 70 ) )
----
2168

skipif mysql # not compatible
query I rowsort label-6972
SELECT - 19 - - 27 * - MIN ( - NULLIF ( + CAST ( + + 81 AS INTEGER ), + 70 ) )
----
2168

query I rowsort
SELECT - 95 - + + 57 col2
----
-152

query I rowsort
SELECT + 65 * + - 70 * 35 * 14 AS col2
----
-2229500

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT + CASE + + 91 WHEN - COUNT( + 49 ) THEN NULL ELSE CASE - 2 WHEN - 70 THEN + 93 * - - ( + - 43 ) * + 47 END END * - 14 + ( - + 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT + CASE + + 91 WHEN - COUNT ( + 49 ) THEN NULL ELSE CASE - 2 WHEN - 70 THEN + 93 * - - ( + - 43 ) * + 47 END END * - 14 + ( - + 78 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6976
SELECT DISTINCT COUNT( * ) AS col0, - COUNT( * ) - + - COALESCE ( + COUNT( * ), 90 * 89 + - + ( - 13 ), - 71 )
----
1
0

skipif mysql # not compatible
query II rowsort label-6976
SELECT DISTINCT COUNT ( * ) AS col0, - COUNT ( * ) - + - COALESCE ( + COUNT ( * ), 90 * 89 + - + ( - 13 ), - 71 )
----
1
0

query III rowsort
SELECT - 59 + + 55 - 81, + 47 AS col0, + 46 col1
----
-85
47
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6978
SELECT ALL 53 col0, 91 * - - 83 + + ( 26 ) + - CASE - - 79 WHEN + 19 * + 35 - + 91 + + 9 * - + 7 + - + ( - 87 ) * - CASE - COUNT( * ) WHEN 17 THEN NULL WHEN + + 23 THEN + ( 96 ) END + - CAST( NULL AS SIGNED ) * + 56 THEN - 60 ELSE NULL END * - 33 * + 97 AS col0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-6978
SELECT ALL 53 col0, 91 * - - 83 + + ( 26 ) + - CASE - - 79 WHEN + 19 * + 35 - + 91 + + 9 * - + 7 + - + ( - 87 ) * - CASE - COUNT ( * ) WHEN 17 THEN NULL WHEN + + 23 THEN + ( 96 ) END + - CAST ( NULL AS INTEGER ) * + 56 THEN - 60 ELSE NULL END * - 33 * + 97 AS col0
----
53
NULL

query I rowsort
SELECT - 35 + - 14
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6980
SELECT DISTINCT COUNT( * ) AS col1, 3 + COUNT( * ) AS col2
----
1
4

skipif mysql # not compatible
query II rowsort label-6980
SELECT DISTINCT COUNT ( * ) AS col1, 3 + COUNT ( * ) AS col2
----
1
4

query I rowsort
SELECT ALL + 61 - + - 99 col0
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-6982
SELECT - 99 DIV - 66 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6982
SELECT - 99 / - 66 AS col2
----
1

query I rowsort
SELECT - 5 * 4
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6984
SELECT ALL - - ( - 50 ) * - - 11 AS col0, - CAST( + 40 AS SIGNED )
----
-550
-40

skipif mysql # not compatible
query II rowsort label-6984
SELECT ALL - - ( - 50 ) * - - 11 AS col0, - CAST ( + 40 AS INTEGER )
----
-550
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6985
SELECT DISTINCT - ( - CAST( + - 41 AS SIGNED ) ) * 21
----
-861

skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT - ( - CAST ( + - 41 AS INTEGER ) ) * 21
----
-861

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

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT - - COUNT ( + 49 ) * 14 AS col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT ALL 74 DIV 45 col2
----
1

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL 74 / 45 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT - 44 + + MAX( 6 ) - + 89 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-6988
SELECT - 44 + + MAX ( 6 ) - + 89 AS col1
----
-127

query I rowsort
SELECT - 88 * COALESCE ( - - 97, 88 )
----
-8536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6990
SELECT + CASE AVG ( + 27 ) WHEN + COUNT( * ) THEN NULL ELSE - 13 / + 87 - + 95 + + - COALESCE ( - 59, - 65 - - COUNT( 68 ) ) + - 16 + + NULLIF ( CAST( NULL AS SIGNED ), + - 55 ) + - 41 * - ( + 88 ) END * - CASE WHEN NULL <> ( NULL ) THEN - CAST( NULL AS SIGNED ) WHEN NOT NULL IS NOT NULL THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT + CASE AVG ( + 27 ) WHEN + COUNT ( * ) THEN NULL ELSE - 13 / + 87 - + 95 + + - COALESCE ( - 59, - 65 - - COUNT ( 68 ) ) + - 16 + + NULLIF ( CAST ( NULL AS INTEGER ), + - 55 ) + - 41 * - ( + 88 ) END * - CASE WHEN NULL <> ( NULL ) THEN - CAST ( NULL AS INTEGER ) WHEN NOT NULL IS NOT NULL THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - ( - 17 ) AS col1
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT - 63 DIV - 44 - - 58 + + + 31 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6992
SELECT - 63 / - 44 - - 58 + + + 31 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT + + MAX( + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-6993
SELECT + + MAX ( + 77 )
----
77

query I rowsort
SELECT ALL + + 14 * - - 72 + + 78 + + + 53 AS col2
----
1139

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

skipif mysql # not compatible
query I rowsort label-6995
SELECT + COUNT ( * ) / - 37 + + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT - + COUNT( * ) * - 87 - - 69 / + 69 + + 17 - - + COUNT( * ) - + - 71 - + + 76 * CASE COUNT( * ) WHEN + + NULLIF ( + - 25, + - 72 ) + 61 + - 87 * 36 * - + 23 THEN - + 48 END * + 80 * 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6996
SELECT - + COUNT ( * ) * - 87 - - 69 / + 69 + + 17 - - + COUNT ( * ) - + - 71 - + + 76 * CASE COUNT ( * ) WHEN + + NULLIF ( + - 25, + - 72 ) + 61 + - 87 * 36 * - + 23 THEN - + 48 END * + 80 * 14 AS col1
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - 15, + 22 ) AS col0
----
15

query I rowsort
SELECT ALL - 7 * - - 40 + 98 + 64
----
-118

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

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

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

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

query I rowsort
SELECT 55 * + + 6 + 81 * + - 30
----
-2100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT + NULLIF ( - - 83, + COUNT( * ) * - COUNT( * ) ) col1
----
83

skipif mysql # not compatible
query I rowsort label-7003
SELECT + NULLIF ( - - 83, + COUNT ( * ) * - COUNT ( * ) ) col1
----
83

query I rowsort
SELECT ALL + 28 * - 30 + + 8 AS col0
----
-832

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT + 36 / 16 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT + 36 / 16 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 2 * + 71 AS col2
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT + 24 - + 17 + - + 15 / + - CASE + COALESCE ( - 23, - - ( - 47 ), + 89 ) WHEN + 56 THEN - - 7 * COUNT( * ) - - - 77 + - 74 WHEN - MIN( - 74 ) THEN NULL END * - + 72 + - - NULLIF ( - 12, 11 ) + 29 / - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT + 24 - + 17 + - + 15 / + - CASE + COALESCE ( - 23, - - ( - 47 ), + 89 ) WHEN + 56 THEN - - 7 * COUNT ( * ) - - - 77 + - 74 WHEN - MIN ( - 74 ) THEN NULL END * - + 72 + - - NULLIF ( - 12, 11 ) + 29 / - 77 AS col1
----
NULL

query I rowsort
SELECT + 0 - 46
----
-46

query I rowsort
SELECT ALL 70 * ( + 73 )
----
5110

query I rowsort
SELECT + 76 + - 1 * + + 1 AS col1
----
75

query I rowsort
SELECT + 93 * - 78 * + 48 AS col1
----
-348192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7013
SELECT DISTINCT 17 * 42 * - + CAST( NULL AS SIGNED ) * + - NULLIF ( - CAST( NULL AS DECIMAL ), - ( 18 ) + + - COUNT( DISTINCT 92 ) + - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT 17 * 42 * - + CAST ( NULL AS INTEGER ) * + - NULLIF ( - CAST ( NULL AS REAL ), - ( 18 ) + + - COUNT ( DISTINCT 92 ) + - 10 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7014
SELECT + 28 * - 81 DIV - COUNT( * ) AS col2
----
2268

skipif mysql # not compatible
query I rowsort label-7014
SELECT + 28 * - 81 / - COUNT ( * ) AS col2
----
2268

query I rowsort
SELECT - 5 - 26 col0
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT ALL CASE - 64 WHEN - + 72 * - COUNT( * ) * + + 61 + - 11 THEN - 65 - - 59 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL CASE - 64 WHEN - + 72 * - COUNT ( * ) * + + 61 + - 11 THEN - 65 - - 59 END AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7018
SELECT - COUNT ( - ( - 65 ) )
----
-1

query I rowsort
SELECT - 32 + - ( + 51 )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7020
SELECT - - 68 DIV - + 68 * + COUNT( * ) + - 14 AS col0, 36
----
-15
36

skipif mysql # not compatible
query II rowsort label-7020
SELECT - - 68 / - + 68 * + COUNT ( * ) + - 14 AS col0, 36
----
-15
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT DISTINCT - 29 + + CAST( - - 50 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT - 29 + + CAST ( - - 50 AS INTEGER )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT - - 18 - + - ( - + ( + COUNT( * ) ) ) AS col2, - 23 AS col2
----
17
-23

skipif mysql # not compatible
query II rowsort label-7022
SELECT - - 18 - + - ( - + ( + COUNT ( * ) ) ) AS col2, - 23 AS col2
----
17
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7023
SELECT - 8 DIV + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT - 8 / + 28 AS col1
----
0

query I rowsort
SELECT ALL - 27 + 58 - + 19 * - ( - + 51 ) AS col2
----
-938

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7025
SELECT ALL + CASE + - 26 WHEN + 36 * 64 * ( - + 13 ) + + ( - CAST( NULL AS DECIMAL ) ) THEN + 84 * + 3 + - COUNT( * ) + 83 WHEN - 83 THEN NULLIF ( - - 63, + 23 ) END + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL + CASE + - 26 WHEN + 36 * 64 * ( - + 13 ) + + ( - CAST ( NULL AS REAL ) ) THEN + 84 * + 3 + - COUNT ( * ) + 83 WHEN - 83 THEN NULLIF ( - - 63, + 23 ) END + 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7026
SELECT DISTINCT - + 52 + - COUNT( * ) + - + 75 - - 21 * ( 31 ) DIV 60 * + + COALESCE ( - 73, + 58, - 62 + NULLIF ( - 44, + CASE + - 0 WHEN + 34 THEN NULL WHEN - 1 * + 25 + - + 91 + - 48 THEN - COUNT( * ) + + 30 END DIV - 28 ) + + 60 * + CAST( NULL AS SIGNED ) ) + 6 * 93 DIV - 55
----
-868

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT - + 52 + - COUNT ( * ) + - + 75 - - 21 * ( 31 ) / 60 * + + COALESCE ( - 73, + 58, - 62 + NULLIF ( - 44, + CASE + - 0 WHEN + 34 THEN NULL WHEN - 1 * + 25 + - + 91 + - 48 THEN - COUNT ( * ) + + 30 END / - 28 ) + + 60 * + CAST ( NULL AS INTEGER ) ) + 6 * 93 / - 55
----
-868

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

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT + + 90 + + - COUNT ( * ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL - 61 + - MAX( DISTINCT + + ( - 2 ) ) + + - COUNT( DISTINCT - 10 )
----
-60

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - 61 + - MAX ( DISTINCT + + ( - 2 ) ) + + - COUNT ( DISTINCT - 10 )
----
-60

query I rowsort
SELECT + ( + - 69 ) * + - 59
----
4071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7030
SELECT 96 DIV 67 + 47 * CAST( - 13 AS SIGNED ) AS col1, - MIN( ALL - + 69 ) AS col1
----
-610
69

skipif mysql # not compatible
query II rowsort label-7030
SELECT 96 / 67 + 47 * CAST ( - 13 AS INTEGER ) AS col1, - MIN ( ALL - + 69 ) AS col1
----
-610
69

query I rowsort
SELECT 41 * + 98
----
4018

query I rowsort
SELECT 15 + 71
----
86

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

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

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL - MIN ( - 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT 31 + + - MIN( DISTINCT + 59 ) * - COUNT( * ) col1
----
90

skipif mysql # not compatible
query I rowsort label-7035
SELECT 31 + + - MIN ( DISTINCT + 59 ) * - COUNT ( * ) col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT DISTINCT 71 * + COALESCE ( - 56, COUNT( * ) * - 89 ), + 42 AS col2
----
-3976
42

skipif mysql # not compatible
query II rowsort label-7036
SELECT DISTINCT 71 * + COALESCE ( - 56, COUNT ( * ) * - 89 ), + 42 AS col2
----
-3976
42

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

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

query I rowsort
SELECT 21 + - + 74
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7039
SELECT DISTINCT COALESCE ( - CAST( + 40 AS SIGNED ), - + ( + - 41 ) DIV - COUNT( ALL - - 2 ) ) * NULLIF ( - COUNT( * ), + 43 )
----
40

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT COALESCE ( - CAST ( + 40 AS INTEGER ), - + ( + - 41 ) / - COUNT ( ALL - - 2 ) ) * NULLIF ( - COUNT ( * ), + 43 )
----
40

query I rowsort
SELECT 31 + + + 26
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7041
SELECT 66 - ( + SUM( ALL + + 7 ) ) + 67, - 62 * + - COUNT( * ) AS col2
----
126
62

skipif mysql # not compatible
query II rowsort label-7041
SELECT 66 - ( + SUM ( ALL + + 7 ) ) + 67, - 62 * + - COUNT ( * ) AS col2
----
126
62

query I rowsort
SELECT ALL - 5 col0
----
-5

query II rowsort
SELECT - 0 * + 79 + - 16 * - 15 * - + 70 AS col0, 38 + 95 * + 88 * + CASE + 40 WHEN - 14 THEN - + 68 END AS col2
----
-16800
NULL

query I rowsort
SELECT 56 * + 29
----
1624

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT CASE - ( - - 27 ) WHEN - + 96 THEN + 95 ELSE + 65 END * - COUNT( + + CASE 61 WHEN + 76 - - 40 THEN + + 2 + + 71 + - - 90 + - + 21 * 30 ELSE + 33 / - 4 END ) + - 1 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7045
SELECT CASE - ( - - 27 ) WHEN - + 96 THEN + 95 ELSE + 65 END * - COUNT ( + + CASE 61 WHEN + 76 - - 40 THEN + + 2 + + 71 + - - 90 + - + 21 * 30 ELSE + 33 / - 4 END ) + - 1 AS col1
----
-66

query I rowsort
SELECT ALL 58 * - 72
----
-4176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7047
SELECT DISTINCT + COUNT( * ) DIV + 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT + COUNT ( * ) / + 34 AS col0
----
0

query I rowsort
SELECT ALL ( 27 ) col0
----
27

query I rowsort
SELECT 99 + + + 0
----
99

query III rowsort
SELECT - + 86 AS col1, + 20 * - + 19 AS col0, + 56
----
-86
-380
56

query I rowsort
SELECT 1 * + - 86 col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7052
SELECT ALL - COUNT( - 18 ) + + 54, + NULLIF ( 42, - - 33 + 89 * MIN( ALL + + 24 ) ) * + 59 + + - 88 AS col1
----
53
2390

skipif mysql # not compatible
query II rowsort label-7052
SELECT ALL - COUNT ( - 18 ) + + 54, + NULLIF ( 42, - - 33 + 89 * MIN ( ALL + + 24 ) ) * + 59 + + - 88 AS col1
----
53
2390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7053
SELECT ALL CAST( - - 80 AS SIGNED ) + - 36 AS col2, - 11 - - COUNT( * ) col1
----
44
-10

skipif mysql # not compatible
query II rowsort label-7053
SELECT ALL CAST ( - - 80 AS INTEGER ) + - 36 AS col2, - 11 - - COUNT ( * ) col1
----
44
-10

query I rowsort
SELECT ALL COALESCE ( - 80, - - 75 * + + 85 )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-7055
SELECT ALL 72 AS col2, MAX( 64 ) + - 0 + 37
----
72
101

skipif mysql # not compatible
query II rowsort label-7055
SELECT ALL 72 AS col2, MAX ( 64 ) + - 0 + 37
----
72
101

query I rowsort
SELECT + COALESCE ( - 99, + 66 ) + - - 1 AS col2
----
-98

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7058
SELECT + COALESCE ( - + 41, 73, + 65 * - + 63 ) * - 14 * + - COALESCE ( + + ( + COUNT( * ) ), - 87 + + - 82 ) * + 4 + - + 52 / - 33 + 92 + - CAST( NULL AS SIGNED ) - + + 47 / - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7058
SELECT + COALESCE ( - + 41, 73, + 65 * - + 63 ) * - 14 * + - COALESCE ( + + ( + COUNT ( * ) ), - 87 + + - 82 ) * + 4 + - + 52 / - 33 + 92 + - CAST ( NULL AS INTEGER ) - + + 47 / - - 93
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7059
SELECT 78 + + CASE - 46 WHEN + 3 THEN + + 15 * + 98 WHEN - 6 DIV + 33 THEN NULL ELSE 52 DIV + 94 END AS col2, 5
----
78
5

skipif mysql # not compatible
query II rowsort label-7059
SELECT 78 + + CASE - 46 WHEN + 3 THEN + + 15 * + 98 WHEN - 6 / + 33 THEN NULL ELSE 52 / + 94 END AS col2, 5
----
78
5

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

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL + MAX ( 88 ) * COUNT ( * ) AS col0
----
88

query I rowsort
SELECT 25 * 13
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL - CASE - 84 WHEN 24 - 31 * - - 2 THEN + ( - - COUNT( * ) ) + 77 WHEN 36 * COUNT( DISTINCT 22 ) THEN - 80 - - - 74 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL - CASE - 84 WHEN 24 - 31 * - - 2 THEN + ( - - COUNT ( * ) ) + 77 WHEN 36 * COUNT ( DISTINCT 22 ) THEN - 80 - - - 74 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - ( - 93 ) - 4 col0
----
89

query I rowsort
SELECT 24 * + - 99
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL - COUNT( 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - COUNT ( 48 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7066
SELECT ALL - 5 AS col1, 20 * - + 95 + COUNT( * ) + + - 38
----
-5
-1937

skipif mysql # not compatible
query II rowsort label-7066
SELECT ALL - 5 AS col1, 20 * - + 95 + COUNT ( * ) + + - 38
----
-5
-1937

query I rowsort
SELECT ALL + 66 * - + 35
----
-2310

query I rowsort
SELECT DISTINCT - 21 + + 42 + + + 25
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT 24 + + 27 + - COUNT( * ) - 29 * + - COALESCE ( - ( COUNT( * ) ), - 67, - 97 ) * 2 * - - MAX( DISTINCT - - 75 ) * + 55
----
-239200

skipif mysql # not compatible
query I rowsort label-7069
SELECT 24 + + 27 + - COUNT ( * ) - 29 * + - COALESCE ( - ( COUNT ( * ) ), - 67, - 97 ) * 2 * - - MAX ( DISTINCT - - 75 ) * + 55
----
-239200

query II rowsort
SELECT ALL - 96 + 3, 7 + - + 43 AS col0
----
-93
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-7071
SELECT ALL - 44 AS col0, 61 DIV + 94 * 19 AS col2
----
-44
0

skipif mysql # not compatible
query II rowsort label-7071
SELECT ALL - 44 AS col0, 61 / + 94 * 19 AS col2
----
-44
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7072
SELECT DISTINCT + + CASE 98 WHEN 67 * + - 66 * - MAX( DISTINCT 28 ) THEN - - 23 WHEN + 3 * + - 9 THEN CASE + + 45 WHEN + 46 THEN + CAST( + + 23 AS SIGNED ) ELSE NULL END + + ( - COUNT( DISTINCT 31 ) ) - + 35 - + COUNT( + 71 ) / - + 42 WHEN - 44 THEN 51 + CAST( 73 AS SIGNED ) ELSE NULL END + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT + + CASE 98 WHEN 67 * + - 66 * - MAX ( DISTINCT 28 ) THEN - - 23 WHEN + 3 * + - 9 THEN CASE + + 45 WHEN + 46 THEN + CAST ( + + 23 AS INTEGER ) ELSE NULL END + + ( - COUNT ( DISTINCT 31 ) ) - + 35 - + COUNT ( + 71 ) / - + 42 WHEN - 44 THEN 51 + CAST ( 73 AS INTEGER ) ELSE NULL END + 29 AS col1
----
NULL

query I rowsort
SELECT ALL - 47 + 68
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7074
SELECT ALL - COUNT( * ) + - - 85 AS col1, CAST( NULL AS SIGNED ) + + + 89 * - 40 * - 70 AS col1
----
84
NULL

skipif mysql # not compatible
query II rowsort label-7074
SELECT ALL - COUNT ( * ) + - - 85 AS col1, CAST ( NULL AS INTEGER ) + + + 89 * - 40 * - 70 AS col1
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT + + 66 + - ( + 16 ) * + - COUNT( + 66 )
----
82

skipif mysql # not compatible
query I rowsort label-7075
SELECT + + 66 + - ( + 16 ) * + - COUNT ( + 66 )
----
82

query I rowsort
SELECT DISTINCT + 2 * + 21
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT + 53 * + SUM( DISTINCT ( + 17 ) ) - + - 82
----
983

skipif mysql # not compatible
query I rowsort label-7077
SELECT + 53 * + SUM ( DISTINCT ( + 17 ) ) - + - 82
----
983

onlyif mysql # aggregate syntax: 
query II rowsort label-7078
SELECT DISTINCT ( - + MAX( - + 21 ) ) * 17 * - - 93 + - + 5 AS col2, - 23
----
33196
-23

skipif mysql # not compatible
query II rowsort label-7078
SELECT DISTINCT ( - + MAX ( - + 21 ) ) * 17 * - - 93 + - + 5 AS col2, - 23
----
33196
-23

query I rowsort
SELECT + 97 + 18 AS col2
----
115

query I rowsort
SELECT ALL - ( - COALESCE ( - 88, + 60 ) ) * + 3 + + 44
----
-220

query II rowsort
SELECT ALL + 20 - + 16 + + 27 + 55 + 91 * + 92 AS col0, 71 * - 15 AS col0
----
8458
-1065

query II rowsort
SELECT - 73 AS col1, - 8
----
-73
-8

query I rowsort
SELECT DISTINCT + 18 * + 44 - + 63 AS col1
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL + NULLIF ( - 77, + 66 * 87 * + + 45 / MIN( + - 36 ) * 32 / - 93 )
----
-77

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL + NULLIF ( - 77, + 66 * 87 * + + 45 / MIN ( + - 36 ) * 32 / - 93 )
----
-77

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

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

query I rowsort
SELECT + 95 + - 46 + 40 * 54 AS col0
----
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT DISTINCT + SUM( DISTINCT + CASE 32 WHEN + + 51 / + 35 + - 72 - + 48 + - 17 THEN 88 ELSE - 53 END )
----
-53

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT + SUM ( DISTINCT + CASE 32 WHEN + + 51 / + 35 + - 72 - + 48 + - 17 THEN 88 ELSE - 53 END )
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7088
SELECT + 24 + - CASE 90 WHEN - MAX( ALL - 80 ) THEN NULL ELSE + 51 END * + + ( 85 ) * + 0 DIV 48 * + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-7088
SELECT + 24 + - CASE 90 WHEN - MAX ( ALL - 80 ) THEN NULL ELSE + 51 END * + + ( 85 ) * + 0 / 48 * + - COUNT ( * )
----
24

query I rowsort
SELECT + 83 * + 78
----
6474

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT - CASE - + 91 WHEN + 2 THEN + 28 / + 68 ELSE NULL END * - SUM( + + COALESCE ( + 41, + ( 57 ) + + + 47 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7090
SELECT - CASE - + 91 WHEN + 2 THEN + 28 / + 68 ELSE NULL END * - SUM ( + + COALESCE ( + 41, + ( 57 ) + + + 47 ) ) AS col1
----
NULL

query I rowsort
SELECT - 49 * + 32 + + + 89 AS col0
----
-1479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT - ( + COUNT( * ) ) - + + 43 + - CAST( NULL AS SIGNED ) + + + 30 * + SUM( - 57 ) * 33 * - + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT - ( + COUNT ( * ) ) - + + 43 + - CAST ( NULL AS INTEGER ) + + + 30 * + SUM ( - 57 ) * 33 * - + 88
----
NULL

query I rowsort
SELECT COALESCE ( + - 86, + - ( 44 ) ) col1
----
-86

query I rowsort
SELECT ALL - 43 * + 58
----
-2494

onlyif mysql # DIV for integer division: 
query II rowsort label-7095
SELECT ALL - 42 * 19 * - - 16 + ( + 7 ) DIV + 91 * - 39 AS col1, 46 + - + 65 AS col1
----
-12768
-19

skipif mysql # not compatible
query II rowsort label-7095
SELECT ALL - 42 * 19 * - - 16 + ( + 7 ) / + 91 * - 39 AS col1, 46 + - + 65 AS col1
----
-12768
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT DISTINCT + 59 * ( 8 ) + + + COALESCE ( - 55, - ( - + 92 ) + + COUNT( * ) ) + 91 AS col1
----
508

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT + 59 * ( 8 ) + + + COALESCE ( - 55, - ( - + 92 ) + + COUNT ( * ) ) + 91 AS col1
----
508

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT 71 * + 9 * 48 + + 27 DIV + - 45
----
30672

skipif mysql # not compatible
query I rowsort label-7097
SELECT 71 * + 9 * 48 + + 27 / + - 45
----
30672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7098
SELECT ALL 23 * + COALESCE ( NULLIF ( COUNT( * ), 43 ), - 75 ) + CASE - - ( + 37 ) WHEN - CASE + CAST( - 67 AS SIGNED ) WHEN - 69 THEN - 86 * + - 81 WHEN - 30 * 90 THEN NULL END + - - 48 - + - 48 + 73 + - 69 * - + 67 + + NULLIF ( - COUNT( * ) + - 54 / CAST( NULL AS DECIMAL ), - 86 ) THEN NULL WHEN + ( 45 ) THEN - 25 - 93 END * + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL 23 * + COALESCE ( NULLIF ( COUNT ( * ), 43 ), - 75 ) + CASE - - ( + 37 ) WHEN - CASE + CAST ( - 67 AS INTEGER ) WHEN - 69 THEN - 86 * + - 81 WHEN - 30 * 90 THEN NULL END + - - 48 - + - 48 + 73 + - 69 * - + 67 + + NULLIF ( - COUNT ( * ) + - 54 / CAST ( NULL AS REAL ), - 86 ) THEN NULL WHEN + ( 45 ) THEN - 25 - 93 END * + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL + 80 * - - CASE + 30 WHEN COUNT( * ) * COUNT( * ) + 45 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 98 END AS col0
----
-7840

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL + 80 * - - CASE + 30 WHEN COUNT ( * ) * COUNT ( * ) + 45 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 98 END AS col0
----
-7840

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT + MIN( + - 51 ) * COUNT( * ) * - - 88 + - 46
----
-4534

skipif mysql # not compatible
query I rowsort label-7100
SELECT + MIN ( + - 51 ) * COUNT ( * ) * - - 88 + - 46
----
-4534

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7103
SELECT DISTINCT + NULLIF ( + - COUNT( - + 77 ), + CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT + NULLIF ( + - COUNT ( - + 77 ), + CAST ( CAST ( NULL AS REAL ) AS REAL ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL 35 * + COUNT( * ) + + + 32 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL 35 * + COUNT ( * ) + + + 32 AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7105
SELECT - 38 * + + CAST( NULL AS SIGNED ), - 82 AS col0
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-7105
SELECT - 38 * + + CAST ( NULL AS INTEGER ), - 82 AS col0
----
NULL
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7106
SELECT - - 80 + CAST( NULL AS DECIMAL ) * - 79 * - 7 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT - - 80 + CAST ( NULL AS REAL ) * - 79 * - 7 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT - + NULLIF ( + 43, 60 ) * - ( + - COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-7107
SELECT - + NULLIF ( + 43, 60 ) * - ( + - COUNT ( * ) )
----
-43

query I rowsort
SELECT ALL - 49 * + 19 * - 72 + 20 col1
----
67052

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT + SUM( ALL - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-7109
SELECT + SUM ( ALL - 20 ) AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7110
SELECT DISTINCT - 98 + - - CASE 31 WHEN + 9 * - 45 - 65 + - SUM( ALL - 64 ) THEN COALESCE ( 47, - - 1 * + - COUNT( + CAST( NULL AS SIGNED ) ) + - 21 / + + 44, - 16 ) END + + ( + 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT - 98 + - - CASE 31 WHEN + 9 * - 45 - 65 + - SUM ( ALL - 64 ) THEN COALESCE ( 47, - - 1 * + - COUNT ( + CAST ( NULL AS INTEGER ) ) + - 21 / + + 44, - 16 ) END + + ( + 28 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7111
SELECT - COALESCE ( + 33, 53 ) + 63 DIV 65 * - SUM( DISTINCT 72 ) * + - 90 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-7111
SELECT - COALESCE ( + 33, 53 ) + 63 / 65 * - SUM ( DISTINCT 72 ) * + - 90 AS col2
----
-33

query I rowsort
SELECT DISTINCT + 6 * 14
----
84

query I rowsort
SELECT - CASE - 63 WHEN - - 36 * + - 58 THEN 2 END * + + AVG ( DISTINCT + + 57 ) AS col1
----
NULL

query I rowsort
SELECT + + 79 * 26 + - ( 73 ) + + 48 * - + ( 29 ) AS col2
----
589

query I rowsort
SELECT ALL - + ( 61 ) * 1 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT - - CASE - 71 WHEN + + 70 THEN + + 52 WHEN + 15 * - - 50 THEN NULL ELSE NULL END + + - COUNT( + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7116
SELECT - - CASE - 71 WHEN + + 70 THEN + + 52 WHEN + 15 * - - 50 THEN NULL ELSE NULL END + + - COUNT ( + 86 )
----
NULL

query I rowsort
SELECT + + 29 + 89 + - - 87 * 21 AS col1
----
1945

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ALL - + 4 * + COUNT( * ) + - ( - 55 ) * + 29
----
1591

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL - + 4 * + COUNT ( * ) + - ( - 55 ) * + 29
----
1591

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7120
SELECT + 17 DIV - COUNT( * ) - NULLIF ( + 37, - 13 DIV - CASE ( + 68 ) WHEN + 96 DIV + 70 + + 9 + + 2 + 30 THEN 39 * 22 + + - 14 + 46 WHEN - 11 DIV - 84 THEN NULL END * + + 86 ) * 41
----
-1534

skipif mysql # not compatible
query I rowsort label-7120
SELECT + 17 / - COUNT ( * ) - NULLIF ( + 37, - 13 / - CASE ( + 68 ) WHEN + 96 / + 70 + + 9 + + 2 + 30 THEN 39 * 22 + + - 14 + 46 WHEN - 11 / - 84 THEN NULL END * + + 86 ) * 41
----
-1534

query I rowsort
SELECT + 37 + 77
----
114

query I rowsort
SELECT DISTINCT 49 * 26 AS col1
----
1274

onlyif mysql # DIV for integer division: 
query I rowsort label-7123
SELECT DISTINCT 60 DIV + + 97
----
0

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT 60 / + + 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT + 89 DIV + 24
----
3

skipif mysql # not compatible
query I rowsort label-7124
SELECT + 89 / + 24
----
3

query I rowsort
SELECT - 1 * - 59
----
59

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

skipif mysql # not compatible
query I rowsort label-7126
SELECT - COUNT ( * ) * - CAST ( + 69 AS INTEGER ) * COUNT ( * ) - + - COUNT ( * )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7127
SELECT + CASE + 10 WHEN + 89 * - CAST( + + 36 AS SIGNED ) * - CAST( NULL AS SIGNED ) * + - CAST( - CASE - + COALESCE ( - - 69, 21 ) WHEN - + 63 THEN + 2 * - - AVG ( + 88 ) ELSE NULL END AS SIGNED ) + + 18 THEN NULL WHEN + - SUM( ALL + 90 ) THEN - 93 * - COUNT( * ) + COALESCE ( + + 59, + CASE ( COUNT( * ) ) WHEN + 99 THEN 92 ELSE NULL END + 56 ) + + 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT + CASE + 10 WHEN + 89 * - CAST ( + + 36 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + - CAST ( - CASE - + COALESCE ( - - 69, 21 ) WHEN - + 63 THEN + 2 * - - AVG ( + 88 ) ELSE NULL END AS INTEGER ) + + 18 THEN NULL WHEN + - SUM ( ALL + 90 ) THEN - 93 * - COUNT ( * ) + COALESCE ( + + 59, + CASE ( COUNT ( * ) ) WHEN + 99 THEN 92 ELSE NULL END + 56 ) + + 4 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT + ( - 57 ) + - - 29 + - COUNT( * ) + - 69 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-7128
SELECT + ( - 57 ) + - - 29 + - COUNT ( * ) + - 69 AS col2
----
-98

query I rowsort
SELECT DISTINCT 89 * - 97 col2
----
-8633

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT ALL 19 DIV - 94 + - ( + + 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL 19 / - 94 + - ( + + 75 )
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7131
SELECT DISTINCT 88 DIV 29 DIV - + 72 + ( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT 88 / 29 / - + 72 + ( - 73 )
----
-73

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

query I rowsort
SELECT + 99 * - + 24 AS col2
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT 3 * - 69 * - - MAX( + 95 ) * 97 - + 34 * - 87 * + COUNT( DISTINCT - - 18 )
----
-1904547

skipif mysql # not compatible
query I rowsort label-7134
SELECT 3 * - 69 * - - MAX ( + 95 ) * 97 - + 34 * - 87 * + COUNT ( DISTINCT - - 18 )
----
-1904547

query I rowsort
SELECT ( - 79 ) AS col1
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7136
SELECT ( - - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT ( - - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7137
SELECT 75 DIV + MAX( ALL - 98 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT 75 / + MAX ( ALL - 98 ) AS col0
----
0

query I rowsort
SELECT 10 * - 70 AS col2
----
-700

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

skipif mysql # not compatible
query I rowsort label-7139
SELECT ALL - - 48 + - CAST ( 98 AS INTEGER )
----
-50

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT DISTINCT - ( 85 ) * + 76 * - 29 * - 73 * + - 44 + + 33 * 69 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7141
SELECT DISTINCT - ( 85 ) * + 76 * - 29 * - 73 * + - 44 + + 33 * 69 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 2 + - 43 + - 24 + + 41 AS col0
----
-28

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT 84 DIV + - 41 + + 75 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7144
SELECT 84 / + - 41 + + 75 AS col1
----
73

query I rowsort
SELECT ALL 42 * + 35
----
1470

query II rowsort
SELECT ALL - - 46, - 13 AS col1
----
46
-13

query I rowsort
SELECT DISTINCT - 47 - + COALESCE ( - 1, 96 + + + 32 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-7148
SELECT 74 col2, - COUNT( * ) * + 80 * COALESCE ( + ( + 98 ), 70 * - - 29 + - ( + 52 ) ) + - + 28 * 9
----
74
-8092

skipif mysql # not compatible
query II rowsort label-7148
SELECT 74 col2, - COUNT ( * ) * + 80 * COALESCE ( + ( + 98 ), 70 * - - 29 + - ( + 52 ) ) + - + 28 * 9
----
74
-8092

query II rowsort
SELECT DISTINCT 73, + 63 AS col2
----
73
63

query I rowsort
SELECT ALL + COALESCE ( 25, + 72 + - 97 ) col0
----
25

query I rowsort
SELECT 13 * - 39 + 40 * - - 33 AS col0
----
813

query I rowsort
SELECT 7 * 82
----
574

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT + 52 + - - NULLIF ( + + 87, 12 * - - 56 + 15 + + CASE - CASE - + 45 WHEN 41 * + 55 + - 7 - COUNT( * ) + - 97 * - + COUNT( 77 ) THEN COUNT( * ) END WHEN - + 23 THEN NULL WHEN + 27 THEN - + 68 * + + 9 ELSE NULL END ) - + - 44 * - ( + COUNT( * ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7153
SELECT + 52 + - - NULLIF ( + + 87, 12 * - - 56 + 15 + + CASE - CASE - + 45 WHEN 41 * + 55 + - 7 - COUNT ( * ) + - 97 * - + COUNT ( 77 ) THEN COUNT ( * ) END WHEN - + 23 THEN NULL WHEN + 27 THEN - + 68 * + + 9 ELSE NULL END ) - + - 44 * - ( + COUNT ( * ) ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT CASE + 69 WHEN NULLIF ( - - 21, - + 75 ) * CASE - - 86 WHEN + 19 THEN COUNT( * ) END + + + 20 + + 77 + + + 36 THEN - 90 + + 16 END - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT CASE + 69 WHEN NULLIF ( - - 21, - + 75 ) * CASE - - 86 WHEN + 19 THEN COUNT ( * ) END + + + 20 + + 77 + + + 36 THEN - 90 + + 16 END - + 64
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7155
SELECT ALL - CAST( 0 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL - CAST ( 0 AS INTEGER ) col2
----
0

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

query I rowsort
SELECT 56 + + 92 * 4
----
424

onlyif mysql # aggregate syntax: 
query II rowsort label-7158
SELECT 17, COUNT( * ) col0
----
17
1

skipif mysql # not compatible
query II rowsort label-7158
SELECT 17, COUNT ( * ) col0
----
17
1

query II rowsort
SELECT ALL 63, ( + 80 ) col0
----
63
80

query I rowsort
SELECT DISTINCT - 45 * - 13
----
585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7161
SELECT 12 * - CAST( - 3 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-7161
SELECT 12 * - CAST ( - 3 AS INTEGER )
----
36

query I rowsort
SELECT 50 * 64 col2
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT 34 + - COUNT( - 19 )
----
33

skipif mysql # not compatible
query I rowsort label-7163
SELECT 34 + - COUNT ( - 19 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7164
SELECT 40 * - MIN( DISTINCT - - ( 86 ) ), NULLIF ( + 60, - ( + + 75 ) * + + COUNT( * ) - - + 3 ) * - 31 * - 29 col2
----
-3440
53940

skipif mysql # not compatible
query II rowsort label-7164
SELECT 40 * - MIN ( DISTINCT - - ( 86 ) ), NULLIF ( + 60, - ( + + 75 ) * + + COUNT ( * ) - - + 3 ) * - 31 * - 29 col2
----
-3440
53940

query I rowsort
SELECT 76 * + - 91 * - 36
----
248976

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

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

query I rowsort
SELECT ALL 65 + 29
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7168
SELECT ALL 41 + - 59 + - COALESCE ( 44, COUNT( DISTINCT - 33 ), + 99 - + - 95 * CASE + 57 WHEN + 55 * + + 94 * - + ( + 10 ) THEN + COUNT( * ) DIV 16 * 77 * + - 17 * - NULLIF ( - 57, + 42 ) WHEN + 72 * - 27 * + 20 + - 17 THEN NULL ELSE - 20 * 15 END, COUNT( * ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL 41 + - 59 + - COALESCE ( 44, COUNT ( DISTINCT - 33 ), + 99 - + - 95 * CASE + 57 WHEN + 55 * + + 94 * - + ( + 10 ) THEN + COUNT ( * ) / 16 * 77 * + - 17 * - NULLIF ( - 57, + 42 ) WHEN + 72 * - 27 * + 20 + - 17 THEN NULL ELSE - 20 * 15 END, COUNT ( * ) ) AS col0
----
-62

query I rowsort
SELECT 66 * - 44 * + - 51 * 95 * 12 AS col2
----
168838560

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT - 35 + + - 12 * 27 * 58 * ( - - 51 ) * - - MAX( - 45 ) col2
----
43127605

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT - 35 + + - 12 * 27 * 58 * ( - - 51 ) * - - MAX ( - 45 ) col2
----
43127605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7171
SELECT DISTINCT - 26 + - ( - - MAX( ALL + 97 ) ) col2, + COUNT( * ) * + - 53 + + 42 + + - 36 + - 10 - - 99 + 38 - CASE + + 44 WHEN - 12 THEN - 74 END / - - 21 / - CAST( NULL AS SIGNED )
----
-123
NULL

skipif mysql # not compatible
query II rowsort label-7171
SELECT DISTINCT - 26 + - ( - - MAX ( ALL + 97 ) ) col2, + COUNT ( * ) * + - 53 + + 42 + + - 36 + - 10 - - 99 + 38 - CASE + + 44 WHEN - 12 THEN - 74 END / - - 21 / - CAST ( NULL AS INTEGER )
----
-123
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT COUNT( ALL 57 ) + - 14 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7172
SELECT COUNT ( ALL 57 ) + - 14 AS col1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT ALL + 8 + 27 DIV ( 37 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL + 8 + 27 / ( 37 ) AS col2
----
8

query I rowsort
SELECT ( + 45 ) * + 46 * - - 65 * 63 - - 73 + NULLIF ( 33, + 39 + - + ( + 20 ) * + 17 + + 65 ) * - - 94
----
8479825

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT 1 - + CASE - 81 WHEN + 64 * - 0 + + + 68 THEN 41 / + SUM( - COALESCE ( CASE - 10 WHEN + - 11 THEN + + 25 + - 36 ELSE - + 12 END, - 1 / - 63 + + 88 - + 29 ) ) + + 37 WHEN + 13 THEN + MIN( + 21 ) WHEN 89 THEN NULL END / 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT 1 - + CASE - 81 WHEN + 64 * - 0 + + + 68 THEN 41 / + SUM ( - COALESCE ( CASE - 10 WHEN + - 11 THEN + + 25 + - 36 ELSE - + 12 END, - 1 / - 63 + + 88 - + 29 ) ) + + 37 WHEN + 13 THEN + MIN ( + 21 ) WHEN 89 THEN NULL END / 44 AS col1
----
NULL

query I rowsort
SELECT ALL 58 * + 8 * 85
----
39440

query I rowsort
SELECT ALL 34 * 16
----
544

query I rowsort
SELECT 84 + 61 + + 1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT ALL 52 - + + ( + - 9 ) + + 22 + + 82 + 56 * COUNT( * ) * - 33 + 67 * - - 43 * + NULLIF ( - ( + - 72 ), - 60 ) AS col0
----
205749

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL 52 - + + ( + - 9 ) + + 22 + + 82 + 56 * COUNT ( * ) * - 33 + 67 * - - 43 * + NULLIF ( - ( + - 72 ), - 60 ) AS col0
----
205749

query II rowsort
SELECT + 43 + 31 col2, 74
----
74
74

query I rowsort
SELECT - + 19 * - 87 + 44 AS col2
----
1697

query I rowsort
SELECT ALL - 98 - + - 77
----
-21

query I rowsort
SELECT DISTINCT - COALESCE ( - 22, 79 )
----
22

query I rowsort
SELECT DISTINCT - - 35 col0
----
35

query I rowsort
SELECT + 9 * + 66 AS col2
----
594

query I rowsort
SELECT + 83 + + 41
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT DISTINCT + 90 - + + NULLIF ( COUNT( * ), + 48 * NULLIF ( + - CASE 22 WHEN + + 38 THEN + COUNT( * ) - + - 30 + + 26 WHEN + 62 THEN - 14 * 98 - + 7 END, ( ( - + MAX( - 84 ) ) ) ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT + 90 - + + NULLIF ( COUNT ( * ), + 48 * NULLIF ( + - CASE 22 WHEN + + 38 THEN + COUNT ( * ) - + - 30 + + 26 WHEN + 62 THEN - 14 * 98 - + 7 END, ( ( - + MAX ( - 84 ) ) ) ) ) AS col2
----
89

query II rowsort
SELECT ( - + 30 ) + - ( + 51 ) col2, + 15 AS col2
----
-81
15

query I rowsort
SELECT 22 + - 40 AS col0
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT - + MIN( ALL + 47 ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-7191
SELECT - + MIN ( ALL + 47 ) col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7192
SELECT ALL 33 DIV NULLIF ( + - CAST( + - 46 AS SIGNED ), + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL 33 / NULLIF ( + - CAST ( + - 46 AS INTEGER ), + 66 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7193
SELECT ALL + 7 * + 47 + - - COUNT( * ) + - 88 + ( SUM( - + 68 ) ) DIV 96 AS col2
----
242

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + 7 * + 47 + - - COUNT ( * ) + - 88 + ( SUM ( - + 68 ) ) / 96 AS col2
----
242

query I rowsort
SELECT ALL + 96 * + 88 AS col0
----
8448

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT + MIN( DISTINCT 75 ) * - 19 col0
----
-1425

skipif mysql # not compatible
query I rowsort label-7196
SELECT + MIN ( DISTINCT 75 ) * - 19 col0
----
-1425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7197
SELECT - 8 DIV NULLIF ( + 90, NULLIF ( - 6, MAX( + 93 ) DIV + 50 + 52 DIV - 75 ) ) DIV + + CAST( - 36 AS SIGNED ) + + 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7197
SELECT - 8 / NULLIF ( + 90, NULLIF ( - 6, MAX ( + 93 ) / + 50 + 52 / - 75 ) ) / + + CAST ( - 36 AS INTEGER ) + + 12 AS col0
----
12

query I rowsort
SELECT DISTINCT ( - 52 ) + + 35
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT 27 - 32 * ( + + COUNT( DISTINCT - + 7 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7199
SELECT 27 - 32 * ( + + COUNT ( DISTINCT - + 7 ) ) AS col0
----
-5

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7201
SELECT CAST( NULL AS DECIMAL ) / - ( COUNT( * ) ) * - - 6 * AVG ( - + 50 ) + - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT CAST ( NULL AS REAL ) / - ( COUNT ( * ) ) * - - 6 * AVG ( - + 50 ) + - 46 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 39 + - CASE 30 WHEN - 40 / NULLIF ( 55, 20 * + + 9 / - + 77 ) + 86 THEN NULL ELSE 56 + - 97 END * + 46 AS col2
----
1847

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

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

query I rowsort
SELECT ALL - 21 + - + 39 + - ( - 93 ) + - + 25
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-7205
SELECT DISTINCT MAX( DISTINCT NULLIF ( COALESCE ( 1, - 75 ), + 12 ) ) col1, - 7 + 94
----
1
87

skipif mysql # not compatible
query II rowsort label-7205
SELECT DISTINCT MAX ( DISTINCT NULLIF ( COALESCE ( 1, - 75 ), + 12 ) ) col1, - 7 + 94
----
1
87

query I rowsort
SELECT 75 + + - 52
----
23

query I rowsort
SELECT DISTINCT - 39 + 53 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL + 76 + - SUM( - - 33 ) + 21
----
64

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL + 76 + - SUM ( - - 33 ) + 21
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL + 21 + - - COUNT( * ) + - 85 * 24 col1
----
-2018

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL + 21 + - - COUNT ( * ) + - 85 * 24 col1
----
-2018

query I rowsort
SELECT 59 * + + 73 col2
----
4307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7211
SELECT - SUM( - + 31 ) DIV CAST( - 45 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT - SUM ( - + 31 ) / CAST ( - 45 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT DISTINCT + 4 * - 93 * - 82 * - COUNT( * )
----
-30504

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT + 4 * - 93 * - 82 * - COUNT ( * )
----
-30504

onlyif mysql # DIV for integer division: 
query II rowsort label-7213
SELECT + 9 AS col1, 54 + - + 86 * 93 DIV 93 DIV ( + 84 ) - - + 81 + 70
----
9
204

skipif mysql # not compatible
query II rowsort label-7213
SELECT + 9 AS col1, 54 + - + 86 * 93 / 93 / ( + 84 ) - - + 81 + 70
----
9
204

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT + 70 + + SUM( ALL + 33 ) - - - ( + 40 ) + + 81 * 5 + + 97
----
565

skipif mysql # not compatible
query I rowsort label-7214
SELECT + 70 + + SUM ( ALL + 33 ) - - - ( + 40 ) + + 81 * 5 + + 97
----
565

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

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

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

query I rowsort
SELECT NULLIF ( + 77, + 69 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7218
SELECT - - 74 * 38 DIV + 29 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7218
SELECT - - 74 * 38 / + 29 AS col0
----
96

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

query I rowsort
SELECT ALL - 63 * + 54
----
-3402

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT + + COUNT( * ) * - - 99 - + - 44 + + - 63 col2
----
80

skipif mysql # not compatible
query I rowsort label-7221
SELECT + + COUNT ( * ) * - - 99 - + - 44 + + - 63 col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7222
SELECT + CAST( 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-7222
SELECT + CAST ( 91 AS INTEGER )
----
91

query I rowsort
SELECT ALL 64 * 54 * 12 AS col2
----
41472

query I rowsort
SELECT DISTINCT - CASE + 50 WHEN - 99 THEN - + 82 END * - 36 + 23 / - 68
----
NULL

query I rowsort
SELECT DISTINCT + 58 * + 5
----
290

query I rowsort
SELECT DISTINCT + 95 * - 28
----
-2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7227
SELECT - + 42 * AVG ( - CAST( NULL AS SIGNED ) ) * COUNT( * ) + + 89 - + COUNT( * ) / 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT - + 42 * AVG ( - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + + 89 - + COUNT ( * ) / 83 AS col0
----
NULL

query I rowsort
SELECT + 61 * - 9
----
-549

query I rowsort
SELECT + - 56 - 32
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7230
SELECT ALL + CASE + 66 WHEN AVG ( ALL - 39 ) * + COUNT( * ) - - + 41 + + MIN( + 42 ) * - COUNT( * ) THEN NULL ELSE + 46 DIV + - 37 + 95 END AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL + CASE + 66 WHEN AVG ( ALL - 39 ) * + COUNT ( * ) - - + 41 + + MIN ( + 42 ) * - COUNT ( * ) THEN NULL ELSE + 46 / + - 37 + 95 END AS col2
----
94

query I rowsort
SELECT ALL + 87 + + 94
----
181

query I rowsort
SELECT CASE WHEN NOT 92 IS NULL THEN - 23 ELSE NULL END AS col2
----
-23

query I rowsort
SELECT - - 12 * + 0 + 16 + - 44
----
-28

query I rowsort
SELECT + - 6 * 29 col0
----
-174

query I rowsort
SELECT - - 6 * - 9 * + - ( - - 43 ) - + 66 + + - 76 col2
----
2180

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT 15 * - MAX( + + 30 ) - - + 48 AS col2
----
-402

skipif mysql # not compatible
query I rowsort label-7237
SELECT 15 * - MAX ( + + 30 ) - - + 48 AS col2
----
-402

onlyif mysql # aggregate syntax: 
query II rowsort label-7238
SELECT + COUNT( * ) + + ( - COUNT( - 90 ) ) col1, 69
----
0
69

skipif mysql # not compatible
query II rowsort label-7238
SELECT + COUNT ( * ) + + ( - COUNT ( - 90 ) ) col1, 69
----
0
69

query I rowsort
SELECT ALL ( + 17 ) + 40 AS col0
----
57

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

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT 66 + COUNT ( * ) AS col0
----
67

query I rowsort
SELECT ALL 25 + 45 * 3
----
160

query I rowsort
SELECT DISTINCT 83 * - - 0 AS col2
----
0

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

query I rowsort
SELECT DISTINCT 30 + + 83 + + + 88
----
201

query II rowsort
SELECT ALL 89 + - 70 - + 49 * 10 AS col0, COALESCE ( ( + 34 ), + 88 + - 92 ) + + 79 + 55 * 18 col2
----
-471
1103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT - NULLIF ( + - CAST( - 42 AS SIGNED ), - + 67 )
----
-42

skipif mysql # not compatible
query I rowsort label-7246
SELECT - NULLIF ( + - CAST ( - 42 AS INTEGER ), - + 67 )
----
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT + COUNT( * ) * - + 26 * - 99
----
2574

skipif mysql # not compatible
query I rowsort label-7248
SELECT + COUNT ( * ) * - + 26 * - 99
----
2574

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT DISTINCT + COUNT( * ) - - + 36
----
37

skipif mysql # not compatible
query I rowsort label-7249
SELECT DISTINCT + COUNT ( * ) - - + 36
----
37

query II rowsort
SELECT DISTINCT 57, - 16 col1
----
57
-16

query I rowsort
SELECT ALL COALESCE ( + 96, + 92 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7252
SELECT ALL + 90 - - CAST( NULL AS SIGNED ) + 99 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + 90 - - CAST ( NULL AS INTEGER ) + 99 + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT - ( + 7 ) * - 20 * 50 * 62 - + SUM( 52 )
----
433948

skipif mysql # not compatible
query I rowsort label-7253
SELECT - ( + 7 ) * - 20 * 50 * 62 - + SUM ( 52 )
----
433948

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7255
SELECT - 12 * 87 - - 30 + 46 + + - 70 * - 56 * + 75 DIV + + COUNT( * ) + + + 15 + - 84 DIV 9 col2, 62 AS col1
----
293038
62

skipif mysql # not compatible
query II rowsort label-7255
SELECT - 12 * 87 - - 30 + 46 + + - 70 * - 56 * + 75 / + + COUNT ( * ) + + + 15 + - 84 / 9 col2, 62 AS col1
----
293038
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT DISTINCT + MAX( DISTINCT 70 ) * - 16 + - 50 + + 45 + + 22
----
-1103

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + MAX ( DISTINCT 70 ) * - 16 + - 50 + + 45 + + 22
----
-1103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT + 82 * COUNT( * ) + - + 2
----
80

skipif mysql # not compatible
query I rowsort label-7258
SELECT + 82 * COUNT ( * ) + - + 2
----
80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT + + 37 * + - 94 * - - 74 + 13 * COUNT( * )
----
-257359

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + + 37 * + - 94 * - - 74 + 13 * COUNT ( * )
----
-257359

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - SUM( DISTINCT + 21 ) * + 5
----
-105

skipif mysql # not compatible
query I rowsort label-7261
SELECT - SUM ( DISTINCT + 21 ) * + 5
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL + + SUM( ALL + + 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + + SUM ( ALL + + 87 ) AS col1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT - + 2 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-7263
SELECT - + 2 / 40
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7264
SELECT DISTINCT + 59 * 14 / - 54 - CASE - CASE - ( + 76 ) WHEN + + 64 THEN NULL WHEN 42 THEN - + 90 WHEN 51 - + COUNT( * ) / - 58 THEN NULL END WHEN + 51 THEN 1 * NULLIF ( + + 15, + + 5 ) / + 47 + 0 + 46 / + - SUM( ALL 94 ) + + ( CAST( NULL AS SIGNED ) ) + + + 40 + + 48 WHEN - 14 THEN NULL WHEN + 88 THEN NULL ELSE NULL END + - 65 * + COUNT( ALL 5 * 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT + 59 * 14 / - 54 - CASE - CASE - ( + 76 ) WHEN + + 64 THEN NULL WHEN 42 THEN - + 90 WHEN 51 - + COUNT ( * ) / - 58 THEN NULL END WHEN + 51 THEN 1 * NULLIF ( + + 15, + + 5 ) / + 47 + 0 + 46 / + - SUM ( ALL 94 ) + + ( CAST ( NULL AS INTEGER ) ) + + + 40 + + 48 WHEN - 14 THEN NULL WHEN + 88 THEN NULL ELSE NULL END + - 65 * + COUNT ( ALL 5 * 65 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7265
SELECT DISTINCT 94 DIV + 37 + + 93
----
95

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT 94 / + 37 + + 93
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7266
SELECT ALL + 30 * + + 63 + - - 57 + - CAST( NULL AS SIGNED ) * - COUNT( * ) * - COALESCE ( 19, - 91 / CAST( 32 AS SIGNED ), + MAX( - 88 ) + - 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL + 30 * + + 63 + - - 57 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - COALESCE ( 19, - 91 / CAST ( 32 AS INTEGER ), + MAX ( - 88 ) + - 67 ) AS col0
----
NULL

query II rowsort
SELECT + 81 + + + 92 AS col0, 30 + - 61 AS col0
----
173
-31

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

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL - COUNT ( * ) * - + MAX ( ALL - 86 ) AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT + + 44 + + + 28 DIV + + 48 - - ( 31 ) + 33 * - 99 AS col1
----
-3192

skipif mysql # not compatible
query I rowsort label-7269
SELECT + + 44 + + + 28 / + + 48 - - ( 31 ) + 33 * - 99 AS col1
----
-3192

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

query I rowsort
SELECT ALL - - 77 * 46 * + 2
----
7084

query I rowsort
SELECT DISTINCT 53 * - + 14 + 72 - + 78 * - 11 + + 73 * + - 51 * + - 49 * - - 19 * + - CASE 56 WHEN - ( 78 ) THEN - 48 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7273
SELECT MAX( ALL + - 37 ), + COUNT( * ) col2
----
-37
1

skipif mysql # not compatible
query II rowsort label-7273
SELECT MAX ( ALL + - 37 ), + COUNT ( * ) col2
----
-37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT ALL 28 * - 10 - + + COUNT( * ) + - COALESCE ( - 33, - 52, - + 12 ) AS col1
----
-248

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL 28 * - 10 - + + COUNT ( * ) + - COALESCE ( - 33, - 52, - + 12 ) AS col1
----
-248

query I rowsort
SELECT 59 - 63 + + + 51
----
47

query I rowsort
SELECT 65 + - 98 + + 35
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT CASE ( - + 85 ) WHEN + 19 THEN NULL ELSE - COUNT( * ) END * + 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7277
SELECT CASE ( - + 85 ) WHEN + 19 THEN NULL ELSE - COUNT ( * ) END * + 75 AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7278
SELECT CAST( NULL AS SIGNED ) * - + 16 col2, 88 * - COUNT( * ) * + CASE 89 WHEN - COUNT( * ) THEN NULL ELSE + 75 + - 95 - - - 7 END * - 67 * + MIN( 93 ) AS col2
----
NULL
-14804856

skipif mysql # not compatible
query II rowsort label-7278
SELECT CAST ( NULL AS INTEGER ) * - + 16 col2, 88 * - COUNT ( * ) * + CASE 89 WHEN - COUNT ( * ) THEN NULL ELSE + 75 + - 95 - - - 7 END * - 67 * + MIN ( 93 ) AS col2
----
NULL
-14804856

query I rowsort
SELECT ALL 11 - + 40 * + + 72
----
-2869

query I rowsort
SELECT 94 * 28 AS col0
----
2632

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT ALL 29 * - + 44 * NULLIF ( ( 9 ), - - COUNT( * ) + - 54 * - + 29 ) AS col1
----
-11484

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL 29 * - + 44 * NULLIF ( ( 9 ), - - COUNT ( * ) + - 54 * - + 29 ) AS col1
----
-11484

query II rowsort
SELECT 0 + 46 AS col1, - 77
----
46
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT NULLIF ( + CAST( NULL AS SIGNED ), + 4 * - - 34 ) + 40 * 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), + 4 * - - 34 ) + 40 * 88
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7284
SELECT 84 DIV - COUNT( - + 28 )
----
-84

skipif mysql # not compatible
query I rowsort label-7284
SELECT 84 / - COUNT ( - + 28 )
----
-84

query I rowsort
SELECT 19 * + 44 AS col1
----
836

query I rowsort
SELECT ALL + NULLIF ( + 29, ( + 68 ) ) AS col1
----
29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7288
SELECT - COUNT( * ) / - - 80 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT - COUNT ( * ) / - - 80 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL - 69 / COUNT ( * )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7290
SELECT CAST( - 99 AS SIGNED ) * 59 * + 49 + - + 50 - + MAX( - NULLIF ( + 82, + 19 ) ) AS col0
----
-286177

skipif mysql # not compatible
query I rowsort label-7290
SELECT CAST ( - 99 AS INTEGER ) * 59 * + 49 + - + 50 - + MAX ( - NULLIF ( + 82, + 19 ) ) AS col0
----
-286177

query I rowsort
SELECT ALL 86 + - 49 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7292
SELECT DISTINCT - COALESCE ( + 38, - 63 * 4 + - 18 * 88 * + 90 * + 28 + - 11 * - 76 * + - CASE CAST( NULL AS SIGNED ) WHEN 93 THEN + 37 ELSE + + CASE - 23 WHEN + - 16 THEN + - 0 * + 30 WHEN + 62 * + 51 + MIN( ALL - 30 ) - 23 THEN + CASE 4 WHEN + SUM( - 67 ) THEN + SUM( 6 ) ELSE NULL END END * 36 + - 92 * + 5 END - + SUM( ALL - 34 + ( - 49 ) ) ) * - COUNT( * ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT - COALESCE ( + 38, - 63 * 4 + - 18 * 88 * + 90 * + 28 + - 11 * - 76 * + - CASE CAST ( NULL AS INTEGER ) WHEN 93 THEN + 37 ELSE + + CASE - 23 WHEN + - 16 THEN + - 0 * + 30 WHEN + 62 * + 51 + MIN ( ALL - 30 ) - 23 THEN + CASE 4 WHEN + SUM ( - 67 ) THEN + SUM ( 6 ) ELSE NULL END END * 36 + - 92 * + 5 END - + SUM ( ALL - 34 + ( - 49 ) ) ) * - COUNT ( * ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL - 34 + + + 75 + + CASE + ( 49 ) WHEN + 83 + COUNT( * ) / 12 * + 44 THEN NULL WHEN + 5 THEN NULL ELSE - - 37 END
----
78

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - 34 + + + 75 + + CASE + ( 49 ) WHEN + 83 + COUNT ( * ) / 12 * + 44 THEN NULL WHEN + 5 THEN NULL ELSE - - 37 END
----
78

query I rowsort
SELECT - + 5 * - - 88 - + + 88 - - + 72 AS col1
----
-456

query I rowsort
SELECT + 5 - + 1 + - 84 * 37 AS col2
----
-3104

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

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

query II rowsort
SELECT + 19 * + 20 - + 30 * + - 54 * + 93, 7 AS col1
----
151040
7

query I rowsort
SELECT + 88 * + NULLIF ( - 48, - 21 + + + 49 * + 36 * - 59 * - AVG ( ALL - + 63 ) ) AS col0
----
-4224

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

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

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

query I rowsort
SELECT - 58 * 61 - + NULLIF ( - 59, - + 8 ) + 57
----
-3422

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7302
SELECT DISTINCT - + CAST( - 49 AS SIGNED ) AS col2, 98 + + 36 AS col2
----
49
134

skipif mysql # not compatible
query II rowsort label-7302
SELECT DISTINCT - + CAST ( - 49 AS INTEGER ) AS col2, 98 + + 36 AS col2
----
49
134

query I rowsort
SELECT DISTINCT - 7 - - 78
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7304
SELECT ALL - NULLIF ( COUNT( * ), 12 / SUM( - + 36 ) * CAST( NULL AS SIGNED ) + + 41 + - + 92 + - 79 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL - NULLIF ( COUNT ( * ), 12 / SUM ( - + 36 ) * CAST ( NULL AS INTEGER ) + + 41 + - + 92 + - 79 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT ALL - 89 - + COUNT( * ) * + - 7 * - 79
----
-642

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL - 89 - + COUNT ( * ) * + - 7 * - 79
----
-642

query I rowsort
SELECT 49 * + + 5
----
245

query I rowsort
SELECT 85 * - 15 AS col1
----
-1275

onlyif mysql # DIV for integer division: 
query I rowsort label-7308
SELECT DISTINCT - 80 DIV - - 14
----
-5

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT - 80 / - - 14
----
-5

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

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

query I rowsort
SELECT ALL - 62 * + 87
----
-5394

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT 69 + + 54 + COUNT( * ) AS col2
----
124

skipif mysql # not compatible
query I rowsort label-7311
SELECT 69 + + 54 + COUNT ( * ) AS col2
----
124

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

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

query I rowsort
SELECT 78 + - - 71
----
149

query I rowsort
SELECT ALL - 63 * 87
----
-5481

onlyif mysql # DIV for integer division: 
query II rowsort label-7315
SELECT 94 DIV - ( - 16 ) col0, + 20 AS col2
----
5
20

skipif mysql # not compatible
query II rowsort label-7315
SELECT 94 / - ( - 16 ) col0, + 20 AS col2
----
5
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7316
SELECT ALL 51 AS col1, COUNT( * ) + + + 5
----
51
6

skipif mysql # not compatible
query II rowsort label-7316
SELECT ALL 51 AS col1, COUNT ( * ) + + + 5
----
51
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7317
SELECT ALL 2 col0, CAST( + COUNT( DISTINCT - - 31 ) AS SIGNED ) col2
----
2
1

skipif mysql # not compatible
query II rowsort label-7317
SELECT ALL 2 col0, CAST ( + COUNT ( DISTINCT - - 31 ) AS INTEGER ) col2
----
2
1

query II rowsort
SELECT 3 + ( + 23 ) AS col0, 53 AS col2
----
26
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL - MIN( DISTINCT + - 62 ) * - 88 * - + SUM( - 87 )
----
-474672

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - MIN ( DISTINCT + - 62 ) * - 88 * - + SUM ( - 87 )
----
-474672

onlyif mysql # aggregate syntax: 
query II rowsort label-7320
SELECT ALL MIN( ALL ( 38 ) ), ( - 39 ) AS col0
----
38
-39

skipif mysql # not compatible
query II rowsort label-7320
SELECT ALL MIN ( ALL ( 38 ) ), ( - 39 ) AS col0
----
38
-39

query II rowsort
SELECT - 60 col2, + 97 + 68 + - 68
----
-60
97

query II rowsort
SELECT 65 AS col1, 36 + - 35 AS col0
----
65
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7323
SELECT ALL 62 AS col2, - SUM( DISTINCT - - 80 )
----
62
-80

skipif mysql # not compatible
query II rowsort label-7323
SELECT ALL 62 AS col2, - SUM ( DISTINCT - - 80 )
----
62
-80

query I rowsort
SELECT 29 * + - NULLIF ( - + 20, + - 70 )
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT 0 + + COUNT( + + NULLIF ( + + 37, 40 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7325
SELECT 0 + + COUNT ( + + NULLIF ( + + 37, 40 ) )
----
1

query II rowsort
SELECT 46 AS col1, + 11 AS col2
----
46
11

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

skipif mysql # not compatible
query I rowsort label-7327
SELECT - MAX ( 35 )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7328
SELECT DISTINCT + COALESCE ( + CAST( NULL AS SIGNED ), - MIN( DISTINCT + 27 ) * CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT + COALESCE ( + CAST ( NULL AS INTEGER ), - MIN ( DISTINCT + 27 ) * CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT ALL 26 + - ( + 59 ) DIV - 77 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL 26 + - ( + 59 ) / - 77 AS col0
----
26

query I rowsort
SELECT ALL 31 * 19
----
589

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT DISTINCT - 82 + ( - - MIN( DISTINCT + - 6 ) ) + 7 * - + ( + 3 )
----
-109

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT - 82 + ( - - MIN ( DISTINCT + - 6 ) ) + 7 * - + ( + 3 )
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT DISTINCT + - COALESCE ( + - 28, + - 66 ) + + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7332
SELECT DISTINCT + - COALESCE ( + - 28, + - 66 ) + + - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT DISTINCT + COUNT( * ) * + + 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT + COUNT ( * ) * + + 25 AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT - 98 DIV - + 47 + + - 42 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7334
SELECT - 98 / - + 47 + + - 42 AS col1
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7335
SELECT ALL COUNT( + 72 ) * - 70 DIV + 85 * - - 61 + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL COUNT ( + 72 ) * - 70 / + 85 * - - 61 + - COUNT ( * ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT - CAST( NULL AS SIGNED ) * + 30 * - + 3 + 79 + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT - CAST ( NULL AS INTEGER ) * + 30 * - + 3 + 79 + 90
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7337
SELECT - 19 DIV - 55 + + 84
----
84

skipif mysql # not compatible
query I rowsort label-7337
SELECT - 19 / - 55 + + 84
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7338
SELECT + + 79 * + - 23 - - 3 DIV - 53 AS col1
----
-1817

skipif mysql # not compatible
query I rowsort label-7338
SELECT + + 79 * + - 23 - - 3 / - 53 AS col1
----
-1817

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7340
SELECT ALL + 14 * + 46 + COUNT( * ) + 89 AS col0, + 84 - - CAST( NULL AS SIGNED ) + - - ( ( - SUM( ALL + CAST( - + 0 AS DECIMAL ) ) ) ) AS col0
----
734
NULL

skipif mysql # not compatible
query II rowsort label-7340
SELECT ALL + 14 * + 46 + COUNT ( * ) + 89 AS col0, + 84 - - CAST ( NULL AS INTEGER ) + - - ( ( - SUM ( ALL + CAST ( - + 0 AS REAL ) ) ) ) AS col0
----
734
NULL

query I rowsort
SELECT ALL - + CASE ( - 25 ) WHEN - 54 THEN 42 WHEN 53 * + 6 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT - COUNT( * ) * 71 * + 68 + + 14 AS col0
----
-4814

skipif mysql # not compatible
query I rowsort label-7342
SELECT - COUNT ( * ) * 71 * + 68 + + 14 AS col0
----
-4814

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7344
SELECT - 60 + - + COUNT( * ) AS col0, - COUNT( * ) + - 41 * 17
----
-61
-698

skipif mysql # not compatible
query II rowsort label-7344
SELECT - 60 + - + COUNT ( * ) AS col0, - COUNT ( * ) + - 41 * 17
----
-61
-698

query I rowsort
SELECT + 72 * - 87
----
-6264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7346
SELECT + CASE 87 WHEN - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) THEN 1 * + + ( - - 28 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT + CASE 87 WHEN - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) THEN 1 * + + ( - - 28 ) END
----
NULL

query II rowsort
SELECT - 54 + + 21 AS col1, - 9 * 36
----
-33
-324

query I rowsort
SELECT ALL + COALESCE ( - 64, - - 67 ) col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT - COUNT( * ) * 19 col2
----
-19

skipif mysql # not compatible
query I rowsort label-7349
SELECT - COUNT ( * ) * 19 col2
----
-19

query I rowsort
SELECT DISTINCT CASE 2 WHEN - 96 THEN - + 87 * - + 7 * 2 * + 59 - - 72 + + + 23 END AS col2
----
NULL

query I rowsort
SELECT - 11 + - 13 - + - 7 * + 22 AS col0
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-7352
SELECT DISTINCT MIN( - + 64 ) AS col1, - 80 AS col1
----
-64
-80

skipif mysql # not compatible
query II rowsort label-7352
SELECT DISTINCT MIN ( - + 64 ) AS col1, - 80 AS col1
----
-64
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL + COUNT( * ) + + COUNT( * ) * - COALESCE ( 25, - 22 )
----
-24

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * - COALESCE ( 25, - 22 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT - 34 - - COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7354
SELECT - 34 - - COUNT ( * ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ALL COALESCE ( - COUNT( * ), + 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL COALESCE ( - COUNT ( * ), + 99 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT - 52 * MIN( ALL - 90 ) * - COALESCE ( 0, + 89 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT - 52 * MIN ( ALL - 90 ) * - COALESCE ( 0, + 89 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7357
SELECT ALL - 87 + - COUNT( * ) col1, COUNT( * )
----
-88
1

skipif mysql # not compatible
query II rowsort label-7357
SELECT ALL - 87 + - COUNT ( * ) col1, COUNT ( * )
----
-88
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7359
SELECT DISTINCT - + 17 * + CASE - CASE + ( - 22 ) WHEN 35 THEN NULL WHEN - + MIN( ALL - 9 ) THEN NULL ELSE + 98 / + 39 END WHEN + AVG ( + 74 ) THEN - CAST( 64 AS DECIMAL ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT - + 17 * + CASE - CASE + ( - 22 ) WHEN 35 THEN NULL WHEN - + MIN ( ALL - 9 ) THEN NULL ELSE + 98 / + 39 END WHEN + AVG ( + 74 ) THEN - CAST ( 64 AS REAL ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7360
SELECT DISTINCT + NULLIF ( + + 38, + ( + 89 ) * + 72 + - CAST( NULL AS SIGNED ) ) + + 55 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT + NULLIF ( + + 38, + ( + 89 ) * + 72 + - CAST ( NULL AS INTEGER ) ) + + 55 AS col1
----
93

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

skipif mysql # not compatible
query I rowsort label-7361
SELECT - + 73 + CAST ( COUNT ( * ) AS INTEGER )
----
-72

query I rowsort
SELECT DISTINCT - CASE - 47 WHEN AVG ( - 47 ) THEN COALESCE ( - ( - 1 ), - + 16 ) ELSE NULL END * - 63
----
63

query II rowsort
SELECT ALL - - 75 + + 46 AS col0, - 74
----
121
-74

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7365
SELECT DISTINCT - 3 DIV - + MAX( DISTINCT - 62 ) + - + 76 * + 44 AS col2, 82 + + 35 AS col1, - 78
----
-3344
117
-78

skipif mysql # not compatible
query III rowsort label-7365
SELECT DISTINCT - 3 / - + MAX ( DISTINCT - 62 ) + - + 76 * + 44 AS col2, 82 + + 35 AS col1, - 78
----
-3344
117
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7366
SELECT DISTINCT 63 / + + 19 + - COUNT( * ) + 88 / + 21 + + + ( COUNT( * ) ) + CAST( NULL AS SIGNED ) * + COUNT( ALL + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT 63 / + + 19 + - COUNT ( * ) + 88 / + 21 + + + ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) * + COUNT ( ALL + 69 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT - NULLIF ( COUNT( * ), + 49 + - + 60 + - 37 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7368
SELECT - NULLIF ( COUNT ( * ), + 49 + - + 60 + - 37 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT ALL + CASE 46 WHEN - + CAST( ( - 38 ) AS SIGNED ) - - 70 + - 83 / 94 THEN + 35 * - 69 WHEN - 35 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL + CASE 46 WHEN - + CAST ( ( - 38 ) AS INTEGER ) - - 70 + - 83 / 94 THEN + 35 * - 69 WHEN - 35 THEN NULL END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7371
SELECT DISTINCT + + CAST( + 30 AS SIGNED ), + 29 + + - MAX( DISTINCT - 67 ) AS col0
----
30
96

skipif mysql # not compatible
query II rowsort label-7371
SELECT DISTINCT + + CAST ( + 30 AS INTEGER ), + 29 + + - MAX ( DISTINCT - 67 ) AS col0
----
30
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT DISTINCT + 10 * + COUNT( DISTINCT + 33 ) - 54
----
-44

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT + 10 * + COUNT ( DISTINCT + 33 ) - 54
----
-44

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

query I rowsort
SELECT 10 * + + 30 + - 20 - - 83 + - 58
----
305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7375
SELECT ALL 33 * COUNT( * ) DIV - 10 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL 33 * COUNT ( * ) / - 10 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT + MAX( + + 32 ) - ( + + ( - + 68 ) ) AS col1
----
100

skipif mysql # not compatible
query I rowsort label-7376
SELECT + MAX ( + + 32 ) - ( + + ( - + 68 ) ) AS col1
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-7377
SELECT + ( - COALESCE ( COALESCE ( 13, 80 ), + ( 72 ) ) ) DIV 93 + + 87 * + 35, - 88 AS col1
----
3045
-88

skipif mysql # not compatible
query II rowsort label-7377
SELECT + ( - COALESCE ( COALESCE ( 13, 80 ), + ( 72 ) ) ) / 93 + + 87 * + 35, - 88 AS col1
----
3045
-88

query I rowsort
SELECT + 48 + + ( 93 ) AS col1
----
141

query II rowsort
SELECT ALL + 40 col0, 95 AS col0
----
40
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7380
SELECT DISTINCT 71 * 18 DIV + 24 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT 71 * 18 / + 24 AS col2
----
53

query I rowsort
SELECT 27 * - - NULLIF ( - 37, 64 - + + 94 ) - 23 AS col1
----
-1022

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7383
SELECT ALL + ( 73 ) * CAST( NULL AS SIGNED ) * - 19 * MIN( ALL 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7383
SELECT ALL + ( 73 ) * CAST ( NULL AS INTEGER ) * - 19 * MIN ( ALL 85 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7384
SELECT + 94 - - CAST( ( NULLIF ( - 2, + COUNT( * ) * - AVG ( ALL + + 46 ) ) ) AS SIGNED ) * - - 45 * - COALESCE ( + - 43, - 95 + + 25 ) AS col2
----
-3776

skipif mysql # not compatible
query I rowsort label-7384
SELECT + 94 - - CAST ( ( NULLIF ( - 2, + COUNT ( * ) * - AVG ( ALL + + 46 ) ) ) AS INTEGER ) * - - 45 * - COALESCE ( + - 43, - 95 + + 25 ) AS col2
----
-3776

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

query I rowsort
SELECT + 58 + 74 AS col1
----
132

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

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

query I rowsort
SELECT ALL 17 + - 95 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-7389
SELECT ALL - COUNT( * ) * 38 - - 9 col0, 19 * COUNT( * ) * 20
----
-29
380

skipif mysql # not compatible
query II rowsort label-7389
SELECT ALL - COUNT ( * ) * 38 - - 9 col0, 19 * COUNT ( * ) * 20
----
-29
380

query I rowsort
SELECT - 91 * 93
----
-8463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT ALL - - 23 + CAST( - 64 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL - - 23 + CAST ( - 64 AS INTEGER )
----
-41

query I rowsort
SELECT + 49 * + + 72 * - ( - - 13 )
----
-45864

query II rowsort
SELECT 26 AS col2, 78
----
26
78

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT - - ( - MIN( - + 6 ) ) + + COALESCE ( - 29, + CAST( + - ( - 58 ) AS SIGNED ) * + CAST( NULL AS SIGNED ) - - 79 * + + 87 * + + 4 ) * - - 72 AS col1
----
-2082

skipif mysql # not compatible
query I rowsort label-7395
SELECT - - ( - MIN ( - + 6 ) ) + + COALESCE ( - 29, + CAST ( + - ( - 58 ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) - - 79 * + + 87 * + + 4 ) * - - 72 AS col1
----
-2082

query I rowsort
SELECT - - 61 * 21
----
1281

query I rowsort
SELECT ALL - + 81 - - - 14
----
-95

query I rowsort
SELECT ALL - 6 * ( + - 96 ) AS col2
----
576

query I rowsort
SELECT - 7 - 35
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT + 52 DIV 39 * - - 94 * 10 + + 20
----
960

skipif mysql # not compatible
query I rowsort label-7400
SELECT + 52 / 39 * - - 94 * 10 + + 20
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT NULLIF ( COALESCE ( + 49, + 35 ), - - COUNT( * ) + + 91 * - 17 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7401
SELECT NULLIF ( COALESCE ( + 49, + 35 ), - - COUNT ( * ) + + 91 * - 17 ) AS col0
----
49

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

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

query I rowsort
SELECT ALL + 45 * + 25 AS col2
----
1125

query I rowsort
SELECT + - 2 col2
----
-2

query I rowsort
SELECT + 57 - 64
----
-7

query I rowsort
SELECT 92 * - 54 AS col1
----
-4968

query II rowsort
SELECT ALL - 40 col2, - 86 + - 11 * 47 AS col2
----
-40
-603

query II rowsort
SELECT DISTINCT - 46 AS col0, 80 AS col2
----
-46
80

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7410
SELECT ALL NULLIF ( + ( - - ( 14 ) ), - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + - COUNT( * ) ) * + ( 29 ) * + 97 + SUM( ALL 82 ) DIV 42 - + 92 + 37 + - 87 AS col1
----
39241

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL NULLIF ( + ( - - ( 14 ) ), - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + - COUNT ( * ) ) * + ( 29 ) * + 97 + SUM ( ALL 82 ) / 42 - + 92 + 37 + - 87 AS col1
----
39241

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT SUM( ( - 3 ) ) * 72 * + ( - 39 ) * + 47 col1
----
395928

skipif mysql # not compatible
query I rowsort label-7412
SELECT SUM ( ( - 3 ) ) * 72 * + ( - 39 ) * + 47 col1
----
395928

query I rowsort
SELECT ( + - 15 ) + + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL CASE - NULLIF ( 55, - + 41 ) WHEN COUNT( + 7 ) * - 74 / + 54 + - 1 THEN NULL WHEN - 40 THEN + COALESCE ( + - 4, 28 * - + 73 + - 32 * - + 50 + - + ( + - 70 ) * AVG ( + 81 ) + - + 25 - - MAX( DISTINCT + 11 ) ) END + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL CASE - NULLIF ( 55, - + 41 ) WHEN COUNT ( + 7 ) * - 74 / + 54 + - 1 THEN NULL WHEN - 40 THEN + COALESCE ( + - 4, 28 * - + 73 + - 32 * - + 50 + - + ( + - 70 ) * AVG ( + 81 ) + - + 25 - - MAX ( DISTINCT + 11 ) ) END + 60 AS col0
----
NULL

query II rowsort
SELECT + 91, - 89 * 75 AS col2
----
91
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT COUNT( * ) + ( - - 85 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-7416
SELECT COUNT ( * ) + ( - - 85 ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT DISTINCT ( - 86 ) + + COUNT( * ) + + - ( + 53 ) + 29 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT ( - 86 ) + + COUNT ( * ) + + - ( + 53 ) + 29 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query II rowsort label-7418
SELECT DISTINCT 64 + + 6 - - COUNT( * ) * + 13, 17 + + - 22 AS col0
----
83
-5

skipif mysql # not compatible
query II rowsort label-7418
SELECT DISTINCT 64 + + 6 - - COUNT ( * ) * + 13, 17 + + - 22 AS col0
----
83
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7419
SELECT DISTINCT NULLIF ( + + COUNT( 0 ), - CAST( NULL AS SIGNED ) ) + - 82 + - 55 * 40
----
-2281

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT NULLIF ( + + COUNT ( 0 ), - CAST ( NULL AS INTEGER ) ) + - 82 + - 55 * 40
----
-2281

query II rowsort
SELECT ALL 12 AS col0, NULLIF ( + 83, - - 46 ) AS col2
----
12
83

query II rowsort
SELECT DISTINCT 64 AS col2, + 0 * + + 37 AS col1
----
64
0

query I rowsort
SELECT + 89 + 57 * + 17
----
1058

query II rowsort
SELECT DISTINCT 44, + 12 - + - 99 AS col2
----
44
111

query I rowsort
SELECT ALL 63 - 82
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7425
SELECT - + NULLIF ( + ( CAST( NULL AS SIGNED ) ), - + 34 ) AS col0, 18
----
NULL
18

skipif mysql # not compatible
query II rowsort label-7425
SELECT - + NULLIF ( + ( CAST ( NULL AS INTEGER ) ), - + 34 ) AS col0, 18
----
NULL
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT + 47 - + 69 + + COUNT( * ) col0
----
-21

skipif mysql # not compatible
query I rowsort label-7426
SELECT + 47 - + 69 + + COUNT ( * ) col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7427
SELECT ALL - 1 * - COUNT( * ) DIV - 76 col0
----
0

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL - 1 * - COUNT ( * ) / - 76 col0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT COUNT( + 94 ) + - 65 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7430
SELECT COUNT ( + 94 ) + - 65 AS col0
----
-64

query II rowsort
SELECT ALL - 35 AS col2, 76 * - 97 + - ( - 48 ) AS col2
----
-35
-7324

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT DISTINCT - COUNT( * ) * + 95 + - 85 + - + ( 36 )
----
-216

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT - COUNT ( * ) * + 95 + - 85 + - + ( 36 )
----
-216

query I rowsort
SELECT 38 - 63
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT + ( - - NULLIF ( - MAX( ALL - + 48 ), - - 24 ) ) * ( + ( COUNT( * ) ) )
----
48

skipif mysql # not compatible
query I rowsort label-7435
SELECT + ( - - NULLIF ( - MAX ( ALL - + 48 ), - - 24 ) ) * ( + ( COUNT ( * ) ) )
----
48

query I rowsort
SELECT + CASE + - ( - 42 ) WHEN 59 THEN NULL ELSE + + 51 END col1
----
51

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7438
SELECT + NULLIF ( MAX( 63 ), - + 53 ) DIV - NULLIF ( 90, - 69 + - 42 * + 27 - 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7438
SELECT + NULLIF ( MAX ( 63 ), - + 53 ) / - NULLIF ( 90, - 69 + - 42 * + 27 - 50 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT ALL - 24 DIV 1 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL - 24 / 1 AS col1
----
-24

query I rowsort
SELECT + 85 * - 20
----
-1700

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

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

query I rowsort
SELECT ALL - NULLIF ( 69, - + 41 ) AS col0
----
-69

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

skipif mysql # not compatible
query I rowsort label-7443
SELECT 88 / COUNT ( * )
----
88

query I rowsort
SELECT ALL - 99 + + 80
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7445
SELECT DISTINCT - 18 + - COALESCE ( 18, - COUNT( * ) * - - 22 + - 48 - - - 16, - 57, 5 ) DIV + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT - 18 + - COALESCE ( 18, - COUNT ( * ) * - - 22 + - 48 - - - 16, - 57, 5 ) / + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL - COUNT( * ) + - - 60 - - 35 * + 85
----
3034

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL - COUNT ( * ) + - - 60 - - 35 * + 85
----
3034

onlyif mysql # aggregate syntax: 
query II rowsort label-7447
SELECT COUNT( * ) * - 91, - 7 - 67 AS col0
----
-91
-74

skipif mysql # not compatible
query II rowsort label-7447
SELECT COUNT ( * ) * - 91, - 7 - 67 AS col0
----
-91
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7448
SELECT ALL - CAST( 8 AS SIGNED ), - 88 * - 63 AS col2
----
-8
5544

skipif mysql # not compatible
query II rowsort label-7448
SELECT ALL - CAST ( 8 AS INTEGER ), - 88 * - 63 AS col2
----
-8
5544

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

skipif mysql # not compatible
query I rowsort label-7449
SELECT 3 + + ( COUNT ( * ) ) AS col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT ALL CAST( NULL AS SIGNED ) + + + 55 * - - NULLIF ( 42, + 18 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL CAST ( NULL AS INTEGER ) + + + 55 * - - NULLIF ( 42, + 18 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7451
SELECT - 38 * - NULLIF ( + - COUNT( * ), - - 83 ) * + 75 * - SUM( ALL - ( - - CAST( 11 AS SIGNED ) ) ) * + 13 - - COUNT( * ) + 19 AS col1
----
-407530

skipif mysql # not compatible
query I rowsort label-7451
SELECT - 38 * - NULLIF ( + - COUNT ( * ), - - 83 ) * + 75 * - SUM ( ALL - ( - - CAST ( 11 AS INTEGER ) ) ) * + 13 - - COUNT ( * ) + 19 AS col1
----
-407530

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

skipif mysql # not compatible
query I rowsort label-7452
SELECT COUNT ( * ) + + COUNT ( * ) * + 68 + - 88 AS col1
----
-19

query I rowsort
SELECT DISTINCT - 83 * + 94 * - 96 AS col2
----
748992

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ( - COUNT( * ) ) + 25 * + 3 col2
----
74

skipif mysql # not compatible
query I rowsort label-7454
SELECT ( - COUNT ( * ) ) + 25 * + 3 col2
----
74

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

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

query I rowsort
SELECT + 44 + + 83 * 45
----
3779

query I rowsort
SELECT ALL + 61 - 8
----
53

query II rowsort
SELECT DISTINCT - COALESCE ( - 3, 1 + 19, - 48 ), + 57 AS col1
----
3
57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7460
SELECT 14 DIV + + 61 * ( + 51 )
----
0

skipif mysql # not compatible
query I rowsort label-7460
SELECT 14 / + + 61 * ( + 51 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT 60 * - 37 * - + COUNT( * ) - + 10 + 93
----
2303

skipif mysql # not compatible
query I rowsort label-7461
SELECT 60 * - 37 * - + COUNT ( * ) - + 10 + 93
----
2303

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT + + 34 * - COUNT( * ) + ( + 55 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7462
SELECT + + 34 * - COUNT ( * ) + ( + 55 ) AS col0
----
21

query II rowsort
SELECT + 56 + - + 35 AS col0, - 77 AS col0
----
21
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7464
SELECT + 69 + + 83 * - - NULLIF ( CAST( NULL AS DECIMAL ), - + 74 * 40 ) - - - 74 + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7464
SELECT + 69 + + 83 * - - NULLIF ( CAST ( NULL AS REAL ), - + 74 * 40 ) - - - 74 + - 34
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT ALL 22 + - CASE - 56 WHEN 69 + - 84 THEN + + 26 WHEN - CAST( + ( 50 ) AS SIGNED ) * + - 10 THEN NULL END * - 10 * - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL 22 + - CASE - 56 WHEN 69 + - 84 THEN + + 26 WHEN - CAST ( + ( 50 ) AS INTEGER ) * + - 10 THEN NULL END * - 10 * - 60 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7467
SELECT ALL 85 * - SUM( ALL - + 21 ) * 81 + + COALESCE ( - + 47, 41, + 48 * - CAST( NULL AS SIGNED ) * - 27 * + COUNT( * ) ) AS col0, - 2
----
144538
-2

skipif mysql # not compatible
query II rowsort label-7467
SELECT ALL 85 * - SUM ( ALL - + 21 ) * 81 + + COALESCE ( - + 47, 41, + 48 * - CAST ( NULL AS INTEGER ) * - 27 * + COUNT ( * ) ) AS col0, - 2
----
144538
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT + SUM( ALL 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7468
SELECT + SUM ( ALL 17 ) AS col1
----
17

query I rowsort
SELECT - 71 + - 44 AS col0
----
-115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7470
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + - 31 + - SUM( ALL CASE ( - 79 ) WHEN + 85 THEN NULL WHEN 98 THEN 16 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + - 31 + - SUM ( ALL CASE ( - 79 ) WHEN + 85 THEN NULL WHEN 98 THEN 16 ELSE NULL END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT CASE + - SUM( DISTINCT - 72 ) WHEN 90 THEN COUNT( * ) ELSE NULL END * - - 31 + + 4 * - + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT CASE + - SUM ( DISTINCT - 72 ) WHEN 90 THEN COUNT ( * ) ELSE NULL END * - - 31 + + 4 * - + 23 AS col2
----
NULL

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

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

query I rowsort
SELECT + 35 + + 50
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL COUNT( * ) * 60 + - - ( + 64 ) * + COUNT( * )
----
124

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL COUNT ( * ) * 60 + - - ( + 64 ) * + COUNT ( * )
----
124

query I rowsort
SELECT NULLIF ( - - 59, + - 44 )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7476
SELECT CASE - 28 WHEN - - 19 THEN NULL WHEN + 37 * - CAST( NULL AS SIGNED ) + + 56 THEN + 45 - + COUNT( * ) + 42 + - 68 * 86 - - NULLIF ( - 15, 35 ) * + 12 * - + 11 * + 0 + + 58 + - AVG ( ALL - 32 ) * 46 * + 0 + - - NULLIF ( - CAST( CASE + 82 WHEN + 67 THEN - COUNT( ALL + + 75 ) + - 46 / - 61 END AS SIGNED ), - + ( + - 81 ) ) + - 28 WHEN 48 + 56 * 13 THEN NULL ELSE - 49 - + NULLIF ( + 61, - 81 ) END
----
-110

skipif mysql # not compatible
query I rowsort label-7476
SELECT CASE - 28 WHEN - - 19 THEN NULL WHEN + 37 * - CAST ( NULL AS INTEGER ) + + 56 THEN + 45 - + COUNT ( * ) + 42 + - 68 * 86 - - NULLIF ( - 15, 35 ) * + 12 * - + 11 * + 0 + + 58 + - AVG ( ALL - 32 ) * 46 * + 0 + - - NULLIF ( - CAST ( CASE + 82 WHEN + 67 THEN - COUNT ( ALL + + 75 ) + - 46 / - 61 END AS INTEGER ), - + ( + - 81 ) ) + - 28 WHEN 48 + 56 * 13 THEN NULL ELSE - 49 - + NULLIF ( + 61, - 81 ) END
----
-110

query I rowsort
SELECT - 71 * + ( 12 ) + - ( + + 24 ) * - - 5 + + 45 col1
----
-927

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL + ( + NULLIF ( - - 45, + 95 / - + 30 * 41 ) ) * - 58 + 49 - COUNT( - 7 ) AS col1
----
-2562

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL + ( + NULLIF ( - - 45, + 95 / - + 30 * 41 ) ) * - 58 + 49 - COUNT ( - 7 ) AS col1
----
-2562

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7479
SELECT - 99 * - SUM( CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7479
SELECT - 99 * - SUM ( CAST ( NULL AS REAL ) ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7480
SELECT - 58 + - + 21 + - - COUNT( * ) + + - 19 * + + 82 * COALESCE ( - 9, 99 DIV COALESCE ( + 61, 48 ) + + COALESCE ( + MAX( ALL + 47 ), + - 93 ) ) AS col1
----
13944

skipif mysql # not compatible
query I rowsort label-7480
SELECT - 58 + - + 21 + - - COUNT ( * ) + + - 19 * + + 82 * COALESCE ( - 9, 99 / COALESCE ( + 61, 48 ) + + COALESCE ( + MAX ( ALL + 47 ), + - 93 ) ) AS col1
----
13944

query I rowsort
SELECT - 69 * - 17
----
1173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7482
SELECT + 10 AS col0, + CAST( + 49 AS SIGNED ) AS col0
----
10
49

skipif mysql # not compatible
query II rowsort label-7482
SELECT + 10 AS col0, + CAST ( + 49 AS INTEGER ) AS col0
----
10
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT COALESCE ( + - 72, + 78, - + COUNT( * ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7483
SELECT COALESCE ( + - 72, + 78, - + COUNT ( * ) ) AS col0
----
-72

query I rowsort
SELECT - 63 + 85 * + - 91
----
-7798

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT - COUNT( ALL + 28 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7487
SELECT - COUNT ( ALL + 28 ) col2
----
-1

query I rowsort
SELECT ALL - 18 * - 60
----
1080

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT DISTINCT - - 24 DIV 99 * + 40
----
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT - - 24 / 99 * + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT + 87 + + NULLIF ( MIN( - 10 ), - 36 * 76 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-7490
SELECT + 87 + + NULLIF ( MIN ( - 10 ), - 36 * 76 ) AS col2
----
77

query I rowsort
SELECT + - 80 * - + 44 col2
----
3520

onlyif mysql # aggregate syntax: 
query II rowsort label-7492
SELECT ALL - + COUNT( * ) * + 14 * - - 42, + 88 AS col2
----
-588
88

skipif mysql # not compatible
query II rowsort label-7492
SELECT ALL - + COUNT ( * ) * + 14 * - - 42, + 88 AS col2
----
-588
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7493
SELECT - COUNT( * ) * - 69 * - 23, 85 AS col2
----
-1587
85

skipif mysql # not compatible
query II rowsort label-7493
SELECT - COUNT ( * ) * - 69 * - 23, 85 AS col2
----
-1587
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT - 58 - ( - + ( + - COUNT( * ) ) ) - - CASE 81 WHEN 13 THEN NULL WHEN - + 60 * + - 52 THEN + - 38 ELSE - COUNT( * ) END * - + 56
----
-3

skipif mysql # not compatible
query I rowsort label-7494
SELECT - 58 - ( - + ( + - COUNT ( * ) ) ) - - CASE 81 WHEN 13 THEN NULL WHEN - + 60 * + - 52 THEN + - 38 ELSE - COUNT ( * ) END * - + 56
----
-3

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

query I rowsort
SELECT ALL + 91 + - 96
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7497
SELECT DISTINCT 16 DIV - - COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT 16 / - - COUNT ( * ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT + - COUNT( * ) + + + 45 + + 88 * + COUNT( * ) col0
----
132

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT + - COUNT ( * ) + + + 45 + + 88 * + COUNT ( * ) col0
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7499
SELECT ALL + 42 + + - CAST( NULL AS SIGNED ) / - 93 AS col1, MAX( - + 9 ) col2
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-7499
SELECT ALL + 42 + + - CAST ( NULL AS INTEGER ) / - 93 AS col1, MAX ( - + 9 ) col2
----
NULL
-9

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

skipif mysql # not compatible
query I rowsort label-7500
SELECT + 3 / 18 * + + COALESCE ( - COUNT ( * ), + + 81 )
----
0

query I rowsort
SELECT ALL 73 + - - 23
----
96

query II rowsort
SELECT - ( - 47 ), 6 + - - 74 AS col2
----
47
80

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

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

query II rowsort
SELECT + 65 + - 1 AS col1, 39 + 26
----
64
65

query I rowsort
SELECT - NULLIF ( - CASE - + 36 WHEN - - 9 + + 36 THEN NULL ELSE - 33 + + 84 END, - + ( - 77 ) )
----
51

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

query II rowsort
SELECT + ( + + 46 ) AS col0, 53 AS col0
----
46
53

query I rowsort
SELECT ALL 94 * 8
----
752

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7509
SELECT CAST( - + 94 AS SIGNED ), 26 AS col2
----
-94
26

skipif mysql # not compatible
query II rowsort label-7509
SELECT CAST ( - + 94 AS INTEGER ), 26 AS col2
----
-94
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7510
SELECT ALL + 79 DIV - 88 * + 29 - + 66 col1
----
-66

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL + 79 / - 88 * + 29 - + 66 col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT + 46 + - - CASE - - 46 WHEN + 58 THEN NULL ELSE - - MIN( + + 74 ) + - 86 + + 60 END - - 50 * - - 12 AS col1
----
694

skipif mysql # not compatible
query I rowsort label-7511
SELECT + 46 + - - CASE - - 46 WHEN + 58 THEN NULL ELSE - - MIN ( + + 74 ) + - 86 + + 60 END - - 50 * - - 12 AS col1
----
694

query I rowsort
SELECT - 41 * + 71 + - 80 AS col0
----
-2991

query I rowsort
SELECT ALL + 38 * + - 72 col0
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT - 31 * + - 28 + - SUM( 44 )
----
824

skipif mysql # not compatible
query I rowsort label-7514
SELECT - 31 * + - 28 + - SUM ( 44 )
----
824

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7515
SELECT 89 * - 55 * COALESCE ( + 16, 94 - 96 + + - 35 DIV - 9 ) + 85 AS col1, CAST( ( ( - 10 ) ) AS SIGNED ) * 49 col2
----
-78235
-490

skipif mysql # not compatible
query II rowsort label-7515
SELECT 89 * - 55 * COALESCE ( + 16, 94 - 96 + + - 35 / - 9 ) + 85 AS col1, CAST ( ( ( - 10 ) ) AS INTEGER ) * 49 col2
----
-78235
-490

onlyif mysql # aggregate syntax: 
query II rowsort label-7516
SELECT ALL - MAX( 91 ) * + 71 * COUNT( * ) AS col0, + 9 - + NULLIF ( - 55, + 33 ) * - - 33 * - + 1
----
-6461
-1806

skipif mysql # not compatible
query II rowsort label-7516
SELECT ALL - MAX ( 91 ) * + 71 * COUNT ( * ) AS col0, + 9 - + NULLIF ( - 55, + 33 ) * - - 33 * - + 1
----
-6461
-1806

query I rowsort
SELECT DISTINCT + - 59 * + - 50 + 24 AS col2
----
2974

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7518
SELECT + + 75 * - NULLIF ( MIN( - 35 ), - - 18 * - + CASE + ( 33 ) WHEN - CASE 96 WHEN - 51 THEN - CASE - 26 WHEN COUNT( * ) THEN ( + 90 ) * + COUNT( * ) + + CAST( NULL AS SIGNED ) / - 9 * - 83 + + 86 + 63 + + 94 * + - 25 END ELSE - 97 END + + + 79 + ( - 88 ) * - - 19 + - + ( + - 37 ) THEN NULL WHEN 70 THEN - COUNT( * ) + - - AVG ( 65 ) END + 83 ) + 70 AS col0
----
2695

skipif mysql # not compatible
query I rowsort label-7518
SELECT + + 75 * - NULLIF ( MIN ( - 35 ), - - 18 * - + CASE + ( 33 ) WHEN - CASE 96 WHEN - 51 THEN - CASE - 26 WHEN COUNT ( * ) THEN ( + 90 ) * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) / - 9 * - 83 + + 86 + 63 + + 94 * + - 25 END ELSE - 97 END + + + 79 + ( - 88 ) * - - 19 + - + ( + - 37 ) THEN NULL WHEN 70 THEN - COUNT ( * ) + - - AVG ( 65 ) END + 83 ) + 70 AS col0
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL - NULLIF ( - COALESCE ( 67, - 54 ), 75 ) + - - NULLIF ( 63, + CASE 2 WHEN 93 THEN NULL WHEN + 61 THEN + - 46 WHEN + COUNT( * ) THEN NULL ELSE - 38 * + 93 END ) + + - CASE + 4 WHEN - + 68 THEN NULL WHEN MIN( DISTINCT - 68 ) THEN + 29 END * + 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL - NULLIF ( - COALESCE ( 67, - 54 ), 75 ) + - - NULLIF ( 63, + CASE 2 WHEN 93 THEN NULL WHEN + 61 THEN + - 46 WHEN + COUNT ( * ) THEN NULL ELSE - 38 * + 93 END ) + + - CASE + 4 WHEN - + 68 THEN NULL WHEN MIN ( DISTINCT - 68 ) THEN + 29 END * + 12 AS col1
----
NULL

query II rowsort
SELECT 23 + 57 AS col0, - 39 AS col0
----
80
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT - SUM( ALL 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-7521
SELECT - SUM ( ALL 73 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT MIN( + NULLIF ( + 51, + 83 * - + 35 * 84 ) ) + - 31
----
20

skipif mysql # not compatible
query I rowsort label-7522
SELECT MIN ( + NULLIF ( + 51, + 83 * - + 35 * 84 ) ) + - 31
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL COALESCE ( - NULLIF ( + 21, - + MIN( + + 57 ) * + COUNT( * ) ), + 19 )
----
-21

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL COALESCE ( - NULLIF ( + 21, - + MIN ( + + 57 ) * + COUNT ( * ) ), + 19 )
----
-21

query I rowsort
SELECT ALL + 26 + - + 71 + + - 20
----
-65

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7526
SELECT ALL + 46 + - 68 + - 77 * 28 DIV 60
----
-57

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL + 46 + - 68 + - 77 * 28 / 60
----
-57

query I rowsort
SELECT - 74 * 29 * - 51
----
109446

query I rowsort
SELECT 79 + - ( + + 7 ) AS col1
----
72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7530
SELECT ALL + + 54 DIV + + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL + + 54 / + + 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7531
SELECT + 41 + - - 20, - COUNT( * ) AS col1
----
61
-1

skipif mysql # not compatible
query II rowsort label-7531
SELECT + 41 + - - 20, - COUNT ( * ) AS col1
----
61
-1

query I rowsort
SELECT 94 + + - 4 AS col0
----
90

query I rowsort
SELECT 97 * - 72
----
-6984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7534
SELECT NULLIF ( + 62, + - 66 ) * - 36 + + COUNT( * ) + - - 83 + + + 81 + - 14 * 40 + CAST( - 37 AS SIGNED ) * - 68 * - + 16 AS col1, ( + ( + - 76 ) ) DIV 12 col2
----
-42883
-6

skipif mysql # not compatible
query II rowsort label-7534
SELECT NULLIF ( + 62, + - 66 ) * - 36 + + COUNT ( * ) + - - 83 + + + 81 + - 14 * 40 + CAST ( - 37 AS INTEGER ) * - 68 * - + 16 AS col1, ( + ( + - 76 ) ) / 12 col2
----
-42883
-6

query I rowsort
SELECT 3 + - - 56 AS col0
----
59

query I rowsort
SELECT DISTINCT + 96 * 92
----
8832

query I rowsort
SELECT 19 + 28 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT COUNT( * ) * - 82 * - 14 * - COUNT( * )
----
-1148

skipif mysql # not compatible
query I rowsort label-7538
SELECT COUNT ( * ) * - 82 * - 14 * - COUNT ( * )
----
-1148

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

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL CAST ( NULL AS INTEGER ) / - 62
----
NULL

query I rowsort
SELECT NULLIF ( - + 57, + - 26 ) + - COALESCE ( - 1, + 99 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL + 69 - COUNT( * ) + 73 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + 69 - COUNT ( * ) + 73 AS col1
----
141

query I rowsort
SELECT 38 + 15 * + + 24
----
398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7543
SELECT 15 * - 28 + + + 53 - + 41 DIV 57 DIV - - 49 + - 49 + + 81 * + COUNT( * )
----
-335

skipif mysql # not compatible
query I rowsort label-7543
SELECT 15 * - 28 + + + 53 - + 41 / 57 / - - 49 + - 49 + + 81 * + COUNT ( * )
----
-335

query II rowsort
SELECT ALL 93 * + 26 * 49, + 62 + 53 AS col0
----
118482
115

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

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

query I rowsort
SELECT ALL - - 64 col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT 87 * - COUNT( * ) + - MIN( - COALESCE ( 16, + 60 ) ) + - 65 + - 29 + - + 76 AS col1
----
-241

skipif mysql # not compatible
query I rowsort label-7547
SELECT 87 * - COUNT ( * ) + - MIN ( - COALESCE ( 16, + 60 ) ) + - 65 + - 29 + - + 76 AS col1
----
-241

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

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

query I rowsort
SELECT 69 * - 37 - 23 * 23 AS col0
----
-3082

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT + 91 * + 47 + - 20 - 22 + NULLIF ( 23, - 12 + + - MIN( DISTINCT 0 ) )
----
4258

skipif mysql # not compatible
query I rowsort label-7550
SELECT + 91 * + 47 + - 20 - 22 + NULLIF ( 23, - 12 + + - MIN ( DISTINCT 0 ) )
----
4258

onlyif mysql # DIV for integer division: 
query I rowsort label-7551
SELECT + 56 DIV + 42 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7551
SELECT + 56 / + 42 AS col2
----
1

query I rowsort
SELECT DISTINCT - 91 + + ( - 2 ) * + 71
----
-233

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

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

query I rowsort
SELECT DISTINCT - - 87 AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7555
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 59
----
NULL
59

query I rowsort
SELECT DISTINCT + - 32 * 29 + + + 9 AS col0
----
-919

query I rowsort
SELECT ALL - 97 + + 43
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL + - ( + 26 ) * - - SUM( DISTINCT ( 13 ) ) + + 95
----
-243

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL + - ( + 26 ) * - - SUM ( DISTINCT ( 13 ) ) + + 95
----
-243

query I rowsort
SELECT ALL - - 19 + + + 92
----
111

onlyif mysql # DIV for integer division: 
query II rowsort label-7560
SELECT + 72 + + 48 DIV + + 40, 94 AS col1
----
73
94

skipif mysql # not compatible
query II rowsort label-7560
SELECT + 72 + + 48 / + + 40, 94 AS col1
----
73
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT 7 DIV - + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7561
SELECT 7 / - + 73 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7562
SELECT ALL + COALESCE ( - 4, + + 91 * CASE - 4 WHEN + - MAX( CAST( 63 AS SIGNED ) ) THEN + 53 + - + 41 ELSE NULLIF ( + 59, 14 - + - 9 ) * - - COUNT( * ) * + 70 / + - 35 + + 72 / 87 END / CAST( 8 AS SIGNED ) ) * CAST( NULL AS SIGNED ) * - MAX( + ( - + 23 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL + COALESCE ( - 4, + + 91 * CASE - 4 WHEN + - MAX ( CAST ( 63 AS INTEGER ) ) THEN + 53 + - + 41 ELSE NULLIF ( + 59, 14 - + - 9 ) * - - COUNT ( * ) * + 70 / + - 35 + + 72 / 87 END / CAST ( 8 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) * - MAX ( + ( - + 23 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT - NULLIF ( - 14, - - CASE - COUNT( ALL 63 ) WHEN + 47 THEN - 25 ELSE + + 9 * - NULLIF ( 3, - - 5 ) END ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-7563
SELECT - NULLIF ( - 14, - - CASE - COUNT ( ALL 63 ) WHEN + 47 THEN - 25 ELSE + + 9 * - NULLIF ( 3, - - 5 ) END ) AS col1
----
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL SUM( - 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL SUM ( - 93 ) AS col0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT DISTINCT + ( 28 ) * - COALESCE ( 91, ( - 45 ) * + 21 * + 13 DIV 54 * + + 75 )
----
-2548

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT + ( 28 ) * - COALESCE ( 91, ( - 45 ) * + 21 * + 13 / 54 * + + 75 )
----
-2548

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7567
SELECT ALL 82 col0, CAST( - 51 AS SIGNED ) * + + 96 AS col2
----
82
-4896

skipif mysql # not compatible
query II rowsort label-7567
SELECT ALL 82 col0, CAST ( - 51 AS INTEGER ) * + + 96 AS col2
----
82
-4896

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7569
SELECT ALL COUNT( * ) AS col2, + 32
----
1
32

skipif mysql # not compatible
query II rowsort label-7569
SELECT ALL COUNT ( * ) AS col2, + 32
----
1
32

query I rowsort
SELECT 22 * + 45 AS col0
----
990

query I rowsort
SELECT DISTINCT + ( 43 ) * - 33 + 40 * - 12 AS col2
----
-1899

onlyif mysql # aggregate syntax: 
query II rowsort label-7572
SELECT DISTINCT + CASE - 12 WHEN + - COUNT( + - 84 ) * + - ( + 25 ) * - 4 * + ( + 84 ) + - 71 + - 96 THEN + 35 WHEN + - 68 THEN NULL WHEN + + 27 * COUNT( * ) THEN + 57 END * 14 + - 12 * + 53 AS col1, - 2 AS col2
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-7572
SELECT DISTINCT + CASE - 12 WHEN + - COUNT ( + - 84 ) * + - ( + 25 ) * - 4 * + ( + 84 ) + - 71 + - 96 THEN + 35 WHEN + - 68 THEN NULL WHEN + + 27 * COUNT ( * ) THEN + 57 END * 14 + - 12 * + 53 AS col1, - 2 AS col2
----
NULL
-2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT + CASE 59 WHEN - 18 - - + ( - - ( - MIN( 0 ) ) ) THEN NULL ELSE - - 4 END * + 61 + - 19
----
225

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT + CASE 59 WHEN - 18 - - + ( - - ( - MIN ( 0 ) ) ) THEN NULL ELSE - - 4 END * + 61 + - 19
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7575
SELECT 57 * - COUNT( * ) AS col0, + COALESCE ( - CASE - 7 WHEN - + CAST( 52 AS SIGNED ) THEN COUNT( * ) * 43 + - 86 ELSE NULL END, - - COUNT( * ) ) AS col2
----
-57
1

skipif mysql # not compatible
query II rowsort label-7575
SELECT 57 * - COUNT ( * ) AS col0, + COALESCE ( - CASE - 7 WHEN - + CAST ( 52 AS INTEGER ) THEN COUNT ( * ) * 43 + - 86 ELSE NULL END, - - COUNT ( * ) ) AS col2
----
-57
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7576
SELECT ALL COUNT( * ) * + - CAST( NULL AS SIGNED ) + - 74 * + + CAST( + 53 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL COUNT ( * ) * + - CAST ( NULL AS INTEGER ) + - 74 * + + CAST ( + 53 AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7577
SELECT COALESCE ( + 99, + CASE - 21 WHEN - CAST( - + 86 AS DECIMAL ) - + ( - - 83 ) * SUM( ALL 73 ) + 28 THEN + 67 END + 0 * - - 31 + 42 )
----
99

skipif mysql # not compatible
query I rowsort label-7577
SELECT COALESCE ( + 99, + CASE - 21 WHEN - CAST ( - + 86 AS REAL ) - + ( - - 83 ) * SUM ( ALL 73 ) + 28 THEN + 67 END + 0 * - - 31 + 42 )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT 84 DIV - 79 + + + 47
----
46

skipif mysql # not compatible
query I rowsort label-7578
SELECT 84 / - 79 + + + 47
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7579
SELECT DISTINCT - 45 * ( - 30 ) + 70 AS col1, 14 DIV - COUNT( * ) AS col0
----
1420
-14

skipif mysql # not compatible
query II rowsort label-7579
SELECT DISTINCT - 45 * ( - 30 ) + 70 AS col1, 14 / - COUNT ( * ) AS col0
----
1420
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7580
SELECT ALL - COUNT( * ) * - 44 + MAX( - + 17 ) DIV COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - COUNT ( * ) * - 44 + MAX ( - + 17 ) / COUNT ( * )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT + COALESCE ( + 41, + + 36 * - 0 ) DIV - 5 + NULLIF ( 62, - 73 )
----
54

skipif mysql # not compatible
query I rowsort label-7581
SELECT + COALESCE ( + 41, + + 36 * - 0 ) / - 5 + NULLIF ( 62, - 73 )
----
54

query I rowsort
SELECT - + ( - 53 ) + - + 33 col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT DISTINCT NULLIF ( + MAX( - 20 ), 39 ) * 59 - ( - - 17 ) + - - 77 + - 83 col0
----
-1203

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT NULLIF ( + MAX ( - 20 ), 39 ) * 59 - ( - - 17 ) + - - 77 + - 83 col0
----
-1203

onlyif mysql # DIV for integer division: 
query II rowsort label-7584
SELECT DISTINCT + + 55, + 37 + + + 77 + 56 DIV + + 16 + 44 AS col2
----
55
161

skipif mysql # not compatible
query II rowsort label-7584
SELECT DISTINCT + + 55, + 37 + + + 77 + 56 / + + 16 + 44 AS col2
----
55
161

query I rowsort
SELECT ALL + - 46 * + - 28 + 89 + 70
----
1447

query I rowsort
SELECT + 47 - - 5 AS col1
----
52

query I rowsort
SELECT ALL + 35 * + 34 AS col0
----
1190

query I rowsort
SELECT + CASE + 4 WHEN - 6 THEN NULL ELSE + - 53 END AS col1
----
-53

query I rowsort
SELECT + - ( ( - 4 ) ) col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT CASE + MIN( + + 91 ) WHEN COUNT( DISTINCT + - ( 15 ) ) THEN NULL WHEN NULLIF ( - + 20, - ( + - ( - SUM( ALL - 76 ) ) ) ) * - - 88 THEN NULL WHEN + + 58 + - SUM( DISTINCT 72 ) THEN NULL ELSE + 14 + - 6 END
----
8

skipif mysql # not compatible
query I rowsort label-7590
SELECT CASE + MIN ( + + 91 ) WHEN COUNT ( DISTINCT + - ( 15 ) ) THEN NULL WHEN NULLIF ( - + 20, - ( + - ( - SUM ( ALL - 76 ) ) ) ) * - - 88 THEN NULL WHEN + + 58 + - SUM ( DISTINCT 72 ) THEN NULL ELSE + 14 + - 6 END
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT 91 * - SUM( 3 ) + - 3 + + 96 * + 43
----
3852

skipif mysql # not compatible
query I rowsort label-7591
SELECT 91 * - SUM ( 3 ) + - 3 + + 96 * + 43
----
3852

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL + COUNT( ALL 7 ) - - + 13
----
14

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL + COUNT ( ALL 7 ) - - + 13
----
14

query I rowsort
SELECT - 79 * 24 + 36
----
-1860

query I rowsort
SELECT + + CASE 88 WHEN - 12 * - 53 + + + 34 THEN - + ( - - 93 ) + + 89 ELSE NULL END * + 97
----
NULL

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

query I rowsort
SELECT + - 5 + - 31
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-7597
SELECT COUNT( * ) AS col2, + 45 * + COUNT( * ) + 69 AS col1
----
1
114

skipif mysql # not compatible
query II rowsort label-7597
SELECT COUNT ( * ) AS col2, + 45 * + COUNT ( * ) + 69 AS col1
----
1
114

onlyif mysql # aggregate syntax: 
query II rowsort label-7598
SELECT + + 30 + - 58 - - 13 * - 7 * ( - COUNT( * ) ) * - COUNT( * ) * + 1 + 4 col0, 31 * - COUNT( * ) AS col0
----
-115
-31

skipif mysql # not compatible
query II rowsort label-7598
SELECT + + 30 + - 58 - - 13 * - 7 * ( - COUNT ( * ) ) * - COUNT ( * ) * + 1 + 4 col0, 31 * - COUNT ( * ) AS col0
----
-115
-31

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

skipif mysql # not compatible
query I rowsort label-7599
SELECT + 13 * COUNT ( ALL + 63 ) AS col1
----
13

query I rowsort
SELECT ALL 24 * 64
----
1536

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT DISTINCT 36 DIV + 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT 36 / + 53 AS col2
----
0

query I rowsort
SELECT + 65 + + 10 * - 80
----
-735

query I rowsort
SELECT + 77 * + 25
----
1925

query II rowsort
SELECT + 53 * + + 93 AS col0, 56
----
4929
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL ( + + 63 ) * + MAX( DISTINCT 72 ) AS col0
----
4536

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL ( + + 63 ) * + MAX ( DISTINCT 72 ) AS col0
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT + 71 + ( - 13 ) + 18 + 13 - + + COUNT( * ) col1
----
88

skipif mysql # not compatible
query I rowsort label-7606
SELECT + 71 + ( - 13 ) + 18 + 13 - + + COUNT ( * ) col1
----
88

query I rowsort
SELECT - NULLIF ( 74, + AVG ( ALL 3 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT + 47 + - - MAX( + ( + 45 ) ) + - 55 - + MAX( 96 ) * - + 92
----
8869

skipif mysql # not compatible
query I rowsort label-7608
SELECT + 47 + - - MAX ( + ( + 45 ) ) + - 55 - + MAX ( 96 ) * - + 92
----
8869

onlyif mysql # aggregate syntax: 
query II rowsort label-7609
SELECT ALL ( ( - - 17 ) ) + MIN( ALL 40 ) * 20 * 49, COALESCE ( - ( - 48 ), - ( - 24 ) * + 1 + + 82 + - - 73 * 2 ) AS col0
----
39217
48

skipif mysql # not compatible
query II rowsort label-7609
SELECT ALL ( ( - - 17 ) ) + MIN ( ALL 40 ) * 20 * 49, COALESCE ( - ( - 48 ), - ( - 24 ) * + 1 + + 82 + - - 73 * 2 ) AS col0
----
39217
48

query I rowsort
SELECT DISTINCT + 34 + + - 65 * ( - ( + + 58 ) ) AS col2
----
3804

query I rowsort
SELECT ALL - 79 + 58 - 26 + ( - 38 ) * + 26
----
-1035

query I rowsort
SELECT - 17 + + 34 AS col2
----
17

query I rowsort
SELECT - 93 + + 68 + + 53 * + 73 + - + 65 AS col0
----
3779

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

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

query I rowsort
SELECT - 45 + + 25 * 26 AS col2
----
605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7616
SELECT - CASE 66 WHEN - 12 THEN + - 72 * CAST( - + MAX( - 14 ) AS SIGNED ) * + + ( 62 ) + - - 51 + 27 WHEN + CAST( + + 54 AS SIGNED ) THEN NULL END * - + 77 * + + 30 * - ( + 83 ) + - 72 + - 19 * + - 87 - + + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT - CASE 66 WHEN - 12 THEN + - 72 * CAST ( - + MAX ( - 14 ) AS INTEGER ) * + + ( 62 ) + - - 51 + 27 WHEN + CAST ( + + 54 AS INTEGER ) THEN NULL END * - + 77 * + + 30 * - ( + 83 ) + - 72 + - 19 * + - 87 - + + 67 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7617
SELECT + CAST( - 28 AS SIGNED ) AS col0, 4
----
-28
4

skipif mysql # not compatible
query II rowsort label-7617
SELECT + CAST ( - 28 AS INTEGER ) AS col0, 4
----
-28
4

query I rowsort
SELECT - + 19 * + ( - 41 ) AS col1
----
779

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7619
SELECT MAX( DISTINCT + COALESCE ( 95, + 4 ) ) * 80 + - - 56 + ( - 96 ), + 61 DIV - + 62 * - + 33 * - 39 * + ( - 72 ) AS col0
----
7560
0

skipif mysql # not compatible
query II rowsort label-7619
SELECT MAX ( DISTINCT + COALESCE ( 95, + 4 ) ) * 80 + - - 56 + ( - 96 ), + 61 / - + 62 * - + 33 * - 39 * + ( - 72 ) AS col0
----
7560
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7620
SELECT - 98 DIV 55 AS col1, 98
----
-1
98

skipif mysql # not compatible
query II rowsort label-7620
SELECT - 98 / 55 AS col1, 98
----
-1
98

query II rowsort
SELECT + 67 * 79 AS col0, 0 AS col0
----
5293
0

query I rowsort
SELECT ALL + - 95 col0
----
-95

query I rowsort
SELECT DISTINCT + 29 col1
----
29

query I rowsort
SELECT DISTINCT + ( + 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7625
SELECT ALL + 73 * - COUNT( * ) AS col1, + 83
----
-73
83

skipif mysql # not compatible
query II rowsort label-7625
SELECT ALL + 73 * - COUNT ( * ) AS col1, + 83
----
-73
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT + - 68 * + - MAX( DISTINCT - - 11 ) * - + 40 AS col0
----
-29920

skipif mysql # not compatible
query I rowsort label-7626
SELECT + - 68 * + - MAX ( DISTINCT - - 11 ) * - + 40 AS col0
----
-29920

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

onlyif mysql # aggregate syntax: 
query III rowsort label-7628
SELECT + 83 + - 41 + - 22 AS col1, + COUNT( * ) * + + 91 * + 50, - 65 AS col1
----
20
4550
-65

skipif mysql # not compatible
query III rowsort label-7628
SELECT + 83 + - 41 + - 22 AS col1, + COUNT ( * ) * + + 91 * + 50, - 65 AS col1
----
20
4550
-65

query I rowsort
SELECT - 53 * 90
----
-4770

query I rowsort
SELECT + 59 * - + ( + + 87 ) col0
----
-5133

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

skipif mysql # not compatible
query I rowsort label-7631
SELECT COUNT ( ALL - ( + 0 ) ) AS col2
----
1

query I rowsort
SELECT + 23 * + + 44 col2
----
1012

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7634
SELECT 79, - 44 DIV - + 2 AS col0
----
79
22

skipif mysql # not compatible
query II rowsort label-7634
SELECT 79, - 44 / - + 2 AS col0
----
79
22

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

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

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

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

query I rowsort
SELECT 44 - + 50
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-7638
SELECT - 57 AS col0, - 14 DIV - + 19 + - - 96
----
-57
96

skipif mysql # not compatible
query II rowsort label-7638
SELECT - 57 AS col0, - 14 / - + 19 + - - 96
----
-57
96

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

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

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

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

query I rowsort
SELECT DISTINCT 54 + + 68 col2
----
122

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

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

query I rowsort
SELECT ALL - + 88 - + 7
----
-95

query II rowsort
SELECT ALL - 64 AS col2, - 71 AS col1
----
-64
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT 0 * - CASE MIN( DISTINCT + 45 ) WHEN + 11 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT 0 * - CASE MIN ( DISTINCT + 45 ) WHEN + 11 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - 56 * - - 29
----
-1624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7647
SELECT ALL - 58 - - - CASE AVG ( + - CAST( + - 24 AS SIGNED ) ) WHEN + - 26 THEN NULL WHEN - 31 / + CASE + + 6 WHEN - ( + 34 ) * 43 THEN - 68 WHEN + - 15 THEN - 38 + + 62 ELSE - - ( 51 ) END * - 90 * + - 87 * + + 80 + - 81 * 85 + 25 / 74 + + 40 * - - 40 + 43 * COUNT( * ) THEN + - COUNT( * ) + - 0 WHEN AVG ( DISTINCT - + 40 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL - 58 - - - CASE AVG ( + - CAST ( + - 24 AS INTEGER ) ) WHEN + - 26 THEN NULL WHEN - 31 / + CASE + + 6 WHEN - ( + 34 ) * 43 THEN - 68 WHEN + - 15 THEN - 38 + + 62 ELSE - - ( 51 ) END * - 90 * + - 87 * + + 80 + - 81 * 85 + 25 / 74 + + 40 * - - 40 + 43 * COUNT ( * ) THEN + - COUNT ( * ) + - 0 WHEN AVG ( DISTINCT - + 40 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 83 * + 95 col1
----
7885

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL - SUM( + COALESCE ( + 68, + 84, + 56 * 91 * - 2 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL - SUM ( + COALESCE ( + 68, + 84, + 56 * 91 * - 2 ) )
----
-68

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

query I rowsort
SELECT ALL + + 3 * - - ( 40 )
----
120

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

query I rowsort
SELECT 61 + 69
----
130

query I rowsort
SELECT 42 + 51
----
93

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

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

query I rowsort
SELECT 22 + 90 AS col2
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT ALL + 24 DIV + 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL + 24 / + 74 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT 38 DIV 5 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-7658
SELECT 38 / 5 AS col2
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7659
SELECT ALL - 52 + - 9 DIV COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL - 52 + - 9 / COUNT ( * )
----
-61

query I rowsort
SELECT ALL 70 + - + 55 * 54
----
-2900

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT DISTINCT 29 * 70 DIV + 68 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-7661
SELECT DISTINCT 29 * 70 / + 68 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT SUM( ALL + 73 ) * + + 74 * - 3 AS col2
----
-16206

skipif mysql # not compatible
query I rowsort label-7662
SELECT SUM ( ALL + 73 ) * + + 74 * - 3 AS col2
----
-16206

query I rowsort
SELECT ALL - 16 + 45
----
29

query I rowsort
SELECT 53 + + - 98 AS col2
----
-45

query I rowsort
SELECT 63 + - - 49 + + 33 col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT 72 + + - NULLIF ( - ( + - COUNT( * ) ), 51 * ( - + 61 ) - + + 46 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7666
SELECT 72 + + - NULLIF ( - ( + - COUNT ( * ) ), 51 * ( - + 61 ) - + + 46 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT ALL 3 - - + 9 + + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL 3 - - + 9 + + COUNT ( * )
----
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7669
SELECT - COALESCE ( - 57, 57 * + ( 44 ) + + 74 + + COUNT( * ) * + + 12 DIV - - 43 * - 58 * - 79 DIV - 49 ) + - - 89 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-7669
SELECT - COALESCE ( - 57, 57 * + ( 44 ) + + 74 + + COUNT ( * ) * + + 12 / - - 43 * - 58 * - 79 / - 49 ) + - - 89 AS col1
----
146

query I rowsort
SELECT ALL 83 * + 79 * - 96 AS col0
----
-629472

query I rowsort
SELECT + 22 * 46 * - 12 * 61 AS col0
----
-740784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7672
SELECT MAX( DISTINCT + 61 ) * + 65 + 55 + + + CAST( - 54 AS SIGNED ) AS col2
----
3966

skipif mysql # not compatible
query I rowsort label-7672
SELECT MAX ( DISTINCT + 61 ) * + 65 + 55 + + + CAST ( - 54 AS INTEGER ) AS col2
----
3966

query I rowsort
SELECT ALL + 56 * 52 AS col1
----
2912

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7674
SELECT + ( + CAST( NULL AS SIGNED ) ), + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7674
SELECT + ( + CAST ( NULL AS INTEGER ) ), + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ALL + 87 * + 91 + 75 AS col2
----
7992

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7676
SELECT DISTINCT - 28 * 41 DIV - NULLIF ( + NULLIF ( - + 39, + CAST( NULL AS SIGNED ) ), - + ( 90 ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT - 28 * 41 / - NULLIF ( + NULLIF ( - + 39, + CAST ( NULL AS INTEGER ) ), - + ( 90 ) ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT ALL - - NULLIF ( + 76, + COUNT( * ) ) col2
----
76

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL - - NULLIF ( + 76, + COUNT ( * ) ) col2
----
76

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

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

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

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

query I rowsort
SELECT NULLIF ( - 17, - 59 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT - CASE + 96 WHEN + COUNT( * ) - COUNT( * ) * - + COUNT( * ) * - NULLIF ( + 66, + COUNT( * ) ) + - 27 THEN - AVG ( - 2 ) / 66 * + + 56 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT - CASE + 96 WHEN + COUNT ( * ) - COUNT ( * ) * - + COUNT ( * ) * - NULLIF ( + 66, + COUNT ( * ) ) + - 27 THEN - AVG ( - 2 ) / 66 * + + 56 END
----
NULL

query I rowsort
SELECT COALESCE ( - 53, + 58, - 61 ) * - 94 col1
----
4982

query I rowsort
SELECT ALL - - 13 col1
----
13

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

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

query I rowsort
SELECT 51 * - 58
----
-2958

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

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

query I rowsort
SELECT ( 36 ) + - - 8 AS col2
----
44

query I rowsort
SELECT 41 * + 38 AS col0
----
1558

query I rowsort
SELECT ALL + 92 * - 80
----
-7360

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7693
SELECT - ( + - 41 ) + COUNT( * ) - + 27 DIV - 55 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-7693
SELECT - ( + - 41 ) + COUNT ( * ) - + 27 / - 55 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL - 30 + - COUNT( * ) + + SUM( DISTINCT - COALESCE ( - 53, + 94 ) ) + + + 28 * - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL - 30 + - COUNT ( * ) + + SUM ( DISTINCT - COALESCE ( - 53, + 94 ) ) + + + 28 * - COUNT ( * )
----
-6

query I rowsort
SELECT - 58 * + - 16
----
928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7696
SELECT - NULLIF ( - COUNT( ALL + + 92 ), - 32 * - + 52 + - + 78 ) * CAST( - ( - CASE - - 86 WHEN - + 70 - MIN( - 73 ) + + - 54 THEN NULL WHEN 22 * 88 THEN NULL WHEN - 99 + - + CASE 73 WHEN 74 + ( - 7 ) + - + 67 + ( + 71 ) + - 61 * - + CAST( NULL AS DECIMAL ) * AVG ( DISTINCT - 27 ) THEN NULL WHEN - 75 THEN + 7 + - 68 END THEN - 18 END ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT - NULLIF ( - COUNT ( ALL + + 92 ), - 32 * - + 52 + - + 78 ) * CAST ( - ( - CASE - - 86 WHEN - + 70 - MIN ( - 73 ) + + - 54 THEN NULL WHEN 22 * 88 THEN NULL WHEN - 99 + - + CASE 73 WHEN 74 + ( - 7 ) + - + 67 + ( + 71 ) + - 61 * - + CAST ( NULL AS REAL ) * AVG ( DISTINCT - 27 ) THEN NULL WHEN - 75 THEN + 7 + - 68 END THEN - 18 END ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT ALL - 57 / + + CASE + NULLIF ( + 14, 42 - 45 - + NULLIF ( + 59, + 65 * - COUNT( * ) ) ) WHEN + 52 * 16 THEN NULL WHEN 59 * - CAST( 50 AS SIGNED ) / - 97 THEN - 86 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - 57 / + + CASE + NULLIF ( + 14, 42 - 45 - + NULLIF ( + 59, + 65 * - COUNT ( * ) ) ) WHEN + 52 * 16 THEN NULL WHEN 59 * - CAST ( 50 AS INTEGER ) / - 97 THEN - 86 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT DISTINCT - 76 DIV - 22 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT - 76 / - 22 AS col0
----
3

query I rowsort
SELECT ALL + 85 - + - 15 col1
----
100

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

query II rowsort
SELECT 34, 38 AS col0
----
34
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT MAX( ALL - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT MAX ( ALL - 25 )
----
-25

query I rowsort
SELECT - 75 * - 90 col0
----
6750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT ALL + - 4 - + MIN( ALL + - 9 )
----
5

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL + - 4 - + MIN ( ALL + - 9 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT - - 71 - CASE - 91 WHEN + 23 THEN COALESCE ( COUNT( * ), 93 * - 68, - 4 * + COALESCE ( 72, - + NULLIF ( - 24, NULLIF ( 81, + + 29 ) * 78 ), 15 / + 24 ) * + - 23 * + + 47 * - + 58 / 30 + - 38 / + ( - 44 ) ) WHEN - + 42 THEN - + 83 END - 54 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT - - 71 - CASE - 91 WHEN + 23 THEN COALESCE ( COUNT ( * ), 93 * - 68, - 4 * + COALESCE ( 72, - + NULLIF ( - 24, NULLIF ( 81, + + 29 ) * 78 ), 15 / + 24 ) * + - 23 * + + 47 * - + 58 / 30 + - 38 / + ( - 44 ) ) WHEN - + 42 THEN - + 83 END - 54 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7707
SELECT DISTINCT + + 62 * CAST( + - 31 AS SIGNED ) AS col0
----
-1922

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT + + 62 * CAST ( + - 31 AS INTEGER ) AS col0
----
-1922

query I rowsort
SELECT + ( - - 2 ) * + 76 AS col2
----
152

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

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

query I rowsort
SELECT DISTINCT + ( 42 ) AS col0
----
42

query I rowsort
SELECT + - 80 * 31 AS col0
----
-2480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7712
SELECT ALL - MAX( - - 62 ) DIV - + ( - 56 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL - MAX ( - - 62 ) / - + ( - 56 ) col1
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT - 65 DIV + + 77 * + 70 + - 13 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7714
SELECT - 65 / + + 77 * + 70 + - 13 AS col1
----
-13

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7716
SELECT DISTINCT + 69 * + COUNT( * ) * - COUNT( * ) * + 92 + + 52, 11 col0
----
-6296
11

skipif mysql # not compatible
query II rowsort label-7716
SELECT DISTINCT + 69 * + COUNT ( * ) * - COUNT ( * ) * + 92 + + 52, 11 col0
----
-6296
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT + - ( 9 ) + + SUM( + 63 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7717
SELECT + - ( 9 ) + + SUM ( + 63 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-7718
SELECT DISTINCT - 43 * + COUNT( * ) + 27 * - 7 AS col2, - 35 + 68
----
-232
33

skipif mysql # not compatible
query II rowsort label-7718
SELECT DISTINCT - 43 * + COUNT ( * ) + 27 * - 7 AS col2, - 35 + 68
----
-232
33

query I rowsort
SELECT ALL ( - 36 ) * - 85 + + 2 - 31
----
3031

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7721
SELECT ALL + 83, 27 + CAST( NULL AS DECIMAL ) / - + ( 52 ) AS col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-7721
SELECT ALL + 83, 27 + CAST ( NULL AS REAL ) / - + ( 52 ) AS col0
----
83
NULL

query I rowsort
SELECT ALL + 10 * + - 88 * + 47 + 34 + - 77 * + 85
----
-47871

onlyif mysql # aggregate syntax: 
query II rowsort label-7723
SELECT DISTINCT - ( + 63 ) * - + 3 + + 81 + - 45 * + 87 + - COUNT( * ) * - SUM( ALL 90 ) AS col1, - 99
----
-3555
-99

skipif mysql # not compatible
query II rowsort label-7723
SELECT DISTINCT - ( + 63 ) * - + 3 + + 81 + - 45 * + 87 + - COUNT ( * ) * - SUM ( ALL 90 ) AS col1, - 99
----
-3555
-99

query I rowsort
SELECT + NULLIF ( - 98, + 92 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT NULLIF ( + COUNT( ALL 9 ), 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7725
SELECT NULLIF ( + COUNT ( ALL 9 ), 47 ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT + COUNT( * ) * + 5 * + COUNT( 46 ) + 11 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7727
SELECT + COUNT ( * ) * + 5 * + COUNT ( 46 ) + 11 AS col0
----
16

query II rowsort
SELECT - ( + 57 ) AS col0, 61 * + + 2 * - + ( + 26 ) + + 62
----
-57
-3110

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT DISTINCT 49, - 62 - + MAX( DISTINCT + - 63 ) AS col2
----
49
1

skipif mysql # not compatible
query II rowsort label-7730
SELECT DISTINCT 49, - 62 - + MAX ( DISTINCT + - 63 ) AS col2
----
49
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7731
SELECT ALL 16 DIV - - NULLIF ( 34, + 62 ) AS col2, - 4 * - + COALESCE ( + MAX( - 75 ), - 67 * + 23 * CASE + 31 WHEN + 64 THEN NULL ELSE - - 43 + - 38 + - 85 END ) + + 91 AS col1
----
0
-209

skipif mysql # not compatible
query II rowsort label-7731
SELECT ALL 16 / - - NULLIF ( 34, + 62 ) AS col2, - 4 * - + COALESCE ( + MAX ( - 75 ), - 67 * + 23 * CASE + 31 WHEN + 64 THEN NULL ELSE - - 43 + - 38 + - 85 END ) + + 91 AS col1
----
0
-209

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL ( COALESCE ( + 6, + 23 * + - SUM( 98 ) * - 37 + - MIN( 62 ), - 46 + - + 42 ) )
----
6

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL ( COALESCE ( + 6, + 23 * + - SUM ( 98 ) * - 37 + - MIN ( 62 ), - 46 + - + 42 ) )
----
6

query I rowsort
SELECT DISTINCT 51 * - 85 AS col2
----
-4335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT DISTINCT 10 - + CAST( 9 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT 10 - + CAST ( 9 AS INTEGER )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7736
SELECT 87 AS col0, + NULLIF ( AVG ( - 39 ), - - 8 ) * + CAST( NULL AS SIGNED )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-7736
SELECT 87 AS col0, + NULLIF ( AVG ( - 39 ), - - 8 ) * + CAST ( NULL AS INTEGER )
----
87
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7737
SELECT + - 42 DIV 61 * + NULLIF ( - - COUNT( * ), - - 92 )
----
0

skipif mysql # not compatible
query I rowsort label-7737
SELECT + - 42 / 61 * + NULLIF ( - - COUNT ( * ), - - 92 )
----
0

query I rowsort
SELECT - 35 + - - ( + 63 ) + 18 + - - 82
----
128

query I rowsort
SELECT - NULLIF ( NULLIF ( - - 34, + + 86 / + 51 + + + ( 31 ) ), 79 / - 97 ) - - 0 + + - 33 AS col1
----
-67

query I rowsort
SELECT - + 61 * + 3
----
-183

query I rowsort
SELECT - 62 + - 82
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7742
SELECT 68 col1, COALESCE ( 75, - + 38 * ( - ( 6 ) ) * 90 + SUM( ALL - 33 ) * + COUNT( * ) + + 19, - 82 + - 64 ) * - 51 * + CAST( NULL AS SIGNED ) * + - 59
----
68
NULL

skipif mysql # not compatible
query II rowsort label-7742
SELECT 68 col1, COALESCE ( 75, - + 38 * ( - ( 6 ) ) * 90 + SUM ( ALL - 33 ) * + COUNT ( * ) + + 19, - 82 + - 64 ) * - 51 * + CAST ( NULL AS INTEGER ) * + - 59
----
68
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT ALL + 95 + - 72, SUM( DISTINCT + 11 ) AS col2
----
23
11

skipif mysql # not compatible
query II rowsort label-7743
SELECT ALL + 95 + - 72, SUM ( DISTINCT + 11 ) AS col2
----
23
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT - + ( - COUNT( * ) ) + 71
----
72

skipif mysql # not compatible
query I rowsort label-7745
SELECT - + ( - COUNT ( * ) ) + 71
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7746
SELECT ALL - - 97 + - 86 / + CAST( NULL AS DECIMAL ) / - 82 * 1 * - 39 * + + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL - - 97 + - 86 / + CAST ( NULL AS REAL ) / - 82 * 1 * - 39 * + + 28 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - - 61, 78 - + 76 + ( + 82 ) * ( + 91 ) )
----
61

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

skipif mysql # not compatible
query I rowsort label-7748
SELECT - - COUNT ( * ) * - 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT COALESCE ( - - 48, + 19 * 16 + + 22 + - MIN( DISTINCT - 36 ) + 9, - NULLIF ( + 60, + + 36 * - - 86 ) )
----
48

skipif mysql # not compatible
query I rowsort label-7749
SELECT COALESCE ( - - 48, + 19 * 16 + + 22 + - MIN ( DISTINCT - 36 ) + 9, - NULLIF ( + 60, + + 36 * - - 86 ) )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7750
SELECT ALL - + 93 DIV - + 61 + - 94 + 22 * + COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL - + 93 / - + 61 + - 94 + 22 * + COUNT ( * ) AS col1
----
-71

onlyif mysql # DIV for integer division: 
query II rowsort label-7751
SELECT - 15 AS col0, - 15 DIV + + 90
----
-15
0

skipif mysql # not compatible
query II rowsort label-7751
SELECT - 15 AS col0, - 15 / + + 90
----
-15
0

query I rowsort
SELECT ALL - 85 * - 12 * + 57
----
58140

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7755
SELECT ALL + ( - 47 ) + - 11 DIV - - 93 col1
----
-47

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL + ( - 47 ) + - 11 / - - 93 col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7756
SELECT DISTINCT 54 DIV - + ( + 3 )
----
-18

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT 54 / - + ( + 3 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7757
SELECT DISTINCT + 47 + MIN( DISTINCT - 78 ) + - - 43 + + SUM( DISTINCT + 87 ) + 90 + 98 * 0 / + ( + 34 ) * - - CAST( NULL AS SIGNED ) * - + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT DISTINCT + 47 + MIN ( DISTINCT - 78 ) + - - 43 + + SUM ( DISTINCT + 87 ) + 90 + 98 * 0 / + ( + 34 ) * - - CAST ( NULL AS INTEGER ) * - + 55 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7759
SELECT 47 * - COUNT( * ) AS col2, 28 AS col0
----
-47
28

skipif mysql # not compatible
query II rowsort label-7759
SELECT 47 * - COUNT ( * ) AS col2, 28 AS col0
----
-47
28

query I rowsort
SELECT ALL 53 * - 16 AS col1
----
-848

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

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

query I rowsort
SELECT ALL - 57 * + + ( + + 47 )
----
-2679

onlyif mysql # DIV for integer division: 
query I rowsort label-7763
SELECT ALL 75 * 93 DIV + 38
----
183

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL 75 * 93 / + 38
----
183

query II rowsort
SELECT ( - + COALESCE ( - 83, 52 ) ) * - 14 AS col0, + 70 AS col0
----
-1162
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7765
SELECT ALL - COUNT( DISTINCT + - 40 ), + ( + - ( + ( + 20 ) ) ) * + 2 AS col0
----
-1
-40

skipif mysql # not compatible
query II rowsort label-7765
SELECT ALL - COUNT ( DISTINCT + - 40 ), + ( + - ( + ( + 20 ) ) ) * + 2 AS col0
----
-1
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT 10 * - CASE - - ( - 62 ) WHEN + ( - 25 ) THEN NULL WHEN + 17 THEN - COUNT( + ( + 21 ) ) + + - 42 * SUM( 13 ) + 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT 10 * - CASE - - ( - 62 ) WHEN + ( - 25 ) THEN NULL WHEN + 17 THEN - COUNT ( + ( + 21 ) ) + + - 42 * SUM ( 13 ) + 70 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT 72 * - + MIN( + 87 ) * + 55
----
-344520

skipif mysql # not compatible
query I rowsort label-7767
SELECT 72 * - + MIN ( + 87 ) * + 55
----
-344520

query I rowsort
SELECT 7 + + 8 * - 0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT - + COALESCE ( - + ( + COUNT( + 63 ) ), + MAX( ALL + - 81 ), 94 ) * - 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT - + COALESCE ( - + ( + COUNT ( + 63 ) ), + MAX ( ALL + - 81 ), 94 ) * - 25 AS col0
----
-25

query I rowsort
SELECT ALL - 99 + + 0 AS col2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT ALL - - 61 + + + 45 + + 46 + 59 + + 67 + + - 17 DIV - 42 * - - 78 + 52 col2
----
330

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL - - 61 + + + 45 + + 46 + 59 + + 67 + + - 17 / - 42 * - - 78 + 52 col2
----
330

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7772
SELECT - CAST( 84 AS SIGNED ) * ( CAST( NULL AS SIGNED ) ) * - 12 * + ( - 84 ) AS col1, CASE 54 WHEN + 30 THEN - 23 WHEN + + 28 THEN + + 78 ELSE - - 20 DIV - 14 + 37 + - 70 END
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-7772
SELECT - CAST ( 84 AS INTEGER ) * ( CAST ( NULL AS INTEGER ) ) * - 12 * + ( - 84 ) AS col1, CASE 54 WHEN + 30 THEN - 23 WHEN + + 28 THEN + + 78 ELSE - - 20 / - 14 + 37 + - 70 END
----
NULL
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT DISTINCT COUNT( * ) * ( - + COUNT( ALL + 79 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT COUNT ( * ) * ( - + COUNT ( ALL + 79 ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - - MAX( + 23 ) + - - 63
----
86

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - - MAX ( + 23 ) + - - 63
----
86

query II rowsort
SELECT - 35 - - - 47 AS col1, - 5
----
-82
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT - 49 - - COUNT( ALL + ( + 12 ) ) * - 11 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-7776
SELECT - 49 - - COUNT ( ALL + ( + 12 ) ) * - 11 AS col2
----
-60

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

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL + 92 / - 74 + + - COUNT ( * ) + + + 90 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT ALL + 23 + - 8 DIV 80
----
23

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL + 23 + - 8 / 80
----
23

onlyif mysql # aggregate syntax: 
query III rowsort label-7779
SELECT DISTINCT - 1 * + COUNT( * ) AS col2, 67 AS col0, + 88 AS col2
----
-1
67
88

skipif mysql # not compatible
query III rowsort label-7779
SELECT DISTINCT - 1 * + COUNT ( * ) AS col2, 67 AS col0, + 88 AS col2
----
-1
67
88

query I rowsort
SELECT ALL + 33 - + 2 col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT ALL - COUNT( ALL 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - COUNT ( ALL 57 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7782
SELECT 70 * + COALESCE ( - COUNT( * ), + - SUM( ALL + 69 ), - 70 * + 20 DIV - COUNT( DISTINCT + 57 ) * 66 + 36 ) + - 14 + 85 AS col1, - 38 DIV + 34
----
1
-1

skipif mysql # not compatible
query II rowsort label-7782
SELECT 70 * + COALESCE ( - COUNT ( * ), + - SUM ( ALL + 69 ), - 70 * + 20 / - COUNT ( DISTINCT + 57 ) * 66 + 36 ) + - 14 + 85 AS col1, - 38 / + 34
----
1
-1

query I rowsort
SELECT 67 - + 52 AS col2
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL + 34 - - 80 - COALESCE ( - 5, COUNT( * ) ) col2
----
119

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL + 34 - - 80 - COALESCE ( - 5, COUNT ( * ) ) col2
----
119

query II rowsort
SELECT + 74, + 47 + 89 * + 69 AS col2
----
74
6188

query I rowsort
SELECT ALL - 71 * ( + - 31 ) AS col2
----
2201

query I rowsort
SELECT 57 + 64 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT - COUNT( DISTINCT - 57 ) * - SUM( - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT - COUNT ( DISTINCT - 57 ) * - SUM ( - 91 )
----
-91

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT COUNT( * ) + 81
----
82

skipif mysql # not compatible
query I rowsort label-7794
SELECT COUNT ( * ) + 81
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7795
SELECT 72 DIV + - 16 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-7795
SELECT 72 / + - 16 AS col2
----
-4

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7797
SELECT ALL + 26 * + - 17 * 69 AS col1, - NULLIF ( 85, + 26 * 31 + ( COUNT( * ) ) )
----
-30498
-85

skipif mysql # not compatible
query II rowsort label-7797
SELECT ALL + 26 * + - 17 * 69 AS col1, - NULLIF ( 85, + 26 * 31 + ( COUNT ( * ) ) )
----
-30498
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7798
SELECT COUNT( * ) * + 49 + ( + + COUNT( * ) ) AS col0, - COUNT( * ) / + 84 + - 78 + 72 + AVG ( - + 56 ) + 57 / + + 90 + + COUNT( * ) * + - CAST( NULL AS SIGNED ) * - ( - + 53 ) + + - COUNT( * )
----
50
NULL

skipif mysql # not compatible
query II rowsort label-7798
SELECT COUNT ( * ) * + 49 + ( + + COUNT ( * ) ) AS col0, - COUNT ( * ) / + 84 + - 78 + 72 + AVG ( - + 56 ) + 57 / + + 90 + + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * - ( - + 53 ) + + - COUNT ( * )
----
50
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7799
SELECT DISTINCT + COUNT( + - 80 ) * - SUM( - + 33 ) + + - COUNT( * ) DIV + COUNT( * ) + - + 51 + - - 81 * + COALESCE ( - 14, 21 * 86 ) + + - 4 col1
----
-1157

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT + COUNT ( + - 80 ) * - SUM ( - + 33 ) + + - COUNT ( * ) / + COUNT ( * ) + - + 51 + - - 81 * + COALESCE ( - 14, 21 * 86 ) + + - 4 col1
----
-1157

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT DISTINCT - CASE - - 90 WHEN - 14 * 7 - + 97 + - 56 + - + 28 THEN - - 37 DIV 44 ELSE + 21 * - COALESCE ( + 16, + 96 ) END + 32 AS col0
----
368

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT - CASE - - 90 WHEN - 14 * 7 - + 97 + - 56 + - + 28 THEN - - 37 / 44 ELSE + 21 * - COALESCE ( + 16, + 96 ) END + 32 AS col0
----
368

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL + ( + - 50 ) + - + MAX( - 64 )
----
14

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL + ( + - 50 ) + - + MAX ( - 64 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT ALL - COUNT( * ) AS col2, - 47 + - + 11
----
-1
-58

skipif mysql # not compatible
query II rowsort label-7802
SELECT ALL - COUNT ( * ) AS col2, - 47 + - + 11
----
-1
-58

query II rowsort
SELECT ALL + - 55 + - + 2 + + 83 AS col1, - 5 + ( - 78 ) AS col0
----
26
-83

query I rowsort
SELECT ALL 83 + 98 + - 97 AS col1
----
84

query I rowsort
SELECT 58 - + 91 AS col1
----
-33

query I rowsort
SELECT DISTINCT 23 + - + 12
----
11

query II rowsort
SELECT ALL - 17, + 47 AS col0
----
-17
47

query I rowsort
SELECT 61 * + + 87 * + 30
----
159210

query I rowsort
SELECT - 67 + 72 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT - MIN( 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT - MIN ( 81 ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT ALL + CASE - - COUNT( * ) WHEN - COUNT( * ) THEN + 23 + + 45 - - - 13 ELSE NULL END + - 54 + + 26 / - CAST( NULL AS SIGNED ) * + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL + CASE - - COUNT ( * ) WHEN - COUNT ( * ) THEN + 23 + + 45 - - - 13 ELSE NULL END + - 54 + + 26 / - CAST ( NULL AS INTEGER ) * + - 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT NULLIF ( 1, + COUNT( * ) / 9 ) + 47
----
48

skipif mysql # not compatible
query I rowsort label-7812
SELECT NULLIF ( 1, + COUNT ( * ) / 9 ) + 47
----
48

query II rowsort
SELECT - 83 AS col1, 63
----
-83
63

query I rowsort
SELECT + 33 + 91
----
124

query I rowsort
SELECT 27 - 44
----
-17

query I rowsort
SELECT ALL + 27 + - 51 AS col2
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT ALL - 52 DIV - 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL - 52 / - 81 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT - 94 - + ( - COUNT( * ) ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT - 94 - + ( - COUNT ( * ) ) col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT DISTINCT COUNT( * ) * 68 * + 91
----
6188

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT COUNT ( * ) * 68 * + 91
----
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT + 83 + 78 - - + 95 DIV - 53 + - 63 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7820
SELECT + 83 + 78 - - + 95 / - 53 + - 63 AS col0
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT + CASE + NULLIF ( - + 0, 59 ) WHEN + CASE - 31 WHEN 68 / + 26 THEN + 68 + + 65 END / + 34 * 41 * COUNT( ALL 87 ) + + 17 THEN 88 + + + 35 WHEN 51 - ( + 46 ) - - - ( + - 15 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT + CASE + NULLIF ( - + 0, 59 ) WHEN + CASE - 31 WHEN 68 / + 26 THEN + 68 + + 65 END / + 34 * 41 * COUNT ( ALL 87 ) + + 17 THEN 88 + + + 35 WHEN 51 - ( + 46 ) - - - ( + - 15 ) THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7823
SELECT ALL + 30 DIV + + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL + 30 / + + 65 AS col2
----
0

query I rowsort
SELECT - ( + 84 ) * + - ( 73 )
----
6132

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT ALL 76 DIV + 17 col0
----
4

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL 76 / + 17 col0
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-7826
SELECT ALL 93 DIV + 19 AS col2, + 75 + 47
----
4
122

skipif mysql # not compatible
query II rowsort label-7826
SELECT ALL 93 / + 19 AS col2, + 75 + 47
----
4
122

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ALL - COUNT( * ) * + 17 * + ( 43 )
----
-731

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - COUNT ( * ) * + 17 * + ( 43 )
----
-731

query I rowsort
SELECT + 75 * + 91 AS col2
----
6825

query I rowsort
SELECT ALL - 40 * + 88 * + - CASE - 27 WHEN + 25 THEN - 75 + + ( - ( + ( 83 ) ) ) WHEN 92 + 4 THEN NULL ELSE - - 32 END AS col0
----
112640

query I rowsort
SELECT COALESCE ( NULLIF ( 82, 5 ), - 68 - 67, + 69 + + 94, - 57, ( - 48 ) ) col0
----
82

query I rowsort
SELECT COALESCE ( - + 10, - 29 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7832
SELECT 40 * - COUNT( * ) * 58 - + - 66 + + 14 DIV + ( - MIN( 67 ) ) * - CAST( - 77 AS SIGNED )
----
-2254

skipif mysql # not compatible
query I rowsort label-7832
SELECT 40 * - COUNT ( * ) * 58 - + - 66 + + 14 / + ( - MIN ( 67 ) ) * - CAST ( - 77 AS INTEGER )
----
-2254

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT MIN( + + 87 ) * - 72 + 43 + + 83 * 9 AS col1
----
-5474

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT MIN ( + + 87 ) * - 72 + 43 + + 83 * 9 AS col1
----
-5474

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL COUNT( DISTINCT - 63 ) * - - COUNT( + 40 ) + + 10 + + 58 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL COUNT ( DISTINCT - 63 ) * - - COUNT ( + 40 ) + + 10 + + 58 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT ALL - + MIN( ALL + 47 ) * + COALESCE ( 91, 69 ) * ( 89 ) + + 58 + + + ( + + MAX( - 25 ) ) AS col1
----
-380620

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - + MIN ( ALL + 47 ) * + COALESCE ( 91, 69 ) * ( 89 ) + + 58 + + + ( + + MAX ( - 25 ) ) AS col1
----
-380620

onlyif mysql # aggregate syntax: 
query II rowsort label-7836
SELECT ALL + - COUNT( ALL - 69 ) AS col0, 51 AS col1
----
-1
51

skipif mysql # not compatible
query II rowsort label-7836
SELECT ALL + - COUNT ( ALL - 69 ) AS col0, 51 AS col1
----
-1
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7837
SELECT - + 72 + + SUM( + 33 ) DIV 98 * COUNT( * ) - 1 DIV + 49 * 59 + + 91 + 19
----
38

skipif mysql # not compatible
query I rowsort label-7837
SELECT - + 72 + + SUM ( + 33 ) / 98 * COUNT ( * ) - 1 / + 49 * 59 + + 91 + 19
----
38

query I rowsort
SELECT - CASE + - 87 WHEN 52 THEN + 10 + 52 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 17 + + + 0 - 59
----
-76

query I rowsort
SELECT - - 53 * 1 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7841
SELECT - + 36 DIV + - NULLIF ( - 38, ( - MIN( 34 ) ) * 89 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7841
SELECT - + 36 / + - NULLIF ( - 38, ( - MIN ( 34 ) ) * 89 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT - + 78 + + + MAX( 48 ) - - MIN( 27 )
----
-3

skipif mysql # not compatible
query I rowsort label-7842
SELECT - + 78 + + + MAX ( 48 ) - - MIN ( 27 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7843
SELECT ALL - 56 - - 16 DIV - 77
----
-56

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL - 56 - - 16 / - 77
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT ALL SUM( - 23 ) - + 41 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL SUM ( - 23 ) - + 41 AS col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7845
SELECT ALL - 6 * 76 + 2 DIV - 77 * + + 7
----
-456

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL - 6 * 76 + 2 / - 77 * + + 7
----
-456

query I rowsort
SELECT + + 95 * + 12 * 57 AS col0
----
64980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7847
SELECT + 71 DIV + 73 * - SUM( 17 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7847
SELECT + 71 / + 73 * - SUM ( 17 ) AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + COALESCE ( 78, - 3 ) * - COUNT( DISTINCT - - 72 )
----
-78

skipif mysql # not compatible
query I rowsort label-7849
SELECT + COALESCE ( 78, - 3 ) * - COUNT ( DISTINCT - - 72 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7850
SELECT + 18 - COUNT( * ) / - CASE - 49 WHEN + CAST( + + 22 AS SIGNED ) - - + 27 + 28 - + CAST( + - 91 AS SIGNED ) THEN 33 + + MIN( 1 ) + - 94 * + 28 + - COUNT( * ) * 55 + - COUNT( * ) * - 81 + + 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT + 18 - COUNT ( * ) / - CASE - 49 WHEN + CAST ( + + 22 AS INTEGER ) - - + 27 + 28 - + CAST ( + - 91 AS INTEGER ) THEN 33 + + MIN ( 1 ) + - 94 * + 28 + - COUNT ( * ) * 55 + - COUNT ( * ) * - 81 + + 69 END
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7853
SELECT + ( - 2 ) * + 17 * - 6 * - + 18 * NULLIF ( 86, 37 * + CASE + CAST( - + 92 AS SIGNED ) WHEN - + 59 + + COUNT( * ) * COUNT( * ) * + 34 THEN + 1 * - 26 + 68 * 72 * + + 77 WHEN + 75 THEN NULL ELSE NULL END * CAST( NULL AS SIGNED ) * + - COUNT( * ) + 17 * + 68 ) * - - 88
----
-27789696

skipif mysql # not compatible
query I rowsort label-7853
SELECT + ( - 2 ) * + 17 * - 6 * - + 18 * NULLIF ( 86, 37 * + CASE + CAST ( - + 92 AS INTEGER ) WHEN - + 59 + + COUNT ( * ) * COUNT ( * ) * + 34 THEN + 1 * - 26 + 68 * 72 * + + 77 WHEN + 75 THEN NULL ELSE NULL END * CAST ( NULL AS INTEGER ) * + - COUNT ( * ) + 17 * + 68 ) * - - 88
----
-27789696

query I rowsort
SELECT ALL 52 * 94 AS col0
----
4888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7855
SELECT + CAST( 75 AS SIGNED ) - + + NULLIF ( + COUNT( + + 75 ), + 48 ) + - 66 + - + 76 * - COUNT( * ) * + + 59 * + 43 AS col2, - 72 AS col1
----
192820
-72

skipif mysql # not compatible
query II rowsort label-7855
SELECT + CAST ( 75 AS INTEGER ) - + + NULLIF ( + COUNT ( + + 75 ), + 48 ) + - 66 + - + 76 * - COUNT ( * ) * + + 59 * + 43 AS col2, - 72 AS col1
----
192820
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT 44 DIV + ( + 68 ) + - - 97 + - 45 * - 34 + + - 45
----
1582

skipif mysql # not compatible
query I rowsort label-7856
SELECT 44 / + ( + 68 ) + - - 97 + - 45 * - 34 + + - 45
----
1582

query II rowsort
SELECT ALL + 37, - 77 AS col1
----
37
-77

query I rowsort
SELECT + ( - + COALESCE ( + ( 11 ), 85 ) ) AS col0
----
-11

query I rowsort
SELECT - 17 * + 42 AS col2
----
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7860
SELECT + 90 DIV COUNT( * ) + + 21
----
111

skipif mysql # not compatible
query I rowsort label-7860
SELECT + 90 / COUNT ( * ) + + 21
----
111

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7861
SELECT ALL - 59 / - 35 + + 8 / - - CASE 23 WHEN + + ( 48 ) * - - 98 / - 83 + + + 27 THEN CAST( - 19 AS SIGNED ) + + 66 ELSE NULL END / 80 + + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL - 59 / - 35 + + 8 / - - CASE 23 WHEN + + ( 48 ) * - - 98 / - 83 + + + 27 THEN CAST ( - 19 AS INTEGER ) + + 66 ELSE NULL END / 80 + + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7862
SELECT DISTINCT 40 DIV + COUNT( * ) + 33
----
73

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT 40 / + COUNT ( * ) + 33
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-7863
SELECT DISTINCT 46 DIV - 87 + 59 AS col0, 81
----
59
81

skipif mysql # not compatible
query II rowsort label-7863
SELECT DISTINCT 46 / - 87 + 59 AS col0, 81
----
59
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7864
SELECT DISTINCT - 43 DIV - ( + MIN( 61 ) ) + - 18 - - SUM( 71 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT - 43 / - ( + MIN ( 61 ) ) + - 18 - - SUM ( 71 ) AS col2
----
53

query II rowsort
SELECT + 60, 86 AS col1
----
60
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT DISTINCT - + 47 * - 9 + + + MIN( - 26 )
----
397

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT - + 47 * - 9 + + + MIN ( - 26 )
----
397

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7867
SELECT + MIN( DISTINCT 43 ) DIV - COALESCE ( - COUNT( * ), - + 24 ) col2, 96 + 49 AS col2
----
43
145

skipif mysql # not compatible
query II rowsort label-7867
SELECT + MIN ( DISTINCT 43 ) / - COALESCE ( - COUNT ( * ), - + 24 ) col2, 96 + 49 AS col2
----
43
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7868
SELECT DISTINCT + 77 * + CASE 30 WHEN - 46 THEN NULL ELSE NULLIF ( - 95, 42 ) END + - 11 DIV + CAST( - AVG ( CAST( 18 AS SIGNED ) ) AS SIGNED ) * - + MIN( - 34 ) + 45 * - 75 + 82 + - 77 + + 37 * - 87 AS col2
----
-13904

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT + 77 * + CASE 30 WHEN - 46 THEN NULL ELSE NULLIF ( - 95, 42 ) END + - 11 / + CAST ( - AVG ( CAST ( 18 AS INTEGER ) ) AS INTEGER ) * - + MIN ( - 34 ) + 45 * - 75 + 82 + - 77 + + 37 * - 87 AS col2
----
-13904

query I rowsort
SELECT DISTINCT - + 62 * 14 - + 34 * + 29 * + + NULLIF ( - + 94, - - 99 )
----
91816

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT 67 + + SUM( ALL - 63 ) col2
----
4

skipif mysql # not compatible
query I rowsort label-7870
SELECT 67 + + SUM ( ALL - 63 ) col2
----
4

query I rowsort
SELECT ALL 85 * + ( - 70 ) AS col1
----
-5950

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT DISTINCT + MIN( DISTINCT 81 ) - + 26 + - + 30
----
25

skipif mysql # not compatible
query I rowsort label-7872
SELECT DISTINCT + MIN ( DISTINCT 81 ) - + 26 + - + 30
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT DISTINCT + MAX( ALL 37 ) * 63
----
2331

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT + MAX ( ALL 37 ) * 63
----
2331

query II rowsort
SELECT ALL - 16 AS col1, 96
----
-16
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7875
SELECT ALL + NULLIF ( - 80, - ( - - CAST( - 54 AS SIGNED ) ) * 35 )
----
-80

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL + NULLIF ( - 80, - ( - - CAST ( - 54 AS INTEGER ) ) * 35 )
----
-80

query I rowsort
SELECT 90 + - + 81
----
9

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT 39 * 61 DIV + 96 - - 17 + + 24 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7879
SELECT 39 * 61 / + 96 - - 17 + + 24 AS col1
----
65

query I rowsort
SELECT 69 + + 21
----
90

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

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

query I rowsort
SELECT 57 + + 54 col2
----
111

query II rowsort
SELECT ALL 61 AS col1, + 91
----
61
91

query I rowsort
SELECT ALL 89 * 37
----
3293

query I rowsort
SELECT ALL - 39 * - 69
----
2691

query I rowsort
SELECT DISTINCT - 30 * + + 37 * + 78
----
-86580

query I rowsort
SELECT ALL + 67 * - ( - + 31 ) AS col1
----
2077

query I rowsort
SELECT ALL - 12 + - - 84
----
72

query I rowsort
SELECT 56 * + - 45 AS col0
----
-2520

query I rowsort
SELECT 92 + + 6 - - 8 AS col0
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-7891
SELECT - 28 col0, 89 + - - 30 * - - COUNT( * )
----
-28
119

skipif mysql # not compatible
query II rowsort label-7891
SELECT - 28 col0, 89 + - - 30 * - - COUNT ( * )
----
-28
119

query I rowsort
SELECT 66 * 32
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT NULLIF ( - + COALESCE ( + ( - COUNT( * ) ), + 61 - ( 67 ) ), 90 + - 27 ) + + 88 * - 60
----
-5279

skipif mysql # not compatible
query I rowsort label-7893
SELECT NULLIF ( - + COALESCE ( + ( - COUNT ( * ) ), + 61 - ( 67 ) ), 90 + - 27 ) + + 88 * - 60
----
-5279

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

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + 40 + - COUNT ( * ) AS col0
----
39

query II rowsort
SELECT ALL - 42, 42 AS col0
----
-42
42

query I rowsort
SELECT ALL 80 * 6 * - NULLIF ( + 97, 55 ) AS col0
----
-46560

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT MIN( ALL - 61 ) + 84
----
23

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT MIN ( ALL - 61 ) + 84
----
23

query I rowsort
SELECT ALL + ( - + 33 ) - - - 99 + - + 14 + - + 32 AS col0
----
-178

onlyif mysql # aggregate syntax: 
query II rowsort label-7899
SELECT 13 * + 23 col0, + MIN( + 89 ) AS col0
----
299
89

skipif mysql # not compatible
query II rowsort label-7899
SELECT 13 * + 23 col0, + MIN ( + 89 ) AS col0
----
299
89

query II rowsort
SELECT 91, - 20 AS col2
----
91
-20

query II rowsort
SELECT DISTINCT - + 12 AS col2, + 78 AS col2
----
-12
78

query II rowsort
SELECT ALL - - NULLIF ( + 46, + - 54 + 52 ) AS col1, - 81
----
46
-81

query I rowsort
SELECT 36 * - 58 - 49 AS col1
----
-2137

query I rowsort
SELECT ALL 60 * 67 AS col2
----
4020

query I rowsort
SELECT - 4 - 85 + - 88 + 55 * - - 37 + 3 * 23
----
1927

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7907
SELECT DISTINCT - - 78 AS col1, COALESCE ( - 32, + + 8 + - COALESCE ( - CAST( NULL AS SIGNED ), + 89 - + 26 + + NULLIF ( - ( + 74 ), - 90 ) + - COUNT( * ) * 17 + COUNT( * ), COUNT( * ) DIV COALESCE ( + 31, - + SUM( DISTINCT + + 2 ), - - 21 ) + - + ( CAST( NULL AS SIGNED ) ) * - + 98 * + 74 * + 93 ) )
----
78
-32

skipif mysql # not compatible
query II rowsort label-7907
SELECT DISTINCT - - 78 AS col1, COALESCE ( - 32, + + 8 + - COALESCE ( - CAST ( NULL AS INTEGER ), + 89 - + 26 + + NULLIF ( - ( + 74 ), - 90 ) + - COUNT ( * ) * 17 + COUNT ( * ), COUNT ( * ) / COALESCE ( + 31, - + SUM ( DISTINCT + + 2 ), - - 21 ) + - + ( CAST ( NULL AS INTEGER ) ) * - + 98 * + 74 * + 93 ) )
----
78
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT + 26 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT + 26 / + 65
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT ALL - ( - 16 ) DIV 17 * - 17 * + ( + 97 ) + + - 42
----
-42

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL - ( - 16 ) / 17 * - 17 * + ( + 97 ) + + - 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT DISTINCT - + NULLIF ( + 41, - ( ( - COUNT( * ) ) ) ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT - + NULLIF ( + 41, - ( ( - COUNT ( * ) ) ) ) col1
----
-41

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

query II rowsort
SELECT ALL 46 AS col2, - 49 * - 24 AS col1
----
46
1176

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

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

query I rowsort
SELECT ALL - 24 * + 64
----
-1536

query I rowsort
SELECT ALL + 13 * - 71 * - 70
----
64610

query II rowsort
SELECT ALL - 43 AS col0, 54 AS col1
----
-43
54

query I rowsort
SELECT - - NULLIF ( - 38, + 15 * + ( - 88 ) + + + 56 * - 78 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT DISTINCT 59 * - - SUM( ALL + 92 ) AS col0
----
5428

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT 59 * - - SUM ( ALL + 92 ) AS col0
----
5428

query I rowsort
SELECT 76 * + + 85
----
6460

query I rowsort
SELECT ALL + 80 + - 70 - - - NULLIF ( - - 84, + 79 / - ( 79 ) ) * - 76 * COALESCE ( 76, - 81 + + ( - 88 ) ) + - + 79
----
485115

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ( 31 ) + + MAX( ALL - 54 )
----
-23

skipif mysql # not compatible
query I rowsort label-7921
SELECT ( 31 ) + + MAX ( ALL - 54 )
----
-23

query I rowsort
SELECT 66 * + 45 * + + 29 AS col0
----
86130

onlyif mysql # DIV for integer division: 
query I rowsort label-7923
SELECT 1 * - 75 DIV - 5
----
15

skipif mysql # not compatible
query I rowsort label-7923
SELECT 1 * - 75 / - 5
----
15

query I rowsort
SELECT ALL - 8 + 75 + + 28
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT 82 - + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-7925
SELECT 82 - + COUNT ( * )
----
81

query I rowsort
SELECT 91 + + 15 + 79 AS col0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL - 8 + - MIN( - - 79 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7927
SELECT ALL - 8 + - MIN ( - - 79 ) AS col1
----
-87

query I rowsort
SELECT ALL ( + - 9 ) + + 54
----
45

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

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT MIN ( 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL - SUM( - - 75 ) + - - 11
----
-64

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL - SUM ( - - 75 ) + - - 11
----
-64

query I rowsort
SELECT 17 * - + 47 AS col0
----
-799

query I rowsort
SELECT ALL + 18 * + 92
----
1656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7933
SELECT 26 - + 21 + + MAX( DISTINCT + COALESCE ( + 85, + + 71 ) ) + + - 77 + + 31 - - - 49 / - 80 * ( - 89 ) * - + 91 + - - 57 / - - 84 * - 76 / - CASE MIN( + 5 ) WHEN + COUNT( * ) + 89 THEN NULL WHEN + COUNT( * ) THEN 97 * - 8 + CAST( NULL AS SIGNED ) END - - ( + COALESCE ( 29, - + 76, + 55 * + + 83 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT 26 - + 21 + + MAX ( DISTINCT + COALESCE ( + 85, + + 71 ) ) + + - 77 + + 31 - - - 49 / - 80 * ( - 89 ) * - + 91 + - - 57 / - - 84 * - 76 / - CASE MIN ( + 5 ) WHEN + COUNT ( * ) + 89 THEN NULL WHEN + COUNT ( * ) THEN 97 * - 8 + CAST ( NULL AS INTEGER ) END - - ( + COALESCE ( 29, - + 76, + 55 * + + 83 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL - COUNT( * ) * - COUNT( + + 74 ) * 86 + + - 26 - + + 66 * - - 92 * + COUNT( * ) AS col0
----
-6012

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL - COUNT ( * ) * - COUNT ( + + 74 ) * 86 + + - 26 - + + 66 * - - 92 * + COUNT ( * ) AS col0
----
-6012

query I rowsort
SELECT - 12 * + 2 - - 36
----
12

query I rowsort
SELECT DISTINCT + NULLIF ( - 61, 17 ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-7937
SELECT ALL - 80 * + 88, COUNT( 54 ) col1
----
-7040
1

skipif mysql # not compatible
query II rowsort label-7937
SELECT ALL - 80 * + 88, COUNT ( 54 ) col1
----
-7040
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT + COUNT( * ) * + 23 * + 3 * + - 89
----
-6141

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT + COUNT ( * ) * + 23 * + 3 * + - 89
----
-6141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7939
SELECT - 50 + SUM( + 67 ) DIV 65 + + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-7939
SELECT - 50 + SUM ( + 67 ) / 65 + + COUNT ( * )
----
-48

query II rowsort
SELECT + 24 + - + ( + 12 ) AS col0, + 48 AS col1
----
12
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7941
SELECT - 64 * + 15, - 35 DIV COUNT( * ) + - 84 AS col1
----
-960
-119

skipif mysql # not compatible
query II rowsort label-7941
SELECT - 64 * + 15, - 35 / COUNT ( * ) + - 84 AS col1
----
-960
-119

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7943
SELECT DISTINCT - 86 * + ( - - 66 ) + CAST( + 39 AS SIGNED ) AS col1, + 29
----
-5637
29

skipif mysql # not compatible
query II rowsort label-7943
SELECT DISTINCT - 86 * + ( - - 66 ) + CAST ( + 39 AS INTEGER ) AS col1, + 29
----
-5637
29

query I rowsort
SELECT - 95 * + 87 + 92 + + - 88 * - - ( 46 ) AS col0
----
-12221

query I rowsort
SELECT ALL + ( + CASE + 62 WHEN + 74 THEN NULL WHEN - 44 THEN + 74 ELSE + + 38 * + 14 + + + 55 END ) AS col1
----
587

query I rowsort
SELECT + 7 * + - ( - + 50 ) + - 71 * - 79
----
5959

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

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

query I rowsort
SELECT ALL ( + 60 ) + + - 84 col2
----
-24

query I rowsort
SELECT ALL 96 + + 20
----
116

query I rowsort
SELECT DISTINCT - 34 + - 18 * - - ( - 38 ) + - + 60
----
590

query I rowsort
SELECT - COALESCE ( + 75, + - 85, 55 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT + 59 * 50 * + COUNT( * )
----
2950

skipif mysql # not compatible
query I rowsort label-7952
SELECT + 59 * 50 * + COUNT ( * )
----
2950

query I rowsort
SELECT + 65 + - NULLIF ( 26, + 44 * + 9 * + 48 * - AVG ( DISTINCT 63 ) )
----
39

query I rowsort
SELECT ALL 71 + + 35 AS col1
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7955
SELECT ALL 30 DIV - NULLIF ( - 85, - - ( + CAST( - - COUNT( * ) AS SIGNED ) ) ) AS col2, COALESCE ( - COUNT( * ), + 38, + 64 ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-7955
SELECT ALL 30 / - NULLIF ( - 85, - - ( + CAST ( - - COUNT ( * ) AS INTEGER ) ) ) AS col2, COALESCE ( - COUNT ( * ), + 38, + 64 ) AS col0
----
0
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7956
SELECT + NULLIF ( - 65, - 73 * + 47 ) DIV SUM( 25 ) DIV - ( MAX( - 82 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT + NULLIF ( - 65, - 73 * + 47 ) / SUM ( 25 ) / - ( MAX ( - 82 ) )
----
0

query I rowsort
SELECT - 41 + + 8 + - + 11 AS col1
----
-44

query I rowsort
SELECT - COALESCE ( 21, - 63 * + + 53 + - 91 * 35 * NULLIF ( 13, + 32 + + 83 ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT - 17 + - - COALESCE ( + ( + + 19 ), - 31, - ( - 11 ) ) + + COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7959
SELECT - 17 + - - COALESCE ( + ( + + 19 ), - 31, - ( - 11 ) ) + + COUNT ( * ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL 23 + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL 23 + + COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT + 29 + 4 * ( - ( - - COUNT( * ) ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7961
SELECT + 29 + 4 * ( - ( - - COUNT ( * ) ) ) AS col2
----
25

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7963
SELECT ALL 11 + + COUNT( * ) DIV 98
----
11

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL 11 + + COUNT ( * ) / 98
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL SUM( - - 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL SUM ( - - 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL CASE ( + COUNT( * ) ) WHEN 37 * 4 THEN NULL ELSE - + 70 END AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL CASE ( + COUNT ( * ) ) WHEN 37 * 4 THEN NULL ELSE - + 70 END AS col1
----
-70

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

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

query II rowsort
SELECT 85, - 12 AS col0
----
85
-12

query I rowsort
SELECT - 51 + 42 AS col0
----
-9

query I rowsort
SELECT - 28 + + 90 + + + 52 - 21 + + 42 AS col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-7970
SELECT - 15 DIV CASE - 93 WHEN COALESCE ( + 6, + + 48 ) DIV - COUNT( * ) THEN NULL WHEN + 44 * + CASE 68 WHEN - + CAST( NULL AS DECIMAL ) + - - 19 THEN + 22 WHEN 17 THEN 51 WHEN 80 - + - 85 - - + COUNT( * ) THEN + + 34 * - + 88 * - COUNT( * ) - ( 68 ) + + 32 DIV + + 64 + - - CASE - + ( 68 ) WHEN + 56 THEN - 2 END ELSE NULL END THEN - 2 ELSE - 99 * - + 67 + - 16 + - - 70 END * + - 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7970
SELECT - 15 / CASE - 93 WHEN COALESCE ( + 6, + + 48 ) / - COUNT ( * ) THEN NULL WHEN + 44 * + CASE 68 WHEN - + CAST ( NULL AS REAL ) + - - 19 THEN + 22 WHEN 17 THEN 51 WHEN 80 - + - 85 - - + COUNT ( * ) THEN + + 34 * - + 88 * - COUNT ( * ) - ( 68 ) + + 32 / + + 64 + - - CASE - + ( 68 ) WHEN + 56 THEN - 2 END ELSE NULL END THEN - 2 ELSE - 99 * - + 67 + - 16 + - - 70 END * + - 14 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7972
SELECT + + 42 col0, CAST( 4 AS SIGNED ) AS col0
----
42
4

skipif mysql # not compatible
query II rowsort label-7972
SELECT + + 42 col0, CAST ( 4 AS INTEGER ) AS col0
----
42
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7973
SELECT DISTINCT + 31 DIV + 87 * + + 5 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT + 31 / + 87 * + + 5 AS col1
----
0

query I rowsort
SELECT ( - 22 ) AS col1
----
-22

query I rowsort
SELECT ALL + + 68 * + - COALESCE ( - 99, - 28 )
----
6732

onlyif mysql # aggregate syntax: 
query II rowsort label-7976
SELECT ALL + MIN( ALL - 17 ) * - 51 * + - 69 - + 46 + - 23 AS col0, + ( 68 ) AS col1
----
-59892
68

skipif mysql # not compatible
query II rowsort label-7976
SELECT ALL + MIN ( ALL - 17 ) * - 51 * + - 69 - + 46 + - 23 AS col0, + ( 68 ) AS col1
----
-59892
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7977
SELECT DISTINCT + 6, COALESCE ( + 24, - MIN( ALL - 24 ) + + 18 * + MIN( 11 ) ) AS col1
----
6
24

skipif mysql # not compatible
query II rowsort label-7977
SELECT DISTINCT + 6, COALESCE ( + 24, - MIN ( ALL - 24 ) + + 18 * + MIN ( 11 ) ) AS col1
----
6
24

query I rowsort
SELECT - ( - 59 ) + + 0 AS col1
----
59

query II rowsort
SELECT 63 AS col2, 5 AS col0
----
63
5

query I rowsort
SELECT + + 62 * - - 52 col0
----
3224

query II rowsort
SELECT - 31, 69 * + + 95 AS col0
----
-31
6555

query I rowsort
SELECT - 5 * - ( + + 2 ) - - + 77
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7983
SELECT - - COUNT( * ) * + + 60 + COUNT( * ) + CAST( NULL AS DECIMAL ) + + 90 / - 45 AS col0, - 68 * - + NULLIF ( - + 4, - - 96 * 18 / 79 )
----
NULL
-272

skipif mysql # not compatible
query II rowsort label-7983
SELECT - - COUNT ( * ) * + + 60 + COUNT ( * ) + CAST ( NULL AS REAL ) + + 90 / - 45 AS col0, - 68 * - + NULLIF ( - + 4, - - 96 * 18 / 79 )
----
NULL
-272

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

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

query I rowsort
SELECT DISTINCT 75 * + 38 + - 93 AS col2
----
2757

query I rowsort
SELECT DISTINCT 89 * - 18 AS col0
----
-1602

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT + NULLIF ( + + 43, - - COALESCE ( COUNT( * ), - + 62 - 59 * 36 * 79 / - - 42 ) ) * + 51 * + 87
----
190791

skipif mysql # not compatible
query I rowsort label-7989
SELECT + NULLIF ( + + 43, - - COALESCE ( COUNT ( * ), - + 62 - 59 * 36 * 79 / - - 42 ) ) * + 51 * + 87
----
190791

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT MAX( 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7992
SELECT MAX ( 91 ) AS col2
----
91

query I rowsort
SELECT ALL COALESCE ( - 3, - - 29 * 95 * - 84 * + 94 * - 25 * + 84 )
----
-3

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

skipif mysql # not compatible
query I rowsort label-7994
SELECT + CAST ( NULL AS INTEGER ) + + 4 * 16 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7995
SELECT ALL CASE 62 WHEN - + 24 THEN NULL ELSE 25 END - - CAST( + + 78 AS SIGNED ) * + 23 * - SUM( - 5 ) + - ( - COUNT( * ) ) + + 85 + 93 AS col2
----
9174

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL CASE 62 WHEN - + 24 THEN NULL ELSE 25 END - - CAST ( + + 78 AS INTEGER ) * + 23 * - SUM ( - 5 ) + - ( - COUNT ( * ) ) + + 85 + 93 AS col2
----
9174

query I rowsort
SELECT + 22 + 88
----
110

query I rowsort
SELECT + 40 * - ( + 60 ) AS col0
----
-2400

query I rowsort
SELECT + 98 * + 48 AS col2
----
4704

query I rowsort
SELECT NULLIF ( 89, 42 ) * 19 + 34
----
1725

query I rowsort
SELECT DISTINCT - 2 * - 48 AS col2
----
96

query I rowsort
SELECT - 70 * + 3 AS col2
----
-210

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL - MAX( 71 ) * + + 91
----
-6461

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL - MAX ( 71 ) * + + 91
----
-6461

query I rowsort
SELECT 21 * + 58 AS col0
----
1218

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT - - 9 DIV - 69 + + - 74 * + + 65
----
-4810

skipif mysql # not compatible
query I rowsort label-8005
SELECT - - 9 / - 69 + + - 74 * + + 65
----
-4810

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT 57 DIV + 2 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8006
SELECT 57 / + 2 AS col2
----
28

query I rowsort
SELECT ALL - - 61 + - + 98 * 86 col0
----
-8367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8008
SELECT CAST( ( + 48 ) AS SIGNED ) + + - MAX( DISTINCT - - 18 ), COALESCE ( - 14, ( + 23 ) ) + + + 10 + CASE + 43 WHEN + + 86 THEN NULL WHEN + COALESCE ( + - 88, 55 ) THEN 87 WHEN - + COUNT( * ) + COUNT( * ) THEN - - 93 / - CAST( + 46 AS SIGNED ) * - - 69 * - + ( - 68 ) END * 31 * AVG ( ALL 69 ) col1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-8008
SELECT CAST ( ( + 48 ) AS INTEGER ) + + - MAX ( DISTINCT - - 18 ), COALESCE ( - 14, ( + 23 ) ) + + + 10 + CASE + 43 WHEN + + 86 THEN NULL WHEN + COALESCE ( + - 88, 55 ) THEN 87 WHEN - + COUNT ( * ) + COUNT ( * ) THEN - - 93 / - CAST ( + 46 AS INTEGER ) * - - 69 * - + ( - 68 ) END * 31 * AVG ( ALL 69 ) col1
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT - 58 + + - COUNT( DISTINCT - + 81 )
----
-59

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT - 58 + + - COUNT ( DISTINCT - + 81 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT + MAX( - 18 ) * - - 5 + - 62 col0
----
-152

skipif mysql # not compatible
query I rowsort label-8010
SELECT + MAX ( - 18 ) * - - 5 + - 62 col0
----
-152

query I rowsort
SELECT ALL + 36 * 37 * + 56 AS col0
----
74592

query I rowsort
SELECT DISTINCT - - 86 + + 61 * + 30 * + 8
----
14726

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT + ( - + 33 ) * + 62 + + 4 AS col2, MIN( DISTINCT - 19 )
----
-2042
-19

skipif mysql # not compatible
query II rowsort label-8013
SELECT + ( - + 33 ) * + 62 + + 4 AS col2, MIN ( DISTINCT - 19 )
----
-2042
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL + SUM( ALL + 25 ) + COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL + SUM ( ALL + 25 ) + COUNT ( * ) AS col1
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8015
SELECT COUNT( * ) * ( + 47 ) + - 15 DIV - - 3
----
42

skipif mysql # not compatible
query I rowsort label-8015
SELECT COUNT ( * ) * ( + 47 ) + - 15 / - - 3
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ( + + MIN( ALL + 54 ) ) + - 17 * + + 77 * + - 31 AS col1
----
40633

skipif mysql # not compatible
query I rowsort label-8016
SELECT ( + + MIN ( ALL + 54 ) ) + - 17 * + + 77 * + - 31 AS col1
----
40633

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

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

query I rowsort
SELECT + 22 + + 70
----
92

query I rowsort
SELECT 75 * - 99 AS col1
----
-7425

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8021
SELECT + 33 * + + CAST( NULL AS DECIMAL ) + ( COUNT( * ) ) * + COUNT( * ) * + CAST( + CASE + 29 WHEN + + 75 THEN - 13 * - 47 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT + 33 * + + CAST ( NULL AS REAL ) + ( COUNT ( * ) ) * + COUNT ( * ) * + CAST ( + CASE + 29 WHEN + + 75 THEN - 13 * - 47 END AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT DISTINCT + 77 - 41 * - 68 * MAX( DISTINCT - 14 ) * - 7 * + ( + COUNT( * ) ) * + 52 AS col1
----
14207725

skipif mysql # not compatible
query I rowsort label-8022
SELECT DISTINCT + 77 - 41 * - 68 * MAX ( DISTINCT - 14 ) * - 7 * + ( + COUNT ( * ) ) * + 52 AS col1
----
14207725

query I rowsort
SELECT DISTINCT + 95 - + 33 AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8024
SELECT ALL ( + 61 ) * - - ( - - COALESCE ( + 2, + - 62 * 63 DIV CASE - 37 WHEN + - 53 * + - 20 DIV - - 50 * - ( 15 ) + + ( CAST( NULL AS SIGNED ) ) THEN CAST( CAST( NULL AS SIGNED ) AS SIGNED ) END, COUNT( DISTINCT - + 54 ), - 72 ) ) + + 94
----
216

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL ( + 61 ) * - - ( - - COALESCE ( + 2, + - 62 * 63 / CASE - 37 WHEN + - 53 * + - 20 / - - 50 * - ( 15 ) + + ( CAST ( NULL AS INTEGER ) ) THEN CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) END, COUNT ( DISTINCT - + 54 ), - 72 ) ) + + 94
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT DISTINCT 29 - - COUNT( * ) * 2 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT 29 - - COUNT ( * ) * 2 AS col0
----
31

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

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

query II rowsort
SELECT ( 11 ) + - + 10, 67 AS col2
----
1
67

query I rowsort
SELECT ALL ( - 30 ) * - - 5
----
-150

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

skipif mysql # not compatible
query I rowsort label-8029
SELECT COUNT ( * ) / 14
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8031
SELECT ALL 42 AS col0, ( CAST( NULL AS SIGNED ) ) + - - 77 * + 42
----
42
NULL

skipif mysql # not compatible
query II rowsort label-8031
SELECT ALL 42 AS col0, ( CAST ( NULL AS INTEGER ) ) + - - 77 * + 42
----
42
NULL

query I rowsort
SELECT 16 + - 54 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL + CASE 11 WHEN - 53 * - 28 / + MIN( DISTINCT 54 ) * 12 THEN NULL ELSE + 63 END * - COALESCE ( + COUNT( DISTINCT + ( - 20 ) ), 30 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + CASE 11 WHEN - 53 * - 28 / + MIN ( DISTINCT 54 ) * 12 THEN NULL ELSE + 63 END * - COALESCE ( + COUNT ( DISTINCT + ( - 20 ) ), 30 ) AS col2
----
-63

query II rowsort
SELECT ALL 53 col1, - 30 * 11 + 4 + ( + - 64 )
----
53
-390

query I rowsort
SELECT 45 * - 22
----
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT ALL 56 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL 56 / + 94 AS col0
----
0

query I rowsort
SELECT 51 + + 87 AS col1
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT ALL COALESCE ( 12, 84, - 26 + 12 DIV 35 ) + - 35 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL COALESCE ( 12, 84, - 26 + 12 / 35 ) + - 35 AS col1
----
-23

query I rowsort
SELECT CASE 47 WHEN 8 * + 47 THEN 98 ELSE NULL END + ( - 13 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT DISTINCT 3 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT 3 / + 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT 35 DIV COALESCE ( - 62, 53, + 76 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8041
SELECT 35 / COALESCE ( - 62, 53, + 76 ) col1
----
0

query I rowsort
SELECT ALL 20 + - 9
----
11

query I rowsort
SELECT DISTINCT 55 + + ( + 59 ) * - 30
----
-1715

query I rowsort
SELECT ALL 14 * 15 AS col1
----
210

query I rowsort
SELECT DISTINCT + 98 * 1
----
98

query I rowsort
SELECT ALL 49 * 96 + + 45
----
4749

query I rowsort
SELECT DISTINCT ( + 36 ) * + 78 + 42
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL - 5 * - 40 + COUNT( * ) AS col0
----
201

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL - 5 * - 40 + COUNT ( * ) AS col0
----
201

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

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

query I rowsort
SELECT 92 + 0 * 52
----
92

query I rowsort
SELECT 95 * 66
----
6270

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

skipif mysql # not compatible
query I rowsort label-8052
SELECT + SUM ( 21 )
----
21

query I rowsort
SELECT - 23 * 19 + 96 AS col2
----
-341

query I rowsort
SELECT ALL 48 + 13
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT MIN( ALL - 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8055
SELECT MIN ( ALL - 45 ) AS col0
----
-45

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

skipif mysql # not compatible
query I rowsort label-8056
SELECT MIN ( ALL 90 )
----
90

query I rowsort
SELECT ALL - 54 * 12 AS col0
----
-648

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT - 36 * NULLIF ( NULLIF ( 12, COUNT( * ) ), 50 / 31 ) col1
----
-432

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT - 36 * NULLIF ( NULLIF ( 12, COUNT ( * ) ), 50 / 31 ) col1
----
-432

query I rowsort
SELECT 10 * + 46
----
460

query I rowsort
SELECT + 66 * - 66 + + 5
----
-4351

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ALL - CASE + 53 WHEN - 64 + 79 THEN COUNT( * ) ELSE 76 * - 51 END AS col1
----
3876

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL - CASE + 53 WHEN - 64 + 79 THEN COUNT ( * ) ELSE 76 * - 51 END AS col1
----
3876

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8063
SELECT + CASE 72 WHEN - CAST( NULL AS SIGNED ) / 27 THEN 9 * + 20 WHEN 20 THEN MIN( DISTINCT 24 ) * + 30 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8063
SELECT + CASE 72 WHEN - CAST ( NULL AS INTEGER ) / 27 THEN 9 * + 20 WHEN 20 THEN MIN ( DISTINCT 24 ) * + 30 END AS col2
----
NULL

query I rowsort
SELECT 64 * - 59 - + 68 AS col0
----
-3844

query I rowsort
SELECT 0 * 46
----
0

query I rowsort
SELECT 36 * 57 AS col1
----
2052

query I rowsort
SELECT 82 * CASE - 51 WHEN 89 THEN - 19 ELSE NULL END - 84 AS col1
----
NULL

query I rowsort
SELECT - 99 * 71 AS col0
----
-7029

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT DISTINCT - ( ( 77 ) ) DIV - 34 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT - ( ( 77 ) ) / - 34 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT DISTINCT CASE 20 WHEN - COUNT( * ) * ( 2 ) THEN NULL WHEN + ( + 78 ) THEN NULL ELSE 47 END
----
47

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT CASE 20 WHEN - COUNT ( * ) * ( 2 ) THEN NULL WHEN + ( + 78 ) THEN NULL ELSE 47 END
----
47

query I rowsort
SELECT ALL COALESCE ( COALESCE ( + 53, + 74 ), - 95, - 97 * 58 ) col0
----
53

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

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

query I rowsort
SELECT ALL 57 + - 23 * + 0
----
57

query I rowsort
SELECT ALL - 29 + + 90 * 36 AS col2
----
3211

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT - MIN( ALL + 31 ) + + 97
----
66

skipif mysql # not compatible
query I rowsort label-8075
SELECT - MIN ( ALL + 31 ) + + 97
----
66

query I rowsort
SELECT - 5 + - 20 * + 26
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL + 61 + - COALESCE ( 64, + SUM( DISTINCT - 3 ) * 29 ) * + 29
----
-1795

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + 61 + - COALESCE ( 64, + SUM ( DISTINCT - 3 ) * 29 ) * + 29
----
-1795

query I rowsort
SELECT DISTINCT - 2 * 98 AS col1
----
-196

query I rowsort
SELECT COALESCE ( 83, 73 ) AS col1
----
83

query I rowsort
SELECT + 88 * + 33
----
2904

query I rowsort
SELECT - + 80 + + 99 AS col1
----
19

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

query I rowsort
SELECT ALL 71 + - 37
----
34

query I rowsort
SELECT ALL + 0 + 37 * 78
----
2886

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8086
SELECT + + COALESCE ( NULLIF ( CAST( NULL AS SIGNED ), + 52 ), 58 * 31, MIN( - 55 ) DIV CASE 48 WHEN COUNT( * ) THEN + 93 + - 65 ELSE NULL END ) + 33 AS col1
----
1831

skipif mysql # not compatible
query I rowsort label-8086
SELECT + + COALESCE ( NULLIF ( CAST ( NULL AS INTEGER ), + 52 ), 58 * 31, MIN ( - 55 ) / CASE 48 WHEN COUNT ( * ) THEN + 93 + - 65 ELSE NULL END ) + 33 AS col1
----
1831

query I rowsort
SELECT + 64 * 63 col0
----
4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8088
SELECT - + 45 + 82 DIV + COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8088
SELECT - + 45 + 82 / + COUNT ( * ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT 70 * ( - COUNT( * ) ) + 35
----
-35

skipif mysql # not compatible
query I rowsort label-8089
SELECT 70 * ( - COUNT ( * ) ) + 35
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8090
SELECT + 91 + - CAST( 44 AS SIGNED ) * 3 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8090
SELECT + 91 + - CAST ( 44 AS INTEGER ) * 3 AS col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8091
SELECT - COALESCE ( - 30, - 81 DIV + 99 ) * - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-8091
SELECT - COALESCE ( - 30, - 81 / + 99 ) * - COUNT ( * ) AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8092
SELECT DISTINCT + ( + 61 ) DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT + ( + 61 ) / + 77
----
0

query I rowsort
SELECT DISTINCT 79 * 90 AS col0
----
7110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT ALL + CAST( ( 7 ) AS SIGNED ) * + COALESCE ( + COUNT( DISTINCT 29 ), + 71 )
----
7

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL + CAST ( ( 7 ) AS INTEGER ) * + COALESCE ( + COUNT ( DISTINCT 29 ), + 71 )
----
7

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

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

query I rowsort
SELECT - 19 * - 55 + + 87 AS col2
----
1132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT ALL - 28 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - 28 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) - 54 AS col2
----
NULL

query I rowsort
SELECT CASE - 68 WHEN + 59 THEN + 80 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT ALL + MIN( DISTINCT - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL + MIN ( DISTINCT - 11 ) AS col2
----
-11

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

query I rowsort
SELECT + 35 * - 41
----
-1435

query I rowsort
SELECT ALL 41 * - 63 * 49 col2
----
-126567

query I rowsort
SELECT COALESCE ( - 14, 69, - 75 * - 57 )
----
-14

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

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

query I rowsort
SELECT + 99 * - ( - 76 ) AS col0
----
7524

query I rowsort
SELECT CASE - 16 WHEN 20 + - 63 THEN + 75 * + 79 END
----
NULL

query I rowsort
SELECT + 93 + + 23 AS col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT - 69 + - NULLIF ( 23, - MIN( + 85 ) * 40 + 88 ) * - 48 AS col0
----
1035

skipif mysql # not compatible
query I rowsort label-8108
SELECT - 69 + - NULLIF ( 23, - MIN ( + 85 ) * 40 + 88 ) * - 48 AS col0
----
1035

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

query I rowsort
SELECT ALL + 48 * + - 33 + 57 AS col0
----
-1527

query I rowsort
SELECT ALL - 97 * 69
----
-6693

onlyif mysql # DIV for integer division: 
query I rowsort label-8112
SELECT + 33 DIV - 81 * 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8112
SELECT + 33 / - 81 * 6 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT MIN( + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-8114
SELECT MIN ( + 91 ) AS col1
----
91

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

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

query I rowsort
SELECT ALL - + 30 + + 68 AS col1
----
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT DISTINCT SUM( ALL 13 ) + - CAST( - 72 AS SIGNED ) * + 12 AS col0
----
877

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT SUM ( ALL 13 ) + - CAST ( - 72 AS INTEGER ) * + 12 AS col0
----
877

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

query I rowsort
SELECT - + 35 * - 56 * + 24
----
47040

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT DISTINCT COALESCE ( + COUNT( * ), + ( COUNT( * ) ) - 91, - 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT COALESCE ( + COUNT ( * ), + ( COUNT ( * ) ) - 91, - 26 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL + - COUNT( * ) + - + 74 * 80
----
-5921

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + - COUNT ( * ) + - + 74 * 80
----
-5921

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT DISTINCT ( MIN( + 90 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT ( MIN ( + 90 ) ) AS col2
----
90

query I rowsort
SELECT - 92 * + 18 AS col1
----
-1656

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL - COUNT( * ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - COUNT ( * ) - - COUNT ( * )
----
0

query I rowsort
SELECT - + 8 * - 66 * ( 61 ) AS col1
----
32208

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

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

query I rowsort
SELECT DISTINCT - + 21 * 94 * + 78
----
-153972

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8133
SELECT DISTINCT + CASE ( + 42 ) WHEN 54 / - 65 THEN COALESCE ( + 47, 55 * + CAST( + 66 AS SIGNED ), + 86 * ( 35 ) + 67 ) + MAX( ALL - 88 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT + CASE ( + 42 ) WHEN 54 / - 65 THEN COALESCE ( + 47, 55 * + CAST ( + 66 AS INTEGER ), + 86 * ( 35 ) + 67 ) + MAX ( ALL - 88 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT + 21 DIV + + CASE + 18 WHEN + 87 THEN 75 ELSE 16 + 27 END + 14 * 73 AS col2
----
1022

skipif mysql # not compatible
query I rowsort label-8134
SELECT + 21 / + + CASE + 18 WHEN + 87 THEN 75 ELSE 16 + 27 END + 14 * 73 AS col2
----
1022

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT - ( + MIN( DISTINCT + 45 ) ) * - 5
----
225

skipif mysql # not compatible
query I rowsort label-8135
SELECT - ( + MIN ( DISTINCT + 45 ) ) * - 5
----
225

onlyif mysql # DIV for integer division: 
query II rowsort label-8136
SELECT ALL + 65, 30 DIV + 66 AS col1
----
65
0

skipif mysql # not compatible
query II rowsort label-8136
SELECT ALL + 65, 30 / + 66 AS col1
----
65
0

query I rowsort
SELECT - 23 * 19 AS col0
----
-437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8138
SELECT 91 * + - 19 + - + 56 * + ( 13 DIV - NULLIF ( 50, - 29 * + CAST( NULL AS SIGNED ) ) + + COUNT( * ) DIV 8 )
----
-1729

skipif mysql # not compatible
query I rowsort label-8138
SELECT 91 * + - 19 + - + 56 * + ( 13 / - NULLIF ( 50, - 29 * + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) / 8 )
----
-1729

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8139
SELECT ALL CASE - - 32 WHEN - 16 THEN - ( + CAST( MAX( DISTINCT 14 ) AS SIGNED ) ) * 30 + + 25 END / - 73 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL CASE - - 32 WHEN - 16 THEN - ( + CAST ( MAX ( DISTINCT 14 ) AS INTEGER ) ) * 30 + + 25 END / - 73 AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 78 AS col0, 33 col1
----
-78
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT ALL ( - + 61 ) + SUM( 74 )
----
13

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL ( - + 61 ) + SUM ( 74 )
----
13

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT DISTINCT + 19 DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT + 19 / + 55 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL 87 * CAST ( - COUNT ( * ) AS INTEGER )
----
-87

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

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

query I rowsort
SELECT 16 * + + 11
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8147
SELECT 91 AS col2, 90 * - - CASE 22 WHEN CAST( NULL AS SIGNED ) * 60 THEN - 52 WHEN + 94 * - 13 THEN NULL END - 61 * + 19 AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-8147
SELECT 91 AS col2, 90 * - - CASE 22 WHEN CAST ( NULL AS INTEGER ) * 60 THEN - 52 WHEN + 94 * - 13 THEN NULL END - 61 * + 19 AS col2
----
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT CASE - 7 WHEN + COUNT( 2 ) THEN - 67 ELSE NULL END * + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT CASE - 7 WHEN + COUNT ( 2 ) THEN - 67 ELSE NULL END * + 31 AS col0
----
NULL

query I rowsort
SELECT - 0 * 1 - 49 + + 83
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8150
SELECT - 4 col2, 87 * + - MIN( ( 32 ) ) * COUNT( - 34 )
----
-4
-2784

skipif mysql # not compatible
query II rowsort label-8150
SELECT - 4 col2, 87 * + - MIN ( ( 32 ) ) * COUNT ( - 34 )
----
-4
-2784

query I rowsort
SELECT ALL 97 + + + CASE + - 45 WHEN 82 * 36 THEN NULL ELSE + 50 * 82 END AS col2
----
4197

query I rowsort
SELECT ALL 66 + - + 40 AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT ALL + 69 DIV 29 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL + 69 / 29 AS col2
----
2

query I rowsort
SELECT DISTINCT - + 52 + - + 11 col2
----
-63

query I rowsort
SELECT ALL + + 90 + - + 99 AS col1
----
-9

query I rowsort
SELECT DISTINCT CASE - 83 WHEN + 4 * + 10 THEN - COALESCE ( 70, + 19, 75, - 98 ) * - 39 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT ALL - 78 - CASE + 98 WHEN 42 + + ( - 66 ) * 38 THEN 99 - 95 * ( - 36 ) ELSE COUNT( * ) * 44 + SUM( - 96 ) END
----
-26

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL - 78 - CASE + 98 WHEN 42 + + ( - 66 ) * 38 THEN 99 - 95 * ( - 36 ) ELSE COUNT ( * ) * 44 + SUM ( - 96 ) END
----
-26

query II rowsort
SELECT - + 57, - ( + 35 ) * + 11 AS col1
----
-57
-385

query II rowsort
SELECT - 50 AS col0, + 42 AS col1
----
-50
42

query I rowsort
SELECT ALL 6 * - 31
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT SUM( 26 ) + 75 * 8
----
626

skipif mysql # not compatible
query I rowsort label-8161
SELECT SUM ( 26 ) + 75 * 8
----
626

query I rowsort
SELECT + 46 - 74
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT + 90 + - 54 + + 40 + - COUNT( * ) * + 72 * + 58
----
-4100

skipif mysql # not compatible
query I rowsort label-8163
SELECT + 90 + - 54 + + 40 + - COUNT ( * ) * + 72 * + 58
----
-4100

query I rowsort
SELECT ALL - 17 - ( + + 19 ) AS col1
----
-36

query I rowsort
SELECT + 12 + + + 29 + ( - 11 ) AS col1
----
30

query I rowsort
SELECT - 82 * - 49 * + - 85
----
-341530

query II rowsort
SELECT DISTINCT 29 AS col2, - 13 AS col0
----
29
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL + CASE + 93 WHEN - 37 * 71 THEN NULL WHEN 4 * SUM( - 60 ) THEN - 68 ELSE 50 + 55 END AS col2
----
105

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + CASE + 93 WHEN - 37 * 71 THEN NULL WHEN 4 * SUM ( - 60 ) THEN - 68 ELSE 50 + 55 END AS col2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT 28 + + COUNT( * ) - - 91 * + 60 AS col2
----
5489

skipif mysql # not compatible
query I rowsort label-8169
SELECT 28 + + COUNT ( * ) - - 91 * + 60 AS col2
----
5489

query I rowsort
SELECT ALL CASE + 2 WHEN - ( 6 ) THEN + 82 END * 63 AS col0
----
NULL

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

query I rowsort
SELECT 21 + + 19 - 96 + 80
----
24

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

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

query I rowsort
SELECT 98 + 49 + + 30 * 57 AS col1
----
1857

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT - 66 * - - COUNT( * ) * - - 87 + 23 * 63 AS col0
----
-4293

skipif mysql # not compatible
query I rowsort label-8175
SELECT - 66 * - - COUNT ( * ) * - - 87 + 23 * 63 AS col0
----
-4293

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

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

query I rowsort
SELECT 0 * 69
----
0

query I rowsort
SELECT 36 * - 31
----
-1116

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT DISTINCT + COUNT( * ) * + + ( - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT + COUNT ( * ) * + + ( - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT ALL - 59 + + + ( + COUNT( DISTINCT + 65 ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL - 59 + + + ( + COUNT ( DISTINCT + 65 ) ) AS col2
----
-58

query I rowsort
SELECT ALL + ( + 19 ) + - 72 * 74 + 64
----
-5245

query I rowsort
SELECT 19 + 31 + - 24 * + + 42
----
-958

query I rowsort
SELECT ALL + NULLIF ( - + 87, 36 * + - 99 ) * 4 AS col2
----
-348

query I rowsort
SELECT 26 * + - 28 * 45
----
-32760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8185
SELECT 5 * - 96 + - + 89 + - 14 - + COUNT( * ) DIV 72
----
-583

skipif mysql # not compatible
query I rowsort label-8185
SELECT 5 * - 96 + - + 89 + - 14 - + COUNT ( * ) / 72
----
-583

query I rowsort
SELECT DISTINCT + 14 * + + 31 AS col0
----
434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8187
SELECT - SUM( - 31 ) DIV + 61 * - 22 * 9 + 93 * 96 + + 84 * + 46 AS col1
----
12792

skipif mysql # not compatible
query I rowsort label-8187
SELECT - SUM ( - 31 ) / + 61 * - 22 * 9 + 93 * 96 + + 84 * + 46 AS col1
----
12792

query I rowsort
SELECT DISTINCT + ( - 31 ) + - ( 99 )
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT 25 + - - COALESCE ( COUNT( * ), 53, 36 ) + + 10 * - 68
----
-654

skipif mysql # not compatible
query I rowsort label-8189
SELECT 25 + - - COALESCE ( COUNT ( * ), 53, 36 ) + + 10 * - 68
----
-654

query I rowsort
SELECT ( 38 ) + + 80 col2
----
118

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

skipif mysql # not compatible
query I rowsort label-8191
SELECT COUNT ( * ) + COUNT ( + 87 ) AS col2
----
2

query I rowsort
SELECT DISTINCT 39 * + 34 AS col0
----
1326

query I rowsort
SELECT ALL + 25 - + 51 AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8194
SELECT ALL - ( 37 ) DIV 89 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL - ( 37 ) / 89 + + COUNT ( * )
----
1

query I rowsort
SELECT ALL - 82 - 13
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8196
SELECT ALL 38 * CAST( NULL AS SIGNED ), 15 AS col1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-8196
SELECT ALL 38 * CAST ( NULL AS INTEGER ), 15 AS col1
----
NULL
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT 95 + - MAX( 79 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8197
SELECT 95 + - MAX ( 79 ) AS col2
----
16

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

skipif mysql # not compatible
query I rowsort label-8198
SELECT CAST ( NULL AS INTEGER ) + + 91 * 75
----
NULL

query I rowsort
SELECT DISTINCT 95 * - 21 + + 35
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT + 79 * - COUNT( * ) + + 28 + - 20 + 92 * 58 AS col0
----
5265

skipif mysql # not compatible
query I rowsort label-8200
SELECT + 79 * - COUNT ( * ) + + 28 + - 20 + 92 * 58 AS col0
----
5265

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

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

query I rowsort
SELECT 64 + + 21 * + - 28 AS col1
----
-524

query I rowsort
SELECT DISTINCT + 64 * 74
----
4736

query I rowsort
SELECT - 37 * 28
----
-1036

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT MIN( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-8205
SELECT MIN ( - 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT COALESCE ( - - SUM( ALL - 13 ), - - 47 ) * MIN( - 44 - 5 ) AS col0
----
637

skipif mysql # not compatible
query I rowsort label-8206
SELECT COALESCE ( - - SUM ( ALL - 13 ), - - 47 ) * MIN ( - 44 - 5 ) AS col0
----
637

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT DISTINCT + COUNT( * ) * 80 * 15 * + + 47
----
56400

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT + COUNT ( * ) * 80 * 15 * + + 47
----
56400

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

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL - ( - 50 ) + ( + - COUNT ( * ) ) AS col2
----
49

query I rowsort
SELECT + 76 * 1 * ( + 88 ) * - + 77 AS col1
----
-514976

query I rowsort
SELECT ALL 82 * 56 AS col1
----
4592

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT ALL + COALESCE ( CAST( 55 AS SIGNED ), - - CASE - 45 WHEN 21 THEN + ( ( 61 ) ) * + 87 WHEN + 25 * 81 THEN COUNT( * ) * + 17 END )
----
55

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL + COALESCE ( CAST ( 55 AS INTEGER ), - - CASE - 45 WHEN 21 THEN + ( ( 61 ) ) * + 87 WHEN + 25 * 81 THEN COUNT ( * ) * + 17 END )
----
55

query I rowsort
SELECT NULLIF ( 36, - 36 - - 30 ) AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8214
SELECT - 74 DIV - 88 + + + 99 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8214
SELECT - 74 / - 88 + + + 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT ALL + CASE + ( - ( 80 ) ) WHEN + ( 71 ) THEN 30 * - COUNT( - 99 ) + + ( COUNT( * ) + + ( 43 - - MIN( ALL - 90 ) ) * 53 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT ALL + CASE + ( - ( 80 ) ) WHEN + ( 71 ) THEN 30 * - COUNT ( - 99 ) + + ( COUNT ( * ) + + ( 43 - - MIN ( ALL - 90 ) ) * 53 ) END
----
NULL

query I rowsort
SELECT + CASE - - 80 WHEN + 54 THEN 40 END
----
NULL

query I rowsort
SELECT + 24 * + 90 + 14
----
2174

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT NULLIF ( - + COUNT( DISTINCT 8 ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT NULLIF ( - + COUNT ( DISTINCT 8 ), - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8219
SELECT COALESCE ( + + CASE + COALESCE ( - 95, - SUM( DISTINCT 39 ) ) WHEN + ( 34 ) THEN 4 ELSE 56 END, CAST( NULL AS SIGNED ) + - 46 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8219
SELECT COALESCE ( + + CASE + COALESCE ( - 95, - SUM ( DISTINCT 39 ) ) WHEN + ( 34 ) THEN 4 ELSE 56 END, CAST ( NULL AS INTEGER ) + - 46 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT MAX( + 88 ) * + COUNT( * ) * + - 10 * + + 47 + + ( + 40 ) AS col0
----
-41320

skipif mysql # not compatible
query I rowsort label-8220
SELECT MAX ( + 88 ) * + COUNT ( * ) * + - 10 * + + 47 + + ( + 40 ) AS col0
----
-41320

query I rowsort
SELECT DISTINCT + 84 * + 88 col0
----
7392

query I rowsort
SELECT DISTINCT + NULLIF ( + - 53, + 67 * 83 * 69 + 12 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT DISTINCT CASE 42 WHEN - ( - - 72 ) + 7 * - 62 THEN NULL ELSE + CASE - 42 WHEN + 20 THEN NULL WHEN - COUNT( * ) THEN 0 * 32 END * 92 END * + 55 - 41 * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT CASE 42 WHEN - ( - - 72 ) + 7 * - 62 THEN NULL ELSE + CASE - 42 WHEN + 20 THEN NULL WHEN - COUNT ( * ) THEN 0 * 32 END * 92 END * + 55 - 41 * 17
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT - 58 * - + 92 + + 11 - + + 27 + + 98 DIV 39 AS col0
----
5322

skipif mysql # not compatible
query I rowsort label-8224
SELECT - 58 * - + 92 + + 11 - + + 27 + + 98 / 39 AS col0
----
5322

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT DISTINCT - + 6 DIV - + 77
----
0

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT - + 6 / - + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL 25 * COUNT( * ) * COUNT( * ) * 53 * - 34 AS col1
----
-45050

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL 25 * COUNT ( * ) * COUNT ( * ) * 53 * - 34 AS col1
----
-45050

query I rowsort
SELECT - + ( - 65 ) - - 26 + + 58 AS col0
----
149

query I rowsort
SELECT + 17 * + 54 + 79
----
997

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT + + 71 DIV + + 82 col2
----
0

skipif mysql # not compatible
query I rowsort label-8229
SELECT + + 71 / + + 82 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT ALL - - ( - CAST( NULL AS SIGNED ) ) + + 18 + + 86 * - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) ) + + 18 + + 86 * - 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8231
SELECT - COUNT( ALL + ( - - 92 ) ) + - COALESCE ( - 60, + 90 DIV + 73 ) - + 59 * - COALESCE ( + 66 + COALESCE ( 16, + 3 * + 28 ), 50 * - ( 26 ) ) AS col0
----
4897

skipif mysql # not compatible
query I rowsort label-8231
SELECT - COUNT ( ALL + ( - - 92 ) ) + - COALESCE ( - 60, + 90 / + 73 ) - + 59 * - COALESCE ( + 66 + COALESCE ( 16, + 3 * + 28 ), 50 * - ( 26 ) ) AS col0
----
4897

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT + 44 - + - ( + MAX( - 79 ) ) * COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-8232
SELECT + 44 - + - ( + MAX ( - 79 ) ) * COUNT ( * )
----
-35

query II rowsort
SELECT - 26 col1, ( - 8 ) AS col1
----
-26
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT MAX( + + 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8234
SELECT MAX ( + + 71 ) AS col2
----
71

query I rowsort
SELECT DISTINCT - 83 + - + 11 col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL NULLIF ( - COUNT( * ), - + 71 ) + + COUNT( * ) + - 33 * + 2
----
-66

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL NULLIF ( - COUNT ( * ), - + 71 ) + + COUNT ( * ) + - 33 * + 2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8237
SELECT + + 19 + + 97 - + - 95 DIV 95 * + + 54 DIV 51 + COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-8237
SELECT + + 19 + + 97 - + - 95 / 95 * + + 54 / 51 + COUNT ( * )
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-8238
SELECT - 87 AS col1, COUNT( * ) + 27
----
-87
28

skipif mysql # not compatible
query II rowsort label-8238
SELECT - 87 AS col1, COUNT ( * ) + 27
----
-87
28

query I rowsort
SELECT + 77 + 91
----
168

query II rowsort
SELECT 69 AS col2, 54 * + 84 AS col2
----
69
4536

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

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

query II rowsort
SELECT 77, + 67 AS col1
----
77
67

query I rowsort
SELECT + 29 + + - 64 * - 54 AS col1
----
3485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8244
SELECT ALL NULLIF ( + + ( - CAST( - + 55 AS SIGNED ) ), - 73 - + 49 ) + COUNT( DISTINCT 70 + 7 * 92 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL NULLIF ( + + ( - CAST ( - + 55 AS INTEGER ) ), - 73 - + 49 ) + COUNT ( DISTINCT 70 + 7 * 92 ) col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT DISTINCT 94 DIV + 78 col2
----
1

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT 94 / + 78 col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8246
SELECT 55 AS col2, 56 + + 35 + + COUNT( * )
----
55
92

skipif mysql # not compatible
query II rowsort label-8246
SELECT 55 AS col2, 56 + + 35 + + COUNT ( * )
----
55
92

query I rowsort
SELECT + 17 * 71
----
1207

query I rowsort
SELECT + 23 + + 92 AS col0
----
115

query I rowsort
SELECT ALL 28 * - CASE + - 67 WHEN - 38 THEN + 48 - 38 + 54 ELSE ( 77 ) * + 14 END * + 99
----
-2988216

onlyif mysql # DIV for integer division: 
query II rowsort label-8250
SELECT DISTINCT 75 AS col2, 36 DIV + 21
----
75
1

skipif mysql # not compatible
query II rowsort label-8250
SELECT DISTINCT 75 AS col2, 36 / + 21
----
75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT + COUNT( * ) * + - 38 + - + 36 * 68 AS col1
----
-2486

skipif mysql # not compatible
query I rowsort label-8251
SELECT + COUNT ( * ) * + - 38 + - + 36 * 68 AS col1
----
-2486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT + ( + COALESCE ( - - 70, 80, - COUNT( * ) DIV 30 ) )
----
70

skipif mysql # not compatible
query I rowsort label-8252
SELECT + ( + COALESCE ( - - 70, 80, - COUNT ( * ) / 30 ) )
----
70

query I rowsort
SELECT ALL 22 * + - 43
----
-946

query I rowsort
SELECT + 87 * 40 col1
----
3480

query I rowsort
SELECT ALL 93 * + + 98 col0
----
9114

query II rowsort
SELECT ALL + COALESCE ( + - 71, ( - + 61 ) ) AS col2, 46 AS col0
----
-71
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8257
SELECT ALL - 7 DIV + - 4
----
1

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - 7 / + - 4
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - SUM( + 96 ) * - 68 + - + COUNT( * ) col0
----
6527

skipif mysql # not compatible
query I rowsort label-8258
SELECT - SUM ( + 96 ) * - 68 + - + COUNT ( * ) col0
----
6527

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT ALL - 98 DIV - 88
----
1

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL - 98 / - 88
----
1

query I rowsort
SELECT + 44 + 74 AS col1
----
118

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

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

query I rowsort
SELECT + 56 * 90
----
5040

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

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

query I rowsort
SELECT + - COALESCE ( + 25, + 57 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + COUNT( * ) * - 52 + + 4 + - 35 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8265
SELECT + COUNT ( * ) * - 52 + + 4 + - 35 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL COALESCE ( 51, 79 + + + 50 - 25 ) * - + 16 + - COUNT( * ) + 73 AS col0
----
-744

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL COALESCE ( 51, 79 + + + 50 - 25 ) * - + 16 + - COUNT ( * ) + 73 AS col0
----
-744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8267
SELECT DISTINCT + COUNT( * ) * + 24 + 96 + + - 8 DIV 89 + + + 23
----
143

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT + COUNT ( * ) * + 24 + 96 + + - 8 / 89 + + + 23
----
143

query I rowsort
SELECT ALL + 93 * - ( + - 19 ) + + 18 * - 47 * + 95 AS col2
----
-78603

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8270
SELECT - ( - COUNT( * ) ) * + + CAST( - 88 AS SIGNED ) - + 67 * - 92
----
6076

skipif mysql # not compatible
query I rowsort label-8270
SELECT - ( - COUNT ( * ) ) * + + CAST ( - 88 AS INTEGER ) - + 67 * - 92
----
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT - 32 * - 37 + + COALESCE ( - + 32, - 17, - - MIN( ALL - 37 ) ) AS col1
----
1152

skipif mysql # not compatible
query I rowsort label-8271
SELECT - 32 * - 37 + + COALESCE ( - + 32, - 17, - - MIN ( ALL - 37 ) ) AS col1
----
1152

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

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

query I rowsort
SELECT 96 + - 37
----
59

query I rowsort
SELECT ALL - 53 + 5 AS col2
----
-48

query I rowsort
SELECT 83 * - + 48 AS col0
----
-3984

query II rowsort
SELECT ALL 43, COALESCE ( + - 27, - 37 * + - 74 * + + 89 ) col0
----
43
-27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL NULLIF ( - COUNT( * ), - 10 + - ( + 10 ) ) * - - COALESCE ( COUNT( * ), 83 + - 97 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL NULLIF ( - COUNT ( * ), - 10 + - ( + 10 ) ) * - - COALESCE ( COUNT ( * ), 83 + - 97 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8279
SELECT 29 DIV - + 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-8279
SELECT 29 / - + 84 col1
----
0

query I rowsort
SELECT ALL 41 + + 41 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8281
SELECT DISTINCT 88 * - - 53, + 19 * + - COUNT( + 57 ) AS col2
----
4664
-19

skipif mysql # not compatible
query II rowsort label-8281
SELECT DISTINCT 88 * - - 53, + 19 * + - COUNT ( + 57 ) AS col2
----
4664
-19

query I rowsort
SELECT 35 * 76 AS col1
----
2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8283
SELECT COUNT( * ) - - 34 + + + COALESCE ( + CAST( - 44 AS SIGNED ), + CAST( 48 AS SIGNED ), - 75 + + COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT COUNT ( * ) - - 34 + + + COALESCE ( + CAST ( - 44 AS INTEGER ), + CAST ( 48 AS INTEGER ), - 75 + + COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8284
SELECT 54 - - + 53 AS col0, - SUM( + - 86 ) AS col0
----
107
86

skipif mysql # not compatible
query II rowsort label-8284
SELECT 54 - - + 53 AS col0, - SUM ( + - 86 ) AS col0
----
107
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8285
SELECT DISTINCT 10 * ( - COUNT( * ) ) / - - 35 + + + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT 10 * ( - COUNT ( * ) ) / - - 35 + + + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 27 * 44 AS col1
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT MAX( ALL - - 40 ) * + + 63 * 53 * 1 AS col2
----
133560

skipif mysql # not compatible
query I rowsort label-8287
SELECT MAX ( ALL - - 40 ) * + + 63 * 53 * 1 AS col2
----
133560

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT ALL 39 DIV 34 * + - 22 DIV + - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL 39 / 34 * + - 22 / + - 78 AS col0
----
0

query I rowsort
SELECT + 40 * + 39 * + 15 - - - 14 + 3 AS col2
----
23389

query I rowsort
SELECT 70 * + 24 * + 74 + - - 3
----
124323

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

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

query I rowsort
SELECT ALL - + 23 col0
----
-23

query I rowsort
SELECT DISTINCT + 31 + COALESCE ( - + ( - + 83 ), + - 75 * - 85 * + 0 ) AS col2
----
114

query I rowsort
SELECT + 5 * 32 + + 81 AS col2
----
241

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8295
SELECT ALL 50 * 52, CAST( - 18 AS SIGNED ) * 72 AS col2
----
2600
-1296

skipif mysql # not compatible
query II rowsort label-8295
SELECT ALL 50 * 52, CAST ( - 18 AS INTEGER ) * 72 AS col2
----
2600
-1296

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8296
SELECT - CAST( - + 61 AS SIGNED ) * + 91, 33 * - 83 AS col0, + 56 AS col0
----
5551
-2739
56

skipif mysql # not compatible
query III rowsort label-8296
SELECT - CAST ( - + 61 AS INTEGER ) * + 91, 33 * - 83 AS col0, + 56 AS col0
----
5551
-2739
56

query I rowsort
SELECT ALL - 18 + - + 49
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8298
SELECT + 56 * - COUNT( * ), CAST( + - MAX( ALL 61 ) AS SIGNED ) + + - CAST( + AVG ( DISTINCT + 7 ) AS SIGNED ) AS col2
----
-56
-68

skipif mysql # not compatible
query II rowsort label-8298
SELECT + 56 * - COUNT ( * ), CAST ( + - MAX ( ALL 61 ) AS INTEGER ) + + - CAST ( + AVG ( DISTINCT + 7 ) AS INTEGER ) AS col2
----
-56
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8299
SELECT 18 * 60 + - - ( + + COUNT( * ) ) * 65 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT 18 * 60 + - - ( + + COUNT ( * ) ) * 65 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8300
SELECT ALL - ( - + 24 ) + + + 93 AS col1, + COUNT( * ) AS col2
----
117
1

skipif mysql # not compatible
query II rowsort label-8300
SELECT ALL - ( - + 24 ) + + + 93 AS col1, + COUNT ( * ) AS col2
----
117
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT + + CASE + 68 WHEN + 75 THEN - + COALESCE ( CAST( NULL AS SIGNED ), - 2 ) + + ( 17 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8301
SELECT + + CASE + 68 WHEN + 75 THEN - + COALESCE ( CAST ( NULL AS INTEGER ), - 2 ) + + ( 17 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT DISTINCT - 55 + - - ( COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT - 55 + - - ( COUNT ( * ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT - - MIN( DISTINCT 25 ) + 39 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT - - MIN ( DISTINCT 25 ) + 39 AS col1
----
64

query I rowsort
SELECT DISTINCT 80 * - 89 AS col2
----
-7120

onlyif mysql # aggregate syntax: 
query II rowsort label-8305
SELECT DISTINCT 3, + 93 * SUM( + 93 ) + - - 82 AS col2
----
3
8731

skipif mysql # not compatible
query II rowsort label-8305
SELECT DISTINCT 3, + 93 * SUM ( + 93 ) + - - 82 AS col2
----
3
8731

query I rowsort
SELECT ALL + 42 - + 56
----
-14

query I rowsort
SELECT 45 * 51
----
2295

query I rowsort
SELECT 19 + - 88 AS col1
----
-69

query I rowsort
SELECT 55 - - 18 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT 29 + + COUNT( * ) + 52
----
82

skipif mysql # not compatible
query I rowsort label-8310
SELECT 29 + + COUNT ( * ) + 52
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8311
SELECT ALL + 42 - - 78 - COUNT( DISTINCT + 93 ) DIV + 99 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL + 42 - - 78 - COUNT ( DISTINCT + 93 ) / + 99 AS col2
----
120

query I rowsort
SELECT 35 * + 85
----
2975

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT 54 + - 37 * - 81 + - + COUNT( * ) * - + 98
----
3149

skipif mysql # not compatible
query I rowsort label-8313
SELECT 54 + - 37 * - 81 + - + COUNT ( * ) * - + 98
----
3149

query I rowsort
SELECT 60 * + 54
----
3240

query I rowsort
SELECT DISTINCT 93 * + CASE - 19 WHEN - 97 * - 33 + 59 THEN ( + - COALESCE ( + 44, - 90 ) ) * 86 END / + ( - 41 )
----
NULL

query II rowsort
SELECT DISTINCT 69 * 69 * 43 AS col1, 97
----
204723
97

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

skipif mysql # not compatible
query I rowsort label-8317
SELECT MAX ( + 43 ) / - COUNT ( * ) + - 98 AS col0
----
-141

query I rowsort
SELECT ALL + 7 * - - 63
----
441

query I rowsort
SELECT 50 + + 54 col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT 89 + + 43 + + COALESCE ( - 51, + + 8 ) + - - COUNT( * ) * + 2 * 6
----
93

skipif mysql # not compatible
query I rowsort label-8320
SELECT 89 + + 43 + + COALESCE ( - 51, + + 8 ) + - - COUNT ( * ) * + 2 * 6
----
93

query I rowsort
SELECT 60 * 0
----
0

query I rowsort
SELECT 95 * + 25
----
2375

query I rowsort
SELECT DISTINCT - 35 * 2
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8324
SELECT + 98 AS col2, 62 + - + ( COUNT( * ) )
----
98
61

skipif mysql # not compatible
query II rowsort label-8324
SELECT + 98 AS col2, 62 + - + ( COUNT ( * ) )
----
98
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT COUNT( + + 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8325
SELECT COUNT ( + + 87 ) AS col2
----
1

query I rowsort
SELECT ALL + - 16 * - 77 + - - 50 AS col2
----
1282

query I rowsort
SELECT DISTINCT 20 * + - 35 + - - 6 * 39 AS col2
----
-466

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT DISTINCT - + 51 * + COUNT( * ) + + 73 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT - + 51 * + COUNT ( * ) + + 73 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT DISTINCT + 92 * - + 16 + + - 76 + - 48 + - 98 + - + COUNT( * ) * - 90
----
-1604

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT + 92 * - + 16 + + - 76 + - 48 + - 98 + - + COUNT ( * ) * - 90
----
-1604

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL + 84 * - COUNT( * ) + + 96 - + 4 * + - 19
----
88

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL + 84 * - COUNT ( * ) + + 96 - + 4 * + - 19
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT + CASE + + COUNT( * ) WHEN 74 * 80 THEN NULL WHEN + + 11 THEN 29 ELSE - 30 END
----
-30

skipif mysql # not compatible
query I rowsort label-8331
SELECT + CASE + + COUNT ( * ) WHEN 74 * 80 THEN NULL WHEN + + 11 THEN 29 ELSE - 30 END
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8332
SELECT ALL - CAST( + MIN( 13 ) AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL - CAST ( + MIN ( 13 ) AS INTEGER ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT MIN( - 0 ) * 50 + - MIN( ALL + + ( - + 38 ) ) + + 99 * - 67
----
-6595

skipif mysql # not compatible
query I rowsort label-8333
SELECT MIN ( - 0 ) * 50 + - MIN ( ALL + + ( - + 38 ) ) + + 99 * - 67
----
-6595

query I rowsort
SELECT + - 9 * + + 53
----
-477

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT + ( - 57 ) + MIN( + + 13 ) col2
----
-44

skipif mysql # not compatible
query I rowsort label-8335
SELECT + ( - 57 ) + MIN ( + + 13 ) col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8336
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 36 AS col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-8336
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 36 AS col2
----
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT + 68 * - 88 + + 2 - + SUM( DISTINCT + 78 )
----
-6060

skipif mysql # not compatible
query I rowsort label-8337
SELECT + 68 * - 88 + + 2 - + SUM ( DISTINCT + 78 )
----
-6060

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT ALL - + 56 - - COUNT( * ) + + 38 AS col1
----
-17

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8340
SELECT + - 71 DIV + + 38 * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8340
SELECT + - 71 / + + 38 * COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT + 96 * - 73 * + 66 + - MIN( ALL - - 84 ) * COUNT( * )
----
-462612

skipif mysql # not compatible
query I rowsort label-8341
SELECT + 96 * - 73 * + 66 + - MIN ( ALL - - 84 ) * COUNT ( * )
----
-462612

query I rowsort
SELECT + 35 * + 86 AS col0
----
3010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8343
SELECT - 0 + - CASE - 47 WHEN - 58 + + - SUM( + + 81 ) / 24 + - 65 + - ( CASE - 90 WHEN - 76 - - 6 THEN + 65 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE + 90 * 89 END ) * - 62 THEN + 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT - 0 + - CASE - 47 WHEN - 58 + + - SUM ( + + 81 ) / 24 + - 65 + - ( CASE - 90 WHEN - 76 - - 6 THEN + 65 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 90 * 89 END ) * - 62 THEN + 1 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT DISTINCT NULLIF ( - + 70, - CAST( NULL AS SIGNED ) ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT NULLIF ( - + 70, - CAST ( NULL AS INTEGER ) ) col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT ALL CASE + 97 WHEN NULLIF ( + + 37, - + NULLIF ( - 71, + - 16 - - 38 * - 62 * AVG ( 74 ) ) ) THEN NULL WHEN + 34 THEN COUNT( * ) - 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL CASE + 97 WHEN NULLIF ( + + 37, - + NULLIF ( - 71, + - 16 - - 38 * - 62 * AVG ( 74 ) ) ) THEN NULL WHEN + 34 THEN COUNT ( * ) - 74 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT + 28 - + + CASE COUNT( * ) WHEN - 9 / - COUNT( * ) * ( + - COUNT( * ) ) + 3 + + 24 THEN + ( + 54 ) WHEN ( 8 ) * CASE 12 WHEN + ( 65 ) THEN NULL WHEN + NULLIF ( 16, - 39 ) THEN - 58 ELSE COALESCE ( + 8, - 21, AVG ( + 71 ) ) * + 90 + - 68 * - 63 END THEN - 13 ELSE NULL END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8346
SELECT + 28 - + + CASE COUNT ( * ) WHEN - 9 / - COUNT ( * ) * ( + - COUNT ( * ) ) + 3 + + 24 THEN + ( + 54 ) WHEN ( 8 ) * CASE 12 WHEN + ( 65 ) THEN NULL WHEN + NULLIF ( 16, - 39 ) THEN - 58 ELSE COALESCE ( + 8, - 21, AVG ( + 71 ) ) * + 90 + - 68 * - 63 END THEN - 13 ELSE NULL END * 82
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8348
SELECT + COALESCE ( - 73, 24, + CAST( NULL AS SIGNED ) ) DIV COUNT( * ) AS col0, 31 DIV - + 69 * 15 - 7
----
-73
-7

skipif mysql # not compatible
query II rowsort label-8348
SELECT + COALESCE ( - 73, 24, + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col0, 31 / - + 69 * 15 - 7
----
-73
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8349
SELECT - CAST( NULL AS SIGNED ) + + - 22 * - - COALESCE ( 20, 43 * + COALESCE ( + 45, - SUM( - - 28 ) ) ) - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT - CAST ( NULL AS INTEGER ) + + - 22 * - - COALESCE ( 20, 43 * + COALESCE ( + 45, - SUM ( - - 28 ) ) ) - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL NULLIF ( + COUNT( * ), - - 24 / - ( - 76 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL NULLIF ( + COUNT ( * ), - - 24 / - ( - 76 ) )
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT - CAST( - 82 AS SIGNED ) - - 26 + - + 49 * ( 70 ) AS col2
----
-3322

skipif mysql # not compatible
query I rowsort label-8352
SELECT - CAST ( - 82 AS INTEGER ) - - 26 + - + 49 * ( 70 ) AS col2
----
-3322

query I rowsort
SELECT ALL + CASE - ( - 53 ) WHEN + 21 + - + NULLIF ( - - 46, + + 85 + + 0 ) + + 55 + COALESCE ( 76, - 87 * 51 + 87 ) * 49 THEN NULL ELSE 23 * 12 END + - 8 col1
----
268

query I rowsort
SELECT DISTINCT - 3 + - 22
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8355
SELECT ALL MAX( ALL - 44 ) AS col2, 53
----
-44
53

skipif mysql # not compatible
query II rowsort label-8355
SELECT ALL MAX ( ALL - 44 ) AS col2, 53
----
-44
53

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8357
SELECT ALL - 88 DIV 8 + ( - + SUM( - + 69 ) ) DIV + 12 + + 53 * + - 76
----
-4034

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - 88 / 8 + ( - + SUM ( - + 69 ) ) / + 12 + + 53 * + - 76
----
-4034

onlyif mysql # DIV for integer division: 
query I rowsort label-8358
SELECT + 34 DIV - + 75 + - + 97
----
-97

skipif mysql # not compatible
query I rowsort label-8358
SELECT + 34 / - + 75 + - + 97
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT DISTINCT + 44 DIV - 24 + + 3 + + COALESCE ( COALESCE ( + - 20, - 80 * 74 ), + - 22 - 49 ) + - 9 * - 37 * - 97 AS col1
----
-32319

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT + 44 / - 24 + + 3 + + COALESCE ( COALESCE ( + - 20, - 80 * 74 ), + - 22 - 49 ) + - 9 * - 37 * - 97 AS col1
----
-32319

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

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL + - COUNT ( * ) * - + 19 / 24 col2
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8363
SELECT ALL + 72 * + + COUNT( * ) + 97 - - - 88, COUNT( * ) * - CASE 48 WHEN 11 THEN 93 * + ( 47 ) + + 71 ELSE NULL END + NULLIF ( 90, - 80 ) AS col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-8363
SELECT ALL + 72 * + + COUNT ( * ) + 97 - - - 88, COUNT ( * ) * - CASE 48 WHEN 11 THEN 93 * + ( 47 ) + + 71 ELSE NULL END + NULLIF ( 90, - 80 ) AS col2
----
81
NULL

query I rowsort
SELECT ALL - 8 * + + 56 * 12 - - - 59 - 81 + + + 51
----
-5465

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8366
SELECT - 27 + 63 + + + COUNT( * ) * 32 * - 6 + - + 11 - - + 16 + ( - - 42 ) DIV 62 * - 88 AS col2
----
-151

skipif mysql # not compatible
query I rowsort label-8366
SELECT - 27 + 63 + + + COUNT ( * ) * 32 * - 6 + - + 11 - - + 16 + ( - - 42 ) / 62 * - 88 AS col2
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT + - 36 * - MAX( ALL 46 ) AS col1
----
1656

skipif mysql # not compatible
query I rowsort label-8367
SELECT + - 36 * - MAX ( ALL 46 ) AS col1
----
1656

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT ALL - - 40 * - CASE + - 59 WHEN + 26 * MIN( ALL - + 16 ) THEN - 91 * + - 94 * + 53 WHEN - COUNT( * ) * 19 THEN NULL ELSE NULL END - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL - - 40 * - CASE + - 59 WHEN + 26 * MIN ( ALL - + 16 ) THEN - 91 * + - 94 * + 53 WHEN - COUNT ( * ) * 19 THEN NULL ELSE NULL END - 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8369
SELECT + ( + - CASE + 97 WHEN + 62 / + 45 + - 62 THEN NULL WHEN - - 25 THEN COALESCE ( + COALESCE ( 86, 10 + 96, 33 ), + COALESCE ( - 69, + 23 ) * - 99 + 7, + 27, + CASE - 99 WHEN COUNT( * ) THEN NULL WHEN - COALESCE ( + 35, 83 ) - COUNT( * ) * - ( - MIN( + 84 ) ) THEN + CAST( ( - COUNT( + 14 ) ) AS SIGNED ) + 59 END ) * + CAST( NULL AS SIGNED ) + + 26 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT + ( + - CASE + 97 WHEN + 62 / + 45 + - 62 THEN NULL WHEN - - 25 THEN COALESCE ( + COALESCE ( 86, 10 + 96, 33 ), + COALESCE ( - 69, + 23 ) * - 99 + 7, + 27, + CASE - 99 WHEN COUNT ( * ) THEN NULL WHEN - COALESCE ( + 35, 83 ) - COUNT ( * ) * - ( - MIN ( + 84 ) ) THEN + CAST ( ( - COUNT ( + 14 ) ) AS INTEGER ) + 59 END ) * + CAST ( NULL AS INTEGER ) + + 26 ELSE NULL END ) AS col0
----
NULL

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

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

query I rowsort
SELECT + 76 * - - 69
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT DISTINCT + CASE + - 74 WHEN + 23 + + 12 THEN - 6 * - - 86 * - COUNT( * ) + + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT + CASE + - 74 WHEN + 23 + + 12 THEN - 6 * - - 86 * - COUNT ( * ) + + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8373
SELECT ALL - CAST( NULL AS DECIMAL ) * 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - CAST ( NULL AS REAL ) * 10 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT + AVG ( ALL - CAST( - 80 AS SIGNED ) ) + 34 * - 68 + + 95 + ( 18 ) * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT + AVG ( ALL - CAST ( - 80 AS INTEGER ) ) + 34 * - 68 + + 95 + ( 18 ) * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 29 * 40 * 72 AS col1
----
83520

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT ALL 91 * 15 + - SUM( + ( + + 92 ) ) * 74
----
-5443

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL 91 * 15 + - SUM ( + ( + + 92 ) ) * 74
----
-5443

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

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

query I rowsort
SELECT + 10 - + COALESCE ( 40, - 92 * 59 )
----
-30

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8382
SELECT - CAST( + - ( + CAST( 92 AS DECIMAL ) ) AS SIGNED ) - - COUNT( * ) * + ( - 94 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-8382
SELECT - CAST ( + - ( + CAST ( 92 AS REAL ) ) AS INTEGER ) - - COUNT ( * ) * + ( - 94 ) col1
----
-2

query II rowsort
SELECT 8 AS col1, - 45
----
8
-45

query I rowsort
SELECT DISTINCT 21 + - 77
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8385
SELECT + CAST( + 95 AS SIGNED ) + - 62, - 0 AS col1
----
33
0

skipif mysql # not compatible
query II rowsort label-8385
SELECT + CAST ( + 95 AS INTEGER ) + - 62, - 0 AS col1
----
33
0

query I rowsort
SELECT ALL 56 + + - 77 AS col0
----
-21

query I rowsort
SELECT ALL ( NULLIF ( 9, - 45 ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT + SUM( ALL NULLIF ( 39, 67 ) )
----
39

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT + SUM ( ALL NULLIF ( 39, 67 ) )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT - 86 * - 55 + MAX( DISTINCT + 96 )
----
4826

skipif mysql # not compatible
query I rowsort label-8389
SELECT - 86 * - 55 + MAX ( DISTINCT + 96 )
----
4826

onlyif mysql # aggregate syntax: 
query II rowsort label-8390
SELECT 47 * - 54 - - - 4 + + - 28 + + - 6, + 65 * - + COUNT( * ) AS col0
----
-2576
-65

skipif mysql # not compatible
query II rowsort label-8390
SELECT 47 * - 54 - - - 4 + + - 28 + + - 6, + 65 * - + COUNT ( * ) AS col0
----
-2576
-65

query I rowsort
SELECT 34 + + + 10 AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT 78 DIV - 7 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8392
SELECT 78 / - 7 AS col1
----
-11

query I rowsort
SELECT DISTINCT - 20 + ( 64 ) AS col0
----
44

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

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

query I rowsort
SELECT 26 * 76 * + - 66 - - COALESCE ( + 19, + 24 + + 66 + - - 74 ) AS col1
----
-130397

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT + 69 * - - 52 * - + CASE - ( - 42 ) WHEN 56 + - 63 - + 98 * - 21 + - - ( + CASE + 17 WHEN 19 THEN NULL WHEN - 4 THEN NULL WHEN - 96 * + 2 THEN + COUNT( * ) ELSE NULL END ) THEN NULL ELSE - COUNT( * ) + - 31 END + 22 + 81
----
114919

skipif mysql # not compatible
query I rowsort label-8396
SELECT + 69 * - - 52 * - + CASE - ( - 42 ) WHEN 56 + - 63 - + 98 * - 21 + - - ( + CASE + 17 WHEN 19 THEN NULL WHEN - 4 THEN NULL WHEN - 96 * + 2 THEN + COUNT ( * ) ELSE NULL END ) THEN NULL ELSE - COUNT ( * ) + - 31 END + 22 + 81
----
114919

query I rowsort
SELECT DISTINCT 1 - + 63 + - + 43 * 53
----
-2341

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

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

query I rowsort
SELECT - 59 + - - 77 AS col0
----
18

query I rowsort
SELECT ALL - + NULLIF ( + 7, - - 34 ) AS col1
----
-7

query I rowsort
SELECT DISTINCT - 87 * + - 21 AS col0
----
1827

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8402
SELECT - - 46 DIV - + 23 * + - COUNT( * ) + + 29 + - 25 + - - 83 * 43 * + 84 + - 72
----
299730

skipif mysql # not compatible
query I rowsort label-8402
SELECT - - 46 / - + 23 * + - COUNT ( * ) + + 29 + - 25 + - - 83 * 43 * + 84 + - 72
----
299730

onlyif mysql # aggregate syntax: 
query II rowsort label-8403
SELECT - 81 * + ( 89 ) - + MAX( DISTINCT - 99 ), + COUNT( * ) AS col0
----
-7110
1

skipif mysql # not compatible
query II rowsort label-8403
SELECT - 81 * + ( 89 ) - + MAX ( DISTINCT - 99 ), + COUNT ( * ) AS col0
----
-7110
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8404
SELECT - 86 DIV - 1 col1
----
86

skipif mysql # not compatible
query I rowsort label-8404
SELECT - 86 / - 1 col1
----
86

query I rowsort
SELECT ALL - 43 * - + 94 + - + 44 AS col0
----
3998

query I rowsort
SELECT + 8 + + 99 AS col2
----
107

query II rowsort
SELECT ALL - + 92 AS col1, - 30 * - 75 AS col1
----
-92
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT COUNT( DISTINCT - - ( 5 ) ) * 99 + + 72 + - 29 * COALESCE ( - 30, + 96 ) * - 86 + 4 - COUNT( * ) * 42
----
-74687

skipif mysql # not compatible
query I rowsort label-8408
SELECT COUNT ( DISTINCT - - ( 5 ) ) * 99 + + 72 + - 29 * COALESCE ( - 30, + 96 ) * - 86 + 4 - COUNT ( * ) * 42
----
-74687

query II rowsort
SELECT DISTINCT - 96 AS col0, + 85 AS col2
----
-96
85

query I rowsort
SELECT ALL 11 * + ( - 74 )
----
-814

query I rowsort
SELECT 73 * 61 * + 55
----
244915

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL - 20 + 61 + + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - 20 + 61 + + + COUNT ( * )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT 44 * 96 DIV 47 * 77
----
6853

skipif mysql # not compatible
query I rowsort label-8413
SELECT 44 * 96 / 47 * 77
----
6853

query I rowsort
SELECT 80 + 64 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT + 49 * - COUNT( * ) + + 2 + 73
----
26

skipif mysql # not compatible
query I rowsort label-8415
SELECT + 49 * - COUNT ( * ) + + 2 + 73
----
26

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

query I rowsort
SELECT 99 + + 36 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL MAX( DISTINCT 88 ) + 80 col2
----
168

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL MAX ( DISTINCT 88 ) + 80 col2
----
168

query II rowsort
SELECT - 84 col2, - 44
----
-84
-44

query I rowsort
SELECT DISTINCT - 94 * + 7 AS col2
----
-658

onlyif mysql # aggregate syntax: 
query II rowsort label-8421
SELECT ALL 40 AS col0, MAX( - 95 ) * COUNT( * )
----
40
-95

skipif mysql # not compatible
query II rowsort label-8421
SELECT ALL 40 AS col0, MAX ( - 95 ) * COUNT ( * )
----
40
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8422
SELECT DISTINCT MAX( ALL + 73 ) DIV - 6 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT MAX ( ALL + 73 ) / - 6 AS col1
----
-12

query I rowsort
SELECT - 84 + + + 44 + - 89 col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT 62 * + MAX( + - 46 )
----
-2852

skipif mysql # not compatible
query I rowsort label-8424
SELECT 62 * + MAX ( + - 46 )
----
-2852

query I rowsort
SELECT ALL NULLIF ( - - 28, + 78 * 84 - + 29 + 82 )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8426
SELECT - COUNT( * ), + 28 + - 10 col0
----
-1
18

skipif mysql # not compatible
query II rowsort label-8426
SELECT - COUNT ( * ), + 28 + - 10 col0
----
-1
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8427
SELECT SUM( ALL - 0 ) + + 1 * - 93 DIV - 40 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8427
SELECT SUM ( ALL - 0 ) + + 1 * - 93 / - 40 AS col2
----
2

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8430
SELECT DISTINCT 56, + 73 DIV 77 AS col0
----
56
0

skipif mysql # not compatible
query II rowsort label-8430
SELECT DISTINCT 56, + 73 / 77 AS col0
----
56
0

query II rowsort
SELECT ALL 1 AS col1, - 95
----
1
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8432
SELECT 59 AS col1, 38 * + 75 + - 26 * COUNT( * )
----
59
2824

skipif mysql # not compatible
query II rowsort label-8432
SELECT 59 AS col1, 38 * + 75 + - 26 * COUNT ( * )
----
59
2824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8433
SELECT + 91 DIV - + 77 + + 76 - - COALESCE ( + ( - - 95 ), NULLIF ( + - CAST( - - 21 AS SIGNED ), - 23 * + + MIN( - 18 ) - COUNT( * ) ), MAX( DISTINCT 22 ) )
----
170

skipif mysql # not compatible
query I rowsort label-8433
SELECT + 91 / - + 77 + + 76 - - COALESCE ( + ( - - 95 ), NULLIF ( + - CAST ( - - 21 AS INTEGER ), - 23 * + + MIN ( - 18 ) - COUNT ( * ) ), MAX ( DISTINCT 22 ) )
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8434
SELECT + COUNT( * ) * + 49 + - 83 * - CAST( NULL AS SIGNED ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT + COUNT ( * ) * + 49 + - 83 * - CAST ( NULL AS INTEGER ) * 27
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT + CAST( + 53 AS SIGNED ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-8435
SELECT + CAST ( + 53 AS INTEGER ) * 0
----
0

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

query II rowsort
SELECT 15 AS col0, + 3
----
15
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT DISTINCT - - NULLIF ( + 50, + MIN( 97 ) )
----
50

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT - - NULLIF ( + 50, + MIN ( 97 ) )
----
50

query I rowsort
SELECT DISTINCT - 95 + ( - 88 )
----
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8440
SELECT 73 DIV + CAST( - 35 AS SIGNED ) AS col2, 21 DIV + + COUNT( * ) AS col2
----
-2
21

skipif mysql # not compatible
query II rowsort label-8440
SELECT 73 / + CAST ( - 35 AS INTEGER ) AS col2, 21 / + + COUNT ( * ) AS col2
----
-2
21

query I rowsort
SELECT 80 * - 56 * - ( 4 )
----
17920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8442
SELECT ALL + 79 * + ( + - 34 ) * CASE - + 72 WHEN + + COUNT( * ) + - 95 THEN NULL WHEN - 69 THEN 16 * + + CAST( - NULLIF ( 17, - 14 - + 40 ) AS SIGNED ) * + 77 ELSE - 21 END
----
56406

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL + 79 * + ( + - 34 ) * CASE - + 72 WHEN + + COUNT ( * ) + - 95 THEN NULL WHEN - 69 THEN 16 * + + CAST ( - NULLIF ( 17, - 14 - + 40 ) AS INTEGER ) * + 77 ELSE - 21 END
----
56406

query I rowsort
SELECT ALL + 62 * - 66 AS col0
----
-4092

query I rowsort
SELECT ALL - 17 * - 2
----
34

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

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

query I rowsort
SELECT DISTINCT - 8 + - 48 * 19 + + 16 AS col1
----
-904

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT - 21 - 75 * - SUM( + + 65 ) AS col2
----
4854

skipif mysql # not compatible
query I rowsort label-8449
SELECT - 21 - 75 * - SUM ( + + 65 ) AS col2
----
4854

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT + 97 - 50 DIV 12 * + 32
----
-31

skipif mysql # not compatible
query I rowsort label-8450
SELECT + 97 - 50 / 12 * + 32
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT - NULLIF ( SUM( DISTINCT 64 ), - + 93 * + - 88 ) * - 49 AS col2
----
3136

skipif mysql # not compatible
query I rowsort label-8451
SELECT - NULLIF ( SUM ( DISTINCT 64 ), - + 93 * + - 88 ) * - 49 AS col2
----
3136

query I rowsort
SELECT - - 56 + 91 AS col1
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8453
SELECT + - MAX( ALL 32 ) + - - COALESCE ( - + COUNT( * ), + - 27 * COUNT( * ) ) * + CAST( NULL AS SIGNED ) AS col1, NULLIF ( CAST( NULL AS SIGNED ), + 34 - - + 77 ) / - 43 * 22 + - 25 * - 45 + - 64 * MIN( + 65 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8453
SELECT + - MAX ( ALL 32 ) + - - COALESCE ( - + COUNT ( * ), + - 27 * COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) AS col1, NULLIF ( CAST ( NULL AS INTEGER ), + 34 - - + 77 ) / - 43 * 22 + - 25 * - 45 + - 64 * MIN ( + 65 ) AS col1
----
NULL
NULL

query I rowsort
SELECT - 5 + - 29 + + NULLIF ( + 25, - - 13 ) * + - 49 AS col0
----
-1259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8455
SELECT ALL + + COALESCE ( COUNT( * ), 48 * CASE - - 44 WHEN COUNT( * ) + + - 10 THEN NULL WHEN + 75 + - 94 + - 56 + 22 * + 96 / 52 THEN + 53 / + 40 END, COUNT( * ) * - 89 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + + COALESCE ( COUNT ( * ), 48 * CASE - - 44 WHEN COUNT ( * ) + + - 10 THEN NULL WHEN + 75 + - 94 + - 56 + 22 * + 96 / 52 THEN + 53 / + 40 END, COUNT ( * ) * - 89 ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 48 * - 24 AS col1
----
-1152

query I rowsort
SELECT ALL + COALESCE ( 48, 36 + + NULLIF ( + + CASE - 26 WHEN - - 13 THEN - 59 ELSE + 53 END, - - 13 + + ( + + 69 ) + + 54 ) ) AS col1
----
48

query I rowsort
SELECT ALL + - 43 * + 79
----
-3397

query I rowsort
SELECT - - 87 + 44 + - 11 AS col2
----
120

query I rowsort
SELECT ALL CASE - 42 WHEN - + 70 / - 73 * + - 29 + - 14 - + 87 * + 93 * - - 91 * - 89 THEN + + 32 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8461
SELECT - + ( 31 ) + + CAST( + 18 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-8461
SELECT - + ( 31 ) + + CAST ( + 18 AS INTEGER )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT + - 49 + + 13 + MIN( - + ( - - CAST( - 45 AS SIGNED ) ) ) + - COUNT( * ) + + 11 * + + 91 * + 87 * - 88 * - 8 AS col0
----
61309256

skipif mysql # not compatible
query I rowsort label-8462
SELECT + - 49 + + 13 + MIN ( - + ( - - CAST ( - 45 AS INTEGER ) ) ) + - COUNT ( * ) + + 11 * + + 91 * + 87 * - 88 * - 8 AS col0
----
61309256

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8464
SELECT ALL ( MAX( DISTINCT CAST( + + ( 28 ) AS SIGNED ) ) ) DIV 89 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL ( MAX ( DISTINCT CAST ( + + ( 28 ) AS INTEGER ) ) ) / 89 / - 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8465
SELECT 46 / - 56 + - ( + + CAST( NULL AS SIGNED ) ) + - COALESCE ( + - 8, 95 * COUNT( * ), + + COALESCE ( 69, - 86, + NULLIF ( - 94, COALESCE ( + 97, MAX( DISTINCT 60 ) + - 95 ) + + 51 ) * 58 + - 1 * 26 ), CAST( NULL AS SIGNED ) - ( + ( AVG ( ALL + 79 ) ) ) ) * NULLIF ( 29, 78 * 64 + 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT 46 / - 56 + - ( + + CAST ( NULL AS INTEGER ) ) + - COALESCE ( + - 8, 95 * COUNT ( * ), + + COALESCE ( 69, - 86, + NULLIF ( - 94, COALESCE ( + 97, MAX ( DISTINCT 60 ) + - 95 ) + + 51 ) * 58 + - 1 * 26 ), CAST ( NULL AS INTEGER ) - ( + ( AVG ( ALL + 79 ) ) ) ) * NULLIF ( 29, 78 * 64 + 77 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8466
SELECT DISTINCT + SUM( + 49 ) AS col0, NULLIF ( - - CAST( + 81 AS SIGNED ), - 53 ) AS col2
----
49
81

skipif mysql # not compatible
query II rowsort label-8466
SELECT DISTINCT + SUM ( + 49 ) AS col0, NULLIF ( - - CAST ( + 81 AS INTEGER ), - 53 ) AS col2
----
49
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8467
SELECT ALL + 80 * + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + 80 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8468
SELECT ALL 87 * + 2 + - + 80 - - CASE 80 WHEN + 0 + 10 + + 75 / CASE - ( - - 8 ) WHEN - - 71 THEN + ( - 43 ) END THEN NULL ELSE COALESCE ( - COUNT( DISTINCT - 22 ), - 12 ) END * + ( COUNT( * ) * CAST( NULL AS SIGNED ) - - CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL 87 * + 2 + - + 80 - - CASE 80 WHEN + 0 + 10 + + 75 / CASE - ( - - 8 ) WHEN - - 71 THEN + ( - 43 ) END THEN NULL ELSE COALESCE ( - COUNT ( DISTINCT - 22 ), - 12 ) END * + ( COUNT ( * ) * CAST ( NULL AS INTEGER ) - - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 84 * - + 77 + 27
----
-6441

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8470
SELECT ALL 99 * + + CAST( + 28 AS SIGNED ) AS col0, 37
----
2772
37

skipif mysql # not compatible
query II rowsort label-8470
SELECT ALL 99 * + + CAST ( + 28 AS INTEGER ) AS col0, 37
----
2772
37

query I rowsort
SELECT - 87 + 17 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8472
SELECT + 99 + COUNT( DISTINCT - 34 ), 42 * 86 + - 63 * 65 AS col2
----
100
-483

skipif mysql # not compatible
query II rowsort label-8472
SELECT + 99 + COUNT ( DISTINCT - 34 ), 42 * 86 + - 63 * 65 AS col2
----
100
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT + ( + COALESCE ( - + NULLIF ( + 13, - + 75 * + 0 ), + - 76, - COUNT( * ) + + 1 ) ) col1
----
-13

skipif mysql # not compatible
query I rowsort label-8473
SELECT + ( + COALESCE ( - + NULLIF ( + 13, - + 75 * + 0 ), + - 76, - COUNT ( * ) + + 1 ) ) col1
----
-13

query I rowsort
SELECT ALL 64 * - - 2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8475
SELECT DISTINCT + CASE 42 WHEN + 66 THEN 36 END, - COUNT( + 40 ) * CAST( NULL AS SIGNED ) * - 73
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8475
SELECT DISTINCT + CASE 42 WHEN + 66 THEN 36 END, - COUNT ( + 40 ) * CAST ( NULL AS INTEGER ) * - 73
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT + 51 + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8476
SELECT + 51 + COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL 59 * ( 40 ) * COALESCE ( - - NULLIF ( + + 65, - 44 ), + 86, 94 * - - 50 ) * + COUNT( * ) - COUNT( * )
----
153399

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL 59 * ( 40 ) * COALESCE ( - - NULLIF ( + + 65, - 44 ), + 86, 94 * - - 50 ) * + COUNT ( * ) - COUNT ( * )
----
153399

query I rowsort
SELECT ALL + 30 * + 3
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8479
SELECT COALESCE ( + - SUM( ALL + 66 ), + 1, - CAST( - - 47 AS SIGNED ) * SUM( DISTINCT + 14 ) + - + 55, + 46 )
----
-66

skipif mysql # not compatible
query I rowsort label-8479
SELECT COALESCE ( + - SUM ( ALL + 66 ), + 1, - CAST ( - - 47 AS INTEGER ) * SUM ( DISTINCT + 14 ) + - + 55, + 46 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8480
SELECT ALL 65 * - 41 - - - 2 - - CAST( NULL AS SIGNED ) * + COALESCE ( CASE 15 WHEN 5 + 9 * - + 40 + 29 * + 81 THEN NULL WHEN + - 23 THEN - SUM( - CAST( NULL AS SIGNED ) ) + - 9 ELSE NULL END, 13, - 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL 65 * - 41 - - - 2 - - CAST ( NULL AS INTEGER ) * + COALESCE ( CASE 15 WHEN 5 + 9 * - + 40 + 29 * + 81 THEN NULL WHEN + - 23 THEN - SUM ( - CAST ( NULL AS INTEGER ) ) + - 9 ELSE NULL END, 13, - 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT 34 * COUNT( + 88 ) - - + CASE ( + 65 ) WHEN - ( + 36 ) * + - 0 * + 92 THEN NULL WHEN + + 73 + + - CASE WHEN NOT COUNT( * ) IS NULL THEN + 56 END * COUNT( * ) THEN 76 - - COALESCE ( + 16, ( - COALESCE ( 74, + 99, - 47 * + 44, - 46 ) ) + 92 ) END / - NULLIF ( - ( - 43 ), - NULLIF ( + 60, + 72 * 83 ) * SUM( DISTINCT 68 ) + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT 34 * COUNT ( + 88 ) - - + CASE ( + 65 ) WHEN - ( + 36 ) * + - 0 * + 92 THEN NULL WHEN + + 73 + + - CASE WHEN NOT COUNT ( * ) IS NULL THEN + 56 END * COUNT ( * ) THEN 76 - - COALESCE ( + 16, ( - COALESCE ( 74, + 99, - 47 * + 44, - 46 ) ) + 92 ) END / - NULLIF ( - ( - 43 ), - NULLIF ( + 60, + 72 * 83 ) * SUM ( DISTINCT 68 ) + 8 )
----
NULL

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

query I rowsort
SELECT - 21 + + 95
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL + COALESCE ( - 58, + COUNT( * ) + - + 97, ( + 67 ) + - 33 * + 22 * + 95 * + 52, + MIN( DISTINCT - 11 ) ) * 38
----
-2204

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL + COALESCE ( - 58, + COUNT ( * ) + - + 97, ( + 67 ) + - 33 * + 22 * + 95 * + 52, + MIN ( DISTINCT - 11 ) ) * 38
----
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT COUNT( DISTINCT + 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8485
SELECT COUNT ( DISTINCT + 72 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT - 74 + - ( NULLIF ( COUNT( ALL - 43 ), - SUM( DISTINCT + - 29 ) ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8486
SELECT - 74 + - ( NULLIF ( COUNT ( ALL - 43 ), - SUM ( DISTINCT + - 29 ) ) ) AS col1
----
-75

query I rowsort
SELECT - 85 * + 23
----
-1955

query I rowsort
SELECT - + 78 col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT ALL + MAX( DISTINCT 52 )
----
52

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL + MAX ( DISTINCT 52 )
----
52

query I rowsort
SELECT - - 2 * - 95
----
-190

query II rowsort
SELECT DISTINCT - 42 col2, - 20 * 74 * 92 AS col2
----
-42
-136160

query II rowsort
SELECT 89 AS col0, + 77 + + 86 * - + 56
----
89
-4739

query II rowsort
SELECT 14 col0, 0 AS col0
----
14
0

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

skipif mysql # not compatible
query I rowsort label-8494
SELECT - - 58 - + - COUNT ( * ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-8495
SELECT - ( + + MIN( ALL 78 ) ), + CASE + ( + MAX( DISTINCT - - ( 79 ) ) ) WHEN + 83 * + - ( + + 95 ) + - 70 * + + COUNT( 0 ) THEN 97 WHEN 66 + MAX( - CASE WHEN NOT NULL IS NULL THEN - 68 END ) THEN NULL ELSE NULL END / 63 AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-8495
SELECT - ( + + MIN ( ALL 78 ) ), + CASE + ( + MAX ( DISTINCT - - ( 79 ) ) ) WHEN + 83 * + - ( + + 95 ) + - 70 * + + COUNT ( 0 ) THEN 97 WHEN 66 + MAX ( - CASE WHEN NOT NULL IS NULL THEN - 68 END ) THEN NULL ELSE NULL END / 63 AS col0
----
-78
NULL

query I rowsort
SELECT - 78 * 14 + + + 82 + - + 15 * 36 + - - ( - 32 )
----
-1582

query II rowsort
SELECT - + 94 AS col2, 50 AS col2
----
-94
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8498
SELECT 26 col2, 33 DIV + SUM( 87 ) * 12 + + + 15 AS col2
----
26
15

skipif mysql # not compatible
query II rowsort label-8498
SELECT 26 col2, 33 / + SUM ( 87 ) * 12 + + + 15 AS col2
----
26
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT NULLIF ( + + 31, - CASE + 64 WHEN 61 / - NULLIF ( + 82, 6 * 46 + - 11 ) / + 72 + + 45 * + - COUNT( * ) + ( AVG ( 99 ) ) THEN 96 * 77 END + 0 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8499
SELECT NULLIF ( + + 31, - CASE + 64 WHEN 61 / - NULLIF ( + 82, 6 * 46 + - 11 ) / + 72 + + 45 * + - COUNT ( * ) + ( AVG ( 99 ) ) THEN 96 * 77 END + 0 ) AS col1
----
31

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

skipif mysql # not compatible
query I rowsort label-8500
SELECT - CAST ( NULL AS INTEGER ) - + + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT DISTINCT + MIN( DISTINCT 19 ) + 14 + + - 4 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT + MIN ( DISTINCT 19 ) + 14 + + - 4 AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8502
SELECT ALL + + 24 + + 97 * - COUNT( - 86 ) * + COUNT( * ) - + ( 41 ) DIV - 61 * 30 col2
----
-73

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL + + 24 + + 97 * - COUNT ( - 86 ) * + COUNT ( * ) - + ( 41 ) / - 61 * 30 col2
----
-73

query I rowsort
SELECT DISTINCT 76 + ( - 69 ) * 83 + - - 12 + 43 * + 79 AS col2
----
-2242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8504
SELECT ALL 80 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL 80 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT + 94 * + 31 * 10 DIV - - COALESCE ( - - 1, + - 55 DIV + 17 DIV 38 ) AS col0
----
29140

skipif mysql # not compatible
query I rowsort label-8505
SELECT + 94 * + 31 * 10 / - - COALESCE ( - - 1, + - 55 / + 17 / 38 ) AS col0
----
29140

onlyif mysql # DIV for integer division: 
query I rowsort label-8506
SELECT + 0 DIV - 83 - + + 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8506
SELECT + 0 / - 83 - + + 19 AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT + CAST( - 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8507
SELECT + CAST ( - 0 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT + MIN( DISTINCT - - 32 ) * + - CASE + COUNT( * ) WHEN - + 43 / - 81 * 61 * - 29 THEN + 18 * + NULLIF ( 83, COUNT( * ) ) / + 29 WHEN + + NULLIF ( + 81, + COUNT( * ) ) THEN NULL ELSE NULL END - - 2 * 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT + MIN ( DISTINCT - - 32 ) * + - CASE + COUNT ( * ) WHEN - + 43 / - 81 * 61 * - 29 THEN + 18 * + NULLIF ( 83, COUNT ( * ) ) / + 29 WHEN + + NULLIF ( + 81, + COUNT ( * ) ) THEN NULL ELSE NULL END - - 2 * 86 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT DISTINCT + NULLIF ( + + COALESCE ( 6, ( 15 ), + - 31 - + 10 DIV 22 ), - 41 )
----
6

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + NULLIF ( + + COALESCE ( 6, ( 15 ), + - 31 - + 10 / 22 ), - 41 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT ALL COUNT( * ) * + 82
----
82

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL COUNT ( * ) * + 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL CASE 77 WHEN + 10 THEN COUNT( * ) WHEN + 33 THEN NULL END / + 27 - + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL CASE 77 WHEN + 10 THEN COUNT ( * ) WHEN + 33 THEN NULL END / + 27 - + 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL 40 - - + COUNT( - 57 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL 40 - - + COUNT ( - 57 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT COUNT( + + 41 ) * + - 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-8513
SELECT COUNT ( + + 41 ) * + - 43 AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8514
SELECT ALL COUNT( * ) * + - AVG ( + + 28 ) * + + 52 * CAST( NULL AS SIGNED ) - + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL COUNT ( * ) * + - AVG ( + + 28 ) * + + 52 * CAST ( NULL AS INTEGER ) - + - 36
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8515
SELECT CAST( NULL AS SIGNED ) * ( - + COUNT( * ) ) * 93 * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT CAST ( NULL AS INTEGER ) * ( - + COUNT ( * ) ) * 93 * 83
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8516
SELECT ALL MIN( DISTINCT + 87 ) * - ( 26 ) + - + 7 DIV - + 72 AS col2
----
-2262

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL MIN ( DISTINCT + 87 ) * - ( 26 ) + - + 7 / - + 72 AS col2
----
-2262

onlyif mysql # DIV for integer division: 
query I rowsort label-8517
SELECT ALL - 53 DIV + - ( + 3 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL - 53 / + - ( + 3 ) AS col2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8518
SELECT - 96 DIV - 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8518
SELECT - 96 / - 60 AS col2
----
1

query I rowsort
SELECT ALL + 93 + - 38 * + - 0
----
93

query I rowsort
SELECT 16 - - - 2
----
14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8521
SELECT - 62 DIV - CAST( + 19 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-8521
SELECT - 62 / - CAST ( + 19 AS INTEGER )
----
3

query II rowsort
SELECT - 36 + 28 AS col2, 85
----
-8
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT COUNT( * ) + - ( + 39 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8523
SELECT COUNT ( * ) + - ( + 39 ) AS col2
----
-38

query I rowsort
SELECT ALL - + 76 + 55 + 7 * + - 70 * - - 47 col2
----
-23051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8525
SELECT DISTINCT 63 + + 28 * - 77 + 12 + - CAST( + COUNT( * ) AS SIGNED ) + - 74 AS col0
----
-2156

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT 63 + + 28 * - 77 + 12 + - CAST ( + COUNT ( * ) AS INTEGER ) + - 74 AS col0
----
-2156

onlyif mysql # aggregate syntax: 
query II rowsort label-8526
SELECT DISTINCT COUNT( - - 76 ) + - 11 * - 72 + COALESCE ( + 16, 51 ) * - - 92 + + 89, 98 + + 34 - 92 * + + 21 AS col2
----
2354
-1800

skipif mysql # not compatible
query II rowsort label-8526
SELECT DISTINCT COUNT ( - - 76 ) + - 11 * - 72 + COALESCE ( + 16, 51 ) * - - 92 + + 89, 98 + + 34 - 92 * + + 21 AS col2
----
2354
-1800

query I rowsort
SELECT ALL + ( - 74 ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8528
SELECT - ( + 69 ) * + ( MAX( ALL - CAST( - - 92 AS SIGNED ) ) ) * - 53 + + - 3 - - 72 * 13
----
-335511

skipif mysql # not compatible
query I rowsort label-8528
SELECT - ( + 69 ) * + ( MAX ( ALL - CAST ( - - 92 AS INTEGER ) ) ) * - 53 + + - 3 - - 72 * 13
----
-335511

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8529
SELECT ALL - 66 + - NULLIF ( - 49, + CAST( NULL AS DECIMAL ) + + - 54 )
----
-17

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL - 66 + - NULLIF ( - 49, + CAST ( NULL AS REAL ) + + - 54 )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8530
SELECT DISTINCT - - AVG ( + 17 ) + + + 52 + 12 + + + 58 + + COUNT( * ) + - 23 * - ( - + COUNT( * ) ) + MAX( DISTINCT + 24 ) * - COUNT( * ) * - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT - - AVG ( + 17 ) + + + 52 + 12 + + + 58 + + COUNT ( * ) + - 23 * - ( - + COUNT ( * ) ) + MAX ( DISTINCT + 24 ) * - COUNT ( * ) * - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8531
SELECT DISTINCT - CASE + 58 WHEN 50 + COUNT( ALL + + CAST( NULL AS SIGNED ) ) + - + ( + 60 ) + - 46 + - ( - COUNT( * ) ) * - 48 THEN 49 WHEN 95 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT - CASE + 58 WHEN 50 + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) + - + ( + 60 ) + - 46 + - ( - COUNT ( * ) ) * - 48 THEN 49 WHEN 95 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT - MIN( DISTINCT - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-8532
SELECT - MIN ( DISTINCT - 58 )
----
58

query II rowsort
SELECT 49, - 98 AS col1
----
49
-98

query I rowsort
SELECT ALL + 3 - 39
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8535
SELECT + 55 AS col1, - CAST( NULL AS DECIMAL ) AS col1
----
55
NULL

skipif mysql # not compatible
query II rowsort label-8535
SELECT + 55 AS col1, - CAST ( NULL AS REAL ) AS col1
----
55
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8536
SELECT + CASE + 45 WHEN + + CASE + ( + + CAST( NULL AS DECIMAL ) ) WHEN + 61 * + + CAST( NULL AS SIGNED ) / - 44 THEN + ( - 3 ) + + MAX( DISTINCT + + 7 ) END THEN + - 11 + - 16 WHEN - SUM( - 6 ) * 82 + 33 * - 44 THEN + 44 * 54 + ( + 31 + 38 ) END / 51 + ( 51 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT + CASE + 45 WHEN + + CASE + ( + + CAST ( NULL AS REAL ) ) WHEN + 61 * + + CAST ( NULL AS INTEGER ) / - 44 THEN + ( - 3 ) + + MAX ( DISTINCT + + 7 ) END THEN + - 11 + - 16 WHEN - SUM ( - 6 ) * 82 + 33 * - 44 THEN + 44 * 54 + ( + 31 + 38 ) END / 51 + ( 51 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 21 - + + 94 AS col0
----
-73

query I rowsort
SELECT ALL 46 * + 60 col0
----
2760

onlyif mysql # aggregate syntax: 
query III rowsort label-8539
SELECT 89 + - - 63 + - - 38 * 31 * - - SUM( 33 ) AS col1, - COUNT( * ) * - + 59 AS col0, - COUNT( * )
----
39026
59
-1

skipif mysql # not compatible
query III rowsort label-8539
SELECT 89 + - - 63 + - - 38 * 31 * - - SUM ( 33 ) AS col1, - COUNT ( * ) * - + 59 AS col0, - COUNT ( * )
----
39026
59
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL - NULLIF ( - COUNT( ( 56 ) ), MIN( + 21 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL - NULLIF ( - COUNT ( ( 56 ) ), MIN ( + 21 ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 49 * + + CASE - - 18 WHEN - + 24 + - 17 THEN + + 87 WHEN - + 73 * + 95 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT 72 DIV - 11 col0
----
-6

skipif mysql # not compatible
query I rowsort label-8542
SELECT 72 / - 11 col0
----
-6

query I rowsort
SELECT 8 * - 0
----
0

query I rowsort
SELECT 98 * + 81 AS col1
----
7938

query I rowsort
SELECT 33 + + + 6
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT DISTINCT 98 DIV - + 80
----
-1

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT 98 / - + 80
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT - ( - 10 ) * 94 DIV 54 + - 36 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-8547
SELECT - ( - 10 ) * 94 / 54 + - 36 AS col2
----
-19

query II rowsort
SELECT ALL - 88, - 26 AS col0
----
-88
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT + COUNT( ( 17 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8549
SELECT + COUNT ( ( 17 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8550
SELECT DISTINCT - 64 + + ( - 82 ) + MIN( ALL + + 16 ) + + + CASE + COUNT( * ) WHEN + 23 THEN + COUNT( * ) WHEN + 1 THEN - 5 END * + - 4 DIV - 25 * COUNT( * ) + + 85
----
-45

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT - 64 + + ( - 82 ) + MIN ( ALL + + 16 ) + + + CASE + COUNT ( * ) WHEN + 23 THEN + COUNT ( * ) WHEN + 1 THEN - 5 END * + - 4 / - 25 * COUNT ( * ) + + 85
----
-45

query II rowsort
SELECT + 59 AS col0, - 78 * + - 46 AS col1
----
59
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL + ( + 14 ) + - COUNT( * ) * - ( + + 66 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL + ( + 14 ) + - COUNT ( * ) * - ( + + 66 ) AS col1
----
80

query I rowsort
SELECT ( - 78 ) col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + COUNT( * ) + - 2 col0
----
-1

skipif mysql # not compatible
query I rowsort label-8554
SELECT + COUNT ( * ) + - 2 col0
----
-1

query I rowsort
SELECT ALL + 87 + + COALESCE ( + - 81, 37 ) * + 70 AS col1
----
-5583

query I rowsort
SELECT DISTINCT 52 + 74
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8557
SELECT 41 + - ( - + 71 ) + CAST( - CASE + ( - + 44 ) WHEN - 36 THEN 11 / + 19 + + + 18 END AS SIGNED ) + - 41 - + + 73 * - COUNT( * ) * + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT 41 + - ( - + 71 ) + CAST ( - CASE + ( - + 44 ) WHEN - 36 THEN 11 / + 19 + + + 18 END AS INTEGER ) + - 41 - + + 73 * - COUNT ( * ) * + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT DISTINCT - - 99 + - - ( - + CASE 21 WHEN + 97 THEN 88 + 77 WHEN 75 + 67 + 55 + + 41 + ( - 88 ) + + AVG ( ALL - + 80 ) + 95 / - MAX( ALL 77 ) * - COUNT( * ) * + 11 THEN NULL ELSE NULL END ) + + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT DISTINCT - - 99 + - - ( - + CASE 21 WHEN + 97 THEN 88 + 77 WHEN 75 + 67 + 55 + + 41 + ( - 88 ) + + AVG ( ALL - + 80 ) + 95 / - MAX ( ALL 77 ) * - COUNT ( * ) * + 11 THEN NULL ELSE NULL END ) + + 35 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT DISTINCT + ( COUNT( 33 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT + ( COUNT ( 33 ) ) AS col0
----
1

query I rowsort
SELECT 90 - - 58 AS col1
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8561
SELECT ALL + CAST( NULL AS SIGNED ) / - - 63 + - + 71 / - 39 * + - COUNT( * ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + CAST ( NULL AS INTEGER ) / - - 63 + - + 71 / - 39 * + - COUNT ( * ) * - 3
----
NULL

query I rowsort
SELECT - - CASE + 6 WHEN - 17 THEN NULL ELSE - 89 END
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT - COALESCE ( + 73, + COUNT( * ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8563
SELECT - COALESCE ( + 73, + COUNT ( * ) ) AS col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT 10 + MIN( + - 10 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8564
SELECT 10 + MIN ( + - 10 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8565
SELECT DISTINCT - 13 - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT - 13 - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8566
SELECT ALL + 54 * + MAX( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL + 54 * + MAX ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8567
SELECT + 90 * + 11 * + COALESCE ( + CAST( - 93 AS SIGNED ), + CASE + 72 WHEN - COUNT( * ) THEN NULL ELSE 26 * - + 49 + ( + + ( + - CAST( NULL AS SIGNED ) ) ) END ) AS col2, 58 * 15 * + COALESCE ( 51, + 69 + - 60 )
----
-92070
44370

skipif mysql # not compatible
query II rowsort label-8567
SELECT + 90 * + 11 * + COALESCE ( + CAST ( - 93 AS INTEGER ), + CASE + 72 WHEN - COUNT ( * ) THEN NULL ELSE 26 * - + 49 + ( + + ( + - CAST ( NULL AS INTEGER ) ) ) END ) AS col2, 58 * 15 * + COALESCE ( 51, + 69 + - 60 )
----
-92070
44370

onlyif mysql # aggregate syntax: 
query II rowsort label-8568
SELECT 97, 45 + + + 76 + - - 15 + - COUNT( * ) col1
----
97
135

skipif mysql # not compatible
query II rowsort label-8568
SELECT 97, 45 + + + 76 + - - 15 + - COUNT ( * ) col1
----
97
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT + MIN( - 2 ) - + - 64
----
62

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + MIN ( - 2 ) - + - 64
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8570
SELECT - 11 AS col1, COUNT( * ) AS col2
----
-11
1

skipif mysql # not compatible
query II rowsort label-8570
SELECT - 11 AS col1, COUNT ( * ) AS col2
----
-11
1

query II rowsort
SELECT ALL 34 * - + 34 AS col2, 9 * - CASE + 28 WHEN - 85 THEN 86 ELSE NULL END * 43 * + 47
----
-1156
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8572
SELECT 83, COUNT( ALL CAST( NULL AS SIGNED ) ) + + - 83 / + 80 * - - CAST( NULL AS SIGNED ) * + 60 * 13 / 71 * 27 + 42 col2
----
83
NULL

skipif mysql # not compatible
query II rowsort label-8572
SELECT 83, COUNT ( ALL CAST ( NULL AS INTEGER ) ) + + - 83 / + 80 * - - CAST ( NULL AS INTEGER ) * + 60 * 13 / 71 * 27 + 42 col2
----
83
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8573
SELECT ALL + COUNT( * ), 32 * - + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8573
SELECT ALL + COUNT ( * ), 32 * - + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT COALESCE ( + 30, COUNT( * ) + + COUNT( * ) )
----
30

skipif mysql # not compatible
query I rowsort label-8574
SELECT COALESCE ( + 30, COUNT ( * ) + + COUNT ( * ) )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-8575
SELECT DISTINCT + CASE 19 WHEN - + COUNT( * ) THEN NULL WHEN - - 62 THEN NULL WHEN + - 21 * + ( + AVG ( + - 54 ) ) - - COUNT( * ) + - 98 - 75 + + 92 THEN - ( + - 80 ) ELSE NULL END, - 94 col1
----
NULL
-94

skipif mysql # not compatible
query II rowsort label-8575
SELECT DISTINCT + CASE 19 WHEN - + COUNT ( * ) THEN NULL WHEN - - 62 THEN NULL WHEN + - 21 * + ( + AVG ( + - 54 ) ) - - COUNT ( * ) + - 98 - 75 + + 92 THEN - ( + - 80 ) ELSE NULL END, - 94 col1
----
NULL
-94

query I rowsort
SELECT + 93 * + - 35 AS col1
----
-3255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8577
SELECT NULLIF ( - COUNT( * ), MAX( 22 ) - + 86 - + + 82 ) AS col2, 25 * - - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8577
SELECT NULLIF ( - COUNT ( * ), MAX ( 22 ) - + 86 - + + 82 ) AS col2, 25 * - - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT COALESCE ( 8, + 77, + ( + - 76 ) - 28 * 54 DIV - 18 DIV 72 - COALESCE ( 56, + 99 * - 90 * - - 91 + - + 80 + + + 4 ) * + 41 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8578
SELECT COALESCE ( 8, + 77, + ( + - 76 ) - 28 * 54 / - 18 / 72 - COALESCE ( 56, + 99 * - 90 * - - 91 + - + 80 + + + 4 ) * + 41 ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8579
SELECT + 77, 65 * - + CAST( NULL AS DECIMAL ) + + COUNT( * ) / CAST( - 36 AS DECIMAL ) col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-8579
SELECT + 77, 65 * - + CAST ( NULL AS REAL ) + + COUNT ( * ) / CAST ( - 36 AS REAL ) col2
----
77
NULL

query II rowsort
SELECT DISTINCT + 36, 60 col1
----
36
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT - 45 DIV + + 5 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8581
SELECT - 45 / + + 5 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL - NULLIF ( + + ( + 34 ), 58 + - - 70 ) * + COUNT( * ) * - + 49 * - 77
----
-128282

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL - NULLIF ( + + ( + 34 ), 58 + - - 70 ) * + COUNT ( * ) * - + 49 * - 77
----
-128282

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT NULLIF ( - + COALESCE ( - + 20, - + COALESCE ( + ( + 61 ), + + 3 * COUNT( ALL + + 32 ) ), - 35 ), 53 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8583
SELECT NULLIF ( - + COALESCE ( - + 20, - + COALESCE ( + ( + 61 ), + + 3 * COUNT ( ALL + + 32 ) ), - 35 ), 53 ) AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8584
SELECT ALL - COUNT( * ) DIV + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL - COUNT ( * ) / + 25 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8585
SELECT DISTINCT + ( - COUNT( DISTINCT + + 86 ) ) * 25 DIV + ( COUNT( * ) ) + 19 + + COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8585
SELECT DISTINCT + ( - COUNT ( DISTINCT + + 86 ) ) * 25 / + ( COUNT ( * ) ) + 19 + + COUNT ( * ) AS col2
----
-5

query I rowsort
SELECT DISTINCT - 9 * 35
----
-315

query I rowsort
SELECT DISTINCT + ( 17 ) AS col2
----
17

query I rowsort
SELECT - 26 + 47 * + 85 AS col2
----
3969

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT - 89 * + 87 + + NULLIF ( - - 10, - COUNT( * ) ) AS col0
----
-7733

skipif mysql # not compatible
query I rowsort label-8589
SELECT - 89 * + 87 + + NULLIF ( - - 10, - COUNT ( * ) ) AS col0
----
-7733

query I rowsort
SELECT + - 65 * - - 7 + + + 92 AS col0
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT - + 96 + - COUNT( + 58 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8591
SELECT - + 96 + - COUNT ( + 58 ) AS col1
----
-97

query I rowsort
SELECT + + 90 * 51 AS col2
----
4590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT DISTINCT - 78 * + + AVG ( - 49 ) + CAST( NULL AS SIGNED ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT - 78 * + + AVG ( - 49 ) + CAST ( NULL AS INTEGER ) * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL 9 * + 5 + - 74 * - 10 * + + NULLIF ( - + NULLIF ( 76, + 34 ), + NULLIF ( 5, - COUNT( * ) - - 34 / - - 75 ) + + 66 + + + 84 ) * 91 * 62 + 17
----
-317306018

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL 9 * + 5 + - 74 * - 10 * + + NULLIF ( - + NULLIF ( 76, + 34 ), + NULLIF ( 5, - COUNT ( * ) - - 34 / - - 75 ) + + 66 + + + 84 ) * 91 * 62 + 17
----
-317306018

query I rowsort
SELECT DISTINCT ( + 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT ALL + - COUNT( * ) + + COUNT( + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL + - COUNT ( * ) + + COUNT ( + 88 )
----
0

query I rowsort
SELECT - + 44 + 88 + + ( + - 46 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT - NULLIF ( + 96, CAST( + ( 68 ) AS SIGNED ) + 7 * - - 81 )
----
-96

skipif mysql # not compatible
query I rowsort label-8598
SELECT - NULLIF ( + 96, CAST ( + ( 68 ) AS INTEGER ) + 7 * - - 81 )
----
-96

query I rowsort
SELECT - - 69 + 74 + - 73 - 41 * + + 11 AS col2
----
-381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8600
SELECT ALL + CAST( + 5 AS SIGNED ) * - 82
----
-410

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + CAST ( + 5 AS INTEGER ) * - 82
----
-410

query I rowsort
SELECT - + ( - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL - - 38 * + 57 * - SUM( + + 7 )
----
-15162

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL - - 38 * + 57 * - SUM ( + + 7 )
----
-15162

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT + + MIN( - 95 ) - 46 * - 63
----
2803

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT + + MIN ( - 95 ) - 46 * - 63
----
2803

onlyif mysql # aggregate syntax: 
query II rowsort label-8604
SELECT - + 58 col2, - COUNT( * ) - 29
----
-58
-30

skipif mysql # not compatible
query II rowsort label-8604
SELECT - + 58 col2, - COUNT ( * ) - 29
----
-58
-30

query I rowsort
SELECT DISTINCT - 81 * - 94 AS col0
----
7614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8606
SELECT + COALESCE ( + 39, + CASE - 80 WHEN + 64 * ( - 53 ) + - 82 + 48 * - 42 + - NULLIF ( - + CAST( 15 AS SIGNED ), - 15 * COUNT( * ) ) * 70 THEN 84 + 3 END * - 22 ) + 22
----
61

skipif mysql # not compatible
query I rowsort label-8606
SELECT + COALESCE ( + 39, + CASE - 80 WHEN + 64 * ( - 53 ) + - 82 + 48 * - 42 + - NULLIF ( - + CAST ( 15 AS INTEGER ), - 15 * COUNT ( * ) ) * 70 THEN 84 + 3 END * - 22 ) + 22
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8607
SELECT + COALESCE ( - 26, + ( 25 ) DIV - - 17 + 22 + + 3 ) * + 58 col2
----
-1508

skipif mysql # not compatible
query I rowsort label-8607
SELECT + COALESCE ( - 26, + ( 25 ) / - - 17 + 22 + + 3 ) * + 58 col2
----
-1508

query I rowsort
SELECT + ( + 74 ) + + 50 * + 41 + ( - - 81 )
----
2205

query I rowsort
SELECT + 69 * 26
----
1794

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8610
SELECT DISTINCT 34 DIV COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT 34 / COUNT ( * )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8611
SELECT CAST( 95 AS SIGNED ) AS col1, MAX( ALL + 4 ) DIV - - 73 col0
----
95
0

skipif mysql # not compatible
query II rowsort label-8611
SELECT CAST ( 95 AS INTEGER ) AS col1, MAX ( ALL + 4 ) / - - 73 col0
----
95
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8612
SELECT - 49 / + - COALESCE ( + COALESCE ( ( + 35 ), - - 30 + + + ( + 76 ) * + CASE + + NULLIF ( + 10, NULLIF ( - - CASE - 32 WHEN + 45 THEN NULL WHEN COUNT( * ) THEN NULL ELSE + + CAST( NULL AS SIGNED ) + MAX( - 24 + 25 ) END, COUNT( * ) ) * 48 + ( + ( MAX( DISTINCT - 1 ) ) + 86 * - 8 ) ) WHEN SUM( CAST( NULL AS SIGNED ) ) THEN + 28 + + AVG ( 9 ) WHEN - 32 * 42 THEN NULL ELSE ( - COUNT( * ) ) END * + ( 46 ) ), - ( + 91 ) / AVG ( DISTINCT CAST( NULL AS SIGNED ) * - 15 ) + ( 2 ) ) + CAST( NULL AS DECIMAL ) * 45 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT - 49 / + - COALESCE ( + COALESCE ( ( + 35 ), - - 30 + + + ( + 76 ) * + CASE + + NULLIF ( + 10, NULLIF ( - - CASE - 32 WHEN + 45 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE + + CAST ( NULL AS INTEGER ) + MAX ( - 24 + 25 ) END, COUNT ( * ) ) * 48 + ( + ( MAX ( DISTINCT - 1 ) ) + 86 * - 8 ) ) WHEN SUM ( CAST ( NULL AS INTEGER ) ) THEN + 28 + + AVG ( 9 ) WHEN - 32 * 42 THEN NULL ELSE ( - COUNT ( * ) ) END * + ( 46 ) ), - ( + 91 ) / AVG ( DISTINCT CAST ( NULL AS INTEGER ) * - 15 ) + ( 2 ) ) + CAST ( NULL AS REAL ) * 45 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL COUNT( DISTINCT - 97 ) * + 52 * + 97 * + CASE + - 67 WHEN + 3 + + + 69 THEN + - 24 * + ( + 49 ) END - 70 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL COUNT ( DISTINCT - 97 ) * + 52 * + 97 * + CASE + - 67 WHEN + 3 + + + 69 THEN + - 24 * + ( + 49 ) END - 70 AS col2
----
NULL

query I rowsort
SELECT ALL 27 * NULLIF ( 89, - 72 * - 8 * 24 / - COALESCE ( - + 15, - 3, - 24 * + 57 * - 72 ) )
----
2403

query I rowsort
SELECT + 3 * + 87
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8616
SELECT 32 * + 46 * 93 + - 47 * 60 * + 70 * - NULLIF ( MAX( DISTINCT + 66 ), + 4 ) * - MIN( DISTINCT ( CAST( - 73 AS SIGNED ) ) ) AS col2
----
951210096

skipif mysql # not compatible
query I rowsort label-8616
SELECT 32 * + 46 * 93 + - 47 * 60 * + 70 * - NULLIF ( MAX ( DISTINCT + 66 ), + 4 ) * - MIN ( DISTINCT ( CAST ( - 73 AS INTEGER ) ) ) AS col2
----
951210096

query I rowsort
SELECT ( + COALESCE ( - 10, - 79 ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT ( + ( - + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8618
SELECT ( + ( - + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT - ( - COUNT( * ) ) + - - 95
----
96

skipif mysql # not compatible
query I rowsort label-8619
SELECT - ( - COUNT ( * ) ) + - - 95
----
96

query II rowsort
SELECT ALL + 3 * - + 2 * + 5 * - 41 + + 17 AS col0, 54
----
1247
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8621
SELECT - 42 * 41 * ( - NULLIF ( - 98, - CASE - 54 WHEN COALESCE ( - + 58, - 4 * - + ( - - 59 ), + 48 ) THEN + - 16 + + + 32 END * CAST( NULL AS SIGNED ) ) ) col0
----
-168756

skipif mysql # not compatible
query I rowsort label-8621
SELECT - 42 * 41 * ( - NULLIF ( - 98, - CASE - 54 WHEN COALESCE ( - + 58, - 4 * - + ( - - 59 ), + 48 ) THEN + - 16 + + + 32 END * CAST ( NULL AS INTEGER ) ) ) col0
----
-168756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8622
SELECT ALL COUNT( ALL - NULLIF ( + + 81, + ( - 13 ) ) ) * 49 + - CAST( + 32 AS SIGNED ) + CASE WHEN NOT NULL > + 71 THEN COALESCE ( - 31, - 31 + + 79, 16 ) ELSE 7 END + 62
----
86

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL COUNT ( ALL - NULLIF ( + + 81, + ( - 13 ) ) ) * 49 + - CAST ( + 32 AS INTEGER ) + CASE WHEN NOT NULL > + 71 THEN COALESCE ( - 31, - 31 + + 79, 16 ) ELSE 7 END + 62
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8623
SELECT DISTINCT CAST( NULL AS DECIMAL ) * ( 91 ) + 43 + + SUM( + 21 ) * - 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT CAST ( NULL AS REAL ) * ( 91 ) + 43 + + SUM ( + 21 ) * - 71 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8624
SELECT DISTINCT + 70 / - 55 + + - 14 / + 49 * CAST( NULL AS SIGNED ) AS col1, + 77 + + - MIN( ( - 89 ) )
----
NULL
166

skipif mysql # not compatible
query II rowsort label-8624
SELECT DISTINCT + 70 / - 55 + + - 14 / + 49 * CAST ( NULL AS INTEGER ) AS col1, + 77 + + - MIN ( ( - 89 ) )
----
NULL
166

query I rowsort
SELECT DISTINCT + ( 65 ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8626
SELECT - - 42 * COUNT( * ) AS col1, + 53
----
42
53

skipif mysql # not compatible
query II rowsort label-8626
SELECT - - 42 * COUNT ( * ) AS col1, + 53
----
42
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT DISTINCT + COUNT( * ) * 48 * - 67 * 85
----
-273360

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT + COUNT ( * ) * 48 * - 67 * 85
----
-273360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8628
SELECT DISTINCT COUNT( * ) * + ( - 18 ) + - NULLIF ( 89, CAST( NULL AS SIGNED ) ) - - 54
----
-53

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT COUNT ( * ) * + ( - 18 ) + - NULLIF ( 89, CAST ( NULL AS INTEGER ) ) - - 54
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - + MAX( + 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-8629
SELECT - + MAX ( + 72 ) AS col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8630
SELECT ALL + 38 DIV + - 91 * - MAX( 45 ) * + 28 AS col2, 90 AS col2
----
0
90

skipif mysql # not compatible
query II rowsort label-8630
SELECT ALL + 38 / + - 91 * - MAX ( 45 ) * + 28 AS col2, 90 AS col2
----
0
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8631
SELECT DISTINCT 20 DIV + 89 * - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT 20 / + 89 * - 90 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8632
SELECT DISTINCT + 94 DIV + 72 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT + 94 / + 72 AS col0
----
1

query II rowsort
SELECT ALL 97 AS col2, 88 - + 18
----
97
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8634
SELECT ALL 99, + COUNT( * ) * - 70 * 82 + - 59 AS col1
----
99
-5799

skipif mysql # not compatible
query II rowsort label-8634
SELECT ALL 99, + COUNT ( * ) * - 70 * 82 + - 59 AS col1
----
99
-5799

query I rowsort
SELECT 73 + - + 7
----
66

query I rowsort
SELECT 79 * + 47
----
3713

onlyif mysql # aggregate syntax: 
query II rowsort label-8637
SELECT 82 + + 89 * + COUNT( * ), + 53 AS col2
----
171
53

skipif mysql # not compatible
query II rowsort label-8637
SELECT 82 + + 89 * + COUNT ( * ), + 53 AS col2
----
171
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8638
SELECT 24 + MAX( ALL - 56 ) DIV 89 - - 65 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-8638
SELECT 24 + MAX ( ALL - 56 ) / 89 - - 65 AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8639
SELECT SUM( ALL - - 97 ) * + 16 + - 62 - + CAST( NULL AS SIGNED ) * 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8639
SELECT SUM ( ALL - - 97 ) * + 16 + - 62 - + CAST ( NULL AS INTEGER ) * 40 AS col2
----
NULL

query II rowsort
SELECT ALL 17 AS col0, + 73 AS col1
----
17
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8641
SELECT ALL 19, COUNT( * ) col0
----
19
1

skipif mysql # not compatible
query II rowsort label-8641
SELECT ALL 19, COUNT ( * ) col0
----
19
1

query I rowsort
SELECT NULLIF ( - 73, + 84 * + 99 ) - + + 79 col2
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ALL + 9 * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL + 9 * - COUNT ( * )
----
-9

query II rowsort
SELECT DISTINCT 86 + + + ( + 33 ), + 14 * - 16 AS col1
----
119
-224

query I rowsort
SELECT ALL NULLIF ( + 94, - - COALESCE ( 45, 55 ) ) + - 49 AS col0
----
45

query I rowsort
SELECT ALL 21 + 77 AS col0
----
98

query I rowsort
SELECT DISTINCT ( + 55 ) + - 15 * 50 AS col2
----
-695

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT COUNT( * ) * - 31 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8648
SELECT COUNT ( * ) * - 31 AS col1
----
-31

query II rowsort
SELECT 84 AS col0, 27
----
84
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8650
SELECT DISTINCT CAST( NULL AS SIGNED ) + 67 - 71 + + COUNT( * ) / + - 83 / COUNT( * ) * + ( - 54 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 67 - 71 + + COUNT ( * ) / + - 83 / COUNT ( * ) * + ( - 54 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT COUNT( + 93 ) * CAST( - ( - NULLIF ( + 0, + 59 * + ( 43 ) * - 33 + - 16 + 2 + COUNT( DISTINCT 92 ) ) ) AS SIGNED ) + - 59 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8651
SELECT COUNT ( + 93 ) * CAST ( - ( - NULLIF ( + 0, + 59 * + ( 43 ) * - 33 + - 16 + 2 + COUNT ( DISTINCT 92 ) ) ) AS INTEGER ) + - 59 AS col1
----
-59

query I rowsort
SELECT ALL - 43 + - 34 col0
----
-77

query I rowsort
SELECT 70 - 78 + - 91 * + - 6
----
538

query I rowsort
SELECT ALL - 99 * + - ( - 39 ) + - 97
----
-3958

query I rowsort
SELECT DISTINCT 18 * 25 * - 76 + ( - + 83 ) AS col2
----
-34283

query I rowsort
SELECT ALL - 83 - + 60
----
-143

query I rowsort
SELECT ALL + 8 * + 3
----
24

query I rowsort
SELECT 96 + - 32 AS col1
----
64

query II rowsort
SELECT + 62 AS col1, NULLIF ( + 52, + - ( - 45 ) / + 24 - 44 * - 94 )
----
62
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8660
SELECT ALL - 44 AS col2, CAST( 61 AS SIGNED ) * - COUNT( * )
----
-44
-61

skipif mysql # not compatible
query II rowsort label-8660
SELECT ALL - 44 AS col2, CAST ( 61 AS INTEGER ) * - COUNT ( * )
----
-44
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT 19 * SUM( DISTINCT + 83 )
----
1577

skipif mysql # not compatible
query I rowsort label-8661
SELECT 19 * SUM ( DISTINCT + 83 )
----
1577

query I rowsort
SELECT 34 + - + 1 * 33 AS col0
----
1

query II rowsort
SELECT ALL - + 86 AS col0, - 91 AS col1
----
-86
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT + 69 + COUNT( * ) * 44 * + + 78 + - 20 AS col2
----
3481

skipif mysql # not compatible
query I rowsort label-8664
SELECT + 69 + COUNT ( * ) * 44 * + + 78 + - 20 AS col2
----
3481

query I rowsort
SELECT ALL + + 37 * 99 AS col2
----
3663

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8666
SELECT DISTINCT ( + 46 ) / - CAST( NULL AS DECIMAL ) + + CASE + + COUNT( * ) WHEN + 50 * + + 21 THEN - - 32 * - 72 + 66 WHEN + COUNT( * ) THEN + NULLIF ( + 96, - 58 / - COUNT( * ) ) * - 4 + - 48 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT DISTINCT ( + 46 ) / - CAST ( NULL AS REAL ) + + CASE + + COUNT ( * ) WHEN + 50 * + + 21 THEN - - 32 * - 72 + 66 WHEN + COUNT ( * ) THEN + NULLIF ( + 96, - 58 / - COUNT ( * ) ) * - 4 + - 48 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL ( - - 84 )
----
84

query II rowsort
SELECT - 19 col1, - 77 + - 41 * + 39 * + - 83 AS col1
----
-19
132640

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT COUNT( * ) + 87 + ( - 10 ) * - 38 * + + NULLIF ( + - 54, - 14 ) + + COUNT( * ) * - 47 - 44
----
-20523

skipif mysql # not compatible
query I rowsort label-8669
SELECT COUNT ( * ) + 87 + ( - 10 ) * - 38 * + + NULLIF ( + - 54, - 14 ) + + COUNT ( * ) * - 47 - 44
----
-20523

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT ALL + COUNT( * ) * + 31
----
31

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL + COUNT ( * ) * + 31
----
31

query I rowsort
SELECT ALL + 3 * 17 AS col0
----
51

query I rowsort
SELECT 92 * - 1 * + 9
----
-828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8673
SELECT ALL - CASE - + 18 WHEN - 53 THEN - 95 * COUNT( * ) * + - 76 ELSE + 57 END + + 68 - 19 / - COUNT( * ) * ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL - CASE - + 18 WHEN - 53 THEN - 95 * COUNT ( * ) * + - 76 ELSE + 57 END + + 68 - 19 / - COUNT ( * ) * ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8674
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col1, - 22 * - 22 * - 32 + + + 46 * - COUNT( * ) AS col2
----
0
-15534

skipif mysql # not compatible
query II rowsort label-8674
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col1, - 22 * - 22 * - 32 + + + 46 * - COUNT ( * ) AS col2
----
0
-15534

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8675
SELECT DISTINCT - CAST( 31 AS SIGNED ) DIV 19 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT - CAST ( 31 AS INTEGER ) / 19 AS col1
----
-1

query I rowsort
SELECT DISTINCT - 86 + 20 * - NULLIF ( + COALESCE ( - 59, 93 ), + 16 ) AS col2
----
1094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT 17 + + CAST( 10 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-8677
SELECT 17 + + CAST ( 10 AS INTEGER )
----
27

query I rowsort
SELECT ALL 34 * 22 * + 85 col0
----
63580

onlyif mysql # DIV for integer division: 
query I rowsort label-8679
SELECT 23 DIV ( 97 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8679
SELECT 23 / ( 97 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8680
SELECT ALL - 68 + + 78 + - 80 * + COALESCE ( - 5, 72 * + COUNT( * ) DIV + 56 + CAST( NULL AS SIGNED ) )
----
410

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL - 68 + + 78 + - 80 * + COALESCE ( - 5, 72 * + COUNT ( * ) / + 56 + CAST ( NULL AS INTEGER ) )
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT SUM( - + 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT SUM ( - + 53 ) AS col0
----
-53

query I rowsort
SELECT 13 + - 82
----
-69

query II rowsort
SELECT 49 - + - 30 AS col0, + 84 + 23 * + 10
----
79
314

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL + ( + - 27 ) * + 64 + - MIN( DISTINCT - 73 )
----
-1655

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + ( + - 27 ) * + 64 + - MIN ( DISTINCT - 73 )
----
-1655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8685
SELECT ALL CAST( 19 AS SIGNED ) + + SUM( DISTINCT 93 ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL CAST ( 19 AS INTEGER ) + + SUM ( DISTINCT 93 ) AS col2
----
112

query I rowsort
SELECT DISTINCT - ( + 99 ) - + 99 - 2 * + 70
----
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ALL + SUM( 26 ) * + 98 + COUNT( * )
----
2549

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL + SUM ( 26 ) * + 98 + COUNT ( * )
----
2549

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT - COUNT( 54 )
----
-1

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT - COUNT ( 54 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8689
SELECT 31 + - ( - 88 ) + - - COUNT( * ) AS col0, CASE - - COUNT( * ) WHEN + + 71 * + 31 - + 74 THEN 38 WHEN + - COUNT( * ) / + + 77 - - COUNT( DISTINCT 72 ) - + 61 + + - ( + COUNT( * ) ) THEN NULL END
----
120
NULL

skipif mysql # not compatible
query II rowsort label-8689
SELECT 31 + - ( - 88 ) + - - COUNT ( * ) AS col0, CASE - - COUNT ( * ) WHEN + + 71 * + 31 - + 74 THEN 38 WHEN + - COUNT ( * ) / + + 77 - - COUNT ( DISTINCT 72 ) - + 61 + + - ( + COUNT ( * ) ) THEN NULL END
----
120
NULL

query I rowsort
SELECT DISTINCT + 30 * 34 * 83 - - 14
----
84674

query I rowsort
SELECT - 51 * + 61 * 15
----
-46665

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT DISTINCT 35 * ( - - COUNT( DISTINCT 39 ) ) - + - 34 * + 74
----
2551

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT 35 * ( - - COUNT ( DISTINCT 39 ) ) - + - 34 * + 74
----
2551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8693
SELECT DISTINCT - CASE - + 55 WHEN 21 THEN - 0 + - - 53 WHEN + + CAST( NULL AS SIGNED ) * CASE - 20 WHEN 87 THEN 63 * - MAX( DISTINCT 61 ) - 23 + CAST( NULL AS SIGNED ) * + NULLIF ( 65, CAST( NULL AS SIGNED ) * + - 5 ) * + COUNT( * ) - + 21 ELSE NULL END * - 89 + 87 / - NULLIF ( - 44 + - 43, - COUNT( * ) ) THEN + 68 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT - CASE - + 55 WHEN 21 THEN - 0 + - - 53 WHEN + + CAST ( NULL AS INTEGER ) * CASE - 20 WHEN 87 THEN 63 * - MAX ( DISTINCT 61 ) - 23 + CAST ( NULL AS INTEGER ) * + NULLIF ( 65, CAST ( NULL AS INTEGER ) * + - 5 ) * + COUNT ( * ) - + 21 ELSE NULL END * - 89 + 87 / - NULLIF ( - 44 + - 43, - COUNT ( * ) ) THEN + 68 END AS col2
----
NULL

query I rowsort
SELECT ALL - - ( 8 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8695
SELECT ALL 48 DIV - 11 + 49 + 77 + + - 88
----
34

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL 48 / - 11 + 49 + 77 + + - 88
----
34

query I rowsort
SELECT COALESCE ( - - 6, + 61 ) + - - 86
----
92

query I rowsort
SELECT ALL + 71 * + - 66 col0
----
-4686

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8698
SELECT + CAST( NULL AS DECIMAL ) / 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT + CAST ( NULL AS REAL ) / 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8699
SELECT DISTINCT - COUNT( ALL - NULLIF ( - 39, + - 20 * + - ( - 46 ) ) ) DIV 74 - - ( 52 ) * 86
----
4472

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT - COUNT ( ALL - NULLIF ( - 39, + - 20 * + - ( - 46 ) ) ) / 74 - - ( 52 ) * 86
----
4472

query I rowsort
SELECT DISTINCT - 38 * 77 * + 80 AS col1
----
-234080

onlyif mysql # aggregate syntax: 
query II rowsort label-8701
SELECT ALL + COUNT( + 88 ), + 65 AS col1
----
1
65

skipif mysql # not compatible
query II rowsort label-8701
SELECT ALL + COUNT ( + 88 ), + 65 AS col1
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL COUNT( * ) * 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL COUNT ( * ) * 29 AS col0
----
29

query II rowsort
SELECT DISTINCT + + ( - 97 ) AS col2, + 31
----
-97
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT - 2 * + + 88 * + 39 + - MAX( DISTINCT - 59 ) + - - 36 AS col0
----
-6769

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT - 2 * + + 88 * + 39 + - MAX ( DISTINCT - 59 ) + - - 36 AS col0
----
-6769

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8705
SELECT ALL COUNT( - 52 ) + + 58 + 32 DIV COUNT( * ) * - 43 * - 77 * - - 63 + + COUNT( * ), + 46 * + 94 AS col2
----
6675036
4324

skipif mysql # not compatible
query II rowsort label-8705
SELECT ALL COUNT ( - 52 ) + + 58 + 32 / COUNT ( * ) * - 43 * - 77 * - - 63 + + COUNT ( * ), + 46 * + 94 AS col2
----
6675036
4324

query I rowsort
SELECT DISTINCT ( + + 25 ) + - ( + - 25 ) + + 85 * + 8 * 8 + - 73 + - 51 AS col2
----
5366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8707
SELECT + 46 - - + COUNT( DISTINCT - 56 ) * + COALESCE ( 59, - 31 DIV + - 8 + + 55 * + 99 ) AS col2
----
105

skipif mysql # not compatible
query I rowsort label-8707
SELECT + 46 - - + COUNT ( DISTINCT - 56 ) * + COALESCE ( 59, - 31 / + - 8 + + 55 * + 99 ) AS col2
----
105

query I rowsort
SELECT ALL - CASE - - 32 WHEN 9 THEN + ( + 35 ) ELSE NULL END * - - 48 AS col2
----
NULL

query I rowsort
SELECT + 64 + + 40 + - 44
----
60

query I rowsort
SELECT DISTINCT 69 + 87 col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT ALL COUNT( 75 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8711
SELECT ALL COUNT ( 75 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8712
SELECT DISTINCT - CAST( - ( - CAST( NULL AS DECIMAL ) ) AS DECIMAL ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT - CAST ( - ( - CAST ( NULL AS REAL ) ) AS REAL ) + - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT - 99 * + ( 10 )
----
-990

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL 4 + CASE + 42 WHEN 51 * + 13 + 38 THEN 68 + - 64 WHEN + 29 * - NULLIF ( 53, + 7 ) - + + 42 THEN 70 ELSE 3 END + - + MAX( - 26 ) + 92 * - 91 * + + 55 + + 82 * - ( - 40 * - ( + 94 ) ) AS col1
----
-768747

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL 4 + CASE + 42 WHEN 51 * + 13 + 38 THEN 68 + - 64 WHEN + 29 * - NULLIF ( 53, + 7 ) - + + 42 THEN 70 ELSE 3 END + - + MAX ( - 26 ) + 92 * - 91 * + + 55 + + 82 * - ( - 40 * - ( + 94 ) ) AS col1
----
-768747

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT + 28 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-8715
SELECT + 28 / 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT ALL SUM( ALL 73 )
----
73

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL SUM ( ALL 73 )
----
73

query I rowsort
SELECT - ( - 33 ) col2
----
33

query I rowsort
SELECT + 63 + 68 AS col0
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8719
SELECT - 68 - - MIN( DISTINCT - 71 ) + + - 99 DIV + 75 + + 68 * - 45
----
-3200

skipif mysql # not compatible
query I rowsort label-8719
SELECT - 68 - - MIN ( DISTINCT - 71 ) + + - 99 / + 75 + + 68 * - 45
----
-3200

query I rowsort
SELECT ALL ( - - 75 ) * + - 37 + 27 + 7 AS col1
----
-2741

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT - 33 * + 90 * + COUNT( * ) col1
----
-2970

skipif mysql # not compatible
query I rowsort label-8721
SELECT - 33 * + 90 * + COUNT ( * ) col1
----
-2970

onlyif mysql # DIV for integer division: 
query I rowsort label-8722
SELECT ALL - 10 DIV - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL - 10 / - 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8723
SELECT - COUNT( * ) AS col1, 1
----
-1
1

skipif mysql # not compatible
query II rowsort label-8723
SELECT - COUNT ( * ) AS col1, 1
----
-1
1

query I rowsort
SELECT + ( + + 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT - MAX( ALL - + 73 ) * - 64 + 7
----
-4665

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT - MAX ( ALL - + 73 ) * - 64 + 7
----
-4665

query I rowsort
SELECT - 24 - + ( - 43 ) - + 99
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL + - NULLIF ( COUNT( * ), + 27 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL + - NULLIF ( COUNT ( * ), + 27 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8728
SELECT DISTINCT + MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT - + 84 + + COUNT( * ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8729
SELECT - + 84 + + COUNT ( * ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL 3 * + + 38 + + COUNT( * ) + + COUNT( * ) + + ( - 62 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL 3 * + + 38 + + COUNT ( * ) + + COUNT ( * ) + + ( - 62 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT + - 4 - + COUNT( * ) * + 0
----
-4

skipif mysql # not compatible
query I rowsort label-8731
SELECT + - 4 - + COUNT ( * ) * + 0
----
-4

query I rowsort
SELECT + 7 * + 52 + + 78 AS col1
----
442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8733
SELECT ALL + - CAST( NULL AS SIGNED ) * 69 * 16 + + CAST( + 41 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL + - CAST ( NULL AS INTEGER ) * 69 * 16 + + CAST ( + 41 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 65 * + 55 AS col1
----
-3575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8735
SELECT ALL MAX( 92 ) * CAST( NULL AS SIGNED ) + + ( + 48 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL MAX ( 92 ) * CAST ( NULL AS INTEGER ) + + ( + 48 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ALL MIN( 29 ) * - - 2
----
58

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL MIN ( 29 ) * - - 2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT ALL - 93 * + - 60 + + - COUNT( * )
----
5579

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL - 93 * + - 60 + + - COUNT ( * )
----
5579

query II rowsort
SELECT + 23 + 42, 60 AS col2
----
65
60

query I rowsort
SELECT ALL - 16 * - 47 + + + 69 col2
----
821

query I rowsort
SELECT - ( + ( 73 ) ) * - + 81 * 80
----
473040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8741
SELECT ALL 61 AS col2, NULLIF ( - 87, + - 66 ) * - ( - COALESCE ( 76, - COUNT( ALL + 77 ) ) ) * - COUNT( * ) + + - 16 - - 11 DIV 14 AS col1
----
61
6596

skipif mysql # not compatible
query II rowsort label-8741
SELECT ALL 61 AS col2, NULLIF ( - 87, + - 66 ) * - ( - COALESCE ( 76, - COUNT ( ALL + 77 ) ) ) * - COUNT ( * ) + + - 16 - - 11 / 14 AS col1
----
61
6596

query I rowsort
SELECT + 87 * + 99 AS col1
----
8613

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8743
SELECT - CAST( NULL AS SIGNED ), - 77 AS col2
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-8743
SELECT - CAST ( NULL AS INTEGER ), - 77 AS col2
----
NULL
-77

query I rowsort
SELECT - ( 48 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT COUNT( ALL + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT COUNT ( ALL + 96 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT ALL 51 - - - 28, COUNT( * ) col1
----
23
1

skipif mysql # not compatible
query II rowsort label-8746
SELECT ALL 51 - - - 28, COUNT ( * ) col1
----
23
1

query I rowsort
SELECT + 57 * 69
----
3933

query II rowsort
SELECT ALL 27 AS col0, + 13 * - - 16
----
27
208

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8749
SELECT ALL CASE - + 57 WHEN ( + 36 ) * - - 96 THEN 37 WHEN - 83 THEN - CAST( + 21 AS SIGNED ) - + 8 WHEN + 28 THEN NULLIF ( + 30, - NULLIF ( - + 84, + 87 ) ) END AS col2, - ( - 96 ) + 5 DIV 4
----
NULL
97

skipif mysql # not compatible
query II rowsort label-8749
SELECT ALL CASE - + 57 WHEN ( + 36 ) * - - 96 THEN 37 WHEN - 83 THEN - CAST ( + 21 AS INTEGER ) - + 8 WHEN + 28 THEN NULLIF ( + 30, - NULLIF ( - + 84, + 87 ) ) END AS col2, - ( - 96 ) + 5 / 4
----
NULL
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8750
SELECT DISTINCT 84 AS col2, 57 * + 86 + + - MAX( ALL 14 )
----
84
4888

skipif mysql # not compatible
query II rowsort label-8750
SELECT DISTINCT 84 AS col2, 57 * + 86 + + - MAX ( ALL 14 )
----
84
4888

query I rowsort
SELECT + 27 * + 19 AS col1
----
513

query I rowsort
SELECT DISTINCT 50 * + 49 * - 61
----
-149450

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT + COUNT( * ) + + 48 * + ( 39 ) AS col1
----
1873

skipif mysql # not compatible
query I rowsort label-8753
SELECT + COUNT ( * ) + + 48 * + ( 39 ) AS col1
----
1873

onlyif mysql # DIV for integer division: 
query I rowsort label-8754
SELECT - + 26 DIV + NULLIF ( + 9, - + 68 * + + 4 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8754
SELECT - + 26 / + NULLIF ( + 9, - + 68 * + + 4 ) AS col2
----
-2

query I rowsort
SELECT + 73 + - 84
----
-11

query I rowsort
SELECT - 42 + - 69 AS col0
----
-111

query I rowsort
SELECT DISTINCT + 4 * - 47 - 79
----
-267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8758
SELECT - 0 / - COUNT( * ) * + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT - 0 / - COUNT ( * ) * + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8759
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT - CAST ( NULL AS REAL ) * 62
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT DISTINCT + + 6 DIV + ( + MAX( 27 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + + 6 / + ( + MAX ( 27 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL - + COUNT( * ) + + 84 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL - + COUNT ( * ) + + 84 AS col1
----
83

query I rowsort
SELECT + 22 + + 92 + 21
----
135

query II rowsort
SELECT ALL - 60 AS col1, 59 * 61 + - 26 * - 87 + - + 52 * 29 + 53 * - 64 AS col2
----
-60
961

query I rowsort
SELECT + CASE WHEN NOT NULL IS NULL THEN - 45 ELSE NULL END
----
NULL

query I rowsort
SELECT + 49 * ( - 46 ) + - 99 + 76 * - + 22 AS col1
----
-4025

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8766
SELECT + CAST( NULL AS DECIMAL ), 50 AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-8766
SELECT + CAST ( NULL AS REAL ), 50 AS col1
----
NULL
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8767
SELECT 8 * 31 + + COUNT( * ) - + - 84 + - 96 * - 9 + - + 31 * + - 42 - 23 DIV - ( - 71 ), - 33 AS col2
----
2499
-33

skipif mysql # not compatible
query II rowsort label-8767
SELECT 8 * 31 + + COUNT ( * ) - + - 84 + - 96 * - 9 + - + 31 * + - 42 - 23 / - ( - 71 ), - 33 AS col2
----
2499
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT DISTINCT - - COUNT( * ) + + - 61
----
-60

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - - COUNT ( * ) + + - 61
----
-60

query II rowsort
SELECT ALL + - 38 + - + 85 + + 88 * - 23, + 2 AS col0
----
-2147
2

query II rowsort
SELECT + 9 AS col0, 94
----
9
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8771
SELECT - 16 * + CAST( - COALESCE ( + SUM( ALL + ( + 49 ) ), COUNT( * ) + - CASE - 17 WHEN - + 54 * + ( 26 ) + - CASE 79 WHEN - AVG ( ALL + + 89 ) THEN 41 + 69 END + + 17 - - 93 THEN - 25 / ( 14 + - 89 ) WHEN 55 THEN + AVG ( - 98 ) * 5 + + 56 END * 43, MAX( DISTINCT - 15 ) ) AS SIGNED ) + - 24 AS col1
----
760

skipif mysql # not compatible
query I rowsort label-8771
SELECT - 16 * + CAST ( - COALESCE ( + SUM ( ALL + ( + 49 ) ), COUNT ( * ) + - CASE - 17 WHEN - + 54 * + ( 26 ) + - CASE 79 WHEN - AVG ( ALL + + 89 ) THEN 41 + 69 END + + 17 - - 93 THEN - 25 / ( 14 + - 89 ) WHEN 55 THEN + AVG ( - 98 ) * 5 + + 56 END * 43, MAX ( DISTINCT - 15 ) ) AS INTEGER ) + - 24 AS col1
----
760

query I rowsort
SELECT ALL - - ( + 52 ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT DISTINCT - 25 + + CAST( - + 45 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT - 25 + + CAST ( - + 45 AS INTEGER )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8774
SELECT DISTINCT + COUNT( * ) + - + CASE - - ( - 91 ) WHEN COALESCE ( ( - 88 ), + - 24 ) THEN NULL WHEN - NULLIF ( 1, + - NULLIF ( - COUNT( * ), + 33 ) + - - 88 ) THEN - COUNT( * ) END + + - 22 * COUNT( ALL - - ( + 19 ) ) + + 62 AS col2, 31 + - 68 + 75
----
NULL
38

skipif mysql # not compatible
query II rowsort label-8774
SELECT DISTINCT + COUNT ( * ) + - + CASE - - ( - 91 ) WHEN COALESCE ( ( - 88 ), + - 24 ) THEN NULL WHEN - NULLIF ( 1, + - NULLIF ( - COUNT ( * ), + 33 ) + - - 88 ) THEN - COUNT ( * ) END + + - 22 * COUNT ( ALL - - ( + 19 ) ) + + 62 AS col2, 31 + - 68 + 75
----
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8775
SELECT DISTINCT CAST( + 6 AS SIGNED ) + + 84 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT CAST ( + 6 AS INTEGER ) + + 84 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8776
SELECT DISTINCT - CAST( COALESCE ( + COALESCE ( COUNT( * ), + ( + 27 ) * - + 5 ), + 59 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT - CAST ( COALESCE ( + COALESCE ( COUNT ( * ), + ( + 27 ) * - + 5 ), + 59 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT COUNT( * ) * + NULLIF ( - - 72, + 10 * - - SUM( - 51 ) * 82 + + + 97 - COUNT( * ) ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8777
SELECT COUNT ( * ) * + NULLIF ( - - 72, + 10 * - - SUM ( - 51 ) * 82 + + + 97 - COUNT ( * ) ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8778
SELECT DISTINCT NULLIF ( 90, + COUNT( * ) + - 56 * - - COUNT( * ) ) - + + ( - ( + NULLIF ( + 19, + + 90 + + + 70 ) ) ) - CAST( NULL AS SIGNED ) + - 1 + - 8 + + - ( 10 ) * - + ( + + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT NULLIF ( 90, + COUNT ( * ) + - 56 * - - COUNT ( * ) ) - + + ( - ( + NULLIF ( + 19, + + 90 + + + 70 ) ) ) - CAST ( NULL AS INTEGER ) + - 1 + - 8 + + - ( 10 ) * - + ( + + 18 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8779
SELECT ALL ( + - CAST( NULL AS DECIMAL ) ) - + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL ( + - CAST ( NULL AS REAL ) ) - + 57 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8780
SELECT COUNT( * ) * + + CASE - 73 WHEN + + 88 THEN ( ( - 81 ) ) WHEN - + 22 + 26 DIV - 51 THEN NULL WHEN COALESCE ( - 47, - 31 ) THEN + 27 ELSE + 17 - 61 + + 33 + + - 9 - COUNT( * ) - + ( 18 ) + - 13 DIV COUNT( * ) * 42 END
----
-585

skipif mysql # not compatible
query I rowsort label-8780
SELECT COUNT ( * ) * + + CASE - 73 WHEN + + 88 THEN ( ( - 81 ) ) WHEN - + 22 + 26 / - 51 THEN NULL WHEN COALESCE ( - 47, - 31 ) THEN + 27 ELSE + 17 - 61 + + 33 + + - 9 - COUNT ( * ) - + ( 18 ) + - 13 / COUNT ( * ) * 42 END
----
-585

query II rowsort
SELECT ALL 69 * + 22 AS col1, - 10 AS col0
----
1518
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT DISTINCT + ( COALESCE ( + 88, 52 * - - 2 DIV 4 ) ) DIV - 56 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT + ( COALESCE ( + 88, 52 * - - 2 / 4 ) ) / - 56 AS col2
----
-1

query I rowsort
SELECT ALL 45 * + 26 AS col0
----
1170

query II rowsort
SELECT ALL 4 * - 27 AS col2, 36
----
-108
36

query I rowsort
SELECT 32 * - 73
----
-2336

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT 67 * 53 AS col0, ( + - COUNT( * ) )
----
3551
-1

skipif mysql # not compatible
query II rowsort label-8786
SELECT 67 * 53 AS col0, ( + - COUNT ( * ) )
----
3551
-1

query I rowsort
SELECT - 70 * + 22 AS col0
----
-1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT DISTINCT - CAST( + 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT - CAST ( + 61 AS INTEGER )
----
-61

query I rowsort
SELECT ALL + 83 + + 71 + - + 66 AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8790
SELECT ALL - 9 + - COUNT( * ), 34 + + - CAST( + 84 AS SIGNED ) AS col0
----
-10
-50

skipif mysql # not compatible
query II rowsort label-8790
SELECT ALL - 9 + - COUNT ( * ), 34 + + - CAST ( + 84 AS INTEGER ) AS col0
----
-10
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8791
SELECT ALL + 98 + - 19 DIV 86 * + + 62 + - 20 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL + 98 + - 19 / 86 * + + 62 + - 20 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT DISTINCT + + MAX( DISTINCT + + 98 ) * + 40 AS col0
----
3920

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT + + MAX ( DISTINCT + + 98 ) * + 40 AS col0
----
3920

query I rowsort
SELECT 19 - - - ( - 80 ) - - 34 * + NULLIF ( + 36, + 98 ) * - 55 AS col1
----
-67221

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT ALL 3 + - - ( + + COUNT( * ) )
----
4

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL 3 + - - ( + + COUNT ( * ) )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8795
SELECT 65 + COUNT( * ), 55 col2
----
66
55

skipif mysql # not compatible
query II rowsort label-8795
SELECT 65 + COUNT ( * ), 55 col2
----
66
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT COUNT( * ) * 62 + ( 10 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8796
SELECT COUNT ( * ) * 62 + ( 10 ) AS col0
----
72

query II rowsort
SELECT DISTINCT - 15 + 83 AS col0, + ( + 84 ) AS col2
----
68
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8798
SELECT ALL + 57 + - 85 DIV 15 * + 68 * + 10 col0
----
-3343

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL + 57 + - 85 / 15 * + 68 * + 10 col0
----
-3343

onlyif mysql # aggregate syntax: 
query III rowsort label-8799
SELECT ALL + - COUNT( * ) * - + 40 AS col0, + COUNT( - + 17 ) + 86, + + 93 * - 6 * 42 - + COUNT( - 36 ) AS col2
----
40
87
-23437

skipif mysql # not compatible
query III rowsort label-8799
SELECT ALL + - COUNT ( * ) * - + 40 AS col0, + COUNT ( - + 17 ) + 86, + + 93 * - 6 * 42 - + COUNT ( - 36 ) AS col2
----
40
87
-23437

onlyif mysql # aggregate syntax: 
query II rowsort label-8800
SELECT DISTINCT - MIN( DISTINCT - 2 ), 21 AS col1
----
2
21

skipif mysql # not compatible
query II rowsort label-8800
SELECT DISTINCT - MIN ( DISTINCT - 2 ), 21 AS col1
----
2
21

query I rowsort
SELECT NULLIF ( + ( + 32 ), 79 / + 25 ) - + 80
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8802
SELECT ALL + CAST( - 59 AS SIGNED ) * - COUNT( * ) DIV + COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + CAST ( - 59 AS INTEGER ) * - COUNT ( * ) / + COUNT ( * ) AS col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-8803
SELECT ALL + 32 DIV - 24 + - - 72 * 82
----
5903

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + 32 / - 24 + - - 72 * 82
----
5903

query I rowsort
SELECT ALL - 21 - + 38 AS col2
----
-59

query I rowsort
SELECT DISTINCT - CASE + + 83 WHEN - 3 THEN NULL WHEN + + 2 + + + 45 / + + 85 THEN 93 END
----
NULL

query I rowsort
SELECT 36 * + + 38 * - + 59 AS col2
----
-80712

onlyif mysql # DIV for integer division: 
query I rowsort label-8807
SELECT ALL - ( - 11 ) DIV - 15 + + 97 + + 54 col2
----
151

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL - ( - 11 ) / - 15 + + 97 + + 54 col2
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-8808
SELECT 43 - - COALESCE ( - + CASE - 18 WHEN - 31 THEN 41 END, + COALESCE ( - + 53, + 72 + + 39 ) ) + 78 * - - SUM( ALL - 6 ), COUNT( * ) * - 27 AS col1
----
-478
-27

skipif mysql # not compatible
query II rowsort label-8808
SELECT 43 - - COALESCE ( - + CASE - 18 WHEN - 31 THEN 41 END, + COALESCE ( - + 53, + 72 + + 39 ) ) + 78 * - - SUM ( ALL - 6 ), COUNT ( * ) * - 27 AS col1
----
-478
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT - 25 * - NULLIF ( + 23, - CAST( NULL AS SIGNED ) + - - 29 ) * 12 + + 90 * 70 col2
----
13200

skipif mysql # not compatible
query I rowsort label-8809
SELECT - 25 * - NULLIF ( + 23, - CAST ( NULL AS INTEGER ) + - - 29 ) * 12 + + 90 * 70 col2
----
13200

query I rowsort
SELECT 52 - + 30 - + - 4 * - - 41 AS col1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL + ( - + MAX( 1 ) ) - - ( - 61 )
----
-62

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + ( - + MAX ( 1 ) ) - - ( - 61 )
----
-62

query I rowsort
SELECT 23 * - - 62
----
1426

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT 26 + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-8813
SELECT 26 + + COUNT ( * )
----
27

query I rowsort
SELECT ALL + 23 * - 70 AS col0
----
-1610

query I rowsort
SELECT 42 + - - 99 AS col2
----
141

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8816
SELECT + CASE + 31 WHEN - ( - 9 ) THEN + - 82 * + + CASE + CASE - 60 WHEN - CASE + 6 WHEN - + COALESCE ( - + 62, CAST( NULL AS SIGNED ) * - 88, + + COALESCE ( + 45, - 75 * - 81 * - 94 * CAST( + 32 AS DECIMAL ) ) ) * NULLIF ( - 7, 43 + 93 ) THEN + 7 END THEN NULL WHEN 6 - 65 THEN 48 ELSE NULL END WHEN + 34 + - 18 THEN NULL ELSE - 87 * - 20 END DIV + 39 + - 10 DIV - 28 ELSE 70 END * - ( 21 ) + 68 * 50 col0
----
1930

skipif mysql # not compatible
query I rowsort label-8816
SELECT + CASE + 31 WHEN - ( - 9 ) THEN + - 82 * + + CASE + CASE - 60 WHEN - CASE + 6 WHEN - + COALESCE ( - + 62, CAST ( NULL AS INTEGER ) * - 88, + + COALESCE ( + 45, - 75 * - 81 * - 94 * CAST ( + 32 AS REAL ) ) ) * NULLIF ( - 7, 43 + 93 ) THEN + 7 END THEN NULL WHEN 6 - 65 THEN 48 ELSE NULL END WHEN + 34 + - 18 THEN NULL ELSE - 87 * - 20 END / + 39 + - 10 / - 28 ELSE 70 END * - ( 21 ) + 68 * 50 col0
----
1930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT 38 + NULLIF ( + + CAST( NULL AS SIGNED ), 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT 38 + NULLIF ( + + CAST ( NULL AS INTEGER ), 81 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8818
SELECT CASE + - 67 WHEN - 33 THEN + + 65 DIV - - 41 * 15 ELSE - CASE - 63 WHEN - COALESCE ( - + 63, - + 44 + + 76 + + 51 + - 15 + - - ( - 12 ) + - 65 ) THEN - 7 * + COUNT( * ) ELSE - + 24 END END + SUM( - - NULLIF ( 79, 5 ) ) + - 42 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8818
SELECT CASE + - 67 WHEN - 33 THEN + + 65 / - - 41 * 15 ELSE - CASE - 63 WHEN - COALESCE ( - + 63, - + 44 + + 76 + + 51 + - 15 + - - ( - 12 ) + - 65 ) THEN - 7 * + COUNT ( * ) ELSE - + 24 END END + SUM ( - - NULLIF ( 79, 5 ) ) + - 42 AS col0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8819
SELECT SUM( DISTINCT + + 8 ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT SUM ( DISTINCT + + 8 ) / - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT ( - - 7 ) * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-8820
SELECT ( - - 7 ) * + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8821
SELECT ALL - MIN( + + 17 ) + + 86 - + - SUM( ALL - 2 ) * - + 43 AS col0, COUNT( + ( 73 ) ) + 74 + 76 AS col0
----
155
151

skipif mysql # not compatible
query II rowsort label-8821
SELECT ALL - MIN ( + + 17 ) + + 86 - + - SUM ( ALL - 2 ) * - + 43 AS col0, COUNT ( + ( 73 ) ) + 74 + 76 AS col0
----
155
151

query I rowsort
SELECT DISTINCT 3 * - 44 col2
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT ALL + 12 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL + 12 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 77 + - 75 col0
----
-152

query I rowsort
SELECT DISTINCT - + 35 + + 66 AS col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8826
SELECT ALL - + 72 DIV + ( + COUNT( * ) ) - - 93
----
21

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - + 72 / + ( + COUNT ( * ) ) - - 93
----
21

query I rowsort
SELECT - + 69 col1
----
-69

query II rowsort
SELECT ALL 43, 84 * + 89 AS col0
----
43
7476

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL COUNT( * ) * + - 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL COUNT ( * ) * + - 49 AS col1
----
-49

query I rowsort
SELECT + 4 * + - 78
----
-312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT - CAST( NULL AS SIGNED ) + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT - CAST ( NULL AS INTEGER ) + + 48
----
NULL

query I rowsort
SELECT ALL 87 * + 56 AS col0
----
4872

query I rowsort
SELECT - 57 + + 35 * - - 87 AS col2
----
2988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8834
SELECT + - 66 - ( - - ( + SUM( 11 ) ) ) * - COUNT( * ) * 68 + - + CAST( + + 62 AS SIGNED ) AS col0
----
620

skipif mysql # not compatible
query I rowsort label-8834
SELECT + - 66 - ( - - ( + SUM ( 11 ) ) ) * - COUNT ( * ) * 68 + - + CAST ( + + 62 AS INTEGER ) AS col0
----
620

query I rowsort
SELECT + + 91 + + + 94 * - + COALESCE ( - + 82, + 5 ) AS col2
----
7799

query I rowsort
SELECT ALL - 86 + - + 39
----
-125

query II rowsort
SELECT DISTINCT 44 AS col1, ( + ( 31 ) ) + + 64 * + CASE - 73 WHEN 72 THEN + 96 END + - - 84 AS col0
----
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT DISTINCT + + COUNT( * ) + + ( - - COALESCE ( + 38, - 29 * 6 ) ) - - 41 * + 4 + - - COUNT( ALL - - ( + 48 ) ) + + 17 * + - 0 * ( - 6 ) * 53 AS col2
----
204

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT + + COUNT ( * ) + + ( - - COALESCE ( + 38, - 29 * 6 ) ) - - 41 * + 4 + - - COUNT ( ALL - - ( + 48 ) ) + + 17 * + - 0 * ( - 6 ) * 53 AS col2
----
204

query II rowsort
SELECT DISTINCT - 43, - 16 AS col2
----
-43
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT + COUNT( * ) + - 8 * 47 - 37 AS col1
----
-412

skipif mysql # not compatible
query I rowsort label-8840
SELECT + COUNT ( * ) + - 8 * 47 - 37 AS col1
----
-412

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL + - MIN( ALL 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL + - MIN ( ALL 45 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8842
SELECT DISTINCT CAST( NULL AS SIGNED ) * 9 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 9 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT CASE 23 WHEN AVG ( - 45 ) * + - ( + COUNT( * ) ) - + 83 / + + 68 * + + 47 + + 50 + + 65 THEN NULL ELSE - + 24 END
----
-24

skipif mysql # not compatible
query I rowsort label-8843
SELECT CASE 23 WHEN AVG ( - 45 ) * + - ( + COUNT ( * ) ) - + 83 / + + 68 * + + 47 + + 50 + + 65 THEN NULL ELSE - + 24 END
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8844
SELECT SUM( ALL + 93 ) DIV + - COALESCE ( + - 86, 98 + - 90, CASE - - CAST( + + 1 AS SIGNED ) WHEN - 94 * + COUNT( * ) + COUNT( * ) THEN + 49 - - - 10 * 5 * - 70 WHEN 97 - + COUNT( * ) + + 42 * + 81 + + 37 THEN - 23 WHEN + AVG ( 3 ) * + 16 THEN 79 * ( ( + 31 ) ) ELSE NULL END ) + 81 * + 64 AS col1
----
5185

skipif mysql # not compatible
query I rowsort label-8844
SELECT SUM ( ALL + 93 ) / + - COALESCE ( + - 86, 98 + - 90, CASE - - CAST ( + + 1 AS INTEGER ) WHEN - 94 * + COUNT ( * ) + COUNT ( * ) THEN + 49 - - - 10 * 5 * - 70 WHEN 97 - + COUNT ( * ) + + 42 * + 81 + + 37 THEN - 23 WHEN + AVG ( 3 ) * + 16 THEN 79 * ( ( + 31 ) ) ELSE NULL END ) + 81 * + 64 AS col1
----
5185

query I rowsort
SELECT + 81 * + - 19 AS col2
----
-1539

onlyif mysql # DIV for integer division: 
query I rowsort label-8846
SELECT DISTINCT 5 * 40 DIV + 71 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT 5 * 40 / + 71 AS col0
----
2

query I rowsort
SELECT ALL 40 * 28
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT COALESCE ( MAX( + 46 ), - 27 + 18 + + 6 * - - 37 )
----
46

skipif mysql # not compatible
query I rowsort label-8848
SELECT COALESCE ( MAX ( + 46 ), - 27 + 18 + + 6 * - - 37 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8849
SELECT ALL + NULLIF ( - + CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT ALL + NULLIF ( - + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT MAX( ( - + 5 ) ) * + 81 - - 80
----
-325

skipif mysql # not compatible
query I rowsort label-8850
SELECT MAX ( ( - + 5 ) ) * + 81 - - 80
----
-325

onlyif mysql # aggregate syntax: 
query II rowsort label-8851
SELECT NULLIF ( COUNT( * ), + 8 + - - 96 ), + ( - 18 ) AS col1
----
1
-18

skipif mysql # not compatible
query II rowsort label-8851
SELECT NULLIF ( COUNT ( * ), + 8 + - - 96 ), + ( - 18 ) AS col1
----
1
-18

query I rowsort
SELECT ALL 32 * - 60 + - 94
----
-2014

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8853
SELECT - ( - 73 ) * 11 * - CAST( NULL AS SIGNED ) + + - ( + CAST( + 89 AS DECIMAL ) ) - ( + 15 ) - + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT - ( - 73 ) * 11 * - CAST ( NULL AS INTEGER ) + + - ( + CAST ( + 89 AS REAL ) ) - ( + 15 ) - + 15
----
NULL

query I rowsort
SELECT DISTINCT + 2 * 65 * - 36 col1
----
-4680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) - - 50 / + 69 * + - 19 * + MAX( + 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) - - 50 / + 69 * + - 19 * + MAX ( + 58 ) AS col0
----
NULL

query II rowsort
SELECT ALL - 81 + + ( + + 59 ) + - 97 col2, 9
----
-119
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT ALL + 23 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL + 23 + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - ( - 28 ) AS col0
----
28

query I rowsort
SELECT + + 20 + - 16 col2
----
4

query I rowsort
SELECT ALL ( NULLIF ( 22, - - 7 ) ) AS col0
----
22

query I rowsort
SELECT ALL + 40 + - 80 AS col1
----
-40

query I rowsort
SELECT - CASE + 93 WHEN - 79 THEN - 33 + 78 + - 92 END / + ( - - 62 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT - COUNT( ALL + 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-8863
SELECT - COUNT ( ALL + 36 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8864
SELECT ALL + 74 - - ( + ( + - CAST( - - 30 AS SIGNED ) ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL + 74 - - ( + ( + - CAST ( - - 30 AS INTEGER ) ) ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT + NULLIF ( - - 45, 62 / 52 + 77 + - 77 - - + COUNT( * ) ) * - + 87 AS col1
----
-3915

skipif mysql # not compatible
query I rowsort label-8865
SELECT + NULLIF ( - - 45, 62 / 52 + 77 + - 77 - - + COUNT ( * ) ) * - + 87 AS col1
----
-3915

query I rowsort
SELECT ALL - - 52 * - 81
----
-4212

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8867
SELECT + - 94 DIV 51 * 79 * - - 61 col0, - COALESCE ( - - 25, SUM( + 11 ) + + + 45 ) AS col0
----
-4819
-25

skipif mysql # not compatible
query II rowsort label-8867
SELECT + - 94 / 51 * 79 * - - 61 col0, - COALESCE ( - - 25, SUM ( + 11 ) + + + 45 ) AS col0
----
-4819
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8868
SELECT CAST( - 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-8868
SELECT CAST ( - 34 AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8869
SELECT 59 DIV - 87 * 63 + - 21 - + ( + COUNT( * ) ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-8869
SELECT 59 / - 87 * 63 + - 21 - + ( + COUNT ( * ) ) AS col1
----
-22

query I rowsort
SELECT + NULLIF ( - 17, - 62 ) col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL - CASE 54 WHEN - + 89 + - 9 THEN 60 / - NULLIF ( - - 23, 77 * + + 20 ) + + 67 * + COUNT( * ) WHEN + 13 THEN NULL WHEN + - ( 26 ) + - - 77 THEN 42 * 69 / MAX( DISTINCT 71 ) ELSE NULL END * - 67 * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - CASE 54 WHEN - + 89 + - 9 THEN 60 / - NULLIF ( - - 23, 77 * + + 20 ) + + 67 * + COUNT ( * ) WHEN + 13 THEN NULL WHEN + - ( 26 ) + - - 77 THEN 42 * 69 / MAX ( DISTINCT 71 ) ELSE NULL END * - 67 * - 41
----
NULL

query I rowsort
SELECT + 34 - + 5
----
29

query I rowsort
SELECT + 28 * + 59 * + ( + - 30 ) * + - NULLIF ( - 87, 34 ) AS col0
----
-4311720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8874
SELECT ALL + COUNT( * ) DIV - 28 + - 47 + + 33 * 3 * NULLIF ( + - 10, + 88 ) AS col2
----
-1037

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL + COUNT ( * ) / - 28 + - 47 + + 33 * 3 * NULLIF ( + - 10, + 88 ) AS col2
----
-1037

query I rowsort
SELECT + 98 + - 11 AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT + CAST( + 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-8876
SELECT + CAST ( + 50 AS INTEGER )
----
50

query I rowsort
SELECT + 80 - - 64
----
144

query I rowsort
SELECT ALL 86 * + - 56 AS col0
----
-4816

onlyif mysql # DIV for integer division: 
query I rowsort label-8879
SELECT + 92 DIV - + 86 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8879
SELECT + 92 / - + 86 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT + CASE + 74 WHEN - + 98 * - 79 * - 49 THEN + CAST( - - ( 77 ) AS SIGNED ) ELSE NULL END * + 79 + - 44 + + 96 + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT + CASE + 74 WHEN - + 98 * - 79 * - 49 THEN + CAST ( - - ( 77 ) AS INTEGER ) ELSE NULL END * + 79 + - 44 + + 96 + - 25
----
NULL

query I rowsort
SELECT + ( + ( - ( + + 46 ) ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL 38 + 35 + - + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL 38 + 35 + - + COUNT ( * )
----
72

query I rowsort
SELECT ALL 50 * - + 87 AS col0
----
-4350

query I rowsort
SELECT ALL + 98 + 22
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8885
SELECT ALL - NULLIF ( + ( ( - 21 ) ), + AVG ( DISTINCT 20 ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / + COUNT( * ) + 47 ), - 60 * + 88 AS col2
----
21
-5280

skipif mysql # not compatible
query II rowsort label-8885
SELECT ALL - NULLIF ( + ( ( - 21 ) ), + AVG ( DISTINCT 20 ) * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / + COUNT ( * ) + 47 ), - 60 * + 88 AS col2
----
21
-5280

query I rowsort
SELECT + ( + - 67 ) AS col1
----
-67

query I rowsort
SELECT + + 32 * 38 + - 13
----
1203

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL - CASE + - 16 WHEN - 28 THEN NULL WHEN MIN( DISTINCT + 59 ) THEN NULL WHEN 60 THEN - + 27 WHEN + 51 THEN NULL ELSE NULL END + + 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - CASE + - 16 WHEN - 28 THEN NULL WHEN MIN ( DISTINCT + 59 ) THEN NULL WHEN 60 THEN - + 27 WHEN + 51 THEN NULL ELSE NULL END + + 66 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8889
SELECT - - 83 AS col1, + 88 * - MAX( ALL + 38 ) AS col0
----
83
-3344

skipif mysql # not compatible
query II rowsort label-8889
SELECT - - 83 AS col1, + 88 * - MAX ( ALL + 38 ) AS col0
----
83
-3344

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT - COUNT( * ) + 99 col1
----
98

skipif mysql # not compatible
query I rowsort label-8890
SELECT - COUNT ( * ) + 99 col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT + ( + 50 ) DIV + 60 col0
----
0

skipif mysql # not compatible
query I rowsort label-8891
SELECT + ( + 50 ) / + 60 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8892
SELECT ALL + + COUNT( * ) DIV + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL + + COUNT ( * ) / + - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT NULLIF ( - 51, + 96 * 26 ) AS col2
----
-51

query I rowsort
SELECT + 13 + - 58 AS col2
----
-45

query I rowsort
SELECT ALL + + 29 - + - 50 * - 24 AS col1
----
-1171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8896
SELECT + 75 + 78 DIV - - 86, + COALESCE ( ( CAST( ( COALESCE ( + 1, + 56 + - ( + ( + 29 ) ) * 80 * - - 63 DIV - 24 * + + 11 * + + ( 98 ) ) ) AS SIGNED ) ), 70 * - 57 DIV - + MIN( ALL - 97 ) DIV + COALESCE ( - 4, + 91 ) + 59, + COUNT( * ) ) AS col1
----
75
1

skipif mysql # not compatible
query II rowsort label-8896
SELECT + 75 + 78 / - - 86, + COALESCE ( ( CAST ( ( COALESCE ( + 1, + 56 + - ( + ( + 29 ) ) * 80 * - - 63 / - 24 * + + 11 * + + ( 98 ) ) ) AS INTEGER ) ), 70 * - 57 / - + MIN ( ALL - 97 ) / + COALESCE ( - 4, + 91 ) + 59, + COUNT ( * ) ) AS col1
----
75
1

query I rowsort
SELECT - 80 * 0 AS col0
----
0

query I rowsort
SELECT ALL - - 0 * - - 41 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT + 42 + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-8899
SELECT + 42 + COUNT ( * )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8900
SELECT + ( + - COUNT( * ) ) * - 46 * + + NULLIF ( - 39, + 2 * - - 36 - + + 97 + - 83 * - COUNT( * ) * - COUNT( * ) ) - ( - CAST( - 6 AS SIGNED ) )
----
-1800

skipif mysql # not compatible
query I rowsort label-8900
SELECT + ( + - COUNT ( * ) ) * - 46 * + + NULLIF ( - 39, + 2 * - - 36 - + + 97 + - 83 * - COUNT ( * ) * - COUNT ( * ) ) - ( - CAST ( - 6 AS INTEGER ) )
----
-1800

query I rowsort
SELECT - 55 + - 84
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT - 25 + - - MIN( ALL + 43 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-8902
SELECT - 25 + - - MIN ( ALL + 43 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT - COUNT( * ) + - 52 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-8903
SELECT - COUNT ( * ) + - 52 AS col2
----
-53

query I rowsort
SELECT - 82 * + 87 AS col0
----
-7134

onlyif mysql # aggregate syntax: 
query II rowsort label-8905
SELECT 33 + - NULLIF ( - - 47, + SUM( - 47 ) ) - + 68 col2, 78 * + COUNT( * )
----
-82
78

skipif mysql # not compatible
query II rowsort label-8905
SELECT 33 + - NULLIF ( - - 47, + SUM ( - 47 ) ) - + 68 col2, 78 * + COUNT ( * )
----
-82
78

query II rowsort
SELECT ALL 96 AS col0, 46 AS col2
----
96
46

onlyif mysql # aggregate syntax: 
query II rowsort label-8907
SELECT COUNT( * ) + + 71, NULLIF ( + 25, - NULLIF ( - 12, - COALESCE ( + - 26, - ( + 31 ) * MIN( DISTINCT - - 89 ) / 70, + 33 + + 64 ) * - + 13 ) ) AS col1
----
72
25

skipif mysql # not compatible
query II rowsort label-8907
SELECT COUNT ( * ) + + 71, NULLIF ( + 25, - NULLIF ( - 12, - COALESCE ( + - 26, - ( + 31 ) * MIN ( DISTINCT - - 89 ) / 70, + 33 + + 64 ) * - + 13 ) ) AS col1
----
72
25

query I rowsort
SELECT ALL 5 * + ( - NULLIF ( + 51, - 0 ) ) AS col1
----
-255

query I rowsort
SELECT 52 + - 56 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8910
SELECT ALL + 92 DIV + + ( + - 13 ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL + 92 / + + ( + - 13 ) col1
----
-7

query II rowsort
SELECT + 9, + 14 AS col2
----
9
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT + CAST( NULL AS SIGNED ) * + ( 22 ) + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT + CAST ( NULL AS INTEGER ) * + ( 22 ) + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL - ( MIN( ALL 79 ) )
----
-79

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL - ( MIN ( ALL 79 ) )
----
-79

query I rowsort
SELECT ALL 45 + ( 55 )
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT NULLIF ( - 72, + + 92 ) DIV + + 42 + - 9 * - + 4 * 70 - + 91 + + 6 + - 99 * + + COALESCE ( 39, + 39, - + 60, + - COUNT( * ) ) * + 6 + 44 AS col0
----
-20688

skipif mysql # not compatible
query I rowsort label-8915
SELECT NULLIF ( - 72, + + 92 ) / + + 42 + - 9 * - + 4 * 70 - + 91 + + 6 + - 99 * + + COALESCE ( 39, + 39, - + 60, + - COUNT ( * ) ) * + 6 + 44 AS col0
----
-20688

query II rowsort
SELECT 40, 58 AS col1
----
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8917
SELECT + 73 AS col0, - MIN( - NULLIF ( - 20, + 13 ) ) * + 83 + - COALESCE ( CAST( NULL AS SIGNED ), - 87 ) - - MIN( 0 ) - 4 - + + 30 DIV 35
----
73
-1577

skipif mysql # not compatible
query II rowsort label-8917
SELECT + 73 AS col0, - MIN ( - NULLIF ( - 20, + 13 ) ) * + 83 + - COALESCE ( CAST ( NULL AS INTEGER ), - 87 ) - - MIN ( 0 ) - 4 - + + 30 / 35
----
73
-1577

query I rowsort
SELECT ALL 39 + - 72 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT + 76 AS col1, NULLIF ( + 37, - + NULLIF ( - + ( + COUNT( * ) ), - - NULLIF ( + MAX( DISTINCT 13 ), NULLIF ( - + 95, COUNT( + ( + - 61 ) ) ) * - 40 ) ) )
----
76
37

skipif mysql # not compatible
query II rowsort label-8919
SELECT + 76 AS col1, NULLIF ( + 37, - + NULLIF ( - + ( + COUNT ( * ) ), - - NULLIF ( + MAX ( DISTINCT 13 ), NULLIF ( - + 95, COUNT ( + ( + - 61 ) ) ) * - 40 ) ) )
----
76
37

query I rowsort
SELECT ALL - 2 * - 12 * - COALESCE ( + - 47, - + 66 ) AS col2
----
1128

query I rowsort
SELECT 77 * 93
----
7161

query II rowsort
SELECT ALL - 48, - 47 * CASE 76 WHEN - 12 THEN NULL WHEN - - 91 THEN + 4 ELSE NULL END AS col1
----
-48
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8923
SELECT COUNT( * ) * + 23 + ( - 81 ) + 56 / 45 * + + 97 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT COUNT ( * ) * + 23 + ( - 81 ) + 56 / 45 * + + 97 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 84 + - 78 AS col1
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8925
SELECT 70 AS col1, - CAST( NULL AS SIGNED )
----
70
NULL

skipif mysql # not compatible
query II rowsort label-8925
SELECT 70 AS col1, - CAST ( NULL AS INTEGER )
----
70
NULL

query II rowsort
SELECT 73, 30 * + - 45 AS col2
----
73
-1350

query I rowsort
SELECT ( + 12 ) * 77 - 2
----
922

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT + 14 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT + 14 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - 98 col2
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8930
SELECT COUNT( * ) + + + 51 + - COUNT( * ) + 75 DIV 11 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8930
SELECT COUNT ( * ) + + + 51 + - COUNT ( * ) + 75 / 11 AS col0
----
57

query I rowsort
SELECT DISTINCT - + ( - 18 )
----
18

query I rowsort
SELECT - 37 * 51 + - + ( - ( + - 86 ) ) + - 69 - + 34
----
-2076

query I rowsort
SELECT ALL - 98 * + 94 * 22 + 61 * - - 15
----
-201749

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT ALL 81 - + + COUNT( * ) + 24 * + + 73
----
1832

skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL 81 - + + COUNT ( * ) + 24 * + + 73
----
1832

query II rowsort
SELECT - 56 AS col2, 75 AS col1
----
-56
75

query I rowsort
SELECT ALL ( - 31 ) col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8937
SELECT ALL CAST( NULL AS SIGNED ), ( + 56 ) AS col2
----
NULL
56

skipif mysql # not compatible
query II rowsort label-8937
SELECT ALL CAST ( NULL AS INTEGER ), ( + 56 ) AS col2
----
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT SUM( ALL - 76 ) - - + 91
----
15

skipif mysql # not compatible
query I rowsort label-8938
SELECT SUM ( ALL - 76 ) - - + 91
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT ALL + 79 - 57 DIV + 60 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL + 79 - 57 / + 60 AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-8940
SELECT + 79 AS col2, + SUM( + 22 ) * + 41 * + NULLIF ( - + 18, 3 ) - - - 49
----
79
-16285

skipif mysql # not compatible
query II rowsort label-8940
SELECT + 79 AS col2, + SUM ( + 22 ) * + 41 * + NULLIF ( - + 18, 3 ) - - - 49
----
79
-16285

onlyif mysql # aggregate syntax: 
query II rowsort label-8941
SELECT 97 AS col2, - NULLIF ( - 76, - 94 ) - + COUNT( * ) + - - SUM( DISTINCT 33 )
----
97
108

skipif mysql # not compatible
query II rowsort label-8941
SELECT 97 AS col2, - NULLIF ( - 76, - 94 ) - + COUNT ( * ) + - - SUM ( DISTINCT 33 )
----
97
108

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT + 30 DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-8942
SELECT + 30 / - 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT - 39 * + - NULLIF ( - 42, COUNT( * ) * - COALESCE ( - 58, + - 95 + + 9, 36 / - + ( - 95 ) - + 53 ) * 44 ) AS col0
----
-1638

skipif mysql # not compatible
query I rowsort label-8943
SELECT - 39 * + - NULLIF ( - 42, COUNT ( * ) * - COALESCE ( - 58, + - 95 + + 9, 36 / - + ( - 95 ) - + 53 ) * 44 ) AS col0
----
-1638

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8944
SELECT - + 80 AS col1, + 5 * - - CASE - CAST( NULL AS SIGNED ) WHEN + 6 * - 36 THEN NULL WHEN + + 37 THEN 26 ELSE NULL END AS col2
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-8944
SELECT - + 80 AS col1, + 5 * - - CASE - CAST ( NULL AS INTEGER ) WHEN + 6 * - 36 THEN NULL WHEN + + 37 THEN 26 ELSE NULL END AS col2
----
-80
NULL

query I rowsort
SELECT 39 - + 44 + + 42 - + 83
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8946
SELECT DISTINCT + CASE CAST( - 59 AS SIGNED ) WHEN MIN( ALL + 54 ) THEN 63 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT + CASE CAST ( - 59 AS INTEGER ) WHEN MIN ( ALL + 54 ) THEN 63 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT ALL + NULLIF ( MAX( - + 53 ), - ( - 8 ) + + 38 + - 59 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL + NULLIF ( MAX ( - + 53 ), - ( - 8 ) + + 38 + - 59 ) AS col0
----
-53

query II rowsort
SELECT 78 AS col0, - 15 * + - 92 + - - 0 col0
----
78
1380

query II rowsort
SELECT ALL 25, 89 AS col0
----
25
89

query I rowsort
SELECT DISTINCT 54 + + + 94 * - - ( + ( - 87 ) )
----
-8124

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT 45 + + SUM( - 70 )
----
-25

skipif mysql # not compatible
query I rowsort label-8951
SELECT 45 + + SUM ( - 70 )
----
-25

query I rowsort
SELECT DISTINCT - 78 + - 51 AS col1
----
-129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8953
SELECT ALL CASE - COUNT( * ) WHEN CASE + 14 WHEN ( 16 ) + - 44 - 20 / + ( - 5 ) - + 29 * - 81 * - 86 * NULLIF ( + - 52, + ( - - CAST( NULL AS DECIMAL ) ) ) THEN 39 * 27 * + 17 END THEN + 19 - - - CASE - ( - - MIN( - - 41 ) ) WHEN + + 79 + 46 THEN - 94 * - 39 + 65 WHEN + 60 - COUNT( DISTINCT 43 ) THEN NULL ELSE NULL END END * + COUNT( ALL - 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL CASE - COUNT ( * ) WHEN CASE + 14 WHEN ( 16 ) + - 44 - 20 / + ( - 5 ) - + 29 * - 81 * - 86 * NULLIF ( + - 52, + ( - - CAST ( NULL AS REAL ) ) ) THEN 39 * 27 * + 17 END THEN + 19 - - - CASE - ( - - MIN ( - - 41 ) ) WHEN + + 79 + 46 THEN - 94 * - 39 + 65 WHEN + 60 - COUNT ( DISTINCT 43 ) THEN NULL ELSE NULL END END * + COUNT ( ALL - 75 ) AS col1
----
NULL

query I rowsort
SELECT 61 * - - 91
----
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT COALESCE ( + 57, - 14 ) + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-8955
SELECT COALESCE ( + 57, - 14 ) + COUNT ( * )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT - NULLIF ( - + 84, + 34 * 85 - CAST( - 97 AS SIGNED ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8956
SELECT - NULLIF ( - + 84, + 34 * 85 - CAST ( - 97 AS INTEGER ) ) AS col0
----
84

query I rowsort
SELECT ALL - 33 + + - 56
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-8958
SELECT + 33 DIV + - 66 + 17, 79 - + 11 * - + 42 AS col1
----
17
541

skipif mysql # not compatible
query II rowsort label-8958
SELECT + 33 / + - 66 + 17, 79 - + 11 * - + 42 AS col1
----
17
541

query I rowsort
SELECT 87 * + 78
----
6786

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT - 45 - COUNT( * ) * + 5 + COUNT( * ) + + - 33 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8960
SELECT - 45 - COUNT ( * ) * + 5 + COUNT ( * ) + + - 33 AS col1
----
-82

query I rowsort
SELECT DISTINCT 26 * - 78 + + ( + 41 ) + - - 81 * - 80
----
-8467

query II rowsort
SELECT ALL + 25 * 78 AS col2, + 41
----
1950
41

query I rowsort
SELECT ALL 1 * + 81 - + ( - 79 )
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT DISTINCT + 43 DIV + 33
----
1

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT + 43 / + 33
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8965
SELECT - ( - - 43 ) + 23 DIV - - 47 + + + 90
----
47

skipif mysql # not compatible
query I rowsort label-8965
SELECT - ( - - 43 ) + 23 / - - 47 + + + 90
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8966
SELECT ALL + COUNT( * ) * 21, 98 AS col1
----
21
98

skipif mysql # not compatible
query II rowsort label-8966
SELECT ALL + COUNT ( * ) * 21, 98 AS col1
----
21
98

query II rowsort
SELECT ALL - 71 * + 9 AS col0, - 89 AS col1
----
-639
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8968
SELECT + 67 - - + 44 * + CAST( + + 26 AS SIGNED )
----
1211

skipif mysql # not compatible
query I rowsort label-8968
SELECT + 67 - - + 44 * + CAST ( + + 26 AS INTEGER )
----
1211

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT + - MIN( ALL + ( + 7 ) ) * 46 + + + COUNT( * ) + - + 72 + 87 * + 86 AS col2
----
7089

skipif mysql # not compatible
query I rowsort label-8969
SELECT + - MIN ( ALL + ( + 7 ) ) * 46 + + + COUNT ( * ) + - + 72 + 87 * + 86 AS col2
----
7089

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT ALL - - COUNT( * ) * 54 + + + COUNT( * ) * + + 3 - - 52
----
109

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - - COUNT ( * ) * 54 + + + COUNT ( * ) * + + 3 - - 52
----
109

onlyif mysql # DIV for integer division: 
query II rowsort label-8971
SELECT - + 38 DIV 63, 83 * 83 * - 66 AS col2
----
0
-454674

skipif mysql # not compatible
query II rowsort label-8971
SELECT - + 38 / 63, 83 * 83 * - 66 AS col2
----
0
-454674

query I rowsort
SELECT - - 64 * + 23 AS col0
----
1472

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT ALL + - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL + - ( + COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT - 1 * 42 + - + 44 AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8975
SELECT + COUNT( - 18 ) * + MAX( ALL - 20 ) * 1 DIV 90 + + 24 AS col1, 86 * - 39 AS col1
----
24
-3354

skipif mysql # not compatible
query II rowsort label-8975
SELECT + COUNT ( - 18 ) * + MAX ( ALL - 20 ) * 1 / 90 + + 24 AS col1, 86 * - 39 AS col1
----
24
-3354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT - - 12 + - - COALESCE ( + 64, + 36 + + CAST( - AVG ( DISTINCT + 36 ) AS SIGNED ) * 44 )
----
76

skipif mysql # not compatible
query I rowsort label-8976
SELECT - - 12 + - - COALESCE ( + 64, + 36 + + CAST ( - AVG ( DISTINCT + 36 ) AS INTEGER ) * 44 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT + MIN( ALL - 90 ) + + 38 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8977
SELECT + MIN ( ALL - 90 ) + + 38 AS col2
----
-52

query I rowsort
SELECT + + 31 * 85
----
2635

query I rowsort
SELECT DISTINCT + 26 * - 0 + - + 36
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8980
SELECT DISTINCT + 15 DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT + 15 / 40
----
0

query I rowsort
SELECT DISTINCT 43 + - 42
----
1

query I rowsort
SELECT ALL 23 + - 77 + + 13 + 71 * 65 col1
----
4574

query II rowsort
SELECT DISTINCT 44 AS col2, + 42
----
44
42

query I rowsort
SELECT + 75 * + + 67 AS col2
----
5025

query I rowsort
SELECT - 40 * - + 93
----
3720

query I rowsort
SELECT DISTINCT 4 + + 75 AS col2
----
79

query I rowsort
SELECT ALL 63 + + 26 AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8988
SELECT DISTINCT 75 DIV - SUM( - 39 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT 75 / - SUM ( - 39 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT DISTINCT + 57 * + COUNT( + 77 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT + 57 * + COUNT ( + 77 ) AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8990
SELECT ALL NULLIF ( + 67, - NULLIF ( - - 10, - - 33 ) * - 43 + 8 + - 47 ) AS col0, 71 + + COALESCE ( ( 32 ), + 65 * - + 35 + - CAST( 23 AS SIGNED ) * - 26 ) col1
----
67
103

skipif mysql # not compatible
query II rowsort label-8990
SELECT ALL NULLIF ( + 67, - NULLIF ( - - 10, - - 33 ) * - 43 + 8 + - 47 ) AS col0, 71 + + COALESCE ( ( 32 ), + 65 * - + 35 + - CAST ( 23 AS INTEGER ) * - 26 ) col1
----
67
103

query I rowsort
SELECT + 21 + + - 62 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT ALL + NULLIF ( - 76, + + 71 ) * - COALESCE ( - - 37, - 17 + + COUNT( * ) ) * + + 44 + - 26 + - 99 * 35 AS col1
----
120237

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + NULLIF ( - 76, + + 71 ) * - COALESCE ( - - 37, - 17 + + COUNT ( * ) ) * + + 44 + - 26 + - 99 * 35 AS col1
----
120237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8993
SELECT - ( CAST( NULL AS SIGNED ) ) + - AVG ( + 30 ), 11 col2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-8993
SELECT - ( CAST ( NULL AS INTEGER ) ) + - AVG ( + 30 ), 11 col2
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + COUNT( * ) * + MIN( + 33 ) * - 78
----
-2574

skipif mysql # not compatible
query I rowsort label-8994
SELECT + COUNT ( * ) * + MIN ( + 33 ) * - 78
----
-2574

query I rowsort
SELECT + ( - + 32 ) col0
----
-32

query II rowsort
SELECT + 81, + 89 AS col0
----
81
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8997
SELECT ALL + COALESCE ( - - COUNT( * ), - 59 ), - 36 + - 14 AS col0
----
1
-50

skipif mysql # not compatible
query II rowsort label-8997
SELECT ALL + COALESCE ( - - COUNT ( * ), - 59 ), - 36 + - 14 AS col0
----
1
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8998
SELECT CAST( COALESCE ( 82, + + 89, 27 * + COUNT( + 93 ) + 63 ) AS SIGNED ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8998
SELECT CAST ( COALESCE ( 82, + + 89, 27 * + COUNT ( + 93 ) + 63 ) AS INTEGER ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8999
SELECT ( + NULLIF ( 47, + COUNT( ALL - 56 ) - + CASE - 17 WHEN 49 / + 74 THEN NULL WHEN - CAST( 16 AS SIGNED ) THEN + - 7 + + - 63 ELSE NULLIF ( + 35, + + 17 ) END ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-8999
SELECT ( + NULLIF ( 47, + COUNT ( ALL - 56 ) - + CASE - 17 WHEN 49 / + 74 THEN NULL WHEN - CAST ( 16 AS INTEGER ) THEN + - 7 + + - 63 ELSE NULLIF ( + 35, + + 17 ) END ) ) AS col2
----
47

query I rowsort
SELECT ( - - 44 ) col1
----
44

query I rowsort
SELECT - - 9 * + 27 AS col2
----
243

query II rowsort
SELECT DISTINCT + 89 AS col1, - 73
----
89
-73

query I rowsort
SELECT ALL - 21 * - 50 + + - 11
----
1039

query I rowsort
SELECT CASE - 14 WHEN 81 THEN NULL ELSE + 13 * + + 94 END AS col2
----
1222

query I rowsort
SELECT + + ( - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT - + 83 + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-9006
SELECT - + 83 + COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT SUM( ALL + - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-9007
SELECT SUM ( ALL + - 68 )
----
-68

query II rowsort
SELECT DISTINCT - 46 * 67 + 35 AS col0, 50 AS col0
----
-3047
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9009
SELECT ALL + 18 * + - 7 + + + COUNT( * ) * - + CAST( NULL AS SIGNED ), ( - COALESCE ( 11, + NULLIF ( 55, - - 4 + + + 20 + + 86 ) ) ) col1
----
NULL
-11

skipif mysql # not compatible
query II rowsort label-9009
SELECT ALL + 18 * + - 7 + + + COUNT ( * ) * - + CAST ( NULL AS INTEGER ), ( - COALESCE ( 11, + NULLIF ( 55, - - 4 + + + 20 + + 86 ) ) ) col1
----
NULL
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9010
SELECT ALL 87 AS col1, + COUNT( * ) * + - 31 AS col1
----
87
-31

skipif mysql # not compatible
query II rowsort label-9010
SELECT ALL 87 AS col1, + COUNT ( * ) * + - 31 AS col1
----
87
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - 71 * COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-9011
SELECT - 71 * COUNT ( * ) AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9012
SELECT DISTINCT CAST( 15 AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT CAST ( 15 AS INTEGER ) AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9013
SELECT ALL + - 43 * 74 + - CAST( - + 86 AS SIGNED ) DIV 81
----
-3181

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + - 43 * 74 + - CAST ( - + 86 AS INTEGER ) / 81
----
-3181

onlyif mysql # aggregate syntax: 
query II rowsort label-9014
SELECT - MIN( + 55 ) + + - 7 * + - COUNT( * ) - - - 15 - 54 * + 91 AS col2, + ( + 26 ) - - + COUNT( * ) AS col1
----
-4977
27

skipif mysql # not compatible
query II rowsort label-9014
SELECT - MIN ( + 55 ) + + - 7 * + - COUNT ( * ) - - - 15 - 54 * + 91 AS col2, + ( + 26 ) - - + COUNT ( * ) AS col1
----
-4977
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT DISTINCT 87 + + COUNT( * ) + + 44 * + 37
----
1716

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT 87 + + COUNT ( * ) + + 44 * + 37
----
1716

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9016
SELECT ALL 22 * COUNT( * ), + 68 DIV - ( - - COALESCE ( - + COUNT( + 48 ), + 33 ) ) AS col1
----
22
68

skipif mysql # not compatible
query II rowsort label-9016
SELECT ALL 22 * COUNT ( * ), + 68 / - ( - - COALESCE ( - + COUNT ( + 48 ), + 33 ) ) AS col1
----
22
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT DISTINCT + 15 - + 12 * - 84 + COUNT( * ) * 43 AS col1
----
1066

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT + 15 - + 12 * - 84 + COUNT ( * ) * 43 AS col1
----
1066

query I rowsort
SELECT DISTINCT 75 - - 84 AS col0
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-9019
SELECT 57 + + COUNT( * ) AS col0, 2 * 3 * - - 60 AS col1
----
58
360

skipif mysql # not compatible
query II rowsort label-9019
SELECT 57 + + COUNT ( * ) AS col0, 2 * 3 * - - 60 AS col1
----
58
360

onlyif mysql # aggregate syntax: 
query II rowsort label-9020
SELECT COUNT( - - 49 ) + + 73 * - 88 AS col2, 16 * + 4
----
-6423
64

skipif mysql # not compatible
query II rowsort label-9020
SELECT COUNT ( - - 49 ) + + 73 * - 88 AS col2, 16 * + 4
----
-6423
64

query I rowsort
SELECT 5 * - + 12 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT 76 + + + ( + - 54 ) + + + 27 * ( + + 51 ) * - 92 * - ( - - CASE - 1 WHEN + 80 * - - 32 THEN + 94 WHEN - - 57 * - - COUNT( * ) + 42 THEN + 78 ELSE NULL END ) + - + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT 76 + + + ( + - 54 ) + + + 27 * ( + + 51 ) * - 92 * - ( - - CASE - 1 WHEN + 80 * - - 32 THEN + 94 WHEN - - 57 * - - COUNT ( * ) + 42 THEN + 78 ELSE NULL END ) + - + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL 74 / - CASE WHEN COUNT( * ) IS NULL THEN + 56 + + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL 74 / - CASE WHEN COUNT ( * ) IS NULL THEN + 56 + + 21 END
----
NULL

query II rowsort
SELECT ( + NULLIF ( 93, 69 ) ) * + - 95 AS col1, 80 + - 88 AS col2
----
-8835
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9025
SELECT ALL 20 DIV 20 * + + 96 * + + 5 * + 41
----
19680

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL 20 / 20 * + + 96 * + + 5 * + 41
----
19680

query I rowsort
SELECT - 75 * + 41 + - 92 + 65 + - 93 AS col0
----
-3195

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL - COUNT( - 77 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL - COUNT ( - 77 ) AS col1
----
-1

query I rowsort
SELECT ALL + 92 + + ( - + 54 )
----
38

query I rowsort
SELECT + - 52 col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT - + 64 * + CASE + 98 WHEN - 66 * + 0 * + 72 THEN - + CAST( NULL AS SIGNED ) ELSE CAST( NULL AS SIGNED ) END + - + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT - + 64 * + CASE + 98 WHEN - 66 * + 0 * + 72 THEN - + CAST ( NULL AS INTEGER ) ELSE CAST ( NULL AS INTEGER ) END + - + 37 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9031
SELECT + ( - 27 ) - + MAX( + - NULLIF ( 58, + CAST( NULL AS SIGNED ) ) ) + 16 + ( - COALESCE ( 88, 7 ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9031
SELECT + ( - 27 ) - + MAX ( + - NULLIF ( 58, + CAST ( NULL AS INTEGER ) ) ) + 16 + ( - COALESCE ( 88, 7 ) ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT - 7 / - - 84 * - 95 * + COUNT( * ) + 57 + CASE - + 42 WHEN - 19 THEN - 10 + - 56 ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT - 7 / - - 84 * - 95 * + COUNT ( * ) + 57 + CASE - + 42 WHEN - 19 THEN - 10 + - 56 ELSE NULL END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT DISTINCT + 98 + + NULLIF ( - + SUM( DISTINCT + 27 ), - 84 ) + - MAX( 94 ) * - 85 AS col0
----
8061

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT + 98 + + NULLIF ( - + SUM ( DISTINCT + 27 ), - 84 ) + - MAX ( 94 ) * - 85 AS col0
----
8061

query I rowsort
SELECT 24 + 55 * - + 34 + - 11 AS col1
----
-1857

query I rowsort
SELECT ( 94 ) AS col0
----
94

query I rowsort
SELECT + - 1 col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9037
SELECT COUNT( * ) * - ( + AVG ( + 10 ) ) * CAST( NULL AS DECIMAL ) * - 75 * + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT COUNT ( * ) * - ( + AVG ( + 10 ) ) * CAST ( NULL AS REAL ) * - 75 * + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT 34 + + 71 + COUNT( * ) col2
----
106

skipif mysql # not compatible
query I rowsort label-9038
SELECT 34 + + 71 + COUNT ( * ) col2
----
106

query I rowsort
SELECT ALL + 74 * 2
----
148

query I rowsort
SELECT 61 * 55 AS col2
----
3355

query I rowsort
SELECT DISTINCT - 84 * NULLIF ( - 96, + 16 * + 42 )
----
8064

query I rowsort
SELECT DISTINCT + 29 - 85 col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9043
SELECT 77 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT 77 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 60 * - 40
----
-2400

query II rowsort
SELECT - 14 col2, - 99
----
-14
-99

query II rowsort
SELECT - 16 AS col0, 76
----
-16
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL 33 * COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL 33 * COUNT ( * ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9048
SELECT 86 * 29 DIV - 78
----
-31

skipif mysql # not compatible
query I rowsort label-9048
SELECT 86 * 29 / - 78
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT DISTINCT 67 * + - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT 67 * + - COUNT ( * ) AS col2
----
-67

query I rowsort
SELECT DISTINCT - 22 * - 6 AS col0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT ALL MAX( 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL MAX ( 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT MIN( ALL + + 82 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT MIN ( ALL + + 82 ) AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9053
SELECT 90 DIV 90
----
1

skipif mysql # not compatible
query I rowsort label-9053
SELECT 90 / 90
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9054
SELECT COUNT( * ) DIV 22 + + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-9054
SELECT COUNT ( * ) / 22 + + - 9
----
-9

query I rowsort
SELECT NULLIF ( + 89, + + 31 ) AS col2
----
89

query I rowsort
SELECT 70 / + + CASE + + 25 WHEN - + 97 THEN - 10 - - 90 END * + 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9057
SELECT ALL - + 51 * + + COUNT( * ) + - 55 AS col0, 51 col2
----
-106
51

skipif mysql # not compatible
query II rowsort label-9057
SELECT ALL - + 51 * + + COUNT ( * ) + - 55 AS col0, 51 col2
----
-106
51

query I rowsort
SELECT DISTINCT + 17 * 73 * + 79 + + 97 AS col2
----
98136

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT ALL - COUNT( ALL - + 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL - COUNT ( ALL - + 49 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL 76 * - ( - MAX( - 96 ) ) + - ( + 19 )
----
-7315

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL 76 * - ( - MAX ( - 96 ) ) + - ( + 19 )
----
-7315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT CAST( + 90 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-9061
SELECT CAST ( + 90 AS INTEGER )
----
90

query I rowsort
SELECT + ( - ( - 64 ) ) AS col1
----
64

query I rowsort
SELECT DISTINCT - 88 * + - 64 + + - COALESCE ( 80, + + 62 + - 65 )
----
5552

query I rowsort
SELECT + - COALESCE ( - 70, 29 - NULLIF ( + 8, + 78 ) + 23 + + 90 * - - 65 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT ALL + 45 + - 42 * + CAST( + NULLIF ( - 23, 16 + - - 23 * - 50 ) AS SIGNED ) * - 94 + - ( - 89 )
----
-90670

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + 45 + - 42 * + CAST ( + NULLIF ( - 23, 16 + - - 23 * - 50 ) AS INTEGER ) * - 94 + - ( - 89 )
----
-90670

query II rowsort
SELECT ALL + 5 AS col1, + 72 AS col1
----
5
72

query II rowsort
SELECT DISTINCT + + 54 AS col0, + ( + 81 )
----
54
81

query I rowsort
SELECT ALL + NULLIF ( + - NULLIF ( + 14, + AVG ( DISTINCT - - 62 ) ), + 8 ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL - COUNT( * ) - ( + - 85 ) + 6 * CASE + 91 WHEN - 57 THEN + + COUNT( * ) * + + SUM( - 62 ) WHEN + 56 THEN NULL ELSE - COUNT( * ) + + 22 END
----
210

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - COUNT ( * ) - ( + - 85 ) + 6 * CASE + 91 WHEN - 57 THEN + + COUNT ( * ) * + + SUM ( - 62 ) WHEN + 56 THEN NULL ELSE - COUNT ( * ) + + 22 END
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9070
SELECT ( + 92 ) * COALESCE ( + + COUNT( - + CASE - - 70 WHEN - + 58 THEN + + 46 END ), + 22 * - 44 + + 10 ) * + 75 - 58 * - + CASE + + 81 WHEN + 40 + - - 73 + COALESCE ( - - CASE + - 55 WHEN - 84 + + ( 75 ) + - NULLIF ( 43, 38 ) DIV 43 * - 16 THEN + 47 WHEN + 78 THEN + 68 + SUM( ( NULLIF ( - 7, 30 + 71 ) ) ) * 24 END, 50, 23 * SUM( 20 * 32 ) ) - - ( + CAST( 74 AS SIGNED ) + 49 ) DIV - ( NULLIF ( 51, COUNT( * ) ) ) * + 79 * 63 THEN NULL WHEN 25 + 31 THEN + 69 DIV 33 + - 92 ELSE COUNT( DISTINCT 8 ) END + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9070
SELECT ( + 92 ) * COALESCE ( + + COUNT ( - + CASE - - 70 WHEN - + 58 THEN + + 46 END ), + 22 * - 44 + + 10 ) * + 75 - 58 * - + CASE + + 81 WHEN + 40 + - - 73 + COALESCE ( - - CASE + - 55 WHEN - 84 + + ( 75 ) + - NULLIF ( 43, 38 ) / 43 * - 16 THEN + 47 WHEN + 78 THEN + 68 + SUM ( ( NULLIF ( - 7, 30 + 71 ) ) ) * 24 END, 50, 23 * SUM ( 20 * 32 ) ) - - ( + CAST ( 74 AS INTEGER ) + 49 ) / - ( NULLIF ( 51, COUNT ( * ) ) ) * + 79 * 63 THEN NULL WHEN 25 + 31 THEN + 69 / 33 + - 92 ELSE COUNT ( DISTINCT 8 ) END + COUNT ( * ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9071
SELECT ALL COUNT( * ) AS col2, CAST( NULL AS SIGNED ) * + ( - - COUNT( * ) ) + + - 49 + - 32 + - - 50 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9071
SELECT ALL COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) * + ( - - COUNT ( * ) ) + + - 49 + - 32 + - - 50 AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9072
SELECT - CASE 2 WHEN 43 THEN NULL ELSE + ( 71 ) END * + 14, COUNT( 49 ) AS col2
----
-994
1

skipif mysql # not compatible
query II rowsort label-9072
SELECT - CASE 2 WHEN 43 THEN NULL ELSE + ( 71 ) END * + 14, COUNT ( 49 ) AS col2
----
-994
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9073
SELECT 25 AS col1, - COUNT( ALL 71 )
----
25
-1

skipif mysql # not compatible
query II rowsort label-9073
SELECT 25 AS col1, - COUNT ( ALL 71 )
----
25
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT + MIN( ALL 36 ) * 87 - - ( + + ( ( + 51 ) ) ) - - 99 + - SUM( DISTINCT + 86 )
----
3196

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT + MIN ( ALL 36 ) * 87 - - ( + + ( ( + 51 ) ) ) - - 99 + - SUM ( DISTINCT + 86 )
----
3196

query I rowsort
SELECT - ( - 98 ) AS col1
----
98

query I rowsort
SELECT ALL 44 * + 75
----
3300

query I rowsort
SELECT - 15 * - 3 * ( - ( - 51 ) )
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT ALL MIN( DISTINCT + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-9078
SELECT ALL MIN ( DISTINCT + 11 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9079
SELECT - SUM( + + 39 ) + - 96 + 0 * - 28 * 70 * + 69 * - + CAST( + 82 AS SIGNED )
----
-135

skipif mysql # not compatible
query I rowsort label-9079
SELECT - SUM ( + + 39 ) + - 96 + 0 * - 28 * 70 * + 69 * - + CAST ( + 82 AS INTEGER )
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT - 52 + + - COUNT( * ) + - 96 + + + 39 * - 5
----
-344

skipif mysql # not compatible
query I rowsort label-9080
SELECT - 52 + + - COUNT ( * ) + - 96 + + + 39 * - 5
----
-344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT - 21 - - 93 * - 43 + + - CASE 2 WHEN + - 39 THEN + 62 / + - 67 + COALESCE ( - - COUNT( * ), + 55 * + 35 + - + 10 + 12 * + - COUNT( * ) * - 80 * + - 15 + + - 75, 86 ) + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT - 21 - - 93 * - 43 + + - CASE 2 WHEN + - 39 THEN + 62 / + - 67 + COALESCE ( - - COUNT ( * ), + 55 * + 35 + - + 10 + 12 * + - COUNT ( * ) * - 80 * + - 15 + + - 75, 86 ) + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9082
SELECT ALL - 33 AS col1, 41 + CAST( + MAX( 81 ) AS SIGNED ) * 42 + + 8 * - - 65 AS col1
----
-33
3963

skipif mysql # not compatible
query II rowsort label-9082
SELECT ALL - 33 AS col1, 41 + CAST ( + MAX ( 81 ) AS INTEGER ) * 42 + + 8 * - - 65 AS col1
----
-33
3963

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT - CASE + + 27 WHEN - - 24 * + + 16 THEN - + 97 + 97 END + MAX( DISTINCT 33 ) + - + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT - CASE + + 27 WHEN - - 24 * + + 16 THEN - + 97 + 97 END + MAX ( DISTINCT 33 ) + - + 14 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT + 35 * - + 9 - + + 23 DIV + 78 AS col0
----
-315

skipif mysql # not compatible
query I rowsort label-9084
SELECT + 35 * - + 9 - + + 23 / + 78 AS col0
----
-315

query I rowsort
SELECT - - ( + + 96 ) AS col0
----
96

query I rowsort
SELECT - 79 + 58 + - - 65 + - - 73 * + - 63 * + 97 * + - 99
----
44164241

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9087
SELECT ALL - 91 DIV - - COUNT( * ) + - 91 + - + CAST( + 14 AS SIGNED ) * + COUNT( ALL 57 )
----
-196

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - 91 / - - COUNT ( * ) + - 91 + - + CAST ( + 14 AS INTEGER ) * + COUNT ( ALL 57 )
----
-196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9088
SELECT DISTINCT + - COUNT( * ) DIV 36 * COUNT( 79 ) + + 44 * + 90 + - COUNT( * ) AS col2
----
3959

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT + - COUNT ( * ) / 36 * COUNT ( 79 ) + + 44 * + 90 + - COUNT ( * ) AS col2
----
3959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9089
SELECT ALL - 27 * - CASE ( + 2 ) WHEN + COUNT( * ) * 56 THEN + 35 + - 68 WHEN + 52 * + COUNT( * ) * + - 25 * CAST( - AVG ( + + 36 ) AS SIGNED ) * 61 + - + 91 THEN NULL END + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL - 27 * - CASE ( + 2 ) WHEN + COUNT ( * ) * 56 THEN + 35 + - 68 WHEN + 52 * + COUNT ( * ) * + - 25 * CAST ( - AVG ( + + 36 ) AS INTEGER ) * 61 + - + 91 THEN NULL END + 27
----
NULL

query II rowsort
SELECT - + 4 + + - 70 AS col1, 81
----
-74
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9091
SELECT ALL + 74 AS col2, - COUNT( * ) AS col1
----
74
-1

skipif mysql # not compatible
query II rowsort label-9091
SELECT ALL + 74 AS col2, - COUNT ( * ) AS col1
----
74
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT ALL + - AVG ( + - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL + - AVG ( + - ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9093
SELECT + 40 DIV + - 22 - 81 + COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9093
SELECT + 40 / + - 22 - 81 + COUNT ( * ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT ALL + - COUNT( * ) * 6 - + COUNT( * ) + - + 83 + - 72 * - COUNT( 24 ) * 27 / - - CASE - + 44 WHEN + - SUM( DISTINCT + - 9 ) THEN - 20 WHEN - 80 THEN COUNT( * ) + CASE + 88 WHEN COALESCE ( ( 93 ), + 56 + 21 ) THEN + 45 END ELSE NULL END + + 6 - - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL + - COUNT ( * ) * 6 - + COUNT ( * ) + - + 83 + - 72 * - COUNT ( 24 ) * 27 / - - CASE - + 44 WHEN + - SUM ( DISTINCT + - 9 ) THEN - 20 WHEN - 80 THEN COUNT ( * ) + CASE + 88 WHEN COALESCE ( ( 93 ), + 56 + 21 ) THEN + 45 END ELSE NULL END + + 6 - - 44
----
NULL

query I rowsort
SELECT - 68 * - 56
----
3808

query I rowsort
SELECT + 37 * - 74 AS col2
----
-2738

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT - 81 + COUNT( * ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9097
SELECT - 81 + COUNT ( * ) AS col2
----
-80

query I rowsort
SELECT + 65 + + 43 * + 51 AS col1
----
2258

query I rowsort
SELECT + + 77 * 76 AS col1
----
5852

query II rowsort
SELECT DISTINCT + 92 col0, ( - 9 )
----
92
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL - COUNT( * ) * + - 79
----
79

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL - COUNT ( * ) * + - 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT + ( COUNT( * ) ) + - 86 + + - 27 AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-9102
SELECT + ( COUNT ( * ) ) + - 86 + + - 27 AS col0
----
-112

query I rowsort
SELECT ALL 93 * ( - - 8 ) * ( - ( - 84 ) ) AS col2
----
62496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT ( - CAST( + - 43 AS SIGNED ) ) * 20 + + 64
----
924

skipif mysql # not compatible
query I rowsort label-9104
SELECT ( - CAST ( + - 43 AS INTEGER ) ) * 20 + + 64
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT + 51 * COUNT( * ) * - 90
----
-4590

skipif mysql # not compatible
query I rowsort label-9105
SELECT + 51 * COUNT ( * ) * - 90
----
-4590

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL 57 * + ( - COUNT( * ) )
----
-57

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL 57 * + ( - COUNT ( * ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT - 27 + - 62 * - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9107
SELECT - 27 + - 62 * - COUNT ( * ) AS col1
----
35

query I rowsort
SELECT DISTINCT 4 * 78 AS col2
----
312

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT + ( + 71 ) DIV 25 col0
----
2

skipif mysql # not compatible
query I rowsort label-9109
SELECT + ( + 71 ) / 25 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9110
SELECT MAX( + NULLIF ( + + CAST( 52 AS SIGNED ), - 35 * 57 ) )
----
52

skipif mysql # not compatible
query I rowsort label-9110
SELECT MAX ( + NULLIF ( + + CAST ( 52 AS INTEGER ), - 35 * 57 ) )
----
52

query I rowsort
SELECT - 85 + + 64 + 6
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9112
SELECT ALL CASE - + 17 WHEN CASE - 97 WHEN + 3 * CAST( NULL AS SIGNED ) + 61 THEN + AVG ( 52 ) / 85 / 97 + - 78 * + 22 + + + 59 + 67 * + - SUM( DISTINCT - - 97 ) * + 12 / - COUNT( * ) * COUNT( DISTINCT - CAST( COALESCE ( + 32, + 55 * + 4 ) AS SIGNED ) ) ELSE NULL END THEN - ( - 65 ) ELSE NULL END + 39 + - + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL CASE - + 17 WHEN CASE - 97 WHEN + 3 * CAST ( NULL AS INTEGER ) + 61 THEN + AVG ( 52 ) / 85 / 97 + - 78 * + 22 + + + 59 + 67 * + - SUM ( DISTINCT - - 97 ) * + 12 / - COUNT ( * ) * COUNT ( DISTINCT - CAST ( COALESCE ( + 32, + 55 * + 4 ) AS INTEGER ) ) ELSE NULL END THEN - ( - 65 ) ELSE NULL END + 39 + - + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT - 79 + + - ( - ( - COUNT( * ) ) )
----
-80

skipif mysql # not compatible
query I rowsort label-9113
SELECT - 79 + + - ( - ( - COUNT ( * ) ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT DISTINCT COALESCE ( + COUNT( * ), + 6 * 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT COALESCE ( + COUNT ( * ), + 6 * 53 ) AS col2
----
1

query I rowsort
SELECT - - 94 + - + 6
----
88

query I rowsort
SELECT - ( - - 99 ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + COUNT( DISTINCT 95 ) * - 22 - - - 42 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9117
SELECT + COUNT ( DISTINCT 95 ) * - 22 - - - 42 AS col0
----
-64

query I rowsort
SELECT - - 97 * + - 62 * + 87 + 23 AS col2
----
-523195

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT + 35 * + + COUNT( DISTINCT + 26 ) * + 29 AS col2
----
1015

skipif mysql # not compatible
query I rowsort label-9119
SELECT + 35 * + + COUNT ( DISTINCT + 26 ) * + 29 AS col2
----
1015

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT ALL + COUNT( * ) * + 27
----
27

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL + COUNT ( * ) * + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT DISTINCT - 4 * - - COUNT( * ) + - - ( + 98 ) + - + 65 * + COUNT( * ) * + 77
----
-4911

skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT - 4 * - - COUNT ( * ) + - - ( + 98 ) + - + 65 * + COUNT ( * ) * + 77
----
-4911

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT DISTINCT + MAX( DISTINCT - 90 ) * - 60 AS col2
----
5400

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT + MAX ( DISTINCT - 90 ) * - 60 AS col2
----
5400

query I rowsort
SELECT 51 * + - 51
----
-2601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT DISTINCT + 98 * + CASE + CAST( NULL AS SIGNED ) WHEN + - 30 THEN 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT + 98 * + CASE + CAST ( NULL AS INTEGER ) WHEN + - 30 THEN 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9125
SELECT + 46 AS col2, SUM( ALL - 9 ) * ( - + 39 ) - + 55 AS col2
----
46
296

skipif mysql # not compatible
query II rowsort label-9125
SELECT + 46 AS col2, SUM ( ALL - 9 ) * ( - + 39 ) - + 55 AS col2
----
46
296

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT + 52 * - NULLIF ( 67, COUNT( * ) ) + + 49
----
-3435

skipif mysql # not compatible
query I rowsort label-9126
SELECT + 52 * - NULLIF ( 67, COUNT ( * ) ) + + 49
----
-3435

query I rowsort
SELECT 76 * - 77 AS col0
----
-5852

query I rowsort
SELECT 12 + - 11
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9129
SELECT ALL 10 DIV + - 14 * 28
----
0

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL 10 / + - 14 * 28
----
0

query I rowsort
SELECT 2 * 91
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT NULLIF ( - - 52, + 90 + - 21 ) * + NULLIF ( - CAST( - 94 AS SIGNED ), - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) col0
----
4888

skipif mysql # not compatible
query I rowsort label-9131
SELECT NULLIF ( - - 52, + 90 + - 21 ) * + NULLIF ( - CAST ( - 94 AS INTEGER ), - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col0
----
4888

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL COUNT( * ) + 57 col0
----
58

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL COUNT ( * ) + 57 col0
----
58

query I rowsort
SELECT 92 - + - 17
----
109

query II rowsort
SELECT - 75 AS col1, + 59 AS col0
----
-75
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9135
SELECT 82 AS col0, + ( - COUNT( * ) ) * + + 10 col2
----
82
-10

skipif mysql # not compatible
query II rowsort label-9135
SELECT 82 AS col0, + ( - COUNT ( * ) ) * + + 10 col2
----
82
-10

query II rowsort
SELECT ALL 32 AS col2, 66 AS col1
----
32
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT CAST( NULL AS SIGNED ) - + - 74 / ( - + 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT CAST ( NULL AS INTEGER ) - + - 74 / ( - + 16 )
----
NULL

query I rowsort
SELECT ALL 87 + + 45
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT 52 - - 4 * + ( + 12 ) + 93 * - 4 + 50 + + 24 * - 0 * 5 * - 5 + + COUNT( - - 93 ) + + 4 * - 75 * - - COUNT( ALL - ( - 73 ) )
----
-521

skipif mysql # not compatible
query I rowsort label-9139
SELECT 52 - - 4 * + ( + 12 ) + 93 * - 4 + 50 + + 24 * - 0 * 5 * - 5 + + COUNT ( - - 93 ) + + 4 * - 75 * - - COUNT ( ALL - ( - 73 ) )
----
-521

query I rowsort
SELECT - 74 * + 44 AS col2
----
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT 32 + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9141
SELECT 32 + COUNT ( * )
----
33

query I rowsort
SELECT + ( - - 42 ) + + - 16 AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9143
SELECT CAST( NULL AS SIGNED ) - - 34 + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9143
SELECT CAST ( NULL AS INTEGER ) - - 34 + 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9144
SELECT ALL COUNT( * ) col2, - ( - 43 )
----
1
43

skipif mysql # not compatible
query II rowsort label-9144
SELECT ALL COUNT ( * ) col2, - ( - 43 )
----
1
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9145
SELECT DISTINCT + COUNT( - - 36 ) DIV + - 61 - - COALESCE ( - + 45, 60 )
----
-45

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT + COUNT ( - - 36 ) / + - 61 - - COALESCE ( - + 45, 60 )
----
-45

query I rowsort
SELECT ALL - - 16 col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9147
SELECT 1 DIV + - 51 * 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9147
SELECT 1 / + - 51 * 4 AS col2
----
0

query I rowsort
SELECT ALL 56 * - - 76
----
4256

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL - NULLIF ( - 93, - COUNT( * ) / 14 + 42 * + 22 / - 48 - - COALESCE ( - 36, + + 83 ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - NULLIF ( - 93, - COUNT ( * ) / 14 + 42 * + 22 / - 48 - - COALESCE ( - 36, + + 83 ) ) AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9150
SELECT ALL - 16 DIV + - COALESCE ( - - 15, 13 )
----
1

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL - 16 / + - COALESCE ( - - 15, 13 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9151
SELECT ALL - + 83, CAST( + CAST( - 78 AS SIGNED ) AS SIGNED ) * 46 AS col1
----
-83
-3588

skipif mysql # not compatible
query II rowsort label-9151
SELECT ALL - + 83, CAST ( + CAST ( - 78 AS INTEGER ) AS INTEGER ) * 46 AS col1
----
-83
-3588

onlyif mysql # DIV for integer division: 
query I rowsort label-9152
SELECT 80 DIV - 73
----
-1

skipif mysql # not compatible
query I rowsort label-9152
SELECT 80 / - 73
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT 96 * - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-9153
SELECT 96 * - COUNT ( * )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9154
SELECT ALL - COALESCE ( + NULLIF ( - COUNT( * ), - - CAST( NULL AS SIGNED ) ), - 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL - COALESCE ( + NULLIF ( - COUNT ( * ), - - CAST ( NULL AS INTEGER ) ), - 46 ) AS col1
----
1

query II rowsort
SELECT 80 * + 33, - 98 AS col1
----
2640
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT 11 * - COUNT( * ) * + 93
----
-1023

skipif mysql # not compatible
query I rowsort label-9156
SELECT 11 * - COUNT ( * ) * + 93
----
-1023

query I rowsort
SELECT ALL - CASE 89 WHEN - + 30 THEN 74 END AS col0
----
NULL

query I rowsort
SELECT 95 * - 83 AS col2
----
-7885

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT 1 + + COUNT( 45 ) + + - 59 + - 3 * + + 20
----
-117

skipif mysql # not compatible
query I rowsort label-9159
SELECT 1 + + COUNT ( 45 ) + + - 59 + - 3 * + + 20
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT 11 + + NULLIF ( + CAST( NULL AS SIGNED ), - 54 + - - 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9160
SELECT 11 + + NULLIF ( + CAST ( NULL AS INTEGER ), - 54 + - - 20 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9161
SELECT ALL ( - - ( - + 31 ) ) + COUNT( * ) + 70 + ( - - COUNT( ALL + CAST( NULL AS DECIMAL ) ) ) + - + 30 + MAX( ALL - - 36 ) + - 97 * + 70 AS col2
----
-6744

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL ( - - ( - + 31 ) ) + COUNT ( * ) + 70 + ( - - COUNT ( ALL + CAST ( NULL AS REAL ) ) ) + - + 30 + MAX ( ALL - - 36 ) + - 97 * + 70 AS col2
----
-6744

query I rowsort
SELECT 27 + - + COALESCE ( + 83, - 7 ) + 18 * - 91 * - 88
----
144088

query I rowsort
SELECT ALL - 22 * + 42
----
-924

query I rowsort
SELECT + 68 + 71
----
139

query I rowsort
SELECT ALL - 11 - 16
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9166
SELECT + 7 DIV - 53 * - MAX( 36 ) - - 49 + - 84 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-9166
SELECT + 7 / - 53 * - MAX ( 36 ) - - 49 + - 84 AS col1
----
-35

query I rowsort
SELECT + 81 + - - 52
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT + COUNT( * ) + + 51
----
52

skipif mysql # not compatible
query I rowsort label-9168
SELECT + COUNT ( * ) + + 51
----
52

query I rowsort
SELECT + + 92 * ( + + 10 )
----
920

query I rowsort
SELECT ALL 87 * - + 92 + 73
----
-7931

query II rowsort
SELECT + - 64 * - 18 * 88 + + - 0, - 98 * - 73 AS col0
----
101376
7154

query I rowsort
SELECT DISTINCT - 59 * - 87 AS col0
----
5133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9173
SELECT + ( + - CASE 71 WHEN COUNT( DISTINCT 55 ) THEN 57 DIV - + 58 * MIN( - 89 ) DIV - COUNT( * ) + - 88 - - + COUNT( * ) ELSE + + 22 END ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-9173
SELECT + ( + - CASE 71 WHEN COUNT ( DISTINCT 55 ) THEN 57 / - + 58 * MIN ( - 89 ) / - COUNT ( * ) + - 88 - - + COUNT ( * ) ELSE + + 22 END ) col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT DISTINCT CASE + + ( + - 54 ) WHEN - - 24 * + 27 + + 55 THEN + 38 + AVG ( + + 43 ) ELSE ( MIN( CASE 78 WHEN - 25 THEN - 16 ELSE NULL END ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT CASE + + ( + - 54 ) WHEN - - 24 * + 27 + + 55 THEN + 38 + AVG ( + + 43 ) ELSE ( MIN ( CASE 78 WHEN - 25 THEN - 16 ELSE NULL END ) ) END
----
NULL

query I rowsort
SELECT + - 71 * - + 78 * - - 72
----
398736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9176
SELECT CASE - + 72 WHEN + 84 * + COUNT( * ) THEN NULL WHEN + + 22 + - 51 + - 10 + - 90 - 68 THEN NULL ELSE - - 80 * 83 - - 2 * + - 53 - - + 58 END DIV + - 71 + - 4 - + 12 * - - 32
----
-480

skipif mysql # not compatible
query I rowsort label-9176
SELECT CASE - + 72 WHEN + 84 * + COUNT ( * ) THEN NULL WHEN + + 22 + - 51 + - 10 + - 90 - 68 THEN NULL ELSE - - 80 * 83 - - 2 * + - 53 - - + 58 END / + - 71 + - 4 - + 12 * - - 32
----
-480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT - 28 * - CAST( + 47 AS SIGNED ) * - 6 AS col0
----
-7896

skipif mysql # not compatible
query I rowsort label-9177
SELECT - 28 * - CAST ( + 47 AS INTEGER ) * - 6 AS col0
----
-7896

query I rowsort
SELECT ALL 34 * - 54
----
-1836

query I rowsort
SELECT CASE + 84 WHEN - 73 THEN - 49 * 71 * - 99 + - + 19 WHEN - - 20 / + - NULLIF ( - 98, + 3 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9180
SELECT ALL COUNT( DISTINCT + 51 ) * 90 * - 91 + - 27 + - 15 AS col1, + 4 * COUNT( * ) * + 78 DIV + 63
----
-8232
4

skipif mysql # not compatible
query II rowsort label-9180
SELECT ALL COUNT ( DISTINCT + 51 ) * 90 * - 91 + - 27 + - 15 AS col1, + 4 * COUNT ( * ) * + 78 / + 63
----
-8232
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9181
SELECT ALL 31 * - ( ( - + 9 ) ) + 48 + COUNT( * ) - + CAST( NULL AS SIGNED ) + + - 44 * COUNT( * ) * + 40 AS col0, 46 - + 32 DIV + + 38
----
NULL
46

skipif mysql # not compatible
query II rowsort label-9181
SELECT ALL 31 * - ( ( - + 9 ) ) + 48 + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + - 44 * COUNT ( * ) * + 40 AS col0, 46 - + 32 / + + 38
----
NULL
46

query I rowsort
SELECT + ( - 15 )
----
-15

query I rowsort
SELECT DISTINCT 6 * - + 46 + - 11 AS col1
----
-287

query I rowsort
SELECT - 0 * + 69 + CASE 49 WHEN 13 * - - 12 THEN 3 WHEN + 54 * - 10 THEN NULL WHEN - - 99 * + AVG ( ALL - - 56 ) * 53 + 75 + + 26 * 25 THEN - 3 / + 7 * - 13 + + - 19 END * - 24 col2
----
NULL

query I rowsort
SELECT - 68 * + 33
----
-2244

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9186
SELECT ALL + CAST( NULL AS SIGNED ) * + 20 + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL + CAST ( NULL AS INTEGER ) * + 20 + 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT CASE + - 39 WHEN + - MIN( ALL - 15 ) THEN - - 75 * + 26 + + 61 + 77 * COALESCE ( + 15, + COUNT( * ) ) * 73 + 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT CASE + - 39 WHEN + - MIN ( ALL - 15 ) THEN - - 75 * + 26 + + 61 + 77 * COALESCE ( + 15, + COUNT ( * ) ) * 73 + 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT COALESCE ( - ( + - ( - - 59 ) ), COUNT( * ) )
----
59

skipif mysql # not compatible
query I rowsort label-9188
SELECT COALESCE ( - ( + - ( - - 59 ) ), COUNT ( * ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL + SUM( - - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL + SUM ( - - 95 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9190
SELECT + ( COALESCE ( + COUNT( * ), - COUNT( * ), + 72, - 58 * 64 + - COUNT( * ) + CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9190
SELECT + ( COALESCE ( + COUNT ( * ), - COUNT ( * ), + 72, - 58 * 64 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) ) )
----
1

query I rowsort
SELECT + 33 + - 32 + - 45
----
-44

query I rowsort
SELECT + ( + + 5 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT - 56 + + - NULLIF ( COUNT( * ), + 79 ) + - 30 * 62
----
-1917

skipif mysql # not compatible
query I rowsort label-9193
SELECT - 56 + + - NULLIF ( COUNT ( * ), + 79 ) + - 30 * 62
----
-1917

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT - 2 * + - ( - - SUM( + 43 ) )
----
86

skipif mysql # not compatible
query I rowsort label-9194
SELECT - 2 * + - ( - - SUM ( + 43 ) )
----
86

query I rowsort
SELECT ALL - 18 * - 54
----
972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9196
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT - - CAST ( NULL AS REAL ) * - 17 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9197
SELECT ALL - + 98 * + + 83 + - 44 AS col2, - ( - 28 ) DIV - ( + 47 ) + + 54 - - - ( + + 88 ) * 97 + - 38
----
-8178
-8520

skipif mysql # not compatible
query II rowsort label-9197
SELECT ALL - + 98 * + + 83 + - 44 AS col2, - ( - 28 ) / - ( + 47 ) + + 54 - - - ( + + 88 ) * 97 + - 38
----
-8178
-8520

query II rowsort
SELECT - 66 * + 49 * + 47 * ( + 64 ) AS col0, - 61 * 22 + + + 63 AS col2
----
-9727872
-1279

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9199
SELECT - 68, COUNT( * ) * - + 13 DIV COUNT( * ) + + + ( - 23 ) * - ( 43 ) + - 77 AS col0
----
-68
899

skipif mysql # not compatible
query II rowsort label-9199
SELECT - 68, COUNT ( * ) * - + 13 / COUNT ( * ) + + + ( - 23 ) * - ( 43 ) + - 77 AS col0
----
-68
899

onlyif mysql # DIV for integer division: 
query I rowsort label-9200
SELECT + 93 DIV 38
----
2

skipif mysql # not compatible
query I rowsort label-9200
SELECT + 93 / 38
----
2

query I rowsort
SELECT - 32 * - COALESCE ( + - 87, + 90 ) AS col2
----
-2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT ALL CASE 56 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 26 END
----
26

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL CASE 56 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 26 END
----
26

query I rowsort
SELECT - - 19 - - - 52
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9204
SELECT ALL + COUNT( * ) DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL + COUNT ( * ) / + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - + ( 39 ) - - + MAX( 84 ) - - 97
----
142

skipif mysql # not compatible
query I rowsort label-9205
SELECT - + ( 39 ) - - + MAX ( 84 ) - - 97
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-9206
SELECT - + 30 AS col0, MIN( 45 ) * + 78
----
-30
3510

skipif mysql # not compatible
query II rowsort label-9206
SELECT - + 30 AS col0, MIN ( 45 ) * + 78
----
-30
3510

onlyif mysql # DIV for integer division: 
query I rowsort label-9207
SELECT + ( - + 8 ) DIV 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9207
SELECT + ( - + 8 ) / 28 AS col2
----
0

query I rowsort
SELECT + 9 * 52 * - - 93 AS col2
----
43524

query I rowsort
SELECT ALL 78 + + 37 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT + COUNT( * ) - - 24 + + ( + 72 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-9210
SELECT + COUNT ( * ) - - 24 + + ( + 72 ) AS col2
----
97

query I rowsort
SELECT - ( - ( - 62 ) ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ALL - 94 + - 31 * NULLIF ( + - 48, 40 / - - CASE - COALESCE ( - 74, + 95, - NULLIF ( - 9, - COUNT( + 4 ) / + - 92 + 90 ) ) WHEN COALESCE ( + - 1, 16, - + 71 ) THEN ( - CASE - 58 WHEN + 23 THEN - 49 END ) ELSE NULL END ) - - - 28 + + COUNT( DISTINCT + - 36 ) AS col2
----
1367

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - 94 + - 31 * NULLIF ( + - 48, 40 / - - CASE - COALESCE ( - 74, + 95, - NULLIF ( - 9, - COUNT ( + 4 ) / + - 92 + 90 ) ) WHEN COALESCE ( + - 1, 16, - + 71 ) THEN ( - CASE - 58 WHEN + 23 THEN - 49 END ) ELSE NULL END ) - - - 28 + + COUNT ( DISTINCT + - 36 ) AS col2
----
1367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT ALL + CAST( NULL AS SIGNED ) / - + 9 + - 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL + CAST ( NULL AS INTEGER ) / - + 9 + - 27 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9214
SELECT DISTINCT + 44 AS col1, ( ( - ( CAST( + + 23 AS SIGNED ) ) ) )
----
44
-23

skipif mysql # not compatible
query II rowsort label-9214
SELECT DISTINCT + 44 AS col1, ( ( - ( CAST ( + + 23 AS INTEGER ) ) ) )
----
44
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9215
SELECT - ( 33 ) * 74 DIV + 22 + + - 79 + - - 40 + 13 * + + 83 * 19 * COUNT( * ) * NULLIF ( - 64, + 31 )
----
-1312214

skipif mysql # not compatible
query I rowsort label-9215
SELECT - ( 33 ) * 74 / + 22 + + - 79 + - - 40 + 13 * + + 83 * 19 * COUNT ( * ) * NULLIF ( - 64, + 31 )
----
-1312214

query II rowsort
SELECT ALL + 56 AS col0, 6
----
56
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9217
SELECT CAST( + 77 AS SIGNED ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9217
SELECT CAST ( + 77 AS INTEGER ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9218
SELECT + 74 + + CAST( NULL AS SIGNED ) - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT + 74 + + CAST ( NULL AS INTEGER ) - COUNT ( * ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT + 33 DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-9219
SELECT + 33 / - 54
----
0

query I rowsort
SELECT + 39 + 54
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9221
SELECT CAST( + 31 AS SIGNED ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-9221
SELECT CAST ( + 31 AS INTEGER ) AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9222
SELECT CAST( NULL AS SIGNED ) AS col1, 8 col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-9222
SELECT CAST ( NULL AS INTEGER ) AS col1, 8 col0
----
NULL
8

query II rowsort
SELECT ALL + 85, ( + 83 ) AS col0
----
85
83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9224
SELECT + CAST( NULL AS SIGNED ), - 6 DIV - - 78 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9224
SELECT + CAST ( NULL AS INTEGER ), - 6 / - - 78 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9225
SELECT ALL MAX( ALL 94 ) DIV 40 * - 72
----
-144

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL MAX ( ALL 94 ) / 40 * - 72
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT DISTINCT + 34 DIV + 87 - - 94
----
94

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT + 34 / + 87 - - 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT - 20 * + + COUNT( * ) + - 76 AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9227
SELECT - 20 * + + COUNT ( * ) + - 76 AS col2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9228
SELECT + 67 DIV - - 15
----
4

skipif mysql # not compatible
query I rowsort label-9228
SELECT + 67 / - - 15
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT - CASE + + COUNT( * ) WHEN + + 46 THEN - 54 ELSE NULL END * + 81 + - 49 + - COUNT( * ) * + CASE + 15 WHEN 5 + - 84 THEN + ( 85 ) * + 38 ELSE 17 + COUNT( ALL 5 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT - CASE + + COUNT ( * ) WHEN + + 46 THEN - 54 ELSE NULL END * + 81 + - 49 + - COUNT ( * ) * + CASE + 15 WHEN 5 + - 84 THEN + ( 85 ) * + 38 ELSE 17 + COUNT ( ALL 5 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL - SUM( ALL 63 ) col2
----
-63

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL - SUM ( ALL 63 ) col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9231
SELECT - CAST( NULL AS SIGNED ) * COALESCE ( COALESCE ( - - COUNT( * ), - + COUNT( * ) + - - ( 11 ) ), + 57, - COUNT( + 22 ) + 37 ) + - CAST( 78 AS SIGNED ) * - SUM( ALL - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT - CAST ( NULL AS INTEGER ) * COALESCE ( COALESCE ( - - COUNT ( * ), - + COUNT ( * ) + - - ( 11 ) ), + 57, - COUNT ( + 22 ) + 37 ) + - CAST ( 78 AS INTEGER ) * - SUM ( ALL - 29 )
----
NULL

query I rowsort
SELECT - 63 * 15 + + NULLIF ( + 1, + 48 ) AS col1
----
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT + COUNT( * ) + - + 41 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-9233
SELECT + COUNT ( * ) + - + 41 AS col0
----
-40

query I rowsort
SELECT - 29 * 2 - - + 79 col0
----
21

query I rowsort
SELECT DISTINCT - ( 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ( COUNT( * ) ) + - COUNT( * ) + 67 * + ( + - 56 ) + - 52
----
-3804

skipif mysql # not compatible
query I rowsort label-9236
SELECT ( COUNT ( * ) ) + - COUNT ( * ) + 67 * + ( + - 56 ) + - 52
----
-3804

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT + COUNT( * ) * + 58
----
58

skipif mysql # not compatible
query I rowsort label-9237
SELECT + COUNT ( * ) * + 58
----
58

query I rowsort
SELECT - 39 + - - 24 AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9239
SELECT + CAST( - 60 AS SIGNED ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9239
SELECT + CAST ( - 60 AS INTEGER ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL - 79 + CASE - 50 WHEN - - COUNT( * ) THEN NULL WHEN - - COUNT( * ) THEN 57 + - AVG ( + + 23 ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL - 79 + CASE - 50 WHEN - - COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) THEN 57 + - AVG ( + + 23 ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT 73 * + COUNT( * ) + - 51 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9241
SELECT 73 * + COUNT ( * ) + - 51 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-9242
SELECT ALL + - 79 * - 36 + COUNT( * ) * - - 44, + COALESCE ( 26, - 6, + 81 ) AS col0
----
2888
26

skipif mysql # not compatible
query II rowsort label-9242
SELECT ALL + - 79 * - 36 + COUNT ( * ) * - - 44, + COALESCE ( 26, - 6, + 81 ) AS col0
----
2888
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT DISTINCT - - 16 + + + COALESCE ( COALESCE ( + COUNT( * ), - + 68 ), + - 80 * 15 ) + + - COUNT( ALL + 28 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT - - 16 + + + COALESCE ( COALESCE ( + COUNT ( * ), - + 68 ), + - 80 * 15 ) + + - COUNT ( ALL + 28 ) col1
----
16

query II rowsort
SELECT + 3 AS col1, CASE WHEN NOT ( NULL ) IS NULL THEN + 36 END
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT + SUM( ALL + 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9245
SELECT + SUM ( ALL + 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT - COUNT( ALL + 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-9246
SELECT - COUNT ( ALL + 81 )
----
-1

query I rowsort
SELECT 78 * + 66 AS col1
----
5148

query I rowsort
SELECT + 2 + + 51 + - NULLIF ( - - 59, - 82 * ( + 1 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT - MAX( - 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9249
SELECT - MAX ( - 55 ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9250
SELECT ALL - + 74 + - 49 + 80 * + - 96 * + COALESCE ( CAST( COUNT( * ) AS SIGNED ), + CAST( NULL AS SIGNED ) * + 10 ) AS col2, + ( + 98 )
----
-7803
98

skipif mysql # not compatible
query II rowsort label-9250
SELECT ALL - + 74 + - 49 + 80 * + - 96 * + COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), + CAST ( NULL AS INTEGER ) * + 10 ) AS col2, + ( + 98 )
----
-7803
98

query I rowsort
SELECT - + 71 col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT DISTINCT - 24 + + COUNT( DISTINCT 8 )
----
-23

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT - 24 + + COUNT ( DISTINCT 8 )
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9253
SELECT DISTINCT ( 35 ) + 20 + + MIN( + 97 ) DIV + - 25 * COUNT( * ) AS col2, ( 54 ) AS col2
----
52
54

skipif mysql # not compatible
query II rowsort label-9253
SELECT DISTINCT ( 35 ) + 20 + + MIN ( + 97 ) / + - 25 * COUNT ( * ) AS col2, ( 54 ) AS col2
----
52
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9254
SELECT DISTINCT + 35 DIV - NULLIF ( COUNT( * ), 71 )
----
-35

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + 35 / - NULLIF ( COUNT ( * ), 71 )
----
-35

query I rowsort
SELECT 86 * + 50
----
4300

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ALL - MIN( + - 10 ) - - 92 col1
----
102

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - MIN ( + - 10 ) - - 92 col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT 5 - + 50 + + ( + NULLIF ( - COUNT( * ), + 4 ) ) - + 71
----
-117

skipif mysql # not compatible
query I rowsort label-9257
SELECT 5 - + 50 + + ( + NULLIF ( - COUNT ( * ), + 4 ) ) - + 71
----
-117

query II rowsort
SELECT 21 * + 21, 72 AS col1
----
441
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT DISTINCT + COUNT( * ) - + 56 + 52 * + + MAX( + 53 ) * - ( - 15 ) * - SUM( + + 12 ) - - 71
----
-496064

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT + COUNT ( * ) - + 56 + 52 * + + MAX ( + 53 ) * - ( - 15 ) * - SUM ( + + 12 ) - - 71
----
-496064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9260
SELECT - 53 * - CAST( - 44 AS SIGNED ) + CAST( + 47 AS SIGNED ) + + 63 + 1 + - ( 89 ) + 40 * + - 83 DIV - ( + COUNT( * ) ) AS col2
----
1010

skipif mysql # not compatible
query I rowsort label-9260
SELECT - 53 * - CAST ( - 44 AS INTEGER ) + CAST ( + 47 AS INTEGER ) + + 63 + 1 + - ( 89 ) + 40 * + - 83 / - ( + COUNT ( * ) ) AS col2
----
1010

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9261
SELECT COALESCE ( + 24, 15 DIV - COUNT( * ) DIV 96 DIV + 93 + + 62 + - ( + + 91 ) + 76 * + - 77 * - 66 * - - 11 - ( ( + 54 ) ) ) * - 66, + 67 AS col1, + 29 col1
----
-1584
67
29

skipif mysql # not compatible
query III rowsort label-9261
SELECT COALESCE ( + 24, 15 / - COUNT ( * ) / 96 / + 93 + + 62 + - ( + + 91 ) + 76 * + - 77 * - 66 * - - 11 - ( ( + 54 ) ) ) * - 66, + 67 AS col1, + 29 col1
----
-1584
67
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9262
SELECT 68 + + 74 - + COUNT( * ) DIV - 45 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-9262
SELECT 68 + + 74 - + COUNT ( * ) / - 45 AS col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL - - NULLIF ( 52, - 23 * + 68 - 45 ) + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - - NULLIF ( 52, - 23 * + 68 - 45 ) + - COUNT ( * )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT 75 * 44 - - - 40 + + 58 - - 65 + - 11 DIV - 12 AS col2
----
3383

skipif mysql # not compatible
query I rowsort label-9264
SELECT 75 * 44 - - - 40 + + 58 - - 65 + - 11 / - 12 AS col2
----
3383

onlyif mysql # aggregate syntax: 
query II rowsort label-9265
SELECT DISTINCT - 71 * + COUNT( * ) AS col2, + 7 + - 71 AS col2
----
-71
-64

skipif mysql # not compatible
query II rowsort label-9265
SELECT DISTINCT - 71 * + COUNT ( * ) AS col2, + 7 + - 71 AS col2
----
-71
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT DISTINCT - + MAX( ALL - 33 ) + + - 82
----
-49

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT - + MAX ( ALL - 33 ) + + - 82
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT 44 * + 0 + 57 + + 65 * - ( + 10 ) + - 93 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT 44 * + 0 + 57 + + 65 * - ( + 10 ) + - 93 / - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 11 * - 87 * + + 59 * - - 78 * - - 62 AS col1, 38 AS col0
----
-273055068
38

query II rowsort
SELECT ALL - 22 + - 28 AS col0, + 54 * + 11
----
-50
594

query I rowsort
SELECT + 3 - - - 92 AS col2
----
-89

query I rowsort
SELECT 16 * AVG ( + + CASE 51 WHEN - 68 THEN - 95 END ) + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT + COUNT( * ) + - 93 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-9272
SELECT + COUNT ( * ) + - 93 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-9273
SELECT ALL CASE + - 36 WHEN + 55 + ( 44 ) * - 88 THEN + MAX( 81 ) / + MIN( ALL 95 ) END AS col0, - MIN( - 22 ) AS col1
----
NULL
22

skipif mysql # not compatible
query II rowsort label-9273
SELECT ALL CASE + - 36 WHEN + 55 + ( 44 ) * - 88 THEN + MAX ( 81 ) / + MIN ( ALL 95 ) END AS col0, - MIN ( - 22 ) AS col1
----
NULL
22

query I rowsort
SELECT ALL 0 + - 60 col1
----
-60

query II rowsort
SELECT ALL - - 38 + + 59, - 41 col2
----
97
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-9276
SELECT - ( - 67 ) - + COUNT( * ) col2, 75
----
66
75

skipif mysql # not compatible
query II rowsort label-9276
SELECT - ( - 67 ) - + COUNT ( * ) col2, 75
----
66
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9277
SELECT - 66 - + CAST( - 14 AS SIGNED ) + + 58 * + 23 * - - 5
----
6618

skipif mysql # not compatible
query I rowsort label-9277
SELECT - 66 - + CAST ( - 14 AS INTEGER ) + + 58 * + 23 * - - 5
----
6618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9278
SELECT ALL + - 26 * + + 78 DIV COUNT( * ) * - 33
----
66924

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL + - 26 * + + 78 / COUNT ( * ) * - 33
----
66924

query II rowsort
SELECT 85, NULLIF ( + 14, + 34 ) AS col1
----
85
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9280
SELECT ALL + COUNT( * ) * + CAST( 8 AS SIGNED ) * + 57 - 41 AS col0
----
415

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL + COUNT ( * ) * + CAST ( 8 AS INTEGER ) * + 57 - 41 AS col0
----
415

query I rowsort
SELECT 5 + - 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT 40 - - 15 + - 9 * + COUNT( * ) / - 14 * - ( - 35 ) * - CASE - 67 WHEN - MAX( ALL + 39 ) THEN + + 4 - - - COUNT( * ) * + 48 * 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT 40 - - 15 + - 9 * + COUNT ( * ) / - 14 * - ( - 35 ) * - CASE - 67 WHEN - MAX ( ALL + 39 ) THEN + + 4 - - - COUNT ( * ) * + 48 * 16 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT ALL SUM( - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL SUM ( - 33 ) AS col1
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-9284
SELECT DISTINCT 55 col2, 24 DIV 60 AS col2
----
55
0

skipif mysql # not compatible
query II rowsort label-9284
SELECT DISTINCT 55 col2, 24 / 60 AS col2
----
55
0

query I rowsort
SELECT 24 + - 75
----
-51

query I rowsort
SELECT ALL 91 * + - 11 AS col1
----
-1001

query II rowsort
SELECT COALESCE ( ( - + 47 ), 36, + 98 * 93 ) AS col2, 33
----
-47
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - SUM( DISTINCT - 89 ) * MIN( - + 2 ) - + 7
----
-185

skipif mysql # not compatible
query I rowsort label-9288
SELECT - SUM ( DISTINCT - 89 ) * MIN ( - + 2 ) - + 7
----
-185

query I rowsort
SELECT - 32 + 21 col1
----
-11

query I rowsort
SELECT NULLIF ( + + 27, 15 + + 88 * + 23 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT - 61 + - - 55 + + MIN( + 50 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-9291
SELECT - 61 + - - 55 + + MIN ( + 50 ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9292
SELECT + ( NULLIF ( 46, + - 75 / + 91 * - 26 * - 27 + - + 55 + + MAX( - + 57 ) * + + ( - AVG ( CAST( - 87 AS DECIMAL ) ) ) * - 68 + 66 * - COUNT( * ) ) ) + - 13 AS col0, 9 AS col2
----
33
9

skipif mysql # not compatible
query II rowsort label-9292
SELECT + ( NULLIF ( 46, + - 75 / + 91 * - 26 * - 27 + - + 55 + + MAX ( - + 57 ) * + + ( - AVG ( CAST ( - 87 AS REAL ) ) ) * - 68 + 66 * - COUNT ( * ) ) ) + - 13 AS col0, 9 AS col2
----
33
9

query I rowsort
SELECT ALL + 96 * - 27 AS col0
----
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ALL - 19 * + 56 * + - ( 44 ) * - + MAX( + + 22 ) + + 36 AS col0
----
-1029916

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL - 19 * + 56 * + - ( 44 ) * - + MAX ( + + 22 ) + + 36 AS col0
----
-1029916

query II rowsort
SELECT ALL - - NULLIF ( - + 20, 42 ) * + 77 * + + 42 + - - 66 + + 68 * 6 AS col1, + 64 + + - 95 - + - 18 AS col1
----
-64206
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT ALL 66 * MIN( + - 66 ) + 96 + 73 AS col0
----
-4187

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL 66 * MIN ( + - 66 ) + 96 + 73 AS col0
----
-4187

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL 3 * - + CASE - - ( + - 92 ) WHEN + 74 THEN 73 WHEN + 45 + - COUNT( * ) * - 37 THEN NULL ELSE + 67 END + - 74
----
-275

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL 3 * - + CASE - - ( + - 92 ) WHEN + 74 THEN 73 WHEN + 45 + - COUNT ( * ) * - 37 THEN NULL ELSE + 67 END + - 74
----
-275

onlyif mysql # aggregate syntax: 
query II rowsort label-9298
SELECT ALL + 42 * + 85 + + - ( + 95 ) - - + COALESCE ( - 43, - 90, COUNT( * ) ) col2, + 11
----
3432
11

skipif mysql # not compatible
query II rowsort label-9298
SELECT ALL + 42 * + 85 + + - ( + 95 ) - - + COALESCE ( - 43, - 90, COUNT ( * ) ) col2, + 11
----
3432
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( + + SUM( ALL + 76 ) ) * SUM( DISTINCT - + 65 ) + - 42 + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( + + SUM ( ALL + 76 ) ) * SUM ( DISTINCT - + 65 ) + - 42 + - 88
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9300
SELECT ALL + + CAST( - CASE - 62 WHEN - 47 * CAST( - 74 AS DECIMAL ) THEN - 96 * + - 36 ELSE + 45 END AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL + + CAST ( - CASE - 62 WHEN - 47 * CAST ( - 74 AS REAL ) THEN - 96 * + - 36 ELSE + 45 END AS INTEGER )
----
-45

query II rowsort
SELECT + + 57 + + 53 * + 83, 19 AS col0
----
4456
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9302
SELECT ALL - MIN( ALL + + 5 ) * 10 + + + 5 + - - 26 + 3 - CAST( + - 35 AS SIGNED ) * AVG ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - MIN ( ALL + + 5 ) * 10 + + + 5 + - - 26 + 3 - CAST ( + - 35 AS INTEGER ) * AVG ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 61 * + + 75 + 40
----
-4535

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT + + MIN( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9304
SELECT + + MIN ( DISTINCT 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9305
SELECT + ( + 21 ) * + COUNT( * ) + NULLIF ( 54, - - CAST( + 48 AS SIGNED ) * - 88 * - 67 + ( + 39 ) )
----
75

skipif mysql # not compatible
query I rowsort label-9305
SELECT + ( + 21 ) * + COUNT ( * ) + NULLIF ( 54, - - CAST ( + 48 AS INTEGER ) * - 88 * - 67 + ( + 39 ) )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT + MAX( ALL - ( + - 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-9306
SELECT + MAX ( ALL - ( + - 24 ) )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9307
SELECT - 1 + 32 DIV + + 97 + - 76 * 23 * + - SUM( - 81 ) DIV COUNT( * ) AS col1
----
-141589

skipif mysql # not compatible
query I rowsort label-9307
SELECT - 1 + 32 / + + 97 + - 76 * 23 * + - SUM ( - 81 ) / COUNT ( * ) AS col1
----
-141589

onlyif mysql # aggregate syntax: 
query II rowsort label-9308
SELECT + - NULLIF ( + - 47, - 42 * + 3 + + NULLIF ( + 44, + - 26 ) ) * - 3 AS col0, 4 * - - ( + 48 ) + + - COUNT( * ) AS col2
----
-141
191

skipif mysql # not compatible
query II rowsort label-9308
SELECT + - NULLIF ( + - 47, - 42 * + 3 + + NULLIF ( + 44, + - 26 ) ) * - 3 AS col0, 4 * - - ( + 48 ) + + - COUNT ( * ) AS col2
----
-141
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9309
SELECT DISTINCT + NULLIF ( - - 40, + COUNT( * ) ) AS col1, - 4 * - + NULLIF ( + + COUNT( * ), - + 73 - + ( + 2 ) ) + - 22 * CAST( - 81 AS SIGNED ) * - + NULLIF ( - 22, - COUNT( + 76 ) ) AS col1
----
40
39208

skipif mysql # not compatible
query II rowsort label-9309
SELECT DISTINCT + NULLIF ( - - 40, + COUNT ( * ) ) AS col1, - 4 * - + NULLIF ( + + COUNT ( * ), - + 73 - + ( + 2 ) ) + - 22 * CAST ( - 81 AS INTEGER ) * - + NULLIF ( - 22, - COUNT ( + 76 ) ) AS col1
----
40
39208

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT + - NULLIF ( + 73, - - 28 ) + 83 + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT + - NULLIF ( + 73, - - 28 ) + 83 + + COUNT ( * )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL - ( - + ( + COALESCE ( - - 22, - 15, - CAST( NULL AS SIGNED ) ) ) ) + + CASE - 31 WHEN 45 THEN + 46 - + 36 ELSE + - 47 END AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - ( - + ( + COALESCE ( - - 22, - 15, - CAST ( NULL AS INTEGER ) ) ) ) + + CASE - 31 WHEN 45 THEN + 46 - + 36 ELSE + - 47 END AS col1
----
-25

query I rowsort
SELECT DISTINCT ( - + 73 )
----
-73

query I rowsort
SELECT DISTINCT 29 * ( + 44 )
----
1276

query I rowsort
SELECT ALL + 75 * 44
----
3300

query I rowsort
SELECT + 3 * + 62 AS col2
----
186

query I rowsort
SELECT + + 11 * - 44
----
-484

query I rowsort
SELECT + 63 + COALESCE ( - 33, 72 * + 54 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT - COUNT( * ) + + + 38 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9318
SELECT - COUNT ( * ) + + + 38 AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9319
SELECT DISTINCT COUNT( ALL - + 74 ), + 59 AS col2
----
1
59

skipif mysql # not compatible
query II rowsort label-9319
SELECT DISTINCT COUNT ( ALL - + 74 ), + 59 AS col2
----
1
59

query I rowsort
SELECT + 86 * - ( - 41 ) * - - 55 AS col1
----
193930

query I rowsort
SELECT - ( ( + 56 ) ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL CASE - - CASE - 50 WHEN - 79 THEN - - MAX( DISTINCT + - 67 ) * 11 ELSE NULL END WHEN - 55 * + 2 THEN NULL WHEN - MAX( ALL - ( 35 ) ) THEN NULL ELSE + + 62 END
----
62

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL CASE - - CASE - 50 WHEN - 79 THEN - - MAX ( DISTINCT + - 67 ) * 11 ELSE NULL END WHEN - 55 * + 2 THEN NULL WHEN - MAX ( ALL - ( 35 ) ) THEN NULL ELSE + + 62 END
----
62

query I rowsort
SELECT - 97 + - ( - 99 ) + 46
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT DISTINCT COUNT( - - 57 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT COUNT ( - - 57 ) col1
----
1

query I rowsort
SELECT - 74 * - 9
----
666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9326
SELECT - 7 DIV + COUNT( * ) - + 53 * + 63 AS col2
----
-3346

skipif mysql # not compatible
query I rowsort label-9326
SELECT - 7 / + COUNT ( * ) - + 53 * + 63 AS col2
----
-3346

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT + 20 - + MAX( - 44 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9327
SELECT + 20 - + MAX ( - 44 ) AS col1
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9328
SELECT - 38 DIV COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-9328
SELECT - 38 / COUNT ( * ) AS col0
----
-38

query I rowsort
SELECT DISTINCT 61 * - + 67 AS col1
----
-4087

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT ALL - 26 DIV 10 + - - 12 col0
----
10

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL - 26 / 10 + - - 12 col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9331
SELECT ALL + + CASE 44 WHEN + ( + - NULLIF ( ( - + COUNT( * ) ), + 80 * - 34 + - - 25 + 56 ) ) + - 17 THEN NULL WHEN - + COUNT( * ) THEN + + ( - - 85 ) ELSE + + COUNT( ALL - 34 ) * 23 DIV - 91 END
----
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + + CASE 44 WHEN + ( + - NULLIF ( ( - + COUNT ( * ) ), + 80 * - 34 + - - 25 + 56 ) ) + - 17 THEN NULL WHEN - + COUNT ( * ) THEN + + ( - - 85 ) ELSE + + COUNT ( ALL - 34 ) * 23 / - 91 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9332
SELECT DISTINCT + 86 DIV 3 + 58 + ( - - 1 ) * - 14 DIV COUNT( * ) * + 84 AS col2
----
-1090

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT + 86 / 3 + 58 + ( - - 1 ) * - 14 / COUNT ( * ) * + 84 AS col2
----
-1090

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT CASE + COUNT( * ) WHEN + 43 - + 68 - + 46 THEN + - 84 + 72 * - - MIN( ALL - 48 ) WHEN + 39 THEN NULL ELSE + - ( + 41 ) END AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-9333
SELECT CASE + COUNT ( * ) WHEN + 43 - + 68 - + 46 THEN + - 84 + 72 * - - MIN ( ALL - 48 ) WHEN + 39 THEN NULL ELSE + - ( + 41 ) END AS col0
----
-41

query I rowsort
SELECT - 62 * 6
----
-372

onlyif mysql # DIV for integer division: 
query I rowsort label-9335
SELECT - 71 DIV 80 col1
----
0

skipif mysql # not compatible
query I rowsort label-9335
SELECT - 71 / 80 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT COUNT( * ) * - 88 + - 38
----
-126

skipif mysql # not compatible
query I rowsort label-9336
SELECT COUNT ( * ) * - 88 + - 38
----
-126

query I rowsort
SELECT + + 19 + + - 30 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT DISTINCT - 97 * + 52 * + + COUNT( * )
----
-5044

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT - 97 * + 52 * + + COUNT ( * )
----
-5044

query I rowsort
SELECT DISTINCT + ( - ( - 58 ) ) AS col2
----
58

query I rowsort
SELECT ALL - - ( 19 ) * + - 66
----
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT - - 59 * + COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9341
SELECT - - 59 * + COUNT ( * ) AS col0
----
59

query I rowsort
SELECT ALL + 66 col2
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-9343
SELECT DISTINCT - + 17 * + 23 AS col1, - 16 DIV 67
----
-391
0

skipif mysql # not compatible
query II rowsort label-9343
SELECT DISTINCT - + 17 * + 23 AS col1, - 16 / 67
----
-391
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT - 88 - - - 68 + - + 70 * + 91 + - SUM( DISTINCT 44 )
----
-6570

skipif mysql # not compatible
query I rowsort label-9344
SELECT - 88 - - - 68 + - + 70 * + 91 + - SUM ( DISTINCT 44 )
----
-6570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT ( + CAST( 62 AS SIGNED ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9345
SELECT ( + CAST ( 62 AS INTEGER ) ) AS col2
----
62

query I rowsort
SELECT + 75 * - 21
----
-1575

query I rowsort
SELECT - 34 + 86
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT MAX( - 46 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9348
SELECT MAX ( - 46 ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9349
SELECT DISTINCT COUNT( + 9 ) * - - CAST( - + 2 AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT COUNT ( + 9 ) * - - CAST ( - + 2 AS INTEGER ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9350
SELECT - CASE + + CASE + AVG ( DISTINCT 39 ) WHEN - NULLIF ( - COUNT( * ), 15 ) THEN ( - 13 ) END WHEN + + 64 THEN NULL WHEN + 5 THEN - 68 * - 71 + - - 11 * + 4 - + 11 * 99 * - 29 END, + CASE 81 WHEN + - 44 * - - 12 * - - 64 * - + SUM( 60 ) THEN NULL WHEN 64 + + - 20 THEN - CAST( NULL AS SIGNED ) ELSE NULL END * 91 + + 95 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9350
SELECT - CASE + + CASE + AVG ( DISTINCT 39 ) WHEN - NULLIF ( - COUNT ( * ), 15 ) THEN ( - 13 ) END WHEN + + 64 THEN NULL WHEN + 5 THEN - 68 * - 71 + - - 11 * + 4 - + 11 * 99 * - 29 END, + CASE 81 WHEN + - 44 * - - 12 * - - 64 * - + SUM ( 60 ) THEN NULL WHEN 64 + + - 20 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END * 91 + + 95 AS col0
----
NULL
NULL

query I rowsort
SELECT + 86 * - 75 AS col1
----
-6450

onlyif mysql # aggregate syntax: 
query II rowsort label-9352
SELECT + 4 - - COUNT( * ) + - - 13 * + 13 + - 96 AS col1, - 18 + 98 AS col0
----
78
80

skipif mysql # not compatible
query II rowsort label-9352
SELECT + 4 - - COUNT ( * ) + - - 13 * + 13 + - 96 AS col1, - 18 + 98 AS col0
----
78
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT 16 * - - 95 * - COUNT( * ) AS col1
----
-1520

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT 16 * - - 95 * - COUNT ( * ) AS col1
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT COUNT( * ) * - - 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT COUNT ( * ) * - - 67 AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT 14 DIV - 3
----
-4

skipif mysql # not compatible
query I rowsort label-9355
SELECT 14 / - 3
----
-4

query I rowsort
SELECT COALESCE ( 34, - - 78 + + 74 - + 52 ) + + 91
----
125

query I rowsort
SELECT 59 * + 93 AS col2
----
5487

query I rowsort
SELECT 30 + 24 AS col1
----
54

query I rowsort
SELECT ALL 15 + - 78 + 81 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ( + CASE + 15 WHEN 28 / ( + 16 ) * + - COUNT( ALL - 89 ) + + 30 THEN 92 * - 73 END ) - - 4 + 20 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT ( + CASE + 15 WHEN 28 / ( + 16 ) * + - COUNT ( ALL - 89 ) + + 30 THEN 92 * - 73 END ) - - 4 + 20 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 85 * 96 AS col1
----
8160

query I rowsort
SELECT 49 + 62 + - 49 * + 52
----
-2437

onlyif mysql # aggregate syntax: 
query II rowsort label-9363
SELECT ALL 8 + + - 63 * + COUNT( * ) AS col1, 87 + - 76 AS col0
----
-55
11

skipif mysql # not compatible
query II rowsort label-9363
SELECT ALL 8 + + - 63 * + COUNT ( * ) AS col1, 87 + - 76 AS col0
----
-55
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9364
SELECT ALL CAST( 47 AS SIGNED ) + - + 10 * COUNT( * ) * + 40 col0, COUNT( * )
----
-353
1

skipif mysql # not compatible
query II rowsort label-9364
SELECT ALL CAST ( 47 AS INTEGER ) + - + 10 * COUNT ( * ) * + 40 col0, COUNT ( * )
----
-353
1

query I rowsort
SELECT ALL - NULLIF ( + - 38, + - NULLIF ( + 87, NULLIF ( - + 29, - 44 ) ) ) AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT ALL - - CAST( + 41 AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL - - CAST ( + 41 AS INTEGER ) AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9367
SELECT + - 10 DIV 20 + 32 + + COUNT( * ) + 40 + 62 AS col0
----
135

skipif mysql # not compatible
query I rowsort label-9367
SELECT + - 10 / 20 + 32 + + COUNT ( * ) + 40 + 62 AS col0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT COUNT( * ) * + 24
----
24

skipif mysql # not compatible
query I rowsort label-9368
SELECT COUNT ( * ) * + 24
----
24

query I rowsort
SELECT - 30 * - 66
----
1980

query I rowsort
SELECT ALL - 60 * ( 69 )
----
-4140

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT + 69 + ( + MAX( DISTINCT 92 ) ) - - + 94 AS col0
----
255

skipif mysql # not compatible
query I rowsort label-9371
SELECT + 69 + ( + MAX ( DISTINCT 92 ) ) - - + 94 AS col0
----
255

query I rowsort
SELECT DISTINCT - - 94 - 15 AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9373
SELECT DISTINCT 48 * + ( + NULLIF ( + 8, - CAST( + 71 AS SIGNED ) + - COALESCE ( 91, CASE 85 WHEN - + CAST( + + ( - + 96 ) AS DECIMAL ) THEN - 58 WHEN 91 THEN NULL ELSE NULL END ) ) ) - 9
----
375

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT 48 * + ( + NULLIF ( + 8, - CAST ( + 71 AS INTEGER ) + - COALESCE ( 91, CASE 85 WHEN - + CAST ( + + ( - + 96 ) AS REAL ) THEN - 58 WHEN 91 THEN NULL ELSE NULL END ) ) ) - 9
----
375

query I rowsort
SELECT DISTINCT - - 62 col1
----
62

query I rowsort
SELECT ALL - ( - 55 ) * + + 88 * + + 86 AS col0
----
416240

query II rowsort
SELECT + 78 AS col1, 18 + - 30 AS col1
----
78
-12

query I rowsort
SELECT - 19 + + 1 AS col1
----
-18

query II rowsort
SELECT ALL - 81 AS col0, 83 AS col0
----
-81
83

query I rowsort
SELECT - 63 * 86 AS col1
----
-5418

query I rowsort
SELECT 68 + 87 col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT 53 * 36 + + SUM( ALL + 28 ) + + 87
----
2023

skipif mysql # not compatible
query I rowsort label-9381
SELECT 53 * 36 + + SUM ( ALL + 28 ) + + 87
----
2023

query I rowsort
SELECT + 55 - - 21 AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9383
SELECT 60 DIV + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9383
SELECT 60 / + COUNT ( * ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT ALL + - 52 * + 3 + - COUNT( * )
----
-157

skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL + - 52 * + 3 + - COUNT ( * )
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ( + 24 ) * ( ( - - 79 ) ) + - - MAX( ALL - 35 ) AS col0
----
1861

skipif mysql # not compatible
query I rowsort label-9385
SELECT ( + 24 ) * ( ( - - 79 ) ) + - - MAX ( ALL - 35 ) AS col0
----
1861

query I rowsort
SELECT ALL + 67 * 25 AS col0
----
1675

query I rowsort
SELECT ALL - 99 * 97 * 32 AS col0
----
-307296

query I rowsort
SELECT 21 + 52 col0
----
73

query II rowsort
SELECT DISTINCT 37 AS col0, + 45 AS col0
----
37
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT - COUNT( * ) * - 6 * + ( - - 68 )
----
408

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT - COUNT ( * ) * - 6 * + ( - - 68 )
----
408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9391
SELECT ALL 75 + + - 73 + - MAX( - + 50 ) * + COUNT( * ) * - 35 * NULLIF ( - + 41, + CAST( - + 15 AS SIGNED ) * - 37 + + - 73 * - 0 + + 53 + - NULLIF ( + - AVG ( + CAST( NULL AS SIGNED ) ), - 13 ) * 97 ) * + ( + COUNT( * ) ) + MIN( DISTINCT - + 36 ) - SUM( 26 )
----
71690

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL 75 + + - 73 + - MAX ( - + 50 ) * + COUNT ( * ) * - 35 * NULLIF ( - + 41, + CAST ( - + 15 AS INTEGER ) * - 37 + + - 73 * - 0 + + 53 + - NULLIF ( + - AVG ( + CAST ( NULL AS INTEGER ) ), - 13 ) * 97 ) * + ( + COUNT ( * ) ) + MIN ( DISTINCT - + 36 ) - SUM ( 26 )
----
71690

query I rowsort
SELECT 40 + + 22
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL - ( - COUNT( * ) ) * - - ( - ( - 77 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL - ( - COUNT ( * ) ) * - - ( - ( - 77 ) ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-9394
SELECT ALL 97 AS col0, COUNT( * )
----
97
1

skipif mysql # not compatible
query II rowsort label-9394
SELECT ALL 97 AS col0, COUNT ( * )
----
97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9395
SELECT 52, + CASE - ( 91 ) WHEN + + 63 * 97 + + 17 + + COUNT( * ) THEN NULL ELSE - - COUNT( * ) * 66 END + - + 15 AS col0
----
52
51

skipif mysql # not compatible
query II rowsort label-9395
SELECT 52, + CASE - ( 91 ) WHEN + + 63 * 97 + + 17 + + COUNT ( * ) THEN NULL ELSE - - COUNT ( * ) * 66 END + - + 15 AS col0
----
52
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT ALL + MIN( DISTINCT - ( - - 53 ) ) + COUNT( * ) * - 92 * COUNT( * ) + - 33 * - MIN( DISTINCT - ( - + 22 ) )
----
581

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL + MIN ( DISTINCT - ( - - 53 ) ) + COUNT ( * ) * - 92 * COUNT ( * ) + - 33 * - MIN ( DISTINCT - ( - + 22 ) )
----
581

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT MIN( - 71 ) + CASE + - 4 WHEN - 27 THEN 0 WHEN + 77 * 48 * + - 91 THEN - 49 / - 12 END + COUNT( * ) * - 79 * + - 13 * 44 - - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT MIN ( - 71 ) + CASE + - 4 WHEN - 27 THEN 0 WHEN + 77 * 48 * + - 91 THEN - 49 / - 12 END + COUNT ( * ) * - 79 * + - 13 * 44 - - - 27
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT ALL - 10 + + 95, COUNT( * ) * - 88 * 78 AS col1
----
85
-6864

skipif mysql # not compatible
query II rowsort label-9398
SELECT ALL - 10 + + 95, COUNT ( * ) * - 88 * 78 AS col1
----
85
-6864

query I rowsort
SELECT DISTINCT 74 + - 12 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT + SUM( DISTINCT - 18 ) + + 27 col1
----
9

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT + SUM ( DISTINCT - 18 ) + + 27 col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL + 38 + - 96 + + - COUNT( * ) + 8
----
-51

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL + 38 + - 96 + + - COUNT ( * ) + 8
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT 45 * - COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9402
SELECT 45 * - COUNT ( * ) AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9403
SELECT - 80 col1, 38 + + + NULLIF ( + - CAST( NULL AS SIGNED ), 93 )
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-9403
SELECT - 80 col1, 38 + + + NULLIF ( + - CAST ( NULL AS INTEGER ), 93 )
----
-80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT 84 * COUNT( * ) * + 49
----
4116

skipif mysql # not compatible
query I rowsort label-9404
SELECT 84 * COUNT ( * ) * + 49
----
4116

query II rowsort
SELECT + 11 AS col2, 71
----
11
71

query I rowsort
SELECT + ( - - 35 ) AS col0
----
35

query I rowsort
SELECT 37 - - 51 AS col1
----
88

query I rowsort
SELECT ALL - 69 * - 52 * - 23 - + 81 AS col0
----
-82605

query I rowsort
SELECT ALL - 3 * + - 1 AS col0
----
3

query I rowsort
SELECT ALL + 5 * + 91 - 10 AS col1
----
445

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT DISTINCT + 19 * - ( - - 46 ) + - - 47 - - - COUNT( * ) - 12 * 46 + - ( MAX( 64 ) ) + - + ( + 35 )
----
-1479

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT + 19 * - ( - - 46 ) + - - 47 - - - COUNT ( * ) - 12 * 46 + - ( MAX ( 64 ) ) + - + ( + 35 )
----
-1479

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT ALL - - CASE - 16 WHEN - + 40 * + 70 THEN - + 37 * 79 * 7 + - + ( + COUNT( * ) ) WHEN - + 61 THEN 12 + + 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - - CASE - 16 WHEN - + 40 * + 70 THEN - + 37 * 79 * 7 + - + ( + COUNT ( * ) ) WHEN - + 61 THEN 12 + + 34 END AS col0
----
NULL

query II rowsort
SELECT + - 37, - 2 * + - 42 AS col0
----
-37
84

query I rowsort
SELECT + 61 * - - 18
----
1098

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9415
SELECT ALL + 87 * - ( COUNT( * ) ) - - - 8 + + 64 DIV - 50 + - 49
----
-145

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL + 87 * - ( COUNT ( * ) ) - - - 8 + + 64 / - 50 + - 49
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT ( - + 98 ) * - COUNT( * ) + + ( + 26 ) + + NULLIF ( - 48, 83 + - CAST( 91 AS SIGNED ) )
----
76

skipif mysql # not compatible
query I rowsort label-9416
SELECT ( - + 98 ) * - COUNT ( * ) + + ( + 26 ) + + NULLIF ( - 48, 83 + - CAST ( 91 AS INTEGER ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT + NULLIF ( - COUNT( * ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT + NULLIF ( - COUNT ( * ), - COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT - 54 * + + 97
----
-5238

query II rowsort
SELECT DISTINCT - 3, 54 * + 1 AS col1
----
-3
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9420
SELECT 62 * - + COUNT( * ) AS col0, + 65 DIV + 28 + 43 - - 2 + + + 54
----
-62
101

skipif mysql # not compatible
query II rowsort label-9420
SELECT 62 * - + COUNT ( * ) AS col0, + 65 / + 28 + 43 - - 2 + + + 54
----
-62
101

query I rowsort
SELECT ALL 66 + + - 69 - - 23 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT ALL - MIN( ALL - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - MIN ( ALL - 70 )
----
70

query I rowsort
SELECT ( - NULLIF ( 0, - 23 ) )
----
0

query I rowsort
SELECT ALL 80 + + - 28
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9425
SELECT ALL ( 36 ) + + CAST( - + ( + 63 ) AS SIGNED ), 23 * + 2 AS col1
----
-27
46

skipif mysql # not compatible
query II rowsort label-9425
SELECT ALL ( 36 ) + + CAST ( - + ( + 63 ) AS INTEGER ), 23 * + 2 AS col1
----
-27
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9426
SELECT + 69 + + + ( + 16 ) * - 12 DIV COUNT( * ) AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-9426
SELECT + 69 + + + ( + 16 ) * - 12 / COUNT ( * ) AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL + COUNT( * ) + 11 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL + COUNT ( * ) + 11 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + COUNT( * ) + - 58 + + - 84
----
-141

skipif mysql # not compatible
query I rowsort label-9428
SELECT + COUNT ( * ) + - 58 + + - 84
----
-141

onlyif mysql # DIV for integer division: 
query II rowsort label-9429
SELECT - 51 * - 48 AS col2, 20 DIV 52 col2
----
2448
0

skipif mysql # not compatible
query II rowsort label-9429
SELECT - 51 * - 48 AS col2, 20 / 52 col2
----
2448
0

query I rowsort
SELECT - 21 + - 18 * - ( - ( - 76 ) )
----
1347

query I rowsort
SELECT ALL + 69 + + ( - 7 )
----
62

query II rowsort
SELECT DISTINCT NULLIF ( - - 80, + + 63 * + - 21 + + 61 ), 26 AS col1
----
80
26

query I rowsort
SELECT ALL + 69 * - + 72
----
-4968

query I rowsort
SELECT ALL NULLIF ( + 47, 64 )
----
47

query I rowsort
SELECT - 67 + + - 8 + 40 * 40
----
1525

query II rowsort
SELECT DISTINCT + 52 * - 99 col1, 28
----
-5148
28

query I rowsort
SELECT - ( - + 91 ) + + 66 AS col2
----
157

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9438
SELECT ALL NULLIF ( - - 91, + - CAST( + 69 AS DECIMAL ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL NULLIF ( - - 91, + - CAST ( + 69 AS REAL ) ) AS col0
----
91

query I rowsort
SELECT - 31 + 97 * - ( - 8 )
----
745

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT - + 54 + + - ( + 24 ) * COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-9440
SELECT - + 54 + + - ( + 24 ) * COUNT ( * ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - 56 + - 50 * + + COUNT( * ) AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-9441
SELECT - 56 + - 50 * + + COUNT ( * ) AS col1
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT - 10 * + SUM( ALL - 39 ) AS col2
----
390

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT - 10 * + SUM ( ALL - 39 ) AS col2
----
390

query I rowsort
SELECT - + 79 * + ( - 11 ) + - 58 AS col2
----
811

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9444
SELECT - 94 / - + 26 * + 98 + - 50 * CASE + 71 WHEN + 55 THEN NULL WHEN - - 96 THEN - + 16 + - + AVG ( ALL 46 ) * - COUNT( * ) WHEN COUNT( * ) THEN + 81 * 46 ELSE NULL END, - CASE - 93 WHEN - + 76 * + + CAST( NULL AS SIGNED ) + 88 THEN + - MIN( ALL + NULLIF ( - + 3, 3 ) ) * 79 ELSE NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9444
SELECT - 94 / - + 26 * + 98 + - 50 * CASE + 71 WHEN + 55 THEN NULL WHEN - - 96 THEN - + 16 + - + AVG ( ALL 46 ) * - COUNT ( * ) WHEN COUNT ( * ) THEN + 81 * 46 ELSE NULL END, - CASE - 93 WHEN - + 76 * + + CAST ( NULL AS INTEGER ) + 88 THEN + - MIN ( ALL + NULLIF ( - + 3, 3 ) ) * 79 ELSE NULL END AS col1
----
NULL
NULL

query I rowsort
SELECT - 54 + + ( + 48 ) AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT - CAST( - + COUNT( * ) AS SIGNED ) + + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9446
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) + + 59 AS col0
----
60

query I rowsort
SELECT + - 78 * 78 AS col0
----
-6084

query I rowsort
SELECT DISTINCT + 92 * 15 + + 15 AS col1
----
1395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL + + 13 * + - 77 * - COALESCE ( - 91, + + COUNT( * ) ) + + 48 * 14 + CASE + - CAST( NULL AS SIGNED ) WHEN 29 * + COUNT( * ) THEN + + 56 ELSE - 32 END * + 47
----
-91923

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL + + 13 * + - 77 * - COALESCE ( - 91, + + COUNT ( * ) ) + + 48 * 14 + CASE + - CAST ( NULL AS INTEGER ) WHEN 29 * + COUNT ( * ) THEN + + 56 ELSE - 32 END * + 47
----
-91923

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT + - COUNT( DISTINCT - 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9450
SELECT + - COUNT ( DISTINCT - 44 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9451
SELECT ALL + COALESCE ( + - 48, 96, + + SUM( DISTINCT - ( - 23 ) ) - + 37 ) * + 38 * - + CAST( - COUNT( * ) AS SIGNED ) + + 74 AS col0
----
-1750

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL + COALESCE ( + - 48, 96, + + SUM ( DISTINCT - ( - 23 ) ) - + 37 ) * + 38 * - + CAST ( - COUNT ( * ) AS INTEGER ) + + 74 AS col0
----
-1750

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9452
SELECT - 64 * + 62 * + 43 * - 13 * ( - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) + - 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT - 64 * + 62 * + 43 * - 13 * ( - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) + - 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9453
SELECT DISTINCT - + 48 * - + 45 + MAX( DISTINCT - 78 ) DIV - - 3 - - SUM( ALL - 42 ) - 76 - - + 24 AS col1
----
2040

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - + 48 * - + 45 + MAX ( DISTINCT - 78 ) / - - 3 - - SUM ( ALL - 42 ) - 76 - - + 24 AS col1
----
2040

query I rowsort
SELECT + 81 + 53 - - 64 * - 88 * + 24 AS col0
----
-135034

query I rowsort
SELECT + ( + - ( 37 ) ) AS col0
----
-37

query II rowsort
SELECT ALL + 78, + 91 AS col0
----
78
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT + CASE + COUNT( - 32 ) WHEN MIN( ALL + + 92 ) * + 13 + COUNT( * ) THEN NULL WHEN + - COUNT( * ) THEN + - 68 END + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT + CASE + COUNT ( - 32 ) WHEN MIN ( ALL + + 92 ) * + 13 + COUNT ( * ) THEN NULL WHEN + - COUNT ( * ) THEN + - 68 END + 81
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT ALL + CAST( NULL AS SIGNED ) * - 60 * - CASE + + NULLIF ( ( + NULLIF ( + 62, - + 64 ) ), + 37 ) WHEN - 25 THEN AVG ( - 15 ) END + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL + CAST ( NULL AS INTEGER ) * - 60 * - CASE + + NULLIF ( ( + NULLIF ( + 62, - + 64 ) ), + 37 ) WHEN - 25 THEN AVG ( - 15 ) END + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT + 69 * - 62 * COUNT( * )
----
-4278

skipif mysql # not compatible
query I rowsort label-9459
SELECT + 69 * - 62 * COUNT ( * )
----
-4278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT CASE + 43 WHEN CASE 70 WHEN 77 THEN + - NULLIF ( - 98, 3 + MAX( - + 95 ) ) WHEN + 4 * + 43 + 55 THEN NULL ELSE + 45 END THEN - CAST( NULL AS SIGNED ) * - 31 + 15 * MAX( DISTINCT + + CASE - - 66 WHEN - 67 * ( + 99 ) + + 91 THEN + ( - 29 ) ELSE NULL END ) + - - 48 - ( + 18 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT CASE + 43 WHEN CASE 70 WHEN 77 THEN + - NULLIF ( - 98, 3 + MAX ( - + 95 ) ) WHEN + 4 * + 43 + 55 THEN NULL ELSE + 45 END THEN - CAST ( NULL AS INTEGER ) * - 31 + 15 * MAX ( DISTINCT + + CASE - - 66 WHEN - 67 * ( + 99 ) + + 91 THEN + ( - 29 ) ELSE NULL END ) + - - 48 - ( + 18 ) END AS col2
----
NULL

query I rowsort
SELECT ALL - 93 * - - 91 + + 48 * - - 55 * + 18
----
39057

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT COUNT( * ) * + 63 + + 59 + CASE + - 84 WHEN + - 40 THEN + - 90 + NULLIF ( 60, - 36 ) WHEN + - 90 / - + 62 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT COUNT ( * ) * + 63 + + 59 + CASE + - 84 WHEN + - 40 THEN + - 90 + NULLIF ( 60, - 36 ) WHEN + - 90 / - + 62 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9463
SELECT COALESCE ( + MAX( + 59 ), + + ( + - 13 ) DIV COUNT( * ), CASE + COUNT( * ) WHEN + + 9 THEN - SUM( DISTINCT + 61 ) END )
----
59

skipif mysql # not compatible
query I rowsort label-9463
SELECT COALESCE ( + MAX ( + 59 ), + + ( + - 13 ) / COUNT ( * ), CASE + COUNT ( * ) WHEN + + 9 THEN - SUM ( DISTINCT + 61 ) END )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9464
SELECT + COUNT( * ) DIV 19 DIV + 23 AS col1, COUNT( * ) col1
----
0
1

skipif mysql # not compatible
query II rowsort label-9464
SELECT + COUNT ( * ) / 19 / + 23 AS col1, COUNT ( * ) col1
----
0
1

query II rowsort
SELECT ALL + 13 AS col2, 8 + + 23
----
13
31

query I rowsort
SELECT DISTINCT + 33 * + 11 + 85
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ( + - MAX( + - 0 ) ) * - 49 + + NULLIF ( - 31, + COUNT( * ) ) * 51 - + 18 + NULLIF ( + 89, + + 4 * + 10 - - 14 / - - 67 )
----
-1510

skipif mysql # not compatible
query I rowsort label-9467
SELECT ( + - MAX ( + - 0 ) ) * - 49 + + NULLIF ( - 31, + COUNT ( * ) ) * 51 - + 18 + NULLIF ( + 89, + + 4 * + 10 - - 14 / - - 67 )
----
-1510

query I rowsort
SELECT ALL 97 * + 41
----
3977

query II rowsort
SELECT ALL 62, - 25 AS col2
----
62
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9470
SELECT - CASE - 13 WHEN + + 63 THEN - + 62 WHEN - CAST( - 13 AS SIGNED ) * - + CAST( - - 55 AS SIGNED ) + + 32 - + 17 * 11 * - + MAX( - + 98 ) THEN NULL END + - SUM( ALL - + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT - CASE - 13 WHEN + + 63 THEN - + 62 WHEN - CAST ( - 13 AS INTEGER ) * - + CAST ( - - 55 AS INTEGER ) + + 32 - + 17 * 11 * - + MAX ( - + 98 ) THEN NULL END + - SUM ( ALL - + 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT SUM( - 78 ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-9471
SELECT SUM ( - 78 ) col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9472
SELECT - 61 * CAST( - 21 AS SIGNED ), 6 * 15 AS col0
----
1281
90

skipif mysql # not compatible
query II rowsort label-9472
SELECT - 61 * CAST ( - 21 AS INTEGER ), 6 * 15 AS col0
----
1281
90

query I rowsort
SELECT DISTINCT - 93 - + CASE - 43 WHEN - + 45 THEN + + AVG ( - 38 ) + 8 * - 80 + - + 96 ELSE NULL END * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL - 75 * + AVG ( DISTINCT 61 ) * NULLIF ( 17, - 46 + + 93 ) / COUNT( * ) * - MAX( DISTINCT - CASE + - 34 WHEN - COALESCE ( 45, - + 81 * 46 ) THEN + - 77 WHEN + 22 THEN NULL END ) + - COUNT( - 17 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - 75 * + AVG ( DISTINCT 61 ) * NULLIF ( 17, - 46 + + 93 ) / COUNT ( * ) * - MAX ( DISTINCT - CASE + - 34 WHEN - COALESCE ( 45, - + 81 * 46 ) THEN + - 77 WHEN + 22 THEN NULL END ) + - COUNT ( - 17 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT - - 67 DIV - 21 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9475
SELECT - - 67 / - 21 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9476
SELECT DISTINCT + 61 DIV + + 75 * - COUNT( * ) + 6 + + COALESCE ( + + 21, + 75 - - 86, - 97 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT + 61 / + + 75 * - COUNT ( * ) + 6 + + COALESCE ( + + 21, + 75 - - 86, - 97 ) col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 47 / - 6 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 47 / - 6 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), + ( 97 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), + ( 97 ) )
----
NULL

query I rowsort
SELECT DISTINCT + + 58 * COALESCE ( + 0, - 39, + 43 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT + 16 * - MAX( 3 )
----
-48

skipif mysql # not compatible
query I rowsort label-9480
SELECT + 16 * - MAX ( 3 )
----
-48

query I rowsort
SELECT DISTINCT - 20 * 98 AS col0
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL - ( + ( - COUNT( * ) ) ) + ( - + 76 )
----
-75

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL - ( + ( - COUNT ( * ) ) ) + ( - + 76 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT - + 65 * + 27 * + 92 * 59 * COALESCE ( + - NULLIF ( - - 54, - 3 ), COUNT( * ), - + COUNT( * ) ) AS col1
----
514411560

skipif mysql # not compatible
query I rowsort label-9483
SELECT - + 65 * + 27 * + 92 * 59 * COALESCE ( + - NULLIF ( - - 54, - 3 ), COUNT ( * ), - + COUNT ( * ) ) AS col1
----
514411560

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9484
SELECT DISTINCT - 67 / - CAST( CASE + 76 WHEN + - 1 THEN 77 END AS DECIMAL ) + + SUM( + 55 ) + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT - 67 / - CAST ( CASE + 76 WHEN + - 1 THEN 77 END AS REAL ) + + SUM ( + 55 ) + - 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9485
SELECT DISTINCT + COUNT( * ) DIV - - 70 + - 69 + ( - 77 ) AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT + COUNT ( * ) / - - 70 + - 69 + ( - 77 ) AS col2
----
-146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9486
SELECT - + 2 DIV 72 - + COUNT( DISTINCT + 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-9486
SELECT - + 2 / 72 - + COUNT ( DISTINCT + 9 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT DISTINCT - COUNT( 20 ) + COUNT( * ) + 58 + - - 19
----
77

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT - COUNT ( 20 ) + COUNT ( * ) + 58 + - - 19
----
77

query I rowsort
SELECT + 6 - + - 87 + 10 * + 79 * - - 86 + + - 10 AS col0
----
68023

query II rowsort
SELECT 1 AS col1, 67 AS col1
----
1
67

query I rowsort
SELECT 20 * - 62
----
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT COUNT( * ) * + 63
----
63

skipif mysql # not compatible
query I rowsort label-9491
SELECT COUNT ( * ) * + 63
----
63

query I rowsort
SELECT 68 * - 49 * - 84 AS col2
----
279888

onlyif mysql # DIV for integer division: 
query I rowsort label-9493
SELECT DISTINCT 51 DIV - 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT 51 / - 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT SUM( DISTINCT + - 63 ) * 15
----
-945

skipif mysql # not compatible
query I rowsort label-9494
SELECT SUM ( DISTINCT + - 63 ) * 15
----
-945

query I rowsort
SELECT DISTINCT 44 - - 89 + 0
----
133

query I rowsort
SELECT 45 * - COALESCE ( - 69, + 94 ) AS col0
----
3105

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT MIN( + + ( - - 60 ) ) + + 1 + - COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9497
SELECT MIN ( + + ( - - 60 ) ) + + 1 + - COUNT ( * ) AS col0
----
60

query I rowsort
SELECT 58 * 95 * - 29
----
-159790

query I rowsort
SELECT 64 + + 86
----
150

query I rowsort
SELECT ALL 43 * + NULLIF ( + - 3, - - 59 ) AS col0
----
-129

query I rowsort
SELECT ALL 78 * - 38
----
-2964

query I rowsort
SELECT 83 + - 74 * - 92
----
6891

query II rowsort
SELECT ALL 90 * 6 AS col1, - COALESCE ( + 91, - 67 )
----
540
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ALL COUNT( * ) * 22 * - 36
----
-792

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL COUNT ( * ) * 22 * - 36
----
-792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT + 47 + + COALESCE ( + - 67, - + 50 DIV + - COUNT( * ), + 49 * + 79 + + 43 + 13 - + + 65 + + 96 DIV + 50 DIV 50 + + 26 DIV - + COALESCE ( - + NULLIF ( - 6, + 69 ), - 70 + - 74 ) ) * - 58
----
3933

skipif mysql # not compatible
query I rowsort label-9505
SELECT + 47 + + COALESCE ( + - 67, - + 50 / + - COUNT ( * ), + 49 * + 79 + + 43 + 13 - + + 65 + + 96 / + 50 / 50 + + 26 / - + COALESCE ( - + NULLIF ( - 6, + 69 ), - 70 + - 74 ) ) * - 58
----
3933

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9506
SELECT COUNT( * ) DIV + - 24 - 57
----
-57

skipif mysql # not compatible
query I rowsort label-9506
SELECT COUNT ( * ) / + - 24 - 57
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT + COUNT( * ) + - 92
----
-91

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT + COUNT ( * ) + - 92
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9508
SELECT ALL 44 + + 97 - + 90 DIV ( 43 ) AS col2
----
139

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL 44 + + 97 - + 90 / ( 43 ) AS col2
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT - 13 + + - 82 DIV - - 74 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9509
SELECT - 13 + + - 82 / - - 74 AS col0
----
-14

query II rowsort
SELECT - 88 + + - 77 AS col1, 86 AS col1
----
-165
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9511
SELECT MAX( + + 24 ) + + + 3 + 88 - + - 27 DIV + 17
----
116

skipif mysql # not compatible
query I rowsort label-9511
SELECT MAX ( + + 24 ) + + + 3 + 88 - + - 27 / + 17
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9512
SELECT 22 / + 60 - + CAST( NULL AS SIGNED ) * + MAX( DISTINCT 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9512
SELECT 22 / + 60 - + CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT 57 )
----
NULL

query I rowsort
SELECT DISTINCT - 89 + 45
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9514
SELECT ALL + + NULLIF ( + COUNT( * ), - ( + + 75 ) ) + + 16 DIV + + 96
----
1

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + + NULLIF ( + COUNT ( * ), - ( + + 75 ) ) + + 16 / + + 96
----
1

query I rowsort
SELECT ALL - 75 + - 24 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT ( + 81 ) + - CASE + CASE - 11 WHEN 0 - 54 THEN NULL ELSE SUM( 71 ) * - 85 END WHEN + 76 * + 78 THEN + ( + 72 ) + - 16 * ( + 70 ) END - + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT ( + 81 ) + - CASE + CASE - 11 WHEN 0 - 54 THEN NULL ELSE SUM ( 71 ) * - 85 END WHEN + 76 * + 78 THEN + ( + 72 ) + - 16 * ( + 70 ) END - + 74 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 48 + - 9
----
-57

query I rowsort
SELECT ALL + + NULLIF ( - 33, 13 ) + 12 AS col0
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9519
SELECT - 77 * - - CAST( NULL AS DECIMAL ) + + 58 / + CASE + 81 WHEN - 50 THEN 75 ELSE - + 28 END + + + COALESCE ( + 74, + ( 98 ), 19 + 52 - 26 / 70, - 32 * + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT - 77 * - - CAST ( NULL AS REAL ) + + 58 / + CASE + 81 WHEN - 50 THEN 75 ELSE - + 28 END + + + COALESCE ( + 74, + ( 98 ), 19 + 52 - 26 / 70, - 32 * + 77 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT ALL - 10 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL - 10 / 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL + 55 - + + COUNT( * ) * - COUNT( * ) + 44
----
100

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + 55 - + + COUNT ( * ) * - COUNT ( * ) + 44
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-9522
SELECT 27 AS col0, CASE 93 WHEN + 46 THEN + + COUNT( * ) + - + COUNT( * ) + - 6 ELSE NULL END col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9522
SELECT 27 AS col0, CASE 93 WHEN + 46 THEN + + COUNT ( * ) + - + COUNT ( * ) + - 6 ELSE NULL END col2
----
27
NULL

query I rowsort
SELECT ALL - ( + - 35 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT + 27 * + 80 + - COUNT( * ) + - - COUNT( * ) * - - NULLIF ( - 0, 72 / - 43 ) * + + 80 * - - COUNT( * ) AS col0
----
2159

skipif mysql # not compatible
query I rowsort label-9524
SELECT + 27 * + 80 + - COUNT ( * ) + - - COUNT ( * ) * - - NULLIF ( - 0, 72 / - 43 ) * + + 80 * - - COUNT ( * ) AS col0
----
2159

query I rowsort
SELECT 68 * + + 31 AS col2
----
2108

query I rowsort
SELECT 39 * + - 66
----
-2574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9527
SELECT 74 + - 18 + - 45 + + 12 * 43 - + + 48 * SUM( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9527
SELECT 74 + - 18 + - 45 + + 12 * 43 - + + 48 * SUM ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL + 10 * 33 * + - 2 AS col1, 90 * - ( - 74 ) AS col1
----
-660
6660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9529
SELECT ALL - 19 AS col0, 60 * + - CAST( + 22 AS SIGNED ) + 25 * + 68
----
-19
380

skipif mysql # not compatible
query II rowsort label-9529
SELECT ALL - 19 AS col0, 60 * + - CAST ( + 22 AS INTEGER ) + 25 * + 68
----
-19
380

onlyif mysql # aggregate syntax: 
query II rowsort label-9530
SELECT 26 AS col1, + COUNT( * )
----
26
1

skipif mysql # not compatible
query II rowsort label-9530
SELECT 26 AS col1, + COUNT ( * )
----
26
1

query I rowsort
SELECT - 83 * - 39 + 9 AS col2
----
3246

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT DISTINCT MAX( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT MAX ( - 40 )
----
-40

query I rowsort
SELECT DISTINCT - 53 + + + 74 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT 27 * - - MAX( ALL + 89 ) AS col1
----
2403

skipif mysql # not compatible
query I rowsort label-9534
SELECT 27 * - - MAX ( ALL + 89 ) AS col1
----
2403

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL + 20 + + 27 * + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL + 20 + + 27 * + - COUNT ( * )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT ALL + COUNT( + 73 ) + + 95 * + - 16 + + CAST( + 50 AS SIGNED ) * - 81
----
-5569

skipif mysql # not compatible
query I rowsort label-9536
SELECT ALL + COUNT ( + 73 ) + + 95 * + - 16 + + CAST ( + 50 AS INTEGER ) * - 81
----
-5569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9537
SELECT ALL 78 + + + 93 * - CAST( 75 AS SIGNED ) * - - 31 * + 6 + - 68 - 38 DIV COALESCE ( - + 7, COUNT( * ) DIV + 98 + - CAST( NULL AS SIGNED ) * 2 )
----
-1297335

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL 78 + + + 93 * - CAST ( 75 AS INTEGER ) * - - 31 * + 6 + - 68 - 38 / COALESCE ( - + 7, COUNT ( * ) / + 98 + - CAST ( NULL AS INTEGER ) * 2 )
----
-1297335

query I rowsort
SELECT ALL + 10 + - - 87 AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT + 61 * + CAST( NULL AS SIGNED ) + - - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT + 61 * + CAST ( NULL AS INTEGER ) + - - 94 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 77 + 83
----
160

query I rowsort
SELECT ALL 44 + - 10 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT 55 AS col0, COUNT( * )
----
55
1

skipif mysql # not compatible
query II rowsort label-9542
SELECT 55 AS col0, COUNT ( * )
----
55
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT ALL 58 - + CAST( 53 AS SIGNED ) * - 54 + - - 94
----
3014

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL 58 - + CAST ( 53 AS INTEGER ) * - 54 + - - 94
----
3014

query I rowsort
SELECT + + 64 + + COALESCE ( 47, - + 16 )
----
111

query I rowsort
SELECT ALL + 50 * 27 - - 57 AS col2
----
1407

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL + 78 * + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + 78 * + COUNT ( * )
----
78

query I rowsort
SELECT ALL 5 * 30 - + 72 - 37 * - 20 AS col0
----
818

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9548
SELECT + COALESCE ( + + 94, - COUNT( * ) DIV + 64 )
----
94

skipif mysql # not compatible
query I rowsort label-9548
SELECT + COALESCE ( + + 94, - COUNT ( * ) / + 64 )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9549
SELECT + 23 DIV - 33 - - + 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9549
SELECT + 23 / - 33 - - + 38 AS col2
----
38

query I rowsort
SELECT CASE 21 WHEN + 38 * - 7 THEN - 84 END
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 50, 83 )
----
-50

query I rowsort
SELECT ALL 33 * 3 col1
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9553
SELECT + 39 * + COUNT( * ) col1, 50 AS col2
----
39
50

skipif mysql # not compatible
query II rowsort label-9553
SELECT + 39 * + COUNT ( * ) col1, 50 AS col2
----
39
50

query I rowsort
SELECT NULLIF ( - 56, - 98 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT CASE - + 51 WHEN + + 79 * + - MAX( - 79 ) + ( + 46 ) THEN NULL ELSE 65 END col0
----
65

skipif mysql # not compatible
query I rowsort label-9555
SELECT CASE - + 51 WHEN + + 79 * + - MAX ( - 79 ) + ( + 46 ) THEN NULL ELSE 65 END col0
----
65

query I rowsort
SELECT + COALESCE ( + - ( - NULLIF ( - 20, 54 ) ), 43, - - 60 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9557
SELECT NULLIF ( - 30, - - 43 * 3 / - + COUNT( * ) - - CAST( NULL AS SIGNED ) + 90 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9557
SELECT NULLIF ( - 30, - - 43 * 3 / - + COUNT ( * ) - - CAST ( NULL AS INTEGER ) + 90 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT - 97 * + 93 * + MIN( DISTINCT 36 ) * 62
----
-20134872

skipif mysql # not compatible
query I rowsort label-9558
SELECT - 97 * + 93 * + MIN ( DISTINCT 36 ) * 62
----
-20134872

query I rowsort
SELECT DISTINCT 97 * 28 * - 69 + - 21
----
-187425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9560
SELECT + 27, - CAST( CASE + 49 WHEN - ( 27 ) THEN + ( 47 ) ELSE NULL END AS SIGNED ) AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-9560
SELECT + 27, - CAST ( CASE + 49 WHEN - ( 27 ) THEN + ( 47 ) ELSE NULL END AS INTEGER ) AS col2
----
27
NULL

query I rowsort
SELECT ALL 72 * + 54 + - 46 col1
----
3842

query II rowsort
SELECT + 28 col2, + 54 AS col2
----
28
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9563
SELECT - - MAX( ALL - 39 ) DIV - 2 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-9563
SELECT - - MAX ( ALL - 39 ) / - 2 AS col0
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9564
SELECT - - ( + SUM( + + 59 ) ) + - MAX( DISTINCT 15 ) - - 15 DIV + 78
----
44

skipif mysql # not compatible
query I rowsort label-9564
SELECT - - ( + SUM ( + + 59 ) ) + - MAX ( DISTINCT 15 ) - - 15 / + 78
----
44

query I rowsort
SELECT ALL - + 39 + - 14 + - 7 col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT - + 69 + - MIN( 98 ) AS col2
----
-167

skipif mysql # not compatible
query I rowsort label-9566
SELECT - + 69 + - MIN ( 98 ) AS col2
----
-167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9567
SELECT + CAST( + - 40 AS SIGNED ) - - NULLIF ( + COALESCE ( - 2, - - 44 ), - 48 - + - 77 ) + + - 79
----
-121

skipif mysql # not compatible
query I rowsort label-9567
SELECT + CAST ( + - 40 AS INTEGER ) - - NULLIF ( + COALESCE ( - 2, - - 44 ), - 48 - + - 77 ) + + - 79
----
-121

query I rowsort
SELECT ALL 62 + 86 + - + 30 AS col2
----
118

query I rowsort
SELECT - 32 + 3 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-9570
SELECT DISTINCT COUNT( * ), + 3 * - + ( - + ( + + CASE + - 79 WHEN + - 58 THEN 17 WHEN + MAX( 21 ) + + 91 * + + COUNT( * ) + + + 32 - - - 74 * + 93 THEN NULL END ) ) + + - 79 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9570
SELECT DISTINCT COUNT ( * ), + 3 * - + ( - + ( + + CASE + - 79 WHEN + - 58 THEN 17 WHEN + MAX ( 21 ) + + 91 * + + COUNT ( * ) + + + 32 - - - 74 * + 93 THEN NULL END ) ) + + - 79 AS col0
----
1
NULL

query I rowsort
SELECT DISTINCT + - 97 + - + 42 + + 98 * 70
----
6721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9572
SELECT - + CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT - + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9573
SELECT - - COUNT( * ) AS col0, 32
----
1
32

skipif mysql # not compatible
query II rowsort label-9573
SELECT - - COUNT ( * ) AS col0, 32
----
1
32

query I rowsort
SELECT + + ( 4 ) + 58 AS col0
----
62

onlyif mysql # aggregate syntax: 
query III rowsort label-9575
SELECT - 6, COUNT( * ) AS col2, + 35 + + 80 AS col0
----
-6
1
115

skipif mysql # not compatible
query III rowsort label-9575
SELECT - 6, COUNT ( * ) AS col2, + 35 + + 80 AS col0
----
-6
1
115

query I rowsort
SELECT ALL - CASE + 83 WHEN - - 4 THEN + + 36 + - + 97 - - 25 + - 36 END * 55 col0
----
NULL

query I rowsort
SELECT - - 93 + + + 29 - - 72
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT + COUNT( ALL - - 15 ) + - - 22 col1
----
23

skipif mysql # not compatible
query I rowsort label-9578
SELECT + COUNT ( ALL - - 15 ) + - - 22 col1
----
23

query I rowsort
SELECT DISTINCT + 54 * + 87 col0
----
4698

query I rowsort
SELECT DISTINCT 98 * 91 col0
----
8918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9581
SELECT CAST( - 38 AS SIGNED ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-9581
SELECT CAST ( - 38 AS INTEGER ) col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT + CAST( NULL AS SIGNED ) * - 20 * - ( ( + ( + 47 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT + CAST ( NULL AS INTEGER ) * - 20 * - ( ( + ( + 47 ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT CAST( + 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-9583
SELECT CAST ( + 42 AS INTEGER )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9584
SELECT + COUNT( * ) + - - 64 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT + COUNT ( * ) + - - 64 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9585
SELECT 20 * - COUNT( * ) + + + 13 - + 45 - 49 + + 56 DIV + - 31 + - + 88
----
-190

skipif mysql # not compatible
query I rowsort label-9585
SELECT 20 * - COUNT ( * ) + + + 13 - + 45 - 49 + + 56 / + - 31 + - + 88
----
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT DISTINCT 32 DIV + 99 * 18
----
0

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT 32 / + 99 * 18
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9587
SELECT ALL 49 DIV - - COUNT( * ) + COUNT( * ) * + 91
----
140

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL 49 / - - COUNT ( * ) + COUNT ( * ) * + 91
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT + 75 * - + MAX( + 1 ) * 89
----
-6675

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT + 75 * - + MAX ( + 1 ) * 89
----
-6675

query I rowsort
SELECT - 55 + 88 AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9590
SELECT - 49 + + 74 + + 36 DIV - COUNT( - 82 ) + + ( + - 21 ) * - ( + 91 ) col1
----
1900

skipif mysql # not compatible
query I rowsort label-9590
SELECT - 49 + + 74 + + 36 / - COUNT ( - 82 ) + + ( + - 21 ) * - ( + 91 ) col1
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT ALL - 36 * - 37 + 5 * - 20 * + 8 * COUNT( * )
----
532

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL - 36 * - 37 + 5 * - 20 * + 8 * COUNT ( * )
----
532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9592
SELECT COALESCE ( - 0, COUNT( * ) + - 99, - 52 + 45 + COUNT( - + 5 ) * 84 + - 11 + CAST( - + AVG ( + + 49 ) AS SIGNED ) + ( + 52 ) * 86 * - 61 * + 18 * - 10 DIV + - 94 + - 49 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9592
SELECT COALESCE ( - 0, COUNT ( * ) + - 99, - 52 + 45 + COUNT ( - + 5 ) * 84 + - 11 + CAST ( - + AVG ( + + 49 ) AS INTEGER ) + ( + 52 ) * 86 * - 61 * + 18 * - 10 / + - 94 + - 49 ) AS col0
----
0

query I rowsort
SELECT + 16 * + 70 * + 38 * - 43 - + - 11 AS col0
----
-1830069

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9594
SELECT DISTINCT + - 74 * + - 91 AS col2, 37 * - COUNT( * ) + - 14 + + - ( - + 41 ) * CAST( NULL AS SIGNED ) * - MIN( - 85 ) AS col2
----
6734
NULL

skipif mysql # not compatible
query II rowsort label-9594
SELECT DISTINCT + - 74 * + - 91 AS col2, 37 * - COUNT ( * ) + - 14 + + - ( - + 41 ) * CAST ( NULL AS INTEGER ) * - MIN ( - 85 ) AS col2
----
6734
NULL

query II rowsort
SELECT - ( + 11 ), 10 AS col2
----
-11
10

query I rowsort
SELECT ALL - + 7 - + + 77 AS col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9597
SELECT 46 - + + 47 DIV 29 * 4 * - CAST( - 98 AS SIGNED ) + + 70 DIV + 24 + - 41
----
-385

skipif mysql # not compatible
query I rowsort label-9597
SELECT 46 - + + 47 / 29 * 4 * - CAST ( - 98 AS INTEGER ) + + 70 / + 24 + - 41
----
-385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT CAST( NULL AS SIGNED ) * + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT CAST ( NULL AS INTEGER ) * + 17 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT ALL - - 32 * 4 * 6 - 61 + + CAST( - 72 AS SIGNED )
----
635

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL - - 32 * 4 * 6 - 61 + + CAST ( - 72 AS INTEGER )
----
635

onlyif mysql # DIV for integer division: 
query I rowsort label-9600
SELECT 35 DIV - ( 59 )
----
0

skipif mysql # not compatible
query I rowsort label-9600
SELECT 35 / - ( 59 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9601
SELECT + 18 * + CAST( - NULLIF ( 91, - ( - 24 ) ) AS SIGNED ) * - - 78 * + + 65 * + ( - - 25 ) - + COUNT( * ) AS col1
----
-207616501

skipif mysql # not compatible
query I rowsort label-9601
SELECT + 18 * + CAST ( - NULLIF ( 91, - ( - 24 ) ) AS INTEGER ) * - - 78 * + + 65 * + ( - - 25 ) - + COUNT ( * ) AS col1
----
-207616501

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL + - 19 - - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + - 19 - - COUNT ( * )
----
-18

query I rowsort
SELECT ALL - 67 * 81 + 93 col1
----
-5334

query I rowsort
SELECT - + ( + 7 )
----
-7

query I rowsort
SELECT 39 * + 86 * 14 * + 72 * + 6 col0
----
20284992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT SUM( ALL - CAST( - + 57 AS SIGNED ) ) + + 66
----
123

skipif mysql # not compatible
query I rowsort label-9606
SELECT SUM ( ALL - CAST ( - + 57 AS INTEGER ) ) + + 66
----
123

query I rowsort
SELECT 58 + 9 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9608
SELECT MAX( DISTINCT - + 5 ) * - 81 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT MAX ( DISTINCT - + 5 ) * - 81 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT DISTINCT + 34 + COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT + 34 + COUNT ( * ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL COUNT( ALL + - 12 ) + 75
----
76

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL COUNT ( ALL + - 12 ) + 75
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9611
SELECT 98 DIV - 88 - 39 * COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-9611
SELECT 98 / - 88 - 39 * COUNT ( * )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9612
SELECT 92 * - CAST( 15 AS SIGNED ) AS col1, + 80 * 36 AS col2
----
-1380
2880

skipif mysql # not compatible
query II rowsort label-9612
SELECT 92 * - CAST ( 15 AS INTEGER ) AS col1, + 80 * 36 AS col2
----
-1380
2880

query I rowsort
SELECT 34 * 68
----
2312

query I rowsort
SELECT DISTINCT 31 + 69 AS col0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9615
SELECT + - 12 AS col0, MIN( ALL - CAST( NULL AS SIGNED ) )
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-9615
SELECT + - 12 AS col0, MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
-12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL + 83 * + 84 * - ( - MAX( + 55 ) )
----
383460

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL + 83 * + 84 * - ( - MAX ( + 55 ) )
----
383460

onlyif mysql # DIV for integer division: 
query I rowsort label-9617
SELECT ALL - 72 DIV + 28 col0
----
-2

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - 72 / + 28 col0
----
-2

query I rowsort
SELECT DISTINCT 65 - - 42 + 18 + - - 90 * - - 99 AS col0
----
9035

query I rowsort
SELECT DISTINCT - + 34 * - 36
----
1224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9620
SELECT ALL CAST( - ( + COALESCE ( 50, - - 99 ) ) AS SIGNED ) - + - CAST( NULL AS SIGNED ) + + 75 + 73, 37 AS col1
----
NULL
37

skipif mysql # not compatible
query II rowsort label-9620
SELECT ALL CAST ( - ( + COALESCE ( 50, - - 99 ) ) AS INTEGER ) - + - CAST ( NULL AS INTEGER ) + + 75 + 73, 37 AS col1
----
NULL
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT ALL - CAST( NULL AS SIGNED ) * + - 37 + + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 37 + + 80 AS col2
----
NULL

query I rowsort
SELECT - 57 + - - 68 AS col1
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9623
SELECT 6 col1, MIN( ALL - - 78 ) AS col2
----
6
78

skipif mysql # not compatible
query II rowsort label-9623
SELECT 6 col1, MIN ( ALL - - 78 ) AS col2
----
6
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT ALL ( + + ( + 84 ) ) * MIN( + + ( 51 ) ) AS col2
----
4284

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL ( + + ( + 84 ) ) * MIN ( + + ( 51 ) ) AS col2
----
4284

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9625
SELECT - 80 + CAST( + + 32 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-9625
SELECT - 80 + CAST ( + + 32 AS INTEGER )
----
-48

query I rowsort
SELECT DISTINCT 68 * - 13 AS col0
----
-884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9627
SELECT DISTINCT CAST( NULL AS SIGNED ), + COALESCE ( + - 86, + 12 + + - 34, COUNT( * ) ) * + 19 + - 40 - ( - 73 ) AS col1
----
NULL
-1601

skipif mysql # not compatible
query II rowsort label-9627
SELECT DISTINCT CAST ( NULL AS INTEGER ), + COALESCE ( + - 86, + 12 + + - 34, COUNT ( * ) ) * + 19 + - 40 - ( - 73 ) AS col1
----
NULL
-1601

query II rowsort
SELECT ALL + 94, + 72 col0
----
94
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT MAX( - - 12 ) + - 82
----
-70

skipif mysql # not compatible
query I rowsort label-9629
SELECT MAX ( - - 12 ) + - 82
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9630
SELECT DISTINCT 85, + COUNT( * ) AS col1
----
85
1

skipif mysql # not compatible
query II rowsort label-9630
SELECT DISTINCT 85, + COUNT ( * ) AS col1
----
85
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT ALL - ( - + 94 ) * - + SUM( ALL + 96 )
----
-9024

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL - ( - + 94 ) * - + SUM ( ALL + 96 )
----
-9024

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT 30 + - + COUNT( * ) + + 3 + + 20 + 47
----
99

skipif mysql # not compatible
query I rowsort label-9632
SELECT 30 + - + COUNT ( * ) + + 3 + + 20 + 47
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9633
SELECT - 83 * + - 55 + - 90 - 62 * 83 / MAX( + 32 ) + CASE COUNT( * ) WHEN ( - 66 ) / AVG ( 20 ) * - - 80 THEN + 76 + + - COUNT( ALL - 28 ) + 35 ELSE NULL END * + 17, - 67 AS col2
----
NULL
-67

skipif mysql # not compatible
query II rowsort label-9633
SELECT - 83 * + - 55 + - 90 - 62 * 83 / MAX ( + 32 ) + CASE COUNT ( * ) WHEN ( - 66 ) / AVG ( 20 ) * - - 80 THEN + 76 + + - COUNT ( ALL - 28 ) + 35 ELSE NULL END * + 17, - 67 AS col2
----
NULL
-67

query I rowsort
SELECT - ( + 33 ) + + 37 + + 89 * 15
----
1339

query I rowsort
SELECT DISTINCT - 74 * - 27
----
1998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT 87 + CAST( - - NULLIF ( - 56, - 8 + + 28 ) AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9636
SELECT 87 + CAST ( - - NULLIF ( - 56, - 8 + + 28 ) AS INTEGER ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT 64 * - 38 * - CASE + + 88 WHEN + - ( + + 60 ) / - 4 THEN + - 28 * MAX( - - 82 ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT 64 * - 38 * - CASE + + 88 WHEN + - ( + + 60 ) / - 4 THEN + - 28 * MAX ( - - 82 ) END col2
----
NULL

query I rowsort
SELECT DISTINCT - 47 + 51 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL 15 + - COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL 15 + - COUNT ( * ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT MIN( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT MIN ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9641
SELECT DISTINCT - 48 + + 37 col1, SUM( 39 ) * + 50
----
-11
1950

skipif mysql # not compatible
query II rowsort label-9641
SELECT DISTINCT - 48 + + 37 col1, SUM ( 39 ) * + 50
----
-11
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL MAX( 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL MAX ( 8 ) AS col0
----
8

query I rowsort
SELECT COALESCE ( + COALESCE ( 25, + 29 ), + 20 )
----
25

query I rowsort
SELECT 12 * 9 * - + 65 col0
----
-7020

query I rowsort
SELECT NULLIF ( - 38, + + 69 + 18 ) AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9646
SELECT COUNT( * ) DIV - + 15 + 93 + 73, 32 * + 86 AS col2
----
166
2752

skipif mysql # not compatible
query II rowsort label-9646
SELECT COUNT ( * ) / - + 15 + 93 + 73, 32 * + 86 AS col2
----
166
2752

query I rowsort
SELECT 93 - 48
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT 99 + + + CASE - 78 WHEN - COALESCE ( - - 56, - 34 + - 20, + + 88 - + - 31 + + - 3 ) THEN NULL WHEN - COUNT( * ) + - 0 - - 19 * - - 1 / + 95 THEN - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT 99 + + + CASE - 78 WHEN - COALESCE ( - - 56, - 34 + - 20, + + 88 - + - 31 + + - 3 ) THEN NULL WHEN - COUNT ( * ) + - 0 - - 19 * - - 1 / + 95 THEN - 0 END
----
NULL

query I rowsort
SELECT 2 * - - 52 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9650
SELECT ALL 90 * CAST( - 93 AS SIGNED ) * - COUNT( DISTINCT - - 85 ) * + 63 + + 93 + - - 87 + 45 * - 11 AS col1
----
526995

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL 90 * CAST ( - 93 AS INTEGER ) * - COUNT ( DISTINCT - - 85 ) * + 63 + + 93 + - - 87 + 45 * - 11 AS col1
----
526995

query I rowsort
SELECT DISTINCT 25 * + 92
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT + - ( - ( - 11 ) ) * + COUNT( DISTINCT + 58 ) + - 67 + - 10 * + 40
----
-478

skipif mysql # not compatible
query I rowsort label-9652
SELECT + - ( - ( - 11 ) ) * + COUNT ( DISTINCT + 58 ) + - 67 + - 10 * + 40
----
-478

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9653
SELECT DISTINCT - + CAST( - 91 AS SIGNED ) * + + 37 * 25 * NULLIF ( + CAST( NULL AS SIGNED ), - SUM( - 83 ) / 3 * - - ( + CAST( NULL AS SIGNED ) ) * 48 * - + 27 + + 71 ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT - + CAST ( - 91 AS INTEGER ) * + + 37 * 25 * NULLIF ( + CAST ( NULL AS INTEGER ), - SUM ( - 83 ) / 3 * - - ( + CAST ( NULL AS INTEGER ) ) * 48 * - + 27 + + 71 ) * 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT + COUNT( DISTINCT 4 )
----
1

skipif mysql # not compatible
query I rowsort label-9654
SELECT + COUNT ( DISTINCT 4 )
----
1

query I rowsort
SELECT - 23 * - - 36 + - 20
----
-848

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT ALL + 11 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-9656
SELECT ALL + 11 / + - 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT + 0 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT + 0 / - 35
----
0

query I rowsort
SELECT DISTINCT 40 * - + 77 + 51 AS col1
----
-3029

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT - MAX( DISTINCT + + ( - 34 ) )
----
34

skipif mysql # not compatible
query I rowsort label-9659
SELECT - MAX ( DISTINCT + + ( - 34 ) )
----
34

query II rowsort
SELECT DISTINCT + 42 + + + 92 AS col1, 10
----
134
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT ALL - 84 + + 54 * 49 + + MIN( DISTINCT + 57 ) - - 84
----
2703

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL - 84 + + 54 * 49 + + MIN ( DISTINCT + 57 ) - - 84
----
2703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9662
SELECT + - CAST( - COUNT( * ) AS SIGNED ) - - CAST( + - COUNT( * ) AS SIGNED ) * - 26
----
27

skipif mysql # not compatible
query I rowsort label-9662
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) - - CAST ( + - COUNT ( * ) AS INTEGER ) * - 26
----
27

query I rowsort
SELECT + 92 * 85 AS col2
----
7820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT DISTINCT AVG ( ALL - 58 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT AVG ( ALL - 58 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ALL 74 + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL 74 + COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL - COUNT( * ) + - 70 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL - COUNT ( * ) + - 70 AS col1
----
-71

query I rowsort
SELECT + ( + 17 ) + 22 - - 99 * + - CASE + 13 WHEN + 63 THEN - - 81 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT DISTINCT 62 + + COUNT( * ) DIV - 73
----
62

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT 62 + + COUNT ( * ) / - 73
----
62

query I rowsort
SELECT + COALESCE ( + 53, - 86, 66 ) * - 79 - + 59
----
-4246

query I rowsort
SELECT ALL + 26 * - + 99 * 27
----
-69498

query I rowsort
SELECT + 2 + + 69 AS col1
----
71

query I rowsort
SELECT - 79 + 51 * + + 6 AS col1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9673
SELECT CAST( NULL AS SIGNED ) AS col0, - 82 AS col2
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-9673
SELECT CAST ( NULL AS INTEGER ) AS col0, - 82 AS col2
----
NULL
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9674
SELECT ALL + 89 AS col1, - 23 - - MAX( ALL - 96 ) - - ( - + 51 ) * + 5
----
89
-374

skipif mysql # not compatible
query II rowsort label-9674
SELECT ALL + 89 AS col1, - 23 - - MAX ( ALL - 96 ) - - ( - + 51 ) * + 5
----
89
-374

onlyif mysql # DIV for integer division: 
query I rowsort label-9675
SELECT - 49 DIV - 40
----
1

skipif mysql # not compatible
query I rowsort label-9675
SELECT - 49 / - 40
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT - 25 + CAST( + 43 AS SIGNED ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9676
SELECT - 25 + CAST ( + 43 AS INTEGER ) AS col2
----
18

query I rowsort
SELECT - NULLIF ( 50, 10 ) * + 29 AS col2
----
-1450

query I rowsort
SELECT ALL + ( ( ( 22 ) ) ) AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT - 98 * 84 - - 47 DIV + 40
----
-8231

skipif mysql # not compatible
query I rowsort label-9679
SELECT - 98 * 84 - - 47 / + 40
----
-8231

query I rowsort
SELECT ( 18 ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9681
SELECT DISTINCT + CAST( + ( + 27 ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT + CAST ( + ( + 27 ) AS INTEGER )
----
27

query I rowsort
SELECT DISTINCT - 82 * - 82 AS col0
----
6724

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT + MIN( ( + 71 ) )
----
71

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT + MIN ( ( + 71 ) )
----
71

query I rowsort
SELECT - 59 * 90 AS col2
----
-5310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT ALL + CAST( - 42 AS SIGNED ) * + 61
----
-2562

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL + CAST ( - 42 AS INTEGER ) * + 61
----
-2562

query I rowsort
SELECT 1 * 42 + - 47 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT SUM( DISTINCT NULLIF ( + 96, + 51 ) ) * ( 23 ) - - ( 48 ) * 68 col0
----
5472

skipif mysql # not compatible
query I rowsort label-9687
SELECT SUM ( DISTINCT NULLIF ( + 96, + 51 ) ) * ( 23 ) - - ( 48 ) * 68 col0
----
5472

query I rowsort
SELECT + NULLIF ( 6, - 34 ) * ( 97 )
----
582

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT - COUNT( * ) + 82
----
81

skipif mysql # not compatible
query I rowsort label-9689
SELECT - COUNT ( * ) + 82
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9690
SELECT + CASE - 9 WHEN COUNT( * ) + + CAST( - 92 - 57 / + 50 AS SIGNED ) THEN 3 * 68 - - 57 WHEN + 64 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT + CASE - 9 WHEN COUNT ( * ) + + CAST ( - 92 - 57 / + 50 AS INTEGER ) THEN 3 * 68 - - 57 WHEN + 64 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT CASE 79 WHEN CAST( - 20 AS SIGNED ) + - 15 / 13 THEN - COALESCE ( - 81, - 71 + + 85, - 9 ) + 14 WHEN COUNT( * ) THEN NULL WHEN 33 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9691
SELECT CASE 79 WHEN CAST ( - 20 AS INTEGER ) + - 15 / 13 THEN - COALESCE ( - 81, - 71 + + 85, - 9 ) + 14 WHEN COUNT ( * ) THEN NULL WHEN 33 THEN NULL END
----
NULL

query I rowsort
SELECT - 16 + - 7 * 88 AS col2
----
-632

query I rowsort
SELECT - ( 44 ) AS col0
----
-44

query I rowsort
SELECT DISTINCT 47 * 86 + - 32 AS col0
----
4010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT ALL COUNT( * ) DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL COUNT ( * ) / 79
----
0

query I rowsort
SELECT + 69 + - 49 AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9697
SELECT ALL 21 * + COUNT( * ) + + 87 DIV 1
----
108

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL 21 * + COUNT ( * ) + + 87 / 1
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9698
SELECT DISTINCT CAST( + CAST( MIN( 34 ) AS SIGNED ) AS SIGNED ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT CAST ( + CAST ( MIN ( 34 ) AS INTEGER ) AS INTEGER ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT COUNT( ALL + 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9699
SELECT COUNT ( ALL + 56 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9700
SELECT ALL + 49 * + COUNT( * ) + 96 DIV + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL + 49 * + COUNT ( * ) + 96 / + COUNT ( * )
----
145

query I rowsort
SELECT + 39 + 92
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT - COALESCE ( + 57, + 87 + COUNT( 7 ) * - 71 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9702
SELECT - COALESCE ( + 57, + 87 + COUNT ( 7 ) * - 71 ) AS col1
----
-57

query I rowsort
SELECT + 15 + - 61 col1
----
-46

query I rowsort
SELECT ALL NULLIF ( + 75, CASE - 84 WHEN ( 94 ) * + 71 + 5 THEN 11 / + 46 END ) - 69 AS col1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9705
SELECT + CAST( NULL AS DECIMAL ) * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT + CAST ( NULL AS REAL ) * + 44
----
NULL

query I rowsort
SELECT + 32 * 38 AS col2
----
1216

query I rowsort
SELECT + NULLIF ( - 90, + 18 ) * 29 AS col2
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT ALL COUNT( * ) * 28
----
28

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL COUNT ( * ) * 28
----
28

query I rowsort
SELECT DISTINCT 26 * - 86
----
-2236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9710
SELECT ALL MIN( + CAST( 43 AS SIGNED ) ) * ( - 20 ) AS col1
----
-860

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL MIN ( + CAST ( 43 AS INTEGER ) ) * ( - 20 ) AS col1
----
-860

query I rowsort
SELECT COALESCE ( + 15, 69 ) * ( + 98 )
----
1470

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9712
SELECT 34 + COALESCE ( + 21, 39 DIV + 47 + 92, 31 ) * CAST( 80 AS SIGNED )
----
1714

skipif mysql # not compatible
query I rowsort label-9712
SELECT 34 + COALESCE ( + 21, 39 / + 47 + 92, 31 ) * CAST ( 80 AS INTEGER )
----
1714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9713
SELECT NULLIF ( 9, 32 * - 64 - - 43 ) * ( COALESCE ( 68, - COUNT( * ), - 85 + - 92 ) DIV COUNT( * ) + COUNT( * ) ) AS col1
----
621

skipif mysql # not compatible
query I rowsort label-9713
SELECT NULLIF ( 9, 32 * - 64 - - 43 ) * ( COALESCE ( 68, - COUNT ( * ), - 85 + - 92 ) / COUNT ( * ) + COUNT ( * ) ) AS col1
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT 43 * COUNT( * ) col1
----
43

skipif mysql # not compatible
query I rowsort label-9714
SELECT 43 * COUNT ( * ) col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT - 89 * 52 - - 64 DIV 28 AS col0
----
-4626

skipif mysql # not compatible
query I rowsort label-9715
SELECT - 89 * 52 - - 64 / 28 AS col0
----
-4626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9716
SELECT 79 DIV COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-9716
SELECT 79 / COUNT ( * )
----
79

query I rowsort
SELECT ALL + 44 * + 12 AS col1
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL 16 / CASE 17 * 75 WHEN 5 THEN + 27 + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL 16 / CASE 17 * 75 WHEN 5 THEN + 27 + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + + 23 * 92 AS col1
----
2116

query I rowsort
SELECT DISTINCT 34 * 2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9721
SELECT 58 DIV + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9721
SELECT 58 / + 80 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9722
SELECT ALL + 78 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + 78 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9723
SELECT + + NULLIF ( + COUNT( * ), - 77 ) * ( + 84 ) + + 58 DIV 72 col0
----
84

skipif mysql # not compatible
query I rowsort label-9723
SELECT + + NULLIF ( + COUNT ( * ), - 77 ) * ( + 84 ) + + 58 / 72 col0
----
84

query I rowsort
SELECT ALL + - 93 * + 50 AS col0
----
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT COUNT( ALL + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-9725
SELECT COUNT ( ALL + 44 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9726
SELECT 35 + CAST( 77 + - 11 AS SIGNED ) DIV + COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-9726
SELECT 35 + CAST ( 77 + - 11 AS INTEGER ) / + COUNT ( * )
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9727
SELECT COUNT( * ) DIV 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9727
SELECT COUNT ( * ) / 89 AS col0
----
0

query I rowsort
SELECT + NULLIF ( 44, 50 ) + - 30
----
14

query I rowsort
SELECT ALL - - 81 + - 59 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT + COUNT( DISTINCT + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9730
SELECT + COUNT ( DISTINCT + 1 ) AS col1
----
1

query I rowsort
SELECT ALL 46 + - 28 * + 11 col1
----
-262

query I rowsort
SELECT ALL + 93 * 63 AS col1
----
5859

query I rowsort
SELECT DISTINCT - 34 + + 32
----
-2

query I rowsort
SELECT ALL + + 93 + - 12 AS col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9735
SELECT + CAST( - CASE - 52 WHEN - 21 * 5 THEN + 38 + 65 * - MIN( DISTINCT + 29 + + 31 ) END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9735
SELECT + CAST ( - CASE - 52 WHEN - 21 * 5 THEN + 38 + 65 * - MIN ( DISTINCT + 29 + + 31 ) END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + - 65, 58 ) AS col0
----
65

query I rowsort
SELECT ALL 57 + - 72 * 4 col0
----
-231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT DISTINCT NULLIF ( + CASE 33 WHEN 97 THEN - 90 WHEN 64 THEN 83 END, - COUNT( * ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT NULLIF ( + CASE 33 WHEN 97 THEN - 90 WHEN 64 THEN 83 END, - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 43 * - 90 AS col0
----
-3870

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT - MAX( DISTINCT 89 ) + - 8
----
-97

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT - MAX ( DISTINCT 89 ) + - 8
----
-97

query I rowsort
SELECT ALL - 71 - - 68
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT + 23 * - + ( + 2 ) - COUNT( * ) * 92 AS col1
----
-138

skipif mysql # not compatible
query I rowsort label-9742
SELECT + 23 * - + ( + 2 ) - COUNT ( * ) * 92 AS col1
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ( + - CASE - 24 WHEN 8 THEN 4 + COUNT( * ) END ) * 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ( + - CASE - 24 WHEN 8 THEN 4 + COUNT ( * ) END ) * 95 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 26 * - - 77
----
-2002

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT DISTINCT 50 DIV - - 21 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT 50 / - - 21 AS col2
----
2

query I rowsort
SELECT ALL 67 - - ( + 87 ) * + 6
----
589

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT COUNT( * ) - - - 78 * - MAX( 30 )
----
2341

skipif mysql # not compatible
query I rowsort label-9747
SELECT COUNT ( * ) - - - 78 * - MAX ( 30 )
----
2341

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9748
SELECT DISTINCT - 81 DIV - + SUM( DISTINCT 18 ) col0
----
4

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT - 81 / - + SUM ( DISTINCT 18 ) col0
----
4

query I rowsort
SELECT 37 - - + 86 AS col0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT 8 DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-9750
SELECT 8 / - 31
----
0

query I rowsort
SELECT 43 * - 21
----
-903

query I rowsort
SELECT DISTINCT 66 * + + ( 8 )
----
528

query I rowsort
SELECT 4 + + - 52
----
-48

query I rowsort
SELECT 50 + - 25
----
25

query I rowsort
SELECT ALL + 4 * + + 20 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT 81 * 73 + + COUNT( * ) AS col0
----
5914

skipif mysql # not compatible
query I rowsort label-9756
SELECT 81 * 73 + + COUNT ( * ) AS col0
----
5914

query I rowsort
SELECT ALL + 57 * + - 24 + - 23 + + 91 AS col2
----
-1300

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL - COUNT( - 43 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL - COUNT ( - 43 ) AS col0
----
-1

query I rowsort
SELECT ALL 70 * 44 + 89 * 79
----
10111

query I rowsort
SELECT 60 * + 31 * 51
----
94860

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL 28 * 89 + + MIN( 48 ) * 78
----
6236

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL 28 * 89 + + MIN ( 48 ) * 78
----
6236

query I rowsort
SELECT - 33 - + 63 col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9763
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) + 0 * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 0 * 36 AS col2
----
NULL

query I rowsort
SELECT ALL - 86 + - 9 * + 6
----
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-9765
SELECT DISTINCT ( - - 97 ) DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT ( - - 97 ) / - 98
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT ALL - 5 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL - 5 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 52 * - - 56 AS col1
----
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL - + MAX( DISTINCT 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - + MAX ( DISTINCT 32 )
----
-32

query I rowsort
SELECT 67 + - 10 AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9770
SELECT 39 * + 40 - - - 51 DIV - 11 AS col2
----
1564

skipif mysql # not compatible
query I rowsort label-9770
SELECT 39 * + 40 - - - 51 / - 11 AS col2
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL 45 - + COUNT( * ) + - 54
----
-10

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL 45 - + COUNT ( * ) + - 54
----
-10

query I rowsort
SELECT 74 * + 0 * - 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT CAST( + - 98 AS SIGNED ) + - 92 AS col1
----
-190

skipif mysql # not compatible
query I rowsort label-9773
SELECT CAST ( + - 98 AS INTEGER ) + - 92 AS col1
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT DISTINCT - CASE 35 WHEN - + 14 * 46 THEN 33 * COUNT( * ) WHEN 82 * 95 + - 80 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT DISTINCT - CASE 35 WHEN - + 14 * 46 THEN 33 * COUNT ( * ) WHEN 82 * 95 + - 80 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 28 - + + 78
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL SUM( ALL + - 64 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL SUM ( ALL + - 64 ) col1
----
-64

query II rowsort
SELECT ALL 95, 81 * + ( 21 ) + 75 * + 31 AS col0
----
95
4026

query I rowsort
SELECT - 56 + 41 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9779
SELECT ALL CASE WHEN 28 >= CAST( NULL AS SIGNED ) THEN + SUM( 7 ) ELSE 83 END AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL CASE WHEN 28 >= CAST ( NULL AS INTEGER ) THEN + SUM ( 7 ) ELSE 83 END AS col2
----
83

query I rowsort
SELECT DISTINCT - 85 * + - 35
----
2975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT - 49 + ( + CAST( 83 AS SIGNED ) ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-9781
SELECT - 49 + ( + CAST ( 83 AS INTEGER ) ) AS col0
----
34

query I rowsort
SELECT + 61 * - - 77
----
4697

query I rowsort
SELECT - 26 + + + 48 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL SUM( + - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL SUM ( + - 46 )
----
-46

query I rowsort
SELECT - 2 + ( - 43 )
----
-45

query I rowsort
SELECT - 7 + - 23 - - - 35 * - 32
----
1090

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT + + CASE + + 85 WHEN + 92 + + CAST( NULL AS SIGNED ) THEN + CAST( COUNT( * ) AS SIGNED ) * - 4 WHEN - COUNT( * ) + 98 THEN SUM( 98 ) ELSE NULL END + - 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT + + CASE + + 85 WHEN + 92 + + CAST ( NULL AS INTEGER ) THEN + CAST ( COUNT ( * ) AS INTEGER ) * - 4 WHEN - COUNT ( * ) + 98 THEN SUM ( 98 ) ELSE NULL END + - 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9788
SELECT DISTINCT 81 col1, - ( SUM( ALL - 2 ) ) + + 19 AS col2
----
81
21

skipif mysql # not compatible
query II rowsort label-9788
SELECT DISTINCT 81 col1, - ( SUM ( ALL - 2 ) ) + + 19 AS col2
----
81
21

query I rowsort
SELECT DISTINCT 68 + - 95
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT - - MIN( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9790
SELECT - - MIN ( 40 )
----
40

query I rowsort
SELECT DISTINCT - + 39 + 28
----
-11

query II rowsort
SELECT - 9, 22 AS col2
----
-9
22

query I rowsort
SELECT + 64 + 79 + 26 * 47 * 63
----
77129

query I rowsort
SELECT ALL - 50 + + ( 52 ) * 72
----
3694

query I rowsort
SELECT - 22 * ( + 69 ) col0
----
-1518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT ALL - 1 * 95 + - ( CAST( NULL AS SIGNED ) ) * + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL - 1 * 95 + - ( CAST ( NULL AS INTEGER ) ) * + 37 AS col1
----
NULL

query I rowsort
SELECT - - 95 + + - ( 20 ) + 49
----
124

query I rowsort
SELECT + + NULLIF ( - + 93, 76 ) + - 7
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ALL + 80 * - COALESCE ( - 56, 14 - - COUNT( * ) ) * - COUNT( * ) + - 8 * + COUNT( * )
----
-4488

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL + 80 * - COALESCE ( - 56, 14 - - COUNT ( * ) ) * - COUNT ( * ) + - 8 * + COUNT ( * )
----
-4488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9800
SELECT DISTINCT - 98 * + - COALESCE ( - + CASE 97 WHEN 95 + - ( 25 ) THEN - 30 WHEN + COUNT( * ) DIV 58 THEN NULL WHEN 79 + 24 THEN COUNT( * ) * + 6 END, + 52 DIV CAST( + 62 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - 98 * + - COALESCE ( - + CASE 97 WHEN 95 + - ( 25 ) THEN - 30 WHEN + COUNT ( * ) / 58 THEN NULL WHEN 79 + 24 THEN COUNT ( * ) * + 6 END, + 52 / CAST ( + 62 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL COUNT( * ) * + - COUNT( * ) * + 9 - 7 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * + 9 - 7 AS col0
----
-16

query I rowsort
SELECT + + 16 * 67 + 12 + 97
----
1181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT + CAST( + - 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-9803
SELECT + CAST ( + - 29 AS INTEGER )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL 41 * - + 16 * COUNT( DISTINCT - 56 )
----
-656

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL 41 * - + 16 * COUNT ( DISTINCT - 56 )
----
-656

onlyif mysql # aggregate syntax: 
query II rowsort label-9805
SELECT DISTINCT + + 46, 61 + - COUNT( * ) * + 95 AS col2
----
46
-34

skipif mysql # not compatible
query II rowsort label-9805
SELECT DISTINCT + + 46, 61 + - COUNT ( * ) * + 95 AS col2
----
46
-34

query I rowsort
SELECT + CASE + 66 WHEN 75 THEN 3 END + - 34 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9807
SELECT ALL NULLIF ( - 82, - CASE - 86 WHEN - 43 THEN - COALESCE ( - 36, MAX( - 37 ) / - ( AVG ( 37 ) ) ) WHEN 24 * 99 THEN NULL END ) * COUNT( * ) - 35 * + COUNT( * ) AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL NULLIF ( - 82, - CASE - 86 WHEN - 43 THEN - COALESCE ( - 36, MAX ( - 37 ) / - ( AVG ( 37 ) ) ) WHEN 24 * 99 THEN NULL END ) * COUNT ( * ) - 35 * + COUNT ( * ) AS col1
----
-117

query II rowsort
SELECT ALL + 26 AS col0, - 68 AS col1
----
26
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT 43 * NULLIF ( 26, - - 60 ) + 37 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT 43 * NULLIF ( 26, - - 60 ) + 37 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 27 * + 28 * + 9
----
6804

query I rowsort
SELECT + 33 * - 4
----
-132

query I rowsort
SELECT ALL + 74 * - - 49 - + 26
----
3600

query I rowsort
SELECT + 97 * 95
----
9215

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9814
SELECT DISTINCT 3 DIV - COUNT( * ) AS col2, - MIN( DISTINCT - 66 ) DIV + MIN( + 40 DIV - 56 + + 97 DIV 81 )
----
-3
66

skipif mysql # not compatible
query II rowsort label-9814
SELECT DISTINCT 3 / - COUNT ( * ) AS col2, - MIN ( DISTINCT - 66 ) / + MIN ( + 40 / - 56 + + 97 / 81 )
----
-3
66

query I rowsort
SELECT + 32 * + 52
----
1664

query I rowsort
SELECT ALL 38 * - 39 * 57 col0
----
-84474

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT + COUNT( - 63 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + COUNT ( - 63 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9818
SELECT - 43 * - 60 col0, - 39 DIV 87
----
2580
0

skipif mysql # not compatible
query II rowsort label-9818
SELECT - 43 * - 60 col0, - 39 / 87
----
2580
0

query I rowsort
SELECT - 2 * - + 78
----
156

query I rowsort
SELECT + 14 - - 62 - - 96
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-9821
SELECT - 78 * + 65 col2, COUNT( * ) - - ( + COUNT( DISTINCT 97 ) ) AS col1
----
-5070
2

skipif mysql # not compatible
query II rowsort label-9821
SELECT - 78 * + 65 col2, COUNT ( * ) - - ( + COUNT ( DISTINCT 97 ) ) AS col1
----
-5070
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9822
SELECT ALL - CAST( + CAST( - - SUM( ALL 47 ) AS SIGNED ) AS SIGNED ) + + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL - CAST ( + CAST ( - - SUM ( ALL 47 ) AS INTEGER ) AS INTEGER ) + + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT + 90 - - CAST( NULL AS SIGNED ) * 98 - 88 + + 89 * 48 * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT + 90 - - CAST ( NULL AS INTEGER ) * 98 - 88 + + 89 * 48 * 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT + 7 * - 0 DIV + 13 * - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9824
SELECT + 7 * - 0 / + 13 * - 50 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9825
SELECT - 66 - + ( 77 ) + + - 59 DIV + 56
----
-144

skipif mysql # not compatible
query I rowsort label-9825
SELECT - 66 - + ( 77 ) + + - 59 / + 56
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9826
SELECT ALL ( 68 ) AS col0, 7 * ( + CAST( 38 AS SIGNED ) )
----
68
266

skipif mysql # not compatible
query II rowsort label-9826
SELECT ALL ( 68 ) AS col0, 7 * ( + CAST ( 38 AS INTEGER ) )
----
68
266

query I rowsort
SELECT ALL ( - 80 ) + + 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT ALL - MIN( + + 19 ) + - + 49 - + 82
----
-150

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL - MIN ( + + 19 ) + - + 49 - + 82
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT DISTINCT - 54 + CAST( + 53 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT - 54 + CAST ( + 53 AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT - - NULLIF ( + - 21, - - 4 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT ALL - 21 * + ( + - ( - 50 ) ) + 40 * CASE + COUNT( * ) WHEN 24 * 18 + + COUNT( * ) * COUNT( * ) THEN 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL - 21 * + ( + - ( - 50 ) ) + 40 * CASE + COUNT ( * ) WHEN 24 * 18 + + COUNT ( * ) * COUNT ( * ) THEN 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT - COUNT( + 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-9832
SELECT - COUNT ( + 50 )
----
-1

query I rowsort
SELECT - - 66 + - 14 + - 45 + + + 44 + + 86
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT DISTINCT + + 61 - - ( - - COUNT( * ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT + + 61 - - ( - - COUNT ( * ) ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL COUNT( ALL - COALESCE ( + 99, - 91 ) ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL COUNT ( ALL - COALESCE ( + 99, - 91 ) ) * COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9836
SELECT ALL + + 19 / + CAST( NULL AS SIGNED ), - 4 AS col2
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-9836
SELECT ALL + + 19 / + CAST ( NULL AS INTEGER ), - 4 AS col2
----
NULL
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9837
SELECT + + CAST( NULL AS SIGNED ) * + + 79 / - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT + + CAST ( NULL AS INTEGER ) * + + 79 / - 71
----
NULL

query I rowsort
SELECT - - 23 - 54 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT - - MAX( DISTINCT - 26 ) * - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-9839
SELECT - - MAX ( DISTINCT - 26 ) * - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL 98 * + 83 * COUNT( * ) AS col0
----
8134

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL 98 * + 83 * COUNT ( * ) AS col0
----
8134

query I rowsort
SELECT ALL + 85 * + ( + 3 ) AS col1
----
255

query I rowsort
SELECT 12 * - - 26
----
312

query I rowsort
SELECT 18 - + 12 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL - MIN( 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - MIN ( 26 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ( + COUNT( * ) ) - - 93 + + - 5 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9845
SELECT ( + COUNT ( * ) ) - - 93 + + - 5 AS col2
----
89

query I rowsort
SELECT 2 + + + 87 + ( 21 )
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-9847
SELECT 13 * + 83 + - COALESCE ( - 75, - - 94 + + 10 * NULLIF ( - ( + 34 ), + 33 ), - 16 ) DIV + 44
----
1080

skipif mysql # not compatible
query I rowsort label-9847
SELECT 13 * + 83 + - COALESCE ( - 75, - - 94 + + 10 * NULLIF ( - ( + 34 ), + 33 ), - 16 ) / + 44
----
1080

query II rowsort
SELECT DISTINCT - 76 AS col0, 73
----
-76
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9849
SELECT DISTINCT SUM( + 62 ) + + 23 AS col0, 56 * - - 95 * + CASE 69 WHEN + 3 + 93 / + 37 THEN - 32 * 66 END AS col0
----
85
NULL

skipif mysql # not compatible
query II rowsort label-9849
SELECT DISTINCT SUM ( + 62 ) + + 23 AS col0, 56 * - - 95 * + CASE 69 WHEN + 3 + 93 / + 37 THEN - 32 * 66 END AS col0
----
85
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT 43 + MIN( + + 68 ) * + + 76 col2
----
5211

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT 43 + MIN ( + + 68 ) * + + 76 col2
----
5211

query I rowsort
SELECT DISTINCT 37 * 15
----
555

onlyif mysql # DIV for integer division: 
query I rowsort label-9852
SELECT ALL COALESCE ( 12, 76 DIV 25 ) + + + 64 - + ( ( + 94 ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL COALESCE ( 12, 76 / 25 ) + + + 64 - + ( ( + 94 ) ) AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9853
SELECT ALL - 51 + NULLIF ( - - 37, - ( CAST( NULL AS DECIMAL ) ) * 37 + + 50 * 37 ) * MIN( DISTINCT 86 + - 63 * + 45 ) AS col2
----
-101764

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL - 51 + NULLIF ( - - 37, - ( CAST ( NULL AS REAL ) ) * 37 + + 50 * 37 ) * MIN ( DISTINCT 86 + - 63 * + 45 ) AS col2
----
-101764

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ( + COUNT( * ) ) + - COUNT( 98 ) + - 10 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9854
SELECT ( + COUNT ( * ) ) + - COUNT ( 98 ) + - 10 AS col0
----
-10

query I rowsort
SELECT ALL NULLIF ( + - 67, - 71 )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9856
SELECT + SUM( ALL + 56 ) DIV + - 8 + + - 99 - 1
----
-107

skipif mysql # not compatible
query I rowsort label-9856
SELECT + SUM ( ALL + 56 ) / + - 8 + + - 99 - 1
----
-107

query I rowsort
SELECT + 37 + + 93 + - 35
----
95

query I rowsort
SELECT + 77 * 42 AS col0
----
3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9859
SELECT + CAST( 80 AS SIGNED ) + - - COUNT( * ) + - 38 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9859
SELECT + CAST ( 80 AS INTEGER ) + - - COUNT ( * ) + - 38 AS col2
----
43

query I rowsort
SELECT 89 + + 8 * + 13 * 62 * + 19
----
122601

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT - 4 DIV + ( + ( + - 20 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9861
SELECT - 4 / + ( + ( + - 20 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT DISTINCT COALESCE ( + MAX( ALL + 27 ), + COUNT( * ), - 9 * COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT COALESCE ( + MAX ( ALL + 27 ), + COUNT ( * ), - 9 * COUNT ( * ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT MIN( + 52 ) + 28
----
80

skipif mysql # not compatible
query I rowsort label-9863
SELECT MIN ( + 52 ) + 28
----
80

query I rowsort
SELECT DISTINCT 19 - + 39 AS col1
----
-20

query I rowsort
SELECT - ( - + 48 ) AS col1
----
48

query I rowsort
SELECT - + 20 col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT + COUNT( * ) * + - 61 * - + 72 AS col0
----
4392

skipif mysql # not compatible
query I rowsort label-9867
SELECT + COUNT ( * ) * + - 61 * - + 72 AS col0
----
4392

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT 84 + + + 84 - - 1 + + - 46 + + - ( 8 ) * + COUNT( ALL 92 )
----
115

skipif mysql # not compatible
query I rowsort label-9868
SELECT 84 + + + 84 - - 1 + + - 46 + + - ( 8 ) * + COUNT ( ALL 92 )
----
115

query II rowsort
SELECT ALL - - 3, 24 col2
----
3
24

query I rowsort
SELECT DISTINCT 28 * + 67 AS col1
----
1876

query I rowsort
SELECT 12 * - 12 * - 60
----
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL + MIN( + + 66 ) + - 56 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + MIN ( + + 66 ) + - 56 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT - 82 * - 93 + - + 96 * + 32 + COUNT( * ) + COUNT( * ) * COUNT( * )
----
4556

skipif mysql # not compatible
query I rowsort label-9873
SELECT - 82 * - 93 + - + 96 * + 32 + COUNT ( * ) + COUNT ( * ) * COUNT ( * )
----
4556

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL COUNT( * ) + 4 * + + SUM( ALL + 30 ) - + + 53
----
68

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL COUNT ( * ) + 4 * + + SUM ( ALL + 30 ) - + + 53
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT 45 DIV + - 45 + - - 53 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9875
SELECT 45 / + - 45 + - - 53 AS col0
----
52

query II rowsort
SELECT ALL - 63 AS col0, 94
----
-63
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT ALL + 54 DIV - + 97
----
0

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL + 54 / - + 97
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9878
SELECT 2 DIV ( - COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-9878
SELECT 2 / ( - COUNT ( * ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9879
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) - MAX( DISTINCT - 72 ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9879
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) - MAX ( DISTINCT - 72 ) * 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9880
SELECT + 45, COUNT( * ) AS col0
----
45
1

skipif mysql # not compatible
query II rowsort label-9880
SELECT + 45, COUNT ( * ) AS col0
----
45
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9881
SELECT ALL - 81 + + + COUNT( * ) - + - 51 + + CAST( NULL AS DECIMAL ) + + - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL - 81 + + + COUNT ( * ) - + - 51 + + CAST ( NULL AS REAL ) + + - 48 AS col0
----
NULL

query II rowsort
SELECT + 0 AS col0, 89
----
0
89

query I rowsort
SELECT 27 * + 4 * + 48
----
5184

query I rowsort
SELECT DISTINCT - 36 + - 33 + + + 22 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-9885
SELECT DISTINCT 96 + + 35 + + COUNT( * ) * + 51, 57 * + 25 AS col1
----
182
1425

skipif mysql # not compatible
query II rowsort label-9885
SELECT DISTINCT 96 + + 35 + + COUNT ( * ) * + 51, 57 * + 25 AS col1
----
182
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT DISTINCT + 64 + + 70 + + - COUNT( * ) + + COUNT( * ) - - - 49 * + + ( - 41 ) * + 92
----
184962

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT + 64 + + 70 + + - COUNT ( * ) + + COUNT ( * ) - - - 49 * + + ( - 41 ) * + 92
----
184962

query I rowsort
SELECT 27 + - - 63 AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL COUNT( + + 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL COUNT ( + + 67 ) AS col0
----
1

query I rowsort
SELECT 36 + + - 15
----
21

query II rowsort
SELECT 17, 81 AS col1
----
17
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT ALL NULLIF ( - 81, - - 88 ) - - + NULLIF ( + COUNT( DISTINCT + 42 ), + 68 + - COALESCE ( 88, 81 ) ) - - 5 * 32
----
80

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL NULLIF ( - 81, - - 88 ) - - + NULLIF ( + COUNT ( DISTINCT + 42 ), + 68 + - COALESCE ( 88, 81 ) ) - - 5 * 32
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT - 75 - + COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9892
SELECT - 75 - + COUNT ( * ) AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9893
SELECT MIN( ALL 6 ) * ( 21 ) col2, - 43 * ( CASE - 4 WHEN - 21 THEN + COUNT( * ) * + ( 31 ) WHEN 87 + COALESCE ( 21, CAST( ( 8 ) AS SIGNED ) / + 64 ) * 9 THEN NULL END ) AS col2
----
126
NULL

skipif mysql # not compatible
query II rowsort label-9893
SELECT MIN ( ALL 6 ) * ( 21 ) col2, - 43 * ( CASE - 4 WHEN - 21 THEN + COUNT ( * ) * + ( 31 ) WHEN 87 + COALESCE ( 21, CAST ( ( 8 ) AS INTEGER ) / + 64 ) * 9 THEN NULL END ) AS col2
----
126
NULL

query I rowsort
SELECT 73 - 45
----
28

query I rowsort
SELECT DISTINCT ( - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT 50 * COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9896
SELECT 50 * COUNT ( * ) AS col1
----
50

query I rowsort
SELECT DISTINCT - 22 * - 63
----
1386

query I rowsort
SELECT + 68 + + 87 * - 61 col1
----
-5239

query I rowsort
SELECT ALL - 78 * + 25 * - 78 AS col2
----
152100

query I rowsort
SELECT 73 * 52
----
3796

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT + CASE + 64 WHEN + ( + + 83 ) * COUNT( * ) + - 0 + 95 * 49 * + 78 THEN 74 / - 91 END - - MAX( ALL 76 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT + CASE + 64 WHEN + ( + + 83 ) * COUNT ( * ) + - 0 + 95 * 49 * + 78 THEN 74 / - 91 END - - MAX ( ALL 76 ) AS col1
----
NULL

query I rowsort
SELECT + + 6 * - 73
----
-438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9903
SELECT + ( - - 28 ) + - CAST( NULL AS SIGNED ) - 68 + + 65 + 36 + - COUNT( * ) * MAX( ALL 87 ) * 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT + ( - - 28 ) + - CAST ( NULL AS INTEGER ) - 68 + + 65 + 36 + - COUNT ( * ) * MAX ( ALL 87 ) * 63 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 13, + NULLIF ( - 65, + + 35 ) * - + ( 80 ) AS col1
----
13
5200

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL - COUNT( * ) + - ( - NULLIF ( - 57, - 45 / + NULLIF ( 70, - 89 ) - 89 * - 41 ) ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - COUNT ( * ) + - ( - NULLIF ( - 57, - 45 / + NULLIF ( 70, - 89 ) - 89 * - 41 ) ) AS col2
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9906
SELECT + + 56 DIV ( 33 ) DIV - MAX( + + 70 ) - - ( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9906
SELECT + + 56 / ( 33 ) / - MAX ( + + 70 ) - - ( 82 )
----
82

query I rowsort
SELECT ALL + 92 * - ( - 65 ) + + 49 AS col1
----
6029

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT COALESCE ( + COUNT( * ), + 18, + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9908
SELECT COALESCE ( + COUNT ( * ), + 18, + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9909
SELECT + 21 + - - 42, - SUM( - 36 ) + + 87 AS col2
----
63
123

skipif mysql # not compatible
query II rowsort label-9909
SELECT + 21 + - - 42, - SUM ( - 36 ) + + 87 AS col2
----
63
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9910
SELECT + 39 - 25 * - - COUNT( * ) DIV - 89
----
39

skipif mysql # not compatible
query I rowsort label-9910
SELECT + 39 - 25 * - - COUNT ( * ) / - 89
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - COUNT( * ) * - - ( + + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-9911
SELECT - COUNT ( * ) * - - ( + + 89 )
----
-89

query I rowsort
SELECT + 15 + - 55
----
-40

query III rowsort
SELECT + NULLIF ( 91, 5 ) AS col2, - 27 * + + 40, 72 + 31 col1
----
91
-1080
103

query I rowsort
SELECT NULLIF ( - 52, - 6 * 45 )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9915
SELECT DISTINCT - 21 * - 44 + ( CAST( + 79 AS SIGNED ) )
----
1003

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT - 21 * - 44 + ( CAST ( + 79 AS INTEGER ) )
----
1003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9916
SELECT COALESCE ( 12, - - 62 + + CAST( NULL AS SIGNED ) + - 49 DIV + + ( + + COUNT( * ) ) * COUNT( * ) + + CASE WHEN ( - 38 ) NOT BETWEEN 74 + 78 AND ( + 87 ) DIV AVG ( 48 + - 44 DIV + 68 ) THEN - CASE 69 WHEN COUNT( * ) THEN COUNT( * ) + COUNT( * ) ELSE NULL END WHEN NOT - COUNT( * ) + 16 < - 18 THEN NULL END ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9916
SELECT COALESCE ( 12, - - 62 + + CAST ( NULL AS INTEGER ) + - 49 / + + ( + + COUNT ( * ) ) * COUNT ( * ) + + CASE WHEN ( - 38 ) NOT BETWEEN 74 + 78 AND ( + 87 ) / AVG ( 48 + - 44 / + 68 ) THEN - CASE 69 WHEN COUNT ( * ) THEN COUNT ( * ) + COUNT ( * ) ELSE NULL END WHEN NOT - COUNT ( * ) + 16 < - 18 THEN NULL END ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL 95 * - 64 * - + MAX( - 64 ) * + + ( COALESCE ( - 57, - 18 ) ) + - 68 AS col1
----
22179772

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL 95 * - 64 * - + MAX ( - 64 ) * + + ( COALESCE ( - 57, - 18 ) ) + - 68 AS col1
----
22179772

onlyif mysql # aggregate syntax: 
query II rowsort label-9918
SELECT ALL + SUM( ALL - 33 ), - ( - 12 ) + MIN( 77 ) AS col1
----
-33
89

skipif mysql # not compatible
query II rowsort label-9918
SELECT ALL + SUM ( ALL - 33 ), - ( - 12 ) + MIN ( 77 ) AS col1
----
-33
89

query I rowsort
SELECT 87 * - 10 + + 12
----
-858

query I rowsort
SELECT - 37 + - 66 AS col0
----
-103

query II rowsort
SELECT - 89 + - 71, + COALESCE ( 93, - ( + 2 ) + - + 90 ) * 17 AS col0
----
-160
1581

query I rowsort
SELECT ALL - 87 * - 41 col2
----
3567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9923
SELECT - 1 + + COUNT( * ) + CAST( NULL AS SIGNED ) + - - 60 - - - 47 * - 25 * + 46 + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9923
SELECT - 1 + + COUNT ( * ) + CAST ( NULL AS INTEGER ) + - - 60 - - - 47 * - 25 * + 46 + 77 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT + - 23 * - MIN( DISTINCT + 87 ) + 60 + + - 97 - + + CAST( NULL AS SIGNED ) - - + 8 * MIN( 97 ) / + SUM( DISTINCT 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT + - 23 * - MIN ( DISTINCT + 87 ) + 60 + + - 97 - + + CAST ( NULL AS INTEGER ) - - + 8 * MIN ( 97 ) / + SUM ( DISTINCT 52 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9925
SELECT DISTINCT - + 38 DIV + 82 + + + 49
----
49

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT - + 38 / + 82 + + + 49
----
49

query I rowsort
SELECT ALL + 42 * - 87
----
-3654

query I rowsort
SELECT ALL + 82 * - 53 + + 39
----
-4307

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT + 22 + + CASE + 72 WHEN - - 22 THEN - - 18 - ( - COUNT( * ) ) WHEN 64 + - 38 * - 73 THEN + 28 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT + 22 + + CASE + 72 WHEN - - 22 THEN - - 18 - ( - COUNT ( * ) ) WHEN 64 + - 38 * - 73 THEN + 28 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 36 + NULLIF ( + + ( + 55 ), + + 53 )
----
91

query I rowsort
SELECT - 75 * 39 AS col0
----
-2925

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT + + COUNT( * ) * + + 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9931
SELECT + + COUNT ( * ) * + + 89 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT + COALESCE ( - 32, - 5, + 49, 0 * + MIN( ALL - 90 ) + + ( COUNT( * ) ) * + 42 ) + - COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + COALESCE ( - 32, - 5, + 49, 0 * + MIN ( ALL - 90 ) + + ( COUNT ( * ) ) * + 42 ) + - COUNT ( * ) AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9933
SELECT ALL + 66 * 40 DIV - NULLIF ( - 22, - - CASE 96 WHEN + 4 THEN MAX( 84 ) END + 12 )
----
120

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL + 66 * 40 / - NULLIF ( - 22, - - CASE 96 WHEN + 4 THEN MAX ( 84 ) END + 12 )
----
120

query I rowsort
SELECT + + 60 + 24 * + 73
----
1812

query II rowsort
SELECT ALL + 97 + COALESCE ( - + 65, + 32, - + 0 ) AS col1, + 97 * + 76 * - ( - 87 ) + 57 col0
----
32
641421

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT + COUNT( * ) + - + 67 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9936
SELECT + COUNT ( * ) + - + 67 AS col0
----
-66

query I rowsort
SELECT ALL ( 28 ) + + 69 AS col2
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-9938
SELECT + 3 + - 44 + - 55, - 76 * + + 65 * - 16 + + 32 + + - 85 - + 6 * ( + 32 DIV + ( 85 ) ) DIV COALESCE ( - 86, + 46 ) AS col2
----
-96
78987

skipif mysql # not compatible
query II rowsort label-9938
SELECT + 3 + - 44 + - 55, - 76 * + + 65 * - 16 + + 32 + + - 85 - + 6 * ( + 32 / + ( 85 ) ) / COALESCE ( - 86, + 46 ) AS col2
----
-96
78987

query I rowsort
SELECT + 15 * + - 99 col1
----
-1485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT CAST( - 8 AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9940
SELECT CAST ( - 8 AS INTEGER ) AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9941
SELECT DISTINCT - 77 DIV 60 + 6
----
5

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT - 77 / 60 + 6
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT ALL 23 DIV + 16 - 28 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL 23 / + 16 - 28 AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9943
SELECT CAST( 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-9943
SELECT CAST ( 40 AS INTEGER )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT CAST( - + 84 AS SIGNED ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9944
SELECT CAST ( - + 84 AS INTEGER ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT - COUNT( * ) + + 69
----
68

skipif mysql # not compatible
query I rowsort label-9945
SELECT - COUNT ( * ) + + 69
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + ( + COALESCE ( + 95, + ( - ( + ( - MIN( - 72 ) ) ) ) ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9946
SELECT + ( + COALESCE ( + 95, + ( - ( + ( - MIN ( - 72 ) ) ) ) ) ) AS col1
----
95

query I rowsort
SELECT - 14 + 16
----
2

query I rowsort
SELECT + 25 * + 67 AS col0
----
1675

query I rowsort
SELECT - 31 * - 23 * + 25 col0
----
17825

query II rowsort
SELECT + 65 col1, ( - + 68 ) AS col0
----
65
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT + CAST( - + 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-9951
SELECT + CAST ( - + 75 AS INTEGER )
----
-75

query I rowsort
SELECT - 66 * + 39 AS col2
----
-2574

query I rowsort
SELECT ALL 83 * - 42 AS col1
----
-3486

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT + SUM( - - 98 ) * - COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-9954
SELECT + SUM ( - - 98 ) * - COUNT ( * )
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT + CAST( + 53 AS SIGNED ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9955
SELECT + CAST ( + 53 AS INTEGER ) AS col2
----
53

query I rowsort
SELECT DISTINCT - 44 * + 23 AS col0
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - - 33 * + MIN( ALL ( + 70 ) ) AS col2
----
2310

skipif mysql # not compatible
query I rowsort label-9957
SELECT - - 33 * + MIN ( ALL ( + 70 ) ) AS col2
----
2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9958
SELECT ALL + - NULLIF ( MIN( 16 ), + COUNT( * ) + CASE - CAST( NULL AS SIGNED ) WHEN + ( - 1 ) * 80 THEN 25 / ( 7 ) + ( 34 ) END + ( 89 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL + - NULLIF ( MIN ( 16 ), + COUNT ( * ) + CASE - CAST ( NULL AS INTEGER ) WHEN + ( - 1 ) * 80 THEN 25 / ( 7 ) + ( 34 ) END + ( 89 ) )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9959
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, COALESCE ( - 72, COUNT( * ) ) AS col2
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-9959
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, COALESCE ( - 72, COUNT ( * ) ) AS col2
----
NULL
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + + 5 * + 44 - - COUNT( + 29 ) * - 30 AS col1
----
190

skipif mysql # not compatible
query I rowsort label-9960
SELECT + + 5 * + 44 - - COUNT ( + 29 ) * - 30 AS col1
----
190

query I rowsort
SELECT + 37 + - + 80
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9962
SELECT - COALESCE ( 51, + SUM( + + 60 ) * COUNT( * ) * - + MIN( - 62 ) * 59 + 97 )
----
-51

skipif mysql # not compatible
query I rowsort label-9962
SELECT - COALESCE ( 51, + SUM ( + + 60 ) * COUNT ( * ) * - + MIN ( - 62 ) * 59 + 97 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9963
SELECT - 31 * 1 * - NULLIF ( 90, + 59 ) + 68 + - + 28 - COUNT( DISTINCT - 98 ) * ( COUNT( 80 ) * - 26 ) + CAST( NULL AS SIGNED ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT - 31 * 1 * - NULLIF ( 90, + 59 ) + 68 + - + 28 - COUNT ( DISTINCT - 98 ) * ( COUNT ( 80 ) * - 26 ) + CAST ( NULL AS INTEGER ) * 16
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9964
SELECT DISTINCT 69 AS col0, + CAST( NULL AS DECIMAL ) + 36 + 40 col1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-9964
SELECT DISTINCT 69 AS col0, + CAST ( NULL AS REAL ) + 36 + 40 col1
----
69
NULL

query II rowsort
SELECT - 97, + 39 AS col0
----
-97
39

query II rowsort
SELECT - - 72, 22 + 42 AS col0
----
72
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT + + CASE - + 76 WHEN - 12 + + 79 THEN + - 66 * - 2 * - 20 END * - COUNT( * ) - - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT + + CASE - + 76 WHEN - 12 + + 79 THEN + - 66 * - 2 * - 20 END * - COUNT ( * ) - - 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT DISTINCT - - COUNT( * ) + + 16 + + - 95 + + - 47, 37 AS col2
----
-125
37

skipif mysql # not compatible
query II rowsort label-9968
SELECT DISTINCT - - COUNT ( * ) + + 16 + + - 95 + + - 47, 37 AS col2
----
-125
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9969
SELECT ALL + 1 DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL + 1 / - 78 AS col2
----
0

query I rowsort
SELECT ALL - + 81 + + 21 AS col1
----
-60

query I rowsort
SELECT ALL - - 56 + 4
----
60

query I rowsort
SELECT ALL 53 + - - 11 * + + 70
----
823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9973
SELECT DISTINCT - COUNT( * ) AS col0, - CAST( + 56 AS SIGNED ) AS col0
----
-1
-56

skipif mysql # not compatible
query II rowsort label-9973
SELECT DISTINCT - COUNT ( * ) AS col0, - CAST ( + 56 AS INTEGER ) AS col0
----
-1
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT - - CASE + COUNT( * ) WHEN 84 * + + 83 THEN NULL ELSE + + 45 * + 98 + + - ( - - 74 ) * - COUNT( * ) END
----
4484

skipif mysql # not compatible
query I rowsort label-9974
SELECT - - CASE + COUNT ( * ) WHEN 84 * + + 83 THEN NULL ELSE + + 45 * + 98 + + - ( - - 74 ) * - COUNT ( * ) END
----
4484

query I rowsort
SELECT - ( + 11 ) - + 68 AS col1
----
-79

query I rowsort
SELECT + 45 * 42 AS col0
----
1890

onlyif mysql # aggregate syntax: 
query II rowsort label-9977
SELECT ALL - 49 + 7 AS col2, - MIN( - 12 ) * + 15 + COUNT( * ) + - COUNT( * ) AS col0
----
-42
180

skipif mysql # not compatible
query II rowsort label-9977
SELECT ALL - 49 + 7 AS col2, - MIN ( - 12 ) * + 15 + COUNT ( * ) + - COUNT ( * ) AS col0
----
-42
180

onlyif mysql # aggregate syntax: 
query II rowsort label-9978
SELECT ALL - ( + 70 ) + - MAX( 92 ) AS col2, + 65 - 44
----
-162
21

skipif mysql # not compatible
query II rowsort label-9978
SELECT ALL - ( + 70 ) + - MAX ( 92 ) AS col2, + 65 - 44
----
-162
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT DISTINCT 21 * - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT 21 * - COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9980
SELECT ALL - COUNT( * ) DIV - ( - 89 )
----
0

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL - COUNT ( * ) / - ( - 89 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT 53 * + ( COUNT( * ) ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9981
SELECT 53 * + ( COUNT ( * ) ) AS col1
----
53

query I rowsort
SELECT DISTINCT 73 * + + 96
----
7008

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT - 56 DIV ( - ( + 74 ) ) * + 5 * - ( + ( + 13 ) ) + 64 * 98 AS col0
----
6272

skipif mysql # not compatible
query I rowsort label-9983
SELECT - 56 / ( - ( + 74 ) ) * + 5 * - ( + ( + 13 ) ) + 64 * 98 AS col0
----
6272

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT 36 + + MAX( + 74 )
----
110

skipif mysql # not compatible
query I rowsort label-9984
SELECT 36 + + MAX ( + 74 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL 20 * + - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL 20 * + - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT 87 * - 52 + - COUNT( * ) * - 83 * - + 54
----
-9006

skipif mysql # not compatible
query I rowsort label-9986
SELECT 87 * - 52 + - COUNT ( * ) * - 83 * - + 54
----
-9006

query I rowsort
SELECT 88 * + 82 * - 63 AS col2
----
-454608

query I rowsort
SELECT 71 + 57
----
128

query I rowsort
SELECT 78 * + - 85 * 65 * - 97 AS col2
----
41802150

query I rowsort
SELECT DISTINCT - ( + 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT ALL - - COUNT( + ( 82 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL - - COUNT ( + ( 82 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9992
SELECT + NULLIF ( + CAST( - MAX( - - 73 ) AS SIGNED ), CASE COUNT( * ) WHEN + 0 THEN 79 END )
----
-73

skipif mysql # not compatible
query I rowsort label-9992
SELECT + NULLIF ( + CAST ( - MAX ( - - 73 ) AS INTEGER ), CASE COUNT ( * ) WHEN + 0 THEN 79 END )
----
-73

query I rowsort
SELECT + ( - - 21 ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT - - 41 * 61 + 97 + + - 90 + - 67 * SUM( ALL - 37 ) * + - 34
----
-81778

skipif mysql # not compatible
query I rowsort label-9994
SELECT - - 41 * 61 + 97 + + - 90 + - 67 * SUM ( ALL - 37 ) * + - 34
----
-81778

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + COUNT( * ) + 1 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9995
SELECT + COUNT ( * ) + 1 AS col2
----
2

query I rowsort
SELECT ALL + 41 + 55
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9997
SELECT ALL 40 + + - 61 AS col1, MIN( DISTINCT - 64 ) * + 84 + ( + 51 ) + + NULLIF ( + - 13, - 30 ) - + 4 AS col2
----
-21
-5342

skipif mysql # not compatible
query II rowsort label-9997
SELECT ALL 40 + + - 61 AS col1, MIN ( DISTINCT - 64 ) * + 84 + ( + 51 ) + + NULLIF ( + - 13, - 30 ) - + 4 AS col2
----
-21
-5342

onlyif mysql # aggregate syntax: 
query II rowsort label-9998
SELECT - 84 + - 23, + SUM( ALL + 80 ) + 0 AS col1
----
-107
80

skipif mysql # not compatible
query II rowsort label-9998
SELECT - 84 + - 23, + SUM ( ALL + 80 ) + 0 AS col1
----
-107
80

query I rowsort
SELECT ALL - ( 72 ) * - - 0 + 82 - + 32
----
50

