sqllogictest
Artifact Content
Not logged in

Artifact 558fe38dac5938d8d8c8f03bd7c092b35e086106:


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