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)

query I rowsort
SELECT - 46 + + 46 AS col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2
SELECT ALL CASE CAST( NULL AS DECIMAL ) WHEN - 52 THEN 52 WHEN 44 THEN 53 + + ( + 59 + - 46 ) * - CAST( + 26 AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL CASE CAST ( NULL AS REAL ) WHEN - 52 THEN 52 WHEN 44 THEN 53 + + ( + 59 + - 46 ) * - CAST ( + 26 AS INTEGER ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT - COALESCE ( + COUNT( * ), - 78 ) + 91 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3
SELECT - COALESCE ( + COUNT ( * ), - 78 ) + 91 AS col2
----
90

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6
SELECT - NULLIF ( - SUM( ALL + CAST( 14 AS SIGNED ) ), MIN( ALL 14 ) + SUM( COALESCE ( 90, + 46 ) - - 96 ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6
SELECT - NULLIF ( - SUM ( ALL + CAST ( 14 AS INTEGER ) ), MIN ( ALL 14 ) + SUM ( COALESCE ( 90, + 46 ) - - 96 ) ) AS col1
----
14

query I rowsort
SELECT - 92 + - 5 AS col2
----
-97

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

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

query I rowsort
SELECT ALL CASE + - 94 WHEN - 7 * - 35 THEN - ( + 53 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-10
SELECT 14 AS col0, + 98 * + ( COALESCE ( + 48, + COUNT( DISTINCT 68 ), + 89, + 48 + 8 ) ) * 50 - 45 * MIN( 68 )
----
14
232140

skipif mysql # not compatible
query II rowsort label-10
SELECT 14 AS col0, + 98 * + ( COALESCE ( + 48, + COUNT ( DISTINCT 68 ), + 89, + 48 + 8 ) ) * 50 - 45 * MIN ( 68 )
----
14
232140

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT ALL - 83 DIV - 12
----
6

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL - 83 / - 12
----
6

query I rowsort
SELECT - 56 / CASE + 41 WHEN - 98 / - 24 THEN NULL WHEN 83 - + 41 THEN - 12 END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-14
SELECT ALL COALESCE ( - COUNT( * ), - + COALESCE ( - COUNT( * ), - 98 ) + 9 * - 90 ) * + ( + COUNT( * ) * MIN( - COALESCE ( ( + 22 ), CAST( + 25 AS SIGNED ) ) * 52 ) - + 79 * + 9 )
----
1855

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL COALESCE ( - COUNT ( * ), - + COALESCE ( - COUNT ( * ), - 98 ) + 9 * - 90 ) * + ( + COUNT ( * ) * MIN ( - COALESCE ( ( + 22 ), CAST ( + 25 AS INTEGER ) ) * 52 ) - + 79 * + 9 )
----
1855

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-15
SELECT + COUNT( * ) AS col0, + 26 + + NULLIF ( - 16, CAST( - 12 AS SIGNED ) ) AS col0
----
1
10

skipif mysql # not compatible
query II rowsort label-15
SELECT + COUNT ( * ) AS col0, + 26 + + NULLIF ( - 16, CAST ( - 12 AS INTEGER ) ) AS col0
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT + MIN( ALL - - 42 ) * - 16 - - COUNT( * ) col0
----
-671

skipif mysql # not compatible
query I rowsort label-16
SELECT + MIN ( ALL - - 42 ) * - 16 - - COUNT ( * ) col0
----
-671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-17
SELECT + + 60 * + 65 + COUNT( * ) DIV 41
----
3900

skipif mysql # not compatible
query I rowsort label-17
SELECT + + 60 * + 65 + COUNT ( * ) / 41
----
3900

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT ( - 62 ) DIV + + 90 - 90 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-19
SELECT ( - 62 ) / + + 90 - 90 AS col1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT - 86 DIV + 40 col2
----
-2

skipif mysql # not compatible
query I rowsort label-20
SELECT - 86 / + 40 col2
----
-2

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT ALL + + 2 * + + 28 * - - CAST( NULL AS SIGNED ) * 24 + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL + + 2 * + + 28 * - - CAST ( NULL AS INTEGER ) * 24 + + 71
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-24
SELECT ALL + - ( + CAST( CAST( + 19 AS SIGNED ) AS SIGNED ) ) * - 63 AS col2
----
1197

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL + - ( + CAST ( CAST ( + 19 AS INTEGER ) AS INTEGER ) ) * - 63 AS col2
----
1197

onlyif mysql # aggregate syntax: 
query II rowsort label-25
SELECT DISTINCT + + COUNT( * ) AS col2, - 95 * 81
----
1
-7695

skipif mysql # not compatible
query II rowsort label-25
SELECT DISTINCT + + COUNT ( * ) AS col2, - 95 * 81
----
1
-7695

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT ALL + 59 * - COUNT( * ) * + 46 + 12 col1
----
-2702

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL + 59 * - COUNT ( * ) * + 46 + 12 col1
----
-2702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-27
SELECT + 10 * + 51 / 27 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT + 10 * + 51 / 27 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 16 * 47 + - 92 AS col2
----
-844

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

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

query I rowsort
SELECT ALL 33 * - + 76
----
-2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-31
SELECT + 2 * + - 2 + - MIN( + 33 ) - + CAST( - 91 - 75 * - 10 AS SIGNED ) AS col0
----
-696

skipif mysql # not compatible
query I rowsort label-31
SELECT + 2 * + - 2 + - MIN ( + 33 ) - + CAST ( - 91 - 75 * - 10 AS INTEGER ) AS col0
----
-696

query I rowsort
SELECT - - 8 * + 38 + - - 63 AS col0
----
367

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT DISTINCT + COUNT( * ) * + 22 + 84 + - 0 + 49 * + 85 * CASE + 62 * + 51 WHEN - ( - 70 ) THEN 19 * - 17 WHEN + 67 THEN NULL WHEN COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT + COUNT ( * ) * + 22 + 84 + - 0 + 49 * + 85 * CASE + 62 * + 51 WHEN - ( - 70 ) THEN 19 * - 17 WHEN + 67 THEN NULL WHEN COUNT ( * ) THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT ALL 58 * - ( MAX( DISTINCT 45 ) ) AS col0
----
-2610

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL 58 * - ( MAX ( DISTINCT 45 ) ) AS col0
----
-2610

query I rowsort
SELECT ALL - 83 * + 87 + ( + 63 ) + 73
----
-7085

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

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

query I rowsort
SELECT DISTINCT + 22 * - + 69 + - - 83 - + 22 AS col1
----
-1457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-39
SELECT 59 * - 23 * COALESCE ( 24, 65, + CASE ( 40 ) WHEN - 3 + 2 THEN COUNT( - 18 ) WHEN - ( 95 ) THEN NULL END ) + 97 DIV 29
----
-32565

skipif mysql # not compatible
query I rowsort label-39
SELECT 59 * - 23 * COALESCE ( 24, 65, + CASE ( 40 ) WHEN - 3 + 2 THEN COUNT ( - 18 ) WHEN - ( 95 ) THEN NULL END ) + 97 / 29
----
-32565

query II rowsort
SELECT - ( + - 6 ) AS col2, + 76 + - 64
----
6
12

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-42
SELECT - CAST( - 80 AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-42
SELECT - CAST ( - 80 AS INTEGER ) AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-43
SELECT - MAX( DISTINCT - + 13 ) * - + CASE - - 61 WHEN 61 THEN - COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE + 48 * 58 END * - COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-43
SELECT - MAX ( DISTINCT - + 13 ) * - + CASE - - 61 WHEN 61 THEN - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE + 48 * 58 END * - COUNT ( * ) AS col2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-44
SELECT ALL 80 DIV - MIN( - + 46 )
----
1

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL 80 / - MIN ( - + 46 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT + 62 + - MIN( - 41 )
----
103

skipif mysql # not compatible
query I rowsort label-45
SELECT + 62 + - MIN ( - 41 )
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT + 15 * - 65 * 61 * - + MIN( ALL - ( + 86 ) ) * 38
----
-194364300

skipif mysql # not compatible
query I rowsort label-46
SELECT + 15 * - 65 * 61 * - + MIN ( ALL - ( + 86 ) ) * 38
----
-194364300

query I rowsort
SELECT ALL 38 - + 67
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-48
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col1, 38 AS col2
----
NULL
38

skipif mysql # not compatible
query II rowsort label-48
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col1, 38 AS col2
----
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT - - CAST( 87 AS SIGNED ) + - - 55 col1
----
142

skipif mysql # not compatible
query I rowsort label-49
SELECT - - CAST ( 87 AS INTEGER ) + - - 55 col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT ALL NULLIF ( ( + - 67 ), + 40 + + COALESCE ( + 68, - COUNT( * ), - ( - 57 ) + + 94 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL NULLIF ( ( + - 67 ), + 40 + + COALESCE ( + 68, - COUNT ( * ), - ( - 57 ) + + 94 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT + COUNT( * ) + + 18 + + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-51
SELECT + COUNT ( * ) + + 18 + + COUNT ( * )
----
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT - + 6 + 89 + + COUNT( * ) * 26 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-53
SELECT - + 6 + 89 + + COUNT ( * ) * 26 AS col0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT MAX( ALL - - 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-54
SELECT MAX ( ALL - - 30 ) AS col0
----
30

query I rowsort
SELECT - ( + - 90 ) - 98 AS col2
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT 45 DIV + 42 + + - 21
----
-20

skipif mysql # not compatible
query I rowsort label-56
SELECT 45 / + 42 + + - 21
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-57
SELECT - + CAST( - 5 AS SIGNED ) + + + 76 * + ( NULLIF ( 53, + COUNT( * ) ) ) AS col1
----
4033

skipif mysql # not compatible
query I rowsort label-57
SELECT - + CAST ( - 5 AS INTEGER ) + + + 76 * + ( NULLIF ( 53, + COUNT ( * ) ) ) AS col1
----
4033

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

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT + 69 / 99 + + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT ALL - + ( + + COALESCE ( + 23, - + 58 ) ) DIV 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL - + ( + + COALESCE ( + 23, - + 58 ) ) / 56 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-60
SELECT - COUNT( * ) / - - CASE - - COALESCE ( + ( + COUNT( * ) ), + CAST( + 23 AS SIGNED ) / - 9 ) WHEN 88 * 49 THEN NULLIF ( + 59, 79 * 3 - COALESCE ( 69 - 98, + 76 * CAST( 93 AS SIGNED ) ) ) - - NULLIF ( 19, - 33 ) WHEN + 42 THEN 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-60
SELECT - COUNT ( * ) / - - CASE - - COALESCE ( + ( + COUNT ( * ) ), + CAST ( + 23 AS INTEGER ) / - 9 ) WHEN 88 * 49 THEN NULLIF ( + 59, 79 * 3 - COALESCE ( 69 - 98, + 76 * CAST ( 93 AS INTEGER ) ) ) - - NULLIF ( 19, - 33 ) WHEN + 42 THEN 88 ELSE NULL END
----
NULL

query I rowsort
SELECT + 82 * + - 45 + 19
----
-3671

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT ALL - + 57 DIV + 73 + + 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL - + 57 / + 73 + + 73 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-63
SELECT DISTINCT + 40 * - 8 * - - 0 - ( + 84 ) DIV COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT + 40 * - 8 * - - 0 - ( + 84 ) / COUNT ( * )
----
-84

query I rowsort
SELECT - 78 * 9 + 67 * + ( 42 ) AS col1
----
2112

query I rowsort
SELECT + 61 + - 45
----
16

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-67
SELECT DISTINCT - + 32 * + - CASE + 24 WHEN - - 77 THEN NULL WHEN NULLIF ( CAST( + ( 93 ) AS SIGNED ), - COALESCE ( 40, 46 - - COALESCE ( - 29 - - 68, 38 ) ) * 79 ) THEN + 40 WHEN COALESCE ( NULLIF ( NULLIF ( - 27, - NULLIF ( 17, 3 ) ), + 77 * 69 ), 98 / - 45 ) - + MIN( DISTINCT + 17 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT - + 32 * + - CASE + 24 WHEN - - 77 THEN NULL WHEN NULLIF ( CAST ( + ( 93 ) AS INTEGER ), - COALESCE ( 40, 46 - - COALESCE ( - 29 - - 68, 38 ) ) * 79 ) THEN + 40 WHEN COALESCE ( NULLIF ( NULLIF ( - 27, - NULLIF ( 17, 3 ) ), + 77 * 69 ), 98 / - 45 ) - + MIN ( DISTINCT + 17 ) THEN NULL END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-69
SELECT 54 * + - 55 * - 85 AS col1, + COUNT( * )
----
252450
1

skipif mysql # not compatible
query II rowsort label-69
SELECT 54 * + - 55 * - 85 AS col1, + COUNT ( * )
----
252450
1

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

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL - CAST ( NULL AS REAL ) - + 5
----
NULL

query I rowsort
SELECT 25 * + 87 * + - 52
----
-113100

query I rowsort
SELECT 60 + + - 9 * 43 AS col2
----
-327

query I rowsort
SELECT DISTINCT 39 * - 59
----
-2301

query I rowsort
SELECT 44 - 26 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT MIN( + 47 ) * + + ( + 49 ) * + 66 + CASE ( NULLIF ( ( 56 ), + 61 ) ) WHEN 94 * 64 + + CASE WHEN 82 IS NOT NULL THEN SUM( 0 ) * 51 END THEN 58 * 70 + + COALESCE ( - 34, + 61, - 71 ) WHEN + COALESCE ( + 63, - 5 ) THEN - 35 + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT MIN ( + 47 ) * + + ( + 49 ) * + 66 + CASE ( NULLIF ( ( 56 ), + 61 ) ) WHEN 94 * 64 + + CASE WHEN 82 IS NOT NULL THEN SUM ( 0 ) * 51 END THEN 58 * 70 + + COALESCE ( - 34, + 61, - 71 ) WHEN + COALESCE ( + 63, - 5 ) THEN - 35 + 50 END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT DISTINCT + 1 * COALESCE ( COUNT( * ), - + COUNT( * ), + - 20 * + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT + 1 * COALESCE ( COUNT ( * ), - + COUNT ( * ), + - 20 * + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL 38 * - - 38 AS col2
----
1444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-79
SELECT - 12 AS col2, - 54 * - 93 * + - MIN( CAST( 19 AS SIGNED ) ) col0
----
-12
-95418

skipif mysql # not compatible
query II rowsort label-79
SELECT - 12 AS col2, - 54 * - 93 * + - MIN ( CAST ( 19 AS INTEGER ) ) col0
----
-12
-95418

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT SUM( - 85 ) / CASE - + COUNT( - + 64 ) WHEN + 96 + 11 THEN COUNT( * ) WHEN NULLIF ( COUNT( * ), 54 * - 42 ) / 81 THEN NULL ELSE NULL END * 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT SUM ( - 85 ) / CASE - + COUNT ( - + 64 ) WHEN + 96 + 11 THEN COUNT ( * ) WHEN NULLIF ( COUNT ( * ), 54 * - 42 ) / 81 THEN NULL ELSE NULL END * 21 AS col1
----
NULL

query I rowsort
SELECT ( + ( - + 38 ) ) * + 6
----
-228

query I rowsort
SELECT + 2 + - 40 + 78 + + 18 * + 20 + 72 AS col2
----
472

query I rowsort
SELECT 35 * + 50
----
1750

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-84
SELECT DISTINCT - CAST( - + 92 AS SIGNED ) DIV - 33 + 53 + 65
----
116

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT - CAST ( - + 92 AS INTEGER ) / - 33 + 53 + 65
----
116

query I rowsort
SELECT DISTINCT + 27 + + 11 AS col2
----
38

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-87
SELECT DISTINCT - 52 DIV + NULLIF ( - 31, 38 ) + - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT - 52 / + NULLIF ( - 31, 38 ) + - + COUNT ( * )
----
0

query I rowsort
SELECT ALL - 94 + 24 AS col1
----
-70

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

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

query I rowsort
SELECT DISTINCT - - 1 * 59 AS col0
----
59

query I rowsort
SELECT ALL + - 39 + - 35 + + - 96 AS col2
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT - ( + SUM( - + 98 ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-92
SELECT - ( + SUM ( - + 98 ) ) AS col0
----
98

query I rowsort
SELECT ALL 65 + + + 30
----
95

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

skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT - COUNT ( * ) * - - ( - 51 ) * + + 5 col2
----
255

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

skipif mysql # not compatible
query I rowsort label-95
SELECT COUNT ( * ) * + 33 + + 51 AS col2
----
84

query I rowsort
SELECT - 9 * - 32 AS col2
----
288

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

query I rowsort
SELECT DISTINCT + 11 * 0 * 24
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-99
SELECT NULLIF ( - - MAX( - 45 ), 14 * - 12 ) DIV - 29 - - 75 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-99
SELECT NULLIF ( - - MAX ( - 45 ), 14 * - 12 ) / - 29 - - 75 AS col1
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-100
SELECT + COALESCE ( + ( + 2 ), - ( - 88 ) + - 24 DIV + CASE WHEN NOT 52 IS NULL THEN 13 * - 99 ELSE SUM( ALL ( + ( + 92 ) ) ) END ) * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-100
SELECT + COALESCE ( + ( + 2 ), - ( - 88 ) + - 24 / + CASE WHEN NOT 52 IS NULL THEN 13 * - 99 ELSE SUM ( ALL ( + ( + 92 ) ) ) END ) * + COUNT ( * )
----
2

query I rowsort
SELECT ALL - 87 + 85 * + 58 * + 39
----
192183

query I rowsort
SELECT ALL + 86 * 54 * - + 5 AS col2
----
-23220

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT DISTINCT + COUNT( * ) - + 26 - + 36 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT + COUNT ( * ) - + 26 - + 36 AS col0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-104
SELECT DISTINCT + ( + - COUNT( * ) ) / 93 + ( - 62 ) + - + NULLIF ( 43, MIN( DISTINCT - ( - 18 ) ) ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT + ( + - COUNT ( * ) ) / 93 + ( - 62 ) + - + NULLIF ( 43, MIN ( DISTINCT - ( - 18 ) ) ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 54 + + 17 AS col0, 30 AS col0
----
71
30

query I rowsort
SELECT ALL + 87 * + + 60 col0
----
5220

query I rowsort
SELECT 44 + + 48 col0
----
92

query II rowsort
SELECT 60 * 91 AS col0, 59 AS col1
----
5460
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-109
SELECT ALL - COALESCE ( 6, AVG ( + - 86 ) ) * + CASE - 89 WHEN + 41 * CAST( NULL AS SIGNED ) + - COUNT( * ) THEN 90 END * 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL - COALESCE ( 6, AVG ( + - 86 ) ) * + CASE - 89 WHEN + 41 * CAST ( NULL AS INTEGER ) + - COUNT ( * ) THEN 90 END * 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT DISTINCT - 15 * MIN( COALESCE ( + 90, - 4 ) )
----
-1350

skipif mysql # not compatible
query I rowsort label-110
SELECT DISTINCT - 15 * MIN ( COALESCE ( + 90, - 4 ) )
----
-1350

query I rowsort
SELECT + 58 * + 37 * 9 + - 44
----
19270

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

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

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

skipif mysql # not compatible
query I rowsort label-113
SELECT ALL - 25 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT 66 + 79 DIV + + 84 + - - 6 + 13 + - - 25 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-114
SELECT 66 + 79 / + + 84 + - - 6 + 13 + - - 25 AS col1
----
110

query I rowsort
SELECT COALESCE ( + 41, - 27 ) * - 13 * 6
----
-3198

query I rowsort
SELECT 75 + + - 31 AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-117
SELECT ( - CAST( COALESCE ( + + 42, - 43 + 7, ( - 62 ) + 13 ) AS SIGNED ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-117
SELECT ( - CAST ( COALESCE ( + + 42, - 43 + 7, ( - 62 ) + 13 ) AS INTEGER ) ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT ALL + CASE + 16 WHEN + 61 * - + COUNT( * ) + - 48 * - MAX( ALL 6 ) THEN + 91 WHEN 80 * + 38 - SUM( ALL - 31 + 60 ) * 29 THEN NULL ELSE NULL END * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + CASE + 16 WHEN + 61 * - + COUNT ( * ) + - 48 * - MAX ( ALL 6 ) THEN + 91 WHEN 80 * + 38 - SUM ( ALL - 31 + 60 ) * 29 THEN NULL ELSE NULL END * 8
----
NULL

query II rowsort
SELECT DISTINCT + 56 + - + 78, 70 AS col2
----
-22
70

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

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

query I rowsort
SELECT ALL + 6 * - 21
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-122
SELECT ALL 10 + - 22 * 1 DIV + 54 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL 10 + - 22 * 1 / + 54 AS col1
----
10

query I rowsort
SELECT 60 + + - ( 4 ) col1
----
56

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

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL 49 + COUNT ( * ) AS col0
----
50

query I rowsort
SELECT DISTINCT + 15 + - - 83 - + 65
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT + 32 + - 34 * - + CASE - 96 WHEN - NULLIF ( 45, COUNT( * ) * + 56 ) THEN COUNT( * ) WHEN 40 THEN NULL WHEN ( NULLIF ( + CASE 82 WHEN + 81 - - 32 THEN NULL WHEN 99 * 84 THEN + AVG ( 98 ) END, ( 52 ) + + 55 / NULLIF ( - ( - 46 ) * 89, 91 ) ) ) / - ( + 1 ) THEN NULL WHEN COUNT( * ) THEN NULL END * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-126
SELECT + 32 + - 34 * - + CASE - 96 WHEN - NULLIF ( 45, COUNT ( * ) * + 56 ) THEN COUNT ( * ) WHEN 40 THEN NULL WHEN ( NULLIF ( + CASE 82 WHEN + 81 - - 32 THEN NULL WHEN 99 * 84 THEN + AVG ( 98 ) END, ( 52 ) + + 55 / NULLIF ( - ( - 46 ) * 89, 91 ) ) ) / - ( + 1 ) THEN NULL WHEN COUNT ( * ) THEN NULL END * 22
----
NULL

query II rowsort
SELECT + 44, - 92 col1
----
44
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT NULLIF ( + 48, - COUNT( * ) ) + 14 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-128
SELECT NULLIF ( + 48, - COUNT ( * ) ) + 14 AS col1
----
62

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

query I rowsort
SELECT + 60 + 73
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-131
SELECT COUNT( * ) + + 98 - 50 - + 95 AS col0, 75 DIV - 69 + + 62 AS col1
----
-46
61

skipif mysql # not compatible
query II rowsort label-131
SELECT COUNT ( * ) + + 98 - 50 - + 95 AS col0, 75 / - 69 + + 62 AS col1
----
-46
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-132
SELECT ALL + CAST( - - CASE CASE + - 43 WHEN + 36 THEN NULL WHEN + CAST( 57 AS SIGNED ) THEN + 36 WHEN + ( - 64 ) * + 40 THEN - COUNT( * ) + 64 END WHEN + 73 / 72 THEN ( ( AVG ( 84 ) ) ) / + COUNT( * ) END AS SIGNED ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL + CAST ( - - CASE CASE + - 43 WHEN + 36 THEN NULL WHEN + CAST ( 57 AS INTEGER ) THEN + 36 WHEN + ( - 64 ) * + 40 THEN - COUNT ( * ) + 64 END WHEN + 73 / 72 THEN ( ( AVG ( 84 ) ) ) / + COUNT ( * ) END AS INTEGER ) / - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT - 69 * + + 88 * + + 85 + 38 * - 23 * 25 + - 27 DIV - 80
----
-537970

skipif mysql # not compatible
query I rowsort label-133
SELECT - 69 * + + 88 * + + 85 + 38 * - 23 * 25 + - 27 / - 80
----
-537970

query I rowsort
SELECT ALL - 81 * + + 3 - + - 44 * ( - 5 ) AS col1
----
-463

query II rowsort
SELECT 81, + 34 AS col1
----
81
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-136
SELECT ALL - 47 / - COALESCE ( 78, - - 38, 68 / + - 44 * 99 + 12 ) + - 30 * - MIN( ALL 59 + + NULLIF ( NULLIF ( 40, 86 + - 68 ), 29 ) * CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL - 47 / - COALESCE ( 78, - - 38, 68 / + - 44 * 99 + 12 ) + - 30 * - MIN ( ALL 59 + + NULLIF ( NULLIF ( 40, 86 + - 68 ), 29 ) * CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT DISTINCT + + 19 * + 52 - + COUNT( * )
----
987

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT + + 19 * + 52 - + COUNT ( * )
----
987

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL + 66 * - COUNT( ALL + 13 ) * + ( + 36 ) - - 48
----
-2328

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL + 66 * - COUNT ( ALL + 13 ) * + ( + 36 ) - - 48
----
-2328

query I rowsort
SELECT - - 52 * - - 93 + - - 14 AS col0
----
4850

query I rowsort
SELECT DISTINCT ( - 89 ) * 28
----
-2492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-142
SELECT ALL CAST( 36 AS SIGNED ) * - COUNT( * ) * - AVG ( + 42 ) - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL CAST ( 36 AS INTEGER ) * - COUNT ( * ) * - AVG ( + 42 ) - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-143
SELECT - CASE - + 15 WHEN ( 11 ) * 32 * ( + 50 ) + 15 * - 64 THEN + ( - 5 ) END * + CASE CAST( + 14 AS SIGNED ) * COUNT( * ) WHEN - 30 THEN MIN( DISTINCT + 45 ) WHEN 82 * - 87 THEN NULL ELSE 75 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-143
SELECT - CASE - + 15 WHEN ( 11 ) * 32 * ( + 50 ) + 15 * - 64 THEN + ( - 5 ) END * + CASE CAST ( + 14 AS INTEGER ) * COUNT ( * ) WHEN - 30 THEN MIN ( DISTINCT + 45 ) WHEN 82 * - 87 THEN NULL ELSE 75 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT + MIN( DISTINCT 24 ) + - + 34 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-144
SELECT + MIN ( DISTINCT 24 ) + - + 34 AS col2
----
-10

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

skipif mysql # not compatible
query I rowsort label-145
SELECT + NULLIF ( - COUNT ( * ), - - 1 * + 90 ) AS col1
----
-1

query I rowsort
SELECT - 52 + - + 68 * - 45 * - 47
----
-143872

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT DISTINCT ( + - 96 ) * ( - - 47 ) * + 87 + - MIN( - COALESCE ( 40, 28 + - 48, 98 ) ) + + 16 * + 27 + 93
----
-391979

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT ( + - 96 ) * ( - - 47 ) * + 87 + - MIN ( - COALESCE ( 40, 28 + - 48, 98 ) ) + + 16 * + 27 + 93
----
-391979

query I rowsort
SELECT + NULLIF ( 87, + + 0 + + 96 ) * + ( - 57 ) * - + 34 AS col1
----
168606

query I rowsort
SELECT ALL + COALESCE ( - 71, 17 )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-150
SELECT + 3 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-150
SELECT + 3 / - 32
----
0

query I rowsort
SELECT - 9 + 49 * + 94
----
4597

query I rowsort
SELECT ALL 73 * + 28 + - 40 + + - ( - 54 ) + + NULLIF ( - 29, NULLIF ( + 6, 29 / 76 ) * 2 ) AS col1
----
2029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT ALL + 93 + - 77 + - + COUNT( * ) / CAST( NULL AS SIGNED ) * + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + 93 + - 77 + - + COUNT ( * ) / CAST ( NULL AS INTEGER ) * + 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT - 73 DIV + 42
----
-1

skipif mysql # not compatible
query I rowsort label-154
SELECT - 73 / + 42
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT - COUNT( * ) + - 45 + + - 30 + + + ( - - 77 ) * + ( + 15 ) * 62
----
71534

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT - COUNT ( * ) + - 45 + + - 30 + + + ( - - 77 ) * + ( + 15 ) * 62
----
71534

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-157
SELECT ALL + 66 * + + CASE + COUNT( * ) WHEN - 81 * + CAST( 22 AS DECIMAL ) * + COUNT( * ) + - COUNT( * ) * 87 + - 28 THEN + ( - 41 ) WHEN - CASE + 50 WHEN 82 * - 65 - 33 * - 71 THEN 2 END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL + 66 * + + CASE + COUNT ( * ) WHEN - 81 * + CAST ( 22 AS REAL ) * + COUNT ( * ) + - COUNT ( * ) * 87 + - 28 THEN + ( - 41 ) WHEN - CASE + 50 WHEN 82 * - 65 - 33 * - 71 THEN 2 END THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - CASE + 27 WHEN - 16 THEN - ( + 90 ) END * + 55
----
NULL

query I rowsort
SELECT ALL + 93 + - 55 AS col0
----
38

query I rowsort
SELECT DISTINCT - 69 + - 51
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL - COUNT( * ) + + 51 + - ( + 3 ) * MAX( - 2 ) col0
----
56

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL - COUNT ( * ) + + 51 + - ( + 3 ) * MAX ( - 2 ) col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT - CASE - - 37 WHEN - 55 * + 2 THEN - - MIN( - 67 ) WHEN + 4 THEN NULL WHEN - 68 THEN 18 * 8 END * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT - CASE - - 37 WHEN - 55 * + 2 THEN - - MIN ( - 67 ) WHEN + 4 THEN NULL WHEN - 68 THEN 18 * 8 END * 92
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT ALL + - 68 * - 40 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL + - 68 * - 40 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT - - 66 * - COUNT( * ) * + 44
----
-2904

skipif mysql # not compatible
query I rowsort label-164
SELECT - - 66 * - COUNT ( * ) * + 44
----
-2904

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

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT ALL - CASE 97 WHEN + 46 / 89 / CASE - 73 WHEN + - 82 THEN NULL ELSE + COUNT( * ) END THEN + MAX( ALL - 72 ) * 70 ELSE NULL END * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - CASE 97 WHEN + 46 / 89 / CASE - 73 WHEN + - 82 THEN NULL ELSE + COUNT ( * ) END THEN + MAX ( ALL - 72 ) * 70 ELSE NULL END * + 38
----
NULL

query I rowsort
SELECT DISTINCT + 28 * + ( - + 39 ) + + 38 AS col1
----
-1054

query I rowsort
SELECT ALL - 1 * 98 * - - ( - + 5 ) AS col2
----
490

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-169
SELECT - + 79 * + 79 + 52 * - 20 + + 58 - - 28 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-169
SELECT - + 79 * + 79 + 52 * - 20 + + 58 - - 28 + - CAST ( NULL AS REAL )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-170
SELECT + + MIN ( + - 25 )
----
-25

query I rowsort
SELECT + 58 * 89
----
5162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-172
SELECT ALL + 99 col2, CAST( 39 AS SIGNED ) AS col1
----
99
39

skipif mysql # not compatible
query II rowsort label-172
SELECT ALL + 99 col2, CAST ( 39 AS INTEGER ) AS col1
----
99
39

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT 32 DIV + + 17 + - - 82
----
83

skipif mysql # not compatible
query I rowsort label-173
SELECT 32 / + + 17 + - - 82
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT + 76 DIV - - 73
----
1

skipif mysql # not compatible
query I rowsort label-174
SELECT + 76 / - - 73
----
1

query II rowsort
SELECT ALL + 5 AS col0, COALESCE ( - + 61, + 54, 55 ) AS col2
----
5
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT + COUNT( * ) + + 78 * + + COALESCE ( 70, + 45 * 33 + - ( + 40 ) + 73, 49 ) - COALESCE ( - 73, 50, + 9 ) col1
----
5534

skipif mysql # not compatible
query I rowsort label-176
SELECT + COUNT ( * ) + + 78 * + + COALESCE ( 70, + 45 * 33 + - ( + 40 ) + 73, 49 ) - COALESCE ( - 73, 50, + 9 ) col1
----
5534

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

skipif mysql # not compatible
query I rowsort label-177
SELECT + CAST ( - AVG ( ALL - 11 ) AS INTEGER ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-178
SELECT DISTINCT 16 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT 16 / - 98 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-179
SELECT 5 * + 98 DIV + COUNT( * ) + + COUNT( * ) - 62
----
429

skipif mysql # not compatible
query I rowsort label-179
SELECT 5 * + 98 / + COUNT ( * ) + + COUNT ( * ) - 62
----
429

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

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

query I rowsort
SELECT ALL 51 * + 3 AS col1
----
153

query I rowsort
SELECT + 45 * + ( - 28 ) - - + 9 AS col1
----
-1251

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

skipif mysql # not compatible
query I rowsort label-183
SELECT CAST ( 83 AS INTEGER ) / + + 6 - - - 34 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - - 30 ) AS col2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-185
SELECT ALL 1 * + - MAX( ALL + 60 ) + + CASE - COUNT( * ) WHEN + 98 * + 85 THEN 9 / 46 WHEN - 41 * 95 THEN NULL ELSE + 72 + 55 END * ( CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + - ( ( + 4 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL 1 * + - MAX ( ALL + 60 ) + + CASE - COUNT ( * ) WHEN + 98 * + 85 THEN 9 / 46 WHEN - 41 * 95 THEN NULL ELSE + 72 + 55 END * ( CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + - ( ( + 4 ) ) ) AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT + MIN( DISTINCT 73 ) * + 85 + 0 * - NULLIF ( - - 4, + + 40 ) * + 23 - 61 + 49 AS col2
----
6193

skipif mysql # not compatible
query I rowsort label-188
SELECT + MIN ( DISTINCT 73 ) * + 85 + 0 * - NULLIF ( - - 4, + + 40 ) * + 23 - 61 + 49 AS col2
----
6193

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT COALESCE ( COUNT( * ), + 3 * COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-189
SELECT COALESCE ( COUNT ( * ), + 3 * COUNT ( * ) ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-190
SELECT COALESCE ( + - 97, COALESCE ( - 4, 77, - - 30 * 55 + + 18 * CAST( + 91 AS SIGNED ) ) ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-190
SELECT COALESCE ( + - 97, COALESCE ( - 4, 77, - - 30 * 55 + + 18 * CAST ( + 91 AS INTEGER ) ) ) AS col0
----
-97

query I rowsort
SELECT ALL 13 * - 41 + - 63 + + - 31 col1
----
-627

query I rowsort
SELECT DISTINCT 73 * + 92 * 4
----
26864

onlyif mysql # aggregate syntax: 
query II rowsort label-193
SELECT ALL - COUNT( * ) * + 55 + 46, 42 AS col0
----
-9
42

skipif mysql # not compatible
query II rowsort label-193
SELECT ALL - COUNT ( * ) * + 55 + 46, 42 AS col0
----
-9
42

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT CASE 16 WHEN - + 41 * - 50 + - MAX( DISTINCT + 32 ) - - 57 * 89 THEN 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT CASE 16 WHEN - + 41 * - 50 + - MAX ( DISTINCT + 32 ) - - 57 * 89 THEN 95 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-195
SELECT DISTINCT - ( + 9 ) * + ( - + CAST( NULL AS SIGNED ) ) + - + ( 53 ) AS col0, + 13 * + COALESCE ( - 19, - 59 * + 15, + COALESCE ( 98, - ( 19 ), - ( COUNT( + NULLIF ( + 47, 86 + - 44 * 96 ) ) ) ) DIV COUNT( * ) + + CASE - COUNT( * ) WHEN + 88 * + 11 + - 14 THEN COUNT( * ) ELSE NULL END * 46 ) * 95 + 35
----
NULL
-23430

skipif mysql # not compatible
query II rowsort label-195
SELECT DISTINCT - ( + 9 ) * + ( - + CAST ( NULL AS INTEGER ) ) + - + ( 53 ) AS col0, + 13 * + COALESCE ( - 19, - 59 * + 15, + COALESCE ( 98, - ( 19 ), - ( COUNT ( + NULLIF ( + 47, 86 + - 44 * 96 ) ) ) ) / COUNT ( * ) + + CASE - COUNT ( * ) WHEN + 88 * + 11 + - 14 THEN COUNT ( * ) ELSE NULL END * 46 ) * 95 + 35
----
NULL
-23430

query I rowsort
SELECT - + CASE - 4 WHEN 79 THEN - - 30 WHEN - - 51 THEN - 53 END / 85 * + + 9
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-197
SELECT - 49 * - COUNT( * ) + - 50 AS col2, CASE - 61 WHEN + + 13 THEN CAST( 89 AS SIGNED ) * - 21 END + 95 AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-197
SELECT - 49 * - COUNT ( * ) + - 50 AS col2, CASE - 61 WHEN + + 13 THEN CAST ( 89 AS INTEGER ) * - 21 END + 95 AS col0
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT DISTINCT 27 DIV + - 72
----
0

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT 27 / + - 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT + 1 + - - CAST( + 14 AS SIGNED ) + - COUNT( ALL - 75 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-199
SELECT + 1 + - - CAST ( + 14 AS INTEGER ) + - COUNT ( ALL - 75 ) col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT + + 51 * CAST( ( 97 ) AS SIGNED ) * + - 32 + - MAX( - 81 ) + - 68 AS col1
----
-158291

skipif mysql # not compatible
query I rowsort label-200
SELECT + + 51 * CAST ( ( 97 ) AS INTEGER ) * + - 32 + - MAX ( - 81 ) + - 68 AS col1
----
-158291

query I rowsort
SELECT + ( + - 21 ) + - 3 + - 4 + + 79 * - + 86
----
-6822

query I rowsort
SELECT 29 * 62 - + NULLIF ( - 70, + 13 ) AS col0
----
1868

query I rowsort
SELECT - 28 + 55
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT - MIN( + + 65 ) * - NULLIF ( + 32, 23 * 32 * ( 33 ) ) * + COUNT( * )
----
2080

skipif mysql # not compatible
query I rowsort label-204
SELECT - MIN ( + + 65 ) * - NULLIF ( + 32, 23 * 32 * ( 33 ) ) * + COUNT ( * )
----
2080

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT DISTINCT - 63 * COUNT( * ) * + 58
----
-3654

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - 63 * COUNT ( * ) * + 58
----
-3654

query II rowsort
SELECT ALL 62, 36 * + + 26 AS col1
----
62
936

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

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

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

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

query I rowsort
SELECT 69 * + 51 * 21
----
73899

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT + 5 + - 20 * - + SUM( 75 )
----
1505

skipif mysql # not compatible
query I rowsort label-211
SELECT + 5 + - 20 * - + SUM ( 75 )
----
1505

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT DISTINCT 75 + + ( + + 16 ) * + COUNT( * ) - - + 53 AS col1
----
144

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT 75 + + ( + + 16 ) * + COUNT ( * ) - - + 53 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-215
SELECT ALL 10 + + MIN( 67 )
----
77

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL 10 + + MIN ( 67 )
----
77

query I rowsort
SELECT 70 + - + 28 + + 94
----
136

query I rowsort
SELECT ALL - 65 * - + 80 AS col1
----
5200

query I rowsort
SELECT DISTINCT - 56 + NULLIF ( 81, 91 ) - + 86
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT DISTINCT + 92 + + COUNT( * ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT + 92 + + COUNT ( * ) AS col1
----
93

query I rowsort
SELECT DISTINCT 9 + 61 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT CASE - 18 WHEN 32 + 16 THEN 3 * 56 WHEN + ( - - 55 ) + - 80 * MIN( ALL 67 - ( - 6 ) ) THEN NULL END + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-221
SELECT CASE - 18 WHEN 32 + 16 THEN 3 * 56 WHEN + ( - - 55 ) + - 80 * MIN ( ALL 67 - ( - 6 ) ) THEN NULL END + 72
----
NULL

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

skipif mysql # not compatible
query I rowsort label-222
SELECT 79 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 38 + + - 41
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT DISTINCT COUNT( ALL - + 28 ) + + 45
----
46

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT COUNT ( ALL - + 28 ) + + 45
----
46

query I rowsort
SELECT DISTINCT - COALESCE ( - + 15, 37 ) col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT DISTINCT COUNT( * ) - + NULLIF ( 10, + 24 + 98 + 81 + + COALESCE ( + 4, - 62, 66 ) * 74 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT COUNT ( * ) - + NULLIF ( 10, + 24 + 98 + 81 + + COALESCE ( + 4, - 62, 66 ) * 74 ) AS col2
----
-9

query I rowsort
SELECT - 46 + - 97 * ( + 56 ) AS col1
----
-5478

query I rowsort
SELECT ALL - 86 - - 89 + - 70 * - 76 * - + 32 * - 18
----
3064323

query I rowsort
SELECT DISTINCT - 28 * + 45 + - - 76 AS col2
----
-1184

query I rowsort
SELECT + - 45 col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-231
SELECT DISTINCT + NULLIF ( 17, + 52 * - MAX( DISTINCT + + 96 ) * - + COALESCE ( - COUNT( * ), 76 + 73 - - 42 * - 9, - CAST( NULL AS SIGNED ) ) + 24 * + 57 )
----
17

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT + NULLIF ( 17, + 52 * - MAX ( DISTINCT + + 96 ) * - + COALESCE ( - COUNT ( * ), 76 + 73 - - 42 * - 9, - CAST ( NULL AS INTEGER ) ) + 24 * + 57 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL COUNT( * ) * - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL COUNT ( * ) * - - COUNT ( * ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-233
SELECT COUNT( ALL 87 ), CAST( NULL AS SIGNED ) / - 51 * + - 4 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-233
SELECT COUNT ( ALL 87 ), CAST ( NULL AS INTEGER ) / - 51 * + - 4 AS col1
----
1
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-235
SELECT ( + 57 ) * - + CASE + CAST( - - 94 AS SIGNED ) WHEN - 96 / + 42 + - CAST( + 68 AS SIGNED ) THEN NULL WHEN - 31 THEN + 7 + + MIN( ALL + COALESCE ( + 61, - 7 + 24 ) ) * + COUNT( * ) END + ( - 9 + 94 ) * - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT ( + 57 ) * - + CASE + CAST ( - - 94 AS INTEGER ) WHEN - 96 / + 42 + - CAST ( + 68 AS INTEGER ) THEN NULL WHEN - 31 THEN + 7 + + MIN ( ALL + COALESCE ( + 61, - 7 + 24 ) ) * + COUNT ( * ) END + ( - 9 + 94 ) * - 77 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-236
SELECT DISTINCT + MAX( + - CAST( NULL AS SIGNED ) ) col2, 79 * 9
----
NULL
711

skipif mysql # not compatible
query II rowsort label-236
SELECT DISTINCT + MAX ( + - CAST ( NULL AS INTEGER ) ) col2, 79 * 9
----
NULL
711

query I rowsort
SELECT 7 * + + 41 AS col1
----
287

query I rowsort
SELECT 94 - - ( - 15 )
----
79

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

skipif mysql # not compatible
query I rowsort label-239
SELECT + 85 / + + COUNT ( * ) * - COUNT ( * ) AS col1
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-240
SELECT DISTINCT + CASE - CAST( + 84 AS DECIMAL ) WHEN + - 25 THEN + 23 * 81 * - 23 ELSE NULL END / 23 + 35 + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT + CASE - CAST ( + 84 AS REAL ) WHEN + - 25 THEN + 23 * 81 * - 23 ELSE NULL END / 23 + 35 + 74
----
NULL

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

skipif mysql # not compatible
query I rowsort label-241
SELECT - COUNT ( * ) / 44
----
0

query II rowsort
SELECT 86 * 51 AS col1, 73 + 29 col0
----
4386
102

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT ALL + 7 DIV 42 * - 25 * 13 * + 62
----
0

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL + 7 / 42 * - 25 * 13 * + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT DISTINCT + 23 + + 34 - + COUNT( DISTINCT - 90 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT + 23 + + 34 - + COUNT ( DISTINCT - 90 ) AS col0
----
56

query I rowsort
SELECT ALL - 69 + + 47
----
-22

query I rowsort
SELECT 70 * - 83
----
-5810

query I rowsort
SELECT DISTINCT + 24 + + + 84
----
108

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

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

query II rowsort
SELECT - 32 AS col1, 19
----
-32
19

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT ALL - ( + CASE 86 WHEN + COUNT( * ) - + + 96 + - 22 * 48 / ( + ( + 54 ) ) THEN COUNT( * ) * 2 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL - ( + CASE 86 WHEN + COUNT ( * ) - + + 96 + - 22 * 48 / ( + ( + 54 ) ) THEN COUNT ( * ) * 2 END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-251
SELECT COUNT( * ) / 75 + 41 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-251
SELECT COUNT ( * ) / 75 + 41 * + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 42 col2, - 1
----
42
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT 79 * + + COUNT( * ) * - 83 + + 98
----
-6459

skipif mysql # not compatible
query I rowsort label-253
SELECT 79 * + + COUNT ( * ) * - 83 + + 98
----
-6459

query I rowsort
SELECT 94 * 85 * - 42 AS col1
----
-335580

query I rowsort
SELECT DISTINCT 48 * + + 79 - - - 81 AS col2
----
3711

query I rowsort
SELECT 84 * + + 28 AS col2
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL - COUNT( * ) - 6
----
-7

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL - COUNT ( * ) - 6
----
-7

query I rowsort
SELECT COALESCE ( + 58, - ( 48 ), 23 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-259
SELECT CAST( - 88 AS SIGNED ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-259
SELECT CAST ( - 88 AS INTEGER ) AS col2
----
-88

query I rowsort
SELECT 73 * - + 51 AS col2
----
-3723

query II rowsort
SELECT ALL - + 27, - 5 col2
----
-27
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT ALL - - MAX( 89 ) - 92 * - 89 - COUNT( * ) - 9
----
8267

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL - - MAX ( 89 ) - 92 * - 89 - COUNT ( * ) - 9
----
8267

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-264
SELECT + + 69 / - + COUNT( ALL + 88 ) + - 40 + - CAST( NULL AS SIGNED ), - 94 * + - COUNT( * ) AS col0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-264
SELECT + + 69 / - + COUNT ( ALL + 88 ) + - 40 + - CAST ( NULL AS INTEGER ), - 94 * + - COUNT ( * ) AS col0
----
NULL
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-265
SELECT ALL + + ( + CAST( - - 12 AS SIGNED ) ) DIV 32 + 98 + - + 28 + - + ( + 38 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL + + ( + CAST ( - - 12 AS INTEGER ) ) / 32 + 98 + - + 28 + - + ( + 38 ) AS col1
----
32

query I rowsort
SELECT DISTINCT + ( 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT + - COUNT( - 96 ) * - - 74 * COUNT( * ) * 23
----
-1702

skipif mysql # not compatible
query I rowsort label-267
SELECT + - COUNT ( - 96 ) * - - 74 * COUNT ( * ) * 23
----
-1702

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-268
SELECT 28 AS col0, - CAST( NULL AS SIGNED ) * 14 * - 69 AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-268
SELECT 28 AS col0, - CAST ( NULL AS INTEGER ) * 14 * - 69 AS col2
----
28
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-269
SELECT - - ( 2 ) + + 17 * + 75 + - - 93, + COUNT( * ) AS col1
----
1370
1

skipif mysql # not compatible
query II rowsort label-269
SELECT - - ( 2 ) + + 17 * + 75 + - - 93, + COUNT ( * ) AS col1
----
1370
1

query I rowsort
SELECT + 73 * 27 * 55 * - + 46 AS col0
----
-4986630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-271
SELECT ALL - 22 + - - 60 + - COUNT( * ) + CAST( NULL AS SIGNED ) * - COUNT( * ) / - 95 * - + CAST( + 60 AS SIGNED ) * + - 96 + - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL - 22 + - - 60 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) * - COUNT ( * ) / - 95 * - + CAST ( + 60 AS INTEGER ) * + - 96 + - 93 AS col2
----
NULL

query I rowsort
SELECT + + 17 + + 95 AS col2
----
112

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

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

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

skipif mysql # not compatible
query I rowsort label-274
SELECT + + 67 + - - COUNT ( * ) / - 43 AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-275
SELECT ALL CAST( 80 AS SIGNED ) + - + COALESCE ( + 21, 37 ) DIV 46 col0
----
80

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL CAST ( 80 AS INTEGER ) + - + COALESCE ( + 21, 37 ) / 46 col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT DISTINCT 18 * 63 + - 33 + + 56 + + MIN( + 65 )
----
1222

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT 18 * 63 + - 33 + + 56 + + MIN ( + 65 )
----
1222

query I rowsort
SELECT DISTINCT 64 + + 82 * + 13 col1
----
1130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-278
SELECT + ( - 4 ) + + CAST( NULL AS SIGNED ) / + - 35 / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-278
SELECT + ( - 4 ) + + CAST ( NULL AS INTEGER ) / + - 35 / + COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL 99 + CAST ( - 96 AS INTEGER ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT - MIN( + 13 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-280
SELECT - MIN ( + 13 ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT - 69 + SUM( DISTINCT + 38 ) + + - 46 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-281
SELECT - 69 + SUM ( DISTINCT + 38 ) + + - 46 AS col0
----
-77

query I rowsort
SELECT ALL 51 + - 48 + 79 * - ( 57 )
----
-4500

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT - 63 + 6, COUNT( * ) * + ( + 81 ) * 52 AS col0
----
-57
4212

skipif mysql # not compatible
query II rowsort label-283
SELECT - 63 + 6, COUNT ( * ) * + ( + 81 ) * 52 AS col0
----
-57
4212

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

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

skipif mysql # not compatible
query I rowsort label-285
SELECT - ( + MIN ( 49 ) )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-286
SELECT ALL - 39 DIV - - COUNT( * ) - - 14 + - 88
----
-113

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL - 39 / - - COUNT ( * ) - - 14 + - 88
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT ALL COUNT( * ) * 67 * + + ( MIN( DISTINCT - 35 ) )
----
-2345

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL COUNT ( * ) * 67 * + + ( MIN ( DISTINCT - 35 ) )
----
-2345

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-288
SELECT ALL 92 * + 2 * + + CAST( NULL AS SIGNED ) * - + 45 AS col2, - 3
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-288
SELECT ALL 92 * + 2 * + + CAST ( NULL AS INTEGER ) * - + 45 AS col2, - 3
----
NULL
-3

query I rowsort
SELECT + 91 * 38
----
3458

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

query I rowsort
SELECT - 73 * 28 AS col0
----
-2044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-292
SELECT - ( COUNT( * ) ) DIV MAX( DISTINCT + - 18 ) + + 41 * 89
----
3649

skipif mysql # not compatible
query I rowsort label-292
SELECT - ( COUNT ( * ) ) / MAX ( DISTINCT + - 18 ) + + 41 * 89
----
3649

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

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

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

query I rowsort
SELECT - 81 + - 6
----
-87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT ALL + 78 * + 62 * 70 * + COUNT( * ) * + 62 * COALESCE ( 39, - - 4 * + + 54 + - 12 DIV 13 + 77, COUNT( * ) ) AS col1
----
818541360

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + 78 * + 62 * 70 * + COUNT ( * ) * + 62 * COALESCE ( 39, - - 4 * + + 54 + - 12 / 13 + 77, COUNT ( * ) ) AS col1
----
818541360

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT - CASE 13 WHEN - + 6 * - 45 * - 24 * 40 THEN NULL WHEN + 5 - + 50 THEN + 25 * + 48 * 3 * - COALESCE ( - SUM( 68 ), 91 ) END * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT - CASE 13 WHEN - + 6 * - 45 * - 24 * 40 THEN NULL WHEN + 5 - + 50 THEN + 25 * + 48 * 3 * - COALESCE ( - SUM ( 68 ), 91 ) END * - 19
----
NULL

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

query II rowsort
SELECT ALL + 65 AS col0, + 82
----
65
82

query II rowsort
SELECT DISTINCT + ( 84 ) * - ( + + 15 ) * 36 * - 38 * - + 99 AS col2, + 44 col2
----
-170644320
44

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT DISTINCT + COUNT( ALL - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT + COUNT ( ALL - 55 )
----
1

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

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

query I rowsort
SELECT ALL + 1 * 39 col1
----
39

query II rowsort
SELECT + + 0 AS col0, 31
----
0
31

query I rowsort
SELECT + + ( + ( - NULLIF ( - 8, - 60 ) ) ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-307
SELECT + + CASE + CAST( + SUM( ALL 51 ) AS SIGNED ) WHEN + + ( - 21 ) * 48 THEN NULL WHEN + - 9 - - CAST( NULL AS SIGNED ) THEN 37 ELSE + 47 END DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-307
SELECT + + CASE + CAST ( + SUM ( ALL 51 ) AS INTEGER ) WHEN + + ( - 21 ) * 48 THEN NULL WHEN + - 9 - - CAST ( NULL AS INTEGER ) THEN 37 ELSE + 47 END / - 68
----
0

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

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

query I rowsort
SELECT + 67 + - - 86
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-310
SELECT - 42, - COALESCE ( 81, - + 98 + + + 29, + 85 ) * 82 + COUNT( * ) * + CASE + 13 WHEN 45 * COUNT( * ) - + 90 * ( - 8 ) THEN CASE 80 WHEN SUM( 61 ) + - 62 THEN NULL WHEN + 44 THEN - 55 ELSE NULL END WHEN - 49 * 66 THEN NULL ELSE NULL END AS col0
----
-42
NULL

skipif mysql # not compatible
query II rowsort label-310
SELECT - 42, - COALESCE ( 81, - + 98 + + + 29, + 85 ) * 82 + COUNT ( * ) * + CASE + 13 WHEN 45 * COUNT ( * ) - + 90 * ( - 8 ) THEN CASE 80 WHEN SUM ( 61 ) + - 62 THEN NULL WHEN + 44 THEN - 55 ELSE NULL END WHEN - 49 * 66 THEN NULL ELSE NULL END AS col0
----
-42
NULL

query I rowsort
SELECT DISTINCT - 67 * - 14 + + - 61
----
877

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL COUNT( * ) * 50 * - 21 + 57 * - 6 * 12 * - 16 AS col1
----
64614

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL COUNT ( * ) * 50 * - 21 + 57 * - 6 * 12 * - 16 AS col1
----
64614

onlyif mysql # DIV for integer division: 
query I rowsort label-313
SELECT ALL - 2 DIV + - 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL - 2 / + - 25 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-314
SELECT - 24 DIV + + 42 * + 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-314
SELECT - 24 / + + 42 * + 11 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT ALL - + MIN( + 22 ) * + 60 + + + 56 + - - NULLIF ( + COUNT( * ), NULLIF ( 43, 43 + 1 * + + COUNT( * ) + MAX( 70 ) ) ) col1
----
-1263

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL - + MIN ( + 22 ) * + 60 + + + 56 + - - NULLIF ( + COUNT ( * ), NULLIF ( 43, 43 + 1 * + + COUNT ( * ) + MAX ( 70 ) ) ) col1
----
-1263

query I rowsort
SELECT - 33 * - 65 * 38 * 39 col1
----
3178890

query I rowsort
SELECT DISTINCT + ( - 57 ) * - 60 * + ( + 42 ) AS col1
----
143640

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-318
SELECT ALL 77 + 76 col1, COUNT( * ) - - AVG ( 18 ) - + + 91 + - + 14 - + - CAST( NULL AS DECIMAL ) / 25 * 0
----
153
NULL

skipif mysql # not compatible
query II rowsort label-318
SELECT ALL 77 + 76 col1, COUNT ( * ) - - AVG ( 18 ) - + + 91 + - + 14 - + - CAST ( NULL AS REAL ) / 25 * 0
----
153
NULL

query I rowsort
SELECT ALL + 99 + 10 + 13 AS col2
----
122

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

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

query I rowsort
SELECT - 5 * + 25 AS col0
----
-125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT - CASE + 83 WHEN COUNT( * ) * + 91 * - 11 THEN + 21 / - + AVG ( - 36 ) WHEN - AVG ( + - 17 ) / COUNT( * ) + - 58 THEN NULL WHEN ( - 75 ) THEN NULL WHEN 32 THEN NULL ELSE NULL END - 81 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-323
SELECT - CASE + 83 WHEN COUNT ( * ) * + 91 * - 11 THEN + 21 / - + AVG ( - 36 ) WHEN - AVG ( + - 17 ) / COUNT ( * ) + - 58 THEN NULL WHEN ( - 75 ) THEN NULL WHEN 32 THEN NULL ELSE NULL END - 81 * - 85
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL COUNT ( * ) - ( + 74 ) AS col1
----
-73

query II rowsort
SELECT DISTINCT + 34 * + + 2 col0, 78 * + - 8 col0
----
68
-624

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

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT SUM ( DISTINCT 37 )
----
37

query II rowsort
SELECT + 3 - - - 62 AS col2, 9
----
-59
9

query I rowsort
SELECT ALL 86 - + 59 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT ( + 12 ) * - 7 + - - 50 * - 83 * 13 - 65 * + 98 + COUNT( * ) * - 17 AS col1
----
-60421

skipif mysql # not compatible
query I rowsort label-331
SELECT ( + 12 ) * - 7 + - - 50 * - 83 * 13 - 65 * + 98 + COUNT ( * ) * - 17 AS col1
----
-60421

query II rowsort
SELECT + 73 * + 56 AS col2, - 89 + 66 + - 16
----
4088
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-333
SELECT - MAX( DISTINCT ( - - 81 ) ) DIV 82 + - - 74
----
74

skipif mysql # not compatible
query I rowsort label-333
SELECT - MAX ( DISTINCT ( - - 81 ) ) / 82 + - - 74
----
74

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

skipif mysql # not compatible
query I rowsort label-334
SELECT 43 / - 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-335
SELECT DISTINCT - COALESCE ( - - 64, CAST( - 64 AS SIGNED ) ) * - + 87 col0, + COUNT( * ) AS col1
----
5568
1

skipif mysql # not compatible
query II rowsort label-335
SELECT DISTINCT - COALESCE ( - - 64, CAST ( - 64 AS INTEGER ) ) * - + 87 col0, + COUNT ( * ) AS col1
----
5568
1

query I rowsort
SELECT ALL - ( + 11 ) * 5 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-337
SELECT 23 DIV 33 + - + 94
----
-94

skipif mysql # not compatible
query I rowsort label-337
SELECT 23 / 33 + - + 94
----
-94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-339
SELECT ALL - - 1 + - 75 * - 8 - 96 + + COUNT( + 58 ) + - + ( 73 ) + 70 * + - 3, - 24 col1
----
223
-24

skipif mysql # not compatible
query II rowsort label-339
SELECT ALL - - 1 + - 75 * - 8 - 96 + + COUNT ( + 58 ) + - + ( 73 ) + 70 * + - 3, - 24 col1
----
223
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-340
SELECT DISTINCT - NULLIF ( - + NULLIF ( - + COUNT( * ), - + 92 * 9 * - 7 + + ( 34 ) + - AVG ( + - ( + 70 ) ) * - + CAST( NULL AS SIGNED ) * + 21 ), + COUNT( * ) * - SUM( DISTINCT 67 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - NULLIF ( - + NULLIF ( - + COUNT ( * ), - + 92 * 9 * - 7 + + ( 34 ) + - AVG ( + - ( + 70 ) ) * - + CAST ( NULL AS INTEGER ) * + 21 ), + COUNT ( * ) * - SUM ( DISTINCT 67 ) ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-341
SELECT DISTINCT - 53 + - ( + COUNT( * ) ) * + - COUNT( * ) DIV + 68 AS col0, SUM( ALL + - 17 ) DIV - NULLIF ( + 77, 31 + - + 73 + ( - 40 ) * - 90 ) * + 13 + - MIN( - 84 ) AS col1
----
-53
84

skipif mysql # not compatible
query II rowsort label-341
SELECT DISTINCT - 53 + - ( + COUNT ( * ) ) * + - COUNT ( * ) / + 68 AS col0, SUM ( ALL + - 17 ) / - NULLIF ( + 77, 31 + - + 73 + ( - 40 ) * - 90 ) * + 13 + - MIN ( - 84 ) AS col1
----
-53
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT ALL + 89 + - MIN( + 26 ) + - 88 + + CASE 94 WHEN - CAST( NULL AS SIGNED ) THEN - COUNT( * ) WHEN + ( + - COUNT( * ) ) THEN 4 END * + + 88 + + 46 * - 55 / 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + 89 + - MIN ( + 26 ) + - 88 + + CASE 94 WHEN - CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) WHEN + ( + - COUNT ( * ) ) THEN 4 END * + + 88 + + 46 * - 55 / 96 AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT - - 57 col0
----
57

query II rowsort
SELECT ALL - + 97 + - 7 + 63, 48 * 77 AS col2
----
-41
3696

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT + COUNT( * ) * - + 74 + + 96 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-347
SELECT + COUNT ( * ) * - + 74 + + 96 AS col1
----
22

query I rowsort
SELECT 95 * - - 74
----
7030

query I rowsort
SELECT 69 + 11 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT COUNT( * ) - + + COUNT( * ) * - + 93 + - 23
----
71

skipif mysql # not compatible
query I rowsort label-350
SELECT COUNT ( * ) - + + COUNT ( * ) * - + 93 + - 23
----
71

query I rowsort
SELECT ALL - 75 - + 16 AS col1
----
-91

query I rowsort
SELECT 85 * - 2
----
-170

query I rowsort
SELECT 88 + + 28 AS col0
----
116

query II rowsort
SELECT ALL 98 * 73 * 22 AS col1, 83
----
157388
83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT 75 * CASE - 24 WHEN + COUNT( * ) THEN - 51 - + 9 / 28 * + COUNT( * ) * - 50 END * + + 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-356
SELECT 75 * CASE - 24 WHEN + COUNT ( * ) THEN - 51 - + 9 / 28 * + COUNT ( * ) * - 50 END * + + 82 col0
----
NULL

query I rowsort
SELECT COALESCE ( + - 6, 84 + - 94 + - ( - ( - 51 ) ) + 12 ) + + 53 * + 83 AS col0
----
4393

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT 85 * + - CASE + - 84 WHEN - - 3 * + 65 THEN 48 * 23 * - 37 WHEN + 5 THEN NULL WHEN - NULLIF ( + + 8, + + COUNT( * ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-358
SELECT 85 * + - CASE + - 84 WHEN - - 3 * + 65 THEN 48 * 23 * - 37 WHEN + 5 THEN NULL WHEN - NULLIF ( + + 8, + + COUNT ( * ) ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT 88 * - 17 AS col0
----
-1496

onlyif mysql # aggregate syntax: 
query II rowsort label-360
SELECT 33, MAX( 4 ) AS col1
----
33
4

skipif mysql # not compatible
query II rowsort label-360
SELECT 33, MAX ( 4 ) AS col1
----
33
4

query II rowsort
SELECT - 49, 58 * - 61 AS col0
----
-49
-3538

query I rowsort
SELECT 33 + + - 66
----
-33

query I rowsort
SELECT ALL 38 * - + 89 AS col0
----
-3382

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-364
SELECT 39 + - COUNT( * ) - + CASE + - NULLIF ( + - 80, - + 15 * + CAST( NULL AS SIGNED ) / + 68 / 30 ) WHEN + 57 THEN - 96 + - 13 END * ( - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-364
SELECT 39 + - COUNT ( * ) - + CASE + - NULLIF ( + - 80, - + 15 * + CAST ( NULL AS INTEGER ) / + 68 / 30 ) WHEN + 57 THEN - 96 + - 13 END * ( - 17 )
----
NULL

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

query I rowsort
SELECT 10 * - 53 AS col1
----
-530

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-368
SELECT DISTINCT 10 col0, + 34 * COUNT( 74 ) - 19 * + 94
----
10
-1752

skipif mysql # not compatible
query II rowsort label-368
SELECT DISTINCT 10 col0, + 34 * COUNT ( 74 ) - 19 * + 94
----
10
-1752

query I rowsort
SELECT 23 * - + 78 AS col2
----
-1794

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

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

query I rowsort
SELECT ALL - 45 + 12
----
-33

query I rowsort
SELECT ALL + 87 + - 43
----
44

query I rowsort
SELECT + 4 * + 7 * 40 AS col2
----
1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-374
SELECT ALL MAX( DISTINCT - - 31 ) + + + 62, 25 - + + CASE - CAST( NULL AS SIGNED ) WHEN - 79 THEN NULL ELSE + 47 + + CASE + 80 WHEN COALESCE ( + 84, + + CASE - 10 WHEN 44 THEN - ( 20 ) * - 37 WHEN 44 THEN - 17 WHEN + 51 * + 22 - + ( + 21 ) / MAX( DISTINCT 73 ) THEN 2 + MIN( - 96 ) ELSE NULL END, 69 - - CAST( NULL AS SIGNED ), COUNT( * ) / CASE CAST( - ( 10 ) AS SIGNED ) / - 81 WHEN + 4 * + 53 THEN NULL WHEN + ( + 20 ) THEN 86 - - 16 END ) THEN + 9 * + 82 WHEN - COUNT( * ) THEN NULL WHEN + 13 THEN NULL END / - COUNT( * ) END col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-374
SELECT ALL MAX ( DISTINCT - - 31 ) + + + 62, 25 - + + CASE - CAST ( NULL AS INTEGER ) WHEN - 79 THEN NULL ELSE + 47 + + CASE + 80 WHEN COALESCE ( + 84, + + CASE - 10 WHEN 44 THEN - ( 20 ) * - 37 WHEN 44 THEN - 17 WHEN + 51 * + 22 - + ( + 21 ) / MAX ( DISTINCT 73 ) THEN 2 + MIN ( - 96 ) ELSE NULL END, 69 - - CAST ( NULL AS INTEGER ), COUNT ( * ) / CASE CAST ( - ( 10 ) AS INTEGER ) / - 81 WHEN + 4 * + 53 THEN NULL WHEN + ( + 20 ) THEN 86 - - 16 END ) THEN + 9 * + 82 WHEN - COUNT ( * ) THEN NULL WHEN + 13 THEN NULL END / - COUNT ( * ) END col0
----
93
NULL

query I rowsort
SELECT - 70 * + 11 AS col0
----
-770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT ALL 9 * 47 * CAST( NULL AS SIGNED ) - - + 40 + CAST( - 51 AS SIGNED ) * ( - - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL 9 * 47 * CAST ( NULL AS INTEGER ) - - + 40 + CAST ( - 51 AS INTEGER ) * ( - - 64 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT ALL + 24 + + COUNT( * ) + - + 44 * - 62 * + 34
----
92777

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL + 24 + + COUNT ( * ) + - + 44 * - 62 * + 34
----
92777

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-381
SELECT DISTINCT 85 + COUNT( * ) + SUM( ALL + 99 ) * CASE + 99 WHEN - COUNT( 15 ) + 78 * - - 20 * - - 91 * + - CAST( 20 AS SIGNED ) THEN NULL WHEN 1 THEN NULL WHEN - 4 + - 73 * - 13 THEN + 26 + + ( - 11 ) * + 3 ELSE SUM( DISTINCT 92 ) END
----
9194

skipif mysql # not compatible
query I rowsort label-381
SELECT DISTINCT 85 + COUNT ( * ) + SUM ( ALL + 99 ) * CASE + 99 WHEN - COUNT ( 15 ) + 78 * - - 20 * - - 91 * + - CAST ( 20 AS INTEGER ) THEN NULL WHEN 1 THEN NULL WHEN - 4 + - 73 * - 13 THEN + 26 + + ( - 11 ) * + 3 ELSE SUM ( DISTINCT 92 ) END
----
9194

onlyif mysql # DIV for integer division: 
query II rowsort label-382
SELECT DISTINCT - - 54 AS col1, - 70 * COALESCE ( + + 28, + 97 ) DIV - 4
----
54
490

skipif mysql # not compatible
query II rowsort label-382
SELECT DISTINCT - - 54 AS col1, - 70 * COALESCE ( + + 28, + 97 ) / - 4
----
54
490

query II rowsort
SELECT + - 86 col0, 81
----
-86
81

onlyif mysql # DIV for integer division: 
query I rowsort label-384
SELECT - 29 + + 41 DIV - + ( + - 94 )
----
-29

skipif mysql # not compatible
query I rowsort label-384
SELECT - 29 + + 41 / - + ( + - 94 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-385
SELECT 63 / - CAST( NULL AS SIGNED ) * + 76 * COUNT( * ) / 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-385
SELECT 63 / - CAST ( NULL AS INTEGER ) * + 76 * COUNT ( * ) / 45 AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - 79 * - CASE + 70 WHEN ( COALESCE ( + - 75, 1 * + 26 ) ) THEN + 45 ELSE NULL END * 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-389
SELECT 95 * NULLIF ( - 75, - - ( + CAST( + + 22 AS SIGNED ) ) + 36 + 51 )
----
-7125

skipif mysql # not compatible
query I rowsort label-389
SELECT 95 * NULLIF ( - 75, - - ( + CAST ( + + 22 AS INTEGER ) ) + 36 + 51 )
----
-7125

onlyif mysql # aggregate syntax: 
query II rowsort label-390
SELECT ALL SUM( ALL 54 ) AS col0, 52 + - - 96 * + - 95
----
54
-9068

skipif mysql # not compatible
query II rowsort label-390
SELECT ALL SUM ( ALL 54 ) AS col0, 52 + - - 96 * + - 95
----
54
-9068

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT ALL - COUNT( ALL - 88 ) * + 35 col2
----
-35

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL - COUNT ( ALL - 88 ) * + 35 col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT SUM( ALL - 36 ) * + - 96 * - 49 AS col2
----
-169344

skipif mysql # not compatible
query I rowsort label-392
SELECT SUM ( ALL - 36 ) * + - 96 * - 49 AS col2
----
-169344

onlyif mysql # aggregate syntax: 
query II rowsort label-393
SELECT ALL MIN( ALL 55 ), - ( - - 61 ) * + 99 * COUNT( * ) * - 40 AS col1
----
55
241560

skipif mysql # not compatible
query II rowsort label-393
SELECT ALL MIN ( ALL 55 ), - ( - - 61 ) * + 99 * COUNT ( * ) * - 40 AS col1
----
55
241560

query I rowsort
SELECT 94 - - 61 * + - 29
----
-1675

onlyif mysql # aggregate syntax: 
query II rowsort label-395
SELECT 33 * + COUNT( * ), - 44 AS col0
----
33
-44

skipif mysql # not compatible
query II rowsort label-395
SELECT 33 * + COUNT ( * ), - 44 AS col0
----
33
-44

query I rowsort
SELECT - 44 - - 70
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT ALL CASE - COUNT( * ) WHEN 62 / + 69 * + COUNT( * ) * - - 29 * + 51 * 46 - 18 - - ( + 5 ) THEN + - 45 WHEN - 44 THEN NULL WHEN + 46 * - 54 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL CASE - COUNT ( * ) WHEN 62 / + 69 * + COUNT ( * ) * - - 29 * + 51 * 46 - 18 - - ( + 5 ) THEN + - 45 WHEN - 44 THEN NULL WHEN + 46 * - 54 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 97 * + 57 col1
----
-5529

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT ALL + 17 + - + COUNT( + - 72 ) + - - 41 + - 22 * - - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL + 17 + - + COUNT ( + - 72 ) + - - 41 + - 22 * - - COUNT ( * )
----
35

query II rowsort
SELECT ALL 85 + - 56 * - 38 * - + 50, 86 * - - 99 col0
----
-106315
8514

onlyif mysql # aggregate syntax: 
query II rowsort label-402
SELECT - 90 - + 80 + - COUNT( * ) - + + MAX( DISTINCT - + 30 ), 32 AS col1
----
-141
32

skipif mysql # not compatible
query II rowsort label-402
SELECT - 90 - + 80 + - COUNT ( * ) - + + MAX ( DISTINCT - + 30 ), 32 AS col1
----
-141
32

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT DISTINCT + - 60 + - COUNT( * ) + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT + - 60 + - COUNT ( * ) + COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - 88 * 41 * + - 45 + - SUM( DISTINCT - NULLIF ( 36, + 56 / 56 / - + 7 * - 24 ) ) + 58 - + 87 * - + 7 * - 77 + - 81 AS col0
----
115480

skipif mysql # not compatible
query I rowsort label-404
SELECT - 88 * 41 * + - 45 + - SUM ( DISTINCT - NULLIF ( 36, + 56 / 56 / - + 7 * - 24 ) ) + 58 - + 87 * - + 7 * - 77 + - 81 AS col0
----
115480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-405
SELECT 50 / SUM( ALL + - 95 ) + - - CAST( NULL AS SIGNED ) + + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-405
SELECT 50 / SUM ( ALL + - 95 ) + - - CAST ( NULL AS INTEGER ) + + - 37
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-406
SELECT - + COUNT( * ) * 15 AS col2, - ( + - 58 ) * 7
----
-15
406

skipif mysql # not compatible
query II rowsort label-406
SELECT - + COUNT ( * ) * 15 AS col2, - ( + - 58 ) * 7
----
-15
406

onlyif mysql # aggregate syntax: 
query II rowsort label-407
SELECT DISTINCT 98 * 44, 13 * - COUNT( * ) AS col0
----
4312
-13

skipif mysql # not compatible
query II rowsort label-407
SELECT DISTINCT 98 * 44, 13 * - COUNT ( * ) AS col0
----
4312
-13

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-409
SELECT ALL - CASE - 98 WHEN - ( - CAST( + 59 AS SIGNED ) ) * ( 46 ) + - 34 + - - 30 THEN NULL WHEN + 47 THEN + - ( - AVG ( ALL 30 ) ) - - - 78 * 5 END * 35 + + NULLIF ( + NULLIF ( - CASE - 63 WHEN + 22 + 63 / 76 THEN 61 * 46 WHEN 61 THEN 27 / - COALESCE ( - 72 * 45, 91 * - 4 + CAST( NULL AS SIGNED ) ) WHEN - NULLIF ( - 14, 33 * ( 9 ) + + SUM( DISTINCT + 26 ) ) / 41 THEN NULL END, ( + 83 ) ), 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL - CASE - 98 WHEN - ( - CAST ( + 59 AS INTEGER ) ) * ( 46 ) + - 34 + - - 30 THEN NULL WHEN + 47 THEN + - ( - AVG ( ALL 30 ) ) - - - 78 * 5 END * 35 + + NULLIF ( + NULLIF ( - CASE - 63 WHEN + 22 + 63 / 76 THEN 61 * 46 WHEN 61 THEN 27 / - COALESCE ( - 72 * 45, 91 * - 4 + CAST ( NULL AS INTEGER ) ) WHEN - NULLIF ( - 14, 33 * ( 9 ) + + SUM ( DISTINCT + 26 ) ) / 41 THEN NULL END, ( + 83 ) ), 46 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-410
SELECT - CAST( 15 AS SIGNED ), + 19 col1
----
-15
19

skipif mysql # not compatible
query II rowsort label-410
SELECT - CAST ( 15 AS INTEGER ), + 19 col1
----
-15
19

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL - 25 * - CASE - 72 WHEN - NULLIF ( + COUNT( * ), 33 + - MAX( + 52 ) ) * ( + 27 ) / - - 69 + + COUNT( * ) * - 70 + - ( + ( 79 ) ) + - 7 THEN + 77 * 90 + + 86 ELSE NULL END * + 92 + - 49 * 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - 25 * - CASE - 72 WHEN - NULLIF ( + COUNT ( * ), 33 + - MAX ( + 52 ) ) * ( + 27 ) / - - 69 + + COUNT ( * ) * - 70 + - ( + ( 79 ) ) + - 7 THEN + 77 * 90 + + 86 ELSE NULL END * + 92 + - 49 * 25 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-412
SELECT + 63 * - + 33 * - - 63 + + 22 * CAST( NULL AS SIGNED ) + - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT + 63 * - + 33 * - - 63 + + 22 * CAST ( NULL AS INTEGER ) + - 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT + 17 + MAX( ALL + 21 ) * NULLIF ( + 74, - + COUNT( * ) * 25 * - 88 + 54 ) + 66
----
1637

skipif mysql # not compatible
query I rowsort label-413
SELECT + 17 + MAX ( ALL + 21 ) * NULLIF ( + 74, - + COUNT ( * ) * 25 * - 88 + 54 ) + 66
----
1637

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT + MIN( - 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-414
SELECT + MIN ( - 72 ) AS col1
----
-72

query I rowsort
SELECT + 70 * + + 92
----
6440

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-419
SELECT ALL + 33 AS col0, COUNT( * ) + + 86
----
33
87

skipif mysql # not compatible
query II rowsort label-419
SELECT ALL + 33 AS col0, COUNT ( * ) + + 86
----
33
87

query I rowsort
SELECT + 4 - - ( - 0 ) AS col1
----
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT ALL MIN( + - 38 ) * 53 * - - 57 + + CASE + + 65 WHEN + 44 + + 80 THEN NULL WHEN 91 * + 67 * + COUNT( * ) * ( + 70 ) - + 27 + - 44 THEN NULL ELSE COUNT( * ) * + 67 END AS col2
----
-114731

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL MIN ( + - 38 ) * 53 * - - 57 + + CASE + + 65 WHEN + 44 + + 80 THEN NULL WHEN 91 * + 67 * + COUNT ( * ) * ( + 70 ) - + 27 + - 44 THEN NULL ELSE COUNT ( * ) * + 67 END AS col2
----
-114731

query I rowsort
SELECT + 66 * + 68 + 89 AS col2
----
4577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-424
SELECT + MIN( 40 ) * - 57 * NULLIF ( - 24, + + 23 * + COUNT( * ) * CAST( + + 42 AS SIGNED ) ) AS col0
----
54720

skipif mysql # not compatible
query I rowsort label-424
SELECT + MIN ( 40 ) * - 57 * NULLIF ( - 24, + + 23 * + COUNT ( * ) * CAST ( + + 42 AS INTEGER ) ) AS col0
----
54720

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT + MIN( ALL 9 ) + - ( 90 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-425
SELECT + MIN ( ALL 9 ) + - ( 90 ) AS col2
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-426
SELECT - MIN( ALL 77 ) - + 3 + - - 18 DIV - 66 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-426
SELECT - MIN ( ALL 77 ) - + 3 + - - 18 / - 66 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL SUM( ALL - 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL SUM ( ALL - 65 ) AS col1
----
-65

query I rowsort
SELECT + 21 + 85
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-429
SELECT ALL 27 + - ( + 13 ) + - 31 * 8 DIV + COUNT( * ) + - + 15 AS col2
----
-249

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL 27 + - ( + 13 ) + - 31 * 8 / + COUNT ( * ) + - + 15 AS col2
----
-249

query II rowsort
SELECT DISTINCT 96 AS col1, 56
----
96
56

onlyif mysql # aggregate syntax: 
query II rowsort label-431
SELECT 96 AS col1, NULLIF ( + 34, + - 77 / + 68 + + COUNT( * ) ) AS col0
----
96
34

skipif mysql # not compatible
query II rowsort label-431
SELECT 96 AS col1, NULLIF ( + 34, + - 77 / + 68 + + COUNT ( * ) ) AS col0
----
96
34

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - 15 + COALESCE ( - COUNT( - CASE 28 WHEN ( + - 77 ) THEN 21 ELSE NULL END ), 11 + - 75 * 82 * 50 ) + + MAX( ALL + - 40 ) * 40 AS col2
----
-1615

skipif mysql # not compatible
query I rowsort label-432
SELECT - 15 + COALESCE ( - COUNT ( - CASE 28 WHEN ( + - 77 ) THEN 21 ELSE NULL END ), 11 + - 75 * 82 * 50 ) + + MAX ( ALL + - 40 ) * 40 AS col2
----
-1615

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL MIN( - + 55 ) + 45 * + COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL MIN ( - + 55 ) + 45 * + COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT - 91 + - 33
----
-124

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

query I rowsort
SELECT DISTINCT + 40 + - 49
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT ALL - ( + - 45 ) + + CASE - CASE - + 38 WHEN 15 THEN NULL WHEN 52 * + - 79 - + ( 89 ) THEN - 5 * + - 65 ELSE NULL END WHEN + 7 / + 35 - + 2 THEN NULL WHEN COUNT( * ) * + 54 THEN 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL - ( + - 45 ) + + CASE - CASE - + 38 WHEN 15 THEN NULL WHEN 52 * + - 79 - + ( 89 ) THEN - 5 * + - 65 ELSE NULL END WHEN + 7 / + 35 - + 2 THEN NULL WHEN COUNT ( * ) * + 54 THEN 27 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-438
SELECT + - 79 * - + MAX( - 80 ) - - 40 + + CAST( 81 AS SIGNED ) DIV ( + 3 )
----
-6253

skipif mysql # not compatible
query I rowsort label-438
SELECT + - 79 * - + MAX ( - 80 ) - - 40 + + CAST ( 81 AS INTEGER ) / ( + 3 )
----
-6253

query I rowsort
SELECT - + 65 col1
----
-65

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

onlyif mysql # DIV for integer division: 
query II rowsort label-441
SELECT ALL 77 col2, + 57 DIV ( 82 ) - - + 58
----
77
58

skipif mysql # not compatible
query II rowsort label-441
SELECT ALL 77 col2, + 57 / ( 82 ) - - + 58
----
77
58

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT ALL - 24 + + + NULLIF ( - 44, - COUNT( * ) ) + - - 85 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL - 24 + + + NULLIF ( - 44, - COUNT ( * ) ) + - - 85 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT DISTINCT MAX( - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT MAX ( - 26 ) AS col2
----
-26

query I rowsort
SELECT DISTINCT + - 49 AS col2
----
-49

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

skipif mysql # not compatible
query I rowsort label-445
SELECT - 88 / - + 64
----
1

query I rowsort
SELECT - + 52 * + 22 AS col1
----
-1144

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-448
SELECT DISTINCT + - 90 DIV - MAX( 84 ) AS col0, COUNT( * ) + + COUNT( * ) AS col2
----
1
2

skipif mysql # not compatible
query II rowsort label-448
SELECT DISTINCT + - 90 / - MAX ( 84 ) AS col0, COUNT ( * ) + + COUNT ( * ) AS col2
----
1
2

onlyif mysql # DIV for integer division: 
query II rowsort label-449
SELECT ALL ( + 39 ) DIV + 73 * - 88 - 96, 35 * - 51 + + ( + 9 ) AS col0
----
-96
-1776

skipif mysql # not compatible
query II rowsort label-449
SELECT ALL ( + 39 ) / + 73 * - 88 - 96, 35 * - 51 + + ( + 9 ) AS col0
----
-96
-1776

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL + + 40 * + CASE WHEN + 45 NOT IN ( + SUM( - 76 ), 88 - COALESCE ( - 51, 33 ) + + - ( + 11 ) + - - 55 * 12 ) THEN - 33 ELSE NULL END * 82 + ( 43 ) AS col1
----
-108197

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL + + 40 * + CASE WHEN + 45 NOT IN ( + SUM ( - 76 ), 88 - COALESCE ( - 51, 33 ) + + - ( + 11 ) + - - 55 * 12 ) THEN - 33 ELSE NULL END * 82 + ( 43 ) AS col1
----
-108197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-451
SELECT - + 2 - + COALESCE ( - 32, - + CAST( + + ( + CASE SUM( 61 ) WHEN + ( 25 ) + + + 41 THEN + 30 WHEN - 7 THEN - 28 * - 42 - 49 ELSE 24 END ) AS SIGNED ) ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-451
SELECT - + 2 - + COALESCE ( - 32, - + CAST ( + + ( + CASE SUM ( 61 ) WHEN + ( 25 ) + + + 41 THEN + 30 WHEN - 7 THEN - 28 * - 42 - 49 ELSE 24 END ) AS INTEGER ) ) AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-452
SELECT + + 97 DIV + 12
----
8

skipif mysql # not compatible
query I rowsort label-452
SELECT + + 97 / + 12
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT + + 70 * COUNT( * ) - - ( - 26 )
----
44

skipif mysql # not compatible
query I rowsort label-453
SELECT + + 70 * COUNT ( * ) - - ( - 26 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT 79 * - SUM( + 86 ) + - 27 + + COUNT( * ) AS col2
----
-6820

skipif mysql # not compatible
query I rowsort label-454
SELECT 79 * - SUM ( + 86 ) + - 27 + + COUNT ( * ) AS col2
----
-6820

query I rowsort
SELECT - ( + 41 ) * - 71
----
2911

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL + MAX( ALL - 53 ) * 76 AS col0
----
-4028

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL + MAX ( ALL - 53 ) * 76 AS col0
----
-4028

query II rowsort
SELECT DISTINCT + 37 AS col2, + 34 AS col0
----
37
34

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

query II rowsort
SELECT ALL + 52, - 44 AS col0
----
52
-44

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-461
SELECT ALL 39 + NULLIF ( 30, - 79 + COUNT( * ) ) DIV - - MAX( DISTINCT + 53 ) * 82 + + 67
----
106

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL 39 + NULLIF ( 30, - 79 + COUNT ( * ) ) / - - MAX ( DISTINCT + 53 ) * 82 + + 67
----
106

query I rowsort
SELECT ALL - 17 + + - 67
----
-84

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

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

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

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT + 44 / - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT ALL COUNT( * ) + - 82
----
-81

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL COUNT ( * ) + - 82
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-466
SELECT ALL ( + 47 ) * + + COUNT( * ) + - 86, + COUNT( * ) DIV 8 AS col1
----
-39
0

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL ( + 47 ) * + + COUNT ( * ) + - 86, + COUNT ( * ) / 8 AS col1
----
-39
0

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

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

query I rowsort
SELECT DISTINCT 14 + + + 13 AS col2
----
27

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

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

query I rowsort
SELECT - 23 - 27
----
-50

query I rowsort
SELECT ALL 92 + + 33 AS col1
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-472
SELECT 10 AS col1, COUNT( * ) DIV 66
----
10
0

skipif mysql # not compatible
query II rowsort label-472
SELECT 10 AS col1, COUNT ( * ) / 66
----
10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL - + MAX( ALL - + 48 ) - - - 48
----
0

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL - + MAX ( ALL - + 48 ) - - - 48
----
0

query I rowsort
SELECT + 59 - - + 42 * - - 62
----
2663

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-475
SELECT + 72 - + + 5 / - 5 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-475
SELECT + 72 - + + 5 / - 5 / CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT COUNT( 69 ) - - - 71 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-477
SELECT COUNT ( 69 ) - - - 71 AS col0
----
-70

query I rowsort
SELECT + 25 * 86
----
2150

query I rowsort
SELECT 82 * - - 88 + 60
----
7276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-480
SELECT COUNT( * ) DIV - - 86 + - 39 * + CASE + 91 WHEN - - 87 THEN NULL ELSE + 22 END + - 4 col1
----
-862

skipif mysql # not compatible
query I rowsort label-480
SELECT COUNT ( * ) / - - 86 + - 39 * + CASE + 91 WHEN - - 87 THEN NULL ELSE + 22 END + - 4 col1
----
-862

query I rowsort
SELECT ALL ( - + 72 ) * - 49 - + 54
----
3474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-482
SELECT 61 * - COUNT( * ) + + CAST( + 12 AS SIGNED ) + + COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-482
SELECT 61 * - COUNT ( * ) + + CAST ( + 12 AS INTEGER ) + + COUNT ( * ) AS col0
----
-48

query II rowsort
SELECT ALL - - 5 AS col1, + 61 col1
----
5
61

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT ALL - MIN( DISTINCT + - 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL - MIN ( DISTINCT + - 8 ) AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT ALL - - 12 DIV - + 86 col1
----
0

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL - - 12 / - + 86 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-486
SELECT ALL - 80 DIV - 61 col2
----
1

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL - 80 / - 61 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-487
SELECT + SUM( DISTINCT + - ( + - 73 ) ) * CAST( 17 AS SIGNED ) * ( 61 ) AS col0
----
75701

skipif mysql # not compatible
query I rowsort label-487
SELECT + SUM ( DISTINCT + - ( + - 73 ) ) * CAST ( 17 AS INTEGER ) * ( 61 ) AS col0
----
75701

onlyif mysql # DIV for integer division: 
query I rowsort label-488
SELECT - 58 DIV - 71 + + 88 * - 96 AS col0
----
-8448

skipif mysql # not compatible
query I rowsort label-488
SELECT - 58 / - 71 + + 88 * - 96 AS col0
----
-8448

query I rowsort
SELECT ( - - ( - 73 ) ) * - + 80
----
5840

onlyif mysql # DIV for integer division: 
query II rowsort label-490
SELECT ALL - 30 DIV - - 24, + 57 AS col0
----
-1
57

skipif mysql # not compatible
query II rowsort label-490
SELECT ALL - 30 / - - 24, + 57 AS col0
----
-1
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-491
SELECT 94 + + + 40 * - - NULLIF ( + + COUNT( * ), - 27 ) * + + 47 * - + CAST( NULL AS DECIMAL ) + + + ( - COALESCE ( - ( - COUNT( * ) ), + 88 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-491
SELECT 94 + + + 40 * - - NULLIF ( + + COUNT ( * ), - 27 ) * + + 47 * - + CAST ( NULL AS REAL ) + + + ( - COALESCE ( - ( - COUNT ( * ) ), + 88 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT ALL + 58 + - SUM( 22 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL + 58 + - SUM ( 22 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT - 33 * + 0 * - NULLIF ( 94, - 5 * + - ( 93 ) + ( - COUNT( * ) ) ) * 39 + + 66 + COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-493
SELECT - 33 * + 0 * - NULLIF ( 94, - 5 * + - ( 93 ) + ( - COUNT ( * ) ) ) * 39 + + 66 + COUNT ( * ) AS col1
----
67

query I rowsort
SELECT ALL + 85 + - - ( - 61 ) col2
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-495
SELECT ALL - 30 DIV + 79 * 74 AS col2, - 95
----
0
-95

skipif mysql # not compatible
query II rowsort label-495
SELECT ALL - 30 / + 79 * 74 AS col2, - 95
----
0
-95

query I rowsort
SELECT DISTINCT + ( 22 ) + - + 26 AS col1
----
-4

query I rowsort
SELECT ALL - 85 + + 68 * 7 * + ( - + 93 ) AS col1
----
-44353

query I rowsort
SELECT ALL + 58 + + 32 + 69
----
159

query I rowsort
SELECT ALL 86 + - - 33 * + 20 * - - 45 + + 44 * - + CASE + 44 WHEN + 6 THEN - 77 WHEN NULLIF ( + + 96, - + 35 ) THEN - 24 WHEN 62 + + + 16 THEN NULL ELSE 51 END + 14
----
27556

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT 39 + + NULLIF ( - COUNT( * ), + ( ( 60 ) ) * 16 )
----
38

skipif mysql # not compatible
query I rowsort label-500
SELECT 39 + + NULLIF ( - COUNT ( * ), + ( ( 60 ) ) * 16 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-501
SELECT ALL - CAST( CAST( - - MAX( + ( - - 96 ) ) AS SIGNED ) AS SIGNED ) + 59 + + ( - 35 ) * + - 7
----
208

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - CAST ( CAST ( - - MAX ( + ( - - 96 ) ) AS INTEGER ) AS INTEGER ) + 59 + + ( - 35 ) * + - 7
----
208

query I rowsort
SELECT ALL + ( ( + 56 ) ) + + 93
----
149

query I rowsort
SELECT 29 + 41 AS col0
----
70

query II rowsort
SELECT 38 + 45, - 60 AS col0
----
83
-60

query I rowsort
SELECT ALL - 23 - - - 47 * - 46 AS col2
----
2139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-506
SELECT - 21 + ( - 22 ) * CAST( + 83 AS SIGNED ) - - + 70 + - 14 AS col0
----
-1791

skipif mysql # not compatible
query I rowsort label-506
SELECT - 21 + ( - 22 ) * CAST ( + 83 AS INTEGER ) - - + 70 + - 14 AS col0
----
-1791

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL - 76 - - COUNT( * ) - - - 66 AS col2
----
-141

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL - 76 - - COUNT ( * ) - - - 66 AS col2
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT ALL - - 48 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL - - 48 / - 33
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-509
SELECT CAST( - + 13 AS SIGNED ) * + 9 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-509
SELECT CAST ( - + 13 AS INTEGER ) * + 9 AS col2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT - 79 / NULLIF ( + - 75, - COALESCE ( - - 29, COUNT( * ) ) ) * + CASE - 83 WHEN - 75 * 55 THEN NULL WHEN + - COUNT( * ) - 51 + - COUNT( * ) * COUNT( * ) * - 74 THEN 19 WHEN + 0 * + MIN( ALL + 52 ) THEN NULL ELSE NULL END + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-510
SELECT - 79 / NULLIF ( + - 75, - COALESCE ( - - 29, COUNT ( * ) ) ) * + CASE - 83 WHEN - 75 * 55 THEN NULL WHEN + - COUNT ( * ) - 51 + - COUNT ( * ) * COUNT ( * ) * - 74 THEN 19 WHEN + 0 * + MIN ( ALL + 52 ) THEN NULL ELSE NULL END + - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT COUNT( ALL 92 ) * - NULLIF ( + - 46, 50 + - NULLIF ( + - 27, 36 ) ) * + + 82 AS col1
----
3772

skipif mysql # not compatible
query I rowsort label-511
SELECT COUNT ( ALL 92 ) * - NULLIF ( + - 46, 50 + - NULLIF ( + - 27, 36 ) ) * + + 82 AS col1
----
3772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-512
SELECT ALL + COALESCE ( + - 5, + 85 + - - 35 * - ( - - 86 ) * + 4 DIV - MIN( DISTINCT 80 ) + + 93 )
----
-5

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL + COALESCE ( + - 5, + 85 + - - 35 * - ( - - 86 ) * + 4 / - MIN ( DISTINCT 80 ) + + 93 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-513
SELECT + 32 + - + MAX( - CAST( NULL AS DECIMAL ) ) AS col0, 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-513
SELECT + 32 + - + MAX ( - CAST ( NULL AS REAL ) ) AS col0, 27
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT COUNT( * ) * + COALESCE ( - 99, - COALESCE ( + + 70, 76, COUNT( * ) ) ) + + CASE - + 70 WHEN - CASE + - 87 WHEN - COALESCE ( + + 16, - 86, + - COUNT( * ) * - - 5 + + ( 24 ) * - 18 ) THEN 76 * 42 + 8 END + + 6 THEN 12 * + 81 WHEN 70 THEN SUM( DISTINCT 64 ) + - 33 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT COUNT ( * ) * + COALESCE ( - 99, - COALESCE ( + + 70, 76, COUNT ( * ) ) ) + + CASE - + 70 WHEN - CASE + - 87 WHEN - COALESCE ( + + 16, - 86, + - COUNT ( * ) * - - 5 + + ( 24 ) * - 18 ) THEN 76 * 42 + 8 END + + 6 THEN 12 * + 81 WHEN 70 THEN SUM ( DISTINCT 64 ) + - 33 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT ALL MAX( ALL - 18 ) col2
----
-18

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL MAX ( ALL - 18 ) col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT 76 * + - COUNT( * ) * - 43 * - COUNT( * ) + + 78
----
-3190

skipif mysql # not compatible
query I rowsort label-516
SELECT 76 * + - COUNT ( * ) * - 43 * - COUNT ( * ) + + 78
----
-3190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-517
SELECT + CASE - CAST( NULL AS SIGNED ) WHEN + - 10 + - AVG ( + + 82 ) THEN + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-517
SELECT + CASE - CAST ( NULL AS INTEGER ) WHEN + - 10 + - AVG ( + + 82 ) THEN + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-518
SELECT - CASE 24 WHEN - 8 THEN - 21 END + - + ( + 35 ) + + 60 / - 69 AS col1, + MIN( DISTINCT + 49 ) - + 99
----
NULL
-50

skipif mysql # not compatible
query II rowsort label-518
SELECT - CASE 24 WHEN - 8 THEN - 21 END + - + ( + 35 ) + + 60 / - 69 AS col1, + MIN ( DISTINCT + 49 ) - + 99
----
NULL
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT DISTINCT + COUNT( * ) * 31 - 9 + 33 col2
----
55

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT + COUNT ( * ) * 31 - 9 + 33 col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - MAX( DISTINCT + + 98 ) + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-520
SELECT - MAX ( DISTINCT + + 98 ) + COUNT ( * )
----
-97

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

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

query I rowsort
SELECT ALL - 70 * + + 1 + - 23 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT ALL + COUNT( * ) * + + 74 + 15 * 89 col2
----
1409

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + COUNT ( * ) * + + 74 + 15 * 89 col2
----
1409

query I rowsort
SELECT + 28 - 81 AS col0
----
-53

query II rowsort
SELECT + 46 * + + ( - 19 ) * - - 29 AS col0, - 24
----
-25346
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-526
SELECT - 29 * + COALESCE ( + + MIN( ALL 75 ), 36, + - CAST( + NULLIF ( - 65, + NULLIF ( COUNT( * ), - 49 ) ) AS SIGNED ) ) - + - 35
----
-2140

skipif mysql # not compatible
query I rowsort label-526
SELECT - 29 * + COALESCE ( + + MIN ( ALL 75 ), 36, + - CAST ( + NULLIF ( - 65, + NULLIF ( COUNT ( * ), - 49 ) ) AS INTEGER ) ) - + - 35
----
-2140

query I rowsort
SELECT DISTINCT 69 * 56
----
3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-528
SELECT ALL - NULLIF ( - 3, + 85 ) * 51 * - 93 * COALESCE ( - - CAST( 31 AS SIGNED ), + - 28 ) + - CASE + 58 WHEN + - ( + COUNT( * ) ) THEN - 53 + - 38 WHEN 36 * COUNT( * ) + MAX( DISTINCT 78 ) + 42 * - 63 THEN NULL END * COUNT( 7 ) + + MIN( 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - NULLIF ( - 3, + 85 ) * 51 * - 93 * COALESCE ( - - CAST ( 31 AS INTEGER ), + - 28 ) + - CASE + 58 WHEN + - ( + COUNT ( * ) ) THEN - 53 + - 38 WHEN 36 * COUNT ( * ) + MAX ( DISTINCT 78 ) + 42 * - 63 THEN NULL END * COUNT ( 7 ) + + MIN ( 30 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-529
SELECT ALL 4 * CAST( + MAX( - 94 ) AS SIGNED )
----
-376

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL 4 * CAST ( + MAX ( - 94 ) AS INTEGER )
----
-376

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT DISTINCT - 81 DIV 90 * + 75 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - 81 / 90 * + 75 / 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-531
SELECT - CAST( NULL AS SIGNED ) / 82 * 13 + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-531
SELECT - CAST ( NULL AS INTEGER ) / 82 * 13 + - 53
----
NULL

query I rowsort
SELECT ALL + 61 * + 57 + 68 AS col2
----
3545

query I rowsort
SELECT + NULLIF ( + + 46, - + 12 ) AS col0
----
46

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

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

query I rowsort
SELECT + 80 * - + 62 AS col0
----
-4960

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-536
SELECT DISTINCT - CAST( - 6 AS SIGNED ) DIV - CAST( - ( + + 30 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT - CAST ( - 6 AS INTEGER ) / - CAST ( - ( + + 30 ) AS INTEGER )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT - COUNT( * ) * + ( - 2 ) * - 54 + + 75 - + ( COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-538
SELECT - COUNT ( * ) * + ( - 2 ) * - 54 + + 75 - + ( COUNT ( * ) )
----
-34

query I rowsort
SELECT ALL + 64 * ( 30 )
----
1920

query I rowsort
SELECT ALL + 55 * - + 88 * - 77
----
372680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-541
SELECT ALL - 91 - + 85 / 81 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL - 91 - + 85 / 81 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 26 * - + 8 col0
----
208

query II rowsort
SELECT DISTINCT ( ( 90 ) ) AS col0, 49 * + 48 AS col0
----
90
2352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-544
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - 64 * + - 82 * + + 81 * + + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-544
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - 64 * + - 82 * + + 81 * + + 4 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 79 AS col2, 78 col1
----
79
78

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

query I rowsort
SELECT - 80 * NULLIF ( + - 58, + COALESCE ( 11, - + 53 * + + 6 * + 69 * 73 ) * - - 89 )
----
4640

onlyif mysql # aggregate syntax: 
query II rowsort label-548
SELECT - ( - + 25 ) - - ( - 26 ) + 82 - + + COUNT( * ) + + - 83 * + 1 AS col0, 2 col2
----
-3
2

skipif mysql # not compatible
query II rowsort label-548
SELECT - ( - + 25 ) - - ( - 26 ) + 82 - + + COUNT ( * ) + + - 83 * + 1 AS col0, 2 col2
----
-3
2

query II rowsort
SELECT DISTINCT - 63, - 29 AS col0
----
-63
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-550
SELECT - - 90 - + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-550
SELECT - - 90 - + COUNT ( * )
----
89

query I rowsort
SELECT - + 15 + 26 - 81 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT - - 40 + 13 - + + SUM( 87 )
----
-34

skipif mysql # not compatible
query I rowsort label-552
SELECT - - 40 + 13 - + + SUM ( 87 )
----
-34

query I rowsort
SELECT DISTINCT 83 + - 47
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-554
SELECT - COALESCE ( - - 95, + - COUNT( * ), + - 36 + 92 + - 66, + COALESCE ( + 26, 57 DIV + - ( COUNT( * ) ) + + - 30 - - - ( + 95 ) * + - 4 * 97 * - 46, - + 46 + + 19 ) * 76 ) + + CAST( 8 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-554
SELECT - COALESCE ( - - 95, + - COUNT ( * ), + - 36 + 92 + - 66, + COALESCE ( + 26, 57 / + - ( COUNT ( * ) ) + + - 30 - - - ( + 95 ) * + - 4 * 97 * - 46, - + 46 + + 19 ) * 76 ) + + CAST ( 8 AS INTEGER )
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-555
SELECT + 70 - + 11 - - + CAST( NULL AS DECIMAL ), 49 * - NULLIF ( + + 2, - + ( + 90 ) ) AS col0
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-555
SELECT + 70 - + 11 - - + CAST ( NULL AS REAL ), 49 * - NULLIF ( + + 2, - + ( + 90 ) ) AS col0
----
NULL
-98

query I rowsort
SELECT ALL ( + - 11 ) * + 99 * 19 * - 94 col2
----
1944954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-557
SELECT DISTINCT CAST( + COALESCE ( + 23, - - SUM( ALL + 90 ) * + 14 + - 85 * 76 * - - 4 ) AS SIGNED ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT CAST ( + COALESCE ( + 23, - - SUM ( ALL + 90 ) * + 14 + - 85 * 76 * - - 4 ) AS INTEGER ) AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-558
SELECT + 84 + 25 * + - CAST( + 61 AS SIGNED ) * 59 + 75 AS col2
----
-89816

skipif mysql # not compatible
query I rowsort label-558
SELECT + 84 + 25 * + - CAST ( + 61 AS INTEGER ) * 59 + 75 AS col2
----
-89816

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT + 46 DIV + 85 * - 47
----
0

skipif mysql # not compatible
query I rowsort label-560
SELECT + 46 / + 85 * - 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-561
SELECT DISTINCT + 44 DIV 86 + 86 * - - ( - 32 ) AS col2, + 37 * ( - 89 ) DIV 48 - + 89 + COUNT( * ) * + 54
----
-2752
-103

skipif mysql # not compatible
query II rowsort label-561
SELECT DISTINCT + 44 / 86 + 86 * - - ( - 32 ) AS col2, + 37 * ( - 89 ) / 48 - + 89 + COUNT ( * ) * + 54
----
-2752
-103

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT ALL 6 DIV - 38 + + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL 6 / - 38 + + 13 AS col1
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-564
SELECT DISTINCT - AVG ( ALL - - 33 ) / - + ( + CAST( NULL AS SIGNED ) ) + 26 + NULLIF ( - + ( + 91 ), + - 52 + + MIN( ALL - 54 ) ) * 50, + 39 AS col2
----
NULL
39

skipif mysql # not compatible
query II rowsort label-564
SELECT DISTINCT - AVG ( ALL - - 33 ) / - + ( + CAST ( NULL AS INTEGER ) ) + 26 + NULLIF ( - + ( + 91 ), + - 52 + + MIN ( ALL - 54 ) ) * 50, + 39 AS col2
----
NULL
39

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT 95 DIV 88 + + - 18 * - 49
----
883

skipif mysql # not compatible
query I rowsort label-565
SELECT 95 / 88 + + - 18 * - 49
----
883

query I rowsort
SELECT + ( NULLIF ( - 19, - - 77 * - + 95 + - - 29 ) )
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-567
SELECT - 12 / - CASE - SUM( + + CAST( - + 54 AS SIGNED ) ) WHEN - + NULLIF ( - + 43, 65 * - + MIN( ALL + 21 ) ) * + + 35 THEN NULL ELSE - 96 END / + + 93 * - + CAST( NULL AS SIGNED ) + + SUM( + COALESCE ( + - 57, + 53 * + - 18 * 35 ) ) + 48 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-567
SELECT - 12 / - CASE - SUM ( + + CAST ( - + 54 AS INTEGER ) ) WHEN - + NULLIF ( - + 43, 65 * - + MIN ( ALL + 21 ) ) * + + 35 THEN NULL ELSE - 96 END / + + 93 * - + CAST ( NULL AS INTEGER ) + + SUM ( + COALESCE ( + - 57, + 53 * + - 18 * 35 ) ) + 48 * - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT + 80 + - + NULLIF ( - - CASE - 24 WHEN + 8 - 66 * + COALESCE ( + - 12, - - ( 79 ) ) - - - COUNT( * ) THEN 35 ELSE NULL END, + 69 - - MIN( DISTINCT - 32 ) ) + 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-568
SELECT + 80 + - + NULLIF ( - - CASE - 24 WHEN + 8 - 66 * + COALESCE ( + - 12, - - ( 79 ) ) - - - COUNT ( * ) THEN 35 ELSE NULL END, + 69 - - MIN ( DISTINCT - 32 ) ) + 99 AS col1
----
NULL

query I rowsort
SELECT + 39 * - + 48
----
-1872

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

query I rowsort
SELECT + 56 + + 20 + 38 + 30 * 38
----
1254

query I rowsort
SELECT - 62 * - 65 AS col1
----
4030

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-574
SELECT + 8 + 80 - 41 * - 22 + 23 - + - CASE - - COUNT( * ) WHEN + 38 THEN 68 * + 39 WHEN + - 52 + ( 40 ) THEN + 23 * - 80 ELSE - + SUM( + COALESCE ( + + 75, + COALESCE ( 6, - 37 ) DIV - 1 ) ) END DIV 6 AS col1
----
1001

skipif mysql # not compatible
query I rowsort label-574
SELECT + 8 + 80 - 41 * - 22 + 23 - + - CASE - - COUNT ( * ) WHEN + 38 THEN 68 * + 39 WHEN + - 52 + ( 40 ) THEN + 23 * - 80 ELSE - + SUM ( + COALESCE ( + + 75, + COALESCE ( 6, - 37 ) / - 1 ) ) END / 6 AS col1
----
1001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-575
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), + + 39 + - 0 + + 65 ) * + 25 DIV COUNT( * ) - 30
----
2570

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), + + 39 + - 0 + + 65 ) * + 25 / COUNT ( * ) - 30
----
2570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-576
SELECT + 29 * - 57 - 96 + MAX( DISTINCT + CASE + 32 WHEN 4 / + 51 + 49 THEN ( - ( - CAST( NULL AS SIGNED ) ) ) + 7 + + 84 * - - 10 / - 80 - 27 ELSE NULL END ) AS col2, 33 AS col0
----
NULL
33

skipif mysql # not compatible
query II rowsort label-576
SELECT + 29 * - 57 - 96 + MAX ( DISTINCT + CASE + 32 WHEN 4 / + 51 + 49 THEN ( - ( - CAST ( NULL AS INTEGER ) ) ) + 7 + + 84 * - - 10 / - 80 - 27 ELSE NULL END ) AS col2, 33 AS col0
----
NULL
33

query I rowsort
SELECT - 2 + - 10
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT + COUNT( ALL - 33 ) * + 49 + 19 + 28
----
96

skipif mysql # not compatible
query I rowsort label-578
SELECT + COUNT ( ALL - 33 ) * + 49 + 19 + 28
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-579
SELECT + + ( - MAX( ALL - + ( 99 ) ) ) DIV - + 28
----
-3

skipif mysql # not compatible
query I rowsort label-579
SELECT + + ( - MAX ( ALL - + ( 99 ) ) ) / - + 28
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT + - SUM( ALL + 41 ) + + ( 52 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-580
SELECT + - SUM ( ALL + 41 ) + + ( 52 ) AS col2
----
11

query I rowsort
SELECT - + 30 * + + ( - 72 )
----
2160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-582
SELECT + + CAST( NULL AS SIGNED ) + + 16 + 61 * - ( + 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-582
SELECT + + CAST ( NULL AS INTEGER ) + + 16 + 61 * - ( + 96 ) AS col2
----
NULL

query I rowsort
SELECT - + 13 - 77
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-584
SELECT - - 44 + - + 94 + - 53 * + 55 + 51 DIV - 9 AS col1
----
-2970

skipif mysql # not compatible
query I rowsort label-584
SELECT - - 44 + - + 94 + - 53 * + 55 + 51 / - 9 AS col1
----
-2970

query I rowsort
SELECT ALL - - 68 * - 44 col0
----
-2992

query I rowsort
SELECT DISTINCT 52 * NULLIF ( 60, ( + + 97 ) / + 64 ) + 81
----
3201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT ALL 88 + - 47 * 64 + 7 + + CAST( - 66 AS SIGNED )
----
-2979

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL 88 + - 47 * 64 + 7 + + CAST ( - 66 AS INTEGER )
----
-2979

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-588
SELECT - COUNT( * ) + - + 91 DIV + 33
----
-3

skipif mysql # not compatible
query I rowsort label-588
SELECT - COUNT ( * ) + - + 91 / + 33
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT - + COUNT( DISTINCT + - 11 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-589
SELECT - + COUNT ( DISTINCT + - 11 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT - 99 * - NULLIF ( + 46, COUNT( DISTINCT - - 34 ) + 23 )
----
4554

skipif mysql # not compatible
query I rowsort label-590
SELECT - 99 * - NULLIF ( + 46, COUNT ( DISTINCT - - 34 ) + 23 )
----
4554

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

query I rowsort
SELECT 98 + + - 12 * - 70
----
938

query II rowsort
SELECT ALL - 48 + + - 20 AS col1, ( - 23 ) AS col0
----
-68
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT DISTINCT + MIN( ALL - - ( + 99 ) ) + 53 AS col0
----
152

skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + MIN ( ALL - - ( + 99 ) ) + 53 AS col0
----
152

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + COUNT( * ) * - 69 col0
----
-69

skipif mysql # not compatible
query I rowsort label-596
SELECT + COUNT ( * ) * - 69 col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL - CASE + + COUNT( * ) WHEN + - 46 * - + 12 * 34 / MIN( + + 35 ) THEN 23 - + + 80 + - 45 * - 39 * - 10 + + 41 + - 84 + + 55 / + + COUNT( * ) END + + COUNT( * ) + COUNT( DISTINCT 90 ) / 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL - CASE + + COUNT ( * ) WHEN + - 46 * - + 12 * 34 / MIN ( + + 35 ) THEN 23 - + + 80 + - 45 * - 39 * - 10 + + 41 + - 84 + + 55 / + + COUNT ( * ) END + + COUNT ( * ) + COUNT ( DISTINCT 90 ) / 82 AS col2
----
NULL

query II rowsort
SELECT - 16, 22 col0
----
-16
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-599
SELECT ALL ( + COUNT( * ) ) - 32 * + - 17 * + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL ( + COUNT ( * ) ) - 32 * + - 17 * + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT COUNT( * ) * - 7 * 33 AS col1
----
-231

skipif mysql # not compatible
query I rowsort label-600
SELECT COUNT ( * ) * - 7 * 33 AS col1
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL + CASE - 26 WHEN + 75 THEN NULL WHEN + ( + - 11 ) / + - NULLIF ( 84, MIN( + - 93 ) / + - 41 + 23 ) * 40 / 86 THEN - + 74 ELSE + 11 END * ( + + COUNT( * ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL + CASE - 26 WHEN + 75 THEN NULL WHEN + ( + - 11 ) / + - NULLIF ( 84, MIN ( + - 93 ) / + - 41 + 23 ) * 40 / 86 THEN - + 74 ELSE + 11 END * ( + + COUNT ( * ) ) AS col0
----
11

query II rowsort
SELECT + 27, 53 AS col0
----
27
53

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT ALL - SUM( - - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL - SUM ( - - 38 )
----
-38

query I rowsort
SELECT 32 - - - 82 + + 32
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT ALL 3 DIV - 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL 3 / - 16 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-606
SELECT NULLIF ( - - 72, + - CAST( NULL AS SIGNED ) ) * - - 18 * - + 24 AS col0
----
-31104

skipif mysql # not compatible
query I rowsort label-606
SELECT NULLIF ( - - 72, + - CAST ( NULL AS INTEGER ) ) * - - 18 * - + 24 AS col0
----
-31104

onlyif mysql # aggregate syntax: 
query II rowsort label-607
SELECT COUNT( 92 ) * + + 51 * + 1 * - - 81 - - 73, + 69 * + 50 - + 13 AS col1
----
4204
3437

skipif mysql # not compatible
query II rowsort label-607
SELECT COUNT ( 92 ) * + + 51 * + 1 * - - 81 - - 73, + 69 * + 50 - + 13 AS col1
----
4204
3437

query I rowsort
SELECT + 63 * - + 1 + 41 AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-609
SELECT 73 + - + NULLIF ( + 22, + 11 ) * + ( 99 ) + + 13 DIV 17 AS col1
----
-2105

skipif mysql # not compatible
query I rowsort label-609
SELECT 73 + - + NULLIF ( + 22, + 11 ) * + ( 99 ) + + 13 / 17 AS col1
----
-2105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-610
SELECT COUNT( * ) * ( + CAST( + 51 AS SIGNED ) ) * - - COALESCE ( COUNT( * ), COALESCE ( + - 65, + 52 * - + ( MAX( ALL + 8 ) ) * + NULLIF ( - 39, - 26 ) - - + 36, - 91, - 41 ) * + 8 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-610
SELECT COUNT ( * ) * ( + CAST ( + 51 AS INTEGER ) ) * - - COALESCE ( COUNT ( * ), COALESCE ( + - 65, + 52 * - + ( MAX ( ALL + 8 ) ) * + NULLIF ( - 39, - 26 ) - - + 36, - 91, - 41 ) * + 8 ) AS col1
----
51

query I rowsort
SELECT DISTINCT - 95 * - 69 + 46
----
6601

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL 29 * - SUM( ALL + 10 )
----
-290

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL 29 * - SUM ( ALL + 10 )
----
-290

query I rowsort
SELECT DISTINCT + 35 + - 96
----
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT ALL + COALESCE ( - - 42, - 34 * + 62 ) + + - ( COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL + COALESCE ( - - 42, - 34 * + 62 ) + + - ( COUNT ( * ) )
----
41

query I rowsort
SELECT + 25 * 30
----
750

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

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

query II rowsort
SELECT + 99 AS col1, ( + + 14 ) + ( - 82 ) AS col0
----
99
-68

query I rowsort
SELECT - COALESCE ( + 43, + 7 + 88 + + 49 + - 87 )
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-620
SELECT 20 DIV + COALESCE ( - COUNT( * ), + 17, - + 24 + - + ( + 63 ) ) - + COALESCE ( 60, - 89 + - 55 )
----
-80

skipif mysql # not compatible
query I rowsort label-620
SELECT 20 / + COALESCE ( - COUNT ( * ), + 17, - + 24 + - + ( + 63 ) ) - + COALESCE ( 60, - 89 + - 55 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT ALL - 52 + - CASE + 94 WHEN - + 35 THEN - COALESCE ( + ( + 11 ), - - COUNT( * ) ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL - 52 + - CASE + 94 WHEN - + 35 THEN - COALESCE ( + ( + 11 ), - - COUNT ( * ) ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 92 - + + 38 + - + 60
----
-6

query I rowsort
SELECT 53 - + + 48
----
5

query I rowsort
SELECT 99 + + - 30
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL 2 - ( - COUNT( * ) ) + - + COUNT( * ) + + ( - 35 ) * - 67 AS col2
----
2347

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL 2 - ( - COUNT ( * ) ) + - + COUNT ( * ) + + ( - 35 ) * - 67 AS col2
----
2347

query I rowsort
SELECT DISTINCT - 58 * - 19 * - + 91
----
-100282

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT ALL + 94 * + ( - MAX( DISTINCT + 2 ) ) * - 18 AS col0
----
3384

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL + 94 * + ( - MAX ( DISTINCT + 2 ) ) * - 18 AS col0
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT ALL - ( - COUNT( * ) ) - - - 38 * 8 * - - ( + - 11 ) + - 47
----
3298

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL - ( - COUNT ( * ) ) - - - 38 * 8 * - - ( + - 11 ) + - 47
----
3298

query I rowsort
SELECT 33 - + + 48
----
-15

query II rowsort
SELECT ALL 15 col2, - 36 * - 81 * 45
----
15
131220

query I rowsort
SELECT 42 - - 79 + - 48 AS col2
----
73

query I rowsort
SELECT ( - 1 ) * 99
----
-99

query II rowsort
SELECT ALL 73 col0, 69 col1
----
73
69

query II rowsort
SELECT 42, 55 * - ( - 11 ) AS col0
----
42
605

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT - 3 DIV - 40 * 98 + - 95 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-636
SELECT - 3 / - 40 * 98 + - 95 AS col1
----
-95

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

query II rowsort
SELECT DISTINCT + 50 * + 38 * 62 * - - ( - 54 ) * 65, + 44 col2
----
-413478000
44

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-640
SELECT ALL - COUNT( * ) AS col1, 56 * - - 34 AS col0
----
-1
1904

skipif mysql # not compatible
query II rowsort label-640
SELECT ALL - COUNT ( * ) AS col1, 56 * - - 34 AS col0
----
-1
1904

onlyif mysql # DIV for integer division: 
query I rowsort label-641
SELECT 47 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-641
SELECT 47 / 32
----
1

query I rowsort
SELECT 83 * + + ( 68 )
----
5644

query I rowsort
SELECT 54 + - 80 + + 40 * ( 73 ) * - 95
----
-277426

query II rowsort
SELECT + 57 AS col2, + 7
----
57
7

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT MAX( + 73 ) * - + 71 AS col1
----
-5183

skipif mysql # not compatible
query I rowsort label-645
SELECT MAX ( + 73 ) * - + 71 AS col1
----
-5183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-646
SELECT + CASE - NULLIF ( + 62, - 70 ) WHEN 91 THEN NULL ELSE 58 + 70 - - + 1 END * - ( 70 ) + + - ( - ( CASE - 10 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN + 44 THEN NULL WHEN 61 / - 82 + 7 / 91 + + - 60 * 9 THEN NULLIF ( 26, - ( + 17 ) ) + 32 END ) ) - 34 / - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT + CASE - NULLIF ( + 62, - 70 ) WHEN 91 THEN NULL ELSE 58 + 70 - - + 1 END * - ( 70 ) + + - ( - ( CASE - 10 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN + 44 THEN NULL WHEN 61 / - 82 + 7 / 91 + + - 60 * 9 THEN NULLIF ( 26, - ( + 17 ) ) + 32 END ) ) - 34 / - 99
----
NULL

query I rowsort
SELECT - COALESCE ( - - 89, + - 50 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-648
SELECT NULLIF ( + CASE CAST( - - 15 AS SIGNED ) WHEN ( NULLIF ( - 47, CAST( + 37 AS SIGNED ) / + ( + 74 ) + - MAX( ALL 12 ) ) ) * COUNT( * ) * + 55 - + 89 * - + 78 * 42 + + + 61 THEN - + COUNT( * ) * + 30 / 73 + 22 * + 76 + 39 END, - ( 35 ) / 19 ) * COUNT( * ) + COUNT( * ) * - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT NULLIF ( + CASE CAST ( - - 15 AS INTEGER ) WHEN ( NULLIF ( - 47, CAST ( + 37 AS INTEGER ) / + ( + 74 ) + - MAX ( ALL 12 ) ) ) * COUNT ( * ) * + 55 - + 89 * - + 78 * 42 + + + 61 THEN - + COUNT ( * ) * + 30 / 73 + 22 * + 76 + 39 END, - ( 35 ) / 19 ) * COUNT ( * ) + COUNT ( * ) * - 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL - - COUNT( DISTINCT + 10 ) + 79 + - 7 + - 62
----
11

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL - - COUNT ( DISTINCT + 10 ) + 79 + - 7 + - 62
----
11

query I rowsort
SELECT ALL - 17 + + + NULLIF ( - - 28, ( - + 11 ) ) col1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT + + 67 * + 0 * - 37 DIV 3 + 78 + - 62 * + 44 AS col1
----
-2650

skipif mysql # not compatible
query I rowsort label-651
SELECT + + 67 * + 0 * - 37 / 3 + 78 + - 62 * + 44 AS col1
----
-2650

query I rowsort
SELECT ALL + 42 + + 58 AS col2
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-653
SELECT CAST( + 4 AS SIGNED ) + + CAST( 42 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-653
SELECT CAST ( + 4 AS INTEGER ) + + CAST ( 42 AS INTEGER ) AS col2
----
46

query I rowsort
SELECT 99 * + 11 * + 41 * - 10 * - 32 AS col0
----
14287680

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT ALL COUNT( * ) + - 15 col1
----
-14

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL COUNT ( * ) + - 15 col1
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-656
SELECT + 76 + + NULLIF ( CAST( NULL AS SIGNED ), + - 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-656
SELECT + 76 + + NULLIF ( CAST ( NULL AS INTEGER ), + - 25 ) AS col0
----
NULL

query I rowsort
SELECT + 50 + 1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT + 90 + - MIN( ALL - + 2 )
----
92

skipif mysql # not compatible
query I rowsort label-658
SELECT + 90 + - MIN ( ALL - + 2 )
----
92

query I rowsort
SELECT ALL + 40 - + 75 AS col2
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-660
SELECT + - MAX( + 6 ) + 25 DIV - + 17
----
-7

skipif mysql # not compatible
query I rowsort label-660
SELECT + - MAX ( + 6 ) + 25 / - + 17
----
-7

query I rowsort
SELECT + 52 + - - 33 + + 53 * 60
----
3265

query I rowsort
SELECT + 63 * - 27
----
-1701

query II rowsort
SELECT - 69 * - + 26 * - 15 AS col2, - 43 * - ( 36 ) + + 91 AS col2
----
-26910
1639

onlyif mysql # DIV for integer division: 
query I rowsort label-664
SELECT DISTINCT 92 DIV + - 84
----
-1

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT 92 / + - 84
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-665
SELECT DISTINCT 39 DIV + 5
----
7

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT 39 / + 5
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT + COUNT( * ) * 80 * + 20 AS col2
----
1600

skipif mysql # not compatible
query I rowsort label-666
SELECT + COUNT ( * ) * 80 * + 20 AS col2
----
1600

query I rowsort
SELECT DISTINCT + 64 * - 40 col0
----
-2560

onlyif mysql # DIV for integer division: 
query II rowsort label-668
SELECT - 86 DIV + - 65, + 47 * + 77 AS col2
----
1
3619

skipif mysql # not compatible
query II rowsort label-668
SELECT - 86 / + - 65, + 47 * + 77 AS col2
----
1
3619

query I rowsort
SELECT ALL CASE + + 87 WHEN - 46 THEN 85 END AS col1
----
NULL

query I rowsort
SELECT - ( + 23 ) + - - 88 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT DISTINCT NULLIF ( 47, + ( + 8 ) * 54 * + COALESCE ( - 62, + + 3 ) + + + 24 ) * 46 * + COUNT( * ) + - 29 + 16 + - + 84 * - - 29 + 67 col1
----
-220

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT NULLIF ( 47, + ( + 8 ) * 54 * + COALESCE ( - 62, + + 3 ) + + + 24 ) * 46 * + COUNT ( * ) + - 29 + 16 + - + 84 * - - 29 + 67 col1
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-672
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col2, - 93 - - 98
----
NULL
5

skipif mysql # not compatible
query II rowsort label-672
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col2, - 93 - - 98
----
NULL
5

query I rowsort
SELECT NULLIF ( + ( - 61 ), + - 75 ) * 91 + + 15 AS col0
----
-5536

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT - 43 * + ( + - 97 ) * - COUNT( * ) * + + 33 * - - 34
----
-4679862

skipif mysql # not compatible
query I rowsort label-674
SELECT - 43 * + ( + - 97 ) * - COUNT ( * ) * + + 33 * - - 34
----
-4679862

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT + 29 * - - NULLIF ( 43, + 60 ) * + 92 - + COUNT( * )
----
114723

skipif mysql # not compatible
query I rowsort label-675
SELECT + 29 * - - NULLIF ( 43, + 60 ) * + 92 - + COUNT ( * )
----
114723

query I rowsort
SELECT ALL + NULLIF ( 28, + - 54 - - 5 )
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-677
SELECT ( - + NULLIF ( - ( - CAST( NULL AS DECIMAL ) ), - 11 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-677
SELECT ( - + NULLIF ( - ( - CAST ( NULL AS REAL ) ), - 11 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-678
SELECT ALL - 34 * + - 40 + + NULLIF ( 78, + + 23 * + CAST( NULL AS SIGNED ) ) DIV + 88 AS col0
----
1360

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL - 34 * + - 40 + + NULLIF ( 78, + + 23 * + CAST ( NULL AS INTEGER ) ) / + 88 AS col0
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL 95 * - COALESCE ( 22, - + 25, 70 + - ( 99 ) ) + + 93 * - + 77 + - NULLIF ( + - 3, - SUM( ALL ( + + 32 ) ) + 67 ) + - 22
----
-9270

skipif mysql # not compatible
query I rowsort label-679
SELECT ALL 95 * - COALESCE ( 22, - + 25, 70 + - ( 99 ) ) + + 93 * - + 77 + - NULLIF ( + - 3, - SUM ( ALL ( + + 32 ) ) + 67 ) + - 22
----
-9270

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

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

query I rowsort
SELECT - 80 * 85
----
-6800

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-683
SELECT DISTINCT + + MIN( + COALESCE ( + 45, ( CAST( - 10 AS SIGNED ) ) ) )
----
45

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT + + MIN ( + COALESCE ( + 45, ( CAST ( - 10 AS INTEGER ) ) ) )
----
45

query I rowsort
SELECT ALL + ( 84 ) * + 15 * + 53 + + 62
----
66842

query I rowsort
SELECT - - 80 * ( + 42 )
----
3360

onlyif mysql # aggregate syntax: 
query II rowsort label-686
SELECT - 22 + - 22 + 74 col0, - COUNT( * ) AS col0
----
30
-1

skipif mysql # not compatible
query II rowsort label-686
SELECT - 22 + - 22 + 74 col0, - COUNT ( * ) AS col0
----
30
-1

query I rowsort
SELECT + 16 + 78 * + 80
----
6256

query II rowsort
SELECT DISTINCT 72, - 15 AS col0
----
72
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL MAX( DISTINCT 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL MAX ( DISTINCT 67 ) AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-691
SELECT DISTINCT 85 + - ( - + 95 ), + CAST( NULL AS SIGNED ) AS col1
----
180
NULL

skipif mysql # not compatible
query II rowsort label-691
SELECT DISTINCT 85 + - ( - + 95 ), + CAST ( NULL AS INTEGER ) AS col1
----
180
NULL

query I rowsort
SELECT - ( - CASE + - 98 WHEN - 67 + - 49 THEN NULL ELSE - + 15 + + 27 END )
----
12

query I rowsort
SELECT ALL 38 + - 79 AS col2
----
-41

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

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

query I rowsort
SELECT + 20 * - 76
----
-1520

onlyif mysql # DIV for integer division: 
query II rowsort label-696
SELECT DISTINCT 19 DIV + - 34 + + 49 AS col1, 65
----
49
65

skipif mysql # not compatible
query II rowsort label-696
SELECT DISTINCT 19 / + - 34 + + 49 AS col1, 65
----
49
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-697
SELECT DISTINCT - COUNT( * ) DIV 93 + MAX( DISTINCT + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT - COUNT ( * ) / 93 + MAX ( DISTINCT + 46 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT 36 + + MAX( + 88 )
----
124

skipif mysql # not compatible
query I rowsort label-698
SELECT 36 + + MAX ( + 88 )
----
124

query I rowsort
SELECT ALL + 14 - + 47 col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-700
SELECT ALL - - MIN( - - 63 ) * - 71 AS col2, 32 - 98
----
-4473
-66

skipif mysql # not compatible
query II rowsort label-700
SELECT ALL - - MIN ( - - 63 ) * - 71 AS col2, 32 - 98
----
-4473
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT - COUNT( - 71 )
----
-1

skipif mysql # not compatible
query I rowsort label-701
SELECT - COUNT ( - 71 )
----
-1

query I rowsort
SELECT + 45 + 61 AS col1
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-703
SELECT + 34, COUNT( CAST( NULL AS SIGNED ) ) AS col1
----
34
0

skipif mysql # not compatible
query II rowsort label-703
SELECT + 34, COUNT ( CAST ( NULL AS INTEGER ) ) AS col1
----
34
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ALL + 54 - + COUNT( * ) + - + 28
----
25

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL + 54 - + COUNT ( * ) + - + 28
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT ALL - 73 - + CASE + 1 WHEN + 9 THEN NULL ELSE + 4 DIV 79 - + - NULLIF ( + - COUNT( * ), - COUNT( * ) * - 27 ) END + + 73 DIV - 65 - + 12 * - - COALESCE ( - - 92, - + 2, + 12 DIV + 60 )
----
-1177

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL - 73 - + CASE + 1 WHEN + 9 THEN NULL ELSE + 4 / 79 - + - NULLIF ( + - COUNT ( * ), - COUNT ( * ) * - 27 ) END + + 73 / - 65 - + 12 * - - COALESCE ( - - 92, - + 2, + 12 / + 60 )
----
-1177

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT - 94 + ( - - COUNT( * ) ) * + 71 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-708
SELECT - 94 + ( - - COUNT ( * ) ) * + 71 AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-709
SELECT 98 * - + 95 * + 29 - 43 DIV - 71 AS col1
----
-269990

skipif mysql # not compatible
query I rowsort label-709
SELECT 98 * - + 95 * + 29 - 43 / - 71 AS col1
----
-269990

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

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

query I rowsort
SELECT 43 * - - NULLIF ( + 52, 65 + - 3 + + 76 / + 6 + - 51 ) + - + 37 + + - 90
----
2109

query II rowsort
SELECT 79 AS col1, - 40 * 24
----
79
-960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-713
SELECT + COALESCE ( - - NULLIF ( - COUNT( * ), - 18 ), - CAST( - - CASE + - 41 WHEN - 20 * + 4 + 37 + 67 + - 38 THEN 31 * 40 ELSE NULL END AS SIGNED ) * + - 18 + - 23 * 6, + - 35 ) DIV + ( - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-713
SELECT + COALESCE ( - - NULLIF ( - COUNT ( * ), - 18 ), - CAST ( - - CASE + - 41 WHEN - 20 * + 4 + 37 + 67 + - 38 THEN 31 * 40 ELSE NULL END AS INTEGER ) * + - 18 + - 23 * 6, + - 35 ) / + ( - 65 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT DISTINCT + MAX( + - 42 ) * + 99
----
-4158

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT + MAX ( + - 42 ) * + 99
----
-4158

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

skipif mysql # not compatible
query I rowsort label-715
SELECT 42 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-716
SELECT DISTINCT 39 DIV + 73 * 54 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-716
SELECT DISTINCT 39 / + 73 * 54 AS col2
----
0

query I rowsort
SELECT ALL 98 + + - 95 AS col1
----
3

query I rowsort
SELECT 32 * + 1 * + 54 * + + 28 AS col2
----
48384

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT SUM( + ( 54 ) ) + - + 91 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-719
SELECT SUM ( + ( 54 ) ) + - + 91 AS col2
----
-37

query I rowsort
SELECT 41 * + 3
----
123

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-721
SELECT 77 + - 22 + + - CASE + - NULLIF ( - + COUNT( * ), - + 86 * - CAST( + 9 AS DECIMAL ) ) WHEN - - CASE + 57 WHEN + + 93 / + - 11 THEN 12 * + 73 / + NULLIF ( 6, + - 2 ) + 28 + + ( + COUNT( 23 ) ) END + 91 THEN - COUNT( * ) - 73 + 65 * + 69 WHEN - 1 THEN - ( + 22 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-721
SELECT 77 + - 22 + + - CASE + - NULLIF ( - + COUNT ( * ), - + 86 * - CAST ( + 9 AS REAL ) ) WHEN - - CASE + 57 WHEN + + 93 / + - 11 THEN 12 * + 73 / + NULLIF ( 6, + - 2 ) + 28 + + ( + COUNT ( 23 ) ) END + 91 THEN - COUNT ( * ) - 73 + 65 * + 69 WHEN - 1 THEN - ( + 22 ) END AS col1
----
NULL

query II rowsort
SELECT 73 + + 37, + 58 * - 52 col0
----
110
-3016

query I rowsort
SELECT DISTINCT - 29 * + 20 * - ( + 49 )
----
28420

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT SUM( 2 ) * + 28 * - - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-724
SELECT SUM ( 2 ) * + 28 * - - COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT DISTINCT + 18 - - + SUM( ALL + 69 )
----
87

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT + 18 - - + SUM ( ALL + 69 )
----
87

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

query I rowsort
SELECT + 76 + + 43 - + - 87 * 67
----
5948

onlyif mysql # aggregate syntax: 
query II rowsort label-728
SELECT 51 * 96 AS col1, SUM( DISTINCT + 58 ) * + 77 - + COALESCE ( 34, - - 95 + + - 27, - 84, - 55 * - SUM( - + 72 ) )
----
4896
4432

skipif mysql # not compatible
query II rowsort label-728
SELECT 51 * 96 AS col1, SUM ( DISTINCT + 58 ) * + 77 - + COALESCE ( 34, - - 95 + + - 27, - 84, - 55 * - SUM ( - + 72 ) )
----
4896
4432

query I rowsort
SELECT - + 83 * - 99 + - 7 + - + 84 + ( + NULLIF ( 0, - - 28 ) ) AS col1
----
8126

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

skipif mysql # not compatible
query II rowsort label-730
SELECT - ( - COUNT ( * ) ) AS col1, 48 AS col0
----
1
48

onlyif mysql # aggregate syntax: 
query II rowsort label-731
SELECT - 44 * NULLIF ( 56, + + 52 ) - 38 * - + 39 * - + CASE - + 76 WHEN + - 41 THEN - 80 * 21 * - 89 END + - 50 * + NULLIF ( + + SUM( + 41 ), - 33 ), - 27 AS col0
----
NULL
-27

skipif mysql # not compatible
query II rowsort label-731
SELECT - 44 * NULLIF ( 56, + + 52 ) - 38 * - + 39 * - + CASE - + 76 WHEN + - 41 THEN - 80 * 21 * - 89 END + - 50 * + NULLIF ( + + SUM ( + 41 ), - 33 ), - 27 AS col0
----
NULL
-27

query I rowsort
SELECT ALL - + NULLIF ( - 12, 9 )
----
12

query II rowsort
SELECT 74 * - + 23, 32 AS col1
----
-1702
32

query I rowsort
SELECT - CASE + 70 WHEN 90 THEN NULL WHEN - 70 THEN - 12 * + 54 ELSE NULL END / - + 37 + + 0 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-735
SELECT CASE + - 37 WHEN + 83 + - 16 THEN + - 92 WHEN + - 79 THEN + 77 ELSE NULL END * - 48 + + CASE + 25 WHEN + + 54 THEN - 41 - 18 WHEN + - 82 * - + MAX( - ( - - 62 ) ) + 62 THEN + - 38 END + CAST( - - 92 AS SIGNED ) + + ( COUNT( * ) ) / 71 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-735
SELECT CASE + - 37 WHEN + 83 + - 16 THEN + - 92 WHEN + - 79 THEN + 77 ELSE NULL END * - 48 + + CASE + 25 WHEN + + 54 THEN - 41 - 18 WHEN + - 82 * - + MAX ( - ( - - 62 ) ) + 62 THEN + - 38 END + CAST ( - - 92 AS INTEGER ) + + ( COUNT ( * ) ) / 71 * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + - 76, 96, - 79 )
----
76

query I rowsort
SELECT + 33 * 22 AS col1
----
726

query II rowsort
SELECT ALL + + 48 + 96 * - 62 * 42 AS col2, - 77 AS col2
----
-249936
-77

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

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

query I rowsort
SELECT 51 * + + 78
----
3978

query I rowsort
SELECT ALL CASE - 59 WHEN + 6 * - 13 THEN - - 62 * 90 END + - 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-742
SELECT 58 - COUNT( * ) DIV - COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-742
SELECT 58 - COUNT ( * ) / - COUNT ( * ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT DISTINCT + COUNT( * ) + - 59
----
-58

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT + COUNT ( * ) + - 59
----
-58

query I rowsort
SELECT 32 + + - 77 AS col1
----
-45

query II rowsort
SELECT - 21 AS col2, 23
----
-21
23

query II rowsort
SELECT ALL 22, - 78 AS col0
----
22
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ( + 25 ) + COUNT( * ) * - COUNT( * ) * + + 42 * + 29 AS col1
----
-1193

skipif mysql # not compatible
query I rowsort label-747
SELECT ( + 25 ) + COUNT ( * ) * - COUNT ( * ) * + + 42 * + 29 AS col1
----
-1193

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

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

query I rowsort
SELECT DISTINCT + 5 * 58
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT 67 + - COUNT( * )
----
66

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

query I rowsort
SELECT ALL + 15 + + + 76
----
91

query II rowsort
SELECT 29, - 13 AS col1
----
29
-13

query I rowsort
SELECT ALL - 42 * - + 91 AS col2
----
3822

query I rowsort
SELECT ALL + 88 - + ( - 56 ) - - ( - 96 ) + + - 55 * - + 37
----
2083

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT + 25 + - - 98 * - - COUNT( * ) + NULLIF ( - 1, - - 98 + - 10 ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-755
SELECT + 25 + - - 98 * - - COUNT ( * ) + NULLIF ( - 1, - - 98 + - 10 ) AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT - COUNT( * ) * 37 - - - 69
----
-106

skipif mysql # not compatible
query I rowsort label-756
SELECT - COUNT ( * ) * 37 - - - 69
----
-106

query I rowsort
SELECT + 87 * 98
----
8526

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT - 31 + - 49 - + - 25 - COALESCE ( + 70, 27 ) * - COUNT( * ) col0
----
15

skipif mysql # not compatible
query I rowsort label-758
SELECT - 31 + - 49 - + - 25 - COALESCE ( + 70, 27 ) * - COUNT ( * ) col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT ALL SUM( 67 ) * 54 AS col0
----
3618

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL SUM ( 67 ) * 54 AS col0
----
3618

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT ALL + - 83 * COALESCE ( - + ( + + ( MIN( + - 67 ) ) ), + 53, + 43 )
----
-5561

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + - 83 * COALESCE ( - + ( + + ( MIN ( + - 67 ) ) ), + 53, + 43 )
----
-5561

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT + - 51 - + + COUNT( + + 22 )
----
-52

skipif mysql # not compatible
query I rowsort label-761
SELECT + - 51 - + + COUNT ( + + 22 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT SUM( DISTINCT + COALESCE ( - ( + + 33 ), 71 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-762
SELECT SUM ( DISTINCT + COALESCE ( - ( + + 33 ), 71 ) ) AS col0
----
-33

query I rowsort
SELECT ALL + 13 * 39 * - ( - 26 ) AS col1
----
13182

query I rowsort
SELECT + 90 * 60 AS col2
----
5400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-765
SELECT DISTINCT + SUM( DISTINCT CAST( 5 AS SIGNED ) ), - 91 * - CAST( NULL AS SIGNED ) AS col2
----
5
NULL

skipif mysql # not compatible
query II rowsort label-765
SELECT DISTINCT + SUM ( DISTINCT CAST ( 5 AS INTEGER ) ), - 91 * - CAST ( NULL AS INTEGER ) AS col2
----
5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-766
SELECT + COUNT( * ) + + + 60 + - + 21, SUM( 50 ) AS col1
----
40
50

skipif mysql # not compatible
query II rowsort label-766
SELECT + COUNT ( * ) + + + 60 + - + 21, SUM ( 50 ) AS col1
----
40
50

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - + SUM( - 1 ) * - 70 + - + COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-767
SELECT - + SUM ( - 1 ) * - 70 + - + COUNT ( * ) AS col0
----
-71

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

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

query I rowsort
SELECT DISTINCT - 48 * 84 + - 55
----
-4087

query I rowsort
SELECT ALL 14 * - 5 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT ALL + 48 * - 79 + - SUM( + 62 ) - 71 + + 57 + COUNT( * ) + - - COUNT( * ) - + - 11 * - 34 AS col2
----
-4240

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL + 48 * - 79 + - SUM ( + 62 ) - 71 + + 57 + COUNT ( * ) + - - COUNT ( * ) - + - 11 * - 34 AS col2
----
-4240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-772
SELECT + CASE CAST( NULL AS SIGNED ) WHEN - COUNT( - 18 ) THEN NULL ELSE - 9 END
----
-9

skipif mysql # not compatible
query I rowsort label-772
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( - 18 ) THEN NULL ELSE - 9 END
----
-9

query I rowsort
SELECT + 57 * 47 col0
----
2679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-774
SELECT ALL COUNT( * ) * 42 + CAST( - 88 AS SIGNED ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL COUNT ( * ) * 42 + CAST ( - 88 AS INTEGER ) AS col0
----
-46

query I rowsort
SELECT ALL 28 * + NULLIF ( + 94, 90 + 59 ) AS col2
----
2632

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT COUNT( * ) * COUNT( - 69 ) + + - 82 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-776
SELECT COUNT ( * ) * COUNT ( - 69 ) + + - 82 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT + NULLIF ( - - ( - 40 ), + + 72 / + 24 * - COUNT( * ) + + + COUNT( * ) + 86 )
----
-40

skipif mysql # not compatible
query I rowsort label-777
SELECT + NULLIF ( - - ( - 40 ), + + 72 / + 24 * - COUNT ( * ) + + + COUNT ( * ) + 86 )
----
-40

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

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

query I rowsort
SELECT - ( + 1 ) + 72 AS col0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT ALL 20 * 12 + + 67 DIV + 68
----
240

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL 20 * 12 + + 67 / + 68
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT + COALESCE ( - COUNT( * ), + + ( - 46 ) ) * + 87 col0
----
-87

skipif mysql # not compatible
query I rowsort label-781
SELECT + COALESCE ( - COUNT ( * ), + + ( - 46 ) ) * + 87 col0
----
-87

query II rowsort
SELECT - 76 AS col1, + 80
----
-76
80

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

skipif mysql # not compatible
query II rowsort label-783
SELECT ALL 28 col0, - ( - COUNT ( * ) )
----
28
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-784
SELECT DISTINCT + 1 - - CAST( + CAST( 1 AS SIGNED ) AS SIGNED ) AS col1, + COUNT( * ) col1
----
2
1

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT + 1 - - CAST ( + CAST ( 1 AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) col1
----
2
1

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

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

query I rowsort
SELECT - ( 13 ) col0
----
-13

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

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

query II rowsort
SELECT 1, 44 - + 14 AS col0
----
1
30

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT DISTINCT 20 - COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT 20 - COUNT ( * ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-790
SELECT - ( - + CASE + - 40 WHEN 51 * 15 + COUNT( - 6 ) THEN NULL WHEN + 51 / + 99 + - - 66 THEN + + COUNT( ALL - 59 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-790
SELECT - ( - + CASE + - 40 WHEN 51 * 15 + COUNT ( - 6 ) THEN NULL WHEN + 51 / + 99 + - - 66 THEN + + COUNT ( ALL - 59 ) END ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-792
SELECT ALL CASE + 2 WHEN - ( - - ( + MAX( - + 82 ) ) ) * 49 THEN NULL ELSE + + 76 * 35 DIV 46 END col0
----
57

skipif mysql # not compatible
query I rowsort label-792
SELECT ALL CASE + 2 WHEN - ( - - ( + MAX ( - + 82 ) ) ) * 49 THEN NULL ELSE + + 76 * 35 / 46 END col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-793
SELECT ALL - 57 * + CAST( - 77 AS SIGNED )
----
4389

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL - 57 * + CAST ( - 77 AS INTEGER )
----
4389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-794
SELECT - 2 - - 88 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-794
SELECT - 2 - - 88 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-795
SELECT DISTINCT - 93 col0, - COUNT( * ) * + + 69 AS col1
----
-93
-69

skipif mysql # not compatible
query II rowsort label-795
SELECT DISTINCT - 93 col0, - COUNT ( * ) * + + 69 AS col1
----
-93
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-796
SELECT ALL CASE + ( + + 88 ) WHEN - + 80 THEN - 34 WHEN + 82 * + 39 + + - COALESCE ( 25, + 39 / + NULLIF ( - 71, - CAST( - COUNT( * ) AS SIGNED ) / - + AVG ( - 52 ) - - 44 + 31 * + 39 ) / - 77 * SUM( + + 78 ) * + 24 + - ( - - 17 ) + MAX( ALL 28 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL CASE + ( + + 88 ) WHEN - + 80 THEN - 34 WHEN + 82 * + 39 + + - COALESCE ( 25, + 39 / + NULLIF ( - 71, - CAST ( - COUNT ( * ) AS INTEGER ) / - + AVG ( - 52 ) - - 44 + 31 * + 39 ) / - 77 * SUM ( + + 78 ) * + 24 + - ( - - 17 ) + MAX ( ALL 28 ) ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - ( 70 ) * - + 97 * - - 3
----
20370

onlyif mysql # DIV for integer division: 
query I rowsort label-798
SELECT - - 97 DIV - 77
----
-1

skipif mysql # not compatible
query I rowsort label-798
SELECT - - 97 / - 77
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-799
SELECT DISTINCT + - 81 * COUNT( * ) * - NULLIF ( - NULLIF ( + ( 87 ), + - 60 * 2 - 14 ), + - ( - CAST( NULL AS DECIMAL ) ) - - + 98 + 31 + - 18 * - COALESCE ( + 7, + 15 * - + CAST( + - ( 68 ) AS SIGNED ) * - - 50 / + 47 - 26 + + - COUNT( * ) * ( - - MAX( 88 ) ) + - 5 ) + COUNT( * ) * + 31 ) AS col0
----
-7047

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + - 81 * COUNT ( * ) * - NULLIF ( - NULLIF ( + ( 87 ), + - 60 * 2 - 14 ), + - ( - CAST ( NULL AS REAL ) ) - - + 98 + 31 + - 18 * - COALESCE ( + 7, + 15 * - + CAST ( + - ( 68 ) AS INTEGER ) * - - 50 / + 47 - 26 + + - COUNT ( * ) * ( - - MAX ( 88 ) ) + - 5 ) + COUNT ( * ) * + 31 ) AS col0
----
-7047

query I rowsort
SELECT - 61 + - - 10 col0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT - 4 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-801
SELECT - 4 / - 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT + 88 * + - NULLIF ( - CASE - 11 WHEN + + 20 * + 40 THEN + - SUM( - + 1 ) + 90 WHEN + COUNT( * ) THEN COUNT( * ) ELSE NULL END, + 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-802
SELECT + 88 * + - NULLIF ( - CASE - 11 WHEN + + 20 * + 40 THEN + - SUM ( - + 1 ) + 90 WHEN + COUNT ( * ) THEN COUNT ( * ) ELSE NULL END, + 16 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-803
SELECT DISTINCT + + COALESCE ( 41, - 49 ) / + 23 + - 3 + 13 + + 85 + NULLIF ( - + 97, - + COUNT( * ) ) - + 12 * + ( + 62 ) * + + 86 + + - CAST( NULL AS SIGNED ) + - 7 - + COALESCE ( + 5, - 65, 42 ) + 7 + - - 3 / - + ( - 66 ) AS col2, + MAX( ALL - 2 ) AS col1
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-803
SELECT DISTINCT + + COALESCE ( 41, - 49 ) / + 23 + - 3 + 13 + + 85 + NULLIF ( - + 97, - + COUNT ( * ) ) - + 12 * + ( + 62 ) * + + 86 + + - CAST ( NULL AS INTEGER ) + - 7 - + COALESCE ( + 5, - 65, 42 ) + 7 + - - 3 / - + ( - 66 ) AS col2, + MAX ( ALL - 2 ) AS col1
----
NULL
-2

query II rowsort
SELECT 30 AS col2, 72 AS col1
----
30
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-805
SELECT DISTINCT + 1 DIV - 64 - 72 + - + COUNT( * ) * - 52
----
-20

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT + 1 / - 64 - 72 + - + COUNT ( * ) * - 52
----
-20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT ALL + ( + - 98 ) DIV + 7 + - 46 + - - 27 * + 87
----
2289

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL + ( + - 98 ) / + 7 + - 46 + - - 27 * + 87
----
2289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-808
SELECT DISTINCT + 22 DIV - COUNT( * ) + 69 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT + 22 / - COUNT ( * ) + 69 AS col2
----
47

query II rowsort
SELECT - COALESCE ( 62, - - 38, 49 ) AS col2, 24 AS col1
----
-62
24

query II rowsort
SELECT + 63 * - - 2 AS col2, - 33 AS col2
----
126
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-811
SELECT - 54 * + COUNT( * ) - - 28, 29 col1
----
-26
29

skipif mysql # not compatible
query II rowsort label-811
SELECT - 54 * + COUNT ( * ) - - 28, 29 col1
----
-26
29

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT 51 * - - 8 * + + 83 - - + 27 + - + SUM( 63 ) AS col2
----
33828

skipif mysql # not compatible
query I rowsort label-812
SELECT 51 * - - 8 * + + 83 - - + 27 + - + SUM ( 63 ) AS col2
----
33828

query I rowsort
SELECT + 33 * + 51 col0
----
1683

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-816
SELECT CASE WHEN NOT - COUNT( * ) = CAST( + 80 AS SIGNED ) * + 86 AND NOT 13 * 96 + 6 NOT IN ( + - 23, MIN( ALL 68 ) + - 36 - + NULLIF ( - - 75, - 51 ) + - 19 - 22 * + 69 + - + 31 + 15 * - CAST( NULL AS SIGNED ) + - 38, - 6 - 64 + + CASE - 37 WHEN 97 * 20 THEN + COUNT( * ) + - 60 * 27 WHEN - 81 THEN + 87 * + 49 ELSE NULL END ) THEN + 36 WHEN + 8 <> ( NULL ) THEN NULL ELSE + CASE 93 WHEN MIN( - 25 ) + 67 THEN 36 / 49 + + 36 / AVG ( ALL 13 * 56 ) WHEN 87 * 59 + 26 THEN 56 * 73 END * 62 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT CASE WHEN NOT - COUNT ( * ) = CAST ( + 80 AS INTEGER ) * + 86 AND NOT 13 * 96 + 6 NOT IN ( + - 23, MIN ( ALL 68 ) + - 36 - + NULLIF ( - - 75, - 51 ) + - 19 - 22 * + 69 + - + 31 + 15 * - CAST ( NULL AS INTEGER ) + - 38, - 6 - 64 + + CASE - 37 WHEN 97 * 20 THEN + COUNT ( * ) + - 60 * 27 WHEN - 81 THEN + 87 * + 49 ELSE NULL END ) THEN + 36 WHEN + 8 <> ( NULL ) THEN NULL ELSE + CASE 93 WHEN MIN ( - 25 ) + 67 THEN 36 / 49 + + 36 / AVG ( ALL 13 * 56 ) WHEN 87 * 59 + 26 THEN 56 * 73 END * 62 END AS col0
----
NULL

query I rowsort
SELECT + 97 * 9 col1
----
873

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL MIN( DISTINCT 77 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL MIN ( DISTINCT 77 ) AS col0
----
77

query I rowsort
SELECT ( - + 60 ) - + 45 AS col1
----
-105

query I rowsort
SELECT 88 * 1 - - NULLIF ( 1, - 9 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT 73 * - CAST( + 44 AS SIGNED )
----
-3212

skipif mysql # not compatible
query I rowsort label-821
SELECT 73 * - CAST ( + 44 AS INTEGER )
----
-3212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT ( + 87 ) * CAST( + - 31 AS SIGNED ) + 45
----
-2652

skipif mysql # not compatible
query I rowsort label-822
SELECT ( + 87 ) * CAST ( + - 31 AS INTEGER ) + 45
----
-2652

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

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

query I rowsort
SELECT DISTINCT 78 * - 12
----
-936

query I rowsort
SELECT ALL NULLIF ( - + 26, + 78 / + 96 )
----
-26

query I rowsort
SELECT ALL 78 * + + 17 AS col0
----
1326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-827
SELECT ALL - ( - - CASE + - 14 WHEN + + 44 THEN - ( 57 ) / + - CAST( + 76 AS SIGNED ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL - ( - - CASE + - 14 WHEN + + 44 THEN - ( 57 ) / + - CAST ( + 76 AS INTEGER ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT ALL + 15 + 30 / + + 71 * - 35 + + - 26 + - 45 * + CASE + + ( + 88 ) WHEN - 62 THEN NULL WHEN - COUNT( * ) THEN 18 WHEN - + 31 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL + 15 + 30 / + + 71 * - 35 + + - 26 + - 45 * + CASE + + ( + 88 ) WHEN - 62 THEN NULL WHEN - COUNT ( * ) THEN 18 WHEN - + 31 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 59 * - + 12 * - - 5
----
-3540

query I rowsort
SELECT DISTINCT 24 + + 37 col2
----
61

query I rowsort
SELECT ALL - 54 + 64
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT - CASE + - COALESCE ( + 91, - 90 ) WHEN - - 35 * 95 THEN + 58 * + 81 WHEN + ( 74 ) * - ( + 80 ) / + 96 + - 45 + COUNT( * ) + 38 + + 48 + NULLIF ( 44, + + 62 / 93 ) / 23 * - - 92 + 79 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-832
SELECT - CASE + - COALESCE ( + 91, - 90 ) WHEN - - 35 * 95 THEN + 58 * + 81 WHEN + ( 74 ) * - ( + 80 ) / + 96 + - 45 + COUNT ( * ) + 38 + + 48 + NULLIF ( 44, + + 62 / 93 ) / 23 * - - 92 + 79 THEN NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT DISTINCT - COUNT( DISTINCT - 30 ) * - 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT - COUNT ( DISTINCT - 30 ) * - 20 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT DISTINCT 90 + + - 47 + 75 * + 92 + - + ( + 5 ) - + + CAST( NULL AS SIGNED ) + ( - + 52 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT 90 + + - 47 + 75 * + 92 + - + ( + 5 ) - + + CAST ( NULL AS INTEGER ) + ( - + 52 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT COALESCE ( 97, - 19 + + + SUM( - ( + ( + + 66 ) ) ), 90 * - 79 * - + 67 * - - 58 )
----
97

skipif mysql # not compatible
query I rowsort label-836
SELECT COALESCE ( 97, - 19 + + + SUM ( - ( + ( + + 66 ) ) ), 90 * - 79 * - + 67 * - - 58 )
----
97

query I rowsort
SELECT ALL 8 + 45 AS col1
----
53

query I rowsort
SELECT ALL - 61 + - NULLIF ( + 92, + 87 ) * - + 56 * 9
----
46307

query I rowsort
SELECT DISTINCT - 2 * - - 22 + - 22
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL + - COUNT( * ) + - 78 * + 43 * 24 - - + 68 AS col2
----
-80429

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + - COUNT ( * ) + - 78 * + 43 * 24 - - + 68 AS col2
----
-80429

query I rowsort
SELECT DISTINCT - CASE 91 WHEN - 40 - + - 25 - 31 THEN - - ( + 62 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-842
SELECT DISTINCT - - CASE - COUNT( * ) WHEN - ( - - 27 ) THEN - 65 WHEN + + CAST( + COUNT( * ) AS SIGNED ) THEN + 17 * - ( 39 ) ELSE + + 61 * - ( - 86 ) + + 45 + COUNT( ALL + + 79 ) END
----
5292

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT - - CASE - COUNT ( * ) WHEN - ( - - 27 ) THEN - 65 WHEN + + CAST ( + COUNT ( * ) AS INTEGER ) THEN + 17 * - ( 39 ) ELSE + + 61 * - ( - 86 ) + + 45 + COUNT ( ALL + + 79 ) END
----
5292

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL - 19 - - COUNT( * ) * + 33
----
14

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL - 19 - - COUNT ( * ) * + 33
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT 48 + + 99 * 35 * COUNT( * )
----
3513

skipif mysql # not compatible
query I rowsort label-844
SELECT 48 + + 99 * 35 * COUNT ( * )
----
3513

query I rowsort
SELECT 51 * 17 AS col2
----
867

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT MAX( ALL + - 51 ) - - ( - + COUNT( * ) ) * 36 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-847
SELECT MAX ( ALL + - 51 ) - - ( - + COUNT ( * ) ) * 36 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT - MIN( ALL ( 56 ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT - MIN ( ALL ( 56 ) ) AS col0
----
-56

query I rowsort
SELECT ALL - 19 - - 9 AS col0
----
-10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-851
SELECT 76 + + + 85 DIV - - 60
----
77

skipif mysql # not compatible
query I rowsort label-851
SELECT 76 + + + 85 / - - 60
----
77

query I rowsort
SELECT DISTINCT - NULLIF ( 83, - NULLIF ( 58, + + NULLIF ( - 37, + + 93 + + - COALESCE ( + + 87, - + 74 ) * + 20 ) ) * + 19 + + - 85 ) AS col2
----
-83

query I rowsort
SELECT ALL 68 * - - 39 AS col0
----
2652

query I rowsort
SELECT 92 + + 69 AS col0
----
161

query I rowsort
SELECT ALL - 83 * + - CASE 77 WHEN + + 78 * - 17 THEN 39 WHEN ( ( - 41 ) ) THEN NULL ELSE NULL END AS col2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT COALESCE ( + COALESCE ( - 37, + 89 * 91 ), + 20 ) + 76 - + 33 - - CASE WHEN NOT NULL IS NULL THEN + 58 WHEN NOT + CAST( NULL AS SIGNED ) IS NULL THEN 37 - + 67 END * + CAST( NULL AS SIGNED ) * 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT COALESCE ( + COALESCE ( - 37, + 89 * 91 ), + 20 ) + 76 - + 33 - - CASE WHEN NOT NULL IS NULL THEN + 58 WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN 37 - + 67 END * + CAST ( NULL AS INTEGER ) * 29 AS col0
----
NULL

query I rowsort
SELECT 76 * 95
----
7220

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT 93 * - COUNT( * ) + 88 - + 98
----
-103

skipif mysql # not compatible
query I rowsort label-859
SELECT 93 * - COUNT ( * ) + 88 - + 98
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-860
SELECT ALL - COUNT( * ), + NULLIF ( + - 17, 19 * - - ( - ( + + 8 ) ) / + 28 + + + 67 ) * 11 AS col2
----
-1
-187

skipif mysql # not compatible
query II rowsort label-860
SELECT ALL - COUNT ( * ), + NULLIF ( + - 17, 19 * - - ( - ( + + 8 ) ) / + 28 + + + 67 ) * 11 AS col2
----
-1
-187

query II rowsort
SELECT 18 * + 30 * - 50 * + 5 AS col2, + 82
----
-135000
82

query I rowsort
SELECT ( - - 98 ) + 35 * + 78
----
2828

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-864
SELECT ALL 50, - COUNT( * ) + 15 col0
----
50
14

skipif mysql # not compatible
query II rowsort label-864
SELECT ALL 50, - COUNT ( * ) + 15 col0
----
50
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT DISTINCT MIN( + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT MIN ( + 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT ALL + COUNT( * ) AS col2, 42 * + 75 AS col2
----
1
3150

skipif mysql # not compatible
query II rowsort label-867
SELECT ALL + COUNT ( * ) AS col2, 42 * + 75 AS col2
----
1
3150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-868
SELECT + 59 / + NULLIF ( - + CAST( NULL AS SIGNED ), + + CASE MIN( - - 74 ) WHEN - + 15 * - 5 + ( + 70 ) + + - 88 - + COUNT( * ) THEN + + 2 WHEN + + 95 + CASE + 86 WHEN 3 THEN - MIN( DISTINCT - 39 ) * - + 35 * + 72 * - 38 + - CASE - 7 WHEN 65 * - 34 THEN + + ( - - 38 ) + 46 / + 36 END * AVG ( ALL 20 * CASE + 46 WHEN NULLIF ( + 81, + ( 43 ) + + 3 ) THEN + 58 * 85 END ) WHEN + 34 THEN NULL ELSE NULL END THEN + 66 ELSE + 60 * + COUNT( * ) END * + 78 ) * + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT + 59 / + NULLIF ( - + CAST ( NULL AS INTEGER ), + + CASE MIN ( - - 74 ) WHEN - + 15 * - 5 + ( + 70 ) + + - 88 - + COUNT ( * ) THEN + + 2 WHEN + + 95 + CASE + 86 WHEN 3 THEN - MIN ( DISTINCT - 39 ) * - + 35 * + 72 * - 38 + - CASE - 7 WHEN 65 * - 34 THEN + + ( - - 38 ) + 46 / + 36 END * AVG ( ALL 20 * CASE + 46 WHEN NULLIF ( + 81, + ( 43 ) + + 3 ) THEN + 58 * 85 END ) WHEN + 34 THEN NULL ELSE NULL END THEN + 66 ELSE + 60 * + COUNT ( * ) END * + 78 ) * + 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT + 83 + 46 * CASE - + 56 WHEN + + 4 * + 37 THEN NULL WHEN - 46 THEN + COUNT( * ) ELSE + 42 END
----
2015

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT + 83 + 46 * CASE - + 56 WHEN + + 4 * + 37 THEN NULL WHEN - 46 THEN + COUNT ( * ) ELSE + 42 END
----
2015

query I rowsort
SELECT ALL - 25 + - - 9
----
-16

query I rowsort
SELECT DISTINCT - ( + 33 ) AS col1
----
-33

query I rowsort
SELECT DISTINCT 79 + - - 24 + - ( ( + 5 ) ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT ALL + 42 + + 80 DIV 50
----
43

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + 42 + + 80 / 50
----
43

query II rowsort
SELECT ALL - 33, 0 AS col1
----
-33
0

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT + 45 + + - 82 + 87 + + ( 19 ) * - 37 * - ( + COUNT( * ) ) + - 32
----
721

skipif mysql # not compatible
query I rowsort label-875
SELECT + 45 + + - 82 + 87 + + ( 19 ) * - 37 * - ( + COUNT ( * ) ) + - 32
----
721

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

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

query I rowsort
SELECT 81 - 80
----
1

query I rowsort
SELECT + 5 * 36 + 17 + - 40 AS col1
----
157

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-879
SELECT ALL + 7 / + + 9 + 91 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL + 7 / + + 9 + 91 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT SUM( ALL - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-880
SELECT SUM ( ALL - 37 ) AS col2
----
-37

query I rowsort
SELECT DISTINCT - NULLIF ( 5, + 58 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT DISTINCT COUNT( * ) * - 52 - + 23 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT COUNT ( * ) * - 52 - + 23 AS col0
----
-75

query I rowsort
SELECT - ( - + 2 ) * 33 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL 62 * - - NULLIF ( + - 94, + COUNT( * ) * - 84 + - + 13 ) * + 86 + 23
----
-501185

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL 62 * - - NULLIF ( + - 94, + COUNT ( * ) * - 84 + - + 13 ) * + 86 + 23
----
-501185

onlyif mysql # aggregate syntax: 
query II rowsort label-885
SELECT MAX( ALL 11 ), - 46 AS col1
----
11
-46

skipif mysql # not compatible
query II rowsort label-885
SELECT MAX ( ALL 11 ), - 46 AS col1
----
11
-46

query I rowsort
SELECT + 62 * - 93
----
-5766

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

skipif mysql # not compatible
query I rowsort label-887
SELECT + ( - 71 ) * COUNT ( * ) * - 62 AS col2
----
4402

onlyif mysql # DIV for integer division: 
query II rowsort label-888
SELECT ALL + 25 DIV - 60 AS col1, + 40
----
0
40

skipif mysql # not compatible
query II rowsort label-888
SELECT ALL + 25 / - 60 AS col1, + 40
----
0
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-889
SELECT - 44 DIV - 64, - CASE COALESCE ( COUNT( * ), + 87 * MAX( + 68 ) + - 32 DIV - 54 + MAX( DISTINCT 73 ) DIV + NULLIF ( + 44, + CASE 3 WHEN - 51 + - + COUNT( * ) * + + 84 THEN NULL WHEN - 64 THEN - + 43 ELSE - 37 END * + 93 * + MIN( ALL - + 27 ) ), + 64 * ( + CASE 3 WHEN 8 * - 72 - + 45 THEN 7 END ) + 63 - 33 ) WHEN 84 + - 22 THEN - 54 * + 49 WHEN - 82 THEN NULL ELSE NULL END AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-889
SELECT - 44 / - 64, - CASE COALESCE ( COUNT ( * ), + 87 * MAX ( + 68 ) + - 32 / - 54 + MAX ( DISTINCT 73 ) / + NULLIF ( + 44, + CASE 3 WHEN - 51 + - + COUNT ( * ) * + + 84 THEN NULL WHEN - 64 THEN - + 43 ELSE - 37 END * + 93 * + MIN ( ALL - + 27 ) ), + 64 * ( + CASE 3 WHEN 8 * - 72 - + 45 THEN 7 END ) + 63 - 33 ) WHEN 84 + - 22 THEN - 54 * + 49 WHEN - 82 THEN NULL ELSE NULL END AS col1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-890
SELECT 25 * 0 - - + MIN( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-890
SELECT 25 * 0 - - + MIN ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 8 * 65 + 87
----
607

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL + COALESCE ( - - COUNT( * ), - - COUNT( * ), - - CASE - 61 WHEN 97 * - 84 * 74 + - - NULLIF ( + COUNT( * ), + 38 + 77 + - NULLIF ( 42, - + 62 ) / + 54 + 97 * - + 76 * 44 ) + COUNT( * ) - + + 94 THEN NULL WHEN 3 + - 37 THEN 29 END, - 72 + - MAX( - 37 ) + - 53 * 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL + COALESCE ( - - COUNT ( * ), - - COUNT ( * ), - - CASE - 61 WHEN 97 * - 84 * 74 + - - NULLIF ( + COUNT ( * ), + 38 + 77 + - NULLIF ( 42, - + 62 ) / + 54 + 97 * - + 76 * 44 ) + COUNT ( * ) - + + 94 THEN NULL WHEN 3 + - 37 THEN 29 END, - 72 + - MAX ( - 37 ) + - 53 * 12 ) AS col1
----
1

query I rowsort
SELECT - 67 * - - 46
----
-3082

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

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + COUNT ( DISTINCT - ( 30 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-895
SELECT 26 * + - 72 - COUNT( ALL + - 27 ) * - 83 AS col2, COALESCE ( - + 99, + + 40 * - - 91 ) * + - 62
----
-1789
6138

skipif mysql # not compatible
query II rowsort label-895
SELECT 26 * + - 72 - COUNT ( ALL + - 27 ) * - 83 AS col2, COALESCE ( - + 99, + + 40 * - - 91 ) * + - 62
----
-1789
6138

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT - + 40 + - MAX( - ( - + 12 ) ) + - - 36 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-896
SELECT - + 40 + - MAX ( - ( - + 12 ) ) + - - 36 AS col2
----
-16

query I rowsort
SELECT - - 35 - COALESCE ( + 79, - 96 ) * - 33 AS col1
----
2642

onlyif mysql # DIV for integer division: 
query I rowsort label-898
SELECT ALL - - 62 + - 5 DIV - + 50
----
62

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL - - 62 + - 5 / - + 50
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT DISTINCT 28 + - - 64 - - + MAX( 48 ) + 60 AS col2
----
200

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT 28 + - - 64 - - + MAX ( 48 ) + 60 AS col2
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT - ( - 17 ) + - 77 + - CASE + 82 WHEN + 63 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-900
SELECT - ( - 17 ) + - 77 + - CASE + 82 WHEN + 63 THEN + + COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL - - ( + 43 ) + + 83 + - - 40 AS col2
----
166

query I rowsort
SELECT ALL 51 + 50 AS col0
----
101

query II rowsort
SELECT + + 8 * - + 24 * - 10 + 25 + 13 AS col0, - 20
----
1958
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-904
SELECT ALL + COALESCE ( 37, COUNT( * ), - - 38 ) AS col1, 46 col0
----
37
46

skipif mysql # not compatible
query II rowsort label-904
SELECT ALL + COALESCE ( 37, COUNT ( * ), - - 38 ) AS col1, 46 col0
----
37
46

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

skipif mysql # not compatible
query I rowsort label-905
SELECT - + SUM ( + - 65 )
----
65

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

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

query I rowsort
SELECT + 9 + + 31 * 20 + + 42 AS col0
----
671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-908
SELECT DISTINCT + + COUNT( DISTINCT - + 42 ) - + - 95 * - - CAST( ( + 2 ) AS SIGNED ) * 38 - - COUNT( * ) * + + 50 + - MAX( ALL - 92 ) * + - CAST( NULL AS SIGNED ) * + 80 + - ( + - 0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-908
SELECT DISTINCT + + COUNT ( DISTINCT - + 42 ) - + - 95 * - - CAST ( ( + 2 ) AS INTEGER ) * 38 - - COUNT ( * ) * + + 50 + - MAX ( ALL - 92 ) * + - CAST ( NULL AS INTEGER ) * + 80 + - ( + - 0 )
----
NULL

query II rowsort
SELECT + 23 + 10 + - + 26 * 13 AS col0, + 83
----
-305
83

query I rowsort
SELECT ALL 69 * 32 AS col0
----
2208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-911
SELECT CAST( - 3 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-911
SELECT CAST ( - 3 AS INTEGER ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-912
SELECT ALL + 47 AS col2, COUNT( DISTINCT + 46 )
----
47
1

skipif mysql # not compatible
query II rowsort label-912
SELECT ALL + 47 AS col2, COUNT ( DISTINCT + 46 )
----
47
1

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT DISTINCT 4 * - + ( COALESCE ( + - 31, 14, COUNT( * ) ) )
----
124

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT 4 * - + ( COALESCE ( + - 31, 14, COUNT ( * ) ) )
----
124

query II rowsort
SELECT + 74 - - + 88 * - 65, 54 AS col0
----
-5646
54

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

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT + ( + 89 ) DIV 47 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-916
SELECT + ( + 89 ) / 47 AS col2
----
1

query I rowsort
SELECT - 3 * - 44
----
132

query I rowsort
SELECT DISTINCT 84 * - 66 + - + 89 AS col1
----
-5633

query I rowsort
SELECT 30 * 82 + + 7 * - + 9 AS col2
----
2397

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT DISTINCT MAX( - 39 ) * + SUM( - + 81 ) AS col0
----
3159

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT MAX ( - 39 ) * + SUM ( - + 81 ) AS col0
----
3159

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-922
SELECT NULLIF ( + 76, + 62 ) col0, COUNT( * ) AS col1
----
76
1

skipif mysql # not compatible
query II rowsort label-922
SELECT NULLIF ( + 76, + 62 ) col0, COUNT ( * ) AS col1
----
76
1

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

query I rowsort
SELECT + ( 72 ) col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT + 31 DIV + 29 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-925
SELECT + 31 / + 29 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT 30 * 96 + 17 + - COUNT( * ) AS col0
----
2896

skipif mysql # not compatible
query I rowsort label-926
SELECT 30 * 96 + 17 + - COUNT ( * ) AS col0
----
2896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-927
SELECT ALL - 71 * + - 99 + - COALESCE ( - 88, - - 2 DIV - + 34 + + COUNT( * ) + 12, + 84 * - CASE 5 WHEN + CAST( NULL AS SIGNED ) + + 39 DIV - - 37 * + - MAX( DISTINCT 62 ) THEN + - CASE - - 91 WHEN + + 37 THEN - 40 END END + - COALESCE ( + 5, + 95 ) * + AVG ( DISTINCT + 27 ) DIV 67 + + 75 + + + ( + 35 ) ) AS col2
----
7117

skipif mysql # not compatible
query I rowsort label-927
SELECT ALL - 71 * + - 99 + - COALESCE ( - 88, - - 2 / - + 34 + + COUNT ( * ) + 12, + 84 * - CASE 5 WHEN + CAST ( NULL AS INTEGER ) + + 39 / - - 37 * + - MAX ( DISTINCT 62 ) THEN + - CASE - - 91 WHEN + + 37 THEN - 40 END END + - COALESCE ( + 5, + 95 ) * + AVG ( DISTINCT + 27 ) / 67 + + 75 + + + ( + 35 ) ) AS col2
----
7117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-928
SELECT DISTINCT - 25 DIV - - 24 + - - 39, - COUNT( * ) * + 24 AS col1
----
38
-24

skipif mysql # not compatible
query II rowsort label-928
SELECT DISTINCT - 25 / - - 24 + - - 39, - COUNT ( * ) * + 24 AS col1
----
38
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-929
SELECT ALL + COUNT( * ) col2, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-929
SELECT ALL + COUNT ( * ) col2, - COUNT ( * )
----
1
-1

query I rowsort
SELECT ALL CASE - + 72 WHEN 45 THEN - 16 * + + 92 WHEN + + 70 THEN + 9 + + 9 * + 32 + 2 ELSE - + 22 END AS col0
----
-22

query I rowsort
SELECT - - 87 + - 80 AS col1
----
7

query II rowsort
SELECT ALL - 49 * + - 47 - + 20 + 91 + 4 * + - 26 AS col2, 26 AS col0
----
2270
26

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT + SUM( + 74 ) * 82
----
6068

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT + SUM ( + 74 ) * 82
----
6068

query I rowsort
SELECT + + 68 - + - 54 + - + NULLIF ( + 72, + 38 * 96 ) AS col1
----
50

query I rowsort
SELECT - 27 + + 23 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT DISTINCT + NULLIF ( + + 98, - - MIN( DISTINCT 52 ) ) * - 19
----
-1862

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT + NULLIF ( + + 98, - - MIN ( DISTINCT 52 ) ) * - 19
----
-1862

query I rowsort
SELECT - 41 + - 6 AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-938
SELECT - - CAST( + COALESCE ( - 16, - CAST( - + 37 AS SIGNED ), ( - 80 ) ) AS SIGNED ) + + CASE + COUNT( * ) WHEN - COUNT( * ) THEN CAST( - 43 AS SIGNED ) * - CAST( - + 52 AS SIGNED ) WHEN - 81 * - + 52 + + - ( + - ( 16 ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT - - CAST ( + COALESCE ( - 16, - CAST ( - + 37 AS INTEGER ), ( - 80 ) ) AS INTEGER ) + + CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN CAST ( - 43 AS INTEGER ) * - CAST ( - + 52 AS INTEGER ) WHEN - 81 * - + 52 + + - ( + - ( 16 ) ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 79 * 34 AS col1
----
2686

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT - CASE + 46 WHEN - MIN( - + 86 ) THEN - NULLIF ( - + 2, 58 + - 40 + + 52 * - + COUNT( * ) ) * - 42 WHEN - + COUNT( DISTINCT - + 3 ) THEN NULL ELSE - 29 END AS col2
----
29

skipif mysql # not compatible
query I rowsort label-940
SELECT - CASE + 46 WHEN - MIN ( - + 86 ) THEN - NULLIF ( - + 2, 58 + - 40 + + 52 * - + COUNT ( * ) ) * - 42 WHEN - + COUNT ( DISTINCT - + 3 ) THEN NULL ELSE - 29 END AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT - COUNT( * ) - 39 * 45, - NULLIF ( + 99, 47 * - COUNT( * ) ) AS col0
----
-1756
-99

skipif mysql # not compatible
query II rowsort label-941
SELECT - COUNT ( * ) - 39 * 45, - NULLIF ( + 99, 47 * - COUNT ( * ) ) AS col0
----
-1756
-99

query II rowsort
SELECT ALL 56 AS col2, 94
----
56
94

query I rowsort
SELECT DISTINCT 10 * + 9 * + 27 col1
----
2430

query I rowsort
SELECT 60 + - 5
----
55

query II rowsort
SELECT 56, 11 * + 61 col1
----
56
671

query I rowsort
SELECT 66 * + 13
----
858

query I rowsort
SELECT 2 + 13 + 64 AS col0
----
79

query I rowsort
SELECT ALL - 24 * 82 AS col2
----
-1968

query I rowsort
SELECT 76 * 33
----
2508

onlyif mysql # DIV for integer division: 
query I rowsort label-950
SELECT 21 DIV + 96 * 40
----
0

skipif mysql # not compatible
query I rowsort label-950
SELECT 21 / + 96 * 40
----
0

query I rowsort
SELECT ALL 9 + - 96 * + 9 + - + 56 - - - 59
----
-970

onlyif mysql # DIV for integer division: 
query II rowsort label-952
SELECT ALL - 25 + - 64 + 92 DIV - + 50 AS col2, - 32
----
-90
-32

skipif mysql # not compatible
query II rowsort label-952
SELECT ALL - 25 + - 64 + 92 / - + 50 AS col2, - 32
----
-90
-32

query I rowsort
SELECT ALL ( - 29 ) + + 84 AS col2
----
55

query I rowsort
SELECT DISTINCT + 53 * 31 AS col2
----
1643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-955
SELECT ALL - COUNT( ALL + 2 ) + + - COALESCE ( SUM( NULLIF ( + 84, + 81 + ( + - CAST( - + 68 AS SIGNED ) ) ) ), + COUNT( * ) + + - COUNT( * ), - 84 + - 46 ) AS col1, + 56
----
-85
56

skipif mysql # not compatible
query II rowsort label-955
SELECT ALL - COUNT ( ALL + 2 ) + + - COALESCE ( SUM ( NULLIF ( + 84, + 81 + ( + - CAST ( - + 68 AS INTEGER ) ) ) ), + COUNT ( * ) + + - COUNT ( * ), - 84 + - 46 ) AS col1, + 56
----
-85
56

query I rowsort
SELECT ( + 23 ) * - + 75
----
-1725

query II rowsort
SELECT ALL - 62 AS col2, + 43 AS col2
----
-62
43

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

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

query II rowsort
SELECT DISTINCT - 78 AS col1, 60
----
-78
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-960
SELECT 63 * + 33 - - MIN( ALL 54 ) DIV + 28
----
2080

skipif mysql # not compatible
query I rowsort label-960
SELECT 63 * + 33 - - MIN ( ALL 54 ) / + 28
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT DISTINCT 18 + + - 61 + + COUNT( 70 ) * + 51 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT 18 + + - 61 + + COUNT ( 70 ) * + 51 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT ALL - 46 * - 64 * - - 92 * - 54 * COUNT( * ) * + - 80 AS col1
----
1170063360

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL - 46 * - 64 * - - 92 * - 54 * COUNT ( * ) * + - 80 AS col1
----
1170063360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-963
SELECT 49 * - COUNT( * ) / - CAST( NULL AS SIGNED ) + 8 + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-963
SELECT 49 * - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + 8 + - 45
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-965
SELECT ALL - COALESCE ( 65, 22 + - 95 - - 43 + COUNT( * ) + - - 80 * ( 52 ) ), COUNT( * ) AS col1
----
-65
1

skipif mysql # not compatible
query II rowsort label-965
SELECT ALL - COALESCE ( 65, 22 + - 95 - - 43 + COUNT ( * ) + - - 80 * ( 52 ) ), COUNT ( * ) AS col1
----
-65
1

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

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

query I rowsort
SELECT 98 + - 13
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT 91 * - - 69 * - 62 - - CASE - - ( + - 35 ) WHEN + 38 + + + 23 THEN - 22 WHEN - + 60 THEN NULL ELSE NULL END + + - NULLIF ( - CASE - - COUNT( * ) WHEN - 89 THEN NULL WHEN - 53 * - COUNT( * ) THEN - - NULLIF ( + 8, AVG ( - 17 ) * - 47 * - 88 * + + 82 * + 12 ) * 16 * + - ( + 67 ) WHEN + 70 * 72 + + 18 * 34 THEN NULL ELSE 41 + 44 END, 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT 91 * - - 69 * - 62 - - CASE - - ( + - 35 ) WHEN + 38 + + + 23 THEN - 22 WHEN - + 60 THEN NULL ELSE NULL END + + - NULLIF ( - CASE - - COUNT ( * ) WHEN - 89 THEN NULL WHEN - 53 * - COUNT ( * ) THEN - - NULLIF ( + 8, AVG ( - 17 ) * - 47 * - 88 * + + 82 * + 12 ) * 16 * + - ( + 67 ) WHEN + 70 * 72 + + 18 * 34 THEN NULL ELSE 41 + 44 END, 25 )
----
NULL

query I rowsort
SELECT - 46 + - + 83
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-970
SELECT 21 DIV - 61 * 62 * 44 col2
----
0

skipif mysql # not compatible
query I rowsort label-970
SELECT 21 / - 61 * 62 * 44 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-971
SELECT + COUNT( * ) DIV 90 + - NULLIF ( - 38, + 32 )
----
38

skipif mysql # not compatible
query I rowsort label-971
SELECT + COUNT ( * ) / 90 + - NULLIF ( - 38, + 32 )
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-972
SELECT ALL - - 90 DIV + - 74 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL - - 90 / + - 74 AS col1
----
-1

query I rowsort
SELECT ALL + NULLIF ( + 14, + 34 * - + 8 )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-974
SELECT ALL - 10 AS col1, + MIN( ALL - 3 ) * - 48 AS col0
----
-10
144

skipif mysql # not compatible
query II rowsort label-974
SELECT ALL - 10 AS col1, + MIN ( ALL - 3 ) * - 48 AS col0
----
-10
144

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

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

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

query I rowsort
SELECT 77 + 12 * + - 42 AS col0
----
-427

query I rowsort
SELECT 11 * - 26 AS col2
----
-286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-979
SELECT ALL - 29 + MAX( ALL + CAST( NULL AS SIGNED ) ) * - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL - 29 + MAX ( ALL + CAST ( NULL AS INTEGER ) ) * - - 25
----
NULL

query I rowsort
SELECT 82 + 69 * ( ( - - 80 ) )
----
5602

query I rowsort
SELECT ALL + 66 + 21
----
87

query I rowsort
SELECT ALL + 93 + + 42
----
135

query II rowsort
SELECT ALL - 39 * + 72 AS col2, 72 AS col1
----
-2808
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT DISTINCT + 84 + 93 + + 57 * + + CASE 45 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE - - 35 * + 40 - - - SUM( ALL - 59 ) + + - 42 + - 96 + + 22 + 5 * - 81 END + - ( 6 ) * - 0 AS col0
----
53643

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT + 84 + 93 + + 57 * + + CASE 45 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE - - 35 * + 40 - - - SUM ( ALL - 59 ) + + - 42 + - 96 + + 22 + 5 * - 81 END + - ( 6 ) * - 0 AS col0
----
53643

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT CASE + 88 WHEN - 82 THEN NULL ELSE 78 * COUNT( * ) * + - 14 - + MAX( DISTINCT + 4 ) END * + - 83 * 19 + - + 45 AS col2
----
1728347

skipif mysql # not compatible
query I rowsort label-986
SELECT CASE + 88 WHEN - 82 THEN NULL ELSE 78 * COUNT ( * ) * + - 14 - + MAX ( DISTINCT + 4 ) END * + - 83 * 19 + - + 45 AS col2
----
1728347

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

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

query I rowsort
SELECT ALL - 76 * - 3 AS col1
----
228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-989
SELECT 3 DIV - + MAX( ALL 86 ) + - 71 - + - 70 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-989
SELECT 3 / - + MAX ( ALL 86 ) + - 71 - + - 70 * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-990
SELECT ALL - 67 - + CAST( 26 AS SIGNED ) AS col2, 54 + + 96
----
-93
150

skipif mysql # not compatible
query II rowsort label-990
SELECT ALL - 67 - + CAST ( 26 AS INTEGER ) AS col2, 54 + + 96
----
-93
150

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT MAX( ALL 53 ) * 85
----
4505

skipif mysql # not compatible
query I rowsort label-991
SELECT MAX ( ALL 53 ) * 85
----
4505

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT ALL - 31 - - - MAX( - 83 )
----
52

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - 31 - - - MAX ( - 83 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT ALL + CASE + - COUNT( ALL + ( 85 ) ) WHEN - 14 THEN NULL WHEN - - 56 + - ( - 69 ) THEN 79 END * - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL + CASE + - COUNT ( ALL + ( 85 ) ) WHEN - 14 THEN NULL WHEN - - 56 + - ( - 69 ) THEN 79 END * - + 41
----
NULL

query I rowsort
SELECT ALL CASE - 36 WHEN + 45 THEN NULL ELSE + ( + 33 ) END - - 39 AS col0
----
72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-996
SELECT ALL - 6 * + CAST( NULL AS SIGNED ) + + + 45
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT DISTINCT + COUNT( * ) - + 83 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT + COUNT ( * ) - + 83 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-998
SELECT + 87 + - 38 col1, 91 + COALESCE ( + + 62, 59 * 23 + - 46, COUNT( * ), + + COUNT( * ) ) + - - 25 * + SUM( ALL + 84 )
----
49
2253

skipif mysql # not compatible
query II rowsort label-998
SELECT + 87 + - 38 col1, 91 + COALESCE ( + + 62, 59 * 23 + - 46, COUNT ( * ), + + COUNT ( * ) ) + - - 25 * + SUM ( ALL + 84 )
----
49
2253

query I rowsort
SELECT ALL - - 61 col1
----
61

query I rowsort
SELECT 46 * + 14 + - 96 + 88
----
636

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1001
SELECT + NULLIF ( + 32, - CASE CAST( + - 34 AS DECIMAL ) WHEN - 93 THEN NULL WHEN + 46 * + ( - + 28 ) + 49 + COALESCE ( - + 49, - + AVG ( + CAST( + 43 AS SIGNED ) ) ) THEN - 96 WHEN + 50 / 17 THEN NULL END * + - 80 + - - 56 ) * ( + + 40 ) + + 73
----
1353

skipif mysql # not compatible
query I rowsort label-1001
SELECT + NULLIF ( + 32, - CASE CAST ( + - 34 AS REAL ) WHEN - 93 THEN NULL WHEN + 46 * + ( - + 28 ) + 49 + COALESCE ( - + 49, - + AVG ( + CAST ( + 43 AS INTEGER ) ) ) THEN - 96 WHEN + 50 / 17 THEN NULL END * + - 80 + - - 56 ) * ( + + 40 ) + + 73
----
1353

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1002
SELECT + 83 * - CAST( NULL AS DECIMAL ) + + 1 * + + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT + 83 * - CAST ( NULL AS REAL ) + + 1 * + + 14 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1003
SELECT ALL - ( - 38 ) col0, CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0
----
38
NULL

skipif mysql # not compatible
query II rowsort label-1003
SELECT ALL - ( - 38 ) col0, CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0
----
38
NULL

query II rowsort
SELECT - ( 53 ) col2, + 53
----
-53
53

query I rowsort
SELECT DISTINCT - 41 * + 65
----
-2665

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL NULLIF ( COUNT( * ), - 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL NULLIF ( COUNT ( * ), - 29 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT - + 69 * + NULLIF ( + 5, + + 74 + + MAX( + 78 ) * 44 )
----
-345

skipif mysql # not compatible
query I rowsort label-1007
SELECT - + 69 * + NULLIF ( + 5, + + 74 + + MAX ( + 78 ) * 44 )
----
-345

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

skipif mysql # not compatible
query I rowsort label-1008
SELECT - SUM ( + + 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1009
SELECT - 28 + - ( + - ( - 18 ) ) AS col1, - 0 DIV - COUNT( * ) + + 97 AS col0
----
-46
97

skipif mysql # not compatible
query II rowsort label-1009
SELECT - 28 + - ( + - ( - 18 ) ) AS col1, - 0 / - COUNT ( * ) + + 97 AS col0
----
-46
97

query I rowsort
SELECT ALL 33 + 22 AS col1
----
55

query I rowsort
SELECT ALL 92 + + 23
----
115

query II rowsort
SELECT 81, - 61 + + + 35 AS col1
----
81
-26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1014
SELECT + 92 DIV + 18
----
5

skipif mysql # not compatible
query I rowsort label-1014
SELECT + 92 / + 18
----
5

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

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

query II rowsort
SELECT ALL 74 + - 80 + 1 AS col2, + 40
----
-5
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1017
SELECT 81 col1, + CAST( - 5 AS SIGNED )
----
81
-5

skipif mysql # not compatible
query II rowsort label-1017
SELECT 81 col1, + CAST ( - 5 AS INTEGER )
----
81
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1018
SELECT - 62 + ( + + 28 ) DIV + 73 + 91 + + + 63 * 88 * - 44
----
-243907

skipif mysql # not compatible
query I rowsort label-1018
SELECT - 62 + ( + + 28 ) / + 73 + 91 + + + 63 * 88 * - 44
----
-243907

query I rowsort
SELECT ALL - 8 * - - 35
----
-280

query I rowsort
SELECT - 38 + 68
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT DISTINCT + ( - ( - 83 ) ) * COUNT( * ) * 56 - SUM( ALL - 62 )
----
4710

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT + ( - ( - 83 ) ) * COUNT ( * ) * 56 - SUM ( ALL - 62 )
----
4710

query I rowsort
SELECT - 84 * 13 AS col0
----
-1092

query I rowsort
SELECT ALL 90 * 2
----
180

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

query I rowsort
SELECT DISTINCT - 90 * + 40 * - 60 AS col2
----
216000

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ALL + NULLIF ( COUNT( * ), - + 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL + NULLIF ( COUNT ( * ), - + 77 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT - 48 * 57 DIV 44 col1
----
-62

skipif mysql # not compatible
query I rowsort label-1027
SELECT - 48 * 57 / 44 col1
----
-62

query II rowsort
SELECT DISTINCT + 60, - 44 + + 35 AS col2
----
60
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1029
SELECT ALL + - COUNT( * ) / + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 96 + + 21 + + 0 + 90 - - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL + - COUNT ( * ) / + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 96 + + 21 + + 0 + 90 - - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT + 94 DIV - + 92
----
-1

skipif mysql # not compatible
query I rowsort label-1030
SELECT + 94 / - + 92
----
-1

query I rowsort
SELECT DISTINCT + ( + - 30 ) * - 62 * 76 AS col2
----
141360

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + COUNT( * ) * - 9 - ( + 25 ) + - - 75
----
41

skipif mysql # not compatible
query I rowsort label-1032
SELECT + COUNT ( * ) * - 9 - ( + 25 ) + - - 75
----
41

query I rowsort
SELECT + 7 * - 72 col0
----
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL + - 56 / 22 + + - CAST( 94 AS SIGNED ) / 57 / + CASE - 27 WHEN - 67 + - + 33 THEN - 32 WHEN - NULLIF ( 1, - CASE + COUNT( ALL + + 66 ) WHEN - + CASE - COUNT( * ) WHEN 90 THEN - + COALESCE ( 7, + + 12, 8 * 33 + - + 30 ) * - 18 WHEN - ( - COUNT( * ) ) + - 46 THEN NULL ELSE NULL END - - - 7 THEN NULL WHEN 66 THEN 62 + + - 17 + - 29 END ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL + - 56 / 22 + + - CAST ( 94 AS INTEGER ) / 57 / + CASE - 27 WHEN - 67 + - + 33 THEN - 32 WHEN - NULLIF ( 1, - CASE + COUNT ( ALL + + 66 ) WHEN - + CASE - COUNT ( * ) WHEN 90 THEN - + COALESCE ( 7, + + 12, 8 * 33 + - + 30 ) * - 18 WHEN - ( - COUNT ( * ) ) + - 46 THEN NULL ELSE NULL END - - - 7 THEN NULL WHEN 66 THEN 62 + + - 17 + - 29 END ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 51 - - - 35 AS col1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT - - 98 DIV - ( - + 81 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1036
SELECT - - 98 / - ( - + 81 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 57 * - 46 + 59 - + 4 + - 39 * + 38 + - 4 AS col1
----
1191

query I rowsort
SELECT ALL - + 43 * + 59 AS col2
----
-2537

onlyif mysql # aggregate syntax: 
query II rowsort label-1039
SELECT DISTINCT - 92 * + NULLIF ( - + SUM( ALL + 45 ), - 28 ) + + 8 + + 91 * + 16 - + COUNT( * ), 50 AS col0
----
5603
50

skipif mysql # not compatible
query II rowsort label-1039
SELECT DISTINCT - 92 * + NULLIF ( - + SUM ( ALL + 45 ), - 28 ) + + 8 + + 91 * + 16 - + COUNT ( * ), 50 AS col0
----
5603
50

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

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

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

query I rowsort
SELECT - + 79 + 76 + + 4 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1043
SELECT + 52 * - - COALESCE ( 27, + MIN( ALL + 76 ) ) - - CAST( 4 AS SIGNED )
----
1408

skipif mysql # not compatible
query I rowsort label-1043
SELECT + 52 * - - COALESCE ( 27, + MIN ( ALL + 76 ) ) - - CAST ( 4 AS INTEGER )
----
1408

query II rowsort
SELECT - 15 AS col1, 1
----
-15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT + 10 * - COUNT( + 54 ) * + + COUNT( ALL - - COALESCE ( - + 77, 6 ) ) * - 16 / CASE + ( + 0 ) WHEN + - ( + 71 ) * 42 + + ( - 97 ) + + 91 - + 70 THEN NULL WHEN + 96 THEN + COUNT( + + 38 ) ELSE NULL END - - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT + 10 * - COUNT ( + 54 ) * + + COUNT ( ALL - - COALESCE ( - + 77, 6 ) ) * - 16 / CASE + ( + 0 ) WHEN + - ( + 71 ) * 42 + + ( - 97 ) + + 91 - + 70 THEN NULL WHEN + 96 THEN + COUNT ( + + 38 ) ELSE NULL END - - - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT DISTINCT COUNT( * ) * + 35 + COUNT( ALL 43 ) + COUNT( * ) col2
----
37

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT COUNT ( * ) * + 35 + COUNT ( ALL 43 ) + COUNT ( * ) col2
----
37

query I rowsort
SELECT ALL + 56 * - + 4 + - 0 + + - 79 + - + 11 col0
----
-314

query I rowsort
SELECT ALL 97 + + 45 AS col1
----
142

onlyif mysql # aggregate syntax: 
query II rowsort label-1049
SELECT - COUNT( DISTINCT + 72 ), 46 AS col0
----
-1
46

skipif mysql # not compatible
query II rowsort label-1049
SELECT - COUNT ( DISTINCT + 72 ), 46 AS col0
----
-1
46

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1051
SELECT DISTINCT - 84 + - CAST( NULL AS SIGNED ) + + 2 + - 69 * + NULLIF ( + CAST( NULL AS SIGNED ), + 65 ) * CASE - 97 WHEN - 87 THEN + 32 ELSE NULL END * - 29 * + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - 84 + - CAST ( NULL AS INTEGER ) + + 2 + - 69 * + NULLIF ( + CAST ( NULL AS INTEGER ), + 65 ) * CASE - 97 WHEN - 87 THEN + 32 ELSE NULL END * - 29 * + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1052
SELECT + 75 + + + 0 AS col0, + COUNT( * ) * + + 3 * 52
----
75
156

skipif mysql # not compatible
query II rowsort label-1052
SELECT + 75 + + + 0 AS col0, + COUNT ( * ) * + + 3 * 52
----
75
156

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1054
SELECT + 51 + - 40 + + 9 + + + COUNT( + + 71 ) DIV COUNT( * ) + ( + 29 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1054
SELECT + 51 + - 40 + + 9 + + + COUNT ( + + 71 ) / COUNT ( * ) + ( + 29 ) AS col2
----
50

query I rowsort
SELECT ALL 57 + - 64 + - 85 + + 1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT COUNT( 36 ) * + 41 * - + 3
----
-123

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT COUNT ( 36 ) * + 41 * - + 3
----
-123

query I rowsort
SELECT + 56 + - 86 AS col1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT + ( - 8 ) DIV 87 * - 16 col2
----
0

skipif mysql # not compatible
query I rowsort label-1058
SELECT + ( - 8 ) / 87 * - 16 col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1060
SELECT ALL COALESCE ( - + 0, - 24 * 71 - + 29 * + 17 + - - 17 ) * + CAST( NULL AS SIGNED ) + 92 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL COALESCE ( - + 0, - 24 * 71 - + 29 * + 17 + - - 17 ) * + CAST ( NULL AS INTEGER ) + 92 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT + 85 * 99 * + MAX( - 99 ) AS col0
----
-833085

skipif mysql # not compatible
query I rowsort label-1062
SELECT + 85 * 99 * + MAX ( - 99 ) AS col0
----
-833085

query I rowsort
SELECT + 2 + - COALESCE ( + 84, + + 48 * + + 16 + + NULLIF ( - 79, - 86 + + COALESCE ( ( - 20 ), - 93 ) ) + + NULLIF ( 66, - - 63 + 5 - + 77 * + + 34 ), + 38 ) AS col1
----
-82

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

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT + 31 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT + 78 + - MAX( + 89 )
----
-11

skipif mysql # not compatible
query I rowsort label-1065
SELECT + 78 + - MAX ( + 89 )
----
-11

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

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

query II rowsort
SELECT ALL + ( + - 43 ) AS col2, 10 + + 24
----
-43
34

query I rowsort
SELECT - 31 * - 64
----
1984

query I rowsort
SELECT DISTINCT - 57 * 57
----
-3249

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1071
SELECT - MAX( 22 ) + + NULLIF ( + + COALESCE ( 84, + - 94 ), 32 * + 83 ) + - - CASE - CAST( NULL AS SIGNED ) WHEN - + 52 THEN 59 WHEN + CASE WHEN 13 NOT IN ( + COUNT( + 42 ), SUM( + + 66 ) * - ( + COUNT( * ) ) ) THEN NULL ELSE + COUNT( * ) / 87 + + 58 END THEN - - CAST( NULL AS SIGNED ) + - COUNT( * ) + + 7 END + 20 - + - 10 * - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT - MAX ( 22 ) + + NULLIF ( + + COALESCE ( 84, + - 94 ), 32 * + 83 ) + - - CASE - CAST ( NULL AS INTEGER ) WHEN - + 52 THEN 59 WHEN + CASE WHEN 13 NOT IN ( + COUNT ( + 42 ), SUM ( + + 66 ) * - ( + COUNT ( * ) ) ) THEN NULL ELSE + COUNT ( * ) / 87 + + 58 END THEN - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 7 END + 20 - + - 10 * - - 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1072
SELECT ALL + COALESCE ( + 88, - COUNT( + - ( - 60 ) ) ) * CAST( NULL AS DECIMAL ) * 14 * + CASE - - CASE - 53 WHEN + 89 THEN + COUNT( * ) + 21 * + + 54 ELSE NULL END WHEN + 12 * 46 * 59 THEN 61 * 11 + - + AVG ( ALL + 66 ) + - 58 + 16 * - 17 END AS col1, 18 * - - 89 col0
----
NULL
1602

skipif mysql # not compatible
query II rowsort label-1072
SELECT ALL + COALESCE ( + 88, - COUNT ( + - ( - 60 ) ) ) * CAST ( NULL AS REAL ) * 14 * + CASE - - CASE - 53 WHEN + 89 THEN + COUNT ( * ) + 21 * + + 54 ELSE NULL END WHEN + 12 * 46 * 59 THEN 61 * 11 + - + AVG ( ALL + 66 ) + - 58 + 16 * - 17 END AS col1, 18 * - - 89 col0
----
NULL
1602

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

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

query I rowsort
SELECT DISTINCT + 7 * - - 14 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT ALL + + CASE - COUNT( * ) WHEN - COUNT( * ) * + MIN( + 43 ) THEN - + ( - MAX( + 44 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL + + CASE - COUNT ( * ) WHEN - COUNT ( * ) * + MIN ( + 43 ) THEN - + ( - MAX ( + 44 ) ) END AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 86 ) + - - 12 AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1077
SELECT + + COALESCE ( + 54, - CASE 61 WHEN + 23 + + + 41 THEN + 72 END, - 66 * 43 * + - 62 ), 44 * - CAST( - ( - COUNT( * ) ) AS SIGNED ) * 87 * + NULLIF ( 81, 60 / + CAST( 42 AS DECIMAL ) + - ( - 60 ) ) AS col0
----
54
-310068

skipif mysql # not compatible
query II rowsort label-1077
SELECT + + COALESCE ( + 54, - CASE 61 WHEN + 23 + + + 41 THEN + 72 END, - 66 * 43 * + - 62 ), 44 * - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) * 87 * + NULLIF ( 81, 60 / + CAST ( 42 AS REAL ) + - ( - 60 ) ) AS col0
----
54
-310068

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT + - MAX( 49 ) + + NULLIF ( + + 18, - - 60 + - - 11 * + 53 ) + 12 + - COALESCE ( - 61, + 62 * ( 70 ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + - MAX ( 49 ) + + NULLIF ( + + 18, - - 60 + - - 11 * + 53 ) + 12 + - COALESCE ( - 61, + 62 * ( 70 ) ) AS col0
----
42

query I rowsort
SELECT ALL - + 8 + + - 66 + + 1 AS col0
----
-73

query I rowsort
SELECT ALL - - 41 col0
----
41

query I rowsort
SELECT 42 + 69
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-1082
SELECT DISTINCT + - CASE MIN( + - 36 ) WHEN - MAX( 69 ) THEN - COUNT( - 34 ) WHEN + 3 THEN NULL WHEN 72 - - 67 THEN + 76 - - - 92 ELSE NULL END + - + 61 * - + 76, - COUNT( * ) * 33 AS col0
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-1082
SELECT DISTINCT + - CASE MIN ( + - 36 ) WHEN - MAX ( 69 ) THEN - COUNT ( - 34 ) WHEN + 3 THEN NULL WHEN 72 - - 67 THEN + 76 - - - 92 ELSE NULL END + - + 61 * - + 76, - COUNT ( * ) * 33 AS col0
----
NULL
-33

query II rowsort
SELECT 34 + 34, ( + - 99 ) AS col1
----
68
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ALL + + COUNT( * ) + - 93
----
-92

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL + + COUNT ( * ) + - 93
----
-92

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

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

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

skipif mysql # not compatible
query I rowsort label-1086
SELECT ALL + + 12 / + CAST ( + 40 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT ALL + - 3 * + 35
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1088
SELECT ALL + ( - + CAST( NULL AS SIGNED ) ) * + 98 AS col1, 91 * + 30 AS col2
----
NULL
2730

skipif mysql # not compatible
query II rowsort label-1088
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) * + 98 AS col1, 91 * + 30 AS col2
----
NULL
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT 1 + + - COUNT( * ) * MIN( ALL - 17 )
----
18

skipif mysql # not compatible
query I rowsort label-1089
SELECT 1 + + - COUNT ( * ) * MIN ( ALL - 17 )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT 5 DIV - - 76 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1090
SELECT 5 / - - 76 AS col2
----
0

query I rowsort
SELECT DISTINCT + 25 * - 23 AS col2
----
-575

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1092
SELECT 49 AS col1, + CAST( NULL AS DECIMAL ) col1
----
49
NULL

skipif mysql # not compatible
query II rowsort label-1092
SELECT 49 AS col1, + CAST ( NULL AS REAL ) col1
----
49
NULL

query I rowsort
SELECT 95 - + 9 + 29
----
115

query I rowsort
SELECT 36 + 89
----
125

query I rowsort
SELECT ALL 73 * - 67
----
-4891

query II rowsort
SELECT - 43 AS col0, - 61 * + 21 * + NULLIF ( 48, + 73 * - 31 ) * 65
----
-43
-3996720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1097
SELECT ( - 47 ) DIV - COALESCE ( + COUNT( * ), + 93 + + - 36 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1097
SELECT ( - 47 ) / - COALESCE ( + COUNT ( * ), + 93 + + - 36 ) AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1098
SELECT CAST( 30 AS SIGNED ) + + - 86 - 27 + + 75
----
-8

skipif mysql # not compatible
query I rowsort label-1098
SELECT CAST ( 30 AS INTEGER ) + + - 86 - 27 + + 75
----
-8

query I rowsort
SELECT DISTINCT + 86 * + 99 + 98 AS col1
----
8612

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1100
SELECT + ( + CAST( - 83 AS DECIMAL ) ) * CAST( NULL AS DECIMAL ) + + - COUNT( * ) * - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT + ( + CAST ( - 83 AS REAL ) ) * CAST ( NULL AS REAL ) + + - COUNT ( * ) * - 45 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1101
SELECT ALL - CAST( - + 22 AS SIGNED ) + 10 * - 50 * + 2 AS col2
----
-978

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL - CAST ( - + 22 AS INTEGER ) + 10 * - 50 * + 2 AS col2
----
-978

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL + 3 + - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL + 3 + - + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT ( + + 39 ) DIV - 87 * + - 85 * + 32 * 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1103
SELECT ( + + 39 ) / - 87 * + - 85 * + 32 * 41 AS col1
----
0

query I rowsort
SELECT ALL + 92 + + - 47
----
45

query I rowsort
SELECT ALL - + ( 98 ) + 15 * - - NULLIF ( + - 77, + 46 / - - 41 ) * + 59 + - 25 + 60
----
-68208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1106
SELECT DISTINCT 12 DIV - ( + + MIN( 16 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT 12 / - ( + + MIN ( 16 ) )
----
0

query I rowsort
SELECT ALL + 12 + + 57 + 83 * 17
----
1480

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT 67 + - - COUNT( * ) * + 83 * 88 * - + 10
----
-72973

skipif mysql # not compatible
query I rowsort label-1108
SELECT 67 + - - COUNT ( * ) * + 83 * 88 * - + 10
----
-72973

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT - CASE - 65 WHEN COUNT( * ) + 82 THEN 82 WHEN 44 * COUNT( * ) + - 24 THEN - SUM( + 91 ) * 11 - 63 * - + 15 + - 72 WHEN - 93 + - 90 * 50 THEN - 68 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT - CASE - 65 WHEN COUNT ( * ) + 82 THEN 82 WHEN 44 * COUNT ( * ) + - 24 THEN - SUM ( + 91 ) * 11 - 63 * - + 15 + - 72 WHEN - 93 + - 90 * 50 THEN - 68 END col1
----
NULL

query I rowsort
SELECT + + 2 col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1111
SELECT ( + COUNT( * ) ) + - 71 AS col0, - COUNT( * ) + COUNT( * ) * - 3 + + 38 + - 83 + + + 4 col0
----
-70
-45

skipif mysql # not compatible
query II rowsort label-1111
SELECT ( + COUNT ( * ) ) + - 71 AS col0, - COUNT ( * ) + COUNT ( * ) * - 3 + + 38 + - 83 + + + 4 col0
----
-70
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1112
SELECT ALL + 91 + - 94 - + 49 DIV - 68 * - + MIN( - ( + 42 ) ) * - 24 * - 89 * + ( ( + 14 ) ) - COUNT( * ) + - COUNT( - + 61 )
----
-5

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL + 91 + - 94 - + 49 / - 68 * - + MIN ( - ( + 42 ) ) * - 24 * - 89 * + ( ( + 14 ) ) - COUNT ( * ) + - COUNT ( - + 61 )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1113
SELECT + - 67 col2, MAX( ALL 40 )
----
-67
40

skipif mysql # not compatible
query II rowsort label-1113
SELECT + - 67 col2, MAX ( ALL 40 )
----
-67
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT ALL - 16 - NULLIF ( - - ( - + 48 ), 52 * 92 ) DIV 50
----
-16

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL - 16 - NULLIF ( - - ( - + 48 ), 52 * 92 ) / 50
----
-16

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1117
SELECT COUNT( * ) * 94 + + 88 + ( 40 ) + 99 AS col1, - 56 + 0 col2
----
321
-56

skipif mysql # not compatible
query II rowsort label-1117
SELECT COUNT ( * ) * 94 + + 88 + ( 40 ) + 99 AS col1, - 56 + 0 col2
----
321
-56

query I rowsort
SELECT 21 * - ( - - 43 )
----
-903

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1120
SELECT 40 + - - 8 DIV - + 2 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1120
SELECT 40 + - - 8 / - + 2 AS col0
----
36

query I rowsort
SELECT ALL - 49 - + ( + + 97 )
----
-146

query II rowsort
SELECT 11 * + 80, 31 AS col2
----
880
31

query II rowsort
SELECT 20 * - 80 * - ( - 98 ) AS col1, 81 + + 99 * + 30 * 98 + - + 24
----
-156800
291117

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL COUNT( DISTINCT - 41 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL COUNT ( DISTINCT - 41 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT DISTINCT - COALESCE ( + + 94, + + 18 - + 99 + CASE - COALESCE ( + + 91, - + 71 + - ( - + CASE - ( + 43 ) WHEN - - 39 THEN - COUNT( * ) ELSE + 19 + + 90 END ) + + 49, + 89 * 16 - - ( + + 58 ) + - 98 + + - 34 ) WHEN - CAST( NULL AS SIGNED ) + + - 24 * CASE - ( 0 ) WHEN - 49 + + CASE 52 WHEN + + 51 + 23 THEN - + ( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) + - 64 ELSE NULL END THEN - 85 END * CAST( - 97 + 68 AS SIGNED ) THEN 86 + 55 WHEN + 26 + 89 THEN NULL END * COUNT( * ) ) * + 4
----
-376

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT - COALESCE ( + + 94, + + 18 - + 99 + CASE - COALESCE ( + + 91, - + 71 + - ( - + CASE - ( + 43 ) WHEN - - 39 THEN - COUNT ( * ) ELSE + 19 + + 90 END ) + + 49, + 89 * 16 - - ( + + 58 ) + - 98 + + - 34 ) WHEN - CAST ( NULL AS INTEGER ) + + - 24 * CASE - ( 0 ) WHEN - 49 + + CASE 52 WHEN + + 51 + 23 THEN - + ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) + - 64 ELSE NULL END THEN - 85 END * CAST ( - 97 + 68 AS INTEGER ) THEN 86 + 55 WHEN + 26 + 89 THEN NULL END * COUNT ( * ) ) * + 4
----
-376

query I rowsort
SELECT 30 + - 79 * + - 7 * + 48
----
26574

query I rowsort
SELECT 36 * + 55 * - 30
----
-59400

query II rowsort
SELECT - 38 AS col0, 70 AS col1
----
-38
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1129
SELECT ALL COUNT( * ) AS col1, + 9 * + + COUNT( + 44 ) * - ( + COUNT( * ) ) * + 88 + - 49
----
1
-841

skipif mysql # not compatible
query II rowsort label-1129
SELECT ALL COUNT ( * ) AS col1, + 9 * + + COUNT ( + 44 ) * - ( + COUNT ( * ) ) * + 88 + - 49
----
1
-841

query I rowsort
SELECT 26 + NULLIF ( - + 92, + 91 ) * + 5 AS col0
----
-434

onlyif mysql # aggregate syntax: 
query II rowsort label-1131
SELECT 35 + - + 79 + + - COUNT( * ) - - COUNT( ALL + 55 ) * + + 18 AS col0, 94
----
-27
94

skipif mysql # not compatible
query II rowsort label-1131
SELECT 35 + - + 79 + + - COUNT ( * ) - - COUNT ( ALL + 55 ) * + + 18 AS col0, 94
----
-27
94

query I rowsort
SELECT CASE + 79 WHEN ( - + 56 ) THEN + 35 WHEN - - 99 / - - 88 THEN NULL WHEN - 55 * + - 69 * + 60 + - + 7 THEN NULL END * - 90 * - + 8
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-1133
SELECT ALL + 41 + - - 8 * 40 / - CASE 23 WHEN 95 THEN + COALESCE ( - - 98, - + 16 * + + 58 - MAX( - 79 ) ) * + 21 + + 83 * + 38 END + - 10, + 15 AS col0, - + 12 * AVG ( DISTINCT - - 37 ) * CASE - 36 WHEN - 92 + + CASE WHEN ( 71 ) > ( NULL ) THEN - COUNT( * ) END * 30 THEN - - 34 WHEN - 7 * + 99 THEN NULL ELSE NULL END + - 19
----
NULL
15
NULL

skipif mysql # not compatible
query III rowsort label-1133
SELECT ALL + 41 + - - 8 * 40 / - CASE 23 WHEN 95 THEN + COALESCE ( - - 98, - + 16 * + + 58 - MAX ( - 79 ) ) * + 21 + + 83 * + 38 END + - 10, + 15 AS col0, - + 12 * AVG ( DISTINCT - - 37 ) * CASE - 36 WHEN - 92 + + CASE WHEN ( 71 ) > ( NULL ) THEN - COUNT ( * ) END * 30 THEN - - 34 WHEN - 7 * + 99 THEN NULL ELSE NULL END + - 19
----
NULL
15
NULL

query I rowsort
SELECT ALL NULLIF ( - 14, + - 23 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT 64 + + 32 DIV - 32 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1135
SELECT 64 + + 32 / - 32 AS col1
----
63

query I rowsort
SELECT ALL + 7 + 12 col1
----
19

query I rowsort
SELECT - 4 + 98 AS col2
----
94

query II rowsort
SELECT ALL - + ( - + ( - 10 ) ) + 9 AS col1, 7 AS col2
----
-1
7

query I rowsort
SELECT + 17 + 79 AS col1
----
96

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1141
SELECT ALL MIN( DISTINCT + CAST( 38 AS SIGNED ) ) * + - 45 + 9 * 76
----
-1026

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL MIN ( DISTINCT + CAST ( 38 AS INTEGER ) ) * + - 45 + 9 * 76
----
-1026

query I rowsort
SELECT + - 35 + + 90 - + 3
----
52

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

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

query II rowsort
SELECT + 49, - 15 AS col2
----
49
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1145
SELECT ALL - SUM( DISTINCT + - 3 ) * ( ( + - 32 ) ) DIV - - 65 + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL - SUM ( DISTINCT + - 3 ) * ( ( + - 32 ) ) / - - 65 + - COUNT ( * )
----
-2

query I rowsort
SELECT + - 75 * - 65 AS col0
----
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ALL 45 * 20 * + ( - 6 ) + - 5 * + ( - + SUM( - 92 ) ) - - ( 25 ) col0
----
-5835

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL 45 * 20 * + ( - 6 ) + - 5 * + ( - + SUM ( - 92 ) ) - - ( 25 ) col0
----
-5835

query I rowsort
SELECT DISTINCT + CASE 8 WHEN + + 73 THEN NULL WHEN - 14 * NULLIF ( - 11, - 67 ) THEN NULLIF ( - 97, + - 14 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT DISTINCT 91 * + + COUNT( - 67 )
----
91

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT 91 * + + COUNT ( - 67 )
----
91

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

query I rowsort
SELECT - 74 + - 26 * - + 75 + 76
----
1952

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT + 3 + + + MIN( DISTINCT - 14 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1152
SELECT + 3 + + + MIN ( DISTINCT - 14 ) AS col1
----
-11

query II rowsort
SELECT DISTINCT 26 * + 58 col1, - 39 + 9 AS col0
----
1508
-30

query I rowsort
SELECT ALL NULLIF ( 39, 21 )
----
39

query I rowsort
SELECT - 55 * - + 0 * - 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL ( + - MIN( DISTINCT 48 ) ) + + 80
----
32

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL ( + - MIN ( DISTINCT 48 ) ) + + 80
----
32

query I rowsort
SELECT + 26 - 86
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT - 25 + - COUNT( + CAST( 23 AS SIGNED ) ) - - 0 * + 55 * + 23
----
-26

skipif mysql # not compatible
query I rowsort label-1158
SELECT - 25 + - COUNT ( + CAST ( 23 AS INTEGER ) ) - - 0 * + 55 * + 23
----
-26

onlyif mysql # DIV for integer division: 
query II rowsort label-1159
SELECT DISTINCT - 0 DIV ( + 46 ) AS col0, 95 + + ( - 95 )
----
0
0

skipif mysql # not compatible
query II rowsort label-1159
SELECT DISTINCT - 0 / ( + 46 ) AS col0, 95 + + ( - 95 )
----
0
0

query I rowsort
SELECT ALL + 46 + - - 45 col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1161
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + COUNT( * ) / 64, 25 * - + 63 AS col0
----
NULL
-1575

skipif mysql # not compatible
query II rowsort label-1161
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) / 64, 25 * - + 63 AS col0
----
NULL
-1575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT ALL - 82 + CAST( + 56 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - 82 + CAST ( + 56 AS INTEGER )
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1163
SELECT - MIN( - COALESCE ( - 44, - 79 ) ) DIV + + 51
----
0

skipif mysql # not compatible
query I rowsort label-1163
SELECT - MIN ( - COALESCE ( - 44, - 79 ) ) / + + 51
----
0

query I rowsort
SELECT ALL 58 + + 17
----
75

query I rowsort
SELECT DISTINCT + + 47 * 6 AS col2
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL - 45 + - COUNT( DISTINCT 47 ) + 40 * - 47 * + 48
----
-90286

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - 45 + - COUNT ( DISTINCT 47 ) + 40 * - 47 * + 48
----
-90286

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT ALL + 76 * + COUNT( + ( + 16 ) )
----
76

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL + 76 * + COUNT ( + ( + 16 ) )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1168
SELECT - + 65 * + - COUNT( * ) + 6 + - 73 * - 31 + CAST( - 27 AS SIGNED ) AS col1
----
2307

skipif mysql # not compatible
query I rowsort label-1168
SELECT - + 65 * + - COUNT ( * ) + 6 + - 73 * - 31 + CAST ( - 27 AS INTEGER ) AS col1
----
2307

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT DISTINCT + 42 + COUNT( + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT + 42 + COUNT ( + 43 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1170
SELECT ALL - 84 + - - 98 col2, + 79 + + + 42 + - + CAST( NULL AS SIGNED ) AS col0
----
14
NULL

skipif mysql # not compatible
query II rowsort label-1170
SELECT ALL - 84 + - - 98 col2, + 79 + + + 42 + - + CAST ( NULL AS INTEGER ) AS col0
----
14
NULL

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

skipif mysql # not compatible
query I rowsort label-1171
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - 76 AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( 19, 42 + + 83 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1173
SELECT DISTINCT + NULLIF ( + COALESCE ( + + 54, - - NULLIF ( + 92, 48 ) + + 36 + + - 51 ), - ( + 1 ) + - 41 ) DIV + 19 - + - 95 - COUNT( * ) * - 56 * - 39 + + + 53
----
-2034

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT + NULLIF ( + COALESCE ( + + 54, - - NULLIF ( + 92, 48 ) + + 36 + + - 51 ), - ( + 1 ) + - 41 ) / + 19 - + - 95 - COUNT ( * ) * - 56 * - 39 + + + 53
----
-2034

query I rowsort
SELECT DISTINCT + - 92 AS col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1175
SELECT ALL + + 55 DIV + 71 - + 2 + + 92 + - 97
----
-7

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL + + 55 / + 71 - + 2 + + 92 + - 97
----
-7

query I rowsort
SELECT - + 63 * 83 col2
----
-5229

query II rowsort
SELECT ALL + 85 AS col2, + 37
----
85
37

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

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

query I rowsort
SELECT + 62 + 46
----
108

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT + 80 * ( 23 ) * + + ( COUNT( ALL 79 ) ) AS col2
----
1840

skipif mysql # not compatible
query I rowsort label-1181
SELECT + 80 * ( 23 ) * + + ( COUNT ( ALL 79 ) ) AS col2
----
1840

query I rowsort
SELECT DISTINCT + ( + - 47 ) * + + 80 + - 52 AS col1
----
-3812

onlyif mysql # DIV for integer division: 
query I rowsort label-1183
SELECT ALL 50 DIV + 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL 50 / + 7 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-1184
SELECT ALL + 81 AS col1, + MIN( + 90 ) + + 82 + - 48
----
81
124

skipif mysql # not compatible
query II rowsort label-1184
SELECT ALL + 81 AS col1, + MIN ( + 90 ) + + 82 + - 48
----
81
124

query I rowsort
SELECT - 26 + - 14 AS col1
----
-40

query I rowsort
SELECT + 44 * 75
----
3300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1187
SELECT + 82 * CAST( - + 98 AS SIGNED ) - ( - + 96 ) AS col0
----
-7940

skipif mysql # not compatible
query I rowsort label-1187
SELECT + 82 * CAST ( - + 98 AS INTEGER ) - ( - + 96 ) AS col0
----
-7940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT CASE COUNT( * ) WHEN - 99 THEN - + CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1188
SELECT CASE COUNT ( * ) WHEN - 99 THEN - + CAST ( NULL AS INTEGER ) END col2
----
NULL

query I rowsort
SELECT + 13 * + 23
----
299

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT DISTINCT COUNT( * ) + - COALESCE ( + - ( - - 99 ), NULLIF ( - + 82, - 78 ) * - 87 + + 70, 3 ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT COUNT ( * ) + - COALESCE ( + - ( - - 99 ), NULLIF ( - + 82, - 78 ) * - 87 + + 70, 3 ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1191
SELECT ALL 92 col0, 23 * + - COUNT( * ) AS col1
----
92
-23

skipif mysql # not compatible
query II rowsort label-1191
SELECT ALL 92 col0, 23 * + - COUNT ( * ) AS col1
----
92
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1192
SELECT MIN( ALL + - CAST( NULL AS SIGNED ) ) + - 9 AS col2
----
NULL

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

query II rowsort
SELECT ALL 47, + 23 * - - 18 AS col0
----
47
414

onlyif mysql # aggregate syntax: 
query II rowsort label-1194
SELECT 89, COUNT( * ) + + ( + 56 ) AS col1
----
89
57

skipif mysql # not compatible
query II rowsort label-1194
SELECT 89, COUNT ( * ) + + ( + 56 ) AS col1
----
89
57

query I rowsort
SELECT ALL 72 + - 28
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1196
SELECT - 8 - + 97 + ( + 70 ) * - 78 * - + 47 col2, 48 * 46 DIV + - 48 + COALESCE ( COUNT( * ), 90 + COUNT( * ) - - 52 - - 22 - CAST( + 78 AS SIGNED ), 61 ) * - 14
----
256515
-60

skipif mysql # not compatible
query II rowsort label-1196
SELECT - 8 - + 97 + ( + 70 ) * - 78 * - + 47 col2, 48 * 46 / + - 48 + COALESCE ( COUNT ( * ), 90 + COUNT ( * ) - - 52 - - 22 - CAST ( + 78 AS INTEGER ), 61 ) * - 14
----
256515
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT - CASE 41 WHEN - - 28 + - - COUNT( * ) THEN - 28 + + COALESCE ( + 70, + + 72, 10 ) END + + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1197
SELECT - CASE 41 WHEN - - 28 + - - COUNT ( * ) THEN - 28 + + COALESCE ( + 70, + + 72, 10 ) END + + 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT 16 DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-1198
SELECT 16 / 73
----
0

query I rowsort
SELECT - 75 + 18 - + ( + 9 ) AS col0
----
-66

query I rowsort
SELECT 65 * + 53 * + 93 + 60 AS col2
----
320445

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1201
SELECT CAST( NULL AS SIGNED ), + 10 AS col1
----
NULL
10

skipif mysql # not compatible
query II rowsort label-1201
SELECT CAST ( NULL AS INTEGER ), + 10 AS col1
----
NULL
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1202
SELECT + 2 + + 94 * 53 DIV + MAX( ALL + + 88 ) + 42 DIV - 20
----
56

skipif mysql # not compatible
query I rowsort label-1202
SELECT + 2 + + 94 * 53 / + MAX ( ALL + + 88 ) + 42 / - 20
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL - - SUM( ALL + + 6 ) * + 25 AS col1
----
150

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - - SUM ( ALL + + 6 ) * + 25 AS col1
----
150

query I rowsort
SELECT ALL + - 94 * 61 col2
----
-5734

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT 65 + + + 92 + + + COUNT( * )
----
158

skipif mysql # not compatible
query I rowsort label-1205
SELECT 65 + + + 92 + + + COUNT ( * )
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT + 74 * + NULLIF ( - + ( - 89 ), - - COUNT( * ) )
----
6586

skipif mysql # not compatible
query I rowsort label-1206
SELECT + 74 * + NULLIF ( - + ( - 89 ), - - COUNT ( * ) )
----
6586

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

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

query I rowsort
SELECT 36 * + + 49
----
1764

query I rowsort
SELECT DISTINCT + ( + 36 ) + + + 98
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT DISTINCT 9 * + + 58 * COUNT( * ) AS col1
----
522

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT 9 * + + 58 * COUNT ( * ) AS col1
----
522

query I rowsort
SELECT ALL + 27 + - 80 AS col1
----
-53

query I rowsort
SELECT 20 * - 31 AS col1
----
-620

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT 26 DIV 54 col0
----
0

skipif mysql # not compatible
query I rowsort label-1213
SELECT 26 / 54 col0
----
0

query I rowsort
SELECT DISTINCT + 0 * - - 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT DISTINCT - 45 + + - 82 + COUNT( * ) * + 9 + - + 45
----
-163

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT - 45 + + - 82 + COUNT ( * ) * + 9 + - + 45
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL 67 + - COUNT( - 37 )
----
66

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL 67 + - COUNT ( - 37 )
----
66

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT 7 - + - 32 * + - CAST ( NULL AS REAL )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL 67 / - COUNT ( * ) + - - 41
----
-26

query I rowsort
SELECT - 6 + - - 32
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-1223
SELECT COUNT( * ) + - 81 AS col0, 28
----
-80
28

skipif mysql # not compatible
query II rowsort label-1223
SELECT COUNT ( * ) + - 81 AS col0, 28
----
-80
28

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT DISTINCT 7 * ( + 28 ) * 52 DIV - 83 + + 85 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT 7 * ( + 28 ) * 52 / - 83 + + 85 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT SUM( + + ( - + 21 ) ) * NULLIF ( - + 93, - 66 ) col1
----
1953

skipif mysql # not compatible
query I rowsort label-1225
SELECT SUM ( + + ( - + 21 ) ) * NULLIF ( - + 93, - 66 ) col1
----
1953

query I rowsort
SELECT ALL + NULLIF ( 4, 79 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1227
SELECT DISTINCT + 74 * - COUNT( * ), + 48 DIV + COUNT( * ) + 13 AS col1
----
-74
61

skipif mysql # not compatible
query II rowsort label-1227
SELECT DISTINCT + 74 * - COUNT ( * ), + 48 / + COUNT ( * ) + 13 AS col1
----
-74
61

query I rowsort
SELECT + 13 * + 73 col2
----
949

query I rowsort
SELECT DISTINCT + 58 * 21
----
1218

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT DISTINCT - 53 * CASE - 1 WHEN - 13 / - 89 THEN 97 WHEN + + 15 / 69 THEN NULL ELSE NULL END + ( - + COUNT( * ) ) - ( 6 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT - 53 * CASE - 1 WHEN - 13 / - 89 THEN 97 WHEN + + 15 / 69 THEN NULL ELSE NULL END + ( - + COUNT ( * ) ) - ( 6 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL + 31 * + + COUNT( * ) * + - NULLIF ( - - 21, - 84 )
----
-651

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL + 31 * + + COUNT ( * ) * + - NULLIF ( - - 21, - 84 )
----
-651

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1232
SELECT 49 DIV + 97 * - COALESCE ( + + 51, + + ( - 26 ) ) * + + MAX( DISTINCT + 4 ) + + 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1232
SELECT 49 / + 97 * - COALESCE ( + + 51, + + ( - 26 ) ) * + + MAX ( DISTINCT + 4 ) + + 39 AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1233
SELECT 20 + + 5 - - 24 + 65 DIV + 48 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1233
SELECT 20 + + 5 - - 24 + 65 / + 48 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT 22 * COUNT( * ) * - - 73 * ( + - COUNT( DISTINCT 42 ) ) - + ( - 69 ) AS col2
----
-1537

skipif mysql # not compatible
query I rowsort label-1234
SELECT 22 * COUNT ( * ) * - - 73 * ( + - COUNT ( DISTINCT 42 ) ) - + ( - 69 ) AS col2
----
-1537

onlyif mysql # aggregate syntax: 
query II rowsort label-1235
SELECT COUNT( * ) * + COUNT( * ) + + 37 AS col1, + 32
----
38
32

skipif mysql # not compatible
query II rowsort label-1235
SELECT COUNT ( * ) * + COUNT ( * ) + + 37 AS col1, + 32
----
38
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT ALL CASE + 64 WHEN - 47 * - - 21 * 52 - - 19 THEN - 97 WHEN - - 16 + - 76 + 55 + 96 - - - 77 + 26 * - - 10 * - - NULLIF ( + + 29, - 5 ) / 17 + + 36 / + + COUNT( * ) THEN + + AVG ( DISTINCT + + 28 ) * + 37 * 95 / - 94 * - + 42 END * + + 52 + + + 19 * + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL CASE + 64 WHEN - 47 * - - 21 * 52 - - 19 THEN - 97 WHEN - - 16 + - 76 + 55 + 96 - - - 77 + 26 * - - 10 * - - NULLIF ( + + 29, - 5 ) / 17 + + 36 / + + COUNT ( * ) THEN + + AVG ( DISTINCT + + 28 ) * + 37 * 95 / - 94 * - + 42 END * + + 52 + + + 19 * + 83 AS col0
----
NULL

query II rowsort
SELECT ALL + 81, 27 AS col0
----
81
27

query II rowsort
SELECT DISTINCT + 11 * + 55 + - + 28 col2, + 94 + - - 41 AS col2
----
577
135

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

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

query I rowsort
SELECT DISTINCT + 69 * + 44 AS col1
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT + 86 * - ( + COUNT( * ) ) + + 54 + + 39
----
7

skipif mysql # not compatible
query I rowsort label-1241
SELECT + 86 * - ( + COUNT ( * ) ) + + 54 + + 39
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1242
SELECT ALL + 96 - - - ( 72 ) DIV + - 61 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL + 96 - - - ( 72 ) / + - 61 AS col2
----
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1244
SELECT DISTINCT + 78 - - COUNT( * ) + + 87 + - CAST( NULL AS SIGNED ) + 13 * + 64 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT + 78 - - COUNT ( * ) + + 87 + - CAST ( NULL AS INTEGER ) + 13 * + 64 * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 69 * 64 col2
----
4416

onlyif mysql # aggregate syntax: 
query II rowsort label-1246
SELECT + 95 + + + 85 + + + 9 + + COUNT( * ) * COUNT( * ), + 3 * + 84 AS col2
----
190
252

skipif mysql # not compatible
query II rowsort label-1246
SELECT + 95 + + + 85 + + + 9 + + COUNT ( * ) * COUNT ( * ), + 3 * + 84 AS col2
----
190
252

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT - - 8 * + 15 / - 24 * CASE SUM( DISTINCT - + ( 17 ) ) WHEN - 95 THEN NULL WHEN + NULLIF ( + - 95, 64 + - + 96 + + - 42 * + NULLIF ( - - 91, + 48 ) - + - COUNT( * ) * - 59 ) THEN - 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1247
SELECT - - 8 * + 15 / - 24 * CASE SUM ( DISTINCT - + ( 17 ) ) WHEN - 95 THEN NULL WHEN + NULLIF ( + - 95, 64 + - + 96 + + - 42 * + NULLIF ( - - 91, + 48 ) - + - COUNT ( * ) * - 59 ) THEN - 4 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT ALL + + COUNT( * ) - + - 41
----
42

skipif mysql # not compatible
query I rowsort label-1248
SELECT ALL + + COUNT ( * ) - + - 41
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1249
SELECT - + NULLIF ( - 33, - 45 ) AS col1, + COUNT( * ) AS col2
----
33
1

skipif mysql # not compatible
query II rowsort label-1249
SELECT - + NULLIF ( - 33, - 45 ) AS col1, + COUNT ( * ) AS col2
----
33
1

query I rowsort
SELECT - 57 - - 76 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT ALL - NULLIF ( + 80, COUNT( * ) - - 93 )
----
-80

skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL - NULLIF ( + 80, COUNT ( * ) - - 93 )
----
-80

query II rowsort
SELECT ALL + 12, + 19 AS col0
----
12
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT DISTINCT + SUM( + 26 ) col2
----
26

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT + SUM ( + 26 ) col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1254
SELECT - COALESCE ( - COUNT( ( - 20 ) ), - 65 * - COALESCE ( - + 67, + - 52 * + 6 * + CAST( NULL AS SIGNED ) ), 75 ) + + COUNT( * ) DIV + 25 * + + 79
----
1

skipif mysql # not compatible
query I rowsort label-1254
SELECT - COALESCE ( - COUNT ( ( - 20 ) ), - 65 * - COALESCE ( - + 67, + - 52 * + 6 * + CAST ( NULL AS INTEGER ) ), 75 ) + + COUNT ( * ) / + 25 * + + 79
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1255
SELECT + + 76 - ( + - SUM( ALL - 52 ) ) DIV 28
----
75

skipif mysql # not compatible
query I rowsort label-1255
SELECT + + 76 - ( + - SUM ( ALL - 52 ) ) / 28
----
75

query I rowsort
SELECT - - 6 + + 47 + + 46
----
99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1258
SELECT - + COUNT( * ) DIV - NULLIF ( 79, 3 ) * + MAX( - 17 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1258
SELECT - + COUNT ( * ) / - NULLIF ( 79, 3 ) * + MAX ( - 17 ) AS col2
----
0

query I rowsort
SELECT - - ( - 96 )
----
-96

query I rowsort
SELECT ALL - 20 + 29 AS col2
----
9

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

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

query I rowsort
SELECT ALL + 51 + - 66 + + - 54 * 91
----
-4929

query I rowsort
SELECT + 86 + + 97
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT DISTINCT 26 * + 39 * + 40 + + + 40 * - + COUNT( * ) * - + 67
----
43240

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT 26 * + 39 * + 40 + + + 40 * - + COUNT ( * ) * - + 67
----
43240

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

query I rowsort
SELECT + 0 + + 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT + COUNT( * ) + - - 72
----
73

skipif mysql # not compatible
query I rowsort label-1267
SELECT + COUNT ( * ) + - - 72
----
73

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1269
SELECT DISTINCT 62 * COUNT( * ) DIV - - 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT 62 * COUNT ( * ) / - - 48 AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1270
SELECT + MAX ( 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT + COUNT( * ) + 30 * - MAX( DISTINCT - + 34 ) AS col0
----
1021

skipif mysql # not compatible
query I rowsort label-1271
SELECT + COUNT ( * ) + 30 * - MAX ( DISTINCT - + 34 ) AS col0
----
1021

query II rowsort
SELECT ALL + 91, + 91 col2
----
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT + 3 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-1273
SELECT + 3 / + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT + NULLIF ( - 67, + - MAX( + 21 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-1274
SELECT + NULLIF ( - 67, + - MAX ( + 21 ) )
----
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1275
SELECT DISTINCT 50 DIV + + CAST( - + 94 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT 50 / + + CAST ( - + 94 AS INTEGER ) AS col1
----
0

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

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

query I rowsort
SELECT + 73 * - 60 col2
----
-4380

query I rowsort
SELECT ALL - 55 * 95 col1
----
-5225

query I rowsort
SELECT + ( + NULLIF ( + - NULLIF ( - 12, - + 19 ), 9 + + + 82 + 15 ) ) AS col1
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ( - COUNT( - - 26 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1281
SELECT ( - COUNT ( - - 26 ) )
----
-1

query I rowsort
SELECT ALL 49 * + 37 col0
----
1813

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

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

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

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

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

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

query I rowsort
SELECT - 13 * - CASE - ( 62 ) WHEN 71 * + 53 + - 92 * - + 3 * 14 * - 83 THEN AVG ( ALL 33 ) * 70 * - - 35 * + + ( - 54 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1288
SELECT ALL + ( 47 ) AS col2, + 65 + 65 + + 19 DIV - 43 col2
----
47
130

skipif mysql # not compatible
query II rowsort label-1288
SELECT ALL + ( 47 ) AS col2, + 65 + 65 + + 19 / - 43 col2
----
47
130

query I rowsort
SELECT + - 62 * - 56 * + - 54
----
-187488

query I rowsort
SELECT ALL 2 * + 41 + - 69
----
13

query I rowsort
SELECT DISTINCT + NULLIF ( + - 42, AVG ( ALL - 34 ) * 2 ) AS col2
----
-42

query II rowsort
SELECT ALL + - 29, 88 + - 6 AS col2
----
-29
82

query I rowsort
SELECT ALL - + 50 * - 76 * + + ( + 73 ) AS col1
----
277400

query II rowsort
SELECT - 3 AS col2, ( + + 22 ) AS col1
----
-3
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT - NULLIF ( + 63, + 83 + + COUNT( * ) / + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-1295
SELECT - NULLIF ( + 63, + 83 + + COUNT ( * ) / + 63 )
----
-63

query I rowsort
SELECT - + 30 + 58 + 73
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL - - COUNT( * ) * - ( + - ( + 3 ) ) + - - 10
----
13

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - - COUNT ( * ) * - ( + - ( + 3 ) ) + - - 10
----
13

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

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

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

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

query I rowsort
SELECT DISTINCT + 22 + - + ( 7 ) AS col0
----
15

query II rowsort
SELECT DISTINCT + 83, 2 AS col2
----
83
2

query I rowsort
SELECT ALL - - 16 * 34
----
544

query I rowsort
SELECT DISTINCT - 67 + - 41 AS col1
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT + + 3 * - + 47 - + 65 + - 6 + - CAST( - 31 AS SIGNED ) AS col2
----
-181

skipif mysql # not compatible
query I rowsort label-1304
SELECT + + 3 * - + 47 - + 65 + - 6 + - CAST ( - 31 AS INTEGER ) AS col2
----
-181

query II rowsort
SELECT DISTINCT + ( + 91 ) AS col1, + 46 - + 93 AS col1
----
91
-47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT - MAX( - - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-1307
SELECT - MAX ( - - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT DISTINCT 9 * - + MAX( ALL + 72 )
----
-648

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT 9 * - + MAX ( ALL + 72 )
----
-648

query I rowsort
SELECT ALL 44 * - 74
----
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT ALL COUNT( * ) - - 13 * + - 82 AS col0
----
-1065

skipif mysql # not compatible
query I rowsort label-1310
SELECT ALL COUNT ( * ) - - 13 * + - 82 AS col0
----
-1065

query I rowsort
SELECT ALL 8 * + COALESCE ( + ( 67 ), + 96 * - 55 ) AS col2
----
536

query I rowsort
SELECT 61 * 87 * - ( 31 ) * - 93 + - 93
----
15299988

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT + ( + 39 ) * - 40 + COUNT( * ) + + - 51
----
-1610

skipif mysql # not compatible
query I rowsort label-1313
SELECT + ( + 39 ) * - 40 + COUNT ( * ) + + - 51
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT ALL COUNT( * ) - 45 col1
----
-44

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL COUNT ( * ) - 45 col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1315
SELECT ALL 95 DIV - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL 95 / - COUNT ( * )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1316
SELECT CAST( - 26 AS SIGNED ) + + + COUNT( - 37 ) DIV + COUNT( * ), + COUNT( * ) AS col0
----
-25
1

skipif mysql # not compatible
query II rowsort label-1316
SELECT CAST ( - 26 AS INTEGER ) + + + COUNT ( - 37 ) / + COUNT ( * ), + COUNT ( * ) AS col0
----
-25
1

query I rowsort
SELECT - 43 + + 57
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1318
SELECT ALL CAST( NULL AS SIGNED ) / - - COUNT( * ) + + + 20 AS col2, - 30 * + COUNT( * ) AS col0
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-1318
SELECT ALL CAST ( NULL AS INTEGER ) / - - COUNT ( * ) + + + 20 AS col2, - 30 * + COUNT ( * ) AS col0
----
NULL
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT + 52 DIV 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1319
SELECT + 52 / 59 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT DISTINCT + 87 + - 9 + - 22 * + 2 DIV - - 50 + 19 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT + 87 + - 9 + - 22 * + 2 / - - 50 + 19 AS col0
----
97

query II rowsort
SELECT + 10 * + - 87 AS col1, ( - + 22 ) + - 22 + 62 + - 64 + - ( + 33 ) AS col2
----
-870
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT - 19 DIV - - 74
----
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT - 19 / - - 74
----
0

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

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

query I rowsort
SELECT DISTINCT 58 + 15 + + 93
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL COUNT( DISTINCT - - 75 ) * - 82 * 0
----
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL COUNT ( DISTINCT - - 75 ) * - 82 * 0
----
0

query I rowsort
SELECT ALL + ( + 55 ) + - 75 + + + 36 AS col0
----
16

query I rowsort
SELECT ALL + - 43 + + 23 + - ( 7 )
----
-27

query I rowsort
SELECT DISTINCT + 93 + 52
----
145

query II rowsort
SELECT + 68 * - 87, + 66 col1
----
-5916
66

query I rowsort
SELECT DISTINCT - 13 + - 70 + - 21 - + - 32
----
-72

query I rowsort
SELECT - COALESCE ( 47, + + 56 ) AS col0
----
-47

query I rowsort
SELECT 34 - COALESCE ( - 93, + 49 ) AS col1
----
127

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

skipif mysql # not compatible
query I rowsort label-1333
SELECT - + ( - NULLIF ( - COUNT ( * ), - 19 ) )
----
-1

query I rowsort
SELECT ALL + 72 * + 69
----
4968

query I rowsort
SELECT 45 + + 89
----
134

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

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

query I rowsort
SELECT 64 + + 60
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-1338
SELECT ALL 62 - - COUNT( * ) + + 86 col2, - 89 + + 63
----
149
-26

skipif mysql # not compatible
query II rowsort label-1338
SELECT ALL 62 - - COUNT ( * ) + + 86 col2, - 89 + + 63
----
149
-26

query I rowsort
SELECT 71 * + 61
----
4331

onlyif mysql # aggregate syntax: 
query II rowsort label-1340
SELECT DISTINCT 67, 46 * 93 * + 56 + + CASE + 99 WHEN COUNT( * ) THEN + - 42 END AS col1
----
67
NULL

skipif mysql # not compatible
query II rowsort label-1340
SELECT DISTINCT 67, 46 * 93 * + 56 + + CASE + 99 WHEN COUNT ( * ) THEN + - 42 END AS col1
----
67
NULL

query II rowsort
SELECT DISTINCT - 22 AS col0, + 19 * - + 69 AS col0
----
-22
-1311

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT 61 DIV + 41 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1342
SELECT 61 / + 41 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1343
SELECT 70 * - AVG ( - CAST( NULL AS DECIMAL ) ) * + MAX( DISTINCT - - 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1343
SELECT 70 * - AVG ( - CAST ( NULL AS REAL ) ) * + MAX ( DISTINCT - - 98 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1344
SELECT 73 * + + CASE - 47 WHEN ( - MIN( DISTINCT - - CAST( - - ( ( + 9 ) ) AS SIGNED ) ) ) THEN COUNT( * ) + - 76 * + 1 * + + CAST( - ( 59 ) AS SIGNED ) + + 98 + 93 * + COALESCE ( 93, - - CASE - + COUNT( * ) WHEN - - 66 * 23 THEN + 78 / 35 WHEN + 77 THEN NULL END ) END / + - 23 * 65 + - + ( + 47 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1344
SELECT 73 * + + CASE - 47 WHEN ( - MIN ( DISTINCT - - CAST ( - - ( ( + 9 ) ) AS INTEGER ) ) ) THEN COUNT ( * ) + - 76 * + 1 * + + CAST ( - ( 59 ) AS INTEGER ) + + 98 + 93 * + COALESCE ( 93, - - CASE - + COUNT ( * ) WHEN - - 66 * 23 THEN + 78 / 35 WHEN + 77 THEN NULL END ) END / + - 23 * 65 + - + ( + 47 ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1345
SELECT - 24 / 91 + + + COUNT ( * )
----
1

query II rowsort
SELECT ALL - 51 col1, - 56 AS col0
----
-51
-56

query I rowsort
SELECT ALL 54 * - 9
----
-486

query II rowsort
SELECT + 41 AS col1, + ( + 43 ) * + + 38
----
41
1634

query I rowsort
SELECT 96 * + 12 AS col1
----
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-1350
SELECT DISTINCT MAX( - 34 ) + - 84, 55 + + COALESCE ( - - 44, - 7 * 96 - + - 64 ) - - 72 * + COUNT( * ) * + COUNT( * ) + - 23 * 79 AS col2
----
-118
-1646

skipif mysql # not compatible
query II rowsort label-1350
SELECT DISTINCT MAX ( - 34 ) + - 84, 55 + + COALESCE ( - - 44, - 7 * 96 - + - 64 ) - - 72 * + COUNT ( * ) * + COUNT ( * ) + - 23 * 79 AS col2
----
-118
-1646

query I rowsort
SELECT ALL + + 79 + - - 99 + - + 72
----
106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT 69 * - - COUNT( ALL 99 )
----
69

skipif mysql # not compatible
query I rowsort label-1353
SELECT 69 * - - COUNT ( ALL 99 )
----
69

query II rowsort
SELECT DISTINCT - - 65 col1, + 12 + + + 31
----
65
43

query II rowsort
SELECT ALL - 90 AS col1, ( ( + 16 ) ) AS col0
----
-90
16

query I rowsort
SELECT + 39 + + - 19
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1357
SELECT DISTINCT CASE 84 WHEN + 26 THEN NULL WHEN - + 72 * + 9 + + - COUNT( * ) + - - 30 THEN 37 WHEN - CAST( 74 AS SIGNED ) * + - COUNT( * ) THEN 77 + 46 - + + COUNT( * ) ELSE NULL END + - 95 * + + 12 + + COUNT( + 59 ) * - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT CASE 84 WHEN + 26 THEN NULL WHEN - + 72 * + 9 + + - COUNT ( * ) + - - 30 THEN 37 WHEN - CAST ( 74 AS INTEGER ) * + - COUNT ( * ) THEN 77 + 46 - + + COUNT ( * ) ELSE NULL END + - 95 * + + 12 + + COUNT ( + 59 ) * - 10 AS col0
----
NULL

query II rowsort
SELECT ALL - 82 AS col1, + 40 * - - 46 AS col2
----
-82
1840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1359
SELECT ( + - CASE + + 97 WHEN + CAST( 65 AS SIGNED ) * - 28 * - 24 THEN - 7 ELSE 30 END ) + + + CASE + - 65 WHEN + + 89 THEN - 9 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT ( + - CASE + + 97 WHEN + CAST ( 65 AS INTEGER ) * - 28 * - 24 THEN - 7 ELSE 30 END ) + + + CASE + - 65 WHEN + + 89 THEN - 9 END AS col0
----
NULL

query I rowsort
SELECT 72 * - - 82 AS col1
----
5904

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1361
SELECT + CAST( NULL AS SIGNED ) * 9 + - 36 col0, - 92 DIV + 12 AS col2
----
NULL
-7

skipif mysql # not compatible
query II rowsort label-1361
SELECT + CAST ( NULL AS INTEGER ) * 9 + - 36 col0, - 92 / + 12 AS col2
----
NULL
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT COUNT( * ) + + 23 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1362
SELECT COUNT ( * ) + + 23 AS col2
----
24

query I rowsort
SELECT + 46 * 74 * + 6 AS col1
----
20424

query I rowsort
SELECT - - 37 + - 22 AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT + 57 * CASE WHEN NOT ( NULL ) NOT BETWEEN - 49 AND - - COUNT( * ) * - COUNT( * ) * - COALESCE ( - - 53, - NULLIF ( + AVG ( + 14 ), + 57 + - + COUNT( * ) + - - ( 20 ) + + 75 / 66 ) ) + - + COALESCE ( 36, - COALESCE ( - 46, + - CASE - ( + 57 ) WHEN + 95 THEN NULL WHEN + CASE + - 33 WHEN - 28 THEN - 36 + - 52 END THEN 48 * + 4 * - 84 + 34 + - 90 END ) * NULLIF ( 83, - CAST( + - COALESCE ( - 86, 0 ) AS SIGNED ) * + 20 ) / - 53 * + 43 + 5 ) + - CAST( COUNT( * ) + 28 AS SIGNED ) THEN CASE + 54 WHEN + 14 * CAST( - 89 AS SIGNED ) THEN NULL ELSE 58 END ELSE - 60 * - COUNT( * ) END * + 46
----
157320

skipif mysql # not compatible
query I rowsort label-1365
SELECT + 57 * CASE WHEN NOT ( NULL ) NOT BETWEEN - 49 AND - - COUNT ( * ) * - COUNT ( * ) * - COALESCE ( - - 53, - NULLIF ( + AVG ( + 14 ), + 57 + - + COUNT ( * ) + - - ( 20 ) + + 75 / 66 ) ) + - + COALESCE ( 36, - COALESCE ( - 46, + - CASE - ( + 57 ) WHEN + 95 THEN NULL WHEN + CASE + - 33 WHEN - 28 THEN - 36 + - 52 END THEN 48 * + 4 * - 84 + 34 + - 90 END ) * NULLIF ( 83, - CAST ( + - COALESCE ( - 86, 0 ) AS INTEGER ) * + 20 ) / - 53 * + 43 + 5 ) + - CAST ( COUNT ( * ) + 28 AS INTEGER ) THEN CASE + 54 WHEN + 14 * CAST ( - 89 AS INTEGER ) THEN NULL ELSE 58 END ELSE - 60 * - COUNT ( * ) END * + 46
----
157320

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT DISTINCT MAX( ( + 59 ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT MAX ( ( + 59 ) ) AS col1
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT + 14 + + - COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-1368
SELECT + 14 + + - COUNT ( * ) AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT DISTINCT 31 DIV - 18 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT 31 / - 18 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL + COUNT( * ) + - 89 + - 20
----
-108

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL + COUNT ( * ) + - 89 + - 20
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT - CAST( + 7 AS SIGNED ) - COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1371
SELECT - CAST ( + 7 AS INTEGER ) - COUNT ( * ) AS col0
----
-8

query I rowsort
SELECT ALL + 33 * + 79 * - 33
----
-86031

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1373
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) + + NULLIF ( 44, 13 + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) + + NULLIF ( 44, 13 + + COUNT ( * ) )
----
NULL

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

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

query II rowsort
SELECT ( 61 ), - 89 col2
----
61
-89

query I rowsort
SELECT ALL 7 * + 86 * + - 68 + - ( - ( 29 ) )
----
-40907

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT - - 38 DIV - 8 + + 33 + + 82 - - - 24 * - 6 AS col0
----
255

skipif mysql # not compatible
query I rowsort label-1377
SELECT - - 38 / - 8 + + 33 + + 82 - - - 24 * - 6 AS col0
----
255

query I rowsort
SELECT DISTINCT - 2 * - + ( + + 4 ) + 17
----
25

query I rowsort
SELECT DISTINCT + 88 * + 4 + - + 83 + + 97 AS col2
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL - - 30 * + 82 + + ( COUNT( * ) ) + - 38 AS col0
----
2423

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL - - 30 * + 82 + + ( COUNT ( * ) ) + - 38 AS col0
----
2423

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

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

query I rowsort
SELECT - 90 + - - 45 + - 42 * - + 36 * + + 98 AS col1
----
148131

query I rowsort
SELECT + 91 + - 51 AS col2
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT DISTINCT - MAX( + 20 ) * + - 91 + - 57 - - 42 AS col1
----
1805

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT - MAX ( + 20 ) * + - 91 + - 57 - - 42 AS col1
----
1805

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1386
SELECT ALL - COUNT( DISTINCT + - 24 ) AS col0, COALESCE ( - 6, - - 76 DIV 51 + - - 67 + + 16 + 85 + + + COUNT( * ), 76, - 93 )
----
-1
-6

skipif mysql # not compatible
query II rowsort label-1386
SELECT ALL - COUNT ( DISTINCT + - 24 ) AS col0, COALESCE ( - 6, - - 76 / 51 + - - 67 + + 16 + 85 + + + COUNT ( * ), 76, - 93 )
----
-1
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1387
SELECT + CASE 33 WHEN + NULLIF ( + - 32, + MAX( CAST( - ( - + 34 ) AS SIGNED ) ) ) * + - 70 + + 91 THEN NULL ELSE + COUNT( ALL + 96 ) END + + - 35 + - - 79 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1387
SELECT + CASE 33 WHEN + NULLIF ( + - 32, + MAX ( CAST ( - ( - + 34 ) AS INTEGER ) ) ) * + - 70 + + 91 THEN NULL ELSE + COUNT ( ALL + 96 ) END + + - 35 + - - 79 AS col1
----
45

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

skipif mysql # not compatible
query I rowsort label-1388
SELECT MIN ( ALL - 80 )
----
-80

query I rowsort
SELECT ALL 21 * 51
----
1071

onlyif mysql # DIV for integer division: 
query I rowsort label-1390
SELECT ALL 33 DIV 29
----
1

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL 33 / 29
----
1

query I rowsort
SELECT - 38 + + 0
----
-38

query I rowsort
SELECT - ( - 51 ) col2
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT + NULLIF ( - SUM( DISTINCT 44 ), + - 97 ) - 97 + - 85 - + 18 + - 83 + 92 AS col2
----
-235

skipif mysql # not compatible
query I rowsort label-1394
SELECT + NULLIF ( - SUM ( DISTINCT 44 ), + - 97 ) - 97 + - 85 - + 18 + - 83 + 92 AS col2
----
-235

query I rowsort
SELECT + 91 * + 24 AS col0
----
2184

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT + CASE - - COUNT( * ) WHEN - COALESCE ( + 35, + 89 / COUNT( * ), - + ( - + 89 ), - ( ( - 79 ) ) ) * 33 THEN + COUNT( * ) + - + ( + 26 ) * - + 79 * - 61 WHEN + + 10 THEN 52 END * 94 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT + CASE - - COUNT ( * ) WHEN - COALESCE ( + 35, + 89 / COUNT ( * ), - + ( - + 89 ), - ( ( - 79 ) ) ) * 33 THEN + COUNT ( * ) + - + ( + 26 ) * - + 79 * - 61 WHEN + + 10 THEN 52 END * 94 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL MAX( ALL 12 ) + + 15 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL MAX ( ALL 12 ) + + 15 AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT + ( + 40 ) + - 75 + CAST( + 15 AS SIGNED ) * + - 19 col1
----
-320

skipif mysql # not compatible
query I rowsort label-1399
SELECT + ( + 40 ) + - 75 + CAST ( + 15 AS INTEGER ) * + - 19 col1
----
-320

query I rowsort
SELECT ALL 90 * - 97 AS col1
----
-8730

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1401
SELECT + 61 + 82 - + - MAX( ALL CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 61 + 82 - + - MAX ( ALL CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT DISTINCT 84 + + 77 + - 93 * 67 + + MAX( - - ( - 65 ) ) * + + 56 * ( + 98 ) AS col2
----
-362790

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT 84 + + 77 + - 93 * 67 + + MAX ( - - ( - 65 ) ) * + + 56 * ( + 98 ) AS col2
----
-362790

query I rowsort
SELECT ALL 19 + 17
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT - 65 * + - CASE - 34 WHEN 79 THEN NULL WHEN + 18 THEN NULL WHEN - - 90 + - 88 THEN 97 WHEN + 51 THEN + 89 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1405
SELECT - 65 * + - CASE - 34 WHEN 79 THEN NULL WHEN + 18 THEN NULL WHEN - - 90 + - 88 THEN 97 WHEN + 51 THEN + 89 ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL + CASE - COALESCE ( 35, 98, + 29 ) WHEN 90 THEN 31 WHEN - COUNT( * ) + + 56 THEN + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + CASE - COALESCE ( 35, 98, + 29 ) WHEN 90 THEN 31 WHEN - COUNT ( * ) + + 56 THEN + 52 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1407
SELECT 88 DIV 65 + 84 + + 26 * 12 DIV 21 DIV - 86 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-1407
SELECT 88 / 65 + 84 + + 26 * 12 / 21 / - 86 AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT ALL + 12 DIV - 63 + + 29 * 75 + - 47 + + - 15 * - 16
----
2368

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + 12 / - 63 + + 29 * 75 + - 47 + + - 15 * - 16
----
2368

onlyif mysql # DIV for integer division: 
query I rowsort label-1409
SELECT ALL 68 DIV - - 38
----
1

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL 68 / - - 38
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT DISTINCT + COUNT( DISTINCT - 84 ) * - COUNT( * ) AS col0, - NULLIF ( + COUNT( * ), ( + 31 ) * - COUNT( * ) * + - 37 * + - ( + + 64 ) + 72 * 48 * 30 / + 35 * + 31 ) * - 62
----
-1
62

skipif mysql # not compatible
query II rowsort label-1410
SELECT DISTINCT + COUNT ( DISTINCT - 84 ) * - COUNT ( * ) AS col0, - NULLIF ( + COUNT ( * ), ( + 31 ) * - COUNT ( * ) * + - 37 * + - ( + + 64 ) + 72 * 48 * 30 / + 35 * + 31 ) * - 62
----
-1
62

query I rowsort
SELECT - - 36 * + 57
----
2052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1412
SELECT 83, CAST( - COUNT( * ) AS SIGNED ) + + ( + + 40 ) * 24 + ( - CAST( NULL AS SIGNED ) ) AS col1
----
83
NULL

skipif mysql # not compatible
query II rowsort label-1412
SELECT 83, CAST ( - COUNT ( * ) AS INTEGER ) + + ( + + 40 ) * 24 + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
83
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1413
SELECT ( - + 19 ) * - 73 * + CAST( NULL AS SIGNED ) * - 89 + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1413
SELECT ( - + 19 ) * - 73 * + CAST ( NULL AS INTEGER ) * - 89 + - 35
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1416
SELECT - 28 DIV 37 * - 9 * + 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1416
SELECT - 28 / 37 * - 9 * + 54 AS col0
----
0

query I rowsort
SELECT - 37 + + + 11
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1418
SELECT + - COALESCE ( - 9, + + ( - + 13 ), - + 21 ) * - COUNT( - - ( - CAST( 65 AS SIGNED ) ) ) DIV ( - COUNT( * ) ) * - NULLIF ( + COUNT( * ), - 27 * - 77 ) + - + 42 + - - COUNT( DISTINCT 19 ) * 93 - 37 * + 10
----
-328

skipif mysql # not compatible
query I rowsort label-1418
SELECT + - COALESCE ( - 9, + + ( - + 13 ), - + 21 ) * - COUNT ( - - ( - CAST ( 65 AS INTEGER ) ) ) / ( - COUNT ( * ) ) * - NULLIF ( + COUNT ( * ), - 27 * - 77 ) + - + 42 + - - COUNT ( DISTINCT 19 ) * 93 - 37 * + 10
----
-328

query I rowsort
SELECT ALL 81 * 76 * + - 76
----
-467856

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1420
SELECT ALL - 38, + 74 DIV + + 45 + + 1 * - + COUNT( * ) AS col1
----
-38
0

skipif mysql # not compatible
query II rowsort label-1420
SELECT ALL - 38, + 74 / + + 45 + + 1 * - + COUNT ( * ) AS col1
----
-38
0

query I rowsort
SELECT DISTINCT - 50 * - 95 * + 14 AS col0
----
66500

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

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

query I rowsort
SELECT 83 * + 64 AS col0
----
5312

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT 69 * + + 29 * + COUNT( * ) + MAX( ALL - 50 ) AS col1
----
1951

skipif mysql # not compatible
query I rowsort label-1424
SELECT 69 * + + 29 * + COUNT ( * ) + MAX ( ALL - 50 ) AS col1
----
1951

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT DISTINCT 44 + COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT 44 + COUNT ( * ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT DISTINCT COUNT( * ) + + - 96 * 69 AS col1
----
-6623

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT COUNT ( * ) + + - 96 * 69 AS col1
----
-6623

query II rowsort
SELECT DISTINCT 74 AS col1, - 85 * 28 AS col1
----
74
-2380

query I rowsort
SELECT ALL 31 * - 48 AS col2
----
-1488

query II rowsort
SELECT 99 * + 14, - 39 * - + 9 AS col1
----
1386
351

onlyif mysql # aggregate syntax: 
query II rowsort label-1430
SELECT ALL - 6 + 67 AS col1, NULLIF ( + 21, - + COUNT( * ) ) * + COUNT( * )
----
61
21

skipif mysql # not compatible
query II rowsort label-1430
SELECT ALL - 6 + 67 AS col1, NULLIF ( + 21, - + COUNT ( * ) ) * + COUNT ( * )
----
61
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT MAX( + 72 ) - - 4 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1431
SELECT MAX ( + 72 ) - - 4 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT 89 + - - ( + - 99 ) + - 81 + COUNT( * ) * + COALESCE ( - COALESCE ( 22, 93 + - NULLIF ( - 33, - - ( + 34 ) ) ), - 28, + 94 ) * + COUNT( * ) AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-1432
SELECT 89 + - - ( + - 99 ) + - 81 + COUNT ( * ) * + COALESCE ( - COALESCE ( 22, 93 + - NULLIF ( - 33, - - ( + 34 ) ) ), - 28, + 94 ) * + COUNT ( * ) AS col1
----
-113

query II rowsort
SELECT ALL 90 AS col2, - 17
----
90
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1434
SELECT - 91 col2, - 15 * - + CAST( - + 75 AS SIGNED ) AS col0
----
-91
-1125

skipif mysql # not compatible
query II rowsort label-1434
SELECT - 91 col2, - 15 * - + CAST ( - + 75 AS INTEGER ) AS col0
----
-91
-1125

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

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

query II rowsort
SELECT - 94, + 19 + - 98 AS col0
----
-94
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1438
SELECT ALL COUNT( * ) - + + CASE - COUNT( * ) WHEN + 69 THEN - 11 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL COUNT ( * ) - + + CASE - COUNT ( * ) WHEN + 69 THEN - 11 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1439
SELECT 8 - - ( - CASE - 76 WHEN 63 THEN NULL ELSE - 40 + - - COUNT( * ) DIV - COUNT( * ) END )
----
49

skipif mysql # not compatible
query I rowsort label-1439
SELECT 8 - - ( - CASE - 76 WHEN 63 THEN NULL ELSE - 40 + - - COUNT ( * ) / - COUNT ( * ) END )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL MAX( ALL + 84 ) * - 64 + 63
----
-5313

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL MAX ( ALL + 84 ) * - 64 + 63
----
-5313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1441
SELECT ALL ( 43 ) * MIN( + - 3 ) + - - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) * - - 27 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL ( 43 ) * MIN ( + - 3 ) + - - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) * - - 27 col1
----
NULL

query I rowsort
SELECT 54 - + + 43 * + 97
----
-4117

onlyif mysql # aggregate syntax: 
query II rowsort label-1443
SELECT ALL - + 2 AS col0, COUNT( * ) * + - ( MAX( ALL + + 10 ) ) + - 63
----
-2
-73

skipif mysql # not compatible
query II rowsort label-1443
SELECT ALL - + 2 AS col0, COUNT ( * ) * + - ( MAX ( ALL + + 10 ) ) + - 63
----
-2
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT + CAST( + + 92 AS SIGNED ) + - 42
----
50

skipif mysql # not compatible
query I rowsort label-1444
SELECT + CAST ( + + 92 AS INTEGER ) + - 42
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1445
SELECT - COUNT( * ) + 81 * 78 - - + CAST( - 76 AS SIGNED ) AS col1
----
6241

skipif mysql # not compatible
query I rowsort label-1445
SELECT - COUNT ( * ) + 81 * 78 - - + CAST ( - 76 AS INTEGER ) AS col1
----
6241

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

query I rowsort
SELECT + 35 * - + 51 - - 39 + - 72
----
-1818

query I rowsort
SELECT ALL - 58 * + 25 AS col1
----
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT - ( + 18 ) * COUNT( * ) + 77
----
59

skipif mysql # not compatible
query I rowsort label-1449
SELECT - ( + 18 ) * COUNT ( * ) + 77
----
59

query I rowsort
SELECT DISTINCT - COALESCE ( - 52, - 25, - + 77 )
----
52

query I rowsort
SELECT 64 * - 66 AS col2
----
-4224

query I rowsort
SELECT ALL - 37 + + 99 AS col0
----
62

query I rowsort
SELECT 80 + + - 65
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL + 47 * + COUNT( * ) * + 26 AS col2
----
1222

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL + 47 * + COUNT ( * ) * + 26 AS col2
----
1222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT 99 + + + ( - + CAST( NULL AS SIGNED ) ) + 61 - ( - COUNT( * ) ) + + 86 - - + COUNT( * ) * + 40 * - + 86 / - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT 99 + + + ( - + CAST ( NULL AS INTEGER ) ) + 61 - ( - COUNT ( * ) ) + + 86 - - + COUNT ( * ) * + 40 * - + 86 / - 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1456
SELECT ALL + 74 + - - 53 * CAST( + 50 AS SIGNED )
----
2724

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL + 74 + - - 53 * CAST ( + 50 AS INTEGER )
----
2724

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT DISTINCT - 20 + 47 + + 79 * + SUM( DISTINCT 64 ) AS col0
----
5083

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT - 20 + 47 + + 79 * + SUM ( DISTINCT 64 ) AS col0
----
5083

query I rowsort
SELECT 79 + 33
----
112

query I rowsort
SELECT 15 - 1 AS col0
----
14

query I rowsort
SELECT DISTINCT - 2 * + 2 * 39 AS col0
----
-156

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1462
SELECT 89 + 76 + - - COUNT( * ) AS col2, 30 * 38 + 23
----
166
1163

skipif mysql # not compatible
query II rowsort label-1462
SELECT 89 + 76 + - - COUNT ( * ) AS col2, 30 * 38 + 23
----
166
1163

onlyif mysql # aggregate syntax: 
query II rowsort label-1463
SELECT DISTINCT SUM( - + CASE WHEN ( NULL ) < + 53 THEN + 34 * + - 45 ELSE 36 * + ( - - 92 ) END ) col1, - COUNT( * )
----
-3312
-1

skipif mysql # not compatible
query II rowsort label-1463
SELECT DISTINCT SUM ( - + CASE WHEN ( NULL ) < + 53 THEN + 34 * + - 45 ELSE 36 * + ( - - 92 ) END ) col1, - COUNT ( * )
----
-3312
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT ALL - ( - 3 ) - + 16 + + 59 * - + COALESCE ( + 36, 38 * 33 - SUM( - 51 ) + - 82 + - + 41 DIV - 32 * + - 28 ) * + 27 AS col1
----
-57361

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL - ( - 3 ) - + 16 + + 59 * - + COALESCE ( + 36, 38 * 33 - SUM ( - 51 ) + - 82 + - + 41 / - 32 * + - 28 ) * + 27 AS col1
----
-57361

onlyif mysql # aggregate syntax: 
query II rowsort label-1465
SELECT DISTINCT - 3 * + + 31 AS col1, 83 * - - COUNT( * ) * - 49 + - 0 + - - COUNT( * )
----
-93
-4066

skipif mysql # not compatible
query II rowsort label-1465
SELECT DISTINCT - 3 * + + 31 AS col1, 83 * - - COUNT ( * ) * - 49 + - 0 + - - COUNT ( * )
----
-93
-4066

query I rowsort
SELECT COALESCE ( - + ( - 81 ), + - 95 ) + 11 - + 1 * - 94 AS col1
----
186

query I rowsort
SELECT ALL NULLIF ( - 48, 29 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT + 8 * 33 * + COUNT( * ) AS col2
----
264

skipif mysql # not compatible
query I rowsort label-1468
SELECT + 8 * 33 * + COUNT ( * ) AS col2
----
264

query I rowsort
SELECT - 17 + + - 75 AS col0
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL + SUM( ALL + 81 ) * 6 + + - 23
----
463

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + SUM ( ALL + 81 ) * 6 + + - 23
----
463

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT DISTINCT 71 * - 22 * - ( + - COUNT( * ) )
----
-1562

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT 71 * - 22 * - ( + - COUNT ( * ) )
----
-1562

query I rowsort
SELECT DISTINCT + - 98 AS col1
----
-98

query I rowsort
SELECT - + 81 * 23 * 45 - 62 AS col0
----
-83897

query II rowsort
SELECT ALL + - ( - + 27 ), 3 * 81 AS col0
----
27
243

query I rowsort
SELECT DISTINCT 35 * + 25 + - 14
----
861

query II rowsort
SELECT ALL + 9 AS col2, + 97
----
9
97

query I rowsort
SELECT ALL 4 * - 97 * + 58 + - 17 AS col0
----
-22521

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1479
SELECT + NULLIF ( 32, + 21 ) DIV - COUNT( ( - 45 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-1479
SELECT + NULLIF ( 32, + 21 ) / - COUNT ( ( - 45 ) )
----
-32

query I rowsort
SELECT - 41 * 49 + + - 64
----
-2073

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

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

query I rowsort
SELECT - 8 + + ( 3 ) + + 73 * - + 5 AS col0
----
-370

query I rowsort
SELECT - ( + 31 ) col0
----
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-1484
SELECT - 96 DIV 79 * 99 AS col2, - 93 AS col0
----
-99
-93

skipif mysql # not compatible
query II rowsort label-1484
SELECT - 96 / 79 * 99 AS col2, - 93 AS col0
----
-99
-93

query I rowsort
SELECT - 72 * - 25 AS col2
----
1800

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT - 30 DIV + + 60
----
0

skipif mysql # not compatible
query I rowsort label-1486
SELECT - 30 / + + 60
----
0

query I rowsort
SELECT DISTINCT + - 92 * 11 + + 95 AS col0
----
-917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1488
SELECT ALL - 29 * - 46 + + COUNT( * ) / - CAST( NULL AS SIGNED ), 60 AS col1
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1488
SELECT ALL - 29 * - 46 + + COUNT ( * ) / - CAST ( NULL AS INTEGER ), 60 AS col1
----
NULL
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1489
SELECT - COUNT( * ) + + - NULLIF ( - 66, + 30 ) + + 0 + - ( 17 ) * 11 DIV - 63 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-1489
SELECT - COUNT ( * ) + + - NULLIF ( - 66, + 30 ) + + 0 + - ( 17 ) * 11 / - 63 AS col1
----
67

query I rowsort
SELECT - 6 * + - 5 AS col0
----
30

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

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

query II rowsort
SELECT - + 63 AS col1, + 23 * - 36 AS col0
----
-63
-828

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

query I rowsort
SELECT ALL + 24 * + + 55 + - 30 + - 66 AS col0
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT - - COUNT( * ) - 72 * 47 AS col0
----
-3383

skipif mysql # not compatible
query I rowsort label-1495
SELECT - - COUNT ( * ) - 72 * 47 AS col0
----
-3383

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1497
SELECT - 62 DIV - 79 + - 70 + - + 15 + + 69 * + 24
----
1571

skipif mysql # not compatible
query I rowsort label-1497
SELECT - 62 / - 79 + - 70 + - + 15 + + 69 * + 24
----
1571

query I rowsort
SELECT - 61 + 76 * 10
----
699

onlyif mysql # DIV for integer division: 
query I rowsort label-1499
SELECT DISTINCT - 76 DIV + + 28 + + + ( + - 35 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT - 76 / + + 28 + + + ( + - 35 ) AS col0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1500
SELECT + COUNT( * ) - 39 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT + COUNT ( * ) - 39 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1501
SELECT ALL 63 DIV - CASE - 46 WHEN - 61 THEN NULL WHEN + 62 DIV - 41 THEN NULL ELSE 61 END + + 12
----
11

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL 63 / - CASE - 46 WHEN - 61 THEN NULL WHEN + 62 / - 41 THEN NULL ELSE 61 END + + 12
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT DISTINCT COUNT( * ) * - SUM( 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT COUNT ( * ) * - SUM ( 97 )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1503
SELECT DISTINCT COUNT( * ) DIV + - 23 + + 12 DIV + SUM( - 34 )
----
0

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT COUNT ( * ) / + - 23 + + 12 / + SUM ( - 34 )
----
0

query I rowsort
SELECT + COALESCE ( 37, - - 81 ) AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1505
SELECT DISTINCT NULLIF ( - + 68, CAST( NULL AS DECIMAL ) ) * COUNT( * ) + + COALESCE ( NULLIF ( 94, + + 71 - + + COUNT( * ) + - + ( 39 ) / + 80 - MAX( ALL - - ( + + 51 ) ) / 19 * - CASE - 20 WHEN + COALESCE ( + 23, - - COUNT( * ) + + 55 ) THEN 83 / - - 89 * + NULLIF ( 13, + 3 ) WHEN 72 / + COUNT( * ) THEN - + MAX( DISTINCT 72 ) + - 53 + - ( - 62 ) ELSE NULL END - - COALESCE ( + 33, + ( 17 ) + + - 65 - + CAST( NULL AS SIGNED ) / - 92 + 16 ) ), - 17 )
----
26

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT NULLIF ( - + 68, CAST ( NULL AS REAL ) ) * COUNT ( * ) + + COALESCE ( NULLIF ( 94, + + 71 - + + COUNT ( * ) + - + ( 39 ) / + 80 - MAX ( ALL - - ( + + 51 ) ) / 19 * - CASE - 20 WHEN + COALESCE ( + 23, - - COUNT ( * ) + + 55 ) THEN 83 / - - 89 * + NULLIF ( 13, + 3 ) WHEN 72 / + COUNT ( * ) THEN - + MAX ( DISTINCT 72 ) + - 53 + - ( - 62 ) ELSE NULL END - - COALESCE ( + 33, + ( 17 ) + + - 65 - + CAST ( NULL AS INTEGER ) / - 92 + 16 ) ), - 17 )
----
26

query I rowsort
SELECT ALL + 20 * 74 * - 44 AS col2
----
-65120

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT ( - NULLIF ( - COUNT( * ), ( - - 24 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1507
SELECT ( - NULLIF ( - COUNT ( * ), ( - - 24 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT 11 * + - 99 * - + 72 + + COUNT( * ) + - 88 + - + ( + 91 ) * - 18
----
79959

skipif mysql # not compatible
query I rowsort label-1508
SELECT 11 * + - 99 * - + 72 + + COUNT ( * ) + - 88 + - + ( + 91 ) * - 18
----
79959

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1510
SELECT DISTINCT - ( 84 ) * - 35 + - - 71 - - + 73 + - SUM( DISTINCT + 91 ) - - 50 DIV - - 39 AS col2
----
2994

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - ( 84 ) * - 35 + - - 71 - - + 73 + - SUM ( DISTINCT + 91 ) - - 50 / - - 39 AS col2
----
2994

query I rowsort
SELECT CASE + 19 WHEN - 38 THEN - 78 / + 40 + - + 40 END AS col1
----
NULL

query II rowsort
SELECT + 55 * 64, 81 AS col1
----
3520
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1513
SELECT + 72 + 55 AS col1, + CAST( NULL AS DECIMAL ) - - - COUNT( * )
----
127
NULL

skipif mysql # not compatible
query II rowsort label-1513
SELECT + 72 + 55 AS col1, + CAST ( NULL AS REAL ) - - - COUNT ( * )
----
127
NULL

query I rowsort
SELECT 48 * - 40 + - 65 * - 51 AS col2
----
1395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1515
SELECT ALL COALESCE ( - 77, - + 42 + ( 30 ) + - COALESCE ( + MAX( COALESCE ( + 60, 65 + + - 24 - 94 DIV - 60 ) ), + 90 ) + 22 ) * + + 77 AS col2
----
-5929

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL COALESCE ( - 77, - + 42 + ( 30 ) + - COALESCE ( + MAX ( COALESCE ( + 60, 65 + + - 24 - 94 / - 60 ) ), + 90 ) + 22 ) * + + 77 AS col2
----
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT + COUNT( * ) + 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1516
SELECT + COUNT ( * ) + 26 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT + 36 + + COUNT( 31 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-1517
SELECT + 36 + + COUNT ( 31 ) AS col0
----
37

query I rowsort
SELECT DISTINCT ( - 70 ) * 22 * 77 * + 41
----
-4861780

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT ALL COUNT( 4 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL COUNT ( 4 ) AS col2
----
1

query I rowsort
SELECT + - 83 + + 74 + + 76
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT 83 + 61 DIV 68
----
83

skipif mysql # not compatible
query I rowsort label-1521
SELECT 83 + 61 / 68
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1522
SELECT - MAX( + 35 ) DIV - + 40
----
0

skipif mysql # not compatible
query I rowsort label-1522
SELECT - MAX ( + 35 ) / - + 40
----
0

query I rowsort
SELECT + NULLIF ( + 49, - + 97 ) * + - ( + - 68 )
----
3332

onlyif mysql # DIV for integer division: 
query I rowsort label-1524
SELECT + 38 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-1524
SELECT + 38 / + 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1525
SELECT + 12 + - 27 col0, NULLIF ( COALESCE ( - 17, + ( - 74 ) * + - 41 ), COALESCE ( 35, - COUNT( * ), + - 75 ) ) - + 9 + - 38
----
-15
-64

skipif mysql # not compatible
query II rowsort label-1525
SELECT + 12 + - 27 col0, NULLIF ( COALESCE ( - 17, + ( - 74 ) * + - 41 ), COALESCE ( 35, - COUNT ( * ), + - 75 ) ) - + 9 + - 38
----
-15
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT 63 + + COALESCE ( + MAX( + ( + + ( - 31 ) ) ), 52 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1526
SELECT 63 + + COALESCE ( + MAX ( + ( + + ( - 31 ) ) ), 52 ) AS col0
----
32

query I rowsort
SELECT ALL + 53 + - 63 AS col1
----
-10

query I rowsort
SELECT DISTINCT + 95 + + COALESCE ( + 79, - 12 ) * - 72 * - + 21 * - 89 AS col1
----
-10630777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1529
SELECT - 79 + CASE ( 22 ) WHEN - 75 THEN NULL WHEN - + 60 THEN NULL WHEN - + COUNT( * ) THEN + NULLIF ( - 32, CASE - - AVG ( + 98 ) WHEN CASE COALESCE ( - 76, - COUNT( DISTINCT + 30 ) * - 91 * 77, 92 ) WHEN + 23 * + 49 + + AVG ( ALL 99 ) + - 90 + - 98 + + 41 * + 58 * + + 63 + - - 32 * CAST( NULL AS SIGNED ) THEN - 1 * - 2 END + - 41 THEN NULL WHEN NULLIF ( - + 58, - 57 * + COUNT( * ) ) THEN + 0 + 2 ELSE NULL END ) END + - - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT - 79 + CASE ( 22 ) WHEN - 75 THEN NULL WHEN - + 60 THEN NULL WHEN - + COUNT ( * ) THEN + NULLIF ( - 32, CASE - - AVG ( + 98 ) WHEN CASE COALESCE ( - 76, - COUNT ( DISTINCT + 30 ) * - 91 * 77, 92 ) WHEN + 23 * + 49 + + AVG ( ALL 99 ) + - 90 + - 98 + + 41 * + 58 * + + 63 + - - 32 * CAST ( NULL AS INTEGER ) THEN - 1 * - 2 END + - 41 THEN NULL WHEN NULLIF ( - + 58, - 57 * + COUNT ( * ) ) THEN + 0 + 2 ELSE NULL END ) END + - - 92
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1530
SELECT DISTINCT + 4 DIV - - 75 AS col2, 24 + + 13 + 57 * COUNT( * )
----
0
94

skipif mysql # not compatible
query II rowsort label-1530
SELECT DISTINCT + 4 / - - 75 AS col2, 24 + + 13 + 57 * COUNT ( * )
----
0
94

query I rowsort
SELECT - 32 * - 15 + - 33 AS col2
----
447

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL COALESCE ( + 5, - COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL COALESCE ( + 5, - COUNT ( * ) )
----
5

query II rowsort
SELECT ALL + + 43 + 53 AS col0, 44
----
96
44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1535
SELECT + - COALESCE ( - CAST( - 74 AS SIGNED ), - NULLIF ( 71, 36 ), 81 )
----
-74

skipif mysql # not compatible
query I rowsort label-1535
SELECT + - COALESCE ( - CAST ( - 74 AS INTEGER ), - NULLIF ( 71, 36 ), 81 )
----
-74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT MAX( + + 83 ) * + 95 col2
----
7885

skipif mysql # not compatible
query I rowsort label-1537
SELECT MAX ( + + 83 ) * + 95 col2
----
7885

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT ALL + 88 + + + COUNT( * ) + - ( + 99 ) * - - 26 + 40
----
-2445

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL + 88 + + + COUNT ( * ) + - ( + 99 ) * - - 26 + 40
----
-2445

query I rowsort
SELECT 24 + 40
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT COALESCE ( COUNT( * ), - - 61 + + 45 * - 28, 51 ) + 62
----
63

skipif mysql # not compatible
query I rowsort label-1540
SELECT COALESCE ( COUNT ( * ), - - 61 + + 45 * - 28, 51 ) + 62
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1541
SELECT ALL - 61 / - CAST( - 94 AS SIGNED ) * - ( + 5 ) + - - COALESCE ( 59, - COUNT( * ) + + + 80 ) - + 67 * CAST( NULL AS SIGNED ) AS col1, 20
----
NULL
20

skipif mysql # not compatible
query II rowsort label-1541
SELECT ALL - 61 / - CAST ( - 94 AS INTEGER ) * - ( + 5 ) + - - COALESCE ( 59, - COUNT ( * ) + + + 80 ) - + 67 * CAST ( NULL AS INTEGER ) AS col1, 20
----
NULL
20

query I rowsort
SELECT ALL 67 * + 15
----
1005

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT DISTINCT - COUNT( * ) * - 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT - COUNT ( * ) * - 75 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1544
SELECT COUNT( * ) * - 71 DIV + 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1544
SELECT COUNT ( * ) * - 71 / + 41 AS col1
----
-1

query I rowsort
SELECT ( + 1 ) * - 97 AS col1
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT COALESCE ( + 36, 91 ) * + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1547
SELECT COALESCE ( + 36, 91 ) * + COUNT ( * ) AS col2
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1548
SELECT DISTINCT + 99 + - 5 DIV - 91
----
99

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT + 99 + - 5 / - 91
----
99

query I rowsort
SELECT DISTINCT 94 * 18 AS col1
----
1692

query I rowsort
SELECT ALL 53 + 77 AS col2
----
130

query I rowsort
SELECT 58 * 98
----
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT COUNT( * ) + + 11 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1552
SELECT COUNT ( * ) + + 11 AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1553
SELECT ALL 93 + - 99 * ( 74 DIV 4 + + COALESCE ( - COALESCE ( 17, - COUNT( * ) DIV COUNT( * ) + + 13, - 88 ), - COUNT( * ) * ( ( ( + 62 ) ) ) ) )
----
-6

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL 93 + - 99 * ( 74 / 4 + + COALESCE ( - COALESCE ( 17, - COUNT ( * ) / COUNT ( * ) + + 13, - 88 ), - COUNT ( * ) * ( ( ( + 62 ) ) ) ) )
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1554
SELECT 48 + 95 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1554
SELECT 48 + 95 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 84 * 32
----
2688

query I rowsort
SELECT CASE WHEN NOT NULL <= 37 THEN 28 END + + 4 * ( + 71 * 63 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL 87 + - COUNT( ALL COALESCE ( 67, + 83 ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL 87 + - COUNT ( ALL COALESCE ( 67, + 83 ) ) AS col2
----
86

query I rowsort
SELECT ALL 57 + 81
----
138

query I rowsort
SELECT DISTINCT 16 + 23
----
39

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

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

query I rowsort
SELECT ALL + 92 + 16 AS col1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1562
SELECT CAST( + 59 AS SIGNED ) - + 35 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1562
SELECT CAST ( + 59 AS INTEGER ) - + 35 AS col2
----
24

query I rowsort
SELECT 93 + 93
----
186

query I rowsort
SELECT ALL - 20 * + 9
----
-180

query I rowsort
SELECT 99 * ( 44 ) AS col0
----
4356

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT DISTINCT 45 DIV 93 col2
----
0

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT 45 / 93 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT + 73 DIV 35 + 33 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1567
SELECT + 73 / 35 + 33 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT MIN( ALL 8 ) col0
----
8

skipif mysql # not compatible
query I rowsort label-1568
SELECT MIN ( ALL 8 ) col0
----
8

query I rowsort
SELECT 28 - - 24 * 39 AS col0
----
964

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ALL - CASE 39 WHEN 74 * 47 THEN + 41 WHEN - MAX( ALL + 26 ) * COUNT( DISTINCT 85 + 24 ) THEN NULL WHEN COUNT( * ) THEN + 69 END * + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL - CASE 39 WHEN 74 * 47 THEN + 41 WHEN - MAX ( ALL + 26 ) * COUNT ( DISTINCT 85 + 24 ) THEN NULL WHEN COUNT ( * ) THEN + 69 END * + 70
----
NULL

query I rowsort
SELECT 99 * - 74 AS col0
----
-7326

query I rowsort
SELECT DISTINCT 2 * + 60
----
120

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

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

query I rowsort
SELECT ALL - 57 * 78
----
-4446

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT DISTINCT - COUNT( - 56 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT - COUNT ( - 56 ) col0
----
-1

query I rowsort
SELECT 27 + 22
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1577
SELECT ALL - CAST( - 90 AS SIGNED ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL - CAST ( - 90 AS INTEGER ) AS col2
----
90

query I rowsort
SELECT 4 + 71
----
75

query I rowsort
SELECT 85 * 84 + + 53 AS col1
----
7193

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT DISTINCT - 12 DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT - 12 / 24
----
0

query I rowsort
SELECT - 89 + - ( + 62 + 40 )
----
-191

query I rowsort
SELECT + 54 + + 64 col1
----
118

query I rowsort
SELECT ALL - ( + 47 ) * + ( + 33 )
----
-1551

onlyif mysql # DIV for integer division: 
query I rowsort label-1584
SELECT - 65 DIV - 11 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1584
SELECT - 65 / - 11 AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT DISTINCT + 28 + 27 DIV 61
----
28

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT + 28 + 27 / 61
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1586
SELECT DISTINCT - - ( + 33 ) DIV + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT - - ( + 33 ) / + COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL + 6 + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + 6 + COUNT ( * )
----
7

query I rowsort
SELECT - - 1 + 12 AS col2
----
13

query I rowsort
SELECT ALL - 95 + 13 AS col0
----
-82

query I rowsort
SELECT DISTINCT - 79 + + 37
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL + ( ( + 37 ) ) + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + ( ( + 37 ) ) + - COUNT ( * )
----
36

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

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

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

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

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

query I rowsort
SELECT + 83 + 44 AS col0
----
127

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

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

query I rowsort
SELECT DISTINCT - 52 - 27
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT + - ( 90 ) + 34 DIV - ( 20 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-1598
SELECT + - ( 90 ) + 34 / - ( 20 ) AS col2
----
-91

query I rowsort
SELECT DISTINCT + 80 * 21
----
1680

onlyif mysql # DIV for integer division: 
query I rowsort label-1600
SELECT + 30 DIV + 23 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1600
SELECT + 30 / + 23 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT + 15 * - + NULLIF ( - 60, ( + MAX( ALL 34 ) ) ) AS col1
----
900

skipif mysql # not compatible
query I rowsort label-1601
SELECT + 15 * - + NULLIF ( - 60, ( + MAX ( ALL 34 ) ) ) AS col1
----
900

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

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

query I rowsort
SELECT + 91 + + 89 AS col1
----
180

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

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

query I rowsort
SELECT - 85 * + 43 * 9
----
-32895

query I rowsort
SELECT DISTINCT 3 * - 3 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1607
SELECT ALL + 98 DIV - - ( 3 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + 98 / - - ( 3 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT - 0 * + MIN( - 27 ) * 51 + 23
----
23

skipif mysql # not compatible
query I rowsort label-1608
SELECT - 0 * + MIN ( - 27 ) * 51 + 23
----
23

query I rowsort
SELECT - 25 * - + 97
----
2425

query I rowsort
SELECT ALL - 14 * + 15 + 97
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT + 96 - + + CASE - CASE 90 WHEN - 56 - 13 / 79 THEN + 54 END WHEN + 87 THEN NULL WHEN COUNT( 17 ) THEN + 77 + - 53 WHEN 38 THEN NULL END * 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT + 96 - + + CASE - CASE 90 WHEN - 56 - 13 / 79 THEN + 54 END WHEN + 87 THEN NULL WHEN COUNT ( 17 ) THEN + 77 + - 53 WHEN 38 THEN NULL END * 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT + 13 DIV - + 51 * - COUNT( DISTINCT + 99 * 8 )
----
0

skipif mysql # not compatible
query I rowsort label-1612
SELECT + 13 / - + 51 * - COUNT ( DISTINCT + 99 * 8 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT 99 * 87 - COUNT( * )
----
8612

skipif mysql # not compatible
query I rowsort label-1613
SELECT 99 * 87 - COUNT ( * )
----
8612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT ALL - CAST( NULL AS SIGNED ) * - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL - CAST ( NULL AS INTEGER ) * - 64 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT ALL COUNT( 17 ) * + 43 + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL COUNT ( 17 ) * + 43 + COUNT ( * )
----
44

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

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

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

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

query I rowsort
SELECT - + 30 * - ( - ( 63 ) ) + - 88 AS col1
----
-1978

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1620
SELECT - + 72 - - 37 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1620
SELECT - + 72 - - 37 + CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL - 75 * - COUNT( 93 ) + + 56 + - 41 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL - 75 * - COUNT ( 93 ) + + 56 + - 41 AS col1
----
90

query I rowsort
SELECT - ( + 25 ) * ( 36 ) AS col0
----
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT - + 14 DIV 29 col1
----
0

skipif mysql # not compatible
query I rowsort label-1624
SELECT - + 14 / 29 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT DISTINCT + 92 * - 4 - + COUNT( * ) * + MAX( - 50 + COALESCE ( + 8, - 79 ) ) AS col1
----
-326

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT + 92 * - 4 - + COUNT ( * ) * + MAX ( - 50 + COALESCE ( + 8, - 79 ) ) AS col1
----
-326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1626
SELECT DISTINCT + ( MAX( DISTINCT + ( 11 ) ) ) * 15 - + COALESCE ( + 42, - 48 ) DIV + CAST( + 26 AS SIGNED ) col2
----
164

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT + ( MAX ( DISTINCT + ( 11 ) ) ) * 15 - + COALESCE ( + 42, - 48 ) / + CAST ( + 26 AS INTEGER ) col2
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT - + MIN( ALL - 5 ) * 66
----
330

skipif mysql # not compatible
query I rowsort label-1627
SELECT - + MIN ( ALL - 5 ) * 66
----
330

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT ALL + - 45 DIV - COALESCE ( - 42, 29, - 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL + - 45 / - COALESCE ( - 42, 29, - 96 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT DISTINCT 83 - COUNT( DISTINCT - 95 ) + - 78 DIV + ( + 20 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT 83 - COUNT ( DISTINCT - 95 ) + - 78 / + ( + 20 ) AS col0
----
79

query I rowsort
SELECT DISTINCT + + 94 * + - 31 AS col2
----
-2914

query I rowsort
SELECT + 75 * 8 AS col0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT - COUNT( * ) + 30 * 68 col0
----
2039

skipif mysql # not compatible
query I rowsort label-1632
SELECT - COUNT ( * ) + 30 * 68 col0
----
2039

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1633
SELECT + 84 DIV - MIN( 16 )
----
-5

skipif mysql # not compatible
query I rowsort label-1633
SELECT + 84 / - MIN ( 16 )
----
-5

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

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

query II rowsort
SELECT 41 col1, 12 AS col1
----
41
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT ALL CAST( CASE - 33 WHEN ( MIN( + 21 ) ) * 78 THEN 97 + 35 ELSE 32 + 54 END AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL CAST ( CASE - 33 WHEN ( MIN ( + 21 ) ) * 78 THEN 97 + 35 ELSE 32 + 54 END AS INTEGER ) AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1637
SELECT ALL CAST( NULL AS SIGNED ), ( - - 75 ) * 62 - 47 * 52 AS col1
----
NULL
2206

skipif mysql # not compatible
query II rowsort label-1637
SELECT ALL CAST ( NULL AS INTEGER ), ( - - 75 ) * 62 - 47 * 52 AS col1
----
NULL
2206

query II rowsort
SELECT ALL 8 AS col0, + 53 AS col0
----
8
53

query II rowsort
SELECT ALL 61 AS col0, + 94 * + 83
----
61
7802

query I rowsort
SELECT + 26 * - 25 AS col0
----
-650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1641
SELECT COUNT( * ) DIV + 82 + + - 14 - + 92 AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-1641
SELECT COUNT ( * ) / + 82 + + - 14 - + 92 AS col1
----
-106

query I rowsort
SELECT ALL 90 + - 56 AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1643
SELECT 30 DIV + 42 + - MIN( - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-1643
SELECT 30 / + 42 + - MIN ( - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT COUNT( * ) + 9 * + 16
----
145

skipif mysql # not compatible
query I rowsort label-1644
SELECT COUNT ( * ) + 9 * + 16
----
145

query I rowsort
SELECT ALL ( - - 37 ) * - - 60 * + 77 - + 64
----
170876

query I rowsort
SELECT ( - 50 ) * + - 99 + + 17
----
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT ALL 78 + + - COUNT( DISTINCT - 5 )
----
77

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL 78 + + - COUNT ( DISTINCT - 5 )
----
77

query II rowsort
SELECT ALL - 78, - 50 * - 18 + + 43 AS col1
----
-78
943

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

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT COUNT ( * ) + - 67 AS col0
----
-66

query II rowsort
SELECT DISTINCT - 91 col1, - NULLIF ( - + 36, 29 ) * 17
----
-91
612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT ALL CAST( - 28 AS SIGNED ) + + + 88 + + 90 AS col0
----
150

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL CAST ( - 28 AS INTEGER ) + + + 88 + + 90 AS col0
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT - COUNT( * ) AS col2, 56 * - COUNT( * ) * + 43 AS col0
----
-1
-2408

skipif mysql # not compatible
query II rowsort label-1652
SELECT - COUNT ( * ) AS col2, 56 * - COUNT ( * ) * + 43 AS col0
----
-1
-2408

query I rowsort
SELECT - + ( - + ( - 86 ) ) * - 40 + 49
----
3489

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1654
SELECT DISTINCT + 87 DIV - 55 * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT + 87 / - 55 * COUNT ( * )
----
-1

query I rowsort
SELECT ALL - + NULLIF ( - + 79, 57 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT - 76 * + - MAX( DISTINCT + 6 ) * NULLIF ( 16 + + 38, 48 + - 1 * 74 ) + 20 * 13 AS col1
----
24884

skipif mysql # not compatible
query I rowsort label-1656
SELECT - 76 * + - MAX ( DISTINCT + 6 ) * NULLIF ( 16 + + 38, 48 + - 1 * 74 ) + 20 * 13 AS col1
----
24884

query I rowsort
SELECT 52 * - 96 - + 96
----
-5088

query I rowsort
SELECT - 57 * - 51 + - 25 + 38 * - NULLIF ( + 48 * 25, 19 * ( COALESCE ( + 92, 35, 94 ) ) ) AS col1
----
-42718

query I rowsort
SELECT ALL - 54 * - 97 + + 19 + - 12 AS col1
----
5245

query I rowsort
SELECT + 96 + 54 * - 53 + + 85 * + 23 AS col2
----
-811

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

skipif mysql # not compatible
query I rowsort label-1661
SELECT + + SUM ( 15 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT ALL + CASE + + ( - - 13 ) WHEN - CAST( NULL AS SIGNED ) THEN ( + 1 ) ELSE 75 END * 96
----
7200

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + CASE + + ( - - 13 ) WHEN - CAST ( NULL AS INTEGER ) THEN ( + 1 ) ELSE 75 END * 96
----
7200

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

query I rowsort
SELECT DISTINCT 88 * + + 44
----
3872

query I rowsort
SELECT DISTINCT + 35 * ( + 80 ) * - 87 + - 9 * 34 AS col0
----
-243906

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

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

query II rowsort
SELECT DISTINCT - 52, 81 AS col2
----
-52
81

query I rowsort
SELECT 70 + 26 AS col1
----
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT - 73 * - 89 * - COUNT( * ) col0
----
-6497

skipif mysql # not compatible
query I rowsort label-1670
SELECT - 73 * - 89 * - COUNT ( * ) col0
----
-6497

query I rowsort
SELECT + 82 + + 52 + + 3 + + 8 * + 14 * COALESCE ( + 47 * 51, - 4 - 88 * - 18 )
----
268601

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1673
SELECT DISTINCT + 20 DIV - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT + 20 / - COUNT ( * ) AS col1
----
-20

query II rowsort
SELECT - - 80, + 40 * 70 col1
----
80
2800

query I rowsort
SELECT 2 * 91 * - 28 AS col0
----
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL + COUNT( DISTINCT 98 ) * + ( + 79 ) * + 10
----
790

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + COUNT ( DISTINCT 98 ) * + ( + 79 ) * + 10
----
790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1677
SELECT ALL + 25 DIV CASE 88 WHEN - 69 * COALESCE ( 21, 26 + 52 ) THEN + ( + CASE 9 WHEN COUNT( 55 ) THEN AVG ( - 14 ) WHEN 77 THEN COUNT( * ) ELSE + 11 END ) + 7 * 19 WHEN + 3 * - 5 THEN + NULLIF ( + CASE 15 WHEN + 94 THEN 74 ELSE + 80 END, - 32 ) * - ( MIN( DISTINCT CAST( NULL AS SIGNED ) ) DIV 40 ) - 70 ELSE 70 END col2
----
0

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + 25 / CASE 88 WHEN - 69 * COALESCE ( 21, 26 + 52 ) THEN + ( + CASE 9 WHEN COUNT ( 55 ) THEN AVG ( - 14 ) WHEN 77 THEN COUNT ( * ) ELSE + 11 END ) + 7 * 19 WHEN + 3 * - 5 THEN + NULLIF ( + CASE 15 WHEN + 94 THEN 74 ELSE + 80 END, - 32 ) * - ( MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) / 40 ) - 70 ELSE 70 END col2
----
0

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

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

query I rowsort
SELECT ALL 3 + + - 38 AS col1
----
-35

query I rowsort
SELECT 27 * - 80
----
-2160

query I rowsort
SELECT ALL - 98 + - - 12
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT + NULLIF ( + 57, 73 ) * + + MIN( - 14 ) + COUNT( * ) AS col1
----
-797

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT + NULLIF ( + 57, 73 ) * + + MIN ( - 14 ) + COUNT ( * ) AS col1
----
-797

query I rowsort
SELECT 53 * + - 11
----
-583

query I rowsort
SELECT 27 * + CASE - - 45 WHEN - + 63 THEN + 97 / - 62 - 33 / 60 END AS col0
----
NULL

query I rowsort
SELECT ALL 37 + - 25 * + 0 col0
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-1686
SELECT DISTINCT - ( + 54 ) col0, + COALESCE ( + 23, NULLIF ( 40, 62 * 23 ) DIV + 45, 55 ) * 89
----
-54
2047

skipif mysql # not compatible
query II rowsort label-1686
SELECT DISTINCT - ( + 54 ) col0, + COALESCE ( + 23, NULLIF ( 40, 62 * 23 ) / + 45, 55 ) * 89
----
-54
2047

query I rowsort
SELECT + 53 * ( - 12 ) + - - 67 + - 57
----
-626

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT ALL + SUM( - 12 ) + - 80 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL + SUM ( - 12 ) + - 80 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-1689
SELECT ALL - 36 - + 12 AS col1, COUNT( * )
----
-48
1

skipif mysql # not compatible
query II rowsort label-1689
SELECT ALL - 36 - + 12 AS col1, COUNT ( * )
----
-48
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT DISTINCT + 82 * - COALESCE ( - - ( - + COUNT( * ) ), + 62, 30 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT + 82 * - COALESCE ( - - ( - + COUNT ( * ) ), + 62, 30 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT - SUM( 28 ) * 64 * 88 - + NULLIF ( 27, NULLIF ( + 21, - COUNT( * ) + - 15 ) * 69 + 80 ) - - MIN( ALL + 27 )
----
-157696

skipif mysql # not compatible
query I rowsort label-1691
SELECT - SUM ( 28 ) * 64 * 88 - + NULLIF ( 27, NULLIF ( + 21, - COUNT ( * ) + - 15 ) * 69 + 80 ) - - MIN ( ALL + 27 )
----
-157696

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT 90 * - 0 + - - 35 - - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1692
SELECT 90 * - 0 + - - 35 - - COUNT ( * ) AS col2
----
36

query I rowsort
SELECT 67 + + + 3 * + - 73 AS col0
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT + 54 DIV + 18 col1
----
3

skipif mysql # not compatible
query I rowsort label-1694
SELECT + 54 / + 18 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT 70 * - - MAX( 13 ) * 53 + 58 * 17 col2
----
49216

skipif mysql # not compatible
query I rowsort label-1695
SELECT 70 * - - MAX ( 13 ) * 53 + 58 * 17 col2
----
49216

query I rowsort
SELECT ALL - - ( - + 89 ) * - 94
----
8366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1697
SELECT ALL MIN( DISTINCT - 71 ) DIV + - 27
----
2

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL MIN ( DISTINCT - 71 ) / + - 27
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1698
SELECT + CAST( NULL AS SIGNED ) * CASE COUNT( * ) WHEN + MAX( + 80 ) THEN 28 WHEN 72 + 2 * 16 THEN + 85 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1698
SELECT + CAST ( NULL AS INTEGER ) * CASE COUNT ( * ) WHEN + MAX ( + 80 ) THEN 28 WHEN 72 + 2 * 16 THEN + 85 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( + COALESCE ( + NULLIF ( - 64, + 95 + ( 9 ) ), - 92, 65 ) )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1700
SELECT DISTINCT 8 DIV CASE ( + + COALESCE ( COUNT( * ), - 49 * + 4 ) ) WHEN + 2 THEN - 93 + 41 ELSE 87 END
----
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT 8 / CASE ( + + COALESCE ( COUNT ( * ), - 49 * + 4 ) ) WHEN + 2 THEN - 93 + 41 ELSE 87 END
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1701
SELECT ALL + 82 DIV - + 62 + + 98 + + + COUNT( * ) + 89
----
187

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL + 82 / - + 62 + + 98 + + + COUNT ( * ) + 89
----
187

query I rowsort
SELECT + 96 * + + 87 AS col1
----
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT MAX( 98 )
----
98

skipif mysql # not compatible
query I rowsort label-1703
SELECT MAX ( 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT - - NULLIF ( + 1, + 43 * - COALESCE ( - 72, 47 * - 0 - COALESCE ( + ( + 79 ), + ( 27 ), 33 * 86 - + COUNT( * ) * - 64 ) * - 11 ) * NULLIF ( + COUNT( 5 ), - COUNT( ALL - 64 ) * 30 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1704
SELECT - - NULLIF ( + 1, + 43 * - COALESCE ( - 72, 47 * - 0 - COALESCE ( + ( + 79 ), + ( 27 ), 33 * 86 - + COUNT ( * ) * - 64 ) * - 11 ) * NULLIF ( + COUNT ( 5 ), - COUNT ( ALL - 64 ) * 30 ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1705
SELECT COALESCE ( CAST( - 67 AS SIGNED ), - - 68 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1705
SELECT COALESCE ( CAST ( - 67 AS INTEGER ), - - 68 ) AS col1
----
-67

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

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

query I rowsort
SELECT ALL 93 + + COALESCE ( - 86, - 48 * - 14 ) AS col1
----
7

query II rowsort
SELECT 95 - + 35, 57 * + 40 AS col2
----
60
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT ALL NULLIF ( + - 27, COUNT( * ) ) + - 95 + - 59 * NULLIF ( + 61 * - 36, 6 )
----
129442

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL NULLIF ( + - 27, COUNT ( * ) ) + - 95 + - 59 * NULLIF ( + 61 * - 36, 6 )
----
129442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1710
SELECT DISTINCT 80 + 58 DIV COUNT( * ) + - ( - - 23 ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT 80 + 58 / COUNT ( * ) + - ( - - 23 ) AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT ALL NULLIF ( - 44, + COUNT( * ) / MIN( + 13 ) + 47 ) + 59 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL NULLIF ( - 44, + COUNT ( * ) / MIN ( + 13 ) + 47 ) + 59 AS col0
----
15

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

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL - 39 + 21 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT + NULLIF ( + + CASE + + 44 WHEN COUNT( * ) * + 99 THEN 15 / + 3 + 5 WHEN - 1 * + 63 THEN NULL END, 73 + 92 ) + + ( - 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT + NULLIF ( + + CASE + + 44 WHEN COUNT ( * ) * + 99 THEN 15 / + 3 + 5 WHEN - 1 * + 63 THEN NULL END, 73 + 92 ) + + ( - 46 ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 51 AS col0, - 34
----
51
-34

query I rowsort
SELECT ALL + COALESCE ( + - 71, - 18 ) + 80 AS col0
----
9

query I rowsort
SELECT + 73 + + - 34
----
39

query I rowsort
SELECT + 49 + ( 83 ) * 24 * + 63 * 72
----
9035761

query I rowsort
SELECT - 55 * 74 AS col2
----
-4070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1719
SELECT ALL - ( + 81 ) + + COUNT( * ) * - + CAST( NULL AS SIGNED ) * - SUM( - 50 ) + - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - ( + 81 ) + + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) * - SUM ( - 50 ) + - 2 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT - COUNT( * ) + + - 65
----
-66

skipif mysql # not compatible
query I rowsort label-1720
SELECT - COUNT ( * ) + + - 65
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT DISTINCT + COALESCE ( 79, + 81, - COUNT( * ) ) - 16 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT + COALESCE ( 79, + 81, - COUNT ( * ) ) - 16 AS col0
----
63

query I rowsort
SELECT ALL - 68 * + - 75
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT CASE - 29 WHEN 85 * - ( + + 0 ) * - 47 THEN + 89 ELSE COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT CASE - 29 WHEN 85 * - ( + + 0 ) * - 47 THEN + 89 ELSE COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - CASE 24 WHEN - - 18 * + 29 THEN + 15 * - 30 WHEN MIN( - 83 ) * - 30 THEN COUNT( * ) END + 31 * MAX( + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1724
SELECT - CASE 24 WHEN - - 18 * + 29 THEN + 15 * - 30 WHEN MIN ( - 83 ) * - 30 THEN COUNT ( * ) END + 31 * MAX ( + 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL + 4 - - MIN( DISTINCT + 38 ) + 65 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL + 4 - - MIN ( DISTINCT + 38 ) + 65 AS col2
----
107

query I rowsort
SELECT DISTINCT - 50 * - 65 AS col2
----
3250

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT ALL + 95 * - 58 * COUNT( ALL - + 50 ) AS col2
----
-5510

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL + 95 * - 58 * COUNT ( ALL - + 50 ) AS col2
----
-5510

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT - 83 DIV - 79 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1728
SELECT - 83 / - 79 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT DISTINCT ( - 34 ) * - SUM( DISTINCT 32 ) * + 89 * - ( ( + 82 ) ) - 85
----
-7940309

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT ( - 34 ) * - SUM ( DISTINCT 32 ) * + 89 * - ( ( + 82 ) ) - 85
----
-7940309

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT DISTINCT + - ( NULLIF ( + SUM( + - 37 ), + 2 ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT + - ( NULLIF ( + SUM ( + - 37 ), + 2 ) ) AS col2
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT - CASE 78 WHEN - 1 THEN NULL ELSE 79 + + + 95 - - 52 END * - COUNT( * ) AS col2
----
226

skipif mysql # not compatible
query I rowsort label-1732
SELECT - CASE 78 WHEN - 1 THEN NULL ELSE 79 + + + 95 - - 52 END * - COUNT ( * ) AS col2
----
226

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

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

query II rowsort
SELECT ALL + 74 AS col1, + 84 + 7
----
74
91

query I rowsort
SELECT DISTINCT 49 * 23 + - 55 + 86 * + 34 AS col2
----
3996

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT ALL + COUNT( * ) AS col1, - 10 * + + 64 * + + NULLIF ( - - ( - 19 ), + 97 + 90 ) AS col2
----
1
12160

skipif mysql # not compatible
query II rowsort label-1737
SELECT ALL + COUNT ( * ) AS col1, - 10 * + + 64 * + + NULLIF ( - - ( - 19 ), + 97 + 90 ) AS col2
----
1
12160

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT + + 91 * MIN( ALL - 28 )
----
-2548

skipif mysql # not compatible
query I rowsort label-1738
SELECT + + 91 * MIN ( ALL - 28 )
----
-2548

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

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

query I rowsort
SELECT ( - 10 ) * - 53 + - 22 + - 2 * + 68 AS col2
----
372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1741
SELECT ALL + - NULLIF ( CAST( - - AVG ( DISTINCT + 64 ) AS SIGNED ), - - 87 * ( 96 ) + 87 )
----
-64

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL + - NULLIF ( CAST ( - - AVG ( DISTINCT + 64 ) AS INTEGER ), - - 87 * ( 96 ) + 87 )
----
-64

query I rowsort
SELECT + 29 * 78 + + 9
----
2271

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT + ( 96 ) - - COALESCE ( + + SUM( ALL + - 73 ), + 80 ) col2
----
23

skipif mysql # not compatible
query I rowsort label-1743
SELECT + ( 96 ) - - COALESCE ( + + SUM ( ALL + - 73 ), + 80 ) col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT - 94 + CASE + - 18 WHEN + 74 THEN + 28 - COALESCE ( + 98, 64 * COUNT( * ) ) * 11 WHEN + ( 68 ) THEN NULL ELSE - 59 END
----
-153

skipif mysql # not compatible
query I rowsort label-1744
SELECT - 94 + CASE + - 18 WHEN + 74 THEN + 28 - COALESCE ( + 98, 64 * COUNT ( * ) ) * 11 WHEN + ( 68 ) THEN NULL ELSE - 59 END
----
-153

query II rowsort
SELECT + 64 * + ( - 78 ) AS col1, - 44
----
-4992
-44

query II rowsort
SELECT DISTINCT - + 8 * - + 4 * + 90 AS col2, 41
----
2880
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL + 46 * ( - + 27 ) + + COUNT( * ) + - COALESCE ( + 50, 88 * 1 + COUNT( ALL - 36 ), 64 ) col1
----
-1291

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL + 46 * ( - + 27 ) + + COUNT ( * ) + - COALESCE ( + 50, 88 * 1 + COUNT ( ALL - 36 ), 64 ) col1
----
-1291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1748
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 80 + + 49 + 0 + + 35 * 21 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 80 + + 49 + 0 + + 35 * 21 col0
----
NULL

query I rowsort
SELECT ALL - 67 * - 87 + + 16
----
5845

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT - 78 * + COUNT( * ) + + + 9
----
-69

skipif mysql # not compatible
query I rowsort label-1750
SELECT - 78 * + COUNT ( * ) + + + 9
----
-69

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

query II rowsort
SELECT + 85 + 53 AS col2, 13
----
138
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1753
SELECT ALL SUM( DISTINCT + CAST( - 92 AS SIGNED ) ) + - 44 + 51 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL SUM ( DISTINCT + CAST ( - 92 AS INTEGER ) ) + - 44 + 51 AS col0
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1754
SELECT + 97 * - 65 DIV + COUNT( * )
----
-6305

skipif mysql # not compatible
query I rowsort label-1754
SELECT + 97 * - 65 / + COUNT ( * )
----
-6305

onlyif mysql # aggregate syntax: 
query II rowsort label-1755
SELECT + 73 * - + 99, COUNT( * ) AS col1
----
-7227
1

skipif mysql # not compatible
query II rowsort label-1755
SELECT + 73 * - + 99, COUNT ( * ) AS col1
----
-7227
1

query I rowsort
SELECT + 67 * + 7 AS col0
----
469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1757
SELECT DISTINCT CASE - 28 WHEN + 91 THEN NULL ELSE - COALESCE ( - ( - - MAX( DISTINCT - 70 ) ), - 41, COUNT( * ), COUNT( * ) ) + - 98 * + 59 END - - NULLIF ( + ( 2 ), SUM( DISTINCT - 85 ) + + 25 ) DIV - 44
----
-5852

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT CASE - 28 WHEN + 91 THEN NULL ELSE - COALESCE ( - ( - - MAX ( DISTINCT - 70 ) ), - 41, COUNT ( * ), COUNT ( * ) ) + - 98 * + 59 END - - NULLIF ( + ( 2 ), SUM ( DISTINCT - 85 ) + + 25 ) / - 44
----
-5852

query I rowsort
SELECT ALL - 63 * + + 26 AS col0
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL CASE + - 6 WHEN - - 62 * + 98 THEN NULL ELSE + COUNT( * ) * + COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL CASE + - 6 WHEN - - 62 * + 98 THEN NULL ELSE + COUNT ( * ) * + COUNT ( * ) END
----
1

query I rowsort
SELECT DISTINCT 84 * + 83 AS col1
----
6972

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT - 13 * 20 DIV - 13 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-1761
SELECT - 13 * 20 / - 13 AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1762
SELECT 81 AS col1, + CASE 43 WHEN 82 THEN + + 41 + + - MIN( ALL 67 ) END
----
81
NULL

skipif mysql # not compatible
query II rowsort label-1762
SELECT 81 AS col1, + CASE 43 WHEN 82 THEN + + 41 + + - MIN ( ALL 67 ) END
----
81
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1763
SELECT ALL NULLIF ( - 2, - 12 + + + 48 ) AS col1, - 41 DIV - CAST( 21 AS SIGNED )
----
-2
1

skipif mysql # not compatible
query II rowsort label-1763
SELECT ALL NULLIF ( - 2, - 12 + + + 48 ) AS col1, - 41 / - CAST ( 21 AS INTEGER )
----
-2
1

query I rowsort
SELECT + 77 * ( 11 )
----
847

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT - COALESCE ( - + 59, + + NULLIF ( + - MAX( ALL 65 ), + 63 * - 4 ), - 92, 71 * - 64 + 24 * 10 )
----
59

skipif mysql # not compatible
query I rowsort label-1765
SELECT - COALESCE ( - + 59, + + NULLIF ( + - MAX ( ALL 65 ), + 63 * - 4 ), - 92, 71 * - 64 + 24 * 10 )
----
59

query I rowsort
SELECT ALL - 75 * + 84 * 6
----
-37800

onlyif mysql # aggregate syntax: 
query II rowsort label-1767
SELECT - SUM( ALL 14 ) + - 24 * + + 97, - 85 col1
----
-2342
-85

skipif mysql # not compatible
query II rowsort label-1767
SELECT - SUM ( ALL 14 ) + - 24 * + + 97, - 85 col1
----
-2342
-85

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

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT 54 / + CAST ( NULL AS REAL ) + + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT DISTINCT + + COUNT( * ) * + 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + + COUNT ( * ) * + 87 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1770
SELECT - COUNT( * ) DIV 53 * + ( - - COALESCE ( + 1, - CAST( NULL AS SIGNED ) + + 60, - COALESCE ( + 43, 11 ) + + 40, 98 - - 34, - COUNT( * ) ) ) - COALESCE ( 24, - 17 + 56 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-1770
SELECT - COUNT ( * ) / 53 * + ( - - COALESCE ( + 1, - CAST ( NULL AS INTEGER ) + + 60, - COALESCE ( + 43, 11 ) + + 40, 98 - - 34, - COUNT ( * ) ) ) - COALESCE ( 24, - 17 + 56 ) AS col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1771
SELECT + AVG ( DISTINCT + 63 ) * 6 / - 19 + - - 8 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1771
SELECT + AVG ( DISTINCT + 63 ) * 6 / - 19 + - - 8 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT COALESCE ( + 60, - 79, + 51 + - 56 - 63 * + 33 * + CAST( + 70 - ( 19 ) * + 89 AS SIGNED ) ) col2
----
60

skipif mysql # not compatible
query I rowsort label-1772
SELECT COALESCE ( + 60, - 79, + 51 + - 56 - 63 * + 33 * + CAST ( + 70 - ( 19 ) * + 89 AS INTEGER ) ) col2
----
60

query II rowsort
SELECT ALL + - 9 AS col2, 40
----
-9
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1774
SELECT ALL + CAST( NULL AS SIGNED ) / - 26 * + + 61 + MAX( - + NULLIF ( - 41, - 21 ) ) + - COALESCE ( 96, - 45 + - 69 / + 52 ) * 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + CAST ( NULL AS INTEGER ) / - 26 * + + 61 + MAX ( - + NULLIF ( - 41, - 21 ) ) + - COALESCE ( 96, - 45 + - 69 / + 52 ) * 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT + + NULLIF ( - + 46, + 88 * 51 * + - MAX( DISTINCT + + ( 86 ) ) / 41 + 16 )
----
-46

skipif mysql # not compatible
query I rowsort label-1775
SELECT + + NULLIF ( - + 46, + 88 * 51 * + - MAX ( DISTINCT + + ( 86 ) ) / 41 + 16 )
----
-46

query I rowsort
SELECT ALL - 27 * + - 90 * ( + 84 ) + + - 24 * + 51 col0
----
202896

query I rowsort
SELECT DISTINCT + 92 * + 42 + + + 18 * + 74 * + 21 * - 58
----
-1618512

query I rowsort
SELECT - 97 * 37 - 54
----
-3643

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1779
SELECT 8 - 76, COUNT( CAST( NULL AS DECIMAL ) ) DIV + 86 AS col1
----
-68
0

skipif mysql # not compatible
query II rowsort label-1779
SELECT 8 - 76, COUNT ( CAST ( NULL AS REAL ) ) / + 86 AS col1
----
-68
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1780
SELECT 17 DIV - - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT 17 / - - 79 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1781
SELECT ALL - CAST( ( + NULLIF ( - + COALESCE ( CASE 20 WHEN COUNT( 50 ) THEN 97 + - 25 END, 93 ), + 17 / - 75 + 21 ) ) AS SIGNED ) + - 67 col0
----
26

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL - CAST ( ( + NULLIF ( - + COALESCE ( CASE 20 WHEN COUNT ( 50 ) THEN 97 + - 25 END, 93 ), + 17 / - 75 + 21 ) ) AS INTEGER ) + - 67 col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1782
SELECT ALL + 76 * + - COALESCE ( + 79, + COALESCE ( - + 10, 77 + + + 82 + SUM( + 1 + 18 ), - 43 + + 0 * 31 ) + 55, 60 * + CAST( NULL AS SIGNED ) )
----
-6004

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL + 76 * + - COALESCE ( + 79, + COALESCE ( - + 10, 77 + + + 82 + SUM ( + 1 + 18 ), - 43 + + 0 * 31 ) + 55, 60 * + CAST ( NULL AS INTEGER ) )
----
-6004

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1784
SELECT 33 + 32 AS col2, - COUNT( * ) + 87
----
65
86

skipif mysql # not compatible
query II rowsort label-1784
SELECT 33 + 32 AS col2, - COUNT ( * ) + 87
----
65
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1785
SELECT CASE 64 WHEN - 31 + + 46 + ( - - 71 ) THEN + 1 + + CAST( NULL AS SIGNED ) ELSE ( + 39 ) + 53 DIV 29 END * - 91 AS col2
----
-3640

skipif mysql # not compatible
query I rowsort label-1785
SELECT CASE 64 WHEN - 31 + + 46 + ( - - 71 ) THEN + 1 + + CAST ( NULL AS INTEGER ) ELSE ( + 39 ) + 53 / 29 END * - 91 AS col2
----
-3640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT 42 + - ( - COUNT( * ) ) * 70 * - 5 DIV - COUNT( ALL 60 )
----
392

skipif mysql # not compatible
query I rowsort label-1786
SELECT 42 + - ( - COUNT ( * ) ) * 70 * - 5 / - COUNT ( ALL 60 )
----
392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1787
SELECT 78 * - + 87 DIV + - COUNT( 20 )
----
6786

skipif mysql # not compatible
query I rowsort label-1787
SELECT 78 * - + 87 / + - COUNT ( 20 )
----
6786

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT SUM( ALL 26 ) + - COUNT( * ) - - 53 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1788
SELECT SUM ( ALL 26 ) + - COUNT ( * ) - - 53 AS col2
----
78

query I rowsort
SELECT ALL 71 * + 40 * - 87 * 1
----
-247080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1790
SELECT 68 * - 26 * + CAST( - CAST( - + 99 AS SIGNED ) AS SIGNED ) * 80 + - 0 AS col0
----
-14002560

skipif mysql # not compatible
query I rowsort label-1790
SELECT 68 * - 26 * + CAST ( - CAST ( - + 99 AS INTEGER ) AS INTEGER ) * 80 + - 0 AS col0
----
-14002560

query I rowsort
SELECT DISTINCT 65 * 86 * + 18
----
100620

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ( - 4 ) + + COUNT( * ) * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-1792
SELECT ( - 4 ) + + COUNT ( * ) * + COUNT ( * )
----
-3

query I rowsort
SELECT + 74 + 55
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT ALL 43 * CAST( - + ( + 37 ) AS SIGNED ) AS col0
----
-1591

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL 43 * CAST ( - + ( + 37 ) AS INTEGER ) AS col0
----
-1591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT - CASE + 80 WHEN + 8 - - 69 + 80 * COUNT( * ) * - 14 * + CAST( 0 AS SIGNED ) + 0 * - COUNT( * ) THEN NULL ELSE SUM( + 1 ) + ( - 91 ) END * 50
----
4500

skipif mysql # not compatible
query I rowsort label-1795
SELECT - CASE + 80 WHEN + 8 - - 69 + 80 * COUNT ( * ) * - 14 * + CAST ( 0 AS INTEGER ) + 0 * - COUNT ( * ) THEN NULL ELSE SUM ( + 1 ) + ( - 91 ) END * 50
----
4500

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

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL 52 + - + COUNT ( * ) AS col1
----
51

query I rowsort
SELECT ALL - ( - 90 ) + + 77 + - ( - 83 )
----
250

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1799
SELECT + SUM( ALL - 95 ) AS col0, MIN( DISTINCT + - 74 ) + + CASE - 95 WHEN - COUNT( * ) THEN NULL WHEN 15 THEN 72 ELSE 73 * 79 + + 51 END col1
----
-95
5744

skipif mysql # not compatible
query II rowsort label-1799
SELECT + SUM ( ALL - 95 ) AS col0, MIN ( DISTINCT + - 74 ) + + CASE - 95 WHEN - COUNT ( * ) THEN NULL WHEN 15 THEN 72 ELSE 73 * 79 + + 51 END col1
----
-95
5744

query I rowsort
SELECT ALL + + 58 + 56 * 49 AS col2
----
2802

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT DISTINCT 55 + - 56 * + 38 * + 68 + COALESCE ( + COUNT( ALL 45 ), - 72, 32 * 23 - + 52 )
----
-144648

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT 55 + - 56 * + 38 * + 68 + COALESCE ( + COUNT ( ALL 45 ), - 72, 32 * 23 - + 52 )
----
-144648

query I rowsort
SELECT - 62 * + 35 * 48 * - 0 + - 70 AS col2
----
-70

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

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

query I rowsort
SELECT 80 + + + 55
----
135

query I rowsort
SELECT + + 96 col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL - COUNT( DISTINCT - 12 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL - COUNT ( DISTINCT - 12 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1807
SELECT DISTINCT - 51 * + 39 * + 85 * COUNT( * ) * - - CASE - 13 WHEN + 65 DIV 63 THEN 42 * 95 WHEN 1 + - 12 * + COUNT( * ) THEN 0 DIV + MIN( DISTINCT 21 ) ELSE + 23 * + 77 END AS col1
----
-299414115

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT - 51 * + 39 * + 85 * COUNT ( * ) * - - CASE - 13 WHEN + 65 / 63 THEN 42 * 95 WHEN 1 + - 12 * + COUNT ( * ) THEN 0 / + MIN ( DISTINCT 21 ) ELSE + 23 * + 77 END AS col1
----
-299414115

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT DISTINCT ( - - COUNT( COALESCE ( + - ( 34 ), 95 / 9 + - 4 ) ) ) - 95 AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT ( - - COUNT ( COALESCE ( + - ( 34 ), 95 / 9 + - 4 ) ) ) - 95 AS col2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT ALL - 8 DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - 8 / + 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT 43 + 30 + + MAX( - 35 ) * 96
----
-3287

skipif mysql # not compatible
query I rowsort label-1812
SELECT 43 + 30 + + MAX ( - 35 ) * 96
----
-3287

query I rowsort
SELECT 46 * 58 AS col2
----
2668

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + 25 * - 40 * - - 24 * + 87 + 65 - - COUNT( 46 ) + - 10 AS col1
----
-2087944

skipif mysql # not compatible
query I rowsort label-1814
SELECT + 25 * - 40 * - - 24 * + 87 + 65 - - COUNT ( 46 ) + - 10 AS col1
----
-2087944

query II rowsort
SELECT 62 + - - 0 * 11 col0, - 90 * - NULLIF ( + ( + + 37 ), - NULLIF ( 10, - ( - 28 ) * - 14 + 69 ) ) - 69
----
62
3261

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1816
SELECT 36 * - 66 / - + CAST( NULL AS SIGNED ) AS col1, - 23
----
NULL
-23

skipif mysql # not compatible
query II rowsort label-1816
SELECT 36 * - 66 / - + CAST ( NULL AS INTEGER ) AS col1, - 23
----
NULL
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT SUM( ALL - - ( ( 82 ) ) ) * MIN( ALL + 96 ) * 46 * 11 + - 43 * COUNT( * ) col0
----
3983189

skipif mysql # not compatible
query I rowsort label-1817
SELECT SUM ( ALL - - ( ( 82 ) ) ) * MIN ( ALL + 96 ) * 46 * 11 + - 43 * COUNT ( * ) col0
----
3983189

onlyif mysql # aggregate syntax: 
query II rowsort label-1818
SELECT - 21 AS col2, MIN( 32 ) AS col1
----
-21
32

skipif mysql # not compatible
query II rowsort label-1818
SELECT - 21 AS col2, MIN ( 32 ) AS col1
----
-21
32

query I rowsort
SELECT 87 + + + ( 30 )
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT ALL COUNT( * ), NULLIF ( + - 82, 23 + - 25 - 62 * + - NULLIF ( ( + 59 ), + NULLIF ( + 57, + 12 ) ) * 39 ) AS col1
----
1
-82

skipif mysql # not compatible
query II rowsort label-1820
SELECT ALL COUNT ( * ), NULLIF ( + - 82, 23 + - 25 - 62 * + - NULLIF ( ( + 59 ), + NULLIF ( + 57, + 12 ) ) * 39 ) AS col1
----
1
-82

query I rowsort
SELECT DISTINCT + 18 * - 97 AS col0
----
-1746

query I rowsort
SELECT 61 * 42
----
2562

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT DISTINCT + 19 * - - 72 * COUNT( * ) AS col2
----
1368

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT + 19 * - - 72 * COUNT ( * ) AS col2
----
1368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT CASE 43 WHEN + 78 / - + 32 * + ( + 70 ) + - + CAST( NULL AS SIGNED ) + - COALESCE ( + 74, 16 ) + CASE 90 WHEN 61 * + 20 THEN 89 + + 61 END THEN 97 WHEN ( + 62 ) + 5 * - 3 THEN NULL WHEN MIN( DISTINCT 86 ) / SUM( 40 ) THEN NULL END * 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT CASE 43 WHEN + 78 / - + 32 * + ( + 70 ) + - + CAST ( NULL AS INTEGER ) + - COALESCE ( + 74, 16 ) + CASE 90 WHEN 61 * + 20 THEN 89 + + 61 END THEN 97 WHEN ( + 62 ) + 5 * - 3 THEN NULL WHEN MIN ( DISTINCT 86 ) / SUM ( 40 ) THEN NULL END * 57 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1825
SELECT ALL 97 DIV - 80
----
-1

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL 97 / - 80
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1826
SELECT 67 DIV + - ( - 87 )
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT 67 / + - ( - 87 )
----
0

query I rowsort
SELECT DISTINCT + 48 + 84 col1
----
132

query I rowsort
SELECT ALL - 90 + - 8 AS col2
----
-98

query I rowsort
SELECT - CASE + - 86 WHEN + 28 * 80 THEN - 47 * 29 ELSE + 78 END AS col2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1830
SELECT ALL ( COUNT( * ) ) + NULLIF ( + 98, 87 ) + + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL ( COUNT ( * ) ) + NULLIF ( + 98, 87 ) + + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT NULLIF ( + COUNT( * ), 60 + + - 5 + 50 ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1831
SELECT NULLIF ( + COUNT ( * ), 60 + + - 5 + 50 ) - - COUNT ( * )
----
2

query II rowsort
SELECT 73, 63 AS col1
----
73
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT 47 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-1833
SELECT 47 / - 63
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1834
SELECT - - NULLIF ( - 61, COUNT( * ) + 10 ) AS col2, NULLIF ( + COUNT( + 79 ), - + 31 )
----
-61
1

skipif mysql # not compatible
query II rowsort label-1834
SELECT - - NULLIF ( - 61, COUNT ( * ) + 10 ) AS col2, NULLIF ( + COUNT ( + 79 ), - + 31 )
----
-61
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT DISTINCT CAST( + + 49 AS SIGNED ) + 48 AS col1
----
97

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT CAST ( + + 49 AS INTEGER ) + 48 AS col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1836
SELECT ALL + 26 * 70 + 94 + - + 65 + + + 68 DIV + 12 * - + COUNT( * )
----
1844

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + 26 * 70 + 94 + - + 65 + + + 68 / + 12 * - + COUNT ( * )
----
1844

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL - MAX( + 17 ) * - - ( 58 ) - + 55 + 56 AS col0
----
-985

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - MAX ( + 17 ) * - - ( 58 ) - + 55 + 56 AS col0
----
-985

query I rowsort
SELECT + - 52 + + 48 + + - 72 * + - 90
----
6476

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1839
SELECT 94 DIV - 74 - + 94 + CAST( - - 73 AS SIGNED ) * - 0 col2
----
-95

skipif mysql # not compatible
query I rowsort label-1839
SELECT 94 / - 74 - + 94 + CAST ( - - 73 AS INTEGER ) * - 0 col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT ALL + - COUNT( * ) * + 62 + + - 89 - + 53 + COUNT( * ) * + + 28 + - - 91
----
-85

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL + - COUNT ( * ) * + 62 + + - 89 - + 53 + COUNT ( * ) * + + 28 + - - 91
----
-85

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1842
SELECT + 72 * 58 DIV - 68 - - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-1842
SELECT + 72 * 58 / - 68 - - COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1843
SELECT ALL + SUM( + 19 ), + 67 DIV + + 23 col2
----
19
2

skipif mysql # not compatible
query II rowsort label-1843
SELECT ALL + SUM ( + 19 ), + 67 / + + 23 col2
----
19
2

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

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

query I rowsort
SELECT + NULLIF ( + 38, - 13 ) col2
----
38

query I rowsort
SELECT DISTINCT + 29 * 34 - - 28 * 89
----
3478

query I rowsort
SELECT DISTINCT - 4 * + 76 AS col0
----
-304

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT DISTINCT 43 * 36 DIV - + 74
----
-20

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT 43 * 36 / - + 74
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1849
SELECT - 83 * + COUNT( * ) * COALESCE ( - 47, - + 31 DIV - MAX( 75 ) DIV - ( + + 11 ) + COUNT( * ) DIV 85, 87 ) - - 43 DIV ( 94 ) AS col1
----
3901

skipif mysql # not compatible
query I rowsort label-1849
SELECT - 83 * + COUNT ( * ) * COALESCE ( - 47, - + 31 / - MAX ( 75 ) / - ( + + 11 ) + COUNT ( * ) / 85, 87 ) - - 43 / ( 94 ) AS col1
----
3901

query I rowsort
SELECT - 73 * + - 86 AS col1
----
6278

onlyif mysql # DIV for integer division: 
query II rowsort label-1851
SELECT + 84 - - ( 20 ) DIV + - 42 * + - ( + 88 ) + - + 25, 84 AS col0
----
59
84

skipif mysql # not compatible
query II rowsort label-1851
SELECT + 84 - - ( 20 ) / + - 42 * + - ( + 88 ) + - + 25, 84 AS col0
----
59
84

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

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

query II rowsort
SELECT - 37 * - + 17 AS col1, 90 AS col0
----
629
90

query I rowsort
SELECT ALL 42 + 47 AS col2
----
89

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

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

query I rowsort
SELECT ALL + 14 + + 73 + 44 - + 85 * + 8
----
-549

query I rowsort
SELECT ALL CASE + + 15 WHEN + + 97 THEN - ( + ( - - 35 ) ) WHEN AVG ( DISTINCT 41 ) * + 42 + - 95 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1858
SELECT DISTINCT + 33 + + 16, - 54 * - + CAST( + 22 AS SIGNED ) AS col2
----
49
1188

skipif mysql # not compatible
query II rowsort label-1858
SELECT DISTINCT + 33 + + 16, - 54 * - + CAST ( + 22 AS INTEGER ) AS col2
----
49
1188

query II rowsort
SELECT ALL ( + 5 ) AS col2, - 41 col0
----
5
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT + CASE - MAX( ALL + - 25 ) WHEN + COALESCE ( COUNT( * ), + 65, + + 16, - 23 * + 2 + - 76 * - 71 ) + + 93 / - 21 THEN COUNT( * ) ELSE NULL END * 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT + CASE - MAX ( ALL + - 25 ) WHEN + COALESCE ( COUNT ( * ), + 65, + + 16, - 23 * + 2 + - 76 * - 71 ) + + 93 / - 21 THEN COUNT ( * ) ELSE NULL END * 17 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1861
SELECT - CAST( + 57 AS SIGNED ) * + - 9 * + 42 * - 53
----
-1141938

skipif mysql # not compatible
query I rowsort label-1861
SELECT - CAST ( + 57 AS INTEGER ) * + - 9 * + 42 * - 53
----
-1141938

onlyif mysql # DIV for integer division: 
query I rowsort label-1862
SELECT - - 38 + - 42 DIV 77 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1862
SELECT - - 38 + - 42 / 77 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT ALL + + COUNT( * ) + + 57
----
58

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL + + COUNT ( * ) + + 57
----
58

query I rowsort
SELECT - + 64 + + - 72 + + 36 col1
----
-100

query I rowsort
SELECT + 92 - + ( 11 ) * - - 85 + + 21 AS col1
----
-822

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT - COUNT( * ) + + 52 + + - 12
----
39

skipif mysql # not compatible
query I rowsort label-1866
SELECT - COUNT ( * ) + + 52 + + - 12
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT ALL + - 12 + - CASE - 37 WHEN - 23 THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL + - 12 + - CASE - 37 WHEN - 23 THEN + - COUNT ( * ) END
----
NULL

query I rowsort
SELECT - 58 + - - ( - 30 ) + 59 * 94 * - - 65
----
360402

query I rowsort
SELECT ALL - 92 * - - 72 * 27 AS col2
----
-178848

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

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

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

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

query II rowsort
SELECT ALL ( - 70 ), 12 + + - 39 AS col0
----
-70
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1873
SELECT + + CAST( NULL AS SIGNED ) * AVG ( ALL + + 87 ) * - CAST( + 93 AS SIGNED ) * - + ( - 28 ) + 0 * 82 + SUM( DISTINCT - CAST( ( - 45 ) AS SIGNED ) + - 67 * ( 1 - + 74 / + 40 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT + + CAST ( NULL AS INTEGER ) * AVG ( ALL + + 87 ) * - CAST ( + 93 AS INTEGER ) * - + ( - 28 ) + 0 * 82 + SUM ( DISTINCT - CAST ( ( - 45 ) AS INTEGER ) + - 67 * ( 1 - + 74 / + 40 ) )
----
NULL

query II rowsort
SELECT - 47 + + 91, + 63 col0
----
44
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1875
SELECT MIN( 35 ), + 84 col1
----
35
84

skipif mysql # not compatible
query II rowsort label-1875
SELECT MIN ( 35 ), + 84 col1
----
35
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT + COALESCE ( - - SUM( ALL 81 ), 10 * + COUNT( 0 ) ) + 75 - - - MIN( ALL - - 30 ) * 43 * - 98 AS col1
----
126576

skipif mysql # not compatible
query I rowsort label-1876
SELECT + COALESCE ( - - SUM ( ALL 81 ), 10 * + COUNT ( 0 ) ) + 75 - - - MIN ( ALL - - 30 ) * 43 * - 98 AS col1
----
126576

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT ALL - 14 DIV + 56 - - 99
----
99

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - 14 / + 56 - - 99
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT + 3 DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-1878
SELECT + 3 / - 26
----
0

query I rowsort
SELECT 45 * - + 89 + 67
----
-3938

query I rowsort
SELECT - 91 * CASE 66 WHEN + - 25 THEN + - CASE - 87 WHEN - 51 * - 77 * 21 + - 39 THEN NULL WHEN AVG ( DISTINCT 77 ) * 11 THEN NULL ELSE 47 END WHEN - 26 - - 64 THEN 54 END * 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1881
SELECT DISTINCT + 1 col0, CAST( NULL AS SIGNED ) / 93 - - + ( 37 ) * 63
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1881
SELECT DISTINCT + 1 col0, CAST ( NULL AS INTEGER ) / 93 - - + ( 37 ) * 63
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT - COUNT( * ) * COUNT( * ) + 50 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1882
SELECT - COUNT ( * ) * COUNT ( * ) + 50 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + CASE - 14 WHEN + - 19 THEN CASE WHEN 5 IS NULL THEN 39 + COUNT( * ) ELSE NULL END - - NULLIF ( - 22, 41 ) WHEN - 77 THEN NULL ELSE NULL END - - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-1883
SELECT + CASE - 14 WHEN + - 19 THEN CASE WHEN 5 IS NULL THEN 39 + COUNT ( * ) ELSE NULL END - - NULLIF ( - 22, 41 ) WHEN - 77 THEN NULL ELSE NULL END - - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + 49 * + + MIN( ALL + 53 ) AS col2
----
2597

skipif mysql # not compatible
query I rowsort label-1884
SELECT + 49 * + + MIN ( ALL + 53 ) AS col2
----
2597

query I rowsort
SELECT + 61 + - 84 + 78 col2
----
55

query I rowsort
SELECT CASE + 44 WHEN - 16 THEN - + ( + - 69 ) / 57 / 4 WHEN - 14 + + 32 THEN NULL ELSE + 2 * 7 END AS col0
----
14

query I rowsort
SELECT ALL 54 * - 1 + 82 AS col0
----
28

query I rowsort
SELECT ALL 47 * - 53 + + - 82 + - ( - + 91 )
----
-2482

query I rowsort
SELECT + 31 + + 77 * 36 AS col0
----
2803

query I rowsort
SELECT DISTINCT - 73 * + 43 AS col1
----
-3139

query I rowsort
SELECT ALL - 70 * 6 + + - 0 col1
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + 78 * + ( 95 ) + COUNT( * ) + 87 * + 81 AS col2
----
14458

skipif mysql # not compatible
query I rowsort label-1892
SELECT + 78 * + ( 95 ) + COUNT ( * ) + 87 * + 81 AS col2
----
14458

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT ALL 91 * - - COALESCE ( + ( COALESCE ( - MIN( + - 77 ), + COUNT( * ) + + + 95 + - 5 * 79 * ( + COUNT( * ) * COUNT( * ) ) + + 6 ) ), + 0 ) * 58 + - 88
----
406318

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL 91 * - - COALESCE ( + ( COALESCE ( - MIN ( + - 77 ), + COUNT ( * ) + + + 95 + - 5 * 79 * ( + COUNT ( * ) * COUNT ( * ) ) + + 6 ) ), + 0 ) * 58 + - 88
----
406318

query I rowsort
SELECT + 83 + 53 col2
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT ALL CAST( - 82 AS SIGNED ) * - 13 + + - 37 AS col2
----
1029

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL CAST ( - 82 AS INTEGER ) * - 13 + + - 37 AS col2
----
1029

query I rowsort
SELECT + 95 * 99
----
9405

query I rowsort
SELECT DISTINCT 6 * - 62 AS col2
----
-372

query I rowsort
SELECT ALL 32 * - - 54 * 51
----
88128

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

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

query I rowsort
SELECT + + 76 * - 15 AS col0
----
-1140

query I rowsort
SELECT ALL + 7 + + ( - 90 ) * COALESCE ( - + 10, + 85 + + 42 * + 73 + + + 60 )
----
907

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT ALL + 96 * 55 + + COUNT( * )
----
5281

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL + 96 * 55 + + COUNT ( * )
----
5281

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT + 42 DIV ( - - 43 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1903
SELECT + 42 / ( - - 43 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1904
SELECT ALL + 16 DIV - 44 + + ( - - SUM( ALL + - 25 ) ) + - + 49
----
-74

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL + 16 / - 44 + + ( - - SUM ( ALL + - 25 ) ) + - + 49
----
-74

query II rowsort
SELECT ALL + 25 col2, + 52 AS col1
----
25
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT ALL - - 72 - CAST( NULL AS SIGNED ) * - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL - - 72 - CAST ( NULL AS INTEGER ) * - + 69
----
NULL

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

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

query I rowsort
SELECT - 9 - + + 18 + 63 * - + 18
----
-1161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1909
SELECT 48 - + + CASE 9 WHEN 72 THEN NULL WHEN - + 72 / + - 2 * + - 81 + + + ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE - 50 * + CASE + 64 + + 8 * AVG ( DISTINCT - 9 / 91 + 86 ) WHEN - AVG ( DISTINCT - 98 ) THEN NULL ELSE 51 - 62 * 66 END END + + 61 col0
----
-201941

skipif mysql # not compatible
query I rowsort label-1909
SELECT 48 - + + CASE 9 WHEN 72 THEN NULL WHEN - + 72 / + - 2 * + - 81 + + + ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - 50 * + CASE + 64 + + 8 * AVG ( DISTINCT - 9 / 91 + 86 ) WHEN - AVG ( DISTINCT - 98 ) THEN NULL ELSE 51 - 62 * 66 END END + + 61 col0
----
-201941

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

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

query I rowsort
SELECT ALL - - CASE 19 WHEN + - 37 + + 29 THEN 57 END * - 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL + COALESCE ( + + COUNT( * ), - 18, + 47 - SUM( 36 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL + COALESCE ( + + COUNT ( * ), - 18, + 47 - SUM ( 36 ) ) AS col0
----
1

query I rowsort
SELECT ALL - - 96 * - + 90 AS col0
----
-8640

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

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

query I rowsort
SELECT ALL - 20 * - 53 AS col0
----
1060

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT 27 DIV + + 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1919
SELECT 27 / + + 43 AS col1
----
0

query II rowsort
SELECT + 95 col0, + 15 AS col1
----
95
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT + ( - - 49 ) DIV 1 + - - 96 + + 68
----
213

skipif mysql # not compatible
query I rowsort label-1921
SELECT + ( - - 49 ) / 1 + - - 96 + + 68
----
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1922
SELECT ALL + 86 DIV COUNT( ALL 62 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL + 86 / COUNT ( ALL 62 ) AS col0
----
86

query I rowsort
SELECT 52 * + + 50 * - - 42
----
109200

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT DISTINCT - COUNT( + 7 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - COUNT ( + 7 ) col0
----
-1

query I rowsort
SELECT ALL 49 + + COALESCE ( + + 99, + 25 ) AS col0
----
148

query I rowsort
SELECT ALL 8 * + 93 AS col1
----
744

query I rowsort
SELECT 87 * 94
----
8178

query I rowsort
SELECT ALL - 14 + + 35
----
21

query I rowsort
SELECT ALL - ( - NULLIF ( + - 39, 17 ) )
----
-39

query II rowsort
SELECT 33 AS col0, 88
----
33
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT + 37 * - 63 - + COUNT( 15 )
----
-2332

skipif mysql # not compatible
query I rowsort label-1931
SELECT + 37 * - 63 - + COUNT ( 15 )
----
-2332

query II rowsort
SELECT 41, 7 AS col2
----
41
7

query I rowsort
SELECT ALL 65 * - 42 AS col1
----
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT 77 + - COUNT( * ) - + 15 * 46 * - 13 AS col2
----
9046

skipif mysql # not compatible
query I rowsort label-1934
SELECT 77 + - COUNT ( * ) - + 15 * 46 * - 13 AS col2
----
9046

query I rowsort
SELECT 12 * - - 77
----
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT CASE - 19 WHEN + 37 + - - 9 * + 92 THEN NULL ELSE 64 * 79 END + + ( CAST( 64 AS SIGNED ) ) + 11
----
5131

skipif mysql # not compatible
query I rowsort label-1936
SELECT CASE - 19 WHEN + 37 + - - 9 * + 92 THEN NULL ELSE 64 * 79 END + + ( CAST ( 64 AS INTEGER ) ) + 11
----
5131

query I rowsort
SELECT DISTINCT - COALESCE ( + 45, + 65 )
----
-45

query I rowsort
SELECT ALL + 36 - 20
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1939
SELECT DISTINCT 52 DIV - SUM( - - 76 ) + + + MAX( ALL 42 )
----
42

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT 52 / - SUM ( - - 76 ) + + + MAX ( ALL 42 )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1940
SELECT ALL 67 AS col0, - 58 + + COUNT( * ) AS col0
----
67
-57

skipif mysql # not compatible
query II rowsort label-1940
SELECT ALL 67 AS col0, - 58 + + COUNT ( * ) AS col0
----
67
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1941
SELECT ALL + ( - - COALESCE ( - COUNT( + 79 ), - 80 * ( CAST( NULL AS SIGNED ) ) + + 74 + + ( + 16 ) ) ) * + ( - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + ( - - COALESCE ( - COUNT ( + 79 ), - 80 * ( CAST ( NULL AS INTEGER ) ) + + 74 + + ( + 16 ) ) ) * + ( - 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT ALL 10 - NULLIF ( - ( - - 88 ), - + COUNT( * ) * MAX( ALL + 26 ) + + 28 ) - - COUNT( DISTINCT - 90 )
----
99

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL 10 - NULLIF ( - ( - - 88 ), - + COUNT ( * ) * MAX ( ALL + 26 ) + + 28 ) - - COUNT ( DISTINCT - 90 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT 24 * + 6 * NULLIF ( - 8, + 92 + - - MAX( ALL 10 ) ) AS col1
----
-1152

skipif mysql # not compatible
query I rowsort label-1943
SELECT 24 * + 6 * NULLIF ( - 8, + 92 + - - MAX ( ALL 10 ) ) AS col1
----
-1152

query I rowsort
SELECT - 49 * - 26 + 80 AS col2
----
1354

query II rowsort
SELECT - - 83 AS col1, + 7
----
83
7

query II rowsort
SELECT ALL 37 * 38 + + ( - 89 ), 84 AS col2
----
1317
84

query I rowsort
SELECT + 90 - + 74 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT DISTINCT 94 * + COUNT( * ) + - 39 + + 78 * - COUNT( * ) + + + 15 + - 20
----
-28

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT 94 * + COUNT ( * ) + - 39 + + 78 * - COUNT ( * ) + + + 15 + - 20
----
-28

query II rowsort
SELECT ALL ( - 41 ), 35 AS col0
----
-41
35

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

skipif mysql # not compatible
query I rowsort label-1950
SELECT + 43 / - 43
----
-1

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

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

query I rowsort
SELECT + 56 + + - ( ( 16 ) ) * - - 90
----
-1384

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT 31 + - ( - COUNT( * ) ) + 93 AS col1
----
125

skipif mysql # not compatible
query I rowsort label-1953
SELECT 31 + - ( - COUNT ( * ) ) + 93 AS col1
----
125

query II rowsort
SELECT ALL + 75, - 51 col0
----
75
-51

query I rowsort
SELECT ALL - 18 + + + 15 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT COUNT( 49 )
----
1

skipif mysql # not compatible
query I rowsort label-1956
SELECT COUNT ( 49 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1957
SELECT 52 + - COUNT( * ) AS col1, 69
----
51
69

skipif mysql # not compatible
query II rowsort label-1957
SELECT 52 + - COUNT ( * ) AS col1, 69
----
51
69

query I rowsort
SELECT ALL - 91 * - + 35 * 80
----
254800

query I rowsort
SELECT DISTINCT + 73 * 73
----
5329

onlyif mysql # DIV for integer division: 
query I rowsort label-1960
SELECT ALL 14 * - 68 * - - 77 * + - 24 * - COALESCE ( + 27, - - 3 ) + 91 + - 67 DIV 87
----
-47500901

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL 14 * - 68 * - - 77 * + - 24 * - COALESCE ( + 27, - - 3 ) + 91 + - 67 / 87
----
-47500901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1961
SELECT 82 * - COUNT( ALL + 29 ) * - MIN( ALL - + 93 ) + + CAST( NULL AS SIGNED ) + + ( + + 96 ) + - ( - + 74 ) + - ( + 42 ) + + 74 * 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1961
SELECT 82 * - COUNT ( ALL + 29 ) * - MIN ( ALL - + 93 ) + + CAST ( NULL AS INTEGER ) + + ( + + 96 ) + - ( - + 74 ) + - ( + 42 ) + + 74 * 11 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT ALL 45 * 99 * + SUM( 14 ) + 43 + - 3 * + - COALESCE ( + - 48, + 13, 63 + + - 95 - 81, 52 ) AS col1
----
62269

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL 45 * 99 * + SUM ( 14 ) + 43 + - 3 * + - COALESCE ( + - 48, + 13, 63 + + - 95 - 81, 52 ) AS col1
----
62269

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT DISTINCT - NULLIF ( - COUNT( * ), - - 81 )
----
1

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT - NULLIF ( - COUNT ( * ), - - 81 )
----
1

query I rowsort
SELECT ( + 86 ) * - 5 + + + 21 AS col0
----
-409

query I rowsort
SELECT 70 * - 78 AS col0
----
-5460

onlyif mysql # aggregate syntax: 
query II rowsort label-1967
SELECT ALL - ( - 48 ) AS col1, + 50 * SUM( + - 70 ) AS col2
----
48
-3500

skipif mysql # not compatible
query II rowsort label-1967
SELECT ALL - ( - 48 ) AS col1, + 50 * SUM ( + - 70 ) AS col2
----
48
-3500

onlyif mysql # DIV for integer division: 
query I rowsort label-1968
SELECT DISTINCT + 38 DIV 26
----
1

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT + 38 / 26
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1969
SELECT ALL - AVG ( ALL + 60 ) - - - COALESCE ( + + CAST( NULL AS SIGNED ), + - CASE - 75 WHEN + + 3 THEN + - 96 * + COUNT( * ) END + - - 56 ) * - 88 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - AVG ( ALL + 60 ) - - - COALESCE ( + + CAST ( NULL AS INTEGER ), + - CASE - 75 WHEN + + 3 THEN + - 96 * + COUNT ( * ) END + - - 56 ) * - 88 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1970
SELECT ALL + 29 DIV - + 23 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + 29 / - + 23 AS col1
----
-1

query I rowsort
SELECT ALL - NULLIF ( + 51, + 89 * + 67 + ( + 70 ) ) AS col2
----
-51

query I rowsort
SELECT DISTINCT 37 * 63
----
2331

query I rowsort
SELECT ALL 41 * + + 30
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ALL - 79 - + - ( + 41 ) - - 80 + - 10 * - 65 * 37 + - CASE COUNT( ALL - - 65 ) WHEN 62 THEN NULL WHEN + - 3 THEN ( + 73 ) ELSE NULL END * CASE 90 + COALESCE ( - SUM( ALL - 77 ) - 67, + 22 / - 81, MIN( + 65 ) ) WHEN - 34 THEN + 90 * - 3 WHEN 21 THEN - MIN( 33 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL - 79 - + - ( + 41 ) - - 80 + - 10 * - 65 * 37 + - CASE COUNT ( ALL - - 65 ) WHEN 62 THEN NULL WHEN + - 3 THEN ( + 73 ) ELSE NULL END * CASE 90 + COALESCE ( - SUM ( ALL - 77 ) - 67, + 22 / - 81, MIN ( + 65 ) ) WHEN - 34 THEN + 90 * - 3 WHEN 21 THEN - MIN ( 33 ) END
----
NULL

query I rowsort
SELECT - 1 * - 6 + - 99 AS col2
----
-93

query I rowsort
SELECT ALL + - 92 * - + ( - 65 )
----
-5980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1977
SELECT - + ( - - MAX( DISTINCT - - 16 ) ) DIV COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1977
SELECT - + ( - - MAX ( DISTINCT - - 16 ) ) / COUNT ( * ) AS col1
----
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1978
SELECT - MAX( CASE + 41 WHEN - 13 * 48 * - 35 + CAST( - 45 AS DECIMAL ) + + 55 THEN + 93 END ) AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1978
SELECT - MAX ( CASE + 41 WHEN - 13 * 48 * - 35 + CAST ( - 45 AS REAL ) + + 55 THEN + 93 END ) AS col2, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT + 38 + + 89
----
127

query I rowsort
SELECT ALL - 13 * + 40 + + 93 + 95 * + 66 * + - 77 + + + 97
----
-483120

query I rowsort
SELECT + + 44 + - + 28 col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1982
SELECT MAX( - 7 ) AS col2, 5 * + 83
----
-7
415

skipif mysql # not compatible
query II rowsort label-1982
SELECT MAX ( - 7 ) AS col2, 5 * + 83
----
-7
415

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT + + COUNT( 4 ) + - 46 * - + 49 AS col0
----
2255

skipif mysql # not compatible
query I rowsort label-1984
SELECT + + COUNT ( 4 ) + - 46 * - + 49 AS col0
----
2255

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1986
SELECT + + 48 - 80, COUNT( * ) DIV - + 26 AS col0
----
-32
0

skipif mysql # not compatible
query II rowsort label-1986
SELECT + + 48 - 80, COUNT ( * ) / - + 26 AS col0
----
-32
0

query II rowsort
SELECT + - 31 * 13 AS col0, - 28 * + 64 + - 41 + 37 col2
----
-403
-1796

query I rowsort
SELECT + 44 - 12 * - 58 + - 26 AS col0
----
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT - MIN( + 2 ) + NULLIF ( 34, - - 34 - - 33 - - COUNT( * ) * + - 53 * - 63 + + COUNT( * ) + - 61 / - 35 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1989
SELECT - MIN ( + 2 ) + NULLIF ( 34, - - 34 - - 33 - - COUNT ( * ) * + - 53 * - 63 + + COUNT ( * ) + - 61 / - 35 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT 73 + + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT 73 + + - COUNT ( * )
----
72

query I rowsort
SELECT ALL 2 + - 60
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT ALL MIN( - + 93 ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL MIN ( - + 93 ) col0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-1993
SELECT + COUNT( * ) * + - COUNT( * ) * - 59 col2, + 29 AS col2
----
59
29

skipif mysql # not compatible
query II rowsort label-1993
SELECT + COUNT ( * ) * + - COUNT ( * ) * - 59 col2, + 29 AS col2
----
59
29

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT DISTINCT 67 DIV ( - + 1 ) + + 50
----
-17

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT 67 / ( - + 1 ) + + 50
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-1995
SELECT ALL + 16 AS col0, + 2 DIV + + 58
----
16
0

skipif mysql # not compatible
query II rowsort label-1995
SELECT ALL + 16 AS col0, + 2 / + + 58
----
16
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT + 55 * - - 72 + + - 45 + ( - 13 ) + + COUNT( * )
----
3903

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + 55 * - - 72 + + - 45 + ( - 13 ) + + COUNT ( * )
----
3903

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT DISTINCT 31 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT 31 / + 94 AS col0
----
0

query II rowsort
SELECT ALL + 32 col0, + 80 * - 97
----
32
-7760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1999
SELECT ( + + COALESCE ( + CAST( NULL AS SIGNED ), - 5 ) ), ( 25 ) + - 37 AS col0
----
-5
-12

skipif mysql # not compatible
query II rowsort label-1999
SELECT ( + + COALESCE ( + CAST ( NULL AS INTEGER ), - 5 ) ), ( 25 ) + - 37 AS col0
----
-5
-12

query II rowsort
SELECT DISTINCT + 48 AS col2, 36 AS col0
----
48
36

query I rowsort
SELECT ALL + 45 * + 69 - - + 8 + ( - 86 ) - - 67 AS col1
----
3094

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2002
SELECT ALL + 60, 74 DIV - NULLIF ( - 88, 99 * COUNT( * ) * + - 56 ) * + - 87 AS col2
----
60
0

skipif mysql # not compatible
query II rowsort label-2002
SELECT ALL + 60, 74 / - NULLIF ( - 88, 99 * COUNT ( * ) * + - 56 ) * + - 87 AS col2
----
60
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT - 0 * - - COALESCE ( - - COUNT( * ), - 15 + + 31 )
----
0

skipif mysql # not compatible
query I rowsort label-2003
SELECT - 0 * - - COALESCE ( - - COUNT ( * ), - 15 + + 31 )
----
0

query I rowsort
SELECT ALL + 25 * - 86 AS col2
----
-2150

query I rowsort
SELECT COALESCE ( 81, + ( ( + 58 ) ) ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2006
SELECT COUNT( * ) * COUNT( * ) - + + 62 AS col0, 38 + + NULLIF ( 74, - 73 ) + - 70
----
-61
42

skipif mysql # not compatible
query II rowsort label-2006
SELECT COUNT ( * ) * COUNT ( * ) - + + 62 AS col0, 38 + + NULLIF ( 74, - 73 ) + - 70
----
-61
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT + - COUNT( ( 94 ) ) * MIN( + 50 ) col1
----
-50

skipif mysql # not compatible
query I rowsort label-2007
SELECT + - COUNT ( ( 94 ) ) * MIN ( + 50 ) col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - + 64 * - - 43 + + MIN( + + 10 ) * COUNT( * )
----
-2742

skipif mysql # not compatible
query I rowsort label-2008
SELECT - + 64 * - - 43 + + MIN ( + + 10 ) * COUNT ( * )
----
-2742

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - MAX( - COALESCE ( + 47, - ( 98 ) ) ) * + COUNT( + 23 ) * 51 - - 7 - - 8 + 36 - 73
----
2375

skipif mysql # not compatible
query I rowsort label-2009
SELECT - MAX ( - COALESCE ( + 47, - ( 98 ) ) ) * + COUNT ( + 23 ) * 51 - - 7 - - 8 + 36 - 73
----
2375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2010
SELECT - NULLIF ( - COUNT( * ), COUNT( * ) ) DIV + 3 col2
----
0

skipif mysql # not compatible
query I rowsort label-2010
SELECT - NULLIF ( - COUNT ( * ), COUNT ( * ) ) / + 3 col2
----
0

query I rowsort
SELECT ALL + + 5 col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2012
SELECT + + 97, + 19 + CAST( NULL AS SIGNED ) * - 51 * + 58 AS col2
----
97
NULL

skipif mysql # not compatible
query II rowsort label-2012
SELECT + + 97, + 19 + CAST ( NULL AS INTEGER ) * - 51 * + 58 AS col2
----
97
NULL

query II rowsort
SELECT ALL + - 14 AS col2, + 34
----
-14
34

query I rowsort
SELECT - 89 + - 59 AS col0
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT - - 38 - - + MIN( 55 ) - 86 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2015
SELECT - - 38 - - + MIN ( 55 ) - 86 AS col2
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-2016
SELECT ALL - ( 40 ) DIV + 46, - 47 * + 90 col1
----
0
-4230

skipif mysql # not compatible
query II rowsort label-2016
SELECT ALL - ( 40 ) / + 46, - 47 * + 90 col1
----
0
-4230

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

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

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

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

query I rowsort
SELECT - - 77 + + + 22
----
99

query I rowsort
SELECT ALL + - 10 + - 49 * + 23
----
-1137

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - + 2 + + + 61 + + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-2021
SELECT - + 2 + + + 61 + + COUNT ( * )
----
60

query II rowsort
SELECT ALL + 35, 26 * + 76 * + 3 col1
----
35
5928

query I rowsort
SELECT + 83 * + - 94
----
-7802

query I rowsort
SELECT ALL 50 + - 13 AS col0
----
37

query I rowsort
SELECT DISTINCT - 46 + - CASE - 27 WHEN + 68 THEN NULL WHEN + 52 * 11 THEN 22 END + + + 45 AS col2
----
NULL

query II rowsort
SELECT - ( 30 ), 33 AS col1
----
-30
33

query I rowsort
SELECT + 67 + 57 + + ( + ( + 82 ) ) - 57
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-2028
SELECT - 78 * - 39 col0, + 59 - COUNT( * ) * - - NULLIF ( + COUNT( * ), + 9 * - - 69 / - ( - - 78 ) ) * - 57 - 62 + 8 * - 55 * + NULLIF ( COUNT( * ), 90 - + COUNT( * ) * - COUNT( * ) )
----
3042
-386

skipif mysql # not compatible
query II rowsort label-2028
SELECT - 78 * - 39 col0, + 59 - COUNT ( * ) * - - NULLIF ( + COUNT ( * ), + 9 * - - 69 / - ( - - 78 ) ) * - 57 - 62 + 8 * - 55 * + NULLIF ( COUNT ( * ), 90 - + COUNT ( * ) * - COUNT ( * ) )
----
3042
-386

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT ALL 90 DIV - + 45 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL 90 / - + 45 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2030
SELECT - 96 + + - CASE - + 5 WHEN - 73 THEN - 46 - - CASE - 95 WHEN COUNT( * ) THEN NULL WHEN - 19 * MAX( DISTINCT - 14 ) * - 41 + + 36 + ( 68 ) * 13 * - ( CAST( - 34 AS SIGNED ) + 30 / 76 ) + - 2 * 84 THEN + 27 + COUNT( * ) ELSE NULL END WHEN MAX( DISTINCT + 25 ) THEN COUNT( * ) - 38 WHEN + 91 THEN - 32 + 84 WHEN 71 THEN 26 * 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT - 96 + + - CASE - + 5 WHEN - 73 THEN - 46 - - CASE - 95 WHEN COUNT ( * ) THEN NULL WHEN - 19 * MAX ( DISTINCT - 14 ) * - 41 + + 36 + ( 68 ) * 13 * - ( CAST ( - 34 AS INTEGER ) + 30 / 76 ) + - 2 * 84 THEN + 27 + COUNT ( * ) ELSE NULL END WHEN MAX ( DISTINCT + 25 ) THEN COUNT ( * ) - 38 WHEN + 91 THEN - 32 + 84 WHEN 71 THEN 26 * 1 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2031
SELECT - CAST( 23 AS SIGNED ) AS col1, MIN( ALL - - 51 )
----
-23
51

skipif mysql # not compatible
query II rowsort label-2031
SELECT - CAST ( 23 AS INTEGER ) AS col1, MIN ( ALL - - 51 )
----
-23
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2032
SELECT + COUNT( * ) DIV 36 DIV COUNT( * ) DIV + 47 + + ( MIN( DISTINCT CAST( + + 76 AS SIGNED ) ) ) * + 26 AS col1
----
1976

skipif mysql # not compatible
query I rowsort label-2032
SELECT + COUNT ( * ) / 36 / COUNT ( * ) / + 47 + + ( MIN ( DISTINCT CAST ( + + 76 AS INTEGER ) ) ) * + 26 AS col1
----
1976

onlyif mysql # DIV for integer division: 
query II rowsort label-2033
SELECT ALL 42 * 3 AS col1, 31 DIV - 13 AS col2
----
126
-2

skipif mysql # not compatible
query II rowsort label-2033
SELECT ALL 42 * 3 AS col1, 31 / - 13 AS col2
----
126
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-2034
SELECT + 48 + + - COUNT( * ) AS col2, 66 + - 86 * - 23 AS col2
----
47
2044

skipif mysql # not compatible
query II rowsort label-2034
SELECT + 48 + + - COUNT ( * ) AS col2, 66 + - 86 * - 23 AS col2
----
47
2044

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT ALL - MAX( DISTINCT + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL - MAX ( DISTINCT + 26 )
----
-26

query I rowsort
SELECT NULLIF ( 29, - 2 ) + - - 31 AS col2
----
60

query I rowsort
SELECT DISTINCT 48 * + + 51
----
2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT 56 * - COUNT( * ) + - MIN( + 9 ) + - ( ( 31 ) ) * 65 * + CAST( + 23 AS SIGNED ) * 18
----
-834275

skipif mysql # not compatible
query I rowsort label-2039
SELECT 56 * - COUNT ( * ) + - MIN ( + 9 ) + - ( ( 31 ) ) * 65 * + CAST ( + 23 AS INTEGER ) * 18
----
-834275

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2041
SELECT ALL 76 DIV - + 31
----
-2

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL 76 / - + 31
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT - 29 * - 73 * - + 56 + ( + SUM( DISTINCT + 38 ) )
----
-118514

skipif mysql # not compatible
query I rowsort label-2042
SELECT - 29 * - 73 * - + 56 + ( + SUM ( DISTINCT + 38 ) )
----
-118514

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2043
SELECT - ( + + CASE + 83 WHEN + - 45 THEN NULL ELSE - 23 - + CASE - - MAX( DISTINCT 76 ) WHEN + CAST( - ( NULLIF ( + 69, 97 ) ) AS SIGNED ) - - 65 + - COUNT( DISTINCT 10 ) * 8 * NULLIF ( + 20 + + COALESCE ( + COUNT( * ), ( - 12 ) ), + CAST( 33 AS DECIMAL ) ) THEN 39 ELSE NULL END END ) + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT - ( + + CASE + 83 WHEN + - 45 THEN NULL ELSE - 23 - + CASE - - MAX ( DISTINCT 76 ) WHEN + CAST ( - ( NULLIF ( + 69, 97 ) ) AS INTEGER ) - - 65 + - COUNT ( DISTINCT 10 ) * 8 * NULLIF ( + 20 + + COALESCE ( + COUNT ( * ), ( - 12 ) ), + CAST ( 33 AS REAL ) ) THEN 39 ELSE NULL END END ) + 50 AS col2
----
NULL

query I rowsort
SELECT ALL 43 + 51 AS col0
----
94

query I rowsort
SELECT - 86 * + 81
----
-6966

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL - 47 + - COUNT( * ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - 47 + - COUNT ( * ) col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2047
SELECT + 95 + - COUNT( * ) AS col2, + 8 col0
----
94
8

skipif mysql # not compatible
query II rowsort label-2047
SELECT + 95 + - COUNT ( * ) AS col2, + 8 col0
----
94
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2048
SELECT ALL + - MAX( 61 ) + COALESCE ( - NULLIF ( - COUNT( * ), - + 99 / - CAST( NULL AS SIGNED ) + + COUNT( + 6 ) * + - 98 * + + MIN( ALL - 22 ) + - 94 ), 81 ) + 9 * 93 * 25 AS col0
----
20865

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL + - MAX ( 61 ) + COALESCE ( - NULLIF ( - COUNT ( * ), - + 99 / - CAST ( NULL AS INTEGER ) + + COUNT ( + 6 ) * + - 98 * + + MIN ( ALL - 22 ) + - 94 ), 81 ) + 9 * 93 * 25 AS col0
----
20865

query I rowsort
SELECT - - 79 * - 91 + - + 53 AS col1
----
-7242

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT DISTINCT + COUNT( * ) * + + 29 * - 88
----
-2552

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + COUNT ( * ) * + + 29 * - 88
----
-2552

query I rowsort
SELECT DISTINCT 88 + + + 98 - + 15
----
171

query I rowsort
SELECT NULLIF ( + 11, - - 78 * 66 ) AS col0
----
11

query I rowsort
SELECT ALL + - 58 + + + 49 AS col1
----
-9

query I rowsort
SELECT 17 * - 69 * 2 AS col2
----
-2346

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2055
SELECT ALL 72 + 87 * ( + 32 ) DIV - ( - SUM( 82 ) ) - - 59 AS col0
----
164

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL 72 + 87 * ( + 32 ) / - ( - SUM ( 82 ) ) - - 59 AS col0
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2056
SELECT DISTINCT + CASE 28 WHEN CAST( 11 AS SIGNED ) * + + 57 + + COUNT( * ) THEN + + 36 ELSE - 26 - 56 + + 93 * - 69 END AS col2
----
-6499

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT + CASE 28 WHEN CAST ( 11 AS INTEGER ) * + + 57 + + COUNT ( * ) THEN + + 36 ELSE - 26 - 56 + + 93 * - 69 END AS col2
----
-6499

onlyif mysql # aggregate syntax: 
query II rowsort label-2057
SELECT 71 * SUM( ALL - - 3 ) col1, 31 AS col2
----
213
31

skipif mysql # not compatible
query II rowsort label-2057
SELECT 71 * SUM ( ALL - - 3 ) col1, 31 AS col2
----
213
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2058
SELECT ALL - 59 DIV + + MAX( 43 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - 59 / + + MAX ( 43 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT ALL COALESCE ( - - 5, 72 + + ( + + 98 ) * + + 0 ) * + 91 + + + NULLIF ( - - 84, + 22 ) + + - 67 * + 61 * - COUNT( * ) - - 93
----
4719

skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL COALESCE ( - - 5, 72 + + ( + + 98 ) * + + 0 ) * + 91 + + + NULLIF ( - - 84, + 22 ) + + - 67 * + 61 * - COUNT ( * ) - - 93
----
4719

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2060
SELECT 90 DIV + COUNT( - 50 ) col0
----
90

skipif mysql # not compatible
query I rowsort label-2060
SELECT 90 / + COUNT ( - 50 ) col0
----
90

query I rowsort
SELECT 61 * + 46
----
2806

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT 97 * + - 74 * 93 * + ( - 15 ) * + 72 + - + 24 * + NULLIF ( + COUNT( * ), 14 * - COALESCE ( - COUNT( * ), - 42 ) * 15 + + 97 - SUM( ALL 26 ) ) AS col0
----
720958296

skipif mysql # not compatible
query I rowsort label-2062
SELECT 97 * + - 74 * 93 * + ( - 15 ) * + 72 + - + 24 * + NULLIF ( + COUNT ( * ), 14 * - COALESCE ( - COUNT ( * ), - 42 ) * 15 + + 97 - SUM ( ALL 26 ) ) AS col0
----
720958296

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2064
SELECT 71 - 26 + + 80 AS col1, 75 * COALESCE ( - COALESCE ( + 88, 8 * + COUNT( * ) ), + - NULLIF ( 14, + - 42 * - 42 ) )
----
125
-6600

skipif mysql # not compatible
query II rowsort label-2064
SELECT 71 - 26 + + 80 AS col1, 75 * COALESCE ( - COALESCE ( + 88, 8 * + COUNT ( * ) ), + - NULLIF ( 14, + - 42 * - 42 ) )
----
125
-6600

query I rowsort
SELECT 80 - - 46 col2
----
126

query I rowsort
SELECT DISTINCT - 52 - - 93
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2067
SELECT ALL 89 * - - CAST( 46 AS SIGNED ) AS col1
----
4094

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL 89 * - - CAST ( 46 AS INTEGER ) AS col1
----
4094

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

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

query I rowsort
SELECT DISTINCT 35 * - 13 AS col2
----
-455

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT 40 DIV 33 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2070
SELECT 40 / 33 AS col1
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2072
SELECT + CASE + COUNT( CAST( + - 34 AS SIGNED ) ) WHEN - 35 THEN NULL WHEN 0 THEN - 91 * 42 WHEN - 52 - + AVG ( - 91 ) * + + 91 THEN + - 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2072
SELECT + CASE + COUNT ( CAST ( + - 34 AS INTEGER ) ) WHEN - 35 THEN NULL WHEN 0 THEN - 91 * 42 WHEN - 52 - + AVG ( - 91 ) * + + 91 THEN + - 19 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT 83 DIV + 93 * 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2073
SELECT 83 / + 93 * 40 AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT - 7 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-2075
SELECT - 7 / 88
----
0

query I rowsort
SELECT - - 3 * ( - - 61 ) + + + 14 AS col2
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + NULLIF ( - 96, - - ( + - NULLIF ( + + 21, ( - 8 ) * - COUNT( * ) * COUNT( * ) ) ) )
----
-96

skipif mysql # not compatible
query I rowsort label-2077
SELECT + NULLIF ( - 96, - - ( + - NULLIF ( + + 21, ( - 8 ) * - COUNT ( * ) * COUNT ( * ) ) ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT - 60 + - + SUM( - + 53 ) + + 63 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2078
SELECT - 60 + - + SUM ( - + 53 ) + + 63 AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2079
SELECT CASE - + 21 WHEN - + 12 THEN COUNT( * ) * - + 38 ELSE - CASE - COALESCE ( - 5, - - 14 + - 8, + 79 - + 47 * + CASE + 64 WHEN - 4 + - 92 * 46 THEN NULL WHEN + CAST( NULL AS SIGNED ) * 57 THEN + 60 / 25 END ) WHEN COUNT( * ) * - MIN( DISTINCT + 62 ) THEN COUNT( * ) WHEN COUNT( * ) * ( 35 ) THEN NULL END END + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT CASE - + 21 WHEN - + 12 THEN COUNT ( * ) * - + 38 ELSE - CASE - COALESCE ( - 5, - - 14 + - 8, + 79 - + 47 * + CASE + 64 WHEN - 4 + - 92 * 46 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * 57 THEN + 60 / 25 END ) WHEN COUNT ( * ) * - MIN ( DISTINCT + 62 ) THEN COUNT ( * ) WHEN COUNT ( * ) * ( 35 ) THEN NULL END END + 57
----
NULL

query I rowsort
SELECT 86 * 16 + - 49 AS col0
----
1327

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL + CASE + 17 WHEN - + 65 + - COUNT( * ) THEN NULL WHEN - - 48 + - ( COUNT( * ) ) THEN - 73 END + + COUNT( ALL + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + CASE + 17 WHEN - + 65 + - COUNT ( * ) THEN NULL WHEN - - 48 + - ( COUNT ( * ) ) THEN - 73 END + + COUNT ( ALL + 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT - SUM( - - 6 ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT - SUM ( - - 6 ) col2
----
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL + COALESCE ( + 32, + 35 ) * + - 21 * + COUNT( * )
----
-672

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL + COALESCE ( + 32, + 35 ) * + - 21 * + COUNT ( * )
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2085
SELECT 54 + MIN( - 54 ) - - - 71 / CASE + + CAST( NULL AS SIGNED ) WHEN 21 * + - CASE - 39 WHEN + - 25 THEN + COUNT( * ) END * + COUNT( * ) * 78 + + + 82 * + - COUNT( * ) * - 80 + - 56 THEN + 64 ELSE NULL END / - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT 54 + MIN ( - 54 ) - - - 71 / CASE + + CAST ( NULL AS INTEGER ) WHEN 21 * + - CASE - 39 WHEN + - 25 THEN + COUNT ( * ) END * + COUNT ( * ) * 78 + + + 82 * + - COUNT ( * ) * - 80 + - 56 THEN + 64 ELSE NULL END / - 24 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT - MIN( DISTINCT - COALESCE ( + 19, 9 + - 27 + + 26 ) )
----
19

skipif mysql # not compatible
query I rowsort label-2086
SELECT - MIN ( DISTINCT - COALESCE ( + 19, 9 + - 27 + + 26 ) )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2087
SELECT 90 + CAST( + + 17 AS SIGNED ) AS col2
----
107

skipif mysql # not compatible
query I rowsort label-2087
SELECT 90 + CAST ( + + 17 AS INTEGER ) AS col2
----
107

query I rowsort
SELECT ALL 73 - 36 AS col1
----
37

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

skipif mysql # not compatible
query I rowsort label-2089
SELECT - SUM ( DISTINCT - 28 )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-2090
SELECT 15 col0, + COALESCE ( 13, - COUNT( * ) ) AS col2
----
15
13

skipif mysql # not compatible
query II rowsort label-2090
SELECT 15 col0, + COALESCE ( 13, - COUNT ( * ) ) AS col2
----
15
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT 0 + + 59 + - + CAST( + 27 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-2091
SELECT 0 + + 59 + - + CAST ( + 27 AS INTEGER )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT 6 * + MAX( CAST( NULL AS SIGNED ) ) * - - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT 6 * + MAX ( CAST ( NULL AS INTEGER ) ) * - - 23 AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( - 52, - + 20, 0 + - 41 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT 16 - + COUNT( + NULLIF ( - - ( + CASE - + 49 WHEN 53 * + 71 * + - 46 THEN + - 82 END ), + 17 ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2094
SELECT 16 - + COUNT ( + NULLIF ( - - ( + CASE - + 49 WHEN 53 * + 71 * + - 46 THEN + - 82 END ), + 17 ) ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2095
SELECT ALL COUNT( * ) AS col2, + ( + - 60 )
----
1
-60

skipif mysql # not compatible
query II rowsort label-2095
SELECT ALL COUNT ( * ) AS col2, + ( + - 60 )
----
1
-60

query I rowsort
SELECT 90 + - + 33
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2097
SELECT ALL + 92 DIV COUNT( * ) * + 87
----
8004

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + 92 / COUNT ( * ) * + 87
----
8004

onlyif mysql # aggregate syntax: 
query II rowsort label-2098
SELECT ALL COUNT( * ) AS col2, + 21
----
1
21

skipif mysql # not compatible
query II rowsort label-2098
SELECT ALL COUNT ( * ) AS col2, + 21
----
1
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2099
SELECT DISTINCT + COUNT( * ) DIV - - 43 * + - COALESCE ( + + COUNT( * ), - - 5, 67 ) * 88, 41 AS col2
----
0
41

skipif mysql # not compatible
query II rowsort label-2099
SELECT DISTINCT + COUNT ( * ) / - - 43 * + - COALESCE ( + + COUNT ( * ), - - 5, 67 ) * 88, 41 AS col2
----
0
41

query II rowsort
SELECT - 77 + - 40 AS col0, + 30 AS col0
----
-117
30

query I rowsort
SELECT - 95 * - 42 * 79
----
315210

query I rowsort
SELECT - 71 * - 94 * 35 AS col1
----
233590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2103
SELECT - 83 + - COUNT( + 57 ) DIV - + 33
----
-83

skipif mysql # not compatible
query I rowsort label-2103
SELECT - 83 + - COUNT ( + 57 ) / - + 33
----
-83

query I rowsort
SELECT ALL CASE + 60 WHEN + 92 THEN + + 3 ELSE + - 63 END
----
-63

query I rowsort
SELECT - 59 + + + 16
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT - 35 + CAST( - 54 AS SIGNED ) + 24 * - 10
----
-329

skipif mysql # not compatible
query I rowsort label-2106
SELECT - 35 + CAST ( - 54 AS INTEGER ) + 24 * - 10
----
-329

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL 58 * - COUNT( * ) + - 6
----
-64

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL 58 * - COUNT ( * ) + - 6
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2109
SELECT - + 78 * + 42 DIV 93 * SUM( ALL - NULLIF ( - 0, + + 28 ) ) + - 38 + + 7 + - 17 * - - 87 * 84 + - 0
----
-124267

skipif mysql # not compatible
query I rowsort label-2109
SELECT - + 78 * + 42 / 93 * SUM ( ALL - NULLIF ( - 0, + + 28 ) ) + - 38 + + 7 + - 17 * - - 87 * 84 + - 0
----
-124267

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2110
SELECT ALL + 41, - COALESCE ( - 39, + 73 DIV - ( - 10 ) * + + COUNT( * ) - + 86 ) + + + 62 AS col0
----
41
101

skipif mysql # not compatible
query II rowsort label-2110
SELECT ALL + 41, - COALESCE ( - 39, + 73 / - ( - 10 ) * + + COUNT ( * ) - + 86 ) + + + 62 AS col0
----
41
101

query I rowsort
SELECT DISTINCT - 14 * 17
----
-238

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT DISTINCT + - 65 AS col2, 67 * + 89 * + COUNT( * )
----
-65
5963

skipif mysql # not compatible
query II rowsort label-2112
SELECT DISTINCT + - 65 AS col2, 67 * + 89 * + COUNT ( * )
----
-65
5963

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT + 5 + - MAX( 8 ) * + 44 * + 26
----
-9147

skipif mysql # not compatible
query I rowsort label-2113
SELECT + 5 + - MAX ( 8 ) * + 44 * + 26
----
-9147

query I rowsort
SELECT - - 64 * - + ( + 29 )
----
-1856

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT + - 59 + 10 * + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-2115
SELECT + - 59 + 10 * + COUNT ( * )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT DISTINCT - CAST( - 87 AS SIGNED ) * 36
----
3132

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT - CAST ( - 87 AS INTEGER ) * 36
----
3132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT + CASE + CAST( 99 AS SIGNED ) WHEN AVG ( DISTINCT CAST( - + 28 AS SIGNED ) ) THEN + 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT + CASE + CAST ( 99 AS INTEGER ) WHEN AVG ( DISTINCT CAST ( - + 28 AS INTEGER ) ) THEN + 76 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2118
SELECT ALL - 13 * CAST( - + 37 AS SIGNED ) - + CASE CAST( - 57 AS DECIMAL ) WHEN + - COUNT( * ) THEN - COUNT( * ) ELSE + 71 * - + NULLIF ( + 29, - 95 ) END * - 20 AS col1
----
-40699

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL - 13 * CAST ( - + 37 AS INTEGER ) - + CASE CAST ( - 57 AS REAL ) WHEN + - COUNT ( * ) THEN - COUNT ( * ) ELSE + 71 * - + NULLIF ( + 29, - 95 ) END * - 20 AS col1
----
-40699

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT + + CASE WHEN NOT + SUM( - ( - + 22 ) ) <> - ( - - 58 ) THEN + ( 30 ) END * 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + + CASE WHEN NOT + SUM ( - ( - + 22 ) ) <> - ( - - 58 ) THEN + ( 30 ) END * 63 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2121
SELECT DISTINCT + CAST( NULL AS SIGNED ), - ( + - 8 ) * + 95 AS col2
----
NULL
760

skipif mysql # not compatible
query II rowsort label-2121
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - ( + - 8 ) * + 95 AS col2
----
NULL
760

query I rowsort
SELECT ALL 68 * - 30
----
-2040

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2124
SELECT ALL + 38 DIV - COUNT( 48 ) + + - 21
----
-59

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL + 38 / - COUNT ( 48 ) + + - 21
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2125
SELECT + 78, 32 * - 38 * - SUM( - NULLIF ( - - 37, + + 57 ) ) AS col0
----
78
-44992

skipif mysql # not compatible
query II rowsort label-2125
SELECT + 78, 32 * - 38 * - SUM ( - NULLIF ( - - 37, + + 57 ) ) AS col0
----
78
-44992

query I rowsort
SELECT + 44 * - 43 AS col2
----
-1892

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

skipif mysql # not compatible
query I rowsort label-2127
SELECT - SUM ( DISTINCT 68 )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2128
SELECT + 61 DIV + COALESCE ( - 59, - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2128
SELECT + 61 / + COALESCE ( - 59, - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT ALL COUNT( DISTINCT - 23 ) / - 66 * - 66 - CASE 15 WHEN + 41 THEN 89 END + - CAST( - + 28 AS SIGNED ) / 44 / + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL COUNT ( DISTINCT - 23 ) / - 66 * - 66 - CASE 15 WHEN + 41 THEN 89 END + - CAST ( - + 28 AS INTEGER ) / 44 / + - 64
----
NULL

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

query I rowsort
SELECT - 38 + - + 69 * 96 AS col0
----
-6662

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2132
SELECT DISTINCT 25 * CAST( NULL AS SIGNED ) col1, 60 AS col2
----
NULL
60

skipif mysql # not compatible
query II rowsort label-2132
SELECT DISTINCT 25 * CAST ( NULL AS INTEGER ) col1, 60 AS col2
----
NULL
60

query II rowsort
SELECT - COALESCE ( + 98, + - ( + 64 ) * 25 ) AS col2, 58 AS col0
----
-98
58

query II rowsort
SELECT - 54 * - 99 AS col0, + ( 2 )
----
5346
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2135
SELECT ALL AVG ( - 94 ) * - 75 * - 58 * 83 / - - CAST( NULL AS SIGNED ) + + - 54 AS col0, - 31 - + 61 * + 42 + 0 * COUNT( * )
----
NULL
-2593

skipif mysql # not compatible
query II rowsort label-2135
SELECT ALL AVG ( - 94 ) * - 75 * - 58 * 83 / - - CAST ( NULL AS INTEGER ) + + - 54 AS col0, - 31 - + 61 * + 42 + 0 * COUNT ( * )
----
NULL
-2593

query I rowsort
SELECT + 42 - - 49 AS col0
----
91

query I rowsort
SELECT DISTINCT + 80 + - 18 * + + 24
----
-352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2138
SELECT - CAST( - 54 AS SIGNED ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2138
SELECT - CAST ( - 54 AS INTEGER ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL + CASE + COUNT( * ) WHEN + 37 / + + 17 * 80 / + + MIN( - 47 ) THEN NULL WHEN 13 THEN - CASE 85 WHEN - + 67 THEN - 60 + - - 65 END END + + 50 + 42 / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + CASE + COUNT ( * ) WHEN + 37 / + + 17 * 80 / + + MIN ( - 47 ) THEN NULL WHEN 13 THEN - CASE 85 WHEN - + 67 THEN - 60 + - - 65 END END + + 50 + 42 / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL COALESCE ( + MIN( + - 10 ), 54 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL COALESCE ( + MIN ( + - 10 ), 54 ) AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT - MIN( + CASE + + 39 WHEN + 39 THEN - 11 + + - 35 ELSE NULL END )
----
46

skipif mysql # not compatible
query I rowsort label-2141
SELECT - MIN ( + CASE + + 39 WHEN + 39 THEN - 11 + + - 35 ELSE NULL END )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2142
SELECT - 53 * - 56 AS col0, 30 * COUNT( * ) DIV + + 30 * - COUNT( + - 71 ) + + 61 * + - 27
----
2968
-1648

skipif mysql # not compatible
query II rowsort label-2142
SELECT - 53 * - 56 AS col0, 30 * COUNT ( * ) / + + 30 * - COUNT ( + - 71 ) + + 61 * + - 27
----
2968
-1648

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL + CASE COALESCE ( - 51, - 24 ) WHEN - COALESCE ( - 59, + COALESCE ( - + ( - - 1 ), 1, + 1 + 33 ) ) + SUM( DISTINCT ( - 95 ) ) THEN + 66 WHEN 12 THEN NULL END * 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL + CASE COALESCE ( - 51, - 24 ) WHEN - COALESCE ( - 59, + COALESCE ( - + ( - - 1 ), 1, + 1 + 33 ) ) + SUM ( DISTINCT ( - 95 ) ) THEN + 66 WHEN 12 THEN NULL END * 92 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2144
SELECT - - ( 37 ) / COUNT ( * )
----
37

query II rowsort
SELECT + - ( + - 24 ), 54 AS col1
----
24
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2146
SELECT 68 DIV + 86 * + - COUNT( * ) + + 3 - + - 83
----
86

skipif mysql # not compatible
query I rowsort label-2146
SELECT 68 / + 86 * + - COUNT ( * ) + + 3 - + - 83
----
86

query I rowsort
SELECT + - 10 * + + 3 - - 65 col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT - + 94 DIV 55 + - 73
----
-74

skipif mysql # not compatible
query I rowsort label-2148
SELECT - + 94 / 55 + - 73
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2149
SELECT - 98 DIV - 31 AS col1, COUNT( * ) - + + 46 - - + 27 AS col0
----
3
-18

skipif mysql # not compatible
query II rowsort label-2149
SELECT - 98 / - 31 AS col1, COUNT ( * ) - + + 46 - - + 27 AS col0
----
3
-18

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2152
SELECT ALL + 59 / - CAST( NULL AS SIGNED ) - - COUNT( * ) * + + 83
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2154
SELECT - - MIN( ALL 81 ) * - 55 AS col0, 13 AS col2
----
-4455
13

skipif mysql # not compatible
query II rowsort label-2154
SELECT - - MIN ( ALL 81 ) * - 55 AS col0, 13 AS col2
----
-4455
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + - 37 * 79 * + CASE + + 70 WHEN + COUNT( * ) + + 77 + - 72 * 42 THEN NULL WHEN 9 * 36 * + + COALESCE ( - 50, COUNT( * ) ) + - COUNT( * ) + - - 70 + - 31 * + ( - 48 ) * 73 THEN - 81 ELSE ( - 88 ) END * - 69 + 7 * 28
----
-17748260

skipif mysql # not compatible
query I rowsort label-2155
SELECT + - 37 * 79 * + CASE + + 70 WHEN + COUNT ( * ) + + 77 + - 72 * 42 THEN NULL WHEN 9 * 36 * + + COALESCE ( - 50, COUNT ( * ) ) + - COUNT ( * ) + - - 70 + - 31 * + ( - 48 ) * 73 THEN - 81 ELSE ( - 88 ) END * - 69 + 7 * 28
----
-17748260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2156
SELECT + COALESCE ( + - 7, + COALESCE ( - 76, - 37 - - 41, + 4 DIV + MAX( DISTINCT + - 87 ) ) + 82 * + 25 DIV + + 10 ) * 89 * 77 AS col0
----
-47971

skipif mysql # not compatible
query I rowsort label-2156
SELECT + COALESCE ( + - 7, + COALESCE ( - 76, - 37 - - 41, + 4 / + MAX ( DISTINCT + - 87 ) ) + 82 * + 25 / + + 10 ) * 89 * 77 AS col0
----
-47971

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT - - COUNT( * ) + + MIN( + 31 ) * 84
----
2605

skipif mysql # not compatible
query I rowsort label-2157
SELECT - - COUNT ( * ) + + MIN ( + 31 ) * 84
----
2605

onlyif mysql # DIV for integer division: 
query I rowsort label-2158
SELECT ALL + 10 * + + 30 * - 83 * - 32 * - 0 * + 50 * 6 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + 10 * + + 30 * - 83 * - 32 * - 0 * + 50 * 6 / + 60
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2159
SELECT - ( - CAST( - - 90 AS SIGNED ) ) + + COUNT( 73 ) + - 19 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2159
SELECT - ( - CAST ( - - 90 AS INTEGER ) ) + + COUNT ( 73 ) + - 19 AS col2
----
72

query II rowsort
SELECT DISTINCT - 19 col2, 27 AS col1
----
-19
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT 10 * 39 * - - COUNT( DISTINCT - - 56 ) + + 85
----
475

skipif mysql # not compatible
query I rowsort label-2161
SELECT 10 * 39 * - - COUNT ( DISTINCT - - 56 ) + + 85
----
475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2162
SELECT + 43 AS col1, COUNT( * ) * + + CAST( NULL AS SIGNED ) + + 62
----
43
NULL

skipif mysql # not compatible
query II rowsort label-2162
SELECT + 43 AS col1, COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + + 62
----
43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL + COUNT( * ) + + + ( COUNT( * ) ) - - 5
----
7

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL + COUNT ( * ) + + + ( COUNT ( * ) ) - - 5
----
7

query II rowsort
SELECT - 54 AS col2, 56
----
-54
56

query I rowsort
SELECT 25 + - ( - 98 ) AS col2
----
123

query I rowsort
SELECT ALL 78 + 68
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2167
SELECT COUNT( * ) * + - 54 DIV 88, 27 col1
----
0
27

skipif mysql # not compatible
query II rowsort label-2167
SELECT COUNT ( * ) * + - 54 / 88, 27 col1
----
0
27

query I rowsort
SELECT 15 + 20 AS col1
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-2169
SELECT DISTINCT 70 AS col2, - 92 DIV - 98
----
70
0

skipif mysql # not compatible
query II rowsort label-2169
SELECT DISTINCT 70 AS col2, - 92 / - 98
----
70
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2170
SELECT ALL ( + 44 ) + + COALESCE ( + 71, + COUNT( - 87 ), + + 45 ) + + 37 * 15 * - 3 * COUNT( * ), - 34 AS col0
----
-1550
-34

skipif mysql # not compatible
query II rowsort label-2170
SELECT ALL ( + 44 ) + + COALESCE ( + 71, + COUNT ( - 87 ), + + 45 ) + + 37 * 15 * - 3 * COUNT ( * ), - 34 AS col0
----
-1550
-34

query I rowsort
SELECT DISTINCT 77 + + 80 + + 15 * 16 AS col0
----
397

query I rowsort
SELECT DISTINCT + - 28 + + 2 * 28 + 17 * - - 4 AS col1
----
96

query II rowsort
SELECT 81 + - ( + 77 ), 68 col2
----
4
68

query I rowsort
SELECT ALL - 19 * - 57 AS col1
----
1083

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

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

query I rowsort
SELECT 91 + + 34 AS col1
----
125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT DISTINCT - + 86 - + MAX( - 0 )
----
-86

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT - + 86 - + MAX ( - 0 )
----
-86

query I rowsort
SELECT DISTINCT - 26 * + + 74 * + 20
----
-38480

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT ALL - - 36 DIV - + 85 * + - 75 * + ( 91 )
----
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL - - 36 / - + 85 * + - 75 * + ( 91 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ALL - NULLIF ( 23, COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL - NULLIF ( 23, COUNT ( * ) )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2182
SELECT 82 * - 83 + + AVG ( DISTINCT + 43 ) * - CAST( NULL AS SIGNED ) + + + 61 AS col0, + 30 AS col2
----
NULL
30

skipif mysql # not compatible
query II rowsort label-2182
SELECT 82 * - 83 + + AVG ( DISTINCT + 43 ) * - CAST ( NULL AS INTEGER ) + + + 61 AS col0, + 30 AS col2
----
NULL
30

query I rowsort
SELECT 47 * 65 - - CASE WHEN NOT NULL = NULL THEN + 44 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2184
SELECT + ( - 5 ) * - + COUNT ( * ) / + + 97
----
0

query I rowsort
SELECT 6 + + 44 AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2186
SELECT 37 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-2186
SELECT 37 / - + 65
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( - 82, - + 91, 3 * - 53 ) * + 51 + - 69
----
4113

query II rowsort
SELECT ALL - 96 AS col1, 35
----
-96
35

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT 86 * + 63 + + 15 + + 88 DIV 75 + + 69 * + + 93 * + 53 + - 24
----
345511

skipif mysql # not compatible
query I rowsort label-2190
SELECT 86 * + 63 + + 15 + + 88 / 75 + + 69 * + + 93 * + 53 + - 24
----
345511

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT - SUM( ALL 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT - SUM ( ALL 95 ) AS col0
----
-95

query I rowsort
SELECT DISTINCT + 97 + - - 94 AS col2
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT DISTINCT + 24 + 43 + + - COUNT( DISTINCT 97 ) + + ( + 52 )
----
118

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT + 24 + 43 + + - COUNT ( DISTINCT 97 ) + + ( + 52 )
----
118

query I rowsort
SELECT ALL + ( COALESCE ( + 1, - 62 + 15 ) ) + + 43 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT - MIN( DISTINCT NULLIF ( 1, ( - 75 ) * - - 85 - - 7 + 89 + + 93 + + 4 * 50 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT - MIN ( DISTINCT NULLIF ( 1, ( - 75 ) * - - 85 - - 7 + 89 + + 93 + + 4 * 50 ) )
----
-1

query I rowsort
SELECT 96 - + 50 - 30 + - 12 * 84 col1
----
-992

query I rowsort
SELECT 34 * ( + 96 ) col2
----
3264

query I rowsort
SELECT ALL - 80 + - + 81 + + + 88
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT 5 * + COUNT( DISTINCT ( + + 40 ) ) col1
----
5

skipif mysql # not compatible
query I rowsort label-2200
SELECT 5 * + COUNT ( DISTINCT ( + + 40 ) ) col1
----
5

query I rowsort
SELECT DISTINCT - ( 55 ) + + - 48 AS col1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT 24 / - CASE - 25 WHEN + 56 THEN - NULLIF ( ( + 50 ), + ( ( - + MIN( DISTINCT 80 ) ) ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT 24 / - CASE - 25 WHEN + 56 THEN - NULLIF ( ( + 50 ), + ( ( - + MIN ( DISTINCT 80 ) ) ) ) END AS col1
----
NULL

query I rowsort
SELECT 31 * + 45 * + + ( - + 62 ) AS col2
----
-86490

query I rowsort
SELECT ALL + COALESCE ( + ( + + 17 ), - 6 ) + + + 35 * + - 94 AS col1
----
-3273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2205
SELECT DISTINCT - 62 + + 9 - - COUNT( * ) + + COUNT( * ) DIV - 67 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT - 62 + + 9 - - COUNT ( * ) + + COUNT ( * ) / - 67 AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2206
SELECT 50 DIV + + NULLIF ( 81, + 25 + CAST( NULL AS SIGNED ) + + MAX( + 5 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2206
SELECT 50 / + + NULLIF ( 81, + 25 + CAST ( NULL AS INTEGER ) + + MAX ( + 5 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT 73 * + 82 * - + COUNT( * ) * - - 13 - + + COUNT( * ) AS col1
----
-77819

skipif mysql # not compatible
query I rowsort label-2207
SELECT 73 * + 82 * - + COUNT ( * ) * - - 13 - + + COUNT ( * ) AS col1
----
-77819

query I rowsort
SELECT - COALESCE ( - 68, + 6 ) AS col1
----
68

query I rowsort
SELECT DISTINCT - 66 - + - ( 29 ) - 0 * 51 - + + 58 + + - 79 + + 17 AS col2
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL CASE - + 45 WHEN - 45 - 65 THEN + COUNT( * ) ELSE - COUNT( * ) + - - 56 - + - 17 END col2
----
72

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL CASE - + 45 WHEN - 45 - 65 THEN + COUNT ( * ) ELSE - COUNT ( * ) + - - 56 - + - 17 END col2
----
72

query I rowsort
SELECT DISTINCT 72 * - - 87 + + + 49
----
6313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2212
SELECT + CAST( - - 45 AS SIGNED ) * ( 67 ) * + + 97 * 58
----
16962390

skipif mysql # not compatible
query I rowsort label-2212
SELECT + CAST ( - - 45 AS INTEGER ) * ( 67 ) * + + 97 * 58
----
16962390

query I rowsort
SELECT DISTINCT + 14 * 32 AS col2
----
448

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

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

query I rowsort
SELECT 21 * + 15 * + 48 col1
----
15120

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

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

query I rowsort
SELECT + - 26 * 25
----
-650

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2218
SELECT - 83 * - 67 - - + CAST( NULL AS DECIMAL ) * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2218
SELECT - 83 * - 67 - - + CAST ( NULL AS REAL ) * - 79
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2219
SELECT COUNT ( DISTINCT - + 15 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL + 3 * 99 + - ( COUNT( * ) ) + 59 + + 46 AS col0
----
401

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL + 3 * 99 + - ( COUNT ( * ) ) + 59 + + 46 AS col0
----
401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT + 2 - ( - COALESCE ( 33, 44 * AVG ( ALL - 86 ) + - COALESCE ( - 30, - 78 * + MAX( ALL - 26 ) * - NULLIF ( - CAST( NULL AS SIGNED ), - CAST( - + 20 AS SIGNED ) ) ) + 18, - 21 * - + 25 ) ) + + NULLIF ( CASE + 18 WHEN - ( - 1 ) * 59 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN - 40 * + 67 THEN MAX( - 16 ) * - 53 ELSE NULL END, - 82 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT + 2 - ( - COALESCE ( 33, 44 * AVG ( ALL - 86 ) + - COALESCE ( - 30, - 78 * + MAX ( ALL - 26 ) * - NULLIF ( - CAST ( NULL AS INTEGER ), - CAST ( - + 20 AS INTEGER ) ) ) + 18, - 21 * - + 25 ) ) + + NULLIF ( CASE + 18 WHEN - ( - 1 ) * 59 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN - 40 * + 67 THEN MAX ( - 16 ) * - 53 ELSE NULL END, - 82 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL + 53 * - - MAX( ALL - - 84 ) + - + 23 AS col0
----
4429

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL + 53 * - - MAX ( ALL - - 84 ) + - + 23 AS col0
----
4429

query I rowsort
SELECT - 79 * - 31
----
2449

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT DISTINCT + MIN( 91 )
----
91

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT + MIN ( 91 )
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT + NULLIF ( 85, + 30 * 13 ) * MIN( - - 3 ) * + + 83 + ( - 96 ) + 11 * 44 AS col0
----
21553

skipif mysql # not compatible
query I rowsort label-2226
SELECT + NULLIF ( 85, + 30 * 13 ) * MIN ( - - 3 ) * + + 83 + ( - 96 ) + 11 * 44 AS col0
----
21553

query I rowsort
SELECT ALL - 76 * + 27 + + 22 - 36 * + 70 * 21 * - 72 * 34 AS col1
----
129546130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2228
SELECT + 43 + - + CAST( NULL AS SIGNED ) + 72 AS col2, + 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-2228
SELECT + 43 + - + CAST ( NULL AS INTEGER ) + 72 AS col2, + 10
----
NULL
10

query I rowsort
SELECT ALL - 75 * + + 12 AS col1
----
-900

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2231
SELECT - CAST( 63 AS SIGNED ) * - + 7 + COUNT( * ) AS col0
----
442

skipif mysql # not compatible
query I rowsort label-2231
SELECT - CAST ( 63 AS INTEGER ) * - + 7 + COUNT ( * ) AS col0
----
442

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2233
SELECT ALL - 48 - - 85 - 47 * NULLIF ( + 92, - CAST( - 89 AS SIGNED ) ) + + COUNT( * ) * + 37 DIV + 92 * MAX( + + 23 ) + - + 45 AS col1
----
-4332

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL - 48 - - 85 - 47 * NULLIF ( + 92, - CAST ( - 89 AS INTEGER ) ) + + COUNT ( * ) * + 37 / + 92 * MAX ( + + 23 ) + - + 45 AS col1
----
-4332

query I rowsort
SELECT - 89 + + + 94
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT - MIN( - 53 ) + 67 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-2235
SELECT - MIN ( - 53 ) + 67 AS col2
----
120

query I rowsort
SELECT - 59 * + + 26 * + 87
----
-133458

query II rowsort
SELECT - 70 + 48 - 57 AS col2, ( - - 0 )
----
-79
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL - 37 * + SUM( ALL + + 15 ) * 1
----
-555

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL - 37 * + SUM ( ALL + + 15 ) * 1
----
-555

query I rowsort
SELECT - - 31 * 70 AS col2
----
2170

query I rowsort
SELECT - 31 - - 64
----
33

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

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

query I rowsort
SELECT ALL - 76 * - 88 AS col0
----
6688

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2244
SELECT + 49 + - COUNT( * ) + - 86 DIV - 56
----
49

skipif mysql # not compatible
query I rowsort label-2244
SELECT + 49 + - COUNT ( * ) + - 86 / - 56
----
49

query I rowsort
SELECT - - 0 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2246
SELECT + + ( 53 ) DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-2246
SELECT + + ( 53 ) / 68
----
0

query I rowsort
SELECT + + 99 - + ( + + 11 ) col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2248
SELECT ALL 60 DIV + 52 + 8 + ( - + 16 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL 60 / + 52 + 8 + ( - + 16 ) AS col2
----
-7

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

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + + MAX ( + 23 ) / + 54 + COUNT ( * ) + - 18 AS col1
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-2250
SELECT ALL - 45 DIV ( - + ( - 45 ) ) + - 41 + 28 AS col2, - 33 AS col2
----
-14
-33

skipif mysql # not compatible
query II rowsort label-2250
SELECT ALL - 45 / ( - + ( - 45 ) ) + - 41 + 28 AS col2, - 33 AS col2
----
-14
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2251
SELECT - ( + + CASE + 53 WHEN - + 15 THEN NULLIF ( - - COUNT( * ), - 25 * 1 + 53 * 67 * - 98 * + CAST( NULL AS SIGNED ) ) END ) / + - 59 + - 43 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT - ( + + CASE + 53 WHEN - + 15 THEN NULLIF ( - - COUNT ( * ), - 25 * 1 + 53 * 67 * - 98 * + CAST ( NULL AS INTEGER ) ) END ) / + - 59 + - 43 + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2252
SELECT + COUNT( * ) AS col1, - 65 + + CAST( - COUNT( * ) AS SIGNED )
----
1
-66

skipif mysql # not compatible
query II rowsort label-2252
SELECT + COUNT ( * ) AS col1, - 65 + + CAST ( - COUNT ( * ) AS INTEGER )
----
1
-66

query I rowsort
SELECT + 55 + - - 55
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT + MIN( DISTINCT + 64 ) * - 8 + - 85
----
-597

skipif mysql # not compatible
query I rowsort label-2254
SELECT + MIN ( DISTINCT + 64 ) * - 8 + - 85
----
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT + CASE + 77 WHEN - 94 THEN NULL WHEN - NULLIF ( - 87, 63 + + 32 * + 90 + - 75 ) * + + 10 - 65 + COUNT( * ) THEN 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT + CASE + 77 WHEN - 94 THEN NULL WHEN - NULLIF ( - 87, 63 + + 32 * + 90 + - 75 ) * + + 10 - 65 + COUNT ( * ) THEN 80 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + COUNT( * ) + ( - 48 ) * - 66 + + - 99 + - + 49 - 35
----
2986

skipif mysql # not compatible
query I rowsort label-2256
SELECT + COUNT ( * ) + ( - 48 ) * - 66 + + - 99 + - + 49 - 35
----
2986

query II rowsort
SELECT ALL + 76 AS col1, + 51 AS col0
----
76
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2258
SELECT ALL - CAST( NULL AS SIGNED ) * - AVG ( ALL - 17 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL - CAST ( NULL AS INTEGER ) * - AVG ( ALL - 17 ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT ( - - 66 )
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-2260
SELECT ALL + 17 DIV - 81, 37 AS col0
----
0
37

skipif mysql # not compatible
query II rowsort label-2260
SELECT ALL + 17 / - 81, 37 AS col0
----
0
37

query II rowsort
SELECT ALL + 76 AS col1, 98 AS col0
----
76
98

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2263
SELECT CASE AVG ( DISTINCT + + 9 ) WHEN 74 / + + 74 THEN - + MAX( DISTINCT + - 93 ) * NULLIF ( - ( - + 68 ), + 6 * + - 89 * + NULLIF ( 91, - - 11 ) ) + + ( + + 47 ) END col0, + 37 AS col1
----
NULL
37

skipif mysql # not compatible
query II rowsort label-2263
SELECT CASE AVG ( DISTINCT + + 9 ) WHEN 74 / + + 74 THEN - + MAX ( DISTINCT + - 93 ) * NULLIF ( - ( - + 68 ), + 6 * + - 89 * + NULLIF ( 91, - - 11 ) ) + + ( + + 47 ) END col0, + 37 AS col1
----
NULL
37

query II rowsort
SELECT DISTINCT + 92 col0, + 18
----
92
18

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

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL ( - 46 ) / - COUNT ( * ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2266
SELECT + 53 - - ( - 98 ) + + + COUNT( * ) + - 62 + + MIN( + - CAST( + ( - 72 ) AS SIGNED ) ) * - 95
----
-6946

skipif mysql # not compatible
query I rowsort label-2266
SELECT + 53 - - ( - 98 ) + + + COUNT ( * ) + - 62 + + MIN ( + - CAST ( + ( - 72 ) AS INTEGER ) ) * - 95
----
-6946

query I rowsort
SELECT DISTINCT + 99 * + 91
----
9009

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2269
SELECT ALL 67 * - - 63 + - COUNT( ALL + COALESCE ( 63, + 48 * + 40 - + + 36, - COALESCE ( - + 14, 79 ) ) ) AS col2, 59 * - - 34
----
4220
2006

skipif mysql # not compatible
query II rowsort label-2269
SELECT ALL 67 * - - 63 + - COUNT ( ALL + COALESCE ( 63, + 48 * + 40 - + + 36, - COALESCE ( - + 14, 79 ) ) ) AS col2, 59 * - - 34
----
4220
2006

query II rowsort
SELECT ALL + 92 AS col2, 57
----
92
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2271
SELECT - COUNT( * ) - CASE + - COUNT( * ) WHEN 52 THEN - 59 + + COUNT( * ) WHEN 8 * + - CASE - 9 WHEN 17 * - - CAST( NULL AS SIGNED ) + 63 THEN CASE + + COUNT( * ) WHEN + - COUNT( * ) + + SUM( - CAST( NULL AS SIGNED ) ) + - + COUNT( * ) THEN 5 END END + - 35 + - + 76 * 86 / + CASE - 2 * - COALESCE ( 49, NULLIF ( AVG ( + CAST( - 50 AS SIGNED ) ), 54 + + 35 ), + 78 * - 94 ) WHEN + 47 THEN ( 86 ) + 56 WHEN + 42 - + 64 THEN + 65 END - + 99 * 18 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT - COUNT ( * ) - CASE + - COUNT ( * ) WHEN 52 THEN - 59 + + COUNT ( * ) WHEN 8 * + - CASE - 9 WHEN 17 * - - CAST ( NULL AS INTEGER ) + 63 THEN CASE + + COUNT ( * ) WHEN + - COUNT ( * ) + + SUM ( - CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) THEN 5 END END + - 35 + - + 76 * 86 / + CASE - 2 * - COALESCE ( 49, NULLIF ( AVG ( + CAST ( - 50 AS INTEGER ) ), 54 + + 35 ), + 78 * - 94 ) WHEN + 47 THEN ( 86 ) + 56 WHEN + 42 - + 64 THEN + 65 END - + 99 * 18 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - + 19 * + 18 col2
----
-342

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL SUM( - + NULLIF ( + 60, - ( + 42 ) / - 94 * + - 99 ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL SUM ( - + NULLIF ( + 60, - ( + 42 ) / - 94 * + - 99 ) ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2275
SELECT - 8, + CASE + SUM( + + 76 ) WHEN + COUNT( * ) + - 79 + + + 44 THEN + CAST( 49 AS SIGNED ) / - - 54 END AS col1
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-2275
SELECT - 8, + CASE + SUM ( + + 76 ) WHEN + COUNT ( * ) + - 79 + + + 44 THEN + CAST ( 49 AS INTEGER ) / - - 54 END AS col1
----
-8
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2276
SELECT MAX( DISTINCT - CASE WHEN NOT 39 IS NULL THEN + 15 ELSE + 9 END ) AS col0, 33 * - 47 AS col2
----
-15
-1551

skipif mysql # not compatible
query II rowsort label-2276
SELECT MAX ( DISTINCT - CASE WHEN NOT 39 IS NULL THEN + 15 ELSE + 9 END ) AS col0, 33 * - 47 AS col2
----
-15
-1551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT + SUM( - - 20 ) + + CAST( + - 25 AS SIGNED ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2277
SELECT + SUM ( - - 20 ) + + CAST ( + - 25 AS INTEGER ) AS col2
----
-5

query I rowsort
SELECT ALL - - NULLIF ( - 86, - 29 ) + - 59 + 88 * - 69 AS col1
----
-6217

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

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

query I rowsort
SELECT DISTINCT + + 83 + + ( - 97 )
----
-14

query I rowsort
SELECT - 12 * 92 * - + 75 - 94 * - 75
----
89850

query II rowsort
SELECT + 16 AS col1, 0 * + 88 AS col2
----
16
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2283
SELECT ALL + COUNT( * ) + 22 * - ( + 99 ) + 91 AS col1, - CAST( NULL AS DECIMAL ) * - 47
----
-2086
NULL

skipif mysql # not compatible
query II rowsort label-2283
SELECT ALL + COUNT ( * ) + 22 * - ( + 99 ) + 91 AS col1, - CAST ( NULL AS REAL ) * - 47
----
-2086
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2284
SELECT + 99 DIV 70 - - 47
----
48

skipif mysql # not compatible
query I rowsort label-2284
SELECT + 99 / 70 - - 47
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2285
SELECT COALESCE ( 71, + 18 * - - COUNT( * ) + - + 24 DIV 0 + + COUNT( * ) + 70, + ( + - 60 ) ) * 74 - ( - 90 ) AS col1
----
5344

skipif mysql # not compatible
query I rowsort label-2285
SELECT COALESCE ( 71, + 18 * - - COUNT ( * ) + - + 24 / 0 + + COUNT ( * ) + 70, + ( + - 60 ) ) * 74 - ( - 90 ) AS col1
----
5344

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL - MIN( ALL - - 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL - MIN ( ALL - - 18 ) AS col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT ALL CAST( NULL AS SIGNED ) / - 42 * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL CAST ( NULL AS INTEGER ) / - 42 * - 83
----
NULL

query I rowsort
SELECT ALL + 48 - 17 AS col2
----
31

query I rowsort
SELECT ALL NULLIF ( + 3, + + 27 ) - 64 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT - 54 * 47 * 51 * - NULLIF ( - ( - 56 ), - COUNT( * ) ) - + MAX( DISTINCT + 76 )
----
7248452

skipif mysql # not compatible
query I rowsort label-2290
SELECT - 54 * 47 * 51 * - NULLIF ( - ( - 56 ), - COUNT ( * ) ) - + MAX ( DISTINCT + 76 )
----
7248452

query II rowsort
SELECT 40 - 23 * - 14, 5 AS col1
----
362
5

query I rowsort
SELECT - 54 * + 95 * + 92 + - - 27
----
-471933

query I rowsort
SELECT 49 * - - 29 + - 5
----
1416

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + 16 * + + COUNT( * ) - - 41 + - - 83 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-2294
SELECT + 16 * + + COUNT ( * ) - - 41 + - - 83 AS col2
----
140

query I rowsort
SELECT ALL 41 * + ( 23 ) AS col1
----
943

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT COUNT( * ) * 93 * 47 AS col1
----
4371

skipif mysql # not compatible
query I rowsort label-2296
SELECT COUNT ( * ) * 93 * 47 AS col1
----
4371

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT DISTINCT + COALESCE ( + + MIN( ALL + - 18 ), + ( - 82 ), + 1 ) * - COUNT( * ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT + COALESCE ( + + MIN ( ALL + - 18 ), + ( - 82 ), + 1 ) * - COUNT ( * ) AS col1
----
18

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

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

query I rowsort
SELECT ALL - CASE 69 WHEN - - 12 - 92 - 59 THEN 24 WHEN - 51 * - 58 THEN NULL WHEN + 56 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2300
SELECT 81 DIV - 9 + - + 23 DIV CAST( SUM( DISTINCT + 70 ) AS SIGNED ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-2300
SELECT 81 / - 9 + - + 23 / CAST ( SUM ( DISTINCT + 70 ) AS INTEGER ) col2
----
-9

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

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

query I rowsort
SELECT ALL + 85 + + - 90
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2303
SELECT - CAST( - + CASE COALESCE ( - 22, - + AVG ( - 27 ) + 11, - 1 * + 72 * + 88 * + 66 + - 13 + - - CASE - + ( + 52 ) WHEN + 31 + + 26 THEN + + ( - 17 ) * - - COUNT( * ) WHEN - 94 / + 1 * 43 THEN 69 ELSE NULL END * + 86 ) WHEN + 25 / 80 THEN NULL ELSE - MAX( ALL 21 ) END AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-2303
SELECT - CAST ( - + CASE COALESCE ( - 22, - + AVG ( - 27 ) + 11, - 1 * + 72 * + 88 * + 66 + - 13 + - - CASE - + ( + 52 ) WHEN + 31 + + 26 THEN + + ( - 17 ) * - - COUNT ( * ) WHEN - 94 / + 1 * 43 THEN 69 ELSE NULL END * + 86 ) WHEN + 25 / 80 THEN NULL ELSE - MAX ( ALL 21 ) END AS INTEGER )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - 79 + - 78 + - COUNT( * ) * - 85
----
-72

skipif mysql # not compatible
query I rowsort label-2304
SELECT - 79 + - 78 + - COUNT ( * ) * - 85
----
-72

query I rowsort
SELECT ALL 23 * + 50 * - 66
----
-75900

onlyif mysql # DIV for integer division: 
query I rowsort label-2306
SELECT 60 DIV + 28 + - 20
----
-18

skipif mysql # not compatible
query I rowsort label-2306
SELECT 60 / + 28 + - 20
----
-18

query I rowsort
SELECT ALL + 82 + + 79
----
161

query I rowsort
SELECT ALL 67 + + + 14 AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT DISTINCT + 66 * 75 + - ( + CAST( 35 AS SIGNED ) ) + - 96 AS col1
----
4819

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT + 66 * 75 + - ( + CAST ( 35 AS INTEGER ) ) + - 96 AS col1
----
4819

onlyif mysql # aggregate syntax: 
query II rowsort label-2310
SELECT ALL + COALESCE ( + 74, COUNT( * ), - 88 - - - 67 * - COUNT( * ) - - 66 ) + 40 AS col1, + 12 AS col0
----
114
12

skipif mysql # not compatible
query II rowsort label-2310
SELECT ALL + COALESCE ( + 74, COUNT ( * ), - 88 - - - 67 * - COUNT ( * ) - - 66 ) + 40 AS col1, + 12 AS col0
----
114
12

query I rowsort
SELECT + 20 * 62
----
1240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2312
SELECT + ( - + 38 ) + - - 16 AS col2, - 16 DIV + + MIN( DISTINCT + 57 ) AS col0
----
-22
0

skipif mysql # not compatible
query II rowsort label-2312
SELECT + ( - + 38 ) + - - 16 AS col2, - 16 / + + MIN ( DISTINCT + 57 ) AS col0
----
-22
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT ALL COUNT( * ) + + 3 * + 29 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL COUNT ( * ) + + 3 * + 29 AS col0
----
88

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT 78 * COUNT( DISTINCT - - ( - 4 ) )
----
78

skipif mysql # not compatible
query I rowsort label-2316
SELECT 78 * COUNT ( DISTINCT - - ( - 4 ) )
----
78

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2319
SELECT DISTINCT + 34 * CASE + - COUNT( * ) WHEN - 36 THEN + - 59 WHEN + CAST( - - 88 AS SIGNED ) + - + ( - 73 ) THEN NULL END - + COALESCE ( - - 13, + 11 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT + 34 * CASE + - COUNT ( * ) WHEN - 36 THEN + - 59 WHEN + CAST ( - - 88 AS INTEGER ) + - + ( - 73 ) THEN NULL END - + COALESCE ( - - 13, + 11 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL + 16 * + SUM( ALL 45 )
----
720

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL + 16 * + SUM ( ALL 45 )
----
720

query I rowsort
SELECT 31 + + + 73
----
104

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

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

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

skipif mysql # not compatible
query I rowsort label-2323
SELECT COUNT ( * ) * - + 26 + + 5 AS col1
----
-21

query I rowsort
SELECT DISTINCT - NULLIF ( - 78, 43 * - + 5 ) AS col1
----
78

query I rowsort
SELECT 14 * + - 59
----
-826

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT 21 DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-2327
SELECT 21 / + - 61
----
0

query I rowsort
SELECT 59 + + 34 * 57
----
1997

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT - COALESCE ( - 80, SUM( ALL - + 21 ) + - 74 )
----
80

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT - COALESCE ( - 80, SUM ( ALL - + 21 ) + - 74 )
----
80

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

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

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

skipif mysql # not compatible
query I rowsort label-2331
SELECT 56 * 75 / - + 18 * + - COUNT ( * ) AS col1
----
233

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT ALL 94 DIV + 11
----
8

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL 94 / + 11
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL - 82 / + + CASE 28 WHEN - - 23 * - 66 * 8 + + 53 + 71 - 57 / + + 64 * - 50 + + 51 - COUNT( * ) * + 36 + - 20 * - 32 + - 44 THEN + 63 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - 82 / + + CASE 28 WHEN - - 23 * - 66 * 8 + + 53 + 71 - 57 / + + 64 * - 50 + + 51 - COUNT ( * ) * + 36 + - 20 * - 32 + - 44 THEN + 63 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2334
SELECT ALL + 27 + + 91 * - 38 AS col0, - CAST( NULL AS DECIMAL ) AS col2
----
-3431
NULL

skipif mysql # not compatible
query II rowsort label-2334
SELECT ALL + 27 + + 91 * - 38 AS col0, - CAST ( NULL AS REAL ) AS col2
----
-3431
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2337
SELECT + 70, MAX( DISTINCT 50 ) DIV COALESCE ( COUNT( * ), - 94, AVG ( ALL CAST( NULL AS SIGNED ) ) ) AS col1
----
70
50

skipif mysql # not compatible
query II rowsort label-2337
SELECT + 70, MAX ( DISTINCT 50 ) / COALESCE ( COUNT ( * ), - 94, AVG ( ALL CAST ( NULL AS INTEGER ) ) ) AS col1
----
70
50

query I rowsort
SELECT - 54 - 52
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT - + CASE 46 WHEN + 47 * - 19 THEN NULL WHEN - COUNT( * ) * + 0 - COUNT( * ) THEN + CASE - 19 WHEN + + COALESCE ( - 55, + + COUNT( * ) + - 42 ) * + 77 THEN NULL WHEN + 81 THEN MIN( - + 63 ) WHEN CASE + 99 WHEN - ( + 8 ) THEN + COUNT( * ) WHEN - + 28 + 84 THEN 20 ELSE + 6 + ( 44 + - 16 ) END * 67 + + 94 * 68 THEN NULL END + 72 ELSE 46 * 67 END * 80
----
-246560

skipif mysql # not compatible
query I rowsort label-2339
SELECT - + CASE 46 WHEN + 47 * - 19 THEN NULL WHEN - COUNT ( * ) * + 0 - COUNT ( * ) THEN + CASE - 19 WHEN + + COALESCE ( - 55, + + COUNT ( * ) + - 42 ) * + 77 THEN NULL WHEN + 81 THEN MIN ( - + 63 ) WHEN CASE + 99 WHEN - ( + 8 ) THEN + COUNT ( * ) WHEN - + 28 + 84 THEN 20 ELSE + 6 + ( 44 + - 16 ) END * 67 + + 94 * 68 THEN NULL END + 72 ELSE 46 * 67 END * 80
----
-246560

onlyif mysql # aggregate syntax: 
query II rowsort label-2340
SELECT + 62 * + 15 - + - MIN( ALL - ( - ( - 1 ) ) ) AS col2, 40 * + 37 AS col0
----
929
1480

skipif mysql # not compatible
query II rowsort label-2340
SELECT + 62 * + 15 - + - MIN ( ALL - ( - ( - 1 ) ) ) AS col2, 40 * + 37 AS col0
----
929
1480

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT - NULLIF ( - COUNT( * ), + 2 / - 67 - + + 14 + + 72 + + 35 - 30 * - 63 + - COALESCE ( 31, - + NULLIF ( - - ( COALESCE ( + 67, 29 ) ), + 57 + + ( - 11 ) ) / - - 61 ) + - + 20 * ( 3 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2341
SELECT - NULLIF ( - COUNT ( * ), + 2 / - 67 - + + 14 + + 72 + + 35 - 30 * - 63 + - COALESCE ( 31, - + NULLIF ( - - ( COALESCE ( + 67, 29 ) ), + 57 + + ( - 11 ) ) / - - 61 ) + - + 20 * ( 3 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT + 81 * + + 92 - COUNT( * ) * 43
----
7409

skipif mysql # not compatible
query I rowsort label-2342
SELECT + 81 * + + 92 - COUNT ( * ) * 43
----
7409

query I rowsort
SELECT ALL - - 41 * - + 19
----
-779

query II rowsort
SELECT ALL + 73 + + 7 * 6, + ( 5 ) AS col1
----
115
5

query I rowsort
SELECT + 13 + + ( 29 )
----
42

query I rowsort
SELECT + + 93 - - 75 col1
----
168

query I rowsort
SELECT ALL 1 - 70 AS col0
----
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT + MAX( DISTINCT + 71 ) * 33
----
2343

skipif mysql # not compatible
query I rowsort label-2349
SELECT + MAX ( DISTINCT + 71 ) * 33
----
2343

query I rowsort
SELECT - - 10 + + - 78 + + 23 col2
----
-45

query I rowsort
SELECT + 96 * + + 6 AS col1
----
576

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT + COUNT( DISTINCT 56 ) * + 48
----
48

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

query I rowsort
SELECT ALL ( - 26 ) * 22 * - 56 AS col2
----
32032

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - NULLIF ( - NULLIF ( + 80, - 27 * + - COUNT( * ) ), + 30 + - + 22 )
----
80

skipif mysql # not compatible
query I rowsort label-2355
SELECT - NULLIF ( - NULLIF ( + 80, - 27 * + - COUNT ( * ) ), + 30 + - + 22 )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2356
SELECT + 37 * - NULLIF ( - MIN( + 8 ), - COUNT( * ) ) col1, + 40 * + + 88 AS col1
----
296
3520

skipif mysql # not compatible
query II rowsort label-2356
SELECT + 37 * - NULLIF ( - MIN ( + 8 ), - COUNT ( * ) ) col1, + 40 * + + 88 AS col1
----
296
3520

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT + 6 * + COUNT( - 83 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2358
SELECT + 6 * + COUNT ( - 83 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT ALL - 86 * - - COUNT( * ) * - 24
----
2064

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL - 86 * - - COUNT ( * ) * - 24
----
2064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2360
SELECT DISTINCT 57 * + 96 + - - NULLIF ( + COUNT( * ), 72 ) / NULLIF ( CAST( NULL AS SIGNED ), CASE + 56 WHEN + 60 THEN NULL WHEN - 91 * 97 * - + 41 THEN + + 16 + CAST( 12 AS SIGNED ) * - 43 WHEN + 59 THEN NULL END ) + - - 71 AS col2, + 51 AS col1
----
NULL
51

skipif mysql # not compatible
query II rowsort label-2360
SELECT DISTINCT 57 * + 96 + - - NULLIF ( + COUNT ( * ), 72 ) / NULLIF ( CAST ( NULL AS INTEGER ), CASE + 56 WHEN + 60 THEN NULL WHEN - 91 * 97 * - + 41 THEN + + 16 + CAST ( 12 AS INTEGER ) * - 43 WHEN + 59 THEN NULL END ) + - - 71 AS col2, + 51 AS col1
----
NULL
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT + COUNT( * ) * - 99 + 36
----
-63

skipif mysql # not compatible
query I rowsort label-2361
SELECT + COUNT ( * ) * - 99 + 36
----
-63

query I rowsort
SELECT ALL 32 * 59 + - 64 AS col0
----
1824

query I rowsort
SELECT DISTINCT - 60 * 27 + 5
----
-1615

onlyif mysql # DIV for integer division: 
query II rowsort label-2364
SELECT - + 38 + 67, - 5 DIV 59 * + 65 AS col0
----
29
0

skipif mysql # not compatible
query II rowsort label-2364
SELECT - + 38 + 67, - 5 / 59 * + 65 AS col0
----
29
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2365
SELECT - 14 * + - COUNT( * ) - - - CAST( - 90 AS SIGNED ) * + 70 - + 14
----
6300

skipif mysql # not compatible
query I rowsort label-2365
SELECT - 14 * + - COUNT ( * ) - - - CAST ( - 90 AS INTEGER ) * + 70 - + 14
----
6300

query I rowsort
SELECT ALL - 21 * - 79 * - 73 + - + 86 + 23
----
-121170

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2367
SELECT - 75 * - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) + + - 50 AS col0, 44
----
NULL
44

skipif mysql # not compatible
query II rowsort label-2367
SELECT - 75 * - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) + + - 50 AS col0, 44
----
NULL
44

query I rowsort
SELECT DISTINCT + 44 * + - 90 * 0
----
0

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

query I rowsort
SELECT DISTINCT + ( 69 ) * + + 78 - 18 * + - 68 * - 33
----
-35010

query I rowsort
SELECT + NULLIF ( 62, 93 * - 75 * 2 ) + - 82
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL - - COUNT( 60 ) * 69 - + + 71 * - 79 AS col0
----
5678

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL - - COUNT ( 60 ) * 69 - + + 71 * - 79 AS col0
----
5678

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT + + 81 * COALESCE ( 98, - 37 - COUNT( * ) )
----
7938

skipif mysql # not compatible
query I rowsort label-2373
SELECT + + 81 * COALESCE ( 98, - 37 - COUNT ( * ) )
----
7938

query I rowsort
SELECT - - ( 9 )
----
9

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

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

query I rowsort
SELECT + 73 * - - 82
----
5986

query II rowsort
SELECT ALL 34, 52 + + 39 AS col0
----
34
91

query I rowsort
SELECT + 90 + - + 13
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-2379
SELECT ALL 87 AS col0, 90 DIV - 11 + + 74
----
87
66

skipif mysql # not compatible
query II rowsort label-2379
SELECT ALL 87 AS col0, 90 / - 11 + + 74
----
87
66

query I rowsort
SELECT + CASE + ( + - 8 ) WHEN - 48 / + 8 THEN NULL ELSE - 83 END + 32 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT + 43 * + MIN( 30 ) AS col1
----
1290

skipif mysql # not compatible
query I rowsort label-2381
SELECT + 43 * + MIN ( 30 ) AS col1
----
1290

onlyif mysql # aggregate syntax: 
query II rowsort label-2382
SELECT + 54 + - COUNT( * ) * + 25 AS col1, 36 AS col0
----
29
36

skipif mysql # not compatible
query II rowsort label-2382
SELECT + 54 + - COUNT ( * ) * + 25 AS col1, 36 AS col0
----
29
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT + 36 - + 86 * COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2383
SELECT + 36 - + 86 * COUNT ( * )
----
-50

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

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

query I rowsort
SELECT ALL 18 + + 70 + 22 AS col1
----
110

query I rowsort
SELECT ALL 77 * + + ( + 15 )
----
1155

query I rowsort
SELECT + 83 * + - 59 AS col1
----
-4897

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2388
SELECT ALL + 37 DIV - + 77 * 75 * - COUNT( * ) + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL + 37 / - + 77 * 75 * - COUNT ( * ) + COUNT ( * ) col1
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT ALL 29 DIV + 90 * + 27 + + 81
----
81

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL 29 / + 90 * + 27 + + 81
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2391
SELECT + ( - - 67 ) * + 58 * - ( - ( + NULLIF ( + - COUNT( * ), 17 * 26 ) ) ) - - + 23 + + + 3 AS col2, 84 - - + CAST( NULL AS SIGNED ) * + + 81 + + 49
----
-3860
NULL

skipif mysql # not compatible
query II rowsort label-2391
SELECT + ( - - 67 ) * + 58 * - ( - ( + NULLIF ( + - COUNT ( * ), 17 * 26 ) ) ) - - + 23 + + + 3 AS col2, 84 - - + CAST ( NULL AS INTEGER ) * + + 81 + + 49
----
-3860
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT ALL CASE 78 WHEN + 68 + + 87 + - - 35 * 17 * + + 80 THEN CASE ( - 51 ) WHEN - + 21 THEN NULL WHEN - CASE + 57 WHEN MIN( + 35 ) THEN - 8 + - 6 + + MAX( ALL - - 54 ) * 81 + - + 9 + - + CAST( NULL AS SIGNED ) * - - ( + - 18 ) + - 75 * - COUNT( DISTINCT 91 * + ( 26 ) ) ELSE + 59 END + - ( 81 + 54 * - 43 ) / 54 THEN + 19 ELSE ( 5 ) / 34 END WHEN CASE ( - ( ( - 18 ) ) ) WHEN + 72 * - 19 THEN NULL ELSE - 15 END THEN NULL WHEN + 82 THEN NULL END / - SUM( DISTINCT CASE 69 WHEN + ( 68 ) * 98 THEN 39 WHEN 70 - 89 THEN NULL END - + 60 ) + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL CASE 78 WHEN + 68 + + 87 + - - 35 * 17 * + + 80 THEN CASE ( - 51 ) WHEN - + 21 THEN NULL WHEN - CASE + 57 WHEN MIN ( + 35 ) THEN - 8 + - 6 + + MAX ( ALL - - 54 ) * 81 + - + 9 + - + CAST ( NULL AS INTEGER ) * - - ( + - 18 ) + - 75 * - COUNT ( DISTINCT 91 * + ( 26 ) ) ELSE + 59 END + - ( 81 + 54 * - 43 ) / 54 THEN + 19 ELSE ( 5 ) / 34 END WHEN CASE ( - ( ( - 18 ) ) ) WHEN + 72 * - 19 THEN NULL ELSE - 15 END THEN NULL WHEN + 82 THEN NULL END / - SUM ( DISTINCT CASE 69 WHEN + ( 68 ) * 98 THEN 39 WHEN 70 - 89 THEN NULL END - + 60 ) + 60
----
NULL

query I rowsort
SELECT + ( 94 ) col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2394
SELECT + 53 + + 74 + + ( 97 ) DIV COUNT( * ) AS col0
----
224

skipif mysql # not compatible
query I rowsort label-2394
SELECT + 53 + + 74 + + ( 97 ) / COUNT ( * ) AS col0
----
224

query II rowsort
SELECT + 24 AS col2, 47
----
24
47

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

query I rowsort
SELECT ( 85 ) * + 36 * + 55 + - - 81
----
168381

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL + + 78 + NULLIF ( 15, 26 - + - 81 ) + - MAX( + - 77 )
----
170

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + + 78 + NULLIF ( 15, 26 - + - 81 ) + - MAX ( + - 77 )
----
170

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

query I rowsort
SELECT ALL - 15 * + + 76 AS col0
----
-1140

query I rowsort
SELECT DISTINCT + 4 - - ( - 60 ) * - 83 AS col2
----
4984

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT COUNT( * ) * - 15 * - - 21 + + 26 AS col1
----
-289

skipif mysql # not compatible
query I rowsort label-2404
SELECT COUNT ( * ) * - 15 * - - 21 + + 26 AS col1
----
-289

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT ALL + - CASE + COUNT( * ) WHEN + 62 / - + 67 / 5 + 6 THEN NULL ELSE 36 * - 56 * - - 48 * - COUNT( * ) - - 54 END * + COALESCE ( + - MIN( ALL 24 ), COUNT( * ) ) + + 39
----
2323767

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL + - CASE + COUNT ( * ) WHEN + 62 / - + 67 / 5 + 6 THEN NULL ELSE 36 * - 56 * - - 48 * - COUNT ( * ) - - 54 END * + COALESCE ( + - MIN ( ALL 24 ), COUNT ( * ) ) + + 39
----
2323767

query I rowsort
SELECT ( - + 40 ) - + - 45 * 46 col0
----
2030

query II rowsort
SELECT ALL - 86 AS col0, 17
----
-86
17

query I rowsort
SELECT - 15 * + 6 - 60 AS col2
----
-150

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2410
SELECT DISTINCT + MIN( ALL + 37 ) * 64 * - + 62 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT + MIN ( ALL + 37 ) * 64 * - + 62 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT COUNT( ALL + + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT COUNT ( ALL + + 86 )
----
1

query II rowsort
SELECT 15 AS col0, - 86 AS col2
----
15
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT - 85 * + COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT - 85 * + COUNT ( * ) AS col1
----
-85

query II rowsort
SELECT ALL 52, 19 AS col1
----
52
19

query I rowsort
SELECT DISTINCT 36 + + 1 + + 50 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ALL 71 + + + COUNT( * ) * - + SUM( DISTINCT - 87 ) AS col1
----
158

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL 71 + + + COUNT ( * ) * - + SUM ( DISTINCT - 87 ) AS col1
----
158

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

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

query II rowsort
SELECT DISTINCT - 26 AS col1, 76
----
-26
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2419
SELECT ALL 35 + - 16 DIV 76 * - 44 + - 24 DIV + 98 * 99
----
35

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL 35 + - 16 / 76 * - 44 + - 24 / + 98 * 99
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT 65 - + MIN( + + 45 ) + - + NULLIF ( 16, + ( 53 ) )
----
4

skipif mysql # not compatible
query I rowsort label-2420
SELECT 65 - + MIN ( + + 45 ) + - + NULLIF ( 16, + ( 53 ) )
----
4

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

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

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

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

query I rowsort
SELECT DISTINCT 78 * + + 44 + 68 AS col0
----
3500

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT DISTINCT - NULLIF ( + 38, + 93 + - - 33 * + 85 * 17 ) * - + ( - ( ( + 43 ) ) ) - - COUNT( * ) AS col2
----
-1633

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT - NULLIF ( + 38, + 93 + - - 33 * + 85 * 17 ) * - + ( - ( ( + 43 ) ) ) - - COUNT ( * ) AS col2
----
-1633

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT DISTINCT COUNT( * ) - - 98 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT COUNT ( * ) - - 98 AS col2
----
99

query I rowsort
SELECT ALL + 49 * 42 AS col2
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT + 70 - + + COUNT( * ) + + 12 * + + COUNT( * ) * + 84 + 4 + 43 * - COUNT( * ) - - ( - 32 )
----
1006

skipif mysql # not compatible
query I rowsort label-2427
SELECT + 70 - + + COUNT ( * ) + + 12 * + + COUNT ( * ) * + 84 + 4 + 43 * - COUNT ( * ) - - ( - 32 )
----
1006

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL - 75 - - MIN( NULLIF ( 76, + + 18 ) ) * - SUM( ALL + 49 ) col0
----
-3799

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - 75 - - MIN ( NULLIF ( 76, + + 18 ) ) * - SUM ( ALL + 49 ) col0
----
-3799

query II rowsort
SELECT DISTINCT - - 63 AS col2, 53
----
63
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + COUNT( 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2430
SELECT + COUNT ( 91 ) AS col2
----
1

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

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

query II rowsort
SELECT ALL - - 90, 25 AS col2
----
90
25

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT ALL - + COUNT( * ), - 91 * - 65 * + 87 AS col1
----
-1
514605

skipif mysql # not compatible
query II rowsort label-2433
SELECT ALL - + COUNT ( * ), - 91 * - 65 * + 87 AS col1
----
-1
514605

query I rowsort
SELECT + ( 89 ) * + 9 AS col0
----
801

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL + 42 * - MIN( 43 ) col1
----
-1806

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + 42 * - MIN ( 43 ) col1
----
-1806

onlyif mysql # aggregate syntax: 
query II rowsort label-2436
SELECT + + 22 col0, - MAX( - - 17 ) * - 17 + - 36 AS col1
----
22
253

skipif mysql # not compatible
query II rowsort label-2436
SELECT + + 22 col0, - MAX ( - - 17 ) * - 17 + - 36 AS col1
----
22
253

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2437
SELECT ALL ( + + 66 ) + + CAST( - 2 AS SIGNED ) DIV + 15 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL ( + + 66 ) + + CAST ( - 2 AS INTEGER ) / + 15 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL - NULLIF ( - - COUNT( * ), - 15 ) + - 62 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL - NULLIF ( - - COUNT ( * ), - 15 ) + - 62 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2439
SELECT COUNT( * ) + ( + 69 ) * - + 5 * COUNT( + CAST( + ( - 93 ) AS SIGNED ) ) * + COUNT( * ) * - CAST( NULL AS SIGNED ), - 22 + - 53 AS col1
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-2439
SELECT COUNT ( * ) + ( + 69 ) * - + 5 * COUNT ( + CAST ( + ( - 93 ) AS INTEGER ) ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ), - 22 + - 53 AS col1
----
NULL
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT - 40 * 69 + - + 57 + 85 DIV - 45 col1
----
-2818

skipif mysql # not compatible
query I rowsort label-2440
SELECT - 40 * 69 + - + 57 + 85 / - 45 col1
----
-2818

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

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT CAST ( + 22 AS REAL ) * - 96 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT ALL COUNT( * ) + + NULLIF ( + 74, 22 )
----
75

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL COUNT ( * ) + + NULLIF ( + 74, 22 )
----
75

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

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL CAST ( - 77 AS INTEGER ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL + COUNT( * ) + + 50 * + + SUM( ALL + - 75 ) AS col0
----
-3749

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL + COUNT ( * ) + + 50 * + + SUM ( ALL + - 75 ) AS col0
----
-3749

query I rowsort
SELECT 78 * 81
----
6318

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT ALL - 36 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL - 36 / - 40
----
0

query I rowsort
SELECT ALL - 27 + + 28
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2448
SELECT ALL MAX( 74 ), + ( - 84 ) + 77 AS col0
----
74
-7

skipif mysql # not compatible
query II rowsort label-2448
SELECT ALL MAX ( 74 ), + ( - 84 ) + 77 AS col0
----
74
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT - COUNT( * ) + + 61 col0
----
60

skipif mysql # not compatible
query I rowsort label-2449
SELECT - COUNT ( * ) + + 61 col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT - 47 - - + 71 * + 14 * + 28 + - COUNT( * ) + - + 12 * - 60
----
28504

skipif mysql # not compatible
query I rowsort label-2450
SELECT - 47 - - + 71 * + 14 * + 28 + - COUNT ( * ) + - + 12 * - 60
----
28504

query I rowsort
SELECT - 18 + + - 38 AS col1
----
-56

query I rowsort
SELECT ALL - 91 - - 72 + 48
----
29

query I rowsort
SELECT ALL + 64 * + 46 AS col1
----
2944

query I rowsort
SELECT DISTINCT - 10 - + 65
----
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2455
SELECT + - CASE MAX( ALL + + 96 ) WHEN - - 21 * - 66 THEN + 55 / - + 44 + 62 + 20 + 48 / - + 46 * + 73 + + + 44 + + 95 + - ( + - 74 ) + - COUNT( * ) WHEN - + 32 THEN + + 70 - - ( - + 57 ) * 10 + 54 WHEN + AVG ( - 34 ) + + - COUNT( * ) - ( 31 ) + CASE + 72 WHEN 19 THEN - 5 WHEN 22 * CAST( 47 AS DECIMAL ) THEN NULL ELSE NULL END * COUNT( * ) * - 22 THEN + 49 / 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT + - CASE MAX ( ALL + + 96 ) WHEN - - 21 * - 66 THEN + 55 / - + 44 + 62 + 20 + 48 / - + 46 * + 73 + + + 44 + + 95 + - ( + - 74 ) + - COUNT ( * ) WHEN - + 32 THEN + + 70 - - ( - + 57 ) * 10 + 54 WHEN + AVG ( - 34 ) + + - COUNT ( * ) - ( 31 ) + CASE + 72 WHEN 19 THEN - 5 WHEN 22 * CAST ( 47 AS REAL ) THEN NULL ELSE NULL END * COUNT ( * ) * - 22 THEN + 49 / 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT DISTINCT + 37 * + MAX( + 98 ) AS col0
----
3626

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT + 37 * + MAX ( + 98 ) AS col0
----
3626

query I rowsort
SELECT ALL + + 32 * 68 col0
----
2176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2458
SELECT - 15 DIV - 3 + - 10 + + - 35 + + COUNT( * ) + - 68 col2
----
-107

skipif mysql # not compatible
query I rowsort label-2458
SELECT - 15 / - 3 + - 10 + + - 35 + + COUNT ( * ) + - 68 col2
----
-107

query I rowsort
SELECT + 68 + - 89 + 74 * + ( + 33 ) * - 76 + - 64 + - - 7 * - 69
----
-186160

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

skipif mysql # not compatible
query I rowsort label-2460
SELECT + 91 / ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2461
SELECT DISTINCT ( + ( 3 ) ) * - COUNT( - CAST( NULL AS SIGNED ) ) + + ( - - 86 ) * + 89 AS col2
----
7654

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT ( + ( 3 ) ) * - COUNT ( - CAST ( NULL AS INTEGER ) ) + + ( - - 86 ) * + 89 AS col2
----
7654

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2462
SELECT + 48 * - + 6 AS col1, + 66 * - COUNT( * ) DIV + SUM( ALL 46 ) DIV 46 * 26 AS col0
----
-288
0

skipif mysql # not compatible
query II rowsort label-2462
SELECT + 48 * - + 6 AS col1, + 66 * - COUNT ( * ) / + SUM ( ALL 46 ) / 46 * 26 AS col0
----
-288
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT ALL - 93 DIV - 35
----
2

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL - 93 / - 35
----
2

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

skipif mysql # not compatible
query I rowsort label-2464
SELECT MAX ( + 91 )
----
91

query I rowsort
SELECT DISTINCT 96 * - + 4 * 90 + 8 col2
----
-34552

query I rowsort
SELECT ALL + 13 * 23
----
299

onlyif mysql # aggregate syntax: 
query II rowsort label-2467
SELECT - - 38 + - 79 AS col0, + 74 * + ( - 67 ) + + COUNT( * ) AS col1
----
-41
-4957

skipif mysql # not compatible
query II rowsort label-2467
SELECT - - 38 + - 79 AS col0, + 74 * + ( - 67 ) + + COUNT ( * ) AS col1
----
-41
-4957

query I rowsort
SELECT + NULLIF ( + + 80, 5 ) AS col1
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2469
SELECT ALL CAST( NULL AS DECIMAL ) + AVG ( DISTINCT + 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL CAST ( NULL AS REAL ) + AVG ( DISTINCT + 31 ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 90 AS col0, + ( - - ( 4 ) ) AS col0
----
90
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2471
SELECT + CAST( COUNT( DISTINCT - 90 ) AS SIGNED ) * + 49 AS col0, + 78 AS col2
----
49
78

skipif mysql # not compatible
query II rowsort label-2471
SELECT + CAST ( COUNT ( DISTINCT - 90 ) AS INTEGER ) * + 49 AS col0, + 78 AS col2
----
49
78

onlyif mysql # DIV for integer division: 
query I rowsort label-2472
SELECT DISTINCT 1 * + - 0 DIV + + 19 * COALESCE ( + 53, + - 44 ) DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT 1 * + - 0 / + + 19 * COALESCE ( + 53, + - 44 ) / 40
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2473
SELECT ALL 60 + - + CAST( NULL AS DECIMAL ) + 5 * 80 * - CASE - 15 WHEN - COUNT( * ) * - 91 THEN NULL WHEN + 28 THEN NULL WHEN + 23 THEN NULL WHEN + MAX( ALL - 22 ) + + 5 + + 95 THEN - CAST( 35 AS SIGNED ) ELSE ( 24 ) END * - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL 60 + - + CAST ( NULL AS REAL ) + 5 * 80 * - CASE - 15 WHEN - COUNT ( * ) * - 91 THEN NULL WHEN + 28 THEN NULL WHEN + 23 THEN NULL WHEN + MAX ( ALL - 22 ) + + 5 + + 95 THEN - CAST ( 35 AS INTEGER ) ELSE ( 24 ) END * - + 82
----
NULL

query I rowsort
SELECT + 24 * 46 * - - 1 AS col0
----
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT DISTINCT - 23 * - SUM( + + 98 )
----
2254

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT - 23 * - SUM ( + + 98 )
----
2254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2476
SELECT - CAST( - 1 AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2476
SELECT - CAST ( - 1 AS INTEGER ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL NULLIF ( + 51, COUNT( * ) + - - 22 + - + 55 * - 45 )
----
51

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL NULLIF ( + 51, COUNT ( * ) + - - 22 + - + 55 * - 45 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2478
SELECT DISTINCT 59 - - 87 * + 31 + - COUNT( * ) + - CAST( NULL AS DECIMAL ) / 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT 59 - - 87 * + 31 + - COUNT ( * ) + - CAST ( NULL AS REAL ) / 78 AS col0
----
NULL

query II rowsort
SELECT 7 col0, 50
----
7
50

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

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

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

query I rowsort
SELECT + 69 + - - 21 + - + 4 * + - 99 AS col2
----
486

query II rowsort
SELECT + 35, + 59 AS col0
----
35
59

query I rowsort
SELECT - + 78 + + 54 - + 49
----
-73

query I rowsort
SELECT ALL + + 5 * + - 23 AS col0
----
-115

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2486
SELECT - 28 * + - 51 * 11 * - + CASE COUNT( * ) WHEN + COALESCE ( + - 77, - + COUNT( * ) * + CASE + CAST( 1 AS DECIMAL ) WHEN - 35 THEN - 0 WHEN + ( + 69 ) THEN NULL END - + + 90 * + SUM( ALL 27 ) + 42 + 68 + ( - SUM( 6 ) ) * 67 + - MIN( + ( + 12 ) ) + ( - 61 ) + 52 * 35 + - COUNT( * ) ) THEN - 97 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT - 28 * + - 51 * 11 * - + CASE COUNT ( * ) WHEN + COALESCE ( + - 77, - + COUNT ( * ) * + CASE + CAST ( 1 AS REAL ) WHEN - 35 THEN - 0 WHEN + ( + 69 ) THEN NULL END - + + 90 * + SUM ( ALL 27 ) + 42 + 68 + ( - SUM ( 6 ) ) * 67 + - MIN ( + ( + 12 ) ) + ( - 61 ) + 52 * 35 + - COUNT ( * ) ) THEN - 97 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL + 32 / 81 * + 3 * - + 69 + CASE ( - + COUNT( * ) ) WHEN + 74 THEN + 89 WHEN + 7 THEN - + 96 END + - + 68 + + - ( + + 49 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + 32 / 81 * + 3 * - + 69 + CASE ( - + COUNT ( * ) ) WHEN + 74 THEN + 89 WHEN + 7 THEN - + 96 END + - + 68 + + - ( + + 49 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 38 * + + 83 * - + 93 + 63 - - 30 * 74 + - 85 * + 50
----
-295289

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2489
SELECT ALL + - 11, 49 - 82 + + 52 * + + 21 - - COALESCE ( + 47, + + 21 ) * + + COALESCE ( - - 39, 70 / + 5 ) + + 49 + 59 + - 83 * MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) * 14 col1
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-2489
SELECT ALL + - 11, 49 - 82 + + 52 * + + 21 - - COALESCE ( + 47, + + 21 ) * + + COALESCE ( - - 39, 70 / + 5 ) + + 49 + 59 + - 83 * MAX ( DISTINCT - CAST ( NULL AS REAL ) ) * 14 col1
----
-11
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2490
SELECT ALL + - 31 DIV - 97 + - MAX( ALL - ( - 7 ) )
----
-7

skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL + - 31 / - 97 + - MAX ( ALL - ( - 7 ) )
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2491
SELECT COUNT( * ) DIV - + COALESCE ( - + 72, + 56 ) - - NULLIF ( - ( 16 ), + - 14 )
----
-16

skipif mysql # not compatible
query I rowsort label-2491
SELECT COUNT ( * ) / - + COALESCE ( - + 72, + 56 ) - - NULLIF ( - ( 16 ), + - 14 )
----
-16

query I rowsort
SELECT ALL - - 88 * - - 12 + 50 * 21
----
2106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2493
SELECT - + 60 * 84 DIV - COUNT( * ) + + SUM( - - 17 ) AS col2
----
5057

skipif mysql # not compatible
query I rowsort label-2493
SELECT - + 60 * 84 / - COUNT ( * ) + + SUM ( - - 17 ) AS col2
----
5057

query I rowsort
SELECT - 68 + + 15 col0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT + COUNT( * ), 41 - - 21 + + 90 AS col0
----
1
152

skipif mysql # not compatible
query II rowsort label-2495
SELECT + COUNT ( * ), 41 - - 21 + + 90 AS col0
----
1
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT - - COUNT( * ) + COUNT( DISTINCT + + 19 )
----
2

skipif mysql # not compatible
query I rowsort label-2496
SELECT - - COUNT ( * ) + COUNT ( DISTINCT + + 19 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2497
SELECT ALL + 24 * - 46 + - 79 * - 92 - MIN( DISTINCT - 80 ) + - + ( + CAST( - + COUNT( * ) AS SIGNED ) ) - 96 DIV + ( + 73 )
----
6244

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL + 24 * - 46 + - 79 * - 92 - MIN ( DISTINCT - 80 ) + - + ( + CAST ( - + COUNT ( * ) AS INTEGER ) ) - 96 / + ( + 73 )
----
6244

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

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

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

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT - MIN ( + 2 ) / ( + 37 ) * - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT + 60 * - + 37 * + - COUNT( - - 25 ) * + 21
----
46620

skipif mysql # not compatible
query I rowsort label-2500
SELECT + 60 * - + 37 * + - COUNT ( - - 25 ) * + 21
----
46620

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

query I rowsort
SELECT DISTINCT 63 * 81 * - 44 - - ( - 95 ) * + - 62 col2
----
-218642

query I rowsort
SELECT ALL 60 * + 14 * - + ( - + 69 ) AS col1
----
57960

query I rowsort
SELECT ALL 19 - 47 - - 23 AS col2
----
-5

query I rowsort
SELECT 59 * - 53 AS col0
----
-3127

query I rowsort
SELECT 65 + + - ( - 4 ) + - 64
----
5

query I rowsort
SELECT 68 * 97 * + 36 AS col2
----
237456

query II rowsort
SELECT 4 * 87, + 51 AS col2
----
348
51

query I rowsort
SELECT 74 + - - 20 col2
----
94

query I rowsort
SELECT ALL - 64 * 67
----
-4288

query I rowsort
SELECT ALL + 10 - - - 85
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT COUNT( - 61 ) + + ( 44 ) + COALESCE ( + 7, - - MAX( 15 ), + 77 * - - 54 * - 45 + + 42 + - - 33 + + 33 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2512
SELECT COUNT ( - 61 ) + + ( 44 ) + COALESCE ( + 7, - - MAX ( 15 ), + 77 * - - 54 * - 45 + + 42 + - - 33 + + 33 ) AS col2
----
52

query I rowsort
SELECT 94 * + - 7 AS col2
----
-658

query I rowsort
SELECT DISTINCT - 92 * + + 27
----
-2484

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT 25 + - + 42 * + NULLIF ( + 90, - 38 + + - 69 ) * + + COUNT( * ) + + COUNT( * ) - - + 78 + 46 + 90 * + CASE - + COUNT( * ) WHEN 96 THEN + 18 WHEN - 36 * - 80 + + COUNT( * ) + + 62 + - ( - - ( + 5 ) ) * 45 THEN - - 82 - 36 END * - 91 + + 24 * 32 * + 23 / + CASE 46 WHEN + 80 THEN 58 WHEN 73 * - 17 THEN NULL WHEN 79 THEN NULL WHEN - 53 THEN NULL END + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT 25 + - + 42 * + NULLIF ( + 90, - 38 + + - 69 ) * + + COUNT ( * ) + + COUNT ( * ) - - + 78 + 46 + 90 * + CASE - + COUNT ( * ) WHEN 96 THEN + 18 WHEN - 36 * - 80 + + COUNT ( * ) + + 62 + - ( - - ( + 5 ) ) * 45 THEN - - 82 - 36 END * - 91 + + 24 * 32 * + 23 / + CASE 46 WHEN + 80 THEN 58 WHEN 73 * - 17 THEN NULL WHEN 79 THEN NULL WHEN - 53 THEN NULL END + 1
----
NULL

query I rowsort
SELECT ALL + 87 * 97 * - 85 * + 32 AS col1
----
-22954080

query I rowsort
SELECT + 76 + + 82
----
158

query II rowsort
SELECT 58 + - 8 + 86 * + + 27 AS col2, - 60
----
2372
-60

query II rowsort
SELECT + 59 + + 49 AS col1, 92 AS col1
----
108
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT 17 DIV - - 77 + + - 77
----
-77

skipif mysql # not compatible
query I rowsort label-2520
SELECT 17 / - - 77 + + - 77
----
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ( + - 33 ) * + + 37 * MAX( + - 3 ) + - + ( + - ( 8 ) )
----
3671

skipif mysql # not compatible
query I rowsort label-2522
SELECT ( + - 33 ) * + + 37 * MAX ( + - 3 ) + - + ( + - ( 8 ) )
----
3671

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL + 46 + + NULLIF ( + + 55, 6 / + + COUNT( * ) + 71 )
----
101

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + 46 + + NULLIF ( + + 55, 6 / + + COUNT ( * ) + 71 )
----
101

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT DISTINCT + 55 DIV ( 41 )
----
1

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + 55 / ( 41 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT - 83 * + + COALESCE ( + COUNT( ALL - 36 ), - 70 * ( - MAX( DISTINCT + - 66 ) ) + + 5 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-2527
SELECT - 83 * + + COALESCE ( + COUNT ( ALL - 36 ), - 70 * ( - MAX ( DISTINCT + - 66 ) ) + + 5 ) AS col1
----
-83

query II rowsort
SELECT ALL + 86 + - 51 - 58 - - + COALESCE ( - 35, + - 11, - + ( - - 30 ) ) * + - 27 AS col1, 91
----
922
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL + 11 + 13 * + + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + 11 + 13 * + + COUNT ( * ) AS col2
----
24

query II rowsort
SELECT ALL - - 60 * 14 AS col0, 96 AS col2
----
840
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2532
SELECT DISTINCT 98 + + - 99 + 9 + 44 DIV - + NULLIF ( + 96, + COUNT( * ) * SUM( ALL - ( + 70 ) ) ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT 98 + + - 99 + 9 + 44 / - + NULLIF ( + 96, + COUNT ( * ) * SUM ( ALL - ( + 70 ) ) ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT DISTINCT + - 47 + + 62 + COUNT( * ) + 99 + - + 15 * CASE COUNT( * ) WHEN - 44 / - - 37 THEN NULL WHEN 19 * NULLIF ( 7, 7 ) THEN 76 * + 17 END * - - 76 / - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT + - 47 + + 62 + COUNT ( * ) + 99 + - + 15 * CASE COUNT ( * ) WHEN - 44 / - - 37 THEN NULL WHEN 19 * NULLIF ( 7, 7 ) THEN 76 * + 17 END * - - 76 / - + 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2534
SELECT 22, - 26 * - CAST( NULL AS SIGNED ) col2
----
22
NULL

skipif mysql # not compatible
query II rowsort label-2534
SELECT 22, - 26 * - CAST ( NULL AS INTEGER ) col2
----
22
NULL

query I rowsort
SELECT DISTINCT - 50 * 98
----
-4900

query I rowsort
SELECT 43 + 66 AS col1
----
109

query I rowsort
SELECT 78 * - 96
----
-7488

query I rowsort
SELECT 49 * 5 AS col0
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL + 77 - + 72 * - + COUNT( * ) * - 43 * - 55 - - 95 * + 32 * + + 57
----
343637

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + 77 - + 72 * - + COUNT ( * ) * - 43 * - 55 - - 95 * + 32 * + + 57
----
343637

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

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

query I rowsort
SELECT 77 * - + 21 - + 4
----
-1621

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT ALL - 5 DIV - 68 * - 6 * - 70
----
0

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL - 5 / - 68 * - 6 * - 70
----
0

query I rowsort
SELECT 78 + + + 18 + - + 97 * - 67
----
6595

query I rowsort
SELECT ALL - 78 - - 81
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT 94 / - MAX( DISTINCT + - 35 ) * AVG ( DISTINCT + CASE + + 72 WHEN - + 61 + 92 THEN - 72 END ) + - 77 / + 3 * - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT 94 / - MAX ( DISTINCT + - 35 ) * AVG ( DISTINCT + CASE + + 72 WHEN - + 61 + 92 THEN - 72 END ) + - 77 / + 3 * - 38 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT ALL + 5 DIV 28 * + 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL + 5 / 28 * + 44 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2547
SELECT 51 AS col0, 81 * 81 + COUNT( DISTINCT - 71 ) + 72 * SUM( DISTINCT + + 80 ) * + + 54
----
51
317602

skipif mysql # not compatible
query II rowsort label-2547
SELECT 51 AS col0, 81 * 81 + COUNT ( DISTINCT - 71 ) + 72 * SUM ( DISTINCT + + 80 ) * + + 54
----
51
317602

query I rowsort
SELECT DISTINCT + 87 * + 5 * 45
----
19575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2549
SELECT COUNT( * ) - COUNT( * ) + + + 72 + + 61 DIV + MAX( ALL - 27 ) + 13 + 44 * COUNT( * )
----
127

skipif mysql # not compatible
query I rowsort label-2549
SELECT COUNT ( * ) - COUNT ( * ) + + + 72 + + 61 / + MAX ( ALL - 27 ) + 13 + 44 * COUNT ( * )
----
127

query I rowsort
SELECT ALL + 79 * + 73
----
5767

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2551
SELECT 84 DIV 28 * + MAX( ALL 43 ) AS col0
----
129

skipif mysql # not compatible
query I rowsort label-2551
SELECT 84 / 28 * + MAX ( ALL 43 ) AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT NULLIF ( 44, SUM( + 67 ) * 45 + - - ( 85 ) ) * 7
----
308

skipif mysql # not compatible
query I rowsort label-2552
SELECT NULLIF ( 44, SUM ( + 67 ) * 45 + - - ( 85 ) ) * 7
----
308

query II rowsort
SELECT ALL 5 * 58 * + 77 AS col2, - ( - 61 )
----
22330
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT ALL NULLIF ( - + 22, + SUM( - 12 ) ) + + 19 * + + CAST( + + 21 AS SIGNED )
----
377

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL NULLIF ( - + 22, + SUM ( - 12 ) ) + + 19 * + + CAST ( + + 21 AS INTEGER )
----
377

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

skipif mysql # not compatible
query I rowsort label-2555
SELECT CAST ( NULL AS REAL ) + 27 AS col1
----
NULL

query I rowsort
SELECT DISTINCT CASE - ( 63 ) WHEN - 30 THEN + 13 - - 47 * + 87 / + ( - - 13 ) END
----
NULL

query I rowsort
SELECT ALL + 75 + + 69 AS col0
----
144

query I rowsort
SELECT 50 - - 67
----
117

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

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

query I rowsort
SELECT ( + + 36 ) + + - 90 * - 16
----
1476

query I rowsort
SELECT 42 * ( + - 97 ) * + - 90
----
366660

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2564
SELECT - ( + - COUNT( * ) ) + MAX( ALL - ( CAST( 6 AS SIGNED ) ) )
----
-5

skipif mysql # not compatible
query I rowsort label-2564
SELECT - ( + - COUNT ( * ) ) + MAX ( ALL - ( CAST ( 6 AS INTEGER ) ) )
----
-5

query I rowsort
SELECT DISTINCT - - ( - 64 ) col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL - COUNT( * ) * - - 27 + - + 28
----
-55

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - COUNT ( * ) * - - 27 + - + 28
----
-55

query I rowsort
SELECT 22 + 18
----
40

onlyif mysql # DIV for integer division: 
query II rowsort label-2568
SELECT + 62 DIV + + 78 + 3 AS col1, 77 - + + 98 * 94
----
3
-9135

skipif mysql # not compatible
query II rowsort label-2568
SELECT + 62 / + + 78 + 3 AS col1, 77 - + + 98 * 94
----
3
-9135

query I rowsort
SELECT ALL ( + 67 ) * + - 14 - + 21
----
-959

query I rowsort
SELECT + 39 * - 37 AS col1
----
-1443

query I rowsort
SELECT ALL - CASE 62 WHEN - 75 THEN - + 16 END
----
NULL

query II rowsort
SELECT ALL - - 14, - 4 AS col1
----
14
-4

query I rowsort
SELECT DISTINCT 3 * + 81 - + 34 * 53 col1
----
-1559

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT MAX( - ( - 51 ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2574
SELECT MAX ( - ( - 51 ) ) AS col1
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT - ( - - 2 ) + - + MAX( DISTINCT + 3 ) - ( - 80 ) - + 55
----
20

skipif mysql # not compatible
query I rowsort label-2576
SELECT - ( - - 2 ) + - + MAX ( DISTINCT + 3 ) - ( - 80 ) - + 55
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2577
SELECT ALL 86 * + 18 - SUM( ALL + + 80 ) - + ( + 19 ) AS col1, COUNT( * ) AS col2
----
1449
1

skipif mysql # not compatible
query II rowsort label-2577
SELECT ALL 86 * + 18 - SUM ( ALL + + 80 ) - + ( + 19 ) AS col1, COUNT ( * ) AS col2
----
1449
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2578
SELECT + COUNT( * ) * + NULLIF ( + - CASE SUM( + 86 ) WHEN + - 96 + + + 95 THEN 99 WHEN + - 39 THEN NULL END, - 96 / - + 88 + + COUNT( * ) + CAST( - - AVG ( 47 ) AS SIGNED ) / + 46 ) AS col1, 91 AS col2
----
NULL
91

skipif mysql # not compatible
query II rowsort label-2578
SELECT + COUNT ( * ) * + NULLIF ( + - CASE SUM ( + 86 ) WHEN + - 96 + + + 95 THEN 99 WHEN + - 39 THEN NULL END, - 96 / - + 88 + + COUNT ( * ) + CAST ( - - AVG ( 47 ) AS INTEGER ) / + 46 ) AS col1, 91 AS col2
----
NULL
91

query I rowsort
SELECT - ( - - 57 ) * 70 AS col2
----
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT 82 * - COUNT( * ) * 52 * - 56 + CASE + COUNT( DISTINCT ( 37 ) ) WHEN 94 THEN NULL WHEN - 21 * 33 THEN NULL WHEN - CASE - MIN( DISTINCT 37 ) WHEN + 34 THEN - + 23 + + 23 + - - COUNT( * ) ELSE COALESCE ( - 54, + 48 - 48 * + 67 ) * + ( + 39 ) END + + COUNT( * ) + + MIN( NULLIF ( + + 59, - + 20 * + 78 + 90 ) ) THEN - 23 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT 82 * - COUNT ( * ) * 52 * - 56 + CASE + COUNT ( DISTINCT ( 37 ) ) WHEN 94 THEN NULL WHEN - 21 * 33 THEN NULL WHEN - CASE - MIN ( DISTINCT 37 ) WHEN + 34 THEN - + 23 + + 23 + - - COUNT ( * ) ELSE COALESCE ( - 54, + 48 - 48 * + 67 ) * + ( + 39 ) END + + COUNT ( * ) + + MIN ( NULLIF ( + + 59, - + 20 * + 78 + 90 ) ) THEN - 23 END AS col0
----
NULL

query I rowsort
SELECT + 25 * + CASE - + 34 WHEN - 61 / + - 70 + 38 THEN ( + 15 ) * - 67 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL + COUNT( DISTINCT + 90 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL + COUNT ( DISTINCT + 90 ) * COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2583
SELECT COUNT( ALL - CAST( - 27 AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-2583
SELECT COUNT ( ALL - CAST ( - 27 AS REAL ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2584
SELECT ( + ( + - 81 ) ) * 45 * + + CASE - 38 WHEN 55 THEN NULL ELSE - - 87 * + + NULLIF ( - - 5, 93 + - + 82 ) + - 84 END + + CASE - 28 WHEN + 32 THEN - + 54 DIV + COUNT( * ) * - 53 ELSE 59 DIV + + 96 * 16 END AS col0
----
-1279395

skipif mysql # not compatible
query I rowsort label-2584
SELECT ( + ( + - 81 ) ) * 45 * + + CASE - 38 WHEN 55 THEN NULL ELSE - - 87 * + + NULLIF ( - - 5, 93 + - + 82 ) + - 84 END + + CASE - 28 WHEN + 32 THEN - + 54 / + COUNT ( * ) * - 53 ELSE 59 / + + 96 * 16 END AS col0
----
-1279395

query II rowsort
SELECT ALL + 20, - 28 AS col1
----
20
-28

query II rowsort
SELECT ALL + 58 AS col0, ( - 13 ) AS col1
----
58
-13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT - 47 + + 69 + 75 + + COUNT( * ) col2
----
98

skipif mysql # not compatible
query I rowsort label-2588
SELECT - 47 + + 69 + 75 + + COUNT ( * ) col2
----
98

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT MIN ( DISTINCT - 7 )
----
-7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2593
SELECT - 17 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-2593
SELECT - 17 / + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL + 74 + + - MIN( 2 ) + + ( + 58 )
----
130

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + 74 + + - MIN ( 2 ) + + ( + 58 )
----
130

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

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

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

query II rowsort
SELECT ALL + 21 * + - 15, + 25 * + + 7 AS col0
----
-315
175

query I rowsort
SELECT - + 99 + + ( + 6 ) * + 64 * - - 16 AS col0
----
6045

query I rowsort
SELECT - - COALESCE ( + ( 19 ), + 9 ) col0
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL + + COUNT( DISTINCT - 72 ) + + - ( - 50 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + + COUNT ( DISTINCT - 72 ) + + - ( - 50 ) col2
----
51

query I rowsort
SELECT - CASE + 64 WHEN + 81 THEN 62 WHEN - + 56 THEN NULL ELSE NULL END col0
----
NULL

query I rowsort
SELECT + 35 + 0
----
35

query II rowsort
SELECT 33, - 58 col1
----
33
-58

onlyif mysql # DIV for integer division: 
query III rowsort label-2605
SELECT - 44 AS col2, + 76 * + + 38 * 94 AS col0, - + 97 DIV 41 * + - 44
----
-44
271472
88

skipif mysql # not compatible
query III rowsort label-2605
SELECT - 44 AS col2, + 76 * + + 38 * 94 AS col0, - + 97 / 41 * + - 44
----
-44
271472
88

query I rowsort
SELECT DISTINCT + 53 * - + 43
----
-2279

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2607
SELECT - CAST( 61 AS SIGNED ) DIV + 38 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2607
SELECT - CAST ( 61 AS INTEGER ) / + 38 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT + + 83 + - MAX( ALL - 61 ) * - - COUNT( + + 8 )
----
144

skipif mysql # not compatible
query I rowsort label-2608
SELECT + + 83 + - MAX ( ALL - 61 ) * - - COUNT ( + + 8 )
----
144

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2610
SELECT ALL + 3 - + 51 DIV - - 54 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL + 3 - + 51 / - - 54 AS col0
----
3

query I rowsort
SELECT DISTINCT ( - - 34 ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2612
SELECT DISTINCT 22 AS col1, - 12 + - CAST( NULL AS SIGNED ) + + - COUNT( ALL + 87 ) - ( - + 16 ) AS col1
----
22
NULL

skipif mysql # not compatible
query II rowsort label-2612
SELECT DISTINCT 22 AS col1, - 12 + - CAST ( NULL AS INTEGER ) + + - COUNT ( ALL + 87 ) - ( - + 16 ) AS col1
----
22
NULL

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

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

query I rowsort
SELECT DISTINCT + - NULLIF ( 74, 65 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT - MAX( ALL + - 73 ) * COUNT( * ) * COUNT( * ) * 78 * + + NULLIF ( + 22, - 52 / + 50 ) * - + NULLIF ( 50, 71 ) * - COUNT( * ) + - 66 + 64
----
6263398

skipif mysql # not compatible
query I rowsort label-2615
SELECT - MAX ( ALL + - 73 ) * COUNT ( * ) * COUNT ( * ) * 78 * + + NULLIF ( + 22, - 52 / + 50 ) * - + NULLIF ( 50, 71 ) * - COUNT ( * ) + - 66 + 64
----
6263398

query II rowsort
SELECT 89, - 39 + - 2 AS col0
----
89
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2617
SELECT ALL COUNT( * ) DIV - COALESCE ( - 96, - 37 ) - + 73
----
-73

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL COUNT ( * ) / - COALESCE ( - 96, - 37 ) - + 73
----
-73

query I rowsort
SELECT DISTINCT 2 * 65 col1
----
130

query II rowsort
SELECT ( 94 ), - 59 AS col1
----
94
-59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2621
SELECT ALL 37 * - CAST( - 73 AS SIGNED ) AS col1, - ( + NULLIF ( + 70, - 21 + - 86 ) ) + 15 + + 13 AS col1
----
2701
-42

skipif mysql # not compatible
query II rowsort label-2621
SELECT ALL 37 * - CAST ( - 73 AS INTEGER ) AS col1, - ( + NULLIF ( + 70, - 21 + - 86 ) ) + 15 + + 13 AS col1
----
2701
-42

query I rowsort
SELECT + COALESCE ( 73, + 36 ) AS col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2623
SELECT DISTINCT 66 * - 78 * 58 DIV - + 13 AS col2
----
22968

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT 66 * - 78 * 58 / - + 13 AS col2
----
22968

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2625
SELECT + CAST( + 72 AS SIGNED ) DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT + CAST ( + 72 AS INTEGER ) / - 92
----
0

query I rowsort
SELECT + 65 + + COALESCE ( + 41, - + 68 ) + 1 + + - 53 AS col2
----
54

query I rowsort
SELECT - 41 * - 53
----
2173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2628
SELECT ALL - 20 * + 98 + + 23 DIV + COUNT( * )
----
-1937

skipif mysql # not compatible
query I rowsort label-2628
SELECT ALL - 20 * + 98 + + 23 / + COUNT ( * )
----
-1937

query II rowsort
SELECT NULLIF ( - + 20, 21 ) AS col1, 73
----
-20
73

query I rowsort
SELECT ALL - 70 * - 73 + - 8 * - 65 col0
----
5630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2631
SELECT + 29 DIV - MIN( ALL - 73 )
----
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT + 29 / - MIN ( ALL - 73 )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2633
SELECT DISTINCT - ( - - 31 ) * + COUNT( * ) * + + 26 * - CASE + 87 WHEN - + 93 * - MIN( DISTINCT 52 ) + - - CAST( + 77 AS SIGNED ) * + + 63 THEN + 4 - + 66 * + ( 46 ) * + + 54 ELSE - COUNT( * ) END + + 60 + + COUNT( * )
----
-745

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT - ( - - 31 ) * + COUNT ( * ) * + + 26 * - CASE + 87 WHEN - + 93 * - MIN ( DISTINCT 52 ) + - - CAST ( + 77 AS INTEGER ) * + + 63 THEN + 4 - + 66 * + ( 46 ) * + + 54 ELSE - COUNT ( * ) END + + 60 + + COUNT ( * )
----
-745

query II rowsort
SELECT ALL ( - - 22 ) AS col1, + 73 * - 45 + + 70
----
22
-3215

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT + MAX( ALL - 53 ) * + 18
----
-954

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT + MAX ( ALL - 53 ) * + 18
----
-954

query I rowsort
SELECT DISTINCT - ( 43 ) * 55 + + + 51 AS col1
----
-2314

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL + 51 * COUNT( * ) * + 8 + 9 AS col2
----
417

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL + 51 * COUNT ( * ) * + 8 + 9 AS col2
----
417

query I rowsort
SELECT - 92 * - - 30 AS col1
----
-2760

query I rowsort
SELECT DISTINCT + - 0 * - + 57 + 68 AS col2
----
68

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

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

query I rowsort
SELECT - + 93 - - - 1 AS col0
----
-94

query I rowsort
SELECT DISTINCT + 65 - - 35 - 41 + - + ( - + 10 )
----
69

query I rowsort
SELECT DISTINCT - - 11 - - 32
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - + 93 * - 53 + + - SUM( ALL + 42 ) AS col0
----
4887

skipif mysql # not compatible
query I rowsort label-2644
SELECT - + 93 * - 53 + + - SUM ( ALL + 42 ) AS col0
----
4887

query I rowsort
SELECT ALL 52 * + + 67 * - - 89 AS col1
----
310076

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

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

query I rowsort
SELECT 31 + - 10 AS col2
----
21

query II rowsort
SELECT - 79 * ( 96 ) AS col1, 71 AS col1
----
-7584
71

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

skipif mysql # not compatible
query I rowsort label-2649
SELECT 20 * - COUNT ( * )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL - 22 * + - MAX( 54 ) * + + 10
----
11880

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - 22 * + - MAX ( 54 ) * + + 10
----
11880

query I rowsort
SELECT 7 + - + ( - + 64 )
----
71

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

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

query I rowsort
SELECT 68 + + 83
----
151

query I rowsort
SELECT DISTINCT - 91 * + 90 * 40 AS col2
----
-327600

query I rowsort
SELECT DISTINCT + 37 * + 3
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-2656
SELECT ALL - 49 AS col2, - SUM( DISTINCT 36 ) AS col1
----
-49
-36

skipif mysql # not compatible
query II rowsort label-2656
SELECT ALL - 49 AS col2, - SUM ( DISTINCT 36 ) AS col1
----
-49
-36

query I rowsort
SELECT ALL + 19 + + + 76
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT ALL - COALESCE ( + - 16, + - 98 ), - COUNT( * ) AS col2
----
16
-1

skipif mysql # not compatible
query II rowsort label-2658
SELECT ALL - COALESCE ( + - 16, + - 98 ), - COUNT ( * ) AS col2
----
16
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2659
SELECT 32, + CAST( - - COUNT( * ) AS SIGNED ) DIV + + 58 AS col2
----
32
0

skipif mysql # not compatible
query II rowsort label-2659
SELECT 32, + CAST ( - - COUNT ( * ) AS INTEGER ) / + + 58 AS col2
----
32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT ALL 47 + - 42 * 55 * COUNT( * ) AS col1
----
-2263

skipif mysql # not compatible
query I rowsort label-2660
SELECT ALL 47 + - 42 * 55 * COUNT ( * ) AS col1
----
-2263

query I rowsort
SELECT ALL 82 + - 47
----
35

query I rowsort
SELECT ALL 0 * - ( - ( + + 55 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2663
SELECT ALL - 83 col0, 85 + + COUNT( * )
----
-83
86

skipif mysql # not compatible
query II rowsort label-2663
SELECT ALL - 83 col0, 85 + + COUNT ( * )
----
-83
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL ( + - ( - 59 ) ) + + + NULLIF ( + COALESCE ( - ( COUNT( * ) ), - 19 * 32 - - COUNT( - - 75 ) ), - 73 )
----
58

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL ( + - ( - 59 ) ) + + + NULLIF ( + COALESCE ( - ( COUNT ( * ) ), - 19 * 32 - - COUNT ( - - 75 ) ), - 73 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2665
SELECT DISTINCT - 76 AS col0, + MAX( + 44 ) + 32 + - 21 * - 28 + - + COUNT( * ) col0
----
-76
663

skipif mysql # not compatible
query II rowsort label-2665
SELECT DISTINCT - 76 AS col0, + MAX ( + 44 ) + 32 + - 21 * - 28 + - + COUNT ( * ) col0
----
-76
663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2666
SELECT + 34 * CASE - 83 WHEN - + 95 / + SUM( 23 ) THEN NULL WHEN - + COUNT( * ) THEN NULL WHEN - NULLIF ( 37, CAST( + - ( + 61 ) AS SIGNED ) ) * 29 THEN 31 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT + 34 * CASE - 83 WHEN - + 95 / + SUM ( 23 ) THEN NULL WHEN - + COUNT ( * ) THEN NULL WHEN - NULLIF ( 37, CAST ( + - ( + 61 ) AS INTEGER ) ) * 29 THEN 31 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2667
SELECT ALL - 27 DIV 58 * ( 44 ) AS col2, - 77 + + 97 + + COUNT( * ) * NULLIF ( + COUNT( * ), - SUM( ALL - 72 ) * CASE + 9 WHEN - + COUNT( * ) * 26 THEN - ( + - 79 ) DIV + CASE + 4 WHEN COALESCE ( - 18, + 20 ) * - 51 * - 22 * - 22 THEN - 49 * ( - 1 ) * + - 4 - + 36 WHEN + + NULLIF ( 41, - 30 + + 53 ) * 98 THEN NULL END * 35 ELSE - 32 END DIV 19 + + 51 )
----
0
21

skipif mysql # not compatible
query II rowsort label-2667
SELECT ALL - 27 / 58 * ( 44 ) AS col2, - 77 + + 97 + + COUNT ( * ) * NULLIF ( + COUNT ( * ), - SUM ( ALL - 72 ) * CASE + 9 WHEN - + COUNT ( * ) * 26 THEN - ( + - 79 ) / + CASE + 4 WHEN COALESCE ( - 18, + 20 ) * - 51 * - 22 * - 22 THEN - 49 * ( - 1 ) * + - 4 - + 36 WHEN + + NULLIF ( 41, - 30 + + 53 ) * 98 THEN NULL END * 35 ELSE - 32 END / 19 + + 51 )
----
0
21

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

skipif mysql # not compatible
query I rowsort label-2668
SELECT + COUNT ( * ) + - 43 AS col0
----
-42

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

skipif mysql # not compatible
query I rowsort label-2669
SELECT - - MIN ( ALL - - 92 )
----
92

query I rowsort
SELECT ALL + + 51 * 53
----
2703

query I rowsort
SELECT ALL - 86 * - 95 - 14 + 20
----
8176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT - 92 + AVG ( ALL - 15 ) + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT - 92 + AVG ( ALL - 15 ) + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 34, - - 58 * 98 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2674
SELECT + 19 + - 87 + ( - COALESCE ( - 69, + 20, 34 + - 17 ) ), 7 + - - COUNT( ALL - + 5 ) col0
----
1
8

skipif mysql # not compatible
query II rowsort label-2674
SELECT + 19 + - 87 + ( - COALESCE ( - 69, + 20, 34 + - 17 ) ), 7 + - - COUNT ( ALL - + 5 ) col0
----
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT MIN( - + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-2675
SELECT MIN ( - + 90 ) AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2676
SELECT - CASE - CAST( NULL AS SIGNED ) WHEN + 48 THEN CASE + + 85 WHEN 72 - + 39 * - MAX( + 86 ) / + 85 * + + 25 * - 3 * - - 92 / + + 56 THEN - 93 WHEN - - ( 26 ) - - - 9 + + CASE + 21 WHEN 67 + - 96 THEN 98 WHEN + COUNT( * ) * - - ( 11 ) - + MIN( DISTINCT - 5 ) - SUM( + 99 ) + + + MAX( DISTINCT - - 24 ) / - ( 78 ) + + 48 * 41 THEN NULL ELSE NULL END + + 81 THEN NULL END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT - CASE - CAST ( NULL AS INTEGER ) WHEN + 48 THEN CASE + + 85 WHEN 72 - + 39 * - MAX ( + 86 ) / + 85 * + + 25 * - 3 * - - 92 / + + 56 THEN - 93 WHEN - - ( 26 ) - - - 9 + + CASE + 21 WHEN 67 + - 96 THEN 98 WHEN + COUNT ( * ) * - - ( 11 ) - + MIN ( DISTINCT - 5 ) - SUM ( + 99 ) + + + MAX ( DISTINCT - - 24 ) / - ( 78 ) + + 48 * 41 THEN NULL ELSE NULL END + + 81 THEN NULL END END AS col2
----
NULL

query I rowsort
SELECT 87 * - CASE - 27 WHEN - 53 * - - 47 + + 30 - - 86 * + 67 * - - 30 THEN - 99 END
----
NULL

query I rowsort
SELECT ALL - 87 + + + 33 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL - MAX( ALL + 67 ) + 2 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL - MAX ( ALL + 67 ) + 2 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT ALL - ( SUM( ALL 68 ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL - ( SUM ( ALL 68 ) ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2681
SELECT 13 * MAX( - + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT 13 * MAX ( - + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 88 + + - ( 3 ) * + 22 + + 67 AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2683
SELECT 3 DIV + + 50
----
0

skipif mysql # not compatible
query I rowsort label-2683
SELECT 3 / + + 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2684
SELECT DISTINCT + 43 + + + AVG ( + 83 ) + - CAST( - COUNT( 89 ) AS SIGNED ) + - - CAST( NULL AS SIGNED ) - 20 + - - COALESCE ( - 46, 41 ) + - 56 - 19 * - 49 * + ( 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + 43 + + + AVG ( + 83 ) + - CAST ( - COUNT ( 89 ) AS INTEGER ) + - - CAST ( NULL AS INTEGER ) - 20 + - - COALESCE ( - 46, 41 ) + - 56 - 19 * - 49 * + ( 26 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL + 25 + - + 68 + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + 25 + - + 68 + COUNT ( * )
----
-42

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

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL ( - + 84 ) + + COUNT ( * ) AS col1
----
-83

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

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT - MIN ( 92 )
----
-92

query I rowsort
SELECT ALL - 98 - - + 8
----
-90

query I rowsort
SELECT + 31 * - 86
----
-2666

query I rowsort
SELECT + 1 * + 91 + - 71 + - + 35 * - 11 * 6 AS col1
----
2330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2691
SELECT - 16 * - COUNT( * ) DIV 52 * 48 + - SUM( ALL + 84 ) * + + CAST( NULLIF ( + + 60, + + 14 + - 37 ) AS SIGNED ) * ( - 8 ) AS col2
----
40320

skipif mysql # not compatible
query I rowsort label-2691
SELECT - 16 * - COUNT ( * ) / 52 * 48 + - SUM ( ALL + 84 ) * + + CAST ( NULLIF ( + + 60, + + 14 + - 37 ) AS INTEGER ) * ( - 8 ) AS col2
----
40320

query I rowsort
SELECT ALL - 38 * 69
----
-2622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2693
SELECT - - ( + CASE - - 0 WHEN + CASE + NULLIF ( + COUNT( * ), 62 / + NULLIF ( + + COUNT( * ), - 34 - 56 ) ) WHEN - 23 THEN NULL ELSE + 83 + ( CAST( NULL AS SIGNED ) ) END THEN 64 + + + 60 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT - - ( + CASE - - 0 WHEN + CASE + NULLIF ( + COUNT ( * ), 62 / + NULLIF ( + + COUNT ( * ), - 34 - 56 ) ) WHEN - 23 THEN NULL ELSE + 83 + ( CAST ( NULL AS INTEGER ) ) END THEN 64 + + + 60 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) - 42 - 70
----
-113

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) - 42 - 70
----
-113

query I rowsort
SELECT + + 66 * 7 AS col0
----
462

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

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

query I rowsort
SELECT + 43 - + - 26 * + 63
----
1681

query I rowsort
SELECT + - 91 * ( - 45 ) * - 91
----
-372645

onlyif mysql # DIV for integer division: 
query I rowsort label-2699
SELECT + 56 - + 17 - - + 33 * 11 + - 72 + 27 + 11 DIV + 31
----
357

skipif mysql # not compatible
query I rowsort label-2699
SELECT + 56 - + 17 - - + 33 * 11 + - 72 + 27 + 11 / + 31
----
357

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2701
SELECT - + 11 DIV COUNT( - + 13 )
----
-11

skipif mysql # not compatible
query I rowsort label-2701
SELECT - + 11 / COUNT ( - + 13 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT DISTINCT - 52 + + 57 * + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT - 52 + + 57 * + COUNT ( * ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT + 84 * 21 DIV - 28 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2703
SELECT + 84 * 21 / - 28 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT - 73 + - - 66 - 17 - + COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT - 73 + - - 66 - 17 - + COUNT ( * ) AS col0
----
-25

query I rowsort
SELECT DISTINCT 19 + 59 col1
----
78

query I rowsort
SELECT DISTINCT - 64 * 92 * + 58 AS col1
----
-341504

onlyif mysql # aggregate syntax: 
query II rowsort label-2707
SELECT + 43 + + + 11 * - COUNT( * ) AS col0, 85 AS col1
----
32
85

skipif mysql # not compatible
query II rowsort label-2707
SELECT + 43 + + + 11 * - COUNT ( * ) AS col0, 85 AS col1
----
32
85

query I rowsort
SELECT - 49 - + + 71
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2709
SELECT + ( + - MAX( DISTINCT 72 ) ) + + - ( - 5 ) DIV - + 15 - + 43
----
-115

skipif mysql # not compatible
query I rowsort label-2709
SELECT + ( + - MAX ( DISTINCT 72 ) ) + + - ( - 5 ) / - + 15 - + 43
----
-115

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

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

query II rowsort
SELECT 82, + 50 col2
----
82
50

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

query I rowsort
SELECT ALL - 56 + - - 44
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT + COUNT( * ) + 42 + - + 82 + - - 21 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2714
SELECT + COUNT ( * ) + 42 + - + 82 + - - 21 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query II rowsort label-2715
SELECT DISTINCT 63 * - - ( + 48 ) DIV - 2 + - 43, 48 * 68 AS col2
----
-1555
3264

skipif mysql # not compatible
query II rowsort label-2715
SELECT DISTINCT 63 * - - ( + 48 ) / - 2 + - 43, 48 * 68 AS col2
----
-1555
3264

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT ALL + MIN( - NULLIF ( - 58, + + 20 ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL + MIN ( - NULLIF ( - 58, + + 20 ) ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL COUNT( * ) * 41 + + 60
----
101

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL COUNT ( * ) * 41 + + 60
----
101

query I rowsort
SELECT - 83 * + 35
----
-2905

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT - 41 + + SUM( 8 )
----
-33

skipif mysql # not compatible
query I rowsort label-2720
SELECT - 41 + + SUM ( 8 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL + SUM( DISTINCT + + 5 ) * + 87 - 37 + 33 * ( - - 18 ) * + 59 - + COUNT( * )
----
35443

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + SUM ( DISTINCT + + 5 ) * + 87 - 37 + 33 * ( - - 18 ) * + 59 - + COUNT ( * )
----
35443

onlyif mysql # DIV for integer division: 
query I rowsort label-2722
SELECT ALL + 30 DIV - 11
----
-2

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL + 30 / - 11
----
-2

query I rowsort
SELECT - 35 + 16 + - ( - 59 ) * + + ( - 68 ) * + 25 AS col2
----
-100319

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT + 47 * + + 45 * 19 * + - COUNT( * )
----
-40185

skipif mysql # not compatible
query I rowsort label-2724
SELECT + 47 * + + 45 * 19 * + - COUNT ( * )
----
-40185

onlyif mysql # aggregate syntax: 
query II rowsort label-2725
SELECT COALESCE ( + 6, + 85 ) AS col0, SUM( DISTINCT - + 7 )
----
6
-7

skipif mysql # not compatible
query II rowsort label-2725
SELECT COALESCE ( + 6, + 85 ) AS col0, SUM ( DISTINCT - + 7 )
----
6
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2726
SELECT ALL - NULLIF ( 3, 16 ) * + CAST( NULL AS SIGNED ) * AVG ( DISTINCT - + 30 ) - + 24 / + + 16 AS col1, 49 col1
----
NULL
49

skipif mysql # not compatible
query II rowsort label-2726
SELECT ALL - NULLIF ( 3, 16 ) * + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - + 30 ) - + 24 / + + 16 AS col1, 49 col1
----
NULL
49

query I rowsort
SELECT + 86 * - 1 * + - 34 + - 19 AS col1
----
2905

query I rowsort
SELECT ALL + + 72 * 88 AS col2
----
6336

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT - 16 DIV + 41 + - 43 + - 43 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-2729
SELECT - 16 / + 41 + - 43 + - 43 AS col1
----
-86

query I rowsort
SELECT - 25 * - 96 + 41
----
2441

query I rowsort
SELECT DISTINCT + 0 * 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2732
SELECT CAST( + + ( - ( + MIN( ALL 54 ) ) ) AS SIGNED ), + CASE 68 WHEN + COUNT( * ) THEN NULLIF ( - + COALESCE ( - + SUM( DISTINCT 22 ), + 5 * + COALESCE ( + 37, + 52 - + AVG ( DISTINCT - + 60 ) ) ), + 70 ) * - 13 WHEN - - MAX( ALL 39 ) * + 46 THEN NULL END / 56 AS col2
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-2732
SELECT CAST ( + + ( - ( + MIN ( ALL 54 ) ) ) AS INTEGER ), + CASE 68 WHEN + COUNT ( * ) THEN NULLIF ( - + COALESCE ( - + SUM ( DISTINCT 22 ), + 5 * + COALESCE ( + 37, + 52 - + AVG ( DISTINCT - + 60 ) ) ), + 70 ) * - 13 WHEN - - MAX ( ALL 39 ) * + 46 THEN NULL END / 56 AS col2
----
-54
NULL

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

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

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

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

query I rowsort
SELECT ALL + NULLIF ( + 31, - 47 ) AS col2
----
31

query I rowsort
SELECT - + 70 + 44 * 19 AS col2
----
766

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

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

skipif mysql # not compatible
query I rowsort label-2738
SELECT - 41 + - COUNT ( * ) AS col0
----
-42

query I rowsort
SELECT + 71 * - 17 + + 94
----
-1113

query I rowsort
SELECT ALL - - 63 + + 38 col2
----
101

query I rowsort
SELECT ALL 98 * + - 84
----
-8232

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT - - 54 + 17 * - - CASE - NULLIF ( - 63, MIN( 30 ) ) WHEN - 95 * - ( + 18 ) * - 22 THEN + - 35 + + - 31 - 82 ELSE NULL END / - 83 + + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT - - 54 + 17 * - - CASE - NULLIF ( - 63, MIN ( 30 ) ) WHEN - 95 * - ( + 18 ) * - 22 THEN + - 35 + + - 31 - 82 ELSE NULL END / - 83 + + 70
----
NULL

query I rowsort
SELECT ALL - 43 + + + 41 - ( 43 ) AS col0
----
-45

query I rowsort
SELECT DISTINCT + + 50 * 95 * - 18 AS col0
----
-85500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT ALL + 68 + + + 97 + + CASE 34 WHEN - 33 THEN - 95 + + - CASE + CAST( 54 AS SIGNED ) WHEN + 11 THEN + 0 WHEN 91 THEN NULL ELSE NULL END + - - 7 END + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL + 68 + + + 97 + + CASE 34 WHEN - 33 THEN - 95 + + - CASE + CAST ( 54 AS INTEGER ) WHEN + 11 THEN + 0 WHEN 91 THEN NULL ELSE NULL END + - - 7 END + 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT + + CAST( 92 AS SIGNED ) + + - 73
----
19

skipif mysql # not compatible
query I rowsort label-2746
SELECT + + CAST ( 92 AS INTEGER ) + + - 73
----
19

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

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

query I rowsort
SELECT + 49 + + 97
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2749
SELECT DISTINCT MIN( DISTINCT - CASE 65 WHEN + CAST( NULL AS SIGNED ) THEN - 4 * - 68 + + - 78 + ( 58 ) WHEN 30 THEN NULL ELSE NULL END ) + + - 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT MIN ( DISTINCT - CASE 65 WHEN + CAST ( NULL AS INTEGER ) THEN - 4 * - 68 + + - 78 + ( 58 ) WHEN 30 THEN NULL ELSE NULL END ) + + - 30 col2
----
NULL

query II rowsort
SELECT ALL 31 + 15 AS col1, - 43
----
46
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT + 1 + + COALESCE ( + NULLIF ( 48, MAX( DISTINCT - - 42 ) ), + 70 + + 16 )
----
49

skipif mysql # not compatible
query I rowsort label-2751
SELECT + 1 + + COALESCE ( + NULLIF ( 48, MAX ( DISTINCT - - 42 ) ), + 70 + + 16 )
----
49

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

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

query I rowsort
SELECT + 89 * 16 * + + 77
----
109648

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

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

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

query I rowsort
SELECT + 83 * + + 91
----
7553

query I rowsort
SELECT + 59 * + 17 AS col2
----
1003

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT DISTINCT MIN( + 98 ) * - - 19
----
1862

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT MIN ( + 98 ) * - - 19
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL NULLIF ( - 99, 59 ) * + MAX( - 51 ) * - 32 AS col0
----
-161568

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL NULLIF ( - 99, 59 ) * + MAX ( - 51 ) * - 32 AS col0
----
-161568

onlyif mysql # DIV for integer division: 
query II rowsort label-2760
SELECT + 23 * - 59, + NULLIF ( + 69, 73 ) DIV - - 43 AS col1
----
-1357
1

skipif mysql # not compatible
query II rowsort label-2760
SELECT + 23 * - 59, + NULLIF ( + 69, 73 ) / - - 43 AS col1
----
-1357
1

query I rowsort
SELECT 26 * 63 - - - 16
----
1622

query II rowsort
SELECT ALL + 99, + 80 col1
----
99
80

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT + - 60 * ( + 67 ) * - - 89 * 34 + + COUNT( * )
----
-12164519

skipif mysql # not compatible
query I rowsort label-2765
SELECT + - 60 * ( + 67 ) * - - 89 * 34 + + COUNT ( * )
----
-12164519

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

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

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

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

query I rowsort
SELECT ALL + - COALESCE ( - 69, + 96 * - ( + 81 ) + 67 + + - 27 ) AS col1
----
69

query I rowsort
SELECT ALL + 15 * 94 - - - 20 + - + 79 * + ( + 24 )
----
-506

query I rowsort
SELECT - 89 * - + 95
----
8455

query I rowsort
SELECT 2 + + 62 * + + 81 * - 8
----
-40174

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT DISTINCT + - 2 DIV - - 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT + - 2 / - - 19 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL - COUNT( * ) + 2
----
1

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - COUNT ( * ) + 2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL + 55 * - 60 + + + 42 * + + COUNT( * ) AS col2
----
-3258

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL + 55 * - 60 + + + 42 * + + COUNT ( * ) AS col2
----
-3258

query II rowsort
SELECT - 36 AS col1, - 86 col1
----
-36
-86

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

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

query I rowsort
SELECT DISTINCT - 5 + + + ( + + COALESCE ( + 52, 82 ) ) col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT 0 * + 30 * COUNT( * ) + + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-2778
SELECT 0 * + 30 * COUNT ( * ) + + 79 AS col2
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT ALL - 94 * - + 76 * 81 + COUNT( * ), 86 col2
----
578665
86

skipif mysql # not compatible
query II rowsort label-2779
SELECT ALL - 94 * - + 76 * 81 + COUNT ( * ), 86 col2
----
578665
86

query II rowsort
SELECT ALL + 77 AS col1, 64 + 24 AS col2
----
77
88

query I rowsort
SELECT ALL + 3 + 2 AS col2
----
5

query I rowsort
SELECT - ( - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT ALL - 12 + - COUNT( * ) col1
----
-13

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL - 12 + - COUNT ( * ) col1
----
-13

query I rowsort
SELECT 84 - + + 54 AS col2
----
30

query I rowsort
SELECT 97 * - - 57 * + + 4
----
22116

query I rowsort
SELECT ALL + ( + + 23 ) * + + 76
----
1748

query I rowsort
SELECT DISTINCT 42 - + 9 AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2788
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 62, - CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2788
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 62, - CAST ( NULL AS REAL )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL MIN( + + 38 ) - - ( 81 )
----
119

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL MIN ( + + 38 ) - - ( 81 )
----
119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL + 29 * + COALESCE ( - + COUNT( * ), - NULLIF ( + + CASE + ( + 58 ) WHEN + + 92 + - COALESCE ( + 90, - MIN( + 29 ) ) THEN - + 90 END, - 2 ) * + + 18 + 34 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL + 29 * + COALESCE ( - + COUNT ( * ), - NULLIF ( + + CASE + ( + 58 ) WHEN + + 92 + - COALESCE ( + 90, - MIN ( + 29 ) ) THEN - + 90 END, - 2 ) * + + 18 + 34 ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT COALESCE ( + 95, 67 DIV + 48 * COALESCE ( + ( + + 84 ), - 14 ) ) - - + 57 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-2792
SELECT COALESCE ( + 95, 67 / + 48 * COALESCE ( + ( + + 84 ), - 14 ) ) - - + 57 AS col2
----
152

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

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

query I rowsort
SELECT 12 + - 7 AS col1
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-2795
SELECT ALL 70 DIV + 78, + 7 * - - ( - - 83 ) AS col2
----
0
581

skipif mysql # not compatible
query II rowsort label-2795
SELECT ALL 70 / + 78, + 7 * - - ( - - 83 ) AS col2
----
0
581

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT 44 DIV - + 48 col2
----
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT 44 / - + 48 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT + 86 * + NULLIF ( - 97, 58 ) + - COALESCE ( COALESCE ( - - 91, + COUNT( * ) ), CASE + 89 WHEN - 66 / 78 * ( + + 91 ) * - 84 THEN COUNT( + - 87 ) + + SUM( + 9 ) END * + + 87 )
----
-8433

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT + 86 * + NULLIF ( - 97, 58 ) + - COALESCE ( COALESCE ( - - 91, + COUNT ( * ) ), CASE + 89 WHEN - 66 / 78 * ( + + 91 ) * - 84 THEN COUNT ( + - 87 ) + + SUM ( + 9 ) END * + + 87 )
----
-8433

query I rowsort
SELECT DISTINCT - 17 + - + 49 + + + 80
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT COUNT( * ) * - + 52 - + ( - - 54 ) AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-2799
SELECT COUNT ( * ) * - + 52 - + ( - - 54 ) AS col2
----
-106

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2801
SELECT ALL - 67 + - 66 AS col0, 99 DIV + 95
----
-133
1

skipif mysql # not compatible
query II rowsort label-2801
SELECT ALL - 67 + - 66 AS col0, 99 / + 95
----
-133
1

query II rowsort
SELECT 97 + + - 87, 38 * 87 AS col0
----
10
3306

query I rowsort
SELECT + CASE 45 WHEN 94 THEN NULL ELSE + 96 END
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL - NULLIF ( 62, + 13 ) + COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL - NULLIF ( 62, + 13 ) + COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT DISTINCT - 65 * - 31
----
2015

onlyif mysql # aggregate syntax: 
query II rowsort label-2806
SELECT ALL + 41 + - CASE - COUNT( * ) WHEN - - SUM( ALL + 56 ) + 61 THEN - 74 END AS col0, - 85
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-2806
SELECT ALL + 41 + - CASE - COUNT ( * ) WHEN - - SUM ( ALL + 56 ) + 61 THEN - 74 END AS col0, - 85
----
NULL
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-2807
SELECT ALL 47 DIV - + 12 + + 95 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL 47 / - + 12 + + 95 AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT DISTINCT - 15 * - CAST( - 46 AS SIGNED )
----
-690

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT - 15 * - CAST ( - 46 AS INTEGER )
----
-690

query I rowsort
SELECT 29 - - 94 - - - 8
----
115

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2810
SELECT ALL - ( + AVG ( + 10 ) ) * - COUNT( * ) * - CASE + COUNT( * ) WHEN + - 82 + - 80 THEN - + 87 WHEN + 5 + - ( 89 ) THEN + - CAST( 20 AS DECIMAL ) + + 47 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL - ( + AVG ( + 10 ) ) * - COUNT ( * ) * - CASE + COUNT ( * ) WHEN + - 82 + - 80 THEN - + 87 WHEN + 5 + - ( 89 ) THEN + - CAST ( 20 AS REAL ) + + 47 END AS col2
----
NULL

query I rowsort
SELECT 3 + + + 2 * 29
----
61

query I rowsort
SELECT ALL - 88 - + + 50
----
-138

query II rowsort
SELECT DISTINCT 13 * + ( + + 8 ) AS col2, + 32
----
104
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT ALL COUNT( ALL 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL COUNT ( ALL 25 ) AS col1
----
1

query I rowsort
SELECT 22 * + 13 AS col1
----
286

query I rowsort
SELECT 32 * + 14 AS col0
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT COUNT( * ) + - ( - 44 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-2817
SELECT COUNT ( * ) + - ( - 44 ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2818
SELECT ALL SUM( - ( + - 32 ) ), 68 * + - 69 * + 3 / - + NULLIF ( - - CAST( NULL AS SIGNED ), - + ( - COALESCE ( + 31, + + NULLIF ( 21, + - ( - 7 ) * + + NULLIF ( + NULLIF ( - COUNT( * ), - COUNT( * ) * - - 35 ), + 56 ) ) * 33 + - 3 + - + 54 + 12 / - - 86 * + 76 + COUNT( * ) ) ) * - - MIN( - - 66 ) + COUNT( * ) + - 4 * + 26 ) AS col1
----
32
NULL

skipif mysql # not compatible
query II rowsort label-2818
SELECT ALL SUM ( - ( + - 32 ) ), 68 * + - 69 * + 3 / - + NULLIF ( - - CAST ( NULL AS INTEGER ), - + ( - COALESCE ( + 31, + + NULLIF ( 21, + - ( - 7 ) * + + NULLIF ( + NULLIF ( - COUNT ( * ), - COUNT ( * ) * - - 35 ), + 56 ) ) * 33 + - 3 + - + 54 + 12 / - - 86 * + 76 + COUNT ( * ) ) ) * - - MIN ( - - 66 ) + COUNT ( * ) + - 4 * + 26 ) AS col1
----
32
NULL

query I rowsort
SELECT 9 * 19 AS col0
----
171

query II rowsort
SELECT 11 AS col0, ( - - 9 ) AS col2
----
11
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2822
SELECT 27 AS col2, + CAST( + 92 AS SIGNED ) * - - 86 + + + COUNT( * )
----
27
7913

skipif mysql # not compatible
query II rowsort label-2822
SELECT 27 AS col2, + CAST ( + 92 AS INTEGER ) * - - 86 + + + COUNT ( * )
----
27
7913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2823
SELECT ALL CASE ( + 44 ) WHEN + + COUNT( * ) * 71 THEN 58 WHEN MIN( - 72 ) * ( + 4 ) / 36 * - + COALESCE ( - CAST( NULL AS SIGNED ), + - 32 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL CASE ( + 44 ) WHEN + + COUNT ( * ) * 71 THEN 58 WHEN MIN ( - 72 ) * ( + 4 ) / 36 * - + COALESCE ( - CAST ( NULL AS INTEGER ), + - 32 ) THEN NULL END
----
NULL

query II rowsort
SELECT - 62, 49 AS col1
----
-62
49

query I rowsort
SELECT ALL 64 * - + 4
----
-256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2826
SELECT - 68 AS col0, 32 - - 12 + + 76 DIV + - 50 + - COUNT( * )
----
-68
42

skipif mysql # not compatible
query II rowsort label-2826
SELECT - 68 AS col0, 32 - - 12 + + 76 / + - 50 + - COUNT ( * )
----
-68
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL + COUNT( * ) + + 75 + + COUNT( * ) * + 59 + - 58
----
77

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL + COUNT ( * ) + + 75 + + COUNT ( * ) * + 59 + - 58
----
77

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

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT - COUNT ( * ) + - 81 AS col2
----
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT - 62 * + NULLIF ( - ( + 83 ), + + 82 * + NULLIF ( 61, + 87 - CASE 49 WHEN NULLIF ( + 19, - 38 * + 32 * + + 56 * + - 56 + - + 45 ) THEN - 64 * 20 * + COUNT( * ) * - + COUNT( DISTINCT + 4 ) + 12 WHEN + + 94 THEN NULL END ) ) * - 64 AS col1
----
-329344

skipif mysql # not compatible
query I rowsort label-2830
SELECT - 62 * + NULLIF ( - ( + 83 ), + + 82 * + NULLIF ( 61, + 87 - CASE 49 WHEN NULLIF ( + 19, - 38 * + 32 * + + 56 * + - 56 + - + 45 ) THEN - 64 * 20 * + COUNT ( * ) * - + COUNT ( DISTINCT + 4 ) + 12 WHEN + + 94 THEN NULL END ) ) * - 64 AS col1
----
-329344

query I rowsort
SELECT + + 93 * - - 32 AS col1
----
2976

query I rowsort
SELECT ALL - + 60 * 29
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT ALL - COUNT( * ) * + 30 * - - 66 + 85
----
-1895

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL - COUNT ( * ) * + 30 * - - 66 + 85
----
-1895

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2835
SELECT + 34 * + + ( + + MAX( 52 ) ) * - - ( CAST( 61 AS SIGNED ) ) - 25 + - 59
----
107764

skipif mysql # not compatible
query I rowsort label-2835
SELECT + 34 * + + ( + + MAX ( 52 ) ) * - - ( CAST ( 61 AS INTEGER ) ) - 25 + - 59
----
107764

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT ALL + SUM( DISTINCT - + ( - 8 ) ) * 16 col2
----
128

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + SUM ( DISTINCT - + ( - 8 ) ) * 16 col2
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-2837
SELECT + 5 col2, SUM( + 58 )
----
5
58

skipif mysql # not compatible
query II rowsort label-2837
SELECT + 5 col2, SUM ( + 58 )
----
5
58

query I rowsort
SELECT + - 75 + + - 95 AS col1
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT - + 74 * + + COUNT( * ) + - - 46 + 49 * 34 - COUNT( * )
----
1637

skipif mysql # not compatible
query I rowsort label-2839
SELECT - + 74 * + + COUNT ( * ) + - - 46 + 49 * 34 - COUNT ( * )
----
1637

query I rowsort
SELECT + - 31 * + 67
----
-2077

query I rowsort
SELECT ALL 53 * - 36
----
-1908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2842
SELECT + 9 * - 47 * + 56 * - 70 + - + CAST( + 46 AS SIGNED ) AS col1, 25 / NULLIF ( - 40, - - 91 * - COUNT( * ) ) / CASE - 44 WHEN 82 THEN - 4 ELSE NULL END AS col0
----
1658114
NULL

skipif mysql # not compatible
query II rowsort label-2842
SELECT + 9 * - 47 * + 56 * - 70 + - + CAST ( + 46 AS INTEGER ) AS col1, 25 / NULLIF ( - 40, - - 91 * - COUNT ( * ) ) / CASE - 44 WHEN 82 THEN - 4 ELSE NULL END AS col0
----
1658114
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT - COUNT( * ) * ( - 92 ) * - 6 * + - 18 - MAX( DISTINCT 93 )
----
9843

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT - COUNT ( * ) * ( - 92 ) * - 6 * + - 18 - MAX ( DISTINCT 93 )
----
9843

query I rowsort
SELECT + NULLIF ( + - 19, - + 90 )
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT COUNT( + 52 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2846
SELECT COUNT ( + 52 ) col2
----
1

query I rowsort
SELECT + 30 * + 89
----
2670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2848
SELECT + 24 - + CAST( + - 88 AS SIGNED )
----
112

skipif mysql # not compatible
query I rowsort label-2848
SELECT + 24 - + CAST ( + - 88 AS INTEGER )
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2849
SELECT + 83 DIV 73 * 96 DIV + + SUM( - 4 )
----
-24

skipif mysql # not compatible
query I rowsort label-2849
SELECT + 83 / 73 * 96 / + + SUM ( - 4 )
----
-24

query I rowsort
SELECT - 89 * 6 AS col0
----
-534

query I rowsort
SELECT + 0 - - + 49 AS col2
----
49

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

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

query I rowsort
SELECT ALL NULLIF ( 45, + + 92 )
----
45

query I rowsort
SELECT - 29 * 19 * + 32 AS col1
----
-17632

query I rowsort
SELECT - 46 - + - 55
----
9

query I rowsort
SELECT + 17 + 69 + + NULLIF ( + + 93, 84 ) AS col1
----
179

query I rowsort
SELECT - COALESCE ( 25, 77 ) - + + 30 * + 31 + + + 42 AS col1
----
-913

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2859
SELECT - + 48 * - 72 AS col0, - 61 * CASE + 31 WHEN - 82 * 0 / - 26 * - 42 * + 82 THEN + COUNT( * ) WHEN - + ( 27 ) THEN + 3 + - 0 END * + - ( + NULLIF ( - ( - - 44 ), + - 94 * + 84 ) ) AS col1
----
3456
NULL

skipif mysql # not compatible
query II rowsort label-2859
SELECT - + 48 * - 72 AS col0, - 61 * CASE + 31 WHEN - 82 * 0 / - 26 * - 42 * + 82 THEN + COUNT ( * ) WHEN - + ( 27 ) THEN + 3 + - 0 END * + - ( + NULLIF ( - ( - - 44 ), + - 94 * + 84 ) ) AS col1
----
3456
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT ALL + 67 + - 66 * - COUNT( * ) * + COUNT( * ) * + 95
----
6337

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL + 67 + - 66 * - COUNT ( * ) * + COUNT ( * ) * + 95
----
6337

query I rowsort
SELECT - 82 + 10
----
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2863
SELECT + - 6 DIV CAST( - 45 AS SIGNED ) DIV 91 - 98 + + - 97 + 68 + - 14 * - COUNT( * ) + 18 + - COUNT( * ) + + + CASE - 36 WHEN - MIN( - - 25 ) * 97 + - ( 80 ) THEN + COUNT( * ) WHEN 90 * - + COUNT( * ) THEN NULL WHEN 41 + 21 THEN - - 80 ELSE + 51 END DIV - COUNT( * ) AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-2863
SELECT + - 6 / CAST ( - 45 AS INTEGER ) / 91 - 98 + + - 97 + 68 + - 14 * - COUNT ( * ) + 18 + - COUNT ( * ) + + + CASE - 36 WHEN - MIN ( - - 25 ) * 97 + - ( 80 ) THEN + COUNT ( * ) WHEN 90 * - + COUNT ( * ) THEN NULL WHEN 41 + 21 THEN - - 80 ELSE + 51 END / - COUNT ( * ) AS col1
----
-147

query I rowsort
SELECT - - 21 + 96 + + 69
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL - - 41 * + SUM( + + 86 ) AS col0
----
3526

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - - 41 * + SUM ( + + 86 ) AS col0
----
3526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2866
SELECT - AVG ( 96 ) + 48 + + + NULLIF ( COUNT( * ), + 84 ) + + AVG ( DISTINCT + CAST( + 78 AS SIGNED ) ) * - - 2 + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT - AVG ( 96 ) + 48 + + + NULLIF ( COUNT ( * ), + 84 ) + + AVG ( DISTINCT + CAST ( + 78 AS INTEGER ) ) * - - 2 + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2867
SELECT + SUM( DISTINCT - + 89 ) AS col1, - 39 col2
----
-89
-39

skipif mysql # not compatible
query II rowsort label-2867
SELECT + SUM ( DISTINCT - + 89 ) AS col1, - 39 col2
----
-89
-39

query I rowsort
SELECT + + 46 + 83 + - - 74 col0
----
203

onlyif mysql # aggregate syntax: 
query II rowsort label-2869
SELECT - SUM( DISTINCT - 2 ) * + COUNT( ALL 83 ) AS col0, 57 AS col1
----
2
57

skipif mysql # not compatible
query II rowsort label-2869
SELECT - SUM ( DISTINCT - 2 ) * + COUNT ( ALL 83 ) AS col0, 57 AS col1
----
2
57

query I rowsort
SELECT + ( - - 27 ) * 3 AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2871
SELECT DISTINCT + COUNT( 79 ) AS col0, COALESCE ( 78, + 92 ) * - 36 AS col0
----
1
-2808

skipif mysql # not compatible
query II rowsort label-2871
SELECT DISTINCT + COUNT ( 79 ) AS col0, COALESCE ( 78, + 92 ) * - 36 AS col0
----
1
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT DISTINCT + COALESCE ( - 59, + - COUNT( * ) ) col1
----
-59

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT + COALESCE ( - 59, + - COUNT ( * ) ) col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2873
SELECT ALL 65 DIV 77 + - COALESCE ( - 11, + - 18, - + 50 DIV - 99 DIV + 30 + - COUNT( * ), + + ( - - 2 ) ) * + - 68 - - + 70 + - 47 + - 51 * COUNT( * ) * COUNT( * ) * 16
----
-1541

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL 65 / 77 + - COALESCE ( - 11, + - 18, - + 50 / - 99 / + 30 + - COUNT ( * ), + + ( - - 2 ) ) * + - 68 - - + 70 + - 47 + - 51 * COUNT ( * ) * COUNT ( * ) * 16
----
-1541

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

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

query I rowsort
SELECT + 43 * + - 48 AS col0
----
-2064

query I rowsort
SELECT ALL 54 * + + 8 AS col2
----
432

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

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

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

query I rowsort
SELECT + 24 + 69 AS col2
----
93

query I rowsort
SELECT DISTINCT 6 + - + 46 + ( + 62 )
----
22

query I rowsort
SELECT DISTINCT 82 + + 41 AS col2
----
123

query I rowsort
SELECT ALL + 35 + - ( + 73 ) col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT 72 + + MIN( DISTINCT + 67 ) - - NULLIF ( CASE - - COUNT( * ) WHEN - 1 THEN NULL WHEN - 27 THEN NULL WHEN + 23 THEN + ( - 72 ) END, 82 * + 86 * - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT 72 + + MIN ( DISTINCT + 67 ) - - NULLIF ( CASE - - COUNT ( * ) WHEN - 1 THEN NULL WHEN - 27 THEN NULL WHEN + 23 THEN + ( - 72 ) END, 82 * + 86 * - 57 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT 82 + + ( + 62 ) DIV 97
----
82

skipif mysql # not compatible
query I rowsort label-2884
SELECT 82 + + ( + 62 ) / 97
----
82

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

skipif mysql # not compatible
query I rowsort label-2885
SELECT - SUM ( + 22 )
----
-22

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

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

query I rowsort
SELECT DISTINCT 68 - + 82 * 68 - - - 2 AS col1
----
-5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2888
SELECT + CAST( NULL AS SIGNED ) - - COALESCE ( + + 60, 76, + 41 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT + CAST ( NULL AS INTEGER ) - - COALESCE ( + + 60, 76, + 41 ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2889
SELECT 41 DIV + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT 41 / + 73 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT DISTINCT - CASE + - ( - + 43 ) WHEN + 85 + - COUNT( * ) + + 84 * - + 90 / - 68 THEN NULL ELSE + 32 END
----
-32

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT - CASE + - ( - + 43 ) WHEN + 85 + - COUNT ( * ) + + 84 * - + 90 / - 68 THEN NULL ELSE + 32 END
----
-32

query II rowsort
SELECT + 17, 49 AS col2
----
17
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2892
SELECT + + 36 DIV NULLIF ( + 7, 70 ) - 70 * + - ( + COUNT( DISTINCT + 17 ) ) - 95 + + 87 - 88
----
-21

skipif mysql # not compatible
query I rowsort label-2892
SELECT + + 36 / NULLIF ( + 7, 70 ) - 70 * + - ( + COUNT ( DISTINCT + 17 ) ) - 95 + + 87 - 88
----
-21

query I rowsort
SELECT DISTINCT - - 70 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT 12 - NULLIF ( + COUNT( * ), + - 83 * - AVG ( 2 ) )
----
11

skipif mysql # not compatible
query I rowsort label-2894
SELECT 12 - NULLIF ( + COUNT ( * ), + - 83 * - AVG ( 2 ) )
----
11

query I rowsort
SELECT + - NULLIF ( - + 46, - 28 - 92 ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL + - COALESCE ( + 48, + 39 ) * - 13 * - CASE - 61 WHEN - 26 THEN - + 25 WHEN MAX( ALL + + 4 ) * - 78 - + - NULLIF ( - - 97, 74 + + 36 + + 58 + - - ( - 98 ) / 33 * + COUNT( * ) ) + + MAX( ALL + 66 ) / + - 53 / - NULLIF ( + COALESCE ( - 3, + 33 ), + 88 ) * 1 THEN NULL WHEN - - 99 * + COUNT( * ) THEN + ( + 13 ) END * - 52 * - 3 * + 2 * 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + - COALESCE ( + 48, + 39 ) * - 13 * - CASE - 61 WHEN - 26 THEN - + 25 WHEN MAX ( ALL + + 4 ) * - 78 - + - NULLIF ( - - 97, 74 + + 36 + + 58 + - - ( - 98 ) / 33 * + COUNT ( * ) ) + + MAX ( ALL + 66 ) / + - 53 / - NULLIF ( + COALESCE ( - 3, + 33 ), + 88 ) * 1 THEN NULL WHEN - - 99 * + COUNT ( * ) THEN + ( + 13 ) END * - 52 * - 3 * + 2 * 6
----
NULL

query I rowsort
SELECT ALL + CASE - 82 WHEN - 38 THEN NULL WHEN - - 61 THEN + 45 END * 60 - - 92 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2898
SELECT 11 DIV - 61 * - COUNT( * ) + + - 17, + 49 AS col1
----
-17
49

skipif mysql # not compatible
query II rowsort label-2898
SELECT 11 / - 61 * - COUNT ( * ) + + - 17, + 49 AS col1
----
-17
49

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

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

query II rowsort
SELECT ALL - 86 AS col1, - 44 + + + 10
----
-86
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-2901
SELECT 57, - MIN( ALL + 45 ) + - 34 + + + 31 + - 69 AS col1
----
57
-117

skipif mysql # not compatible
query II rowsort label-2901
SELECT 57, - MIN ( ALL + 45 ) + - 34 + + + 31 + - 69 AS col1
----
57
-117

query I rowsort
SELECT ALL 71 + - 88 AS col0
----
-17

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2904
SELECT ALL + ( + 3 ) + ( + 25 ) + SUM( DISTINCT - - CAST( 70 AS SIGNED ) ) DIV - 59 + + 98 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL + ( + 3 ) + ( + 25 ) + SUM ( DISTINCT - - CAST ( 70 AS INTEGER ) ) / - 59 + + 98 AS col0
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-2905
SELECT ALL - 12, + NULLIF ( - 30, - 24 ) * 77 + + + COUNT( * ) / - COUNT( * ) + + ( 97 ) + - CASE - 73 WHEN - + NULLIF ( + 84, 55 + - ( + + COUNT( * ) ) ) + + + 19 / + 69 THEN + ( + COUNT( * ) ) * - 63 WHEN AVG ( - - 10 ) + COUNT( * ) * + + COUNT( * ) + 65 THEN NULL END / + + 89 + + 35 * - + 39 AS col1
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-2905
SELECT ALL - 12, + NULLIF ( - 30, - 24 ) * 77 + + + COUNT ( * ) / - COUNT ( * ) + + ( 97 ) + - CASE - 73 WHEN - + NULLIF ( + 84, 55 + - ( + + COUNT ( * ) ) ) + + + 19 / + 69 THEN + ( + COUNT ( * ) ) * - 63 WHEN AVG ( - - 10 ) + COUNT ( * ) * + + COUNT ( * ) + 65 THEN NULL END / + + 89 + + 35 * - + 39 AS col1
----
-12
NULL

query I rowsort
SELECT 47 * - 32 AS col0
----
-1504

query I rowsort
SELECT ALL 65 + 75
----
140

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT 51 AS col2, - COUNT( * ) + + - 35
----
51
-36

skipif mysql # not compatible
query II rowsort label-2909
SELECT 51 AS col2, - COUNT ( * ) + + - 35
----
51
-36

query I rowsort
SELECT 27 + 94 + + 9 AS col1
----
130

query I rowsort
SELECT 63 * + 1 col2
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2912
SELECT - 25 * 96 * + CAST( + SUM( 88 ) AS SIGNED ) + - 50 DIV 74 + + ( 22 )
----
-211178

skipif mysql # not compatible
query I rowsort label-2912
SELECT - 25 * 96 * + CAST ( + SUM ( 88 ) AS INTEGER ) + - 50 / 74 + + ( 22 )
----
-211178

query II rowsort
SELECT 37, 45 * - 43 * - 92 + + 99 AS col0
----
37
178119

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2914
SELECT ALL 5 + 93 + COUNT( * ) + + + COUNT( * ) + + - 22 DIV - 75, + 93 AS col1
----
100
93

skipif mysql # not compatible
query II rowsort label-2914
SELECT ALL 5 + 93 + COUNT ( * ) + + + COUNT ( * ) + + - 22 / - 75, + 93 AS col1
----
100
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT COUNT( - ( 63 ) ) + + + 40 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2915
SELECT COUNT ( - ( 63 ) ) + + + 40 AS col0
----
41

query II rowsort
SELECT ALL + 43 AS col1, - 80 AS col2
----
43
-80

query I rowsort
SELECT ALL - 40 - + - 59 AS col2
----
19

query II rowsort
SELECT ALL 55 AS col2, 29 AS col1
----
55
29

query I rowsort
SELECT - 87 * + + 41 AS col1
----
-3567

query II rowsort
SELECT ALL - 7 AS col2, - 99 AS col0
----
-7
-99

query I rowsort
SELECT 9 - - 21 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2922
SELECT ALL - 68 AS col0, + COUNT( + 38 ) DIV + 63 + + ( + 59 ) + 30 * + - COUNT( * ) col2
----
-68
29

skipif mysql # not compatible
query II rowsort label-2922
SELECT ALL - 68 AS col0, + COUNT ( + 38 ) / + 63 + + ( + 59 ) + 30 * + - COUNT ( * ) col2
----
-68
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2923
SELECT 56 - - ( + - COALESCE ( + COUNT( * ), COUNT( * ), - 98 * - 49 + - + 3 * - AVG ( 88 ) * - + 33 DIV + + 3 DIV - + ( + - 2 ) ) )
----
55

skipif mysql # not compatible
query I rowsort label-2923
SELECT 56 - - ( + - COALESCE ( + COUNT ( * ), COUNT ( * ), - 98 * - 49 + - + 3 * - AVG ( 88 ) * - + 33 / + + 3 / - + ( + - 2 ) ) )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT + 53 * + 29 / + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT + 53 * + 29 / + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 86 * + 89 + - + 23 AS col2
----
7631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2926
SELECT - 27 + + COALESCE ( - 77, - + 92 + + CAST( + 26 AS SIGNED ) ) AS col2
----
-104

skipif mysql # not compatible
query I rowsort label-2926
SELECT - 27 + + COALESCE ( - 77, - + 92 + + CAST ( + 26 AS INTEGER ) ) AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT - CASE + COUNT( * ) WHEN COUNT( * ) * - 66 + 9 + - 7 THEN + 76 * - 61 + + - MIN( - ( + ( + 46 ) ) ) WHEN 22 THEN + ( - 75 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2927
SELECT - CASE + COUNT ( * ) WHEN COUNT ( * ) * - 66 + 9 + - 7 THEN + 76 * - 61 + + - MIN ( - ( + ( + 46 ) ) ) WHEN 22 THEN + ( - 75 ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT 48 * + 63 * COUNT( * )
----
3024

skipif mysql # not compatible
query I rowsort label-2928
SELECT 48 * + 63 * COUNT ( * )
----
3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2929
SELECT 35 + 26 + - - 9 * - COUNT( - CAST( + 4 AS SIGNED ) ) * 84 * - + 63 AS col1
----
47689

skipif mysql # not compatible
query I rowsort label-2929
SELECT 35 + 26 + - - 9 * - COUNT ( - CAST ( + 4 AS INTEGER ) ) * 84 * - + 63 AS col1
----
47689

query I rowsort
SELECT ALL - 33 * + 79 AS col1
----
-2607

query I rowsort
SELECT 66 * - + 30
----
-1980

onlyif mysql # DIV for integer division: 
query I rowsort label-2932
SELECT DISTINCT 59 DIV 37 * 54 * - + 21 AS col0
----
-1134

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT 59 / 37 * 54 * - + 21 AS col0
----
-1134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2933
SELECT 94 DIV - MIN( + 33 ) + + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2933
SELECT 94 / - MIN ( + 33 ) + + + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT ALL - 14, 17 * + - 38 * + COUNT( * ) AS col0
----
-14
-646

skipif mysql # not compatible
query II rowsort label-2934
SELECT ALL - 14, 17 * + - 38 * + COUNT ( * ) AS col0
----
-14
-646

query I rowsort
SELECT ALL 86 * + + 66 * 58 * - + 45 + 19
----
-14814341

query I rowsort
SELECT 4 + 77 AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2937
SELECT + 69 + 23 DIV 28 col1
----
69

skipif mysql # not compatible
query I rowsort label-2937
SELECT + 69 + 23 / 28 col1
----
69

query I rowsort
SELECT DISTINCT - 59 * 88 + - 26 + + 76
----
-5142

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

skipif mysql # not compatible
query II rowsort label-2939
SELECT MAX ( 32 ), COUNT ( * ) AS col2
----
32
1

query I rowsort
SELECT - 77 + + 91
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL + 26 * 92 + - COUNT( * ) + + COUNT( * ) * COUNT( ALL 24 )
----
2392

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL + 26 * 92 + - COUNT ( * ) + + COUNT ( * ) * COUNT ( ALL 24 )
----
2392

query I rowsort
SELECT DISTINCT + ( + 71 ) * 21 + 82 AS col2
----
1573

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT - COUNT( * ) + - 76 * 31 AS col2
----
-2357

skipif mysql # not compatible
query I rowsort label-2944
SELECT - COUNT ( * ) + - 76 * 31 AS col2
----
-2357

query I rowsort
SELECT - 70 * + 92
----
-6440

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT DISTINCT COUNT( 73 )
----
1

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT COUNT ( 73 )
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-2948
SELECT - + 83 + - 69 + - + 89 / - COUNT ( * ) AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2949
SELECT DISTINCT - + COUNT( * ) DIV ( + 45 ) * + - 71 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT - + COUNT ( * ) / ( + 45 ) * + - 71 + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT + - ( 76 ) + - - 26 AS col0
----
-50

query I rowsort
SELECT - - 39 * - + 54 + - 1
----
-2107

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL - + 34 * 83 + - + 60 * + - 59 * 76 + - 16 * - COUNT( * ) col0
----
266234

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL - + 34 * 83 + - + 60 * + - 59 * 76 + - 16 * - COUNT ( * ) col0
----
266234

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT - + NULLIF ( - + COUNT( * ), + 33 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2953
SELECT - + NULLIF ( - + COUNT ( * ), + 33 ) col0
----
1

query I rowsort
SELECT + 21 * 81
----
1701

query I rowsort
SELECT ALL 90 * 6 AS col1
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL MIN( ALL 75 ) + COUNT( + 79 ) * - MIN( + 43 ) * + 4 + - 98 AS col2
----
-195

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL MIN ( ALL 75 ) + COUNT ( + 79 ) * - MIN ( + 43 ) * + 4 + - 98 AS col2
----
-195

query II rowsort
SELECT - 45 + - 47 AS col0, + ( - 84 ) + - 10 - + 20
----
-92
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2958
SELECT - + COUNT( * ) DIV 44 AS col1, 46 AS col0
----
0
46

skipif mysql # not compatible
query II rowsort label-2958
SELECT - + COUNT ( * ) / 44 AS col1, 46 AS col0
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT + + 15 + + - COUNT( DISTINCT 46 ) + 82
----
96

skipif mysql # not compatible
query I rowsort label-2959
SELECT + + 15 + + - COUNT ( DISTINCT 46 ) + 82
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2960
SELECT ALL - + NULLIF ( - 40, 7 ) DIV 45 + - + ( MIN( ALL - 47 ) ) + + - 48 * 16 AS col2
----
-721

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - + NULLIF ( - 40, 7 ) / 45 + - + ( MIN ( ALL - 47 ) ) + + - 48 * 16 AS col2
----
-721

query I rowsort
SELECT + 72 * + COALESCE ( - 66, - - 19 * - 0, - + 94 ) * + 31 AS col1
----
-147312

query I rowsort
SELECT + NULLIF ( + 39, - 92 * + + 79 * - 33 + + + 74 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2963
SELECT ( - CAST( - 38 AS SIGNED ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2963
SELECT ( - CAST ( - 38 AS INTEGER ) ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT + CASE + + COUNT( * ) WHEN 14 THEN NULL ELSE - 38 * - + ( - 78 ) END
----
-2964

skipif mysql # not compatible
query I rowsort label-2964
SELECT + CASE + + COUNT ( * ) WHEN 14 THEN NULL ELSE - 38 * - + ( - 78 ) END
----
-2964

query I rowsort
SELECT + 36 - - 45 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT ALL - 99 * + 92 * - + SUM( ALL + 97 ) + + + 31 + 72
----
883579

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL - 99 * + 92 * - + SUM ( ALL + 97 ) + + + 31 + 72
----
883579

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

query I rowsort
SELECT + 6 * + 28 AS col1
----
168

query I rowsort
SELECT + NULLIF ( - 0, + 21 )
----
0

query II rowsort
SELECT + 44 AS col2, + 49 AS col0
----
44
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2971
SELECT CASE + 60 WHEN + 99 THEN - CASE 88 WHEN + - 54 - 99 + + 19 THEN + 70 + - NULLIF ( + 92, + - ( - + COUNT( * ) ) * - MAX( DISTINCT + CAST( - + 38 AS SIGNED ) ) ) WHEN - - 85 + - 51 THEN NULL ELSE NULL END + + 2 + + MAX( 3 ) * - - COUNT( * ) * - ( + 96 ) * + + CAST( NULL AS SIGNED ) * + ( + + COUNT( * ) ) / - 99 * + - 95 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT CASE + 60 WHEN + 99 THEN - CASE 88 WHEN + - 54 - 99 + + 19 THEN + 70 + - NULLIF ( + 92, + - ( - + COUNT ( * ) ) * - MAX ( DISTINCT + CAST ( - + 38 AS INTEGER ) ) ) WHEN - - 85 + - 51 THEN NULL ELSE NULL END + + 2 + + MAX ( 3 ) * - - COUNT ( * ) * - ( + 96 ) * + + CAST ( NULL AS INTEGER ) * + ( + + COUNT ( * ) ) / - 99 * + - 95 END AS col2
----
NULL

query I rowsort
SELECT + 12 * + 69
----
828

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2974
SELECT COALESCE ( + 34, 97 + 43 + SUM( - 93 ) * - COUNT( * ) DIV - CASE + 14 WHEN + - 45 THEN - 5 * + + 82 + + 89 END + + 87 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2974
SELECT COALESCE ( + 34, 97 + 43 + SUM ( - 93 ) * - COUNT ( * ) / - CASE + 14 WHEN + - 45 THEN - 5 * + + 82 + + 89 END + + 87 ) AS col0
----
34

query I rowsort
SELECT ALL + 89 * 18 * - 86 - + 71
----
-137843

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

query I rowsort
SELECT ALL - 86 * 16 * 64
----
-88064

query I rowsort
SELECT - 60 * - + 83 * + 26 * + + 80
----
10358400

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL - 49 * - COUNT( * ) * + + 69
----
3381

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - 49 * - COUNT ( * ) * + + 69
----
3381

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

skipif mysql # not compatible
query I rowsort label-2980
SELECT - MIN ( ALL 69 )
----
-69

query I rowsort
SELECT + 11 * - - 40 * + 95 + 36
----
41836

query II rowsort
SELECT - 35 AS col2, 41 * - 10 + + ( - - 42 )
----
-35
-368

query I rowsort
SELECT - + 93 * 99
----
-9207

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT - 35 + - ( + 78 ) DIV - 63 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2984
SELECT - 35 + - ( + 78 ) / - 63 AS col2
----
-34

query I rowsort
SELECT - 49 + + - 87 AS col1
----
-136

query I rowsort
SELECT - 62 + + 47 AS col1
----
-15

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2989
SELECT ALL + + COALESCE ( - ( + CAST( - 70 AS SIGNED ) ), - 86 ) + + 82 AS col2, + 88
----
152
88

skipif mysql # not compatible
query II rowsort label-2989
SELECT ALL + + COALESCE ( - ( + CAST ( - 70 AS INTEGER ) ), - 86 ) + + 82 AS col2, + 88
----
152
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL - - ( - COUNT( 21 ) ) + 62 * - 30 AS col2
----
-1861

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL - - ( - COUNT ( 21 ) ) + 62 * - 30 AS col2
----
-1861

query I rowsort
SELECT DISTINCT + - 65 * + + 76
----
-4940

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT + - 12 + + MAX( - + 64 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-2992
SELECT + - 12 + + MAX ( - + 64 ) AS col1
----
-76

query I rowsort
SELECT - 65 + - - 4 AS col1
----
-61

query I rowsort
SELECT ALL 9 + - 0 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2995
SELECT 31 + 95 + - COUNT( * ) + - ( + 33 ) - + - ( - 9 ) * - - CASE - COALESCE ( AVG ( - + 35 ), - - ( + CAST( NULL AS SIGNED ) ) * 70, + SUM( - + ( - + 20 ) ) / + CAST( NULL AS SIGNED ) / ( + 50 ) ) WHEN - 47 / 5 + COUNT( * ) THEN - 61 + 86 END, 61 + + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2995
SELECT 31 + 95 + - COUNT ( * ) + - ( + 33 ) - + - ( - 9 ) * - - CASE - COALESCE ( AVG ( - + 35 ), - - ( + CAST ( NULL AS INTEGER ) ) * 70, + SUM ( - + ( - + 20 ) ) / + CAST ( NULL AS INTEGER ) / ( + 50 ) ) WHEN - 47 / 5 + COUNT ( * ) THEN - 61 + 86 END, 61 + + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL - CASE - CASE + 21 WHEN - 34 THEN + - ( + 99 ) / + - 91 - - 26 ELSE + - 48 END WHEN 60 THEN NULL ELSE - + 86 END * - MAX( - - 81 )
----
-6966

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - CASE - CASE + 21 WHEN - 34 THEN + - ( + 99 ) / + - 91 - - 26 ELSE + - 48 END WHEN 60 THEN NULL ELSE - + 86 END * - MAX ( - - 81 )
----
-6966

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT COUNT( * ) + - MIN( 45 ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-2997
SELECT COUNT ( * ) + - MIN ( 45 ) col1
----
-44

query I rowsort
SELECT DISTINCT - 62 * + 86 * 12 AS col2
----
-63984

query I rowsort
SELECT 57 * 58
----
3306

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3000
SELECT 28 + - 13 + 3 + - + 30 * - 36 / + + 28 * - CAST( NULL AS DECIMAL ), 86 * + 75 AS col2
----
NULL
6450

skipif mysql # not compatible
query II rowsort label-3000
SELECT 28 + - 13 + 3 + - + 30 * - 36 / + + 28 * - CAST ( NULL AS REAL ), 86 * + 75 AS col2
----
NULL
6450

query I rowsort
SELECT DISTINCT - NULLIF ( 96, - - AVG ( DISTINCT + 6 ) ) - + 8
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3002
SELECT MIN( ALL 60 ) DIV + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3002
SELECT MIN ( ALL 60 ) / + 73 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3003
SELECT ALL + 18 DIV - 72 * - 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL + 18 / - 72 * - 9 AS col2
----
0

query I rowsort
SELECT ALL 76 * + 90
----
6840

query I rowsort
SELECT DISTINCT 88 * 83 * 70
----
511280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT CASE - 8 WHEN + COUNT( * ) THEN - + 70 * - 44 WHEN + 62 / - + MIN( DISTINCT - - 43 ) + - MIN( - 10 ) * COUNT( * ) + CAST( NULL AS SIGNED ) * + 46 + + + 30 THEN NULL ELSE NULL END / + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT CASE - 8 WHEN + COUNT ( * ) THEN - + 70 * - 44 WHEN + 62 / - + MIN ( DISTINCT - - 43 ) + - MIN ( - 10 ) * COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 46 + + + 30 THEN NULL ELSE NULL END / + 66
----
NULL

query I rowsort
SELECT + 12 * - 4 * + 47 + 51 AS col2
----
-2205

onlyif mysql # aggregate syntax: 
query II rowsort label-3008
SELECT - MIN( + 52 ) col0, COUNT( * )
----
-52
1

skipif mysql # not compatible
query II rowsort label-3008
SELECT - MIN ( + 52 ) col0, COUNT ( * )
----
-52
1

query I rowsort
SELECT - 80 + - 47
----
-127

query I rowsort
SELECT 95 + - + 17
----
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL - CASE - 76 WHEN - 4 + COUNT( * ) * + 88 THEN NULL ELSE + 54 END AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL - CASE - 76 WHEN - 4 + COUNT ( * ) * + 88 THEN NULL ELSE + 54 END AS col0
----
-54

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

skipif mysql # not compatible
query I rowsort label-3013
SELECT ( - COUNT ( * ) ) * - ( 73 ) / + - COUNT ( * ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT ALL - 76 + + 81 - + MIN( 90 ) * 12
----
-1075

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL - 76 + + 81 - + MIN ( 90 ) * 12
----
-1075

query I rowsort
SELECT 64 + - - 4 * - - 51 * + 49 + - + 9
----
10051

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3016
SELECT - CAST( + + 83 AS SIGNED ), - 42 col1
----
-83
-42

skipif mysql # not compatible
query II rowsort label-3016
SELECT - CAST ( + + 83 AS INTEGER ), - 42 col1
----
-83
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3017
SELECT 10 + - 46 + - MIN( DISTINCT 29 ) DIV - 73
----
-36

skipif mysql # not compatible
query I rowsort label-3017
SELECT 10 + - 46 + - MIN ( DISTINCT 29 ) / - 73
----
-36

query I rowsort
SELECT 12 * + 75 * 93 AS col1
----
83700

query I rowsort
SELECT - 96 + - 85
----
-181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3020
SELECT DISTINCT + COALESCE ( - - CASE + NULLIF ( + 37, - NULLIF ( + 59, 7 * COUNT( * ) ) * + + CAST( NULL AS DECIMAL ) * - 60 - COALESCE ( + 12, 94 ) - 34 * - + 21 / + CAST( - MIN( DISTINCT - 62 ) AS SIGNED ) ) WHEN + 45 + - - 39 + + 27 THEN + - CAST( NULL AS SIGNED ) WHEN - 25 THEN + + 2 ELSE NULL END, + - 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT + COALESCE ( - - CASE + NULLIF ( + 37, - NULLIF ( + 59, 7 * COUNT ( * ) ) * + + CAST ( NULL AS REAL ) * - 60 - COALESCE ( + 12, 94 ) - 34 * - + 21 / + CAST ( - MIN ( DISTINCT - 62 ) AS INTEGER ) ) WHEN + 45 + - - 39 + + 27 THEN + - CAST ( NULL AS INTEGER ) WHEN - 25 THEN + + 2 ELSE NULL END, + - 23 )
----
-23

query I rowsort
SELECT DISTINCT + - ( + 8 ) * 17
----
-136

query I rowsort
SELECT + 63 * - 20 + 18
----
-1242

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT ALL + 49 + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL + 49 + COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT DISTINCT COUNT( 39 )
----
1

skipif mysql # not compatible
query I rowsort label-3024
SELECT DISTINCT COUNT ( 39 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3025
SELECT DISTINCT + 94 DIV - 41
----
-2

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT + 94 / - 41
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT - MAX( + NULLIF ( - - 49, + 83 ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-3026
SELECT - MAX ( + NULLIF ( - - 49, + 83 ) ) AS col1
----
-49

query I rowsort
SELECT 31 + - - 57 AS col0
----
88

query I rowsort
SELECT 66 * 97
----
6402

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

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

query I rowsort
SELECT 47 * - 5
----
-235

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT + 52 DIV - 16 - - 39 DIV + 35
----
-2

skipif mysql # not compatible
query I rowsort label-3033
SELECT + 52 / - 16 - - 39 / + 35
----
-2

query I rowsort
SELECT DISTINCT - 31 * + 88 AS col2
----
-2728

query I rowsort
SELECT 82 * 81 AS col2
----
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT - 8 * + - 81 - - + COUNT( * ) AS col0
----
649

skipif mysql # not compatible
query I rowsort label-3036
SELECT - 8 * + - 81 - - + COUNT ( * ) AS col0
----
649

query I rowsort
SELECT 72 * - 56 col0
----
-4032

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-3038
SELECT 39, + 77 * + + 94 AS col2, - + COUNT( * ) * - + COUNT( * ) * + - 13 + + 0 - + 13 + + 83 * + + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) * 33 / + 38 col2
----
39
7238
NULL

skipif mysql # not compatible
query III rowsort label-3038
SELECT 39, + 77 * + + 94 AS col2, - + COUNT ( * ) * - + COUNT ( * ) * + - 13 + + 0 - + 13 + + 83 * + + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) * 33 / + 38 col2
----
39
7238
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT + + SUM( - 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3039
SELECT + + SUM ( - 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT DISTINCT + + MAX( DISTINCT ( + ( 51 ) ) ) + - 83 * 24 AS col1, + 90
----
-1941
90

skipif mysql # not compatible
query II rowsort label-3040
SELECT DISTINCT + + MAX ( DISTINCT ( + ( 51 ) ) ) + - 83 * 24 AS col1, + 90
----
-1941
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3041
SELECT DISTINCT + ( - COUNT( * ) ) + - 65 AS col0, 41 * - 93 AS col0
----
-66
-3813

skipif mysql # not compatible
query II rowsort label-3041
SELECT DISTINCT + ( - COUNT ( * ) ) + - 65 AS col0, 41 * - 93 AS col0
----
-66
-3813

query I rowsort
SELECT - 97 + - ( 58 ) AS col1
----
-155

query II rowsort
SELECT 38, 38 - + - 61 col2
----
38
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT - 81 / + 5 * 23 * - 89 * + - 42 * 8 * + CAST( NULL AS SIGNED ) + - 62 * + 34 * - 60 * - + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT - 81 / + 5 * 23 * - 89 * + - 42 * 8 * + CAST ( NULL AS INTEGER ) + - 62 * + 34 * - 60 * - + 0 AS col0
----
NULL

query I rowsort
SELECT ALL - 64 + + - 13 + + + 67 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT MAX( DISTINCT - 34 ) + - + 89
----
-123

skipif mysql # not compatible
query I rowsort label-3047
SELECT MAX ( DISTINCT - 34 ) + - + 89
----
-123

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

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

query I rowsort
SELECT + 1 + - + 32
----
-31

query I rowsort
SELECT ALL 13 * ( - 58 )
----
-754

query I rowsort
SELECT + 19 * + - 97 AS col0
----
-1843

query I rowsort
SELECT - NULLIF ( + 60, - 14 + COALESCE ( 49, + 80 ) + - - ( 20 ) * + 35 * - 51 * 69 / + 16 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT - NULLIF ( + - COUNT( * ), 68 * - - 34 - - 45 + + + 15 )
----
1

skipif mysql # not compatible
query I rowsort label-3053
SELECT - NULLIF ( + - COUNT ( * ), 68 * - - 34 - - 45 + + + 15 )
----
1

query I rowsort
SELECT DISTINCT 12 * 52 col2
----
624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3055
SELECT - CAST( NULL AS SIGNED ) / 29 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT - CAST ( NULL AS INTEGER ) / 29 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3056
SELECT ALL + 45 DIV - SUM( - 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL + 45 / - SUM ( - 50 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3057
SELECT DISTINCT + COALESCE ( + - ( + 28 ), - 13 DIV + - 54 )
----
-28

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT + COALESCE ( + - ( + 28 ), - 13 / + - 54 )
----
-28

query I rowsort
SELECT + 88 * - 56 col2
----
-4928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3059
SELECT - 93 + 99 AS col2, CASE 64 WHEN + - SUM( ALL 31 ) THEN + 12 * + + 71 + + - COALESCE ( 40, + 88 * - - COUNT( * ) ) ELSE COUNT( * ) END + - CAST( - 6 AS SIGNED )
----
6
7

skipif mysql # not compatible
query II rowsort label-3059
SELECT - 93 + 99 AS col2, CASE 64 WHEN + - SUM ( ALL 31 ) THEN + 12 * + + 71 + + - COALESCE ( 40, + 88 * - - COUNT ( * ) ) ELSE COUNT ( * ) END + - CAST ( - 6 AS INTEGER )
----
6
7

query I rowsort
SELECT - 11 * + - 89 AS col0
----
979

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT - 41 * - 31 + + + ( - - COUNT( + 37 ) ) + 56 + - CASE + + 79 WHEN + + 89 / + 71 * COUNT( * ) - + 26 * + - 11 * 31 THEN - + 95 * - 53 * - ( + + 35 ) + + 98 WHEN 22 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT - 41 * - 31 + + + ( - - COUNT ( + 37 ) ) + 56 + - CASE + + 79 WHEN + + 89 / + 71 * COUNT ( * ) - + 26 * + - 11 * 31 THEN - + 95 * - 53 * - ( + + 35 ) + + 98 WHEN 22 THEN NULL END
----
NULL

query I rowsort
SELECT - 87 * + 29 AS col1
----
-2523

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT DISTINCT 16 * + - 65 * 96 * + + 19 + COUNT( + + 55 ) col0, 0 AS col1
----
-1896959
0

skipif mysql # not compatible
query II rowsort label-3064
SELECT DISTINCT 16 * + - 65 * 96 * + + 19 + COUNT ( + + 55 ) col0, 0 AS col1
----
-1896959
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3065
SELECT ALL - 55 DIV + 60 col2
----
0

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL - 55 / + 60 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT DISTINCT COUNT( * ) * - - 12 + + 30 col1
----
42

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT COUNT ( * ) * - - 12 + + 30 col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT DISTINCT + ( 91 ) * + - COUNT( * ) * + CASE - ( + COUNT( * ) ) WHEN - 17 THEN - CASE - + 13 WHEN ( - COUNT( * ) ) - - 70 THEN - - MIN( DISTINCT ( - 42 ) ) * NULLIF ( + - 12, - + 43 - - ( - 15 ) ) WHEN - - 63 * + 26 THEN NULL ELSE - 78 END END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT + ( 91 ) * + - COUNT ( * ) * + CASE - ( + COUNT ( * ) ) WHEN - 17 THEN - CASE - + 13 WHEN ( - COUNT ( * ) ) - - 70 THEN - - MIN ( DISTINCT ( - 42 ) ) * NULLIF ( + - 12, - + 43 - - ( - 15 ) ) WHEN - - 63 * + 26 THEN NULL ELSE - 78 END END + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL + COUNT( * ) * + 40 + 92
----
132

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL + COUNT ( * ) * + 40 + 92
----
132

query I rowsort
SELECT ALL + 47 * 37 + 64
----
1803

onlyif mysql # aggregate syntax: 
query II rowsort label-3070
SELECT + 4 AS col0, 79 + + COUNT( * ) * + - COALESCE ( + + 54, - 94 )
----
4
25

skipif mysql # not compatible
query II rowsort label-3070
SELECT + 4 AS col0, 79 + + COUNT ( * ) * + - COALESCE ( + + 54, - 94 )
----
4
25

query II rowsort
SELECT ALL - - 28 * 63 + + 54 + 48, 70 * - 94 * + 87 AS col1
----
1866
-572460

query I rowsort
SELECT - - 23 + ( + 34 ) + - 9
----
48

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3074
SELECT 34, 6 DIV 13 + + + ( 58 ) AS col1
----
34
58

skipif mysql # not compatible
query II rowsort label-3074
SELECT 34, 6 / 13 + + + ( 58 ) AS col1
----
34
58

query II rowsort
SELECT ALL + - 25 AS col1, - 15
----
-25
-15

query I rowsort
SELECT + - ( + + 29 ) + - 70
----
-99

query II rowsort
SELECT ALL + 70 AS col0, 84 * - + 33 + 39 + 50 AS col0
----
70
-2683

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3079
SELECT DISTINCT 55, 35 + + 27 * + 23 + 17 + + 88 + - + MIN( DISTINCT + 37 ) + + + 15 * + COUNT( * ) * + COUNT( * ) * - + 33 AS col0
----
55
229

skipif mysql # not compatible
query II rowsort label-3079
SELECT DISTINCT 55, 35 + + 27 * + 23 + 17 + + 88 + - + MIN ( DISTINCT + 37 ) + + + 15 * + COUNT ( * ) * + COUNT ( * ) * - + 33 AS col0
----
55
229

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT ALL 75 * SUM( DISTINCT 9 ) AS col2
----
675

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL 75 * SUM ( DISTINCT 9 ) AS col2
----
675

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT ALL - 33 DIV 58 DIV - 2 * 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL - 33 / 58 / - 2 * 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3082
SELECT + - 22 * - MAX( ALL ( 54 ) ), 84 * - - 8 AS col0
----
1188
672

skipif mysql # not compatible
query II rowsort label-3082
SELECT + - 22 * - MAX ( ALL ( 54 ) ), 84 * - - 8 AS col0
----
1188
672

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT DISTINCT + COUNT( * ) * + 31 AS col0, - 57 AS col0
----
31
-57

skipif mysql # not compatible
query II rowsort label-3083
SELECT DISTINCT + COUNT ( * ) * + 31 AS col0, - 57 AS col0
----
31
-57

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3086
SELECT - CAST( 17 AS SIGNED ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-3086
SELECT - CAST ( 17 AS INTEGER ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT + 60 * + + SUM( + 14 )
----
840

skipif mysql # not compatible
query I rowsort label-3087
SELECT + 60 * + + SUM ( + 14 )
----
840

query I rowsort
SELECT - COALESCE ( + 51, + - 27 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT ALL MAX( DISTINCT 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL MAX ( DISTINCT 38 ) AS col0
----
38

query II rowsort
SELECT + ( - 84 ) * - 6 col1, + 20 * - 99 * + 57 * NULLIF ( - 44, - 37 ) + - 1 * - + 17
----
504
4965857

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT + COALESCE ( - + 47, - 66 ) + - - 0 DIV - - 68 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3092
SELECT + COALESCE ( - + 47, - 66 ) + - - 0 / - - 68 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT + ( 56 ) * + 43 * + COALESCE ( + + 12, COUNT( * ) ) AS col1
----
28896

skipif mysql # not compatible
query I rowsort label-3093
SELECT + ( 56 ) * + 43 * + COALESCE ( + + 12, COUNT ( * ) ) AS col1
----
28896

query I rowsort
SELECT DISTINCT 17 + ( + + 91 )
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3095
SELECT ALL + CAST( NULL AS SIGNED ) / + 87 + - 98 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL + CAST ( NULL AS INTEGER ) / + 87 + - 98 * + 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3096
SELECT DISTINCT 81 DIV + 39 + - SUM( DISTINCT + - 13 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT 81 / + 39 + - SUM ( DISTINCT + - 13 ) AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT DISTINCT - 72 DIV 26 + 15 - - ( + 83 ) + - 13 + + - 26 + - 87 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT - 72 / 26 + 15 - - ( + 83 ) + - 13 + + - 26 + - 87 AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3098
SELECT ALL + CAST( + 52 AS SIGNED ) DIV - 17 + + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL + CAST ( + 52 AS INTEGER ) / - 17 + + COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT - - 78 / + + ( - + CASE + 62 WHEN 23 * COUNT( * ) THEN - 69 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT - - 78 / + + ( - + CASE + 62 WHEN 23 * COUNT ( * ) THEN - 69 ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT - 2 * + 33 + + 20 + + 66 * + 21 * - - CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT - 2 * + 33 + + 20 + + 66 * + 21 * - - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT - CAST( + - 99 AS SIGNED ) * - 67 - - 50
----
-6583

skipif mysql # not compatible
query I rowsort label-3101
SELECT - CAST ( + - 99 AS INTEGER ) * - 67 - - 50
----
-6583

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT - - ( + + SUM( - 53 ) ) * - 48
----
2544

skipif mysql # not compatible
query I rowsort label-3102
SELECT - - ( + + SUM ( - 53 ) ) * - 48
----
2544

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT - ( - 61 ) DIV + - 27 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3103
SELECT - ( - 61 ) / + - 27 AS col1
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3104
SELECT ALL + CAST( NULL AS DECIMAL ) - 56, + 9 AS col0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3104
SELECT ALL + CAST ( NULL AS REAL ) - 56, + 9 AS col0
----
NULL
9

query I rowsort
SELECT DISTINCT + + 43 * 42 AS col2
----
1806

onlyif mysql # aggregate syntax: 
query II rowsort label-3106
SELECT DISTINCT - - 26 - + 5 AS col1, + 38 * - COUNT( * ) * + - 51 + - 53 AS col0
----
21
1885

skipif mysql # not compatible
query II rowsort label-3106
SELECT DISTINCT - - 26 - + 5 AS col1, + 38 * - COUNT ( * ) * + - 51 + - 53 AS col0
----
21
1885

onlyif mysql # DIV for integer division: 
query I rowsort label-3107
SELECT + 82 + 75 DIV - 87 * + 94 + 16
----
98

skipif mysql # not compatible
query I rowsort label-3107
SELECT + 82 + 75 / - 87 * + 94 + 16
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT + SUM( ALL + 86 ) - - 63
----
149

skipif mysql # not compatible
query I rowsort label-3108
SELECT + SUM ( ALL + 86 ) - - 63
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-3109
SELECT ALL + NULLIF ( + - 35, + - 31 * + 8 / - + SUM( - + COALESCE ( - 68, 89 * + 8 + 12 ) ) + + 18 * - - 79 ) AS col1, - COALESCE ( - 17, + 87 * - 2 + + 18 + - + 96 * + 91 ) col0
----
-35
17

skipif mysql # not compatible
query II rowsort label-3109
SELECT ALL + NULLIF ( + - 35, + - 31 * + 8 / - + SUM ( - + COALESCE ( - 68, 89 * + 8 + 12 ) ) + + 18 * - - 79 ) AS col1, - COALESCE ( - 17, + 87 * - 2 + + 18 + - + 96 * + 91 ) col0
----
-35
17

query I rowsort
SELECT - + 91 * - 4 + - 95 * + 9 * COALESCE ( - 11, - - 56 ) + - 35 + + 2
----
9736

query I rowsort
SELECT + 9 + - - 68 + 6 - - 11 - + 12 col2
----
82

query I rowsort
SELECT 56 + - - ( + 45 ) * 13 col1
----
641

query II rowsort
SELECT DISTINCT 74 AS col2, 93 * + 49 + + 19 AS col1
----
74
4576

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

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

query I rowsort
SELECT 56 * 69 AS col0
----
3864

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT 91 + - + MIN( DISTINCT - - 35 ) + + COUNT( * ) AS col0, - ( - + 10 ) col1
----
57
10

skipif mysql # not compatible
query II rowsort label-3116
SELECT 91 + - + MIN ( DISTINCT - - 35 ) + + COUNT ( * ) AS col0, - ( - + 10 ) col1
----
57
10

query I rowsort
SELECT ALL - 55 * - - 32 col0
----
-1760

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT 62 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT 62 / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ( ( + COUNT( * ) ) ) + 26
----
27

skipif mysql # not compatible
query I rowsort label-3119
SELECT ( ( + COUNT ( * ) ) ) + 26
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3120
SELECT - 93 AS col0, CAST( MIN( ALL + - 29 ) AS SIGNED )
----
-93
-29

skipif mysql # not compatible
query II rowsort label-3120
SELECT - 93 AS col0, CAST ( MIN ( ALL + - 29 ) AS INTEGER )
----
-93
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3121
SELECT DISTINCT COUNT( * ) + - 19 + + 58, 95 DIV - 90 col0
----
40
-1

skipif mysql # not compatible
query II rowsort label-3121
SELECT DISTINCT COUNT ( * ) + - 19 + + 58, 95 / - 90 col0
----
40
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT ALL 76 + + 6 - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL 76 + + 6 - COUNT ( * )
----
81

query I rowsort
SELECT 97 * - 93
----
-9021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3124
SELECT DISTINCT - 83 + - - CAST( + 42 AS SIGNED ) AS col2, SUM( DISTINCT - - 40 )
----
-41
40

skipif mysql # not compatible
query II rowsort label-3124
SELECT DISTINCT - 83 + - - CAST ( + 42 AS INTEGER ) AS col2, SUM ( DISTINCT - - 40 )
----
-41
40

query II rowsort
SELECT + 66 AS col1, ( - 73 )
----
66
-73

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3128
SELECT + + 87 AS col1, CAST( + + 47 AS SIGNED )
----
87
47

skipif mysql # not compatible
query II rowsort label-3128
SELECT + + 87 AS col1, CAST ( + + 47 AS INTEGER )
----
87
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3129
SELECT COALESCE ( - + 84, AVG ( + + 81 ) DIV - - AVG ( ALL + 46 ) - + + ( - - 37 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-3129
SELECT COALESCE ( - + 84, AVG ( + + 81 ) / - - AVG ( ALL + 46 ) - + + ( - - 37 ) )
----
-84

query I rowsort
SELECT ALL NULLIF ( 46, - - 26 ) * 8
----
368

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ALL ( COUNT( * ) ) - - 76 + - 32 + 52
----
97

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL ( COUNT ( * ) ) - - 76 + - 32 + 52
----
97

query II rowsort
SELECT + - 33 AS col1, 26
----
-33
26

query I rowsort
SELECT DISTINCT 51 * + 85
----
4335

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL + MAX( + + 46 ) * 33
----
1518

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + MAX ( + + 46 ) * 33
----
1518

query II rowsort
SELECT ALL - - 74, + 70 + - 59 * + 60 AS col2
----
74
-3470

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT + 13 + - - COALESCE ( + + COALESCE ( MIN( ALL + 15 ), 77 * + - 61 + - NULLIF ( - 46, - 37 ), + 31, + 39 * + 23 ), + 64 ) * + 4
----
73

skipif mysql # not compatible
query I rowsort label-3136
SELECT + 13 + - - COALESCE ( + + COALESCE ( MIN ( ALL + 15 ), 77 * + - 61 + - NULLIF ( - 46, - 37 ), + 31, + 39 * + 23 ), + 64 ) * + 4
----
73

query II rowsort
SELECT ALL - COALESCE ( 78, + - 12 + - 62 ), + 44 AS col1
----
-78
44

query I rowsort
SELECT NULLIF ( - CASE 22 WHEN 10 + + 25 + + - ( + 17 ) * ( 70 ) + CASE NULLIF ( - 43, 23 + 11 ) WHEN - 21 / + 52 THEN - 80 ELSE NULL END THEN - 58 + 12 ELSE - - 71 END, ( + - NULLIF ( ( - - 94 ), + - 5 ) ) ) * + + 43 * + 37 * 18 * + + 81 col2
----
-164697138

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT ALL + 50 DIV - ( - 70 )
----
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL + 50 / - ( - 70 )
----
0

query I rowsort
SELECT - 7 * + + 49
----
-343

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3142
SELECT 71 + COUNT( * ) * - - 20 DIV 10 + + + 96
----
169

skipif mysql # not compatible
query I rowsort label-3142
SELECT 71 + COUNT ( * ) * - - 20 / 10 + + + 96
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT DISTINCT + ( - - CASE - 11 WHEN 24 / - + COUNT( * ) + + 72 THEN 51 WHEN - CAST( + 57 AS SIGNED ) THEN NULL ELSE NULL END ) / - MIN( 60 ) * + 28 * - 33 + - 3 + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT + ( - - CASE - 11 WHEN 24 / - + COUNT ( * ) + + 72 THEN 51 WHEN - CAST ( + 57 AS INTEGER ) THEN NULL ELSE NULL END ) / - MIN ( 60 ) * + 28 * - 33 + - 3 + 62 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 86 * - ( + 70 )
----
6020

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

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

query I rowsort
SELECT ALL - 59 + + ( - 27 ) AS col0
----
-86

query I rowsort
SELECT ALL - 86 * - 30 AS col0
----
2580

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

skipif mysql # not compatible
query I rowsort label-3148
SELECT - MIN ( - 65 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3149
SELECT ALL - 68 + - 15 + - + COALESCE ( - 18, - 42 ) + + - 49 DIV - 36 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL - 68 + - 15 + - + COALESCE ( - 18, - 42 ) + + - 49 / - 36 AS col2
----
-64

query II rowsort
SELECT 65 * - + 91, - 8 AS col1
----
-5915
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT 1 * + + MAX( DISTINCT 86 ) * + COUNT( * ) * - - 98 * - + 78
----
-657384

skipif mysql # not compatible
query I rowsort label-3151
SELECT 1 * + + MAX ( DISTINCT 86 ) * + COUNT ( * ) * - - 98 * - + 78
----
-657384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT ALL - 69 + - - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL - 69 + - - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-68

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3154
SELECT ALL - COALESCE ( 22, - 68 ) DIV - COUNT( ALL - + 87 ) + - 2 + 89 DIV - ( 32 ) + - 74 * 48
----
-3534

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL - COALESCE ( 22, - 68 ) / - COUNT ( ALL - + 87 ) + - 2 + 89 / - ( 32 ) + - 74 * 48
----
-3534

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL CASE - 31 WHEN + SUM( - - 31 ) + + - 40 THEN 57 + 73 + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL CASE - 31 WHEN + SUM ( - - 31 ) + + - 40 THEN 57 + 73 + 75 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL - 96 + 32 / + ( + CASE 81 WHEN - + 41 * + - 82 * - 89 THEN - - COUNT( * ) / - + 23 + 54 WHEN + 71 / + 10 THEN NULL ELSE NULL END ) - + 1 * + 99 + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - 96 + 32 / + ( + CASE 81 WHEN - + 41 * + - 82 * - 89 THEN - - COUNT ( * ) / - + 23 + 54 WHEN + 71 / + 10 THEN NULL ELSE NULL END ) - + 1 * + 99 + - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT DISTINCT MAX( ALL - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT MAX ( ALL - 68 )
----
-68

query I rowsort
SELECT 16 * - 62 * 87
----
-86304

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT ALL + 24 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + 24 / + 92
----
0

query II rowsort
SELECT 90 + - 52 * + 40 * + 88, - 66 * - 76 AS col1
----
-182950
5016

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

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

query I rowsort
SELECT - 39 + - 21 AS col1
----
-60

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3164
SELECT - COALESCE ( - 74, + 32, + + COUNT( * ) ) * COALESCE ( + 94, + + 46 DIV - + 50 ) * - 88 + + ( - 79 ) + - 83 - 39 + + - 88 * 41 * 51 + - + 79 * + + 64
----
-801393

skipif mysql # not compatible
query I rowsort label-3164
SELECT - COALESCE ( - 74, + 32, + + COUNT ( * ) ) * COALESCE ( + 94, + + 46 / - + 50 ) * - 88 + + ( - 79 ) + - 83 - 39 + + - 88 * 41 * 51 + - + 79 * + + 64
----
-801393

query I rowsort
SELECT 99 + - - 61 AS col2
----
160

query II rowsort
SELECT DISTINCT + + 47 * 35 AS col1, 79
----
1645
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT ALL - 6 DIV + 60 + + 22 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL - 6 / + 60 + + 22 AS col1
----
22

query I rowsort
SELECT + - ( - - 25 ) * - 32 + + ( - + 45 )
----
755

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3169
SELECT + - CAST( NULL AS SIGNED ) + - MIN( DISTINCT CAST( 5 AS SIGNED ) ) col0, - 90
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-3169
SELECT + - CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT CAST ( 5 AS INTEGER ) ) col0, - 90
----
NULL
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT + - 90 * + 42 - + MAX( ALL - - 49 ) AS col1
----
-3829

skipif mysql # not compatible
query I rowsort label-3170
SELECT + - 90 * + 42 - + MAX ( ALL - - 49 ) AS col1
----
-3829

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3172
SELECT + 91 * COUNT( * ) + + CAST( NULL AS SIGNED ) * 52 AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT + CASE 63 WHEN - NULLIF ( 32, 58 / + 10 ) * CASE + + 39 WHEN + - 50 THEN NULL WHEN 4 THEN + 16 + ( + + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) ) - - + 4 + + 85 ELSE NULL END THEN + - MAX( DISTINCT + 86 ) WHEN - 60 * - 65 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT + CASE 63 WHEN - NULLIF ( 32, 58 / + 10 ) * CASE + + 39 WHEN + - 50 THEN NULL WHEN 4 THEN + 16 + ( + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) - - + 4 + + 85 ELSE NULL END THEN + - MAX ( DISTINCT + 86 ) WHEN - 60 * - 65 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3174
SELECT ALL 29 * - 2 + 18 DIV 65 + 21 + - 66 * + COUNT( DISTINCT + + ( 55 ) ), 1 AS col0
----
-103
1

skipif mysql # not compatible
query II rowsort label-3174
SELECT ALL 29 * - 2 + 18 / 65 + 21 + - 66 * + COUNT ( DISTINCT + + ( 55 ) ), 1 AS col0
----
-103
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT DISTINCT 13 * + MIN( ALL + 72 ) * + 21 * + + 41 AS col1
----
805896

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT 13 * + MIN ( ALL + 72 ) * + 21 * + + 41 AS col1
----
805896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3176
SELECT DISTINCT 39 * + COUNT( * ) + - CASE + NULLIF ( + 12, + + 77 ) WHEN 35 THEN - - MIN( + 76 ) * + 67 + - CAST( - - ( + CAST( + - 69 AS SIGNED ) ) AS SIGNED ) END + + + 12 AS col1, 24
----
NULL
24

skipif mysql # not compatible
query II rowsort label-3176
SELECT DISTINCT 39 * + COUNT ( * ) + - CASE + NULLIF ( + 12, + + 77 ) WHEN 35 THEN - - MIN ( + 76 ) * + 67 + - CAST ( - - ( + CAST ( + - 69 AS INTEGER ) ) AS INTEGER ) END + + + 12 AS col1, 24
----
NULL
24

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

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

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

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

query I rowsort
SELECT ALL 13 * - 36 + + + 28
----
-440

query I rowsort
SELECT + 13 + - 53 + + 9
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + 18 - COUNT( * ) + - 18
----
-1

skipif mysql # not compatible
query I rowsort label-3181
SELECT + 18 - COUNT ( * ) + - 18
----
-1

query I rowsort
SELECT - 95 * - - NULLIF ( + 55, 57 * - + 80 + - - 41 ) * + 42
----
-219450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3183
SELECT ALL COUNT( * ) + + - CAST( - + 70 AS SIGNED ) AS col1, + 48 * COUNT( * ) * - 54 AS col2
----
71
-2592

skipif mysql # not compatible
query II rowsort label-3183
SELECT ALL COUNT ( * ) + + - CAST ( - + 70 AS INTEGER ) AS col1, + 48 * COUNT ( * ) * - 54 AS col2
----
71
-2592

query I rowsort
SELECT + 65 + 16
----
81

query II rowsort
SELECT - 36, 57 * - 98 AS col1
----
-36
-5586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3186
SELECT DISTINCT 6 + + 43 - - 96 DIV + + COUNT( * )
----
145

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT 6 + + 43 - - 96 / + + COUNT ( * )
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3187
SELECT ALL 65 DIV COUNT( * ) * - 24 * COALESCE ( - COUNT( * ), - 99, + 1 + + + SUM( + 13 ) * 84 ) AS col0, - 96
----
1560
-96

skipif mysql # not compatible
query II rowsort label-3187
SELECT ALL 65 / COUNT ( * ) * - 24 * COALESCE ( - COUNT ( * ), - 99, + 1 + + + SUM ( + 13 ) * 84 ) AS col0, - 96
----
1560
-96

query I rowsort
SELECT ALL - 37 * - 84 * 34 AS col2
----
105672

query I rowsort
SELECT - 35 + + ( 17 ) col1
----
-18

query I rowsort
SELECT ALL 41 - - + 6 col0
----
47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3192
SELECT - 11 + + 17 + 56 + + + CAST( - 83 AS SIGNED ) * + + CAST( NULL AS SIGNED ), 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-3192
SELECT - 11 + + 17 + 56 + + + CAST ( - 83 AS INTEGER ) * + + CAST ( NULL AS INTEGER ), 24 AS col0
----
NULL
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3193
SELECT ALL - 65 - 74 + + 70 DIV + - 40 - 56, SUM( 23 ) AS col2
----
-196
23

skipif mysql # not compatible
query II rowsort label-3193
SELECT ALL - 65 - 74 + + 70 / + - 40 - 56, SUM ( 23 ) AS col2
----
-196
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT ALL + NULLIF ( + 88, COUNT( * ) ) * + 63
----
5544

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + NULLIF ( + 88, COUNT ( * ) ) * + 63
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT DISTINCT + 20 * - ( COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT + 20 * - ( COUNT ( * ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT - MAX( - 60 ) + - 99
----
-39

skipif mysql # not compatible
query I rowsort label-3196
SELECT - MAX ( - 60 ) + - 99
----
-39

query I rowsort
SELECT - 69 * + 46
----
-3174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT ALL ( COALESCE ( + 64, + COALESCE ( 11, - CAST( NULL AS SIGNED ), + 14 ) ) ) col2
----
64

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL ( COALESCE ( + 64, + COALESCE ( 11, - CAST ( NULL AS INTEGER ), + 14 ) ) ) col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT MIN( ALL 6 ) col0
----
6

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT MIN ( ALL 6 ) col0
----
6

query I rowsort
SELECT DISTINCT + 75 * + 77
----
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT ALL CASE + 11 WHEN - 89 * 99 + + 73 THEN NULL WHEN - COUNT( * ) THEN 95 WHEN - COUNT( * ) THEN NULL ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL CASE + 11 WHEN - 89 * 99 + + 73 THEN NULL WHEN - COUNT ( * ) THEN 95 WHEN - COUNT ( * ) THEN NULL ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3202
SELECT DISTINCT COALESCE ( 37, + COALESCE ( + 77, 65 + - 79 * COUNT( * ), COUNT( * ) DIV 7 ) )
----
37

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT COALESCE ( 37, + COALESCE ( + 77, 65 + - 79 * COUNT ( * ), COUNT ( * ) / 7 ) )
----
37

query I rowsort
SELECT - 27 + COALESCE ( ( - 83 ), + 73, - 96 ) * 14
----
-1189

query I rowsort
SELECT 57 * - 63 - 53 * - 26
----
-2213

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3206
SELECT + 73 DIV - 78 + - 0 * 4
----
0

skipif mysql # not compatible
query I rowsort label-3206
SELECT + 73 / - 78 + - 0 * 4
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3208
SELECT ALL + 3 DIV 77 + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL + 3 / 77 + + COUNT ( * ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL COUNT( * ) * - 81 + 79 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL COUNT ( * ) * - 81 + 79 AS col0
----
-2

query I rowsort
SELECT DISTINCT + COALESCE ( 0, - 62, + 41 * - 25 + - 79 )
----
0

query I rowsort
SELECT ALL 35 * 73 + 86 AS col0
----
2641

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT 10 * + MAX( DISTINCT - 86 ) + 98 * 55
----
4530

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT 10 * + MAX ( DISTINCT - 86 ) + 98 * 55
----
4530

query I rowsort
SELECT ( - NULLIF ( 99, 22 ) )
----
-99

query I rowsort
SELECT 32 * - 12 + 93 AS col0
----
-291

query I rowsort
SELECT ALL 84 * 7 + ( 37 )
----
625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3217
SELECT NULLIF ( + 28, - CAST( NULL AS SIGNED ) / + 30 )
----
28

skipif mysql # not compatible
query I rowsort label-3217
SELECT NULLIF ( + 28, - CAST ( NULL AS INTEGER ) / + 30 )
----
28

query I rowsort
SELECT + 71 + - 15 * 38 AS col1
----
-499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3219
SELECT CASE - ( ( AVG ( 87 ) ) ) WHEN 94 * 98 - + 60 THEN + CAST( 22 AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT CASE - ( ( AVG ( 87 ) ) ) WHEN 94 * 98 - + 60 THEN + CAST ( 22 AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3220
SELECT DISTINCT MAX( ( CAST( - 2 AS SIGNED ) ) ) * SUM( ALL - 58 * 37 ) AS col0
----
4292

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT MAX ( ( CAST ( - 2 AS INTEGER ) ) ) * SUM ( ALL - 58 * 37 ) AS col0
----
4292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3221
SELECT DISTINCT 53 * 4 + 1 DIV COUNT( * )
----
213

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT 53 * 4 + 1 / COUNT ( * )
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3222
SELECT ALL ( NULLIF ( - AVG ( ALL + 49 ), 87 + 74 ) ) * CAST( 13 AS SIGNED ) - + CASE - 70 + + COUNT( * ) * 10 WHEN 44 * - ( MAX( DISTINCT - 99 ) ) + 29 THEN 75 / + 29 - 19 * 29 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL ( NULLIF ( - AVG ( ALL + 49 ), 87 + 74 ) ) * CAST ( 13 AS INTEGER ) - + CASE - 70 + + COUNT ( * ) * 10 WHEN 44 * - ( MAX ( DISTINCT - 99 ) ) + 29 THEN 75 / + 29 - 19 * 29 END AS col2
----
NULL

query I rowsort
SELECT ALL 24 * ( 50 ) col2
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT CASE 6 WHEN CAST( AVG ( 66 ) AS SIGNED ) THEN - CAST( NULL AS SIGNED ) - ( - 93 ) ELSE 12 * 90 + + 47 END
----
1127

skipif mysql # not compatible
query I rowsort label-3224
SELECT CASE 6 WHEN CAST ( AVG ( 66 ) AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) - ( - 93 ) ELSE 12 * 90 + + 47 END
----
1127

query I rowsort
SELECT + 53 * + 36 AS col1
----
1908

query I rowsort
SELECT + 88 * 29 AS col2
----
2552

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT + 5 DIV 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3227
SELECT + 5 / 59 AS col0
----
0

query I rowsort
SELECT + 17 * + 3
----
51

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

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

query I rowsort
SELECT ALL + 95 * 34 - 76
----
3154

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT DISTINCT 46 DIV + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT 46 / + 51 AS col2
----
0

query I rowsort
SELECT 9 * - 8
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-3233
SELECT 16 DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-3233
SELECT 16 / - 39
----
0

query I rowsort
SELECT ALL 81 * - 69
----
-5589

onlyif mysql # DIV for integer division: 
query I rowsort label-3235
SELECT DISTINCT - 28 DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT - 28 / 84 AS col2
----
0

query I rowsort
SELECT DISTINCT + - COALESCE ( - 99, 45 ) * - 52 AS col2
----
-5148

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3238
SELECT 8 * - NULLIF ( COUNT( * ), 56 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3238
SELECT 8 * - NULLIF ( COUNT ( * ), 56 ) AS col2
----
-8

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

skipif mysql # not compatible
query I rowsort label-3239
SELECT COUNT ( * ) + - 59 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT - 2 + SUM( DISTINCT 1 + 90 )
----
89

skipif mysql # not compatible
query I rowsort label-3240
SELECT - 2 + SUM ( DISTINCT 1 + 90 )
----
89

query I rowsort
SELECT ALL + COALESCE ( 82, 88 )
----
82

query I rowsort
SELECT - 16 * 86
----
-1376

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

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + + COUNT ( * ) + 73 * 34 col0
----
2483

query I rowsort
SELECT ALL - 63 + - ( 28 ) AS col1
----
-91

query I rowsort
SELECT DISTINCT + - 92 + 77
----
-15

query I rowsort
SELECT ALL - - 43 col2
----
43

query I rowsort
SELECT DISTINCT + 35 + 86 AS col0
----
121

query I rowsort
SELECT DISTINCT - 71 + 37
----
-34

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3250
SELECT ALL + - 62 + - CASE + CAST( 92 AS DECIMAL ) WHEN 58 THEN - 83 + + COUNT( * ) / + 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL + - 62 + - CASE + CAST ( 92 AS REAL ) WHEN 58 THEN - 83 + + COUNT ( * ) / + 4 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT COALESCE ( + 23, - COUNT( ALL 86 ) ) * 15 + 38 * + 7 AS col0
----
611

skipif mysql # not compatible
query I rowsort label-3251
SELECT COALESCE ( + 23, - COUNT ( ALL 86 ) ) * 15 + 38 * + 7 AS col0
----
611

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT + 18 * COALESCE ( - 30 DIV 45, 87 - 22, 48 DIV - 9 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3252
SELECT + 18 * COALESCE ( - 30 / 45, 87 - 22, 48 / - 9 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - ( - 94 ) + 73 * + 91 col1
----
6737

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

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

query I rowsort
SELECT DISTINCT - ( - + ( 40 ) ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT ALL - COUNT( * ) - - 59 + + 65
----
123

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - COUNT ( * ) - - 59 + + 65
----
123

query I rowsort
SELECT 81 - - 77 + 86 * 6 AS col1
----
674

query I rowsort
SELECT DISTINCT - 28 * - 17 col2
----
476

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

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

query I rowsort
SELECT 91 - + 72
----
19

query I rowsort
SELECT ALL + 64 - 46 + NULLIF ( - 7 + - 88, + 92 ) * + 64
----
-6062

query I rowsort
SELECT ALL - 10 * 5 AS col0
----
-50

query I rowsort
SELECT DISTINCT + 55 * + 92
----
5060

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL 47 - + COALESCE ( COUNT( * ), 30 * 80, 96 * COUNT( * ) ) * 90
----
-43

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL 47 - + COALESCE ( COUNT ( * ), 30 * 80, 96 * COUNT ( * ) ) * 90
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT DISTINCT - MAX( + 31 ) - + 25
----
-56

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT - MAX ( + 31 ) - + 25
----
-56

query I rowsort
SELECT 19 * - 28 * - 80 AS col2
----
42560

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT 90 + + + 50 - MAX( - 60 )
----
200

skipif mysql # not compatible
query I rowsort label-3267
SELECT 90 + + + 50 - MAX ( - 60 )
----
200

query I rowsort
SELECT 26 - + + 61
----
-35

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

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL - AVG ( ALL + CAST ( NULL AS REAL ) ) col2
----
NULL

query I rowsort
SELECT ( + - 34 ) - 23
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT COUNT( * ) * + + SUM( 31 )
----
31

skipif mysql # not compatible
query I rowsort label-3271
SELECT COUNT ( * ) * + + SUM ( 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT 42 * - ( COUNT( DISTINCT 19 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-3272
SELECT 42 * - ( COUNT ( DISTINCT 19 ) )
----
-42

query I rowsort
SELECT DISTINCT 5 * - - 24
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT 16 + - ( + COUNT( - 46 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-3274
SELECT 16 + - ( + COUNT ( - 46 ) ) AS col1
----
15

query I rowsort
SELECT ALL 40 * - ( 92 )
----
-3680

query I rowsort
SELECT 25 + + 50 + - 34
----
41

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

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - COUNT ( * ) * + 11 / ( - 57 )
----
0

query I rowsort
SELECT 32 * - + 99
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT DISTINCT - CASE 87 WHEN - CAST( NULL AS SIGNED ) * - 72 THEN NULL WHEN - CAST( - 23 AS SIGNED ) THEN 89 END * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT - CASE 87 WHEN - CAST ( NULL AS INTEGER ) * - 72 THEN NULL WHEN - CAST ( - 23 AS INTEGER ) THEN 89 END * + 61
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3280
SELECT - NULLIF ( - 67, 40 * - NULLIF ( + 39, ( CAST( NULL AS SIGNED ) ) ) )
----
67

skipif mysql # not compatible
query I rowsort label-3280
SELECT - NULLIF ( - 67, 40 * - NULLIF ( + 39, ( CAST ( NULL AS INTEGER ) ) ) )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT ALL + 49 + + NULLIF ( + ( CAST( NULL AS SIGNED ) ), + 16 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL + 49 + + NULLIF ( + ( CAST ( NULL AS INTEGER ) ), + 16 ) AS col2
----
NULL

query I rowsort
SELECT 64 + - 73
----
-9

query I rowsort
SELECT COALESCE ( + - 51, 47 ) + - ( 68 )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT + COUNT( * ) + + - 11 col0
----
-10

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT + COUNT ( * ) + + - 11 col0
----
-10

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

skipif mysql # not compatible
query I rowsort label-3285
SELECT CAST ( NULL AS INTEGER ) * - 88 + + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT + ( 45 ) + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3286
SELECT + ( 45 ) + COUNT ( * )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT - 0 DIV - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT - 0 / - 85 AS col1
----
0

query I rowsort
SELECT 33 + + 36 * + 25
----
933

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3289
SELECT ALL COUNT( * ) DIV 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL COUNT ( * ) / 8 AS col0
----
0

query I rowsort
SELECT ALL + 6 + - 0 AS col0
----
6

query I rowsort
SELECT ALL + + 39 * - - 11 * 33 + - 85
----
14072

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

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

query I rowsort
SELECT + 24 - - 8 * + ( + 53 ) AS col1
----
448

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT + 18 DIV 26 + 41 + + 71 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-3294
SELECT + 18 / 26 + 41 + + 71 AS col1
----
112

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3296
SELECT - 16 + - 28 + - CASE 58 + - 58 WHEN - 46 * + 98 THEN 73 * 47 + - 97 WHEN + 53 THEN 17 WHEN - CAST( 84 AS SIGNED ) + - 63 THEN 77 + 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3296
SELECT - 16 + - 28 + - CASE 58 + - 58 WHEN - 46 * + 98 THEN 73 * 47 + - 97 WHEN + 53 THEN 17 WHEN - CAST ( 84 AS INTEGER ) + - 63 THEN 77 + 60 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3297
SELECT + SUM ( ALL + 62 )
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3298
SELECT ALL - COUNT( * ) AS col0, + 96 + + - COUNT( * ) + + 75 col2
----
-1
170

skipif mysql # not compatible
query II rowsort label-3298
SELECT ALL - COUNT ( * ) AS col0, + 96 + + - COUNT ( * ) + + 75 col2
----
-1
170

query I rowsort
SELECT + 57 * 77 + - 91 + 46 * 18
----
5126

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT 85 * - CASE - 3 WHEN - CASE + 45 WHEN + COUNT( - COALESCE ( + 60, + 87 * - 13 + - 58 ) ) + 69 THEN + 8 END - 85 THEN - 55 * + 69 ELSE 34 END
----
-2890

skipif mysql # not compatible
query I rowsort label-3300
SELECT 85 * - CASE - 3 WHEN - CASE + 45 WHEN + COUNT ( - COALESCE ( + 60, + 87 * - 13 + - 58 ) ) + 69 THEN + 8 END - 85 THEN - 55 * + 69 ELSE 34 END
----
-2890

query I rowsort
SELECT ALL 48 * 62 AS col1
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT 94 - - SUM( - 50 ) + - 26 * 62
----
-1568

skipif mysql # not compatible
query I rowsort label-3302
SELECT 94 - - SUM ( - 50 ) + - 26 * 62
----
-1568

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT ALL - COUNT( * ), + COALESCE ( + 15, - 89 ) AS col0
----
-1
15

skipif mysql # not compatible
query II rowsort label-3303
SELECT ALL - COUNT ( * ), + COALESCE ( + 15, - 89 ) AS col0
----
-1
15

query I rowsort
SELECT 0 + - 36 - + 82 AS col1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL - 78 * + - 74 * - COUNT( * ) AS col2
----
-5772

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL - 78 * + - 74 * - COUNT ( * ) AS col2
----
-5772

query I rowsort
SELECT DISTINCT - COALESCE ( + + 13, + 65, - 56 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT COUNT( ALL + - 29 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3307
SELECT COUNT ( ALL + - 29 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT - 19 * 68 * COUNT( - 20 ) + 37 AS col0
----
-1255

skipif mysql # not compatible
query I rowsort label-3308
SELECT - 19 * 68 * COUNT ( - 20 ) + 37 AS col0
----
-1255

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL - ( MAX( ALL 40 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - ( MAX ( ALL 40 ) ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3310
SELECT - 76 * - COUNT( * ) / + + CAST( NULL AS SIGNED ) * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT - 76 * - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) * - 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3311
SELECT - 82 + - - MAX( - 78 ) + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3311
SELECT - 82 + - - MAX ( - 78 ) + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3312
SELECT - 94 DIV - CAST( - COUNT( 72 ) AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3312
SELECT - 94 / - CAST ( - COUNT ( 72 ) AS INTEGER ) AS col0
----
-94

query I rowsort
SELECT - CASE - + 63 WHEN 60 THEN NULL WHEN ( 10 ) * 14 THEN NULL ELSE + 93 END + 13 * - ( 86 - + ( 81 - 72 ) )
----
-1094

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL + CASE - 6 WHEN COUNT( * ) * 26 - 82 THEN 3 * 11 + 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + CASE - 6 WHEN COUNT ( * ) * 26 - 82 THEN 3 * 11 + 76 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 79 * + 64
----
5056

query II rowsort
SELECT DISTINCT + 93 AS col0, 24 + - + 38
----
93
-14

query I rowsort
SELECT ALL + CASE + 16 WHEN - 51 * - 67 THEN 28 WHEN - 25 * NULLIF ( 52, - 43 ) THEN + 32 * 47 WHEN - 98 - + 5 THEN NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3318
SELECT DISTINCT 93 DIV 65 * - 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT 93 / 65 * - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3319
SELECT ALL + 43 + - 60 - + + COUNT( * ) + 81 DIV - 91
----
-18

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL + 43 + - 60 - + + COUNT ( * ) + 81 / - 91
----
-18

query I rowsort
SELECT - - 73 - - 81 * - - 40 * - 98
----
-317447

onlyif mysql # DIV for integer division: 
query I rowsort label-3321
SELECT ALL + + 63 DIV 35 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL + + 63 / 35 AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3322
SELECT - - 91 col2, - 75 DIV + - 28
----
91
2

skipif mysql # not compatible
query II rowsort label-3322
SELECT - - 91 col2, - 75 / + - 28
----
91
2

onlyif mysql # DIV for integer division: 
query II rowsort label-3323
SELECT ALL + 35, 75 DIV - 21 AS col1
----
35
-3

skipif mysql # not compatible
query II rowsort label-3323
SELECT ALL + 35, 75 / - 21 AS col1
----
35
-3

query I rowsort
SELECT DISTINCT + 29 + + 65
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT NULLIF ( - COUNT( * ), + + 60 * COALESCE ( 12, + 19, - 13 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3325
SELECT NULLIF ( - COUNT ( * ), + + 60 * COALESCE ( 12, + 19, - 13 ) ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3326
SELECT - - 37 AS col2, - 36 * + 72 * + 82 - - 73 DIV + 87 AS col0
----
37
-212544

skipif mysql # not compatible
query II rowsort label-3326
SELECT - - 37 AS col2, - 36 * + 72 * + 82 - - 73 / + 87 AS col0
----
37
-212544

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT - - CASE MAX( DISTINCT + - 79 ) WHEN - MAX( - 72 ) THEN + 3 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT - - CASE MAX ( DISTINCT + - 79 ) WHEN - MAX ( - 72 ) THEN + 3 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3328
SELECT DISTINCT + 96 + - 68 + CASE - MIN( 16 ) WHEN - 14 + + 2 THEN - CAST( COUNT( * ) AS SIGNED ) * - 8 WHEN + COUNT( * ) + CASE - 30 WHEN - 1 THEN NULL WHEN + 9 + 87 THEN - 71 WHEN 49 THEN 33 END THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT + 96 + - 68 + CASE - MIN ( 16 ) WHEN - 14 + + 2 THEN - CAST ( COUNT ( * ) AS INTEGER ) * - 8 WHEN + COUNT ( * ) + CASE - 30 WHEN - 1 THEN NULL WHEN + 9 + 87 THEN - 71 WHEN 49 THEN 33 END THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 58 + + 49 + - 96 * 56
----
-5269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3330
SELECT - - 32 - 75 - - MAX( DISTINCT + 6 ) + 8 DIV 91 * + ( 48 + - COUNT( * ) * ( - 92 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-3330
SELECT - - 32 - 75 - - MAX ( DISTINCT + 6 ) + 8 / 91 * + ( 48 + - COUNT ( * ) * ( - 92 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL ( + CASE - 39 WHEN + COUNT( * ) THEN - COUNT( * ) / 87 + 99 WHEN + 66 THEN - 86 WHEN - 16 * 17 + COUNT( * ) THEN NULL ELSE + COUNT( * ) * 8 END )
----
8

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL ( + CASE - 39 WHEN + COUNT ( * ) THEN - COUNT ( * ) / 87 + 99 WHEN + 66 THEN - 86 WHEN - 16 * 17 + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) * 8 END )
----
8

query I rowsort
SELECT DISTINCT + 35 + 43
----
78

query I rowsort
SELECT ALL - 77 + ( + 91 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT DISTINCT + COUNT( + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT + COUNT ( + 32 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT DISTINCT ( - 72 ) + + + COUNT( DISTINCT 85 )
----
-71

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT ( - 72 ) + + + COUNT ( DISTINCT 85 )
----
-71

query I rowsort
SELECT - + 97 + 38
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3337
SELECT - 10, - COUNT( * ) AS col2
----
-10
-1

skipif mysql # not compatible
query II rowsort label-3337
SELECT - 10, - COUNT ( * ) AS col2
----
-10
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT - 22 + MAX( - + 98 )
----
-120

skipif mysql # not compatible
query I rowsort label-3338
SELECT - 22 + MAX ( - + 98 )
----
-120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3339
SELECT + + 0 + MIN( DISTINCT - 66 ) DIV - 60 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3339
SELECT + + 0 + MIN ( DISTINCT - 66 ) / - 60 AS col1
----
1

query II rowsort
SELECT + 67 AS col2, 58
----
67
58

query I rowsort
SELECT ( - + NULLIF ( 64, + 32 ) ) AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT DISTINCT 83 DIV - - 73
----
1

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT 83 / - - 73
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT + 12 * 23 DIV 58 DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3343
SELECT + 12 * 23 / 58 / 99 AS col1
----
0

query I rowsort
SELECT + ( 97 ) + - 71
----
26

query I rowsort
SELECT + ( - 14 ) AS col2
----
-14

query I rowsort
SELECT ALL 94 * + 66 * - COALESCE ( - - 71, 42 * - 45 - 63 ) AS col2
----
-440484

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT 74 * 40 + 93 * - + 37 + SUM( ALL 72 ) * + 31
----
1751

skipif mysql # not compatible
query I rowsort label-3347
SELECT 74 * 40 + 93 * - + 37 + SUM ( ALL 72 ) * + 31
----
1751

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT ALL + SUM( 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL + SUM ( 69 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT ALL + COUNT( COALESCE ( - 31, NULLIF ( + 86, + 1 + - 10 ) * 83 + - 42 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL + COUNT ( COALESCE ( - 31, NULLIF ( + 86, + 1 + - 10 ) * 83 + - 42 ) )
----
1

query II rowsort
SELECT + ( + 20 ), 10 AS col1
----
20
10

query I rowsort
SELECT + 53 * - NULLIF ( - 12, - 25 )
----
636

query I rowsort
SELECT + 70 - - 58 + 87
----
215

query I rowsort
SELECT ALL 76 * - 73 * + 86 col0
----
-477128

query I rowsort
SELECT ALL + ( - + 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ALL - COUNT( * ) * - + ( + 48 ) + 83 * - 4
----
-284

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL - COUNT ( * ) * - + ( + 48 ) + 83 * - 4
----
-284

query I rowsort
SELECT ALL - 36 * + 13 + + 37 AS col0
----
-431

query I rowsort
SELECT NULLIF ( - + 38, 66 )
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT + 10 + + + 48 AS col1, 7 + + COALESCE ( MIN( DISTINCT + 69 ), ( 4 ) ) + 79
----
58
155

skipif mysql # not compatible
query II rowsort label-3358
SELECT + 10 + + + 48 AS col1, 7 + + COALESCE ( MIN ( DISTINCT + 69 ), ( 4 ) ) + 79
----
58
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT ALL + 37 * - 62 + + CAST( NULL AS SIGNED ) + + - 69 / 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + 37 * - 62 + + CAST ( NULL AS INTEGER ) + + - 69 / 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3360
SELECT + 87 + + 84, + COUNT( ALL + + 54 ) * 18 + 80 AS col0
----
171
98

skipif mysql # not compatible
query II rowsort label-3360
SELECT + 87 + + 84, + COUNT ( ALL + + 54 ) * 18 + 80 AS col0
----
171
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3361
SELECT - COUNT( * ) - 7 + 58 + - 24 + 41 * COUNT( * ) * + 89 DIV COUNT( * )
----
3675

skipif mysql # not compatible
query I rowsort label-3361
SELECT - COUNT ( * ) - 7 + 58 + - 24 + 41 * COUNT ( * ) * + 89 / COUNT ( * )
----
3675

query I rowsort
SELECT - - 47 - + + 80
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3363
SELECT ALL - 63 * - CAST( + - COUNT( * ) AS SIGNED ) + + 94 * + 81 AS col1
----
7551

skipif mysql # not compatible
query I rowsort label-3363
SELECT ALL - 63 * - CAST ( + - COUNT ( * ) AS INTEGER ) + + 94 * + 81 AS col1
----
7551

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - + 61 + + - ( SUM( ALL + 20 ) ) * 17 AS col1
----
-401

skipif mysql # not compatible
query I rowsort label-3364
SELECT - + 61 + + - ( SUM ( ALL + 20 ) ) * 17 AS col1
----
-401

query I rowsort
SELECT ALL COALESCE ( - 54, 48 )
----
-54

query I rowsort
SELECT DISTINCT + - 22 * - - 9 - 51 + - 94
----
-343

query I rowsort
SELECT - + 11 + + 11 * - + 59 * + 95 + 69 * ( 37 )
----
-59113

query I rowsort
SELECT ALL + + 68 - + 86 + + 69 + 24 * - 53
----
-1221

query I rowsort
SELECT - 48 * + + 45 AS col2
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT DISTINCT - CASE + - 52 WHEN - - ( + - 25 ) * + 2 THEN NULL WHEN + COUNT( * ) - + 84 THEN - 61 WHEN 77 THEN NULL END / - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT - CASE + - 52 WHEN - - ( + - 25 ) * + 2 THEN NULL WHEN + COUNT ( * ) - + 84 THEN - 61 WHEN 77 THEN NULL END / - 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3371
SELECT - + 9 + + - 40 + COUNT( * ) * + - 16 DIV + 85 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3371
SELECT - + 9 + + - 40 + COUNT ( * ) * + - 16 / + 85 AS col0
----
-49

query I rowsort
SELECT DISTINCT ( + + 58 ) col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL - - MAX( - + 91 ) - + + COUNT( - 20 ) - ( - 41 ) * - 75 AS col0
----
-3167

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - - MAX ( - + 91 ) - + + COUNT ( - 20 ) - ( - 41 ) * - 75 AS col0
----
-3167

query I rowsort
SELECT DISTINCT 77 * 83
----
6391

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT ALL 95 * + 29 + + + CAST( + - 53 AS SIGNED ) * 59 AS col0
----
-372

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL 95 * + 29 + + + CAST ( + - 53 AS INTEGER ) * 59 AS col0
----
-372

query I rowsort
SELECT - 36 + + 63 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL + 5 * - SUM( + 48 ) AS col2
----
-240

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + 5 * - SUM ( + 48 ) AS col2
----
-240

query I rowsort
SELECT DISTINCT + 96 * + - 65
----
-6240

query I rowsort
SELECT - 24 + - - 60 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT + 89 * CAST( + - MIN( - - 75 ) AS SIGNED ) AS col1
----
-6675

skipif mysql # not compatible
query I rowsort label-3380
SELECT + 89 * CAST ( + - MIN ( - - 75 ) AS INTEGER ) AS col1
----
-6675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3381
SELECT ALL + CASE + NULLIF ( - - CAST( - 80 AS SIGNED ), + + COUNT( * ) ) WHEN - 78 / - 85 THEN - 41 * + 32 WHEN + 14 THEN NULL END * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + CASE + NULLIF ( - - CAST ( - 80 AS INTEGER ), + + COUNT ( * ) ) WHEN - 78 / - 85 THEN - 41 * + 32 WHEN + 14 THEN NULL END * 26
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3382
SELECT - ( COUNT( * ) ) * CAST( 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-3382
SELECT - ( COUNT ( * ) ) * CAST ( 22 AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3383
SELECT - 74 DIV - + ( - COUNT( ALL 91 ) ) + - 41 * COALESCE ( 78 DIV 89, 30 * - 73 ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-3383
SELECT - 74 / - + ( - COUNT ( ALL 91 ) ) + - 41 * COALESCE ( 78 / 89, 30 * - 73 ) col0
----
-74

query I rowsort
SELECT 35 + - 37 + + 50 * + 89 - 41
----
4407

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3385
SELECT COUNT( * ) DIV - 30 * + - 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3385
SELECT COUNT ( * ) / - 30 * + - 43 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ( + COALESCE ( - - ( - 75 ), + 40 * + 1, 32 ) ) * COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-3386
SELECT ( + COALESCE ( - - ( - 75 ), + 40 * + 1, 32 ) ) * COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT ALL COUNT( * ) + MAX( DISTINCT + - 19 ) AS col1, + 43 col2
----
-18
43

skipif mysql # not compatible
query II rowsort label-3387
SELECT ALL COUNT ( * ) + MAX ( DISTINCT + - 19 ) AS col1, + 43 col2
----
-18
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3388
SELECT 43 / 28 / - 70 + + 45 / - 81 + CAST( NULL AS DECIMAL ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT 43 / 28 / - 70 + + 45 / - 81 + CAST ( NULL AS REAL ) * - 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL - COUNT( * ) + 0 + CASE + 29 WHEN + 11 THEN 58 WHEN + 48 THEN NULL ELSE + 83 * + 61 END * 47
----
237960

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL - COUNT ( * ) + 0 + CASE + 29 WHEN + 11 THEN 58 WHEN + 48 THEN NULL ELSE + 83 * + 61 END * 47
----
237960

onlyif mysql # aggregate syntax: 
query II rowsort label-3390
SELECT ALL 17 + + MIN( - 49 ) AS col1, + 1
----
-32
1

skipif mysql # not compatible
query II rowsort label-3390
SELECT ALL 17 + + MIN ( - 49 ) AS col1, + 1
----
-32
1

query I rowsort
SELECT ALL 34 + 51 AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT DISTINCT - 86, - COUNT( * ) AS col1
----
-86
-1

skipif mysql # not compatible
query II rowsort label-3392
SELECT DISTINCT - 86, - COUNT ( * ) AS col1
----
-86
-1

query I rowsort
SELECT ALL 81 * - 86 * 83 AS col0
----
-578178

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT COALESCE ( - 55, - + 25 * + 1 * - 90, 98 * + COUNT( * ) ) * 9 + + 37 col2
----
-458

skipif mysql # not compatible
query I rowsort label-3394
SELECT COALESCE ( - 55, - + 25 * + 1 * - 90, 98 * + COUNT ( * ) ) * 9 + + 37 col2
----
-458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3395
SELECT DISTINCT 16 + - - ( + ( + NULLIF ( + CASE + 99 WHEN - 95 + - 52 THEN NULL WHEN 17 THEN + SUM( ALL 5 ) ELSE NULL END, AVG ( NULLIF ( CAST( NULL AS SIGNED ), 0 ) ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT 16 + - - ( + ( + NULLIF ( + CASE + 99 WHEN - 95 + - 52 THEN NULL WHEN 17 THEN + SUM ( ALL 5 ) ELSE NULL END, AVG ( NULLIF ( CAST ( NULL AS INTEGER ), 0 ) ) ) ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 75 + 83 * NULLIF ( + 99, - 42 )
----
8292

query II rowsort
SELECT + - 8 AS col1, 66 * + + COALESCE ( 40, 88 ) * + 27 AS col2
----
-8
71280

query I rowsort
SELECT ALL - - ( - NULLIF ( 55, - 6 ) )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3399
SELECT DISTINCT + ( COUNT( * ) ) + + 76 DIV + 65 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT + ( COUNT ( * ) ) + + 76 / + 65 AS col0
----
2

query I rowsort
SELECT ALL - + 20 - 95
----
-115

query I rowsort
SELECT 77 * 25 AS col2
----
1925

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3402
SELECT - ( CAST( 52 AS SIGNED ) )
----
-52

skipif mysql # not compatible
query I rowsort label-3402
SELECT - ( CAST ( 52 AS INTEGER ) )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3403
SELECT - + COALESCE ( + CASE 24 WHEN - + 83 * - - 63 * CAST( NULL AS SIGNED ) THEN NULL ELSE + 52 END, + COUNT( * ), MIN( 65 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-3403
SELECT - + COALESCE ( + CASE 24 WHEN - + 83 * - - 63 * CAST ( NULL AS INTEGER ) THEN NULL ELSE + 52 END, + COUNT ( * ), MIN ( 65 ) )
----
-52

query I rowsort
SELECT - 69 + - + 36
----
-105

query II rowsort
SELECT 77, + 78 col0
----
77
78

query I rowsort
SELECT ALL + 94 - + 28 AS col2
----
66

query I rowsort
SELECT 0 * + + 64 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL CASE - CASE - 26 WHEN - AVG ( DISTINCT - 95 ) * - ( 32 * + CASE 90 WHEN - ( + 22 ) + 33 * + 68 THEN + 19 * - 94 WHEN - 85 + 24 THEN + NULLIF ( 39, + AVG ( 38 ) * ( MIN( + 66 ) * 81 ) ) END ) THEN + 89 ELSE NULL END WHEN - 53 + - 27 THEN NULL WHEN ( - NULLIF ( + 8, 83 ) ) THEN + 84 WHEN 68 THEN ( 26 ) * + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL CASE - CASE - 26 WHEN - AVG ( DISTINCT - 95 ) * - ( 32 * + CASE 90 WHEN - ( + 22 ) + 33 * + 68 THEN + 19 * - 94 WHEN - 85 + 24 THEN + NULLIF ( 39, + AVG ( 38 ) * ( MIN ( + 66 ) * 81 ) ) END ) THEN + 89 ELSE NULL END WHEN - 53 + - 27 THEN NULL WHEN ( - NULLIF ( + 8, 83 ) ) THEN + 84 WHEN 68 THEN ( 26 ) * + 51 ELSE NULL END
----
NULL

query I rowsort
SELECT - 26 - + 11 AS col1
----
-37

query I rowsort
SELECT DISTINCT - 50 * - - 44 * + 77 AS col0
----
-169400

query I rowsort
SELECT 49 - - 97 col0
----
146

query I rowsort
SELECT ALL NULLIF ( - + 97, 51 * - 75 ) * - + 87 AS col2
----
8439

query I rowsort
SELECT ALL + 59 * - - 62 AS col2
----
3658

query I rowsort
SELECT 26 * - 72
----
-1872

query II rowsort
SELECT 96 AS col2, + 21 AS col2
----
96
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3416
SELECT 91 * 6 AS col2, - COUNT( * ) DIV 79 - - - 6 AS col1
----
546
-6

skipif mysql # not compatible
query II rowsort label-3416
SELECT 91 * 6 AS col2, - COUNT ( * ) / 79 - - - 6 AS col1
----
546
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT - 38 DIV ( - 79 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT - 38 / ( - 79 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT + 93 + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + 93 + COUNT ( * )
----
94

query III rowsort
SELECT DISTINCT 30 AS col1, + 23, - 65 AS col0
----
30
23
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL + COUNT( * ) + + 44
----
45

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL + COUNT ( * ) + + 44
----
45

query I rowsort
SELECT 25 * - 60
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL 35 + COUNT( * ) * - 75 + 81 * ( + - 37 ) * ( 75 * COUNT( * ) + COUNT( * ) ) + - 63 AS col1
----
-227875

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL 35 + COUNT ( * ) * - 75 + 81 * ( + - 37 ) * ( 75 * COUNT ( * ) + COUNT ( * ) ) + - 63 AS col1
----
-227875

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT DISTINCT - MIN( - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT - MIN ( - 28 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT ALL + 48 + + 52 DIV 53 * - 92 * + 40 * 84
----
48

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + 48 + + 52 / 53 * - 92 * + 40 * 84
----
48

query I rowsort
SELECT 15 + - - 37 AS col1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3426
SELECT CASE - 80 WHEN + 50 * CAST( NULL AS SIGNED ) THEN NULL WHEN - - 25 + - 31 THEN - 60 WHEN COALESCE ( - 5, + 99 * COUNT( * ) ) THEN 91 END * 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT CASE - 80 WHEN + 50 * CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 25 + - 31 THEN - 60 WHEN COALESCE ( - 5, + 99 * COUNT ( * ) ) THEN 91 END * 38 AS col1
----
NULL

query II rowsort
SELECT 57, + 51 AS col0
----
57
51

query II rowsort
SELECT + 2, - ( - + 24 ) AS col1
----
2
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3429
SELECT 70 DIV - 32
----
-2

skipif mysql # not compatible
query I rowsort label-3429
SELECT 70 / - 32
----
-2

query I rowsort
SELECT ALL 75 + + 71 - + ( 17 ) * - 25 + - 48 + 57 * ( 21 ) col1
----
1720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3431
SELECT 44 AS col0, - ( 28 ) * + 62 + NULLIF ( + CASE - ( 91 ) WHEN + 79 THEN - COUNT( * ) END, + 22 * - ( CAST( + 0 AS DECIMAL ) ) - 23 * 35 )
----
44
NULL

skipif mysql # not compatible
query II rowsort label-3431
SELECT 44 AS col0, - ( 28 ) * + 62 + NULLIF ( + CASE - ( 91 ) WHEN + 79 THEN - COUNT ( * ) END, + 22 * - ( CAST ( + 0 AS REAL ) ) - 23 * 35 )
----
44
NULL

query I rowsort
SELECT ALL - CASE - - 55 WHEN - 56 * + 8 THEN NULL ELSE + - 36 END AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT DISTINCT - 30 - - + 24 + + 60 * 6 * MIN( - 13 ) DIV MAX( 91 * 13 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT - 30 - - + 24 + + 60 * 6 * MIN ( - 13 ) / MAX ( 91 * 13 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT 45 * + - COUNT( * ) + 71 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3434
SELECT 45 * + - COUNT ( * ) + 71 AS col1
----
26

query I rowsort
SELECT ALL - + 77 - + 1 + - 90 AS col1
----
-168

query I rowsort
SELECT DISTINCT - - ( 2 ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3437
SELECT + - ( 45 ) * COUNT( * ) + ( + + 23 ) + CAST( COALESCE ( - 71, CAST( + 95 AS SIGNED ) / + 42 ) AS SIGNED ) + 39 * 91 col2
----
3456

skipif mysql # not compatible
query I rowsort label-3437
SELECT + - ( 45 ) * COUNT ( * ) + ( + + 23 ) + CAST ( COALESCE ( - 71, CAST ( + 95 AS INTEGER ) / + 42 ) AS INTEGER ) + 39 * 91 col2
----
3456

query II rowsort
SELECT + ( NULLIF ( 96, 12 ) ) AS col2, 62
----
96
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL + CASE - 11 WHEN + SUM( ALL + 88 ) THEN - 56 * + 34 + 95 WHEN 50 - 58 THEN + ( 70 ) * + 57 + - 52 END / + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL + CASE - 11 WHEN + SUM ( ALL + 88 ) THEN - 56 * + 34 + 95 WHEN 50 - 58 THEN + ( 70 ) * + 57 + - 52 END / + 10
----
NULL

query I rowsort
SELECT - 85 * + 22 * + ( - - 15 ) - + ( - 40 ) AS col2
----
-28010

query I rowsort
SELECT + 5 * 60 + 79 - 96 AS col0
----
283

query II rowsort
SELECT + 44 - + + 99, 57 AS col1
----
-55
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT - COUNT( DISTINCT 78 ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3443
SELECT - COUNT ( DISTINCT 78 ) * - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3444
SELECT - MAX( CASE 23 WHEN 10 THEN + COALESCE ( - + 7, 50 + 8 ) * - 18 + 63 ELSE + NULLIF ( 47, 22 * + ( - CAST( 35 AS SIGNED ) ) ) END ) + + COALESCE ( 88, + CASE 94 WHEN 73 THEN NULLIF ( - 19, ( + 5 ) ) * 69 END + - 12 ) DIV - 81
----
-48

skipif mysql # not compatible
query I rowsort label-3444
SELECT - MAX ( CASE 23 WHEN 10 THEN + COALESCE ( - + 7, 50 + 8 ) * - 18 + 63 ELSE + NULLIF ( 47, 22 * + ( - CAST ( 35 AS INTEGER ) ) ) END ) + + COALESCE ( 88, + CASE 94 WHEN 73 THEN NULLIF ( - 19, ( + 5 ) ) * 69 END + - 12 ) / - 81
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL 71 * - - COUNT( * ) + - 52
----
19

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL 71 * - - COUNT ( * ) + - 52
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT + SUM( DISTINCT 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT + SUM ( DISTINCT 27 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT + COUNT( * ) * - - 87 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT + COUNT ( * ) * - - 87 AS col2
----
87

onlyif mysql # aggregate syntax: 
query III rowsort label-3448
SELECT ALL 13 col0, + 89 + - COUNT( * ) + - - 55, + - 50 + 95 AS col2
----
13
143
45

skipif mysql # not compatible
query III rowsort label-3448
SELECT ALL 13 col0, + 89 + - COUNT ( * ) + - - 55, + - 50 + 95 AS col2
----
13
143
45

query II rowsort
SELECT DISTINCT + 76 AS col1, 41
----
76
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3450
SELECT 63 + - 39 * - + 69 * + CASE - 69 WHEN + 80 THEN 54 * COUNT( ALL CAST( + 48 AS SIGNED ) ) + 92 ELSE - 71 END * + 38 + 65
----
-7260190

skipif mysql # not compatible
query I rowsort label-3450
SELECT 63 + - 39 * - + 69 * + CASE - 69 WHEN + 80 THEN 54 * COUNT ( ALL CAST ( + 48 AS INTEGER ) ) + 92 ELSE - 71 END * + 38 + 65
----
-7260190

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL MIN( DISTINCT + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL MIN ( DISTINCT + 72 )
----
72

query I rowsort
SELECT ALL - 13 + - ( - 47 ) AS col1
----
34

query I rowsort
SELECT + ( + 64 ) col0
----
64

query I rowsort
SELECT + 60 * 46 AS col1
----
2760

query II rowsort
SELECT ALL 72 * - 12 AS col2, ( + 48 )
----
-864
48

onlyif mysql # DIV for integer division: 
query II rowsort label-3456
SELECT + 77 DIV 13 AS col1, - 46
----
5
-46

skipif mysql # not compatible
query II rowsort label-3456
SELECT + 77 / 13 AS col1, - 46
----
5
-46

query I rowsort
SELECT - 83 * - 47 AS col0
----
3901

query I rowsort
SELECT - 42 + - 79 AS col2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT - CASE 58 WHEN + - 94 * + COALESCE ( COUNT( * ), + - 35 * - MAX( ALL 34 ) * COUNT( * ) + + 11 ) / + 9 THEN NULL ELSE 66 END AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3459
SELECT - CASE 58 WHEN + - 94 * + COALESCE ( COUNT ( * ), + - 35 * - MAX ( ALL 34 ) * COUNT ( * ) + + 11 ) / + 9 THEN NULL ELSE 66 END AS col2
----
-66

query I rowsort
SELECT + 71 + + + 94
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT - ( COUNT( * ) ) + - 93 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - ( COUNT ( * ) ) + - 93 AS col1
----
-94

query II rowsort
SELECT DISTINCT 71 * 39 AS col0, + 0
----
2769
0

query I rowsort
SELECT ALL + 43 + - 65
----
-22

query I rowsort
SELECT ALL NULLIF ( 57, + - 5 ) AS col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT + 11 DIV - 31
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT + 11 / - 31
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT - 17 + - 84 - - COUNT( * ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-3466
SELECT - 17 + - 84 - - COUNT ( * ) AS col2
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3467
SELECT DISTINCT - ( CAST( - 65 AS SIGNED ) ) * + 48 + 32 AS col0, - COALESCE ( - 10, 98, 99 ) * 6
----
3152
60

skipif mysql # not compatible
query II rowsort label-3467
SELECT DISTINCT - ( CAST ( - 65 AS INTEGER ) ) * + 48 + 32 AS col0, - COALESCE ( - 10, 98, 99 ) * 6
----
3152
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3468
SELECT ALL - ( - 48 ) DIV - 33 col2
----
-1

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL - ( - 48 ) / - 33 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL + COUNT( - ( - - 89 ) ) * - 18 - + - 57 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL + COUNT ( - ( - - 89 ) ) * - 18 - + - 57 AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3470
SELECT ALL + NULLIF ( + + COUNT( * ), + COUNT( DISTINCT + + 89 ) + ( - CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + NULLIF ( + + COUNT ( * ), + COUNT ( DISTINCT + + 89 ) + ( - CAST ( NULL AS INTEGER ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT - COUNT( * ) + 21 - - ( + 17 ) * - - MIN( + ( ( 20 ) ) ) AS col2
----
360

skipif mysql # not compatible
query I rowsort label-3471
SELECT - COUNT ( * ) + 21 - - ( + 17 ) * - - MIN ( + ( ( 20 ) ) ) AS col2
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT + - MIN( + - 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + - MIN ( + - 84 ) AS col0
----
84

query I rowsort
SELECT ALL 41 * 90 - + - 68 * - 74 AS col0
----
-1342

query I rowsort
SELECT - ( - 62 ) * + ( - + 13 ) * + 87 + 61 * - 2 AS col2
----
-70244

query I rowsort
SELECT + + 49 * - 93 AS col1
----
-4557

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT ALL 49 * + - 91 - + + MIN( ALL + 54 ) AS col0
----
-4513

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL 49 * + - 91 - + + MIN ( ALL + 54 ) AS col0
----
-4513

query I rowsort
SELECT + 42 + + - 86 * 27 + - 39
----
-2319

query I rowsort
SELECT - 86 * + 35
----
-3010

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT - COUNT( + 97 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3479
SELECT - COUNT ( + 97 ) col0
----
-1

query I rowsort
SELECT ALL + + ( 81 )
----
81

query I rowsort
SELECT ALL 61 * + 17 + + CASE - 56 WHEN + 66 + + ( - 20 ) / 15 THEN + 24 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3482
SELECT ALL - - 57 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - - 57 / - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT + 86 * + - 8 * 11 - SUM( - + 26 ) AS col1
----
-7542

skipif mysql # not compatible
query I rowsort label-3483
SELECT + 86 * + - 8 * 11 - SUM ( - + 26 ) AS col1
----
-7542

onlyif mysql # DIV for integer division: 
query I rowsort label-3484
SELECT - 84 * 86 + + + ( - 93 ) + + 14 + - 72 * 53 * COALESCE ( - 46 DIV 52, 88 ) col2
----
-7303

skipif mysql # not compatible
query I rowsort label-3484
SELECT - 84 * 86 + + + ( - 93 ) + + 14 + - 72 * 53 * COALESCE ( - 46 / 52, 88 ) col2
----
-7303

query II rowsort
SELECT - 88 + - + 72 * + 32, 68 + - 42 AS col0
----
-2392
26

query II rowsort
SELECT + 58 * + 75, - 19 + - 8 + - - 91 AS col2
----
4350
64

query I rowsort
SELECT ALL COALESCE ( - 95, - - 14 ) * - 33 col0
----
3135

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT DISTINCT 32 * - 80 DIV + 4
----
-640

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT 32 * - 80 / + 4
----
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT ALL 65 + + + 90 + + - 8 + + + 74 DIV + 92 * - + 57 * + 8 AS col0
----
147

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL 65 + + + 90 + + - 8 + + + 74 / + 92 * - + 57 * + 8 AS col0
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3490
SELECT ALL COALESCE ( CASE + ( - 0 ) WHEN + - 65 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 1 END, + 38, - 88, - ( CAST( NULL AS SIGNED ) ) * 9 ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL COALESCE ( CASE + ( - 0 ) WHEN + - 65 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 1 END, + 38, - 88, - ( CAST ( NULL AS INTEGER ) ) * 9 ) + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT + 30 - MAX( - 51 ) - - + 2 + - ( COUNT( * ) ) * + 58 * - + 9 * 6 AS col2
----
3215

skipif mysql # not compatible
query I rowsort label-3491
SELECT + 30 - MAX ( - 51 ) - - + 2 + - ( COUNT ( * ) ) * + 58 * - + 9 * 6 AS col2
----
3215

query II rowsort
SELECT ALL 68 AS col2, 0 col1
----
68
0

query I rowsort
SELECT - ( + NULLIF ( + 99, 54 + ( - 87 ) + - 97 * + 37 * - 21 ) )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3494
SELECT + 6 - + 36 * - 13 * + 2 - + SUM( ALL - + CAST( NULL AS SIGNED ) ) + 31 * + + 71 + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT + 6 - + 36 * - 13 * + 2 - + SUM ( ALL - + CAST ( NULL AS INTEGER ) ) + 31 * + + 71 + - 69
----
NULL

query I rowsort
SELECT ALL 12 * + 36
----
432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3496
SELECT - ( - CASE 40 WHEN - 85 + + ( CASE - ( + 81 ) WHEN - ( + 78 ) THEN + MIN( 16 ) WHEN - COUNT( * ) * - 46 THEN + CASE - 69 WHEN - 98 THEN + 38 WHEN - 4 + + 52 THEN NULL ELSE 52 * MAX( CAST( NULL AS SIGNED ) / - 68 ) END WHEN 13 / MIN( 17 * - 80 ) + - ( 94 ) THEN 80 END ) / 14 THEN NULL WHEN 58 THEN NULL ELSE 45 END ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3496
SELECT - ( - CASE 40 WHEN - 85 + + ( CASE - ( + 81 ) WHEN - ( + 78 ) THEN + MIN ( 16 ) WHEN - COUNT ( * ) * - 46 THEN + CASE - 69 WHEN - 98 THEN + 38 WHEN - 4 + + 52 THEN NULL ELSE 52 * MAX ( CAST ( NULL AS INTEGER ) / - 68 ) END WHEN 13 / MIN ( 17 * - 80 ) + - ( 94 ) THEN 80 END ) / 14 THEN NULL WHEN 58 THEN NULL ELSE 45 END ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT ALL 30 + + - CAST( - 16 AS SIGNED ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL 30 + + - CAST ( - 16 AS INTEGER ) AS col0
----
46

query I rowsort
SELECT + 70 + 2 AS col1
----
72

query II rowsort
SELECT + 76 * - 94 * - - 96, - NULLIF ( 0, ( - + 64 ) + + 22 ) col0
----
-685824
0

query II rowsort
SELECT 1, - ( - 68 ) AS col1
----
1
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL COUNT( DISTINCT 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL COUNT ( DISTINCT 79 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3502
SELECT DISTINCT 17 * COALESCE ( - + 72, + + 40 * + 0, - - 49 * + 91 - CAST( NULL AS SIGNED ) + - 94 ) col1
----
-1224

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT 17 * COALESCE ( - + 72, + + 40 * + 0, - - 49 * + 91 - CAST ( NULL AS INTEGER ) + - 94 ) col1
----
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL - 85 * + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - 85 * + COUNT ( * )
----
-85

query I rowsort
SELECT DISTINCT + 30 - + - 33
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT - CAST( - 1 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3505
SELECT - CAST ( - 1 AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3506
SELECT ALL + COUNT( * ), + 98 col2
----
1
98

skipif mysql # not compatible
query II rowsort label-3506
SELECT ALL + COUNT ( * ), + 98 col2
----
1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT - COUNT( * ) * 59
----
-59

skipif mysql # not compatible
query I rowsort label-3507
SELECT - COUNT ( * ) * 59
----
-59

query I rowsort
SELECT ALL 16 * - 99 AS col0
----
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT + + NULLIF ( + - 60, + + 6 + + MIN( DISTINCT ( + 8 ) ) )
----
-60

skipif mysql # not compatible
query I rowsort label-3509
SELECT + + NULLIF ( + - 60, + + 6 + + MIN ( DISTINCT ( + 8 ) ) )
----
-60

query II rowsort
SELECT + 57 AS col0, + 67 * + + 48 col1
----
57
3216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT + NULLIF ( ( + 96 ), - 62 * + CAST( NULL AS SIGNED ) )
----
96

skipif mysql # not compatible
query I rowsort label-3511
SELECT + NULLIF ( ( + 96 ), - 62 * + CAST ( NULL AS INTEGER ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT + - CASE + - 69 WHEN 53 THEN - - 93 + - - 90 WHEN ( - 12 ) + - 7 + + SUM( ALL 7 ) * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT + - CASE + - 69 WHEN 53 THEN - - 93 + - - 90 WHEN ( - 12 ) + - 7 + + SUM ( ALL 7 ) * COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3513
SELECT - - COALESCE ( + ( + 93 ), + 33 DIV + - 53 + ( - 53 ) + + 87 * 97 ) DIV ( + 11 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3513
SELECT - - COALESCE ( + ( + 93 ), + 33 / + - 53 + ( - 53 ) + + 87 * 97 ) / ( + 11 ) AS col0
----
8

query I rowsort
SELECT - + 1 + - 95 AS col0
----
-96

query I rowsort
SELECT ALL + + ( - 23 )
----
-23

query I rowsort
SELECT NULLIF ( 61, + 12 ) * + 93 + - 42 AS col1
----
5631

query I rowsort
SELECT ALL - 15 * + 29 AS col0
----
-435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3518
SELECT - COUNT( * ) * CASE - + 75 WHEN + 43 - - 7 THEN - - COALESCE ( + + 16, 14 * + 23 ) + + 8 DIV COALESCE ( - 60 * + ( - 16 ), - 50 + 2, + 84 ) WHEN COUNT( * ) THEN + 12 ELSE 5 END DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-3518
SELECT - COUNT ( * ) * CASE - + 75 WHEN + 43 - - 7 THEN - - COALESCE ( + + 16, 14 * + 23 ) + + 8 / COALESCE ( - 60 * + ( - 16 ), - 50 + 2, + 84 ) WHEN COUNT ( * ) THEN + 12 ELSE 5 END / 92
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3519
SELECT ALL COUNT( * ) * - - CASE NULLIF ( 23, COALESCE ( - + 77, - - CASE COUNT( * ) WHEN - 90 THEN MIN( - 69 ) END ) ) WHEN - CAST( NULL AS SIGNED ) THEN 55 END + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL COUNT ( * ) * - - CASE NULLIF ( 23, COALESCE ( - + 77, - - CASE COUNT ( * ) WHEN - 90 THEN MIN ( - 69 ) END ) ) WHEN - CAST ( NULL AS INTEGER ) THEN 55 END + - 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3520
SELECT - 20 * + 65 / - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3520
SELECT - 20 * + 65 / - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3521
SELECT ALL - CAST( - - COALESCE ( + 21, 55 ) AS SIGNED ) + + + 97 - - + 85 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL - CAST ( - - COALESCE ( + 21, 55 ) AS INTEGER ) + + + 97 - - + 85 AS col1
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT - COUNT( * ) - + 38 + - - NULLIF ( - 17, + COALESCE ( - NULLIF ( - + 44, + + 66 * - 82 ), + 89 + + 55 / + 55, + 94 ) * + NULLIF ( 88 * - 78, 59 ) - + 40 ) + COUNT( * ) * 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3522
SELECT - COUNT ( * ) - + 38 + - - NULLIF ( - 17, + COALESCE ( - NULLIF ( - + 44, + + 66 * - 82 ), + 89 + + 55 / + 55, + 94 ) * + NULLIF ( 88 * - 78, 59 ) - + 40 ) + COUNT ( * ) * 28 AS col1
----
-28

query I rowsort
SELECT ALL - - NULLIF ( 73, + 22 ) * - 46 * + 19
----
-63802

query I rowsort
SELECT NULLIF ( 25, 11 + - + ( + ( - 94 ) ) ) + + - 85
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT ALL - + 12 AS col2, MIN( DISTINCT - 4 )
----
-12
-4

skipif mysql # not compatible
query II rowsort label-3525
SELECT ALL - + 12 AS col2, MIN ( DISTINCT - 4 )
----
-12
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3526
SELECT - + 43 * - + CAST( NULL AS SIGNED ) + + 3 * - + COUNT( * ) * 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT - + 43 * - + CAST ( NULL AS INTEGER ) + + 3 * - + COUNT ( * ) * 82 AS col0
----
NULL

query I rowsort
SELECT - + ( - 11 )
----
11

query I rowsort
SELECT 19 + - 77
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3529
SELECT 38 + - COUNT( 66 ) + 15 * - 72 * + 96 DIV - - COUNT( * ) AS col0
----
-103643

skipif mysql # not compatible
query I rowsort label-3529
SELECT 38 + - COUNT ( 66 ) + 15 * - 72 * + 96 / - - COUNT ( * ) AS col0
----
-103643

query I rowsort
SELECT ALL - ( + 90 ) - + - 9
----
-81

query II rowsort
SELECT 16 + + 97, + 17 AS col2
----
113
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3532
SELECT 19 DIV + + COUNT( DISTINCT + 27 ) col1
----
19

skipif mysql # not compatible
query I rowsort label-3532
SELECT 19 / + + COUNT ( DISTINCT + 27 ) col1
----
19

query I rowsort
SELECT 25 + + - 5 + + 55 * - 51
----
-2785

query I rowsort
SELECT 64 + + 8 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL MAX( DISTINCT - 71 ) * - - 98 * + NULLIF ( + 32, 27 + 97 )
----
-222656

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL MAX ( DISTINCT - 71 ) * - - 98 * + NULLIF ( + 32, 27 + 97 )
----
-222656

query I rowsort
SELECT DISTINCT 17 * - 30
----
-510

query I rowsort
SELECT ALL 76 * + 52 * 20 AS col1
----
79040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3538
SELECT 54 * + 38 DIV + COUNT( * ) col0
----
2052

skipif mysql # not compatible
query I rowsort label-3538
SELECT 54 * + 38 / + COUNT ( * ) col0
----
2052

query I rowsort
SELECT DISTINCT 46 - - + 85 * + - 33 AS col2
----
-2759

onlyif mysql # aggregate syntax: 
query II rowsort label-3540
SELECT 70 + - 23 + ( - COUNT( * ) ) AS col0, - 59
----
46
-59

skipif mysql # not compatible
query II rowsort label-3540
SELECT 70 + - 23 + ( - COUNT ( * ) ) AS col0, - 59
----
46
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT 44 * + + ( + ( - COUNT( * ) ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-3541
SELECT 44 * + + ( + ( - COUNT ( * ) ) ) AS col1
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3542
SELECT CASE - - 79 WHEN 0 * - CAST( NULL AS DECIMAL ) * ( 91 ) + 95 THEN NULL WHEN 20 THEN 2 END * - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT CASE - - 79 WHEN 0 * - CAST ( NULL AS REAL ) * ( 91 ) + 95 THEN NULL WHEN 20 THEN 2 END * - 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL - COUNT( * ) / - CASE - COUNT( * ) WHEN - 23 THEN NULL WHEN + COUNT( * ) + - + ( + 81 ) THEN - + 24 WHEN - 97 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL - COUNT ( * ) / - CASE - COUNT ( * ) WHEN - 23 THEN NULL WHEN + COUNT ( * ) + - + ( + 81 ) THEN - + 24 WHEN - 97 THEN NULL END
----
NULL

query I rowsort
SELECT + 10 + 43 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3545
SELECT ALL + ( + + COUNT( * ) ) * 14 + ( CAST( + - 21 AS SIGNED ) )
----
-7

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL + ( + + COUNT ( * ) ) * 14 + ( CAST ( + - 21 AS INTEGER ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL 94 + + + COALESCE ( + 56, + - 66 + 29 ) * - + COALESCE ( 98, - SUM( + 89 ) * 38 ) AS col2
----
-5394

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL 94 + + + COALESCE ( + 56, + - 66 + 29 ) * - + COALESCE ( 98, - SUM ( + 89 ) * 38 ) AS col2
----
-5394

query I rowsort
SELECT ALL - 67 * + 4 AS col2
----
-268

query I rowsort
SELECT DISTINCT + 8 + + 73 * 94 * - + 27
----
-185266

query I rowsort
SELECT DISTINCT + 28 + - 20
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT 65 + + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT 65 + + COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3551
SELECT + 10 * - COUNT( * ) + - SUM( ALL - 55 ) AS col2, - COUNT( * ) + + 56 + + - 66
----
45
-11

skipif mysql # not compatible
query II rowsort label-3551
SELECT + 10 * - COUNT ( * ) + - SUM ( ALL - 55 ) AS col2, - COUNT ( * ) + + 56 + + - 66
----
45
-11

query I rowsort
SELECT 38 + + 71
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ALL + - 27 + - + COUNT( DISTINCT 59 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL + - 27 + - + COUNT ( DISTINCT 59 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL + ( - COUNT( * ) ) - + 30 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL + ( - COUNT ( * ) ) - + 30 AS col2
----
-31

query I rowsort
SELECT ( + + 60 ) - - 13
----
73

query I rowsort
SELECT 45 * 81 AS col1
----
3645

query II rowsort
SELECT ALL 21 AS col2, 69 AS col2
----
21
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT DISTINCT + COUNT( * ) * + + 52
----
52

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT + COUNT ( * ) * + + 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT 28 + - + CASE 57 WHEN - + 36 * + - ( - CASE + - 19 WHEN + + 46 THEN NULL WHEN - - 39 THEN NULL ELSE + COUNT( * ) END ) * - 27 THEN - 87 ELSE NULL END + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT 28 + - + CASE 57 WHEN - + 36 * + - ( - CASE + - 19 WHEN + + 46 THEN NULL WHEN - - 39 THEN NULL ELSE + COUNT ( * ) END ) * - 27 THEN - 87 ELSE NULL END + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT MIN( + 19 ) * - 46
----
-874

skipif mysql # not compatible
query I rowsort label-3560
SELECT MIN ( + 19 ) * - 46
----
-874

query I rowsort
SELECT 35 * + - CASE + + ( + 72 ) WHEN - 87 THEN + 69 * - 89 + + + 70 + 80 WHEN 20 THEN - 8 + + 28 WHEN 84 THEN NULL END / 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT SUM( - ( + + 24 ) ) + + - 60
----
-84

skipif mysql # not compatible
query I rowsort label-3562
SELECT SUM ( - ( + + 24 ) ) + + - 60
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3563
SELECT ALL - 30 - - CAST( NULL AS SIGNED ) / - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL - 30 - - CAST ( NULL AS INTEGER ) / - 42
----
NULL

query II rowsort
SELECT ALL 32 AS col0, - 60 AS col0
----
32
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT 54 - - COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3565
SELECT 54 - - COUNT ( * ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL MAX( - + 96 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL MAX ( - + 96 ) AS col2
----
-96

query I rowsort
SELECT 63 - 11 * + 22
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT DISTINCT MIN( - + COALESCE ( 93, - 84 * + - 76 + + 40 * - 21 + + 23 ) ) * + + 31 AS col0
----
-2883

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT MIN ( - + COALESCE ( 93, - 84 * + - 76 + + 40 * - 21 + + 23 ) ) * + + 31 AS col0
----
-2883

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT 53 + - 74 * + COUNT( * ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-3569
SELECT 53 + - 74 * + COUNT ( * ) col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3570
SELECT ALL MAX( DISTINCT + + CASE + + CAST( - 44 AS SIGNED ) WHEN + 95 - + COALESCE ( + + 5, + CAST( - 33 AS SIGNED ), - 2 ) * 10 THEN NULL WHEN 5 + 62 THEN - 84 + 50 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL MAX ( DISTINCT + + CASE + + CAST ( - 44 AS INTEGER ) WHEN + 95 - + COALESCE ( + + 5, + CAST ( - 33 AS INTEGER ), - 2 ) * 10 THEN NULL WHEN 5 + 62 THEN - 84 + 50 END ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 40 + - + 89 - - - 13
----
-142

query I rowsort
SELECT 98 - + + 86 - + + 43 AS col1
----
-31

query I rowsort
SELECT ALL 64 + + 10 + 62
----
136

query I rowsort
SELECT - 34 - + 5 AS col0
----
-39

query I rowsort
SELECT DISTINCT - 29 * 26 * - + 68 + + + NULLIF ( 23, 13 - + 43 + - 73 + - + ( + 1 ) / 9 ) AS col0
----
51295

query I rowsort
SELECT DISTINCT + ( 57 ) AS col0
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3577
SELECT - + 99 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT - + 99 + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3578
SELECT + 79 DIV COALESCE ( - + 71, + 62 ) + 75 + 80 * + - 53 + - 8 col0
----
-4174

skipif mysql # not compatible
query I rowsort label-3578
SELECT + 79 / COALESCE ( - + 71, + 62 ) + 75 + 80 * + - 53 + - 8 col0
----
-4174

query I rowsort
SELECT + 11 * 80 col1
----
880

onlyif mysql # aggregate syntax: 
query II rowsort label-3580
SELECT + 77 + - 68 * + 84 + - 94 * MIN( - 89 ) AS col1, + COUNT( * )
----
2731
1

skipif mysql # not compatible
query II rowsort label-3580
SELECT + 77 + - 68 * + 84 + - 94 * MIN ( - 89 ) AS col1, + COUNT ( * )
----
2731
1

query I rowsort
SELECT ALL + 72 * + + 78
----
5616

query I rowsort
SELECT DISTINCT + 61 * 1 * - - 30 + 76 * + 66 + 33 AS col0
----
6879

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + 95 + NULLIF ( - - COUNT( DISTINCT - ( - 38 ) ), 83 + + + 32 ) * - 31 + + - 33
----
31

skipif mysql # not compatible
query I rowsort label-3583
SELECT + 95 + NULLIF ( - - COUNT ( DISTINCT - ( - 38 ) ), 83 + + + 32 ) * - 31 + + - 33
----
31

query I rowsort
SELECT + 1 * 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - SUM( ALL - - 54 ) + - 52 * + 98
----
-5150

skipif mysql # not compatible
query I rowsort label-3585
SELECT - SUM ( ALL - - 54 ) + - 52 * + 98
----
-5150

query I rowsort
SELECT + NULLIF ( + + 35, 16 ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT - 53 + + - COALESCE ( 3, + 96 * + CAST( NULL AS SIGNED ) + 94 + - 24 * 56 - - 93 * 18 * 87 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-3587
SELECT - 53 + + - COALESCE ( 3, + 96 * + CAST ( NULL AS INTEGER ) + 94 + - 24 * 56 - - 93 * 18 * 87 ) AS col0
----
-56

query I rowsort
SELECT - 71 * - - 79 AS col0
----
-5609

onlyif mysql # DIV for integer division: 
query I rowsort label-3589
SELECT DISTINCT - 53 DIV - - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT - 53 / - - 58 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3590
SELECT + COUNT( * ) * - + 18 DIV + - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3590
SELECT + COUNT ( * ) * - + 18 / + - 61 AS col2
----
0

query I rowsort
SELECT ALL NULLIF ( + 79, + 92 - - - ( - 92 ) )
----
79

query I rowsort
SELECT DISTINCT + 71 * 97 AS col1
----
6887

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT - CASE + - 16 WHEN COUNT( * ) THEN + - 96 + + 18 END + - - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT - CASE + - 16 WHEN COUNT ( * ) THEN + - 96 + + 18 END + - - 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT - ( + 64 ) * + 9 * + COUNT( * ) + 59
----
-517

skipif mysql # not compatible
query I rowsort label-3594
SELECT - ( + 64 ) * + 9 * + COUNT ( * ) + 59
----
-517

query II rowsort
SELECT 85, 68 * + 56 AS col2
----
85
3808

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT ALL COUNT( * ), 10 AS col2
----
1
10

skipif mysql # not compatible
query II rowsort label-3596
SELECT ALL COUNT ( * ), 10 AS col2
----
1
10

query II rowsort
SELECT 93 AS col1, 38 AS col1
----
93
38

query II rowsort
SELECT 28 col2, + 83 AS col0
----
28
83

query I rowsort
SELECT + ( + 32 ) + + 61 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT - 54 + - COUNT( * ) + - - NULLIF ( + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE + 1 END, + 52 ) * + 1 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - 54 + - COUNT ( * ) + - - NULLIF ( + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE + 1 END, + 52 ) * + 1 AS col0
----
-54

query I rowsort
SELECT ALL + 91 + - 55 + 38 * + 82
----
3152

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT ALL - 36 + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL - 36 + COUNT ( * )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT ALL 92 * ( + 40 ) DIV - + 38 col2
----
-96

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL 92 * ( + 40 ) / - + 38 col2
----
-96

query I rowsort
SELECT DISTINCT - COALESCE ( 48, 38, - 31 ) col1
----
-48

query I rowsort
SELECT ALL + - 11 + - - 44 - 21 * - 27
----
600

query I rowsort
SELECT - - 39 + - - 5
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT - CASE 0 WHEN + CAST( NULL AS SIGNED ) THEN 82 * - + COUNT( * ) ELSE + 3 END * - 7 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-3607
SELECT - CASE 0 WHEN + CAST ( NULL AS INTEGER ) THEN 82 * - + COUNT ( * ) ELSE + 3 END * - 7 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT - - CAST( - 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-3608
SELECT - - CAST ( - 92 AS INTEGER )
----
-92

query I rowsort
SELECT - 81 + - - 88
----
7

query I rowsort
SELECT ALL - 84 * 61
----
-5124

query II rowsort
SELECT + 54 AS col1, 96
----
54
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT - ( 8 ) DIV - 35 + 3 + + 43
----
46

skipif mysql # not compatible
query I rowsort label-3612
SELECT - ( 8 ) / - 35 + 3 + + 43
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT - - MAX( ALL - ( + 60 ) ) * 75 - + - COUNT( * ) AS col0
----
-4499

skipif mysql # not compatible
query I rowsort label-3613
SELECT - - MAX ( ALL - ( + 60 ) ) * 75 - + - COUNT ( * ) AS col0
----
-4499

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL - - 56 * + 39 * - 38 + + SUM( DISTINCT + 58 ) AS col0
----
-82934

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - - 56 * + 39 * - 38 + + SUM ( DISTINCT + 58 ) AS col0
----
-82934

onlyif mysql # aggregate syntax: 
query II rowsort label-3615
SELECT ALL + 11, COUNT( * ) col0
----
11
1

skipif mysql # not compatible
query II rowsort label-3615
SELECT ALL + 11, COUNT ( * ) col0
----
11
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3616
SELECT 77, + CASE COALESCE ( - - COUNT( * ), 46 ) WHEN + + 14 THEN 85 ELSE NULL END AS col1
----
77
NULL

skipif mysql # not compatible
query II rowsort label-3616
SELECT 77, + CASE COALESCE ( - - COUNT ( * ), 46 ) WHEN + + 14 THEN 85 ELSE NULL END AS col1
----
77
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT ALL - 95 DIV - 84 - + 79 DIV + + 40
----
0

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL - 95 / - 84 - + 79 / + + 40
----
0

query II rowsort
SELECT 83 AS col1, + 68
----
83
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3619
SELECT 20, 64 - - CASE WHEN + COUNT( * ) NOT BETWEEN NULL AND + + 60 THEN 12 ELSE NULL END AS col2
----
20
NULL

skipif mysql # not compatible
query II rowsort label-3619
SELECT 20, 64 - - CASE WHEN + COUNT ( * ) NOT BETWEEN NULL AND + + 60 THEN 12 ELSE NULL END AS col2
----
20
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3620
SELECT + - COUNT( * ), - COUNT( * ) AS col2, ( 9 ) AS col2
----
-1
-1
9

skipif mysql # not compatible
query III rowsort label-3620
SELECT + - COUNT ( * ), - COUNT ( * ) AS col2, ( 9 ) AS col2
----
-1
-1
9

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3621
SELECT ( - 49 ) AS col1, + CAST( NULL AS DECIMAL )
----
-49
NULL

skipif mysql # not compatible
query II rowsort label-3621
SELECT ( - 49 ) AS col1, + CAST ( NULL AS REAL )
----
-49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3622
SELECT + ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3622
SELECT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3623
SELECT ( - 39 ) AS col0, + 1 * + + CAST( COUNT( * ) AS SIGNED )
----
-39
1

skipif mysql # not compatible
query II rowsort label-3623
SELECT ( - 39 ) AS col0, + 1 * + + CAST ( COUNT ( * ) AS INTEGER )
----
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3624
SELECT + CAST( - + MAX( DISTINCT + 37 ) AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-3624
SELECT + CAST ( - + MAX ( DISTINCT + 37 ) AS INTEGER )
----
-37

query I rowsort
SELECT ALL 36 * + + ( + 19 )
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT 30 * + COUNT( * ) - + 68 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3626
SELECT 30 * + COUNT ( * ) - + 68 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3627
SELECT ALL 53 * + 70 AS col2, COALESCE ( COUNT( * ), + 21 ) - + 62
----
3710
-61

skipif mysql # not compatible
query II rowsort label-3627
SELECT ALL 53 * + 70 AS col2, COALESCE ( COUNT ( * ), + 21 ) - + 62
----
3710
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT ALL COUNT( * ) * + - 92 * + COUNT( * ), CASE + MIN( ALL 81 ) WHEN + 75 * - - 52 + + + 17 THEN + ( - 81 ) END - COUNT( 94 ) - 60 col0
----
-92
NULL

skipif mysql # not compatible
query II rowsort label-3628
SELECT ALL COUNT ( * ) * + - 92 * + COUNT ( * ), CASE + MIN ( ALL 81 ) WHEN + 75 * - - 52 + + + 17 THEN + ( - 81 ) END - COUNT ( 94 ) - 60 col0
----
-92
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT + 11 DIV - + 85
----
0

skipif mysql # not compatible
query I rowsort label-3629
SELECT + 11 / - + 85
----
0

query I rowsort
SELECT + 58 + + 23
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3631
SELECT + 75 / + 25 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3631
SELECT + 75 / + 25 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT - MIN( DISTINCT 22 ) + - 8
----
-30

skipif mysql # not compatible
query I rowsort label-3632
SELECT - MIN ( DISTINCT 22 ) + - 8
----
-30

query I rowsort
SELECT DISTINCT 75 * - 26 + + 45 AS col2
----
-1905

onlyif mysql # aggregate syntax: 
query II rowsort label-3634
SELECT ALL MAX( + 89 ) AS col1, - 43 * 99
----
89
-4257

skipif mysql # not compatible
query II rowsort label-3634
SELECT ALL MAX ( + 89 ) AS col1, - 43 * 99
----
89
-4257

query I rowsort
SELECT - 57 * + + 31 AS col0
----
-1767

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT ALL 50 * - 29 + 57 * - NULLIF ( - COUNT( * ), + 46 )
----
-1393

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL 50 * - 29 + 57 * - NULLIF ( - COUNT ( * ), + 46 )
----
-1393

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3637
SELECT ALL + 95 + + 72 - - + CASE - + 68 WHEN - + 58 THEN AVG ( DISTINCT + 55 ) WHEN + - 25 * 73 + - 55 * - + 3 THEN NULL END * - + 94 / 38 / ( CASE + 80 WHEN 4 + - CAST( + 84 AS DECIMAL ) THEN - 70 END * - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL + 95 + + 72 - - + CASE - + 68 WHEN - + 58 THEN AVG ( DISTINCT + 55 ) WHEN + - 25 * 73 + - 55 * - + 3 THEN NULL END * - + 94 / 38 / ( CASE + 80 WHEN 4 + - CAST ( + 84 AS REAL ) THEN - 70 END * - 6 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT + 30 * + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-3638
SELECT + 30 * + COUNT ( * )
----
30

query I rowsort
SELECT - + 85 + 68 AS col0
----
-17

query I rowsort
SELECT ALL + 79 + + 57 + + 38 AS col0
----
174

query I rowsort
SELECT NULLIF ( + 51, 10 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL COUNT( * ) * + - 8 + 51 + + COUNT( * ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL COUNT ( * ) * + - 8 + 51 + + COUNT ( * ) AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3643
SELECT DISTINCT + + 33 + + CAST( NULL AS SIGNED ) + - 63 * 9 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT + + 33 + + CAST ( NULL AS INTEGER ) + - 63 * 9 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 24 + CASE 96 WHEN + - 21 THEN - ( - 86 ) + + 42 ELSE NULL END, ( 74 ) AS col2
----
NULL
74

query I rowsort
SELECT ALL - + 20 * + 1 - 79
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3646
SELECT + COUNT( * ) - - 96, 91 AS col0
----
97
91

skipif mysql # not compatible
query II rowsort label-3646
SELECT + COUNT ( * ) - - 96, 91 AS col0
----
97
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3647
SELECT ALL 15 - COALESCE ( - + 46, - COUNT( - + CAST( NULL AS DECIMAL ) ), + 49 - + 6 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL 15 - COALESCE ( - + 46, - COUNT ( - + CAST ( NULL AS REAL ) ), + 49 - + 6 ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3648
SELECT ALL - 56 - - 91 + COUNT( * ) DIV - 2 + - 7 * + 17 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - 56 - - 91 + COUNT ( * ) / - 2 + - 7 * + 17 AS col1
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3649
SELECT ( - CAST( NULL AS SIGNED ) ) col2, + 73 + - 92
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-3649
SELECT ( - CAST ( NULL AS INTEGER ) ) col2, + 73 + - 92
----
NULL
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT - COUNT( * ) + - 14 AS col2, + 37 AS col2
----
-15
37

skipif mysql # not compatible
query II rowsort label-3650
SELECT - COUNT ( * ) + - 14 AS col2, + 37 AS col2
----
-15
37

query I rowsort
SELECT 16 * - - 26 * + 60 AS col0
----
24960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3652
SELECT ALL - COUNT( * ) DIV MIN( - 97 )
----
0

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - COUNT ( * ) / MIN ( - 97 )
----
0

query I rowsort
SELECT + 95 - - 81
----
176

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3654
SELECT - 32 DIV - + CAST( 77 AS SIGNED ) * ( + 75 ) * 83 + - - 33 + + - 12 * - - NULLIF ( 45, + 27 * 86 )
----
-507

skipif mysql # not compatible
query I rowsort label-3654
SELECT - 32 / - + CAST ( 77 AS INTEGER ) * ( + 75 ) * 83 + - - 33 + + - 12 * - - NULLIF ( 45, + 27 * 86 )
----
-507

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT + - CASE - + 1 WHEN + - COUNT( * ) * - 55 + 94 * + 11 THEN - - 61 + - 40 + 12 * MAX( DISTINCT - 84 ) * - 96 WHEN 12 THEN + COUNT( * ) ELSE 42 END
----
-42

skipif mysql # not compatible
query I rowsort label-3655
SELECT + - CASE - + 1 WHEN + - COUNT ( * ) * - 55 + 94 * + 11 THEN - - 61 + - 40 + 12 * MAX ( DISTINCT - 84 ) * - 96 WHEN 12 THEN + COUNT ( * ) ELSE 42 END
----
-42

query I rowsort
SELECT 35 * + - 62 * - 68 AS col1
----
147560

query I rowsort
SELECT 38 + - 63 + + 51
----
26

query I rowsort
SELECT DISTINCT - ( - 68 )
----
68

query I rowsort
SELECT ALL 12 * + 50 AS col0
----
600

query I rowsort
SELECT 54 + - 20 + 82 - 34 AS col0
----
82

query I rowsort
SELECT ALL 88 + 55
----
143

query I rowsort
SELECT DISTINCT - 81 * + - 71
----
5751

query I rowsort
SELECT DISTINCT + 26 + - 72 * - ( - NULLIF ( + + 44, - 24 - - - 84 + 61 ) ) AS col1
----
-3142

onlyif mysql # aggregate syntax: 
query II rowsort label-3664
SELECT 23, MAX( DISTINCT - - 0 ) AS col1
----
23
0

skipif mysql # not compatible
query II rowsort label-3664
SELECT 23, MAX ( DISTINCT - - 0 ) AS col1
----
23
0

query II rowsort
SELECT + 28 col1, + 36 AS col2
----
28
36

query I rowsort
SELECT ALL + 8 + + + 50 AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3667
SELECT + 82 AS col1, + 17 * + COUNT( * ) AS col0
----
82
17

skipif mysql # not compatible
query II rowsort label-3667
SELECT + 82 AS col1, + 17 * + COUNT ( * ) AS col0
----
82
17

query I rowsort
SELECT 63 * + 87 AS col1
----
5481

query I rowsort
SELECT 98 + - 1 + 53 + - + 93
----
57

query I rowsort
SELECT ALL 46 + 61 col0
----
107

query II rowsort
SELECT + 39 AS col2, 79 * + + ( + 0 ) col0
----
39
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL + 9 + + 68 + - CASE - - MIN( - 51 ) WHEN - COUNT( * ) THEN + + 55 ELSE NULL END * - ( + COUNT( * ) ) * 74 + 98 + 60 - + + 7 * 14 * + 90 * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + 9 + + 68 + - CASE - - MIN ( - 51 ) WHEN - COUNT ( * ) THEN + + 55 ELSE NULL END * - ( + COUNT ( * ) ) * 74 + 98 + 60 - + + 7 * 14 * + 90 * + 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3673
SELECT DISTINCT 81 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT 81 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 98 + 32 AS col2
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3675
SELECT DISTINCT 2 AS col2, + ( - - ( - COUNT( * ) ) ) - + NULLIF ( + 71, - 77 DIV - + COALESCE ( + + 51, - - 98 ) - - 22 ) DIV - ( + COUNT( * ) )
----
2
70

skipif mysql # not compatible
query II rowsort label-3675
SELECT DISTINCT 2 AS col2, + ( - - ( - COUNT ( * ) ) ) - + NULLIF ( + 71, - 77 / - + COALESCE ( + + 51, - - 98 ) - - 22 ) / - ( + COUNT ( * ) )
----
2
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT COUNT( * ) + + ( + 8 ) * - 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT COUNT ( * ) + + ( + 8 ) * - 0 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL COUNT( DISTINCT 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL COUNT ( DISTINCT 69 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3678
SELECT COUNT( * ) + COALESCE ( 70, + - MAX( ALL - + 21 ) * - 6 * + - 14 + + 27 + + 62 ) * 43 * - 55 AS col1, - 90 + 36 + - 19 AS col0
----
-165549
-73

skipif mysql # not compatible
query II rowsort label-3678
SELECT COUNT ( * ) + COALESCE ( 70, + - MAX ( ALL - + 21 ) * - 6 * + - 14 + + 27 + + 62 ) * 43 * - 55 AS col1, - 90 + 36 + - 19 AS col0
----
-165549
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3679
SELECT - MAX( ALL - 37 ) * + + COUNT( + 72 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT - MAX ( ALL - 37 ) * + + COUNT ( + 72 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3680
SELECT 21 - + CAST( ( + + CASE - + 95 WHEN - - COUNT( * ) THEN + 7 WHEN - 81 * + 34 + - - 52 - + - 28 THEN 0 ELSE 16 END ) AS SIGNED ) - - NULLIF ( + 66 + MAX( + 51 ), + 41 ) AS col1
----
122

skipif mysql # not compatible
query I rowsort label-3680
SELECT 21 - + CAST ( ( + + CASE - + 95 WHEN - - COUNT ( * ) THEN + 7 WHEN - 81 * + 34 + - - 52 - + - 28 THEN 0 ELSE 16 END ) AS INTEGER ) - - NULLIF ( + 66 + MAX ( + 51 ), + 41 ) AS col1
----
122

query I rowsort
SELECT DISTINCT - 0 - + - 53 + + + 42
----
95

query II rowsort
SELECT + 66, 27 AS col2
----
66
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT 69 * + 8 + - SUM( + 87 )
----
465

skipif mysql # not compatible
query I rowsort label-3683
SELECT 69 * + 8 + - SUM ( + 87 )
----
465

query I rowsort
SELECT ALL - 56 * + 69 - + + 37 AS col2
----
-3901

query I rowsort
SELECT - 30 + + 47 * - 54 * - + 85 AS col0
----
215700

onlyif mysql # aggregate syntax: 
query II rowsort label-3686
SELECT ALL 12 AS col1, NULLIF ( + COUNT( * ), 69 ) + - 73 AS col2
----
12
-72

skipif mysql # not compatible
query II rowsort label-3686
SELECT ALL 12 AS col1, NULLIF ( + COUNT ( * ), 69 ) + - 73 AS col2
----
12
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT ALL 4 DIV - 26 + + 11
----
11

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL 4 / - 26 + + 11
----
11

query I rowsort
SELECT ALL - + 93 * + NULLIF ( - 64, - 26 * + 44 + - + 92 ) + 38 + - - NULLIF ( + + 74, - - 37 + - - 88 * - 59 * - 44 + + 15 ) * + 9 * 35 AS col2
----
29300

query II rowsort
SELECT - - 38 AS col1, 90 + + ( + 49 ) AS col0
----
38
139

query II rowsort
SELECT - + 26 AS col0, 57 * + - 32 AS col2
----
-26
-1824

query I rowsort
SELECT 69 + + - 34 AS col2
----
35

query II rowsort
SELECT - + 85 AS col0, - 4 AS col0
----
-85
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT DISTINCT COUNT( * ) * - - 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT COUNT ( * ) * - - 39 AS col1
----
39

query I rowsort
SELECT 18 * + 55 + + 65
----
1055

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT COUNT( DISTINCT - 92 ) + - - 23 + + + 38
----
62

skipif mysql # not compatible
query I rowsort label-3695
SELECT COUNT ( DISTINCT - 92 ) + - - 23 + + + 38
----
62

query I rowsort
SELECT + ( 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT ALL 12 * - 70 + COUNT( * ) + - 67 * 63 + - - 34 * - + 81
----
-7814

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL 12 * - 70 + COUNT ( * ) + - 67 * 63 + - - 34 * - + 81
----
-7814

query I rowsort
SELECT ALL COALESCE ( + 32, - - 86, + 81 ) * - + 97 * + 16
----
-49664

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT ALL COUNT( * ) * + ( + + ( - 7 ) ) + - 60 + 85 + - - 13 AS col2, 65 + + ( + + 12 )
----
31
77

skipif mysql # not compatible
query II rowsort label-3699
SELECT ALL COUNT ( * ) * + ( + + ( - 7 ) ) + - 60 + 85 + - - 13 AS col2, 65 + + ( + + 12 )
----
31
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT DISTINCT 24 * SUM( DISTINCT - 44 ) + - 75
----
-1131

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT 24 * SUM ( DISTINCT - 44 ) + - 75
----
-1131

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT MIN( + 13 ) * + 19 AS col0
----
247

skipif mysql # not compatible
query I rowsort label-3701
SELECT MIN ( + 13 ) * + 19 AS col0
----
247

query I rowsort
SELECT DISTINCT + 95 * + COALESCE ( - 71, - 52 * + + 46 )
----
-6745

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT + 22 + 87 + COUNT( * ) * + 50
----
159

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + 22 + 87 + COUNT ( * ) * + 50
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT - COUNT( * ) + 39 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT - COUNT ( * ) + 39 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT - 50 * 40 * + MIN( - 25 ) AS col2
----
50000

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT - 50 * 40 * + MIN ( - 25 ) AS col2
----
50000

query II rowsort
SELECT ALL + 32 * - - 43 AS col0, + 50 + - 12
----
1376
38

query I rowsort
SELECT ALL - 78 - + NULLIF ( + + 81, 68 )
----
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-3708
SELECT - - ( COUNT( * ) ), 85 * - 16 + + ( + - NULLIF ( - 65, + + 23 ) ) + - 87 AS col1
----
1
-1382

skipif mysql # not compatible
query II rowsort label-3708
SELECT - - ( COUNT ( * ) ), 85 * - 16 + + ( + - NULLIF ( - 65, + + 23 ) ) + - 87 AS col1
----
1
-1382

query I rowsort
SELECT DISTINCT + NULLIF ( + 84, + + 78 * + ( + - 9 ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT DISTINCT - 69 - - + COUNT( * ) + + 41 * - CASE - - 16 WHEN + 4 THEN - 30 END - - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - 69 - - + COUNT ( * ) + + 41 * - CASE - - 16 WHEN + 4 THEN - 30 END - - 4
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3711
SELECT ALL COUNT( * ) * + 74, 49 AS col0
----
74
49

skipif mysql # not compatible
query II rowsort label-3711
SELECT ALL COUNT ( * ) * + 74, 49 AS col0
----
74
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT + 19 + - - CASE - + COALESCE ( 99, - COUNT( * ) ) WHEN + 4 THEN + - 80 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT + 19 + - - CASE - + COALESCE ( 99, - COUNT ( * ) ) WHEN + 4 THEN + - 80 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL - COUNT( - 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL - COUNT ( - 52 )
----
-1

query I rowsort
SELECT + + 50 * - 28
----
-1400

query I rowsort
SELECT ALL + 44 * - 57 col1
----
-2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3716
SELECT - + CAST( NULL AS SIGNED ) - - - 62 - 93 * + COUNT( + 78 ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3716
SELECT - + CAST ( NULL AS INTEGER ) - - - 62 - 93 * + COUNT ( + 78 ) * + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3717
SELECT - + COALESCE ( - 27, + - SUM( ALL - + ( + 42 ) ) + 76 * - 33 DIV + AVG ( - - 24 ), + 56 )
----
27

skipif mysql # not compatible
query I rowsort label-3717
SELECT - + COALESCE ( - 27, + - SUM ( ALL - + ( + 42 ) ) + 76 * - 33 / + AVG ( - - 24 ), + 56 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT ALL MIN( + - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL MIN ( + - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + ( - COUNT( * ) ) * + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3719
SELECT + ( - COUNT ( * ) ) * + + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT + 21 * - 32 * - COUNT( * ) AS col2
----
672

skipif mysql # not compatible
query I rowsort label-3720
SELECT + 21 * - 32 * - COUNT ( * ) AS col2
----
672

query I rowsort
SELECT ALL 61 + ( - - 17 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3722
SELECT + COUNT( * ) - + AVG ( ALL 31 ) * - MAX( - CASE - ( + 68 ) WHEN + 98 * - 59 THEN 49 END ) * + AVG ( ALL + 92 ), - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3722
SELECT + COUNT ( * ) - + AVG ( ALL 31 ) * - MAX ( - CASE - ( + 68 ) WHEN + 98 * - 59 THEN 49 END ) * + AVG ( ALL + 92 ), - COUNT ( * ) AS col1
----
NULL
-1

query I rowsort
SELECT DISTINCT ( 43 ) col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL 74 + - COUNT( - - 14 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL 74 + - COUNT ( - - 14 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3725
SELECT + - 23 - + - 22 * + ( - - COUNT( * ) ), 35 AS col1
----
-1
35

skipif mysql # not compatible
query II rowsort label-3725
SELECT + - 23 - + - 22 * + ( - - COUNT ( * ) ), 35 AS col1
----
-1
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT DISTINCT 30 DIV + 10
----
3

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT 30 / + 10
----
3

query I rowsort
SELECT DISTINCT 42 + + 75 AS col0
----
117

query I rowsort
SELECT ( - 21 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT ( - + COUNT( ALL 8 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3729
SELECT ( - + COUNT ( ALL 8 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT + 83 + - 14 + + COUNT( * ) + + 38 * 25 AS col1
----
1020

skipif mysql # not compatible
query I rowsort label-3730
SELECT + 83 + - 14 + + COUNT ( * ) + + 38 * 25 AS col1
----
1020

onlyif mysql # DIV for integer division: 
query I rowsort label-3731
SELECT ( + + COALESCE ( + - 21, + 2 ) ) DIV - 84 - + 28 + + - 81 AS col2
----
-109

skipif mysql # not compatible
query I rowsort label-3731
SELECT ( + + COALESCE ( + - 21, + 2 ) ) / - 84 - + 28 + + - 81 AS col2
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ( + NULLIF ( + + 81, + 66 + + COUNT( * ) ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-3732
SELECT ( + NULLIF ( + + 81, + 66 + + COUNT ( * ) ) ) AS col0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT + 95 * - 32 + + + 79 DIV 82 + + 66
----
-2974

skipif mysql # not compatible
query I rowsort label-3733
SELECT + 95 * - 32 + + + 79 / 82 + + 66
----
-2974

query I rowsort
SELECT ALL 70 * + 56 AS col1
----
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT + ( - - ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3735
SELECT + ( - - ( - COUNT ( * ) ) )
----
-1

query II rowsort
SELECT DISTINCT + 40 AS col2, + 20 AS col2
----
40
20

query II rowsort
SELECT ALL 32 * 27 + + + 96, 45 AS col1
----
960
45

query I rowsort
SELECT + ( - - 82 ) + - - 45
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3739
SELECT 9 * + MIN( ALL - + ( - 75 ) ) * MIN( - ( + 95 ) ) * ( + CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col2, - 17
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-3739
SELECT 9 * + MIN ( ALL - + ( - 75 ) ) * MIN ( - ( + 95 ) ) * ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col2, - 17
----
NULL
-17

query I rowsort
SELECT DISTINCT 69 * - 3 AS col1
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT - 57 + 48 * - ( - COUNT( * ) ) + + 24
----
15

skipif mysql # not compatible
query I rowsort label-3741
SELECT - 57 + 48 * - ( - COUNT ( * ) ) + + 24
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - 51 + + - COALESCE ( - 51, + + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT - 51 + + - COALESCE ( - 51, + + COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT + 63 * COUNT( * ) * - - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3743
SELECT + 63 * COUNT ( * ) * - - COUNT ( * )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3744
SELECT NULLIF ( COUNT( ALL - + CAST( NULL AS SIGNED ) ), - + 33 )
----
0

skipif mysql # not compatible
query I rowsort label-3744
SELECT NULLIF ( COUNT ( ALL - + CAST ( NULL AS INTEGER ) ), - + 33 )
----
0

query I rowsort
SELECT - 37 + 67 + - - 94 + + 14 + - 82 AS col2
----
56

query I rowsort
SELECT ALL - - 14 * + 44
----
616

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT ALL - + 97 DIV - + 44 col1
----
2

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL - + 97 / - + 44 col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT - - CAST( NULL AS SIGNED ) + - 21 + - + 23 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT - - CAST ( NULL AS INTEGER ) + - 21 + - + 23 * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL CASE - - 50 WHEN + COALESCE ( + 7, 57 ) THEN NULL ELSE 56 END
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT - - 85 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3750
SELECT - - 85 / - 90 AS col2
----
0

query I rowsort
SELECT - - ( ( 94 ) ) AS col1
----
94

query I rowsort
SELECT - 78 + 57
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT + COALESCE ( - 14, COUNT( * ) + - MAX( ( + 75 ) ) ) - 70 * 52 AS col1
----
-3654

skipif mysql # not compatible
query I rowsort label-3753
SELECT + COALESCE ( - 14, COUNT ( * ) + - MAX ( ( + 75 ) ) ) - 70 * 52 AS col1
----
-3654

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3754
SELECT DISTINCT + 66 + 18 + COUNT( * ) + - + 47 * - + 88 * - CASE ( - - 73 ) WHEN + CASE - NULLIF ( + 14, - - 47 * + 11 ) WHEN 44 * - COALESCE ( NULLIF ( - 53, 34 * - 93 ), - 68 / + 48 + 98 / CASE MAX( DISTINCT 42 ) + + COUNT( * ) WHEN 6 / 15 THEN 82 WHEN - 64 + COUNT( + CAST( NULL AS DECIMAL ) ) THEN + 69 * COUNT( * ) ELSE NULL END ) THEN NULL ELSE + 41 * + 83 END + - CASE 36 WHEN 14 + 78 * 84 THEN + CASE 50 WHEN - COUNT( 54 ) * - 0 THEN NULL ELSE 68 END * + 48 + - CASE - COUNT( * ) + - 61 WHEN - 12 THEN ( 33 ) ELSE NULL END WHEN 25 THEN + 56 ELSE 91 / + COUNT( * ) END * - ( COUNT( * ) + - 71 ) THEN - CAST( 36 AS DECIMAL ) * 96 + + 62 WHEN + 39 + - 2 * + 31 THEN NULL WHEN 27 THEN NULL ELSE NULL END * 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT + 66 + 18 + COUNT ( * ) + - + 47 * - + 88 * - CASE ( - - 73 ) WHEN + CASE - NULLIF ( + 14, - - 47 * + 11 ) WHEN 44 * - COALESCE ( NULLIF ( - 53, 34 * - 93 ), - 68 / + 48 + 98 / CASE MAX ( DISTINCT 42 ) + + COUNT ( * ) WHEN 6 / 15 THEN 82 WHEN - 64 + COUNT ( + CAST ( NULL AS REAL ) ) THEN + 69 * COUNT ( * ) ELSE NULL END ) THEN NULL ELSE + 41 * + 83 END + - CASE 36 WHEN 14 + 78 * 84 THEN + CASE 50 WHEN - COUNT ( 54 ) * - 0 THEN NULL ELSE 68 END * + 48 + - CASE - COUNT ( * ) + - 61 WHEN - 12 THEN ( 33 ) ELSE NULL END WHEN 25 THEN + 56 ELSE 91 / + COUNT ( * ) END * - ( COUNT ( * ) + - 71 ) THEN - CAST ( 36 AS REAL ) * 96 + + 62 WHEN + 39 + - 2 * + 31 THEN NULL WHEN 27 THEN NULL ELSE NULL END * 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - - 27 + - 75 AS col0
----
-48

query I rowsort
SELECT DISTINCT ( + - 32 ) AS col0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3758
SELECT DISTINCT 92 AS col2, CAST( + 59 AS SIGNED ) AS col1
----
92
59

skipif mysql # not compatible
query II rowsort label-3758
SELECT DISTINCT 92 AS col2, CAST ( + 59 AS INTEGER ) AS col1
----
92
59

query I rowsort
SELECT ALL - ( 42 ) * + 68 + - + 86
----
-2942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT + - 78 + + + CAST( - + 50 AS SIGNED ) AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-3760
SELECT + - 78 + + + CAST ( - + 50 AS INTEGER ) AS col2
----
-128

query I rowsort
SELECT ALL - 72 + - ( + 22 )
----
-94

query II rowsort
SELECT 26 AS col1, + 18 * - + 25
----
26
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - ( + + MAX( ALL 22 ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3763
SELECT - ( + + MAX ( ALL 22 ) ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT - MIN( ALL + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-3764
SELECT - MIN ( ALL + 5 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3765
SELECT + CASE 34 WHEN COALESCE ( AVG ( - CAST( - 76 AS DECIMAL ) ), + COUNT( * ) * + - 60 ) / + 65 THEN - NULLIF ( + 18, - COUNT( * ) ) WHEN + 36 THEN + 8 END + + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT + CASE 34 WHEN COALESCE ( AVG ( - CAST ( - 76 AS REAL ) ), + COUNT ( * ) * + - 60 ) / + 65 THEN - NULLIF ( + 18, - COUNT ( * ) ) WHEN + 36 THEN + 8 END + + 83
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3766
SELECT - 59 DIV - COUNT( + CAST( - 88 AS SIGNED ) ) col2
----
59

skipif mysql # not compatible
query I rowsort label-3766
SELECT - 59 / - COUNT ( + CAST ( - 88 AS INTEGER ) ) col2
----
59

query I rowsort
SELECT + 65 + - 35
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3768
SELECT 47 AS col0, - 66 * - COUNT( * ) AS col1
----
47
66

skipif mysql # not compatible
query II rowsort label-3768
SELECT 47 AS col0, - 66 * - COUNT ( * ) AS col1
----
47
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT ALL 59 DIV + 41 - - 2
----
3

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL 59 / + 41 - - 2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3770
SELECT + 29 DIV - 9
----
-3

skipif mysql # not compatible
query I rowsort label-3770
SELECT + 29 / - 9
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3771
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + 63 + 39 + - - 41 DIV NULLIF ( COUNT( * ), + - NULLIF ( - 93, - 55 ) + - 45 )
----
NULL
143

skipif mysql # not compatible
query II rowsort label-3771
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + 63 + 39 + - - 41 / NULLIF ( COUNT ( * ), + - NULLIF ( - 93, - 55 ) + - 45 )
----
NULL
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3772
SELECT CASE + 14 WHEN + ( + + 69 ) * + 31 THEN + CAST( NULL AS SIGNED ) WHEN - 44 THEN NULL ELSE - COUNT( * ) + - COALESCE ( - - 77, + 2, - 65 ) * - 4 * 76 + + 51 END * - CASE - 34 WHEN 44 + + 61 THEN NULL WHEN + 71 THEN - MAX( DISTINCT 78 ) - 38 ELSE NULL END / + 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT CASE + 14 WHEN + ( + + 69 ) * + 31 THEN + CAST ( NULL AS INTEGER ) WHEN - 44 THEN NULL ELSE - COUNT ( * ) + - COALESCE ( - - 77, + 2, - 65 ) * - 4 * 76 + + 51 END * - CASE - 34 WHEN 44 + + 61 THEN NULL WHEN + 71 THEN - MAX ( DISTINCT 78 ) - 38 ELSE NULL END / + 3 col2
----
NULL

query I rowsort
SELECT ALL 76 * + - 88
----
-6688

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL 87 / + COUNT( * ) * + - 88 * + + CASE - MIN( + 27 ) WHEN 71 THEN + 97 * - 94 + + 60 + + + 5 - + 92 + + COUNT( * ) - - 75 WHEN - - ( NULLIF ( 62, 99 ) ) THEN NULL WHEN 81 + COUNT( * ) THEN NULL WHEN 34 THEN NULL ELSE NULL END * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL 87 / + COUNT ( * ) * + - 88 * + + CASE - MIN ( + 27 ) WHEN 71 THEN + 97 * - 94 + + 60 + + + 5 - + 92 + + COUNT ( * ) - - 75 WHEN - - ( NULLIF ( 62, 99 ) ) THEN NULL WHEN 81 + COUNT ( * ) THEN NULL WHEN 34 THEN NULL ELSE NULL END * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT COUNT( * ) * - 8 * + COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3775
SELECT COUNT ( * ) * - 8 * + COUNT ( * ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT ALL - 49 AS col2, COUNT( * ) + 24 + + COUNT( * ) - NULLIF ( - 41, - 97 ) AS col2
----
-49
67

skipif mysql # not compatible
query II rowsort label-3776
SELECT ALL - 49 AS col2, COUNT ( * ) + 24 + + COUNT ( * ) - NULLIF ( - 41, - 97 ) AS col2
----
-49
67

query II rowsort
SELECT 63, - 49 AS col2
----
63
-49

query II rowsort
SELECT + 46, + 53 col1
----
46
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT 4 * + NULLIF ( + ( + 58 ), - 78 ) * CASE - 78 WHEN - COUNT( * ) + - COALESCE ( + - 89, AVG ( ALL 75 ) * 41 + 77 - - 33 + + 4 + - 93 / - AVG ( DISTINCT 14 ) * + 80 ) - 54 * 44 THEN MAX( ALL - 49 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT 4 * + NULLIF ( + ( + 58 ), - 78 ) * CASE - 78 WHEN - COUNT ( * ) + - COALESCE ( + - 89, AVG ( ALL 75 ) * 41 + 77 - - 33 + + 4 + - 93 / - AVG ( DISTINCT 14 ) * + 80 ) - 54 * 44 THEN MAX ( ALL - 49 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3780
SELECT ALL - 78, CASE + 39 WHEN - - 4 + + - 26 + + 59 * - 96 + + - COUNT( * ) + + 63 * + 38 * + 28 * - - ( + MIN( - 89 ) ) / - 7 + + 14 + 41 THEN NULL ELSE - 56 + ( 68 ) * 42 END * - 2 AS col2
----
-78
-5600

skipif mysql # not compatible
query II rowsort label-3780
SELECT ALL - 78, CASE + 39 WHEN - - 4 + + - 26 + + 59 * - 96 + + - COUNT ( * ) + + 63 * + 38 * + 28 * - - ( + MIN ( - 89 ) ) / - 7 + + 14 + 41 THEN NULL ELSE - 56 + ( 68 ) * 42 END * - 2 AS col2
----
-78
-5600

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT + COUNT( * ) * + ( + + 55 ) + 86
----
141

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT + COUNT ( * ) * + ( + + 55 ) + 86
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT + 78 * + CAST( NULL AS SIGNED ) / + + 0 - + 95 * - + 48 - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT + 78 * + CAST ( NULL AS INTEGER ) / + + 0 - + 95 * - + 48 - 78 AS col2
----
NULL

query I rowsort
SELECT 98 * + + 2 + - 48 AS col2
----
148

query I rowsort
SELECT DISTINCT 66 * - CASE WHEN + 72 IS NULL THEN + 1 END col0
----
NULL

query I rowsort
SELECT ALL - CASE + + AVG ( ALL 76 ) WHEN 6 THEN NULL ELSE - 77 END AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3786
SELECT COUNT( * ) AS col0, - 5 + - 0 + + - 1 * + + ( + + 11 )
----
1
-16

skipif mysql # not compatible
query II rowsort label-3786
SELECT COUNT ( * ) AS col0, - 5 + - 0 + + - 1 * + + ( + + 11 )
----
1
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT NULLIF ( - ( - - COUNT( * ) ), - 97 + + CASE 10 WHEN + 63 THEN + + 93 ELSE - 16 END )
----
-1

skipif mysql # not compatible
query I rowsort label-3787
SELECT NULLIF ( - ( - - COUNT ( * ) ), - 97 + + CASE 10 WHEN + 63 THEN + + 93 ELSE - 16 END )
----
-1

query I rowsort
SELECT 78 * - 24
----
-1872

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT + 32 + - - 66 + - 67 DIV - 68 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3789
SELECT + 32 + - - 66 + - 67 / - 68 AS col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3790
SELECT + 90 * - + 54 + - 73 + COUNT( * ) - - MIN( + - 10 ) DIV 87
----
-4932

skipif mysql # not compatible
query I rowsort label-3790
SELECT + 90 * - + 54 + - 73 + COUNT ( * ) - - MIN ( + - 10 ) / 87
----
-4932

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT 57 AS col1, COUNT( * ) * 80 * 37 * + 13
----
57
38480

skipif mysql # not compatible
query II rowsort label-3791
SELECT 57 AS col1, COUNT ( * ) * 80 * 37 * + 13
----
57
38480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3792
SELECT ALL + 37 + + 22 + - - ( - - 82 ) + + CAST( MAX( ALL + 19 ) AS SIGNED ) * - - 26 + - + 62 * CAST( NULL AS SIGNED ) * COUNT( * ) * + - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + 37 + + 22 + - - ( - - 82 ) + + CAST ( MAX ( ALL + 19 ) AS INTEGER ) * - - 26 + - + 62 * CAST ( NULL AS INTEGER ) * COUNT ( * ) * + - 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3793
SELECT DISTINCT + 98 AS col0, - 40 * 38 DIV - - COUNT( * ) - - - 27 * - 79 AS col0
----
98
613

skipif mysql # not compatible
query II rowsort label-3793
SELECT DISTINCT + 98 AS col0, - 40 * 38 / - - COUNT ( * ) - - - 27 * - 79 AS col0
----
98
613

query I rowsort
SELECT DISTINCT - + 44 * + + 23
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT DISTINCT - ( - - 87 ) + + 99 + + COUNT( DISTINCT + ( + + 92 ) ) * - 83
----
-71

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT - ( - - 87 ) + + 99 + + COUNT ( DISTINCT + ( + + 92 ) ) * - 83
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3796
SELECT DISTINCT + + COUNT( * ) + - 56 + + CAST( NULL AS DECIMAL ) + COUNT( * ) * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT + + COUNT ( * ) + - 56 + + CAST ( NULL AS REAL ) + COUNT ( * ) * + 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3797
SELECT 26 + - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT 26 + - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + COUNT( * ) * COUNT( * ) + + 48 * + 13 - - - 21
----
604

skipif mysql # not compatible
query I rowsort label-3798
SELECT + COUNT ( * ) * COUNT ( * ) + + 48 * + 13 - - - 21
----
604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT DISTINCT - - 64 * + 96 * 51 * CAST( + - COALESCE ( + 66, - + 97 ) AS SIGNED )
----
-20680704

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT - - 64 * + 96 * 51 * CAST ( + - COALESCE ( + 66, - + 97 ) AS INTEGER )
----
-20680704

query I rowsort
SELECT ALL - 8 - + - 16 * + 85 + + + 4 AS col1
----
1356

query II rowsort
SELECT 82 * + 80 AS col1, 52
----
6560
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT 88 - 97 + + NULLIF ( - 73, + CAST( - 98 AS SIGNED ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3802
SELECT 88 - 97 + + NULLIF ( - 73, + CAST ( - 98 AS INTEGER ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3803
SELECT DISTINCT 35 * + - 32 DIV - COALESCE ( COUNT( * ), + 58 )
----
1120

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT 35 * + - 32 / - COALESCE ( COUNT ( * ), + 58 )
----
1120

query II rowsort
SELECT 7 * - - 99 AS col2, 86
----
693
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT NULLIF ( - 96, + + 96 + - 96 + - + 18 * CASE WHEN ( NULL ) IN ( - + COALESCE ( 32, 24, + ( - 31 ) + + - ( - - 27 ) + + - 75 ) ) THEN COUNT( * ) + 44 * 61 END ) * ( 37 ) + 74 * COUNT( * ) AS col1
----
-3478

skipif mysql # not compatible
query I rowsort label-3805
SELECT NULLIF ( - 96, + + 96 + - 96 + - + 18 * CASE WHEN ( NULL ) IN ( - + COALESCE ( 32, 24, + ( - 31 ) + + - ( - - 27 ) + + - 75 ) ) THEN COUNT ( * ) + 44 * 61 END ) * ( 37 ) + 74 * COUNT ( * ) AS col1
----
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL - SUM( + CASE - - 69 WHEN + 9 - - 83 THEN - 62 ELSE NULL END ) * 14 * + 37 + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL - SUM ( + CASE - - 69 WHEN + 9 - - 83 THEN - 62 ELSE NULL END ) * 14 * + 37 + 89
----
NULL

query I rowsort
SELECT ( 56 ) - 55
----
1

query I rowsort
SELECT 83 * - 55 - - 81 AS col1
----
-4484

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT 4 DIV 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3809
SELECT 4 / 14 AS col0
----
0

query I rowsort
SELECT 13 + + 4 + + + 98 AS col0
----
115

query I rowsort
SELECT - 38 * + NULLIF ( + - 65, 25 ) + + 65 + 7 + - + 24 + - 19
----
2499

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT DISTINCT - 90 DIV + 37 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT - 90 / + 37 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3813
SELECT - 38 * - 17 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT - 38 * - 17 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - - 22 )
----
-22

query II rowsort
SELECT + COALESCE ( + 72, - 34 ) + - 1 * + + 74, 62 AS col0
----
-2
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT + 21 + - - 6 + - + 74 + + - 35 * - 39 * - COUNT( * ) AS col2
----
-1412

skipif mysql # not compatible
query I rowsort label-3816
SELECT + 21 + - - 6 + - + 74 + + - 35 * - 39 * - COUNT ( * ) AS col2
----
-1412

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT DISTINCT COALESCE ( - - COUNT( * ), + COUNT( * ) + NULLIF ( - 51, + 39 ) * 74 * + 25 ) + 67 + - - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT COALESCE ( - - COUNT ( * ), + COUNT ( * ) + NULLIF ( - 51, + 39 ) * 74 * + 25 ) + 67 + - - COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL + 7 + - COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + 7 + - COUNT ( * ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3819
SELECT + CASE - 38 WHEN 18 THEN - + ( + - MIN( ALL 24 ) ) * + - 96 END AS col0, 32 + - - 3 col1
----
NULL
35

skipif mysql # not compatible
query II rowsort label-3819
SELECT + CASE - 38 WHEN 18 THEN - + ( + - MIN ( ALL 24 ) ) * + - 96 END AS col0, 32 + - - 3 col1
----
NULL
35

query I rowsort
SELECT DISTINCT + ( + - 62 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT CASE 92 WHEN MIN( ALL + - 82 ) * + + 55 * + COUNT( * ) THEN + 44 END + + COUNT( * ) + 66 * - 88 - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT CASE 92 WHEN MIN ( ALL + - 82 ) * + + 55 * + COUNT ( * ) THEN + 44 END + + COUNT ( * ) + 66 * - 88 - 80 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ( + 88 ) * MIN( ALL + 47 ) + 24 + - 43
----
4117

skipif mysql # not compatible
query I rowsort label-3822
SELECT ( + 88 ) * MIN ( ALL + 47 ) + 24 + - 43
----
4117

query I rowsort
SELECT 10 - - 76 + - 28 * - - 41
----
-1062

query I rowsort
SELECT - COALESCE ( 69, + 97 * - 58 ) AS col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3825
SELECT COUNT( * ) + + + CAST( 36 AS SIGNED ) * - CAST( NULL AS SIGNED ) - - 71 - - - 13 + - - CAST( + 37 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT COUNT ( * ) + + + CAST ( 36 AS INTEGER ) * - CAST ( NULL AS INTEGER ) - - 71 - - - 13 + - - CAST ( + 37 AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3826
SELECT + COALESCE ( - 86, - COALESCE ( - 73, SUM( + 26 ) ), + 22 * ( CAST( + CAST( + 28 AS SIGNED ) AS SIGNED ) ) + - 47 * - 13 * - 5 ) + + 50 + + COUNT( + + CAST( NULL AS SIGNED ) ) - COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-3826
SELECT + COALESCE ( - 86, - COALESCE ( - 73, SUM ( + 26 ) ), + 22 * ( CAST ( + CAST ( + 28 AS INTEGER ) AS INTEGER ) ) + - 47 * - 13 * - 5 ) + + 50 + + COUNT ( + + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT - SUM( + 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-3827
SELECT - SUM ( + 37 )
----
-37

query I rowsort
SELECT 99 + - 83 AS col1
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3829
SELECT ALL + 77 / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL + 77 / - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3830
SELECT - COALESCE ( - 83, + 72 + + + CASE - + 13 WHEN - 67 + 80 THEN - CAST( NULL AS SIGNED ) END ) AS col0, 40 AS col2
----
83
40

skipif mysql # not compatible
query II rowsort label-3830
SELECT - COALESCE ( - 83, + 72 + + + CASE - + 13 WHEN - 67 + 80 THEN - CAST ( NULL AS INTEGER ) END ) AS col0, 40 AS col2
----
83
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT 79 + + 16 + + + MIN( DISTINCT 73 ) * + COALESCE ( - - MIN( DISTINCT 68 ), + + 53 ) * 60 + - 90 - - 51 + 92 col1
----
297988

skipif mysql # not compatible
query I rowsort label-3831
SELECT 79 + + 16 + + + MIN ( DISTINCT 73 ) * + COALESCE ( - - MIN ( DISTINCT 68 ), + + 53 ) * 60 + - 90 - - 51 + 92 col1
----
297988

query I rowsort
SELECT ALL + 50 * - 84 AS col1
----
-4200

query I rowsort
SELECT - ( - 16 ) + - - 57 + + 40 * 24 AS col0
----
1033

query I rowsort
SELECT ALL 12 * - - 44
----
528

query I rowsort
SELECT - COALESCE ( - + 76, + 24 + 35 - + 40 )
----
76

query I rowsort
SELECT - 58 * - + 40 * + 13 * - + 97
----
-2925520

query I rowsort
SELECT - 34 * 73 AS col0
----
-2482

query II rowsort
SELECT 2, - 30 AS col1
----
2
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT - 52 + + ( + - CASE + + 46 WHEN + + ( + COUNT( * ) ) THEN NULL ELSE - 2 END ) + SUM( - 12 ) * CASE 93 WHEN + MIN( DISTINCT + 1 ) + + 12 * 21 * - 54 THEN NULL ELSE - 32 END + - 6 - - 24 * + 25 AS col2
----
928

skipif mysql # not compatible
query I rowsort label-3839
SELECT - 52 + + ( + - CASE + + 46 WHEN + + ( + COUNT ( * ) ) THEN NULL ELSE - 2 END ) + SUM ( - 12 ) * CASE 93 WHEN + MIN ( DISTINCT + 1 ) + + 12 * 21 * - 54 THEN NULL ELSE - 32 END + - 6 - - 24 * + 25 AS col2
----
928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3840
SELECT - MIN( - CAST( - - 53 AS SIGNED ) ) * - + ( + 81 )
----
-4293

skipif mysql # not compatible
query I rowsort label-3840
SELECT - MIN ( - CAST ( - - 53 AS INTEGER ) ) * - + ( + 81 )
----
-4293

query II rowsort
SELECT - 86 AS col2, 5
----
-86
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3842
SELECT ALL + CAST( - - 60 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + CAST ( - - 60 AS INTEGER )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT COALESCE ( 13, + - ( - + 58 ) + - + 8 + + + MIN( DISTINCT + 79 ) ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3843
SELECT COALESCE ( 13, + - ( - + 58 ) + - + 8 + + + MIN ( DISTINCT + 79 ) ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL + NULLIF ( 2, - 86 + MAX( + - 61 ) )
----
2

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL + NULLIF ( 2, - 86 + MAX ( + - 61 ) )
----
2

query II rowsort
SELECT - 68 * - 70 * 39 AS col2, - 21 AS col2
----
185640
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT + - 28 col1, 22 - + COUNT( * ) + + - 87 + 86
----
-28
20

skipif mysql # not compatible
query II rowsort label-3846
SELECT + - 28 col1, 22 - + COUNT ( * ) + + - 87 + 86
----
-28
20

query II rowsort
SELECT + - 15, 56 - - 79 AS col1
----
-15
135

query I rowsort
SELECT - + 22 + 19 - - 6 AS col0
----
3

query I rowsort
SELECT + + 17 * - 26 * + - 24 + - 99 AS col0
----
10509

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL + 87 * - CASE 67 WHEN - COUNT( DISTINCT + - 36 ) THEN - 99 END + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL + 87 * - CASE 67 WHEN - COUNT ( DISTINCT + - 36 ) THEN - 99 END + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT + CASE + 92 WHEN 53 THEN - 42 WHEN 58 + - 51 + - + 85 THEN NULL WHEN - + COUNT( * ) THEN NULL END - - ( - + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT + CASE + 92 WHEN 53 THEN - 42 WHEN 58 + - 51 + - + 85 THEN NULL WHEN - + COUNT ( * ) THEN NULL END - - ( - + 63 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3852
SELECT + 99 DIV - 20 DIV 1 AS col2, CAST( + 66 AS SIGNED )
----
-4
66

skipif mysql # not compatible
query II rowsort label-3852
SELECT + 99 / - 20 / 1 AS col2, CAST ( + 66 AS INTEGER )
----
-4
66

query I rowsort
SELECT + - 90 * + 21 AS col1
----
-1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3854
SELECT ALL - 85 DIV - SUM( ALL - + 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL - 85 / - SUM ( ALL - + 57 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT SUM( ALL + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-3855
SELECT SUM ( ALL + 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3856
SELECT + 39 * + 73 + - MAX( DISTINCT NULLIF ( + ( - 72 ), ( - + 37 ) ) ) * 50 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT + 39 * + 73 + - MAX ( DISTINCT NULLIF ( + ( - 72 ), ( - + 37 ) ) ) * 50 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + CASE - - 35 WHEN + 32 + - 87 + + 34 THEN - 33 * + 82 WHEN - - 56 THEN - NULLIF ( 55, - 33 ) ELSE NULL END, + 43 + - 68 + - 51 AS col1
----
NULL
-76

query I rowsort
SELECT + 30 + - 13 AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3859
SELECT ALL CAST( 49 AS SIGNED ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL CAST ( 49 AS INTEGER ) AS col2
----
49

query I rowsort
SELECT - COALESCE ( 72, + - ( - 77 ) * + 39 )
----
-72

query I rowsort
SELECT - ( + - 55 ) col0
----
55

query I rowsort
SELECT + ( + 61 ) + - 43 AS col2
----
18

query I rowsort
SELECT ALL 71 * - - 29 AS col1
----
2059

query I rowsort
SELECT + ( + 34 ) * + 73 AS col1
----
2482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3865
SELECT - COALESCE ( - 69, - + 48 + + 66 * 92, + ( CAST( - 43 AS SIGNED ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-3865
SELECT - COALESCE ( - 69, - + 48 + + 66 * 92, + ( CAST ( - 43 AS INTEGER ) ) )
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3866
SELECT + 70 + - 43 DIV - - 51 * MAX( + 66 )
----
70

skipif mysql # not compatible
query I rowsort label-3866
SELECT + 70 + - 43 / - - 51 * MAX ( + 66 )
----
70

query I rowsort
SELECT + 40 - + 16 AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT + 99 DIV - + 90 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3868
SELECT + 99 / - + 90 AS col1
----
-1

query II rowsort
SELECT DISTINCT 63 + + + 1, 79 AS col0
----
64
79

query I rowsort
SELECT DISTINCT 92 * - 82 AS col0
----
-7544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3871
SELECT - CAST( + 99 AS SIGNED ) - - - 30 + + - 49 AS col2
----
-178

skipif mysql # not compatible
query I rowsort label-3871
SELECT - CAST ( + 99 AS INTEGER ) - - - 30 + + - 49 AS col2
----
-178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT - COUNT( * ) + + + 34 DIV - 87 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3872
SELECT - COUNT ( * ) + + + 34 / - 87 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3873
SELECT ALL - ( + 64 ) DIV - CAST( - ( + 58 ) AS SIGNED ) + - + 34
----
-35

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL - ( + 64 ) / - CAST ( - ( + 58 ) AS INTEGER ) + - + 34
----
-35

query I rowsort
SELECT ALL + - 17 col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT DISTINCT + 47 / - - SUM( + + 96 ) + + AVG ( DISTINCT - ( + + 88 ) ) * + MIN( DISTINCT 23 ) / CASE + 40 WHEN + + 30 THEN 99 WHEN + 88 THEN 64 * + AVG ( - - 67 ) + 10 + ( + COUNT( * ) ) * - 80 END + - MIN( ALL 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT + 47 / - - SUM ( + + 96 ) + + AVG ( DISTINCT - ( + + 88 ) ) * + MIN ( DISTINCT 23 ) / CASE + 40 WHEN + + 30 THEN 99 WHEN + 88 THEN 64 * + AVG ( - - 67 ) + 10 + ( + COUNT ( * ) ) * - 80 END + - MIN ( ALL 81 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3876
SELECT ALL + + COALESCE ( - COUNT( * ), COUNT( * ) DIV 34 * + 10 * + COALESCE ( - 53, + COUNT( * ) - - SUM( DISTINCT 70 ), - 7 + + + 27 ) * 1 * + 0 * 68, - - 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + + COALESCE ( - COUNT ( * ), COUNT ( * ) / 34 * + 10 * + COALESCE ( - 53, + COUNT ( * ) - - SUM ( DISTINCT 70 ), - 7 + + + 27 ) * 1 * + 0 * 68, - - 72 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT + + 61 * + - COUNT( * ) + + + 6
----
-55

skipif mysql # not compatible
query I rowsort label-3877
SELECT + + 61 * + - COUNT ( * ) + + + 6
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT ALL + 4 DIV - + 39 - + 9 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL + 4 / - + 39 - + 9 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - COUNT( * ) * + - 61 + 71 + COUNT( * ) - + 72 * + COUNT( * ) * 56 / - CASE 75 WHEN 71 * - 82 - - COUNT( * ) * - 21 THEN NULL WHEN 16 * - 0 THEN - 87 / - 54 - + - 80 + - MAX( DISTINCT - 57 ) + 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT - COUNT ( * ) * + - 61 + 71 + COUNT ( * ) - + 72 * + COUNT ( * ) * 56 / - CASE 75 WHEN 71 * - 82 - - COUNT ( * ) * - 21 THEN NULL WHEN 16 * - 0 THEN - 87 / - 54 - + - 80 + - MAX ( DISTINCT - 57 ) + 51 END AS col1
----
NULL

query I rowsort
SELECT ALL + 55 * - 24 - - 50 col1
----
-1270

query I rowsort
SELECT - - 50 * - 64
----
-3200

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT - COUNT( * ) * + COUNT( * ) * - ( 76 ) - + MIN( + ( - 63 ) )
----
139

skipif mysql # not compatible
query I rowsort label-3882
SELECT - COUNT ( * ) * + COUNT ( * ) * - ( 76 ) - + MIN ( + ( - 63 ) )
----
139

query II rowsort
SELECT DISTINCT + + 58 * 9, + 66 AS col2
----
522
66

query II rowsort
SELECT ALL - ( 99 ) AS col2, 96 * + 29
----
-99
2784

query I rowsort
SELECT 89 + + 18 + + 2 AS col2
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3886
SELECT 98 + - CASE 16 WHEN + - 27 THEN - CAST( NULL AS SIGNED ) END / + 90 AS col1, 4 AS col2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-3886
SELECT 98 + - CASE 16 WHEN + - 27 THEN - CAST ( NULL AS INTEGER ) END / + 90 AS col1, 4 AS col2
----
NULL
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3887
SELECT 69 + - ( CAST( 4 AS SIGNED ) )
----
65

skipif mysql # not compatible
query I rowsort label-3887
SELECT 69 + - ( CAST ( 4 AS INTEGER ) )
----
65

query I rowsort
SELECT 79 + + 89 * 48
----
4351

onlyif mysql # aggregate syntax: 
query II rowsort label-3889
SELECT COALESCE ( - 39, + + 82 ) + - 99 + COUNT( * ) AS col0, NULLIF ( + - 78, - 14 )
----
-137
-78

skipif mysql # not compatible
query II rowsort label-3889
SELECT COALESCE ( - 39, + + 82 ) + - 99 + COUNT ( * ) AS col0, NULLIF ( + - 78, - 14 )
----
-137
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3890
SELECT 88 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3890
SELECT 88 / + 97 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3891
SELECT MAX( 85 ) * + 9 - 15 - + + CAST( 30 AS SIGNED ) AS col1, - 60 AS col1
----
720
-60

skipif mysql # not compatible
query II rowsort label-3891
SELECT MAX ( 85 ) * + 9 - 15 - + + CAST ( 30 AS INTEGER ) AS col1, - 60 AS col1
----
720
-60

query I rowsort
SELECT ALL + 87 + - 52 + - 14 * - 76
----
1099

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT DISTINCT - COUNT( * ) + + 91
----
90

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT - COUNT ( * ) + + 91
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3894
SELECT - 28, CAST( + ( + - COUNT( * ) ) AS SIGNED ) AS col1
----
-28
-1

skipif mysql # not compatible
query II rowsort label-3894
SELECT - 28, CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) AS col1
----
-28
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3895
SELECT ( + 70 ) + MAX( + 28 ) + - 56 AS col2, COUNT( ALL 40 ) AS col0
----
42
1

skipif mysql # not compatible
query II rowsort label-3895
SELECT ( + 70 ) + MAX ( + 28 ) + - 56 AS col2, COUNT ( ALL 40 ) AS col0
----
42
1

query I rowsort
SELECT DISTINCT ( + 11 ) * - 16
----
-176

query I rowsort
SELECT ALL 87 + - 73 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT + + MAX( + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3898
SELECT + + MAX ( + 61 )
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT ALL - 51 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL - 51 / - 78
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3900
SELECT DISTINCT + - CAST( + NULLIF ( COUNT( * ), COALESCE ( + - ( + 20 ), + - 0 ) ) AS SIGNED ) - 96
----
-97

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT + - CAST ( + NULLIF ( COUNT ( * ), COALESCE ( + - ( + 20 ), + - 0 ) ) AS INTEGER ) - 96
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT DISTINCT 33 * SUM( ALL 52 )
----
1716

skipif mysql # not compatible
query I rowsort label-3901
SELECT DISTINCT 33 * SUM ( ALL 52 )
----
1716

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3902
SELECT - - 85 * + - 37 + 81 - - + 71 + 55 - ( + 24 ) + 66 * + 9 * - 75 AS col0, - COUNT( * ) * - 85 * + 34 + 71 DIV - + 13
----
-47512
2885

skipif mysql # not compatible
query II rowsort label-3902
SELECT - - 85 * + - 37 + 81 - - + 71 + 55 - ( + 24 ) + 66 * + 9 * - 75 AS col0, - COUNT ( * ) * - 85 * + 34 + 71 / - + 13
----
-47512
2885

onlyif mysql # aggregate syntax: 
query II rowsort label-3903
SELECT ALL ( - COUNT( * ) ) * + 10 AS col0, ( - ( 71 ) ) AS col0
----
-10
-71

skipif mysql # not compatible
query II rowsort label-3903
SELECT ALL ( - COUNT ( * ) ) * + 10 AS col0, ( - ( 71 ) ) AS col0
----
-10
-71

query I rowsort
SELECT 16 - + + NULLIF ( - + 96, ( + + ( + ( 44 ) ) ) ) AS col1
----
112

query I rowsort
SELECT - 34 + - 26
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL - + COUNT( DISTINCT - 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - + COUNT ( DISTINCT - 95 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3907
SELECT + ( - CAST( + NULLIF ( + 66, + - 34 * + CASE - 13 WHEN - AVG ( DISTINCT + 9 ) + + 80 + 1 + + 68 * + 46 * 0 THEN NULL WHEN + + COALESCE ( - 26, - 40 * - ( + 8 ) * - 8 ) THEN AVG ( DISTINCT 4 ) * 87 END ) AS SIGNED ) ) * + 31 col1
----
-2046

skipif mysql # not compatible
query I rowsort label-3907
SELECT + ( - CAST ( + NULLIF ( + 66, + - 34 * + CASE - 13 WHEN - AVG ( DISTINCT + 9 ) + + 80 + 1 + + 68 * + 46 * 0 THEN NULL WHEN + + COALESCE ( - 26, - 40 * - ( + 8 ) * - 8 ) THEN AVG ( DISTINCT 4 ) * 87 END ) AS INTEGER ) ) * + 31 col1
----
-2046

query I rowsort
SELECT DISTINCT 21 - - - 20 AS col1
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3909
SELECT + + 84 * - + 33 - + 72 AS col0, - 58 DIV 77
----
-2844
0

skipif mysql # not compatible
query II rowsort label-3909
SELECT + + 84 * - + 33 - + 72 AS col0, - 58 / 77
----
-2844
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3910
SELECT 16 * - - CAST( 68 AS SIGNED ) col0, - MAX( ALL 7 ) + - - NULLIF ( + - 26, - 15 DIV - AVG ( ALL + 44 ) ) * 62 DIV ( - 1 ) AS col1, + 27 - 2 AS col1
----
1088
1605
25

skipif mysql # not compatible
query III rowsort label-3910
SELECT 16 * - - CAST ( 68 AS INTEGER ) col0, - MAX ( ALL 7 ) + - - NULLIF ( + - 26, - 15 / - AVG ( ALL + 44 ) ) * 62 / ( - 1 ) AS col1, + 27 - 2 AS col1
----
1088
1605
25

query I rowsort
SELECT + 83 - 15 + - 39 * + + 71 AS col2
----
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT 8 * + + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3912
SELECT 8 * + + COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT 79 * - - 15 * + COUNT( * ) AS col1
----
1185

skipif mysql # not compatible
query I rowsort label-3913
SELECT 79 * - - 15 * + COUNT ( * ) AS col1
----
1185

query II rowsort
SELECT + 20 * 11 + + 61 + - 24, - 60 AS col1
----
257
-60

query II rowsort
SELECT - 63 AS col1, 70 + - 39 AS col1
----
-63
31

query II rowsort
SELECT 45 AS col0, + 99 + 66 + + + 4 col1
----
45
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3917
SELECT 64 * + 26 - - 33 - 98 + + 19 * 80, NULLIF ( - 2, + 85 + - + NULLIF ( + CASE - COUNT( DISTINCT + 28 ) WHEN 81 THEN - COUNT( * ) * + NULLIF ( + 56, COUNT( + 19 ) ) - - 15 END, + + 42 ) ) + 89 DIV 25 AS col0
----
3119
1

skipif mysql # not compatible
query II rowsort label-3917
SELECT 64 * + 26 - - 33 - 98 + + 19 * 80, NULLIF ( - 2, + 85 + - + NULLIF ( + CASE - COUNT ( DISTINCT + 28 ) WHEN 81 THEN - COUNT ( * ) * + NULLIF ( + 56, COUNT ( + 19 ) ) - - 15 END, + + 42 ) ) + 89 / 25 AS col0
----
3119
1

query I rowsort
SELECT ALL - 28 * - 56
----
1568

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3919
SELECT ALL - 55 + 20 AS col2, NULLIF ( - + COUNT( * ), + 84 * 87 + 64 ) * - + COUNT( * ) DIV - - 61 * - 74
----
-35
0

skipif mysql # not compatible
query II rowsort label-3919
SELECT ALL - 55 + 20 AS col2, NULLIF ( - + COUNT ( * ), + 84 * 87 + 64 ) * - + COUNT ( * ) / - - 61 * - 74
----
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT + COUNT( * ) + 71 col2
----
72

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + COUNT ( * ) + 71 col2
----
72

query I rowsort
SELECT DISTINCT - 46 * - 46 * + 29 AS col2
----
61364

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL + 55 + COUNT( ALL - 0 )
----
56

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + 55 + COUNT ( ALL - 0 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT COUNT( * ) + + - 56
----
-55

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT COUNT ( * ) + + - 56
----
-55

query I rowsort
SELECT 3 + + 92 AS col1
----
95

query I rowsort
SELECT 7 * - 3
----
-21

query I rowsort
SELECT 13 + + 5 - - 6 AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT DISTINCT - ( + 74 ) DIV - - 72 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT - ( + 74 ) / - - 72 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT COUNT( * ) + - 63 col0
----
-62

skipif mysql # not compatible
query I rowsort label-3928
SELECT COUNT ( * ) + - 63 col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ( + + COUNT( * ) ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3929
SELECT ( + + COUNT ( * ) ) * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3930
SELECT ALL COALESCE ( MIN( - 69 ), - 91 ) * - COUNT( ALL 74 ) AS col1, 70
----
69
70

skipif mysql # not compatible
query II rowsort label-3930
SELECT ALL COALESCE ( MIN ( - 69 ), - 91 ) * - COUNT ( ALL 74 ) AS col1, 70
----
69
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3931
SELECT DISTINCT - NULLIF ( COUNT( * ), + COUNT( * ) ) - + ( 27 ) + - 55 + + 40 * + ( COUNT( * ) ) / 1 * + CAST( MIN( ALL + + 27 ) AS SIGNED ) - - - 70 * + AVG ( DISTINCT - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - NULLIF ( COUNT ( * ), + COUNT ( * ) ) - + ( 27 ) + - 55 + + 40 * + ( COUNT ( * ) ) / 1 * + CAST ( MIN ( ALL + + 27 ) AS INTEGER ) - - - 70 * + AVG ( DISTINCT - 51 )
----
NULL

query II rowsort
SELECT ALL + 49 * - 59 * + 91 * + 97 AS col1, - 74 AS col0
----
-25518857
-74

query I rowsort
SELECT DISTINCT - 22 * - 14 * - ( + - 50 ) - + 75 * + ( 77 )
----
9625

query II rowsort
SELECT - + 36, 98 AS col2
----
-36
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT ALL CAST( NULL AS SIGNED ) * - 11 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL CAST ( NULL AS INTEGER ) * - 11 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT - COUNT( + + 28 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT - COUNT ( + + 28 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT - - 23 * 79 + + + ( CAST( - 53 AS SIGNED ) ) * 96
----
-3271

skipif mysql # not compatible
query I rowsort label-3937
SELECT - - 23 * 79 + + + ( CAST ( - 53 AS INTEGER ) ) * 96
----
-3271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3938
SELECT + CAST( + - 99 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-3938
SELECT + CAST ( + - 99 AS INTEGER )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT - 32 DIV 27 + 47 + 91 * + 75 * 98 + - + 74 + - 2 * + 6 AS col2
----
668810

skipif mysql # not compatible
query I rowsort label-3939
SELECT - 32 / 27 + 47 + 91 * + 75 * 98 + - + 74 + - 2 * + 6 AS col2
----
668810

query I rowsort
SELECT 61 * 61 * + 79 * 62
----
18225458

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT DISTINCT 66 DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT 66 / - 98 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3942
SELECT ALL COUNT( * ) / - - 97 + - ( - - 50 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL COUNT ( * ) / - - 97 + - ( - - 50 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT + NULLIF ( + 67, 89 * - 7 + + + NULLIF ( - 94, + COUNT( 83 ) * - + 49 ) + + 56 )
----
67

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT + NULLIF ( + 67, 89 * - 7 + + + NULLIF ( - 94, + COUNT ( 83 ) * - + 49 ) + + 56 )
----
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3944
SELECT DISTINCT + 45 DIV - CAST( - NULLIF ( + - COALESCE ( + 11, - 83 ), + AVG ( - 9 ) ) AS SIGNED ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + 45 / - CAST ( - NULLIF ( + - COALESCE ( + 11, - 83 ), + AVG ( - 9 ) ) AS INTEGER ) AS col2
----
-4

query II rowsort
SELECT + - 31 AS col1, 27 AS col2
----
-31
27

query II rowsort
SELECT ALL - 94 * + - ( + + 95 ) * - + 2 + + 16 + - 76 AS col1, 90 + + 5 + 19
----
-17920
114

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT + + COUNT( 90 )
----
1

skipif mysql # not compatible
query I rowsort label-3947
SELECT + + COUNT ( 90 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + COUNT( DISTINCT ( 24 ) ) + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3948
SELECT + COUNT ( DISTINCT ( 24 ) ) + 45 AS col1
----
46

query I rowsort
SELECT - 12 + + + 44 AS col2
----
32

query II rowsort
SELECT ALL 5 * - 5 AS col0, 23 col0
----
-25
23

query I rowsort
SELECT 87 * 77 * 69 + - 87 AS col1
----
462144

query I rowsort
SELECT - 93 + 98 - + + 95
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-3953
SELECT - COALESCE ( + 64, 86 * + - 34, + 67 DIV 73 + - - ( - 84 ) ) AS col0, 72 * ( - + 42 )
----
-64
-3024

skipif mysql # not compatible
query II rowsort label-3953
SELECT - COALESCE ( + 64, 86 * + - 34, + 67 / 73 + - - ( - 84 ) ) AS col0, 72 * ( - + 42 )
----
-64
-3024

query I rowsort
SELECT - 70 + - 82 AS col2
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - COUNT( DISTINCT + - 46 ) + - + 72 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-3955
SELECT - COUNT ( DISTINCT + - 46 ) + - + 72 AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT DISTINCT + ( COUNT( * ) ) + + 59 + - 95 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT + ( COUNT ( * ) ) + + 59 + - 95 AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3957
SELECT ALL CASE + 70 WHEN 81 THEN NULL ELSE - - COUNT( * ) * 24 * - 83 - + - CAST( NULL AS SIGNED ) END AS col1, ( - 36 ) * - - COUNT( * )
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-3957
SELECT ALL CASE + 70 WHEN 81 THEN NULL ELSE - - COUNT ( * ) * 24 * - 83 - + - CAST ( NULL AS INTEGER ) END AS col1, ( - 36 ) * - - COUNT ( * )
----
NULL
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT - COUNT( * ) + + 90 + + COUNT( * ) * - - COUNT( - 35 ) * + - 79 * - CASE - - 1 WHEN + + 66 + COUNT( * ) + + 61 / - - 91 THEN NULL WHEN + ( + 60 ) THEN 42 END * - 84 * + COUNT( ALL 8 ) * 91 - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT - COUNT ( * ) + + 90 + + COUNT ( * ) * - - COUNT ( - 35 ) * + - 79 * - CASE - - 1 WHEN + + 66 + COUNT ( * ) + + 61 / - - 91 THEN NULL WHEN + ( + 60 ) THEN 42 END * - 84 * + COUNT ( ALL 8 ) * 91 - - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT SUM( - 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT SUM ( - 6 ) AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT ALL - CAST( - - 26 AS SIGNED ) * - 50
----
1300

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - CAST ( - - 26 AS INTEGER ) * - 50
----
1300

query II rowsort
SELECT - 3 + 14 AS col2, 81 + - COALESCE ( - - 67, + ( + 11 ) ) - - - 49
----
11
-35

query I rowsort
SELECT DISTINCT ( - 36 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL - COALESCE ( 18, - COUNT( * ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - COALESCE ( 18, - COUNT ( * ) ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT - 66 * COALESCE ( 34, - 14 ) * 87 * - - COUNT( * ) + CASE + - 27 WHEN - 8 THEN - ( - 95 ) * + - COALESCE ( 99, - 62 * + 71 * - ( - + 97 ), 55 + - AVG ( DISTINCT + 7 ) ) * 79 + + ( 29 ) / + 22 + 82 * - 25 ELSE NULL END + + 74 + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT - 66 * COALESCE ( 34, - 14 ) * 87 * - - COUNT ( * ) + CASE + - 27 WHEN - 8 THEN - ( - 95 ) * + - COALESCE ( 99, - 62 * + 71 * - ( - + 97 ), 55 + - AVG ( DISTINCT + 7 ) ) * 79 + + ( 29 ) / + 22 + 82 * - 25 ELSE NULL END + + 74 + - 8
----
NULL

query I rowsort
SELECT - 36 * 99 - - 37 * + 66 * 10 + - 5 AS col2
----
20851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3966
SELECT + - ( + - 77 ) + - 7 AS col2, NULLIF ( - 40, + ( - 78 ) + + 51 + + 73 - - + 11 + COUNT( * ) * + - 79 * + 90 * + 46 + + CAST( + 70 AS SIGNED ) + - 82 * + 88 ) AS col0, 60 * COUNT( * ) DIV 64
----
70
-40
0

skipif mysql # not compatible
query III rowsort label-3966
SELECT + - ( + - 77 ) + - 7 AS col2, NULLIF ( - 40, + ( - 78 ) + + 51 + + 73 - - + 11 + COUNT ( * ) * + - 79 * + 90 * + 46 + + CAST ( + 70 AS INTEGER ) + - 82 * + 88 ) AS col0, 60 * COUNT ( * ) / 64
----
70
-40
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT ALL + 68 DIV 11 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL + 68 / 11 / + 92
----
0

query I rowsort
SELECT - + 63 * + - 96 AS col0
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT + + COUNT( + 49 ) + + ( - NULLIF ( 97, 84 ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-3969
SELECT + + COUNT ( + 49 ) + + ( - NULLIF ( 97, 84 ) ) AS col2
----
-96

query I rowsort
SELECT DISTINCT 51 * 63 + 56 - + + 49 AS col0
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL 55 * + COUNT( * ) * 76
----
4180

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL 55 * + COUNT ( * ) * 76
----
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + + ( + + ( - 94 ) ) * - COUNT( * ) - + 4
----
90

skipif mysql # not compatible
query I rowsort label-3972
SELECT + + ( + + ( - 94 ) ) * - COUNT ( * ) - + 4
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3973
SELECT ALL - 4 DIV - COUNT( * ) + + 30
----
34

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - 4 / - COUNT ( * ) + + 30
----
34

query I rowsort
SELECT - + 61 + - 98 + - 74
----
-233

query I rowsort
SELECT + 6 + 77
----
83

query I rowsort
SELECT ( - + 24 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT DISTINCT + COALESCE ( CAST( NULL AS SIGNED ), 75 )
----
75

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT + COALESCE ( CAST ( NULL AS INTEGER ), 75 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3978
SELECT DISTINCT - 65 * 42 * MAX( 23 ) DIV + 27 + - - 20 AS col0
----
-2305

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT - 65 * 42 * MAX ( 23 ) / + 27 + - - 20 AS col0
----
-2305

query I rowsort
SELECT ALL + 81 * - 43 + + + 83
----
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + CASE - - COUNT( * ) WHEN 61 THEN NULL WHEN + - 93 THEN 71 WHEN + - 69 THEN NULL ELSE 81 * + 4 END
----
324

skipif mysql # not compatible
query I rowsort label-3980
SELECT + CASE - - COUNT ( * ) WHEN 61 THEN NULL WHEN + - 93 THEN 71 WHEN + - 69 THEN NULL ELSE 81 * + 4 END
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT DISTINCT NULLIF ( + 83, - 55 + 59 + SUM( ALL 86 ) + - COUNT( ALL - + 11 ) * + - 98 * COUNT( * ) * - 79 ) * 4 + - - 79 * + - 32 * - MAX( + 98 ) + 43
----
248119

skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT NULLIF ( + 83, - 55 + 59 + SUM ( ALL 86 ) + - COUNT ( ALL - + 11 ) * + - 98 * COUNT ( * ) * - 79 ) * 4 + - - 79 * + - 32 * - MAX ( + 98 ) + 43
----
248119

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT 1 * COUNT( * ) - - - 20 + - COALESCE ( - ( - 91 ), + 64, - 32 ) + - - 1
----
-109

skipif mysql # not compatible
query I rowsort label-3982
SELECT 1 * COUNT ( * ) - - - 20 + - COALESCE ( - ( - 91 ), + 64, - 32 ) + - - 1
----
-109

query I rowsort
SELECT + ( + ( - - 89 ) ) * - 62
----
-5518

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT + 81 DIV + + 73 col0
----
1

skipif mysql # not compatible
query I rowsort label-3984
SELECT + 81 / + + 73 col0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3985
SELECT + NULLIF ( + 82, - + 23 ), 52 + 95 - 29 DIV 43 + + 48 AS col2
----
82
195

skipif mysql # not compatible
query II rowsort label-3985
SELECT + NULLIF ( + 82, - + 23 ), 52 + 95 - 29 / 43 + + 48 AS col2
----
82
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT CASE COUNT( * ) WHEN - 4 + + 73 + - - 33 THEN - - 0 + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT CASE COUNT ( * ) WHEN - 4 + + 73 + - - 33 THEN - - 0 + 9 END
----
NULL

query II rowsort
SELECT ALL + 78 AS col2, 81 AS col1
----
78
81

query I rowsort
SELECT - 63 * - 32 AS col2
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - COUNT( * ) * - 34 col1
----
34

skipif mysql # not compatible
query I rowsort label-3989
SELECT - COUNT ( * ) * - 34 col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ALL + MAX( DISTINCT - + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL + MAX ( DISTINCT - + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL NULLIF ( COUNT( * ), + - 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL NULLIF ( COUNT ( * ), + - 17 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT COUNT( * ) * COUNT( * ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * 46
----
46

query I rowsort
SELECT + 62 + 99
----
161

query I rowsort
SELECT ALL ( 59 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3995
SELECT ALL COUNT( * ) col2, + 99 * - 24 col2
----
1
-2376

skipif mysql # not compatible
query II rowsort label-3995
SELECT ALL COUNT ( * ) col2, + 99 * - 24 col2
----
1
-2376

query II rowsort
SELECT + 92 + 35 * + 85 AS col1, 52
----
3067
52

query II rowsort
SELECT 60 AS col1, 41
----
60
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + - NULLIF ( 94, - 61 ) + - 28 + - - COUNT( * ) * - ( ( + CASE - - ( - NULLIF ( - 67, - 54 ) ) WHEN - ( 95 ) THEN + 39 * + 42 * - COUNT( * ) * + COUNT( * ) * MIN( DISTINCT COALESCE ( - NULLIF ( - ( - + 86 ), 7 * 46 ), 90 ) ) + 82 ELSE NULL END ) ) / + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT + - NULLIF ( 94, - 61 ) + - 28 + - - COUNT ( * ) * - ( ( + CASE - - ( - NULLIF ( - 67, - 54 ) ) WHEN - ( 95 ) THEN + 39 * + 42 * - COUNT ( * ) * + COUNT ( * ) * MIN ( DISTINCT COALESCE ( - NULLIF ( - ( - + 86 ), 7 * 46 ), 90 ) ) + 82 ELSE NULL END ) ) / + 73
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3999
SELECT ALL + 72 * 64 + - COUNT( * ), + CAST( NULL AS SIGNED ) * - + 25 AS col0
----
4607
NULL

skipif mysql # not compatible
query II rowsort label-3999
SELECT ALL + 72 * 64 + - COUNT ( * ), + CAST ( NULL AS INTEGER ) * - + 25 AS col0
----
4607
NULL

query I rowsort
SELECT + 73 + - 49
----
24

query II rowsort
SELECT + 68 AS col0, - 85 AS col1
----
68
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT - COUNT( + 73 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4002
SELECT - COUNT ( + 73 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4003
SELECT DISTINCT 52, COUNT( * ) AS col0
----
52
1

skipif mysql # not compatible
query II rowsort label-4003
SELECT DISTINCT 52, COUNT ( * ) AS col0
----
52
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT ALL + - 49 * - COUNT( * ) + - + 77 AS col2, 25 AS col1
----
-28
25

skipif mysql # not compatible
query II rowsort label-4004
SELECT ALL + - 49 * - COUNT ( * ) + - + 77 AS col2, 25 AS col1
----
-28
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT + COUNT( * ) + 77 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4005
SELECT + COUNT ( * ) + 77 AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT ALL - ( COUNT( * ) ) * - 28 col1
----
28

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL - ( COUNT ( * ) ) * - 28 col1
----
28

query I rowsort
SELECT DISTINCT + 78 + - + 58 AS col2
----
20

query I rowsort
SELECT ALL CASE 29 WHEN - 14 THEN NULL ELSE ( + + 98 ) - - - 91 END AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT + COUNT( * ) + 23 + - 43 + 3 * - COUNT( DISTINCT + 3 ) + + 87 + 63
----
128

skipif mysql # not compatible
query I rowsort label-4009
SELECT + COUNT ( * ) + 23 + - 43 + 3 * - COUNT ( DISTINCT + 3 ) + + 87 + 63
----
128

query I rowsort
SELECT ALL + 45 + + 72
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4011
SELECT ( + ( NULLIF ( + - 0, + 5 ) ) ) + - + NULLIF ( + 0, + + CAST( NULL AS SIGNED ) + + + 53 * + 6 ) + + + 90 AS col2, MAX( - 10 )
----
90
-10

skipif mysql # not compatible
query II rowsort label-4011
SELECT ( + ( NULLIF ( + - 0, + 5 ) ) ) + - + NULLIF ( + 0, + + CAST ( NULL AS INTEGER ) + + + 53 * + 6 ) + + + 90 AS col2, MAX ( - 10 )
----
90
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT ALL + 96 + + - 3 - 20 * + 69 * - - COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL + 96 + + - 3 - 20 * + 69 * - - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT - NULLIF ( ( ( 36 ) ), - - COUNT( * ) )
----
-36

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT - NULLIF ( ( ( 36 ) ), - - COUNT ( * ) )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT + 86 / - CAST( NULL AS SIGNED ) * - + 78 + + + 58 + - 59 * ( + 70 ) + - 41 * + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT + 86 / - CAST ( NULL AS INTEGER ) * - + 78 + + + 58 + - 59 * ( + 70 ) + - 41 * + + 28
----
NULL

query I rowsort
SELECT ALL - - 77 + + - 90
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT DISTINCT + - COALESCE ( - - 33, - 99, - 90 ) DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-4016
SELECT DISTINCT + - COALESCE ( - - 33, - 99, - 90 ) / 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4017
SELECT ALL - + 95 AS col2, + COUNT( * ) * + 77 DIV - - 19 AS col2
----
-95
4

skipif mysql # not compatible
query II rowsort label-4017
SELECT ALL - + 95 AS col2, + COUNT ( * ) * + 77 / - - 19 AS col2
----
-95
4

query I rowsort
SELECT ALL - ( 86 ) + - ( 56 ) + - - 82 * - + 89
----
-7440

query I rowsort
SELECT 7 * 99 AS col2
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL - SUM( DISTINCT - - ( - 89 ) ) - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL - SUM ( DISTINCT - - ( - 89 ) ) - COUNT ( * )
----
88

query I rowsort
SELECT DISTINCT + 15 * 71
----
1065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4022
SELECT 13 + - 30 + - - COUNT( * ) - - SUM( + 55 ) + + + 51 * + + 82 * + CAST( - 96 AS SIGNED ) + 36 * - - 82 AS col2
----
-398481

skipif mysql # not compatible
query I rowsort label-4022
SELECT 13 + - 30 + - - COUNT ( * ) - - SUM ( + 55 ) + + + 51 * + + 82 * + CAST ( - 96 AS INTEGER ) + 36 * - - 82 AS col2
----
-398481

query I rowsort
SELECT 52 + - ( + 43 ) + 2 AS col2
----
11

query I rowsort
SELECT 23 + ( + 8 ) + 83 + + 23 * - 25
----
-461

query I rowsort
SELECT ALL + ( - 58 ) - 97 * + 28 + + 97
----
-2677

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT COUNT( * ) * + 19 * - 35 * + 28
----
-18620

skipif mysql # not compatible
query I rowsort label-4026
SELECT COUNT ( * ) * + 19 * - 35 * + 28
----
-18620

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4027
SELECT DISTINCT 40 DIV - + CAST( - + 61 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT 40 / - + CAST ( - + 61 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT DISTINCT - CAST( 72 AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT - CAST ( 72 AS INTEGER ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT ALL 74 * - 93 AS col0, - ( 72 ) * COUNT( - 66 )
----
-6882
-72

skipif mysql # not compatible
query II rowsort label-4029
SELECT ALL 74 * - 93 AS col0, - ( 72 ) * COUNT ( - 66 )
----
-6882
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ( CASE - ( - 85 ) WHEN - 77 / + 19 + 21 THEN COUNT( * ) WHEN 51 + + ( + + 75 ) * + 67 * + 10 THEN 17 * - COUNT( * ) WHEN COUNT( * ) * + 55 * - 18 + + 8 THEN - - 53 END ) + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT ( CASE - ( - 85 ) WHEN - 77 / + 19 + 21 THEN COUNT ( * ) WHEN 51 + + ( + + 75 ) * + 67 * + 10 THEN 17 * - COUNT ( * ) WHEN COUNT ( * ) * + 55 * - 18 + + 8 THEN - - 53 END ) + + 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT - 18 DIV + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT - 18 / + 80 AS col1
----
0

query I rowsort
SELECT ALL 88 * + ( ( - 44 ) )
----
-3872

query I rowsort
SELECT - 57 * - - 52 + - 51 + + 66 - - - 79
----
-3028

onlyif mysql # DIV for integer division: 
query I rowsort label-4034
SELECT - 27 + - 61 DIV 73
----
-27

skipif mysql # not compatible
query I rowsort label-4034
SELECT - 27 + - 61 / 73
----
-27

query I rowsort
SELECT + 93 * + ( 8 ) AS col1
----
744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT ALL - 49 + + NULLIF ( 38, CASE - + ( 76 ) WHEN - CAST( NULL AS SIGNED ) / + - 96 - + 98 + - + 54 / - 63 * 59 + 54 THEN NULL WHEN + - 18 * 79 + 34 THEN - + 37 END )
----
-11

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL - 49 + + NULLIF ( 38, CASE - + ( 76 ) WHEN - CAST ( NULL AS INTEGER ) / + - 96 - + 98 + - + 54 / - 63 * 59 + 54 THEN NULL WHEN + - 18 * 79 + 34 THEN - + 37 END )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL - MAX( + + 93 ) + - - 58
----
-35

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - MAX ( + + 93 ) + - - 58
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL SUM( - 94 ) + - 99
----
-193

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL SUM ( - 94 ) + - 99
----
-193

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT - ( - - 43 ) - COUNT( * ) + - 92 - - + 45 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4039
SELECT - ( - - 43 ) - COUNT ( * ) + - 92 - - + 45 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4040
SELECT DISTINCT + COUNT( DISTINCT - - 76 ) AS col2, COUNT( * ) - - - 25 AS col2
----
1
-24

skipif mysql # not compatible
query II rowsort label-4040
SELECT DISTINCT + COUNT ( DISTINCT - - 76 ) AS col2, COUNT ( * ) - - - 25 AS col2
----
1
-24

query I rowsort
SELECT 39 * + - 20 AS col0
----
-780

onlyif mysql # aggregate syntax: 
query II rowsort label-4042
SELECT ALL 17 + + 8 + - 42 + - 53 AS col1, ( - 42 ) + 9 + MIN( - - 32 ) * 91 AS col1
----
-70
2879

skipif mysql # not compatible
query II rowsort label-4042
SELECT ALL 17 + + 8 + - 42 + - 53 AS col1, ( - 42 ) + 9 + MIN ( - - 32 ) * 91 AS col1
----
-70
2879

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT + 66 + 70 * - - 10 + - + SUM( 90 )
----
676

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + 66 + 70 * - - 10 + - + SUM ( 90 )
----
676

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4044
SELECT - 0 DIV - 85, AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4044
SELECT - 0 / - 85, AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4045
SELECT - CASE 28 WHEN + 4 * - CASE - 34 WHEN - - 22 THEN + 87 END + + COUNT( * ) + + 60 + - - 98 * ( - + 97 ) * 57 + + 7 - - + COUNT( * ) - + 18 - + 21 + - COALESCE ( - COUNT( DISTINCT + COALESCE ( - ( NULLIF ( - ( + 57 ), CAST( NULL AS DECIMAL ) ) ), ( + 5 ) / 57 ) ), 34 ) THEN ( - 70 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT - CASE 28 WHEN + 4 * - CASE - 34 WHEN - - 22 THEN + 87 END + + COUNT ( * ) + + 60 + - - 98 * ( - + 97 ) * 57 + + 7 - - + COUNT ( * ) - + 18 - + 21 + - COALESCE ( - COUNT ( DISTINCT + COALESCE ( - ( NULLIF ( - ( + 57 ), CAST ( NULL AS REAL ) ) ), ( + 5 ) / 57 ) ), 34 ) THEN ( - 70 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT ALL + 22 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + 22 / 58
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT DISTINCT + COALESCE ( - + ( - - 98 ), ( + - CAST( NULL AS SIGNED ) ) * 52 ) * + + 79 AS col1
----
-7742

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT + COALESCE ( - + ( - - 98 ), ( + - CAST ( NULL AS INTEGER ) ) * 52 ) * + + 79 AS col1
----
-7742

query I rowsort
SELECT ALL 83 * - 44
----
-3652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT ALL - CASE + NULLIF ( CAST( + COUNT( * ) AS SIGNED ), + AVG ( DISTINCT - CAST( - - 8 AS SIGNED ) ) ) WHEN - 36 THEN NULL WHEN - - 1 THEN + 46 END AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL - CASE + NULLIF ( CAST ( + COUNT ( * ) AS INTEGER ), + AVG ( DISTINCT - CAST ( - - 8 AS INTEGER ) ) ) WHEN - 36 THEN NULL WHEN - - 1 THEN + 46 END AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL + 16 * COUNT( * ) * - ( 88 ) - - CASE - - 87 WHEN - SUM( 85 ) + + 44 - - COUNT( * ) * - - ( + 36 ) * 24 + + 62 THEN 81 * + 95 ELSE - 97 END
----
-1505

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL + 16 * COUNT ( * ) * - ( 88 ) - - CASE - - 87 WHEN - SUM ( 85 ) + + 44 - - COUNT ( * ) * - - ( + 36 ) * 24 + + 62 THEN 81 * + 95 ELSE - 97 END
----
-1505

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT + COUNT( ALL - 16 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4051
SELECT + COUNT ( ALL - 16 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4052
SELECT 38 DIV - 49 - - 8 + SUM( ALL 80 ) AS col1, + 86
----
88
86

skipif mysql # not compatible
query II rowsort label-4052
SELECT 38 / - 49 - - 8 + SUM ( ALL 80 ) AS col1, + 86
----
88
86

query I rowsort
SELECT 16 + - 34 AS col2
----
-18

query I rowsort
SELECT 52 * - 84 col0
----
-4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4055
SELECT ALL - 38 - - COUNT( * ) + + 10 + + 19 DIV + + ( + 78 )
----
-27

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - 38 - - COUNT ( * ) + + 10 + + 19 / + + ( + 78 )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT 32 DIV 22 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4056
SELECT 32 / 22 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4057
SELECT ALL - 66 DIV - + SUM( NULLIF ( - + 71, - + 82 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL - 66 / - + SUM ( NULLIF ( - + 71, - + 82 ) )
----
0

query I rowsort
SELECT 42 * - + 33 AS col1
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL + 66 * COUNT( * ) * + 70 AS col1
----
4620

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + 66 * COUNT ( * ) * + 70 AS col1
----
4620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4060
SELECT ALL + CASE - - CASE + 74 WHEN CAST( NULL AS SIGNED ) + - - 73 * - + CASE NULLIF ( + CASE + + ( - 20 ) WHEN + 88 THEN NULL WHEN + + 31 * + 43 - - CAST( 20 AS SIGNED ) THEN - COUNT( * ) DIV + - 95 WHEN - + 84 + + 55 * 82 THEN CASE - + 79 WHEN - + 46 + - 66 * - 96 + - COUNT( DISTINCT + 90 ) DIV + ( ( - ( 48 ) ) ) THEN NULL WHEN + 50 THEN 2 * - 55 + + 14 END * 12 END, 25 * 43 ) WHEN 75 + + 49 THEN 20 * 30 WHEN SUM( DISTINCT - ( + 10 ) ) + 14 THEN NULL WHEN 21 + + 96 THEN - 66 END THEN + 36 * 0 WHEN 80 THEN 79 + + 25 END WHEN SUM( ALL + 16 ) * 4 THEN NULL ELSE + 11 END * MIN( 25 DIV 65 )
----
0

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL + CASE - - CASE + 74 WHEN CAST ( NULL AS INTEGER ) + - - 73 * - + CASE NULLIF ( + CASE + + ( - 20 ) WHEN + 88 THEN NULL WHEN + + 31 * + 43 - - CAST ( 20 AS INTEGER ) THEN - COUNT ( * ) / + - 95 WHEN - + 84 + + 55 * 82 THEN CASE - + 79 WHEN - + 46 + - 66 * - 96 + - COUNT ( DISTINCT + 90 ) / + ( ( - ( 48 ) ) ) THEN NULL WHEN + 50 THEN 2 * - 55 + + 14 END * 12 END, 25 * 43 ) WHEN 75 + + 49 THEN 20 * 30 WHEN SUM ( DISTINCT - ( + 10 ) ) + 14 THEN NULL WHEN 21 + + 96 THEN - 66 END THEN + 36 * 0 WHEN 80 THEN 79 + + 25 END WHEN SUM ( ALL + 16 ) * 4 THEN NULL ELSE + 11 END * MIN ( 25 / 65 )
----
0

query I rowsort
SELECT 32 * - ( - 9 ) AS col1
----
288

query I rowsort
SELECT ALL + 66 * + 85
----
5610

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT 76 * + COUNT( * ) + + + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4063
SELECT 76 * + COUNT ( * ) + + + COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT + 49 + - 56 + - + 9 * + 14 AS col2
----
-133

query I rowsort
SELECT - - 50 * - - 2 AS col2
----
100

query I rowsort
SELECT DISTINCT - + 40 * + 42
----
-1680

query II rowsort
SELECT + 91 * + 22 * + 1, - 35 AS col2
----
2002
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT ALL + CAST( + - 11 AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL + CAST ( + - 11 AS INTEGER ) AS col0
----
-11

query II rowsort
SELECT - 43 AS col0, - 67
----
-43
-67

query II rowsort
SELECT 26 AS col1, 90
----
26
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4071
SELECT ALL MAX( ALL 61 ) + + - CAST( NULL AS DECIMAL ) * - 59 * - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL MAX ( ALL 61 ) + + - CAST ( NULL AS REAL ) * - 59 * - 11
----
NULL

query I rowsort
SELECT + + 18 - - + 64
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4073
SELECT + - COUNT( * ) + + 6 DIV 98 * + 94
----
-1

skipif mysql # not compatible
query I rowsort label-4073
SELECT + - COUNT ( * ) + + 6 / 98 * + 94
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT ALL - 37 * + 90 / + 99 * + MAX( + CAST( NULL AS SIGNED ) ) + + - 36 + - + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - 37 * + 90 / + 99 * + MAX ( + CAST ( NULL AS INTEGER ) ) + + - 36 + - + 22
----
NULL

query I rowsort
SELECT + + 74 + - 16
----
58

query I rowsort
SELECT ALL + 63 + + 54 * 14 + + + 1 AS col0
----
820

query I rowsort
SELECT + 94 * + + 87 + 14
----
8192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4078
SELECT DISTINCT 63 * + CAST( COUNT( * ) AS SIGNED ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT 63 * + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT + 35 - - - COALESCE ( 84, + 0 ) + 16 * + + COUNT( * ) * COUNT( + 11 )
----
-33

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT + 35 - - - COALESCE ( 84, + 0 ) + 16 * + + COUNT ( * ) * COUNT ( + 11 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT SUM( + 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT SUM ( + 93 ) AS col0
----
93

query I rowsort
SELECT ALL 90 - 98
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4082
SELECT DISTINCT 39 AS col1, + COUNT( * ) DIV - 71 AS col1
----
39
0

skipif mysql # not compatible
query II rowsort label-4082
SELECT DISTINCT 39 AS col1, + COUNT ( * ) / - 71 AS col1
----
39
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT + COUNT( * ) + - 15 + - 73 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-4083
SELECT + COUNT ( * ) + - 15 + - 73 AS col2
----
-87

query I rowsort
SELECT + 65 * - 94 col2
----
-6110

query I rowsort
SELECT + 71 * 5 col0
----
355

query I rowsort
SELECT + 29 + - NULLIF ( - ( 33 ), + + 92 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT + 41 + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-4087
SELECT + 41 + - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4088
SELECT + 56, - NULLIF ( 34, - + ( COUNT( * ) ) ) col2
----
56
-34

skipif mysql # not compatible
query II rowsort label-4088
SELECT + 56, - NULLIF ( 34, - + ( COUNT ( * ) ) ) col2
----
56
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4089
SELECT ALL + 81, MIN( ALL NULLIF ( 36, + 37 ) ) AS col2
----
81
36

skipif mysql # not compatible
query II rowsort label-4089
SELECT ALL + 81, MIN ( ALL NULLIF ( 36, + 37 ) ) AS col2
----
81
36

query I rowsort
SELECT 42 * + 24 + 92
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - 23 + + + COUNT( * ) + 14 * ( - - COUNT( * ) ) * 85 * + 92 + + + 12 * + + MAX( ALL - 31 ) AS col0
----
109086

skipif mysql # not compatible
query I rowsort label-4091
SELECT - 23 + + + COUNT ( * ) + 14 * ( - - COUNT ( * ) ) * 85 * + 92 + + + 12 * + + MAX ( ALL - 31 ) AS col0
----
109086

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL 29 * + COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL 29 * + COUNT ( * ) AS col1
----
29

query I rowsort
SELECT DISTINCT - 52 * + - 2
----
104

query I rowsort
SELECT ALL 76 * + 77
----
5852

query I rowsort
SELECT + 87 + + 4
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT ALL + 13 AS col1, SUM( ALL - - 31 )
----
13
31

skipif mysql # not compatible
query II rowsort label-4096
SELECT ALL + 13 AS col1, SUM ( ALL - - 31 )
----
13
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT ALL + COALESCE ( COUNT( * ), + MAX( - 24 ) * + 54 * - 55 + - CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL + COALESCE ( COUNT ( * ), + MAX ( - 24 ) * + 54 * - 55 + - CAST ( NULL AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT + 11 * - - COUNT( * ) + + + 58
----
69

skipif mysql # not compatible
query I rowsort label-4098
SELECT + 11 * - - COUNT ( * ) + + + 58
----
69

query II rowsort
SELECT DISTINCT 28 * + + 95, 16 * + 91 AS col0
----
2660
1456

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4100
SELECT - 57 DIV + NULLIF ( + COUNT( * ), - 92 * 83 + - - 6 ) AS col1, 2 col2
----
-57
2

skipif mysql # not compatible
query II rowsort label-4100
SELECT - 57 / + NULLIF ( + COUNT ( * ), - 92 * 83 + - - 6 ) AS col1, 2 col2
----
-57
2

query I rowsort
SELECT ALL 67 * - ( + 36 ) + 99
----
-2313

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT 98 DIV + - 12 + - + 75
----
-83

skipif mysql # not compatible
query I rowsort label-4102
SELECT 98 / + - 12 + - + 75
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT CASE - ( - + 95 ) WHEN + + COUNT( * ) / + 22 THEN + 84 / + 8 + - 39 * COUNT( * ) + + + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT CASE - ( - + 95 ) WHEN + + COUNT ( * ) / + 22 THEN + 84 / + 8 + - 39 * COUNT ( * ) + + + 50 END
----
NULL

query II rowsort
SELECT + 91 col2, 34 AS col2
----
91
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4105
SELECT DISTINCT COUNT( * ) * 51 + - 42 * 46 * + NULLIF ( - 27, - 17 * + + CAST( 15 AS SIGNED ) + + - COALESCE ( ( - + NULLIF ( + + 18, - - NULLIF ( + - 79, ( - + 55 ) ) ) ), + - 69 + + - COUNT( * ) * 64 / ( - + ( - AVG ( DISTINCT - - 54 ) ) ) ) + COUNT( * ) + + CASE - ( + 0 ) WHEN 89 THEN - 62 WHEN - COUNT( * ) * - 20 THEN NULL WHEN + 31 + + 45 THEN 79 * 78 ELSE NULL END * 79 ) AS col1
----
52215

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT COUNT ( * ) * 51 + - 42 * 46 * + NULLIF ( - 27, - 17 * + + CAST ( 15 AS INTEGER ) + + - COALESCE ( ( - + NULLIF ( + + 18, - - NULLIF ( + - 79, ( - + 55 ) ) ) ), + - 69 + + - COUNT ( * ) * 64 / ( - + ( - AVG ( DISTINCT - - 54 ) ) ) ) + COUNT ( * ) + + CASE - ( + 0 ) WHEN 89 THEN - 62 WHEN - COUNT ( * ) * - 20 THEN NULL WHEN + 31 + + 45 THEN 79 * 78 ELSE NULL END * 79 ) AS col1
----
52215

onlyif mysql # DIV for integer division: 
query II rowsort label-4106
SELECT - 21 DIV + 64 AS col2, + 96 * 42 + + ( + 38 )
----
0
4070

skipif mysql # not compatible
query II rowsort label-4106
SELECT - 21 / + 64 AS col2, + 96 * 42 + + ( + 38 )
----
0
4070

query I rowsort
SELECT ALL - 86 * 18 + - + 25 col2
----
-1573

query II rowsort
SELECT + - 20 AS col1, 28
----
-20
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL - MAX( - - 38 ) * - 60 + - 1 - 35 + - - ( 56 ) + + COUNT( * ) + + - 37
----
2264

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL - MAX ( - - 38 ) * - 60 + - 1 - 35 + - - ( 56 ) + + COUNT ( * ) + + - 37
----
2264

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT - COUNT( * ) * - + 50 + + - 88 + - 81 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT - COUNT ( * ) * - + 50 + + - 88 + - 81 AS col0
----
-119

query I rowsort
SELECT - 75 + - + 11 AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4112
SELECT ALL 25 * 60 * + 58 * - 93 + + + SUM( 63 ) + - 54 + - COUNT( * ) - - + ( - ( 7 ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL 25 * 60 * + 58 * - 93 + + + SUM ( 63 ) + - 54 + - COUNT ( * ) - - + ( - ( 7 ) ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT + + COUNT( 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT + + COUNT ( 65 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 16 * - 28 AS col2
----
448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4115
SELECT ALL NULLIF ( - 74, ( + - 75 ) ) AS col1, + CAST( NULL AS SIGNED )
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-4115
SELECT ALL NULLIF ( - 74, ( + - 75 ) ) AS col1, + CAST ( NULL AS INTEGER )
----
-74
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4116
SELECT - ( ( CAST( NULL AS DECIMAL ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4116
SELECT - ( ( CAST ( NULL AS REAL ) ) ) AS col0
----
NULL

query I rowsort
SELECT + 46 * + + 34 - - 45 + + 59
----
1668

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL - 66 + + COUNT( 88 )
----
-65

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL - 66 + + COUNT ( 88 )
----
-65

query II rowsort
SELECT - 66 col1, - 82
----
-66
-82

query II rowsort
SELECT ALL - 58 AS col1, 62
----
-58
62

query II rowsort
SELECT ALL 28 AS col1, ( - 58 )
----
28
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4122
SELECT ALL - 48, CAST( NULL AS SIGNED ) + SUM( + 56 ) AS col1
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-4122
SELECT ALL - 48, CAST ( NULL AS INTEGER ) + SUM ( + 56 ) AS col1
----
-48
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4123
SELECT ALL + - 58 - - 43 + 23 * + COUNT( * ) * + - 42 DIV - COUNT( * )
----
951

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL + - 58 - - 43 + 23 * + COUNT ( * ) * + - 42 / - COUNT ( * )
----
951

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4124
SELECT ALL 95 col2, - CAST( NULL AS DECIMAL ) / - 19 - 0 - 61
----
95
NULL

skipif mysql # not compatible
query II rowsort label-4124
SELECT ALL 95 col2, - CAST ( NULL AS REAL ) / - 19 - 0 - 61
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT - - 51 - + MIN( DISTINCT 24 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4125
SELECT - - 51 - + MIN ( DISTINCT 24 ) AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4126
SELECT DISTINCT - - COUNT( * ) DIV - - NULLIF ( + + 75, 88 ) * 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT - - COUNT ( * ) / - - NULLIF ( + + 75, 88 ) * 39 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT MIN( ( - 45 ) ) * + + ( - 27 ) + - 24 + - 39 + - + 34 * 98 AS col2
----
-2180

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT MIN ( ( - 45 ) ) * + + ( - 27 ) + - 24 + - 39 + - + 34 * 98 AS col2
----
-2180

query I rowsort
SELECT + 6 * + 45 AS col0
----
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4129
SELECT + 35 DIV 5 * - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-4129
SELECT + 35 / 5 * - COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT DISTINCT + 65 * + 23 * - COUNT( * ) * + 43 * + 25 col1
----
-1607125

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + 65 * + 23 * - COUNT ( * ) * + 43 * + 25 col1
----
-1607125

query I rowsort
SELECT + 11 * 9 col1
----
99

query I rowsort
SELECT + 88 - - ( + ( - 70 ) )
----
18

query I rowsort
SELECT + 81 * 79 AS col2
----
6399

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4134
SELECT DISTINCT + ( + 39 ) DIV + - MIN( ALL - 35 ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT + ( + 39 ) / + - MIN ( ALL - 35 ) + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT + CASE + 72 WHEN + 32 THEN + NULLIF ( 31, - 79 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 74 + 32 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT - COALESCE ( + 83, + 31 + 84 * 74 + + + 92 * + ( - COUNT( DISTINCT - 31 ) ) ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT - COALESCE ( + 83, + 31 + 84 * 74 + + + 92 * + ( - COUNT ( DISTINCT - 31 ) ) ) col1
----
-83

query I rowsort
SELECT ALL - 4 + + - 36
----
-40

query I rowsort
SELECT ALL + 49 + + - 23
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT SUM( ALL + 33 ) + - ( - - 80 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4140
SELECT SUM ( ALL + 33 ) + - ( - - 80 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4141
SELECT ALL 34 * - + 45, + 48 * COUNT( * ) AS col0
----
-1530
48

skipif mysql # not compatible
query II rowsort label-4141
SELECT ALL 34 * - + 45, + 48 * COUNT ( * ) AS col0
----
-1530
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT + - 40 * 71 + - COUNT( * ) + 53
----
-2788

skipif mysql # not compatible
query I rowsort label-4142
SELECT + - 40 * 71 + - COUNT ( * ) + 53
----
-2788

query I rowsort
SELECT 4 * + ( + 13 ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4144
SELECT DISTINCT + + CAST( - 69 AS SIGNED ) - 63 col2, - 33 * - 92 AS col0
----
-132
3036

skipif mysql # not compatible
query II rowsort label-4144
SELECT DISTINCT + + CAST ( - 69 AS INTEGER ) - 63 col2, - 33 * - 92 AS col0
----
-132
3036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4145
SELECT 83 * + SUM( DISTINCT 38 ), + CAST( - 63 AS SIGNED ) + + 50 AS col2
----
3154
-13

skipif mysql # not compatible
query II rowsort label-4145
SELECT 83 * + SUM ( DISTINCT 38 ), + CAST ( - 63 AS INTEGER ) + + 50 AS col2
----
3154
-13

query I rowsort
SELECT ALL + + 22 * - 86 + - 74
----
-1966

query II rowsort
SELECT DISTINCT + 13 * + 47 * 92 AS col2, + 91
----
56212
91

query I rowsort
SELECT DISTINCT - 55 * - 83 + - 86
----
4479

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT ALL - CAST( - + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - CAST ( - + 1 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT 83 - - SUM( - 61 ) + + - 55
----
-33

skipif mysql # not compatible
query I rowsort label-4150
SELECT 83 - - SUM ( - 61 ) + + - 55
----
-33

query I rowsort
SELECT ALL + 79 * + 20 AS col2
----
1580

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4152
SELECT DISTINCT 4 AS col2, - 27 + + ( + 5 ) + 30 - - 47 * + NULLIF ( - - 94, CAST( NULL AS SIGNED ) * - 9 ) AS col0
----
4
4426

skipif mysql # not compatible
query II rowsort label-4152
SELECT DISTINCT 4 AS col2, - 27 + + ( + 5 ) + 30 - - 47 * + NULLIF ( - - 94, CAST ( NULL AS INTEGER ) * - 9 ) AS col0
----
4
4426

query I rowsort
SELECT 42 + COALESCE ( - - 50, + 25 - - - 57, - 51 ) * + 36 - 40 col1
----
1802

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT 51 + - - ( + MIN( DISTINCT 31 ) ) + + - 61 - + 78 * 62 col0
----
-4815

skipif mysql # not compatible
query I rowsort label-4154
SELECT 51 + - - ( + MIN ( DISTINCT 31 ) ) + + - 61 - + 78 * 62 col0
----
-4815

query I rowsort
SELECT ALL 76 * - 7
----
-532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4156
SELECT COUNT( ALL - - ( - CAST( NULL AS SIGNED ) ) ) DIV + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4156
SELECT COUNT ( ALL - - ( - CAST ( NULL AS INTEGER ) ) ) / + 98 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4157
SELECT CASE - - 0 WHEN - CAST( + + NULLIF ( + ( - 26 ), 57 ) AS DECIMAL ) THEN + COUNT( * ) + 15 + - + COALESCE ( SUM( DISTINCT - 85 ), + + COUNT( DISTINCT - + 4 ), 48, ( - ( + CAST( 92 AS SIGNED ) ) ) * + 5 + - COUNT( ALL + + 56 ) + 46 * 31 + - 42 + - 84 ) * 44 ELSE NULL END + + 93 + + 96 * 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT CASE - - 0 WHEN - CAST ( + + NULLIF ( + ( - 26 ), 57 ) AS REAL ) THEN + COUNT ( * ) + 15 + - + COALESCE ( SUM ( DISTINCT - 85 ), + + COUNT ( DISTINCT - + 4 ), 48, ( - ( + CAST ( 92 AS INTEGER ) ) ) * + 5 + - COUNT ( ALL + + 56 ) + 46 * 31 + - 42 + - 84 ) * 44 ELSE NULL END + + 93 + + 96 * 88 AS col1
----
NULL

query I rowsort
SELECT 41 * - 15
----
-615

query I rowsort
SELECT ALL 40 * 93 AS col1
----
3720

onlyif mysql # DIV for integer division: 
query I rowsort label-4160
SELECT 48 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-4160
SELECT 48 / - 82
----
0

query II rowsort
SELECT + 28 AS col0, - 67 AS col0
----
28
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT ALL + CAST( NULL AS SIGNED ) + ( - - 20 ) * - - CAST( 73 AS SIGNED ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + CAST ( NULL AS INTEGER ) + ( - - 20 ) * - - CAST ( 73 AS INTEGER ) * - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 38, + 74 AS col1
----
-38
74

query I rowsort
SELECT ALL - 45 * + + 29 * + 16
----
-20880

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT ( - 1 ) DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT ( - 1 ) / + 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4166
SELECT SUM( - 66 ) * - 5, 20 * + + 89 * - AVG ( ALL + CAST( NULL AS DECIMAL ) ) AS col1
----
330
NULL

skipif mysql # not compatible
query II rowsort label-4166
SELECT SUM ( - 66 ) * - 5, 20 * + + 89 * - AVG ( ALL + CAST ( NULL AS REAL ) ) AS col1
----
330
NULL

query I rowsort
SELECT - 10 + - 63
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-4168
SELECT 18 + - - 92 DIV - 46 AS col2, 36
----
16
36

skipif mysql # not compatible
query II rowsort label-4168
SELECT 18 + - - 92 / - 46 AS col2, 36
----
16
36

onlyif mysql # aggregate syntax: 
query II rowsort label-4169
SELECT ALL - COUNT( * ), 17 * + SUM( ALL + 41 ) AS col1
----
-1
697

skipif mysql # not compatible
query II rowsort label-4169
SELECT ALL - COUNT ( * ), 17 * + SUM ( ALL + 41 ) AS col1
----
-1
697

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT DISTINCT 30 - - - 79 + + 39 * - 5 + - 0 + - 30 + COUNT( * ) AS col1
----
-273

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT 30 - - - 79 + + 39 * - 5 + - 0 + - 30 + COUNT ( * ) AS col1
----
-273

query I rowsort
SELECT ALL + 6 * 92 col2
----
552

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4172
SELECT CAST( NULL AS DECIMAL ) + 7 - + 83 + + - 36 + - + ( + - 48 ) / - + ( - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT CAST ( NULL AS REAL ) + 7 - + 83 + + - 36 + - + ( + - 48 ) / - + ( - 45 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4173
SELECT DISTINCT - 16, 24 * - - COALESCE ( - + 66, ( 45 ) * + SUM( - + 60 ) * - 2 + 80 - + + 94 * + 69 + - 40 - + 49 ) col2
----
-16
-1584

skipif mysql # not compatible
query II rowsort label-4173
SELECT DISTINCT - 16, 24 * - - COALESCE ( - + 66, ( 45 ) * + SUM ( - + 60 ) * - 2 + 80 - + + 94 * + 69 + - 40 - + 49 ) col2
----
-16
-1584

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT 52 * + - NULLIF ( 53, + + 60 ) + - + 22 * - MAX( + ( - + 35 ) ) + - - 31 + - 10
----
-3505

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT 52 * + - NULLIF ( 53, + + 60 ) + - + 22 * - MAX ( + ( - + 35 ) ) + - - 31 + - 10
----
-3505

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT ALL - 18 AS col1, 30 + - + 31 + + COUNT( * ) * 67 AS col2
----
-18
66

skipif mysql # not compatible
query II rowsort label-4175
SELECT ALL - 18 AS col1, 30 + - + 31 + + COUNT ( * ) * 67 AS col2
----
-18
66

query I rowsort
SELECT DISTINCT + 56 * 44 * 30 * - 6 AS col1
----
-443520

onlyif mysql # DIV for integer division: 
query I rowsort label-4177
SELECT ( + 59 ) DIV - 20 + - - 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4177
SELECT ( + 59 ) / - 20 + - - 1 AS col2
----
-1

query I rowsort
SELECT - 1 * + 93
----
-93

query II rowsort
SELECT - 67 * - 71 * 54 * 52 * - ( - 88 ) - - + 25 * - 47 AS col2, + 28 AS col2
----
1175472553
28

query I rowsort
SELECT ALL - 79 + - 0 AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4181
SELECT COALESCE ( - 77, 40 + - 15 * MIN( ALL 12 ) - + 88, + + 67 * - 23 + - + 42 DIV - 82, + + 93 * + 90 ) * - - NULLIF ( - - 60, 51 * - MAX( + - 80 ) ) AS col0
----
-4620

skipif mysql # not compatible
query I rowsort label-4181
SELECT COALESCE ( - 77, 40 + - 15 * MIN ( ALL 12 ) - + 88, + + 67 * - 23 + - + 42 / - 82, + + 93 * + 90 ) * - - NULLIF ( - - 60, 51 * - MAX ( + - 80 ) ) AS col0
----
-4620

query I rowsort
SELECT DISTINCT - 93 * - 21 AS col1
----
1953

onlyif mysql # DIV for integer division: 
query II rowsort label-4183
SELECT ALL 53 DIV 79, - NULLIF ( + + 84, 31 ) AS col0
----
0
-84

skipif mysql # not compatible
query II rowsort label-4183
SELECT ALL 53 / 79, - NULLIF ( + + 84, 31 ) AS col0
----
0
-84

query I rowsort
SELECT ( + + 50 ) - 99 + + 55
----
6

query I rowsort
SELECT - NULLIF ( + + 16, + 19 )
----
-16

query I rowsort
SELECT ALL + 21 * 30
----
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4187
SELECT - COUNT( * ) * - COALESCE ( 69, - ( - + 37 ) ) / - + 2 - - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT - COUNT ( * ) * - COALESCE ( 69, - ( - + 37 ) ) / - + 2 - - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT ALL - COUNT( * ) + - + 9 * + COUNT( * ) + + 84 * + - 5 * + 1
----
-430

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - COUNT ( * ) + - + 9 * + COUNT ( * ) + + 84 * + - 5 * + 1
----
-430

query I rowsort
SELECT - ( 90 ) - 68
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT DISTINCT 35 * - + 34 + + 60 + + MAX( + 81 ) * + 88
----
5998

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT 35 * - + 34 + + 60 + + MAX ( + 81 ) * + 88
----
5998

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4191
SELECT NULLIF ( - CASE - 84 WHEN 96 THEN NULL ELSE - 34 + 30 + - 19 END, + 0 + CASE - 63 WHEN - 12 THEN + 89 END * + CAST( + 42 AS DECIMAL ) * + 71 + + 53 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4191
SELECT NULLIF ( - CASE - 84 WHEN 96 THEN NULL ELSE - 34 + 30 + - 19 END, + 0 + CASE - 63 WHEN - 12 THEN + 89 END * + CAST ( + 42 AS REAL ) * + 71 + + 53 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL COUNT( * ) * - 7 * NULLIF ( + COUNT( * ), 89 ) - - - COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL COUNT ( * ) * - 7 * NULLIF ( + COUNT ( * ), 89 ) - - - COUNT ( * ) AS col2
----
-8

query I rowsort
SELECT + 44 * + 38 * 85
----
142120

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT + CASE COUNT( * ) WHEN - 49 - + COUNT( 74 ) + + + ( - - 89 ) + + + 76 * + + 59 + + + ( + + 94 ) * 1 - + - 32 * - + COUNT( * ) * 21 / - 96 * + + 47 - COUNT( * ) * 68 THEN NULL WHEN 4 + - + ( - 97 ) - - 56 THEN NULL WHEN - 58 THEN - 78 + + + COUNT( * ) + 10 * - - 68 * COUNT( * ) * 62 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT + CASE COUNT ( * ) WHEN - 49 - + COUNT ( 74 ) + + + ( - - 89 ) + + + 76 * + + 59 + + + ( + + 94 ) * 1 - + - 32 * - + COUNT ( * ) * 21 / - 96 * + + 47 - COUNT ( * ) * 68 THEN NULL WHEN 4 + - + ( - 97 ) - - 56 THEN NULL WHEN - 58 THEN - 78 + + + COUNT ( * ) + 10 * - - 68 * COUNT ( * ) * 62 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4195
SELECT + 64 DIV + - 40 - + - 1
----
0

skipif mysql # not compatible
query I rowsort label-4195
SELECT + 64 / + - 40 - + - 1
----
0

query I rowsort
SELECT - - 90 * 39 AS col1
----
3510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4197
SELECT ALL - MAX( + - 45 ) * - 12 * 63 * - 95 + + 98 + - 43 DIV + COUNT( * ) col2
----
3231955

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - MAX ( + - 45 ) * - 12 * 63 * - 95 + + 98 + - 43 / + COUNT ( * ) col2
----
3231955

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4198
SELECT CASE + - 78 WHEN 82 THEN + 32 WHEN + ( - 27 ) THEN AVG ( + 20 ) * 24 * - 68 - - 73 + + CAST( NULL AS DECIMAL ) + - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT CASE + - 78 WHEN 82 THEN + 32 WHEN + ( - 27 ) THEN AVG ( + 20 ) * 24 * - 68 - - 73 + + CAST ( NULL AS REAL ) + - 97 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4199
SELECT ALL + ( + - 1 ) AS col0, + COUNT( * ) + 86 + 40
----
-1
127

skipif mysql # not compatible
query II rowsort label-4199
SELECT ALL + ( + - 1 ) AS col0, + COUNT ( * ) + 86 + 40
----
-1
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4200
SELECT + - COUNT( * ) DIV - 67 + 80
----
80

skipif mysql # not compatible
query I rowsort label-4200
SELECT + - COUNT ( * ) / - 67 + 80
----
80

query I rowsort
SELECT ALL - 35 * + 76
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT DISTINCT + 77 * + SUM( - 64 ) + + 24 + 81 + 89 * + 1 * - 3
----
-5090

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT + 77 * + SUM ( - 64 ) + + 24 + 81 + 89 * + 1 * - 3
----
-5090

query I rowsort
SELECT - 2 * + 23 col0
----
-46

query I rowsort
SELECT - - 38 - ( + ( - 58 ) )
----
96

query I rowsort
SELECT - + 63 + + 64
----
1

query II rowsort
SELECT + - 89 * - - 2 AS col2, 29 AS col0
----
-178
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT - ( + + NULLIF ( - NULLIF ( + 39, + - 59 * COUNT( * ) * + COUNT( * ) ), - 50 ) ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4207
SELECT - ( + + NULLIF ( - NULLIF ( + 39, + - 59 * COUNT ( * ) * + COUNT ( * ) ), - 50 ) ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL - - 88 * - CASE - ( + 10 ) WHEN - - 29 + - 74 / 71 * - + 11 THEN + COUNT( * ) * + + 64 - + - 96 WHEN + - 24 * + 36 + - COUNT( * ) + - + COUNT( * ) / + - 91 THEN NULL ELSE NULL END * + + 29 + + 81 * 35 + COUNT( * ) + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - - 88 * - CASE - ( + 10 ) WHEN - - 29 + - 74 / 71 * - + 11 THEN + COUNT ( * ) * + + 64 - + - 96 WHEN + - 24 * + 36 + - COUNT ( * ) + - + COUNT ( * ) / + - 91 THEN NULL ELSE NULL END * + + 29 + + 81 * 35 + COUNT ( * ) + 33 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT + 60 - 31 + + + 34 * - 25 + AVG ( - ( - 85 ) ) - CAST( + ( + 77 ) AS SIGNED ) * + CAST( NULL AS SIGNED ) * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT + 60 - 31 + + + 34 * - 25 + AVG ( - ( - 85 ) ) - CAST ( + ( + 77 ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) * 76
----
NULL

query I rowsort
SELECT ( - 94 ) col0
----
-94

query I rowsort
SELECT + 74 - 81
----
-7

query I rowsort
SELECT ALL 59 + - + 15 AS col0
----
44

query I rowsort
SELECT - ( + - 76 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT - MAX( ALL - - 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4214
SELECT - MAX ( ALL - - 75 ) AS col0
----
-75

query I rowsort
SELECT + 41 * - - 17
----
697

query I rowsort
SELECT ALL 47 + + 83 + - - 22 + - 71 * - 2
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4217
SELECT - COALESCE ( + ( + 40 ), + - 53 ) - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT - COALESCE ( + ( + 40 ), + - 53 ) - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 11 - + - 83 AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4219
SELECT DISTINCT 68 AS col1, - ( ( + 81 ) ) * + - 31 * + + 83 + + - CAST( NULL AS SIGNED ) * 60
----
68
NULL

skipif mysql # not compatible
query II rowsort label-4219
SELECT DISTINCT 68 AS col1, - ( ( + 81 ) ) * + - 31 * + + 83 + + - CAST ( NULL AS INTEGER ) * 60
----
68
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL + COUNT( * ) + 0 - + + 17 + - - 29 * 78 AS col0
----
2246

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + COUNT ( * ) + 0 - + + 17 + - - 29 * 78 AS col0
----
2246

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT DISTINCT - 62 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT - 62 / + 88
----
0

query I rowsort
SELECT + 75 + - 34 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT ALL - COUNT( * ) * - 69
----
69

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL - COUNT ( * ) * - 69
----
69

query I rowsort
SELECT ALL ( - 86 ) AS col1
----
-86

query I rowsort
SELECT - ( + 80 ) + 69 + - 5 * 30
----
-161

query I rowsort
SELECT ALL 33 * - 61
----
-2013

onlyif mysql # DIV for integer division: 
query I rowsort label-4227
SELECT + 39 DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-4227
SELECT + 39 / - 28
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL NULLIF ( + 38, CASE - 94 WHEN + - 74 + + 82 - COUNT( * ) * + + 48 * - ( + + 73 ) THEN + COUNT( * ) WHEN - - 43 THEN NULL END + 73 - + + 27 * - 68 / 80 + 7 )
----
38

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL NULLIF ( + 38, CASE - 94 WHEN + - 74 + + 82 - COUNT ( * ) * + + 48 * - ( + + 73 ) THEN + COUNT ( * ) WHEN - - 43 THEN NULL END + 73 - + + 27 * - 68 / 80 + 7 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT - CAST( + 99 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-4229
SELECT - CAST ( + 99 AS INTEGER )
----
-99

query I rowsort
SELECT - 21 * 1 col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT SUM( DISTINCT 9 ) * 18
----
162

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT SUM ( DISTINCT 9 ) * 18
----
162

query I rowsort
SELECT - 20 * 57 * + + 4 AS col0
----
-4560

query I rowsort
SELECT ALL 89 * 66 col1
----
5874

query II rowsort
SELECT + 7 AS col1, 22
----
7
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT - 86 * - COUNT( * ) + - 97 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4235
SELECT - 86 * - COUNT ( * ) + - 97 AS col1
----
-11

query I rowsort
SELECT - - 78 * 72
----
5616

onlyif mysql # aggregate syntax: 
query II rowsort label-4237
SELECT + 91 AS col0, - ( - SUM( + 7 ) ) * - + 5 col2
----
91
-35

skipif mysql # not compatible
query II rowsort label-4237
SELECT + 91 AS col0, - ( - SUM ( + 7 ) ) * - + 5 col2
----
91
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT 34 * - COUNT( * ) + + 18 - + ( 51 ) * - + MIN( 77 )
----
3911

skipif mysql # not compatible
query I rowsort label-4238
SELECT 34 * - COUNT ( * ) + + 18 - + ( 51 ) * - + MIN ( 77 )
----
3911

query I rowsort
SELECT - + 18 + 37 - 27
----
-8

query I rowsort
SELECT DISTINCT - - 10 * 19 + - 45 + + 85
----
230

query II rowsort
SELECT ALL - - 11 * + 41 + + 35, ( 29 ) + + - NULLIF ( + 48, + ( 74 ) * + 6 ) AS col0
----
486
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4242
SELECT ALL ( 64 ) * - + ( + ( - 10 ) ) * CAST( + CAST( + + 13 AS DECIMAL ) AS SIGNED ) * - CAST( - AVG ( DISTINCT - + 90 ) AS SIGNED ) * + 59 + + 43 + - 3 + + 63 * MIN( DISTINCT - 87 ) * 69 AS col1
----
-44557349

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL ( 64 ) * - + ( + ( - 10 ) ) * CAST ( + CAST ( + + 13 AS REAL ) AS INTEGER ) * - CAST ( - AVG ( DISTINCT - + 90 ) AS INTEGER ) * + 59 + + 43 + - 3 + + 63 * MIN ( DISTINCT - 87 ) * 69 AS col1
----
-44557349

query I rowsort
SELECT DISTINCT - 69 * + 35 + 5 + - 81 + 47
----
-2444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT DISTINCT - 62 * + + 69 + 45 * + CAST( NULL AS SIGNED ) + + 23 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT - 62 * + + 69 + 45 * + CAST ( NULL AS INTEGER ) + + 23 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT DISTINCT 86 * - 83 + + 23 * + 36 + - 13 - CAST( NULL AS SIGNED ) * + 30 * - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT 86 * - 83 + + 23 * + 36 + - 13 - CAST ( NULL AS INTEGER ) * + 30 * - + 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT + COUNT( * ) + - 24
----
-23

skipif mysql # not compatible
query I rowsort label-4246
SELECT + COUNT ( * ) + - 24
----
-23

query I rowsort
SELECT - 53 * - COALESCE ( - - ( 43 ), - - 97, - 65 ) AS col0
----
2279

query I rowsort
SELECT 41 * 54 AS col2
----
2214

query I rowsort
SELECT 77 + + + 78 AS col0
----
155

onlyif mysql # DIV for integer division: 
query II rowsort label-4250
SELECT 75 col2, 23 + - - 12 DIV - 94
----
75
23

skipif mysql # not compatible
query II rowsort label-4250
SELECT 75 col2, 23 + - - 12 / - 94
----
75
23

query II rowsort
SELECT ALL 58, - 61 + + + 43 - 26 + COALESCE ( - 86, + 34 ) AS col2
----
58
-130

query I rowsort
SELECT DISTINCT 58 + - 47 + - 44 AS col2
----
-33

query I rowsort
SELECT ALL 17 + + 34 - + 99 AS col0
----
-48

query II rowsort
SELECT DISTINCT 63 AS col1, - 33 col1
----
63
-33

query I rowsort
SELECT ALL 93 - - + ( + 68 ) AS col0
----
161

query I rowsort
SELECT 67 * - + 84 * 49
----
-275772

query I rowsort
SELECT DISTINCT 10 * + 95 col2
----
950

query I rowsort
SELECT ALL 45 * - - 54 AS col1
----
2430

query I rowsort
SELECT 57 * - + 3
----
-171

query I rowsort
SELECT 92 * - - 70 col0
----
6440

query II rowsort
SELECT 83 AS col1, + 98
----
83
98

query II rowsort
SELECT 89 AS col1, + 71
----
89
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT COUNT( * ) * COALESCE ( + 25, 98 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4263
SELECT COUNT ( * ) * COALESCE ( + 25, 98 ) AS col0
----
25

query I rowsort
SELECT 76 - - 15 AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT COUNT( * ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-4265
SELECT COUNT ( * ) / 67
----
0

query II rowsort
SELECT DISTINCT 56 * + 83, + 21 col2
----
4648
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT ALL 34 DIV + 65
----
0

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL 34 / + 65
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4268
SELECT - COUNT( * ) DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-4268
SELECT - COUNT ( * ) / + 83
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT ALL + - 64 DIV 43 + + 85
----
84

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + - 64 / 43 + + 85
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT ALL - + COUNT( ALL + 93 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL - + COUNT ( ALL + 93 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4271
SELECT ALL + 18 DIV + - ( - ( + CAST( 70 AS SIGNED ) ) ) - + 73 + - 12 - 7 * + ( 3 ) * - 21 * - 30 AS col0
----
-13315

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + 18 / + - ( - ( + CAST ( 70 AS INTEGER ) ) ) - + 73 + - 12 - 7 * + ( 3 ) * - 21 * - 30 AS col0
----
-13315

query I rowsort
SELECT - ( + ( 10 ) ) AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT + CAST( NULL AS SIGNED ) / + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT + CAST ( NULL AS INTEGER ) / + - COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT 51, - 90 AS col1
----
51
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT DISTINCT 19 * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT 19 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4276
SELECT ALL COUNT( * ) * + 5 - - - 53 + - AVG ( - + 74 ) * 19 * + 99 + + - 95 + CASE + - 68 WHEN + 30 THEN + - 25 + 22 WHEN + COUNT( * ) THEN + 71 WHEN - - 44 THEN + 9 ELSE + 39 END + + 10 + 76 * - 84 / ( + + 13 ) / 16 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL COUNT ( * ) * + 5 - - - 53 + - AVG ( - + 74 ) * 19 * + 99 + + - 95 + CASE + - 68 WHEN + 30 THEN + - 25 + 22 WHEN + COUNT ( * ) THEN + 71 WHEN - - 44 THEN + 9 ELSE + 39 END + + 10 + 76 * - 84 / ( + + 13 ) / 16 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT + 97 + + 39 + + COUNT( * ) + - MIN( 68 ) + - + 89 + - 57 * - 75
----
4255

skipif mysql # not compatible
query I rowsort label-4277
SELECT + 97 + + 39 + + COUNT ( * ) + - MIN ( 68 ) + - + 89 + - 57 * - 75
----
4255

query III rowsort
SELECT + 97 AS col0, - 80, + CASE + ( 87 ) WHEN 30 THEN NULL WHEN - + 59 THEN - + 28 * - + 6 + 90 + 12 ELSE NULL END + + 51 AS col2
----
97
-80
NULL

query I rowsort
SELECT DISTINCT - 94 + - 18
----
-112

query I rowsort
SELECT + 11 + + 26 + + 35
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL SUM( DISTINCT - 8 ) + COUNT( 69 )
----
-7

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL SUM ( DISTINCT - 8 ) + COUNT ( 69 )
----
-7

query I rowsort
SELECT ALL + 3 + - - NULLIF ( + + 18, 0 ) AS col1
----
21

query II rowsort
SELECT 69 AS col2, ( - 20 ) col2
----
69
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT ALL - + CAST( + + 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - + CAST ( + + 34 AS INTEGER )
----
-34

query I rowsort
SELECT + 56 * 14
----
784

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT ALL - 0 + + 0 + 97 + + + 57 DIV 96 + + 44
----
141

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - 0 + + 0 + 97 + + + 57 / 96 + + 44
----
141

query I rowsort
SELECT 62 - - 83
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT ALL - 89 DIV 61
----
-1

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL - 89 / 61
----
-1

query I rowsort
SELECT 77 * - 95 col1
----
-7315

query I rowsort
SELECT ALL - 17 - - - 76 - + 78 * + 53 * - - 68
----
-281205

query II rowsort
SELECT ALL + 62 * 69 col2, 21 AS col2
----
4278
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4292
SELECT ALL + CAST( + 54 AS SIGNED ) DIV 37 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL + CAST ( + 54 AS INTEGER ) / 37 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT 67 - + COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4293
SELECT 67 - + COUNT ( * ) AS col0
----
66

query I rowsort
SELECT DISTINCT + 72 * + 24 AS col0
----
1728

query I rowsort
SELECT ALL - 17 - 60 + - 2 AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT MIN( DISTINCT + + ( - 7 ) ) + - 23 DIV + 91 + + - MIN( + - 34 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4296
SELECT MIN ( DISTINCT + + ( - 7 ) ) + - 23 / + 91 + + - MIN ( + - 34 ) AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4297
SELECT 57 DIV - 55 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4297
SELECT 57 / - 55 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4298
SELECT NULLIF ( - + 21, - + 45 DIV CASE + + CAST( + 64 AS SIGNED ) WHEN ( - ( MIN( DISTINCT + 47 ) ) ) * 21 * - 54 THEN + COUNT( * ) WHEN + ( 36 ) DIV 65 THEN - + COUNT( * ) ELSE 15 * + - 50 + 82 END ) - 35 - + 19 - - 94 DIV + COUNT( * ) - - MAX( ALL 76 ) - - NULLIF ( - 36, - 97 + 75 - - - 12 ) * - 32
----
1247

skipif mysql # not compatible
query I rowsort label-4298
SELECT NULLIF ( - + 21, - + 45 / CASE + + CAST ( + 64 AS INTEGER ) WHEN ( - ( MIN ( DISTINCT + 47 ) ) ) * 21 * - 54 THEN + COUNT ( * ) WHEN + ( 36 ) / 65 THEN - + COUNT ( * ) ELSE 15 * + - 50 + 82 END ) - 35 - + 19 - - 94 / + COUNT ( * ) - - MAX ( ALL 76 ) - - NULLIF ( - 36, - 97 + 75 - - - 12 ) * - 32
----
1247

query I rowsort
SELECT 92 * 95 * + + 80
----
699200

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT ALL MAX( ALL + 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL MAX ( ALL + 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4301
SELECT DISTINCT COUNT( * ) * + 33, - COUNT( * ) col2
----
33
-1

skipif mysql # not compatible
query II rowsort label-4301
SELECT DISTINCT COUNT ( * ) * + 33, - COUNT ( * ) col2
----
33
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4302
SELECT ALL + 33 * - + CAST( NULL AS SIGNED ) AS col1, 86 AS col1
----
NULL
86

skipif mysql # not compatible
query II rowsort label-4302
SELECT ALL + 33 * - + CAST ( NULL AS INTEGER ) AS col1, 86 AS col1
----
NULL
86

query I rowsort
SELECT 18 + + ( + 22 )
----
40

query I rowsort
SELECT DISTINCT ( + 8 ) + - 19 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT ALL 7 * - COUNT( * ) * + 83 * - 74
----
42994

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL 7 * - COUNT ( * ) * + 83 * - 74
----
42994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT DISTINCT - 40 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT - 40 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL + - ( + 91 ) * - - COUNT( 85 ) + - - MAX( DISTINCT - 64 ) AS col0
----
-155

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL + - ( + 91 ) * - - COUNT ( 85 ) + - - MAX ( DISTINCT - 64 ) AS col0
----
-155

onlyif mysql # aggregate syntax: 
query II rowsort label-4308
SELECT ( + 68 ) col0, + 3 * - COALESCE ( COUNT( * ), COUNT( * ) + + + 66 ) AS col2
----
68
-3

skipif mysql # not compatible
query II rowsort label-4308
SELECT ( + 68 ) col0, + 3 * - COALESCE ( COUNT ( * ), COUNT ( * ) + + + 66 ) AS col2
----
68
-3

query I rowsort
SELECT 98 + + + 10 col0
----
108

onlyif mysql # DIV for integer division: 
query II rowsort label-4310
SELECT DISTINCT - 13 DIV - 52 AS col1, + 90 AS col1
----
0
90

skipif mysql # not compatible
query II rowsort label-4310
SELECT DISTINCT - 13 / - 52 AS col1, + 90 AS col1
----
0
90

query I rowsort
SELECT + 98 * + + ( + 81 )
----
7938

query I rowsort
SELECT ALL 37 * + + 26 AS col2
----
962

query I rowsort
SELECT + ( 90 ) + + + 73 * + 18 AS col1
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT MIN( ALL 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT MIN ( ALL 0 )
----
0

query I rowsort
SELECT + COALESCE ( 88, + 15 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4316
SELECT DISTINCT NULLIF ( MAX( - ( CAST( NULL AS SIGNED ) ) ), - 17 ) * - + 73 * - - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT NULLIF ( MAX ( - ( CAST ( NULL AS INTEGER ) ) ), - 17 ) * - + 73 * - - 34
----
NULL

query I rowsort
SELECT ALL 81 - + + 6
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4318
SELECT - 52 + ( - 33 ) + 27 DIV + 82 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4318
SELECT - 52 + ( - 33 ) + 27 / + 82 AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4319
SELECT + COALESCE ( - COUNT( * ), - - 85 * + COUNT( + + ( - 67 ) ) * - + 7, - CAST( NULL AS SIGNED ) + + + 41 ) AS col1, 99 AS col0
----
-1
99

skipif mysql # not compatible
query II rowsort label-4319
SELECT + COALESCE ( - COUNT ( * ), - - 85 * + COUNT ( + + ( - 67 ) ) * - + 7, - CAST ( NULL AS INTEGER ) + + + 41 ) AS col1, 99 AS col0
----
-1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT + COUNT( * ) * - 61
----
-61

skipif mysql # not compatible
query I rowsort label-4320
SELECT + COUNT ( * ) * - 61
----
-61

query I rowsort
SELECT - ( + - 6 ) * + ( 48 )
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT MAX( DISTINCT 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4322
SELECT MAX ( DISTINCT 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4323
SELECT DISTINCT + COUNT( * ) DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + COUNT ( * ) / - 61 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4324
SELECT - 80 DIV - 36
----
2

skipif mysql # not compatible
query I rowsort label-4324
SELECT - 80 / - 36
----
2

query II rowsort
SELECT - ( - + COALESCE ( + + 96, ( + 86 ) ) ) * + 73, - 8 col1
----
7008
-8

query I rowsort
SELECT ALL + 23 * - + 55 AS col0
----
-1265

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL COALESCE ( + 17, + - 64 * + + 92 + + - 21, + 35 * - COUNT( * ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL COALESCE ( + 17, + - 64 * + + 92 + + - 21, + 35 * - COUNT ( * ) ) AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT DISTINCT + 14 * 57 / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT + 14 * 57 / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4329
SELECT DISTINCT + 41 DIV - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + 41 / - 91 AS col1
----
0

query II rowsort
SELECT - 62 * + + 97 * - + 57 AS col1, 91 - 54
----
342798
37

onlyif mysql # aggregate syntax: 
query II rowsort label-4331
SELECT ALL - ( 97 ) + 5, 21 + + + MIN( ALL - 12 ) * - NULLIF ( + 65, 74 ) AS col0
----
-92
801

skipif mysql # not compatible
query II rowsort label-4331
SELECT ALL - ( 97 ) + 5, 21 + + + MIN ( ALL - 12 ) * - NULLIF ( + 65, 74 ) AS col0
----
-92
801

query I rowsort
SELECT - 52 - - 5
----
-47

query I rowsort
SELECT ALL + - 42 + - - ( - 95 )
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4334
SELECT - ( 37 ) - - COUNT( * ) - + - 39 + - 62 * + - 4 * + 13 * COALESCE ( 83, CAST( NULL AS SIGNED ) ) + - + 29 * - 64 AS col0
----
269451

skipif mysql # not compatible
query I rowsort label-4334
SELECT - ( 37 ) - - COUNT ( * ) - + - 39 + - 62 * + - 4 * + 13 * COALESCE ( 83, CAST ( NULL AS INTEGER ) ) + - + 29 * - 64 AS col0
----
269451

query I rowsort
SELECT - ( CASE + + 46 WHEN COALESCE ( 4, - ( + 84 ) ) * - + 10 * - + 0 THEN - 69 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT + 0 + + - 25
----
-25

query I rowsort
SELECT ALL + 36 + 40 AS col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4338
SELECT DISTINCT 28 + + 20 + 12 DIV - 82
----
48

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT 28 + + 20 + 12 / - 82
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL COUNT( * ) * - 78 * 21
----
-1638

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL COUNT ( * ) * - 78 * 21
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT + + 81 - 80 + 12 * COUNT( ALL - 83 ) col0
----
13

skipif mysql # not compatible
query I rowsort label-4340
SELECT + + 81 - 80 + 12 * COUNT ( ALL - 83 ) col0
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4341
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 20
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT ALL COALESCE ( ( + + 59 ), CAST( NULL AS SIGNED ) ) * + + 58 * + 86 + 4 AS col1
----
294296

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL COALESCE ( ( + + 59 ), CAST ( NULL AS INTEGER ) ) * + + 58 * + 86 + 4 AS col1
----
294296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4343
SELECT 20 DIV + 54 - 2 + - COUNT( * ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-4343
SELECT 20 / + 54 - 2 + - COUNT ( * ) col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT + ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4344
SELECT + ( + + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT + 65 * - 93 + + + 64
----
-5981

query II rowsort
SELECT + 89 AS col1, 79 AS col0
----
89
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL + 23 * MIN( + + 92 ) AS col1
----
2116

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL + 23 * MIN ( + + 92 ) AS col1
----
2116

query I rowsort
SELECT + ( + 78 ) * 82
----
6396

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT + 91 DIV + 96 + + 84 col0
----
84

skipif mysql # not compatible
query I rowsort label-4349
SELECT + 91 / + 96 + + 84 col0
----
84

query I rowsort
SELECT ( - 25 ) AS col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4351
SELECT + 23 DIV - - 10 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4351
SELECT + 23 / - - 10 AS col0
----
2

query I rowsort
SELECT + 28 * - + 41 AS col1
----
-1148

onlyif mysql # DIV for integer division: 
query II rowsort label-4353
SELECT ALL 34 DIV 13 AS col0, - 73 + - + 28 + ( 25 ) + - 45 AS col1
----
2
-121

skipif mysql # not compatible
query II rowsort label-4353
SELECT ALL 34 / 13 AS col0, - 73 + - + 28 + ( 25 ) + - 45 AS col1
----
2
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4354
SELECT + 40 + 80 * - 44 * + CAST( - CAST( 98 AS SIGNED ) AS SIGNED ) * 40 - - MIN( ALL - 3 ) AS col2, 42 AS col2
----
13798437
42

skipif mysql # not compatible
query II rowsort label-4354
SELECT + 40 + 80 * - 44 * + CAST ( - CAST ( 98 AS INTEGER ) AS INTEGER ) * 40 - - MIN ( ALL - 3 ) AS col2, 42 AS col2
----
13798437
42

query I rowsort
SELECT + 5 * - + 26
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT COALESCE ( + 15, + COUNT( * ), - 59 + - + 55 )
----
15

skipif mysql # not compatible
query I rowsort label-4356
SELECT COALESCE ( + 15, + COUNT ( * ), - 59 + - + 55 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT DISTINCT COUNT( * ) * + MIN( + + 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT COUNT ( * ) * + MIN ( + + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT ALL 84 * - CASE 63 WHEN + - COUNT( * ) THEN - 83 ELSE - 35 + 54 END * - COUNT( * ) + - MIN( + 92 ) + 2 * + 99 + - + 62 + - 60 AS col1, + 65 * - 91 * + 92 + + SUM( DISTINCT + 43 )
----
1580
-544137

skipif mysql # not compatible
query II rowsort label-4358
SELECT ALL 84 * - CASE 63 WHEN + - COUNT ( * ) THEN - 83 ELSE - 35 + 54 END * - COUNT ( * ) + - MIN ( + 92 ) + 2 * + 99 + - + 62 + - 60 AS col1, + 65 * - 91 * + 92 + + SUM ( DISTINCT + 43 )
----
1580
-544137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4359
SELECT ALL + COUNT( * ) * + - 75 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL + COUNT ( * ) * + - 75 / + 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT + CAST( + 21 AS SIGNED ) * - + NULLIF ( + + 30, - 37 ) + + 24 AS col2
----
-606

skipif mysql # not compatible
query I rowsort label-4360
SELECT + CAST ( + 21 AS INTEGER ) * - + NULLIF ( + + 30, - 37 ) + + 24 AS col2
----
-606

query I rowsort
SELECT + 86 - - 73 + - 74 AS col0
----
85

query I rowsort
SELECT ALL + 69 * - - 8 + - 36
----
516

onlyif mysql # aggregate syntax: 
query II rowsort label-4363
SELECT + 62 - - COUNT( * ) + + ( + 28 ) AS col1, - 59 * 43
----
91
-2537

skipif mysql # not compatible
query II rowsort label-4363
SELECT + 62 - - COUNT ( * ) + + ( + 28 ) AS col1, - 59 * 43
----
91
-2537

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4364
SELECT + CAST( NULL AS SIGNED ) * CAST( + NULLIF ( + 25, + - ( - 93 ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT + CAST ( NULL AS INTEGER ) * CAST ( + NULLIF ( + 25, + - ( - 93 ) ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4365
SELECT COUNT( DISTINCT - 78 ), - 73 AS col1
----
1
-73

skipif mysql # not compatible
query II rowsort label-4365
SELECT COUNT ( DISTINCT - 78 ), - 73 AS col1
----
1
-73

onlyif mysql # aggregate syntax: 
query III rowsort label-4366
SELECT MIN( ALL + 5 ), + NULLIF ( + - COUNT( * ), - 69 ) AS col1, + SUM( ALL + 57 ) AS col2
----
5
-1
57

skipif mysql # not compatible
query III rowsort label-4366
SELECT MIN ( ALL + 5 ), + NULLIF ( + - COUNT ( * ), - 69 ) AS col1, + SUM ( ALL + 57 ) AS col2
----
5
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT ALL - MIN( ALL + 90 ) * 23 + + 27
----
-2043

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL - MIN ( ALL + 90 ) * 23 + + 27
----
-2043

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT + - COUNT( * ) + - 33 + + - 6
----
-40

skipif mysql # not compatible
query I rowsort label-4368
SELECT + - COUNT ( * ) + - 33 + + - 6
----
-40

query II rowsort
SELECT + + 51 + - 71, 24 AS col1
----
-20
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL - COALESCE ( - 69, - 62, + 72 + 59 - 4 * - + COUNT( * ) - 66 + - 60 * - 52 )
----
69

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL - COALESCE ( - 69, - 62, + 72 + 59 - 4 * - + COUNT ( * ) - 66 + - 60 * - 52 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT - - CASE 37 WHEN - 69 THEN - 71 * + 60 * COUNT( * ) * + - 63 * - + 56 * - + COUNT( * ) + + 83 - - 79 END + - - AVG ( 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT - - CASE 37 WHEN - 69 THEN - 71 * + 60 * COUNT ( * ) * + - 63 * - + 56 * - + COUNT ( * ) + + 83 - - 79 END + - - AVG ( 7 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT ALL - 70 + + - 28 DIV 54
----
-70

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL - 70 + + - 28 / 54
----
-70

query I rowsort
SELECT DISTINCT - 7 * + 27 + - - 67
----
-122

query I rowsort
SELECT ALL - - 2 + 98
----
100

query I rowsort
SELECT - 0 + 31
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT - + COUNT( * ) * + 74 + - SUM( 40 ) * - CASE - - ( + 67 ) WHEN - 51 THEN - 9 * + 46 ELSE NULL END * + 41 + + + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT - + COUNT ( * ) * + 74 + - SUM ( 40 ) * - CASE - - ( + 67 ) WHEN - 51 THEN - 9 * + 46 ELSE NULL END * + 41 + + + 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT + + ( + - 73 ) * - + SUM( - - 17 )
----
1241

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT + + ( + - 73 ) * - + SUM ( - - 17 )
----
1241

query I rowsort
SELECT 37 * - 23 col2
----
-851

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4379
SELECT 96 + + 93 col2, - ( 59 ) - + MIN( DISTINCT + + 56 ) - 96 DIV - 41 AS col1
----
189
-113

skipif mysql # not compatible
query II rowsort label-4379
SELECT 96 + + 93 col2, - ( 59 ) - + MIN ( DISTINCT + + 56 ) - 96 / - 41 AS col1
----
189
-113

query I rowsort
SELECT + 75 + 59 + - 25 AS col1
----
109

query I rowsort
SELECT DISTINCT + 22 - + + 67 - 30 AS col1
----
-75

query I rowsort
SELECT + - CASE - 17 WHEN + ( 24 ) THEN - 86 END AS col0
----
NULL

query II rowsort
SELECT ALL - ( - 58 ) AS col2, - 61 col2
----
58
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-4384
SELECT DISTINCT - + SUM( DISTINCT - 9 ), - 38 AS col2
----
9
-38

skipif mysql # not compatible
query II rowsort label-4384
SELECT DISTINCT - + SUM ( DISTINCT - 9 ), - 38 AS col2
----
9
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-4385
SELECT ALL - COUNT( * ) AS col1, + 35 + + COUNT( * )
----
-1
36

skipif mysql # not compatible
query II rowsort label-4385
SELECT ALL - COUNT ( * ) AS col1, + 35 + + COUNT ( * )
----
-1
36

query I rowsort
SELECT 51 * - 56
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL - 58 * - - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - 58 * - - COUNT ( * )
----
-58

query II rowsort
SELECT + 55 AS col1, 27 * + - 94 AS col0
----
55
-2538

onlyif mysql # DIV for integer division: 
query II rowsort label-4389
SELECT 33, - 35 DIV - 56 AS col1
----
33
0

skipif mysql # not compatible
query II rowsort label-4389
SELECT 33, - 35 / - 56 AS col1
----
33
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT 5 DIV + 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4390
SELECT 5 / + 48 AS col2
----
0

query I rowsort
SELECT 76 * 8
----
608

query I rowsort
SELECT DISTINCT 28 * - 8 * + COALESCE ( 51, - 71 )
----
-11424

query I rowsort
SELECT DISTINCT - 41 * - CASE 49 WHEN - 57 THEN 85 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4394
SELECT 59 * - 50 * + 40 * - 95 * + COALESCE ( - 43, 37 DIV 19 ) + - + 53 + 2 + 52 + 11 * - + COALESCE ( - 14, - + 95 * 21, COUNT( * ) ) * - 44 * 36
----
-482273935

skipif mysql # not compatible
query I rowsort label-4394
SELECT 59 * - 50 * + 40 * - 95 * + COALESCE ( - 43, 37 / 19 ) + - + 53 + 2 + 52 + 11 * - + COALESCE ( - 14, - + 95 * 21, COUNT ( * ) ) * - 44 * 36
----
-482273935

query II rowsort
SELECT + 31 AS col1, 46 + + ( - + 83 ) AS col2
----
31
-37

query I rowsort
SELECT ALL 45 + 60 * + 55 col1
----
3345

query I rowsort
SELECT DISTINCT 80 + - 23
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT 74 * 43 * + - 77 + - NULLIF ( + 19, + COUNT( * ) * + 74 )
----
-245033

skipif mysql # not compatible
query I rowsort label-4398
SELECT 74 * 43 * + - 77 + - NULLIF ( + 19, + COUNT ( * ) * + 74 )
----
-245033

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL SUM( + - 90 ) * 90 AS col1
----
-8100

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL SUM ( + - 90 ) * 90 AS col1
----
-8100

query I rowsort
SELECT - + ( + + 32 ) AS col1
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT DISTINCT + 41 + + 76 DIV 83
----
41

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT + 41 + + 76 / 83
----
41

query II rowsort
SELECT - - 96 AS col1, 60 AS col0
----
96
60

query I rowsort
SELECT ALL 1 - ( + 37 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4404
SELECT CASE + - 30 WHEN 62 * + ( - COALESCE ( + - COUNT( * ), + CAST( NULL AS SIGNED ) * + 53 ) ) + + ( - COUNT( * ) ) THEN + COUNT( * ) WHEN + - 42 + - COUNT( * ) * - ( - 23 ) THEN MIN( - 6 ) END * + - 78 * + 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT CASE + - 30 WHEN 62 * + ( - COALESCE ( + - COUNT ( * ), + CAST ( NULL AS INTEGER ) * + 53 ) ) + + ( - COUNT ( * ) ) THEN + COUNT ( * ) WHEN + - 42 + - COUNT ( * ) * - ( - 23 ) THEN MIN ( - 6 ) END * + - 78 * + 73 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT + 23 * 10 * 5 * ( - + 54 ) + - ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT + 23 * 10 * 5 * ( - + 54 ) + - ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL + SUM( + - NULLIF ( 94, - - COALESCE ( + 53, - 69 * - 61 ) ) ) - - ( - 19 )
----
-113

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL + SUM ( + - NULLIF ( 94, - - COALESCE ( + 53, - 69 * - 61 ) ) ) - - ( - 19 )
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT + 20 * + - ( + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-4407
SELECT + 20 * + - ( + COUNT ( * ) )
----
-20

query I rowsort
SELECT + ( - 8 ) - + + 77 * - + 75
----
5767

query II rowsort
SELECT - 1, 0 + + + 39 AS col0
----
-1
39

query I rowsort
SELECT 44 + - + 61
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL - + 57 * + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL - + 57 * + - COUNT ( * )
----
57

query I rowsort
SELECT DISTINCT 74 * - 25 AS col2
----
-1850

query I rowsort
SELECT 86 * + ( 53 ) AS col0
----
4558

query I rowsort
SELECT ALL - 26 * + 66
----
-1716

query I rowsort
SELECT ALL + 72 * - + 55 AS col1
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT MAX( DISTINCT + + 96 ) * + 64 + + + 41
----
6185

skipif mysql # not compatible
query I rowsort label-4416
SELECT MAX ( DISTINCT + + 96 ) * + 64 + + + 41
----
6185

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4417
SELECT + CAST( - NULLIF ( 77, + 11 ) AS SIGNED ) DIV + + 62 - + ( - 54 ) * 73 + 7 + - 36
----
3912

skipif mysql # not compatible
query I rowsort label-4417
SELECT + CAST ( - NULLIF ( 77, + 11 ) AS INTEGER ) / + + 62 - + ( - 54 ) * 73 + 7 + - 36
----
3912

onlyif mysql # aggregate syntax: 
query II rowsort label-4418
SELECT COUNT( * ) AS col1, 81 - MAX( 10 ) + - + COUNT( * )
----
1
70

skipif mysql # not compatible
query II rowsort label-4418
SELECT COUNT ( * ) AS col1, 81 - MAX ( 10 ) + - + COUNT ( * )
----
1
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4419
SELECT 76 DIV + NULLIF ( + + 67, - 86 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4419
SELECT 76 / + NULLIF ( + + 67, - 86 ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4420
SELECT 12 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT 12 * + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL - 50 AS col1, + 9 col2
----
-50
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4422
SELECT ALL - 27 + NULLIF ( 14, - SUM( - 64 ) ) * - CAST( NULL AS SIGNED ) * - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL - 27 + NULLIF ( 14, - SUM ( - 64 ) ) * - CAST ( NULL AS INTEGER ) * - 14
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4423
SELECT DISTINCT - 27, + 74 - - ( + + 25 ) * - 44 - NULLIF ( + COUNT( ALL ( 26 ) ), + + 40 * + 55 + COUNT( + 90 ) ) col0
----
-27
-1027

skipif mysql # not compatible
query II rowsort label-4423
SELECT DISTINCT - 27, + 74 - - ( + + 25 ) * - 44 - NULLIF ( + COUNT ( ALL ( 26 ) ), + + 40 * + 55 + COUNT ( + 90 ) ) col0
----
-27
-1027

onlyif mysql # aggregate syntax: 
query II rowsort label-4424
SELECT COUNT( * ) AS col0, 14 AS col2
----
1
14

skipif mysql # not compatible
query II rowsort label-4424
SELECT COUNT ( * ) AS col0, 14 AS col2
----
1
14

query II rowsort
SELECT + 18, 22 AS col1
----
18
22

query II rowsort
SELECT ALL - 40 AS col2, + 93 * - + 90 * - 67 AS col2
----
-40
560790

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4427
SELECT - 44 DIV 8 + + NULLIF ( + 89, + + 52 * - COUNT( * ) + MAX( + 24 ) ) + + + ( 98 ) + + 66 col0, 77 * + + 77 + + - ( + 89 ) + 17 * + 40 AS col1
----
248
6520

skipif mysql # not compatible
query II rowsort label-4427
SELECT - 44 / 8 + + NULLIF ( + 89, + + 52 * - COUNT ( * ) + MAX ( + 24 ) ) + + + ( 98 ) + + 66 col0, 77 * + + 77 + + - ( + 89 ) + 17 * + 40 AS col1
----
248
6520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4428
SELECT ALL + 64 + + 21 * - - 21 + - 16 DIV 60 DIV - COALESCE ( + - 66, ( - ( + 5 ) ) - 58 ) * + COUNT( * ) - + COALESCE ( 41, - 14 * + ( - + 60 ) + - + MIN( - 95 ) ) - - 54 * + 45
----
2894

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL + 64 + + 21 * - - 21 + - 16 / 60 / - COALESCE ( + - 66, ( - ( + 5 ) ) - 58 ) * + COUNT ( * ) - + COALESCE ( 41, - 14 * + ( - + 60 ) + - + MIN ( - 95 ) ) - - 54 * + 45
----
2894

query I rowsort
SELECT 91 + + 85 + 35
----
211

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT MAX( + + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-4430
SELECT MAX ( + + 85 )
----
85

query I rowsort
SELECT 1 + 59
----
60

query I rowsort
SELECT 36 * + ( + CASE - COALESCE ( - 37, - + 51 ) WHEN - AVG ( 27 ) THEN + 14 ELSE 47 END ) AS col1
----
1692

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4433
SELECT DISTINCT - 92 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT - 92 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4434
SELECT ALL - CAST( + 52 AS SIGNED ), 85 * ( + + 37 ) AS col2
----
-52
3145

skipif mysql # not compatible
query II rowsort label-4434
SELECT ALL - CAST ( + 52 AS INTEGER ), 85 * ( + + 37 ) AS col2
----
-52
3145

query II rowsort
SELECT - 19 * + 28 + 60 - - - 84 AS col2, 62 * + 11 - ( 62 )
----
-556
620

onlyif mysql # DIV for integer division: 
query II rowsort label-4436
SELECT ALL - 85 AS col0, 91 DIV + 77
----
-85
1

skipif mysql # not compatible
query II rowsort label-4436
SELECT ALL - 85 AS col0, 91 / + 77
----
-85
1

query I rowsort
SELECT 20 + 66
----
86

query I rowsort
SELECT DISTINCT - + 94 * + - ( + ( 53 ) ) * 44 + 22 + 4 AS col0
----
219234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT ALL - CASE SUM( DISTINCT 8 ) WHEN + + 15 THEN + CASE COUNT( * ) WHEN - 80 * + + 99 + CAST( NULL AS SIGNED ) * + COUNT( * ) * + 76 THEN + NULLIF ( + COALESCE ( - 93, + 75 ), + + 59 ) ELSE NULL END + + + ( - + ( + 34 ) ) WHEN - 9 THEN NULL WHEN 73 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL - CASE SUM ( DISTINCT 8 ) WHEN + + 15 THEN + CASE COUNT ( * ) WHEN - 80 * + + 99 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + 76 THEN + NULLIF ( + COALESCE ( - 93, + 75 ), + + 59 ) ELSE NULL END + + + ( - + ( + 34 ) ) WHEN - 9 THEN NULL WHEN 73 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 55 - 24 + - 65 * + 61
----
-3934

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT 11 * + + MAX( + - 26 )
----
-286

skipif mysql # not compatible
query I rowsort label-4441
SELECT 11 * + + MAX ( + - 26 )
----
-286

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT COUNT( * ) + + - 37 + - 34 + - - 16 DIV - 33 + + COUNT( * ) * + MIN( DISTINCT + 97 )
----
27

skipif mysql # not compatible
query I rowsort label-4442
SELECT COUNT ( * ) + + - 37 + - 34 + - - 16 / - 33 + + COUNT ( * ) * + MIN ( DISTINCT + 97 )
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT CAST( NULL AS SIGNED ) * + SUM( + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT CAST ( NULL AS INTEGER ) * + SUM ( + 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4444
SELECT 68 AS col2, + 81 * - MAX( 21 ) col0
----
68
-1701

skipif mysql # not compatible
query II rowsort label-4444
SELECT 68 AS col2, + 81 * - MAX ( 21 ) col0
----
68
-1701

onlyif mysql # aggregate syntax: 
query II rowsort label-4445
SELECT ALL 11, 93 * + COUNT( + - 97 ) * - COUNT( * ) AS col1
----
11
-93

skipif mysql # not compatible
query II rowsort label-4445
SELECT ALL 11, 93 * + COUNT ( + - 97 ) * - COUNT ( * ) AS col1
----
11
-93

query I rowsort
SELECT - 21 + 53
----
32

query II rowsort
SELECT - 34, 75 * + 91 + + 49 AS col2
----
-34
6874

onlyif mysql # aggregate syntax: 
query II rowsort label-4448
SELECT + + COUNT( * ) + + - 50 + - 19 * - + 8 * 48 - 27, ( - COUNT( * ) ) AS col1
----
7220
-1

skipif mysql # not compatible
query II rowsort label-4448
SELECT + + COUNT ( * ) + + - 50 + - 19 * - + 8 * 48 - 27, ( - COUNT ( * ) ) AS col1
----
7220
-1

query I rowsort
SELECT - 35 + 33
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT + NULLIF ( + 88, - 55 ) DIV - 66 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4450
SELECT + NULLIF ( + 88, - 55 ) / - 66 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL 74 * - COUNT( * ) * + - 22
----
1628

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL 74 * - COUNT ( * ) * + - 22
----
1628

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4452
SELECT ALL + 23 AS col1, 32 * COUNT( * ) DIV - + 76 AS col1
----
23
0

skipif mysql # not compatible
query II rowsort label-4452
SELECT ALL + 23 AS col1, 32 * COUNT ( * ) / - + 76 AS col1
----
23
0

query I rowsort
SELECT + 48 + + + 63
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT ALL - 46, COUNT( * ) AS col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-4454
SELECT ALL - 46, COUNT ( * ) AS col2
----
-46
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4455
SELECT + + CAST( - 82 AS SIGNED ) + + COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4455
SELECT + + CAST ( - 82 AS INTEGER ) + + COUNT ( * ) AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT ALL - CAST( - 49 AS SIGNED ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - CAST ( - 49 AS INTEGER ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT DISTINCT 63 * + SUM( DISTINCT - + 99 ) AS col0
----
-6237

skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT 63 * + SUM ( DISTINCT - + 99 ) AS col0
----
-6237

query II rowsort
SELECT + 41 AS col1, 76 * + 24
----
41
1824

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL MAX( ALL - 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL MAX ( ALL - 8 ) AS col2
----
-8

query I rowsort
SELECT DISTINCT + COALESCE ( 77, + 65 ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT + CAST( NULL AS SIGNED ) + - 48 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT + CAST ( NULL AS INTEGER ) + - 48 + - COUNT ( * )
----
NULL

query I rowsort
SELECT + ( - + 94 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT ALL - COUNT( * ) * - ( + 29 ) + + + COUNT( * ) * - + 50 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL - COUNT ( * ) * - ( + 29 ) + + + COUNT ( * ) * - + 50 AS col1
----
-21

query I rowsort
SELECT - 46 * + ( + + 76 )
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT - 63 + COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-4465
SELECT - 63 + COUNT ( * ) AS col1
----
-62

query I rowsort
SELECT DISTINCT ( - 6 ) * + 42 + 93 AS col0
----
-159

query I rowsort
SELECT + COALESCE ( - - 15, + 96 ) AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT + 86 - - 61 + - 32 + + 6 DIV - 71 * + 96
----
115

skipif mysql # not compatible
query I rowsort label-4468
SELECT + 86 - - 61 + - 32 + + 6 / - 71 * + 96
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4469
SELECT NULLIF ( 31, + SUM( - COALESCE ( + - ( + 42 ), 56 ) ) ) AS col1, + CAST( NULL AS DECIMAL ) + + + MIN( - 56 ), + COUNT( ALL + 41 ) + + 61 / + + CAST( NULL AS SIGNED ) AS col2
----
31
NULL
NULL

skipif mysql # not compatible
query III rowsort label-4469
SELECT NULLIF ( 31, + SUM ( - COALESCE ( + - ( + 42 ), 56 ) ) ) AS col1, + CAST ( NULL AS REAL ) + + + MIN ( - 56 ), + COUNT ( ALL + 41 ) + + 61 / + + CAST ( NULL AS INTEGER ) AS col2
----
31
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4470
SELECT 33 DIV - 49 + + - 93 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4470
SELECT 33 / - 49 + + - 93 AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4471
SELECT 33 * + + 28 * - - COALESCE ( + - 41, + + 80 DIV 33 DIV + - 31 ) + - 29
----
-37913

skipif mysql # not compatible
query I rowsort label-4471
SELECT 33 * + + 28 * - - COALESCE ( + - 41, + + 80 / 33 / + - 31 ) + - 29
----
-37913

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT - 52 + + 83 DIV - 88 * 11 * 52 DIV 82 col1
----
-52

skipif mysql # not compatible
query I rowsort label-4472
SELECT - 52 + + 83 / - 88 * 11 * 52 / 82 col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4473
SELECT ALL + CAST( NULL AS SIGNED ) * + 64 - - COALESCE ( 68, - + 86, + + MIN( DISTINCT - 56 ) ) * - 94 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + CAST ( NULL AS INTEGER ) * + 64 - - COALESCE ( 68, - + 86, + + MIN ( DISTINCT - 56 ) ) * - 94 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT ( + 63 ), - 39 * + - 78 * 68 * + SUM( DISTINCT + 78 ) col2
----
63
16134768

skipif mysql # not compatible
query II rowsort label-4474
SELECT ( + 63 ), - 39 * + - 78 * 68 * + SUM ( DISTINCT + 78 ) col2
----
63
16134768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4475
SELECT - CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) * + - 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-4475
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * + - 49 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT + 0 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + 0 * - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4477
SELECT + 93 * - + MIN( DISTINCT - 24 ) + + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT + 93 * - + MIN ( DISTINCT - 24 ) + + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + + COUNT( * ) * + + 55 * 81
----
4455

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + + COUNT ( * ) * + + 55 * 81
----
4455

query II rowsort
SELECT ALL + + 99 * + 34 AS col0, ( + - 73 )
----
3366
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL + COUNT( ALL ( + 75 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL + COUNT ( ALL ( + 75 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL + + 24 + + - COUNT( * ) * + MIN( ALL + - 79 ) + - 20 * - 57 AS col2
----
1243

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + + 24 + + - COUNT ( * ) * + MIN ( ALL + - 79 ) + - 20 * - 57 AS col2
----
1243

query I rowsort
SELECT ALL + 26 + - 31
----
-5

query I rowsort
SELECT + 96 * 29
----
2784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4484
SELECT - CAST( NULL AS SIGNED ) - + + 24 AS col0, - CAST( 39 AS SIGNED ) + + 27 + + 29 AS col0
----
NULL
17

skipif mysql # not compatible
query II rowsort label-4484
SELECT - CAST ( NULL AS INTEGER ) - + + 24 AS col0, - CAST ( 39 AS INTEGER ) + + 27 + + 29 AS col0
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT - COUNT( * ) * + CASE + + 8 WHEN + 47 THEN - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT - COUNT ( * ) * + CASE + + 8 WHEN + 47 THEN - 19 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT - CAST( - - 33 AS SIGNED ) + - 22
----
-55

skipif mysql # not compatible
query I rowsort label-4486
SELECT - CAST ( - - 33 AS INTEGER ) + - 22
----
-55

query II rowsort
SELECT 55 col1, + NULLIF ( - 13, + + 27 ) * + 30
----
55
-390

query II rowsort
SELECT ALL 34 + - 42 * - 15, + 83 col0
----
664
83

query I rowsort
SELECT - ( + + 33 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-4490
SELECT ALL COUNT( * ) AS col0, + 64
----
1
64

skipif mysql # not compatible
query II rowsort label-4490
SELECT ALL COUNT ( * ) AS col0, + 64
----
1
64

query II rowsort
SELECT - ( + ( 82 ) ), 70 AS col2
----
-82
70

query I rowsort
SELECT DISTINCT 69 + + 75 AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL COUNT( * ) * + 26 * + COUNT( * ) * + - 78 AS col2
----
-2028

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL COUNT ( * ) * + 26 * + COUNT ( * ) * + - 78 AS col2
----
-2028

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT - CAST( + 90 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-4494
SELECT - CAST ( + 90 AS INTEGER )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT 82 * - CAST( - - 6 AS SIGNED ) + + 31 AS col0
----
-461

skipif mysql # not compatible
query I rowsort label-4495
SELECT 82 * - CAST ( - - 6 AS INTEGER ) + + 31 AS col0
----
-461

query I rowsort
SELECT + ( 24 ) AS col2
----
24

query I rowsort
SELECT + ( - 34 ) col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT CAST( 95 AS SIGNED ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4498
SELECT CAST ( 95 AS INTEGER ) AS col1
----
95

query I rowsort
SELECT + 56 * 48
----
2688

query II rowsort
SELECT ALL + 65 col2, 49 AS col0
----
65
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4501
SELECT CAST( 70 AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4501
SELECT CAST ( 70 AS INTEGER ) AS col2
----
70

query I rowsort
SELECT 81 * + + 64 + - + 29 * + ( - 74 )
----
7330

query I rowsort
SELECT - 50 * + 51 AS col2
----
-2550

query I rowsort
SELECT 12 + + - 13 * + - 24 AS col2
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT + COUNT( * ) * + 39 * + 29 + 72
----
1203

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + COUNT ( * ) * + 39 * + 29 + 72
----
1203

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4506
SELECT - 96, + 59 * 89 + - - CAST( NULL AS SIGNED ) AS col0
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-4506
SELECT - 96, + 59 * 89 + - - CAST ( NULL AS INTEGER ) AS col0
----
-96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT 17 DIV - NULLIF ( - - 19, - 58 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT 17 / - NULLIF ( - - 19, - 58 ) AS col1
----
0

query I rowsort
SELECT 91 * + + 87 - + + 15 + + 38
----
7940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4509
SELECT MIN( + 16 ) DIV 29 * 35 * + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4509
SELECT MIN ( + 16 ) / 29 * 35 * + 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL - 36 + + 2 + - ( 19 ) + SUM( DISTINCT - 12 )
----
-65

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - 36 + + 2 + - ( 19 ) + SUM ( DISTINCT - 12 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT DISTINCT + 77 + + 90 + - - CASE - - 78 WHEN + + COUNT( * ) * - + SUM( 13 ) + - 80 - - 56 - - 12 + 15 * + - 83 THEN - ( 47 ) / + 14 + - 88 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + 77 + + 90 + - - CASE - - 78 WHEN + + COUNT ( * ) * - + SUM ( 13 ) + - 80 - - 56 - - 12 + 15 * + - 83 THEN - ( 47 ) / + 14 + - 88 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT DISTINCT + COALESCE ( + - 79, + 53 DIV - COUNT( * ) + + 19 * - + 35 + + 51, - - ( 6 ), + - COUNT( * ) )
----
-79

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT + COALESCE ( + - 79, + 53 / - COUNT ( * ) + + 19 * - + 35 + + 51, - - ( 6 ), + - COUNT ( * ) )
----
-79

query I rowsort
SELECT ALL + 44 + + + ( + 18 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4514
SELECT - 42 AS col1, COUNT( * ) DIV ( 96 ) AS col2
----
-42
0

skipif mysql # not compatible
query II rowsort label-4514
SELECT - 42 AS col1, COUNT ( * ) / ( 96 ) AS col2
----
-42
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4515
SELECT - 58 AS col0, + COUNT( * ) AS col0
----
-58
1

skipif mysql # not compatible
query II rowsort label-4515
SELECT - 58 AS col0, + COUNT ( * ) AS col0
----
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT COALESCE ( - 92, COUNT( * ) * + 95 + - SUM( + ( + 26 ) ) + ( 27 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT COALESCE ( - 92, COUNT ( * ) * + 95 + - SUM ( + ( + 26 ) ) + ( 27 ) )
----
-92

query I rowsort
SELECT ALL + 95 + + 92 AS col0
----
187

query I rowsort
SELECT ( - 55 ) + 46
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT + 51 * + 48 + - SUM( DISTINCT - + 56 ) AS col0
----
2504

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT + 51 * + 48 + - SUM ( DISTINCT - + 56 ) AS col0
----
2504

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT 89 DIV + 52
----
1

skipif mysql # not compatible
query I rowsort label-4520
SELECT 89 / + 52
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4521
SELECT SUM( + ( + 11 ) ) * + 81 * - + 43 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT SUM ( + ( + 11 ) ) * + 81 * - + 43 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT + SUM( - 60 ) + 69
----
9

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT + SUM ( - 60 ) + 69
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT 14 + COUNT( * ) + - 80 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4523
SELECT 14 + COUNT ( * ) + - 80 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-4524
SELECT COUNT( * ) + MIN( ALL - + ( + 49 ) ) * 5, - 74 AS col2
----
-244
-74

skipif mysql # not compatible
query II rowsort label-4524
SELECT COUNT ( * ) + MIN ( ALL - + ( + 49 ) ) * 5, - 74 AS col2
----
-244
-74

query I rowsort
SELECT 1 + + + 84 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4526
SELECT 4 DIV - 2 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4526
SELECT 4 / - 2 AS col1
----
-2

query I rowsort
SELECT 40 * + 91 AS col0
----
3640

query I rowsort
SELECT 11 + + ( + COALESCE ( + - 12, - - 86 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ( 96 ) + + + COUNT( * ) col1
----
97

skipif mysql # not compatible
query I rowsort label-4529
SELECT ( 96 ) + + + COUNT ( * ) col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT DISTINCT CAST( + 72 AS SIGNED ) * + - ( + + COUNT( * ) ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT CAST ( + 72 AS INTEGER ) * + - ( + + COUNT ( * ) ) col0
----
-72

query I rowsort
SELECT + 48 * 23 AS col1
----
1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4532
SELECT DISTINCT - + NULLIF ( - COUNT( * ), + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - 51 * + COUNT( * ) * + + 79 + - + 17 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT - + NULLIF ( - COUNT ( * ), + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - 51 * + COUNT ( * ) * + + 79 + - + 17 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL - MIN( ALL + + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - MIN ( ALL + + 91 )
----
-91

query I rowsort
SELECT - 14 * 91 AS col2
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL MIN( 58 ) + - 29
----
29

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL MIN ( 58 ) + - 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT + + MAX( - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-4536
SELECT + + MAX ( - 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL + MAX( 7 ) + - 65
----
-58

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL + MAX ( 7 ) + - 65
----
-58

query II rowsort
SELECT DISTINCT 29 + COALESCE ( - + 21, - - 15 ), 55 AS col0
----
8
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4539
SELECT - CAST( + NULLIF ( ( + - CAST( NULL AS SIGNED ) ), - 17 * + MAX( 71 ) / 70 - + 8 + - 46 - - COUNT( * ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4539
SELECT - CAST ( + NULLIF ( ( + - CAST ( NULL AS INTEGER ) ), - 17 * + MAX ( 71 ) / 70 - + 8 + - 46 - - COUNT ( * ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT ALL + COUNT( * ) + 81 * 62 AS col1
----
5023

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + COUNT ( * ) + 81 * 62 AS col1
----
5023

query I rowsort
SELECT 65 * - 64 * - 14 * + 5
----
291200

onlyif mysql # aggregate syntax: 
query II rowsort label-4542
SELECT 44 * + - COUNT( * ) col2, - NULLIF ( - + COUNT( * ), - + 43 ) * 24 + + + COALESCE ( - + 21, + ( + ( + ( + + COUNT( * ) ) ) ) ) * - 73
----
-44
1557

skipif mysql # not compatible
query II rowsort label-4542
SELECT 44 * + - COUNT ( * ) col2, - NULLIF ( - + COUNT ( * ), - + 43 ) * 24 + + + COALESCE ( - + 21, + ( + ( + ( + + COUNT ( * ) ) ) ) ) * - 73
----
-44
1557

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4543
SELECT DISTINCT - - COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT - - COUNT ( * ) / COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL + MAX( ALL + 66 ) - + - CASE + 15 WHEN - + 39 THEN + 0 END + 18 - - 90 + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + MAX ( ALL + 66 ) - + - CASE + 15 WHEN - + 39 THEN + 0 END + 18 - - 90 + 42 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT AVG ( + - 58 ) + + CASE 2 WHEN + - 76 + - 62 THEN NULL WHEN - - COUNT( * ) / 92 THEN NULL WHEN + COUNT( * ) * + + CAST( NULL AS SIGNED ) + + 11 THEN + 54 WHEN COUNT( * ) THEN - 38 - - - 71 ELSE - - COUNT( * ) * + + 74 * - 44 - - 64 + - 40 + - SUM( - + 39 ) + - + NULLIF ( - - 90, ( 36 ) ) * + 21 / - CASE 61 WHEN 59 THEN 31 + - 13 END / 90 END + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT AVG ( + - 58 ) + + CASE 2 WHEN + - 76 + - 62 THEN NULL WHEN - - COUNT ( * ) / 92 THEN NULL WHEN + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + + 11 THEN + 54 WHEN COUNT ( * ) THEN - 38 - - - 71 ELSE - - COUNT ( * ) * + + 74 * - 44 - - 64 + - 40 + - SUM ( - + 39 ) + - + NULLIF ( - - 90, ( 36 ) ) * + 21 / - CASE 61 WHEN 59 THEN 31 + - 13 END / 90 END + + 25
----
NULL

query II rowsort
SELECT DISTINCT 0 col1, + ( 23 )
----
0
23

query I rowsort
SELECT 95 - - - 85
----
10

query I rowsort
SELECT 30 * 29
----
870

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL SUM( ALL - 35 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL SUM ( ALL - 35 ) AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT ALL - ( + - COUNT( * ) ) * 29
----
29

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL - ( + - COUNT ( * ) ) * 29
----
29

query I rowsort
SELECT 39 - + COALESCE ( - 76, 22, 65 ) + - 35
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - COUNT( * ) - - + 86
----
85

skipif mysql # not compatible
query I rowsort label-4552
SELECT - COUNT ( * ) - - + 86
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4553
SELECT - MAX( ALL - + 15 ) + 76 AS col1, + 29
----
91
29

skipif mysql # not compatible
query II rowsort label-4553
SELECT - MAX ( ALL - + 15 ) + 76 AS col1, + 29
----
91
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT - - 99 * 22 + 96 - + - MIN( 70 ) * 15 AS col1
----
3324

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT - - 99 * 22 + 96 - + - MIN ( 70 ) * 15 AS col1
----
3324

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL + + 34 * 10 * COUNT( * ) + 7
----
347

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + + 34 * 10 * COUNT ( * ) + 7
----
347

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT - - 68 * + COUNT( * ) * 21 + 95 + - MAX( DISTINCT - 5 )
----
1528

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT - - 68 * + COUNT ( * ) * 21 + 95 + - MAX ( DISTINCT - 5 )
----
1528

query I rowsort
SELECT + ( - - 84 )
----
84

query I rowsort
SELECT DISTINCT ( - 38 ) * + 67 + + + 46
----
-2500

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT - - NULLIF ( - 74, 90 ) + + 91 * - + 85 + + 38 + + COUNT( * ) AS col1
----
-7770

skipif mysql # not compatible
query I rowsort label-4559
SELECT - - NULLIF ( - 74, 90 ) + + 91 * - + 85 + + 38 + + COUNT ( * ) AS col1
----
-7770

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4560
SELECT + 54 col2, 7 * CASE 32 WHEN + - 26 + + + 90 + + 59 + - 49 THEN NULL ELSE CAST( 41 AS SIGNED ) DIV - 84 END * - 45 DIV 41 AS col2
----
54
0

skipif mysql # not compatible
query II rowsort label-4560
SELECT + 54 col2, 7 * CASE 32 WHEN + - 26 + + + 90 + + 59 + - 49 THEN NULL ELSE CAST ( 41 AS INTEGER ) / - 84 END * - 45 / 41 AS col2
----
54
0

query I rowsort
SELECT ALL 4 * - 25 + + 34
----
-66

query I rowsort
SELECT + - 55 * + 17 + + 12
----
-923

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT + 71 - + + 24 + 56 + 86 DIV - 66 - - 21 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-4563
SELECT + 71 - + + 24 + 56 + 86 / - 66 - - 21 AS col1
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL + MIN( - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL + MIN ( - 45 )
----
-45

query I rowsort
SELECT DISTINCT 62 * 10 - - + 89 AS col2
----
709

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT - COUNT( 52 ) * 14 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4566
SELECT - COUNT ( 52 ) * 14 AS col0
----
-14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4567
SELECT - ( CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT - ( CAST ( NULL AS REAL ) ) col1
----
NULL

query II rowsort
SELECT + 23 + - - 2 * + 85 * - 82 AS col2, 75 * + 65
----
-13917
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT - COUNT( 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-4569
SELECT - COUNT ( 72 )
----
-1

query I rowsort
SELECT - ( - 36 ) col0
----
36

query II rowsort
SELECT DISTINCT 95 AS col0, - 76 AS col0
----
95
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4572
SELECT + NULLIF ( + 74, + 18 ) DIV - - COUNT( * ) + + - 42 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-4572
SELECT + NULLIF ( + 74, + 18 ) / - - COUNT ( * ) + + - 42 AS col1
----
32

query I rowsort
SELECT - 17 * - 89 * + 56 AS col1
----
84728

query I rowsort
SELECT - 76 + + 43 - + + 62 - + + ( - 1 ) * 99 AS col2
----
4

query I rowsort
SELECT - 93 + - 41
----
-134

query I rowsort
SELECT DISTINCT 52 * + - 15 AS col1
----
-780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4577
SELECT + 81 DIV + MAX( 18 ) * + COUNT( * ), + 93 col0
----
4
93

skipif mysql # not compatible
query II rowsort label-4577
SELECT + 81 / + MAX ( 18 ) * + COUNT ( * ), + 93 col0
----
4
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 49 col0
----
NULL

query I rowsort
SELECT + 57 * 17 AS col0
----
969

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT ALL + 88 DIV + - 99
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL + 88 / + - 99
----
0

query I rowsort
SELECT - 33 + - 45 * 58
----
-2643

onlyif mysql # DIV for integer division: 
query II rowsort label-4582
SELECT ALL NULLIF ( 24, 60 ) DIV 35 * + ( - 0 ) col1, + 33 + + + 17 + + CASE - 57 WHEN + + 4 THEN 46 WHEN + 98 THEN NULL END AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4582
SELECT ALL NULLIF ( 24, 60 ) / 35 * + ( - 0 ) col1, + 33 + + + 17 + + CASE - 57 WHEN + + 4 THEN 46 WHEN + 98 THEN NULL END AS col0
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT + 45 DIV + 2 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4583
SELECT + 45 / + 2 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL COUNT( DISTINCT + + ( - + 38 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL COUNT ( DISTINCT + + ( - + 38 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT + COUNT( * ) + + - 30 col0
----
-29

skipif mysql # not compatible
query I rowsort label-4585
SELECT + COUNT ( * ) + + - 30 col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4586
SELECT - CAST( NULL AS SIGNED ) AS col2, ( CAST( NULL AS DECIMAL ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4586
SELECT - CAST ( NULL AS INTEGER ) AS col2, ( CAST ( NULL AS REAL ) ) AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4587
SELECT 32, - CAST( 17 AS SIGNED ) AS col2
----
32
-17

skipif mysql # not compatible
query II rowsort label-4587
SELECT 32, - CAST ( 17 AS INTEGER ) AS col2
----
32
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL - 16 * + COUNT( * ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - 16 * + COUNT ( * ) AS col0
----
-16

query I rowsort
SELECT DISTINCT - - 7 + + 7 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT ALL 44 DIV COUNT( * ) + - + 20 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL 44 / COUNT ( * ) + - + 20 AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT DISTINCT + - COUNT( + 81 ), - MIN( - 15 ) * - 48 AS col2
----
-1
-720

skipif mysql # not compatible
query II rowsort label-4591
SELECT DISTINCT + - COUNT ( + 81 ), - MIN ( - 15 ) * - 48 AS col2
----
-1
-720

query I rowsort
SELECT ALL + + ( - 35 ) AS col2
----
-35

query II rowsort
SELECT + 26 AS col2, + 29
----
26
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4594
SELECT ALL - MAX( 40 ) DIV + - 42 + + 29 * - 67 + + 77 + + COUNT( * ) + 2 + - COALESCE ( - COUNT( * ), - - 61 DIV + 64 )
----
-1862

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL - MAX ( 40 ) / + - 42 + + 29 * - 67 + + 77 + + COUNT ( * ) + 2 + - COALESCE ( - COUNT ( * ), - - 61 / + 64 )
----
-1862

query I rowsort
SELECT - 72 * + - 37
----
2664

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT 71 * - ( + COUNT( * ) ) + - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-4596
SELECT 71 * - ( + COUNT ( * ) ) + - COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4597
SELECT DISTINCT + 46, ( COUNT( * ) ) AS col1
----
46
1

skipif mysql # not compatible
query II rowsort label-4597
SELECT DISTINCT + 46, ( COUNT ( * ) ) AS col1
----
46
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4598
SELECT ALL ( - 74 ) DIV + 48 + - ( 68 ) + - 93 DIV 77 * + COUNT( * ) - + 31
----
-101

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL ( - 74 ) / + 48 + - ( 68 ) + - 93 / 77 * + COUNT ( * ) - + 31
----
-101

query I rowsort
SELECT - - 11 * - + 40 - 83 * - 92
----
7196

query I rowsort
SELECT ALL - 72 * ( + 55 ) * + 4 - + + 83
----
-15923

query II rowsort
SELECT 8, - 48 * 73 AS col2
----
8
-3504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT + 76 * - CAST( + + 56 AS SIGNED ) AS col0
----
-4256

skipif mysql # not compatible
query I rowsort label-4602
SELECT + 76 * - CAST ( + + 56 AS INTEGER ) AS col0
----
-4256

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT NULLIF ( - COUNT( * ), + 20 * - - 3 - + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4603
SELECT NULLIF ( - COUNT ( * ), + 20 * - - 3 - + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT + 40 * + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4604
SELECT + 40 * + COUNT ( * ) AS col2
----
40

query I rowsort
SELECT DISTINCT 87 * ( - - 42 )
----
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT COUNT( * ) + + CASE - 47 WHEN + 11 * 17 THEN - 92 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT COUNT ( * ) + + CASE - 47 WHEN + 11 * 17 THEN - 92 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4607
SELECT NULLIF ( - - 55, + + 75 + 49 ) * + + COUNT( * ) + 31 * + + CAST( - 72 AS SIGNED )
----
-2177

skipif mysql # not compatible
query I rowsort label-4607
SELECT NULLIF ( - - 55, + + 75 + 49 ) * + + COUNT ( * ) + 31 * + + CAST ( - 72 AS INTEGER )
----
-2177

query I rowsort
SELECT ALL 92 + + 8
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT 29 + 87 AS col2, - 79 - - 33 * + COUNT( * ) * 80 AS col2
----
116
2561

skipif mysql # not compatible
query II rowsort label-4609
SELECT 29 + 87 AS col2, - 79 - - 33 * + COUNT ( * ) * 80 AS col2
----
116
2561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT ( + - COALESCE ( - COUNT( * ), + - 2, - - 59 ) ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-4610
SELECT ( + - COALESCE ( - COUNT ( * ), + - 2, - - 59 ) ) / + 50
----
0

query I rowsort
SELECT ALL 56 + + 16 * + 38 * + 61 * + - 40
----
-1483464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 2 * + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 2 * + 55
----
NULL

query I rowsort
SELECT ALL - 12 + - 64
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4614
SELECT CAST( + 24 AS SIGNED ) * + - 77 + 94 * + + 8 AS col0
----
-1096

skipif mysql # not compatible
query I rowsort label-4614
SELECT CAST ( + 24 AS INTEGER ) * + - 77 + 94 * + + 8 AS col0
----
-1096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4615
SELECT COUNT( * ) DIV - + 96
----
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT COUNT ( * ) / - + 96
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4616
SELECT - COUNT( + CASE + - 35 WHEN + - 44 THEN NULL ELSE - 18 + - 47 + + 62 END ) AS col1, + 52 + + CASE + NULLIF ( + 42, - 88 ) WHEN - - 8 + + COUNT( + 25 ) THEN + CAST( - + 7 AS SIGNED ) WHEN - - 1 / 58 + + - 52 THEN - 84 ELSE NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4616
SELECT - COUNT ( + CASE + - 35 WHEN + - 44 THEN NULL ELSE - 18 + - 47 + + 62 END ) AS col1, + 52 + + CASE + NULLIF ( + 42, - 88 ) WHEN - - 8 + + COUNT ( + 25 ) THEN + CAST ( - + 7 AS INTEGER ) WHEN - - 1 / 58 + + - 52 THEN - 84 ELSE NULL END
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT - MAX( ALL - 1 ) * - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT - MAX ( ALL - 1 ) * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT + MAX( ALL + 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4618
SELECT + MAX ( ALL + 91 ) AS col2
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4619
SELECT DISTINCT + 78 * + + ( + CAST( NULL AS DECIMAL ) ) - + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT + 78 * + + ( + CAST ( NULL AS REAL ) ) - + 37
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4620
SELECT ALL + - 37 * CAST( NULL AS SIGNED ) AS col2, - 51 * - 64 AS col1
----
NULL
3264

skipif mysql # not compatible
query II rowsort label-4620
SELECT ALL + - 37 * CAST ( NULL AS INTEGER ) AS col2, - 51 * - 64 AS col1
----
NULL
3264

query I rowsort
SELECT 50 - 99 col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT 30 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-4622
SELECT 30 / + 88
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4623
SELECT - CAST( - 70 AS SIGNED ) DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-4623
SELECT - CAST ( - 70 AS INTEGER ) / - 58
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT - 60 * MAX( ALL + 15 ) AS col0
----
-900

skipif mysql # not compatible
query I rowsort label-4624
SELECT - 60 * MAX ( ALL + 15 ) AS col0
----
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT - CAST( - 84 AS SIGNED ) * 7 + - + 91 AS col1
----
497

skipif mysql # not compatible
query I rowsort label-4625
SELECT - CAST ( - 84 AS INTEGER ) * 7 + - + 91 AS col1
----
497

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL - MIN( DISTINCT - 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - MIN ( DISTINCT - 82 ) AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT 24 * + CASE + 0 WHEN + + 91 THEN NULL WHEN - 10 / + 2 + - + 67 * - 23 + - + 69 + - ( 90 ) THEN + - ( - COUNT( * ) ) - + 98 ELSE + COUNT( * ) END * - MAX( + 56 ) + - 44 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT 24 * + CASE + 0 WHEN + + 91 THEN NULL WHEN - 10 / + 2 + - + 67 * - 23 + - + 69 + - ( 90 ) THEN + - ( - COUNT ( * ) ) - + 98 ELSE + COUNT ( * ) END * - MAX ( + 56 ) + - 44 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT DISTINCT - COUNT( ALL + - 44 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4628
SELECT DISTINCT - COUNT ( ALL + - 44 ) col1
----
-1

query I rowsort
SELECT ALL + 60 + + 81
----
141

query I rowsort
SELECT 39 + - 17
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-4631
SELECT 24 * - 2 + + NULLIF ( - 29, - + 16 * - ( + 81 ) ) * 52, COUNT( * ) AS col1
----
-1556
1

skipif mysql # not compatible
query II rowsort label-4631
SELECT 24 * - 2 + + NULLIF ( - 29, - + 16 * - ( + 81 ) ) * 52, COUNT ( * ) AS col1
----
-1556
1

query I rowsort
SELECT ALL - 88 + - - 45 AS col1
----
-43

query II rowsort
SELECT - 13 AS col2, + ( + 46 )
----
-13
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT COUNT( ALL + 52 ) + + 18 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4634
SELECT COUNT ( ALL + 52 ) + + 18 AS col1
----
19

query II rowsort
SELECT - 78 AS col0, 22 AS col0
----
-78
22

query I rowsort
SELECT ALL 38 + COALESCE ( - + 59, - COALESCE ( + + 74, 82 ) ) - + 25 AS col1
----
-46

query I rowsort
SELECT DISTINCT 97 * + 13 AS col1
----
1261

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4638
SELECT - 88 AS col2, COUNT( * ) DIV - 89 * + - 57 * + CASE + COUNT( * ) WHEN 96 THEN NULL WHEN - 69 * - 26 THEN 60 ELSE + + 40 END AS col0
----
-88
0

skipif mysql # not compatible
query II rowsort label-4638
SELECT - 88 AS col2, COUNT ( * ) / - 89 * + - 57 * + CASE + COUNT ( * ) WHEN 96 THEN NULL WHEN - 69 * - 26 THEN 60 ELSE + + 40 END AS col0
----
-88
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4639
SELECT DISTINCT - SUM( DISTINCT 47 ) + + 88, 8 AS col2
----
41
8

skipif mysql # not compatible
query II rowsort label-4639
SELECT DISTINCT - SUM ( DISTINCT 47 ) + + 88, 8 AS col2
----
41
8

query I rowsort
SELECT ALL 62 - - 76 AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL - COALESCE ( + COUNT( + 48 ), - - 45 * + 77 * - COUNT( * ) + 2 ) * COALESCE ( + + 33, 67 ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL - COALESCE ( + COUNT ( + 48 ), - - 45 * + 77 * - COUNT ( * ) + 2 ) * COALESCE ( + + 33, 67 ) col1
----
-33

query I rowsort
SELECT 96 + + 1 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL - MAX( ALL + - 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL - MAX ( ALL + - 96 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT DISTINCT + COUNT( * ), - 41 col2
----
1
-41

skipif mysql # not compatible
query II rowsort label-4644
SELECT DISTINCT + COUNT ( * ), - 41 col2
----
1
-41

query I rowsort
SELECT DISTINCT - 38 * + 97
----
-3686

query I rowsort
SELECT ALL 51 * - 93 AS col2
----
-4743

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT ALL - 27 * + 83 - 19 - COALESCE ( - 60, - COUNT( * ) ) + + COUNT( * ) AS col2
----
-2199

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL - 27 * + 83 - 19 - COALESCE ( - 60, - COUNT ( * ) ) + + COUNT ( * ) AS col2
----
-2199

onlyif mysql # DIV for integer division: 
query I rowsort label-4648
SELECT DISTINCT + 58 DIV + - 89
----
0

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT + 58 / + - 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT - - 99 DIV 1 + ( + + 87 ) AS col2
----
186

skipif mysql # not compatible
query I rowsort label-4649
SELECT - - 99 / 1 + ( + + 87 ) AS col2
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT - 8 DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-4650
SELECT - 8 / 24
----
0

query I rowsort
SELECT + 17 + - + 17 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4652
SELECT ALL + NULLIF ( - + COALESCE ( + ( - 69 ), + 47 ), - 77 ) DIV + CASE - CASE + ( AVG ( 56 ) ) WHEN + COUNT( * ) THEN 47 DIV - COUNT( * ) ELSE NULL END WHEN + + 63 THEN NULL ELSE 33 END
----
2

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + NULLIF ( - + COALESCE ( + ( - 69 ), + 47 ), - 77 ) / + CASE - CASE + ( AVG ( 56 ) ) WHEN + COUNT ( * ) THEN 47 / - COUNT ( * ) ELSE NULL END WHEN + + 63 THEN NULL ELSE 33 END
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4653
SELECT COALESCE ( + + 84, + + CAST( + + CAST( - CASE 53 WHEN 38 * + 42 THEN NULL WHEN - CASE - ( 51 ) WHEN + MIN( DISTINCT - ( + 46 ) ) THEN NULL WHEN - 1 * - 48 * 57 + 40 THEN NULL ELSE + + 59 / AVG ( DISTINCT 13 ) END THEN + - 82 + 94 * - COUNT( * ) + - 4 * - CAST( - 66 AS DECIMAL ) WHEN - CAST( - 6 AS SIGNED ) * - 82 THEN NULL ELSE NULL END AS SIGNED ) AS SIGNED ) ) * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT COALESCE ( + + 84, + + CAST ( + + CAST ( - CASE 53 WHEN 38 * + 42 THEN NULL WHEN - CASE - ( 51 ) WHEN + MIN ( DISTINCT - ( + 46 ) ) THEN NULL WHEN - 1 * - 48 * 57 + 40 THEN NULL ELSE + + 59 / AVG ( DISTINCT 13 ) END THEN + - 82 + 94 * - COUNT ( * ) + - 4 * - CAST ( - 66 AS REAL ) WHEN - CAST ( - 6 AS INTEGER ) * - 82 THEN NULL ELSE NULL END AS INTEGER ) AS INTEGER ) ) * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT - - 84 * + 35 * + 87 + - SUM( 16 )
----
255764

skipif mysql # not compatible
query I rowsort label-4654
SELECT - - 84 * + 35 * + 87 + - SUM ( 16 )
----
255764

query I rowsort
SELECT + - NULLIF ( - 98, - ( + 69 ) + + 89 )
----
98

onlyif mysql # DIV for integer division: 
query II rowsort label-4656
SELECT COALESCE ( + 44, + 81 ) col0, 69 DIV 30 AS col2
----
44
2

skipif mysql # not compatible
query II rowsort label-4656
SELECT COALESCE ( + 44, + 81 ) col0, 69 / 30 AS col2
----
44
2

query II rowsort
SELECT ALL - + 58 AS col1, 10
----
-58
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT - 97 * - 2 * - - 18 * CAST( + 36 AS SIGNED ) AS col2
----
125712

skipif mysql # not compatible
query I rowsort label-4658
SELECT - 97 * - 2 * - - 18 * CAST ( + 36 AS INTEGER ) AS col2
----
125712

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT ALL + ( - COALESCE ( - - 5, 27 ) ) * + + 56 * + COUNT( * )
----
-280

skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL + ( - COALESCE ( - - 5, 27 ) ) * + + 56 * + COUNT ( * )
----
-280

onlyif mysql # aggregate syntax: 
query II rowsort label-4660
SELECT COUNT( - 99 ), 99 AS col0
----
1
99

skipif mysql # not compatible
query II rowsort label-4660
SELECT COUNT ( - 99 ), 99 AS col0
----
1
99

query I rowsort
SELECT DISTINCT + ( + 23 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4662
SELECT ALL - 41 * + - 70 + - 46 + - - CAST( NULL AS SIGNED ) * - COUNT( * ) + ( + 21 ) AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4662
SELECT ALL - 41 * + - 70 + - 46 + - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + ( + 21 ) AS col2, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT ALL + 56 + + 2, 69 AS col0
----
58
69

query I rowsort
SELECT + NULLIF ( + 14, + 72 ) AS col0
----
14

query I rowsort
SELECT ALL + 29 + + 64 + - 43
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT - 51 DIV 68 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4666
SELECT - 51 / 68 AS col2
----
0

query I rowsort
SELECT - 68 * - 54 AS col2
----
3672

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4668
SELECT ALL - ( - 38 ) DIV + - 63 * - 22 AS col2, + COUNT( * ) + 17
----
0
18

skipif mysql # not compatible
query II rowsort label-4668
SELECT ALL - ( - 38 ) / + - 63 * - 22 AS col2, + COUNT ( * ) + 17
----
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL + COUNT( * ) + - 22 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + COUNT ( * ) + - 22 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT DISTINCT - COUNT( * ) * + 75 * - 64 AS col2
----
4800

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT - COUNT ( * ) * + 75 * - 64 AS col2
----
4800

query I rowsort
SELECT ALL + 85 * + 44 col1
----
3740

query I rowsort
SELECT DISTINCT + 12 - - 88
----
100

query I rowsort
SELECT - 32 * 16 AS col1
----
-512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT ALL + 94 - + + CAST( + 33 AS SIGNED ) * + 72 + ( - 37 ) AS col2
----
-2319

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + 94 - + + CAST ( + 33 AS INTEGER ) * + 72 + ( - 37 ) AS col2
----
-2319

query I rowsort
SELECT DISTINCT - 40 * 34 AS col2
----
-1360

query I rowsort
SELECT - + 46 col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4677
SELECT - - 81 + + 84 AS col2, 33 DIV - COUNT( * )
----
165
-33

skipif mysql # not compatible
query II rowsort label-4677
SELECT - - 81 + + 84 AS col2, 33 / - COUNT ( * )
----
165
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT - + COUNT( * ) + ( - 12 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4678
SELECT - + COUNT ( * ) + ( - 12 ) AS col2
----
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4679
SELECT ALL + 0 * - NULLIF ( 29, - AVG ( ALL + + 37 ) / + CAST( - 40 AS DECIMAL ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + 0 * - NULLIF ( 29, - AVG ( ALL + + 37 ) / + CAST ( - 40 AS REAL ) ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT - CAST( - 45 AS SIGNED ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-4680
SELECT - CAST ( - 45 AS INTEGER ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT DISTINCT + CAST( + 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT + CAST ( + 15 AS INTEGER )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4682
SELECT - NULLIF ( + - CAST( NULL AS SIGNED ), - - CAST( 8 AS SIGNED ) ) col2, 96 + + 23 + - + 17 AS col1
----
NULL
102

skipif mysql # not compatible
query II rowsort label-4682
SELECT - NULLIF ( + - CAST ( NULL AS INTEGER ), - - CAST ( 8 AS INTEGER ) ) col2, 96 + + 23 + - + 17 AS col1
----
NULL
102

onlyif mysql # aggregate syntax: 
query II rowsort label-4683
SELECT + + 73 * - 82, + 65 + COUNT( * ) AS col2
----
-5986
66

skipif mysql # not compatible
query II rowsort label-4683
SELECT + + 73 * - 82, + 65 + COUNT ( * ) AS col2
----
-5986
66

query I rowsort
SELECT + - 59 col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL - - 11 * - SUM( DISTINCT ( - 35 ) )
----
385

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - - 11 * - SUM ( DISTINCT ( - 35 ) )
----
385

query I rowsort
SELECT + 81 * 83
----
6723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4687
SELECT ALL + 86 DIV 7 + - + COUNT( * ) DIV - - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL + 86 / 7 + - + COUNT ( * ) / - - COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL - - COUNT( * ) * 48 + - 1
----
47

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - - COUNT ( * ) * 48 + - 1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4689
SELECT DISTINCT - + 63 * 83 + 63 + + 73 col1, COUNT( * ) DIV + - 37 + + 15 * + 15 * 99 AS col1
----
-5093
22275

skipif mysql # not compatible
query II rowsort label-4689
SELECT DISTINCT - + 63 * 83 + 63 + + 73 col1, COUNT ( * ) / + - 37 + + 15 * + 15 * 99 AS col1
----
-5093
22275

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4690
SELECT ALL - CAST( NULL AS DECIMAL ) * - COUNT( * ) * + CAST( NULL AS DECIMAL ) * - 47 + - 94 - - SUM( ALL - - 22 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - CAST ( NULL AS REAL ) * - COUNT ( * ) * + CAST ( NULL AS REAL ) * - 47 + - 94 - - SUM ( ALL - - 22 ) AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( - 29, + 16 ) * + 94 AS col0
----
-2726

query I rowsort
SELECT + 99 + + 17
----
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4693
SELECT COALESCE ( + + 69, + COUNT( * ) * - + 42 + - - 17 * + + MAX( ALL 47 ) - COUNT( * ) + + + 63, 91 * CAST( NULL AS SIGNED ) + - + NULLIF ( + 14, - 39 * - SUM( ALL + - 19 ) ) + + 82 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4693
SELECT COALESCE ( + + 69, + COUNT ( * ) * - + 42 + - - 17 * + + MAX ( ALL 47 ) - COUNT ( * ) + + + 63, 91 * CAST ( NULL AS INTEGER ) + - + NULLIF ( + 14, - 39 * - SUM ( ALL + - 19 ) ) + + 82 ) AS col2
----
69

query I rowsort
SELECT ALL + 4 * + - 29 + + - 69 AS col1
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT + COUNT( + + 8 ) + 10 + - - 30 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4695
SELECT + COUNT ( + + 8 ) + 10 + - - 30 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT DISTINCT - 71 * SUM( + - 86 ) * - + 52 AS col1
----
-317512

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT - 71 * SUM ( + - 86 ) * - + 52 AS col1
----
-317512

query I rowsort
SELECT + 27 + - - ( CASE - 10 WHEN 38 THEN - 46 WHEN - NULLIF ( + 51, NULLIF ( 57, - 71 ) ) * 9 - + NULLIF ( - 77, - 96 ) THEN + 44 / + + 10 / 11 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4698
SELECT ALL 33 * + - 86 * CAST( NULL AS SIGNED ) AS col1, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-4698
SELECT ALL 33 * + - 86 * CAST ( NULL AS INTEGER ) AS col1, 8
----
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT + 21 * 35 * - COUNT( * ) - + - ( 51 ) AS col0
----
-684

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT + 21 * 35 * - COUNT ( * ) - + - ( 51 ) AS col0
----
-684

query I rowsort
SELECT DISTINCT 68 * - + 95 col0
----
-6460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4701
SELECT MAX( - CAST( - 4 AS SIGNED ) )
----
4

skipif mysql # not compatible
query I rowsort label-4701
SELECT MAX ( - CAST ( - 4 AS INTEGER ) )
----
4

query I rowsort
SELECT + 9 * - 79
----
-711

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT COUNT( DISTINCT - 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4703
SELECT COUNT ( DISTINCT - 17 ) AS col0
----
1

query I rowsort
SELECT + - 93 + + NULLIF ( 51, - - 24 ) - + - 37 - - + ( - 82 ) AS col0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT ALL + 91 * ( 53 ) DIV + 62 - + - 65 AS col2
----
142

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + 91 * ( 53 ) / + 62 - + - 65 AS col2
----
142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4706
SELECT - CASE 8 WHEN - - 32 THEN - 61 + - 92 + NULLIF ( 21, + 62 ) - - 75 + + ( + - NULLIF ( + 0, COUNT( * ) * + - 36 ) ) * + 9 DIV SUM( ALL + 58 ) - COUNT( * ) ELSE + 2 END AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4706
SELECT - CASE 8 WHEN - - 32 THEN - 61 + - 92 + NULLIF ( 21, + 62 ) - - 75 + + ( + - NULLIF ( + 0, COUNT ( * ) * + - 36 ) ) * + 9 / SUM ( ALL + 58 ) - COUNT ( * ) ELSE + 2 END AS col2
----
-2

query I rowsort
SELECT - 72 + + + 79
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT + 16 * - - NULLIF ( + COUNT( * ), 17 * + COUNT( * ) / - CAST( + 5 AS SIGNED ) ) + - + 36 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4708
SELECT + 16 * - - NULLIF ( + COUNT ( * ), 17 * + COUNT ( * ) / - CAST ( + 5 AS INTEGER ) ) + - + 36 AS col1
----
-20

query II rowsort
SELECT - + ( + 31 ) * 0, 75 AS col0
----
0
75

query I rowsort
SELECT DISTINCT - 55 * + 8 AS col0
----
-440

query I rowsort
SELECT ALL + 97 + + - 15 AS col1
----
82

query II rowsort
SELECT - NULLIF ( - ( + 23 ), - 9 ) - - 10 AS col0, 29 AS col0
----
33
29

query II rowsort
SELECT COALESCE ( - 98, 78 ) AS col2, 44
----
-98
44

query I rowsort
SELECT - + 17 + - - 10 AS col0
----
-7

query I rowsort
SELECT ALL + - 47 + + 19 * + - COALESCE ( + 35, - + 80 ) * 70 * + 4
----
-186247

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT - CASE + 82 WHEN COUNT( * ) THEN + + 1 * COUNT( * ) + - 21 + + + 74 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT - CASE + 82 WHEN COUNT ( * ) THEN + + 1 * COUNT ( * ) + - 21 + + + 74 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT + COUNT( * ) + + 61 * + - 52 AS col0
----
-3171

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + COUNT ( * ) + + 61 * + - 52 AS col0
----
-3171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT - CAST( NULL AS SIGNED ) + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT - CAST ( NULL AS INTEGER ) + + 96
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4719
SELECT ALL - COUNT( + 63 ), + COUNT( * ) DIV + 22 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-4719
SELECT ALL - COUNT ( + 63 ), + COUNT ( * ) / + 22 AS col2
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4720
SELECT DISTINCT - CAST( + 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT - CAST ( + 32 AS INTEGER )
----
-32

query I rowsort
SELECT 20 * + 11 AS col2
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT + 60 * - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT + 60 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT 74, - 44 AS col0
----
74
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT 39 DIV - 13
----
-3

skipif mysql # not compatible
query I rowsort label-4724
SELECT 39 / - 13
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL 87 * + - SUM( ALL + 3 ) AS col2
----
-261

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL 87 * + - SUM ( ALL + 3 ) AS col2
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT DISTINCT + CAST( + 56 AS SIGNED ) * 14 AS col2
----
784

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + CAST ( + 56 AS INTEGER ) * 14 AS col2
----
784

query II rowsort
SELECT DISTINCT - 26 AS col1, 18 AS col0
----
-26
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4728
SELECT ALL - 0 AS col2, + 76 + - - MIN( - + 21 ) + - COUNT( * ) DIV + + 80
----
0
55

skipif mysql # not compatible
query II rowsort label-4728
SELECT ALL - 0 AS col2, + 76 + - - MIN ( - + 21 ) + - COUNT ( * ) / + + 80
----
0
55

query I rowsort
SELECT ALL 27 - + ( + + 69 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4730
SELECT COUNT( * ) * - + 84 DIV + 46 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4730
SELECT COUNT ( * ) * - + 84 / + 46 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4731
SELECT DISTINCT 21 DIV ( - + ( 25 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT 21 / ( - + ( 25 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT DISTINCT - 12, - COUNT( * ) col1
----
-12
-1

skipif mysql # not compatible
query II rowsort label-4732
SELECT DISTINCT - 12, - COUNT ( * ) col1
----
-12
-1

query II rowsort
SELECT - 57 AS col0, 23
----
-57
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4734
SELECT + CAST( NULL AS DECIMAL ) * COALESCE ( - 28, + 61 * - 14 * + 8 * - 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT + CAST ( NULL AS REAL ) * COALESCE ( - 28, + 61 * - 14 * + 8 * - 6 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4735
SELECT CAST( NULL AS SIGNED ) + - AVG ( + 46 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT CAST ( NULL AS INTEGER ) + - AVG ( + 46 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4736
SELECT - CAST( - 4 AS SIGNED ) - + + 15 + 20 DIV - - 68 * - - 73 * - ( + 51 ) * - 82 + 72 - 42 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4736
SELECT - CAST ( - 4 AS INTEGER ) - + + 15 + 20 / - - 68 * - - 73 * - ( + 51 ) * - 82 + 72 - 42 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT ALL 31 * COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL 31 * COUNT ( * ) AS col0
----
31

query II rowsort
SELECT - 0 * + 69 AS col1, - 19 + - + 83 * 8 * 32 * 20 AS col0
----
0
-424979

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT - 1 + ( + + COUNT( 99 ) ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT - 1 + ( + + COUNT ( 99 ) ) * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL + 26 + + COUNT( * ) * - 42
----
-16

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL + 26 + + COUNT ( * ) * - 42
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4741
SELECT ALL 58 + 87 AS col0, ( - + COUNT( * ) ) AS col2
----
145
-1

skipif mysql # not compatible
query II rowsort label-4741
SELECT ALL 58 + 87 AS col0, ( - + COUNT ( * ) ) AS col2
----
145
-1

query I rowsort
SELECT - 27 + - - 76
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT COUNT( * ) + 52 * + - 62 + 2 + + 90 AS col1
----
-3131

skipif mysql # not compatible
query I rowsort label-4743
SELECT COUNT ( * ) + 52 * + - 62 + 2 + + 90 AS col1
----
-3131

query I rowsort
SELECT ALL - ( + + 15 ) col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4745
SELECT ( 72 ) AS col0, CAST( + + 94 AS SIGNED ) * - 63 - + COUNT( * )
----
72
-5923

skipif mysql # not compatible
query II rowsort label-4745
SELECT ( 72 ) AS col0, CAST ( + + 94 AS INTEGER ) * - 63 - + COUNT ( * )
----
72
-5923

query I rowsort
SELECT ALL 20 + - 32 - + - 29 + - - 0 + - 35 * - 83 + - 15
----
2907

query I rowsort
SELECT ALL - 7 + 94 + - + 43 AS col1
----
44

query I rowsort
SELECT ALL + + 11 + - - 13 * - 72
----
-925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT 81 + - + COUNT( + 90 ) + + - 51 + - 42 + - + 92 * - COUNT( * ) + 59 * - - 1 + CAST( NULL AS SIGNED ) * + + 61 + 74 + - - 53 * + MAX( + 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT 81 + - + COUNT ( + 90 ) + + - 51 + - 42 + - + 92 * - COUNT ( * ) + 59 * - - 1 + CAST ( NULL AS INTEGER ) * + + 61 + 74 + - - 53 * + MAX ( + 59 ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 44 * 54
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT DISTINCT - ( + MIN( 96 ) )
----
-96

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT - ( + MIN ( 96 ) )
----
-96

query I rowsort
SELECT ALL + + 19 + - 12 - - - 2 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT 30 + 23 * + 54 + CASE 46 WHEN + - MIN( ALL - 42 ) THEN + - 35 WHEN - 57 + 50 * - AVG ( ALL 96 ) + + 13 THEN + ( + 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT 30 + 23 * + 54 + CASE 46 WHEN + - MIN ( ALL - 42 ) THEN + - 35 WHEN - 57 + 50 * - AVG ( ALL 96 ) + + 13 THEN + ( + 75 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT ALL + 25 - - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL + 25 - - COUNT ( * ) AS col0
----
26

query I rowsort
SELECT DISTINCT - 43 - 34 + + 86 * 43 AS col0
----
3621

onlyif mysql # aggregate syntax: 
query II rowsort label-4756
SELECT DISTINCT - COALESCE ( - 49, + 89 * + 55 + - COUNT( * ) ), - 87 AS col0
----
49
-87

skipif mysql # not compatible
query II rowsort label-4756
SELECT DISTINCT - COALESCE ( - 49, + 89 * + 55 + - COUNT ( * ) ), - 87 AS col0
----
49
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4757
SELECT 68 * COUNT( * ), 15 DIV - 62 * - ( + CASE + 85 WHEN + SUM( 65 ) - 32 THEN NULL ELSE - 94 END ) AS col0
----
68
0

skipif mysql # not compatible
query II rowsort label-4757
SELECT 68 * COUNT ( * ), 15 / - 62 * - ( + CASE + 85 WHEN + SUM ( 65 ) - 32 THEN NULL ELSE - 94 END ) AS col0
----
68
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4758
SELECT + 36 * + 73 * + - 38 / NULLIF ( + COUNT( * ), - COUNT( * ) ) - CAST( NULL AS SIGNED ) col2, + CASE + - 68 WHEN + 83 + COUNT( * ) - + 22 - 92 / 68 + - NULLIF ( + COALESCE ( - 56, + 31 - - 63, - COUNT( * ) - + ( + - COUNT( * ) ) ), - SUM( DISTINCT - 19 ) ) * + 76 * - 24 THEN NULL WHEN 97 THEN NULL ELSE - 56 END + - 77 AS col0
----
NULL
-133

skipif mysql # not compatible
query II rowsort label-4758
SELECT + 36 * + 73 * + - 38 / NULLIF ( + COUNT ( * ), - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) col2, + CASE + - 68 WHEN + 83 + COUNT ( * ) - + 22 - 92 / 68 + - NULLIF ( + COALESCE ( - 56, + 31 - - 63, - COUNT ( * ) - + ( + - COUNT ( * ) ) ), - SUM ( DISTINCT - 19 ) ) * + 76 * - 24 THEN NULL WHEN 97 THEN NULL ELSE - 56 END + - 77 AS col0
----
NULL
-133

query I rowsort
SELECT 45 * - 84
----
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT DISTINCT - NULLIF ( - SUM( DISTINCT 45 ), 10 )
----
45

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT - NULLIF ( - SUM ( DISTINCT 45 ), 10 )
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4761
SELECT 54 + + CAST( NULL AS DECIMAL ) + + - COALESCE ( + 18, - 42, - - 52 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT 54 + + CAST ( NULL AS REAL ) + + - COALESCE ( + 18, - 42, - - 52 ) AS col0
----
NULL

query I rowsort
SELECT 58 * - + 37 AS col2
----
-2146

query I rowsort
SELECT ALL + 35 * - - 17 * + + NULLIF ( + 86, - 51 )
----
51170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4764
SELECT + CAST( - ( - 0 ) AS SIGNED ) * + 87 - 15 + + COALESCE ( + - 44, - + 22 * 31 * - 38 + - + CASE 94 WHEN + - CAST( - 77 AS DECIMAL ) * - + 6 / MAX( - + 64 ) * + 82 THEN + + 35 * + CAST( - + 37 AS SIGNED ) ELSE ( + 48 ) * + COUNT( * ) END * - - 77, + + 8 ) + + 6 + + - 79 * - 8
----
579

skipif mysql # not compatible
query I rowsort label-4764
SELECT + CAST ( - ( - 0 ) AS INTEGER ) * + 87 - 15 + + COALESCE ( + - 44, - + 22 * 31 * - 38 + - + CASE 94 WHEN + - CAST ( - 77 AS REAL ) * - + 6 / MAX ( - + 64 ) * + 82 THEN + + 35 * + CAST ( - + 37 AS INTEGER ) ELSE ( + 48 ) * + COUNT ( * ) END * - - 77, + + 8 ) + + 6 + + - 79 * - 8
----
579

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4765
SELECT DISTINCT + 53 DIV 10 AS col1, MAX( + CAST( NULL AS SIGNED ) ) col1
----
5
NULL

skipif mysql # not compatible
query II rowsort label-4765
SELECT DISTINCT + 53 / 10 AS col1, MAX ( + CAST ( NULL AS INTEGER ) ) col1
----
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL COUNT( * ) * - 46 * - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL COUNT ( * ) * - 46 * - COUNT ( * )
----
46

query I rowsort
SELECT ALL + 36 * - + 47 col2
----
-1692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - COALESCE ( - - COUNT( * ), - - 50 / + - 95 + + 31 / - 61 - + CASE - 67 WHEN + + COUNT( * ) THEN NULL WHEN - 99 THEN + 87 * 90 * + 30 * - COUNT( * ) END + - 81 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - COALESCE ( - - COUNT ( * ), - - 50 / + - 95 + + 31 / - 61 - + CASE - 67 WHEN + + COUNT ( * ) THEN NULL WHEN - 99 THEN + 87 * 90 * + 30 * - COUNT ( * ) END + - 81 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 22 * + 36 AS col2
----
-792

query I rowsort
SELECT 96 + - 65 col1
----
31

query I rowsort
SELECT - 76 * + 85 * - 25 AS col1
----
161500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4772
SELECT + MIN( ALL + + 84 ), 54 + + + 80 * - 37 + + CAST( 88 AS SIGNED ) AS col1
----
84
-2818

skipif mysql # not compatible
query II rowsort label-4772
SELECT + MIN ( ALL + + 84 ), 54 + + + 80 * - 37 + + CAST ( 88 AS INTEGER ) AS col1
----
84
-2818

onlyif mysql # DIV for integer division: 
query I rowsort label-4773
SELECT ( 25 ) DIV + 66 * - ( 65 )
----
0

skipif mysql # not compatible
query I rowsort label-4773
SELECT ( 25 ) / + 66 * - ( 65 )
----
0

query I rowsort
SELECT DISTINCT + 30 + - 11 AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4775
SELECT - NULLIF ( + - MIN( 82 ), - - CAST( NULL AS DECIMAL ) )
----
82

skipif mysql # not compatible
query I rowsort label-4775
SELECT - NULLIF ( + - MIN ( 82 ), - - CAST ( NULL AS REAL ) )
----
82

query I rowsort
SELECT 47 + - 49
----
-2

query I rowsort
SELECT 65 + - 94 col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT DISTINCT - 70 + + 18 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT - 70 + + 18 * - COUNT ( * )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4779
SELECT DISTINCT COUNT( ALL - - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT COUNT ( ALL - - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL 87 + 8 + - + 28 + - + 19 AS col2
----
48

query I rowsort
SELECT ALL 92 + - - 43
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL COUNT( * ) * 65 + 85 - + 73 + - 29 * + + 2 * 82 * - 60 * + 74 AS col2
----
21116717

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL COUNT ( * ) * 65 + 85 - + 73 + - 29 * + + 2 * 82 * - 60 * + 74 AS col2
----
21116717

query I rowsort
SELECT + + 34 + - + COALESCE ( - - 17, + 11 ) * - ( - 84 ) AS col2
----
-1394

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT ALL + 96 - COUNT( * ) - + 46 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + 96 - COUNT ( * ) - + 46 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT + + 90 * COUNT( * ) - ( + SUM( ALL + 35 ) )
----
55

skipif mysql # not compatible
query I rowsort label-4785
SELECT + + 90 * COUNT ( * ) - ( + SUM ( ALL + 35 ) )
----
55

query I rowsort
SELECT - - ( - + 23 )
----
-23

query I rowsort
SELECT + - 15 - + 92 - - 85 + + + ( - 67 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT - CASE - 89 WHEN - ( + 91 ) THEN NULL WHEN + COUNT( * ) - + 78 THEN - 73 + + - 69 WHEN + + 25 / - 77 + COUNT( * ) THEN 79 ELSE 92 * - COUNT( * ) + - 87 END
----
179

skipif mysql # not compatible
query I rowsort label-4788
SELECT - CASE - 89 WHEN - ( + 91 ) THEN NULL WHEN + COUNT ( * ) - + 78 THEN - 73 + + - 69 WHEN + + 25 / - 77 + COUNT ( * ) THEN 79 ELSE 92 * - COUNT ( * ) + - 87 END
----
179

query II rowsort
SELECT DISTINCT 97 AS col1, - 4 + - ( + - 91 ) AS col2
----
97
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT ALL 10 DIV - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL 10 / - 41 AS col2
----
0

query II rowsort
SELECT DISTINCT + 6 AS col1, - ( 51 ) col2
----
6
-51

query I rowsort
SELECT DISTINCT - 12 * - 41
----
492

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT + 68 DIV + 16 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4793
SELECT + 68 / + 16 AS col0
----
4

query I rowsort
SELECT - 74 * 31 AS col0
----
-2294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4795
SELECT COALESCE ( + COALESCE ( 64, + 66 ), - - 59 * 36 + - 79 - + CAST( - 59 AS SIGNED ) )
----
64

skipif mysql # not compatible
query I rowsort label-4795
SELECT COALESCE ( + COALESCE ( 64, + 66 ), - - 59 * 36 + - 79 - + CAST ( - 59 AS INTEGER ) )
----
64

query I rowsort
SELECT ALL 68 * - 90 col2
----
-6120

query II rowsort
SELECT DISTINCT + 49 * + + 30 * - 57 col2, 96 - ( + 83 ) col2
----
-83790
13

query II rowsort
SELECT DISTINCT + 25 col0, 25 + + 69 AS col2
----
25
94

query I rowsort
SELECT ALL - 41 * + 90 + - + 0 + - + 43 AS col0
----
-3733

query II rowsort
SELECT + 82 AS col1, 52
----
82
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4801
SELECT ALL + NULLIF ( - 30, - + COUNT( * ) ), ( + 45 ) * - SUM( ALL 73 ) - + 86 AS col2
----
-30
-3371

skipif mysql # not compatible
query II rowsort label-4801
SELECT ALL + NULLIF ( - 30, - + COUNT ( * ) ), ( + 45 ) * - SUM ( ALL 73 ) - + 86 AS col2
----
-30
-3371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT ALL CAST( NULL AS SIGNED ) * + 63 + COALESCE ( 71, + + COUNT( * ), - 21 + - - COUNT( * ) + + - CAST( NULL AS SIGNED ), + - 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL CAST ( NULL AS INTEGER ) * + 63 + COALESCE ( 71, + + COUNT ( * ), - 21 + - - COUNT ( * ) + + - CAST ( NULL AS INTEGER ), + - 99 )
----
NULL

query II rowsort
SELECT - 25, 31 + + 63 * + 76 AS col2
----
-25
4819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT - - 12 * - - 53 - - 8 + ( MAX( DISTINCT - NULLIF ( - CAST( - - 58 AS SIGNED ), 54 ) ) ) * + CASE + + 90 WHEN - 14 * + COUNT( * ) THEN COUNT( * ) * + + 68 WHEN 52 THEN NULL WHEN - + 70 + + + ( - ( - 96 ) ) THEN NULL END / 78 + - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT - - 12 * - - 53 - - 8 + ( MAX ( DISTINCT - NULLIF ( - CAST ( - - 58 AS INTEGER ), 54 ) ) ) * + CASE + + 90 WHEN - 14 * + COUNT ( * ) THEN COUNT ( * ) * + + 68 WHEN 52 THEN NULL WHEN - + 70 + + + ( - ( - 96 ) ) THEN NULL END / 78 + - 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4805
SELECT ALL + 28 * - + 0 * + 64 + - + 92 + + + 32 * + ( + CAST( - 48 AS DECIMAL ) ) + + CASE 90 WHEN - + 48 THEN 37 * + - COUNT( * ) * - 40 * - 71 WHEN - + 55 THEN NULL WHEN + 19 THEN ( 40 ) END col2, + 14 AS col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-4805
SELECT ALL + 28 * - + 0 * + 64 + - + 92 + + + 32 * + ( + CAST ( - 48 AS REAL ) ) + + CASE 90 WHEN - + 48 THEN 37 * + - COUNT ( * ) * - 40 * - 71 WHEN - + 55 THEN NULL WHEN + 19 THEN ( 40 ) END col2, + 14 AS col0
----
NULL
14

query II rowsort
SELECT + + 16 AS col2, - 44 col2
----
16
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT - 96 - + + COUNT( * ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-4807
SELECT - 96 - + + COUNT ( * ) col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4808
SELECT DISTINCT + 35 * + 72 + - 7 * - + CAST( NULL AS SIGNED ) / + - MIN( + 14 ) + + 79 + - 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT + 35 * + 72 + - 7 * - + CAST ( NULL AS INTEGER ) / + - MIN ( + 14 ) + + 79 + - 19 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT DISTINCT + - 8 * COUNT( * ) * - COUNT( * ) + - - COALESCE ( - 39, 21 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT + - 8 * COUNT ( * ) * - COUNT ( * ) + - - COALESCE ( - 39, 21 ) AS col2
----
-31

query I rowsort
SELECT DISTINCT - + 2 * + 18 AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4811
SELECT SUM( ALL - - 89 ) * - COALESCE ( - - 27, + 63 + + - CAST( NULL AS SIGNED ) + + 53 ) - 75 * - 18 * + 16 + - 17 + - COUNT( * ) - CAST( NULL AS SIGNED ) / + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT SUM ( ALL - - 89 ) * - COALESCE ( - - 27, + 63 + + - CAST ( NULL AS INTEGER ) + + 53 ) - 75 * - 18 * + 16 + - 17 + - COUNT ( * ) - CAST ( NULL AS INTEGER ) / + 45
----
NULL

query I rowsort
SELECT ALL - 74 * - + 28 AS col2
----
2072

query II rowsort
SELECT 80, 35 AS col2
----
80
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT + + 5 - + 80 - + MAX( 43 ) * - + 15
----
570

skipif mysql # not compatible
query I rowsort label-4814
SELECT + + 5 - + 80 - + MAX ( 43 ) * - + 15
----
570

query I rowsort
SELECT - - 19 * - - 78 AS col0
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT - COUNT( - 40 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4816
SELECT - COUNT ( - 40 ) col2
----
-1

query I rowsort
SELECT - + 44 + + 68
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4818
SELECT ALL + 85 AS col0, COUNT( * ) col1
----
85
1

skipif mysql # not compatible
query II rowsort label-4818
SELECT ALL + 85 AS col0, COUNT ( * ) col1
----
85
1

query I rowsort
SELECT ALL - 64 - 23 * - - 60 * 45 + - 22 + 35 - 17 + - - 97 + 42 * 6 AS col2
----
-61819

query I rowsort
SELECT DISTINCT 5 * + 78
----
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4821
SELECT ALL CAST( 85 AS SIGNED ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL CAST ( 85 AS INTEGER ) AS col1
----
85

query I rowsort
SELECT + 81 + - 75 * - 7
----
606

query I rowsort
SELECT + 92 * 64 col1
----
5888

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + 98 * + + COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4824
SELECT + 98 * + + COUNT ( * ) AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT ALL 4 * 37 * + CAST( NULL AS SIGNED ) * - AVG ( - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL 4 * 37 * + CAST ( NULL AS INTEGER ) * - AVG ( - 52 )
----
NULL

query I rowsort
SELECT + 10 - - ( - + 37 ) AS col2
----
-27

query II rowsort
SELECT - CASE - 86 WHEN + 80 THEN 25 END AS col1, + 72
----
NULL
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT DISTINCT 78 DIV + + MIN( + 73 ) + - 33 * - 46
----
1519

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT 78 / + + MIN ( + 73 ) + - 33 * - 46
----
1519

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT DISTINCT 90 DIV + - 13 + 6
----
0

skipif mysql # not compatible
query I rowsort label-4829
SELECT DISTINCT 90 / + - 13 + 6
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT CAST( - 54 AS SIGNED ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4830
SELECT CAST ( - 54 AS INTEGER ) AS col1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4831
SELECT CAST( - 4 AS SIGNED ) AS col2, + 76 + + 48 + 11
----
-4
135

skipif mysql # not compatible
query II rowsort label-4831
SELECT CAST ( - 4 AS INTEGER ) AS col2, + 76 + + 48 + 11
----
-4
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT ALL 59 DIV + COUNT( * ) + - + 11 + - + COUNT( * ) * - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL 59 / + COUNT ( * ) + - + 11 + - + COUNT ( * ) * - COUNT ( * ) AS col2
----
49

query I rowsort
SELECT + 32 - 98
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT - 90 * + 59 + + NULLIF ( CAST( NULL AS SIGNED ), - ( 47 ) ) * + COUNT( * ) / + + NULLIF ( 44, + COUNT( * ) * + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT - 90 * + 59 + + NULLIF ( CAST ( NULL AS INTEGER ), - ( 47 ) ) * + COUNT ( * ) / + + NULLIF ( 44, + COUNT ( * ) * + 56 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4835
SELECT CAST( + 11 AS SIGNED ) AS col0, MIN( DISTINCT - 89 ) * MAX( - 60 ) + CASE + 34 WHEN - + 77 + COUNT( * ) THEN + + 14 WHEN 49 THEN NULL ELSE NULL END
----
11
NULL

skipif mysql # not compatible
query II rowsort label-4835
SELECT CAST ( + 11 AS INTEGER ) AS col0, MIN ( DISTINCT - 89 ) * MAX ( - 60 ) + CASE + 34 WHEN - + 77 + COUNT ( * ) THEN + + 14 WHEN 49 THEN NULL ELSE NULL END
----
11
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4836
SELECT 9 DIV - 68 + + NULLIF ( - + NULLIF ( - ( - 60 ), - COUNT( * ) - - 50 ), - - 79 * - 3 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-4836
SELECT 9 / - 68 + + NULLIF ( - + NULLIF ( - ( - 60 ), - COUNT ( * ) - - 50 ), - - 79 * - 3 ) AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4837
SELECT ALL + - 94 DIV + - 67 + + 55 * + 95 AS col0, + 70 + + CASE WHEN - 89 NOT IN ( 96, + 56 ) THEN + ( + - 38 ) ELSE NULL END - - COUNT( * ) - - 37
----
5226
70

skipif mysql # not compatible
query II rowsort label-4837
SELECT ALL + - 94 / + - 67 + + 55 * + 95 AS col0, + 70 + + CASE WHEN - 89 NOT IN ( 96, + 56 ) THEN + ( + - 38 ) ELSE NULL END - - COUNT ( * ) - - 37
----
5226
70

query I rowsort
SELECT + 67 + 72 + - 89 AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4839
SELECT + + 9 * + ( + 81 ) + - 74 AS col1, + 20 + + COUNT( * ) + + CAST( - 79 AS SIGNED ) * + ( 44 ) AS col1
----
655
-3455

skipif mysql # not compatible
query II rowsort label-4839
SELECT + + 9 * + ( + 81 ) + - 74 AS col1, + 20 + + COUNT ( * ) + + CAST ( - 79 AS INTEGER ) * + ( 44 ) AS col1
----
655
-3455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4840
SELECT DISTINCT 75 DIV - 15 + - NULLIF ( 90, + COUNT( * ) ) + 7 col2
----
-88

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT 75 / - 15 + - NULLIF ( 90, + COUNT ( * ) ) + 7 col2
----
-88

query I rowsort
SELECT DISTINCT + 22 + 32 + 66
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT CASE - COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE + 55 END * + 54 AS col2
----
2970

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE + 55 END * + 54 AS col2
----
2970

query I rowsort
SELECT ALL - 89 + + 5 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT COUNT( * ) * - ( + 82 ) * - 5 + + 60 + + 45 + - 24 * - 38 AS col0
----
1427

skipif mysql # not compatible
query I rowsort label-4844
SELECT COUNT ( * ) * - ( + 82 ) * - 5 + + 60 + + 45 + - 24 * - 38 AS col0
----
1427

query I rowsort
SELECT ALL - 29 - - 32 AS col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4846
SELECT 74 * - NULLIF ( + COALESCE ( - CAST( NULL AS SIGNED ), - - COALESCE ( - + COALESCE ( + 35, 55 ), - 24 * 18 ) DIV + + 4 + - COUNT( * ) * + 98 * + 70, 46 * + 74 ), + AVG ( 30 ) + - + ( COUNT( * ) ) + + 54 ) AS col2
----
508232

skipif mysql # not compatible
query I rowsort label-4846
SELECT 74 * - NULLIF ( + COALESCE ( - CAST ( NULL AS INTEGER ), - - COALESCE ( - + COALESCE ( + 35, 55 ), - 24 * 18 ) / + + 4 + - COUNT ( * ) * + 98 * + 70, 46 * + 74 ), + AVG ( 30 ) + - + ( COUNT ( * ) ) + + 54 ) AS col2
----
508232

query I rowsort
SELECT ALL + + 37 - 38 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4848
SELECT DISTINCT CASE + + 6 WHEN + - MAX( + 80 ) + + 72 THEN - CAST( NULL AS SIGNED ) WHEN + 77 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT CASE + + 6 WHEN + - MAX ( + 80 ) + + 72 THEN - CAST ( NULL AS INTEGER ) WHEN + 77 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4849
SELECT 66 DIV ( + COUNT( * ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4849
SELECT 66 / ( + COUNT ( * ) ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL - + COUNT( * ) * - + COALESCE ( 1, - 82, - 6 + + + 75 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - + COUNT ( * ) * - + COALESCE ( 1, - 82, - 6 + + + 75 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + ( + - 87 )
----
-87

query I rowsort
SELECT DISTINCT - + 0 * + 21 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4853
SELECT DISTINCT - ( + - 44 ) DIV + - 85 + 37
----
37

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - ( + - 44 ) / + - 85 + 37
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4854
SELECT DISTINCT + COALESCE ( 82, - COUNT( * ) + + - 2 + ( - 47 ) * + ( + ( CAST( NULL AS SIGNED ) ) ) DIV - ( - - 42 ) - + - COALESCE ( - COUNT( * ), - 62 DIV - COUNT( * ) + + NULLIF ( COUNT( * ), 11 * + CAST( - 21 AS DECIMAL ) + + - COUNT( * ) ) ) + CASE 79 WHEN - - 67 THEN NULL WHEN - 8 THEN 42 * + 88 - COUNT( * ) * + - 33 * 26 + COUNT( * ) ELSE - 46 END DIV + - COUNT( DISTINCT ( - 46 ) ) * - 75 * + 95 * - 54 * - COUNT( * ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT + COALESCE ( 82, - COUNT ( * ) + + - 2 + ( - 47 ) * + ( + ( CAST ( NULL AS INTEGER ) ) ) / - ( - - 42 ) - + - COALESCE ( - COUNT ( * ), - 62 / - COUNT ( * ) + + NULLIF ( COUNT ( * ), 11 * + CAST ( - 21 AS REAL ) + + - COUNT ( * ) ) ) + CASE 79 WHEN - - 67 THEN NULL WHEN - 8 THEN 42 * + 88 - COUNT ( * ) * + - 33 * 26 + COUNT ( * ) ELSE - 46 END / + - COUNT ( DISTINCT ( - 46 ) ) * - 75 * + 95 * - 54 * - COUNT ( * ) ) AS col2
----
82

query I rowsort
SELECT DISTINCT - 21 * + - ( 93 ) * 27 - + ( + 68 ) AS col2
----
52663

query II rowsort
SELECT - 44 AS col2, - 82 + - - 2
----
-44
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4857
SELECT 48 DIV + SUM( DISTINCT 69 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4857
SELECT 48 / + SUM ( DISTINCT 69 ) AS col0
----
0

query II rowsort
SELECT 84 + + 53 + + + COALESCE ( - 67, + 84 * + 10 - + 8 ) + - - ( - 36 ) * - 58 col2, 26 + + + 96 AS col0
----
2158
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT 93 * + + COUNT( * ) * + 69 AS col1
----
6417

skipif mysql # not compatible
query I rowsort label-4859
SELECT 93 * + + COUNT ( * ) * + 69 AS col1
----
6417

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL 81 + - 90 + - ( + COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL 81 + - 90 + - ( + COUNT ( * ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT 64 + + + SUM( - 12 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4861
SELECT 64 + + + SUM ( - 12 ) AS col2
----
52

query I rowsort
SELECT 67 - + 64 + + 70 AS col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT 74 / - + 2 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT 74 / - + 2 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 3 + 3
----
6

query I rowsort
SELECT ALL 50 + - 56
----
-6

query I rowsort
SELECT 89 + + - 8 * - - ( 88 )
----
-615

query I rowsort
SELECT ALL + 77 + 19 * 35
----
742

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT - 22 + COUNT( * ) + - + 53 - - - COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT - 22 + COUNT ( * ) + - + 53 - - - COUNT ( * ) AS col1
----
-75

query I rowsort
SELECT ALL 15 + 3 AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4870
SELECT + 80 AS col1, 0 + - COALESCE ( - - COALESCE ( - 60, + - 25, + + 68 + ( - + COUNT( * ) ) ), - 58 DIV + 92 * + 74 DIV - - 1 DIV - MAX( DISTINCT 46 ) ) - + + 2
----
80
58

skipif mysql # not compatible
query II rowsort label-4870
SELECT + 80 AS col1, 0 + - COALESCE ( - - COALESCE ( - 60, + - 25, + + 68 + ( - + COUNT ( * ) ) ), - 58 / + 92 * + 74 / - - 1 / - MAX ( DISTINCT 46 ) ) - + + 2
----
80
58

query II rowsort
SELECT 88 AS col2, - 61 AS col1
----
88
-61

query I rowsort
SELECT 98 * - 40 col1
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL - 5 + - CASE - 92 + 88 WHEN + COUNT( DISTINCT - 13 ) THEN NULL ELSE ( + ( 11 ) ) END
----
-16

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - 5 + - CASE - 92 + 88 WHEN + COUNT ( DISTINCT - 13 ) THEN NULL ELSE ( + ( 11 ) ) END
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL - MIN( - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - MIN ( - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT DISTINCT COUNT( * ) + + 27 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT COUNT ( * ) + + 27 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4876
SELECT ALL CAST( + MIN( 22 ) AS SIGNED ) + 58 * + 29 AS col0
----
1704

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL CAST ( + MIN ( 22 ) AS INTEGER ) + 58 * + 29 AS col0
----
1704

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT ALL COUNT( * ) - 26 * + 95 AS col1
----
-2469

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL COUNT ( * ) - 26 * + 95 AS col1
----
-2469

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT COUNT( * ) * 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4878
SELECT COUNT ( * ) * 72 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT SUM( ALL 77 ) - - 49
----
126

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT SUM ( ALL 77 ) - - 49
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT ALL NULLIF ( + 65, + CAST( NULL AS SIGNED ) ) - 23
----
42

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL NULLIF ( + 65, + CAST ( NULL AS INTEGER ) ) - 23
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT 49 * COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4881
SELECT 49 * COUNT ( * ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT 42 * SUM( ALL 49 ) - 93
----
1965

skipif mysql # not compatible
query I rowsort label-4882
SELECT 42 * SUM ( ALL 49 ) - 93
----
1965

query I rowsort
SELECT 62 * 73
----
4526

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ( 2 ) - + ( - COUNT( * ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4884
SELECT ( 2 ) - + ( - COUNT ( * ) ) AS col0
----
3

query I rowsort
SELECT 42 + - 28
----
14

query I rowsort
SELECT DISTINCT ( + 83 ) * + 49 AS col1
----
4067

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT ALL 59 * - CASE - 54 WHEN + 66 + 83 THEN 9 WHEN 66 THEN + COALESCE ( 64, COUNT( * ) * + 81, + MIN( ALL - 74 ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT ALL 59 * - CASE - 54 WHEN + 66 + 83 THEN 9 WHEN 66 THEN + COALESCE ( 64, COUNT ( * ) * + 81, + MIN ( ALL - 74 ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT ALL MIN( DISTINCT + 60 ) * - COALESCE ( + COALESCE ( 50, + 8 + 7, 51 ), - 42, 81 )
----
-3000

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL MIN ( DISTINCT + 60 ) * - COALESCE ( + COALESCE ( 50, + 8 + 7, 51 ), - 42, 81 )
----
-3000

query I rowsort
SELECT 80 * 44 - 12
----
3508

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT COUNT( * ) * 2 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4890
SELECT COUNT ( * ) * 2 AS col2
----
2

query I rowsort
SELECT 77 - 57 AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT 87 + CAST( + 11 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-4892
SELECT 87 + CAST ( + 11 AS INTEGER )
----
98

query I rowsort
SELECT ALL - 8 + - 88 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT 64 * + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4894
SELECT 64 * + COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT 93 + + ( - 81 ) * - 99 AS col0
----
8112

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT + 90 + + 91 * + COUNT( ALL 93 )
----
181

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT + 90 + + 91 * + COUNT ( ALL 93 )
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT DISTINCT - COUNT( * ) + CAST( ( - COALESCE ( 29, + ( - 31 ), 41 ) ) + COUNT( - ( 45 ) ) AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT - COUNT ( * ) + CAST ( ( - COALESCE ( 29, + ( - 31 ), 41 ) ) + COUNT ( - ( 45 ) ) AS INTEGER )
----
-29

query I rowsort
SELECT ALL + 81 * - NULLIF ( 80 * 95, 31 + 12 ) col2
----
-615600

query I rowsort
SELECT ALL + 8 + - 59 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT CASE 25 WHEN 41 THEN NULL WHEN - 88 THEN - SUM( + 75 ) + CASE - SUM( DISTINCT - 17 ) + + 29 WHEN 42 + - COUNT( * ) THEN 73 * - 61 + + 51 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT CASE 25 WHEN 41 THEN NULL WHEN - 88 THEN - SUM ( + 75 ) + CASE - SUM ( DISTINCT - 17 ) + + 29 WHEN 42 + - COUNT ( * ) THEN 73 * - 61 + + 51 END END
----
NULL

query I rowsort
SELECT DISTINCT - 36 + 0 AS col0
----
-36

query I rowsort
SELECT ALL + 72 + - 39 * + 5 col1
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT 89 + - 8 DIV 18
----
89

skipif mysql # not compatible
query I rowsort label-4903
SELECT 89 + - 8 / 18
----
89

query I rowsort
SELECT 92 * - 78
----
-7176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4905
SELECT ALL + COALESCE ( - MAX( 37 ), 95 * - 64 ) DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + COALESCE ( - MAX ( 37 ), 95 * - 64 ) / - 93
----
0

query I rowsort
SELECT 99 + + 8
----
107

query I rowsort
SELECT ALL + 73 - - 44
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4908
SELECT 46 DIV - COUNT( * ) + - 71 * - 59 col1
----
4143

skipif mysql # not compatible
query I rowsort label-4908
SELECT 46 / - COUNT ( * ) + - 71 * - 59 col1
----
4143

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL + 79 * 24 - + 8 * COUNT( * ) AS col0
----
1888

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL + 79 * 24 - + 8 * COUNT ( * ) AS col0
----
1888

query I rowsort
SELECT ALL + 64 * - 35 AS col1
----
-2240

query I rowsort
SELECT - + 59 + + 53 * 18
----
895

query I rowsort
SELECT + 85 - 55 AS col0
----
30

query I rowsort
SELECT DISTINCT + ( + ( + 36 ) )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT - 54 * 26 + - 25 * + COUNT( * ) AS col2
----
-1429

skipif mysql # not compatible
query I rowsort label-4914
SELECT - 54 * 26 + - 25 * + COUNT ( * ) AS col2
----
-1429

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT - 56 * COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4915
SELECT - 56 * COUNT ( * ) AS col2
----
-56

query I rowsort
SELECT + NULLIF ( 56, 12 ) + - 87
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT - - COUNT( * ) + - CASE 60 WHEN COUNT( * ) THEN 52 ELSE NULL END * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT - - COUNT ( * ) + - CASE 60 WHEN COUNT ( * ) THEN 52 ELSE NULL END * 60 AS col0
----
NULL

query I rowsort
SELECT + - 1 * 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT - 96 * COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT - 96 * COUNT ( * )
----
-96

query I rowsort
SELECT DISTINCT + 84 * 40 AS col2
----
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT ALL + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 83 + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 83 + + 54
----
NULL

query I rowsort
SELECT - 58 * + 20 AS col1
----
-1160

query I rowsort
SELECT + + 74 * 90 AS col1
----
6660

onlyif mysql # DIV for integer division: 
query I rowsort label-4924
SELECT DISTINCT 16 DIV - ( + 23 * 56 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT 16 / - ( + 23 * 56 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL 5 + COUNT( * ) + - 59 * - 82
----
4844

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL 5 + COUNT ( * ) + - 59 * - 82
----
4844

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT COUNT( DISTINCT 57 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4926
SELECT COUNT ( DISTINCT 57 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT ALL 81 + + 6 DIV 1 col1
----
87

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL 81 + + 6 / 1 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT + ( 0 ) + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4928
SELECT + ( 0 ) + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT DISTINCT 93 + 53 AS col1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT SUM( + + 72 ) + ( - ( 22 ) ) col0
----
50

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT SUM ( + + 72 ) + ( - ( 22 ) ) col0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT + CAST( NULL AS SIGNED ) / - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT + CAST ( NULL AS INTEGER ) / - 59 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 87 * 58
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT MIN( DISTINCT 7 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT MIN ( DISTINCT 7 ) AS col1
----
7

query I rowsort
SELECT ALL 4 + - 12
----
-8

query I rowsort
SELECT ALL + 77 + + - 91 + 79 * - 26 * 63
----
-129416

query I rowsort
SELECT DISTINCT 39 + + - 67
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - COALESCE ( - 19, SUM( - ( + 41 ) ) * + ( + 59 + COUNT( * ) ) - 3 * + COUNT( ALL 42 ), - 25 * 27 + + 75 )
----
19

skipif mysql # not compatible
query I rowsort label-4937
SELECT - COALESCE ( - 19, SUM ( - ( + 41 ) ) * + ( + 59 + COUNT ( * ) ) - 3 * + COUNT ( ALL 42 ), - 25 * 27 + + 75 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4938
SELECT - 9 + + - 45 + + 47 * - COALESCE ( - 28 + ( 2 + - ( 5 - 93 * + 67 ) ) DIV - 85, 75 + + 66 ) * + 88 AS col1
----
417682

skipif mysql # not compatible
query I rowsort label-4938
SELECT - 9 + + - 45 + + 47 * - COALESCE ( - 28 + ( 2 + - ( 5 - 93 * + 67 ) ) / - 85, 75 + + 66 ) * + 88 AS col1
----
417682

query I rowsort
SELECT - 68 * 6 AS col2
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL MIN( DISTINCT 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL MIN ( DISTINCT 64 ) AS col1
----
64

query I rowsort
SELECT - ( - + 94 ) col1
----
94

query I rowsort
SELECT - 86 + - + 55
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL MIN( DISTINCT - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL MIN ( DISTINCT - 54 )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT + ( - 52 ) * CAST( 41 * 75 + 61 AS SIGNED ) AS col1
----
-163072

skipif mysql # not compatible
query I rowsort label-4944
SELECT + ( - 52 ) * CAST ( 41 * 75 + 61 AS INTEGER ) AS col1
----
-163072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT ALL COALESCE ( - + CAST( NULL AS SIGNED ), + 3 * 58, 98 * - 38 + + 30 ) AS col1
----
174

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL COALESCE ( - + CAST ( NULL AS INTEGER ), + 3 * 58, 98 * - 38 + + 30 ) AS col1
----
174

query I rowsort
SELECT DISTINCT + 59 - - - 60 - 41 * - 89 AS col1
----
3648

query I rowsort
SELECT - 32 - + + 43 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT ALL MAX( - 65 ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL MAX ( - 65 ) col1
----
-65

query I rowsort
SELECT ALL + NULLIF ( 2, - 64 / + 4 ) - 19 * 25
----
-473

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4950
SELECT DISTINCT SUM( ALL + 16 ) DIV + 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT SUM ( ALL + 16 ) / + 44 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4951
SELECT DISTINCT + ( 94 ) * + ( + 82 * - ( CASE + CAST( 15 AS SIGNED ) WHEN - CASE + 47 WHEN + 41 THEN NULL WHEN COUNT( * ) THEN - COUNT( + 12 ) ELSE + 44 / - ( + 72 ) END THEN MAX( - COALESCE ( 20, + 99 ) ) + CASE - 7 WHEN + 65 THEN 93 + - 56 ELSE - 11 * CASE + 72 WHEN - 89 THEN - 70 * - NULLIF ( - 81, 48 + 26 ) WHEN COUNT( * ) THEN NULL END END * - 73 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT + ( 94 ) * + ( + 82 * - ( CASE + CAST ( 15 AS INTEGER ) WHEN - CASE + 47 WHEN + 41 THEN NULL WHEN COUNT ( * ) THEN - COUNT ( + 12 ) ELSE + 44 / - ( + 72 ) END THEN MAX ( - COALESCE ( 20, + 99 ) ) + CASE - 7 WHEN + 65 THEN 93 + - 56 ELSE - 11 * CASE + 72 WHEN - 89 THEN - 70 * - NULLIF ( - 81, 48 + 26 ) WHEN COUNT ( * ) THEN NULL END END * - 73 ELSE NULL END ) )
----
NULL

query I rowsort
SELECT - 74 * 92 AS col0
----
-6808

query I rowsort
SELECT + + NULLIF ( + - 63, + 79 )
----
-63

query I rowsort
SELECT - - 47 * 87 AS col0
----
4089

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL + SUM( 17 )
----
17

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL + SUM ( 17 )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4956
SELECT + NULLIF ( COUNT( * ), 9 ) DIV 81 col0
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT + NULLIF ( COUNT ( * ), 9 ) / 81 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT DISTINCT - COALESCE ( + 4, 85 ) DIV 2 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT - COALESCE ( + 4, 85 ) / 2 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT ALL 15 DIV - 54 - 82
----
-82

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL 15 / - 54 - 82
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - + AVG ( 89 ) / CASE ( AVG ( 21 ) ) * ( - 82 * 4 + + 23 * + 18 ) WHEN - 26 + + 64 THEN - 88 WHEN + 61 * 5 + - COUNT( * ) * - MAX( DISTINCT + 41 * + 48 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT - + AVG ( 89 ) / CASE ( AVG ( 21 ) ) * ( - 82 * 4 + + 23 * + 18 ) WHEN - 26 + + 64 THEN - 88 WHEN + 61 * 5 + - COUNT ( * ) * - MAX ( DISTINCT + 41 * + 48 ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT + COALESCE ( - 32, 29 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT - + COUNT( * ) + + 47 * 31
----
1456

skipif mysql # not compatible
query I rowsort label-4961
SELECT - + COUNT ( * ) + + 47 * 31
----
1456

query I rowsort
SELECT + - 45 * 87 * 77
----
-301455

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT DISTINCT - 87 * 39 + + SUM( 49 ) + - 55
----
-3399

skipif mysql # not compatible
query I rowsort label-4963
SELECT DISTINCT - 87 * 39 + + SUM ( 49 ) + - 55
----
-3399

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT 59 * 9 * + MIN( + COALESCE ( + 94, + 39 ) ) + MIN( NULLIF ( 58, 71 * + 89 ) ) - 37
----
49935

skipif mysql # not compatible
query I rowsort label-4964
SELECT 59 * 9 * + MIN ( + COALESCE ( + 94, + 39 ) ) + MIN ( NULLIF ( 58, 71 * + 89 ) ) - 37
----
49935

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - ( + 75 ) - COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-4965
SELECT - ( + 75 ) - COUNT ( * ) AS col2
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4966
SELECT DISTINCT + COUNT( * ), 86 DIV - MAX( DISTINCT - 31 ) AS col2
----
1
2

skipif mysql # not compatible
query II rowsort label-4966
SELECT DISTINCT + COUNT ( * ), 86 / - MAX ( DISTINCT - 31 ) AS col2
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL + NULLIF ( - + 17, + COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + NULLIF ( - + 17, + COUNT ( * ) )
----
-17

query I rowsort
SELECT DISTINCT + 71 * 65 + - 63 col1
----
4552

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - SUM( 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4969
SELECT - SUM ( 17 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4970
SELECT COUNT( * ) AS col2, - ( + 38 )
----
1
-38

skipif mysql # not compatible
query II rowsort label-4970
SELECT COUNT ( * ) AS col2, - ( + 38 )
----
1
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT + 68 - + ( + 45 ) - CASE + 89 - - 27 WHEN + 56 - ( CAST( NULL AS SIGNED ) ) THEN COUNT( * ) + - 23 END * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4971
SELECT + 68 - + ( + 45 ) - CASE + 89 - - 27 WHEN + 56 - ( CAST ( NULL AS INTEGER ) ) THEN COUNT ( * ) + - 23 END * 22 AS col2
----
NULL

query I rowsort
SELECT + 80 * - 22 * - - 38
----
-66880

query I rowsort
SELECT ALL 92 * 85
----
7820

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT - ( - ( - + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4974
SELECT - ( - ( - + COUNT ( * ) ) )
----
-1

query I rowsort
SELECT DISTINCT 27 * 20
----
540

query I rowsort
SELECT 2 + + 70
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL 44 * + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL 44 * + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT 8 * + + ( SUM( ALL + 5 ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4978
SELECT 8 * + + ( SUM ( ALL + 5 ) ) AS col2
----
40

query I rowsort
SELECT ALL 56 * + 42 AS col1
----
2352

query II rowsort
SELECT ALL 74 AS col1, 65 col2
----
74
65

query I rowsort
SELECT DISTINCT 91 * - 47 AS col0
----
-4277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4982
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), - COUNT( * ) ) * - NULLIF ( - ( - 67 ) * - 53 + - 29 * - 50, + 80 / NULLIF ( COUNT( * ) * + 40, + CAST( NULL AS SIGNED ) + 13 ) )
----
-2101

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) * - NULLIF ( - ( - 67 ) * - 53 + - 29 * - 50, + 80 / NULLIF ( COUNT ( * ) * + 40, + CAST ( NULL AS INTEGER ) + 13 ) )
----
-2101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4983
SELECT + 71 * + ( + NULLIF ( + CAST( 53 AS SIGNED ), - 97 ) ) + - 64
----
3699

skipif mysql # not compatible
query I rowsort label-4983
SELECT + 71 * + ( + NULLIF ( + CAST ( 53 AS INTEGER ), - 97 ) ) + - 64
----
3699

query I rowsort
SELECT 17 + - 35
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT - + COUNT( DISTINCT + + 34 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4985
SELECT - + COUNT ( DISTINCT + + 34 ) AS col2
----
-1

query I rowsort
SELECT 48 + + 22 AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4987
SELECT - + CAST( - ( + COALESCE ( COALESCE ( - 65, - 51 + 64 * 61, - 79 * 66 + 39, - COUNT( * ) / 48 ), 99 + - 83 ) ) AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-4987
SELECT - + CAST ( - ( + COALESCE ( COALESCE ( - 65, - 51 + 64 * 61, - 79 * 66 + 39, - COUNT ( * ) / 48 ), 99 + - 83 ) ) AS INTEGER )
----
-65

query I rowsort
SELECT 94 + + + 54
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT + 38 * CAST( 52 AS SIGNED )
----
1976

skipif mysql # not compatible
query I rowsort label-4989
SELECT + 38 * CAST ( 52 AS INTEGER )
----
1976

query I rowsort
SELECT ALL + - ( + + 21 ) * + 38 AS col2
----
-798

query II rowsort
SELECT DISTINCT - 15, 77 col1
----
-15
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4992
SELECT ALL - 10 + - 64 DIV - - 4 DIV + COUNT( * ) - 8 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - 10 + - 64 / - - 4 / + COUNT ( * ) - 8 AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4993
SELECT + - COUNT( * ) col2, - CAST( 29 AS SIGNED ) * 21 AS col1
----
-1
-609

skipif mysql # not compatible
query II rowsort label-4993
SELECT + - COUNT ( * ) col2, - CAST ( 29 AS INTEGER ) * 21 AS col1
----
-1
-609

query I rowsort
SELECT - 74 + 44
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4995
SELECT ALL + COUNT( * ) + + 28 DIV + 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL + COUNT ( * ) + + 28 / + 41 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT CAST( - 58 AS SIGNED ) + - 89 + - 59 * 49
----
-3038

skipif mysql # not compatible
query I rowsort label-4996
SELECT CAST ( - 58 AS INTEGER ) + - 89 + - 59 * 49
----
-3038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4997
SELECT ALL - 18 * - + COALESCE ( + - ( + 67 ), CAST( NULL AS SIGNED ) + - 86 )
----
-1206

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL - 18 * - + COALESCE ( + - ( + 67 ), CAST ( NULL AS INTEGER ) + - 86 )
----
-1206

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT + 69 AS col2, COUNT( * ) + - + 11 * + 71
----
69
-780

skipif mysql # not compatible
query II rowsort label-4998
SELECT + 69 AS col2, COUNT ( * ) + - + 11 * + 71
----
69
-780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4999
SELECT + 40 DIV - COUNT( * ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4999
SELECT + 40 / - COUNT ( * ) AS col0
----
-40

query II rowsort
SELECT + 31 AS col2, + 15
----
31
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5001
SELECT - ( - COUNT( * ) ) + + CAST( NULL AS SIGNED ) * 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT - ( - COUNT ( * ) ) + + CAST ( NULL AS INTEGER ) * 76 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT ALL NULLIF ( - 76, CAST( NULL AS SIGNED ) * 82 ) * 89
----
-6764

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL NULLIF ( - 76, CAST ( NULL AS INTEGER ) * 82 ) * 89
----
-6764

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT + - COUNT( DISTINCT 39 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5003
SELECT + - COUNT ( DISTINCT 39 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL + 21 + COUNT( * ) * ( + 61 )
----
82

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL + 21 + COUNT ( * ) * ( + 61 )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT DISTINCT - NULLIF ( + COUNT( * ), 77 * + COUNT( * ) / + 74 - CAST( NULL AS SIGNED ) * CASE + 58 WHEN - 14 * 15 THEN SUM( ALL + 16 ) * - COUNT( * ) WHEN 79 THEN + 27 ELSE NULL END ) * - 89 col1
----
89

skipif mysql # not compatible
query I rowsort label-5005
SELECT DISTINCT - NULLIF ( + COUNT ( * ), 77 * + COUNT ( * ) / + 74 - CAST ( NULL AS INTEGER ) * CASE + 58 WHEN - 14 * 15 THEN SUM ( ALL + 16 ) * - COUNT ( * ) WHEN 79 THEN + 27 ELSE NULL END ) * - 89 col1
----
89

query I rowsort
SELECT ALL - 58 + + + 77
----
19

query I rowsort
SELECT ALL 10 + 30
----
40

query I rowsort
SELECT 93 * 47
----
4371

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT ALL - 49 DIV + - ( - + 36 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - 49 / + - ( - + 36 ) AS col2
----
-1

query I rowsort
SELECT 64 + 20 + - 12 * + - 19
----
312

query I rowsort
SELECT DISTINCT - 77 * - 65 col2
----
5005

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5012
SELECT ALL - CASE 81 WHEN 2 THEN 52 DIV 12 ELSE + MIN( DISTINCT - 78 ) * 82 END
----
6396

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL - CASE 81 WHEN 2 THEN 52 / 12 ELSE + MIN ( DISTINCT - 78 ) * 82 END
----
6396

query I rowsort
SELECT DISTINCT 86 - - 4 - 5 * + + 89 AS col0
----
-355

query I rowsort
SELECT ALL - 59 * - 76 AS col0
----
4484

query I rowsort
SELECT 18 * 24
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL SUM( - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL SUM ( - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT NULLIF ( - ( + ( - - 99 ) ), - 14 * - NULLIF ( - 85, + COUNT( * ) * + 31 ) ) + ( ( 24 ) ) * COUNT( * ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-5017
SELECT NULLIF ( - ( + ( - - 99 ) ), - 14 * - NULLIF ( - 85, + COUNT ( * ) * + 31 ) ) + ( ( 24 ) ) * COUNT ( * ) AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5018
SELECT 8 * + + ( + 84 ) DIV - 4 + - 14 AS col0
----
-182

skipif mysql # not compatible
query I rowsort label-5018
SELECT 8 * + + ( + 84 ) / - 4 + - 14 AS col0
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT ALL 2 DIV - NULLIF ( 91, + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL 2 / - NULLIF ( 91, + 17 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT DISTINCT + COUNT( ALL - - COALESCE ( - - 89, + 92 ) ) + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT + COUNT ( ALL - - COALESCE ( - - 89, + 92 ) ) + - 52
----
-51

query I rowsort
SELECT DISTINCT - ( + 29 ) * 80
----
-2320

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL + 39 + - COUNT( * ) + + ( - 5 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL + 39 + - COUNT ( * ) + + ( - 5 ) AS col0
----
33

query II rowsort
SELECT 32 * + - 87, + 30 AS col2
----
-2784
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - COUNT( * ) * + + 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5024
SELECT - COUNT ( * ) * + + 74 AS col0
----
-74

query I rowsort
SELECT DISTINCT + 86 * + 79 + - 99 + + 37 AS col0
----
6732

query I rowsort
SELECT + 47 * 22 + - ( ( 72 ) )
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT 29 * + 95 * + + MAX( 44 ) + + MAX( DISTINCT - 58 + - 15 ) AS col0
----
121147

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT 29 * + 95 * + + MAX ( 44 ) + + MAX ( DISTINCT - 58 + - 15 ) AS col0
----
121147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5028
SELECT ALL - CAST( + 65 AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL - CAST ( + 65 AS INTEGER ) AS col2
----
-65

query I rowsort
SELECT ALL - 73 * - - 91
----
-6643

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5030
SELECT DISTINCT 34 * - 18 + + 34 DIV CASE WHEN - 39 IS NOT NULL THEN - COUNT( * ) - 87 ELSE NULL END DIV 90
----
-612

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT 34 * - 18 + + 34 / CASE WHEN - 39 IS NOT NULL THEN - COUNT ( * ) - 87 ELSE NULL END / 90
----
-612

query I rowsort
SELECT 81 * + 70 * ( + + 83 )
----
470610

query I rowsort
SELECT ALL 81 * + 48 AS col2
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT COUNT( - 2 ) + NULLIF ( + 56, - + 33 * - 12 ) + + 65
----
122

skipif mysql # not compatible
query I rowsort label-5033
SELECT COUNT ( - 2 ) + NULLIF ( + 56, - + 33 * - 12 ) + + 65
----
122

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5034
SELECT 2 DIV + CAST( - + 95 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT 2 / + CAST ( - + 95 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT 81 * + - NULLIF ( MAX( DISTINCT - 34 ), COUNT( * ) ) * 85 + 31 AS col2
----
234121

skipif mysql # not compatible
query I rowsort label-5035
SELECT 81 * + - NULLIF ( MAX ( DISTINCT - 34 ), COUNT ( * ) ) * 85 + 31 AS col2
----
234121

onlyif mysql # aggregate syntax: 
query II rowsort label-5036
SELECT DISTINCT - 45 * - + 41 * 50 AS col1, - COUNT( * ) * - 22
----
92250
22

skipif mysql # not compatible
query II rowsort label-5036
SELECT DISTINCT - 45 * - + 41 * 50 AS col1, - COUNT ( * ) * - 22
----
92250
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL + SUM( - + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL + SUM ( - + 1 )
----
-1

query I rowsort
SELECT DISTINCT 80 * 10 col0
----
800

onlyif mysql # DIV for integer division: 
query I rowsort label-5039
SELECT DISTINCT + 0 DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT + 0 / + + 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5040
SELECT - 9 + COUNT( * ) * + SUM( ALL + CAST( - 44 AS SIGNED ) )
----
-53

skipif mysql # not compatible
query I rowsort label-5040
SELECT - 9 + COUNT ( * ) * + SUM ( ALL + CAST ( - 44 AS INTEGER ) )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-5041
SELECT - 27 DIV - + 27 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5041
SELECT - 27 / - + 27 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT ALL + MAX( - 11 ) * 63
----
-693

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL + MAX ( - 11 ) * 63
----
-693

query I rowsort
SELECT ALL COALESCE ( - - 41, - - 35 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5044
SELECT ALL COUNT( * ) AS col0, 89 AS col1
----
1
89

skipif mysql # not compatible
query II rowsort label-5044
SELECT ALL COUNT ( * ) AS col0, 89 AS col1
----
1
89

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT DISTINCT + COALESCE ( - - 96, - 22 ) DIV + 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT + COALESCE ( - - 96, - 22 ) / + 54 AS col2
----
1

query I rowsort
SELECT - 73 + 67 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5047
SELECT - 79 - - MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT - 79 - - MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5048
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - COALESCE ( COUNT( * ), - 81 ) THEN NULL WHEN 9 THEN 14 * + 16 + - 3 WHEN CAST( NULL AS SIGNED ) + ( 31 + + 55 ) * 28 THEN - 20 * + COUNT( * ) WHEN + 34 THEN NULL ELSE + 33 DIV + 59 + - 58 END AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - COALESCE ( COUNT ( * ), - 81 ) THEN NULL WHEN 9 THEN 14 * + 16 + - 3 WHEN CAST ( NULL AS INTEGER ) + ( 31 + + 55 ) * 28 THEN - 20 * + COUNT ( * ) WHEN + 34 THEN NULL ELSE + 33 / + 59 + - 58 END AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL - NULLIF ( - SUM( DISTINCT 58 ), 95 + SUM( - 21 ) * COUNT( * ) ) * + 23
----
1334

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL - NULLIF ( - SUM ( DISTINCT 58 ), 95 + SUM ( - 21 ) * COUNT ( * ) ) * + 23
----
1334

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT + 73 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT + 73 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL CASE - + 50 WHEN + 91 THEN 91 * - - 58 + - COUNT( * ) * 42 ELSE - 29 END
----
-29

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL CASE - + 50 WHEN + 91 THEN 91 * - - 58 + - COUNT ( * ) * 42 ELSE - 29 END
----
-29

query II rowsort
SELECT DISTINCT - 12 * - - 42 * - 31 AS col2, + 37 * + 71
----
15624
2627

query I rowsort
SELECT - - ( + + 13 ) AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5054
SELECT - - 73 * 99 * 80 + 21 + + + NULLIF ( 51, 70 + + 17 ) + - CAST( - COUNT( * ) AS SIGNED ) * - 74 AS col1
----
578158

skipif mysql # not compatible
query I rowsort label-5054
SELECT - - 73 * 99 * 80 + 21 + + + NULLIF ( 51, 70 + + 17 ) + - CAST ( - COUNT ( * ) AS INTEGER ) * - 74 AS col1
----
578158

query I rowsort
SELECT ALL 68 + - 52 + - 83 + - + 78 * + - 36 AS col2
----
2741

query I rowsort
SELECT DISTINCT - + 82 * 62
----
-5084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5057
SELECT + 51 - - 11 - + 10 + 3 + + COUNT( * ) DIV 58 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5057
SELECT + 51 - - 11 - + 10 + 3 + + COUNT ( * ) / 58 AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5058
SELECT - - 16 AS col0, - COALESCE ( + - COUNT( * ), - 24 ) AS col1
----
16
1

skipif mysql # not compatible
query II rowsort label-5058
SELECT - - 16 AS col0, - COALESCE ( + - COUNT ( * ), - 24 ) AS col1
----
16
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT - 95 + CAST( - 39 AS SIGNED ) AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-5059
SELECT - 95 + CAST ( - 39 AS INTEGER ) AS col1
----
-134

query I rowsort
SELECT + 65 * + 1 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT - NULLIF ( COUNT( * ), - + ( 33 ) * + 30 ) + - 60
----
-61

skipif mysql # not compatible
query I rowsort label-5061
SELECT - NULLIF ( COUNT ( * ), - + ( 33 ) * + 30 ) + - 60
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL - 27 + CASE - + COUNT( * ) WHEN 46 THEN NULL ELSE + + 28 END + 23 * 62 AS col0
----
1427

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - 27 + CASE - + COUNT ( * ) WHEN 46 THEN NULL ELSE + + 28 END + 23 * 62 AS col0
----
1427

query I rowsort
SELECT - - 21 + 63
----
84

query I rowsort
SELECT + CASE + 75 WHEN + 82 THEN NULL ELSE - - 66 END AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT - + 47 + 88 + - ( - NULLIF ( - 92, + 33 / + 20 - + CAST( - 48 + 23 AS SIGNED ) * 64 ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5065
SELECT - + 47 + 88 + - ( - NULLIF ( - 92, + 33 / + 20 - + CAST ( - 48 + 23 AS INTEGER ) * 64 ) ) AS col1
----
-51

query I rowsort
SELECT + + 41 * - 42
----
-1722

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT 71 * + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT 71 * + COUNT ( * ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5068
SELECT DISTINCT + 25 DIV - ( + - COUNT( * ) ), COALESCE ( - 73, 14, 29 DIV + 50 ) col1
----
25
-73

skipif mysql # not compatible
query II rowsort label-5068
SELECT DISTINCT + 25 / - ( + - COUNT ( * ) ), COALESCE ( - 73, 14, 29 / + 50 ) col1
----
25
-73

query I rowsort
SELECT ALL - 66 - - 88 AS col2
----
22

query I rowsort
SELECT ALL + ( 54 ) * - 97 * + - 32 AS col2
----
167616

query I rowsort
SELECT + + 97 + - 86 + 15
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5072
SELECT + 67 * - - COUNT( * ) + ( - CAST( NULL AS SIGNED ) ) + - MAX( ALL - 35 ) * + 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT + 67 * - - COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) ) + - MAX ( ALL - 35 ) * + 32 col1
----
NULL

query I rowsort
SELECT DISTINCT 37 * - + ( + - 1 ) * - 20 + - - 48 - - 36 - + 42 AS col0
----
-698

query I rowsort
SELECT + ( - 74 ) + + ( + 13 ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + SUM( DISTINCT + + ( - 12 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-5075
SELECT + SUM ( DISTINCT + + ( - 12 ) )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5076
SELECT 95 / + - 61 * - 17 + 3 * + NULLIF ( - 18, - 74 ) + CASE - CASE + CAST( 91 AS SIGNED ) WHEN - 10 + 76 THEN NULL WHEN - COUNT( * ) / + COUNT( - 8 ) THEN + 77 * NULLIF ( 83, 17 ) END WHEN ( 69 ) THEN NULL WHEN ( + 55 ) + - 87 THEN + 25 * 71 WHEN - 63 / - COALESCE ( 96 * 86, - 47 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT 95 / + - 61 * - 17 + 3 * + NULLIF ( - 18, - 74 ) + CASE - CASE + CAST ( 91 AS INTEGER ) WHEN - 10 + 76 THEN NULL WHEN - COUNT ( * ) / + COUNT ( - 8 ) THEN + 77 * NULLIF ( 83, 17 ) END WHEN ( 69 ) THEN NULL WHEN ( + 55 ) + - 87 THEN + 25 * 71 WHEN - 63 / - COALESCE ( 96 * 86, - 47 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 45 + ( + 71 )
----
26

query I rowsort
SELECT ( - 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL + SUM( ALL + 36 ) col1
----
36

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + SUM ( ALL + 36 ) col1
----
36

query II rowsort
SELECT DISTINCT + 50 AS col2, 44 * + 4
----
50
176

query I rowsort
SELECT COALESCE ( - 30, 60 ) col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT + ( - - COUNT( * ) ) * - 67 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5082
SELECT + ( - - COUNT ( * ) ) * - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT + ( + + COALESCE ( - CASE 90 WHEN 96 * + SUM( 87 ) + - COALESCE ( - CASE - 87 WHEN - 8 THEN 23 ELSE NULL END + - 70 * + 91, 23 * - 28, + COUNT( * ) ) * - CASE 55 WHEN 11 * - 70 THEN NULL WHEN + AVG ( 30 ) THEN NULL ELSE + COUNT( * ) END THEN NULL ELSE COUNT( * ) END, 54 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5083
SELECT + ( + + COALESCE ( - CASE 90 WHEN 96 * + SUM ( 87 ) + - COALESCE ( - CASE - 87 WHEN - 8 THEN 23 ELSE NULL END + - 70 * + 91, 23 * - 28, + COUNT ( * ) ) * - CASE 55 WHEN 11 * - 70 THEN NULL WHEN + AVG ( 30 ) THEN NULL ELSE + COUNT ( * ) END THEN NULL ELSE COUNT ( * ) END, 54 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - 79 + - ( + + 2 ) + COUNT( * ) * COUNT( + 49 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5084
SELECT - 79 + - ( + + 2 ) + COUNT ( * ) * COUNT ( + 49 ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5085
SELECT NULLIF ( - CAST( - 82 AS SIGNED ), + + COUNT( * ) ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5085
SELECT NULLIF ( - CAST ( - 82 AS INTEGER ), + + COUNT ( * ) ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT DISTINCT - NULLIF ( - + MAX( DISTINCT - 47 ), + 59 ) * - 86 * + - 9 + COUNT( * ) AS col1
----
-36377

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT - NULLIF ( - + MAX ( DISTINCT - 47 ), + 59 ) * - 86 * + - 9 + COUNT ( * ) AS col1
----
-36377

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5087
SELECT - MAX( DISTINCT 90 ) DIV 24 * + 58 AS col1, + 13 * + - 86
----
-174
-1118

skipif mysql # not compatible
query II rowsort label-5087
SELECT - MAX ( DISTINCT 90 ) / 24 * + 58 AS col1, + 13 * + - 86
----
-174
-1118

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT MAX( + 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-5088
SELECT MAX ( + 51 ) col2
----
51

query I rowsort
SELECT ALL + 19 * - 11 * 48 + + + 4 * + ( - 93 ) AS col0
----
-10404

query I rowsort
SELECT - 61 + ( - 83 ) AS col2
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5091
SELECT DISTINCT + 42 * + 48 * - CASE COALESCE ( + - 5, + 50 + + 31 * + 97 ) WHEN - COUNT( 21 ) + + COALESCE ( - 60, + 3 + + 16 DIV - 96, - 70 * + 49 ) * - 60 THEN + ( + 97 ) - 33 WHEN - 43 * 21 + 57 THEN NULL ELSE 87 DIV 43 END + + 61 * + COALESCE ( + 92 * 4, - 68 )
----
18416

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT + 42 * + 48 * - CASE COALESCE ( + - 5, + 50 + + 31 * + 97 ) WHEN - COUNT ( 21 ) + + COALESCE ( - 60, + 3 + + 16 / - 96, - 70 * + 49 ) * - 60 THEN + ( + 97 ) - 33 WHEN - 43 * 21 + 57 THEN NULL ELSE 87 / 43 END + + 61 * + COALESCE ( + 92 * 4, - 68 )
----
18416

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL SUM( 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL SUM ( 35 ) AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5093
SELECT - CAST( NULL AS SIGNED ) / + 26 + 91 + 24 * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT - CAST ( NULL AS INTEGER ) / + 26 + 91 + 24 * - 90
----
NULL

query II rowsort
SELECT ALL 42 AS col2, 21
----
42
21

query I rowsort
SELECT - ( + + 8 ) * - 54 AS col0
----
432

onlyif mysql # DIV for integer division: 
query I rowsort label-5096
SELECT ALL + - 92 DIV - 8 + 57
----
68

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL + - 92 / - 8 + 57
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT - + COUNT( 81 ) + - 40
----
-41

skipif mysql # not compatible
query I rowsort label-5097
SELECT - + COUNT ( 81 ) + - 40
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5098
SELECT - COALESCE ( + 45, - 57 * CAST( NULL AS SIGNED ) ) * + - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5098
SELECT - COALESCE ( + 45, - 57 * CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) AS col1
----
45

query II rowsort
SELECT - + 95, 81 AS col0
----
-95
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5100
SELECT - + 18 * ( - 70 ) + + 58 DIV - 87
----
1260

skipif mysql # not compatible
query I rowsort label-5100
SELECT - + 18 * ( - 70 ) + + 58 / - 87
----
1260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5101
SELECT DISTINCT - - COUNT( * ) - - MIN( DISTINCT - 14 ) DIV 44 * - 15 * - ( 22 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT - - COUNT ( * ) - - MIN ( DISTINCT - 14 ) / 44 * - 15 * - ( 22 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5102
SELECT - 38 AS col0, + 75 + - CAST( 73 AS SIGNED ) + + 58
----
-38
60

skipif mysql # not compatible
query II rowsort label-5102
SELECT - 38 AS col0, + 75 + - CAST ( 73 AS INTEGER ) + + 58
----
-38
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL CASE - 42 WHEN COUNT( * ) THEN - - 71 * + 55 * - - NULLIF ( - 25, 71 - - 80 ) + ( - 96 + 72 ) + 12 WHEN 76 THEN NULL ELSE NULL END - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL CASE - 42 WHEN COUNT ( * ) THEN - - 71 * + 55 * - - NULLIF ( - 25, 71 - - 80 ) + ( - 96 + 72 ) + 12 WHEN 76 THEN NULL ELSE NULL END - 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT - 89, - COUNT( * ) col2
----
-89
-1

skipif mysql # not compatible
query II rowsort label-5104
SELECT - 89, - COUNT ( * ) col2
----
-89
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL + 46 * + 35 + 3 * + ( - NULLIF ( - 0, COALESCE ( + 92, - ( 45 ) + AVG ( 34 ) ) - + 9 * + COUNT( * ) ) ) AS col0
----
1610

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + 46 * + 35 + 3 * + ( - NULLIF ( - 0, COALESCE ( + 92, - ( 45 ) + AVG ( 34 ) ) - + 9 * + COUNT ( * ) ) ) AS col0
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT - - COUNT( * ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5106
SELECT - - COUNT ( * ) * + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT + 39 col1, + 26 * - COUNT( * ) AS col2
----
39
-26

skipif mysql # not compatible
query II rowsort label-5107
SELECT + 39 col1, + 26 * - COUNT ( * ) AS col2
----
39
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT + SUM( + + 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5108
SELECT + SUM ( + + 53 ) AS col1
----
53

query I rowsort
SELECT ALL - + 0 - - 78 + + 67 AS col0
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5110
SELECT - CASE + 9 WHEN + 49 THEN 34 END AS col1, 54 * + ( + COALESCE ( 3, CASE + 83 WHEN ( 19 ) * COALESCE ( - COUNT( * ) * 3, 95 + CAST( + 37 + 49 AS SIGNED ) ) THEN NULL ELSE COUNT( * ) * + 89 END ) )
----
NULL
162

skipif mysql # not compatible
query II rowsort label-5110
SELECT - CASE + 9 WHEN + 49 THEN 34 END AS col1, 54 * + ( + COALESCE ( 3, CASE + 83 WHEN ( 19 ) * COALESCE ( - COUNT ( * ) * 3, 95 + CAST ( + 37 + 49 AS INTEGER ) ) THEN NULL ELSE COUNT ( * ) * + 89 END ) )
----
NULL
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - - 91 * + COUNT( * ) * + 68 AS col0
----
6188

skipif mysql # not compatible
query I rowsort label-5111
SELECT - - 91 * + COUNT ( * ) * + 68 AS col0
----
6188

query I rowsort
SELECT ALL ( - 63 ) * + 74 AS col0
----
-4662

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5113
SELECT ALL + 27 DIV CAST( + ( - + AVG ( DISTINCT - 9 ) ) AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + 27 / CAST ( + ( - + AVG ( DISTINCT - 9 ) ) AS INTEGER ) AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT DISTINCT CAST( + 93 AS SIGNED ) * - + 61 / + - NULLIF ( - - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ), + 53 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT CAST ( + 93 AS INTEGER ) * - + 61 / + - NULLIF ( - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ), + 53 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5115
SELECT ALL COUNT( * ) * 79, - 35 AS col2, + 76 AS col0
----
79
-35
76

skipif mysql # not compatible
query III rowsort label-5115
SELECT ALL COUNT ( * ) * 79, - 35 AS col2, + 76 AS col0
----
79
-35
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5116
SELECT ALL - CASE + 10 WHEN - + 86 DIV - + 59 * 52 THEN 76 DIV - + COUNT( * ) * 51 ELSE + 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL - CASE + 10 WHEN - + 86 / - + 59 * 52 THEN 76 / - + COUNT ( * ) * 51 ELSE + 86 END
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL 92 + + COUNT( * ) + 9
----
102

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL 92 + + COUNT ( * ) + 9
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-5118
SELECT 98 DIV 40
----
2

skipif mysql # not compatible
query I rowsort label-5118
SELECT 98 / 40
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5119
SELECT - 57 * NULLIF ( + + 41, + - NULLIF ( + CAST( + COALESCE ( - 77, - ( - 10 ) / 96, + 36 ) AS SIGNED ), + 88 ) + ( 3 ) ) * 61 + CASE ( + 49 ) WHEN 4 * COUNT( * ) THEN - ( 62 ) * 47 + - 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT - 57 * NULLIF ( + + 41, + - NULLIF ( + CAST ( + COALESCE ( - 77, - ( - 10 ) / 96, + 36 ) AS INTEGER ), + 88 ) + ( 3 ) ) * 61 + CASE ( + 49 ) WHEN 4 * COUNT ( * ) THEN - ( 62 ) * 47 + - 87 END
----
NULL

query I rowsort
SELECT COALESCE ( - 59, - + 57 ) * + - 14
----
826

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL 62 + - 52 + 76 * + 94 * COUNT( - 18 )
----
7154

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL 62 + - 52 + 76 * + 94 * COUNT ( - 18 )
----
7154

query I rowsort
SELECT ALL 79 + 83 col1
----
162

query I rowsort
SELECT COALESCE ( - 60, - 65 + 41 ) * 4 * - + 93 + 96 + - 26 AS col0
----
22390

query I rowsort
SELECT 36 + - 94 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT ALL 26 + 75 + + COUNT( DISTINCT 75 ) col0
----
102

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL 26 + 75 + + COUNT ( DISTINCT 75 ) col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ( - + 29 ) + - - MIN( + 86 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5126
SELECT ( - + 29 ) + - - MIN ( + 86 ) AS col0
----
57

query I rowsort
SELECT ALL + 65 * + 39
----
2535

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT 10 + NULLIF ( - + 87, + 87 * + NULLIF ( 97, + - 14 ) ) * ( 31 * - MIN( 23 ) ) AS col0
----
62041

skipif mysql # not compatible
query I rowsort label-5128
SELECT 10 + NULLIF ( - + 87, + 87 * + NULLIF ( 97, + - 14 ) ) * ( 31 * - MIN ( 23 ) ) AS col0
----
62041

onlyif mysql # aggregate syntax: 
query II rowsort label-5129
SELECT DISTINCT 3 + + + 24 AS col2, + COUNT( * ) * - + 81
----
27
-81

skipif mysql # not compatible
query II rowsort label-5129
SELECT DISTINCT 3 + + + 24 AS col2, + COUNT ( * ) * - + 81
----
27
-81

query I rowsort
SELECT ALL + 2 * + - 93 AS col2
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL - 27 - + + 37 * + NULLIF ( - - 69, - - ( 43 ) ) * + MIN( 18 ) AS col1
----
-45981

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - 27 - + + 37 * + NULLIF ( - - 69, - - ( 43 ) ) * + MIN ( 18 ) AS col1
----
-45981

query I rowsort
SELECT - ( + 41 ) - + 33
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5133
SELECT DISTINCT - CAST( + - 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT - CAST ( + - 62 AS INTEGER )
----
62

query I rowsort
SELECT ALL NULLIF ( - 32, 3 ) AS col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5135
SELECT ALL - COUNT( DISTINCT - 14 ) DIV - 26 * + ( - - 93 ) * COUNT( * ) + + - 71 col1
----
-71

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - COUNT ( DISTINCT - 14 ) / - 26 * + ( - - 93 ) * COUNT ( * ) + + - 71 col1
----
-71

query I rowsort
SELECT + 40 * + 11
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ( - - 89 ) * - CASE + 86 WHEN - NULLIF ( - COUNT( + 64 ), + 49 * 60 - + 78 ) THEN - 31 + - ( CASE 36 WHEN 59 THEN 81 ELSE NULL END ) WHEN - 99 + 90 THEN - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT ( - - 89 ) * - CASE + 86 WHEN - NULLIF ( - COUNT ( + 64 ), + 49 * 60 - + 78 ) THEN - 31 + - ( CASE 36 WHEN 59 THEN 81 ELSE NULL END ) WHEN - 99 + 90 THEN - 62 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT 35 + + 69 + 91 DIV - 15 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5138
SELECT 35 + + 69 + 91 / - 15 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5139
SELECT ALL - - 97 / - 84 + + CAST( NULL AS SIGNED ) + - 40 * 19 + + - ( + CAST( - MIN( DISTINCT 23 ) AS SIGNED ) ) / + 77 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL - - 97 / - 84 + + CAST ( NULL AS INTEGER ) + - 40 * 19 + + - ( + CAST ( - MIN ( DISTINCT 23 ) AS INTEGER ) ) / + 77 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5140
SELECT 27 * + 37 * - - 5 col1, CAST( - + 3 AS SIGNED ) * + 45
----
4995
-135

skipif mysql # not compatible
query II rowsort label-5140
SELECT 27 * + 37 * - - 5 col1, CAST ( - + 3 AS INTEGER ) * + 45
----
4995
-135

query II rowsort
SELECT - 90 * + 13 AS col2, + ( + 73 ) col2
----
-1170
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT ALL + 34 * + + SUM( DISTINCT - - 21 )
----
714

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL + 34 * + + SUM ( DISTINCT - - 21 )
----
714

query II rowsort
SELECT ALL 82, 67 AS col2
----
82
67

query I rowsort
SELECT 2 + + 22
----
24

query I rowsort
SELECT 12 + 68
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5146
SELECT COUNT( * ) AS col1, + COUNT( * ) DIV 89 + + 69
----
1
69

skipif mysql # not compatible
query II rowsort label-5146
SELECT COUNT ( * ) AS col1, + COUNT ( * ) / 89 + + 69
----
1
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5147
SELECT DISTINCT CAST( NULL AS SIGNED ) + NULLIF ( + 11, + 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT CAST ( NULL AS INTEGER ) + NULLIF ( + 11, + 70 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT + COUNT( * ) + - 27 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT + COUNT ( * ) + - 27 AS col2
----
-26

query I rowsort
SELECT 2 * + 4
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT COUNT( * ) * + + NULLIF ( - - 16, + CAST( - 61 AS SIGNED ) ) + - 31 * + - 81 AS col1
----
2527

skipif mysql # not compatible
query I rowsort label-5150
SELECT COUNT ( * ) * + + NULLIF ( - - 16, + CAST ( - 61 AS INTEGER ) ) + - 31 * + - 81 AS col1
----
2527

query II rowsort
SELECT + 4, + 2 AS col2
----
4
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT - COUNT( * ) / + CASE - 34 WHEN + 86 + 12 THEN - - 9 + + - 88 WHEN + 23 * 26 - - MIN( + 85 ) / - SUM( + 31 ) THEN + 58 END + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT - COUNT ( * ) / + CASE - 34 WHEN + 86 + 12 THEN - - 9 + + - 88 WHEN + 23 * 26 - - MIN ( + 85 ) / - SUM ( + 31 ) THEN + 58 END + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( + + 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5154
SELECT ALL - MAX( ALL + ( - + 32 ) ) + + 10 + - 56 - - 55 * 69 DIV 46 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - MAX ( ALL + ( - + 32 ) ) + + 10 + - 56 - - 55 * 69 / 46 AS col1
----
68

query I rowsort
SELECT 27 * + 74
----
1998

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL 14 + CASE 34 WHEN + 44 THEN + 60 WHEN MAX( ALL ( + 35 ) ) + + 22 * 4 THEN NULL WHEN 92 THEN - 82 + - 19 * 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL 14 + CASE 34 WHEN + 44 THEN + 60 WHEN MAX ( ALL ( + 35 ) ) + + 22 * 4 THEN NULL WHEN 92 THEN - 82 + - 19 * 76 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - 7, + 99 col0
----
-7
99

query I rowsort
SELECT ALL - ( + - 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL 8 + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL 8 + COUNT ( * )
----
9

query I rowsort
SELECT 52 * + 43
----
2236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT ALL + CAST( NULL AS SIGNED ) + + ( + - 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( + - 83 )
----
NULL

query I rowsort
SELECT 26 * + 55 AS col1
----
1430

onlyif mysql # aggregate syntax: 
query II rowsort label-5163
SELECT 64 col1, COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-5163
SELECT 64 col1, COUNT ( * )
----
64
1

query I rowsort
SELECT 53 + + + ( - 26 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5165
SELECT 1 * + + ( - COUNT( * ) ), 36 + - 36 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-5165
SELECT 1 * + + ( - COUNT ( * ) ), 36 + - 36 AS col2
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5166
SELECT DISTINCT + + 96 - ( - COALESCE ( + + 71, - - 17 + - 87 * + COUNT( * ) * + 3, + ( + 47 ) + 16 * MAX( 50 - - 76 * 51 ) ) ) - 18 DIV - 89
----
167

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT + + 96 - ( - COALESCE ( + + 71, - - 17 + - 87 * + COUNT ( * ) * + 3, + ( + 47 ) + 16 * MAX ( 50 - - 76 * 51 ) ) ) - 18 / - 89
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-5167
SELECT + 98 + + - 31 + - 91 + + ( 41 ) DIV + 63 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5167
SELECT + 98 + + - 31 + - 91 + + ( 41 ) / + 63 AS col0
----
-24

query I rowsort
SELECT DISTINCT - 48 - - 48 AS col1
----
0

query I rowsort
SELECT ALL + ( 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5170
SELECT - COUNT( * ) AS col1, COALESCE ( + 61, 78 + + 25 + ( + CASE + SUM( 77 ) WHEN 40 THEN NULL WHEN MIN( 7 ) THEN NULL ELSE + 12 END ) )
----
-1
61

skipif mysql # not compatible
query II rowsort label-5170
SELECT - COUNT ( * ) AS col1, COALESCE ( + 61, 78 + + 25 + ( + CASE + SUM ( 77 ) WHEN 40 THEN NULL WHEN MIN ( 7 ) THEN NULL ELSE + 12 END ) )
----
-1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT - COUNT( * ) + + - 97 - + 64 - + 80 AS col2
----
-242

skipif mysql # not compatible
query I rowsort label-5171
SELECT - COUNT ( * ) + + - 97 - + 64 - + 80 AS col2
----
-242

query II rowsort
SELECT - - 63 AS col1, + 55 AS col2
----
63
55

query I rowsort
SELECT DISTINCT - 96 * - + 77 AS col2
----
7392

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5174
SELECT + CAST( NULL AS SIGNED ) / 80 * 93 AS col1, 10 * - 26
----
NULL
-260

skipif mysql # not compatible
query II rowsort label-5174
SELECT + CAST ( NULL AS INTEGER ) / 80 * 93 AS col1, 10 * - 26
----
NULL
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT - SUM( DISTINCT - 54 ) * - 26
----
-1404

skipif mysql # not compatible
query I rowsort label-5175
SELECT - SUM ( DISTINCT - 54 ) * - 26
----
-1404

query II rowsort
SELECT DISTINCT 13 AS col2, - 4 AS col0
----
13
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT - ( + 72 ) + - - COUNT( * ) + + 22 * 38
----
765

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT - ( + 72 ) + - - COUNT ( * ) + + 22 * 38
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL SUM( - 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL SUM ( - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT ALL COUNT( ALL + + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL COUNT ( ALL + + 35 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT + 74 DIV ( - 69 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5180
SELECT + 74 / ( - 69 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT SUM( + - 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT SUM ( + - 47 ) AS col0
----
-47

query I rowsort
SELECT + CASE + - 76 WHEN - 70 THEN + 15 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5183
SELECT - 57 * 44 DIV + + 7
----
-358

skipif mysql # not compatible
query I rowsort label-5183
SELECT - 57 * 44 / + + 7
----
-358

query I rowsort
SELECT ( - + 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT - ( + 21 ) * 88 + + COUNT( ( - - 57 ) ) AS col0
----
-1847

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT - ( + 21 ) * 88 + + COUNT ( ( - - 57 ) ) AS col0
----
-1847

query I rowsort
SELECT ALL - 54 * + 6 + + 69
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT - 44 - - - 67 + + 50 * COUNT( * ) * COUNT( DISTINCT 67 ) + + 88 + - - ( - 21 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5187
SELECT - 44 - - - 67 + + 50 * COUNT ( * ) * COUNT ( DISTINCT 67 ) + + 88 + - - ( - 21 ) AS col0
----
6

query I rowsort
SELECT - 21 * 74 * - + 26
----
40404

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT NULLIF ( + COUNT( * ), - 97 )
----
1

skipif mysql # not compatible
query I rowsort label-5189
SELECT NULLIF ( + COUNT ( * ), - 97 )
----
1

query I rowsort
SELECT DISTINCT + ( 18 )
----
18

query I rowsort
SELECT + 85 + + 69
----
154

query II rowsort
SELECT NULLIF ( - ( + + 33 ), ( 85 ) ) AS col1, 98 + - 69 AS col0
----
-33
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5193
SELECT COALESCE ( - 47, - + COUNT( ALL - CAST( NULL AS SIGNED ) ) + ( + 49 ) + - 8 * + - 85 DIV - - 80 * - 84 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5193
SELECT COALESCE ( - 47, - + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + ( + 49 ) + - 8 * + - 85 / - - 80 * - 84 ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5194
SELECT COALESCE ( COUNT( * ), - + ( COUNT( * ) ) DIV AVG ( ALL 97 ) + CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5194
SELECT COALESCE ( COUNT ( * ), - + ( COUNT ( * ) ) / AVG ( ALL 97 ) + CAST ( NULL AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5195
SELECT ALL - + ( + 46 ) DIV COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL - + ( + 46 ) / COUNT ( * ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT - - 5 + COUNT( * ) col2
----
6

skipif mysql # not compatible
query I rowsort label-5196
SELECT - - 5 + COUNT ( * ) col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5197
SELECT - + NULLIF ( + 98, - - COUNT( * ) + 81 ) + + 2, 98 + + CAST( - 27 AS SIGNED ) col0
----
-96
71

skipif mysql # not compatible
query II rowsort label-5197
SELECT - + NULLIF ( + 98, - - COUNT ( * ) + 81 ) + + 2, 98 + + CAST ( - 27 AS INTEGER ) col0
----
-96
71

query I rowsort
SELECT - 95 * ( - - 93 ) AS col0
----
-8835

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT ALL - 8 DIV - 32 * - - 8 col0
----
0

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL - 8 / - 32 * - - 8 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5200
SELECT - 85 * + 4 + + 90 DIV + 55 col1
----
-339

skipif mysql # not compatible
query I rowsort label-5200
SELECT - 85 * + 4 + + 90 / + 55 col1
----
-339

query I rowsort
SELECT ALL + 58 * + ( + + 53 )
----
3074

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT - 62 * + + 41 * - COUNT( * ) - 75 * + AVG ( 28 ) * - - CASE - 48 WHEN + SUM( DISTINCT 22 ) * COUNT( * ) THEN 4 - + 40 END - 10 + ( + 30 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT - 62 * + + 41 * - COUNT ( * ) - 75 * + AVG ( 28 ) * - - CASE - 48 WHEN + SUM ( DISTINCT 22 ) * COUNT ( * ) THEN 4 - + 40 END - 10 + ( + 30 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT + - 47 * - ( 88 ) + - - 77 - - - 92 - + + 75 * 77 * - COUNT( * ) - + 5 * + 63 * - 87
----
37301

skipif mysql # not compatible
query I rowsort label-5203
SELECT + - 47 * - ( 88 ) + - - 77 - - - 92 - + + 75 * 77 * - COUNT ( * ) - + 5 * + 63 * - 87
----
37301

query I rowsort
SELECT + 36 + - + 21 + + 2
----
17

query I rowsort
SELECT ALL - + 26 * + 27 + - - 89
----
-613

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL MIN( ALL + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL MIN ( ALL + 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT + SUM( ALL - + 99 ) + - NULLIF ( - CASE + - 98 WHEN - - ( - 73 ) THEN NULL WHEN - 65 THEN + MIN( 0 ) / 7 + + COUNT( * ) ELSE NULL END, 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT + SUM ( ALL - + 99 ) + - NULLIF ( - CASE + - 98 WHEN - - ( - 73 ) THEN NULL WHEN - 65 THEN + MIN ( 0 ) / 7 + + COUNT ( * ) ELSE NULL END, 44 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT 75 + - COUNT( * ) - + - CAST( + - 89 AS SIGNED ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT 75 + - COUNT ( * ) - + - CAST ( + - 89 AS INTEGER ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT DISTINCT COUNT( 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT COUNT ( 42 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT - SUM( 6 ) + + 53
----
47

skipif mysql # not compatible
query I rowsort label-5210
SELECT - SUM ( 6 ) + + 53
----
47

query I rowsort
SELECT + 4 - - 54 AS col1
----
58

query I rowsort
SELECT - ( + - 76 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5213
SELECT + 75 + + 89 - COUNT( * ) DIV - - MIN( + 88 ) + SUM( + - 43 ) col0
----
121

skipif mysql # not compatible
query I rowsort label-5213
SELECT + 75 + + 89 - COUNT ( * ) / - - MIN ( + 88 ) + SUM ( + - 43 ) col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + SUM( DISTINCT 93 ) - - - SUM( - - 19 )
----
74

skipif mysql # not compatible
query I rowsort label-5214
SELECT + SUM ( DISTINCT 93 ) - - - SUM ( - - 19 )
----
74

query I rowsort
SELECT + 68 + - ( - 48 ) AS col1
----
116

query II rowsort
SELECT - 46 col2, 47
----
-46
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL COUNT( * ) * + + 5 col1
----
5

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL COUNT ( * ) * + + 5 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT + 21 + - CASE + 37 WHEN - 58 THEN - 5 WHEN + - 69 THEN + - NULLIF ( + - 41, - CASE ( 96 ) WHEN COUNT( * ) / - 69 THEN - 88 * - 16 ELSE NULL END ) ELSE - 38 + COUNT( * ) END AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5218
SELECT + 21 + - CASE + 37 WHEN - 58 THEN - 5 WHEN + - 69 THEN + - NULLIF ( + - 41, - CASE ( 96 ) WHEN COUNT ( * ) / - 69 THEN - 88 * - 16 ELSE NULL END ) ELSE - 38 + COUNT ( * ) END AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + 38 * - ( SUM( - + 23 ) )
----
874

skipif mysql # not compatible
query I rowsort label-5219
SELECT + 38 * - ( SUM ( - + 23 ) )
----
874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5220
SELECT + 97 + + 2 + - CASE 53 WHEN + 71 THEN + ( - CAST( + 79 AS SIGNED ) ) WHEN - 94 * - 6 * 35 + - 53 * 38 THEN NULL END - - 77 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT + 97 + + 2 + - CASE 53 WHEN + 71 THEN + ( - CAST ( + 79 AS INTEGER ) ) WHEN - 94 * - 6 * 35 + - 53 * 38 THEN NULL END - - 77 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT + COUNT( * ) * - - 66 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5221
SELECT + COUNT ( * ) * - - 66 AS col1
----
66

query I rowsort
SELECT - ( + ( + - 52 ) ) + + 27
----
79

query I rowsort
SELECT ALL + 7 * - + 78
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5224
SELECT - ( ( - 83 ) ) DIV + 62 + + - COUNT( - 71 ) * + + 95 DIV 52 AS col1, + 83 + - - 28 * - 20
----
0
-477

skipif mysql # not compatible
query II rowsort label-5224
SELECT - ( ( - 83 ) ) / + 62 + + - COUNT ( - 71 ) * + + 95 / 52 AS col1, + 83 + - - 28 * - 20
----
0
-477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5225
SELECT DISTINCT + 47 DIV 91 - + COUNT( * ) + + 21 + 58 * + 1 + - 25
----
53

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT + 47 / 91 - + COUNT ( * ) + + 21 + 58 * + 1 + - 25
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5226
SELECT + - 10, + 7 * + - 34 + MAX( - 18 ) AS col2
----
-10
-256

skipif mysql # not compatible
query II rowsort label-5226
SELECT + - 10, + 7 * + - 34 + MAX ( - 18 ) AS col2
----
-10
-256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5227
SELECT ALL + + CAST( COUNT( DISTINCT - 78 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL + + CAST ( COUNT ( DISTINCT - 78 ) AS INTEGER )
----
1

query I rowsort
SELECT + - ( - 36 ) col1
----
36

query II rowsort
SELECT ALL - CASE + + 26 WHEN 59 THEN + 72 WHEN + 67 THEN NULL ELSE NULL END AS col2, - 9 + 86
----
NULL
77

query I rowsort
SELECT ALL + + 78 * - - 69 AS col1
----
5382

query I rowsort
SELECT 10 + - 44 + - 6 * - 78
----
434

query II rowsort
SELECT ALL + + 61 + + + 19 * - 63, COALESCE ( - 58, + - 93 ) * + + 16 + 53 * 51 * + 78 AS col0
----
-1136
209906

query I rowsort
SELECT DISTINCT - 14 + 50
----
36

query I rowsort
SELECT ALL - 55 + - 46 col2
----
-101

query II rowsort
SELECT - 69 * 27 + - + 6 col0, + 10
----
-1869
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5236
SELECT ALL 31 AS col1, 49 + + COUNT( + 91 )
----
31
50

skipif mysql # not compatible
query II rowsort label-5236
SELECT ALL 31 AS col1, 49 + + COUNT ( + 91 )
----
31
50

query II rowsort
SELECT - 32, + 9 AS col2
----
-32
9

query I rowsort
SELECT 37 + + 23 + 65 AS col1
----
125

query I rowsort
SELECT COALESCE ( ( 8 ), 76 ) + - - ( + 35 ) + 17 - - 94 + - + 99 + + NULLIF ( - 13, - 52 + - 16 ) * 46 * + 24 * 62
----
-889769

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5240
SELECT COUNT( * ) DIV - 41 col0
----
0

skipif mysql # not compatible
query I rowsort label-5240
SELECT COUNT ( * ) / - 41 col0
----
0

query I rowsort
SELECT 27 * - 70 * - 48
----
90720

onlyif mysql # aggregate syntax: 
query II rowsort label-5242
SELECT DISTINCT 46 AS col1, ( + - 83 ) + + + COUNT( * ) AS col0
----
46
-82

skipif mysql # not compatible
query II rowsort label-5242
SELECT DISTINCT 46 AS col1, ( + - 83 ) + + + COUNT ( * ) AS col0
----
46
-82

query II rowsort
SELECT ALL + 38 - + 29 + ( + 95 ) AS col0, 49 + - 67 + - 14
----
104
-32

query II rowsort
SELECT ALL 9 - - 22 AS col1, 76 + - 81 AS col0
----
31
-5

query I rowsort
SELECT 27 - + ( - 25 ) * + - 10 AS col1
----
-223

query I rowsort
SELECT ALL 56 * 35
----
1960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5247
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) - CASE NULLIF ( 63, 72 * - - 4 - 50 / - - 57 + - - 14 ) WHEN - 91 THEN + COUNT( * ) END * AVG ( DISTINCT 66 * 44 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) - CASE NULLIF ( 63, 72 * - - 4 - 50 / - - 57 + - - 14 ) WHEN - 91 THEN + COUNT ( * ) END * AVG ( DISTINCT 66 * 44 ) AS col2
----
NULL

query II rowsort
SELECT 93, + ( - 71 ) + 65 * + - 82 AS col2
----
93
-5401

query I rowsort
SELECT ALL + 48 * - - ( 55 ) col1
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT CASE 15 WHEN - - 3 THEN NULL WHEN - 55 THEN 78 - + - 80 - + COALESCE ( - ( + COUNT( * ) ), 82 ) + - ( - 91 ) * - 85 ELSE 33 END - + NULLIF ( 29, 16 + + 48 )
----
4

skipif mysql # not compatible
query I rowsort label-5250
SELECT CASE 15 WHEN - - 3 THEN NULL WHEN - 55 THEN 78 - + - 80 - + COALESCE ( - ( + COUNT ( * ) ), 82 ) + - ( - 91 ) * - 85 ELSE 33 END - + NULLIF ( 29, 16 + + 48 )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5251
SELECT DISTINCT + 41 * - + 42 + NULLIF ( - - 98, 50 ) + + + COUNT( * ) DIV + 23
----
-1624

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT + 41 * - + 42 + NULLIF ( - - 98, 50 ) + + + COUNT ( * ) / + 23
----
-1624

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT ALL - - COUNT( * ) AS col2, 35 * 23 AS col0
----
1
805

skipif mysql # not compatible
query II rowsort label-5252
SELECT ALL - - COUNT ( * ) AS col2, 35 * 23 AS col0
----
1
805

onlyif mysql # aggregate syntax: 
query II rowsort label-5253
SELECT 46 * - COUNT( * ) AS col2, 61 AS col2
----
-46
61

skipif mysql # not compatible
query II rowsort label-5253
SELECT 46 * - COUNT ( * ) AS col2, 61 AS col2
----
-46
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5254
SELECT ALL + - 30 DIV 93 + - 37 + + COUNT( * ) * COALESCE ( - 11, - + 84 ) - + 5 + 8 + - - 40
----
-5

skipif mysql # not compatible
query I rowsort label-5254
SELECT ALL + - 30 / 93 + - 37 + + COUNT ( * ) * COALESCE ( - 11, - + 84 ) - + 5 + 8 + - - 40
----
-5

onlyif mysql # aggregate syntax: 
query III rowsort label-5255
SELECT + 68 col0, 8 AS col0, - - MIN( DISTINCT 85 ) AS col0
----
68
8
85

skipif mysql # not compatible
query III rowsort label-5255
SELECT + 68 col0, 8 AS col0, - - MIN ( DISTINCT 85 ) AS col0
----
68
8
85

query I rowsort
SELECT ALL - ( + - 16 ) AS col1
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5257
SELECT 22 / + COALESCE ( + 0, - - 77 ) * - CAST( NULL AS DECIMAL ) * - 74 + - COALESCE ( - 55, ( - + 30 ) * 49 ) * 46 - - 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT 22 / + COALESCE ( + 0, - - 77 ) * - CAST ( NULL AS REAL ) * - 74 + - COALESCE ( - 55, ( - + 30 ) * 49 ) * 46 - - 74 AS col2
----
NULL

query I rowsort
SELECT + 55 * - 73 + - ( - ( 18 ) ) + 76
----
-3921

onlyif mysql # aggregate syntax: 
query II rowsort label-5259
SELECT + 91 AS col0, SUM( + 31 )
----
91
31

skipif mysql # not compatible
query II rowsort label-5259
SELECT + 91 AS col0, SUM ( + 31 )
----
91
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5260
SELECT ALL - 35, - COUNT( * ) col1
----
-35
-1

skipif mysql # not compatible
query II rowsort label-5260
SELECT ALL - 35, - COUNT ( * ) col1
----
-35
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT ALL 54 + - - ( + CAST( + AVG ( - 21 ) AS SIGNED ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL 54 + - - ( + CAST ( + AVG ( - 21 ) AS INTEGER ) ) AS col1
----
33

query II rowsort
SELECT 57 AS col2, 67 AS col0
----
57
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL + - 26 + 69 + NULLIF ( + + 64, COALESCE ( - 4, - - 7 ) - + ( + - 99 ) ) * + 1 * + COUNT( * ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL + - 26 + 69 + NULLIF ( + + 64, COALESCE ( - 4, - - 7 ) - + ( + - 99 ) ) * + 1 * + COUNT ( * ) AS col0
----
107

query I rowsort
SELECT ALL - 26 + - 16 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5265
SELECT 0 AS col0, - COUNT( - 73 )
----
0
-1

skipif mysql # not compatible
query II rowsort label-5265
SELECT 0 AS col0, - COUNT ( - 73 )
----
0
-1

query I rowsort
SELECT 48 * 58 * + + 29 * - - 92 AS col0
----
7427712

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5267
SELECT 18 - + CASE - 0 WHEN COALESCE ( ( 4 ), + 2 ) * + MIN( - + 20 ) THEN NULL WHEN COUNT( * ) * 55 + 7 + + MIN( ALL + CAST( + 59 AS DECIMAL ) ) * - ( 7 ) THEN AVG ( ALL 19 ) + 97 ELSE NULL END * - 63 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT 18 - + CASE - 0 WHEN COALESCE ( ( 4 ), + 2 ) * + MIN ( - + 20 ) THEN NULL WHEN COUNT ( * ) * 55 + 7 + + MIN ( ALL + CAST ( + 59 AS REAL ) ) * - ( 7 ) THEN AVG ( ALL 19 ) + 97 ELSE NULL END * - 63 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5268
SELECT 27 + - 60, 46 - + - COUNT( * ) AS col0
----
-33
47

skipif mysql # not compatible
query II rowsort label-5268
SELECT 27 + - 60, 46 - + - COUNT ( * ) AS col0
----
-33
47

query II rowsort
SELECT 37 + + 46 AS col1, 75 * - ( - 42 ) * - 65 * 10 AS col0
----
83
-2047500

query I rowsort
SELECT 46 * + 67
----
3082

onlyif mysql # aggregate syntax: 
query II rowsort label-5271
SELECT ALL + 6 * + MAX( + + 23 ) AS col2, - 12
----
138
-12

skipif mysql # not compatible
query II rowsort label-5271
SELECT ALL + 6 * + MAX ( + + 23 ) AS col2, - 12
----
138
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL COUNT( DISTINCT + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL COUNT ( DISTINCT + 88 )
----
1

query I rowsort
SELECT 27 + + + 26 * 61
----
1613

query I rowsort
SELECT 62 - - 64 + 87
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT 65 DIV + - 50
----
-1

skipif mysql # not compatible
query I rowsort label-5275
SELECT 65 / + - 50
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT 36 + + ( + CAST( + - 65 AS SIGNED ) ) + + - 35 * 40
----
-1429

skipif mysql # not compatible
query I rowsort label-5276
SELECT 36 + + ( + CAST ( + - 65 AS INTEGER ) ) + + - 35 * 40
----
-1429

query I rowsort
SELECT 72 + - 92
----
-20

query I rowsort
SELECT ALL - 7 * + 22
----
-154

query I rowsort
SELECT 52 + - 37 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5280
SELECT DISTINCT + CAST( + 81 AS SIGNED ) * - - 81
----
6561

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + CAST ( + 81 AS INTEGER ) * - - 81
----
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT MAX( DISTINCT - 57 ) * - - 66
----
-3762

skipif mysql # not compatible
query I rowsort label-5281
SELECT MAX ( DISTINCT - 57 ) * - - 66
----
-3762

onlyif mysql # DIV for integer division: 
query I rowsort label-5282
SELECT COALESCE ( - - 48, - 55 DIV + 76 ) + + 98 AS col1
----
146

skipif mysql # not compatible
query I rowsort label-5282
SELECT COALESCE ( - - 48, - 55 / + 76 ) + + 98 AS col1
----
146

query I rowsort
SELECT ALL 11 * + 52 + - + 44 AS col1
----
528

query I rowsort
SELECT DISTINCT + 95 * + 34 - + + 30 + - - 59 + - 17
----
3242

query I rowsort
SELECT ALL + ( - 32 ) * + 69 + - 95
----
-2303

query I rowsort
SELECT DISTINCT 69 * - - 45 + 61 AS col0
----
3166

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT - ( - - 18 ) * COUNT( * ) * + 54 + 26 + 44 AS col2
----
-902

skipif mysql # not compatible
query I rowsort label-5287
SELECT - ( - - 18 ) * COUNT ( * ) * + 54 + 26 + 44 AS col2
----
-902

query II rowsort
SELECT + ( + - 4 ) * - 6 AS col2, - 38 + 59 + - 25 * + 97 AS col1
----
24
-2404

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT ALL 19 * - 8 + 9 DIV + + 98 * 32
----
-152

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL 19 * - 8 + 9 / + + 98 * 32
----
-152

query I rowsort
SELECT 81 * 16 - 4 * + 34 AS col1
----
1160

query I rowsort
SELECT + - 75 * 43 + 80
----
-3145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT + 14 + + CAST( + - 26 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-5292
SELECT + 14 + + CAST ( + - 26 AS INTEGER )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT DISTINCT + + ( ( COALESCE ( 38, + 5 DIV + 27 + 48 ) ) ) * - + 20 + + 33 - - 26
----
-701

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT + + ( ( COALESCE ( 38, + 5 / + 27 + 48 ) ) ) * - + 20 + + 33 - - 26
----
-701

query I rowsort
SELECT ALL + - ( 77 ) AS col0
----
-77

query I rowsort
SELECT + 28 * - 11 AS col2
----
-308

query I rowsort
SELECT ALL 40 * 98
----
3920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT ALL + 38 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL + 38 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + - 71 ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5299
SELECT ALL NULLIF ( + 24, CAST( NULL AS SIGNED ) * 35 * + NULLIF ( 38, - MIN( 32 ) * 3 * COUNT( * ) + + ( + 61 ) ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL NULLIF ( + 24, CAST ( NULL AS INTEGER ) * 35 * + NULLIF ( 38, - MIN ( 32 ) * 3 * COUNT ( * ) + + ( + 61 ) ) ) AS col2
----
24

query I rowsort
SELECT - 15 + 11
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5301
SELECT DISTINCT COUNT( * ) AS col2, - ( - + 0 ) + - 70 + + - 37
----
1
-107

skipif mysql # not compatible
query II rowsort label-5301
SELECT DISTINCT COUNT ( * ) AS col2, - ( - + 0 ) + - 70 + + - 37
----
1
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT + 38 * - - COALESCE ( + 71, - 94 + - + ( CASE WHEN NULL BETWEEN + ( - - 14 ) AND 77 - + ( + COUNT( * ) ) THEN NULL ELSE - - ( 7 ) * 69 END ) )
----
2698

skipif mysql # not compatible
query I rowsort label-5302
SELECT + 38 * - - COALESCE ( + 71, - 94 + - + ( CASE WHEN NULL BETWEEN + ( - - 14 ) AND 77 - + ( + COUNT ( * ) ) THEN NULL ELSE - - ( 7 ) * 69 END ) )
----
2698

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT - 44 * MAX( DISTINCT + 90 ) AS col2
----
-3960

skipif mysql # not compatible
query I rowsort label-5303
SELECT - 44 * MAX ( DISTINCT + 90 ) AS col2
----
-3960

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL COUNT( 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL COUNT ( 61 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT - 8 * COUNT( * ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-5305
SELECT - 8 * COUNT ( * ) col1
----
-8

query I rowsort
SELECT ALL - 76 * 12 col1
----
-912

query II rowsort
SELECT - 71 col2, 47 * 83 + + + 53
----
-71
3954

query I rowsort
SELECT ALL + NULLIF ( 56, 2 ) + - 74 * + 98 AS col1
----
-7196

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT + 90 + - NULLIF ( - 18, + COUNT( - + 47 ) - + - COUNT( * ) * + - ( 90 ) * - 40 + + - COALESCE ( - + COALESCE ( - 66, - 56 ), 33 + - COALESCE ( NULLIF ( - 78, 86 + 53 ), + 46 ) ) + 97 ) * SUM( ALL - ( - 50 ) ) AS col0
----
990

skipif mysql # not compatible
query I rowsort label-5309
SELECT + 90 + - NULLIF ( - 18, + COUNT ( - + 47 ) - + - COUNT ( * ) * + - ( 90 ) * - 40 + + - COALESCE ( - + COALESCE ( - 66, - 56 ), 33 + - COALESCE ( NULLIF ( - 78, 86 + 53 ), + 46 ) ) + 97 ) * SUM ( ALL - ( - 50 ) ) AS col0
----
990

query II rowsort
SELECT 31 AS col0, - 34 AS col1
----
31
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT + 87 DIV 27 + + NULLIF ( + ( + - 45 ), - + 18 * - 34 + 66 DIV 15 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5311
SELECT + 87 / 27 + + NULLIF ( + ( + - 45 ), - + 18 * - 34 + 66 / 15 ) AS col1
----
-42

query I rowsort
SELECT ALL + ( + 66 ) col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5313
SELECT - - COUNT( * ) - - + 22 + - ( - 2 ) * - ( - CAST( ( 54 ) AS SIGNED ) ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-5313
SELECT - - COUNT ( * ) - - + 22 + - ( - 2 ) * - ( - CAST ( ( 54 ) AS INTEGER ) ) AS col0
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5314
SELECT ALL 67 DIV + + 69 * COUNT( * ) + - 40 * - - 13 AS col0
----
-520

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL 67 / + + 69 * COUNT ( * ) + - 40 * - - 13 AS col0
----
-520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5315
SELECT 12 AS col1, 16 * CASE + 10 WHEN 69 / + 64 THEN - MAX( + + 26 ) * + + 18 - + 39 + + 15 - + 32 * - + CAST( 70 AS SIGNED ) + + 84 ELSE NULL END
----
12
NULL

skipif mysql # not compatible
query II rowsort label-5315
SELECT 12 AS col1, 16 * CASE + 10 WHEN 69 / + 64 THEN - MAX ( + + 26 ) * + + 18 - + 39 + + 15 - + 32 * - + CAST ( 70 AS INTEGER ) + + 84 ELSE NULL END
----
12
NULL

query II rowsort
SELECT + - 77 AS col0, ( + 16 )
----
-77
16

query I rowsort
SELECT - 20 + + + 51 - + + 46
----
-15

query I rowsort
SELECT ( - - 48 ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5319
SELECT 35 * 76 - - 28 DIV - - COALESCE ( - 62, - 11 + - 12 + 3 + - - NULLIF ( + ( + - CASE + 81 WHEN - 70 * - 1 + - 2 * + COUNT( * ) THEN 25 * - CAST( NULL AS SIGNED ) WHEN 72 THEN NULL END ), 46 ) * CASE 78 WHEN - 19 + + 22 DIV - 68 THEN - 79 END ) * - 22 + + 69 AS col2
----
2729

skipif mysql # not compatible
query I rowsort label-5319
SELECT 35 * 76 - - 28 / - - COALESCE ( - 62, - 11 + - 12 + 3 + - - NULLIF ( + ( + - CASE + 81 WHEN - 70 * - 1 + - 2 * + COUNT ( * ) THEN 25 * - CAST ( NULL AS INTEGER ) WHEN 72 THEN NULL END ), 46 ) * CASE 78 WHEN - 19 + + 22 / - 68 THEN - 79 END ) * - 22 + + 69 AS col2
----
2729

query I rowsort
SELECT + 3 - 75 col0
----
-72

query I rowsort
SELECT ALL - - ( + + ( 89 ) ) * - 28 - + + 55
----
-2547

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT - + COUNT( * ) * - - 14 + - - 60 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5322
SELECT - + COUNT ( * ) * - - 14 + - - 60 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT CASE + - 83 WHEN COUNT( * ) THEN NULL WHEN - - COUNT( * ) / - 90 THEN - 62 + + + 31 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT CASE + - 83 WHEN COUNT ( * ) THEN NULL WHEN - - COUNT ( * ) / - 90 THEN - 62 + + + 31 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT + + CASE - 52 WHEN - 71 * - 11 + - 69 THEN 51 END + + 32 - - ( 47 ), MIN( + 3 ) * COUNT( * ) - + 36 + - ( 92 ) AS col2
----
NULL
-125

skipif mysql # not compatible
query II rowsort label-5324
SELECT + + CASE - 52 WHEN - 71 * - 11 + - 69 THEN 51 END + + 32 - - ( 47 ), MIN ( + 3 ) * COUNT ( * ) - + 36 + - ( 92 ) AS col2
----
NULL
-125

query I rowsort
SELECT ALL - 51 * + 66 AS col2
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + 22 * - 77 * + ( + NULLIF ( + COUNT( * ), + 14 ) )
----
-1694

skipif mysql # not compatible
query I rowsort label-5326
SELECT + 22 * - 77 * + ( + NULLIF ( + COUNT ( * ), + 14 ) )
----
-1694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT - COUNT( * ) * - COALESCE ( - - SUM( DISTINCT + 75 ), + CAST( 99 AS SIGNED ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - COUNT ( * ) * - COALESCE ( - - SUM ( DISTINCT + 75 ), + CAST ( 99 AS INTEGER ) ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT NULLIF ( - COALESCE ( 73, - NULLIF ( - + ( 94 ), - + 56 ) ), COALESCE ( - 78, - - 88, + 41 ) * 30 + ( 92 ) * + COUNT( * ) )
----
-73

skipif mysql # not compatible
query I rowsort label-5328
SELECT NULLIF ( - COALESCE ( 73, - NULLIF ( - + ( 94 ), - + 56 ) ), COALESCE ( - 78, - - 88, + 41 ) * 30 + ( 92 ) * + COUNT ( * ) )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT + 75 DIV - 3 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-5329
SELECT + 75 / - 3 AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5330
SELECT - CAST( 34 AS SIGNED ) AS col2, ( + 32 ) AS col1
----
-34
32

skipif mysql # not compatible
query II rowsort label-5330
SELECT - CAST ( 34 AS INTEGER ) AS col2, ( + 32 ) AS col1
----
-34
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT CASE - 1 WHEN - 46 * - + 96 - - 7 THEN NULL WHEN + + COUNT( * ) THEN - 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT CASE - 1 WHEN - 46 * - + 96 - - 7 THEN NULL WHEN + + COUNT ( * ) THEN - 30 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5332
SELECT ALL 33 DIV - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL 33 / - 78 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5333
SELECT + 39 / + CAST( NULL AS SIGNED ) AS col1, + 54 * - - 32
----
NULL
1728

skipif mysql # not compatible
query II rowsort label-5333
SELECT + 39 / + CAST ( NULL AS INTEGER ) AS col1, + 54 * - - 32
----
NULL
1728

onlyif mysql # aggregate syntax: 
query II rowsort label-5334
SELECT + COUNT( * ) * 83, 96 - + + 19 AS col0
----
83
77

skipif mysql # not compatible
query II rowsort label-5334
SELECT + COUNT ( * ) * 83, 96 - + + 19 AS col0
----
83
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + 56 + - NULLIF ( - 25, 88 * + + 45 ) * - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-5335
SELECT + 56 + - NULLIF ( - 25, 88 * + + 45 ) * - COUNT ( * )
----
31

query I rowsort
SELECT - ( - - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL - COUNT( ALL - + 7 ) * + 76 * + MAX( DISTINCT - 80 )
----
6080

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL - COUNT ( ALL - + 7 ) * + 76 * + MAX ( DISTINCT - 80 )
----
6080

query I rowsort
SELECT + 85 * - ( + 50 ) AS col1
----
-4250

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT ALL 90 + 47 - - 26 + - COUNT( * ) * + 53 AS col2
----
110

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL 90 + 47 - - 26 + - COUNT ( * ) * + 53 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT + 96 + - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-5340
SELECT + 96 + - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT 97 - COUNT( * ) * 65 * - + SUM( DISTINCT - 38 )
----
-2373

skipif mysql # not compatible
query I rowsort label-5341
SELECT 97 - COUNT ( * ) * 65 * - + SUM ( DISTINCT - 38 )
----
-2373

query I rowsort
SELECT ALL 84 + + 2
----
86

query I rowsort
SELECT 71 * - 45
----
-3195

query I rowsort
SELECT 74 + - 38 AS col0
----
36

query I rowsort
SELECT + 71 + + 58 AS col0
----
129

query I rowsort
SELECT DISTINCT 75 + + - 7
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT ALL NULLIF ( - 43, - CAST( NULL AS SIGNED ) * - + 7 * + + 63 * + + 39 + + 26 * + ( - - 22 ) + + CAST( NULL AS SIGNED ) + + + 74 )
----
-43

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL NULLIF ( - 43, - CAST ( NULL AS INTEGER ) * - + 7 * + + 63 * + + 39 + + 26 * + ( - - 22 ) + + CAST ( NULL AS INTEGER ) + + + 74 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT ( + 92 ) + + NULLIF ( - 64, - - 82 + - + 14 ) + - - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-5348
SELECT ( + 92 ) + + NULLIF ( - 64, - - 82 + - + 14 ) + - - COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5349
SELECT ALL ( + + COUNT( * ) ) + + ( + 47 ), - 77 * ( - 24 ) AS col1
----
48
1848

skipif mysql # not compatible
query II rowsort label-5349
SELECT ALL ( + + COUNT ( * ) ) + + ( + 47 ), - 77 * ( - 24 ) AS col1
----
48
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT - 30 * - + MIN( 24 ) AS col0
----
720

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - 30 * - + MIN ( 24 ) AS col0
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ( + COALESCE ( - - 51, 59 * CASE + 13 WHEN - 49 / - + CASE COUNT( * ) WHEN + 44 THEN COUNT( * ) WHEN + COUNT( * ) * + + 25 THEN NULL WHEN - + 68 * 72 THEN 58 ELSE 22 END * 84 - 52 THEN SUM( + 2 ) * - 60 END * + 45 - 84 ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5351
SELECT ( + COALESCE ( - - 51, 59 * CASE + 13 WHEN - 49 / - + CASE COUNT ( * ) WHEN + 44 THEN COUNT ( * ) WHEN + COUNT ( * ) * + + 25 THEN NULL WHEN - + 68 * 72 THEN 58 ELSE 22 END * 84 - 52 THEN SUM ( + 2 ) * - 60 END * + 45 - 84 ) ) AS col0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5352
SELECT ALL ( + COUNT( * ) ) DIV - 39 * COUNT( * ) * - + ( - NULLIF ( + 61, 78 * 34 ) ) AS col2, 5 * + 59
----
0
295

skipif mysql # not compatible
query II rowsort label-5352
SELECT ALL ( + COUNT ( * ) ) / - 39 * COUNT ( * ) * - + ( - NULLIF ( + 61, 78 * 34 ) ) AS col2, 5 * + 59
----
0
295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT 33 / - - CAST( NULL AS SIGNED ) * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT 33 / - - CAST ( NULL AS INTEGER ) * - 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5354
SELECT - CAST( 50 AS SIGNED ) * - 70 * - ( - ( CAST( 40 AS SIGNED ) ) ) - + + 93 + 12 AS col2
----
139919

skipif mysql # not compatible
query I rowsort label-5354
SELECT - CAST ( 50 AS INTEGER ) * - 70 * - ( - ( CAST ( 40 AS INTEGER ) ) ) - + + 93 + 12 AS col2
----
139919

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT + + 79 * + ( - COUNT( * ) ) + + 27 * - 76 + + 86
----
-2045

skipif mysql # not compatible
query I rowsort label-5355
SELECT + + 79 * + ( - COUNT ( * ) ) + + 27 * - 76 + + 86
----
-2045

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5356
SELECT DISTINCT + 86 - 83 + - COUNT( * ) - 37 AS col1, - 0 - + 54 DIV - 94 * - 39 * - + 95 * - 42 * 69
----
-35
0

skipif mysql # not compatible
query II rowsort label-5356
SELECT DISTINCT + 86 - 83 + - COUNT ( * ) - 37 AS col1, - 0 - + 54 / - 94 * - 39 * - + 95 * - 42 * 69
----
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + - NULLIF ( - + COUNT( * ), + AVG ( DISTINCT 83 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5357
SELECT + - NULLIF ( - + COUNT ( * ), + AVG ( DISTINCT 83 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5358
SELECT - + COUNT( + ( + 23 ) ) DIV - - 25 + 63 + - - 99 * + + 10
----
1053

skipif mysql # not compatible
query I rowsort label-5358
SELECT - + COUNT ( + ( + 23 ) ) / - - 25 + 63 + - - 99 * + + 10
----
1053

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5359
SELECT + 26 * - 66 * COUNT( * ) DIV + COUNT( * ) col0, - 41 * 43 + 44 AS col2
----
-1716
-1719

skipif mysql # not compatible
query II rowsort label-5359
SELECT + 26 * - 66 * COUNT ( * ) / + COUNT ( * ) col0, - 41 * 43 + 44 AS col2
----
-1716
-1719

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT 0 * - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT 0 * - + COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT + 1 + - CAST( NULL AS SIGNED ) * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT + 1 + - CAST ( NULL AS INTEGER ) * - 16
----
NULL

query I rowsort
SELECT DISTINCT 5 * + 88
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT 33 + COUNT( + - 64 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-5363
SELECT 33 + COUNT ( + - 64 ) col0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5364
SELECT + NULLIF ( - - 54, - 90 / - 7 + - - CASE - - CAST( 56 AS SIGNED ) WHEN + 94 THEN ( - COALESCE ( - CAST( 0 AS SIGNED ), CAST( NULL AS SIGNED ) ) ) WHEN + 29 - - 92 THEN NULL END - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-5364
SELECT + NULLIF ( - - 54, - 90 / - 7 + - - CASE - - CAST ( 56 AS INTEGER ) WHEN + 94 THEN ( - COALESCE ( - CAST ( 0 AS INTEGER ), CAST ( NULL AS INTEGER ) ) ) WHEN + 29 - - 92 THEN NULL END - COUNT ( * ) )
----
54

query I rowsort
SELECT ALL + 92 * + - 22 * - 52 AS col2
----
105248

onlyif mysql # aggregate syntax: 
query II rowsort label-5366
SELECT DISTINCT - 34 * + 34 * + 26 + - + 26, 28 * + + MAX( ALL - 94 ) * 9 AS col0
----
-30082
-23688

skipif mysql # not compatible
query II rowsort label-5366
SELECT DISTINCT - 34 * + 34 * + 26 + - + 26, 28 * + + MAX ( ALL - 94 ) * 9 AS col0
----
-30082
-23688

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT - COUNT( * ) * 57 - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-5367
SELECT - COUNT ( * ) * 57 - COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT 14 AS col1, COUNT( + + 83 ) AS col2
----
14
1

skipif mysql # not compatible
query II rowsort label-5368
SELECT 14 AS col1, COUNT ( + + 83 ) AS col2
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT COUNT( + 20 ) + 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5369
SELECT COUNT ( + 20 ) + 95 AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT DISTINCT - CAST( - 48 AS SIGNED ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT - CAST ( - 48 AS INTEGER ) AS col0
----
48

query I rowsort
SELECT 36 * + 15
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT 72 + - - NULLIF ( + 97, - 42 / + + 7 - COUNT( * ) + - - 27 ) col1
----
169

skipif mysql # not compatible
query I rowsort label-5372
SELECT 72 + - - NULLIF ( + 97, - 42 / + + 7 - COUNT ( * ) + - - 27 ) col1
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT + COUNT( ALL + 60 ) * + COUNT( * ) + - 23 - - SUM( - ( - 27 ) )
----
5

skipif mysql # not compatible
query I rowsort label-5373
SELECT + COUNT ( ALL + 60 ) * + COUNT ( * ) + - 23 - - SUM ( - ( - 27 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT ALL 51 + - + NULLIF ( - 80, - NULLIF ( - MAX( ALL - 38 ), + + 68 ) / + 56 ) + - 9
----
122

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL 51 + - + NULLIF ( - 80, - NULLIF ( - MAX ( ALL - 38 ), + + 68 ) / + 56 ) + - 9
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT + 18 * + 93 + - 87 + - 49 + + + COUNT( * ) * - 27 * + 76 - + - 70 * - 54
----
-4294

skipif mysql # not compatible
query I rowsort label-5375
SELECT + 18 * + 93 + - 87 + - 49 + + + COUNT ( * ) * - 27 * + 76 - + - 70 * - 54
----
-4294

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL - MAX( + - 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL - MAX ( + - 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT 62 * + MAX( ALL 52 ) AS col0
----
3224

skipif mysql # not compatible
query I rowsort label-5377
SELECT 62 * + MAX ( ALL 52 ) AS col0
----
3224

query I rowsort
SELECT DISTINCT 38 + + 0 AS col1
----
38

query I rowsort
SELECT 52 * - 65 AS col2
----
-3380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT 97 + - 7 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT 97 + - 7 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 84 + - 5 AS col2
----
79

query II rowsort
SELECT - 70 AS col2, 0 * 30
----
-70
0

query I rowsort
SELECT ( - 82 ) + - 25
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5384
SELECT DISTINCT MIN( ( 21 ) ) DIV - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT MIN ( ( 21 ) ) / - 57 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5385
SELECT - 8 DIV - 46 * + ( - 54 ) * + 88 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5385
SELECT - 8 / - 46 * + ( - 54 ) * + 88 * - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5386
SELECT DISTINCT + CAST( + - 74 AS SIGNED ) DIV - 31 + + - 2 * + 6 AS col2, 88 AS col2
----
-10
88

skipif mysql # not compatible
query II rowsort label-5386
SELECT DISTINCT + CAST ( + - 74 AS INTEGER ) / - 31 + + - 2 * + 6 AS col2, 88 AS col2
----
-10
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5387
SELECT DISTINCT - ( - - 13 ) * + 20 AS col0, - 33 + + - CAST( - 9 AS SIGNED ) + + 13 - - CAST( + 56 AS SIGNED ) * - - AVG ( - 95 ) + + CAST( NULL AS SIGNED )
----
-260
NULL

skipif mysql # not compatible
query II rowsort label-5387
SELECT DISTINCT - ( - - 13 ) * + 20 AS col0, - 33 + + - CAST ( - 9 AS INTEGER ) + + 13 - - CAST ( + 56 AS INTEGER ) * - - AVG ( - 95 ) + + CAST ( NULL AS INTEGER )
----
-260
NULL

query I rowsort
SELECT + 74 + - 81 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL - 57 * 34 - SUM( ALL 92 ) * + - 88 + - 23
----
6135

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - 57 * 34 - SUM ( ALL 92 ) * + - 88 + - 23
----
6135

onlyif mysql # aggregate syntax: 
query II rowsort label-5390
SELECT 22 col2, + MIN( + 45 ) + - 54
----
22
-9

skipif mysql # not compatible
query II rowsort label-5390
SELECT 22 col2, + MIN ( + 45 ) + - 54
----
22
-9

query II rowsort
SELECT ALL - 27 AS col1, + 26 col1
----
-27
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5392
SELECT - - 3 / - CAST( NULL AS SIGNED ) - + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT - - 3 / - CAST ( NULL AS INTEGER ) - + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL 94 * - - 0 + - 81 + COALESCE ( - 1, + - MIN( DISTINCT 16 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL 94 * - - 0 + - 81 + COALESCE ( - 1, + - MIN ( DISTINCT 16 ) )
----
-82

query II rowsort
SELECT 17 - 67 - + + 87, + 69 AS col1
----
-137
69

query II rowsort
SELECT DISTINCT - + 16, + 73 AS col1
----
-16
73

query I rowsort
SELECT 65 - + + 68 - - + 12
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5397
SELECT CAST( NULL AS SIGNED ) / MAX( - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT CAST ( NULL AS INTEGER ) / MAX ( - 49 )
----
NULL

query I rowsort
SELECT + NULLIF ( 7, + 43 ) AS col2
----
7

query I rowsort
SELECT 81 * 23
----
1863

onlyif mysql # aggregate syntax: 
query II rowsort label-5400
SELECT + 90 AS col0, 67 * 20 + - CASE + 53 WHEN + - NULLIF ( - - 73, + 74 ) THEN NULL WHEN + 24 * - 86 - + + 69 + - ( - - 99 ) THEN + COUNT( * ) * + - 28 / - + 1 ELSE COALESCE ( 29, - NULLIF ( 32, 5 * + CASE 15 * 45 WHEN 97 * + 94 + ( - 54 + + COUNT( * ) ) * - 23 THEN NULL WHEN 0 THEN NULL ELSE 87 + - 85 END ) / - COALESCE ( 72 / + 27, 74 ) ) * COUNT( * ) END * - CASE + 84 * - 8 WHEN AVG ( 83 ) THEN + 80 WHEN 69 / + 35 + - 22 / - 45 THEN NULL END
----
90
NULL

skipif mysql # not compatible
query II rowsort label-5400
SELECT + 90 AS col0, 67 * 20 + - CASE + 53 WHEN + - NULLIF ( - - 73, + 74 ) THEN NULL WHEN + 24 * - 86 - + + 69 + - ( - - 99 ) THEN + COUNT ( * ) * + - 28 / - + 1 ELSE COALESCE ( 29, - NULLIF ( 32, 5 * + CASE 15 * 45 WHEN 97 * + 94 + ( - 54 + + COUNT ( * ) ) * - 23 THEN NULL WHEN 0 THEN NULL ELSE 87 + - 85 END ) / - COALESCE ( 72 / + 27, 74 ) ) * COUNT ( * ) END * - CASE + 84 * - 8 WHEN AVG ( 83 ) THEN + 80 WHEN 69 / + 35 + - 22 / - 45 THEN NULL END
----
90
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL CAST( NULL AS SIGNED ) * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL CAST ( NULL AS INTEGER ) * - 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5402
SELECT 65 + + CASE ( - CASE - - NULLIF ( + COUNT( * ), + 32 ) WHEN CASE - COUNT( * ) WHEN - - 61 THEN NULL ELSE + - 29 / - CAST( NULL AS DECIMAL ) + + + 69 END + 27 THEN NULL WHEN - - COALESCE ( - NULLIF ( - 97, COUNT( * ) ), + 22, 57 * + 69 ) THEN COUNT( DISTINCT 52 ) END ) WHEN 7 THEN NULL WHEN COUNT( * ) THEN SUM( 31 ) + 39 ELSE + COUNT( * ) END + 90 * COUNT( * )
----
156

skipif mysql # not compatible
query I rowsort label-5402
SELECT 65 + + CASE ( - CASE - - NULLIF ( + COUNT ( * ), + 32 ) WHEN CASE - COUNT ( * ) WHEN - - 61 THEN NULL ELSE + - 29 / - CAST ( NULL AS REAL ) + + + 69 END + 27 THEN NULL WHEN - - COALESCE ( - NULLIF ( - 97, COUNT ( * ) ), + 22, 57 * + 69 ) THEN COUNT ( DISTINCT 52 ) END ) WHEN 7 THEN NULL WHEN COUNT ( * ) THEN SUM ( 31 ) + 39 ELSE + COUNT ( * ) END + 90 * COUNT ( * )
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-5403
SELECT ALL - COUNT( * ), 0 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-5403
SELECT ALL - COUNT ( * ), 0 AS col1
----
-1
0

query I rowsort
SELECT ALL - 16 + - 70 * 87 * - 43
----
261854

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5405
SELECT COALESCE ( + + MAX( ALL - 84 ), - 34 DIV 94 + + + COUNT( * ), + - 10 + ( + ( 97 ) ) ) * + - 88 + 1
----
7393

skipif mysql # not compatible
query I rowsort label-5405
SELECT COALESCE ( + + MAX ( ALL - 84 ), - 34 / 94 + + + COUNT ( * ), + - 10 + ( + ( 97 ) ) ) * + - 88 + 1
----
7393

query II rowsort
SELECT 2 AS col1, 98 + - 52 + - ( + 99 )
----
2
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT - ( 71 ) * + COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5407
SELECT - ( 71 ) * + COUNT ( * ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5408
SELECT - 14, 46 * COUNT( * ) AS col2
----
-14
46

skipif mysql # not compatible
query II rowsort label-5408
SELECT - 14, 46 * COUNT ( * ) AS col2
----
-14
46

query I rowsort
SELECT ALL + 54 * - ( 27 )
----
-1458

query I rowsort
SELECT ALL + 81 - - 3 col2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT - + CAST( NULL AS SIGNED ) + + 30 + - - 22 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT - + CAST ( NULL AS INTEGER ) + + 30 + - - 22 * - 66
----
NULL

query I rowsort
SELECT ALL 36 * + 20 AS col2
----
720

query I rowsort
SELECT ALL + ( - 41 ) * + 79
----
-3239

query I rowsort
SELECT + + 41 * 93
----
3813

query II rowsort
SELECT 62 AS col2, 74 AS col2
----
62
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5416
SELECT + 28 - - 30 + - 78 * - COUNT( * ) AS col0, - NULLIF ( - - 31, + - 45 + ( + - COALESCE ( 97, - AVG ( + 15 ) / ( - - 90 ) * 19 * - 5 / - CAST( NULL AS DECIMAL ) + 53 / 71 ) ) * + 61 ) * CASE 86 * - COUNT( * ) WHEN - MAX( 47 ) THEN NULL WHEN + 73 THEN + 39 END col2
----
136
NULL

skipif mysql # not compatible
query II rowsort label-5416
SELECT + 28 - - 30 + - 78 * - COUNT ( * ) AS col0, - NULLIF ( - - 31, + - 45 + ( + - COALESCE ( 97, - AVG ( + 15 ) / ( - - 90 ) * 19 * - 5 / - CAST ( NULL AS REAL ) + 53 / 71 ) ) * + 61 ) * CASE 86 * - COUNT ( * ) WHEN - MAX ( 47 ) THEN NULL WHEN + 73 THEN + 39 END col2
----
136
NULL

query I rowsort
SELECT - - 97 + 99 AS col2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT + COUNT( * ) + + + CASE + 75 WHEN - 36 THEN NULL WHEN 65 + 36 * - 22 THEN - 32 / - 36 * - - 21 * + 82 WHEN + + AVG ( ALL - 89 ) * - 90 + 88 + + 49 * + 69 THEN NULL END * 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT + COUNT ( * ) + + + CASE + 75 WHEN - 36 THEN NULL WHEN 65 + 36 * - 22 THEN - 32 / - 36 * - - 21 * + 82 WHEN + + AVG ( ALL - 89 ) * - 90 + 88 + + 49 * + 69 THEN NULL END * 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - COUNT( DISTINCT + 98 ) * + 99 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-5419
SELECT - COUNT ( DISTINCT + 98 ) * + 99 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT - 95 * COUNT( * ) + + MIN( DISTINCT + + 36 ) + - 98 AS col0
----
-157

skipif mysql # not compatible
query I rowsort label-5420
SELECT - 95 * COUNT ( * ) + + MIN ( DISTINCT + + 36 ) + - 98 AS col0
----
-157

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5421
SELECT - + 37 AS col2, CAST( NULL AS SIGNED ) + 8 + + 12 - 98
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-5421
SELECT - + 37 AS col2, CAST ( NULL AS INTEGER ) + 8 + + 12 - 98
----
-37
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5422
SELECT ALL + 98 AS col1, COUNT( * ) AS col2
----
98
1

skipif mysql # not compatible
query II rowsort label-5422
SELECT ALL + 98 AS col1, COUNT ( * ) AS col2
----
98
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT DISTINCT - 9 DIV 59 * ( 10 ) * + 12 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT - 9 / 59 * ( 10 ) * + 12 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5424
SELECT ALL + 76 DIV + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5424
SELECT ALL + 76 / + 77 AS col2
----
0

query II rowsort
SELECT - - 63, 39 col2
----
63
39

onlyif mysql # aggregate syntax: 
query II rowsort label-5426
SELECT + - COUNT( * ) * - 29 AS col1, + COUNT( * ) + + 80
----
29
81

skipif mysql # not compatible
query II rowsort label-5426
SELECT + - COUNT ( * ) * - 29 AS col1, + COUNT ( * ) + + 80
----
29
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5427
SELECT + + CASE WHEN NOT + COUNT( + ( + + 92 ) ) <= 90 * - - 97 OR ( NULL ) IS NOT NULL THEN CASE + CAST( + + 89 AS SIGNED ) WHEN - 92 / + 22 THEN + 80 ELSE NULL END END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT + + CASE WHEN NOT + COUNT ( + ( + + 92 ) ) <= 90 * - - 97 OR ( NULL ) IS NOT NULL THEN CASE + CAST ( + + 89 AS INTEGER ) WHEN - 92 / + 22 THEN + 80 ELSE NULL END END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL COUNT( * ) * + 74 * + 71 - 49
----
5205

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL COUNT ( * ) * + 74 * + 71 - 49
----
5205

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - + ( + 73 ) * + + COUNT( * ) * - ( 44 ) + 31 + - + 83
----
3160

skipif mysql # not compatible
query I rowsort label-5429
SELECT - + ( + 73 ) * + + COUNT ( * ) * - ( 44 ) + 31 + - + 83
----
3160

onlyif mysql # aggregate syntax: 
query II rowsort label-5430
SELECT COUNT( * ) * COUNT( * ) + - 7 * - COALESCE ( - 88, - - 62, - 45 + 14 ) + - 65 + + 22 - + 57 AS col0, + 10 AS col2
----
-715
10

skipif mysql # not compatible
query II rowsort label-5430
SELECT COUNT ( * ) * COUNT ( * ) + - 7 * - COALESCE ( - 88, - - 62, - 45 + 14 ) + - 65 + + 22 - + 57 AS col0, + 10 AS col2
----
-715
10

query I rowsort
SELECT DISTINCT 16 * - 11 AS col1
----
-176

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5432
SELECT + 11 DIV - - COUNT( * ) + + + 4 col1, - 38
----
15
-38

skipif mysql # not compatible
query II rowsort label-5432
SELECT + 11 / - - COUNT ( * ) + + + 4 col1, - 38
----
15
-38

query I rowsort
SELECT ALL + NULLIF ( - 64, 86 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT + 85 * + 28 * + 22 + - COUNT( * ) AS col0
----
52359

skipif mysql # not compatible
query I rowsort label-5434
SELECT + 85 * + 28 * + 22 + - COUNT ( * ) AS col0
----
52359

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL 66 * MIN( ALL 23 ) + - 98 * + + 2
----
1322

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL 66 * MIN ( ALL 23 ) + - 98 * + + 2
----
1322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5436
SELECT + 85 * - 8 - - CAST( 41 AS SIGNED ) AS col1
----
-639

skipif mysql # not compatible
query I rowsort label-5436
SELECT + 85 * - 8 - - CAST ( 41 AS INTEGER ) AS col1
----
-639

query I rowsort
SELECT - 62 * + 99
----
-6138

onlyif mysql # DIV for integer division: 
query II rowsort label-5438
SELECT ALL 68 DIV - 66 AS col2, 84
----
-1
84

skipif mysql # not compatible
query II rowsort label-5438
SELECT ALL 68 / - 66 AS col2, 84
----
-1
84

query II rowsort
SELECT + ( 90 ), - 96 AS col2
----
90
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT - 79 + - 21 - + + CAST( 65 AS SIGNED )
----
-165

skipif mysql # not compatible
query I rowsort label-5440
SELECT - 79 + - 21 - + + CAST ( 65 AS INTEGER )
----
-165

onlyif mysql # aggregate syntax: 
query II rowsort label-5441
SELECT + ( - MIN( DISTINCT - 97 ) ), 92 + + - 0 AS col0
----
97
92

skipif mysql # not compatible
query II rowsort label-5441
SELECT + ( - MIN ( DISTINCT - 97 ) ), 92 + + - 0 AS col0
----
97
92

query I rowsort
SELECT - 55 + 5 AS col2
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-5443
SELECT + 26 * - 41 AS col0, - 1 DIV + 51 col2
----
-1066
0

skipif mysql # not compatible
query II rowsort label-5443
SELECT + 26 * - 41 AS col0, - 1 / + 51 col2
----
-1066
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5444
SELECT + 43 DIV + 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5444
SELECT + 43 / + 44 AS col2
----
0

query I rowsort
SELECT COALESCE ( 67, 95 ) AS col1
----
67

query I rowsort
SELECT DISTINCT 67 * - 18 * + - NULLIF ( - 66, ( 41 ) ) AS col1
----
-79596

query II rowsort
SELECT ALL 90 * + 69 - 50 AS col2, - 5 * - - 71
----
6160
-355

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5448
SELECT ALL - + ( + - CASE + 76 WHEN + CAST( NULL AS DECIMAL ) THEN + - 39 * - 88 * ( 69 ) * - 10 WHEN + + ( + 75 ) THEN NULL END ) * 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT ALL - + ( + - CASE + 76 WHEN + CAST ( NULL AS REAL ) THEN + - 39 * - 88 * ( 69 ) * - 10 WHEN + + ( + 75 ) THEN NULL END ) * 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT MIN( 29 ) + - ( + + ( - - 77 ) )
----
-48

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT MIN ( 29 ) + - ( + + ( - - 77 ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT - + 36 * + 31 * + COUNT( * ) * - + 21
----
23436

skipif mysql # not compatible
query I rowsort label-5450
SELECT - + 36 * + 31 * + COUNT ( * ) * - + 21
----
23436

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL - 14 * 42 + - 34 + COUNT( ALL 15 ) + + 53 AS col2
----
-568

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - 14 * 42 + - 34 + COUNT ( ALL 15 ) + + 53 AS col2
----
-568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5452
SELECT - - NULLIF ( + 64, + 31 + 11 + 52 + MAX( + 17 ) ) DIV 26 * - 8 * 2
----
-32

skipif mysql # not compatible
query I rowsort label-5452
SELECT - - NULLIF ( + 64, + 31 + 11 + 52 + MAX ( + 17 ) ) / 26 * - 8 * 2
----
-32

query I rowsort
SELECT CASE - 95 WHEN 85 THEN NULL WHEN + - 42 / + 89 THEN 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5454
SELECT - 0 + + + 65 + + - COUNT( * ) + + - 97 * - - 39 col1, - COUNT( * )
----
-3719
-1

skipif mysql # not compatible
query II rowsort label-5454
SELECT - 0 + + + 65 + + - COUNT ( * ) + + - 97 * - - 39 col1, - COUNT ( * )
----
-3719
-1

query I rowsort
SELECT + 69 * + - 68
----
-4692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5456
SELECT ALL - 64 + + CASE ( ( ( 71 ) ) ) WHEN - - NULLIF ( + 48, - CAST( NULL AS SIGNED ) ) THEN NULL WHEN 73 / COUNT( * ) * - 66 - + SUM( DISTINCT 53 ) - + + 10 THEN - - COUNT( * ) * ( 60 ) + AVG ( + ( 90 ) ) ELSE NULL END + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL - 64 + + CASE ( ( ( 71 ) ) ) WHEN - - NULLIF ( + 48, - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 73 / COUNT ( * ) * - 66 - + SUM ( DISTINCT 53 ) - + + 10 THEN - - COUNT ( * ) * ( 60 ) + AVG ( + ( 90 ) ) ELSE NULL END + - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5457
SELECT - COALESCE ( + COUNT( * ), + CASE - + MIN( 36 ) WHEN COALESCE ( + + 95, + 34, - 71 ) * - 93 * - 22 THEN COUNT( * ) END DIV + + 99 ) - - NULLIF ( - COUNT( DISTINCT 73 ), + - 93 ) + ( + 14 ) * - 65
----
-912

skipif mysql # not compatible
query I rowsort label-5457
SELECT - COALESCE ( + COUNT ( * ), + CASE - + MIN ( 36 ) WHEN COALESCE ( + + 95, + 34, - 71 ) * - 93 * - 22 THEN COUNT ( * ) END / + + 99 ) - - NULLIF ( - COUNT ( DISTINCT 73 ), + - 93 ) + ( + 14 ) * - 65
----
-912

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5458
SELECT ALL + 26, 65 * - 48 + CAST( NULL AS SIGNED ) AS col2
----
26
NULL

skipif mysql # not compatible
query II rowsort label-5458
SELECT ALL + 26, 65 * - 48 + CAST ( NULL AS INTEGER ) AS col2
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT + CASE - + 94 WHEN + - 58 THEN + 15 * - 65 + + + 36 * ( 85 ) + + + 11 / AVG ( + - 32 ) WHEN + 94 * + + 51 / - 25 * - COUNT( * ) + - 50 THEN + 25 + - - 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT + CASE - + 94 WHEN + - 58 THEN + 15 * - 65 + + + 36 * ( 85 ) + + + 11 / AVG ( + - 32 ) WHEN + 94 * + + 51 / - 25 * - COUNT ( * ) + - 50 THEN + 25 + - - 67 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT DISTINCT 33 DIV - 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT 33 / - 40 AS col2
----
0

query I rowsort
SELECT 55 + - 55 * + 18 AS col2
----
-935

query II rowsort
SELECT + 44 AS col0, 35 + - 96
----
44
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT CAST( NULL AS SIGNED ) - ( - 38 ) + + + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT CAST ( NULL AS INTEGER ) - ( - 38 ) + + + 52 AS col1
----
NULL

query II rowsort
SELECT 54, - 66 AS col2
----
54
-66

query I rowsort
SELECT ALL 62 * + - 26 AS col1
----
-1612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5466
SELECT ALL 20 - + COUNT( * ) - + CAST( + 47 AS SIGNED ) * - + 36
----
1711

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL 20 - + COUNT ( * ) - + CAST ( + 47 AS INTEGER ) * - + 36
----
1711

onlyif mysql # aggregate syntax: 
query II rowsort label-5467
SELECT + 55 AS col1, + COALESCE ( + 67, 69 ) + 99 + - SUM( 30 ) * - 65 AS col1
----
55
2116

skipif mysql # not compatible
query II rowsort label-5467
SELECT + 55 AS col1, + COALESCE ( + 67, 69 ) + 99 + - SUM ( 30 ) * - 65 AS col1
----
55
2116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5468
SELECT CAST( - 41 AS SIGNED ) * CAST( NULL AS SIGNED ) * - - 50 + + - CAST( NULL AS SIGNED ) + + + MIN( - + 86 ) * - + CAST( NULL AS SIGNED ) * - - COALESCE ( - 97, + 44 ) + ( 52 ) + + COALESCE ( + 18, 9 * - - 88, - 53 ) + + CASE 1 WHEN - 24 THEN NULL WHEN COALESCE ( 90, CASE ( CAST( 62 AS SIGNED ) ) WHEN 53 THEN 84 WHEN 22 + + 78 THEN NULL ELSE COUNT( * ) END ) THEN ( + COALESCE ( - 88, + 62 + 21 / + 94, ( 22 ) / 73 ) ) * + ( + 47 ) WHEN 86 THEN NULL END * 68 + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT CAST ( - 41 AS INTEGER ) * CAST ( NULL AS INTEGER ) * - - 50 + + - CAST ( NULL AS INTEGER ) + + + MIN ( - + 86 ) * - + CAST ( NULL AS INTEGER ) * - - COALESCE ( - 97, + 44 ) + ( 52 ) + + COALESCE ( + 18, 9 * - - 88, - 53 ) + + CASE 1 WHEN - 24 THEN NULL WHEN COALESCE ( 90, CASE ( CAST ( 62 AS INTEGER ) ) WHEN 53 THEN 84 WHEN 22 + + 78 THEN NULL ELSE COUNT ( * ) END ) THEN ( + COALESCE ( - 88, + 62 + 21 / + 94, ( 22 ) / 73 ) ) * + ( + 47 ) WHEN 86 THEN NULL END * 68 + 60
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5469
SELECT 54 + - 63 + + 43 AS col0, MIN( - + 74 )
----
34
-74

skipif mysql # not compatible
query II rowsort label-5469
SELECT 54 + - 63 + + 43 AS col0, MIN ( - + 74 )
----
34
-74

query I rowsort
SELECT 13 + - 44 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT + 54 + - COUNT( * ) - - 77
----
130

skipif mysql # not compatible
query I rowsort label-5471
SELECT + 54 + - COUNT ( * ) - - 77
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5472
SELECT 43 * - 31 * + 29 AS col0, + CAST( - - 49 AS SIGNED )
----
-38657
49

skipif mysql # not compatible
query II rowsort label-5472
SELECT 43 * - 31 * + 29 AS col0, + CAST ( - - 49 AS INTEGER )
----
-38657
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT ALL CASE 16 WHEN + + 65 + + + 68 THEN - - CAST( - 99 AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL CASE 16 WHEN + + 65 + + + 68 THEN - - CAST ( - 99 AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5474
SELECT DISTINCT 42 * CAST( - COUNT( * ) AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT 42 * CAST ( - COUNT ( * ) AS INTEGER )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5475
SELECT 14 * - MAX( DISTINCT - + CAST( NULL AS DECIMAL ) ) / - 20 * - 31 * 17 * - 46 + 40, MIN( DISTINCT 73 ) + + 88 AS col1
----
NULL
161

skipif mysql # not compatible
query II rowsort label-5475
SELECT 14 * - MAX ( DISTINCT - + CAST ( NULL AS REAL ) ) / - 20 * - 31 * 17 * - 46 + 40, MIN ( DISTINCT 73 ) + + 88 AS col1
----
NULL
161

onlyif mysql # aggregate syntax: 
query II rowsort label-5476
SELECT - ( + COUNT( * ) ) + + - 48, - 35 * 95 AS col1
----
-49
-3325

skipif mysql # not compatible
query II rowsort label-5476
SELECT - ( + COUNT ( * ) ) + + - 48, - 35 * 95 AS col1
----
-49
-3325

query I rowsort
SELECT ALL - 29 + - 73
----
-102

query I rowsort
SELECT 15 + - 11
----
4

query I rowsort
SELECT 2 * + ( 71 ) col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + COUNT( * ) + 98 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5480
SELECT + COUNT ( * ) + 98 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5481
SELECT ALL - 84 + + 81 + + - ( - + 86 ) * - - 66 / 31 + - CASE + 89 WHEN + 25 / + 92 * 67 THEN - CAST( NULL AS SIGNED ) WHEN ( - 3 ) THEN ( - + COUNT( * ) ) END * + MAX( + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL - 84 + + 81 + + - ( - + 86 ) * - - 66 / 31 + - CASE + 89 WHEN + 25 / + 92 * 67 THEN - CAST ( NULL AS INTEGER ) WHEN ( - 3 ) THEN ( - + COUNT ( * ) ) END * + MAX ( + 35 )
----
NULL

query I rowsort
SELECT 92 + 6 AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5483
SELECT 53 col0, - ( COALESCE ( + CAST( NULL AS SIGNED ), + + 24 ) )
----
53
-24

skipif mysql # not compatible
query II rowsort label-5483
SELECT 53 col0, - ( COALESCE ( + CAST ( NULL AS INTEGER ), + + 24 ) )
----
53
-24

query I rowsort
SELECT ALL + + 26 + - - 21
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT COUNT( 63 )
----
1

skipif mysql # not compatible
query I rowsort label-5485
SELECT COUNT ( 63 )
----
1

query II rowsort
SELECT ALL 9 col0, 17
----
9
17

query I rowsort
SELECT ALL - + 13 * + + 60 * 7 AS col2
----
-5460

query I rowsort
SELECT ALL + 30 + + 8 AS col2
----
38

query I rowsort
SELECT DISTINCT + 84 + 92 * - ( - 44 )
----
4132

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT 81 * + COUNT( * ) * - + SUM( DISTINCT - 40 ) AS col0, 63 + - - 9 * - + 41 AS col2
----
3240
-306

skipif mysql # not compatible
query II rowsort label-5490
SELECT 81 * + COUNT ( * ) * - + SUM ( DISTINCT - 40 ) AS col0, 63 + - - 9 * - + 41 AS col2
----
3240
-306

query I rowsort
SELECT ALL - 57 * + + 62 AS col2
----
-3534

query II rowsort
SELECT DISTINCT + 85 - 16, + 27 AS col2
----
69
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT 71 * + - CASE + - 69 WHEN 83 THEN MAX( ALL - 4 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5493
SELECT 71 * + - CASE + - 69 WHEN 83 THEN MAX ( ALL - 4 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 64 / CASE + AVG ( ALL 39 ) WHEN + 83 THEN + 21 END + 88 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + + 10, + CASE + NULLIF ( + 91, 14 + + 4 ) WHEN + - 42 THEN NULL WHEN - 44 THEN - 97 ELSE NULL END )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT 90 DIV 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5496
SELECT 90 / 80 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5497
SELECT ALL COUNT( * ) DIV - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL COUNT ( * ) / - 37 AS col1
----
0

query I rowsort
SELECT + 32 * 17 + - - 50 AS col2
----
594

query II rowsort
SELECT DISTINCT - NULLIF ( CASE - - 21 WHEN 2 THEN NULL WHEN + + 85 * + + 99 THEN NULL ELSE 79 END, - 89 + - 98 ) AS col2, 91
----
-79
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5500
SELECT DISTINCT + 13 DIV + + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT + 13 / + + 77 AS col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5501
SELECT 80 DIV + + 44 col1, 52 AS col2
----
1
52

skipif mysql # not compatible
query II rowsort label-5501
SELECT 80 / + + 44 col1, 52 AS col2
----
1
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5502
SELECT COUNT( * ) DIV - - 79 * + COUNT( * ) * + ( + 38 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5502
SELECT COUNT ( * ) / - - 79 * + COUNT ( * ) * + ( + 38 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL + MIN( ALL - 65 ) * 40 col1
----
-2600

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL + MIN ( ALL - 65 ) * 40 col1
----
-2600

query I rowsort
SELECT 25 * + ( 32 ) col0
----
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5505
SELECT - 62 * 60 * - + COUNT( * ) + + COALESCE ( - CASE - 57 WHEN + COUNT( * ) THEN - - SUM( DISTINCT 36 ) ELSE NULL END, CAST( - 7 AS SIGNED ) + + 73 ) AS col2, 17 AS col1
----
3786
17

skipif mysql # not compatible
query II rowsort label-5505
SELECT - 62 * 60 * - + COUNT ( * ) + + COALESCE ( - CASE - 57 WHEN + COUNT ( * ) THEN - - SUM ( DISTINCT 36 ) ELSE NULL END, CAST ( - 7 AS INTEGER ) + + 73 ) AS col2, 17 AS col1
----
3786
17

query I rowsort
SELECT ALL - ( - + 31 ) * + - 21 * - 77 AS col0
----
50127

query I rowsort
SELECT ALL - 29 * - - 55 AS col1
----
-1595

query I rowsort
SELECT ALL - + 49 * 90
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT - 91 + COUNT( * ) + + 90
----
0

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT - 91 + COUNT ( * ) + + 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT DISTINCT - COUNT( * ) + - 2 + MAX( ALL + - NULLIF ( 81, + 7 * + 73 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT - COUNT ( * ) + - 2 + MAX ( ALL + - NULLIF ( 81, + 7 * + 73 ) )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5511
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col1, - 9 * + + 3 + + 16
----
1
-11

skipif mysql # not compatible
query II rowsort label-5511
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col1, - 9 * + + 3 + + 16
----
1
-11

query I rowsort
SELECT ALL - 88 + - + 63 - - + 70
----
-81

query I rowsort
SELECT DISTINCT 76 + - - 92 AS col1
----
168

query I rowsort
SELECT - COALESCE ( 27, 47 ) AS col2
----
-27

query I rowsort
SELECT 86 * 11
----
946

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT ALL + SUM( 81 ) - - COUNT( * ), - 31 AS col0
----
82
-31

skipif mysql # not compatible
query II rowsort label-5516
SELECT ALL + SUM ( 81 ) - - COUNT ( * ), - 31 AS col0
----
82
-31

query I rowsort
SELECT - ( 69 ) * + 2 AS col2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT + 57 + + COALESCE ( + + COALESCE ( 66, 4 * + - 70 * + 34 ), CASE NULLIF ( - 39, + COUNT( * ) + 13 + + 55 ) WHEN - 57 + + 19 + COUNT( * ) - 52 + - 13 / MAX( ALL + 50 ) + - COALESCE ( + 64 + MAX( DISTINCT + ( - 19 ) ), - ( 3 ) ) THEN NULL WHEN 36 THEN - SUM( ALL + 30 ) + 7 END ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-5518
SELECT + 57 + + COALESCE ( + + COALESCE ( 66, 4 * + - 70 * + 34 ), CASE NULLIF ( - 39, + COUNT ( * ) + 13 + + 55 ) WHEN - 57 + + 19 + COUNT ( * ) - 52 + - 13 / MAX ( ALL + 50 ) + - COALESCE ( + 64 + MAX ( DISTINCT + ( - 19 ) ), - ( 3 ) ) THEN NULL WHEN 36 THEN - SUM ( ALL + 30 ) + 7 END ) AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT - COUNT( DISTINCT 48 ) * - + 82 - - ( - + 61 )
----
21

skipif mysql # not compatible
query I rowsort label-5519
SELECT - COUNT ( DISTINCT 48 ) * - + 82 - - ( - + 61 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL + 99 - NULLIF ( - + MAX( - + 41 ), + 7 - - 81 ) * - + 57
----
2436

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL + 99 - NULLIF ( - + MAX ( - + 41 ), + 7 - - 81 ) * - + 57
----
2436

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT + COUNT( * ) + + 16 + - 62 * - 11
----
699

skipif mysql # not compatible
query I rowsort label-5521
SELECT + COUNT ( * ) + + 16 + - 62 * - 11
----
699

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT - COUNT( * ) * - 77
----
77

skipif mysql # not compatible
query I rowsort label-5522
SELECT - COUNT ( * ) * - 77
----
77

query II rowsort
SELECT DISTINCT + 22 AS col1, COALESCE ( + 36, - 8 ) AS col2
----
22
36

query II rowsort
SELECT + 0 AS col1, - 21 + + 71 col1
----
0
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + ( 6 ) * - MIN( DISTINCT - 53 ) + + 7
----
325

skipif mysql # not compatible
query I rowsort label-5525
SELECT + ( 6 ) * - MIN ( DISTINCT - 53 ) + + 7
----
325

query I rowsort
SELECT - 97 * + 87 AS col2
----
-8439

query I rowsort
SELECT ALL + 27 * + - 30
----
-810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5528
SELECT COALESCE ( + 2, + - 44 / - - 60 ) / 36 + CASE + 34 WHEN - NULLIF ( + CAST( NULL AS SIGNED ), + 4 ) THEN NULL WHEN - 98 * MIN( DISTINCT + - 97 ) + + - COUNT( 55 ) + 32 THEN - 84 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT COALESCE ( + 2, + - 44 / - - 60 ) / 36 + CASE + 34 WHEN - NULLIF ( + CAST ( NULL AS INTEGER ), + 4 ) THEN NULL WHEN - 98 * MIN ( DISTINCT + - 97 ) + + - COUNT ( 55 ) + 32 THEN - 84 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 9 * - NULLIF ( + 51, - 69 + 13 + 6 ) AS col1
----
-459

query I rowsort
SELECT - COALESCE ( 8, - 82 ) + 71 col0
----
63

query I rowsort
SELECT - 66 * 21 AS col2
----
-1386

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT NULLIF ( 89, CASE + - COUNT( * ) WHEN - - COUNT( * ) THEN - 31 WHEN + 78 * - COUNT( + 99 ) * + - 14 + - + 29 * 75 * + 34 THEN 41 + 25 WHEN COUNT( * ) THEN + + 20 END ) col2
----
89

skipif mysql # not compatible
query I rowsort label-5532
SELECT NULLIF ( 89, CASE + - COUNT ( * ) WHEN - - COUNT ( * ) THEN - 31 WHEN + 78 * - COUNT ( + 99 ) * + - 14 + - + 29 * 75 * + 34 THEN 41 + 25 WHEN COUNT ( * ) THEN + + 20 END ) col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5533
SELECT CASE - COALESCE ( - COALESCE ( - + NULLIF ( + - 13, - COUNT( DISTINCT - - 41 ) + + 14 + ( - - ( + 32 ) ) * + ( 68 ) ), + 50 * ( - - 10 ) + 73 * + 94 + + + 99 * ( - 77 ) - - 10 ), 93 ) WHEN - CAST( NULL AS SIGNED ) / 19 - 79 THEN + 67 * - 67 + SUM( ALL 67 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT CASE - COALESCE ( - COALESCE ( - + NULLIF ( + - 13, - COUNT ( DISTINCT - - 41 ) + + 14 + ( - - ( + 32 ) ) * + ( 68 ) ), + 50 * ( - - 10 ) + 73 * + 94 + + + 99 * ( - 77 ) - - 10 ), 93 ) WHEN - CAST ( NULL AS INTEGER ) / 19 - 79 THEN + 67 * - 67 + SUM ( ALL 67 ) END
----
NULL

query I rowsort
SELECT - - 47 * 83 AS col2
----
3901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5535
SELECT DISTINCT - 75 * - COUNT( DISTINCT - - CAST( - 4 AS SIGNED ) ) + + + 47, - 78 AS col2
----
122
-78

skipif mysql # not compatible
query II rowsort label-5535
SELECT DISTINCT - 75 * - COUNT ( DISTINCT - - CAST ( - 4 AS INTEGER ) ) + + + 47, - 78 AS col2
----
122
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL + COUNT( - 88 ) * - ( + + COALESCE ( - 26, - - 52 ) ) + + - MIN( ALL + 22 ) * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL + COUNT ( - 88 ) * - ( + + COALESCE ( - 26, - - 52 ) ) + + - MIN ( ALL + 22 ) * + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + - COUNT( 98 )
----
-1

skipif mysql # not compatible
query I rowsort label-5537
SELECT + - COUNT ( 98 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT - 38 * + + COUNT( * ) + 67 * + 39
----
2575

skipif mysql # not compatible
query I rowsort label-5538
SELECT - 38 * + + COUNT ( * ) + 67 * + 39
----
2575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5539
SELECT + CAST( + 74 AS DECIMAL ) - - NULLIF ( - NULLIF ( - 2, - - COUNT( - ( + 43 ) ) - 90 + - 31 / 3 * - 91 ), 27 + - 88 - + - 1 + - 42 + + + 64 ) * + + CAST( NULL AS SIGNED ) - + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT + CAST ( + 74 AS REAL ) - - NULLIF ( - NULLIF ( - 2, - - COUNT ( - ( + 43 ) ) - 90 + - 31 / 3 * - 91 ), 27 + - 88 - + - 1 + - 42 + + + 64 ) * + + CAST ( NULL AS INTEGER ) - + 86 AS col1
----
NULL

query I rowsort
SELECT + - 48 * - 74 AS col1
----
3552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT ALL + CAST( - 62 AS SIGNED ) * - + 50 + - + 0 * NULLIF ( - 83, - + 43 ) - - 53 AS col1
----
3153

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL + CAST ( - 62 AS INTEGER ) * - + 50 + - + 0 * NULLIF ( - 83, - + 43 ) - - 53 AS col1
----
3153

query II rowsort
SELECT 8 AS col1, 9 * - 31
----
8
-279

query II rowsort
SELECT - + 78 col2, 73
----
-78
73

query I rowsort
SELECT DISTINCT + - 4 + + 94 AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-5545
SELECT ALL - + COUNT( * ) - + + COUNT( * ) + - - MIN( - 65 ) + - - 43, + 4 col2
----
-24
4

skipif mysql # not compatible
query II rowsort label-5545
SELECT ALL - + COUNT ( * ) - + + COUNT ( * ) + - - MIN ( - 65 ) + - - 43, + 4 col2
----
-24
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5546
SELECT ALL + + 79 * 31 + - 12 + - COUNT( * ) + 0 * - 59 + - ( 37 ) + - 5 + + - 33 * + COUNT( * ) * + CAST( NULL AS SIGNED ) * + 82 / - MIN( DISTINCT - + 33 ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL + + 79 * 31 + - 12 + - COUNT ( * ) + 0 * - 59 + - ( 37 ) + - 5 + + - 33 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 82 / - MIN ( DISTINCT - + 33 ) * 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL - COALESCE ( - 68, + 78 * + 83, + + 6 * - - COALESCE ( - ( + COUNT( * ) ), - + 57 + + 54 + 97 ) )
----
68

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL - COALESCE ( - 68, + 78 * + 83, + + 6 * - - COALESCE ( - ( + COUNT ( * ) ), - + 57 + + 54 + 97 ) )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT - + CAST( - 39 AS SIGNED ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5548
SELECT - + CAST ( - 39 AS INTEGER ) AS col0
----
39

query I rowsort
SELECT + - 47 * + 22
----
-1034

query I rowsort
SELECT + 39 + - 72 AS col2
----
-33

query I rowsort
SELECT ALL 45 - 7 AS col2
----
38

query II rowsort
SELECT 62, 74 * 57 AS col1
----
62
4218

query I rowsort
SELECT + ( + 74 ) * + 85 AS col1
----
6290

query I rowsort
SELECT + 15 + 56 + 77 * 63 AS col2
----
4922

onlyif mysql # DIV for integer division: 
query I rowsort label-5555
SELECT DISTINCT 50 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT 50 / 62
----
0

query I rowsort
SELECT DISTINCT 68 * - 30 * + 45 AS col0
----
-91800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5557
SELECT - CAST( ( + COALESCE ( - - 86, - NULLIF ( - 14, - 76 + CAST( NULL AS SIGNED ) ) + + 53 - - 92 * 33 ) ) AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-5557
SELECT - CAST ( ( + COALESCE ( - - 86, - NULLIF ( - 14, - 76 + CAST ( NULL AS INTEGER ) ) + + 53 - - 92 * 33 ) ) AS INTEGER )
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT + 97 DIV ( 63 )
----
1

skipif mysql # not compatible
query I rowsort label-5558
SELECT + 97 / ( 63 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5559
SELECT ALL COUNT( * ) * - - 71 DIV - COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL COUNT ( * ) * - - 71 / - COUNT ( * ) AS col0
----
-71

query I rowsort
SELECT ALL 61 * 97
----
5917

query II rowsort
SELECT 99 AS col2, + 57 * 54 AS col2
----
99
3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5562
SELECT - 67 DIV - - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-5562
SELECT - 67 / - - COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5563
SELECT - 11 DIV - + COUNT( * ) + + 62 + - - 39
----
112

skipif mysql # not compatible
query I rowsort label-5563
SELECT - 11 / - + COUNT ( * ) + + 62 + - - 39
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL + MAX( - - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + MAX ( - - 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT - 43 * COUNT( * ) * - 71
----
3053

skipif mysql # not compatible
query I rowsort label-5565
SELECT - 43 * COUNT ( * ) * - 71
----
3053

query I rowsort
SELECT - 2 + - 80 + + + 28 + - - 61
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT DISTINCT 86 DIV 19 + + + ( ( - + 13 ) ) DIV 75 DIV + 47 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT 86 / 19 + + + ( ( - + 13 ) ) / 75 / + 47 AS col2
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5568
SELECT ALL - 47 / 45 + 65 * - - 62 + - CASE 53 WHEN - 58 THEN NULL ELSE + - CAST( NULL AS DECIMAL ) * 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - 47 / 45 + 65 * - - 62 + - CASE 53 WHEN - 58 THEN NULL ELSE + - CAST ( NULL AS REAL ) * 3 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5569
SELECT + 31 + 14 + 29 + 85 * 10 * 6 * 94 DIV - 17
----
-28126

skipif mysql # not compatible
query I rowsort label-5569
SELECT + 31 + 14 + 29 + 85 * 10 * 6 * 94 / - 17
----
-28126

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5570
SELECT DISTINCT + - 8 AS col2, ( 50 ) * - + CAST( NULL AS DECIMAL ) - + 97
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-5570
SELECT DISTINCT + - 8 AS col2, ( 50 ) * - + CAST ( NULL AS REAL ) - + 97
----
-8
NULL

query I rowsort
SELECT DISTINCT 22 * + + 84 + + - 30 + + 61 + 66
----
1945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5572
SELECT + + COUNT( + - ( + - 37 ) ) DIV - 30 + + 55
----
55

skipif mysql # not compatible
query I rowsort label-5572
SELECT + + COUNT ( + - ( + - 37 ) ) / - 30 + + 55
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT DISTINCT + 27 DIV + + 72 * + 93 + 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT + 27 / + + 72 * + 93 + 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5574
SELECT + 32, COUNT( * ) col1
----
32
1

skipif mysql # not compatible
query II rowsort label-5574
SELECT + 32, COUNT ( * ) col1
----
32
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5575
SELECT + 15 * + + 13 * + 1 + - 2 - + COUNT( * ) * - 38 DIV - - 8 + + 56 + - - 87
----
340

skipif mysql # not compatible
query I rowsort label-5575
SELECT + 15 * + + 13 * + 1 + - 2 - + COUNT ( * ) * - 38 / - - 8 + + 56 + - - 87
----
340

query I rowsort
SELECT ALL + 12 * - + 80 - + 54 AS col0
----
-1014

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT - + 75 * + COUNT( - 17 ) + CASE + 5 WHEN + 10 * + + 2 + + - 73 THEN + 47 WHEN - 16 * + NULLIF ( ( COUNT( * ) ), + 95 + + 2 ) THEN - - 87 / 34 WHEN + - NULLIF ( 54, + + 11 ) * 3 + + 88 THEN NULL END - - 2 * + 15 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT - + 75 * + COUNT ( - 17 ) + CASE + 5 WHEN + 10 * + + 2 + + - 73 THEN + 47 WHEN - 16 * + NULLIF ( ( COUNT ( * ) ), + 95 + + 2 ) THEN - - 87 / 34 WHEN + - NULLIF ( 54, + + 11 ) * 3 + + 88 THEN NULL END - - 2 * + 15 * + 7
----
NULL

query I rowsort
SELECT ALL - 91 * - 76 + + - 22 - + COALESCE ( 84, + 40 ) AS col2
----
6810

query I rowsort
SELECT ALL 12 - + 69 AS col1
----
-57

query II rowsort
SELECT - - 69 AS col1, + 67
----
69
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5581
SELECT ALL + 13 AS col2, - CAST( NULL AS SIGNED ) * 94
----
13
NULL

skipif mysql # not compatible
query II rowsort label-5581
SELECT ALL + 13 AS col2, - CAST ( NULL AS INTEGER ) * 94
----
13
NULL

query II rowsort
SELECT 57 - - 91 col2, 32 * 98
----
148
3136

query I rowsort
SELECT ( + 92 ) * - 85
----
-7820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5584
SELECT ALL - CAST( 43 AS SIGNED ) * + 73
----
-3139

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL - CAST ( 43 AS INTEGER ) * + 73
----
-3139

query I rowsort
SELECT 80 - - 13
----
93

query I rowsort
SELECT ALL + 35 * + - 82 AS col0
----
-2870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT + 26 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + 26 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ( - ( - COUNT( * ) ) ) * - + 58
----
-58

skipif mysql # not compatible
query I rowsort label-5588
SELECT ( - ( - COUNT ( * ) ) ) * - + 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT SUM( ALL - 72 ) + - 21 + + 20
----
-73

skipif mysql # not compatible
query I rowsort label-5589
SELECT SUM ( ALL - 72 ) + - 21 + + 20
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5590
SELECT 89 + 40 + - + 46 * - 72 DIV + 71 AS col1
----
175

skipif mysql # not compatible
query I rowsort label-5590
SELECT 89 + 40 + - + 46 * - 72 / + 71 AS col1
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT COUNT( * ) - + 22 * - 53 * 98
----
114269

skipif mysql # not compatible
query I rowsort label-5591
SELECT COUNT ( * ) - + 22 * - 53 * 98
----
114269

query II rowsort
SELECT 34 * - 1 AS col2, - 85 col2
----
-34
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT ALL NULLIF ( + COALESCE ( + COUNT( * ), - + COUNT( * ) ), + 67 - + + COALESCE ( - NULLIF ( - - SUM( DISTINCT + 15 ), - - 29 ), + 50 - - ( - - 71 ) * + COUNT( * ) ) + - COALESCE ( + - ( + + CAST( NULL AS SIGNED ) ), COUNT( + 15 ) ) ) + - 10 * + + 86 + 39 + - 48 * - 66
----
2348

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL NULLIF ( + COALESCE ( + COUNT ( * ), - + COUNT ( * ) ), + 67 - + + COALESCE ( - NULLIF ( - - SUM ( DISTINCT + 15 ), - - 29 ), + 50 - - ( - - 71 ) * + COUNT ( * ) ) + - COALESCE ( + - ( + + CAST ( NULL AS INTEGER ) ), COUNT ( + 15 ) ) ) + - 10 * + + 86 + 39 + - 48 * - 66
----
2348

onlyif mysql # aggregate syntax: 
query II rowsort label-5594
SELECT 24 + - + ( - COALESCE ( - 43, COUNT( * ) ) ) AS col0, + 53 * 28
----
-19
1484

skipif mysql # not compatible
query II rowsort label-5594
SELECT 24 + - + ( - COALESCE ( - 43, COUNT ( * ) ) ) AS col0, + 53 * 28
----
-19
1484

query I rowsort
SELECT ALL 11 * + 80 * - 19 AS col1
----
-16720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5596
SELECT ALL 15 + + 83 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL 15 + + 83 / + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + 99 ) * - + 35
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT + - SUM( DISTINCT + 28 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-5598
SELECT + - SUM ( DISTINCT + 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5599
SELECT - 30 - ( - COALESCE ( 78, + 63 DIV + - COUNT( * ) ) ) + ( + - 33 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5599
SELECT - 30 - ( - COALESCE ( 78, + 63 / + - COUNT ( * ) ) ) + ( + - 33 ) AS col2
----
15

query I rowsort
SELECT + 71 * + 51 - 38 AS col2
----
3583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5601
SELECT ( MIN( ALL + 8 ) ) + + 47 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5601
SELECT ( MIN ( ALL + 8 ) ) + + 47 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5602
SELECT ALL ( 77 ) * - 66 + - - CAST( - 73 AS SIGNED )
----
-5155

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL ( 77 ) * - 66 + - - CAST ( - 73 AS INTEGER )
----
-5155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5603
SELECT - 79 * + + COUNT( * ) + - 50 * ( - - ( COUNT( * ) ) ) + 80 + + CASE 55 WHEN - - COUNT( * ) THEN + CAST( + - 1 AS SIGNED ) / + 96 + - ( - - 23 ) * - 92 + + + 76 + + + 27 + 70 - + 49 * + 85 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT - 79 * + + COUNT ( * ) + - 50 * ( - - ( COUNT ( * ) ) ) + 80 + + CASE 55 WHEN - - COUNT ( * ) THEN + CAST ( + - 1 AS INTEGER ) / + 96 + - ( - - 23 ) * - 92 + + + 76 + + + 27 + 70 - + 49 * + 85 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT + ( - 7 ), + 53 AS col1
----
-7
53

query I rowsort
SELECT DISTINCT 75 * - 78
----
-5850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5606
SELECT 84 DIV - - COUNT( * ) col1
----
84

skipif mysql # not compatible
query I rowsort label-5606
SELECT 84 / - - COUNT ( * ) col1
----
84

query I rowsort
SELECT ALL 92 * - ( - 1 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT 90 + COUNT( * ) col0
----
91

skipif mysql # not compatible
query I rowsort label-5608
SELECT 90 + COUNT ( * ) col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT ALL - 67 DIV + 48 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL - 67 / + 48 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL + COUNT( * ) + 7 + 45 + 20 * - - 59 AS col2
----
1233

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL + COUNT ( * ) + 7 + 45 + 20 * - - 59 AS col2
----
1233

query I rowsort
SELECT 9 + 23 AS col1
----
32

query I rowsort
SELECT 80 * - - 58
----
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT ALL SUM( ALL 37 )
----
37

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL SUM ( ALL 37 )
----
37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5614
SELECT - 96 AS col2, + 66 * + ( + 7 ) + + 78 + - CAST( NULL AS DECIMAL )
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-5614
SELECT - 96 AS col2, + 66 * + ( + 7 ) + + 78 + - CAST ( NULL AS REAL )
----
-96
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT 99 DIV - 34 col0
----
-2

skipif mysql # not compatible
query I rowsort label-5615
SELECT 99 / - 34 col0
----
-2

query I rowsort
SELECT 35 + + - 96 AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5617
SELECT 24 AS col0, + CAST( - + 93 AS SIGNED ) AS col1
----
24
-93

skipif mysql # not compatible
query II rowsort label-5617
SELECT 24 AS col0, + CAST ( - + 93 AS INTEGER ) AS col1
----
24
-93

query I rowsort
SELECT ALL - 77 + 49 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5619
SELECT DISTINCT - COUNT( 5 ) * - CAST( NULL AS SIGNED ) - - MAX( DISTINCT - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT - COUNT ( 5 ) * - CAST ( NULL AS INTEGER ) - - MAX ( DISTINCT - 30 )
----
NULL

query I rowsort
SELECT DISTINCT + 32 + - 76 + + 74 - - 20 col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL + COUNT( * ) + + + 48 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL + COUNT ( * ) + + + 48 AS col0
----
49

query III rowsort
SELECT 14 - - 2 * - 86 AS col1, - ( + 17 ) + + + 12, + - 98 * 78 - - 99 + + + 65 AS col0
----
-158
-5
-7480

query II rowsort
SELECT + 21 AS col1, - 6 AS col1
----
21
-6

query I rowsort
SELECT + 78 + - 83 AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT 61 * - - 4 * - - CAST( NULL AS SIGNED ) + + + 49 * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT 61 * - - 4 * - - CAST ( NULL AS INTEGER ) + + + 49 * + 62
----
NULL

query I rowsort
SELECT + 52 * 48 / - CASE + - 5 WHEN + + 37 THEN + + 96 ELSE NULL END * 84
----
NULL

query II rowsort
SELECT ALL - ( + ( - 36 ) ), + 37 AS col2
----
36
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT ALL SUM( DISTINCT - 62 ) * + 42 - - 31 AS col0
----
-2573

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL SUM ( DISTINCT - 62 ) * + 42 - - 31 AS col0
----
-2573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT + CAST( NULL AS SIGNED ) * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT + CAST ( NULL AS INTEGER ) * 67
----
NULL

query II rowsort
SELECT ALL - 27 AS col1, 71 + + - 68 + + + 28 * - - 89 + + + 38
----
-27
2533

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT + 47 * 56 * - - MIN( DISTINCT + - 57 ) AS col1
----
-150024

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + 47 * 56 * - - MIN ( DISTINCT + - 57 ) AS col1
----
-150024

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT + 36 * - MAX( DISTINCT - 4 )
----
144

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT + 36 * - MAX ( DISTINCT - 4 )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL 73 * ( + 75 ) - COUNT( NULLIF ( - ( + + 80 ), 78 ) ) + - 19 * + - 60 AS col2
----
6614

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL 73 * ( + 75 ) - COUNT ( NULLIF ( - ( + + 80 ), 78 ) ) + - 19 * + - 60 AS col2
----
6614

query I rowsort
SELECT + 55 * + 26
----
1430

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ( + CASE + - 68 WHEN + NULLIF ( + 14, - - NULLIF ( + 49, - - 85 / - - 55 + - 23 ) * 51 - 15 + + - 46 * - COUNT( * ) ) THEN NULL ELSE - 57 END )
----
-57

skipif mysql # not compatible
query I rowsort label-5635
SELECT ( + CASE + - 68 WHEN + NULLIF ( + 14, - - NULLIF ( + 49, - - 85 / - - 55 + - 23 ) * 51 - 15 + + - 46 * - COUNT ( * ) ) THEN NULL ELSE - 57 END )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + + COUNT( * ) * - 96
----
-96

skipif mysql # not compatible
query I rowsort label-5636
SELECT + + COUNT ( * ) * - 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT ALL + COUNT( * ) * + - 19
----
-19

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL + COUNT ( * ) * + - 19
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-5638
SELECT + - ( - - 33 ) + + - 25 AS col2, COUNT( ALL - 65 ) AS col1
----
-58
1

skipif mysql # not compatible
query II rowsort label-5638
SELECT + - ( - - 33 ) + + - 25 AS col2, COUNT ( ALL - 65 ) AS col1
----
-58
1

query I rowsort
SELECT + + 48 * + 35 col2
----
1680

query I rowsort
SELECT + + 43 + + - 89 + 80 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL CASE - 75 WHEN - 53 * + 23 * - COUNT( * ) + 98 THEN 21 ELSE NULL END / + + 6 * + - 17 - - 60 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL CASE - 75 WHEN - 53 * + 23 * - COUNT ( * ) + 98 THEN 21 ELSE NULL END / + + 6 * + - 17 - - 60 col0
----
NULL

query I rowsort
SELECT + - 73 * + - 69 AS col1
----
5037

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5643
SELECT DISTINCT + + 79, - ( - 5 ) * 99 + 20 + + 31 + - 77 - 44 + + - CAST( + + 50 AS SIGNED ) AS col0
----
79
375

skipif mysql # not compatible
query II rowsort label-5643
SELECT DISTINCT + + 79, - ( - 5 ) * 99 + 20 + + 31 + - 77 - 44 + + - CAST ( + + 50 AS INTEGER ) AS col0
----
79
375

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT + + MIN( + 1 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + + MIN ( + 1 ) col2
----
1

query I rowsort
SELECT DISTINCT 18 * - 65 + + 45 col0
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT ALL 86 + + MIN( DISTINCT - 23 ) + - 15 + 53
----
101

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL 86 + + MIN ( DISTINCT - 23 ) + - 15 + 53
----
101

query I rowsort
SELECT + ( 14 ) - 85 + + + 73 col2
----
2

query I rowsort
SELECT ALL 39 + + - 13 * - 6
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT + COUNT( * ) * ( + 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-5649
SELECT + COUNT ( * ) * ( + 59 ) AS col0
----
59

query I rowsort
SELECT ALL + 9 + + 51 + 21
----
81

query I rowsort
SELECT ALL - 46 + 52 AS col0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-5652
SELECT - 14 - + + 51 + + - 74 + + 51 DIV + 32 AS col0, 26
----
-138
26

skipif mysql # not compatible
query II rowsort label-5652
SELECT - 14 - + + 51 + + - 74 + + 51 / + 32 AS col0, 26
----
-138
26

query I rowsort
SELECT ALL 20 * - - 85 AS col2
----
1700

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT COUNT( * ) + + + ( 42 ) * 28 + - - 67
----
1244

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT COUNT ( * ) + + + ( 42 ) * 28 + - - 67
----
1244

query I rowsort
SELECT ALL COALESCE ( - 10, - 12, - + 14 ) AS col0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT ALL + ( + 98 ) DIV - - 17
----
5

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL + ( + 98 ) / - - 17
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5657
SELECT ALL COALESCE ( - 79, + + 82, - CAST( NULL AS SIGNED ) DIV 98 )
----
-79

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL COALESCE ( - 79, + + 82, - CAST ( NULL AS INTEGER ) / 98 )
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-5658
SELECT ALL + 19 DIV - 26 col2, - 81 AS col2
----
0
-81

skipif mysql # not compatible
query II rowsort label-5658
SELECT ALL + 19 / - 26 col2, - 81 AS col2
----
0
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT - 31 + + + COUNT( * ) * COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-5659
SELECT - 31 + + + COUNT ( * ) * COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT - COUNT( * ) - + 14 * 81 AS col1
----
-1135

skipif mysql # not compatible
query I rowsort label-5660
SELECT - COUNT ( * ) - + 14 * 81 AS col1
----
-1135

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT - MIN( DISTINCT + + 0 ) * + 28 + 35 + - 11 * 55 AS col2
----
-570

skipif mysql # not compatible
query I rowsort label-5661
SELECT - MIN ( DISTINCT + + 0 ) * + 28 + 35 + - 11 * 55 AS col2
----
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT - CAST( + 84 AS SIGNED ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-5662
SELECT - CAST ( + 84 AS INTEGER ) AS col1
----
-84

query I rowsort
SELECT DISTINCT - - 62 * - 83 + - 77
----
-5223

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL MAX( + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL MAX ( + 1 ) AS col0
----
1

query I rowsort
SELECT - 17 + + 49
----
32

query I rowsort
SELECT + NULLIF ( - 41, 37 ) AS col1
----
-41

query I rowsort
SELECT ALL - ( + 48 ) * + 38
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT ALL + - NULLIF ( + - COUNT( * ), - 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL + - NULLIF ( + - COUNT ( * ), - 49 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - - 70 * - 44
----
-3080

query II rowsort
SELECT - + 57 * ( 4 ) + + 53 col0, 6
----
-175
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT MAX( DISTINCT + 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5671
SELECT MAX ( DISTINCT + 92 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5672
SELECT + - 63 * COUNT( * ) col0, 63 AS col2
----
-63
63

skipif mysql # not compatible
query II rowsort label-5672
SELECT + - 63 * COUNT ( * ) col0, 63 AS col2
----
-63
63

query I rowsort
SELECT - 92 * - 76
----
6992

query I rowsort
SELECT + - 14 + - 8 AS col0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT ALL 49 DIV + 20 + - + COUNT( * ) * 41
----
-39

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL 49 / + 20 + - + COUNT ( * ) * 41
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT - 19 DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-5676
SELECT - 19 / - 41
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5677
SELECT + 12 * + - COUNT( * ) DIV + 55 + 37 - + 71 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5677
SELECT + 12 * + - COUNT ( * ) / + 55 + 37 - + 71 AS col1
----
-34

query I rowsort
SELECT DISTINCT - 75 * - - 30
----
-2250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5679
SELECT ALL 16 * + - 84 * + + 33 + CAST( - 55 AS SIGNED ) + - NULLIF ( 25, + 96 * + COUNT( * ) ) * + CASE + ( 39 ) WHEN - 59 THEN NULL WHEN + COUNT( * ) * - + COALESCE ( - 13, + - 57, 83 ) / + 22 + + MIN( + 83 ) / ( + - 90 ) THEN + - 94 ELSE NULL END * - COUNT( 46 ) + 26 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL 16 * + - 84 * + + 33 + CAST ( - 55 AS INTEGER ) + - NULLIF ( 25, + 96 * + COUNT ( * ) ) * + CASE + ( 39 ) WHEN - 59 THEN NULL WHEN + COUNT ( * ) * - + COALESCE ( - 13, + - 57, 83 ) / + 22 + + MIN ( + 83 ) / ( + - 90 ) THEN + - 94 ELSE NULL END * - COUNT ( 46 ) + 26 col0
----
NULL

query I rowsort
SELECT ALL + ( 96 ) * - 49 * + 67 + - 80 + - 8
----
-315256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT ALL 46 * CAST( NULL AS SIGNED ) * - + 38 + + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL 46 * CAST ( NULL AS INTEGER ) * - + 38 + + + 69
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5682
SELECT + 74 - - COUNT( * ) + + MIN( ( 15 ) ), - 68 - + - 73 DIV 65 AS col2
----
90
-67

skipif mysql # not compatible
query II rowsort label-5682
SELECT + 74 - - COUNT ( * ) + + MIN ( ( 15 ) ), - 68 - + - 73 / 65 AS col2
----
90
-67

query I rowsort
SELECT DISTINCT 80 * 56 col0
----
4480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5684
SELECT - COUNT( * ) * + 49 - - 20 + + 97 + + + MAX( ALL - 87 ) * 10 + 16 DIV - 35 * + 81
----
-802

skipif mysql # not compatible
query I rowsort label-5684
SELECT - COUNT ( * ) * + 49 - - 20 + + 97 + + + MAX ( ALL - 87 ) * 10 + 16 / - 35 * + 81
----
-802

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT + COUNT( * ) + - - 27
----
28

skipif mysql # not compatible
query I rowsort label-5685
SELECT + COUNT ( * ) + - - 27
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT ALL - 87 * 75 * - - CAST( NULL AS SIGNED ) * 97 + - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - 87 * 75 * - - CAST ( NULL AS INTEGER ) * 97 + - 65 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT DISTINCT - 5 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT - 5 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT DISTINCT COUNT( - - 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT COUNT ( - - 80 ) AS col2
----
1

query I rowsort
SELECT 14 * + 31 + + 61 AS col0
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT ALL + NULLIF ( - SUM( + 0 ), + COUNT( * ) - + - 7 ) * 94 * + - 85 - + + 65 + + COALESCE ( + 70, + - ( 41 ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL + NULLIF ( - SUM ( + 0 ), + COUNT ( * ) - + - 7 ) * 94 * + - 85 - + + 65 + + COALESCE ( + 70, + - ( 41 ) ) AS col2
----
5

query I rowsort
SELECT + 67 + 16 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ALL ( - - COUNT( * ) ) * 93 - - 36
----
129

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL ( - - COUNT ( * ) ) * 93 - - 36
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT - 37 + - SUM( DISTINCT 50 ) col0
----
-87

skipif mysql # not compatible
query I rowsort label-5693
SELECT - 37 + - SUM ( DISTINCT 50 ) col0
----
-87

query I rowsort
SELECT DISTINCT NULLIF ( ( 40 ), + AVG ( - 32 ) )
----
40

query I rowsort
SELECT ALL + 15 - 20
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5696
SELECT + 25 * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT + 25 * - - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL + 2 * + 90 + - 14 * + + 42 col1
----
-408

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT DISTINCT 61 * - COALESCE ( - 2, + - 38 - + 26 + COUNT( * ) )
----
122

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT 61 * - COALESCE ( - 2, + - 38 - + 26 + COUNT ( * ) )
----
122

query I rowsort
SELECT ALL - COALESCE ( + 9, - 46 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT + NULLIF ( + COUNT( * ), 5 / + 76 + - - 81 * - MIN( - 4 ) * - + 32 + - - 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5700
SELECT + NULLIF ( + COUNT ( * ), 5 / + 76 + - - 81 * - MIN ( - 4 ) * - + 32 + - - 74 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5701
SELECT ALL + 57 col0, ( + 8 ) + + SUM( ALL + 17 ) col0
----
57
25

skipif mysql # not compatible
query II rowsort label-5701
SELECT ALL + 57 col0, ( + 8 ) + + SUM ( ALL + 17 ) col0
----
57
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5702
SELECT ALL + 87 DIV + - CAST( + 86 AS SIGNED ) + 30 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL + 87 / + - CAST ( + 86 AS INTEGER ) + 30 AS col1
----
29

query I rowsort
SELECT 77 * + - 74 - ( - + 25 ) AS col0
----
-5673

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5704
SELECT DISTINCT + 70 DIV + + COUNT( * ) col0
----
70

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT + 70 / + + COUNT ( * ) col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT + 76 * 46 + + + COUNT( - 21 ) + 38 + - - COUNT( * )
----
3536

skipif mysql # not compatible
query I rowsort label-5705
SELECT + 76 * 46 + + + COUNT ( - 21 ) + 38 + - - COUNT ( * )
----
3536

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL - 37 * COUNT( - 26 ) * 56 col2
----
-2072

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - 37 * COUNT ( - 26 ) * 56 col2
----
-2072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT DISTINCT + 79 * CASE + - 83 WHEN - 93 THEN - + 1 WHEN - 73 THEN 54 ELSE + 48 + 42 END * + NULLIF ( - 5, 22 + - 13 ) * - - ( + + 47 ) * + CAST( 59 AS SIGNED ) - - - 92 + + - 34
----
-98580276

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + 79 * CASE + - 83 WHEN - 93 THEN - + 1 WHEN - 73 THEN 54 ELSE + 48 + 42 END * + NULLIF ( - 5, 22 + - 13 ) * - - ( + + 47 ) * + CAST ( 59 AS INTEGER ) - - - 92 + + - 34
----
-98580276

query I rowsort
SELECT DISTINCT 78 + + - 48
----
30

query II rowsort
SELECT DISTINCT - 87 AS col2, - ( 52 ) AS col0
----
-87
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5710
SELECT CAST( NULL AS SIGNED ) + - NULLIF ( + 97, + - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5710
SELECT CAST ( NULL AS INTEGER ) + - NULLIF ( + 97, + - 68 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT + + CASE - 55 WHEN + - 75 * + 84 THEN 22 WHEN 38 THEN ( - 53 ) + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5711
SELECT + + CASE - 55 WHEN + - 75 * + 84 THEN 22 WHEN 38 THEN ( - 53 ) + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5712
SELECT 26 * + 60 DIV 12 - - COUNT( * ) + - 96 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-5712
SELECT 26 * + 60 / 12 - - COUNT ( * ) + - 96 AS col1
----
35

query II rowsort
SELECT + 24 AS col0, + 93 col0
----
24
93

query I rowsort
SELECT 25 + - ( + + 86 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-5715
SELECT NULLIF ( - 94, - 40 ) + + - 93 AS col0, COUNT( * )
----
-187
1

skipif mysql # not compatible
query II rowsort label-5715
SELECT NULLIF ( - 94, - 40 ) + + - 93 AS col0, COUNT ( * )
----
-187
1

query I rowsort
SELECT ALL + 45 + - 13
----
32

query I rowsort
SELECT 6 * 86 AS col0
----
516

query I rowsort
SELECT DISTINCT ( - 6 ) / + 64 * - - ( - - CASE - 17 WHEN 27 THEN + + 14 + + 9 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT COUNT( * ) * + - 9
----
-9

skipif mysql # not compatible
query I rowsort label-5719
SELECT COUNT ( * ) * + - 9
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5720
SELECT ALL CAST( - SUM( - 88 ) AS SIGNED ) * NULLIF ( - - ( + + 8 ), - + 14 ) AS col0
----
704

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL CAST ( - SUM ( - 88 ) AS INTEGER ) * NULLIF ( - - ( + + 8 ), - + 14 ) AS col0
----
704

query II rowsort
SELECT 48 AS col2, 95 * + - ( - + 70 ) AS col2
----
48
6650

query I rowsort
SELECT ALL + ( - 14 ) - 91
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL - MIN( DISTINCT + - 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL - MIN ( DISTINCT + - 49 ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5724
SELECT ALL 49 * NULLIF ( - 99, - COUNT( * ) ) * COUNT( DISTINCT - 11 ) - CASE - 41 WHEN 14 THEN NULL WHEN - COUNT( * ) / + 61 - - + MIN( 28 ) / - + CASE + NULLIF ( CAST( NULL AS SIGNED ), + + 0 / - COUNT( * ) + - 54 * + + 34 ) WHEN - ( + - COUNT( * ) ) THEN NULL WHEN CAST( NULL AS SIGNED ) * - 65 / - - CASE - - 42 WHEN + CAST( NULL AS SIGNED ) + 39 THEN NULL WHEN 28 * - ( + 28 ) THEN + 32 ELSE NULL END + 66 / 34 + 55 THEN + 57 WHEN 59 THEN 82 + + 3 ELSE NULL END THEN - 54 WHEN 12 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL 49 * NULLIF ( - 99, - COUNT ( * ) ) * COUNT ( DISTINCT - 11 ) - CASE - 41 WHEN 14 THEN NULL WHEN - COUNT ( * ) / + 61 - - + MIN ( 28 ) / - + CASE + NULLIF ( CAST ( NULL AS INTEGER ), + + 0 / - COUNT ( * ) + - 54 * + + 34 ) WHEN - ( + - COUNT ( * ) ) THEN NULL WHEN CAST ( NULL AS INTEGER ) * - 65 / - - CASE - - 42 WHEN + CAST ( NULL AS INTEGER ) + 39 THEN NULL WHEN 28 * - ( + 28 ) THEN + 32 ELSE NULL END + 66 / 34 + 55 THEN + 57 WHEN 59 THEN 82 + + 3 ELSE NULL END THEN - 54 WHEN 12 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT 15 - + 94 * - COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-5725
SELECT 15 - + 94 * - COUNT ( * )
----
109

query I rowsort
SELECT 24 + 58
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-5727
SELECT ALL 57 AS col1, + COALESCE ( 71, - 93, 40 * + 25 + - + COUNT( * ) )
----
57
71

skipif mysql # not compatible
query II rowsort label-5727
SELECT ALL 57 AS col1, + COALESCE ( 71, - 93, 40 * + 25 + - + COUNT ( * ) )
----
57
71

query I rowsort
SELECT 34 * 28 AS col0
----
952

onlyif mysql # DIV for integer division: 
query I rowsort label-5729
SELECT 40 DIV - 22 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5729
SELECT 40 / - 22 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5730
SELECT DISTINCT 37 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT 37 / + 99 AS col2
----
0

query II rowsort
SELECT ALL + 92, ( + + 18 ) AS col1
----
92
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT 36 - 69 + 75 + - 45 + ( + - 47 ) * - - 36 - + CASE + 19 WHEN 22 - - COUNT( * ) THEN 49 * + 67 * + + 67 ELSE NULL END / - 96 / + ( - 44 ) + - 95 * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT 36 - 69 + 75 + - 45 + ( + - 47 ) * - - 36 - + CASE + 19 WHEN 22 - - COUNT ( * ) THEN 49 * + 67 * + + 67 ELSE NULL END / - 96 / + ( - 44 ) + - 95 * + 89
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5733
SELECT + 46 col0, MAX( + - 52 ) AS col0
----
46
-52

skipif mysql # not compatible
query II rowsort label-5733
SELECT + 46 col0, MAX ( + - 52 ) AS col0
----
46
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5734
SELECT DISTINCT CASE - 96 WHEN + 49 THEN + - 54 * + + COALESCE ( 85, + 77 + - 95 + + - SUM( + 42 ) * + AVG ( 32 ) * + 97 + + + 81 + + + 43 + 1 ) * + 72 + - CAST( NULL AS SIGNED ) WHEN + - 47 / 74 + - MAX( 60 ) THEN NULL WHEN 41 / + + AVG ( ALL - CAST( NULL AS SIGNED ) ) THEN + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT DISTINCT CASE - 96 WHEN + 49 THEN + - 54 * + + COALESCE ( 85, + 77 + - 95 + + - SUM ( + 42 ) * + AVG ( 32 ) * + 97 + + + 81 + + + 43 + 1 ) * + 72 + - CAST ( NULL AS INTEGER ) WHEN + - 47 / 74 + - MAX ( 60 ) THEN NULL WHEN 41 / + + AVG ( ALL - CAST ( NULL AS INTEGER ) ) THEN + 12 END
----
NULL

query II rowsort
SELECT ALL - 56 AS col0, 84
----
-56
84

query I rowsort
SELECT 15 + - 41 AS col1
----
-26

query I rowsort
SELECT ALL - 41 * + 27 + - 75 - + - 67 + + 59 + 53 + - 70 AS col1
----
-1073

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5738
SELECT - COUNT( * ) AS col1, CAST( + 62 AS SIGNED ) AS col2
----
-1
62

skipif mysql # not compatible
query II rowsort label-5738
SELECT - COUNT ( * ) AS col1, CAST ( + 62 AS INTEGER ) AS col2
----
-1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT 36 * + COUNT( * ) * - 10 AS col2
----
-360

skipif mysql # not compatible
query I rowsort label-5739
SELECT 36 * + COUNT ( * ) * - 10 AS col2
----
-360

query I rowsort
SELECT - 48 - - 42 * + - 76 - 35
----
-3275

query I rowsort
SELECT ALL + 66 + + 75 * + 33 * - - 89
----
220341

query I rowsort
SELECT DISTINCT 22 * 82
----
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL - - 41 + - COUNT( * ) + - COUNT( DISTINCT + + 84 ) + + + 97
----
136

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL - - 41 + - COUNT ( * ) + - COUNT ( DISTINCT + + 84 ) + + + 97
----
136

query I rowsort
SELECT DISTINCT 66 + - 91 - + 10
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-5745
SELECT ALL - 71, 62 DIV - 95 AS col0
----
-71
0

skipif mysql # not compatible
query II rowsort label-5745
SELECT ALL - 71, 62 / - 95 AS col0
----
-71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT DISTINCT SUM( + + ( - + 37 ) ) + + - 88 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT SUM ( + + ( - + 37 ) ) + + - 88 AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT DISTINCT - - COUNT( * ) + - + 50 + 9 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT - - COUNT ( * ) + - + 50 + 9 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT DISTINCT + + 22 * + + COUNT( * ) * + ( + - 3 ) + + 70
----
4

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT + + 22 * + + COUNT ( * ) * + ( + - 3 ) + + 70
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5749
SELECT COALESCE ( - 80, - + 77 * - COUNT( * ) DIV 97 * + ( - 83 ) DIV + COUNT( * ) * - + CAST( NULL AS SIGNED ) - - 52 - + 21 + + + 57 ) col1
----
-80

skipif mysql # not compatible
query I rowsort label-5749
SELECT COALESCE ( - 80, - + 77 * - COUNT ( * ) / 97 * + ( - 83 ) / + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - - 52 - + 21 + + + 57 ) col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5750
SELECT + 53 DIV 76 + - 29 * - 53 AS col0
----
1537

skipif mysql # not compatible
query I rowsort label-5750
SELECT + 53 / 76 + - 29 * - 53 AS col0
----
1537

query II rowsort
SELECT - 93, + 22 + 84 AS col1
----
-93
106

query I rowsort
SELECT + 90 + + 31
----
121

query II rowsort
SELECT 84 * - + 42 AS col1, 68 AS col2
----
-3528
68

query I rowsort
SELECT ALL - 22 * + 94 * 69 AS col0
----
-142692

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT MAX( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-5755
SELECT MAX ( ALL + 7 )
----
7

query I rowsort
SELECT ALL + 50 * - ( + 94 ) * + + 34
----
-159800

query I rowsort
SELECT - 6 * + + 12 - - - 75 * - + 89 + + 55 AS col1
----
6658

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT ALL - ( + COUNT( * ) ) - + COALESCE ( + MIN( ALL - 1 ), 64 * 17 - - + 82 * + 75 * + 54 * + + 11 + - 93 )
----
0

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL - ( + COUNT ( * ) ) - + COALESCE ( + MIN ( ALL - 1 ), 64 * 17 - - + 82 * + 75 * + 54 * + + 11 + - 93 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + NULLIF ( - - 73, - 6 / - MIN( ALL + 31 ) * - + 34 )
----
73

skipif mysql # not compatible
query I rowsort label-5759
SELECT + NULLIF ( - - 73, - 6 / - MIN ( ALL + 31 ) * - + 34 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL - MIN( ALL + 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - MIN ( ALL + 84 ) AS col0
----
-84

query I rowsort
SELECT 51 * + 42 + 74 AS col2
----
2216

query I rowsort
SELECT 50 - - 72
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-5763
SELECT MAX( ALL + 81 ) * 43 + + 54 * - 23 AS col0, 0
----
2241
0

skipif mysql # not compatible
query II rowsort label-5763
SELECT MAX ( ALL + 81 ) * 43 + + 54 * - 23 AS col0, 0
----
2241
0

query I rowsort
SELECT 24 + + + 72
----
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5765
SELECT 51 * + COUNT( - ( - 94 ) ) * - CAST( NULL AS DECIMAL ) - - 52 - - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT 51 * + COUNT ( - ( - 94 ) ) * - CAST ( NULL AS REAL ) - - 52 - - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT + 74 * 43 + COUNT( * )
----
3183

skipif mysql # not compatible
query I rowsort label-5766
SELECT + 74 * 43 + COUNT ( * )
----
3183

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT - 2 + - SUM( ALL - 17 )
----
15

skipif mysql # not compatible
query I rowsort label-5767
SELECT - 2 + - SUM ( ALL - 17 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5768
SELECT + ( 13 ) * 62 DIV - 37 + COUNT( * ) + - 94 + 60
----
-54

skipif mysql # not compatible
query I rowsort label-5768
SELECT + ( 13 ) * 62 / - 37 + COUNT ( * ) + - 94 + 60
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5769
SELECT DISTINCT - COUNT( DISTINCT - 66 ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT - COUNT ( DISTINCT - 66 ) / - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT ALL - - 89 * - COUNT( * ) * - ( 76 )
----
6764

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - - 89 * - COUNT ( * ) * - ( 76 )
----
6764

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL + - COUNT( * ) + - 78
----
-79

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + - COUNT ( * ) + - 78
----
-79

query I rowsort
SELECT + - 51 + 75 col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT - - 81 * 72 DIV - 96
----
-60

skipif mysql # not compatible
query I rowsort label-5773
SELECT - - 81 * 72 / - 96
----
-60

query II rowsort
SELECT + + 76 + - 4 col0, 60 * + + 63 AS col1
----
72
3780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5775
SELECT + 28 DIV + - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-5775
SELECT + 28 / + - COUNT ( * )
----
-28

query I rowsort
SELECT + - 1 + 40
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5777
SELECT - NULLIF ( 25, COUNT( * ) * + + 75 + 26 )
----
-25

skipif mysql # not compatible
query I rowsort label-5777
SELECT - NULLIF ( 25, COUNT ( * ) * + + 75 + 26 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT + 99 * CASE - + ( 94 ) WHEN + 4 THEN NULL WHEN + 16 THEN NULL ELSE 30 + + 29 + CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT + 99 * CASE - + ( 94 ) WHEN + 4 THEN NULL WHEN + 16 THEN NULL ELSE 30 + + 29 + CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5779
SELECT ALL 69 + CASE - + CAST( - 25 AS SIGNED ) WHEN - + 84 THEN NULL WHEN - 88 THEN NULL WHEN 94 + 49 THEN - + 2 / - - 50 + 88 * 79 END - + - 68 + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL 69 + CASE - + CAST ( - 25 AS INTEGER ) WHEN - + 84 THEN NULL WHEN - 88 THEN NULL WHEN 94 + 49 THEN - + 2 / - - 50 + 88 * 79 END - + - 68 + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT DISTINCT MIN( DISTINCT - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT MIN ( DISTINCT - 20 )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5781
SELECT + ( - + COALESCE ( MIN( + 60 ), - 95 DIV AVG ( ALL 78 ) ) ) AS col2, ( - 1 )
----
-60
-1

skipif mysql # not compatible
query II rowsort label-5781
SELECT + ( - + COALESCE ( MIN ( + 60 ), - 95 / AVG ( ALL 78 ) ) ) AS col2, ( - 1 )
----
-60
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + COUNT( ALL - 40 ) - - SUM( DISTINCT - + 26 ) col0
----
-25

skipif mysql # not compatible
query I rowsort label-5782
SELECT + COUNT ( ALL - 40 ) - - SUM ( DISTINCT - + 26 ) col0
----
-25

query I rowsort
SELECT DISTINCT 14 - + 36
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT + 98 * + - COUNT( * ) col0
----
-98

skipif mysql # not compatible
query I rowsort label-5784
SELECT + 98 * + - COUNT ( * ) col0
----
-98

query I rowsort
SELECT + 15 + - 64 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT DISTINCT - 27 * + COUNT( * ) - + 19 * 72 * + - 42 col0
----
57429

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT - 27 * + COUNT ( * ) - + 19 * 72 * + - 42 col0
----
57429

query II rowsort
SELECT ALL + 54 AS col1, 21
----
54
21

query II rowsort
SELECT - 40 * + 17 + - 96 + - ( - + 43 ) * - + 37 AS col2, - 52 AS col1
----
-2367
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5789
SELECT 64 DIV - SUM( + 10 ) - - + 78
----
72

skipif mysql # not compatible
query I rowsort label-5789
SELECT 64 / - SUM ( + 10 ) - - + 78
----
72

query II rowsort
SELECT ALL + 99 AS col0, + 28 AS col1
----
99
28

query I rowsort
SELECT + 68 * - + 87 AS col1
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT + NULLIF ( - COUNT( * ), + 7 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5792
SELECT + NULLIF ( - COUNT ( * ), + 7 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT COALESCE ( + + 12, - + MIN( ALL + 34 ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5793
SELECT COALESCE ( + + 12, - + MIN ( ALL + 34 ) ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL + MIN( DISTINCT - 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + MIN ( DISTINCT - 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT CASE + 61 WHEN + 31 THEN + - 99 * + MAX( 55 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5795
SELECT CASE + 61 WHEN + 31 THEN + - 99 * + MAX ( 55 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT DISTINCT + SUM( 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT + SUM ( 95 ) AS col1
----
95

query I rowsort
SELECT + 32 * + - 18 AS col1
----
-576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5798
SELECT - 38 + - COALESCE ( - + 30, CAST( + - 35 AS SIGNED ) ) + + MIN( DISTINCT - CAST( 52 AS SIGNED ) ) - - 95 DIV 40 * + 56 * + 72 * 84 AS col1
----
677316

skipif mysql # not compatible
query I rowsort label-5798
SELECT - 38 + - COALESCE ( - + 30, CAST ( + - 35 AS INTEGER ) ) + + MIN ( DISTINCT - CAST ( 52 AS INTEGER ) ) - - 95 / 40 * + 56 * + 72 * 84 AS col1
----
677316

query I rowsort
SELECT DISTINCT - 74 * 52 AS col1
----
-3848

onlyif mysql # DIV for integer division: 
query I rowsort label-5800
SELECT + 84 DIV 1
----
84

skipif mysql # not compatible
query I rowsort label-5800
SELECT + 84 / 1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5801
SELECT ALL COALESCE ( + 85, + 8 * + 67, 62, - + 1 + - COUNT( * ) * - 47 ) * - CASE - 42 WHEN + - 77 * - 48 THEN + - 34 END * + 24 * + 59 + - CAST( 20 AS SIGNED ) + CAST( + 39 AS SIGNED ) + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL COALESCE ( + 85, + 8 * + 67, 62, - + 1 + - COUNT ( * ) * - 47 ) * - CASE - 42 WHEN + - 77 * - 48 THEN + - 34 END * + 24 * + 59 + - CAST ( 20 AS INTEGER ) + CAST ( + 39 AS INTEGER ) + 9
----
NULL

query I rowsort
SELECT DISTINCT - 2 * + - 32 col2
----
64

query II rowsort
SELECT ALL + 30 col1, 80 AS col1
----
30
80

query I rowsort
SELECT ALL + NULLIF ( + - 56, + 70 ) AS col0
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT - 69 * - 88 - + 0 DIV + 52
----
6072

skipif mysql # not compatible
query I rowsort label-5805
SELECT - 69 * - 88 - + 0 / + 52
----
6072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT - + COUNT( * ) + + CAST( NULL AS SIGNED ) / 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) / 84 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5807
SELECT ALL + CAST( + + COALESCE ( 62, - 51 ) AS SIGNED ) * + 33 * + 49 + - 0 - - 96 - 0 AS col2, COUNT( * )
----
100350
1

skipif mysql # not compatible
query II rowsort label-5807
SELECT ALL + CAST ( + + COALESCE ( 62, - 51 ) AS INTEGER ) * + 33 * + 49 + - 0 - - 96 - 0 AS col2, COUNT ( * )
----
100350
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5808
SELECT - 31, + COUNT( * ) DIV - ( 95 ) * 57 + 56 AS col1
----
-31
56

skipif mysql # not compatible
query II rowsort label-5808
SELECT - 31, + COUNT ( * ) / - ( 95 ) * 57 + 56 AS col1
----
-31
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5809
SELECT - - 36 * - CAST( - + 4 AS SIGNED ) + - 30 DIV - 80 + 55
----
199

skipif mysql # not compatible
query I rowsort label-5809
SELECT - - 36 * - CAST ( - + 4 AS INTEGER ) + - 30 / - 80 + 55
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT - 70 - - - ( NULLIF ( 37, + 60 ) ) * + COUNT( * ) * - 73 * - + 77 AS col0
----
-208047

skipif mysql # not compatible
query I rowsort label-5810
SELECT - 70 - - - ( NULLIF ( 37, + 60 ) ) * + COUNT ( * ) * - 73 * - + 77 AS col0
----
-208047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5811
SELECT - CASE + + ( - - ( + 84 ) ) WHEN + COUNT( * ) THEN - 43 * 77 ELSE - + 17 * + 84 / - + 54 END - - - CASE 0 WHEN 5 + - 16 + + - CAST( NULL AS SIGNED ) * + 1 * + - 52 + - 80 THEN + 10 WHEN + - CASE + + COUNT( * ) WHEN - - 43 + + ( + - 52 ) + - + AVG ( DISTINCT - - 55 ) * + SUM( - + 13 ) THEN 58 WHEN 48 * 69 THEN 88 END * 37 THEN CASE CAST( + 25 AS SIGNED ) WHEN + COUNT( * ) * COALESCE ( + CAST( 98 AS SIGNED ), ( 77 ), 6 / 9, + ( - 67 ) - 71 * + 56 ) THEN 7 WHEN ( + 5 ) * - CAST( NULL AS SIGNED ) THEN NULL END ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT - CASE + + ( - - ( + 84 ) ) WHEN + COUNT ( * ) THEN - 43 * 77 ELSE - + 17 * + 84 / - + 54 END - - - CASE 0 WHEN 5 + - 16 + + - CAST ( NULL AS INTEGER ) * + 1 * + - 52 + - 80 THEN + 10 WHEN + - CASE + + COUNT ( * ) WHEN - - 43 + + ( + - 52 ) + - + AVG ( DISTINCT - - 55 ) * + SUM ( - + 13 ) THEN 58 WHEN 48 * 69 THEN 88 END * 37 THEN CASE CAST ( + 25 AS INTEGER ) WHEN + COUNT ( * ) * COALESCE ( + CAST ( 98 AS INTEGER ), ( 77 ), 6 / 9, + ( - 67 ) - 71 * + 56 ) THEN 7 WHEN ( + 5 ) * - CAST ( NULL AS INTEGER ) THEN NULL END ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5812
SELECT - + 84 + - + 56 / + CAST( NULL AS SIGNED ) + - 94 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT - + 84 + - + 56 / + CAST ( NULL AS INTEGER ) + - 94 col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5813
SELECT - - NULLIF ( 96, COUNT( * ) * - ( 49 ) - 53 - 83 + - - 45 ) AS col2, + ( 83 ) + 58 AS col1, - 67 col0
----
96
141
-67

skipif mysql # not compatible
query III rowsort label-5813
SELECT - - NULLIF ( 96, COUNT ( * ) * - ( 49 ) - 53 - 83 + - - 45 ) AS col2, + ( 83 ) + 58 AS col1, - 67 col0
----
96
141
-67

query I rowsort
SELECT ALL + - 19 * - 61
----
1159

query I rowsort
SELECT - - 9 + 46 col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5816
SELECT + - 3 * COUNT( * ) DIV + - 70
----
0

skipif mysql # not compatible
query I rowsort label-5816
SELECT + - 3 * COUNT ( * ) / + - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL + COUNT( DISTINCT - 50 ) * - 39 + ( - 59 )
----
-98

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL + COUNT ( DISTINCT - 50 ) * - 39 + ( - 59 )
----
-98

query I rowsort
SELECT - + ( 62 ) + - 56 AS col0
----
-118

query I rowsort
SELECT + + 28 - - 62 AS col2
----
90

query II rowsort
SELECT ALL 77 AS col0, + 25 AS col2
----
77
25

query II rowsort
SELECT DISTINCT - ( ( - 19 ) ) col2, 33
----
19
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT ALL + MAX( - - 91 ) * - 53 + COUNT( * ) * - 70
----
-4893

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL + MAX ( - - 91 ) * - 53 + COUNT ( * ) * - 70
----
-4893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5823
SELECT ALL COUNT( * ) DIV + SUM( DISTINCT + 83 ) * 77 - + 86 * - 54
----
4644

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL COUNT ( * ) / + SUM ( DISTINCT + 83 ) * 77 - + 86 * - 54
----
4644

query I rowsort
SELECT - 39 * + 87
----
-3393

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT + 44 * + SUM( + 44 ) AS col2
----
1936

skipif mysql # not compatible
query I rowsort label-5825
SELECT + 44 * + SUM ( + 44 ) AS col2
----
1936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5826
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5826
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + 32 + + 78 col2
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5828
SELECT + CAST( 79 AS SIGNED ) AS col1, 98 * 68 AS col0
----
79
6664

skipif mysql # not compatible
query II rowsort label-5828
SELECT + CAST ( 79 AS INTEGER ) AS col1, 98 * 68 AS col0
----
79
6664

query I rowsort
SELECT + 97 + - 30
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL COUNT( * ) * - 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL COUNT ( * ) * - 29 AS col0
----
-29

query I rowsort
SELECT + 8 * - 97 AS col1
----
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + COUNT( * ) * 24 * + 13 * - - CASE + 87 WHEN + - 22 THEN + + COUNT( * ) + - + 68 * - + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5832
SELECT + COUNT ( * ) * 24 * + 13 * - - CASE + 87 WHEN + - 22 THEN + + COUNT ( * ) + - + 68 * - + 11 END
----
NULL

query I rowsort
SELECT ALL 20 * - 32 AS col2
----
-640

query I rowsort
SELECT + 26 - - + 17
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT DISTINCT - 15 * + NULLIF ( - 28, - - ( + 64 ) * - 82 * CASE 58 WHEN - 83 * + 41 - 83 - - 27 * + ( + 8 ) THEN NULL ELSE + 54 END * 32 - COUNT( * ) ) AS col2, + 62 AS col1
----
420
62

skipif mysql # not compatible
query II rowsort label-5835
SELECT DISTINCT - 15 * + NULLIF ( - 28, - - ( + 64 ) * - 82 * CASE 58 WHEN - 83 * + 41 - 83 - - 27 * + ( + 8 ) THEN NULL ELSE + 54 END * 32 - COUNT ( * ) ) AS col2, + 62 AS col1
----
420
62

query II rowsort
SELECT ALL 96 + 39 AS col2, ( + 61 ) * NULLIF ( + - 43, + + 19 ) AS col2
----
135
-2623

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT + 60 * + 85 + 94 + - 26 * 2 * + COUNT( * ) * + 47 - 23 + COUNT( * )
----
2728

skipif mysql # not compatible
query I rowsort label-5837
SELECT + 60 * + 85 + 94 + - 26 * 2 * + COUNT ( * ) * + 47 - 23 + COUNT ( * )
----
2728

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT DISTINCT 25 + + ( - COUNT( * ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT 25 + + ( - COUNT ( * ) ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT 69 + + COUNT( * ) * + 46
----
115

skipif mysql # not compatible
query I rowsort label-5839
SELECT 69 + + COUNT ( * ) * + 46
----
115

query I rowsort
SELECT 40 + + 62 * - 2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT - 3 * + COUNT( * ) + - - 8
----
5

skipif mysql # not compatible
query I rowsort label-5841
SELECT - 3 * + COUNT ( * ) + - - 8
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT - COUNT( * ) + + 26 + + 74 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5842
SELECT - COUNT ( * ) + + 26 + + 74 AS col1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5843
SELECT ALL - 43 DIV - 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL - 43 / - 92 AS col2
----
0

query I rowsort
SELECT ALL - - ( - 91 ) + - 26
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5845
SELECT ALL - CAST( 23 AS SIGNED ) * 24 AS col2
----
-552

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - CAST ( 23 AS INTEGER ) * 24 AS col2
----
-552

query I rowsort
SELECT + ( - 60 ) * - 69 + + - 9 AS col2
----
4131

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL + NULLIF ( + 86, - + COUNT( * ) + - + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + NULLIF ( + 86, - + COUNT ( * ) + - + 86 )
----
86

query I rowsort
SELECT ALL + 18 - 6 * - + 71 AS col1
----
444

query I rowsort
SELECT DISTINCT - + ( 10 ) - 74 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT - MAX( - 45 )
----
45

skipif mysql # not compatible
query I rowsort label-5850
SELECT - MAX ( - 45 )
----
45

query I rowsort
SELECT ALL ( + - 73 )
----
-73

query II rowsort
SELECT ALL + 2 * + 43 col2, 26 * + 73 * - 11 AS col1
----
86
-20878

query I rowsort
SELECT ALL + + 66 * 37 + - ( - + COALESCE ( + + 73, + - 21, + + 77 ) ) AS col0
----
2515

query I rowsort
SELECT + 93 + 94 * 61 AS col0
----
5827

query I rowsort
SELECT 34 + - CASE NULLIF ( + - ( + 8 ), - 98 - - - 22 + 18 ) WHEN 30 THEN - + 97 ELSE - + 3 + 97 END * + 7 * - 20
----
13194

query II rowsort
SELECT 7 AS col1, 66 + + - 64 + + NULLIF ( - + 98, - - 29 ) AS col0
----
7
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5857
SELECT COUNT( * ) DIV 41 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5857
SELECT COUNT ( * ) / 41 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT 15 * + COUNT( * ) * - 81
----
-1215

skipif mysql # not compatible
query I rowsort label-5858
SELECT 15 * + COUNT ( * ) * - 81
----
-1215

query I rowsort
SELECT 18 - ( - 10 ) AS col0
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT 34 DIV + 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5860
SELECT 34 / + 45 AS col2
----
0

query I rowsort
SELECT DISTINCT + 83 * - - 36
----
2988

query I rowsort
SELECT 50 + + 59 AS col0
----
109

query I rowsort
SELECT ALL 73 + 69 + + NULLIF ( 67, + CASE + + 25 WHEN + 61 THEN - 93 ELSE NULL END ) * - NULLIF ( + + 30, - 73 )
----
-1868

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT DISTINCT - 38 + COUNT( * ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT - 38 + COUNT ( * ) AS col2
----
-37

query I rowsort
SELECT DISTINCT 72 + 25
----
97

query I rowsort
SELECT DISTINCT 48 * 42 AS col2
----
2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL + CAST( NULL AS SIGNED ) * - 91 * - 46 * 87 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL + CAST ( NULL AS INTEGER ) * - 91 * - 46 * 87 col0
----
NULL

query I rowsort
SELECT + 38 * 11
----
418

query I rowsort
SELECT ALL 21 - 44 AS col0
----
-23

query II rowsort
SELECT ALL - 7 AS col1, 65 * - + 86 AS col0
----
-7
-5590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5871
SELECT + ( + CAST( + + COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5871
SELECT + ( + CAST ( + + COUNT ( * ) AS INTEGER ) )
----
1

query II rowsort
SELECT - 5 - - - 86 + 75 col2, 48 * - 74 AS col2
----
-16
-3552

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5873
SELECT - COUNT( * ), 24 * COUNT( * ) DIV + 39 col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-5873
SELECT - COUNT ( * ), 24 * COUNT ( * ) / + 39 col0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5874
SELECT - 32 + - CAST( NULL AS SIGNED ) * + 0 * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT - 32 + - CAST ( NULL AS INTEGER ) * + 0 * 27
----
NULL

query I rowsort
SELECT + 41 * - 30
----
-1230

query I rowsort
SELECT + 54 * + 13 AS col0
----
702

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT ALL + 37 DIV + 5
----
7

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL + 37 / + 5
----
7

query I rowsort
SELECT ALL - 15 * 89 + - 52 AS col2
----
-1387

query I rowsort
SELECT 84 * - - 50 AS col1
----
4200

query I rowsort
SELECT - 90 * + 32
----
-2880

onlyif mysql # DIV for integer division: 
query I rowsort label-5881
SELECT 46 + 84 DIV + - 89 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5881
SELECT 46 + 84 / + - 89 AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5882
SELECT 33 + - + NULLIF ( 97, + - ( + 84 ) ) + + COUNT( * ) * CAST( - + CAST( - 60 AS DECIMAL ) AS SIGNED ) DIV - + 8 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5882
SELECT 33 + - + NULLIF ( 97, + - ( + 84 ) ) + + COUNT ( * ) * CAST ( - + CAST ( - 60 AS REAL ) AS INTEGER ) / - + 8 AS col2
----
-71

query II rowsort
SELECT - 17, + 30 AS col0
----
-17
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT ( - CAST( NULL AS SIGNED ) ) + + CAST( NULL AS SIGNED ) - - + ( + 38 ) * 80 * + 69 * + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT ( - CAST ( NULL AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) - - + ( + 38 ) * 80 * + 69 * + - 2
----
NULL

query II rowsort
SELECT ALL 73 AS col1, 21 * 96
----
73
2016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT ( + CAST( + 11 AS SIGNED ) ) * - 14
----
-154

skipif mysql # not compatible
query I rowsort label-5886
SELECT ( + CAST ( + 11 AS INTEGER ) ) * - 14
----
-154

query I rowsort
SELECT 60 * 8 AS col2
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT - NULLIF ( + - COUNT( * ), + - 10 / 49 + - 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5888
SELECT - NULLIF ( + - COUNT ( * ), + - 10 / 49 + - 71 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT ALL - 24 + - 53 DIV - - 94 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - 24 + - 53 / - - 94 AS col0
----
-24

query I rowsort
SELECT ALL + 69 + ( - - 70 ) * - - 73 AS col1
----
5179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5891
SELECT - 82, + MAX( - - CAST( - 49 AS SIGNED ) ) AS col0
----
-82
-49

skipif mysql # not compatible
query II rowsort label-5891
SELECT - 82, + MAX ( - - CAST ( - 49 AS INTEGER ) ) AS col0
----
-82
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5892
SELECT DISTINCT MIN( ALL - 66 ) + - - 0 * CAST( + 61 AS SIGNED ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-5892
SELECT DISTINCT MIN ( ALL - 66 ) + - - 0 * CAST ( + 61 AS INTEGER ) AS col0
----
-66

query I rowsort
SELECT - 61 + + 74 * + 17 * - + 89
----
-112023

onlyif mysql # aggregate syntax: 
query II rowsort label-5894
SELECT ALL NULLIF ( - 23, COUNT( * ) / - 28 ) AS col0, ( 11 ) AS col0
----
-23
11

skipif mysql # not compatible
query II rowsort label-5894
SELECT ALL NULLIF ( - 23, COUNT ( * ) / - 28 ) AS col0, ( 11 ) AS col0
----
-23
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5895
SELECT COALESCE ( 96, - 99 DIV + 66 + - 15 )
----
96

skipif mysql # not compatible
query I rowsort label-5895
SELECT COALESCE ( 96, - 99 / + 66 + - 15 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT DISTINCT + 52 * + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT + 52 * + COUNT ( * ) AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5897
SELECT ALL + COUNT( * ), 91 DIV + 42 AS col0
----
1
2

skipif mysql # not compatible
query II rowsort label-5897
SELECT ALL + COUNT ( * ), 91 / + 42 AS col0
----
1
2

query I rowsort
SELECT COALESCE ( ( - 68 ), 41 - - 23 ) AS col1
----
-68

query I rowsort
SELECT ALL - 34 * + - 1 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT - 19 + + - COUNT( * ) * - 48 - + NULLIF ( - - MIN( + - 29 ), + 33 / - 25 + COUNT( * ) ) + - ( + + 58 ) + + 52 + COUNT( * ) col2
----
53

skipif mysql # not compatible
query I rowsort label-5900
SELECT - 19 + + - COUNT ( * ) * - 48 - + NULLIF ( - - MIN ( + - 29 ), + 33 / - 25 + COUNT ( * ) ) + - ( + + 58 ) + + 52 + COUNT ( * ) col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT COALESCE ( - 13, 55 * - - COUNT( * ) - 77, + 98 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5901
SELECT COALESCE ( - 13, 55 * - - COUNT ( * ) - 77, + 98 ) AS col1
----
-13

query I rowsort
SELECT - NULLIF ( + - 51, - - 38 + + 44 ) + - COALESCE ( 35, 1 * - - 20 ) * 31 AS col0
----
-1034

query II rowsort
SELECT - 72 * + - 21, - NULLIF ( - 42, + 22 ) - - + 28 * ( - 93 ) * + - 60 + - - 4 * - 97 AS col2
----
1512
155894

query I rowsort
SELECT ALL - 35 * + + 20 * 78 * - 11
----
600600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - + 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT 71 * - SUM( + 33 ) + - ( + COUNT( * ) ) * + + ( + ( - 8 ) ) * - 81 + + 24 + - - MAX( - 97 ) AS col2
----
-3064

skipif mysql # not compatible
query I rowsort label-5906
SELECT 71 * - SUM ( + 33 ) + - ( + COUNT ( * ) ) * + + ( + ( - 8 ) ) * - 81 + + 24 + - - MAX ( - 97 ) AS col2
----
-3064

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT + + ( + COUNT( ALL - 26 ) ) + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5907
SELECT + + ( + COUNT ( ALL - 26 ) ) + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT DISTINCT 51 * + - 71 col1
----
-3621

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT + 39 + SUM( DISTINCT 71 ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-5909
SELECT + 39 + SUM ( DISTINCT 71 ) AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL 35 * - 22 * - + COUNT( * )
----
770

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL 35 * - 22 * - + COUNT ( * )
----
770

query I rowsort
SELECT ALL 62 + COALESCE ( + + 69, - - 2 + 37 )
----
131

query I rowsort
SELECT + - 20 * + 54 AS col0
----
-1080

query I rowsort
SELECT + - 14 + 57 AS col2
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-5914
SELECT + 33 DIV 90, 5 AS col2
----
0
5

skipif mysql # not compatible
query II rowsort label-5914
SELECT + 33 / 90, 5 AS col2
----
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5915
SELECT DISTINCT 45 + + ( + ( + 15 ) ) - + COUNT( * ) * - 75 DIV + + 41
----
61

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT 45 + + ( + ( + 15 ) ) - + COUNT ( * ) * - 75 / + + 41
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL 80 + + COUNT( * ) * 6
----
86

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL 80 + + COUNT ( * ) * 6
----
86

query I rowsort
SELECT DISTINCT 9 + - 94
----
-85

query I rowsort
SELECT DISTINCT 96 + + 36 + + + 39 * + 83
----
3369

query I rowsort
SELECT + 2 - - - 96 * + + ( 14 ) + - 54 AS col0
----
-1396

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT MAX( ALL - ( 57 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT MAX ( ALL - ( 57 ) )
----
-57

query I rowsort
SELECT ALL + 93 - - 25 AS col0
----
118

query II rowsort
SELECT ALL 2 * - 60 AS col0, 64
----
-120
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5923
SELECT CAST( - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-5923
SELECT CAST ( - 10 AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT ALL - COUNT( * ) * 63 * 10 * + 67 AS col2
----
-42210

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL - COUNT ( * ) * 63 * 10 * + 67 AS col2
----
-42210

query I rowsort
SELECT - - 36 * + 22 * - 83 * - 36 AS col0
----
2366496

query I rowsort
SELECT ALL - 31 * - 79 * - 34
----
-83266

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT - NULLIF ( - MAX( DISTINCT - 68 ), 77 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5927
SELECT - NULLIF ( - MAX ( DISTINCT - 68 ), 77 ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5928
SELECT CAST( - - COUNT( * ) AS SIGNED ) AS col0, ( ( + - 68 ) ) DIV + - COUNT( ALL 40 ) + - 32 DIV COUNT( * )
----
1
36

skipif mysql # not compatible
query II rowsort label-5928
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) AS col0, ( ( + - 68 ) ) / + - COUNT ( ALL 40 ) + - 32 / COUNT ( * )
----
1
36

onlyif mysql # aggregate syntax: 
query II rowsort label-5929
SELECT DISTINCT - - COUNT( * ) * - 18 * + - 39 + + 75 + - + 12 AS col2, + 92 AS col0
----
765
92

skipif mysql # not compatible
query II rowsort label-5929
SELECT DISTINCT - - COUNT ( * ) * - 18 * + - 39 + + 75 + - + 12 AS col2, + 92 AS col0
----
765
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT - - 76 * - COUNT( * ) + - - ( - - 54 ) + 34
----
12

skipif mysql # not compatible
query I rowsort label-5930
SELECT - - 76 * - COUNT ( * ) + - - ( - - 54 ) + 34
----
12

query I rowsort
SELECT DISTINCT - 37 * + 81
----
-2997

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT ALL + 99 DIV - + 70 + + - 68 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL + 99 / - + 70 + + - 68 AS col1
----
-69

query I rowsort
SELECT - - 24 + + 53 AS col2
----
77

query I rowsort
SELECT - + 49 + 7 AS col1
----
-42

query II rowsort
SELECT - ( - + ( + + 46 ) ) AS col2, + 17 AS col2
----
46
17

query I rowsort
SELECT - - 74 + - 65
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5937
SELECT - 70, MAX( DISTINCT + 21 ) DIV - + ( - - COUNT( * ) ) AS col2
----
-70
-21

skipif mysql # not compatible
query II rowsort label-5937
SELECT - 70, MAX ( DISTINCT + 21 ) / - + ( - - COUNT ( * ) ) AS col2
----
-70
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5938
SELECT ALL 72, - CAST( - - 19 AS SIGNED ) * + 36 AS col2
----
72
-684

skipif mysql # not compatible
query II rowsort label-5938
SELECT ALL 72, - CAST ( - - 19 AS INTEGER ) * + 36 AS col2
----
72
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT 53 + 47 + 66 * + NULLIF ( + COUNT( * ), - 78 ) + + 2 + 31
----
199

skipif mysql # not compatible
query I rowsort label-5939
SELECT 53 + 47 + 66 * + NULLIF ( + COUNT ( * ), - 78 ) + + 2 + 31
----
199

query I rowsort
SELECT ALL - ( - 61 ) * - 61 col1
----
-3721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5941
SELECT CASE 25 WHEN 82 THEN - 0 ELSE NULL END + - COUNT( * ) + - 52 * 29 * - CAST( + 6 AS SIGNED ) / 22 * 21 + 19 + - MAX( + CAST( NULL AS DECIMAL ) ) * + ( + 53 ) / - + COALESCE ( 94, 81 * + 20 * + MIN( + 15 ) / ( 87 ) + 22 + - + 28 + + 81 + - 91 * + 68 * - + 45 ) + + - 96 + CAST( + MAX( 96 ) AS SIGNED ) * - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT CASE 25 WHEN 82 THEN - 0 ELSE NULL END + - COUNT ( * ) + - 52 * 29 * - CAST ( + 6 AS INTEGER ) / 22 * 21 + 19 + - MAX ( + CAST ( NULL AS REAL ) ) * + ( + 53 ) / - + COALESCE ( 94, 81 * + 20 * + MIN ( + 15 ) / ( 87 ) + 22 + - + 28 + + 81 + - 91 * + 68 * - + 45 ) + + - 96 + CAST ( + MAX ( 96 ) AS INTEGER ) * - 34 AS col2
----
NULL

query II rowsort
SELECT 66 AS col1, 80 * - 28
----
66
-2240

onlyif mysql # aggregate syntax: 
query II rowsort label-5943
SELECT ALL 83, + COUNT( * ) AS col2
----
83
1

skipif mysql # not compatible
query II rowsort label-5943
SELECT ALL 83, + COUNT ( * ) AS col2
----
83
1

query I rowsort
SELECT 43 + + ( - 10 ) AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5945
SELECT CAST( 44 AS SIGNED ) - - CASE - 46 WHEN - - 77 THEN NULL WHEN 54 THEN 76 ELSE + + 44 + - 16 + + COUNT( * ) + 51 - 10 * + 54 DIV - COUNT( - 19 ) END AS col1
----
664

skipif mysql # not compatible
query I rowsort label-5945
SELECT CAST ( 44 AS INTEGER ) - - CASE - 46 WHEN - - 77 THEN NULL WHEN 54 THEN 76 ELSE + + 44 + - 16 + + COUNT ( * ) + 51 - 10 * + 54 / - COUNT ( - 19 ) END AS col1
----
664

query II rowsort
SELECT - 94 AS col0, 90 + COALESCE ( 81, - 15 )
----
-94
171

query I rowsort
SELECT DISTINCT 25 * + - 67 AS col1
----
-1675

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT DISTINCT COUNT( * ) * - COALESCE ( COUNT( * ), - + 22 * 75 * 41 * NULLIF ( - + COUNT( * ), - - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT COUNT ( * ) * - COALESCE ( COUNT ( * ), - + 22 * 75 * 41 * NULLIF ( - + COUNT ( * ), - - COUNT ( * ) ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5949
SELECT ALL 54 DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL 54 / 57
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5950
SELECT CASE + COUNT( + - 47 ) WHEN 6 THEN - CASE + 57 WHEN - 30 * + 17 THEN NULL ELSE 47 / - - 80 END WHEN - - 58 THEN 92 * - + COUNT( * ) * + 87 END * + 60 * CASE + ( + 14 ) WHEN - COUNT( * ) THEN - 85 WHEN + + 94 - + + 86 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END - - 13 + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT CASE + COUNT ( + - 47 ) WHEN 6 THEN - CASE + 57 WHEN - 30 * + 17 THEN NULL ELSE 47 / - - 80 END WHEN - - 58 THEN 92 * - + COUNT ( * ) * + 87 END * + 60 * CASE + ( + 14 ) WHEN - COUNT ( * ) THEN - 85 WHEN + + 94 - + + 86 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END - - 13 + - 31
----
NULL

query I rowsort
SELECT 68 * 83
----
5644

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT 29 * COUNT( * ) + - COUNT( * ) - - + 25 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-5952
SELECT 29 * COUNT ( * ) + - COUNT ( * ) - - + 25 AS col0
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5953
SELECT SUM( ALL - + 2 ) DIV COUNT( * ) DIV + + 87 + - + 40
----
-40

skipif mysql # not compatible
query I rowsort label-5953
SELECT SUM ( ALL - + 2 ) / COUNT ( * ) / + + 87 + - + 40
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5954
SELECT NULLIF ( + CASE + 76 WHEN - 1 THEN - 81 WHEN - 51 / - 41 THEN - ( + 57 ) ELSE - NULLIF ( + + CAST( 30 AS DECIMAL ), 79 + SUM( ALL - 96 ) + - 64 ) END, 77 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT NULLIF ( + CASE + 76 WHEN - 1 THEN - 81 WHEN - 51 / - 41 THEN - ( + 57 ) ELSE - NULLIF ( + + CAST ( 30 AS REAL ), 79 + SUM ( ALL - 96 ) + - 64 ) END, 77 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT + + 4 DIV 22 + - - 56 + + + 25
----
81

skipif mysql # not compatible
query I rowsort label-5955
SELECT + + 4 / 22 + - - 56 + + + 25
----
81

query I rowsort
SELECT - 84 + - + 76 AS col1
----
-160

query I rowsort
SELECT DISTINCT - + COALESCE ( 81, + - 19 - + 72, + ( - + 98 ) ) AS col2
----
-81

query I rowsort
SELECT ALL - - 33 + - 19 + 98 * - 69 AS col0
----
-6748

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT + 24 * + COUNT( * ) + 0 + - CASE + - ( 88 ) WHEN + - COUNT( * ) THEN - 30 + NULLIF ( - COUNT( * ), + NULLIF ( - ( - COUNT( DISTINCT 99 ) ), - + ( + - 54 ) ) * + 6 ) WHEN 58 + + 71 THEN 85 END * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT + 24 * + COUNT ( * ) + 0 + - CASE + - ( 88 ) WHEN + - COUNT ( * ) THEN - 30 + NULLIF ( - COUNT ( * ), + NULLIF ( - ( - COUNT ( DISTINCT 99 ) ), - + ( + - 54 ) ) * + 6 ) WHEN 58 + + 71 THEN 85 END * 50
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5960
SELECT ALL - COALESCE ( + COUNT( * ), ( 17 ), 87 DIV + - 88 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5960
SELECT ALL - COALESCE ( + COUNT ( * ), ( 17 ), 87 / + - 88 ) AS col0
----
-1

query II rowsort
SELECT + 41 AS col0, - 40 * - 31 + - - 35
----
41
1275

query I rowsort
SELECT ALL + 58 + - - 75
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT 39 * + SUM( DISTINCT - 51 ) * 80 + - 53
----
-159173

skipif mysql # not compatible
query I rowsort label-5963
SELECT 39 * + SUM ( DISTINCT - 51 ) * 80 + - 53
----
-159173

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT - NULLIF ( + 8, COUNT( - 78 ) / - ( - AVG ( 67 ) ) ) * ( - - 36 ) + + 17 + 18
----
-253

skipif mysql # not compatible
query I rowsort label-5964
SELECT - NULLIF ( + 8, COUNT ( - 78 ) / - ( - AVG ( 67 ) ) ) * ( - - 36 ) + + 17 + 18
----
-253

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT DISTINCT 2 + + - 97 + - MIN( - 92 ) * 37 * 74 AS col2, + 93
----
251801
93

skipif mysql # not compatible
query II rowsort label-5965
SELECT DISTINCT 2 + + - 97 + - MIN ( - 92 ) * 37 * 74 AS col2, + 93
----
251801
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT ALL + 10 + + 55 + - COUNT( DISTINCT + + 55 ) + - 28 + - 60
----
-24

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL + 10 + + 55 + - COUNT ( DISTINCT + + 55 ) + - 28 + - 60
----
-24

query I rowsort
SELECT 63 + + - 3 AS col1
----
60

query I rowsort
SELECT ALL + 11 - + - CASE WHEN NOT + ( 16 ) IN ( 72 ) THEN 86 END * + 64
----
5515

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT 43 / CASE + 32 WHEN + 4 * + + 98 THEN + ( - ( - 57 ) ) - + MAX( 89 ) * 12 + - 92 + - - 37 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT 43 / CASE + 32 WHEN + 4 * + + 98 THEN + ( - ( - 57 ) ) - + MAX ( 89 ) * 12 + - 92 + - - 37 END AS col2
----
NULL

query II rowsort
SELECT 49 + - 56 + - 27 + 60 AS col2, CASE - 25 WHEN - 92 THEN NULL WHEN - 79 * - 81 THEN + 47 * + 87 END AS col2
----
26
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT DISTINCT + 93 - + + COALESCE ( + + 78, 84 + + CAST( + 74 AS SIGNED ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5971
SELECT DISTINCT + 93 - + + COALESCE ( + + 78, 84 + + CAST ( + 74 AS INTEGER ) ) AS col1
----
15

query I rowsort
SELECT DISTINCT + 94 - 65
----
29

query I rowsort
SELECT ALL 84 * 68 AS col0
----
5712

query I rowsort
SELECT 84 + + 62 * - 94
----
-5744

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT DISTINCT 2 - - COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT 2 - - COUNT ( * ) col1
----
3

query I rowsort
SELECT 68 * - ( 66 ) * + - 49 - - 50 AS col1
----
219962

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT COUNT( * ) * CASE - 88 WHEN - ( 91 ) / 74 THEN 53 - - COUNT( * ) WHEN + 80 / + COALESCE ( + 76, - - ( + - 54 ) ) / - 21 + + + CASE 66 WHEN + + 53 - - - 30 THEN + NULLIF ( - 52, + 90 - + 1 ) ELSE NULL END THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT COUNT ( * ) * CASE - 88 WHEN - ( 91 ) / 74 THEN 53 - - COUNT ( * ) WHEN + 80 / + COALESCE ( + 76, - - ( + - 54 ) ) / - 21 + + + CASE 66 WHEN + + 53 - - - 30 THEN + NULLIF ( - 52, + 90 - + 1 ) ELSE NULL END THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 77 - - ( - 70 ) AS col1
----
7

query I rowsort
SELECT 19 + + - 76 AS col0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5980
SELECT COUNT( * ) * - - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5980
SELECT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ( - + NULLIF ( - + NULLIF ( - 72, 64 ), - 57 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL + 21 * COUNT( * ) * - 66 + - 42
----
-1428

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL + 21 * COUNT ( * ) * - 66 + - 42
----
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT + ( - - MAX( DISTINCT + 41 ) ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5983
SELECT + ( - - MAX ( DISTINCT + 41 ) ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT 28 * 19 + - + COUNT( * ) AS col0
----
531

skipif mysql # not compatible
query I rowsort label-5984
SELECT 28 * 19 + - + COUNT ( * ) AS col0
----
531

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT 44 * MAX( + 65 ) * + 66 + + COUNT( * )
----
188761

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT 44 * MAX ( + 65 ) * + 66 + + COUNT ( * )
----
188761

query I rowsort
SELECT DISTINCT - - 66 * + 52 + - 81
----
3351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5987
SELECT + MAX( DISTINCT - + 48 ) DIV - 23 + - COALESCE ( 98, + 30 ) - - 71 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-5987
SELECT + MAX ( DISTINCT - + 48 ) / - 23 + - COALESCE ( 98, + 30 ) - - 71 AS col2
----
-25

query I rowsort
SELECT 7 * + + 95 * 58 * + 51 AS col0
----
1967070

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT - COUNT( * ) * + SUM( - 7 ) + COALESCE ( + + 44, - 29, + 55 ) + 61 col0
----
112

skipif mysql # not compatible
query I rowsort label-5989
SELECT - COUNT ( * ) * + SUM ( - 7 ) + COALESCE ( + + 44, - 29, + 55 ) + 61 col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL - 96 * - COUNT( * ) - + 4 + - 19
----
73

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - 96 * - COUNT ( * ) - + 4 + - 19
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5991
SELECT ALL 13 * + 13 + 46 * - ( - CASE + CAST( NULL AS SIGNED ) WHEN + MAX( DISTINCT + + 63 ) THEN NULL ELSE - - 91 END ) AS col1
----
4355

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL 13 * + 13 + 46 * - ( - CASE + CAST ( NULL AS INTEGER ) WHEN + MAX ( DISTINCT + + 63 ) THEN NULL ELSE - - 91 END ) AS col1
----
4355

query I rowsort
SELECT ALL - 36 * + + 83 AS col2
----
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT + MAX( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5993
SELECT + MAX ( + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT - 23 * + 7 + - COUNT( * ) AS col1
----
-162

skipif mysql # not compatible
query I rowsort label-5994
SELECT - 23 * + 7 + - COUNT ( * ) AS col1
----
-162

query I rowsort
SELECT + 27 + - 59
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5996
SELECT ALL + 7 * + - NULLIF ( + CAST( - 39 AS SIGNED ), + MAX( - 44 ) + - 44 * COUNT( + 57 ) * COALESCE ( - - CASE CASE - 23 WHEN COUNT( * ) + COUNT( * ) + 91 * NULLIF ( - 76, + 71 ) THEN NULL WHEN + 71 THEN + 26 + - - COUNT( * ) END WHEN - - AVG ( ALL + 34 ) THEN MIN( ALL 70 ) WHEN 65 THEN 64 * 49 * + + 89 WHEN - SUM( + 78 ) THEN NULL ELSE CAST( COALESCE ( COUNT( * ), 57 + 91 / 48 ) AS DECIMAL ) * 34 + + 91 * - 37 END, - 47 / 0 ) )
----
273

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL + 7 * + - NULLIF ( + CAST ( - 39 AS INTEGER ), + MAX ( - 44 ) + - 44 * COUNT ( + 57 ) * COALESCE ( - - CASE CASE - 23 WHEN COUNT ( * ) + COUNT ( * ) + 91 * NULLIF ( - 76, + 71 ) THEN NULL WHEN + 71 THEN + 26 + - - COUNT ( * ) END WHEN - - AVG ( ALL + 34 ) THEN MIN ( ALL 70 ) WHEN 65 THEN 64 * 49 * + + 89 WHEN - SUM ( + 78 ) THEN NULL ELSE CAST ( COALESCE ( COUNT ( * ), 57 + 91 / 48 ) AS REAL ) * 34 + + 91 * - 37 END, - 47 / 0 ) )
----
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5997
SELECT + COALESCE ( 44, 85 + - + 69 + - - 9 + + - 69 * 21 * 17, + 64 + + COUNT( * ) ) * - - 50 + ( 36 ) AS col2, 68 DIV + - 96 AS col0
----
2236
0

skipif mysql # not compatible
query II rowsort label-5997
SELECT + COALESCE ( 44, 85 + - + 69 + - - 9 + + - 69 * 21 * 17, + 64 + + COUNT ( * ) ) * - - 50 + ( 36 ) AS col2, 68 / + - 96 AS col0
----
2236
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5998
SELECT ALL CASE - 90 WHEN - - 32 + CAST( NULL AS SIGNED ) THEN - 41 WHEN - - 22 * + - 69 * MIN( ALL - - 33 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL CASE - 90 WHEN - - 32 + CAST ( NULL AS INTEGER ) THEN - 41 WHEN - - 22 * + - 69 * MIN ( ALL - - 33 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT + COUNT( DISTINCT - 80 ) * - COUNT( * ) + 77 + + - 67
----
9

skipif mysql # not compatible
query I rowsort label-5999
SELECT + COUNT ( DISTINCT - 80 ) * - COUNT ( * ) + 77 + + - 67
----
9

query I rowsort
SELECT ALL 79 * - 99
----
-7821

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL COALESCE ( - COUNT( * ), - ( - 82 ) + + 31 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL COALESCE ( - COUNT ( * ), - ( - 82 ) + + 31 ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6002
SELECT - 43 DIV COUNT( * ) DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-6002
SELECT - 43 / COUNT ( * ) / 83
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6003
SELECT 6 AS col2, + 91 * - + COUNT( * )
----
6
-91

skipif mysql # not compatible
query II rowsort label-6003
SELECT 6 AS col2, + 91 * - + COUNT ( * )
----
6
-91

query I rowsort
SELECT - 95 - 24 * 55
----
-1415

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT + MAX( ALL 24 ) + + 56 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT + MAX ( ALL 24 ) + + 56 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT ALL + 18 + + + CAST( NULL AS SIGNED ) - + + 39 * - + ( 79 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL + 18 + + + CAST ( NULL AS INTEGER ) - + + 39 * - + ( 79 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6007
SELECT - - CAST( NULL AS SIGNED ) col2, 98
----
NULL
98

skipif mysql # not compatible
query II rowsort label-6007
SELECT - - CAST ( NULL AS INTEGER ) col2, 98
----
NULL
98

query I rowsort
SELECT ALL + 52 + - 65 AS col1
----
-13

query I rowsort
SELECT - 76 - 39
----
-115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6010
SELECT DISTINCT + NULLIF ( - - 32, + - MIN( + 3 ) ) + - - 66 DIV 88
----
32

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT + NULLIF ( - - 32, + - MIN ( + 3 ) ) + - - 66 / 88
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL - COALESCE ( - 13, + 33 * + + 76 + + NULLIF ( - - NULLIF ( - 17, COUNT( * ) * 66 + - - 7 * - + 25 + - - 73 ), - COUNT( * ) ) ) col0
----
13

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL - COALESCE ( - 13, + 33 * + + 76 + + NULLIF ( - - NULLIF ( - 17, COUNT ( * ) * 66 + - - 7 * - + 25 + - - 73 ), - COUNT ( * ) ) ) col0
----
13

query I rowsort
SELECT DISTINCT + 19 + - + 0 AS col1
----
19

query II rowsort
SELECT DISTINCT 25 AS col0, 78 AS col1
----
25
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6014
SELECT ALL + ( + + 89 ) + - 71 DIV 10
----
82

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL + ( + + 89 ) + - 71 / 10
----
82

query I rowsort
SELECT - + 86 + + 49
----
-37

query II rowsort
SELECT 33 AS col0, NULLIF ( + 11, + 25 ) AS col2
----
33
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6017
SELECT COUNT( * ) DIV + 39 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6017
SELECT COUNT ( * ) / + 39 + COUNT ( * )
----
1

query I rowsort
SELECT + - 6 - + 12
----
-18

query II rowsort
SELECT DISTINCT + 63 AS col1, + 93 - + + 90 + - 44 + + 18
----
63
-23

query II rowsort
SELECT - + 36 + + 72 * 50, + 44 AS col0
----
3564
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6021
SELECT - 65 * + COUNT( * ) + + + 66 AS col1, - ( - + 38 ) + + 60 * - + NULLIF ( 55, - + COUNT( * ) )
----
1
-3262

skipif mysql # not compatible
query II rowsort label-6021
SELECT - 65 * + COUNT ( * ) + + + 66 AS col1, - ( - + 38 ) + + 60 * - + NULLIF ( 55, - + COUNT ( * ) )
----
1
-3262

query II rowsort
SELECT ALL + + 79, + 92 AS col2
----
79
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6023
SELECT + - CAST( - 24 AS SIGNED ) * - ( 12 ) + + + 31 - 83
----
-340

skipif mysql # not compatible
query I rowsort label-6023
SELECT + - CAST ( - 24 AS INTEGER ) * - ( 12 ) + + + 31 - 83
----
-340

query II rowsort
SELECT ALL + 78 col1, + 46 col0
----
78
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT + COUNT( * ) + + ( + NULLIF ( - 39, + + 44 ) ) + + 73 * 80 + - MIN( 18 ) AS col1
----
5784

skipif mysql # not compatible
query I rowsort label-6025
SELECT + COUNT ( * ) + + ( + NULLIF ( - 39, + + 44 ) ) + + 73 * 80 + - MIN ( 18 ) AS col1
----
5784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT ALL CAST( NULL AS SIGNED ) / - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL CAST ( NULL AS INTEGER ) / - 84
----
NULL

query I rowsort
SELECT + - 4 * + + 54
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT + MIN( 31 )
----
31

skipif mysql # not compatible
query I rowsort label-6028
SELECT + MIN ( 31 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6029
SELECT + COALESCE ( + + NULLIF ( COALESCE ( - 67, ( + 85 ) + - 15 + - 8 + + ( MAX( + - 99 ) ) + - - CAST( 58 AS DECIMAL ) * + + 47, 86 ), 20 ), + - COUNT( * ) + + 82 ) + 17 / CASE 96 WHEN + COUNT( * ) THEN NULL WHEN - 19 / + - 4 + 73 + - 92 * + 5 + - 30 + + 12 / - COUNT( * ) * + ( 25 ) * - 67 + - - 47 THEN + 57 + + - 97 - - 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT + COALESCE ( + + NULLIF ( COALESCE ( - 67, ( + 85 ) + - 15 + - 8 + + ( MAX ( + - 99 ) ) + - - CAST ( 58 AS REAL ) * + + 47, 86 ), 20 ), + - COUNT ( * ) + + 82 ) + 17 / CASE 96 WHEN + COUNT ( * ) THEN NULL WHEN - 19 / + - 4 + 73 + - 92 * + 5 + - 30 + + 12 / - COUNT ( * ) * + ( 25 ) * - 67 + - - 47 THEN + 57 + + - 97 - - 48 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 39 * 43, 82 AS col2
----
1677
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT CASE + 91 WHEN - 64 * - + ( ( - - 94 ) ) - - - COUNT( * ) THEN 10 WHEN - 56 THEN - 72 + + ( - + 81 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT CASE + 91 WHEN - 64 * - + ( ( - - 94 ) ) - - - COUNT ( * ) THEN 10 WHEN - 56 THEN - 72 + + ( - + 81 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT 11 * - - 16 * + MIN( ALL + + 34 ) * + COUNT( * ) + + ( + - COUNT( * ) ) + - 70
----
5913

skipif mysql # not compatible
query I rowsort label-6032
SELECT 11 * - - 16 * + MIN ( ALL + + 34 ) * + COUNT ( * ) + + ( + - COUNT ( * ) ) + - 70
----
5913

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6033
SELECT ALL + CAST( NULL AS DECIMAL ) * + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL + CAST ( NULL AS REAL ) * + 10 AS col0
----
NULL

query II rowsort
SELECT ALL + 43 AS col1, 21 AS col2
----
43
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6035
SELECT + CAST( COALESCE ( - ( + + NULLIF ( 45, - + 99 + - - 86 ) ), - COUNT( * ) + - 33 ) AS SIGNED ) * 57 AS col1
----
-2565

skipif mysql # not compatible
query I rowsort label-6035
SELECT + CAST ( COALESCE ( - ( + + NULLIF ( 45, - + 99 + - - 86 ) ), - COUNT ( * ) + - 33 ) AS INTEGER ) * 57 AS col1
----
-2565

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT MIN( ALL 53 )
----
53

skipif mysql # not compatible
query I rowsort label-6036
SELECT MIN ( ALL 53 )
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-6037
SELECT - 53, 87 + COUNT( * ) AS col0
----
-53
88

skipif mysql # not compatible
query II rowsort label-6037
SELECT - 53, 87 + COUNT ( * ) AS col0
----
-53
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT - CAST( + 9 AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-6038
SELECT - CAST ( + 9 AS INTEGER ) AS col2
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6039
SELECT DISTINCT + 4 + 95 + + + NULLIF ( CAST( NULL AS DECIMAL ), + 62 * + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT + 4 + 95 + + + NULLIF ( CAST ( NULL AS REAL ), + 62 * + 27 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6040
SELECT DISTINCT 8, - COUNT( * ) AS col2
----
8
-1

skipif mysql # not compatible
query II rowsort label-6040
SELECT DISTINCT 8, - COUNT ( * ) AS col2
----
8
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6041
SELECT DISTINCT - MIN( + CAST( - + 84 AS SIGNED ) ) + SUM( DISTINCT + + ( ( - - 60 ) ) )
----
144

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT - MIN ( + CAST ( - + 84 AS INTEGER ) ) + SUM ( DISTINCT + + ( ( - - 60 ) ) )
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-6042
SELECT - CASE - 40 WHEN - 31 THEN 35 DIV - + 35 ELSE 10 END * - + 88 + - 12
----
868

skipif mysql # not compatible
query I rowsort label-6042
SELECT - CASE - 40 WHEN - 31 THEN 35 / - + 35 ELSE 10 END * - + 88 + - 12
----
868

onlyif mysql # aggregate syntax: 
query II rowsort label-6043
SELECT ALL 75 AS col0, 49 + + 87 + + 19 - - COUNT( * ) + COUNT( * )
----
75
157

skipif mysql # not compatible
query II rowsort label-6043
SELECT ALL 75 AS col0, 49 + + 87 + + 19 - - COUNT ( * ) + COUNT ( * )
----
75
157

query I rowsort
SELECT - + 26 + + + 59 col2
----
33

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6045
SELECT ALL + CASE CAST( NULL AS DECIMAL ) WHEN CAST( NULL AS SIGNED ) THEN - + 60 END + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL + CASE CAST ( NULL AS REAL ) WHEN CAST ( NULL AS INTEGER ) THEN - + 60 END + 81 AS col0
----
NULL

query II rowsort
SELECT + + 40 * 82, - 2 AS col1
----
3280
-2

query I rowsort
SELECT + + 82 - + - 62 * - 39 + + 35
----
-2301

onlyif mysql # DIV for integer division: 
query I rowsort label-6048
SELECT - + 76 * 78 DIV - 75
----
79

skipif mysql # not compatible
query I rowsort label-6048
SELECT - + 76 * 78 / - 75
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT ALL - - ( - 87 ) DIV + 48
----
-1

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - - ( - 87 ) / + 48
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6050
SELECT - - ( NULLIF ( 53, - MIN( ALL + NULLIF ( 71, + ( + 5 ) ) ) + - - 48 + + MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + 21 + + 22 ) )
----
53

skipif mysql # not compatible
query I rowsort label-6050
SELECT - - ( NULLIF ( 53, - MIN ( ALL + NULLIF ( 71, + ( + 5 ) ) ) + - - 48 + + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 21 + + 22 ) )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL + - 21 - + MIN( ALL 52 ) + - 96 - + CAST( NULL AS SIGNED ) - - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + - 21 - + MIN ( ALL 52 ) + - 96 - + CAST ( NULL AS INTEGER ) - - 38
----
NULL

query I rowsort
SELECT DISTINCT + 47 - + 7 * + - 89
----
670

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6053
SELECT ALL - - CASE + CAST( NULL AS SIGNED ) WHEN + 7 + COUNT( * ) + + - SUM( - 24 ) / 5 + - 30 THEN 15 WHEN - + MIN( ALL - 4 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL - - CASE + CAST ( NULL AS INTEGER ) WHEN + 7 + COUNT ( * ) + + - SUM ( - 24 ) / 5 + - 30 THEN 15 WHEN - + MIN ( ALL - 4 ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT DISTINCT - + CAST( - 78 AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT - + CAST ( - 78 AS INTEGER ) AS col1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT - + 96 DIV + + 38 - 15 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6055
SELECT - + 96 / + + 38 - 15 AS col2
----
-17

query I rowsort
SELECT - 60 * + + 71
----
-4260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6057
SELECT 83 DIV COUNT( * ), + 97 * + - 90 col0
----
83
-8730

skipif mysql # not compatible
query II rowsort label-6057
SELECT 83 / COUNT ( * ), + 97 * + - 90 col0
----
83
-8730

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT DISTINCT - NULLIF ( - 79, - COUNT( * ) * + COUNT( * ) + COUNT( * ) ) AS col0, - MIN( DISTINCT - 34 )
----
79
34

skipif mysql # not compatible
query II rowsort label-6058
SELECT DISTINCT - NULLIF ( - 79, - COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) ) AS col0, - MIN ( DISTINCT - 34 )
----
79
34

query I rowsort
SELECT DISTINCT - ( + + 40 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-6060
SELECT ALL + 17 + COUNT( * ) AS col2, + 30
----
18
30

skipif mysql # not compatible
query II rowsort label-6060
SELECT ALL + 17 + COUNT ( * ) AS col2, + 30
----
18
30

onlyif mysql # aggregate syntax: 
query II rowsort label-6061
SELECT + MAX( DISTINCT - 63 ) * - 41 + - COUNT( * ) + - + COUNT( * ), 84 AS col1
----
2581
84

skipif mysql # not compatible
query II rowsort label-6061
SELECT + MAX ( DISTINCT - 63 ) * - 41 + - COUNT ( * ) + - + COUNT ( * ), 84 AS col1
----
2581
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT 7 DIV + ( - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-6062
SELECT 7 / + ( - 11 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT 77 + + ( - 39 ) + - + 68 * COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6063
SELECT 77 + + ( - 39 ) + - + 68 * COUNT ( * ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT CASE + - 90 WHEN + COUNT( * ) / 28 THEN - + MIN( 35 ) ELSE 75 * - - 62 + 14 * - 38 END + 11 AS col2
----
4129

skipif mysql # not compatible
query I rowsort label-6064
SELECT CASE + - 90 WHEN + COUNT ( * ) / 28 THEN - + MIN ( 35 ) ELSE 75 * - - 62 + 14 * - 38 END + 11 AS col2
----
4129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT CAST( NULL AS SIGNED ) - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6065
SELECT CAST ( NULL AS INTEGER ) - 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6066
SELECT + ( + 48 ) * - + 98 + + 59 + 13 DIV - 15 + 70 * + + 7 * - COUNT( * ) + + + 75 DIV 63 + + 34 + - + 6 + - 2 * + 12 + COUNT( * ) AS col0
----
-5129

skipif mysql # not compatible
query I rowsort label-6066
SELECT + ( + 48 ) * - + 98 + + 59 + 13 / - 15 + 70 * + + 7 * - COUNT ( * ) + + + 75 / 63 + + 34 + - + 6 + - 2 * + 12 + COUNT ( * ) AS col0
----
-5129

query I rowsort
SELECT 12 + + 26
----
38

query I rowsort
SELECT 19 * - ( - + 9 )
----
171

query I rowsort
SELECT DISTINCT 83 + 66 * 90
----
6023

query I rowsort
SELECT ALL + 91 + - 96 AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6071
SELECT ( + - 64 ) * + 21 - - + 39 DIV + + COUNT( * ) col2
----
-1305

skipif mysql # not compatible
query I rowsort label-6071
SELECT ( + - 64 ) * + 21 - - + 39 / + + COUNT ( * ) col2
----
-1305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT - CAST( + + 72 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-6072
SELECT - CAST ( + + 72 AS INTEGER ) AS col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT 13 + + 24 + + 42 DIV - 65 * - + 88 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-6073
SELECT 13 + + 24 + + 42 / - 65 * - + 88 AS col1
----
37

query I rowsort
SELECT DISTINCT + 42 * + 66
----
2772

query I rowsort
SELECT - 12 + + 46 + 24
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT ALL - CAST( NULL AS SIGNED ) * 36 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - CAST ( NULL AS INTEGER ) * 36 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT DISTINCT + 98 DIV - + COALESCE ( - 15, 81 - + + 79 * - 40, - 95 DIV 93 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT + 98 / - + COALESCE ( - 15, 81 - + + 79 * - 40, - 95 / 93 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL + MAX( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL + MAX ( 63 )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-6079
SELECT 82 - + - 4, COUNT( * ) AS col2
----
86
1

skipif mysql # not compatible
query II rowsort label-6079
SELECT 82 - + - 4, COUNT ( * ) AS col2
----
86
1

query I rowsort
SELECT - 78 * - + 43
----
3354

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL + COUNT( * ) * - 59 col0
----
-59

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + COUNT ( * ) * - 59 col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6082
SELECT 62 + - + 39, COUNT( * ) AS col0
----
23
1

skipif mysql # not compatible
query II rowsort label-6082
SELECT 62 + - + 39, COUNT ( * ) AS col0
----
23
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6083
SELECT + COUNT( * ) / MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT + COUNT ( * ) / MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT NULLIF ( + 38, MAX( 49 ) ) * + + 49 AS col1, - ( 57 )
----
1862
-57

skipif mysql # not compatible
query II rowsort label-6084
SELECT NULLIF ( + 38, MAX ( 49 ) ) * + + 49 AS col1, - ( 57 )
----
1862
-57

query I rowsort
SELECT - 67 + 30
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-6086
SELECT COUNT( * ) * 0 - - COALESCE ( + MIN( 15 ), + COUNT( * ), 3 * - 64 ) + 0 * - 44 col1, 66 AS col0
----
15
66

skipif mysql # not compatible
query II rowsort label-6086
SELECT COUNT ( * ) * 0 - - COALESCE ( + MIN ( 15 ), + COUNT ( * ), 3 * - 64 ) + 0 * - 44 col1, 66 AS col0
----
15
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT - NULLIF ( MIN( + - ( - - 81 ) ), - 86 * NULLIF ( 90, + - 50 + + + 10 - + COUNT( * ) + - COUNT( * ) + + - 43 ) / + 5 - + 67 - - 31 / - 25 )
----
81

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT - NULLIF ( MIN ( + - ( - - 81 ) ), - 86 * NULLIF ( 90, + - 50 + + + 10 - + COUNT ( * ) + - COUNT ( * ) + + - 43 ) / + 5 - + 67 - - 31 / - 25 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6088
SELECT ALL - COALESCE ( CAST( NULL AS SIGNED ), + 1 ) AS col0, - ( + - 39 ) AS col0
----
-1
39

skipif mysql # not compatible
query II rowsort label-6088
SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), + 1 ) AS col0, - ( + - 39 ) AS col0
----
-1
39

query II rowsort
SELECT ALL - 7 AS col1, 64
----
-7
64

query I rowsort
SELECT ALL + 21 + - 22 - + 5 + - ( 20 ) * - 67 * 26
----
34834

query I rowsort
SELECT 97 + + ( - 89 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT DISTINCT - 76 * COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT - 76 * COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-6093
SELECT DISTINCT - 76 * - - ( - 5 ) AS col1, + 77 * + ( - 65 ) * 9 + + MIN( DISTINCT - 32 ) + - + 89
----
380
-45166

skipif mysql # not compatible
query II rowsort label-6093
SELECT DISTINCT - 76 * - - ( - 5 ) AS col1, + 77 * + ( - 65 ) * 9 + + MIN ( DISTINCT - 32 ) + - + 89
----
380
-45166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6094
SELECT ALL + CASE + CAST( - 39 AS SIGNED ) WHEN + + 99 - - COUNT( * ) THEN - - COUNT( DISTINCT + - 85 ) END + - 64 * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL + CASE + CAST ( - 39 AS INTEGER ) WHEN + + 99 - - COUNT ( * ) THEN - - COUNT ( DISTINCT + - 85 ) END + - 64 * 63 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6095
SELECT 30 AS col1, COUNT( * )
----
30
1

skipif mysql # not compatible
query II rowsort label-6095
SELECT 30 AS col1, COUNT ( * )
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL - 59 + + 51 * COUNT( * ) + + COUNT( + 84 )
----
-7

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL - 59 + + 51 * COUNT ( * ) + + COUNT ( + 84 )
----
-7

query I rowsort
SELECT 12 * + + 27
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL 30 + - - COUNT( * ) + + 32 * 64 + COUNT( * ) * + 9 * - - 27
----
2322

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL 30 + - - COUNT ( * ) + + 32 * 64 + COUNT ( * ) * + 9 * - - 27
----
2322

query I rowsort
SELECT ALL - 86 + + - ( 62 ) * 68 AS col2
----
-4302

query I rowsort
SELECT DISTINCT 57 * + - 58 AS col2
----
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT NULLIF ( + COUNT( * ), + 76 * - 67 + - - 54 + 64 * 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6101
SELECT NULLIF ( + COUNT ( * ), + 76 * - 67 + - - 54 + 64 * 43 ) AS col2
----
1

query I rowsort
SELECT DISTINCT ( - + 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL + - 50 * - COUNT( * ) * - NULLIF ( + 52, - SUM( ALL - 93 ) * 77 / + COUNT( DISTINCT + - 19 ) ) + - COUNT( * ) * - - 8
----
-2608

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + - 50 * - COUNT ( * ) * - NULLIF ( + 52, - SUM ( ALL - 93 ) * 77 / + COUNT ( DISTINCT + - 19 ) ) + - COUNT ( * ) * - - 8
----
-2608

query I rowsort
SELECT + - 74 * + + ( - 3 ) - - 13
----
235

onlyif mysql # aggregate syntax: 
query II rowsort label-6105
SELECT - 72 col2, + COUNT( * ) * - ( + COUNT( * ) )
----
-72
-1

skipif mysql # not compatible
query II rowsort label-6105
SELECT - 72 col2, + COUNT ( * ) * - ( + COUNT ( * ) )
----
-72
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6106
SELECT ALL + CAST( SUM( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL + CAST ( SUM ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT - - 13 * + ( 58 )
----
754

query I rowsort
SELECT + 85 * + 4 * + 73 * - 82
----
-2035240

query II rowsort
SELECT 1 AS col1, + 53 AS col2
----
1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT + - 17 + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-6110
SELECT + - 17 + COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-6111
SELECT + 51 * + 39 + + COUNT( * ) * + 57 col1, 70
----
2046
70

skipif mysql # not compatible
query II rowsort label-6111
SELECT + 51 * + 39 + + COUNT ( * ) * + 57 col1, 70
----
2046
70

query I rowsort
SELECT + + 42 + - 45 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL - 36 * + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL - 36 * + - COUNT ( * )
----
36

query I rowsort
SELECT ALL - 67 + 7 AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6115
SELECT + + 98 DIV 77 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6115
SELECT + + 98 / 77 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6116
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), - 45 * + 30, - - 91 ) AS col0
----
-1350

skipif mysql # not compatible
query I rowsort label-6116
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), - 45 * + 30, - - 91 ) AS col0
----
-1350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT ALL - CAST( + 21 AS SIGNED ) * + - 94 + 35 + 24
----
2033

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - CAST ( + 21 AS INTEGER ) * + - 94 + 35 + 24
----
2033

query I rowsort
SELECT DISTINCT - 69 * - + 80 + + + 16
----
5536

query II rowsort
SELECT ALL 15 * + 18 AS col0, 15 AS col0
----
270
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT - ( - 77 ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-6120
SELECT - ( - 77 ) / - 89
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6121
SELECT + 31 DIV + ( + 28 ) - - + 79 AS col0, + 14
----
80
14

skipif mysql # not compatible
query II rowsort label-6121
SELECT + 31 / + ( + 28 ) - - + 79 AS col0, + 14
----
80
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6122
SELECT ( 89 ) col0, + CAST( - 81 AS SIGNED ) col2
----
89
-81

skipif mysql # not compatible
query II rowsort label-6122
SELECT ( 89 ) col0, + CAST ( - 81 AS INTEGER ) col2
----
89
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT COALESCE ( COALESCE ( + COUNT( * ), + - 98 + + 82 ), 48, - COUNT( DISTINCT 48 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6123
SELECT COALESCE ( COALESCE ( + COUNT ( * ), + - 98 + + 82 ), 48, - COUNT ( DISTINCT 48 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6124
SELECT + CAST( - 98 AS SIGNED ) DIV + COUNT( * ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6124
SELECT + CAST ( - 98 AS INTEGER ) / + COUNT ( * ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT - 96 * + + SUM( - 69 ) * + 55
----
364320

skipif mysql # not compatible
query I rowsort label-6125
SELECT - 96 * + + SUM ( - 69 ) * + 55
----
364320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6126
SELECT ALL ( + MAX( ALL ( + + 32 ) ) ) * - 55 + 76 + - CAST( - 74 AS SIGNED ) * + 90 AS col2
----
4976

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL ( + MAX ( ALL ( + + 32 ) ) ) * - 55 + 76 + - CAST ( - 74 AS INTEGER ) * + 90 AS col2
----
4976

onlyif mysql # aggregate syntax: 
query II rowsort label-6127
SELECT 55 * 54 * 63 + - 45, COUNT( * ) AS col0
----
187065
1

skipif mysql # not compatible
query II rowsort label-6127
SELECT 55 * 54 * 63 + - 45, COUNT ( * ) AS col0
----
187065
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6128
SELECT ALL + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2, ( + - COALESCE ( - + ( 14 ), + - 67, + 41, + 7 ) )
----
NULL
14

skipif mysql # not compatible
query II rowsort label-6128
SELECT ALL + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2, ( + - COALESCE ( - + ( 14 ), + - 67, + 41, + 7 ) )
----
NULL
14

query I rowsort
SELECT - 1 + + 67 * 16 - + + 51 - 94 + - 31
----
895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT - 11 + - 76 + + + CAST( - 92 AS SIGNED ) * + 11 + 72 AS col2
----
-1027

skipif mysql # not compatible
query I rowsort label-6130
SELECT - 11 + - 76 + + + CAST ( - 92 AS INTEGER ) * + 11 + 72 AS col2
----
-1027

query I rowsort
SELECT DISTINCT 85 * 38
----
3230

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT - + COUNT( * ) * - 12 * + 79 AS col0
----
948

skipif mysql # not compatible
query I rowsort label-6132
SELECT - + COUNT ( * ) * - 12 * + 79 AS col0
----
948

query I rowsort
SELECT DISTINCT NULLIF ( + 73, - 63 ) AS col1
----
73

query I rowsort
SELECT - - 28 + 89 + 91 col1
----
208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6135
SELECT - 69 * + COUNT( * ) * - CAST( + 5 AS SIGNED )
----
345

skipif mysql # not compatible
query I rowsort label-6135
SELECT - 69 * + COUNT ( * ) * - CAST ( + 5 AS INTEGER )
----
345

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6136
SELECT - + 51 + - - 2 + + - COUNT( * ) - - + 61 DIV 94 * 69 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6136
SELECT - + 51 + - - 2 + + - COUNT ( * ) - - + 61 / 94 * 69 AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6137
SELECT + - 71 * CASE 25 WHEN + CAST( - 80 AS SIGNED ) * + 92 THEN NULL ELSE + - 1 * - - 92 DIV + + COUNT( * ) END
----
6532

skipif mysql # not compatible
query I rowsort label-6137
SELECT + - 71 * CASE 25 WHEN + CAST ( - 80 AS INTEGER ) * + 92 THEN NULL ELSE + - 1 * - - 92 / + + COUNT ( * ) END
----
6532

query I rowsort
SELECT DISTINCT - 38 + + - 49
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-6139
SELECT - + SUM( 85 ) AS col1, - 41 * + 41
----
-85
-1681

skipif mysql # not compatible
query II rowsort label-6139
SELECT - + SUM ( 85 ) AS col1, - 41 * + 41
----
-85
-1681

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT ALL COUNT( * ) + - - 49 col2
----
50

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL COUNT ( * ) + - - 49 col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT + 85 + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-6141
SELECT + 85 + COUNT ( * ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6142
SELECT DISTINCT 65, + COUNT( ALL ( 98 ) ) AS col2
----
65
1

skipif mysql # not compatible
query II rowsort label-6142
SELECT DISTINCT 65, + COUNT ( ALL ( 98 ) ) AS col2
----
65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT - SUM( ALL + ( - 12 ) )
----
12

skipif mysql # not compatible
query I rowsort label-6143
SELECT - SUM ( ALL + ( - 12 ) )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6144
SELECT - CAST( - CAST( + MIN( 44 ) AS SIGNED ) AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6144
SELECT - CAST ( - CAST ( + MIN ( 44 ) AS INTEGER ) AS INTEGER ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT ALL COUNT( * ) + 46 - + ( 74 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL COUNT ( * ) + 46 - + ( 74 ) AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6146
SELECT - 77 * + - CAST( - + 85 AS SIGNED ) - 23 AS col0
----
-6568

skipif mysql # not compatible
query I rowsort label-6146
SELECT - 77 * + - CAST ( - + 85 AS INTEGER ) - 23 AS col0
----
-6568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6147
SELECT DISTINCT 58 DIV + 48 + - COUNT( * ) + - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT 58 / + 48 + - COUNT ( * ) + - + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6148
SELECT DISTINCT ( CAST( - 79 AS SIGNED ) ) * + COUNT( * ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT ( CAST ( - 79 AS INTEGER ) ) * + COUNT ( * ) AS col1
----
-79

query I rowsort
SELECT + ( + 57 ) AS col0
----
57

query I rowsort
SELECT 41 * - 81 AS col1
----
-3321

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6151
SELECT + CASE 26 WHEN + 13 THEN NULL ELSE + 92 * 99 - - 36 + - + COALESCE ( - - 89, - 77 * 8 - - + COUNT( * ) DIV + COALESCE ( + CAST( 20 AS SIGNED ), + 88, ( - COUNT( * ) ) ) + + CAST( NULL AS SIGNED ) ) + + 91 END * 12 + - 68 + 8 * 65 AS col0
----
110204

skipif mysql # not compatible
query I rowsort label-6151
SELECT + CASE 26 WHEN + 13 THEN NULL ELSE + 92 * 99 - - 36 + - + COALESCE ( - - 89, - 77 * 8 - - + COUNT ( * ) / + COALESCE ( + CAST ( 20 AS INTEGER ), + 88, ( - COUNT ( * ) ) ) + + CAST ( NULL AS INTEGER ) ) + + 91 END * 12 + - 68 + 8 * 65 AS col0
----
110204

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL - COUNT( - - 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - COUNT ( - - 86 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6153
SELECT DISTINCT - + 25 DIV - 96 + - 47 + + COUNT( * ) DIV - COUNT( * ) + - 19 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT - + 25 / - 96 + - 47 + + COUNT ( * ) / - COUNT ( * ) + - 19 AS col1
----
-67

query I rowsort
SELECT 26 * 8
----
208

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT 57 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-6155
SELECT 57 / 91
----
0

query I rowsort
SELECT ALL - - 75 * - + 60
----
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT DISTINCT + 30 * + COUNT( * ) + - 22 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT + 30 * + COUNT ( * ) + - 22 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT ALL MAX( - + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL MAX ( - + 19 )
----
-19

query I rowsort
SELECT + 97 - 36 AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6160
SELECT 26 * + CAST( - 28 AS SIGNED ) AS col0, - 86
----
-728
-86

skipif mysql # not compatible
query II rowsort label-6160
SELECT 26 * + CAST ( - 28 AS INTEGER ) AS col0, - 86
----
-728
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6161
SELECT - 24 * 17 - - 67 - ( + + 19 ) DIV COUNT( * ) + - - 47 * + 63 * + COUNT( * ) + + MIN( + + 73 )
----
2674

skipif mysql # not compatible
query I rowsort label-6161
SELECT - 24 * 17 - - 67 - ( + + 19 ) / COUNT ( * ) + - - 47 * + 63 * + COUNT ( * ) + + MIN ( + + 73 )
----
2674

query I rowsort
SELECT + CASE WHEN NOT + 46 IN ( 54, - 21 + 76, 88 + + 86 ) THEN 60 ELSE NULL END
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL + 67 + 75 + COUNT( * )
----
143

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL + 67 + 75 + COUNT ( * )
----
143

query I rowsort
SELECT DISTINCT + + 78 * 91 * 31 AS col1
----
220038

query I rowsort
SELECT - 56 + + 16 * + 11 + + 16 + - 99 + - 34
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT DISTINCT + 34 + - 88 + 95 + - + COUNT( ALL - 77 ) * 87 * - 71
----
6218

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT + 34 + - 88 + 95 + - + COUNT ( ALL - 77 ) * 87 * - 71
----
6218

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT DISTINCT + + 66 + - + MIN( ALL 75 )
----
-9

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT + + 66 + - + MIN ( ALL 75 )
----
-9

query I rowsort
SELECT 44 - 4
----
40

query III rowsort
SELECT 9 AS col1, 96, - 54 AS col1
----
9
96
-54

query I rowsort
SELECT 71 * + 63
----
4473

onlyif mysql # DIV for integer division: 
query I rowsort label-6171
SELECT 78 DIV 43
----
1

skipif mysql # not compatible
query I rowsort label-6171
SELECT 78 / 43
----
1

query II rowsort
SELECT 13 + 16 AS col0, - 10 AS col0
----
29
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT DISTINCT - 17 * 96 DIV + 9 AS col1
----
-181

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT - 17 * 96 / + 9 AS col1
----
-181

query II rowsort
SELECT - 70 AS col2, 61 AS col2
----
-70
61

onlyif mysql # aggregate syntax: 
query II rowsort label-6175
SELECT ALL - COUNT( DISTINCT + - 6 ) * - + 34 * - - 53, 26 AS col0
----
1802
26

skipif mysql # not compatible
query II rowsort label-6175
SELECT ALL - COUNT ( DISTINCT + - 6 ) * - + 34 * - - 53, 26 AS col0
----
1802
26

query II rowsort
SELECT 33, 99 * + 94 AS col1
----
33
9306

query I rowsort
SELECT ALL - 26 * 24
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT DISTINCT + 72 - - + COUNT( * ) - + 68 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + 72 - - + COUNT ( * ) - + 68 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT DISTINCT - COUNT( * ) * - + 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT - COUNT ( * ) * - + 2 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6180
SELECT COUNT( * ) * + 87 DIV + 92 * - COALESCE ( COUNT( * ), - CASE - - 83 WHEN 6 THEN 47 END * + COUNT( * ) DIV 16 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6180
SELECT COUNT ( * ) * + 87 / + 92 * - COALESCE ( COUNT ( * ), - CASE - - 83 WHEN 6 THEN 47 END * + COUNT ( * ) / 16 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT ALL + SUM( ALL - 87 ) - 38
----
-125

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL + SUM ( ALL - 87 ) - 38
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL - MAX( + 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - MAX ( + 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT + COALESCE ( 96, - NULLIF ( - 34, - COUNT( * ) ) ) * - 74
----
-7104

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT + COALESCE ( 96, - NULLIF ( - 34, - COUNT ( * ) ) ) * - 74
----
-7104

query II rowsort
SELECT 27 AS col0, 65 AS col0
----
27
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6185
SELECT COUNT( * ) - - 18 AS col2, + 84
----
19
84

skipif mysql # not compatible
query II rowsort label-6185
SELECT COUNT ( * ) - - 18 AS col2, + 84
----
19
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT ( + COUNT( * ) ) * 31 * + - 63 AS col2
----
-1953

skipif mysql # not compatible
query I rowsort label-6186
SELECT ( + COUNT ( * ) ) * 31 * + - 63 AS col2
----
-1953

query I rowsort
SELECT 12 - + 3
----
9

query I rowsort
SELECT DISTINCT 7 * + 50
----
350

query I rowsort
SELECT ALL - ( + + 0 )
----
0

query II rowsort
SELECT 72 - - 9 AS col2, 84
----
81
84

onlyif mysql # DIV for integer division: 
query II rowsort label-6191
SELECT DISTINCT - 31 AS col0, 71 DIV + 19 + + 70 - 21 * 99 * - 52 AS col2
----
-31
108181

skipif mysql # not compatible
query II rowsort label-6191
SELECT DISTINCT - 31 AS col0, 71 / + 19 + + 70 - 21 * 99 * - 52 AS col2
----
-31
108181

query I rowsort
SELECT - NULLIF ( 64, + 91 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT DISTINCT COUNT( * ) + + 62 * 25 AS col2
----
1551

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT COUNT ( * ) + + 62 * 25 AS col2
----
1551

query I rowsort
SELECT ALL + 32 + + 98 * + 54
----
5324

query I rowsort
SELECT - 4 * - 5 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6196
SELECT ALL ( - NULLIF ( CAST( 54 AS SIGNED ), 26 ) ) + 99 + + 73 + + 3 + + 96 - - COUNT( * ) * - COALESCE ( - 80, - + 30, + + COALESCE ( - 56, - + 51 ) ) col2, + 12
----
297
12

skipif mysql # not compatible
query II rowsort label-6196
SELECT ALL ( - NULLIF ( CAST ( 54 AS INTEGER ), 26 ) ) + 99 + + 73 + + 3 + + 96 - - COUNT ( * ) * - COALESCE ( - 80, - + 30, + + COALESCE ( - 56, - + 51 ) ) col2, + 12
----
297
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6197
SELECT - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6197
SELECT - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6198
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + - 50 + + CAST( NULL AS SIGNED ) / - 90 * - 42 + 68 * + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + - 50 + + CAST ( NULL AS INTEGER ) / - 90 * - 42 + 68 * + 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6199
SELECT DISTINCT - NULLIF ( + + 41, - CAST( - 87 AS SIGNED ) ) + + - ( NULLIF ( 67, - 85 ) ) AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT - NULLIF ( + + 41, - CAST ( - 87 AS INTEGER ) ) + + - ( NULLIF ( 67, - 85 ) ) AS col1
----
-108

query I rowsort
SELECT - ( - 5 ) + + 28
----
33

query I rowsort
SELECT 31 + + + 1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT + NULLIF ( + 95, + MIN( + 8 ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-6202
SELECT + NULLIF ( + 95, + MIN ( + 8 ) ) AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT ALL - NULLIF ( ( - 16 ), 50 * + - CASE 98 WHEN - 62 THEN - MIN( 37 ) + MAX( DISTINCT CAST( NULL AS SIGNED ) ) ELSE NULL END ) * - 64 - - 43
----
-981

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - NULLIF ( ( - 16 ), 50 * + - CASE 98 WHEN - 62 THEN - MIN ( 37 ) + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ELSE NULL END ) * - 64 - - 43
----
-981

onlyif mysql # DIV for integer division: 
query I rowsort label-6204
SELECT 87 + - 9 DIV 9 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-6204
SELECT 87 + - 9 / 9 AS col1
----
86

query I rowsort
SELECT ALL 56 - + 1 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL SUM( DISTINCT + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL SUM ( DISTINCT + 62 )
----
62

onlyif mysql # aggregate syntax: 
query III rowsort label-6207
SELECT 3 - + 92, 29 AS col2, 44 + - MAX( DISTINCT + 43 ) AS col2
----
-89
29
1

skipif mysql # not compatible
query III rowsort label-6207
SELECT 3 - + 92, 29 AS col2, 44 + - MAX ( DISTINCT + 43 ) AS col2
----
-89
29
1

query I rowsort
SELECT ALL 50 * 45
----
2250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6209
SELECT 13 + + 11 + + + 53 * + COUNT( * ) * - 27 * 9 DIV + COUNT( * ) * + COUNT( * ) AS col2
----
-12855

skipif mysql # not compatible
query I rowsort label-6209
SELECT 13 + + 11 + + + 53 * + COUNT ( * ) * - 27 * 9 / + COUNT ( * ) * + COUNT ( * ) AS col2
----
-12855

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6210
SELECT DISTINCT - ( + + COUNT( * ) ) DIV - + 29 AS col0, - 33 + + 69
----
0
36

skipif mysql # not compatible
query II rowsort label-6210
SELECT DISTINCT - ( + + COUNT ( * ) ) / - + 29 AS col0, - 33 + + 69
----
0
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT CAST( - 21 AS SIGNED ) + 14
----
-7

skipif mysql # not compatible
query I rowsort label-6211
SELECT CAST ( - 21 AS INTEGER ) + 14
----
-7

query I rowsort
SELECT - 14 * - 62 * - - ( - 35 ) col1
----
-30380

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6213
SELECT ALL - 95 DIV 16 AS col1, 87 - + ( 55 ) - - 35 DIV - - COUNT( * ) * + COUNT( * ) AS col2
----
-5
67

skipif mysql # not compatible
query II rowsort label-6213
SELECT ALL - 95 / 16 AS col1, 87 - + ( 55 ) - - 35 / - - COUNT ( * ) * + COUNT ( * ) AS col2
----
-5
67

query I rowsort
SELECT - 25 + - 63
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT - 31 DIV 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT - 31 / 93 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6216
SELECT - 18 / - CAST( NULL AS SIGNED ) + - - 89 / - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT - 18 / - CAST ( NULL AS INTEGER ) + - - 89 / - 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT - 31 * NULLIF ( + + 81, + + 16 * + + 51 + + 21 ) - + 85 + - COUNT( * ) AS col2
----
-2597

skipif mysql # not compatible
query I rowsort label-6217
SELECT - 31 * NULLIF ( + + 81, + + 16 * + + 51 + + 21 ) - + 85 + - COUNT ( * ) AS col2
----
-2597

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6218
SELECT ALL + CAST( - - 31 AS SIGNED ), 52 AS col2
----
31
52

skipif mysql # not compatible
query II rowsort label-6218
SELECT ALL + CAST ( - - 31 AS INTEGER ), 52 AS col2
----
31
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT - 78 + - + 77 + + COUNT( * ) * + 62 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6219
SELECT - 78 + - + 77 + + COUNT ( * ) * + 62 AS col0
----
-93

query II rowsort
SELECT ALL - CASE + + ( 59 ) WHEN + 95 THEN - - 46 ELSE NULL END / - ( - 19 ) * + 80, 4 * 64 AS col1
----
NULL
256

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT DISTINCT + CASE + - ( - 20 ) WHEN MIN( ALL + 17 ) THEN + 70 WHEN COUNT( * ) / 73 / - + 1 + + + ( - - 2 ) + SUM( ALL 95 ) THEN - 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT + CASE + - ( - 20 ) WHEN MIN ( ALL + 17 ) THEN + 70 WHEN COUNT ( * ) / 73 / - + 1 + + + ( - - 2 ) + SUM ( ALL 95 ) THEN - 75 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 96 * - 24
----
2304

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT - 30 DIV 8 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6223
SELECT - 30 / 8 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6224
SELECT ALL - 6 * - + NULLIF ( + 48, + ( - 31 ) ) AS col2, + COUNT( * ) AS col1
----
288
1

skipif mysql # not compatible
query II rowsort label-6224
SELECT ALL - 6 * - + NULLIF ( + 48, + ( - 31 ) ) AS col2, + COUNT ( * ) AS col1
----
288
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT DISTINCT + + COUNT( * ) * + 34 * + 17 + CASE - 36 WHEN + 2 THEN COUNT( * ) * - 59 + + 61 WHEN - 85 THEN COUNT( - 75 ) * + 84 * + + 44 * - NULLIF ( + COUNT( * ), + 31 * 29 + - 3 + - + 87 ) - + 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT DISTINCT + + COUNT ( * ) * + 34 * + 17 + CASE - 36 WHEN + 2 THEN COUNT ( * ) * - 59 + + 61 WHEN - 85 THEN COUNT ( - 75 ) * + 84 * + + 44 * - NULLIF ( + COUNT ( * ), + 31 * 29 + - 3 + - + 87 ) - + 96 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6226
SELECT - CASE - ( - 94 ) WHEN - + 58 THEN NULL ELSE - CAST( - + 65 AS SIGNED ) + - 51 END * - + 68 AS col0
----
952

skipif mysql # not compatible
query I rowsort label-6226
SELECT - CASE - ( - 94 ) WHEN - + 58 THEN NULL ELSE - CAST ( - + 65 AS INTEGER ) + - 51 END * - + 68 AS col0
----
952

query I rowsort
SELECT DISTINCT - 78 * + 4 + ( + ( - + ( + + 4 ) ) ) + 28 + + + ( + 44 ) AS col1
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT ALL + - COUNT( * ) * - 47 + + - ( + + 39 ) - + 60 + - 60
----
-112

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL + - COUNT ( * ) * - 47 + + - ( + + 39 ) - + 60 + - 60
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6229
SELECT ALL 53 * - NULLIF ( 43, 74 * + 2 * + 64 - - 30 ) + 49 + 67 / - 50 + + 36 - - + ( + CASE 59 WHEN 98 - 72 THEN + 5 WHEN + ( + - 47 ) THEN NULL END ) * + + CASE + 30 WHEN + - CAST( NULL AS SIGNED ) THEN 92 * + CASE - COUNT( * ) WHEN - 47 THEN - 68 WHEN + - 54 THEN NULL END * - - 68 + - - 46 / + ( COUNT( * ) ) * 20 + + + 88 * + + 14 * - 63 END - + COUNT( * ) + + 50 * + ( 44 ) + + + ( - 63 ) + + 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL 53 * - NULLIF ( 43, 74 * + 2 * + 64 - - 30 ) + 49 + 67 / - 50 + + 36 - - + ( + CASE 59 WHEN 98 - 72 THEN + 5 WHEN + ( + - 47 ) THEN NULL END ) * + + CASE + 30 WHEN + - CAST ( NULL AS INTEGER ) THEN 92 * + CASE - COUNT ( * ) WHEN - 47 THEN - 68 WHEN + - 54 THEN NULL END * - - 68 + - - 46 / + ( COUNT ( * ) ) * 20 + + + 88 * + + 14 * - 63 END - + COUNT ( * ) + + 50 * + ( 44 ) + + + ( - 63 ) + + 63 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 76 * - + 40
----
-3040

query I rowsort
SELECT ALL 61 * - 27 * 7 + + 43
----
-11486

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT - 82 * + COUNT( * ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-6232
SELECT - 82 * + COUNT ( * ) col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT + - 99 * COUNT( * ) * - ( - 61 ) - - 9 * + - 36 AS col1
----
-6363

skipif mysql # not compatible
query I rowsort label-6233
SELECT + - 99 * COUNT ( * ) * - ( - 61 ) - - 9 * + - 36 AS col1
----
-6363

query I rowsort
SELECT + 79 * + NULLIF ( - 89, + - 72 + 26 ) + 57 + - - 12 AS col0
----
-6962

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6235
SELECT ALL + - CAST( NULL AS SIGNED ) * - 42 AS col2, ( - 45 ) col0
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-6235
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 42 AS col2, ( - 45 ) col0
----
NULL
-45

query I rowsort
SELECT ALL 56 - + 4
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6237
SELECT + 44 DIV 78 * - 90 * 90 col0, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-6237
SELECT + 44 / 78 * - 90 * 90 col0, + COUNT ( * )
----
0
1

query II rowsort
SELECT ALL 67, + 58 AS col0
----
67
58

query I rowsort
SELECT ALL - 0 * - - 5 * - ( - 53 ) col1
----
0

query I rowsort
SELECT DISTINCT 79 * ( ( + + 78 ) ) * NULLIF ( + 11, - 30 + - - 7 ) col0
----
67782

query I rowsort
SELECT - 90 * 24 * + 37
----
-79920

query I rowsort
SELECT - 8 + + 19
----
11

query II rowsort
SELECT - 87 AS col0, 9 AS col1
----
-87
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT - ( - CASE - 75 WHEN 3 * + 78 * + - 35 + 20 - + COUNT( * ) + + 12 / - 85 THEN 85 WHEN ( + + 13 ) + + - MIN( + - 12 ) THEN - 54 ELSE + - 21 END ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6244
SELECT - ( - CASE - 75 WHEN 3 * + 78 * + - 35 + 20 - + COUNT ( * ) + + 12 / - 85 THEN 85 WHEN ( + + 13 ) + + - MIN ( + - 12 ) THEN - 54 ELSE + - 21 END ) AS col0
----
-21

query I rowsort
SELECT DISTINCT 43 * 52
----
2236

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT ALL NULLIF ( 21, 23 / - MAX( ALL + 48 ) )
----
21

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL NULLIF ( 21, 23 / - MAX ( ALL + 48 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL SUM( - - 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL SUM ( - - 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6248
SELECT DISTINCT + COUNT( * ) DIV - 19 * - 22 + 50 AS col1, 81 AS col1
----
50
81

skipif mysql # not compatible
query II rowsort label-6248
SELECT DISTINCT + COUNT ( * ) / - 19 * - 22 + 50 AS col1, 81 AS col1
----
50
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6249
SELECT ALL 95 DIV - 29 + + 33 * - 13 DIV + COUNT( * ) AS col0
----
-432

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL 95 / - 29 + + 33 * - 13 / + COUNT ( * ) AS col0
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT - COUNT( * ) * 15 * NULLIF ( + - 13, + 75 * 29 )
----
195

skipif mysql # not compatible
query I rowsort label-6250
SELECT - COUNT ( * ) * 15 * NULLIF ( + - 13, + 75 * 29 )
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6251
SELECT - 32 DIV 53 * - 86 DIV + 31 - + MAX( DISTINCT - 0 ) * - 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6251
SELECT - 32 / 53 * - 86 / + 31 - + MAX ( DISTINCT - 0 ) * - 66 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6252
SELECT CAST( NULL AS SIGNED ), + 14 AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-6252
SELECT CAST ( NULL AS INTEGER ), + 14 AS col2
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT + ( 82 ) - + COUNT( * ) * - 79 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-6253
SELECT + ( 82 ) - + COUNT ( * ) * - 79 AS col1
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT ALL + + CAST( - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL + + CAST ( - 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT + 18 * + - ( COUNT( * ) ) DIV - 65 + 74 col2
----
74

skipif mysql # not compatible
query I rowsort label-6255
SELECT + 18 * + - ( COUNT ( * ) ) / - 65 + 74 col2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6256
SELECT - COUNT( * ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6256
SELECT - COUNT ( * ), - COUNT ( * )
----
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6257
SELECT ALL + - 97 * + MAX( ALL 37 ), - 38 * + 20 * + COUNT( * ) AS col0
----
-3589
-760

skipif mysql # not compatible
query II rowsort label-6257
SELECT ALL + - 97 * + MAX ( ALL 37 ), - 38 * + 20 * + COUNT ( * ) AS col0
----
-3589
-760

query I rowsort
SELECT DISTINCT 72 * - - 97 * - - 98 + - 1 * - - 13 AS col1
----
684419

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT + ( - 15 ) * - 70 + - COALESCE ( + + 22, - COUNT( * ) * - 59 + + ( - + 88 ) + - + 34 + + 92 * - 94, - 14 * 19 ) AS col1
----
1028

skipif mysql # not compatible
query I rowsort label-6259
SELECT + ( - 15 ) * - 70 + - COALESCE ( + + 22, - COUNT ( * ) * - 59 + + ( - + 88 ) + - + 34 + + 92 * - 94, - 14 * 19 ) AS col1
----
1028

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT + - 74 * - MAX( 53 ) + + ( 54 ) / - + 51 + + CASE - - 52 WHEN 11 THEN - 92 - - 79 - - COUNT( * ) WHEN + 18 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT + - 74 * - MAX ( 53 ) + + ( 54 ) / - + 51 + + CASE - - 52 WHEN 11 THEN - 92 - - 79 - - COUNT ( * ) WHEN + 18 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT ALL + 16 * 31 - CASE NULLIF ( + - 82, COUNT( * ) ) WHEN + - 36 - + - COUNT( * ) * - 33 THEN NULL WHEN + 65 THEN - + COUNT( * ) ELSE + 97 * - - 56 * + + CASE - 88 WHEN - - 41 THEN NULL ELSE + SUM( ALL 75 ) END + - 15 + + - 50 * 78 * COUNT( * ) END
----
-402989

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL + 16 * 31 - CASE NULLIF ( + - 82, COUNT ( * ) ) WHEN + - 36 - + - COUNT ( * ) * - 33 THEN NULL WHEN + 65 THEN - + COUNT ( * ) ELSE + 97 * - - 56 * + + CASE - 88 WHEN - - 41 THEN NULL ELSE + SUM ( ALL 75 ) END + - 15 + + - 50 * 78 * COUNT ( * ) END
----
-402989

query I rowsort
SELECT - 80 + - 98
----
-178

query I rowsort
SELECT + 49 * - 34 col1
----
-1666

query I rowsort
SELECT ALL + - ( + COALESCE ( + 6, 35, + - 40 ) )
----
-6

query I rowsort
SELECT - 93 + + 81
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT + + NULLIF ( - NULLIF ( - 1, + - 5 ), - AVG ( - 54 ) ) - - 10 * - SUM( - 4 ) - 40 + - 50 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-6266
SELECT + + NULLIF ( - NULLIF ( - 1, + - 5 ), - AVG ( - 54 ) ) - - 10 * - SUM ( - 4 ) - 40 + - 50 AS col0
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6267
SELECT - NULLIF ( + CASE ( 40 ) WHEN + - 25 * - NULLIF ( - - COUNT( + 45 ), - 80 * NULLIF ( - 58, - 98 + - ( 42 ) ) + - - ( - 29 ) * + + SUM( + CAST( NULL AS DECIMAL ) ) * - - COUNT( * ) + 89 - + 68 ) + 72 THEN + 63 WHEN + 92 * - COUNT( * ) THEN 16 END, - COUNT( * ) * - + 58 + + 81 + - COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT - NULLIF ( + CASE ( 40 ) WHEN + - 25 * - NULLIF ( - - COUNT ( + 45 ), - 80 * NULLIF ( - 58, - 98 + - ( 42 ) ) + - - ( - 29 ) * + + SUM ( + CAST ( NULL AS REAL ) ) * - - COUNT ( * ) + 89 - + 68 ) + 72 THEN + 63 WHEN + 92 * - COUNT ( * ) THEN 16 END, - COUNT ( * ) * - + 58 + + 81 + - COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6268
SELECT DISTINCT + 13 DIV - - ( - 79 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT + 13 / - - ( - 79 ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6269
SELECT ALL ( + 63 ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL ( + 63 ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT 3 + + + MAX( DISTINCT - - 49 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6270
SELECT 3 + + + MAX ( DISTINCT - - 49 ) AS col1
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-6271
SELECT ( - 92 ) DIV 21 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6271
SELECT ( - 92 ) / 21 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6272
SELECT 22 + - CASE - 44 WHEN - 70 THEN + 89 * - 58 - + - 63 + + 24 * - + MIN( - 66 ) + - 57 END * - CASE + 73 WHEN + + 29 THEN NULL ELSE - 61 END AS col2, - 78
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-6272
SELECT 22 + - CASE - 44 WHEN - 70 THEN + 89 * - 58 - + - 63 + + 24 * - + MIN ( - 66 ) + - 57 END * - CASE + 73 WHEN + + 29 THEN NULL ELSE - 61 END AS col2, - 78
----
NULL
-78

query I rowsort
SELECT ALL ( 24 ) + - 74 AS col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6274
SELECT DISTINCT 84 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT 84 / 98 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) + - + NULLIF ( - COUNT( * ), - + 9 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) + - + NULLIF ( - COUNT ( * ), - + 9 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6276
SELECT ALL COUNT( - 62 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL COUNT ( - 62 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT NULLIF ( - 23, + 38 ) DIV + 41 * - - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6277
SELECT NULLIF ( - 23, + 38 ) / + 41 * - - 74 AS col0
----
0

query I rowsort
SELECT 28 + ( 8 ) * 60 * - 54
----
-25892

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT COUNT( * ) + - 51 col1
----
-50

skipif mysql # not compatible
query I rowsort label-6279
SELECT COUNT ( * ) + - 51 col1
----
-50

query I rowsort
SELECT DISTINCT 24 * + 35
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL - SUM( ( - - 41 ) ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL - SUM ( ( - - 41 ) ) AS col1
----
-41

query I rowsort
SELECT DISTINCT 96 + + 20
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-6283
SELECT ALL + - 61 + + 31 DIV + 18 col1
----
-60

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + - 61 + + 31 / + 18 col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT 40 * + 19 * + 85 + - SUM( + 76 ) AS col2
----
64524

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT 40 * + 19 * + 85 + - SUM ( + 76 ) AS col2
----
64524

query I rowsort
SELECT 72 * - - 97 * - + 6 + - + 53 AS col0
----
-41957

query I rowsort
SELECT DISTINCT + 50 - 56
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6287
SELECT ALL 67 - - ( + - ( + AVG ( DISTINCT + 15 ) ) ) * + - 56 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL 67 - - ( + - ( + AVG ( DISTINCT + 15 ) ) ) * + - 56 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 19 + - 91 AS col2
----
-72

query I rowsort
SELECT ALL 81 - + CASE + + 75 WHEN 53 * - + 16 + + + AVG ( 58 ) + 53 + 27 + 71 THEN - 97 END - - 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6290
SELECT CAST( + 83 AS SIGNED ) * NULLIF ( + - 51, - + 66 ) AS col2
----
-4233

skipif mysql # not compatible
query I rowsort label-6290
SELECT CAST ( + 83 AS INTEGER ) * NULLIF ( + - 51, - + 66 ) AS col2
----
-4233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL + 26 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL + 26 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT + 10 * - NULLIF ( + - COUNT( * ), + COUNT( DISTINCT + 7 ) + + - 56 ) * - 89 - 24 + 2 - 16
----
-928

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT + 10 * - NULLIF ( + - COUNT ( * ), + COUNT ( DISTINCT + 7 ) + + - 56 ) * - 89 - 24 + 2 - 16
----
-928

onlyif mysql # DIV for integer division: 
query I rowsort label-6293
SELECT ALL 70 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL 70 / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - 14 * + COUNT( * ) * - MAX( DISTINCT - ( + 32 ) ) col1
----
-448

skipif mysql # not compatible
query I rowsort label-6294
SELECT - 14 * + COUNT ( * ) * - MAX ( DISTINCT - ( + 32 ) ) col1
----
-448

query I rowsort
SELECT ALL - - 53 col0
----
53

query I rowsort
SELECT ALL - 72 * 45 AS col2
----
-3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT 87 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT 87 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6298
SELECT 99 * + CAST( NULL AS SIGNED ) + 7 + COUNT( * ) * - + COUNT( DISTINCT + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6298
SELECT 99 * + CAST ( NULL AS INTEGER ) + 7 + COUNT ( * ) * - + COUNT ( DISTINCT + 18 )
----
NULL

query I rowsort
SELECT ALL + 9 * 49 AS col1
----
441

query I rowsort
SELECT 96 * - 5
----
-480

query I rowsort
SELECT 32 * - 94 AS col2
----
-3008

query II rowsort
SELECT 6 - - 95 + + 61 AS col1, 58 + 34 + - 45
----
162
47

query I rowsort
SELECT - 69 * + 75 - 32
----
-5207

query I rowsort
SELECT 22 * - - ( - + 23 ) AS col0
----
-506

query II rowsort
SELECT DISTINCT 80 AS col1, 68 * + 88 + - 41 * 78
----
80
2786

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT ALL - COUNT( * ) + - CASE - 26 WHEN + 38 + - - 0 THEN NULL WHEN - 51 * + 26 THEN + - COUNT( * ) END - - SUM( ALL - 96 ) - + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL - COUNT ( * ) + - CASE - 26 WHEN + 38 + - - 0 THEN NULL WHEN - 51 * + 26 THEN + - COUNT ( * ) END - - SUM ( ALL - 96 ) - + 17
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6307
SELECT ALL + 38 + CAST( NULL AS SIGNED ) * + 56 * 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL + 38 + CAST ( NULL AS INTEGER ) * + 56 * 11 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 42 + + 92 AS col1
----
134

query I rowsort
SELECT ALL 0 + + - 10 + - 6 + + - 40
----
-56

query I rowsort
SELECT ALL 85 + 12 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT - 55 * - 37 / CAST( NULL AS SIGNED ) - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6311
SELECT - 55 * - 37 / CAST ( NULL AS INTEGER ) - 2
----
NULL

query I rowsort
SELECT DISTINCT - - 80 - - - COALESCE ( - + 26, + 33 ) AS col2
----
106

query I rowsort
SELECT DISTINCT - ( - 55 )
----
55

query I rowsort
SELECT ALL 12 * 24 AS col2
----
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6315
SELECT 41 DIV - COUNT( * ) DIV 1
----
-41

skipif mysql # not compatible
query I rowsort label-6315
SELECT 41 / - COUNT ( * ) / 1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6316
SELECT ALL + 16 * + 57 / - - CAST( NULL AS SIGNED ) - - 36 / 75 + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL + 16 * + 57 / - - CAST ( NULL AS INTEGER ) - - 36 / 75 + - 21
----
NULL

query I rowsort
SELECT + 21 * 97
----
2037

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT COUNT( * ) + - MAX( DISTINCT + 37 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6318
SELECT COUNT ( * ) + - MAX ( DISTINCT + 37 ) AS col2
----
-36

query I rowsort
SELECT + CASE WHEN NULL IS NULL THEN - ( - 35 ) END
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6320
SELECT + - 51 DIV - - ( + - 50 ) - - + COUNT( - 96 ) + - - ( + + 26 ) * + 46 + - + ( - ( + + 21 ) )
----
1219

skipif mysql # not compatible
query I rowsort label-6320
SELECT + - 51 / - - ( + - 50 ) - - + COUNT ( - 96 ) + - - ( + + 26 ) * + 46 + - + ( - ( + + 21 ) )
----
1219

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT + ( + - NULLIF ( + 88, - 43 - + NULLIF ( 47, - + COUNT( * ) ) ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-6321
SELECT + ( + - NULLIF ( + 88, - 43 - + NULLIF ( 47, - + COUNT ( * ) ) ) ) AS col0
----
-88

query II rowsort
SELECT ALL - + 79 AS col2, + 74 + + 64 AS col2
----
-79
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT COUNT( * ) + 69 + + NULLIF ( - ( - + NULLIF ( + 45, - 91 ) ), + - ( 92 ) )
----
115

skipif mysql # not compatible
query I rowsort label-6323
SELECT COUNT ( * ) + 69 + + NULLIF ( - ( - + NULLIF ( + 45, - 91 ) ), + - ( 92 ) )
----
115

query II rowsort
SELECT + 55 AS col1, 93 * - 1
----
55
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6325
SELECT ALL + 97 * + COALESCE ( - 52, - + 81 + ( + COUNT( * ) ) + - 81 ) - - 11 + + 58 DIV + 87 * 85 + - 23
----
-5056

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL + 97 * + COALESCE ( - 52, - + 81 + ( + COUNT ( * ) ) + - 81 ) - - 11 + + 58 / + 87 * 85 + - 23
----
-5056

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT - 71 * - - 52 * 2 * - - COUNT( * ) AS col1
----
-7384

skipif mysql # not compatible
query I rowsort label-6326
SELECT - 71 * - - 52 * 2 * - - COUNT ( * ) AS col1
----
-7384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6327
SELECT 17 DIV - 87 + + COUNT( * ) + 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-6327
SELECT 17 / - 87 + + COUNT ( * ) + 64 AS col2
----
65

query I rowsort
SELECT ALL + ( + 28 ) col2
----
28

query I rowsort
SELECT DISTINCT + - 86 AS col2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6330
SELECT - 15 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-6330
SELECT - 15 / + 62
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6331
SELECT + 64, + 23 * + - MIN( DISTINCT - 45 ) AS col2
----
64
1035

skipif mysql # not compatible
query II rowsort label-6331
SELECT + 64, + 23 * + - MIN ( DISTINCT - 45 ) AS col2
----
64
1035

query I rowsort
SELECT + 62 + + 78
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL - ( COALESCE ( + ( - COUNT( * ) ), + 16 ) ) * CASE - 91 WHEN - 28 * + + 84 + + 63 THEN NULL ELSE + 20 * + ( - 56 ) END * - - 84
----
-94080

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL - ( COALESCE ( + ( - COUNT ( * ) ), + 16 ) ) * CASE - 91 WHEN - 28 * + + 84 + + 63 THEN NULL ELSE + 20 * + ( - 56 ) END * - - 84
----
-94080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6334
SELECT + 79 DIV + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-6334
SELECT + 79 / + COUNT ( * )
----
79

query I rowsort
SELECT DISTINCT - 23 * - 91 AS col2
----
2093

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT DISTINCT 20 + + + 29 + - - COUNT( ALL - 27 )
----
50

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT 20 + + + 29 + - - COUNT ( ALL - 27 )
----
50

query I rowsort
SELECT DISTINCT ( - 89 ) + - 9 - 98
----
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT - 49 DIV + - 1 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6338
SELECT - 49 / + - 1 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT DISTINCT - COALESCE ( + COUNT( * ), + NULLIF ( 40, 76 ) ) + - 69 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT - COALESCE ( + COUNT ( * ), + NULLIF ( 40, 76 ) ) + - 69 AS col2
----
-70

query I rowsort
SELECT ALL + 78 * - - 36 * + + 72
----
202176

query II rowsort
SELECT 25 AS col0, 3 + + 33
----
25
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6342
SELECT - 13 + 32 AS col0, 28 + COUNT( * ) + - - 45
----
19
74

skipif mysql # not compatible
query II rowsort label-6342
SELECT - 13 + 32 AS col0, 28 + COUNT ( * ) + - - 45
----
19
74

query III rowsort
SELECT - 95 col0, - 68, + 55 - 67 AS col1
----
-95
-68
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6344
SELECT - CAST( + COUNT( * ) AS SIGNED ) * + 60
----
-60

skipif mysql # not compatible
query I rowsort label-6344
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * + 60
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL CASE + 68 WHEN COUNT( * ) THEN - 93 / - 90 ELSE - 43 * + 46 END
----
-1978

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL CASE + 68 WHEN COUNT ( * ) THEN - 93 / - 90 ELSE - 43 * + 46 END
----
-1978

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL COUNT( ALL - 74 )
----
1

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL COUNT ( ALL - 74 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ALL ( + - MIN( DISTINCT + 24 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL ( + - MIN ( DISTINCT + 24 ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT - - COUNT( * ) + ( - ( ( + COUNT( * ) ) ) ) + + ( - + 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-6348
SELECT - - COUNT ( * ) + ( - ( ( + COUNT ( * ) ) ) ) + + ( - + 31 )
----
-31

query II rowsort
SELECT - 44 AS col0, 12
----
-44
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT ALL SUM( DISTINCT - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL SUM ( DISTINCT - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT - + 56 + + COUNT( * ) + - 30
----
-85

skipif mysql # not compatible
query I rowsort label-6351
SELECT - + 56 + + COUNT ( * ) + - 30
----
-85

query I rowsort
SELECT ALL + + 90 - 39
----
51

query I rowsort
SELECT ALL - 92 * 81 * - - 96
----
-715392

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT - - 87 * - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-6354
SELECT - - 87 * - COUNT ( * ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT - 19 + 2 * + 73 * - COUNT( * ) AS col0
----
-165

skipif mysql # not compatible
query I rowsort label-6355
SELECT - 19 + 2 * + 73 * - COUNT ( * ) AS col0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT - - CASE 36 WHEN 14 + - COUNT( * ) THEN - 63 * 97 + NULLIF ( 87, + 58 * 95 ) ELSE 62 END AS col2
----
62

skipif mysql # not compatible
query I rowsort label-6356
SELECT - - CASE 36 WHEN 14 + - COUNT ( * ) THEN - 63 * 97 + NULLIF ( 87, + 58 * 95 ) ELSE 62 END AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT + + 6 + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6357
SELECT + + 6 + COUNT ( * ) AS col1
----
7

query I rowsort
SELECT - 33 + + - 9
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6359
SELECT - 46 + - CAST( - COALESCE ( ( - COUNT( * ) ), 61 * + ( - 5 ) ) AS SIGNED ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-6359
SELECT - 46 + - CAST ( - COALESCE ( ( - COUNT ( * ) ), 61 * + ( - 5 ) ) AS INTEGER ) AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6360
SELECT + 10 DIV 72 - - 74 + - + 55 * 78 DIV 66 + + - 83 + COUNT( * ) * + 80 * - 52 + 74 + + 37 AS col2
----
-4123

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 10 / 72 - - 74 + - + 55 * 78 / 66 + + - 83 + COUNT ( * ) * + 80 * - 52 + 74 + + 37 AS col2
----
-4123

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT - + COUNT( * ) * - MAX( DISTINCT - 57 ) * COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-6361
SELECT - + COUNT ( * ) * - MAX ( DISTINCT - 57 ) * COUNT ( * ) AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6362
SELECT DISTINCT - - 85 * + 47 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT - - 85 * + 47 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( 92, - + 41 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT + 73 * - + MIN( + 97 )
----
-7081

skipif mysql # not compatible
query I rowsort label-6364
SELECT + 73 * - + MIN ( + 97 )
----
-7081

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6365
SELECT - CAST( NULL AS DECIMAL ) / - 30 * + - 81 * 34 + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT - CAST ( NULL AS REAL ) / - 30 * + - 81 * 34 + - 63
----
NULL

query II rowsort
SELECT - 57 AS col0, + 26 AS col0
----
-57
26

query I rowsort
SELECT + 5 * - 48
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6368
SELECT DISTINCT - + ( + 92 ) * COALESCE ( + 23, + - 71 - + 90, 19 + - + ( - ( - CASE - COUNT( * ) WHEN CAST( NULL AS SIGNED ) - - 28 THEN - - 21 ELSE + 23 + + + COUNT( * ) END ) ) + + 47 DIV + 80 * + - 94 ) + ( - 69 ) + 27 + + 47 AS col1
----
-2111

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT - + ( + 92 ) * COALESCE ( + 23, + - 71 - + 90, 19 + - + ( - ( - CASE - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) - - 28 THEN - - 21 ELSE + 23 + + + COUNT ( * ) END ) ) + + 47 / + 80 * + - 94 ) + ( - 69 ) + 27 + + 47 AS col1
----
-2111

query I rowsort
SELECT ALL - + 29 * 39 + - 69
----
-1200

onlyif mysql # aggregate syntax: 
query II rowsort label-6370
SELECT ALL + - 62 * - SUM( ALL + - 9 ) + - 17 AS col2, + 75 AS col2
----
-575
75

skipif mysql # not compatible
query II rowsort label-6370
SELECT ALL + - 62 * - SUM ( ALL + - 9 ) + - 17 AS col2, + 75 AS col2
----
-575
75

query II rowsort
SELECT + - 84 AS col1, + 88 * - - 94 * - 7 AS col1
----
-84
-57904

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT 36 * + - COUNT( * ) + 72 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6372
SELECT 36 * + - COUNT ( * ) + 72 AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6373
SELECT CASE - CAST( NULL AS SIGNED ) WHEN 46 THEN - - COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - - 12 - + COUNT( * ) END AS col0, 10
----
11
10

skipif mysql # not compatible
query II rowsort label-6373
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN 46 THEN - - COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - - 12 - + COUNT ( * ) END AS col0, 10
----
11
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT + CASE ( ( - 13 ) ) WHEN 21 - - - 93 THEN + COUNT( 56 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT + CASE ( ( - 13 ) ) WHEN 21 - - - 93 THEN + COUNT ( 56 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6375
SELECT ALL 92 * + 36 + + 69 DIV ( - 71 ) DIV - 71 + + 91 + + - CAST( - + 15 AS SIGNED )
----
3418

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL 92 * + 36 + + 69 / ( - 71 ) / - 71 + + 91 + + - CAST ( - + 15 AS INTEGER )
----
3418

query I rowsort
SELECT DISTINCT + 37 * + CASE - 4 WHEN - 5 THEN + - 46 * + 73 + 93 / + 99 * - 20 END * + 78 / - 15 + - + 89 + 20 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6377
SELECT + COUNT( * ) + + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 8 * + + 86
----
688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6379
SELECT 74 * CAST( - 83 AS SIGNED ) + + ( + - 4 ) * - + 13 / 43 * - 49 * + ( ( + - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT 74 * CAST ( - 83 AS INTEGER ) + + ( + - 4 ) * - + 13 / 43 * - 49 * + ( ( + - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT COALESCE ( - ( + COUNT( * ) ), COUNT( * ), - + 75 + - 71, + COUNT( * ) + + - ( + - 83 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6380
SELECT COALESCE ( - ( + COUNT ( * ) ), COUNT ( * ), - + 75 + - 71, + COUNT ( * ) + + - ( + - 83 ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6381
SELECT ALL - 27 * CASE + 96 WHEN + - 84 * - COUNT( * ) + COUNT( * ) * + - CAST( NULL AS SIGNED ) * COUNT( * ) - 9 + + + 29 / 95 THEN NULL WHEN + + 92 * + 8 * 46 + - 16 + 97 + - 81 * SUM( ALL + - 72 ) * + 38 + 25 + + 21 THEN - - COUNT( * ) END * - 56 - + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL - 27 * CASE + 96 WHEN + - 84 * - COUNT ( * ) + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * COUNT ( * ) - 9 + + + 29 / 95 THEN NULL WHEN + + 92 * + 8 * 46 + - 16 + 97 + - 81 * SUM ( ALL + - 72 ) * + 38 + 25 + + 21 THEN - - COUNT ( * ) END * - 56 - + + 4
----
NULL

query I rowsort
SELECT DISTINCT 65 - + 55 AS col1
----
10

query I rowsort
SELECT + ( - 42 ) * 51
----
-2142

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT + 8 * + 84 * - + COUNT( * ) * + 52 AS col2
----
-34944

skipif mysql # not compatible
query I rowsort label-6384
SELECT + 8 * + 84 * - + COUNT ( * ) * + 52 AS col2
----
-34944

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT NULLIF ( - COUNT( * ), - 44 * 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-6385
SELECT NULLIF ( - COUNT ( * ), - 44 * 82 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6386
SELECT - MIN( - 48 ) AS col1, - 53 + - 71
----
48
-124

skipif mysql # not compatible
query II rowsort label-6386
SELECT - MIN ( - 48 ) AS col1, - 53 + - 71
----
48
-124

query I rowsort
SELECT COALESCE ( 52, - 51, + - 43 + - - 16 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6388
SELECT - + 75 * - + 4 AS col1, - COUNT( * )
----
300
-1

skipif mysql # not compatible
query II rowsort label-6388
SELECT - + 75 * - + 4 AS col1, - COUNT ( * )
----
300
-1

query I rowsort
SELECT ALL - CASE - 77 WHEN + 45 THEN + - 6 + - + COALESCE ( + 45, + 27, - 26 ) + + 23 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6390
SELECT DISTINCT - 31 * CASE 63 WHEN CAST( NULL AS DECIMAL ) THEN - - 12 / - 59 + + CAST( NULL AS SIGNED ) WHEN - 98 * - 76 THEN 60 / AVG ( DISTINCT - 4 ) - - + 47 END * - + 0 - - 48 + - + 4 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT - 31 * CASE 63 WHEN CAST ( NULL AS REAL ) THEN - - 12 / - 59 + + CAST ( NULL AS INTEGER ) WHEN - 98 * - 76 THEN 60 / AVG ( DISTINCT - 4 ) - - + 47 END * - + 0 - - 48 + - + 4 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6391
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col2, 19 AS col0, - 60 + + + 37 + + CAST( NULL AS SIGNED ) - + 82 / ( - COUNT( * ) ) * - MIN( 58 ) * - - 28 AS col2
----
1
19
NULL

skipif mysql # not compatible
query III rowsort label-6391
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col2, 19 AS col0, - 60 + + + 37 + + CAST ( NULL AS INTEGER ) - + 82 / ( - COUNT ( * ) ) * - MIN ( 58 ) * - - 28 AS col2
----
1
19
NULL

query I rowsort
SELECT 73 * - 45
----
-3285

query I rowsort
SELECT ALL + + 95 + + 84 * - 36 AS col1
----
-2929

onlyif mysql # aggregate syntax: 
query II rowsort label-6394
SELECT - ( + NULLIF ( - - 0, + 96 * 10 + - COUNT( * ) ) ) * - 33 col0, ( 43 ) AS col2
----
0
43

skipif mysql # not compatible
query II rowsort label-6394
SELECT - ( + NULLIF ( - - 0, + 96 * 10 + - COUNT ( * ) ) ) * - 33 col0, ( 43 ) AS col2
----
0
43

query I rowsort
SELECT 52 + - 66 + - + 35 AS col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6396
SELECT ALL + COUNT( * ) * + + 33 + - 9 * + 72 + ( - + SUM( 29 ) ) - + - ( - + 41 ) - - MAX( DISTINCT 14 ) * - MAX( 41 ) + - 68 DIV + + ( 9 )
----
-1266

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL + COUNT ( * ) * + + 33 + - 9 * + 72 + ( - + SUM ( 29 ) ) - + - ( - + 41 ) - - MAX ( DISTINCT 14 ) * - MAX ( 41 ) + - 68 / + + ( 9 )
----
-1266

query I rowsort
SELECT ALL + 50 + - 96 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL 26 + NULLIF ( - - 37, - MIN( + 25 ) ) * - 5 col2
----
-159

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL 26 + NULLIF ( - - 37, - MIN ( + 25 ) ) * - 5 col2
----
-159

query I rowsort
SELECT 41 - 69 col2
----
-28

query I rowsort
SELECT DISTINCT - ( + 45 ) col2
----
-45

query II rowsort
SELECT 64 AS col1, + 0 AS col1
----
64
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6402
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL 66 * - 48 AS col2
----
-3168

query II rowsort
SELECT + 83 AS col1, NULLIF ( + + 25, 18 ) AS col1
----
83
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6405
SELECT 50 + + 94 + + 45 * + 34 + 15 DIV + 3 AS col1
----
1679

skipif mysql # not compatible
query I rowsort label-6405
SELECT 50 + + 94 + + 45 * + 34 + 15 / + 3 AS col1
----
1679

query I rowsort
SELECT ALL 60 * - 54 AS col0
----
-3240

onlyif mysql # DIV for integer division: 
query II rowsort label-6407
SELECT 58, - 95 DIV + 33 AS col0
----
58
-2

skipif mysql # not compatible
query II rowsort label-6407
SELECT 58, - 95 / + 33 AS col0
----
58
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT ALL 78 * - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL 78 * - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT DISTINCT 65 - - + 4 - + COUNT( DISTINCT + - 51 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT 65 - - + 4 - + COUNT ( DISTINCT + - 51 ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6410
SELECT ALL 24 * CAST( - 4 AS SIGNED ) * - - SUM( 92 ) col0
----
-8832

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL 24 * CAST ( - 4 AS INTEGER ) * - - SUM ( 92 ) col0
----
-8832

onlyif mysql # DIV for integer division: 
query I rowsort label-6411
SELECT 85 + - 18 DIV 25 - + - 96 * 97 AS col0
----
9397

skipif mysql # not compatible
query I rowsort label-6411
SELECT 85 + - 18 / 25 - + - 96 * 97 AS col0
----
9397

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT COUNT( - + 45 ) + 6 + - 79
----
-72

skipif mysql # not compatible
query I rowsort label-6412
SELECT COUNT ( - + 45 ) + 6 + - 79
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT - CAST( - 8 AS SIGNED ) * + + 70 * - 33 AS col0
----
-18480

skipif mysql # not compatible
query I rowsort label-6413
SELECT - CAST ( - 8 AS INTEGER ) * + + 70 * - 33 AS col0
----
-18480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6414
SELECT COALESCE ( 64, - - 37, - 77, - MIN( ALL - + 46 ) DIV + COUNT( * ) ) * + MAX( DISTINCT + - 60 )
----
-3840

skipif mysql # not compatible
query I rowsort label-6414
SELECT COALESCE ( 64, - - 37, - 77, - MIN ( ALL - + 46 ) / + COUNT ( * ) ) * + MAX ( DISTINCT + - 60 )
----
-3840

query I rowsort
SELECT DISTINCT ( - 44 ) col1
----
-44

query I rowsort
SELECT 49 + 90
----
139

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6417
SELECT DISTINCT COALESCE ( - ( + 20 ), + 82 - - ( CAST( NULL AS SIGNED ) ) ) DIV - - 6 col0
----
-3

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT COALESCE ( - ( + 20 ), + 82 - - ( CAST ( NULL AS INTEGER ) ) ) / - - 6 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ALL - + 47 + - COUNT( * ) - 52 col1
----
-100

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL - + 47 + - COUNT ( * ) - 52 col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT MIN( - + 98 ) + - 97
----
-195

skipif mysql # not compatible
query I rowsort label-6419
SELECT MIN ( - + 98 ) + - 97
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6420
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( + 73 ) + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( + 73 ) + - 15
----
NULL

query I rowsort
SELECT DISTINCT - 91 + + 95 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT - COUNT( * ) * + + 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-6422
SELECT - COUNT ( * ) * + + 56 AS col2
----
-56

query I rowsort
SELECT ALL - 58 + + 37
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6424
SELECT - COUNT( * ) AS col1, + NULLIF ( 8, - CAST( NULL AS DECIMAL ) ) + + 51 DIV - - COUNT( * ) AS col0
----
-1
59

skipif mysql # not compatible
query II rowsort label-6424
SELECT - COUNT ( * ) AS col1, + NULLIF ( 8, - CAST ( NULL AS REAL ) ) + + 51 / - - COUNT ( * ) AS col0
----
-1
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6425
SELECT + 31 * + + 1 + 25 + + + COUNT( * ) DIV MIN( 35 ) + - - 23 + - COUNT( * ) * - CAST( - 10 AS SIGNED ) - + - 43 + 77 * + COUNT( * ) * + + ( - - 42 )
----
3346

skipif mysql # not compatible
query I rowsort label-6425
SELECT + 31 * + + 1 + 25 + + + COUNT ( * ) / MIN ( 35 ) + - - 23 + - COUNT ( * ) * - CAST ( - 10 AS INTEGER ) - + - 43 + 77 * + COUNT ( * ) * + + ( - - 42 )
----
3346

query II rowsort
SELECT 67 * - 4 * - 73 * + 63 AS col1, 61 * + + 36 AS col1
----
1232532
2196

query II rowsort
SELECT ALL - 97 + + 52 + 75 * + - 28 * - 24 * 11, - 66 AS col1
----
554355
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL - + MAX( DISTINCT - - ( ( - 13 ) ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL - + MAX ( DISTINCT - - ( ( - 13 ) ) ) AS col0
----
13

query I rowsort
SELECT ALL - - 67 + + 33
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-6430
SELECT 41 * + COUNT( ALL - + 58 ) * - COUNT( * ) AS col0, 55 - + 99
----
-41
-44

skipif mysql # not compatible
query II rowsort label-6430
SELECT 41 * + COUNT ( ALL - + 58 ) * - COUNT ( * ) AS col0, 55 - + 99
----
-41
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT ALL + 10 * + COUNT( * ) col2
----
10

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + 10 * + COUNT ( * ) col2
----
10

query I rowsort
SELECT 31 * + + 90
----
2790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6433
SELECT AVG ( + - 18 ) * - CAST( NULL AS SIGNED ) - - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6433
SELECT AVG ( + - 18 ) * - CAST ( NULL AS INTEGER ) - - 76 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 1 - + 32
----
-31

query I rowsort
SELECT ALL 37 - + 58 AS col2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6436
SELECT ALL COUNT( * ) DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL COUNT ( * ) / - 40
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6437
SELECT ALL - 57 DIV - - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - 57 / - - COUNT ( * )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6438
SELECT + 25 * - - COUNT( * ) * + CAST( NULL AS SIGNED ) - + AVG ( DISTINCT + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT + 25 * - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - + AVG ( DISTINCT + 77 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT 41 * - 67 * - 21 DIV - 7
----
-8241

skipif mysql # not compatible
query I rowsort label-6439
SELECT 41 * - 67 * - 21 / - 7
----
-8241

query I rowsort
SELECT ALL NULLIF ( 10, 69 ) AS col0
----
10

query I rowsort
SELECT DISTINCT + 80 + 17
----
97

query I rowsort
SELECT ALL ( + 97 ) + 19
----
116

onlyif mysql # aggregate syntax: 
query II rowsort label-6443
SELECT DISTINCT 70 + CASE - 92 WHEN - COUNT( * ) - 61 THEN - 64 END * - ( - COUNT( * ) ) * - 43 AS col0, + 28 AS col2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-6443
SELECT DISTINCT 70 + CASE - 92 WHEN - COUNT ( * ) - 61 THEN - 64 END * - ( - COUNT ( * ) ) * - 43 AS col0, + 28 AS col2
----
NULL
28

query I rowsort
SELECT ALL - 61 + - 65 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + + MAX( - 30 ) * - 85 AS col0
----
2550

skipif mysql # not compatible
query I rowsort label-6445
SELECT + + MAX ( - 30 ) * - 85 AS col0
----
2550

query I rowsort
SELECT ALL + 87 + 63 AS col1
----
150

query II rowsort
SELECT + + 81 - - 28 col0, 30
----
109
30

query I rowsort
SELECT NULLIF ( 30, - 50 + - 98 ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6449
SELECT + 28 DIV CAST( 52 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6449
SELECT + 28 / CAST ( 52 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT - COUNT( * ) * - - 98 + + COUNT( * ) * + - 48
----
-146

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT - COUNT ( * ) * - - 98 + + COUNT ( * ) * + - 48
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6451
SELECT ALL MIN( + + 19 ) + - ( + + CASE 93 WHEN 7 + - - 20 THEN + 79 + - - 69 WHEN + + 81 THEN - - ( CAST( NULL AS SIGNED ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL MIN ( + + 19 ) + - ( + + CASE 93 WHEN 7 + - - 20 THEN + 79 + - - 69 WHEN + + 81 THEN - - ( CAST ( NULL AS INTEGER ) ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT ALL ( - + 44 ) DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL ( - + 44 ) / 64 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6453
SELECT + - MAX( + 72 ) DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT + - MAX ( + 72 ) / + 88
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6454
SELECT DISTINCT 56 * CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT 56 * CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT + MAX( - 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6455
SELECT + MAX ( - 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT + 79 + - 78 * - MIN( DISTINCT - 44 ) AS col1
----
-3353

skipif mysql # not compatible
query I rowsort label-6456
SELECT + 79 + - 78 * - MIN ( DISTINCT - 44 ) AS col1
----
-3353

query I rowsort
SELECT ALL 91 * + 1 AS col0
----
91

query I rowsort
SELECT - 2 * - 36
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6459
SELECT + 73 + + COUNT( * ) DIV - 81
----
73

skipif mysql # not compatible
query I rowsort label-6459
SELECT + 73 + + COUNT ( * ) / - 81
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6460
SELECT + COUNT( * ) DIV - - 26 - - 3
----
3

skipif mysql # not compatible
query I rowsort label-6460
SELECT + COUNT ( * ) / - - 26 - - 3
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6461
SELECT ALL + COUNT( * ) AS col0, + 1
----
1
1

skipif mysql # not compatible
query II rowsort label-6461
SELECT ALL + COUNT ( * ) AS col0, + 1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT ( ( + + COUNT( ALL - 55 ) ) ) * + 0
----
0

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT ( ( + + COUNT ( ALL - 55 ) ) ) * + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6463
SELECT + 10 / + + 38 * 77 + 95 + CAST( NULL AS SIGNED ) * + ( + ( - 59 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT + 10 / + + 38 * 77 + 95 + CAST ( NULL AS INTEGER ) * + ( + ( - 59 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT ALL + NULLIF ( + - ( + COUNT( * ) ), + 17 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL + NULLIF ( + - ( + COUNT ( * ) ), + 17 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6465
SELECT - COALESCE ( + - CAST( + 14 AS SIGNED ), 30 ) * 5 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6465
SELECT - COALESCE ( + - CAST ( + 14 AS INTEGER ), 30 ) * 5 AS col0
----
70

query I rowsort
SELECT + ( 89 ) col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6467
SELECT - CAST( COUNT( * ) AS SIGNED ) + 33
----
32

skipif mysql # not compatible
query I rowsort label-6467
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + 33
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6468
SELECT + COALESCE ( + + 7, - - 47, - + 38 ) * 5, CAST( NULL AS SIGNED ) col1
----
35
NULL

skipif mysql # not compatible
query II rowsort label-6468
SELECT + COALESCE ( + + 7, - - 47, - + 38 ) * 5, CAST ( NULL AS INTEGER ) col1
----
35
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT - CAST( NULL AS SIGNED ) * - 97 * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT - CAST ( NULL AS INTEGER ) * - 97 * 76
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6470
SELECT ALL + COUNT( * ) AS col2, 58 AS col0
----
1
58

skipif mysql # not compatible
query II rowsort label-6470
SELECT ALL + COUNT ( * ) AS col2, 58 AS col0
----
1
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6471
SELECT CASE - - 77 WHEN + - 40 * CAST( NULL AS SIGNED ) THEN 79 + - CAST( - 75 AS SIGNED ) WHEN - CASE 1 WHEN COUNT( * ) * + + COUNT( * ) + + 0 THEN + 44 - - ( 66 ) ELSE NULL END THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT CASE - - 77 WHEN + - 40 * CAST ( NULL AS INTEGER ) THEN 79 + - CAST ( - 75 AS INTEGER ) WHEN - CASE 1 WHEN COUNT ( * ) * + + COUNT ( * ) + + 0 THEN + 44 - - ( 66 ) ELSE NULL END THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT - 77 * MAX( + 46 ) AS col2
----
-3542

skipif mysql # not compatible
query I rowsort label-6472
SELECT - 77 * MAX ( + 46 ) AS col2
----
-3542

query I rowsort
SELECT + 3 * - 25 + + 1 * NULLIF ( 75, 14 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT ALL - 53 * + SUM( DISTINCT - 2 )
----
106

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL - 53 * + SUM ( DISTINCT - 2 )
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-6475
SELECT DISTINCT 58 DIV 20 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT 58 / 20 AS col1
----
2

query I rowsort
SELECT ALL - 70 * 64 + 67
----
-4413

query I rowsort
SELECT - 11 + 10 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6478
SELECT ALL CAST( 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL CAST ( 88 AS INTEGER )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT - 87 + + MIN( 69 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6479
SELECT - 87 + + MIN ( 69 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT + COUNT( - 40 ) - 26
----
-25

skipif mysql # not compatible
query I rowsort label-6480
SELECT + COUNT ( - 40 ) - 26
----
-25

query I rowsort
SELECT + 51 * 17 AS col1
----
867

query I rowsort
SELECT ALL 57 * - 43 AS col1
----
-2451

query I rowsort
SELECT - 63 + 61 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT DISTINCT CAST( 71 AS SIGNED ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT CAST ( 71 AS INTEGER ) AS col2
----
71

query I rowsort
SELECT DISTINCT 68 * 68 AS col1
----
4624

query I rowsort
SELECT DISTINCT + ( 68 ) * + 78
----
5304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6487
SELECT DISTINCT CAST( 59 AS SIGNED ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT CAST ( 59 AS INTEGER ) AS col0
----
59

query I rowsort
SELECT ALL 15 - 14 AS col2
----
1

query I rowsort
SELECT - 21 * - 2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT - MAX( ALL 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-6490
SELECT - MAX ( ALL 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + COUNT( DISTINCT 4 ) + + 55 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-6491
SELECT + COUNT ( DISTINCT 4 ) + + 55 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - MAX( ALL 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-6492
SELECT - MAX ( ALL 47 ) AS col0
----
-47

query I rowsort
SELECT + 62 + ( 20 ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6494
SELECT - NULLIF ( 13, CAST( 20 AS SIGNED ) + + ( COUNT( * ) ) )
----
-13

skipif mysql # not compatible
query I rowsort label-6494
SELECT - NULLIF ( 13, CAST ( 20 AS INTEGER ) + + ( COUNT ( * ) ) )
----
-13

query I rowsort
SELECT + 26 * 45 AS col2
----
1170

query I rowsort
SELECT ALL 37 * + 95 AS col2
----
3515

query I rowsort
SELECT DISTINCT 55 * 63
----
3465

onlyif mysql # DIV for integer division: 
query I rowsort label-6498
SELECT DISTINCT 66 DIV - 44 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT 66 / - 44 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6499
SELECT ALL + NULLIF ( 43, + COALESCE ( ( + 77 ), CAST( NULL AS SIGNED ) / + 6, - 92 ) * MIN( 98 ) )
----
43

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL + NULLIF ( 43, + COALESCE ( ( + 77 ), CAST ( NULL AS INTEGER ) / + 6, - 92 ) * MIN ( 98 ) )
----
43

query I rowsort
SELECT + 90 * NULLIF ( + 70, - 28 ) AS col1
----
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT + COUNT( DISTINCT + 10 ) * + MAX( DISTINCT 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6501
SELECT + COUNT ( DISTINCT + 10 ) * + MAX ( DISTINCT 46 ) AS col2
----
46

query I rowsort
SELECT ALL 1 * - 62
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6503
SELECT CAST( + 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-6503
SELECT CAST ( + 20 AS INTEGER )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6504
SELECT + COUNT( * ) DIV - 1
----
-1

skipif mysql # not compatible
query I rowsort label-6504
SELECT + COUNT ( * ) / - 1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6505
SELECT CAST( 69 AS SIGNED ) col0
----
69

skipif mysql # not compatible
query I rowsort label-6505
SELECT CAST ( 69 AS INTEGER ) col0
----
69

query I rowsort
SELECT + NULLIF ( 23, 57 ) * 90 - 68
----
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL COUNT( - 24 ) * 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL COUNT ( - 24 ) * 40 AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6508
SELECT ALL 12 DIV - CAST( 33 AS SIGNED ) + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL 12 / - CAST ( 33 AS INTEGER ) + 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT + COUNT( - 75 ) * + NULLIF ( + 51, + COUNT( * ) * 58 + + 71 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-6509
SELECT + COUNT ( - 75 ) * + NULLIF ( + 51, + COUNT ( * ) * 58 + + 71 ) AS col2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6510
SELECT + COUNT( ALL 77 ) DIV - 62 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6510
SELECT + COUNT ( ALL 77 ) / - 62 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6511
SELECT ALL + + 28 + - CASE 37 + + 96 WHEN - 97 * 31 + - 91 THEN NULL ELSE - 48 END DIV 9
----
33

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL + + 28 + - CASE 37 + + 96 WHEN - 97 * 31 + - 91 THEN NULL ELSE - 48 END / 9
----
33

query I rowsort
SELECT 1 + 24 col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT DISTINCT COUNT( - 68 ) + - COALESCE ( 89, + 74, CASE WHEN NOT ( - AVG ( ALL 26 ) ) IS NOT NULL THEN 56 END ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT COUNT ( - 68 ) + - COALESCE ( 89, + 74, CASE WHEN NOT ( - AVG ( ALL 26 ) ) IS NOT NULL THEN 56 END ) AS col0
----
-88

query I rowsort
SELECT - 17 + 77
----
60

query I rowsort
SELECT ALL 87 + + 37
----
124

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6516
SELECT - 74 * + ( MIN( 40 ) * CASE + 71 + ( - 47 ) WHEN 19 + CAST( NULL AS DECIMAL ) THEN + 70 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT - 74 * + ( MIN ( 40 ) * CASE + 71 + ( - 47 ) WHEN 19 + CAST ( NULL AS REAL ) THEN + 70 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6517
SELECT NULLIF ( - 19, MAX( NULLIF ( - CAST( NULL AS SIGNED ), + 22 * + 95 ) ) ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6517
SELECT NULLIF ( - 19, MAX ( NULLIF ( - CAST ( NULL AS INTEGER ), + 22 * + 95 ) ) ) AS col2
----
-19

query I rowsort
SELECT DISTINCT + 12 + 93 AS col1
----
105

query I rowsort
SELECT - 78 * + 93 + + 85
----
-7169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6520
SELECT COALESCE ( - MIN( ALL + 13 ), - COUNT( * ) * NULLIF ( 59 * 38, + ( 0 ) * - CAST( NULL AS SIGNED ) ) )
----
-13

skipif mysql # not compatible
query I rowsort label-6520
SELECT COALESCE ( - MIN ( ALL + 13 ), - COUNT ( * ) * NULLIF ( 59 * 38, + ( 0 ) * - CAST ( NULL AS INTEGER ) ) )
----
-13

query I rowsort
SELECT ALL + 79 - 96
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6522
SELECT - COUNT( * ) DIV - 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6522
SELECT - COUNT ( * ) / - 80 AS col1
----
0

query I rowsort
SELECT DISTINCT - 76 * ( - 97 + 9 ) AS col2
----
6688

query I rowsort
SELECT - ( 61 ) * 1
----
-61

query I rowsort
SELECT - 86 - - 55
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT - SUM( DISTINCT + 20 ) - COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6526
SELECT - SUM ( DISTINCT + 20 ) - COUNT ( * ) AS col1
----
-21

query I rowsort
SELECT + 69 * + 93
----
6417

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT ALL + 60 DIV 60 * 97
----
97

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL + 60 / 60 * 97
----
97

query I rowsort
SELECT DISTINCT + 42 * + 98 * 47
----
193452

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL 61 * + - ( + COUNT( * ) ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL 61 * + - ( + COUNT ( * ) ) col1
----
-61

query I rowsort
SELECT 57 * + + 14 * + ( + 37 ) col2
----
29526

query I rowsort
SELECT 69 * + 20
----
1380

query I rowsort
SELECT ALL 14 + + - 19 * 63 AS col0
----
-1183

query I rowsort
SELECT 76 - - 99 - - 42
----
217

query I rowsort
SELECT ALL - 88 * - 45
----
3960

query I rowsort
SELECT 46 * 51 col0
----
2346

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT 50 + - + 15 DIV 66 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6537
SELECT 50 + - + 15 / 66 AS col0
----
50

query I rowsort
SELECT DISTINCT - 70 * + - 23
----
1610

query I rowsort
SELECT DISTINCT 19 + - 74
----
-55

query I rowsort
SELECT 66 + - ( + 53 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL COUNT( + - 93 ) + - 94 col2
----
-93

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL COUNT ( + - 93 ) + - 94 col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6542
SELECT CAST( NULL AS SIGNED ) - 83 - - 10 * ( 24 * - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6542
SELECT CAST ( NULL AS INTEGER ) - 83 - - 10 * ( 24 * - COUNT ( * ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT DISTINCT - 71 * MIN( 31 )
----
-2201

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT - 71 * MIN ( 31 )
----
-2201

onlyif mysql # DIV for integer division: 
query I rowsort label-6544
SELECT ALL 48 DIV 76 * 40 col1
----
0

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL 48 / 76 * 40 col1
----
0

query I rowsort
SELECT ALL - COALESCE ( 65, 78 + - 40 * + 85 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL + 99 + - - COUNT( * ) + 9 * 90
----
910

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL + 99 + - - COUNT ( * ) + 9 * 90
----
910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6547
SELECT ALL COUNT( * ) + 90 DIV 60 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL COUNT ( * ) + 90 / 60 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT - SUM( + 88 ) + 84 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6548
SELECT - SUM ( + 88 ) + 84 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-6549
SELECT ALL 62 DIV - 41
----
-1

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL 62 / - 41
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT - SUM( 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6550
SELECT - SUM ( 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT - 30 * 47 * SUM( - CASE + 32 WHEN 14 * 75 + 68 / + 92 THEN 73 WHEN 49 * + 33 THEN NULL ELSE - 61 * 54 END ) + + 41
----
-4644499

skipif mysql # not compatible
query I rowsort label-6551
SELECT - 30 * 47 * SUM ( - CASE + 32 WHEN 14 * 75 + 68 / + 92 THEN 73 WHEN 49 * + 33 THEN NULL ELSE - 61 * 54 END ) + + 41
----
-4644499

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6552
SELECT ALL CAST( + 39 AS SIGNED ) + 57 DIV 33
----
40

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL CAST ( + 39 AS INTEGER ) + 57 / 33
----
40

query I rowsort
SELECT ALL - + 84 col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT COUNT( * ) * 83 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-6554
SELECT COUNT ( * ) * 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT MAX( ALL 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6555
SELECT MAX ( ALL 19 ) AS col0
----
19

query I rowsort
SELECT DISTINCT 46 * + 53
----
2438

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT ALL + 50 DIV - 94 * 25 col1
----
0

skipif mysql # not compatible
query I rowsort label-6557
SELECT ALL + 50 / - 94 * 25 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT - CASE 93 WHEN + 1 / + 92 + 18 * ( + 33 ) THEN - 32 WHEN ( - COUNT( * ) ) / - 11 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT - CASE 93 WHEN + 1 / + 92 + 18 * ( + 33 ) THEN - 32 WHEN ( - COUNT ( * ) ) / - 11 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT DISTINCT - MIN( + 56 ) * + 21
----
-1176

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT - MIN ( + 56 ) * + 21
----
-1176

query I rowsort
SELECT - 8 * - 27
----
216

query I rowsort
SELECT DISTINCT + 47 - - 85
----
132

query I rowsort
SELECT - 75 * + 19 + + 88
----
-1337

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT MIN( 64 ) * COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-6563
SELECT MIN ( 64 ) * COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT + 84 + - MIN( + 67 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-6564
SELECT + 84 + - MIN ( + 67 ) col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT + 33 * - COUNT( * ) * 29 + 84
----
-873

skipif mysql # not compatible
query I rowsort label-6565
SELECT + 33 * - COUNT ( * ) * 29 + 84
----
-873

query I rowsort
SELECT + 67 - 46
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT DISTINCT - SUM( ALL - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT - SUM ( ALL - 63 )
----
63

query II rowsort
SELECT - 9 AS col2, 78 + - + 16 - - ( 11 )
----
-9
73

query I rowsort
SELECT ALL 32 + - + 49 + 62 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT DISTINCT ( - - 76 ) * NULLIF ( + ( COUNT( * ) ), - 26 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT ( - - 76 ) * NULLIF ( + ( COUNT ( * ) ), - 26 ) AS col0
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6571
SELECT 69 DIV ( + - COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-6571
SELECT 69 / ( + - COUNT ( * ) )
----
-69

query I rowsort
SELECT 76 + 22
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6573
SELECT 91 AS col0, CAST( NULL AS SIGNED ) / - COUNT( * ) * CAST( + COUNT( * ) * - 43 AS SIGNED )
----
91
NULL

skipif mysql # not compatible
query II rowsort label-6573
SELECT 91 AS col0, CAST ( NULL AS INTEGER ) / - COUNT ( * ) * CAST ( + COUNT ( * ) * - 43 AS INTEGER )
----
91
NULL

query I rowsort
SELECT 85 + - 91 AS col1
----
-6

query I rowsort
SELECT DISTINCT - 84 + - - ( - 78 ) AS col2
----
-162

query II rowsort
SELECT 42 AS col1, 95
----
42
95

query I rowsort
SELECT ALL - 66 + + 33 * - 86 * 10
----
-28446

query I rowsort
SELECT DISTINCT + 12 + + 39
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT DISTINCT - 85 + - SUM( 25 )
----
-110

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT - 85 + - SUM ( 25 )
----
-110

query I rowsort
SELECT ALL + 94 + - 71 + 7
----
30

query I rowsort
SELECT 91 * + + ( - - 73 )
----
6643

query I rowsort
SELECT DISTINCT 72 * - 37 + - NULLIF ( 93, - 73 ) + 67 AS col2
----
-2690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6583
SELECT ALL - 82 * 94 * CAST( 54 AS SIGNED ) + + MIN( DISTINCT - 5 )
----
-416237

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - 82 * 94 * CAST ( 54 AS INTEGER ) + + MIN ( DISTINCT - 5 )
----
-416237

query I rowsort
SELECT COALESCE ( - 28, + + 79 * - 20 ) AS col1
----
-28

query I rowsort
SELECT - + 14 * + 12
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6586
SELECT + CASE 72 WHEN COUNT( * ) - + COALESCE ( 95 + 80 * 56, 15 + 92 * + 56, 28 * + 30 + - COUNT( * ) / - AVG ( DISTINCT - CAST( + 96 AS SIGNED ) ) ) THEN NULL WHEN + CASE MIN( + 91 ) WHEN + 41 THEN COALESCE ( 29, + ( CASE - COUNT( * ) WHEN 23 THEN + 91 - + 70 WHEN + 91 THEN 4 ELSE NULL END ), 75 ) END - 51 * - 62 THEN 8 / 80 ELSE + 55 END
----
55

skipif mysql # not compatible
query I rowsort label-6586
SELECT + CASE 72 WHEN COUNT ( * ) - + COALESCE ( 95 + 80 * 56, 15 + 92 * + 56, 28 * + 30 + - COUNT ( * ) / - AVG ( DISTINCT - CAST ( + 96 AS INTEGER ) ) ) THEN NULL WHEN + CASE MIN ( + 91 ) WHEN + 41 THEN COALESCE ( 29, + ( CASE - COUNT ( * ) WHEN 23 THEN + 91 - + 70 WHEN + 91 THEN 4 ELSE NULL END ), 75 ) END - 51 * - 62 THEN 8 / 80 ELSE + 55 END
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6587
SELECT ALL + + 57 * 9 DIV + - 40 col0
----
-12

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL + + 57 * 9 / + - 40 col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6588
SELECT ALL + - 54 * + - 38 - - CAST( - 21 AS SIGNED ) + 62 DIV 38 col2
----
2032

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL + - 54 * + - 38 - - CAST ( - 21 AS INTEGER ) + 62 / 38 col2
----
2032

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT COUNT( * ) * + ( - - 4 ) * ( + ( ( + ( 36 ) ) ) ) + 4
----
148

skipif mysql # not compatible
query I rowsort label-6589
SELECT COUNT ( * ) * + ( - - 4 ) * ( + ( ( + ( 36 ) ) ) ) + 4
----
148

query I rowsort
SELECT ALL + - ( - 54 ) AS col2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT DISTINCT + 20 DIV 79 + - 43 + 33 col0
----
-10

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT + 20 / 79 + - 43 + 33 col0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-6592
SELECT ALL + COUNT( * ), 6 AS col0
----
1
6

skipif mysql # not compatible
query II rowsort label-6592
SELECT ALL + COUNT ( * ), 6 AS col0
----
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT DISTINCT + + MIN( ALL - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT + + MIN ( ALL - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL - COUNT( + + 99 ) * + + MAX( DISTINCT 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL - COUNT ( + + 99 ) * + + MAX ( DISTINCT 11 ) AS col2
----
-11

query I rowsort
SELECT - 10 * - 23 * + 43 - 41 col2
----
9849

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ALL + SUM( - - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL + SUM ( - - 34 )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6597
SELECT 58 AS col0, 18 * 28 * + COUNT( * ) + + 85
----
58
589

skipif mysql # not compatible
query II rowsort label-6597
SELECT 58 AS col0, 18 * 28 * + COUNT ( * ) + + 85
----
58
589

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT + 85 * + + CASE + 69 WHEN COUNT( * ) + 73 * 89 THEN 84 ELSE - 95 END + + SUM( 94 + - ( + 94 ) * - 24 ) AS col0
----
-5725

skipif mysql # not compatible
query I rowsort label-6598
SELECT + 85 * + + CASE + 69 WHEN COUNT ( * ) + 73 * 89 THEN 84 ELSE - 95 END + + SUM ( 94 + - ( + 94 ) * - 24 ) AS col0
----
-5725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6599
SELECT - - NULLIF ( - 94, + + 33 ) DIV + NULLIF ( 24, COUNT( * ) * 47 + 22 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6599
SELECT - - NULLIF ( - 94, + + 33 ) / + NULLIF ( 24, COUNT ( * ) * 47 + 22 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT + - 32 * + + COUNT( * ) + + - 70
----
-102

skipif mysql # not compatible
query I rowsort label-6600
SELECT + - 32 * + + COUNT ( * ) + + - 70
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL - ( - 92 ) * COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL - ( - 92 ) * COUNT ( * ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT + + COALESCE ( + 72, - SUM( ALL 53 ) )
----
72

skipif mysql # not compatible
query I rowsort label-6602
SELECT + + COALESCE ( + 72, - SUM ( ALL 53 ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT + 51 + + - COUNT( * ) + + COALESCE ( 50, - 85 ) * - ( ( + 56 ) ) * + 19
----
-53150

skipif mysql # not compatible
query I rowsort label-6603
SELECT + 51 + + - COUNT ( * ) + + COALESCE ( 50, - 85 ) * - ( ( + 56 ) ) * + 19
----
-53150

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT DISTINCT + 24 * - - 71 * - COUNT( * ) AS col1
----
-1704

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT + 24 * - - 71 * - COUNT ( * ) AS col1
----
-1704

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT ALL SUM( DISTINCT 79 ) + + ( + 38 ) - 8 * 59
----
-355

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL SUM ( DISTINCT 79 ) + + ( + 38 ) - 8 * 59
----
-355

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT + 9 * - + MIN( + 78 ) AS col1
----
-702

skipif mysql # not compatible
query I rowsort label-6606
SELECT + 9 * - + MIN ( + 78 ) AS col1
----
-702

query I rowsort
SELECT ALL 38 + 80 AS col2
----
118

query I rowsort
SELECT - CASE + + 56 WHEN - + 84 THEN + - 37 WHEN 66 THEN 22 * 65 WHEN - 24 THEN 40 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL - 97 + - CASE 22 WHEN - 90 * 86 + COALESCE ( 80, COALESCE ( 84, 92 + 58, + 27 ) - 85 ) THEN + COUNT( * ) - + 54 * 5 ELSE + 1 * - 66 END * 88
----
5711

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL - 97 + - CASE 22 WHEN - 90 * 86 + COALESCE ( 80, COALESCE ( 84, 92 + 58, + 27 ) - 85 ) THEN + COUNT ( * ) - + 54 * 5 ELSE + 1 * - 66 END * 88
----
5711

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) + + 9
----
11

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + + 9
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT + COUNT( * ) - + 79
----
-78

skipif mysql # not compatible
query I rowsort label-6611
SELECT + COUNT ( * ) - + 79
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-6612
SELECT ALL 78 + + 39 DIV - 68 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL 78 + + 39 / - 68 AS col2
----
78

query II rowsort
SELECT + 84 - 26, 23 AS col1
----
58
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL + COUNT( * ) * 82 col2
----
82

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + COUNT ( * ) * 82 col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6615
SELECT ALL NULLIF ( - - COALESCE ( + - CAST( + - 22 AS SIGNED ), - 1 ), 24 * 57 )
----
22

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL NULLIF ( - - COALESCE ( + - CAST ( + - 22 AS INTEGER ), - 1 ), 24 * 57 )
----
22

query I rowsort
SELECT ALL 42 + 7 + 70 - + - 0
----
119

query I rowsort
SELECT DISTINCT COALESCE ( + 5, - 87 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL + 99 + COUNT( ALL + + 68 ) * + 90 * + 16 - + 59 AS col0
----
1480

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL + 99 + COUNT ( ALL + + 68 ) * + 90 * + 16 - + 59 AS col0
----
1480

query I rowsort
SELECT - 30 - + 16 * - 32 AS col0
----
482

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ALL COUNT( * ) * - ( - 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL COUNT ( * ) * - ( - 87 ) AS col2
----
87

query I rowsort
SELECT - 6 - - - ( + 32 ) * - 8 AS col1
----
250

query I rowsort
SELECT - ( - + 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6623
SELECT + CAST( + + 17 AS SIGNED ) + + 87 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-6623
SELECT + CAST ( + + 17 AS INTEGER ) + + 87 AS col2
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6624
SELECT - 0 * COUNT( * ) DIV - + ( 96 )
----
0

skipif mysql # not compatible
query I rowsort label-6624
SELECT - 0 * COUNT ( * ) / - + ( 96 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT - 71 + NULLIF ( - 97, - 46 ) DIV 31
----
-74

skipif mysql # not compatible
query I rowsort label-6625
SELECT - 71 + NULLIF ( - 97, - 46 ) / 31
----
-74

query I rowsort
SELECT 94 * + 65 + - - 90 + 38 + + 83 col2
----
6321

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6627
SELECT DISTINCT + 72 DIV SUM( DISTINCT - 9 ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + 72 / SUM ( DISTINCT - 9 ) / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT - 63 * NULLIF ( + ( + 92 ), + 93 / COUNT( * ) + COUNT( * ) * 23 )
----
-5796

skipif mysql # not compatible
query I rowsort label-6628
SELECT - 63 * NULLIF ( + ( + 92 ), + 93 / COUNT ( * ) + COUNT ( * ) * 23 )
----
-5796

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT DISTINCT + 91 * - MIN( - + 56 )
----
5096

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT + 91 * - MIN ( - + 56 )
----
5096

query I rowsort
SELECT ALL - 33 * + + ( + + NULLIF ( + 1, 13 ) ) AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6631
SELECT + CAST( - 97 AS SIGNED ) AS col1, ( CASE + 41 WHEN 54 THEN NULLIF ( + MAX( ALL - 20 ), - 19 ) END ) * + CASE 50 * - 36 WHEN - ( COUNT( * ) ) - 97 THEN - 74 ELSE + 42 + + 26 END AS col0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-6631
SELECT + CAST ( - 97 AS INTEGER ) AS col1, ( CASE + 41 WHEN 54 THEN NULLIF ( + MAX ( ALL - 20 ), - 19 ) END ) * + CASE 50 * - 36 WHEN - ( COUNT ( * ) ) - 97 THEN - 74 ELSE + 42 + + 26 END AS col0
----
-97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6632
SELECT - - 53 + - 97 DIV - 17 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6632
SELECT - - 53 + - 97 / - 17 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT - - NULLIF ( COALESCE ( - 20, + + ( COUNT( * ) ) * 60 - + SUM( DISTINCT 30 ) ), 22 ) * - 45 AS col1
----
900

skipif mysql # not compatible
query I rowsort label-6633
SELECT - - NULLIF ( COALESCE ( - 20, + + ( COUNT ( * ) ) * 60 - + SUM ( DISTINCT 30 ) ), 22 ) * - 45 AS col1
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL + + 37 * + CASE + 37 WHEN + 47 + COUNT( * ) THEN NULL WHEN + 54 * 16 + - NULLIF ( + 24, 56 ) THEN NULL ELSE - 37 END + + 60 * - 37
----
-3589

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + + 37 * + CASE + 37 WHEN + 47 + COUNT ( * ) THEN NULL WHEN + 54 * 16 + - NULLIF ( + 24, 56 ) THEN NULL ELSE - 37 END + + 60 * - 37
----
-3589

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT + 26 * + + COALESCE ( - + COUNT( * ), - 1 + 15 * ( 47 ), - NULLIF ( 46, + 52 * ( 40 ) - 12 ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-6635
SELECT + 26 * + + COALESCE ( - + COUNT ( * ), - 1 + 15 * ( 47 ), - NULLIF ( 46, + 52 * ( 40 ) - 12 ) ) AS col2
----
-26

query I rowsort
SELECT - 66 + - CASE 89 WHEN 32 THEN 34 + + 84 END + + 85 * 46 * 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT DISTINCT 12 * 15 * + COALESCE ( + COUNT( * ), 89 * - COUNT( 46 ) ) + 66 col0
----
246

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT 12 * 15 * + COALESCE ( + COUNT ( * ), 89 * - COUNT ( 46 ) ) + 66 col0
----
246

query I rowsort
SELECT DISTINCT - 4 * - 21 + - + 5 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL 62 * + COUNT( ALL + - 11 ) * - + COUNT( * ) + 58
----
-4

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL 62 * + COUNT ( ALL + - 11 ) * - + COUNT ( * ) + 58
----
-4

query II rowsort
SELECT + + 9 - + 13 AS col0, 2
----
-4
2

query I rowsort
SELECT + 79 * + ( - - 25 )
----
1975

query I rowsort
SELECT ALL 9 * - 37 * 5 * 79 + 99
----
-131436

query I rowsort
SELECT - 8 + - 82 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT - MAX( - 65 ) + - 85 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-6644
SELECT - MAX ( - 65 ) + - 85 AS col1
----
-20

query I rowsort
SELECT + 90 - + 45 * - ( 30 ) + - 74 AS col2
----
1366

query I rowsort
SELECT DISTINCT 96 * + + 77
----
7392

query I rowsort
SELECT + 61 + - 87
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6648
SELECT ALL 21, + COALESCE ( + 53, NULLIF ( - 16, 77 / + MIN( - CAST( NULL AS DECIMAL ) * 61 ) ) ) * 72 AS col1
----
21
3816

skipif mysql # not compatible
query II rowsort label-6648
SELECT ALL 21, + COALESCE ( + 53, NULLIF ( - 16, 77 / + MIN ( - CAST ( NULL AS REAL ) * 61 ) ) ) * 72 AS col1
----
21
3816

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT + ( COUNT( * ) ) + - 66 * + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-6649
SELECT + ( COUNT ( * ) ) + - 66 * + COUNT ( * )
----
-65

query I rowsort
SELECT DISTINCT 1 + - ( + 0 ) + 80 + + + 14 + + 51
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6651
SELECT ALL 25 - - 47 + - - NULLIF ( - 57, - COUNT( * ) ) DIV 6 * - 73
----
729

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL 25 - - 47 + - - NULLIF ( - 57, - COUNT ( * ) ) / 6 * - 73
----
729

query I rowsort
SELECT 1 + + - 93 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6653
SELECT CAST( NULL AS SIGNED ) + - 16 + + CASE + 24 WHEN + 90 THEN NULL WHEN - 94 THEN CAST( + 38 AS SIGNED ) + + 59 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT CAST ( NULL AS INTEGER ) + - 16 + + CASE + 24 WHEN + 90 THEN NULL WHEN - 94 THEN CAST ( + 38 AS INTEGER ) + + 59 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT COUNT( * ) + + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-6654
SELECT COUNT ( * ) + + - 99
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL 89 - + - ( COUNT( * ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL 89 - + - ( COUNT ( * ) ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT DISTINCT COUNT( * ) - 43 * - - 20
----
-859

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT COUNT ( * ) - 43 * - - 20
----
-859

query I rowsort
SELECT ALL ( + 51 ) * - 17 + + 44 col0
----
-823

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT ALL - 43 * 37 + - 78 * COUNT( * )
----
-1669

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL - 43 * 37 + - 78 * COUNT ( * )
----
-1669

onlyif mysql # aggregate syntax: 
query II rowsort label-6659
SELECT DISTINCT + 22, + COUNT( * ) + - 29 + 82 + + + SUM( ALL 87 ) * + 34 AS col0
----
22
3012

skipif mysql # not compatible
query II rowsort label-6659
SELECT DISTINCT + 22, + COUNT ( * ) + - 29 + 82 + + + SUM ( ALL 87 ) * + 34 AS col0
----
22
3012

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT DISTINCT - MIN( DISTINCT - 40 ) * CASE - 8 WHEN + 28 THEN + 5 ELSE 48 END + + 40 * - 43 AS col1
----
200

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT - MIN ( DISTINCT - 40 ) * CASE - 8 WHEN + 28 THEN + 5 ELSE 48 END + + 40 * - 43 AS col1
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6661
SELECT COUNT( * ) * - CAST( - + 90 AS SIGNED ) + + 28
----
118

skipif mysql # not compatible
query I rowsort label-6661
SELECT COUNT ( * ) * - CAST ( - + 90 AS INTEGER ) + + 28
----
118

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6662
SELECT 73 DIV COALESCE ( + 11, - CAST( NULL AS SIGNED ), 66 )
----
6

skipif mysql # not compatible
query I rowsort label-6662
SELECT 73 / COALESCE ( + 11, - CAST ( NULL AS INTEGER ), 66 )
----
6

query I rowsort
SELECT DISTINCT - - 53 AS col0
----
53

query I rowsort
SELECT NULLIF ( 25, + - 21 + 81 + - + 39 * - 89 ) AS col1
----
25

query I rowsort
SELECT + 39 * + 7 - + - CASE 2 WHEN 72 THEN 68 - 57 * 9 END * + 17
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6666
SELECT ALL - COUNT( * ) DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL - COUNT ( * ) / + 62 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6667
SELECT + 50 DIV MIN( DISTINCT - + 91 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6667
SELECT + 50 / MIN ( DISTINCT - + 91 ) AS col1
----
0

query I rowsort
SELECT DISTINCT - 99 + - 11 + - 4 * - 21
----
-26

query I rowsort
SELECT ALL - + ( + 70 ) col1
----
-70

query I rowsort
SELECT DISTINCT + - 10 + + 94 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT ALL - 44 + + + 79 + ( - COUNT( - 37 ) ) + + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL - 44 + + + 79 + ( - COUNT ( - 37 ) ) + + COUNT ( * )
----
35

query I rowsort
SELECT ALL + + 60 + + 43
----
103

query II rowsort
SELECT + 69, - 10 AS col0
----
69
-10

query I rowsort
SELECT ALL - + ( ( - + ( + 49 ) ) ) AS col1
----
49

query I rowsort
SELECT DISTINCT - + 80 + + 22 AS col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6676
SELECT 6 * - - CAST( NULL AS SIGNED ) * - MIN( - ( 42 ) ) * 62 - + 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT 6 * - - CAST ( NULL AS INTEGER ) * - MIN ( - ( 42 ) ) * 62 - + 33 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6677
SELECT + 42 AS col1, + 23 * CAST( NULL AS SIGNED ) + - + NULLIF ( + COUNT( * ), 23 / COUNT( * ) ) AS col2
----
42
NULL

skipif mysql # not compatible
query II rowsort label-6677
SELECT + 42 AS col1, + 23 * CAST ( NULL AS INTEGER ) + - + NULLIF ( + COUNT ( * ), 23 / COUNT ( * ) ) AS col2
----
42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6678
SELECT ALL + 97 + + CAST( - 87 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL + 97 + + CAST ( - 87 AS INTEGER )
----
10

query I rowsort
SELECT 66 * + 59
----
3894

query II rowsort
SELECT + 59 AS col0, ( 27 ) + - 21 AS col0
----
59
6

query I rowsort
SELECT ALL - COALESCE ( + 26, + NULLIF ( + 55, 96 ), + - 79, + ( - 28 ) ) AS col1
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6682
SELECT ALL 49 - 96 DIV 42 + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL 49 - 96 / 42 + - COUNT ( * )
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6683
SELECT 4 * - CAST( + 28 AS SIGNED )
----
-112

skipif mysql # not compatible
query I rowsort label-6683
SELECT 4 * - CAST ( + 28 AS INTEGER )
----
-112

query I rowsort
SELECT 81 * 52 * + + 74
----
311688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT 91 - + + 0 / + + 4 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT 91 - + + 0 / + + 4 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 94 * - ( + + 34 ) AS col0
----
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6687
SELECT COUNT( * ) DIV + 99 * - - 54
----
0

skipif mysql # not compatible
query I rowsort label-6687
SELECT COUNT ( * ) / + 99 * - - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT ALL SUM( ALL + - 46 ) * 88 AS col1
----
-4048

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL SUM ( ALL + - 46 ) * 88 AS col1
----
-4048

query I rowsort
SELECT ALL ( - 96 ) * 13 AS col1
----
-1248

query I rowsort
SELECT NULLIF ( + 31, ( - 93 ) ) + - + 39 AS col1
----
-8

query II rowsort
SELECT 53 AS col1, - 93 AS col2
----
53
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6692
SELECT 19 * CAST( - - 95 AS SIGNED ) AS col0
----
1805

skipif mysql # not compatible
query I rowsort label-6692
SELECT 19 * CAST ( - - 95 AS INTEGER ) AS col0
----
1805

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT DISTINCT - NULLIF ( - + COALESCE ( + - 6, NULLIF ( 88, - - 44 + 44 ) + COUNT( * ), 16 ), + 9 - + AVG ( - 80 ) * - 53 ) * 95
----
-570

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT - NULLIF ( - + COALESCE ( + - 6, NULLIF ( 88, - - 44 + 44 ) + COUNT ( * ), 16 ), + 9 - + AVG ( - 80 ) * - 53 ) * 95
----
-570

query I rowsort
SELECT ALL + 55 * - - 36 * - 30
----
-59400

query I rowsort
SELECT ALL ( + - 37 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6696
SELECT 11 + 22 + + 46 * - + 85 AS col0, 79 - + CAST( NULL AS SIGNED ) / + 48
----
-3877
NULL

skipif mysql # not compatible
query II rowsort label-6696
SELECT 11 + 22 + + 46 * - + 85 AS col0, 79 - + CAST ( NULL AS INTEGER ) / + 48
----
-3877
NULL

query I rowsort
SELECT - 59 - + - 1
----
-58

query I rowsort
SELECT 0 + 90 - 74 AS col0
----
16

query II rowsort
SELECT + - 31 AS col0, 8
----
-31
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6700
SELECT + 19, - 76 - + + COUNT( 29 ) + COUNT( * ) + + - CAST( NULL AS SIGNED ) * + 0 / COUNT( * ) * 12 AS col2
----
19
NULL

skipif mysql # not compatible
query II rowsort label-6700
SELECT + 19, - 76 - + + COUNT ( 29 ) + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * + 0 / COUNT ( * ) * 12 AS col2
----
19
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT + - COUNT( + - 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-6701
SELECT + - COUNT ( + - 26 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6702
SELECT ALL CAST( NULL AS SIGNED ) * + + 61 - 25 + + - 78 * - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL CAST ( NULL AS INTEGER ) * + + 61 - 25 + + - 78 * - 0 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6703
SELECT + 75 col2, CAST( NULL AS SIGNED ) + + 61
----
75
NULL

skipif mysql # not compatible
query II rowsort label-6703
SELECT + 75 col2, CAST ( NULL AS INTEGER ) + + 61
----
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6704
SELECT ALL - 24 * - ( CAST( NULL AS DECIMAL ) ) + + + CASE 66 WHEN - COALESCE ( + COUNT( * ), 55, 10 * - 47 ) THEN NULL WHEN - COUNT( * ) * - 28 THEN NULL ELSE - 50 END + - 38 * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL - 24 * - ( CAST ( NULL AS REAL ) ) + + + CASE 66 WHEN - COALESCE ( + COUNT ( * ), 55, 10 * - 47 ) THEN NULL WHEN - COUNT ( * ) * - 28 THEN NULL ELSE - 50 END + - 38 * - 42 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6705
SELECT ALL - 90, ( - - CAST( NULL AS SIGNED ) ) AS col1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-6705
SELECT ALL - 90, ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
-90
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT - 84 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-6706
SELECT - 84 / + 91
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6707
SELECT DISTINCT + ( + 55 ) * + + 24 + - 13 + + - COUNT( * ) * + + 97 - 72 DIV - ( - 98 + + 76 * + 52 )
----
1210

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT + ( + 55 ) * + + 24 + - 13 + + - COUNT ( * ) * + + 97 - 72 / - ( - 98 + + 76 * + 52 )
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL COUNT( * ) * - 96 + + + 95 * - 88 AS col0
----
-8456

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL COUNT ( * ) * - 96 + + + 95 * - 88 AS col0
----
-8456

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT DISTINCT - - COUNT( DISTINCT 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT - - COUNT ( DISTINCT 81 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT + CASE + 93 WHEN + + 24 THEN + 90 ELSE ( + 71 ) * - 45 END * NULLIF ( + 34, COUNT( * ) ) + - 76 * + 24
----
-110454

skipif mysql # not compatible
query I rowsort label-6710
SELECT + CASE + 93 WHEN + + 24 THEN + 90 ELSE ( + 71 ) * - 45 END * NULLIF ( + 34, COUNT ( * ) ) + - 76 * + 24
----
-110454

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL 67 - COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL 67 - COUNT ( * ) AS col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT - 90 DIV 86 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6712
SELECT - 90 / 86 AS col2
----
-1

query I rowsort
SELECT + NULLIF ( - 10, - 64 ) * - 34 AS col2
----
340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6714
SELECT ALL MIN( + 96 ) AS col2, + CAST( + 4 AS SIGNED )
----
96
4

skipif mysql # not compatible
query II rowsort label-6714
SELECT ALL MIN ( + 96 ) AS col2, + CAST ( + 4 AS INTEGER )
----
96
4

query I rowsort
SELECT - 84 + + - 44
----
-128

query I rowsort
SELECT DISTINCT - 95 * - 34
----
3230

query II rowsort
SELECT - 71 + 59 AS col2, 4 + - + 58 - 45 * - 42 AS col2
----
-12
1836

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6718
SELECT - SUM( DISTINCT CAST( NULL AS DECIMAL ) ) - + 93 + - 6 + - 30 * COUNT( ALL - - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT - SUM ( DISTINCT CAST ( NULL AS REAL ) ) - + 93 + - 6 + - 30 * COUNT ( ALL - - 32 )
----
NULL

query I rowsort
SELECT - 36 * 84 * - 4 AS col1
----
12096

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT ALL COALESCE ( - 53, + - SUM( DISTINCT - 7 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL COALESCE ( - 53, + - SUM ( DISTINCT - 7 ) ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT - 48 + + 78 * - MAX( - 71 )
----
5490

skipif mysql # not compatible
query I rowsort label-6721
SELECT - 48 + + 78 * - MAX ( - 71 )
----
5490

query I rowsort
SELECT ALL - 4 * - - 11 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT MIN( + ( 47 ) )
----
47

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT MIN ( + ( 47 ) )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL CASE - - ( + COUNT( * ) ) WHEN - ( + COUNT( * ) ) - + CASE + 26 WHEN - 4 * + 58 + - 79 / 46 THEN + 68 END + 76 THEN ( 84 ) WHEN 18 / - 58 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL CASE - - ( + COUNT ( * ) ) WHEN - ( + COUNT ( * ) ) - + CASE + 26 WHEN - 4 * + 58 + - 79 / 46 THEN + 68 END + 76 THEN ( 84 ) WHEN 18 / - 58 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - ( 95 ) )
----
-95

query II rowsort
SELECT - 0 * 37 AS col1, - NULLIF ( 73, ( + + ( + - 92 ) ) ) col2
----
0
-73

query I rowsort
SELECT ALL - 77 + + 25
----
-52

query I rowsort
SELECT DISTINCT + + 6 + - 74
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT + 57 + + 16 * + 42 * + - MAX( - 63 ) + + 55 AS col1
----
42448

skipif mysql # not compatible
query I rowsort label-6729
SELECT + 57 + + 16 * + 42 * + - MAX ( - 63 ) + + 55 AS col1
----
42448

query I rowsort
SELECT DISTINCT + - 31 + 25 + 46 * 29 * + 65 * + + 75 * 12
----
78038994

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT - - 5 * + + SUM( - 9 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6731
SELECT - - 5 * + + SUM ( - 9 ) AS col0
----
-45

query I rowsort
SELECT DISTINCT + COALESCE ( + CASE + - 0 WHEN + 86 THEN - 53 * - + 13 * - + ( + 67 ) + 8 * + 69 END, 99 * - 47 )
----
-4653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6733
SELECT - + COUNT( * ) * + 75 DIV - + 20
----
3

skipif mysql # not compatible
query I rowsort label-6733
SELECT - + COUNT ( * ) * + 75 / - + 20
----
3

query I rowsort
SELECT ALL 76 + + + 89
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT DISTINCT + + SUM( + - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6735
SELECT DISTINCT + + SUM ( + - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT + ( - COUNT( * ) ) * + + 98
----
-98

skipif mysql # not compatible
query I rowsort label-6736
SELECT + ( - COUNT ( * ) ) * + + 98
----
-98

query I rowsort
SELECT - 3 + COALESCE ( - 44, - 79, COALESCE ( - - 91, 57 + - 22, - 89 + 44 ) ) * 79 AS col1
----
-3479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6738
SELECT + 73 * + + 95 col1, 82 * + + CAST( + - 77 AS SIGNED ) * - NULLIF ( - 68, + COUNT( * ) )
----
6935
-429352

skipif mysql # not compatible
query II rowsort label-6738
SELECT + 73 * + + 95 col1, 82 * + + CAST ( + - 77 AS INTEGER ) * - NULLIF ( - 68, + COUNT ( * ) )
----
6935
-429352

onlyif mysql # aggregate syntax: 
query II rowsort label-6739
SELECT + + 98 * - 44 AS col1, + COUNT( * )
----
-4312
1

skipif mysql # not compatible
query II rowsort label-6739
SELECT + + 98 * - 44 AS col1, + COUNT ( * )
----
-4312
1

query I rowsort
SELECT + COALESCE ( - - 89, - - 3 - - 13 - 51 ) AS col0
----
89

query I rowsort
SELECT ALL 20 * 97
----
1940

query II rowsort
SELECT DISTINCT + 33 AS col0, - 85
----
33
-85

query I rowsort
SELECT + ( - 53 ) AS col1
----
-53

query I rowsort
SELECT - 40 * - 5 - - 89
----
289

onlyif mysql # aggregate syntax: 
query II rowsort label-6745
SELECT ALL COUNT( ALL - + 63 ) * + 95 AS col2, + 50
----
95
50

skipif mysql # not compatible
query II rowsort label-6745
SELECT ALL COUNT ( ALL - + 63 ) * + 95 AS col2, + 50
----
95
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT + ( 47 ) * + 23 * ( - - ( + - COUNT( * ) ) ) + + - 26 AS col0
----
-1107

skipif mysql # not compatible
query I rowsort label-6746
SELECT + ( 47 ) * + 23 * ( - - ( + - COUNT ( * ) ) ) + + - 26 AS col0
----
-1107

query I rowsort
SELECT + 84 * + 78
----
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT CASE + + 10 WHEN - - COUNT( * ) THEN + + 61 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT CASE + + 10 WHEN - - COUNT ( * ) THEN + + 61 END
----
NULL

query II rowsort
SELECT DISTINCT + 77, 98 * - 88 AS col2
----
77
-8624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6750
SELECT ALL + NULLIF ( - - COUNT( ALL + + 70 ), + - 84 ) DIV - 65
----
0

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL + NULLIF ( - - COUNT ( ALL + + 70 ), + - 84 ) / - 65
----
0

query II rowsort
SELECT DISTINCT 85 AS col1, - 66
----
85
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT ALL COALESCE ( + NULLIF ( + - 65, COUNT( * ) ), + 92 )
----
-65

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL COALESCE ( + NULLIF ( + - 65, COUNT ( * ) ), + 92 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6753
SELECT - 0 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6753
SELECT - 0 / - COUNT ( * )
----
0

query I rowsort
SELECT + 88 + 51 AS col2
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-6755
SELECT COUNT( * ), 34 col2
----
1
34

skipif mysql # not compatible
query II rowsort label-6755
SELECT COUNT ( * ), 34 col2
----
1
34

query I rowsort
SELECT ALL - 73 + - - 87 * - 84 AS col2
----
-7381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT - CAST( + - 37 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-6757
SELECT - CAST ( + - 37 AS INTEGER )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT - - ( SUM( - 12 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-6758
SELECT - - ( SUM ( - 12 ) )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6759
SELECT + 80 - - - MIN( ALL + 50 ) AS col2, MIN( + 95 ) * - 27 - + + 92 DIV - + MIN( + 90 )
----
30
-2564

skipif mysql # not compatible
query II rowsort label-6759
SELECT + 80 - - - MIN ( ALL + 50 ) AS col2, MIN ( + 95 ) * - 27 - + + 92 / - + MIN ( + 90 )
----
30
-2564

query II rowsort
SELECT - + 15 AS col2, + 73
----
-15
73

query I rowsort
SELECT - 7 + 58 AS col0
----
51

query I rowsort
SELECT DISTINCT - ( - 96 ) * + 87 * + 42 col0
----
350784

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT DISTINCT - COUNT( 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT - COUNT ( 83 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT - + MIN( 95 ) + 6 * - 91 col1
----
-641

skipif mysql # not compatible
query I rowsort label-6764
SELECT - + MIN ( 95 ) + 6 * - 91 col1
----
-641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT - - CAST( + 49 AS SIGNED ) * + 89 AS col0
----
4361

skipif mysql # not compatible
query I rowsort label-6765
SELECT - - CAST ( + 49 AS INTEGER ) * + 89 AS col0
----
4361

onlyif mysql # aggregate syntax: 
query II rowsort label-6766
SELECT + 21, MIN( DISTINCT - 44 ) + + + COALESCE ( - 33, + 22 * - 96 ) AS col2
----
21
-77

skipif mysql # not compatible
query II rowsort label-6766
SELECT + 21, MIN ( DISTINCT - 44 ) + + + COALESCE ( - 33, + 22 * - 96 ) AS col2
----
21
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6767
SELECT - - 18 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6767
SELECT - - 18 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 61 * + - 2 * - 59 * + 18 AS col0
----
-129564

query I rowsort
SELECT + 93 * ( + 33 )
----
3069

query I rowsort
SELECT - 65 * + NULLIF ( - + ( + 47 ), + 58 * 83 ) + - - COALESCE ( - + 65, 20 + 90 )
----
2990

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT ALL - SUM( - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL - SUM ( - 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT - MIN( + 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-6772
SELECT - MIN ( + 33 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT DISTINCT + 21 * - 59 AS col1, COUNT( * ) + COUNT( * ) AS col1
----
-1239
2

skipif mysql # not compatible
query II rowsort label-6773
SELECT DISTINCT + 21 * - 59 AS col1, COUNT ( * ) + COUNT ( * ) AS col1
----
-1239
2

query I rowsort
SELECT 75 + - 79 AS col0
----
-4

query I rowsort
SELECT 85 * - 5 + + 73 AS col2
----
-352

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT - COUNT( * ) * - + 68 + 19
----
87

skipif mysql # not compatible
query I rowsort label-6776
SELECT - COUNT ( * ) * - + 68 + 19
----
87

query I rowsort
SELECT 10 + + - 93 * 64 AS col1
----
-5942

query I rowsort
SELECT NULLIF ( + - 2, + 9 * - 86 ) + + ( + ( - 74 ) ) AS col0
----
-76

query I rowsort
SELECT ALL + 77 + + - 77 + - 95 + - 93 * - + 57 * - - 19 + + 3
----
100627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6780
SELECT DISTINCT CAST( + 97 AS SIGNED ) * 23
----
2231

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT CAST ( + 97 AS INTEGER ) * 23
----
2231

onlyif mysql # aggregate syntax: 
query II rowsort label-6781
SELECT ALL 12 + 25 + + 46 * - - COUNT( * ) col1, 97 AS col0
----
83
97

skipif mysql # not compatible
query II rowsort label-6781
SELECT ALL 12 + 25 + + 46 * - - COUNT ( * ) col1, 97 AS col0
----
83
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6782
SELECT DISTINCT 24 + - 11 + - CAST( NULL AS SIGNED ) * + + 26 col0, ( - - 23 ) + - 70 * 28 + + 49 * CASE + ( 81 ) WHEN - 93 THEN NULL WHEN - 41 THEN - 52 * 70 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6782
SELECT DISTINCT 24 + - 11 + - CAST ( NULL AS INTEGER ) * + + 26 col0, ( - - 23 ) + - 70 * 28 + + 49 * CASE + ( 81 ) WHEN - 93 THEN NULL WHEN - 41 THEN - 52 * 70 END
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6783
SELECT COALESCE ( ( + 93 ), - ( COUNT( * ) ), + - COUNT( * ) DIV - 58 * - 62 ) * - + 13 AS col1
----
-1209

skipif mysql # not compatible
query I rowsort label-6783
SELECT COALESCE ( ( + 93 ), - ( COUNT ( * ) ), + - COUNT ( * ) / - 58 * - 62 ) * - + 13 AS col1
----
-1209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6784
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( CAST( - - COUNT( * ) AS SIGNED ) AS SIGNED ), + 36 AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-6784
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( CAST ( - - COUNT ( * ) AS INTEGER ) AS INTEGER ), + 36 AS col1
----
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT COUNT( * ) + + - 55 * 62 + - 38 + + 21 AS col1
----
-3426

skipif mysql # not compatible
query I rowsort label-6785
SELECT COUNT ( * ) + + - 55 * 62 + - 38 + + 21 AS col1
----
-3426

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT COUNT( * ) * + 69 + + NULLIF ( + 22, 11 )
----
91

skipif mysql # not compatible
query I rowsort label-6786
SELECT COUNT ( * ) * + 69 + + NULLIF ( + 22, 11 )
----
91

query I rowsort
SELECT 83 - - - COALESCE ( 47, - 89 ) col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT 86 + 59 + + COUNT( * ) * - 16 + + + 35 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-6788
SELECT 86 + 59 + + COUNT ( * ) * - 16 + + + 35 AS col2
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6789
SELECT ALL - + COUNT( * ) DIV - 37 + + 73
----
73

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - + COUNT ( * ) / - 37 + + 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ALL - ( + 7 ) + - NULLIF ( + 41, - 85 ) * COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL - ( + 7 ) + - NULLIF ( + 41, - 85 ) * COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6791
SELECT + 28 + - + 55 DIV + MIN( + + 66 ) * + 94 - 68
----
-40

skipif mysql # not compatible
query I rowsort label-6791
SELECT + 28 + - + 55 / + MIN ( + + 66 ) * + 94 - 68
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT MIN( - 9 ) + 90 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-6792
SELECT MIN ( - 9 ) + 90 AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT 42 * - 41 DIV - + 41 * + 1 - - 88 * 91
----
8050

skipif mysql # not compatible
query I rowsort label-6793
SELECT 42 * - 41 / - + 41 * + 1 - - 88 * 91
----
8050

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT - 94 * - COUNT( * ), 94 AS col1
----
94
94

skipif mysql # not compatible
query II rowsort label-6794
SELECT - 94 * - COUNT ( * ), 94 AS col1
----
94
94

query I rowsort
SELECT 32 * - + 71 * COALESCE ( 80, - 8 * 38, - 57 ) AS col1
----
-181760

query I rowsort
SELECT DISTINCT + - 59 - 32 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT COUNT( * ) * - 65 * 39 AS col1
----
-2535

skipif mysql # not compatible
query I rowsort label-6797
SELECT COUNT ( * ) * - 65 * 39 AS col1
----
-2535

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT ALL SUM( - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6798
SELECT ALL SUM ( - 49 ) AS col2
----
-49

query I rowsort
SELECT 8 * 31 + - ( 86 )
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-6800
SELECT 29 DIV + - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6800
SELECT 29 / + - 39 AS col1
----
0

query I rowsort
SELECT 0 * - 2 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6802
SELECT ALL - 18 * + COALESCE ( + COALESCE ( - NULLIF ( - MAX( ALL 10 ), - 32 ), ( 62 ) + + - 5 ), COALESCE ( - 23, 95 ) DIV + COUNT( * ) + - 18 ) * 36
----
-6480

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL - 18 * + COALESCE ( + COALESCE ( - NULLIF ( - MAX ( ALL 10 ), - 32 ), ( 62 ) + + - 5 ), COALESCE ( - 23, 95 ) / + COUNT ( * ) + - 18 ) * 36
----
-6480

onlyif mysql # DIV for integer division: 
query I rowsort label-6803
SELECT 19 DIV + 5 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6803
SELECT 19 / + 5 AS col2
----
3

query I rowsort
SELECT ALL - 45 + - 42
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6805
SELECT DISTINCT + CASE 40 WHEN - 91 - - - 92 + 1 THEN - COUNT( * ) ELSE + 50 - + + 95 DIV + 7 END + 76 + 42 * + 95
----
4103

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT + CASE 40 WHEN - 91 - - - 92 + 1 THEN - COUNT ( * ) ELSE + 50 - + + 95 / + 7 END + 76 + 42 * + 95
----
4103

query I rowsort
SELECT ALL 13 + - - 77
----
90

query II rowsort
SELECT + 34, 32 AS col1
----
34
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6808
SELECT 45 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT 45 / - 74 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6809
SELECT ALL + ( - CASE + 78 WHEN - + 6 THEN + 72 * - - 2 * - 24 - - + 4 ELSE + CAST( NULL AS SIGNED ) * - COUNT( * ) END ) + + 99 / + 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT ALL + ( - CASE + 78 WHEN - + 6 THEN + 72 * - - 2 * - 24 - - + 4 ELSE + CAST ( NULL AS INTEGER ) * - COUNT ( * ) END ) + + 99 / + 52 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 12 + + + 14
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT ALL - CAST( 36 AS SIGNED ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL - CAST ( 36 AS INTEGER ) col2
----
-36

query I rowsort
SELECT + COALESCE ( 71, 63 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL MIN( + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL MIN ( + 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6814
SELECT DISTINCT COALESCE ( + 51, - 6, - + SUM( ALL + - CAST( + 74 AS SIGNED ) ) ) * + 90 col0
----
4590

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT COALESCE ( + 51, - 6, - + SUM ( ALL + - CAST ( + 74 AS INTEGER ) ) ) * + 90 col0
----
4590

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT DISTINCT - + MAX( ALL + 3 ) - - 87
----
84

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT - + MAX ( ALL + 3 ) - - 87
----
84

query I rowsort
SELECT + NULLIF ( 84, 65 )
----
84

query I rowsort
SELECT ALL 42 * 1
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6818
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, + 65 * + 66 AS col0
----
NULL
4290

skipif mysql # not compatible
query II rowsort label-6818
SELECT ALL + CAST ( NULL AS REAL ) AS col0, + 65 * + 66 AS col0
----
NULL
4290

query I rowsort
SELECT 80 + - 40 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT - 69 * + 49 * 45 + + COUNT( ALL 2 ) AS col2
----
-152144

skipif mysql # not compatible
query I rowsort label-6820
SELECT - 69 * + 49 * 45 + + COUNT ( ALL 2 ) AS col2
----
-152144

query II rowsort
SELECT - - 70, 51 AS col1
----
70
51

query I rowsort
SELECT ALL 9 * + 43 AS col1
----
387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6823
SELECT SUM( DISTINCT + - 42 ) - + CAST( + 87 AS SIGNED ) + + 13
----
-116

skipif mysql # not compatible
query I rowsort label-6823
SELECT SUM ( DISTINCT + - 42 ) - + CAST ( + 87 AS INTEGER ) + + 13
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT NULLIF ( + COUNT( DISTINCT + 38 ), - 53 ) * - - ( - + 39 ) * 37 + - 19 - - 55
----
-1407

skipif mysql # not compatible
query I rowsort label-6824
SELECT NULLIF ( + COUNT ( DISTINCT + 38 ), - 53 ) * - - ( - + 39 ) * 37 + - 19 - - 55
----
-1407

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL - MAX( DISTINCT - + 24 ) col2
----
24

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - MAX ( DISTINCT - + 24 ) col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6826
SELECT + + 16 + + COALESCE ( - ( 37 ), - COUNT( * ), + - AVG ( + 90 ) * - COUNT( * ) DIV - 60 * + ( + 34 ) ) + ( - 2 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-6826
SELECT + + 16 + + COALESCE ( - ( 37 ), - COUNT ( * ), + - AVG ( + 90 ) * - COUNT ( * ) / - 60 * + ( + 34 ) ) + ( - 2 ) AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6827
SELECT + 14 DIV + + CAST( + 26 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6827
SELECT + 14 / + + CAST ( + 26 AS INTEGER ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT + - 41 + + 93 DIV - 70 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6828
SELECT + - 41 + + 93 / - 70 AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6829
SELECT + 42 - 78 * - SUM( + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6829
SELECT + 42 - 78 * - SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6830
SELECT + 81 DIV + SUM( DISTINCT - 8 )
----
-10

skipif mysql # not compatible
query I rowsort label-6830
SELECT + 81 / + SUM ( DISTINCT - 8 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL COUNT( * ) + ( + 65 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL COUNT ( * ) + ( + 65 ) AS col0
----
66

query I rowsort
SELECT 22 * + + 20 + 63
----
503

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL - COUNT( * ) * - - ( - 71 ) col1
----
71

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL - COUNT ( * ) * - - ( - 71 ) col1
----
71

query I rowsort
SELECT + 49 * + 56
----
2744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6835
SELECT ALL COUNT( * ) * 31 DIV + CAST( 16 AS SIGNED ) + - 29
----
-28

skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL COUNT ( * ) * 31 / + CAST ( 16 AS INTEGER ) + - 29
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-6836
SELECT DISTINCT + 87 AS col2, COUNT( * ) * + + 54 AS col0
----
87
54

skipif mysql # not compatible
query II rowsort label-6836
SELECT DISTINCT + 87 AS col2, COUNT ( * ) * + + 54 AS col0
----
87
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT DISTINCT + MIN( + + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT + MIN ( + + 3 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6838
SELECT - 19 * - - ( - AVG ( - CAST( NULL AS SIGNED ) ) ) AS col2, SUM( ALL - 52 ) AS col1
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-6838
SELECT - 19 * - - ( - AVG ( - CAST ( NULL AS INTEGER ) ) ) AS col2, SUM ( ALL - 52 ) AS col1
----
NULL
-52

query I rowsort
SELECT - COALESCE ( 98, - 83 * 39 * + + 71 + - 9, - - 35 ) * - 12 + + ( + - 65 )
----
1111

query II rowsort
SELECT COALESCE ( + + ( - 27 ), - 9 * + - 68 + 51 ) AS col1, + 39 AS col0
----
-27
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT 59 * COUNT( * ) DIV - - 49 + COUNT( ALL 42 )
----
2

skipif mysql # not compatible
query I rowsort label-6841
SELECT 59 * COUNT ( * ) / - - 49 + COUNT ( ALL 42 )
----
2

query I rowsort
SELECT NULLIF ( + 51, 13 * 29 ) AS col2
----
51

query I rowsort
SELECT ALL + 59 * + 88 * 93 + + 15
----
482871

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT 78 * + SUM( - 9 ) * - COUNT( * ) + + ( - 2 ) + - - 97 * - 88 col0
----
-7836

skipif mysql # not compatible
query I rowsort label-6844
SELECT 78 * + SUM ( - 9 ) * - COUNT ( * ) + + ( - 2 ) + - - 97 * - 88 col0
----
-7836

query I rowsort
SELECT - 89 * + 87 + + 96 AS col1
----
-7647

query I rowsort
SELECT - 18 * + 14 AS col0
----
-252

query I rowsort
SELECT - 35 + - - 71 * + 60 AS col2
----
4225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6848
SELECT ALL - COUNT( * ) DIV 84 AS col0, + MAX( - 24 ) * + - NULLIF ( - 84, - + 94 ) + + - 14
----
0
-2030

skipif mysql # not compatible
query II rowsort label-6848
SELECT ALL - COUNT ( * ) / 84 AS col0, + MAX ( - 24 ) * + - NULLIF ( - 84, - + 94 ) + + - 14
----
0
-2030

onlyif mysql # DIV for integer division: 
query I rowsort label-6849
SELECT + 1 * + 92 + - 47 - - + 75 DIV + 46 - - + 10 * + 15 AS col0
----
196

skipif mysql # not compatible
query I rowsort label-6849
SELECT + 1 * + 92 + - 47 - - + 75 / + 46 - - + 10 * + 15 AS col0
----
196

onlyif mysql # aggregate syntax: 
query II rowsort label-6850
SELECT DISTINCT + COUNT( * ) AS col1, 55 col0
----
1
55

skipif mysql # not compatible
query II rowsort label-6850
SELECT DISTINCT + COUNT ( * ) AS col1, 55 col0
----
1
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6851
SELECT + 22 AS col1, 18 * + 32 + + NULLIF ( NULLIF ( 85, - + COUNT( * ) + - + COALESCE ( - - 43, - - ( + 15 ) ) - - 33 ), 73 ) * 37
----
22
3721

skipif mysql # not compatible
query II rowsort label-6851
SELECT + 22 AS col1, 18 * + 32 + + NULLIF ( NULLIF ( 85, - + COUNT ( * ) + - + COALESCE ( - - 43, - - ( + 15 ) ) - - 33 ), 73 ) * 37
----
22
3721

query I rowsort
SELECT ALL - 91 * - 82 * - + 46
----
-343252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6853
SELECT + - 5 + - - NULLIF ( + 85, 85 * - COUNT( * ) ) + + 79 DIV - + MAX( NULLIF ( 62, - 26 ) ) col0
----
79

skipif mysql # not compatible
query I rowsort label-6853
SELECT + - 5 + - - NULLIF ( + 85, 85 * - COUNT ( * ) ) + + 79 / - + MAX ( NULLIF ( 62, - 26 ) ) col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6854
SELECT ALL + CAST( NULL AS SIGNED ) / + COALESCE ( 21, + ( 19 ) - 88 ) * + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL + CAST ( NULL AS INTEGER ) / + COALESCE ( 21, + ( 19 ) - 88 ) * + - 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6855
SELECT + CAST( NULL AS SIGNED ) AS col0, - 78
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-6855
SELECT + CAST ( NULL AS INTEGER ) AS col0, - 78
----
NULL
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT + + COUNT( * ) + - - 53 + 94 * COUNT( * )
----
148

skipif mysql # not compatible
query I rowsort label-6856
SELECT + + COUNT ( * ) + - - 53 + 94 * COUNT ( * )
----
148

query I rowsort
SELECT + 33 * - ( - - COALESCE ( - 6, 21, 8 ) ) + - 8 + + - 20 AS col0
----
170

query II rowsort
SELECT - 12 AS col1, 86
----
-12
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT + 26 + + 73 * - 76 + - 55 + - - COUNT( * ) * + MIN( DISTINCT + 77 ) - + 81 * - 88 AS col2
----
1628

skipif mysql # not compatible
query I rowsort label-6859
SELECT + 26 + + 73 * - 76 + - 55 + - - COUNT ( * ) * + MIN ( DISTINCT + 77 ) - + 81 * - 88 AS col2
----
1628

query I rowsort
SELECT - CASE + 52 WHEN 14 THEN + + 44 * 6 + - + 43 + 9 ELSE - 91 END AS col2
----
91

query I rowsort
SELECT - 70 * 0
----
0

query I rowsort
SELECT + 39 + - - 32 - - - 48 AS col0
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-6863
SELECT + 35 col1, 7 DIV + 93
----
35
0

skipif mysql # not compatible
query II rowsort label-6863
SELECT + 35 col1, 7 / + 93
----
35
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6864
SELECT + - 87 DIV - ( + 98 ) + 83 + + 54 + + - COUNT( - 39 ) col2
----
136

skipif mysql # not compatible
query I rowsort label-6864
SELECT + - 87 / - ( + 98 ) + 83 + + 54 + + - COUNT ( - 39 ) col2
----
136

query II rowsort
SELECT 55 AS col0, 96 + - 82 + + 1 AS col2
----
55
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT - + ( - - SUM( DISTINCT - - 85 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-6866
SELECT - + ( - - SUM ( DISTINCT - - 85 ) )
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-6867
SELECT DISTINCT - COUNT( * ) + + - 31 AS col2, - 73 - - + 94
----
-32
21

skipif mysql # not compatible
query II rowsort label-6867
SELECT DISTINCT - COUNT ( * ) + + - 31 AS col2, - 73 - - + 94
----
-32
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT - CASE - 16 WHEN - 91 * - - COUNT( * ) THEN - ( + 36 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6868
SELECT - CASE - 16 WHEN - 91 * - - COUNT ( * ) THEN - ( + 36 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 45 + 25 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ALL 14 + + ( COUNT( * ) ) + + 18 + - 75 * - - 4
----
-267

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL 14 + + ( COUNT ( * ) ) + + 18 + - 75 * - - 4
----
-267

query I rowsort
SELECT DISTINCT 37 + 42 AS col1
----
79

query I rowsort
SELECT ALL ( + 62 ) + + 68 col2
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6873
SELECT + 72 + - CAST( NULL AS SIGNED ) - 5 * 35 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT + 72 + - CAST ( NULL AS INTEGER ) - 5 * 35 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT CAST( - ( - - 22 ) AS SIGNED ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-6874
SELECT CAST ( - ( - - 22 ) AS INTEGER ) col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6875
SELECT CAST( - CASE - 65 WHEN + 84 THEN - - ( + 55 ) / + NULLIF ( + + ( + + COUNT( * ) ), - + 16 ) / 69 + + + CAST( 52 AS SIGNED ) ELSE + ( + 46 ) * 76 END AS SIGNED ) col0
----
-3496

skipif mysql # not compatible
query I rowsort label-6875
SELECT CAST ( - CASE - 65 WHEN + 84 THEN - - ( + 55 ) / + NULLIF ( + + ( + + COUNT ( * ) ), - + 16 ) / 69 + + + CAST ( 52 AS INTEGER ) ELSE + ( + 46 ) * 76 END AS INTEGER ) col0
----
-3496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6876
SELECT ALL 22 DIV - COUNT( * ) - + 91
----
-113

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL 22 / - COUNT ( * ) - + 91
----
-113

query I rowsort
SELECT - ( 71 ) AS col1
----
-71

query II rowsort
SELECT - 85 * 28, 0 * 26 * - 53 AS col2
----
-2380
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT + - 15 * + - COUNT( * ) + - - 43
----
58

skipif mysql # not compatible
query I rowsort label-6879
SELECT + - 15 * + - COUNT ( * ) + - - 43
----
58

query I rowsort
SELECT + + NULLIF ( + 90, + 47 ) AS col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6881
SELECT 9 DIV + + COALESCE ( + 44, 71 ) * + - ( - - 27 )
----
0

skipif mysql # not compatible
query I rowsort label-6881
SELECT 9 / + + COALESCE ( + 44, 71 ) * + - ( - - 27 )
----
0

query I rowsort
SELECT + 21 * - 69
----
-1449

onlyif mysql # DIV for integer division: 
query II rowsort label-6883
SELECT DISTINCT 48 DIV 41, 16 - - - 34 DIV 90 + + - 12 AS col1
----
1
4

skipif mysql # not compatible
query II rowsort label-6883
SELECT DISTINCT 48 / 41, 16 - - - 34 / 90 + + - 12 AS col1
----
1
4

query I rowsort
SELECT - 88 * - + 69 + 59 + + 28 * 77 AS col1
----
8287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6885
SELECT + + CAST( NULL AS SIGNED ) * - + 82 * - 70 + - - 87 - NULLIF ( - CASE 31 WHEN + - 54 THEN NULL WHEN - AVG ( 64 ) THEN - COUNT( ALL + 23 ) - + ( - 47 ) END, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT + + CAST ( NULL AS INTEGER ) * - + 82 * - 70 + - - 87 - NULLIF ( - CASE 31 WHEN + - 54 THEN NULL WHEN - AVG ( 64 ) THEN - COUNT ( ALL + 23 ) - + ( - 47 ) END, COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6886
SELECT + 40 + - + CAST( NULL AS DECIMAL ) + + 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT + 40 + - + CAST ( NULL AS REAL ) + + 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT - COALESCE ( - - 88, - + 66 + - 53 + COUNT( * ), 80 ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-6887
SELECT - COALESCE ( - - 88, - + 66 + - 53 + COUNT ( * ), 80 ) col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT + 27 * - + SUM( DISTINCT - 82 ) + + 23 AS col1
----
2237

skipif mysql # not compatible
query I rowsort label-6888
SELECT + 27 * - + SUM ( DISTINCT - 82 ) + + 23 AS col1
----
2237

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT + COUNT( * ) * - COUNT( DISTINCT 30 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6889
SELECT + COUNT ( * ) * - COUNT ( DISTINCT 30 ) AS col2
----
-1

query III rowsort
SELECT ALL + + 10 + 10 AS col2, + 64 AS col1, 62
----
20
64
62

query I rowsort
SELECT 58 + 57 * 22 AS col2
----
1312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6892
SELECT DISTINCT - + 80 + - 0 + COUNT( * ) + + + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT - + 80 + - 0 + COUNT ( * ) + + + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT 13 + 79 + + + COUNT( * ) - 46 col0
----
47

skipif mysql # not compatible
query I rowsort label-6893
SELECT 13 + 79 + + + COUNT ( * ) - 46 col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL + 58 + COUNT( * ) - - - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL + 58 + COUNT ( * ) - - - COUNT ( * )
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6895
SELECT ALL 55 AS col2, 96 * CAST( NULL AS DECIMAL ) AS col2
----
55
NULL

skipif mysql # not compatible
query II rowsort label-6895
SELECT ALL 55 AS col2, 96 * CAST ( NULL AS REAL ) AS col2
----
55
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6896
SELECT ALL 96 + NULLIF ( - 41, - 72 * - CAST( NULL AS SIGNED ) ) col0
----
55

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL 96 + NULLIF ( - 41, - 72 * - CAST ( NULL AS INTEGER ) ) col0
----
55

query I rowsort
SELECT DISTINCT + 14 * 94 col0
----
1316

query I rowsort
SELECT ALL 60 - + 88 * - + 69 AS col0
----
6132

onlyif mysql # DIV for integer division: 
query II rowsort label-6899
SELECT 70, 39 + 59 + + 53 DIV 86 AS col2
----
70
98

skipif mysql # not compatible
query II rowsort label-6899
SELECT 70, 39 + 59 + + 53 / 86 AS col2
----
70
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6900
SELECT ( 92 ) * + - 41 AS col2, - 97 * ( MAX( ALL + CAST( NULL AS SIGNED ) ) ) + CAST( NULL AS SIGNED ) AS col2
----
-3772
NULL

skipif mysql # not compatible
query II rowsort label-6900
SELECT ( 92 ) * + - 41 AS col2, - 97 * ( MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) + CAST ( NULL AS INTEGER ) AS col2
----
-3772
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT DISTINCT - MIN( 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT - MIN ( 6 )
----
-6

query II rowsort
SELECT ALL 82 - - + 79 * 98 AS col2, 27 * + 91 AS col2
----
7824
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT 34 + - COUNT( * ) + + 48 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-6903
SELECT 34 + - COUNT ( * ) + + 48 AS col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6904
SELECT CAST( + 85 AS SIGNED ) + 51 AS col0, 27
----
136
27

skipif mysql # not compatible
query II rowsort label-6904
SELECT CAST ( + 85 AS INTEGER ) + 51 AS col0, 27
----
136
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6905
SELECT CAST( - - COUNT( * ) AS SIGNED ) * + 14 + + 88 * - 54 * 54 * 71 + COUNT( 75 ), + 46 + + + 13 - + + 89 AS col0
----
-18219153
-30

skipif mysql # not compatible
query II rowsort label-6905
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) * + 14 + + 88 * - 54 * 54 * 71 + COUNT ( 75 ), + 46 + + + 13 - + + 89 AS col0
----
-18219153
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-6906
SELECT ALL ( - + 55 ) DIV - 69 col0, - 55 * + + 15 + NULLIF ( - - 34, 39 )
----
0
-791

skipif mysql # not compatible
query II rowsort label-6906
SELECT ALL ( - + 55 ) / - 69 col0, - 55 * + + 15 + NULLIF ( - - 34, 39 )
----
0
-791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT ALL - + CAST( + 43 AS SIGNED ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL - + CAST ( + 43 AS INTEGER ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-6908
SELECT + 17 col1, COUNT( * )
----
17
1

skipif mysql # not compatible
query II rowsort label-6908
SELECT + 17 col1, COUNT ( * )
----
17
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT + COUNT( * ) * + 40 col2
----
40

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT + COUNT ( * ) * + 40 col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6910
SELECT - 45 + 91 * + ( NULLIF ( 29, + NULLIF ( + 12, - 19 * + ( 46 ) + - - 5 * - 77 ) * 53 + 58 ) ) * - 15 - - CAST( + 84 AS SIGNED )
----
-39546

skipif mysql # not compatible
query I rowsort label-6910
SELECT - 45 + 91 * + ( NULLIF ( 29, + NULLIF ( + 12, - 19 * + ( 46 ) + - - 5 * - 77 ) * 53 + 58 ) ) * - 15 - - CAST ( + 84 AS INTEGER )
----
-39546

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6911
SELECT ALL - + 14 AS col1, - 27 DIV + + COUNT( * ) AS col0
----
-14
-27

skipif mysql # not compatible
query II rowsort label-6911
SELECT ALL - + 14 AS col1, - 27 / + + COUNT ( * ) AS col0
----
-14
-27

query II rowsort
SELECT ALL - - 19, + 11 AS col1
----
19
11

query I rowsort
SELECT 55 + - 43 AS col1
----
12

query II rowsort
SELECT ALL - + 98 AS col1, 72 AS col0
----
-98
72

query I rowsort
SELECT + 81 + - 39 + - + 18 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT ALL + COALESCE ( - COUNT( DISTINCT 45 ), - 87, 71 * 12 + 29 ) + 45 + 86
----
130

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL + COALESCE ( - COUNT ( DISTINCT 45 ), - 87, 71 * 12 + 29 ) + 45 + 86
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT NULLIF ( - 49, - 88 ) * COALESCE ( + - ( - 23 ), + CAST( NULL AS SIGNED ) ) AS col2
----
-1127

skipif mysql # not compatible
query I rowsort label-6917
SELECT NULLIF ( - 49, - 88 ) * COALESCE ( + - ( - 23 ), + CAST ( NULL AS INTEGER ) ) AS col2
----
-1127

query I rowsort
SELECT - + 58 * - 81 + - + COALESCE ( 34, 16 * + 6 ) + 87 AS col0
----
4751

query I rowsort
SELECT 24 + + 72 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT ALL 78 + 44 * 54 * - COUNT( * ) + - 11 * - 99
----
-1209

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL 78 + 44 * 54 * - COUNT ( * ) + - 11 * - 99
----
-1209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6921
SELECT DISTINCT COUNT( DISTINCT + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6922
SELECT - COALESCE ( + - 82, + + 32 - + 38, + + ( - 11 ) + + ( + 40 ) + + - ( + + 5 ) DIV - ( 65 ) * - NULLIF ( + COALESCE ( 50, - 79 ), 29 * - 24 + + 37 ) * - 63 ) + ( 24 ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-6922
SELECT - COALESCE ( + - 82, + + 32 - + 38, + + ( - 11 ) + + ( + 40 ) + + - ( + + 5 ) / - ( 65 ) * - NULLIF ( + COALESCE ( 50, - 79 ), 29 * - 24 + + 37 ) * - 63 ) + ( 24 ) AS col0
----
106

query I rowsort
SELECT ALL + 96 + 11 * + 75 AS col0
----
921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6924
SELECT - CASE + + 12 WHEN - + 93 * + 37 THEN - - 7 WHEN 16 + + 55 + + - 1 THEN + 40 ELSE + 29 END / + CAST( NULL AS SIGNED ) / + NULLIF ( + - 82, COUNT( * ) * - AVG ( + 27 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6924
SELECT - CASE + + 12 WHEN - + 93 * + 37 THEN - - 7 WHEN 16 + + 55 + + - 1 THEN + 40 ELSE + 29 END / + CAST ( NULL AS INTEGER ) / + NULLIF ( + - 82, COUNT ( * ) * - AVG ( + 27 ) )
----
NULL

query I rowsort
SELECT ALL + 16 + 83
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT 20 * - COUNT( DISTINCT - 63 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6926
SELECT 20 * - COUNT ( DISTINCT - 63 ) AS col2
----
-20

query I rowsort
SELECT DISTINCT + 45 - + 54
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-6928
SELECT 29 DIV - 78, + 54 AS col1
----
0
54

skipif mysql # not compatible
query II rowsort label-6928
SELECT 29 / - 78, + 54 AS col1
----
0
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT 64 / - 94 * - - 5 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6929
SELECT 64 / - 94 * - - 5 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6930
SELECT ALL - CASE + + 95 WHEN - 22 THEN + 71 - 12 ELSE NULL END / - + CAST( 14 AS SIGNED ) + + ( + + ( + 27 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL - CASE + + 95 WHEN - 22 THEN + 71 - 12 ELSE NULL END / - + CAST ( 14 AS INTEGER ) + + ( + + ( + 27 ) )
----
NULL

query I rowsort
SELECT ALL + 28 - - AVG ( - CASE - 87 WHEN - 10 THEN - 88 * + - CASE + 69 WHEN 95 THEN NULL WHEN - 33 THEN 40 * - COALESCE ( - - ( + + 52 ), 79 ) END WHEN 41 * 83 THEN 49 END ) AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - 28, - 47 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT COUNT( + 67 ) * - - 21 + - - 23 col2
----
44

skipif mysql # not compatible
query I rowsort label-6933
SELECT COUNT ( + 67 ) * - - 21 + - - 23 col2
----
44

query I rowsort
SELECT 34 * - 27 AS col2
----
-918

query I rowsort
SELECT + 27 * + 55 + + - 64
----
1421

query I rowsort
SELECT DISTINCT + 83 * + 30 AS col0
----
2490

query II rowsort
SELECT ALL + 65 * 34, 29 * + 98 AS col1
----
2210
2842

query I rowsort
SELECT 53 * - - 1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6939
SELECT + 52 DIV - COALESCE ( - 92, - 58 ) * - 36 * + ( + 97 ) + - + 20 + + MIN( + ( - 78 ) ) - + - 29 col2
----
-69

skipif mysql # not compatible
query I rowsort label-6939
SELECT + 52 / - COALESCE ( - 92, - 58 ) * - 36 * + ( + 97 ) + - + 20 + + MIN ( + ( - 78 ) ) - + - 29 col2
----
-69

query I rowsort
SELECT ALL - - 43 * 76 AS col2
----
3268

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6941
SELECT ALL - - 77 * + NULLIF ( + + 73, AVG ( - 90 ) * + 50 ) / - 9 + 19 + + - 71 + - 96 * + - 32 + + 58 * - 88 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL - - 77 * + NULLIF ( + + 73, AVG ( - 90 ) * + 50 ) / - 9 + 19 + + - 71 + - 96 * + - 32 + + 58 * - 88 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT - 9 DIV - 63 + + 32
----
32

skipif mysql # not compatible
query I rowsort label-6942
SELECT - 9 / - 63 + + 32
----
32

query I rowsort
SELECT + 79 * - + 82
----
-6478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6944
SELECT ALL - 47 * + CASE + COUNT( * ) WHEN + 16 THEN NULL WHEN 22 * - COUNT( * ) THEN NULL ELSE + + COUNT( * ) DIV - MIN( + 66 ) + - - 34 END - 13 + ( + 7 ) * + 68 + - 66
----
-1201

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL - 47 * + CASE + COUNT ( * ) WHEN + 16 THEN NULL WHEN 22 * - COUNT ( * ) THEN NULL ELSE + + COUNT ( * ) / - MIN ( + 66 ) + - - 34 END - 13 + ( + 7 ) * + 68 + - 66
----
-1201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6945
SELECT + CAST( - 40 AS SIGNED ) * NULLIF ( 96, - 23 - + 16 * - 68 * 82 * - + AVG ( DISTINCT - 71 ) / CASE - + 20 WHEN - - 5 * - MIN( ALL 30 ) THEN - 89 + + 99 * - CAST( 52 * - 66 + 87 AS SIGNED ) WHEN NULLIF ( + CASE + 34 WHEN - COUNT( * ) * + 43 THEN NULL ELSE - 95 END, 95 ) THEN ( MAX( ALL 29 ) ) WHEN COUNT( * ) * COALESCE ( COALESCE ( - 50, - CAST( - 42 AS SIGNED ) ), - 1 - + SUM( - 58 ) ) THEN + 55 * + 56 END + - 64 * COUNT( * ) ) AS col0
----
-3840

skipif mysql # not compatible
query I rowsort label-6945
SELECT + CAST ( - 40 AS INTEGER ) * NULLIF ( 96, - 23 - + 16 * - 68 * 82 * - + AVG ( DISTINCT - 71 ) / CASE - + 20 WHEN - - 5 * - MIN ( ALL 30 ) THEN - 89 + + 99 * - CAST ( 52 * - 66 + 87 AS INTEGER ) WHEN NULLIF ( + CASE + 34 WHEN - COUNT ( * ) * + 43 THEN NULL ELSE - 95 END, 95 ) THEN ( MAX ( ALL 29 ) ) WHEN COUNT ( * ) * COALESCE ( COALESCE ( - 50, - CAST ( - 42 AS INTEGER ) ), - 1 - + SUM ( - 58 ) ) THEN + 55 * + 56 END + - 64 * COUNT ( * ) ) AS col0
----
-3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6946
SELECT + - 82 * 0 - CAST( + 87 AS SIGNED ) + + + 14 - + + 21 * COALESCE ( + MIN( + 20 ), - COALESCE ( + 28, + 20 + + COUNT( * ) * 55 + + 1, ( 7 ) ) * 35 ) * 34 + + 40 AS col1
----
-14313

skipif mysql # not compatible
query I rowsort label-6946
SELECT + - 82 * 0 - CAST ( + 87 AS INTEGER ) + + + 14 - + + 21 * COALESCE ( + MIN ( + 20 ), - COALESCE ( + 28, + 20 + + COUNT ( * ) * 55 + + 1, ( 7 ) ) * 35 ) * 34 + + 40 AS col1
----
-14313

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT + + 5 - COUNT( * ) + 42
----
46

skipif mysql # not compatible
query I rowsort label-6947
SELECT + + 5 - COUNT ( * ) + 42
----
46

query I rowsort
SELECT + + 0 * - 30 col2
----
0

query I rowsort
SELECT ALL + 36 * - - 81 AS col1
----
2916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6950
SELECT + - COUNT( * ) * + NULLIF ( 10, + 31 ) + + 19 * MAX( DISTINCT + + CAST( 27 AS SIGNED ) ) * - - 17 - MIN( - + 22 )
----
8733

skipif mysql # not compatible
query I rowsort label-6950
SELECT + - COUNT ( * ) * + NULLIF ( 10, + 31 ) + + 19 * MAX ( DISTINCT + + CAST ( 27 AS INTEGER ) ) * - - 17 - MIN ( - + 22 )
----
8733

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL 38 * ( + 8 ) + MAX( DISTINCT 89 )
----
393

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL 38 * ( + 8 ) + MAX ( DISTINCT 89 )
----
393

onlyif mysql # aggregate syntax: 
query II rowsort label-6952
SELECT ( + + 31 ) AS col2, - 27 + SUM( DISTINCT + COALESCE ( 44, COALESCE ( + 26, 82 ) ) ) * 77 * 95
----
31
321833

skipif mysql # not compatible
query II rowsort label-6952
SELECT ( + + 31 ) AS col2, - 27 + SUM ( DISTINCT + COALESCE ( 44, COALESCE ( + 26, 82 ) ) ) * 77 * 95
----
31
321833

query I rowsort
SELECT ALL - 76 * + - 16
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT DISTINCT - 17 - - MAX( ALL + - ( + 3 ) ) + ( + 30 ) * COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT - 17 - - MAX ( ALL + - ( + 3 ) ) + ( + 30 ) * COUNT ( * ) AS col1
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6955
SELECT + 73 + + + CAST( NULL AS DECIMAL ) + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT + 73 + + + CAST ( NULL AS REAL ) + 40
----
NULL

query I rowsort
SELECT + 49 + 79
----
128

query I rowsort
SELECT + 67 * + + 69
----
4623

onlyif mysql # aggregate syntax: 
query III rowsort label-6958
SELECT DISTINCT COUNT( * ) col2, + 91 * - 82 AS col2, + COUNT( * ) AS col0
----
1
-7462
1

skipif mysql # not compatible
query III rowsort label-6958
SELECT DISTINCT COUNT ( * ) col2, + 91 * - 82 AS col2, + COUNT ( * ) AS col0
----
1
-7462
1

query I rowsort
SELECT + 43 + - + 57 * 57 AS col1
----
-3206

query I rowsort
SELECT ALL - 69 * + - 24 * 93 AS col2
----
154008

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT + 19 + + NULLIF ( + 96, - - ( 28 ) + + 18 ) + COUNT( * ) + - ( + + 66 ) + 31 + 78 * - - 71
----
5619

skipif mysql # not compatible
query I rowsort label-6961
SELECT + 19 + + NULLIF ( + 96, - - ( 28 ) + + 18 ) + COUNT ( * ) + - ( + + 66 ) + 31 + 78 * - - 71
----
5619

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT + SUM( ALL 69 ) + - 75 * - 98 AS col1
----
7419

skipif mysql # not compatible
query I rowsort label-6962
SELECT + SUM ( ALL 69 ) + - 75 * - 98 AS col1
----
7419

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT ALL CASE + CASE + 67 WHEN COUNT( * ) THEN NULL ELSE + 41 END WHEN 29 * - 53 THEN 25 + + 82 + - ( + 70 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL CASE + CASE + 67 WHEN COUNT ( * ) THEN NULL ELSE + 41 END WHEN 29 * - 53 THEN 25 + + 82 + - ( + 70 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6964
SELECT ALL 77 * + - 4 DIV - 1 AS col0
----
308

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL 77 * + - 4 / - 1 AS col0
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT DISTINCT COUNT( 79 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT COUNT ( 79 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6966
SELECT + 0 * MIN( + ( 89 ) ) * + 81 * 65 AS col1, 26 + 18
----
0
44

skipif mysql # not compatible
query II rowsort label-6966
SELECT + 0 * MIN ( + ( 89 ) ) * + 81 * 65 AS col1, 26 + 18
----
0
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - ( ( + MAX( 56 ) ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-6967
SELECT - ( ( + MAX ( 56 ) ) ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT - ( 0 ) + - COUNT( * ) + + 83
----
82

skipif mysql # not compatible
query I rowsort label-6968
SELECT - ( 0 ) + - COUNT ( * ) + + 83
----
82

query I rowsort
SELECT - ( - + 22 ) col1
----
22

query I rowsort
SELECT ALL - 24 + - ( + - 93 ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT - COUNT( 94 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6971
SELECT - COUNT ( 94 ) AS col1
----
-1

query I rowsort
SELECT - ( - 43 ) * - + 91 + + 11
----
-3902

query I rowsort
SELECT 78 * - 38 + - 86 + - - 78 AS col1
----
-2972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6974
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) DIV + - COUNT( * ) + 84 + + - COUNT( * ) col2
----
84

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) / + - COUNT ( * ) + 84 + + - COUNT ( * ) col2
----
84

query II rowsort
SELECT DISTINCT + + 19 AS col2, 25
----
19
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6976
SELECT + - COALESCE ( + + 69, CASE 33 WHEN - - 47 * + 90 THEN + + 86 WHEN + COALESCE ( CAST( COUNT( * ) AS SIGNED ), + 60 + + - CAST( 28 AS SIGNED ) * + - 97, + - AVG ( ALL 80 ) + - 96 * 81 ) THEN NULL ELSE 1 + - 37 END ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-6976
SELECT + - COALESCE ( + + 69, CASE 33 WHEN - - 47 * + 90 THEN + + 86 WHEN + COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), + 60 + + - CAST ( 28 AS INTEGER ) * + - 97, + - AVG ( ALL 80 ) + - 96 * 81 ) THEN NULL ELSE 1 + - 37 END ) AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6977
SELECT DISTINCT - ( 81 ) DIV + 53 + + - COUNT( * ) + - 83 DIV - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT - ( 81 ) / + 53 + + - COUNT ( * ) + - 83 / - COUNT ( * )
----
81

query I rowsort
SELECT - - COALESCE ( + 88, 78 + + 46 + + 1 ) * - + 27 * + + 77
----
-182952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6979
SELECT ALL + - 82 * + 94 + + 41 + - 35 * 51 * - 69 + 7 * + CASE 25 WHEN 16 THEN 93 WHEN + 94 THEN NULL ELSE NULL END * + + 0 + + - 56 + + 39 * + CAST( + 74 * + 18 + - 67 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL + - 82 * + 94 + + 41 + - 35 * 51 * - 69 + 7 * + CASE 25 WHEN 16 THEN 93 WHEN + 94 THEN NULL ELSE NULL END * + + 0 + + - 56 + + 39 * + CAST ( + 74 * + 18 + - 67 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + - COUNT( * ) * - NULLIF ( 70, - 2 ) - + - CASE + 61 WHEN - COALESCE ( - 51, - 73 + + 18 * + COUNT( * ) + 82, - 82 ) THEN NULL WHEN - - 84 + - 40 * + 91 THEN 16 - NULLIF ( 8, - AVG ( ALL ( 35 ) ) * SUM( DISTINCT - 28 / 50 ) - 36 ) END + - 4 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6980
SELECT + - COUNT ( * ) * - NULLIF ( 70, - 2 ) - + - CASE + 61 WHEN - COALESCE ( - 51, - 73 + + 18 * + COUNT ( * ) + 82, - 82 ) THEN NULL WHEN - - 84 + - 40 * + 91 THEN 16 - NULLIF ( 8, - AVG ( ALL ( 35 ) ) * SUM ( DISTINCT - 28 / 50 ) - 36 ) END + - 4 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT - - 76 * - COUNT( * ) * - 14 * + COUNT( * ) AS col1
----
1064

skipif mysql # not compatible
query I rowsort label-6981
SELECT - - 76 * - COUNT ( * ) * - 14 * + COUNT ( * ) AS col1
----
1064

query I rowsort
SELECT - + 60 + - + 56 AS col2
----
-116

query II rowsort
SELECT DISTINCT + - 82, 97 col2
----
-82
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6984
SELECT DISTINCT - 38 * + - NULLIF ( - CAST( NULL AS SIGNED ), + 66 * + 93 + - COALESCE ( - COUNT( * ), - + ( - 4 ) * - 35 + ( 35 ) * - 19, - ( + 52 ) ) * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT - 38 * + - NULLIF ( - CAST ( NULL AS INTEGER ), + 66 * + 93 + - COALESCE ( - COUNT ( * ), - + ( - 4 ) * - 35 + ( 35 ) * - 19, - ( + 52 ) ) * COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL + + NULLIF ( - 64, - 69 - MIN( - 0 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL + + NULLIF ( - 64, - 69 - MIN ( - 0 ) )
----
-64

query I rowsort
SELECT ALL + - NULLIF ( + 89, 46 + + 36 )
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-6987
SELECT DISTINCT + COUNT( * ) * - 67 * + 26 + NULLIF ( + 58, - + SUM( ALL + + 6 ) ) - 16 - - - ( 75 ) AS col0, 94
----
-1775
94

skipif mysql # not compatible
query II rowsort label-6987
SELECT DISTINCT + COUNT ( * ) * - 67 * + 26 + NULLIF ( + 58, - + SUM ( ALL + + 6 ) ) - 16 - - - ( 75 ) AS col0, 94
----
-1775
94

query I rowsort
SELECT ALL + + 49 col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT - 49 * - SUM( 64 ) col2
----
3136

skipif mysql # not compatible
query I rowsort label-6989
SELECT - 49 * - SUM ( 64 ) col2
----
3136

query I rowsort
SELECT + 55 + + ( + - 94 )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-6991
SELECT - 67 DIV 22 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6991
SELECT - 67 / 22 AS col0
----
-3

query I rowsort
SELECT + 73 * + 66 AS col0
----
4818

query II rowsort
SELECT ALL 4 AS col2, 21 col1
----
4
21

query I rowsort
SELECT - NULLIF ( + 46, - 61 ) AS col0
----
-46

query I rowsort
SELECT DISTINCT 36 * + + 59 * - 84
----
-178416

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT - CASE + 27 WHEN + + COUNT( * ) THEN - COUNT( * ) WHEN + + 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6996
SELECT - CASE + 27 WHEN + + COUNT ( * ) THEN - COUNT ( * ) WHEN + + 67 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT + 77 * + 13 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT + 77 * + 13 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 83 * + 22 AS col0
----
1826

query II rowsort
SELECT 67 AS col1, + ( + 78 ) * - 66
----
67
-5148

onlyif mysql # aggregate syntax: 
query II rowsort label-7000
SELECT 2 col0, COUNT( * ) AS col1
----
2
1

skipif mysql # not compatible
query II rowsort label-7000
SELECT 2 col0, COUNT ( * ) AS col1
----
2
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7001
SELECT ALL 65 + - + CASE + + NULLIF ( CAST( 25 AS SIGNED ), + 52 ) WHEN - 98 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL 65 + - + CASE + + NULLIF ( CAST ( 25 AS INTEGER ), + 52 ) WHEN - 98 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7002
SELECT ALL 24 + CAST( + COUNT( * ) AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL 24 + CAST ( + COUNT ( * ) AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT 63 - - - 27 - - 62 * NULLIF ( + 89, - - 16 + - MIN( - - ( + + 45 ) ) )
----
5554

skipif mysql # not compatible
query I rowsort label-7003
SELECT 63 - - - 27 - - 62 * NULLIF ( + 89, - - 16 + - MIN ( - - ( + + 45 ) ) )
----
5554

query I rowsort
SELECT DISTINCT 94 + - - 87
----
181

query II rowsort
SELECT 83 AS col1, - NULLIF ( + - 11, - - 95 ) * - - 99 AS col2
----
83
1089

query II rowsort
SELECT DISTINCT 43, 62 - + - 69 AS col1
----
43
131

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT ALL 29 + + MAX( + 28 ) * - - 53 * + 32 * + - 14 AS col0
----
-664803

skipif mysql # not compatible
query I rowsort label-7007
SELECT ALL 29 + + MAX ( + 28 ) * - - 53 * + 32 * + - 14 AS col0
----
-664803

query I rowsort
SELECT ALL 85 + + + 93 AS col0
----
178

query II rowsort
SELECT ALL + + 43 + 21, - 75 - 1 AS col1
----
64
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7010
SELECT COUNT( * ) * - 84 * 91 + - 83 * 8 DIV - 64 AS col0
----
-7634

skipif mysql # not compatible
query I rowsort label-7010
SELECT COUNT ( * ) * - 84 * 91 + - 83 * 8 / - 64 AS col0
----
-7634

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT MIN( DISTINCT 73 ) * COUNT( * ) col1
----
73

skipif mysql # not compatible
query I rowsort label-7011
SELECT MIN ( DISTINCT 73 ) * COUNT ( * ) col1
----
73

query I rowsort
SELECT ALL + 61 * - + ( 3 ) AS col2
----
-183

query I rowsort
SELECT ALL + 44 + 86
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL + 0 * + - 66 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL + 0 * + - 66 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7015
SELECT DISTINCT - COUNT( * ) * 93 DIV - 75 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT - COUNT ( * ) * 93 / - 75 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT DISTINCT + ( 99 ) - + COUNT( * ) + - 85 - + - 31 + - 99 * 56
----
-5500

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT + ( 99 ) - + COUNT ( * ) + - 85 - + - 31 + - 99 * 56
----
-5500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7017
SELECT DISTINCT - + COALESCE ( - 99, - - MAX( - - 96 ) + + 36 * + 20 DIV 84 * 91 DIV ( - MIN( + - 87 ) ) ), ( CAST( NULL AS SIGNED ) ) AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-7017
SELECT DISTINCT - + COALESCE ( - 99, - - MAX ( - - 96 ) + + 36 * + 20 / 84 * 91 / ( - MIN ( + - 87 ) ) ), ( CAST ( NULL AS INTEGER ) ) AS col0
----
99
NULL

query I rowsort
SELECT DISTINCT + - 9 - + 37 + + 43
----
-3

query II rowsort
SELECT ALL - 89 AS col0, - 87
----
-89
-87

query II rowsort
SELECT 73 AS col0, 1 AS col0
----
73
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT ALL - MAX( DISTINCT + - 14 ) col1
----
14

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL - MAX ( DISTINCT + - 14 ) col1
----
14

query I rowsort
SELECT + + ( + + 60 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT + + COALESCE ( - 54, ( - ( CASE + COUNT( * ) WHEN 12 * + ( 87 ) THEN 93 + + COUNT( * ) WHEN + 39 * 56 + COUNT( - 97 ) THEN + MIN( ALL 52 ) ELSE + ( 4 ) END ) ) )
----
-54

skipif mysql # not compatible
query I rowsort label-7023
SELECT + + COALESCE ( - 54, ( - ( CASE + COUNT ( * ) WHEN 12 * + ( 87 ) THEN 93 + + COUNT ( * ) WHEN + 39 * 56 + COUNT ( - 97 ) THEN + MIN ( ALL 52 ) ELSE + ( 4 ) END ) ) )
----
-54

query I rowsort
SELECT ALL - ( - 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT - 75 * COUNT( * ) + 13 - + 36
----
-98

skipif mysql # not compatible
query I rowsort label-7025
SELECT - 75 * COUNT ( * ) + 13 - + 36
----
-98

query I rowsort
SELECT 58 * 51 AS col0
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT 29 - - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-7027
SELECT 29 - - COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL - MAX( 59 ) * + 24 AS col0
----
-1416

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - MAX ( 59 ) * + 24 AS col0
----
-1416

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT 48 * - NULLIF ( COALESCE ( + - 16, - 46 + 51 * + SUM( 33 ) ), + 77 ) * + - 40 * - 92
----
2826240

skipif mysql # not compatible
query I rowsort label-7029
SELECT 48 * - NULLIF ( COALESCE ( + - 16, - 46 + 51 * + SUM ( 33 ) ), + 77 ) * + - 40 * - 92
----
2826240

query I rowsort
SELECT ALL + 69 * 56
----
3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7031
SELECT ALL 84 + MAX( + + 71 ) * CAST( NULL AS SIGNED ) - + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL 84 + MAX ( + + 71 ) * CAST ( NULL AS INTEGER ) - + - 29
----
NULL

query II rowsort
SELECT 64 - - 81 AS col0, - 63
----
145
-63

query I rowsort
SELECT ALL + 42 + + - 68 col0
----
-26

query I rowsort
SELECT - 65 * - 14 + + 72 * - + 90 * 99
----
-640610

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT SUM( DISTINCT 21 ) - 2
----
19

skipif mysql # not compatible
query I rowsort label-7035
SELECT SUM ( DISTINCT 21 ) - 2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT 47 + + 41 + - 69 * - COUNT( * )
----
157

skipif mysql # not compatible
query I rowsort label-7036
SELECT 47 + + 41 + - 69 * - COUNT ( * )
----
157

onlyif mysql # DIV for integer division: 
query II rowsort label-7037
SELECT ALL 48 + + + 4 DIV 30 AS col0, + 54
----
48
54

skipif mysql # not compatible
query II rowsort label-7037
SELECT ALL 48 + + + 4 / 30 AS col0, + 54
----
48
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7038
SELECT ( - 77 ) DIV + 76 + + + 89
----
88

skipif mysql # not compatible
query I rowsort label-7038
SELECT ( - 77 ) / + 76 + + + 89
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT ALL 24 + - NULLIF ( + 65, + CASE CAST( NULL AS SIGNED ) WHEN - - COUNT( * ) + + SUM( 57 ) THEN + COUNT( * ) WHEN - + 29 THEN NULL END )
----
-41

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL 24 + - NULLIF ( + 65, + CASE CAST ( NULL AS INTEGER ) WHEN - - COUNT ( * ) + + SUM ( 57 ) THEN + COUNT ( * ) WHEN - + 29 THEN NULL END )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT MAX( ALL + 95 ) + 59 + 86 + + ( - - 0 ) * - CASE COUNT( * ) WHEN 73 * + + 42 * + - ( SUM( - 40 ) ) * 77 + - - 33 / + CASE + 89 WHEN 19 * COUNT( * ) THEN + CASE 51 WHEN 17 * 31 THEN NULL ELSE + ( COUNT( * ) ) END ELSE ( + 75 ) * + 71 - 77 END - + 64 THEN NULL WHEN + 82 THEN + 89 + 59 * 47 ELSE NULL END * + MAX( DISTINCT 47 * 96 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7040
SELECT MAX ( ALL + 95 ) + 59 + 86 + + ( - - 0 ) * - CASE COUNT ( * ) WHEN 73 * + + 42 * + - ( SUM ( - 40 ) ) * 77 + - - 33 / + CASE + 89 WHEN 19 * COUNT ( * ) THEN + CASE 51 WHEN 17 * 31 THEN NULL ELSE + ( COUNT ( * ) ) END ELSE ( + 75 ) * + 71 - 77 END - + 64 THEN NULL WHEN + 82 THEN + 89 + 59 * 47 ELSE NULL END * + MAX ( DISTINCT 47 * 96 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 25 + 83 + - 45 * + 94 AS col2
----
-4122

query I rowsort
SELECT ALL 18 * 78 AS col2
----
1404

query I rowsort
SELECT DISTINCT - 61 + 37 - 71 * + 18
----
-1302

query I rowsort
SELECT ALL + 7 + - 88 * 84
----
-7385

onlyif mysql # DIV for integer division: 
query I rowsort label-7045
SELECT DISTINCT - 52 * 77 DIV + 27 AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT - 52 * 77 / + 27 AS col0
----
-148

query I rowsort
SELECT ALL COALESCE ( 62, - 74, 16 ) + + 88
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ( NULLIF ( - + 46, - - 76 * + 40 * COUNT( * ) - - MIN( + 59 ) + + ( 97 ) * + - COUNT( * ) + 55 / 46 ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7047
SELECT ( NULLIF ( - + 46, - - 76 * + 40 * COUNT ( * ) - - MIN ( + 59 ) + + ( 97 ) * + - COUNT ( * ) + 55 / 46 ) ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT - 89 * COUNT( - 12 ) * + COUNT( * ) + + - 47, - 81 AS col0
----
-136
-81

skipif mysql # not compatible
query II rowsort label-7048
SELECT - 89 * COUNT ( - 12 ) * + COUNT ( * ) + + - 47, - 81 AS col0
----
-136
-81

query I rowsort
SELECT DISTINCT - ( + 73 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL + + 42 * + + COUNT( * ) - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL + + 42 * + + COUNT ( * ) - COUNT ( * ) AS col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7051
SELECT DISTINCT ( + + 91 ) DIV 44 - + - SUM( 59 ) * 37 AS col2
----
2185

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT ( + + 91 ) / 44 - + - SUM ( 59 ) * 37 AS col2
----
2185

query I rowsort
SELECT 52 * 66 - - 0
----
3432

query I rowsort
SELECT ALL - 88 * - 28 * - 49 * - 62
----
7485632

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT DISTINCT - 55 * - 70 + - + ( + + ( + COUNT( - - 29 ) ) )
----
3849

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT - 55 * - 70 + - + ( + + ( + COUNT ( - - 29 ) ) )
----
3849

onlyif mysql # DIV for integer division: 
query II rowsort label-7055
SELECT 96 DIV - 88 AS col2, + 76 * - 4
----
-1
-304

skipif mysql # not compatible
query II rowsort label-7055
SELECT 96 / - 88 AS col2, + 76 * - 4
----
-1
-304

query I rowsort
SELECT - 48 * + + 68 + + + 84
----
-3180

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7057
SELECT ALL 2 * + 55 * 79 - - 23 * - - 93 col0, - ( + AVG ( - CAST( NULL AS DECIMAL ) ) ) AS col1
----
10829
NULL

skipif mysql # not compatible
query II rowsort label-7057
SELECT ALL 2 * + 55 * 79 - - 23 * - - 93 col0, - ( + AVG ( - CAST ( NULL AS REAL ) ) ) AS col1
----
10829
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT DISTINCT - SUM( DISTINCT - - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT - SUM ( DISTINCT - - 96 )
----
-96

query I rowsort
SELECT ALL 2 + + - 21
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL + 37 + + + COUNT( * ) * + 74 col2
----
111

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL + 37 + + + COUNT ( * ) * + 74 col2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7061
SELECT ALL + 38 + MAX( ALL 47 ), + 63 + - 87 - - CAST( NULL AS SIGNED ) + + 90 / - COUNT( * ) + - 22 * + 20 AS col1
----
85
NULL

skipif mysql # not compatible
query II rowsort label-7061
SELECT ALL + 38 + MAX ( ALL 47 ), + 63 + - 87 - - CAST ( NULL AS INTEGER ) + + 90 / - COUNT ( * ) + - 22 * + 20 AS col1
----
85
NULL

query II rowsort
SELECT + 69 AS col1, + 48 + + + 20 * + 94 * 79
----
69
148568

onlyif mysql # aggregate syntax: 
query II rowsort label-7063
SELECT 41 col1, - COUNT( * ) AS col1
----
41
-1

skipif mysql # not compatible
query II rowsort label-7063
SELECT 41 col1, - COUNT ( * ) AS col1
----
41
-1

query I rowsort
SELECT - 18 + - 23
----
-41

query I rowsort
SELECT ALL NULLIF ( - 92, - - 82 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL + 38 + + + 41 * + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL + 38 + + + 41 * + - COUNT ( * )
----
-3

query I rowsort
SELECT ALL - 75 + + ( - ( - - 58 ) ) - + NULLIF ( - 49, - - 99 )
----
-84

query I rowsort
SELECT DISTINCT + 20 * 95 col2
----
1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7069
SELECT - 92 col0, - 50 DIV + 8 + - COUNT( * ) DIV - + 42 col1
----
-92
-6

skipif mysql # not compatible
query II rowsort label-7069
SELECT - 92 col0, - 50 / + 8 + - COUNT ( * ) / - + 42 col1
----
-92
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT - MAX( 26 ) * + 47 AS col1
----
-1222

skipif mysql # not compatible
query I rowsort label-7070
SELECT - MAX ( 26 ) * + 47 AS col1
----
-1222

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7071
SELECT + 43 * - COUNT( * ) DIV 85 - - + 26, 12 AS col1
----
26
12

skipif mysql # not compatible
query II rowsort label-7071
SELECT + 43 * - COUNT ( * ) / 85 - - + 26, 12 AS col1
----
26
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT - 87 - COUNT( * ) + - MAX( - - 24 ) col1
----
-112

skipif mysql # not compatible
query I rowsort label-7072
SELECT - 87 - COUNT ( * ) + - MAX ( - - 24 ) col1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT + + 72 * + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7073
SELECT + + 72 * + COUNT ( * ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7074
SELECT ALL - 52 AS col1, CAST( NULL AS SIGNED ) AS col0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-7074
SELECT ALL - 52 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-52
NULL

query I rowsort
SELECT DISTINCT - ( 55 ) * + 83
----
-4565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7076
SELECT ALL + CAST( + 46 AS SIGNED ) * - COUNT( DISTINCT - + ( 85 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL + CAST ( + 46 AS INTEGER ) * - COUNT ( DISTINCT - + ( 85 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT - + 28 + - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-7077
SELECT - + 28 + - COUNT ( * ) col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7078
SELECT - + CAST( + + 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-7078
SELECT - + CAST ( + + 87 AS INTEGER ) AS col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7079
SELECT - 38 DIV 50 * - COUNT( * ) + + + 38 - 94 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7079
SELECT - 38 / 50 * - COUNT ( * ) + + + 38 - 94 AS col1
----
-56

query I rowsort
SELECT - 89 * 86
----
-7654

query II rowsort
SELECT - 12, + 74 col1
----
-12
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT MAX( ALL - 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-7082
SELECT MAX ( ALL - 74 ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7083
SELECT ALL + CASE + + 69 WHEN - 9 THEN - COUNT( * ) * - 81 * - 44 DIV 37 + COUNT( * ) + + 20 DIV - NULLIF ( + 56, + 30 * + CAST( NULL AS SIGNED ) ) END AS col1, 61 * 42 * 27 DIV 26 AS col0
----
NULL
2660

skipif mysql # not compatible
query II rowsort label-7083
SELECT ALL + CASE + + 69 WHEN - 9 THEN - COUNT ( * ) * - 81 * - 44 / 37 + COUNT ( * ) + + 20 / - NULLIF ( + 56, + 30 * + CAST ( NULL AS INTEGER ) ) END AS col1, 61 * 42 * 27 / 26 AS col0
----
NULL
2660

query I rowsort
SELECT ALL - + 82 * - 6 + + 72 AS col2
----
564

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT + - MAX( ALL 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-7085
SELECT + - MAX ( ALL 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT ALL + 97 * - + 65 * + - COUNT( * ) * - - MAX( ALL + + 60 ) * - 49 * + 32 + - - 98 col2
----
-593174302

skipif mysql # not compatible
query I rowsort label-7086
SELECT ALL + 97 * - + 65 * + - COUNT ( * ) * - - MAX ( ALL + + 60 ) * - 49 * + 32 + - - 98 col2
----
-593174302

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT 5 * ( + + MIN( ALL + 83 ) ) + + 57 * - COUNT( * ) + 68
----
426

skipif mysql # not compatible
query I rowsort label-7087
SELECT 5 * ( + + MIN ( ALL + 83 ) ) + + 57 * - COUNT ( * ) + 68
----
426

query I rowsort
SELECT + 90 * - 52 col2
----
-4680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7089
SELECT CASE - CASE 23 WHEN 72 + + 97 * - 16 THEN NULL WHEN 11 / NULLIF ( - ( + COUNT( * ) ), 3 ) THEN - COUNT( * ) END WHEN + COUNT( * ) THEN NULL WHEN - 38 + - 32 / + AVG ( DISTINCT + - 52 ) * + + 48 * CAST( - ( 52 ) AS SIGNED ) * 93 + + ( + 23 ) THEN COALESCE ( 58, 10 - + ( AVG ( DISTINCT + 75 ) + 41 * - 71 ) * 73, 30 + - 65 * 98 ) WHEN 23 * 41 THEN - ( - 89 ) * 80 WHEN MAX( DISTINCT - CAST( + 39 AS SIGNED ) ) THEN - 33 * 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT CASE - CASE 23 WHEN 72 + + 97 * - 16 THEN NULL WHEN 11 / NULLIF ( - ( + COUNT ( * ) ), 3 ) THEN - COUNT ( * ) END WHEN + COUNT ( * ) THEN NULL WHEN - 38 + - 32 / + AVG ( DISTINCT + - 52 ) * + + 48 * CAST ( - ( 52 ) AS INTEGER ) * 93 + + ( + 23 ) THEN COALESCE ( 58, 10 - + ( AVG ( DISTINCT + 75 ) + 41 * - 71 ) * 73, 30 + - 65 * 98 ) WHEN 23 * 41 THEN - ( - 89 ) * 80 WHEN MAX ( DISTINCT - CAST ( + 39 AS INTEGER ) ) THEN - 33 * 11 END
----
NULL

query I rowsort
SELECT COALESCE ( + 4, 19 ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7091
SELECT DISTINCT + 87 * CAST( NULL AS SIGNED ) / 12 + 74 / + - COALESCE ( - 63, COUNT( * ) + - 9 ) + + 84 * - - 19 + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT + 87 * CAST ( NULL AS INTEGER ) / 12 + 74 / + - COALESCE ( - 63, COUNT ( * ) + - 9 ) + + 84 * - - 19 + + 8 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 54 * - 68 AS col2
----
-3672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT ALL + 15 * - 97 - + + CAST( NULL AS SIGNED ) * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL + 15 * - 97 - + + CAST ( NULL AS INTEGER ) * 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7094
SELECT ALL MAX( - 5 ), MIN( + - 27 ) AS col1
----
-5
-27

skipif mysql # not compatible
query II rowsort label-7094
SELECT ALL MAX ( - 5 ), MIN ( + - 27 ) AS col1
----
-5
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-7095
SELECT + 71 + - SUM( + ( 7 ) ), - 72 - + 75 AS col0
----
64
-147

skipif mysql # not compatible
query II rowsort label-7095
SELECT + 71 + - SUM ( + ( 7 ) ), - 72 - + 75 AS col0
----
64
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7096
SELECT MAX( DISTINCT + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-7096
SELECT MAX ( DISTINCT + 6 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT + COUNT( * ) * COUNT( * ) * - - 48 + - COUNT( * ) AS col1, - 0 + - 97 AS col0
----
47
-97

skipif mysql # not compatible
query II rowsort label-7097
SELECT + COUNT ( * ) * COUNT ( * ) * - - 48 + - COUNT ( * ) AS col1, - 0 + - 97 AS col0
----
47
-97

query I rowsort
SELECT - 53 - - 38
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL - 44 - + - NULLIF ( - - 61, + - 90 * - ( + ( - + 36 ) ) ) * - 73 * + MAX( - 12 ) * 76
----
4061092

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - 44 - + - NULLIF ( - - 61, + - 90 * - ( + ( - + 36 ) ) ) * - 73 * + MAX ( - 12 ) * 76
----
4061092

query I rowsort
SELECT DISTINCT + 15 * + 21 + 70 AS col1
----
385

query I rowsort
SELECT - + ( + 56 ) + 18
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT ALL - + 57 * + MIN( DISTINCT + + 27 ) - + COUNT( * ) + - 82 AS col1
----
-1622

skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL - + 57 * + MIN ( DISTINCT + + 27 ) - + COUNT ( * ) + - 82 AS col1
----
-1622

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7103
SELECT - - 18 + - 96 + + 32 * 1 * + - ( + 26 ) * 3 DIV COUNT( * )
----
-2574

skipif mysql # not compatible
query I rowsort label-7103
SELECT - - 18 + - 96 + + 32 * 1 * + - ( + 26 ) * 3 / COUNT ( * )
----
-2574

query I rowsort
SELECT ALL - + 65 * + 92 AS col0
----
-5980

query I rowsort
SELECT - + 10 col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT COALESCE ( + 53, + CAST( - 1 AS SIGNED ) + CAST( - + ( - 81 ) AS SIGNED ) * 15 * + + CAST( - 96 AS SIGNED ) - + - 10 )
----
53

skipif mysql # not compatible
query I rowsort label-7106
SELECT COALESCE ( + 53, + CAST ( - 1 AS INTEGER ) + CAST ( - + ( - 81 ) AS INTEGER ) * 15 * + + CAST ( - 96 AS INTEGER ) - + - 10 )
----
53

query I rowsort
SELECT DISTINCT - ( 29 ) col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7108
SELECT - - ( 26 ) / + + 25 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - - 40 * + - 40 AS col0, - 26
----
NULL
-26

skipif mysql # not compatible
query II rowsort label-7108
SELECT - - ( 26 ) / + + 25 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - - 40 * + - 40 AS col0, - 26
----
NULL
-26

query I rowsort
SELECT + - 61 * + - 34 * + 90 AS col2
----
186660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT ALL + - 77 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7110
SELECT ALL + - 77 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT - + ( + 10 ) + - + 9 * + - SUM( + + 78 ) - + 28 AS col0
----
664

skipif mysql # not compatible
query I rowsort label-7111
SELECT - + ( + 10 ) + - + 9 * + - SUM ( + + 78 ) - + 28 AS col0
----
664

query I rowsort
SELECT ALL - 5 * - - ( + - 92 ) * - + 48 - - - ( + 27 ) AS col0
----
-22107

onlyif mysql # DIV for integer division: 
query I rowsort label-7113
SELECT ALL - + 5 DIV - - 93 * + + 34 * + 90 + 76 + 55 * - NULLIF ( + 76, + 29 + - ( - 37 ) ) AS col1
----
-4104

skipif mysql # not compatible
query I rowsort label-7113
SELECT ALL - + 5 / - - 93 * + + 34 * + 90 + 76 + 55 * - NULLIF ( + 76, + 29 + - ( - 37 ) ) AS col1
----
-4104

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT DISTINCT - + ( + + 77 ) DIV - 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT - + ( + + 77 ) / - 40 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT ALL 76 DIV 64 + + + 60 + - 87 DIV COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL 76 / 64 + + + 60 + - 87 / COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT - 85 + + + 84
----
-1

query I rowsort
SELECT ALL 72 + 67
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT + 90 * - + 15 * + 54 + COUNT( * ) * + - MIN( + 44 ) - - 75 * - - 67 + - - 26 AS col0
----
-67893

skipif mysql # not compatible
query I rowsort label-7118
SELECT + 90 * - + 15 * + 54 + COUNT ( * ) * + - MIN ( + 44 ) - - 75 * - - 67 + - - 26 AS col0
----
-67893

query II rowsort
SELECT DISTINCT - 25 AS col0, - 92 AS col2
----
-25
-92

query II rowsort
SELECT ALL + 75 - - ( 80 ) AS col2, - 0
----
155
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT ALL COUNT( * ) + 86 - + + 84 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL COUNT ( * ) + 86 - + + 84 AS col2
----
3

query I rowsort
SELECT ALL 95 - - - 99 + + 83 + 72 AS col0
----
151

query II rowsort
SELECT + 74 col0, 56 * + ( + 90 ) AS col1
----
74
5040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7124
SELECT DISTINCT 24 - - 49 DIV + + CAST( - 56 AS SIGNED ) * - + COUNT( * ) * - + 13 + + + 28 + - - 88 AS col2, + 72 AS col1
----
140
72

skipif mysql # not compatible
query II rowsort label-7124
SELECT DISTINCT 24 - - 49 / + + CAST ( - 56 AS INTEGER ) * - + COUNT ( * ) * - + 13 + + + 28 + - - 88 AS col2, + 72 AS col1
----
140
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT COUNT( * ) + + + COUNT( + - 84 ) + + ( + + 11 ) + + 3 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-7125
SELECT COUNT ( * ) + + + COUNT ( + - 84 ) + + ( + + 11 ) + + 3 AS col1
----
16

query I rowsort
SELECT 79 * - - 29 AS col0
----
2291

query II rowsort
SELECT DISTINCT 90 AS col0, - 9 * + + 20
----
90
-180

query I rowsort
SELECT ALL 23 * - 4 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL + COUNT( DISTINCT + ( 91 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + COUNT ( DISTINCT + ( 91 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT COALESCE ( 4, + COUNT( * ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7130
SELECT COALESCE ( 4, + COUNT ( * ) ) AS col1
----
4

query II rowsort
SELECT ALL 78 AS col0, + 40
----
78
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7132
SELECT - MIN( - + 25 ) DIV - 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7132
SELECT - MIN ( - + 25 ) / - 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT - - NULLIF ( - SUM( DISTINCT + ( + 23 ) ), + 55 * + 13 )
----
-23

skipif mysql # not compatible
query I rowsort label-7133
SELECT - - NULLIF ( - SUM ( DISTINCT + ( + 23 ) ), + 55 * + 13 )
----
-23

query I rowsort
SELECT 9 * - 42
----
-378

query I rowsort
SELECT 53 + 41 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7136
SELECT SUM( DISTINCT CAST( + 95 AS SIGNED ) ) col2
----
95

skipif mysql # not compatible
query I rowsort label-7136
SELECT SUM ( DISTINCT CAST ( + 95 AS INTEGER ) ) col2
----
95

query I rowsort
SELECT - - ( + 51 ) col0
----
51

query I rowsort
SELECT ALL - 9 + 30
----
21

query I rowsort
SELECT 32 + 43 AS col1
----
75

query I rowsort
SELECT DISTINCT - 76 + - 56
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7141
SELECT - 98 - + 13 * - + CAST( + COUNT( * ) AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-7141
SELECT - 98 - + 13 * - + CAST ( + COUNT ( * ) AS INTEGER )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7142
SELECT ALL + - CASE + - CAST( + - 44 AS SIGNED ) WHEN + COUNT( * ) + 93 + - 91 * - COUNT( * ) THEN + 16 * + 82 END + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL + - CASE + - CAST ( + - 44 AS INTEGER ) WHEN + COUNT ( * ) + 93 + - 91 * - COUNT ( * ) THEN + 16 * + 82 END + - 28
----
NULL

query I rowsort
SELECT - 65 + 71 AS col0
----
6

query I rowsort
SELECT - + COALESCE ( - 84, + 95 )
----
84

query I rowsort
SELECT 73 + + 28
----
101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7146
SELECT ALL - 6 + - - 25 + - 15 + - COUNT( * ) DIV + + 55 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - 6 + - - 25 + - 15 + - COUNT ( * ) / + + 55 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7147
SELECT + 98 AS col2, NULLIF ( + 60, + MIN( ALL - 78 ) ) AS col1
----
98
60

skipif mysql # not compatible
query II rowsort label-7147
SELECT + 98 AS col2, NULLIF ( + 60, + MIN ( ALL - 78 ) ) AS col1
----
98
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7148
SELECT 57 * + 68 DIV - 1 col2
----
-3876

skipif mysql # not compatible
query I rowsort label-7148
SELECT 57 * + 68 / - 1 col2
----
-3876

onlyif mysql # aggregate syntax: 
query II rowsort label-7149
SELECT 51 AS col0, COUNT( * ) AS col1
----
51
1

skipif mysql # not compatible
query II rowsort label-7149
SELECT 51 AS col0, COUNT ( * ) AS col1
----
51
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7150
SELECT ALL + 79 DIV - 28, 5 AS col2
----
-2
5

skipif mysql # not compatible
query II rowsort label-7150
SELECT ALL + 79 / - 28, 5 AS col2
----
-2
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT 63 DIV 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7151
SELECT 63 / 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT ALL + COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL + COUNT ( * ) - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7153
SELECT + 9 AS col0, 1 * 47 + - COUNT( * )
----
9
46

skipif mysql # not compatible
query II rowsort label-7153
SELECT + 9 AS col0, 1 * 47 + - COUNT ( * )
----
9
46

query I rowsort
SELECT ALL 19 - + + 50
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7155
SELECT ALL MIN( 38 ) * 7 * + ( - ( - 47 ) ) + + - 42
----
12460

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL MIN ( 38 ) * 7 * + ( - ( - 47 ) ) + + - 42
----
12460

query I rowsort
SELECT ALL + 79 * - 59
----
-4661

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7157
SELECT + 74 AS col2, - CAST( NULL AS SIGNED ) + + 90 + + 83
----
74
NULL

skipif mysql # not compatible
query II rowsort label-7157
SELECT + 74 AS col2, - CAST ( NULL AS INTEGER ) + + 90 + + 83
----
74
NULL

query II rowsort
SELECT + 75, + ( - 49 ) AS col2
----
75
-49

query I rowsort
SELECT ALL - 89 * + + 96 AS col1
----
-8544

query I rowsort
SELECT 88 - + 35 AS col0
----
53

query I rowsort
SELECT 24 * - 30 col2
----
-720

query II rowsort
SELECT DISTINCT - 59 AS col1, + 25 * 80 * + + 6 AS col2
----
-59
12000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7163
SELECT 17 * 3 * + + CAST( + 29 AS SIGNED ) + 46 - - - COUNT( * ) AS col2
----
1524

skipif mysql # not compatible
query I rowsort label-7163
SELECT 17 * 3 * + + CAST ( + 29 AS INTEGER ) + 46 - - - COUNT ( * ) AS col2
----
1524

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT SUM( DISTINCT - 29 ) * - COUNT( * ) col2
----
29

skipif mysql # not compatible
query I rowsort label-7164
SELECT SUM ( DISTINCT - 29 ) * - COUNT ( * ) col2
----
29

query I rowsort
SELECT DISTINCT - + 32 AS col2
----
-32

query I rowsort
SELECT + - ( - ( + 3 ) )
----
3

query I rowsort
SELECT ALL - 21 + 90 AS col0
----
69

query I rowsort
SELECT 47 + 99
----
146

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7169
SELECT + AVG ( CAST( NULL AS DECIMAL ) ) - + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT + AVG ( CAST ( NULL AS REAL ) ) - + + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT ALL + 5 * - + COUNT( * ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL + 5 * - + COUNT ( * ) col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7171
SELECT 78 DIV MAX( + 74 ) - + + 85 + - 20 + - MIN( ALL 52 ) * 48 * - - 89
----
-222248

skipif mysql # not compatible
query I rowsort label-7171
SELECT 78 / MAX ( + 74 ) - + + 85 + - 20 + - MIN ( ALL 52 ) * 48 * - - 89
----
-222248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT CAST( NULL AS SIGNED ) - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT CAST ( NULL AS INTEGER ) - 42
----
NULL

query I rowsort
SELECT DISTINCT 81 + 59 AS col0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7174
SELECT - CASE - - CAST( 90 AS SIGNED ) WHEN 84 + + 78 THEN - + 39 END + 25 AS col2, - CAST( + 5 AS SIGNED ) AS col0
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-7174
SELECT - CASE - - CAST ( 90 AS INTEGER ) WHEN 84 + + 78 THEN - + 39 END + 25 AS col2, - CAST ( + 5 AS INTEGER ) AS col0
----
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT ALL 99 + - + MIN( ALL - 17 )
----
116

skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL 99 + - + MIN ( ALL - 17 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT 16 + + - COUNT( * ) + - 43 - - + 48 * + ( + + MIN( DISTINCT - 41 ) )
----
-1996

skipif mysql # not compatible
query I rowsort label-7176
SELECT 16 + + - COUNT ( * ) + - 43 - - + 48 * + ( + + MIN ( DISTINCT - 41 ) )
----
-1996

query II rowsort
SELECT ALL 30 AS col0, + ( 68 ) col2
----
30
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT - CASE 98 WHEN - 94 * - 5 * - 62 * + 96 THEN + + ( + - 29 ) WHEN - + CAST( - - 60 AS SIGNED ) + - 67 THEN + + 17 ELSE NULL END + - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT - CASE 98 WHEN - 94 * - 5 * - 62 * + 96 THEN + + ( + - 29 ) WHEN - + CAST ( - - 60 AS INTEGER ) + - 67 THEN + + 17 ELSE NULL END + - - 61
----
NULL

query II rowsort
SELECT - - 93 AS col1, 9
----
93
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7180
SELECT ALL 14, - COUNT( * ) AS col1
----
14
-1

skipif mysql # not compatible
query II rowsort label-7180
SELECT ALL 14, - COUNT ( * ) AS col1
----
14
-1

query I rowsort
SELECT ALL 66 + + - 89 + + 18
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT DISTINCT + - 72 DIV - 40
----
1

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT + - 72 / - 40
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7183
SELECT CAST( NULL AS SIGNED ) + MAX( DISTINCT 81 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT CAST ( NULL AS INTEGER ) + MAX ( DISTINCT 81 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7184
SELECT + - 34 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7184
SELECT + - 34 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT ALL - 28 DIV - 88 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - 28 / - 88 + - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7186
SELECT COUNT( * ), ( 25 ) AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-7186
SELECT COUNT ( * ), ( 25 ) AS col0
----
1
25

query I rowsort
SELECT - + 59 + + + 25
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT ALL MAX( - 41 ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-7188
SELECT ALL MAX ( - 41 ) col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + ( + 74 ) + - - 56 * 86 * + COUNT( + + 51 )
----
4890

skipif mysql # not compatible
query I rowsort label-7189
SELECT + ( + 74 ) + - - 56 * 86 * + COUNT ( + + 51 )
----
4890

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT 82 * ( COUNT( * ) ) - - COALESCE ( 88, + 99 + + 48 * 56, + - ( + 5 ) ) AS col2
----
170

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT 82 * ( COUNT ( * ) ) - - COALESCE ( 88, + 99 + + 48 * 56, + - ( + 5 ) ) AS col2
----
170

query I rowsort
SELECT DISTINCT 31 * - 7 AS col0
----
-217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7192
SELECT DISTINCT + CASE - + 79 WHEN COALESCE ( + 8, - - 7 ) * - 92 / - 49 + - 82 THEN 12 * - 32 * 79 + CAST( NULL AS SIGNED ) WHEN + NULLIF ( + 1, 54 + + 7 ) / - + 5 THEN NULL ELSE + + 60 * 52 END
----
3120

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT + CASE - + 79 WHEN COALESCE ( + 8, - - 7 ) * - 92 / - 49 + - 82 THEN 12 * - 32 * 79 + CAST ( NULL AS INTEGER ) WHEN + NULLIF ( + 1, 54 + + 7 ) / - + 5 THEN NULL ELSE + + 60 * 52 END
----
3120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7193
SELECT CASE - - 26 WHEN - - 66 / - - MAX( + 54 ) - CASE + 36 WHEN - 44 + NULLIF ( 46, - ( - 91 ) + - MIN( DISTINCT + 98 ) + + + ( - CAST( - - 98 AS SIGNED ) ) + - 64 + - 2 * - + 32 ) + - + MAX( - 54 ) THEN + 72 * MIN( ALL - 80 ) ELSE MAX( ALL + 2 ) + 62 / MAX( + 31 * - 27 ) END THEN - 24 WHEN - 60 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT CASE - - 26 WHEN - - 66 / - - MAX ( + 54 ) - CASE + 36 WHEN - 44 + NULLIF ( 46, - ( - 91 ) + - MIN ( DISTINCT + 98 ) + + + ( - CAST ( - - 98 AS INTEGER ) ) + - 64 + - 2 * - + 32 ) + - + MAX ( - 54 ) THEN + 72 * MIN ( ALL - 80 ) ELSE MAX ( ALL + 2 ) + 62 / MAX ( + 31 * - 27 ) END THEN - 24 WHEN - 60 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT - 54 + - + COUNT( + 6 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7194
SELECT - 54 + - + COUNT ( + 6 ) AS col1
----
-55

query I rowsort
SELECT - ( - 22 ) * 62
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL + CASE + COUNT( * ) WHEN ( NULLIF ( - 64, 60 * - 66 + - - 27 + + + COALESCE ( - - ( - 40 ), - + COUNT( * ) - + + CASE + 54 WHEN - 3 + - 21 * - ( 22 ) THEN - 27 END, + NULLIF ( + + 43, + NULLIF ( COALESCE ( COUNT( * ), 58, + 91 - + 78 ), + 60 + 8 ) ) / 96, 53 + 9 / - 35 ) ) ) THEN NULL WHEN - ( 83 ) * - 47 THEN 69 WHEN 19 / + 27 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL + CASE + COUNT ( * ) WHEN ( NULLIF ( - 64, 60 * - 66 + - - 27 + + + COALESCE ( - - ( - 40 ), - + COUNT ( * ) - + + CASE + 54 WHEN - 3 + - 21 * - ( 22 ) THEN - 27 END, + NULLIF ( + + 43, + NULLIF ( COALESCE ( COUNT ( * ), 58, + 91 - + 78 ), + 60 + 8 ) ) / 96, 53 + 9 / - 35 ) ) ) THEN NULL WHEN - ( 83 ) * - 47 THEN 69 WHEN 19 / + 27 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT + 44 * - + 95 + SUM( + 51 ) * - 77
----
-8107

skipif mysql # not compatible
query I rowsort label-7197
SELECT + 44 * - + 95 + SUM ( + 51 ) * - 77
----
-8107

query I rowsort
SELECT ALL + COALESCE ( 66, + - 7 + 64, - - ( + 80 ) )
----
66

query I rowsort
SELECT - 94 + + 15 * ( + ( - + 90 ) )
----
-1444

query II rowsort
SELECT ALL + 12 * + 66 * + 54 AS col2, - ( + 25 ) + - 94 + + - 17 AS col2
----
42768
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT COALESCE ( - + 88, - 21, + - 78 * + COUNT( * ) - + - COUNT( * ) + + COUNT( * ) * + 50 )
----
-88

skipif mysql # not compatible
query I rowsort label-7201
SELECT COALESCE ( - + 88, - 21, + - 78 * + COUNT ( * ) - + - COUNT ( * ) + + COUNT ( * ) * + 50 )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT DISTINCT + 40 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT + 40 / 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT DISTINCT - 24 * + 49 + - - COUNT( * )
----
-1175

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT - 24 * + 49 + - - COUNT ( * )
----
-1175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7204
SELECT - + 56 / + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT - + 56 / + - ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - + 45 * + 25, - 31 AS col2
----
-1125
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - + 13 * 95 + COUNT( * )
----
-1234

skipif mysql # not compatible
query I rowsort label-7206
SELECT - + 13 * 95 + COUNT ( * )
----
-1234

onlyif mysql # DIV for integer division: 
query II rowsort label-7207
SELECT ALL + 34 * + 83 AS col0, 73 DIV - 51 AS col0
----
2822
-1

skipif mysql # not compatible
query II rowsort label-7207
SELECT ALL + 34 * + 83 AS col0, 73 / - 51 AS col0
----
2822
-1

query II rowsort
SELECT ( + + 65 ) AS col1, + 36 * + 77 AS col2
----
65
2772

query I rowsort
SELECT - - 70 * + - 92 AS col2
----
-6440

query II rowsort
SELECT + 87 + 49 * + + CASE + 25 WHEN + 90 / 8 * + + 12 THEN NULL WHEN - 19 THEN - - 2 ELSE NULL END + + 11 + + 31 * + 51 AS col2, 92 AS col1
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT + + CASE COALESCE ( - COUNT( * ), - COALESCE ( 32, - 5 + - + 48 + 23 ) * - - 81 ) WHEN 22 + NULLIF ( + 54, - + 99 ) THEN + - 7 - - 34 WHEN + 60 THEN - + 40 + 23 / + 75 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT + + CASE COALESCE ( - COUNT ( * ), - COALESCE ( 32, - 5 + - + 48 + 23 ) * - - 81 ) WHEN 22 + NULLIF ( + 54, - + 99 ) THEN + - 7 - - 34 WHEN + 60 THEN - + 40 + 23 / + 75 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL + - COUNT( * ) * - 15 + 92 + - 30 + - 21 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL + - COUNT ( * ) * - 15 + 92 + - 30 + - 21 AS col1
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7213
SELECT - CASE - - COUNT( * ) WHEN MIN( 61 ) THEN - 48 END * + 92 + + 83 * 9, + 12 AS col0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-7213
SELECT - CASE - - COUNT ( * ) WHEN MIN ( 61 ) THEN - 48 END * + 92 + + 83 * 9, + 12 AS col0
----
NULL
12

query I rowsort
SELECT DISTINCT + 82 + - - 77 - - 71
----
230

query I rowsort
SELECT DISTINCT 11 * - - 86 AS col1
----
946

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT DISTINCT - 90 + - MAX( - 36 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT - 90 + - MAX ( - 36 ) AS col0
----
-54

query II rowsort
SELECT - - 68 - + 9 AS col1, 25 + 81 + 80
----
59
186

query I rowsort
SELECT DISTINCT + 99 * + 5
----
495

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7219
SELECT - ( - CAST( NULL AS DECIMAL ) ) AS col0, - 63
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-7219
SELECT - ( - CAST ( NULL AS REAL ) ) AS col0, - 63
----
NULL
-63

query I rowsort
SELECT ALL 14 * + - 54 AS col2
----
-756

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7221
SELECT DISTINCT 37 DIV + CAST( 96 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT 37 / + CAST ( 96 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL MIN( DISTINCT + - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL MIN ( DISTINCT + - 41 ) AS col1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-7223
SELECT + 60 DIV + 23 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7223
SELECT + 60 / + 23 AS col0
----
2

query II rowsort
SELECT + 72 * 55 * - + 7 AS col0, 99 + - 5 AS col1
----
-27720
94

query I rowsort
SELECT + 78 + - 97 col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7226
SELECT DISTINCT 1 DIV COUNT( 92 )
----
1

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT 1 / COUNT ( 92 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT CAST( + 4 AS SIGNED ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7227
SELECT CAST ( + 4 AS INTEGER ) AS col2
----
4

query I rowsort
SELECT + ( 11 ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT + CAST( - - 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-7229
SELECT + CAST ( - - 13 AS INTEGER )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7230
SELECT DISTINCT + 44 * - SUM( CAST( NULL AS SIGNED ) ) * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + 44 * - SUM ( CAST ( NULL AS INTEGER ) ) * 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7231
SELECT ALL 96 DIV + 9 + + - 47 DIV - 67 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL 96 / + 9 + + - 47 / - 67 AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7232
SELECT ALL + 96 DIV - 4 + MIN( DISTINCT 68 ) * COALESCE ( 16, - 15 )
----
1064

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL + 96 / - 4 + MIN ( DISTINCT 68 ) * COALESCE ( 16, - 15 )
----
1064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7233
SELECT CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) * + + 67 * 73 + 36 AS col1
----
NULL
-4855

skipif mysql # not compatible
query II rowsort label-7233
SELECT CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) * + + 67 * 73 + 36 AS col1
----
NULL
-4855

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT ( MIN( - 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-7234
SELECT ( MIN ( - 56 ) )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT + COUNT( * ) + 26 * - 11 * COUNT( * ) AS col1
----
-285

skipif mysql # not compatible
query I rowsort label-7235
SELECT + COUNT ( * ) + 26 * - 11 * COUNT ( * ) AS col1
----
-285

query I rowsort
SELECT - 71 * - - 26
----
-1846

query I rowsort
SELECT - - 33 + + 10
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7238
SELECT ALL - - 30 * NULLIF ( - CASE - 19 WHEN + 31 THEN NULL WHEN - - CASE 22 WHEN + CASE - 56 WHEN + + COUNT( - 44 ) + COALESCE ( + + 60, - + SUM( DISTINCT - ( + - 12 ) ) * 39 * - 56 ) * 44 THEN - 39 * - ( 13 ) / - 63 WHEN + 94 THEN NULL WHEN 13 THEN 14 ELSE + COUNT( * ) END THEN CASE + COUNT( * ) WHEN - 83 THEN CAST( NULL AS SIGNED ) ELSE NULL END ELSE + 6 + COUNT( * ) * 63 END * 47 THEN NULL ELSE + NULLIF ( 46, - 61 - ( MIN( ALL 8 ) ) ) END, + MIN( + 7 ) / - COUNT( * ) ) AS col2
----
-1380

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL - - 30 * NULLIF ( - CASE - 19 WHEN + 31 THEN NULL WHEN - - CASE 22 WHEN + CASE - 56 WHEN + + COUNT ( - 44 ) + COALESCE ( + + 60, - + SUM ( DISTINCT - ( + - 12 ) ) * 39 * - 56 ) * 44 THEN - 39 * - ( 13 ) / - 63 WHEN + 94 THEN NULL WHEN 13 THEN 14 ELSE + COUNT ( * ) END THEN CASE + COUNT ( * ) WHEN - 83 THEN CAST ( NULL AS INTEGER ) ELSE NULL END ELSE + 6 + COUNT ( * ) * 63 END * 47 THEN NULL ELSE + NULLIF ( 46, - 61 - ( MIN ( ALL 8 ) ) ) END, + MIN ( + 7 ) / - COUNT ( * ) ) AS col2
----
-1380

query I rowsort
SELECT ALL + 58 * + 73 + - + 47 AS col0
----
4187

query I rowsort
SELECT 76 * + 88 col2
----
6688

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL - - 38 * + 12 * ( + COUNT( DISTINCT - 47 ) )
----
456

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL - - 38 * + 12 * ( + COUNT ( DISTINCT - 47 ) )
----
456

onlyif mysql # aggregate syntax: 
query II rowsort label-7242
SELECT - 87 - + 91 * - 84, + COUNT( * ) AS col2
----
7557
1

skipif mysql # not compatible
query II rowsort label-7242
SELECT - 87 - + 91 * - 84, + COUNT ( * ) AS col2
----
7557
1

query I rowsort
SELECT 25 + + 25
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT - NULLIF ( + CASE - COUNT( * ) WHEN - + 29 / 60 THEN - 31 + - 26 - - 16 * - 62 END, + COUNT( * ) ) + + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT - NULLIF ( + CASE - COUNT ( * ) WHEN - + 29 / 60 THEN - 31 + - 26 - - 16 * - 62 END, + COUNT ( * ) ) + + + 78
----
NULL

query I rowsort
SELECT + 84 * 35 + - 15
----
2925

query I rowsort
SELECT ALL COALESCE ( 70, - 60 + + - 89 )
----
70

query I rowsort
SELECT + 54 + + + 20 + - + 61 AS col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT ALL + 26 * - - ( - + CAST( NULL AS SIGNED ) ) + + 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL + 26 * - - ( - + CAST ( NULL AS INTEGER ) ) + + 30 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT COUNT( DISTINCT 71 ) + COUNT( * ) - - 86
----
88

skipif mysql # not compatible
query I rowsort label-7249
SELECT COUNT ( DISTINCT 71 ) + COUNT ( * ) - - 86
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7250
SELECT ALL CASE - - CAST( NULL AS SIGNED ) WHEN - 12 + + 66 + + 95 * 15 THEN + 35 WHEN - - 51 * + MAX( ALL - 61 ) - CAST( NULL AS SIGNED ) * + + 16 THEN - 51 END * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL CASE - - CAST ( NULL AS INTEGER ) WHEN - 12 + + 66 + + 95 * 15 THEN + 35 WHEN - - 51 * + MAX ( ALL - 61 ) - CAST ( NULL AS INTEGER ) * + + 16 THEN - 51 END * - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT 63 + - 5 + + + CASE - 81 WHEN - 75 THEN NULL ELSE - 36 END - - SUM( + + 50 ) * 67 * - 31 - 22 * + - 10 AS col1
----
-103608

skipif mysql # not compatible
query I rowsort label-7251
SELECT 63 + - 5 + + + CASE - 81 WHEN - 75 THEN NULL ELSE - 36 END - - SUM ( + + 50 ) * 67 * - 31 - 22 * + - 10 AS col1
----
-103608

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT 1 + - COUNT( * ) * + 63 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-7252
SELECT 1 + - COUNT ( * ) * + 63 AS col2
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7253
SELECT ALL - 57 DIV - COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL - 57 / - COUNT ( * ) AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT 72 * - ( + COUNT( * ) ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7254
SELECT 72 * - ( + COUNT ( * ) ) AS col0
----
-72

query I rowsort
SELECT 8 * + + 8 AS col0
----
64

query I rowsort
SELECT ALL - 57 * - 75 * + 98
----
418950

onlyif mysql # aggregate syntax: 
query II rowsort label-7257
SELECT ALL + 85 + 55 + 35 + - 9 AS col1, 71 * + + COUNT( * )
----
166
71

skipif mysql # not compatible
query II rowsort label-7257
SELECT ALL + 85 + 55 + 35 + - 9 AS col1, 71 * + + COUNT ( * )
----
166
71

query I rowsort
SELECT ALL - 31 * - - 63
----
-1953

onlyif mysql # DIV for integer division: 
query II rowsort label-7259
SELECT 17 DIV + - 58 AS col2, 15
----
0
15

skipif mysql # not compatible
query II rowsort label-7259
SELECT 17 / + - 58 AS col2, 15
----
0
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7260
SELECT ALL 29 DIV - 33 AS col1, + SUM( ALL + 73 )
----
0
73

skipif mysql # not compatible
query II rowsort label-7260
SELECT ALL 29 / - 33 AS col1, + SUM ( ALL + 73 )
----
0
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7261
SELECT ALL COUNT( * ) + COUNT( * ) DIV + 69 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL COUNT ( * ) + COUNT ( * ) / + 69 AS col1
----
1

query I rowsort
SELECT + + 90 * + + 28 + 94
----
2614

query I rowsort
SELECT ALL - 42 + - - 37
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT DISTINCT COUNT( * ) * - 71 + + ( + 47 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7264
SELECT DISTINCT COUNT ( * ) * - 71 + + ( + 47 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7265
SELECT ALL 5 - - 27 + ( - SUM( DISTINCT 23 ) ) AS col1, 47 AS col1
----
9
47

skipif mysql # not compatible
query II rowsort label-7265
SELECT ALL 5 - - 27 + ( - SUM ( DISTINCT 23 ) ) AS col1, 47 AS col1
----
9
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT ALL 32 * COUNT( * ) * 11 * - 20 * - - ( - + 19 )
----
133760

skipif mysql # not compatible
query I rowsort label-7266
SELECT ALL 32 * COUNT ( * ) * 11 * - 20 * - - ( - + 19 )
----
133760

query I rowsort
SELECT + 19 * - ( 59 ) + + 28 + - + 12 AS col1
----
-1105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7268
SELECT + CAST( NULL AS SIGNED ) * - 34 + + + COALESCE ( 7, + + 91 ) AS col2, 74 / - CAST( NULL AS DECIMAL ) / - + ( - + 94 ) * - MIN( + 72 ) * 89 * 21 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7268
SELECT + CAST ( NULL AS INTEGER ) * - 34 + + + COALESCE ( 7, + + 91 ) AS col2, 74 / - CAST ( NULL AS REAL ) / - + ( - + 94 ) * - MIN ( + 72 ) * 89 * 21 AS col1
----
NULL
NULL

query II rowsort
SELECT + COALESCE ( + ( - 39 ), 49 ) AS col0, - 36 AS col2
----
-39
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT + 85 + - + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-7270
SELECT + 85 + - + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL + NULLIF ( + 85, - COUNT( * ) * + 89 ) - - SUM( COALESCE ( 56, + - 90 ) ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL + NULLIF ( + 85, - COUNT ( * ) * + 89 ) - - SUM ( COALESCE ( 56, + - 90 ) ) AS col2
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT + ( - 91 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT + ( - 91 ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 61 * - - 17 AS col0
----
1037

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT - 74 DIV - - 45 + - - 0 + + 33 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7274
SELECT - 74 / - - 45 + - - 0 + + 33 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT DISTINCT - + 10 * - COALESCE ( + 52, NULLIF ( + 69, + 71 * - 32 * - NULLIF ( + 86, - 86 * - 56 / 22 * ( + 61 ) * + + COUNT( * ) + + 76 + - - 7 * + 23 ) ) + - 16 )
----
520

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT - + 10 * - COALESCE ( + 52, NULLIF ( + 69, + 71 * - 32 * - NULLIF ( + 86, - 86 * - 56 / 22 * ( + 61 ) * + + COUNT ( * ) + + 76 + - - 7 * + 23 ) ) + - 16 )
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT + COUNT( * ) * + - 71 - - + 24 - + 73
----
-120

skipif mysql # not compatible
query I rowsort label-7276
SELECT + COUNT ( * ) * + - 71 - - + 24 - + 73
----
-120

query I rowsort
SELECT 17 * 66 AS col0
----
1122

query I rowsort
SELECT ALL + 89 + - + 4
----
85

query II rowsort
SELECT - 61 AS col0, + 38 col2
----
-61
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT DISTINCT + 17 + - - COUNT( * ) * - + COUNT( DISTINCT - NULLIF ( + 67, + ( - 80 ) ) ) * + 90 - + 2 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT + 17 + - - COUNT ( * ) * - + COUNT ( DISTINCT - NULLIF ( + 67, + ( - 80 ) ) ) * + 90 - + 2 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT 7 * + 67 * + COUNT( * )
----
469

skipif mysql # not compatible
query I rowsort label-7281
SELECT 7 * + 67 * + COUNT ( * )
----
469

query I rowsort
SELECT DISTINCT 6 + - 15 AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7283
SELECT ALL ( - 97 ) + - 41 - + - CASE - - 13 WHEN 35 * 36 / + 62 + - 58 + + COUNT( + + 43 ) / - CASE - SUM( ALL - 68 ) WHEN - COUNT( * ) * 40 THEN + 39 / MAX( DISTINCT 99 ) END * SUM( DISTINCT CAST( NULL AS SIGNED ) ) - - 91 * - + 14 THEN CAST( NULL AS DECIMAL ) WHEN + NULLIF ( - 79, MIN( 98 ) ) + - 77 THEN 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT ALL ( - 97 ) + - 41 - + - CASE - - 13 WHEN 35 * 36 / + 62 + - 58 + + COUNT ( + + 43 ) / - CASE - SUM ( ALL - 68 ) WHEN - COUNT ( * ) * 40 THEN + 39 / MAX ( DISTINCT 99 ) END * SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) - - 91 * - + 14 THEN CAST ( NULL AS REAL ) WHEN + NULLIF ( - 79, MIN ( 98 ) ) + - 77 THEN 88 END
----
NULL

query I rowsort
SELECT 97 * + 14 AS col0
----
1358

query I rowsort
SELECT 33 * + 3
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT DISTINCT - ( 79 ) * SUM( DISTINCT 68 )
----
-5372

skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT - ( 79 ) * SUM ( DISTINCT 68 )
----
-5372

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT NULLIF ( COALESCE ( + ( + + 12 ), + COUNT( * ) ), + - 68 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7287
SELECT NULLIF ( COALESCE ( + ( + + 12 ), + COUNT ( * ) ), + - 68 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT DISTINCT COUNT( * ) * - 20
----
-20

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT COUNT ( * ) * - 20
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7289
SELECT ALL - + MIN( DISTINCT 62 ) * + 94 * + + NULLIF ( - 80, + + CASE + 9 WHEN COUNT( * ) THEN 78 / - 16 WHEN - + 32 + + 91 + 88 + - COUNT( * ) * - 94 THEN NULL WHEN + 82 THEN - COALESCE ( + 53, 98 ) / + - 36 ELSE NULL END ) - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL - + MIN ( DISTINCT 62 ) * + 94 * + + NULLIF ( - 80, + + CASE + 9 WHEN COUNT ( * ) THEN 78 / - 16 WHEN - + 32 + + 91 + 88 + - COUNT ( * ) * - 94 THEN NULL WHEN + 82 THEN - COALESCE ( + 53, 98 ) / + - 36 ELSE NULL END ) - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7290
SELECT ALL - - CAST( - 86 AS SIGNED ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL - - CAST ( - 86 AS INTEGER ) AS col0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7291
SELECT ALL 63 * + COUNT( DISTINCT 20 ) - + 84 DIV + 5, - 38 AS col2
----
47
-38

skipif mysql # not compatible
query II rowsort label-7291
SELECT ALL 63 * + COUNT ( DISTINCT 20 ) - + 84 / + 5, - 38 AS col2
----
47
-38

query I rowsort
SELECT 68 * - 43 col1
----
-2924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT ALL + CAST( - 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL + CAST ( - 65 AS INTEGER )
----
-65

query I rowsort
SELECT - 95 * - 63
----
5985

query I rowsort
SELECT - + ( 22 ) + 37 AS col2
----
15

query II rowsort
SELECT ALL + - COALESCE ( + 60, - - 11 ) AS col0, + 62
----
-60
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT + 9 * + - ( + 75 ) + ( 28 ) - + + 78 + + COUNT( * ) + + COALESCE ( - - 87, + 80 * + - 52 * 12 * + COUNT( * ) ) + 69 * - 34 * + ( - 55 ) - - - 36 + - 71
----
128286

skipif mysql # not compatible
query I rowsort label-7297
SELECT + 9 * + - ( + 75 ) + ( 28 ) - + + 78 + + COUNT ( * ) + + COALESCE ( - - 87, + 80 * + - 52 * 12 * + COUNT ( * ) ) + 69 * - 34 * + ( - 55 ) - - - 36 + - 71
----
128286

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT + 78 * + + ( - + MAX( ALL 63 ) )
----
-4914

skipif mysql # not compatible
query I rowsort label-7298
SELECT + 78 * + + ( - + MAX ( ALL 63 ) )
----
-4914

query I rowsort
SELECT - ( + 86 ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT ALL MAX( 73 ) * + 52 * + - 29 AS col2
----
-110084

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL MAX ( 73 ) * + 52 * + - 29 AS col2
----
-110084

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT COUNT( * ) * + 56 + - 71 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT COUNT ( * ) * + 56 + - 71 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 13 * - 42 * - 81 + + 79 + + - 61
----
44244

query I rowsort
SELECT + + ( 77 ) AS col2
----
77

query I rowsort
SELECT ALL - 43 * - - 45
----
-1935

query II rowsort
SELECT + 21 * 55 + - + 88 col1, + 35
----
1067
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT - 37 - + + COUNT( * ) + 68 - - 5 * - 89
----
-415

skipif mysql # not compatible
query I rowsort label-7306
SELECT - 37 - + + COUNT ( * ) + 68 - - 5 * - 89
----
-415

onlyif mysql # aggregate syntax: 
query II rowsort label-7307
SELECT + COUNT( * ) * 19 AS col2, 6 * + COUNT( * ) + + + 85
----
19
91

skipif mysql # not compatible
query II rowsort label-7307
SELECT + COUNT ( * ) * 19 AS col2, 6 * + COUNT ( * ) + + + 85
----
19
91

query I rowsort
SELECT - COALESCE ( 67, - - 11 )
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7309
SELECT - 31 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-7309
SELECT - 31 / - 69
----
0

query I rowsort
SELECT + 1 + + 63
----
64

query I rowsort
SELECT + 78 + + - 16 col1
----
62

query I rowsort
SELECT - 54 + 52 AS col2
----
-2

query I rowsort
SELECT ALL COALESCE ( 12, + 90 * - 72 + + + 70 ) AS col2
----
12

query I rowsort
SELECT + 83 + - 71 AS col0
----
12

query I rowsort
SELECT + ( + 41 ) * - - 44 + + 4
----
1808

onlyif mysql # DIV for integer division: 
query I rowsort label-7316
SELECT - 65 DIV - 21
----
3

skipif mysql # not compatible
query I rowsort label-7316
SELECT - 65 / - 21
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT - ( - MIN( ALL + 64 ) )
----
64

skipif mysql # not compatible
query I rowsort label-7317
SELECT - ( - MIN ( ALL + 64 ) )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7318
SELECT ALL - COUNT( * ) + COALESCE ( - 69, - 17 * + 80 ) - + - COUNT( * ), + 4 * CAST( NULL AS SIGNED ) AS col2
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-7318
SELECT ALL - COUNT ( * ) + COALESCE ( - 69, - 17 * + 80 ) - + - COUNT ( * ), + 4 * CAST ( NULL AS INTEGER ) AS col2
----
-69
NULL

query I rowsort
SELECT ALL + 68 + + 58
----
126

query I rowsort
SELECT - 11 * 58 * 11 AS col0
----
-7018

query I rowsort
SELECT - 88 * - - 44 col0
----
-3872

query II rowsort
SELECT - 5 + - ( + 15 ) * + 80 AS col0, + 11 + + 86
----
-1205
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL SUM( DISTINCT + 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL SUM ( DISTINCT + 41 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT - - 46 + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-7324
SELECT - - 46 + COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT ALL + + 24 - + COUNT( * ) + - COUNT( * ) * - 88 * + 56 AS col1
----
4951

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL + + 24 - + COUNT ( * ) + - COUNT ( * ) * - 88 * + 56 AS col1
----
4951

query I rowsort
SELECT - CASE - 41 WHEN + - 51 + - - 78 THEN 81 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7327
SELECT - COUNT( * ) DIV + 70 + ( - COUNT( * ) ) + + 77
----
76

skipif mysql # not compatible
query I rowsort label-7327
SELECT - COUNT ( * ) / + 70 + ( - COUNT ( * ) ) + + 77
----
76

query I rowsort
SELECT ALL - 9 / - + 78 - - - CASE + 94 WHEN 21 THEN - 89 + 63 + + 17 END + + 19 AS col0
----
NULL

query I rowsort
SELECT + 53 + + 57 + - 93 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ALL + 99 * COUNT( * ) * + 29 AS col0
----
2871

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL + 99 * COUNT ( * ) * + 29 AS col0
----
2871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7331
SELECT DISTINCT + - 19 * COUNT( * ) DIV - 15 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT + - 19 * COUNT ( * ) / - 15 AS col2
----
1

query I rowsort
SELECT ALL 50 * + 89 + - ( + 67 ) AS col2
----
4383

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7333
SELECT ALL + + SUM( + + 70 ) * 76 DIV 22 DIV 43 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL + + SUM ( + + 70 ) * 76 / 22 / 43 AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7334
SELECT DISTINCT + COUNT( * ) col1, 11 + + 95 AS col1
----
1
106

skipif mysql # not compatible
query II rowsort label-7334
SELECT DISTINCT + COUNT ( * ) col1, 11 + + 95 AS col1
----
1
106

query II rowsort
SELECT ALL + + 73 AS col1, 7 + 46
----
73
53

onlyif mysql # DIV for integer division: 
query I rowsort label-7336
SELECT + + 94 DIV - + 40
----
-2

skipif mysql # not compatible
query I rowsort label-7336
SELECT + + 94 / - + 40
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT - + SUM( 21 ) * - 21 AS col2
----
441

skipif mysql # not compatible
query I rowsort label-7337
SELECT - + SUM ( 21 ) * - 21 AS col2
----
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7338
SELECT + + NULLIF ( + 43, 50 ) * COUNT( * ) + - COUNT( * ) + 96 * - 73 * - MAX( + 54 ) * 69 + + COUNT( DISTINCT CASE + 97 WHEN + ( - 85 ) + - ( - 70 ) THEN - - 91 ELSE + + CAST( + 3 AS SIGNED ) END ) * - + 51 * 16 - + 51 - - - 98 AS col1
----
26110885

skipif mysql # not compatible
query I rowsort label-7338
SELECT + + NULLIF ( + 43, 50 ) * COUNT ( * ) + - COUNT ( * ) + 96 * - 73 * - MAX ( + 54 ) * 69 + + COUNT ( DISTINCT CASE + 97 WHEN + ( - 85 ) + - ( - 70 ) THEN - - 91 ELSE + + CAST ( + 3 AS INTEGER ) END ) * - + 51 * 16 - + 51 - - - 98 AS col1
----
26110885

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL 89 * + - 12 + - - COUNT( * )
----
-1067

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL 89 * + - 12 + - - COUNT ( * )
----
-1067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7340
SELECT 3 * - 76 + 72 + - COUNT( DISTINCT + - CAST( 0 AS SIGNED ) ) DIV - CAST( + - 87 AS SIGNED )
----
-156

skipif mysql # not compatible
query I rowsort label-7340
SELECT 3 * - 76 + 72 + - COUNT ( DISTINCT + - CAST ( 0 AS INTEGER ) ) / - CAST ( + - 87 AS INTEGER )
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT + ( COUNT( * ) ) + 90
----
91

skipif mysql # not compatible
query I rowsort label-7341
SELECT + ( COUNT ( * ) ) + 90
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL 77 * - - MAX( + ( - - 83 ) ) + - + 42 * 71 * 82
----
-238133

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL 77 * - - MAX ( + ( - - 83 ) ) + - + 42 * 71 * 82
----
-238133

query I rowsort
SELECT COALESCE ( - + 11, + 1 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT CASE - 35 WHEN 65 / + NULLIF ( 42, - + AVG ( 61 ) + - - 70 ) THEN NULL WHEN 30 + - 85 + - 65 THEN + 57 * + 85 * - COUNT( * ) + - 16 + + + 29 * + 33 + + + COALESCE ( + NULLIF ( + 90, + 79 * + COALESCE ( - 99, MAX( 58 ) * + - 93 ) ), - - 58 + + SUM( DISTINCT 89 ) ) + CASE 11 + + COUNT( * ) WHEN COALESCE ( + 49, - 21 + + 2 * 79 ) THEN - 47 * 69 ELSE NULL END * COALESCE ( - ( - 36 ), - 44 ) * + 71 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7344
SELECT CASE - 35 WHEN 65 / + NULLIF ( 42, - + AVG ( 61 ) + - - 70 ) THEN NULL WHEN 30 + - 85 + - 65 THEN + 57 * + 85 * - COUNT ( * ) + - 16 + + + 29 * + 33 + + + COALESCE ( + NULLIF ( + 90, + 79 * + COALESCE ( - 99, MAX ( 58 ) * + - 93 ) ), - - 58 + + SUM ( DISTINCT 89 ) ) + CASE 11 + + COUNT ( * ) WHEN COALESCE ( + 49, - 21 + + 2 * 79 ) THEN - 47 * 69 ELSE NULL END * COALESCE ( - ( - 36 ), - 44 ) * + 71 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7345
SELECT DISTINCT - ( + 0 ) * + MIN( 83 ) - 78 + 85 + + 28 + 21 + - 31 DIV + 99 - - + CAST( - + 67 AS SIGNED ) + 39 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - ( + 0 ) * + MIN ( 83 ) - 78 + 85 + + 28 + 21 + - 31 / + 99 - - + CAST ( - + 67 AS INTEGER ) + 39 AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7346
SELECT DISTINCT 93 * - + 75 + + 29 + - 11 DIV + 73 * + + 64
----
-6946

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT 93 * - + 75 + + 29 + - 11 / + 73 * + + 64
----
-6946

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT CASE + 31 WHEN - + NULLIF ( - - 67, - 87 * - 13 + - 15 + + 85 ) THEN NULL WHEN 42 THEN NULL ELSE MIN( DISTINCT - + 31 ) END AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7347
SELECT CASE + 31 WHEN - + NULLIF ( - - 67, - 87 * - 13 + - 15 + + 85 ) THEN NULL WHEN 42 THEN NULL ELSE MIN ( DISTINCT - + 31 ) END AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7348
SELECT ALL CAST( 4 AS SIGNED ) * 42 + + 79 * + 60 AS col2
----
4908

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL CAST ( 4 AS INTEGER ) * 42 + + 79 * + 60 AS col2
----
4908

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7349
SELECT - ( CAST( NULL AS SIGNED ) ), 49 AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-7349
SELECT - ( CAST ( NULL AS INTEGER ) ), 49 AS col2
----
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT MIN( + 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-7350
SELECT MIN ( + 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7351
SELECT COUNT( * ) * - + 25 - - MAX( - 34 ) * 20, - 48 * - + 62 AS col1
----
-705
2976

skipif mysql # not compatible
query II rowsort label-7351
SELECT COUNT ( * ) * - + 25 - - MAX ( - 34 ) * 20, - 48 * - + 62 AS col1
----
-705
2976

query I rowsort
SELECT + 65 + + 97 * 38 AS col0
----
3751

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT DISTINCT 71 + - 21 + + - COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT 71 + - 21 + + - COUNT ( * ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-7354
SELECT + COUNT( * ) + 94 AS col2, 92 col0
----
95
92

skipif mysql # not compatible
query II rowsort label-7354
SELECT + COUNT ( * ) + 94 AS col2, 92 col0
----
95
92

query I rowsort
SELECT ALL 6 - - 68 + - 49 + - 72 * + 51
----
-3647

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT DISTINCT 35 - 26 * - 76 + + MAX( - ( - 97 ) ) + + + 11 AS col2
----
2119

skipif mysql # not compatible
query I rowsort label-7356
SELECT DISTINCT 35 - 26 * - 76 + + MAX ( - ( - 97 ) ) + + + 11 AS col2
----
2119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT - CAST( 86 AS SIGNED ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-7357
SELECT - CAST ( 86 AS INTEGER ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-7358
SELECT ALL + 37 * - COUNT( - 2 ) AS col0, - ( 8 )
----
-37
-8

skipif mysql # not compatible
query II rowsort label-7358
SELECT ALL + 37 * - COUNT ( - 2 ) AS col0, - ( 8 )
----
-37
-8

query I rowsort
SELECT 51 * - 32 col2
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT + 45 + 9 + 31 * + 55 * + CASE + 77 WHEN 6 THEN - + COUNT( * ) ELSE NULL END * - + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT + 45 + 9 + 31 * + 55 * + CASE + 77 WHEN 6 THEN - + COUNT ( * ) ELSE NULL END * - + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT - 29 - - 59 + ( + - 43 ) + - + 44 + - COUNT( * ) * - + 97 - + 90
----
-50

skipif mysql # not compatible
query I rowsort label-7361
SELECT - 29 - - 59 + ( + - 43 ) + - + 44 + - COUNT ( * ) * - + 97 - + 90
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7362
SELECT ALL + + NULLIF ( - 3, + + 55 * - - 47 + - 14 + - 32 ) * COUNT( * ) - COALESCE ( + 76, - 12 + - COUNT( * ) + 61 DIV - MAX( DISTINCT - - 81 ) * - - CAST( NULL AS SIGNED ) ) - - COUNT( * ) * 72 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL + + NULLIF ( - 3, + + 55 * - - 47 + - 14 + - 32 ) * COUNT ( * ) - COALESCE ( + 76, - 12 + - COUNT ( * ) + 61 / - MAX ( DISTINCT - - 81 ) * - - CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) * 72 AS col0
----
-7

query I rowsort
SELECT 0 * - ( - + 63 ) AS col0
----
0

query I rowsort
SELECT ALL + 42 * + 87
----
3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7365
SELECT CASE + + 69 WHEN - 47 * + + ( - + 35 ) / - + CAST( - CAST( - AVG ( DISTINCT - 35 ) AS SIGNED ) AS SIGNED ) + - ( - - 35 ) * 85 / - 65 + 28 + 59 / 15 - + - 17 / + + 44 * + 88 + - - 92 + - COALESCE ( - 71, 51 ) THEN - 52 END * 79 - - 86 + + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7365
SELECT CASE + + 69 WHEN - 47 * + + ( - + 35 ) / - + CAST ( - CAST ( - AVG ( DISTINCT - 35 ) AS INTEGER ) AS INTEGER ) + - ( - - 35 ) * 85 / - 65 + 28 + 59 / 15 - + - 17 / + + 44 * + 88 + - - 92 + - COALESCE ( - 71, 51 ) THEN - 52 END * 79 - - 86 + + + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL - 18 + + - 56
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7367
SELECT + COUNT( * ) * - 51 + + 57 + - 99 / - NULLIF ( 72, - ( - 21 ) ) * CAST( NULL AS SIGNED ) / + COALESCE ( - 8, - CASE - 82 WHEN - + 97 THEN + + 76 * - 75 - + + 89 END * + - 55 ) * 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7367
SELECT + COUNT ( * ) * - 51 + + 57 + - 99 / - NULLIF ( 72, - ( - 21 ) ) * CAST ( NULL AS INTEGER ) / + COALESCE ( - 8, - CASE - 82 WHEN - + 97 THEN + + 76 * - 75 - + + 89 END * + - 55 ) * 46 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 28 col2
----
28

query I rowsort
SELECT 94 + + 10 * + NULLIF ( 30, - 29 ) AS col2
----
394

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL + 77 + MAX( - - 51 ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL + 77 + MAX ( - - 51 ) AS col0
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT ALL + 30 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL + 30 / - - 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-7372
SELECT ALL - COALESCE ( + 45, + 39 + + 93, 61 DIV - - SUM( + - 71 ) - + CASE CAST( NULL AS DECIMAL ) WHEN 91 THEN - CAST( NULL AS SIGNED ) * - 50 ELSE NULL END ) + - 22
----
-67

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - COALESCE ( + 45, + 39 + + 93, 61 / - - SUM ( + - 71 ) - + CASE CAST ( NULL AS REAL ) WHEN 91 THEN - CAST ( NULL AS INTEGER ) * - 50 ELSE NULL END ) + - 22
----
-67

query I rowsort
SELECT DISTINCT + 12 * + + 73 AS col2
----
876

query II rowsort
SELECT - 88 * 33 + 41 AS col2, 33 AS col2
----
-2863
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7375
SELECT ALL CAST( + AVG ( ALL + ( - 4 ) ) AS SIGNED ) + - 99
----
-103

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL CAST ( + AVG ( ALL + ( - 4 ) ) AS INTEGER ) + - 99
----
-103

query I rowsort
SELECT 17 * - - 76 * - 92 col2
----
-118864

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT COUNT( * ) - + 9
----
-8

skipif mysql # not compatible
query I rowsort label-7377
SELECT COUNT ( * ) - + 9
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT 40 * - 64 + - + 8 DIV 47 AS col1
----
-2560

skipif mysql # not compatible
query I rowsort label-7378
SELECT 40 * - 64 + - + 8 / 47 AS col1
----
-2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT 36 + CAST( - + 10 AS SIGNED ) + 58 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7379
SELECT 36 + CAST ( - + 10 AS INTEGER ) + 58 AS col0
----
84

query I rowsort
SELECT - 44 * + 1 * - 9 + 49
----
445

onlyif mysql # DIV for integer division: 
query I rowsort label-7381
SELECT DISTINCT 65 DIV - 84 * - + 17
----
0

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT 65 / - 84 * - + 17
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7382
SELECT ALL 82 DIV ( - + 12 )
----
-6

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL 82 / ( - + 12 )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7383
SELECT ALL - ( + + 43 ) / + - CASE - + COUNT( * ) WHEN - 70 * - AVG ( + 82 ) THEN - - 56 + - 60 / - NULLIF ( + NULLIF ( + COUNT( * ), 20 ), + MIN( ALL - - 99 ) * - 3 ) WHEN ( + 46 ) * 3 * + 95 * + 7 - 29 + + + 45 THEN NULL ELSE NULL END AS col2, + CAST( + 81 AS SIGNED ) + - 78 - 72 AS col1
----
NULL
-69

skipif mysql # not compatible
query II rowsort label-7383
SELECT ALL - ( + + 43 ) / + - CASE - + COUNT ( * ) WHEN - 70 * - AVG ( + 82 ) THEN - - 56 + - 60 / - NULLIF ( + NULLIF ( + COUNT ( * ), 20 ), + MIN ( ALL - - 99 ) * - 3 ) WHEN ( + 46 ) * 3 * + 95 * + 7 - 29 + + + 45 THEN NULL ELSE NULL END AS col2, + CAST ( + 81 AS INTEGER ) + - 78 - 72 AS col1
----
NULL
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7384
SELECT ALL 76 * - - MIN( 55 ), - 79 DIV + 64 + + 41 * - 99 AS col1
----
4180
-4060

skipif mysql # not compatible
query II rowsort label-7384
SELECT ALL 76 * - - MIN ( 55 ), - 79 / + 64 + + 41 * - 99 AS col1
----
4180
-4060

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT 22 + - - ( 97 ) DIV + 75 + + - 90
----
-67

skipif mysql # not compatible
query I rowsort label-7385
SELECT 22 + - - ( 97 ) / + 75 + + - 90
----
-67

query I rowsort
SELECT NULLIF ( 12, - + 27 ) + - 90 * + 0
----
12

query I rowsort
SELECT 81 + - 23 AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT - COALESCE ( - - 61, - ( - 15 ), - NULLIF ( CAST( + 10 AS SIGNED ), + - 24 + - - 27 * - AVG ( 2 ) ) ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7388
SELECT - COALESCE ( - - 61, - ( - 15 ), - NULLIF ( CAST ( + 10 AS INTEGER ), + - 24 + - - 27 * - AVG ( 2 ) ) ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT DISTINCT 45 * + COUNT( * ) - + 10 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT 45 * + COUNT ( * ) - + 10 AS col0
----
35

query I rowsort
SELECT 91 + - + 45
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7391
SELECT ALL - COUNT( * ) DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL - COUNT ( * ) / + 81
----
0

query I rowsort
SELECT - 2 + 10
----
8

query I rowsort
SELECT ALL 72 + + 95 + ( - 3 ) + - 59
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT + SUM( + + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-7394
SELECT + SUM ( + + 37 )
----
37

query II rowsort
SELECT + 91 AS col2, 91 AS col0
----
91
91

query II rowsort
SELECT ALL - + 94, - 6 * + - 42 AS col0
----
-94
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7397
SELECT + 68 / - + 38 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT + 68 / - + 38 - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 92 col0, 94 * + 27
----
92
2538

query II rowsort
SELECT + 52 + ( 28 ) AS col0, 18 col1
----
80
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7400
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) * + 4 * + 70
----
280

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) * + 4 * + 70
----
280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7401
SELECT ALL - CAST( NULL AS SIGNED ) * - - 19 / - 38 * + 80 * + 80 * + 53 * - + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 19 / - 38 * + 80 * + 80 * + 53 * - + 91 AS col2
----
NULL

query I rowsort
SELECT - 18 * 46 AS col0
----
-828

query I rowsort
SELECT ALL - ( + + 95 )
----
-95

query I rowsort
SELECT ALL 60 + + 77
----
137

query I rowsort
SELECT 27 * + 27 AS col1
----
729

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT - MIN( + + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT - MIN ( + + 9 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7407
SELECT 17 * 96 DIV 52
----
31

skipif mysql # not compatible
query I rowsort label-7407
SELECT 17 * 96 / 52
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7408
SELECT DISTINCT - COUNT( DISTINCT - 10 ) DIV - + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT - COUNT ( DISTINCT - 10 ) / - + 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7409
SELECT ALL NULLIF ( - - ( + 4 ), COUNT( * ) + + COUNT( * ) ) AS col0, - 79 - - 68 * - + 32 * 85 AS col2
----
4
-185039

skipif mysql # not compatible
query II rowsort label-7409
SELECT ALL NULLIF ( - - ( + 4 ), COUNT ( * ) + + COUNT ( * ) ) AS col0, - 79 - - 68 * - + 32 * 85 AS col2
----
4
-185039

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT ALL - ( 25 ) * - COUNT( ALL + 56 ) * 58
----
1450

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL - ( 25 ) * - COUNT ( ALL + 56 ) * 58
----
1450

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL COUNT( + + 96 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL COUNT ( + + 96 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT - 29 + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-7412
SELECT - 29 + COUNT ( * )
----
-28

query I rowsort
SELECT ALL COALESCE ( + - 14, - - 68 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT - 46 * - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-7414
SELECT - 46 * - COUNT ( * )
----
46

query I rowsort
SELECT + 52 + + + ( 6 ) * - 31
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - SUM( 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-7416
SELECT - SUM ( 80 ) AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT + ( 48 ) + + COUNT( ALL - 30 )
----
49

skipif mysql # not compatible
query I rowsort label-7417
SELECT + ( 48 ) + + COUNT ( ALL - 30 )
----
49

query II rowsort
SELECT ALL + 87 + 44 + 30 + 84 AS col1, - 12 * - + 18 * 31
----
245
6696

onlyif mysql # aggregate syntax: 
query II rowsort label-7419
SELECT - + MIN( + - 49 ), - 22 AS col0
----
49
-22

skipif mysql # not compatible
query II rowsort label-7419
SELECT - + MIN ( + - 49 ), - 22 AS col0
----
49
-22

query I rowsort
SELECT - 59 * + 52
----
-3068

query I rowsort
SELECT - 64 - - 2 + 33
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT DISTINCT - COUNT( - 34 ) + + - 47
----
-48

skipif mysql # not compatible
query I rowsort label-7422
SELECT DISTINCT - COUNT ( - 34 ) + + - 47
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT DISTINCT - 20 + + MIN( DISTINCT 41 )
----
21

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT - 20 + + MIN ( DISTINCT 41 )
----
21

query I rowsort
SELECT DISTINCT ( 24 ) + + + COALESCE ( 29, + 3 - 5 + + 47 ) * 34 AS col0
----
1010

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT DISTINCT - COUNT( DISTINCT - 88 ) + SUM( DISTINCT - 52 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT - COUNT ( DISTINCT - 88 ) + SUM ( DISTINCT - 52 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT + + 65 * COUNT( * ) - ( - COUNT( * ) ) + + 82
----
148

skipif mysql # not compatible
query I rowsort label-7426
SELECT + + 65 * COUNT ( * ) - ( - COUNT ( * ) ) + + 82
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7427
SELECT DISTINCT 78 * - 72 col1, + CAST( NULL AS SIGNED )
----
-5616
NULL

skipif mysql # not compatible
query II rowsort label-7427
SELECT DISTINCT 78 * - 72 col1, + CAST ( NULL AS INTEGER )
----
-5616
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT ALL CASE + 83 WHEN - 89 THEN - + COALESCE ( CASE - 3 WHEN + + 34 THEN - CAST( - NULLIF ( - 60, NULLIF ( - 19, AVG ( + 86 ) ) ) AS SIGNED ) * + - MAX( ALL - - 89 ) WHEN MAX( + CAST( 46 AS SIGNED ) ) * - + CAST( NULL AS SIGNED ) + 79 + + 23 THEN NULL END, 15 + - - 18 ) + - + 59 WHEN - 52 THEN 80 + 53 + + + 95 WHEN 84 THEN + COUNT( ALL + 92 ) ELSE 51 END
----
51

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL CASE + 83 WHEN - 89 THEN - + COALESCE ( CASE - 3 WHEN + + 34 THEN - CAST ( - NULLIF ( - 60, NULLIF ( - 19, AVG ( + 86 ) ) ) AS INTEGER ) * + - MAX ( ALL - - 89 ) WHEN MAX ( + CAST ( 46 AS INTEGER ) ) * - + CAST ( NULL AS INTEGER ) + 79 + + 23 THEN NULL END, 15 + - - 18 ) + - + 59 WHEN - 52 THEN 80 + 53 + + + 95 WHEN 84 THEN + COUNT ( ALL + 92 ) ELSE 51 END
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7429
SELECT - COUNT( DISTINCT + - 70 ) AS col1, 73 AS col0
----
-1
73

skipif mysql # not compatible
query II rowsort label-7429
SELECT - COUNT ( DISTINCT + - 70 ) AS col1, 73 AS col0
----
-1
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7430
SELECT + NULLIF ( - MAX( - 20 ), - 97 * - COUNT( * ) ) * - 62 * - COUNT( * ), - 83 AS col1
----
1240
-83

skipif mysql # not compatible
query II rowsort label-7430
SELECT + NULLIF ( - MAX ( - 20 ), - 97 * - COUNT ( * ) ) * - 62 * - COUNT ( * ), - 83 AS col1
----
1240
-83

query I rowsort
SELECT DISTINCT + 66 * 61 + + 2
----
4028

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT DISTINCT + + ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT + + ( + + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL + 23 * + + 55 * ( 51 ) + + 56
----
64571

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7434
SELECT DISTINCT - COUNT( * ) / 26 * + CAST( NULL AS SIGNED ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT - COUNT ( * ) / 26 * + CAST ( NULL AS INTEGER ) * - 52
----
NULL

query I rowsort
SELECT + 31 * 82
----
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT + 49 - - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-7436
SELECT + 49 - - COUNT ( * )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT ALL 54 DIV + + 19
----
2

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL 54 / + + 19
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7438
SELECT - 80 DIV + + COUNT( * ) + COUNT( * ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7438
SELECT - 80 / + + COUNT ( * ) + COUNT ( * ) AS col2
----
-79

query I rowsort
SELECT + 95 + + 38 col0
----
133

query I rowsort
SELECT ALL NULLIF ( + 87, + + 90 ) * - + 27 AS col2
----
-2349

query I rowsort
SELECT + 13 + 20
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7442
SELECT ALL COUNT( * ) DIV - + 50
----
0

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL COUNT ( * ) / - + 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7443
SELECT ALL - CAST( + 68 AS SIGNED ) * - 47 * + - ( - CASE COUNT( * ) WHEN + MAX( 38 ) * - 91 THEN + 39 END ) + - 28 - - - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL - CAST ( + 68 AS INTEGER ) * - 47 * + - ( - CASE COUNT ( * ) WHEN + MAX ( 38 ) * - 91 THEN + 39 END ) + - 28 - - - 88
----
NULL

query I rowsort
SELECT + 89 + - 92
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT DISTINCT MIN( 19 ) * + 94 + - - 2
----
1788

skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT MIN ( 19 ) * + 94 + - - 2
----
1788

query I rowsort
SELECT DISTINCT 12 * + + COALESCE ( 94, - 16 * + 36 - 61 )
----
1128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7447
SELECT - 41 + + ( + CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT - 41 + + ( + CAST ( NULL AS REAL ) ) col0
----
NULL

query I rowsort
SELECT ALL 47 * + 54
----
2538

query I rowsort
SELECT + 70 * + 24
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL + MIN( + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL + MIN ( + 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7451
SELECT - 11 + - 38 DIV MAX( - 75 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7451
SELECT - 11 + - 38 / MAX ( - 75 ) AS col2
----
-11

query I rowsort
SELECT - 29 * - - ( + 17 ) AS col2
----
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT ALL COUNT( CASE 90 WHEN + 7 THEN NULL WHEN - 47 THEN NULL ELSE + - 5 + + 0 END ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL COUNT ( CASE 90 WHEN + 7 THEN NULL WHEN - 47 THEN NULL ELSE + - 5 + + 0 END ) AS col0
----
1

query II rowsort
SELECT + 46 AS col0, 28 AS col0
----
46
28

query I rowsort
SELECT ALL - + 93 + - 61
----
-154

query I rowsort
SELECT DISTINCT - 33 + + + 94 col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT ALL + + 97 + - + CAST( NULL AS SIGNED ) + + 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + + 97 + - + CAST ( NULL AS INTEGER ) + + 57 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + + 16 * - NULLIF ( + 25, + - 24 / COALESCE ( COUNT( * ), - COUNT( * ) ) ) + + 31 + 56 AS col0
----
-313

skipif mysql # not compatible
query I rowsort label-7458
SELECT + + 16 * - NULLIF ( + 25, + - 24 / COALESCE ( COUNT ( * ), - COUNT ( * ) ) ) + + 31 + 56 AS col0
----
-313

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT - MAX( ALL + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-7459
SELECT - MAX ( ALL + 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT - 23 + - 43 - + - COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-7460
SELECT - 23 + - 43 - + - COUNT ( * ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT - COUNT( * ) + - 30 + - - CASE - 2 WHEN - 53 THEN - - 42 END + + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT - COUNT ( * ) + - 30 + - - CASE - 2 WHEN - 53 THEN - - 42 END + + 65 AS col1
----
NULL

query I rowsort
SELECT - + 61 + - 90 * 71 + 28
----
-6423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT ALL + CAST( NULL AS SIGNED ) + + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL + CAST ( NULL AS INTEGER ) + + 58 AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT - + CASE 63 WHEN + ( + - COUNT( * ) ) * + + 7 * - 89 + COUNT( ALL - 68 ) + - 20 - 89 + 85 * + + 95 * 83 THEN + COUNT( * ) WHEN - - 49 THEN - + 71 + + 16 END + + 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7465
SELECT - + CASE 63 WHEN + ( + - COUNT ( * ) ) * + + 7 * - 89 + COUNT ( ALL - 68 ) + - 20 - 89 + 85 * + + 95 * 83 THEN + COUNT ( * ) WHEN - - 49 THEN - + 71 + + 16 END + + 22 col0
----
NULL

query I rowsort
SELECT ALL - 90 * 33
----
-2970

query I rowsort
SELECT - - 84 + + 97
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL + 15 * - COUNT( * ) * - 9 * - - 6
----
810

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL + 15 * - COUNT ( * ) * - 9 * - - 6
----
810

query I rowsort
SELECT - + 9 + 3 * + 49
----
138

query I rowsort
SELECT + 9 + + 74 AS col0
----
83

query I rowsort
SELECT + ( - - 9 ) AS col2
----
9

query I rowsort
SELECT + + 60 * + + 77 * + 84
----
388080

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT + 25 + ( - - 47 ) + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-7473
SELECT + 25 + ( - - 47 ) + COUNT ( * )
----
73

query I rowsort
SELECT - 37 * + 90 * + 83
----
-276390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7475
SELECT + CASE + 18 WHEN 78 THEN - 70 + 70 + 72 WHEN - 32 * - AVG ( ALL - 25 ) / + + 59 THEN NULL WHEN + 49 * 71 * CASE + + SUM( - - 83 ) WHEN + + MIN( ALL + 11 ) / 46 THEN CAST( NULL AS SIGNED ) ELSE + - 3 * - 63 + COUNT( * ) END + - - 62 * 71 / - - 86 THEN - + COUNT( * ) + - 92 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT + CASE + 18 WHEN 78 THEN - 70 + 70 + 72 WHEN - 32 * - AVG ( ALL - 25 ) / + + 59 THEN NULL WHEN + 49 * 71 * CASE + + SUM ( - - 83 ) WHEN + + MIN ( ALL + 11 ) / 46 THEN CAST ( NULL AS INTEGER ) ELSE + - 3 * - 63 + COUNT ( * ) END + - - 62 * 71 / - - 86 THEN - + COUNT ( * ) + - 92 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT + CASE - 73 WHEN 32 THEN CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT + CASE - 73 WHEN 32 THEN CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7477
SELECT + ( + CASE + CAST( + + 12 AS SIGNED ) WHEN 38 - MAX( ALL CAST( - - 41 AS SIGNED ) ) + - 22 THEN + 66 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7477
SELECT + ( + CASE + CAST ( + + 12 AS INTEGER ) WHEN 38 - MAX ( ALL CAST ( - - 41 AS INTEGER ) ) + - 22 THEN + 66 END ) AS col2
----
NULL

query II rowsort
SELECT ALL - 0 AS col2, 72 * + - 49 AS col0
----
0
-3528

onlyif mysql # aggregate syntax: 
query II rowsort label-7479
SELECT ALL - 71 AS col0, + COUNT( 77 ) + + 26 - + + ( + 37 ) * - - 33 AS col2
----
-71
-1194

skipif mysql # not compatible
query II rowsort label-7479
SELECT ALL - 71 AS col0, + COUNT ( 77 ) + + 26 - + + ( + 37 ) * - - 33 AS col2
----
-71
-1194

query II rowsort
SELECT 71, 63 AS col0
----
71
63

query II rowsort
SELECT DISTINCT 0 + - 6 AS col1, - 80
----
-6
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT NULLIF ( + 21, MIN( + 92 ) + - + CASE - 61 WHEN 19 * - - 75 / + + NULLIF ( - 24, 57 + - ( 31 ) ) THEN NULL ELSE + + 32 END + COUNT( * ) * 62 + + ( + 35 ) / 40 ) * - ( + 11 )
----
-231

skipif mysql # not compatible
query I rowsort label-7482
SELECT NULLIF ( + 21, MIN ( + 92 ) + - + CASE - 61 WHEN 19 * - - 75 / + + NULLIF ( - 24, 57 + - ( 31 ) ) THEN NULL ELSE + + 32 END + COUNT ( * ) * 62 + + ( + 35 ) / 40 ) * - ( + 11 )
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7483
SELECT 77 / + CASE 39 WHEN - + CAST( - - ( 33 ) AS SIGNED ) * 18 THEN 21 * - - 78 WHEN + 45 THEN - + 43 - + - 4 + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT 77 / + CASE 39 WHEN - + CAST ( - - ( 33 ) AS INTEGER ) * 18 THEN 21 * - - 78 WHEN + 45 THEN - + 43 - + - 4 + 99 END
----
NULL

query I rowsort
SELECT ALL 93 + 28 + - COALESCE ( 14, 74 )
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT DISTINCT 52 * - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT 52 * - COUNT ( * )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7486
SELECT DISTINCT CAST( - 4 AS SIGNED ) + MIN( ALL + 6 )
----
2

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT CAST ( - 4 AS INTEGER ) + MIN ( ALL + 6 )
----
2

query I rowsort
SELECT ( - 64 ) * - + 50 AS col0
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ALL - COALESCE ( + 78, + 3 + - COUNT( * ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL - COALESCE ( + 78, + 3 + - COUNT ( * ) ) AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7489
SELECT CAST( 47 AS SIGNED ) DIV 65 * - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT CAST ( 47 AS INTEGER ) / 65 * - COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT DISTINCT 99 + CASE + + 35 WHEN + + COUNT( + ( 40 ) ) + + + 86 THEN + COUNT( * ) WHEN - 80 THEN + + 14 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT 99 + CASE + + 35 WHEN + + COUNT ( + ( 40 ) ) + + + 86 THEN + COUNT ( * ) WHEN - 80 THEN + + 14 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT - COUNT( * ) + + 20 + NULLIF ( 89, + ( 27 ) / - + COUNT( * ) ) + - 57 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - COUNT ( * ) + + 20 + NULLIF ( 89, + ( 27 ) / - + COUNT ( * ) ) + - 57 AS col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-7492
SELECT ALL + 33, + 93 * 88 * CASE + - 11 WHEN - 17 + - + 38 - - + 82 * + - COALESCE ( 2, - COUNT( * ) * + 3 + - 46, 98 ) THEN NULL WHEN 48 - + 97 THEN NULL ELSE 77 END + - - 52 AS col2
----
33
630220

skipif mysql # not compatible
query II rowsort label-7492
SELECT ALL + 33, + 93 * 88 * CASE + - 11 WHEN - 17 + - + 38 - - + 82 * + - COALESCE ( 2, - COUNT ( * ) * + 3 + - 46, 98 ) THEN NULL WHEN 48 - + 97 THEN NULL ELSE 77 END + - - 52 AS col2
----
33
630220

query I rowsort
SELECT + ( + 32 ) + + 3 * + 71 + - 75 AS col1
----
170

query I rowsort
SELECT DISTINCT + 43 + 38 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7495
SELECT ALL + + 15 - + - CAST( NULL AS SIGNED ) * + + CAST( + MAX( CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + + 15 - + - CAST ( NULL AS INTEGER ) * + + CAST ( + MAX ( CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7496
SELECT - COUNT( * ), 51 AS col1
----
-1
51

skipif mysql # not compatible
query II rowsort label-7496
SELECT - COUNT ( * ), 51 AS col1
----
-1
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT + MAX( - 79 ) + + ( + 90 )
----
11

skipif mysql # not compatible
query I rowsort label-7497
SELECT + MAX ( - 79 ) + + ( + 90 )
----
11

query I rowsort
SELECT DISTINCT + + 40 * + + 9 AS col2
----
360

query I rowsort
SELECT ALL - 50 - 84
----
-134

query I rowsort
SELECT COALESCE ( + - 58, + 46 + ( - + 78 ) ) * + 81
----
-4698

query I rowsort
SELECT 25 - - - 24 AS col2
----
1

query I rowsort
SELECT DISTINCT + - 73 * + - 65 AS col1
----
4745

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7503
SELECT - 11 DIV - - 50 * COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7503
SELECT - 11 / - - 50 * COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT 17 * + COUNT( * ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7504
SELECT 17 * + COUNT ( * ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7505
SELECT - SUM( + - 9 ), 91 * - 81 AS col2
----
9
-7371

skipif mysql # not compatible
query II rowsort label-7505
SELECT - SUM ( + - 9 ), 91 * - 81 AS col2
----
9
-7371

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT 48 DIV + 21
----
2

skipif mysql # not compatible
query I rowsort label-7506
SELECT 48 / + 21
----
2

query I rowsort
SELECT 17 - + 1 - - + 49 AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7508
SELECT 20 DIV + COUNT( * ), 28 * - 24 AS col2
----
20
-672

skipif mysql # not compatible
query II rowsort label-7508
SELECT 20 / + COUNT ( * ), 28 * - 24 AS col2
----
20
-672

query II rowsort
SELECT DISTINCT 19 * - - 36, 69 AS col1
----
684
69

query I rowsort
SELECT DISTINCT 95 + 22 AS col1
----
117

query I rowsort
SELECT ALL + 50 + + 51 - 64 + - 23 col2
----
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7512
SELECT - 28 * + + 21 + + 77 * ( - CAST( NULL AS DECIMAL ) ) * + - 81 * + 18 + 27 + - 89 * 89 + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT - 28 * + + 21 + + 77 * ( - CAST ( NULL AS REAL ) ) * + - 81 * + 18 + 27 + - 89 * 89 + + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT MAX( ALL + 12 ) - + 61 col0
----
-49

skipif mysql # not compatible
query I rowsort label-7513
SELECT MAX ( ALL + 12 ) - + 61 col0
----
-49

query I rowsort
SELECT ALL - 78 + - 17 AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT 45 + + + CASE + 40 WHEN + + 75 THEN + 85 END / - - CAST( - - ( + 53 ) AS SIGNED ) / + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT 45 + + + CASE + 40 WHEN + + 75 THEN + 85 END / - - CAST ( - - ( + 53 ) AS INTEGER ) / + + 89
----
NULL

query I rowsort
SELECT ALL - ( - 35 ) + + 51
----
86

query I rowsort
SELECT DISTINCT + 33 + + + ( 79 ) AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT ALL 46 + + 58 / CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL 46 + + 58 / CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query II rowsort
SELECT 80 + + - 21 AS col2, + CASE 8 WHEN ( - 57 ) THEN NULL WHEN - 37 THEN - 64 + - 42 END
----
59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT 4 + - MIN( ALL 35 ) - - COUNT( * ) * - 96 col2
----
-127

skipif mysql # not compatible
query I rowsort label-7520
SELECT 4 + - MIN ( ALL 35 ) - - COUNT ( * ) * - 96 col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT DISTINCT + MAX( DISTINCT - 86 ) - + + 32
----
-118

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT + MAX ( DISTINCT - 86 ) - + + 32
----
-118

query I rowsort
SELECT CASE - + 95 WHEN 43 THEN NULL WHEN AVG ( DISTINCT - + 7 ) THEN + + 84 END * + 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL ( + 73 ) * - 2 * + NULLIF ( 46, - CASE - CASE + 61 WHEN + - 74 THEN + 6 WHEN + + COALESCE ( 18, - + 4 + + - 25 + 60 ) + + 87 THEN NULL END WHEN 17 THEN NULLIF ( - - 60, 61 ) WHEN 29 THEN NULL WHEN - NULLIF ( + + 88, + + 25 ) * 77 + - SUM( ALL 95 ) THEN - 41 - - 48 END ) AS col2
----
-6716

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL ( + 73 ) * - 2 * + NULLIF ( 46, - CASE - CASE + 61 WHEN + - 74 THEN + 6 WHEN + + COALESCE ( 18, - + 4 + + - 25 + 60 ) + + 87 THEN NULL END WHEN 17 THEN NULLIF ( - - 60, 61 ) WHEN 29 THEN NULL WHEN - NULLIF ( + + 88, + + 25 ) * 77 + - SUM ( ALL 95 ) THEN - 41 - - 48 END ) AS col2
----
-6716

query I rowsort
SELECT 14 + 24 + - 20 * - - 36 AS col0
----
-682

query I rowsort
SELECT DISTINCT 11 - 72
----
-61

query II rowsort
SELECT 94 + + + 59 col2, - 63
----
153
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT 52 * + CAST( - 61 AS SIGNED ) + + - ( - 18 ) - COUNT( * )
----
-3155

skipif mysql # not compatible
query I rowsort label-7527
SELECT 52 * + CAST ( - 61 AS INTEGER ) + + - ( - 18 ) - COUNT ( * )
----
-3155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7528
SELECT COUNT( * ) + - 42, - 71 DIV + CAST( + 26 AS SIGNED ) col2
----
-41
-2

skipif mysql # not compatible
query II rowsort label-7528
SELECT COUNT ( * ) + - 42, - 71 / + CAST ( + 26 AS INTEGER ) col2
----
-41
-2

query II rowsort
SELECT 29 + + - 9 AS col2, + ( - + 82 ) AS col1
----
20
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT ALL + SUM( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL + SUM ( 96 )
----
96

query I rowsort
SELECT NULLIF ( 33, - 38 + + - 25 ) * - - 17 AS col0
----
561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7532
SELECT + ( - ( - COUNT( * ) ) ) * - CAST( - NULLIF ( - 87, - 6 ) AS SIGNED ) * - 7 * CASE - - COALESCE ( - 53, 65 ) WHEN COUNT( * ) THEN + 61 WHEN - - 93 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT + ( - ( - COUNT ( * ) ) ) * - CAST ( - NULLIF ( - 87, - 6 ) AS INTEGER ) * - 7 * CASE - - COALESCE ( - 53, 65 ) WHEN COUNT ( * ) THEN + 61 WHEN - - 93 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT 63 + + - SUM( DISTINCT NULLIF ( 34, + 2 * + 28 + + 51 * - - 6 * 40 + + 0 + 58 ) )
----
29

skipif mysql # not compatible
query I rowsort label-7533
SELECT 63 + + - SUM ( DISTINCT NULLIF ( 34, + 2 * + 28 + + 51 * - - 6 * 40 + + 0 + 58 ) )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT MAX( DISTINCT + - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7534
SELECT MAX ( DISTINCT + - 95 ) AS col0
----
-95

query I rowsort
SELECT + 90 + - - 39 AS col1
----
129

query II rowsort
SELECT ALL 39 AS col0, 0 + - + 48
----
39
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL + 9 * - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL + 9 * - COUNT ( * ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7538
SELECT DISTINCT CAST( + SUM( ALL + - 26 ) AS SIGNED ) * + MIN( DISTINCT 42 ) * CASE - 76 WHEN 33 THEN + + ( 89 ) + + 65 END + - 12 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT CAST ( + SUM ( ALL + - 26 ) AS INTEGER ) * + MIN ( DISTINCT 42 ) * CASE - 76 WHEN 33 THEN + + ( 89 ) + + 65 END + - 12 * - 21
----
NULL

query I rowsort
SELECT - 60 + - - 71 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT - COUNT( * ) + 20 * CASE + 41 WHEN 43 THEN NULL WHEN + 52 THEN - NULLIF ( 94, + 77 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT - COUNT ( * ) + 20 * CASE + 41 WHEN 43 THEN NULL WHEN + 52 THEN - NULLIF ( 94, + 77 ) END
----
NULL

query I rowsort
SELECT COALESCE ( NULLIF ( + 89, + 11 ), - 62 + - ( - 24 ) )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT + 13, CASE - - 50 WHEN 43 THEN - CASE + ( - 82 ) WHEN 17 THEN ( + 57 ) * 12 * + + 37 + + 43 WHEN ( COUNT( * ) ) THEN - 16 * - 68 * - 63 ELSE NULL END + MAX( - 13 ) END AS col1
----
13
NULL

skipif mysql # not compatible
query II rowsort label-7542
SELECT + 13, CASE - - 50 WHEN 43 THEN - CASE + ( - 82 ) WHEN 17 THEN ( + 57 ) * 12 * + + 37 + + 43 WHEN ( COUNT ( * ) ) THEN - 16 * - 68 * - 63 ELSE NULL END + MAX ( - 13 ) END AS col1
----
13
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT ALL + 42 * - ( - 54 ) + + - 37 * + - 9 DIV 44 DIV 26
----
2268

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + 42 * - ( - 54 ) + + - 37 * + - 9 / 44 / 26
----
2268

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT DISTINCT - 74 DIV - 13 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT - 74 / - 13 AS col1
----
5

query I rowsort
SELECT COALESCE ( + 91, + 3, + ( - 19 ) )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7546
SELECT - 52 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-7546
SELECT - 52 / - 78
----
0

query I rowsort
SELECT ALL - 47 * 73 * + 32
----
-109792

query I rowsort
SELECT - 70 * + 80
----
-5600

onlyif mysql # aggregate syntax: 
query II rowsort label-7549
SELECT + COUNT( * ) * - 25 - + 69 AS col0, - 87 - + 95 + 73 AS col1
----
-94
-109

skipif mysql # not compatible
query II rowsort label-7549
SELECT + COUNT ( * ) * - 25 - + 69 AS col0, - 87 - + 95 + 73 AS col1
----
-94
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT NULLIF ( 78, + COUNT( - - 59 ) / + - 68 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7550
SELECT NULLIF ( 78, + COUNT ( - - 59 ) / + - 68 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7551
SELECT 7 * + - 18 - COUNT( * ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT 7 * + - 18 - COUNT ( * ) + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7552
SELECT ALL - 64 * 36 - COUNT( * ) + - + ( SUM( DISTINCT - 18 ) ) DIV 34 * - + 36 + - 79
----
-2384

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - 64 * 36 - COUNT ( * ) + - + ( SUM ( DISTINCT - 18 ) ) / 34 * - + 36 + - 79
----
-2384

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - + 38 * COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7553
SELECT - + 38 * COUNT ( * ) AS col2
----
-38

query I rowsort
SELECT ALL + + ( + - 62 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT ALL + 39 AS col2, 53 + 60 * - 54 + COUNT( * ) AS col1
----
39
-3186

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL + 39 AS col2, 53 + 60 * - 54 + COUNT ( * ) AS col1
----
39
-3186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7556
SELECT - NULLIF ( + - 36, + COUNT( * ) + COUNT( * ) - - COUNT( DISTINCT 68 ) * 92 + - 33 + + NULLIF ( + COUNT( - + 4 ), CAST( - 74 AS SIGNED ) ) ) + + - 69
----
-33

skipif mysql # not compatible
query I rowsort label-7556
SELECT - NULLIF ( + - 36, + COUNT ( * ) + COUNT ( * ) - - COUNT ( DISTINCT 68 ) * 92 + - 33 + + NULLIF ( + COUNT ( - + 4 ), CAST ( - 74 AS INTEGER ) ) ) + + - 69
----
-33

query I rowsort
SELECT ALL - - 32 * 56 col0
----
1792

query II rowsort
SELECT - 39 * - 41 * ( - - 44 ) AS col0, 37 AS col1
----
70356
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT + ( + MAX( ALL + 73 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-7559
SELECT + ( + MAX ( ALL + 73 ) ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT + 48 * + COUNT( * ) + - 33 * + 68
----
-2196

skipif mysql # not compatible
query I rowsort label-7560
SELECT + 48 * + COUNT ( * ) + - 33 * + 68
----
-2196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7561
SELECT + - 22 DIV COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7561
SELECT + - 22 / COUNT ( * ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT - - 11 * 85 * - COUNT( * ) + - 2 AS col1
----
-937

skipif mysql # not compatible
query I rowsort label-7562
SELECT - - 11 * 85 * - COUNT ( * ) + - 2 AS col1
----
-937

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT + - COUNT( * ) + COUNT( DISTINCT 38 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7563
SELECT + - COUNT ( * ) + COUNT ( DISTINCT 38 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL - MIN( + 38 ) * 3 + + COUNT( * )
----
-113

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL - MIN ( + 38 ) * 3 + + COUNT ( * )
----
-113

onlyif mysql # DIV for integer division: 
query I rowsort label-7565
SELECT + - 61 DIV 42 + + 39 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7565
SELECT + - 61 / 42 + + 39 AS col1
----
38

query I rowsort
SELECT + 2 * - - 24
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7567
SELECT DISTINCT - COALESCE ( - 50, - 84 DIV + 72 DIV CASE + 73 WHEN + NULLIF ( + + 4, + COUNT( * ) ) * + COUNT( * ) - + NULLIF ( + - 80, + 83 + 59 ) THEN - 48 ELSE NULL END - - + 37 * - 44 * + - 69 ) + + 73 col1
----
123

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT - COALESCE ( - 50, - 84 / + 72 / CASE + 73 WHEN + NULLIF ( + + 4, + COUNT ( * ) ) * + COUNT ( * ) - + NULLIF ( + - 80, + 83 + 59 ) THEN - 48 ELSE NULL END - - + 37 * - 44 * + - 69 ) + + 73 col1
----
123

query I rowsort
SELECT + 60 + + - 51 + ( 33 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT ALL 29 * + COUNT( ALL + 99 )
----
29

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL 29 * + COUNT ( ALL + 99 )
----
29

query I rowsort
SELECT ALL 78 + 0 * + 57 AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7571
SELECT ALL CAST( NULL AS SIGNED ) + - - 31 AS col1, - COUNT( * ) * - CASE - 84 WHEN + 69 THEN + COUNT( * ) - + - ( + 89 ) + 83 END + 79 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7571
SELECT ALL CAST ( NULL AS INTEGER ) + - - 31 AS col1, - COUNT ( * ) * - CASE - 84 WHEN + 69 THEN + COUNT ( * ) - + - ( + 89 ) + 83 END + 79 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT + 54 - - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-7572
SELECT + 54 - - COUNT ( * ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT - NULLIF ( ( - + MAX( - 9 ) ), - - 31 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7573
SELECT - NULLIF ( ( - + MAX ( - 9 ) ), - - 31 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT + 30 + COALESCE ( 98, - + 79, + 33 * - MIN( ALL - 54 ) ) * - 1
----
-68

skipif mysql # not compatible
query I rowsort label-7574
SELECT + 30 + COALESCE ( 98, - + 79, + 33 * - MIN ( ALL - 54 ) ) * - 1
----
-68

query I rowsort
SELECT - ( + - 6 )
----
6

query II rowsort
SELECT DISTINCT 47 + - 19 AS col1, 61 * + - 60 + 39
----
28
-3621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT ALL - 87 * - CAST( - 51 AS SIGNED ) AS col2
----
-4437

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL - 87 * - CAST ( - 51 AS INTEGER ) AS col2
----
-4437

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7578
SELECT ALL + 81 DIV - 16 + - MAX( ALL - ( 98 ) ) - - - 7
----
86

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL + 81 / - 16 + - MAX ( ALL - ( 98 ) ) - - - 7
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7579
SELECT + CAST( + 29 AS SIGNED ) AS col0, - COUNT( * ) AS col1
----
29
-1

skipif mysql # not compatible
query II rowsort label-7579
SELECT + CAST ( + 29 AS INTEGER ) AS col0, - COUNT ( * ) AS col1
----
29
-1

query I rowsort
SELECT DISTINCT - 60 * 93 AS col1
----
-5580

query I rowsort
SELECT - 46 * COALESCE ( + 3, + - 25 + + 28 ) col1
----
-138

query I rowsort
SELECT + 81 * - 66 * - 24 + - - 28 * + 31 col0
----
129172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7583
SELECT - CAST( NULL AS SIGNED ) - + COUNT( * ) + + COALESCE ( - + 56, - MAX( + - 72 ) * + 61 * + 83 + + 17, + - 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7583
SELECT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + COALESCE ( - + 56, - MAX ( + - 72 ) * + 61 * + 83 + + 17, + - 1 )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 15, + 67 + + + 17 ) col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7585
SELECT + CAST( 82 AS SIGNED ) col1
----
82

skipif mysql # not compatible
query I rowsort label-7585
SELECT + CAST ( 82 AS INTEGER ) col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7586
SELECT 88 * - + 51 / MAX( ALL CAST( NULL AS SIGNED ) ) - - - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7586
SELECT 88 * - + 51 / MAX ( ALL CAST ( NULL AS INTEGER ) ) - - - 49
----
NULL

query I rowsort
SELECT + 87 * + 55 AS col0
----
4785

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL 62 * 80 * - + COUNT( * ) AS col0
----
-4960

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL 62 * 80 * - + COUNT ( * ) AS col0
----
-4960

onlyif mysql # aggregate syntax: 
query II rowsort label-7589
SELECT DISTINCT + COUNT( * ) * 28 col1, - 1 * 81
----
28
-81

skipif mysql # not compatible
query II rowsort label-7589
SELECT DISTINCT + COUNT ( * ) * 28 col1, - 1 * 81
----
28
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7590
SELECT ALL - 23 DIV - COUNT( * ) + 8 * COUNT( * ) * + 72 * + 72 col2
----
41495

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL - 23 / - COUNT ( * ) + 8 * COUNT ( * ) * + 72 * + 72 col2
----
41495

query I rowsort
SELECT 17 * 20 + + 70 AS col0
----
410

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL 92 * - 7 - + CASE 69 WHEN + + 46 * + ( - 0 ) + + 14 THEN NULL WHEN 19 THEN NULL WHEN + ( - 40 ) - - + 89 THEN NULL ELSE - 64 * ( + + COUNT( * ) ) + - 55 END
----
-525

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL 92 * - 7 - + CASE 69 WHEN + + 46 * + ( - 0 ) + + 14 THEN NULL WHEN 19 THEN NULL WHEN + ( - 40 ) - - + 89 THEN NULL ELSE - 64 * ( + + COUNT ( * ) ) + - 55 END
----
-525

query II rowsort
SELECT - + 1 * + - 21 * 19 * - - 65 AS col1, 1
----
25935
1

query I rowsort
SELECT - - 26 * + + 8 * - 25 AS col0
----
-5200

query I rowsort
SELECT ALL - 71 * - 10 - - 10
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT - 3 * + 95 * + - CAST( NULL AS SIGNED ) / - 94 * 53 * 2 * + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT - 3 * + 95 * + - CAST ( NULL AS INTEGER ) / - 94 * 53 * 2 * + 58 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 54 * 50
----
2700

onlyif mysql # aggregate syntax: 
query II rowsort label-7598
SELECT ALL + NULLIF ( + MAX( + 82 ), 69 ) AS col1, 49 + 92 AS col1
----
82
141

skipif mysql # not compatible
query II rowsort label-7598
SELECT ALL + NULLIF ( + MAX ( + 82 ), 69 ) AS col1, 49 + 92 AS col1
----
82
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT DISTINCT - 77 + SUM( - 42 )
----
-119

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT - 77 + SUM ( - 42 )
----
-119

query I rowsort
SELECT 19 - - + 64
----
83

query I rowsort
SELECT 26 + 17 AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7602
SELECT ALL 1 DIV - 18 * 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL 1 / - 18 * 42 AS col1
----
0

query I rowsort
SELECT 42 + - 49
----
-7

query II rowsort
SELECT - 0, - 71 AS col0
----
0
-71

query I rowsort
SELECT ALL 95 + + 72 AS col2
----
167

query I rowsort
SELECT 51 + + 44 + - 67 + + - 28 - + 7 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT SUM( 65 ) + + + 31 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7607
SELECT SUM ( 65 ) + + + 31 AS col1
----
96

query I rowsort
SELECT DISTINCT + 74 * + 39
----
2886

query II rowsort
SELECT 72, 37 col0
----
72
37

query I rowsort
SELECT DISTINCT 94 - + 81
----
13

query I rowsort
SELECT 67 * + 46 AS col1
----
3082

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7612
SELECT CAST( NULL AS DECIMAL ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT CAST ( NULL AS REAL ) + - 99
----
NULL

query I rowsort
SELECT 79 * - + 89 * 13
----
-91403

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT + MAX( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7614
SELECT + MAX ( ALL + 7 )
----
7

query I rowsort
SELECT DISTINCT - - 73 col2
----
73

query I rowsort
SELECT ALL - + ( + 5 )
----
-5

query II rowsort
SELECT + 40, 95 + - 68 AS col1
----
40
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL COUNT( * ) * - 71 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL COUNT ( * ) * - 71 AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7619
SELECT - CAST( - 33 AS SIGNED ) DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-7619
SELECT - CAST ( - 33 AS INTEGER ) / + 38
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT - NULLIF ( 72, COUNT( * ) ) * + - 52 + - + 6, 95 AS col2
----
3738
95

skipif mysql # not compatible
query II rowsort label-7620
SELECT - NULLIF ( 72, COUNT ( * ) ) * + - 52 + - + 6, 95 AS col2
----
3738
95

query I rowsort
SELECT ALL - - 52 + + 21 * 99 AS col1
----
2131

query I rowsort
SELECT ALL + - 89 + - 91 AS col1
----
-180

query I rowsort
SELECT ALL - 39 * - 87 AS col1
----
3393

query I rowsort
SELECT DISTINCT 89 + - 8
----
81

query I rowsort
SELECT + 28 - - 86 * - ( 1 )
----
-58

query I rowsort
SELECT ALL - COALESCE ( - 7, + 63, + 93 ) AS col1
----
7

query I rowsort
SELECT ALL 7 + + 18
----
25

query I rowsort
SELECT - 1 * 47 - + 50 + 5 col0
----
-92

query I rowsort
SELECT 61 + + 94 AS col0
----
155

query I rowsort
SELECT DISTINCT - 5 * + + 71 AS col2
----
-355

query I rowsort
SELECT ALL - 87 * - 94 AS col2
----
8178

query I rowsort
SELECT 51 * 68
----
3468

query I rowsort
SELECT DISTINCT - 14 - + 31 * 44 * 73 + 63 AS col1
----
-99523

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT + 5 * MIN( DISTINCT - 72 ) AS col0
----
-360

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT + 5 * MIN ( DISTINCT - 72 ) AS col0
----
-360

query II rowsort
SELECT ALL 54, 65 col1
----
54
65

query I rowsort
SELECT ALL + 87 * + 25 AS col2
----
2175

query I rowsort
SELECT 51 + - 97 - - 86 - + 34 * + 65 AS col1
----
-2170

query I rowsort
SELECT 60 + 56
----
116

query II rowsort
SELECT 57 AS col2, + 2 * + CASE + 52 WHEN - ( - + 16 ) THEN 53 - 57 WHEN + 68 THEN + - 15 * + NULLIF ( - 77, + + 83 ) + + 4 WHEN 66 THEN NULL ELSE NULL END * - 23 AS col0
----
57
NULL

query II rowsort
SELECT - 22, + 39 col2
----
-22
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT SUM( ALL - 54 ) * - 38 - - 64 * 6 - + 37 + - 81 + 16 + + COUNT( * ) + + CASE - 13 WHEN + + 59 THEN CASE - - 14 WHEN - + 31 THEN + 94 WHEN - 18 * - + ( - 20 ) + 17 THEN + 33 * 90 * + + 55 END WHEN 17 THEN NULL WHEN + AVG ( 60 ) * - 30 + - + 50 THEN - 98 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT SUM ( ALL - 54 ) * - 38 - - 64 * 6 - + 37 + - 81 + 16 + + COUNT ( * ) + + CASE - 13 WHEN + + 59 THEN CASE - - 14 WHEN - + 31 THEN + 94 WHEN - 18 * - + ( - 20 ) + 17 THEN + 33 * 90 * + + 55 END WHEN 17 THEN NULL WHEN + AVG ( 60 ) * - 30 + - + 50 THEN - 98 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT COUNT( DISTINCT + 9 ) - - ( - 26 ) col0
----
-25

skipif mysql # not compatible
query I rowsort label-7642
SELECT COUNT ( DISTINCT + 9 ) - - ( - 26 ) col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7643
SELECT ALL + 52 DIV - + 94
----
0

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + 52 / - + 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT DISTINCT + 43 DIV - 6 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT + 43 / - 6 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL ( COUNT( * ) ) * - 93
----
-93

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL ( COUNT ( * ) ) * - 93
----
-93

query II rowsort
SELECT ALL - + 27, + 36 * 6 AS col0
----
-27
216

query I rowsort
SELECT + 29 * 20 + + 77 AS col0
----
657

query I rowsort
SELECT - 19 - - 12
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL + ( + + 56 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + ( + + 56 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7650
SELECT + 41 DIV + + 65 + - 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7650
SELECT + 41 / + + 65 + - 40 AS col1
----
-40

query II rowsort
SELECT DISTINCT - 32, - 65 * + 70 * 54 AS col2
----
-32
-245700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7652
SELECT - 45 * - 22 + - 81 - - SUM( ALL ( - - 34 ) ) * - 41 + 44 + + + 29 + + 87 - - COUNT( ALL + ( - 69 ) ) + + CAST( NULL AS SIGNED ) - 87 * - 81 - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT - 45 * - 22 + - 81 - - SUM ( ALL ( - - 34 ) ) * - 41 + 44 + + + 29 + + 87 - - COUNT ( ALL + ( - 69 ) ) + + CAST ( NULL AS INTEGER ) - 87 * - 81 - 36 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7653
SELECT ALL + 43 * 33 DIV - - 64 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL + 43 * 33 / - - 64 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7654
SELECT ALL + MAX( ALL 10 ) * + 87 * 43 / + NULLIF ( + CAST( NULL AS SIGNED ), - + MIN( ALL 64 ) ) * + 22 + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL + MAX ( ALL 10 ) * + 87 * 43 / + NULLIF ( + CAST ( NULL AS INTEGER ), - + MIN ( ALL 64 ) ) * + 22 + - 96
----
NULL

query I rowsort
SELECT + - CASE + - 61 WHEN NULLIF ( + 30, + 69 * 91 * + 84 ) / - - 98 * - - 48 THEN + 44 * 44 END + + 7 / 5 * - 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7656
SELECT DISTINCT + COALESCE ( + SUM( + 22 ), - COALESCE ( - - COUNT( * ), + CAST( - 62 AS SIGNED ) ) )
----
22

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT + COALESCE ( + SUM ( + 22 ), - COALESCE ( - - COUNT ( * ), + CAST ( - 62 AS INTEGER ) ) )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT ALL 52 * - - CAST( 27 AS SIGNED ) * + 19 AS col2
----
26676

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL 52 * - - CAST ( 27 AS INTEGER ) * + 19 AS col2
----
26676

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT ALL + + 80 * + NULLIF ( 85, - COUNT( * ) ) + + 20 AS col2
----
6820

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL + + 80 * + NULLIF ( 85, - COUNT ( * ) ) + + 20 AS col2
----
6820

query I rowsort
SELECT ALL - - 14 * - 8 + + - 27
----
-139

query II rowsort
SELECT 21 AS col0, + NULLIF ( + + 11, - - 0 ) AS col0
----
21
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT + SUM( + 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7661
SELECT + SUM ( + 99 ) AS col0
----
99

query I rowsort
SELECT + - CASE - - 33 WHEN + 0 - + - 27 THEN + - 62 - 4 END + 38 * + + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT + 79 * - COUNT( * ) * - 47 + 53 * 89 AS col1
----
8430

skipif mysql # not compatible
query I rowsort label-7663
SELECT + 79 * - COUNT ( * ) * - 47 + 53 * 89 AS col1
----
8430

onlyif mysql # aggregate syntax: 
query II rowsort label-7664
SELECT + 49 * 78 * NULLIF ( + - 68, COUNT( * ) - 51 ), - 50 AS col0
----
-259896
-50

skipif mysql # not compatible
query II rowsort label-7664
SELECT + 49 * 78 * NULLIF ( + - 68, COUNT ( * ) - 51 ), - 50 AS col0
----
-259896
-50

query I rowsort
SELECT + + 22 + + 46 + - 63 * - - ( - 35 ) col2
----
2273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7666
SELECT - + COUNT( * ) DIV - ( - MAX( 36 ) ) * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7666
SELECT - + COUNT ( * ) / - ( - MAX ( 36 ) ) * + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT 36 * + - 81
----
-2916

onlyif mysql # aggregate syntax: 
query II rowsort label-7668
SELECT ALL 19 - + 25, 39 * + 76 * - MAX( 65 ) AS col0
----
-6
-192660

skipif mysql # not compatible
query II rowsort label-7668
SELECT ALL 19 - + 25, 39 * + 76 * - MAX ( 65 ) AS col0
----
-6
-192660

onlyif mysql # aggregate syntax: 
query II rowsort label-7669
SELECT + MAX( DISTINCT + + COALESCE ( + 53, + + ( - - 83 ) ) ) * - 80 * - COUNT( * ) AS col2, 24
----
4240
24

skipif mysql # not compatible
query II rowsort label-7669
SELECT + MAX ( DISTINCT + + COALESCE ( + 53, + + ( - - 83 ) ) ) * - 80 * - COUNT ( * ) AS col2, 24
----
4240
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7670
SELECT ALL CAST( + + 26 AS SIGNED ) * - COUNT( * ) + - + 30
----
-56

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL CAST ( + + 26 AS INTEGER ) * - COUNT ( * ) + - + 30
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT ALL + 28 DIV + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + 28 / + 55 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7672
SELECT ALL 18 - COUNT( * ), + CAST( - AVG ( - ( + - 72 ) ) AS SIGNED ) * + 30 AS col1
----
17
-2160

skipif mysql # not compatible
query II rowsort label-7672
SELECT ALL 18 - COUNT ( * ), + CAST ( - AVG ( - ( + - 72 ) ) AS INTEGER ) * + 30 AS col1
----
17
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT + COUNT( * ) + + 37
----
38

skipif mysql # not compatible
query I rowsort label-7673
SELECT + COUNT ( * ) + + 37
----
38

query I rowsort
SELECT + 18 * + + 16 AS col0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT - ( + 51 ) * + + 69 * + - 75 * NULLIF ( COUNT( * ), NULLIF ( + 26, 50 ) ) AS col2
----
263925

skipif mysql # not compatible
query I rowsort label-7675
SELECT - ( + 51 ) * + + 69 * + - 75 * NULLIF ( COUNT ( * ), NULLIF ( + 26, 50 ) ) AS col2
----
263925

query I rowsort
SELECT - ( + 42 ) col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT - 0 + 11 + 84 DIV 78 DIV + 47 + 33 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7677
SELECT - 0 + 11 + 84 / 78 / + 47 + 33 AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7678
SELECT ALL + 56 * + + COUNT( * ) * - 27 DIV CASE 15 WHEN - 43 THEN NULL WHEN - 58 THEN NULL WHEN 24 THEN NULL ELSE - 9 * + + 66 * + 22 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL + 56 * + + COUNT ( * ) * - 27 / CASE 15 WHEN - 43 THEN NULL WHEN - 58 THEN NULL WHEN 24 THEN NULL ELSE - 9 * + + 66 * + 22 END AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7679
SELECT - NULLIF ( + COUNT( * ), - 34 ) + - 12 DIV - + 71 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7679
SELECT - NULLIF ( + COUNT ( * ), - 34 ) + - 12 / - + 71 AS col0
----
-1

query II rowsort
SELECT ALL + 66 * + - 47 AS col1, + ( + - 19 ) AS col1
----
-3102
-19

query I rowsort
SELECT - 40 + + 1 col2
----
-39

query I rowsort
SELECT ALL - 93 + + 33 AS col2
----
-60

query I rowsort
SELECT DISTINCT + 39 * 52 * - ( + 34 )
----
-68952

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7684
SELECT - - 38 + 75 DIV - 50 AS col1, SUM( 95 ) AS col1
----
37
95

skipif mysql # not compatible
query II rowsort label-7684
SELECT - - 38 + 75 / - 50 AS col1, SUM ( 95 ) AS col1
----
37
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7685
SELECT ALL + + 87 / - 60 / COUNT( * ) * - + NULLIF ( + - COUNT( * ), - 79 - + 15 ) * + 44 / CAST( NULL AS SIGNED ) * 26 * 4 + - 39 + - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL + + 87 / - 60 / COUNT ( * ) * - + NULLIF ( + - COUNT ( * ), - 79 - + 15 ) * + 44 / CAST ( NULL AS INTEGER ) * 26 * 4 + - 39 + - 4 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7686
SELECT ALL + CAST( NULL AS SIGNED ) / 57 + + COUNT( * ) * + 58 + - - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL + CAST ( NULL AS INTEGER ) / 57 + + COUNT ( * ) * + 58 + - - ( - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7687
SELECT ALL 18 / + - CASE + 83 WHEN + 1 THEN NULL WHEN + + CAST( NULL AS SIGNED ) THEN 4 END * + 1 + + - 47 + + MIN( - 74 ) + - 69 * + 37, + 32 - - NULLIF ( - + NULLIF ( + 70, + - COALESCE ( + 95, + + NULLIF ( - + 27, - + 99 - + + 75 - - 24 * - 42 ) ) + - - 31 + CASE - - COUNT( * ) WHEN + 54 THEN NULL WHEN + 50 THEN 6 * + 93 END / 38 * - 91 ), - - 19 - - 71 + - 70 / - - 67 ) + - COUNT( * ) AS col1
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-7687
SELECT ALL 18 / + - CASE + 83 WHEN + 1 THEN NULL WHEN + + CAST ( NULL AS INTEGER ) THEN 4 END * + 1 + + - 47 + + MIN ( - 74 ) + - 69 * + 37, + 32 - - NULLIF ( - + NULLIF ( + 70, + - COALESCE ( + 95, + + NULLIF ( - + 27, - + 99 - + + 75 - - 24 * - 42 ) ) + - - 31 + CASE - - COUNT ( * ) WHEN + 54 THEN NULL WHEN + 50 THEN 6 * + 93 END / 38 * - 91 ), - - 19 - - 71 + - 70 / - - 67 ) + - COUNT ( * ) AS col1
----
NULL
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7688
SELECT DISTINCT - 75 DIV - 61 + COUNT( ALL + - COALESCE ( 28, + 28 ) ) + + - COALESCE ( - + 61, + CASE 79 WHEN - ( + 54 ) + + + COUNT( ALL - + ( - 73 ) ) + - 13 * + SUM( ALL - - 33 ) * - 6 * 3 * + 40 * + 40 + 62 + 12 THEN NULL WHEN 84 * + 42 DIV - 56 - + + 9 + + + MAX( 41 ) + - 83 * + 3 * + CASE 85 WHEN + 64 + + CAST( NULL AS SIGNED ) - - - MAX( 15 ) DIV 69 THEN - 22 ELSE COUNT( * ) END + COALESCE ( 96 + 47 * + 81, 71 ) THEN NULL WHEN - 64 * 49 THEN 66 * - 47 END, 48 + - 35 DIV - 72 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT - 75 / - 61 + COUNT ( ALL + - COALESCE ( 28, + 28 ) ) + + - COALESCE ( - + 61, + CASE 79 WHEN - ( + 54 ) + + + COUNT ( ALL - + ( - 73 ) ) + - 13 * + SUM ( ALL - - 33 ) * - 6 * 3 * + 40 * + 40 + 62 + 12 THEN NULL WHEN 84 * + 42 / - 56 - + + 9 + + + MAX ( 41 ) + - 83 * + 3 * + CASE 85 WHEN + 64 + + CAST ( NULL AS INTEGER ) - - - MAX ( 15 ) / 69 THEN - 22 ELSE COUNT ( * ) END + COALESCE ( 96 + 47 * + 81, 71 ) THEN NULL WHEN - 64 * 49 THEN 66 * - 47 END, 48 + - 35 / - 72 ) AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7689
SELECT DISTINCT + + 2 * + - 0 + COALESCE ( - COUNT( * ), + - 19 + + + 21 ) * - 13 DIV + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT + + 2 * + - 0 + COALESCE ( - COUNT ( * ), + - 19 + + + 21 ) * - 13 / + 75 AS col2
----
0

query I rowsort
SELECT ALL - - 37 * - - 57 * + 31 + - - 31
----
65410

query I rowsort
SELECT - 10 * 59 - + 45 AS col2
----
-635

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - + MAX( 16 ) - + 67 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-7692
SELECT - + MAX ( 16 ) - + 67 AS col1
----
-83

query II rowsort
SELECT DISTINCT 7 * - 64 col0, - 45
----
-448
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT - - CAST( - 74 AS SIGNED ) + - 68 AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-7694
SELECT - - CAST ( - 74 AS INTEGER ) + - 68 AS col2
----
-142

query II rowsort
SELECT + 10 * - + 27 - + + 10 AS col2, + 15 + + 41 + 10 + - + 92 * + + 52 * + 49 + - COALESCE ( - + 10, + ( 56 ), - + 32 ) + + 85 * - - 59
----
-280
-229325

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT DISTINCT + 96 col0, + 34 + - MAX( + ( CASE - 30 WHEN + 71 + - 89 THEN - 40 END ) ) AS col1
----
96
NULL

skipif mysql # not compatible
query II rowsort label-7696
SELECT DISTINCT + 96 col0, + 34 + - MAX ( + ( CASE - 30 WHEN + 71 + - 89 THEN - 40 END ) ) AS col1
----
96
NULL

query II rowsort
SELECT DISTINCT + 41 col2, - ( - 59 )
----
41
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7698
SELECT + CAST( NULL AS DECIMAL ) * - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT + CAST ( NULL AS REAL ) * - + 59 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7699
SELECT + 0 + + - ( + CAST( NULL AS DECIMAL ) ) + - 82 * - 18 * - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT + 0 + + - ( + CAST ( NULL AS REAL ) ) + - 82 * - 18 * - + 1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT CAST( - 78 AS SIGNED ) * - 89 * - 20 + - - 2 - + 56 * 99
----
-144382

skipif mysql # not compatible
query I rowsort label-7700
SELECT CAST ( - 78 AS INTEGER ) * - 89 * - 20 + - - 2 - + 56 * 99
----
-144382

query I rowsort
SELECT + 94 * + 17 AS col1
----
1598

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT - 0 * - 45 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-7702
SELECT - 0 * - 45 / + 98
----
0

query I rowsort
SELECT ALL 6 * - 52 AS col0
----
-312

onlyif mysql # aggregate syntax: 
query II rowsort label-7704
SELECT ALL 63, COUNT( * ) AS col0
----
63
1

skipif mysql # not compatible
query II rowsort label-7704
SELECT ALL 63, COUNT ( * ) AS col0
----
63
1

query I rowsort
SELECT DISTINCT 35 * + 89
----
3115

query I rowsort
SELECT DISTINCT CASE WHEN NOT 59 IS NULL THEN 68 END AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT ALL - MAX( 77 ) + 78 * - + NULLIF ( - + CAST( 35 AS SIGNED ), + 62 )
----
2653

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL - MAX ( 77 ) + 78 * - + NULLIF ( - + CAST ( 35 AS INTEGER ), + 62 )
----
2653

query I rowsort
SELECT + 64 * - 27 AS col1
----
-1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT ALL 70 + + CAST( - 41 AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL 70 + + CAST ( - 41 AS INTEGER ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT DISTINCT - ( MAX( 95 ) ) + - 66 * + 94 col2
----
-6299

skipif mysql # not compatible
query I rowsort label-7710
SELECT DISTINCT - ( MAX ( 95 ) ) + - 66 * + 94 col2
----
-6299

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT DISTINCT MIN( DISTINCT 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT MIN ( DISTINCT 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT - 34 * COUNT( * ) * + - 19 AS col2
----
646

skipif mysql # not compatible
query I rowsort label-7712
SELECT - 34 * COUNT ( * ) * + - 19 AS col2
----
646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT + - 98 + - - CASE - 16 WHEN 64 + - 43 THEN - - 7 WHEN 59 THEN NULL WHEN 78 THEN + 10 + - - 79 + - 92 * - 55 + + 40 ELSE + 95 END * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT + - 98 + - - CASE - 16 WHEN 64 + - 43 THEN - - 7 WHEN 59 THEN NULL WHEN 78 THEN + 10 + - - 79 + - 92 * - 55 + + 40 ELSE + 95 END * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7714
SELECT ALL - - 58 + - 43 + + - NULLIF ( + + MIN( 36 ), 57 + - + CASE ( - - 84 ) WHEN MIN( 69 ) THEN - 14 + + 3 - + 45 END ) + MIN( - ( - CAST( + - 79 AS SIGNED ) ) ) * - 72 * - 79
----
-449373

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL - - 58 + - 43 + + - NULLIF ( + + MIN ( 36 ), 57 + - + CASE ( - - 84 ) WHEN MIN ( 69 ) THEN - 14 + + 3 - + 45 END ) + MIN ( - ( - CAST ( + - 79 AS INTEGER ) ) ) * - 72 * - 79
----
-449373

query I rowsort
SELECT 44 - + 51
----
-7

query I rowsort
SELECT DISTINCT + 85 + 58
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7717
SELECT ALL + + 45 * - CAST( + 77 AS SIGNED ), + 26 + + COUNT( * ) AS col2
----
-3465
27

skipif mysql # not compatible
query II rowsort label-7717
SELECT ALL + + 45 * - CAST ( + 77 AS INTEGER ), + 26 + + COUNT ( * ) AS col2
----
-3465
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7718
SELECT COUNT( DISTINCT + + 49 ) + - + 2, 31 AS col2
----
-1
31

skipif mysql # not compatible
query II rowsort label-7718
SELECT COUNT ( DISTINCT + + 49 ) + - + 2, 31 AS col2
----
-1
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7719
SELECT + ( 44 ) + ( 72 ) - - + 48 + + 34 * + 93 - + 78, COUNT( * ) * NULLIF ( + + 10, - - COUNT( - 74 ) + CAST( - ( 21 ) AS DECIMAL ) - 50 - + 38 ) * - ( - - ( - - COUNT( * ) ) ) * + COALESCE ( + 92, - COUNT( * ) ) - COUNT( * ) AS col1
----
3248
-921

skipif mysql # not compatible
query II rowsort label-7719
SELECT + ( 44 ) + ( 72 ) - - + 48 + + 34 * + 93 - + 78, COUNT ( * ) * NULLIF ( + + 10, - - COUNT ( - 74 ) + CAST ( - ( 21 ) AS REAL ) - 50 - + 38 ) * - ( - - ( - - COUNT ( * ) ) ) * + COALESCE ( + 92, - COUNT ( * ) ) - COUNT ( * ) AS col1
----
3248
-921

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7720
SELECT CAST( NULL AS SIGNED ) * - 71 * - - MIN( + 55 ) + + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT CAST ( NULL AS INTEGER ) * - 71 * - - MIN ( + 55 ) + + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7721
SELECT ALL - 72 AS col0, CASE + 29 WHEN - 77 - 12 THEN - 80 * + COUNT( * ) END
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-7721
SELECT ALL - 72 AS col0, CASE + 29 WHEN - 77 - 12 THEN - 80 * + COUNT ( * ) END
----
-72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT 92 * - 99 + + - SUM( 58 ) + 69 + COUNT( * ) * + 13
----
-9084

skipif mysql # not compatible
query I rowsort label-7722
SELECT 92 * - 99 + + - SUM ( 58 ) + 69 + COUNT ( * ) * + 13
----
-9084

query I rowsort
SELECT + 75 + 92 AS col2
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT + - MIN( 80 ) * 46 + 50 col0
----
-3630

skipif mysql # not compatible
query I rowsort label-7724
SELECT + - MIN ( 80 ) * 46 + 50 col0
----
-3630

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT COALESCE ( + COUNT( * ), - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7725
SELECT COALESCE ( + COUNT ( * ), - COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT ALL - MIN( + + 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL - MIN ( + + 93 ) AS col0
----
-93

query I rowsort
SELECT ALL - 45 * + - CASE + 34 WHEN - - 61 THEN - - NULLIF ( - + ( + 76 ), - 92 ) END - - 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7728
SELECT DISTINCT - CAST( - 76 AS SIGNED ) DIV + + 43
----
1

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT - CAST ( - 76 AS INTEGER ) / + + 43
----
1

query II rowsort
SELECT ALL + 1 - + - 69 * - - 15 * - + 56 AS col2, - 98
----
-57959
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7730
SELECT DISTINCT - 46 * COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - 46 * COUNT ( * )
----
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7731
SELECT 80 DIV CAST( 87 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7731
SELECT 80 / CAST ( 87 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7732
SELECT 70 DIV + 70 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7732
SELECT 70 / + 70 AS col2
----
1

query I rowsort
SELECT ALL - 66 * + 29 * + + ( - 35 )
----
66990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT DISTINCT + 11 + + - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT + 11 + + - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7735
SELECT ALL + 93 + - + COUNT( * ) + + 1 DIV + 34 * + COUNT( * ) AS col1, - 32
----
92
-32

skipif mysql # not compatible
query II rowsort label-7735
SELECT ALL + 93 + - + COUNT ( * ) + + 1 / + 34 * + COUNT ( * ) AS col1, - 32
----
92
-32

query II rowsort
SELECT 5 + + - 7, + 59 AS col1
----
-2
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT 76 + - 93 - - COALESCE ( + 19, + 87 ) * + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7737
SELECT 76 + - 93 - - COALESCE ( + 19, + 87 ) * + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL COUNT( * ) + - 52 * + - 59
----
3069

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL COUNT ( * ) + - 52 * + - 59
----
3069

onlyif mysql # aggregate syntax: 
query II rowsort label-7739
SELECT DISTINCT 81 + + COUNT( * ), + 82
----
82
82

skipif mysql # not compatible
query II rowsort label-7739
SELECT DISTINCT 81 + + COUNT ( * ), + 82
----
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT 95 DIV 32
----
2

skipif mysql # not compatible
query I rowsort label-7740
SELECT 95 / 32
----
2

query I rowsort
SELECT 30 + 13 - - + 26 AS col0
----
69

query I rowsort
SELECT + 38 + + + 45
----
83

query I rowsort
SELECT ALL - 56 + - + 13 AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7744
SELECT + 65 + - 92 + + 20 * - 56 * - 5 DIV - - COUNT( * )
----
5573

skipif mysql # not compatible
query I rowsort label-7744
SELECT + 65 + - 92 + + 20 * - 56 * - 5 / - - COUNT ( * )
----
5573

onlyif mysql # aggregate syntax: 
query III rowsort label-7745
SELECT ALL + 81 - - - 0 AS col2, 66 * + 65 * 37 AS col1, - + MAX( + 20 )
----
81
158730
-20

skipif mysql # not compatible
query III rowsort label-7745
SELECT ALL + 81 - - - 0 AS col2, 66 * + 65 * 37 AS col1, - + MAX ( + 20 )
----
81
158730
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-7746
SELECT 38 DIV 74 AS col2, - 58 AS col2
----
0
-58

skipif mysql # not compatible
query II rowsort label-7746
SELECT 38 / 74 AS col2, - 58 AS col2
----
0
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT - COUNT( ALL - + ( + - 61 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7747
SELECT - COUNT ( ALL - + ( + - 61 ) )
----
-1

query I rowsort
SELECT ALL 85 - + - 26 + + NULLIF ( - 27, + 42 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT 7 * + + SUM( DISTINCT - + 57 ) AS col1
----
-399

skipif mysql # not compatible
query I rowsort label-7749
SELECT 7 * + + SUM ( DISTINCT - + 57 ) AS col1
----
-399

query II rowsort
SELECT DISTINCT - - NULLIF ( - - NULLIF ( + - 75, - 68 ), + 90 * + 96 + - 92 ) AS col0, 89 + 97 AS col1
----
-75
186

query I rowsort
SELECT ALL - ( ( + + 52 ) )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7752
SELECT + + 44 DIV - 46 + + 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7752
SELECT + + 44 / - 46 + + 26 AS col2
----
26

query I rowsort
SELECT - 4 * - - 19 AS col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT - 1 * - 80 * + 80 * CAST( - 75 AS SIGNED ) - - ( + 25 )
----
-479975

skipif mysql # not compatible
query I rowsort label-7754
SELECT - 1 * - 80 * + 80 * CAST ( - 75 AS INTEGER ) - - ( + 25 )
----
-479975

query I rowsort
SELECT ALL - NULLIF ( - 2, + + 71 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT + MIN( 53 )
----
53

skipif mysql # not compatible
query I rowsort label-7756
SELECT + MIN ( 53 )
----
53

query I rowsort
SELECT 61 * + + 98 + - 19
----
5959

query I rowsort
SELECT ALL - ( 50 ) AS col2
----
-50

query I rowsort
SELECT ALL 59 + - - 31 + - ( - + 50 ) col0
----
140

query I rowsort
SELECT 86 * + + 80
----
6880

query I rowsort
SELECT DISTINCT + 25 + + 76
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-7762
SELECT ALL - 24 col1, 63 * - - COUNT( * )
----
-24
63

skipif mysql # not compatible
query II rowsort label-7762
SELECT ALL - 24 col1, 63 * - - COUNT ( * )
----
-24
63

query II rowsort
SELECT + 7 col0, + 33 * + - ( 54 ) AS col0
----
7
-1782

query I rowsort
SELECT 99 - + + 8 AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7765
SELECT ALL + 7 + - COUNT( - + 22 ) DIV + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + 7 + - COUNT ( - + 22 ) / + COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT 76 * + NULLIF ( COUNT( * ), + - COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-7766
SELECT 76 * + NULLIF ( COUNT ( * ), + - COUNT ( * ) )
----
76

query I rowsort
SELECT 85 * + 63 * + + 79 * + - 81
----
-34266645

query I rowsort
SELECT 88 + + 52 * ( 45 )
----
2428

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT COUNT( * ) * - + ( - 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7769
SELECT COUNT ( * ) * - + ( - 17 ) AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7770
SELECT NULLIF ( + 7, - 13 ) / - + CASE - 9 WHEN + 53 THEN - 70 ELSE 2 * 61 + 17 + + + SUM( - - CAST( NULL AS DECIMAL ) ) - 84 * - - 62 END + - - NULLIF ( - 68, NULLIF ( - + 0, 47 ) ) - - - 45 + + 35 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT NULLIF ( + 7, - 13 ) / - + CASE - 9 WHEN + 53 THEN - 70 ELSE 2 * 61 + 17 + + + SUM ( - - CAST ( NULL AS REAL ) ) - 84 * - - 62 END + - - NULLIF ( - 68, NULLIF ( - + 0, 47 ) ) - - - 45 + + 35 * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7771
SELECT ALL + 62 + - 21 + CAST( NULL AS DECIMAL ) + + 89 + + - 19 - - 19 * - + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL + 62 + - 21 + CAST ( NULL AS REAL ) + + 89 + + - 19 - - 19 * - + 55 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 81 + - 62 AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7773
SELECT DISTINCT 43 AS col1, + AVG ( ALL - 57 ) * CASE + + COUNT( * ) WHEN + 59 THEN NULL WHEN 80 THEN NULL WHEN - 82 * - 90 - - - 1 THEN + CAST( NULL AS SIGNED ) END - 61 AS col1
----
43
NULL

skipif mysql # not compatible
query II rowsort label-7773
SELECT DISTINCT 43 AS col1, + AVG ( ALL - 57 ) * CASE + + COUNT ( * ) WHEN + 59 THEN NULL WHEN 80 THEN NULL WHEN - 82 * - 90 - - - 1 THEN + CAST ( NULL AS INTEGER ) END - 61 AS col1
----
43
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT CAST( - - 86 AS SIGNED ) col2
----
86

skipif mysql # not compatible
query I rowsort label-7774
SELECT CAST ( - - 86 AS INTEGER ) col2
----
86

query I rowsort
SELECT ALL + + 74 - 43
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT ALL 89 - + - 88 + - - CAST( + 57 AS SIGNED ) + 83 AS col1
----
317

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL 89 - + - 88 + - - CAST ( + 57 AS INTEGER ) + 83 AS col1
----
317

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT - 3 + + 22 + SUM( - - 53 ) - 90, 33 + 19 AS col0
----
-18
52

skipif mysql # not compatible
query II rowsort label-7777
SELECT - 3 + + 22 + SUM ( - - 53 ) - 90, 33 + 19 AS col0
----
-18
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7778
SELECT 11, + 5 * - CAST( COUNT( * ) AS SIGNED ) col0
----
11
-5

skipif mysql # not compatible
query II rowsort label-7778
SELECT 11, + 5 * - CAST ( COUNT ( * ) AS INTEGER ) col0
----
11
-5

query I rowsort
SELECT - 16 + + 89
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7780
SELECT + CASE - 73 WHEN + ( 28 ) THEN - 30 WHEN 48 + + 80 THEN - COUNT( * ) * - - CAST( NULL AS SIGNED ) * 2 / + 66 END * - ( 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT + CASE - 73 WHEN + ( 28 ) THEN - 30 WHEN 48 + + 80 THEN - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * 2 / + 66 END * - ( 86 )
----
NULL

query I rowsort
SELECT ALL - ( - 62 ) - - 17 + - - 21 AS col2
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT - NULLIF ( - - 54, + - 37 * - - CAST( NULL AS SIGNED ) * + 49 + - 9 + - 5 )
----
-54

skipif mysql # not compatible
query I rowsort label-7782
SELECT - NULLIF ( - - 54, + - 37 * - - CAST ( NULL AS INTEGER ) * + 49 + - 9 + - 5 )
----
-54

query I rowsort
SELECT ALL + + 19 * + + 89 AS col0
----
1691

query I rowsort
SELECT DISTINCT 31 * + + 78
----
2418

query I rowsort
SELECT + 93 + + 57
----
150

query II rowsort
SELECT ALL + - 62 AS col1, + 2 AS col1
----
-62
2

query I rowsort
SELECT + 32 + - ( + ( 51 ) )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7788
SELECT + COUNT( * ) * - 71 DIV + 3 + + 4 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7788
SELECT + COUNT ( * ) * - 71 / + 3 + + 4 AS col0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT ALL 13 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL 13 / - 81
----
0

query II rowsort
SELECT ALL + 35 AS col2, + 81 AS col0
----
35
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT ALL 59 * - 5 + - CAST( + + ( CAST( + 42 AS SIGNED ) ) AS SIGNED )
----
-337

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL 59 * - 5 + - CAST ( + + ( CAST ( + 42 AS INTEGER ) ) AS INTEGER )
----
-337

query II rowsort
SELECT ALL + 25 AS col2, - 0 col0
----
25
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7793
SELECT 11 * - - 10 * + + COUNT( * ) * - 60 + + 50 DIV 19 * + ( 5 )
----
-6590

skipif mysql # not compatible
query I rowsort label-7793
SELECT 11 * - - 10 * + + COUNT ( * ) * - 60 + + 50 / 19 * + ( 5 )
----
-6590

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ALL 15 * + CASE - + NULLIF ( - 89, 1 + - + 44 * + + NULLIF ( 80, + CASE + 87 WHEN - 0 + + 96 * + - 79 * + 28 THEN - SUM( DISTINCT - 14 ) * + + 51 END + + 92 + + - 21 ) ) WHEN 49 THEN - COALESCE ( - + 57, - 50 ) / - 36 * - + MAX( - + 39 ) / + - 72 + 27 END * + - 34 - 94 * - 20 * - 4 + - - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL 15 * + CASE - + NULLIF ( - 89, 1 + - + 44 * + + NULLIF ( 80, + CASE + 87 WHEN - 0 + + 96 * + - 79 * + 28 THEN - SUM ( DISTINCT - 14 ) * + + 51 END + + 92 + + - 21 ) ) WHEN 49 THEN - COALESCE ( - + 57, - 50 ) / - 36 * - + MAX ( - + 39 ) / + - 72 + 27 END * + - 34 - 94 * - 20 * - 4 + - - 57
----
NULL

query I rowsort
SELECT + ( - - 15 ) AS col0
----
15

query I rowsort
SELECT NULLIF ( - + 3, + 99 )
----
-3

query II rowsort
SELECT + 71, 24 AS col0
----
71
24

query II rowsort
SELECT ALL + 40 AS col1, 53 + - ( 73 ) + 80 + + + 33 + - 74
----
40
19

query I rowsort
SELECT DISTINCT 58 * + + 25 - + + 52
----
1398

query I rowsort
SELECT ALL + - 38 - - 61
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7801
SELECT ALL 16, COUNT( * ) AS col0
----
16
1

skipif mysql # not compatible
query II rowsort label-7801
SELECT ALL 16, COUNT ( * ) AS col0
----
16
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7802
SELECT - 47 + NULLIF ( + COUNT( * ), - 82 * - CAST( NULL AS SIGNED ) ) * - 75
----
-122

skipif mysql # not compatible
query I rowsort label-7802
SELECT - 47 + NULLIF ( + COUNT ( * ), - 82 * - CAST ( NULL AS INTEGER ) ) * - 75
----
-122

query I rowsort
SELECT DISTINCT + - 96 - + + 83
----
-179

query I rowsort
SELECT - 61 * + + 47 AS col2
----
-2867

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7805
SELECT DISTINCT - COUNT( * ) * 66 DIV + 8
----
-8

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT - COUNT ( * ) * 66 / + 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT MIN( ALL - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-7806
SELECT MIN ( ALL - 15 )
----
-15

query I rowsort
SELECT + + 4 + - 17
----
-13

query II rowsort
SELECT - - 90 AS col0, 18 AS col1
----
90
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT - COUNT( * ) * - 73 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7809
SELECT - COUNT ( * ) * - 73 AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7810
SELECT + ( - + COALESCE ( - + 96, + 17 + + - 20 ) ) * - 14, 69 + - CASE + - 62 WHEN - 77 THEN NULL WHEN + + 30 THEN + 73 * - + COUNT( * ) + ( + 6 ) END AS col0
----
-1344
NULL

skipif mysql # not compatible
query II rowsort label-7810
SELECT + ( - + COALESCE ( - + 96, + 17 + + - 20 ) ) * - 14, 69 + - CASE + - 62 WHEN - 77 THEN NULL WHEN + + 30 THEN + 73 * - + COUNT ( * ) + ( + 6 ) END AS col0
----
-1344
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ALL + - MAX( DISTINCT + 1 ) + 2
----
1

skipif mysql # not compatible
query I rowsort label-7811
SELECT ALL + - MAX ( DISTINCT + 1 ) + 2
----
1

query II rowsort
SELECT - 7 AS col2, + 29
----
-7
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT - NULLIF ( - - 21, CASE + - 45 WHEN - MIN( DISTINCT - 11 ) THEN NULL WHEN - 24 THEN - COUNT( * ) + - 88 * + 59 END ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-7813
SELECT - NULLIF ( - - 21, CASE + - 45 WHEN - MIN ( DISTINCT - 11 ) THEN NULL WHEN - 24 THEN - COUNT ( * ) + - 88 * + 59 END ) col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT - - 33 * 27 + - SUM( - 1 ) + COUNT( * ) DIV + 96
----
892

skipif mysql # not compatible
query I rowsort label-7814
SELECT - - 33 * 27 + - SUM ( - 1 ) + COUNT ( * ) / + 96
----
892

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT + - 27 + + COUNT( * ) + - 2 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-7815
SELECT + - 27 + + COUNT ( * ) + - 2 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT + COALESCE ( + 75, COUNT( * ) + - 65, + ( SUM( + 33 ) ) * + 17 + - 52 )
----
75

skipif mysql # not compatible
query I rowsort label-7816
SELECT + COALESCE ( + 75, COUNT ( * ) + - 65, + ( SUM ( + 33 ) ) * + 17 + - 52 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT DISTINCT 56 DIV + - COALESCE ( - - 29, - + 48 ) + + + COALESCE ( - 16, 32 DIV 64 * - 59, + 80 ) - 0
----
-17

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT 56 / + - COALESCE ( - - 29, - + 48 ) + + + COALESCE ( - 16, 32 / 64 * - 59, + 80 ) - 0
----
-17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7818
SELECT ALL - 30 DIV + ( + CAST( + AVG ( - 85 ) AS SIGNED ) ) + 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL - 30 / + ( + CAST ( + AVG ( - 85 ) AS INTEGER ) ) + 88 AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7819
SELECT + CAST( NULL AS SIGNED ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT + CAST ( NULL AS INTEGER ) * - 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7820
SELECT CAST( - COALESCE ( + + COUNT( * ), - COUNT( * ) * - 70 + + 69 ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7820
SELECT CAST ( - COALESCE ( + + COUNT ( * ), - COUNT ( * ) * - 70 + + 69 ) AS INTEGER ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7821
SELECT + 0 DIV 43, + ( - - COALESCE ( + ( + 58 ), - NULLIF ( 15, 1 * + - SUM( + 94 ) - - 62 * - 2 ) ) ) AS col2
----
0
58

skipif mysql # not compatible
query II rowsort label-7821
SELECT + 0 / 43, + ( - - COALESCE ( + ( + 58 ), - NULLIF ( 15, 1 * + - SUM ( + 94 ) - - 62 * - 2 ) ) ) AS col2
----
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7822
SELECT ALL 42 DIV - 67 + + + 6 + + - 20
----
-14

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL 42 / - 67 + + + 6 + + - 20
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-7823
SELECT 43 DIV + 54 - - 34 - - 26 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7823
SELECT 43 / + 54 - - 34 - - 26 AS col0
----
60

query I rowsort
SELECT + COALESCE ( + ( - 51 ), - 56 )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-7825
SELECT + CASE - ( COUNT( * ) ) WHEN + + 40 THEN - - 73 END + - - 84 + - 63 + NULLIF ( 21, + 61 ) AS col2, 61
----
NULL
61

skipif mysql # not compatible
query II rowsort label-7825
SELECT + CASE - ( COUNT ( * ) ) WHEN + + 40 THEN - - 73 END + - - 84 + - 63 + NULLIF ( 21, + 61 ) AS col2, 61
----
NULL
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7826
SELECT DISTINCT 58 DIV + COUNT( * ) col2
----
58

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT 58 / + COUNT ( * ) col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT COALESCE ( - 16, - ( + - 78 ) ) * + ( + COUNT( * ) ) + + + 13 + - + ( 87 ) + - 42 + COALESCE ( 93, 4 ) * + 34
----
3030

skipif mysql # not compatible
query I rowsort label-7827
SELECT COALESCE ( - 16, - ( + - 78 ) ) * + ( + COUNT ( * ) ) + + + 13 + - + ( 87 ) + - 42 + COALESCE ( 93, 4 ) * + 34
----
3030

query I rowsort
SELECT ALL - NULLIF ( 98, + 99 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7829
SELECT ALL + 94 * CASE + COUNT( * ) WHEN 55 THEN + 75 + COUNT( * ) / + + MAX( + 24 ) * + CAST( - 91 AS SIGNED ) END * - 6 - COUNT( - ( - 46 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + 94 * CASE + COUNT ( * ) WHEN 55 THEN + 75 + COUNT ( * ) / + + MAX ( + 24 ) * + CAST ( - 91 AS INTEGER ) END * - 6 - COUNT ( - ( - 46 ) ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 10 * + 47 * + COALESCE ( 92, + 59, 42 * + 98 ) AS col1, 83 * + 79 AS col2
----
43240
6557

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7831
SELECT - ( 96 ) col2, CASE CAST( - ( ( - 58 ) ) AS SIGNED ) WHEN - - NULLIF ( + + ( - COUNT( * ) ), + - 82 * + - 13 + 35 ) * 22 THEN + + 98 + 69 WHEN - + 34 * + 2 + 57 THEN + COUNT( * ) * - 22 END / - 39 / - COUNT( - 68 ) AS col1
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-7831
SELECT - ( 96 ) col2, CASE CAST ( - ( ( - 58 ) ) AS INTEGER ) WHEN - - NULLIF ( + + ( - COUNT ( * ) ), + - 82 * + - 13 + 35 ) * 22 THEN + + 98 + 69 WHEN - + 34 * + 2 + 57 THEN + COUNT ( * ) * - 22 END / - 39 / - COUNT ( - 68 ) AS col1
----
-96
NULL

query I rowsort
SELECT 36 * - - 37 AS col1
----
1332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7833
SELECT - 25 DIV + 7 * + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-7833
SELECT - 25 / + 7 * + COUNT ( * )
----
-3

query I rowsort
SELECT DISTINCT + 50 + - 21 + + ( + 66 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT - COUNT( ALL + - 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7835
SELECT - COUNT ( ALL + - 52 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - - 27 * 2 AS col1
----
54

query I rowsort
SELECT 84 + - - 80
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL + COUNT( * ) * 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL + COUNT ( * ) * 77 AS col1
----
77

query I rowsort
SELECT ( - 17 ) + CASE 59 WHEN - 42 THEN 91 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT 74 * + COUNT( * ) * 67
----
4958

skipif mysql # not compatible
query I rowsort label-7840
SELECT 74 * + COUNT ( * ) * 67
----
4958

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7841
SELECT - 41 + COUNT( * ) DIV + + 56 * COUNT( * ) * + ( + + MIN( + 35 ) ) + + COUNT( * ) AS col2, 33 AS col0
----
-40
33

skipif mysql # not compatible
query II rowsort label-7841
SELECT - 41 + COUNT ( * ) / + + 56 * COUNT ( * ) * + ( + + MIN ( + 35 ) ) + + COUNT ( * ) AS col2, 33 AS col0
----
-40
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT 80 + 6 + - 25 * + 11 - + 46 * - COALESCE ( + SUM( ALL 89 ), + + 8 ) AS col0
----
3905

skipif mysql # not compatible
query I rowsort label-7842
SELECT 80 + 6 + - 25 * + 11 - + 46 * - COALESCE ( + SUM ( ALL 89 ), + + 8 ) AS col0
----
3905

query I rowsort
SELECT ALL + 38 * + + COALESCE ( 38, + + 42 * - 27 ) AS col1
----
1444

query I rowsort
SELECT 89 + - 98 + + 11
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7845
SELECT DISTINCT 39, - MIN( ALL + 72 ) AS col2
----
39
-72

skipif mysql # not compatible
query II rowsort label-7845
SELECT DISTINCT 39, - MIN ( ALL + 72 ) AS col2
----
39
-72

query I rowsort
SELECT ALL + 11 + 63 + 9 * + + 84 * + - 10 AS col1
----
-7486

query I rowsort
SELECT 8 + + ( 79 ) + - 10 * - - 84 AS col0
----
-753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7848
SELECT ALL - 48 + + - 43 + - - CAST( - 91 AS SIGNED ) + + - 46
----
-228

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL - 48 + + - 43 + - - CAST ( - 91 AS INTEGER ) + + - 46
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT 12 * - - 70 + MAX( DISTINCT + + 63 ) AS col0
----
903

skipif mysql # not compatible
query I rowsort label-7849
SELECT 12 * - - 70 + MAX ( DISTINCT + + 63 ) AS col0
----
903

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT ALL - CASE + + 88 WHEN - COUNT( * ) THEN + + 10 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL - CASE + + 88 WHEN - COUNT ( * ) THEN + + 10 END AS col0
----
NULL

query I rowsort
SELECT 24 + - 60
----
-36

query I rowsort
SELECT DISTINCT 17 * + 0 AS col0
----
0

query II rowsort
SELECT DISTINCT - 37, - 70 AS col2
----
-37
-70

query I rowsort
SELECT ALL 52 - + 29
----
23

query I rowsort
SELECT 14 * - + 73 AS col2
----
-1022

onlyif mysql # aggregate syntax: 
query II rowsort label-7856
SELECT ALL - MIN( 6 ) * + + COUNT( * ), + COUNT( * ) + 17 AS col2
----
-6
18

skipif mysql # not compatible
query II rowsort label-7856
SELECT ALL - MIN ( 6 ) * + + COUNT ( * ), + COUNT ( * ) + 17 AS col2
----
-6
18

query II rowsort
SELECT 61 AS col1, + 20 AS col2
----
61
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7858
SELECT ALL - ( - CAST( 86 AS SIGNED ) ) AS col1, - CAST( NULL AS DECIMAL ) AS col2
----
86
NULL

skipif mysql # not compatible
query II rowsort label-7858
SELECT ALL - ( - CAST ( 86 AS INTEGER ) ) AS col1, - CAST ( NULL AS REAL ) AS col2
----
86
NULL

query I rowsort
SELECT ALL - 49 * - 91
----
4459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7860
SELECT 4 DIV COUNT( 49 )
----
4

skipif mysql # not compatible
query I rowsort label-7860
SELECT 4 / COUNT ( 49 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7861
SELECT 4 * - 11 + CASE - MIN( ALL + CAST( NULL AS SIGNED ) ) WHEN + 46 THEN NULL WHEN + CASE + - ( - 90 ) WHEN + 67 * - 92 * + + 9 + - COUNT( * ) + + - 46 - - AVG ( DISTINCT - 9 ) * + 13 THEN + CASE - - 77 WHEN 51 THEN + COUNT( * ) END + 33 END * + 82 * 48 THEN + - 92 * 32 + - 3 / - + 1 * + + COUNT( * ) * + 23 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT 4 * - 11 + CASE - MIN ( ALL + CAST ( NULL AS INTEGER ) ) WHEN + 46 THEN NULL WHEN + CASE + - ( - 90 ) WHEN + 67 * - 92 * + + 9 + - COUNT ( * ) + + - 46 - - AVG ( DISTINCT - 9 ) * + 13 THEN + CASE - - 77 WHEN 51 THEN + COUNT ( * ) END + 33 END * + 82 * 48 THEN + - 92 * 32 + - 3 / - + 1 * + + COUNT ( * ) * + 23 END
----
NULL

query II rowsort
SELECT 42 AS col1, - 1 * + 34 * + + 41 AS col0
----
42
-1394

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7863
SELECT 77 AS col0, - CAST( NULL AS SIGNED )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-7863
SELECT 77 AS col0, - CAST ( NULL AS INTEGER )
----
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7864
SELECT 58 + + CAST( - - 65 AS SIGNED ) AS col2, - 27 + - + 83 AS col1
----
123
-110

skipif mysql # not compatible
query II rowsort label-7864
SELECT 58 + + CAST ( - - 65 AS INTEGER ) AS col2, - 27 + - + 83 AS col1
----
123
-110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7865
SELECT + NULLIF ( - 58, 48 * + - COUNT( * ) + - + CAST( NULL AS SIGNED ) )
----
-58

skipif mysql # not compatible
query I rowsort label-7865
SELECT + NULLIF ( - 58, 48 * + - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT ALL CAST( NULL AS SIGNED ) / - - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL CAST ( NULL AS INTEGER ) / - - 42 AS col0
----
NULL

query I rowsort
SELECT 51 * + + 50
----
2550

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL - 82 + 70 - + COUNT( * ) - + - 46 * 88 * - + 51 * + 67 / + 17 * 60 * + CASE - COUNT( * ) WHEN - - 67 THEN - COUNT( * ) + + 62 END * - 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL - 82 + 70 - + COUNT ( * ) - + - 46 * 88 * - + 51 * + 67 / + 17 * 60 * + CASE - COUNT ( * ) WHEN - - 67 THEN - COUNT ( * ) + + 62 END * - 94 AS col0
----
NULL

query I rowsort
SELECT - - ( 83 ) * + - 51 + - 12 AS col1
----
-4245

query II rowsort
SELECT DISTINCT - + 75 AS col0, + 48 AS col1
----
-75
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT + COUNT( * ) + - ( + 78 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7871
SELECT + COUNT ( * ) + - ( + 78 ) AS col2
----
-77

query I rowsort
SELECT ALL + 21 + 65 AS col0
----
86

query I rowsort
SELECT 50 + - 64
----
-14

query I rowsort
SELECT ALL 29 + - COALESCE ( - + 46, - 35 ) col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7875
SELECT DISTINCT - COUNT( * ) + - 24 * + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT - COUNT ( * ) + - 24 * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL - - 24 + - COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL - - 24 + - COUNT ( * ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7877
SELECT ALL SUM( ALL + 3 ) AS col0, 52 AS col0
----
3
52

skipif mysql # not compatible
query II rowsort label-7877
SELECT ALL SUM ( ALL + 3 ) AS col0, 52 AS col0
----
3
52

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT ALL 30 - - 8 DIV + 84 - + - 81 * + + 75 + + 81 - - + 32 + - 84 * - ( + 18 )
----
7730

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL 30 - - 8 / + 84 - + - 81 * + + 75 + + 81 - - + 32 + - 84 * - ( + 18 )
----
7730

onlyif mysql # aggregate syntax: 
query II rowsort label-7879
SELECT 70 - COUNT( * ) AS col0, + 15
----
69
15

skipif mysql # not compatible
query II rowsort label-7879
SELECT 70 - COUNT ( * ) AS col0, + 15
----
69
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT ALL MIN( - + 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL MIN ( - + 22 )
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-7881
SELECT ALL + COUNT( ALL - - 50 ) * 63 - + 10, - 73 * 81 AS col2
----
53
-5913

skipif mysql # not compatible
query II rowsort label-7881
SELECT ALL + COUNT ( ALL - - 50 ) * 63 - + 10, - 73 * 81 AS col2
----
53
-5913

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT ALL + ( 94 ) DIV - 59 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL + ( 94 ) / - 59 AS col2
----
-1

query I rowsort
SELECT COALESCE ( - - 38, 40, 90 ) AS col1
----
38

query I rowsort
SELECT - 5 * - + 27 AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - 16 * - COUNT( * ) col1
----
16

skipif mysql # not compatible
query I rowsort label-7885
SELECT - 16 * - COUNT ( * ) col1
----
16

query II rowsort
SELECT - 75 + - 44 AS col2, - CASE - 47 WHEN - 65 THEN 40 WHEN + + 92 THEN 80 - 48 END AS col1
----
-119
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT COALESCE ( + COUNT( * ), - 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7887
SELECT COALESCE ( + COUNT ( * ), - 71 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT + COUNT( * ) * + 97 + - COUNT( * ) col0
----
96

skipif mysql # not compatible
query I rowsort label-7888
SELECT + COUNT ( * ) * + 97 + - COUNT ( * ) col0
----
96

query I rowsort
SELECT ALL - + 77 * + 80 * - - 31
----
-190960

query II rowsort
SELECT DISTINCT 29 * - 73 AS col0, 42 AS col1
----
-2117
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL - 2 * - COUNT( + + 75 ) + - 72 + ( + 27 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL - 2 * - COUNT ( + + 75 ) + - 72 + ( + 27 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT + - COUNT( * ) * + 8 + + 5 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7892
SELECT DISTINCT + - COUNT ( * ) * + 8 + + 5 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7893
SELECT + 16 * + COUNT( * ) AS col2, 67 col0
----
16
67

skipif mysql # not compatible
query II rowsort label-7893
SELECT + 16 * + COUNT ( * ) AS col2, 67 col0
----
16
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7894
SELECT ALL + MIN( ALL + CAST( NULL AS SIGNED ) ) * 68 + 33 + + 70 * 84 * + MAX( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL + MIN ( ALL + CAST ( NULL AS INTEGER ) ) * 68 + 33 + + 70 * 84 * + MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 56 - - 85 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7896
SELECT DISTINCT + ( COALESCE ( + 54, - 2 DIV + CAST( NULL AS SIGNED ) * COUNT( * ) ) ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT + ( COALESCE ( + 54, - 2 / + CAST ( NULL AS INTEGER ) * COUNT ( * ) ) ) AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7897
SELECT + - SUM( ALL - 87 ) * + 87 - - 98 + COALESCE ( 92, - 44, - 67 - + 82 ) * 41 DIV + 95 col1
----
7706

skipif mysql # not compatible
query I rowsort label-7897
SELECT + - SUM ( ALL - 87 ) * + 87 - - 98 + COALESCE ( 92, - 44, - 67 - + 82 ) * 41 / + 95 col1
----
7706

query I rowsort
SELECT ALL + 9 + + 48 * + ( - 5 ) * + 19 + + 71 AS col1
----
-4480

onlyif mysql # DIV for integer division: 
query I rowsort label-7899
SELECT ALL 40 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL 40 / - 49
----
0

query I rowsort
SELECT + + 29 - 71 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ALL + COUNT( ALL - 86 ) * + 32 * 98
----
3136

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL + COUNT ( ALL - 86 ) * + 32 * 98
----
3136

query I rowsort
SELECT DISTINCT + 27 * - 81 AS col0
----
-2187

query I rowsort
SELECT - 85 + 90 * - 19
----
-1795

query I rowsort
SELECT - ( + + 82 )
----
-82

query I rowsort
SELECT + 13 + 96 - + 89 + + 80 + + 73 AS col1
----
173

query I rowsort
SELECT + 19 - ( + 94 )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7907
SELECT ALL 24 * + + SUM( + - 73 ), SUM( DISTINCT 12 ) + - 76 AS col0
----
-1752
-64

skipif mysql # not compatible
query II rowsort label-7907
SELECT ALL 24 * + + SUM ( + - 73 ), SUM ( DISTINCT 12 ) + - 76 AS col0
----
-1752
-64

query II rowsort
SELECT ALL 87 AS col0, - 70
----
87
-70

query I rowsort
SELECT - 95 - + + 31
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT + MAX( + + 9 ) + + + 75 + + 42
----
126

skipif mysql # not compatible
query I rowsort label-7910
SELECT + MAX ( + + 9 ) + + + 75 + + 42
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7911
SELECT - 43, CAST( NULL AS SIGNED ) AS col1
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-7911
SELECT - 43, CAST ( NULL AS INTEGER ) AS col1
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT DISTINCT COUNT( * ) - - 32 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT COUNT ( * ) - - 32 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT DISTINCT SUM( - 35 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT SUM ( - 35 ) AS col0
----
-35

query I rowsort
SELECT + 41 + - - 19
----
60

query I rowsort
SELECT ALL COALESCE ( - 52, + + 28, + - ( - ( - + 40 ) ), + + ( 75 ) + - - 4 ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7916
SELECT ALL + 22 DIV + COALESCE ( - CAST( - 36 AS SIGNED ), COUNT( * ) - - NULLIF ( COUNT( * ), MIN( - 18 ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL + 22 / + COALESCE ( - CAST ( - 36 AS INTEGER ), COUNT ( * ) - - NULLIF ( COUNT ( * ), MIN ( - 18 ) ) ) AS col2
----
0

query I rowsort
SELECT + 52 * - 89 * - + 11 AS col1
----
50908

query I rowsort
SELECT - 11 + + 40 AS col1
----
29

query I rowsort
SELECT - 87 + + - 26 AS col1
----
-113

query I rowsort
SELECT ALL + 13 * - 47 col0
----
-611

query I rowsort
SELECT + 16 * + 79 AS col0
----
1264

onlyif mysql # DIV for integer division: 
query I rowsort label-7922
SELECT DISTINCT 4 DIV - - 27 + + 89
----
89

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT 4 / - - 27 + + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL + COALESCE ( - 94, NULLIF ( - 13, - - 83 - 85 + - 87 / + 45 * + COUNT( * ) - 31 * 46 ), + + 40 )
----
-94

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL + COALESCE ( - 94, NULLIF ( - 13, - - 83 - 85 + - 87 / + 45 * + COUNT ( * ) - 31 * 46 ), + + 40 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT SUM( - 1 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7924
SELECT SUM ( - 1 ) col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7925
SELECT ALL 25 DIV ( - - COUNT( * ) ) * - 60 DIV + 5 + - 67 AS col0
----
-367

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL 25 / ( - - COUNT ( * ) ) * - 60 / + 5 + - 67 AS col0
----
-367

query I rowsort
SELECT - 87 * - + ( + - 38 ) - + 67 * + 80 * 55
----
-298106

onlyif mysql # DIV for integer division: 
query II rowsort label-7927
SELECT DISTINCT + + 69 DIV + 23 + - ( 60 ) + + 44, 35 AS col0
----
-13
35

skipif mysql # not compatible
query II rowsort label-7927
SELECT DISTINCT + + 69 / + 23 + - ( 60 ) + + 44, 35 AS col0
----
-13
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7928
SELECT - 1 DIV - 50 - 85 - - 71 * - 63 * - 23 AS col2
----
102794

skipif mysql # not compatible
query I rowsort label-7928
SELECT - 1 / - 50 - 85 - - 71 * - 63 * - 23 AS col2
----
102794

query II rowsort
SELECT + 8 AS col1, - 74 + + 24
----
8
-50

query I rowsort
SELECT ALL 33 * 50 + 56 + + - 50 + + 97 + + - 37 + + 43 + + 85 AS col0
----
1844

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT - - 99 + - 73 + + - 63 + - COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-7931
SELECT - - 99 + - 73 + + - 63 + - COUNT ( * ) AS col0
----
-38

query I rowsort
SELECT - + ( + 37 ) + - 1 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7933
SELECT - 28 * + 71 - - 64, + 13 + COUNT( * ) AS col2
----
-1924
14

skipif mysql # not compatible
query II rowsort label-7933
SELECT - 28 * + 71 - - 64, + 13 + COUNT ( * ) AS col2
----
-1924
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT ALL + NULLIF ( - + COALESCE ( + COUNT( * ), - 7 ), + 36 + + + MIN( DISTINCT + 79 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL + NULLIF ( - + COALESCE ( + COUNT ( * ), - 7 ), + 36 + + + MIN ( DISTINCT + 79 ) ) AS col1
----
-1

query I rowsort
SELECT + + ( - + 77 ) AS col1
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT - - 0 * - - 64 DIV 5 DIV + 15
----
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT - - 0 * - - 64 / 5 / + 15
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT ALL 47 * + 4 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL 47 * + 4 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + + 78 ) * 2 * 46 - + 83 AS col2
----
7093

query I rowsort
SELECT - 30 + - 76 + + - 13 * + 60
----
-886

onlyif mysql # aggregate syntax: 
query II rowsort label-7940
SELECT + COUNT( * ) * COALESCE ( 12, + 52 ) * + + CASE - - 88 WHEN + 21 THEN NULL ELSE + 43 + 13 END + - 6 AS col2, 58 - + + 13 * - 93
----
666
1267

skipif mysql # not compatible
query II rowsort label-7940
SELECT + COUNT ( * ) * COALESCE ( 12, + 52 ) * + + CASE - - 88 WHEN + 21 THEN NULL ELSE + 43 + 13 END + - 6 AS col2, 58 - + + 13 * - 93
----
666
1267

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT SUM( DISTINCT 7 ) * - - 47 * - + 85
----
-27965

skipif mysql # not compatible
query I rowsort label-7941
SELECT SUM ( DISTINCT 7 ) * - - 47 * - + 85
----
-27965

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7942
SELECT COUNT( * ) DIV + + COUNT( * ) col0, 26
----
1
26

skipif mysql # not compatible
query II rowsort label-7942
SELECT COUNT ( * ) / + + COUNT ( * ) col0, 26
----
1
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7943
SELECT DISTINCT 45 AS col1, COUNT( * ) AS col1
----
45
1

skipif mysql # not compatible
query II rowsort label-7943
SELECT DISTINCT 45 AS col1, COUNT ( * ) AS col1
----
45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ( - NULLIF ( COUNT( * ), COUNT( * ) ) ) * + 82 + - ( - + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT ( - NULLIF ( COUNT ( * ), COUNT ( * ) ) ) * + 82 + - ( - + 63 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT ALL + 17 DIV + ( + + 59 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL + 17 / + ( + + 59 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7946
SELECT 4 - + + 29 - + - SUM( + 51 ) * - 13 + - + 65 + - 31 + + NULLIF ( - + 3, + COUNT( * ) * - 97 ) DIV + 35 * + 78 + + + 38
----
-746

skipif mysql # not compatible
query I rowsort label-7946
SELECT 4 - + + 29 - + - SUM ( + 51 ) * - 13 + - + 65 + - 31 + + NULLIF ( - + 3, + COUNT ( * ) * - 97 ) / + 35 * + 78 + + + 38
----
-746

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL COUNT( * ) * ( + - 79 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL COUNT ( * ) * ( + - 79 ) AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7948
SELECT ALL 94 + + 46 + + CAST( NULL AS SIGNED ) * + 88 * - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-7948
SELECT ALL 94 + + 46 + + CAST ( NULL AS INTEGER ) * + 88 * - 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT 14 - + CAST( NULL AS SIGNED ) * - + 93 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT 14 - + CAST ( NULL AS INTEGER ) * - + 93 col1
----
NULL

query II rowsort
SELECT ALL CASE + 42 WHEN NULLIF ( - - 31, + 94 - + - 91 ) - - + 34 THEN NULL ELSE - 62 END + - 27 col2, 15 AS col1
----
-89
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT COUNT( * ) * + - ( 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7951
SELECT COUNT ( * ) * + - ( 1 ) AS col2
----
-1

query I rowsort
SELECT ALL 63 + - 58 - + - 90
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT ALL 81 + 65 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL 81 + 65 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 93 + 87 * - 78 * 20
----
-135627

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT + SUM( - - 98 ) * - + 66 + - 48 + + + 52
----
-6464

skipif mysql # not compatible
query I rowsort label-7955
SELECT + SUM ( - - 98 ) * - + 66 + - 48 + + + 52
----
-6464

query I rowsort
SELECT DISTINCT + - 60 + - ( 78 ) + 29 col2
----
-109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT + COALESCE ( + + 62, + CAST( NULL AS SIGNED ) ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-7957
SELECT + COALESCE ( + + 62, + CAST ( NULL AS INTEGER ) ) AS col2
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7958
SELECT ALL + COALESCE ( - 49, - 29, - 44 + - 73 * 93 ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL + COALESCE ( - 49, - 29, - 44 + - 73 * 93 ) / - 59
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT CAST( NULL AS SIGNED ) / - + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7959
SELECT CAST ( NULL AS INTEGER ) / - + 38
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7960
SELECT 70 DIV NULLIF ( + 90, 1 ) + + - 67 + - - 53 * - 89 * 56 * + ( + - ( - + 98 ) ) AS col0, - 41
----
-25886963
-41

skipif mysql # not compatible
query II rowsort label-7960
SELECT 70 / NULLIF ( + 90, 1 ) + + - 67 + - - 53 * - 89 * 56 * + ( + - ( - + 98 ) ) AS col0, - 41
----
-25886963
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT MIN( ALL + 33 ) + + + 54 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7961
SELECT MIN ( ALL + 33 ) + + + 54 AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT + 26 / 40 * + ( 72 ) - 53 / - + CASE + + 78 WHEN + ( - + 70 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) + + 21 END + - - 29 + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT + 26 / 40 * + ( 72 ) - 53 / - + CASE + + 78 WHEN + ( - + 70 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) + + 21 END + - - 29 + + 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT ALL + + CAST( NULL AS SIGNED ) * + - 0 + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + + CAST ( NULL AS INTEGER ) * + - 0 + + 20 AS col1
----
NULL

query II rowsort
SELECT + 37 AS col0, + 0
----
37
0

query II rowsort
SELECT ALL - - 18 AS col1, - 27 AS col1
----
18
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT + 82 - - MIN( ALL 5 ) * - - COUNT( * ) * + - 19
----
-13

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT + 82 - - MIN ( ALL 5 ) * - - COUNT ( * ) * + - 19
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7967
SELECT + NULLIF ( - 15, + 91 - 9 ), CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-7967
SELECT + NULLIF ( - 15, + 91 - 9 ), CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1
----
-15
NULL

query II rowsort
SELECT ALL - 72 AS col1, 69 * - 5
----
-72
-345

query II rowsort
SELECT + 72 AS col0, - 3 AS col0
----
72
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7970
SELECT CAST( - + 87 AS SIGNED ) - + 21 + + 33
----
-75

skipif mysql # not compatible
query I rowsort label-7970
SELECT CAST ( - + 87 AS INTEGER ) - + 21 + + 33
----
-75

query I rowsort
SELECT + 67 - - + 65
----
132

query I rowsort
SELECT + COALESCE ( + 67, - - 86 ) * 66 AS col2
----
4422

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7973
SELECT - - 12 AS col2, + 18 * + ( + CAST( NULL AS SIGNED ) ) * - 28
----
12
NULL

skipif mysql # not compatible
query II rowsort label-7973
SELECT - - 12 AS col2, + 18 * + ( + CAST ( NULL AS INTEGER ) ) * - 28
----
12
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7974
SELECT ALL + COUNT( * ) * 19, + 54 DIV + ( - 88 ) AS col0
----
19
0

skipif mysql # not compatible
query II rowsort label-7974
SELECT ALL + COUNT ( * ) * 19, + 54 / + ( - 88 ) AS col0
----
19
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7975
SELECT DISTINCT CAST( + 62 AS SIGNED ) * 74 AS col2
----
4588

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT CAST ( + 62 AS INTEGER ) * 74 AS col2
----
4588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7976
SELECT 4 + + COUNT( * ) + + - CAST( NULL AS SIGNED ) * - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT 4 + + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * - 20
----
NULL

query I rowsort
SELECT DISTINCT - 13 * 64
----
-832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT ALL + CAST( - 37 AS SIGNED ) + - NULLIF ( - 93, - 67 ) - - 84 * + 68 - + - 10 * - 44 col0
----
5328

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + CAST ( - 37 AS INTEGER ) + - NULLIF ( - 93, - 67 ) - - 84 * + 68 - + - 10 * - 44 col0
----
5328

query I rowsort
SELECT 33 + - 24 * - 68
----
1665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7980
SELECT DISTINCT 22 / + CAST( - 6 AS SIGNED ) * + CASE - 37 WHEN + + 74 / + - COUNT( * ) THEN - - COUNT( * ) + - - 54 * - ( 81 ) + - 20 WHEN - 67 / 52 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT DISTINCT 22 / + CAST ( - 6 AS INTEGER ) * + CASE - 37 WHEN + + 74 / + - COUNT ( * ) THEN - - COUNT ( * ) + - - 54 * - ( 81 ) + - 20 WHEN - 67 / 52 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 81 + - - 11 - - 72 * + - 57
----
-4012

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7982
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL 16 + + - COUNT( * ) * - 79
----
95

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL 16 + + - COUNT ( * ) * - 79
----
95

query I rowsort
SELECT ALL + 23 + - 57 + 33 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT ALL 34 * + COALESCE ( - - 7, - + CAST( NULL AS SIGNED ) ) * - + 11
----
-2618

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL 34 * + COALESCE ( - - 7, - + CAST ( NULL AS INTEGER ) ) * - + 11
----
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT 51 * + 5 * COUNT( * ) * + 72 + - 0 + - MIN( DISTINCT 87 )
----
18273

skipif mysql # not compatible
query I rowsort label-7986
SELECT 51 * + 5 * COUNT ( * ) * + 72 + - 0 + - MIN ( DISTINCT 87 )
----
18273

query I rowsort
SELECT ALL - - 52 AS col0
----
52

query II rowsort
SELECT ALL + 75 * - 54 + 62 + 56 - - - 84 AS col0, 20 AS col1
----
-4016
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7989
SELECT + ( - - 33 ) * + COUNT( * ) AS col1, COUNT( * ) + + COUNT( * ) AS col1
----
33
2

skipif mysql # not compatible
query II rowsort label-7989
SELECT + ( - - 33 ) * + COUNT ( * ) AS col1, COUNT ( * ) + + COUNT ( * ) AS col1
----
33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT COUNT( * ) * - - 60
----
60

skipif mysql # not compatible
query I rowsort label-7990
SELECT COUNT ( * ) * - - 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT - 3 * + COUNT( * ) - + ( + SUM( - + 27 ) ) + 69 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT - 3 * + COUNT ( * ) - + ( + SUM ( - + 27 ) ) + 69 AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT + 99 * + CAST( NULL AS SIGNED ) + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7992
SELECT + 99 * + CAST ( NULL AS INTEGER ) + + 9
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7993
SELECT ALL - - SUM( DISTINCT 36 ), - 17 AS col2
----
36
-17

skipif mysql # not compatible
query II rowsort label-7993
SELECT ALL - - SUM ( DISTINCT 36 ), - 17 AS col2
----
36
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT + CASE 7 WHEN + 90 THEN - SUM( - CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT + CASE 7 WHEN + 90 THEN - SUM ( - CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT ALL + - COUNT( DISTINCT + - 12 ) AS col0, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-7995
SELECT ALL + - COUNT ( DISTINCT + - 12 ) AS col0, COUNT ( * ) AS col0
----
-1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7996
SELECT - 26 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-7996
SELECT - 26 / 34
----
0

query I rowsort
SELECT + 65 + + 77
----
142

query I rowsort
SELECT DISTINCT - 79 * 73 AS col1
----
-5767

query I rowsort
SELECT DISTINCT 53 * - NULLIF ( + + 37, 32 * 21 * - NULLIF ( 23, 58 ) ) AS col2
----
-1961

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT ALL 65 * - 44 * - COUNT( * ) * - 69 * 78
----
-15392520

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL 65 * - 44 * - COUNT ( * ) * - 69 * 78
----
-15392520

onlyif mysql # DIV for integer division: 
query I rowsort label-8001
SELECT ALL - 63 DIV + - 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - 63 / + - 48 AS col2
----
1

query I rowsort
SELECT - 12 + - 49
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT ALL 18 + + 20 DIV - - 30 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL 18 + + 20 / - - 30 AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT ALL + CAST( NULL AS SIGNED ) + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + CAST ( NULL AS INTEGER ) + 80 AS col1
----
NULL

query II rowsort
SELECT 26, 80 col0
----
26
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8006
SELECT ALL + CAST( - 96 AS SIGNED ) + 72 + + 45 + + + 69 DIV + - ( 44 ) DIV - COUNT( * ) + + + 62 + + 28 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL + CAST ( - 96 AS INTEGER ) + 72 + + 45 + + + 69 / + - ( 44 ) / - COUNT ( * ) + + + 62 + + 28 AS col2
----
112

query II rowsort
SELECT - 5, - 8 AS col0
----
-5
-8

query I rowsort
SELECT ALL 58 + - - 68 + + + 89 col2
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT COUNT( * ) + - + 96 - 3 * + + ( - 48 )
----
49

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT COUNT ( * ) + - + 96 - 3 * + + ( - 48 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT DISTINCT - 82 * - + COALESCE ( 23, + 12, 55 * + COUNT( * ) )
----
1886

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT - 82 * - + COALESCE ( 23, + 12, 55 * + COUNT ( * ) )
----
1886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8011
SELECT ALL + 27 + + + COALESCE ( 13, + - CAST( + 90 AS SIGNED ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL + 27 + + + COALESCE ( 13, + - CAST ( + 90 AS INTEGER ) ) AS col0
----
40

query II rowsort
SELECT - 62, 4 AS col2
----
-62
4

query I rowsort
SELECT ALL - 0 * + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT - 22 * + 14 * MAX( 60 )
----
-18480

skipif mysql # not compatible
query I rowsort label-8014
SELECT - 22 * + 14 * MAX ( 60 )
----
-18480

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT DISTINCT COUNT( ALL - - 13 )
----
1

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT COUNT ( ALL - - 13 )
----
1

query II rowsort
SELECT - ( ( 80 ) ) AS col2, - 99
----
-80
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT ALL + 28 - COUNT( * ) * + + 79 * + 89 + + 21 AS col1
----
-6982

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL + 28 - COUNT ( * ) * + + 79 * + 89 + + 21 AS col1
----
-6982

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - COUNT( * ) - - + 16
----
15

skipif mysql # not compatible
query I rowsort label-8018
SELECT - COUNT ( * ) - - + 16
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8019
SELECT - COUNT( * ) AS col2, - 66 + - NULLIF ( + 65, - 77 * MAX( ALL + - 63 ) * + CASE 75 WHEN - + 5 THEN + 4 WHEN - 18 / - 32 THEN NULL ELSE NULL END - + + 9 ) - + CASE + - 48 WHEN + COALESCE ( 75, - COUNT( * ) * + 70, + - ( + + 83 ) ) + - 62 + + NULLIF ( - 4, AVG ( + + 70 ) / - - 7 ) + 8 THEN COUNT( ALL + 95 ) END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8019
SELECT - COUNT ( * ) AS col2, - 66 + - NULLIF ( + 65, - 77 * MAX ( ALL + - 63 ) * + CASE 75 WHEN - + 5 THEN + 4 WHEN - 18 / - 32 THEN NULL ELSE NULL END - + + 9 ) - + CASE + - 48 WHEN + COALESCE ( 75, - COUNT ( * ) * + 70, + - ( + + 83 ) ) + - 62 + + NULLIF ( - 4, AVG ( + + 70 ) / - - 7 ) + 8 THEN COUNT ( ALL + 95 ) END
----
-1
NULL

query I rowsort
SELECT ALL - 64 * - 90
----
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - 11 - + + COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8021
SELECT - 11 - + + COUNT ( * ) AS col1
----
-12

query I rowsort
SELECT - 80 * - 89
----
7120

query II rowsort
SELECT + 77 AS col1, 94 * - - 54 AS col0
----
77
5076

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL + SUM( + + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL + SUM ( + + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT + MIN( + - 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8025
SELECT + MIN ( + - 19 ) AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT ALL + + CAST( + 44 AS SIGNED ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL + + CAST ( + 44 AS INTEGER ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT + CASE - 2 WHEN 23 * 67 THEN NULL WHEN MIN( - + 88 ) + - 70 / + + 61 + - 64 THEN - + 25 * - + 91 / 10 + + + 37 ELSE + 36 END / + 84 + - 1 + + - ( - 62 ) * + + CASE + + 21 WHEN - 74 THEN NULL WHEN - 1 * 21 THEN - 78 END / + - COUNT( * ) - - - 45 + - 10 * AVG ( - 89 ) * - 36 * COUNT( * ) - - 18 + 49 * + + 90 + 97 / - MIN( DISTINCT 75 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT + CASE - 2 WHEN 23 * 67 THEN NULL WHEN MIN ( - + 88 ) + - 70 / + + 61 + - 64 THEN - + 25 * - + 91 / 10 + + + 37 ELSE + 36 END / + 84 + - 1 + + - ( - 62 ) * + + CASE + + 21 WHEN - 74 THEN NULL WHEN - 1 * 21 THEN - 78 END / + - COUNT ( * ) - - - 45 + - 10 * AVG ( - 89 ) * - 36 * COUNT ( * ) - - 18 + 49 * + + 90 + 97 / - MIN ( DISTINCT 75 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT ALL + + 30 AS col0, 51 * - ( + 96 ) + 63 * COUNT( * ) + - 38 + - 79 * - MIN( ALL - 77 )
----
30
-10954

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL + + 30 AS col0, 51 * - ( + 96 ) + 63 * COUNT ( * ) + - 38 + - 79 * - MIN ( ALL - 77 )
----
30
-10954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8029
SELECT DISTINCT - COUNT( * ) DIV + + 52
----
0

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT - COUNT ( * ) / + + 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8030
SELECT + + ( - 0 ) - 39 DIV - - 49 * - 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8030
SELECT + + ( - 0 ) - 39 / - - 49 * - 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8031
SELECT ALL NULLIF ( + COUNT( * ), - 97 + SUM( DISTINCT - + 43 ) ) * + 82, COUNT( * ) AS col0
----
82
1

skipif mysql # not compatible
query II rowsort label-8031
SELECT ALL NULLIF ( + COUNT ( * ), - 97 + SUM ( DISTINCT - + 43 ) ) * + 82, COUNT ( * ) AS col0
----
82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT + 83 * - - ( + COUNT( * ) ) * - SUM( + ( + 24 ) ) + + + 50 + - 85 AS col0
----
-2027

skipif mysql # not compatible
query I rowsort label-8032
SELECT + 83 * - - ( + COUNT ( * ) ) * - SUM ( + ( + 24 ) ) + + + 50 + - 85 AS col0
----
-2027

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8033
SELECT ALL + + NULLIF ( - - 70, - ( + 40 ) * MAX( - + 16 ) ) DIV + 99 + 85 + - + 74 + 20 + + 2 DIV COUNT( * ) + - - 72 * + COUNT( * ) * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + + NULLIF ( - - 70, - ( + 40 ) * MAX ( - + 16 ) ) / + 99 + 85 + - + 74 + 20 + + 2 / COUNT ( * ) + - - 72 * + COUNT ( * ) * - COUNT ( * )
----
-39

query I rowsort
SELECT - 27 * + 75
----
-2025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8035
SELECT + 96 * MIN( + + ( + - CAST( + 86 AS SIGNED ) ) ) + - ( 87 )
----
-8343

skipif mysql # not compatible
query I rowsort label-8035
SELECT + 96 * MIN ( + + ( + - CAST ( + 86 AS INTEGER ) ) ) + - ( 87 )
----
-8343

query I rowsort
SELECT - COALESCE ( + 26, 94 * - 6 ) + - + 77 AS col1
----
-103

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8037
SELECT ALL + - CASE - CASE + NULLIF ( - + 5, 76 ) WHEN - 52 * - 52 / - 75 THEN 55 + - - 96 - - 20 * + 40 * + COUNT( * ) / - CAST( 19 AS DECIMAL ) / - - 26 * + ( - NULLIF ( + 57, + 0 * - 57 * - - 20 + 20 + + 43 * - + 92 / + COUNT( * ) ) ) ELSE NULL END WHEN - 50 + 44 + 60 * + 8 * 26 THEN NULL WHEN + 70 + - + 9 - + + COUNT( * ) THEN NULL ELSE - 87 END
----
87

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL + - CASE - CASE + NULLIF ( - + 5, 76 ) WHEN - 52 * - 52 / - 75 THEN 55 + - - 96 - - 20 * + 40 * + COUNT ( * ) / - CAST ( 19 AS REAL ) / - - 26 * + ( - NULLIF ( + 57, + 0 * - 57 * - - 20 + 20 + + 43 * - + 92 / + COUNT ( * ) ) ) ELSE NULL END WHEN - 50 + 44 + 60 * + 8 * 26 THEN NULL WHEN + 70 + - + 9 - + + COUNT ( * ) THEN NULL ELSE - 87 END
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8038
SELECT + 24 - 66 - - 26 DIV + 31 + + - 26 * 39 * + 14
----
-14238

skipif mysql # not compatible
query I rowsort label-8038
SELECT + 24 - 66 - - 26 / + 31 + + - 26 * 39 * + 14
----
-14238

query I rowsort
SELECT ALL CASE - 55 WHEN 72 * + - 70 * - 71 * + 6 THEN + + ( + + 57 ) + + 49 END * - + 77 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8040
SELECT + + 60 * + + COALESCE ( + 52, - MAX( ALL - 75 ) - - 7 ) * - 90 * - ( - 6 ) * CASE + - 24 WHEN 24 THEN - CAST( NULL AS SIGNED ) ELSE - COALESCE ( - + 60, 49 DIV 21 ) END + 32 AS col2, - 94
----
-101087968
-94

skipif mysql # not compatible
query II rowsort label-8040
SELECT + + 60 * + + COALESCE ( + 52, - MAX ( ALL - 75 ) - - 7 ) * - 90 * - ( - 6 ) * CASE + - 24 WHEN 24 THEN - CAST ( NULL AS INTEGER ) ELSE - COALESCE ( - + 60, 49 / 21 ) END + 32 AS col2, - 94
----
-101087968
-94

query I rowsort
SELECT ALL + 40 * + 60 + 84
----
2484

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8042
SELECT DISTINCT - 97 * + - CAST( NULL AS SIGNED ) - - 38 + ( + COUNT( * ) ) * 40 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT - 97 * + - CAST ( NULL AS INTEGER ) - - 38 + ( + COUNT ( * ) ) * 40 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT + CASE COUNT( * ) WHEN - MIN( - 54 ) * + 52 THEN + 66 + - 99 + + 21 * - 14 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT + CASE COUNT ( * ) WHEN - MIN ( - 54 ) * + 52 THEN + 66 + - 99 + + 21 * - 14 END AS col2
----
NULL

query I rowsort
SELECT ALL + ( - + 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT COALESCE ( - + 29, 16, - 7 * + 79 * + 39 + + NULLIF ( + ( - - COUNT( ALL - 80 ) ), 58 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-8045
SELECT COALESCE ( - + 29, 16, - 7 * + 79 * + 39 + + NULLIF ( + ( - - COUNT ( ALL - 80 ) ), 58 ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT CASE - 54 WHEN 19 THEN + 47 / + MIN( 35 ) + + - 2 - + 42 + + 38 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT CASE - 54 WHEN 19 THEN + 47 / + MIN ( 35 ) + + - 2 - + 42 + + 38 END col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8047
SELECT DISTINCT + 19 * - 33 + 44 + - + COUNT( * ) + 80 + 95 + + 61 * + + 9 + - 29 DIV - 78 AS col2
----
140

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT + 19 * - 33 + 44 + - + COUNT ( * ) + 80 + 95 + + 61 * + + 9 + - 29 / - 78 AS col2
----
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8048
SELECT DISTINCT COUNT( * ) DIV + - 9
----
0

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT COUNT ( * ) / + - 9
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8049
SELECT MIN( + 82 ) AS col2, COUNT( * )
----
82
1

skipif mysql # not compatible
query II rowsort label-8049
SELECT MIN ( + 82 ) AS col2, COUNT ( * )
----
82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL MAX( ( 84 ) ) * - 99 + + 91 + - 3
----
-8228

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL MAX ( ( 84 ) ) * - 99 + + 91 + - 3
----
-8228

query I rowsort
SELECT + 70 - - 12
----
82

query I rowsort
SELECT + 46 - - 65
----
111

query I rowsort
SELECT DISTINCT NULLIF ( + + 55, 28 ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8054
SELECT ALL + 23 DIV - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL + 23 / - COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + 10 + 80 - + + 98 - + MIN( ALL 73 )
----
-81

skipif mysql # not compatible
query I rowsort label-8055
SELECT + 10 + 80 - + + 98 - + MIN ( ALL 73 )
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8056
SELECT + COUNT( - 71 ) + - ( + 45 ) DIV + 81 + - ( + - 53 ) AS col1, + COUNT( * )
----
54
1

skipif mysql # not compatible
query II rowsort label-8056
SELECT + COUNT ( - 71 ) + - ( + 45 ) / + 81 + - ( + - 53 ) AS col1, + COUNT ( * )
----
54
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8057
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN + + COUNT( * ) + 5 THEN - 52 - + MIN( 29 ) END AS col0, NULLIF ( 40, - + 41 + + 66 )
----
NULL
40

skipif mysql # not compatible
query II rowsort label-8057
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN + + COUNT ( * ) + 5 THEN - 52 - + MIN ( 29 ) END AS col0, NULLIF ( 40, - + 41 + + 66 )
----
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT + 63 + CASE + 81 WHEN 64 * - ( - ( - + 41 ) ) THEN + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT + 63 + CASE + 81 WHEN 64 * - ( - ( - + 41 ) ) THEN + - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8059
SELECT - 69 - + ( + AVG ( + CAST( NULL AS SIGNED ) ) ) * + NULLIF ( + 59, - + 44 ) * - 49 * + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT - 69 - + ( + AVG ( + CAST ( NULL AS INTEGER ) ) ) * + NULLIF ( + 59, - + 44 ) * - 49 * + 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8060
SELECT + + 66 * - 57 DIV - ( - COUNT( DISTINCT - + 95 ) ) AS col0
----
-3762

skipif mysql # not compatible
query I rowsort label-8060
SELECT + + 66 * - 57 / - ( - COUNT ( DISTINCT - + 95 ) ) AS col0
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT + + 8 + + - MAX( + 58 )
----
-50

skipif mysql # not compatible
query I rowsort label-8061
SELECT + + 8 + + - MAX ( + 58 )
----
-50

query I rowsort
SELECT DISTINCT 96 - + 49 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT - + 16 + + + NULLIF ( + + COUNT( * ), + 17 ) + - - 90
----
75

skipif mysql # not compatible
query I rowsort label-8063
SELECT - + 16 + + + NULLIF ( + + COUNT ( * ), + 17 ) + - - 90
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8064
SELECT ALL - + 98 * CAST( - 90 AS SIGNED ) * - 40 + + 18 * + COUNT( * )
----
-352782

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - + 98 * CAST ( - 90 AS INTEGER ) * - 40 + + 18 * + COUNT ( * )
----
-352782

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT DISTINCT - 94 * + - 3 * - COUNT( * ) AS col0
----
-282

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT - 94 * + - 3 * - COUNT ( * ) AS col0
----
-282

query I rowsort
SELECT ALL - - 32 * + 52 * - 28
----
-46592

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT + COUNT( + ( 84 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8067
SELECT + COUNT ( + ( 84 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT - 81 DIV - + 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8068
SELECT - 81 / - + 53 AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8069
SELECT + 47 DIV - + 73, 65 * - ( - - 69 ) AS col2
----
0
-4485

skipif mysql # not compatible
query II rowsort label-8069
SELECT + 47 / - + 73, 65 * - ( - - 69 ) AS col2
----
0
-4485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8070
SELECT ALL + CAST( + + 96 AS SIGNED ) + - 75 * + COUNT( * ) + 39 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + CAST ( + + 96 AS INTEGER ) + - 75 * + COUNT ( * ) + 39 AS col0
----
60

query I rowsort
SELECT ALL - - ( + + 42 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + MAX( + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-8072
SELECT + MAX ( + 61 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8073
SELECT 90 * - + COUNT( DISTINCT - 42 ) + COUNT( * ) * + CAST( NULL AS SIGNED ) + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT 90 * - + COUNT ( DISTINCT - 42 ) + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT 7 * - + CASE + SUM( - ( - + 4 ) ) WHEN + - ( 74 ) * + + 7 + - 32 THEN - - 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT 7 * - + CASE + SUM ( - ( - + 4 ) ) WHEN + - ( 74 ) * + + 7 + - 32 THEN - - 0 END
----
NULL

query I rowsort
SELECT 14 + + + 8 AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8076
SELECT DISTINCT - CAST( + - ( - + COUNT( * ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT - CAST ( + - ( - + COUNT ( * ) ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8077
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) - + - 2 / + 2 + COALESCE ( 56, - + COUNT( * ) / 20 * + 89 * + - ( + 80 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) - + - 2 / + 2 + COALESCE ( 56, - + COUNT ( * ) / 20 * + 89 * + - ( + 80 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 6 * - 10 AS col0
----
-60

query I rowsort
SELECT ALL 65 + + 14
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8080
SELECT DISTINCT - CAST( + 37 AS SIGNED ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT - CAST ( + 37 AS INTEGER ) AS col2
----
-37

query I rowsort
SELECT ALL - 0 * - 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8082
SELECT DISTINCT 53 col2, 84 * - MAX( 44 ) AS col1
----
53
-3696

skipif mysql # not compatible
query II rowsort label-8082
SELECT DISTINCT 53 col2, 84 * - MAX ( 44 ) AS col1
----
53
-3696

onlyif mysql # aggregate syntax: 
query II rowsort label-8083
SELECT CASE + 29 WHEN - - 10 * + 93 + + ( - 62 ) THEN - + CASE - 99 WHEN - 0 THEN COUNT( * ) WHEN - 84 THEN - - ( - + ( - - 34 ) ) * - - 31 END WHEN - 63 * - 62 THEN NULL END + - 43, 28 AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-8083
SELECT CASE + 29 WHEN - - 10 * + 93 + + ( - 62 ) THEN - + CASE - 99 WHEN - 0 THEN COUNT ( * ) WHEN - 84 THEN - - ( - + ( - - 34 ) ) * - - 31 END WHEN - 63 * - 62 THEN NULL END + - 43, 28 AS col1
----
NULL
28

query I rowsort
SELECT 39 * + 16 * - 40
----
-24960

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT 84 + - + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8085
SELECT 84 + - + COUNT ( * ) AS col2
----
83

query I rowsort
SELECT ALL 57 * 19 AS col0
----
1083

query II rowsort
SELECT 59 AS col0, ( + 24 ) AS col0
----
59
24

query I rowsort
SELECT ( + 54 ) + + + 34
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT 92 * - MAX( DISTINCT 19 )
----
-1748

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT 92 * - MAX ( DISTINCT 19 )
----
-1748

query I rowsort
SELECT ALL 21 * 84 col2
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT DISTINCT 56 * NULLIF ( + COUNT( * ), - 80 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT 56 * NULLIF ( + COUNT ( * ), - 80 ) AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8092
SELECT ALL 15 * - COALESCE ( 36, - CASE + 91 WHEN - CASE + ( 65 ) WHEN 20 + SUM( + 0 ) THEN + 74 - CAST( NULL AS SIGNED ) WHEN - 1 THEN NULL END * - 6 + + 51 THEN 84 * 86 - 25 WHEN CASE NULLIF ( 97, COUNT( DISTINCT + 52 ) ) WHEN 90 THEN NULL WHEN - 97 + COUNT( 6 ) THEN - ( 18 ) + 31 WHEN SUM( + 93 ) THEN + 31 * 7 ELSE NULL END THEN ( + 18 ) ELSE 20 END + COUNT( ALL 15 ) DIV COUNT( * ) ) AS col1
----
-540

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL 15 * - COALESCE ( 36, - CASE + 91 WHEN - CASE + ( 65 ) WHEN 20 + SUM ( + 0 ) THEN + 74 - CAST ( NULL AS INTEGER ) WHEN - 1 THEN NULL END * - 6 + + 51 THEN 84 * 86 - 25 WHEN CASE NULLIF ( 97, COUNT ( DISTINCT + 52 ) ) WHEN 90 THEN NULL WHEN - 97 + COUNT ( 6 ) THEN - ( 18 ) + 31 WHEN SUM ( + 93 ) THEN + 31 * 7 ELSE NULL END THEN ( + 18 ) ELSE 20 END + COUNT ( ALL 15 ) / COUNT ( * ) ) AS col1
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT MAX( DISTINCT - 40 ) * + COALESCE ( COUNT( * ) + 28 * NULLIF ( 21, - 61 * 46 ), - ( 98 ) )
----
-23560

skipif mysql # not compatible
query I rowsort label-8093
SELECT MAX ( DISTINCT - 40 ) * + COALESCE ( COUNT ( * ) + 28 * NULLIF ( 21, - 61 * 46 ), - ( 98 ) )
----
-23560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8094
SELECT ( + CAST( NULL AS DECIMAL ) ) - 31 / - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT ( + CAST ( NULL AS REAL ) ) - 31 / - 3
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8095
SELECT DISTINCT - CASE MIN( DISTINCT CAST( + 13 AS SIGNED ) ) WHEN - 61 + + 84 THEN - NULLIF ( - ( 56 ), 87 * - 98 ) ELSE NULL END + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT - CASE MIN ( DISTINCT CAST ( + 13 AS INTEGER ) ) WHEN - 61 + + 84 THEN - NULLIF ( - ( 56 ), 87 * - 98 ) ELSE NULL END + 52
----
NULL

query I rowsort
SELECT ALL + 3 + + 96
----
99

query I rowsort
SELECT DISTINCT 8 + 80
----
88

query I rowsort
SELECT 27 - ( + 5 ) * 13 AS col0
----
-38

query I rowsort
SELECT DISTINCT + 85 * 60 AS col1
----
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8100
SELECT CAST( NULL AS SIGNED ) + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8100
SELECT CAST ( NULL AS INTEGER ) + - 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8101
SELECT 52 * - NULLIF ( + CAST( NULL AS SIGNED ), + CASE 40 WHEN + 74 THEN + 40 + CASE 65 - 74 WHEN - 61 + + COUNT( * ) THEN SUM( 42 ) - 69 END * + 23 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT 52 * - NULLIF ( + CAST ( NULL AS INTEGER ), + CASE 40 WHEN + 74 THEN + 40 + CASE 65 - 74 WHEN - 61 + + COUNT ( * ) THEN SUM ( 42 ) - 69 END * + 23 END ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8102
SELECT + CAST( NULL AS DECIMAL ) * 67 + CASE - 85 + 9 * 85 WHEN - NULLIF ( - 13, NULLIF ( COUNT( * ), + 49 ) ) * - 71 THEN NULL ELSE 83 * 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT + CAST ( NULL AS REAL ) * 67 + CASE - 85 + 9 * 85 WHEN - NULLIF ( - 13, NULLIF ( COUNT ( * ), + 49 ) ) * - 71 THEN NULL ELSE 83 * 59 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT DISTINCT COALESCE ( + 35, + NULLIF ( - 77, COUNT( * ) + - 3 * - 98 ) ) * + COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT COALESCE ( + 35, + NULLIF ( - 77, COUNT ( * ) + - 3 * - 98 ) ) * + COUNT ( * ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL - 95 - - COUNT( * ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL - 95 - - COUNT ( * ) col0
----
-94

query I rowsort
SELECT ALL + 41 - - 66 col2
----
107

query I rowsort
SELECT 42 * 76
----
3192

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ALL - CASE COUNT( * ) WHEN MIN( ALL 23 ) + + COUNT( * ) THEN NULL WHEN 3 * COUNT( * ) THEN 69 * - 54 ELSE + 38 END
----
-38

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL - CASE COUNT ( * ) WHEN MIN ( ALL 23 ) + + COUNT ( * ) THEN NULL WHEN 3 * COUNT ( * ) THEN 69 * - 54 ELSE + 38 END
----
-38

query I rowsort
SELECT DISTINCT + 23 * - 40 AS col2
----
-920

query I rowsort
SELECT 68 * + 38
----
2584

query I rowsort
SELECT 39 - - 90
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-8111
SELECT 74 DIV 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8111
SELECT 74 / 44 AS col0
----
1

query I rowsort
SELECT DISTINCT - 23 * 89 col0
----
-2047

query I rowsort
SELECT ALL - COALESCE ( 41, + 69 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT 58 + COUNT( * ) * - 82 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8114
SELECT 58 + COUNT ( * ) * - 82 AS col1
----
-24

query I rowsort
SELECT ALL NULLIF ( 80, + 25 * + AVG ( DISTINCT 7 ) ) AS col1
----
80

query I rowsort
SELECT 67 * 84 col1
----
5628

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT MIN( ALL 52 ) - + 32
----
20

skipif mysql # not compatible
query I rowsort label-8117
SELECT MIN ( ALL 52 ) - + 32
----
20

query I rowsort
SELECT + 27 + 22
----
49

query I rowsort
SELECT + + 83 * 27
----
2241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT - + 14 + + CASE 74 WHEN 20 THEN NULL WHEN - 20 / - 90 THEN + NULLIF ( 41, - 13 ) ELSE + ( CAST( NULL AS SIGNED ) ) END * 15 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT - + 14 + + CASE 74 WHEN 20 THEN NULL WHEN - 20 / - 90 THEN + NULLIF ( 41, - 13 ) ELSE + ( CAST ( NULL AS INTEGER ) ) END * 15 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT + - CASE WHEN NOT + CAST( 35 AS SIGNED ) IS NULL THEN NULL WHEN NOT - 66 IS NULL THEN - 75 * 9 END * 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT + - CASE WHEN NOT + CAST ( 35 AS INTEGER ) IS NULL THEN NULL WHEN NOT - 66 IS NULL THEN - 75 * 9 END * 87 col1
----
NULL

query I rowsort
SELECT ALL - 45 + + 73
----
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8123
SELECT - - ( - 50 ) + CAST( - 1 AS SIGNED ) * + COALESCE ( + 51, - AVG ( - 54 ) DIV 40 ) AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-8123
SELECT - - ( - 50 ) + CAST ( - 1 AS INTEGER ) * + COALESCE ( + 51, - AVG ( - 54 ) / 40 ) AS col1
----
-101

query I rowsort
SELECT + 63 - 83
----
-20

query I rowsort
SELECT ALL + 70 + - 47 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT + 7 + - 1 * COUNT( ALL 66 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8126
SELECT + 7 + - 1 * COUNT ( ALL 66 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT + 76 - 69 * NULLIF ( 32 + + COUNT( * ), + 18 * 66 )
----
-2201

skipif mysql # not compatible
query I rowsort label-8127
SELECT + 76 - 69 * NULLIF ( 32 + + COUNT ( * ), + 18 * 66 )
----
-2201

query I rowsort
SELECT ALL 46 + + 1
----
47

query I rowsort
SELECT + 20 + - CASE + 13 + + 21 WHEN + 65 * 25 THEN 13 WHEN ( + 49 ) THEN - 76 / 63 - 51 * - ( 76 ) ELSE NULL END / 20
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8130
SELECT ALL SUM( ALL 98 ) + ( 89 ) DIV 48 col1
----
99

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL SUM ( ALL 98 ) + ( 89 ) / 48 col1
----
99

query I rowsort
SELECT DISTINCT - 51 + 56
----
5

query I rowsort
SELECT DISTINCT 87 + 54 AS col0
----
141

query I rowsort
SELECT + + COALESCE ( 97, 30 ) + 92 * 29
----
2765

query I rowsort
SELECT ALL + 18 + 59 AS col0
----
77

query I rowsort
SELECT + + ( 2 ) * + 89
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + COUNT( * ) + - 14 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8136
SELECT + COUNT ( * ) + - 14 AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT + + 63 DIV - 15 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8137
SELECT + + 63 / - 15 AS col1
----
-4

query I rowsort
SELECT - 92 * + 94
----
-8648

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT COUNT( * ) * + 5 + 88 * 48
----
4229

skipif mysql # not compatible
query I rowsort label-8139
SELECT COUNT ( * ) * + 5 + 88 * 48
----
4229

onlyif mysql # DIV for integer division: 
query I rowsort label-8140
SELECT DISTINCT + 54 * + + 61 * 20 - + 55 * ( + 7 DIV 60 )
----
65880

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + 54 * + + 61 * 20 - + 55 * ( + 7 / 60 )
----
65880

query I rowsort
SELECT + CASE + 73 WHEN 30 / 37 THEN 24 WHEN COALESCE ( ( - 79 ), - 36 / 17 + - 76 ) * - 39 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL 33 * 46 - 53 * - NULLIF ( 19 + 79, - 37 ) AS col2
----
6712

query I rowsort
SELECT + 47 + + 51 + - 83 * - 99
----
8315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8144
SELECT DISTINCT + 77 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT + 77 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - NULLIF ( + - COUNT( * ), 62 ) + 23
----
24

skipif mysql # not compatible
query I rowsort label-8145
SELECT - NULLIF ( + - COUNT ( * ), 62 ) + 23
----
24

query I rowsort
SELECT 37 * + + 78 + - 60 col1
----
2826

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT 64 * + SUM( DISTINCT - 71 ) + 68
----
-4476

skipif mysql # not compatible
query I rowsort label-8147
SELECT 64 * + SUM ( DISTINCT - 71 ) + 68
----
-4476

query I rowsort
SELECT ALL - 37 * - 85 * + 26 AS col0
----
81770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT CAST( + 80 AS SIGNED ) * - ( - 10 ) + + 79 AS col2
----
879

skipif mysql # not compatible
query I rowsort label-8149
SELECT CAST ( + 80 AS INTEGER ) * - ( - 10 ) + + 79 AS col2
----
879

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8150
SELECT COALESCE ( - - CAST( NULL AS SIGNED ), + CASE WHEN NOT NULL BETWEEN ( 2 ) AND 13 + 87 THEN NULL ELSE - 85 END - + 40 ) AS col2
----
-125

skipif mysql # not compatible
query I rowsort label-8150
SELECT COALESCE ( - - CAST ( NULL AS INTEGER ), + CASE WHEN NOT NULL BETWEEN ( 2 ) AND 13 + 87 THEN NULL ELSE - 85 END - + 40 ) AS col2
----
-125

query I rowsort
SELECT + ( + + ( + 80 ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - CASE - ( + 67 ) WHEN - COUNT( * ) * + 61 THEN - 99 ELSE 90 * 47 END + 71
----
-4159

skipif mysql # not compatible
query I rowsort label-8152
SELECT - CASE - ( + 67 ) WHEN - COUNT ( * ) * + 61 THEN - 99 ELSE 90 * 47 END + 71
----
-4159

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT ALL 46 * - COALESCE ( COUNT( * ), - 10 ) * + 96
----
-4416

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL 46 * - COALESCE ( COUNT ( * ), - 10 ) * + 96
----
-4416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8154
SELECT ALL 69 * 98 + + 89 DIV + COUNT( * )
----
6851

skipif mysql # not compatible
query I rowsort label-8154
SELECT ALL 69 * 98 + + 89 / + COUNT ( * )
----
6851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT - 10 + 27 * CASE 72 WHEN + COUNT( * ) THEN + 11 * 28 + CAST( 60 - - 39 AS SIGNED ) WHEN - ( + 87 ) * 95 THEN - 57 + 16 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT - 10 + 27 * CASE 72 WHEN + COUNT ( * ) THEN + 11 * 28 + CAST ( 60 - - 39 AS INTEGER ) WHEN - ( + 87 ) * 95 THEN - 57 + 16 END AS col0
----
NULL

query I rowsort
SELECT ALL - + 25 + - - 63 col0
----
38

query I rowsort
SELECT - 47 + + 83 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT - COUNT( + 52 ) * 71
----
-71

skipif mysql # not compatible
query I rowsort label-8158
SELECT - COUNT ( + 52 ) * 71
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8159
SELECT ALL + + 12 + - 51 DIV COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL + + 12 + - 51 / COUNT ( * ) AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT ALL - CAST( 41 AS SIGNED ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL - CAST ( 41 AS INTEGER ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT ALL - NULLIF ( - ( 50 ), + SUM( 22 ) * - 59 + 52 ) + 4
----
54

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL - NULLIF ( - ( 50 ), + SUM ( 22 ) * - 59 + 52 ) + 4
----
54

query I rowsort
SELECT ALL - COALESCE ( + - 45, + 78 * 4 + 46, 73 ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL + COUNT( * ) + + + 4
----
5

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + COUNT ( * ) + + + 4
----
5

query I rowsort
SELECT - + 27 * + 96 * 54 col0
----
-139968

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL - - 20 * + - MAX( 81 )
----
-1620

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL - - 20 * + - MAX ( 81 )
----
-1620

query I rowsort
SELECT - 36 + - + 97 + + 89 AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8167
SELECT CAST( - ( SUM( - 49 ) ) AS SIGNED ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-8167
SELECT CAST ( - ( SUM ( - 49 ) ) AS INTEGER ) AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT - - CAST( + + 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-8168
SELECT - - CAST ( + + 49 AS INTEGER )
----
49

query I rowsort
SELECT - 93 - + 36
----
-129

query I rowsort
SELECT + 63 * - 21 * - 56
----
74088

query I rowsort
SELECT - 7 - - 89 * + 46
----
4087

query I rowsort
SELECT + + 70 + - 57
----
13

query I rowsort
SELECT + - 1 * 4 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL + COUNT( ALL - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + COUNT ( ALL - 58 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8175
SELECT + CASE + ( - + 46 ) WHEN COUNT( * ) THEN NULLIF ( COUNT( * ), - CAST( NULL AS SIGNED ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8175
SELECT + CASE + ( - + 46 ) WHEN COUNT ( * ) THEN NULLIF ( COUNT ( * ), - CAST ( NULL AS INTEGER ) ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT + 6 - + - 21 + + COUNT( * ) * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-8176
SELECT + 6 - + - 21 + + COUNT ( * ) * COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL COUNT( * ) * 17 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL COUNT ( * ) * 17 AS col0
----
17

query I rowsort
SELECT + 24 * - 22
----
-528

query I rowsort
SELECT + CASE - + 26 WHEN - 68 THEN 18 + + ( - 28 ) END - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT + MAX( ALL + - ( - + ( - 1 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8180
SELECT + MAX ( ALL + - ( - + ( - 1 ) ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT CAST( 27 AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8181
SELECT CAST ( 27 AS INTEGER ) AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT ALL 6 * - CASE + CAST( 54 AS SIGNED ) WHEN + 11 * 97 THEN 69 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL 6 * - CASE + CAST ( 54 AS INTEGER ) WHEN + 11 * 97 THEN 69 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8183
SELECT CAST( CASE + 14 WHEN - 93 + + 13 * + 61 THEN NULL WHEN 0 THEN - 62 * 97 ELSE NULL END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT CAST ( CASE + 14 WHEN - 93 + + 13 * + 61 THEN NULL WHEN 0 THEN - 62 * 97 ELSE NULL END AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 1, - - 40 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8185
SELECT + MIN( - CAST( NULL AS SIGNED ) ) / - + 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8185
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) / - + 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT + 88 * + ( + NULLIF ( 50, - MAX( ALL - 37 ) ) )
----
4400

skipif mysql # not compatible
query I rowsort label-8186
SELECT + 88 * + ( + NULLIF ( 50, - MAX ( ALL - 37 ) ) )
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT + MAX( ALL - ( + + 39 ) ) + - 84
----
-123

skipif mysql # not compatible
query I rowsort label-8187
SELECT + MAX ( ALL - ( + + 39 ) ) + - 84
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8188
SELECT CAST( + COUNT( 98 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8188
SELECT CAST ( + COUNT ( 98 ) AS INTEGER ) AS col2
----
1

query II rowsort
SELECT ALL + 29 AS col2, - COALESCE ( 33, + 49 ) + + 64
----
29
31

query II rowsort
SELECT ALL + 32, - 98 col2
----
32
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8191
SELECT + CAST( NULL AS SIGNED ) AS col1, + 51 + + 59
----
NULL
110

skipif mysql # not compatible
query II rowsort label-8191
SELECT + CAST ( NULL AS INTEGER ) AS col1, + 51 + + 59
----
NULL
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8192
SELECT ALL 96 DIV - + 10 * CAST( COUNT( - 11 ) AS SIGNED ) + + COUNT( DISTINCT 86 + + 85 * 18 ) * - 19 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8192
SELECT ALL 96 / - + 10 * CAST ( COUNT ( - 11 ) AS INTEGER ) + + COUNT ( DISTINCT 86 + + 85 * 18 ) * - 19 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8193
SELECT + CASE + COUNT( * ) WHEN + 1 - 46 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - 20 END + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-8193
SELECT + CASE + COUNT ( * ) WHEN + 1 - 46 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - 20 END + 29
----
NULL

query I rowsort
SELECT ALL 92 + - 72 + + + 4 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8195
SELECT 73 + - CAST( NULL AS SIGNED ) + 76 - - 33 / COALESCE ( - 92 + 70, 65 - - COALESCE ( + 62, NULLIF ( - 82, - 49 ) / + CASE COUNT( * ) WHEN COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN - 70 * - 0 + 0 END - 57 * 36, MAX( + 2 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT 73 + - CAST ( NULL AS INTEGER ) + 76 - - 33 / COALESCE ( - 92 + 70, 65 - - COALESCE ( + 62, NULLIF ( - 82, - 49 ) / + CASE COUNT ( * ) WHEN COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN - 70 * - 0 + 0 END - 57 * 36, MAX ( + 2 ) ) )
----
NULL

query I rowsort
SELECT ALL - ( 3 ) col2
----
-3

query I rowsort
SELECT 49 + + 51
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT - - COUNT( - 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8198
SELECT - - COUNT ( - 49 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8199
SELECT DISTINCT + 67, 74 * - 49 * - COUNT( ALL NULLIF ( + 23, - 97 * + 29 ) ) + SUM( + 17 ) AS col2
----
67
3643

skipif mysql # not compatible
query II rowsort label-8199
SELECT DISTINCT + 67, 74 * - 49 * - COUNT ( ALL NULLIF ( + 23, - 97 * + 29 ) ) + SUM ( + 17 ) AS col2
----
67
3643

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8200
SELECT DISTINCT CASE + + 73 WHEN - 98 THEN + CAST( NULL AS DECIMAL ) WHEN + ( - 75 ) THEN NULL WHEN COUNT( * ) + - COUNT( * ) THEN NULL ELSE NULL END + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT CASE + + 73 WHEN - 98 THEN + CAST ( NULL AS REAL ) WHEN + ( - 75 ) THEN NULL WHEN COUNT ( * ) + - COUNT ( * ) THEN NULL ELSE NULL END + 83
----
NULL

query I rowsort
SELECT ALL - 62 + + 66 + - 72
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT 72 + + COUNT( * ) + - 36 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8202
SELECT 72 + + COUNT ( * ) + - 36 AS col0
----
37

query I rowsort
SELECT ALL 81 + 88 * 3 * + 63 + - 77 AS col0
----
16636

query I rowsort
SELECT 18 + + 37 + 53 col0
----
108

query I rowsort
SELECT DISTINCT ( + ( + - 15 ) )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT ALL + 1 / + CAST( NULL AS SIGNED ) - - - 4 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + 1 / + CAST ( NULL AS INTEGER ) - - - 4 / + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8207
SELECT 52 + + 58 DIV 28 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-8207
SELECT 52 + + 58 / 28 AS col2
----
54

query I rowsort
SELECT + ( 14 ) * - 52
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT 98 + - MIN( ALL 88 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8209
SELECT 98 + - MIN ( ALL 88 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT 41 - - 21 + - COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8210
SELECT 41 - - 21 + - COUNT ( * ) AS col0
----
61

query I rowsort
SELECT DISTINCT + 72 col0
----
72

query I rowsort
SELECT ALL ( + + 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT + COALESCE ( + 0, - + 46 * - 60 ) - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT + COALESCE ( + 0, - + 46 * - 60 ) - + COUNT ( * )
----
-1

query I rowsort
SELECT 52 + + 19 + - 41 AS col0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT 62 + - 94 / + - 50 * - CAST( NULL AS SIGNED ) * + COUNT( DISTINCT 42 * + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT 62 + - 94 / + - 50 * - CAST ( NULL AS INTEGER ) * + COUNT ( DISTINCT 42 * + 11 )
----
NULL

query I rowsort
SELECT 33 * - - 36 AS col2
----
1188

query I rowsort
SELECT 68 * 4 * + 39 AS col2
----
10608

onlyif mysql # DIV for integer division: 
query I rowsort label-8218
SELECT ALL 58 DIV - 90 * + + ( + 4 )
----
0

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL 58 / - 90 * + + ( + 4 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT COUNT( - 58 ) * - 16 * 58 + - COUNT( * ) + - 66 AS col0
----
-995

skipif mysql # not compatible
query I rowsort label-8219
SELECT COUNT ( - 58 ) * - 16 * 58 + - COUNT ( * ) + - 66 AS col0
----
-995

query I rowsort
SELECT ALL - ( + 57 ) + - 95 AS col0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT 93 * - - COUNT( ALL 57 )
----
93

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT 93 * - - COUNT ( ALL 57 )
----
93

query I rowsort
SELECT ALL 52 + + - 58 + + + ( - 64 ) * 79
----
-5062

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8223
SELECT NULLIF ( + ( - 22 ), - COUNT( * ) ) DIV + 49 + 37 * + 14
----
518

skipif mysql # not compatible
query I rowsort label-8223
SELECT NULLIF ( + ( - 22 ), - COUNT ( * ) ) / + 49 + 37 * + 14
----
518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT ALL 28 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL 28 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT - 85 * + NULLIF ( 30, - 90 ) + + 9 DIV - 4 AS col0
----
-2552

skipif mysql # not compatible
query I rowsort label-8225
SELECT - 85 * + NULLIF ( 30, - 90 ) + + 9 / - 4 AS col0
----
-2552

query I rowsort
SELECT 83 * + 24 * - 93 * - + ( 45 )
----
8336520

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT 38 * - - COUNT( 42 ) + - + 31 col0
----
7

skipif mysql # not compatible
query I rowsort label-8227
SELECT 38 * - - COUNT ( 42 ) + - + 31 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT ALL 86 + COALESCE ( - 36, - MAX( ALL + 61 ) ) + - 18 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL 86 + COALESCE ( - 36, - MAX ( ALL + 61 ) ) + - 18 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT ALL - ( - - ( 59 ) ) DIV ( COUNT( * ) ) - 45 * - 2
----
31

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL - ( - - ( 59 ) ) / ( COUNT ( * ) ) - 45 * - 2
----
31

query II rowsort
SELECT 48 * - 47 AS col1, 28
----
-2256
28

query I rowsort
SELECT ALL 12 + - - 2 AS col2
----
14

query I rowsort
SELECT ( - + 76 ) * - CASE 37 WHEN ( - 17 ) THEN - 91 * 23 + 96 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8233
SELECT - - NULLIF ( - COUNT( * ), + CAST( NULL AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8233
SELECT - - NULLIF ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT + COUNT( * ) * + + NULLIF ( 16, - 53 )
----
16

skipif mysql # not compatible
query I rowsort label-8234
SELECT + COUNT ( * ) * + + NULLIF ( 16, - 53 )
----
16

query I rowsort
SELECT + 61 * 19 + - 50 * + + 94 * + 22 AS col1
----
-102241

query I rowsort
SELECT 97 * - + ( + 6 ) * + + 45 - - 14
----
-26176

query I rowsort
SELECT DISTINCT 54 * 93
----
5022

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT + COUNT( * ) * + 16 * + + 72 + - 87
----
1065

skipif mysql # not compatible
query I rowsort label-8238
SELECT + COUNT ( * ) * + 16 * + + 72 + - 87
----
1065

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8239
SELECT DISTINCT + - COUNT( * ) DIV COUNT( + 0 ) DIV - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT + - COUNT ( * ) / COUNT ( + 0 ) / - COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8240
SELECT ( 47 ) + + 1 + + - CAST( 2 AS SIGNED ) + 4
----
50

skipif mysql # not compatible
query I rowsort label-8240
SELECT ( 47 ) + + 1 + + - CAST ( 2 AS INTEGER ) + 4
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8241
SELECT 62 * + CAST( - ( - COUNT( * ) ) AS SIGNED ) col0
----
62

skipif mysql # not compatible
query I rowsort label-8241
SELECT 62 * + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8242
SELECT 68 DIV 7
----
9

skipif mysql # not compatible
query I rowsort label-8242
SELECT 68 / 7
----
9

query I rowsort
SELECT 42 - + + 39 AS col1
----
3

query I rowsort
SELECT 52 + - 48 AS col0
----
4

query I rowsort
SELECT ALL + 78 * - 8 AS col1
----
-624

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT 58 DIV - + 25
----
-2

skipif mysql # not compatible
query I rowsort label-8246
SELECT 58 / - + 25
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL CAST( + + ( - - 96 ) AS SIGNED ) + - 19 * - 41 AS col2
----
875

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL CAST ( + + ( - - 96 ) AS INTEGER ) + - 19 * - 41 AS col2
----
875

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8248
SELECT ALL - 6 + - 89 + 35 AS col0, 6 * - + CAST( NULL AS SIGNED ) + - 69 * - 49
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-8248
SELECT ALL - 6 + - 89 + 35 AS col0, 6 * - + CAST ( NULL AS INTEGER ) + - 69 * - 49
----
-60
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT ALL + 51 + CASE 64 WHEN 32 THEN - 41 WHEN COUNT( * ) THEN + ( CASE CAST( NULL AS SIGNED ) WHEN - 75 * 97 THEN - 74 * 57 + 80 WHEN 17 * COUNT( * ) THEN NULL WHEN 85 * + 56 THEN NULL ELSE COUNT( DISTINCT + 75 ) END ) * - 84 + - 48 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + 51 + CASE 64 WHEN 32 THEN - 41 WHEN COUNT ( * ) THEN + ( CASE CAST ( NULL AS INTEGER ) WHEN - 75 * 97 THEN - 74 * 57 + 80 WHEN 17 * COUNT ( * ) THEN NULL WHEN 85 * + 56 THEN NULL ELSE COUNT ( DISTINCT + 75 ) END ) * - 84 + - 48 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL - NULLIF ( 94, COALESCE ( - + 67, - 56 / + 73, 23 / + 12 + AVG ( ALL ( - 14 ) ), - NULLIF ( 49, COUNT( * ) ) ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL - NULLIF ( 94, COALESCE ( - + 67, - 56 / + 73, 23 / + 12 + AVG ( ALL ( - 14 ) ), - NULLIF ( 49, COUNT ( * ) ) ) ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT DISTINCT + 97 * + + COUNT( * ) + - 6 + - 98
----
-7

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT + 97 * + + COUNT ( * ) + - 6 + - 98
----
-7

query II rowsort
SELECT + 7 AS col1, 38
----
7
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT NULLIF ( - 92, COUNT( * ) * - ( - AVG ( ( + 98 ) ) ) / + SUM( DISTINCT - 77 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-8253
SELECT NULLIF ( - 92, COUNT ( * ) * - ( - AVG ( ( + 98 ) ) ) / + SUM ( DISTINCT - 77 ) )
----
-92

query I rowsort
SELECT + 81 * + ( + 57 )
----
4617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8255
SELECT NULLIF ( - - 32, CASE + - 78 WHEN - 70 + ( 79 ) THEN COUNT( * ) + 99 ELSE 75 * + CASE - SUM( DISTINCT + 32 ) * 25 WHEN - SUM( + 41 ) THEN - CAST( NULL AS SIGNED ) WHEN 32 + CASE + ( + 60 ) WHEN - 37 THEN NULL ELSE COUNT( * ) END THEN - 80 WHEN ( - 69 ) * 40 THEN COUNT( * ) END END )
----
32

skipif mysql # not compatible
query I rowsort label-8255
SELECT NULLIF ( - - 32, CASE + - 78 WHEN - 70 + ( 79 ) THEN COUNT ( * ) + 99 ELSE 75 * + CASE - SUM ( DISTINCT + 32 ) * 25 WHEN - SUM ( + 41 ) THEN - CAST ( NULL AS INTEGER ) WHEN 32 + CASE + ( + 60 ) WHEN - 37 THEN NULL ELSE COUNT ( * ) END THEN - 80 WHEN ( - 69 ) * 40 THEN COUNT ( * ) END END )
----
32

query I rowsort
SELECT DISTINCT 94 * + 62 + 94 + + 41 - - 6 col2
----
5969

onlyif mysql # aggregate syntax: 
query II rowsort label-8257
SELECT ALL 97 * - + MAX( 21 ) AS col0, 47 * - 31 AS col1
----
-2037
-1457

skipif mysql # not compatible
query II rowsort label-8257
SELECT ALL 97 * - + MAX ( 21 ) AS col0, 47 * - 31 AS col1
----
-2037
-1457

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT DISTINCT + 84 DIV - + 8 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT + 84 / - + 8 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT DISTINCT + COUNT( 39 ) * NULLIF ( 77, + 64 ) - COUNT( 37 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT + COUNT ( 39 ) * NULLIF ( 77, + 64 ) - COUNT ( 37 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT DISTINCT + + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8260
SELECT DISTINCT + + ( COUNT ( * ) )
----
1

query I rowsort
SELECT - + 45 + - 49 AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) * 50 AS col2
----
NULL

query I rowsort
SELECT - - 29 + 59
----
88

query I rowsort
SELECT + 16 * 18 AS col2
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8265
SELECT DISTINCT + - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8266
SELECT - NULLIF ( + 28, + COUNT( * ) / - COUNT( * ) ) * + + COUNT( ALL CAST( 44 AS SIGNED ) ) + - 13 + - ( 46 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-8266
SELECT - NULLIF ( + 28, + COUNT ( * ) / - COUNT ( * ) ) * + + COUNT ( ALL CAST ( 44 AS INTEGER ) ) + - 13 + - ( 46 ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8267
SELECT + ( 39 ) + - 23 + 97 + - 85 * - CASE - CAST( NULL AS SIGNED ) + - 47 WHEN - 39 THEN NULL WHEN 60 + + 16 THEN COUNT( * ) + + 45 ELSE NULL END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT + ( 39 ) + - 23 + 97 + - 85 * - CASE - CAST ( NULL AS INTEGER ) + - 47 WHEN - 39 THEN NULL WHEN 60 + + 16 THEN COUNT ( * ) + + 45 ELSE NULL END * 48
----
NULL

query I rowsort
SELECT + 87 + + 89
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT + + NULLIF ( - - 63, + MIN( + 90 ) ) + - 23 * 77 col0
----
-1708

skipif mysql # not compatible
query I rowsort label-8269
SELECT + + NULLIF ( - - 63, + MIN ( + 90 ) ) + - 23 * 77 col0
----
-1708

query I rowsort
SELECT + - 38 + + - 54 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT ALL - NULLIF ( + + COUNT( * ), + + 85 ) * + + 79
----
-79

skipif mysql # not compatible
query I rowsort label-8271
SELECT ALL - NULLIF ( + + COUNT ( * ), + + 85 ) * + + 79
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8272
SELECT + - 22 * - CAST( + COUNT( + 11 ) AS SIGNED ) + 18 + + ( 33 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8272
SELECT + - 22 * - CAST ( + COUNT ( + 11 ) AS INTEGER ) + 18 + + ( 33 ) AS col2
----
73

query I rowsort
SELECT + 54 * 29 + + + 17 + + 4 AS col0
----
1587

query I rowsort
SELECT ALL 83 * - NULLIF ( + 61, - - 93 / 34 ) AS col1
----
-5063

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT + SUM( 16 ) * + 65 col0
----
1040

skipif mysql # not compatible
query I rowsort label-8275
SELECT + SUM ( 16 ) * + 65 col0
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT + 47 + - - MAX( 36 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8276
SELECT + 47 + - - MAX ( 36 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT - 53 - + + MAX( + + 2 ) + + 73 * + 19 - - 75 + - 57
----
1350

skipif mysql # not compatible
query I rowsort label-8277
SELECT - 53 - + + MAX ( + + 2 ) + + 73 * + 19 - - 75 + - 57
----
1350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), + + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-8278
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), + + 24 )
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8279
SELECT + COALESCE ( + + 28, - + 7 DIV - 64 + + CAST( + - 92 AS SIGNED ) + - MAX( ALL 22 ), 35 + 98 ) + + 87 * 22 AS col2
----
1942

skipif mysql # not compatible
query I rowsort label-8279
SELECT + COALESCE ( + + 28, - + 7 / - 64 + + CAST ( + - 92 AS INTEGER ) + - MAX ( ALL 22 ), 35 + 98 ) + + 87 * 22 AS col2
----
1942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT ALL CAST( NULL AS SIGNED ) + - - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL CAST ( NULL AS INTEGER ) + - - 47
----
NULL

query I rowsort
SELECT ALL - 19 + - 63
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT + COUNT( * ) + 24 * + COALESCE ( - 1, + 39, - 91 ) + + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-8282
SELECT + COUNT ( * ) + 24 * + COALESCE ( - 1, + 39, - 91 ) + + COUNT ( * )
----
-22

query I rowsort
SELECT DISTINCT 82 + COALESCE ( 18, + - 64 + 70 * - 22 ) AS col1
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8284
SELECT + CAST( + + COUNT( * ) AS SIGNED ) + - 95 + 24 + - + ( 92 ) * 95 * - 43 col0
----
375750

skipif mysql # not compatible
query I rowsort label-8284
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) + - 95 + 24 + - + ( 92 ) * 95 * - 43 col0
----
375750

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL COUNT( * ) + - 56
----
-55

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL COUNT ( * ) + - 56
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL 76 + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL 76 + COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT + 58 * ( - ( + + COUNT( * ) ) ) col1
----
-58

skipif mysql # not compatible
query I rowsort label-8287
SELECT + 58 * ( - ( + + COUNT ( * ) ) ) col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8288
SELECT ALL - COUNT( * ) DIV ( + MIN( - 33 ) ) * - - 71
----
0

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL - COUNT ( * ) / ( + MIN ( - 33 ) ) * - - 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8289
SELECT ( + + 44 ) * 51 + + NULLIF ( - + 48, - - 77 ) * CAST( 35 AS SIGNED )
----
564

skipif mysql # not compatible
query I rowsort label-8289
SELECT ( + + 44 ) * 51 + + NULLIF ( - + 48, - - 77 ) * CAST ( 35 AS INTEGER )
----
564

query I rowsort
SELECT - 15 * 30 + 47 + 84 col1
----
-319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT + CAST( - + 89 AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-8291
SELECT + CAST ( - + 89 AS INTEGER )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL + CASE - + 93 WHEN + 50 THEN NULL WHEN 35 THEN - 14 END / 68 * COALESCE ( COUNT( * ) * - MIN( 35 ), + 99 + 10 ) - - 73 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + CASE - + 93 WHEN + 50 THEN NULL WHEN 35 THEN - 14 END / 68 * COALESCE ( COUNT ( * ) * - MIN ( 35 ), + 99 + 10 ) - - 73 AS col0
----
NULL

query I rowsort
SELECT - 27 * - + ( 5 )
----
135

query I rowsort
SELECT - + 0 * + 90 + + 96 + - + 3
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8295
SELECT - 91 * + 6 + + + 53 * - COUNT( * ), CAST( 65 AS SIGNED ) * - 70 AS col1
----
-599
-4550

skipif mysql # not compatible
query II rowsort label-8295
SELECT - 91 * + 6 + + + 53 * - COUNT ( * ), CAST ( 65 AS INTEGER ) * - 70 AS col1
----
-599
-4550

query I rowsort
SELECT - 69 * + 62 + + 22
----
-4256

onlyif mysql # aggregate syntax: 
query III rowsort label-8297
SELECT COUNT( * ) AS col0, - 69 * + - 21 + 54, 71 col2
----
1
1503
71

skipif mysql # not compatible
query III rowsort label-8297
SELECT COUNT ( * ) AS col0, - 69 * + - 21 + 54, 71 col2
----
1
1503
71

query I rowsort
SELECT DISTINCT + ( - ( 83 ) )
----
-83

query II rowsort
SELECT + 12, 20 AS col1
----
12
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8300
SELECT ALL - CASE - 74 WHEN - + 38 / + CAST( - 58 AS DECIMAL ) THEN NULL WHEN 57 THEN - COUNT( * ) END / + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL - CASE - 74 WHEN - + 38 / + CAST ( - 58 AS REAL ) THEN NULL WHEN 57 THEN - COUNT ( * ) END / + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT + - COUNT( 8 ) * - NULLIF ( + + 36, - 55 ) + - 63 + 13
----
-14

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT + - COUNT ( 8 ) * - NULLIF ( + + 36, - 55 ) + - 63 + 13
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8302
SELECT 13 AS col1, 71 AS col1, + + CAST( 72 AS SIGNED ) * MAX( DISTINCT + 5 )
----
13
71
360

skipif mysql # not compatible
query III rowsort label-8302
SELECT 13 AS col1, 71 AS col1, + + CAST ( 72 AS INTEGER ) * MAX ( DISTINCT + 5 )
----
13
71
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8303
SELECT + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) * - 14
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-8303
SELECT + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * - 14
----
NULL
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL + + 9 * - 76 + + - 25 + - 71 * + 34 * - COUNT( * )
----
1705

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL + + 9 * - 76 + + - 25 + - 71 * + 34 * - COUNT ( * )
----
1705

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT - - MAX( - 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8305
SELECT - - MAX ( - 71 ) AS col1
----
-71

query I rowsort
SELECT + 43 * + 98 + - ( - 24 ) col0
----
4238

query I rowsort
SELECT DISTINCT - 96 * - 54
----
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT DISTINCT 41 + - 83 - + COUNT( * ) * 16 col1
----
-58

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT 41 + - 83 - + COUNT ( * ) * 16 col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT CAST( + 5 AS SIGNED ) * + + 80 AS col2
----
400

skipif mysql # not compatible
query I rowsort label-8309
SELECT CAST ( + 5 AS INTEGER ) * + + 80 AS col2
----
400

query I rowsort
SELECT 77 - - 33 * + 88 + + 47
----
3028

query II rowsort
SELECT 86 + - 8 - + ( - + 8 ) * - 73 AS col1, ( + 91 )
----
-506
91

query I rowsort
SELECT 22 * + 41
----
902

query I rowsort
SELECT 12 * NULLIF ( + + NULLIF ( + - 96, 38 * - - 54 * - 38 ), - 49 ) AS col2
----
-1152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8314
SELECT ( + - 27 ) - CAST( NULL AS DECIMAL ) * + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT ( + - 27 ) - CAST ( NULL AS REAL ) * + + 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8315
SELECT - NULLIF ( - 5, 68 * + COALESCE ( CAST( + 98 AS SIGNED ), 74 - - 61 ) + + ( + 14 ) ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-8315
SELECT - NULLIF ( - 5, 68 * + COALESCE ( CAST ( + 98 AS INTEGER ), 74 - - 61 ) + + ( + 14 ) ) / 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT - 75 * + 42 * - COUNT( * )
----
3150

skipif mysql # not compatible
query I rowsort label-8316
SELECT - 75 * + 42 * - COUNT ( * )
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT + + NULLIF ( - COUNT( * ), + - 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-8317
SELECT + + NULLIF ( - COUNT ( * ), + - 95 )
----
-1

query I rowsort
SELECT DISTINCT - 85 * - - 37 col0
----
-3145

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT ALL 2 DIV + + 94 * + - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL 2 / + + 94 * + - 82 AS col0
----
0

query I rowsort
SELECT ALL - 52 * - 22 + - 0 + + + 14 AS col2
----
1158

query II rowsort
SELECT 49 - 59, - 57 AS col1
----
-10
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT DISTINCT 20 DIV - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT 20 / - 77 AS col1
----
0

query I rowsort
SELECT + - ( - - 82 ) AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8324
SELECT ALL - 2 + - COUNT( ALL + 72 ) * - 62 * + 13 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8324
SELECT ALL - 2 + - COUNT ( ALL + 72 ) * - 62 * + 13 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 48 AS col0
----
48

query I rowsort
SELECT - ( ( - ( 47 ) ) ) * + 7 - + - 93 AS col2
----
422

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT + COUNT( * ) - 40
----
-39

skipif mysql # not compatible
query I rowsort label-8327
SELECT + COUNT ( * ) - 40
----
-39

query I rowsort
SELECT ALL - - ( COALESCE ( + - 58, - 16 ) ) + - 53
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT 10 * ( COALESCE ( + - 29, + COUNT( * ) ) ) + + COUNT( * ) AS col2
----
-289

skipif mysql # not compatible
query I rowsort label-8329
SELECT 10 * ( COALESCE ( + - 29, + COUNT ( * ) ) ) + + COUNT ( * ) AS col2
----
-289

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT ALL + - 79 + + SUM( ALL - 91 ) AS col1, - 19
----
-170
-19

skipif mysql # not compatible
query II rowsort label-8330
SELECT ALL + - 79 + + SUM ( ALL - 91 ) AS col1, - 19
----
-170
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT DISTINCT - MIN( ALL + CAST( 34 AS SIGNED ) ) * + 5 + + 18
----
-152

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT - MIN ( ALL + CAST ( 34 AS INTEGER ) ) * + 5 + + 18
----
-152

query I rowsort
SELECT 77 + - ( + 88 ) col1
----
-11

query I rowsort
SELECT ALL 30 * + ( + - 78 )
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT COUNT( ALL + 18 ) + - ( 24 ) + - + SUM( DISTINCT CASE + - 61 WHEN + + 94 THEN - 1 WHEN - 26 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT COUNT ( ALL + 18 ) + - ( 24 ) + - + SUM ( DISTINCT CASE + - 61 WHEN + + 94 THEN - 1 WHEN - 26 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT ALL + 19 + + ( + COUNT( * ) ) col0
----
20

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL + 19 + + ( + COUNT ( * ) ) col0
----
20

query I rowsort
SELECT 3 * + 62 AS col2
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT NULLIF ( - + 82, - 49 ) + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT NULLIF ( - + 82, - 49 ) + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 77 + + + 66 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT DISTINCT CASE - - ( 74 ) WHEN 96 THEN + 26 ELSE - NULLIF ( MAX( ALL + 95 ), - 36 ) END - - CASE 75 - 23 * + 40 WHEN + NULLIF ( 54, - COUNT( * ) ) THEN NULL WHEN + COUNT( * ) THEN NULL ELSE - 67 * 96 END
----
-6527

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT CASE - - ( 74 ) WHEN 96 THEN + 26 ELSE - NULLIF ( MAX ( ALL + 95 ), - 36 ) END - - CASE 75 - 23 * + 40 WHEN + NULLIF ( 54, - COUNT ( * ) ) THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE - 67 * 96 END
----
-6527

query I rowsort
SELECT DISTINCT + 2 * ( 69 )
----
138

query I rowsort
SELECT ALL + 48 * 20 * + 82
----
78720

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT COUNT( * ) + 25 - - 0 + 56 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8342
SELECT COUNT ( * ) + 25 - - 0 + 56 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT ALL COALESCE ( + COUNT( * ), 84 + COUNT( * ) ) * + - 90 + - COUNT( * ) + - 50 col2
----
-141

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL COALESCE ( + COUNT ( * ), 84 + COUNT ( * ) ) * + - 90 + - COUNT ( * ) + - 50 col2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT MIN( + 87 ) col2
----
87

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT MIN ( + 87 ) col2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8345
SELECT ALL COUNT( * ) col0, 78 * ( + - 43 )
----
1
-3354

skipif mysql # not compatible
query II rowsort label-8345
SELECT ALL COUNT ( * ) col0, 78 * ( + - 43 )
----
1
-3354

query I rowsort
SELECT 92 * - 24 col0
----
-2208

query II rowsort
SELECT - 16, - 79 AS col1
----
-16
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-8348
SELECT COUNT( 49 ) + - 74, + 10 AS col2
----
-73
10

skipif mysql # not compatible
query II rowsort label-8348
SELECT COUNT ( 49 ) + - 74, + 10 AS col2
----
-73
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT - CASE + + 47 WHEN + - 97 / 83 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT - CASE + + 47 WHEN + - 97 / 83 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT - 11 * + - 13 + 11 DIV + 75 + 93
----
236

skipif mysql # not compatible
query I rowsort label-8350
SELECT - 11 * + - 13 + 11 / + 75 + 93
----
236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8351
SELECT DISTINCT 52 * + 64 * - ( + CAST( + COALESCE ( 85, CAST( NULL AS SIGNED ) + - NULLIF ( MIN( DISTINCT 22 ), + 94 ) ) AS SIGNED ) ) + 27 * 53 AS col0
----
-281449

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT 52 * + 64 * - ( + CAST ( + COALESCE ( 85, CAST ( NULL AS INTEGER ) + - NULLIF ( MIN ( DISTINCT 22 ), + 94 ) ) AS INTEGER ) ) + 27 * 53 AS col0
----
-281449

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT + AVG ( ALL + 1 ) * + - 88 + + 29 + ( + CASE - COUNT( * ) WHEN 69 THEN + 45 WHEN + COUNT( * ) * COALESCE ( - 72, 27 ) THEN NULL END ) + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT + AVG ( ALL + 1 ) * + - 88 + + 29 + ( + CASE - COUNT ( * ) WHEN 69 THEN + 45 WHEN + COUNT ( * ) * COALESCE ( - 72, 27 ) THEN NULL END ) + - 26
----
NULL

query I rowsort
SELECT ALL - 12 * + - 41 + - 24
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT + 15 * SUM( + 22 )
----
330

skipif mysql # not compatible
query I rowsort label-8354
SELECT + 15 * SUM ( + 22 )
----
330

query I rowsort
SELECT COALESCE ( - 81, 32, 26 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL COUNT( * ) * + + 99 + - - 79 + - 62 + - 22
----
94

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL COUNT ( * ) * + + 99 + - - 79 + - 62 + - 22
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8357
SELECT COUNT( * ) DIV 38 + + 44 * + 97 DIV 48 + 59 DIV - + 43 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-8357
SELECT COUNT ( * ) / 38 + + 44 * + 97 / 48 + 59 / - + 43 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL 81 + NULLIF ( + 75, + COUNT( + + ( - 39 ) ) + + ( - 74 ) * + 36 )
----
156

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL 81 + NULLIF ( + 75, + COUNT ( + + ( - 39 ) ) + + ( - 74 ) * + 36 )
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT DISTINCT 21 DIV - 12 col1
----
-1

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT 21 / - 12 col1
----
-1

query I rowsort
SELECT ALL 25 + - - 22
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-8361
SELECT DISTINCT + COUNT( + 67 ) + - 38 AS col2, 49 * + 17
----
-37
833

skipif mysql # not compatible
query II rowsort label-8361
SELECT DISTINCT + COUNT ( + 67 ) + - 38 AS col2, 49 * + 17
----
-37
833

query I rowsort
SELECT - 94 * 16 AS col2
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL 0 - - + 38 + - ( + 88 ) * - 44 + - NULLIF ( + 60, + COUNT( * ) / - 38 * - 26 ) AS col0
----
3850

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL 0 - - + 38 + - ( + 88 ) * - 44 + - NULLIF ( + 60, + COUNT ( * ) / - 38 * - 26 ) AS col0
----
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT + SUM( DISTINCT + 63 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-8364
SELECT + SUM ( DISTINCT + 63 ) col2
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8365
SELECT - 64 * + + COALESCE ( 65, - 79 DIV - NULLIF ( + COUNT( * ), - 50 + + COUNT( * ) ) + + - 79 + - COUNT( * ) + COUNT( 68 ) ) AS col1
----
-4160

skipif mysql # not compatible
query I rowsort label-8365
SELECT - 64 * + + COALESCE ( 65, - 79 / - NULLIF ( + COUNT ( * ), - 50 + + COUNT ( * ) ) + + - 79 + - COUNT ( * ) + COUNT ( 68 ) ) AS col1
----
-4160

query I rowsort
SELECT - COALESCE ( + + 97, - - 98 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8367
SELECT ALL MIN( 38 ) AS col2, 4 AS col1
----
38
4

skipif mysql # not compatible
query II rowsort label-8367
SELECT ALL MIN ( 38 ) AS col2, 4 AS col1
----
38
4

query I rowsort
SELECT - 28 * - - 47 AS col1
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ALL + COUNT( * ) * - 7 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8369
SELECT ALL + COUNT ( * ) * - 7 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT MIN( ALL - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT MIN ( ALL - 95 )
----
-95

query I rowsort
SELECT - 22 + + 29 col1
----
7

query I rowsort
SELECT - 98 * + - 7 AS col2
----
686

query I rowsort
SELECT ALL COALESCE ( - 0, 69 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8374
SELECT ALL + SUM( + 42 ) * + ( + CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL + SUM ( + 42 ) * + ( + CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) * 16
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8375
SELECT + COUNT( DISTINCT - ( - 39 ) ) + 56 AS col0, - 83 * 24
----
57
-1992

skipif mysql # not compatible
query II rowsort label-8375
SELECT + COUNT ( DISTINCT - ( - 39 ) ) + 56 AS col0, - 83 * 24
----
57
-1992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT ALL - CAST( NULL AS SIGNED ) + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL - CAST ( NULL AS INTEGER ) + - 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8377
SELECT ALL + COALESCE ( + + 0, - 17 * + 25 * + 66, 21 ) + - - CASE + 5 WHEN + ( CASE 55 WHEN CAST( + 85 AS DECIMAL ) THEN NULL WHEN 95 THEN ( 37 ) * 61 END ) THEN 51 + - MAX( DISTINCT + 81 ) * 7 ELSE NULL END * + 99 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL + COALESCE ( + + 0, - 17 * + 25 * + 66, 21 ) + - - CASE + 5 WHEN + ( CASE 55 WHEN CAST ( + 85 AS REAL ) THEN NULL WHEN 95 THEN ( 37 ) * 61 END ) THEN 51 + - MAX ( DISTINCT + 81 ) * 7 ELSE NULL END * + 99 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8378
SELECT - + 30 * - CAST( + - 28 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT - + 30 * - CAST ( + - 28 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT DISTINCT + + 62 + + COUNT( * ) * + - 78 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT + + 62 + + COUNT ( * ) * + - 78 AS col2
----
-16

query I rowsort
SELECT ALL + + 21 AS col0
----
21

query I rowsort
SELECT - 99 - 80 * + COALESCE ( 46, 52 * + 96 ) AS col1
----
-3779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8382
SELECT - COUNT( * ) * + - NULLIF ( + 21, - - 59 ) * - CAST( - 92 AS SIGNED ) + - ( + - 79 ) * - 36 AS col2
----
-912

skipif mysql # not compatible
query I rowsort label-8382
SELECT - COUNT ( * ) * + - NULLIF ( + 21, - - 59 ) * - CAST ( - 92 AS INTEGER ) + - ( + - 79 ) * - 36 AS col2
----
-912

query I rowsort
SELECT + 82 * + 88 * + 80 AS col0
----
577280

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT + CASE 21 WHEN - 94 THEN NULL WHEN + 79 THEN + COUNT( * ) + + 85 WHEN + 67 + + + NULLIF ( - 84, 21 + 81 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8384
SELECT + CASE 21 WHEN - 94 THEN NULL WHEN + 79 THEN + COUNT ( * ) + + 85 WHEN + 67 + + + NULLIF ( - 84, 21 + 81 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ALL + 64 * 56 + + + COUNT( * )
----
3585

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + 64 * 56 + + + COUNT ( * )
----
3585

query I rowsort
SELECT ALL 70 * - + 26 AS col1
----
-1820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8387
SELECT DISTINCT 45 * + CAST( - CASE + 2 WHEN - - 94 + + 49 THEN NULL WHEN - 68 * - 46 DIV + 70 * + CASE ( ( - ( + ( - 89 ) ) ) ) WHEN 10 * 40 + - 32 THEN 57 * 61 + + 37 * 28 END + COUNT( DISTINCT 63 + + 24 ) * + 92 THEN + 79 * 64 ELSE 83 - 5 END AS SIGNED ) + - ( + 81 - - 55 DIV + ( + COUNT( DISTINCT - 8 ) * 58 ) ) * 33 col1
----
-6183

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT 45 * + CAST ( - CASE + 2 WHEN - - 94 + + 49 THEN NULL WHEN - 68 * - 46 / + 70 * + CASE ( ( - ( + ( - 89 ) ) ) ) WHEN 10 * 40 + - 32 THEN 57 * 61 + + 37 * 28 END + COUNT ( DISTINCT 63 + + 24 ) * + 92 THEN + 79 * 64 ELSE 83 - 5 END AS INTEGER ) + - ( + 81 - - 55 / + ( + COUNT ( DISTINCT - 8 ) * 58 ) ) * 33 col1
----
-6183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8388
SELECT DISTINCT - 71 * + + 8 * - 73 * + NULLIF ( 47, + - 24 - + 40 DIV 70 * + - 92 ) * - 41 + + NULLIF ( SUM( + CASE 78 WHEN 70 THEN + 5 * - 66 + + 5 WHEN - 12 THEN - 3 + 94 ELSE - 48 END ) + 88, 65 ) * COUNT( * ) - + 60 DIV + CAST( + COUNT( * ) * 60 AS SIGNED ) AS col1
----
-79901089

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT - 71 * + + 8 * - 73 * + NULLIF ( 47, + - 24 - + 40 / 70 * + - 92 ) * - 41 + + NULLIF ( SUM ( + CASE 78 WHEN 70 THEN + 5 * - 66 + + 5 WHEN - 12 THEN - 3 + 94 ELSE - 48 END ) + 88, 65 ) * COUNT ( * ) - + 60 / + CAST ( + COUNT ( * ) * 60 AS INTEGER ) AS col1
----
-79901089

query I rowsort
SELECT ALL - NULLIF ( - 71, - 43 ) * + + 58 - + + ( + 61 ) + + 17
----
4074

query I rowsort
SELECT + + ( 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT - COUNT( * ) * + 64
----
-64

skipif mysql # not compatible
query I rowsort label-8391
SELECT - COUNT ( * ) * + 64
----
-64

query I rowsort
SELECT NULLIF ( - - 54, 82 + - - 6 )
----
54

query II rowsort
SELECT + 83 + - ( - 63 ) AS col2, - 68 AS col0
----
146
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT + NULLIF ( + 10, + + 71 ) * - CASE + - ( - SUM( + 44 ) ) WHEN CASE - - 10 WHEN + 11 / 46 THEN NULL WHEN 91 * COUNT( 16 ) THEN - 90 + - 89 ELSE COALESCE ( + 66, 78 ) END + 84 THEN - 76 * - 58 + - 15 ELSE 61 * + COALESCE ( 43 * 20, - 59 + 21 ) + + 47 * 54 END + + 26
----
-549954

skipif mysql # not compatible
query I rowsort label-8394
SELECT + NULLIF ( + 10, + + 71 ) * - CASE + - ( - SUM ( + 44 ) ) WHEN CASE - - 10 WHEN + 11 / 46 THEN NULL WHEN 91 * COUNT ( 16 ) THEN - 90 + - 89 ELSE COALESCE ( + 66, 78 ) END + 84 THEN - 76 * - 58 + - 15 ELSE 61 * + COALESCE ( 43 * 20, - 59 + 21 ) + + 47 * 54 END + + 26
----
-549954

query I rowsort
SELECT + 65 - - 72 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT COUNT( * ) * 75 + - 30 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8396
SELECT COUNT ( * ) * 75 + - 30 AS col2
----
45

query I rowsort
SELECT ALL - 83 * + 92 * + - 99 - - 13 AS col2
----
755977

query I rowsort
SELECT + ( - + 82 )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8399
SELECT ALL COUNT( * ) DIV - MAX( - + 81 ) * + 51
----
0

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL COUNT ( * ) / - MAX ( - + 81 ) * + 51
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT ALL - CAST( NULL AS SIGNED ) * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL - CAST ( NULL AS INTEGER ) * - 70
----
NULL

query I rowsort
SELECT + 75 * + - 78 AS col1
----
-5850

query I rowsort
SELECT - 81 + + 83
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8403
SELECT - 57 + + MIN( + - 95 ) * + + ( - 30 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8403
SELECT - 57 + + MIN ( + - 95 ) * + + ( - 30 ) * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT MIN( - - 77 ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8404
SELECT MIN ( - - 77 ) AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8405
SELECT DISTINCT 68 + - + 32 * + + 48 * + 43 DIV - COUNT( * ) AS col0
----
66116

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT 68 + - + 32 * + + 48 * + 43 / - COUNT ( * ) AS col0
----
66116

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL ( COUNT( * ) ) + + 72
----
73

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL ( COUNT ( * ) ) + + 72
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT MIN( + 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8407
SELECT MIN ( + 61 ) AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT DISTINCT + 62 * - CAST( - AVG ( + 70 ) AS SIGNED )
----
4340

skipif mysql # not compatible
query I rowsort label-8408
SELECT DISTINCT + 62 * - CAST ( - AVG ( + 70 ) AS INTEGER )
----
4340

query II rowsort
SELECT ALL - 4 + - + 32 * 15 AS col0, 77 + + 68
----
-484
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT - + CAST( NULL AS SIGNED ) * + CAST( 39 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT - + CAST ( NULL AS INTEGER ) * + CAST ( 39 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT - 97 + COUNT( * ) - + ( + - 68 ) * ( - 44 ) / - COALESCE ( + 80, + 76 * + 38 ) * CASE WHEN + 3 IS NULL THEN - 41 END + + COUNT( * ) + NULLIF ( + 96, 10 ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT - 97 + COUNT ( * ) - + ( + - 68 ) * ( - 44 ) / - COALESCE ( + 80, + 76 * + 38 ) * CASE WHEN + 3 IS NULL THEN - 41 END + + COUNT ( * ) + NULLIF ( + 96, 10 ) * - 65
----
NULL

query I rowsort
SELECT - 67 - + - 78 AS col1
----
11

query I rowsort
SELECT DISTINCT + 12 * + 43
----
516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8414
SELECT ALL + - SUM( 9 ) DIV + 77 - - - 86 + 71 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL + - SUM ( 9 ) / + 77 - - - 86 + 71 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT ALL + MIN( DISTINCT - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL + MIN ( DISTINCT - 41 )
----
-41

query I rowsort
SELECT + NULLIF ( + 50, - 21 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL - ( + CASE + COALESCE ( - + 57, - - 89 ) WHEN 41 THEN 0 * + - COUNT( * ) ELSE + + 8 END ) * - NULLIF ( 95, + COUNT( DISTINCT - COALESCE ( - 84, - 35 * - 24 ) ) )
----
760

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL - ( + CASE + COALESCE ( - + 57, - - 89 ) WHEN 41 THEN 0 * + - COUNT ( * ) ELSE + + 8 END ) * - NULLIF ( 95, + COUNT ( DISTINCT - COALESCE ( - 84, - 35 * - 24 ) ) )
----
760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8418
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT - + COALESCE ( - + SUM( + 53 ), + - 33 )
----
53

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT - + COALESCE ( - + SUM ( + 53 ), + - 33 )
----
53

query I rowsort
SELECT ALL - + CASE WHEN NULL IS NOT NULL THEN + 53 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8421
SELECT CAST( 11 AS SIGNED ) + - + 62 + 77 + + 89 AS col0, + COUNT( * )
----
115
1

skipif mysql # not compatible
query II rowsort label-8421
SELECT CAST ( 11 AS INTEGER ) + - + 62 + 77 + + 89 AS col0, + COUNT ( * )
----
115
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8422
SELECT ALL + 77 - - NULLIF ( + ( - + CAST( 3 AS SIGNED ) ), CASE COUNT( * ) WHEN + + 66 THEN + CASE - 37 WHEN - COUNT( * ) * COUNT( * ) THEN - 59 END + 52 WHEN COUNT( * ) THEN NULL END ) * 60
----
-103

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL + 77 - - NULLIF ( + ( - + CAST ( 3 AS INTEGER ) ), CASE COUNT ( * ) WHEN + + 66 THEN + CASE - 37 WHEN - COUNT ( * ) * COUNT ( * ) THEN - 59 END + 52 WHEN COUNT ( * ) THEN NULL END ) * 60
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8423
SELECT - 0 DIV + 94 * NULLIF ( + - 27, 67 ) DIV + + 78 + - + COALESCE ( - - SUM( - 44 ), - 68 * 7 ) DIV ( 56 - - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT - 0 / + 94 * NULLIF ( + - 27, 67 ) / + + 78 + - + COALESCE ( - - SUM ( - 44 ), - 68 * 7 ) / ( 56 - - 72 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8424
SELECT - 83 * - 61 + + COUNT( * ) - 90 * - COUNT( * ) col1, + ( - 44 ) AS col0
----
5154
-44

skipif mysql # not compatible
query II rowsort label-8424
SELECT - 83 * - 61 + + COUNT ( * ) - 90 * - COUNT ( * ) col1, + ( - 44 ) AS col0
----
5154
-44

query II rowsort
SELECT 32, - 67 AS col0
----
32
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT 24 * 75 * NULLIF ( + SUM( 32 ), + 71 ) + - 2 + COUNT( * ) AS col0
----
57599

skipif mysql # not compatible
query I rowsort label-8426
SELECT 24 * 75 * NULLIF ( + SUM ( 32 ), + 71 ) + - 2 + COUNT ( * ) AS col0
----
57599

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8427
SELECT NULLIF ( - 50, - 28 ) * + - CAST( NULL AS DECIMAL ), + 6 * 38 AS col1
----
NULL
228

skipif mysql # not compatible
query II rowsort label-8427
SELECT NULLIF ( - 50, - 28 ) * + - CAST ( NULL AS REAL ), + 6 * 38 AS col1
----
NULL
228

query I rowsort
SELECT DISTINCT + 43 * ( 18 )
----
774

query I rowsort
SELECT ALL + 25 * + 43
----
1075

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ALL - SUM( DISTINCT 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL - SUM ( DISTINCT 65 ) AS col1
----
-65

query II rowsort
SELECT + 43 AS col2, + 70 col0
----
43
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT DISTINCT COUNT( * ) + + 88
----
89

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT COUNT ( * ) + + 88
----
89

query I rowsort
SELECT ALL 63 + - 42 + - 33 AS col2
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8434
SELECT 62 * CAST( NULL AS SIGNED ) - + + 75 * - - CASE + 96 WHEN - + COUNT( * ) * + 46 THEN COUNT( * ) END * - CAST( - - 73 AS SIGNED ) * - + 4 + + MIN( DISTINCT 51 + + 35 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT 62 * CAST ( NULL AS INTEGER ) - + + 75 * - - CASE + 96 WHEN - + COUNT ( * ) * + 46 THEN COUNT ( * ) END * - CAST ( - - 73 AS INTEGER ) * - + 4 + + MIN ( DISTINCT 51 + + 35 ) AS col2
----
NULL

query II rowsort
SELECT 61 AS col2, - 29 + 17 AS col2
----
61
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL - 99 + - 91 * - - SUM( + - 64 )
----
5725

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - 99 + - 91 * - - SUM ( + - 64 )
----
5725

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT DISTINCT 51 + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT 51 + - COUNT ( * )
----
50

query II rowsort
SELECT ALL 68 AS col2, 19 * - + 6
----
68
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT ALL - - 37 + - 99 + - - COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - - 37 + - 99 + - - COUNT ( * ) AS col1
----
-61

query I rowsort
SELECT + 6 - + + ( - 13 ) AS col1
----
19

query I rowsort
SELECT ALL 76 * 99 * - - 91 AS col1
----
684684

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT DISTINCT - 44 AS col2, 87 * COUNT( * ) - 40
----
-44
47

skipif mysql # not compatible
query II rowsort label-8442
SELECT DISTINCT - 44 AS col2, 87 * COUNT ( * ) - 40
----
-44
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8443
SELECT - + 18 AS col1, + COUNT( * ) + + + 16 + + - 38 + - 7 * - 95 DIV - 95 + - 90 col1
----
-18
-118

skipif mysql # not compatible
query II rowsort label-8443
SELECT - + 18 AS col1, + COUNT ( * ) + + + 16 + + - 38 + - 7 * - 95 / - 95 + - 90 col1
----
-18
-118

query II rowsort
SELECT + 92 AS col0, 99 AS col1
----
92
99

query I rowsort
SELECT ALL 98 * - 48 AS col0
----
-4704

query I rowsort
SELECT ALL 3 + + - 31 * 73 AS col1
----
-2260

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8447
SELECT 10 + - ( - + 57 ) + - + COUNT( * ) DIV + 2 * - 26 AS col0, + COUNT( * ) - - 62
----
67
63

skipif mysql # not compatible
query II rowsort label-8447
SELECT 10 + - ( - + 57 ) + - + COUNT ( * ) / + 2 * - 26 AS col0, + COUNT ( * ) - - 62
----
67
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT MIN( ALL - + 13 ) * - - COUNT( * ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8448
SELECT MIN ( ALL - + 13 ) * - - COUNT ( * ) AS col2
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-8449
SELECT DISTINCT - 69 AS col1, MAX( DISTINCT - 67 ) col2
----
-69
-67

skipif mysql # not compatible
query II rowsort label-8449
SELECT DISTINCT - 69 AS col1, MAX ( DISTINCT - 67 ) col2
----
-69
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT ALL 69 - - + CASE + 58 WHEN + 32 THEN NULL ELSE - COUNT( * ) END
----
68

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL 69 - - + CASE + 58 WHEN + 32 THEN NULL ELSE - COUNT ( * ) END
----
68

onlyif mysql # aggregate syntax: 
query III rowsort label-8451
SELECT - 49 AS col0, ( - - ( 5 ) ) * - MIN( DISTINCT + ( - ( + 71 ) ) ) * 95 AS col0, - 90 - 82 AS col0
----
-49
33725
-172

skipif mysql # not compatible
query III rowsort label-8451
SELECT - 49 AS col0, ( - - ( 5 ) ) * - MIN ( DISTINCT + ( - ( + 71 ) ) ) * 95 AS col0, - 90 - 82 AS col0
----
-49
33725
-172

query I rowsort
SELECT ( + 81 ) + 4
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8453
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, SUM( 76 ) * - - CAST( COALESCE ( - + 54, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - + COUNT( * ) ) AS SIGNED )
----
NULL
-4104

skipif mysql # not compatible
query II rowsort label-8453
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, SUM ( 76 ) * - - CAST ( COALESCE ( - + 54, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - + COUNT ( * ) ) AS INTEGER )
----
NULL
-4104

query I rowsort
SELECT 13 * + - ( 2 ) AS col0
----
-26

query I rowsort
SELECT - 58 * - - 58 + - - 73 * 35
----
-809

query I rowsort
SELECT ALL - - 40 * 15 + + - 99 * + 81 AS col2
----
-7419

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT - COALESCE ( + 12, + - 82 ) * - ( + ( + - SUM( 67 ) ) ) - + + 32
----
-836

skipif mysql # not compatible
query I rowsort label-8457
SELECT - COALESCE ( + 12, + - 82 ) * - ( + ( + - SUM ( 67 ) ) ) - + + 32
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT + - COUNT( * ) * - + 89 + + - COUNT( * ) + - ( - 11 ) + + 10 * - 74
----
-641

skipif mysql # not compatible
query I rowsort label-8458
SELECT + - COUNT ( * ) * - + 89 + + - COUNT ( * ) + - ( - 11 ) + + 10 * - 74
----
-641

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT DISTINCT - + SUM( + - 93 ) col2
----
93

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT - + SUM ( + - 93 ) col2
----
93

query II rowsort
SELECT ALL - 2 * + + 29 AS col1, - 17
----
-58
-17

query I rowsort
SELECT 86 * 40 AS col0
----
3440

query I rowsort
SELECT ALL - ( + + 71 )
----
-71

query I rowsort
SELECT 30 * + 3 - - 99 AS col1
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8464
SELECT DISTINCT COUNT( * ) DIV - 77 AS col0, ( 76 ) + + 74
----
0
150

skipif mysql # not compatible
query II rowsort label-8464
SELECT DISTINCT COUNT ( * ) / - 77 AS col0, ( 76 ) + + 74
----
0
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT 86 + - COUNT( DISTINCT - 14 )
----
85

skipif mysql # not compatible
query I rowsort label-8465
SELECT 86 + - COUNT ( DISTINCT - 14 )
----
85

query I rowsort
SELECT ALL + NULLIF ( - 65, - 38 * - + 21 ) + 39 * + 68 col1
----
2587

onlyif mysql # DIV for integer division: 
query I rowsort label-8467
SELECT 31 DIV - 74 * + 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8467
SELECT 31 / - 74 * + 9 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT ALL - CASE 47 WHEN - CASE 87 WHEN + ( + + 28 ) * + 9 + COUNT( * ) THEN - 16 WHEN AVG ( + + 35 ) * + - COUNT( * ) + + ( 51 ) THEN 46 ELSE NULL END * - 74 THEN NULL WHEN COUNT( DISTINCT 36 ) THEN CASE - ( 41 ) WHEN 59 THEN NULL WHEN + 16 THEN 19 + 65 END / 14 ELSE NULL END + 41 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL - CASE 47 WHEN - CASE 87 WHEN + ( + + 28 ) * + 9 + COUNT ( * ) THEN - 16 WHEN AVG ( + + 35 ) * + - COUNT ( * ) + + ( 51 ) THEN 46 ELSE NULL END * - 74 THEN NULL WHEN COUNT ( DISTINCT 36 ) THEN CASE - ( 41 ) WHEN 59 THEN NULL WHEN + 16 THEN 19 + 65 END / 14 ELSE NULL END + 41 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT 2 + - 34
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT - COUNT( ALL 29 ) * + - 79 + 79
----
158

skipif mysql # not compatible
query I rowsort label-8470
SELECT - COUNT ( ALL 29 ) * + - 79 + 79
----
158

query I rowsort
SELECT 47 - + - 95 AS col1
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8472
SELECT ALL - CASE - + 45 WHEN + + 35 * + 5 + CASE - CAST( NULL AS DECIMAL ) WHEN - - 48 + - CASE - + COUNT( * ) WHEN + 72 THEN - 86 ELSE + MAX( + 60 ) END + 67 THEN 13 * 67 END THEN NULL ELSE - 18 + CASE - 18 WHEN - 42 THEN NULL ELSE + ( 63 ) / 36 END * CASE ( 76 ) * - 77 WHEN - 6 THEN NULL ELSE CAST( NULL AS SIGNED ) END END * + MIN( DISTINCT 39 * 27 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - CASE - + 45 WHEN + + 35 * + 5 + CASE - CAST ( NULL AS REAL ) WHEN - - 48 + - CASE - + COUNT ( * ) WHEN + 72 THEN - 86 ELSE + MAX ( + 60 ) END + 67 THEN 13 * 67 END THEN NULL ELSE - 18 + CASE - 18 WHEN - 42 THEN NULL ELSE + ( 63 ) / 36 END * CASE ( 76 ) * - 77 WHEN - 6 THEN NULL ELSE CAST ( NULL AS INTEGER ) END END * + MIN ( DISTINCT 39 * 27 ) col2
----
NULL

query II rowsort
SELECT ALL + 67 + - - 68, 27 * - ( + 59 ) AS col1
----
135
-1593

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL 10 + COUNT( * ) + COUNT( * ) * - COUNT( + COALESCE ( 13, - 23 * - - 92 ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL 10 + COUNT ( * ) + COUNT ( * ) * - COUNT ( + COALESCE ( 13, - 23 * - - 92 ) ) AS col2
----
10

query I rowsort
SELECT ALL - 95 * + NULLIF ( + 94, - 41 )
----
-8930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8476
SELECT ALL SUM( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 22 + ( - 86 )
----
-64

query I rowsort
SELECT 87 * 42 + - 83 AS col0
----
3571

query I rowsort
SELECT 46 + + COALESCE ( 72, ( 84 ) ) AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + 66 + 35 + - - 28 * - MAX( + 30 ) * + 70 - - CASE - COUNT( * ) WHEN + - 75 + - + 97 + - 98 * 42 * COUNT( * ) THEN 65 - + 50 * + 63 WHEN - COUNT( ALL + 38 ) THEN NULL END + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT + 66 + 35 + - - 28 * - MAX ( + 30 ) * + 70 - - CASE - COUNT ( * ) WHEN + - 75 + - + 97 + - 98 * 42 * COUNT ( * ) THEN 65 - + 50 * + 63 WHEN - COUNT ( ALL + 38 ) THEN NULL END + 76 AS col1
----
NULL

query I rowsort
SELECT + 40 * 90
----
3600

query II rowsort
SELECT ALL + 63 - 71 AS col0, 57
----
-8
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT + 6 DIV - NULLIF ( + 3, 74 DIV + - 37 + COALESCE ( 72, - 85 * - + 57 DIV 55 ) + + - 3 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8483
SELECT + 6 / - NULLIF ( + 3, 74 / + - 37 + COALESCE ( 72, - 85 * - + 57 / 55 ) + + - 3 ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8484
SELECT ALL MIN( + 66 ) DIV - - 10
----
6

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL MIN ( + 66 ) / - - 10
----
6

query I rowsort
SELECT + 15 + - - 2 * - 12 AS col2
----
-9

query I rowsort
SELECT DISTINCT + 19 * - 13 AS col2
----
-247

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL COUNT( * ) - - 7 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL COUNT ( * ) - - 7 AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8488
SELECT + CAST( - - AVG ( DISTINCT 80 ) AS SIGNED ) DIV + + 56
----
1

skipif mysql # not compatible
query I rowsort label-8488
SELECT + CAST ( - - AVG ( DISTINCT 80 ) AS INTEGER ) / + + 56
----
1

query III rowsort
SELECT + - 91 * 47 col2, - 75 AS col0, - + 27 AS col0
----
-4277
-75
-27

query I rowsort
SELECT + - 80 + - - 5
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT - + COUNT( * ) * 59 * + - 99 AS col0
----
5841

skipif mysql # not compatible
query I rowsort label-8491
SELECT - + COUNT ( * ) * 59 * + - 99 AS col0
----
5841

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT + + NULLIF ( ( 25 ), - + 31 ) + MIN( + + ( - - 30 ) ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8492
SELECT + + NULLIF ( ( 25 ), - + 31 ) + MIN ( + + ( - - 30 ) ) AS col2
----
55

query I rowsort
SELECT - 65 - - 0 + - 44 * - + 57
----
2443

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT ALL ( COUNT( * ) ), + 66 AS col0
----
1
66

skipif mysql # not compatible
query II rowsort label-8494
SELECT ALL ( COUNT ( * ) ), + 66 AS col0
----
1
66

query II rowsort
SELECT DISTINCT + 28 AS col2, 52 * COALESCE ( + 49, + - 19 )
----
28
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL - 1 * - ( + COUNT( * ) ) + - - MIN( - 89 ) * - 94 AS col0
----
8367

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - 1 * - ( + COUNT ( * ) ) + - - MIN ( - 89 ) * - 94 AS col0
----
8367

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8497
SELECT 61 DIV 17 + - 51 + - 72 * COUNT( * ) AS col1
----
-120

skipif mysql # not compatible
query I rowsort label-8497
SELECT 61 / 17 + - 51 + - 72 * COUNT ( * ) AS col1
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8498
SELECT CASE 39 WHEN - ( - COUNT( * ) ) * + + 28 / - CAST( + + 66 AS SIGNED ) * - 35 THEN + 38 WHEN COUNT( * ) THEN NULL WHEN + 5 THEN - 83 WHEN + 97 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8498
SELECT CASE 39 WHEN - ( - COUNT ( * ) ) * + + 28 / - CAST ( + + 66 AS INTEGER ) * - 35 THEN + 38 WHEN COUNT ( * ) THEN NULL WHEN + 5 THEN - 83 WHEN + 97 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT DISTINCT 87 * + CAST( 66 AS SIGNED ) * + 89 + + COALESCE ( - + 31, - 40 ) * - + 14 / - CASE - + 88 WHEN + - 19 THEN + + ( + CASE + 54 WHEN COUNT( * ) + 73 * + CASE 56 * + ( - MIN( 68 ) ) WHEN - 44 + + NULLIF ( 51, + 31 ) THEN - COALESCE ( MIN( DISTINCT + 14 ), + 73 * 11 ) WHEN 91 * + 11 + - 76 * 22 THEN - ( - COUNT( * ) ) + ( NULLIF ( + 13, 50 ) ) END THEN + 7 WHEN + 81 THEN 1 - 33 ELSE 48 END ) WHEN 77 THEN + COUNT( * ) + + 81 WHEN - COUNT( * ) THEN NULL END + - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT DISTINCT 87 * + CAST ( 66 AS INTEGER ) * + 89 + + COALESCE ( - + 31, - 40 ) * - + 14 / - CASE - + 88 WHEN + - 19 THEN + + ( + CASE + 54 WHEN COUNT ( * ) + 73 * + CASE 56 * + ( - MIN ( 68 ) ) WHEN - 44 + + NULLIF ( 51, + 31 ) THEN - COALESCE ( MIN ( DISTINCT + 14 ), + 73 * 11 ) WHEN 91 * + 11 + - 76 * 22 THEN - ( - COUNT ( * ) ) + ( NULLIF ( + 13, 50 ) ) END THEN + 7 WHEN + 81 THEN 1 - 33 ELSE 48 END ) WHEN 77 THEN + COUNT ( * ) + + 81 WHEN - COUNT ( * ) THEN NULL END + - 75
----
NULL

query I rowsort
SELECT ALL + ( + 0 ) * + 13 + 61 + 65 - - - 94 * - 92 + + 32 AS col0
----
8806

onlyif mysql # aggregate syntax: 
query II rowsort label-8501
SELECT + 89, 54 + + + COALESCE ( + 54, NULLIF ( + 2, - COUNT( * ) / - 7 + + 27 ) ) - - + 91 + COUNT( * ) * - 33 * + - 21 AS col2
----
89
892

skipif mysql # not compatible
query II rowsort label-8501
SELECT + 89, 54 + + + COALESCE ( + 54, NULLIF ( + 2, - COUNT ( * ) / - 7 + + 27 ) ) - - + 91 + COUNT ( * ) * - 33 * + - 21 AS col2
----
89
892

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8502
SELECT DISTINCT + CASE 6 WHEN + - AVG ( ALL 31 ) * - 28 THEN NULL ELSE CAST( NULL AS SIGNED ) + + - 25 * + 87 END AS col1, CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8502
SELECT DISTINCT + CASE 6 WHEN + - AVG ( ALL 31 ) * - 28 THEN NULL ELSE CAST ( NULL AS INTEGER ) + + - 25 * + 87 END AS col1, CAST ( NULL AS REAL )
----
NULL
NULL

query I rowsort
SELECT + 46 * 40 AS col2
----
1840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8504
SELECT 99 * - 40 + + CAST( NULL AS SIGNED ), - 77 * COUNT( * ) AS col2
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-8504
SELECT 99 * - 40 + + CAST ( NULL AS INTEGER ), - 77 * COUNT ( * ) AS col2
----
NULL
-77

query I rowsort
SELECT ALL 23 * - 4 + - + 44 + 14 col2
----
-122

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT - 16 * - NULLIF ( - + ( - - 5 ), - + 91 ) * + 79 * - - 36 + - 80 + + COUNT( * ) col1, - COUNT( * ) col0
----
-227599
-1

skipif mysql # not compatible
query II rowsort label-8506
SELECT - 16 * - NULLIF ( - + ( - - 5 ), - + 91 ) * + 79 * - - 36 + - 80 + + COUNT ( * ) col1, - COUNT ( * ) col0
----
-227599
-1

query I rowsort
SELECT ALL + 63 * 44
----
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT DISTINCT - COALESCE ( 48, - + COUNT( * ) ) * - 17 + + 76 AS col1
----
892

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT - COALESCE ( 48, - + COUNT ( * ) ) * - 17 + + 76 AS col1
----
892

query I rowsort
SELECT + ( - 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8510
SELECT - SUM( - - 33 ) DIV 33 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8510
SELECT - SUM ( - - 33 ) / 33 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL + 82 * COUNT( * ) - + - ( + - 69 )
----
13

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL + 82 * COUNT ( * ) - + - ( + - 69 )
----
13

query I rowsort
SELECT - 80 * 90
----
-7200

query I rowsort
SELECT - - NULLIF ( 39, 52 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8514
SELECT ALL + 89 AS col0, + COUNT( * ) col0
----
89
1

skipif mysql # not compatible
query II rowsort label-8514
SELECT ALL + 89 AS col0, + COUNT ( * ) col0
----
89
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8515
SELECT - COUNT( * ) AS col1, + 51 col2
----
-1
51

skipif mysql # not compatible
query II rowsort label-8515
SELECT - COUNT ( * ) AS col1, + 51 col2
----
-1
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8516
SELECT ALL 88 AS col1, - CAST( - COUNT( * ) AS SIGNED ) DIV COUNT( * )
----
88
1

skipif mysql # not compatible
query II rowsort label-8516
SELECT ALL 88 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) / COUNT ( * )
----
88
1

query I rowsort
SELECT DISTINCT - - 99 * + 4
----
396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8518
SELECT DISTINCT CAST( 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-8518
SELECT DISTINCT CAST ( 32 AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT + - 95 * + CASE + - 28 WHEN + ( - 36 ) * + 51 THEN - COUNT( * ) * + - 83 * + 32 + 5 * + 0 + 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8519
SELECT + - 95 * + CASE + - 28 WHEN + ( - 36 ) * + 51 THEN - COUNT ( * ) * + - 83 * + 32 + 5 * + 0 + 68 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8520
SELECT DISTINCT - CAST( + - MIN( - 86 ) AS SIGNED ) * COUNT( * ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT - CAST ( + - MIN ( - 86 ) AS INTEGER ) * COUNT ( * ) col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT - - MIN( 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8521
SELECT - - MIN ( 73 ) AS col2
----
73

query II rowsort
SELECT - - ( 94 ) + - 70 AS col1, - 51 + + 38
----
24
-13

query I rowsort
SELECT - 79 * ( - 30 ) AS col1
----
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT + COUNT( * ) + + 27 + 26
----
54

skipif mysql # not compatible
query I rowsort label-8524
SELECT + COUNT ( * ) + + 27 + 26
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8525
SELECT ALL CAST( 77 AS SIGNED ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL CAST ( 77 AS INTEGER ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT DISTINCT + 7 + - - NULLIF ( - 66, - - COUNT( * ) ) - ( + 76 ) + - 18
----
-153

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT + 7 + - - NULLIF ( - 66, - - COUNT ( * ) ) - ( + 76 ) + - 18
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8527
SELECT ALL 12, COALESCE ( 26, - 76 ) * - CAST( - - 43 AS SIGNED ) col2
----
12
-1118

skipif mysql # not compatible
query II rowsort label-8527
SELECT ALL 12, COALESCE ( 26, - 76 ) * - CAST ( - - 43 AS INTEGER ) col2
----
12
-1118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8528
SELECT DISTINCT + 47 AS col0, - SUM( DISTINCT - 2 ) DIV 86 * - 85 - + 41 - 83 AS col1
----
47
-124

skipif mysql # not compatible
query II rowsort label-8528
SELECT DISTINCT + 47 AS col0, - SUM ( DISTINCT - 2 ) / 86 * - 85 - + 41 - 83 AS col1
----
47
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL 12 + - 95 + + COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL 12 + - 95 + + COUNT ( * ) AS col0
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8530
SELECT ALL + ( + - 1 ) DIV - 1 + 78 + - - 48 DIV ( COUNT( * ) )
----
127

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL + ( + - 1 ) / - 1 + 78 + - - 48 / ( COUNT ( * ) )
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8531
SELECT - CAST( CAST( COUNT( ALL - 0 ) AS SIGNED ) AS SIGNED ) - 37 * + 84 - 3 AS col2, 64 * ( + 76 ) * - 42 AS col2
----
-3112
-204288

skipif mysql # not compatible
query II rowsort label-8531
SELECT - CAST ( CAST ( COUNT ( ALL - 0 ) AS INTEGER ) AS INTEGER ) - 37 * + 84 - 3 AS col2, 64 * ( + 76 ) * - 42 AS col2
----
-3112
-204288

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8532
SELECT CAST( 54 AS SIGNED ) AS col0, 85
----
54
85

skipif mysql # not compatible
query II rowsort label-8532
SELECT CAST ( 54 AS INTEGER ) AS col0, 85
----
54
85

query I rowsort
SELECT 66 * - 15 - + 88
----
-1078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8534
SELECT CAST( - - 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-8534
SELECT CAST ( - - 18 AS INTEGER ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8535
SELECT - 14 DIV - - 32 + NULLIF ( + - 16, + + 11 ) + ( COUNT( * ) ) * COALESCE ( - + 76, - 85 + + 85 + + - 55 )
----
-92

skipif mysql # not compatible
query I rowsort label-8535
SELECT - 14 / - - 32 + NULLIF ( + - 16, + + 11 ) + ( COUNT ( * ) ) * COALESCE ( - + 76, - 85 + + 85 + + - 55 )
----
-92

query I rowsort
SELECT DISTINCT 46 * + + 5 AS col1
----
230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8537
SELECT + COUNT( * ) - ( - COUNT( * ) ) - + CASE WHEN + CAST( + + ( - COUNT( + 65 ) ) AS SIGNED ) IS NOT NULL THEN 45 * + 79 - - - 10 + - MIN( 39 ) - 70 WHEN ( NULL ) NOT BETWEEN ( MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + - 80 ) AND NULL THEN + 1 + ( - COUNT( * ) ) ELSE - 22 END * - 94
----
322986

skipif mysql # not compatible
query I rowsort label-8537
SELECT + COUNT ( * ) - ( - COUNT ( * ) ) - + CASE WHEN + CAST ( + + ( - COUNT ( + 65 ) ) AS INTEGER ) IS NOT NULL THEN 45 * + 79 - - - 10 + - MIN ( 39 ) - 70 WHEN ( NULL ) NOT BETWEEN ( MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 80 ) AND NULL THEN + 1 + ( - COUNT ( * ) ) ELSE - 22 END * - 94
----
322986

onlyif mysql # DIV for integer division: 
query I rowsort label-8538
SELECT + 4 * 6 DIV + + 36
----
0

skipif mysql # not compatible
query I rowsort label-8538
SELECT + 4 * 6 / + + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT COUNT( * ) * - 31 + + 1
----
-30

skipif mysql # not compatible
query I rowsort label-8539
SELECT COUNT ( * ) * - 31 + + 1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8540
SELECT ALL + 37 DIV - 73 - + 66 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL + 37 / - 73 - + 66 AS col1
----
-66

query I rowsort
SELECT + 39 * - 99 AS col1
----
-3861

query I rowsort
SELECT + 56 + + 66
----
122

query I rowsort
SELECT ALL + 32 * ( 39 ) AS col2
----
1248

query I rowsort
SELECT 41 * 5 + + ( 62 )
----
267

query I rowsort
SELECT ALL - 22 * + 87 - ( + 64 ) * - 47 + + 25 - + 54 AS col1
----
1065

onlyif mysql # DIV for integer division: 
query I rowsort label-8546
SELECT DISTINCT + 18 DIV + 86 * + 62 * 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT + 18 / + 86 * + 62 * 54 AS col0
----
0

query I rowsort
SELECT - ( - 31 ) + 67
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL - 85 * 29 * + SUM( + 47 ) * + 58 + + + 24
----
-6719566

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL - 85 * 29 * + SUM ( + 47 ) * + 58 + + + 24
----
-6719566

query I rowsort
SELECT 85 + - + 30 * + 11
----
-245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8550
SELECT + COUNT( * ) DIV 31 * + 20 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8550
SELECT + COUNT ( * ) / 31 * + 20 AS col0
----
0

query I rowsort
SELECT 16 * - + 26 AS col1
----
-416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT ALL - CAST( - + 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL - CAST ( - + 17 AS INTEGER )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) / - + CAST( NULL AS SIGNED ) + + 64 * + 74 + ( + - MIN( ALL + 82 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) / - + CAST ( NULL AS INTEGER ) + + 64 * + 74 + ( + - MIN ( ALL + 82 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL + + ( + 33 ) / MIN( + 47 ) * 71 / - - 94 * CASE - 86 WHEN - 66 / + - 7 THEN + ( 16 ) WHEN - CASE 95 WHEN - 60 * + 11 THEN - COUNT( * ) ELSE NULL END THEN 41 * 70 - COALESCE ( 60 + + COUNT( * ), 54 * 53 + 30 * COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL + + ( + 33 ) / MIN ( + 47 ) * 71 / - - 94 * CASE - 86 WHEN - 66 / + - 7 THEN + ( 16 ) WHEN - CASE 95 WHEN - 60 * + 11 THEN - COUNT ( * ) ELSE NULL END THEN 41 * 70 - COALESCE ( 60 + + COUNT ( * ), 54 * 53 + 30 * COUNT ( * ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT SUM( ALL - 10 ) + + COUNT( - - 18 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8555
SELECT SUM ( ALL - 10 ) + + COUNT ( - - 18 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT DISTINCT + MIN( + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT + MIN ( + 96 )
----
96

query I rowsort
SELECT DISTINCT + - 21 + 2
----
-19

query I rowsort
SELECT ALL - 8 + 50 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT MIN( + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-8559
SELECT MIN ( + 6 )
----
6

query I rowsort
SELECT ALL + 28 + 18
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8561
SELECT CAST( + 30 AS SIGNED ) + NULLIF ( - 51, SUM( 35 ) * - COUNT( * ) + 38 + + NULLIF ( - + COUNT( * ), 60 ) + + 94 + 46 + + 68 * 43 * CAST( NULL AS SIGNED ) ) + 52 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-8561
SELECT CAST ( + 30 AS INTEGER ) + NULLIF ( - 51, SUM ( 35 ) * - COUNT ( * ) + 38 + + NULLIF ( - + COUNT ( * ), 60 ) + + 94 + 46 + + 68 * 43 * CAST ( NULL AS INTEGER ) ) + 52 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT + - 29 + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT + - 29 + COUNT ( * )
----
-28

query II rowsort
SELECT 20 col1, 76 + ( - - 96 ) + - - 19 AS col2
----
20
191

query I rowsort
SELECT 2 + - 21 + 2 + + 1 AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8565
SELECT 11 + + NULLIF ( + 85, - + CAST( NULL AS SIGNED ) * + COUNT( * ) ) + + - COUNT( * ) * - 75 DIV + 14 + + + 18 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-8565
SELECT 11 + + NULLIF ( + 85, - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) ) + + - COUNT ( * ) * - 75 / + 14 + + + 18 AS col0
----
119

query I rowsort
SELECT 47 + + + 4 AS col1
----
51

query I rowsort
SELECT DISTINCT 58 + + 6 * + - 89 AS col0
----
-476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8568
SELECT ALL CAST( NULL AS SIGNED ) - - CASE 0 WHEN + 97 / - - 31 - - 69 THEN COUNT( * ) / COUNT( * ) * - 96 * 60 - NULLIF ( - - ( - CASE + 40 WHEN - 75 THEN COUNT( * ) + + 53 / - 5 WHEN 5 + + 78 * - 83 THEN + 25 / 3 + + 44 ELSE 11 END ), + ( 24 ) / - 29 ) + - 45 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL CAST ( NULL AS INTEGER ) - - CASE 0 WHEN + 97 / - - 31 - - 69 THEN COUNT ( * ) / COUNT ( * ) * - 96 * 60 - NULLIF ( - - ( - CASE + 40 WHEN - 75 THEN COUNT ( * ) + + 53 / - 5 WHEN 5 + + 78 * - 83 THEN + 25 / 3 + + 44 ELSE 11 END ), + ( 24 ) / - 29 ) + - 45 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT DISTINCT - CAST( + + 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - CAST ( + + 69 AS INTEGER )
----
-69

query I rowsort
SELECT COALESCE ( + - 49, - 9 ) * 10 col1
----
-490

query I rowsort
SELECT ALL 87 * + 70
----
6090

query I rowsort
SELECT ( - 2 ) + + 16 AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT ALL + CAST( NULL AS SIGNED ) - + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL + CAST ( NULL AS INTEGER ) - + 34 AS col0
----
NULL

query I rowsort
SELECT 30 * 4 col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT 65 * + CASE - + 94 WHEN + + COUNT( * ) THEN + 12 * ( + 67 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT 65 * + CASE - + 94 WHEN + + COUNT ( * ) THEN + 12 * ( + 67 ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 51 * - 68 * + ( - 73 ) AS col2
----
253164

query I rowsort
SELECT 72 / - - CASE - 80 WHEN 63 THEN + 30 * + + 2 * - - 18 / ( + 6 ) WHEN + + 66 THEN NULL END * 62 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT ALL 27 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL 27 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL + MIN( - 85 ) * - COALESCE ( - 52, 33 ) * + + CASE - 56 WHEN + 39 * + 13 THEN + 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + MIN ( - 85 ) * - COALESCE ( - 52, 33 ) * + + CASE - 56 WHEN + 39 * + 13 THEN + 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT MIN( + 22 ) * + 84 AS col0
----
1848

skipif mysql # not compatible
query I rowsort label-8580
SELECT MIN ( + 22 ) * + 84 AS col0
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT + SUM( 82 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-8581
SELECT + SUM ( 82 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL - 56 * CASE 36 WHEN + SUM( ALL - + 74 ) THEN + 92 + 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL - 56 * CASE 36 WHEN + SUM ( ALL - + 74 ) THEN + 92 + 44 END
----
NULL

query I rowsort
SELECT DISTINCT - - 24 AS col1
----
24

query I rowsort
SELECT ALL - ( + 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8585
SELECT 85 + - CAST( + 29 AS SIGNED ) - + 14 / - + 30 + + SUM( DISTINCT + ( - 5 ) ) * + CAST( NULL AS DECIMAL ) + - 11 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8585
SELECT 85 + - CAST ( + 29 AS INTEGER ) - + 14 / - + 30 + + SUM ( DISTINCT + ( - 5 ) ) * + CAST ( NULL AS REAL ) + - 11 * + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 0 * + - 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT COUNT( * ) DIV + 31 + + + COUNT( DISTINCT ( + 56 ) ) DIV - - COALESCE ( + + 89, 62, + - 44 )
----
0

skipif mysql # not compatible
query I rowsort label-8587
SELECT COUNT ( * ) / + 31 + + + COUNT ( DISTINCT ( + 56 ) ) / - - COALESCE ( + + 89, 62, + - 44 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL 69 + + + COUNT( * ) - 87 * 93
----
-8021

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL 69 + + + COUNT ( * ) - 87 * 93
----
-8021

query I rowsort
SELECT 33 - - 83 AS col0
----
116

query I rowsort
SELECT ALL + 29 + - NULLIF ( + 24, - + 21 + - + 35 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8591
SELECT ALL + + 6 * + 50 + + 15 + + CAST( NULL AS SIGNED ) * + 70 * - - CASE - 76 WHEN - 21 THEN 53 * + 95 + - - NULLIF ( 51, + COUNT( CASE - 67 WHEN 68 THEN - CASE 89 WHEN + COALESCE ( 37, 47 + + COALESCE ( + ( + 31 ), 78 * + 66 ), + 27 / 24 ) THEN NULL ELSE + 18 END ELSE - 49 END ) * COUNT( * ) ) + 11 * 22 WHEN COUNT( + 64 ) THEN NULL END * MIN( - 23 + 55 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL + + 6 * + 50 + + 15 + + CAST ( NULL AS INTEGER ) * + 70 * - - CASE - 76 WHEN - 21 THEN 53 * + 95 + - - NULLIF ( 51, + COUNT ( CASE - 67 WHEN 68 THEN - CASE 89 WHEN + COALESCE ( 37, 47 + + COALESCE ( + ( + 31 ), 78 * + 66 ), + 27 / 24 ) THEN NULL ELSE + 18 END ELSE - 49 END ) * COUNT ( * ) ) + 11 * 22 WHEN COUNT ( + 64 ) THEN NULL END * MIN ( - 23 + 55 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL - 49 + + 20 + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL - 49 + + 20 + - COUNT ( * )
----
-30

query II rowsort
SELECT DISTINCT + 28, - 8 + 91 * + 61 + - 2 col0
----
28
5541

query I rowsort
SELECT ALL + 79 + - + 16 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT 33 / + CASE + 74 WHEN - COUNT( * ) * + MIN( + 35 ) THEN NULL WHEN - 86 THEN 16 + - - 53 + + NULLIF ( - + 37, - MAX( - 99 ) * - 80 + - 32 ) END + - 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8595
SELECT 33 / + CASE + 74 WHEN - COUNT ( * ) * + MIN ( + 35 ) THEN NULL WHEN - 86 THEN 16 + - - 53 + + NULLIF ( - + 37, - MAX ( - 99 ) * - 80 + - 32 ) END + - 4 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT 82 * - 31 * + COUNT( * ) * 50 * + ( 61 )
----
-7753100

skipif mysql # not compatible
query I rowsort label-8596
SELECT 82 * - 31 * + COUNT ( * ) * 50 * + ( 61 )
----
-7753100

query I rowsort
SELECT NULLIF ( 3, 59 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8598
SELECT 2 DIV - - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8598
SELECT 2 / - - 98 AS col1
----
0

query I rowsort
SELECT DISTINCT - 21 + - 90 AS col2
----
-111

onlyif mysql # DIV for integer division: 
query II rowsort label-8600
SELECT 15 + + 76 AS col2, - 3 * 28 DIV - 60
----
91
1

skipif mysql # not compatible
query II rowsort label-8600
SELECT 15 + + 76 AS col2, - 3 * 28 / - 60
----
91
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8601
SELECT ALL 29 AS col2, + 23 DIV + 4
----
29
5

skipif mysql # not compatible
query II rowsort label-8601
SELECT ALL 29 AS col2, + 23 / + 4
----
29
5

query I rowsort
SELECT 37 * 15 AS col0
----
555

query I rowsort
SELECT ALL NULLIF ( + + 28, + 72 + 88 + - 83 + - ( + + 18 ) * 5 )
----
28

query II rowsort
SELECT - 40, 27 AS col1
----
-40
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8605
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), + - 39 + CAST( NULL AS SIGNED ) ) * 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), + - 39 + CAST ( NULL AS INTEGER ) ) * 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8606
SELECT COALESCE ( - 40, - - 50, + + 84 ) AS col2, - COUNT( * ) col1
----
-40
-1

skipif mysql # not compatible
query II rowsort label-8606
SELECT COALESCE ( - 40, - - 50, + + 84 ) AS col2, - COUNT ( * ) col1
----
-40
-1

query II rowsort
SELECT 27 - + + 77 + 35 * - - 36, 52 AS col1
----
1210
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT CASE - + ( + - COUNT( + - 53 ) ) WHEN - ( + - 23 ) * - 62 THEN NULL ELSE 61 END AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8608
SELECT CASE - + ( + - COUNT ( + - 53 ) ) WHEN - ( + - 23 ) * - 62 THEN NULL ELSE 61 END AS col2
----
61

query I rowsort
SELECT 75 * + ( + 35 )
----
2625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8610
SELECT 77 DIV + + 24 + - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8610
SELECT 77 / + + 24 + - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT COALESCE ( + 85, + 73 + NULLIF ( CASE - 55 WHEN + 7 - ( + 67 ) - - - 77 THEN + - 84 WHEN - 10 / - 47 * + 47 * + 10 * + + 0 + 4 THEN NULL END, - 67 ) + 61, ( + 59 ) * - COUNT( * ) )
----
85

skipif mysql # not compatible
query I rowsort label-8611
SELECT COALESCE ( + 85, + 73 + NULLIF ( CASE - 55 WHEN + 7 - ( + 67 ) - - - 77 THEN + - 84 WHEN - 10 / - 47 * + 47 * + 10 * + + 0 + 4 THEN NULL END, - 67 ) + 61, ( + 59 ) * - COUNT ( * ) )
----
85

query I rowsort
SELECT COALESCE ( 79, 20 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - 86 * + + NULLIF ( + 75, ( + 46 ) + + NULLIF ( COUNT( * ), + 12 ) )
----
-6450

skipif mysql # not compatible
query I rowsort label-8613
SELECT - 86 * + + NULLIF ( + 75, ( + 46 ) + + NULLIF ( COUNT ( * ), + 12 ) )
----
-6450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT + CASE 52 WHEN 63 THEN + 13 WHEN ( 19 ) THEN + ( - 54 ) WHEN NULLIF ( + 39, + 36 * + AVG ( COALESCE ( 19, - NULLIF ( + 3, + 7 ), + CAST( 75 AS SIGNED ) ) ) ) THEN - 4 * - CASE + 12 WHEN - COUNT( * ) * 98 THEN NULL WHEN 90 * 23 THEN NULL ELSE 77 * + 90 END ELSE - COALESCE ( 83, + 3 + + 92 ) * 40 END * - 24 + COUNT( * )
----
79681

skipif mysql # not compatible
query I rowsort label-8614
SELECT + CASE 52 WHEN 63 THEN + 13 WHEN ( 19 ) THEN + ( - 54 ) WHEN NULLIF ( + 39, + 36 * + AVG ( COALESCE ( 19, - NULLIF ( + 3, + 7 ), + CAST ( 75 AS INTEGER ) ) ) ) THEN - 4 * - CASE + 12 WHEN - COUNT ( * ) * 98 THEN NULL WHEN 90 * 23 THEN NULL ELSE 77 * + 90 END ELSE - COALESCE ( 83, + 3 + + 92 ) * 40 END * - 24 + COUNT ( * )
----
79681

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT DISTINCT - + 92 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT - + 92 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8616
SELECT - 1 DIV 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8616
SELECT - 1 / 85 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8617
SELECT + 75 / - COUNT( DISTINCT 74 ) + - 42 - - + 71 + + 87 * ( + 17 ) + + COUNT( + 82 ) + CAST( NULL AS SIGNED ) + + 53 * - - CASE + + ( 99 ) WHEN - 33 THEN 58 * CAST( - 57 AS SIGNED ) WHEN 20 THEN + 72 END + 97 * - CASE + 98 * 13 WHEN 18 + 33 THEN 18 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT + 75 / - COUNT ( DISTINCT 74 ) + - 42 - - + 71 + + 87 * ( + 17 ) + + COUNT ( + 82 ) + CAST ( NULL AS INTEGER ) + + 53 * - - CASE + + ( 99 ) WHEN - 33 THEN 58 * CAST ( - 57 AS INTEGER ) WHEN 20 THEN + 72 END + 97 * - CASE + 98 * 13 WHEN 18 + 33 THEN 18 END col0
----
NULL

query II rowsort
SELECT + - 0 AS col2, + 61 + - 5 + + 20
----
0
76

query I rowsort
SELECT DISTINCT 42 * + 2 + - 94 + 50 AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8620
SELECT + 71 * - 15 + 68 * COUNT( - 96 ) + + + 69 AS col1, + 40 * + + 80 AS col2
----
-928
3200

skipif mysql # not compatible
query II rowsort label-8620
SELECT + 71 * - 15 + 68 * COUNT ( - 96 ) + + + 69 AS col1, + 40 * + + 80 AS col2
----
-928
3200

onlyif mysql # aggregate syntax: 
query II rowsort label-8621
SELECT 72 AS col0, COUNT( * ) + - COUNT( * ) AS col2
----
72
0

skipif mysql # not compatible
query II rowsort label-8621
SELECT 72 AS col0, COUNT ( * ) + - COUNT ( * ) AS col2
----
72
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8622
SELECT 64 * - + 98 + 45 - + 50 * - - COUNT( * ) DIV 73 DIV - 25 * - 92 * + 79 AS col1
----
-6227

skipif mysql # not compatible
query I rowsort label-8622
SELECT 64 * - + 98 + 45 - + 50 * - - COUNT ( * ) / 73 / - 25 * - 92 * + 79 AS col1
----
-6227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8623
SELECT ALL + COUNT( * ) AS col0, - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-8623
SELECT ALL + COUNT ( * ) AS col0, - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8624
SELECT DISTINCT 99 + - + 10 + CAST( NULL AS SIGNED ) * + - 56 - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT 99 + - + 10 + CAST ( NULL AS INTEGER ) * + - 56 - + 44
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT DISTINCT - MAX( 77 ) + 57 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT - MAX ( 77 ) + 57 AS col0
----
-20

query I rowsort
SELECT - ( - - 84 ) * - 24 AS col1
----
2016

query I rowsort
SELECT + 86 + - 1 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT DISTINCT - ( - 43 ) + - - 73 + - COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT - ( - 43 ) + - - 73 + - COUNT ( * )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT + MIN( + + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-8629
SELECT + MIN ( + + 25 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8630
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, - ( + 88 ) + + 90
----
NULL
2

skipif mysql # not compatible
query II rowsort label-8630
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, - ( + 88 ) + + 90
----
NULL
2

query I rowsort
SELECT - - 56 * + 32
----
1792

onlyif mysql # aggregate syntax: 
query II rowsort label-8632
SELECT + 47 + - ( + COUNT( * ) ) AS col2, - 63 * - 61
----
46
3843

skipif mysql # not compatible
query II rowsort label-8632
SELECT + 47 + - ( + COUNT ( * ) ) AS col2, - 63 * - 61
----
46
3843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8633
SELECT - CASE - - 83 WHEN - - 12 DIV - SUM( ALL - - 99 ) THEN 95 * + 55 + - CASE + NULLIF ( - + 87, + - MAX( 81 ) + 35 + - 28 + - 20 * NULLIF ( SUM( + 7 ), MAX( + 55 ) ) ) WHEN + COUNT( * ) DIV 38 THEN 71 DIV 80 WHEN + CASE - 51 WHEN 55 THEN MAX( 50 ) END * 1 - 55 THEN NULL END + + 97 * 69 ELSE - 46 * - 11 END
----
-506

skipif mysql # not compatible
query I rowsort label-8633
SELECT - CASE - - 83 WHEN - - 12 / - SUM ( ALL - - 99 ) THEN 95 * + 55 + - CASE + NULLIF ( - + 87, + - MAX ( 81 ) + 35 + - 28 + - 20 * NULLIF ( SUM ( + 7 ), MAX ( + 55 ) ) ) WHEN + COUNT ( * ) / 38 THEN 71 / 80 WHEN + CASE - 51 WHEN 55 THEN MAX ( 50 ) END * 1 - 55 THEN NULL END + + 97 * 69 ELSE - 46 * - 11 END
----
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT + 23 + + ( 73 ) + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8634
SELECT + 23 + + ( 73 ) + + COUNT ( * )
----
97

query I rowsort
SELECT ALL 88 - - - 4 * + 7
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8636
SELECT + 0 * - COUNT( * ) / + 76 * - - 15 / - - CASE CAST( NULL AS SIGNED ) WHEN 65 * - - 52 * + 68 THEN + - COUNT( - 56 ) + - ( + 62 ) + - 72 WHEN + 90 - + - 70 * - ( - 96 ) THEN 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT + 0 * - COUNT ( * ) / + 76 * - - 15 / - - CASE CAST ( NULL AS INTEGER ) WHEN 65 * - - 52 * + 68 THEN + - COUNT ( - 56 ) + - ( + 62 ) + - 72 WHEN + 90 - + - 70 * - ( - 96 ) THEN 75 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT 23 - + 90 + - - COUNT( * ) + + COUNT( * ) - - 95 * + 56 / + CASE - - 22 WHEN - + 37 THEN - - 47 WHEN - 56 * - - COUNT( * ) THEN + MIN( 95 ) + - 95 / + + ( - 38 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT 23 - + 90 + - - COUNT ( * ) + + COUNT ( * ) - - 95 * + 56 / + CASE - - 22 WHEN - + 37 THEN - - 47 WHEN - 56 * - - COUNT ( * ) THEN + MIN ( 95 ) + - 95 / + + ( - 38 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT - 52 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-8638
SELECT - 52 / - 95
----
0

query II rowsort
SELECT + 64 * - 30 AS col1, + 66
----
-1920
66

onlyif mysql # DIV for integer division: 
query II rowsort label-8640
SELECT - 70 + - 21, 85 DIV + + 5 AS col1
----
-91
17

skipif mysql # not compatible
query II rowsort label-8640
SELECT - 70 + - 21, 85 / + + 5 AS col1
----
-91
17

query I rowsort
SELECT + 40 * - 34 AS col0
----
-1360

query I rowsort
SELECT + AVG ( DISTINCT - - 36 ) + - - CASE 75 WHEN 72 THEN + 7 WHEN + 89 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8643
SELECT DISTINCT CASE 43 WHEN 0 THEN - + CASE - 98 WHEN - 64 * - CASE + 2 WHEN + 22 THEN 91 ELSE NULL END THEN - CAST( + 85 AS SIGNED ) + + 84 WHEN + + COUNT( * ) + + + 53 + - + 80 + + 56 * + 4 THEN NULL ELSE NULL END + CAST( 94 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT CASE 43 WHEN 0 THEN - + CASE - 98 WHEN - 64 * - CASE + 2 WHEN + 22 THEN 91 ELSE NULL END THEN - CAST ( + 85 AS INTEGER ) + + 84 WHEN + + COUNT ( * ) + + + 53 + - + 80 + + 56 * + 4 THEN NULL ELSE NULL END + CAST ( 94 AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 34 * - 40
----
-1360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8645
SELECT ALL NULLIF ( + ( CASE - CAST( NULL AS SIGNED ) WHEN - 73 THEN - ( - ( + 95 ) ) * + NULLIF ( + COUNT( * ), - COUNT( * ) + - ( - 88 ) ) - - 89 / + - 41 END ), - - 86 * - + 40 + + COUNT( ALL + 84 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL NULLIF ( + ( CASE - CAST ( NULL AS INTEGER ) WHEN - 73 THEN - ( - ( + 95 ) ) * + NULLIF ( + COUNT ( * ), - COUNT ( * ) + - ( - 88 ) ) - - 89 / + - 41 END ), - - 86 * - + 40 + + COUNT ( ALL + 84 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 94 col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8647
SELECT - 80 + + ( + 83 ) + COUNT( * ) + - - 12 + + ( + + 92 ) DIV COUNT( * ) + - 91 DIV + 46 AS col1, - 1
----
107
-1

skipif mysql # not compatible
query II rowsort label-8647
SELECT - 80 + + ( + 83 ) + COUNT ( * ) + - - 12 + + ( + + 92 ) / COUNT ( * ) + - 91 / + 46 AS col1, - 1
----
107
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8648
SELECT DISTINCT - 95 DIV 55 + + COALESCE ( + 2, + 27 + - MIN( ALL 2 ), + 21 * - 20 - - 83 + COUNT( * ) * + - ( + + 88 ) ) + + 83 * + 48 col2
----
3985

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT - 95 / 55 + + COALESCE ( + 2, + 27 + - MIN ( ALL 2 ), + 21 * - 20 - - 83 + COUNT ( * ) * + - ( + + 88 ) ) + + 83 * + 48 col2
----
3985

query I rowsort
SELECT + - ( ( + + 34 ) ) col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8650
SELECT ALL 48 * - 0 + + - 63 DIV 6 + - - 15 AS col0, COUNT( * )
----
5
1

skipif mysql # not compatible
query II rowsort label-8650
SELECT ALL 48 * - 0 + + - 63 / 6 + - - 15 AS col0, COUNT ( * )
----
5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT 85 * + COUNT( * ) + - COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT 85 * + COUNT ( * ) + - COUNT ( * ) AS col0
----
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8652
SELECT DISTINCT + ( - 68 ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT + ( - 68 ) / + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8653
SELECT ALL + - COUNT( * ) * COALESCE ( + 37, + 74, + - 67 * - 95 + - COUNT( * ) * + ( - 25 ) + + - 39 * + 32 * - - 34 * COALESCE ( 39, + - 63 ) DIV + 47 + + - 59 + + COUNT( * ) + - ( 12 ) ) + MAX( ALL + 39 ) DIV + 94
----
-37

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL + - COUNT ( * ) * COALESCE ( + 37, + 74, + - 67 * - 95 + - COUNT ( * ) * + ( - 25 ) + + - 39 * + 32 * - - 34 * COALESCE ( 39, + - 63 ) / + 47 + + - 59 + + COUNT ( * ) + - ( 12 ) ) + MAX ( ALL + 39 ) / + 94
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8654
SELECT ALL - SUM( - 31 ) / + 52 * + + COUNT( * ) * - + COUNT( * ) * + CASE NULLIF ( - CAST( + 26 AS SIGNED ), 43 ) WHEN - + ( + ( + 63 ) ) + + - 22 * + + ( + + 56 ) THEN NULL WHEN - - 38 THEN + 48 * + 1 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - SUM ( - 31 ) / + 52 * + + COUNT ( * ) * - + COUNT ( * ) * + CASE NULLIF ( - CAST ( + 26 AS INTEGER ), 43 ) WHEN - + ( + ( + 63 ) ) + + - 22 * + + ( + + 56 ) THEN NULL WHEN - - 38 THEN + 48 * + 1 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT 57 * + + 51 + - MIN( DISTINCT - 54 ) + - - ( - ( 55 ) ) * CASE 0 WHEN - + CASE WHEN ( CASE - 66 WHEN 11 THEN + 22 * + 36 WHEN 29 THEN COUNT( * ) END ) IS NULL THEN 26 * 41 + 54 END - 3 THEN CASE 59 WHEN 11 / - 66 THEN NULL WHEN 17 THEN 2 + + COUNT( * ) WHEN - ( 25 ) THEN COUNT( * ) * - 30 + 95 END * - 44 ELSE NULL END + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT 57 * + + 51 + - MIN ( DISTINCT - 54 ) + - - ( - ( 55 ) ) * CASE 0 WHEN - + CASE WHEN ( CASE - 66 WHEN 11 THEN + 22 * + 36 WHEN 29 THEN COUNT ( * ) END ) IS NULL THEN 26 * 41 + 54 END - 3 THEN CASE 59 WHEN 11 / - 66 THEN NULL WHEN 17 THEN 2 + + COUNT ( * ) WHEN - ( 25 ) THEN COUNT ( * ) * - 30 + 95 END * - 44 ELSE NULL END + 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8656
SELECT - + 41 * COUNT( * ) - + COUNT( * ) AS col1, 29 AS col1
----
-42
29

skipif mysql # not compatible
query II rowsort label-8656
SELECT - + 41 * COUNT ( * ) - + COUNT ( * ) AS col1, 29 AS col1
----
-42
29

query II rowsort
SELECT ( 5 ) col2, 57 AS col2
----
5
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT + COUNT( * ) * - ( - + 17 ) + 74
----
91

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT + COUNT ( * ) * - ( - + 17 ) + 74
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL - + 96 * + + ( 72 ) + 55 - - - COUNT( * ) + - - COUNT( * ) * 97
----
-6761

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL - + 96 * + + ( 72 ) + 55 - - - COUNT ( * ) + - - COUNT ( * ) * 97
----
-6761

query I rowsort
SELECT + + 86 * - + 56 AS col2
----
-4816

query I rowsort
SELECT DISTINCT + 69 * 25
----
1725

query I rowsort
SELECT DISTINCT + ( + - COALESCE ( + - 59, - 12 ) ) AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT ALL CAST( - 13 AS SIGNED ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL CAST ( - 13 AS INTEGER ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-8664
SELECT ALL 25 AS col1, COALESCE ( + + ( + 44 ), - MAX( ALL 80 ) - - 85 + - 76 )
----
25
44

skipif mysql # not compatible
query II rowsort label-8664
SELECT ALL 25 AS col1, COALESCE ( + + ( + 44 ), - MAX ( ALL 80 ) - - 85 + - 76 )
----
25
44

query II rowsort
SELECT DISTINCT 76 AS col0, 21 AS col0
----
76
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8666
SELECT + MAX( + - 33 ) - 76 + - 19
----
-128

skipif mysql # not compatible
query I rowsort label-8666
SELECT + MAX ( + - 33 ) - 76 + - 19
----
-128

query II rowsort
SELECT ALL 82 col2, 68
----
82
68

query II rowsort
SELECT ALL 34 AS col1, 13 - - 63
----
34
76

query I rowsort
SELECT + 40 * + 76 * + 1 AS col2
----
3040

query I rowsort
SELECT + 46 * + + 78 AS col2
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT NULLIF ( 39, + - SUM( ALL - - 96 ) ) + 89 * - COALESCE ( - - 99, + COUNT( * ) + + COUNT( * ) ) AS col2
----
-8772

skipif mysql # not compatible
query I rowsort label-8671
SELECT NULLIF ( 39, + - SUM ( ALL - - 96 ) ) + 89 * - COALESCE ( - - 99, + COUNT ( * ) + + COUNT ( * ) ) AS col2
----
-8772

query I rowsort
SELECT ALL 4 * - - 78 AS col1
----
312

query I rowsort
SELECT ALL NULLIF ( + + 15, - 89 + 69 ) + 55
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL 22 + + COUNT( * ) * + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL 22 + + COUNT ( * ) * + COUNT ( * ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8675
SELECT DISTINCT NULLIF ( - + 70, + - 31 + - + 21 + - CAST( + 35 AS SIGNED ) + + - 79 + 87 + + ( 77 ) * + 97 / - 28 / - ( + 9 ) ) * + + SUM( 84 ) AS col1
----
-5880

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT NULLIF ( - + 70, + - 31 + - + 21 + - CAST ( + 35 AS INTEGER ) + + - 79 + 87 + + ( 77 ) * + 97 / - 28 / - ( + 9 ) ) * + + SUM ( 84 ) AS col1
----
-5880

onlyif mysql # aggregate syntax: 
query II rowsort label-8676
SELECT ALL - COUNT( * ) + - 94 * + 89 + 94 AS col2, - 11 * - + COUNT( * )
----
-8273
11

skipif mysql # not compatible
query II rowsort label-8676
SELECT ALL - COUNT ( * ) + - 94 * + 89 + 94 AS col2, - 11 * - + COUNT ( * )
----
-8273
11

query I rowsort
SELECT ALL 68 * + + 23 * 38 AS col2
----
59432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8678
SELECT CASE + ( + CASE 92 WHEN + MIN( ALL - ( - 56 ) ) * - CAST( + 62 AS DECIMAL ) * - 56 + 18 THEN CAST( + - 60 AS SIGNED ) + - + COUNT( ALL - + 9 ) ELSE - 52 * + 23 * - 36 END ) WHEN COALESCE ( 32, 13, 94 + 67 ) + - 17 THEN + COUNT( * ) * + ( 14 ) ELSE NULL END * 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8678
SELECT CASE + ( + CASE 92 WHEN + MIN ( ALL - ( - 56 ) ) * - CAST ( + 62 AS REAL ) * - 56 + 18 THEN CAST ( + - 60 AS INTEGER ) + - + COUNT ( ALL - + 9 ) ELSE - 52 * + 23 * - 36 END ) WHEN COALESCE ( 32, 13, 94 + 67 ) + - 17 THEN + COUNT ( * ) * + ( 14 ) ELSE NULL END * 5 col2
----
NULL

query I rowsort
SELECT DISTINCT 3 + 89 col2
----
92

query I rowsort
SELECT ALL 62 + 84
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT 61 + + COUNT( * ) + 51 * 17
----
929

skipif mysql # not compatible
query I rowsort label-8681
SELECT 61 + + COUNT ( * ) + 51 * 17
----
929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT - CAST( + 9 AS SIGNED ) * - - 13 AS col2
----
-117

skipif mysql # not compatible
query I rowsort label-8682
SELECT - CAST ( + 9 AS INTEGER ) * - - 13 AS col2
----
-117

query I rowsort
SELECT DISTINCT - 75 + COALESCE ( - 92, + ( + 57 ) )
----
-167

query II rowsort
SELECT ALL 75 + - ( + ( - 24 ) ) AS col0, - 8 AS col0
----
99
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL ( - 8 ) + - - MIN( ALL - + 65 ) col0
----
-73

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL ( - 8 ) + - - MIN ( ALL - + 65 ) col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT ALL + 36 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + 36 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - COALESCE ( + 24, - 45 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT ALL - + NULLIF ( + - 19, + COALESCE ( - 71, 68, + 53 ) ) + + + COUNT( 16 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - + NULLIF ( + - 19, + COALESCE ( - 71, 68, + 53 ) ) + + + COUNT ( 16 ) AS col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT + NULLIF ( - CAST( + - 96 AS SIGNED ), + 19 )
----
96

skipif mysql # not compatible
query I rowsort label-8689
SELECT + NULLIF ( - CAST ( + - 96 AS INTEGER ), + 19 )
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-8690
SELECT - + 40 * CASE + + 5 WHEN - 37 - - + 79 THEN NULL WHEN 25 THEN + 25 ELSE NULL END + - 78 AS col2, - 67 DIV - 54 AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8690
SELECT - + 40 * CASE + + 5 WHEN - 37 - - + 79 THEN NULL WHEN 25 THEN + 25 ELSE NULL END + - 78 AS col2, - 67 / - 54 AS col1
----
NULL
1

query II rowsort
SELECT + - 85 col2, 23 AS col2
----
-85
23

query I rowsort
SELECT ALL - - 20 - - - 3 AS col0
----
17

query I rowsort
SELECT 88 + + 5
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT - COUNT( + 3 ) * - 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-8694
SELECT - COUNT ( + 3 ) * - 24 AS col2
----
24

query II rowsort
SELECT 20 * 82 + + 7, 72 AS col0
----
1647
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8696
SELECT DISTINCT - NULLIF ( - 26, MAX( DISTINCT 60 ) * CAST( NULL AS SIGNED ) )
----
26

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT - NULLIF ( - 26, MAX ( DISTINCT 60 ) * CAST ( NULL AS INTEGER ) )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8697
SELECT ALL 5 - CAST( + MAX( - 16 ) AS SIGNED ) col0
----
21

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL 5 - CAST ( + MAX ( - 16 ) AS INTEGER ) col0
----
21

query I rowsort
SELECT + 44 * 48
----
2112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8699
SELECT 26 + 72 * + + 19 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8699
SELECT 26 + 72 * + + 19 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8700
SELECT ALL - + 88 AS col2, 46 DIV - - 12 - + 40
----
-88
-37

skipif mysql # not compatible
query II rowsort label-8700
SELECT ALL - + 88 AS col2, 46 / - - 12 - + 40
----
-88
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL 71 * + ( + ( - COUNT( * ) ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL 71 * + ( + ( - COUNT ( * ) ) ) AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8702
SELECT 40 + CASE + - CAST( + SUM( DISTINCT 31 ) AS SIGNED ) WHEN 57 THEN NULL WHEN + 24 + + 73 THEN CAST( COUNT( * ) AS SIGNED ) END + + - NULLIF ( 32, + 11 ) + - ( - COUNT( * ) ) + + + 85 * + 75, + 69 * + 21 + 97 AS col0
----
NULL
1546

skipif mysql # not compatible
query II rowsort label-8702
SELECT 40 + CASE + - CAST ( + SUM ( DISTINCT 31 ) AS INTEGER ) WHEN 57 THEN NULL WHEN + 24 + + 73 THEN CAST ( COUNT ( * ) AS INTEGER ) END + + - NULLIF ( 32, + 11 ) + - ( - COUNT ( * ) ) + + + 85 * + 75, + 69 * + 21 + 97 AS col0
----
NULL
1546

query I rowsort
SELECT 11 * + - 84 col0
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT COUNT( * ) * - - 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8704
SELECT COUNT ( * ) * - - 51 AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8705
SELECT DISTINCT + 8 DIV COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT + 8 / COUNT ( * )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT MAX( - CASE WHEN NULL IS NULL THEN 14 END ) + - 90 + - 80
----
-184

skipif mysql # not compatible
query I rowsort label-8706
SELECT MAX ( - CASE WHEN NULL IS NULL THEN 14 END ) + - 90 + - 80
----
-184

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8707
SELECT ALL + COUNT( - - 56 ) * COUNT( * ) DIV - 68, - MIN( 6 ) + + 74 col1
----
0
68

skipif mysql # not compatible
query II rowsort label-8707
SELECT ALL + COUNT ( - - 56 ) * COUNT ( * ) / - 68, - MIN ( 6 ) + + 74 col1
----
0
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT CASE - 62 WHEN + 21 THEN + 30 WHEN - MAX( + + 23 ) * + 53 THEN + 4 END / + 58 * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT CASE - 62 WHEN + 21 THEN + 30 WHEN - MAX ( + + 23 ) * + 53 THEN + 4 END / + 58 * 74
----
NULL

query I rowsort
SELECT 36 + 94
----
130

query II rowsort
SELECT DISTINCT + 72 * - 88 AS col2, - ( + + 95 ) + COALESCE ( - - 21, + 98 ) AS col1
----
-6336
-74

query I rowsort
SELECT ALL - 18 * 30 AS col1
----
-540

query I rowsort
SELECT 46 + 97
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL - COUNT( * ) + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8714
SELECT ALL + CAST( - + 95 AS SIGNED ) * - - COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL + CAST ( - + 95 AS INTEGER ) * - - COUNT ( * ) AS col2
----
-95

query I rowsort
SELECT ALL - 18 + + 6 + + 9 + - - 54
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT 71 + + COUNT( * ) - 17 col2
----
55

skipif mysql # not compatible
query I rowsort label-8716
SELECT 71 + + COUNT ( * ) - 17 col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8717
SELECT DISTINCT + 1 + + COALESCE ( + COUNT( * ), - - MIN( ALL 77 ) - + CAST( NULL AS SIGNED ) DIV - - CAST( + + 45 AS SIGNED ) ) + + - 76 * - 80 AS col2
----
6082

skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT + 1 + + COALESCE ( + COUNT ( * ), - - MIN ( ALL 77 ) - + CAST ( NULL AS INTEGER ) / - - CAST ( + + 45 AS INTEGER ) ) + + - 76 * - 80 AS col2
----
6082

query I rowsort
SELECT ALL - 46 + + + ( - 17 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL 62 + - + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL 62 + - + COUNT ( * )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT 61 * - + 46 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT 61 * - + 46 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 6 + - 20 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL 20 * + 31 * - 70 * + COUNT( * ) + 39 * - + 43 * + 40 col0
----
-110480

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL 20 * + 31 * - 70 * + COUNT ( * ) + 39 * - + 43 * + 40 col0
----
-110480

query I rowsort
SELECT DISTINCT 24 + - 46 AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8724
SELECT DISTINCT COUNT( * ) * AVG ( ALL - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT COUNT ( * ) * AVG ( ALL - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT ALL - SUM( ALL - + 97 ) * COUNT( * ) + - 12 + - 82 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL - SUM ( ALL - + 97 ) * COUNT ( * ) + - 12 + - 82 AS col2
----
3

query I rowsort
SELECT 23 + + 79 + - ( + 21 ) + - 58 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8727
SELECT ALL + 28 * 91 - - COALESCE ( CAST( + - 32 AS SIGNED ), + + 89, MAX( - + 85 ) * + 49, + COUNT( * ) ) + + - 99 AS col2
----
2417

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL + 28 * 91 - - COALESCE ( CAST ( + - 32 AS INTEGER ), + + 89, MAX ( - + 85 ) * + 49, + COUNT ( * ) ) + + - 99 AS col2
----
2417

query I rowsort
SELECT + - 10 col2
----
-10

query I rowsort
SELECT + 83 * - 3 * - 40 + - 74
----
9886

query I rowsort
SELECT 0 * - + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT COUNT( * ) * + + 26 + + - 14 col2
----
12

skipif mysql # not compatible
query I rowsort label-8731
SELECT COUNT ( * ) * + + 26 + + - 14 col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8732
SELECT + + CASE 22 WHEN - - 54 THEN - CASE - 52 WHEN - + MIN( DISTINCT 7 ) THEN - 33 ELSE NULL END WHEN + + 91 + - 50 THEN - - 84 WHEN - - NULLIF ( - 84, - 37 ) * 29 THEN NULL ELSE - CASE + CAST( - CASE 8 WHEN 37 * 71 + - 24 THEN NULL ELSE COUNT( * ) END AS SIGNED ) WHEN 79 * + 84 THEN 87 + 13 * - 89 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT + + CASE 22 WHEN - - 54 THEN - CASE - 52 WHEN - + MIN ( DISTINCT 7 ) THEN - 33 ELSE NULL END WHEN + + 91 + - 50 THEN - - 84 WHEN - - NULLIF ( - 84, - 37 ) * 29 THEN NULL ELSE - CASE + CAST ( - CASE 8 WHEN 37 * 71 + - 24 THEN NULL ELSE COUNT ( * ) END AS INTEGER ) WHEN 79 * + 84 THEN 87 + 13 * - 89 END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8733
SELECT + 42 * + COUNT( * ), 45 - + 5 + + - 42 * + SUM( - 74 ) * + 61 * + 82 AS col1
----
42
15546256

skipif mysql # not compatible
query II rowsort label-8733
SELECT + 42 * + COUNT ( * ), 45 - + 5 + + - 42 * + SUM ( - 74 ) * + 61 * + 82 AS col1
----
42
15546256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT + - CAST( 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-8734
SELECT + - CAST ( 96 AS INTEGER )
----
-96

query I rowsort
SELECT COALESCE ( 34, 76, 21 * + 88 ) * + - 37
----
-1258

query I rowsort
SELECT 56 * - + 30 * + CASE - 81 WHEN + - 9 THEN + - 51 END * 6 + - - 96 col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-8737
SELECT + 20 AS col0, + SUM( - 86 ) AS col1, - COUNT( * ) * + ( 10 ) + - - 70 + + 10 - - 51 - + 45
----
20
-86
76

skipif mysql # not compatible
query III rowsort label-8737
SELECT + 20 AS col0, + SUM ( - 86 ) AS col1, - COUNT ( * ) * + ( 10 ) + - - 70 + + 10 - - 51 - + 45
----
20
-86
76

query I rowsort
SELECT + NULLIF ( - 94, + 65 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT DISTINCT - 32 + - ( + - COUNT( * ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - 32 + - ( + - COUNT ( * ) ) AS col1
----
-31

query I rowsort
SELECT ALL 99 + 18 * + 25
----
549

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT ALL - 14 + + + 30 + + CASE + - 5 WHEN - AVG ( ALL - 39 ) THEN - 63 * + - COUNT( * ) END + - + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - 14 + + + 30 + + CASE + - 5 WHEN - AVG ( ALL - 39 ) THEN - 63 * + - COUNT ( * ) END + - + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT ALL + 59 + 23 * + 34 * + MIN( ( 9 ) ) AS col1
----
7097

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL + 59 + 23 * + 34 * + MIN ( ( 9 ) ) AS col1
----
7097

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT NULLIF ( COUNT( * ), + MAX( DISTINCT 26 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT NULLIF ( COUNT ( * ), + MAX ( DISTINCT 26 ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT DISTINCT - 32 + - - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - 32 + - - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT + 69 + + 47 * + COUNT( DISTINCT - 37 ) * - COUNT( + 79 ) * - 69
----
3312

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT + 69 + + 47 * + COUNT ( DISTINCT - 37 ) * - COUNT ( + 79 ) * - 69
----
3312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8746
SELECT ALL + 60 DIV NULLIF ( + + 13, + COUNT( * ) * - COUNT( * ) + + 51 * MIN( + 64 ) * 23 * + AVG ( 15 ) + - 95 ) * - + 14
----
-56

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL + 60 / NULLIF ( + + 13, + COUNT ( * ) * - COUNT ( * ) + + 51 * MIN ( + 64 ) * 23 * + AVG ( 15 ) + - 95 ) * - + 14
----
-56

query I rowsort
SELECT - 68 * 1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT - COUNT( * ) * + 1 * ( - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-8748
SELECT - COUNT ( * ) * + 1 * ( - 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT - 3 + + COUNT( * ) + 63 * - 93 * - 79 AS col1
----
462859

skipif mysql # not compatible
query I rowsort label-8749
SELECT - 3 + + COUNT ( * ) + 63 * - 93 * - 79 AS col1
----
462859

query I rowsort
SELECT ALL - 24 * - - 53 AS col2
----
-1272

query I rowsort
SELECT ALL - 15 - + 40 col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT - + COUNT( ALL 46 ) * - 27
----
27

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT - + COUNT ( ALL 46 ) * - 27
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT + + 56 * - CAST( 89 AS SIGNED )
----
-4984

skipif mysql # not compatible
query I rowsort label-8753
SELECT + + 56 * - CAST ( 89 AS INTEGER )
----
-4984

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT - 54 + + COUNT( * ) - + + COALESCE ( + 90, - 21, 1, + 97 )
----
-143

skipif mysql # not compatible
query I rowsort label-8754
SELECT - 54 + + COUNT ( * ) - + + COALESCE ( + 90, - 21, 1, + 97 )
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL + COUNT( * ) - - + 59
----
60

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL + COUNT ( * ) - - + 59
----
60

query I rowsort
SELECT - - NULLIF ( 11, 94 ) * - - 83
----
913

query II rowsort
SELECT - 66 AS col1, 30 AS col0
----
-66
30

query I rowsort
SELECT + 50 * + - 26 * 45
----
-58500

query I rowsort
SELECT ALL + + ( 89 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT + - 4 + 80 + - + SUM( ALL + 96 ) * + - 87 DIV + + 87 + + CASE + + COUNT( * ) WHEN + + COUNT( * ) THEN + 58 * - + 84 END + + 77 + 14 * ( + 65 )
----
-3713

skipif mysql # not compatible
query I rowsort label-8760
SELECT + - 4 + 80 + - + SUM ( ALL + 96 ) * + - 87 / + + 87 + + CASE + + COUNT ( * ) WHEN + + COUNT ( * ) THEN + 58 * - + 84 END + + 77 + 14 * ( + 65 )
----
-3713

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT DISTINCT + - COUNT( + 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT + - COUNT ( + 88 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT 65 * - COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT 65 * - COUNT ( * ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT - SUM( DISTINCT COALESCE ( + + 52, - + 24 ) ) * - 28 AS col2
----
1456

skipif mysql # not compatible
query I rowsort label-8763
SELECT - SUM ( DISTINCT COALESCE ( + + 52, - + 24 ) ) * - 28 AS col2
----
1456

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT + - 46 DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT + - 46 / 84 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8765
SELECT + 67 + 25 + 26 DIV + + 19 + 0 + + 37 + 32 * + - 69 * + - 88 AS col0
----
194434

skipif mysql # not compatible
query I rowsort label-8765
SELECT + 67 + 25 + 26 / + + 19 + 0 + + 37 + 32 * + - 69 * + - 88 AS col0
----
194434

query I rowsort
SELECT 27 * - - 37 + - 63 - - + 33
----
969

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8767
SELECT + 35 DIV + 54 AS col2, + NULLIF ( - MIN( + - ( + 94 ) ), + 98 * + - COALESCE ( ( - - 64 ), + COUNT( * ) ) + - + COALESCE ( 10, + 29 ) ) AS col1
----
0
94

skipif mysql # not compatible
query II rowsort label-8767
SELECT + 35 / + 54 AS col2, + NULLIF ( - MIN ( + - ( + 94 ) ), + 98 * + - COALESCE ( ( - - 64 ), + COUNT ( * ) ) + - + COALESCE ( 10, + 29 ) ) AS col1
----
0
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8768
SELECT + SUM( DISTINCT - ( + 18 ) ) + + COUNT( * ) DIV 88
----
-18

skipif mysql # not compatible
query I rowsort label-8768
SELECT + SUM ( DISTINCT - ( + 18 ) ) + + COUNT ( * ) / 88
----
-18

query I rowsort
SELECT ALL - 2 * - 65 + - - 64 * + 67 - 84
----
4334

onlyif mysql # DIV for integer division: 
query I rowsort label-8770
SELECT ALL 3 * - 81 * - 0 DIV + - COALESCE ( - + 44, 63 ) * - 28 + + + 64
----
64

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL 3 * - 81 * - 0 / + - COALESCE ( - + 44, 63 ) * - 28 + + + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + 87 * - + CASE - 30 WHEN + 4 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT + 87 * - + CASE - 30 WHEN + 4 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT ALL 93 DIV - - 95
----
0

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL 93 / - - 95
----
0

query I rowsort
SELECT ALL 41 * + 54 * - 75 + + 6 + - 4 AS col1
----
-166048

query I rowsort
SELECT DISTINCT 66 * + 46 + + 17 + + 41
----
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL 40 * - - MIN( 82 ) + - COUNT( * ) AS col0
----
3279

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL 40 * - - MIN ( 82 ) + - COUNT ( * ) AS col0
----
3279

query I rowsort
SELECT + 45 + - 4
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8777
SELECT - CAST( - COUNT( + 10 ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8777
SELECT - CAST ( - COUNT ( + 10 ) AS INTEGER ) col0
----
1

query I rowsort
SELECT DISTINCT + 83 - + - 69 - + 24 + + + 3
----
131

query I rowsort
SELECT ALL 3 * - - 72
----
216

onlyif mysql # aggregate syntax: 
query II rowsort label-8780
SELECT DISTINCT 4 AS col1, COUNT( * )
----
4
1

skipif mysql # not compatible
query II rowsort label-8780
SELECT DISTINCT 4 AS col1, COUNT ( * )
----
4
1

query II rowsort
SELECT ALL + 71, 82 + + 64 AS col0
----
71
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT DISTINCT + COUNT( * ) - + ( - + 69 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT + COUNT ( * ) - + ( - + 69 ) AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8783
SELECT + 38 * - + 90 * + SUM( 88 ), + 15 DIV 91 AS col0
----
-300960
0

skipif mysql # not compatible
query II rowsort label-8783
SELECT + 38 * - + 90 * + SUM ( 88 ), + 15 / 91 AS col0
----
-300960
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8784
SELECT DISTINCT - COUNT( * ) DIV - 75 + 34 + - 48
----
-14

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT - COUNT ( * ) / - 75 + 34 + - 48
----
-14

query I rowsort
SELECT - + 19 * 42 + + 10
----
-788

query I rowsort
SELECT ALL - + 13 * + 27
----
-351

query II rowsort
SELECT 95, + 74 + - 34 * + + NULLIF ( 82, - - 32 ) AS col1
----
95
-2714

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8788
SELECT ALL 44 DIV 88 - + - MIN( DISTINCT - 14 ) AS col1, + 17 * - - 94 + 68 * - 66 * - 75, + 67 * + 95 AS col1
----
-14
338198
6365

skipif mysql # not compatible
query III rowsort label-8788
SELECT ALL 44 / 88 - + - MIN ( DISTINCT - 14 ) AS col1, + 17 * - - 94 + 68 * - 66 * - 75, + 67 * + 95 AS col1
----
-14
338198
6365

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8789
SELECT - 56 AS col0, CAST( AVG ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-8789
SELECT - 56 AS col0, CAST ( AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
-56
NULL

query I rowsort
SELECT ALL + + 1 * + ( - 19 ) * - 24
----
456

onlyif mysql # DIV for integer division: 
query II rowsort label-8791
SELECT - 1 DIV - 40, 50 AS col1
----
0
50

skipif mysql # not compatible
query II rowsort label-8791
SELECT - 1 / - 40, 50 AS col1
----
0
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8792
SELECT + 40 AS col0, + COUNT( + + 55 ) DIV + 21 + 59 * - 27 AS col0
----
40
-1593

skipif mysql # not compatible
query II rowsort label-8792
SELECT + 40 AS col0, + COUNT ( + + 55 ) / + 21 + 59 * - 27 AS col0
----
40
-1593

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL + - ( - - CASE - 88 WHEN - - 90 + - 19 THEN COALESCE ( + + COUNT( * ), - - MAX( - 42 ) ) + - COUNT( * ) ELSE NULL END ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL + - ( - - CASE - 88 WHEN - - 90 + - 19 THEN COALESCE ( + + COUNT ( * ), - - MAX ( - 42 ) ) + - COUNT ( * ) ELSE NULL END ) * 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8794
SELECT ALL + 12 / - 63 * - 20 + - 85 + - + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL + 12 / - 63 * - 20 + - 85 + - + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT ALL + 90 DIV + 89 + + + 19 + + + 70 + + 92
----
182

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + 90 / + 89 + + + 19 + + + 70 + + 92
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT + - COALESCE ( ( - COUNT( * ) ), ( + 83 ), 49 )
----
1

skipif mysql # not compatible
query I rowsort label-8796
SELECT + - COALESCE ( ( - COUNT ( * ) ), ( + 83 ), 49 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8797
SELECT - + COALESCE ( - 15, + NULLIF ( + 9, 51 - + MAX( + + 0 ) * - - COUNT( * ) * + 49 * MAX( ALL + 13 ) ), - 28 DIV + - 52 - - 21 DIV - 12 DIV MIN( DISTINCT ( - + 88 ) ) ) * COALESCE ( + 5, + 83 )
----
75

skipif mysql # not compatible
query I rowsort label-8797
SELECT - + COALESCE ( - 15, + NULLIF ( + 9, 51 - + MAX ( + + 0 ) * - - COUNT ( * ) * + 49 * MAX ( ALL + 13 ) ), - 28 / + - 52 - - 21 / - 12 / MIN ( DISTINCT ( - + 88 ) ) ) * COALESCE ( + 5, + 83 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT + + 17 * - MAX( ALL - 11 ) * - - 54 + - - 23 - 31 AS col1
----
10090

skipif mysql # not compatible
query I rowsort label-8798
SELECT + + 17 * - MAX ( ALL - 11 ) * - - 54 + - - 23 - 31 AS col1
----
10090

query II rowsort
SELECT ALL - - 30 AS col0, 80
----
30
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL + COUNT( * ) + - 16 * + - 14
----
225

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL + COUNT ( * ) + - 16 * + - 14
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT DISTINCT 71 + - 52 + ( 67 ) + + ( 20 ) * + + ( - 69 ) * - - CASE + 31 WHEN 46 + - + COUNT( * ) - ( - COUNT( * ) ) * - 99 THEN NULL WHEN + 8 THEN + 44 / + + 75 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT 71 + - 52 + ( 67 ) + + ( 20 ) * + + ( - 69 ) * - - CASE + 31 WHEN 46 + - + COUNT ( * ) - ( - COUNT ( * ) ) * - 99 THEN NULL WHEN + 8 THEN + 44 / + + 75 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8802
SELECT 49 * - + 34 col0, + CAST( - 60 AS SIGNED )
----
-1666
-60

skipif mysql # not compatible
query II rowsort label-8802
SELECT 49 * - + 34 col0, + CAST ( - 60 AS INTEGER )
----
-1666
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT DISTINCT 40 * COALESCE ( + 41, - + 22 * + + NULLIF ( + + 2, - 40 / - 65 ) * + 59 + - - MIN( ALL - + 47 ) ) AS col2
----
1640

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT 40 * COALESCE ( + 41, - + 22 * + + NULLIF ( + + 2, - 40 / - 65 ) * + 59 + - - MIN ( ALL - + 47 ) ) AS col2
----
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL 58 + - CASE + 9 WHEN - COUNT( - 0 ) THEN - ( 54 ) * - 93 END + + SUM( ALL 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL 58 + - CASE + 9 WHEN - COUNT ( - 0 ) THEN - ( 54 ) * - 93 END + + SUM ( ALL 1 )
----
NULL

query I rowsort
SELECT 75 * + + 44
----
3300

query I rowsort
SELECT ALL 70 * + ( - 75 )
----
-5250

query I rowsort
SELECT DISTINCT 4 * + 17 AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT 96 * + + ( - 72 ) - 93 DIV 39
----
-6914

skipif mysql # not compatible
query I rowsort label-8808
SELECT 96 * + + ( - 72 ) - 93 / 39
----
-6914

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT COUNT( * ) * - 69 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-8809
SELECT COUNT ( * ) * - 69 AS col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ( + MIN( 1 ) ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8810
SELECT ( + MIN ( 1 ) ) + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT 0 * + 17 * + + 35 * + + 61 * 14 * + 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT ALL - ( + - 22 ) * - MIN( ALL 20 )
----
-440

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - ( + - 22 ) * - MIN ( ALL 20 )
----
-440

onlyif mysql # aggregate syntax: 
query II rowsort label-8813
SELECT MIN( ALL + - 54 ) + 84, 64 * - 88 AS col1
----
30
-5632

skipif mysql # not compatible
query II rowsort label-8813
SELECT MIN ( ALL + - 54 ) + 84, 64 * - 88 AS col1
----
30
-5632

query I rowsort
SELECT COALESCE ( 4, - + 37, + 82 ) - + - 70 AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8815
SELECT + COALESCE ( - 96, COUNT( DISTINCT + + 7 ) + - - 23 + 12 * COUNT( * ) * + 24, 25 + + - COALESCE ( + ( + CAST( NULL AS SIGNED ) ), + - 6 + 19 ) DIV + COUNT( * ) * + - ( COALESCE ( + 47, + 83 + + - 90 ) ) ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-8815
SELECT + COALESCE ( - 96, COUNT ( DISTINCT + + 7 ) + - - 23 + 12 * COUNT ( * ) * + 24, 25 + + - COALESCE ( + ( + CAST ( NULL AS INTEGER ) ), + - 6 + 19 ) / + COUNT ( * ) * + - ( COALESCE ( + 47, + 83 + + - 90 ) ) ) AS col1
----
-96

query I rowsort
SELECT + 36 * + 83 * - 47 + - 5 + - - 97 AS col1
----
-140344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT + ( - CAST( - 5 AS SIGNED ) ) * - - 98 AS col0
----
490

skipif mysql # not compatible
query I rowsort label-8817
SELECT + ( - CAST ( - 5 AS INTEGER ) ) * - - 98 AS col0
----
490

onlyif mysql # aggregate syntax: 
query II rowsort label-8818
SELECT - 45 - NULLIF ( CASE + MIN( - 62 ) WHEN 12 THEN NULL ELSE 7 END, + - 97 ) + + COUNT( + 21 ) * 2 * + 65 col0, COALESCE ( - 15, + 32 / + 24 + - 56 ) + 17 * + - 38 + + 82 + - CASE + 15 WHEN 37 THEN NULL WHEN 16 THEN 38 END
----
78
NULL

skipif mysql # not compatible
query II rowsort label-8818
SELECT - 45 - NULLIF ( CASE + MIN ( - 62 ) WHEN 12 THEN NULL ELSE 7 END, + - 97 ) + + COUNT ( + 21 ) * 2 * + 65 col0, COALESCE ( - 15, + 32 / + 24 + - 56 ) + 17 * + - 38 + + 82 + - CASE + 15 WHEN 37 THEN NULL WHEN 16 THEN 38 END
----
78
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8819
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + - 2 + - + 24 + - 73 * - 15 - + + 42 - - - 62 * NULLIF ( - 9, - MAX( ALL + + 74 ) ) * 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + - 2 + - + 24 + - 73 * - 15 - + + 42 - - - 62 * NULLIF ( - 9, - MAX ( ALL + + 74 ) ) * 78
----
NULL

query I rowsort
SELECT ALL ( + 65 ) * - 94 + + 43 col1
----
-6067

query I rowsort
SELECT - 72 * + + 31
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL NULLIF ( + - SUM( ( 9 ) ), SUM( DISTINCT + - 65 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL NULLIF ( + - SUM ( ( 9 ) ), SUM ( DISTINCT + - 65 ) )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8823
SELECT DISTINCT CAST( ( + - 81 ) AS SIGNED ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT CAST ( ( + - 81 ) AS INTEGER ) AS col0
----
-81

query I rowsort
SELECT + ( - 59 ) + 81 + 34
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8825
SELECT DISTINCT - CAST( + - 22 AS SIGNED ) DIV - + COUNT( * ), 4 AS col2
----
-22
4

skipif mysql # not compatible
query II rowsort label-8825
SELECT DISTINCT - CAST ( + - 22 AS INTEGER ) / - + COUNT ( * ), 4 AS col2
----
-22
4

query I rowsort
SELECT ALL - 66 + - + ( - - 71 )
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT 56 * ( ( - - COUNT( * ) ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8827
SELECT 56 * ( ( - - COUNT ( * ) ) ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT COUNT( * ) * 16 + 10 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-8828
SELECT COUNT ( * ) * 16 + 10 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8829
SELECT ALL - CAST( NULL AS SIGNED ) + - - 64 - + 39 * - 32 + + - SUM( DISTINCT 40 ) AS col1, + 55 * 85 - + 26 * - COUNT( * ) AS col0
----
NULL
4701

skipif mysql # not compatible
query II rowsort label-8829
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 64 - + 39 * - 32 + + - SUM ( DISTINCT 40 ) AS col1, + 55 * 85 - + 26 * - COUNT ( * ) AS col0
----
NULL
4701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8830
SELECT DISTINCT + COUNT( * ) + + + CAST( - + 37 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT + COUNT ( * ) + + + CAST ( - + 37 AS INTEGER )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8831
SELECT 39 DIV - 33 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8831
SELECT 39 / - 33 AS col0
----
-1

query I rowsort
SELECT ALL - COALESCE ( - 12, + 68 ) AS col0
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8833
SELECT COUNT( * ) DIV + - 55 + + + ( 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8833
SELECT COUNT ( * ) / + - 55 + + + ( 36 ) AS col2
----
36

query I rowsort
SELECT 55 * - 2 AS col2
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8835
SELECT + 31 col0, 75 - + 22 + - COUNT( DISTINCT 64 ) + - 70 - - 68 DIV + ( - - 75 )
----
31
-18

skipif mysql # not compatible
query II rowsort label-8835
SELECT + 31 col0, 75 - + 22 + - COUNT ( DISTINCT 64 ) + - 70 - - 68 / + ( - - 75 )
----
31
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL + 1 - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL + 1 - COUNT ( * ) AS col2
----
0

query II rowsort
SELECT + 39 AS col0, 9 AS col1
----
39
9

query II rowsort
SELECT + 97 AS col1, - 26 * + 11 AS col0
----
97
-286

query I rowsort
SELECT DISTINCT - 83 - 17
----
-100

query II rowsort
SELECT 9 + + + 62 + - + 81 AS col2, + 88
----
-10
88

query II rowsort
SELECT - 7 AS col0, - 17 AS col0
----
-7
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT - 81 * + 22 * - + SUM( ALL 0 ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT - 81 * + 22 * - + SUM ( ALL 0 ) + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT 90 DIV 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8843
SELECT 90 / 19 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT 44 * + + 29 * - COUNT( * )
----
-1276

skipif mysql # not compatible
query I rowsort label-8844
SELECT 44 * + + 29 * - COUNT ( * )
----
-1276

query I rowsort
SELECT - 29 + 61 AS col2
----
32

query I rowsort
SELECT + 43 + - 82
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT ALL COUNT( DISTINCT - + 43 )
----
1

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL COUNT ( DISTINCT - + 43 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT COUNT( * ) + - 49 * 31 AS col0
----
-1518

skipif mysql # not compatible
query I rowsort label-8848
SELECT COUNT ( * ) + - 49 * 31 AS col0
----
-1518

query I rowsort
SELECT ALL + + 29 + - + 95 AS col1
----
-66

query I rowsort
SELECT + 70 * - 2
----
-140

query I rowsort
SELECT ALL - 5 + - 70
----
-75

query I rowsort
SELECT + 79 + + + 27
----
106

query II rowsort
SELECT DISTINCT 63, - 87 AS col1
----
63
-87

query I rowsort
SELECT ALL + 30 + 0 AS col2
----
30

query I rowsort
SELECT + 36 * + 3
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8856
SELECT 92 + - COUNT( * ) + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT 92 + - COUNT ( * ) + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8857
SELECT 5 AS col2, + COUNT( - + ( 60 ) ) * + - 76
----
5
-76

skipif mysql # not compatible
query II rowsort label-8857
SELECT 5 AS col2, + COUNT ( - + ( 60 ) ) * + - 76
----
5
-76

query I rowsort
SELECT + 19 + 46 * - 3 * + + 14 * 44 AS col1
----
-84989

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL + 78 * 73 + - ( - - COUNT( ALL + - 66 ) ) - 7 + - COUNT( * ) * - 22 AS col2
----
5708

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL + 78 * 73 + - ( - - COUNT ( ALL + - 66 ) ) - 7 + - COUNT ( * ) * - 22 AS col2
----
5708

onlyif mysql # aggregate syntax: 
query II rowsort label-8860
SELECT ALL - COUNT( * ) + + - COUNT( ALL + 58 ) - SUM( DISTINCT - - 18 ) + - NULLIF ( + + COUNT( * ), - 16 ), 31 AS col2
----
-21
31

skipif mysql # not compatible
query II rowsort label-8860
SELECT ALL - COUNT ( * ) + + - COUNT ( ALL + 58 ) - SUM ( DISTINCT - - 18 ) + - NULLIF ( + + COUNT ( * ), - 16 ), 31 AS col2
----
-21
31

query II rowsort
SELECT ALL + + 66 + - + 42 * - 99 AS col2, 18
----
4224
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8862
SELECT NULLIF ( + 61, + 60 * - + ( - 24 ) * 28 * - 6 / - 90 + - 14 / 94 + 15 - - CAST( + 45 AS SIGNED ) ) col2
----
61

skipif mysql # not compatible
query I rowsort label-8862
SELECT NULLIF ( + 61, + 60 * - + ( - 24 ) * 28 * - 6 / - 90 + - 14 / 94 + 15 - - CAST ( + 45 AS INTEGER ) ) col2
----
61

query I rowsort
SELECT CASE - - ( + 87 ) WHEN 60 THEN NULL ELSE - 64 END AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8864
SELECT + COUNT( - 59 ) * + 5 - + + 3 - - - 52 * + COALESCE ( 21, + - 3 DIV - + 91 ) AS col0
----
-1090

skipif mysql # not compatible
query I rowsort label-8864
SELECT + COUNT ( - 59 ) * + 5 - + + 3 - - - 52 * + COALESCE ( 21, + - 3 / - + 91 ) AS col0
----
-1090

query II rowsort
SELECT - ( ( 43 ) ) * 8 col2, + 43 * - 56 col0
----
-344
-2408

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT DISTINCT + 23 DIV + - 60 col2
----
0

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT + 23 / + - 60 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT 33 DIV 11 DIV + 19 - - 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8867
SELECT 33 / 11 / + 19 - - 15 AS col0
----
15

query I rowsort
SELECT - 93 * - 63 * - - ( - - 20 ) * + 76
----
8905680

query I rowsort
SELECT COALESCE ( - 90, + + 83 )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT ALL + 97 * + - CAST( + ( 49 ) AS SIGNED )
----
-4753

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL + 97 * + - CAST ( + ( 49 ) AS INTEGER )
----
-4753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8871
SELECT - ( - COALESCE ( - 71, + 39, - + 62 ) ) * + 72 DIV + COUNT( * )
----
-5112

skipif mysql # not compatible
query I rowsort label-8871
SELECT - ( - COALESCE ( - 71, + 39, - + 62 ) ) * + 72 / + COUNT ( * )
----
-5112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8872
SELECT DISTINCT 28 / + 66 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT 28 / + 66 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( + 47, - + 17 * + 88 + 42 )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT ALL + CAST( + + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL + CAST ( + + 10 AS INTEGER )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8875
SELECT - 74 DIV + CASE 98 WHEN - 79 + 50 THEN NULL ELSE COUNT( * ) * - 60 * - 93 END * - 17
----
0

skipif mysql # not compatible
query I rowsort label-8875
SELECT - 74 / + CASE 98 WHEN - 79 + 50 THEN NULL ELSE COUNT ( * ) * - 60 * - 93 END * - 17
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8876
SELECT NULLIF ( + 96, - NULLIF ( + 26, + + ( + - COUNT( * ) ) * MIN( ALL - CAST( NULL AS DECIMAL ) ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-8876
SELECT NULLIF ( + 96, - NULLIF ( + 26, + + ( + - COUNT ( * ) ) * MIN ( ALL - CAST ( NULL AS REAL ) ) ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT DISTINCT + SUM( + 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT + SUM ( + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT + 40 * + 29 + - - 77 * - - 38 - + 83 * - 48 * - COUNT( + 28 ) col2
----
102

skipif mysql # not compatible
query I rowsort label-8878
SELECT + 40 * + 29 + - - 77 * - - 38 - + 83 * - 48 * - COUNT ( + 28 ) col2
----
102

query I rowsort
SELECT - NULLIF ( - 86, - - 62 ) + + - 79
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8880
SELECT DISTINCT + + 91 * NULLIF ( 65, CAST( 26 AS SIGNED ) ) * 58 + + COUNT( * ) AS col2
----
343071

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT + + 91 * NULLIF ( 65, CAST ( 26 AS INTEGER ) ) * 58 + + COUNT ( * ) AS col2
----
343071

query I rowsort
SELECT ALL + 86 * + - 5 + - 56 + - 9 AS col2
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL - MAX( 86 ) + - + 31 + - 82
----
-199

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL - MAX ( 86 ) + - + 31 + - 82
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT + 90 DIV - 52
----
-1

skipif mysql # not compatible
query I rowsort label-8883
SELECT + 90 / - 52
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL + 74 + + 97 + COUNT( * ) + 70 * COUNT( * )
----
242

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + 74 + + 97 + COUNT ( * ) + 70 * COUNT ( * )
----
242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT - + AVG ( DISTINCT + 83 ) - 97 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT - + AVG ( DISTINCT + 83 ) - 97 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 47 * - 99 AS col2
----
4653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8887
SELECT - - 19 DIV COUNT( * ) + - 28 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8887
SELECT - - 19 / COUNT ( * ) + - 28 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT DISTINCT 96 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT 96 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 89, + + 1 ) col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT COUNT( DISTINCT - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-8890
SELECT COUNT ( DISTINCT - 80 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8891
SELECT ALL + - 22 + 72 DIV - COUNT( ALL 60 )
----
-94

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + - 22 + 72 / - COUNT ( ALL 60 )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8892
SELECT DISTINCT - 80 + + ( 94 ) * 39, + COUNT( * ) AS col0
----
3586
1

skipif mysql # not compatible
query II rowsort label-8892
SELECT DISTINCT - 80 + + ( 94 ) * 39, + COUNT ( * ) AS col0
----
3586
1

query II rowsort
SELECT + ( + 3 ), 15 AS col2
----
3
15

query I rowsort
SELECT ALL 23 - - CASE 99 WHEN - 76 THEN - + 66 WHEN 12 * ( + - 38 ) - + - 11 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT DISTINCT 62 DIV + ( ( - + 46 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT 62 / + ( ( - + 46 ) ) AS col1
----
-1

query I rowsort
SELECT - 36 + 61 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT + 6 - + + COUNT( DISTINCT + - 10 )
----
5

skipif mysql # not compatible
query I rowsort label-8897
SELECT + 6 - + + COUNT ( DISTINCT + - 10 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT - MIN( ALL 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-8898
SELECT - MIN ( ALL 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT - 35 + - - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-8899
SELECT - 35 + - - COUNT ( * )
----
-34

query II rowsort
SELECT + 52 + + + 75 * - 53, 79 AS col2
----
-3923
79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8901
SELECT - CAST( NULL AS DECIMAL ), + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8901
SELECT - CAST ( NULL AS REAL ), + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT ALL 23 * CASE + MIN( - - 46 ) WHEN 36 THEN - - 40 + + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL 23 * CASE + MIN ( - - 46 ) WHEN 36 THEN - - 40 + + 60 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT + NULLIF ( CASE 92 WHEN + - 54 THEN 61 * + 23 * + 88 WHEN COUNT( - + ( - 78 ) ) THEN NULL ELSE + - 32 * - + CAST( NULL AS SIGNED ) + 99 + - ( + - NULLIF ( 19, COUNT( * ) ) ) END, 81 ) + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT + NULLIF ( CASE 92 WHEN + - 54 THEN 61 * + 23 * + 88 WHEN COUNT ( - + ( - 78 ) ) THEN NULL ELSE + - 32 * - + CAST ( NULL AS INTEGER ) + 99 + - ( + - NULLIF ( 19, COUNT ( * ) ) ) END, 81 ) + - 90 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT + 35 * + SUM( + 79 )
----
2765

skipif mysql # not compatible
query I rowsort label-8904
SELECT + 35 * + SUM ( + 79 )
----
2765

query I rowsort
SELECT ALL 40 * 27 AS col0
----
1080

onlyif mysql # DIV for integer division: 
query II rowsort label-8906
SELECT 37 DIV + 28 + + + 36 * - 37 * 93, - 4 AS col0
----
-123875
-4

skipif mysql # not compatible
query II rowsort label-8906
SELECT 37 / + 28 + + + 36 * - 37 * 93, - 4 AS col0
----
-123875
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + ( 28 ) + - + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-8907
SELECT + ( 28 ) + - + COUNT ( * )
----
27

query I rowsort
SELECT ALL 87 * + 97
----
8439

query II rowsort
SELECT DISTINCT + 22, + 80 col1
----
22
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8910
SELECT COALESCE ( 51, + 58 * - 93 * + - ( + ( + ( - - 30 ) ) ) * CAST( - 50 AS SIGNED ) - - CAST( NULL AS SIGNED ) + - 59 DIV + ( - 35 ) ) * + - 29 + + COUNT( DISTINCT - + 73 )
----
-1478

skipif mysql # not compatible
query I rowsort label-8910
SELECT COALESCE ( 51, + 58 * - 93 * + - ( + ( + ( - - 30 ) ) ) * CAST ( - 50 AS INTEGER ) - - CAST ( NULL AS INTEGER ) + - 59 / + ( - 35 ) ) * + - 29 + + COUNT ( DISTINCT - + 73 )
----
-1478

query I rowsort
SELECT + 75 + 88 AS col1
----
163

query II rowsort
SELECT + COALESCE ( + 66, + 23 ) AS col2, + 12 AS col0
----
66
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT - 30 * - COUNT( * ) + - 42 * - 75 AS col1
----
3180

skipif mysql # not compatible
query I rowsort label-8913
SELECT - 30 * - COUNT ( * ) + - 42 * - 75 AS col1
----
3180

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8914
SELECT + CAST( - 79 AS SIGNED ) DIV - 95 AS col0, + 38 AS col0
----
0
38

skipif mysql # not compatible
query II rowsort label-8914
SELECT + CAST ( - 79 AS INTEGER ) / - 95 AS col0, + 38 AS col0
----
0
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT - 68 * - COALESCE ( 9, - - 34 + + 24, + - 43 DIV - - 12 * + 68 )
----
612

skipif mysql # not compatible
query I rowsort label-8915
SELECT - 68 * - COALESCE ( 9, - - 34 + + 24, + - 43 / - - 12 * + 68 )
----
612

query I rowsort
SELECT - 3 + + 31
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT + SUM( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT + SUM ( + 2 )
----
2

query I rowsort
SELECT ALL - 66 * - + 33 col2
----
2178

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT DISTINCT COUNT( * ) * + 34 + 51, ( + COALESCE ( + 42, + - 79 ) ) AS col1
----
85
42

skipif mysql # not compatible
query II rowsort label-8919
SELECT DISTINCT COUNT ( * ) * + 34 + 51, ( + COALESCE ( + 42, + - 79 ) ) AS col1
----
85
42

query I rowsort
SELECT + 9 * - - ( 22 )
----
198

query I rowsort
SELECT - + 91 * + + 63 AS col0
----
-5733

query I rowsort
SELECT ALL + + 92 * - 31 + - 43
----
-2895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8923
SELECT ALL + + 48 * - 91 DIV - COUNT( * ) + + 18 * 76
----
5736

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL + + 48 * - 91 / - COUNT ( * ) + + 18 * 76
----
5736

query I rowsort
SELECT + + 40 col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT - MAX( ALL - + 66 ) * - - 72 * 38 AS col2
----
180576

skipif mysql # not compatible
query I rowsort label-8925
SELECT - MAX ( ALL - + 66 ) * - - 72 * 38 AS col2
----
180576

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL - + 62 + + - COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL - + 62 + + - COUNT ( * )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-8927
SELECT ALL + + 0 + + 47 + + 56 + + 25 DIV 40
----
103

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL + + 0 + + 47 + + 56 + + 25 / 40
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT - MAX( + 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-8928
SELECT - MAX ( + 69 )
----
-69

query I rowsort
SELECT - 41 + + 36 * + 90 * - + 9 AS col2
----
-29201

query I rowsort
SELECT 32 + + 18 * - 25 AS col1
----
-418

query I rowsort
SELECT - 81 * 80
----
-6480

query I rowsort
SELECT ALL - NULLIF ( - 16, + 17 ) * - 66 AS col0
----
-1056

query I rowsort
SELECT 24 + - 62 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT ALL COALESCE ( + COUNT( * ), + 65 * + 51 * ( - 91 ) ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8934
SELECT ALL COALESCE ( + COUNT ( * ), + 65 * + 51 * ( - 91 ) ), + COUNT ( * )
----
1
1

query I rowsort
SELECT 58 * 51
----
2958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8936
SELECT 94 + + + NULLIF ( - - 30, + MIN( + + 48 ) * ( + + CAST( + COUNT( * ) AS SIGNED ) ) ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-8936
SELECT 94 + + + NULLIF ( - - 30, + MIN ( + + 48 ) * ( + + CAST ( + COUNT ( * ) AS INTEGER ) ) ) AS col0
----
124

query II rowsort
SELECT DISTINCT 17, 65 + + - 44 col1
----
17
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8938
SELECT ALL 69, SUM( DISTINCT 69 ) AS col1
----
69
69

skipif mysql # not compatible
query II rowsort label-8938
SELECT ALL 69, SUM ( DISTINCT 69 ) AS col1
----
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT ALL 93 DIV - 43 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL 93 / - 43 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8940
SELECT ALL 81 AS col1, ( - - COUNT( * ) )
----
81
1

skipif mysql # not compatible
query II rowsort label-8940
SELECT ALL 81 AS col1, ( - - COUNT ( * ) )
----
81
1

query I rowsort
SELECT 74 * - 54 AS col1
----
-3996

query I rowsort
SELECT 9 * - 43
----
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT MAX( DISTINCT 61 ) * + - 11 AS col0
----
-671

skipif mysql # not compatible
query I rowsort label-8943
SELECT MAX ( DISTINCT 61 ) * + - 11 AS col0
----
-671

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT 99 - + + COUNT( * ) + MAX( - 59 ) + + 25
----
64

skipif mysql # not compatible
query I rowsort label-8944
SELECT 99 - + + COUNT ( * ) + MAX ( - 59 ) + + 25
----
64

query I rowsort
SELECT 9 * - - 64 col1
----
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8946
SELECT ALL - NULLIF ( - + 38, + NULLIF ( + - 47, + - CAST( NULL AS SIGNED ) - + + 88 DIV 83 DIV - 35 ) ) + 63 * 86 DIV + 33 - + + COUNT( * )
----
201

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL - NULLIF ( - + 38, + NULLIF ( + - 47, + - CAST ( NULL AS INTEGER ) - + + 88 / 83 / - 35 ) ) + 63 * 86 / + 33 - + + COUNT ( * )
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT DISTINCT 21 + 74 * - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT 21 + 74 * - - COUNT ( * )
----
95

query II rowsort
SELECT ALL 66 + 28 AS col1, 65 col2
----
94
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT DISTINCT - - SUM( DISTINCT 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT - - SUM ( DISTINCT 93 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL - 74 + COUNT( * ) * - COALESCE ( - - ( + 36 ), 88 ) * + - 60 AS col0
----
2086

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - 74 + COUNT ( * ) * - COALESCE ( - - ( + 36 ), 88 ) * + - 60 AS col0
----
2086

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8951
SELECT - CAST( + - 59 AS SIGNED ) col1, 91 * - COUNT( * ) + + - 21 + + 85 col2
----
59
-27

skipif mysql # not compatible
query II rowsort label-8951
SELECT - CAST ( + - 59 AS INTEGER ) col1, 91 * - COUNT ( * ) + + - 21 + + 85 col2
----
59
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT DISTINCT - COUNT( * ) * + 48 + 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT - COUNT ( * ) * + 48 + 24 AS col0
----
-24

query I rowsort
SELECT ALL 99 - + - 69 + + 23 AS col1
----
191

query II rowsort
SELECT ( - 24 ) AS col1, + 28
----
-24
28

query I rowsort
SELECT ALL + 33 * + + 28 + + 70 + 44 * + 82 + - - ( 3 ) AS col0
----
4605

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT + 5 * - ( - - COUNT( * ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8956
SELECT + 5 * - ( - - COUNT ( * ) ) AS col0
----
-5

query I rowsort
SELECT 80 - - 11 AS col0
----
91

query II rowsort
SELECT 36 AS col2, 43
----
36
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT ALL MIN( ALL + - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL MIN ( ALL + - 82 )
----
-82

query I rowsort
SELECT ALL - 10 + + 91 col2
----
81

query I rowsort
SELECT 0 - - + 33 - + + 48
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT COUNT( * ) - + 87 * - - 16 AS col2
----
-1391

skipif mysql # not compatible
query I rowsort label-8962
SELECT COUNT ( * ) - + 87 * - - 16 AS col2
----
-1391

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL MIN( ALL + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL MIN ( ALL + 30 )
----
30

query I rowsort
SELECT 83 * 74 AS col2
----
6142

query I rowsort
SELECT 90 + 85 + + 46 + - 98 * 43 * + + 7 + + 96 col0
----
-29181

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL + 47 * + COUNT( DISTINCT - - 82 ) + + + 43
----
90

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL + 47 * + COUNT ( DISTINCT - - 82 ) + + + 43
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8967
SELECT 11 DIV COUNT( * ) + - 70 * + 97 AS col0
----
-6779

skipif mysql # not compatible
query I rowsort label-8967
SELECT 11 / COUNT ( * ) + - 70 * + 97 AS col0
----
-6779

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT - ( - MAX( - - 69 ) ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT - ( - MAX ( - - 69 ) ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8969
SELECT 18 + COUNT( * ) AS col2, - 12 AS col0
----
19
-12

skipif mysql # not compatible
query II rowsort label-8969
SELECT 18 + COUNT ( * ) AS col2, - 12 AS col0
----
19
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8970
SELECT ALL + NULLIF ( - 92, - 92 ) * - + AVG ( + 32 ) + + CAST( NULL AS SIGNED ) * - + 23 AS col1, COUNT( - 85 ) * - 97 * 60 AS col2
----
NULL
-5820

skipif mysql # not compatible
query II rowsort label-8970
SELECT ALL + NULLIF ( - 92, - 92 ) * - + AVG ( + 32 ) + + CAST ( NULL AS INTEGER ) * - + 23 AS col1, COUNT ( - 85 ) * - 97 * 60 AS col2
----
NULL
-5820

query I rowsort
SELECT ALL + 70 * 96 + + + 38
----
6758

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT - - ( - - COUNT( * ) ) * 99
----
99

skipif mysql # not compatible
query I rowsort label-8972
SELECT - - ( - - COUNT ( * ) ) * 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT + + COUNT( * ) + 36
----
37

skipif mysql # not compatible
query I rowsort label-8973
SELECT + + COUNT ( * ) + 36
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT - 87 * - - 26 - - 65 + - + 37 DIV 73 + - + 10 + - 41 AS col1
----
-2248

skipif mysql # not compatible
query I rowsort label-8974
SELECT - 87 * - - 26 - - 65 + - + 37 / 73 + - + 10 + - 41 AS col1
----
-2248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8975
SELECT - 0 * COUNT( * ) DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8975
SELECT - 0 * COUNT ( * ) / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT + + 6 + 25 + - ( + COALESCE ( - 40, COUNT( * ) + + 91 ) ) / - CASE 22 WHEN 85 THEN + 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT + + 6 + 25 + - ( + COALESCE ( - 40, COUNT ( * ) + + 91 ) ) / - CASE 22 WHEN 85 THEN + 14 END
----
NULL

query I rowsort
SELECT DISTINCT + + ( + 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT + + 56 * 9 + - + MAX( ALL 60 )
----
444

skipif mysql # not compatible
query I rowsort label-8978
SELECT + + 56 * 9 + - + MAX ( ALL 60 )
----
444

query I rowsort
SELECT ALL - 51 * - 25 col1
----
1275

onlyif mysql # aggregate syntax: 
query II rowsort label-8980
SELECT + 59 + + COUNT( * ) col0, 67 AS col2
----
60
67

skipif mysql # not compatible
query II rowsort label-8980
SELECT + 59 + + COUNT ( * ) col0, 67 AS col2
----
60
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8981
SELECT DISTINCT + - COALESCE ( MIN( - 4 ), 42 + + + CASE + 90 WHEN + + 98 THEN + 81 WHEN - 47 DIV 63 * CAST( NULL AS SIGNED ) THEN NULL ELSE 51 + 1 * - 94 END, - - 39 DIV AVG ( + + ( 85 ) ) + 68 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT + - COALESCE ( MIN ( - 4 ), 42 + + + CASE + 90 WHEN + + 98 THEN + 81 WHEN - 47 / 63 * CAST ( NULL AS INTEGER ) THEN NULL ELSE 51 + 1 * - 94 END, - - 39 / AVG ( + + ( 85 ) ) + 68 ) AS col2
----
4

query I rowsort
SELECT + 3 * - - 15
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + 72 * - 62 * + - COUNT( * ) + 78 * - + MAX( ALL + 98 )
----
-3180

skipif mysql # not compatible
query I rowsort label-8983
SELECT + 72 * - 62 * + - COUNT ( * ) + 78 * - + MAX ( ALL + 98 )
----
-3180

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT DISTINCT + COALESCE ( + - 39, - 74 * + 29 DIV - - 1 + + 43, - 54 + - + 91 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + COALESCE ( + - 39, - 74 * + 29 / - - 1 + + 43, - 54 + - + 91 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT + - 4 + MAX( ALL - + 55 )
----
-59

skipif mysql # not compatible
query I rowsort label-8985
SELECT + - 4 + MAX ( ALL - + 55 )
----
-59

query I rowsort
SELECT + 30 - - ( + 88 )
----
118

query I rowsort
SELECT + + 30 + + 66 + - 13
----
83

query II rowsort
SELECT DISTINCT + 19 * 69 * + 46 + - 77 + - 87 AS col2, 83 AS col0
----
60142
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8989
SELECT DISTINCT 29 DIV - - 19 col0
----
1

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT 29 / - - 19 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8990
SELECT ALL 64 + + 53 + + MAX( DISTINCT - 65 ) + - COUNT( * ) * - - COUNT( * ) * - 99 + CAST( + - 53 AS SIGNED ) - 52 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL 64 + + 53 + + MAX ( DISTINCT - 65 ) + - COUNT ( * ) * - - COUNT ( * ) * - 99 + CAST ( + - 53 AS INTEGER ) - 52 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT DISTINCT 23 + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT 23 + + COUNT ( * )
----
24

query I rowsort
SELECT + 46 * - - 15
----
690

query I rowsort
SELECT ALL 58 + + - 53 + - + 32
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL MIN( + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL MIN ( + 81 )
----
81

query I rowsort
SELECT - 28 + + + 26
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT + CAST( NULL AS SIGNED ) * 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT + CAST ( NULL AS INTEGER ) * 90 AS col1
----
NULL

query I rowsort
SELECT ALL - 79 + + 61 AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8998
SELECT + COUNT( * ) * 75 * 44 AS col0, ( + 82 ) DIV - 99 + - + 44 + + 27
----
3300
-17

skipif mysql # not compatible
query II rowsort label-8998
SELECT + COUNT ( * ) * 75 * 44 AS col0, ( + 82 ) / - 99 + - + 44 + + 27
----
3300
-17

query I rowsort
SELECT ALL 22 + - + 83
----
-61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9000
SELECT ALL - CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL - CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 98 ) AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9002
SELECT CAST( - COALESCE ( COUNT( - + 94 ), - 52 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9002
SELECT CAST ( - COALESCE ( COUNT ( - + 94 ), - 52 ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT + CAST( - + 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-9003
SELECT + CAST ( - + 8 AS INTEGER )
----
-8

query I rowsort
SELECT - 38 * - - 7 AS col0
----
-266

query II rowsort
SELECT - 50 * 67 * - + 96 * 95 AS col2, - 99
----
30552000
-99

query I rowsort
SELECT ALL + 57 * + 10
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL + 46 * + 24 * + + COUNT( * ) * + - 18 AS col0
----
-19872

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL + 46 * + 24 * + + COUNT ( * ) * + - 18 AS col0
----
-19872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9008
SELECT - CAST( + 4 AS SIGNED ) * + 19 * + COUNT( * ) * + 72 - MAX( + - 36 )
----
-5436

skipif mysql # not compatible
query I rowsort label-9008
SELECT - CAST ( + 4 AS INTEGER ) * + 19 * + COUNT ( * ) * + 72 - MAX ( + - 36 )
----
-5436

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT DISTINCT + + 26 * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT + + 26 * COUNT ( * )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9010
SELECT ALL + CAST( - - AVG ( - 13 ) AS SIGNED ) * - 87 - - COUNT( + 3 ) col1, 93 * - 25 AS col1
----
1132
-2325

skipif mysql # not compatible
query II rowsort label-9010
SELECT ALL + CAST ( - - AVG ( - 13 ) AS INTEGER ) * - 87 - - COUNT ( + 3 ) col1, 93 * - 25 AS col1
----
1132
-2325

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9011
SELECT - + 86 DIV - COUNT( ALL - 39 ) - - MIN( 42 ) + SUM( ALL - ( - 74 ) ) AS col2
----
202

skipif mysql # not compatible
query I rowsort label-9011
SELECT - + 86 / - COUNT ( ALL - 39 ) - - MIN ( 42 ) + SUM ( ALL - ( - 74 ) ) AS col2
----
202

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9012
SELECT ALL CAST( + 72 AS SIGNED ) DIV + COALESCE ( + 52, COALESCE ( + 29, + - 57 DIV 71 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL CAST ( + 72 AS INTEGER ) / + COALESCE ( + 52, COALESCE ( + 29, + - 57 / 71 ) ) col2
----
1

query I rowsort
SELECT - + 16 + 42
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9014
SELECT + + 84, + 28 - + 90 + 10 * + + COUNT( * ) + + 55 AS col1
----
84
3

skipif mysql # not compatible
query II rowsort label-9014
SELECT + + 84, + 28 - + 90 + 10 * + + COUNT ( * ) + + 55 AS col1
----
84
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9015
SELECT ALL + - 1 DIV + + 7 + - + 35 + MAX( DISTINCT - 8 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + - 1 / + + 7 + - + 35 + MAX ( DISTINCT - 8 ) AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9016
SELECT - ( 77 ) DIV + + NULLIF ( COUNT( * ), 94 * + ( + 55 ) )
----
-77

skipif mysql # not compatible
query I rowsort label-9016
SELECT - ( 77 ) / + + NULLIF ( COUNT ( * ), 94 * + ( + 55 ) )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT + ( CAST( - ( + 62 ) AS SIGNED ) )
----
-62

skipif mysql # not compatible
query I rowsort label-9017
SELECT + ( CAST ( - ( + 62 ) AS INTEGER ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT - ( MIN( - 29 ) ) + 16
----
45

skipif mysql # not compatible
query I rowsort label-9018
SELECT - ( MIN ( - 29 ) ) + 16
----
45

query I rowsort
SELECT - - 0 + - - 41 AS col2
----
41

query I rowsort
SELECT + + 84 * 46
----
3864

query II rowsort
SELECT ALL - 58 AS col1, 19 + + 6 * + 83 - - - 86
----
-58
431

query I rowsort
SELECT - COALESCE ( - + NULLIF ( + 93, + - 4 + 59 + + 39 ), + - 1 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL + 35 * + - ( - 18 ) + 43 * COUNT( ALL - 80 ) AS col2
----
673

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL + 35 * + - ( - 18 ) + 43 * COUNT ( ALL - 80 ) AS col2
----
673

query II rowsort
SELECT + 52 * 35 * + 96 * - 29 AS col0, + 13 AS col0
----
-5066880
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT MAX( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT MAX ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT SUM( - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-9026
SELECT SUM ( - 28 )
----
-28

query I rowsort
SELECT ALL NULLIF ( 49, + 32 * + CASE + 70 WHEN 67 THEN + 31 * - - 55 ELSE NULL END * - 31 ) + - 88
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT ALL + 75 + + NULLIF ( + 63, + + CASE - 3 WHEN + ( + + AVG ( ALL - + 9 ) ) THEN + 24 * + + COUNT( * ) + + MAX( ALL 60 ) END ) AS col2
----
138

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL + 75 + + NULLIF ( + 63, + + CASE - 3 WHEN + ( + + AVG ( ALL - + 9 ) ) THEN + 24 * + + COUNT ( * ) + + MAX ( ALL 60 ) END ) AS col2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + 92 + + + 50 * - - 13 + MIN( - 67 ) + + 44
----
719

skipif mysql # not compatible
query I rowsort label-9029
SELECT + 92 + + + 50 * - - 13 + MIN ( - 67 ) + + 44
----
719

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT ALL 4 + + CAST( 65 AS SIGNED ) + 37 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL 4 + + CAST ( 65 AS INTEGER ) + 37 AS col1
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT ALL CAST( AVG ( + 66 ) AS SIGNED ) * + 63 AS col1
----
4158

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL CAST ( AVG ( + 66 ) AS INTEGER ) * + 63 AS col1
----
4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9032
SELECT ALL CASE - CASE 79 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN 1 THEN COUNT( * ) END WHEN - 16 + - CAST( NULL AS DECIMAL ) * + ( - 40 ) THEN 54 * COUNT( * ) / NULLIF ( COALESCE ( 81, + SUM( + - 18 ), + + COUNT( * ) ), 74 ) - + CASE + ( + + AVG ( - + 68 ) ) WHEN - 97 THEN - 72 END + - CASE ( - CAST( NULL AS SIGNED ) ) WHEN MAX( ALL 87 ) + - 2 THEN NULL WHEN - NULLIF ( 38, CAST( NULL AS SIGNED ) ) THEN - CASE WHEN NOT 81 <> COUNT( * ) + CAST( NULL AS SIGNED ) * 64 THEN COUNT( * ) / - 89 WHEN NULL NOT BETWEEN 4 * 44 AND - 89 THEN NULL ELSE + ( 91 ) * + 22 END / 47 END * + 82 WHEN 68 THEN + 52 ELSE ( - 49 ) END + CAST( NULL AS SIGNED ) * + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL CASE - CASE 79 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN 1 THEN COUNT ( * ) END WHEN - 16 + - CAST ( NULL AS REAL ) * + ( - 40 ) THEN 54 * COUNT ( * ) / NULLIF ( COALESCE ( 81, + SUM ( + - 18 ), + + COUNT ( * ) ), 74 ) - + CASE + ( + + AVG ( - + 68 ) ) WHEN - 97 THEN - 72 END + - CASE ( - CAST ( NULL AS INTEGER ) ) WHEN MAX ( ALL 87 ) + - 2 THEN NULL WHEN - NULLIF ( 38, CAST ( NULL AS INTEGER ) ) THEN - CASE WHEN NOT 81 <> COUNT ( * ) + CAST ( NULL AS INTEGER ) * 64 THEN COUNT ( * ) / - 89 WHEN NULL NOT BETWEEN 4 * 44 AND - 89 THEN NULL ELSE + ( 91 ) * + 22 END / 47 END * + 82 WHEN 68 THEN + 52 ELSE ( - 49 ) END + CAST ( NULL AS INTEGER ) * + 50 AS col2
----
NULL

query I rowsort
SELECT ALL COALESCE ( 31, - 72 ) AS col0
----
31

query I rowsort
SELECT + 62 - + 3 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ( - COUNT( * ) ) + - 53
----
-54

skipif mysql # not compatible
query I rowsort label-9035
SELECT ( - COUNT ( * ) ) + - 53
----
-54

query I rowsort
SELECT 15 * + 41
----
615

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT NULLIF ( - ( - - 6 ), + 71 + 67 ) + - - 93 * - COUNT( * ) - - + SUM( DISTINCT NULLIF ( + 48, + - 99 + - - 98 / 14 ) ) + 82 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-9037
SELECT NULLIF ( - ( - - 6 ), + 71 + 67 ) + - - 93 * - COUNT ( * ) - - + SUM ( DISTINCT NULLIF ( + 48, + - 99 + - - 98 / 14 ) ) + 82 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9038
SELECT ( + 1 ) + - ( - + 41 ) - COUNT( * ) + - - CAST( + 35 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-9038
SELECT ( + 1 ) + - ( - + 41 ) - COUNT ( * ) + - - CAST ( + 35 AS INTEGER )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT - + 50 DIV 42 + - 46
----
-47

skipif mysql # not compatible
query I rowsort label-9039
SELECT - + 50 / 42 + - 46
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT ALL - - CAST( 99 AS SIGNED ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL - - CAST ( 99 AS INTEGER ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL - COUNT( 80 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - COUNT ( 80 ) col1
----
-1

query I rowsort
SELECT + 58 * 60 AS col0
----
3480

query I rowsort
SELECT DISTINCT - - 36 + - 73 + + 98 + 28 * - 71
----
-1927

query I rowsort
SELECT DISTINCT + 52 * 49
----
2548

query II rowsort
SELECT DISTINCT + 41 * 85 AS col1, 12 AS col1
----
3485
12

query I rowsort
SELECT ( - 31 ) * - 75
----
2325

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9047
SELECT ALL + CAST( NULL AS DECIMAL ) + + + 72 / - 92 * - 27 - - COUNT( DISTINCT + 7 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL + CAST ( NULL AS REAL ) + + + 72 / - 92 * - 27 - - COUNT ( DISTINCT + 7 ) AS col2
----
NULL

query I rowsort
SELECT 1 + + 94 AS col1
----
95

query I rowsort
SELECT DISTINCT + 16 + 12 - 4 AS col1
----
24

query I rowsort
SELECT ALL - - 18 col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9051
SELECT 9 + 40 * + 36 - - + CAST( + 74 AS SIGNED ) + - 35 + CAST( - ( - 84 ) AS SIGNED ) + + 54
----
1626

skipif mysql # not compatible
query I rowsort label-9051
SELECT 9 + 40 * + 36 - - + CAST ( + 74 AS INTEGER ) + - 35 + CAST ( - ( - 84 ) AS INTEGER ) + + 54
----
1626

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9052
SELECT 18 AS col1, 36 * 36 - + + COUNT( * ) - + 52 * + + 37 + - + 71 DIV 55 * - + 50 * 24
----
18
571

skipif mysql # not compatible
query II rowsort label-9052
SELECT 18 AS col1, 36 * 36 - + + COUNT ( * ) - + 52 * + + 37 + - + 71 / 55 * - + 50 * 24
----
18
571

onlyif mysql # aggregate syntax: 
query II rowsort label-9053
SELECT - 73 * 53 * + ( + NULLIF ( 20, + - COUNT( * ) ) ) + + 60 * COALESCE ( - 50, + COUNT( * ) ) + - + CASE - + 26 WHEN 34 THEN + COUNT( * ) * - COUNT( * ) * + + 19 END AS col2, 75 AS col2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-9053
SELECT - 73 * 53 * + ( + NULLIF ( 20, + - COUNT ( * ) ) ) + + 60 * COALESCE ( - 50, + COUNT ( * ) ) + - + CASE - + 26 WHEN 34 THEN + COUNT ( * ) * - COUNT ( * ) * + + 19 END AS col2, 75 AS col2
----
NULL
75

query I rowsort
SELECT ALL + 79 + 93
----
172

query I rowsort
SELECT 93 * + 47 AS col2
----
4371

query I rowsort
SELECT 99 + - 56
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT 3 - + - MIN( + 90 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9057
SELECT 3 - + - MIN ( + 90 ) AS col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9058
SELECT ALL 74, CAST( NULL AS SIGNED ) - + 5 + 0 + + ( + 66 ) + + CAST( NULL AS SIGNED ) - SUM( DISTINCT + ( 57 ) ) AS col2
----
74
NULL

skipif mysql # not compatible
query II rowsort label-9058
SELECT ALL 74, CAST ( NULL AS INTEGER ) - + 5 + 0 + + ( + 66 ) + + CAST ( NULL AS INTEGER ) - SUM ( DISTINCT + ( 57 ) ) AS col2
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT COUNT( * ) + - 41 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-9059
SELECT COUNT ( * ) + - 41 AS col2
----
-40

query II rowsort
SELECT DISTINCT ( + - 72 ) * - 28 col0, 91
----
2016
91

query I rowsort
SELECT DISTINCT + 62 - - + 65
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT COUNT( * ) + - + 47 + - ( + + 38 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9062
SELECT COUNT ( * ) + - + 47 + - ( + + 38 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT COUNT( * ) * 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-9063
SELECT COUNT ( * ) * 82 AS col0
----
82

query I rowsort
SELECT 60 * ( + + 42 )
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT DISTINCT SUM( + - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT SUM ( + - 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT 98 * - - COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-9066
SELECT 98 * - - COUNT ( * ) AS col1
----
98

query I rowsort
SELECT DISTINCT - 8 * - + 2
----
16

query I rowsort
SELECT - 33 + - 12 AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9069
SELECT MIN( ALL 77 ) DIV + - 80
----
0

skipif mysql # not compatible
query I rowsort label-9069
SELECT MIN ( ALL 77 ) / + - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT - MAX( 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9070
SELECT - MAX ( 16 ) AS col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9071
SELECT 67 * - NULLIF ( + 54, - CAST( NULL AS SIGNED ) ) AS col2
----
-3618

skipif mysql # not compatible
query I rowsort label-9071
SELECT 67 * - NULLIF ( + 54, - CAST ( NULL AS INTEGER ) ) AS col2
----
-3618

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL 34 * 41 + - 37 + + COALESCE ( - - ( + COUNT( * ) ), COUNT( + COALESCE ( 82, - 52 * 83 ) ) * + + ( + NULLIF ( + - 12, - 68 ) ) * 93 * 56 + + + 97 - + 5 * COUNT( * ) ) * 65 AS col1
----
1422

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL 34 * 41 + - 37 + + COALESCE ( - - ( + COUNT ( * ) ), COUNT ( + COALESCE ( 82, - 52 * 83 ) ) * + + ( + NULLIF ( + - 12, - 68 ) ) * 93 * 56 + + + 97 - + 5 * COUNT ( * ) ) * 65 AS col1
----
1422

query II rowsort
SELECT DISTINCT - - COALESCE ( - 47, + - 55 ) AS col2, 16 * - 64 * - - 21 * 59 AS col0
----
-47
-1268736

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT DISTINCT - + 8 + 22 * + 56 * + 16 - + COUNT( * )
----
19703

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT - + 8 + 22 * + 56 * + 16 - + COUNT ( * )
----
19703

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9075
SELECT - 63 + CAST( 83 AS SIGNED ) + - 56 * 33 DIV 63 * + 45 * - 33
----
43085

skipif mysql # not compatible
query I rowsort label-9075
SELECT - 63 + CAST ( 83 AS INTEGER ) + - 56 * 33 / 63 * + 45 * - 33
----
43085

query I rowsort
SELECT + ( + 92 ) - + + 20 * 47
----
-848

query I rowsort
SELECT ALL - ( + - 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT + 46 - + COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9078
SELECT + 46 - + COUNT ( * ) AS col0
----
45

query I rowsort
SELECT ALL - 47 + 96 AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9080
SELECT DISTINCT 64 DIV + - CAST( + 92 AS SIGNED ) * + - 23 * 18
----
0

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT 64 / + - CAST ( + 92 AS INTEGER ) * + - 23 * 18
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9081
SELECT ALL 99 * 62 DIV - 98 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL 99 * 62 / - 98 AS col2
----
-62

query I rowsort
SELECT 28 * ( + CASE WHEN NOT NULL >= NULL THEN NULL ELSE 17 END )
----
476

query II rowsort
SELECT - 32, + 45 + - 83 + - - 58 AS col1
----
-32
20

query I rowsort
SELECT - 10 * + - 33
----
330

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9085
SELECT - 15 * - COALESCE ( - - NULLIF ( + 20, CAST( + + 93 AS SIGNED ) ), + ( - 64 ) ) * - 60 AS col2, - 5
----
-18000
-5

skipif mysql # not compatible
query II rowsort label-9085
SELECT - 15 * - COALESCE ( - - NULLIF ( + 20, CAST ( + + 93 AS INTEGER ) ), + ( - 64 ) ) * - 60 AS col2, - 5
----
-18000
-5

query I rowsort
SELECT - 27 - + 15 AS col0
----
-42

query I rowsort
SELECT - 86 * + - 18 AS col1
----
1548

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT - SUM( DISTINCT + 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9088
SELECT - SUM ( DISTINCT + 55 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT - COUNT( * ) + + - 65 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9089
SELECT - COUNT ( * ) + + - 65 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL + 58 * COUNT( * ) * - CASE - - 85 WHEN - SUM( - 29 ) THEN 28 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL + 58 * COUNT ( * ) * - CASE - - 85 WHEN - SUM ( - 29 ) THEN 28 END AS col1
----
NULL

query I rowsort
SELECT - 79 + 94
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9092
SELECT ALL SUM( DISTINCT + 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9092
SELECT ALL SUM ( DISTINCT + 23 ) AS col1
----
23

query II rowsort
SELECT - 54 AS col2, 81 + - + 29 AS col1
----
-54
52

query I rowsort
SELECT - 56 * - - ( - 69 ) * 25
----
96600

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL 67 * + - COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL 67 * + - COUNT ( * ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-9096
SELECT ALL - 67 * - 89 * + COUNT( * ) + + 45, 33 * + + 51 AS col0
----
6008
1683

skipif mysql # not compatible
query II rowsort label-9096
SELECT ALL - 67 * - 89 * + COUNT ( * ) + + 45, 33 * + + 51 AS col0
----
6008
1683

query I rowsort
SELECT - + 4 + + - 47 AS col0
----
-51

query II rowsort
SELECT - - 46, + 74 AS col1
----
46
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9099
SELECT - - 29 + + + 34, 12 * SUM( 58 ) AS col1
----
63
696

skipif mysql # not compatible
query II rowsort label-9099
SELECT - - 29 + + + 34, 12 * SUM ( 58 ) AS col1
----
63
696

query II rowsort
SELECT 16, + 80 AS col0
----
16
80

query I rowsort
SELECT - + NULLIF ( - 96, 32 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT + + 49 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT + + 49 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9103
SELECT ALL CAST( - - AVG ( 78 ) AS SIGNED ) + + - 7
----
71

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL CAST ( - - AVG ( 78 ) AS INTEGER ) + + - 7
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9104
SELECT - MAX( ALL - + COALESCE ( + ( - 35 ), - 46 ) ) + + 56 * + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT - MAX ( ALL - + COALESCE ( + ( - 35 ), - 46 ) ) + + 56 * + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 15 + - 39 * + 26 * + + 66 AS col1
----
-66909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9106
SELECT DISTINCT - 90 * - - 87 * + 47 - + 34 + 95 + - COALESCE ( COUNT( ALL - + 98 ), + 18 * 33 + - CAST( SUM( 24 ) AS SIGNED ) - 68 - - - 79 )
----
-367950

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT - 90 * - - 87 * + 47 - + 34 + 95 + - COALESCE ( COUNT ( ALL - + 98 ), + 18 * 33 + - CAST ( SUM ( 24 ) AS INTEGER ) - 68 - - - 79 )
----
-367950

query I rowsort
SELECT ALL + 54 * - 90 + - 23 + 88 + 63
----
-4732

query II rowsort
SELECT + + 97 * - 90 AS col1, 41 AS col1
----
-8730
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT + NULLIF ( - 10, + COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-9109
SELECT + NULLIF ( - 10, + COUNT ( * ) )
----
-10

query I rowsort
SELECT - - 25 * 53 + + 45 AS col0
----
1370

query I rowsort
SELECT DISTINCT + 58 * + 93 col2
----
5394

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9112
SELECT - CAST( 51 AS SIGNED ) AS col1, + 64 AS col1
----
-51
64

skipif mysql # not compatible
query II rowsort label-9112
SELECT - CAST ( 51 AS INTEGER ) AS col1, + 64 AS col1
----
-51
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9113
SELECT - 22 DIV + COALESCE ( + 92, + - 88 * + + 85 + - COALESCE ( + 88, + - 21 ) + - - 1 * + 35 ) + - 77 - - SUM( - 91 ) AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-9113
SELECT - 22 / + COALESCE ( + 92, + - 88 * + + 85 + - COALESCE ( + 88, + - 21 ) + - - 1 * + 35 ) + - 77 - - SUM ( - 91 ) AS col1
----
-168

query I rowsort
SELECT + 69 * + 22
----
1518

query I rowsort
SELECT ALL + 53 * + 53 - + 19
----
2790

query I rowsort
SELECT DISTINCT 64 * 72 * 92
----
423936

onlyif mysql # aggregate syntax: 
query II rowsort label-9117
SELECT CASE 43 WHEN + 42 * ( 4 ) THEN + COUNT( - 97 ) ELSE NULL END, ( - 37 ) AS col0
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-9117
SELECT CASE 43 WHEN + 42 * ( 4 ) THEN + COUNT ( - 97 ) ELSE NULL END, ( - 37 ) AS col0
----
NULL
-37

query I rowsort
SELECT + ( + - 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT ALL - COUNT( * ) * + 89 * - 17 * + - 64 - - + 73 + + 69 AS col0
----
-96690

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - COUNT ( * ) * + 89 * - 17 * + - 64 - - + 73 + + 69 AS col0
----
-96690

onlyif mysql # aggregate syntax: 
query II rowsort label-9120
SELECT - 63 + - COUNT( * ) AS col0, + 88 * SUM( 78 ) * 52 + - 54
----
-64
356874

skipif mysql # not compatible
query II rowsort label-9120
SELECT - 63 + - COUNT ( * ) AS col0, + 88 * SUM ( 78 ) * 52 + - 54
----
-64
356874

query I rowsort
SELECT - 22 * + ( + 47 )
----
-1034

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT + 34 * - MAX( DISTINCT - 28 ) AS col1
----
952

skipif mysql # not compatible
query I rowsort label-9122
SELECT + 34 * - MAX ( DISTINCT - 28 ) AS col1
----
952

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT + 26 * - COUNT( * ) + - 60 col1
----
-86

skipif mysql # not compatible
query I rowsort label-9123
SELECT + 26 * - COUNT ( * ) + - 60 col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT - 51 * - 17 + + + ( + 36 ) * + - 25 + - COUNT( * ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-9124
SELECT - 51 * - 17 + + + ( + 36 ) * + - 25 + - COUNT ( * ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + 86 * - + COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9125
SELECT + 86 * - + COUNT ( * ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9126
SELECT ALL COUNT( * ) * - 59, 49 AS col0
----
-59
49

skipif mysql # not compatible
query II rowsort label-9126
SELECT ALL COUNT ( * ) * - 59, 49 AS col0
----
-59
49

query II rowsort
SELECT DISTINCT ( 49 ) AS col1, + 35 - + + 24
----
49
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT DISTINCT COUNT( * ) * - + 9 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT COUNT ( * ) * - + 9 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT - 56 * COUNT( * ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-9129
SELECT - 56 * COUNT ( * ) col2
----
-56

query I rowsort
SELECT ALL + 54 + 0 * 29
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL - COUNT( * ) + ( + 49 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL - COUNT ( * ) + ( + 49 ) AS col0
----
48

query I rowsort
SELECT - ( 1 ) + - 68 + 35 * - + 56 * - 30 AS col0
----
58731

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT - 98 * + 33 - ( - COUNT( * ) ) col1
----
-3233

skipif mysql # not compatible
query I rowsort label-9133
SELECT - 98 * + 33 - ( - COUNT ( * ) ) col1
----
-3233

query I rowsort
SELECT DISTINCT + + 92 + - NULLIF ( - 31, - NULLIF ( - 79, + ( + COALESCE ( - - 49, 72 * - 62 ) ) ) * - - 7 * 17 ) AS col0
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9135
SELECT DISTINCT ( - 73 ), 55 AS col1, - SUM( ALL 20 ) DIV - + 44 AS col0
----
-73
55
0

skipif mysql # not compatible
query III rowsort label-9135
SELECT DISTINCT ( - 73 ), 55 AS col1, - SUM ( ALL 20 ) / - + 44 AS col0
----
-73
55
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT DISTINCT - + 12 + 75 + - 15 + + - 44 + - COALESCE ( + COUNT( * ), - 21 - - SUM( ALL - ( 10 ) ) - 59, NULLIF ( - - ( - 36 ), COUNT( * ) * + + 62 - + 95 ) )
----
3

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT - + 12 + 75 + - 15 + + - 44 + - COALESCE ( + COUNT ( * ), - 21 - - SUM ( ALL - ( 10 ) ) - 59, NULLIF ( - - ( - 36 ), COUNT ( * ) * + + 62 - + 95 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL + 86 + - + NULLIF ( - COUNT( * ), 2 ) - 86 + + - 26 col1
----
-25

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL + 86 + - + NULLIF ( - COUNT ( * ), 2 ) - 86 + + - 26 col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL - COALESCE ( - 57, + 55 ) * - + COUNT( * ) + + COUNT( * ) + - + 78 AS col1
----
-134

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL - COALESCE ( - 57, + 55 ) * - + COUNT ( * ) + + COUNT ( * ) + - + 78 AS col1
----
-134

query I rowsort
SELECT - + ( 46 ) * - 34 AS col1
----
1564

query II rowsort
SELECT ALL - - 62 + 91 AS col0, - 3 - 64 AS col0
----
153
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9141
SELECT ALL - - COUNT( ALL 80 ) * + NULLIF ( 41, - + CAST( - 49 AS DECIMAL ) + + + 63 + - 66 + - + 66 ) + + ( + 73 ) AS col1
----
114

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL - - COUNT ( ALL 80 ) * + NULLIF ( 41, - + CAST ( - 49 AS REAL ) + + + 63 + - 66 + - + 66 ) + + ( + 73 ) AS col1
----
114

query I rowsort
SELECT - + 56 + 37 - - 14
----
-5

query I rowsort
SELECT - 1 * + ( 24 )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9144
SELECT + MAX( - - ( + 17 ) ) DIV - 37 * - 59 * 70 + - 19 + - 67
----
-86

skipif mysql # not compatible
query I rowsort label-9144
SELECT + MAX ( - - ( + 17 ) ) / - 37 * - 59 * 70 + - 19 + - 67
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9145
SELECT + ( + 63 ) / + 76 * - - 40 + - CAST( NULL AS SIGNED ) - - 1 + 30 AS col1, + 71
----
NULL
71

skipif mysql # not compatible
query II rowsort label-9145
SELECT + ( + 63 ) / + 76 * - - 40 + - CAST ( NULL AS INTEGER ) - - 1 + 30 AS col1, + 71
----
NULL
71

query I rowsort
SELECT + - 85 * + - 44 * - 94
----
-351560

query I rowsort
SELECT ALL + + ( + + 4 )
----
4

query I rowsort
SELECT + 70 * + + 98 AS col1
----
6860

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL + ( + - SUM( ALL ( 93 ) ) )
----
-93

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + ( + - SUM ( ALL ( 93 ) ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT COUNT( * ) * + 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9150
SELECT COUNT ( * ) * + 65 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT DISTINCT - MIN( 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT - MIN ( 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT 43 * + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9152
SELECT 43 * + COUNT ( * ) AS col2
----
43

query II rowsort
SELECT - 48 AS col0, 69
----
-48
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9154
SELECT COUNT( * ) + 32 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT COUNT ( * ) + 32 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT - 51 AS col1, - 3 + - ( - + 49 )
----
-51
46

query I rowsort
SELECT 43 + 20 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL 32 + + COUNT( * ) + + - ( - 74 )
----
107

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL 32 + + COUNT ( * ) + + - ( - 74 )
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9158
SELECT + 8 - - 91 - + SUM( + 25 ) DIV COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9158
SELECT + 8 - - 91 - + SUM ( + 25 ) / COUNT ( * ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9159
SELECT + CAST( + MAX( - 67 ) AS SIGNED ) * COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-9159
SELECT + CAST ( + MAX ( - 67 ) AS INTEGER ) * COUNT ( * )
----
-67

query I rowsort
SELECT 76 + 80
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT ALL - NULLIF ( - - ( + + COUNT( * ) ), - + COUNT( DISTINCT + + 31 ) + + + ( - COUNT( * ) ) * + 4 * - + COUNT( * ) ) + - 4 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL - NULLIF ( - - ( + + COUNT ( * ) ), - + COUNT ( DISTINCT + + 31 ) + + + ( - COUNT ( * ) ) * + 4 * - + COUNT ( * ) ) + - 4 AS col2
----
-5

query I rowsort
SELECT + 35 + NULLIF ( + - 92, 85 ) AS col2
----
-57

query I rowsort
SELECT ALL + 15 + + 99 - - 18
----
132

query I rowsort
SELECT + 49 + 5
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9165
SELECT COUNT( * ) - - + 84 * MIN( - CAST( NULL AS SIGNED ) ) * - 15 + - AVG ( + 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT COUNT ( * ) - - + 84 * MIN ( - CAST ( NULL AS INTEGER ) ) * - 15 + - AVG ( + 22 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9166
SELECT - 9 col1, + SUM( ALL + 6 ) col0
----
-9
6

skipif mysql # not compatible
query II rowsort label-9166
SELECT - 9 col1, + SUM ( ALL + 6 ) col0
----
-9
6

query II rowsort
SELECT ALL 20, 95 AS col2
----
20
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT - COUNT( - + 18 ) + + 28 * - 7
----
-197

skipif mysql # not compatible
query I rowsort label-9168
SELECT - COUNT ( - + 18 ) + + 28 * - 7
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT + COALESCE ( + + 0, MIN( 87 ) ) * - 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9169
SELECT + COALESCE ( + + 0, MIN ( 87 ) ) * - 82 AS col1
----
0

query II rowsort
SELECT - 82 AS col1, 50
----
-82
50

query II rowsort
SELECT - 15, 91 col0
----
-15
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9172
SELECT - CAST( NULL AS SIGNED ) AS col0, 5 AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-9172
SELECT - CAST ( NULL AS INTEGER ) AS col0, 5 AS col2
----
NULL
5

query I rowsort
SELECT 83 + - 14 AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT ALL + + 22 DIV - 29 col2
----
0

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL + + 22 / - 29 col2
----
0

query I rowsort
SELECT + 65 + - - 85
----
150

query I rowsort
SELECT ALL - 39 - + 42 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT ( 24 ) + ( - + COUNT( * ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-9177
SELECT ( 24 ) + ( - + COUNT ( * ) ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT 93 / + + CASE + COUNT( * ) WHEN 49 * + 29 / + 84 * + AVG ( ALL - - 59 ) * + + 80 THEN - + NULLIF ( 38, - - 30 + 53 + MIN( ALL - 55 ) ) + - 49 WHEN - SUM( ALL - 79 ) THEN + CASE + 8 WHEN - CASE 26 WHEN - NULLIF ( - + 23, 44 + 55 ) + + - 25 + - COALESCE ( COALESCE ( - 78, - + NULLIF ( - 42, + 76 * + 50 ) + 5, + 61, 9 ), 33 + 57 ) THEN NULL WHEN - 71 THEN 53 ELSE NULL END * - 40 + COUNT( * ) THEN NULL ELSE + 36 * 67 END * NULLIF ( + MIN( 44 ) * + 55, 49 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT 93 / + + CASE + COUNT ( * ) WHEN 49 * + 29 / + 84 * + AVG ( ALL - - 59 ) * + + 80 THEN - + NULLIF ( 38, - - 30 + 53 + MIN ( ALL - 55 ) ) + - 49 WHEN - SUM ( ALL - 79 ) THEN + CASE + 8 WHEN - CASE 26 WHEN - NULLIF ( - + 23, 44 + 55 ) + + - 25 + - COALESCE ( COALESCE ( - 78, - + NULLIF ( - 42, + 76 * + 50 ) + 5, + 61, 9 ), 33 + 57 ) THEN NULL WHEN - 71 THEN 53 ELSE NULL END * - 40 + COUNT ( * ) THEN NULL ELSE + 36 * 67 END * NULLIF ( + MIN ( 44 ) * + 55, 49 ) END
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 2, + - 53 ) * + + ( 69 ) * + 58 + - 8 * + - 97
----
8780

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT 18 * - MIN( + - 20 )
----
360

skipif mysql # not compatible
query I rowsort label-9180
SELECT 18 * - MIN ( + - 20 )
----
360

query I rowsort
SELECT DISTINCT - 53 + 76
----
23

query I rowsort
SELECT ALL - ( + 9 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT - 18 * + COUNT( * ) + + 80 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9183
SELECT - 18 * + COUNT ( * ) + + 80 AS col1
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-9184
SELECT DISTINCT 92 + - 29 AS col0, + 60 DIV - 35 AS col2
----
63
-1

skipif mysql # not compatible
query II rowsort label-9184
SELECT DISTINCT 92 + - 29 AS col0, + 60 / - 35 AS col2
----
63
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9185
SELECT ALL - NULLIF ( + ( + 23 ), - + 3 * + - NULLIF ( + 65, + CAST( NULL AS SIGNED ) + 23 + - CAST( NULL AS DECIMAL ) ) - - - 62 * + 2 + - - MAX( + 8 ) ) + 1
----
-22

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL - NULLIF ( + ( + 23 ), - + 3 * + - NULLIF ( + 65, + CAST ( NULL AS INTEGER ) + 23 + - CAST ( NULL AS REAL ) ) - - - 62 * + 2 + - - MAX ( + 8 ) ) + 1
----
-22

query I rowsort
SELECT ( - - 0 ) + + 89 AS col1
----
89

query I rowsort
SELECT DISTINCT 50 * - NULLIF ( + 68, + 67 + + - 82 )
----
-3400

query I rowsort
SELECT 59 * 64
----
3776

query I rowsort
SELECT 90 * - 15 + - - 16 - + 61 * + 75
----
-5909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9190
SELECT ALL + COUNT( * ) + + 30 + 48 - - 23 / - 63 * ( 11 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL + COUNT ( * ) + + 30 + 48 - - 23 / - 63 * ( 11 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 45 * - 45 + - 88 AS col2
----
-2113

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL 73 - 91 + 49 + + MAX( DISTINCT + 25 ) * - 96 * - 25 + - 65 + + 62 col1
----
60028

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL 73 - 91 + 49 + + MAX ( DISTINCT + 25 ) * - 96 * - 25 + - 65 + + 62 col1
----
60028

query I rowsort
SELECT DISTINCT 21 - 99
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL - 4 - + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - 4 - + COUNT ( * )
----
-5

query I rowsort
SELECT - NULLIF ( - 14, 51 ) AS col1
----
14

query I rowsort
SELECT + ( - - 57 ) * + 12
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT ALL + MAX( DISTINCT - - 82 ) * + 29
----
2378

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL + MAX ( DISTINCT - - 82 ) * + 29
----
2378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9198
SELECT COALESCE ( + - 75, + ( + 87 ) * - + 52 DIV ( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) * + 12 * + 29 + - ( - - 36 ) * 67 )
----
-75

skipif mysql # not compatible
query I rowsort label-9198
SELECT COALESCE ( + - 75, + ( + 87 ) * - + 52 / ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * + 12 * + 29 + - ( - - 36 ) * 67 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9199
SELECT ALL 19 DIV - CAST( 6 AS SIGNED ) + - - 62 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL 19 / - CAST ( 6 AS INTEGER ) + - - 62 AS col0
----
59

query I rowsort
SELECT DISTINCT - 52 * + 60
----
-3120

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT - + SUM( DISTINCT + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9201
SELECT - + SUM ( DISTINCT + 45 )
----
-45

query I rowsort
SELECT ALL 46 * 54 AS col2
----
2484

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT + - 97 * - 50 AS col2, MAX( DISTINCT - 27 ) AS col0
----
4850
-27

skipif mysql # not compatible
query II rowsort label-9203
SELECT + - 97 * - 50 AS col2, MAX ( DISTINCT - 27 ) AS col0
----
4850
-27

query I rowsort
SELECT + 17 + - 70
----
-53

query II rowsort
SELECT ALL 59 AS col2, + 0
----
59
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - 40 + + MIN( - 78 )
----
-118

skipif mysql # not compatible
query I rowsort label-9206
SELECT - 40 + + MIN ( - 78 )
----
-118

query I rowsort
SELECT - 99 * - 86
----
8514

onlyif mysql # DIV for integer division: 
query I rowsort label-9208
SELECT - 17 DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-9208
SELECT - 17 / - 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9209
SELECT ALL - 51 * + 38 DIV - COUNT( 20 ) + 65 AS col0
----
2003

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - 51 * + 38 / - COUNT ( 20 ) + 65 AS col0
----
2003

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9210
SELECT + 87 - - + 84 + + 93, 14 * - - CAST( + - 4 AS SIGNED ) AS col1
----
264
-56

skipif mysql # not compatible
query II rowsort label-9210
SELECT + 87 - - + 84 + + 93, 14 * - - CAST ( + - 4 AS INTEGER ) AS col1
----
264
-56

query I rowsort
SELECT - 63 + 12 + - 78 * - 94
----
7281

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT + MAX( - - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9212
SELECT DISTINCT + MAX ( - - 10 )
----
10

query I rowsort
SELECT DISTINCT - 13 * - 5
----
65

query II rowsort
SELECT ALL - 41 * 35 + 66 AS col2, 46 + - 6
----
-1369
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9215
SELECT - 51 * + COALESCE ( + + 38, - 52, 74 * - + 88 DIV - 17 + - 47 - - - 58 + 87 ) * 51 + - 69
----
-98907

skipif mysql # not compatible
query I rowsort label-9215
SELECT - 51 * + COALESCE ( + + 38, - 52, 74 * - + 88 / - 17 + - 47 - - - 58 + 87 ) * 51 + - 69
----
-98907

query I rowsort
SELECT ALL + 68 * - 41 col2
----
-2788

query I rowsort
SELECT COALESCE ( + ( 17 ), + + 29 ) col1
----
17

query I rowsort
SELECT COALESCE ( - 1, + 39 * - 90 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT - 31 * + + 51 + - + COUNT( * ) * - 72 * 88 AS col0
----
4755

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT - 31 * + + 51 + - + COUNT ( * ) * - 72 * 88 AS col0
----
4755

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT + MIN( + 7 ) col2
----
7

skipif mysql # not compatible
query I rowsort label-9220
SELECT + MIN ( + 7 ) col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9221
SELECT - - CAST( NULL AS SIGNED ) + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT - - CAST ( NULL AS INTEGER ) + 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - + SUM( ALL + 3 ) + ( 10 )
----
7

skipif mysql # not compatible
query I rowsort label-9222
SELECT - + SUM ( ALL + 3 ) + ( 10 )
----
7

query II rowsort
SELECT 99, NULLIF ( - 81, - + 74 * - 13 ) AS col0
----
99
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT - 6 + + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-9224
SELECT - 6 + + COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ( + CASE + 59 WHEN + COUNT( * ) THEN NULL WHEN - 5 * - 71 + + NULLIF ( - + COUNT( * ), + + 34 + - - 66 ) THEN - 28 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT ( + CASE + 59 WHEN + COUNT ( * ) THEN NULL WHEN - 5 * - 71 + + NULLIF ( - + COUNT ( * ), + + 34 + - - 66 ) THEN - 28 ELSE NULL END )
----
NULL

query II rowsort
SELECT + 33 + + 1 + - 78 AS col2, ( + + 37 ) * + 79 AS col2
----
-44
2923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT DISTINCT - - 38 * + CASE + - CAST( NULL AS SIGNED ) WHEN + + 7 THEN 96 ELSE - ( - 90 ) END AS col0
----
3420

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT - - 38 * + CASE + - CAST ( NULL AS INTEGER ) WHEN + + 7 THEN 96 ELSE - ( - 90 ) END AS col0
----
3420

query I rowsort
SELECT ALL + - 76 * + 79
----
-6004

query I rowsort
SELECT + - 11 * + 31 * + 9 AS col0
----
-3069

query I rowsort
SELECT ALL COALESCE ( - 84, + + 4 * + 5 * - 38 * + - 54 ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT - + 42 + - CAST( NULL AS SIGNED ) * + ( 38 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT - + 42 + - CAST ( NULL AS INTEGER ) * + ( 38 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9232
SELECT + - 62 + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) DIV 39 col1
----
-62

skipif mysql # not compatible
query I rowsort label-9232
SELECT + - 62 + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) / 39 col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT DISTINCT - MIN( ALL - + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT - MIN ( ALL - + 65 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT - CAST( 28 AS SIGNED ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-9234
SELECT - CAST ( 28 AS INTEGER ) AS col0
----
-28

query I rowsort
SELECT + 87 + - 80
----
7

query I rowsort
SELECT DISTINCT CASE + 63 WHEN 65 THEN 99 END + - - 5 + - 20 / 86 col2
----
NULL

query I rowsort
SELECT + 63 + - 32 AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT DISTINCT + 30 DIV + 19 + 85 * 49 + + + 59 col2
----
4225

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT + 30 / + 19 + 85 * 49 + + + 59 col2
----
4225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9239
SELECT CAST( - 87 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-9239
SELECT CAST ( - 87 AS INTEGER )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9240
SELECT + 4 * - 53 AS col2, + MAX( + 8 ) * COALESCE ( 99, 75, + + 88 * + + 83 * + 29 ) + - + COUNT( * ) * + 19
----
-212
773

skipif mysql # not compatible
query II rowsort label-9240
SELECT + 4 * - 53 AS col2, + MAX ( + 8 ) * COALESCE ( 99, 75, + + 88 * + + 83 * + 29 ) + - + COUNT ( * ) * + 19
----
-212
773

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT + ( - + ( + COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9241
SELECT + ( - + ( + COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9242
SELECT - CAST( - SUM( - 28 ) AS SIGNED ) + - + 61
----
-89

skipif mysql # not compatible
query I rowsort label-9242
SELECT - CAST ( - SUM ( - 28 ) AS INTEGER ) + - + 61
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT CAST( NULLIF ( + - 18, 24 ) AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-9243
SELECT CAST ( NULLIF ( + - 18, 24 ) AS INTEGER )
----
-18

query II rowsort
SELECT + 90 AS col1, - 37 AS col1
----
90
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL + NULLIF ( + 55, + 57 * + COUNT( * ) * + 23 )
----
55

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL + NULLIF ( + 55, + 57 * + COUNT ( * ) * + 23 )
----
55

query I rowsort
SELECT + NULLIF ( + + 43, 98 + + - 96 ) + + 48 AS col2
----
91

query I rowsort
SELECT + ( + 31 ) * + + 75 AS col1
----
2325

onlyif mysql # DIV for integer division: 
query I rowsort label-9248
SELECT DISTINCT 14 DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT 14 / + 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL 52 * COUNT( * ) - COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL 52 * COUNT ( * ) - COUNT ( * ) AS col1
----
51

query II rowsort
SELECT + 49, 17 col0
----
49
17

query II rowsort
SELECT + 83, 65 AS col0
----
83
65

query I rowsort
SELECT - 95 * 59 + + 49
----
-5556

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ( + 9 ) * + 4 + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-9253
SELECT ( + 9 ) * + 4 + + COUNT ( * )
----
37

query II rowsort
SELECT DISTINCT - 48, 95 + + 96 AS col2
----
-48
191

onlyif mysql # aggregate syntax: 
query II rowsort label-9255
SELECT ALL + 35 AS col0, 61 * - CASE WHEN NOT NULL IS NULL THEN CASE - 11 WHEN + 75 THEN + 32 WHEN + - 82 THEN NULL ELSE + COUNT( * ) END ELSE 81 END + + 31
----
35
-4910

skipif mysql # not compatible
query II rowsort label-9255
SELECT ALL + 35 AS col0, 61 * - CASE WHEN NOT NULL IS NULL THEN CASE - 11 WHEN + 75 THEN + 32 WHEN + - 82 THEN NULL ELSE + COUNT ( * ) END ELSE 81 END + + 31
----
35
-4910

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9256
SELECT ALL - 9 AS col0, MAX( ALL 7 ) DIV 73 + 74 AS col0
----
-9
74

skipif mysql # not compatible
query II rowsort label-9256
SELECT ALL - 9 AS col0, MAX ( ALL 7 ) / 73 + 74 AS col0
----
-9
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL NULLIF ( - - 29, + 62 - - CASE - + 52 WHEN - + NULLIF ( - 43, + + 41 ) THEN NULL WHEN 48 * - 96 THEN + + COUNT( * ) * 53 - 12 + + 30 * COUNT( * ) * + 17 END + 18 )
----
29

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL NULLIF ( - - 29, + 62 - - CASE - + 52 WHEN - + NULLIF ( - 43, + + 41 ) THEN NULL WHEN 48 * - 96 THEN + + COUNT ( * ) * 53 - 12 + + 30 * COUNT ( * ) * + 17 END + 18 )
----
29

query II rowsort
SELECT - 18, 74 AS col1
----
-18
74

query II rowsort
SELECT 82, - 68 AS col1
----
82
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9260
SELECT ALL - 2 / - CAST( - - 61 AS SIGNED ) * 26 * AVG ( + ( + 81 ) ) * + - CASE - 13 WHEN - ( - 28 ) * + + 43 * - - 54 * + - 43 + + MIN( DISTINCT 64 ) * + + 69 THEN + COUNT( * ) / + CAST( NULL AS SIGNED ) * + 32 * + 75 * 85 * - + COUNT( * ) + + CAST( + 95 AS SIGNED ) + - ( - 23 ) * ( - + 84 ) + + 43 + + COALESCE ( - CAST( NULL AS SIGNED ), - COALESCE ( - + COUNT( DISTINCT + 87 ), + - 61 * 61, 62 + + 77 ) ) + + 20 WHEN 52 THEN NULLIF ( ( + 10 ), - CASE - 57 WHEN 36 / - 30 THEN NULL ELSE + AVG ( CASE 70 WHEN - 87 THEN + 77 WHEN - 73 + + 33 * COALESCE ( - 38 + 9, 97, 38 * 15 ) THEN NULL END ) / 29 + 95 END + 35 ) WHEN 70 THEN 41 END - - ( - 80 - + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL - 2 / - CAST ( - - 61 AS INTEGER ) * 26 * AVG ( + ( + 81 ) ) * + - CASE - 13 WHEN - ( - 28 ) * + + 43 * - - 54 * + - 43 + + MIN ( DISTINCT 64 ) * + + 69 THEN + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + 32 * + 75 * 85 * - + COUNT ( * ) + + CAST ( + 95 AS INTEGER ) + - ( - 23 ) * ( - + 84 ) + + 43 + + COALESCE ( - CAST ( NULL AS INTEGER ), - COALESCE ( - + COUNT ( DISTINCT + 87 ), + - 61 * 61, 62 + + 77 ) ) + + 20 WHEN 52 THEN NULLIF ( ( + 10 ), - CASE - 57 WHEN 36 / - 30 THEN NULL ELSE + AVG ( CASE 70 WHEN - 87 THEN + 77 WHEN - 73 + + 33 * COALESCE ( - 38 + 9, 97, 38 * 15 ) THEN NULL END ) / 29 + 95 END + 35 ) WHEN 70 THEN 41 END - - ( - 80 - + 28 )
----
NULL

query I rowsort
SELECT 48 * + 26 + 42 AS col1
----
1290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9262
SELECT 91 * + CAST( 72 AS SIGNED ) AS col1
----
6552

skipif mysql # not compatible
query I rowsort label-9262
SELECT 91 * + CAST ( 72 AS INTEGER ) AS col1
----
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL - COUNT( * ) + - 41
----
-42

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - COUNT ( * ) + - 41
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9264
SELECT DISTINCT - ( - 1 ) * - COALESCE ( - 19, + 84 - 40, 40 ) AS col1, COUNT( DISTINCT 95 ) * - - CAST( + - COUNT( * ) AS SIGNED ) * - 31 + + 93 - + 51 * - ( + 84 ) + + 32
----
19
4440

skipif mysql # not compatible
query II rowsort label-9264
SELECT DISTINCT - ( - 1 ) * - COALESCE ( - 19, + 84 - 40, 40 ) AS col1, COUNT ( DISTINCT 95 ) * - - CAST ( + - COUNT ( * ) AS INTEGER ) * - 31 + + 93 - + 51 * - ( + 84 ) + + 32
----
19
4440

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT DISTINCT - 86 * - + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT - 86 * - + COUNT ( * ) AS col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9266
SELECT DISTINCT 69 DIV - 27 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT 69 / - 27 AS col2
----
-2

query I rowsort
SELECT 27 + 41 + 76
----
144

query I rowsort
SELECT 63 - - 7
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT 82 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT 82 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 92 - + 48 AS col2, - 33 * - 38 * + 80 * - 70 AS col1
----
44
-7022400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9271
SELECT ALL - CAST( 77 AS SIGNED ), CAST( NULL AS SIGNED ) AS col2
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-9271
SELECT ALL - CAST ( 77 AS INTEGER ), CAST ( NULL AS INTEGER ) AS col2
----
-77
NULL

query I rowsort
SELECT ALL 73 * 28 * - + 79 AS col1
----
-161476

query I rowsort
SELECT DISTINCT 91 * 35
----
3185

query I rowsort
SELECT - ( + 39 ) - - 7
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT MIN( + 66 ) * 22
----
1452

skipif mysql # not compatible
query I rowsort label-9275
SELECT MIN ( + 66 ) * 22
----
1452

onlyif mysql # aggregate syntax: 
query II rowsort label-9276
SELECT + MIN( ALL + 92 ), - COUNT( - - 74 ) AS col2
----
92
-1

skipif mysql # not compatible
query II rowsort label-9276
SELECT + MIN ( ALL + 92 ), - COUNT ( - - 74 ) AS col2
----
92
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + COALESCE ( 51, + COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-9277
SELECT + COALESCE ( 51, + COUNT ( * ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT ALL + + COUNT( * ) * - 80 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL + + COUNT ( * ) * - 80 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT + 0 * COUNT( * ) + + 33
----
33

skipif mysql # not compatible
query I rowsort label-9279
SELECT + 0 * COUNT ( * ) + + 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT COUNT( * ) - - + 53 * + 72 + - 74 * + 26 + 0 col2
----
1893

skipif mysql # not compatible
query I rowsort label-9280
SELECT COUNT ( * ) - - + 53 * + 72 + - 74 * + 26 + 0 col2
----
1893

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9281
SELECT ALL + CASE + COALESCE ( - + 23, - 39, ( - 27 ) * - + CAST( NULL AS DECIMAL ) * - 97 ) WHEN 50 - - - 53 + + 98 THEN NULL ELSE + - 33 - - - 68 END AS col1
----
-101

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL + CASE + COALESCE ( - + 23, - 39, ( - 27 ) * - + CAST ( NULL AS REAL ) * - 97 ) WHEN 50 - - - 53 + + 98 THEN NULL ELSE + - 33 - - - 68 END AS col1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL 12 * + COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL 12 * + COUNT ( * ) AS col0
----
12

query I rowsort
SELECT 16 + + 17
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT COUNT( * ) * - 96 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9284
SELECT COUNT ( * ) * - 96 AS col0
----
-96

query I rowsort
SELECT ALL - + 8 + - + 15
----
-23

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9286
SELECT CAST( + - 7 AS SIGNED ) + 58 + - + 72 * - 77 + - 33 + - 30 * - - 25 - + 39 * + 23 + - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT CAST ( + - 7 AS INTEGER ) + 58 + - + 72 * - 77 + - 33 + - 30 * - - 25 - + 39 * + 23 + - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT + 18 + + 30 + - SUM( ALL + 26 ) * + CASE WHEN NOT ( 37 ) >= - 26 + - 57 THEN + + 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9287
SELECT + 18 + + 30 + - SUM ( ALL + 26 ) * + CASE WHEN NOT ( 37 ) >= - 26 + - 57 THEN + + 18 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT 97 + - SUM( ALL - 88 )
----
185

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT 97 + - SUM ( ALL - 88 )
----
185

query II rowsort
SELECT - 57, - 40 AS col1
----
-57
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL - COUNT( * ) + - NULLIF ( - - 46, 8 )
----
-47

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - COUNT ( * ) + - NULLIF ( - - 46, 8 )
----
-47

query I rowsort
SELECT 63 + 74 AS col1
----
137

query II rowsort
SELECT ALL + 9 - + 62 + - + 43 * 43 + + + 21 * + + 17 AS col0, + ( - 54 )
----
-1545
-54

query I rowsort
SELECT 53 * + - 16
----
-848

query II rowsort
SELECT ALL 29 col1, - 71 * - 56 * 52
----
29
206752

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT + 91 - + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + 91 - + COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT DISTINCT + 18 * - COALESCE ( + - 8, + - COUNT( * ), - 51 ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-9296
SELECT DISTINCT + 18 * - COALESCE ( + - 8, + - COUNT ( * ), - 51 ) AS col1
----
144

query II rowsort
SELECT - 86 AS col2, + 45 AS col2
----
-86
45

query I rowsort
SELECT ALL + 9 - 57
----
-48

query I rowsort
SELECT ALL - 46 * - 13
----
598

query I rowsort
SELECT ALL - 37 * ( 42 ) col0
----
-1554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9301
SELECT + 97 AS col0, 93 + + + 99 * + CASE CAST( NULL AS SIGNED ) WHEN COUNT( * ) + 45 + + - 29 * + 5 - - SUM( ALL + 15 ) THEN - 79 + - MAX( + 10 ) + + - COUNT( * ) * 27 ELSE 51 END AS col1
----
97
5142

skipif mysql # not compatible
query II rowsort label-9301
SELECT + 97 AS col0, 93 + + + 99 * + CASE CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) + 45 + + - 29 * + 5 - - SUM ( ALL + 15 ) THEN - 79 + - MAX ( + 10 ) + + - COUNT ( * ) * 27 ELSE 51 END AS col1
----
97
5142

onlyif mysql # DIV for integer division: 
query II rowsort label-9302
SELECT ( 63 ) DIV - + 40 AS col2, 32 AS col1
----
-1
32

skipif mysql # not compatible
query II rowsort label-9302
SELECT ( 63 ) / - + 40 AS col2, 32 AS col1
----
-1
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9303
SELECT MAX( - 80 ) * - 23 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9303
SELECT MAX ( - 80 ) * - 23 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 3 * 47 AS col1
----
141

query II rowsort
SELECT + + 26, ( NULLIF ( 29, + 54 ) ) AS col2
----
26
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT DISTINCT 94 * - 92 + + COUNT( * ) AS col0
----
-8647

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT 94 * - 92 + + COUNT ( * ) AS col0
----
-8647

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT + - COALESCE ( - + MAX( ALL + + 95 ), - 64 )
----
95

skipif mysql # not compatible
query I rowsort label-9307
SELECT + - COALESCE ( - + MAX ( ALL + + 95 ), - 64 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL COALESCE ( - MAX( DISTINCT + 30 ), + 27 + - 11 ) * + 10 + - 25 + - + 75 * - - COUNT( 64 )
----
-400

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL COALESCE ( - MAX ( DISTINCT + 30 ), + 27 + - 11 ) * + 10 + - 25 + - + 75 * - - COUNT ( 64 )
----
-400

onlyif mysql # DIV for integer division: 
query II rowsort label-9309
SELECT ALL + 18 AS col0, - ( + 51 ) + 25 - - + 50 DIV 22 DIV - - 84
----
18
-26

skipif mysql # not compatible
query II rowsort label-9309
SELECT ALL + 18 AS col0, - ( + 51 ) + 25 - - + 50 / 22 / - - 84
----
18
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9310
SELECT DISTINCT - 24 * - + 22 + - COUNT( + 5 ) DIV - 13
----
528

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT - 24 * - + 22 + - COUNT ( + 5 ) / - 13
----
528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT ALL + 88 * - COUNT( ALL + CAST( 3 AS SIGNED ) ) + 85
----
-3

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL + 88 * - COUNT ( ALL + CAST ( 3 AS INTEGER ) ) + 85
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9312
SELECT 31 AS col1, + COUNT( * ) * + 8
----
31
8

skipif mysql # not compatible
query II rowsort label-9312
SELECT 31 AS col1, + COUNT ( * ) * + 8
----
31
8

query I rowsort
SELECT - - 30 * + - 53 AS col2
----
-1590

query I rowsort
SELECT + - 24 + 38
----
14

query I rowsort
SELECT + + 49 + - 47 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL + 44 + ( + 92 ) - + MAX( DISTINCT + ( + 52 ) ) * - - 49 col2
----
-2412

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL + 44 + ( + 92 ) - + MAX ( DISTINCT + ( + 52 ) ) * - - 49 col2
----
-2412

onlyif mysql # aggregate syntax: 
query II rowsort label-9317
SELECT + SUM( DISTINCT - 0 ) * - + 68 AS col0, + 50 * + 34 AS col2
----
0
1700

skipif mysql # not compatible
query II rowsort label-9317
SELECT + SUM ( DISTINCT - 0 ) * - + 68 AS col0, + 50 * + 34 AS col2
----
0
1700

query I rowsort
SELECT DISTINCT + 41 + - + 2
----
39

query II rowsort
SELECT DISTINCT 25 AS col1, 73 AS col2
----
25
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9320
SELECT ALL 46 / - 35 * - - 95 + + + CASE 85 WHEN + + NULLIF ( + 26, 48 / 45 - - 4 / + + 48 ) + 47 * CASE + 95 WHEN + 22 + + ( - 21 ) THEN - + 29 END THEN 99 + CAST( NULL AS SIGNED ) * - 20 + COUNT( * ) END + 57 * - ( 16 ) * 27 col0, + NULLIF ( + MIN( ALL - + 60 ), 25 / - ( + 88 ) ) AS col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-9320
SELECT ALL 46 / - 35 * - - 95 + + + CASE 85 WHEN + + NULLIF ( + 26, 48 / 45 - - 4 / + + 48 ) + 47 * CASE + 95 WHEN + 22 + + ( - 21 ) THEN - + 29 END THEN 99 + CAST ( NULL AS INTEGER ) * - 20 + COUNT ( * ) END + 57 * - ( 16 ) * 27 col0, + NULLIF ( + MIN ( ALL - + 60 ), 25 / - ( + 88 ) ) AS col0
----
NULL
-60

query I rowsort
SELECT ALL ( 37 ) + - 1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9322
SELECT DISTINCT CAST( 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT CAST ( 51 AS INTEGER ) AS col0
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-9323
SELECT ALL 23 DIV - 17, + 98 AS col2
----
-1
98

skipif mysql # not compatible
query II rowsort label-9323
SELECT ALL 23 / - 17, + 98 AS col2
----
-1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT + 28 / + + 38 * + + CASE + + 76 WHEN - 81 THEN - + COALESCE ( 10, + - COUNT( * ) * AVG ( ALL - 45 ), 37 ) * + + SUM( + 20 ) + + 91 - - 87 - + 28 * + 90 * - 89 * + 73 + + 65 / - - 30 - - ( + 72 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT + 28 / + + 38 * + + CASE + + 76 WHEN - 81 THEN - + COALESCE ( 10, + - COUNT ( * ) * AVG ( ALL - 45 ), 37 ) * + + SUM ( + 20 ) + + 91 - - 87 - + 28 * + 90 * - 89 * + 73 + + 65 / - - 30 - - ( + 72 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9325
SELECT - 34 DIV + COALESCE ( 57, + + 9 ) * 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9325
SELECT - 34 / + COALESCE ( 57, + + 9 ) * 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9326
SELECT + COUNT( * ) * + MAX( - - ( 41 ) ) col0, 98 * 13 * + 79 AS col0
----
41
100646

skipif mysql # not compatible
query II rowsort label-9326
SELECT + COUNT ( * ) * + MAX ( - - ( 41 ) ) col0, 98 * 13 * + 79 AS col0
----
41
100646

onlyif mysql # aggregate syntax: 
query II rowsort label-9327
SELECT + 98 - + 54 AS col0, - COUNT( * ) AS col2
----
44
-1

skipif mysql # not compatible
query II rowsort label-9327
SELECT + 98 - + 54 AS col0, - COUNT ( * ) AS col2
----
44
-1

query I rowsort
SELECT DISTINCT 15 * - CASE + 83 WHEN - - 63 THEN NULL WHEN + 46 THEN - 38 END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - 26, 3 * + 27 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9330
SELECT - CAST( NULL AS SIGNED ) * - 13 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9330
SELECT - CAST ( NULL AS INTEGER ) * - 13 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL MAX( ALL - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL MAX ( ALL - 62 ) AS col1
----
-62

query II rowsort
SELECT + 15 + 19 col2, 44 AS col2
----
34
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9333
SELECT - COUNT( * ) - + COUNT( + 6 ) * - + CAST( NULL AS DECIMAL ) + - + 52 / 42 * MIN( ALL 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT - COUNT ( * ) - + COUNT ( + 6 ) * - + CAST ( NULL AS REAL ) + - + 52 / 42 * MIN ( ALL 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT CASE - 41 WHEN + + 63 - 98 + 39 + - 1 THEN - - 67 WHEN + 13 * + 55 * ( 58 ) * - ( - COUNT( * ) ) THEN - MIN( DISTINCT + 41 ) * COUNT( * ) ELSE - 28 END AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT CASE - 41 WHEN + + 63 - 98 + 39 + - 1 THEN - - 67 WHEN + 13 * + 55 * ( 58 ) * - ( - COUNT ( * ) ) THEN - MIN ( DISTINCT + 41 ) * COUNT ( * ) ELSE - 28 END AS col2
----
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-9335
SELECT ALL + 78 DIV - 64, + 51 AS col2
----
-1
51

skipif mysql # not compatible
query II rowsort label-9335
SELECT ALL + 78 / - 64, + 51 AS col2
----
-1
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT - 14 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9336
SELECT - 14 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9337
SELECT ALL + - 85 DIV - + 10 + COUNT( * ) col0
----
9

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL + - 85 / - + 10 + COUNT ( * ) col0
----
9

query I rowsort
SELECT ALL - 25 * 16 AS col2
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL + 34 * - - 10 + CASE - + 21 WHEN - 30 * + - 79 + + ( 98 ) * 27 + - - 65 + - 64 + COUNT( ALL + 10 ) THEN - 98 WHEN 32 - - 91 + + 81 * + 47 THEN NULL END + + 22 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL + 34 * - - 10 + CASE - + 21 WHEN - 30 * + - 79 + + ( 98 ) * 27 + - - 65 + - 64 + COUNT ( ALL + 10 ) THEN - 98 WHEN 32 - - 91 + + 81 * + 47 THEN NULL END + + 22 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT DISTINCT + COUNT( * ) * - + 27 * - 58 col1
----
1566

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT + COUNT ( * ) * - + 27 * - 58 col1
----
1566

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9341
SELECT - + 59 DIV COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9341
SELECT - + 59 / COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9342
SELECT - + 53 * 54, MIN( DISTINCT + 25 ) + 34 * 29 AS col0
----
-2862
1011

skipif mysql # not compatible
query II rowsort label-9342
SELECT - + 53 * 54, MIN ( DISTINCT + 25 ) + 34 * 29 AS col0
----
-2862
1011

onlyif mysql # aggregate syntax: 
query II rowsort label-9343
SELECT DISTINCT + - COUNT( * ) * 36 * - 70 + - 33 AS col0, + 34
----
2487
34

skipif mysql # not compatible
query II rowsort label-9343
SELECT DISTINCT + - COUNT ( * ) * 36 * - 70 + - 33 AS col0, + 34
----
2487
34

query I rowsort
SELECT ALL - + 35 * 24 * + 11 * - + 42 * - 31 * 50 + + 70 AS col1
----
-601523930

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL + CASE + 58 WHEN - MIN( DISTINCT - 21 ) * + 56 - - 58 + - 2 + + + 60 THEN 93 + + ( - 23 ) WHEN - AVG ( 33 ) * - + 82 + - - 71 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL + CASE + 58 WHEN - MIN ( DISTINCT - 21 ) * + 56 - - 58 + - 2 + + + 60 THEN 93 + + ( - 23 ) WHEN - AVG ( 33 ) * - + 82 + - - 71 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 82 * + - 47 + + - 84
----
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL + - 15 * + + ( - COUNT( * ) ) + + MAX( + 25 ) + NULLIF ( + 87, + 93 ) + - 13 + - 72 * + SUM( DISTINCT 8 ) - + - 34
----
-428

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL + - 15 * + + ( - COUNT ( * ) ) + + MAX ( + 25 ) + NULLIF ( + 87, + 93 ) + - 13 + - 72 * + SUM ( DISTINCT 8 ) - + - 34
----
-428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 2 + 18 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 2 + 18 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL + 4 * COUNT( * ) * + - 12 + 55 - 37 * - 30 + 39 AS col1
----
1156

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + 4 * COUNT ( * ) * + - 12 + 55 - 37 * - 30 + 39 AS col1
----
1156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9350
SELECT + + 52 - - CAST( NULL AS SIGNED ) - - + COUNT( * ) + 92 * - 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT + + 52 - - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) + 92 * - 47 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9351
SELECT DISTINCT 92 * COUNT( * ) DIV - 16 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT 92 * COUNT ( * ) / - 16 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT + COUNT( * ) - MIN( DISTINCT + COALESCE ( 49, + 78 * - 96 ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9352
SELECT + COUNT ( * ) - MIN ( DISTINCT + COALESCE ( 49, + 78 * - 96 ) ) AS col1
----
-48

query I rowsort
SELECT + 93 * + - 73
----
-6789

query II rowsort
SELECT ALL 13 * 98 * - 35 * 37 - - 60, + 78 + + ( - - 74 ) AS col0
----
-1649770
152

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT SUM( DISTINCT 93 )
----
93

skipif mysql # not compatible
query I rowsort label-9355
SELECT SUM ( DISTINCT 93 )
----
93

query I rowsort
SELECT + 57 * - + 3
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-9357
SELECT ALL COUNT( * ), 47 * - + 14 AS col0
----
1
-658

skipif mysql # not compatible
query II rowsort label-9357
SELECT ALL COUNT ( * ), 47 * - + 14 AS col0
----
1
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT + 75 + ( - COUNT( - + 85 ) )
----
74

skipif mysql # not compatible
query I rowsort label-9358
SELECT + 75 + ( - COUNT ( - + 85 ) )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT + 27 + + COALESCE ( - 60, - + CAST( - + 10 AS SIGNED ), - + 94 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9359
SELECT + 27 + + COALESCE ( - 60, - + CAST ( - + 10 AS INTEGER ), - + 94 ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ALL - 46 * - 79 * - - MAX( + 21 ) AS col2
----
76314

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL - 46 * - 79 * - - MAX ( + 21 ) AS col2
----
76314

onlyif mysql # DIV for integer division: 
query I rowsort label-9361
SELECT ALL 51 DIV + + 84
----
0

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL 51 / + + 84
----
0

query I rowsort
SELECT - ( + - 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT + CAST( NULL AS SIGNED ) + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT + CAST ( NULL AS INTEGER ) + - 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT + ( 36 ) * + ( 68 ) + CAST( - 48 AS SIGNED ) * ( + 85 )
----
-1632

skipif mysql # not compatible
query I rowsort label-9364
SELECT + ( 36 ) * + ( 68 ) + CAST ( - 48 AS INTEGER ) * ( + 85 )
----
-1632

query I rowsort
SELECT + 91 * ( + 20 ) AS col0
----
1820

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT - 97 + - 15 DIV - 50 - 12 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-9366
SELECT - 97 + - 15 / - 50 - 12 AS col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT DISTINCT COUNT( DISTINCT + - 89 ) * + - 56 * + 82 AS col2
----
-4592

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT COUNT ( DISTINCT + - 89 ) * + - 56 * + 82 AS col2
----
-4592

query I rowsort
SELECT - 73 + + 74 col1
----
1

query I rowsort
SELECT DISTINCT COALESCE ( + 85, - 2 ) col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT DISTINCT - ( - 97 ) + - COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT - ( - 97 ) + - COUNT ( * ) AS col2
----
96

query I rowsort
SELECT 12 * + 43 AS col1
----
516

query I rowsort
SELECT ALL - 85 + - 18
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL + - 6 + + CASE - 13 WHEN + + 74 / + 64 THEN - MIN( - - 90 ) + + COALESCE ( - 32, + ( + 34 ) ) + + 30 WHEN + COALESCE ( + 39, - - 85, - - SUM( - 39 ) / 91 * - + 6 ) * + 2 THEN - - 41 / + - 36 / - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + - 6 + + CASE - 13 WHEN + + 74 / + 64 THEN - MIN ( - - 90 ) + + COALESCE ( - 32, + ( + 34 ) ) + + 30 WHEN + COALESCE ( + 39, - - 85, - - SUM ( - 39 ) / 91 * - + 6 ) * + 2 THEN - - 41 / + - 36 / - COUNT ( * ) END AS col2
----
NULL

query II rowsort
SELECT 85, ( - 85 ) AS col1
----
85
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9375
SELECT + - CAST( 84 AS SIGNED ) * - MIN( ALL - - 14 ) + + 21 DIV - 78 - + NULLIF ( + ( - 88 ), - + 46 )
----
1264

skipif mysql # not compatible
query I rowsort label-9375
SELECT + - CAST ( 84 AS INTEGER ) * - MIN ( ALL - - 14 ) + + 21 / - 78 - + NULLIF ( + ( - 88 ), - + 46 )
----
1264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9376
SELECT MAX( - + 9 ) * + - COALESCE ( + + 53, + ( - 11 ) + + 17 * COUNT( * ) + 38, 31 * + + 51 - + - 4 - - CAST( + 99 AS SIGNED ) DIV - COUNT( * ) * - 23 ) + - NULLIF ( - - 31, - 43 * + NULLIF ( COALESCE ( 47, - + 81, - 76 * - CAST( - - 27 AS SIGNED ) * + 67 + + + ( - 93 ) * + MIN( - 76 ) ), COUNT( - + COALESCE ( - - 7, + 18 ) ) ) ) AS col1
----
446

skipif mysql # not compatible
query I rowsort label-9376
SELECT MAX ( - + 9 ) * + - COALESCE ( + + 53, + ( - 11 ) + + 17 * COUNT ( * ) + 38, 31 * + + 51 - + - 4 - - CAST ( + 99 AS INTEGER ) / - COUNT ( * ) * - 23 ) + - NULLIF ( - - 31, - 43 * + NULLIF ( COALESCE ( 47, - + 81, - 76 * - CAST ( - - 27 AS INTEGER ) * + 67 + + + ( - 93 ) * + MIN ( - 76 ) ), COUNT ( - + COALESCE ( - - 7, + 18 ) ) ) ) AS col1
----
446

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT + 95 * ( + CASE - - 96 WHEN + + 24 * 66 * 11 / + COALESCE ( - + 27, 17, 43 ) + 82 THEN + COUNT( * ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT + 95 * ( + CASE - - 96 WHEN + + 24 * 66 * 11 / + COALESCE ( - + 27, 17, 43 ) + 82 THEN + COUNT ( * ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT + 85 * - 19 + COUNT( * ) + - - 5 AS col1
----
-1609

skipif mysql # not compatible
query I rowsort label-9378
SELECT + 85 * - 19 + COUNT ( * ) + - - 5 AS col1
----
-1609

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT NULLIF ( + ( - + COALESCE ( + + 26, - + COUNT( * ) * 59 + + 75 ) ), + + 85 )
----
-26

skipif mysql # not compatible
query I rowsort label-9379
SELECT NULLIF ( + ( - + COALESCE ( + + 26, - + COUNT ( * ) * 59 + + 75 ) ), + + 85 )
----
-26

query I rowsort
SELECT ALL - 52 * + 10
----
-520

query I rowsort
SELECT + 71 + - 9 * + 13 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT - + 72 * + NULLIF ( 47, - - 66 * 24 * + + 48 / + 96 ) * - + 86 + + - 39 * + + ( + COUNT( * ) ) * 35
----
289659

skipif mysql # not compatible
query I rowsort label-9382
SELECT - + 72 * + NULLIF ( 47, - - 66 * 24 * + + 48 / + 96 ) * - + 86 + + - 39 * + + ( + COUNT ( * ) ) * 35
----
289659

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT DISTINCT + + 89 - + NULLIF ( COALESCE ( 94, + 67, + + 38 ), - 27 + - MAX( - 90 ) + - - 61 * + + COUNT( * ) )
----
-5

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT + + 89 - + NULLIF ( COALESCE ( 94, + 67, + + 38 ), - 27 + - MAX ( - 90 ) + - - 61 * + + COUNT ( * ) )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT 37 * + + ( ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9384
SELECT 37 * + + ( ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL + - 22 * COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL + - 22 * COUNT ( * ) AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9386
SELECT DISTINCT + COALESCE ( + 23, - NULLIF ( - 45, + + 54 + 88 ), - + NULLIF ( - 7, + 56 + 17 * - COALESCE ( - COUNT( * ), + - CAST( + 96 AS SIGNED ) ) / + 51 - + AVG ( DISTINCT 63 ) + - - CASE + 22 WHEN ( COUNT( * ) ) THEN + - 76 + + 63 / + 15 ELSE - - ( 38 ) END * 7 * - NULLIF ( + 86, - 94 * + + 71 ) * + 71 * - - SUM( - + 36 ) ) + - + 11 * + - 16 ) - CAST( - 38 AS SIGNED ) + + ( - - 42 )
----
103

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + COALESCE ( + 23, - NULLIF ( - 45, + + 54 + 88 ), - + NULLIF ( - 7, + 56 + 17 * - COALESCE ( - COUNT ( * ), + - CAST ( + 96 AS INTEGER ) ) / + 51 - + AVG ( DISTINCT 63 ) + - - CASE + 22 WHEN ( COUNT ( * ) ) THEN + - 76 + + 63 / + 15 ELSE - - ( 38 ) END * 7 * - NULLIF ( + 86, - 94 * + + 71 ) * + 71 * - - SUM ( - + 36 ) ) + - + 11 * + - 16 ) - CAST ( - 38 AS INTEGER ) + + ( - - 42 )
----
103

query I rowsort
SELECT 17 * - 66
----
-1122

query I rowsort
SELECT 60 + 54
----
114

query II rowsort
SELECT ALL - 27 AS col1, 62 * - 7 AS col2
----
-27
-434

query II rowsort
SELECT 37 AS col0, + 59 AS col1
----
37
59

query II rowsort
SELECT ALL 63 * + + 68 * + + 18 * - 90 AS col0, + 56 + + 38 AS col0
----
-6940080
94

query I rowsort
SELECT 62 * - 83
----
-5146

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT ALL 27 * - ( - + COUNT( * ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL 27 * - ( - + COUNT ( * ) ) AS col0
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9394
SELECT 81 / - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT 81 / - + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 87 - + 61 AS col1
----
26

query I rowsort
SELECT ALL ( - 17 ) + - + 13
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ( - 23 ) - + COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9397
SELECT ( - 23 ) - + COUNT ( * ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT COUNT( * ) * - 31 * + 22 * - 16 AS col2, 10 AS col0
----
10912
10

skipif mysql # not compatible
query II rowsort label-9398
SELECT COUNT ( * ) * - 31 * + 22 * - 16 AS col2, 10 AS col0
----
10912
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT - 96 + - 26 + + 58 - - - CASE - 65 WHEN - + ( - AVG ( + 49 ) ) + 16 + - - 86 * - CAST( NULL AS SIGNED ) THEN - ( 44 ) ELSE NULL END / 76 + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9399
SELECT - 96 + - 26 + + 58 - - - CASE - 65 WHEN - + ( - AVG ( + 49 ) ) + 16 + - - 86 * - CAST ( NULL AS INTEGER ) THEN - ( 44 ) ELSE NULL END / 76 + 54 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL + 64 + - 44 * - COUNT( * )
----
108

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL + 64 + - 44 * - COUNT ( * )
----
108

query I rowsort
SELECT - 10 + + 48 + + 4 * + 37 * - 96 AS col1
----
-14170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9402
SELECT - 80 - + 60 - - - 39 * + + CAST( NULL AS SIGNED ) * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 80 - + 60 - - - 39 * + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT 34 + + 50 + - 57
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT - SUM( ALL - - CASE - 18 WHEN + 65 THEN 47 ELSE - + 33 END ) * - COUNT( 90 ) + COUNT( DISTINCT - - 51 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-9404
SELECT - SUM ( ALL - - CASE - 18 WHEN + 65 THEN 47 ELSE - + 33 END ) * - COUNT ( 90 ) + COUNT ( DISTINCT - - 51 ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT ALL + SUM( DISTINCT + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL + SUM ( DISTINCT + 43 )
----
43

query I rowsort
SELECT - - NULLIF ( - 76, + 70 ) col2
----
-76

query II rowsort
SELECT 62 AS col1, + 32 AS col2
----
62
32

query I rowsort
SELECT ALL - 56 * + - 41 * + 49
----
112504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9409
SELECT ALL - + COUNT( DISTINCT 69 ), CAST( NULL AS SIGNED ) / 5 / + 11 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9409
SELECT ALL - + COUNT ( DISTINCT 69 ), CAST ( NULL AS INTEGER ) / 5 / + 11 AS col2
----
-1
NULL

query I rowsort
SELECT + - ( + 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT CASE + COUNT( * ) WHEN - + COUNT( * ) * + 14 + + AVG ( DISTINCT - 92 ) * 70 + + + 40 THEN 80 * ( - 22 ) / - 38 WHEN + + AVG ( ALL ( + 30 ) ) * - 7 + - ( ( CASE - + 26 WHEN + COUNT( * ) THEN NULL ELSE + MAX( - 63 ) * + 2 * - COUNT( ALL + ( - 50 ) ) * + - 31 + - 42 END ) ) / - - COUNT( * ) * - AVG ( + 76 ) THEN - 74 - - 58 WHEN + - 82 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT CASE + COUNT ( * ) WHEN - + COUNT ( * ) * + 14 + + AVG ( DISTINCT - 92 ) * 70 + + + 40 THEN 80 * ( - 22 ) / - 38 WHEN + + AVG ( ALL ( + 30 ) ) * - 7 + - ( ( CASE - + 26 WHEN + COUNT ( * ) THEN NULL ELSE + MAX ( - 63 ) * + 2 * - COUNT ( ALL + ( - 50 ) ) * + - 31 + - 42 END ) ) / - - COUNT ( * ) * - AVG ( + 76 ) THEN - 74 - - 58 WHEN + - 82 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT - + 82 * 85 - - + 33 + - - COUNT( * ) * - - 21
----
-6916

skipif mysql # not compatible
query I rowsort label-9412
SELECT - + 82 * 85 - - + 33 + - - COUNT ( * ) * - - 21
----
-6916

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT DISTINCT - + ( + CASE - + 13 WHEN - 31 THEN 37 WHEN + - NULLIF ( + COUNT( * ), - 46 * + MAX( ALL + 96 ) ) THEN + COALESCE ( NULLIF ( ( 60 ), - ( + 98 ) ), 61 ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT - + ( + CASE - + 13 WHEN - 31 THEN 37 WHEN + - NULLIF ( + COUNT ( * ), - 46 * + MAX ( ALL + 96 ) ) THEN + COALESCE ( NULLIF ( ( 60 ), - ( + 98 ) ), 61 ) ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT + 26 * + - 39 + + 73
----
-941

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT - 96 * + COUNT( * ) * + - 29
----
2784

skipif mysql # not compatible
query I rowsort label-9415
SELECT - 96 * + COUNT ( * ) * + - 29
----
2784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9416
SELECT 41 DIV + COALESCE ( + + ( + 53 ), 96 * + - 66, + + NULLIF ( - 5, + - 73 * + MAX( DISTINCT - 89 ) + CAST( - - 54 AS SIGNED ) ) ) + + - 48 AS col2, + 54 col0
----
-48
54

skipif mysql # not compatible
query II rowsort label-9416
SELECT 41 / + COALESCE ( + + ( + 53 ), 96 * + - 66, + + NULLIF ( - 5, + - 73 * + MAX ( DISTINCT - 89 ) + CAST ( - - 54 AS INTEGER ) ) ) + + - 48 AS col2, + 54 col0
----
-48
54

query II rowsort
SELECT 42 AS col1, - 0 AS col0
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT + NULLIF ( - COUNT( * ), + + 87 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9418
SELECT + NULLIF ( - COUNT ( * ), + + 87 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9419
SELECT ALL - CAST( - + 15 AS SIGNED ) DIV - + 55 + + - MIN( ALL - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL - CAST ( - + 15 AS INTEGER ) / - + 55 + + - MIN ( ALL - 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT - 62 * + - 17 * - 90 * - ( + 28 ) + MIN( - 86 ) AS col2
----
2655994

skipif mysql # not compatible
query I rowsort label-9420
SELECT - 62 * + - 17 * - 90 * - ( + 28 ) + MIN ( - 86 ) AS col2
----
2655994

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT MAX( DISTINCT + 82 ) * - - 79 * COUNT( * )
----
6478

skipif mysql # not compatible
query I rowsort label-9421
SELECT MAX ( DISTINCT + 82 ) * - - 79 * COUNT ( * )
----
6478

onlyif mysql # DIV for integer division: 
query II rowsort label-9422
SELECT ALL 40 DIV + 3 col0, 71 AS col1
----
13
71

skipif mysql # not compatible
query II rowsort label-9422
SELECT ALL 40 / + 3 col0, 71 AS col1
----
13
71

query I rowsort
SELECT 72 * - - 68 * 94
----
460224

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT ALL - COALESCE ( 26, - 96, + COUNT( * ) )
----
-26

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL - COALESCE ( 26, - 96, + COUNT ( * ) )
----
-26

query I rowsort
SELECT DISTINCT + 73 * + 80 AS col1
----
5840

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT DISTINCT + COUNT( * ) + - - ( - + SUM( - - 8 ) ) + + NULLIF ( + - 1, + COALESCE ( 20, + - COUNT( * ) * - 53 ) ) col1
----
-8

skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT + COUNT ( * ) + - - ( - + SUM ( - - 8 ) ) + + NULLIF ( + - 1, + COALESCE ( 20, + - COUNT ( * ) * - 53 ) ) col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT 91 DIV 45 * 60
----
120

skipif mysql # not compatible
query I rowsort label-9427
SELECT 91 / 45 * 60
----
120

query I rowsort
SELECT 71 + + + 6 * - 80 * + - 1 AS col1
----
551

query I rowsort
SELECT 19 * + + 27 - + 83 + - - 74
----
504

query I rowsort
SELECT DISTINCT - 74 + - 44 + 97 AS col1
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT 87 + - + 39 DIV - - 88 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9431
SELECT 87 + - + 39 / - - 88 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT ALL - SUM( DISTINCT + 53 ) + 66
----
13

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL - SUM ( DISTINCT + 53 ) + 66
----
13

query I rowsort
SELECT ALL - 83 + + 48
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT MAX( - - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT MAX ( - - 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT DISTINCT - MIN( - 51 ) + - 78 * - - 89
----
-6891

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT - MIN ( - 51 ) + - 78 * - - 89
----
-6891

query I rowsort
SELECT - 14 + + - 36
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9437
SELECT - COUNT( * ) * 67 DIV 9 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9437
SELECT - COUNT ( * ) * 67 / 9 AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9438
SELECT + 32 * - COUNT( * ) AS col2, 77 DIV 87 AS col1
----
-32
0

skipif mysql # not compatible
query II rowsort label-9438
SELECT + 32 * - COUNT ( * ) AS col2, 77 / 87 AS col1
----
-32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT DISTINCT + - 85 + - + MIN( + - 43 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT + - 85 + - + MIN ( + - 43 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT - MIN( + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9440
SELECT - MIN ( + 48 ) AS col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9441
SELECT + - 8 + CASE + 51 WHEN 96 THEN + ( 43 ) + + CAST( - 93 AS SIGNED ) + + 29 * - CAST( 23 AS DECIMAL ) WHEN - AVG ( DISTINCT - - 26 ) + 2 - - COALESCE ( - + 73, - - 52 * + CAST( NULL AS SIGNED ) * + 4 / + + ( - COUNT( * ) ), + + 8 ) + 28 + - + 97 - - 13 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT + - 8 + CASE + 51 WHEN 96 THEN + ( 43 ) + + CAST ( - 93 AS INTEGER ) + + 29 * - CAST ( 23 AS REAL ) WHEN - AVG ( DISTINCT - - 26 ) + 2 - - COALESCE ( - + 73, - - 52 * + CAST ( NULL AS INTEGER ) * + 4 / + + ( - COUNT ( * ) ), + + 8 ) + 28 + - + 97 - - 13 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - CASE - NULLIF ( + 43, + - 14 + - 66 - + 96 ) WHEN 90 THEN - - 21 ELSE 38 END AS col2
----
-38

query I rowsort
SELECT + + ( + - 59 ) + - - 71 AS col1
----
12

query I rowsort
SELECT + 39 + + - 11 AS col1
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9445
SELECT + - COALESCE ( 40, + NULLIF ( - - 40, 13 ) ) DIV + + 6 + - 39 + - - NULLIF ( 13, + + COALESCE ( - CASE + 60 WHEN - 61 + + - 55 * - - 8 THEN - COALESCE ( - - 79, + - 5 + - COUNT( * ) ) END, - COUNT( * ) DIV + 43 + AVG ( DISTINCT - 91 ) + - + 29 * - + 15 * + + 7 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-9445
SELECT + - COALESCE ( 40, + NULLIF ( - - 40, 13 ) ) / + + 6 + - 39 + - - NULLIF ( 13, + + COALESCE ( - CASE + 60 WHEN - 61 + + - 55 * - - 8 THEN - COALESCE ( - - 79, + - 5 + - COUNT ( * ) ) END, - COUNT ( * ) / + 43 + AVG ( DISTINCT - 91 ) + - + 29 * - + 15 * + + 7 ) )
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT DISTINCT CASE 95 WHEN 86 / + COUNT( DISTINCT 92 ) THEN 20 / - - CAST( NULL AS SIGNED ) + - - 67 * + 75 * + + 84 ELSE - - 25 END
----
25

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT CASE 95 WHEN 86 / + COUNT ( DISTINCT 92 ) THEN 20 / - - CAST ( NULL AS INTEGER ) + - - 67 * + 75 * + + 84 ELSE - - 25 END
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT ALL - MAX( + + 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL - MAX ( + + 3 )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9448
SELECT DISTINCT - 3 * + 2 + - - 64 + - + 13 * + COUNT( * ) DIV - 42
----
58

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT - 3 * + 2 + - - 64 + - + 13 * + COUNT ( * ) / - 42
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT - - NULLIF ( - + 48, + 48 / - ( 40 ) + + 73 ) * - 99 + 32 - + 12 - + 83 * - 70 * - SUM( + ( - COALESCE ( 98, - ( + + 52 ) ) ) ) + 44 + COUNT( * ) AS col2
----
574197

skipif mysql # not compatible
query I rowsort label-9449
SELECT - - NULLIF ( - + 48, + 48 / - ( 40 ) + + 73 ) * - 99 + 32 - + 12 - + 83 * - 70 * - SUM ( + ( - COALESCE ( 98, - ( + + 52 ) ) ) ) + 44 + COUNT ( * ) AS col2
----
574197

query I rowsort
SELECT - - 70 * + 21
----
1470

query I rowsort
SELECT + 55 + 70
----
125

query I rowsort
SELECT + ( 34 ) + - 96 AS col2
----
-62

query I rowsort
SELECT DISTINCT 99 * 3 AS col1
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9454
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), - 95 ) * ( + - 19 ) * - NULLIF ( - + MAX( - 34 ), COUNT( * ) ) * - - 76 / 10 * - COUNT( * ) + + - 77, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9454
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), - 95 ) * ( + - 19 ) * - NULLIF ( - + MAX ( - 34 ), COUNT ( * ) ) * - - 76 / 10 * - COUNT ( * ) + + - 77, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT ALL COUNT( * ) * - - 0 * COUNT( * ) + + 22
----
22

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL COUNT ( * ) * - - 0 * COUNT ( * ) + + 22
----
22

query I rowsort
SELECT + 69 * - 25 + 88 + - 62
----
-1699

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT + COALESCE ( + COUNT( * ), + 47 )
----
1

skipif mysql # not compatible
query I rowsort label-9457
SELECT + COALESCE ( + COUNT ( * ), + 47 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT - 22 + - 79 + + 67 * - SUM( + ( 64 ) ) + COUNT( * )
----
-4388

skipif mysql # not compatible
query I rowsort label-9458
SELECT - 22 + - 79 + + 67 * - SUM ( + ( 64 ) ) + COUNT ( * )
----
-4388

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT + CASE - + 73 WHEN - COUNT( DISTINCT + 63 ) * - - 39 * 70 / - 82 - + 42 + 70 THEN + 12 * + - 82 + + COUNT( * ) * 36 ELSE NULL END * - 32 + + 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT + CASE - + 73 WHEN - COUNT ( DISTINCT + 63 ) * - - 39 * 70 / - 82 - + 42 + 70 THEN + 12 * + - 82 + + COUNT ( * ) * 36 ELSE NULL END * - 32 + + 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9460
SELECT - 98 + COUNT( + - 45 ) DIV + 63 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9460
SELECT - 98 + COUNT ( + - 45 ) / + 63 AS col0
----
-98

query I rowsort
SELECT + ( ( 56 ) )
----
56

query I rowsort
SELECT CASE - + 66 WHEN 51 - - 35 + 94 THEN 33 WHEN - - 42 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT MAX( DISTINCT ( 22 ) )
----
22

skipif mysql # not compatible
query I rowsort label-9463
SELECT MAX ( DISTINCT ( 22 ) )
----
22

query II rowsort
SELECT ALL + 23 AS col0, 41 + + - 52 - + 48 + - 47 * 81
----
23
-3866

query II rowsort
SELECT ALL + 26 col0, 66
----
26
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9466
SELECT ALL COALESCE ( CAST( - - 15 AS SIGNED ), - CAST( + COUNT( * ) AS SIGNED ) DIV + 10 * - 1 ) col0
----
15

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL COALESCE ( CAST ( - - 15 AS INTEGER ), - CAST ( + COUNT ( * ) AS INTEGER ) / + 10 * - 1 ) col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL COUNT( * ) * MIN( - 52 ) * 0 + - - COUNT( * ) + 7 * + 60 + - COUNT( ALL 21 ) + + + 20 + + 30 * - 60 AS col2
----
-1360

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL COUNT ( * ) * MIN ( - 52 ) * 0 + - - COUNT ( * ) + 7 * + 60 + - COUNT ( ALL 21 ) + + + 20 + + 30 * - 60 AS col2
----
-1360

query I rowsort
SELECT ALL ( - 40 )
----
-40

query I rowsort
SELECT DISTINCT ( 62 ) AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT + CAST( NULL AS SIGNED ) - + 97 * + ( + 61 ) * - 57 + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT + CAST ( NULL AS INTEGER ) - + 97 * + ( + 61 ) * - 57 + 75 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9471
SELECT ALL + 16 * + - 74 * - 30 / - MAX( ALL 91 ) / CASE + + 33 WHEN + 28 * + 2 THEN - + 85 WHEN - COALESCE ( + 23, + 89 + - CASE + COUNT( 51 ) WHEN 72 * + 50 / 79 * CAST( + ( + + 86 ) AS SIGNED ) THEN - 1 WHEN - - 40 * 92 + + COUNT( * ) + 44 + - 91 THEN 99 + + 85 + - 68 + + 38 + - - 57 * - 65 * NULLIF ( + 65, 68 ) END + - 48 * + ( + + 41 ) / - + 52, - - 26 ) THEN NULL WHEN - 6 * - NULLIF ( - 75, - COUNT( * ) ) THEN - 54 * - 52 WHEN 52 THEN NULL ELSE NULL END * 40 + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + 16 * + - 74 * - 30 / - MAX ( ALL 91 ) / CASE + + 33 WHEN + 28 * + 2 THEN - + 85 WHEN - COALESCE ( + 23, + 89 + - CASE + COUNT ( 51 ) WHEN 72 * + 50 / 79 * CAST ( + ( + + 86 ) AS INTEGER ) THEN - 1 WHEN - - 40 * 92 + + COUNT ( * ) + 44 + - 91 THEN 99 + + 85 + - 68 + + 38 + - - 57 * - 65 * NULLIF ( + 65, 68 ) END + - 48 * + ( + + 41 ) / - + 52, - - 26 ) THEN NULL WHEN - 6 * - NULLIF ( - 75, - COUNT ( * ) ) THEN - 54 * - 52 WHEN 52 THEN NULL ELSE NULL END * 40 + 39
----
NULL

query I rowsort
SELECT - 8 * + - ( 61 )
----
488

onlyif mysql # aggregate syntax: 
query II rowsort label-9473
SELECT - 1, MIN( - 96 ) * 81 + - 61 * + 93 * - 52 AS col2
----
-1
287220

skipif mysql # not compatible
query II rowsort label-9473
SELECT - 1, MIN ( - 96 ) * 81 + - 61 * + 93 * - 52 AS col2
----
-1
287220

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL - MIN( ALL + - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - MIN ( ALL + - 19 )
----
19

query I rowsort
SELECT - 15 - 74 * - 15 + + 85
----
1180

query II rowsort
SELECT ALL + 64 AS col0, - 82 AS col1
----
64
-82

query I rowsort
SELECT - + 85 * - + 97 AS col0
----
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - - NULLIF ( - CASE 19 WHEN - 26 * - 36 - - COUNT( * ) - + - 47 THEN + MIN( DISTINCT + + 3 ) * - 71 - - AVG ( 96 ) ELSE NULL END, MAX( ALL 40 ) ) + - 85 + - - 0 + COUNT( * ) + 67 * + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT - - NULLIF ( - CASE 19 WHEN - 26 * - 36 - - COUNT ( * ) - + - 47 THEN + MIN ( DISTINCT + + 3 ) * - 71 - - AVG ( 96 ) ELSE NULL END, MAX ( ALL 40 ) ) + - 85 + - - 0 + COUNT ( * ) + 67 * + 57 AS col1
----
NULL

query I rowsort
SELECT - + 41 + + 14
----
-27

query I rowsort
SELECT + + 35 - + 71
----
-36

query I rowsort
SELECT ALL + + 15 * - 47
----
-705

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9482
SELECT - - 24 * 32 DIV + 63 AS col1, - COUNT( * )
----
12
-1

skipif mysql # not compatible
query II rowsort label-9482
SELECT - - 24 * 32 / + 63 AS col1, - COUNT ( * )
----
12
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT + 13 * + + COUNT( * ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT + 13 * + + COUNT ( * ) AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT ALL CASE COUNT( * ) WHEN - COUNT( * ) - + 34 THEN NULL WHEN - 46 * 79 / CASE 33 WHEN - 25 * - 90 THEN - ( 70 ) END * - + CASE - CAST( MIN( ALL 45 ) AS SIGNED ) WHEN - 99 THEN NULL WHEN + - 61 THEN NULL ELSE 1 * - 43 END + 78 + + + 52 + - COUNT( * ) + + 45 THEN NULL ELSE + CAST( NULL AS SIGNED ) * - 50 * + 19 * - + 60 * - + COUNT( * ) * + 6 + - - 51 END + 13 + + COALESCE ( - - 26, ( + 64 ), CASE + 43 WHEN - 75 / - 18 + + 82 * - - 23 / + + MIN( DISTINCT 0 ) * 36 THEN 13 WHEN 6 THEN NULL END * + 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL CASE COUNT ( * ) WHEN - COUNT ( * ) - + 34 THEN NULL WHEN - 46 * 79 / CASE 33 WHEN - 25 * - 90 THEN - ( 70 ) END * - + CASE - CAST ( MIN ( ALL 45 ) AS INTEGER ) WHEN - 99 THEN NULL WHEN + - 61 THEN NULL ELSE 1 * - 43 END + 78 + + + 52 + - COUNT ( * ) + + 45 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * - 50 * + 19 * - + 60 * - + COUNT ( * ) * + 6 + - - 51 END + 13 + + COALESCE ( - - 26, ( + 64 ), CASE + 43 WHEN - 75 / - 18 + + 82 * - - 23 / + + MIN ( DISTINCT 0 ) * 36 THEN 13 WHEN 6 THEN NULL END * + 81 ) AS col2
----
NULL

query I rowsort
SELECT ALL + + ( - 19 ) AS col0
----
-19

query I rowsort
SELECT ALL + 69 * - ( + - 32 ) * - 42 * - 61
----
5656896

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT ALL + - COUNT( + 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL + - COUNT ( + 99 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9488
SELECT ALL - 87 / + - COUNT( * ) + - 67 / - - 78 / - 83 / + - 73 + - + CAST( NULL AS SIGNED ) + 54 + - - 36 * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL - 87 / + - COUNT ( * ) + - 67 / - - 78 / - 83 / + - 73 + - + CAST ( NULL AS INTEGER ) + 54 + - - 36 * 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9489
SELECT DISTINCT ( + 67 ) DIV + 14 + + - SUM( ALL 74 ) DIV - 85 * - CAST( - 82 AS SIGNED ) * + - COALESCE ( + + 45, - ( - - 41 ) * COUNT( * ) DIV - COUNT( * ) ) + + - 60 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT ( + 67 ) / + 14 + + - SUM ( ALL 74 ) / - 85 * - CAST ( - 82 AS INTEGER ) * + - COALESCE ( + + 45, - ( - - 41 ) * COUNT ( * ) / - COUNT ( * ) ) + + - 60 AS col2
----
-56

query II rowsort
SELECT + 81 * + + 96, ( + - 49 ) - + 8 col2
----
7776
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9491
SELECT ALL 21 DIV - 33 + + - 59
----
-59

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL 21 / - 33 + + - 59
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9492
SELECT ALL MIN( - 6 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL MIN ( - 6 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + 39 * - 86 - + - 10 - + - COUNT( * ) + 65 * 57
----
362

skipif mysql # not compatible
query I rowsort label-9493
SELECT + 39 * - 86 - + - 10 - + - COUNT ( * ) + 65 * 57
----
362

query I rowsort
SELECT 91 * + 54
----
4914

query I rowsort
SELECT ALL - 29 * 38 * + + 64
----
-70528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9496
SELECT ( + - CAST( - CASE + 97 WHEN + 62 + + 2 THEN - 31 WHEN 78 / - 52 THEN NULL ELSE NULL END AS SIGNED ) ) + + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT ( + - CAST ( - CASE + 97 WHEN + 62 + + 2 THEN - 31 WHEN 78 / - 52 THEN NULL ELSE NULL END AS INTEGER ) ) + + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT ALL COUNT( * ) - - + 41 + - COUNT( * ) * - 17
----
59

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL COUNT ( * ) - - + 41 + - COUNT ( * ) * - 17
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT COUNT( * ) - - + NULLIF ( NULLIF ( COALESCE ( - CASE + 37 WHEN - 53 + 16 THEN 71 ELSE NULL END, - 79, - COUNT( * ) ), + - COUNT( * ) ), + COUNT( * ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-9498
SELECT COUNT ( * ) - - + NULLIF ( NULLIF ( COALESCE ( - CASE + 37 WHEN - 53 + 16 THEN 71 ELSE NULL END, - 79, - COUNT ( * ) ), + - COUNT ( * ) ), + COUNT ( * ) ) AS col1
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9499
SELECT ( + - ( - COALESCE ( - 90, 37 ) ) ) + + COALESCE ( - + 57, + COUNT( * ) + - + 61 DIV - 34 ) AS col1
----
-147

skipif mysql # not compatible
query I rowsort label-9499
SELECT ( + - ( - COALESCE ( - 90, 37 ) ) ) + + COALESCE ( - + 57, + COUNT ( * ) + - + 61 / - 34 ) AS col1
----
-147

query I rowsort
SELECT - 1 * - + ( - - 77 ) - + 5 col2
----
72

query I rowsort
SELECT ( + 43 ) * 78 + 83 AS col2
----
3437

onlyif mysql # aggregate syntax: 
query II rowsort label-9502
SELECT COUNT( * ) + - 18 AS col0, SUM( DISTINCT 47 ) * COALESCE ( - ( - 40 ), - + 95 + 50 * 89 ) * + + 9 AS col0
----
-17
16920

skipif mysql # not compatible
query II rowsort label-9502
SELECT COUNT ( * ) + - 18 AS col0, SUM ( DISTINCT 47 ) * COALESCE ( - ( - 40 ), - + 95 + 50 * 89 ) * + + 9 AS col0
----
-17
16920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9503
SELECT CAST( NULL AS SIGNED ) * 2 / NULLIF ( + - 49, - - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT CAST ( NULL AS INTEGER ) * 2 / NULLIF ( + - 49, - - 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9504
SELECT DISTINCT - CASE - 6 WHEN 26 THEN - COALESCE ( - 16, COALESCE ( 50, COUNT( * ) - 62 ) ) ELSE NULL END, + 39 AS col1
----
NULL
39

skipif mysql # not compatible
query II rowsort label-9504
SELECT DISTINCT - CASE - 6 WHEN 26 THEN - COALESCE ( - 16, COALESCE ( 50, COUNT ( * ) - 62 ) ) ELSE NULL END, + 39 AS col1
----
NULL
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9505
SELECT - + CAST( + COALESCE ( + - 95, - - ( + 32 ) ) AS SIGNED ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9505
SELECT - + CAST ( + COALESCE ( + - 95, - - ( + 32 ) ) AS INTEGER ) AS col1
----
95

query I rowsort
SELECT 81 + - 79 AS col2
----
2

query I rowsort
SELECT ALL - 25 * + 78 + - + 54 * + 66 + - + 1
----
-5515

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9508
SELECT COUNT( * ) DIV 24, 24 + 14 AS col0
----
0
38

skipif mysql # not compatible
query II rowsort label-9508
SELECT COUNT ( * ) / 24, 24 + 14 AS col0
----
0
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT + 39 + + 51 * ( - + COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-9509
SELECT + 39 + + 51 * ( - + COUNT ( * ) )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9510
SELECT - CAST( + 41 AS SIGNED ) AS col0, 9 AS col0
----
-41
9

skipif mysql # not compatible
query II rowsort label-9510
SELECT - CAST ( + 41 AS INTEGER ) AS col0, 9 AS col0
----
-41
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL 18 * + 84 * - 57 + COUNT( * ) AS col1
----
-86183

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL 18 * + 84 * - 57 + COUNT ( * ) AS col1
----
-86183

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL - 75 * ( - - COALESCE ( - 0, ( 8 ) ) ) * - - COUNT( ALL + - 56 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL - 75 * ( - - COALESCE ( - 0, ( 8 ) ) ) * - - COUNT ( ALL + - 56 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT 61 * + 98 - + + COUNT( * ) col0
----
5977

skipif mysql # not compatible
query I rowsort label-9513
SELECT 61 * + 98 - + + COUNT ( * ) col0
----
5977

query I rowsort
SELECT + 62 + 5 * + + 59 AS col1
----
357

query II rowsort
SELECT DISTINCT - + 51 + - 96, + 1 + - 84 + - 14 + - 50
----
-147
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT DISTINCT CAST( - 10 AS SIGNED ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT CAST ( - 10 AS INTEGER ) col1
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9517
SELECT ALL - + ( COUNT( + + 97 ) ) DIV 10 DIV + + SUM( - + 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - + ( COUNT ( + + 97 ) ) / 10 / + + SUM ( - + 82 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT - SUM( DISTINCT - 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-9518
SELECT - SUM ( DISTINCT - 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL - - 9 + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL - - 9 + COUNT ( * )
----
10

query I rowsort
SELECT - CASE + 92 WHEN - 64 + - 37 THEN + 22 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9521
SELECT - 4 + + COUNT( * ), - 46 AS col2
----
-3
-46

skipif mysql # not compatible
query II rowsort label-9521
SELECT - 4 + + COUNT ( * ), - 46 AS col2
----
-3
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL - 60 * + COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL - 60 * + COUNT ( * ) AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9523
SELECT 97 + + CAST( NULL AS SIGNED ) - 25 * - AVG ( DISTINCT + 75 ) / - COUNT( ALL - 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT 97 + + CAST ( NULL AS INTEGER ) - 25 * - AVG ( DISTINCT + 75 ) / - COUNT ( ALL - 27 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 42 * - 12 AS col1
----
504

query I rowsort
SELECT ALL + 87 + + 82 + + + 94 * - 58 - + 79
----
-5362

query II rowsort
SELECT 24, ( - 52 ) AS col1
----
24
-52

query I rowsort
SELECT ALL - 60 * 91 col1
----
-5460

query II rowsort
SELECT ALL - 61 AS col1, 23 + - 4 - + + 90
----
-61
-71

query I rowsort
SELECT + 73 * - 42 + + 19 * - 56 AS col2
----
-4130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9530
SELECT ALL + 88 - CAST( + + 16 AS SIGNED ) + + ( + + COUNT( * ) ) * 64 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL + 88 - CAST ( + + 16 AS INTEGER ) + + ( + + COUNT ( * ) ) * 64 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT - COUNT( * ) * - 48 + - ( - 85 )
----
133

skipif mysql # not compatible
query I rowsort label-9531
SELECT - COUNT ( * ) * - 48 + - ( - 85 )
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT DISTINCT - CAST( - - ( + 45 ) AS SIGNED )
----
-45

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT - CAST ( - - ( + 45 ) AS INTEGER )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9533
SELECT ALL - ( - NULLIF ( + 81, + COUNT( * ) ) ) DIV COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL - ( - NULLIF ( + 81, + COUNT ( * ) ) ) / COUNT ( * )
----
81

query I rowsort
SELECT 32 + 43 AS col0
----
75

query I rowsort
SELECT 15 * - 28 AS col2
----
-420

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9536
SELECT ALL - MIN( 77 ) DIV + 66, + 96 DIV - 86
----
-1
-1

skipif mysql # not compatible
query II rowsort label-9536
SELECT ALL - MIN ( 77 ) / + 66, + 96 / - 86
----
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT - CAST( + 55 AS SIGNED ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-9537
SELECT - CAST ( + 55 AS INTEGER ) AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9538
SELECT - SUM( + 61 ) - 97 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT - SUM ( + 61 ) - 97 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT ALL SUM( + 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL SUM ( + 42 ) AS col1
----
42

query II rowsort
SELECT + 95 AS col1, 89
----
95
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9541
SELECT 52, SUM( - - 19 ) AS col1
----
52
19

skipif mysql # not compatible
query II rowsort label-9541
SELECT 52, SUM ( - - 19 ) AS col1
----
52
19

query I rowsort
SELECT 75 * - + 17 AS col2
----
-1275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9543
SELECT - 60 * 98 + + - COUNT( + 56 ) + + + 17 DIV NULLIF ( 32, - - 23 ) col0
----
-5881

skipif mysql # not compatible
query I rowsort label-9543
SELECT - 60 * 98 + + - COUNT ( + 56 ) + + + 17 / NULLIF ( 32, - - 23 ) col0
----
-5881

query II rowsort
SELECT DISTINCT 74 AS col2, 92 * 29
----
74
2668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9545
SELECT ALL ( CAST( - 2 AS SIGNED ) ) + 3 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL ( CAST ( - 2 AS INTEGER ) ) + 3 AS col2
----
1

query I rowsort
SELECT + 13 - - + 66 AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9547
SELECT ALL + MIN( ALL - CAST( NULL AS SIGNED ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL + MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9548
SELECT DISTINCT + 89 + - 7 - - - 61 * 7 * - 7 + + COUNT( * ) DIV MAX( + 60 ) + 15 AS col0
----
3086

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT + 89 + - 7 - - - 61 * 7 * - 7 + + COUNT ( * ) / MAX ( + 60 ) + 15 AS col0
----
3086

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT 44 + + MIN( DISTINCT - - 86 ) * + 75 * + 62 * + 54 col0
----
21594644

skipif mysql # not compatible
query I rowsort label-9549
SELECT 44 + + MIN ( DISTINCT - - 86 ) * + 75 * + 62 * + 54 col0
----
21594644

onlyif mysql # aggregate syntax: 
query II rowsort label-9550
SELECT ALL 41, - COUNT( * ) AS col2
----
41
-1

skipif mysql # not compatible
query II rowsort label-9550
SELECT ALL 41, - COUNT ( * ) AS col2
----
41
-1

query I rowsort
SELECT DISTINCT 37 + - 83
----
-46

query I rowsort
SELECT 24 + - 17 AS col1
----
7

query I rowsort
SELECT 67 - + + 53 AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9554
SELECT ALL - 55 + - 13 DIV + 82 - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL - 55 + - 13 / + 82 - COUNT ( * )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9555
SELECT ALL + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT + CASE + COALESCE ( + + 97, + 19 * COALESCE ( - + 96, + ( - + 41 ), + + 8 * + 41 + + ( - 39 ) ) + - 0 ) WHEN SUM( ALL + ( 95 ) ) THEN ( MAX( - - ( + 53 ) ) ) END * + + ( - + MIN( DISTINCT 17 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT + CASE + COALESCE ( + + 97, + 19 * COALESCE ( - + 96, + ( - + 41 ), + + 8 * + 41 + + ( - 39 ) ) + - 0 ) WHEN SUM ( ALL + ( 95 ) ) THEN ( MAX ( - - ( + 53 ) ) ) END * + + ( - + MIN ( DISTINCT 17 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 34 * - 71
----
-2414

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT NULLIF ( 43, - - COUNT( * ) * + 57 )
----
43

skipif mysql # not compatible
query I rowsort label-9558
SELECT NULLIF ( 43, - - COUNT ( * ) * + 57 )
----
43

query II rowsort
SELECT ALL + 62 AS col2, 77
----
62
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9560
SELECT DISTINCT + 74 DIV - - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT + 74 / - - 95 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL + 82 * 98 - 19 - 42 * - 45 + - CAST( + - 77 AS SIGNED )
----
9984

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + 82 * 98 - 19 - 42 * - 45 + - CAST ( + - 77 AS INTEGER )
----
9984

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT ALL - 2 * + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL - 2 * + COUNT ( * )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9563
SELECT 93 / - 28 + + - CAST( NULL AS SIGNED ) + - + 0 * - NULLIF ( + + 6, - - 73 * + 64 ) * 54 AS col0, 99
----
NULL
99

skipif mysql # not compatible
query II rowsort label-9563
SELECT 93 / - 28 + + - CAST ( NULL AS INTEGER ) + - + 0 * - NULLIF ( + + 6, - - 73 * + 64 ) * 54 AS col0, 99
----
NULL
99

query I rowsort
SELECT - 33 * - 51 * - - 37
----
62271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9565
SELECT - CAST( NULL AS SIGNED ) + - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT - CAST ( NULL AS INTEGER ) + - 58 AS col2
----
NULL

query I rowsort
SELECT ALL + ( + + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT - 79 * - - MIN( ALL - + 96 ) AS col2
----
7584

skipif mysql # not compatible
query I rowsort label-9567
SELECT - 79 * - - MIN ( ALL - + 96 ) AS col2
----
7584

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT - COUNT( * ) + 45
----
44

skipif mysql # not compatible
query I rowsort label-9568
SELECT - COUNT ( * ) + 45
----
44

query I rowsort
SELECT ALL + - 34 col2
----
-34

query II rowsort
SELECT 42 AS col2, 61
----
42
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT DISTINCT + SUM( DISTINCT 90 )
----
90

skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT + SUM ( DISTINCT 90 )
----
90

query I rowsort
SELECT ALL - - 10 * 68 * + + 23 * - + 33 * + 22 + + 22 + - ( 99 ) * - 48 + 79 AS col0
----
-11349787

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - - 90 * 20 * - SUM( ALL 83 ) + + 61 AS col0
----
-149339

skipif mysql # not compatible
query I rowsort label-9573
SELECT - - 90 * 20 * - SUM ( ALL 83 ) + + 61 AS col0
----
-149339

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9574
SELECT + 17 - - ( - + 92 ) DIV + COUNT( * ) + - NULLIF ( - + 95, - 91 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-9574
SELECT + 17 - - ( - + 92 ) / + COUNT ( * ) + - NULLIF ( - + 95, - 91 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT - MAX( 78 ) + - + 30 - - + 91 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-9575
SELECT - MAX ( 78 ) + - + 30 - - + 91 AS col0
----
-17

query I rowsort
SELECT ALL + + NULLIF ( - 3, 79 - + 46 + 66 + + COALESCE ( - + 12, - 50 ) * 83 + + 8 ) AS col2
----
-3

query I rowsort
SELECT ALL - 42 + + - 11
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT CAST( + 20 AS SIGNED ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-9578
SELECT CAST ( + 20 AS INTEGER ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT COUNT( * ) + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT COUNT ( * ) + - 90
----
-89

query I rowsort
SELECT DISTINCT + - 67 + + + 65
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9581
SELECT ALL 36 * + - ( + 78 ) + + MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL 36 * + - ( + 78 ) + + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL - 93 + + COUNT( * ) - - - 21
----
-113

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL - 93 + + COUNT ( * ) - - - 21
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT + - 89 * - - 85 * - 56 + MIN( DISTINCT + + 97 ) AS col1
----
423737

skipif mysql # not compatible
query I rowsort label-9583
SELECT + - 89 * - - 85 * - 56 + MIN ( DISTINCT + + 97 ) AS col1
----
423737

query I rowsort
SELECT ALL + 82 + + + 97 + - ( 92 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL - 90 * COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL - 90 * COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT - + SUM( 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-9586
SELECT - + SUM ( 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL + 66 - SUM( ALL + - 17 )
----
83

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL + 66 - SUM ( ALL + - 17 )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT - ( + CAST( + 88 AS SIGNED ) )
----
-88

skipif mysql # not compatible
query I rowsort label-9588
SELECT - ( + CAST ( + 88 AS INTEGER ) )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9589
SELECT DISTINCT 87 DIV ( - 55 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT 87 / ( - 55 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT COALESCE ( + 96, - - 37 ) AS col1
----
96

query II rowsort
SELECT ALL + 70 * - 29 col2, 11 AS col1
----
-2030
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + 16 * COUNT( DISTINCT + 29 )
----
16

skipif mysql # not compatible
query I rowsort label-9592
SELECT + 16 * COUNT ( DISTINCT + 29 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL COUNT( * ) * + 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL COUNT ( * ) * + 62 AS col0
----
62

query II rowsort
SELECT + ( + 6 ) AS col1, + 71 AS col1
----
6
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT - 9 + - 40 * + COUNT( * ) * + - 96 + + - 85 * + 91 AS col2
----
-3904

skipif mysql # not compatible
query I rowsort label-9595
SELECT - 9 + - 40 * + COUNT ( * ) * + - 96 + + - 85 * + 91 AS col2
----
-3904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9596
SELECT ALL + SUM( DISTINCT + CAST( - - 93 AS SIGNED ) )
----
93

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL + SUM ( DISTINCT + CAST ( - - 93 AS INTEGER ) )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT + 80 * + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9597
SELECT + 80 * + COUNT ( * ) AS col2
----
80

query I rowsort
SELECT + 56 * + - 0 * ( + 62 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT + 73 + + - 30 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - 69 / + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT + 73 + + - 30 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - 69 / + 32
----
NULL

query I rowsort
SELECT DISTINCT 79 * - 10 AS col1
----
-790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9601
SELECT ALL + COUNT( * ) DIV + 97 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL + COUNT ( * ) / + 97 / 41
----
0

query I rowsort
SELECT - 50 * - 65 * + - 37
----
-120250

onlyif mysql # DIV for integer division: 
query I rowsort label-9603
SELECT ALL + 26 DIV - - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL + 26 / - - 66 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT DISTINCT ( COALESCE ( - - 59, + 45 ) ) DIV + - 38 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT ( COALESCE ( - - 59, + 45 ) ) / + - 38 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT ( - CASE + 0 WHEN + COUNT( + 84 ) THEN NULL ELSE - CASE - + 37 WHEN + - 51 THEN - 41 + + 54 WHEN 86 + - COUNT( * ) / CAST( NULL AS SIGNED ) - + NULLIF ( + 85, + ( + 82 ) + 3 ) + - 53 * - - 26 THEN NULL END * + 75 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT ( - CASE + 0 WHEN + COUNT ( + 84 ) THEN NULL ELSE - CASE - + 37 WHEN + - 51 THEN - 41 + + 54 WHEN 86 + - COUNT ( * ) / CAST ( NULL AS INTEGER ) - + NULLIF ( + 85, + ( + 82 ) + 3 ) + - 53 * - - 26 THEN NULL END * + 75 END )
----
NULL

query I rowsort
SELECT ( + 20 ) AS col2
----
20

query I rowsort
SELECT - - 52 + - 86 * - - 68 * 79 + + + CASE + - 26 WHEN + - 15 THEN - 32 + - 93 END
----
NULL

query I rowsort
SELECT DISTINCT + - 6 * - - 7
----
-42

query I rowsort
SELECT - 81 * + - 35 + ( - 93 )
----
2742

query I rowsort
SELECT ALL + 85 * + 92 + - ( 35 ) * - + 38 AS col1
----
9150

onlyif mysql # aggregate syntax: 
query II rowsort label-9611
SELECT ALL + - ( + COUNT( * ) ) AS col0, - 49
----
-1
-49

skipif mysql # not compatible
query II rowsort label-9611
SELECT ALL + - ( + COUNT ( * ) ) AS col0, - 49
----
-1
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9612
SELECT DISTINCT 31 * - 63 + + COALESCE ( + CASE - 42 WHEN 20 * CASE CASE 53 WHEN + 92 + 91 * + COALESCE ( 22, - 94 * 14, - CAST( + 32 AS SIGNED ) ) THEN + 16 WHEN + 88 THEN NULL END WHEN - 14 THEN + + COUNT( ALL 88 ) WHEN + + 55 THEN NULL END THEN + + 42 + - NULLIF ( ( NULLIF ( + 86, + - COUNT( ALL 30 ) ) ), - 32 + + - 22 + + + ( 79 ) + - CAST( + + 7 AS DECIMAL ) ) END, - 60 * ( + 89 ) * + 68 ) AS col2
----
-365073

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT 31 * - 63 + + COALESCE ( + CASE - 42 WHEN 20 * CASE CASE 53 WHEN + 92 + 91 * + COALESCE ( 22, - 94 * 14, - CAST ( + 32 AS INTEGER ) ) THEN + 16 WHEN + 88 THEN NULL END WHEN - 14 THEN + + COUNT ( ALL 88 ) WHEN + + 55 THEN NULL END THEN + + 42 + - NULLIF ( ( NULLIF ( + 86, + - COUNT ( ALL 30 ) ) ), - 32 + + - 22 + + + ( 79 ) + - CAST ( + + 7 AS REAL ) ) END, - 60 * ( + 89 ) * + 68 ) AS col2
----
-365073

query II rowsort
SELECT DISTINCT + ( 90 ) * 13, + 15 AS col2
----
1170
15

query I rowsort
SELECT - + 25 * + + 58
----
-1450

query I rowsort
SELECT ALL + CASE WHEN NOT ( ( + 33 ) <> ( 1 * 59 ) ) THEN 47 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT - - 56 + - + 9 + SUM( DISTINCT - 36 )
----
11

skipif mysql # not compatible
query I rowsort label-9616
SELECT - - 56 + - + 9 + SUM ( DISTINCT - 36 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9617
SELECT - + CASE + ( 71 ) WHEN + 78 / - 44 + + 60 + - + 52 * - + COUNT( * ) * + COUNT( * ) THEN NULL WHEN - + 97 THEN 46 WHEN 92 * + CAST( NULL AS SIGNED ) * COUNT( * ) THEN NULL WHEN + MIN( ALL 1 ) * - + CASE + - 63 WHEN - 27 - - SUM( 15 ) THEN + + 0 * + 29 / - - ( SUM( - CAST( NULL AS SIGNED ) ) ) * + 92 * + + 5 + ( + 79 ) + - COALESCE ( - + 39, COUNT( * ) ) * 65 END * 47 + - 22 * + 81 * - 34 / 66 - 31 + - 60 THEN - 6 ELSE NULL END + + - ( + 89 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT - + CASE + ( 71 ) WHEN + 78 / - 44 + + 60 + - + 52 * - + COUNT ( * ) * + COUNT ( * ) THEN NULL WHEN - + 97 THEN 46 WHEN 92 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) THEN NULL WHEN + MIN ( ALL 1 ) * - + CASE + - 63 WHEN - 27 - - SUM ( 15 ) THEN + + 0 * + 29 / - - ( SUM ( - CAST ( NULL AS INTEGER ) ) ) * + 92 * + + 5 + ( + 79 ) + - COALESCE ( - + 39, COUNT ( * ) ) * 65 END * 47 + - 22 * + 81 * - 34 / 66 - 31 + - 60 THEN - 6 ELSE NULL END + + - ( + 89 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT + + 75 DIV - 29
----
-2

skipif mysql # not compatible
query I rowsort label-9618
SELECT + + 75 / - 29
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT - CAST( + 11 AS SIGNED ) * COUNT( 1 )
----
-11

skipif mysql # not compatible
query I rowsort label-9619
SELECT - CAST ( + 11 AS INTEGER ) * COUNT ( 1 )
----
-11

query I rowsort
SELECT 35 + + + 79
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-9621
SELECT ALL COUNT( * ) * COUNT( * ) * - + 71, 91 * - - 3 * - 29 col0
----
-71
-7917

skipif mysql # not compatible
query II rowsort label-9621
SELECT ALL COUNT ( * ) * COUNT ( * ) * - + 71, 91 * - - 3 * - 29 col0
----
-71
-7917

query I rowsort
SELECT 84 - ( 12 )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9623
SELECT ALL + - 97 DIV - - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL + - 97 / - - COUNT ( * )
----
-97

query I rowsort
SELECT 0 - 66 AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL COUNT( * ) * 24
----
24

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL COUNT ( * ) * 24
----
24

query II rowsort
SELECT 54 AS col1, + 5
----
54
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT ALL + 29 * + - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL + 29 * + - COUNT ( * )
----
-29

query II rowsort
SELECT - 10 AS col2, 14 AS col1
----
-10
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT 97 * 11 * - ( + COUNT( * ) ) AS col0
----
-1067

skipif mysql # not compatible
query I rowsort label-9629
SELECT 97 * 11 * - ( + COUNT ( * ) ) AS col0
----
-1067

query I rowsort
SELECT 0 + - - 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT 35 - + - COUNT( ALL + 98 ) * - 36
----
-1

skipif mysql # not compatible
query I rowsort label-9631
SELECT 35 - + - COUNT ( ALL + 98 ) * - 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL - MAX( + 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL - MAX ( + 5 ) AS col2
----
-5

query I rowsort
SELECT ALL 20 * - CASE - 19 WHEN - 83 THEN 46 END
----
NULL

query I rowsort
SELECT ALL ( + 11 ) + - 94 col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ( COUNT( * ) ) + + 28 * - 0
----
1

skipif mysql # not compatible
query I rowsort label-9635
SELECT ( COUNT ( * ) ) + + 28 * - 0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9636
SELECT 12 + + 63 * + 19 AS col0, 64 + - ( COUNT( * ) )
----
1209
63

skipif mysql # not compatible
query II rowsort label-9636
SELECT 12 + + 63 * + 19 AS col0, 64 + - ( COUNT ( * ) )
----
1209
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT ALL - - 42 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL - - 42 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT + 33 * - CASE + 71 WHEN - 69 THEN NULL WHEN - + 73 / + 36 + + COUNT( * ) THEN + - 83 WHEN - 62 * + + 51 THEN NULL END * + 32 + - 88 * + AVG ( ALL - 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT + 33 * - CASE + 71 WHEN - 69 THEN NULL WHEN - + 73 / + 36 + + COUNT ( * ) THEN + - 83 WHEN - 62 * + + 51 THEN NULL END * + 32 + - 88 * + AVG ( ALL - 96 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 15 + + 26 AS col2
----
41

query I rowsort
SELECT ALL - - 40 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT 4 + 56 * - 19 + 56 - + COUNT( * )
----
-1005

skipif mysql # not compatible
query I rowsort label-9641
SELECT 4 + 56 * - 19 + 56 - + COUNT ( * )
----
-1005

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9642
SELECT ALL - - 66 DIV - MAX( + - 81 ) AS col0, - 99 + + 32
----
0
-67

skipif mysql # not compatible
query II rowsort label-9642
SELECT ALL - - 66 / - MAX ( + - 81 ) AS col0, - 99 + + 32
----
0
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9643
SELECT + + 96, - 24 - + CAST( NULL AS SIGNED ) AS col1
----
96
NULL

skipif mysql # not compatible
query II rowsort label-9643
SELECT + + 96, - 24 - + CAST ( NULL AS INTEGER ) AS col1
----
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT - 15 - + NULLIF ( + 11, - - 26 ) * - COALESCE ( + + 80, + 44 - 10, - SUM( + - 27 ) * + 47 * - - COUNT( * ) + + + 40 - + 58 )
----
865

skipif mysql # not compatible
query I rowsort label-9644
SELECT - 15 - + NULLIF ( + 11, - - 26 ) * - COALESCE ( + + 80, + 44 - 10, - SUM ( + - 27 ) * + 47 * - - COUNT ( * ) + + + 40 - + 58 )
----
865

query II rowsort
SELECT ALL - 71 AS col1, + 36 * ( - 73 )
----
-71
-2628

query I rowsort
SELECT 30 + - 91 AS col2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9647
SELECT 4 * + + 63 * - - 71 - COUNT( * ) + - 49 * - NULLIF ( 35, - + 71 ) * - 1 + + COUNT( * ) + - + 3 DIV + 31 + + 34 * + 51 AS col0, NULLIF ( MAX( DISTINCT 78 ), COUNT( * ) ) AS col2
----
17911
78

skipif mysql # not compatible
query II rowsort label-9647
SELECT 4 * + + 63 * - - 71 - COUNT ( * ) + - 49 * - NULLIF ( 35, - + 71 ) * - 1 + + COUNT ( * ) + - + 3 / + 31 + + 34 * + 51 AS col0, NULLIF ( MAX ( DISTINCT 78 ), COUNT ( * ) ) AS col2
----
17911
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9648
SELECT + 43 col1, - COUNT( * ) AS col0
----
43
-1

skipif mysql # not compatible
query II rowsort label-9648
SELECT + 43 col1, - COUNT ( * ) AS col0
----
43
-1

query II rowsort
SELECT - + 76 AS col1, 58 - - + 86
----
-76
144

query I rowsort
SELECT 19 + + - 41 AS col0
----
-22

query I rowsort
SELECT DISTINCT + 7 * 81 * 2 * - 44 AS col1
----
-49896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9652
SELECT 53 + - + 1 + + - 38 - 78 * + 17 + AVG ( 88 ) * - - 39 + - - COALESCE ( + 48, + 0 * + + 16 - + 31 + - 72 + + 6 + + ( + + COUNT( * ) ) / - 18 * + + 28 * ( + + 22 ) + 68 * + COUNT( * ) + 30 ) * + 59 * + 61 + 61 / COUNT( + - 76 ) + - - 40 * + COUNT( * ) - 54 + + 67 + - + CASE 11 WHEN - 53 * - CASE + 28 WHEN - CASE + 96 WHEN - 45 THEN - 57 ELSE NULL END / - 1 + + + COUNT( * ) THEN NULL WHEN + 77 THEN COUNT( * ) * - + 51 END + + CASE - 87 WHEN 36 / COUNT( * ) THEN 13 + + 41 WHEN + 62 - 47 THEN NULL END * CAST( 30 / - 4 + 92 AS SIGNED ) THEN + 24 WHEN 57 + 46 / - COUNT( * ) THEN NULL ELSE - 95 * + 29 END * - AVG ( ALL 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT 53 + - + 1 + + - 38 - 78 * + 17 + AVG ( 88 ) * - - 39 + - - COALESCE ( + 48, + 0 * + + 16 - + 31 + - 72 + + 6 + + ( + + COUNT ( * ) ) / - 18 * + + 28 * ( + + 22 ) + 68 * + COUNT ( * ) + 30 ) * + 59 * + 61 + 61 / COUNT ( + - 76 ) + - - 40 * + COUNT ( * ) - 54 + + 67 + - + CASE 11 WHEN - 53 * - CASE + 28 WHEN - CASE + 96 WHEN - 45 THEN - 57 ELSE NULL END / - 1 + + + COUNT ( * ) THEN NULL WHEN + 77 THEN COUNT ( * ) * - + 51 END + + CASE - 87 WHEN 36 / COUNT ( * ) THEN 13 + + 41 WHEN + 62 - 47 THEN NULL END * CAST ( 30 / - 4 + 92 AS INTEGER ) THEN + 24 WHEN 57 + 46 / - COUNT ( * ) THEN NULL ELSE - 95 * + 29 END * - AVG ( ALL 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL + SUM( - 14 ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL + SUM ( - 14 ) col0
----
-14

query I rowsort
SELECT 30 * 8 AS col0
----
240

query I rowsort
SELECT ALL + 97 * 6 * + 94 col1
----
54708

query I rowsort
SELECT 87 + 86
----
173

query I rowsort
SELECT 97 + + 85
----
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9658
SELECT 32 * + COALESCE ( + 34, CAST( + 11 AS SIGNED ) ) AS col0
----
1088

skipif mysql # not compatible
query I rowsort label-9658
SELECT 32 * + COALESCE ( + 34, CAST ( + 11 AS INTEGER ) ) AS col0
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT COUNT( * ) + 63 + 26 + 5 * + 5 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-9659
SELECT COUNT ( * ) + 63 + 26 + 5 * + 5 AS col2
----
115

onlyif mysql # DIV for integer division: 
query II rowsort label-9660
SELECT DISTINCT - 52 DIV - + 15 AS col2, ( + + 23 ) + + ( - 10 )
----
3
13

skipif mysql # not compatible
query II rowsort label-9660
SELECT DISTINCT - 52 / - + 15 AS col2, ( + + 23 ) + + ( - 10 )
----
3
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT ALL + CAST( - - ( - + COUNT( * ) ) AS SIGNED ) + + 97 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL + CAST ( - - ( - + COUNT ( * ) ) AS INTEGER ) + + 97 AS col1
----
96

query I rowsort
SELECT ALL - ( 0 ) + + 33 * - - 61 + + 87 * + - 25
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9663
SELECT 22 + - 11 DIV - 78 - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9663
SELECT 22 + - 11 / - 78 - COUNT ( * )
----
21

query I rowsort
SELECT DISTINCT 86 * 64
----
5504

query I rowsort
SELECT DISTINCT - ( - 65 ) + - 50 + - + 27 AS col1
----
-12

query I rowsort
SELECT 35 * 5 * 72 AS col1
----
12600

query I rowsort
SELECT 41 + + 16
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT ALL - 35 + + + 50 - - 16 + + + 36 * - + 36 DIV + COUNT( * ) AS col0
----
-1265

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - 35 + + + 50 - - 16 + + + 36 * - + 36 / + COUNT ( * ) AS col0
----
-1265

query I rowsort
SELECT 12 * + 67
----
804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT DISTINCT - 80 * 78 + - CAST( - ( + ( - 10 ) ) AS SIGNED ) AS col2
----
-6250

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT - 80 * 78 + - CAST ( - ( + ( - 10 ) ) AS INTEGER ) AS col2
----
-6250

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT + SUM( DISTINCT + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-9671
SELECT + SUM ( DISTINCT + 77 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9672
SELECT COALESCE ( CAST( NULL AS SIGNED ), - 85, - 10 * - + 32 ) * + 75 + - 45 AS col0
----
-6420

skipif mysql # not compatible
query I rowsort label-9672
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - 85, - 10 * - + 32 ) * + 75 + - 45 AS col0
----
-6420

query I rowsort
SELECT DISTINCT + 19 * + 54 * - ( - 10 )
----
10260

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT - 54 * - - 57 * + 65 - 91 * 58 * + + ( SUM( DISTINCT 89 ) )
----
-669812

skipif mysql # not compatible
query I rowsort label-9674
SELECT - 54 * - - 57 * + 65 - 91 * 58 * + + ( SUM ( DISTINCT 89 ) )
----
-669812

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL - MAX( ALL + 12 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - MAX ( ALL + 12 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT + ( COUNT( + 21 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9676
SELECT + ( COUNT ( + 21 ) )
----
1

query I rowsort
SELECT + 21 * 61
----
1281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9678
SELECT 96 DIV - + MAX( + 17 )
----
-5

skipif mysql # not compatible
query I rowsort label-9678
SELECT 96 / - + MAX ( + 17 )
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9679
SELECT ALL 69 * + CASE + + MAX( ALL + - 22 ) WHEN + + 72 THEN + CAST( + 15 AS SIGNED ) ELSE NULL END / 16 - + 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL 69 * + CASE + + MAX ( ALL + - 22 ) WHEN + + 72 THEN + CAST ( + 15 AS INTEGER ) ELSE NULL END / 16 - + 75 AS col2
----
NULL

query II rowsort
SELECT + - ( - + 74 ) AS col0, 55 * - 35 AS col2
----
74
-1925

onlyif mysql # aggregate syntax: 
query II rowsort label-9681
SELECT + 57 * - COUNT( * ) AS col1, 82 AS col0
----
-57
82

skipif mysql # not compatible
query II rowsort label-9681
SELECT + 57 * - COUNT ( * ) AS col1, 82 AS col0
----
-57
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9682
SELECT + - NULLIF ( COUNT( * ), - 13 + CASE + - MIN( DISTINCT 94 ) WHEN + NULLIF ( 40, 75 ) * + 12 * + 27 THEN - + 46 * + 59 + CAST( - 95 AS SIGNED ) + 84 + + 26 WHEN 77 THEN NULL END - - 5 ) DIV - 21
----
0

skipif mysql # not compatible
query I rowsort label-9682
SELECT + - NULLIF ( COUNT ( * ), - 13 + CASE + - MIN ( DISTINCT 94 ) WHEN + NULLIF ( 40, 75 ) * + 12 * + 27 THEN - + 46 * + 59 + CAST ( - 95 AS INTEGER ) + 84 + + 26 WHEN 77 THEN NULL END - - 5 ) / - 21
----
0

query I rowsort
SELECT ALL + 42 * - 77 + 54 - - 44 AS col2
----
-3136

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL + CASE + - 91 WHEN - 52 * - 49 THEN NULL WHEN - 5 * + + 14 + + - MIN( ALL - 15 ) / - - NULLIF ( + + 8, + 5 - + - COUNT( ALL 8 ) ) * 41 * + 96 THEN NULL ELSE + - 69 END AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL + CASE + - 91 WHEN - 52 * - 49 THEN NULL WHEN - 5 * + + 14 + + - MIN ( ALL - 15 ) / - - NULLIF ( + + 8, + 5 - + - COUNT ( ALL 8 ) ) * 41 * + 96 THEN NULL ELSE + - 69 END AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9685
SELECT ALL - + COUNT( * ) DIV + + ( + + 11 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - + COUNT ( * ) / + + ( + + 11 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT + CAST( NULL AS SIGNED ) / - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT + CAST ( NULL AS INTEGER ) / - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT + 46 + + + MAX( + 44 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-9687
SELECT + 46 + + + MAX ( + 44 ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - 15 * COUNT( DISTINCT - 90 )
----
-15

skipif mysql # not compatible
query I rowsort label-9688
SELECT - 15 * COUNT ( DISTINCT - 90 )
----
-15

query I rowsort
SELECT - NULLIF ( - + 86, + 66 )
----
86

query I rowsort
SELECT - 86 * 91 * + - 79 AS col0
----
618254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9691
SELECT ALL + COUNT( * ) + + 50 * 80 - - + COUNT( * ) * + - NULLIF ( + 95, + COUNT( ALL - 32 ) * - 84 * - 67 + + 17 - - CAST( + - 15 AS SIGNED ) * 75 ) AS col2
----
3906

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL + COUNT ( * ) + + 50 * 80 - - + COUNT ( * ) * + - NULLIF ( + 95, + COUNT ( ALL - 32 ) * - 84 * - 67 + + 17 - - CAST ( + - 15 AS INTEGER ) * 75 ) AS col2
----
3906

query I rowsort
SELECT ALL - 48 + - 5
----
-53

query I rowsort
SELECT - 33 - - 72 AS col1
----
39

query I rowsort
SELECT - 51 * - 82
----
4182

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9695
SELECT DISTINCT 56 + COUNT( * ) - + NULLIF ( 30, + - CAST( - 68 AS DECIMAL ) ) + + - COUNT( * ) + 89 + 86 + 13
----
214

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT 56 + COUNT ( * ) - + NULLIF ( 30, + - CAST ( - 68 AS REAL ) ) + + - COUNT ( * ) + 89 + 86 + 13
----
214

query I rowsort
SELECT DISTINCT - 21 + + + ( - 14 ) + 50 AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9697
SELECT ALL - CAST( NULL AS DECIMAL ) + ( + CASE + 65 WHEN + 8 THEN - COUNT( * ) END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL - CAST ( NULL AS REAL ) + ( + CASE + 65 WHEN + 8 THEN - COUNT ( * ) END ) col0
----
NULL

query I rowsort
SELECT + 97 + + 78
----
175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9699
SELECT + 15 DIV MAX( DISTINCT + 36 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT + 15 / MAX ( DISTINCT + 36 ) AS col1
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - 33, 46 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9701
SELECT - 55 - - + COUNT( * ) + - ( - ( + - COALESCE ( 0, - COUNT( * ) * - + CAST( NULL AS DECIMAL ) ) ) ) - + CASE + 36 WHEN 92 THEN + AVG ( + 78 ) * - COUNT( * ) WHEN + + 39 THEN + 0 + - 25 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT - 55 - - + COUNT ( * ) + - ( - ( + - COALESCE ( 0, - COUNT ( * ) * - + CAST ( NULL AS REAL ) ) ) ) - + CASE + 36 WHEN 92 THEN + AVG ( + 78 ) * - COUNT ( * ) WHEN + + 39 THEN + 0 + - 25 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL COUNT( + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL COUNT ( + 72 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT - 19 + 44 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9703
SELECT - 19 + 44 * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9704
SELECT ALL - 77 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL - 77 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9705
SELECT ALL 19 DIV + 58 - 62
----
-62

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL 19 / + 58 - 62
----
-62

query I rowsort
SELECT ALL 7 * 44 AS col0
----
308

query I rowsort
SELECT 5 * 0 + - 45 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT - 31 - - NULLIF ( 10, - 19 ) * - ( - COUNT( * ) * 72 )
----
689

skipif mysql # not compatible
query I rowsort label-9708
SELECT - 31 - - NULLIF ( 10, - 19 ) * - ( - COUNT ( * ) * 72 )
----
689

query I rowsort
SELECT DISTINCT - 32 * - 7
----
224

onlyif mysql # DIV for integer division: 
query I rowsort label-9710
SELECT + 44 DIV - 74 + - ( + 59 - - 63 )
----
-122

skipif mysql # not compatible
query I rowsort label-9710
SELECT + 44 / - 74 + - ( + 59 - - 63 )
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT + COUNT( ( 46 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9711
SELECT + COUNT ( ( 46 ) )
----
1

query I rowsort
SELECT ALL - 14 * 58 col1
----
-812

query I rowsort
SELECT + NULLIF ( + ( + 34 ), 46 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT ALL + COALESCE ( + 62, - 47 * - CAST( NULL AS SIGNED ) )
----
62

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL + COALESCE ( + 62, - 47 * - CAST ( NULL AS INTEGER ) )
----
62

query I rowsort
SELECT + 23 + 27 AS col0
----
50

query I rowsort
SELECT + 99 + + NULLIF ( + 74, 55 + 60 )
----
173

query I rowsort
SELECT ALL 23 * + 69
----
1587

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT + COUNT( DISTINCT 44 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9718
SELECT + COUNT ( DISTINCT 44 ) AS col2
----
1

query I rowsort
SELECT + 93 + 61 AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT + COUNT( + 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9720
SELECT + COUNT ( + 47 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT 79 * + 86 + - ( - 97 + ( 1 ) * + SUM( - 38 * 78 ) )
----
9855

skipif mysql # not compatible
query I rowsort label-9721
SELECT 79 * + 86 + - ( - 97 + ( 1 ) * + SUM ( - 38 * 78 ) )
----
9855

onlyif mysql # DIV for integer division: 
query I rowsort label-9722
SELECT + 87 DIV + 36 col1
----
2

skipif mysql # not compatible
query I rowsort label-9722
SELECT + 87 / + 36 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT ALL + ( + 22 ) * - COUNT( * ) + 64
----
42

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + ( + 22 ) * - COUNT ( * ) + 64
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT + 33 + - 65 DIV - 27 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9724
SELECT + 33 + - 65 / - 27 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT ALL COUNT( 44 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL COUNT ( 44 ) col1
----
1

query I rowsort
SELECT - ( 9 ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9727
SELECT DISTINCT + 58 * + 91 + ( 23 + COALESCE ( 10 + 42 * - 16, - 69 * 84 + COUNT( * ), - 33 * 36 + - 88, CAST( NULL AS SIGNED ) ) )
----
4639

skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT + 58 * + 91 + ( 23 + COALESCE ( 10 + 42 * - 16, - 69 * 84 + COUNT ( * ), - 33 * 36 + - 88, CAST ( NULL AS INTEGER ) ) )
----
4639

query I rowsort
SELECT ALL - 74 * + 55 + 11 AS col1
----
-4059

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT DISTINCT + 89 DIV - 81 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT + 89 / - 81 AS col2
----
-1

query I rowsort
SELECT + 97 * - 60 AS col1
----
-5820

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT + COUNT( * ) * 8
----
8

skipif mysql # not compatible
query I rowsort label-9731
SELECT + COUNT ( * ) * 8
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT ALL ( + 24 ) DIV 22
----
1

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL ( + 24 ) / 22
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT + 74 * COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9733
SELECT + 74 * COUNT ( * ) AS col2
----
74

query I rowsort
SELECT DISTINCT 3 + 63 col1
----
66

query I rowsort
SELECT ALL - 17 - - 55
----
38

query I rowsort
SELECT + 43 * + 9
----
387

query I rowsort
SELECT + 61 + + 14
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT - 99 * + COUNT( + 86 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT - 99 * + COUNT ( + 86 ) AS col1
----
-99

query I rowsort
SELECT ALL ( + 35 ) col1
----
35

query I rowsort
SELECT - ( 18 ) + + COALESCE ( + 33, 66 )
----
15

query I rowsort
SELECT ALL 2 - 69 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT - COUNT( * ) * - 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9742
SELECT - COUNT ( * ) * - 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT - - COUNT( DISTINCT + ( 96 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9743
SELECT - - COUNT ( DISTINCT + ( 96 ) ) AS col1
----
1

query I rowsort
SELECT - - 67 + - 96 AS col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9745
SELECT COUNT( * ) DIV - ( 86 * + ( 97 * - 38 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9745
SELECT COUNT ( * ) / - ( 86 * + ( 97 * - 38 ) )
----
0

query I rowsort
SELECT ( + NULLIF ( - 85, 26 ) ) * + 40 AS col1
----
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT - + COUNT( * ) * - 71 + + 72
----
143

skipif mysql # not compatible
query I rowsort label-9747
SELECT - + COUNT ( * ) * - 71 + + 72
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9748
SELECT DISTINCT + + MAX( ALL + NULLIF ( - 24, + 59 ) ) DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT + + MAX ( ALL + NULLIF ( - 24, + 59 ) ) / - 53
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9749
SELECT ( + MAX( ALL ( 62 ) ) ) DIV 14 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9749
SELECT ( + MAX ( ALL ( 62 ) ) ) / 14 AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9750
SELECT ALL - - ( COALESCE ( - 36, 19 DIV 42 + NULLIF ( 14, CAST( NULL AS SIGNED ) ) ) )
----
-36

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL - - ( COALESCE ( - 36, 19 / 42 + NULLIF ( 14, CAST ( NULL AS INTEGER ) ) ) )
----
-36

query I rowsort
SELECT DISTINCT + + 5 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9752
SELECT - 75 DIV + MAX( DISTINCT - 52 - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-9752
SELECT - 75 / + MAX ( DISTINCT - 52 - 57 )
----
0

query I rowsort
SELECT + ( 11 ) col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT + - COUNT( * ) * + 67
----
-67

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT + - COUNT ( * ) * + 67
----
-67

query I rowsort
SELECT ALL - - 75 + - 7 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT + COUNT( - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-9756
SELECT + COUNT ( - 10 )
----
1

query I rowsort
SELECT DISTINCT - 68 + + 92 AS col1
----
24

query I rowsort
SELECT ALL + - 63 + + 51 * - 35 AS col2
----
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ( 24 ) * COUNT( - 11 / 19 + 10 )
----
24

skipif mysql # not compatible
query I rowsort label-9759
SELECT ( 24 ) * COUNT ( - 11 / 19 + 10 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT 11 * + COUNT( * ) - 38
----
-27

skipif mysql # not compatible
query I rowsort label-9760
SELECT 11 * + COUNT ( * ) - 38
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT ALL NULLIF ( 76, - 14 * ( 24 ) ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL NULLIF ( 76, - 14 * ( 24 ) ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 48 + 69 + + COALESCE ( - ( + 46 ), + 13 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT ALL ( - - ( 64 ) ) * COALESCE ( CAST( 31 AS SIGNED ), - 4 ) AS col2
----
1984

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL ( - - ( 64 ) ) * COALESCE ( CAST ( 31 AS INTEGER ), - 4 ) AS col2
----
1984

query I rowsort
SELECT 25 + + - 13 * - 41 AS col2
----
558

query I rowsort
SELECT CASE + 70 WHEN + 24 + 48 * - 8 THEN NULL WHEN - 13 THEN 12 END * CASE 15 WHEN + 38 + 44 THEN - 26 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT + COUNT( * ) * + 39 + + ( - 41 )
----
-2

skipif mysql # not compatible
query I rowsort label-9766
SELECT + COUNT ( * ) * + 39 + + ( - 41 )
----
-2

query I rowsort
SELECT DISTINCT 3 - + 39
----
-36

query I rowsort
SELECT ALL 62 - ( - 66 ) * - 64
----
-4162

query I rowsort
SELECT DISTINCT + ( 4 ) * - ( + 41 * + 88 + 15 )
----
-14492

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9770
SELECT DISTINCT MIN( + 39 ) DIV - 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT MIN ( + 39 ) / - 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ( - COUNT( * ) ) + - 29
----
-30

skipif mysql # not compatible
query I rowsort label-9771
SELECT ( - COUNT ( * ) ) + - 29
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT CAST( 3 AS SIGNED ) * 38
----
114

skipif mysql # not compatible
query I rowsort label-9772
SELECT CAST ( 3 AS INTEGER ) * 38
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-9773
SELECT 50 + 2 DIV 89 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9773
SELECT 50 + 2 / 89 AS col2
----
50

query I rowsort
SELECT + NULLIF ( - 12, - 55 ) * - 66
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9775
SELECT - CAST( - + 42 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9775
SELECT - CAST ( - + 42 AS INTEGER ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT 73 + + 40 + + COUNT( * ) * 72 * - 91 AS col2
----
-6439

skipif mysql # not compatible
query I rowsort label-9776
SELECT 73 + + 40 + + COUNT ( * ) * 72 * - 91 AS col2
----
-6439

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT - COUNT( * ) * - 20
----
20

skipif mysql # not compatible
query I rowsort label-9777
SELECT - COUNT ( * ) * - 20
----
20

query I rowsort
SELECT 81 - - 24 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT - COUNT( * ) * - + 22
----
22

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT - COUNT ( * ) * - + 22
----
22

query I rowsort
SELECT 73 * - 20
----
-1460

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL - COUNT( ALL - 91 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL - COUNT ( ALL - 91 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT DISTINCT COUNT( * ) * + 13
----
13

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT COUNT ( * ) * + 13
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT 50 - + COUNT( * ) * 50
----
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT 50 - + COUNT ( * ) * 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT + + COUNT( * ) * - 20 + 70 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT + + COUNT ( * ) * - 20 + 70 AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT ALL - CAST( + + 37 AS SIGNED ) + 42
----
5

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL - CAST ( + + 37 AS INTEGER ) + 42
----
5

query I rowsort
SELECT 16 * - 57 * + 0 + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL COUNT( * ) + - 66 * + MIN( + 31 ) * + 58 AS col0
----
-118667

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL COUNT ( * ) + - 66 * + MIN ( + 31 ) * + 58 AS col0
----
-118667

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT 35 + + COUNT( * ) + 64
----
100

skipif mysql # not compatible
query I rowsort label-9788
SELECT 35 + + COUNT ( * ) + 64
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9789
SELECT ALL - 80 + - + 73 - 74 + COUNT( * ) DIV - 9
----
-227

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL - 80 + - + 73 - 74 + COUNT ( * ) / - 9
----
-227

query I rowsort
SELECT 41 * + 79
----
3239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9791
SELECT DISTINCT - 7 * + 76 * - COUNT( * ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT - 7 * + 76 * - COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT COALESCE ( 11, COUNT( ALL CAST( 54 AS SIGNED ) ) + + 90 * 94 ) * - 90
----
-990

skipif mysql # not compatible
query I rowsort label-9792
SELECT COALESCE ( 11, COUNT ( ALL CAST ( 54 AS INTEGER ) ) + + 90 * 94 ) * - 90
----
-990

query I rowsort
SELECT ALL - ( + 9 ) * 15 AS col1
----
-135

query I rowsort
SELECT DISTINCT + 35 - + 36 - - + 55 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + COUNT( * ) * - - COUNT( * ) + ( - 53 )
----
-52

skipif mysql # not compatible
query I rowsort label-9795
SELECT + COUNT ( * ) * - - COUNT ( * ) + ( - 53 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT ALL + 17 - + + MAX( - 79 ) + - 51 * - 15 AS col1
----
861

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL + 17 - + + MAX ( - 79 ) + - 51 * - 15 AS col1
----
861

query I rowsort
SELECT 41 * + - ( - 84 )
----
3444

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL + COALESCE ( 29, - 31, + ( 44 ) * MAX( DISTINCT 74 + - 10 ) ) * - 46 AS col2
----
-1334

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL + COALESCE ( 29, - 31, + ( 44 ) * MAX ( DISTINCT 74 + - 10 ) ) * - 46 AS col2
----
-1334

query I rowsort
SELECT ALL NULLIF ( 56, + 78 * - 72 )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT DISTINCT COUNT( * ) AS col2, - COALESCE ( + NULLIF ( 94, 19 ), 51 + COUNT( * ) )
----
1
-94

skipif mysql # not compatible
query II rowsort label-9800
SELECT DISTINCT COUNT ( * ) AS col2, - COALESCE ( + NULLIF ( 94, 19 ), 51 + COUNT ( * ) )
----
1
-94

query II rowsort
SELECT 43, + COALESCE ( - 26, 2 ) AS col2
----
43
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT - NULLIF ( + + ( + 80 ), 18 ) + - COALESCE ( - 42, 38 * 81 + - 67 * - 50, + MAX( 13 ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-9802
SELECT - NULLIF ( + + ( + 80 ), 18 ) + - COALESCE ( - 42, 38 * 81 + - 67 * - 50, + MAX ( 13 ) ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9803
SELECT 29, 57 * + MAX( 97 ) AS col1
----
29
5529

skipif mysql # not compatible
query II rowsort label-9803
SELECT 29, 57 * + MAX ( 97 ) AS col1
----
29
5529

onlyif mysql # aggregate syntax: 
query II rowsort label-9804
SELECT - COUNT( * ) AS col0, 90 - + 16 + - 19 * 63
----
-1
-1123

skipif mysql # not compatible
query II rowsort label-9804
SELECT - COUNT ( * ) AS col0, 90 - + 16 + - 19 * 63
----
-1
-1123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9805
SELECT + 54 + + + 32 DIV - 73 + MAX( 51 ) * + 82
----
4236

skipif mysql # not compatible
query I rowsort label-9805
SELECT + 54 + + + 32 / - 73 + MAX ( 51 ) * + 82
----
4236

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL 24 * + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL 24 * + COUNT ( * ) AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT - 94 DIV + 50
----
-1

skipif mysql # not compatible
query I rowsort label-9807
SELECT - 94 / + 50
----
-1

query I rowsort
SELECT DISTINCT + + 9 + + - ( NULLIF ( 69, 27 ) ) + - 40 * + 87 col0
----
-3540

query I rowsort
SELECT ALL - 95 + + 63 * 12 AS col1
----
661

query I rowsort
SELECT + - 89 + + 39 + + 61 * + 47
----
2817

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT DISTINCT + MIN( - 75 ) + + 90
----
15

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT + MIN ( - 75 ) + + 90
----
15

query I rowsort
SELECT ALL - + 96 * - 82 AS col1
----
7872

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT + + 15 + + COUNT( * ) * - 34 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9813
SELECT + + 15 + + COUNT ( * ) * - 34 AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT + NULLIF ( + 19, - CAST( - 49 AS SIGNED ) )
----
19

skipif mysql # not compatible
query I rowsort label-9814
SELECT + NULLIF ( + 19, - CAST ( - 49 AS INTEGER ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + - COUNT( * ) * + + 28 + + 65 + 14 * 31 col0
----
471

skipif mysql # not compatible
query I rowsort label-9815
SELECT + - COUNT ( * ) * + + 28 + + 65 + 14 * 31 col0
----
471

query I rowsort
SELECT ALL 13 + + ( - 54 ) AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9817
SELECT CASE 83 WHEN CAST( NULL AS SIGNED ) THEN + 37 + ( COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT CASE 83 WHEN CAST ( NULL AS INTEGER ) THEN + 37 + ( COUNT ( * ) ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT + 66 + - COUNT( * ) * - 25 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-9818
SELECT + 66 + - COUNT ( * ) * - 25 AS col2
----
91

query I rowsort
SELECT ALL 36 + 53 AS col0
----
89

query I rowsort
SELECT + - CASE + - 60 WHEN + 6 + + 47 THEN - 71 * + 63 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 44 * + - ( + 60 ) * 18 + 62 + 80 * 36 AS col1
----
-44578

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9822
SELECT + + COUNT( * ) * 91 DIV - 23
----
-3

skipif mysql # not compatible
query I rowsort label-9822
SELECT + + COUNT ( * ) * 91 / - 23
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT ALL - 0 * + 88 DIV - COALESCE ( + 92, - 70 * - 34 - + 72 ) * - 81 + 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL - 0 * + 88 / - COALESCE ( + 92, - 70 * - 34 - + 72 ) * - 81 + 45 AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9824
SELECT ALL 11 * - 9 * + 81 - - - CAST( NULL AS SIGNED ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL 11 * - 9 * + 81 - - - CAST ( NULL AS INTEGER ) * - 67
----
NULL

query I rowsort
SELECT + ( + 38 ) AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9826
SELECT CASE + + 39 WHEN - 61 THEN - COALESCE ( COUNT( * ), + 68 - + 84, 78 ) WHEN 12 + COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT CASE + + 39 WHEN - 61 THEN - COALESCE ( COUNT ( * ), + 68 - + 84, 78 ) WHEN 12 + COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL END col1
----
NULL

query I rowsort
SELECT ALL 92 * - 68 AS col1
----
-6256

query I rowsort
SELECT + 98 - 23 col2
----
75

query II rowsort
SELECT - 4 * 3, - ( + + 65 ) - ( ( 63 ) ) * + 89 AS col2
----
-12
-5672

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT COALESCE ( 41, - MIN( ALL 93 ) ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9830
SELECT COALESCE ( 41, - MIN ( ALL 93 ) ) AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9831
SELECT CASE NULLIF ( - 35, 83 ) WHEN - ( - CAST( ( 43 ) AS SIGNED ) ) + + COUNT( * ) / - 88 THEN + 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT CASE NULLIF ( - 35, 83 ) WHEN - ( - CAST ( ( 43 ) AS INTEGER ) ) + + COUNT ( * ) / - 88 THEN + 83 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT CASE - - 23 WHEN - - 60 - - 30 + 84 THEN NULL WHEN - COUNT( * ) * - 16 + 74 THEN - COUNT( * ) ELSE COUNT( * ) * 74 END AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9832
SELECT CASE - - 23 WHEN - - 60 - - 30 + 84 THEN NULL WHEN - COUNT ( * ) * - 16 + 74 THEN - COUNT ( * ) ELSE COUNT ( * ) * 74 END AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT + COUNT( * ) - - - 78 * - 44 * + 4
----
13729

skipif mysql # not compatible
query I rowsort label-9833
SELECT + COUNT ( * ) - - - 78 * - 44 * + 4
----
13729

query I rowsort
SELECT ALL - 58 * - + 1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT + COALESCE ( + - COUNT( * ), 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT + COALESCE ( + - COUNT ( * ), 5 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT DISTINCT + COUNT( - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT + COUNT ( - 75 )
----
1

query I rowsort
SELECT + ( ( + 84 ) ) AS col1
----
84

query I rowsort
SELECT + 85 + + + 44 AS col1
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT - CAST( - + 81 AS SIGNED ) - NULLIF ( + 15, - 89 ) + + 43
----
109

skipif mysql # not compatible
query I rowsort label-9839
SELECT - CAST ( - + 81 AS INTEGER ) - NULLIF ( + 15, - 89 ) + + 43
----
109

query I rowsort
SELECT - 84 + + ( + + 98 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL - 99 + - COUNT( * ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL - 99 + - COUNT ( * ) AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT - NULLIF ( - + 30, + 33 * + + 50 + - MIN( - 83 ) ) * 91 AS col0
----
2730

skipif mysql # not compatible
query I rowsort label-9842
SELECT - NULLIF ( - + 30, + 33 * + + 50 + - MIN ( - 83 ) ) * 91 AS col0
----
2730

query I rowsort
SELECT - + 60 + - 79 * 69
----
-5511

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT ALL - - ( - + 65 ) + MIN( - 67 )
----
-132

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL - - ( - + 65 ) + MIN ( - 67 )
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT - 67 + 25 + - - COUNT( * ) - - 60
----
19

skipif mysql # not compatible
query I rowsort label-9845
SELECT - 67 + 25 + - - COUNT ( * ) - - 60
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT DISTINCT + + 31 + - COUNT( * ) * + - ( 71 ) AS col2
----
102

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT + + 31 + - COUNT ( * ) * + - ( 71 ) AS col2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9847
SELECT ALL - + 69 * COUNT( * ) * - - COUNT( * ) - + - COALESCE ( + 28, CAST( NULL AS SIGNED ) + - COUNT( * ) )
----
-41

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - + 69 * COUNT ( * ) * - - COUNT ( * ) - + - COALESCE ( + 28, CAST ( NULL AS INTEGER ) + - COUNT ( * ) )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9848
SELECT + - COALESCE ( + 84, 29, - + COALESCE ( - 70, NULLIF ( SUM( - 8 ), CAST( NULL AS DECIMAL ) ) ) - - 10, 53 * 37 + NULLIF ( 41, - 84 ) ) DIV 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9848
SELECT + - COALESCE ( + 84, 29, - + COALESCE ( - 70, NULLIF ( SUM ( - 8 ), CAST ( NULL AS REAL ) ) ) - - 10, 53 * 37 + NULLIF ( 41, - 84 ) ) / 86 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL + COUNT( * ) + - COUNT( * ) + 58 * + 33 * - 53 AS col2
----
-101442

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + 58 * + 33 * - 53 AS col2
----
-101442

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT - 17 - 15 + + - CASE 89 WHEN 48 THEN 9 + - 76 END * COALESCE ( + 13, - 91 + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT - 17 - 15 + + - CASE 89 WHEN 48 THEN 9 + - 76 END * COALESCE ( + 13, - 91 + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT + + 39 + 72 AS col0
----
111

query I rowsort
SELECT DISTINCT - 89 - 69
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL + - 89 * COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + - 89 * COUNT ( * )
----
-89

query II rowsort
SELECT DISTINCT - - 27 * - + 49 AS col1, - 37 * + 69
----
-1323
-2553

query I rowsort
SELECT - 88 * + + 47
----
-4136

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + 57 * + + ( - 64 ) + COUNT( - 52 ) + 22 * - 42
----
-4571

skipif mysql # not compatible
query I rowsort label-9856
SELECT + 57 * + + ( - 64 ) + COUNT ( - 52 ) + 22 * - 42
----
-4571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9857
SELECT ALL + - COALESCE ( + - 37, CAST( - 36 AS SIGNED ) )
----
37

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL + - COALESCE ( + - 37, CAST ( - 36 AS INTEGER ) )
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9858
SELECT - CAST( - 21 AS SIGNED ) DIV 40 + - 46 AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-9858
SELECT - CAST ( - 21 AS INTEGER ) / 40 + - 46 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT 17 * + - 51 * 17 - - 32 * + 38 + - COALESCE ( 40, 17 + 28, 18 + ( - 30 + MIN( ALL + 44 ) ) * + 92, 18 ) AS col1
----
-13563

skipif mysql # not compatible
query I rowsort label-9859
SELECT 17 * + - 51 * 17 - - 32 * + 38 + - COALESCE ( 40, 17 + 28, 18 + ( - 30 + MIN ( ALL + 44 ) ) * + 92, 18 ) AS col1
----
-13563

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT - 75 + COALESCE ( 75, - 77 ) * + + SUM( ALL - 91 ) * + 14 AS col0
----
-95625

skipif mysql # not compatible
query I rowsort label-9860
SELECT - 75 + COALESCE ( 75, - 77 ) * + + SUM ( ALL - 91 ) * + 14 AS col0
----
-95625

onlyif mysql # DIV for integer division: 
query I rowsort label-9861
SELECT ALL + 32 DIV + + 35 - + 90
----
-90

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL + 32 / + + 35 - + 90
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9862
SELECT ALL COALESCE ( - 66, - 93 + + 36 ) DIV + - 58 + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL COALESCE ( - 66, - 93 + + 36 ) / + - 58 + COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9863
SELECT - 56 * - + 71 * - CASE CAST( NULL AS SIGNED ) WHEN - CAST( NULL AS SIGNED ) * - COUNT( ALL + 16 ) THEN - 6 - AVG ( DISTINCT ( + 58 ) ) END * 92 + 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT - 56 * - + 71 * - CASE CAST ( NULL AS INTEGER ) WHEN - CAST ( NULL AS INTEGER ) * - COUNT ( ALL + 16 ) THEN - 6 - AVG ( DISTINCT ( + 58 ) ) END * 92 + 44 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9864
SELECT CAST( + 98 AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9864
SELECT CAST ( + 98 AS INTEGER ) AS col0
----
98

query I rowsort
SELECT 54 * + 59 + - + 23 + - ( 86 ) col0
----
3077

query I rowsort
SELECT DISTINCT 85 * + 1 col1
----
85

query I rowsort
SELECT + 97 + - 57
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ( + ( - COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9868
SELECT ( + ( - COUNT ( * ) ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9869
SELECT + 15 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9869
SELECT + 15 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9870
SELECT + COALESCE ( + 57, MIN( + 21 ) / - + 67 ) * 37 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT + COALESCE ( + 57, MIN ( + 21 ) / - + 67 ) * 37 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 38 * + 8
----
304

query I rowsort
SELECT 59 * - 90 AS col2
----
-5310

query II rowsort
SELECT ALL - 30 AS col2, - 1
----
-30
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9874
SELECT 66 DIV - ( 19 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-9874
SELECT 66 / - ( 19 ) AS col0
----
-3

query I rowsort
SELECT 1 * + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT 4 + - + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9876
SELECT 4 + - + COUNT ( * )
----
3

query I rowsort
SELECT DISTINCT 2 * - - 71 AS col0
----
142

onlyif mysql # DIV for integer division: 
query I rowsort label-9878
SELECT ALL - 28 + - + 62 DIV - 27
----
-26

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL - 28 + - + 62 / - 27
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT DISTINCT - COUNT( * ) + + 54 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT - COUNT ( * ) + + 54 AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9880
SELECT DISTINCT + 26 DIV + CAST( + 44 AS SIGNED ) + + 62
----
62

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT + 26 / + CAST ( + 44 AS INTEGER ) + + 62
----
62

query I rowsort
SELECT ALL + 67 + COALESCE ( + + 55, 89 ) AS col2
----
122

query I rowsort
SELECT - 42 * + 96
----
-4032

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9883
SELECT + 51 + + COUNT( * ) + - 27 DIV 85 * ( + 97 )
----
52

skipif mysql # not compatible
query I rowsort label-9883
SELECT + 51 + + COUNT ( * ) + - 27 / 85 * ( + 97 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT CAST( - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-9884
SELECT CAST ( - 88 AS INTEGER )
----
-88

query I rowsort
SELECT 58 + 34 AS col2
----
92

query I rowsort
SELECT + 35 + + + 23 AS col2
----
58

query I rowsort
SELECT - - ( - 29 ) AS col2
----
-29

query I rowsort
SELECT DISTINCT 71 - ( - 37 ) AS col0
----
108

query I rowsort
SELECT DISTINCT - + 75 * 42
----
-3150

query I rowsort
SELECT - 19 * - 63
----
1197

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9891
SELECT - COUNT( * ) + MIN( 25 ) + + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT - COUNT ( * ) + MIN ( 25 ) + + - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT ALL 54, 19 * - - 78 AS col2
----
54
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT COALESCE ( + ( + ( - 76 ) ), COUNT( * ), 50 )
----
-76

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT COALESCE ( + ( + ( - 76 ) ), COUNT ( * ), 50 )
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9894
SELECT - + CASE + 97 WHEN 67 * - MIN( DISTINCT 54 ) - - CAST( + 82 + 61 AS SIGNED ) THEN 78 + + 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT - + CASE + 97 WHEN 67 * - MIN ( DISTINCT 54 ) - - CAST ( + 82 + 61 AS INTEGER ) THEN 78 + + 51 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT + MAX( - 42 ) * + ( - ( 40 ) ) + - 34 AS col0
----
1646

skipif mysql # not compatible
query I rowsort label-9895
SELECT + MAX ( - 42 ) * + ( - ( 40 ) ) + - 34 AS col0
----
1646

onlyif mysql # DIV for integer division: 
query II rowsort label-9896
SELECT DISTINCT - 76 AS col1, 2 DIV + 53
----
-76
0

skipif mysql # not compatible
query II rowsort label-9896
SELECT DISTINCT - 76 AS col1, 2 / + 53
----
-76
0

query I rowsort
SELECT ALL 39 * - 54 * - 6 col2
----
12636

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9898
SELECT DISTINCT - 18 AS col0, - 51 + - 63 + - NULLIF ( + CAST( NULL AS DECIMAL ), - - 78 * MIN( ALL 90 ) ) * 11 AS col1
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-9898
SELECT DISTINCT - 18 AS col0, - 51 + - 63 + - NULLIF ( + CAST ( NULL AS REAL ), - - 78 * MIN ( ALL 90 ) ) * 11 AS col1
----
-18
NULL

query I rowsort
SELECT DISTINCT + ( + 13 ) * - 62
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT COUNT( ALL + 65 ) * - COALESCE ( - 69, + 4 ) + + - 74
----
-5

skipif mysql # not compatible
query I rowsort label-9900
SELECT COUNT ( ALL + 65 ) * - COALESCE ( - 69, + 4 ) + + - 74
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL - NULLIF ( + COUNT( * ), - 53 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL - NULLIF ( + COUNT ( * ), - 53 ) AS col2
----
-1

query I rowsort
SELECT 40 - - CASE - 56 WHEN - - 98 * - 51 THEN 77 WHEN + 89 * 13 THEN NULL END + - 77 * + 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9903
SELECT + 66 AS col2, COUNT( * ) AS col1
----
66
1

skipif mysql # not compatible
query II rowsort label-9903
SELECT + 66 AS col2, COUNT ( * ) AS col1
----
66
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT 50 - COUNT( * ) * + 84
----
-34

skipif mysql # not compatible
query I rowsort label-9904
SELECT 50 - COUNT ( * ) * + 84
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9905
SELECT + 20 AS col2, - COUNT( * ) AS col0
----
20
-1

skipif mysql # not compatible
query II rowsort label-9905
SELECT + 20 AS col2, - COUNT ( * ) AS col0
----
20
-1

query II rowsort
SELECT ALL - 21 col2, 87 - + 31 + + 61 - 92 AS col0
----
-21
25

query I rowsort
SELECT 59 * + + 57 AS col0
----
3363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT CASE - 63 WHEN - CAST( - + 2 AS SIGNED ) * - 38 THEN + 69 ELSE NULL END * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT CASE - 63 WHEN - CAST ( - + 2 AS INTEGER ) * - 38 THEN + 69 ELSE NULL END * 22
----
NULL

query II rowsort
SELECT + 77 col0, ( + 90 ) * - 37 * - 42 * 83 AS col0
----
77
11608380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT ALL COUNT( * ) + + CAST( + 6 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL COUNT ( * ) + + CAST ( + 6 AS INTEGER )
----
7

query I rowsort
SELECT DISTINCT + 14 + 75
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT ALL 19 * CASE - + ( 60 ) WHEN - COUNT( * ) THEN COUNT( * ) * - 85 WHEN 68 * - 67 + - 8 THEN NULLIF ( - 56, COUNT( * ) ) + + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL 19 * CASE - + ( 60 ) WHEN - COUNT ( * ) THEN COUNT ( * ) * - 85 WHEN 68 * - 67 + - 8 THEN NULLIF ( - 56, COUNT ( * ) ) + + 50 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9913
SELECT DISTINCT + CASE + COUNT( * ) WHEN + + 64 + - 51 * NULLIF ( - 61, - 64 * - 42 ) THEN 61 DIV NULLIF ( + 88 DIV COUNT( * ), 56 * COUNT( * ) ) ELSE + 11 END + 16 col2
----
27

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT + CASE + COUNT ( * ) WHEN + + 64 + - 51 * NULLIF ( - 61, - 64 * - 42 ) THEN 61 / NULLIF ( + 88 / COUNT ( * ), 56 * COUNT ( * ) ) ELSE + 11 END + 16 col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT + MIN( 99 ) col2
----
99

skipif mysql # not compatible
query I rowsort label-9914
SELECT + MIN ( 99 ) col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + COUNT( * ) + COUNT( * ) * + 74 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9915
SELECT + COUNT ( * ) + COUNT ( * ) * + 74 AS col1
----
75

query I rowsort
SELECT + 10 * + - 86 * + 50 AS col2
----
-43000

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL + ( - 46 ) * - 55 + + 84 + + 12 + + - COUNT( + 6 )
----
2625

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + ( - 46 ) * - 55 + + 84 + + 12 + + - COUNT ( + 6 )
----
2625

query I rowsort
SELECT ( - + 73 ) + 72
----
-1

query I rowsort
SELECT - 76 * + 29
----
-2204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT ALL 20 - + CAST( - - 97 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL 20 - + CAST ( - - 97 AS INTEGER )
----
-77

query I rowsort
SELECT - 90 + - 41
----
-131

query II rowsort
SELECT DISTINCT - 24 AS col2, - 82
----
-24
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT MIN( DISTINCT + 1 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT MIN ( DISTINCT + 1 ) col1
----
1

query I rowsort
SELECT ALL + + 1 * 49 AS col2
----
49

query I rowsort
SELECT ALL 86 - - 92 AS col2
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT - + MAX( ALL + - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-9926
SELECT - + MAX ( ALL + - 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT + CASE - - 72 WHEN - + 31 - - + 3 THEN NULL WHEN + 98 + + ( + COUNT( ALL 56 ) ) THEN 40 END + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT + CASE - - 72 WHEN - + 31 - - + 3 THEN NULL WHEN + 98 + + ( + COUNT ( ALL 56 ) ) THEN 40 END + 59
----
NULL

query II rowsort
SELECT DISTINCT 94 AS col2, - 0 AS col1
----
94
0

query I rowsort
SELECT ALL - 70 * + 68
----
-4760

query II rowsort
SELECT - + 65, 99 col2
----
-65
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT DISTINCT MIN( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT MIN ( 14 )
----
14

query I rowsort
SELECT ALL - + 97 * - 67
----
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT COUNT( * ) - - 88 + 3 * + 32 * - + COUNT( DISTINCT + 72 ) + 45
----
38

skipif mysql # not compatible
query I rowsort label-9933
SELECT COUNT ( * ) - - 88 + 3 * + 32 * - + COUNT ( DISTINCT + 72 ) + 45
----
38

query I rowsort
SELECT 50 - + 89 * + - 58
----
5212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9935
SELECT ALL COALESCE ( 16, - + CASE + 75 WHEN 92 THEN + ( + 28 ) DIV 75 - + 14 WHEN CAST( NULL AS SIGNED ) THEN + COUNT( * ) * + 56 END * - 16, 37 ) * COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL COALESCE ( 16, - + CASE + 75 WHEN 92 THEN + ( + 28 ) / 75 - + 14 WHEN CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * + 56 END * - 16, 37 ) * COUNT ( * ) AS col0
----
16

query I rowsort
SELECT 60 + - + 10 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL COALESCE ( 71, + 43, COUNT( * ) ) * 26 * + - 13 * COUNT( * ) AS col2
----
-23998

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL COALESCE ( 71, + 43, COUNT ( * ) ) * 26 * + - 13 * COUNT ( * ) AS col2
----
-23998

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT NULLIF ( + 38, + ( COUNT( ALL - + 17 ) ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9938
SELECT NULLIF ( + 38, + ( COUNT ( ALL - + 17 ) ) ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9939
SELECT ALL 79 * + 63 + + 90 * - CAST( 83 AS SIGNED ) AS col0
----
-2493

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL 79 * + 63 + + 90 * - CAST ( 83 AS INTEGER ) AS col0
----
-2493

query I rowsort
SELECT NULLIF ( + - 88, + 86 / - - 97 + - + 66 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9941
SELECT - CASE + - CAST( NULL AS SIGNED ) WHEN - + 47 THEN COUNT( * ) + + 75 ELSE NULL END * + - 72 + - 75 + - 67 * - COALESCE ( 91, 66 * 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT - CASE + - CAST ( NULL AS INTEGER ) WHEN - + 47 THEN COUNT ( * ) + + 75 ELSE NULL END * + - 72 + - 75 + - 67 * - COALESCE ( 91, 66 * 95 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT + 98 DIV 56 + 75 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9942
SELECT + 98 / 56 + 75 AS col1
----
76

query II rowsort
SELECT - 62 + - 69, + 23 col2
----
-131
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9944
SELECT ( - + 55 ) DIV 98 - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9944
SELECT ( - + 55 ) / 98 - 42 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT NULLIF ( 71, - COUNT( * ) + 17 + + - 18 + - 3 + + 82 * MIN( 1 ) ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9945
SELECT NULLIF ( 71, - COUNT ( * ) + 17 + + - 18 + - 3 + + 82 * MIN ( 1 ) ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + 10 * 27 + COUNT( * )
----
271

skipif mysql # not compatible
query I rowsort label-9946
SELECT + 10 * 27 + COUNT ( * )
----
271

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9947
SELECT ALL 35 * + ( + - ( + 81 ) ) + + + 72 AS col1, + 36 * + 69 * CAST( NULL AS SIGNED ) AS col2
----
-2763
NULL

skipif mysql # not compatible
query II rowsort label-9947
SELECT ALL 35 * + ( + - ( + 81 ) ) + + + 72 AS col1, + 36 * + 69 * CAST ( NULL AS INTEGER ) AS col2
----
-2763
NULL

query I rowsort
SELECT COALESCE ( - 67, + 70 )
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9949
SELECT ALL + 55 DIV + + 24, 47 + - ( + 49 ) + - 1 + + - MIN( 64 ) AS col2
----
2
-67

skipif mysql # not compatible
query II rowsort label-9949
SELECT ALL + 55 / + + 24, 47 + - ( + 49 ) + - 1 + + - MIN ( 64 ) AS col2
----
2
-67

query I rowsort
SELECT ALL 28 * + 75 + 71
----
2171

query I rowsort
SELECT - 84 + 73 col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT - + ( + - 4 ) * + 69 + - 8 + + COUNT( * ) * + + 12 + - SUM( ALL ( 20 ) ) * 80
----
-1320

skipif mysql # not compatible
query I rowsort label-9952
SELECT - + ( + - 4 ) * + 69 + - 8 + + COUNT ( * ) * + + 12 + - SUM ( ALL ( 20 ) ) * 80
----
-1320

query I rowsort
SELECT + 94 * - 58 + - - 30 AS col2
----
-5422

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT + - 35 * + 74 * + - 44 * - 35 / + 99 * - - CASE 11 WHEN - ( 10 ) + + 63 * + COUNT( * ) THEN + 87 WHEN 6 THEN - 15 WHEN - 39 THEN + 53 END * - CASE + 72 / 39 WHEN - 28 THEN NULL WHEN AVG ( 18 ) THEN COUNT( * ) * COALESCE ( COALESCE ( 82, - 46 * - COUNT( DISTINCT + 35 ) ) * + 15, - 72, - ( - 14 ) ) ELSE NULL END + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT + - 35 * + 74 * + - 44 * - 35 / + 99 * - - CASE 11 WHEN - ( 10 ) + + 63 * + COUNT ( * ) THEN + 87 WHEN 6 THEN - 15 WHEN - 39 THEN + 53 END * - CASE + 72 / 39 WHEN - 28 THEN NULL WHEN AVG ( 18 ) THEN COUNT ( * ) * COALESCE ( COALESCE ( 82, - 46 * - COUNT ( DISTINCT + 35 ) ) * + 15, - 72, - ( - 14 ) ) ELSE NULL END + ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT + + CASE - - 57 WHEN 41 THEN - COUNT( DISTINCT - 57 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT + + CASE - - 57 WHEN 41 THEN - COUNT ( DISTINCT - 57 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT DISTINCT + ( - CAST( - 64 AS SIGNED ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT + ( - CAST ( - 64 AS INTEGER ) ) AS col0
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-9957
SELECT ALL - 15 DIV 78 AS col0, + 46 - 37
----
0
9

skipif mysql # not compatible
query II rowsort label-9957
SELECT ALL - 15 / 78 AS col0, + 46 - 37
----
0
9

query I rowsort
SELECT + + 46 * - 53 * + + 39
----
-95082

query I rowsort
SELECT ALL + 35 * COALESCE ( + 0, + 44 * + - 25, - 5 ) + - + 47 + + 39 * + 56
----
2137

query I rowsort
SELECT - - 80 col0
----
80

query I rowsort
SELECT ALL - 66 - - 21 * ( 9 ) + 89 AS col2
----
212

query I rowsort
SELECT - + 85 * + - 12 col2
----
1020

query II rowsort
SELECT + 10 * + 62 AS col2, 67 col0
----
620
67

query I rowsort
SELECT - + 90 col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9965
SELECT + COUNT( * ) + 14 * + CAST( NULL AS SIGNED ) * - 29 * + 33, ( + 50 ) col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-9965
SELECT + COUNT ( * ) + 14 * + CAST ( NULL AS INTEGER ) * - 29 * + 33, ( + 50 ) col1
----
NULL
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9966
SELECT + 77 * - COALESCE ( + + 97, 83 ) - 35 - 72 DIV 62 + - 90
----
-7595

skipif mysql # not compatible
query I rowsort label-9966
SELECT + 77 * - COALESCE ( + + 97, 83 ) - 35 - 72 / 62 + - 90
----
-7595

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT DISTINCT + 97 * COUNT( 54 ) + + + 69 AS col0
----
166

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT + 97 * COUNT ( 54 ) + + + 69 AS col0
----
166

query I rowsort
SELECT DISTINCT 64 + - + 63
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9969
SELECT ALL 16 DIV + ( + + COUNT( * ) ) col1
----
16

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL 16 / + ( + + COUNT ( * ) ) col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT - ( COALESCE ( + + COUNT( * ), + + NULLIF ( + + 0, + + 81 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9970
SELECT - ( COALESCE ( + + COUNT ( * ), + + NULLIF ( + + 0, + + 81 ) ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 63 + 26
----
89

query I rowsort
SELECT - NULLIF ( - - 30, - ( - 78 ) ) AS col2
----
-30

query II rowsort
SELECT 98, + ( - + 18 ) AS col1
----
98
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9974
SELECT - 92 + + - 3 + - 45 * + - COUNT( * ) * 70 DIV + CASE + 81 WHEN 62 THEN NULL WHEN + 34 * 49 THEN + 93 ELSE + 15 * ( + 79 * COUNT( * ) ) + - 57 * 99 END * 67 + 92 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9974
SELECT - 92 + + - 3 + - 45 * + - COUNT ( * ) * 70 / + CASE + 81 WHEN 62 THEN NULL WHEN + 34 * 49 THEN + 93 ELSE + 15 * ( + 79 * COUNT ( * ) ) + - 57 * 99 END * 67 + 92 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT ALL MAX( DISTINCT - 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL MAX ( DISTINCT - 88 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT + MAX( + 70 ) * + + 17 + 78 * 45
----
4700

skipif mysql # not compatible
query I rowsort label-9976
SELECT + MAX ( + 70 ) * + + 17 + 78 * 45
----
4700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT CAST( - - 48 AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9977
SELECT CAST ( - - 48 AS INTEGER ) AS col1
----
48

query I rowsort
SELECT + 56 * + + 7
----
392

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT DISTINCT 62 * COUNT( * ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT 62 * COUNT ( * ) AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL 20 * + COUNT( DISTINCT + - NULLIF ( - 24, - 80 ) ) * - 14 * 33 AS col1
----
-9240

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL 20 * + COUNT ( DISTINCT + - NULLIF ( - 24, - 80 ) ) * - 14 * 33 AS col1
----
-9240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9981
SELECT DISTINCT 24 / - + 74 + - CASE - - 20 WHEN + COUNT( * ) THEN + 12 WHEN 61 - 3 + 38 * 35 * + 10 THEN + 81 * COUNT( * ) + + 71 / CAST( NULL AS SIGNED ) END * + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT DISTINCT 24 / - + 74 + - CASE - - 20 WHEN + COUNT ( * ) THEN + 12 WHEN 61 - 3 + 38 * 35 * + 10 THEN + 81 * COUNT ( * ) + + 71 / CAST ( NULL AS INTEGER ) END * + 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT DISTINCT + CASE + 23 WHEN + 86 THEN NULL WHEN - - COUNT( * ) THEN - 17 * ( - + 15 ) - 45 * CASE + 89 WHEN 92 THEN NULL WHEN CASE MIN( 32 ) WHEN - 48 * - 67 THEN + 71 WHEN ( 23 ) THEN NULL END + MIN( ALL 46 ) * - 76 THEN - 99 ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9982
SELECT DISTINCT + CASE + 23 WHEN + 86 THEN NULL WHEN - - COUNT ( * ) THEN - 17 * ( - + 15 ) - 45 * CASE + 89 WHEN 92 THEN NULL WHEN CASE MIN ( 32 ) WHEN - 48 * - 67 THEN + 71 WHEN ( 23 ) THEN NULL END + MIN ( ALL 46 ) * - 76 THEN - 99 ELSE NULL END END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9983
SELECT ALL + 59, 69 + - - CASE 62 WHEN COUNT( * ) + - 27 THEN + - 88 - + CAST( NULL AS SIGNED ) WHEN + 11 * 29 THEN NULL END AS col0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-9983
SELECT ALL + 59, 69 + - - CASE 62 WHEN COUNT ( * ) + - 27 THEN + - 88 - + CAST ( NULL AS INTEGER ) WHEN + 11 * 29 THEN NULL END AS col0
----
59
NULL

query II rowsort
SELECT + 82, - 84 AS col0
----
82
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT + ( + ( + 91 ) ) - CAST( NULL AS SIGNED ) / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT + ( + ( + 91 ) ) - CAST ( NULL AS INTEGER ) / 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT - 2 * - - NULLIF ( + - 85, - COUNT( * ) * 23 ) * + 45 * - 93
----
-711450

skipif mysql # not compatible
query I rowsort label-9986
SELECT - 2 * - - NULLIF ( + - 85, - COUNT ( * ) * 23 ) * + 45 * - 93
----
-711450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9987
SELECT DISTINCT + NULLIF ( + + 42, 5 * - - 12 + + CASE + ( - 10 ) WHEN - 40 THEN + 26 END / + CASE 29 + - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN + 15 END )
----
42

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT + NULLIF ( + + 42, 5 * - - 12 + + CASE + ( - 10 ) WHEN - 40 THEN + 26 END / + CASE 29 + - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN + 15 END )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + MAX( - + 98 ) - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-9988
SELECT + MAX ( - + 98 ) - COUNT ( * )
----
-99

query I rowsort
SELECT ALL + ( 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9990
SELECT - - 25 * - 75 + ( + 1 ) + + 1 * - 25 + - 65 + - 55 + + 29 * + 19 * ( + COUNT( * ) DIV - 75 + 16 )
----
6797

skipif mysql # not compatible
query I rowsort label-9990
SELECT - - 25 * - 75 + ( + 1 ) + + 1 * - 25 + - 65 + - 55 + + 29 * + 19 * ( + COUNT ( * ) / - 75 + 16 )
----
6797

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT ALL - + 90 * + 29 - - + SUM( ALL + 25 ) AS col0, 6
----
-2585
6

skipif mysql # not compatible
query II rowsort label-9991
SELECT ALL - + 90 * + 29 - - + SUM ( ALL + 25 ) AS col0, 6
----
-2585
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT + CAST( + - 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-9992
SELECT + CAST ( + - 37 AS INTEGER )
----
-37

query II rowsort
SELECT - - 75 - + 1 + + 91 AS col1, + 4 AS col2
----
165
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT - 67 * - + SUM( ALL + - 50 ) * - + 51 + ( + - 98 )
----
170752

skipif mysql # not compatible
query I rowsort label-9994
SELECT - 67 * - + SUM ( ALL + - 50 ) * - + 51 + ( + - 98 )
----
170752

query I rowsort
SELECT DISTINCT - 37 * + + 7 AS col0
----
-259

query II rowsort
SELECT + - 95 AS col1, - 35 AS col1
----
-95
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT - COUNT( * ) + ( - 72 )
----
-73

skipif mysql # not compatible
query I rowsort label-9997
SELECT - COUNT ( * ) + ( - 72 )
----
-73

query I rowsort
SELECT - + 98 * 30
----
-2940

query I rowsort
SELECT - 38 + 93
----
55

