hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL + MAX( - + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL + MAX ( - + 73 ) AS col0
----
-73

query II rowsort
SELECT 79 * - 52 * + 85 + + - 80 * + 50, + 58 + - + 66 AS col1
----
-353180
-8

query I rowsort
SELECT - + 68 * 73 * + + 36
----
-178704

query I rowsort
SELECT + + 62 * + - 58 + - 22
----
-3618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4
SELECT DISTINCT 79 * COALESCE ( - 77, + COUNT( * ), - CAST( 50 AS SIGNED ) + - + 68 * - 56 + + COUNT( ALL - 41 ) ) AS col0
----
-6083

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT 79 * COALESCE ( - 77, + COUNT ( * ), - CAST ( 50 AS INTEGER ) + - + 68 * - 56 + + COUNT ( ALL - 41 ) ) AS col0
----
-6083

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5
SELECT ALL - 41 DIV - 55 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL - 41 / - 55 + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6
SELECT ALL + 58 * + CAST( NULL AS SIGNED ) + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL + 58 * + CAST ( NULL AS INTEGER ) + - 96
----
NULL

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

query I rowsort
SELECT + 88 + 16 col2
----
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT DISTINCT - 43 * - - SUM( ALL + 90 ) * + 27
----
-104490

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT - 43 * - - SUM ( ALL + 90 ) * + 27
----
-104490

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT + MAX( + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-11
SELECT + MAX ( + 28 ) AS col0
----
28

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

query I rowsort
SELECT + 28 * - 51
----
-1428

query I rowsort
SELECT + ( 97 ) + + + 80 AS col2
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT DISTINCT - CASE - + 68 WHEN 68 THEN - + COUNT( * ) ELSE - 69 - CAST( NULL AS SIGNED ) + + - 43 END * - 26 - + 28 + ( MIN( DISTINCT + 94 ) ) + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT - CASE - + 68 WHEN 68 THEN - + COUNT ( * ) ELSE - 69 - CAST ( NULL AS INTEGER ) + + - 43 END * - 26 - + 28 + ( MIN ( DISTINCT + 94 ) ) + + 94
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-16
SELECT ALL + 2 col0, 5 * + MIN( ALL - 75 ) + - + CAST( 51 AS SIGNED ) * + 14 + 10 AS col2
----
2
-1079

skipif mysql # not compatible
query II rowsort label-16
SELECT ALL + 2 col0, 5 * + MIN ( ALL - 75 ) + - + CAST ( 51 AS INTEGER ) * + 14 + 10 AS col2
----
2
-1079

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-18
SELECT CASE - COUNT( * ) WHEN + 57 THEN ( + 4 ) * - - ( + COUNT( DISTINCT - 34 ) ) - 45 + + + 54 / + - 69 + - COUNT( * ) ELSE + CAST( 5 AS SIGNED ) + - 30 END AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-18
SELECT CASE - COUNT ( * ) WHEN + 57 THEN ( + 4 ) * - - ( + COUNT ( DISTINCT - 34 ) ) - 45 + + + 54 / + - 69 + - COUNT ( * ) ELSE + CAST ( 5 AS INTEGER ) + - 30 END AS col2
----
-25

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

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

query I rowsort
SELECT + 98 * - 61 AS col0
----
-5978

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT CASE - + 30 WHEN - COUNT( * ) THEN - - ( + 47 ) + - 12 * 50 * + COUNT( * ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-21
SELECT CASE - + 30 WHEN - COUNT ( * ) THEN - - ( + 47 ) + - 12 * 50 * + COUNT ( * ) ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-22
SELECT SUM( ALL - 87 ) AS col0, 88
----
-87
88

skipif mysql # not compatible
query II rowsort label-22
SELECT SUM ( ALL - 87 ) AS col0, 88
----
-87
88

query I rowsort
SELECT - NULLIF ( + 89, + + 41 * + 62 + + NULLIF ( 72, + - NULLIF ( - 19, + 57 / + 52 * + - 83 + 21 ) * 42 ) ) AS col1
----
-89

query I rowsort
SELECT ALL + 79 * - 20 + - + 74 - 72
----
-1726

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL - CASE COUNT( * ) WHEN - 36 THEN ( + NULLIF ( 45, ( - + 61 ) ) ) * - - 15 * + + 32 WHEN COUNT( * ) THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL - CASE COUNT ( * ) WHEN - 36 THEN ( + NULLIF ( 45, ( - + 61 ) ) ) * - - 15 * + + 32 WHEN COUNT ( * ) THEN NULL ELSE NULL END col2
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-28
SELECT + - 40 * + COUNT ( * ) * + COUNT ( * ) * - 33 AS col2
----
1320

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT DISTINCT - CASE - 2 WHEN - 96 THEN + + 49 / - COALESCE ( + + 9, + 72 / + 82 + + + COUNT( * ) * 98 - - + 58 ) / + CASE 43 + 15 * + 11 WHEN 76 + + 37 * 3 THEN 30 ELSE COUNT( * ) + + 9 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT - CASE - 2 WHEN - 96 THEN + + 49 / - COALESCE ( + + 9, + 72 / + 82 + + + COUNT ( * ) * 98 - - + 58 ) / + CASE 43 + 15 * + 11 WHEN 76 + + 37 * 3 THEN 30 ELSE COUNT ( * ) + + 9 END END
----
NULL

query I rowsort
SELECT ALL - 94 + - + ( 93 ) AS col2
----
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT - + 13 + + - 32 + - + 47 * - COUNT( ALL + + 25 ) * - 95 + ( + MIN( ALL - + 99 ) ) * + - 47 + - ( - 26 ) * 25
----
793

skipif mysql # not compatible
query I rowsort label-33
SELECT - + 13 + + - 32 + - + 47 * - COUNT ( ALL + + 25 ) * - 95 + ( + MIN ( ALL - + 99 ) ) * + - 47 + - ( - 26 ) * 25
----
793

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-35
SELECT DISTINCT + CASE + 28 WHEN - 18 * - 85 * 85 - + 36 * + - 44 * - 25 / + 48 * 30 * - 48 THEN + 52 + - 89 * 23 END / NULLIF ( CAST( NULL AS SIGNED ), + 82 * - 69 + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT + CASE + 28 WHEN - 18 * - 85 * 85 - + 36 * + - 44 * - 25 / + 48 * 30 * - 48 THEN + 52 + - 89 * 23 END / NULLIF ( CAST ( NULL AS INTEGER ), + 82 * - 69 + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 53 + + 56
----
109

query II rowsort
SELECT - + 67, + 4 * + 5 col0
----
-67
20

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT DISTINCT - 75 + - - ( - 36 ) + + + COUNT( * ) * - COUNT( * ) * + 12
----
-123

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT - 75 + - - ( - 36 ) + + + COUNT ( * ) * - COUNT ( * ) * + 12
----
-123

query I rowsort
SELECT 31 - 85
----
-54

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

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

query I rowsort
SELECT 21 + + 32
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-42
SELECT 63 * CAST( - COUNT( * ) AS SIGNED ), 48 AS col0
----
-63
48

skipif mysql # not compatible
query II rowsort label-42
SELECT 63 * CAST ( - COUNT ( * ) AS INTEGER ), 48 AS col0
----
-63
48

query I rowsort
SELECT ALL 92 * - + 70 * - + 27 AS col1
----
173880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-44
SELECT 53 - - COUNT( * ) * - + ( 47 ) * + 94 + - 25 + + CAST( + 74 AS SIGNED )
----
-4316

skipif mysql # not compatible
query I rowsort label-44
SELECT 53 - - COUNT ( * ) * - + ( 47 ) * + 94 + - 25 + + CAST ( + 74 AS INTEGER )
----
-4316

query I rowsort
SELECT DISTINCT 10 * + + 43 AS col2
----
430

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT DISTINCT + 13 DIV - 3 col0
----
-4

skipif mysql # not compatible
query I rowsort label-46
SELECT DISTINCT + 13 / - 3 col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT MAX( + 64 ) + + + 8 * + - 14 + 53 + + + 96
----
101

skipif mysql # not compatible
query I rowsort label-47
SELECT MAX ( + 64 ) + + + 8 * + - 14 + 53 + + + 96
----
101

query I rowsort
SELECT ALL 45 * - 80
----
-3600

query I rowsort
SELECT ALL + 95 * + - 56
----
-5320

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT 43 + 56 * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-50
SELECT 43 + 56 * COUNT ( * )
----
99

query III rowsort
SELECT 95 * - 99 + 92 AS col2, + 6 * 63 col2, 4 + + 43
----
-9313
378
47

query I rowsort
SELECT 88 - 53
----
35

query I rowsort
SELECT DISTINCT 50 * 59 * - 99 AS col2
----
-292050

onlyif mysql # aggregate syntax: 
query II rowsort label-54
SELECT - 74 + 51 AS col1, 1 * - COUNT( * ) AS col1
----
-23
-1

skipif mysql # not compatible
query II rowsort label-54
SELECT - 74 + 51 AS col1, 1 * - COUNT ( * ) AS col1
----
-23
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-55
SELECT DISTINCT + NULLIF ( + - COUNT( * ), + 16 * + CAST( - 30 AS SIGNED ) * + 37 + + - 81 * 94 * + - 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + NULLIF ( + - COUNT ( * ), + 16 * + CAST ( - 30 AS INTEGER ) * + 37 + + - 81 * 94 * + - 63 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - - 0 * + + 27 + - 67
----
-67

query I rowsort
SELECT - 97 + + 88
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-58
SELECT 56 * COUNT( * ) + + 14 col2
----
70

skipif mysql # not compatible
query I rowsort label-58
SELECT 56 * COUNT ( * ) + + 14 col2
----
70

query I rowsort
SELECT + 24 + ( - - 34 ) col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-60
SELECT DISTINCT COUNT( ALL - 25 ), - 97 AS col0
----
1
-97

skipif mysql # not compatible
query II rowsort label-60
SELECT DISTINCT COUNT ( ALL - 25 ), - 97 AS col0
----
1
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-61
SELECT COUNT( * ) * - 31 + - COALESCE ( - 85, - 77 ) * 95 * + 59 col2, + 24 AS col1
----
476394
24

skipif mysql # not compatible
query II rowsort label-61
SELECT COUNT ( * ) * - 31 + - COALESCE ( - 85, - 77 ) * 95 * + 59 col2, + 24 AS col1
----
476394
24

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT CASE MIN( DISTINCT - 87 ) WHEN + 55 - 20 THEN - 30 * COUNT( DISTINCT + + 37 ) - + COUNT( * ) + + 80 * - 57 * - 27 WHEN - 33 + + 24 THEN + 91 END + ( 97 - COUNT( * ) ) * 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-62
SELECT CASE MIN ( DISTINCT - 87 ) WHEN + 55 - 20 THEN - 30 * COUNT ( DISTINCT + + 37 ) - + COUNT ( * ) + + 80 * - 57 * - 27 WHEN - 33 + + 24 THEN + 91 END + ( 97 - COUNT ( * ) ) * 11 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-63
SELECT ALL 16 * - SUM( ( - 65 ) ) * + - ( ( - - 77 ) ) + 38 col2, + NULLIF ( 64, - - 40 ) AS col0
----
-80042
64

skipif mysql # not compatible
query II rowsort label-63
SELECT ALL 16 * - SUM ( ( - 65 ) ) * + - ( ( - - 77 ) ) + 38 col2, + NULLIF ( 64, - - 40 ) AS col0
----
-80042
64

query I rowsort
SELECT ALL - 48 + + + 70
----
22

query I rowsort
SELECT 56 + + 27 AS col0
----
83

query I rowsort
SELECT DISTINCT + 73 * - + 57 - 49 AS col2
----
-4210

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT 58 * 69 + - 31 * - 86 * 53 * 44 * - COUNT( * ) + + 33
----
-6213077

skipif mysql # not compatible
query I rowsort label-67
SELECT 58 * 69 + - 31 * - 86 * 53 * 44 * - COUNT ( * ) + + 33
----
-6213077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-68
SELECT - 73 + - 74 * - - 25 * - MIN( CAST( 7 AS SIGNED ) )
----
12877

skipif mysql # not compatible
query I rowsort label-68
SELECT - 73 + - 74 * - - 25 * - MIN ( CAST ( 7 AS INTEGER ) )
----
12877

query II rowsort
SELECT ALL - 46 * 42 AS col2, ( 65 )
----
-1932
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT DISTINCT - 54 + COALESCE ( - 3, - COUNT( * ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT - 54 + COALESCE ( - 3, - COUNT ( * ) ) AS col2
----
-57

query I rowsort
SELECT DISTINCT CASE - + 82 WHEN + + 81 THEN + 18 END + - 36
----
NULL

query II rowsort
SELECT ALL 29 + 45 * + - ( 75 ), - 67 * 6 AS col0
----
-3346
-402

onlyif mysql # aggregate syntax: 
query II rowsort label-74
SELECT - 24, + ( - - 74 ) + + + NULLIF ( - COUNT( * ), - - 53 / - ( COUNT( * ) ) ) * COUNT( + 51 ) AS col1
----
-24
73

skipif mysql # not compatible
query II rowsort label-74
SELECT - 24, + ( - - 74 ) + + + NULLIF ( - COUNT ( * ), - - 53 / - ( COUNT ( * ) ) ) * COUNT ( + 51 ) AS col1
----
-24
73

query I rowsort
SELECT ( - 80 ) * + 78 * + + 5 AS col0
----
-31200

query I rowsort
SELECT 57 * - 26 AS col1
----
-1482

onlyif mysql # DIV for integer division: 
query I rowsort label-77
SELECT ALL + 98 DIV + 83
----
1

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL + 98 / + 83
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT - 24 * + COUNT( * ) * - 10 * - ( 90 ) + + - 0
----
-21600

skipif mysql # not compatible
query I rowsort label-78
SELECT - 24 * + COUNT ( * ) * - 10 * - ( 90 ) + + - 0
----
-21600

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

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

query I rowsort
SELECT DISTINCT + 80 * - 63
----
-5040

query I rowsort
SELECT ALL ( - COALESCE ( 27, + 36 ) ) - - + ( - 98 ) * + 73
----
-7181

query I rowsort
SELECT ALL + 71 * 51 * - 55
----
-199155

query I rowsort
SELECT 47 * - - 51 * 77 * + 69
----
12735261

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-84
SELECT ALL CAST( + + 23 AS SIGNED ) DIV - 44 AS col0, 54
----
0
54

skipif mysql # not compatible
query II rowsort label-84
SELECT ALL CAST ( + + 23 AS INTEGER ) / - 44 AS col0, 54
----
0
54

query I rowsort
SELECT ALL - 8 - + - 94 AS col0
----
86

query I rowsort
SELECT 56 * + ( ( - 28 ) )
----
-1568

query I rowsort
SELECT ALL - 99 * + - 68 * + ( - + 91 ) * + ( 55 ) AS col2
----
-33693660

query I rowsort
SELECT 63 + + ( - 19 ) + - 22 + - + 80 * + 74
----
-5898

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-89
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT 46 * COUNT( * ) col0
----
46

skipif mysql # not compatible
query I rowsort label-90
SELECT 46 * COUNT ( * ) col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT 82 * + 29 * + COUNT( * )
----
2378

skipif mysql # not compatible
query I rowsort label-91
SELECT 82 * + 29 * + COUNT ( * )
----
2378

query I rowsort
SELECT DISTINCT - COALESCE ( 9, - - 55 + - - 43 * 81 ) AS col0
----
-9

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-95
SELECT DISTINCT - + 37 AS col0, - MIN( ALL + 0 ) - 54 AS col1
----
-37
-54

skipif mysql # not compatible
query II rowsort label-95
SELECT DISTINCT - + 37 AS col0, - MIN ( ALL + 0 ) - 54 AS col1
----
-37
-54

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

query I rowsort
SELECT ALL - 13 + 21
----
8

query I rowsort
SELECT 55 * - 90 - - 68
----
-4882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-99
SELECT ALL + ( - - COUNT( * ) ) DIV - 61 AS col2, MIN( - CAST( NULL AS SIGNED ) ) DIV - 15 + - - 35 + 44 * 57 * - 79 + + COUNT( 50 ) * - + ( 93 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-99
SELECT ALL + ( - - COUNT ( * ) ) / - 61 AS col2, MIN ( - CAST ( NULL AS INTEGER ) ) / - 15 + - - 35 + 44 * 57 * - 79 + + COUNT ( 50 ) * - + ( 93 )
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT ALL - - 97 + - 92 + + 68 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-100
SELECT ALL - - 97 + - 92 + + 68 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-101
SELECT 35 * - - COUNT ( * )
----
35

query II rowsort
SELECT - 64 AS col2, 74 * - 67 * + 89 AS col1
----
-64
-441262

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL COUNT( * ) + - + 41 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL COUNT ( * ) + - + 41 AS col1
----
-40

query I rowsort
SELECT ALL + 86 + + 18
----
104

query I rowsort
SELECT ALL + 16 + 74 col1
----
90

query I rowsort
SELECT + - 5 - - 76 - - 61 + + NULLIF ( + - 74, 3 ) + + + COALESCE ( 39, + 40 * + 38 ) + 75 * + 30 AS col0
----
2347

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

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

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL + 36 + + COUNT ( * ) AS col0
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT + 11 + NULLIF ( + ( + - 99 ), + 90 + - COUNT( * ) ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-110
SELECT + 11 + NULLIF ( + ( + - 99 ), + 90 + - COUNT ( * ) ) AS col2
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-111
SELECT - COALESCE ( + 48, - 5 + - 98 ), ( 45 ) DIV + 21 col1
----
-48
2

skipif mysql # not compatible
query II rowsort label-111
SELECT - COALESCE ( + 48, - 5 + - 98 ), ( 45 ) / + 21 col1
----
-48
2

query I rowsort
SELECT + 88 + + + 18 AS col1
----
106

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

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

query I rowsort
SELECT - ( + 81 ) + - 44
----
-125

query I rowsort
SELECT DISTINCT 17 * + 3 * + 92 * - - 8 AS col2
----
37536

query I rowsort
SELECT ALL 75 - - 53
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT - NULLIF ( + COUNT( * ), - 26 - - - 98 / + 76 - 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-117
SELECT - NULLIF ( + COUNT ( * ), - 26 - - - 98 / + 76 - 49 )
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-119
SELECT + CASE + 65 WHEN + + 69 * + ( + 57 ) THEN 25 * - 75 / + 8 + 64 - 60 + + COUNT( * ) + 5 WHEN + + COUNT( * ) + - 31 + NULLIF ( 98, 33 ) * CAST( NULL AS DECIMAL ) THEN COUNT( * ) END / - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT + CASE + 65 WHEN + + 69 * + ( + 57 ) THEN 25 * - 75 / + 8 + 64 - 60 + + COUNT ( * ) + 5 WHEN + + COUNT ( * ) + - 31 + NULLIF ( 98, 33 ) * CAST ( NULL AS REAL ) THEN COUNT ( * ) END / - 57
----
NULL

query I rowsort
SELECT ALL + COALESCE ( 25, - 42 )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT + NULLIF ( + 85, - 3 ) DIV - 86 + 74
----
74

skipif mysql # not compatible
query I rowsort label-121
SELECT + NULLIF ( + 85, - 3 ) / - 86 + 74
----
74

query I rowsort
SELECT - 27 * - 8
----
216

query II rowsort
SELECT + 39 * - 43 AS col0, 52 * + 70
----
-1677
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT + SUM( - 83 ) + + + 25 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-124
SELECT + SUM ( - 83 ) + + + 25 AS col0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-125
SELECT - NULLIF ( - - 68, 43 + + - COUNT( * ) + + - 60 / - COUNT( * ) * + - CAST( - + 30 AS DECIMAL ) + + COUNT( * ) / 30 ) * - + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-125
SELECT - NULLIF ( - - 68, 43 + + - COUNT ( * ) + + - 60 / - COUNT ( * ) * + - CAST ( - + 30 AS REAL ) + + COUNT ( * ) / 30 ) * - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT NULLIF ( 18, MIN( DISTINCT + 70 ) * + + 75 * COUNT( * ) )
----
18

skipif mysql # not compatible
query I rowsort label-126
SELECT NULLIF ( 18, MIN ( DISTINCT + 70 ) * + + 75 * COUNT ( * ) )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-127
SELECT + 91 DIV 80 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-127
SELECT + 91 / 80 AS col1
----
1

query I rowsort
SELECT ALL - 32 * + - 87 * + + 89 col0
----
247776

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT ALL + MIN( ALL - - 3 ) * 91 AS col0
----
273

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + MIN ( ALL - - 3 ) * 91 AS col0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT ALL 74 * 66 + COUNT( * ) - + 74 * + COUNT( * ) AS col0
----
4811

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL 74 * 66 + COUNT ( * ) - + 74 * + COUNT ( * ) AS col0
----
4811

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT DISTINCT 43 * 80 * COUNT( * ) + + 91 + - COUNT( * ) + - - 67
----
3597

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT 43 * 80 * COUNT ( * ) + + 91 + - COUNT ( * ) + - - 67
----
3597

query I rowsort
SELECT - 92 * + - 5 * - 89 AS col2
----
-40940

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-133
SELECT ALL - + COUNT( * ) * + 34 DIV - 11 + + + 20 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL - + COUNT ( * ) * + 34 / - 11 + + + 20 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-134
SELECT - - 70 - CASE + - 16 WHEN - 7 THEN + 20 + - MIN( DISTINCT CAST( + + 25 AS SIGNED ) ) - + 11 * + 18 * + 68 END + + NULLIF ( + + 35, + 69 + + COALESCE ( 13, 6 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT - - 70 - CASE + - 16 WHEN - 7 THEN + 20 + - MIN ( DISTINCT CAST ( + + 25 AS INTEGER ) ) - + 11 * + 18 * + 68 END + + NULLIF ( + + 35, + 69 + + COALESCE ( 13, 6 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT - + 95 - COUNT( * ) + - 28 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-135
SELECT - + 95 - COUNT ( * ) + - 28 AS col0
----
-124

query I rowsort
SELECT - - ( - 73 ) + + 46 * - 91 col1
----
-4259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-137
SELECT MIN( - 43 ), AVG ( DISTINCT - 0 ) / CAST( NULL AS SIGNED ) + 48 col0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-137
SELECT MIN ( - 43 ), AVG ( DISTINCT - 0 ) / CAST ( NULL AS INTEGER ) + 48 col0
----
-43
NULL

query I rowsort
SELECT DISTINCT - + 56 * - 48 * + 85 * + 30 + + 95
----
6854495

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT DISTINCT - 63 * + + 17 * 95 + + + COUNT( * ) AS col0
----
-101744

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT - 63 * + + 17 * 95 + + + COUNT ( * ) AS col0
----
-101744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-142
SELECT - ( - COALESCE ( 14, + - COUNT( + 73 ), + 27 DIV + - 60 ) ) * + - 47
----
-658

skipif mysql # not compatible
query I rowsort label-142
SELECT - ( - COALESCE ( 14, + - COUNT ( + 73 ), + 27 / + - 60 ) ) * + - 47
----
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT - MIN( + 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-143
SELECT - MIN ( + 79 ) AS col0
----
-79

query I rowsort
SELECT + 94 + 43 + + 64 * + 57
----
3785

query I rowsort
SELECT DISTINCT - 99 * + 9
----
-891

query I rowsort
SELECT ALL 76 - + - 79 AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT - SUM( ALL + + 6 ) * + + 86
----
-516

skipif mysql # not compatible
query I rowsort label-147
SELECT - SUM ( ALL + + 6 ) * + + 86
----
-516

query II rowsort
SELECT DISTINCT 79, - 58 AS col1
----
79
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-149
SELECT ALL CAST( - AVG ( DISTINCT - - 47 ) AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL CAST ( - AVG ( DISTINCT - - 47 ) AS INTEGER )
----
-47

query I rowsort
SELECT - 39 + - 17 AS col1
----
-56

query I rowsort
SELECT - CASE WHEN NOT ( NULL ) BETWEEN NULL AND - 50 THEN NULL ELSE + - 87 END col1
----
87

query I rowsort
SELECT 36 * + - 70 + - - 44 AS col1
----
-2476

query I rowsort
SELECT + 21 + + + ( 53 )
----
74

query II rowsort
SELECT DISTINCT 27 * - + 64 * - - 14, + 73 + - ( - 12 ) AS col2
----
-24192
85

query I rowsort
SELECT ALL 62 * 96 * - 26 * - 7 * + 34 AS col0
----
36830976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-156
SELECT ALL + 80 / + ( + CAST( NULL AS SIGNED ) ) + + 27 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL + 80 / + ( + CAST ( NULL AS INTEGER ) ) + + 27 AS col1
----
NULL

query I rowsort
SELECT + 85 + - - 74
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-158
SELECT ALL + 30 DIV + 88 + + - 45 + + + 57 * + - 2 + + - COALESCE ( + + NULLIF ( COUNT( * ), 97 + - + ( 6 ) * 33 - - 81 ), COUNT( * ) * + - 11 + 63 + + CAST( NULL AS SIGNED ) DIV 20 ) + + 68 * 30
----
1880

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL + 30 / + 88 + + - 45 + + + 57 * + - 2 + + - COALESCE ( + + NULLIF ( COUNT ( * ), 97 + - + ( 6 ) * 33 - - 81 ), COUNT ( * ) * + - 11 + 63 + + CAST ( NULL AS INTEGER ) / 20 ) + + 68 * 30
----
1880

onlyif mysql # DIV for integer division: 
query I rowsort label-159
SELECT + ( + 89 ) + + + 38 DIV 42 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-159
SELECT + ( + 89 ) + + + 38 / 42 AS col2
----
89

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

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

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

query I rowsort
SELECT + - 79 * - 54 * - 21 AS col0
----
-89586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-163
SELECT + 59 * MAX( DISTINCT + - 35 ) - - + SUM( - - CAST( NULL AS SIGNED ) ) - - NULLIF ( - + 62, ( - 68 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-163
SELECT + 59 * MAX ( DISTINCT + - 35 ) - - + SUM ( - - CAST ( NULL AS INTEGER ) ) - - NULLIF ( - + 62, ( - 68 ) ) AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT ALL 82 + 30 col0
----
112

query I rowsort
SELECT + - CASE + 45 WHEN - 92 THEN NULL ELSE - - 43 * - 29 END
----
1247

query I rowsort
SELECT ALL + 50 + ( + 98 )
----
148

query I rowsort
SELECT 10 * + 33 * + 87 AS col2
----
28710

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-171
SELECT 41 DIV + + 99
----
0

skipif mysql # not compatible
query I rowsort label-171
SELECT 41 / + + 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT ALL + - 55 * - NULLIF ( 7, - 79 * COUNT( * ) )
----
385

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + - 55 * - NULLIF ( 7, - 79 * COUNT ( * ) )
----
385

query I rowsort
SELECT DISTINCT - CASE + - 96 WHEN 23 * + + ( 91 ) + + 79 THEN - - 16 WHEN + - 7 THEN NULL ELSE - 83 END * - 65
----
-5395

query I rowsort
SELECT - 42 * + 50 - + 11 * + 59 AS col0
----
-2749

query II rowsort
SELECT - 83 AS col1, - 52 AS col2
----
-83
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT ALL - 34 * + + 25 * COUNT( * ) AS col1
----
-850

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL - 34 * + + 25 * COUNT ( * ) AS col1
----
-850

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

query I rowsort
SELECT 10 * - 49 * + 2 col2
----
-980

query I rowsort
SELECT - - COALESCE ( - 87, + 90 )
----
-87

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

query I rowsort
SELECT - - 59 col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-182
SELECT DISTINCT - 67 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-182
SELECT DISTINCT - 67 / 86
----
0

query I rowsort
SELECT 56 - + 78 * + - 91 AS col1
----
7154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-184
SELECT ALL - 49 * + CAST( - MAX( - 0 ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL - 49 * + CAST ( - MAX ( - 0 ) AS INTEGER ) AS col0
----
0

query I rowsort
SELECT 72 * - + 61
----
-4392

onlyif mysql # aggregate syntax: 
query I rowsort label-186
SELECT ALL - 50 + + + COALESCE ( COUNT( * ), 2 ) * - + 81 AS col1
----
-131

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL - 50 + + + COALESCE ( COUNT ( * ), 2 ) * - + 81 AS col1
----
-131

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

skipif mysql # not compatible
query I rowsort label-187
SELECT 62 / - 25
----
-2

query I rowsort
SELECT ( + + 5 ) - - + 97 * - 34 * 59
----
-194577

query II rowsort
SELECT ALL 97, 20 + - 48 AS col0
----
97
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-190
SELECT ALL + 50 + - - COUNT( * ) DIV - 84 + 7
----
57

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL + 50 + - - COUNT ( * ) / - 84 + 7
----
57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT ALL 39 + + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL 39 + + COUNT ( * ) AS col1
----
40

query I rowsort
SELECT 97 * - + 17 AS col1
----
-1649

query I rowsort
SELECT DISTINCT 74 + + 95 + + - 60 AS col1
----
109

query II rowsort
SELECT 60 AS col1, ( + + 48 )
----
60
48

query I rowsort
SELECT ALL + 5 + 74 + NULLIF ( + 91, - 30 ) * + 4 AS col0
----
443

onlyif mysql # aggregate syntax: 
query II rowsort label-197
SELECT 72 AS col1, + 93 * + + MIN( 6 ) * + 74 AS col1
----
72
41292

skipif mysql # not compatible
query II rowsort label-197
SELECT 72 AS col1, + 93 * + + MIN ( 6 ) * + 74 AS col1
----
72
41292

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT DISTINCT 53 * COUNT( * ) + 69 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT 53 * COUNT ( * ) + 69 AS col1
----
122

query II rowsort
SELECT + 82, 58 * + - 5 AS col0
----
82
-290

query I rowsort
SELECT DISTINCT ( + 0 ) + + - 37 - 27
----
-64

query II rowsort
SELECT DISTINCT - + 75, + 37 + + 14 AS col2
----
-75
51

query I rowsort
SELECT DISTINCT + 20 - 24
----
-4

query II rowsort
SELECT + - 79 AS col1, - 88 col1
----
-79
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-204
SELECT - ( + + 7 ) * - 15 * - CAST( NULL AS SIGNED ) - - COUNT( - CAST( - 67 AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT - ( + + 7 ) * - 15 * - CAST ( NULL AS INTEGER ) - - COUNT ( - CAST ( - 67 AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT DISTINCT - 87 - 91 + - - 53 + + + COUNT( ALL - 71 ) - + 9 - + ( - - 89 ) * 87
----
-7876

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT - 87 - 91 + - - 53 + + + COUNT ( ALL - 71 ) - + 9 - + ( - - 89 ) * 87
----
-7876

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT ALL 37 * - MAX( DISTINCT - - 59 ) col2
----
-2183

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL 37 * - MAX ( DISTINCT - - 59 ) col2
----
-2183

query II rowsort
SELECT DISTINCT - - 55 AS col0, 32
----
55
32

query I rowsort
SELECT 89 + 31
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT COUNT( * ) * - COUNT( + - 75 ) * + + 24 * + - 69
----
1656

skipif mysql # not compatible
query I rowsort label-209
SELECT COUNT ( * ) * - COUNT ( + - 75 ) * + + 24 * + - 69
----
1656

query I rowsort
SELECT 79 - + 40 col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-211
SELECT ALL 82 DIV - COUNT( * ) + + 83 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL 82 / - COUNT ( * ) + + 83 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT - 57 + CASE + COUNT( * ) WHEN - 6 THEN 60 WHEN + 79 THEN NULL ELSE 16 END
----
-41

skipif mysql # not compatible
query I rowsort label-212
SELECT - 57 + CASE + COUNT ( * ) WHEN - 6 THEN 60 WHEN + 79 THEN NULL ELSE 16 END
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-213
SELECT + 62, - COUNT( * ) col0
----
62
-1

skipif mysql # not compatible
query II rowsort label-213
SELECT + 62, - COUNT ( * ) col0
----
62
-1

query I rowsort
SELECT 28 + + 72
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-215
SELECT ALL ( + 42 ) DIV - - 15 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL ( + 42 ) / - - 15 AS col0
----
2

query I rowsort
SELECT - 84 * 76 AS col1
----
-6384

query I rowsort
SELECT ALL - + 35 * - 85 AS col0
----
2975

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

query I rowsort
SELECT ALL ( + + ( - 38 ) ) * - 62 * 26
----
61256

query I rowsort
SELECT DISTINCT 99 * - 19 * - 63 AS col2
----
118503

onlyif mysql # aggregate syntax: 
query II rowsort label-221
SELECT 40 * + 11 AS col0, COUNT( * ) AS col2
----
440
1

skipif mysql # not compatible
query II rowsort label-221
SELECT 40 * + 11 AS col0, COUNT ( * ) AS col2
----
440
1

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT 85 + SUM( 52 ) * + 23
----
1281

skipif mysql # not compatible
query I rowsort label-222
SELECT 85 + SUM ( 52 ) * + 23
----
1281

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT ALL + 18 + - - NULLIF ( + 68, COUNT( * ) ) + - SUM( + + 29 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL + 18 + - - NULLIF ( + 68, COUNT ( * ) ) + - SUM ( + + 29 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT - MIN( DISTINCT + 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-224
SELECT - MIN ( DISTINCT + 40 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT SUM( - - 71 ) * - 51 * SUM( - + 25 ) * - - CASE + + 35 WHEN 86 + - 39 / - - 47 + 97 + - NULLIF ( - 72, - + CASE 88 WHEN 0 THEN NULL WHEN - 7 THEN AVG ( - 76 ) * 73 + 5 END ) + - COUNT( * ) * 41 THEN 70 * - 9 END + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT SUM ( - - 71 ) * - 51 * SUM ( - + 25 ) * - - CASE + + 35 WHEN 86 + - 39 / - - 47 + 97 + - NULLIF ( - 72, - + CASE 88 WHEN 0 THEN NULL WHEN - 7 THEN AVG ( - 76 ) * 73 + 5 END ) + - COUNT ( * ) * 41 THEN 70 * - 9 END + 39
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-226
SELECT 1 + + 22 DIV - + 55 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-226
SELECT 1 + + 22 / - + 55 AS col0
----
1

query I rowsort
SELECT DISTINCT - 36 + - 66 AS col2
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-228
SELECT 97 + CAST( NULL AS SIGNED ) * + - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-228
SELECT 97 + CAST ( NULL AS INTEGER ) * + - 4 AS col2
----
NULL

query I rowsort
SELECT ALL - 74 + ( + 56 )
----
-18

query I rowsort
SELECT ALL + 19 + ( - 11 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT 81 * - 23 * ( - ( - MAX( ALL + NULLIF ( + - 91, 70 ) ) ) ) AS col1
----
169533

skipif mysql # not compatible
query I rowsort label-231
SELECT 81 * - 23 * ( - ( - MAX ( ALL + NULLIF ( + - 91, 70 ) ) ) ) AS col1
----
169533

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

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

query II rowsort
SELECT ALL - ( + + 26 ) * + - 85 AS col1, - 30 + + - 25
----
2210
-55

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-235
SELECT + 86 DIV COUNT( * ) col0, + 23 AS col2
----
86
23

skipif mysql # not compatible
query II rowsort label-235
SELECT + 86 / COUNT ( * ) col0, + 23 AS col2
----
86
23

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT + 91 * + CASE + COUNT( * ) WHEN + 57 THEN + 56 ELSE NULL END + - 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT + 91 * + CASE + COUNT ( * ) WHEN + 57 THEN + 56 ELSE NULL END + - 41 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-237
SELECT - + COUNT( * ) + + - 9
----
-10

skipif mysql # not compatible
query I rowsort label-237
SELECT - + COUNT ( * ) + + - 9
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-238
SELECT - CAST( + COUNT( * ) AS SIGNED ) DIV - 39 + + - 95 * + 58 + + + MIN( + 83 ) * - COUNT( * ) * - 86 + - 29
----
1599

skipif mysql # not compatible
query I rowsort label-238
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) / - 39 + + - 95 * + 58 + + + MIN ( + 83 ) * - COUNT ( * ) * - 86 + - 29
----
1599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-239
SELECT DISTINCT 50 * - 12 + - - COUNT( * ) * CAST( NULL AS SIGNED ) - - CASE - 26 WHEN 28 THEN NULL ELSE 93 + - 32 + + + 84 * + NULLIF ( + - 29, 70 ) * + 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT 50 * - 12 + - - COUNT ( * ) * CAST ( NULL AS INTEGER ) - - CASE - 26 WHEN 28 THEN NULL ELSE 93 + - 32 + + + 84 * + NULLIF ( + - 29, 70 ) * + 55 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT + COUNT( * ) * + 15 * 90 AS col1
----
1350

skipif mysql # not compatible
query I rowsort label-240
SELECT + COUNT ( * ) * + 15 * 90 AS col1
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL 71 * 54 + + - 33 + + - 62 - - 97 + + 46 + - COUNT( + + 21 ) * - 46 + - + 97 - 62 - + MAX( - 64 ) * - COUNT( * )
----
3705

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL 71 * 54 + + - 33 + + - 62 - - 97 + + 46 + - COUNT ( + + 21 ) * - 46 + - + 97 - 62 - + MAX ( - 64 ) * - COUNT ( * )
----
3705

query I rowsort
SELECT DISTINCT - ( 14 ) * 73
----
-1022

onlyif mysql # aggregate syntax: 
query II rowsort label-243
SELECT ALL + COUNT( + + 10 ) AS col2, 75 * + MIN( DISTINCT + 19 ) * + COUNT( * ) + 39
----
1
1464

skipif mysql # not compatible
query II rowsort label-243
SELECT ALL + COUNT ( + + 10 ) AS col2, 75 * + MIN ( DISTINCT + 19 ) * + COUNT ( * ) + 39
----
1
1464

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-244
SELECT + + COALESCE ( - MIN( DISTINCT 36 ), COALESCE ( - - ( + NULLIF ( ( + 27 ), - COUNT( * ) ) ), 5 - + ( - + 85 ) ) ), COUNT( * ) - - COUNT( * ) DIV + 89 col0, + 45 * + - 73 AS col1
----
-36
1
-3285

skipif mysql # not compatible
query III rowsort label-244
SELECT + + COALESCE ( - MIN ( DISTINCT 36 ), COALESCE ( - - ( + NULLIF ( ( + 27 ), - COUNT ( * ) ) ), 5 - + ( - + 85 ) ) ), COUNT ( * ) - - COUNT ( * ) / + 89 col0, + 45 * + - 73 AS col1
----
-36
1
-3285

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-246
SELECT DISTINCT + - COUNT( 82 ) * - + COALESCE ( COUNT( - - 29 ), + 1 * + 73 * + 22 + 83 ) + - 57 DIV 46 DIV 59 AS col0, + 13 AS col0
----
1
13

skipif mysql # not compatible
query II rowsort label-246
SELECT DISTINCT + - COUNT ( 82 ) * - + COALESCE ( COUNT ( - - 29 ), + 1 * + 73 * + 22 + 83 ) + - 57 / 46 / 59 AS col0, + 13 AS col0
----
1
13

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

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

query I rowsort
SELECT ALL 17 + 21
----
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-249
SELECT - CASE + 66 WHEN 74 + + COUNT( * ) + 59 THEN - 82 ELSE 70 DIV - CASE CAST( - - ( + MIN( ALL - 56 ) ) AS DECIMAL ) WHEN - 77 + 58 THEN - 87 WHEN - + 76 * + - 35 THEN NULL ELSE 36 END END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-249
SELECT - CASE + 66 WHEN 74 + + COUNT ( * ) + 59 THEN - 82 ELSE 70 / - CASE CAST ( - - ( + MIN ( ALL - 56 ) ) AS REAL ) WHEN - 77 + 58 THEN - 87 WHEN - + 76 * + - 35 THEN NULL ELSE 36 END END AS col0
----
1

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

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

query I rowsort
SELECT + 99 - + 77 AS col0
----
22

query I rowsort
SELECT ALL 69 + 92
----
161

query I rowsort
SELECT + 81 * - 30 AS col0
----
-2430

query I rowsort
SELECT ALL 63 + 67 AS col0
----
130

query I rowsort
SELECT - COALESCE ( - + 50, + - 21 * - 19 )
----
50

query I rowsort
SELECT ALL + 87 + - ( 60 ) * + 83
----
-4893

query I rowsort
SELECT + 9 + - - 28 AS col1
----
37

query I rowsort
SELECT + CASE 59 WHEN + 54 THEN + + 4 ELSE NULL END + + 57 + - 95 * - 96 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT - 91 * - MAX( DISTINCT + 90 ) AS col0
----
8190

skipif mysql # not compatible
query I rowsort label-259
SELECT - 91 * - MAX ( DISTINCT + 90 ) AS col0
----
8190

query I rowsort
SELECT - 9 + + 97
----
88

query I rowsort
SELECT - 67 - + 69 + 39 * 83 AS col0
----
3101

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT DISTINCT CASE + + 91 WHEN - 63 THEN + CASE 21 WHEN - - 62 + COUNT( * ) + 60 * - 33 + 44 * - 35 THEN 94 / + 27 WHEN 29 * 47 + + 10 THEN + 79 + - + 2 END * - 4 WHEN 66 * + 4 THEN - 88 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT CASE + + 91 WHEN - 63 THEN + CASE 21 WHEN - - 62 + COUNT ( * ) + 60 * - 33 + 44 * - 35 THEN 94 / + 27 WHEN 29 * 47 + + 10 THEN + 79 + - + 2 END * - 4 WHEN 66 * + 4 THEN - 88 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT ALL + + COUNT( * ) - - + 89
----
90

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL + + COUNT ( * ) - - + 89
----
90

query I rowsort
SELECT - + 68 * 36
----
-2448

query II rowsort
SELECT ALL 22, 59 AS col1
----
22
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-266
SELECT + 67 AS col0, - 64 + - COUNT( * ) DIV MIN( 53 ) AS col2
----
67
-64

skipif mysql # not compatible
query II rowsort label-266
SELECT + 67 AS col0, - 64 + - COUNT ( * ) / MIN ( 53 ) AS col2
----
67
-64

query I rowsort
SELECT + 89 * - 38
----
-3382

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-269
SELECT + 35 DIV + COUNT( * ) + + 60 + - - 46 AS col1
----
141

skipif mysql # not compatible
query I rowsort label-269
SELECT + 35 / + COUNT ( * ) + + 60 + - - 46 AS col1
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT - 86 DIV + 50 + + - 30 + 49 * 72
----
3497

skipif mysql # not compatible
query I rowsort label-270
SELECT - 86 / + 50 + + - 30 + 49 * 72
----
3497

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

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

query I rowsort
SELECT - - 41 * + 93 * + ( - - 17 )
----
64821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-273
SELECT - 48 - - SUM( + 39 ) col0, - 21 + - 4 * + COALESCE ( 85, - + 52 * - CAST( AVG ( DISTINCT 92 ) AS SIGNED ) * - MIN( 65 ), - 50 ) + 54 - - 18 * + SUM( + + 87 ) * - ( - COUNT( * ) * + CAST( NULL AS SIGNED ) ) * COUNT( ALL 55 * + 75 - 3 * + 61 ) AS col1
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-273
SELECT - 48 - - SUM ( + 39 ) col0, - 21 + - 4 * + COALESCE ( 85, - + 52 * - CAST ( AVG ( DISTINCT 92 ) AS INTEGER ) * - MIN ( 65 ), - 50 ) + 54 - - 18 * + SUM ( + + 87 ) * - ( - COUNT ( * ) * + CAST ( NULL AS INTEGER ) ) * COUNT ( ALL 55 * + 75 - 3 * + 61 ) AS col1
----
-9
NULL

query I rowsort
SELECT DISTINCT + 44 * + 71
----
3124

query I rowsort
SELECT ALL - + 64 * + 71 AS col2
----
-4544

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT DISTINCT 1 DIV - 14 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT 1 / - 14 AS col0
----
0

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

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

query I rowsort
SELECT + + 44 * 85 - - - 79 * 55 + + 7
----
-598

query II rowsort
SELECT + 63 AS col2, - 33 AS col1
----
63
-33

query I rowsort
SELECT - 28 + 42 AS col0
----
14

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT - 75 + - MIN( 76 ) + - 70
----
-221

skipif mysql # not compatible
query I rowsort label-282
SELECT - 75 + - MIN ( 76 ) + - 70
----
-221

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT 18 * - 50 * + 18 * - 45 - + 57 - COUNT( * ) col1
----
728942

skipif mysql # not compatible
query I rowsort label-283
SELECT 18 * - 50 * + 18 * - 45 - + 57 - COUNT ( * ) col1
----
728942

onlyif mysql # aggregate syntax: 
query II rowsort label-284
SELECT DISTINCT + NULLIF ( COUNT( + 57 ), + SUM( + 58 ) ), - 62 * - COUNT( * ) AS col1
----
1
62

skipif mysql # not compatible
query II rowsort label-284
SELECT DISTINCT + NULLIF ( COUNT ( + 57 ), + SUM ( + 58 ) ), - 62 * - COUNT ( * ) AS col1
----
1
62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-286
SELECT + COUNT( * ) + + 47 + - NULLIF ( 54, CAST( - 45 AS SIGNED ) / + 15 + - COUNT( * ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-286
SELECT + COUNT ( * ) + + 47 + - NULLIF ( 54, CAST ( - 45 AS INTEGER ) / + 15 + - COUNT ( * ) ) AS col1
----
-6

query I rowsort
SELECT ALL 23 * - + 64 * - - 33 * 18 - - 6 AS col0
----
-874362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-288
SELECT + 98 + ( CAST( CASE - 81 WHEN 56 * + CASE + 14 WHEN + NULLIF ( + 53, - 46 ) THEN NULL ELSE - 60 - - 54 - + 83 * + + 93 END + - 90 * 0 + + 98 THEN - 70 WHEN 13 * CAST( 4 AS SIGNED ) + 46 THEN NULL END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT + 98 + ( CAST ( CASE - 81 WHEN 56 * + CASE + 14 WHEN + NULLIF ( + 53, - 46 ) THEN NULL ELSE - 60 - - 54 - + 83 * + + 93 END + - 90 * 0 + + 98 THEN - 70 WHEN 13 * CAST ( 4 AS INTEGER ) + 46 THEN NULL END AS INTEGER ) )
----
NULL

query I rowsort
SELECT 26 + - COALESCE ( - + 69, - 11 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT 97 + - + NULLIF ( 97, + 86 ) - 47 * + - MIN( DISTINCT - - 26 ) * + + 27
----
32994

skipif mysql # not compatible
query I rowsort label-290
SELECT 97 + - + NULLIF ( 97, + 86 ) - 47 * + - MIN ( DISTINCT - - 26 ) * + + 27
----
32994

onlyif mysql # DIV for integer division: 
query II rowsort label-291
SELECT DISTINCT 15 DIV - + 39, 29 * 90 AS col1
----
0
2610

skipif mysql # not compatible
query II rowsort label-291
SELECT DISTINCT 15 / - + 39, 29 * 90 AS col1
----
0
2610

onlyif mysql # DIV for integer division: 
query I rowsort label-292
SELECT 16 DIV - - NULLIF ( 23, + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-292
SELECT 16 / - - NULLIF ( 23, + 53 )
----
0

query I rowsort
SELECT DISTINCT + 69 * - - 78 + 34 + + 8 + + - 69 AS col0
----
5355

query I rowsort
SELECT ALL 60 * - 41 * - + 20 * 6 - + 1
----
295199

query I rowsort
SELECT 62 + - - 38 AS col1
----
100

query I rowsort
SELECT ALL 4 * - 51 AS col0
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-297
SELECT 64 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-297
SELECT 64 / - - 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-298
SELECT - 43 DIV 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-298
SELECT - 43 / 61 AS col0
----
0

query I rowsort
SELECT 54 * + + 70
----
3780

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT COUNT( * ) + + - 77 + - 27 * + COUNT( - 27 )
----
-103

skipif mysql # not compatible
query I rowsort label-301
SELECT COUNT ( * ) + + - 77 + - 27 * + COUNT ( - 27 )
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-302
SELECT - + CAST( - + 31 AS SIGNED ) AS col0, + 65
----
31
65

skipif mysql # not compatible
query II rowsort label-302
SELECT - + CAST ( - + 31 AS INTEGER ) AS col0, + 65
----
31
65

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT 31 + - MAX( 62 ) * - 63
----
3937

skipif mysql # not compatible
query I rowsort label-303
SELECT 31 + - MAX ( 62 ) * - 63
----
3937

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT ALL - COUNT( * ) * + 88 AS col0, COUNT( * ) * - 15 * + 62 - - ( - + 4 )
----
-88
-934

skipif mysql # not compatible
query II rowsort label-304
SELECT ALL - COUNT ( * ) * + 88 AS col0, COUNT ( * ) * - 15 * + 62 - - ( - + 4 )
----
-88
-934

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

skipif mysql # not compatible
query I rowsort label-305
SELECT COUNT ( * ) * + ( - + ( 68 ) ) / + 63
----
-1

query II rowsort
SELECT ALL + - COALESCE ( 93, - - 71 ) + - 37 col0, 49 AS col0
----
-130
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-307
SELECT ALL - + MAX( - + 79 ) AS col1, - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-307
SELECT ALL - + MAX ( - + 79 ) AS col1, - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
79
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-308
SELECT ALL 6 + CASE 35 WHEN - 34 THEN 25 DIV - - 82 ELSE - 28 END AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-308
SELECT ALL 6 + CASE 35 WHEN - 34 THEN 25 / - - 82 ELSE - 28 END AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT ALL - - COUNT( * ) + - 88 + 59 * + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL - - COUNT ( * ) + - 88 + 59 * + COUNT ( * ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-310
SELECT + 20 * + 40 / - CAST( NULL AS SIGNED ) + - + ( - SUM( - 76 ) ) + 77 / - 46 - + 74 * + + 26 + + 77 + - 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-310
SELECT + 20 * + 40 / - CAST ( NULL AS INTEGER ) + - + ( - SUM ( - 76 ) ) + 77 / - 46 - + 74 * + + 26 + + 77 + - 48 AS col0
----
NULL

query I rowsort
SELECT + 26 * - + COALESCE ( 22, 52 + + 41 ) AS col2
----
-572

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-312
SELECT CAST( - 91 AS SIGNED ) DIV CAST( + 22 AS SIGNED ) + + 40 + + 22 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-312
SELECT CAST ( - 91 AS INTEGER ) / CAST ( + 22 AS INTEGER ) + + 40 + + 22 AS col0
----
58

query I rowsort
SELECT DISTINCT - 4 + + + ( - 44 ) + - 58 AS col2
----
-106

query I rowsort
SELECT 81 * + - 89 * 29
----
-209061

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-317
SELECT DISTINCT - 5 - + ( + + 50 ) + 41 * + 6 AS col0, CAST( MIN( DISTINCT + + 84 ) AS SIGNED ) * + 91 AS col2
----
191
7644

skipif mysql # not compatible
query II rowsort label-317
SELECT DISTINCT - 5 - + ( + + 50 ) + 41 * + 6 AS col0, CAST ( MIN ( DISTINCT + + 84 ) AS INTEGER ) * + 91 AS col2
----
191
7644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT ALL - CAST( - 53 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - CAST ( - 53 AS INTEGER ) AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT ALL - 60 DIV - 18 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - 60 / - 18 AS col1
----
3

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

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL - 87 - + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-321
SELECT 71 DIV 46 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-321
SELECT 71 / 46 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-322
SELECT 7 * CAST( NULL AS SIGNED ) * 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT 7 * CAST ( NULL AS INTEGER ) * 80 col1
----
NULL

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

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

query I rowsort
SELECT 90 - + 79
----
11

query II rowsort
SELECT - 48, 91 * + 46 AS col0
----
-48
4186

query I rowsort
SELECT ALL - CASE - + ( + - 16 ) WHEN - 48 THEN NULL WHEN - 53 * + 57 THEN + 57 END - + 44 - 37 * + 66
----
NULL

query I rowsort
SELECT 6 * + 69 AS col2
----
414

query I rowsort
SELECT DISTINCT 9 * + 19
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT ALL - 97 * + COUNT( * ) * 29
----
-2813

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL - 97 * + COUNT ( * ) * 29
----
-2813

query I rowsort
SELECT 25 - - ( - + 84 )
----
-59

query II rowsort
SELECT ALL 15 AS col1, + 17
----
15
17

query I rowsort
SELECT 32 * 66
----
2112

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

skipif mysql # not compatible
query I rowsort label-333
SELECT - COUNT ( * ) * - 83 / - 93
----
0

query I rowsort
SELECT ALL CASE 57 WHEN - 95 THEN + 67 * - 72 WHEN - + 50 THEN - 87 - + 41 END
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-336
SELECT + 85 + - COALESCE ( - ( - - CAST( NULL AS SIGNED ) ), - NULLIF ( + 1, + CAST( NULL AS DECIMAL ) * - COALESCE ( - - 48, + 10 * - NULLIF ( + 22, + 89 ) ) ) DIV + 36 )
----
85

skipif mysql # not compatible
query I rowsort label-336
SELECT + 85 + - COALESCE ( - ( - - CAST ( NULL AS INTEGER ) ), - NULLIF ( + 1, + CAST ( NULL AS REAL ) * - COALESCE ( - - 48, + 10 * - NULLIF ( + 22, + 89 ) ) ) / + 36 )
----
85

query I rowsort
SELECT - - 99 col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT DISTINCT COUNT( * ) + + CASE + 15 WHEN 70 * - ( + 78 ) THEN NULL WHEN - 11 + SUM( - + 10 ) + + - COUNT( DISTINCT - 15 ) / - 61 * - 73 THEN NULL WHEN - + 29 THEN - 81 + 59 * + ( - SUM( + 49 ) ) ELSE NULL END * COUNT( - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT COUNT ( * ) + + CASE + 15 WHEN 70 * - ( + 78 ) THEN NULL WHEN - 11 + SUM ( - + 10 ) + + - COUNT ( DISTINCT - 15 ) / - 61 * - 73 THEN NULL WHEN - + 29 THEN - 81 + 59 * + ( - SUM ( + 49 ) ) ELSE NULL END * COUNT ( - 48 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-339
SELECT ALL NULLIF ( + 63, + COUNT( * ) * + 39 + + 4 ) DIV NULLIF ( 62, - + MAX( ALL + 10 ) * 63 + - 87 + - 48 + - - 39 ) + - NULLIF ( + 15, - 6 ) - + 58 + 41
----
-31

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL NULLIF ( + 63, + COUNT ( * ) * + 39 + + 4 ) / NULLIF ( 62, - + MAX ( ALL + 10 ) * 63 + - 87 + - 48 + - - 39 ) + - NULLIF ( + 15, - 6 ) - + 58 + 41
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT ALL - COUNT( * ) + + 23 * - 0 * - 92 + 76 + ( + - 98 ) + - - 19 * 26
----
471

skipif mysql # not compatible
query I rowsort label-340
SELECT ALL - COUNT ( * ) + + 23 * - 0 * - 92 + 76 + ( + - 98 ) + - - 19 * 26
----
471

onlyif mysql # aggregate syntax: 
query I rowsort label-341
SELECT ALL 51 + - + 3 + MAX( 73 ) AS col1
----
121

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL 51 + - + 3 + MAX ( 73 ) AS col1
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT DISTINCT + 97 * + CAST( + + 51 AS SIGNED ) * + - 77 * + 65 * COUNT( * ) AS col0
----
-24759735

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT + 97 * + CAST ( + + 51 AS INTEGER ) * + - 77 * + 65 * COUNT ( * ) AS col0
----
-24759735

query I rowsort
SELECT ALL 60 + 76
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT - - CASE 70 WHEN 7 THEN + COALESCE ( - - COUNT( * ), - 75 + + 7, ( + - COUNT( * ) ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-344
SELECT - - CASE 70 WHEN 7 THEN + COALESCE ( - - COUNT ( * ), - 75 + + 7, ( + - COUNT ( * ) ) ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 27 + 59 * + 52 * + 77
----
236263

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-347
SELECT + 43 DIV + 94 * - - 85
----
0

skipif mysql # not compatible
query I rowsort label-347
SELECT + 43 / + 94 * - - 85
----
0

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

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

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

query I rowsort
SELECT - 23 + 85 - NULLIF ( + 12, 49 + + 75 + - 80 + - 70 + - + 1 ) AS col0
----
50

query I rowsort
SELECT ALL 84 * + 82 + - 28 + + 14 col0
----
6874

query I rowsort
SELECT DISTINCT 99 * COALESCE ( - 46, - + ( - 63 ) )
----
-4554

query I rowsort
SELECT ( 92 ) - 0
----
92

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

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT - COUNT ( - + 20 ) AS col1
----
-1

query I rowsort
SELECT ALL 72 * - - 44 * - + 47 - 72
----
-148968

query I rowsort
SELECT 0 + + 39 AS col0
----
39

query I rowsort
SELECT 75 * + 54
----
4050

query III rowsort
SELECT + 88, - 2 AS col2, 75 AS col0
----
88
-2
75

query I rowsort
SELECT - 92 - 99
----
-191

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

skipif mysql # not compatible
query I rowsort label-360
SELECT + 62 + - SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT 86 * + COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-362
SELECT - 56 + - 84 + + + 70 - - COUNT( * ) + + + 9 DIV 41 * MIN( ALL + + 14 )
----
-69

skipif mysql # not compatible
query I rowsort label-362
SELECT - 56 + - 84 + + + 70 - - COUNT ( * ) + + + 9 / 41 * MIN ( ALL + + 14 )
----
-69

query I rowsort
SELECT DISTINCT COALESCE ( + 33, + 34, 79 )
----
33

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

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

query I rowsort
SELECT 29 * + + 15 + - 16 + + - 92 * + - 24 AS col2
----
2627

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

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

query I rowsort
SELECT DISTINCT - 84 + + 19
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-368
SELECT - 35 AS col0, CASE - 91 WHEN + COUNT( * ) THEN - + 71 WHEN + SUM( + + 30 ) THEN NULL END AS col2
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-368
SELECT - 35 AS col0, CASE - 91 WHEN + COUNT ( * ) THEN - + 71 WHEN + SUM ( + + 30 ) THEN NULL END AS col2
----
-35
NULL

query I rowsort
SELECT DISTINCT + + 99 + 24 - - NULLIF ( 44, - 70 / - 50 ) AS col1
----
167

query I rowsort
SELECT - 78 + - 26 AS col0
----
-104

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

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

query II rowsort
SELECT ALL + 27, 58 + - + ( - - COALESCE ( + 49, NULLIF ( - 92, ( - 67 ) ) ) ) * + - ( 15 ) AS col0
----
27
793

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

skipif mysql # not compatible
query II rowsort label-373
SELECT COUNT ( * ) col1, 2 AS col0
----
1
2

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

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL - - ( COUNT ( * ) ) + 35 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT - NULLIF ( 8, - + 25 / - 98 * + CASE WHEN ( NOT - + 1 IS NOT NULL ) THEN NULL ELSE + - 76 * + MAX( DISTINCT - - 65 ) + + 98 * 55 + + 3 END * COALESCE ( - - 97, + 40 ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-375
SELECT - NULLIF ( 8, - + 25 / - 98 * + CASE WHEN ( NOT - + 1 IS NOT NULL ) THEN NULL ELSE + - 76 * + MAX ( DISTINCT - - 65 ) + + 98 * 55 + + 3 END * COALESCE ( - - 97, + 40 ) ) AS col0
----
-8

query I rowsort
SELECT - - 62 + ( - ( - + CASE 47 WHEN 88 + 92 THEN - ( + 91 ) ELSE + 51 * 10 * + + 19 END ) ) AS col2
----
9752

query I rowsort
SELECT DISTINCT - + NULLIF ( + + 86, - - 14 ) + 27 - + 20
----
-79

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

query I rowsort
SELECT - + 87 + + + 99 + - 83 * - + 78 * + 68 * - 46 AS col0
----
-20250660

query I rowsort
SELECT - - 29 * - ( 86 ) AS col0
----
-2494

query I rowsort
SELECT + 41 + - - 92 AS col2
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-382
SELECT ALL - + 44 * + CASE 20 WHEN - 68 * + + 82 * - 24 THEN COUNT( * ) * + + CASE + + AVG ( - 38 ) WHEN - 45 THEN NULL WHEN + ( 28 ) THEN 80 + - 15 - - CAST( NULL AS SIGNED ) * + ( 95 ) END * 56 * 92 + COUNT( ALL + 38 ) / - 10 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL - + 44 * + CASE 20 WHEN - 68 * + + 82 * - 24 THEN COUNT ( * ) * + + CASE + + AVG ( - 38 ) WHEN - 45 THEN NULL WHEN + ( 28 ) THEN 80 + - 15 - - CAST ( NULL AS INTEGER ) * + ( 95 ) END * 56 * 92 + COUNT ( ALL + 38 ) / - 10 END AS col2
----
NULL

query I rowsort
SELECT - 80 + + 82
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-384
SELECT - 15 AS col1, CASE + 78 WHEN - 2 THEN - - 80 END * - + 30 * COUNT( * ) * + - 54 + + 55 * + MAX( DISTINCT 86 ) / + - 39 - + 61 + - 49 - + 59 * - 93 * + + 5 col0
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-384
SELECT - 15 AS col1, CASE + 78 WHEN - 2 THEN - - 80 END * - + 30 * COUNT ( * ) * + - 54 + + 55 * + MAX ( DISTINCT 86 ) / + - 39 - + 61 + - 49 - + 59 * - 93 * + + 5 col0
----
-15
NULL

query I rowsort
SELECT + 64 + + + 70 AS col0
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-386
SELECT DISTINCT - 16 + - 65 + - COUNT( * ) DIV - COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT - 16 + - 65 + - COUNT ( * ) / - COUNT ( * )
----
-80

query II rowsort
SELECT - + 19, - 45 + 82 col1
----
-19
37

onlyif mysql # aggregate syntax: 
query II rowsort label-388
SELECT + COUNT( * ) AS col2, 63 + + 71 + + 34 * + 56 + + 6 + - + 49 col2
----
1
1995

skipif mysql # not compatible
query II rowsort label-388
SELECT + COUNT ( * ) AS col2, 63 + + 71 + + 34 * + 56 + + 6 + - + 49 col2
----
1
1995

query II rowsort
SELECT ALL + + 91 col2, - 63 AS col1
----
91
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-390
SELECT DISTINCT 2 DIV + 99 * + + 48 - - 19
----
19

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT 2 / + 99 * + + 48 - - 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT + NULLIF ( - 38, + 43 ) * COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-391
SELECT + NULLIF ( - 38, + 43 ) * COUNT ( * ) AS col0
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-392
SELECT ALL COUNT( * ) * + - 51 DIV - - 39
----
-1

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL COUNT ( * ) * + - 51 / - - 39
----
-1

query II rowsort
SELECT + ( - 20 ) + - + 93 AS col2, 86 AS col2
----
-113
86

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT 59 * + + 0 + - - 79 DIV + 64
----
1

skipif mysql # not compatible
query I rowsort label-394
SELECT 59 * + + 0 + - - 79 / + 64
----
1

query I rowsort
SELECT - 34 * - - 89
----
-3026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-396
SELECT - ( NULLIF ( + 97, 16 ) ) * + CAST( + 4 AS SIGNED ) + - 12 AS col0
----
-400

skipif mysql # not compatible
query I rowsort label-396
SELECT - ( NULLIF ( + 97, 16 ) ) * + CAST ( + 4 AS INTEGER ) + - 12 AS col0
----
-400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-397
SELECT + 99 * + - ( - - CAST( NULL AS SIGNED ) ), - 38 AS col2
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-397
SELECT + 99 * + - ( - - CAST ( NULL AS INTEGER ) ), - 38 AS col2
----
NULL
-38

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

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

query I rowsort
SELECT ( - 75 ) col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT - 36 * - 54 + + MAX( DISTINCT - + 24 ) - 99 * - - 69 AS col0
----
-4911

skipif mysql # not compatible
query I rowsort label-400
SELECT - 36 * - 54 + + MAX ( DISTINCT - + 24 ) - 99 * - - 69 AS col0
----
-4911

onlyif mysql # DIV for integer division: 
query I rowsort label-401
SELECT + 75 * ( - 59 ) DIV 4 + - 17 AS col2
----
-1123

skipif mysql # not compatible
query I rowsort label-401
SELECT + 75 * ( - 59 ) / 4 + - 17 AS col2
----
-1123

query I rowsort
SELECT DISTINCT - 15 * - - 8
----
-120

query I rowsort
SELECT + 39 * 48
----
1872

query II rowsort
SELECT + ( 20 ), 9 AS col1
----
20
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-405
SELECT CASE - COUNT( * ) WHEN + + 29 * - 32 + + - COALESCE ( + - 21, + + MAX( + NULLIF ( - 54, + ( ( - 19 ) ) ) ) + + - 26 + + 72 + + - CAST( NULL AS SIGNED ) * - - 51 ) THEN ( + NULLIF ( + 73, - NULLIF ( + - 75, 13 - AVG ( ALL - 6 ) ) - + 57 ) ) WHEN - 93 / MAX( ALL CAST( NULL AS SIGNED ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-405
SELECT CASE - COUNT ( * ) WHEN + + 29 * - 32 + + - COALESCE ( + - 21, + + MAX ( + NULLIF ( - 54, + ( ( - 19 ) ) ) ) + + - 26 + + 72 + + - CAST ( NULL AS INTEGER ) * - - 51 ) THEN ( + NULLIF ( + 73, - NULLIF ( + - 75, 13 - AVG ( ALL - 6 ) ) - + 57 ) ) WHEN - 93 / MAX ( ALL CAST ( NULL AS INTEGER ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-406
SELECT + NULLIF ( COUNT( * ), + - 76 + - - 95 ) * - - 2 AS col2, - COUNT( * ) AS col0
----
2
-1

skipif mysql # not compatible
query II rowsort label-406
SELECT + NULLIF ( COUNT ( * ), + - 76 + - - 95 ) * - - 2 AS col2, - COUNT ( * ) AS col0
----
2
-1

query I rowsort
SELECT + 9 * + 50 AS col1
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT + CASE - 62 WHEN - 87 THEN - - 62 * - + COUNT( DISTINCT - 48 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT + CASE - 62 WHEN - 87 THEN - - 62 * - + COUNT ( DISTINCT - 48 ) END
----
NULL

query I rowsort
SELECT COALESCE ( + 21, - 24 ) AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-410
SELECT DISTINCT - 52 * + CASE - 1 WHEN 38 THEN - 57 + - 40 - - 42 ELSE - - COUNT( * ) * + - MIN( ALL + 60 ) END DIV + CAST( 1 AS SIGNED ) + + COALESCE ( + 69, + 45 ) - - - 94 * + 90 + 40 AS col1
----
-5231

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT - 52 * + CASE - 1 WHEN 38 THEN - 57 + - 40 - - 42 ELSE - - COUNT ( * ) * + - MIN ( ALL + 60 ) END / + CAST ( 1 AS INTEGER ) + + COALESCE ( + 69, + 45 ) - - - 94 * + 90 + 40 AS col1
----
-5231

onlyif mysql # aggregate syntax: 
query II rowsort label-411
SELECT + 97 - - + 35 AS col0, 65 - + COUNT( DISTINCT 52 ) + + + 55 * 37
----
132
2099

skipif mysql # not compatible
query II rowsort label-411
SELECT + 97 - - + 35 AS col0, 65 - + COUNT ( DISTINCT 52 ) + + + 55 * 37
----
132
2099

query II rowsort
SELECT + 53 + + 6 col1, 90 AS col0
----
59
90

onlyif mysql # aggregate syntax: 
query II rowsort label-413
SELECT - 23 * - COUNT( * ) AS col2, COUNT( * ) + 13
----
23
14

skipif mysql # not compatible
query II rowsort label-413
SELECT - 23 * - COUNT ( * ) AS col2, COUNT ( * ) + 13
----
23
14

query II rowsort
SELECT DISTINCT + 30 * 73 AS col1, + ( - 40 ) AS col2
----
2190
-40

query I rowsort
SELECT DISTINCT 54 + - COALESCE ( + 6, - - 34 ) * - 44
----
318

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT ALL - NULLIF ( - - 84, - + CASE 42 WHEN + 20 * + 72 * - 85 * - - SUM( + 93 ) THEN NULL WHEN - 4 THEN 68 WHEN COUNT( * ) THEN NULL ELSE NULL END ) * + - 67 * + 96
----
540288

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL - NULLIF ( - - 84, - + CASE 42 WHEN + 20 * + 72 * - 85 * - - SUM ( + 93 ) THEN NULL WHEN - 4 THEN 68 WHEN COUNT ( * ) THEN NULL ELSE NULL END ) * + - 67 * + 96
----
540288

query I rowsort
SELECT ALL - 78 - + - 85 + + 46 + - 59 AS col1
----
-6

query I rowsort
SELECT - + NULLIF ( + + 48, - - 67 - + 34 ) col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-421
SELECT ALL + - COALESCE ( + 54, + + 57, - + 75 ) * - + 97, 31 * - COUNT( ALL + + 79 ) AS col0
----
5238
-31

skipif mysql # not compatible
query II rowsort label-421
SELECT ALL + - COALESCE ( + 54, + + 57, - + 75 ) * - + 97, 31 * - COUNT ( ALL + + 79 ) AS col0
----
5238
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT DISTINCT + + MAX( + 28 ) * 84
----
2352

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT + + MAX ( + 28 ) * 84
----
2352

query I rowsort
SELECT - + 57 + 29 * + 13 * - - 1 AS col2
----
320

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT 84 DIV - + 8 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-425
SELECT 84 / - + 8 AS col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-426
SELECT + 57 DIV 21 * 91 + + + ( + 12 ) AS col2
----
194

skipif mysql # not compatible
query I rowsort label-426
SELECT + 57 / 21 * 91 + + + ( + 12 ) AS col2
----
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT DISTINCT - CAST( 43 AS SIGNED ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-427
SELECT DISTINCT - CAST ( 43 AS INTEGER ) col1
----
-43

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

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL - MIN ( - 67 )
----
67

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

skipif mysql # not compatible
query I rowsort label-429
SELECT COUNT ( * ) / 54 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-430
SELECT ALL CAST( - ( + AVG ( ALL - 0 ) ) AS SIGNED ) + - + 26
----
-26

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL CAST ( - ( + AVG ( ALL - 0 ) ) AS INTEGER ) + - + 26
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-431
SELECT ALL - CAST( - 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL - CAST ( - 24 AS INTEGER )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-432
SELECT ALL COUNT( * ) + + COALESCE ( + 67, - MAX( ALL 94 ), COUNT( - 64 ) DIV - 51 - - 60 ) + 54 * - COUNT( 45 )
----
14

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL COUNT ( * ) + + COALESCE ( + 67, - MAX ( ALL 94 ), COUNT ( - 64 ) / - 51 - - 60 ) + 54 * - COUNT ( 45 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT 29 * + 96 + + COUNT( * ) col2
----
2785

skipif mysql # not compatible
query I rowsort label-433
SELECT 29 * + 96 + + COUNT ( * ) col2
----
2785

query I rowsort
SELECT ( + 2 ) + 11 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-435
SELECT 6 + 22 + + - COUNT( * ) + + CAST( NULL AS DECIMAL ) + - 22 * + 44 * + 28 * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT 6 + 22 + + - COUNT ( * ) + + CAST ( NULL AS REAL ) + - 22 * + 44 * + 28 * - 78
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT ALL CASE 34 WHEN + COUNT( * ) THEN NULL WHEN + 12 THEN 6 END + + CASE + 14 WHEN + - 58 THEN NULL ELSE - 53 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL CASE 34 WHEN + COUNT ( * ) THEN NULL WHEN + 12 THEN 6 END + + CASE + 14 WHEN + - 58 THEN NULL ELSE - 53 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT - MAX( ALL + 36 ) * + + 55 + + + 71
----
-1909

skipif mysql # not compatible
query I rowsort label-438
SELECT - MAX ( ALL + 36 ) * + + 55 + + + 71
----
-1909

query I rowsort
SELECT 66 * + 12 + + 36
----
828

query II rowsort
SELECT + 12, - 61 * + 83 AS col2
----
12
-5063

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

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

query I rowsort
SELECT ALL + 23 + - 55 * + 30
----
-1627

query I rowsort
SELECT ALL - 42 + + COALESCE ( - 98, ( + 60 ) * + 33 * - 49 )
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT 54 + + + NULLIF ( + 95, - - AVG ( DISTINCT - - 44 ) / + + 59 ) - + 22 + 30 * - - COUNT( * ) * + - 81 + + + 6 AS col0
----
-2297

skipif mysql # not compatible
query I rowsort label-444
SELECT 54 + + + NULLIF ( + 95, - - AVG ( DISTINCT - - 44 ) / + + 59 ) - + 22 + 30 * - - COUNT ( * ) * + - 81 + + + 6 AS col0
----
-2297

query II rowsort
SELECT ALL 31 AS col1, 14 AS col2
----
31
14

query I rowsort
SELECT ALL + 68 + 59
----
127

query I rowsort
SELECT 46 + - 90 - + 24
----
-68

query I rowsort
SELECT 92 + - 34
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-449
SELECT - CAST( + - ( ( + 21 ) ) AS SIGNED ) * + 56
----
1176

skipif mysql # not compatible
query I rowsort label-449
SELECT - CAST ( + - ( ( + 21 ) ) AS INTEGER ) * + 56
----
1176

query I rowsort
SELECT 23 * - 21 - - 95 * 50
----
4267

query I rowsort
SELECT + 63 + 53 - + 49 * + 22 * + 64
----
-68876

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

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

skipif mysql # not compatible
query I rowsort label-453
SELECT + COUNT ( * ) + + + 74 AS col0
----
75

query I rowsort
SELECT ALL - NULLIF ( 86, 1 / - + 75 )
----
-86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-456
SELECT ALL - 46 DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL - 46 / + 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-457
SELECT DISTINCT CASE 84 WHEN + 13 - + COUNT( * ) THEN 45 WHEN 13 * + + 84 * - 97 THEN + 84 * - MIN( DISTINCT + 12 ) * - - 34 + - 8 + - + COUNT( * ) * 66 * + CAST( NULL AS SIGNED ) + 1 / + ( - + CASE 0 WHEN - 58 + + MIN( 65 ) THEN + 31 * - SUM( ALL + 47 ) + + SUM( ALL 85 ) * + 57 ELSE NULL END ) WHEN CASE + ( + 31 ) WHEN - SUM( ALL + ( + 26 ) ) - 4 THEN NULLIF ( 90, COUNT( * ) / 62 + + COUNT( * ) ) * SUM( DISTINCT - 94 * 5 ) END + - 41 THEN COUNT( * ) * 18 END - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT CASE 84 WHEN + 13 - + COUNT ( * ) THEN 45 WHEN 13 * + + 84 * - 97 THEN + 84 * - MIN ( DISTINCT + 12 ) * - - 34 + - 8 + - + COUNT ( * ) * 66 * + CAST ( NULL AS INTEGER ) + 1 / + ( - + CASE 0 WHEN - 58 + + MIN ( 65 ) THEN + 31 * - SUM ( ALL + 47 ) + + SUM ( ALL 85 ) * + 57 ELSE NULL END ) WHEN CASE + ( + 31 ) WHEN - SUM ( ALL + ( + 26 ) ) - 4 THEN NULLIF ( 90, COUNT ( * ) / 62 + + COUNT ( * ) ) * SUM ( DISTINCT - 94 * 5 ) END + - 41 THEN COUNT ( * ) * 18 END - + 90
----
NULL

query I rowsort
SELECT - 12 + 71 * - - 15 col1
----
1053

query II rowsort
SELECT DISTINCT + 67 AS col1, 55 + + 33
----
67
88

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT 82 * + - MIN( - 92 ) AS col2
----
7544

skipif mysql # not compatible
query I rowsort label-460
SELECT 82 * + - MIN ( - 92 ) AS col2
----
7544

query I rowsort
SELECT - 26 + 78 * + + 56 + - 69 + + 10 col2
----
4283

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

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT - COUNT ( * ) / 19
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-463
SELECT 20 DIV + 13 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-463
SELECT 20 / + 13 AS col1
----
1

query I rowsort
SELECT 91 * + 91 AS col2
----
8281

query I rowsort
SELECT 26 + + 46 * - - 48 * + 41 AS col1
----
90554

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

onlyif mysql # aggregate syntax: 
query I rowsort label-467
SELECT ALL - MAX( - 31 ) + - - 89 + + 53 AS col1
----
173

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL - MAX ( - 31 ) + - - 89 + + 53 AS col1
----
173

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-468
SELECT DISTINCT + 42 * - NULLIF ( + COUNT( * ), + 97 - + 85 - 21 ) * + CASE 62 WHEN + 79 * - - 97 + - + 12 THEN + CASE SUM( + - NULLIF ( + 2, + - ( - + 89 ) ) ) WHEN 52 THEN - 89 DIV + - 80 WHEN ( + COALESCE ( + 17, - CAST( ( + 7 ) AS DECIMAL ) - 44 ) ) THEN 45 DIV 42 END ELSE + 31 END + 84 * + 95 col0
----
6678

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + 42 * - NULLIF ( + COUNT ( * ), + 97 - + 85 - 21 ) * + CASE 62 WHEN + 79 * - - 97 + - + 12 THEN + CASE SUM ( + - NULLIF ( + 2, + - ( - + 89 ) ) ) WHEN 52 THEN - 89 / + - 80 WHEN ( + COALESCE ( + 17, - CAST ( ( + 7 ) AS REAL ) - 44 ) ) THEN 45 / 42 END ELSE + 31 END + 84 * + 95 col0
----
6678

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT 25 * 3 * + + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-469
SELECT 25 * 3 * + + COUNT ( * ) AS col0
----
75

query II rowsort
SELECT DISTINCT + COALESCE ( 94, + + 41 ) * + 91 AS col1, 45 AS col0
----
8554
45

query I rowsort
SELECT ALL - 97 + - - 1
----
-96

query I rowsort
SELECT 15 * + 42
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT + 90 * 47 + + CASE - + ( 80 ) WHEN - 37 * - 44 * + + COALESCE ( + COUNT( ALL 34 ), 74, + 52 * 83 + MIN( ALL + 30 ) ) + + 36 * - 14 THEN NULL ELSE + + 40 END
----
4270

skipif mysql # not compatible
query I rowsort label-473
SELECT + 90 * 47 + + CASE - + ( 80 ) WHEN - 37 * - 44 * + + COALESCE ( + COUNT ( ALL 34 ), 74, + 52 * 83 + MIN ( ALL + 30 ) ) + + 36 * - 14 THEN NULL ELSE + + 40 END
----
4270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-474
SELECT SUM( DISTINCT + 61 ) + + CAST( NULL AS SIGNED ) * + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT SUM ( DISTINCT + 61 ) + + CAST ( NULL AS INTEGER ) * + 12 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT 41 * + 78 * + COUNT( * ) AS col2
----
3198

skipif mysql # not compatible
query I rowsort label-475
SELECT 41 * + 78 * + COUNT ( * ) AS col2
----
3198

query I rowsort
SELECT ALL 38 + + 14 + ( + 69 ) * + + 57 AS col1
----
3985

onlyif mysql # aggregate syntax: 
query II rowsort label-477
SELECT + MAX( DISTINCT - 75 ) AS col2, - 79 * + 41 * COUNT( * )
----
-75
-3239

skipif mysql # not compatible
query II rowsort label-477
SELECT + MAX ( DISTINCT - 75 ) AS col2, - 79 * + 41 * COUNT ( * )
----
-75
-3239

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

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT - - 41 * 77 + COUNT( * ) * + - 34 + 75
----
3198

skipif mysql # not compatible
query I rowsort label-479
SELECT - - 41 * 77 + COUNT ( * ) * + - 34 + 75
----
3198

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT COUNT( * ) - + ( + - 17 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-481
SELECT COUNT ( * ) - + ( + - 17 ) AS col0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT + NULLIF ( + 82, - 55 - - 36 + 8 ) DIV + 36 + - 46 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-482
SELECT + NULLIF ( + 82, - 55 - - 36 + 8 ) / + 36 + - 46 AS col0
----
-44

query I rowsort
SELECT DISTINCT + + 8 * - + 21 + + + 61 col2
----
-107

query I rowsort
SELECT 17 * + 12 + + 62
----
266

query I rowsort
SELECT ALL 57 * + 3 * - 19
----
-3249

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-486
SELECT - NULLIF ( COUNT( * ), + 61 / 90 ) - + + CASE - + CAST( 63 AS DECIMAL ) WHEN 53 - - 10 + + 50 THEN COUNT( * ) * - 6 + - 0 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-486
SELECT - NULLIF ( COUNT ( * ), + 61 / 90 ) - + + CASE - + CAST ( 63 AS REAL ) WHEN 53 - - 10 + + 50 THEN COUNT ( * ) * - 6 + - 0 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-487
SELECT + 14 + - 89 + - 14 * 85 DIV COUNT( * ) * + - 51
----
60615

skipif mysql # not compatible
query I rowsort label-487
SELECT + 14 + - 89 + - 14 * 85 / COUNT ( * ) * + - 51
----
60615

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

skipif mysql # not compatible
query I rowsort label-488
SELECT - - MIN ( + + 47 )
----
47

query I rowsort
SELECT + + 23 * + 18 * + 74
----
30636

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT + - COUNT( + 40 ) + 69 + - 92 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-490
SELECT + - COUNT ( + 40 ) + 69 + - 92 AS col1
----
-24

query I rowsort
SELECT + 64 * + 72
----
4608

query I rowsort
SELECT ALL 75 + 76 AS col1
----
151

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT DISTINCT 87 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-493
SELECT DISTINCT 87 / + 41
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-494
SELECT - NULLIF ( + COALESCE ( - 97, - COUNT( * ) DIV 40 + 81 ), 32 )
----
97

skipif mysql # not compatible
query I rowsort label-494
SELECT - NULLIF ( + COALESCE ( - 97, - COUNT ( * ) / 40 + 81 ), 32 )
----
97

query I rowsort
SELECT ALL 22 * - 73 * 90 AS col1
----
-144540

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT DISTINCT CASE 62 WHEN 96 THEN NULL ELSE + 64 END + COUNT( * ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT CASE 62 WHEN 96 THEN NULL ELSE + 64 END + COUNT ( * ) AS col1
----
65

query I rowsort
SELECT + 92 + 72
----
164

query I rowsort
SELECT ALL - CASE - + AVG ( + - 53 ) WHEN - + 76 + + 93 THEN - 51 ELSE NULL END * 23 + - 43 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-499
SELECT + NULLIF ( + COUNT( DISTINCT 81 ), - CAST( + 23 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-499
SELECT + NULLIF ( + COUNT ( DISTINCT 81 ), - CAST ( + 23 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-500
SELECT 66 DIV - 26 * - COUNT( DISTINCT + - 10 ) + COUNT( * ) + + - 84 + - COUNT( * ) - - 79
----
-3

skipif mysql # not compatible
query I rowsort label-500
SELECT 66 / - 26 * - COUNT ( DISTINCT + - 10 ) + COUNT ( * ) + + - 84 + - COUNT ( * ) - - 79
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT - 3 - + + SUM( DISTINCT - 52 )
----
49

skipif mysql # not compatible
query I rowsort label-501
SELECT - 3 - + + SUM ( DISTINCT - 52 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-502
SELECT DISTINCT - 93 DIV - 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT - 93 / - 68 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-503
SELECT ALL + CASE COUNT( * ) WHEN - COUNT( * ) / + 46 * 46 + - + 48 THEN NULL WHEN 89 THEN 95 END AS col1, 29 * + - 90
----
NULL
-2610

skipif mysql # not compatible
query II rowsort label-503
SELECT ALL + CASE COUNT ( * ) WHEN - COUNT ( * ) / + 46 * 46 + - + 48 THEN NULL WHEN 89 THEN 95 END AS col1, 29 * + - 90
----
NULL
-2610

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

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

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

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

query I rowsort
SELECT + 50 + 78 AS col0
----
128

query I rowsort
SELECT DISTINCT - 94 * + - 45 * - 66 * 84
----
-23451120

query I rowsort
SELECT + 66 * - 92 + 79
----
-5993

query I rowsort
SELECT - - ( ( - + 12 ) ) + + 45 * - - 55 - + 50
----
2413

query I rowsort
SELECT ALL - 40 * 22 AS col1
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT + + 35 + + COUNT( DISTINCT + - 77 ) - + 6 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-511
SELECT + + 35 + + COUNT ( DISTINCT + - 77 ) - + 6 AS col2
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-512
SELECT - 78 * + 52 + - 44 + NULLIF ( + 86, ( - 10 ) * + 42 ) DIV + COUNT( * )
----
-4014

skipif mysql # not compatible
query I rowsort label-512
SELECT - 78 * + 52 + - 44 + NULLIF ( + 86, ( - 10 ) * + 42 ) / + COUNT ( * )
----
-4014

query I rowsort
SELECT - + 71 + + 65
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-514
SELECT + 15 * MAX( DISTINCT + 98 ) DIV 1 + - + 5 AS col0
----
1465

skipif mysql # not compatible
query I rowsort label-514
SELECT + 15 * MAX ( DISTINCT + 98 ) / 1 + - + 5 AS col0
----
1465

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT - COUNT( * ) + + 33 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-515
SELECT - COUNT ( * ) + + 33 AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-516
SELECT - 19 * 42 * 80 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-516
SELECT - 19 * 42 * 80 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-517
SELECT + COUNT( * ), 63 - 90 AS col1
----
1
-27

skipif mysql # not compatible
query II rowsort label-517
SELECT + COUNT ( * ), 63 - 90 AS col1
----
1
-27

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

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

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

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

query I rowsort
SELECT ALL - 8 * - 61
----
488

query I rowsort
SELECT DISTINCT + 60 col2
----
60

query II rowsort
SELECT - + 33 * - 89 + 55 AS col1, + 51 AS col1
----
2992
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT ALL + 64 DIV - 36 * + - COUNT( DISTINCT - ( 29 ) ) + 7 + + NULLIF ( 55, + - 43 ) + + + 31 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + 64 / - 36 * + - COUNT ( DISTINCT - ( 29 ) ) + 7 + + NULLIF ( 55, + - 43 ) + + + 31 AS col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-524
SELECT + 8 DIV - - SUM( ALL - 33 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-524
SELECT + 8 / - - SUM ( ALL - 33 ) AS col2
----
0

query I rowsort
SELECT ALL - + ( 75 ) * + 23
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT - SUM( - ( + 22 ) ) + - 32
----
-10

skipif mysql # not compatible
query I rowsort label-526
SELECT - SUM ( - ( + 22 ) ) + - 32
----
-10

onlyif mysql # aggregate syntax: 
query III rowsort label-527
SELECT - 65 * ( COUNT( * ) ) + + 35 * - 60 AS col2, - 84 AS col2, COUNT( * )
----
-2165
-84
1

skipif mysql # not compatible
query III rowsort label-527
SELECT - 65 * ( COUNT ( * ) ) + + 35 * - 60 AS col2, - 84 AS col2, COUNT ( * )
----
-2165
-84
1

query I rowsort
SELECT ALL + 3 * - + 38 AS col0
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-529
SELECT DISTINCT CAST( NULL AS SIGNED ), - 44 * + + 13 AS col2
----
NULL
-572

skipif mysql # not compatible
query II rowsort label-529
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 44 * + + 13 AS col2
----
NULL
-572

query I rowsort
SELECT ALL 34 + + + 1 AS col0
----
35

query I rowsort
SELECT ALL - 69 * - 22
----
1518

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-532
SELECT ALL 74 AS col2, NULLIF ( + 20, - CAST( ( + - COALESCE ( + 23, + 78 + + 59 ) ) AS DECIMAL ) * - - 46 * - + 21 )
----
74
20

skipif mysql # not compatible
query II rowsort label-532
SELECT ALL 74 AS col2, NULLIF ( + 20, - CAST ( ( + - COALESCE ( + 23, + 78 + + 59 ) ) AS REAL ) * - - 46 * - + 21 )
----
74
20

onlyif mysql # DIV for integer division: 
query III rowsort label-533
SELECT + 10 + 53, - 36 DIV 96 AS col0, 26 col0
----
63
0
26

skipif mysql # not compatible
query III rowsort label-533
SELECT + 10 + 53, - 36 / 96 AS col0, 26 col0
----
63
0
26

query I rowsort
SELECT ALL ( + + 94 ) + + 39 - - 39
----
172

query II rowsort
SELECT 44 AS col1, - 50 + + 8 AS col2
----
44
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT + 80 + + 85 + + CASE + + 2 WHEN ( + 14 ) / + 17 * + 12 * ( + 71 ) * + + COALESCE ( + 82, - 80, - 84 * + ( + COUNT( * ) ) * + 25 ) THEN CASE 7 WHEN - + 92 THEN NULL ELSE + 55 END / - ( 9 ) + + MIN( DISTINCT + 44 ) END + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT + 80 + + 85 + + CASE + + 2 WHEN ( + 14 ) / + 17 * + 12 * ( + 71 ) * + + COALESCE ( + 82, - 80, - 84 * + ( + COUNT ( * ) ) * + 25 ) THEN CASE 7 WHEN - + 92 THEN NULL ELSE + 55 END / - ( 9 ) + + MIN ( DISTINCT + 44 ) END + - + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL CAST ( + - 72 AS INTEGER ) col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-538
SELECT ALL 69 DIV + 89 - - SUM( ALL - 30 ) + 23 * + COUNT( * ) * - COUNT( * ) DIV 86
----
-30

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL 69 / + 89 - - SUM ( ALL - 30 ) + 23 * + COUNT ( * ) * - COUNT ( * ) / 86
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-539
SELECT DISTINCT + 76 col1, 70 DIV - 5
----
76
-14

skipif mysql # not compatible
query II rowsort label-539
SELECT DISTINCT + 76 col1, 70 / - 5
----
76
-14

query II rowsort
SELECT DISTINCT + 21 AS col0, 6
----
21
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-541
SELECT DISTINCT CASE - - 8 WHEN - 37 THEN NULL WHEN - 39 THEN NULLIF ( 80, CAST( NULL AS SIGNED ) * - 35 + + 38 * - 63 + - - 22 + 40 * + 72 / 69 + - 48 ) * CAST( NULL AS SIGNED ) + + CAST( - CASE - 9 WHEN 96 * + + 5 THEN - + 77 * 61 WHEN + + 1 THEN + + 10 * 39 ELSE NULL END AS SIGNED ) END * - COUNT( 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT CASE - - 8 WHEN - 37 THEN NULL WHEN - 39 THEN NULLIF ( 80, CAST ( NULL AS INTEGER ) * - 35 + + 38 * - 63 + - - 22 + 40 * + 72 / 69 + - 48 ) * CAST ( NULL AS INTEGER ) + + CAST ( - CASE - 9 WHEN 96 * + + 5 THEN - + 77 * 61 WHEN + + 1 THEN + + 10 * 39 ELSE NULL END AS INTEGER ) END * - COUNT ( 19 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-542
SELECT + NULLIF ( - + ( - + COUNT ( * ) ), - + CAST ( NULL AS INTEGER ) ) AS col2
----
1

query I rowsort
SELECT + 91 * + 56 AS col1
----
5096

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT - ( 22 ) DIV + + 91 * + 63 - + 87
----
-87

skipif mysql # not compatible
query I rowsort label-544
SELECT - ( 22 ) / + + 91 * + 63 - + 87
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-545
SELECT - 62 DIV + 90, + COUNT( * ) * 36 + - - 69 AS col0
----
0
105

skipif mysql # not compatible
query II rowsort label-545
SELECT - 62 / + 90, + COUNT ( * ) * 36 + - - 69 AS col0
----
0
105

query II rowsort
SELECT DISTINCT + - 32 AS col0, 9
----
-32
9

query I rowsort
SELECT - 76 * + 72 AS col2
----
-5472

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT ALL 50 DIV - 83 * - 30
----
0

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL 50 / - 83 * - 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT + 20 * 46 + - 7 + - COUNT( + 49 ) * - - 5 AS col0
----
908

skipif mysql # not compatible
query I rowsort label-549
SELECT + 20 * 46 + - 7 + - COUNT ( + 49 ) * - - 5 AS col0
----
908

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT - ( - CASE - - COUNT( * ) WHEN + 14 * + 56 + + - COUNT( * ) THEN + COUNT( * ) * - 67 * - MAX( - + 37 ) END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-551
SELECT - ( - CASE - - COUNT ( * ) WHEN + 14 * + 56 + + - COUNT ( * ) THEN + COUNT ( * ) * - 67 * - MAX ( - + 37 ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-552
SELECT ALL - + 8 + MAX( - ( + 79 ) ) AS col2, 13 AS col2
----
-87
13

skipif mysql # not compatible
query II rowsort label-552
SELECT ALL - + 8 + MAX ( - ( + 79 ) ) AS col2, 13 AS col2
----
-87
13

query I rowsort
SELECT ALL 39 * + 57
----
2223

query II rowsort
SELECT + 18 AS col2, 29 * + 8
----
18
232

query I rowsort
SELECT 31 * + ( 40 ) + + - 67
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT 80 + ( - ( - SUM( - 16 ) ) )
----
64

skipif mysql # not compatible
query I rowsort label-556
SELECT 80 + ( - ( - SUM ( - 16 ) ) )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-557
SELECT 26 + + 74 AS col2, + CAST( NULL AS SIGNED ) / - - COUNT( * ) * 72 * - - 5 + + 86 AS col1
----
100
NULL

skipif mysql # not compatible
query II rowsort label-557
SELECT 26 + + 74 AS col2, + CAST ( NULL AS INTEGER ) / - - COUNT ( * ) * 72 * - - 5 + + 86 AS col1
----
100
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-558
SELECT ALL NULLIF ( - 11, - + CAST( NULL AS SIGNED ) ) + - + NULLIF ( - CASE 41 WHEN + 67 * + 83 + + ( - 72 ) + + - 94 THEN ( - COUNT( * ) ) - - COUNT( * ) WHEN + 35 + + + 65 THEN NULL END, 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL NULLIF ( - 11, - + CAST ( NULL AS INTEGER ) ) + - + NULLIF ( - CASE 41 WHEN + 67 * + 83 + + ( - 72 ) + + - 94 THEN ( - COUNT ( * ) ) - - COUNT ( * ) WHEN + 35 + + + 65 THEN NULL END, 71 ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-560
SELECT ALL - 16 + - MIN( - 0 ) DIV 84 + + ( - + ( - 24 ) ) col2
----
8

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL - 16 + - MIN ( - 0 ) / 84 + + ( - + ( - 24 ) ) col2
----
8

query I rowsort
SELECT ALL + 52 + + 63
----
115

query I rowsort
SELECT ALL - 83 + - - 13 + 27 * + 13
----
281

query I rowsort
SELECT ALL ( - 52 ) + 48 - - 67 AS col1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-564
SELECT 29 + + 74 * - - 73 AS col2, + MAX( - - 64 ), + + ( + + COALESCE ( - 51, + CAST( - - 43 AS SIGNED ) * - MIN( - - 22 ) ) ) AS col0
----
5431
64
-51

skipif mysql # not compatible
query III rowsort label-564
SELECT 29 + + 74 * - - 73 AS col2, + MAX ( - - 64 ), + + ( + + COALESCE ( - 51, + CAST ( - - 43 AS INTEGER ) * - MIN ( - - 22 ) ) ) AS col0
----
5431
64
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT DISTINCT + 93 * - 1 * - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT + 93 * - 1 * - COUNT ( * ) AS col2
----
93

query I rowsort
SELECT 16 * - 88 * + 25 col0
----
-35200

query I rowsort
SELECT DISTINCT - 20 * - 39 AS col2
----
780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-569
SELECT DISTINCT + CAST( - + 52 AS SIGNED ) - + 66 + CASE + + ( COALESCE ( - 10, - 35 ) ) WHEN + COUNT( * ) * - - 74 THEN NULL WHEN + 71 * + CAST( NULL AS SIGNED ) THEN + - 79 * + + ( - - 3 ) * - 48 + + COUNT( * ) + + 20 ELSE - - 75 END AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT + CAST ( - + 52 AS INTEGER ) - + 66 + CASE + + ( COALESCE ( - 10, - 35 ) ) WHEN + COUNT ( * ) * - - 74 THEN NULL WHEN + 71 * + CAST ( NULL AS INTEGER ) THEN + - 79 * + + ( - - 3 ) * - 48 + + COUNT ( * ) + + 20 ELSE - - 75 END AS col0
----
-43

query I rowsort
SELECT DISTINCT + ( + 54 ) * 64 AS col1
----
3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-571
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + COUNT( * ) col1, 17
----
NULL
17

skipif mysql # not compatible
query II rowsort label-571
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) col1, 17
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT 54 * NULLIF ( COUNT( 10 ), + 24 + + 55 * - 40 )
----
54

skipif mysql # not compatible
query I rowsort label-572
SELECT 54 * NULLIF ( COUNT ( 10 ), + 24 + + 55 * - 40 )
----
54

query I rowsort
SELECT 3 * + 65 + - + 11 AS col0
----
184

query I rowsort
SELECT + 70 * 80 - - 97
----
5697

query I rowsort
SELECT + 4 + + 3 col2
----
7

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

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

query I rowsort
SELECT + 60 * + - 60 + 83 AS col0
----
-3517

query I rowsort
SELECT ALL 84 + - 53 + + 7 * - 65 AS col2
----
-424

onlyif mysql # DIV for integer division: 
query II rowsort label-579
SELECT 15 + + - 88 AS col1, 19 DIV + - 76
----
-73
0

skipif mysql # not compatible
query II rowsort label-579
SELECT 15 + + - 88 AS col1, 19 / + - 76
----
-73
0

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT + COUNT( * ) * - ( + - COUNT( * ) ) + NULLIF ( + - 75, CASE - 59 WHEN - - 87 + - 57 THEN + 73 ELSE ( 71 ) END )
----
-74

skipif mysql # not compatible
query I rowsort label-580
SELECT + COUNT ( * ) * - ( + - COUNT ( * ) ) + NULLIF ( + - 75, CASE - 59 WHEN - - 87 + - 57 THEN + 73 ELSE ( 71 ) END )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT 95 * - CASE + SUM( - 77 ) WHEN - 77 THEN NULL ELSE - + 91 END + - 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-581
SELECT 95 * - CASE + SUM ( - 77 ) WHEN - 77 THEN NULL ELSE - + 91 END + - 86 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-582
SELECT ALL - SUM( DISTINCT - - 45 ) AS col2, - 74 + + CAST( NULL AS SIGNED ) AS col1
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-582
SELECT ALL - SUM ( DISTINCT - - 45 ) AS col2, - 74 + + CAST ( NULL AS INTEGER ) AS col1
----
-45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT DISTINCT - - NULLIF ( + ( - 59 ), 58 * 45 + + - 84 / - COUNT( * ) + - + 23 )
----
-59

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT - - NULLIF ( + ( - 59 ), 58 * 45 + + - 84 / - COUNT ( * ) + - + 23 )
----
-59

query I rowsort
SELECT DISTINCT - - 96 AS col1
----
96

query I rowsort
SELECT DISTINCT + 53 + 83 - + ( + ( - 41 ) )
----
177

query II rowsort
SELECT 2 AS col2, - 1 + - - 72 AS col2
----
2
71

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT 15 * + 43 + + SUM( DISTINCT 1 ) + + 15 AS col2
----
661

skipif mysql # not compatible
query I rowsort label-587
SELECT 15 * + 43 + + SUM ( DISTINCT 1 ) + + 15 AS col2
----
661

query I rowsort
SELECT ALL 99 + ( 34 ) col1
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-589
SELECT DISTINCT CASE - 39 WHEN - + CAST( NULL AS SIGNED ) THEN - + 20 * + - 15 * + 76 + - - MAX( - 75 ) ELSE NULL END * CASE WHEN NOT + ( + 95 ) IN ( 77 / + 71 + 14, - CASE - 65 WHEN SUM( - 17 ) THEN + 33 END * CAST( NULLIF ( - - 82, - SUM( ALL + 59 ) ) AS SIGNED ) - + 64 + - - 98 / - 14 * 54 + MAX( - 50 ) ) THEN + 34 + 85 / + 36 WHEN 93 * + 41 <= NULL THEN + 65 * - ( - ( + COUNT( * ) ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT CASE - 39 WHEN - + CAST ( NULL AS INTEGER ) THEN - + 20 * + - 15 * + 76 + - - MAX ( - 75 ) ELSE NULL END * CASE WHEN NOT + ( + 95 ) IN ( 77 / + 71 + 14, - CASE - 65 WHEN SUM ( - 17 ) THEN + 33 END * CAST ( NULLIF ( - - 82, - SUM ( ALL + 59 ) ) AS INTEGER ) - + 64 + - - 98 / - 14 * 54 + MAX ( - 50 ) ) THEN + 34 + 85 / + 36 WHEN 93 * + 41 <= NULL THEN + 65 * - ( - ( + COUNT ( * ) ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-590
SELECT ( - + COUNT( * ) ) * - - CASE COUNT( * ) WHEN - NULLIF ( - - 55, ( + + CASE - 6 WHEN - 5 THEN + AVG ( + + 1 ) WHEN + CAST( NULL AS SIGNED ) / - 95 + + - 7 + - 4 + 45 THEN 88 * + 94 END ) ) * + 26 THEN NULL WHEN - - 50 + 40 THEN - 65 / + - 30 END / - - 44 * - - 41 * + 79 - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT ( - + COUNT ( * ) ) * - - CASE COUNT ( * ) WHEN - NULLIF ( - - 55, ( + + CASE - 6 WHEN - 5 THEN + AVG ( + + 1 ) WHEN + CAST ( NULL AS INTEGER ) / - 95 + + - 7 + - 4 + 45 THEN 88 * + 94 END ) ) * + 26 THEN NULL WHEN - - 50 + 40 THEN - 65 / + - 30 END / - - 44 * - - 41 * + 79 - - COUNT ( * )
----
NULL

query II rowsort
SELECT 18 AS col1, + ( + - 68 ) * 34
----
18
-2312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-592
SELECT ALL + CAST( NULL AS SIGNED ) * + - CASE + 86 WHEN 45 * + 91 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-592
SELECT ALL + CAST ( NULL AS INTEGER ) * + - CASE + 86 WHEN 45 * + 91 THEN + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-593
SELECT ( CASE 94 WHEN + 15 / + MIN( ALL + 75 ) / - - COUNT( * ) + + 80 THEN NULL WHEN 0 * + + COUNT( * ) / + - 24 + + CAST( NULL AS DECIMAL ) THEN 5 / 19 / 79 END ) + - 82 + - 17 * + COALESCE ( + NULLIF ( 55, + - 75 + - 12 + 40 ), - 84 + ( + + 74 ) * - 66 + 38 * - 14, + 44 * - 29, + 98 * 49 ) * + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT ( CASE 94 WHEN + 15 / + MIN ( ALL + 75 ) / - - COUNT ( * ) + + 80 THEN NULL WHEN 0 * + + COUNT ( * ) / + - 24 + + CAST ( NULL AS REAL ) THEN 5 / 19 / 79 END ) + - 82 + - 17 * + COALESCE ( + NULLIF ( 55, + - 75 + - 12 + 40 ), - 84 + ( + + 74 ) * - 66 + 38 * - 14, + 44 * - 29, + 98 * 49 ) * + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-594
SELECT 26, COUNT( * ) DIV - NULLIF ( - 67, COUNT( * ) - + 30 ) + + 93 AS col0
----
26
93

skipif mysql # not compatible
query II rowsort label-594
SELECT 26, COUNT ( * ) / - NULLIF ( - 67, COUNT ( * ) - + 30 ) + + 93 AS col0
----
26
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-595
SELECT 99 AS col1, + CAST( + - 6 AS SIGNED )
----
99
-6

skipif mysql # not compatible
query II rowsort label-595
SELECT 99 AS col1, + CAST ( + - 6 AS INTEGER )
----
99
-6

query I rowsort
SELECT 35 * - + 67
----
-2345

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

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

query II rowsort
SELECT ALL 34 AS col2, - 40
----
34
-40

query I rowsort
SELECT 51 + + 25
----
76

query I rowsort
SELECT 60 + + 10
----
70

query II rowsort
SELECT - 45 AS col0, NULLIF ( - - 6, - - 8 )
----
-45
6

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT 44 DIV - 50 * + NULLIF ( - - 63, + 8 ) * + 94 * - - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-602
SELECT 44 / - 50 * + NULLIF ( - - 63, + 8 ) * + 94 * - - 88 AS col1
----
0

query I rowsort
SELECT 79 * + - 84 AS col1
----
-6636

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT 50 * - CASE + CASE + + 48 WHEN - 54 THEN + + 83 WHEN - 99 THEN NULL END WHEN - COUNT( * ) THEN + + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT 50 * - CASE + CASE + + 48 WHEN - 54 THEN + + 83 WHEN - 99 THEN NULL END WHEN - COUNT ( * ) THEN + + 33 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT MIN( - 71 ) * + - 87
----
6177

skipif mysql # not compatible
query I rowsort label-605
SELECT MIN ( - 71 ) * + - 87
----
6177

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT ALL + 72 * - SUM( ALL 19 ) AS col1
----
-1368

skipif mysql # not compatible
query I rowsort label-606
SELECT ALL + 72 * - SUM ( ALL 19 ) AS col1
----
-1368

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-607
SELECT ALL 62 AS col0, CAST( NULL AS SIGNED ) * 51
----
62
NULL

skipif mysql # not compatible
query II rowsort label-607
SELECT ALL 62 AS col0, CAST ( NULL AS INTEGER ) * 51
----
62
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT + 2 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-608
SELECT + 2 / - 80
----
0

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

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

query I rowsort
SELECT 61 * ( - 95 ) AS col0
----
-5795

query I rowsort
SELECT ALL 16 * - 92 + 74 + + 99 * NULLIF ( + 35, 98 - 54 ) + + 85
----
2152

query I rowsort
SELECT ALL + - 99 * - - 29
----
-2871

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

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

query I rowsort
SELECT + NULLIF ( - 4, - - 80 )
----
-4

query II rowsort
SELECT + 47, - 66 + + - 94 AS col2
----
47
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT + + CASE + - 71 WHEN - COUNT( * ) THEN 93 / 51 + + 76 ELSE NULL END * + 33 * + - 10 * + COALESCE ( - 48, - - COUNT( + 61 ) ) * + 90 * + 64 + - + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-616
SELECT + + CASE + - 71 WHEN - COUNT ( * ) THEN 93 / 51 + + 76 ELSE NULL END * + 33 * + - 10 * + COALESCE ( - 48, - - COUNT ( + 61 ) ) * + 90 * + 64 + - + 25 AS col2
----
NULL

query II rowsort
SELECT + 97 col1, - 24 AS col1
----
97
-24

query I rowsort
SELECT ALL - 73 * + COALESCE ( - 31, 65 ) + + 20 * 97
----
4203

query I rowsort
SELECT DISTINCT - 37 * - 95 + + 52 + COALESCE ( + 34, + 38 )
----
3601

query I rowsort
SELECT ALL + + 17 * 47 + + 95 + + 92 * + ( - 22 )
----
-1130

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT DISTINCT - COALESCE ( 26, + + 31 ) * + 97 * + - COUNT( * ) + - 69 * - - 85 AS col0
----
-3343

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT - COALESCE ( 26, + + 31 ) * + 97 * + - COUNT ( * ) + - 69 * - - 85 AS col0
----
-3343

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT ALL - - COUNT( * ) * + SUM( 60 ) + + 82 + - - 31 * - 49 + + 69
----
-1308

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL - - COUNT ( * ) * + SUM ( 60 ) + + 82 + - - 31 * - 49 + + 69
----
-1308

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-624
SELECT ALL - 24 * MIN( + + 33 ) / - + 1 * - + ( + CAST( NULL AS SIGNED ) ) + + 19 + + + COUNT( * ) * + + 71 + + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT ALL - 24 * MIN ( + + 33 ) / - + 1 * - + ( + CAST ( NULL AS INTEGER ) ) + + 19 + + + COUNT ( * ) * + + 71 + + - 87
----
NULL

query II rowsort
SELECT DISTINCT + - 28 AS col0, - 74
----
-28
-74

query I rowsort
SELECT + NULLIF ( + ( 28 ), + 51 ) AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-627
SELECT 47 * - CAST( + - COUNT( - - ( - 6 ) ) AS SIGNED ) * - - CASE 17 WHEN + COUNT( * ) + + COUNT( * ) + 6 * + NULLIF ( CASE 88 WHEN + 84 THEN - - 10 * 9 * MIN( + 6 ) + - - 23 * - + 26 * CAST( NULL AS SIGNED ) ELSE + 43 END, + 14 ) THEN NULL ELSE - - 9 END + 32 + - 67 + + ( 93 ) * COUNT( * ) * 56
----
5596

skipif mysql # not compatible
query I rowsort label-627
SELECT 47 * - CAST ( + - COUNT ( - - ( - 6 ) ) AS INTEGER ) * - - CASE 17 WHEN + COUNT ( * ) + + COUNT ( * ) + 6 * + NULLIF ( CASE 88 WHEN + 84 THEN - - 10 * 9 * MIN ( + 6 ) + - - 23 * - + 26 * CAST ( NULL AS INTEGER ) ELSE + 43 END, + 14 ) THEN NULL ELSE - - 9 END + 32 + - 67 + + ( 93 ) * COUNT ( * ) * 56
----
5596

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-629
SELECT DISTINCT CASE - + 56 WHEN - + 22 THEN NULL ELSE + 3 * - 1 + - - CAST( NULL AS SIGNED ) END * + 92 * + - ( + 4 ) AS col2, - 80 + - 48 + 13 + + 51 * 28 * + 15 * 48 * - 95 AS col1
----
NULL
-97675315

skipif mysql # not compatible
query II rowsort label-629
SELECT DISTINCT CASE - + 56 WHEN - + 22 THEN NULL ELSE + 3 * - 1 + - - CAST ( NULL AS INTEGER ) END * + 92 * + - ( + 4 ) AS col2, - 80 + - 48 + 13 + + 51 * 28 * + 15 * 48 * - 95 AS col1
----
NULL
-97675315

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT + 51 * 40 * - COUNT( * ) AS col0
----
-2040

skipif mysql # not compatible
query I rowsort label-630
SELECT + 51 * 40 * - COUNT ( * ) AS col0
----
-2040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-631
SELECT DISTINCT 74 DIV + 15 col2, + COUNT( * ) + - 27
----
4
-26

skipif mysql # not compatible
query II rowsort label-631
SELECT DISTINCT 74 / + 15 col2, + COUNT ( * ) + - 27
----
4
-26

query I rowsort
SELECT + 4 + + 14 + 70 AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-633
SELECT + CASE + + 25 WHEN + 61 THEN NULL WHEN - MAX( - + 15 ) / - - 52 - COUNT( * ) THEN + + 87 END + + COALESCE ( + COALESCE ( + + 82, + 43 ), + - 90 * - 88 / 27 * + - CAST( - - 64 AS DECIMAL ) - + NULLIF ( + - COUNT( * ), + ( - + COUNT( * ) ) ) + - 83 + + - 76 + + + ( - 11 ) * + - 74 * 63 * + 67, + COUNT( * ) + + 19, MAX( ALL 66 ) ) + 94 * MIN( - 21 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-633
SELECT + CASE + + 25 WHEN + 61 THEN NULL WHEN - MAX ( - + 15 ) / - - 52 - COUNT ( * ) THEN + + 87 END + + COALESCE ( + COALESCE ( + + 82, + 43 ), + - 90 * - 88 / 27 * + - CAST ( - - 64 AS REAL ) - + NULLIF ( + - COUNT ( * ), + ( - + COUNT ( * ) ) ) + - 83 + + - 76 + + + ( - 11 ) * + - 74 * 63 * + 67, + COUNT ( * ) + + 19, MAX ( ALL 66 ) ) + 94 * MIN ( - 21 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT + MIN( ALL 53 ) * 52 AS col0
----
2756

skipif mysql # not compatible
query I rowsort label-634
SELECT + MIN ( ALL 53 ) * 52 AS col0
----
2756

query I rowsort
SELECT - ( + 47 ) * + 55 * 89
----
-230065

query I rowsort
SELECT ALL 3 * + 57 * + 47 AS col1
----
8037

query I rowsort
SELECT - NULLIF ( + 82, 77 )
----
-82

query I rowsort
SELECT DISTINCT 38 * + 32 AS col0
----
1216

query I rowsort
SELECT + 44 + - 61
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT DISTINCT - COUNT( * ) + - NULLIF ( - 79, - 13 )
----
78

skipif mysql # not compatible
query I rowsort label-640
SELECT DISTINCT - COUNT ( * ) + - NULLIF ( - 79, - 13 )
----
78

query I rowsort
SELECT DISTINCT 2 + - 86 + - - 45 AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT - - 35 - + - 5 DIV - + ( + - 23 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-642
SELECT - - 35 - + - 5 / - + ( + - 23 ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT - 30 + + + COALESCE ( + COUNT( * ), - ( 83 ) ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT - 30 + + + COALESCE ( + COUNT ( * ), - ( 83 ) ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT + + COUNT( 76 ) + + 34 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-644
SELECT + + COUNT ( 76 ) + + 34 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT + + ( 30 ) + NULLIF ( - 85, - 93 ) + - 93 * + 26 * COUNT( * )
----
-2473

skipif mysql # not compatible
query I rowsort label-645
SELECT + + ( 30 ) + NULLIF ( - 85, - 93 ) + - 93 * + 26 * COUNT ( * )
----
-2473

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ALL - 80 + + 80 + - 30 + - 1 * + MIN( 68 )
----
-98

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - 80 + + 80 + - 30 + - 1 * + MIN ( 68 )
----
-98

query I rowsort
SELECT + 75 + - - 72 * - 69 * + 61 AS col1
----
-302973

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

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

query I rowsort
SELECT + + CASE 52 WHEN - 64 THEN NULLIF ( + 93, 60 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT + + 61 DIV + 39 + + 88
----
89

skipif mysql # not compatible
query I rowsort label-650
SELECT + + 61 / + 39 + + 88
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-651
SELECT ALL + 97 DIV - ( - 41 ) + 51 + - - 72 + + + COUNT( * )
----
126

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL + 97 / - ( - 41 ) + 51 + - - 72 + + + COUNT ( * )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT - + 9 * + - 16 * + 72 * - + COUNT( * )
----
-10368

skipif mysql # not compatible
query I rowsort label-652
SELECT - + 9 * + - 16 * + 72 * - + COUNT ( * )
----
-10368

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT - - 47 * + - SUM( 84 ) + - - 66 AS col2
----
-3882

skipif mysql # not compatible
query I rowsort label-653
SELECT - - 47 * + - SUM ( 84 ) + - - 66 AS col2
----
-3882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-654
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 44 - + - 71 + - + COUNT( * ) * 50 * - - CASE - + 13 WHEN + + 69 * + + 91 + - 27 THEN 33 - - - 78 * 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 44 - + - 71 + - + COUNT ( * ) * 50 * - - CASE - + 13 WHEN + + 69 * + + 91 + - 27 THEN 33 - - - 78 * 29 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-655
SELECT + 1 * - - 2 DIV COUNT( + 12 ) + - ( - 8 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-655
SELECT + 1 * - - 2 / COUNT ( + 12 ) + - ( - 8 ) AS col2
----
10

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

skipif mysql # not compatible
query I rowsort label-656
SELECT 84 / COUNT ( * ) + + 82 / + 11 AS col0
----
91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT ( - NULLIF ( 47, + + CAST( + CASE + + 26 WHEN + + 91 + 16 + 46 * + + 4 THEN NULL ELSE - + 95 END AS SIGNED ) ) )
----
-47

skipif mysql # not compatible
query I rowsort label-658
SELECT ( - NULLIF ( 47, + + CAST ( + CASE + + 26 WHEN + + 91 + 16 + 46 * + + 4 THEN NULL ELSE - + 95 END AS INTEGER ) ) )
----
-47

query I rowsort
SELECT DISTINCT - 50 * + - ( ( + 89 ) ) - 60
----
4390

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT DISTINCT + CASE - - 45 WHEN + + 73 THEN NULL ELSE + 79 / - 64 + - CASE + 18 WHEN + COUNT( * ) + - 43 THEN NULL ELSE - - CASE 13 WHEN - ( - ( + - MAX( - + 87 ) ) ) + + - 83 + - 76 THEN - AVG ( ALL - + 75 ) WHEN + - 53 THEN + ( + 35 ) * COUNT( * ) - - - 60 + 1 + + 34 END END + + - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT + CASE - - 45 WHEN + + 73 THEN NULL ELSE + 79 / - 64 + - CASE + 18 WHEN + COUNT ( * ) + - 43 THEN NULL ELSE - - CASE 13 WHEN - ( - ( + - MAX ( - + 87 ) ) ) + + - 83 + - 76 THEN - AVG ( ALL - + 75 ) WHEN + - 53 THEN + ( + 35 ) * COUNT ( * ) - - - 60 + 1 + + 34 END END + + - 19 END
----
NULL

query II rowsort
SELECT DISTINCT + 61 AS col2, 72 * - - 90 * + - 12 AS col0
----
61
-77760

query II rowsort
SELECT ALL + CASE + 6 WHEN - 2 THEN + 42 / - - 52 - - + 35 END col2, 3 AS col2
----
NULL
3

query I rowsort
SELECT COALESCE ( - 94, + - 44, 33 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT NULLIF ( - 85, - COUNT( * ) + + ( 45 ) * - MIN( + CASE 53 WHEN - 27 THEN - 82 END ) / + MAX( ALL 23 ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-664
SELECT NULLIF ( - 85, - COUNT ( * ) + + ( 45 ) * - MIN ( + CASE 53 WHEN - 27 THEN - 82 END ) / + MAX ( ALL 23 ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT + CASE - COUNT( * ) WHEN COUNT( * ) THEN - COUNT( * ) * MIN( 33 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-665
SELECT + CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - COUNT ( * ) * MIN ( 33 ) END
----
NULL

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

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

query I rowsort
SELECT - ( + - NULLIF ( - 63, - 38 + + 18 ) )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT - 92 DIV - 70
----
1

skipif mysql # not compatible
query I rowsort label-668
SELECT - 92 / - 70
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-669
SELECT + 98 * - - NULLIF ( - CAST( NULL AS SIGNED ), + + 56 ) / - 75 * - + MAX( - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT + 98 * - - NULLIF ( - CAST ( NULL AS INTEGER ), + + 56 ) / - 75 * - + MAX ( - 75 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-670
SELECT + CAST( - COALESCE ( - 19, + - 58 ) AS SIGNED ) * + - 23
----
-437

skipif mysql # not compatible
query I rowsort label-670
SELECT + CAST ( - COALESCE ( - 19, + - 58 ) AS INTEGER ) * + - 23
----
-437

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT ALL + 46 * 66 + - + SUM( + - 36 )
----
3072

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL + 46 * 66 + - + SUM ( + - 36 )
----
3072

query I rowsort
SELECT ALL + 90 + - 5 + + 48
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT ALL 20 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL 20 / - 55
----
0

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

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

query I rowsort
SELECT DISTINCT 72 + + + 9 + 44 * - 43
----
-1811

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT ALL 76 + + + 53 + + MAX( 7 )
----
136

skipif mysql # not compatible
query I rowsort label-676
SELECT ALL 76 + + + 53 + + MAX ( 7 )
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT + CASE - 32 WHEN 59 THEN NULL WHEN - - 92 - + 70 + - COUNT( * ) / + + 59 * 48 THEN + + 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-677
SELECT + CASE - 32 WHEN 59 THEN NULL WHEN - - 92 - + 70 + - COUNT ( * ) / + + 59 * 48 THEN + + 6 ELSE NULL END
----
NULL

query I rowsort
SELECT - + 24 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-679
SELECT 98 + CAST( NULL AS SIGNED ) + + COUNT( * ) * 99 * + + MAX( ALL - 13 ) * 83 * 52 * - 82 + - - CAST( - 17 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT 98 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 99 * + + MAX ( ALL - 13 ) * 83 * 52 * - 82 + - - CAST ( - 17 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 18 * 17 + + 63 * 43 + + 54 - 13 AS col2
----
3056

onlyif mysql # aggregate syntax: 
query II rowsort label-681
SELECT ALL 81 AS col2, 29 + + COUNT( * ) * COUNT( * )
----
81
30

skipif mysql # not compatible
query II rowsort label-681
SELECT ALL 81 AS col2, 29 + + COUNT ( * ) * COUNT ( * )
----
81
30

query I rowsort
SELECT ALL - 49 + - 27 - NULLIF ( - + CASE + 49 WHEN 85 THEN 66 WHEN + - 20 THEN NULL ELSE NULL END, + 23 )
----
NULL

query I rowsort
SELECT ALL - - 57 - - 23 * + - 59 AS col1
----
-1300

query I rowsort
SELECT DISTINCT 79 * - 1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-685
SELECT ALL - + CASE + 56 WHEN + 33 * + COALESCE ( + MIN( 36 ), + 79 * + 82 * + - ( ( + 42 ) ) ) + + CASE - 72 WHEN 6 THEN NULL WHEN + + 78 + 65 THEN + 34 / + ( - - CAST( NULL AS SIGNED ) ) + - ( - 51 ) END * - 19 + - COALESCE ( + ( + 27 ), + ( 15 ) ) THEN - 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL - + CASE + 56 WHEN + 33 * + COALESCE ( + MIN ( 36 ), + 79 * + 82 * + - ( ( + 42 ) ) ) + + CASE - 72 WHEN 6 THEN NULL WHEN + + 78 + 65 THEN + 34 / + ( - - CAST ( NULL AS INTEGER ) ) + - ( - 51 ) END * - 19 + - COALESCE ( + ( + 27 ), + ( 15 ) ) THEN - 91 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL 6 - - ( ( - NULLIF ( 39, + 10 * + COUNT( * ) * 41 + + + 39 ) ) ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL 6 - - ( ( - NULLIF ( 39, + 10 * + COUNT ( * ) * 41 + + + 39 ) ) ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT 57 * - + 2 + + + CASE 68 WHEN + 36 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT 57 * - + 2 + + + CASE 68 WHEN + 36 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-689
SELECT - 89 - - CAST( NULL AS SIGNED ) + 94 * 83 - - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-689
SELECT - 89 - - CAST ( NULL AS INTEGER ) + 94 * 83 - - + 18
----
NULL

query I rowsort
SELECT ALL + 42 * + 45
----
1890

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-691
SELECT DISTINCT SUM( + ( + 25 ) ) DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT SUM ( + ( + 25 ) ) / - 67
----
0

query I rowsort
SELECT 38 * 63
----
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL - ( SUM( 81 ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - ( SUM ( 81 ) ) AS col2
----
-81

query I rowsort
SELECT 54 - + - 8
----
62

query I rowsort
SELECT - ( - 67 ) * - 74 + - 31 AS col0
----
-4989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-696
SELECT 42 col1, SUM( DISTINCT + NULLIF ( CAST( NULL AS SIGNED ), - ( + - 58 ) ) )
----
42
NULL

skipif mysql # not compatible
query II rowsort label-696
SELECT 42 col1, SUM ( DISTINCT + NULLIF ( CAST ( NULL AS INTEGER ), - ( + - 58 ) ) )
----
42
NULL

query I rowsort
SELECT 73 * + - 17 AS col1
----
-1241

query I rowsort
SELECT ALL - 58 + - + 73
----
-131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-699
SELECT 44 + CASE 50 WHEN + 62 THEN CASE 18 WHEN + 37 + + + 80 THEN NULL ELSE + - 22 DIV + - COUNT( * ) END WHEN - 82 THEN NULL ELSE + 85 END col1
----
129

skipif mysql # not compatible
query I rowsort label-699
SELECT 44 + CASE 50 WHEN + 62 THEN CASE 18 WHEN + 37 + + + 80 THEN NULL ELSE + - 22 / + - COUNT ( * ) END WHEN - 82 THEN NULL ELSE + 85 END col1
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-700
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, + 38 + 7
----
NULL
45

skipif mysql # not compatible
query II rowsort label-700
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + 38 + 7
----
NULL
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-701
SELECT 28 AS col1, 44 * + 42 * - - CAST( NULL AS SIGNED ) + 85
----
28
NULL

skipif mysql # not compatible
query II rowsort label-701
SELECT 28 AS col1, 44 * + 42 * - - CAST ( NULL AS INTEGER ) + 85
----
28
NULL

query I rowsort
SELECT ALL + ( + + 32 ) + - 81 AS col0
----
-49

query I rowsort
SELECT ALL - 58 + - 87
----
-145

query I rowsort
SELECT ALL 50 + - 40 - - + 90 + 60
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT ALL COALESCE ( - 35, + 59 ) + MIN( DISTINCT 3 ) + - 69
----
-101

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL COALESCE ( - 35, + 59 ) + MIN ( DISTINCT 3 ) + - 69
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-706
SELECT - 99 AS col2, + COUNT( * ) * 55 col0
----
-99
55

skipif mysql # not compatible
query II rowsort label-706
SELECT - 99 AS col2, + COUNT ( * ) * 55 col0
----
-99
55

query I rowsort
SELECT DISTINCT + 31 + - 36 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT COUNT( DISTINCT + 91 ) + SUM( - 14 ) - + 92 AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-708
SELECT COUNT ( DISTINCT + 91 ) + SUM ( - 14 ) - + 92 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT ALL + 14 + - 11 * - - 34 * + + COUNT( * )
----
-360

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + 14 + - 11 * - - 34 * + + COUNT ( * )
----
-360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-710
SELECT - ( 37 ) * + SUM( + CAST( 4 AS SIGNED ) ) AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-710
SELECT - ( 37 ) * + SUM ( + CAST ( 4 AS INTEGER ) ) AS col0
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT ALL - - COUNT( * ) * + + 20 * + 47 - - ( + COUNT( * ) ) col2
----
941

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL - - COUNT ( * ) * + + 20 * + 47 - - ( + COUNT ( * ) ) col2
----
941

query I rowsort
SELECT ALL + - 51 - + + 51 AS col1
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-713
SELECT DISTINCT - 43, 77 - + CAST( - + AVG ( DISTINCT + 8 ) AS SIGNED ) col0
----
-43
85

skipif mysql # not compatible
query II rowsort label-713
SELECT DISTINCT - 43, 77 - + CAST ( - + AVG ( DISTINCT + 8 ) AS INTEGER ) col0
----
-43
85

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT ALL 24 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL 24 / - 96 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT 46 - - 92 DIV - 5 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-715
SELECT 46 - - 92 / - 5 AS col0
----
28

query I rowsort
SELECT - COALESCE ( 27, + 46 )
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-717
SELECT ALL 44 AS col0, - 98 DIV - 91 AS col0
----
44
1

skipif mysql # not compatible
query II rowsort label-717
SELECT ALL 44 AS col0, - 98 / - 91 AS col0
----
44
1

query I rowsort
SELECT + 73 + + 33 + + + 5 AS col2
----
111

query I rowsort
SELECT 15 * + 27 * 36
----
14580

query I rowsort
SELECT DISTINCT - 46 * 35 AS col1
----
-1610

query I rowsort
SELECT ALL + 12 * + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT 64 + - + COUNT( * ) + 76 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-722
SELECT 64 + - + COUNT ( * ) + 76 AS col1
----
139

query I rowsort
SELECT ALL - 1 * 81 col0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-724
SELECT DISTINCT - 23 AS col0, - CAST( - COUNT( * ) AS SIGNED )
----
-23
1

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

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

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

query I rowsort
SELECT + 20 * 81 + + 83
----
1703

query II rowsort
SELECT 63 + - 67 AS col1, - 20
----
-4
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-728
SELECT MAX( + CASE + - 78 WHEN - 25 + - CAST( + 15 AS SIGNED ) THEN NULL WHEN - - 28 THEN + 14 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT MAX ( + CASE + - 78 WHEN - 25 + - CAST ( + 15 AS INTEGER ) THEN NULL WHEN - - 28 THEN + 14 END )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-729
SELECT ALL + 17 DIV + + COALESCE ( 73, + 56 DIV + 95 + 55 + - + 99 DIV + + 72 + + 77, - 68 ), - 67 + 75 AS col0
----
0
8

skipif mysql # not compatible
query II rowsort label-729
SELECT ALL + 17 / + + COALESCE ( 73, + 56 / + 95 + 55 + - + 99 / + + 72 + + 77, - 68 ), - 67 + 75 AS col0
----
0
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-730
SELECT + COALESCE ( ( + + 56 ), - + COUNT( * ) DIV - COUNT( * ) * + 86 - - - ( - 65 ), - + CASE + 0 WHEN + - 23 * - 12 THEN + 82 + + - 15 WHEN 83 THEN NULL WHEN + 37 THEN - + 34 - + + MIN( - CAST( - 70 AS SIGNED ) ) ELSE 46 END ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-730
SELECT + COALESCE ( ( + + 56 ), - + COUNT ( * ) / - COUNT ( * ) * + 86 - - - ( - 65 ), - + CASE + 0 WHEN + - 23 * - 12 THEN + 82 + + - 15 WHEN 83 THEN NULL WHEN + 37 THEN - + 34 - + + MIN ( - CAST ( - 70 AS INTEGER ) ) ELSE 46 END ) AS col0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-731
SELECT ALL COUNT( ALL - - 91 ) + - 78 + - 30 DIV - 85 + COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL COUNT ( ALL - - 91 ) + - 78 + - 30 / - 85 + COUNT ( * ) AS col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT 63 DIV + 82 * + 42 * + 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-732
SELECT 63 / + 82 * + 42 * + 64 AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-734
SELECT ALL - 27 + + + ( 31 ) + + ( 83 ) + + - 84 DIV COALESCE ( + + 71, - - 21 + + + 4, - 57 + - - MIN( DISTINCT - - 61 ) * + 23 * CAST( NULL AS SIGNED ), 40 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL - 27 + + + ( 31 ) + + ( 83 ) + + - 84 / COALESCE ( + + 71, - - 21 + + + 4, - 57 + - - MIN ( DISTINCT - - 61 ) * + 23 * CAST ( NULL AS INTEGER ), 40 ) col2
----
86

query I rowsort
SELECT DISTINCT - 45 + + 60 * + + 71 * 79
----
336495

query I rowsort
SELECT DISTINCT - 82 + - 66 AS col2
----
-148

onlyif mysql # aggregate syntax: 
query II rowsort label-737
SELECT ALL + 27 + - + COUNT( * ) - - 27 AS col1, - COUNT( * ) * + + 98 * - + COUNT( * ) AS col2
----
53
98

skipif mysql # not compatible
query II rowsort label-737
SELECT ALL + 27 + - + COUNT ( * ) - - 27 AS col1, - COUNT ( * ) * + + 98 * - + COUNT ( * ) AS col2
----
53
98

query I rowsort
SELECT - 55 - + ( + + 40 )
----
-95

query I rowsort
SELECT - NULLIF ( - 70, + + 96 )
----
70

query I rowsort
SELECT ALL + 68 - + 43 + 30 AS col2
----
55

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT + + 71 + - 74 DIV ( + 8 )
----
62

skipif mysql # not compatible
query I rowsort label-743
SELECT + + 71 + - 74 / ( + 8 )
----
62

query I rowsort
SELECT + + 80 + - 16 AS col0
----
64

query II rowsort
SELECT ALL + 47 * 57 AS col0, - 94 * + 94 col1
----
2679
-8836

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT - + 36 * + 72 + COUNT( ALL + 21 ) AS col0
----
-2591

skipif mysql # not compatible
query I rowsort label-746
SELECT - + 36 * + 72 + COUNT ( ALL + 21 ) AS col0
----
-2591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-747
SELECT DISTINCT - CAST( 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-747
SELECT DISTINCT - CAST ( 64 AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-748
SELECT ALL + 56 + - + COUNT( * ), - 98 - - 62 AS col0
----
55
-36

skipif mysql # not compatible
query II rowsort label-748
SELECT ALL + 56 + - + COUNT ( * ), - 98 - - 62 AS col0
----
55
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-749
SELECT DISTINCT + MIN( + 12 ) DIV - 60 col0
----
0

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT + MIN ( + 12 ) / - 60 col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-750
SELECT ALL 11 DIV 2 DIV 44 AS col2, 45 * - 24 * 78 AS col1
----
0
-84240

skipif mysql # not compatible
query II rowsort label-750
SELECT ALL 11 / 2 / 44 AS col2, 45 * - 24 * 78 AS col1
----
0
-84240

query I rowsort
SELECT - 75 * 27 * - 9 AS col1
----
18225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-752
SELECT + COUNT( ALL + + 19 ) * ( 30 ) * + ( + - CAST( MAX( ALL + 6 ) AS SIGNED ) ) AS col2, - NULLIF ( CAST( NULL AS SIGNED ), + COUNT( * ) ) * + 90 / + - CAST( NULL AS SIGNED )
----
-180
NULL

skipif mysql # not compatible
query II rowsort label-752
SELECT + COUNT ( ALL + + 19 ) * ( 30 ) * + ( + - CAST ( MAX ( ALL + 6 ) AS INTEGER ) ) AS col2, - NULLIF ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * + 90 / + - CAST ( NULL AS INTEGER )
----
-180
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT + MAX( ALL - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-753
SELECT + MAX ( ALL - 37 ) AS col2
----
-37

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

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

query I rowsort
SELECT DISTINCT 3 * + + 69 * + - 3 * 27 * 63 + 95 col1
----
-1056226

query I rowsort
SELECT + 69 - - 13 * - 34
----
-373

query I rowsort
SELECT ALL 78 * - + 79 * + 83 + + 67 * + + 11 + - 88 AS col1
----
-510797

query I rowsort
SELECT ALL + 81 * 73 + + 51 * - 50 AS col2
----
3363

query I rowsort
SELECT ALL 22 * 33 + - - 40
----
766

query I rowsort
SELECT + COALESCE ( 37, + + 67 + + + 76 ) AS col0
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-761
SELECT + ( COUNT( * ) ) * - + 88 + 22 + 77 + 31 DIV 52
----
11

skipif mysql # not compatible
query I rowsort label-761
SELECT + ( COUNT ( * ) ) * - + 88 + 22 + 77 + 31 / 52
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-762
SELECT ALL + CASE - 4 WHEN - - CAST( + 9 AS DECIMAL ) THEN + 20 * - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL + CASE - 4 WHEN - - CAST ( + 9 AS REAL ) THEN + 20 * - 84 END
----
NULL

query I rowsort
SELECT + COALESCE ( + - 36, + + 27 * - + ( + 69 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + ( + ( - - COUNT( ALL - - 98 ) ) ) * COUNT( DISTINCT - 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-764
SELECT + ( + ( - - COUNT ( ALL - - 98 ) ) ) * COUNT ( DISTINCT - 88 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT + COUNT( DISTINCT + COALESCE ( - ( + 19 ), + + 18 ) ) + + 50 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-765
SELECT + COUNT ( DISTINCT + COALESCE ( - ( + 19 ), + + 18 ) ) + + 50 AS col0
----
51

query I rowsort
SELECT CASE + 68 WHEN - + 59 * NULLIF ( - + 26, + 24 ) THEN - + 9 / + - 39 WHEN 54 + 77 THEN + 1 * + 18 * 82 / + + 27 ELSE NULL END
----
NULL

query I rowsort
SELECT + 31 + ( + 16 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT + 39 * 13 * 70 * + - 44 * - COUNT( ALL 23 ) AS col1
----
1561560

skipif mysql # not compatible
query I rowsort label-768
SELECT + 39 * 13 * 70 * + - 44 * - COUNT ( ALL 23 ) AS col1
----
1561560

query II rowsort
SELECT ALL 0, 33 * - - 63 AS col2
----
0
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT DISTINCT 27 * ( - 41 ) * - COUNT( * ) * - - 3 col2
----
3321

skipif mysql # not compatible
query I rowsort label-770
SELECT DISTINCT 27 * ( - 41 ) * - COUNT ( * ) * - - 3 col2
----
3321

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT - ( - SUM( ALL + 44 ) ) col2
----
44

skipif mysql # not compatible
query I rowsort label-771
SELECT - ( - SUM ( ALL + 44 ) ) col2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-772
SELECT DISTINCT - MAX( ALL + - 35 ) * MIN( 3 ) AS col0, - CAST( - MIN( - 70 ) AS SIGNED ) + + COALESCE ( 7, COUNT( * ) * ( - 33 ) )
----
105
-63

skipif mysql # not compatible
query II rowsort label-772
SELECT DISTINCT - MAX ( ALL + - 35 ) * MIN ( 3 ) AS col0, - CAST ( - MIN ( - 70 ) AS INTEGER ) + + COALESCE ( 7, COUNT ( * ) * ( - 33 ) )
----
105
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL + COALESCE ( - - 41, + COUNT( * ) + COUNT( * ) ) * + + 90
----
3690

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL + COALESCE ( - - 41, + COUNT ( * ) + COUNT ( * ) ) * + + 90
----
3690

query I rowsort
SELECT CASE + 69 WHEN + 29 * + 47 THEN NULL WHEN 25 THEN - - ( - 69 ) END
----
NULL

query I rowsort
SELECT - - 51 * - - 3 AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT - MIN( ALL - 4 ) + 89 - - ( - + COUNT( * ) ) + - 32 * - + 11
----
444

skipif mysql # not compatible
query I rowsort label-776
SELECT - MIN ( ALL - 4 ) + 89 - - ( - + COUNT ( * ) ) + - 32 * - + 11
----
444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-777
SELECT ALL CAST( NULL AS SIGNED ) * + + 98 * - NULLIF ( + + CAST( ( 84 ) AS SIGNED ), - COUNT( * ) ) + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL CAST ( NULL AS INTEGER ) * + + 98 * - NULLIF ( + + CAST ( ( 84 ) AS INTEGER ), - COUNT ( * ) ) + 83
----
NULL

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

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

query I rowsort
SELECT ALL COALESCE ( + 76, - - 8 - + - 38 * - - 59 )
----
76

query I rowsort
SELECT DISTINCT - - 16 + - 17
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-781
SELECT ALL - COUNT( * ) + + 96 * - 55 DIV - + COUNT( * ) AS col2
----
5279

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL - COUNT ( * ) + + 96 * - 55 / - + COUNT ( * ) AS col2
----
5279

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT - + 99 + - ( - COUNT( * ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-782
SELECT - + 99 + - ( - COUNT ( * ) ) AS col0
----
-98

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

skipif mysql # not compatible
query I rowsort label-783
SELECT - + 30 / + COUNT ( * ) - + - 26
----
-4

query I rowsort
SELECT - 93 + - ( - 30 ) + + + 76
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-785
SELECT ALL + 62 + 80 + - SUM( ALL - 54 ) * + 34 AS col0, - 42 * 24
----
1978
-1008

skipif mysql # not compatible
query II rowsort label-785
SELECT ALL + 62 + 80 + - SUM ( ALL - 54 ) * + 34 AS col0, - 42 * 24
----
1978
-1008

query I rowsort
SELECT - 69 + - + 69 AS col0
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-787
SELECT + ( COALESCE ( 7, + 64 DIV 60 DIV - MAX( + 93 ) ) )
----
7

skipif mysql # not compatible
query I rowsort label-787
SELECT + ( COALESCE ( 7, + 64 / 60 / - MAX ( + 93 ) ) )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-788
SELECT ALL + 36 DIV + - 55 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL + 36 / + - 55 + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - ( + 2 ) * - 79
----
158

query I rowsort
SELECT ALL 33 + + 29
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT DISTINCT 92 DIV - 32
----
-2

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT 92 / - 32
----
-2

query I rowsort
SELECT DISTINCT + 45 + - 39 + + 27 * 68 * COALESCE ( + 27, - 7 ) AS col1
----
49578

query I rowsort
SELECT DISTINCT - 81 - + NULLIF ( ( + 4 ), - NULLIF ( 55, + 1 * - 47 ) - - 72 )
----
-85

query I rowsort
SELECT 98 + + - 87
----
11

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

skipif mysql # not compatible
query I rowsort label-795
SELECT + COUNT ( * ) * - 26 / - 69 + - + 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT DISTINCT 85 * + + NULLIF ( 73, + MAX( + 77 ) + + - 68 ) AS col2
----
6205

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT 85 * + + NULLIF ( 73, + MAX ( + 77 ) + + - 68 ) AS col2
----
6205

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT ALL 20 - + + MAX( - 98 )
----
118

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL 20 - + + MAX ( - 98 )
----
118

query I rowsort
SELECT 4 * 76 AS col1
----
304

query I rowsort
SELECT ALL 31 * + 25
----
775

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT + - COALESCE ( + MIN( + - 52 ), + - 25, + 33 )
----
52

skipif mysql # not compatible
query I rowsort label-800
SELECT + - COALESCE ( + MIN ( + - 52 ), + - 25, + 33 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ALL - + NULLIF ( + + COUNT( * ), + + 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL - + NULLIF ( + + COUNT ( * ), + + 69 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT COUNT( * ) * 9 * 27 + - 64 + + COUNT( * ) + - - COUNT( * ) AS col0
----
181

skipif mysql # not compatible
query I rowsort label-802
SELECT COUNT ( * ) * 9 * 27 + - 64 + + COUNT ( * ) + - - COUNT ( * ) AS col0
----
181

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-803
SELECT NULLIF ( - ( - 44 ), CASE + - COUNT( * ) WHEN + ( 27 ) THEN - SUM( ALL - 90 ) + - 26 WHEN 74 THEN 23 ELSE + 92 * - CAST( + 13 AS DECIMAL ) END ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-803
SELECT NULLIF ( - ( - 44 ), CASE + - COUNT ( * ) WHEN + ( 27 ) THEN - SUM ( ALL - 90 ) + - 26 WHEN 74 THEN 23 ELSE + 92 * - CAST ( + 13 AS REAL ) END ) AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-804
SELECT 93 - + 65 AS col2, 72 + - CAST( 80 AS SIGNED )
----
28
-8

skipif mysql # not compatible
query II rowsort label-804
SELECT 93 - + 65 AS col2, 72 + - CAST ( 80 AS INTEGER )
----
28
-8

query I rowsort
SELECT - 60 * 46 - - - 66
----
-2826

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT DISTINCT - ( + MAX( + 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT - ( + MAX ( + 11 ) )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-807
SELECT DISTINCT + 67 + - 81 * + CAST( NULL AS SIGNED )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * + 83 * - 36 + + 36 + + 81
----
3106

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * + 83 * - 36 + + 36 + + 81
----
3106

query I rowsort
SELECT DISTINCT ( + 6 ) * + 88
----
528

query I rowsort
SELECT - 89 + + + 24 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT 39 + MAX( DISTINCT ( + 98 ) ) + + CASE + 70 WHEN - 60 THEN - - 60 * + 63 + - SUM( DISTINCT COALESCE ( 17, 20 * 82, 40 + + 46 ) ) / 93 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-811
SELECT 39 + MAX ( DISTINCT ( + 98 ) ) + + CASE + 70 WHEN - 60 THEN - - 60 * + 63 + - SUM ( DISTINCT COALESCE ( 17, 20 * 82, 40 + + 46 ) ) / 93 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT - 42 * + 64 * + COUNT( * )
----
-2688

skipif mysql # not compatible
query I rowsort label-812
SELECT - 42 * + 64 * + COUNT ( * )
----
-2688

onlyif mysql # aggregate syntax: 
query II rowsort label-813
SELECT DISTINCT NULLIF ( + - 55, + 88 + COUNT( * ) ), 39 AS col2
----
-55
39

skipif mysql # not compatible
query II rowsort label-813
SELECT DISTINCT NULLIF ( + - 55, + 88 + COUNT ( * ) ), 39 AS col2
----
-55
39

query I rowsort
SELECT - 56 * - 47 * + 99 col1
----
260568

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

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

query I rowsort
SELECT DISTINCT - 12 + - 38 AS col2
----
-50

query I rowsort
SELECT ALL 10 * 93 * 79 AS col0
----
73470

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL 28 + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL 28 + + COUNT ( * )
----
29

query I rowsort
SELECT 69 * 76 * 74
----
388056

query I rowsort
SELECT DISTINCT - 86 * 11
----
-946

query I rowsort
SELECT DISTINCT - 13 - + 8
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT CASE - MAX( ALL + 64 ) WHEN + 99 * COALESCE ( - COUNT( * ), + 0 ) * - + 18 * 3 + - - 8 + - + NULLIF ( 38, + 4 ) + + 28 THEN + 52 WHEN + 13 * + + 94 * - 4 THEN + 67 + + COUNT( * ) END / 39 + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT CASE - MAX ( ALL + 64 ) WHEN + 99 * COALESCE ( - COUNT ( * ), + 0 ) * - + 18 * 3 + - - 8 + - + NULLIF ( 38, + 4 ) + + 28 THEN + 52 WHEN + 13 * + + 94 * - 4 THEN + 67 + + COUNT ( * ) END / 39 + 89 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-823
SELECT 88 / - + 84
----
-1

query I rowsort
SELECT ALL - 95 - 66 + 33 AS col2
----
-128

query I rowsort
SELECT DISTINCT - 86 * - 35
----
3010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-826
SELECT + CAST( NULL AS SIGNED ) / + + 80 - 41 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-826
SELECT + CAST ( NULL AS INTEGER ) / + + 80 - 41 * + 59
----
NULL

query I rowsort
SELECT ALL - 68 * + 15
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT 78 - 43 + - 23 + + COUNT( DISTINCT + - 20 )
----
13

skipif mysql # not compatible
query I rowsort label-828
SELECT 78 - 43 + - 23 + + COUNT ( DISTINCT + - 20 )
----
13

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

query I rowsort
SELECT DISTINCT - ( + COALESCE ( 28, 78 ) )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-831
SELECT 4 DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-831
SELECT 4 / 22 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-832
SELECT DISTINCT - NULLIF ( COUNT( * ), CAST( NULL AS SIGNED ) * + 32 * - + 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT - NULLIF ( COUNT ( * ), CAST ( NULL AS INTEGER ) * + 32 * - + 15 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-833
SELECT + ( - 27 ) * COUNT( * ) DIV - - COUNT( DISTINCT - - 30 ) + - 39
----
-66

skipif mysql # not compatible
query I rowsort label-833
SELECT + ( - 27 ) * COUNT ( * ) / - - COUNT ( DISTINCT - - 30 ) + - 39
----
-66

query I rowsort
SELECT - 48 - - 53 AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-835
SELECT - 57 DIV + - 25
----
2

skipif mysql # not compatible
query I rowsort label-835
SELECT - 57 / + - 25
----
2

query I rowsort
SELECT DISTINCT + + 66 + - - ( + - 90 ) * - 42 AS col0
----
3846

query I rowsort
SELECT - 71 * + 85
----
-6035

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT ALL - 79 + - 38 - + 18 + 12 * COUNT( * ) DIV - - 40 AS col2
----
-135

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - 79 + - 38 - + 18 + 12 * COUNT ( * ) / - - 40 AS col2
----
-135

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-840
SELECT - COUNT( * ) + + - CASE - ( 16 ) WHEN 74 THEN + + 91 WHEN - 45 * - 88 * - 8 - + 40 THEN + 72 ELSE + 39 + + ( + CAST( 68 AS SIGNED ) ) + + + 83 END AS col1
----
-191

skipif mysql # not compatible
query I rowsort label-840
SELECT - COUNT ( * ) + + - CASE - ( 16 ) WHEN 74 THEN + + 91 WHEN - 45 * - 88 * - 8 - + 40 THEN + 72 ELSE + 39 + + ( + CAST ( 68 AS INTEGER ) ) + + + 83 END AS col1
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT DISTINCT - - COALESCE ( + 72, + COUNT( * ) ) + + 78
----
150

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT - - COALESCE ( + 72, + COUNT ( * ) ) + + 78
----
150

query I rowsort
SELECT + 37 * - 26 * - + 83 AS col1
----
79846

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-843
SELECT ALL - 18 + - 49 * + + COALESCE ( 71, + - 85 + + - 60, + 30 DIV + 16 * - NULLIF ( 52, 15 - + 33 * + + MIN( + + 30 ) ) + + 52 ) AS col0
----
-3497

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL - 18 + - 49 * + + COALESCE ( 71, + - 85 + + - 60, + 30 / + 16 * - NULLIF ( 52, 15 - + 33 * + + MIN ( + + 30 ) ) + + 52 ) AS col0
----
-3497

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

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT DISTINCT 30 + - 32 + - 97 DIV - 1
----
95

skipif mysql # not compatible
query I rowsort label-845
SELECT DISTINCT 30 + - 32 + - 97 / - 1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL COUNT( * ) * - + 45 * + 75 * 77 AS col0
----
-259875

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL COUNT ( * ) * - + 45 * + 75 * 77 AS col0
----
-259875

query I rowsort
SELECT - 4 + - + 2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT - MIN( ALL 75 ) * - 76 * + 26 AS col0
----
148200

skipif mysql # not compatible
query I rowsort label-848
SELECT - MIN ( ALL 75 ) * - 76 * + 26 AS col0
----
148200

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-850
SELECT ALL 57 + + 91 + + 32 DIV NULLIF ( - COUNT( * ), - 86 + 0 ) * + - ( + COUNT( * ) ) + 75
----
255

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL 57 + + 91 + + 32 / NULLIF ( - COUNT ( * ), - 86 + 0 ) * + - ( + COUNT ( * ) ) + 75
----
255

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT + COUNT( * ) + - + 71 + + 92 * 10 + 4 * - + 69 - + + 27 AS col0
----
547

skipif mysql # not compatible
query I rowsort label-852
SELECT + COUNT ( * ) + - + 71 + + 92 * 10 + 4 * - + 69 - + + 27 AS col0
----
547

query II rowsort
SELECT DISTINCT + 28 col2, + 85 AS col1
----
28
85

query I rowsort
SELECT ALL + ( 5 ) - 80 AS col2
----
-75

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

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

query III rowsort
SELECT 78 AS col1, - 6 AS col2, - - 75 AS col0
----
78
-6
75

query III rowsort
SELECT ALL 61 AS col2, - 91 AS col2, + - 7 AS col2
----
61
-91
-7

query I rowsort
SELECT DISTINCT 87 - ( - - 4 ) + + 22 * + - 31 AS col2
----
-599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-859
SELECT - COALESCE ( + 66, COALESCE ( - 65, - CASE + 35 WHEN - CAST( - - 63 AS SIGNED ) / + + 17 THEN NULL ELSE + ( - 44 ) END + 29, + 56 ), - + 16 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-859
SELECT - COALESCE ( + 66, COALESCE ( - 65, - CASE + 35 WHEN - CAST ( - - 63 AS INTEGER ) / + + 17 THEN NULL ELSE + ( - 44 ) END + 29, + 56 ), - + 16 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL - 99 * COUNT( ALL - + 8 )
----
-99

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL - 99 * COUNT ( ALL - + 8 )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-861
SELECT + NULLIF ( COALESCE ( CASE + 92 WHEN - 54 THEN - 46 * - - ( 24 ) + ( + 20 ) * - - 14 DIV - - 70 ELSE NULL END, + - 96 * - 82 * 75 * + COUNT( 62 ) - + + 14 ), + COUNT( * ) + CASE - 49 WHEN + - 87 THEN NULL WHEN + 90 + - 72 THEN + - SUM( DISTINCT - 78 ) ELSE - 67 + - + 26 END ) DIV - COUNT( * )
----
-590386

skipif mysql # not compatible
query I rowsort label-861
SELECT + NULLIF ( COALESCE ( CASE + 92 WHEN - 54 THEN - 46 * - - ( 24 ) + ( + 20 ) * - - 14 / - - 70 ELSE NULL END, + - 96 * - 82 * 75 * + COUNT ( 62 ) - + + 14 ), + COUNT ( * ) + CASE - 49 WHEN + - 87 THEN NULL WHEN + 90 + - 72 THEN + - SUM ( DISTINCT - 78 ) ELSE - 67 + - + 26 END ) / - COUNT ( * )
----
-590386

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-862
SELECT - COUNT( * ) AS col0, - MAX( DISTINCT - 96 ) DIV - 45
----
-1
-2

skipif mysql # not compatible
query II rowsort label-862
SELECT - COUNT ( * ) AS col0, - MAX ( DISTINCT - 96 ) / - 45
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-863
SELECT - 68 + - + CAST( + 68 AS SIGNED ) AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-863
SELECT - 68 + - + CAST ( + 68 AS INTEGER ) AS col0
----
-136

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-864
SELECT + 80 + + + 11 * 24 * CAST( NULL AS DECIMAL ) AS col0, COUNT( * ) * + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-864
SELECT + 80 + + + 11 * 24 * CAST ( NULL AS REAL ) AS col0, COUNT ( * ) * + COUNT ( * )
----
NULL
1

query I rowsort
SELECT - 86 * - 69 AS col0
----
5934

query I rowsort
SELECT + ( - 68 ) + - 89 AS col0
----
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT - 62 - + 92 * CASE - + COALESCE ( - + COUNT( * ), - 96 * - 72 + 77 ) WHEN + 17 THEN - + COUNT( * ) / 85 WHEN - - SUM( ALL 53 ) THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-867
SELECT - 62 - + 92 * CASE - + COALESCE ( - + COUNT ( * ), - 96 * - 72 + 77 ) WHEN + 17 THEN - + COUNT ( * ) / 85 WHEN - - SUM ( ALL 53 ) THEN NULL END + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT + COUNT( * ) + + 28 + - + 23 + - 44 * - 16
----
710

skipif mysql # not compatible
query I rowsort label-868
SELECT + COUNT ( * ) + + 28 + - + 23 + - 44 * - 16
----
710

query II rowsort
SELECT DISTINCT + 30 AS col1, 49
----
30
49

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT DISTINCT + SUM( ALL + + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT + SUM ( ALL + + 0 ) AS col1
----
0

query II rowsort
SELECT DISTINCT + 36 AS col2, - 14 + - 85
----
36
-99

query I rowsort
SELECT - 85 * + 16 AS col1
----
-1360

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

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

query I rowsort
SELECT 1 * 19 + - - 20 + 43 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT + NULLIF ( NULLIF ( 5, + + ( + COUNT( * ) ) + + 18 + - 58 ), + 27 ) * + 62 * - COUNT( ALL + + 79 )
----
-310

skipif mysql # not compatible
query I rowsort label-875
SELECT + NULLIF ( NULLIF ( 5, + + ( + COUNT ( * ) ) + + 18 + - 58 ), + 27 ) * + 62 * - COUNT ( ALL + + 79 )
----
-310

onlyif mysql # DIV for integer division: 
query I rowsort label-876
SELECT 37 DIV + 67 + + 36 col2
----
36

skipif mysql # not compatible
query I rowsort label-876
SELECT 37 / + 67 + + 36 col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-877
SELECT - MAX( - ( + + 85 ) ) * - 25 * 4 + 87 AS col0, - ( + + 85 ) * - 40 + - 15 - + - 74 * - 4 + + 77 AS col1
----
-8413
3166

skipif mysql # not compatible
query II rowsort label-877
SELECT - MAX ( - ( + + 85 ) ) * - 25 * 4 + 87 AS col0, - ( + + 85 ) * - 40 + - 15 - + - 74 * - 4 + + 77 AS col1
----
-8413
3166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-878
SELECT + 2, - 27 * + + CAST( NULL AS SIGNED ) * 74 AS col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-878
SELECT + 2, - 27 * + + CAST ( NULL AS INTEGER ) * 74 AS col0
----
2
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-879
SELECT DISTINCT - + COUNT( * ) * 24 + + 50 * CASE 97 WHEN - 96 THEN 33 WHEN + - CAST( - - COUNT( * ) AS SIGNED ) THEN 96 - + + 81 * - + 75 END + - 33 + - + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT - + COUNT ( * ) * 24 + + 50 * CASE 97 WHEN - 96 THEN 33 WHEN + - CAST ( - - COUNT ( * ) AS INTEGER ) THEN 96 - + + 81 * - + 75 END + - 33 + - + ( + COUNT ( * ) )
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 31 * - + 55 + + 55 - + - 86 * - + 86 col0
----
-9046

query I rowsort
SELECT DISTINCT + 31 * + 37 * + + 9 col1
----
10323

onlyif mysql # aggregate syntax: 
query II rowsort label-883
SELECT + + 45 AS col0, 91 + 12 + 38 + - 29 * + 69 - - COUNT( * )
----
45
-1859

skipif mysql # not compatible
query II rowsort label-883
SELECT + + 45 AS col0, 91 + 12 + 38 + - 29 * + 69 - - COUNT ( * )
----
45
-1859

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

skipif mysql # not compatible
query I rowsort label-884
SELECT - - 26 / - - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-885
SELECT ALL + 57 * + + 14 AS col2, + COUNT( * ) DIV 23 * + + 74 * 44 AS col0
----
798
0

skipif mysql # not compatible
query II rowsort label-885
SELECT ALL + 57 * + + 14 AS col2, + COUNT ( * ) / 23 * + + 74 * 44 AS col0
----
798
0

query I rowsort
SELECT ALL + 45 - + + 15 * - 28 AS col1
----
465

onlyif mysql # aggregate syntax: 
query II rowsort label-887
SELECT ALL COUNT( * ) col2, + 53 * 73
----
1
3869

skipif mysql # not compatible
query II rowsort label-887
SELECT ALL COUNT ( * ) col2, + 53 * 73
----
1
3869

query II rowsort
SELECT - 43, 44 AS col1
----
-43
44

query I rowsort
SELECT DISTINCT + + 17 - - 90 + - 9 + - ( - + 6 )
----
104

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-891
SELECT + NULLIF ( - + 20, 33 * + + 55 * - CAST( NULL AS SIGNED ) + + 3 + - + 80 + + + 69 + 87 * - 66 / + 89 * - - 79 ) + + 69 * + - 94 + + 38
----
-6468

skipif mysql # not compatible
query I rowsort label-891
SELECT + NULLIF ( - + 20, 33 * + + 55 * - CAST ( NULL AS INTEGER ) + + 3 + - + 80 + + + 69 + 87 * - 66 / + 89 * - - 79 ) + + 69 * + - 94 + + 38
----
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT + 95 * - COUNT( * ) * COALESCE ( COUNT( DISTINCT - - 57 ), 98 )
----
-95

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT + 95 * - COUNT ( * ) * COALESCE ( COUNT ( DISTINCT - - 57 ), 98 )
----
-95

query I rowsort
SELECT DISTINCT 39 * + - 10 * - 69 col1
----
26910

onlyif mysql # aggregate syntax: 
query II rowsort label-894
SELECT - SUM( ALL - 31 ) AS col2, 98 + 29 + - COUNT( - 38 ) AS col0
----
31
126

skipif mysql # not compatible
query II rowsort label-894
SELECT - SUM ( ALL - 31 ) AS col2, 98 + 29 + - COUNT ( - 38 ) AS col0
----
31
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT ALL CAST( - - 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL CAST ( - - 10 AS INTEGER )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-896
SELECT DISTINCT MIN( ALL - 48 ) DIV 7 * COUNT( + 34 ) + 83 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT MIN ( ALL - 48 ) / 7 * COUNT ( + 34 ) + 83 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT + 85 / - ( + ( - CASE - 10 WHEN + 31 * - SUM( DISTINCT + 34 ) THEN - 13 + + + 39 WHEN + - 88 + + 86 THEN + 40 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT + 85 / - ( + ( - CASE - 10 WHEN + 31 * - SUM ( DISTINCT + 34 ) THEN - 13 + + + 39 WHEN + - 88 + + 86 THEN + 40 END ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT ALL CAST( 54 AS SIGNED ) + + 14 * + 95 AS col1
----
1384

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL CAST ( 54 AS INTEGER ) + + 14 * + 95 AS col1
----
1384

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-899
SELECT ALL + 96 DIV NULLIF ( - + NULLIF ( - 59, COALESCE ( - CAST( NULL AS SIGNED ), - + 67 + + + 98, - 4 DIV 31 - + 72 + - - 30 ) ), - 42 ) + 77 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL + 96 / NULLIF ( - + NULLIF ( - 59, COALESCE ( - CAST ( NULL AS INTEGER ), - + 67 + + + 98, - 4 / 31 - + 72 + - - 30 ) ), - 42 ) + 77 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-900
SELECT 69 DIV - - 14 - + - CAST( NULL AS SIGNED ) * 83 + CAST( NULL AS SIGNED ), 37 + + 62 DIV + 31 col1
----
NULL
39

skipif mysql # not compatible
query II rowsort label-900
SELECT 69 / - - 14 - + - CAST ( NULL AS INTEGER ) * 83 + CAST ( NULL AS INTEGER ), 37 + + 62 / + 31 col1
----
NULL
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-901
SELECT + + CAST( + + COALESCE ( - + COUNT( * ), + + 36 ) AS SIGNED ) - - NULLIF ( + 60, CAST( NULL AS SIGNED ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-901
SELECT + + CAST ( + + COALESCE ( - + COUNT ( * ), + + 36 ) AS INTEGER ) - - NULLIF ( + 60, CAST ( NULL AS INTEGER ) ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT ALL - 20 DIV + 62 + + + 69 + + 21
----
90

skipif mysql # not compatible
query I rowsort label-902
SELECT ALL - 20 / + 62 + + + 69 + + 21
----
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-903
SELECT ALL - + 17 DIV 46 DIV CAST( - 81 AS SIGNED ) + - - 19
----
19

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL - + 17 / 46 / CAST ( - 81 AS INTEGER ) + - - 19
----
19

query I rowsort
SELECT DISTINCT + NULLIF ( - 25, - - 75 ) AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-905
SELECT - - 56 / 24 + + COUNT( * ) + - + CAST( NULL AS SIGNED ) + + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-905
SELECT - - 56 / 24 + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + + - 29
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-906
SELECT ALL - - NULLIF ( + 13, + 90 ) DIV COUNT( * ) * - 19 + - - 73 + + 95 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL - - NULLIF ( + 13, + 90 ) / COUNT ( * ) * - 19 + - - 73 + + 95 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT - COUNT( * ) - + - MAX( DISTINCT - CASE ( + 73 ) WHEN 91 + - + 58 + + 10 THEN NULL ELSE - 81 * - 87 END ) AS col1
----
-7048

skipif mysql # not compatible
query I rowsort label-907
SELECT - COUNT ( * ) - + - MAX ( DISTINCT - CASE ( + 73 ) WHEN 91 + - + 58 + + 10 THEN NULL ELSE - 81 * - 87 END ) AS col1
----
-7048

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-908
SELECT + CAST( + + 64 AS SIGNED ) AS col1, NULLIF ( CAST( NULL AS SIGNED ), 19 / 1 )
----
64
NULL

skipif mysql # not compatible
query II rowsort label-908
SELECT + CAST ( + + 64 AS INTEGER ) AS col1, NULLIF ( CAST ( NULL AS INTEGER ), 19 / 1 )
----
64
NULL

query I rowsort
SELECT DISTINCT - 48 * - + 72 + - 40 AS col2
----
3416

query I rowsort
SELECT ALL + 35 * + 65 col2
----
2275

onlyif mysql # aggregate syntax: 
query II rowsort label-911
SELECT ALL 57 * - NULLIF ( 26, 89 + - MAX( + 93 ) ) - - 5 AS col1, - 6 + - 7 - 43 + - SUM( ALL + 29 ) AS col1
----
-1477
-85

skipif mysql # not compatible
query II rowsort label-911
SELECT ALL 57 * - NULLIF ( 26, 89 + - MAX ( + 93 ) ) - - 5 AS col1, - 6 + - 7 - 43 + - SUM ( ALL + 29 ) AS col1
----
-1477
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT + - COALESCE ( - + 94, COUNT( ALL + 58 ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-912
SELECT + - COALESCE ( - + 94, COUNT ( ALL + 58 ) ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-913
SELECT + + CAST( + COUNT( * ) AS SIGNED ), - 67 AS col1
----
1
-67

skipif mysql # not compatible
query II rowsort label-913
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ), - 67 AS col1
----
1
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL + MIN( 68 ) * - 96 * + COUNT( * ) * + + NULLIF ( + 62, + 57 / - COUNT( * ) + + + CASE + - 45 WHEN - - 9 + - 85 THEN - 15 WHEN 29 THEN 41 END ) + + 68 AS col0
----
-404668

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL + MIN ( 68 ) * - 96 * + COUNT ( * ) * + + NULLIF ( + 62, + 57 / - COUNT ( * ) + + + CASE + - 45 WHEN - - 9 + - 85 THEN - 15 WHEN 29 THEN 41 END ) + + 68 AS col0
----
-404668

query I rowsort
SELECT DISTINCT - + 70 col2
----
-70

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

query I rowsort
SELECT 16 * 47 AS col0
----
752

query I rowsort
SELECT ALL - + 52 * - 85
----
4420

query I rowsort
SELECT 98 * + - 98 * + 5 col1
----
-48020

onlyif mysql # DIV for integer division: 
query I rowsort label-920
SELECT ALL - 36 DIV - 1 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL - 36 / - 1 AS col1
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-922
SELECT COUNT( * ) * + NULLIF ( ( + 65 ), - COUNT( * ) + - 59 + + 41 + + ( + - MIN( DISTINCT + 2 ) ) * - 20 * 3 + + 7 * - 76 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-922
SELECT COUNT ( * ) * + NULLIF ( ( + 65 ), - COUNT ( * ) + - 59 + + 41 + + ( + - MIN ( DISTINCT + 2 ) ) * - 20 * 3 + + 7 * - 76 ) AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT 79 + + 76 + - 68 * + 62 / + - ( CAST( NULL AS SIGNED ) ) * - 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT 79 + + 76 + - 68 * + 62 / + - ( CAST ( NULL AS INTEGER ) ) * - 84 AS col2
----
NULL

query I rowsort
SELECT 88 + - ( + COALESCE ( 11, + + 76 ) ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT COUNT( * ) - + + 77 - + 71 - + ( + + 56 ) - + 44 * + - 4 - + 5 * 98 AS col2
----
-517

skipif mysql # not compatible
query I rowsort label-925
SELECT COUNT ( * ) - + + 77 - + 71 - + ( + + 56 ) - + 44 * + - 4 - + 5 * 98 AS col2
----
-517

query I rowsort
SELECT DISTINCT + 64 * - 7 AS col2
----
-448

onlyif mysql # aggregate syntax: 
query II rowsort label-927
SELECT 13 + - + 36 + + - 80 AS col2, ( - COUNT( * ) )
----
-103
-1

skipif mysql # not compatible
query II rowsort label-927
SELECT 13 + - + 36 + + - 80 AS col2, ( - COUNT ( * ) )
----
-103
-1

query I rowsort
SELECT 88 * - + 12
----
-1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-929
SELECT COALESCE ( + + COUNT( * ), - + COALESCE ( - - COALESCE ( + 4, + - 13 + + 93 + 9 DIV - + NULLIF ( - - MIN( DISTINCT 71 ), COUNT( DISTINCT - 43 ) ) + - ( - + 87 ) + - 3 * 52 * - 31 ), + - 43 * - - 25 + + COUNT( * ) - - - 63 ) ) + + + 33 - 50
----
-16

skipif mysql # not compatible
query I rowsort label-929
SELECT COALESCE ( + + COUNT ( * ), - + COALESCE ( - - COALESCE ( + 4, + - 13 + + 93 + 9 / - + NULLIF ( - - MIN ( DISTINCT 71 ), COUNT ( DISTINCT - 43 ) ) + - ( - + 87 ) + - 3 * 52 * - 31 ), + - 43 * - - 25 + + COUNT ( * ) - - - 63 ) ) + + + 33 - 50
----
-16

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

skipif mysql # not compatible
query I rowsort label-930
SELECT COUNT ( * ) + - ( - - 57 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL SUM( + - 37 ) + + + ( + 0 ) * + 24
----
-37

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL SUM ( + - 37 ) + + + ( + 0 ) * + 24
----
-37

query I rowsort
SELECT 3 + - 93
----
-90

query I rowsort
SELECT 13 + - 78 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT 48 - + COUNT( * ) col1
----
47

skipif mysql # not compatible
query I rowsort label-934
SELECT 48 - + COUNT ( * ) col1
----
47

query I rowsort
SELECT 13 + 24
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT ALL + + 93 + + COUNT( + 87 )
----
94

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL + + 93 + + COUNT ( + 87 )
----
94

query II rowsort
SELECT DISTINCT - 72 AS col0, + 23
----
-72
23

query I rowsort
SELECT NULLIF ( - COALESCE ( - 84, - 26 * + 64, 53 * + + 99 + 73 ), - 82 ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-939
SELECT ALL + 31 DIV + - MAX( ALL - 49 ) * + - SUM( - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL + 31 / + - MAX ( ALL - 49 ) * + - SUM ( - 47 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-940
SELECT 86 DIV - 40 + + - COUNT( * ) DIV 70 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-940
SELECT 86 / - 40 + + - COUNT ( * ) / 70 AS col2
----
-2

query I rowsort
SELECT 70 * + + 63 AS col2
----
4410

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT 13 * + 68 * - - 85 + - - 31 DIV + 24 AS col1
----
75141

skipif mysql # not compatible
query I rowsort label-942
SELECT 13 * + 68 * - - 85 + - - 31 / + 24 AS col1
----
75141

query I rowsort
SELECT ALL - 6 - - 61
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT ALL 23 * + COUNT( * ) + - - COALESCE ( 88, 3, + ( - 51 ) ) + + - 92
----
19

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL 23 * + COUNT ( * ) + - - COALESCE ( 88, 3, + ( - 51 ) ) + + - 92
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT 9 * - - ( - 68 ) + + + 54 + - COUNT( * ) + MAX( + + 90 ) * 79 + + 50 + - 47 * - + 13 AS col1
----
7212

skipif mysql # not compatible
query I rowsort label-945
SELECT 9 * - - ( - 68 ) + + + 54 + - COUNT ( * ) + MAX ( + + 90 ) * 79 + + 50 + - 47 * - + 13 AS col1
----
7212

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT DISTINCT - - COUNT( DISTINCT 76 )
----
1

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT - - COUNT ( DISTINCT 76 )
----
1

query II rowsort
SELECT DISTINCT - + 59, 15 col2
----
-59
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-948
SELECT ALL - - COUNT( * ) - + - ( - + CAST( + - 62 AS SIGNED ) ) * - + MAX( - 54 ) + - 55 AS col0
----
3294

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - - COUNT ( * ) - + - ( - + CAST ( + - 62 AS INTEGER ) ) * - + MAX ( - 54 ) + - 55 AS col0
----
3294

query I rowsort
SELECT + COALESCE ( - 42, + + 44 * + 85 - - - 78 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-950
SELECT CAST( NULL AS DECIMAL ) * MAX( 24 ) + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-950
SELECT CAST ( NULL AS REAL ) * MAX ( 24 ) + 41 AS col0
----
NULL

query II rowsort
SELECT + - 77 AS col2, 46 + - 45 AS col2
----
-77
1

query I rowsort
SELECT 8 * 5 * - AVG ( CASE 51 WHEN - 59 * + 31 THEN NULL WHEN + + 49 THEN + 31 END ) * 64 / 25 AS col0
----
NULL

query I rowsort
SELECT 79 * - 20
----
-1580

query I rowsort
SELECT + 16 * + 6 - 14
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-955
SELECT DISTINCT - NULLIF ( NULLIF ( + CASE ( - CASE + 19 WHEN - - 20 * - 58 * + MAX( + 32 ) THEN - 58 ELSE NULL END ) WHEN - 19 + - 20 * - 10 + COUNT( * ) + - CAST( NULL AS SIGNED ) THEN - 93 END, + MIN( DISTINCT + - 67 ) * 50 / - - 22 ), 39 ) + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT - NULLIF ( NULLIF ( + CASE ( - CASE + 19 WHEN - - 20 * - 58 * + MAX ( + 32 ) THEN - 58 ELSE NULL END ) WHEN - 19 + - 20 * - 10 + COUNT ( * ) + - CAST ( NULL AS INTEGER ) THEN - 93 END, + MIN ( DISTINCT + - 67 ) * 50 / - - 22 ), 39 ) + 95
----
NULL

query I rowsort
SELECT ALL 98 * - + 17 AS col0
----
-1666

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-957
SELECT 98 DIV 77, COUNT( * ) * COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-957
SELECT 98 / 77, COUNT ( * ) * COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT ALL - 5 + 10 + + 25 AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-959
SELECT ALL SUM( DISTINCT - 6 ) col0, 76 * - ( - 36 )
----
-6
2736

skipif mysql # not compatible
query II rowsort label-959
SELECT ALL SUM ( DISTINCT - 6 ) col0, 76 * - ( - 36 )
----
-6
2736

query I rowsort
SELECT DISTINCT - 23 + 58 + + - 53 * + 24 * + 63
----
-80101

query I rowsort
SELECT 23 * - + 66 * 82 col1
----
-124476

query I rowsort
SELECT DISTINCT - 88 + + - 6 + + - 82 + + 66 * 62 AS col2
----
3916

onlyif mysql # aggregate syntax: 
query II rowsort label-963
SELECT DISTINCT SUM( ALL 27 ) AS col1, 9 AS col1
----
27
9

skipif mysql # not compatible
query II rowsort label-963
SELECT DISTINCT SUM ( ALL 27 ) AS col1, 9 AS col1
----
27
9

query I rowsort
SELECT ALL - 6 + + 91 * - + 99 AS col1
----
-9015

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT ALL COUNT( + 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL COUNT ( + 37 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-966
SELECT ALL + 71 - - + CAST( + + 57 AS SIGNED ) - + - COUNT( * ) AS col2
----
129

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL + 71 - - + CAST ( + + 57 AS INTEGER ) - + - COUNT ( * ) AS col2
----
129

query I rowsort
SELECT ALL - 1 * + ( + - 6 ) + + 60 col1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT - 82 DIV 75 * - 50 + 72 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-968
SELECT - 82 / 75 * - 50 + 72 AS col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-969
SELECT ALL + - 33 * - + CAST( NULL AS SIGNED ) * + MAX( ALL + - 92 ) - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL + - 33 * - + CAST ( NULL AS INTEGER ) * + MAX ( ALL + - 92 ) - 82
----
NULL

query I rowsort
SELECT DISTINCT - 52 * 27 + - 96 AS col1
----
-1500

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT NULLIF ( - - COUNT( DISTINCT + 46 ), + 24 * 32 ) * - - 62
----
62

skipif mysql # not compatible
query I rowsort label-971
SELECT NULLIF ( - - COUNT ( DISTINCT + 46 ), + 24 * 32 ) * - - 62
----
62

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

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT ALL - 69 DIV - + 73 * - + 5
----
0

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL - 69 / - + 73 * - + 5
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-974
SELECT + - 64 * + - MIN( + 7 ) + - + 91 AS col1, - 28 AS col2
----
357
-28

skipif mysql # not compatible
query II rowsort label-974
SELECT + - 64 * + - MIN ( + 7 ) + - + 91 AS col1, - 28 AS col2
----
357
-28

query I rowsort
SELECT ALL + - 74 col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-976
SELECT + MIN( + - 73 ) AS col2, 62
----
-73
62

skipif mysql # not compatible
query II rowsort label-976
SELECT + MIN ( + - 73 ) AS col2, 62
----
-73
62

query I rowsort
SELECT + 31 - + 55 - - 96 + 4
----
76

query I rowsort
SELECT + 40 * + 8 + 43
----
363

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

query I rowsort
SELECT - 84 * 66 AS col2
----
-5544

query II rowsort
SELECT ALL 22 * + + 56 * 39 col0, 2 AS col0
----
48048
2

query I rowsort
SELECT + 34 * + 23 AS col1
----
782

query I rowsort
SELECT DISTINCT 45 + 42
----
87

query I rowsort
SELECT + CASE - + 46 WHEN - 40 * + NULLIF ( - 73, + + 0 * - 81 ) * 44 * - + 97 THEN + - 66 ELSE + 15 * 24 END
----
360

query I rowsort
SELECT ALL - ( 54 ) + 20 + - - 14 * 26 * 5 * + 72
----
131006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-986
SELECT - NULLIF ( 27, + - 12 * + + CAST( - 63 AS SIGNED ) ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-986
SELECT - NULLIF ( 27, + - 12 * + + CAST ( - 63 AS INTEGER ) ) AS col1
----
-27

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

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL - CAST ( NULL AS INTEGER ) + 27
----
NULL

query II rowsort
SELECT + 3 * - 17 * 12, 83 * 2 AS col1
----
-612
166

query I rowsort
SELECT DISTINCT 9 + - 17 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT + ( + 87 ) + 82 + + 56 * + 37 / + COUNT( * ) + + CASE - 59 WHEN COUNT( * ) THEN + 7 - + + 99 * + COUNT( * ) / + + 78 / - 37 END + + - 9 * + + 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT + ( + 87 ) + 82 + + 56 * + 37 / + COUNT ( * ) + + CASE - 59 WHEN COUNT ( * ) THEN + 7 - + + 99 * + COUNT ( * ) / + + 78 / - 37 END + + - 9 * + + 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-991
SELECT - COALESCE ( + 47, + 9, + + 14 * - - COUNT( * ) + - - ( - 69 ) * - - COALESCE ( + + 77, 14 ) ) AS col1, 49
----
-47
49

skipif mysql # not compatible
query II rowsort label-991
SELECT - COALESCE ( + 47, + 9, + + 14 * - - COUNT ( * ) + - - ( - 69 ) * - - COALESCE ( + + 77, 14 ) ) AS col1, 49
----
-47
49

query I rowsort
SELECT + 67 + 21 + - + ( 91 ) * - 67 AS col1
----
6185

query I rowsort
SELECT DISTINCT 79 * 72
----
5688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-994
SELECT + 44 + CAST( + 62 AS SIGNED ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-994
SELECT + 44 + CAST ( + 62 AS INTEGER ) AS col0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT ALL 8 DIV - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL 8 / - 48 AS col2
----
0

query I rowsort
SELECT + 20 + + 40 * + 51 * - 97 + - 44
----
-197904

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT - COUNT( ALL + + 7 ) + + + 35
----
34

skipif mysql # not compatible
query I rowsort label-997
SELECT - COUNT ( ALL + + 7 ) + + + 35
----
34

query I rowsort
SELECT - 72 * + 33 * + + 85 AS col0
----
-201960

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1000
SELECT + 43 * + COUNT( * ) + 71 col0, - 67 + + - 42
----
114
-109

skipif mysql # not compatible
query II rowsort label-1000
SELECT + 43 * + COUNT ( * ) + 71 col0, - 67 + + - 42
----
114
-109

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

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

query I rowsort
SELECT - - 59 + 2 AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT - - 53 DIV 25 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1003
SELECT - - 53 / 25 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT DISTINCT - 20 DIV + + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT - 20 / + + 98 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1006
SELECT ALL + - 38 * - - 87 + - - 59 AS col1, 52 * COALESCE ( + - 52, - 61 DIV + 69, - 56 ) * + - COUNT( * )
----
-3247
2704

skipif mysql # not compatible
query II rowsort label-1006
SELECT ALL + - 38 * - - 87 + - - 59 AS col1, 52 * COALESCE ( + - 52, - 61 / + 69, - 56 ) * + - COUNT ( * )
----
-3247
2704

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT DISTINCT - - 75 * - NULLIF ( 86, + 12 ) * + COUNT( * ) * 72 + + 19 + + - COUNT( * ) + + - 25 AS col1
----
-464407

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT - - 75 * - NULLIF ( 86, + 12 ) * + COUNT ( * ) * 72 + + 19 + + - COUNT ( * ) + + - 25 AS col1
----
-464407

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1011
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 10 * + 65 * + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 10 * + 65 * + 16 AS col2
----
NULL

query I rowsort
SELECT - 59 * + 56
----
-3304

query I rowsort
SELECT ALL - 48 * - 17 + - 24 col0
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT + MIN( DISTINCT + 53 ) col0
----
53

skipif mysql # not compatible
query I rowsort label-1014
SELECT + MIN ( DISTINCT + 53 ) col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * + 12 * - ( + - COUNT( * ) ) + 54 + - - 47 * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 12 * - ( + - COUNT ( * ) ) + 54 + - - 47 * + 32
----
NULL

query II rowsort
SELECT DISTINCT + 20 col2, - 92
----
20
-92

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1019
SELECT + 4 + - 20 AS col0, 87 - + - 50 + + 71 DIV - SUM( ALL + 76 ) * 61 + + 91 + - COUNT( * ) AS col1
----
-16
227

skipif mysql # not compatible
query II rowsort label-1019
SELECT + 4 + - 20 AS col0, 87 - + - 50 + + 71 / - SUM ( ALL + 76 ) * 61 + + 91 + - COUNT ( * ) AS col1
----
-16
227

query I rowsort
SELECT DISTINCT 70 * 63 + + 44
----
4454

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT ALL COALESCE ( + ( + - 81 ), COUNT( * ) + COUNT( * ) ) * + 57 + + ( 11 )
----
-4606

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL COALESCE ( + ( + - 81 ), COUNT ( * ) + COUNT ( * ) ) * + 57 + + ( 11 )
----
-4606

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT ALL + ( + COUNT( * ) ) * + 99 + 68 + + 88 AS col1
----
255

skipif mysql # not compatible
query I rowsort label-1022
SELECT ALL + ( + COUNT ( * ) ) * + 99 + 68 + + 88 AS col1
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT - 68 DIV + 54 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1023
SELECT - 68 / + 54 AS col2
----
-1

query I rowsort
SELECT ALL 38 * + 90
----
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT MAX( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-1025
SELECT MAX ( - 38 )
----
-38

query I rowsort
SELECT ALL + 88 * - - 30 AS col0
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT DISTINCT - COUNT( * ) * - 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT - COUNT ( * ) * - 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL - 54 * + COUNT( * ) - - 17
----
-37

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL - 54 * + COUNT ( * ) - - 17
----
-37

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT COUNT( - - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-1031
SELECT COUNT ( - - 37 )
----
1

query I rowsort
SELECT ALL 96 - + - 86
----
182

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT MIN( ALL + 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1034
SELECT MIN ( ALL + 36 ) AS col1
----
36

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

skipif mysql # not compatible
query I rowsort label-1035
SELECT - MAX ( DISTINCT - 12 )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-1036
SELECT ALL 78 col2, COUNT( * )
----
78
1

skipif mysql # not compatible
query II rowsort label-1036
SELECT ALL 78 col2, COUNT ( * )
----
78
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1037
SELECT CASE 20 WHEN + + CAST( NULL AS SIGNED ) THEN - 77 * + 52 + 32 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1037
SELECT CASE 20 WHEN + + CAST ( NULL AS INTEGER ) THEN - 77 * + 52 + 32 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT - - 65, - 73 * 22 * 90 + COUNT( - - 26 ) AS col0
----
65
-144539

skipif mysql # not compatible
query II rowsort label-1038
SELECT - - 65, - 73 * 22 * 90 + COUNT ( - - 26 ) AS col0
----
65
-144539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1039
SELECT DISTINCT COUNT( * ) DIV + - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT COUNT ( * ) / + - 49 AS col1
----
0

query I rowsort
SELECT - 77 * - 85 AS col2
----
6545

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1042
SELECT ALL + 80 AS col2, 26 + - COUNT( * )
----
80
25

skipif mysql # not compatible
query II rowsort label-1042
SELECT ALL + 80 AS col2, 26 + - COUNT ( * )
----
80
25

query I rowsort
SELECT + ( 23 ) * - - 27
----
621

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT 14 DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-1044
SELECT 14 / 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT DISTINCT + CASE WHEN COUNT( - ( - 92 ) ) IS NULL THEN - 3 ELSE NULL END + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT + CASE WHEN COUNT ( - ( - 92 ) ) IS NULL THEN - 3 ELSE NULL END + 7 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1046
SELECT ALL - ( + + COALESCE ( CASE - 2 WHEN + 38 - + 85 / + + CAST( NULL AS SIGNED ) * + 28 * 70 THEN - COUNT( - ( - 97 ) ) ELSE - 59 END, - 80 ) ) + + 53 + - + ( 69 )
----
43

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL - ( + + COALESCE ( CASE - 2 WHEN + 38 - + 85 / + + CAST ( NULL AS INTEGER ) * + 28 * 70 THEN - COUNT ( - ( - 97 ) ) ELSE - 59 END, - 80 ) ) + + 53 + - + ( 69 )
----
43

query I rowsort
SELECT ALL + 26 * 43
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT DISTINCT 58 + + + 85 + + COUNT( * )
----
144

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT 58 + + + 85 + + COUNT ( * )
----
144

query I rowsort
SELECT ALL + + 30 * - 94 col2
----
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT + MAX( 97 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-1050
SELECT + MAX ( 97 ) col1
----
97

query I rowsort
SELECT DISTINCT + 9 + - 2 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT DISTINCT + 37 + MAX( - 15 )
----
22

skipif mysql # not compatible
query I rowsort label-1052
SELECT DISTINCT + 37 + MAX ( - 15 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT 17 - + 29 * - NULLIF ( 3, - - 3 ) + - - COUNT( * ) * + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT 17 - + 29 * - NULLIF ( 3, - - 3 ) + - - COUNT ( * ) * + 25 AS col2
----
NULL

query I rowsort
SELECT 92 * - + 26 + + + 20
----
-2372

onlyif mysql # aggregate syntax: 
query II rowsort label-1055
SELECT 16 + + + 32 col2, + CASE 81 WHEN 38 + + 0 * + - 51 THEN + + 86 WHEN + SUM( + - 47 ) * + NULLIF ( 46, + - 1 * + 76 ) * - 18 * COUNT( * ) THEN NULL END AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1055
SELECT 16 + + + 32 col2, + CASE 81 WHEN 38 + + 0 * + - 51 THEN + + 86 WHEN + SUM ( + - 47 ) * + NULLIF ( 46, + - 1 * + 76 ) * - 18 * COUNT ( * ) THEN NULL END AS col2
----
48
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1056
SELECT ALL CAST( + + 28 AS SIGNED ) DIV - + 65 + - 93 * + 66
----
-6138

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL CAST ( + + 28 AS INTEGER ) / - + 65 + - 93 * + 66
----
-6138

query I rowsort
SELECT ALL 8 * - 78 AS col1
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT DISTINCT 90 * - COALESCE ( + + SUM( DISTINCT - 76 ), - - 84 * + 7 )
----
6840

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT 90 * - COALESCE ( + + SUM ( DISTINCT - 76 ), - - 84 * + 7 )
----
6840

query I rowsort
SELECT 38 + + 60 + - 45 + - 28 * - 33 col1
----
977

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

skipif mysql # not compatible
query I rowsort label-1060
SELECT + 25 / + + 37
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT ALL + - 66 * 67 * 93 DIV + + 11 + 32
----
-37354

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL + - 66 * 67 * 93 / + + 11 + 32
----
-37354

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1063
SELECT ALL CAST( - 47 AS SIGNED ) DIV 38
----
-1

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL CAST ( - 47 AS INTEGER ) / 38
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT 59 + - + COUNT( * ) * 10 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-1065
SELECT 59 + - + COUNT ( * ) * 10 AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1066
SELECT + 84 + + MIN( + 97 ), 51 + - ( 27 ) AS col2
----
181
24

skipif mysql # not compatible
query II rowsort label-1066
SELECT + 84 + + MIN ( + 97 ), 51 + - ( 27 ) AS col2
----
181
24

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

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

query II rowsort
SELECT - NULLIF ( 1, - 12 ) AS col0, 94 AS col1
----
-1
94

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

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

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

skipif mysql # not compatible
query I rowsort label-1070
SELECT + CAST ( NULL AS REAL ) + + - 86 * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT ALL MIN( ALL - - 43 ) + - 57
----
-14

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL MIN ( ALL - - 43 ) + - 57
----
-14

query II rowsort
SELECT DISTINCT + 13 + + 63 AS col2, - 79 AS col1
----
76
-79

query I rowsort
SELECT - 77 * - + 33 col0
----
2541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1074
SELECT ALL + 11 * - 64 - + - 28 + + 95 DIV - COALESCE ( + 61, + 47, - 9 * - 3 + + ( - 1 ) ) - 63 + 32 + + NULLIF ( COUNT( * ), - 67 + - COUNT( * ) ) + - 93 AS col1
----
-800

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL + 11 * - 64 - + - 28 + + 95 / - COALESCE ( + 61, + 47, - 9 * - 3 + + ( - 1 ) ) - 63 + 32 + + NULLIF ( COUNT ( * ), - 67 + - COUNT ( * ) ) + - 93 AS col1
----
-800

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT 81 DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-1076
SELECT 81 / + 26
----
3

query I rowsort
SELECT 17 * - 15 AS col2
----
-255

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

skipif mysql # not compatible
query I rowsort label-1078
SELECT MIN ( ALL - 4 )
----
-4

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

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

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

skipif mysql # not compatible
query I rowsort label-1080
SELECT SUM ( DISTINCT - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL - SUM( - ( - 50 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL - SUM ( - ( - 50 ) )
----
-50

query I rowsort
SELECT ALL - 60 - 82
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT 7 DIV 12 * 26 * - 58 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1083
SELECT 7 / 12 * 26 * - 58 AS col0
----
0

query I rowsort
SELECT 42 * + 85 col0
----
3570

query I rowsort
SELECT 15 * + 46 * + NULLIF ( + 65, 87 ) + + ( - 78 )
----
44772

query I rowsort
SELECT ( - 38 ) * + 73
----
-2774

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT DISTINCT - ( + MAX( DISTINCT 16 ) ) * - 82 AS col2
----
1312

skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT - ( + MAX ( DISTINCT 16 ) ) * - 82 AS col2
----
1312

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT ALL 85 - - + MAX( + ( + 36 ) )
----
121

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL 85 - - + MAX ( + ( + 36 ) )
----
121

query I rowsort
SELECT 32 * + - 22
----
-704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1090
SELECT ALL - 15 * - + 22 DIV - COUNT( * )
----
-330

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL - 15 * - + 22 / - COUNT ( * )
----
-330

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

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

query I rowsort
SELECT 42 * - 66
----
-2772

onlyif mysql # aggregate syntax: 
query II rowsort label-1093
SELECT 48 + 43 + - - 25 + + 27, COUNT( * ) col2
----
143
1

skipif mysql # not compatible
query II rowsort label-1093
SELECT 48 + 43 + - - 25 + + 27, COUNT ( * ) col2
----
143
1

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

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

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

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

query I rowsort
SELECT DISTINCT ( 73 ) AS col0
----
73

query I rowsort
SELECT ALL - 91 + 58 AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1098
SELECT DISTINCT SUM( ALL ( + COALESCE ( - 44, + - 36 ) ) ) + - + 45 + + + ( + 79 ) DIV + 26 + 62 DIV + + 88 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT SUM ( ALL ( + COALESCE ( - 44, + - 36 ) ) ) + - + 45 + + + ( + 79 ) / + 26 + 62 / + + 88 AS col1
----
-86

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

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

query I rowsort
SELECT DISTINCT + 53 * + + 53 AS col0
----
2809

query I rowsort
SELECT + NULLIF ( - - 39, + 36 ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1102
SELECT - - COUNT( * ) * + 29 - - 0 AS col2, NULLIF ( COUNT( * ), 81 - + 31 )
----
29
1

skipif mysql # not compatible
query II rowsort label-1102
SELECT - - COUNT ( * ) * + 29 - - 0 AS col2, NULLIF ( COUNT ( * ), 81 - + 31 )
----
29
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1103
SELECT - 68 * CAST( NULL AS DECIMAL ) / - 3 / - ( 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT - 68 * CAST ( NULL AS REAL ) / - 3 / - ( 32 ) AS col1
----
NULL

query II rowsort
SELECT - 74 AS col1, + 86
----
-74
86

query I rowsort
SELECT - 21 - 83
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-1106
SELECT + 95 DIV + + 5 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-1106
SELECT + 95 / + + 5 AS col1
----
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT + MAX( ALL 50 ) * 47
----
2350

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT + MAX ( ALL 50 ) * 47
----
2350

query II rowsort
SELECT ALL + 2 AS col1, 12 + - - 13 - 41 + ( + + 76 )
----
2
60

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

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

query I rowsort
SELECT DISTINCT + - 97 * + + 18 AS col0
----
-1746

query I rowsort
SELECT ALL - 34 + - 0 * 96
----
-34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1114
SELECT - + 60 + + COUNT( * ) + + 86 * - COUNT( * ) * + CAST( - 94 AS SIGNED ) AS col1, - 50 * 64
----
8025
-3200

skipif mysql # not compatible
query II rowsort label-1114
SELECT - + 60 + + COUNT ( * ) + + 86 * - COUNT ( * ) * + CAST ( - 94 AS INTEGER ) AS col1, - 50 * 64
----
8025
-3200

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

query I rowsort
SELECT + NULLIF ( + 29, - 32 + 34 ) AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT + 51 * - COUNT( * ) * + 40 AS col1
----
-2040

skipif mysql # not compatible
query I rowsort label-1117
SELECT + 51 * - COUNT ( * ) * + 40 AS col1
----
-2040

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT + 27 + + 91 + - 98 * - + COUNT( * ) AS col2
----
216

skipif mysql # not compatible
query I rowsort label-1118
SELECT + 27 + + 91 + - 98 * - + COUNT ( * ) AS col2
----
216

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT + ( + CASE + 36 WHEN 61 * + COALESCE ( - COALESCE ( ( - 83 ), - 74 ), - 11, + COUNT( * ) ) THEN NULL WHEN - ( 41 ) THEN NULL ELSE - MIN( - 1 ) END )
----
1

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT + ( + CASE + 36 WHEN 61 * + COALESCE ( - COALESCE ( ( - 83 ), - 74 ), - 11, + COUNT ( * ) ) THEN NULL WHEN - ( 41 ) THEN NULL ELSE - MIN ( - 1 ) END )
----
1

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

skipif mysql # not compatible
query I rowsort label-1121
SELECT + 73 / - + 76
----
0

query I rowsort
SELECT ALL 79 * - + 94 * 77 AS col0
----
-571802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1123
SELECT + MAX( + + 32 ) + - 63 / - + 91 + + CAST( NULL AS DECIMAL ), + 95 * - CAST( NULL AS SIGNED ) - 66
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1123
SELECT + MAX ( + + 32 ) + - 63 / - + 91 + + CAST ( NULL AS REAL ), + 95 * - CAST ( NULL AS INTEGER ) - 66
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL + SUM( DISTINCT - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL + SUM ( DISTINCT - 76 ) AS col0
----
-76

query I rowsort
SELECT ALL + NULLIF ( - 95, - 6 / 92 ) AS col0
----
-95

query I rowsort
SELECT CASE + 93 WHEN + COALESCE ( + 58, - 8 ) * - 21 THEN + 1 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL - CAST( NULL AS SIGNED ) * + 31 + - 34 + - 18 + 60 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL - CAST ( NULL AS INTEGER ) * + 31 + - 34 + - 18 + 60 * - 66
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1128
SELECT ALL - 94 DIV - COALESCE ( + - ( - ( 5 ) ), MIN( - 48 ), - - 2 )
----
18

skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL - 94 / - COALESCE ( + - ( - ( 5 ) ), MIN ( - 48 ), - - 2 )
----
18

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

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

query I rowsort
SELECT ALL 12 * - 59 + - 7 + + 8
----
-707

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT - COUNT( * ) - - - 14
----
-15

skipif mysql # not compatible
query I rowsort label-1131
SELECT - COUNT ( * ) - - - 14
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT + SUM( + 5 ) * - - 99 - + + 75
----
420

skipif mysql # not compatible
query I rowsort label-1132
SELECT + SUM ( + 5 ) * - - 99 - + + 75
----
420

query I rowsort
SELECT - 57 + - 56 AS col2
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT - COUNT( 14 ) * + - COUNT( DISTINCT 19 )
----
1

skipif mysql # not compatible
query I rowsort label-1134
SELECT - COUNT ( 14 ) * + - COUNT ( DISTINCT 19 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1135
SELECT + + 74 + - + 9 + + 10 * - + COALESCE ( + + 35, 29 * 46 + + MAX( DISTINCT - 74 ), - 95 * COALESCE ( + 91, - 14 DIV ( 8 ) * + 97 + 81 + 73 ) ) + - 56
----
-341

skipif mysql # not compatible
query I rowsort label-1135
SELECT + + 74 + - + 9 + + 10 * - + COALESCE ( + + 35, 29 * 46 + + MAX ( DISTINCT - 74 ), - 95 * COALESCE ( + 91, - 14 / ( 8 ) * + 97 + 81 + 73 ) ) + - 56
----
-341

query I rowsort
SELECT - - 99 + - - CASE + 75 WHEN - - 73 THEN + + 40 END + + - 70 * 94 col1
----
NULL

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

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

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

query I rowsort
SELECT - + 24 + - - 64
----
40

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

query I rowsort
SELECT - - 49 + - - 51 AS col2
----
100

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

query I rowsort
SELECT ALL - - ( + 90 ) - - 63 AS col0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1144
SELECT + CAST( - 56 AS SIGNED ) + - 62 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-1144
SELECT + CAST ( - 56 AS INTEGER ) + - 62 AS col2
----
-118

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

query I rowsort
SELECT - - 97 * 21
----
2037

query I rowsort
SELECT + 9 + - 15 AS col2
----
-6

query I rowsort
SELECT ALL + 60 * - 36
----
-2160

query I rowsort
SELECT - 21 * - 75 AS col0
----
1575

query II rowsort
SELECT - 98 * 81 * - - 9 AS col0, 45
----
-71442
45

query I rowsort
SELECT ALL - 88 * 46
----
-4048

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT ALL 68 DIV - + 36
----
-1

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL 68 / - + 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT + CASE - NULLIF ( + 33, + 2 ) WHEN ( - 4 ) * 48 * - 10 + - - 48 THEN + 33 WHEN + COUNT( * ) THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1153
SELECT + CASE - NULLIF ( + 33, + 2 ) WHEN ( - 4 ) * 48 * - 10 + - - 48 THEN + 33 WHEN + COUNT ( * ) THEN - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1154
SELECT - 85 DIV + 18
----
-4

skipif mysql # not compatible
query I rowsort label-1154
SELECT - 85 / + 18
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-1155
SELECT 44 AS col1, + 30 DIV - 66 * 76 col1
----
44
0

skipif mysql # not compatible
query II rowsort label-1155
SELECT 44 AS col1, + 30 / - 66 * 76 col1
----
44
0

query II rowsort
SELECT 79 AS col0, - 42
----
79
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1157
SELECT 98 * - + 6 - - MAX( - 37 ) * CASE - CAST( NULL AS SIGNED ) WHEN ( + ( + 19 ) ) THEN 1 END + + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT 98 * - + 6 - - MAX ( - 37 ) * CASE - CAST ( NULL AS INTEGER ) WHEN ( + ( + 19 ) ) THEN 1 END + + 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT ALL 26 * SUM( - - CAST( 12 AS SIGNED ) )
----
312

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL 26 * SUM ( - - CAST ( 12 AS INTEGER ) )
----
312

query I rowsort
SELECT 89 * 31 + - 29
----
2730

query I rowsort
SELECT DISTINCT 61 + 23
----
84

query I rowsort
SELECT DISTINCT 19 + - 61
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT ALL 78 * - + 13 * + COUNT( * )
----
-1014

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL 78 * - + 13 * + COUNT ( * )
----
-1014

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT ALL 90 + + - COUNT( * ) + + 83 AS col1
----
172

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL 90 + + - COUNT ( * ) + + 83 AS col1
----
172

query I rowsort
SELECT + - 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT + 37 + 54 * 86 + + COUNT( * )
----
4682

skipif mysql # not compatible
query I rowsort label-1165
SELECT + 37 + 54 * 86 + + COUNT ( * )
----
4682

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT DISTINCT + 83 + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT + 83 + COUNT ( * )
----
84

query I rowsort
SELECT + + 7 * - 61 + 39 - - - 21
----
-409

query I rowsort
SELECT + 90 * 65 + + 83
----
5933

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

query I rowsort
SELECT ( + 17 ) * + NULLIF ( + 18, - 87 + 84 * - ( + 72 ) )
----
306

query I rowsort
SELECT 29 * - 52 AS col0
----
-1508

onlyif mysql # DIV for integer division: 
query I rowsort label-1172
SELECT ALL 13 DIV + ( + 19 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL 13 / + ( + 19 ) AS col1
----
0

query I rowsort
SELECT - + CASE - 32 WHEN - 87 * 42 THEN + + ( - - AVG ( ALL + + 66 ) ) END
----
NULL

query I rowsort
SELECT ALL - 7 - + + 84
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT + COUNT( * ) - + + COUNT( ALL 45 )
----
0

skipif mysql # not compatible
query I rowsort label-1175
SELECT + COUNT ( * ) - + + COUNT ( ALL 45 )
----
0

query I rowsort
SELECT 85 - + + 20
----
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT SUM( ALL - + 24 ) * + + COUNT( * ) * 26 + MAX( 29 )
----
-595

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT SUM ( ALL - + 24 ) * + + COUNT ( * ) * 26 + MAX ( 29 )
----
-595

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

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

query II rowsort
SELECT ALL 58 AS col1, 93 * - + 28 col0
----
58
-2604

onlyif mysql # DIV for integer division: 
query I rowsort label-1181
SELECT 32 DIV + + 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-1181
SELECT 32 / + + 57 col1
----
0

query II rowsort
SELECT ALL 12 AS col0, - 99
----
12
-99

query I rowsort
SELECT 16 + 97
----
113

query I rowsort
SELECT 51 - 66 + + 21 * - 32
----
-687

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1185
SELECT SUM( DISTINCT - CASE - - CAST( + - 49 AS DECIMAL ) WHEN - + 63 THEN 62 * - 37 ELSE 16 END ) * COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-1185
SELECT SUM ( DISTINCT - CASE - - CAST ( + - 49 AS REAL ) WHEN - + 63 THEN 62 * - 37 ELSE 16 END ) * COUNT ( * )
----
-16

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

skipif mysql # not compatible
query I rowsort label-1186
SELECT 41 + + 6 + + COUNT ( * ) AS col0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT 48 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-1187
SELECT 48 / + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT NULLIF ( + 24, + 56 ) * - SUM( DISTINCT - 61 ) + + 50 AS col2
----
1514

skipif mysql # not compatible
query I rowsort label-1188
SELECT NULLIF ( + 24, + 56 ) * - SUM ( DISTINCT - 61 ) + + 50 AS col2
----
1514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1189
SELECT ALL - CAST( - 12 AS SIGNED ) + - 16 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL - CAST ( - 12 AS INTEGER ) + - 16 AS col1
----
-4

query I rowsort
SELECT DISTINCT 20 + - - 86
----
106

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

query II rowsort
SELECT 51, - 13 + - 28 AS col0
----
51
-41

query I rowsort
SELECT 83 * + 54
----
4482

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT DISTINCT - NULLIF ( 59, - COUNT( * ) * + - COUNT( * ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT - NULLIF ( 59, - COUNT ( * ) * + - COUNT ( * ) ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT + + 31 * 30 * - 21 + + + 82 - - MAX( + 75 ) + - - 41 * + 13 - - 34 * - - 91
----
-15746

skipif mysql # not compatible
query I rowsort label-1195
SELECT + + 31 * 30 * - 21 + + + 82 - - MAX ( + 75 ) + - - 41 * + 13 - - 34 * - - 91
----
-15746

query I rowsort
SELECT DISTINCT + 52 - + 72
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT ALL - 97 - + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL - 97 - + COUNT ( * )
----
-98

query I rowsort
SELECT DISTINCT 2 * + - 1 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT 44 * - COUNT( * ) * + + MAX( DISTINCT + - 60 ) + + 2 AS col0
----
2642

skipif mysql # not compatible
query I rowsort label-1199
SELECT 44 * - COUNT ( * ) * + + MAX ( DISTINCT + - 60 ) + + 2 AS col0
----
2642

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT - 3 + CASE - 27 WHEN 41 THEN - 33 * - 43 + + 1 + - 66 WHEN 33 THEN + 29 - CAST( 71 AS SIGNED ) * + + 64 * + - 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT - 3 + CASE - 27 WHEN 41 THEN - 33 * - 43 + + 1 + - 66 WHEN 33 THEN + 29 - CAST ( 71 AS INTEGER ) * + + 64 * + - 98 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1202
SELECT NULLIF ( - NULLIF ( - COUNT( DISTINCT - 87 ), - - COUNT( * ) + - ( - 5 ) * + 27 ), - 51 + + + 18 ) * + ( + 87 ), + COUNT( * ) * 0 * 74 * + 42 + - 31 AS col0
----
87
-31

skipif mysql # not compatible
query II rowsort label-1202
SELECT NULLIF ( - NULLIF ( - COUNT ( DISTINCT - 87 ), - - COUNT ( * ) + - ( - 5 ) * + 27 ), - 51 + + + 18 ) * + ( + 87 ), + COUNT ( * ) * 0 * 74 * + 42 + - 31 AS col0
----
87
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT - COUNT( ALL - - 77 ) * - 64 * COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-1203
SELECT - COUNT ( ALL - - 77 ) * - 64 * COUNT ( * )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1204
SELECT ALL 72, + CAST( + + COUNT( * ) AS SIGNED ) * - + 39 + + + CASE + 7 WHEN - 67 THEN NULL WHEN + 23 * 44 THEN 16 END * + + 80 AS col2
----
72
NULL

skipif mysql # not compatible
query II rowsort label-1204
SELECT ALL 72, + CAST ( + + COUNT ( * ) AS INTEGER ) * - + 39 + + + CASE + 7 WHEN - 67 THEN NULL WHEN + 23 * 44 THEN 16 END * + + 80 AS col2
----
72
NULL

query I rowsort
SELECT - COALESCE ( - ( ( 32 ) ), + 84 ) + + 40 AS col2
----
72

query I rowsort
SELECT 0 + + + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT ALL COUNT( DISTINCT ( + 88 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL COUNT ( DISTINCT ( + 88 ) ) col0
----
1

query I rowsort
SELECT 16 * ( + 59 ) col2
----
944

query I rowsort
SELECT 51 + - 99 + - CASE 39 WHEN + 30 THEN + + 9 WHEN 56 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1210
SELECT - COUNT( * ) + + + 24 - + + 0 DIV - 75 * 93 DIV COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-1210
SELECT - COUNT ( * ) + + + 24 - + + 0 / - 75 * 93 / COUNT ( * ) AS col1
----
23

query I rowsort
SELECT ALL - 71 + - 9 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT - NULLIF ( + 93, - + ( - 45 ) - - + 34 + 90 * + COUNT( * ) + - 8 )
----
-93

skipif mysql # not compatible
query I rowsort label-1212
SELECT - NULLIF ( + 93, - + ( - 45 ) - - + 34 + 90 * + COUNT ( * ) + - 8 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1213
SELECT + 32 + + - COUNT( * ) + 94 - - NULLIF ( CAST( NULL AS SIGNED ), + + 83 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT + 32 + + - COUNT ( * ) + 94 - - NULLIF ( CAST ( NULL AS INTEGER ), + + 83 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1214
SELECT + SUM( - - CASE + - 51 WHEN - 40 + - + 36 THEN + 80 ELSE 21 * + ( + + 91 ) END ) * + COUNT( * ) + - CAST( - - 5 AS SIGNED ) AS col0
----
1906

skipif mysql # not compatible
query I rowsort label-1214
SELECT + SUM ( - - CASE + - 51 WHEN - 40 + - + 36 THEN + 80 ELSE 21 * + ( + + 91 ) END ) * + COUNT ( * ) + - CAST ( - - 5 AS INTEGER ) AS col0
----
1906

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT NULLIF ( + - 86, - + 88 + + COUNT( * ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-1216
SELECT NULLIF ( + - 86, - + 88 + + COUNT ( * ) ) AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT - 25 * COUNT( * ) * - - 57 col2
----
-1425

skipif mysql # not compatible
query I rowsort label-1217
SELECT - 25 * COUNT ( * ) * - - 57 col2
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT - + 86 + SUM( ALL + 44 ) * - - 50 * 71
----
156114

skipif mysql # not compatible
query I rowsort label-1218
SELECT - + 86 + SUM ( ALL + 44 ) * - - 50 * 71
----
156114

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT ALL + MAX( - 53 ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL + MAX ( - 53 ) col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1220
SELECT - + 37 * - 97 / + + 96 + CAST( NULL AS SIGNED ) - + COUNT( - 40 ) + - + ( - - 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT - + 37 * - 97 / + + 96 + CAST ( NULL AS INTEGER ) - + COUNT ( - 40 ) + - + ( - - 64 ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1222
SELECT ALL + + MIN( - 2 ) AS col2, 8
----
-2
8

skipif mysql # not compatible
query II rowsort label-1222
SELECT ALL + + MIN ( - 2 ) AS col2, 8
----
-2
8

onlyif mysql # DIV for integer division: 
query II rowsort label-1223
SELECT - 65 * - + ( 90 ) col0, 46 DIV + + 85 AS col2
----
5850
0

skipif mysql # not compatible
query II rowsort label-1223
SELECT - 65 * - + ( 90 ) col0, 46 / + + 85 AS col2
----
5850
0

query I rowsort
SELECT + 35 + - 29 + - - 96 + + + 66 - - 88
----
256

onlyif mysql # DIV for integer division: 
query I rowsort label-1225
SELECT - - 40 * + 82 - + - 20 DIV 7 AS col1
----
3282

skipif mysql # not compatible
query I rowsort label-1225
SELECT - - 40 * + 82 - + - 20 / 7 AS col1
----
3282

query II rowsort
SELECT - - 68 * 16 * + 23 + ( NULLIF ( + 87, 49 ) ), + 8 + + 30 AS col2
----
25111
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ALL + SUM( - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL + SUM ( - 67 ) AS col0
----
-67

query I rowsort
SELECT ALL - + COALESCE ( 15, 22 ) + - 81 col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT - MAX( ALL 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-1229
SELECT - MAX ( ALL 17 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-1230
SELECT + 27 * 8 * - + 9 col0, + COALESCE ( + + COUNT( * ), - COUNT( * ) * + SUM( DISTINCT 48 ), - 17 ) AS col0
----
-1944
1

skipif mysql # not compatible
query II rowsort label-1230
SELECT + 27 * 8 * - + 9 col0, + COALESCE ( + + COUNT ( * ), - COUNT ( * ) * + SUM ( DISTINCT 48 ), - 17 ) AS col0
----
-1944
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1231
SELECT - ( - - ( NULLIF ( - CAST( NULL AS SIGNED ), + 85 * 61 * - - 4 + - + 70 + + 31 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT - ( - - ( NULLIF ( - CAST ( NULL AS INTEGER ), + 85 * 61 * - - 4 + - + 70 + + 31 ) ) )
----
NULL

query I rowsort
SELECT ALL 9 + + + 73
----
82

query I rowsort
SELECT + 15 - - + 34 col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1234
SELECT ALL CAST( - 95 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL CAST ( - 95 AS INTEGER )
----
-95

query I rowsort
SELECT + 91 - COALESCE ( - 86, 44 * + 32 + - ( 93 ) ) AS col2
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT ALL 3 DIV + 68 * 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1236
SELECT ALL 3 / + 68 * 37 AS col0
----
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1239
SELECT ALL CAST( + SUM( DISTINCT 77 ) AS SIGNED ) + + COALESCE ( + - 66, - - COUNT( * ) + + 29 + SUM( DISTINCT + 71 ) ) - - + CAST( NULL AS SIGNED ) / 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL CAST ( + SUM ( DISTINCT 77 ) AS INTEGER ) + + COALESCE ( + - 66, - - COUNT ( * ) + + 29 + SUM ( DISTINCT + 71 ) ) - - + CAST ( NULL AS INTEGER ) / 51
----
NULL

query I rowsort
SELECT - ( 14 )
----
-14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1242
SELECT ALL 67 DIV - 75 * 36 * + 65
----
0

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL 67 / - 75 * 36 * + 65
----
0

query II rowsort
SELECT 60, 13 AS col1
----
60
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT + COALESCE ( + - COUNT( * ), + COUNT( DISTINCT + ( + 42 ) ) ) + 4 * 65 * 66 + 66 AS col2
----
17225

skipif mysql # not compatible
query I rowsort label-1244
SELECT + COALESCE ( + - COUNT ( * ), + COUNT ( DISTINCT + ( + 42 ) ) ) + 4 * 65 * 66 + 66 AS col2
----
17225

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1248
SELECT ALL SUM( 84 ) * 98 AS col0, 6 - + 99
----
8232
-93

skipif mysql # not compatible
query II rowsort label-1248
SELECT ALL SUM ( 84 ) * 98 AS col0, 6 - + 99
----
8232
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1249
SELECT + CAST( NULL AS SIGNED ) + + - 32 - + - 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1249
SELECT + CAST ( NULL AS INTEGER ) + + - 32 - + - 76 AS col0
----
NULL

query I rowsort
SELECT ALL 7 * + 92
----
644

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

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

skipif mysql # not compatible
query I rowsort label-1252
SELECT + + COUNT ( DISTINCT + 51 ) AS col2
----
1

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

query I rowsort
SELECT ALL + 2 * - + 83 AS col2
----
-166

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT + 36 + - 60 * - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-1256
SELECT + 36 + - 60 * - COUNT ( * )
----
96

query II rowsort
SELECT + 61 AS col2, 47
----
61
47

query I rowsort
SELECT - 6 * + 18 + + 47
----
-61

query I rowsort
SELECT - - 25 * - 9 AS col0
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-1260
SELECT ALL - 19 DIV + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL - 19 / + 38 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1263
SELECT DISTINCT - 99 * - 99 + - ( + 64 ) * - NULLIF ( - ( 40 ), - - 73 - - 41 - - 37 ) + + + CAST( + - CAST( - 75 AS SIGNED ) AS SIGNED ) * - - 81 * - + 81 * + MAX( DISTINCT 24 )
----
-11802559

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT - 99 * - 99 + - ( + 64 ) * - NULLIF ( - ( 40 ), - - 73 - - 41 - - 37 ) + + + CAST ( + - CAST ( - 75 AS INTEGER ) AS INTEGER ) * - - 81 * - + 81 * + MAX ( DISTINCT 24 )
----
-11802559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1264
SELECT DISTINCT - - 57 * + 90 + + 95 * 28 * + 21 - - CASE CASE + 64 WHEN - + COUNT( * ) THEN NULL WHEN + + 35 THEN + + MAX( 6 ) WHEN - - AVG ( ALL - 46 ) + 64 THEN - 84 END WHEN + 33 THEN NULL WHEN 51 DIV - 84 THEN NULL WHEN - NULLIF ( + - 63, + 2 DIV COUNT( ALL - 16 ) + 48 ) * - 57 * MIN( ALL - 93 ) THEN CAST( NULL AS SIGNED ) + - + 14 * 76 * - - 36 ELSE + 43 - + CASE + ( - + 4 ) WHEN 4 * - 4 THEN NULL ELSE + 78 DIV - 65 END END
----
61034

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT - - 57 * + 90 + + 95 * 28 * + 21 - - CASE CASE + 64 WHEN - + COUNT ( * ) THEN NULL WHEN + + 35 THEN + + MAX ( 6 ) WHEN - - AVG ( ALL - 46 ) + 64 THEN - 84 END WHEN + 33 THEN NULL WHEN 51 / - 84 THEN NULL WHEN - NULLIF ( + - 63, + 2 / COUNT ( ALL - 16 ) + 48 ) * - 57 * MIN ( ALL - 93 ) THEN CAST ( NULL AS INTEGER ) + - + 14 * 76 * - - 36 ELSE + 43 - + CASE + ( - + 4 ) WHEN 4 * - 4 THEN NULL ELSE + 78 / - 65 END END
----
61034

query I rowsort
SELECT - 65 + - - 40
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT + COUNT( 55 ) * - 46 * - 89 * + - 97 - + NULLIF ( - 12, - 86 )
----
-397106

skipif mysql # not compatible
query I rowsort label-1266
SELECT + COUNT ( 55 ) * - 46 * - 89 * + - 97 - + NULLIF ( - 12, - 86 )
----
-397106

query II rowsort
SELECT ALL + + 5 AS col2, - 32 AS col1
----
5
-32

query I rowsort
SELECT 63 + 93
----
156

query I rowsort
SELECT - 49 + - 11
----
-60

query I rowsort
SELECT 32 + - + 65
----
-33

query I rowsort
SELECT 41 + + + 18 AS col2
----
59

query I rowsort
SELECT 51 + - + 70 col1
----
-19

query I rowsort
SELECT ALL 62 * + 83 AS col0
----
5146

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT 86 + SUM( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-1274
SELECT 86 + SUM ( - 86 )
----
0

query II rowsort
SELECT 57 * 47, 30 AS col1
----
2679
30

query II rowsort
SELECT 92 * + 24 AS col1, + 48 * + - 0 AS col1
----
2208
0

query I rowsort
SELECT DISTINCT 61 * + 30 AS col0
----
1830

query I rowsort
SELECT ALL - 81 * + - 41 * - 17
----
-56457

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT DISTINCT COUNT( + - 32 ) - + 66 + - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-1279
SELECT DISTINCT COUNT ( + - 32 ) - + 66 + - COUNT ( * )
----
-66

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

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

query I rowsort
SELECT + 72 * - 64 AS col1
----
-4608

onlyif mysql # DIV for integer division: 
query I rowsort label-1282
SELECT - 81 DIV - ( - 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-1282
SELECT - 81 / - ( - 81 )
----
-1

query I rowsort
SELECT 6 - + - 85 AS col1
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1284
SELECT - 41 DIV + - 21 + SUM( ALL + - 73 )
----
-72

skipif mysql # not compatible
query I rowsort label-1284
SELECT - 41 / + - 21 + SUM ( ALL + - 73 )
----
-72

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1286
SELECT ALL - CAST( 16 AS SIGNED ) * + COUNT( * ) * + ( + + 53 ) - ( - COUNT( * ) ) AS col2, 59 - + 78 * - 64
----
-847
5051

skipif mysql # not compatible
query II rowsort label-1286
SELECT ALL - CAST ( 16 AS INTEGER ) * + COUNT ( * ) * + ( + + 53 ) - ( - COUNT ( * ) ) AS col2, 59 - + 78 * - 64
----
-847
5051

query I rowsort
SELECT + 30 * + 91 + - 78
----
2652

query II rowsort
SELECT + NULLIF ( + - 7, + 78 ) * + 87 + - 52 col0, 76
----
-661
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1289
SELECT - + 3 DIV + + 45 + - - 31 - 92 DIV + COUNT( * ) - 32 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-1289
SELECT - + 3 / + + 45 + - - 31 - 92 / + COUNT ( * ) - 32 AS col1
----
-93

query I rowsort
SELECT - 97 * - 26 * - 42 AS col1
----
-105924

query I rowsort
SELECT ALL - - 45 + + ( + 56 ) col0
----
101

query I rowsort
SELECT 29 + - 68 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT ALL - COUNT( DISTINCT - 49 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL - COUNT ( DISTINCT - 49 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT + 62 * + 46 + + COALESCE ( + 80, - 17 * + 56, + + 90 + - COUNT( DISTINCT + 45 ) )
----
2932

skipif mysql # not compatible
query I rowsort label-1294
SELECT + 62 * + 46 + + COALESCE ( + 80, - 17 * + 56, + + 90 + - COUNT ( DISTINCT + 45 ) )
----
2932

query I rowsort
SELECT DISTINCT + 84 + 68 * + - 18
----
-1140

query I rowsort
SELECT DISTINCT 63 + + 4 + 67 - + - 9 + + + 31
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL 98 - - + MIN( + - 57 )
----
41

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL 98 - - + MIN ( + - 57 )
----
41

query I rowsort
SELECT ALL + 39 - + 32
----
7

query I rowsort
SELECT 67 * - 77
----
-5159

query I rowsort
SELECT DISTINCT + 67 * + + 28 col1
----
1876

query I rowsort
SELECT 41 + + - 67 + 70 * + - 18 * 63 * 55
----
-4365926

query I rowsort
SELECT 76 * - + 35 col0
----
-2660

query I rowsort
SELECT 57 / - + CASE - 12 WHEN - + 46 THEN - 68 END
----
NULL

query I rowsort
SELECT 66 - + COALESCE ( - + ( - - 35 ), 69 )
----
101

query I rowsort
SELECT 2 * + 47
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT 76 - CASE + 82 WHEN - - 8 THEN COUNT( * ) + + - 38 - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1306
SELECT 76 - CASE + 82 WHEN - - 8 THEN COUNT ( * ) + + - 38 - COUNT ( * ) END
----
NULL

query II rowsort
SELECT ALL 41, 11 AS col0
----
41
11

query I rowsort
SELECT 92 * - 28 col2
----
-2576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1309
SELECT DISTINCT COUNT( * ) * ( COALESCE ( + 91, 38 + - + 20 - - ( + - 95 ) * 11 DIV - 38 + - + 90 ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT COUNT ( * ) * ( COALESCE ( + 91, 38 + - + 20 - - ( + - 95 ) * 11 / - 38 + - + 90 ) ) AS col2
----
91

query I rowsort
SELECT 75 + - 80
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT 11 - ( - 24 ) * ( + 26 * - COUNT( * ) ) AS col1
----
-613

skipif mysql # not compatible
query I rowsort label-1311
SELECT 11 - ( - 24 ) * ( + 26 * - COUNT ( * ) ) AS col1
----
-613

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

skipif mysql # not compatible
query I rowsort label-1312
SELECT 82 * - ( COUNT ( * ) / + ( - 40 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT COUNT( * ) * + 49 col0
----
49

skipif mysql # not compatible
query I rowsort label-1313
SELECT COUNT ( * ) * + 49 col0
----
49

query I rowsort
SELECT ALL - 63 * + 13 + 45
----
-774

query I rowsort
SELECT COALESCE ( - 56, 74, 13 + - 48 )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1316
SELECT DISTINCT ( + 98 ) * - ( + 50 + + 96 ) + + CAST( NULL AS SIGNED ) * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT ( + 98 ) * - ( + 50 + + 96 ) + + CAST ( NULL AS INTEGER ) * 30 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 49 * 92 + - 34 AS col2
----
4474

query I rowsort
SELECT ALL + 86 * 39 + 0
----
3354

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL + NULLIF ( + 11, MAX( - ( 9 ) ) ) * 83 + - 5 AS col0
----
908

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + NULLIF ( + 11, MAX ( - ( 9 ) ) ) * 83 + - 5 AS col0
----
908

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT ALL 42 * 79 + + COALESCE ( ( 0 ), MAX( ALL ( - 49 ) ) + + COUNT( * ) )
----
3318

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL 42 * 79 + + COALESCE ( ( 0 ), MAX ( ALL ( - 49 ) ) + + COUNT ( * ) )
----
3318

query I rowsort
SELECT 7 + + 62
----
69

query I rowsort
SELECT - 29 * - ( + 57 )
----
1653

query I rowsort
SELECT - 86 * 87 + + 93
----
-7389

query I rowsort
SELECT ALL + 53 * + 26 + 80 AS col0
----
1458

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT MIN( ALL 51 ) col0
----
51

skipif mysql # not compatible
query I rowsort label-1325
SELECT MIN ( ALL 51 ) col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT 70 * 70 + - MIN( DISTINCT + 43 )
----
4857

skipif mysql # not compatible
query I rowsort label-1326
SELECT 70 * 70 + - MIN ( DISTINCT + 43 )
----
4857

query I rowsort
SELECT - 35 * - 30 + 25
----
1075

query I rowsort
SELECT ALL 86 * - 27 AS col1
----
-2322

query I rowsort
SELECT + 92 + ( 84 ) AS col0
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1330
SELECT DISTINCT COALESCE ( 74, CAST( NULL AS SIGNED ), 44 ) * 65 AS col2
----
4810

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT COALESCE ( 74, CAST ( NULL AS INTEGER ), 44 ) * 65 AS col2
----
4810

query I rowsort
SELECT + 86 - 68 * - 57
----
3962

query I rowsort
SELECT + NULLIF ( - 80, - 82 ) * - 86
----
6880

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + 56 + + 11 * MIN( DISTINCT 41 ) AS col1
----
507

skipif mysql # not compatible
query I rowsort label-1333
SELECT + 56 + + 11 * MIN ( DISTINCT 41 ) AS col1
----
507

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT + 91 * MIN( ALL + 47 ) + 36 AS col1
----
4313

skipif mysql # not compatible
query I rowsort label-1334
SELECT + 91 * MIN ( ALL + 47 ) + 36 AS col1
----
4313

query I rowsort
SELECT - 38 + 53 * 35
----
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + NULLIF ( - 11, 63 ) * COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-1336
SELECT + NULLIF ( - 11, 63 ) * COUNT ( * ) AS col1
----
-11

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

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

query I rowsort
SELECT DISTINCT + 36 * + 8
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1339
SELECT 45 * 13 + CASE ( 44 ) + + 75 * + 65 WHEN 5 THEN NULL WHEN ( 24 ) + 60 THEN COUNT( * ) ELSE + 20 + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT 45 * 13 + CASE ( 44 ) + + 75 * + 65 WHEN 5 THEN NULL WHEN ( 24 ) + 60 THEN COUNT ( * ) ELSE + 20 + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT ALL + COUNT( * ) * 57 col2
----
57

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL + COUNT ( * ) * 57 col2
----
57

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1341
SELECT - CAST( + 64 AS DECIMAL ) + 66 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1341
SELECT - CAST ( + 64 AS REAL ) + 66 * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1342
SELECT ALL 84 DIV COALESCE ( 90, 74 * ( 22 ), - 86, 0 * - 16 )
----
0

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL 84 / COALESCE ( 90, 74 * ( 22 ), - 86, 0 * - 16 )
----
0

query I rowsort
SELECT DISTINCT 2 * 38
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL COALESCE ( + ( + 49 ), COUNT( * ) ) col0
----
49

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL COALESCE ( + ( + 49 ), COUNT ( * ) ) col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1345
SELECT ALL + 18 + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL + 18 + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 6
----
NULL

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

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

query I rowsort
SELECT - 48 + - 53 * - 58 AS col0
----
3026

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

skipif mysql # not compatible
query I rowsort label-1348
SELECT + CAST ( + 8 AS INTEGER ) / 74
----
0

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

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

query I rowsort
SELECT - ( - 91 ) * ( 78 )
----
7098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT - 90 + NULLIF ( CAST( NULL AS SIGNED ), + 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1351
SELECT - 90 + NULLIF ( CAST ( NULL AS INTEGER ), + 87 ) AS col0
----
NULL

query I rowsort
SELECT - 29 * 33
----
-957

query I rowsort
SELECT ALL - + 66 + - 76
----
-142

query I rowsort
SELECT DISTINCT + 21 + - 37 * - 48
----
1797

query I rowsort
SELECT - - 52 + 61
----
113

query I rowsort
SELECT DISTINCT + 41 + + ( 79 ) col2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT DISTINCT - - 27 DIV - 91 + - 98 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT - - 27 / - 91 + - 98 AS col0
----
-98

query I rowsort
SELECT - + 33 - COALESCE ( - 92, + 6, + 76 )
----
59

query I rowsort
SELECT - 82 * 84 + 17
----
-6871

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT ALL + NULLIF ( - 29, + 49 + 76 / 87 ) * COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL + NULLIF ( - 29, + 49 + 76 / 87 ) * COUNT ( * )
----
-29

query I rowsort
SELECT DISTINCT + 3 * 45 AS col0
----
135

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

skipif mysql # not compatible
query I rowsort label-1362
SELECT DISTINCT - COUNT ( * ) * 27 - COUNT ( ALL - 56 ) AS col1
----
-28

query I rowsort
SELECT ALL + 86 * 47
----
4042

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT + - COALESCE ( COALESCE ( + 19, 75, - 21, + 12 ), COUNT( * ) - + 97 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1364
SELECT + - COALESCE ( COALESCE ( + 19, 75, - 21, + 12 ), COUNT ( * ) - + 97 ) AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1365
SELECT ALL 86 * - 80 - COALESCE ( - CASE + COUNT( * ) WHEN - 25 THEN 92 * - CASE 17 WHEN + 89 + + COALESCE ( - COUNT( * ) + - COUNT( * ) DIV + NULLIF ( COUNT( * ) * - 52, - 5 - + 52 * 4 ), - 81 ) THEN NULL WHEN 53 * + 26 THEN + COUNT( * ) ELSE 95 * ( + 90 ) END WHEN ( - 13 ) * - 70 THEN 71 + + ( 17 - ( CASE 80 WHEN 73 THEN + 70 + + ( AVG ( COALESCE ( + 37, - 65, - 66 ) ) ) * + 49 END ) ) END + - 52 * + 94, 94 + 63 ) DIV - 2
----
-6802

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL 86 * - 80 - COALESCE ( - CASE + COUNT ( * ) WHEN - 25 THEN 92 * - CASE 17 WHEN + 89 + + COALESCE ( - COUNT ( * ) + - COUNT ( * ) / + NULLIF ( COUNT ( * ) * - 52, - 5 - + 52 * 4 ), - 81 ) THEN NULL WHEN 53 * + 26 THEN + COUNT ( * ) ELSE 95 * ( + 90 ) END WHEN ( - 13 ) * - 70 THEN 71 + + ( 17 - ( CASE 80 WHEN 73 THEN + 70 + + ( AVG ( COALESCE ( + 37, - 65, - 66 ) ) ) * + 49 END ) ) END + - 52 * + 94, 94 + 63 ) / - 2
----
-6802

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1367
SELECT ALL + CASE 88 WHEN - CAST( NULL AS SIGNED ) THEN CAST( NULL AS DECIMAL ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL + CASE 88 WHEN - CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS REAL ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1368
SELECT + COUNT( * ) DIV - ( - 49 ) + CAST( - NULLIF ( 96, 49 ) AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-1368
SELECT + COUNT ( * ) / - ( - 49 ) + CAST ( - NULLIF ( 96, 49 ) AS INTEGER )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT DISTINCT + NULLIF ( + CASE + 55 WHEN 18 / 85 THEN - 39 * + 59 + - 5 * ( 42 * + 96 ) WHEN COALESCE ( 41, 61 + + 37 * + 99 ) THEN NULL WHEN 40 THEN NULL END, - COUNT( * ) - - ( 87 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT + NULLIF ( + CASE + 55 WHEN 18 / 85 THEN - 39 * + 59 + - 5 * ( 42 * + 96 ) WHEN COALESCE ( 41, 61 + + 37 * + 99 ) THEN NULL WHEN 40 THEN NULL END, - COUNT ( * ) - - ( 87 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT + NULLIF ( 35, COUNT( * ) + - COUNT( * ) ) * - 38
----
-1330

skipif mysql # not compatible
query I rowsort label-1370
SELECT + NULLIF ( 35, COUNT ( * ) + - COUNT ( * ) ) * - 38
----
-1330

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1372
SELECT + 24 * - COALESCE ( - CASE 84 WHEN 35 + - CAST( NULL AS SIGNED ) THEN NULL ELSE 65 * 36 END, - 62 + + 75, + CASE - 39 WHEN - 4 + 52 THEN 99 + + 77 ELSE NULL END * + 66 ) + 62
----
56222

skipif mysql # not compatible
query I rowsort label-1372
SELECT + 24 * - COALESCE ( - CASE 84 WHEN 35 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE 65 * 36 END, - 62 + + 75, + CASE - 39 WHEN - 4 + 52 THEN 99 + + 77 ELSE NULL END * + 66 ) + 62
----
56222

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT - MIN( - 8 ) * 87
----
696

skipif mysql # not compatible
query I rowsort label-1373
SELECT - MIN ( - 8 ) * 87
----
696

onlyif mysql # DIV for integer division: 
query I rowsort label-1374
SELECT - 9 DIV - 90 * - 35 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT - 9 / - 90 * - 35 AS col0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1376
SELECT CASE - + 9 WHEN + CAST( NULL AS SIGNED ) / + 54 + - 74 THEN - COUNT( * ) * - 7 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1376
SELECT CASE - + 9 WHEN + CAST ( NULL AS INTEGER ) / + 54 + - 74 THEN - COUNT ( * ) * - 7 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT + CASE + COUNT( * ) WHEN + 63 THEN NULL WHEN 62 THEN NULL ELSE + 48 END * - 58 AS col0
----
-2784

skipif mysql # not compatible
query I rowsort label-1377
SELECT + CASE + COUNT ( * ) WHEN + 63 THEN NULL WHEN 62 THEN NULL ELSE + 48 END * - 58 AS col0
----
-2784

query I rowsort
SELECT - ( - 97 )
----
97

query I rowsort
SELECT DISTINCT 43 * - + 87
----
-3741

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT ALL COUNT( + 33 ) * - 98 + COUNT( + 34 )
----
-97

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL COUNT ( + 33 ) * - 98 + COUNT ( + 34 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT MAX( 64 )
----
64

skipif mysql # not compatible
query I rowsort label-1381
SELECT MAX ( 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL MIN( ALL - 21 ) * + 6 + + 77
----
-49

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL MIN ( ALL - 21 ) * + 6 + + 77
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT + COUNT( * ) + - + 86 col2
----
-85

skipif mysql # not compatible
query I rowsort label-1383
SELECT + COUNT ( * ) + - + 86 col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT MAX( - 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1384
SELECT MAX ( - 16 ) AS col1
----
-16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT + 11 * + MIN( DISTINCT - 36 ) * 68 + - 33
----
-26961

skipif mysql # not compatible
query I rowsort label-1386
SELECT + 11 * + MIN ( DISTINCT - 36 ) * 68 + - 33
----
-26961

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + 25 * - + 21 * + CASE NULLIF ( - 91, 59 ) WHEN ( - 48 ) THEN + 80 * 46 + + ( COUNT( * ) ) / - 14 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1387
SELECT + 25 * - + 21 * + CASE NULLIF ( - 91, 59 ) WHEN ( - 48 ) THEN + 80 * 46 + + ( COUNT ( * ) ) / - 14 ELSE NULL END
----
NULL

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

query I rowsort
SELECT + + 72 - + - 27
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL - 3 + - 88 * + COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - 3 + - 88 * + COUNT ( * ) AS col2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1391
SELECT + - 97 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1391
SELECT + - 97 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + + 23 + - + ( + 66 )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT DISTINCT 15 DIV + 89 * + 45 col2
----
0

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT 15 / + 89 * + 45 col2
----
0

query I rowsort
SELECT + + ( + 91 ) + 8 AS col2
----
99

query I rowsort
SELECT 4 * - + 97 AS col0
----
-388

query I rowsort
SELECT - 7 + - 91 * + 64
----
-5831

query I rowsort
SELECT - 77 - - ( 76 ) * + 21
----
1519

query I rowsort
SELECT - ( - ( - 20 ) ) - + 42
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT DISTINCT - 49 - - - 41 + + CASE 92 WHEN MAX( ( 54 ) ) * + 55 THEN COUNT( * ) * 18 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT - 49 - - - 41 + + CASE 92 WHEN MAX ( ( 54 ) ) * + 55 THEN COUNT ( * ) * 18 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1400
SELECT DISTINCT - - 96 DIV - 68 + 61 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT - - 96 / - 68 + 61 AS col1
----
60

query I rowsort
SELECT + 88 * 35 + - 94 AS col2
----
2986

query I rowsort
SELECT DISTINCT - - 31 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT DISTINCT - MIN( ALL + ( ( 26 ) ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1403
SELECT DISTINCT - MIN ( ALL + ( ( 26 ) ) ) AS col2
----
-26

query I rowsort
SELECT 41 + - 98 * - 86
----
8469

query I rowsort
SELECT 17 * - 7 + + 11 col0
----
-108

query II rowsort
SELECT 52 AS col0, - 31 - - 96 * + 70
----
52
6689

query I rowsort
SELECT + 83 * - 95 + 21
----
-7864

query II rowsort
SELECT 25, COALESCE ( - + 89, 10 * + 71 + 32 * - 82 ) AS col2
----
25
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT 76 + - COUNT( * ) + - - 72 - 65 * + 16 AS col1
----
-893

skipif mysql # not compatible
query I rowsort label-1409
SELECT 76 + - COUNT ( * ) + - - 72 - 65 * + 16 AS col1
----
-893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1410
SELECT ALL - 45 * CAST( NULL AS SIGNED ) * + 34 * - ( 94 * + 91 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL - 45 * CAST ( NULL AS INTEGER ) * + 34 * - ( 94 * + 91 ) AS col2
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 68, + 94 ) AS col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1412
SELECT DISTINCT - 36 * + NULLIF ( - 37, + 28 + - ( 50 + + CASE NULLIF ( - 46, - 87 ) WHEN + 26 THEN - 92 - - 64 * 15 ELSE 15 * + MAX( ALL - 58 * - CAST( ( - 9 ) * - 72 AS SIGNED ) ) END ) ) * - CASE - COUNT( * ) + + 63 WHEN 76 THEN COALESCE ( AVG ( DISTINCT 75 ), 2, + 84 ) WHEN + COALESCE ( 2, 11 / COUNT( * ) + + COUNT( * ), + 89 * + COUNT( * ) ) * - 4 THEN NULL WHEN - 8 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT - 36 * + NULLIF ( - 37, + 28 + - ( 50 + + CASE NULLIF ( - 46, - 87 ) WHEN + 26 THEN - 92 - - 64 * 15 ELSE 15 * + MAX ( ALL - 58 * - CAST ( ( - 9 ) * - 72 AS INTEGER ) ) END ) ) * - CASE - COUNT ( * ) + + 63 WHEN 76 THEN COALESCE ( AVG ( DISTINCT 75 ), 2, + 84 ) WHEN + COALESCE ( 2, 11 / COUNT ( * ) + + COUNT ( * ), + 89 * + COUNT ( * ) ) * - 4 THEN NULL WHEN - 8 THEN NULL END AS col2
----
NULL

query II rowsort
SELECT ALL - 60, 52 AS col0
----
-60
52

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

query I rowsort
SELECT DISTINCT + 63 + - 33 * + ( 69 )
----
-2214

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT - COUNT( * ) + + - NULLIF ( - 9, + 52 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT - COUNT ( * ) + + - NULLIF ( - 9, + 52 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT ALL + 46 + - ( COUNT( * ) ) + 77 * MAX( - NULLIF ( + 4, + 61 ) * 54 ) AS col2
----
-16587

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL + 46 + - ( COUNT ( * ) ) + 77 * MAX ( - NULLIF ( + 4, + 61 ) * 54 ) AS col2
----
-16587

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT 85 DIV + 10 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1418
SELECT 85 / + 10 AS col0
----
8

query I rowsort
SELECT DISTINCT 48 * - + 19 AS col2
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT - 1 + + COUNT( * ) + - 82 + 30 * - 80 AS col0
----
-2482

skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT - 1 + + COUNT ( * ) + - 82 + 30 * - 80 AS col0
----
-2482

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL MIN( DISTINCT - + 32 ) + - 54
----
-86

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL MIN ( DISTINCT - + 32 ) + - 54
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT ALL ( - + COUNT( * ) ) * + 67 - 46 AS col2
----
-113

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL ( - + COUNT ( * ) ) * + 67 - 46 AS col2
----
-113

query I rowsort
SELECT ALL 8 + + ( + + 3 ) + - 92
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT DISTINCT - 13 + - 23 * + COUNT( * ) * 97 col1
----
-2244

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT - 13 + - 23 * + COUNT ( * ) * 97 col1
----
-2244

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT DISTINCT + 38 - + 87 * + - CASE - 82 WHEN + 53 * - CASE + ( - 92 ) WHEN COUNT( * ) / - COUNT( * ) THEN 68 * - 52 ELSE NULL END THEN + 53 END - 96 / + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT + 38 - + 87 * + - CASE - 82 WHEN + 53 * - CASE + ( - 92 ) WHEN COUNT ( * ) / - COUNT ( * ) THEN 68 * - 52 ELSE NULL END THEN + 53 END - 96 / + 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1427
SELECT - 74 + + 13 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT - 74 + + 13 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT - COUNT( DISTINCT - - 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-1428
SELECT - COUNT ( DISTINCT - - 56 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1429
SELECT DISTINCT 92 - - - MAX( + 11 ) DIV ( + MIN( ALL + 89 ) )
----
92

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT 92 - - - MAX ( + 11 ) / ( + MIN ( ALL + 89 ) )
----
92

query I rowsort
SELECT 29 + + 2 - + + 5 - - 95
----
121

query I rowsort
SELECT CASE - 3 WHEN ( + 23 ) * 30 THEN 25 / + 99 WHEN + 76 + - 0 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - ( 35 ) AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1433
SELECT ALL - CAST( 5 AS SIGNED ) * 60 AS col2
----
-300

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL - CAST ( 5 AS INTEGER ) * 60 AS col2
----
-300

query I rowsort
SELECT - 63 * - 32 AS col0
----
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT ALL COUNT( * ) * - 50
----
-50

skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL COUNT ( * ) * - 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT - 56 / + CASE WHEN + 63 > ( 65 / + MAX( - 57 ) + 43 ) THEN NULL ELSE 2 END - - ( 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1436
SELECT - 56 / + CASE WHEN + 63 > ( 65 / + MAX ( - 57 ) + 43 ) THEN NULL ELSE 2 END - - ( 53 ) AS col2
----
NULL

query I rowsort
SELECT + + 98 * - 76 * - + 87 + 51 + + 6
----
648033

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1438
SELECT ALL 27 * 67 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL 27 * 67 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 60 * 41 col2
----
2460

query I rowsort
SELECT 96 + - + 96 AS col0
----
0

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

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

query II rowsort
SELECT DISTINCT 33 * - 59, 90 AS col2
----
-1947
90

query II rowsort
SELECT 76 * - 50 AS col2, + 97
----
-3800
97

query I rowsort
SELECT 86 * + + NULLIF ( + 93, - - 47 ) * 19 AS col2
----
151962

query I rowsort
SELECT ALL 85 + - NULLIF ( + + 78, 72 + - 71 / 6 )
----
7

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

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT - 4 + - COUNT ( * ) / + + ( + 2 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT SUM( DISTINCT + - 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1447
SELECT SUM ( DISTINCT + - 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT 95 * + 83 + 49 + + - NULLIF ( NULLIF ( + 85, 47 ), COUNT( * ) ) * - 40 AS col0
----
11334

skipif mysql # not compatible
query I rowsort label-1448
SELECT 95 * + 83 + 49 + + - NULLIF ( NULLIF ( + 85, 47 ), COUNT ( * ) ) * - 40 AS col0
----
11334

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1450
SELECT + 3 * 49 - 74 + CAST( NULL AS SIGNED ) / + 98 * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-1450
SELECT + 3 * 49 - 74 + CAST ( NULL AS INTEGER ) / + 98 * - 84
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1452
SELECT ALL - 87 + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) - COALESCE ( 27, 29 ) / - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL - 87 + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) - COALESCE ( 27, 29 ) / - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1453
SELECT 1 * - 34 DIV - ( - 23 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1453
SELECT 1 * - 34 / - ( - 23 ) AS col0
----
-1

query I rowsort
SELECT ALL - 14 * + 64
----
-896

query I rowsort
SELECT ALL - COALESCE ( + + 31, - - ( - - 30 ) + - 14 ) AS col0
----
-31

query I rowsort
SELECT ALL - 75 - - 8 * - 38 col0
----
-379

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1460
SELECT + - COUNT( * ) DIV - 39 + - - 57
----
57

skipif mysql # not compatible
query I rowsort label-1460
SELECT + - COUNT ( * ) / - 39 + - - 57
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT ALL + 9 DIV + - COUNT( ALL + NULLIF ( 27, + 51 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL + 9 / + - COUNT ( ALL + NULLIF ( 27, + 51 ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT - + ( - COUNT( * ) ) * + ( 80 ) - COUNT( * ) col2
----
79

skipif mysql # not compatible
query I rowsort label-1462
SELECT - + ( - COUNT ( * ) ) * + ( 80 ) - COUNT ( * ) col2
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT ALL - 60 * - 9 + COUNT( + 92 ) AS col0
----
541

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL - 60 * - 9 + COUNT ( + 92 ) AS col0
----
541

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT - COUNT( * ) - 66 * 60 AS col1
----
-3961

skipif mysql # not compatible
query I rowsort label-1465
SELECT - COUNT ( * ) - 66 * 60 AS col1
----
-3961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1466
SELECT ALL + - MIN( + 93 ) DIV NULLIF ( + + ( 11 ), + 85 + - 81 DIV + COUNT( * ) ) + - 22
----
-30

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL + - MIN ( + 93 ) / NULLIF ( + + ( 11 ), + 85 + - 81 / + COUNT ( * ) ) + - 22
----
-30

query I rowsort
SELECT - 25 + - 85 AS col2
----
-110

query I rowsort
SELECT ALL 64 * + + CASE + + 27 WHEN 73 + 91 / - 84 THEN NULL ELSE + 79 END
----
5056

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT - + CASE 33 WHEN SUM( DISTINCT 88 ) * - COALESCE ( 70 + - 22, 82 * - 10 + + 30 ) + + 30 THEN NULL WHEN 36 + 27 THEN 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1469
SELECT - + CASE 33 WHEN SUM ( DISTINCT 88 ) * - COALESCE ( 70 + - 22, 82 * - 10 + + 30 ) + + 30 THEN NULL WHEN 36 + 27 THEN 13 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1470
SELECT - - CAST( NULL AS SIGNED ) + - 34 + - 4 - + - 37 * + 75 / 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1470
SELECT - - CAST ( NULL AS INTEGER ) + - 34 + - 4 - + - 37 * + 75 / 24 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( 56, + 33 )
----
-56

query I rowsort
SELECT - + 2 * - ( + 2 ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1473
SELECT - + 44 + 7 + + 75 * - CAST( - 13 AS SIGNED )
----
938

skipif mysql # not compatible
query I rowsort label-1473
SELECT - + 44 + 7 + + 75 * - CAST ( - 13 AS INTEGER )
----
938

query I rowsort
SELECT + + ( COALESCE ( 25, - + 99, 19 ) ) - - 53
----
78

query I rowsort
SELECT DISTINCT 53 + + - NULLIF ( - NULLIF ( - 37, - 40 ), + COALESCE ( 43, 76 ) ) + 67
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT + COALESCE ( - 14, + - 4 - COUNT( * ), 14 ) * ( - 92 ) col1
----
1288

skipif mysql # not compatible
query I rowsort label-1476
SELECT + COALESCE ( - 14, + - 4 - COUNT ( * ), 14 ) * ( - 92 ) col1
----
1288

query I rowsort
SELECT ALL 21 + - - 96 AS col0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1478
SELECT ALL 80 + + NULLIF ( - 88, + + COUNT( * ) ) * + 31 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL 80 + + NULLIF ( - 88, + + COUNT ( * ) ) * + 31 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT DISTINCT 87 * - COUNT( * ) + + - 47
----
-134

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT 87 * - COUNT ( * ) + + - 47
----
-134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL COUNT( + - 9 ) * - 96
----
-96

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL COUNT ( + - 9 ) * - 96
----
-96

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

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

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

query I rowsort
SELECT ALL 38 * + 53
----
2014

query I rowsort
SELECT + 50 * 44 AS col1
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT + COALESCE ( MAX( ALL 56 ), - NULLIF ( - 89, + ( + 31 ) ), 43 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-1487
SELECT + COALESCE ( MAX ( ALL 56 ), - NULLIF ( - 89, + ( + 31 ) ), 43 ) AS col1
----
56

query I rowsort
SELECT - 26 * - 91 AS col1
----
2366

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1489
SELECT ALL - 42 * + + 33 + - 24 - 64 + ( CAST( NULL AS SIGNED ) ) - - 23 * + 22 * 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - 42 * + + 33 + - 24 - 64 + ( CAST ( NULL AS INTEGER ) ) - - 23 * + 22 * 26
----
NULL

query I rowsort
SELECT - 36 * - 18 + - ( - - 0 )
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT ALL 48 * + COALESCE ( 61, + COUNT( * ) - + 16 + 40 * CASE - ( 1 ) * - 59 WHEN + 88 THEN NULL WHEN + 94 THEN - COUNT( 61 ) + 61 END ) + 59
----
2987

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL 48 * + COALESCE ( 61, + COUNT ( * ) - + 16 + 40 * CASE - ( 1 ) * - 59 WHEN + 88 THEN NULL WHEN + 94 THEN - COUNT ( 61 ) + 61 END ) + 59
----
2987

query I rowsort
SELECT ALL 78 * + CASE + ( + 97 ) WHEN 13 THEN - 8 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL + SUM( DISTINCT 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + SUM ( DISTINCT 90 ) AS col1
----
90

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

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

query I rowsort
SELECT DISTINCT - + ( 94 ) * 57 - + 85 AS col1
----
-5443

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT + 48 * + + 73 + - 35 - COUNT( * ) + - 24 - + ( 7 - + 30 ) * 47 AS col1
----
4525

skipif mysql # not compatible
query I rowsort label-1496
SELECT + 48 * + + 73 + - 35 - COUNT ( * ) + - 24 - + ( 7 - + 30 ) * 47 AS col1
----
4525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1497
SELECT ALL + 80 * + 66 DIV + COUNT( * ) AS col2
----
5280

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL + 80 * + 66 / + COUNT ( * ) AS col2
----
5280

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT - CASE + - 66 WHEN - COUNT( * ) THEN NULL WHEN + - 52 THEN - + CASE + 64 WHEN + 82 + + 67 * 30 THEN 98 + - 97 ELSE NULL END / ( + 38 ) END * 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1498
SELECT - CASE + - 66 WHEN - COUNT ( * ) THEN NULL WHEN + - 52 THEN - + CASE + 64 WHEN + 82 + + 67 * 30 THEN 98 + - 97 ELSE NULL END / ( + 38 ) END * 95
----
NULL

query I rowsort
SELECT - 52 * - - 77
----
-4004

query I rowsort
SELECT - 96 + + 69 * - 58
----
-4098

query II rowsort
SELECT ALL 22 col1, + 14 * 61
----
22
854

query I rowsort
SELECT ALL - CASE + 86 WHEN 96 THEN 64 WHEN - 88 * 58 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1503
SELECT - + 92 * - CAST( - + 83 AS SIGNED ) + - - ( 22 ) + - COALESCE ( + COUNT( * ), 48 )
----
-7615

skipif mysql # not compatible
query I rowsort label-1503
SELECT - + 92 * - CAST ( - + 83 AS INTEGER ) + - - ( 22 ) + - COALESCE ( + COUNT ( * ), 48 )
----
-7615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT DISTINCT + CAST( + 48 AS SIGNED ) * + 27
----
1296

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT + CAST ( + 48 AS INTEGER ) * + 27
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT - + 59 * - ( + 31 ) * - + 83 * + COUNT( * ) AS col1
----
-151807

skipif mysql # not compatible
query I rowsort label-1505
SELECT - + 59 * - ( + 31 ) * - + 83 * + COUNT ( * ) AS col1
----
-151807

query I rowsort
SELECT - + 42 + + 8 + - 23 * - - 3
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT - - COUNT( ALL - + 37 ) + - - COALESCE ( + + 67, - - 40 ) * - 91
----
-6096

skipif mysql # not compatible
query I rowsort label-1507
SELECT - - COUNT ( ALL - + 37 ) + - - COALESCE ( + + 67, - - 40 ) * - 91
----
-6096

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT - COUNT( DISTINCT - + 34 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1508
SELECT - COUNT ( DISTINCT - + 34 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT DISTINCT - - 48 + - NULLIF ( - + 24, 32 * - COALESCE ( + NULLIF ( + 19, SUM( DISTINCT - 10 ) + + 4 ), - 0 + 31 ) + - 87 * 67 + 49 * - 39 ) + + 63
----
135

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT - - 48 + - NULLIF ( - + 24, 32 * - COALESCE ( + NULLIF ( + 19, SUM ( DISTINCT - 10 ) + + 4 ), - 0 + 31 ) + - 87 * 67 + 49 * - 39 ) + + 63
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-1510
SELECT ALL + 87 DIV + - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL + 87 / + - 91 AS col1
----
0

query II rowsort
SELECT - 29, + 61 AS col1
----
-29
61

query I rowsort
SELECT ALL - + 97 + - NULLIF ( - 48, - 75 ) AS col1
----
-49

query I rowsort
SELECT DISTINCT + 54 * + 2 + + 60
----
168

query I rowsort
SELECT DISTINCT + 4 + - 65
----
-61

query II rowsort
SELECT ALL 1 AS col1, - 79 AS col1
----
1
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT DISTINCT 33 + + + 7 + 90 * - COUNT( DISTINCT + 2 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT 33 + + + 7 + 90 * - COUNT ( DISTINCT + 2 ) AS col0
----
-50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1518
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1518
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT - COUNT( + 49 ) * 48 * + 9 + + 50 + - + 9 + + 20 * + 29
----
189

skipif mysql # not compatible
query I rowsort label-1519
SELECT - COUNT ( + 49 ) * 48 * + 9 + + 50 + - + 9 + + 20 * + 29
----
189

query I rowsort
SELECT - 27 - - ( + 22 )
----
-5

query I rowsort
SELECT + ( + + 19 ) col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1522
SELECT + COUNT( * ) AS col0, 43 DIV 88
----
1
0

skipif mysql # not compatible
query II rowsort label-1522
SELECT + COUNT ( * ) AS col0, 43 / 88
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT 86 * + 2 * 31 + - - MIN( ALL - - 78 )
----
5410

skipif mysql # not compatible
query I rowsort label-1523
SELECT 86 * + 2 * 31 + - - MIN ( ALL - - 78 )
----
5410

query I rowsort
SELECT + 9 * 79 * + 69 AS col2
----
49059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1525
SELECT - 32 DIV + NULLIF ( 99, + 60 ) DIV - COALESCE ( - COUNT( * ), 46 + 44, 7 ) + 20 * - 21
----
-420

skipif mysql # not compatible
query I rowsort label-1525
SELECT - 32 / + NULLIF ( 99, + 60 ) / - COALESCE ( - COUNT ( * ), 46 + 44, 7 ) + 20 * - 21
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT ALL - COUNT( * ) / 31 / 85 + - + COUNT( - 30 ) + - CASE 96 WHEN - 86 + - 85 THEN NULL WHEN - 28 + 18 THEN 8 / 3 ELSE NULL END / + 21 * 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL - COUNT ( * ) / 31 / 85 + - + COUNT ( - 30 ) + - CASE 96 WHEN - 86 + - 85 THEN NULL WHEN - 28 + 18 THEN 8 / 3 ELSE NULL END / + 21 * 73 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT DISTINCT + 15 DIV + - 56 * + 37 DIV 25 - + 71 DIV 53 * - 27
----
27

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT + 15 / + - 56 * + 37 / 25 - + 71 / 53 * - 27
----
27

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1529
SELECT ALL + CAST( NULL AS DECIMAL ), 14 * - 31 AS col0
----
NULL
-434

skipif mysql # not compatible
query II rowsort label-1529
SELECT ALL + CAST ( NULL AS REAL ), 14 * - 31 AS col0
----
NULL
-434

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

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

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

query I rowsort
SELECT DISTINCT COALESCE ( + 75, - ( + 58 ) ) - + 87 + + 79 col2
----
67

query II rowsort
SELECT DISTINCT - 62 AS col1, 57 AS col1
----
-62
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1534
SELECT CAST( NULL AS DECIMAL ) / - 61 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1534
SELECT CAST ( NULL AS REAL ) / - 61 col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1536
SELECT DISTINCT CAST( + 94 AS SIGNED ) * 56 + 46 AS col0
----
5310

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT CAST ( + 94 AS INTEGER ) * 56 + 46 AS col0
----
5310

query I rowsort
SELECT - 58 * ( + 60 ) col1
----
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT + 67 - COUNT( * ) + COALESCE ( + 8, - + 95 + + 11, 90 )
----
74

skipif mysql # not compatible
query I rowsort label-1538
SELECT + 67 - COUNT ( * ) + COALESCE ( + 8, - + 95 + + 11, 90 )
----
74

query II rowsort
SELECT 25, 18 * + + 27 * + - 35 AS col0
----
25
-17010

query I rowsort
SELECT ALL ( - 66 ) * - 78 * + 64 * 16
----
5271552

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT DISTINCT 59 * + + 62 + - COUNT( * )
----
3657

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT 59 * + + 62 + - COUNT ( * )
----
3657

onlyif mysql # aggregate syntax: 
query II rowsort label-1542
SELECT ALL - 94 AS col1, + NULLIF ( + 48, + SUM( DISTINCT + 62 ) ) * + 38 + + COUNT( * )
----
-94
1825

skipif mysql # not compatible
query II rowsort label-1542
SELECT ALL - 94 AS col1, + NULLIF ( + 48, + SUM ( DISTINCT + 62 ) ) * + 38 + + COUNT ( * )
----
-94
1825

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - + CASE COUNT( * ) WHEN 83 THEN + COUNT( * ) * - + MAX( 1 ) * 25 WHEN 61 * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1543
SELECT - + CASE COUNT ( * ) WHEN 83 THEN + COUNT ( * ) * - + MAX ( 1 ) * 25 WHEN 61 * COUNT ( * ) THEN NULL END
----
NULL

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

query I rowsort
SELECT - 60 + + 91 col2
----
31

query II rowsort
SELECT 73 - - 48 AS col2, 41 - - 1 col2
----
121
42

onlyif mysql # aggregate syntax: 
query II rowsort label-1547
SELECT ALL + 17 AS col1, 16 * + 79 - COUNT( ALL + - 89 ) + - - 16 * 15 AS col1
----
17
1503

skipif mysql # not compatible
query II rowsort label-1547
SELECT ALL + 17 AS col1, 16 * + 79 - COUNT ( ALL + - 89 ) + - - 16 * 15 AS col1
----
17
1503

query I rowsort
SELECT ALL + 8 + + + 51
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1549
SELECT - ( - CASE 80 WHEN + 96 THEN CAST( - - ( - ( CAST( 36 AS SIGNED ) ) ) AS SIGNED ) * COUNT( * ) END ) + + 39 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1549
SELECT - ( - CASE 80 WHEN + 96 THEN CAST ( - - ( - ( CAST ( 36 AS INTEGER ) ) ) AS INTEGER ) * COUNT ( * ) END ) + + 39 * + 83
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1550
SELECT - 2, - 68 + - COUNT( * ) AS col2
----
-2
-69

skipif mysql # not compatible
query II rowsort label-1550
SELECT - 2, - 68 + - COUNT ( * ) AS col2
----
-2
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT - NULLIF ( 45, - COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-1551
SELECT - NULLIF ( 45, - COUNT ( * ) )
----
-45

query I rowsort
SELECT + 52 * - - 2 / - CASE 8 WHEN - 71 * 87 THEN 26 WHEN 97 THEN NULL END
----
NULL

query I rowsort
SELECT ALL - - 45 + - 63 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-1554
SELECT - 74 AS col1, - MAX( + 65 )
----
-74
-65

skipif mysql # not compatible
query II rowsort label-1554
SELECT - 74 AS col1, - MAX ( + 65 )
----
-74
-65

query II rowsort
SELECT - ( - 96 ), + 42 col0
----
96
42

query I rowsort
SELECT ALL 70 + + - 59 - - - CASE + 60 WHEN - - 71 THEN NULL ELSE - 26 - 59 END AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT + 19 * MIN( + 59 ) AS col0
----
1121

skipif mysql # not compatible
query I rowsort label-1557
SELECT + 19 * MIN ( + 59 ) AS col0
----
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT 89 + - 25 + - 11 * - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-1558
SELECT 89 + - 25 + - 11 * - COUNT ( * )
----
75

query I rowsort
SELECT ALL + 99 + 63 AS col1
----
162

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

skipif mysql # not compatible
query I rowsort label-1560
SELECT 66 / + - ( COUNT ( * ) ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT 79 + COUNT( DISTINCT - 82 ) + - + 77
----
3

skipif mysql # not compatible
query I rowsort label-1561
SELECT 79 + COUNT ( DISTINCT - 82 ) + - + 77
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1562
SELECT 14 + + 70 col2, - ( - 27 ) DIV - 51 + COUNT( * ) + + + 14 * ( + 75 )
----
84
1051

skipif mysql # not compatible
query II rowsort label-1562
SELECT 14 + + 70 col2, - ( - 27 ) / - 51 + COUNT ( * ) + + + 14 * ( + 75 )
----
84
1051

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT ALL - 55 DIV - ( + + 60 ) * + 88
----
0

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL - 55 / - ( + + 60 ) * + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL + NULLIF ( + NULLIF ( + + 27, + 68 * + 28 + + 48 ), + - COUNT( * ) ) - + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL + NULLIF ( + NULLIF ( + + 27, + 68 * + 28 + + 48 ), + - COUNT ( * ) ) - + COUNT ( * ) AS col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1565
SELECT DISTINCT - COUNT( * ) DIV 73 * + 57 * + ( 30 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT - COUNT ( * ) / 73 * + 57 * + ( 30 ) AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL - ( + 14 ) * + 84 - COUNT ( * ) AS col1
----
-1177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1567
SELECT ALL - CASE + + 54 WHEN 4 + + CAST( COUNT( * ) AS SIGNED ) + - - 63 THEN MAX( 93 ) END / + AVG ( - 41 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL - CASE + + 54 WHEN 4 + + CAST ( COUNT ( * ) AS INTEGER ) + - - 63 THEN MAX ( 93 ) END / + AVG ( - 41 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT ALL - COALESCE ( + COUNT( ALL - + 42 ), + - 20 + - 95 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL - COALESCE ( + COUNT ( ALL - + 42 ), + - 20 + - 95 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1569
SELECT ALL CAST( + 51 AS SIGNED ) * - - 93 * + 10 col0
----
47430

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL CAST ( + 51 AS INTEGER ) * - - 93 * + 10 col0
----
47430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1570
SELECT 1 + - 82 * NULLIF ( + 55, 10 * + + CAST( NULL AS SIGNED ) * + 1 )
----
-4509

skipif mysql # not compatible
query I rowsort label-1570
SELECT 1 + - 82 * NULLIF ( + 55, 10 * + + CAST ( NULL AS INTEGER ) * + 1 )
----
-4509

query I rowsort
SELECT 56 * 83 * 81 - 80 AS col0
----
376408

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT NULLIF ( 13, - + COUNT( * ) ) * + ( 81 ) + 31
----
1084

skipif mysql # not compatible
query I rowsort label-1572
SELECT NULLIF ( 13, - + COUNT ( * ) ) * + ( 81 ) + 31
----
1084

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT ALL + 65 * + CASE 77 WHEN + 96 / - SUM( DISTINCT 23 ) THEN + + 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL + 65 * + CASE 77 WHEN + 96 / - SUM ( DISTINCT 23 ) THEN + + 60 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1574
SELECT ALL + SUM( 58 ) * - 46 DIV COUNT( * ) AS col1
----
-2668

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL + SUM ( 58 ) * - 46 / COUNT ( * ) AS col1
----
-2668

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT - 65 * - - 37 * + COUNT( * ) + + 27 + 62 * 71 + 4 AS col0
----
2028

skipif mysql # not compatible
query I rowsort label-1575
SELECT - 65 * - - 37 * + COUNT ( * ) + + 27 + 62 * 71 + 4 AS col0
----
2028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1576
SELECT COALESCE ( - + ( + COUNT( + 42 ) ), 38, CASE + 1 WHEN - 50 * 14 + - 78 * + ( 50 * COALESCE ( + ( CAST( NULL AS SIGNED ) ), + 50 ) ) THEN 3 DIV 34 END ) * 55
----
-55

skipif mysql # not compatible
query I rowsort label-1576
SELECT COALESCE ( - + ( + COUNT ( + 42 ) ), 38, CASE + 1 WHEN - 50 * 14 + - 78 * + ( 50 * COALESCE ( + ( CAST ( NULL AS INTEGER ) ), + 50 ) ) THEN 3 / 34 END ) * 55
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT ALL + 52 * + - COALESCE ( - CASE + COUNT( * ) WHEN - - 17 THEN 65 + - + 69 WHEN - 71 + - 81 / CASE - 37 WHEN ( 62 ) THEN NULL WHEN AVG ( + CAST( 8 AS SIGNED ) ) + - 56 THEN NULL ELSE 21 * 67 END THEN NULL WHEN - 7 * 63 THEN NULL END, 93 + 90, - NULLIF ( 4, 17 / + MAX( DISTINCT 93 * - 65 ) + + CASE WHEN - 23 BETWEEN ( NULL ) AND NULL THEN - 67 - + 31 * 22 WHEN NOT ( + 8 * 52 ) <= + COUNT( * ) THEN NULL ELSE 58 * AVG ( ALL 83 ) + + 6 END * 55 ) * - 76 )
----
-9516

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL + 52 * + - COALESCE ( - CASE + COUNT ( * ) WHEN - - 17 THEN 65 + - + 69 WHEN - 71 + - 81 / CASE - 37 WHEN ( 62 ) THEN NULL WHEN AVG ( + CAST ( 8 AS INTEGER ) ) + - 56 THEN NULL ELSE 21 * 67 END THEN NULL WHEN - 7 * 63 THEN NULL END, 93 + 90, - NULLIF ( 4, 17 / + MAX ( DISTINCT 93 * - 65 ) + + CASE WHEN - 23 BETWEEN ( NULL ) AND NULL THEN - 67 - + 31 * 22 WHEN NOT ( + 8 * 52 ) <= + COUNT ( * ) THEN NULL ELSE 58 * AVG ( ALL 83 ) + + 6 END * 55 ) * - 76 )
----
-9516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1578
SELECT COALESCE ( + COUNT( * ), - - COUNT( + 59 ) ) * + CASE + 54 WHEN + 32 THEN NULL WHEN - 93 THEN - CASE WHEN NULL IS NOT NULL THEN COALESCE ( + COALESCE ( CAST( NULL AS SIGNED ), - CAST( 99 AS SIGNED ) ), 88 ) END WHEN - 84 THEN + COUNT( * ) END + - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1578
SELECT COALESCE ( + COUNT ( * ), - - COUNT ( + 59 ) ) * + CASE + 54 WHEN + 32 THEN NULL WHEN - 93 THEN - CASE WHEN NULL IS NOT NULL THEN COALESCE ( + COALESCE ( CAST ( NULL AS INTEGER ), - CAST ( 99 AS INTEGER ) ), 88 ) END WHEN - 84 THEN + COUNT ( * ) END + - 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1579
SELECT ALL - + COALESCE ( - 19, + 91 DIV + CASE + 94 WHEN 70 DIV - + COUNT( * ) + + 25 THEN ( 33 ) DIV - 25 + + COUNT( 56 ) * 74 END * - 6 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - + COALESCE ( - 19, + 91 / + CASE + 94 WHEN 70 / - + COUNT ( * ) + + 25 THEN ( 33 ) / - 25 + + COUNT ( 56 ) * 74 END * - 6 ) AS col2
----
19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL - - COALESCE ( - 44, 85, + - ( + 69 ) + 78 * + - COALESCE ( + 90, COUNT( * ), 51 ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL - - COALESCE ( - 44, 85, + - ( + 69 ) + 78 * + - COALESCE ( + 90, COUNT ( * ), 51 ) ) AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1582
SELECT - 91 + 72 col1, + 12 DIV - COUNT( * )
----
-19
-12

skipif mysql # not compatible
query II rowsort label-1582
SELECT - 91 + 72 col1, + 12 / - COUNT ( * )
----
-19
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1583
SELECT DISTINCT + 70 DIV - + ( - + COALESCE ( + 6, SUM( 48 ) * + 49 - 95 ) )
----
11

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT + 70 / - + ( - + COALESCE ( + 6, SUM ( 48 ) * + 49 - 95 ) )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT ALL CASE + - 79 WHEN + CASE 71 WHEN 2 THEN - + 33 * + COALESCE ( + 66, + 7 ) + - 89 ELSE NULL END THEN CAST( NULL AS SIGNED ) * 64 ELSE ( 7 ) END + 89
----
96

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL CASE + - 79 WHEN + CASE 71 WHEN 2 THEN - + 33 * + COALESCE ( + 66, + 7 ) + - 89 ELSE NULL END THEN CAST ( NULL AS INTEGER ) * 64 ELSE ( 7 ) END + 89
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ALL 88 + - COALESCE ( - COUNT( * ), - - 33 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL 88 + - COALESCE ( - COUNT ( * ), - - 33 ) AS col1
----
89

query I rowsort
SELECT - 58 * + 2 AS col2
----
-116

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

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL + COUNT ( * ) + 2 / + - 24 + 97 AS col2
----
98

query I rowsort
SELECT ALL - 45 + - 28 AS col0
----
-73

query I rowsort
SELECT ALL + CASE + + 11 WHEN 78 + + - NULLIF ( - ( + 66 ), - 82 ) + - 2 * 24 THEN + 22 - 93 END + - 20 / + 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1590
SELECT DISTINCT CAST( - - 71 AS SIGNED ) + + 73
----
144

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT CAST ( - - 71 AS INTEGER ) + + 73
----
144

query I rowsort
SELECT ALL - 96 + - + 63 AS col2
----
-159

query I rowsort
SELECT + 7 * - 4
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-1593
SELECT DISTINCT ( - 24 ) AS col1, - COALESCE ( COUNT( + + 6 ), + 63 + + + 23 + - 4 * - 12 * - 2, - COUNT( * ) - 95 * 74 ) + COUNT( * )
----
-24
0

skipif mysql # not compatible
query II rowsort label-1593
SELECT DISTINCT ( - 24 ) AS col1, - COALESCE ( COUNT ( + + 6 ), + 63 + + + 23 + - 4 * - 12 * - 2, - COUNT ( * ) - 95 * 74 ) + COUNT ( * )
----
-24
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1594
SELECT DISTINCT + - MAX( + + 77 ) + + 64 AS col2, 53 AS col2
----
-13
53

skipif mysql # not compatible
query II rowsort label-1594
SELECT DISTINCT + - MAX ( + + 77 ) + + 64 AS col2, 53 AS col2
----
-13
53

query I rowsort
SELECT ( + - 65 ) * + 75
----
-4875

query I rowsort
SELECT 5 * 24
----
120

query II rowsort
SELECT DISTINCT 50, ( - + 17 ) col2
----
50
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1598
SELECT DISTINCT 56 - + 87 DIV + MAX( ALL - 30 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT 56 - + 87 / + MAX ( ALL - 30 ) AS col1
----
58

query I rowsort
SELECT ALL - CASE WHEN NULL IS NOT NULL THEN NULL ELSE - 25 END - + + 11 AS col1
----
14

query I rowsort
SELECT 95 * - - 63
----
5985

query I rowsort
SELECT ALL - 59 * 98 AS col0
----
-5782

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT DISTINCT 20 - 61 - COUNT( * ) * ( - 78 ) * + - 11 * - 25 - - 63
----
21472

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT 20 - 61 - COUNT ( * ) * ( - 78 ) * + - 11 * - 25 - - 63
----
21472

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT DISTINCT COUNT( - + 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT COUNT ( - + 12 ) AS col2
----
1

query I rowsort
SELECT - 67 * - + 49 * - + 35 * - 97 AS col2
----
11145785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1605
SELECT - CASE SUM( ALL + + 67 ) WHEN - + 25 THEN - CAST( NULL AS SIGNED ) + - 24 * + 12 - + CASE CAST( NULL AS SIGNED ) WHEN 94 / - 2 THEN NULL WHEN 18 THEN 76 * - 80 ELSE NULL END + 19 * + 26 WHEN 78 THEN + 18 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1605
SELECT - CASE SUM ( ALL + + 67 ) WHEN - + 25 THEN - CAST ( NULL AS INTEGER ) + - 24 * + 12 - + CASE CAST ( NULL AS INTEGER ) WHEN 94 / - 2 THEN NULL WHEN 18 THEN 76 * - 80 ELSE NULL END + 19 * + 26 WHEN 78 THEN + 18 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT - 19 DIV - + 98 * - + 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1606
SELECT - 19 / - + 98 * - + 93 AS col0
----
0

query I rowsort
SELECT 60 * + NULLIF ( + + 52, + + 32 ) + 70 * + ( + 94 )
----
9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT COALESCE ( - CAST( - 18 AS SIGNED ), - 17, + 70 + + 36 + + + 26 * + 14 * - ( 90 ) + 43 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1608
SELECT COALESCE ( - CAST ( - 18 AS INTEGER ), - 17, + 70 + + 36 + + + 26 * + 14 * - ( 90 ) + 43 ) AS col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1609
SELECT + 86 DIV COALESCE ( - 88, - 53 - - - 73 * COUNT( * ) ) + - 47
----
-47

skipif mysql # not compatible
query I rowsort label-1609
SELECT + 86 / COALESCE ( - 88, - 53 - - - 73 * COUNT ( * ) ) + - 47
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1610
SELECT COALESCE ( - ( + 26 ), + + 30 DIV + COUNT( * ) ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-1610
SELECT COALESCE ( - ( + 26 ), + + 30 / + COUNT ( * ) ) AS col2
----
-26

query II rowsort
SELECT ALL + 44 AS col1, 46
----
44
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT DISTINCT + COUNT( * ) * + - ( 55 ) + + 74 DIV + NULLIF ( + 39, - ( + COUNT( * ) ) ) + + 27 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT + COUNT ( * ) * + - ( 55 ) + + 74 / + NULLIF ( + 39, - ( + COUNT ( * ) ) ) + + 27 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ALL - + 33 * - 51 * + COUNT( * )
----
1683

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL - + 33 * - 51 * + COUNT ( * )
----
1683

query I rowsort
SELECT DISTINCT + 99 * - 79
----
-7821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1615
SELECT ALL 66 * 73 + CAST( NULL AS SIGNED ) * + + 55 * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL 66 * 73 + CAST ( NULL AS INTEGER ) * + + 55 * - 83
----
NULL

query I rowsort
SELECT - + 35 * + - 61
----
2135

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT - CASE NULLIF ( 77, - - 7 ) WHEN + + COUNT( * ) + + - 35 THEN - 86 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT - CASE NULLIF ( 77, - - 7 ) WHEN + + COUNT ( * ) + + - 35 THEN - 86 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT DISTINCT + 71 * - COUNT( * ) + COALESCE ( - 9, - ( + 97 ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT + 71 * - COUNT ( * ) + COALESCE ( - 9, - ( + 97 ) ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT ALL MAX( - 77 ) * + 35 + + 22 AS col1
----
-2673

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL MAX ( - 77 ) * + 35 + + 22 AS col1
----
-2673

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1620
SELECT - CAST( + 52 AS SIGNED ) - 70 DIV + ( - 97 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-1620
SELECT - CAST ( + 52 AS INTEGER ) - 70 / + ( - 97 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT + 36, - 11 - - COUNT( ALL - 32 ) col1
----
36
-10

skipif mysql # not compatible
query II rowsort label-1621
SELECT + 36, - 11 - - COUNT ( ALL - 32 ) col1
----
36
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT ALL - COALESCE ( + + COUNT( * ), + - 61 + - + 30 * 79 * 85 ) * - 78 + - - 70 + + 78 col1
----
226

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL - COALESCE ( + + COUNT ( * ), + - 61 + - + 30 * 79 * 85 ) * - 78 + - - 70 + + 78 col1
----
226

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1623
SELECT - CAST( 98 AS SIGNED ) * - + 56 AS col1, 56 * + CAST( NULL AS DECIMAL ) AS col0
----
5488
NULL

skipif mysql # not compatible
query II rowsort label-1623
SELECT - CAST ( 98 AS INTEGER ) * - + 56 AS col1, 56 * + CAST ( NULL AS REAL ) AS col0
----
5488
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1624
SELECT ALL 74 * + + 89 + - COUNT( * ) AS col2, + 15 * + 66 * 39 * - + 52 * - - 64 * - ( 13 )
----
6585
1670423040

skipif mysql # not compatible
query II rowsort label-1624
SELECT ALL 74 * + + 89 + - COUNT ( * ) AS col2, + 15 * + 66 * 39 * - + 52 * - - 64 * - ( 13 )
----
6585
1670423040

query I rowsort
SELECT ALL 31 * - 72 AS col0
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL + 34 - - + 1 + - 65 + + + ( + SUM( DISTINCT + 0 ) ) + + 58 + COUNT( * ) * + 86 * - 11 col1
----
-918

skipif mysql # not compatible
query I rowsort label-1626
SELECT ALL + 34 - - + 1 + - 65 + + + ( + SUM ( DISTINCT + 0 ) ) + + 58 + COUNT ( * ) * + 86 * - 11 col1
----
-918

query II rowsort
SELECT ALL - ( + - NULLIF ( + 84, - ( - 4 ) + + 86 ) ), - 11 AS col0
----
84
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1628
SELECT ALL 88 DIV + - 2 - 44 DIV COALESCE ( + + 4, + ( 92 ) * CAST( NULL AS SIGNED ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL 88 / + - 2 - 44 / COALESCE ( + + 4, + ( 92 ) * CAST ( NULL AS INTEGER ) ) AS col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT + - 53 - - - CAST( ( 93 ) AS SIGNED ) * + + ( + - 81 ) * - - 79
----
595054

skipif mysql # not compatible
query I rowsort label-1629
SELECT + - 53 - - - CAST ( ( 93 ) AS INTEGER ) * + + ( + - 81 ) * - - 79
----
595054

query I rowsort
SELECT ALL NULLIF ( - 69, - CASE - 74 WHEN - 76 THEN - + 65 + AVG ( DISTINCT + + 13 ) - - 27 END - - 23 ) - + 99
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT + CASE - 47 WHEN + + 86 / + 38 * + 87 * - + 59 * - 53 / 20 * + 99 / 35 THEN NULL ELSE + 45 + CAST( NULL AS SIGNED ) END + - 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1631
SELECT + CASE - 47 WHEN + + 86 / + 38 * + 87 * - + 59 * - 53 / 20 * + 99 / 35 THEN NULL ELSE + 45 + CAST ( NULL AS INTEGER ) END + - 58 col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1633
SELECT + CASE - NULLIF ( ( + + ( + 12 ) ), - NULLIF ( + 62, - NULLIF ( + 20, COUNT( * ) ) ) ) WHEN - SUM( DISTINCT - 98 ) DIV 51 - 48 THEN + 66 WHEN 6 * + COALESCE ( + 39, + 86 DIV + MIN( 59 ) ) THEN NULL ELSE - 13 DIV 55 END DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-1633
SELECT + CASE - NULLIF ( ( + + ( + 12 ) ), - NULLIF ( + 62, - NULLIF ( + 20, COUNT ( * ) ) ) ) WHEN - SUM ( DISTINCT - 98 ) / 51 - 48 THEN + 66 WHEN 6 * + COALESCE ( + 39, + 86 / + MIN ( 59 ) ) THEN NULL ELSE - 13 / 55 END / - 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT DISTINCT + 55 * + 25 * COUNT( * ) col2
----
1375

skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT + 55 * + 25 * COUNT ( * ) col2
----
1375

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

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT SUM ( 11 )
----
11

query I rowsort
SELECT + 50 + 67
----
117

query I rowsort
SELECT + 67 * + + 57
----
3819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1638
SELECT DISTINCT NULLIF ( COUNT( * ), CASE 40 WHEN 33 THEN 7 WHEN - ( + 59 ) + - 23 THEN 83 ELSE NULL END ) DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT NULLIF ( COUNT ( * ), CASE 40 WHEN 33 THEN 7 WHEN - ( + 59 ) + - 23 THEN 83 ELSE NULL END ) / 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1639
SELECT - 96 + - MAX( DISTINCT - 29 ) * - + 20, 32 * - 84 AS col2
----
-676
-2688

skipif mysql # not compatible
query II rowsort label-1639
SELECT - 96 + - MAX ( DISTINCT - 29 ) * - + 20, 32 * - 84 AS col2
----
-676
-2688

query I rowsort
SELECT + 7 * - 98 col1
----
-686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1641
SELECT - 13 * - + 20 DIV + + COUNT( * ) AS col2
----
260

skipif mysql # not compatible
query I rowsort label-1641
SELECT - 13 * - + 20 / + + COUNT ( * ) AS col2
----
260

query II rowsort
SELECT ALL + 65 + + 55, 75 AS col2
----
120
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT + COUNT( * ) + 48
----
49

skipif mysql # not compatible
query I rowsort label-1643
SELECT + COUNT ( * ) + 48
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL MAX( + 91 ) * 57 + 45 AS col1
----
5232

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL MAX ( + 91 ) * 57 + 45 AS col1
----
5232

query I rowsort
SELECT + 77 * + 8
----
616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1646
SELECT DISTINCT CAST( 32 AS SIGNED ) DIV + + 82 + 9 col2, + COUNT( * ) col0
----
9
1

skipif mysql # not compatible
query II rowsort label-1646
SELECT DISTINCT CAST ( 32 AS INTEGER ) / + + 82 + 9 col2, + COUNT ( * ) col0
----
9
1

query I rowsort
SELECT DISTINCT 25 * - 53 AS col2
----
-1325

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT ALL + 67 DIV + + 56 + - 81
----
-80

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL + 67 / + + 56 + - 81
----
-80

query I rowsort
SELECT + + 45 * 81 - + - 84 AS col2
----
3729

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1650
SELECT DISTINCT 1 DIV - 66 + - - 73 * - MAX( - + 14 ) * - 36
----
-36792

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT 1 / - 66 + - - 73 * - MAX ( - + 14 ) * - 36
----
-36792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1651
SELECT ALL + 81 / CASE 3 WHEN - 38 THEN + 1 WHEN + - 67 THEN + COUNT( * ) END * + CAST( + 84 AS SIGNED ) + 89 / 96 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL + 81 / CASE 3 WHEN - 38 THEN + 1 WHEN + - 67 THEN + COUNT ( * ) END * + CAST ( + 84 AS INTEGER ) + 89 / 96 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + - 16 * - 54 + COUNT( * ) - 25 * + 79 / - + CASE + COALESCE ( 74, - 32 / + 35, CASE + 26 WHEN ( - 56 ) THEN NULL ELSE - COUNT( * ) * - CASE + 26 WHEN + 82 + + 63 THEN NULL WHEN 2 * + 94 + + 26 THEN NULL ELSE AVG ( - ( 41 ) ) END END ) WHEN 47 THEN NULL WHEN CASE - 49 WHEN + 45 THEN - 94 WHEN 62 THEN NULL ELSE + 16 END THEN + NULLIF ( 77, - 15 ) END + - 3 * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1653
SELECT + - 16 * - 54 + COUNT ( * ) - 25 * + 79 / - + CASE + COALESCE ( 74, - 32 / + 35, CASE + 26 WHEN ( - 56 ) THEN NULL ELSE - COUNT ( * ) * - CASE + 26 WHEN + 82 + + 63 THEN NULL WHEN 2 * + 94 + + 26 THEN NULL ELSE AVG ( - ( 41 ) ) END END ) WHEN 47 THEN NULL WHEN CASE - 49 WHEN + 45 THEN - 94 WHEN 62 THEN NULL ELSE + 16 END THEN + NULLIF ( 77, - 15 ) END + - 3 * - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT DISTINCT 84 * + + COUNT( ALL + 96 ) + + + 75
----
159

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT 84 * + + COUNT ( ALL + 96 ) + + + 75
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT DISTINCT + COALESCE ( + - MAX( + 77 ), + 30, 47 + + CASE - 95 WHEN + 85 * 94 THEN NULL WHEN + 99 + 78 THEN COUNT( * ) ELSE NULL END, + COALESCE ( + COUNT( * ), 65 * 47 ) ) * 50 + 18
----
-3832

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT + COALESCE ( + - MAX ( + 77 ), + 30, 47 + + CASE - 95 WHEN + 85 * 94 THEN NULL WHEN + 99 + 78 THEN COUNT ( * ) ELSE NULL END, + COALESCE ( + COUNT ( * ), 65 * 47 ) ) * 50 + 18
----
-3832

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT ALL 37 DIV + 29
----
1

skipif mysql # not compatible
query I rowsort label-1656
SELECT ALL 37 / + 29
----
1

query I rowsort
SELECT - 76 + 2 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL + 87 * - + COUNT( * ) * ( ( + 20 ) ) - - + 64 AS col0
----
-1676

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + 87 * - + COUNT ( * ) * ( ( + 20 ) ) - - + 64 AS col0
----
-1676

query I rowsort
SELECT ALL - + 63 * - + 87 * 35
----
191835

query I rowsort
SELECT + - 63 * - 41
----
2583

query I rowsort
SELECT - - 99 * + - 47 AS col0
----
-4653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT DISTINCT 97 * - + NULLIF ( 47, - CAST( NULL AS SIGNED ) + - + 1 ) + - 67 - + 68
----
-4694

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT 97 * - + NULLIF ( 47, - CAST ( NULL AS INTEGER ) + - + 1 ) + - 67 - + 68
----
-4694

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1663
SELECT - 26 + - COALESCE ( - 94, - CASE - 91 WHEN NULLIF ( - 57, + 96 ) * + 62 * 97 - + COALESCE ( CAST( NULL AS SIGNED ), - 93 * + 91 ) + 14 * + COUNT( * ) THEN 63 WHEN - 58 THEN + ( 62 ) * 62 ELSE 83 + + 39 END * - 8 ) - + 73 DIV + COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-1663
SELECT - 26 + - COALESCE ( - 94, - CASE - 91 WHEN NULLIF ( - 57, + 96 ) * + 62 * 97 - + COALESCE ( CAST ( NULL AS INTEGER ), - 93 * + 91 ) + 14 * + COUNT ( * ) THEN 63 WHEN - 58 THEN + ( 62 ) * 62 ELSE 83 + + 39 END * - 8 ) - + 73 / + COUNT ( * )
----
-5

query I rowsort
SELECT ALL - - 80 * 4 * - 60 + 5 + - NULLIF ( + 36, + + 14 ) * 60 - + - 13 + + 51
----
-21291

query I rowsort
SELECT - 65 * - + 66 * - 43 + + 29
----
-184441

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT + MIN( 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1666
SELECT + MIN ( 34 ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT DISTINCT + MAX( DISTINCT - - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-1667
SELECT DISTINCT + MAX ( DISTINCT - - 85 )
----
85

query I rowsort
SELECT DISTINCT - 86 * + - 81
----
6966

query I rowsort
SELECT 11 * + 39
----
429

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT COUNT( * ) * + 42 * + + 90 col0
----
3780

skipif mysql # not compatible
query I rowsort label-1670
SELECT COUNT ( * ) * + 42 * + + 90 col0
----
3780

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

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

query I rowsort
SELECT 1 * + - 69 col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL ( SUM( DISTINCT + 40 ) ) * - 38
----
-1520

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL ( SUM ( DISTINCT + 40 ) ) * - 38
----
-1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT DISTINCT + 24 * + CAST( + 81 AS SIGNED ) * + 93 + - 35 * + 26
----
179882

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + 24 * + CAST ( + 81 AS INTEGER ) * + 93 + - 35 * + 26
----
179882

query I rowsort
SELECT ALL 96 + - 50
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT DISTINCT - 61 + + COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT - 61 + + COUNT ( * ) AS col2
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1677
SELECT ALL + COALESCE ( - 26, 6 + + COUNT( * ) - - 42 * + 35 DIV + MAX( ALL 18 ) DIV + 98 DIV - 71 + - COUNT( * ) ) * + 25
----
-650

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + COALESCE ( - 26, 6 + + COUNT ( * ) - - 42 * + 35 / + MAX ( ALL 18 ) / + 98 / - 71 + - COUNT ( * ) ) * + 25
----
-650

query I rowsort
SELECT DISTINCT - 52 + + + 26
----
-26

query I rowsort
SELECT DISTINCT 89 + - - 76
----
165

query II rowsort
SELECT DISTINCT 89 AS col0, 86 AS col0
----
89
86

query I rowsort
SELECT DISTINCT 7 + - 6 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1682
SELECT COUNT( * ) + - 42 + ( - CASE - - 40 WHEN - + CAST( NULL AS SIGNED ) THEN NULL WHEN + ( 36 ) + - - 17 - 34 + 32 * - 72 THEN - ( - 75 ) * 58 ELSE NULL END ) * - 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT COUNT ( * ) + - 42 + ( - CASE - - 40 WHEN - + CAST ( NULL AS INTEGER ) THEN NULL WHEN + ( 36 ) + - - 17 - 34 + 32 * - 72 THEN - ( - 75 ) * 58 ELSE NULL END ) * - 17 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT 4 DIV + 84 + - - 87 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1683
SELECT 4 / + 84 + - - 87 AS col1
----
87

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

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT CAST ( NULL AS REAL ) + - 94
----
NULL

query II rowsort
SELECT ALL - 53 AS col2, 56
----
-53
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1686
SELECT DISTINCT - + CASE - 73 WHEN - 1 * 67 THEN NULL WHEN + COUNT( * ) * 72 + 49 * + 87 THEN - + CAST( NULL AS SIGNED ) / - - 12 / 23 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT - + CASE - 73 WHEN - 1 * 67 THEN NULL WHEN + COUNT ( * ) * 72 + 49 * + 87 THEN - + CAST ( NULL AS INTEGER ) / - - 12 / 23 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1687
SELECT ALL + COALESCE ( - - ( + - 20 ), ( + + 88 ) + + + COUNT( + ( + 88 ) ) + + 94 ) + + 35 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + COALESCE ( - - ( + - 20 ), ( + + 88 ) + + + COUNT ( + ( + 88 ) ) + + 94 ) + + 35 / CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1689
SELECT ALL - 58 * - 96 * ( - CASE 21 WHEN + 18 THEN + - 30 * + 53 WHEN - - 12 THEN NULL ELSE NULL END ) / - + 19 - COALESCE ( 31 + CAST( NULL AS SIGNED ), ( 27 ), 80 + 92 ) + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - 58 * - 96 * ( - CASE 21 WHEN + 18 THEN + - 30 * + 53 WHEN - - 12 THEN NULL ELSE NULL END ) / - + 19 - COALESCE ( 31 + CAST ( NULL AS INTEGER ), ( 27 ), 80 + 92 ) + + 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1690
SELECT ALL + 47 - + COUNT( * ) + + + COALESCE ( + + 59, - 67 ) DIV + 29 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + 47 - + COUNT ( * ) + + + COALESCE ( + + 59, - 67 ) / + 29 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT DISTINCT + + MIN( + - 80 ) * - 51 AS col2
----
4080

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT + + MIN ( + - 80 ) * - 51 AS col2
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT DISTINCT NULLIF ( + CASE + 36 WHEN + 53 THEN 65 * + 69 * 86 + - + 56 END, - + 11 - + 67 + 51 * - 73 ) * SUM( + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT NULLIF ( + CASE + 36 WHEN + 53 THEN 65 * + 69 * 86 + - + 56 END, - + 11 - + 67 + 51 * - 73 ) * SUM ( + 64 )
----
NULL

query I rowsort
SELECT ALL + 97 * - COALESCE ( + 77, 19 + 44 ) AS col0
----
-7469

query I rowsort
SELECT 53 - - 32 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT 76 DIV - 80 * - 29
----
0

skipif mysql # not compatible
query I rowsort label-1695
SELECT 76 / - 80 * - 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT COUNT( * ) - 18 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-1696
SELECT COUNT ( * ) - 18 AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1697
SELECT ALL + COALESCE ( - + 61, + - 43 ) DIV + 12
----
-5

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + COALESCE ( - + 61, + - 43 ) / + 12
----
-5

query I rowsort
SELECT ALL + ( - - 99 ) * - 66
----
-6534

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

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

query I rowsort
SELECT 20 * - 37 * + 30 AS col2
----
-22200

onlyif mysql # aggregate syntax: 
query II rowsort label-1701
SELECT DISTINCT - 56 AS col0, 78 + - COUNT( * ) AS col1
----
-56
77

skipif mysql # not compatible
query II rowsort label-1701
SELECT DISTINCT - 56 AS col0, 78 + - COUNT ( * ) AS col1
----
-56
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COALESCE ( + - 58, - 59 + + - 87 / 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COALESCE ( + - 58, - 59 + + - 87 / 31 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1703
SELECT 94 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1704
SELECT ( + COUNT( * ) ) + COUNT( ALL 41 ) + + + 61 DIV + 95 + - COUNT( DISTINCT COALESCE ( + 94, - 25, 58 * 86 + 3 * + 94 ) ) * 9
----
-7

skipif mysql # not compatible
query I rowsort label-1704
SELECT ( + COUNT ( * ) ) + COUNT ( ALL 41 ) + + + 61 / + 95 + - COUNT ( DISTINCT COALESCE ( + 94, - 25, 58 * 86 + 3 * + 94 ) ) * 9
----
-7

query I rowsort
SELECT 39 - - 90 + + 44 AS col1
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL + 38 * MAX( - - 38 ) AS col1
----
1444

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + 38 * MAX ( - - 38 ) AS col1
----
1444

query I rowsort
SELECT 10 * - 43 AS col0
----
-430

query I rowsort
SELECT DISTINCT + NULLIF ( 73, - + 79 ) * 72 * + COALESCE ( - - 68, + 83, + NULLIF ( - 94, 96 ) )
----
357408

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT DISTINCT - 65 + 1 DIV + + 71 + + - 16 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT - 65 + 1 / + + 71 + + - 16 AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT ALL + CAST( NULL AS SIGNED ) + + + 78 + - - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 78 + - - 10 AS col0
----
NULL

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

query I rowsort
SELECT ALL - 47 + + 74
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1713
SELECT 39 + + - 4, + 40 + + 51 * - + COUNT( * ) * - 29 AS col2
----
35
1519

skipif mysql # not compatible
query II rowsort label-1713
SELECT 39 + + - 4, + 40 + + 51 * - + COUNT ( * ) * - 29 AS col2
----
35
1519

onlyif mysql # aggregate syntax: 
query II rowsort label-1714
SELECT ALL COUNT( * ), + 21 * + 78 AS col2
----
1
1638

skipif mysql # not compatible
query II rowsort label-1714
SELECT ALL COUNT ( * ), + 21 * + 78 AS col2
----
1
1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1715
SELECT DISTINCT - ( - CASE + ( CAST( 38 AS SIGNED ) ) WHEN - - 65 * - 10 THEN NULL ELSE - - 8 END ) + - + 99
----
-91

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT - ( - CASE + ( CAST ( 38 AS INTEGER ) ) WHEN - - 65 * - 10 THEN NULL ELSE - - 8 END ) + - + 99
----
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT ALL - 48 + 17 DIV + - 93 * + 58 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - 48 + 17 / + - 93 * + 58 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1718
SELECT DISTINCT COUNT( DISTINCT - 53 ) AS col2, + 64
----
1
64

skipif mysql # not compatible
query II rowsort label-1718
SELECT DISTINCT COUNT ( DISTINCT - 53 ) AS col2, + 64
----
1
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT 38 * + NULLIF ( + - 69, CAST( 69 AS SIGNED ) * + 14 )
----
-2622

skipif mysql # not compatible
query I rowsort label-1719
SELECT 38 * + NULLIF ( + - 69, CAST ( 69 AS INTEGER ) * + 14 )
----
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT CASE - 98 WHEN - COUNT( * ) * - 3 THEN - - 23 END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1720
SELECT CASE - 98 WHEN - COUNT ( * ) * - 3 THEN - - 23 END + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + + 59 * 27 col0
----
1593

onlyif mysql # aggregate syntax: 
query II rowsort label-1722
SELECT - 81 AS col1, 82 * + CASE + 55 WHEN - 28 THEN NULL WHEN MIN( + ( 28 ) ) THEN NULL ELSE - 96 END * ( + + 47 ) AS col1
----
-81
-369984

skipif mysql # not compatible
query II rowsort label-1722
SELECT - 81 AS col1, 82 * + CASE + 55 WHEN - 28 THEN NULL WHEN MIN ( + ( 28 ) ) THEN NULL ELSE - 96 END * ( + + 47 ) AS col1
----
-81
-369984

query II rowsort
SELECT - + 65, 32 col0
----
-65
32

query II rowsort
SELECT - 31, 76 * - 37 * 10 - 65 + + 66 AS col2
----
-31
-28119

onlyif mysql # aggregate syntax: 
query II rowsort label-1725
SELECT ALL 43 AS col1, + SUM( - 89 ) * + 82 AS col0
----
43
-7298

skipif mysql # not compatible
query II rowsort label-1725
SELECT ALL 43 AS col1, + SUM ( - 89 ) * + 82 AS col0
----
43
-7298

onlyif mysql # DIV for integer division: 
query I rowsort label-1726
SELECT + COALESCE ( - 63, 49, - 48 + - 80 DIV - 49 + - - 4 * 2 ) - + 73 - - 60 * - + 11 AS col0
----
-796

skipif mysql # not compatible
query I rowsort label-1726
SELECT + COALESCE ( - 63, 49, - 48 + - 80 / - 49 + - - 4 * 2 ) - + 73 - - 60 * - + 11 AS col0
----
-796

query I rowsort
SELECT 42 + - + 70
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-1728
SELECT - COUNT( * ) AS col2, + 74 * - CASE - 70 WHEN + 28 THEN + - 24 WHEN 68 THEN + - 43 END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1728
SELECT - COUNT ( * ) AS col2, + 74 * - CASE - 70 WHEN + 28 THEN + - 24 WHEN 68 THEN + - 43 END
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1729
SELECT ALL + - 55 * 92 + + - 68 - 63 DIV 75 col0
----
-5128

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL + - 55 * 92 + + - 68 - 63 / 75 col0
----
-5128

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT 21 DIV + - 5 + - - 38 * - 51 + - 50 AS col2
----
-1992

skipif mysql # not compatible
query I rowsort label-1730
SELECT 21 / + - 5 + - - 38 * - 51 + - 50 AS col2
----
-1992

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT COALESCE ( 70, 1 ) * - 0 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1731
SELECT COALESCE ( 70, 1 ) * - 0 - + + COUNT ( * )
----
-1

query II rowsort
SELECT + 55 AS col2, 89 * - - 81 AS col0
----
55
7209

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT 57 + - 26 * + ( COUNT( * ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1733
SELECT 57 + - 26 * + ( COUNT ( * ) ) AS col0
----
31

query I rowsort
SELECT - ( - NULLIF ( + 63, + 59 * - + 87 ) ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT MAX( DISTINCT - 95 ) * 53 - + 67 + - 74
----
-5176

skipif mysql # not compatible
query I rowsort label-1735
SELECT MAX ( DISTINCT - 95 ) * 53 - + 67 + - 74
----
-5176

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT + - ( + - COUNT( * ) ) * + COUNT( * ) + + 81 * - 41 + + - NULLIF ( - NULLIF ( + - 40, + 85 ), - 95 * - 88 )
----
-3360

skipif mysql # not compatible
query I rowsort label-1737
SELECT + - ( + - COUNT ( * ) ) * + COUNT ( * ) + + 81 * - 41 + + - NULLIF ( - NULLIF ( + - 40, + 85 ), - 95 * - 88 )
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL - 36 * CASE WHEN NOT NULL IS NULL THEN NULL WHEN - COUNT( * ) IN ( + - 44 * + + 9 ) THEN - NULLIF ( - 46, - 43 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - 36 * CASE WHEN NOT NULL IS NULL THEN NULL WHEN - COUNT ( * ) IN ( + - 44 * + + 9 ) THEN - NULLIF ( - 46, - 43 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1739
SELECT ALL CASE - 58 WHEN - - SUM( - 94 ) - + + COUNT( * ) - + - 89 * 88 * + SUM( DISTINCT - 37 ) * 34 THEN - + 55 + 15 ELSE 25 DIV + SUM( + 61 ) END * - 12
----
0

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL CASE - 58 WHEN - - SUM ( - 94 ) - + + COUNT ( * ) - + - 89 * 88 * + SUM ( DISTINCT - 37 ) * 34 THEN - + 55 + 15 ELSE 25 / + SUM ( + 61 ) END * - 12
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT COUNT( - 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1740
SELECT COUNT ( - 82 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT 14 * 94 * + ( - - 54 ) * + 10 * + 18 + 6 + - 7 * - COALESCE ( + NULLIF ( + 42, 45 ), ( 60 ) DIV - ( + 16 ) + - 28 * 79 )
----
12791820

skipif mysql # not compatible
query I rowsort label-1741
SELECT 14 * 94 * + ( - - 54 ) * + 10 * + 18 + 6 + - 7 * - COALESCE ( + NULLIF ( + 42, 45 ), ( 60 ) / - ( + 16 ) + - 28 * 79 )
----
12791820

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT ( + 79 ) * - COUNT( * ) * + 94
----
-7426

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT ( + 79 ) * - COUNT ( * ) * + 94
----
-7426

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT 42 * - + 2 * MAX( ALL + + 88 ) + - 52 AS col1
----
-7444

skipif mysql # not compatible
query I rowsort label-1743
SELECT 42 * - + 2 * MAX ( ALL + + 88 ) + - 52 AS col1
----
-7444

onlyif mysql # aggregate syntax: 
query II rowsort label-1744
SELECT SUM( + 10 ) AS col1, + 1 + - COUNT( ALL + + 97 ) - - 94 * - 73
----
10
-6862

skipif mysql # not compatible
query II rowsort label-1744
SELECT SUM ( + 10 ) AS col1, + 1 + - COUNT ( ALL + + 97 ) - - 94 * - 73
----
10
-6862

onlyif mysql # DIV for integer division: 
query I rowsort label-1745
SELECT + 67 DIV + 34
----
1

skipif mysql # not compatible
query I rowsort label-1745
SELECT + 67 / + 34
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT + 85 * 29 * - - COUNT( * ) AS col2
----
2465

skipif mysql # not compatible
query I rowsort label-1746
SELECT + 85 * 29 * - - COUNT ( * ) AS col2
----
2465

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT - CASE 30 WHEN - 98 THEN 89 * + - CASE WHEN ( + ( + - 16 ) ) NOT IN ( 5 + 90 + - - 83 + + - 23 ) THEN NULL WHEN ( ( + COUNT( * ) ) + - COALESCE ( - AVG ( DISTINCT - 68 ), - 41 ) * 28 ) IS NOT NULL THEN NULL ELSE 79 END + + 31 WHEN - MIN( ALL 62 ) THEN NULL ELSE + ( 40 ) END AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-1747
SELECT - CASE 30 WHEN - 98 THEN 89 * + - CASE WHEN ( + ( + - 16 ) ) NOT IN ( 5 + 90 + - - 83 + + - 23 ) THEN NULL WHEN ( ( + COUNT ( * ) ) + - COALESCE ( - AVG ( DISTINCT - 68 ), - 41 ) * 28 ) IS NOT NULL THEN NULL ELSE 79 END + + 31 WHEN - MIN ( ALL 62 ) THEN NULL ELSE + ( 40 ) END AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1748
SELECT ALL - 52 * + + CASE + + 55 WHEN + 24 THEN NULL WHEN CAST( - ( + - 48 ) AS SIGNED ) THEN + 7 ELSE ( 34 ) * + + 84 DIV 51 DIV CASE WHEN AVG ( - 35 ) IS NOT NULL THEN - 64 + - ( + 38 - COUNT( * ) ) WHEN NULL BETWEEN - COUNT( * ) AND - NULLIF ( + CAST( NULL AS SIGNED ), SUM( DISTINCT - 15 ) ) THEN NULL ELSE NULL END + 53 + NULLIF ( 40, + CASE MIN( DISTINCT - 66 ) WHEN COUNT( * ) THEN 20 DIV 72 + 2 * 32 END ) END
----
-4836

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL - 52 * + + CASE + + 55 WHEN + 24 THEN NULL WHEN CAST ( - ( + - 48 ) AS INTEGER ) THEN + 7 ELSE ( 34 ) * + + 84 / 51 / CASE WHEN AVG ( - 35 ) IS NOT NULL THEN - 64 + - ( + 38 - COUNT ( * ) ) WHEN NULL BETWEEN - COUNT ( * ) AND - NULLIF ( + CAST ( NULL AS INTEGER ), SUM ( DISTINCT - 15 ) ) THEN NULL ELSE NULL END + 53 + NULLIF ( 40, + CASE MIN ( DISTINCT - 66 ) WHEN COUNT ( * ) THEN 20 / 72 + 2 * 32 END ) END
----
-4836

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1749
SELECT - 37 DIV - 44, ( 99 ) * - 57 * + ( + - COUNT( * ) ) * + 86 + + 14 * 65 * + - 46 AS col2
----
0
443438

skipif mysql # not compatible
query II rowsort label-1749
SELECT - 37 / - 44, ( 99 ) * - 57 * + ( + - COUNT ( * ) ) * + 86 + + 14 * 65 * + - 46 AS col2
----
0
443438

query I rowsort
SELECT ALL 43 + - 14 + - + 95
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT + 89 * - + 25 * + 60 * COUNT( * ) AS col0
----
-133500

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT + 89 * - + 25 * + 60 * COUNT ( * ) AS col0
----
-133500

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1752
SELECT ALL CAST( NULL AS SIGNED ) + + 74, 81 AS col2
----
NULL
81

skipif mysql # not compatible
query II rowsort label-1752
SELECT ALL CAST ( NULL AS INTEGER ) + + 74, 81 AS col2
----
NULL
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1753
SELECT + 25 - COUNT( * ), - 32 AS col2
----
24
-32

skipif mysql # not compatible
query II rowsort label-1753
SELECT + 25 - COUNT ( * ), - 32 AS col2
----
24
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1754
SELECT - CASE + SUM( - 69 ) WHEN + - NULLIF ( 86, - 7 * + 15 - + 44 * - 54 * 53 / - COUNT( * ) * - CAST( NULL AS SIGNED ) - 79 ) THEN NULL WHEN + 98 + CAST( - 48 AS SIGNED ) THEN NULL ELSE MIN( - CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT - CASE + SUM ( - 69 ) WHEN + - NULLIF ( 86, - 7 * + 15 - + 44 * - 54 * 53 / - COUNT ( * ) * - CAST ( NULL AS INTEGER ) - 79 ) THEN NULL WHEN + 98 + CAST ( - 48 AS INTEGER ) THEN NULL ELSE MIN ( - CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1755
SELECT + 1 DIV COALESCE ( - 85, - - 77 + - - 49 * - 95, + 62 ) * + 59 * 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1755
SELECT + 1 / COALESCE ( - 85, - - 77 + - - 49 * - 95, + 62 ) * + 59 * 94 AS col0
----
0

query I rowsort
SELECT ALL - 44 * - - 67 AS col0
----
-2948

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1757
SELECT DISTINCT - 35 - - - CAST( NULL AS DECIMAL ) + - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT - 35 - - - CAST ( NULL AS REAL ) + - + 64
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT ALL - 33 - + - CAST( - - ( - ( + + 73 ) ) AS SIGNED ) * - + 84
----
6099

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL - 33 - + - CAST ( - - ( - ( + + 73 ) ) AS INTEGER ) * - + 84
----
6099

query I rowsort
SELECT - + 52 - 32 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-1760
SELECT - 86 + 26 * + - 63 * 4 + + MAX( DISTINCT - 41 ) - - 26 AS col1, 54 AS col0
----
-6653
54

skipif mysql # not compatible
query II rowsort label-1760
SELECT - 86 + 26 * + - 63 * 4 + + MAX ( DISTINCT - 41 ) - - 26 AS col1, 54 AS col0
----
-6653
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT - - SUM( + + 43 ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-1761
SELECT - - SUM ( + + 43 ) AS col1
----
43

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1763
SELECT - - 26 * + - COUNT( * ) * + - COUNT( * ) + - 36 + - COALESCE ( + - 27, - + 79 + + 67 + + - 20 * - 57, - 22, - COALESCE ( 73, MAX( ALL + ( 8 ) ), 43 * - 21, COUNT( * ) ) DIV + 95 ) * + 1 * - 0
----
-10

skipif mysql # not compatible
query I rowsort label-1763
SELECT - - 26 * + - COUNT ( * ) * + - COUNT ( * ) + - 36 + - COALESCE ( + - 27, - + 79 + + 67 + + - 20 * - 57, - 22, - COALESCE ( 73, MAX ( ALL + ( 8 ) ), 43 * - 21, COUNT ( * ) ) / + 95 ) * + 1 * - 0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT + - CAST( + 55 AS SIGNED ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1764
SELECT + - CAST ( + 55 AS INTEGER ) AS col2
----
-55

query I rowsort
SELECT + 72 * + + 85 col0
----
6120

onlyif mysql # DIV for integer division: 
query I rowsort label-1766
SELECT + 21 * 89 DIV - + 90
----
-20

skipif mysql # not compatible
query I rowsort label-1766
SELECT + 21 * 89 / - + 90
----
-20

query I rowsort
SELECT - 91 * + + 44
----
-4004

query I rowsort
SELECT + 97 * 11 AS col2
----
1067

query I rowsort
SELECT ALL - 63 * + 53 + + 60 AS col1
----
-3279

query I rowsort
SELECT + 85 - + 58 AS col2
----
27

query I rowsort
SELECT DISTINCT ( 40 ) * + + 78 - + 89 - + + 48 + - 91
----
2892

query I rowsort
SELECT DISTINCT 2 * - 92
----
-184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1773
SELECT + 25 + + 56 + + COUNT( * ) * CAST( NULL AS SIGNED ) + - - COUNT( ALL 68 ) + MIN( + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT + 25 + + 56 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - - COUNT ( ALL 68 ) + MIN ( + 84 )
----
NULL

query I rowsort
SELECT + 31 * + 29 AS col2
----
899

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

skipif mysql # not compatible
query I rowsort label-1775
SELECT MAX ( + 30 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1776
SELECT + ( MIN( DISTINCT - + 15 ) ) - + CASE COALESCE ( - COUNT( * ), - 85, - - 50 - 70 ) WHEN - 8 * + + 59 + - 12 * - 23 + + 84 + + ( 29 ) * 48 THEN NULL WHEN - 64 THEN 62 WHEN + CAST( NULL AS SIGNED ) THEN 39 ELSE 67 END + 99 * - 35 AS col2
----
-3547

skipif mysql # not compatible
query I rowsort label-1776
SELECT + ( MIN ( DISTINCT - + 15 ) ) - + CASE COALESCE ( - COUNT ( * ), - 85, - - 50 - 70 ) WHEN - 8 * + + 59 + - 12 * - 23 + + 84 + + ( 29 ) * 48 THEN NULL WHEN - 64 THEN 62 WHEN + CAST ( NULL AS INTEGER ) THEN 39 ELSE 67 END + 99 * - 35 AS col2
----
-3547

query I rowsort
SELECT + 78 + + + 82 AS col1
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL CASE + 23 WHEN - + 95 / - 76 - COUNT( * ) THEN NULL ELSE + COUNT( * ) END * - 80 + - + 83 + + 47 - COUNT( 0 ) * - 98
----
-18

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL CASE + 23 WHEN - + 95 / - 76 - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END * - 80 + - + 83 + + 47 - COUNT ( 0 ) * - 98
----
-18

query I rowsort
SELECT + 95 * ( + + 48 ) AS col1
----
4560

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT ALL COUNT( * ) * - - 26
----
26

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL COUNT ( * ) * - - 26
----
26

query I rowsort
SELECT + ( + + 52 ) + ( - 67 ) AS col0
----
-15

query II rowsort
SELECT DISTINCT - 23 AS col1, 88
----
-23
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT + COUNT( * ) + COUNT( * ) + + + 67 * + NULLIF ( + 57, + - 92 ) + - + 57 + - COUNT( * ) + - + 88
----
3675

skipif mysql # not compatible
query I rowsort label-1783
SELECT + COUNT ( * ) + COUNT ( * ) + + + 67 * + NULLIF ( + 57, + - 92 ) + - + 57 + - COUNT ( * ) + - + 88
----
3675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1784
SELECT DISTINCT 92 DIV 83 * - 61 * - + NULLIF ( - 13, 33 - 13 ) * 40 + - COUNT( * )
----
-31721

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT 92 / 83 * - 61 * - + NULLIF ( - 13, 33 - 13 ) * 40 + - COUNT ( * )
----
-31721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1785
SELECT + - SUM( DISTINCT 22 ) + + 91 / - + 4 + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + + 10 - 27 + - + 96 * - - NULLIF ( - 33, + 23 * + + 92 ) - - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1785
SELECT + - SUM ( DISTINCT 22 ) + + 91 / - + 4 + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + 10 - 27 + - + 96 * - - NULLIF ( - 33, + 23 * + + 92 ) - - 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1786
SELECT - + 15 DIV MAX( ALL 87 )
----
0

skipif mysql # not compatible
query I rowsort label-1786
SELECT - + 15 / MAX ( ALL 87 )
----
0

query I rowsort
SELECT ALL + 10 * 73 col0
----
730

query I rowsort
SELECT + + 4 + - - 86 * - 66 * - 35 * + - 59 AS col2
----
-11720936

query I rowsort
SELECT - 49 * + 43 - + + ( 75 )
----
-2182

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

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

query II rowsort
SELECT 14 col0, + 15
----
14
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1792
SELECT ALL - - 88 * 51 + + + 26 AS col1, - MIN( ALL 86 )
----
4514
-86

skipif mysql # not compatible
query II rowsort label-1792
SELECT ALL - - 88 * 51 + + + 26 AS col1, - MIN ( ALL 86 )
----
4514
-86

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1794
SELECT ALL - 40 AS col2, 60 + - 57 + + 3 + 77 DIV - 64
----
-40
5

skipif mysql # not compatible
query II rowsort label-1794
SELECT ALL - 40 AS col2, 60 + - 57 + + 3 + 77 / - 64
----
-40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT DISTINCT NULLIF ( - - 57, + + 44 + + + COUNT( * ) )
----
57

skipif mysql # not compatible
query I rowsort label-1795
SELECT DISTINCT NULLIF ( - - 57, + + 44 + + + COUNT ( * ) )
----
57

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

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL - - COUNT ( * ) + - + ( + + 27 ) AS col0
----
-26

query I rowsort
SELECT ALL + 58 + - 29 + 75 - - 88 AS col0
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-1798
SELECT ALL - - 73 AS col2, COUNT( * ) * + COUNT( 91 )
----
73
1

skipif mysql # not compatible
query II rowsort label-1798
SELECT ALL - - 73 AS col2, COUNT ( * ) * + COUNT ( 91 )
----
73
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ( - - 43 ) * 63 * COUNT( * ) + + 10 - - SUM( DISTINCT - 6 ) + - + 42 * - 29 * + COALESCE ( + 97, + 43, 36 ) AS col2
----
120859

skipif mysql # not compatible
query I rowsort label-1800
SELECT ( - - 43 ) * 63 * COUNT ( * ) + + 10 - - SUM ( DISTINCT - 6 ) + - + 42 * - 29 * + COALESCE ( + 97, + 43, 36 ) AS col2
----
120859

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT DISTINCT + COUNT( * ) + - NULLIF ( + + 47, + 22 ) col2
----
-46

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT + COUNT ( * ) + - NULLIF ( + + 47, + 22 ) col2
----
-46

query I rowsort
SELECT ALL - 79 + 7
----
-72

query I rowsort
SELECT 20 * 47
----
940

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1804
SELECT 39 + 98 AS col1, CASE CAST( NULL AS SIGNED ) WHEN - - 66 * - 42 THEN NULL ELSE + 31 * 33 END + - + 70 DIV + 50 + - + 29 * - - 85 + + - 4
----
137
-1447

skipif mysql # not compatible
query II rowsort label-1804
SELECT 39 + 98 AS col1, CASE CAST ( NULL AS INTEGER ) WHEN - - 66 * - 42 THEN NULL ELSE + 31 * 33 END + - + 70 / + 50 + - + 29 * - - 85 + + - 4
----
137
-1447

query I rowsort
SELECT 49 + + 80 AS col1
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-1806
SELECT 29 DIV 4 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1806
SELECT 29 / 4 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1807
SELECT ALL - ( + 19 ) AS col2, - 18 + - CAST( - 3 AS SIGNED ) AS col2
----
-19
-15

skipif mysql # not compatible
query II rowsort label-1807
SELECT ALL - ( + 19 ) AS col2, - 18 + - CAST ( - 3 AS INTEGER ) AS col2
----
-19
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT 16 * COUNT( * ) + 65 - + 37 * ( + - 73 ) - + 73 AS col1
----
2709

skipif mysql # not compatible
query I rowsort label-1808
SELECT 16 * COUNT ( * ) + 65 - + 37 * ( + - 73 ) - + 73 AS col1
----
2709

query I rowsort
SELECT ( - 7 ) + - 65 * + ( + 45 ) + - + 80 AS col2
----
-3012

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1810
SELECT ALL 89 - - - ( COUNT( * ) ) + - 35 DIV + 19
----
87

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL 89 - - - ( COUNT ( * ) ) + - 35 / + 19
----
87

query II rowsort
SELECT 64 * - + 54 AS col2, - 88 AS col2
----
-3456
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL 83 * - MAX( ALL - - 46 ) AS col0
----
-3818

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL 83 * - MAX ( ALL - - 46 ) AS col0
----
-3818

query I rowsort
SELECT ALL + 17 - - 39 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + + COUNT( * ) * 58 + - 3 - 97 + 92 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-1814
SELECT + + COUNT ( * ) * 58 + - 3 - 97 + 92 AS col0
----
50

query I rowsort
SELECT - NULLIF ( - + 84, + 25 * + 16 * + - 63 )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1816
SELECT ALL + COUNT( * ) * + - COALESCE ( + 47, 5 * + 38 + - 38 + + 13 + + + 79 DIV - ( + 76 ) ) + 55 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL + COUNT ( * ) * + - COALESCE ( + 47, 5 * + 38 + - 38 + + 13 + + + 79 / - ( + 76 ) ) + 55 AS col2
----
8

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

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

query I rowsort
SELECT ALL ( 2 ) * + 54
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT + 55 - + COUNT( * ) * 44 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1819
SELECT + 55 - + COUNT ( * ) * 44 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1820
SELECT DISTINCT + CASE 58 WHEN + 76 + + + ( - + CAST( 84 AS SIGNED ) ) THEN NULL ELSE - + ( + ( - 45 ) ) END * + 92 AS col1, + 64
----
4140
64

skipif mysql # not compatible
query II rowsort label-1820
SELECT DISTINCT + CASE 58 WHEN + 76 + + + ( - + CAST ( 84 AS INTEGER ) ) THEN NULL ELSE - + ( + ( - 45 ) ) END * + 92 AS col1, + 64
----
4140
64

query I rowsort
SELECT - 77 * + - 58 AS col2
----
4466

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT DISTINCT - 48 + MIN( DISTINCT + + 67 ) * COUNT( * ) AS col0, 89 AS col0
----
19
89

skipif mysql # not compatible
query II rowsort label-1823
SELECT DISTINCT - 48 + MIN ( DISTINCT + + 67 ) * COUNT ( * ) AS col0, 89 AS col0
----
19
89

query II rowsort
SELECT DISTINCT 65 + - + ( 42 ) + 58 col0, - 81 * + + ( - 38 ) + + - 17
----
81
3061

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1825
SELECT 42 * - 6 + + - 95 * - 92 * + COUNT( * ) AS col2, + 38 DIV + 17
----
8488
2

skipif mysql # not compatible
query II rowsort label-1825
SELECT 42 * - 6 + + - 95 * - 92 * + COUNT ( * ) AS col2, + 38 / + 17
----
8488
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT ALL - COALESCE ( - 37, - ( + 62 ) - - CASE 47 WHEN + 4 THEN + - 58 WHEN - NULLIF ( + + COUNT( * ), 46 * - 64 ) THEN NULL ELSE - 78 END ) + 74 * + 39 col1
----
2923

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL - COALESCE ( - 37, - ( + 62 ) - - CASE 47 WHEN + 4 THEN + - 58 WHEN - NULLIF ( + + COUNT ( * ), 46 * - 64 ) THEN NULL ELSE - 78 END ) + 74 * + 39 col1
----
2923

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT ALL COUNT( * ) + NULLIF ( + - 65, - 89 / 43 * 23 ) - 48
----
-112

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL COUNT ( * ) + NULLIF ( + - 65, - 89 / 43 * 23 ) - 48
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT 22 * - 26 + SUM( + - NULLIF ( - 96, - 98 ) )
----
-476

skipif mysql # not compatible
query I rowsort label-1829
SELECT 22 * - 26 + SUM ( + - NULLIF ( - 96, - 98 ) )
----
-476

query I rowsort
SELECT 65 + - - 16
----
81

query II rowsort
SELECT 11 + - 35 AS col1, + 76 * - 9
----
-24
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL 33 + - - NULLIF ( - COUNT( * ), 21 / 83 * - 53 / + + MIN( DISTINCT - 72 ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL 33 + - - NULLIF ( - COUNT ( * ), 21 / 83 * - 53 / + + MIN ( DISTINCT - 72 ) ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ALL + - MIN( + 43 ) + + COALESCE ( - - 42, + COUNT( * ) + - 86 + 63, + 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + - MIN ( + 43 ) + + COALESCE ( - - 42, + COUNT ( * ) + - 86 + 63, + 38 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1834
SELECT CAST( NULL AS SIGNED ) * + - 84 * + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT CAST ( NULL AS INTEGER ) * + - 84 * + 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT MIN( - 70 ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-1835
SELECT MIN ( - 70 ) col0
----
-70

query II rowsort
SELECT DISTINCT ( - 81 ) + + 16 AS col1, 92
----
-65
92

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

skipif mysql # not compatible
query I rowsort label-1837
SELECT + MAX ( - 55 )
----
-55

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

query II rowsort
SELECT + 0, - ( - COALESCE ( 20, - - 68 - - 19, 50 ) ) AS col0
----
0
20

query I rowsort
SELECT ALL 68 - 51 * 50 AS col1
----
-2482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1841
SELECT ALL COUNT( * ) * + NULLIF ( - 91, + AVG ( ALL + - ( + CAST( NULL AS SIGNED ) ) ) )
----
-91

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL COUNT ( * ) * + NULLIF ( - 91, + AVG ( ALL + - ( + CAST ( NULL AS INTEGER ) ) ) )
----
-91

query II rowsort
SELECT DISTINCT - 16 AS col1, 42 - - ( + 83 ) - 40 * 40 AS col1
----
-16
-1475

query I rowsort
SELECT ALL + 47 - + 86
----
-39

query I rowsort
SELECT 55 * - 6 AS col1
----
-330

onlyif mysql # aggregate syntax: 
query II rowsort label-1845
SELECT - 20 * + 74 + - + MAX( + ( - + 34 ) ), 49 AS col2
----
-1446
49

skipif mysql # not compatible
query II rowsort label-1845
SELECT - 20 * + 74 + - + MAX ( + ( - + 34 ) ), 49 AS col2
----
-1446
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1846
SELECT ALL + 48 - - + 92 * 64, + 5 * + 36 + - 76 + 12 - + - 10 DIV - 76 * - COUNT( ALL + - 30 ) * + + 45 + + 93 AS col2
----
5936
209

skipif mysql # not compatible
query II rowsort label-1846
SELECT ALL + 48 - - + 92 * 64, + 5 * + 36 + - 76 + 12 - + - 10 / - 76 * - COUNT ( ALL + - 30 ) * + + 45 + + 93 AS col2
----
5936
209

query II rowsort
SELECT ALL - 19 AS col1, 13 AS col2
----
-19
13

query I rowsort
SELECT DISTINCT + 30 * + 42 AS col1
----
1260

query I rowsort
SELECT 58 * + 21
----
1218

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT COUNT( * ) * - COUNT( * ) - + + 57 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1851
SELECT COUNT ( * ) * - COUNT ( * ) - + + 57 AS col2
----
-58

query I rowsort
SELECT DISTINCT + 31 * + ( - + 77 ) * + COALESCE ( + 33, 88 ) + - ( - 73 )
----
-78698

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT + 82 * + - COUNT( * ) + - 46 * COUNT( * ) AS col0
----
-128

skipif mysql # not compatible
query I rowsort label-1853
SELECT + 82 * + - COUNT ( * ) + - 46 * COUNT ( * ) AS col0
----
-128

query I rowsort
SELECT 54 + 75 AS col2
----
129

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

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

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

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

query I rowsort
SELECT 11 + 98 AS col1
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1858
SELECT + + 12 * + 33 * - 80 * - - 41 + 52 * + 44 * ( - + 72 ) + - 28 + - 54 DIV - 91 - - SUM( - ( 44 ) ) col0
----
-1463688

skipif mysql # not compatible
query I rowsort label-1858
SELECT + + 12 * + 33 * - 80 * - - 41 + 52 * + 44 * ( - + 72 ) + - 28 + - 54 / - 91 - - SUM ( - ( 44 ) ) col0
----
-1463688

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT NULLIF ( + + ( - 3 ), + 63 ) DIV - - ( + 35 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1859
SELECT NULLIF ( + + ( - 3 ), + 63 ) / - - ( + 35 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT - COUNT( * ) - CAST( - - 8 AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1860
SELECT - COUNT ( * ) - CAST ( - - 8 AS INTEGER ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL - CASE 78 WHEN - 80 + - 42 THEN NULL WHEN + - 21 + + 34 THEN + - 75 * + - COUNT( * ) * + 61 * - 92 * 13 * - 7 - ( + 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - CASE 78 WHEN - 80 + - 42 THEN NULL WHEN + - 21 + + 34 THEN + - 75 * + - COUNT ( * ) * + 61 * - 92 * 13 * - 7 - ( + 2 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL - 2 + + COALESCE ( - - 5, - + 83 * + MAX( - 11 ) )
----
3

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - 2 + + COALESCE ( - - 5, - + 83 * + MAX ( - 11 ) )
----
3

query I rowsort
SELECT DISTINCT + 91 + + - 80
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT + 69 + + + 70 * COUNT( * ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT + 69 + + + 70 * COUNT ( * ) AS col0
----
139

query II rowsort
SELECT + - 63 + + NULLIF ( 87, + AVG ( + 3 ) ), - 26 col0
----
24
-26

query I rowsort
SELECT DISTINCT 50 + + 84
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1867
SELECT ALL 97, CAST( + 59 AS SIGNED ) - 95 - ( + 75 ) * + CAST( NULL AS SIGNED ) * + 80 AS col0
----
97
NULL

skipif mysql # not compatible
query II rowsort label-1867
SELECT ALL 97, CAST ( + 59 AS INTEGER ) - 95 - ( + 75 ) * + CAST ( NULL AS INTEGER ) * + 80 AS col0
----
97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1868
SELECT - 64 + - 49 + - ( CAST( NULL AS SIGNED ) ) + - ( + SUM( + + ( 98 ) ) ) * - COUNT( * ) * + NULLIF ( 15, MAX( 45 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 64 + - 49 + - ( CAST ( NULL AS INTEGER ) ) + - ( + SUM ( + + ( 98 ) ) ) * - COUNT ( * ) * + NULLIF ( 15, MAX ( 45 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1869
SELECT - 69 * - 94 + + COUNT( * ) AS col2, 97
----
6487
97

skipif mysql # not compatible
query II rowsort label-1869
SELECT - 69 * - 94 + + COUNT ( * ) AS col2, 97
----
6487
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT + + MAX( DISTINCT - + 52 ) * + 69 * - + 24 AS col0
----
86112

skipif mysql # not compatible
query I rowsort label-1870
SELECT + + MAX ( DISTINCT - + 52 ) * + 69 * - + 24 AS col0
----
86112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT DISTINCT ( - 26 ) - SUM( ALL + - 24 ) * + - 77 * + CASE 85 WHEN - + ( + - COUNT( * ) ) + - + 65 + + + CAST( - + ( + 26 ) AS SIGNED ) - + NULLIF ( + 61, + COALESCE ( 41, 8 + + MIN( 9 ) ) + + 85 ) THEN + 71 + + 11 WHEN + 6 THEN NULL END / + ( MIN( 68 ) ) - + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT ( - 26 ) - SUM ( ALL + - 24 ) * + - 77 * + CASE 85 WHEN - + ( + - COUNT ( * ) ) + - + 65 + + + CAST ( - + ( + 26 ) AS INTEGER ) - + NULLIF ( + 61, + COALESCE ( 41, 8 + + MIN ( 9 ) ) + + 85 ) THEN + 71 + + 11 WHEN + 6 THEN NULL END / + ( MIN ( 68 ) ) - + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT - COUNT( * ) * + + NULLIF ( + 9, + 13 ) + - 17 * + 50 - + 53 + + 37
----
-875

skipif mysql # not compatible
query I rowsort label-1872
SELECT - COUNT ( * ) * + + NULLIF ( + 9, + 13 ) + - 17 * + 50 - + 53 + + 37
----
-875

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL 35 * COUNT( * ) - - COUNT( * ) * + + 43
----
78

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL 35 * COUNT ( * ) - - COUNT ( * ) * + + 43
----
78

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

query I rowsort
SELECT + 26 + + 30 - - - 51 col1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT + 54 * - 25 - + 39 * - CAST( NULL AS SIGNED ) - + - 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT + 54 * - 25 - + 39 * - CAST ( NULL AS INTEGER ) - + - 59 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT + 2 + CAST( - - 74 AS SIGNED ) * + ( 49 )
----
3628

skipif mysql # not compatible
query I rowsort label-1878
SELECT + 2 + CAST ( - - 74 AS INTEGER ) * + ( 49 )
----
3628

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT 52 DIV - 22 + + 90 * 36 + + 68 AS col1
----
3306

skipif mysql # not compatible
query I rowsort label-1879
SELECT 52 / - 22 + + 90 * 36 + + 68 AS col1
----
3306

query I rowsort
SELECT + 91 * 67 + + 58 + - 35 + 85 * + - 30
----
3570

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1881
SELECT + 55 DIV + COUNT( * ) AS col0, 84 * + - 16 * + 2 + - ( + MAX( ALL 73 ) ) AS col0
----
55
-2761

skipif mysql # not compatible
query II rowsort label-1881
SELECT + 55 / + COUNT ( * ) AS col0, 84 * + - 16 * + 2 + - ( + MAX ( ALL 73 ) ) AS col0
----
55
-2761

query I rowsort
SELECT ALL + NULLIF ( + 9, - + 47 - + ( - 58 ) + - 14 + 86 / + - ( 45 ) / - - 93 * + CASE + + 7 WHEN - 46 + + 32 THEN + + 48 * 24 + 98 END + 41 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + COALESCE ( + 54, 63 + + 38 + ( + 92 ) * + COUNT( * ) ) + - - 90 + + 64 - COUNT( * ) * + 90 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-1883
SELECT + COALESCE ( + 54, 63 + + 38 + ( + 92 ) * + COUNT ( * ) ) + - - 90 + + 64 - COUNT ( * ) * + 90 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT - ( + COUNT( * ) ) * - COALESCE ( + - 71, + 85 * + + COUNT( * ), - + 50 ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-1884
SELECT - ( + COUNT ( * ) ) * - COALESCE ( + - 71, + 85 * + + COUNT ( * ), - + 50 ) col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT 72 * COUNT( ALL - + 70 )
----
72

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT 72 * COUNT ( ALL - + 70 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1886
SELECT + COALESCE ( + 51, + + 0 * - + 66 * + 19 + 26 + - - COUNT( * ) * - + 6 * - - COUNT( * ), ( - 99 ) + CAST( - - 15 AS SIGNED ) + 41 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-1886
SELECT + COALESCE ( + 51, + + 0 * - + 66 * + 19 + 26 + - - COUNT ( * ) * - + 6 * - - COUNT ( * ), ( - 99 ) + CAST ( - - 15 AS INTEGER ) + 41 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT NULLIF ( + 63, - + COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-1887
SELECT NULLIF ( + 63, - + COUNT ( * ) )
----
63

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

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

query I rowsort
SELECT + 52 * 98 + + 16
----
5112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1890
SELECT + ( + 84 ) * + - 13 DIV COUNT( * )
----
-1092

skipif mysql # not compatible
query I rowsort label-1890
SELECT + ( + 84 ) * + - 13 / COUNT ( * )
----
-1092

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

skipif mysql # not compatible
query I rowsort label-1891
SELECT + 2 * ( COUNT ( * ) ) / + 74 + 41
----
41

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1893
SELECT - 7 AS col2, SUM( DISTINCT + + 30 ) + 46, 94 AS col2
----
-7
76
94

skipif mysql # not compatible
query III rowsort label-1893
SELECT - 7 AS col2, SUM ( DISTINCT + + 30 ) + 46, 94 AS col2
----
-7
76
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT + + COALESCE ( 73, 40 DIV - 3, 56 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1894
SELECT + + COALESCE ( 73, 40 / - 3, 56 ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1895
SELECT - CASE - 2 WHEN - 32 * + + COUNT( - - 30 ) THEN 66 / - + 96 + + 85 / 4 + - COUNT( * ) * - - ( + - 49 ) * - 70 + - 80 WHEN 66 THEN NULL END * - CAST( 92 AS SIGNED ) + - 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT - CASE - 2 WHEN - 32 * + + COUNT ( - - 30 ) THEN 66 / - + 96 + + 85 / 4 + - COUNT ( * ) * - - ( + - 49 ) * - 70 + - 80 WHEN 66 THEN NULL END * - CAST ( 92 AS INTEGER ) + - 56 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT DISTINCT - CAST( - 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT - CAST ( - 18 AS INTEGER )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT - + COUNT( ALL - + 2 ) * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1897
SELECT - + COUNT ( ALL - + 2 ) * - - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT - + 26 * 14 * CAST( - 68 AS SIGNED )
----
24752

skipif mysql # not compatible
query I rowsort label-1898
SELECT - + 26 * 14 * CAST ( - 68 AS INTEGER )
----
24752

query I rowsort
SELECT - - 10 + 70 + + + 37 + + 34
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT + + NULLIF ( NULLIF ( + - 17, - 42 * + CASE - COUNT( * ) WHEN + 63 + 16 THEN NULL ELSE + ( 46 ) * - AVG ( ALL + + 70 ) - - 97 + + - 19 * 98 END ), + 82 ) + 35
----
18

skipif mysql # not compatible
query I rowsort label-1900
SELECT + + NULLIF ( NULLIF ( + - 17, - 42 * + CASE - COUNT ( * ) WHEN + 63 + 16 THEN NULL ELSE + ( 46 ) * - AVG ( ALL + + 70 ) - - 97 + + - 19 * 98 END ), + 82 ) + 35
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL - - COUNT( * ) - - + 64
----
65

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - - COUNT ( * ) - - + 64
----
65

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

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL COUNT ( * ) / - + 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL + 97 - 15 * COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL + 97 - 15 * COUNT ( * )
----
82

query I rowsort
SELECT - + 91 * 17
----
-1547

query I rowsort
SELECT - 16 - 11
----
-27

query I rowsort
SELECT - 9 * 96 AS col0
----
-864

query I rowsort
SELECT + ( 49 ) + - + 6 AS col0
----
43

query I rowsort
SELECT DISTINCT 38 * 41
----
1558

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT + COUNT( * ) + - - 24 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1909
SELECT + COUNT ( * ) + - - 24 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT + CASE - - 0 WHEN + ( - 22 ) THEN + + 64 WHEN 35 / + COUNT( DISTINCT + 29 ) THEN NULL WHEN + 9 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT + CASE - - 0 WHEN + ( - 22 ) THEN + + 64 WHEN 35 / + COUNT ( DISTINCT + 29 ) THEN NULL WHEN + 9 THEN NULL END
----
NULL

query I rowsort
SELECT + 49 * - 39 * - 21
----
40131

onlyif mysql # DIV for integer division: 
query I rowsort label-1912
SELECT ALL 49 DIV - 93 + + ( - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL 49 / - 93 + + ( - 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1913
SELECT - COUNT( * ) - 73 AS col2, 59
----
-74
59

skipif mysql # not compatible
query II rowsort label-1913
SELECT - COUNT ( * ) - 73 AS col2, 59
----
-74
59

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT + CAST( 45 AS SIGNED ) * - + 23 + 74 * + 47
----
2443

skipif mysql # not compatible
query I rowsort label-1917
SELECT + CAST ( 45 AS INTEGER ) * - + 23 + 74 * + 47
----
2443

onlyif mysql # DIV for integer division: 
query I rowsort label-1918
SELECT - + 82 DIV - - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1918
SELECT - + 82 / - - 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT - 24 + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT - 24 + COUNT ( * )
----
-23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL MIN( ALL - 69 ) + 51 + + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL MIN ( ALL - 69 ) + 51 + + COUNT ( * )
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1922
SELECT + CAST( NULL AS SIGNED ) + - 36 * 84 * - 3 - - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT + CAST ( NULL AS INTEGER ) + - 36 * 84 * - 3 - - 79
----
NULL

query I rowsort
SELECT - - 20 col0
----
20

query I rowsort
SELECT DISTINCT - 59 * + - 72
----
4248

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT ALL - 26 * COUNT( * ) AS col1, + 26 * 66 + + 92
----
-26
1808

skipif mysql # not compatible
query II rowsort label-1925
SELECT ALL - 26 * COUNT ( * ) AS col1, + 26 * 66 + + 92
----
-26
1808

query I rowsort
SELECT - 87 + - 67
----
-154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL MIN( - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL MIN ( - 95 ) AS col0
----
-95

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1930
SELECT + 49 + + - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-1930
SELECT + 49 + + - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
48
NULL

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

skipif mysql # not compatible
query I rowsort label-1931
SELECT COUNT ( * ) / 52 * - 58
----
0

query I rowsort
SELECT 58 * 2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT COUNT( * ) + + + COALESCE ( - + 94, - - 51 * + 12 )
----
-93

skipif mysql # not compatible
query I rowsort label-1933
SELECT COUNT ( * ) + + + COALESCE ( - + 94, - - 51 * + 12 )
----
-93

query II rowsort
SELECT - 43 AS col0, 70
----
-43
70

query I rowsort
SELECT 39 + + CASE + 71 WHEN NULLIF ( - 73, + 9 * - + CASE 23 WHEN - + 17 THEN + 2 END ) THEN NULL WHEN - CASE 93 WHEN - 22 THEN NULL ELSE + - 85 END THEN NULL ELSE 83 END
----
122

query I rowsort
SELECT 77 + + - 35 AS col0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-1937
SELECT 48 DIV + - ( + - 16 ) AS col0, 91 DIV - 92
----
3
0

skipif mysql # not compatible
query II rowsort label-1937
SELECT 48 / + - ( + - 16 ) AS col0, 91 / - 92
----
3
0

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

query I rowsort
SELECT ALL - 26 + - 98 AS col2
----
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1940
SELECT 64 + - - CASE CAST( NULL AS SIGNED ) WHEN + 0 THEN NULL WHEN - 55 + 55 + - 85 - - ( + + 50 ) + - + ( - - ( + + MIN( ALL + 38 ) ) ) * - CASE WHEN ( ( 6 NOT BETWEEN NULLIF ( 95, SUM( ALL 74 ) - - 51 ) / + 57 AND + 41 ) ) THEN 49 * - 66 WHEN NOT + ( - 87 ) <> ( + ( 22 ) ) THEN + CAST( - ( - 92 ) AS SIGNED ) - 70 * 87 ELSE 71 * 73 - 25 END * - 25 + 5 THEN ( + 68 ) ELSE 5 END * - 16 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1940
SELECT 64 + - - CASE CAST ( NULL AS INTEGER ) WHEN + 0 THEN NULL WHEN - 55 + 55 + - 85 - - ( + + 50 ) + - + ( - - ( + + MIN ( ALL + 38 ) ) ) * - CASE WHEN ( ( 6 NOT BETWEEN NULLIF ( 95, SUM ( ALL 74 ) - - 51 ) / + 57 AND + 41 ) ) THEN 49 * - 66 WHEN NOT + ( - 87 ) <> ( + ( 22 ) ) THEN + CAST ( - ( - 92 ) AS INTEGER ) - 70 * 87 ELSE 71 * 73 - 25 END * - 25 + 5 THEN ( + 68 ) ELSE 5 END * - 16 AS col0
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1941
SELECT DISTINCT - 44 + + - CAST( - + SUM( + 78 ) AS SIGNED ) + - - 33 + + 64 - - - 59 * + COUNT( * ) + - + 5 + - - 6 + COUNT( * ) * 15 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT - 44 + + - CAST ( - + SUM ( + 78 ) AS INTEGER ) + - - 33 + + 64 - - - 59 * + COUNT ( * ) + - + 5 + - - 6 + COUNT ( * ) * 15 AS col1
----
88

query I rowsort
SELECT ALL 19 * + - ( - - 90 ) * - 66 * + + 84 + 27
----
9480267

query I rowsort
SELECT 62 * + + 95 + - + 33
----
5857

query I rowsort
SELECT ALL - 26 + ( - 42 ) * + ( + + 51 )
----
-2168

onlyif mysql # DIV for integer division: 
query I rowsort label-1945
SELECT 90 DIV + - 96 + - 11 - + + 63
----
-74

skipif mysql # not compatible
query I rowsort label-1945
SELECT 90 / + - 96 + - 11 - + + 63
----
-74

query II rowsort
SELECT 50, - 94 col0
----
50
-94

query I rowsort
SELECT 64 + - - 49
----
113

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1948
SELECT + 7 * 79 + - SUM( ALL + - CAST( NULL AS DECIMAL ) ) + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT + 7 * 79 + - SUM ( ALL + - CAST ( NULL AS REAL ) ) + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL - COUNT( ALL - ( + + 96 ) ) * + - 83 - + 86 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL - COUNT ( ALL - ( + + 96 ) ) * + - 83 - + 86 AS col0
----
-3

query I rowsort
SELECT 73 * + - 18
----
-1314

query I rowsort
SELECT 9 + 85 AS col0
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL - ( + - NULLIF ( MIN( + ( + + 70 ) ), + 18 * CASE - - 51 WHEN + + 8 - - 7 THEN NULL ELSE - 44 END ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - ( + - NULLIF ( MIN ( + ( + + 70 ) ), + 18 * CASE - - 51 WHEN + + 8 - - 7 THEN NULL ELSE - 44 END ) ) AS col1
----
70

query I rowsort
SELECT DISTINCT - + 97 + - 46
----
-143

query II rowsort
SELECT - 77 * - - 5 + 53 AS col0, 50
----
-332
50

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

skipif mysql # not compatible
query I rowsort label-1956
SELECT + - COALESCE ( + COUNT ( * ), - ( - + 94 ) ) AS col1
----
-1

query I rowsort
SELECT + ( - ( COALESCE ( + 99, + - 53 * + 83, - 5 ) ) ) AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1958
SELECT CASE - CAST( - + AVG ( 29 ) AS SIGNED ) WHEN 52 THEN NULL WHEN - 7 + - COUNT( * ) + - 22 * + CASE - - 73 WHEN + + CAST( - - 95 AS SIGNED ) THEN 8 * - + CASE + NULLIF ( + + ( - 94 ), 24 * COUNT( ALL 78 ) ) WHEN 51 * 19 THEN + NULLIF ( + 18, 63 / 71 ) * + 76 + NULLIF ( 39, 14 ) * - 63 ELSE - COUNT( * ) * + CAST( 5 AS SIGNED ) END * 71 ELSE NULL END THEN COUNT( * ) / - 13 ELSE NULL END * + 5 + COUNT( * ) * - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT CASE - CAST ( - + AVG ( 29 ) AS INTEGER ) WHEN 52 THEN NULL WHEN - 7 + - COUNT ( * ) + - 22 * + CASE - - 73 WHEN + + CAST ( - - 95 AS INTEGER ) THEN 8 * - + CASE + NULLIF ( + + ( - 94 ), 24 * COUNT ( ALL 78 ) ) WHEN 51 * 19 THEN + NULLIF ( + 18, 63 / 71 ) * + 76 + NULLIF ( 39, 14 ) * - 63 ELSE - COUNT ( * ) * + CAST ( 5 AS INTEGER ) END * 71 ELSE NULL END THEN COUNT ( * ) / - 13 ELSE NULL END * + 5 + COUNT ( * ) * - 57
----
NULL

query I rowsort
SELECT ALL - - 61 AS col2
----
61

query I rowsort
SELECT ALL - 21 * + - 97
----
2037

onlyif mysql # aggregate syntax: 
query II rowsort label-1961
SELECT - COUNT( * ) * - - 89 + - - COUNT( * ) AS col0, - 24 AS col2
----
-88
-24

skipif mysql # not compatible
query II rowsort label-1961
SELECT - COUNT ( * ) * - - 89 + - - COUNT ( * ) AS col0, - 24 AS col2
----
-88
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT + ( 18 ) * COUNT( * ) * COUNT( * ) - + + 93 + - - 96
----
21

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT + ( 18 ) * COUNT ( * ) * COUNT ( * ) - + + 93 + - - 96
----
21

query I rowsort
SELECT ALL 88 - + + 82 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-1964
SELECT ALL - + COUNT( * ), 95 AS col2
----
-1
95

skipif mysql # not compatible
query II rowsort label-1964
SELECT ALL - + COUNT ( * ), 95 AS col2
----
-1
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT - ( + 76 ) DIV + + 9 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1965
SELECT - ( + 76 ) / + + 9 AS col2
----
-8

query I rowsort
SELECT DISTINCT - 27 * + 73 * - 49
----
96579

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT + 37 - - 66 * - - 48 * 79 * SUM( DISTINCT - + 89 )
----
-22274171

skipif mysql # not compatible
query I rowsort label-1967
SELECT + 37 - - 66 * - - 48 * 79 * SUM ( DISTINCT - + 89 )
----
-22274171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1968
SELECT 74 + - CAST( - - 96 AS SIGNED ) - - - COUNT( ALL + - 60 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1968
SELECT 74 + - CAST ( - - 96 AS INTEGER ) - - - COUNT ( ALL + - 60 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL + 57 + MAX( - 19 ) * - 32 + + - 93 - - 13 AS col2
----
585

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL + 57 + MAX ( - 19 ) * - 32 + + - 93 - - 13 AS col2
----
585

query I rowsort
SELECT ALL - 3 * + 3 AS col1
----
-9

query I rowsort
SELECT 67 - - 19
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT 83 DIV ( + + ( 76 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1972
SELECT 83 / ( + + ( 76 ) )
----
1

query I rowsort
SELECT DISTINCT + 85 * + 14
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT - COALESCE ( + MAX( 39 ), - - MIN( - 44 ), - 46 - + 23 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-1974
SELECT - COALESCE ( + MAX ( 39 ), - - MIN ( - 44 ), - 46 - + 23 ) AS col0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1975
SELECT ALL MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT NULLIF ( 58, + + MAX( ALL - 51 ) )
----
58

skipif mysql # not compatible
query I rowsort label-1976
SELECT NULLIF ( 58, + + MAX ( ALL - 51 ) )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1977
SELECT - CAST( NULL AS SIGNED ) * + 9 AS col2, - CASE + COALESCE ( + ( - 7 ), + - ( - - 75 ) ) WHEN 47 THEN - CAST( + - 73 AS SIGNED ) WHEN COALESCE ( CAST( NULL AS SIGNED ), + AVG ( 35 ), + 44 ) * ( + 56 ) THEN NULL WHEN 76 THEN NULL ELSE 14 + - 21 END
----
NULL
7

skipif mysql # not compatible
query II rowsort label-1977
SELECT - CAST ( NULL AS INTEGER ) * + 9 AS col2, - CASE + COALESCE ( + ( - 7 ), + - ( - - 75 ) ) WHEN 47 THEN - CAST ( + - 73 AS INTEGER ) WHEN COALESCE ( CAST ( NULL AS INTEGER ), + AVG ( 35 ), + 44 ) * ( + 56 ) THEN NULL WHEN 76 THEN NULL ELSE 14 + - 21 END
----
NULL
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL + NULLIF ( - CASE 54 WHEN - - 2 * + 39 + 44 THEN NULL WHEN + + 79 / 84 + 78 + COUNT( * ) / + 85 - COALESCE ( - - MAX( 75 ), + 60 ) + - 62 * - ( - 47 ) + + 2 / 65 THEN ( COUNT( * ) ) + 90 WHEN - 60 THEN MIN( ALL 82 ) ELSE NULL END, - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL + NULLIF ( - CASE 54 WHEN - - 2 * + 39 + 44 THEN NULL WHEN + + 79 / 84 + 78 + COUNT ( * ) / + 85 - COALESCE ( - - MAX ( 75 ), + 60 ) + - 62 * - ( - 47 ) + + 2 / 65 THEN ( COUNT ( * ) ) + 90 WHEN - 60 THEN MIN ( ALL 82 ) ELSE NULL END, - 34 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL + MAX( DISTINCT - + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL + MAX ( DISTINCT - + 5 )
----
-5

query I rowsort
SELECT ALL 95 * 85 - 37
----
8038

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1981
SELECT ALL + COALESCE ( 5, + - MIN( 36 ) + + CAST( NULL AS SIGNED ), - 73 )
----
5

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL + COALESCE ( 5, + - MIN ( 36 ) + + CAST ( NULL AS INTEGER ), - 73 )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT - COUNT( DISTINCT 18 ) + + - 21
----
-22

skipif mysql # not compatible
query I rowsort label-1982
SELECT - COUNT ( DISTINCT 18 ) + + - 21
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT 19 * - 76 + - 30 + + ( + + 63 ) + ( - + COUNT( * ) ) * + ( + 11 ) + + 39 AS col1
----
-1383

skipif mysql # not compatible
query I rowsort label-1983
SELECT 19 * - 76 + - 30 + + ( + + 63 ) + ( - + COUNT ( * ) ) * + ( + 11 ) + + 39 AS col1
----
-1383

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1984
SELECT + 75 * CASE - 85 WHEN - 17 THEN - 74 + 51 WHEN + - COUNT( * ) * ( - - 59 ) THEN NULL END, + CAST( NULL AS SIGNED ) / - 89 + AVG ( + 11 ) - - 30 * - - ( 84 ) * 17 / - 20 + + 8 / COALESCE ( + CAST( NULL AS SIGNED ), + 66 / 6, 65 ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1984
SELECT + 75 * CASE - 85 WHEN - 17 THEN - 74 + 51 WHEN + - COUNT ( * ) * ( - - 59 ) THEN NULL END, + CAST ( NULL AS INTEGER ) / - 89 + AVG ( + 11 ) - - 30 * - - ( 84 ) * 17 / - 20 + + 8 / COALESCE ( + CAST ( NULL AS INTEGER ), + 66 / 6, 65 ) AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1985
SELECT - 24 DIV - - 16 + COUNT( * ) + - 75 AS col2, + ( - 89 )
----
-75
-89

skipif mysql # not compatible
query II rowsort label-1985
SELECT - 24 / - - 16 + COUNT ( * ) + - 75 AS col2, + ( - 89 )
----
-75
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT - COUNT( * ) + - 91 + + 9 * + COUNT( DISTINCT + - 9 ) * - - 42 AS col1
----
286

skipif mysql # not compatible
query I rowsort label-1986
SELECT - COUNT ( * ) + - 91 + + 9 * + COUNT ( DISTINCT + - 9 ) * - - 42 AS col1
----
286

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1988
SELECT ALL + - 3 * 30 DIV + 67 * - 1 col0
----
1

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL + - 3 * 30 / + 67 * - 1 col0
----
1

query I rowsort
SELECT - - 78 + + 79
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1990
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN ( + 30 ) THEN NULL WHEN - 37 THEN 41 WHEN - + 21 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN ( + 30 ) THEN NULL WHEN - 37 THEN 41 WHEN - + 21 THEN NULL END
----
NULL

query I rowsort
SELECT - + 72 * + + 89 + 89
----
-6319

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1993
SELECT - 22 + + - 6 AS col2, 67 * - COUNT( * )
----
-28
-67

skipif mysql # not compatible
query II rowsort label-1993
SELECT - 22 + + - 6 AS col2, 67 * - COUNT ( * )
----
-28
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT - - 26 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-1994
SELECT - - 26 / + 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1995
SELECT + + 21 * 96 DIV 70
----
28

skipif mysql # not compatible
query I rowsort label-1995
SELECT + + 21 * 96 / 70
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1996
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 83 - COUNT( * ) + - + NULLIF ( - - NULLIF ( - + 9, 99 ), + COUNT( ALL ( + 64 ) ) ) * - 30 * - - AVG ( - CAST( - 45 AS SIGNED ) ) * + 99 + + + CAST( + 60 AS SIGNED ) + + 77 + - 95 / + 10 * - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 83 - COUNT ( * ) + - + NULLIF ( - - NULLIF ( - + 9, 99 ), + COUNT ( ALL ( + 64 ) ) ) * - 30 * - - AVG ( - CAST ( - 45 AS INTEGER ) ) * + 99 + + + CAST ( + 60 AS INTEGER ) + + 77 + - 95 / + 10 * - 85 AS col0
----
NULL

query I rowsort
SELECT + 80 * + 19
----
1520

query I rowsort
SELECT ALL 50 * + - 94 AS col2
----
-4700

query I rowsort
SELECT DISTINCT 9 * ( 9 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT + SUM( - + 73 ) * - COUNT( * ) * - 85
----
-6205

skipif mysql # not compatible
query I rowsort label-2000
SELECT + SUM ( - + 73 ) * - COUNT ( * ) * - 85
----
-6205

query I rowsort
SELECT + 37 + - + 57 AS col2
----
-20

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

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

query I rowsort
SELECT + 90 + + 2 * 78
----
246

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

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

query I rowsort
SELECT + ( + + 72 ) + + 93 * + + 55
----
5187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2007
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * + + 96 * SUM( 92 ) * 85 / 36 * + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * + + 96 * SUM ( 92 ) * 85 / 36 * + 46
----
NULL

query I rowsort
SELECT + 60 + + ( + 14 )
----
74

query I rowsort
SELECT ALL + 36 * + 31 AS col0
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT + 36 + + + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2010
SELECT + 36 + + + COUNT ( * ) AS col1
----
37

query I rowsort
SELECT - 12 + NULLIF ( - 91, 26 * + 17 + - 48 * 8 )
----
-103

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

query I rowsort
SELECT ALL + - 80 * - ( - 72 ) + - 97 AS col2
----
-5857

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT MIN( ALL - - 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2014
SELECT MIN ( ALL - - 6 ) AS col1
----
6

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

query I rowsort
SELECT DISTINCT 82 * + + ( - - 71 ) - - - 17
----
5805

query I rowsort
SELECT DISTINCT - + CASE + 31 WHEN + - 63 THEN + 61 ELSE NULL END / - 69 * + 39 - + 28
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2018
SELECT ALL - 38 * 70 DIV - + CAST( 57 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - 38 * 70 / - + CAST ( 57 AS INTEGER )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - 53 * NULLIF ( - 7, COUNT( 71 ) + + 10 )
----
371

skipif mysql # not compatible
query I rowsort label-2019
SELECT - 53 * NULLIF ( - 7, COUNT ( 71 ) + + 10 )
----
371

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT ALL - - 88 DIV + - 77
----
-1

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL - - 88 / + - 77
----
-1

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

query II rowsort
SELECT + 12 AS col2, 19 col0
----
12
19

query I rowsort
SELECT + - 92 + + 10
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT ALL + ( + SUM( DISTINCT + + 81 ) ) * - 86 + - 71 AS col2
----
-7037

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL + ( + SUM ( DISTINCT + + 81 ) ) * - 86 + - 71 AS col2
----
-7037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT + 40 * - 51 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT + 40 * - 51 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL 21 * COUNT( * ) + + 56
----
77

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL 21 * COUNT ( * ) + + 56
----
77

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2029
SELECT DISTINCT 33 * CASE + - 40 WHEN - ( + ( - + 89 ) ) THEN 26 * - + COUNT( * ) WHEN 83 THEN NULL END + + + SUM( - ( 70 ) ) AS col1, + 82 DIV - 19
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-2029
SELECT DISTINCT 33 * CASE + - 40 WHEN - ( + ( - + 89 ) ) THEN 26 * - + COUNT ( * ) WHEN 83 THEN NULL END + + + SUM ( - ( 70 ) ) AS col1, + 82 / - 19
----
NULL
-4

query II rowsort
SELECT 39 col2, - 60 AS col1
----
39
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT COALESCE ( - 84, 72, - + 95 ) + + 53 - - COUNT( * ) + - 81 * + 65 AS col0
----
-5295

skipif mysql # not compatible
query I rowsort label-2031
SELECT COALESCE ( - 84, 72, - + 95 ) + + 53 - - COUNT ( * ) + - 81 * + 65 AS col0
----
-5295

query I rowsort
SELECT ALL 2 + + - 2 - - - 91
----
-91

query I rowsort
SELECT ALL 60 * 19 AS col2
----
1140

query I rowsort
SELECT 83 * - 8 col1
----
-664

query II rowsort
SELECT - 68 AS col2, - 31 AS col2
----
-68
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2036
SELECT - 71 AS col0, CASE + 67 WHEN + - 34 DIV + - 95 THEN + CAST( NULL AS SIGNED ) * - 48 + + - 29 ELSE + - 68 END * - - COUNT( * ) + + 2 + - + 88 - 38 DIV 3 AS col0
----
-71
-166

skipif mysql # not compatible
query II rowsort label-2036
SELECT - 71 AS col0, CASE + 67 WHEN + - 34 / + - 95 THEN + CAST ( NULL AS INTEGER ) * - 48 + + - 29 ELSE + - 68 END * - - COUNT ( * ) + + 2 + - + 88 - 38 / 3 AS col0
----
-71
-166

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2037
SELECT ALL 48 - 98 * - 48 + - COUNT( + ( 52 ) ), + COALESCE ( 83, + 67 DIV 41 + - 49, + + COUNT( 31 ) ) * + 21 + 70 + + + COUNT( * ) DIV + - 57 AS col2
----
4751
1813

skipif mysql # not compatible
query II rowsort label-2037
SELECT ALL 48 - 98 * - 48 + - COUNT ( + ( 52 ) ), + COALESCE ( 83, + 67 / 41 + - 49, + + COUNT ( 31 ) ) * + 21 + 70 + + + COUNT ( * ) / + - 57 AS col2
----
4751
1813

query II rowsort
SELECT - 79 AS col0, 48
----
-79
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2039
SELECT ALL 35 AS col1, + CASE - 29 WHEN + COUNT( * ) + + 23 THEN NULL ELSE + 97 + - COALESCE ( - NULLIF ( - 73, - 26 ), + 99 + + 80 ) + + CAST( NULL AS SIGNED ) + - COUNT( * ) + 90 / + COUNT( * ) END
----
35
NULL

skipif mysql # not compatible
query II rowsort label-2039
SELECT ALL 35 AS col1, + CASE - 29 WHEN + COUNT ( * ) + + 23 THEN NULL ELSE + 97 + - COALESCE ( - NULLIF ( - 73, - 26 ), + 99 + + 80 ) + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 90 / + COUNT ( * ) END
----
35
NULL

query I rowsort
SELECT + ( - - 5 ) * + - 38 * - 35 AS col2
----
6650

onlyif mysql # aggregate syntax: 
query II rowsort label-2041
SELECT - + 7 AS col0, + 41 + COUNT( ALL - 81 ) * + COUNT( * )
----
-7
42

skipif mysql # not compatible
query II rowsort label-2041
SELECT - + 7 AS col0, + 41 + COUNT ( ALL - 81 ) * + COUNT ( * )
----
-7
42

query II rowsort
SELECT DISTINCT 56, - 28 col1
----
56
-28

query II rowsort
SELECT ALL - 53 AS col2, - 61
----
-53
-61

query I rowsort
SELECT 40 - + ( + 99 ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2045
SELECT + 15 * + NULLIF ( + 88, ( + CAST( NULL AS SIGNED ) ) * - COUNT( - ( 22 ) ) ) AS col2
----
1320

skipif mysql # not compatible
query I rowsort label-2045
SELECT + 15 * + NULLIF ( + 88, ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( - ( 22 ) ) ) AS col2
----
1320

query I rowsort
SELECT ALL 54 * - 53 AS col1
----
-2862

query I rowsort
SELECT DISTINCT - 9 * + 33 + + 15 * + 60 AS col1
----
603

query I rowsort
SELECT DISTINCT 11 * + 3 + - 66 AS col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2049
SELECT - 81 DIV + 88 * - 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-2049
SELECT - 81 / + 88 * - 65 col2
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2052
SELECT + 77 DIV - 9 + COALESCE ( - + 2, + - 98 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2052
SELECT + 77 / - 9 + COALESCE ( - + 2, + - 98 ) AS col2
----
-10

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

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

query I rowsort
SELECT ALL 96 * 83 + + + 21
----
7989

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT - 40 + - COUNT( * ) + + - 38 * + 81 AS col1
----
-3119

skipif mysql # not compatible
query I rowsort label-2055
SELECT - 40 + - COUNT ( * ) + + - 38 * + 81 AS col1
----
-3119

query I rowsort
SELECT 81 + - - 18 - 52
----
47

query I rowsort
SELECT ALL - - 23 col2
----
23

query I rowsort
SELECT + 36 * - + 80 + - ( + 58 ) AS col0
----
-2938

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT DISTINCT - 53 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT - 53 / 56
----
0

query I rowsort
SELECT ALL - NULLIF ( + 13, - + 65 )
----
-13

query I rowsort
SELECT 12 + - 21 AS col1
----
-9

query I rowsort
SELECT DISTINCT - 54 * + NULLIF ( + 64, + 51 )
----
-3456

query I rowsort
SELECT 92 * + 32
----
2944

query I rowsort
SELECT 89 + + ( + - 84 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT 98 + - CAST( - 49 AS SIGNED )
----
147

skipif mysql # not compatible
query I rowsort label-2065
SELECT 98 + - CAST ( - 49 AS INTEGER )
----
147

query I rowsort
SELECT DISTINCT - 4 * - - COALESCE ( + - 3, - NULLIF ( + 11, - 57 ) )
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2067
SELECT DISTINCT - 93 DIV - 97 * 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT - 93 / - 97 * 7 AS col1
----
0

query I rowsort
SELECT 55 + 2 AS col2
----
57

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

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT + 22 + + COALESCE ( 90, ( + 37 ) - - 83, + 87 * 40 + - + 99 + + + COUNT( DISTINCT - - 76 ) )
----
112

skipif mysql # not compatible
query I rowsort label-2070
SELECT + 22 + + COALESCE ( 90, ( + 37 ) - - 83, + 87 * 40 + - + 99 + + + COUNT ( DISTINCT - - 76 ) )
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2071
SELECT CASE 38 WHEN + - ( + 43 ) THEN NULL WHEN 11 + + 71 - - CASE + 92 WHEN + + 38 + - - COUNT( * ) / + 36 THEN + COUNT( * ) + - 60 + - 37 + COUNT( * ) / - 11 * CASE 88 WHEN 17 * - - 62 / - 30 THEN + 97 * - 78 + 20 ELSE NULL END * - CAST( NULL AS SIGNED ) ELSE 35 END THEN NULL ELSE NULLIF ( CASE + 69 WHEN 20 + 71 THEN - 86 ELSE NULL END, + CASE + 48 WHEN 51 * COUNT( * ) THEN 57 * 1 WHEN + 60 * 32 THEN NULL END ) * 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT CASE 38 WHEN + - ( + 43 ) THEN NULL WHEN 11 + + 71 - - CASE + 92 WHEN + + 38 + - - COUNT ( * ) / + 36 THEN + COUNT ( * ) + - 60 + - 37 + COUNT ( * ) / - 11 * CASE 88 WHEN 17 * - - 62 / - 30 THEN + 97 * - 78 + 20 ELSE NULL END * - CAST ( NULL AS INTEGER ) ELSE 35 END THEN NULL ELSE NULLIF ( CASE + 69 WHEN 20 + 71 THEN - 86 ELSE NULL END, + CASE + 48 WHEN 51 * COUNT ( * ) THEN 57 * 1 WHEN + 60 * 32 THEN NULL END ) * 11 END
----
NULL

query I rowsort
SELECT 47 + 67
----
114

query I rowsort
SELECT ALL - 45 * ( + 10 ) + + 60 AS col1
----
-390

query I rowsort
SELECT + - 31 * - 66 + - 13
----
2033

onlyif mysql # aggregate syntax: 
query II rowsort label-2075
SELECT + - MIN( - 97 ) AS col2, - COUNT( * ) + - 38 * + - COUNT( * ) * 90 AS col2
----
97
3419

skipif mysql # not compatible
query II rowsort label-2075
SELECT + - MIN ( - 97 ) AS col2, - COUNT ( * ) + - 38 * + - COUNT ( * ) * 90 AS col2
----
97
3419

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2077
SELECT - 16 DIV 72 * + 76 * + 43 + + 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2077
SELECT - 16 / 72 * + 76 * + 43 + + 17 AS col1
----
17

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

skipif mysql # not compatible
query I rowsort label-2078
SELECT - 71 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT DISTINCT 95 * + 87 + COUNT( + 5 ) + - 85 - 65 * - - 50 + + 20 + + + 84 * 42 + NULLIF ( 88, - 25 ) AS col2
----
8567

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT 95 * + 87 + COUNT ( + 5 ) + - 85 - 65 * - - 50 + + 20 + + + 84 * 42 + NULLIF ( 88, - 25 ) AS col2
----
8567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2080
SELECT DISTINCT - - ( + ( ( + + 60 ) ) ) * 35 + + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT - - ( + ( ( + + 60 ) ) ) * 35 + + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 30 * - 62 + - 73
----
1787

query I rowsort
SELECT 96 * - 87 + + 34
----
-8318

query I rowsort
SELECT 83 * - 82
----
-6806

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL 32 * - COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL 32 * - COUNT ( * ) AS col0
----
-32

query I rowsort
SELECT + CASE 67 WHEN - 81 + + + 88 THEN - + 59 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2086
SELECT ALL 85 * 56 * + 49 AS col2, CAST( NULL AS DECIMAL ) * 40 AS col2
----
233240
NULL

skipif mysql # not compatible
query II rowsort label-2086
SELECT ALL 85 * 56 * + 49 AS col2, CAST ( NULL AS REAL ) * 40 AS col2
----
233240
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2087
SELECT DISTINCT 90 - + 33 DIV + 52 * + 14 * + 98 * - - 49 DIV ( + 21 ) * + + MIN( ALL + 59 ) * + - 91
----
90

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT 90 - + 33 / + 52 * + 14 * + 98 * - - 49 / ( + 21 ) * + + MIN ( ALL + 59 ) * + - 91
----
90

query I rowsort
SELECT + ( + 68 ) + + 14 AS col0
----
82

query I rowsort
SELECT 4 * + 4 * ( + + 57 ) + 70
----
982

query II rowsort
SELECT 10 AS col1, 95
----
10
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2091
SELECT + COALESCE ( - ( 38 ), + + 12, - 33 - + + 12 + + - 33 ) DIV - CASE - 30 WHEN - 79 THEN NULL ELSE - COUNT( DISTINCT 84 ) END + + COUNT( * ) - + 47 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2091
SELECT + COALESCE ( - ( 38 ), + + 12, - 33 - + + 12 + + - 33 ) / - CASE - 30 WHEN - 79 THEN NULL ELSE - COUNT ( DISTINCT 84 ) END + + COUNT ( * ) - + 47 AS col2
----
-84

query I rowsort
SELECT - 13 * NULLIF ( 21, 49 * + + 5 ) AS col0
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT ALL + 5 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL + 5 / 95
----
0

query I rowsort
SELECT - 89 * - + 3 AS col2
----
267

query I rowsort
SELECT - COALESCE ( + ( - 87 ), 84 - - 54 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2096
SELECT - 7 + + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2096
SELECT - 7 + + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2097
SELECT DISTINCT COUNT( * ) AS col1, CAST( NULL AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2097
SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS REAL )
----
1
NULL

query I rowsort
SELECT - 53 * - 86 * 20
----
91160

query I rowsort
SELECT ALL - ( + - 60 ) + + COALESCE ( + + 24, ( + 33 ) + + + 87 )
----
84

query I rowsort
SELECT DISTINCT - 64 * + 18 AS col2
----
-1152

query I rowsort
SELECT ALL NULLIF ( - 91, + 46 + - 85 )
----
-91

query I rowsort
SELECT - 45 - + 31
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - - MIN( DISTINCT - + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-2103
SELECT - - MIN ( DISTINCT - + 54 )
----
-54

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2105
SELECT ALL - + COUNT( DISTINCT - - 54 ) + + 60, 24 AS col0
----
59
24

skipif mysql # not compatible
query II rowsort label-2105
SELECT ALL - + COUNT ( DISTINCT - - 54 ) + + 60, 24 AS col0
----
59
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - 59 - - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-2106
SELECT - 59 - - COUNT ( * )
----
-58

query I rowsort
SELECT - 72 * + - 69 AS col1
----
4968

query I rowsort
SELECT ALL + - 68 + + NULLIF ( 96, 73 ) AS col2
----
28

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

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

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

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

query I rowsort
SELECT ALL + COALESCE ( 54, - 2 )
----
54

query I rowsort
SELECT ALL - 63 * - 88 AS col0
----
5544

query I rowsort
SELECT + 58 * + 69 * 83 + + 44
----
332210

query I rowsort
SELECT + 79 - + 84 + + 33
----
28

query I rowsort
SELECT DISTINCT + COALESCE ( + + 81, - 10 + 68 ) AS col0
----
81

query I rowsort
SELECT - 83 * - - 84 + 14
----
-6958

onlyif mysql # aggregate syntax: 
query II rowsort label-2117
SELECT ALL COUNT( * ) * 57, COUNT( * ) + + 40 + - COUNT( * ) col0
----
57
40

skipif mysql # not compatible
query II rowsort label-2117
SELECT ALL COUNT ( * ) * 57, COUNT ( * ) + + 40 + - COUNT ( * ) col0
----
57
40

query II rowsort
SELECT + 37 * - 3, 3 AS col1
----
-111
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT 18 * - + 28 + - 0 * - - NULLIF ( COALESCE ( - + 29, - COUNT( * ) * + + COUNT( * ) + - - 72 + + - CASE 37 WHEN ( + 5 ) THEN + 10 END * + 64 * + 64 + - COALESCE ( + + 7, 32 * + 62 ) * COALESCE ( + 75, - + 14 * - 57 * 68 + MIN( DISTINCT - 85 ) ), - 36 ), - 25 )
----
-504

skipif mysql # not compatible
query I rowsort label-2119
SELECT 18 * - + 28 + - 0 * - - NULLIF ( COALESCE ( - + 29, - COUNT ( * ) * + + COUNT ( * ) + - - 72 + + - CASE 37 WHEN ( + 5 ) THEN + 10 END * + 64 * + 64 + - COALESCE ( + + 7, 32 * + 62 ) * COALESCE ( + 75, - + 14 * - 57 * 68 + MIN ( DISTINCT - 85 ) ), - 36 ), - 25 )
----
-504

query I rowsort
SELECT CASE WHEN NULL IS NOT NULL THEN 72 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2121
SELECT + 90 DIV - 10 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2121
SELECT + 90 / - 10 AS col0
----
-9

query I rowsort
SELECT + 7 * 83 * + 39 * 68 * + 45 AS col1
----
69336540

query I rowsort
SELECT - 66 + + 35 AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2124
SELECT DISTINCT COALESCE ( - MAX( - 27 ), 20 ) * CAST( + 78 AS SIGNED )
----
2106

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT COALESCE ( - MAX ( - 27 ), 20 ) * CAST ( + 78 AS INTEGER )
----
2106

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

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

query II rowsort
SELECT - ( - 89 ) AS col2, 43 * - + 36 * - 24 AS col2
----
89
37152

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

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

query II rowsort
SELECT - 7 * - + 70 - 22 * + 58 AS col2, 23 AS col0
----
-786
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT DISTINCT + NULLIF ( + CASE + 15 WHEN + + 70 THEN NULL WHEN 99 + + 36 THEN NULL WHEN 70 + 85 / - + 59 * - COUNT( DISTINCT + 64 ) THEN - 46 + + 43 ELSE - + 4 END, + 31 * - 2 ) * - 87 + + + 96 * + 91 + - + 16 * 6 + + - 70 col1
----
8918

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT + NULLIF ( + CASE + 15 WHEN + + 70 THEN NULL WHEN 99 + + 36 THEN NULL WHEN 70 + 85 / - + 59 * - COUNT ( DISTINCT + 64 ) THEN - 46 + + 43 ELSE - + 4 END, + 31 * - 2 ) * - 87 + + + 96 * + 91 + - + 16 * 6 + + - 70 col1
----
8918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2130
SELECT + - 66 * + + COUNT( 56 ) DIV - COUNT( * ) + 6
----
72

skipif mysql # not compatible
query I rowsort label-2130
SELECT + - 66 * + + COUNT ( 56 ) / - COUNT ( * ) + 6
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2131
SELECT - 90 DIV COUNT( * ) * + - SUM( DISTINCT + + ( - 33 ) ) AS col1
----
-2970

skipif mysql # not compatible
query I rowsort label-2131
SELECT - 90 / COUNT ( * ) * + - SUM ( DISTINCT + + ( - 33 ) ) AS col1
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL ( + 29 ) + + + ( - 46 ) + COALESCE ( - + ( 25 ), - 80 ) + - 84 * - + COUNT( DISTINCT 6 ) + 27 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL ( + 29 ) + + + ( - 46 ) + COALESCE ( - + ( 25 ), - 80 ) + - 84 * - + COUNT ( DISTINCT 6 ) + 27 AS col2
----
69

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

query I rowsort
SELECT + + 89 + - 75 * - + 88
----
6689

query I rowsort
SELECT - + 83 - + + 20 AS col1
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL + 19 * - 33 + + 21 + - 6 + - SUM( DISTINCT - 64 ) * + 98
----
5660

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL + 19 * - 33 + + 21 + - 6 + - SUM ( DISTINCT - 64 ) * + 98
----
5660

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

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

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

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

query I rowsort
SELECT - 93 + - 52 AS col1
----
-145

query I rowsort
SELECT - ( + 97 ) + + - 69
----
-166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2142
SELECT DISTINCT + NULLIF ( 51, - 19 + - ( - CAST( - COUNT( * ) AS SIGNED ) ) * - - 67 ) * - 42 * + CAST( NULL AS SIGNED ) * ( ( CASE - 2 WHEN + - 17 THEN - CAST( NULL AS SIGNED ) + 53 - + 19 * - + 42 ELSE NULL END ) ) * 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + NULLIF ( 51, - 19 + - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) * - - 67 ) * - 42 * + CAST ( NULL AS INTEGER ) * ( ( CASE - 2 WHEN + - 17 THEN - CAST ( NULL AS INTEGER ) + 53 - + 19 * - + 42 ELSE NULL END ) ) * 62 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL - ( - SUM( ALL + - 3 ) ) - - - ( 91 ) * 50 AS col0
----
-4553

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL - ( - SUM ( ALL + - 3 ) ) - - - ( 91 ) * 50 AS col0
----
-4553

query I rowsort
SELECT + 64 * + 15 * + 34 AS col0
----
32640

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

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

query II rowsort
SELECT + 85 AS col1, + 17 AS col1
----
85
17

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT ALL + 22 DIV - - 78
----
0

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL + 22 / - - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT - 4 * + COUNT( * ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - 4 * + COUNT ( * ) col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2150
SELECT CAST( - 36 AS SIGNED ) DIV + - 51 + MAX( - 89 ) - 97 * - 15
----
1366

skipif mysql # not compatible
query I rowsort label-2150
SELECT CAST ( - 36 AS INTEGER ) / + - 51 + MAX ( - 89 ) - 97 * - 15
----
1366

query I rowsort
SELECT ALL - 63 col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2152
SELECT DISTINCT CASE - 98 WHEN - 2 + - - 2 THEN NULL WHEN + 17 + + - 60 * - 52 THEN - 57 * - + 72 WHEN - 83 THEN NULL ELSE + + 28 END + CAST( NULL AS SIGNED ) + - 41 / - + 10 * - - 30, CAST( + COUNT( * ) AS SIGNED ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2152
SELECT DISTINCT CASE - 98 WHEN - 2 + - - 2 THEN NULL WHEN + 17 + + - 60 * - 52 THEN - 57 * - + 72 WHEN - 83 THEN NULL ELSE + + 28 END + CAST ( NULL AS INTEGER ) + - 41 / - + 10 * - - 30, CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
NULL
1

query I rowsort
SELECT DISTINCT + 33 * - 49
----
-1617

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

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT - ( CAST ( NULL AS REAL ) ) + - 61 col0
----
NULL

query I rowsort
SELECT ALL 30 + - 99
----
-69

query I rowsort
SELECT ALL ( 35 ) + - 70 AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2157
SELECT CAST( NULL AS SIGNED ) * - - ( - 97 ) AS col0, COUNT( ALL + - ( - + CAST( 33 AS DECIMAL ) ) ) - 35 + ( 15 ) AS col2
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-2157
SELECT CAST ( NULL AS INTEGER ) * - - ( - 97 ) AS col0, COUNT ( ALL + - ( - + CAST ( 33 AS REAL ) ) ) - 35 + ( 15 ) AS col2
----
NULL
-19

query I rowsort
SELECT 34 * 24 + + 2
----
818

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

skipif mysql # not compatible
query I rowsort label-2159
SELECT - + MIN ( - 80 )
----
80

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

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

query I rowsort
SELECT DISTINCT 33 * + 89 - - 97
----
3034

query I rowsort
SELECT DISTINCT + 99 - 30 AS col1
----
69

query I rowsort
SELECT - 81 * - - 37 * - + 72
----
215784

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL 51 * - - 94 + - ( COUNT( * ) )
----
4793

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL 51 * - - 94 + - ( COUNT ( * ) )
----
4793

query II rowsort
SELECT ALL - ( + + 99 ) - 29 AS col1, 96 AS col2
----
-128
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2166
SELECT ALL 65 AS col1, - 82 * - COUNT( - - 37 ) col2
----
65
82

skipif mysql # not compatible
query II rowsort label-2166
SELECT ALL 65 AS col1, - 82 * - COUNT ( - - 37 ) col2
----
65
82

query I rowsort
SELECT ALL CASE - 33 WHEN 92 THEN 60 - ( - 91 ) WHEN + 67 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT ( - 29 ) - - - ( + MIN( 3 ) ) AS col1, + COALESCE ( 56, + ( 35 ) ) + + 83
----
-32
139

skipif mysql # not compatible
query II rowsort label-2168
SELECT ( - 29 ) - - - ( + MIN ( 3 ) ) AS col1, + COALESCE ( 56, + ( 35 ) ) + + 83
----
-32
139

query I rowsort
SELECT - 48 * 64 * - 38 + + 10
----
116746

query I rowsort
SELECT + 17 * 66
----
1122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT + 57 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT + 57 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2173
SELECT + 97 * + - 54 + - 73 * COUNT( NULLIF ( 96, - + CAST( + 16 AS SIGNED ) ) ) AS col0, 63 + + - 85 AS col1
----
-5311
-22

skipif mysql # not compatible
query II rowsort label-2173
SELECT + 97 * + - 54 + - 73 * COUNT ( NULLIF ( 96, - + CAST ( + 16 AS INTEGER ) ) ) AS col0, 63 + + - 85 AS col1
----
-5311
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT 92 - 29 * - ( + CASE - ( + - 29 ) WHEN - 2 THEN - 87 + + + 46 ELSE 36 + SUM( - + 11 ) END ) + - 19
----
798

skipif mysql # not compatible
query I rowsort label-2174
SELECT 92 - 29 * - ( + CASE - ( + - 29 ) WHEN - 2 THEN - 87 + + + 46 ELSE 36 + SUM ( - + 11 ) END ) + - 19
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT MAX( DISTINCT - - 32 ) * - 40 AS col0
----
-1280

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT MAX ( DISTINCT - - 32 ) * - 40 AS col0
----
-1280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2176
SELECT ALL - 37, ( - + COUNT( * ) ) - - ( + + CAST( NULL AS SIGNED ) ) col2
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-2176
SELECT ALL - 37, ( - + COUNT ( * ) ) - - ( + + CAST ( NULL AS INTEGER ) ) col2
----
-37
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT 12 * + COALESCE ( + 59, 5, CASE - - 48 WHEN 28 THEN + - 49 ELSE 87 END * - + 41 + - 93 - + ( - NULLIF ( - MAX( DISTINCT + 52 ), + 59 ) ) ) AS col0
----
708

skipif mysql # not compatible
query I rowsort label-2177
SELECT 12 * + COALESCE ( + 59, 5, CASE - - 48 WHEN 28 THEN + - 49 ELSE 87 END * - + 41 + - 93 - + ( - NULLIF ( - MAX ( DISTINCT + 52 ), + 59 ) ) ) AS col0
----
708

query I rowsort
SELECT ALL + 18 * - 29
----
-522

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2180
SELECT ALL - SUM( 23 ) + + 4 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL - SUM ( 23 ) + + 4 + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2181
SELECT 55 DIV + 57 * + - 70 * - 40 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2181
SELECT 55 / + 57 * + - 70 * - 40 + - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT 19 * + + 81 * - - CAST( - - 4 AS SIGNED ) * - NULLIF ( + 37, 91 - - + 26 + 86 * 22 * ( + + 30 ) ) - + 58
----
-227830

skipif mysql # not compatible
query I rowsort label-2182
SELECT 19 * + + 81 * - - CAST ( - - 4 AS INTEGER ) * - NULLIF ( + 37, 91 - - + 26 + 86 * 22 * ( + + 30 ) ) - + 58
----
-227830

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL - SUM( - - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL - SUM ( - - 31 ) AS col2
----
-31

query I rowsort
SELECT ALL - 92 + + 67
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2185
SELECT ALL - COUNT( * ) * - 11 * - 32 * 90 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL - COUNT ( * ) * - 11 * - 32 * 90 * - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2186
SELECT 33 / COUNT ( * )
----
33

query I rowsort
SELECT ALL + 19 + - - 34 col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT ALL - CAST( - + 79 AS SIGNED ) + + - 4 - - 83
----
158

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - CAST ( - + 79 AS INTEGER ) + + - 4 - - 83
----
158

query I rowsort
SELECT 23 + + 11 AS col0
----
34

query II rowsort
SELECT + 83, - 78 * + 97 AS col0
----
83
-7566

query II rowsort
SELECT + 75 col2, - 63
----
75
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2192
SELECT ALL + - MAX( - - 54 ) * NULLIF ( - MAX( 47 ), + + ( + + CAST( NULL AS SIGNED ) ) ) AS col0
----
2538

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL + - MAX ( - - 54 ) * NULLIF ( - MAX ( 47 ), + + ( + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
2538

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

skipif mysql # not compatible
query II rowsort label-2193
SELECT COUNT ( * ) AS col1, 53 AS col0
----
1
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT + 99 + + 35 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT + 99 + + 35 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 82 - 75 AS col2
----
7

query II rowsort
SELECT - 98, + 67 AS col2
----
-98
67

query I rowsort
SELECT - ( + + NULLIF ( 34, + 87 + + AVG ( - 44 ) * 76 * + 79 ) )
----
-34

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

skipif mysql # not compatible
query I rowsort label-2198
SELECT + SUM ( + + 73 )
----
73

query I rowsort
SELECT + 11 - + - 26
----
37

query I rowsort
SELECT + - 82 * + 62 + 39
----
-5045

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL - 76 * COUNT( * ) - + 21 + 24 + + - 17 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - 76 * COUNT ( * ) - + 21 + 24 + + - 17 AS col2
----
-90

query I rowsort
SELECT DISTINCT - 48 * - 87 AS col1
----
4176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2203
SELECT + - 79 + COUNT( * ) * + 73 * + 16 DIV + 2
----
505

skipif mysql # not compatible
query I rowsort label-2203
SELECT + - 79 + COUNT ( * ) * + 73 * + 16 / + 2
----
505

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT DISTINCT + MIN( DISTINCT + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT + MIN ( DISTINCT + 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL ( + + 7 ) * - 33 + - 61 * - - ( COUNT( * ) ) + - ( - 9 ) AS col1
----
-283

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL ( + + 7 ) * - 33 + - 61 * - - ( COUNT ( * ) ) + - ( - 9 ) AS col1
----
-283

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + + ( 26 ) + - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2206
SELECT + + ( 26 ) + - - COUNT ( * )
----
27

query II rowsort
SELECT ALL 29 AS col0, 61 * - + 48 AS col0
----
29
-2928

query I rowsort
SELECT + 21 + 76 * + + 34
----
2605

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2209
SELECT + MIN( DISTINCT + + 92 ) DIV + 70 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2209
SELECT + MIN ( DISTINCT + + 92 ) / + 70 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT + 97 + + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2210
SELECT + 97 + + COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2211
SELECT - COALESCE ( - 50, - - 74 DIV + - 54 + + COUNT( * ) + + 6, - COUNT( * ) ) DIV - + 79 + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2211
SELECT - COALESCE ( - 50, - - 74 / + - 54 + + COUNT ( * ) + + 6, - COUNT ( * ) ) / - + 79 + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2212
SELECT + 61 DIV 20 * - COUNT( 68 ) DIV + 9 AS col1, + 28 * - 81 AS col0
----
0
-2268

skipif mysql # not compatible
query II rowsort label-2212
SELECT + 61 / 20 * - COUNT ( 68 ) / + 9 AS col1, + 28 * - 81 AS col0
----
0
-2268

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

skipif mysql # not compatible
query I rowsort label-2213
SELECT - ( COUNT ( * ) ) / - 20 + + 63 AS col1
----
63

query I rowsort
SELECT DISTINCT ( + - 84 ) * - 33 + + 62
----
2834

query I rowsort
SELECT DISTINCT + 41 * + 93 * - 67 + + - 90 AS col0
----
-255561

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL + MIN( + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + MIN ( + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL 51 * + 43 * + - 47 + - SUM( ALL 81 )
----
-103152

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL 51 * + 43 * + - 47 + - SUM ( ALL 81 )
----
-103152

query I rowsort
SELECT - 7 * - 96 AS col2
----
672

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL - ( + - 46 ) * + - 24 * + - COUNT( * ) + COUNT( * ) col2
----
1105

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL - ( + - 46 ) * + - 24 * + - COUNT ( * ) + COUNT ( * ) col2
----
1105

query I rowsort
SELECT NULLIF ( + 10, - 99 ) AS col0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT COALESCE ( - + 27, + CAST( NULL AS SIGNED ) + 47 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2221
SELECT COALESCE ( - + 27, + CAST ( NULL AS INTEGER ) + 47 ) AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2222
SELECT - CAST( + - ( + 6 ) AS SIGNED ) * + 12 * - + 47 - + 11 AS col1
----
-3395

skipif mysql # not compatible
query I rowsort label-2222
SELECT - CAST ( + - ( + 6 ) AS INTEGER ) * + 12 * - + 47 - + 11 AS col1
----
-3395

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL + NULLIF ( + ( - 4 ), + MIN( DISTINCT - 37 ) ) * + + 82 + + 39
----
-289

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL + NULLIF ( + ( - 4 ), + MIN ( DISTINCT - 37 ) ) * + + 82 + + 39
----
-289

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

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

query I rowsort
SELECT ALL + 53 * + + 57 - + ( 56 ) AS col0
----
2965

query I rowsort
SELECT - + 26 * + 95
----
-2470

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

query I rowsort
SELECT - + 77 - + 37 * + 64 * + + 43
----
-101901

onlyif mysql # DIV for integer division: 
query I rowsort label-2229
SELECT ALL - + 67 DIV ( + + 96 )
----
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL - + 67 / ( + + 96 )
----
0

query I rowsort
SELECT + + 66 * + 14
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT - SUM( ALL - 15 ) * 85 + - ( + - 18 ) + 96 * - 62 * - 87 * - 32
----
-16569075

skipif mysql # not compatible
query I rowsort label-2231
SELECT - SUM ( ALL - 15 ) * 85 + - ( + - 18 ) + 96 * - 62 * - 87 * - 32
----
-16569075

query I rowsort
SELECT DISTINCT + - 92 * + 18 AS col0
----
-1656

onlyif mysql # aggregate syntax: 
query II rowsort label-2233
SELECT - + 16 + - 49 * + COUNT( * ) col2, 1 + 57 AS col0
----
-65
58

skipif mysql # not compatible
query II rowsort label-2233
SELECT - + 16 + - 49 * + COUNT ( * ) col2, 1 + 57 AS col0
----
-65
58

query I rowsort
SELECT - 39 * 63 + - 51 + - 5 AS col1
----
-2513

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT + 9 + + - COUNT( * ) * + + 72 + - 87 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-2235
SELECT + 9 + + - COUNT ( * ) * + + 72 + - 87 AS col0
----
-150

query II rowsort
SELECT + ( - 96 ) AS col1, + 73 + 96
----
-96
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2237
SELECT ALL + CASE + 16 WHEN - 57 * + 92 * - 87 THEN + + MAX( + + 38 ) + ( 38 ) / 15 - - COUNT( ALL - NULLIF ( 16, + + 41 ) ) / + COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) + - COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL + CASE + 16 WHEN - 57 * + 92 * - 87 THEN + + MAX ( + + 38 ) + ( 38 ) / 15 - - COUNT ( ALL - NULLIF ( 16, + + 41 ) ) / + COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL + 64 + + - COUNT( * ) * + 6 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL + 64 + + - COUNT ( * ) * + 6 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2239
SELECT - + CAST( - MIN( ALL + 70 ) AS SIGNED ) * - CAST( NULL AS SIGNED ) + + 14 + + 3 * + 13 * - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2239
SELECT - + CAST ( - MIN ( ALL + 70 ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + 14 + + 3 * + 13 * - - 7
----
NULL

query II rowsort
SELECT ALL - 53 + + 57, + 65 AS col1
----
4
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2241
SELECT DISTINCT - COUNT( * ) + 1, + COUNT( * ) + 46 + + 98 AS col1
----
0
145

skipif mysql # not compatible
query II rowsort label-2241
SELECT DISTINCT - COUNT ( * ) + 1, + COUNT ( * ) + 46 + + 98 AS col1
----
0
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT - CASE + CAST( + + 58 AS SIGNED ) WHEN + 40 THEN AVG ( + CAST( + + 81 AS SIGNED ) ) / + 8 + + - 66 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT - CASE + CAST ( + + 58 AS INTEGER ) WHEN + 40 THEN AVG ( + CAST ( + + 81 AS INTEGER ) ) / + 8 + + - 66 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT DISTINCT CAST( 42 AS SIGNED ) col1
----
42

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT CAST ( 42 AS INTEGER ) col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT - MIN( + 96 ) + + 21 + + - 45
----
-120

skipif mysql # not compatible
query I rowsort label-2244
SELECT - MIN ( + 96 ) + + 21 + + - 45
----
-120

query I rowsort
SELECT ALL - 91 + 99
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2246
SELECT ALL CAST( NULL AS SIGNED ), + 81 * COUNT( * ) DIV + + 17 col1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-2246
SELECT ALL CAST ( NULL AS INTEGER ), + 81 * COUNT ( * ) / + + 17 col1
----
NULL
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2247
SELECT - 91 DIV + COUNT( * ) - 78
----
-169

skipif mysql # not compatible
query I rowsort label-2247
SELECT - 91 / + COUNT ( * ) - 78
----
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT ALL - 64 DIV COUNT( * ) + 6 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - 64 / COUNT ( * ) + 6 AS col2
----
-58

query I rowsort
SELECT - 19 * 16 * 83 * 32 AS col0
----
-807424

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

query I rowsort
SELECT + 95 + 1 AS col1
----
96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2253
SELECT - ( ( COUNT( DISTINCT 88 ) ) ) * 44 - COALESCE ( + 85, - - 90 + + 14 ) + 82 + 36, 15 AS col0
----
-11
15

skipif mysql # not compatible
query II rowsort label-2253
SELECT - ( ( COUNT ( DISTINCT 88 ) ) ) * 44 - COALESCE ( + 85, - - 90 + + 14 ) + 82 + 36, 15 AS col0
----
-11
15

query I rowsort
SELECT + 89 * + + 77
----
6853

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT 29 DIV 64 * + 10 + - - 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-2255
SELECT 29 / 64 * + 10 + - - 91 AS col0
----
91

query II rowsort
SELECT ALL + 7 AS col1, + 77 col2
----
7
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2257
SELECT ALL + 78 col2, COUNT( * ) * - 45 * - - 70 + COUNT( + + ( + + 66 ) ) * + 58 + - NULLIF ( + COUNT( * ), - 3 / 76 * + - 94 ) + - CAST( NULL AS SIGNED ) AS col2
----
78
NULL

skipif mysql # not compatible
query II rowsort label-2257
SELECT ALL + 78 col2, COUNT ( * ) * - 45 * - - 70 + COUNT ( + + ( + + 66 ) ) * + 58 + - NULLIF ( + COUNT ( * ), - 3 / 76 * + - 94 ) + - CAST ( NULL AS INTEGER ) AS col2
----
78
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT CAST( 47 AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2258
SELECT CAST ( 47 AS INTEGER ) AS col1
----
47

query I rowsort
SELECT + + 81 + - 40 AS col0
----
41

query I rowsort
SELECT ALL + + COALESCE ( - + 96, + 13 + - - 74 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL 28 * + 88 - + NULLIF ( + - COUNT( * ), + + 44 )
----
2465

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL 28 * + 88 - + NULLIF ( + - COUNT ( * ), + + 44 )
----
2465

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT - 42 * - - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT - 42 * - - COUNT ( * )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2263
SELECT - CASE 57 WHEN 71 + - 15 THEN NULL WHEN - - 29 + + 64 - - 66 THEN MIN( + - 26 ) WHEN + 82 * - NULLIF ( + 18, 33 * - 32 + - 61 ) THEN + CAST( NULL AS SIGNED ) END * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT - CASE 57 WHEN 71 + - 15 THEN NULL WHEN - - 29 + + 64 - - 66 THEN MIN ( + - 26 ) WHEN + 82 * - NULLIF ( + 18, 33 * - 32 + - 61 ) THEN + CAST ( NULL AS INTEGER ) END * - 25
----
NULL

query I rowsort
SELECT ALL 40 * CASE - 20 WHEN 55 * - - 32 THEN + 38 WHEN - - 56 THEN NULL END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2266
SELECT DISTINCT - COUNT( * ), COUNT( * ) * - NULLIF ( + COUNT( * ), 40 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-2266
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) * - NULLIF ( + COUNT ( * ), 40 )
----
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2267
SELECT DISTINCT - CAST( - MIN( ALL - - 21 ) AS SIGNED ) AS col1, 71 + + ( - COUNT( * ) )
----
21
70

skipif mysql # not compatible
query II rowsort label-2267
SELECT DISTINCT - CAST ( - MIN ( ALL - - 21 ) AS INTEGER ) AS col1, 71 + + ( - COUNT ( * ) )
----
21
70

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

query I rowsort
SELECT + 37 * - + 34 AS col0
----
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2270
SELECT - CAST( - 57 AS SIGNED ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2270
SELECT - CAST ( - 57 AS INTEGER ) AS col1
----
57

query I rowsort
SELECT 56 + + - 45 - 12 * + + 67
----
-793

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT + - 14 + - 71 + - 50 + - + COUNT( * )
----
-136

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT + - 14 + - 71 + - 50 + - + COUNT ( * )
----
-136

query I rowsort
SELECT ALL - 8 + + + ( - 47 )
----
-55

query I rowsort
SELECT + 26 + 21
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2275
SELECT ALL + + 48 + - 71 * - + 69 - - 61 + - - COUNT( * ) DIV + + 89
----
5008

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + + 48 + - 71 * - + 69 - - 61 + - - COUNT ( * ) / + + 89
----
5008

query I rowsort
SELECT 92 + + 15 col1
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT COUNT( * ) - - COALESCE ( - 85, 90 ) DIV - + SUM( 84 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2277
SELECT COUNT ( * ) - - COALESCE ( - 85, 90 ) / - + SUM ( 84 ) AS col2
----
2

query I rowsort
SELECT 37 + - 30 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2279
SELECT ALL - CASE + - ( 12 ) WHEN + 34 / + ( + 59 ) THEN NULL WHEN + 42 THEN - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * CAST( NULL AS SIGNED ) / + - 47 WHEN + CASE - 75 WHEN + 76 THEN NULL WHEN 85 * - + 86 * + 79 THEN NULL ELSE + 62 + + ( + AVG ( + 19 ) ) - - 1 END THEN NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL - CASE + - ( 12 ) WHEN + 34 / + ( + 59 ) THEN NULL WHEN + 42 THEN - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * CAST ( NULL AS INTEGER ) / + - 47 WHEN + CASE - 75 WHEN + 76 THEN NULL WHEN 85 * - + 86 * + 79 THEN NULL ELSE + 62 + + ( + AVG ( + 19 ) ) - - 1 END THEN NULL END + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2280
SELECT ALL + 60 + + 45 DIV + - 38
----
59

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL + 60 + + 45 / + - 38
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT ALL - 60 + - - NULLIF ( - + 97, + 36 ) + - + COUNT( * )
----
-158

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL - 60 + - - NULLIF ( - + 97, + 36 ) + - + COUNT ( * )
----
-158

query I rowsort
SELECT 27 + - 61 AS col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2283
SELECT ALL + 87 + + 82 + 63 + - MIN( 54 ) DIV - 15 + + 87
----
322

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL + 87 + + 82 + 63 + - MIN ( 54 ) / - 15 + + 87
----
322

query II rowsort
SELECT 37 + - 46, 11 AS col0
----
-9
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2285
SELECT COUNT( * ) + - - 43 DIV 45 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2285
SELECT COUNT ( * ) + - - 43 / 45 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT DISTINCT + 42 - - 56, COUNT( * ) + + 24 + 46 AS col0
----
98
71

skipif mysql # not compatible
query II rowsort label-2286
SELECT DISTINCT + 42 - - 56, COUNT ( * ) + + 24 + 46 AS col0
----
98
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT ALL + 25 * - ( - - COUNT( * ) ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL + 25 * - ( - - COUNT ( * ) ) col2
----
-25

query I rowsort
SELECT + 59 * 45 + - 46 AS col2
----
2609

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT - COALESCE ( - COALESCE ( - 59, - COUNT( * ) * COUNT( * ) + COUNT( * ) ), 46 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-2289
SELECT - COALESCE ( - COALESCE ( - 59, - COUNT ( * ) * COUNT ( * ) + COUNT ( * ) ), 46 ) AS col2
----
-59

query I rowsort
SELECT 91 * + 20 * - 47
----
-85540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2291
SELECT + + CASE + MIN( DISTINCT - 10 ) WHEN - + 99 THEN NULL WHEN 86 * - 10 * - 83 * 93 THEN 42 END * + CAST( NULL AS SIGNED ) - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT + + CASE + MIN ( DISTINCT - 10 ) WHEN - + 99 THEN NULL WHEN 86 * - 10 * - 83 * 93 THEN 42 END * + CAST ( NULL AS INTEGER ) - 19
----
NULL

query I rowsort
SELECT + + 68 col2
----
68

query I rowsort
SELECT + 7 * + 89
----
623

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

skipif mysql # not compatible
query I rowsort label-2294
SELECT - + COUNT ( * ) * 13 + - 92 AS col0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT CAST( NULL AS SIGNED ) / + NULLIF ( + COALESCE ( + - 28, + COUNT( * ) * - 41 + - + CASE + - 12 WHEN - 57 THEN - + 21 + + 18 - + 57 ELSE NULL END, MIN( ALL + 4 ) * + - 13 - + - CAST( NULL AS SIGNED ), 25 / - NULLIF ( - - 58, - COUNT( + 73 ) ) * 9 + - - 85 ), + + NULLIF ( - 66, + - ( + - 53 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT CAST ( NULL AS INTEGER ) / + NULLIF ( + COALESCE ( + - 28, + COUNT ( * ) * - 41 + - + CASE + - 12 WHEN - 57 THEN - + 21 + + 18 - + 57 ELSE NULL END, MIN ( ALL + 4 ) * + - 13 - + - CAST ( NULL AS INTEGER ), 25 / - NULLIF ( - - 58, - COUNT ( + 73 ) ) * 9 + - - 85 ), + + NULLIF ( - 66, + - ( + - 53 ) ) )
----
NULL

query II rowsort
SELECT ALL - ( 64 ) + NULLIF ( - 55, - 84 ), - 80 col2
----
-119
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2297
SELECT DISTINCT 0 DIV + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT 0 / + + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 86 + 34
----
120

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2300
SELECT DISTINCT - CASE - - 60 WHEN + CAST( NULL AS SIGNED ) THEN - - SUM( DISTINCT 84 ) WHEN + 47 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT - CASE - - 60 WHEN + CAST ( NULL AS INTEGER ) THEN - - SUM ( DISTINCT 84 ) WHEN + 47 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL + 37 + + COUNT( * ) + - 29 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + 37 + + COUNT ( * ) + - 29 AS col2
----
9

query I rowsort
SELECT + NULLIF ( + 13, + - ( + 38 ) ) * - 81
----
-1053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2303
SELECT CASE - CAST( 13 AS SIGNED ) WHEN - 91 * + 17 * - 99 THEN NULL WHEN - 59 THEN + 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT CASE - CAST ( 13 AS INTEGER ) WHEN - 91 * + 17 * - 99 THEN NULL WHEN - 59 THEN + 31 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT 58 + - - 70 + - 94 * CASE + + 19 WHEN + 30 * 38 THEN NULL WHEN 63 * 78 / - 11 * - 22 THEN - 16 ELSE - - COUNT( ALL 91 ) END * - COUNT( * ) + COUNT( * )
----
223

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT 58 + - - 70 + - 94 * CASE + + 19 WHEN + 30 * 38 THEN NULL WHEN 63 * 78 / - 11 * - 22 THEN - 16 ELSE - - COUNT ( ALL 91 ) END * - COUNT ( * ) + COUNT ( * )
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT - - COUNT( ALL - + 43 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2305
SELECT - - COUNT ( ALL - + 43 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2306
SELECT ALL + COALESCE ( + - COUNT( * ), CASE - + 81 WHEN - 40 + + + 9 * 74 * - CAST( - 0 AS SIGNED ) THEN + - 5 DIV + 25 WHEN - 13 THEN NULL END ) AS col1, + 43 AS col0
----
-1
43

skipif mysql # not compatible
query II rowsort label-2306
SELECT ALL + COALESCE ( + - COUNT ( * ), CASE - + 81 WHEN - 40 + + + 9 * 74 * - CAST ( - 0 AS INTEGER ) THEN + - 5 / + 25 WHEN - 13 THEN NULL END ) AS col1, + 43 AS col0
----
-1
43

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

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

query I rowsort
SELECT DISTINCT COALESCE ( - 76, + - 9 ) + + 62 * - 76 + - 20 AS col1
----
-4808

onlyif mysql # aggregate syntax: 
query II rowsort label-2309
SELECT DISTINCT 39 AS col1, 70 * - COUNT( * ) AS col1
----
39
-70

skipif mysql # not compatible
query II rowsort label-2309
SELECT DISTINCT 39 AS col1, 70 * - COUNT ( * ) AS col1
----
39
-70

query I rowsort
SELECT ALL + 28 * 60
----
1680

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT 27 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT 27 / - 66
----
0

query I rowsort
SELECT ALL ( + 5 ) - - - 67
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2313
SELECT DISTINCT ( + + ( 70 ) ) DIV - 30
----
-2

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT ( + + ( 70 ) ) / - 30
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT 11 * - - CAST( + + 3 AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2314
SELECT 11 * - - CAST ( + + 3 AS INTEGER ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT 17 - - + 49 DIV - 75 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2315
SELECT 17 - - + 49 / - 75 AS col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2316
SELECT 52 DIV 37 * + NULLIF ( + + 95, - 9 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2316
SELECT 52 / 37 * + NULLIF ( + + 95, - 9 ) AS col1
----
95

query I rowsort
SELECT COALESCE ( - 79, - 73 ) + - 77 + + 42 * - - 30 * - - ( - ( + 26 ) )
----
-32916

query I rowsort
SELECT 62 * + - 41 AS col1
----
-2542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT ALL + CAST( 15 AS SIGNED ) * ( - - 22 ) + + CAST( 46 AS SIGNED ) + + COALESCE ( + + 79, + + 42 ) - - 7 * - 59 * + CAST( + 35 AS SIGNED ) * - 31 * + 97
----
43466640

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL + CAST ( 15 AS INTEGER ) * ( - - 22 ) + + CAST ( 46 AS INTEGER ) + + COALESCE ( + + 79, + + 42 ) - - 7 * - 59 * + CAST ( + 35 AS INTEGER ) * - 31 * + 97
----
43466640

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT 36 + - SUM( DISTINCT - 38 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2320
SELECT 36 + - SUM ( DISTINCT - 38 ) AS col2
----
74

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

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

query II rowsort
SELECT 14 AS col0, - 29
----
14
-29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL + MIN( 93 ) * + 88
----
8184

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + MIN ( 93 ) * + 88
----
8184

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT ALL NULLIF ( ( - + 22 ), + 78 * - COUNT( * ) + + - 32 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL NULLIF ( ( - + 22 ), + 78 * - COUNT ( * ) + + - 32 ) AS col0
----
-22

query I rowsort
SELECT 61 - 76 + - 83 * + - 83
----
6874

query II rowsort
SELECT DISTINCT - 3, + 40 AS col0
----
-3
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT COALESCE ( - 92, - + CASE + 41 WHEN 12 * + 69 + + COUNT( * ) * - 68 THEN + 20 WHEN + COUNT( * ) THEN + 1 + - 39 ELSE MIN( ALL - 73 ) + + + ( + 45 ) END )
----
-92

skipif mysql # not compatible
query I rowsort label-2328
SELECT COALESCE ( - 92, - + CASE + 41 WHEN 12 * + 69 + + COUNT ( * ) * - 68 THEN + 20 WHEN + COUNT ( * ) THEN + 1 + - 39 ELSE MIN ( ALL - 73 ) + + + ( + 45 ) END )
----
-92

query I rowsort
SELECT - + 48 * - 86 + - + ( 2 )
----
4126

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT - + MIN( DISTINCT + 39 ) + - - ( COALESCE ( - 72, 95 + 78, MIN( + + 36 ) ) ) AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-2332
SELECT - + MIN ( DISTINCT + 39 ) + - - ( COALESCE ( - 72, 95 + 78, MIN ( + + 36 ) ) ) AS col2
----
-111

query I rowsort
SELECT - 92 * - 20
----
1840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2334
SELECT - 77 DIV - - 49 + 25 + + - 25 - - - MAX( + 52 )
----
-53

skipif mysql # not compatible
query I rowsort label-2334
SELECT - 77 / - - 49 + 25 + + - 25 - - - MAX ( + 52 )
----
-53

query I rowsort
SELECT DISTINCT - 59 * - 81 col2
----
4779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2336
SELECT DISTINCT - 96 * - 80 + - 50 / 2 + - CAST( 75 AS SIGNED ) + - MAX( - 66 ) + - + 3 + - + 47 + - + 78 + - COUNT( * ) + CAST( NULL AS SIGNED ) col0, 87 * + - CAST( - 81 AS SIGNED ) * - + 12 * - - 4 + + ( 87 ) + + 50 * 59 - + + 72 AS col1
----
NULL
-335291

skipif mysql # not compatible
query II rowsort label-2336
SELECT DISTINCT - 96 * - 80 + - 50 / 2 + - CAST ( 75 AS INTEGER ) + - MAX ( - 66 ) + - + 3 + - + 47 + - + 78 + - COUNT ( * ) + CAST ( NULL AS INTEGER ) col0, 87 * + - CAST ( - 81 AS INTEGER ) * - + 12 * - - 4 + + ( 87 ) + + 50 * 59 - + + 72 AS col1
----
NULL
-335291

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL - + MIN( ALL 3 ) * 90 * 32 AS col1
----
-8640

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL - + MIN ( ALL 3 ) * 90 * 32 AS col1
----
-8640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2338
SELECT - - 21 * - CAST( 61 AS SIGNED ) * 73 + 0 AS col2
----
-93513

skipif mysql # not compatible
query I rowsort label-2338
SELECT - - 21 * - CAST ( 61 AS INTEGER ) * 73 + 0 AS col2
----
-93513

query I rowsort
SELECT DISTINCT - - 6 * 1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2340
SELECT ALL 43 * - + 91 / 58 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL 43 * - + 91 / 58 + - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT - ( + - 10 ) + - COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2341
SELECT - ( + - 10 ) + - COUNT ( * ) AS col0
----
9

query I rowsort
SELECT + - 22 * - + 14
----
308

query I rowsort
SELECT DISTINCT + 83 * + ( - 9 ) col1
----
-747

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT DISTINCT - 72 - + 17 + - - 62 DIV - + 79 * 58 + - + 33 * 36
----
-1277

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT - 72 - + 17 + - - 62 / - + 79 * 58 + - + 33 * 36
----
-1277

query I rowsort
SELECT + 14 * - + 52 AS col2
----
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-2346
SELECT ALL 20 DIV + 71 col2
----
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL 20 / + 71 col2
----
0

query I rowsort
SELECT + 32 + - 38 * + 76 AS col1
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT + 84 + - COUNT( DISTINCT 46 ) - + 48 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2348
SELECT + 84 + - COUNT ( DISTINCT 46 ) - + 48 AS col2
----
35

query II rowsort
SELECT ALL 46 col2, 3 * + 5 * + 39
----
46
585

query I rowsort
SELECT + 2 - 40 + - 90 AS col2
----
-128

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

skipif mysql # not compatible
query I rowsort label-2351
SELECT + 72 + + COUNT ( * ) AS col0
----
73

query I rowsort
SELECT - 78 + - - 14 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-2353
SELECT ALL 3 AS col1, - SUM( ALL + + 48 ) + 36 AS col0
----
3
-12

skipif mysql # not compatible
query II rowsort label-2353
SELECT ALL 3 AS col1, - SUM ( ALL + + 48 ) + 36 AS col0
----
3
-12

query I rowsort
SELECT DISTINCT 13 * - ( - 16 )
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT + 25 * - + 2 * + + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2355
SELECT + 25 * - + 2 * + + COUNT ( * )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2356
SELECT ALL COUNT( * ), CASE + MIN( DISTINCT + 50 ) WHEN - 63 / 3 + + + 6 + 30 THEN + - 92 * 1 + + 76 WHEN - 41 * - 66 THEN COUNT( * ) * CAST( NULL AS SIGNED ) WHEN 31 * - - 67 / + NULLIF ( + - 26, + CASE - NULLIF ( - - 60, 62 + 56 ) WHEN - COUNT( * ) THEN NULL ELSE + 77 END ) THEN + + 15 * 59 + + - 20 ELSE NULL END AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2356
SELECT ALL COUNT ( * ), CASE + MIN ( DISTINCT + 50 ) WHEN - 63 / 3 + + + 6 + 30 THEN + - 92 * 1 + + 76 WHEN - 41 * - 66 THEN COUNT ( * ) * CAST ( NULL AS INTEGER ) WHEN 31 * - - 67 / + NULLIF ( + - 26, + CASE - NULLIF ( - - 60, 62 + 56 ) WHEN - COUNT ( * ) THEN NULL ELSE + 77 END ) THEN + + 15 * 59 + + - 20 ELSE NULL END AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2357
SELECT + 42 + - + 43 - - + 56 * + + ( - CASE + ( 25 ) WHEN + 6 THEN NULL WHEN + COALESCE ( - - 95, + ( - + COUNT( * ) ) - - COALESCE ( - 77, - + 32, - - 86 - CAST( NULL AS SIGNED ) ) + - ( - - 53 ) * CAST( NULL AS SIGNED ) * + 91 * - 27, 57, - + 63 ) THEN + AVG ( + ( - 5 ) ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT + 42 + - + 43 - - + 56 * + + ( - CASE + ( 25 ) WHEN + 6 THEN NULL WHEN + COALESCE ( - - 95, + ( - + COUNT ( * ) ) - - COALESCE ( - 77, - + 32, - - 86 - CAST ( NULL AS INTEGER ) ) + - ( - - 53 ) * CAST ( NULL AS INTEGER ) * + 91 * - 27, 57, - + 63 ) THEN + AVG ( + ( - 5 ) ) END )
----
NULL

query II rowsort
SELECT ALL 14 AS col2, 84
----
14
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2359
SELECT + COUNT( * ) + + NULLIF ( + ( COUNT( + 54 ) ), + 98 ) * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT + COUNT ( * ) + + NULLIF ( + ( COUNT ( + 54 ) ), + 98 ) * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL CASE + + COUNT( DISTINCT + - 27 ) WHEN COALESCE ( 41, 31, 45 * + ( - 45 ) ) * - + 61 / + COALESCE ( + 90, ( + 46 ) ) THEN - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL CASE + + COUNT ( DISTINCT + - 27 ) WHEN COALESCE ( 41, 31, 45 * + ( - 45 ) ) * - + 61 / + COALESCE ( + 90, ( + 46 ) ) THEN - 38 END
----
NULL

query I rowsort
SELECT - 94 + + ( + ( 42 ) )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2362
SELECT ALL 0 DIV + 32 * - + 24
----
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL 0 / + 32 * - + 24
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT - 12 DIV + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2363
SELECT - 12 / + 72 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT - 80 * + + COUNT ( * ) AS col0
----
-80

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

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

query I rowsort
SELECT + 67 * 48 AS col2
----
3216

onlyif mysql # DIV for integer division: 
query II rowsort label-2367
SELECT 27 DIV - 34 * 54 + + 34 + 97 + + + 10, 81 AS col1
----
141
81

skipif mysql # not compatible
query II rowsort label-2367
SELECT 27 / - 34 * 54 + + 34 + 97 + + + 10, 81 AS col1
----
141
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2368
SELECT ALL - 22 * - 91 * + NULLIF ( 77, - CAST( + COUNT( * ) AS SIGNED ) - 82 + + 64 + + 0 + + NULLIF ( 88, + 19 ) ) AS col1
----
154154

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL - 22 * - 91 * + NULLIF ( 77, - CAST ( + COUNT ( * ) AS INTEGER ) - 82 + + 64 + + 0 + + NULLIF ( 88, + 19 ) ) AS col1
----
154154

query II rowsort
SELECT + 52, - 26 AS col0
----
52
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT - - 67 * 64 + - + COUNT( * )
----
4287

skipif mysql # not compatible
query I rowsort label-2370
SELECT - - 67 * 64 + - + COUNT ( * )
----
4287

query I rowsort
SELECT + - CASE - - 1 WHEN - - 1 THEN 84 END AS col1
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-2372
SELECT ( + 37 ) AS col2, + ( - 32 ) DIV 12 * + 39 AS col2
----
37
-78

skipif mysql # not compatible
query II rowsort label-2372
SELECT ( + 37 ) AS col2, + ( - 32 ) / 12 * + 39 AS col2
----
37
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT 31 * + CAST( 79 AS SIGNED ) * 99 - + 50
----
242401

skipif mysql # not compatible
query I rowsort label-2373
SELECT 31 * + CAST ( 79 AS INTEGER ) * 99 - + 50
----
242401

onlyif mysql # aggregate syntax: 
query II rowsort label-2374
SELECT + - 41 AS col1, 27 * + - COUNT( * ) AS col1
----
-41
-27

skipif mysql # not compatible
query II rowsort label-2374
SELECT + - 41 AS col1, 27 * + - COUNT ( * ) AS col1
----
-41
-27

query II rowsort
SELECT + - 0 AS col1, 26 AS col0
----
0
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT - + MIN( ALL NULLIF ( - - 75, 2 ) ) * 48 * + - 36 AS col1
----
129600

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT - + MIN ( ALL NULLIF ( - - 75, 2 ) ) * 48 * + - 36 AS col1
----
129600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT DISTINCT + 20 * CAST( NULL AS SIGNED ) * - - 22 - - + 98 - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT + 20 * CAST ( NULL AS INTEGER ) * - - 22 - - + 98 - 64
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ALL - + CASE - ( - 48 ) WHEN 99 + + - 13 THEN NULL WHEN - 5 * - 73 THEN - COUNT( * ) END * - ( + 66 ) * + 30 - + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL - + CASE - ( - 48 ) WHEN 99 + + - 13 THEN NULL WHEN - 5 * - 73 THEN - COUNT ( * ) END * - ( + 66 ) * + 30 - + 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT - 26 * - SUM( - - ( - 93 ) ) + + 76
----
-2342

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT - 26 * - SUM ( - - ( - 93 ) ) + + 76
----
-2342

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

query I rowsort
SELECT ALL - 28 * 56
----
-1568

query I rowsort
SELECT ALL + ( + 35 ) * + - 57 - + 23 * - + 9 + 17 AS col1
----
-1771

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT CASE - 16 WHEN 74 * 82 + - 72 THEN - CAST( - + 33 AS SIGNED ) * + 11 + - - CASE - COALESCE ( 28, + ( + 39 ) + + 89, 36 * - - 82, - 58 ) WHEN - AVG ( - - 55 ) * + + 88 THEN NULL WHEN + - 64 * + 3 + ( - COUNT( * ) ) THEN + + 72 / - - 45 * - 71 ELSE NULL END WHEN - 93 THEN - COUNT( * ) * + 22 * + 28 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT CASE - 16 WHEN 74 * 82 + - 72 THEN - CAST ( - + 33 AS INTEGER ) * + 11 + - - CASE - COALESCE ( 28, + ( + 39 ) + + 89, 36 * - - 82, - 58 ) WHEN - AVG ( - - 55 ) * + + 88 THEN NULL WHEN + - 64 * + 3 + ( - COUNT ( * ) ) THEN + + 72 / - - 45 * - 71 ELSE NULL END WHEN - 93 THEN - COUNT ( * ) * + 22 * + 28 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2385
SELECT COALESCE ( - COALESCE ( 61, + CAST( + 89 AS SIGNED ) ), 17, - COUNT( * ) ) AS col2, + 33
----
-61
33

skipif mysql # not compatible
query II rowsort label-2385
SELECT COALESCE ( - COALESCE ( 61, + CAST ( + 89 AS INTEGER ) ), 17, - COUNT ( * ) ) AS col2, + 33
----
-61
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT - 55 DIV - + 58
----
0

skipif mysql # not compatible
query I rowsort label-2386
SELECT - 55 / - + 58
----
0

query I rowsort
SELECT + 61 * 88 * + 17
----
91256

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT + ( + + 86 ) * ( - + 25 ) + + COUNT( * ) * 53 * NULLIF ( - 76, - 25 / - - COUNT( * ) + + 65 ) AS col0
----
-6178

skipif mysql # not compatible
query I rowsort label-2389
SELECT + ( + + 86 ) * ( - + 25 ) + + COUNT ( * ) * 53 * NULLIF ( - 76, - 25 / - - COUNT ( * ) + + 65 ) AS col0
----
-6178

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT DISTINCT 2 DIV - 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT 2 / - 68 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2391
SELECT DISTINCT CAST( 27 AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT CAST ( 27 AS INTEGER ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2392
SELECT MIN( ALL + 60 ) col2, SUM( ALL - - 2 ) AS col1
----
60
2

skipif mysql # not compatible
query II rowsort label-2392
SELECT MIN ( ALL + 60 ) col2, SUM ( ALL - - 2 ) AS col1
----
60
2

query II rowsort
SELECT DISTINCT + ( - 33 ) + - 20, - 42 + + 70 + - 27 AS col1
----
-53
1

query II rowsort
SELECT ALL 30 * - 79 AS col0, + 67
----
-2370
67

query I rowsort
SELECT DISTINCT 42 + 68 + - 90
----
20

query I rowsort
SELECT ALL 1 + 59 + 49 AS col2
----
109

query II rowsort
SELECT DISTINCT 59 * - 17, - 31 AS col2
----
-1003
-31

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

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

query I rowsort
SELECT ALL 94 * + + 85 AS col2
----
7990

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL 53 + COUNT( * ) - 15 + 1
----
40

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL 53 + COUNT ( * ) - 15 + 1
----
40

query I rowsort
SELECT CASE + - 79 WHEN 91 THEN - 39 WHEN + 58 THEN NULL END + 73 + 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT 77 + 48 - + 59 + + ( - ( 34 ) ) * 45 DIV + COUNT( * ) DIV COUNT( * ) AS col2
----
-1464

skipif mysql # not compatible
query I rowsort label-2402
SELECT 77 + 48 - + 59 + + ( - ( 34 ) ) * 45 / + COUNT ( * ) / COUNT ( * ) AS col2
----
-1464

query I rowsort
SELECT ALL - 82 + - 74 AS col0
----
-156

query I rowsort
SELECT ALL + 1 + - 40 * + 39 * + 33 * 39
----
-2007719

query II rowsort
SELECT ALL - + 81 * + 52, - 55 AS col1
----
-4212
-55

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

query III rowsort
SELECT + + 59 * - 28 + + 59, ( + 45 ) AS col0, - 32 AS col2
----
-1593
45
-32

query I rowsort
SELECT - 37 * + 49
----
-1813

query II rowsort
SELECT + ( + ( 67 ) ) AS col2, - 54 col1
----
67
-54

query I rowsort
SELECT 85 * - 34 + 19 + 65 AS col1
----
-2806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT 69 - - CAST( 97 AS SIGNED ) * + ( + 55 ) AS col0
----
5404

skipif mysql # not compatible
query I rowsort label-2411
SELECT 69 - - CAST ( 97 AS INTEGER ) * + ( + 55 ) AS col0
----
5404

onlyif mysql # aggregate syntax: 
query II rowsort label-2412
SELECT + - COUNT( DISTINCT 83 ) AS col1, + 62
----
-1
62

skipif mysql # not compatible
query II rowsort label-2412
SELECT + - COUNT ( DISTINCT 83 ) AS col1, + 62
----
-1
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2413
SELECT - CASE - 19 WHEN + 71 THEN + 61 * COUNT( * ) / - + 9 WHEN + CASE - 47 WHEN ( - 32 ) THEN + 70 WHEN - ( - CAST( NULL AS SIGNED ) ) - - 99 + + 4 + 39 THEN - 76 WHEN + 83 THEN NULL END THEN NULL WHEN 16 THEN NULL END + - 43 * + + ( - - 73 ) AS col0, 14 AS col2
----
NULL
14

skipif mysql # not compatible
query II rowsort label-2413
SELECT - CASE - 19 WHEN + 71 THEN + 61 * COUNT ( * ) / - + 9 WHEN + CASE - 47 WHEN ( - 32 ) THEN + 70 WHEN - ( - CAST ( NULL AS INTEGER ) ) - - 99 + + 4 + 39 THEN - 76 WHEN + 83 THEN NULL END THEN NULL WHEN 16 THEN NULL END + - 43 * + + ( - - 73 ) AS col0, 14 AS col2
----
NULL
14

query I rowsort
SELECT + 3 * - 37 + 34 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT ALL - COUNT( 53 ) * - + 1 col1
----
1

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL - COUNT ( 53 ) * - + 1 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT COUNT( * ) * + 8 * 55 DIV + 99
----
4

skipif mysql # not compatible
query I rowsort label-2416
SELECT COUNT ( * ) * + 8 * 55 / + 99
----
4

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2418
SELECT DISTINCT 96 * + + 24 AS col1, CAST( COUNT( * ) AS SIGNED ) * 39 - + - 43
----
2304
82

skipif mysql # not compatible
query II rowsort label-2418
SELECT DISTINCT 96 * + + 24 AS col1, CAST ( COUNT ( * ) AS INTEGER ) * 39 - + - 43
----
2304
82

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

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

query I rowsort
SELECT 46 * + - ( 49 ) * + 92 - 87
----
-207455

query I rowsort
SELECT 97 * - - 73 + - - ( + - 57 )
----
7024

query I rowsort
SELECT 27 + + - 26 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT 36 + - 55 * + 93 + + 61 * + COUNT( * )
----
-5018

skipif mysql # not compatible
query I rowsort label-2423
SELECT 36 + - 55 * + 93 + + 61 * + COUNT ( * )
----
-5018

query I rowsort
SELECT ALL - CASE 54 WHEN + + 39 THEN + 86 END AS col1
----
NULL

query I rowsort
SELECT ALL + 7 * - - 84 AS col1
----
588

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2426
SELECT ALL 13 + CASE - CAST( - CASE + 75 WHEN - 30 + + + 27 THEN NULLIF ( 91, - - 27 ) END AS SIGNED ) WHEN - 5 + - - 35 THEN NULL ELSE - + 73 END, 49 + - + 51 AS col1
----
-60
-2

skipif mysql # not compatible
query II rowsort label-2426
SELECT ALL 13 + CASE - CAST ( - CASE + 75 WHEN - 30 + + + 27 THEN NULLIF ( 91, - - 27 ) END AS INTEGER ) WHEN - 5 + - - 35 THEN NULL ELSE - + 73 END, 49 + - + 51 AS col1
----
-60
-2

query I rowsort
SELECT ALL + 98 * 90
----
8820

query I rowsort
SELECT ALL - 34 + - - 20 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT SUM( - 85 ) + - - 60 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-2429
SELECT SUM ( - 85 ) + - - 60 AS col2
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2430
SELECT 52 + + COALESCE ( + 26, - 25 * 20 DIV - - AVG ( + 92 ), - NULLIF ( + + 13, - 95 + - - 75 DIV + - COUNT( * ) ) - 95 )
----
78

skipif mysql # not compatible
query I rowsort label-2430
SELECT 52 + + COALESCE ( + 26, - 25 * 20 / - - AVG ( + 92 ), - NULLIF ( + + 13, - 95 + - - 75 / + - COUNT ( * ) ) - 95 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT COUNT( DISTINCT + ( + 51 ) ) + 82 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-2431
SELECT COUNT ( DISTINCT + ( + 51 ) ) + 82 AS col1
----
83

query II rowsort
SELECT DISTINCT 68, 75 AS col0
----
68
75

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

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

query I rowsort
SELECT 97 + - + 44 col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT 71 DIV 20 col2
----
3

skipif mysql # not compatible
query I rowsort label-2435
SELECT 71 / 20 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL COUNT( * ) + - SUM( DISTINCT + - 36 ) * + + 78
----
2809

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL COUNT ( * ) + - SUM ( DISTINCT + - 36 ) * + + 78
----
2809

query II rowsort
SELECT DISTINCT 79, - 99 AS col0
----
79
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2438
SELECT ALL - 36 + 70 * + + CAST( + 14 AS SIGNED ) + COALESCE ( + 5, - 19 * CASE ( 44 ) WHEN - 74 * + 20 THEN NULL ELSE - + 12 * + 52 END * ( + 4 ) ) * + 13 DIV + CAST( + 66 AS SIGNED ) + + 35 - + - 86 + + 60 AS col2
----
1125

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL - 36 + 70 * + + CAST ( + 14 AS INTEGER ) + COALESCE ( + 5, - 19 * CASE ( 44 ) WHEN - 74 * + 20 THEN NULL ELSE - + 12 * + 52 END * ( + 4 ) ) * + 13 / + CAST ( + 66 AS INTEGER ) + + 35 - + - 86 + + 60 AS col2
----
1125

onlyif mysql # DIV for integer division: 
query I rowsort label-2439
SELECT ALL + + 74 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + + 74 / 94
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2440
SELECT ALL 15 * + - 78 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL 15 * + - 78 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query II rowsort
SELECT - ( - - 32 ) + - 56 col0, 54 * 5 AS col2
----
-88
270

query II rowsort
SELECT - - 71, - 85 AS col0
----
71
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL SUM( DISTINCT + 0 ) - - + 59
----
59

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL SUM ( DISTINCT + 0 ) - - + 59
----
59

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

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

skipif mysql # not compatible
query II rowsort label-2445
SELECT ALL - COUNT ( * ) AS col2, ( - 59 )
----
-1
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL + COALESCE ( 18, + 55 - CASE + 81 WHEN - 17 * + 88 * 69 * - + 25 THEN NULL WHEN - + 44 THEN + - MAX( DISTINCT + 44 ) * + + 92 WHEN 89 THEN - 15 WHEN - 18 * + COUNT( ALL + + 89 ) THEN NULL END ) * + - ( + 32 )
----
-576

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + COALESCE ( 18, + 55 - CASE + 81 WHEN - 17 * + 88 * 69 * - + 25 THEN NULL WHEN - + 44 THEN + - MAX ( DISTINCT + 44 ) * + + 92 WHEN 89 THEN - 15 WHEN - 18 * + COUNT ( ALL + + 89 ) THEN NULL END ) * + - ( + 32 )
----
-576

onlyif mysql # aggregate syntax: 
query II rowsort label-2447
SELECT - 1 * 0 * + 32, COUNT( * ) * + 74 * + - 8 col2
----
0
-592

skipif mysql # not compatible
query II rowsort label-2447
SELECT - 1 * 0 * + 32, COUNT ( * ) * + 74 * + - 8 col2
----
0
-592

query II rowsort
SELECT 42 AS col1, - 52 col2
----
42
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2449
SELECT 40 * MAX( + 10 ) * + - CASE - 90 WHEN + COUNT( * ) * + - 96 * 36 + + + 62 + - 48 * + CAST( + 20 AS SIGNED ) * 58 + - 48 + + COUNT( * ) THEN - + 33 - + + ( + COUNT( - 57 ) ) ELSE NULL END + - + SUM( 23 ) * - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT 40 * MAX ( + 10 ) * + - CASE - 90 WHEN + COUNT ( * ) * + - 96 * 36 + + + 62 + - 48 * + CAST ( + 20 AS INTEGER ) * 58 + - 48 + + COUNT ( * ) THEN - + 33 - + + ( + COUNT ( - 57 ) ) ELSE NULL END + - + SUM ( 23 ) * - - 94
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT ALL + 77 DIV + 77 col0
----
1

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + 77 / + 77 col0
----
1

query I rowsort
SELECT + 77 * + - 50 * + + 79
----
-304150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2452
SELECT DISTINCT CAST( NULL AS SIGNED ) * 94 AS col0, - 99 AS col0
----
NULL
-99

skipif mysql # not compatible
query II rowsort label-2452
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 94 AS col0, - 99 AS col0
----
NULL
-99

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

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

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

skipif mysql # not compatible
query I rowsort label-2454
SELECT CAST ( NULL AS INTEGER ) / + - 81
----
NULL

query I rowsort
SELECT ALL + 65 + 82
----
147

onlyif mysql # DIV for integer division: 
query II rowsort label-2456
SELECT DISTINCT - COALESCE ( - - 12, 14 DIV - 87 ), 91 AS col2
----
-12
91

skipif mysql # not compatible
query II rowsort label-2456
SELECT DISTINCT - COALESCE ( - - 12, 14 / - 87 ), 91 AS col2
----
-12
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL + 38 + + + ( SUM( - 36 ) ) + 63 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL + 38 + + + ( SUM ( - 36 ) ) + 63 AS col1
----
65

query I rowsort
SELECT 62 * - 75 * + 21 col1
----
-97650

query I rowsort
SELECT ALL 84 * - 70
----
-5880

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT + 7 - + 53 - 42 * 0 * + COUNT( - 84 ) * 89 + 9 + 32
----
-5

skipif mysql # not compatible
query I rowsort label-2460
SELECT + 7 - + 53 - 42 * 0 * + COUNT ( - 84 ) * 89 + 9 + 32
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT - CASE 48 WHEN 57 THEN - COUNT( * ) WHEN + + COUNT( * ) THEN NULL ELSE 5 END AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2462
SELECT - CASE 48 WHEN 57 THEN - COUNT ( * ) WHEN + + COUNT ( * ) THEN NULL ELSE 5 END AS col2
----
-5

query I rowsort
SELECT - ( - 46 ) * - 68 AS col2
----
-3128

query I rowsort
SELECT ALL + 67 + + + 70
----
137

query I rowsort
SELECT ALL - 3 + + 93
----
90

query I rowsort
SELECT ALL + 49 * + 31 AS col1
----
1519

query I rowsort
SELECT DISTINCT NULLIF ( - 4, 13 ) AS col1
----
-4

query I rowsort
SELECT DISTINCT + 31 * - - 64 * + 84
----
166656

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT DISTINCT + 32 * + + 45 * - 89 DIV COUNT( * ) AS col1
----
-128160

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT + 32 * + + 45 * - 89 / COUNT ( * ) AS col1
----
-128160

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT - COUNT( * ) + + 78 - - 61 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-2470
SELECT - COUNT ( * ) + + 78 - - 61 AS col2
----
138

query I rowsort
SELECT - - 93 + - 90
----
3

query I rowsort
SELECT - - 88 * + 11 AS col0
----
968

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT + 19 DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2473
SELECT + 19 / + 93 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2474
SELECT - CASE - 76 WHEN + CAST( NULL AS SIGNED ) + - 59 THEN NULL WHEN 2 * + 51 THEN + COUNT( * ) * - AVG ( ALL 92 ) * - MAX( DISTINCT + 84 ) + 23 END * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT - CASE - 76 WHEN + CAST ( NULL AS INTEGER ) + - 59 THEN NULL WHEN 2 * + 51 THEN + COUNT ( * ) * - AVG ( ALL 92 ) * - MAX ( DISTINCT + 84 ) + 23 END * 72
----
NULL

query I rowsort
SELECT - + 69 + + 9 AS col0
----
-60

query I rowsort
SELECT DISTINCT + COALESCE ( 21, 66 ) AS col1
----
21

query I rowsort
SELECT ALL + 67 * 60 + + ( + 12 ) - + 0 + - 71 - 0 AS col1
----
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL 29 * - MIN( ALL 32 )
----
-928

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL 29 * - MIN ( ALL 32 )
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT - - 92 * 43 * COUNT( * ) * + 91 AS col0
----
359996

skipif mysql # not compatible
query I rowsort label-2479
SELECT - - 92 * 43 * COUNT ( * ) * + 91 AS col0
----
359996

onlyif mysql # aggregate syntax: 
query II rowsort label-2480
SELECT COUNT( DISTINCT 66 ) AS col1, + 90 AS col0
----
1
90

skipif mysql # not compatible
query II rowsort label-2480
SELECT COUNT ( DISTINCT 66 ) AS col1, + 90 AS col0
----
1
90

query I rowsort
SELECT ALL - ( - 28 ) * - 81
----
-2268

query I rowsort
SELECT - 59 * + 53 + ( 5 ) - + 51 * - 20 + + 35 + - 49 AS col0
----
-2116

query I rowsort
SELECT DISTINCT + ( 96 ) * - 77
----
-7392

onlyif mysql # aggregate syntax: 
query II rowsort label-2484
SELECT ALL + 29 * - COUNT( * ) + - - ( 21 ) + + - 53, - 31 AS col0
----
-61
-31

skipif mysql # not compatible
query II rowsort label-2484
SELECT ALL + 29 * - COUNT ( * ) + - - ( 21 ) + + - 53, - 31 AS col0
----
-61
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT + CASE + 98 WHEN 82 THEN NULL WHEN - - 56 THEN - - 10 WHEN CAST( CASE - ( 91 ) WHEN - 16 THEN + 70 WHEN - + 76 THEN NULL END AS SIGNED ) * + 90 / - 80 * + 7 * 34 - - 80 + - 84 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT + CASE + 98 WHEN 82 THEN NULL WHEN - - 56 THEN - - 10 WHEN CAST ( CASE - ( 91 ) WHEN - 16 THEN + 70 WHEN - + 76 THEN NULL END AS INTEGER ) * + 90 / - 80 * + 7 * 34 - - 80 + - 84 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL 56 * - 38 + - + 89 * - CASE WHEN NOT 36 < COUNT( * ) * - 96 * + 38 THEN NULL ELSE - - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL 56 * - 38 + - + 89 * - CASE WHEN NOT 36 < COUNT ( * ) * - 96 * + 38 THEN NULL ELSE - - 95 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2487
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 71 + + - 30 * - CASE - COUNT( * ) WHEN + 59 - 35 THEN - 17 ELSE + - 21 END * ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 71 + + - 30 * - CASE - COUNT ( * ) WHEN + 59 - 35 THEN - 17 ELSE + - 21 END * ( COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT DISTINCT COUNT( * ) * + 92 + + + 31 + - COUNT( * ) + - COUNT( * ) * 66 * - ( - COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT COUNT ( * ) * + 92 + + + 31 + - COUNT ( * ) + - COUNT ( * ) * 66 * - ( - COUNT ( * ) )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2489
SELECT + ( + COUNT( * ) ) DIV 53 + + - COUNT( * ) - + + 4 + + - ( - - 42 ) * - 7 - - NULLIF ( 41, + 53 ) + - 86 - + 74 * - 7 * + + 77
----
40130

skipif mysql # not compatible
query I rowsort label-2489
SELECT + ( + COUNT ( * ) ) / 53 + + - COUNT ( * ) - + + 4 + + - ( - - 42 ) * - 7 - - NULLIF ( 41, + 53 ) + - 86 - + 74 * - 7 * + + 77
----
40130

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

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

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

query I rowsort
SELECT + 60 + 81 AS col0
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT - 66 DIV - + 11 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-2493
SELECT - 66 / - + 11 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2494
SELECT DISTINCT 43 * COALESCE ( 24, - 12, CAST( NULL AS SIGNED ) ) + + - COUNT( * )
----
1031

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT 43 * COALESCE ( 24, - 12, CAST ( NULL AS INTEGER ) ) + + - COUNT ( * )
----
1031

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2495
SELECT DISTINCT 83 DIV + ( - + MAX( DISTINCT + + 35 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT 83 / + ( - + MAX ( DISTINCT + + 35 ) ) AS col0
----
-2

query I rowsort
SELECT + 12 * - - 52 AS col2
----
624

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ALL COALESCE ( + 48, + 90, + 60 * 83 - + - 45 * - SUM( - - 69 ) ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL COALESCE ( + 48, + 90, + 60 * 83 - + - 45 * - SUM ( - - 69 ) ) AS col0
----
48

query I rowsort
SELECT DISTINCT 35 * + COALESCE ( + 61, - 3 )
----
2135

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

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

query II rowsort
SELECT + 99 AS col0, + NULLIF ( - - 43, 12 / - ( AVG ( ALL - 25 ) ) ) AS col0
----
99
43

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2503
SELECT - 33 AS col0, MIN( DISTINCT + 36 ) AS col1
----
-33
36

skipif mysql # not compatible
query II rowsort label-2503
SELECT - 33 AS col0, MIN ( DISTINCT + 36 ) AS col1
----
-33
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2504
SELECT - - 23 AS col2, 79 * + 25 * + COUNT( * ) + - 9 AS col1
----
23
1966

skipif mysql # not compatible
query II rowsort label-2504
SELECT - - 23 AS col2, 79 * + 25 * + COUNT ( * ) + - 9 AS col1
----
23
1966

query I rowsort
SELECT ALL - + 19 * - + 70 col0
----
1330

query I rowsort
SELECT ALL - - 2 * - 93 AS col0
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-2507
SELECT + + 21 DIV + 21 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2507
SELECT + + 21 / + 21 AS col0
----
1

query I rowsort
SELECT - 92 * - 62 col0
----
5704

query I rowsort
SELECT DISTINCT - COALESCE ( - 28, 10 + + 29 + + 30 + - COALESCE ( + 67, + 23, 50 ) * - + 43 * + 10 ) * + 5 AS col1
----
140

query I rowsort
SELECT - 36 - - 61
----
25

query I rowsort
SELECT ( - - 46 )
----
46

onlyif mysql # aggregate syntax: 
query III rowsort label-2512
SELECT ALL - 21 AS col1, 4 * + 79 col1, + MIN( - 94 ) - 90
----
-21
316
-184

skipif mysql # not compatible
query III rowsort label-2512
SELECT ALL - 21 AS col1, 4 * + 79 col1, + MIN ( - 94 ) - 90
----
-21
316
-184

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT - 59 DIV + + ( 10 ) - + - 80 * 31 DIV - 10
----
-253

skipif mysql # not compatible
query I rowsort label-2514
SELECT - 59 / + + ( 10 ) - + - 80 * 31 / - 10
----
-253

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2515
SELECT ALL 84 DIV + COUNT( * ) + + 69
----
153

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL 84 / + COUNT ( * ) + + 69
----
153

query I rowsort
SELECT 65 * + - ( + 55 ) AS col2
----
-3575

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT ALL - 48 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - 48 / - 81
----
0

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

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

query I rowsort
SELECT ALL + 75 * 33 col1
----
2475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT 55 - + - ( - 92 ) + CAST( NULL AS SIGNED ) * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT 55 - + - ( - 92 ) + CAST ( NULL AS INTEGER ) * - 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2521
SELECT + 58 * - 53 + COUNT( * ) * + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT + 58 * - 53 + COUNT ( * ) * + - CAST ( NULL AS REAL ) AS col2
----
NULL

query II rowsort
SELECT 45, 8 AS col2
----
45
8

query I rowsort
SELECT ALL - 76 * - 87
----
6612

query I rowsort
SELECT ALL + 21 - + CASE - 21 WHEN - 2 THEN + + 59 END AS col2
----
NULL

query II rowsort
SELECT ALL - 51, 59 AS col0
----
-51
59

query I rowsort
SELECT 90 * + + 16
----
1440

query II rowsort
SELECT ALL - 25 AS col1, 52 * 83
----
-25
4316

query II rowsort
SELECT + 17 AS col0, 90 AS col1
----
17
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2529
SELECT COUNT( - ( + ( - - 84 ) ) ) - + NULLIF ( + 3, NULLIF ( + 1, - 25 * + CAST( + 54 AS SIGNED ) / + COUNT( * ) * - 21 + + 57 ) ) + CAST( NULL AS SIGNED ) + AVG ( - 24 ) * - - 85 / + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT COUNT ( - ( + ( - - 84 ) ) ) - + NULLIF ( + 3, NULLIF ( + 1, - 25 * + CAST ( + 54 AS INTEGER ) / + COUNT ( * ) * - 21 + + 57 ) ) + CAST ( NULL AS INTEGER ) + AVG ( - 24 ) * - - 85 / + 47 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2530
SELECT 80 * + + 58 AS col2, - 33 DIV + 51
----
4640
0

skipif mysql # not compatible
query II rowsort label-2530
SELECT 80 * + + 58 AS col2, - 33 / + 51
----
4640
0

query I rowsort
SELECT 15 * - - 17 * - 31 * - 62 AS col1
----
490110

onlyif mysql # DIV for integer division: 
query I rowsort label-2532
SELECT ALL 64 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL 64 / + 93
----
0

query I rowsort
SELECT DISTINCT - 66 * 90
----
-5940

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT + COUNT( * ) * + 23 * - 65
----
-1495

skipif mysql # not compatible
query I rowsort label-2536
SELECT + COUNT ( * ) * + 23 * - 65
----
-1495

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT ALL - 22 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL - 22 / + 35
----
0

query II rowsort
SELECT 87, 74 AS col1
----
87
74

query II rowsort
SELECT - + 92, 6 AS col0
----
-92
6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2541
SELECT + COALESCE ( + COALESCE ( - ( - + 53 ), + 68 + + + ( - + 20 ) ), - 38 DIV - 33, + - 52 * + - COUNT( * ) + - - ( + - COUNT( * ) ) + + 86 * 22 ) + 49 * + 29 * + ( 68 ) AS col2
----
96681

skipif mysql # not compatible
query I rowsort label-2541
SELECT + COALESCE ( + COALESCE ( - ( - + 53 ), + 68 + + + ( - + 20 ) ), - 38 / - 33, + - 52 * + - COUNT ( * ) + - - ( + - COUNT ( * ) ) + + 86 * 22 ) + 49 * + 29 * + ( 68 ) AS col2
----
96681

query II rowsort
SELECT - + 15 col1, 45 col1
----
-15
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2543
SELECT ALL CASE WHEN + 48 = NULL THEN + 85 END + - 95 * + CASE - 82 WHEN - 13 THEN NULL WHEN AVG ( + 5 ) * 5 + + 28 THEN NULL WHEN 90 * - 76 * - 90 * + - 44 * - 71 THEN + CASE + CAST( + 77 AS SIGNED ) WHEN - + 77 * ( 4 ) * 65 THEN NULL ELSE - MAX( + + 86 ) END ELSE CAST( - 85 AS SIGNED ) * - + 92 + + - COALESCE ( - 39, - 62 ) * - ( 70 ) END, + 65 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-2543
SELECT ALL CASE WHEN + 48 = NULL THEN + 85 END + - 95 * + CASE - 82 WHEN - 13 THEN NULL WHEN AVG ( + 5 ) * 5 + + 28 THEN NULL WHEN 90 * - 76 * - 90 * + - 44 * - 71 THEN + CASE + CAST ( + 77 AS INTEGER ) WHEN - + 77 * ( 4 ) * 65 THEN NULL ELSE - MAX ( + + 86 ) END ELSE CAST ( - 85 AS INTEGER ) * - + 92 + + - COALESCE ( - 39, - 62 ) * - ( 70 ) END, + 65 AS col0
----
NULL
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT - 20 + + CAST( NULL AS SIGNED ) * 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT - 20 + + CAST ( NULL AS INTEGER ) * 57 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT 48 + - - COUNT( 97 )
----
49

skipif mysql # not compatible
query I rowsort label-2546
SELECT 48 + - - COUNT ( 97 )
----
49

query II rowsort
SELECT DISTINCT 35 col0, 71
----
35
71

query I rowsort
SELECT - 61 + - - 1 AS col1
----
-60

query I rowsort
SELECT ALL + 45 + - COALESCE ( - - 98, 48, 9 ) * 41 * - 74 col1
----
297377

query I rowsort
SELECT DISTINCT + 23 + + + ( - + 75 )
----
-52

query I rowsort
SELECT ALL - 65 + - ( 24 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT COUNT( * ) + - 78 * + 16 + - + ( - + 25 ) AS col2
----
-1222

skipif mysql # not compatible
query I rowsort label-2552
SELECT COUNT ( * ) + - 78 * + 16 + - + ( - + 25 ) AS col2
----
-1222

query I rowsort
SELECT 65 + + 34 * - + 4 + + 15 * - - CASE + 65 WHEN - - 77 + + + 25 + 8 + + + 54 THEN NULL WHEN - 97 THEN - 43 * - 25 ELSE 30 END
----
379

query I rowsort
SELECT DISTINCT - 61 * - 66 col2
----
4026

query I rowsort
SELECT ALL - 52 + + 69
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT + 35 * + ( + COUNT( * ) ) + + 17 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-2557
SELECT + 35 * + ( + COUNT ( * ) ) + + 17 AS col0
----
52

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

query II rowsort
SELECT 71 * - 60 AS col1, - 71 - + + 63 - 85 + - - 43
----
-4260
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-2560
SELECT ALL + 8 DIV + 7
----
1

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL + 8 / + 7
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2561
SELECT 8 DIV - 23 - - 85 col2
----
85

skipif mysql # not compatible
query I rowsort label-2561
SELECT 8 / - 23 - - 85 col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT ALL + 17 DIV + 72 * - 67 * 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + 17 / + 72 * - 67 * 65 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2563
SELECT DISTINCT + 99 DIV + + 17, 37 AS col1
----
5
37

skipif mysql # not compatible
query II rowsort label-2563
SELECT DISTINCT + 99 / + + 17, 37 AS col1
----
5
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2564
SELECT CAST( NULL AS DECIMAL ) * + MIN( - + 84 ) + + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT CAST ( NULL AS REAL ) * + MIN ( - + 84 ) + + 9 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2566
SELECT 86 + - - 21 AS col1, CAST( NULL AS SIGNED ) col1
----
107
NULL

skipif mysql # not compatible
query II rowsort label-2566
SELECT 86 + - - 21 AS col1, CAST ( NULL AS INTEGER ) col1
----
107
NULL

query I rowsort
SELECT DISTINCT - ( + 87 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-2568
SELECT ALL - 18 * + 94 AS col1, + 99 * MIN( - 12 ) + - MAX( ALL + 31 ) AS col1
----
-1692
-1219

skipif mysql # not compatible
query II rowsort label-2568
SELECT ALL - 18 * + 94 AS col1, + 99 * MIN ( - 12 ) + - MAX ( ALL + 31 ) AS col1
----
-1692
-1219

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT 96 + - 40 * + + CASE + 75 WHEN + COUNT( * ) * + 37 + 84 THEN NULL WHEN 23 THEN NULL ELSE 34 END
----
-1264

skipif mysql # not compatible
query I rowsort label-2569
SELECT 96 + - 40 * + + CASE + 75 WHEN + COUNT ( * ) * + 37 + 84 THEN NULL WHEN 23 THEN NULL ELSE 34 END
----
-1264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT DISTINCT - + CAST( - ( - COUNT( * ) ) AS SIGNED ) * - 4 * 20 * - 44
----
-3520

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) * - 4 * 20 * - 44
----
-3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2571
SELECT DISTINCT - - CAST( COUNT( ALL 0 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT - - CAST ( COUNT ( ALL 0 ) AS INTEGER )
----
1

query I rowsort
SELECT ALL 68 + + 46 + + 41 AS col0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT AVG ( DISTINCT + 57 ) * 25 - - ( + + 57 ) * - 18 + + NULLIF ( CASE 91 WHEN COUNT( * ) THEN ( + - 12 ) END, + 94 * + 0 + + + 20 + + - 14 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT AVG ( DISTINCT + 57 ) * 25 - - ( + + 57 ) * - 18 + + NULLIF ( CASE 91 WHEN COUNT ( * ) THEN ( + - 12 ) END, + 94 * + 0 + + + 20 + + - 14 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT DISTINCT SUM( DISTINCT + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT SUM ( DISTINCT + 49 ) AS col0
----
49

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

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

query I rowsort
SELECT 60 + 89 col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ALL + - 43 + + + COUNT( * ) + + 37 * - 61 + - 15 AS col0
----
-2314

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL + - 43 + + + COUNT ( * ) + + 37 * - 61 + - 15 AS col0
----
-2314

query I rowsort
SELECT ALL ( 97 ) col1
----
97

query I rowsort
SELECT - NULLIF ( 35, + AVG ( - + 87 ) )
----
-35

query I rowsort
SELECT ALL 84 + + ( + ( + - 32 ) )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2581
SELECT CAST( 6 AS SIGNED ) AS col0, - 97 AS col1
----
6
-97

skipif mysql # not compatible
query II rowsort label-2581
SELECT CAST ( 6 AS INTEGER ) AS col0, - 97 AS col1
----
6
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL COUNT( ALL 89 ) + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL COUNT ( ALL 89 ) + - 99
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT + CAST( - 95 AS SIGNED ) * - 72
----
6840

skipif mysql # not compatible
query I rowsort label-2583
SELECT + CAST ( - 95 AS INTEGER ) * - 72
----
6840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2584
SELECT DISTINCT - 67 + + 41 AS col0, CASE - 6 WHEN MAX( - ( - 32 ) ) * + - COUNT( * ) THEN - + 29 WHEN MAX( - - 56 ) THEN NULL END * - COUNT( * ) - + - CASE - CAST( NULL AS SIGNED ) WHEN + 72 THEN + ( + COUNT( * ) ) WHEN + 27 * + ( - + CAST( 99 AS SIGNED ) ) THEN NULL ELSE NULL END / - 98 * + + 3
----
-26
NULL

skipif mysql # not compatible
query II rowsort label-2584
SELECT DISTINCT - 67 + + 41 AS col0, CASE - 6 WHEN MAX ( - ( - 32 ) ) * + - COUNT ( * ) THEN - + 29 WHEN MAX ( - - 56 ) THEN NULL END * - COUNT ( * ) - + - CASE - CAST ( NULL AS INTEGER ) WHEN + 72 THEN + ( + COUNT ( * ) ) WHEN + 27 * + ( - + CAST ( 99 AS INTEGER ) ) THEN NULL ELSE NULL END / - 98 * + + 3
----
-26
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2585
SELECT CASE + 21 WHEN - AVG ( - 28 ) + + SUM( - - 60 ) + - - 41 THEN + - COUNT( * ) * 48 + + - COUNT( * ) END, 30 + 25 AS col0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-2585
SELECT CASE + 21 WHEN - AVG ( - 28 ) + + SUM ( - - 60 ) + - - 41 THEN + - COUNT ( * ) * 48 + + - COUNT ( * ) END, 30 + 25 AS col0
----
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT - CASE 71 WHEN + COUNT( - 52 ) THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE - 54 END
----
54

skipif mysql # not compatible
query I rowsort label-2586
SELECT - CASE 71 WHEN + COUNT ( - 52 ) THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE - 54 END
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL 61 - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL 61 - - COUNT ( * )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2588
SELECT + COUNT( ALL 52 ) - MAX( + 55 ) + 35 * + CASE - - CAST( NULL AS SIGNED ) WHEN - 11 / - + 11 * - 46 + 22 + + + ( 71 ) * - + 19 * - - CAST( - 38 AS SIGNED ) + 91 THEN - - CAST( - ( + 79 ) AS DECIMAL ) END * + CAST( NULL AS SIGNED ) * - + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT + COUNT ( ALL 52 ) - MAX ( + 55 ) + 35 * + CASE - - CAST ( NULL AS INTEGER ) WHEN - 11 / - + 11 * - 46 + 22 + + + ( 71 ) * - + 19 * - - CAST ( - 38 AS INTEGER ) + 91 THEN - - CAST ( - ( + 79 ) AS REAL ) END * + CAST ( NULL AS INTEGER ) * - + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT + ( 55 ) * + 95 + MIN( + ( + 68 ) ) AS col2
----
5293

skipif mysql # not compatible
query I rowsort label-2589
SELECT + ( 55 ) * + 95 + MIN ( + ( + 68 ) ) AS col2
----
5293

query I rowsort
SELECT + 43 * + 59 AS col2
----
2537

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

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

query I rowsort
SELECT ALL 25 - - 10
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2593
SELECT ALL 0 * + + 58 DIV 44 DIV - 34 - + + 62
----
-62

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL 0 * + + 58 / 44 / - 34 - + + 62
----
-62

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2595
SELECT CAST( NULL AS SIGNED ) / + - 32 - ( MAX( - - 76 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2595
SELECT CAST ( NULL AS INTEGER ) / + - 32 - ( MAX ( - - 76 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 54 * 8
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT - 83 * SUM( DISTINCT + NULLIF ( - - 29, + 44 * - 72 * - - 77 * - 55 * - - 62 ) ) AS col1
----
-2407

skipif mysql # not compatible
query I rowsort label-2597
SELECT - 83 * SUM ( DISTINCT + NULLIF ( - - 29, + 44 * - 72 * - - 77 * - 55 * - - 62 ) ) AS col1
----
-2407

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT + COALESCE ( + 1, 61 * + 34 + 24 * - COUNT( DISTINCT - - 80 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2598
SELECT + COALESCE ( + 1, 61 * + 34 + 24 * - COUNT ( DISTINCT - - 80 ) ) AS col0
----
1

query I rowsort
SELECT NULLIF ( + 7, - AVG ( DISTINCT 1 ) + + 81 - + 71 )
----
7

query II rowsort
SELECT + ( + 61 ) + + 14 AS col0, + 21 * + 68 AS col2
----
75
1428

onlyif mysql # DIV for integer division: 
query I rowsort label-2601
SELECT - 35 DIV + 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-2601
SELECT - 35 / + 86 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2602
SELECT - ( + 34 ) * - - 56 DIV + COUNT( * )
----
-1904

skipif mysql # not compatible
query I rowsort label-2602
SELECT - ( + 34 ) * - - 56 / + COUNT ( * )
----
-1904

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT NULLIF ( - COUNT( DISTINCT - + 16 ), - + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-2603
SELECT NULLIF ( - COUNT ( DISTINCT - + 16 ), - + 59 )
----
-1

query I rowsort
SELECT ALL - 23 * - + 43 + + + ( + 52 )
----
1041

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2605
SELECT ALL + COUNT( * ) DIV 91 * - COUNT( * ), 62 - + + 86 + - - 40 * - CAST( NULL AS DECIMAL ) * 32 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2605
SELECT ALL + COUNT ( * ) / 91 * - COUNT ( * ), 62 - + + 86 + - - 40 * - CAST ( NULL AS REAL ) * 32 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2606
SELECT ALL + - CASE 85 WHEN + 26 * + 89 + - 95 THEN - + 24 * - + 90 - 65 WHEN COUNT( * ) * - 2 + 77 THEN 17 + COUNT( * ) WHEN 55 + + 82 - + ( 29 ) * + 22 * + + ( - - 64 ) + + 99 * COUNT( * ) DIV + 79 THEN NULL ELSE + 33 DIV - + 11 + 98 DIV - 93 + + - 64 + - - 69 END col2
----
-1

skipif mysql # not compatible
query I rowsort label-2606
SELECT ALL + - CASE 85 WHEN + 26 * + 89 + - 95 THEN - + 24 * - + 90 - 65 WHEN COUNT ( * ) * - 2 + 77 THEN 17 + COUNT ( * ) WHEN 55 + + 82 - + ( 29 ) * + 22 * + + ( - - 64 ) + + 99 * COUNT ( * ) / + 79 THEN NULL ELSE + 33 / - + 11 + 98 / - 93 + + - 64 + - - 69 END col2
----
-1

query I rowsort
SELECT ALL + 76 * - ( + 60 ) + + 13 AS col0
----
-4547

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

skipif mysql # not compatible
query I rowsort label-2608
SELECT - + 44 / + COUNT ( * ) AS col0
----
-44

query I rowsort
SELECT DISTINCT + 22 * + - 88 * + 81 * - + 29 AS col1
----
4547664

query I rowsort
SELECT ALL - + 83 * + 19 AS col0
----
-1577

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT ALL 97 AS col0, 48 - + 3 + - 90 * - CASE + 99 WHEN 62 THEN + + 26 + + + 73 * - COUNT( * ) END + 0 AS col1
----
97
NULL

skipif mysql # not compatible
query II rowsort label-2611
SELECT ALL 97 AS col0, 48 - + 3 + - 90 * - CASE + 99 WHEN 62 THEN + + 26 + + + 73 * - COUNT ( * ) END + 0 AS col1
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL - ( - 20 ) + 41 * + COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - ( - 20 ) + 41 * + COUNT ( * ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT DISTINCT + COUNT( 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT + COUNT ( 8 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT ALL + 87 * + 98 * + - 92 AS col2, - 58 * + COUNT( * ) + 33 AS col2
----
-784392
-25

skipif mysql # not compatible
query II rowsort label-2615
SELECT ALL + 87 * + 98 * + - 92 AS col2, - 58 * + COUNT ( * ) + 33 AS col2
----
-784392
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2616
SELECT - 52 - NULLIF ( + 55, - - COUNT( * ) ) + - + CASE - 96 WHEN - + 2 THEN - NULLIF ( + AVG ( ALL 84 ), - CAST( - 93 AS SIGNED ) ) - - COUNT( * ) * CAST( NULL AS SIGNED ) / - 83 WHEN - 47 * - 80 THEN NULL END * 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT - 52 - NULLIF ( + 55, - - COUNT ( * ) ) + - + CASE - 96 WHEN - + 2 THEN - NULLIF ( + AVG ( ALL 84 ), - CAST ( - 93 AS INTEGER ) ) - - COUNT ( * ) * CAST ( NULL AS INTEGER ) / - 83 WHEN - 47 * - 80 THEN NULL END * 0 AS col2
----
NULL

query I rowsort
SELECT ALL ( - - 61 ) AS col0
----
61

query I rowsort
SELECT ALL + 37 - - 10
----
47

query I rowsort
SELECT - - 32 * + 23
----
736

query II rowsort
SELECT + 43, - 18 + + 82 col1
----
43
64

query I rowsort
SELECT - + 57 + - 74
----
-131

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2623
SELECT ALL 55 DIV - 61 * + 91 * + 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL 55 / - 61 * + 91 * + 66 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT - CASE 71 WHEN - 22 * + 6 + - 17 THEN - + CASE + + 87 WHEN - 65 THEN NULL WHEN - 57 THEN + 64 END WHEN + 82 * + 8 + + - ( - 92 ) / - 45 THEN NULL ELSE NULL END * 42 * - CASE + 2 WHEN + 50 THEN NULL ELSE + NULLIF ( + + 70, - 65 * + COUNT( * ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT - CASE 71 WHEN - 22 * + 6 + - 17 THEN - + CASE + + 87 WHEN - 65 THEN NULL WHEN - 57 THEN + 64 END WHEN + 82 * + 8 + + - ( - 92 ) / - 45 THEN NULL ELSE NULL END * 42 * - CASE + 2 WHEN + 50 THEN NULL ELSE + NULLIF ( + + 70, - 65 * + COUNT ( * ) ) END AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL COUNT( * ) * - 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL COUNT ( * ) * - 80 AS col0
----
-80

query II rowsort
SELECT ALL + 17 * + 43 AS col0, - 47 AS col0
----
731
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT + COUNT( - + 70 ) + + 42 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-2628
SELECT + COUNT ( - + 70 ) + + 42 AS col1
----
43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2630
SELECT ALL 72 * + - 74 * + CAST( 86 AS SIGNED ) AS col1, + 36 * + + 42
----
-458208
1512

skipif mysql # not compatible
query II rowsort label-2630
SELECT ALL 72 * + - 74 * + CAST ( 86 AS INTEGER ) AS col1, + 36 * + + 42
----
-458208
1512

onlyif mysql # aggregate syntax: 
query II rowsort label-2631
SELECT - 77 / + CASE - COUNT( * ) WHEN 8 * - COUNT( * ) THEN NULL WHEN - 34 / - COALESCE ( + 31, - + 81 * 87 - + 36, 65 ) + 76 THEN + 31 END, COUNT( * ) + 92 * 26 AS col0
----
NULL
2393

skipif mysql # not compatible
query II rowsort label-2631
SELECT - 77 / + CASE - COUNT ( * ) WHEN 8 * - COUNT ( * ) THEN NULL WHEN - 34 / - COALESCE ( + 31, - + 81 * 87 - + 36, 65 ) + 76 THEN + 31 END, COUNT ( * ) + 92 * 26 AS col0
----
NULL
2393

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT + 83 DIV - 58 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2632
SELECT + 83 / - 58 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2633
SELECT + 42 + 55 + + + 97 * - 80 + + 18 + - 79 + - 49 * - COUNT( * ) * + 7 - + + 29 DIV 32
----
-7381

skipif mysql # not compatible
query I rowsort label-2633
SELECT + 42 + 55 + + + 97 * - 80 + + 18 + - 79 + - 49 * - COUNT ( * ) * + 7 - + + 29 / 32
----
-7381

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2634
SELECT CAST( + 25 AS SIGNED ) AS col2, 73 AS col2
----
25
73

skipif mysql # not compatible
query II rowsort label-2634
SELECT CAST ( + 25 AS INTEGER ) AS col2, 73 AS col2
----
25
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT + 59 * + CAST( + 55 AS SIGNED )
----
3245

skipif mysql # not compatible
query I rowsort label-2635
SELECT + 59 * + CAST ( + 55 AS INTEGER )
----
3245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2636
SELECT + CASE + 63 WHEN - 92 THEN 97 ELSE + 22 + - + NULLIF ( + SUM( 95 ), + 99 ) * 35 + + 16 END + + 65 + + 89 / + - 7 * + 78 * + 20 * 32 * - CASE + 7 WHEN - 90 + - COUNT( * ) THEN - CAST( + 86 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT + CASE + 63 WHEN - 92 THEN 97 ELSE + 22 + - + NULLIF ( + SUM ( 95 ), + 99 ) * 35 + + 16 END + + 65 + + 89 / + - 7 * + 78 * + 20 * 32 * - CASE + 7 WHEN - 90 + - COUNT ( * ) THEN - CAST ( + 86 AS INTEGER ) ELSE NULL END
----
NULL

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

query II rowsort
SELECT + ( 0 ), - ( + 83 ) AS col2
----
0
-83

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2640
SELECT CAST( + 84 AS SIGNED ) AS col2, 70 AS col1
----
84
70

skipif mysql # not compatible
query II rowsort label-2640
SELECT CAST ( + 84 AS INTEGER ) AS col2, 70 AS col1
----
84
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT DISTINCT + 35 DIV + 39 * - 64 + 88 * 48
----
4224

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT + 35 / + 39 * - 64 + 88 * 48
----
4224

query II rowsort
SELECT + + 48 * + - 49 col1, ( + 59 ) + ( - + 31 ) + + 40 * + 76 * 30 AS col0
----
-2352
91228

query I rowsort
SELECT ALL + 93 * - + 99
----
-9207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2644
SELECT + + CASE + - ( - ( - - 34 ) ) WHEN - 52 + + 63 * CAST( + 17 AS DECIMAL ) THEN + SUM( ALL + - 36 ) * + MIN( DISTINCT 8 ) ELSE - + COUNT( * ) * - ( + + 50 ) - 94 + + ( + + 94 ) + - - COUNT( ALL 8 ) END * + 7 - + NULLIF ( + CAST( NULL AS SIGNED ), 51 ) - + COALESCE ( + 49, MAX( + - 27 ) - - + 11 ) - + 0 * + + NULLIF ( - + 5, - 68 ) / - COUNT( DISTINCT + 4 ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT + + CASE + - ( - ( - - 34 ) ) WHEN - 52 + + 63 * CAST ( + 17 AS REAL ) THEN + SUM ( ALL + - 36 ) * + MIN ( DISTINCT 8 ) ELSE - + COUNT ( * ) * - ( + + 50 ) - 94 + + ( + + 94 ) + - - COUNT ( ALL 8 ) END * + 7 - + NULLIF ( + CAST ( NULL AS INTEGER ), 51 ) - + COALESCE ( + 49, MAX ( + - 27 ) - - + 11 ) - + 0 * + + NULLIF ( - + 5, - 68 ) / - COUNT ( DISTINCT + 4 ) + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 0 + 28 col1
----
28

query II rowsort
SELECT 22 * + + 83 + - 30 + - 35 AS col1, 93 + - + 24
----
1761
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2647
SELECT DISTINCT - + 43 DIV + + 88 * - COALESCE ( - 22, + COUNT( * ), - 96 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT - + 43 / + + 88 * - COALESCE ( - 22, + COUNT ( * ), - 96 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT DISTINCT NULLIF ( - CASE - 67 WHEN 24 THEN NULL WHEN - COALESCE ( - COUNT( * ), + 51, + 86 + 56 * - - 85 * - CASE + 1 WHEN 95 / + - COUNT( ALL + 81 ) * 43 THEN + CAST( NULL AS SIGNED ) * - 89 + - 30 * + NULLIF ( + CASE - NULLIF ( + 71, - 54 * + 67 * - 38 ) WHEN + AVG ( ALL - + 41 ) / - 0 / + + MAX( 81 ) + + + 95 THEN 13 - - ( 16 ) WHEN 41 + - - COUNT( * ) THEN - 10 WHEN 52 * 87 + + 65 THEN NULL WHEN 12 THEN - 55 ELSE NULL END, 22 ) + - 50 WHEN - 90 THEN NULL ELSE NULL END * 85 + + 67 ) * 93 THEN 22 END, 92 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT NULLIF ( - CASE - 67 WHEN 24 THEN NULL WHEN - COALESCE ( - COUNT ( * ), + 51, + 86 + 56 * - - 85 * - CASE + 1 WHEN 95 / + - COUNT ( ALL + 81 ) * 43 THEN + CAST ( NULL AS INTEGER ) * - 89 + - 30 * + NULLIF ( + CASE - NULLIF ( + 71, - 54 * + 67 * - 38 ) WHEN + AVG ( ALL - + 41 ) / - 0 / + + MAX ( 81 ) + + + 95 THEN 13 - - ( 16 ) WHEN 41 + - - COUNT ( * ) THEN - 10 WHEN 52 * 87 + + 65 THEN NULL WHEN 12 THEN - 55 ELSE NULL END, 22 ) + - 50 WHEN - 90 THEN NULL ELSE NULL END * 85 + + 67 ) * 93 THEN 22 END, 92 ) col2
----
NULL

query I rowsort
SELECT - + 26 col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2650
SELECT + SUM( ALL - 82 ) + CAST( NULL AS SIGNED ) * + COUNT( - 74 ) AS col2, 93 AS col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-2650
SELECT + SUM ( ALL - 82 ) + CAST ( NULL AS INTEGER ) * + COUNT ( - 74 ) AS col2, 93 AS col1
----
NULL
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2652
SELECT - SUM( ALL + CAST( NULL AS DECIMAL ) ) / + 86 + 0 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT - SUM ( ALL + CAST ( NULL AS REAL ) ) / + 86 + 0 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2653
SELECT + 63 + + COALESCE ( - + 92, - 88 ) DIV 63 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2653
SELECT + 63 + + COALESCE ( - + 92, - 88 ) / 63 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT 3 * 36 - ( COUNT( * ) ) + 85 col1, 2 + - ( + + 78 ) + - + 38 AS col0
----
192
-114

skipif mysql # not compatible
query II rowsort label-2654
SELECT 3 * 36 - ( COUNT ( * ) ) + 85 col1, 2 + - ( + + 78 ) + - + 38 AS col0
----
192
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-2655
SELECT ALL - - 1 * + - 58, - COUNT( * ) col1
----
-58
-1

skipif mysql # not compatible
query II rowsort label-2655
SELECT ALL - - 1 * + - 58, - COUNT ( * ) col1
----
-58
-1

query I rowsort
SELECT 92 + + 71 + 61 AS col1
----
224

query I rowsort
SELECT ALL + 30 * CASE - - 5 WHEN 66 * + 9 + + ( - 93 ) + + 61 THEN - - NULLIF ( 82, + 52 ) + + 82 ELSE 88 END col0
----
2640

query I rowsort
SELECT ALL + 21 - + + 4
----
17

query I rowsort
SELECT 71 * 41
----
2911

query I rowsort
SELECT DISTINCT + 48 * + - NULLIF ( + - 24, - 27 * - 76 ) AS col0
----
1152

query I rowsort
SELECT ALL + 30 * 95
----
2850

query II rowsort
SELECT 80 - 28 - 58, + 27 AS col0
----
-6
27

query I rowsort
SELECT ALL + 31 + 80 AS col2
----
111

query I rowsort
SELECT 89 - 76
----
13

query I rowsort
SELECT DISTINCT 0 + - - 69 + + 41
----
110

query I rowsort
SELECT ALL - 86 + - - 34 AS col2
----
-52

query I rowsort
SELECT DISTINCT 53 * 26
----
1378

query I rowsort
SELECT ALL ( 2 ) + + 88 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT AVG ( + - CAST( NULL AS SIGNED ) ) / - + 9 + + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2669
SELECT AVG ( + - CAST ( NULL AS INTEGER ) ) / - + 9 + + 1 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2670
SELECT 71 AS col0, - CAST( NULL AS SIGNED ) / - - NULLIF ( + + 12, + 56 ) AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-2670
SELECT 71 AS col0, - CAST ( NULL AS INTEGER ) / - - NULLIF ( + + 12, + 56 ) AS col0
----
71
NULL

query I rowsort
SELECT ALL + 14 + + + 69 + NULLIF ( - 32, - 21 ) + 27 * - - 93 col0
----
2562

query I rowsort
SELECT DISTINCT - COALESCE ( - 94, - + 50 ) AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2673
SELECT - MAX( + 18 ) * + + 97 * - + CAST( + 42 AS SIGNED )
----
73332

skipif mysql # not compatible
query I rowsort label-2673
SELECT - MAX ( + 18 ) * + + 97 * - + CAST ( + 42 AS INTEGER )
----
73332

onlyif mysql # DIV for integer division: 
query I rowsort label-2674
SELECT - 71 DIV - 63
----
1

skipif mysql # not compatible
query I rowsort label-2674
SELECT - 71 / - 63
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT + NULLIF ( 29, + - 90 + - - 27 * 34 ) + + ( + - COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-2675
SELECT + NULLIF ( 29, + - 90 + - - 27 * 34 ) + + ( + - COUNT ( * ) )
----
28

query I rowsort
SELECT ALL - ( 70 ) col0
----
-70

onlyif mysql # DIV for integer division: 
query II rowsort label-2677
SELECT + + 61, - COALESCE ( - 78, + 98, - - 35 DIV + 20 ) AS col1
----
61
78

skipif mysql # not compatible
query II rowsort label-2677
SELECT + + 61, - COALESCE ( - 78, + 98, - - 35 / + 20 ) AS col1
----
61
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2678
SELECT ALL 90 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL 90 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT CASE WHEN 30 IS NULL THEN - - 74 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT - 73 - + 0 + + + COUNT( * ) - - 20 * - 27 * - - 60 AS col0
----
-32472

skipif mysql # not compatible
query I rowsort label-2680
SELECT - 73 - + 0 + + + COUNT ( * ) - - 20 * - 27 * - - 60 AS col0
----
-32472

query I rowsort
SELECT - 78 * - 12 AS col1
----
936

onlyif mysql # aggregate syntax: 
query II rowsort label-2682
SELECT + 57 * 15 * 60, 62 * SUM( - NULLIF ( + ( + 93 ), 86 ) ) * + 20 AS col2
----
51300
-115320

skipif mysql # not compatible
query II rowsort label-2682
SELECT + 57 * 15 * 60, 62 * SUM ( - NULLIF ( + ( + 93 ), 86 ) ) * + 20 AS col2
----
51300
-115320

onlyif mysql # aggregate syntax: 
query II rowsort label-2683
SELECT + 53 * + - SUM( 7 ) * - COUNT( * ) - + 69 col1, - COUNT( * )
----
302
-1

skipif mysql # not compatible
query II rowsort label-2683
SELECT + 53 * + - SUM ( 7 ) * - COUNT ( * ) - + 69 col1, - COUNT ( * )
----
302
-1

query I rowsort
SELECT 76 * + ( - 37 ) + COALESCE ( + 99, - 96, - 11 ) - + 90 + + 72 col1
----
-2731

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT - SUM( 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-2685
SELECT - SUM ( 61 )
----
-61

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

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

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

query I rowsort
SELECT 80 - + + 72 AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT 61 DIV + 31
----
1

skipif mysql # not compatible
query I rowsort label-2689
SELECT 61 / + 31
----
1

query II rowsort
SELECT 86 col2, 63
----
86
63

query I rowsort
SELECT 6 * + - 79 * + 16 * 62
----
-470208

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT + COUNT( * ) + ( + 90 )
----
91

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT + COUNT ( * ) + ( + 90 )
----
91

query I rowsort
SELECT ALL + 99 + + + 66 + 44 col0
----
209

query II rowsort
SELECT 89 + - 95 AS col1, + 49 AS col2
----
-6
49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2696
SELECT DISTINCT 95 DIV - 23
----
-4

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT 95 / - 23
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT ALL - COUNT( * ) + + 19 * - 30
----
-571

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL - COUNT ( * ) + + 19 * - 30
----
-571

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT COUNT( ALL ( 98 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT COUNT ( ALL ( 98 ) )
----
1

query I rowsort
SELECT ALL + ( 63 ) + - - 56
----
119

query II rowsort
SELECT - 66 col0, 36 AS col2
----
-66
36

query II rowsort
SELECT 34 + 72, - 14 col1
----
106
-14

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

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT SUM ( - 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT + 55 + - COUNT( * ) * + - 41 + - - COALESCE ( 69, + + 69 ) col2
----
165

skipif mysql # not compatible
query I rowsort label-2704
SELECT + 55 + - COUNT ( * ) * + - 41 + - - COALESCE ( 69, + + 69 ) col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT + 29 * - 67 + + CASE 92 WHEN NULLIF ( - 69, + 87 ) THEN NULL WHEN + 28 THEN + - COUNT( * ) - - ( + 30 ) - + 15 * - COUNT( * ) * + + ( - + 47 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT + 29 * - 67 + + CASE 92 WHEN NULLIF ( - 69, + 87 ) THEN NULL WHEN + 28 THEN + - COUNT ( * ) - - ( + 30 ) - + 15 * - COUNT ( * ) * + + ( - + 47 ) ELSE NULL END AS col2
----
NULL

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

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

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

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

query II rowsort
SELECT ALL 35 * - 78, 43 AS col0
----
-2730
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2709
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 32 - - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 32 - - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT + 18 + - COUNT( * ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2710
SELECT + 18 + - COUNT ( * ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2711
SELECT - 62 * - - COUNT( * ) + + 42 DIV 25 * - 69 AS col2
----
-131

skipif mysql # not compatible
query I rowsort label-2711
SELECT - 62 * - - COUNT ( * ) + + 42 / 25 * - 69 AS col2
----
-131

query I rowsort
SELECT + 32 * - 61
----
-1952

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

query I rowsort
SELECT - 76 * - - 71
----
-5396

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2716
SELECT - + CAST( - - 31 AS SIGNED ) + + 86 + + 47 * + 88 AS col0
----
4191

skipif mysql # not compatible
query I rowsort label-2716
SELECT - + CAST ( - - 31 AS INTEGER ) + + 86 + + 47 * + 88 AS col0
----
4191

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL + NULLIF ( + - COUNT( ALL 76 ), - - 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL + NULLIF ( + - COUNT ( ALL 76 ), - - 69 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT + + 20 * 41 DIV + - 81
----
-10

skipif mysql # not compatible
query I rowsort label-2719
SELECT + + 20 * 41 / + - 81
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-2720
SELECT 4 * 96 DIV + - 9 + + ( + 21 ) - - - 52, 37 AS col1
----
-73
37

skipif mysql # not compatible
query II rowsort label-2720
SELECT 4 * 96 / + - 9 + + ( + 21 ) - - - 52, 37 AS col1
----
-73
37

query I rowsort
SELECT + 61 * - - 43 * - - 3 AS col0
----
7869

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2723
SELECT DISTINCT 90 + + COUNT( * ) DIV 70 AS col0, + ( - - ( + 56 ) ) DIV - + 42 AS col1
----
90
-1

skipif mysql # not compatible
query II rowsort label-2723
SELECT DISTINCT 90 + + COUNT ( * ) / 70 AS col0, + ( - - ( + 56 ) ) / - + 42 AS col1
----
90
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT - COUNT( DISTINCT 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-2724
SELECT - COUNT ( DISTINCT 84 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT - ( NULLIF ( + - 62, + - MAX( DISTINCT - + 94 ) ) ) col1
----
62

skipif mysql # not compatible
query I rowsort label-2725
SELECT - ( NULLIF ( + - 62, + - MAX ( DISTINCT - + 94 ) ) ) col1
----
62

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

skipif mysql # not compatible
query I rowsort label-2726
SELECT - 19 / + 85 / - COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT ALL 42 * + COUNT( + CAST( - - 94 AS SIGNED ) ) * 43
----
1806

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL 42 * + COUNT ( + CAST ( - - 94 AS INTEGER ) ) * 43
----
1806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2728
SELECT DISTINCT 54 + + 89 - + 32 + ( CAST( - COUNT( * ) AS SIGNED ) )
----
110

skipif mysql # not compatible
query I rowsort label-2728
SELECT DISTINCT 54 + + 89 - + 32 + ( CAST ( - COUNT ( * ) AS INTEGER ) )
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-2729
SELECT DISTINCT SUM( ALL - + 76 ) AS col1, COALESCE ( + - ( 80 ), - 18, 69 )
----
-76
-80

skipif mysql # not compatible
query II rowsort label-2729
SELECT DISTINCT SUM ( ALL - + 76 ) AS col1, COALESCE ( + - ( 80 ), - 18, 69 )
----
-76
-80

query I rowsort
SELECT ALL - ( + 50 ) + - 44
----
-94

query I rowsort
SELECT - 94 + + - 65
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT - 53 DIV - 98 * - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2732
SELECT - 53 / - 98 * - 57 AS col1
----
0

query II rowsort
SELECT + 65 * + + 77 AS col2, + 53 + - + 37 AS col0
----
5005
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2734
SELECT ALL + ( - 24 ) DIV - NULLIF ( + 45, + COUNT( * ) ) * - + 78 - - ( NULLIF ( - + 25, 33 ) ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL + ( - 24 ) / - NULLIF ( + 45, + COUNT ( * ) ) * - + 78 - - ( NULLIF ( - + 25, 33 ) ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL - 69 - + + COALESCE ( 13, - COUNT( DISTINCT - 20 ) + + - 39 ) - ( COUNT( * ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL - 69 - + + COALESCE ( 13, - COUNT ( DISTINCT - 20 ) + + - 39 ) - ( COUNT ( * ) ) AS col0
----
-83

query II rowsort
SELECT - ( + + 36 ) AS col2, 73
----
-36
73

query I rowsort
SELECT + 17 - - 73 * - + 40 AS col1
----
-2903

query I rowsort
SELECT - 53 * 2 + + 87 col0
----
-19

query I rowsort
SELECT ALL 23 / - - 58 * + 90 * + CASE - AVG ( 60 ) WHEN + + ( + 60 ) THEN 36 END * 2 / - - 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL - 15 * - 21 + + COUNT( ALL - 20 )
----
316

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL - 15 * - 21 + + COUNT ( ALL - 20 )
----
316

onlyif mysql # aggregate syntax: 
query II rowsort label-2741
SELECT + - MIN( DISTINCT 55 ) AS col0, COALESCE ( - - 45, + 74 ) AS col2
----
-55
45

skipif mysql # not compatible
query II rowsort label-2741
SELECT + - MIN ( DISTINCT 55 ) AS col0, COALESCE ( - - 45, + 74 ) AS col2
----
-55
45

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2743
SELECT DISTINCT + CASE - + CAST( + 78 AS SIGNED ) WHEN - - 3 / 70 - - MAX( DISTINCT + 91 ) THEN - + ( - 23 ) + 44 WHEN + 98 + - 8 + - MAX( ALL 39 ) THEN 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT DISTINCT + CASE - + CAST ( + 78 AS INTEGER ) WHEN - - 3 / 70 - - MAX ( DISTINCT + 91 ) THEN - + ( - 23 ) + 44 WHEN + 98 + - 8 + - MAX ( ALL 39 ) THEN 34 ELSE NULL END
----
NULL

query I rowsort
SELECT + NULLIF ( + 2, 4 )
----
2

query II rowsort
SELECT + ( - - 17 ), + 74 col2
----
17
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL 81 * COUNT( * ) * 41 + + 22 AS col0
----
3343

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL 81 * COUNT ( * ) * 41 + + 22 AS col0
----
3343

onlyif mysql # DIV for integer division: 
query I rowsort label-2748
SELECT DISTINCT + - 65 DIV + 16 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT + - 65 / + 16 AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2749
SELECT ALL + ( - 17 ) * - 60 + CAST( NULL AS SIGNED ) * + - 55 - + + 40 * - COUNT( * ) + + ( + 21 ) + - ( - - 28 ) + + + ( + 83 ) * COALESCE ( + + 31, - SUM( DISTINCT + 10 ), - - 10 * - 18, 31 ) / + 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL + ( - 17 ) * - 60 + CAST ( NULL AS INTEGER ) * + - 55 - + + 40 * - COUNT ( * ) + + ( + 21 ) + - ( - - 28 ) + + + ( + 83 ) * COALESCE ( + + 31, - SUM ( DISTINCT + 10 ), - - 10 * - 18, 31 ) / + 92 AS col2
----
NULL

query I rowsort
SELECT + 67 * + + 45 col2
----
3015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2751
SELECT - CASE - 66 WHEN - - 37 * 35 THEN + 5 * MAX( ALL + 30 ) - + CAST( + + COUNT( * ) AS SIGNED ) + - 10 * + NULLIF ( + COUNT( * ), - 98 ) * + COUNT( * ) WHEN - CAST( NULL AS DECIMAL ) THEN NULL END - + - 88 - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2751
SELECT - CASE - 66 WHEN - - 37 * 35 THEN + 5 * MAX ( ALL + 30 ) - + CAST ( + + COUNT ( * ) AS INTEGER ) + - 10 * + NULLIF ( + COUNT ( * ), - 98 ) * + COUNT ( * ) WHEN - CAST ( NULL AS REAL ) THEN NULL END - + - 88 - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 43 * 1 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT + COUNT( + 90 ) * + 34 + - 64 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2753
SELECT + COUNT ( + 90 ) * + 34 + - 64 AS col1
----
-30

query I rowsort
SELECT + 37 * - + COALESCE ( + 58, 87 ) AS col2
----
-2146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT DISTINCT CAST( CAST( - - 11 AS SIGNED ) AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT CAST ( CAST ( - - 11 AS INTEGER ) AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL 17 * - + MAX( DISTINCT + NULLIF ( + 77, + 90 ) ) + - MIN( 85 ) * 65 AS col1
----
-6834

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL 17 * - + MAX ( DISTINCT + NULLIF ( + 77, + 90 ) ) + - MIN ( 85 ) * 65 AS col1
----
-6834

query I rowsort
SELECT - NULLIF ( 97, + 77 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL + 20 * + 10 + + + COUNT( * ) + 25 - - + NULLIF ( 41, 25 ) * + ( + 32 ) * + 89 AS col1
----
116994

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL + 20 * + 10 + + + COUNT ( * ) + 25 - - + NULLIF ( 41, 25 ) * + ( + 32 ) * + 89 AS col1
----
116994

query I rowsort
SELECT + 1 - 37 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ALL + 70 * + ( - 17 ) * + 53 + - MIN( - 11 )
----
-63059

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL + 70 * + ( - 17 ) * + 53 + - MIN ( - 11 )
----
-63059

query I rowsort
SELECT - 47 + - - 64 * - 35 * + 34 + - 70
----
-76277

query I rowsort
SELECT + 53 + 20 + - 36 * + 70 AS col0
----
-2447

query I rowsort
SELECT + 41 + 52 AS col0
----
93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2765
SELECT + 17 + - 31 * - + 15 * - - MIN( + 29 ) / + 91 / + + 3 + + 13 + + + COUNT( * ) + + + 60 - COALESCE ( 28, COALESCE ( + COUNT( * ), - + MAX( + + 12 ) - - - 7 + - ( + 12 ), - - 97 ) ) + 4 + CAST( NULL AS SIGNED ) + - + COUNT( * ) + - 49 + + 47 * + 51 * + 3 / CAST( + ( + 45 ) AS SIGNED ) - + - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2765
SELECT + 17 + - 31 * - + 15 * - - MIN ( + 29 ) / + 91 / + + 3 + + 13 + + + COUNT ( * ) + + + 60 - COALESCE ( 28, COALESCE ( + COUNT ( * ), - + MAX ( + + 12 ) - - - 7 + - ( + 12 ), - - 97 ) ) + 4 + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - 49 + + 47 * + 51 * + 3 / CAST ( + ( + 45 ) AS INTEGER ) - + - 46 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 70 AS col2, + 48 AS col0
----
70
48

query I rowsort
SELECT ALL CASE 15 WHEN 48 THEN + NULLIF ( - 44, + 45 ) END * 84 * + 16 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2770
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) + - 63 DIV + 5 col1
----
-12

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) + - 63 / + 5 col1
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2771
SELECT - CAST( NULL AS DECIMAL ) AS col2, 20 + - 4 * - 77 AS col1
----
NULL
328

skipif mysql # not compatible
query II rowsort label-2771
SELECT - CAST ( NULL AS REAL ) AS col2, 20 + - 4 * - 77 AS col1
----
NULL
328

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT + 17 * - 25 - - COUNT( * ) * + + 15 * - 78 AS col1
----
-1595

skipif mysql # not compatible
query I rowsort label-2772
SELECT + 17 * - 25 - - COUNT ( * ) * + + 15 * - 78 AS col1
----
-1595

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2773
SELECT ALL + 87 AS col2, ( - ( + 83 ) ) DIV 25 + - COUNT( * ) * - - COUNT( * ) + 73 * + - ( + 94 ) + 0
----
87
-6866

skipif mysql # not compatible
query II rowsort label-2773
SELECT ALL + 87 AS col2, ( - ( + 83 ) ) / 25 + - COUNT ( * ) * - - COUNT ( * ) + 73 * + - ( + 94 ) + 0
----
87
-6866

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT - COUNT( * ) + + MIN( ALL - 37 )
----
-38

skipif mysql # not compatible
query I rowsort label-2774
SELECT - COUNT ( * ) + + MIN ( ALL - 37 )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT 36 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-2775
SELECT 36 / - 77
----
0

query I rowsort
SELECT 23 + + 41
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT - 23 * MAX( - 34 ) * + 64 * 10
----
500480

skipif mysql # not compatible
query I rowsort label-2777
SELECT - 23 * MAX ( - 34 ) * + 64 * 10
----
500480

onlyif mysql # aggregate syntax: 
query II rowsort label-2778
SELECT ALL - 26 AS col1, COALESCE ( - 55, - COUNT( * ), 67 ) + - COUNT( * )
----
-26
-56

skipif mysql # not compatible
query II rowsort label-2778
SELECT ALL - 26 AS col1, COALESCE ( - 55, - COUNT ( * ), 67 ) + - COUNT ( * )
----
-26
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT + + 96 * - 58 + + 35 + COUNT( * ) AS col2
----
-5532

skipif mysql # not compatible
query I rowsort label-2779
SELECT + + 96 * - 58 + + 35 + COUNT ( * ) AS col2
----
-5532

query I rowsort
SELECT ALL 36 + - 13
----
23

query I rowsort
SELECT ALL + 98 * - 11 AS col2
----
-1078

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

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

query I rowsort
SELECT + + NULLIF ( + 41, + CASE 22 WHEN - 2 THEN 30 END ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT + CASE - 27 WHEN - - MIN( ALL + + 52 ) * 91 THEN + - 50 WHEN COUNT( * ) THEN NULL END + - 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT + CASE - 27 WHEN - - MIN ( ALL + + 52 ) * 91 THEN + - 50 WHEN COUNT ( * ) THEN NULL END + - 6 col1
----
NULL

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

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

query I rowsort
SELECT 80 + + 81
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - ( ( + + 63 ) ) * - + CASE + 75 WHEN - 85 THEN MIN( - + 36 ) + - 51 + + 78 END - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT - ( ( + + 63 ) ) * - + CASE + 75 WHEN - 85 THEN MIN ( - + 36 ) + - 51 + + 78 END - 76 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2788
SELECT 90 + + 66 AS col0, 3 * 18 * + CAST( NULL AS SIGNED )
----
156
NULL

skipif mysql # not compatible
query II rowsort label-2788
SELECT 90 + + 66 AS col0, 3 * 18 * + CAST ( NULL AS INTEGER )
----
156
NULL

query II rowsort
SELECT ALL - ( 44 ), - 75 AS col2
----
-44
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2790
SELECT DISTINCT - COUNT( 92 ) + - 77 + - + 63 + + 27 * + 32 + 0 * - - 91 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT - COUNT ( 92 ) + - 77 + - + 63 + + 27 * + 32 + 0 * - - 91 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2791
SELECT DISTINCT - 13 + CASE - 8 WHEN + - 77 * CAST( NULL AS SIGNED ) THEN + COUNT( * ) * + - COALESCE ( 16, + 97, - + 4 * + 64 * 45 + 70 ) + + COALESCE ( + NULLIF ( + ( + - COUNT( * ) ), - 96 ), - + 73 * + - 2 * - - 88 - MAX( ALL + 62 ) * - 69, 64 * 27 ) DIV + CASE + 2 WHEN + 71 THEN NULL WHEN 79 DIV 98 + + 17 * 59 * + 63 * + 36 + + 18 + - - 6 + - + CAST( - 57 AS SIGNED ) + - - 41 * - COALESCE ( - - NULLIF ( - 8, - + 60 ), - 50 ) * COUNT( * ) + 14 THEN NULL ELSE + COUNT( * ) - 59 * 88 END * COUNT( * ) ELSE + 61 END
----
48

skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT - 13 + CASE - 8 WHEN + - 77 * CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * + - COALESCE ( 16, + 97, - + 4 * + 64 * 45 + 70 ) + + COALESCE ( + NULLIF ( + ( + - COUNT ( * ) ), - 96 ), - + 73 * + - 2 * - - 88 - MAX ( ALL + 62 ) * - 69, 64 * 27 ) / + CASE + 2 WHEN + 71 THEN NULL WHEN 79 / 98 + + 17 * 59 * + 63 * + 36 + + 18 + - - 6 + - + CAST ( - 57 AS INTEGER ) + - - 41 * - COALESCE ( - - NULLIF ( - 8, - + 60 ), - 50 ) * COUNT ( * ) + 14 THEN NULL ELSE + COUNT ( * ) - 59 * 88 END * COUNT ( * ) ELSE + 61 END
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2792
SELECT ALL - CAST( - + 2 AS SIGNED ) + + 34 + - MAX( DISTINCT + 68 ) - - 59 - + + 72 * + ( - + 26 ) * - 88 * - 47 * - 7 + + COUNT( * ) * + 31 AS col1, + 65
----
-54198086
65

skipif mysql # not compatible
query II rowsort label-2792
SELECT ALL - CAST ( - + 2 AS INTEGER ) + + 34 + - MAX ( DISTINCT + 68 ) - - 59 - + + 72 * + ( - + 26 ) * - 88 * - 47 * - 7 + + COUNT ( * ) * + 31 AS col1, + 65
----
-54198086
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT 32 * + 35 * + MIN( DISTINCT 57 ) * + 52 - - CASE 16 WHEN + 90 THEN - 8 + + - 56 + + + MAX( 37 ) * + + 68 / 36 * - 73 + 14 WHEN - + 55 THEN 65 * - - 16 * 0 WHEN - 69 THEN NULL WHEN + 56 THEN + 30 * - 76 * + CAST( + - 56 AS SIGNED ) END + + - CAST( NULL AS SIGNED ) - 48 * - 96 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2793
SELECT 32 * + 35 * + MIN ( DISTINCT 57 ) * + 52 - - CASE 16 WHEN + 90 THEN - 8 + + - 56 + + + MAX ( 37 ) * + + 68 / 36 * - 73 + 14 WHEN - + 55 THEN 65 * - - 16 * 0 WHEN - 69 THEN NULL WHEN + 56 THEN + 30 * - 76 * + CAST ( + - 56 AS INTEGER ) END + + - CAST ( NULL AS INTEGER ) - 48 * - 96 col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT COUNT( * ) + - 9 * - + 40 * - 43 - 38 AS col0
----
-15517

skipif mysql # not compatible
query I rowsort label-2795
SELECT COUNT ( * ) + - 9 * - + 40 * - 43 - 38 AS col0
----
-15517

query I rowsort
SELECT DISTINCT + 23 * 74
----
1702

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT ALL + COUNT( DISTINCT - 97 ) - 65 + MAX( DISTINCT 14 ) + + 90
----
40

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL + COUNT ( DISTINCT - 97 ) - 65 + MAX ( DISTINCT 14 ) + + 90
----
40

query I rowsort
SELECT 8 * + 87
----
696

onlyif mysql # DIV for integer division: 
query I rowsort label-2799
SELECT 15 DIV + 43 * + + 82
----
0

skipif mysql # not compatible
query I rowsort label-2799
SELECT 15 / + 43 * + + 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2800
SELECT 50 / - CAST( NULL AS SIGNED ) AS col1, + MAX( + 79 ) - + + 51
----
NULL
28

skipif mysql # not compatible
query II rowsort label-2800
SELECT 50 / - CAST ( NULL AS INTEGER ) AS col1, + MAX ( + 79 ) - + + 51
----
NULL
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2801
SELECT DISTINCT 88 DIV - ( - + 66 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT 88 / - ( - + 66 ) col2
----
1

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

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

query I rowsort
SELECT - 71 + + 89 + + - 52
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT 58 * - MAX( DISTINCT - 3 ) - + - 84
----
258

skipif mysql # not compatible
query I rowsort label-2804
SELECT 58 * - MAX ( DISTINCT - 3 ) - + - 84
----
258

query I rowsort
SELECT 61 - - 45
----
106

query I rowsort
SELECT DISTINCT - - 86 + + 33 * - 54
----
-1696

query I rowsort
SELECT ALL - 85 * + 48 + - 36 AS col0
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT COUNT( ALL 46 ) - - 4 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2808
SELECT COUNT ( ALL 46 ) - - 4 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL + SUM( DISTINCT + - 54 ) * 53 * - + 2 * + 82 + - + 96 + - 34
----
469238

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL + SUM ( DISTINCT + - 54 ) * 53 * - + 2 * + 82 + - + 96 + - 34
----
469238

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT - 54 DIV - ( 78 ) * + 78 * + 45
----
0

skipif mysql # not compatible
query I rowsort label-2810
SELECT - 54 / - ( 78 ) * + 78 * + 45
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2811
SELECT DISTINCT + 44 DIV - 38 AS col2, + MAX( ALL - - 15 ) * + - 30
----
-1
-450

skipif mysql # not compatible
query II rowsort label-2811
SELECT DISTINCT + 44 / - 38 AS col2, + MAX ( ALL - - 15 ) * + - 30
----
-1
-450

onlyif mysql # aggregate syntax: 
query III rowsort label-2812
SELECT ALL - - COUNT( - 93 ) AS col2, ( + 96 ) + + ( + - 86 ) * 61 AS col0, + COUNT( DISTINCT 69 ) + - 62
----
1
-5150
-61

skipif mysql # not compatible
query III rowsort label-2812
SELECT ALL - - COUNT ( - 93 ) AS col2, ( + 96 ) + + ( + - 86 ) * 61 AS col0, + COUNT ( DISTINCT 69 ) + - 62
----
1
-5150
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT 86 * + + CASE + - 70 WHEN 67 THEN NULL WHEN + 52 + - COUNT( * ) + + 4 / - COUNT( * ) + + - 78 THEN 47 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT 86 * + + CASE + - 70 WHEN 67 THEN NULL WHEN + 52 + - COUNT ( * ) + + 4 / - COUNT ( * ) + + - 78 THEN 47 END AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2814
SELECT ALL 37 + CAST( NULL AS DECIMAL ) * + NULLIF ( 65, + 15 - - 10 - 82 ) + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL 37 + CAST ( NULL AS REAL ) * + NULLIF ( 65, + 15 - - 10 - 82 ) + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT MAX( ALL 25 )
----
25

skipif mysql # not compatible
query I rowsort label-2815
SELECT MAX ( ALL 25 )
----
25

query I rowsort
SELECT 15 * 33 AS col0
----
495

query II rowsort
SELECT ALL - 54 AS col2, + 31
----
-54
31

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

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

query I rowsort
SELECT 40 * + 65 AS col0
----
2600

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ALL - MIN( DISTINCT + 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL - MIN ( DISTINCT + 10 )
----
-10

query I rowsort
SELECT 74 * + + 13 + 83
----
1045

query I rowsort
SELECT - 35 * + 31
----
-1085

query I rowsort
SELECT - 94 + + 65 AS col2
----
-29

query I rowsort
SELECT - 70 * + ( 35 )
----
-2450

query I rowsort
SELECT - 88 - 79
----
-167

query I rowsort
SELECT ALL - 65 * 73
----
-4745

query I rowsort
SELECT + 58 + + 71 AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT - SUM( - - 23 ) - + 83 * + - 68 * + 97 + - 30 + 58 * - - 96 AS col0
----
552983

skipif mysql # not compatible
query I rowsort label-2828
SELECT - SUM ( - - 23 ) - + 83 * + - 68 * + 97 + - 30 + 58 * - - 96 AS col0
----
552983

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT - 60 + 29 DIV - + 68 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2829
SELECT - 60 + 29 / - + 68 AS col1
----
-60

query I rowsort
SELECT ALL - 83 * - + 93 AS col2
----
7719

query II rowsort
SELECT 38, 67 AS col2
----
38
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2832
SELECT - - 72 DIV - - CAST( + 12 AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2832
SELECT - - 72 / - - CAST ( + 12 AS INTEGER ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT - COALESCE ( + 6, - - COUNT( * ), + 72 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2833
SELECT - COALESCE ( + 6, - - COUNT ( * ), + 72 ) AS col2
----
-6

query I rowsort
SELECT DISTINCT + 81 + + 77
----
158

query I rowsort
SELECT ALL - 22 + + 13 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2836
SELECT DISTINCT + - 21 * + MIN( + 67 ), + 12 AS col1
----
-1407
12

skipif mysql # not compatible
query II rowsort label-2836
SELECT DISTINCT + - 21 * + MIN ( + 67 ), + 12 AS col1
----
-1407
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2837
SELECT - + 53 + - COUNT( * ) + - 43 / + COUNT( - + 33 ) + + CAST( NULL AS SIGNED ) - - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT - + 53 + - COUNT ( * ) + - 43 / + COUNT ( - + 33 ) + + CAST ( NULL AS INTEGER ) - - 22 AS col2
----
NULL

query I rowsort
SELECT ALL + 42 + + 64 + 74 * 43 + + 17 * + 24
----
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2839
SELECT + COUNT( * ) AS col2, ( + + COALESCE ( - 71, + 4 * 79 + - 78 * - MIN( ALL 80 ) + + - COUNT( * ) + - - 51 + + NULLIF ( - 20, - 42 ) * + - 10 * 84 DIV + 40 + + COUNT( * ) + + + 85 * 65 * + 49 + - + COUNT( * ) + - 85 DIV COUNT( * ) * 16 * - 17 * 13 * + 18, 31 ) ) * 61 * + 78 - NULLIF ( + + 71, - - 29 )
----
1
-337889

skipif mysql # not compatible
query II rowsort label-2839
SELECT + COUNT ( * ) AS col2, ( + + COALESCE ( - 71, + 4 * 79 + - 78 * - MIN ( ALL 80 ) + + - COUNT ( * ) + - - 51 + + NULLIF ( - 20, - 42 ) * + - 10 * 84 / + 40 + + COUNT ( * ) + + + 85 * 65 * + 49 + - + COUNT ( * ) + - 85 / COUNT ( * ) * 16 * - 17 * 13 * + 18, 31 ) ) * 61 * + 78 - NULLIF ( + + 71, - - 29 )
----
1
-337889

query II rowsort
SELECT + 58 AS col2, + 50 AS col2
----
58
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2841
SELECT DISTINCT - + COUNT( * ) + + 7 + CAST( NULL AS SIGNED ) + + 16 + - 51 * + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT - + COUNT ( * ) + + 7 + CAST ( NULL AS INTEGER ) + + 16 + - 51 * + 11
----
NULL

query I rowsort
SELECT - + 92 * - 89 * + 5
----
40940

query I rowsort
SELECT + 76 + - - 46 AS col2
----
122

query I rowsort
SELECT - - 76 col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2845
SELECT + CASE - ( + 90 ) WHEN - 89 * + 9 THEN - MAX( DISTINCT + 78 ) WHEN CASE + - CAST( NULL AS SIGNED ) WHEN 5 / - ( - + CASE - COUNT( * ) WHEN - 65 * - - 74 * + ( - + 87 ) THEN NULL WHEN + + COUNT( * ) THEN + 28 ELSE NULL END ) * 44 * + - 35 + 52 - - + NULLIF ( + 85, - CAST( + 11 AS SIGNED ) ) THEN + 50 + + 82 END THEN NULL END + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT + CASE - ( + 90 ) WHEN - 89 * + 9 THEN - MAX ( DISTINCT + 78 ) WHEN CASE + - CAST ( NULL AS INTEGER ) WHEN 5 / - ( - + CASE - COUNT ( * ) WHEN - 65 * - - 74 * + ( - + 87 ) THEN NULL WHEN + + COUNT ( * ) THEN + 28 ELSE NULL END ) * 44 * + - 35 + 52 - - + NULLIF ( + 85, - CAST ( + 11 AS INTEGER ) ) THEN + 50 + + 82 END THEN NULL END + + 47
----
NULL

query I rowsort
SELECT ALL 59 + 9 - - + 22 * + - 92 + - + 73 + - - 42 AS col0
----
-1987

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

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT + CAST ( - 11 AS INTEGER ) AS col0
----
-11

query I rowsort
SELECT - 42 * 64 * + 36
----
-96768

query I rowsort
SELECT + 87 * - NULLIF ( + + 24, 39 ) + - 11 + - 71 AS col2
----
-2170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2850
SELECT ALL - 8 * - 92 DIV COUNT( * ) * - 89 * COALESCE ( + + CAST( NULL AS SIGNED ), 53 ) + - 76 + 84 * + 83
----
-3464816

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL - 8 * - 92 / COUNT ( * ) * - 89 * COALESCE ( + + CAST ( NULL AS INTEGER ), 53 ) + - 76 + 84 * + 83
----
-3464816

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT - 88 * - - CASE + - 36 WHEN - + 89 * 86 THEN - 12 / + + 50 - + + 12 WHEN - 95 THEN 24 / MIN( 22 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT - 88 * - - CASE + - 36 WHEN - + 89 * 86 THEN - 12 / + + 50 - + + 12 WHEN - 95 THEN 24 / MIN ( 22 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 90 * - 3 * 10 * + ( + - 84 )
----
226800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2853
SELECT 68 DIV 4 * - - MIN( - 2 ) + + - 95
----
-129

skipif mysql # not compatible
query I rowsort label-2853
SELECT 68 / 4 * - - MIN ( - 2 ) + + - 95
----
-129

onlyif mysql # aggregate syntax: 
query III rowsort label-2854
SELECT ( - COUNT( * ) ) AS col1, MIN( 99 ) - COALESCE ( - - 34, - 14 + COUNT( * ), 0 ) col2, - 42 + 21 AS col2
----
-1
65
-21

skipif mysql # not compatible
query III rowsort label-2854
SELECT ( - COUNT ( * ) ) AS col1, MIN ( 99 ) - COALESCE ( - - 34, - 14 + COUNT ( * ), 0 ) col2, - 42 + 21 AS col2
----
-1
65
-21

query I rowsort
SELECT + 78 + - ( 5 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL + SUM( DISTINCT + + 29 ) * + 14 - 26 AS col0
----
380

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + SUM ( DISTINCT + + 29 ) * + 14 - 26 AS col0
----
380

query I rowsort
SELECT 41 * 65 + 71
----
2736

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

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

query I rowsort
SELECT - 7 * 22 AS col1
----
-154

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2861
SELECT + 18 + - 4 * + 53 + 86 + ( - COUNT( * ) ) AS col0, - 75 + - - 24 + 90 + - 74 + - 76 AS col1
----
-109
-111

skipif mysql # not compatible
query II rowsort label-2861
SELECT + 18 + - 4 * + 53 + 86 + ( - COUNT ( * ) ) AS col0, - 75 + - - 24 + 90 + - 74 + - 76 AS col1
----
-109
-111

query I rowsort
SELECT ALL - 6 * 46 col0
----
-276

query I rowsort
SELECT DISTINCT + 51 * - 70 * + 48 col1
----
-171360

onlyif mysql # DIV for integer division: 
query I rowsort label-2864
SELECT + 71 DIV - 14 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2864
SELECT + 71 / - 14 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT + NULLIF ( + 33, 43 + + + 66 - 65 * - + 64 + + 63 * - COUNT( + - 35 ) )
----
33

skipif mysql # not compatible
query I rowsort label-2865
SELECT + NULLIF ( + 33, 43 + + + 66 - 65 * - + 64 + + 63 * - COUNT ( + - 35 ) )
----
33

query I rowsort
SELECT - 64 + 55 col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT - COALESCE ( 61, 83 DIV 59, - + 80 ) + 6 - - 7 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2867
SELECT - COALESCE ( 61, 83 / 59, - + 80 ) + 6 - - 7 AS col1
----
-48

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT ALL CAST( NULL AS SIGNED ) + SUM( - 92 ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2873
SELECT DISTINCT + - 18 + 53 DIV COUNT( * ) DIV + 65 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT + - 18 + 53 / COUNT ( * ) / + 65 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL - + 56 * - + COALESCE ( + + COUNT( * ), - 8 )
----
56

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - + 56 * - + COALESCE ( + + COUNT ( * ), - 8 )
----
56

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

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

query I rowsort
SELECT DISTINCT + 78 * + 40 AS col2
----
3120

query I rowsort
SELECT ALL - - 43 * + - 15
----
-645

query I rowsort
SELECT - + 55 - - 60 * - ( - 1 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2879
SELECT - - 81 - 12 + - 9 * SUM( 25 ) + - 30 DIV - + COUNT( * ) + + 39
----
-87

skipif mysql # not compatible
query I rowsort label-2879
SELECT - - 81 - 12 + - 9 * SUM ( 25 ) + - 30 / - + COUNT ( * ) + + 39
----
-87

query I rowsort
SELECT ALL - 75 - + + ( - 35 ) AS col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2881
SELECT ALL - - 51 * 41 + 86 DIV + COUNT( * ) AS col0
----
2177

skipif mysql # not compatible
query I rowsort label-2881
SELECT ALL - - 51 * 41 + 86 / + COUNT ( * ) AS col0
----
2177

query I rowsort
SELECT - 63 * + 37 - - 49 * + 53 + 16 AS col1
----
282

query I rowsort
SELECT - 61 * - + 93 AS col2
----
5673

query I rowsort
SELECT + NULLIF ( + + 23, - ( - 95 ) + - 99 ) AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT + 37 - + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2885
SELECT + 37 - + COUNT ( * ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT ALL - COUNT( * ) * - 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - COUNT ( * ) * - 84 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2887
SELECT CAST( 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-2887
SELECT CAST ( 44 AS INTEGER )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2888
SELECT ALL - COALESCE ( - + 94, + 76 * - 25 * - 42 * - 23 + - 46, + - 96 * - 68 DIV 37 * CASE + 83 WHEN - MIN( DISTINCT - 20 ) THEN + - 78 + - 96 + + - 11 ELSE NULL END ) * + 52 * + 77 col1
----
376376

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - COALESCE ( - + 94, + 76 * - 25 * - 42 * - 23 + - 46, + - 96 * - 68 / 37 * CASE + 83 WHEN - MIN ( DISTINCT - 20 ) THEN + - 78 + - 96 + + - 11 ELSE NULL END ) * + 52 * + 77 col1
----
376376

query I rowsort
SELECT ALL - 10 * 71 * - + 20 * - + 70
----
-994000

query II rowsort
SELECT 24 + 32, + 14 AS col0
----
56
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT SUM( + - 96 ) * - + 8 AS col2
----
768

skipif mysql # not compatible
query I rowsort label-2891
SELECT SUM ( + - 96 ) * - + 8 AS col2
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT 33 + - 66 + SUM( DISTINCT - 95 ) * 13 AS col1
----
-1268

skipif mysql # not compatible
query I rowsort label-2892
SELECT 33 + - 66 + SUM ( DISTINCT - 95 ) * 13 AS col1
----
-1268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT ( - 1 ) / CASE CAST( NULL AS SIGNED ) WHEN + - 22 THEN - + COUNT( * ) WHEN - 90 THEN NULL END + - 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT ( - 1 ) / CASE CAST ( NULL AS INTEGER ) WHEN + - 22 THEN - + COUNT ( * ) WHEN - 90 THEN NULL END + - 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT - 99 * + - ( 62 ) + + COUNT( * )
----
6139

skipif mysql # not compatible
query I rowsort label-2894
SELECT - 99 * + - ( 62 ) + + COUNT ( * )
----
6139

query I rowsort
SELECT ( - 84 ) * 11 AS col1
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT 86 * - 19 * - ( - 42 ) + + 96 + + COUNT( * ) - - + 92 AS col2
----
-68439

skipif mysql # not compatible
query I rowsort label-2896
SELECT 86 * - 19 * - ( - 42 ) + + 96 + + COUNT ( * ) - - + 92 AS col2
----
-68439

query I rowsort
SELECT - NULLIF ( + 53, - 65 + - ( - 57 ) ) + + 41 + + 24 + 65
----
77

query I rowsort
SELECT ALL 78 + + 82 AS col1
----
160

query II rowsort
SELECT - 17 * - + 67 AS col1, 5
----
1139
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT DISTINCT + CASE 96 WHEN + 75 THEN - + 29 + - 3 * + 5 + - COUNT( * ) END * - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT + CASE 96 WHEN + 75 THEN - + 29 + - 3 * + 5 + - COUNT ( * ) END * - - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT DISTINCT + ( + - 41 ) + 43 * + 6 / + - COUNT( * ) * - 81 - CASE 69 WHEN + + 9 * + - 58 - - CASE - - 61 WHEN - 11 THEN 12 * + 13 ELSE + 87 END - + 88 THEN - 33 + COUNT( * ) WHEN + MAX( DISTINCT - 63 ) THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT + ( + - 41 ) + 43 * + 6 / + - COUNT ( * ) * - 81 - CASE 69 WHEN + + 9 * + - 58 - - CASE - - 61 WHEN - 11 THEN 12 * + 13 ELSE + 87 END - + 88 THEN - 33 + COUNT ( * ) WHEN + MAX ( DISTINCT - 63 ) THEN NULL ELSE NULL END col1
----
NULL

query II rowsort
SELECT ALL - 40 + 2 AS col0, - 70
----
-38
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2903
SELECT - + COUNT( - 28 ), 86 + - 38 AS col2
----
-1
48

skipif mysql # not compatible
query II rowsort label-2903
SELECT - + COUNT ( - 28 ), 86 + - 38 AS col2
----
-1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT - - COALESCE ( + + 41, + - 8 + + 66 + COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-2904
SELECT - - COALESCE ( + + 41, + - 8 + + 66 + COUNT ( * ) )
----
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2905
SELECT CAST( NULL AS DECIMAL ) * 70 * ( 16 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2905
SELECT CAST ( NULL AS REAL ) * 70 * ( 16 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT + 21 * - COALESCE ( ( - - SUM( 7 ) ), - 7 ) + 4
----
-143

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT + 21 * - COALESCE ( ( - - SUM ( 7 ) ), - 7 ) + 4
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT - 33 * - - 19 + MIN( DISTINCT + 42 )
----
-585

skipif mysql # not compatible
query I rowsort label-2907
SELECT - 33 * - - 19 + MIN ( DISTINCT + 42 )
----
-585

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

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL - CAST ( + 12 AS INTEGER ) AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2909
SELECT DISTINCT ( + 13 ) AS col1, + COALESCE ( - 97, COUNT( * ) ) DIV + COUNT( DISTINCT - - ( 25 ) )
----
13
-97

skipif mysql # not compatible
query II rowsort label-2909
SELECT DISTINCT ( + 13 ) AS col1, + COALESCE ( - 97, COUNT ( * ) ) / + COUNT ( DISTINCT - - ( 25 ) )
----
13
-97

query I rowsort
SELECT + 0 + 45 + + NULLIF ( + 62, - 78 ) * + - 7 AS col2
----
-389

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2911
SELECT SUM( DISTINCT + 39 ) AS col0, + CASE + 35 WHEN - - 95 * + + 39 THEN + 13 + - NULLIF ( COALESCE ( + 88, + 41 ), - COUNT( * ) ) DIV + 27 + + 66 ELSE COUNT( * ) END - 41 * + 23 col0
----
39
-942

skipif mysql # not compatible
query II rowsort label-2911
SELECT SUM ( DISTINCT + 39 ) AS col0, + CASE + 35 WHEN - - 95 * + + 39 THEN + 13 + - NULLIF ( COALESCE ( + 88, + 41 ), - COUNT ( * ) ) / + 27 + + 66 ELSE COUNT ( * ) END - 41 * + 23 col0
----
39
-942

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT 28 + + 56 + COUNT( * ) * 80 + + COUNT( * ) + - 10 AS col0
----
155

skipif mysql # not compatible
query I rowsort label-2912
SELECT 28 + + 56 + COUNT ( * ) * 80 + + COUNT ( * ) + - 10 AS col0
----
155

query I rowsort
SELECT DISTINCT + 96 * - 94 AS col0
----
-9024

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT 44 * COUNT( * ) * 81 col0
----
3564

skipif mysql # not compatible
query I rowsort label-2914
SELECT 44 * COUNT ( * ) * 81 col0
----
3564

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

skipif mysql # not compatible
query I rowsort label-2915
SELECT 15 + 69 + + COUNT ( * ) AS col2
----
85

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

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT - MAX ( 75 )
----
-75

query I rowsort
SELECT DISTINCT - 33 * + - 23 AS col2
----
759

onlyif mysql # DIV for integer division: 
query I rowsort label-2918
SELECT COALESCE ( 10, 36 ) DIV + + 71 + + 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-2918
SELECT COALESCE ( 10, 36 ) / + + 71 + + 81 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT DISTINCT - COUNT( 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT - COUNT ( 76 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT 24 DIV - + 10
----
-2

skipif mysql # not compatible
query I rowsort label-2920
SELECT 24 / - + 10
----
-2

query II rowsort
SELECT 59 + + - 73 * + 76 col2, - 99
----
-5489
-99

query I rowsort
SELECT ALL - CASE - + 44 WHEN + - ( - + 25 ) THEN - 87 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2923
SELECT ALL - 16 + + - 81 + COUNT( * ) DIV - 63
----
-97

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL - 16 + + - 81 + COUNT ( * ) / - 63
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT DISTINCT + 61 + 3 * + NULLIF ( + 53, COALESCE ( 72, - COUNT( * ), - 29 * SUM( ALL ( + 38 ) ) - ( 13 ) - - 63 ) ) AS col1
----
220

skipif mysql # not compatible
query I rowsort label-2924
SELECT DISTINCT + 61 + 3 * + NULLIF ( + 53, COALESCE ( 72, - COUNT ( * ), - 29 * SUM ( ALL ( + 38 ) ) - ( 13 ) - - 63 ) ) AS col1
----
220

query I rowsort
SELECT ALL 17 + + 40 AS col1
----
57

query I rowsort
SELECT DISTINCT + 71 * - + 99 * - 50 AS col2
----
351450

query I rowsort
SELECT ALL - + 77 + + 51 - 35 + + + 62
----
1

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

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

query I rowsort
SELECT ALL - 55 + - + 20 * - 19
----
325

onlyif mysql # aggregate syntax: 
query II rowsort label-2930
SELECT + 72 * + 69 + - - 66 + - - MAX( ALL + 61 ) + + 76 col1, 98 + + 54
----
5171
152

skipif mysql # not compatible
query II rowsort label-2930
SELECT + 72 * + 69 + - - 66 + - - MAX ( ALL + 61 ) + + 76 col1, 98 + + 54
----
5171
152

query II rowsort
SELECT + 48 AS col1, + 63 * - - ( - - 44 )
----
48
2772

query I rowsort
SELECT ( - 49 ) + + 71
----
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT - COUNT( DISTINCT - + 97 ) * + COUNT( * ) * - + 56 col0
----
56

skipif mysql # not compatible
query I rowsort label-2934
SELECT - COUNT ( DISTINCT - + 97 ) * + COUNT ( * ) * - + 56 col0
----
56

query I rowsort
SELECT 28 * + + 64 AS col1
----
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT DISTINCT - 61 - + - 84 + + 86 * 8 + COUNT( * ) * - + 24
----
687

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - 61 - + - 84 + + 86 * 8 + COUNT ( * ) * - + 24
----
687

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2937
SELECT DISTINCT - 89 AS col2, - ( 48 ) * + CAST( NULL AS SIGNED )
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-2937
SELECT DISTINCT - 89 AS col2, - ( 48 ) * + CAST ( NULL AS INTEGER )
----
-89
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - - 0, + 13 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + COUNT( * ) * + MAX( ALL 87 ) * 43
----
3741

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + COUNT ( * ) * + MAX ( ALL 87 ) * 43
----
3741

query I rowsort
SELECT DISTINCT 96 - + - 81 AS col1
----
177

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

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

query I rowsort
SELECT ALL + 67 * - 96 AS col2
----
-6432

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

skipif mysql # not compatible
query I rowsort label-2943
SELECT 86 / + - 60 + + COUNT ( * )
----
0

query I rowsort
SELECT 76 * + 9 AS col1
----
684

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

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

query I rowsort
SELECT + 19 * 69
----
1311

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT ALL NULLIF ( - 83, 10 * 61 ) + CAST( - 1 AS SIGNED ) + + 17 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL NULLIF ( - 83, 10 * 61 ) + CAST ( - 1 AS INTEGER ) + + 17 AS col0
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2948
SELECT DISTINCT + 64 + + 61 + + ( + + 63 ) DIV 76 * + - COUNT( * )
----
125

skipif mysql # not compatible
query I rowsort label-2948
SELECT DISTINCT + 64 + + 61 + + ( + + 63 ) / 76 * + - COUNT ( * )
----
125

query I rowsort
SELECT - CASE - 34 WHEN - 2 / - 29 + - 1 THEN 58 - + 11 WHEN 89 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + 47 + 30
----
77

query I rowsort
SELECT + 53 * - 95 AS col1
----
-5035

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2952
SELECT + CASE + 18 WHEN + + ( + 11 ) * - - 43 + + 63 + AVG ( ALL + - 60 ) THEN + 95 * 73 + - 85 * - CASE - - COUNT( - 62 ) WHEN - + 69 THEN + - 18 WHEN 63 THEN + 50 END * + + 64 * 73 / 23 * - + 58 - - + 7 * + 70 ELSE - 52 / + CAST( NULL AS DECIMAL ) + + + COUNT( * ) * - - 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT + CASE + 18 WHEN + + ( + 11 ) * - - 43 + + 63 + AVG ( ALL + - 60 ) THEN + 95 * 73 + - 85 * - CASE - - COUNT ( - 62 ) WHEN - + 69 THEN + - 18 WHEN 63 THEN + 50 END * + + 64 * 73 / 23 * - + 58 - - + 7 * + 70 ELSE - 52 / + CAST ( NULL AS REAL ) + + + COUNT ( * ) * - - 38 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT COALESCE ( ( - 98 ), COUNT( * ) )
----
-98

skipif mysql # not compatible
query I rowsort label-2953
SELECT COALESCE ( ( - 98 ), COUNT ( * ) )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL 94 * - + MIN( - 92 ) col2
----
8648

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL 94 * - + MIN ( - 92 ) col2
----
8648

query II rowsort
SELECT ALL 88 * + 74 col1, - 81 AS col0
----
6512
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT 47 * MIN( ALL + 15 ) - - 55 + + + COUNT( ALL - 31 )
----
761

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT 47 * MIN ( ALL + 15 ) - - 55 + + + COUNT ( ALL - 31 )
----
761

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2957
SELECT DISTINCT + 75 * 76, CAST( + 43 AS SIGNED ) AS col1
----
5700
43

skipif mysql # not compatible
query II rowsort label-2957
SELECT DISTINCT + 75 * 76, CAST ( + 43 AS INTEGER ) AS col1
----
5700
43

onlyif mysql # DIV for integer division: 
query II rowsort label-2958
SELECT ALL - - 41 DIV - 64 * + ( 43 ) AS col0, - 49 AS col2
----
0
-49

skipif mysql # not compatible
query II rowsort label-2958
SELECT ALL - - 41 / - 64 * + ( 43 ) AS col0, - 49 AS col2
----
0
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-2959
SELECT - ( - 72 ) DIV - + 69 - - 62
----
61

skipif mysql # not compatible
query I rowsort label-2959
SELECT - ( - 72 ) / - + 69 - - 62
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2960
SELECT SUM( 57 ) * + 3 * NULLIF ( + 17, - COUNT( * ) * - - CASE - COUNT( * ) WHEN + - 77 / - + COUNT( + 4 ) THEN NULL WHEN + COUNT( * ) THEN 99 ELSE - 87 * CASE + 53 WHEN + ( - - NULLIF ( + 74, - 33 * + + COUNT( * ) / + 50 + - 99 ) ) * - ( 32 ) * ( + 47 ) * + - ( - 48 ) + + 59 + + 59 THEN NULL WHEN CAST( NULL AS SIGNED ) + + + 18 THEN NULL ELSE + 21 END * 6 END - + + 56 ) + 33 + + - ( + - COUNT( * ) ) + + 87, + 37 AS col0
----
3028
37

skipif mysql # not compatible
query II rowsort label-2960
SELECT SUM ( 57 ) * + 3 * NULLIF ( + 17, - COUNT ( * ) * - - CASE - COUNT ( * ) WHEN + - 77 / - + COUNT ( + 4 ) THEN NULL WHEN + COUNT ( * ) THEN 99 ELSE - 87 * CASE + 53 WHEN + ( - - NULLIF ( + 74, - 33 * + + COUNT ( * ) / + 50 + - 99 ) ) * - ( 32 ) * ( + 47 ) * + - ( - 48 ) + + 59 + + 59 THEN NULL WHEN CAST ( NULL AS INTEGER ) + + + 18 THEN NULL ELSE + 21 END * 6 END - + + 56 ) + 33 + + - ( + - COUNT ( * ) ) + + 87, + 37 AS col0
----
3028
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2961
SELECT DISTINCT - 99 * + 4 DIV COUNT( * ) * - 39 * 92 * - - 90 - + + 42 * - 60 * - 27 AS col0
----
127808280

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - 99 * + 4 / COUNT ( * ) * - 39 * 92 * - - 90 - + + 42 * - 60 * - 27 AS col0
----
127808280

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

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

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

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

query I rowsort
SELECT + 29 + 58
----
87

query I rowsort
SELECT ALL + 11 col2
----
11

query I rowsort
SELECT DISTINCT - - 94 * - 38 AS col1
----
-3572

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT - 82 DIV 42 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2967
SELECT - 82 / 42 col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT + - 11 * - + 63 AS col0, COUNT( * ) + - MIN( - + 79 ) col0
----
693
80

skipif mysql # not compatible
query II rowsort label-2968
SELECT + - 11 * - + 63 AS col0, COUNT ( * ) + - MIN ( - + 79 ) col0
----
693
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2970
SELECT ALL 14 DIV + + 40
----
0

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL 14 / + + 40
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT + 19 DIV + 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2971
SELECT + 19 / + 21 AS col1
----
0

query I rowsort
SELECT ALL - 78 + + - 60
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2973
SELECT ALL + COALESCE ( - COUNT( * ), + NULLIF ( - 74, + COUNT( * ) ), + COUNT( * ) DIV + COUNT( * ) - 15 + 27 + - + 1, + CAST( NULL AS SIGNED ) ) + - + ( 27 )
----
-28

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL + COALESCE ( - COUNT ( * ), + NULLIF ( - 74, + COUNT ( * ) ), + COUNT ( * ) / + COUNT ( * ) - 15 + 27 + - + 1, + CAST ( NULL AS INTEGER ) ) + - + ( 27 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2974
SELECT DISTINCT CAST( CAST( MAX( + 98 ) AS SIGNED ) AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT CAST ( CAST ( MAX ( + 98 ) AS INTEGER ) AS INTEGER )
----
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2975
SELECT ALL 78 DIV - - CAST( 63 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL 78 / - - CAST ( 63 AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + 89 * - - 69 * 6
----
36846

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT + NULLIF ( + - COUNT( * ), 35 - COUNT( * ) ) + + NULLIF ( + + 29, SUM( - + 61 ) - 89 * - - COUNT( * ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2977
SELECT + NULLIF ( + - COUNT ( * ), 35 - COUNT ( * ) ) + + NULLIF ( + + 29, SUM ( - + 61 ) - 89 * - - COUNT ( * ) ) AS col0
----
28

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

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

query I rowsort
SELECT ALL 48 + + - 79 AS col2
----
-31

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2982
SELECT ALL 18 DIV + + 5 * 1 - - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL 18 / + + 5 * 1 - - - COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT CAST( - 50 AS SIGNED ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2983
SELECT CAST ( - 50 AS INTEGER ) AS col1
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT + 34 * - CAST( NULL AS SIGNED ) * 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT + 34 * - CAST ( NULL AS INTEGER ) * 60 AS col0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT ALL 58 DIV COALESCE ( 94, 96 - + 52 * - 14 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL 58 / COALESCE ( 94, 96 - + 52 * - 14 ) AS col1
----
0

query I rowsort
SELECT + 64 * + 37
----
2368

query I rowsort
SELECT - 48 * 58 + ( 57 )
----
-2727

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT + 98 * - COUNT( + 3 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2990
SELECT + 98 * - COUNT ( + 3 ) AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2991
SELECT - 4 * CASE SUM( ALL 47 ) WHEN ( COUNT( * ) ) THEN NULL WHEN 82 / - CAST( NULL AS SIGNED ) THEN - 50 * - COUNT( * ) WHEN COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT - 4 * CASE SUM ( ALL 47 ) WHEN ( COUNT ( * ) ) THEN NULL WHEN 82 / - CAST ( NULL AS INTEGER ) THEN - 50 * - COUNT ( * ) WHEN COUNT ( * ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT ( - CASE 58 WHEN - 93 - 38 THEN COUNT( * ) - COUNT( * ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT ( - CASE 58 WHEN - 93 - 38 THEN COUNT ( * ) - COUNT ( * ) ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL - 81 * 3 col2
----
-243

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2994
SELECT ALL + CASE 73 WHEN + COALESCE ( + 73, + ( ( 28 ) ) * + CAST( - 48 AS SIGNED ) ) * - 30 + 93 * 4 THEN CAST( 52 AS DECIMAL ) + - 21 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + CASE 73 WHEN + COALESCE ( + 73, + ( ( 28 ) ) * + CAST ( - 48 AS INTEGER ) ) * - 30 + 93 * 4 THEN CAST ( 52 AS REAL ) + - 21 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 57 * + ( 93 )
----
5301

query I rowsort
SELECT - 68 * 60 AS col1
----
-4080

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

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

query I rowsort
SELECT + 74 * + 53
----
3922

query I rowsort
SELECT + NULLIF ( 87, NULLIF ( 42, 29 * + 31 ) ) * + 74 AS col0
----
6438

onlyif mysql # DIV for integer division: 
query I rowsort label-3000
SELECT ALL + 54 DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL + 54 / + 51
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3001
SELECT - 56 DIV + 36
----
-1

skipif mysql # not compatible
query I rowsort label-3001
SELECT - 56 / + 36
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT - 14 * NULLIF ( 11 * 99, + COUNT( * ) * - 10 ) col0
----
-15246

skipif mysql # not compatible
query I rowsort label-3002
SELECT - 14 * NULLIF ( 11 * 99, + COUNT ( * ) * - 10 ) col0
----
-15246

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

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

query I rowsort
SELECT DISTINCT - ( ( - 17 ) ) + 14
----
31

query I rowsort
SELECT 28 * - 8
----
-224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT ALL - CASE ( 2 ) WHEN + 67 * 86 THEN COUNT( DISTINCT 5 ) * 17 + CAST( - 83 AS SIGNED ) WHEN + ( COUNT( * ) ) / 99 THEN ( - 98 ) WHEN 94 THEN NULL END + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL - CASE ( 2 ) WHEN + 67 * 86 THEN COUNT ( DISTINCT 5 ) * 17 + CAST ( - 83 AS INTEGER ) WHEN + ( COUNT ( * ) ) / 99 THEN ( - 98 ) WHEN 94 THEN NULL END + 21
----
NULL

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

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

query I rowsort
SELECT ALL 66 + - 54
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT 17 + SUM( ALL 16 + ( - 34 + 25 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3009
SELECT 17 + SUM ( ALL 16 + ( - 34 + 25 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT 53 * MAX( 73 ) col1
----
3869

skipif mysql # not compatible
query I rowsort label-3010
SELECT 53 * MAX ( 73 ) col1
----
3869

query I rowsort
SELECT 59 + + 72 * - 7
----
-445

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL + MIN( 40 ) + 68 * + 39
----
2692

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL + MIN ( 40 ) + 68 * + 39
----
2692

query I rowsort
SELECT ALL - 29 + COALESCE ( - 32, + 3 ) * 53
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT - COUNT( * ) - + 85 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT - COUNT ( * ) - + 85 AS col2
----
-86

query I rowsort
SELECT 68 * + 34
----
2312

query I rowsort
SELECT ALL 94 * - 85
----
-7990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3018
SELECT DISTINCT + 3 DIV COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT + 3 / COUNT ( * ) AS col2
----
3

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

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

query I rowsort
SELECT ALL 58 * + 51 AS col0
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL 17 * COUNT( * ) col1
----
17

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL 17 * COUNT ( * ) col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT DISTINCT SUM( + ( - 76 ) ) * 98
----
-7448

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT SUM ( + ( - 76 ) ) * 98
----
-7448

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

query I rowsort
SELECT 13 * - 86
----
-1118

query I rowsort
SELECT DISTINCT + 4 * + ( 91 + 34 )
----
500

query I rowsort
SELECT + 84 - 60
----
24

query I rowsort
SELECT 74 * + 21
----
1554

query I rowsort
SELECT ALL - - 58 AS col0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3029
SELECT 66 DIV + ( 79 + 66 ) + 76 * - 94 AS col1
----
-7144

skipif mysql # not compatible
query I rowsort label-3029
SELECT 66 / + ( 79 + 66 ) + 76 * - 94 AS col1
----
-7144

query I rowsort
SELECT + + ( + 58 ) col1
----
58

query I rowsort
SELECT + 41 + - 24 col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3032
SELECT ALL - CAST( 23 AS SIGNED ) + + 77
----
54

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - CAST ( 23 AS INTEGER ) + + 77
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT DISTINCT - 22 DIV 2 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT - 22 / 2 AS col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT 54 DIV - 1 col0
----
-54

skipif mysql # not compatible
query I rowsort label-3034
SELECT 54 / - 1 col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT CAST( + 18 AS SIGNED ) + - 61 col2
----
-43

skipif mysql # not compatible
query I rowsort label-3035
SELECT CAST ( + 18 AS INTEGER ) + - 61 col2
----
-43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT DISTINCT 43 + CAST( + 74 - - 58 * 85 AS SIGNED ) * 34 AS col0
----
170179

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT 43 + CAST ( + 74 - - 58 * 85 AS INTEGER ) * 34 AS col0
----
170179

query I rowsort
SELECT ALL 47 + 91
----
138

query I rowsort
SELECT ALL + - 27 + 95
----
68

query I rowsort
SELECT ALL 61 + 76 AS col0
----
137

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

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

query I rowsort
SELECT ALL 78 * + 38 * + 19
----
56316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3043
SELECT NULLIF ( - - 40, + COUNT( * ) * - 58 ) DIV + 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3043
SELECT NULLIF ( - - 40, + COUNT ( * ) * - 58 ) / + 65 AS col0
----
0

query I rowsort
SELECT 53 + - - 90 AS col2
----
143

query I rowsort
SELECT DISTINCT + ( + - 85 ) + - 60 AS col2
----
-145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT 72 + - + SUM( - 77 ) + 40 * - 31
----
-1091

skipif mysql # not compatible
query I rowsort label-3047
SELECT 72 + - + SUM ( - 77 ) + 40 * - 31
----
-1091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL - 98 - + 94 + 89 * + CAST( + 96 AS SIGNED ) AS col0
----
8352

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL - 98 - + 94 + 89 * + CAST ( + 96 AS INTEGER ) AS col0
----
8352

query I rowsort
SELECT 78 * + - ( 9 )
----
-702

query I rowsort
SELECT ALL + 25 * - 14 AS col0
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT 84 - + NULLIF ( NULLIF ( + 2, - COUNT( * ) * 6 ), 70 ) * 94
----
-104

skipif mysql # not compatible
query I rowsort label-3051
SELECT 84 - + NULLIF ( NULLIF ( + 2, - COUNT ( * ) * 6 ), 70 ) * 94
----
-104

query I rowsort
SELECT DISTINCT + 16 * 15
----
240

query I rowsort
SELECT ALL + 98 * - + 61 col0
----
-5978

query I rowsort
SELECT 68 * 37 AS col1
----
2516

query I rowsort
SELECT 74 + 63 + - 42
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT DISTINCT MIN( DISTINCT - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT MIN ( DISTINCT - 81 )
----
-81

query I rowsort
SELECT + - 51 * - 41 - - 46 + 56 AS col0
----
2193

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3058
SELECT - COALESCE ( 57, - 85 + - COUNT( * ) * - 49 ) / ( ( + 78 ) * CASE + 88 - - 26 * + 87 WHEN ( COALESCE ( - 93, 74 / 30 ) ) + + 73 THEN 57 + 42 WHEN - 17 THEN COALESCE ( + 3, COUNT( * ) * CAST( + 65 AS DECIMAL ), COUNT( * ) / - 76 + + ( NULLIF ( + 38, + 63 * + COUNT( * ) + COUNT( * ) ) ) * 47, 68 * + COUNT( * ) ) + - 86 WHEN 96 THEN NULL END ) + - CASE + 29 WHEN + 92 THEN 27 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT - COALESCE ( 57, - 85 + - COUNT ( * ) * - 49 ) / ( ( + 78 ) * CASE + 88 - - 26 * + 87 WHEN ( COALESCE ( - 93, 74 / 30 ) ) + + 73 THEN 57 + 42 WHEN - 17 THEN COALESCE ( + 3, COUNT ( * ) * CAST ( + 65 AS REAL ), COUNT ( * ) / - 76 + + ( NULLIF ( + 38, + 63 * + COUNT ( * ) + COUNT ( * ) ) ) * 47, 68 * + COUNT ( * ) ) + - 86 WHEN 96 THEN NULL END ) + - CASE + 29 WHEN + 92 THEN 27 ELSE NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT - 58 * - - 10 + 29
----
-551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT DISTINCT + CASE WHEN ( + CAST( NULL AS SIGNED ) ) >= ( 18 ) THEN - 39 ELSE 59 END * 45
----
2655

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT + CASE WHEN ( + CAST ( NULL AS INTEGER ) ) >= ( 18 ) THEN - 39 ELSE 59 END * 45
----
2655

query I rowsort
SELECT DISTINCT + + 68 * - 34 + 34 * + 94
----
884

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3063
SELECT + COUNT( * ) * + NULLIF ( 58, - CAST( NULL AS DECIMAL ) - + 34 ) DIV 51 + 89
----
90

skipif mysql # not compatible
query I rowsort label-3063
SELECT + COUNT ( * ) * + NULLIF ( 58, - CAST ( NULL AS REAL ) - + 34 ) / 51 + 89
----
90

query I rowsort
SELECT ALL + + ( - 0 ) * + 26 + 8
----
8

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

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

query I rowsort
SELECT + + 45 col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3067
SELECT ALL + COALESCE ( + + 60, 11 * NULLIF ( + 51 DIV 73, - 37 + 67 * + 86 ) ) * COUNT( * ) + - COUNT( * ) * ( + CAST( 0 AS SIGNED ) * + 81 - + 33 * + 77 ) AS col0
----
2601

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + COALESCE ( + + 60, 11 * NULLIF ( + 51 / 73, - 37 + 67 * + 86 ) ) * COUNT ( * ) + - COUNT ( * ) * ( + CAST ( 0 AS INTEGER ) * + 81 - + 33 * + 77 ) AS col0
----
2601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3068
SELECT DISTINCT + ( - - COALESCE ( - 38, - AVG ( ALL + 57 ) DIV COUNT( * ) ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + ( - - COALESCE ( - 38, - AVG ( ALL + 57 ) / COUNT ( * ) ) ) AS col1
----
-38

query I rowsort
SELECT + - 88 * - + 90 + ( - 42 + - 76 ) AS col0
----
7802

query I rowsort
SELECT DISTINCT ( 48 ) + + 12 AS col0
----
60

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

skipif mysql # not compatible
query I rowsort label-3071
SELECT + MAX ( - 4 )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT + COALESCE ( - 41, + 76 ) DIV 41 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3072
SELECT + COALESCE ( - 41, + 76 ) / 41 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT ALL ( - MIN( ALL + 53 ) ) - 32
----
-85

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL ( - MIN ( ALL + 53 ) ) - 32
----
-85

query I rowsort
SELECT + 37 * - - 43
----
1591

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT SUM( ALL - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-3075
SELECT SUM ( ALL - 77 )
----
-77

query I rowsort
SELECT DISTINCT 48 * ( - 27 )
----
-1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3077
SELECT 29 * 99 * - 50 / + CAST( NULL AS SIGNED ) - + NULLIF ( + 33, 38 + - COUNT( * ) * 37 ) * ( 6 * - 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT 29 * 99 * - 50 / + CAST ( NULL AS INTEGER ) - + NULLIF ( + 33, 38 + - COUNT ( * ) * 37 ) * ( 6 * - 49 )
----
NULL

query II rowsort
SELECT - 28 AS col1, + 72 + - - 94 AS col2
----
-28
166

query I rowsort
SELECT 20 * - 18 + + 39 + 90
----
-231

query I rowsort
SELECT DISTINCT 42 - 28 * - + 25
----
742

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3081
SELECT DISTINCT 34 AS col0, - ( 11 ) * + CAST( 93 * - 80 AS SIGNED ) AS col1
----
34
81840

skipif mysql # not compatible
query II rowsort label-3081
SELECT DISTINCT 34 AS col0, - ( 11 ) * + CAST ( 93 * - 80 AS INTEGER ) AS col1
----
34
81840

query I rowsort
SELECT - COALESCE ( 72, + 82 + ( 57 ) )
----
-72

query I rowsort
SELECT ALL 47 * 36 AS col0
----
1692

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3084
SELECT - CAST( + - CAST( - + CAST( + ( NULLIF ( + 92, + COALESCE ( 93, 37 * 49, - 46 - 71 * 88 ) * - 18 ) ) AS SIGNED ) AS DECIMAL ) AS SIGNED ) + + 67
----
-25

skipif mysql # not compatible
query I rowsort label-3084
SELECT - CAST ( + - CAST ( - + CAST ( + ( NULLIF ( + 92, + COALESCE ( 93, 37 * 49, - 46 - 71 * 88 ) * - 18 ) ) AS INTEGER ) AS REAL ) AS INTEGER ) + + 67
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3085
SELECT DISTINCT 98, + NULLIF ( - - CAST( NULL AS SIGNED ), + 38 + - ( - 84 ) * - 1 ) * + 0 AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-3085
SELECT DISTINCT 98, + NULLIF ( - - CAST ( NULL AS INTEGER ), + 38 + - ( - 84 ) * - 1 ) * + 0 AS col1
----
98
NULL

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

skipif mysql # not compatible
query I rowsort label-3086
SELECT - 29 / - - COUNT ( * ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT ALL - 58 DIV + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL - 58 / + 65 AS col2
----
0

query I rowsort
SELECT + 41 * 62 col2
----
2542

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

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

skipif mysql # not compatible
query I rowsort label-3090
SELECT - 5 * COUNT ( * ) / - 31 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT DISTINCT COALESCE ( - ( 58 ), + 44 - 47, + 89 * SUM( - 16 * - 66 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT COALESCE ( - ( 58 ), + 44 - 47, + 89 * SUM ( - 16 * - 66 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT - 76 + + + COALESCE ( - NULLIF ( + ( + 62 ), 24 ), - COALESCE ( - COUNT( * ), + COUNT( * ) + 98, 66 * + 10 ) * 83 )
----
-138

skipif mysql # not compatible
query I rowsort label-3092
SELECT - 76 + + + COALESCE ( - NULLIF ( + ( + 62 ), 24 ), - COALESCE ( - COUNT ( * ), + COUNT ( * ) + 98, 66 * + 10 ) * 83 )
----
-138

query II rowsort
SELECT 6, ( + 26 ) AS col2
----
6
26

query II rowsort
SELECT ALL 51, - 16 AS col1
----
51
-16

query I rowsort
SELECT ALL + - 27 * 27
----
-729

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

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

query I rowsort
SELECT ALL + 4 + - + 38
----
-34

query I rowsort
SELECT DISTINCT - 46 + + 20 * + 73 AS col1
----
1414

query I rowsort
SELECT - NULLIF ( - 16, - 15 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT DISTINCT + + 60 + CASE + - 71 WHEN 71 THEN - MIN( DISTINCT 16 ) END / + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT + + 60 + CASE + - 71 WHEN 71 THEN - MIN ( DISTINCT 16 ) END / + 93
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3101
SELECT ALL + 54 DIV - 94 + - + 64 - 70 * - 10 AS col2
----
636

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL + 54 / - 94 + - + 64 - 70 * - 10 AS col2
----
636

query I rowsort
SELECT ALL + - 35 * 46 AS col1
----
-1610

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

query I rowsort
SELECT - 80 * 24 AS col1
----
-1920

query I rowsort
SELECT - 19 - - - 58
----
-77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT ALL - + 25 / - 88 + - AVG ( - 86 ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL - + 25 / - 88 + - AVG ( - 86 ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT - 14 * - COUNT( * ) - - 12
----
26

skipif mysql # not compatible
query I rowsort label-3108
SELECT - 14 * - COUNT ( * ) - - 12
----
26

query II rowsort
SELECT + + 81, - 71 - 99 col0
----
81
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT ALL + + 94 * + - 2 + + + COUNT( ALL ( 50 ) ) + - 10
----
-197

skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + + 94 * + - 2 + + + COUNT ( ALL ( 50 ) ) + - 10
----
-197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3111
SELECT MAX( DISTINCT - CAST( - 34 AS SIGNED ) )
----
34

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3112
SELECT DISTINCT - CASE CAST( - 84 AS DECIMAL ) WHEN 40 * 93 + + COUNT( * ) THEN NULL ELSE - 40 * + NULLIF ( - COUNT( * ) * 20, 44 + ( - COALESCE ( ( + ( - COUNT( + NULLIF ( - 23, 29 * 48 + - 42 ) ) ) ), + 36 - - CAST( + ( 87 ) AS SIGNED ) * + 28 ) ) * 38 ) END * + 41 - CASE 48 - CAST( - CAST( NULL AS SIGNED ) - COUNT( * ) * + 93 AS DECIMAL ) WHEN - COUNT( * ) THEN NULL WHEN + SUM( - 82 ) + AVG ( 40 + 81 ) THEN 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT - CASE CAST ( - 84 AS REAL ) WHEN 40 * 93 + + COUNT ( * ) THEN NULL ELSE - 40 * + NULLIF ( - COUNT ( * ) * 20, 44 + ( - COALESCE ( ( + ( - COUNT ( + NULLIF ( - 23, 29 * 48 + - 42 ) ) ) ), + 36 - - CAST ( + ( 87 ) AS INTEGER ) * + 28 ) ) * 38 ) END * + 41 - CASE 48 - CAST ( - CAST ( NULL AS INTEGER ) - COUNT ( * ) * + 93 AS REAL ) WHEN - COUNT ( * ) THEN NULL WHEN + SUM ( - 82 ) + AVG ( 40 + 81 ) THEN 12 END
----
NULL

query I rowsort
SELECT - 26 + - 96 - 75
----
-197

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

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

query I rowsort
SELECT - 39 + - 83 * - 30
----
2451

query II rowsort
SELECT + 71 AS col1, + 72 + + 30 * 66 AS col2
----
71
2052

onlyif mysql # DIV for integer division: 
query I rowsort label-3117
SELECT - ( - - 69 ) DIV + 46
----
-1

skipif mysql # not compatible
query I rowsort label-3117
SELECT - ( - - 69 ) / + 46
----
-1

query I rowsort
SELECT + 43 * - 52 AS col2
----
-2236

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT DISTINCT 49 * + 51 * - COUNT( * ) AS col1
----
-2499

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT 49 * + 51 * - COUNT ( * ) AS col1
----
-2499

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT ALL 8 * 88 DIV 40 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL 8 * 88 / 40 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT - COUNT( * ) + + 14 * + 56 AS col2
----
783

skipif mysql # not compatible
query I rowsort label-3121
SELECT - COUNT ( * ) + + 14 * + 56 AS col2
----
783

query I rowsort
SELECT + ( - 39 ) * - ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT COALESCE ( + 5, + 11 * 11 + + 66 ) * 19 + COUNT( * ) * + 27
----
122

skipif mysql # not compatible
query I rowsort label-3123
SELECT COALESCE ( + 5, + 11 * 11 + + 66 ) * 19 + COUNT ( * ) * + 27
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT ALL + ( + + CAST( - - 9 AS SIGNED ) ) * - 91 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + ( + + CAST ( - - 9 AS INTEGER ) ) * - 91 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT DISTINCT + NULLIF ( + - 86, + 23 - + CAST( + 27 AS SIGNED ) + + 82 / + ( 71 ) ) * + 43 AS col0
----
-3698

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT + NULLIF ( + - 86, + 23 - + CAST ( + 27 AS INTEGER ) + + 82 / + ( 71 ) ) * + 43 AS col0
----
-3698

query I rowsort
SELECT + ( - - 92 ) * - 15 AS col2
----
-1380

query I rowsort
SELECT ALL + 25 * 66
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT MAX( DISTINCT + ( - 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-3128
SELECT MAX ( DISTINCT + ( - 91 ) )
----
-91

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

skipif mysql # not compatible
query I rowsort label-3129
SELECT + CAST ( NULL AS INTEGER ) + 57 + + + 68 + - ( 40 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT - COALESCE ( - + COUNT( ALL - - 13 ), + 35 + - 21 * - ( - 68 * - 74 ) ) * CASE 51 WHEN + 95 THEN ( - COUNT( * ) ) + - 94 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT - COALESCE ( - + COUNT ( ALL - - 13 ), + 35 + - 21 * - ( - 68 * - 74 ) ) * CASE 51 WHEN + 95 THEN ( - COUNT ( * ) ) + - 94 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 71 * 66 * 51 * - 39 + + ( 36 + + 65 )
----
-9320353

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

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

query II rowsort
SELECT ALL 94 * - + 50, 21 * - 25 * 38 AS col1
----
-4700
-19950

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL MIN( DISTINCT - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL MIN ( DISTINCT - 38 ) AS col0
----
-38

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

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

query I rowsort
SELECT ALL 99 + - - ( + 41 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT DISTINCT CASE - - NULLIF ( - 15, - 96 * + ( 54 * - COUNT( * ) + 73 ) ) WHEN 22 THEN NULL ELSE 20 END AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT CASE - - NULLIF ( - 15, - 96 * + ( 54 * - COUNT ( * ) + 73 ) ) WHEN 22 THEN NULL ELSE 20 END AS col0
----
20

query I rowsort
SELECT DISTINCT 34 + + 78
----
112

query I rowsort
SELECT DISTINCT + 17 + + 22 AS col0
----
39

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

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

query I rowsort
SELECT + 50 + + 1 AS col1
----
51

query I rowsort
SELECT DISTINCT - 42 + 61 - 72 * + 7 * 12 - 69
----
-6098

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3144
SELECT ALL - 92 + 49 DIV - 82 * ( + 69 ) + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL - 92 + 49 / - 82 * ( + 69 ) + COUNT ( * )
----
-91

query I rowsort
SELECT ALL - COALESCE ( - 7, 62 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL - 1 + + 74 + 4 + - + COUNT( * ) * ( SUM( DISTINCT + 21 ) )
----
56

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL - 1 + + 74 + 4 + - + COUNT ( * ) * ( SUM ( DISTINCT + 21 ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT - - COUNT( * ) * - 54 * + 61 + + COUNT( ALL 97 ) AS col1
----
-3293

skipif mysql # not compatible
query I rowsort label-3147
SELECT - - COUNT ( * ) * - 54 * + 61 + + COUNT ( ALL 97 ) AS col1
----
-3293

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT ALL 13 + - ( - - 39 ) + + 35 DIV 51
----
-26

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL 13 + - ( - - 39 ) + + 35 / 51
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT DISTINCT + - 58 * - 73 + + COUNT( + 91 ) + - 49 * - 1
----
4284

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT + - 58 * - 73 + + COUNT ( + 91 ) + - 49 * - 1
----
4284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3150
SELECT - COUNT( - 36 ) * + + COUNT( + 27 ) DIV + 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3150
SELECT - COUNT ( - 36 ) * + + COUNT ( + 27 ) / + 27 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL - - SUM( DISTINCT - - 50 ) - - 38 * + + COUNT( * ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL - - SUM ( DISTINCT - - 50 ) - - 38 * + + COUNT ( * ) AS col1
----
88

query I rowsort
SELECT DISTINCT - COALESCE ( 0, - 64 ) * NULLIF ( + 77, 52 * 32 ) * 93 col1
----
0

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

skipif mysql # not compatible
query I rowsort label-3153
SELECT - COUNT ( * ) * 99
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT + 24 * 4 + - COUNT( * ) + + 13 * + 37
----
576

skipif mysql # not compatible
query I rowsort label-3154
SELECT + 24 * 4 + - COUNT ( * ) + + 13 * + 37
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL - ( SUM( 20 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL - ( SUM ( 20 ) )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3156
SELECT 68 DIV - 58 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3156
SELECT 68 / - 58 AS col2
----
-1

query I rowsort
SELECT 52 * 54 AS col0
----
2808

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT ALL - 66 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL - 66 / - 70
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3159
SELECT 58 DIV COUNT( * ) * 10 AS col0
----
580

skipif mysql # not compatible
query I rowsort label-3159
SELECT 58 / COUNT ( * ) * 10 AS col0
----
580

onlyif mysql # DIV for integer division: 
query I rowsort label-3160
SELECT 94 DIV + - 87
----
-1

skipif mysql # not compatible
query I rowsort label-3160
SELECT 94 / + - 87
----
-1

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

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

query I rowsort
SELECT NULLIF ( ( 2 ), 40 ) * - 83 * 35 + - ( - 72 )
----
-5738

query I rowsort
SELECT ALL + 94 + 72 AS col2
----
166

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

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

query I rowsort
SELECT DISTINCT + 12 + + - 38 + - 46 * - 94 + + 39 - NULLIF ( 15, 65 ) * - 30 * - 7
----
1187

query II rowsort
SELECT 39, 75 * - + 99 AS col1
----
39
-7425

query II rowsort
SELECT 93 * - - 77 * + - 83, 21 AS col0
----
-594363
21

onlyif mysql # DIV for integer division: 
query II rowsort label-3168
SELECT ALL + 40 + - 72 + + 57, 90 DIV - 63 AS col2
----
25
-1

skipif mysql # not compatible
query II rowsort label-3168
SELECT ALL + 40 + - 72 + + 57, 90 / - 63 AS col2
----
25
-1

query II rowsort
SELECT DISTINCT 9 AS col2, - 41 * 83
----
9
-3403

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT DISTINCT + COUNT( * ) + + 78
----
79

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT + COUNT ( * ) + + 78
----
79

query I rowsort
SELECT 19 + - 91 * - - 1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT MAX( - 53 ) - - 89 + + CASE 0 WHEN 62 THEN - 97 END * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT MAX ( - 53 ) - - 89 + + CASE 0 WHEN 62 THEN - 97 END * 75
----
NULL

query I rowsort
SELECT ALL - 96 + - 69 AS col1
----
-165

query I rowsort
SELECT ALL + 22 * - 96 col2
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT - ( - 84 ) * + CASE 23 WHEN - + ( - 87 ) * 4 THEN - MAX( 57 ) WHEN - COUNT( - 32 ) * - 85 THEN NULL ELSE - 61 + 51 END AS col2
----
-840

skipif mysql # not compatible
query I rowsort label-3175
SELECT - ( - 84 ) * + CASE 23 WHEN - + ( - 87 ) * 4 THEN - MAX ( 57 ) WHEN - COUNT ( - 32 ) * - 85 THEN NULL ELSE - 61 + 51 END AS col2
----
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT 74 + - - ( + 22 ) - 23 + 9 DIV + 66 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3176
SELECT 74 + - - ( + 22 ) - 23 + 9 / + 66 AS col1
----
73

query II rowsort
SELECT DISTINCT ( + 87 ) - - + 19 AS col0, 46 AS col1
----
106
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT COALESCE ( + COUNT( * ), + 62 + - + 57 * 24 + + 11, - 75 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3178
SELECT COALESCE ( + COUNT ( * ), + 62 + - + 57 * 24 + + 11, - 75 ) col2
----
1

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

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

query I rowsort
SELECT DISTINCT 2 - + + 38
----
-36

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

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL - COUNT ( DISTINCT + 19 ) AS col1
----
-1

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

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

query I rowsort
SELECT ALL 25 * 76 - + 41
----
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT MAX( 72 )
----
72

skipif mysql # not compatible
query I rowsort label-3184
SELECT MAX ( 72 )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3185
SELECT DISTINCT - - COUNT( * ) AS col2, + 84 * - + 62
----
1
-5208

skipif mysql # not compatible
query II rowsort label-3185
SELECT DISTINCT - - COUNT ( * ) AS col2, + 84 * - + 62
----
1
-5208

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

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

query I rowsort
SELECT - 17 - - + 50 AS col0
----
33

query I rowsort
SELECT 23 * 79 + - 94
----
1723

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT ALL - 45 DIV - - 8 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL - 45 / - - 8 AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3190
SELECT - - 44 * + 4 + 71 / - 9 * + + CASE 16 WHEN + SUM( - 29 ) THEN 58 ELSE + 90 END * - 28 - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT - - 44 * + 4 + 71 / - 9 * + + CASE 16 WHEN + SUM ( - 29 ) THEN 58 ELSE + 90 END * - 28 - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT ALL ( + 55 ) - 34 DIV - 27
----
56

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL ( + 55 ) - 34 / - 27
----
56

query II rowsort
SELECT ALL - 98 AS col2, 17
----
-98
17

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

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

query I rowsort
SELECT 72 * - 15 AS col1
----
-1080

query I rowsort
SELECT 78 - - + 67
----
145

query II rowsort
SELECT ALL - 13 col1, 41 * + + 43 - + - 53 AS col2
----
-13
1816

query I rowsort
SELECT ( + 34 ) + + 29 - 41
----
22

query I rowsort
SELECT + 69 * + 43 * 7 - + 24
----
20745

query I rowsort
SELECT DISTINCT - 80 * - - 71
----
-5680

query I rowsort
SELECT 97 * 35 AS col2
----
3395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3201
SELECT ALL - 71 + 72 - CAST( 4 AS SIGNED ) * - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL - 71 + 72 - CAST ( 4 AS INTEGER ) * - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT MAX( ALL + NULLIF ( + ( - 64 ), 3 - 88 + 17 ) ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-3202
SELECT MAX ( ALL + NULLIF ( + ( - 64 ), 3 - 88 + 17 ) ) AS col0
----
-64

query II rowsort
SELECT + 37, + 74 AS col0
----
37
74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL + COUNT( * ) + 87 + + CASE - 29 WHEN - - 65 THEN - 92 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL + COUNT ( * ) + 87 + + CASE - 29 WHEN - - 65 THEN - 92 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL - ( 27 ) AS col1, ( + 44 ) col1
----
-27
44

query I rowsort
SELECT DISTINCT 24 + - ( - 71 )
----
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT DISTINCT - CAST( 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT - CAST ( 54 AS INTEGER )
----
-54

query I rowsort
SELECT 97 + ( - - 12 ) AS col1
----
109

query I rowsort
SELECT ALL - 8 + + + 56
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3212
SELECT DISTINCT - COUNT( * ), + CASE 34 WHEN - 57 + - 74 * - 96 THEN NULL WHEN + 91 + + 74 THEN + 34 + 9 * ( + 98 ) END AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3212
SELECT DISTINCT - COUNT ( * ), + CASE 34 WHEN - 57 + - 74 * - 96 THEN NULL WHEN + 91 + + 74 THEN + 34 + 9 * ( + 98 ) END AS col0
----
-1
NULL

query I rowsort
SELECT ALL - ( + 76 ) + - 21
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT 12 + 85 * + - MIN( DISTINCT + + 71 )
----
-6023

skipif mysql # not compatible
query I rowsort label-3214
SELECT 12 + 85 * + - MIN ( DISTINCT + + 71 )
----
-6023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3215
SELECT 19 DIV + NULLIF ( + + 72, MIN( - 71 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3215
SELECT 19 / + NULLIF ( + + 72, MIN ( - 71 ) ) AS col2
----
0

query I rowsort
SELECT - 23 + 92
----
69

query II rowsort
SELECT - 13 AS col2, - NULLIF ( + 89, + 31 ) AS col2
----
-13
-89

query I rowsort
SELECT ALL + 67 + 67
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3219
SELECT - - CAST( - + 65 AS SIGNED ) * - 82 * + - 96 - 38 AS col0
----
-511718

skipif mysql # not compatible
query I rowsort label-3219
SELECT - - CAST ( - + 65 AS INTEGER ) * - 82 * + - 96 - 38 AS col0
----
-511718

query II rowsort
SELECT - 31, 53 * - 24 col1
----
-31
-1272

query I rowsort
SELECT - 85 + - 10 * + 19 AS col1
----
-275

onlyif mysql # aggregate syntax: 
query II rowsort label-3222
SELECT ALL - - 16 * + COUNT( * ), 51 * + + 12 col2
----
16
612

skipif mysql # not compatible
query II rowsort label-3222
SELECT ALL - - 16 * + COUNT ( * ), 51 * + + 12 col2
----
16
612

query I rowsort
SELECT - 99 + + ( + 25 ) + + 38 + - 31
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT - 3 / + CAST( NULL AS SIGNED ) + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3224
SELECT - 3 / + CAST ( NULL AS INTEGER ) + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL - COUNT( ALL 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL - COUNT ( ALL 83 ) AS col1
----
-1

query I rowsort
SELECT ALL + COALESCE ( + 10, 40 ) AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3227
SELECT DISTINCT - 99 - 77 + COUNT( * ) * + + 62 - + - 63 DIV CASE - MIN( DISTINCT CAST( NULL AS DECIMAL ) ) WHEN - 14 DIV 54 THEN NULL ELSE 86 END AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT - 99 - 77 + COUNT ( * ) * + + 62 - + - 63 / CASE - MIN ( DISTINCT CAST ( NULL AS REAL ) ) WHEN - 14 / 54 THEN NULL ELSE 86 END AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL CASE - COUNT( * ) WHEN SUM( + 0 ) / - ( - - COUNT( * ) ) THEN 87 WHEN 21 * 87 + 79 * + 53 THEN 68 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL CASE - COUNT ( * ) WHEN SUM ( + 0 ) / - ( - - COUNT ( * ) ) THEN 87 WHEN 21 * 87 + 79 * + 53 THEN 68 END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3230
SELECT + + 29 + + - ( + COALESCE ( 38, + COUNT( ALL + 95 ) * CAST( NULL AS SIGNED ) + ( 97 ) ) )
----
-9

skipif mysql # not compatible
query I rowsort label-3230
SELECT + + 29 + + - ( + COALESCE ( 38, + COUNT ( ALL + 95 ) * CAST ( NULL AS INTEGER ) + ( 97 ) ) )
----
-9

query I rowsort
SELECT - NULLIF ( - + 12, + + 66 ) + - 12 * 79
----
-936

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

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

query I rowsort
SELECT - 15 + - + 90 AS col2
----
-105

query II rowsort
SELECT DISTINCT 33, 3 AS col0
----
33
3

query I rowsort
SELECT ALL 59 * ( - 73 )
----
-4307

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + COUNT( * ) + ( MAX( DISTINCT + 22 ) ) + - COUNT( * ) * + 57 * 13
----
-718

skipif mysql # not compatible
query I rowsort label-3236
SELECT + COUNT ( * ) + ( MAX ( DISTINCT + 22 ) ) + - COUNT ( * ) * + 57 * 13
----
-718

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3237
SELECT ALL + 71 AS col0, CASE - 18 WHEN + 19 THEN - 32 ELSE + COUNT( * ) - + ( - 99 ) END + 14 DIV 10
----
71
101

skipif mysql # not compatible
query II rowsort label-3237
SELECT ALL + 71 AS col0, CASE - 18 WHEN + 19 THEN - 32 ELSE + COUNT ( * ) - + ( - 99 ) END + 14 / 10
----
71
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL 78 * - 69 + CASE + 23 WHEN - 73 THEN - 16 + - - CAST( 45 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL 78 * - 69 + CASE + 23 WHEN - 73 THEN - 16 + - - CAST ( 45 AS INTEGER ) END
----
NULL

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

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

query I rowsort
SELECT + 2 * + 60 * 74 + - 51
----
8829

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ALL 15 * 94 * + 2 + - - COUNT( * ) AS col0
----
2821

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL 15 * 94 * + 2 + - - COUNT ( * ) AS col0
----
2821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3242
SELECT + NULLIF ( + 92, - + CAST( 92 AS SIGNED ) ) * + COALESCE ( - 85, - - 40 * + 81, 88 ) + 76 AS col1
----
-7744

skipif mysql # not compatible
query I rowsort label-3242
SELECT + NULLIF ( + 92, - + CAST ( 92 AS INTEGER ) ) * + COALESCE ( - 85, - - 40 * + 81, 88 ) + 76 AS col1
----
-7744

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT CASE + 69 WHEN + 33 * 87 * + 70 + 61 THEN + 33 WHEN SUM( DISTINCT - ( 54 ) ) THEN NULL ELSE - 42 END AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3243
SELECT CASE + 69 WHEN + 33 * 87 * + 70 + 61 THEN + 33 WHEN SUM ( DISTINCT - ( 54 ) ) THEN NULL ELSE - 42 END AS col0
----
-42

query I rowsort
SELECT ALL + 8 * - 43 + 32 AS col0
----
-312

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3245
SELECT + CAST( 29 AS SIGNED ) DIV CAST( 61 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3245
SELECT + CAST ( 29 AS INTEGER ) / CAST ( 61 AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT + NULLIF ( - 53, NULLIF ( - + 39, + - ( - 47 ) * 60 / 34 + CAST( NULL AS SIGNED ) ) ) * + 20 AS col2
----
-1060

skipif mysql # not compatible
query I rowsort label-3246
SELECT + NULLIF ( - 53, NULLIF ( - + 39, + - ( - 47 ) * 60 / 34 + CAST ( NULL AS INTEGER ) ) ) * + 20 AS col2
----
-1060

query I rowsort
SELECT - 23 * + + 83
----
-1909

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT MIN( ALL + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-3248
SELECT MIN ( ALL + 72 )
----
72

query II rowsort
SELECT - 40 + - 42 col2, + 97 + 61 + 43 * + 58
----
-82
2652

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT - + 50 * - - 98 * + MAX( DISTINCT - 22 ) * - 86
----
-9270800

skipif mysql # not compatible
query I rowsort label-3252
SELECT - + 50 * - - 98 * + MAX ( DISTINCT - 22 ) * - 86
----
-9270800

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

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

query II rowsort
SELECT + + 81 + - 70 col0, 57 AS col1
----
11
57

query II rowsort
SELECT - ( - 73 ), - 35 col1
----
73
-35

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

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

query I rowsort
SELECT - + 0 - - 33 AS col2
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-3258
SELECT ALL + 78 * - - ( + ( + 69 ) ) * - - 16, + 97 + 53 + + 2 DIV 65 AS col2
----
86112
150

skipif mysql # not compatible
query II rowsort label-3258
SELECT ALL + 78 * - - ( + ( + 69 ) ) * - - 16, + 97 + 53 + + 2 / 65 AS col2
----
86112
150

query I rowsort
SELECT - 4 + 29 AS col1
----
25

query I rowsort
SELECT - + 48 * ( 70 )
----
-3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT ALL + COALESCE ( + CAST( 82 AS SIGNED ), - 55 ) + + NULLIF ( COALESCE ( + 64, 44 + 47 * 26, + 30 ), 63 * 15 )
----
146

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL + COALESCE ( + CAST ( 82 AS INTEGER ), - 55 ) + + NULLIF ( COALESCE ( + 64, 44 + 47 * 26, + 30 ), 63 * 15 )
----
146

query I rowsort
SELECT DISTINCT + 26 * + 13 AS col2
----
338

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT ALL - 68 + 69 + - - 21 - - ( - 12 ) * - COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - 68 + 69 + - - 21 - - ( - 12 ) * - COUNT ( * ) AS col2
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3264
SELECT - COUNT( * ) * - COALESCE ( - + 69, + COUNT( * ) + + CAST( NULL AS SIGNED ) + 47 ) * - 12
----
828

skipif mysql # not compatible
query I rowsort label-3264
SELECT - COUNT ( * ) * - COALESCE ( - + 69, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + 47 ) * - 12
----
828

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

skipif mysql # not compatible
query II rowsort label-3265
SELECT + ( + 58 ) * - COUNT ( * ) AS col2, + 58 / - COUNT ( * ) AS col0
----
-58
-58

query I rowsort
SELECT ALL + 71 + - - 83 AS col2
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-3267
SELECT ALL 42 DIV + 79 + + + 28
----
28

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL 42 / + 79 + + + 28
----
28

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT DISTINCT 5 DIV ( - 22 ) * + + 39 DIV NULLIF ( ( 46 ), + + 73 ) + + 48
----
48

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT 5 / ( - 22 ) * + + 39 / NULLIF ( ( 46 ), + + 73 ) + + 48
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT ALL COUNT( * ) * + 33 * + 18 col2, 93
----
594
93

skipif mysql # not compatible
query II rowsort label-3270
SELECT ALL COUNT ( * ) * + 33 * + 18 col2, 93
----
594
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT ( ( + + 67 ) ) DIV - ( - - 50 ) + + 43 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-3271
SELECT ( ( + + 67 ) ) / - ( - - 50 ) + + 43 AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3272
SELECT ALL 79 DIV + - NULLIF ( - - COUNT( * ), + 25 DIV - 41 ) + 67 + + 87
----
75

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL 79 / + - NULLIF ( - - COUNT ( * ), + 25 / - 41 ) + 67 + + 87
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3273
SELECT CAST( - 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-3273
SELECT CAST ( - 37 AS INTEGER )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT + 71 * - + 25 * - NULLIF ( 68, - COUNT( * ) * + - 76 )
----
120700

skipif mysql # not compatible
query I rowsort label-3274
SELECT + 71 * - + 25 * - NULLIF ( 68, - COUNT ( * ) * + - 76 )
----
120700

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3275
SELECT + ( - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) ) col0, + 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-3275
SELECT + ( - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) ) col0, + 76 AS col2
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT COUNT( * ) * ( + 0 ) + - ( - 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3276
SELECT COUNT ( * ) * ( + 0 ) + - ( - 19 ) AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3277
SELECT 8 * + CAST( NULL AS DECIMAL ) * + - MIN( DISTINCT + - 7 ) * - 16 * - + CAST( - + ( 93 ) AS DECIMAL ) + 16 * 79 - + ( 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT 8 * + CAST ( NULL AS REAL ) * + - MIN ( DISTINCT + - 7 ) * - 16 * - + CAST ( - + ( 93 ) AS REAL ) + 16 * 79 - + ( 15 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT ALL NULLIF ( - + 0, - 0 ) * - - NULLIF ( - - 99, + 89 + ( CAST( + 28 AS SIGNED ) ) + + 54 ) * 33 + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL NULLIF ( - + 0, - 0 ) * - - NULLIF ( - - 99, + 89 + ( CAST ( + 28 AS INTEGER ) ) + + 54 ) * 33 + - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT - 22 * - + MIN( DISTINCT 29 ) - 62
----
576

skipif mysql # not compatible
query I rowsort label-3279
SELECT - 22 * - + MIN ( DISTINCT 29 ) - 62
----
576

query I rowsort
SELECT ALL ( - 64 ) - - CASE - 34 WHEN - 11 * - - 87 THEN - + 93 * - - ( + 95 ) * 87 + - 47 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3281
SELECT 93 * NULLIF ( - 67, - 87 + - 40 ) DIV - 51
----
122

skipif mysql # not compatible
query I rowsort label-3281
SELECT 93 * NULLIF ( - 67, - 87 + - 40 ) / - 51
----
122

query I rowsort
SELECT 28 * 33
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT ALL COUNT( * ) - + 24 - 33 * + 67 - - + COALESCE ( + 39, + + 31 + 83 + 88 * - 13 ) AS col2
----
-2195

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL COUNT ( * ) - + 24 - 33 * + 67 - - + COALESCE ( + 39, + + 31 + 83 + 88 * - 13 ) AS col2
----
-2195

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT COUNT( * ) + - + 97 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3284
SELECT COUNT ( * ) + - + 97 AS col0
----
-96

query I rowsort
SELECT DISTINCT + 64 * 89
----
5696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3286
SELECT ALL MIN( ALL + - 21 ) - - + 57 col1, 33 + - - COALESCE ( + - 0, 57 DIV - 96 + - 30 * CAST( NULL AS SIGNED ), 69 * 56 ) AS col2
----
36
33

skipif mysql # not compatible
query II rowsort label-3286
SELECT ALL MIN ( ALL + - 21 ) - - + 57 col1, 33 + - - COALESCE ( + - 0, 57 / - 96 + - 30 * CAST ( NULL AS INTEGER ), 69 * 56 ) AS col2
----
36
33

query I rowsort
SELECT DISTINCT - - NULLIF ( + + 7, - 70 )
----
7

query I rowsort
SELECT 49 + + + 8 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT - 82 * - 89 + - + 83 * - - COUNT( * ) + + 64 * - COUNT( * ) * MIN( DISTINCT + + 69 ) AS col2
----
2799

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT - 82 * - 89 + - + 83 * - - COUNT ( * ) + + 64 * - COUNT ( * ) * MIN ( DISTINCT + + 69 ) AS col2
----
2799

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3290
SELECT - CASE - 65 WHEN COALESCE ( - 83, 69 * - CASE 66 WHEN - 61 THEN ( 41 ) * 7 WHEN - 3 * - 36 THEN NULL WHEN + 58 THEN NULL END ) / + CAST( - NULLIF ( + 61, CASE - COALESCE ( 52, - COUNT( * ), - 60 + + 99 * - 41 ) WHEN 98 THEN + 31 * + COUNT( * ) ELSE NULL END + - COUNT( * ) ) - 8 AS DECIMAL ) THEN NULL WHEN - 63 * + 56 THEN NULL ELSE 51 * - 0 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3290
SELECT - CASE - 65 WHEN COALESCE ( - 83, 69 * - CASE 66 WHEN - 61 THEN ( 41 ) * 7 WHEN - 3 * - 36 THEN NULL WHEN + 58 THEN NULL END ) / + CAST ( - NULLIF ( + 61, CASE - COALESCE ( 52, - COUNT ( * ), - 60 + + 99 * - 41 ) WHEN 98 THEN + 31 * + COUNT ( * ) ELSE NULL END + - COUNT ( * ) ) - 8 AS REAL ) THEN NULL WHEN - 63 * + 56 THEN NULL ELSE 51 * - 0 END AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3291
SELECT ALL ( - 93 ) * 62 AS col1, COUNT( + 58 )
----
-5766
1

skipif mysql # not compatible
query II rowsort label-3291
SELECT ALL ( - 93 ) * 62 AS col1, COUNT ( + 58 )
----
-5766
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT CASE + COUNT( * ) WHEN + 50 * + COUNT( * ) THEN 30 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT CASE + COUNT ( * ) WHEN + 50 * + COUNT ( * ) THEN 30 END AS col2
----
NULL

query I rowsort
SELECT 72 * 83 col0
----
5976

query I rowsort
SELECT ALL + 33 * - 98
----
-3234

query I rowsort
SELECT 59 + 98 + - 38 col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT + 97 + + COALESCE ( - 24, - + 25 + - - SUM( + 99 ), 5 * 10 ) + 95
----
168

skipif mysql # not compatible
query I rowsort label-3296
SELECT + 97 + + COALESCE ( - 24, - + 25 + - - SUM ( + 99 ), 5 * 10 ) + 95
----
168

query II rowsort
SELECT DISTINCT 95 AS col1, + 60
----
95
60

query I rowsort
SELECT ALL - 66 + - 86
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3299
SELECT ALL CAST( - - 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL CAST ( - - 79 AS INTEGER )
----
79

query II rowsort
SELECT - 74 AS col2, + 97 * + 59
----
-74
5723

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL COUNT( ALL + 49 ) + - 98 + + 96 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL COUNT ( ALL + 49 ) + - 98 + + 96 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT - CAST( + 87 AS SIGNED ) + - 18 * - 99
----
1695

skipif mysql # not compatible
query I rowsort label-3302
SELECT - CAST ( + 87 AS INTEGER ) + - 18 * - 99
----
1695

query I rowsort
SELECT 29 + + 49 + - 93 AS col0
----
-15

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

skipif mysql # not compatible
query I rowsort label-3304
SELECT 31 / - - 93
----
0

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

query I rowsort
SELECT 21 + + + 67 AS col1
----
88

query I rowsort
SELECT 68 + - - 82 AS col2
----
150

query I rowsort
SELECT 78 + + - 34 AS col1
----
44

query I rowsort
SELECT ALL 7 + + - 31 + 73 + + + 23 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL + COUNT( * ) * - COUNT( ALL 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL + COUNT ( * ) * - COUNT ( ALL 63 )
----
-1

query I rowsort
SELECT 87 + - 17 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT - NULLIF ( + + MIN( + 55 ), - 24 )
----
-55

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT - NULLIF ( + + MIN ( + 55 ), - 24 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT 40 * COALESCE ( + + 99, + 68 ) * + - 50 - + + 35 + + MAX( ALL + - 32 ) - - 0 AS col1
----
-198067

skipif mysql # not compatible
query I rowsort label-3313
SELECT 40 * COALESCE ( + + 99, + 68 ) * + - 50 - + + 35 + + MAX ( ALL + - 32 ) - - 0 AS col1
----
-198067

query II rowsort
SELECT ALL + 49 * 20, - 55 * + 85 col1
----
980
-4675

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL - 77 - - CASE 49 WHEN - 84 + + - ( + 92 ) * - 41 THEN NULL ELSE ( + - COUNT( * ) ) + NULLIF ( - ( 71 ), 51 + 30 / 42 ) END AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL - 77 - - CASE 49 WHEN - 84 + + - ( + 92 ) * - 41 THEN NULL ELSE ( + - COUNT ( * ) ) + NULLIF ( - ( 71 ), 51 + 30 / 42 ) END AS col0
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT DISTINCT - CAST( + + 43 AS SIGNED ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - CAST ( + + 43 AS INTEGER ) AS col0
----
-43

query I rowsort
SELECT 3 * 29 AS col0
----
87

query I rowsort
SELECT ( + 95 ) * - 34
----
-3230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT ALL - CASE - MIN( + - CAST( NULL AS SIGNED ) ) WHEN + 91 + ( + 31 ) + + ( + + 15 ) * 66 * 26 THEN NULL ELSE - 95 END col1
----
95

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL - CASE - MIN ( + - CAST ( NULL AS INTEGER ) ) WHEN + 91 + ( + 31 ) + + ( + + 15 ) * 66 * 26 THEN NULL ELSE - 95 END col1
----
95

query I rowsort
SELECT ALL 58 * + ( - - 42 )
----
2436

query I rowsort
SELECT 28 * - - 7 AS col2
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT - NULLIF ( - CASE + COUNT( * ) WHEN - - 5 THEN NULL WHEN + COALESCE ( - COUNT( * ), 59, COUNT( * ) ) THEN NULL WHEN - + 40 THEN - 8 * 98 END, - 57 ) / 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT - NULLIF ( - CASE + COUNT ( * ) WHEN - - 5 THEN NULL WHEN + COALESCE ( - COUNT ( * ), 59, COUNT ( * ) ) THEN NULL WHEN - + 40 THEN - 8 * 98 END, - 57 ) / 45
----
NULL

query I rowsort
SELECT DISTINCT + 55 * + 68 + + + 42 col2
----
3782

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT + - ( NULLIF ( + COUNT( ALL + - 70 ), - SUM( - + 43 ) * 10 - 83 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3324
SELECT + - ( NULLIF ( + COUNT ( ALL + - 70 ), - SUM ( - + 43 ) * 10 - 83 ) ) AS col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-3325
SELECT COUNT ( * ) * - 68
----
-68

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

query I rowsort
SELECT 95 + + 80 AS col0
----
175

query II rowsort
SELECT + 19 * + 66 AS col0, - 4
----
1254
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-3329
SELECT + 28 DIV - 21 col1, + 76
----
-1
76

skipif mysql # not compatible
query II rowsort label-3329
SELECT + 28 / - 21 col1, + 76
----
-1
76

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT + MAX( DISTINCT 62 ) - - - 23
----
39

skipif mysql # not compatible
query I rowsort label-3332
SELECT + MAX ( DISTINCT 62 ) - - - 23
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3333
SELECT ALL NULLIF ( 84, MIN( ALL 26 ) ) DIV + COUNT( * ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL NULLIF ( 84, MIN ( ALL 26 ) ) / + COUNT ( * ) AS col0
----
84

query I rowsort
SELECT ALL 39 + - 96 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT MIN( - 11 ) * - 41 AS col1
----
451

skipif mysql # not compatible
query I rowsort label-3335
SELECT MIN ( - 11 ) * - 41 AS col1
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT DISTINCT + COUNT( * ) + - + 46
----
-45

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT + COUNT ( * ) + - + 46
----
-45

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

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

query I rowsort
SELECT ALL - 35 + - + 33 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ALL - 77 * - + 96 + 34 + + + COALESCE ( - 93, COUNT( * ) + - + 99 ) + + 64 * + ( MAX( DISTINCT 52 ) )
----
10661

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL - 77 * - + 96 + 34 + + + COALESCE ( - 93, COUNT ( * ) + - + 99 ) + + 64 * + ( MAX ( DISTINCT 52 ) )
----
10661

query I rowsort
SELECT - + 92 col2
----
-92

query I rowsort
SELECT DISTINCT 54 + CASE + 14 WHEN - 4 + - 32 THEN - 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL 66 * + - ( + COALESCE ( - + 71, + COALESCE ( + 89, - NULLIF ( 79, - COUNT( * ) ), - + 55 ) ) ) AS col1
----
4686

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL 66 * + - ( + COALESCE ( - + 71, + COALESCE ( + 89, - NULLIF ( 79, - COUNT ( * ) ), - + 55 ) ) ) AS col1
----
4686

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL SUM( - 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL SUM ( - 90 ) AS col2
----
-90

query I rowsort
SELECT 6 * + 78 * - ( + 43 ) AS col2
----
-20124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT - 48 DIV 68 * - - 68 * - COALESCE ( - MIN( ALL 19 ), - 56 - + MIN( + 71 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3345
SELECT - 48 / 68 * - - 68 * - COALESCE ( - MIN ( ALL 19 ), - 56 - + MIN ( + 71 ) )
----
0

query I rowsort
SELECT ALL 53 - 99 AS col1
----
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT + MIN( ALL + 63 ) * + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-3348
SELECT + MIN ( ALL + 63 ) * + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT 45 * + 99 - - COUNT( * ) - + + 98
----
4358

skipif mysql # not compatible
query I rowsort label-3349
SELECT 45 * + 99 - - COUNT ( * ) - + + 98
----
4358

onlyif mysql # DIV for integer division: 
query I rowsort label-3350
SELECT - 17 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-3350
SELECT - 17 / + 43
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3352
SELECT DISTINCT 52 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT 52 / + 48
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3353
SELECT - 64 + - ( - + CASE - - 5 WHEN 93 * - COUNT( * ) THEN NULL WHEN - 74 DIV - 57 + - 95 + 57 + 64 * 99 + 21 DIV + COUNT( * ) THEN NULL ELSE 10 DIV - 87 END ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3353
SELECT - 64 + - ( - + CASE - - 5 WHEN 93 * - COUNT ( * ) THEN NULL WHEN - 74 / - 57 + - 95 + 57 + 64 * 99 + 21 / + COUNT ( * ) THEN NULL ELSE 10 / - 87 END ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT NULLIF ( + 5, - COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-3354
SELECT NULLIF ( + 5, - COUNT ( * ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3355
SELECT - 57 / - - 18 + + - 84 + CAST( NULL AS SIGNED ) * + CASE + 59 WHEN + 51 THEN + + COUNT( * ) WHEN + 27 THEN NULL ELSE + 61 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT - 57 / - - 18 + + - 84 + CAST ( NULL AS INTEGER ) * + CASE + 59 WHEN + 51 THEN + + COUNT ( * ) WHEN + 27 THEN NULL ELSE + 61 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT - - 93 + - + SUM( + + 71 ) + 89
----
111

skipif mysql # not compatible
query I rowsort label-3356
SELECT - - 93 + - + SUM ( + + 71 ) + 89
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT DISTINCT + SUM( - 14 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT + SUM ( - 14 ) AS col1
----
-14

query I rowsort
SELECT DISTINCT - + 35 * - + 93 - - + 0 + - 70 AS col1
----
3185

query I rowsort
SELECT - 43 + - 14 AS col1
----
-57

query I rowsort
SELECT - 6 * 63 * 49 * + + 34 * - 83 + - 53
----
52269031

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3361
SELECT DISTINCT + CAST( - 12 AS SIGNED ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT + CAST ( - 12 AS INTEGER ) AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3362
SELECT - 70 + + CAST( - - 51 AS SIGNED ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-3362
SELECT - 70 + + CAST ( - - 51 AS INTEGER ) AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT DISTINCT 14 * - 76 + + AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT 14 * - 76 + + AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - - 50 + + + CASE - 14 WHEN 78 * 67 + - MIN( DISTINCT + 88 ) + + + 63 * 79 / - 4 THEN + 84 END + CASE 63 WHEN + 93 THEN + 55 END / 19 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT - - 50 + + + CASE - 14 WHEN 78 * 67 + - MIN ( DISTINCT + 88 ) + + + 63 * 79 / - 4 THEN + 84 END + CASE 63 WHEN + 93 THEN + 55 END / 19 * 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT DISTINCT - 39 + - SUM( - - 66 ) AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT - 39 + - SUM ( - - 66 ) AS col0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3366
SELECT ALL ( - - NULLIF ( + CAST( SUM( DISTINCT + - 85 ) AS SIGNED ), + - 85 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL ( - - NULLIF ( + CAST ( SUM ( DISTINCT + - 85 ) AS INTEGER ), + - 85 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT - CASE - + 53 WHEN + - ( + COUNT( * ) ) THEN + + 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT - CASE - + 53 WHEN + - ( + COUNT ( * ) ) THEN + + 94 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + + 23 * - 22 * + 79
----
-39974

onlyif mysql # DIV for integer division: 
query I rowsort label-3369
SELECT + 86 DIV - + 32
----
-2

skipif mysql # not compatible
query I rowsort label-3369
SELECT + 86 / - + 32
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT DISTINCT ( CASE - NULLIF ( + COUNT( * ), 24 * + SUM( - 72 ) + 68 + COUNT( * ) / 52 + - 48 ) WHEN + COALESCE ( 19, + COUNT( * ) ) THEN + 88 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT ( CASE - NULLIF ( + COUNT ( * ), 24 * + SUM ( - 72 ) + 68 + COUNT ( * ) / 52 + - 48 ) WHEN + COALESCE ( 19, + COUNT ( * ) ) THEN + 88 END ) AS col0
----
NULL

query II rowsort
SELECT ALL 16 AS col1, + 70 * 16
----
16
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT - COALESCE ( COUNT( * ), + - MAX( ALL - + 23 ) + + + COUNT( * ), + 81 * - 3 + 50 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3372
SELECT - COALESCE ( COUNT ( * ), + - MAX ( ALL - + 23 ) + + + COUNT ( * ), + 81 * - 3 + 50 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3373
SELECT DISTINCT 19 - + CAST( NULL AS SIGNED ) * + 29 * - 21 * + ( + 47 ) AS col0, + 90 AS col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-3373
SELECT DISTINCT 19 - + CAST ( NULL AS INTEGER ) * + 29 * - 21 * + ( + 47 ) AS col0, + 90 AS col2
----
NULL
90

query I rowsort
SELECT + 30 * - 9 AS col2
----
-270

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

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

query I rowsort
SELECT + 48 + + 99 AS col2
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3377
SELECT ALL SUM( - + CAST( - 40 AS SIGNED ) ) - + 88 + - 3 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL SUM ( - + CAST ( - 40 AS INTEGER ) ) - + 88 + - 3 AS col2
----
-51

query I rowsort
SELECT + 24 + 44 AS col1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3379
SELECT 58 col0, COUNT( * ) * + - 22 AS col1
----
58
-22

skipif mysql # not compatible
query II rowsort label-3379
SELECT 58 col0, COUNT ( * ) * + - 22 AS col1
----
58
-22

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

query II rowsort
SELECT ALL 84 AS col0, ( ( 27 ) ) * - 3
----
84
-81

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

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

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

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

query I rowsort
SELECT DISTINCT 11 * + 60 * + 30
----
19800

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

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

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

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL COUNT ( * ) * + - 75 AS col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT CAST( - 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-3387
SELECT CAST ( - 16 AS INTEGER )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT CAST( - 17 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-3388
SELECT CAST ( - 17 AS INTEGER )
----
-17

query I rowsort
SELECT + 5 * NULLIF ( + 2, + + 41 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3390
SELECT + 3 * - 70 + - CAST( - - 42 AS SIGNED ) - - - COUNT( * ) * 31 + + 21
----
-262

skipif mysql # not compatible
query I rowsort label-3390
SELECT + 3 * - 70 + - CAST ( - - 42 AS INTEGER ) - - - COUNT ( * ) * 31 + + 21
----
-262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3391
SELECT CASE 20 WHEN + 17 + - - 39 + + 76 THEN - 89 * + NULLIF ( 98, CASE - - 59 WHEN - MIN( DISTINCT - 2 ) THEN NULL WHEN 73 THEN ( + ( CASE - ( - 8 ) WHEN 44 THEN 87 + - 20 * 2 WHEN + 21 * - 35 THEN NULL END ) ) ELSE NULL END ) + 68 WHEN CASE + 20 WHEN 56 THEN + CASE - CAST( + COUNT( * ) AS SIGNED ) WHEN 4 * - ( 82 / - MIN( DISTINCT 32 ) ) THEN 94 * + SUM( DISTINCT 18 ) ELSE - 73 END * + 50 + 25 END THEN + ( 82 ) * - 87 + 5 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3391
SELECT CASE 20 WHEN + 17 + - - 39 + + 76 THEN - 89 * + NULLIF ( 98, CASE - - 59 WHEN - MIN ( DISTINCT - 2 ) THEN NULL WHEN 73 THEN ( + ( CASE - ( - 8 ) WHEN 44 THEN 87 + - 20 * 2 WHEN + 21 * - 35 THEN NULL END ) ) ELSE NULL END ) + 68 WHEN CASE + 20 WHEN 56 THEN + CASE - CAST ( + COUNT ( * ) AS INTEGER ) WHEN 4 * - ( 82 / - MIN ( DISTINCT 32 ) ) THEN 94 * + SUM ( DISTINCT 18 ) ELSE - 73 END * + 50 + 25 END THEN + ( 82 ) * - 87 + 5 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3392
SELECT ALL + 48 / - - COUNT( * ) * CAST( NULL AS SIGNED ) + + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + 48 / - - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + - 37
----
NULL

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

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

query I rowsort
SELECT + ( - 86 ) col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3395
SELECT DISTINCT + 54 * 1 + - 12 * - NULLIF ( - + 62, + COUNT( * ) ) * ( - CAST( NULL AS SIGNED ) ) + - 64 + - 68 / - CAST( + 40 AS SIGNED ) * 21 + 26 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT + 54 * 1 + - 12 * - NULLIF ( - + 62, + COUNT ( * ) ) * ( - CAST ( NULL AS INTEGER ) ) + - 64 + - 68 / - CAST ( + 40 AS INTEGER ) * 21 + 26 * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3396
SELECT - - COALESCE ( 20, - - COUNT( * ), 19 * + - CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) ) DIV + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3396
SELECT - - COALESCE ( 20, - - COUNT ( * ), 19 * + - CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) ) / + 51 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT 21 * - + 3 + - SUM( + 2 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT 21 * - + 3 + - SUM ( + 2 ) AS col0
----
-65

query I rowsort
SELECT + + 21 + - 84 * 1 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL - COALESCE ( - + 98, + COUNT( * ), 75 ) * - - 90 * 54 * - 1
----
-476280

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - COALESCE ( - + 98, + COUNT ( * ), 75 ) * - - 90 * 54 * - 1
----
-476280

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT + COALESCE ( - 68, COUNT( * ) + + COUNT( * ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3402
SELECT + COALESCE ( - 68, COUNT ( * ) + + COUNT ( * ) ) AS col1
----
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-3403
SELECT + 98, - 55 DIV - NULLIF ( NULLIF ( 64, - 43 ), + - 57 ) AS col1
----
98
0

skipif mysql # not compatible
query II rowsort label-3403
SELECT + 98, - 55 / - NULLIF ( NULLIF ( 64, - 43 ), + - 57 ) AS col1
----
98
0

query I rowsort
SELECT ALL + 94 * - 61
----
-5734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3405
SELECT DISTINCT + COUNT( * ) * + COALESCE ( + 21, - ( - 2 ) - + 20 * 58 * 32 ) * - MIN( DISTINCT + 73 ) + CASE + COUNT( * ) WHEN 67 / + 6 + + 40 * + 72 THEN + 56 WHEN - COUNT( ALL CAST( + NULLIF ( - ( 27 ), 83 ) AS SIGNED ) ) THEN NULL END / 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT + COUNT ( * ) * + COALESCE ( + 21, - ( - 2 ) - + 20 * 58 * 32 ) * - MIN ( DISTINCT + 73 ) + CASE + COUNT ( * ) WHEN 67 / + 6 + + 40 * + 72 THEN + 56 WHEN - COUNT ( ALL CAST ( + NULLIF ( - ( 27 ), 83 ) AS INTEGER ) ) THEN NULL END / 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT COUNT( * ) - - - MIN( ALL 96 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3406
SELECT COUNT ( * ) - - - MIN ( ALL 96 ) AS col0
----
-95

query II rowsort
SELECT ALL + 90 * 59 AS col0, - 43 AS col1
----
5310
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT 87 * - CASE - ( + 82 ) WHEN + 26 - + + 64 THEN NULL WHEN 31 THEN + 20 WHEN - NULLIF ( 84, - 81 - - + 1 ) - - 14 * COUNT( * ) THEN NULL ELSE 65 END
----
-5655

skipif mysql # not compatible
query I rowsort label-3408
SELECT 87 * - CASE - ( + 82 ) WHEN + 26 - + + 64 THEN NULL WHEN 31 THEN + 20 WHEN - NULLIF ( 84, - 81 - - + 1 ) - - 14 * COUNT ( * ) THEN NULL ELSE 65 END
----
-5655

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT DISTINCT + COUNT( + 10 ) * + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT + COUNT ( + 10 ) * + - 1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3410
SELECT COUNT( * ) DIV - - 34 AS col1, + 32
----
0
32

skipif mysql # not compatible
query II rowsort label-3410
SELECT COUNT ( * ) / - - 34 AS col1, + 32
----
0
32

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3412
SELECT NULLIF ( MIN( - 49 ), 32 ) DIV + 4 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-3412
SELECT NULLIF ( MIN ( - 49 ), 32 ) / + 4 AS col2
----
-12

query II rowsort
SELECT ALL 53 + 96 AS col2, 97
----
149
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT 12 + ( - + MIN( ALL + CAST( NULL AS SIGNED ) ) ) + + 19 * - + 35 / - 6 * + - 6 * - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT 12 + ( - + MIN ( ALL + CAST ( NULL AS INTEGER ) ) ) + + 19 * - + 35 / - 6 * + - 6 * - + 27
----
NULL

query I rowsort
SELECT 21 + 87 AS col0
----
108

query I rowsort
SELECT DISTINCT 34 + - - 25 AS col2
----
59

query I rowsort
SELECT - 61 * 42 + + - 51 AS col1
----
-2613

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3420
SELECT - 52 * 45 DIV + 80 + 94 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3420
SELECT - 52 * 45 / + 80 + 94 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT + COUNT( * ) * + 69 + + 85
----
154

skipif mysql # not compatible
query I rowsort label-3421
SELECT + COUNT ( * ) * + 69 + + 85
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-3422
SELECT - MIN( ALL 87 ), 68 + + 59 * - 57 AS col1
----
-87
-3295

skipif mysql # not compatible
query II rowsort label-3422
SELECT - MIN ( ALL 87 ), 68 + + 59 * - 57 AS col1
----
-87
-3295

query I rowsort
SELECT + COALESCE ( 99, - + 50 ) col2
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3424
SELECT 11 + - MAX( 44 ) AS col1, + ( - 71 ) + - COUNT( * ) AS col0
----
-33
-72

skipif mysql # not compatible
query II rowsort label-3424
SELECT 11 + - MAX ( 44 ) AS col1, + ( - 71 ) + - COUNT ( * ) AS col0
----
-33
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT ALL COUNT( DISTINCT - 90 ) - 71
----
-70

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL COUNT ( DISTINCT - 90 ) - 71
----
-70

query I rowsort
SELECT + ( - 70 ) + - + 58
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT ALL - ( - COALESCE ( + 46, + 10 + - - COALESCE ( + - 84, - 73 + + 70 * - ( - 12 ) ) + - CAST( NULL AS SIGNED ) + + 3 ) )
----
46

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - ( - COALESCE ( + 46, + 10 + - - COALESCE ( + - 84, - 73 + + 70 * - ( - 12 ) ) + - CAST ( NULL AS INTEGER ) + + 3 ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT - - MIN( DISTINCT + 83 ) * 27 + + 14 AS col2
----
2255

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT - - MIN ( DISTINCT + 83 ) * 27 + + 14 AS col2
----
2255

query I rowsort
SELECT ALL + 29 * - COALESCE ( + 30, + - 80 ) AS col2
----
-870

query I rowsort
SELECT 21 * - + 1 AS col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT DISTINCT - CASE SUM( ALL 78 ) WHEN 75 * + CAST( 6 AS SIGNED ) * - 33 THEN 77 ELSE - + 40 * + 44 END - - 89
----
1849

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT - CASE SUM ( ALL 78 ) WHEN 75 * + CAST ( 6 AS INTEGER ) * - 33 THEN 77 ELSE - + 40 * + 44 END - - 89
----
1849

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT - COUNT( * ) + - 78 col2
----
-79

skipif mysql # not compatible
query I rowsort label-3432
SELECT - COUNT ( * ) + - 78 col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-3433
SELECT - 12 AS col0, 14 + + 6 + + COUNT( * )
----
-12
21

skipif mysql # not compatible
query II rowsort label-3433
SELECT - 12 AS col0, 14 + + 6 + + COUNT ( * )
----
-12
21

query I rowsort
SELECT 16 + - 35 AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3435
SELECT ALL 17 AS col2, + 31 * + + CAST( + - 93 AS SIGNED ) col2
----
17
-2883

skipif mysql # not compatible
query II rowsort label-3435
SELECT ALL 17 AS col2, + 31 * + + CAST ( + - 93 AS INTEGER ) col2
----
17
-2883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT 32 * - CAST( NULL AS SIGNED ) / - + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT 32 * - CAST ( NULL AS INTEGER ) / - + 84 AS col1
----
NULL

query I rowsort
SELECT 3 + - 89 + + ( + - 35 )
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3438
SELECT ALL 25, CAST( 57 AS SIGNED ) AS col1
----
25
57

skipif mysql # not compatible
query II rowsort label-3438
SELECT ALL 25, CAST ( 57 AS INTEGER ) AS col1
----
25
57

query I rowsort
SELECT 22 + + 41
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL - 87 + + ( - ( - MIN( 27 ) ) ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL - 87 + + ( - ( - MIN ( 27 ) ) ) col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT 38 + 71 + - 70 DIV + 48 DIV + COUNT( ALL + 40 )
----
108

skipif mysql # not compatible
query I rowsort label-3441
SELECT 38 + 71 + - 70 / + 48 / + COUNT ( ALL + 40 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT 12 * + CASE + ( - COUNT( 95 ) ) WHEN 47 - - AVG ( ALL + 58 ) THEN NULL WHEN - - 37 THEN - + 87 WHEN - 92 THEN 98 * 60 * - 70 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3442
SELECT 12 * + CASE + ( - COUNT ( 95 ) ) WHEN 47 - - AVG ( ALL + 58 ) THEN NULL WHEN - - 37 THEN - + 87 WHEN - 92 THEN 98 * 60 * - 70 END AS col0
----
NULL

query I rowsort
SELECT ALL - 87 + - - 87 + - - 71 * - 23 + - ( + 94 )
----
-1727

query I rowsort
SELECT 66 + + 19 * + 9
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3445
SELECT ALL - 24 + + CAST( NULL AS SIGNED ) * 68 AS col2, 5 * + 7 + 86
----
NULL
121

skipif mysql # not compatible
query II rowsort label-3445
SELECT ALL - 24 + + CAST ( NULL AS INTEGER ) * 68 AS col2, 5 * + 7 + 86
----
NULL
121

query II rowsort
SELECT 28 AS col1, - 5 AS col2
----
28
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3447
SELECT DISTINCT - 42 + - 99 + + + MIN( DISTINCT 84 ) + 99 + 41 + - 98 + - 97 * - - 38 + - CASE + 30 WHEN + 61 THEN - 87 * ( CAST( NULL AS DECIMAL ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT - 42 + - 99 + + + MIN ( DISTINCT 84 ) + 99 + 41 + - 98 + - 97 * - - 38 + - CASE + 30 WHEN + 61 THEN - 87 * ( CAST ( NULL AS REAL ) ) END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3448
SELECT DISTINCT + 87 + + COUNT( * ) * - 75 * - 90 DIV + 89 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT + 87 + + COUNT ( * ) * - 75 * - 90 / + 89 AS col2
----
162

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3450
SELECT DISTINCT - ( - 4 ) DIV - + 20, COUNT( + 33 ) * + ( + 31 ) + - - 32 + - COUNT( * ) AS col0
----
0
62

skipif mysql # not compatible
query II rowsort label-3450
SELECT DISTINCT - ( - 4 ) / - + 20, COUNT ( + 33 ) * + ( + 31 ) + - - 32 + - COUNT ( * ) AS col0
----
0
62

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

skipif mysql # not compatible
query I rowsort label-3451
SELECT + MIN ( + 84 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3452
SELECT ALL - - 16 DIV - + 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL - - 16 / - + 42 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3453
SELECT + 92, - CAST( NULL AS DECIMAL ) AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-3453
SELECT + 92, - CAST ( NULL AS REAL ) AS col0
----
92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT 87 + + 56 * 54 + COUNT( * ) AS col2
----
3112

skipif mysql # not compatible
query I rowsort label-3454
SELECT 87 + + 56 * 54 + COUNT ( * ) AS col2
----
3112

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

skipif mysql # not compatible
query II rowsort label-3455
SELECT DISTINCT - - COUNT ( * ) AS col1, - 62 AS col1
----
1
-62

query I rowsort
SELECT ALL - 17 * + - 54 - - 33 - - + 80 * 70 * 2 + + 69
----
12220

query I rowsort
SELECT + 12 * + 57 + + 2
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT - CASE WHEN - COUNT( * ) IN ( + - ( - 37 ) + + - 48, + COUNT( * ) * 59 / - 14 - 7 + - 1 * - 27 * + 7 * + 90 - 43 ) THEN NULL WHEN - NULLIF ( NULLIF ( 4, 47 * 84 + 90 ), - 59 * 5 ) BETWEEN - 2 / COUNT( DISTINCT 41 ) AND + 31 THEN 16 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT - CASE WHEN - COUNT ( * ) IN ( + - ( - 37 ) + + - 48, + COUNT ( * ) * 59 / - 14 - 7 + - 1 * - 27 * + 7 * + 90 - 43 ) THEN NULL WHEN - NULLIF ( NULLIF ( 4, 47 * 84 + 90 ), - 59 * 5 ) BETWEEN - 2 / COUNT ( DISTINCT 41 ) AND + 31 THEN 16 END col2
----
NULL

query II rowsort
SELECT + 26 AS col0, + 47 + - 27 col0
----
26
20

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

query II rowsort
SELECT DISTINCT - + 87, 82 * - 4 * - 80 * - + 92 AS col2
----
-87
-2414080

query I rowsort
SELECT DISTINCT + 99 * - - 18 AS col2
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT + CASE - - COALESCE ( - 75, + 58 ) WHEN - 27 * + ( - COUNT( * ) ) * + - AVG ( + + 44 ) THEN NULL ELSE + 38 END
----
38

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + CASE - - COALESCE ( - 75, + 58 ) WHEN - 27 * + ( - COUNT ( * ) ) * + - AVG ( + + 44 ) THEN NULL ELSE + 38 END
----
38

query I rowsort
SELECT + - 61 * 51
----
-3111

query I rowsort
SELECT + + 81 + + 50 AS col1
----
131

query I rowsort
SELECT - 1 * + 55
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3467
SELECT + 72 - - + MIN( ALL + - ( 49 ) ) * 49 DIV COALESCE ( - ( - COUNT( * ) ), 51, - - MAX( - 91 ) DIV + - COUNT( * ) * 40 + 7 + + 89 ) * CAST( - 22 AS SIGNED ) col1
----
52894

skipif mysql # not compatible
query I rowsort label-3467
SELECT + 72 - - + MIN ( ALL + - ( 49 ) ) * 49 / COALESCE ( - ( - COUNT ( * ) ), 51, - - MAX ( - 91 ) / + - COUNT ( * ) * 40 + 7 + + 89 ) * CAST ( - 22 AS INTEGER ) col1
----
52894

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL - NULLIF ( 92, - - 63 ) * - 60 * + COALESCE ( - + 34, - 45, + 51 * - + 22 * 15 * 87 - 61 ) - - SUM( ALL + 31 ) * + 13
----
-187277

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL - NULLIF ( 92, - - 63 ) * - 60 * + COALESCE ( - + 34, - 45, + 51 * - + 22 * 15 * 87 - 61 ) - - SUM ( ALL + 31 ) * + 13
----
-187277

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

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

query I rowsort
SELECT DISTINCT 89 * 55 AS col1
----
4895

query I rowsort
SELECT + 12 + + 24 AS col1
----
36

query I rowsort
SELECT ALL 24 * + 25 * + 80
----
48000

query I rowsort
SELECT - COALESCE ( - 49, - 93 ) * + - 75 col2
----
-3675

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL + 55 + - + ( + - 20 ) + + + 7 * + 27 + - COUNT( * ) AS col2
----
263

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL + 55 + - + ( + - 20 ) + + + 7 * + 27 + - COUNT ( * ) AS col2
----
263

query I rowsort
SELECT + 23 - + 16 + + + 90 + - 37
----
60

query I rowsort
SELECT - NULLIF ( - 3, + 63 ) AS col1
----
3

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

query I rowsort
SELECT ALL NULLIF ( + 12, 78 )
----
12

query I rowsort
SELECT - 75 * - + 79 * 42
----
248850

onlyif mysql # aggregate syntax: 
query II rowsort label-3480
SELECT + + MIN( ALL 39 ) + + 89 - + - 5 AS col2, 95 AS col0
----
133
95

skipif mysql # not compatible
query II rowsort label-3480
SELECT + + MIN ( ALL 39 ) + + 89 - + - 5 AS col2, 95 AS col0
----
133
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3481
SELECT - CAST( - MAX( DISTINCT - - 73 ) AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-3481
SELECT - CAST ( - MAX ( DISTINCT - - 73 ) AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - 66 * 65 * + MAX( DISTINCT - 84 )
----
360360

skipif mysql # not compatible
query I rowsort label-3482
SELECT - 66 * 65 * + MAX ( DISTINCT - 84 )
----
360360

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT + 68 * - - 17 + COUNT( - 66 )
----
1157

skipif mysql # not compatible
query I rowsort label-3483
SELECT + 68 * - - 17 + COUNT ( - 66 )
----
1157

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3484
SELECT 67 DIV + 97 + ( - 17 ) + - COUNT( * ) + - - ( - + 90 ) - - 29 - - 23 + + 90 * - 34 * 44 AS col1, 51 AS col2
----
-134696
51

skipif mysql # not compatible
query II rowsort label-3484
SELECT 67 / + 97 + ( - 17 ) + - COUNT ( * ) + - - ( - + 90 ) - - 29 - - 23 + + 90 * - 34 * 44 AS col1, 51 AS col2
----
-134696
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3485
SELECT - + 51 * - CAST( - COUNT( DISTINCT + - ( 54 ) ) AS SIGNED ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-3485
SELECT - + 51 * - CAST ( - COUNT ( DISTINCT + - ( 54 ) ) AS INTEGER ) col1
----
-51

query I rowsort
SELECT + 88 * + - 51 + 71 AS col0
----
-4417

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

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

query I rowsort
SELECT - NULLIF ( + + COALESCE ( + - 30, - - 76 - - 73 ), 38 ) col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT COUNT( * ) * + 25 + - - 7 - COALESCE ( 45, + 97, - 97 - - 48 + 82 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-3489
SELECT COUNT ( * ) * + 25 + - - 7 - COALESCE ( 45, + 97, - 97 - - 48 + 82 ) AS col0
----
-13

onlyif mysql # DIV for integer division: 
query II rowsort label-3490
SELECT - + 90 DIV - 20 + - 23 DIV + ( 95 ) AS col0, + 28 AS col2
----
4
28

skipif mysql # not compatible
query II rowsort label-3490
SELECT - + 90 / - 20 + - 23 / + ( 95 ) AS col0, + 28 AS col2
----
4
28

query I rowsort
SELECT ALL 84 * - 69 * - 77 AS col1
----
446292

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

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

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

query I rowsort
SELECT + 24 + + 73 col0
----
97

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

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

query I rowsort
SELECT - 53 + - 76 col1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT CASE - - 31 WHEN + + MAX( - 14 ) THEN NULL WHEN + + COUNT( * ) + + + 2 THEN + COUNT( * ) * - 62 * + + SUM( DISTINCT + 28 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT CASE - - 31 WHEN + + MAX ( - 14 ) THEN NULL WHEN + + COUNT ( * ) + + + 2 THEN + COUNT ( * ) * - 62 * + + SUM ( DISTINCT + 28 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - 30 + 37 * + 12
----
414

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT CASE - - ( + + 80 ) WHEN - - MIN( - + 26 ) THEN + - 48 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT CASE - - ( + + 80 ) WHEN - - MIN ( - + 26 ) THEN + - 48 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 69 * + COALESCE ( - 70, + - 26 ) * + 64 * + + 94 + - 91 + 37 + 46 * - NULLIF ( - 35, - 45 ) AS col2
----
29058836

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - NULLIF ( COUNT( * ), + - 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-3501
SELECT - NULLIF ( COUNT ( * ), + - 14 )
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3502
SELECT ALL + ( 63 ) * 71 + 7 DIV - 96, + 15 AS col0
----
4473
15

skipif mysql # not compatible
query II rowsort label-3502
SELECT ALL + ( 63 ) * 71 + 7 / - 96, + 15 AS col0
----
4473
15

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

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

query I rowsort
SELECT + 58 * - 86 * - 82 AS col1
----
409016

query I rowsort
SELECT ALL 70 * - 65 col2
----
-4550

query I rowsort
SELECT + 52 + + - 53 * 67
----
-3499

query I rowsort
SELECT ALL - 24 - - - 3 AS col1
----
-27

query I rowsort
SELECT ALL + 70 * 72
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT + COUNT( * ) + + 94 col0
----
95

skipif mysql # not compatible
query I rowsort label-3509
SELECT + COUNT ( * ) + + 94 col0
----
95

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3511
SELECT ALL 97 - ( + + 42 ) AS col1, + COUNT( * ) col0
----
55
1

skipif mysql # not compatible
query II rowsort label-3511
SELECT ALL 97 - ( + + 42 ) AS col1, + COUNT ( * ) col0
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT - COALESCE ( - COUNT( * ), - MIN( DISTINCT - 38 ) ) + NULLIF ( - - 96, + 41 / COUNT( * ) + + 36 ) + + 94 AS col1
----
191

skipif mysql # not compatible
query I rowsort label-3512
SELECT - COALESCE ( - COUNT ( * ), - MIN ( DISTINCT - 38 ) ) + NULLIF ( - - 96, + 41 / COUNT ( * ) + + 36 ) + + 94 AS col1
----
191

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

query I rowsort
SELECT ALL - + 36 * + 46 AS col0
----
-1656

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

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

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

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

query I rowsort
SELECT ALL - + 44 * + 30 * + + 26 * + + 42
----
-1441440

query II rowsort
SELECT + + 21, - ( + 69 ) AS col0
----
21
-69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ALL - - COUNT( * ) + - 42 col1
----
-41

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL - - COUNT ( * ) + - 42 col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT DISTINCT + 48 + COUNT( DISTINCT + + 29 )
----
49

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + 48 + COUNT ( DISTINCT + + 29 )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3523
SELECT - 36 DIV + 86 + 82 AS col2, - COUNT( ALL + 19 )
----
82
-1

skipif mysql # not compatible
query II rowsort label-3523
SELECT - 36 / + 86 + 82 AS col2, - COUNT ( ALL + 19 )
----
82
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3524
SELECT DISTINCT + - NULLIF ( - 76, + 85 ) + 74 DIV + 92 AS col2, + 4
----
76
4

skipif mysql # not compatible
query II rowsort label-3524
SELECT DISTINCT + - NULLIF ( - 76, + 85 ) + 74 / + 92 AS col2, + 4
----
76
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3525
SELECT DISTINCT + 45 * 21, - CAST( NULL AS SIGNED ) * 38 / + 64 col0
----
945
NULL

skipif mysql # not compatible
query II rowsort label-3525
SELECT DISTINCT + 45 * 21, - CAST ( NULL AS INTEGER ) * 38 / + 64 col0
----
945
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL + COUNT( * ) + + + SUM( DISTINCT - 26 )
----
-25

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL + COUNT ( * ) + + + SUM ( DISTINCT - 26 )
----
-25

query II rowsort
SELECT + 67, 97 AS col2
----
67
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3528
SELECT 2 DIV + 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3528
SELECT 2 / + 24 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3529
SELECT 5 + + + NULLIF ( - 31, - NULLIF ( - 77, 93 * + COUNT( * ) + + + 9 + - 5 + - 95 ) + - 81 * CAST( NULL AS SIGNED ) + + 46 * 80 + + SUM( DISTINCT + 49 ) - + 60 ) col0
----
-26

skipif mysql # not compatible
query I rowsort label-3529
SELECT 5 + + + NULLIF ( - 31, - NULLIF ( - 77, 93 * + COUNT ( * ) + + + 9 + - 5 + - 95 ) + - 81 * CAST ( NULL AS INTEGER ) + + 46 * 80 + + SUM ( DISTINCT + 49 ) - + 60 ) col0
----
-26

query I rowsort
SELECT 91 * 64 + - 29 AS col1
----
5795

query I rowsort
SELECT 60 * + 49 AS col0
----
2940

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3533
SELECT ALL - COUNT( * ) AS col0, NULLIF ( + - 84, - + COUNT( * ) )
----
-1
-84

skipif mysql # not compatible
query II rowsort label-3533
SELECT ALL - COUNT ( * ) AS col0, NULLIF ( + - 84, - + COUNT ( * ) )
----
-1
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT 37 * COALESCE ( SUM( DISTINCT + 79 ), 47, - 56 )
----
2923

skipif mysql # not compatible
query I rowsort label-3534
SELECT 37 * COALESCE ( SUM ( DISTINCT + 79 ), 47, - 56 )
----
2923

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3535
SELECT DISTINCT 29 * 54 DIV - COALESCE ( - - COUNT( + - 22 ), COUNT( * ) - + ( + - 59 ) ) AS col2
----
-1566

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT 29 * 54 / - COALESCE ( - - COUNT ( + - 22 ), COUNT ( * ) - + ( + - 59 ) ) AS col2
----
-1566

query I rowsort
SELECT 50 + 12 AS col1
----
62

query I rowsort
SELECT DISTINCT + 11 * - 84
----
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-3538
SELECT 40 + 47 DIV - + ( - 89 ) col0
----
40

skipif mysql # not compatible
query I rowsort label-3538
SELECT 40 + 47 / - + ( - 89 ) col0
----
40

query II rowsort
SELECT - 56 AS col0, 5
----
-56
5

query I rowsort
SELECT 42 * - 12 * - + 10 AS col1
----
5040

query II rowsort
SELECT ALL + 16, - 43 col0
----
16
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT ALL - MAX( 64 ) * + 86 AS col0
----
-5504

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL - MAX ( 64 ) * + 86 AS col0
----
-5504

query I rowsort
SELECT - ( + 53 ) + + 88 AS col2
----
35

query I rowsort
SELECT 41 - 7
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT 44 + + COUNT( * ) * 27 * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-3546
SELECT 44 + + COUNT ( * ) * 27 * + COUNT ( * )
----
71

query I rowsort
SELECT ALL 11 * - - 37
----
407

onlyif mysql # aggregate syntax: 
query II rowsort label-3548
SELECT 90 + 54 AS col0, MIN( DISTINCT + 18 ) - - 23
----
144
41

skipif mysql # not compatible
query II rowsort label-3548
SELECT 90 + 54 AS col0, MIN ( DISTINCT + 18 ) - - 23
----
144
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3549
SELECT - CAST( NULL AS SIGNED ) AS col2, 79 * 1 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-3549
SELECT - CAST ( NULL AS INTEGER ) AS col2, 79 * 1 AS col1
----
NULL
79

query I rowsort
SELECT DISTINCT - 88 + 68 * 53 + 26
----
3542

query I rowsort
SELECT ALL - 29 + + 17 + + 44
----
32

query I rowsort
SELECT - - 60 * - - 39 + + 83
----
2423

query I rowsort
SELECT ALL - COALESCE ( + + 95, + 45 + - 43 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3554
SELECT - 33 DIV - 49 + - + 72 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3554
SELECT - 33 / - 49 + - + 72 AS col0
----
-72

query II rowsort
SELECT ALL - 0 AS col1, 56 AS col1
----
0
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT ALL - - NULLIF ( 11, + CAST( NULL AS SIGNED ) ) + 21 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL - - NULLIF ( 11, + CAST ( NULL AS INTEGER ) ) + 21 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3557
SELECT NULLIF ( + + 6, - + 82 ) * + MIN( - NULLIF ( + + 10, + 56 + 28 ) ) + + CAST( + 57 AS SIGNED ) + + ( - 93 ) + 91
----
-5

skipif mysql # not compatible
query I rowsort label-3557
SELECT NULLIF ( + + 6, - + 82 ) * + MIN ( - NULLIF ( + + 10, + 56 + 28 ) ) + + CAST ( + 57 AS INTEGER ) + + ( - 93 ) + 91
----
-5

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

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

query I rowsort
SELECT ALL + 96 * + 64
----
6144

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT DISTINCT - 24 - + MIN( ALL - 45 )
----
21

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT - 24 - + MIN ( ALL - 45 )
----
21

query I rowsort
SELECT 56 * - - 93 AS col2
----
5208

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL + CASE - 67 WHEN - COUNT( * ) THEN - 36 ELSE NULL END * + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + CASE - 67 WHEN - COUNT ( * ) THEN - 36 ELSE NULL END * + 35 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3563
SELECT NULLIF ( - COUNT( * ), - 40 ) + CAST( 71 AS SIGNED ) AS col0, COUNT( * ) * + 91
----
70
91

skipif mysql # not compatible
query II rowsort label-3563
SELECT NULLIF ( - COUNT ( * ), - 40 ) + CAST ( 71 AS INTEGER ) AS col0, COUNT ( * ) * + 91
----
70
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL MAX( ALL + ( - - 49 ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL MAX ( ALL + ( - - 49 ) ) AS col2
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-3565
SELECT 65 DIV - 2, - 40 AS col2
----
-32
-40

skipif mysql # not compatible
query II rowsort label-3565
SELECT 65 / - 2, - 40 AS col2
----
-32
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3566
SELECT ALL - COUNT( * ) * - + 58 AS col1, 34 / - - CAST( NULL AS SIGNED )
----
58
NULL

skipif mysql # not compatible
query II rowsort label-3566
SELECT ALL - COUNT ( * ) * - + 58 AS col1, 34 / - - CAST ( NULL AS INTEGER )
----
58
NULL

query I rowsort
SELECT + 62 + 90 AS col0
----
152

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

query I rowsort
SELECT ALL 15 * 29 * - 17 AS col0
----
-7395

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + 3 * - 29 * ( + COUNT( - 23 ) ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-3571
SELECT + 3 * - 29 * ( + COUNT ( - 23 ) ) AS col2
----
-87

query II rowsort
SELECT + - 88 + - 10 col2, - 23 col0
----
-98
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL + CASE + ( 49 ) WHEN COUNT( * ) THEN + COUNT( * ) END * - 81 + - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL + CASE + ( 49 ) WHEN COUNT ( * ) THEN + COUNT ( * ) END * - 81 + - 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT + + 14 + + 33 + - CAST( - COUNT( * ) AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-3574
SELECT + + 14 + + 33 + - CAST ( - COUNT ( * ) AS INTEGER )
----
48

query I rowsort
SELECT DISTINCT 4 + - 7 * ( + 80 ) - + 63 * + + 77 AS col0
----
-5407

query I rowsort
SELECT - + ( 78 ) * - + ( + 94 ) * - 54 AS col1
----
-395928

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3577
SELECT + COALESCE ( + 24, + 34, + ( - ( 27 ) ) DIV 77 DIV + 7 + + 88 * ( 50 ) DIV 6 * 80 DIV + CAST( + + 73 AS SIGNED ) ) DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-3577
SELECT + COALESCE ( + 24, + 34, + ( - ( 27 ) ) / 77 / + 7 + + 88 * ( 50 ) / 6 * 80 / + CAST ( + + 73 AS INTEGER ) ) / + 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL COALESCE ( + ( + 29 ), + MIN( DISTINCT - 18 ) ) * - 35 AS col1
----
-1015

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL COALESCE ( + ( + 29 ), + MIN ( DISTINCT - 18 ) ) * - 35 AS col1
----
-1015

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT ALL 89 + - 47 DIV + - 56 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL 89 + - 47 / + - 56 AS col2
----
89

query I rowsort
SELECT + + 12 * - 47
----
-564

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT + SUM( ALL - 40 ) * + 7 AS col0
----
-280

skipif mysql # not compatible
query I rowsort label-3582
SELECT + SUM ( ALL - 40 ) * + 7 AS col0
----
-280

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

skipif mysql # not compatible
query I rowsort label-3583
SELECT + MAX ( 74 )
----
74

query I rowsort
SELECT DISTINCT ( + 23 ) * - + 44
----
-1012

query I rowsort
SELECT ALL 89 * 61
----
5429

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + SUM( DISTINCT + 67 ) - + - 45
----
112

skipif mysql # not compatible
query I rowsort label-3586
SELECT + SUM ( DISTINCT + 67 ) - + - 45
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT CASE + 54 WHEN + ( + CASE - - CAST( NULL AS SIGNED ) WHEN + + 37 THEN - 69 END ) THEN + + COUNT( * ) + 4 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT CASE + 54 WHEN + ( + CASE - - CAST ( NULL AS INTEGER ) WHEN + + 37 THEN - 69 END ) THEN + + COUNT ( * ) + 4 END AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3589
SELECT + ( - 87 ) * - 99 + - + 23 * COALESCE ( + 30, - - MAX( ALL 82 ) DIV CAST( NULL AS SIGNED ) DIV COUNT( DISTINCT - 69 ) ) AS col1
----
7923

skipif mysql # not compatible
query I rowsort label-3589
SELECT + ( - 87 ) * - 99 + - + 23 * COALESCE ( + 30, - - MAX ( ALL 82 ) / CAST ( NULL AS INTEGER ) / COUNT ( DISTINCT - 69 ) ) AS col1
----
7923

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + CASE + 64 WHEN MAX( ALL + + 74 ) THEN NULL ELSE 67 END AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3590
SELECT + CASE + 64 WHEN MAX ( ALL + + 74 ) THEN NULL ELSE 67 END AS col0
----
67

query I rowsort
SELECT + 99 + 95 AS col2
----
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3592
SELECT COALESCE ( 6, 38, COALESCE ( - 43, + 15 * 42 + COALESCE ( - 64, - - 95 * + 54 DIV - MAX( + ( 60 ) ) + + + 15 + - CAST( NULL AS SIGNED ) ) - 82 + 49 + - 17 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-3592
SELECT COALESCE ( 6, 38, COALESCE ( - 43, + 15 * 42 + COALESCE ( - 64, - - 95 * + 54 / - MAX ( + ( 60 ) ) + + + 15 + - CAST ( NULL AS INTEGER ) ) - 82 + 49 + - 17 ) ) AS col2
----
6

query I rowsort
SELECT ALL + 66 * 53
----
3498

query I rowsort
SELECT + 45 + 41
----
86

query I rowsort
SELECT ALL 51 * - 93 AS col0
----
-4743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3596
SELECT DISTINCT - AVG ( + + CAST( NULL AS SIGNED ) ) * - 82 + 52 + ( - 82 ) + - 69 * - 97 * + 90 + - 8 + + + COUNT( * ) + + 88 + - COUNT( * ) * 24 + ( CAST( - ( COUNT( * ) ) AS SIGNED ) ) + - 92 * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT - AVG ( + + CAST ( NULL AS INTEGER ) ) * - 82 + 52 + ( - 82 ) + - 69 * - 97 * + 90 + - 8 + + + COUNT ( * ) + + 88 + - COUNT ( * ) * 24 + ( CAST ( - ( COUNT ( * ) ) AS INTEGER ) ) + - 92 * 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT - MIN( ALL + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-3597
SELECT - MIN ( ALL + 21 )
----
-21

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

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

query I rowsort
SELECT DISTINCT - 12 + - - 22 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT + - COUNT( * ) * - 94 * + + 65
----
6110

skipif mysql # not compatible
query I rowsort label-3600
SELECT + - COUNT ( * ) * - 94 * + + 65
----
6110

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

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

query I rowsort
SELECT ALL - 62 + - - 96
----
34

query I rowsort
SELECT - 63 - - 54 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3604
SELECT - - 73 col0, - 75 - 11 + + + 52 * - 35 - - COUNT( * ) * - - 4 * + + COUNT( * ) AS col1
----
73
-1902

skipif mysql # not compatible
query II rowsort label-3604
SELECT - - 73 col0, - 75 - 11 + + + 52 * - 35 - - COUNT ( * ) * - - 4 * + + COUNT ( * ) AS col1
----
73
-1902

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT ALL + COUNT( * ), 67 col0
----
1
67

skipif mysql # not compatible
query II rowsort label-3605
SELECT ALL + COUNT ( * ), 67 col0
----
1
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3606
SELECT 29, COUNT( * ) DIV + - 8 * 76 AS col2
----
29
0

skipif mysql # not compatible
query II rowsort label-3606
SELECT 29, COUNT ( * ) / + - 8 * 76 AS col2
----
29
0

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

query I rowsort
SELECT - - 47 + - 11 AS col2
----
36

query I rowsort
SELECT + - 41 - 77 + - 57 col1
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-3610
SELECT ALL ( MAX( - 96 ) ), + 78 AS col1
----
-96
78

skipif mysql # not compatible
query II rowsort label-3610
SELECT ALL ( MAX ( - 96 ) ), + 78 AS col1
----
-96
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT ALL - - 83 * - + COUNT( * ) + + CAST( NULL AS SIGNED ) * + MAX( + 57 ) + CASE COUNT( * ) WHEN - NULLIF ( ( 9 ), - 49 ) THEN - 94 / + 18 - - + 99 + - 85 ELSE - 3 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL - - 83 * - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * + MAX ( + 57 ) + CASE COUNT ( * ) WHEN - NULLIF ( ( 9 ), - 49 ) THEN - 94 / + 18 - - + 99 + - 85 ELSE - 3 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3612
SELECT - - CAST( NULL AS SIGNED ) AS col0, - 46 col1
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-3612
SELECT - - CAST ( NULL AS INTEGER ) AS col0, - 46 col1
----
NULL
-46

query I rowsort
SELECT - 66 + 94
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3614
SELECT 42 DIV - COUNT( - 22 ) + 46 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3614
SELECT 42 / - COUNT ( - 22 ) + 46 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT + 77 * - COUNT( * ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-3615
SELECT + 77 * - COUNT ( * ) col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT + COUNT( * ) + - - 90
----
91

skipif mysql # not compatible
query I rowsort label-3616
SELECT + COUNT ( * ) + - - 90
----
91

query I rowsort
SELECT + 12 + NULLIF ( ( + - 9 ), + 4 ) col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT ALL - 79 DIV + 70
----
-1

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL - 79 / + 70
----
-1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT + 77 * - 5 * 46 * 6 + - COALESCE ( 59, - 23 + COUNT( * ) - - CAST( + 25 AS SIGNED ) ) AS col2
----
-106319

skipif mysql # not compatible
query I rowsort label-3621
SELECT + 77 * - 5 * 46 * 6 + - COALESCE ( 59, - 23 + COUNT ( * ) - - CAST ( + 25 AS INTEGER ) ) AS col2
----
-106319

query I rowsort
SELECT ( + ( - + 95 ) ) * 88 + - 24
----
-8384

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT + 93 DIV + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3623
SELECT + 93 / + 96 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3624
SELECT + SUM( - 98 ) DIV + 7
----
-14

skipif mysql # not compatible
query I rowsort label-3624
SELECT + SUM ( - 98 ) / + 7
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT ALL 33 DIV 40 * + 52 + + ( + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL 33 / 40 * + 52 + + ( + 77 )
----
77

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

skipif mysql # not compatible
query I rowsort label-3626
SELECT + COUNT ( * ) * - NULLIF ( - COUNT ( * ), + 3 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT 10 + + MAX( + 94 ) AS col2
----
104

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT 10 + + MAX ( + 94 ) AS col2
----
104

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT DISTINCT COUNT( - ( + - 24 ) ) + - 4 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT COUNT ( - ( + - 24 ) ) + - 4 AS col0
----
-3

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

query I rowsort
SELECT + 11 + + 32 * - 57 + + 77
----
-1736

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT 47 - - 79 * - SUM( + 0 ) * - SUM( 17 )
----
47

skipif mysql # not compatible
query I rowsort label-3632
SELECT 47 - - 79 * - SUM ( + 0 ) * - SUM ( 17 )
----
47

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3634
SELECT DISTINCT - 64 + 64 * 11 DIV - NULLIF ( - COUNT( * ), - 16 * - 32 )
----
640

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - 64 + 64 * 11 / - NULLIF ( - COUNT ( * ), - 16 * - 32 )
----
640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT ALL + 31 - - - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL + 31 - - - COUNT ( * ) AS col1
----
30

query I rowsort
SELECT ALL - 51 - + 39
----
-90

query I rowsort
SELECT - 10 + ( - 59 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT 57 * - 23 * 76 * - COUNT( * )
----
99636

skipif mysql # not compatible
query I rowsort label-3639
SELECT 57 * - 23 * 76 * - COUNT ( * )
----
99636

query I rowsort
SELECT 88 + 58 + 66
----
212

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3641
SELECT SUM( ALL 28 ) DIV - 15 - 70 AS col0, 80 * 26 col0
----
-71
2080

skipif mysql # not compatible
query II rowsort label-3641
SELECT SUM ( ALL 28 ) / - 15 - 70 AS col0, 80 * 26 col0
----
-71
2080

query I rowsort
SELECT 34 + NULLIF ( 69, 25 + - + 73 * - 46 - + 32 ) + - 52 AS col2
----
51

query I rowsort
SELECT - 76 * - 87
----
6612

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3645
SELECT DISTINCT 11 AS col2, + COUNT( * ) * - 37 + 78 - - 23 col0
----
11
64

skipif mysql # not compatible
query II rowsort label-3645
SELECT DISTINCT 11 AS col2, + COUNT ( * ) * - 37 + 78 - - 23 col0
----
11
64

query I rowsort
SELECT ALL + 37 * + + 1
----
37

query I rowsort
SELECT ALL - 83 * - 15 AS col1
----
1245

query I rowsort
SELECT 56 * - 87
----
-4872

query I rowsort
SELECT 31 - - ( + 96 )
----
127

query I rowsort
SELECT 46 * + 68 AS col0
----
3128

query I rowsort
SELECT DISTINCT - 65 + 62
----
-3

query I rowsort
SELECT ALL - 48 + - 95
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-3653
SELECT DISTINCT + 20 + + 19 + 93, - ( + 71 ) * + + COUNT( * ) AS col1
----
132
-71

skipif mysql # not compatible
query II rowsort label-3653
SELECT DISTINCT + 20 + + 19 + 93, - ( + 71 ) * + + COUNT ( * ) AS col1
----
132
-71

query II rowsort
SELECT 43 col1, - 64
----
43
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3655
SELECT 65 + + 2 + - - 68 * CAST( - 11 AS SIGNED ) DIV COUNT( * ) - - 97
----
-584

skipif mysql # not compatible
query I rowsort label-3655
SELECT 65 + + 2 + - - 68 * CAST ( - 11 AS INTEGER ) / COUNT ( * ) - - 97
----
-584

query II rowsort
SELECT + 7 AS col0, 33
----
7
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT 31 - - + 29 + + + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3658
SELECT 31 - - + 29 + + + COUNT ( * ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT + 96 + + + 99 - + + MAX( ALL + 77 )
----
118

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT + 96 + + + 99 - + + MAX ( ALL + 77 )
----
118

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

skipif mysql # not compatible
query I rowsort label-3660
SELECT + - MAX ( + 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL 66 + + 75 + CASE 18 WHEN + 72 * + - ( - 82 ) * + 71 * - 83 * + - ( 8 ) + COUNT( + 94 ) THEN NULL ELSE - + 57 - ( - 9 ) END * + 45
----
-2019

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL 66 + + 75 + CASE 18 WHEN + 72 * + - ( - 82 ) * + 71 * - 83 * + - ( 8 ) + COUNT ( + 94 ) THEN NULL ELSE - + 57 - ( - 9 ) END * + 45
----
-2019

query I rowsort
SELECT 11 * 52 * - + 22 + - + 19
----
-12603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3663
SELECT ALL + + 79 * - 28 * - CAST( COUNT( * ) AS SIGNED )
----
2212

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL + + 79 * - 28 * - CAST ( COUNT ( * ) AS INTEGER )
----
2212

query I rowsort
SELECT DISTINCT - + 16 * - 65 col0
----
1040

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

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

query I rowsort
SELECT ALL - 60 * + 2 AS col0
----
-120

query I rowsort
SELECT ALL + 2 - - 45
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT 5 * - + 21 + + - 96 + - COUNT( * ) + - MAX( DISTINCT + + 29 ) - COUNT( DISTINCT 28 ) AS col2
----
-232

skipif mysql # not compatible
query I rowsort label-3668
SELECT 5 * - + 21 + + - 96 + - COUNT ( * ) + - MAX ( DISTINCT + + 29 ) - COUNT ( DISTINCT 28 ) AS col2
----
-232

query I rowsort
SELECT ( 45 ) - 8 + 47 AS col1
----
84

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

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

query I rowsort
SELECT ALL + 51 * + + 55 AS col2
----
2805

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL COALESCE ( - + 96, + 45 - - 5 ) * + COUNT( * ) * 37 - + + 97
----
-3649

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL COALESCE ( - + 96, + 45 - - 5 ) * + COUNT ( * ) * 37 - + + 97
----
-3649

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

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

query I rowsort
SELECT 31 + 43 AS col1
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL 94 + - MAX( DISTINCT - 62 ) AS col2
----
156

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL 94 + - MAX ( DISTINCT - 62 ) AS col2
----
156

query I rowsort
SELECT 76 - 14 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3678
SELECT ( + SUM( + + ( 5 ) ) ) DIV + + 35 + CASE + 53 WHEN - CAST( + 62 AS SIGNED ) * - 21 THEN + COUNT( DISTINCT + + 70 ) + 36 DIV + 96 * + 40 ELSE 45 END AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3678
SELECT ( + SUM ( + + ( 5 ) ) ) / + + 35 + CASE + 53 WHEN - CAST ( + 62 AS INTEGER ) * - 21 THEN + COUNT ( DISTINCT + + 70 ) + 36 / + 96 * + 40 ELSE 45 END AS col2
----
45

query I rowsort
SELECT 85 - 15 + - + 67
----
3

query II rowsort
SELECT ALL 27, - 16 AS col1
----
27
-16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3681
SELECT CAST( + 16 AS SIGNED ) DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3681
SELECT CAST ( + 16 AS INTEGER ) / - 91 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT CAST( + 89 AS SIGNED ) + - 98 * 96 AS col2
----
-9319

skipif mysql # not compatible
query I rowsort label-3682
SELECT CAST ( + 89 AS INTEGER ) + - 98 * 96 AS col2
----
-9319

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL + COUNT( * ) * + + COUNT( * ) * + NULLIF ( - 84, - 31 )
----
-84

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) * + NULLIF ( - 84, - 31 )
----
-84

query I rowsort
SELECT ALL 68 * 67 + + ( - - 49 ) AS col0
----
4605

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

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

query I rowsort
SELECT ALL 93 * - - 30 + - + 29 + + 43
----
2804

query II rowsort
SELECT DISTINCT + 23 AS col2, 15 AS col0
----
23
15

query I rowsort
SELECT ALL + NULLIF ( - - 45, + 38 ) AS col1
----
45

query I rowsort
SELECT + COALESCE ( - 17, 92 )
----
-17

query I rowsort
SELECT ALL - 44 * 38
----
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT + 49 * - 29 + 99 - + - 86 * - 95 * - NULLIF ( + 27, + + COUNT( * ) ) * + COUNT( * ) AS col0
----
219268

skipif mysql # not compatible
query I rowsort label-3691
SELECT + 49 * - 29 + 99 - + - 86 * - 95 * - NULLIF ( + 27, + + COUNT ( * ) ) * + COUNT ( * ) AS col0
----
219268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3692
SELECT 17 * ( + CAST( + + COUNT( * ) AS SIGNED ) ) + - 63 col2
----
-46

skipif mysql # not compatible
query I rowsort label-3692
SELECT 17 * ( + CAST ( + + COUNT ( * ) AS INTEGER ) ) + - 63 col2
----
-46

query II rowsort
SELECT + 5 AS col1, 50
----
5
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3694
SELECT NULLIF ( COUNT( ALL - CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) ), + 31 )
----
0

skipif mysql # not compatible
query I rowsort label-3694
SELECT NULLIF ( COUNT ( ALL - CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) ), + 31 )
----
0

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

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL + COUNT ( * ) * - + 51 + + 80
----
29

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3697
SELECT 67 AS col2, 97 DIV + ( - 80 ) - + 79 * - 18 - + 43
----
67
1378

skipif mysql # not compatible
query II rowsort label-3697
SELECT 67 AS col2, 97 / + ( - 80 ) - + 79 * - 18 - + 43
----
67
1378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3698
SELECT - - AVG ( - 34 ) * + + ( - - CAST( NULL AS SIGNED ) ) + + CAST( 30 AS SIGNED ) + MIN( ALL - 49 ) * 50 + + 47 + 97 * - 43 * + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT - - AVG ( - 34 ) * + + ( - - CAST ( NULL AS INTEGER ) ) + + CAST ( 30 AS INTEGER ) + MIN ( ALL - 49 ) * 50 + + 47 + 97 * - 43 * + 21 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3699
SELECT - CASE 49 WHEN + 14 THEN - - 97 DIV + 70 WHEN - + 91 + + 65 * COALESCE ( 44, - 43, - COUNT( - 18 ) ) * + 80 THEN + COUNT( * ) ELSE + 80 END + + 54
----
-26

skipif mysql # not compatible
query I rowsort label-3699
SELECT - CASE 49 WHEN + 14 THEN - - 97 / + 70 WHEN - + 91 + + 65 * COALESCE ( 44, - 43, - COUNT ( - 18 ) ) * + 80 THEN + COUNT ( * ) ELSE + 80 END + + 54
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3700
SELECT + 68 * CAST( - + NULLIF ( 24, - - COUNT( DISTINCT + 32 ) ) AS SIGNED ) - 56 / 41 + - - CASE + 39 WHEN - CAST( NULL AS SIGNED ) - - - COALESCE ( - 15, - 56, 96 ) THEN 79 * 60 - + COUNT( * ) ELSE + 21 * + 56 + + - CAST( NULL AS SIGNED ) * COUNT( * ) + 97 * COUNT( * ) END / 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT + 68 * CAST ( - + NULLIF ( 24, - - COUNT ( DISTINCT + 32 ) ) AS INTEGER ) - 56 / 41 + - - CASE + 39 WHEN - CAST ( NULL AS INTEGER ) - - - COALESCE ( - 15, - 56, 96 ) THEN 79 * 60 - + COUNT ( * ) ELSE + 21 * + 56 + + - CAST ( NULL AS INTEGER ) * COUNT ( * ) + 97 * COUNT ( * ) END / 87
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3701
SELECT ALL + + 51 DIV 54 AS col2, CAST( NULL AS DECIMAL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3701
SELECT ALL + + 51 / 54 AS col2, CAST ( NULL AS REAL )
----
0
NULL

query I rowsort
SELECT - 9 + + + 64 + - 14 - - 33 * + 82
----
2747

query I rowsort
SELECT + + 94 col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT + + MAX( DISTINCT - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-3704
SELECT + + MAX ( DISTINCT - 18 )
----
-18

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT ALL CAST( COUNT( * ) AS SIGNED ) * - 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) * - 52 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3707
SELECT - - 84 * - 91 * + ( 50 ) - - - 34 * + NULLIF ( - + ( + 25 ), + - 93 - - 4 ) + + 21 + - 97 DIV + CAST( - COUNT( * ) AS SIGNED ) + + + 67 - + 98 DIV COUNT( ALL + 15 ) col2
----
-381263

skipif mysql # not compatible
query I rowsort label-3707
SELECT - - 84 * - 91 * + ( 50 ) - - - 34 * + NULLIF ( - + ( + 25 ), + - 93 - - 4 ) + + 21 + - 97 / + CAST ( - COUNT ( * ) AS INTEGER ) + + + 67 - + 98 / COUNT ( ALL + 15 ) col2
----
-381263

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT - - SUM( DISTINCT + + 32 ) * NULLIF ( + COUNT( * ), - - 20 ) + - - COUNT( * ) + + + COUNT( * ) * - 68
----
-35

skipif mysql # not compatible
query I rowsort label-3708
SELECT - - SUM ( DISTINCT + + 32 ) * NULLIF ( + COUNT ( * ), - - 20 ) + - - COUNT ( * ) + + + COUNT ( * ) * - 68
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-3709
SELECT - + COUNT( * ) * - - 9 - + COUNT( * ) * - COUNT( * ) AS col1, + 14 + - 87
----
-8
-73

skipif mysql # not compatible
query II rowsort label-3709
SELECT - + COUNT ( * ) * - - 9 - + COUNT ( * ) * - COUNT ( * ) AS col1, + 14 + - 87
----
-8
-73

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

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + CAST ( ( - CAST ( - ( - 62 ) AS INTEGER ) ) AS INTEGER )
----
-62

query I rowsort
SELECT + 58 + - 33 * - 33 AS col0
----
1147

query I rowsort
SELECT ALL - 88 * 48 * - + 36
----
152064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT ALL - 29 * + - CAST( NULL AS SIGNED ) + 31 - 88 + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL - 29 * + - CAST ( NULL AS INTEGER ) + 31 - 88 + 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT + COUNT( * ) + - 13
----
-12

skipif mysql # not compatible
query I rowsort label-3714
SELECT + COUNT ( * ) + - 13
----
-12

query I rowsort
SELECT ALL 95 + + ( - 61 ) + + 71 AS col2
----
105

query I rowsort
SELECT DISTINCT 54 + - + 82
----
-28

query I rowsort
SELECT ALL 88 + + 62 * + COALESCE ( - 26, 72 ) col2
----
-1524

query I rowsort
SELECT + 59 + + 70 col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT ALL COUNT( * ) + - COALESCE ( + 15, + 63 )
----
-14

skipif mysql # not compatible
query I rowsort label-3719
SELECT ALL COUNT ( * ) + - COALESCE ( + 15, + 63 )
----
-14

query I rowsort
SELECT ALL 53 + - 25
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT - ( - MAX( ALL + 41 ) ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3721
SELECT - ( - MAX ( ALL + 41 ) ) AS col0
----
41

query I rowsort
SELECT + ( + 75 ) - + 26 + - - ( - + 29 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3723
SELECT + 17 * + COUNT( * ) AS col2, + 94 - + - 65 + - + 43 AS col0
----
17
116

skipif mysql # not compatible
query II rowsort label-3723
SELECT + 17 * + COUNT ( * ) AS col2, + 94 - + - 65 + - + 43 AS col0
----
17
116

onlyif mysql # DIV for integer division: 
query I rowsort label-3724
SELECT - 69 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3724
SELECT - 69 / 88 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT ALL + ( + 55 ) DIV + 44 - 63 - + 40 + + - COALESCE ( - 13, 98, + 17 ) DIV 20 * - 92 col1
----
-102

skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL + ( + 55 ) / + 44 - 63 - + 40 + + - COALESCE ( - 13, 98, + 17 ) / 20 * - 92 col1
----
-102

query I rowsort
SELECT + 81 * + 92 AS col2
----
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - 86 * + MAX( + - 14 ) AS col1
----
1204

skipif mysql # not compatible
query I rowsort label-3727
SELECT - 86 * + MAX ( + - 14 ) AS col1
----
1204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3728
SELECT ALL 87 DIV - 90 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT ALL 87 / - 90 * + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT - 27 * - ( + COUNT( * ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3729
SELECT - 27 * - ( + COUNT ( * ) ) AS col1
----
27

query I rowsort
SELECT DISTINCT - - 78 * 14
----
1092

query I rowsort
SELECT ALL + NULLIF ( + ( 48 ), + + 16 ) AS col1
----
48

query I rowsort
SELECT + COALESCE ( + 87, 95 )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3733
SELECT - - 88 * - CASE + - COUNT( * ) WHEN CAST( - - 23 AS SIGNED ) + - + 49 THEN + + 74 ELSE NULL END * - - 29 * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT - - 88 * - CASE + - COUNT ( * ) WHEN CAST ( - - 23 AS INTEGER ) + - + 49 THEN + + 74 ELSE NULL END * - - 29 * + 53
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3734
SELECT - - 25 - + - 79 * 7 + + - 2 + - 7 + - 0 DIV - COUNT( * ) * - + COUNT( * ) * - 8 + COUNT( ALL 25 ) AS col1
----
570

skipif mysql # not compatible
query I rowsort label-3734
SELECT - - 25 - + - 79 * 7 + + - 2 + - 7 + - 0 / - COUNT ( * ) * - + COUNT ( * ) * - 8 + COUNT ( ALL 25 ) AS col1
----
570

query I rowsort
SELECT DISTINCT + 71 col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3736
SELECT - COUNT( * ) * + 98 * 92
----
-9016

skipif mysql # not compatible
query I rowsort label-3736
SELECT - COUNT ( * ) * + 98 * 92
----
-9016

query I rowsort
SELECT DISTINCT + + NULLIF ( ( - + 29 ), 26 )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT ALL 0 * - - 94 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL 0 * - - 94 / 56
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3739
SELECT - SUM( - 62 ) DIV - 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3739
SELECT - SUM ( - 62 ) / - 65 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3740
SELECT ALL - 34 * - NULLIF ( - - CAST( + COUNT( * ) AS SIGNED ), - 64 ) + - 37
----
-3

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL - 34 * - NULLIF ( - - CAST ( + COUNT ( * ) AS INTEGER ), - 64 ) + - 37
----
-3

query I rowsort
SELECT - ( ( 82 ) )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3742
SELECT - - COALESCE ( + 57, - 49 * + - CAST( COUNT( * ) AS SIGNED ) )
----
57

skipif mysql # not compatible
query I rowsort label-3742
SELECT - - COALESCE ( + 57, - 49 * + - CAST ( COUNT ( * ) AS INTEGER ) )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT - 1 + COUNT( * ) * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3743
SELECT - 1 + COUNT ( * ) * COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL 99 * - 69 + + 0 - 35
----
-6866

onlyif mysql # DIV for integer division: 
query I rowsort label-3745
SELECT - 77 DIV + NULLIF ( + - 83, + 10 * + 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT - 77 / + NULLIF ( + - 83, + 10 * + 82 ) AS col0
----
0

query I rowsort
SELECT + 83 * + 75 AS col2
----
6225

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - MIN( ALL + - 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-3747
SELECT - MIN ( ALL + - 82 ) AS col0
----
82

query I rowsort
SELECT DISTINCT - 34 + - 57 + + 8 / + - CASE - - 80 WHEN - 56 * 96 * + 26 THEN + 76 * - 21 END AS col2
----
NULL

query II rowsort
SELECT ALL 70, 38 AS col2
----
70
38

query I rowsort
SELECT ALL 41 + - + 61
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT 75 + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-3751
SELECT 75 + COUNT ( * ) AS col1
----
76

query I rowsort
SELECT ALL - 16 + 27 col1
----
11

query I rowsort
SELECT DISTINCT + 61 * + 75 * + + 57 * + + 50
----
13038750

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT MAX( ALL - 2 ) + + + 59
----
57

skipif mysql # not compatible
query I rowsort label-3754
SELECT MAX ( ALL - 2 ) + + + 59
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-3755
SELECT 62, 32 DIV + 65 * 98 AS col1
----
62
0

skipif mysql # not compatible
query II rowsort label-3755
SELECT 62, 32 / + 65 * 98 AS col1
----
62
0

query I rowsort
SELECT 65 + - 24
----
41

query I rowsort
SELECT 1 - - - 34 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT COUNT( DISTINCT + 37 ) + + ( + - 87 ) + + - 52
----
-138

skipif mysql # not compatible
query I rowsort label-3758
SELECT COUNT ( DISTINCT + 37 ) + + ( + - 87 ) + + - 52
----
-138

query I rowsort
SELECT 84 + - 94
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT COUNT( * ) + - 3 * - 48 * - - 5 AS col1
----
721

skipif mysql # not compatible
query I rowsort label-3760
SELECT COUNT ( * ) + - 3 * - 48 * - - 5 AS col1
----
721

query II rowsort
SELECT DISTINCT 49 AS col1, 75
----
49
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3762
SELECT DISTINCT + 72 - COUNT( * ) + COUNT( * ) AS col2, + 10 * CAST( NULL AS SIGNED ) AS col2
----
72
NULL

skipif mysql # not compatible
query II rowsort label-3762
SELECT DISTINCT + 72 - COUNT ( * ) + COUNT ( * ) AS col2, + 10 * CAST ( NULL AS INTEGER ) AS col2
----
72
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT - COUNT( * ) DIV + - COUNT( * ) * - - COUNT( * ) + + + 8
----
9

skipif mysql # not compatible
query I rowsort label-3763
SELECT - COUNT ( * ) / + - COUNT ( * ) * - - COUNT ( * ) + + + 8
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT ALL 72 - COUNT( * ) + + 59 - 78 * 98
----
-7514

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL 72 - COUNT ( * ) + + 59 - 78 * 98
----
-7514

query I rowsort
SELECT DISTINCT 76 * + 81 AS col1
----
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT COUNT( * ) * - ( + + 72 ) + - - 99 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3766
SELECT COUNT ( * ) * - ( + + 72 ) + - - 99 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL - COUNT( + + 90 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL - COUNT ( + + 90 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3768
SELECT + + COALESCE ( + - COALESCE ( - ( + 90 ), - + 61, + COUNT( DISTINCT - + ( + 40 ) ) * - 11 DIV ( - 74 ) * 4 + - 72 - 6 + - - 10 DIV - COALESCE ( - 57, 77 * + COUNT( * ) + - COUNT( * ) * 63 * 90 - - 53 DIV 2 + + ( COUNT( * ) + + CAST( NULL AS SIGNED ) ) DIV 66, + COUNT( * ) * - ( + 5 ) ) * COUNT( * ) + - 29 + 84 ), - 57 * 23 - MIN( DISTINCT 80 ), 37 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3768
SELECT + + COALESCE ( + - COALESCE ( - ( + 90 ), - + 61, + COUNT ( DISTINCT - + ( + 40 ) ) * - 11 / ( - 74 ) * 4 + - 72 - 6 + - - 10 / - COALESCE ( - 57, 77 * + COUNT ( * ) + - COUNT ( * ) * 63 * 90 - - 53 / 2 + + ( COUNT ( * ) + + CAST ( NULL AS INTEGER ) ) / 66, + COUNT ( * ) * - ( + 5 ) ) * COUNT ( * ) + - 29 + 84 ), - 57 * 23 - MIN ( DISTINCT 80 ), 37 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-3769
SELECT 78 AS col0, - MIN( DISTINCT 58 )
----
78
-58

skipif mysql # not compatible
query II rowsort label-3769
SELECT 78 AS col0, - MIN ( DISTINCT 58 )
----
78
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - + ( - 24 ) * - - COUNT( * ) * - 0 + + 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3770
SELECT - + ( - 24 ) * - - COUNT ( * ) * - 0 + + 33 AS col1
----
33

query II rowsort
SELECT 71, 19 AS col1
----
71
19

query I rowsort
SELECT 19 * - - 74
----
1406

query I rowsort
SELECT - 4 * COALESCE ( + - 49, - - 3 ) AS col0
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT ALL 44 + + CAST( 85 AS SIGNED ) AS col0
----
129

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL 44 + + CAST ( 85 AS INTEGER ) AS col0
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT DISTINCT 6 DIV 38 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT 6 / 38 AS col0
----
0

query I rowsort
SELECT ALL - + 9 * - 52 + + 59 + - 35 col2
----
492

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT + 93 + + 77 DIV + 36 col1
----
95

skipif mysql # not compatible
query I rowsort label-3777
SELECT + 93 + + 77 / + 36 col1
----
95

query II rowsort
SELECT DISTINCT - 8, - 13 AS col2
----
-8
-13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3779
SELECT - 77 + + 72 + + COUNT( * ) + - - 9 * + 55 + + COUNT( * ) * - COUNT( * ) + + + CAST( NULL AS DECIMAL ), 34 AS col2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-3779
SELECT - 77 + + 72 + + COUNT ( * ) + - - 9 * + 55 + + COUNT ( * ) * - COUNT ( * ) + + + CAST ( NULL AS REAL ), 34 AS col2
----
NULL
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT 85 + MIN( + - 13 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3780
SELECT 85 + MIN ( + - 13 ) AS col1
----
72

query I rowsort
SELECT 66 + - - ( 34 ) + + 0 * 26 * + 60 * + 86
----
100

query I rowsort
SELECT ALL 77 + + 78 AS col2
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT 75 + + ( + SUM( ALL 6 ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-3783
SELECT 75 + + ( + SUM ( ALL 6 ) ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT DISTINCT - 3 - + + NULLIF ( - + 38, + + 99 * + 76 - COUNT( * ) + - 78 + - CASE - + 18 WHEN - 68 THEN 66 END ) * + 89
----
3379

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT - 3 - + + NULLIF ( - + 38, + + 99 * + 76 - COUNT ( * ) + - 78 + - CASE - + 18 WHEN - 68 THEN 66 END ) * + 89
----
3379

query II rowsort
SELECT 10 + 10, COALESCE ( 88, 87 ) AS col2
----
20
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ALL - CASE - COUNT( * ) WHEN + 73 * - 63 THEN - 96 * + 2 + 96 WHEN 8 THEN NULL END - COALESCE ( ( + 14 ), - ( 75 ) ) + 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL - CASE - COUNT ( * ) WHEN + 73 * - 63 THEN - 96 * + 2 + 96 WHEN 8 THEN NULL END - COALESCE ( ( + 14 ), - ( 75 ) ) + 13 AS col0
----
NULL

query I rowsort
SELECT 81 * 45 * + 94
----
342630

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT 94 * + COUNT( * ) col2
----
94

skipif mysql # not compatible
query I rowsort label-3788
SELECT 94 * + COUNT ( * ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL - MAX( ALL - 17 ) * + 29 * - - 21 AS col1
----
10353

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - MAX ( ALL - 17 ) * + 29 * - - 21 AS col1
----
10353

query I rowsort
SELECT ALL - 85 * + 90 AS col0
----
-7650

onlyif mysql # aggregate syntax: 
query II rowsort label-3791
SELECT DISTINCT + CASE 88 WHEN + 84 THEN NULL WHEN - - 18 THEN COUNT( + - 93 ) END * + - 38 AS col0, + 74 AS col1
----
NULL
74

skipif mysql # not compatible
query II rowsort label-3791
SELECT DISTINCT + CASE 88 WHEN + 84 THEN NULL WHEN - - 18 THEN COUNT ( + - 93 ) END * + - 38 AS col0, + 74 AS col1
----
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL MIN( - ( - 65 ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL MIN ( - ( - 65 ) ) AS col0
----
65

query I rowsort
SELECT + 53 - + - 96 - - - 13 AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT - MAX( - NULLIF ( + 54, + 81 + 22 ) ) * - 68 AS col0
----
-3672

skipif mysql # not compatible
query I rowsort label-3794
SELECT - MAX ( - NULLIF ( + 54, + 81 + 22 ) ) * - 68 AS col0
----
-3672

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-3795
SELECT - + COUNT( + CAST( NULL AS DECIMAL ) ) * - 87 DIV - COUNT( * ) * 83 + + 80
----
80

skipif mysql # not compatible
query I rowsort label-3795
SELECT - + COUNT ( + CAST ( NULL AS REAL ) ) * - 87 / - COUNT ( * ) * 83 + + 80
----
80

query I rowsort
SELECT NULLIF ( + + 98, 7 )
----
98

query I rowsort
SELECT DISTINCT - + 10 AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3798
SELECT 3 * + + 76 + + 85 * - + 26 * - - ( + 43 ) * - + 19 - 12 + + + 7 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT 3 * + + 76 + + 85 * - + 26 * - - ( + 43 ) * - + 19 - 12 + + + 7 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3799
SELECT ALL - 26 * - + 80 + + 69 - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL - 26 * - + 80 + + 69 - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT - 2 - + 88 * - + 85 * - - COUNT( * ) * 83 * + 3
----
1862518

skipif mysql # not compatible
query I rowsort label-3800
SELECT - 2 - + 88 * - + 85 * - - COUNT ( * ) * 83 * + 3
----
1862518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3801
SELECT DISTINCT - - ( - COUNT( DISTINCT 54 ) ) * + ( - + 27 ) / + + 57 * 65 - 22 + + + 26 + - - CAST( NULL AS SIGNED ) * - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT - - ( - COUNT ( DISTINCT 54 ) ) * + ( - + 27 ) / + + 57 * 65 - 22 + + + 26 + - - CAST ( NULL AS INTEGER ) * - 59 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3802
SELECT + 16 - + + CAST( NULL AS SIGNED ) AS col0, - 58 AS col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-3802
SELECT + 16 - + + CAST ( NULL AS INTEGER ) AS col0, - 58 AS col2
----
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT + 25 * COUNT( * ) * - ( ( - - MAX( - 36 ) ) ) + - 99
----
801

skipif mysql # not compatible
query I rowsort label-3803
SELECT + 25 * COUNT ( * ) * - ( ( - - MAX ( - 36 ) ) ) + - 99
----
801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3804
SELECT ALL - - CAST( + + 24 AS SIGNED ) * COUNT( * ) * 90 DIV + 10 + + 74 AS col2
----
290

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL - - CAST ( + + 24 AS INTEGER ) * COUNT ( * ) * 90 / + 10 + + 74 AS col2
----
290

query I rowsort
SELECT DISTINCT + ( - - 22 ) * - 20 * - 30 * - 60 * - 44 + - 75 AS col2
----
34847925

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3806
SELECT + 82 + - + 37 + - + COUNT( * ) * + 14 AS col2, + 46 DIV - COUNT( * ) AS col1
----
31
-46

skipif mysql # not compatible
query II rowsort label-3806
SELECT + 82 + - + 37 + - + COUNT ( * ) * + 14 AS col2, + 46 / - COUNT ( * ) AS col1
----
31
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT - 91 DIV 85 + + + 50 * + 88 * - SUM( DISTINCT - ( - 18 ) ) * 8 * - + 80 + - 4
----
50687995

skipif mysql # not compatible
query I rowsort label-3807
SELECT - 91 / 85 + + + 50 * + 88 * - SUM ( DISTINCT - ( - 18 ) ) * 8 * - + 80 + - 4
----
50687995

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT - MIN( + 71 ) * - - 66 * - + ( 84 ) * 84 AS col0
----
33064416

skipif mysql # not compatible
query I rowsort label-3808
SELECT - MIN ( + 71 ) * - - 66 * - + ( 84 ) * 84 AS col0
----
33064416

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3809
SELECT + MIN( DISTINCT + 24 ) DIV - 86, - 39 * + 34 AS col1
----
0
-1326

skipif mysql # not compatible
query II rowsort label-3809
SELECT + MIN ( DISTINCT + 24 ) / - 86, - 39 * + 34 AS col1
----
0
-1326

onlyif mysql # aggregate syntax: 
query II rowsort label-3810
SELECT DISTINCT 77 + - COUNT( * ) - + + 20 AS col2, - 26 AS col0
----
56
-26

skipif mysql # not compatible
query II rowsort label-3810
SELECT DISTINCT 77 + - COUNT ( * ) - + + 20 AS col2, - 26 AS col0
----
56
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT + COALESCE ( + 80, + COUNT( * ) * 86 )
----
80

skipif mysql # not compatible
query I rowsort label-3811
SELECT + COALESCE ( + 80, + COUNT ( * ) * 86 )
----
80

query I rowsort
SELECT DISTINCT - 16 - + 47 + + 51 * + 85
----
4272

query I rowsort
SELECT ALL + 61 * + 29 AS col2
----
1769

onlyif mysql # aggregate syntax: 
query II rowsort label-3814
SELECT 92 AS col0, - SUM( 44 ) * + 56
----
92
-2464

skipif mysql # not compatible
query II rowsort label-3814
SELECT 92 AS col0, - SUM ( 44 ) * + 56
----
92
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT 88 - - COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT 88 - - COUNT ( * ) AS col0
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-3816
SELECT ALL 75, - ( + - 4 ) DIV + 7 + + 32 AS col0
----
75
32

skipif mysql # not compatible
query II rowsort label-3816
SELECT ALL 75, - ( + - 4 ) / + 7 + + 32 AS col0
----
75
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT + ( CAST( + 6 AS SIGNED ) ) + + 29
----
35

skipif mysql # not compatible
query I rowsort label-3817
SELECT + ( CAST ( + 6 AS INTEGER ) ) + + 29
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL - MAX( + + 32 ) * CASE - - 44 WHEN - + 24 - + 40 * 25 * + - 43 * - 2 * + 33 - + - COUNT( * ) THEN NULL ELSE 41 END
----
-1312

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL - MAX ( + + 32 ) * CASE - - 44 WHEN - + 24 - + 40 * 25 * + - 43 * - 2 * + 33 - + - COUNT ( * ) THEN NULL ELSE 41 END
----
-1312

query I rowsort
SELECT + 64 + 75
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT + MIN( DISTINCT 45 ) - + 66 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-3820
SELECT + MIN ( DISTINCT 45 ) - + 66 AS col0
----
-21

query I rowsort
SELECT DISTINCT 87 * + 95 AS col1
----
8265

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT - 58 + - 62 + + + 84 DIV - - 17 + 16
----
-100

skipif mysql # not compatible
query I rowsort label-3822
SELECT - 58 + - 62 + + + 84 / - - 17 + 16
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL 22 * + COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL 22 * + COUNT ( * ) AS col0
----
22

query I rowsort
SELECT - 34 + - 51
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3825
SELECT ALL COALESCE ( + 10, - 2 + + 53 + + CAST( 6 AS SIGNED ) DIV + - 76, COALESCE ( COUNT( * ), - - 59 ) * ( - + 80 ) )
----
10

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL COALESCE ( + 10, - 2 + + 53 + + CAST ( 6 AS INTEGER ) / + - 76, COALESCE ( COUNT ( * ), - - 59 ) * ( - + 80 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT ALL CASE - 61 WHEN - ( - - 10 ) THEN 93 + MAX( 95 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL CASE - 61 WHEN - ( - - 10 ) THEN 93 + MAX ( 95 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL MIN( - 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL MIN ( - 97 ) AS col1
----
-97

query I rowsort
SELECT - - 51 * - - 53 - - 67
----
2770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT - 50 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT - 50 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT - COUNT( * ) - 71
----
-72

skipif mysql # not compatible
query I rowsort label-3830
SELECT - COUNT ( * ) - 71
----
-72

query I rowsort
SELECT - - ( + + 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT DISTINCT - CASE + 62 WHEN + - AVG ( - 74 ) THEN NULL ELSE + 89 * + NULLIF ( - 29, - + COUNT( * ) + + MIN( ALL - + 45 ) ) END + ( COALESCE ( + - 89, 26 - - 1 ) ) * - 71 col1
----
8900

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - CASE + 62 WHEN + - AVG ( - 74 ) THEN NULL ELSE + 89 * + NULLIF ( - 29, - + COUNT ( * ) + + MIN ( ALL - + 45 ) ) END + ( COALESCE ( + - 89, 26 - - 1 ) ) * - 71 col1
----
8900

query I rowsort
SELECT ALL + 7 + - - 48 + - - 88 AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT ALL + 96 / 36 * CASE 37 WHEN + 77 THEN - 9 * - - COUNT( * ) ELSE + - COUNT( * ) + - + 25 END * + CAST( NULL AS SIGNED ) + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL + 96 / 36 * CASE 37 WHEN + 77 THEN - 9 * - - COUNT ( * ) ELSE + - COUNT ( * ) + - + 25 END * + CAST ( NULL AS INTEGER ) + + 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT ALL + CAST( - 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL + CAST ( - 23 AS INTEGER )
----
-23

query I rowsort
SELECT DISTINCT + 62 + - 63 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3837
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / + SUM( DISTINCT + 52 ) + + - 53 + - - NULLIF ( + 24, + - 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / + SUM ( DISTINCT + 52 ) + + - 53 + - - NULLIF ( + 24, + - 20 )
----
NULL

query I rowsort
SELECT - + 77 + + + 88
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3839
SELECT ALL - + 79 DIV - + COUNT( * ) + 88 AS col1, + 46 col2
----
167
46

skipif mysql # not compatible
query II rowsort label-3839
SELECT ALL - + 79 / - + COUNT ( * ) + 88 AS col1, + 46 col2
----
167
46

query I rowsort
SELECT + 36 * - + 19 AS col1
----
-684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT ALL + - COALESCE ( - 37, - 63 * + NULLIF ( - + 63, + 79 * 29 ) + - CAST( NULL AS SIGNED ), 34 )
----
37

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL + - COALESCE ( - 37, - 63 * + NULLIF ( - + 63, + 79 * 29 ) + - CAST ( NULL AS INTEGER ), 34 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3842
SELECT - 80 * + NULLIF ( + 43, - ( ( - - 86 ) ) * - 10 * - 38 ) + + - CAST( + 49 AS SIGNED ) AS col0, 34
----
-3489
34

skipif mysql # not compatible
query II rowsort label-3842
SELECT - 80 * + NULLIF ( + 43, - ( ( - - 86 ) ) * - 10 * - 38 ) + + - CAST ( + 49 AS INTEGER ) AS col0, 34
----
-3489
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT COUNT( * ) * ( + 80 ) + + 55
----
135

skipif mysql # not compatible
query I rowsort label-3843
SELECT COUNT ( * ) * ( + 80 ) + + 55
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT + + MIN( ALL 18 )
----
18

skipif mysql # not compatible
query I rowsort label-3844
SELECT + + MIN ( ALL 18 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3845
SELECT ALL 12 * - - COUNT( * ) * - - ( - 12 ) * + 99 + + - 75 + + - 63 + 44 DIV SUM( - 74 ) AS col1
----
-14394

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL 12 * - - COUNT ( * ) * - - ( - 12 ) * + 99 + + - 75 + + - 63 + 44 / SUM ( - 74 ) AS col1
----
-14394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT ALL - 49 * + 85 + - ( + - 50 ) + - 79 - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + - 80 + - - 73 * + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - 49 * + 85 + - ( + - 50 ) + - 79 - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - 80 + - - 73 * + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT - 12 + NULLIF ( + COALESCE ( + 38, + COUNT( * ), - 20 * - ( - COUNT( * ) ) ), SUM( 55 ) ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3847
SELECT - 12 + NULLIF ( + COALESCE ( + 38, + COUNT ( * ), - 20 * - ( - COUNT ( * ) ) ), SUM ( 55 ) ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL + COUNT( + 31 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL + COUNT ( + 31 ) col0
----
1

query I rowsort
SELECT DISTINCT + + 90 col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL 24 * - - SUM( ALL + 53 ) - 82
----
1190

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL 24 * - - SUM ( ALL + 53 ) - 82
----
1190

query I rowsort
SELECT 93 * 57 + - 37 * + 87 AS col2
----
2082

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT - 61 * NULLIF ( + 1, + 14 + - MAX( - + 17 ) + - 6 - + 89 ) + - SUM( + 65 )
----
-126

skipif mysql # not compatible
query I rowsort label-3852
SELECT - 61 * NULLIF ( + 1, + 14 + - MAX ( - + 17 ) + - 6 - + 89 ) + - SUM ( + 65 )
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3853
SELECT DISTINCT 24 * + COALESCE ( 54, + 47 * + CAST( 31 AS SIGNED ) - + - ( + 34 ) + - 72 * - 38 )
----
1296

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT 24 * + COALESCE ( 54, + 47 * + CAST ( 31 AS INTEGER ) - + - ( + 34 ) + - 72 * - 38 )
----
1296

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + ( COUNT( * ) ) * + 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3854
SELECT + ( COUNT ( * ) ) * + 95 AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3855
SELECT + 70 + - - NULLIF ( - 10, - 53 + + CAST( - - 31 AS SIGNED ) * ( - COALESCE ( ( - - 35 ), - - ( - + AVG ( - 0 ) ) ) ) ) DIV - - 4 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3855
SELECT + 70 + - - NULLIF ( - 10, - 53 + + CAST ( - - 31 AS INTEGER ) * ( - COALESCE ( ( - - 35 ), - - ( - + AVG ( - 0 ) ) ) ) ) / - - 4 AS col0
----
68

query I rowsort
SELECT + 98 * + 48 + + + 9 + 60
----
4773

query I rowsort
SELECT DISTINCT + 85 * 73 AS col0
----
6205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3858
SELECT + 17 DIV + NULLIF ( - ( - COUNT( * ) ), - + 52 * + 78 + + + 25 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-3858
SELECT + 17 / + NULLIF ( - ( - COUNT ( * ) ), - + 52 * + 78 + + + 25 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT + 34 + 65 + COUNT( * ) + - - 79
----
179

skipif mysql # not compatible
query I rowsort label-3859
SELECT + 34 + 65 + COUNT ( * ) + - - 79
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT DISTINCT + COALESCE ( - 71, + 64, 98 ) * + COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT + COALESCE ( - 71, + 64, 98 ) * + COUNT ( * )
----
-71

query I rowsort
SELECT DISTINCT CASE + + 87 WHEN 40 THEN + ( + 43 ) / + + 59 END / + 3 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT + 87 DIV - + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3862
SELECT + 87 / - + 96 AS col2
----
0

query I rowsort
SELECT + 98 * - + 57 AS col0
----
-5586

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL SUM( - 79 ) + - 38
----
-117

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL SUM ( - 79 ) + - 38
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT + 75 * COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3865
SELECT + 75 * COUNT ( * ) AS col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3866
SELECT - 80 + 72 * - CASE - COUNT( * ) WHEN + + COUNT( * ) * - + ( - - CAST( + 91 AS DECIMAL ) ) - + - 82 THEN + 95 * ( AVG ( DISTINCT - 16 ) ) WHEN + 78 THEN NULL ELSE NULL END * - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT - 80 + 72 * - CASE - COUNT ( * ) WHEN + + COUNT ( * ) * - + ( - - CAST ( + 91 AS REAL ) ) - + - 82 THEN + 95 * ( AVG ( DISTINCT - 16 ) ) WHEN + 78 THEN NULL ELSE NULL END * - - 27
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3867
SELECT - + COUNT( * ), 29 * - + SUM( DISTINCT 0 ) AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-3867
SELECT - + COUNT ( * ), 29 * - + SUM ( DISTINCT 0 ) AS col2
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3868
SELECT - + 41 + + MAX( ALL + - 21 ) DIV + ( + + 11 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3868
SELECT - + 41 + + MAX ( ALL + - 21 ) / + ( + + 11 ) AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT - + CAST( - 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-3869
SELECT - + CAST ( - 54 AS INTEGER )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3870
SELECT ALL - 66 + 24 DIV + COALESCE ( + - NULLIF ( COUNT( * ), + 85 ), 65 - - 27 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - 66 + 24 / + COALESCE ( + - NULLIF ( COUNT ( * ), + 85 ), 65 - - 27 ) AS col1
----
-90

query I rowsort
SELECT NULLIF ( 84, + ( - 97 ) ) AS col2
----
84

query II rowsort
SELECT ALL - 4, + 19 AS col2
----
-4
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT DISTINCT + NULLIF ( - - COUNT( * ), 50 / - 8 + - COUNT( DISTINCT ( 36 ) ) ) + + ( 18 ) + + + 86 + - - 27 * + - 24 AS col1
----
-543

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT + NULLIF ( - - COUNT ( * ), 50 / - 8 + - COUNT ( DISTINCT ( 36 ) ) ) + + ( 18 ) + + + 86 + - - 27 * + - 24 AS col1
----
-543

query I rowsort
SELECT ALL 68 + - - 75
----
143

query I rowsort
SELECT + 51 - + 2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT ALL + 30 AS col0, + COUNT( * ) AS col0
----
30
1

skipif mysql # not compatible
query II rowsort label-3876
SELECT ALL + 30 AS col0, + COUNT ( * ) AS col0
----
30
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3877
SELECT + + ( + 73 ) + 68 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT + + ( + 73 ) + 68 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 63 + + + 38 + - 73 + + - 70 AS col1
----
-42

query I rowsort
SELECT DISTINCT + 18 * - + 10
----
-180

query I rowsort
SELECT 12 - 17
----
-5

query II rowsort
SELECT DISTINCT - 71 AS col1, 56
----
-71
56

query I rowsort
SELECT DISTINCT + ( - 44 ) * - + COALESCE ( + + 90, 9 + 96 * - 99 - + 10, 92 * 57 + - 43, 61 )
----
3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL + - CAST( NULL AS SIGNED ) - - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + - CAST ( NULL AS INTEGER ) - - + 56
----
NULL

query II rowsort
SELECT DISTINCT - 60 AS col2, + 5 AS col0
----
-60
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT ALL - 71 * COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL - 71 * COUNT ( * ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3886
SELECT 59 DIV - MIN( DISTINCT - - CAST( + - 83 AS SIGNED ) ) * + COUNT( * ) + 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3886
SELECT 59 / - MIN ( DISTINCT - - CAST ( + - 83 AS INTEGER ) ) * + COUNT ( * ) + 4 AS col1
----
4

query I rowsort
SELECT 94 * 44
----
4136

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT COUNT( * ) * - 10 * - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3888
SELECT COUNT ( * ) * - 10 * - COUNT ( * ) AS col2
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-3889
SELECT DISTINCT - 44 DIV - 35, 78 AS col0
----
1
78

skipif mysql # not compatible
query II rowsort label-3889
SELECT DISTINCT - 44 / - 35, 78 AS col0
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL - ( - COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL - ( - COUNT ( * ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL - NULLIF ( - 39, - + COUNT( - 92 ) * 28 )
----
39

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL - NULLIF ( - 39, - + COUNT ( - 92 ) * 28 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT CASE + 68 WHEN - + MIN( 59 ) THEN 51 * - NULLIF ( - - 39, + - 97 ) * + + 55 + + - MAX( - 41 ) WHEN + + 13 * COUNT( * ) THEN - 25 + + 15 ELSE NULL END * + - ( - 34 ) / - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT CASE + 68 WHEN - + MIN ( 59 ) THEN 51 * - NULLIF ( - - 39, + - 97 ) * + + 55 + + - MAX ( - 41 ) WHEN + + 13 * COUNT ( * ) THEN - 25 + + 15 ELSE NULL END * + - ( - 34 ) / - 45
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT NULLIF ( 36, - MAX( DISTINCT + + 50 ) ) * - 42
----
-1512

skipif mysql # not compatible
query I rowsort label-3894
SELECT NULLIF ( 36, - MAX ( DISTINCT + + 50 ) ) * - 42
----
-1512

query I rowsort
SELECT DISTINCT + 54 * + - 11
----
-594

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3896
SELECT ALL - ( 21 ) + 56 - + - 3 DIV + - CAST( + COALESCE ( + - 20, + 29 ) AS SIGNED ) * - - 18 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - ( 21 ) + 56 - + - 3 / + - CAST ( + COALESCE ( + - 20, + 29 ) AS INTEGER ) * - - 18 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT 63 * - 47 + - SUM( + 7 )
----
-2968

skipif mysql # not compatible
query I rowsort label-3897
SELECT 63 * - 47 + - SUM ( + 7 )
----
-2968

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL ( - 81 ) + - COUNT( * ) + + - COUNT( * ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL ( - 81 ) + - COUNT ( * ) + + - COUNT ( * ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT COUNT( * ) + + + 15 AS col0, CASE + + 7 WHEN 58 * + ( + 72 ) + - ( - 77 ) + + + 41 * - 22 * + - 60 - + - 76 THEN + 88 ELSE - 35 END AS col2
----
16
-35

skipif mysql # not compatible
query II rowsort label-3899
SELECT COUNT ( * ) + + + 15 AS col0, CASE + + 7 WHEN 58 * + ( + 72 ) + - ( - 77 ) + + + 41 * - 22 * + - 60 - + - 76 THEN + 88 ELSE - 35 END AS col2
----
16
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3900
SELECT CAST( NULL AS DECIMAL ) * + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3900
SELECT CAST ( NULL AS REAL ) * + 62
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT ALL CAST( - CASE WHEN NOT ( NOT ( + 13 ) = - 93 + - - 84 + - COUNT( * ) ) THEN NULL WHEN NOT CAST( CAST( 58 AS SIGNED ) AS SIGNED ) BETWEEN NULL AND - CASE + 63 WHEN - ( + SUM( ALL + 82 ) ) * - 24 THEN 73 WHEN 31 THEN + COUNT( * ) ELSE NULL END THEN + - 91 ELSE NULL END AS SIGNED ) + + - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL CAST ( - CASE WHEN NOT ( NOT ( + 13 ) = - 93 + - - 84 + - COUNT ( * ) ) THEN NULL WHEN NOT CAST ( CAST ( 58 AS INTEGER ) AS INTEGER ) BETWEEN NULL AND - CASE + 63 WHEN - ( + SUM ( ALL + 82 ) ) * - 24 THEN 73 WHEN 31 THEN + COUNT ( * ) ELSE NULL END THEN + - 91 ELSE NULL END AS INTEGER ) + + - 35 AS col1
----
NULL

query I rowsort
SELECT 19 + - + 67
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT COUNT( * ) + 44
----
45

skipif mysql # not compatible
query I rowsort label-3903
SELECT COUNT ( * ) + 44
----
45

query II rowsort
SELECT - ( + 64 ) AS col1, ( + 18 ) * - 52
----
-64
-936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3905
SELECT ALL - ( - + COALESCE ( - + 88, + 49 * 58 * - - 46 ) ) DIV - 93 + + COALESCE ( + + ( - COUNT( * ) ), + + 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL - ( - + COALESCE ( - + 88, + 49 * 58 * - - 46 ) ) / - 93 + + COALESCE ( + + ( - COUNT ( * ) ), + + 81 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT 9 * - - MAX( - - 83 )
----
747

skipif mysql # not compatible
query I rowsort label-3906
SELECT 9 * - - MAX ( - - 83 )
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT NULLIF ( - COUNT( * ), + 34 ) + - 6 * 98 col1
----
-589

skipif mysql # not compatible
query I rowsort label-3907
SELECT NULLIF ( - COUNT ( * ), + 34 ) + - 6 * 98 col1
----
-589

query I rowsort
SELECT ALL - 80 * - + 35
----
2800

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT 57 + - 9 - COUNT( * ) + COUNT( * ) * - 3 * - - 60 AS col1
----
-133

skipif mysql # not compatible
query I rowsort label-3909
SELECT 57 + - 9 - COUNT ( * ) + COUNT ( * ) * - 3 * - - 60 AS col1
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT 1 + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3910
SELECT 1 + - - COUNT ( * )
----
2

query I rowsort
SELECT - ( - 2 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3912
SELECT ALL CAST( NULL AS DECIMAL ) - - - 34 + - 46 * + CAST( - 92 AS SIGNED ) / 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL CAST ( NULL AS REAL ) - - - 34 + - 46 * + CAST ( - 92 AS INTEGER ) / 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - COUNT( DISTINCT 12 ) * + 67
----
-67

skipif mysql # not compatible
query I rowsort label-3913
SELECT - COUNT ( DISTINCT 12 ) * + 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL 41 * + - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL 41 * + - COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3915
SELECT ALL 10 * - - 70 + + NULLIF ( COALESCE ( 8, + + 17 DIV 85 * ( - 44 ), + 34 ), AVG ( - 3 ) * 57 + + - 55 - COUNT( * ) ) col2
----
708

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL 10 * - - 70 + + NULLIF ( COALESCE ( 8, + + 17 / 85 * ( - 44 ), + 34 ), AVG ( - 3 ) * 57 + + - 55 - COUNT ( * ) ) col2
----
708

query I rowsort
SELECT - ( 88 ) AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT DISTINCT + CAST( + CAST( - 41 AS SIGNED ) AS SIGNED ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT + CAST ( + CAST ( - 41 AS INTEGER ) AS INTEGER ) col1
----
-41

query I rowsort
SELECT ALL 68 - 26 + - 39 + 11 AS col1
----
14

query I rowsort
SELECT 57 * - 69 * - 96
----
377568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3920
SELECT 4 DIV - + NULLIF ( + NULLIF ( + + COUNT( * ), 15 * + COALESCE ( - 6, + ( + 35 ) ) ), 85 * 55 ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3920
SELECT 4 / - + NULLIF ( + NULLIF ( + + COUNT ( * ), 15 * + COALESCE ( - 6, + ( + 35 ) ) ), 85 * 55 ) AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3921
SELECT ( + ( - 11 ) ) * + COUNT( * ) * + + 74 * + COUNT( * ) + + CASE WHEN ( COUNT( * ) ) IN ( AVG ( ALL - 59 ) * + 75 * - 64 - + 65, ( + COUNT( * ) ) + 13 * + 54 + 54 - + + 92 ) THEN - + CAST( NULL AS DECIMAL ) * - - ( 91 ) * - + COUNT( * ) ELSE NULL END + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3921
SELECT ( + ( - 11 ) ) * + COUNT ( * ) * + + 74 * + COUNT ( * ) + + CASE WHEN ( COUNT ( * ) ) IN ( AVG ( ALL - 59 ) * + 75 * - 64 - + 65, ( + COUNT ( * ) ) + 13 * + 54 + 54 - + + 92 ) THEN - + CAST ( NULL AS REAL ) * - - ( 91 ) * - + COUNT ( * ) ELSE NULL END + - 20
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3922
SELECT DISTINCT - 57 DIV + 21
----
-2

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT - 57 / + 21
----
-2

query I rowsort
SELECT ALL - 40 * 96
----
-3840

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT ALL 47 DIV - + 61
----
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL 47 / - + 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT ALL - ( + NULLIF ( 21, - 42 * - ( - 60 ) * - 41 + - - 9 + - - 87 + - - 22 + + + COALESCE ( - - COUNT( * ), 90 + + + 35 * - 71, - 60 * 22 * - - COUNT( * ) * 27 * - 15 * + 12 * + 27 + - 78 ) + - 78 + + COALESCE ( + CAST( + 44 AS SIGNED ), - SUM( + 29 ) * - COALESCE ( - 50, - 77 * COUNT( 16 * 1 ) + + NULLIF ( COUNT( * ), + 37 + ( + CASE - 53 WHEN 45 + 92 THEN - ( COALESCE ( COUNT( * ), 4 * + 17 - - 90 ) ) * 27 + 83 END ) / 5 ), + COUNT( * ) + 13 ) ) * - 20 * - 71 ) ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - ( + NULLIF ( 21, - 42 * - ( - 60 ) * - 41 + - - 9 + - - 87 + - - 22 + + + COALESCE ( - - COUNT ( * ), 90 + + + 35 * - 71, - 60 * 22 * - - COUNT ( * ) * 27 * - 15 * + 12 * + 27 + - 78 ) + - 78 + + COALESCE ( + CAST ( + 44 AS INTEGER ), - SUM ( + 29 ) * - COALESCE ( - 50, - 77 * COUNT ( 16 * 1 ) + + NULLIF ( COUNT ( * ), + 37 + ( + CASE - 53 WHEN 45 + 92 THEN - ( COALESCE ( COUNT ( * ), 4 * + 17 - - 90 ) ) * 27 + 83 END ) / 5 ), + COUNT ( * ) + 13 ) ) * - 20 * - 71 ) ) AS col2
----
-21

query I rowsort
SELECT - 65 * - 59 + - 66
----
3769

query I rowsort
SELECT ALL - NULLIF ( - 29, - - 39 ) * - 33 AS col1
----
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT DISTINCT - CASE WHEN NOT - 81 NOT BETWEEN NULL AND + + 14 * - + 75 THEN + 74 + CASE 19 WHEN + 26 THEN + 82 ELSE + COUNT( - 3 ) END + - 48 + + 75 ELSE + - ( 55 ) END
----
55

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT - CASE WHEN NOT - 81 NOT BETWEEN NULL AND + + 14 * - + 75 THEN + 74 + CASE 19 WHEN + 26 THEN + 82 ELSE + COUNT ( - 3 ) END + - 48 + + 75 ELSE + - ( 55 ) END
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3929
SELECT MAX( DISTINCT + 69 ) * - CAST( - 99 AS SIGNED ) * COUNT( * ) + 9 AS col0
----
6840

skipif mysql # not compatible
query I rowsort label-3929
SELECT MAX ( DISTINCT + 69 ) * - CAST ( - 99 AS INTEGER ) * COUNT ( * ) + 9 AS col0
----
6840

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT + COUNT( ALL + 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3930
SELECT + COUNT ( ALL + 48 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL + ( + - ( - COUNT( * ) ) ) + - + 80 * - + ( 0 ) * - ( + - 22 ) * - - 15
----
1

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL + ( + - ( - COUNT ( * ) ) ) + - + 80 * - + ( 0 ) * - ( + - 22 ) * - - 15
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3932
SELECT DISTINCT - COUNT( * ) + 65 * - COALESCE ( + - 17, - - 70 DIV + - 16, 46 ) * 14 + + 83
----
15552

skipif mysql # not compatible
query I rowsort label-3932
SELECT DISTINCT - COUNT ( * ) + 65 * - COALESCE ( + - 17, - - 70 / + - 16, 46 ) * 14 + + 83
----
15552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3933
SELECT 9 DIV + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-3933
SELECT 9 / + - COUNT ( * )
----
-9

query I rowsort
SELECT 45 + + ( ( + 64 ) )
----
109

onlyif mysql # DIV for integer division: 
query II rowsort label-3935
SELECT ALL - ( + 10 ) + 47 AS col2, - 32 DIV - + ( + ( 58 ) ) * + 32 AS col1
----
37
0

skipif mysql # not compatible
query II rowsort label-3935
SELECT ALL - ( + 10 ) + 47 AS col2, - 32 / - + ( + ( 58 ) ) * + 32 AS col1
----
37
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT ALL - CAST( + MAX( ALL 26 ) AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL - CAST ( + MAX ( ALL 26 ) AS INTEGER )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT + COUNT( * ) * - + 73 + + NULLIF ( - + 31, + - 8 ) + + - 23 + ( - + 63 ) * COUNT( * ) col2
----
-190

skipif mysql # not compatible
query I rowsort label-3937
SELECT + COUNT ( * ) * - + 73 + + NULLIF ( - + 31, + - 8 ) + + - 23 + ( - + 63 ) * COUNT ( * ) col2
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT DISTINCT COUNT( ALL - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT COUNT ( ALL - 41 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3939
SELECT ALL + MIN( + - 85 ) + - 60, 43 AS col2
----
-145
43

skipif mysql # not compatible
query II rowsort label-3939
SELECT ALL + MIN ( + - 85 ) + - 60, 43 AS col2
----
-145
43

query I rowsort
SELECT + 53 * + 75
----
3975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3941
SELECT + COUNT( DISTINCT + + COALESCE ( + 43, + CAST( NULL AS SIGNED ) + + + 82 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3941
SELECT + COUNT ( DISTINCT + + COALESCE ( + 43, + CAST ( NULL AS INTEGER ) + + + 82 ) )
----
1

query I rowsort
SELECT ALL 72 - - + 27 AS col1
----
99

query I rowsort
SELECT ALL - 23 * - 54
----
1242

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL + ( - COALESCE ( 16, + 21, - - 11 + + COUNT( * ) + COUNT( * ), - + COUNT( * ) ) )
----
-16

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + ( - COALESCE ( 16, + 21, - - 11 + + COUNT ( * ) + COUNT ( * ), - + COUNT ( * ) ) )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-3945
SELECT ALL 93, - MIN( - 70 ) col2
----
93
70

skipif mysql # not compatible
query II rowsort label-3945
SELECT ALL 93, - MIN ( - 70 ) col2
----
93
70

query I rowsort
SELECT + - ( - NULLIF ( - 40, 49 ) ) + + 77 + + 42 * + 29 * + + 34 AS col1
----
41449

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL + 51 * - NULLIF ( - COUNT( * ), - - 54 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL + 51 * - NULLIF ( - COUNT ( * ), - - 54 ) AS col1
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-3948
SELECT ALL 99 AS col0, + 12 DIV + 79 + - 46
----
99
-46

skipif mysql # not compatible
query II rowsort label-3948
SELECT ALL 99 AS col0, + 12 / + 79 + - 46
----
99
-46

query I rowsort
SELECT - - 77 - - 60 * - 57 - + 78 col2
----
-3421

query I rowsort
SELECT + 5 * - 99
----
-495

onlyif mysql # DIV for integer division: 
query I rowsort label-3951
SELECT ALL + 7 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL + 7 / - 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3952
SELECT + + COUNT( * ) + - 73 + AVG ( + 17 ) - 35 * - 95 - CAST( NULL AS DECIMAL ) + ( - COUNT( * ) ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-3952
SELECT + + COUNT ( * ) + - 73 + AVG ( + 17 ) - 35 * - 95 - CAST ( NULL AS REAL ) + ( - COUNT ( * ) ) * + 89
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT + 58 DIV - 18 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3953
SELECT + 58 / - 18 AS col1
----
-3

query I rowsort
SELECT + 28 + - - 58 AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3955
SELECT ALL 59 * - + COALESCE ( - + ( 90 ), + - 76, 64 DIV - CAST( NULL AS SIGNED ) + + 9 + + + 77, - 91 * - 30 - 2 )
----
5310

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL 59 * - + COALESCE ( - + ( 90 ), + - 76, 64 / - CAST ( NULL AS INTEGER ) + + 9 + + + 77, - 91 * - 30 - 2 )
----
5310

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + 65 * 36 * - COUNT( + - 69 )
----
-2340

skipif mysql # not compatible
query I rowsort label-3956
SELECT + 65 * 36 * - COUNT ( + - 69 )
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT + 71 + MAX( + 61 ) * - - 46
----
2877

skipif mysql # not compatible
query I rowsort label-3957
SELECT + 71 + MAX ( + 61 ) * - - 46
----
2877

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3958
SELECT ALL 24 * - - 77 + - CASE 13 WHEN + ( CAST( NULL AS DECIMAL ) ) - - + 60 - 73 - - 19 THEN NULL ELSE 2 END AS col0, - 38
----
1846
-38

skipif mysql # not compatible
query II rowsort label-3958
SELECT ALL 24 * - - 77 + - CASE 13 WHEN + ( CAST ( NULL AS REAL ) ) - - + 60 - 73 - - 19 THEN NULL ELSE 2 END AS col0, - 38
----
1846
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3959
SELECT + CASE 59 WHEN - 42 THEN NULL ELSE CAST( NULL AS DECIMAL ) * 61 * + COALESCE ( - 56, - 30 * + CAST( NULL AS SIGNED ) + + 60 + - - 12 + - ( + COUNT( * ) ) / 55 / - - 61 * + 40 / 87 + + 28 + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT + CASE 59 WHEN - 42 THEN NULL ELSE CAST ( NULL AS REAL ) * 61 * + COALESCE ( - 56, - 30 * + CAST ( NULL AS INTEGER ) + + 60 + - - 12 + - ( + COUNT ( * ) ) / 55 / - - 61 * + 40 / 87 + + 28 + COUNT ( * ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3960
SELECT ALL + CAST( NULL AS SIGNED ) * - 19 + - 45 / + CAST( NULL AS SIGNED ) * + 89 * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + CAST ( NULL AS INTEGER ) * - 19 + - 45 / + CAST ( NULL AS INTEGER ) * + 89 * + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 99 * + 10 + + - NULLIF ( 96, + - 24 )
----
894

query I rowsort
SELECT + 35 * + 49 AS col2
----
1715

query I rowsort
SELECT ALL - 57 * + 92 + + 95 AS col0
----
-5149

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT + COUNT( - 39 )
----
1

skipif mysql # not compatible
query I rowsort label-3964
SELECT + COUNT ( - 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT CASE - SUM( + + 86 ) WHEN - 25 THEN NULL ELSE NULLIF ( - NULLIF ( - + 11, - - 44 + + - MIN( ALL + 72 ) ), 54 + + COUNT( * ) * - - 49 ) END
----
11

skipif mysql # not compatible
query I rowsort label-3965
SELECT CASE - SUM ( + + 86 ) WHEN - 25 THEN NULL ELSE NULLIF ( - NULLIF ( - + 11, - - 44 + + - MIN ( ALL + 72 ) ), 54 + + COUNT ( * ) * - - 49 ) END
----
11

query I rowsort
SELECT + 99 * - 68 * 53
----
-356796

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT - 5 * - + COUNT( - + 91 ) * 94 + + 5
----
475

skipif mysql # not compatible
query I rowsort label-3967
SELECT - 5 * - + COUNT ( - + 91 ) * 94 + + 5
----
475

query I rowsort
SELECT DISTINCT - 41 * - ( COALESCE ( - 10, + 22, 83 ) ) + 75
----
-335

query I rowsort
SELECT CASE - 21 WHEN + + NULLIF ( 32, + ( 28 ) ) THEN NULL WHEN 93 THEN 21 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3970
SELECT ALL + COUNT( - 24 ) * 91 + + 74 DIV + 63 + - 75 * - - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-3970
SELECT ALL + COUNT ( - 24 ) * 91 + + 74 / + 63 + - 75 * - - COUNT ( * )
----
17

query I rowsort
SELECT ALL + ( + 73 ) AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT DISTINCT CAST( NULL AS SIGNED ) * + CASE - ( - 52 ) WHEN + - 37 THEN - 35 * 14 * + + 1 ELSE 90 END + 5 * - CASE - 45 WHEN + ( + + 30 ) * - 23 THEN + 52 * - CAST( 39 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + CASE - ( - 52 ) WHEN + - 37 THEN - 35 * 14 * + + 1 ELSE 90 END + 5 * - CASE - 45 WHEN + ( + + 30 ) * - 23 THEN + 52 * - CAST ( 39 AS INTEGER ) END
----
NULL

query I rowsort
SELECT - 4 * - 6 AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT ALL COUNT( * ) DIV 99 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL COUNT ( * ) / 99 / + 92
----
0

query I rowsort
SELECT DISTINCT 47 * - 30 + 61 AS col1
----
-1349

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL 16 * + 22 * - 46 - + COUNT( * ) - COUNT( * ) * - 66 AS col0
----
-16127

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL 16 * + 22 * - 46 - + COUNT ( * ) - COUNT ( * ) * - 66 AS col0
----
-16127

query I rowsort
SELECT + 90 + 35 * + 51 + - 9
----
1866

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT - + 16 * + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-3978
SELECT - + 16 * + COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT - + 66 + ( + 8 ) + + COUNT( * ) * - - 33 - + 9 * + 15 AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-3979
SELECT - + 66 + ( + 8 ) + + COUNT ( * ) * - - 33 - + 9 * + 15 AS col2
----
-160

query I rowsort
SELECT ALL - + 86 - 88 col1
----
-174

query I rowsort
SELECT DISTINCT - ( - - 53 ) col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3982
SELECT DISTINCT + 22 * + COALESCE ( 83, - ( + 94 ) + + CAST( NULL AS SIGNED ) ) AS col2
----
1826

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT + 22 * + COALESCE ( 83, - ( + 94 ) + + CAST ( NULL AS INTEGER ) ) AS col2
----
1826

onlyif mysql # aggregate syntax: 
query II rowsort label-3983
SELECT - + 17 + MIN( ALL - ( 92 ) ), - 6 * - 86 col2
----
-109
516

skipif mysql # not compatible
query II rowsort label-3983
SELECT - + 17 + MIN ( ALL - ( 92 ) ), - 6 * - 86 col2
----
-109
516

query I rowsort
SELECT DISTINCT - 78 * + + 71
----
-5538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT - CAST( NULL AS SIGNED ) * ( 22 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT - CAST ( NULL AS INTEGER ) * ( 22 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT + COUNT( * ) + - + 15 + - 32
----
-46

skipif mysql # not compatible
query I rowsort label-3986
SELECT + COUNT ( * ) + - + 15 + - 32
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL - ( + + 38 ) * + COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - ( + + 38 ) * + COUNT ( * ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT + 58 * - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT + 58 * - COUNT ( * ) AS col0
----
-58

query I rowsort
SELECT ALL 53 + + + 85 AS col0
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT ALL CAST( + - ( - + 17 ) AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL CAST ( + - ( - + 17 ) AS INTEGER )
----
17

query I rowsort
SELECT + 94 + + - 12
----
82

query I rowsort
SELECT DISTINCT + ( 67 ) AS col0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT ALL - 13 DIV 18 + - 40 + + 79 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL - 13 / 18 + - 40 + + 79 AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3994
SELECT ALL + 30 DIV - ( + 63 ) + + COUNT( ALL 31 ) * - COALESCE ( 36, CAST( NULL AS SIGNED ), - 21 )
----
-36

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL + 30 / - ( + 63 ) + + COUNT ( ALL 31 ) * - COALESCE ( 36, CAST ( NULL AS INTEGER ), - 21 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - ( - 45 ) * - 98 + - COUNT( * ) - - 32 * + 52 + + - COUNT( + + 77 ) + + 99
----
-2649

skipif mysql # not compatible
query I rowsort label-3995
SELECT - ( - 45 ) * - 98 + - COUNT ( * ) - - 32 * + 52 + + - COUNT ( + + 77 ) + + 99
----
-2649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3996
SELECT CAST( - - SUM( 82 ) AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-3996
SELECT CAST ( - - SUM ( 82 ) AS INTEGER )
----
82

query I rowsort
SELECT - 57 * - 71 + - 85 AS col2
----
3962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3998
SELECT DISTINCT - CAST( + ( + CASE + CASE COUNT( * ) WHEN + 2 + - SUM( - 19 ) - - 21 THEN 4 ELSE NULL END WHEN - 56 THEN COUNT( * ) * 60 ELSE NULL END ) AS SIGNED ) / - 75 * + 22 * - - 19 - - 32 * 82 + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT - CAST ( + ( + CASE + CASE COUNT ( * ) WHEN + 2 + - SUM ( - 19 ) - - 21 THEN 4 ELSE NULL END WHEN - 56 THEN COUNT ( * ) * 60 ELSE NULL END ) AS INTEGER ) / - 75 * + 22 * - - 19 - - 32 * 82 + + 93
----
NULL

query I rowsort
SELECT + NULLIF ( - 78, + - 4 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4000
SELECT - 44 DIV - - 18 + - + 22 DIV + MAX( DISTINCT + 61 ) + NULLIF ( + - 13, + 6 DIV + 87 ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-4000
SELECT - 44 / - - 18 + - + 22 / + MAX ( DISTINCT + 61 ) + NULLIF ( + - 13, + 6 / + 87 ) col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT CAST( - ( + + 9 ) AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-4001
SELECT CAST ( - ( + + 9 ) AS INTEGER ) AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT ALL + ( + 57 ) DIV + - 26 + NULLIF ( 81, + 53 ) * 10
----
808

skipif mysql # not compatible
query I rowsort label-4002
SELECT ALL + ( + 57 ) / + - 26 + NULLIF ( 81, + 53 ) * 10
----
808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4003
SELECT - 6 DIV - ( 28 ) + - COUNT( * ) - - 10
----
9

skipif mysql # not compatible
query I rowsort label-4003
SELECT - 6 / - ( 28 ) + - COUNT ( * ) - - 10
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4004
SELECT DISTINCT + CAST( - ( - CASE + 39 WHEN + 74 THEN + + 54 ELSE - + 78 END ) AS SIGNED ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT + CAST ( - ( - CASE + 39 WHEN + 74 THEN + + 54 ELSE - + 78 END ) AS INTEGER ) col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL COUNT( * ) * - 16
----
-16

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL COUNT ( * ) * - 16
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT ALL 43 DIV 9 - + 72 DIV + + 16
----
0

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL 43 / 9 - + 72 / + + 16
----
0

query I rowsort
SELECT NULLIF ( 8, 63 ) * + 89 + 48 - 92 col1
----
668

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT DISTINCT + 87 * COUNT( + 32 ) - + 67 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT + 87 * COUNT ( + 32 ) - + 67 AS col1
----
20

query I rowsort
SELECT + ( + 87 ) AS col1
----
87

query I rowsort
SELECT ( - 20 ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT - - COUNT( * ) + + + 32
----
33

skipif mysql # not compatible
query I rowsort label-4011
SELECT - - COUNT ( * ) + + + 32
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT ALL - NULLIF ( 40, + - NULLIF ( + MIN( + + CASE 91 WHEN - - 24 THEN + + 55 * 52 / - 90 END ), + 77 * 2 + - 73 ) + MIN( - 48 ) - - COALESCE ( - + 32, 20 ) ) col0
----
-40

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - NULLIF ( 40, + - NULLIF ( + MIN ( + + CASE 91 WHEN - - 24 THEN + + 55 * 52 / - 90 END ), + 77 * 2 + - 73 ) + MIN ( - 48 ) - - COALESCE ( - + 32, 20 ) ) col0
----
-40

query I rowsort
SELECT ( - 39 ) + - 97
----
-136

query I rowsort
SELECT 94 * 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT - NULLIF ( 88, 23 * - 25 + + - CAST( NULL AS SIGNED ) )
----
-88

skipif mysql # not compatible
query I rowsort label-4015
SELECT - NULLIF ( 88, 23 * - 25 + + - CAST ( NULL AS INTEGER ) )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL + COUNT( * ) * + 8 + MAX( - 84 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL + COUNT ( * ) * + 8 + MAX ( - 84 ) AS col1
----
-76

query II rowsort
SELECT DISTINCT + 58 AS col1, - 54
----
58
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL + CASE 28 WHEN - COUNT( * ) THEN - 74 * + 27 + COALESCE ( + SUM( - + 40 ), - 16 ) + - COUNT( * ) + 57 + + 29 * - 85 WHEN + 53 THEN NULL END * + + 26 * ( - - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + CASE 28 WHEN - COUNT ( * ) THEN - 74 * + 27 + COALESCE ( + SUM ( - + 40 ), - 16 ) + - COUNT ( * ) + 57 + + 29 * - 85 WHEN + 53 THEN NULL END * + + 26 * ( - - COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 73 * + 91 AS col2
----
6643

query II rowsort
SELECT ALL - 35 AS col1, 56
----
-35
56

query I rowsort
SELECT - 64 * 78 * - + 25 - - 51 * + + 47
----
127197

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL 34 * MAX( DISTINCT 8 )
----
272

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL 34 * MAX ( DISTINCT 8 )
----
272

query I rowsort
SELECT 24 * + - 93 - - 71 * - 18
----
-3510

query II rowsort
SELECT DISTINCT 95 AS col0, 41 AS col0
----
95
41

query I rowsort
SELECT 42 * - 55 AS col2
----
-2310

query I rowsort
SELECT + 31 * + + 55
----
1705

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT COUNT( * ) * - 62 * + CASE - 60 WHEN + 9 + - 77 THEN - CASE + + 9 WHEN 77 THEN + ( - 90 ) ELSE NULL END END + + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT COUNT ( * ) * - 62 * + CASE - 60 WHEN + 9 + - 77 THEN - CASE + + 9 WHEN 77 THEN + ( - 90 ) ELSE NULL END END + + 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT - + CAST( - 98 AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4028
SELECT - + CAST ( - 98 AS INTEGER ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ( COUNT( * ) ) * 52
----
52

skipif mysql # not compatible
query I rowsort label-4029
SELECT ( COUNT ( * ) ) * 52
----
52

query I rowsort
SELECT DISTINCT - 99 + - - 19 + 38
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL + 8 * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL + 8 * + COUNT ( * )
----
8

query II rowsort
SELECT 32 AS col2, 58 AS col0
----
32
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4033
SELECT ALL - CASE + 58 WHEN + 36 THEN - + 20 * 33 DIV - 74 WHEN 40 - + 37 * - 40 THEN + 60 + - - 84 ELSE 61 END + - + 49 AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL - CASE + 58 WHEN + 36 THEN - + 20 * 33 / - 74 WHEN 40 - + 37 * - 40 THEN + 60 + - - 84 ELSE 61 END + - + 49 AS col2
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT COUNT( * ) - + + 25
----
-24

skipif mysql # not compatible
query I rowsort label-4034
SELECT COUNT ( * ) - + + 25
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4035
SELECT ALL + COALESCE ( - MAX( ALL 63 ), + 80, + CAST( 11 AS SIGNED ), COALESCE ( + 26, + + 64 ) ) * + 2 + CAST( - 29 AS SIGNED )
----
-155

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL + COALESCE ( - MAX ( ALL 63 ), + 80, + CAST ( 11 AS INTEGER ), COALESCE ( + 26, + + 64 ) ) * + 2 + CAST ( - 29 AS INTEGER )
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT COUNT( * ) + 27 - + 88 + + ( COUNT( ALL + 27 ) ) * - + 50 AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-4036
SELECT COUNT ( * ) + 27 - + 88 + + ( COUNT ( ALL + 27 ) ) * - + 50 AS col0
----
-110

query I rowsort
SELECT DISTINCT - ( - - 58 ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4038
SELECT ALL CAST( NULL AS DECIMAL ) - 12 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL CAST ( NULL AS REAL ) - 12 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 28 * - 57 AS col2
----
-1596

query I rowsort
SELECT ALL + 9 * 27 AS col2
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT 38 + MIN( DISTINCT - 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4041
SELECT 38 + MIN ( DISTINCT - 37 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - ( - 5 )
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT ALL 93 DIV - 2 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL 93 / - 2 AS col0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4044
SELECT DISTINCT + 64 DIV - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT + 64 / - COUNT ( * )
----
-64

query II rowsort
SELECT + 48 AS col2, + ( + + 51 ) - + + 91 AS col2
----
48
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT 98 - COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT 98 - COUNT ( * ) AS col0
----
97

query I rowsort
SELECT ALL 57 * - 44
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT COUNT( * ) * + - 52
----
-52

skipif mysql # not compatible
query I rowsort label-4048
SELECT COUNT ( * ) * + - 52
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT CAST( NULLIF ( + 29, 71 ) AS SIGNED ) * - 61 AS col2
----
-1769

skipif mysql # not compatible
query I rowsort label-4049
SELECT CAST ( NULLIF ( + 29, 71 ) AS INTEGER ) * - 61 AS col2
----
-1769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4050
SELECT ALL 38 * - COUNT( * ) * - 27 * - + CAST( NULL AS SIGNED ) AS col2, NULLIF ( + 98, + + 14 )
----
NULL
98

skipif mysql # not compatible
query II rowsort label-4050
SELECT ALL 38 * - COUNT ( * ) * - 27 * - + CAST ( NULL AS INTEGER ) AS col2, NULLIF ( + 98, + + 14 )
----
NULL
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4051
SELECT DISTINCT - 52 col0, + CASE + + 44 WHEN + 95 * 93 THEN - + COUNT( * ) WHEN + 62 THEN NULL ELSE NULL END AS col2
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-4051
SELECT DISTINCT - 52 col0, + CASE + + 44 WHEN + 95 * 93 THEN - + COUNT ( * ) WHEN + 62 THEN NULL ELSE NULL END AS col2
----
-52
NULL

query II rowsort
SELECT ALL - 68 AS col2, 85 + + - CASE + 10 WHEN 60 THEN + - 83 ELSE - - 44 END
----
-68
41

onlyif mysql # aggregate syntax: 
query III rowsort label-4053
SELECT + MIN( + 57 ), 78 + 13 AS col0, + 73 * - COUNT( * ) AS col2
----
57
91
-73

skipif mysql # not compatible
query III rowsort label-4053
SELECT + MIN ( + 57 ), 78 + 13 AS col0, + 73 * - COUNT ( * ) AS col2
----
57
91
-73

query I rowsort
SELECT DISTINCT - ( + 14 ) AS col0
----
-14

query II rowsort
SELECT ALL - 57 AS col0, - 77
----
-57
-77

query II rowsort
SELECT + + 3 AS col0, + 34
----
3
34

query II rowsort
SELECT + 73, 12 * - 38 col1
----
73
-456

query I rowsort
SELECT ALL + 69 + + + 18 col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4059
SELECT 78 - 1 * - COALESCE ( + - COUNT( * ), + + CASE 68 WHEN - 31 THEN - + COALESCE ( COUNT( * ), AVG ( DISTINCT - + 76 ) ) ELSE NULL END * 22 DIV + - 75 DIV - 9 + + - 63 + - 71 * - + 75 * NULLIF ( - COUNT( * ), - 41 ) - - - 9, + NULLIF ( 64, - + 87 ) ) + - SUM( DISTINCT - 27 ) AS col2, - 49 + + 89
----
104
40

skipif mysql # not compatible
query II rowsort label-4059
SELECT 78 - 1 * - COALESCE ( + - COUNT ( * ), + + CASE 68 WHEN - 31 THEN - + COALESCE ( COUNT ( * ), AVG ( DISTINCT - + 76 ) ) ELSE NULL END * 22 / + - 75 / - 9 + + - 63 + - 71 * - + 75 * NULLIF ( - COUNT ( * ), - 41 ) - - - 9, + NULLIF ( 64, - + 87 ) ) + - SUM ( DISTINCT - 27 ) AS col2, - 49 + + 89
----
104
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + 62 * - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-4060
SELECT + 62 * - COUNT ( * )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT + 71 - - + CAST( + 87 AS SIGNED ) AS col0
----
158

skipif mysql # not compatible
query I rowsort label-4061
SELECT + 71 - - + CAST ( + 87 AS INTEGER ) AS col0
----
158

query I rowsort
SELECT ALL ( + - 82 ) AS col1
----
-82

query I rowsort
SELECT - 38 + - 19
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4064
SELECT ALL 52, - CASE - CAST( NULL AS DECIMAL ) WHEN - 85 THEN + 24 WHEN + 81 + - 5 THEN NULL END AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-4064
SELECT ALL 52, - CASE - CAST ( NULL AS REAL ) WHEN - 85 THEN + 24 WHEN + 81 + - 5 THEN NULL END AS col1
----
52
NULL

query I rowsort
SELECT ALL + 68 + - + COALESCE ( 24, - + 39 * + 60 ) * - 41 AS col0
----
1052

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL MIN( DISTINCT + + 5 ) * + ( + - 54 ) col0
----
-270

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL MIN ( DISTINCT + + 5 ) * + ( + - 54 ) col0
----
-270

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT 3 DIV - ( + 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4067
SELECT 3 / - ( + 26 ) AS col1
----
0

query I rowsort
SELECT 48 + + 9 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT ALL COUNT( ALL + 20 )
----
1

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL COUNT ( ALL + 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT 38 * - COUNT( * ) * - 36 col1
----
1368

skipif mysql # not compatible
query I rowsort label-4070
SELECT 38 * - COUNT ( * ) * - 36 col1
----
1368

query I rowsort
SELECT ALL + 49 * - 52 - 93
----
-2641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4072
SELECT CASE + 82 WHEN + COALESCE ( + 72, + - COUNT( * ), + + ( - - 27 ) ) + 64 * - COALESCE ( + + 39, + MAX( ALL + + 47 ) ) THEN NULL WHEN - 22 / - MAX( + 11 ) * - 64 * CAST( - 46 AS SIGNED ) / - 12 + + 12 THEN NULL WHEN - 11 - - 87 THEN 55 + + CAST( + 19 AS SIGNED ) / - + 28 ELSE + 47 END
----
47

skipif mysql # not compatible
query I rowsort label-4072
SELECT CASE + 82 WHEN + COALESCE ( + 72, + - COUNT ( * ), + + ( - - 27 ) ) + 64 * - COALESCE ( + + 39, + MAX ( ALL + + 47 ) ) THEN NULL WHEN - 22 / - MAX ( + 11 ) * - 64 * CAST ( - 46 AS INTEGER ) / - 12 + + 12 THEN NULL WHEN - 11 - - 87 THEN 55 + + CAST ( + 19 AS INTEGER ) / - + 28 ELSE + 47 END
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4073
SELECT COUNT( * ) + - 75, - CAST( NULL AS SIGNED ) * ( - CAST( - 88 AS SIGNED ) ) / - 91 / + - 90 AS col1
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-4073
SELECT COUNT ( * ) + - 75, - CAST ( NULL AS INTEGER ) * ( - CAST ( - 88 AS INTEGER ) ) / - 91 / + - 90 AS col1
----
-74
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + ( + 96 ) * + + 99 / + 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + ( + 96 ) * + + 99 / + 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT - ( + COUNT( * ) ) - - 51
----
50

skipif mysql # not compatible
query I rowsort label-4075
SELECT - ( + COUNT ( * ) ) - - 51
----
50

query II rowsort
SELECT DISTINCT + 60 * - 11 AS col2, - 81 + + 98 AS col2
----
-660
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4077
SELECT + 97 DIV + COUNT( ALL + 86 ) + - - MIN( 75 ) * + + 55 AS col1
----
4222

skipif mysql # not compatible
query I rowsort label-4077
SELECT + 97 / + COUNT ( ALL + 86 ) + - - MIN ( 75 ) * + + 55 AS col1
----
4222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4078
SELECT - 39 * - COUNT( * ) * - 57 DIV COUNT( - 36 ) * + 9
----
-20007

skipif mysql # not compatible
query I rowsort label-4078
SELECT - 39 * - COUNT ( * ) * - 57 / COUNT ( - 36 ) * + 9
----
-20007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT - + CAST( NULL AS SIGNED ) + 62 / - 62 * - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT - + CAST ( NULL AS INTEGER ) + 62 / - 62 * - 42 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT DISTINCT + 85 * + + COUNT( * ) + ( - + 42 )
----
43

skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT + 85 * + + COUNT ( * ) + ( - + 42 )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4081
SELECT + 88 * - MIN( - + 5 ) + + 56 * - 23 AS col0, + 46 + - 30 + + 18 DIV 10 DIV + - 64 + - 67 + + 52 + + 49 * + 21 + + 34 * + 22 * - + SUM( ALL 31 ) AS col2
----
-848
-22158

skipif mysql # not compatible
query II rowsort label-4081
SELECT + 88 * - MIN ( - + 5 ) + + 56 * - 23 AS col0, + 46 + - 30 + + 18 / 10 / + - 64 + - 67 + + 52 + + 49 * + 21 + + 34 * + 22 * - + SUM ( ALL 31 ) AS col2
----
-848
-22158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4082
SELECT ALL ( + 88 ) * - 24 - - COUNT( * ) - - + CAST( - + 74 AS SIGNED ) + 7
----
-2178

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL ( + 88 ) * - 24 - - COUNT ( * ) - - + CAST ( - + 74 AS INTEGER ) + 7
----
-2178

onlyif mysql # aggregate syntax: 
query II rowsort label-4083
SELECT DISTINCT - 98 * - COUNT( * ) + - - 15 col2, - 83
----
113
-83

skipif mysql # not compatible
query II rowsort label-4083
SELECT DISTINCT - 98 * - COUNT ( * ) + - - 15 col2, - 83
----
113
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT + + COALESCE ( + 92, + ( + - ( + + 65 ) ), - COUNT( * ) )
----
92

skipif mysql # not compatible
query I rowsort label-4084
SELECT + + COALESCE ( + 92, + ( + - ( + + 65 ) ), - COUNT ( * ) )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4085
SELECT - 86 * CAST( 57 AS SIGNED ) - - 20 AS col0
----
-4882

skipif mysql # not compatible
query I rowsort label-4085
SELECT - 86 * CAST ( 57 AS INTEGER ) - - 20 AS col0
----
-4882

query I rowsort
SELECT + - NULLIF ( + - 7, + 65 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT DISTINCT + + ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT + + ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT ALL 52 + + ( + CASE + + 82 WHEN COALESCE ( 62, - 1 ) THEN + CASE 32 WHEN + NULLIF ( 37, 92 / + 45 / 8 / + 38 + + + 2 + + 79 ) * + CASE + 23 WHEN 20 THEN NULL ELSE AVG ( ALL + 11 ) END * 80 * - 86 * - 69 - + 21 - + COUNT( * ) THEN NULL ELSE - CAST( NULL AS SIGNED ) END END ) + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL 52 + + ( + CASE + + 82 WHEN COALESCE ( 62, - 1 ) THEN + CASE 32 WHEN + NULLIF ( 37, 92 / + 45 / 8 / + 38 + + + 2 + + 79 ) * + CASE + 23 WHEN 20 THEN NULL ELSE AVG ( ALL + 11 ) END * 80 * - 86 * - 69 - + 21 - + COUNT ( * ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END END ) + 8
----
NULL

query I rowsort
SELECT - - 52 * + + 54 AS col1
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT DISTINCT + + MIN( DISTINCT + 64 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT + + MIN ( DISTINCT + 64 ) AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4091
SELECT DISTINCT - - 62 + - CAST( COUNT( * ) AS SIGNED ) AS col0, - 6 * - ( 56 )
----
61
336

skipif mysql # not compatible
query II rowsort label-4091
SELECT DISTINCT - - 62 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0, - 6 * - ( 56 )
----
61
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT DISTINCT 84 + - 66 * + - SUM( DISTINCT - 99 )
----
-6450

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT 84 + - 66 * + - SUM ( DISTINCT - 99 )
----
-6450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT + CAST( NULL AS SIGNED ) * - ( + COUNT( 22 ) ) - + 67 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT + CAST ( NULL AS INTEGER ) * - ( + COUNT ( 22 ) ) - + 67 col2
----
NULL

query I rowsort
SELECT - + ( + - 99 ) AS col2
----
99

query I rowsort
SELECT - 2 - - 72 AS col1
----
70

query I rowsort
SELECT + 89 * 21 AS col1
----
1869

query II rowsort
SELECT 57 AS col0, 57 AS col0
----
57
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT ALL 47 - 70 + 34 DIV - 32 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL 47 - 70 + 34 / - 32 AS col1
----
-24

query I rowsort
SELECT + 53 * - 13 AS col0
----
-689

onlyif mysql # DIV for integer division: 
query II rowsort label-4100
SELECT ALL 13 AS col1, - 77 DIV 41 col0
----
13
-1

skipif mysql # not compatible
query II rowsort label-4100
SELECT ALL 13 AS col1, - 77 / 41 col0
----
13
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT + 29 - + 71 * - COUNT( * ) + + 24 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-4101
SELECT + 29 - + 71 * - COUNT ( * ) + + 24 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT ALL COUNT( - 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL COUNT ( - 29 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL - 46 * + CASE MIN( 85 ) WHEN + 54 THEN NULL ELSE + 37 END AS col0
----
-1702

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL - 46 * + CASE MIN ( 85 ) WHEN + 54 THEN NULL ELSE + 37 END AS col0
----
-1702

query I rowsort
SELECT + 23 * - NULLIF ( 47, + 50 ) AS col0
----
-1081

query I rowsort
SELECT - ( + 42 ) col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - CASE - MIN( - 72 ) WHEN - 50 THEN - - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT - CASE - MIN ( - 72 ) WHEN - 50 THEN - - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - ( + 44 )
----
-44

query I rowsort
SELECT + 69 + + + ( 5 ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4109
SELECT - 75 DIV - COALESCE ( + + 70, + ( + 17 ) + + - 57, + MAX( ALL - 0 ) + - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-4109
SELECT - 75 / - COALESCE ( + + 70, + ( + 17 ) + + - 57, + MAX ( ALL - 0 ) + - 82 )
----
1

query I rowsort
SELECT + 87 * 51 col1
----
4437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4111
SELECT - CAST( + COUNT( * ) AS SIGNED ) + 15 + + 53 * 33 * 81 * + - 21 * - 6 * SUM( ALL NULLIF ( 40, - 33 ) ) - - 38 DIV + + 13
----
714011776

skipif mysql # not compatible
query I rowsort label-4111
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) + 15 + + 53 * 33 * 81 * + - 21 * - 6 * SUM ( ALL NULLIF ( 40, - 33 ) ) - - 38 / + + 13
----
714011776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4112
SELECT DISTINCT CAST( + 87 AS SIGNED ) * - CASE + - 39 WHEN COUNT( * ) * - + 20 + COUNT( * ) - + COALESCE ( - + MAX( ALL - + 4 ), 10 * - CAST( NULL AS SIGNED ) ) * - 47 - + - COALESCE ( + 26, COUNT( * ) * + - 24 * - CASE + + 86 WHEN 5 THEN + 62 END + + - 33 - 72 ) * + 93 + 34 * - + COUNT( * ) THEN NULL WHEN + ( + 59 ) + - 84 THEN + 93 + 51 ELSE - + 51 + - 29 * - 6 END AS col1
----
-10701

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT CAST ( + 87 AS INTEGER ) * - CASE + - 39 WHEN COUNT ( * ) * - + 20 + COUNT ( * ) - + COALESCE ( - + MAX ( ALL - + 4 ), 10 * - CAST ( NULL AS INTEGER ) ) * - 47 - + - COALESCE ( + 26, COUNT ( * ) * + - 24 * - CASE + + 86 WHEN 5 THEN + 62 END + + - 33 - 72 ) * + 93 + 34 * - + COUNT ( * ) THEN NULL WHEN + ( + 59 ) + - 84 THEN + 93 + 51 ELSE - + 51 + - 29 * - 6 END AS col1
----
-10701

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL + ( - MAX( ALL 69 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + ( - MAX ( ALL 69 ) )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT CAST( + + 58 AS SIGNED ) col1
----
58

skipif mysql # not compatible
query I rowsort label-4114
SELECT CAST ( + + 58 AS INTEGER ) col1
----
58

query I rowsort
SELECT ALL 80 / - 56 + CASE + - 99 WHEN - 37 THEN + - 5 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4116
SELECT ALL - COUNT( * ) DIV COALESCE ( 16, + AVG ( + 93 ), - + COUNT( * ) ) + 27 col1
----
27

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - COUNT ( * ) / COALESCE ( 16, + AVG ( + 93 ), - + COUNT ( * ) ) + 27 col1
----
27

query I rowsort
SELECT + - ( ( - 42 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT COUNT( * ) * - COUNT( DISTINCT + + 51 ) - 8 * + - 39
----
311

skipif mysql # not compatible
query I rowsort label-4118
SELECT COUNT ( * ) * - COUNT ( DISTINCT + + 51 ) - 8 * + - 39
----
311

query I rowsort
SELECT + COALESCE ( + 41, + 62 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4120
SELECT ALL + - COUNT( * ) AS col0, 87
----
-1
87

skipif mysql # not compatible
query II rowsort label-4120
SELECT ALL + - COUNT ( * ) AS col0, 87
----
-1
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT + - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4121
SELECT + - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 15 * + 94 + + 55 AS col1
----
1465

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT + 51 * MAX( ALL 4 ) + + + 34 AS col2
----
238

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT + 51 * MAX ( ALL 4 ) + + + 34 AS col2
----
238

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL + + COUNT( ALL - 93 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL + + COUNT ( ALL - 93 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4125
SELECT ALL 60 * + 60 * - ( + SUM( ALL + 43 ) ) * - 86 + - - CAST( + 78 AS SIGNED ) - - + 9 * - + COUNT( * )
----
13312869

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL 60 * + 60 * - ( + SUM ( ALL + 43 ) ) * - 86 + - - CAST ( + 78 AS INTEGER ) - - + 9 * - + COUNT ( * )
----
13312869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT CAST( + 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-4126
SELECT CAST ( + 55 AS INTEGER )
----
55

query I rowsort
SELECT - 56 - 25 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT ALL + 69, COUNT( * ) AS col2
----
69
1

skipif mysql # not compatible
query II rowsort label-4128
SELECT ALL + 69, COUNT ( * ) AS col2
----
69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT - + NULLIF ( 36, - 11 * 96 ) * - 86 + + - 88 - COUNT( * ) AS col1
----
3007

skipif mysql # not compatible
query I rowsort label-4129
SELECT - + NULLIF ( 36, - 11 * 96 ) * - 86 + + - 88 - COUNT ( * ) AS col1
----
3007

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT MIN( + + 4 ) col0
----
4

skipif mysql # not compatible
query I rowsort label-4130
SELECT MIN ( + + 4 ) col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT - 53 DIV + 91 col2
----
0

skipif mysql # not compatible
query I rowsort label-4131
SELECT - 53 / + 91 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT ALL + COUNT( + 59 ) DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL + COUNT ( + 59 ) / - 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL ( MAX( 8 ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL ( MAX ( 8 ) ) AS col0
----
8

query I rowsort
SELECT - 29 + - 29 * 43 AS col1
----
-1276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4135
SELECT ALL 41 * - COUNT( * ) DIV + 70 col2
----
0

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL 41 * - COUNT ( * ) / + 70 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT ALL CAST( AVG ( - 74 ) AS SIGNED ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL CAST ( AVG ( - 74 ) AS INTEGER ) AS col1
----
-74

query I rowsort
SELECT ALL - 78 * + ( 72 )
----
-5616

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT 73 + + MIN( 56 ) * - + 18 * 17 AS col1
----
-17063

skipif mysql # not compatible
query I rowsort label-4138
SELECT 73 + + MIN ( 56 ) * - + 18 * 17 AS col1
----
-17063

query I rowsort
SELECT 44 * - + ( - 23 ) AS col2
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT SUM( DISTINCT 21 ) * + ( - - 40 ) AS col2
----
840

skipif mysql # not compatible
query I rowsort label-4140
SELECT SUM ( DISTINCT 21 ) * + ( - - 40 ) AS col2
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT 75 + + - COUNT( * ) + 70 + - CASE - 79 WHEN + 78 THEN NULL WHEN COALESCE ( 13, + 56 * + - COUNT( * ) - COUNT( * ), + 0 ) / + 91 * + 91 THEN NULL WHEN + 72 / + + SUM( - - 33 ) THEN + 7 END + + 36 + + - ( - CASE + 82 WHEN - + 24 THEN NULL WHEN 38 THEN NULL WHEN 58 + - + 91 - ( + - 62 ) THEN + - 87 + - - COALESCE ( 41, + 51 + - 74 ) ELSE NULL END ) * + + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT 75 + + - COUNT ( * ) + 70 + - CASE - 79 WHEN + 78 THEN NULL WHEN COALESCE ( 13, + 56 * + - COUNT ( * ) - COUNT ( * ), + 0 ) / + 91 * + 91 THEN NULL WHEN + 72 / + + SUM ( - - 33 ) THEN + 7 END + + 36 + + - ( - CASE + 82 WHEN - + 24 THEN NULL WHEN 38 THEN NULL WHEN 58 + - + 91 - ( + - 62 ) THEN + - 87 + - - COALESCE ( 41, + 51 + - 74 ) ELSE NULL END ) * + + 90 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 60 + ( - + 92 ) * + 55
----
-5120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT ALL 27 + + CASE + + 95 WHEN + 28 + - - 54 THEN - ( + - 90 ) WHEN - CAST( NULL AS SIGNED ) THEN - 68 * 40 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL 27 + + CASE + + 95 WHEN + 28 + - - 54 THEN - ( + - 90 ) WHEN - CAST ( NULL AS INTEGER ) THEN - 68 * 40 END AS col0
----
NULL

query II rowsort
SELECT DISTINCT 39 + - 60 AS col2, 68 AS col0
----
-21
68

onlyif mysql # DIV for integer division: 
query II rowsort label-4145
SELECT DISTINCT 62 + - 85 + - 71 DIV 69, 74 + + 69 AS col1
----
-24
143

skipif mysql # not compatible
query II rowsort label-4145
SELECT DISTINCT 62 + - 85 + - 71 / 69, 74 + + 69 AS col1
----
-24
143

query I rowsort
SELECT + 41 + - + 29
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4147
SELECT + COUNT( - 56 ) col0, + 26
----
1
26

skipif mysql # not compatible
query II rowsort label-4147
SELECT + COUNT ( - 56 ) col0, + 26
----
1
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4148
SELECT ALL - MAX( - 27 ) * + 51 * 50 * + COUNT( * ) - - + 46 * + + 46 AS col2, 95 + - 52
----
70966
43

skipif mysql # not compatible
query II rowsort label-4148
SELECT ALL - MAX ( - 27 ) * + 51 * 50 * + COUNT ( * ) - - + 46 * + + 46 AS col2, 95 + - 52
----
70966
43

query I rowsort
SELECT + 24 + 69 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT + + COALESCE ( + - 41, + + COUNT( DISTINCT + 17 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-4150
SELECT + + COALESCE ( + - 41, + + COUNT ( DISTINCT + 17 ) )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL - 21 * COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL - 21 * COUNT ( * )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT DISTINCT - 63 + + - 29 * + + CAST( NULL AS SIGNED ) - + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT - 63 + + - 29 * + + CAST ( NULL AS INTEGER ) - + 7 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4153
SELECT ALL + - 37 DIV - 22 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + - 37 / - 22 AS col2
----
1

query I rowsort
SELECT 55 + + 26 + + 89 AS col0
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT ALL 74 - + CAST( + - 92 AS SIGNED ) - + 29 + - ( + + 51 ) + - COUNT( * ) + + - 81 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL 74 - + CAST ( + - 92 AS INTEGER ) - + 29 + - ( + + 51 ) + - COUNT ( * ) + + - 81 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT 61 * 90 + - + MIN( 31 ) + + 1
----
5460

skipif mysql # not compatible
query I rowsort label-4156
SELECT 61 * 90 + - + MIN ( 31 ) + + 1
----
5460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4157
SELECT + ( + 81 ) * + CASE - CAST( - - 14 AS SIGNED ) WHEN 49 THEN - + NULLIF ( + AVG ( + 23 ), + 98 + 36 * + 14 ) + + - MAX( DISTINCT - - 49 ) END + + + 72 * 37 + + + 81 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4157
SELECT + ( + 81 ) * + CASE - CAST ( - - 14 AS INTEGER ) WHEN 49 THEN - + NULLIF ( + AVG ( + 23 ), + 98 + 36 * + 14 ) + + - MAX ( DISTINCT - - 49 ) END + + + 72 * 37 + + + 81 col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + 60 ) AS col0
----
-60

query I rowsort
SELECT ALL - - 1 AS col2
----
1

query I rowsort
SELECT 94 * 79
----
7426

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL - + 33 - - ( + ( - - COUNT( * ) ) )
----
-32

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL - + 33 - - ( + ( - - COUNT ( * ) ) )
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT + ( + 8 ) AS col1, MAX( + 49 ) + 41
----
8
90

skipif mysql # not compatible
query II rowsort label-4162
SELECT + ( + 8 ) AS col1, MAX ( + 49 ) + 41
----
8
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4163
SELECT + 67 + + - CAST( NULL AS SIGNED ) AS col0, - 40 AS col0
----
NULL
-40

skipif mysql # not compatible
query II rowsort label-4163
SELECT + 67 + + - CAST ( NULL AS INTEGER ) AS col0, - 40 AS col0
----
NULL
-40

query I rowsort
SELECT DISTINCT - - 82 * + 21 * 8 AS col0
----
13776

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL COUNT( * ) * + - 11 * 27
----
-297

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL COUNT ( * ) * + - 11 * 27
----
-297

query I rowsort
SELECT DISTINCT - NULLIF ( - 91, - 64 * + 0 ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4167
SELECT ALL 9 AS col0, - 49 * 30 + + + 21 - - SUM( DISTINCT + 88 ) * 89
----
9
6383

skipif mysql # not compatible
query II rowsort label-4167
SELECT ALL 9 AS col0, - 49 * 30 + + + 21 - - SUM ( DISTINCT + 88 ) * 89
----
9
6383

onlyif mysql # aggregate syntax: 
query II rowsort label-4168
SELECT 48 * + MIN( ALL + 45 ) * - ( - 10 ) AS col1, 62
----
21600
62

skipif mysql # not compatible
query II rowsort label-4168
SELECT 48 * + MIN ( ALL + 45 ) * - ( - 10 ) AS col1, 62
----
21600
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT 54 DIV + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4169
SELECT 54 / + COUNT ( * ) AS col1
----
54

query II rowsort
SELECT ALL 18 col1, 87 + + 13 AS col2
----
18
100

query I rowsort
SELECT 28 - 2 * - 16 * - 48 col1
----
-1508

query II rowsort
SELECT - 20 AS col2, - 56
----
-20
-56

query I rowsort
SELECT 38 * 1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4174
SELECT ALL + 19 / + - CASE 83 WHEN 82 * 15 * + 32 + AVG ( 80 ) THEN - COALESCE ( + + 22, + + 25 + - 20 + + 11 * CAST( + 17 AS SIGNED ) ) * + - 28 + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL + 19 / + - CASE 83 WHEN 82 * 15 * + 32 + AVG ( 80 ) THEN - COALESCE ( + + 22, + + 25 + - 20 + + 11 * CAST ( + 17 AS INTEGER ) ) * + - 28 + 99 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4175
SELECT 44 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-4175
SELECT 44 / + 98
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4176
SELECT CASE + ( COUNT( ALL - 80 ) ) WHEN - - 29 * + ( + COALESCE ( - + 39, + + COUNT( * ) ) ) THEN - - 68 WHEN + 54 THEN 68 ELSE + 57 * 53 DIV - + 3 END + - 20 AS col2
----
-1027

skipif mysql # not compatible
query I rowsort label-4176
SELECT CASE + ( COUNT ( ALL - 80 ) ) WHEN - - 29 * + ( + COALESCE ( - + 39, + + COUNT ( * ) ) ) THEN - - 68 WHEN + 54 THEN 68 ELSE + 57 * 53 / - + 3 END + - 20 AS col2
----
-1027

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT ALL - 56 + COALESCE ( ( - COUNT( * ) ), - + 12 * 17 + 7, + 30 * 0 * 30 )
----
-57

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - 56 + COALESCE ( ( - COUNT ( * ) ), - + 12 * 17 + 7, + 30 * 0 * 30 )
----
-57

query I rowsort
SELECT DISTINCT + 1 * - 67 AS col2
----
-67

query I rowsort
SELECT ALL - 47 + + 33 AS col1
----
-14

query I rowsort
SELECT DISTINCT - ( 6 ) + + 5 + 6
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL COUNT( * ) * - + COUNT( * ) * 33
----
-33

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL COUNT ( * ) * - + COUNT ( * ) * 33
----
-33

query I rowsort
SELECT ALL - 56 + - 41 - 11
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL MAX( DISTINCT + + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL MAX ( DISTINCT + + 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4184
SELECT ALL - NULLIF ( + - 84, - 97 * COUNT( * ) * - + 8 + CAST( 87 AS SIGNED ) + + 85 ) + - 4 col2
----
80

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - NULLIF ( + - 84, - 97 * COUNT ( * ) * - + 8 + CAST ( 87 AS INTEGER ) + + 85 ) + - 4 col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT - + COUNT( + 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-4185
SELECT - + COUNT ( + 45 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT + CAST( + 70 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4186
SELECT + CAST ( + 70 AS INTEGER ) AS col1
----
70

query II rowsort
SELECT 98 + + + ( - 73 ) AS col0, + 59 + - - 28
----
25
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT DISTINCT COUNT( DISTINCT ( - 79 ) ) + 56 col1
----
57

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT COUNT ( DISTINCT ( - 79 ) ) + 56 col1
----
57

query I rowsort
SELECT NULLIF ( + 33, + 14 * - 1 ) AS col1
----
33

query I rowsort
SELECT ALL + 62 + - 26 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT - NULLIF ( - COUNT( - + 82 ), + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT - NULLIF ( - COUNT ( - + 82 ), + + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT 78 * - - SUM( DISTINCT - 74 )
----
-5772

skipif mysql # not compatible
query I rowsort label-4192
SELECT 78 * - - SUM ( DISTINCT - 74 )
----
-5772

query I rowsort
SELECT DISTINCT 68 * - 25 + + 88 - - + 65 AS col1
----
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL - - ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL - - ( + + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT CASE 44 WHEN + 77 - + 38 THEN NULL WHEN CASE + - 43 WHEN ( - ( 9 ) ) + + 77 - 11 + + 64 THEN - SUM( + 71 ) / + COUNT( * ) * 94 / - CASE - - COUNT( + 50 ) WHEN + + 51 THEN NULL WHEN - 55 * + + 53 THEN NULL ELSE - 63 * 3 END END / - 71 * 17 * - 29 * COUNT( * ) + - + ( + 4 ) THEN NULL WHEN 14 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT CASE 44 WHEN + 77 - + 38 THEN NULL WHEN CASE + - 43 WHEN ( - ( 9 ) ) + + 77 - 11 + + 64 THEN - SUM ( + 71 ) / + COUNT ( * ) * 94 / - CASE - - COUNT ( + 50 ) WHEN + + 51 THEN NULL WHEN - 55 * + + 53 THEN NULL ELSE - 63 * 3 END END / - 71 * 17 * - 29 * COUNT ( * ) + - + ( + 4 ) THEN NULL WHEN 14 THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + 29 * - 29
----
-841

query I rowsort
SELECT - 91 - 71 * + - 62 col1
----
4311

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT - 95 DIV - 30
----
3

skipif mysql # not compatible
query I rowsort label-4198
SELECT - 95 / - 30
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4199
SELECT DISTINCT + 16 * + - COUNT( * ) * + 22 AS col1, 56 + 54 * + 38 * + CASE + + 62 WHEN + MAX( DISTINCT - - 73 ) THEN NULL WHEN + 80 THEN - CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) * AVG ( DISTINCT 47 ) END + NULLIF ( + 91, - 49 / + - 87 + - - 97 )
----
-352
NULL

skipif mysql # not compatible
query II rowsort label-4199
SELECT DISTINCT + 16 * + - COUNT ( * ) * + 22 AS col1, 56 + 54 * + 38 * + CASE + + 62 WHEN + MAX ( DISTINCT - - 73 ) THEN NULL WHEN + 80 THEN - CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) * AVG ( DISTINCT 47 ) END + NULLIF ( + 91, - 49 / + - 87 + - - 97 )
----
-352
NULL

query I rowsort
SELECT - 45 * + 98 + + - 7 + - + 22
----
-4439

onlyif mysql # aggregate syntax: 
query II rowsort label-4201
SELECT ALL - COUNT( * ), + 33 * + 45 + 99 AS col1
----
-1
1584

skipif mysql # not compatible
query II rowsort label-4201
SELECT ALL - COUNT ( * ), + 33 * + 45 + 99 AS col1
----
-1
1584

query II rowsort
SELECT DISTINCT - 80, 2 + + 81 AS col0
----
-80
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4203
SELECT 19 + + - COUNT( * ) DIV - - 94
----
19

skipif mysql # not compatible
query I rowsort label-4203
SELECT 19 + + - COUNT ( * ) / - - 94
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT + 46 + + 33 * + + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT + 46 + + 33 * + + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4205
SELECT ALL COUNT( * ), 78 AS col2
----
1
78

skipif mysql # not compatible
query II rowsort label-4205
SELECT ALL COUNT ( * ), 78 AS col2
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL ( + 17 ) + - 28 * + 77 + 69 - + COUNT( * ) AS col0
----
-2071

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL ( + 17 ) + - 28 * + 77 + 69 - + COUNT ( * ) AS col0
----
-2071

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT DISTINCT COUNT( * ), - 20 * + 96 + + 26 col2
----
1
-1894

skipif mysql # not compatible
query II rowsort label-4207
SELECT DISTINCT COUNT ( * ), - 20 * + 96 + + 26 col2
----
1
-1894

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL - 60 + COALESCE ( 45, + + COUNT( * ) ) + - ( - 47 ) + - - 26 * - 84
----
-2152

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - 60 + COALESCE ( 45, + + COUNT ( * ) ) + - ( - 47 ) + - - 26 * - 84
----
-2152

query I rowsort
SELECT - 16 + - 64
----
-80

query I rowsort
SELECT ALL CASE 35 WHEN - 30 THEN - ( 13 ) END
----
NULL

query I rowsort
SELECT DISTINCT + 15 + - + 84
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4212
SELECT - COALESCE ( - 95, 11 * 99 * 10 DIV + NULLIF ( CASE 27 WHEN - 91 THEN - 45 ELSE NULL END, + COUNT( * ) DIV 34 ) )
----
95

skipif mysql # not compatible
query I rowsort label-4212
SELECT - COALESCE ( - 95, 11 * 99 * 10 / + NULLIF ( CASE 27 WHEN - 91 THEN - 45 ELSE NULL END, + COUNT ( * ) / 34 ) )
----
95

query I rowsort
SELECT ALL + 98 + + 37 * 31
----
1245

query I rowsort
SELECT - ( + 55 ) * - 86
----
4730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4215
SELECT - + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) + + + 42 - - + MIN( - - ( 65 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT - + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) + + + 42 - - + MIN ( - - ( 65 ) )
----
NULL

query II rowsort
SELECT + 75 AS col1, 13 + + + 37 * - 28 - - 54 AS col2
----
75
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL - 96 - - - 44 * - + COUNT( * ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL - 96 - - - 44 * - + COUNT ( * ) AS col0
----
-52

query I rowsort
SELECT - 50 * + ( + 6 ) * - 99 AS col1
----
29700

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT ALL + - 83 - - + 46 DIV - 55 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL + - 83 - - + 46 / - 55 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - + COUNT( * ) * + - 17 + - 20
----
-3

skipif mysql # not compatible
query I rowsort label-4220
SELECT - + COUNT ( * ) * + - 17 + - 20
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT - 25 + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-4221
SELECT - 25 + + COUNT ( * )
----
-24

query I rowsort
SELECT + - 44 * - - 4 + + 1 AS col1
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + 9 - - + 82 - + COUNT( + 16 )
----
90

skipif mysql # not compatible
query I rowsort label-4223
SELECT + 9 - - + 82 - + COUNT ( + 16 )
----
90

query I rowsort
SELECT DISTINCT + + 41 * + 83
----
3403

query I rowsort
SELECT + ( + + 45 ) + 48 * + 5 * 85
----
20445

query II rowsort
SELECT ALL + + 19 col0, - 65 * + 23 - + 2
----
19
-1497

query II rowsort
SELECT ALL + 85 col2, 48
----
85
48

query I rowsort
SELECT - - 30 * - + 93 + + 12
----
-2778

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT ALL + COUNT( * ) * - 32 + - ( - - 58 )
----
-90

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + COUNT ( * ) * - 32 + - ( - - 58 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4230
SELECT ALL + CAST( NULL AS DECIMAL ) * COUNT( * ) + + 30 / + - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL + CAST ( NULL AS REAL ) * COUNT ( * ) + + 30 / + - 58 AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + 32, + 85 * + 64 + + 17 )
----
32

onlyif mysql # DIV for integer division: 
query II rowsort label-4232
SELECT + 59 DIV + 42 AS col2, 64 AS col1
----
1
64

skipif mysql # not compatible
query II rowsort label-4232
SELECT + 59 / + 42 AS col2, 64 AS col1
----
1
64

query II rowsort
SELECT - 71 * - + 6 * - 0, + 91 AS col2
----
0
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4234
SELECT ALL 82 * ( - 56 ), NULLIF ( - ( MIN( ALL - 9 ) ), + ( - + 34 ) ) AS col1
----
-4592
9

skipif mysql # not compatible
query II rowsort label-4234
SELECT ALL 82 * ( - 56 ), NULLIF ( - ( MIN ( ALL - 9 ) ), + ( - + 34 ) ) AS col1
----
-4592
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT + MAX( - + CAST( + 89 AS SIGNED ) )
----
-89

skipif mysql # not compatible
query I rowsort label-4235
SELECT + MAX ( - + CAST ( + 89 AS INTEGER ) )
----
-89

query I rowsort
SELECT + CASE + + 66 WHEN 17 - 44 * 93 THEN NULL WHEN + 42 THEN - - 13 * 51 + - 89 + 43 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT + 23 DIV - ( + 25 )
----
0

skipif mysql # not compatible
query I rowsort label-4237
SELECT + 23 / - ( + 25 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL - 2 * + 16 + 7 + + NULLIF ( + NULLIF ( COUNT( * ), + - 90 ), - 21 / - 68 * + - COUNT( DISTINCT - + 90 ) * + 49 + - - COUNT( * ) * - + 88 + + COALESCE ( - - ( + 3 ), 62 * - 96 * COUNT( * ) * 83 * NULLIF ( COALESCE ( MAX( ALL + 96 ), 11 ), - - 67 ) ) * - + 52 + - 18 ) * + + 24 * 38 AS col1
----
887

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - 2 * + 16 + 7 + + NULLIF ( + NULLIF ( COUNT ( * ), + - 90 ), - 21 / - 68 * + - COUNT ( DISTINCT - + 90 ) * + 49 + - - COUNT ( * ) * - + 88 + + COALESCE ( - - ( + 3 ), 62 * - 96 * COUNT ( * ) * 83 * NULLIF ( COALESCE ( MAX ( ALL + 96 ), 11 ), - - 67 ) ) * - + 52 + - 18 ) * + + 24 * 38 AS col1
----
887

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT DISTINCT + 18 * 62 * 21 + - COUNT( * )
----
23435

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT + 18 * 62 * 21 + - COUNT ( * )
----
23435

query I rowsort
SELECT CASE + 11 WHEN + + 14 THEN + - 2 * 87 / - + 55 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT ALL 52 * + - 52 + + - ( - 14 ) * - 10 * - 37 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL 52 * + - 52 + + - ( - 14 ) * - 10 * - 37 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4242
SELECT ALL CAST( NULL AS SIGNED ) * + + 20 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL CAST ( NULL AS INTEGER ) * + + 20 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4243
SELECT + 93 DIV 47 AS col2, + 43 * + 28 AS col0
----
1
1204

skipif mysql # not compatible
query II rowsort label-4243
SELECT + 93 / 47 AS col2, + 43 * + 28 AS col0
----
1
1204

onlyif mysql # DIV for integer division: 
query I rowsort label-4244
SELECT ALL - 56 DIV - - 20
----
-2

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - 56 / - - 20
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT DISTINCT 16 DIV - + 74
----
0

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT 16 / - + 74
----
0

query I rowsort
SELECT ALL 89 * + CASE - 79 WHEN + + 94 THEN + + 79 WHEN - + 97 + - - 90 THEN NULL END + + 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4247
SELECT + CASE - - SUM( 72 ) WHEN + + 85 - + - ( - AVG ( ALL 48 ) ) + + COUNT( * ) THEN + 37 END - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4247
SELECT + CASE - - SUM ( 72 ) WHEN + + 85 - + - ( - AVG ( ALL 48 ) ) + + COUNT ( * ) THEN + 37 END - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT - CAST( + 44 AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4248
SELECT - CAST ( + 44 AS INTEGER ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4249
SELECT MAX( ALL - 49 ) AS col0, 78 + 71
----
-49
149

skipif mysql # not compatible
query II rowsort label-4249
SELECT MAX ( ALL - 49 ) AS col0, 78 + 71
----
-49
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4250
SELECT + 57 - 58 + + 9 + - 84 + CASE SUM( - 62 ) WHEN + NULLIF ( + + CASE - - ( - - 64 ) WHEN + CAST( NULL AS SIGNED ) THEN + - ( ( + + 52 ) ) END, + 19 ) THEN NULL ELSE + 80 END, - COALESCE ( + 21, + - 78 ) + 53 col2
----
4
32

skipif mysql # not compatible
query II rowsort label-4250
SELECT + 57 - 58 + + 9 + - 84 + CASE SUM ( - 62 ) WHEN + NULLIF ( + + CASE - - ( - - 64 ) WHEN + CAST ( NULL AS INTEGER ) THEN + - ( ( + + 52 ) ) END, + 19 ) THEN NULL ELSE + 80 END, - COALESCE ( + 21, + - 78 ) + 53 col2
----
4
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + ( COALESCE ( COUNT( * ), - 37 ) ) + + 12 + - + 5 + - MAX( ALL 56 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4251
SELECT + ( COALESCE ( COUNT ( * ), - 37 ) ) + + 12 + - + 5 + - MAX ( ALL 56 ) AS col0
----
-48

query I rowsort
SELECT - 39 * 0 * + 73
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT - CAST( - NULLIF ( + 74, - CAST( + - 12 AS SIGNED ) ) AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4253
SELECT - CAST ( - NULLIF ( + 74, - CAST ( + - 12 AS INTEGER ) ) AS INTEGER ) AS col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4254
SELECT DISTINCT + SUM( ALL - + CASE 0 WHEN - CAST( - 54 AS SIGNED ) THEN + - 25 WHEN 82 THEN NULL ELSE + 82 END ) * + - ( + 24 )
----
1968

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT + SUM ( ALL - + CASE 0 WHEN - CAST ( - 54 AS INTEGER ) THEN + - 25 WHEN 82 THEN NULL ELSE + 82 END ) * + - ( + 24 )
----
1968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4255
SELECT DISTINCT 99 - ( + - ( 73 ) ) + 82 * - + SUM( DISTINCT - 65 ) * MIN( - + 71 ) + + COUNT( DISTINCT - 21 ) - 74 + + 52 + - CAST( 34 AS SIGNED ) * NULLIF ( - 35, + 27 + + 46 ) * - 78 + + MAX( ALL + 44 ) * + + ( + ( - 15 ) ), NULLIF ( 24, + CASE - 84 WHEN + 47 THEN - 12 WHEN + - 50 * + + 88 + NULLIF ( + 61, COUNT( * ) - + 1 - - COUNT( * ) ) * NULLIF ( - COUNT( * ), CASE 22 WHEN + 61 THEN + 46 ELSE NULL END + + 29 ) THEN - 85 / - 86 WHEN - NULLIF ( + 34, - COUNT( * ) ) THEN NULL END ) + - COUNT( * ) AS col1
----
-471759
23

skipif mysql # not compatible
query II rowsort label-4255
SELECT DISTINCT 99 - ( + - ( 73 ) ) + 82 * - + SUM ( DISTINCT - 65 ) * MIN ( - + 71 ) + + COUNT ( DISTINCT - 21 ) - 74 + + 52 + - CAST ( 34 AS INTEGER ) * NULLIF ( - 35, + 27 + + 46 ) * - 78 + + MAX ( ALL + 44 ) * + + ( + ( - 15 ) ), NULLIF ( 24, + CASE - 84 WHEN + 47 THEN - 12 WHEN + - 50 * + + 88 + NULLIF ( + 61, COUNT ( * ) - + 1 - - COUNT ( * ) ) * NULLIF ( - COUNT ( * ), CASE 22 WHEN + 61 THEN + 46 ELSE NULL END + + 29 ) THEN - 85 / - 86 WHEN - NULLIF ( + 34, - COUNT ( * ) ) THEN NULL END ) + - COUNT ( * ) AS col1
----
-471759
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4256
SELECT ALL - ( 24 ) * - MAX( ALL + 27 ) * + - COUNT( * ) * - 41 + - 2 * + CAST( 19 AS SIGNED ) AS col1
----
26530

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - ( 24 ) * - MAX ( ALL + 27 ) * + - COUNT ( * ) * - 41 + - 2 * + CAST ( 19 AS INTEGER ) AS col1
----
26530

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT + - 40 - + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-4257
SELECT + - 40 - + + COUNT ( * )
----
-41

query I rowsort
SELECT ALL - 34 * - 84
----
2856

query I rowsort
SELECT NULLIF ( + 35, - 59 ) AS col1
----
35

query I rowsort
SELECT - + 82 + - 81 + 73 + - + 84 * - 11
----
834

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT - COUNT( * ) - + - 69 + + 58 * + + 63
----
3722

skipif mysql # not compatible
query I rowsort label-4261
SELECT - COUNT ( * ) - + - 69 + + 58 * + + 63
----
3722

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT - + 13 DIV + 22
----
0

skipif mysql # not compatible
query I rowsort label-4262
SELECT - + 13 / + 22
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT - - COALESCE ( - 16, + SUM( - + 6 ) ) * + 46
----
-736

skipif mysql # not compatible
query I rowsort label-4263
SELECT - - COALESCE ( - 16, + SUM ( - + 6 ) ) * + 46
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT DISTINCT - + 76 * - MAX( DISTINCT - - 92 ) AS col2
----
6992

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT - + 76 * - MAX ( DISTINCT - - 92 ) AS col2
----
6992

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT ( - SUM( DISTINCT + 73 ) ) AS col0, + COUNT( * ) + - 67 * MAX( 93 )
----
-73
-6230

skipif mysql # not compatible
query II rowsort label-4265
SELECT ( - SUM ( DISTINCT + 73 ) ) AS col0, + COUNT ( * ) + - 67 * MAX ( 93 )
----
-73
-6230

query I rowsort
SELECT + - ( + 2 ) AS col1
----
-2

query I rowsort
SELECT - 0 * + + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - - 54 * + 72 + - ( + COUNT( * ) )
----
3887

skipif mysql # not compatible
query I rowsort label-4268
SELECT - - 54 * + 72 + - ( + COUNT ( * ) )
----
3887

onlyif mysql # DIV for integer division: 
query II rowsort label-4269
SELECT - NULLIF ( + ( 99 ), - ( ( + + 23 ) ) ) DIV - 37 + + 66 + - 68 * 35 DIV - 84 AS col1, 8 AS col2
----
96
8

skipif mysql # not compatible
query II rowsort label-4269
SELECT - NULLIF ( + ( 99 ), - ( ( + + 23 ) ) ) / - 37 + + 66 + - 68 * 35 / - 84 AS col1, 8 AS col2
----
96
8

query II rowsort
SELECT + 51 AS col1, 19 + - 3
----
51
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT ALL 35 + - 57 * - COUNT( * ) col1, 80 AS col1
----
92
80

skipif mysql # not compatible
query II rowsort label-4271
SELECT ALL 35 + - 57 * - COUNT ( * ) col1, 80 AS col1
----
92
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4272
SELECT 54 - + + 82 + + + COUNT( * ), ( - 60 ) col2
----
-27
-60

skipif mysql # not compatible
query II rowsort label-4272
SELECT 54 - + + 82 + + + COUNT ( * ), ( - 60 ) col2
----
-27
-60

query I rowsort
SELECT DISTINCT 29 * - 4
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT COUNT( DISTINCT - 54 ) + - 74 * 80 + MIN( NULLIF ( + 9, 49 ) )
----
-5910

skipif mysql # not compatible
query I rowsort label-4274
SELECT COUNT ( DISTINCT - 54 ) + - 74 * 80 + MIN ( NULLIF ( + 9, 49 ) )
----
-5910

query II rowsort
SELECT + 24, + 74 AS col1
----
24
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT 82 + - COALESCE ( + ( 87 ), + 36 DIV 53 )
----
-5

skipif mysql # not compatible
query I rowsort label-4276
SELECT 82 + - COALESCE ( + ( 87 ), + 36 / 53 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT ALL - 97 - + CAST( NULL AS SIGNED ) - - CASE + - 96 WHEN + 36 THEN - 11 ELSE NULL END + - + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL - 97 - + CAST ( NULL AS INTEGER ) - - CASE + - 96 WHEN + 36 THEN - 11 ELSE NULL END + - + 56 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4278
SELECT CASE 7 WHEN + - CAST( - 85 AS DECIMAL ) THEN + ( - + 10 ) WHEN - CAST( + 2 AS SIGNED ) THEN NULL ELSE MAX( DISTINCT 80 ) - - 19 END * - 5 + + - ( 57 ) + - 41 * - 64
----
2072

skipif mysql # not compatible
query I rowsort label-4278
SELECT CASE 7 WHEN + - CAST ( - 85 AS REAL ) THEN + ( - + 10 ) WHEN - CAST ( + 2 AS INTEGER ) THEN NULL ELSE MAX ( DISTINCT 80 ) - - 19 END * - 5 + + - ( 57 ) + - 41 * - 64
----
2072

query I rowsort
SELECT 89 * - + 79
----
-7031

onlyif mysql # aggregate syntax: 
query II rowsort label-4280
SELECT ALL 28 * - MAX( ALL + 24 ) AS col2, + 1 * - 92 * - + 25
----
-672
2300

skipif mysql # not compatible
query II rowsort label-4280
SELECT ALL 28 * - MAX ( ALL + 24 ) AS col2, + 1 * - 92 * - + 25
----
-672
2300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4281
SELECT 98 * + - CAST( + 1 AS SIGNED ) - - + 62 + 37 + + - ( COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4281
SELECT 98 * + - CAST ( + 1 AS INTEGER ) - - + 62 + 37 + + - ( COUNT ( * ) ) col0
----
0

query I rowsort
SELECT 79 * - 18
----
-1422

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT DISTINCT - 80 - + - 1 + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT - 80 - + - 1 + COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-4284
SELECT ALL 47 AS col2, + ( + MIN( - 95 ) ) AS col1
----
47
-95

skipif mysql # not compatible
query II rowsort label-4284
SELECT ALL 47 AS col2, + ( + MIN ( - 95 ) ) AS col1
----
47
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4285
SELECT ALL 71 DIV + + 6 * + + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL 71 / + + 6 * + + COUNT ( * ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4286
SELECT DISTINCT 33 AS col1, COUNT( * ) + 47
----
33
48

skipif mysql # not compatible
query II rowsort label-4286
SELECT DISTINCT 33 AS col1, COUNT ( * ) + 47
----
33
48

query I rowsort
SELECT ALL + 32 col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4288
SELECT - CAST( + - 10 AS SIGNED ) + + 78
----
88

skipif mysql # not compatible
query I rowsort label-4288
SELECT - CAST ( + - 10 AS INTEGER ) + + 78
----
88

query I rowsort
SELECT DISTINCT ( 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ( + - ( CASE - + 17 WHEN CASE + MIN( DISTINCT 83 ) WHEN - 26 + + + 52 THEN + - 42 + - 16 + + 95 + - MAX( DISTINCT - 92 ) + - ( + 12 ) * 21 WHEN - 41 - - + COUNT( * ) THEN NULL WHEN + - COUNT( * ) THEN + COUNT( * ) * - 51 / - AVG ( + + 94 ) * - - 2 * + 70 / - - COUNT( * ) + - - 11 - - - COUNT( * ) END THEN + NULLIF ( - - COUNT( * ), 56 - - 29 ) END ) ) + + SUM( ALL - - ( - 58 ) ) * + MAX( DISTINCT 53 ) + + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT ( + - ( CASE - + 17 WHEN CASE + MIN ( DISTINCT 83 ) WHEN - 26 + + + 52 THEN + - 42 + - 16 + + 95 + - MAX ( DISTINCT - 92 ) + - ( + 12 ) * 21 WHEN - 41 - - + COUNT ( * ) THEN NULL WHEN + - COUNT ( * ) THEN + COUNT ( * ) * - 51 / - AVG ( + + 94 ) * - - 2 * + 70 / - - COUNT ( * ) + - - 11 - - - COUNT ( * ) END THEN + NULLIF ( - - COUNT ( * ), 56 - - 29 ) END ) ) + + SUM ( ALL - - ( - 58 ) ) * + MAX ( DISTINCT 53 ) + + 31 AS col1
----
NULL

query I rowsort
SELECT 14 + - + 61 + 76 * + - 11 * - 26 * + 18 AS col2
----
391201

query I rowsort
SELECT ALL ( + 64 ) + + 92 + - 72
----
84

query II rowsort
SELECT ALL + 73 * 46 + - - 76, + 31 AS col1
----
3434
31

query I rowsort
SELECT ALL ( + 16 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - - SUM( ALL - 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4295
SELECT - - SUM ( ALL - 83 ) AS col1
----
-83

query II rowsort
SELECT ALL 68 AS col0, 38
----
68
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT ALL ( - + 84 ) + - ( - CAST( 51 AS SIGNED ) ) - - 83 / - - COUNT( * ) + - CASE - 51 WHEN - 1 THEN 94 ELSE NULL END * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL ( - + 84 ) + - ( - CAST ( 51 AS INTEGER ) ) - - 83 / - - COUNT ( * ) + - CASE - 51 WHEN - 1 THEN 94 ELSE NULL END * + 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4298
SELECT - 84 + 93 + - - 72 AS col0, + 99 + - 15 + + MAX( ALL - 45 ) * 14
----
81
-546

skipif mysql # not compatible
query II rowsort label-4298
SELECT - 84 + 93 + - - 72 AS col0, + 99 + - 15 + + MAX ( ALL - 45 ) * 14
----
81
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4299
SELECT - 11 * - NULLIF ( + NULLIF ( - COUNT( * ), + COUNT( ALL + 77 ) / 58 / - CAST( 1 AS SIGNED ) * 97 + + COUNT( DISTINCT 20 ) + - + CASE + 0 WHEN + - ( + + 82 ) THEN 8 WHEN + 20 THEN NULL ELSE NULL END - - - 52 * + 36 ), 13 ) + 26 col0
----
15

skipif mysql # not compatible
query I rowsort label-4299
SELECT - 11 * - NULLIF ( + NULLIF ( - COUNT ( * ), + COUNT ( ALL + 77 ) / 58 / - CAST ( 1 AS INTEGER ) * 97 + + COUNT ( DISTINCT 20 ) + - + CASE + 0 WHEN + - ( + + 82 ) THEN 8 WHEN + 20 THEN NULL ELSE NULL END - - - 52 * + 36 ), 13 ) + 26 col0
----
15

query I rowsort
SELECT + 7 + + 89 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4301
SELECT + 30 AS col1, 6 + - SUM( DISTINCT + 83 ) col2
----
30
-77

skipif mysql # not compatible
query II rowsort label-4301
SELECT + 30 AS col1, 6 + - SUM ( DISTINCT + 83 ) col2
----
30
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT NULLIF ( + 44, + COUNT( * ) ) DIV - + 30
----
-1

skipif mysql # not compatible
query I rowsort label-4302
SELECT NULLIF ( + 44, + COUNT ( * ) ) / - + 30
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT COUNT( * ) * + 19 + + 9 * + - NULLIF ( - 20, - - 38 ) * + 76 * - - 70
----
957619

skipif mysql # not compatible
query I rowsort label-4303
SELECT COUNT ( * ) * + 19 + + 9 * + - NULLIF ( - 20, - - 38 ) * + 76 * - - 70
----
957619

query I rowsort
SELECT ALL - 28 + - - 15 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT 63 + - COUNT( * ) + 9 * + 7 + + 45 AS col2
----
170

skipif mysql # not compatible
query I rowsort label-4305
SELECT 63 + - COUNT ( * ) + 9 * + 7 + + 45 AS col2
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT ALL - COUNT( * ) * 83
----
-83

skipif mysql # not compatible
query I rowsort label-4306
SELECT ALL - COUNT ( * ) * 83
----
-83

query I rowsort
SELECT ALL - 29 - + 76 AS col2
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4308
SELECT ( CAST( + - 67 AS SIGNED ) ) * + 78 AS col2, ( - 26 )
----
-5226
-26

skipif mysql # not compatible
query II rowsort label-4308
SELECT ( CAST ( + - 67 AS INTEGER ) ) * + 78 AS col2, ( - 26 )
----
-5226
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4309
SELECT ( + + 68 ) DIV - 58 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4309
SELECT ( + + 68 ) / - 58 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4310
SELECT 89 DIV + 61 AS col2, 92
----
1
92

skipif mysql # not compatible
query II rowsort label-4310
SELECT 89 / + 61 AS col2, 92
----
1
92

query I rowsort
SELECT DISTINCT + 56 * - + 80
----
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT 98 + + MAX( + 13 ) col1
----
111

skipif mysql # not compatible
query I rowsort label-4312
SELECT 98 + + MAX ( + 13 ) col1
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-4313
SELECT ALL - ( - 99 ) AS col0, 23 * - COUNT( * ) AS col2
----
99
-23

skipif mysql # not compatible
query II rowsort label-4313
SELECT ALL - ( - 99 ) AS col0, 23 * - COUNT ( * ) AS col2
----
99
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT COUNT( * ) + - + 12 + - 79 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-4314
SELECT COUNT ( * ) + - + 12 + - 79 AS col1
----
-90

query I rowsort
SELECT DISTINCT - 11 * - + NULLIF ( + 69, + ( - - 65 ) / 30 - + 8 ) AS col1
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT 88 * MIN( - 14 ) AS col0
----
-1232

skipif mysql # not compatible
query I rowsort label-4316
SELECT 88 * MIN ( - 14 ) AS col0
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL - 94 * COUNT( * ) * - 10
----
940

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL - 94 * COUNT ( * ) * - 10
----
940

query I rowsort
SELECT ALL - ( + + ( - 39 ) )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT ALL MAX( 89 ) * + COUNT( * ) * + 81 + - 88 - 2 + + 99 + - 61 + - + 61 DIV - 93 * - + 60 + - + 57 - - NULLIF ( - 81, 99 ) * - 5 AS col1
----
7505

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL MAX ( 89 ) * + COUNT ( * ) * + 81 + - 88 - 2 + + 99 + - 61 + - + 61 / - 93 * - + 60 + - + 57 - - NULLIF ( - 81, 99 ) * - 5 AS col1
----
7505

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4320
SELECT 1 / - - CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT 1 / - - CAST ( - CAST ( NULL AS REAL ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT + MAX( ALL - 45 ) - - + 76
----
31

skipif mysql # not compatible
query I rowsort label-4321
SELECT + MAX ( ALL - 45 ) - - + 76
----
31

query I rowsort
SELECT 93 - 46 * + ( + 14 ) - - - 64
----
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT MAX( + 71 ) col2
----
71

skipif mysql # not compatible
query I rowsort label-4323
SELECT MAX ( + 71 ) col2
----
71

query II rowsort
SELECT DISTINCT + + 17 * + 41 AS col1, + 1 AS col0
----
697
1

query I rowsort
SELECT ALL - COALESCE ( + 15, 51 + - 99 ) + + 2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT DISTINCT + SUM( 85 )
----
85

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + SUM ( 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT - + 5 + - COUNT( * ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT - + 5 + - COUNT ( * ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT 62 - - MIN( DISTINCT - 51 ) + + + 1 + 39 * 98 AS col1
----
3834

skipif mysql # not compatible
query I rowsort label-4328
SELECT 62 - - MIN ( DISTINCT - 51 ) + + + 1 + 39 * 98 AS col1
----
3834

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4329
SELECT DISTINCT - 99 + - CAST( - + 60 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT - 99 + - CAST ( - + 60 AS INTEGER )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL COUNT( * ) + 8 + + - 94 * - MAX( DISTINCT 61 ) AS col1
----
5743

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL COUNT ( * ) + 8 + + - 94 * - MAX ( DISTINCT 61 ) AS col1
----
5743

onlyif mysql # aggregate syntax: 
query II rowsort label-4331
SELECT - + COUNT( - + 17 ), 39 AS col2
----
-1
39

skipif mysql # not compatible
query II rowsort label-4331
SELECT - + COUNT ( - + 17 ), 39 AS col2
----
-1
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4332
SELECT DISTINCT 47 DIV + COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT 47 / + COUNT ( * ) AS col2
----
47

query I rowsort
SELECT + 91 * - 24 + + CASE + + 33 WHEN - + 91 THEN + 70 END AS col0
----
NULL

query I rowsort
SELECT + 41 * - 23 * 11
----
-10373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4335
SELECT - COALESCE ( - 84, - CAST( NULL AS SIGNED ), - - COUNT( * ), + 17 )
----
84

skipif mysql # not compatible
query I rowsort label-4335
SELECT - COALESCE ( - 84, - CAST ( NULL AS INTEGER ), - - COUNT ( * ), + 17 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT + MIN( - 70 ) + + 9
----
-61

skipif mysql # not compatible
query I rowsort label-4336
SELECT + MIN ( - 70 ) + + 9
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL 65 * - NULLIF ( - SUM( DISTINCT + + 26 ), ( 89 ) / + + MIN( DISTINCT - 8 ) + + 54 / - COUNT( * ) * + - ( - 52 ) ) - - + CASE 94 WHEN - 61 THEN NULL WHEN + 27 THEN 17 * + + 4 * + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL 65 * - NULLIF ( - SUM ( DISTINCT + + 26 ), ( 89 ) / + + MIN ( DISTINCT - 8 ) + + 54 / - COUNT ( * ) * + - ( - 52 ) ) - - + CASE 94 WHEN - 61 THEN NULL WHEN + 27 THEN 17 * + + 4 * + 87 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT CASE + CASE - 34 WHEN - 72 THEN + 54 ELSE 94 END WHEN + - COUNT( * ) + 37 THEN - 63 ELSE 7 END AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4338
SELECT CASE + CASE - 34 WHEN - 72 THEN + 54 ELSE 94 END WHEN + - COUNT ( * ) + 37 THEN - 63 ELSE 7 END AS col1
----
7

query II rowsort
SELECT NULLIF ( - 36, 6 ) AS col2, 88 AS col1
----
-36
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT + 90 DIV ( - 96 ) + + - 31 * 34
----
-1054

skipif mysql # not compatible
query I rowsort label-4340
SELECT + 90 / ( - 96 ) + + - 31 * 34
----
-1054

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4341
SELECT DISTINCT CAST( + 55 AS DECIMAL ) * - 24 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT CAST ( + 55 AS REAL ) * - 24 - + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT + 40 * NULLIF ( - - 28, + 72 ) - ( - + COUNT( * ) ) + COUNT( * ) * - + 4 - + 40
----
1077

skipif mysql # not compatible
query I rowsort label-4342
SELECT + 40 * NULLIF ( - - 28, + 72 ) - ( - + COUNT ( * ) ) + COUNT ( * ) * - + 4 - + 40
----
1077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4343
SELECT DISTINCT + 25 * + COUNT( * ) DIV 84 * 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + 25 * + COUNT ( * ) / 84 * 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT ALL + NULLIF ( + - COALESCE ( - 1, + 38 ), 56 ) * + - 50 * + + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL + NULLIF ( + - COALESCE ( - 1, + 38 ), 56 ) * + - 50 * + + COUNT ( * )
----
-50

query I rowsort
SELECT - 80 + + 98 * - 69 AS col0
----
-6842

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ALL + COUNT( * ) * + + 46 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL + COUNT ( * ) * + + 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT COUNT( DISTINCT 47 )
----
1

skipif mysql # not compatible
query I rowsort label-4347
SELECT COUNT ( DISTINCT 47 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT - 98 DIV + 92 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4348
SELECT - 98 / + 92 AS col2
----
-1

query I rowsort
SELECT - 56 + ( - 67 )
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ( - - 48 ) * + - 93 + + COUNT( * )
----
-4463

skipif mysql # not compatible
query I rowsort label-4350
SELECT ( - - 48 ) * + - 93 + + COUNT ( * )
----
-4463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT CAST( - 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4351
SELECT CAST ( - 83 AS INTEGER ) AS col0
----
-83

query I rowsort
SELECT ALL - 55 * - 2 * 12 * - 50
----
-66000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT + CAST( NULL AS SIGNED ) * - CAST( - 54 AS SIGNED ) + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT + CAST ( NULL AS INTEGER ) * - CAST ( - 54 AS INTEGER ) + + 46 AS col1
----
NULL

query I rowsort
SELECT - + 14 * + 57 + + 26 * 20 AS col0
----
-278

query I rowsort
SELECT DISTINCT - + 2 + + + 57 + + + 14 * + NULLIF ( 54, + 41 ) * 48 - + 56 AS col1
----
36287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT - + 34 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT - + 34 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT - + 90 * + 0 / 14 / - COUNT( * ) - + CAST( NULL AS SIGNED ) * - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT - + 90 * + 0 / 14 / - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * - 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4358
SELECT + MIN( DISTINCT CASE ( ( - - 42 ) ) WHEN ( + 76 ) THEN - - CAST( NULL AS SIGNED ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT + MIN ( DISTINCT CASE ( ( - - 42 ) ) WHEN ( + 76 ) THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT - COALESCE ( - + 10, - 54 ) + - + 82 AS col1
----
-72

query I rowsort
SELECT ALL 63 * 57 col1
----
3591

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4361
SELECT - 33 * CAST( NULL AS SIGNED ) + + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4361
SELECT - 33 * CAST ( NULL AS INTEGER ) + + 41
----
NULL

query I rowsort
SELECT ALL + 18 * 25 * + 44
----
19800

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT + ( CASE - MAX( 49 ) WHEN + 86 THEN + + ( - COUNT( * ) ) + 56 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT + ( CASE - MAX ( 49 ) WHEN + 86 THEN + + ( - COUNT ( * ) ) + 56 END )
----
NULL

query I rowsort
SELECT DISTINCT + ( + 17 ) * 37 col2
----
629

query I rowsort
SELECT DISTINCT - 29 - - + 39
----
10

query I rowsort
SELECT + 94 + 42 + + 52 + - - 48
----
236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4367
SELECT ALL + 11 - + + ( - MIN( DISTINCT + + 76 ) ) + - 74 * - + 13 + 48 - + 92 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + 11 - + + ( - MIN ( DISTINCT + + 76 ) ) + - 74 * - + 13 + 48 - + 92 * CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT 33 AS col2, + 24 - - 35 + - 74
----
33
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4369
SELECT - 41 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-4369
SELECT - 41 / 51
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4370
SELECT ALL 52 DIV 16 * 23 * 22
----
1518

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL 52 / 16 * 23 * 22
----
1518

onlyif mysql # aggregate syntax: 
query II rowsort label-4371
SELECT + COUNT( * ) AS col0, 92 + - 95 AS col2
----
1
-3

skipif mysql # not compatible
query II rowsort label-4371
SELECT + COUNT ( * ) AS col0, 92 + - 95 AS col2
----
1
-3

query II rowsort
SELECT + 64 + + 38 AS col0, + 58 + - 14 AS col2
----
102
44

query I rowsort
SELECT + 23 * ( + + 57 )
----
1311

query I rowsort
SELECT - 36 * - 90 + - 22 AS col0
----
3218

query I rowsort
SELECT + 28 + - 40 + - + 68 * - 2 + 59
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT + ( + COUNT( * ) ) * - 63 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-4376
SELECT + ( + COUNT ( * ) ) * - 63 AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT + CAST( NULL AS SIGNED ) + + 20 + + - 35 / + 97 * - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT + CAST ( NULL AS INTEGER ) + + 20 + + - 35 / + 97 * - 92
----
NULL

query I rowsort
SELECT ALL 10 * + - 22 AS col0
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT + COALESCE ( 16, COUNT( * ), - - 39 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-4379
SELECT + COALESCE ( 16, COUNT ( * ), - - 39 ) AS col1
----
16

query I rowsort
SELECT + ( 7 ) * + - ( + 10 ) + 95
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT + 57 * + SUM( - ( - 5 ) ) AS col2
----
285

skipif mysql # not compatible
query I rowsort label-4381
SELECT + 57 * + SUM ( - ( - 5 ) ) AS col2
----
285

query II rowsort
SELECT ( - 22 ), - 79 col1
----
-22
-79

query I rowsort
SELECT ( - ( - ( + 27 ) ) ) AS col2
----
27

query I rowsort
SELECT + ( 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT - 50 + + MAX( + + 0 )
----
-50

skipif mysql # not compatible
query I rowsort label-4385
SELECT - 50 + + MAX ( + + 0 )
----
-50

query II rowsort
SELECT 53 AS col0, + 86 + 86
----
53
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT + ( - COUNT( * ) ) * 68 col2
----
-68

skipif mysql # not compatible
query I rowsort label-4387
SELECT + ( - COUNT ( * ) ) * 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL - COUNT( * ) * 69 + 20
----
-49

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL - COUNT ( * ) * 69 + 20
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-4389
SELECT + COUNT( * ), 88 AS col2
----
1
88

skipif mysql # not compatible
query II rowsort label-4389
SELECT + COUNT ( * ), 88 AS col2
----
1
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4390
SELECT 66 AS col1, 61 + + - 73 + + - 61 DIV + 4 + - COUNT( ALL 57 )
----
66
-28

skipif mysql # not compatible
query II rowsort label-4390
SELECT 66 AS col1, 61 + + - 73 + + - 61 / + 4 + - COUNT ( ALL 57 )
----
66
-28

query II rowsort
SELECT DISTINCT + 41 * - 68 * - 14 + + 61 AS col2, 12
----
39093
12

query I rowsort
SELECT 79 - 99 AS col2
----
-20

query I rowsort
SELECT 22 * - 71
----
-1562

query II rowsort
SELECT 46 AS col0, + 16
----
46
16

query I rowsort
SELECT - 94 + - 78 + - + 80 + + 17 * - 42 * 26 AS col0
----
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT 68 * - ( + + COUNT( + + 24 ) )
----
-68

skipif mysql # not compatible
query I rowsort label-4396
SELECT 68 * - ( + + COUNT ( + + 24 ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT MAX( ALL + - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-4397
SELECT MAX ( ALL + - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT 99 + + - COUNT( + + 31 )
----
98

skipif mysql # not compatible
query I rowsort label-4398
SELECT 99 + + - COUNT ( + + 31 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4399
SELECT ALL - + 25 - CAST( + 25 AS SIGNED ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - + 25 - CAST ( + 25 AS INTEGER ) AS col1
----
-50

query I rowsort
SELECT ALL ( - 60 ) * - 67 * + - 45 + + + 14 AS col2
----
-180886

query II rowsort
SELECT ALL ( + 27 ), 27
----
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT + ( - - 66 ) - COUNT( DISTINCT + ( + + 40 ) )
----
65

skipif mysql # not compatible
query I rowsort label-4402
SELECT + ( - - 66 ) - COUNT ( DISTINCT + ( + + 40 ) )
----
65

query I rowsort
SELECT ALL - ( + 99 ) AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4404
SELECT + 4, ( - + 65 ) + 79 + 5 - 52 + - CAST( 2 AS SIGNED ) AS col0
----
4
-35

skipif mysql # not compatible
query II rowsort label-4404
SELECT + 4, ( - + 65 ) + 79 + 5 - 52 + - CAST ( 2 AS INTEGER ) AS col0
----
4
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-4405
SELECT 47 * - MAX( DISTINCT + 6 ), 71 AS col2
----
-282
71

skipif mysql # not compatible
query II rowsort label-4405
SELECT 47 * - MAX ( DISTINCT + 6 ), 71 AS col2
----
-282
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4406
SELECT SUM( + 44 ) * - NULLIF ( + 70, + 56 * - - 59 * + COUNT( * ) ) col1, + 10 AS col2
----
-3080
10

skipif mysql # not compatible
query II rowsort label-4406
SELECT SUM ( + 44 ) * - NULLIF ( + 70, + 56 * - - 59 * + COUNT ( * ) ) col1, + 10 AS col2
----
-3080
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT 56 + - 94 - + + 46 + - - 32 + COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4407
SELECT 56 + - 94 - + + 46 + - - 32 + COUNT ( * ) AS col0
----
-51

query I rowsort
SELECT DISTINCT - 52 * + 7 * + 14 AS col1
----
-5096

query II rowsort
SELECT 66 + + 31 col2, 77 AS col1
----
97
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT 72 * COUNT( * ) * - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4410
SELECT 72 * COUNT ( * ) * - COUNT ( * ) AS col2
----
-72

onlyif mysql # DIV for integer division: 
query II rowsort label-4411
SELECT ALL - 70 DIV + 52 AS col1, 52 col0
----
-1
52

skipif mysql # not compatible
query II rowsort label-4411
SELECT ALL - 70 / + 52 AS col1, 52 col0
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT - COUNT( * ) * - ( + COUNT( + + 55 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT - COUNT ( * ) * - ( + COUNT ( + + 55 ) ) col2
----
1

query I rowsort
SELECT DISTINCT - 52 * + 32 AS col1
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL 99 + - MAX( - 40 )
----
139

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL 99 + - MAX ( - 40 )
----
139

query I rowsort
SELECT ALL - 35 * 10
----
-350

query I rowsort
SELECT ALL + 80 * - 7 AS col2
----
-560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT + COUNT( * ) * - + 80 + + - CAST( NULL AS SIGNED ) * - 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT + COUNT ( * ) * - + 80 + + - CAST ( NULL AS INTEGER ) * - 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4418
SELECT ALL - COUNT( * ) + 5 AS col0, + 3 * + 3 AS col1
----
4
9

skipif mysql # not compatible
query II rowsort label-4418
SELECT ALL - COUNT ( * ) + 5 AS col0, + 3 * + 3 AS col1
----
4
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT MIN( + 11 ) + + 5
----
16

skipif mysql # not compatible
query I rowsort label-4419
SELECT MIN ( + 11 ) + + 5
----
16

query I rowsort
SELECT ALL - 8 + - NULLIF ( - ( + 4 ), - + 36 ) + - + 50 col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT - 36 + - ( - COUNT( DISTINCT - 13 ) ) + + MIN( - 89 )
----
-124

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT - 36 + - ( - COUNT ( DISTINCT - 13 ) ) + + MIN ( - 89 )
----
-124

query I rowsort
SELECT ALL + 14 + - 96
----
-82

query I rowsort
SELECT ALL 68 + 10 + - - 0 + - ( 53 ) + 33 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT DISTINCT + 45 * + - MIN( 0 ) * + CAST( NULL AS SIGNED ) * 48 + - + 58 + ( 30 ) - + 98 / - 26 * - 4 * - 89 * 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT + 45 * + - MIN ( 0 ) * + CAST ( NULL AS INTEGER ) * 48 + - + 58 + ( 30 ) - + 98 / - 26 * - 4 * - 89 * 66 AS col1
----
NULL

query I rowsort
SELECT 14 + + 20
----
34

query I rowsort
SELECT ALL 95 + - 9 * + + 40 AS col1
----
-265

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT ALL - + COALESCE ( - 61, ( + + 45 ) DIV + + 48 DIV - 65 )
----
61

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - + COALESCE ( - 61, ( + + 45 ) / + + 48 / - 65 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4428
SELECT + - 47 * 75 + + 69 DIV - 74 * - 13 AS col0, + COUNT( * ) + + 47
----
-3525
48

skipif mysql # not compatible
query II rowsort label-4428
SELECT + - 47 * 75 + + 69 / - 74 * - 13 AS col0, + COUNT ( * ) + + 47
----
-3525
48

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT DISTINCT + 69 DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT + 69 / - 91 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4430
SELECT COUNT( + + 62 ) DIV + ( + - 55 )
----
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT COUNT ( + + 62 ) / + ( + - 55 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4431
SELECT CAST( 41 AS SIGNED ) + - - 92 + - 70 * - + COUNT( DISTINCT + - 28 ) * - SUM( DISTINCT + - 41 )
----
3003

skipif mysql # not compatible
query I rowsort label-4431
SELECT CAST ( 41 AS INTEGER ) + - - 92 + - 70 * - + COUNT ( DISTINCT + - 28 ) * - SUM ( DISTINCT + - 41 )
----
3003

query I rowsort
SELECT DISTINCT - 66 * - 87
----
5742

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT ALL 99 * + MAX( + 69 ) AS col1, + 80 AS col0
----
6831
80

skipif mysql # not compatible
query II rowsort label-4433
SELECT ALL 99 * + MAX ( + 69 ) AS col1, + 80 AS col0
----
6831
80

query I rowsort
SELECT 82 * 15 * - ( + 40 )
----
-49200

query II rowsort
SELECT ALL - 39 + + 73 - 13, + 6 AS col0
----
21
6

query I rowsort
SELECT 88 + + 87
----
175

query I rowsort
SELECT DISTINCT 34 * - - 17 AS col0
----
578

query I rowsort
SELECT 98 + + 73
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-4439
SELECT - 17, COUNT( * ) + + 77 + - COUNT( * ) AS col2
----
-17
77

skipif mysql # not compatible
query II rowsort label-4439
SELECT - 17, COUNT ( * ) + + 77 + - COUNT ( * ) AS col2
----
-17
77

query I rowsort
SELECT DISTINCT + 94 + + 91
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL + MIN( DISTINCT + - 75 ) + + + 22 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL + MIN ( DISTINCT + - 75 ) + + + 22 AS col0
----
-53

query II rowsort
SELECT 1 col1, - 80 AS col2
----
1
-80

query I rowsort
SELECT 23 + - 79 + + 75 + - NULLIF ( - 16, + + 32 * + - 9 ) AS col0
----
35

query I rowsort
SELECT 97 * 16
----
1552

query I rowsort
SELECT 33 + + - 61 AS col0
----
-28

query I rowsort
SELECT ALL - ( + 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT NULLIF ( + + 60, MIN( - 53 ) + - + COALESCE ( + - 16, 3 * 59, 44 ) )
----
60

skipif mysql # not compatible
query I rowsort label-4447
SELECT NULLIF ( + + 60, MIN ( - 53 ) + - + COALESCE ( + - 16, 3 * 59, 44 ) )
----
60

query I rowsort
SELECT ALL - 64 * - 63 + + 44
----
4076

query I rowsort
SELECT ALL - 4 * COALESCE ( - - 87, - 81 * + 45 - - 47 + 26, 91 )
----
-348

onlyif mysql # aggregate syntax: 
query II rowsort label-4450
SELECT COUNT( * ) AS col2, - 71 + + - 63 AS col1
----
1
-134

skipif mysql # not compatible
query II rowsort label-4450
SELECT COUNT ( * ) AS col2, - 71 + + - 63 AS col1
----
1
-134

query I rowsort
SELECT + - 47 * + 99
----
-4653

query II rowsort
SELECT ALL + 72 AS col1, 16 col1
----
72
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT - - 77 * + 14 + + + COUNT( DISTINCT + - 49 ) AS col0
----
1079

skipif mysql # not compatible
query I rowsort label-4453
SELECT - - 77 * + 14 + + + COUNT ( DISTINCT + - 49 ) AS col0
----
1079

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4454
SELECT + ( + - 88 ) * + - 2 + 74 AS col1, 11 + COUNT( * ) DIV + COUNT( * )
----
250
12

skipif mysql # not compatible
query II rowsort label-4454
SELECT + ( + - 88 ) * + - 2 + 74 AS col1, 11 + COUNT ( * ) / + COUNT ( * )
----
250
12

query II rowsort
SELECT + 98 AS col1, 22 + - + 24 + + 38 + - 67 + - + 88 + + ( - 11 ) * + 88 * + - 42
----
98
40537

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4456
SELECT + - 97 DIV SUM( 80 ) DIV + - 26 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4456
SELECT + - 97 / SUM ( 80 ) / + - 26 * + COUNT ( * )
----
0

query II rowsort
SELECT DISTINCT + - 42 AS col0, 72 AS col0
----
-42
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4458
SELECT ALL + CASE + 91 WHEN + COUNT( * ) THEN - 75 END AS col0, + 33 * + - 64 - - 80 - NULLIF ( - SUM( 86 ), 34 ) + + 97 DIV + COALESCE ( + 29, - 10 * 90 DIV 27 DIV 56 * + - 4 ) + 84
----
NULL
-1859

skipif mysql # not compatible
query II rowsort label-4458
SELECT ALL + CASE + 91 WHEN + COUNT ( * ) THEN - 75 END AS col0, + 33 * + - 64 - - 80 - NULLIF ( - SUM ( 86 ), 34 ) + + 97 / + COALESCE ( + 29, - 10 * 90 / 27 / 56 * + - 4 ) + 84
----
NULL
-1859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT DISTINCT + + CAST( - 44 AS SIGNED ) * - 87 + 9 - 34
----
3803

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT + + CAST ( - 44 AS INTEGER ) * - 87 + 9 - 34
----
3803

query I rowsort
SELECT ALL - 51 * 80 * 21 * + 38
----
-3255840

query I rowsort
SELECT + - 45 * 65 * - 30 * - 87
----
-7634250

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT DISTINCT - 40 * + 6 * - COUNT( * ) + + 75
----
315

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT - 40 * + 6 * - COUNT ( * ) + + 75
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT - + SUM( DISTINCT 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4463
SELECT - + SUM ( DISTINCT 10 ) AS col0
----
-10

query II rowsort
SELECT - - NULLIF ( + 78, - 88 ) col2, 21 * + 71
----
78
1491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT - - 1 + - 49 * - + 24 - 30 - + 60 DIV + 28 + - 36 - MIN( 58 )
----
1051

skipif mysql # not compatible
query I rowsort label-4465
SELECT - - 1 + - 49 * - + 24 - 30 - + 60 / + 28 + - 36 - MIN ( 58 )
----
1051

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT + - MIN( DISTINCT 82 ) * 96 * - - 5 + - 27
----
-39387

skipif mysql # not compatible
query I rowsort label-4466
SELECT + - MIN ( DISTINCT 82 ) * 96 * - - 5 + - 27
----
-39387

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL + 7 + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL + 7 + + COUNT ( * )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4468
SELECT ALL 0 * + 50 * + NULLIF ( COUNT( * ), 47 ) DIV + 2
----
0

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL 0 * + 50 * + NULLIF ( COUNT ( * ), 47 ) / + 2
----
0

query I rowsort
SELECT - CASE + 67 WHEN 70 THEN NULL WHEN - 71 THEN 34 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ALL COUNT( * ) + - - 75 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL COUNT ( * ) + - - 75 AS col1
----
76

query I rowsort
SELECT ALL 82 + - 72 + + 35 AS col1
----
45

query I rowsort
SELECT DISTINCT 52 + - ( - 97 )
----
149

query I rowsort
SELECT + 64 - + 56
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4474
SELECT + 81 DIV + NULLIF ( - + 21, + + AVG ( ALL - - 76 ) DIV COUNT( * ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4474
SELECT + 81 / + NULLIF ( - + 21, + + AVG ( ALL - - 76 ) / COUNT ( * ) ) AS col0
----
-3

query I rowsort
SELECT - COALESCE ( 82, - 87 ) AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT + ( CASE - - 28 WHEN + - 7 + 70 * - - 0 THEN + 53 * - 76 END ) + + 93 + + - 50 + + 30 + 67 + 79 * - ( - - NULLIF ( + NULLIF ( + 83, 81 ), + 99 * CAST( + ( + 55 ) AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT + ( CASE - - 28 WHEN + - 7 + 70 * - - 0 THEN + 53 * - 76 END ) + + 93 + + - 50 + + 30 + 67 + 79 * - ( - - NULLIF ( + NULLIF ( + 83, 81 ), + 99 * CAST ( + ( + 55 ) AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT - 51 DIV 9 DIV - - 35
----
0

skipif mysql # not compatible
query I rowsort label-4477
SELECT - 51 / 9 / - - 35
----
0

query I rowsort
SELECT ALL - 17 * - - 33 * - - ( - 52 ) AS col0
----
29172

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT DISTINCT SUM( DISTINCT + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT SUM ( DISTINCT + 39 )
----
39

query I rowsort
SELECT DISTINCT 45 * 96
----
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL + 45 + 67 + + + COUNT( * ) + - 74 * + - 93 AS col0
----
6995

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + 45 + 67 + + + COUNT ( * ) + - 74 * + - 93 AS col0
----
6995

query I rowsort
SELECT - 15 - - 70 AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4483
SELECT ALL 80 * - 25 AS col0, 65 * + 66 * MIN( 37 ) * 34 AS col1
----
-2000
5396820

skipif mysql # not compatible
query II rowsort label-4483
SELECT ALL 80 * - 25 AS col0, 65 * + 66 * MIN ( 37 ) * 34 AS col1
----
-2000
5396820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4484
SELECT ALL + MIN( DISTINCT - + CAST( - 94 AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL + MIN ( DISTINCT - + CAST ( - 94 AS INTEGER ) )
----
94

query I rowsort
SELECT + + 23 * 37 AS col1
----
851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4486
SELECT - - 39 DIV - - MIN( ALL - 71 ) + - + ( 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4486
SELECT - - 39 / - - MIN ( ALL - 71 ) + - + ( 67 ) AS col0
----
-67

query I rowsort
SELECT DISTINCT + - 73 AS col2
----
-73

query I rowsort
SELECT ALL + - ( 80 ) * - - 20 + + - 54 AS col0
----
-1654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT - + 25 * - - 44 + - 47 * + CAST( NULL AS SIGNED ) + - - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT - + 25 * - - 44 + - 47 * + CAST ( NULL AS INTEGER ) + - - 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT DISTINCT + NULLIF ( + 51, + COUNT( ALL 93 ) * + COALESCE ( - + 77, + 66 ) * 36 + - - 56 + 48 + 34 ) * - 24 - + COALESCE ( - + 54, - 30 + 47 ) * - 56
----
-4248

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + NULLIF ( + 51, + COUNT ( ALL 93 ) * + COALESCE ( - + 77, + 66 ) * 36 + - - 56 + 48 + 34 ) * - 24 - + COALESCE ( - + 54, - 30 + 47 ) * - 56
----
-4248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT ALL + 35 DIV + 89 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + 35 / + 89 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4492
SELECT + NULLIF ( + 6, - ( + 65 ) - + 1 + - - MAX( 3 ) * 74 * - 46 ) * + 22 * + 95 DIV COALESCE ( ( - + COUNT( * ) ), NULLIF ( + COUNT( * ), - CAST( AVG ( DISTINCT + 77 ) AS SIGNED ) * + 60 - + + 5 ) * 97 ) * - + 44 + - 14 AS col1
----
551746

skipif mysql # not compatible
query I rowsort label-4492
SELECT + NULLIF ( + 6, - ( + 65 ) - + 1 + - - MAX ( 3 ) * 74 * - 46 ) * + 22 * + 95 / COALESCE ( ( - + COUNT ( * ) ), NULLIF ( + COUNT ( * ), - CAST ( AVG ( DISTINCT + 77 ) AS INTEGER ) * + 60 - + + 5 ) * 97 ) * - + 44 + - 14 AS col1
----
551746

query II rowsort
SELECT ALL + 2 * + 91 * - 83 * - 61 + + 33 AS col1, 3 * + - 37 * 37 col0
----
921499
-4107

query II rowsort
SELECT - + 74 * + - 1, - 39 * - 49 * + - ( - 52 ) AS col1
----
74
99372

query I rowsort
SELECT - - 99 * + 18 AS col0
----
1782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT + CAST( CASE - 23 WHEN - 71 THEN - - 43 ELSE - - 11 END AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-4496
SELECT + CAST ( CASE - 23 WHEN - 71 THEN - - 43 ELSE - - 11 END AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT MAX( + 93 ) * + COUNT( * ) + + 0 + MIN( ALL + 92 ) + - ( 93 ) * + + COUNT( * ) + 41 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-4497
SELECT MAX ( + 93 ) * + COUNT ( * ) + + 0 + MIN ( ALL + 92 ) + - ( 93 ) * + + COUNT ( * ) + 41 AS col1
----
133

query I rowsort
SELECT - 86 * - 16
----
1376

query I rowsort
SELECT ALL NULLIF ( 55, 6 ) * + + 38 * - + CASE - 99 WHEN + 11 THEN + ( + + 61 ) END - + - 24 + 89
----
NULL

query I rowsort
SELECT ALL ( - 54 ) AS col1
----
-54

query I rowsort
SELECT ALL + 35 * 30 * + 34 + 1
----
35701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT DISTINCT COALESCE ( - 54, - 84 ) * 7 * - 50 * 33 * + 99 + + NULLIF ( + 28, - + 70 + + CAST( - 81 AS SIGNED ) - 41 ) * + 7
----
61746496

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT COALESCE ( - 54, - 84 ) * 7 * - 50 * 33 * + 99 + + NULLIF ( + 28, - + 70 + + CAST ( - 81 AS INTEGER ) - 41 ) * + 7
----
61746496

query I rowsort
SELECT DISTINCT 95 * - - 35 + 10
----
3335

query I rowsort
SELECT - ( ( - 98 ) ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4505
SELECT ALL ( - 95 ) * + 83 + 64 * + 81 + SUM( + + 43 ) * - - 95 / - + 51 + + MIN( + 4 ) + + + CASE WHEN NOT NULL IS NULL THEN - 61 END * - 69 / + 25 * - MIN( ALL + 59 ) AS col0, - ( - 85 )
----
NULL
85

skipif mysql # not compatible
query II rowsort label-4505
SELECT ALL ( - 95 ) * + 83 + 64 * + 81 + SUM ( + + 43 ) * - - 95 / - + 51 + + MIN ( + 4 ) + + + CASE WHEN NOT NULL IS NULL THEN - 61 END * - 69 / + 25 * - MIN ( ALL + 59 ) AS col0, - ( - 85 )
----
NULL
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT ALL 70 * + COUNT( * ) + + - MAX( DISTINCT - - 93 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL 70 * + COUNT ( * ) + + - MAX ( DISTINCT - - 93 ) AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4507
SELECT COUNT( * ) AS col2, 82 DIV - 81, - + 64 + - CAST( NULL AS SIGNED ) AS col0
----
1
-1
NULL

skipif mysql # not compatible
query III rowsort label-4507
SELECT COUNT ( * ) AS col2, 82 / - 81, - + 64 + - CAST ( NULL AS INTEGER ) AS col0
----
1
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT - 46 + - - COALESCE ( 43, 34, + 36 + - + 0 * + + CAST( NULL AS SIGNED ) )
----
-3

skipif mysql # not compatible
query I rowsort label-4508
SELECT - 46 + - - COALESCE ( 43, 34, + 36 + - + 0 * + + CAST ( NULL AS INTEGER ) )
----
-3

query I rowsort
SELECT + 4 * + + 64
----
256

query II rowsort
SELECT ALL ( + 64 ) + + 88, - NULLIF ( - - 42, + + 80 ) AS col0
----
152
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4511
SELECT DISTINCT + 4 * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + 4 * - - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 23 + + 30 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4513
SELECT ( - 43 ) * + CASE + CAST( 35 AS SIGNED ) WHEN + - 69 THEN - 92 * - COUNT( * ) + - 37 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ( - 43 ) * + CASE + CAST ( 35 AS INTEGER ) WHEN + - 69 THEN - 92 * - COUNT ( * ) + - 37 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT COUNT( * ) + 78 * COALESCE ( 80, ( 98 ) ) * MIN( + + 95 )
----
592801

skipif mysql # not compatible
query I rowsort label-4514
SELECT COUNT ( * ) + 78 * COALESCE ( 80, ( 98 ) ) * MIN ( + + 95 )
----
592801

onlyif mysql # aggregate syntax: 
query II rowsort label-4515
SELECT ALL 40 AS col0, CASE - 64 WHEN + ( - - 50 ) * 97 THEN + 12 WHEN 4 - - 71 THEN + COUNT( 89 ) / - ( + + 96 ) END AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-4515
SELECT ALL 40 AS col0, CASE - 64 WHEN + ( - - 50 ) * 97 THEN + 12 WHEN 4 - - 71 THEN + COUNT ( 89 ) / - ( + + 96 ) END AS col2
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT 13 * + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4516
SELECT 13 * + COUNT ( * ) AS col0
----
13

query I rowsort
SELECT + 79 * - 86 AS col2
----
-6794

query I rowsort
SELECT 43 + - 42 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT ALL 28 * CAST( - - 86 AS SIGNED ) AS col2
----
2408

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL 28 * CAST ( - - 86 AS INTEGER ) AS col2
----
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT 71 * MAX( DISTINCT + - 1 )
----
-71

skipif mysql # not compatible
query I rowsort label-4520
SELECT 71 * MAX ( DISTINCT + - 1 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL - + MIN( ALL - + 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - + MIN ( ALL - + 84 ) AS col1
----
84

query I rowsort
SELECT 2 - + + 33 AS col2
----
-31

query II rowsort
SELECT - 95 AS col0, NULLIF ( - 22, - + 11 + + 27 + 5 + + + 8 * + 25 )
----
-95
-22

onlyif mysql # aggregate syntax: 
query III rowsort label-4524
SELECT + 29 AS col2, - COALESCE ( - MAX( + 61 ), - + ( 39 ) ) AS col0, + 84 AS col0
----
29
61
84

skipif mysql # not compatible
query III rowsort label-4524
SELECT + 29 AS col2, - COALESCE ( - MAX ( + 61 ), - + ( 39 ) ) AS col0, + 84 AS col0
----
29
61
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4525
SELECT ALL + + CAST( NULL AS SIGNED ) + + + 80 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + + CAST ( NULL AS INTEGER ) + + + 80 * COUNT ( * )
----
NULL

query I rowsort
SELECT - ( - 47 ) * + 6
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT - - NULLIF ( + 26, - - MIN( + 82 ) / + + 44 + + 1 )
----
26

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT - - NULLIF ( + 26, - - MIN ( + 82 ) / + + 44 + + 1 )
----
26

query I rowsort
SELECT ALL - 99 + 51
----
-48

query I rowsort
SELECT ALL - + 53 AS col0
----
-53

query I rowsort
SELECT ALL 58 + + + 82
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT 92 - COUNT( * ) * - MIN( DISTINCT 17 )
----
109

skipif mysql # not compatible
query I rowsort label-4531
SELECT 92 - COUNT ( * ) * - MIN ( DISTINCT 17 )
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT ALL - CAST( - 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL - CAST ( - 61 AS INTEGER ) AS col2
----
61

query I rowsort
SELECT DISTINCT + 7 + + 85 - 20 + + + 92 + + 69 * - ( + + COALESCE ( - - 2, + + NULLIF ( + 87, + - 3 ), - 99 ) ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4534
SELECT + 50 AS col0, 16 * - COUNT( * ) + COUNT( * ) + + 96
----
50
81

skipif mysql # not compatible
query II rowsort label-4534
SELECT + 50 AS col0, 16 * - COUNT ( * ) + COUNT ( * ) + + 96
----
50
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4535
SELECT 11 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-4535
SELECT 11 / 47
----
0

query I rowsort
SELECT ALL - 89 + + 65 col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-4537
SELECT ALL 61 AS col1, COUNT( * ) * - COUNT( - ( 62 ) ) AS col1
----
61
-1

skipif mysql # not compatible
query II rowsort label-4537
SELECT ALL 61 AS col1, COUNT ( * ) * - COUNT ( - ( 62 ) ) AS col1
----
61
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT 36 DIV - 7 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4538
SELECT 36 / - 7 AS col1
----
-5

query I rowsort
SELECT 7 * 46 AS col0
----
322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4540
SELECT ALL + CAST( + 9 AS SIGNED ) - - 89 + + + 83 * + 9 AS col0
----
845

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + CAST ( + 9 AS INTEGER ) - - 89 + + + 83 * + 9 AS col0
----
845

query II rowsort
SELECT - 71, 30 AS col0
----
-71
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4542
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 7 * + CASE + + 3 WHEN + 0 THEN - - 39 - - 51 + + 28 * - - 9 * + - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 7 * + CASE + + 3 WHEN + 0 THEN - - 39 - - 51 + + 28 * - - 9 * + - 24 END
----
NULL

query II rowsort
SELECT ALL 27 AS col2, - 34 AS col0
----
27
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4544
SELECT 13 - + + CAST( + - SUM( + NULLIF ( + - 0, + 16 ) ) AS SIGNED ) * - 25
----
13

skipif mysql # not compatible
query I rowsort label-4544
SELECT 13 - + + CAST ( + - SUM ( + NULLIF ( + - 0, + 16 ) ) AS INTEGER ) * - 25
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT ( + NULLIF ( + + 70, + 47 + 51 ) ) * - - SUM( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT ( + NULLIF ( + + 70, + 47 + 51 ) ) * - - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT DISTINCT + COUNT( DISTINCT 65 ) * + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT + COUNT ( DISTINCT 65 ) * + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL ( 43 ) AS col0
----
43

query I rowsort
SELECT ALL + ( 63 ) col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - 52 - + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-4549
SELECT - 52 - + COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT ALL + COUNT( DISTINCT - + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL + COUNT ( DISTINCT - + 86 )
----
1

query I rowsort
SELECT ALL - - NULLIF ( 39, - - ( + - 59 ) ) AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT - COUNT( * ) DIV + + 85
----
0

skipif mysql # not compatible
query I rowsort label-4552
SELECT - COUNT ( * ) / + + 85
----
0

query I rowsort
SELECT 63 * 58 + + - 41 * 65 AS col0
----
989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4554
SELECT + - COUNT( * ) * + + MIN( - CAST( + 32 AS SIGNED ) ) - 91
----
-59

skipif mysql # not compatible
query I rowsort label-4554
SELECT + - COUNT ( * ) * + + MIN ( - CAST ( + 32 AS INTEGER ) ) - 91
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4555
SELECT ALL 71 * + - 90 + + - MAX( - + CAST( NULL AS SIGNED ) ), 71 AS col2
----
NULL
71

skipif mysql # not compatible
query II rowsort label-4555
SELECT ALL 71 * + - 90 + + - MAX ( - + CAST ( NULL AS INTEGER ) ), 71 AS col2
----
NULL
71

query I rowsort
SELECT + 45 + + - 47 AS col2
----
-2

query II rowsort
SELECT DISTINCT 24 * - 96, + 76 * 57 AS col2
----
-2304
4332

query I rowsort
SELECT DISTINCT - + 3 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4559
SELECT + - 55 col2, - MAX( DISTINCT + 77 ) * 77 + - - COUNT( ALL + 80 ) + - 87 * + 52 AS col0
----
-55
-10452

skipif mysql # not compatible
query II rowsort label-4559
SELECT + - 55 col2, - MAX ( DISTINCT + 77 ) * 77 + - - COUNT ( ALL + 80 ) + - 87 * + 52 AS col0
----
-55
-10452

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4560
SELECT ALL - SUM( - 27 ) + COUNT( * ) DIV - 39 AS col1, MAX( + 52 )
----
27
52

skipif mysql # not compatible
query II rowsort label-4560
SELECT ALL - SUM ( - 27 ) + COUNT ( * ) / - 39 AS col1, MAX ( + 52 )
----
27
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4561
SELECT COUNT( DISTINCT + - NULLIF ( + 48, ( + 52 ) ) ) col1, + 91 DIV + 68 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4561
SELECT COUNT ( DISTINCT + - NULLIF ( + 48, ( + 52 ) ) ) col1, + 91 / + 68 AS col0
----
1
1

query I rowsort
SELECT 30 * NULLIF ( 11, - - 95 ) + + 62
----
392

query I rowsort
SELECT 91 * - ( - - 57 )
----
-5187

query II rowsort
SELECT 27 * 14, COALESCE ( - 72, + 86 ) AS col0
----
378
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT - COUNT( 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT - COUNT ( 90 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT ALL - CAST( - 0 AS SIGNED ) - + 25 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - CAST ( - 0 AS INTEGER ) - + 25 AS col2
----
-25

query I rowsort
SELECT - 99 * - 77 * + + 40 * + 88
----
26832960

query I rowsort
SELECT DISTINCT 22 - + 79
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL COUNT( DISTINCT + - COALESCE ( - - 15, 29 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL COUNT ( DISTINCT + - COALESCE ( - - 15, 29 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT - 69 * - + CAST( + ( - NULLIF ( - 94, 72 ) ) AS SIGNED )
----
6486

skipif mysql # not compatible
query I rowsort label-4570
SELECT - 69 * - + CAST ( + ( - NULLIF ( - 94, 72 ) ) AS INTEGER )
----
6486

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT - CASE 20 WHEN + COUNT( * ) * + + 90 * - - 34 * 58 THEN + - NULLIF ( 8, - 64 + 87 + 59 * - + AVG ( 3 ) ) + + 85 - 93 - - 27 / 60 * + COUNT( * ) * - 6 * + 70 + - COUNT( DISTINCT 10 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT - CASE 20 WHEN + COUNT ( * ) * + + 90 * - - 34 * 58 THEN + - NULLIF ( 8, - 64 + 87 + 59 * - + AVG ( 3 ) ) + + 85 - 93 - - 27 / 60 * + COUNT ( * ) * - 6 * + 70 + - COUNT ( DISTINCT 10 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL COUNT( DISTINCT - + ( - 24 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL COUNT ( DISTINCT - + ( - 24 ) ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4573
SELECT - 56 + + CAST( NULL AS SIGNED ) + - COUNT( * ) * 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT - 56 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * 86 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4574
SELECT - 21 DIV + ( 38 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT - 21 / + ( 38 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT - 33 + 99 DIV + + 57 + + 80 col2
----
48

skipif mysql # not compatible
query I rowsort label-4575
SELECT - 33 + 99 / + + 57 + + 80 col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT DISTINCT - 14 DIV + COUNT( - 84 ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT - 14 / + COUNT ( - 84 ) col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4577
SELECT ALL CAST( 16 AS SIGNED ) AS col1, 20 * - 57 * - + MAX( - - 65 ) * + ( COUNT( DISTINCT 9 ) ) + - + COUNT( * ) + + CASE - 84 WHEN - 66 THEN - + 0 ELSE - 22 END AS col1
----
16
74077

skipif mysql # not compatible
query II rowsort label-4577
SELECT ALL CAST ( 16 AS INTEGER ) AS col1, 20 * - 57 * - + MAX ( - - 65 ) * + ( COUNT ( DISTINCT 9 ) ) + - + COUNT ( * ) + + CASE - 84 WHEN - 66 THEN - + 0 ELSE - 22 END AS col1
----
16
74077

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4578
SELECT ALL - ( + 35 ) DIV - 36 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL - ( + 35 ) / - 36 / - COUNT ( * )
----
0

query I rowsort
SELECT ALL ( - + 91 ) + - 97 + - 47 * 74
----
-3666

query I rowsort
SELECT - 50 + - 51
----
-101

query I rowsort
SELECT ALL - 73 + NULLIF ( + 61, 50 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT SUM( - - 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4582
SELECT SUM ( - - 30 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT - MIN( + 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4583
SELECT - MIN ( + 18 ) AS col1
----
-18

query I rowsort
SELECT ALL - 23 + + 17
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT + - 12 + + + 21 AS col2, - 99 * - 90 + COUNT( * )
----
9
8911

skipif mysql # not compatible
query II rowsort label-4585
SELECT + - 12 + + + 21 AS col2, - 99 * - 90 + COUNT ( * )
----
9
8911

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT DISTINCT ( + + COUNT( * ) ) * 54 + - 16 * - 37 + - + 27 * MIN( ALL + + 74 ) AS col1
----
-1352

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT ( + + COUNT ( * ) ) * 54 + - 16 * - 37 + - + 27 * MIN ( ALL + + 74 ) AS col1
----
-1352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4587
SELECT ALL 7 * + CAST( NULL AS SIGNED ) + + - 72 * 26 * + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL 7 * + CAST ( NULL AS INTEGER ) + + - 72 * 26 * + + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT + COALESCE ( 87, - ( COUNT( * ) ) * + + 98 - + 98 * 29, + 29 ) col2
----
87

skipif mysql # not compatible
query I rowsort label-4588
SELECT + COALESCE ( 87, - ( COUNT ( * ) ) * + + 98 - + 98 * 29, + 29 ) col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT - 52 * - + 58 + + 23 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4589
SELECT - 52 * - + 58 + + 23 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4590
SELECT ALL COUNT( * ) DIV + 87 * + COUNT( * ) * + - 40
----
0

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL COUNT ( * ) / + 87 * + COUNT ( * ) * + - 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT - + 91 * 42 * - + SUM( ALL - - 96 )
----
366912

skipif mysql # not compatible
query I rowsort label-4591
SELECT - + 91 * 42 * - + SUM ( ALL - - 96 )
----
366912

query I rowsort
SELECT - - 16 - + + 88 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL 23 / + + 67 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL 23 / + + 67 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4594
SELECT + 35 DIV + COUNT( * ) col2
----
35

skipif mysql # not compatible
query I rowsort label-4594
SELECT + 35 / + COUNT ( * ) col2
----
35

query I rowsort
SELECT + NULLIF ( - 59, + 40 ) * 52 + - COALESCE ( 69, + 25 ) AS col0
----
-3137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4596
SELECT + NULLIF ( + 89, + ( 38 ) * - COALESCE ( + - COUNT( * ), 68, - ( 91 ) / 88 - 78 * + 79 ) / MAX( + - CAST( - - 37 AS SIGNED ) ) + - 62 )
----
89

skipif mysql # not compatible
query I rowsort label-4596
SELECT + NULLIF ( + 89, + ( 38 ) * - COALESCE ( + - COUNT ( * ), 68, - ( 91 ) / 88 - 78 * + 79 ) / MAX ( + - CAST ( - - 37 AS INTEGER ) ) + - 62 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL 87 * + - COUNT( * ) * 14 * - - 4
----
-4872

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL 87 * + - COUNT ( * ) * 14 * - - 4
----
-4872

query I rowsort
SELECT ALL 64 * - - 36
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT DISTINCT COUNT( * ) * COUNT( * ) * - 12
----
-12

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * - 12
----
-12

query I rowsort
SELECT ALL 81 * - 33 * - 27 * ( 64 )
----
4618944

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4601
SELECT SUM( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT SUM ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4602
SELECT ALL + 77 AS col1, - 33 * + 96 * 21 - - MIN( DISTINCT + + 84 ) AS col0
----
77
-66444

skipif mysql # not compatible
query II rowsort label-4602
SELECT ALL + 77 AS col1, - 33 * + 96 * 21 - - MIN ( DISTINCT + + 84 ) AS col0
----
77
-66444

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT MAX( - 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4603
SELECT MAX ( - 77 ) AS col0
----
-77

query I rowsort
SELECT - 45 * + - 57
----
2565

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL COUNT( + - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL COUNT ( + - 71 )
----
1

query I rowsort
SELECT + 15 + + - 28 - - 88 * - 67 + + 81 AS col2
----
-5828

onlyif mysql # aggregate syntax: 
query II rowsort label-4607
SELECT COUNT( * ) AS col0, + 78 * + 59 + + 72
----
1
4674

skipif mysql # not compatible
query II rowsort label-4607
SELECT COUNT ( * ) AS col0, + 78 * + 59 + + 72
----
1
4674

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT COUNT( - ( + 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4608
SELECT COUNT ( - ( + 11 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4609
SELECT ALL - 28 * + CASE - CASE 41 WHEN - 5 THEN + + 11 ELSE COUNT( * ) END WHEN - NULLIF ( 30, - 61 ) THEN NULL WHEN + - 9 THEN - SUM( DISTINCT - 65 ) + CAST( NULL AS SIGNED ) * 12 + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL - 28 * + CASE - CASE 41 WHEN - 5 THEN + + 11 ELSE COUNT ( * ) END WHEN - NULLIF ( 30, - 61 ) THEN NULL WHEN + - 9 THEN - SUM ( DISTINCT - 65 ) + CAST ( NULL AS INTEGER ) * 12 + 87 END
----
NULL

query I rowsort
SELECT DISTINCT - 10 * + 38
----
-380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4611
SELECT DISTINCT - ( - - COUNT( * ) ) + - 60 DIV 69
----
-1

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT - ( - - COUNT ( * ) ) + - 60 / 69
----
-1

query I rowsort
SELECT - + 7 * - + 86 AS col1
----
602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT - CAST( NULL AS SIGNED ) + 7 / + 97 * 7 * - 32 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT - CAST ( NULL AS INTEGER ) + 7 / + 97 * 7 * - 32 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4614
SELECT - 1 AS col2, 1 * + + 62 * COUNT( * ) AS col1
----
-1
62

skipif mysql # not compatible
query II rowsort label-4614
SELECT - 1 AS col2, 1 * + + 62 * COUNT ( * ) AS col1
----
-1
62

query I rowsort
SELECT + ( 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4616
SELECT ALL - 27 + - - COUNT( * ) * + 53 * 53 DIV + + 98
----
1

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL - 27 + - - COUNT ( * ) * + 53 * 53 / + + 98
----
1

query II rowsort
SELECT + - 21 - - 66 - + + 79 AS col0, 11 AS col1
----
-34
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT - MAX( DISTINCT + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-4618
SELECT - MAX ( DISTINCT + 58 )
----
-58

query I rowsort
SELECT ALL + - 80 + - 31
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-4620
SELECT + + 47 + + 30 DIV + 38
----
47

skipif mysql # not compatible
query I rowsort label-4620
SELECT + + 47 + + 30 / + 38
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4621
SELECT - NULLIF ( 1, NULLIF ( 98, + + CAST( 64 AS SIGNED ) ) / COUNT( * ) / - - CAST( - 20 AS SIGNED ) + + - 38 + - - 30 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4621
SELECT - NULLIF ( 1, NULLIF ( 98, + + CAST ( 64 AS INTEGER ) ) / COUNT ( * ) / - - CAST ( - 20 AS INTEGER ) + + - 38 + - - 30 ) AS col1
----
-1

query I rowsort
SELECT - 14 * + + 15 * + 42
----
-8820

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT ALL + - 4 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + - 4 / 67
----
0

query I rowsort
SELECT DISTINCT - 33 + + 14 AS col1
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4625
SELECT DISTINCT + + 37 + - 96 * CAST( - 65 AS SIGNED ) + + + 92 DIV COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col0
----
6369
NULL

skipif mysql # not compatible
query II rowsort label-4625
SELECT DISTINCT + + 37 + - 96 * CAST ( - 65 AS INTEGER ) + + + 92 / COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col0
----
6369
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4626
SELECT ALL + + 12 DIV + SUM( - 49 ) * + 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + + 12 / + SUM ( - 49 ) * + 28 AS col2
----
0

query II rowsort
SELECT + 42 AS col2, 28
----
42
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4628
SELECT + SUM( - NULLIF ( + 90, + CAST( + + 62 AS SIGNED ) - - + 93 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-4628
SELECT + SUM ( - NULLIF ( + 90, + CAST ( + + 62 AS INTEGER ) - - + 93 ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL + + COALESCE ( + 28, MAX( - 20 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + + COALESCE ( + 28, MAX ( - 20 ) ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT - 91 * + - NULLIF ( - - 53, - 42 / + AVG ( ALL 44 ) ) + + COUNT( * ) * - ( - 12 ) - + 25 AS col2
----
4810

skipif mysql # not compatible
query I rowsort label-4630
SELECT - 91 * + - NULLIF ( - - 53, - 42 / + AVG ( ALL 44 ) ) + + COUNT ( * ) * - ( - 12 ) - + 25 AS col2
----
4810

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - 86 * - ( - SUM( 58 ) ) AS col0
----
-4988

skipif mysql # not compatible
query I rowsort label-4631
SELECT - 86 * - ( - SUM ( 58 ) ) AS col0
----
-4988

query I rowsort
SELECT + COALESCE ( - 85, 12 * - ( - 46 ) ) AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4633
SELECT ALL + 5 AS col0, + CAST( + + 36 AS SIGNED )
----
5
36

skipif mysql # not compatible
query II rowsort label-4633
SELECT ALL + 5 AS col0, + CAST ( + + 36 AS INTEGER )
----
5
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT + 4 / + - 71 / + 29 + CAST( - + 14 AS SIGNED ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT + 4 / + - 71 / + 29 + CAST ( - + 14 AS INTEGER ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT ALL + CAST( + 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL + CAST ( + 62 AS INTEGER )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4636
SELECT - 6 + + 73 + 97 + 60 DIV + - 69 * - 64 AS col1
----
164

skipif mysql # not compatible
query I rowsort label-4636
SELECT - 6 + + 73 + 97 + 60 / + - 69 * - 64 AS col1
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-4637
SELECT ALL - 15 DIV + + 22 - + - 35
----
35

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL - 15 / + + 22 - + - 35
----
35

query I rowsort
SELECT - 23 * + NULLIF ( - 48, - + 2 )
----
1104

query I rowsort
SELECT DISTINCT - 85 * - 10 * - 35
----
-29750

query I rowsort
SELECT DISTINCT + 76 * + - 33 AS col1
----
-2508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4641
SELECT - CAST( + + COUNT( * ) AS SIGNED ) * + 13 * + 43 + - - 98, 1 AS col2
----
-461
1

skipif mysql # not compatible
query II rowsort label-4641
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) * + 13 * + 43 + - - 98, 1 AS col2
----
-461
1

query II rowsort
SELECT DISTINCT - 87 + + 88 AS col0, - 28 * 0
----
1
0

query I rowsort
SELECT ALL 4 * - 35
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT DISTINCT 62 * + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT 62 * + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL - ( 39 ) + - 22 * + 37 * - + ( - MIN( - 71 ) )
----
57755

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - ( 39 ) + - 22 * + 37 * - + ( - MIN ( - 71 ) )
----
57755

query I rowsort
SELECT ALL 97 + + - 98
----
-1

query II rowsort
SELECT ALL 56 + + 53 AS col2, 40
----
109
40

query I rowsort
SELECT ( 53 ) * - + 53
----
-2809

onlyif mysql # aggregate syntax: 
query II rowsort label-4649
SELECT DISTINCT COUNT( * ) + + 59 + - ( + 3 ) AS col2, 57
----
57
57

skipif mysql # not compatible
query II rowsort label-4649
SELECT DISTINCT COUNT ( * ) + + 59 + - ( + 3 ) AS col2, 57
----
57
57

query I rowsort
SELECT CASE + 54 WHEN + 38 * 12 THEN NULL WHEN + 16 + - 19 THEN NULL WHEN - 27 THEN NULL ELSE + 56 END
----
56

query I rowsort
SELECT ALL 1 + 80 + + 90 AS col1
----
171

query I rowsort
SELECT - ( + 78 ) + 93
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4653
SELECT 22 + + - CASE + - 17 WHEN + 1 THEN NULL WHEN - - 53 + + - 50 THEN NULL ELSE + 2 * + - 11 + 98 * - NULLIF ( + - 83, + - 24 ) END + + + 78 + - 3 * + - 79 DIV - 25 - + MAX( DISTINCT - 56 ) AS col0
----
-7965

skipif mysql # not compatible
query I rowsort label-4653
SELECT 22 + + - CASE + - 17 WHEN + 1 THEN NULL WHEN - - 53 + + - 50 THEN NULL ELSE + 2 * + - 11 + 98 * - NULLIF ( + - 83, + - 24 ) END + + + 78 + - 3 * + - 79 / - 25 - + MAX ( DISTINCT - 56 ) AS col0
----
-7965

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT + 65 + ( MAX( ALL - + 41 ) ) col2
----
24

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT + 65 + ( MAX ( ALL - + 41 ) ) col2
----
24

query I rowsort
SELECT ALL 68 + 6 * - 97 AS col1
----
-514

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT ALL + COUNT( * ) * - 26 AS col1, - 76 * + 84 AS col2
----
-26
-6384

skipif mysql # not compatible
query II rowsort label-4656
SELECT ALL + COUNT ( * ) * - 26 AS col1, - 76 * + 84 AS col2
----
-26
-6384

query I rowsort
SELECT 91 + 35 AS col1
----
126

query I rowsort
SELECT DISTINCT NULLIF ( NULLIF ( - - 87, - 73 * 18 ), + 97 ) * 99
----
8613

query I rowsort
SELECT ALL 31 * + 18
----
558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4660
SELECT 71 DIV 36 + + 28 DIV + COUNT( 86 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4660
SELECT 71 / 36 + + 28 / + COUNT ( 86 ) AS col0
----
29

query I rowsort
SELECT - 70 * - 80 + + 43 AS col2
----
5643

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL + ( + 3 ) * + COUNT( - - 70 ) * - 16 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL + ( + 3 ) * + COUNT ( - - 70 ) * - 16 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL - MIN( DISTINCT 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL - MIN ( DISTINCT 6 ) AS col1
----
-6

query I rowsort
SELECT 42 * + 52 * - 84 AS col1
----
-183456

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT - SUM( ALL - + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT - SUM ( ALL - + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT 16 - + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-4666
SELECT 16 - + COUNT ( * )
----
15

query I rowsort
SELECT 55 * 93 AS col2
----
5115

query I rowsort
SELECT ALL + 27 * + 53 AS col1
----
1431

query I rowsort
SELECT DISTINCT + 55 + - 51 col1
----
4

query I rowsort
SELECT ALL - ( 37 ) + + - 10 AS col1
----
-47

query I rowsort
SELECT DISTINCT - ( - 95 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4672
SELECT DISTINCT - 55 + - 6 + - NULLIF ( - 15, MIN( DISTINCT + 11 ) + + 92 ) * + - 27 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - 55 + - 6 + - NULLIF ( - 15, MIN ( DISTINCT + 11 ) + + 92 ) * + - 27 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT - 82 + - + 83
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT ALL + CAST( NULL AS SIGNED ) * - + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 70
----
NULL

query I rowsort
SELECT ALL 56 + 9 AS col2
----
65

query I rowsort
SELECT DISTINCT - ( + 66 )
----
-66

query I rowsort
SELECT ALL + 92 + 63 - 78
----
77

query I rowsort
SELECT ALL - 38 + 25
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT 51 + MAX( + 37 )
----
88

skipif mysql # not compatible
query I rowsort label-4679
SELECT 51 + MAX ( + 37 )
----
88

query I rowsort
SELECT ( - 92 ) * 15
----
-1380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4681
SELECT ALL - 93 DIV + COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL - 93 / + COUNT ( * ) AS col0
----
-93

query I rowsort
SELECT ALL + 38 - + 84
----
-46

query I rowsort
SELECT DISTINCT 49 * 55
----
2695

query I rowsort
SELECT ALL 8 * + 35
----
280

query I rowsort
SELECT ALL - 66 * + ( 52 )
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT COUNT( * ) - - 93 * + 63 AS col1
----
5860

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT COUNT ( * ) - - 93 * + 63 AS col1
----
5860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT MIN( NULLIF ( 57, 5 + 29 * 4 ) ) + - COALESCE ( 34, NULLIF ( 70, - 27 ) + - CAST( + ( 3 ) AS SIGNED ) ) * 65 AS col2
----
-2153

skipif mysql # not compatible
query I rowsort label-4687
SELECT MIN ( NULLIF ( 57, 5 + 29 * 4 ) ) + - COALESCE ( 34, NULLIF ( 70, - 27 ) + - CAST ( + ( 3 ) AS INTEGER ) ) * 65 AS col2
----
-2153

query I rowsort
SELECT ALL 54 * 19 AS col2
----
1026

query I rowsort
SELECT DISTINCT 13 * 34 AS col1
----
442

query I rowsort
SELECT ALL 72 * - 2 AS col1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT 82 - 12 * - COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-4691
SELECT 82 - 12 * - COUNT ( * )
----
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4692
SELECT ( + 69 ) * + CASE CAST( + ( - 65 ) AS DECIMAL ) + - COUNT( * ) WHEN + COUNT( * ) * 31 THEN + 54 * 16 WHEN - 45 - MAX( ALL ( - 47 ) ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT ( + 69 ) * + CASE CAST ( + ( - 65 ) AS REAL ) + - COUNT ( * ) WHEN + COUNT ( * ) * 31 THEN + 54 * 16 WHEN - 45 - MAX ( ALL ( - 47 ) ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT CASE 87 WHEN - 18 THEN + 5 WHEN - 45 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4694
SELECT ALL CAST( - 35 AS SIGNED ) * + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL CAST ( - 35 AS INTEGER ) * + COUNT ( * )
----
-35

query I rowsort
SELECT + 0 - - 24 AS col2
----
24

query I rowsort
SELECT + 76 - 88
----
-12

query I rowsort
SELECT ALL ( 68 ) * ( 26 - + 0 )
----
1768

query I rowsort
SELECT + 46 * 57 AS col0
----
2622

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT + SUM( - 94 ) + CASE - 77 + CASE 86 + 13 WHEN 8 THEN NULL WHEN - 73 - + 29 THEN COUNT( * ) ELSE + 60 END WHEN + COUNT( * ) * + 58 THEN NULL WHEN + 5 THEN 77 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT + SUM ( - 94 ) + CASE - 77 + CASE 86 + 13 WHEN 8 THEN NULL WHEN - 73 - + 29 THEN COUNT ( * ) ELSE + 60 END WHEN + COUNT ( * ) * + 58 THEN NULL WHEN + 5 THEN 77 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT ALL ( 97 ) * + CAST( CAST( 11 AS SIGNED ) + + MIN( + ( ( + 78 ) ) ) AS SIGNED ) AS col1
----
8633

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL ( 97 ) * + CAST ( CAST ( 11 AS INTEGER ) + + MIN ( + ( ( + 78 ) ) ) AS INTEGER ) AS col1
----
8633

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT NULLIF ( ( + 42 ), ( COUNT( * ) ) + 5 )
----
42

skipif mysql # not compatible
query I rowsort label-4701
SELECT NULLIF ( ( + 42 ), ( COUNT ( * ) ) + 5 )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4702
SELECT ALL - 51 * - 89 + 65 DIV + 1 AS col1
----
4604

skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL - 51 * - 89 + 65 / + 1 AS col1
----
4604

query I rowsort
SELECT - 45 * - 45 + CASE 98 WHEN 95 + 86 THEN + 42 WHEN - 67 * + 27 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + 75, - 19 * + 27, 32 )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT - 5 DIV 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4705
SELECT - 5 / 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT + 16 + COUNT( * ) * + 71
----
87

skipif mysql # not compatible
query I rowsort label-4706
SELECT + 16 + COUNT ( * ) * + 71
----
87

query I rowsort
SELECT 32 * - 47 - 35 * - 26 col0
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT + NULLIF ( 53, - 62 / - 50 + + MIN( - 70 ) )
----
53

skipif mysql # not compatible
query I rowsort label-4708
SELECT + NULLIF ( 53, - 62 / - 50 + + MIN ( - 70 ) )
----
53

query I rowsort
SELECT DISTINCT - 57 * - 96 + 8
----
5480

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT COUNT( * ) * + 15 + - 32
----
-17

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT COUNT ( * ) * + 15 + - 32
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4711
SELECT + 69 DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4711
SELECT + 69 / 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT NULLIF ( COUNT( * ), - 20 ) * 65 + ( + COUNT( * ) - COUNT( * ) ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4712
SELECT NULLIF ( COUNT ( * ), - 20 ) * 65 + ( + COUNT ( * ) - COUNT ( * ) ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT ALL + SUM( + 1 ) * 86 + 68 * MAX( 72 )
----
4982

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL + SUM ( + 1 ) * 86 + 68 * MAX ( 72 )
----
4982

query I rowsort
SELECT + COALESCE ( + 78, + 42 ) * + 49 + 82 col0
----
3904

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4715
SELECT + NULLIF ( SUM( - NULLIF ( - 85, CAST( NULL AS DECIMAL ) ) ), - COUNT( * ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4715
SELECT + NULLIF ( SUM ( - NULLIF ( - 85, CAST ( NULL AS REAL ) ) ), - COUNT ( * ) ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL COUNT( * ) * - 73 + 13
----
-60

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL COUNT ( * ) * - 73 + 13
----
-60

query I rowsort
SELECT + 50 * 83
----
4150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT NULLIF ( 56, CAST( COUNT( * ) AS SIGNED ) )
----
56

skipif mysql # not compatible
query I rowsort label-4718
SELECT NULLIF ( 56, CAST ( COUNT ( * ) AS INTEGER ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT - ( ( 64 ) ) + + MIN( ALL + 62 )
----
-2

skipif mysql # not compatible
query I rowsort label-4719
SELECT - ( ( 64 ) ) + + MIN ( ALL + 62 )
----
-2

query I rowsort
SELECT ALL 31 * ( ( + 15 ) ) + + 80
----
545

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT + COALESCE ( - 60, + 43, 40 * + COALESCE ( - 36, 95 ) ) * + ( SUM( DISTINCT - 68 ) )
----
4080

skipif mysql # not compatible
query I rowsort label-4721
SELECT + COALESCE ( - 60, + 43, 40 * + COALESCE ( - 36, 95 ) ) * + ( SUM ( DISTINCT - 68 ) )
----
4080

query I rowsort
SELECT ALL + 97 * - 39 AS col1
----
-3783

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT + 81 * + 52 + COUNT( * )
----
4213

skipif mysql # not compatible
query I rowsort label-4723
SELECT + 81 * + 52 + COUNT ( * )
----
4213

query I rowsort
SELECT - 81 * 75 + 40
----
-6035

query I rowsort
SELECT 59 * - 35 + + 18
----
-2047

query I rowsort
SELECT DISTINCT - 9 * + 28 - 21 AS col0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT + MIN( DISTINCT + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4727
SELECT + MIN ( DISTINCT + 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL + 66 * COUNT( * ) - + 9 * 8 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + 66 * COUNT ( * ) - + 9 * 8 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT DISTINCT - COUNT( * ) * 92
----
-92

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT - COUNT ( * ) * 92
----
-92

query I rowsort
SELECT - 7 * 5
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4731
SELECT - 47 * CAST( + 86 * 49 + COUNT( * ) AS SIGNED ) AS col2
----
-198105

skipif mysql # not compatible
query I rowsort label-4731
SELECT - 47 * CAST ( + 86 * 49 + COUNT ( * ) AS INTEGER ) AS col2
----
-198105

query I rowsort
SELECT - ( ( ( 18 ) ) ) + + 82 AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL + COALESCE ( ( + 42 ), - CAST( + AVG ( ALL 56 ) AS SIGNED ), - 3 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL + COALESCE ( ( + 42 ), - CAST ( + AVG ( ALL 56 ) AS INTEGER ), - 3 ) AS col1
----
42

query I rowsort
SELECT - + 32 + + 9
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT - 74 / - ( CASE - 73 WHEN - 73 * - SUM( 23 ) THEN + 96 WHEN + 76 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4735
SELECT - 74 / - ( CASE - 73 WHEN - 73 * - SUM ( 23 ) THEN + 96 WHEN + 76 THEN NULL END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4736
SELECT ALL - - 93 DIV + 84
----
1

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL - - 93 / + 84
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4737
SELECT ALL CASE - 45 WHEN CAST( NULL AS SIGNED ) THEN 99 WHEN - MAX( COALESCE ( + 91, + 31 + + 4 ) ) * + COALESCE ( 69 / - 71 + 19 * + AVG ( - 29 ), - COUNT( * ), - 78 + 90 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL CASE - 45 WHEN CAST ( NULL AS INTEGER ) THEN 99 WHEN - MAX ( COALESCE ( + 91, + 31 + + 4 ) ) * + COALESCE ( 69 / - 71 + 19 * + AVG ( - 29 ), - COUNT ( * ), - 78 + 90 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT DISTINCT NULLIF ( + 82, COUNT( ALL 53 ) ) * - 2 col2
----
-164

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT NULLIF ( + 82, COUNT ( ALL 53 ) ) * - 2 col2
----
-164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4739
SELECT DISTINCT - + 26 DIV COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT - + 26 / COUNT ( * ) AS col0
----
-26

query I rowsort
SELECT ALL 49 * + 14
----
686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4741
SELECT - COUNT( * ) + + 80 DIV ( 81 + + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-4741
SELECT - COUNT ( * ) + + 80 / ( 81 + + 62 )
----
-1

query I rowsort
SELECT DISTINCT - + ( + ( + NULLIF ( + 92, + 54 ) ) ) + + 76 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4743
SELECT - 47 DIV - 96 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4743
SELECT - 47 / - 96 * COUNT ( * )
----
0

query I rowsort
SELECT + 53 + 43 col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT ( + 11 ) * COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT ( + 11 ) * COUNT ( * )
----
11

query I rowsort
SELECT + COALESCE ( 48, - 16 * 77, - 69 ) * + 51 AS col1
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT DISTINCT COUNT( - + 30 ) + 32 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT COUNT ( - + 30 ) + 32 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL COALESCE ( COUNT( * ), + MAX( 30 ) ) + - 8 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL COALESCE ( COUNT ( * ), + MAX ( 30 ) ) + - 8 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT - MAX( - 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4749
SELECT - MAX ( - 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT + COUNT( * ) + + 93 + - ( + 66 ) DIV 10
----
88

skipif mysql # not compatible
query I rowsort label-4750
SELECT + COUNT ( * ) + + 93 + - ( + 66 ) / 10
----
88

query I rowsort
SELECT + 93 * + 35 AS col0
----
3255

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT ALL 9 DIV ( 47 ) + 15 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL 9 / ( 47 ) + 15 AS col0
----
15

query I rowsort
SELECT + NULLIF ( 92, + 25 ) AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4754
SELECT ALL COUNT( * ) DIV - + 6 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL COUNT ( * ) / - + 6 + - COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT CAST( + 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4755
SELECT CAST ( + 9 AS INTEGER ) AS col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT DISTINCT - NULLIF ( - 75, - 4 ) DIV 16 + 73 col2
----
77

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT - NULLIF ( - 75, - 4 ) / 16 + 73 col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT CAST( - + 55 AS SIGNED )
----
-55

skipif mysql # not compatible
query I rowsort label-4757
SELECT CAST ( - + 55 AS INTEGER )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT + CAST( + 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4758
SELECT + CAST ( + 16 AS INTEGER ) AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT ALL 52 DIV 35 + 40
----
41

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL 52 / 35 + 40
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT + CAST( + + 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-4760
SELECT + CAST ( + + 54 AS INTEGER )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT + 27 - + + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4761
SELECT + 27 - + + COUNT ( * ) AS col0
----
26

query I rowsort
SELECT ALL 38 * + 69 * 71 AS col2
----
186162

query I rowsort
SELECT DISTINCT + NULLIF ( - ( 50 ), ( 30 ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT + 64 * COUNT( ALL 61 )
----
64

skipif mysql # not compatible
query I rowsort label-4764
SELECT + 64 * COUNT ( ALL 61 )
----
64

query I rowsort
SELECT ALL + + NULLIF ( + 33, + 40 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT - - 47 * 17 * 55 - ( - 32 + CAST( NULL AS SIGNED ) ) / 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT - - 47 * 17 * 55 - ( - 32 + CAST ( NULL AS INTEGER ) ) / 91 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT DISTINCT + ( 25 ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + ( 25 ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 78 * - - COALESCE ( + 78, 38, 52 * - 91 ) AS col1
----
6084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT - + 73 * CAST( NULL AS SIGNED ) + COALESCE ( + 28, + 22 ) * - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT - + 73 * CAST ( NULL AS INTEGER ) + COALESCE ( + 28, + 22 ) * - 59 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT + - COALESCE ( + - 78, - 57 ) + - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4770
SELECT + - COALESCE ( + - 78, - 57 ) + - COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT DISTINCT - + 91 * - - COUNT( * ) + - 73 AS col1
----
-164

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - + 91 * - - COUNT ( * ) + - 73 AS col1
----
-164

query I rowsort
SELECT + + 28 + 70 + 23 col0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT ALL + CAST( + ( 11 ) AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL + CAST ( + ( 11 ) AS INTEGER ) AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT 69 * - 9 * + CAST( ( - 19 ) AS SIGNED ) AS col2
----
11799

skipif mysql # not compatible
query I rowsort label-4774
SELECT 69 * - 9 * + CAST ( ( - 19 ) AS INTEGER ) AS col2
----
11799

query I rowsort
SELECT ALL - 1 * - 90 * 64
----
5760

query I rowsort
SELECT DISTINCT + 90 * 67
----
6030

query I rowsort
SELECT NULLIF ( + + 68, - 5 ) AS col2
----
68

query I rowsort
SELECT ALL - 57 * + + 76 * - 95 AS col1
----
411540

query I rowsort
SELECT ALL - 51 + + - 85 AS col2
----
-136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), + 66 ) * ( + 17 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), + 66 ) * ( + 17 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT ALL - - COUNT( * ) + - 59 * + 47 col2
----
-2772

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL - - COUNT ( * ) + - 59 * + 47 col2
----
-2772

query I rowsort
SELECT ALL + 65 + - - 77 - 83 * - 6 AS col2
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT 25 - COUNT( * ) * + 42
----
-17

skipif mysql # not compatible
query I rowsort label-4783
SELECT 25 - COUNT ( * ) * + 42
----
-17

query I rowsort
SELECT - NULLIF ( + 59, 9 ) AS col2
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4785
SELECT 16 + + COUNT( * ) + - CAST( + NULLIF ( + COALESCE ( + 63, + 46 ), + 36 ) AS SIGNED ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT 16 + + COUNT ( * ) + - CAST ( + NULLIF ( + COALESCE ( + 63, + 46 ), + 36 ) AS INTEGER ) - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 15 AS col0, 43 * - ( + 70 ) AS col2
----
15
-3010

query I rowsort
SELECT ALL + 41 + - 38
----
3

query I rowsort
SELECT 26 + - 64
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-4789
SELECT ALL 49 AS col2, - COUNT( * ) * - + 69
----
49
69

skipif mysql # not compatible
query II rowsort label-4789
SELECT ALL 49 AS col2, - COUNT ( * ) * - + 69
----
49
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT 35 + - COUNT( ALL + 88 ) * + 57
----
-22

skipif mysql # not compatible
query I rowsort label-4790
SELECT 35 + - COUNT ( ALL + 88 ) * + 57
----
-22

query I rowsort
SELECT ALL + 68 + - 57 - 73 * + 42 AS col2
----
-3055

query I rowsort
SELECT 42 * 38 AS col1
----
1596

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT DISTINCT + 96 DIV - + ( 26 )
----
-3

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT + 96 / - + ( 26 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT 54 * COUNT( * ) * + 48
----
2592

skipif mysql # not compatible
query I rowsort label-4794
SELECT 54 * COUNT ( * ) * + 48
----
2592

query I rowsort
SELECT DISTINCT - 23 + + 75
----
52

query I rowsort
SELECT ALL + ( + + 14 ) + + 89 * 94 AS col0
----
8380

query I rowsort
SELECT 70 + + 95
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT ALL - 5 - + - CAST( NULL AS SIGNED ) + + + 98 * ( - 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL - 5 - + - CAST ( NULL AS INTEGER ) + + + 98 * ( - 76 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4799
SELECT 64, - 37 * - - COUNT( * ) + + COUNT( COALESCE ( - 35, 54, + 69 ) + ( 30 ) ) col2
----
64
-36

skipif mysql # not compatible
query II rowsort label-4799
SELECT 64, - 37 * - - COUNT ( * ) + + COUNT ( COALESCE ( - 35, 54, + 69 ) + ( 30 ) ) col2
----
64
-36

query I rowsort
SELECT DISTINCT - 96 * + NULLIF ( - 42, - 79 ) AS col0
----
4032

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT + 98 DIV + 71 + - 88 * + 99 col2
----
-8711

skipif mysql # not compatible
query I rowsort label-4801
SELECT + 98 / + 71 + - 88 * + 99 col2
----
-8711

query II rowsort
SELECT ALL - 25 col2, + 59 + 99 col1
----
-25
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT 60 + ( + COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-4803
SELECT 60 + ( + COUNT ( * ) )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT + ( - CASE + ( 67 ) WHEN MAX( CAST( + 66 AS SIGNED ) ) + 74 THEN 61 * 40 WHEN MAX( + 50 ) THEN + 61 ELSE COUNT( * ) END ) * + 30 + ( - 78 ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-4804
SELECT + ( - CASE + ( 67 ) WHEN MAX ( CAST ( + 66 AS INTEGER ) ) + 74 THEN 61 * 40 WHEN MAX ( + 50 ) THEN + 61 ELSE COUNT ( * ) END ) * + 30 + ( - 78 ) AS col0
----
-108

query II rowsort
SELECT DISTINCT - 44 AS col2, 30
----
-44
30

query I rowsort
SELECT ALL - 57 * + 91
----
-5187

query I rowsort
SELECT ALL - - 6 AS col1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT + + 93 DIV + 65 + - ( 13 ) + 81
----
69

skipif mysql # not compatible
query I rowsort label-4808
SELECT + + 93 / + 65 + - ( 13 ) + 81
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4809
SELECT ALL - NULLIF ( 27, 98 * - COALESCE ( CAST( CASE 71 WHEN 6 THEN - 27 / - 44 WHEN CAST( + SUM( ALL + 50 ) AS SIGNED ) + + 25 / 80 THEN NULL ELSE 45 END AS SIGNED ) + 61, 65, + 90 ) ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL - NULLIF ( 27, 98 * - COALESCE ( CAST ( CASE 71 WHEN 6 THEN - 27 / - 44 WHEN CAST ( + SUM ( ALL + 50 ) AS INTEGER ) + + 25 / 80 THEN NULL ELSE 45 END AS INTEGER ) + 61, 65, + 90 ) ) AS col0
----
-27

query I rowsort
SELECT + ( - 98 )
----
-98

query I rowsort
SELECT + 89 + + - 29 + 55
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT ALL - COUNT( * ) * 96 * - 91 AS col2
----
8736

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL - COUNT ( * ) * 96 * - 91 AS col2
----
8736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT COUNT( * ) DIV 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4813
SELECT COUNT ( * ) / 53 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL 68 * - 51 * - COUNT( * )
----
3468

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL 68 * - 51 * - COUNT ( * )
----
3468

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + SUM( 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-4815
SELECT + SUM ( 9 ) col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT NULLIF ( 25, - 34 ) * 16 + - 40 DIV ( 49 ) col1
----
400

skipif mysql # not compatible
query I rowsort label-4816
SELECT NULLIF ( 25, - 34 ) * 16 + - 40 / ( 49 ) col1
----
400

query I rowsort
SELECT DISTINCT - + COALESCE ( + 76, - + 23 )
----
-76

query I rowsort
SELECT DISTINCT + 30 + + + 37 AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4819
SELECT DISTINCT - 19 * + - 53 * - - CAST( 3 AS SIGNED )
----
3021

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT - 19 * + - 53 * - - CAST ( 3 AS INTEGER )
----
3021

onlyif mysql # DIV for integer division: 
query II rowsort label-4820
SELECT DISTINCT - - 13, ( + 2 ) DIV - 77 AS col0
----
13
0

skipif mysql # not compatible
query II rowsort label-4820
SELECT DISTINCT - - 13, ( + 2 ) / - 77 AS col0
----
13
0

query I rowsort
SELECT DISTINCT 52 + - 96
----
-44

query I rowsort
SELECT ALL + - 26 + 27 * 2 * + 67 AS col0
----
3592

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT 61 + - 94 - - 29 + - COUNT( * ) * NULLIF ( + 70 * + 41 - + 89, 71 * 58 ) AS col1
----
-2785

skipif mysql # not compatible
query I rowsort label-4823
SELECT 61 + - 94 - - 29 + - COUNT ( * ) * NULLIF ( + 70 * + 41 - + 89, 71 * 58 ) AS col1
----
-2785

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT 70 + + COALESCE ( + COUNT( * ), COUNT( * ) )
----
71

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT 70 + + COALESCE ( + COUNT ( * ), COUNT ( * ) )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4825
SELECT - 30 * + 4 + + COUNT( * ) + SUM( 53 + + 57 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT - 30 * + 4 + + COUNT ( * ) + SUM ( 53 + + 57 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT 53 + - 7 + + COUNT( * ) * 60
----
106

skipif mysql # not compatible
query I rowsort label-4826
SELECT 53 + - 7 + + COUNT ( * ) * 60
----
106

query I rowsort
SELECT ALL 98 + 39 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT 40 + MAX( 78 ) + 99
----
217

skipif mysql # not compatible
query I rowsort label-4828
SELECT 40 + MAX ( 78 ) + 99
----
217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4829
SELECT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) * + 68 AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-4829
SELECT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) * + 68 AS col1
----
NULL
68

query II rowsort
SELECT - 58 AS col1, + 9
----
-58
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4831
SELECT COUNT( * ) * MIN( + 57 ) DIV - 25 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4831
SELECT COUNT ( * ) * MIN ( + 57 ) / - 25 AS col2
----
-2

query II rowsort
SELECT 61 + 56 AS col0, 15 AS col0
----
117
15

query I rowsort
SELECT DISTINCT - 0 + - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT - MAX( ALL + 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-4834
SELECT - MAX ( ALL + 29 )
----
-29

query I rowsort
SELECT ALL + 36 + - + CASE + 66 WHEN 19 THEN NULL WHEN - 74 THEN NULL ELSE + 14 * 48 END * 85 AS col0
----
-57084

query I rowsort
SELECT ALL - 82 * - 50 * + - 39 * + 4
----
-639600

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT 34 + + SUM( 32 )
----
66

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT 34 + + SUM ( 32 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT MAX( DISTINCT 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT MAX ( DISTINCT 85 ) AS col0
----
85

query I rowsort
SELECT DISTINCT + 91 * + 38 * - - 48
----
165984

query I rowsort
SELECT ( + 65 ) * 33 * + 43 * + 84
----
7747740

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT 86 + - NULLIF ( + + 38, + CASE - 6 WHEN - COUNT( * ) + 68 / COUNT( * ) THEN NULL WHEN - 92 + NULLIF ( + 51, 16 ) * - 35 THEN 5 END ) - + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4841
SELECT 86 + - NULLIF ( + + 38, + CASE - 6 WHEN - COUNT ( * ) + 68 / COUNT ( * ) THEN NULL WHEN - 92 + NULLIF ( + 51, 16 ) * - 35 THEN 5 END ) - + COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT COUNT( ALL - 90 ) * 12
----
12

skipif mysql # not compatible
query I rowsort label-4842
SELECT COUNT ( ALL - 90 ) * 12
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT ALL + 38 DIV + ( - 19 )
----
-2

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + 38 / + ( - 19 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4844
SELECT 67 * 61 AS col0, - CAST( NULL AS SIGNED )
----
4087
NULL

skipif mysql # not compatible
query II rowsort label-4844
SELECT 67 * 61 AS col0, - CAST ( NULL AS INTEGER )
----
4087
NULL

query I rowsort
SELECT DISTINCT + 20 * 88 AS col1
----
1760

query II rowsort
SELECT 79 * + 5 AS col1, 83
----
395
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT ALL + 47 DIV - + 32
----
-1

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + 47 / - + 32
----
-1

query I rowsort
SELECT DISTINCT + 29 * 28 AS col1
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT 37 * - MAX( DISTINCT 19 ) * - - 42 * + 75 AS col2
----
-2214450

skipif mysql # not compatible
query I rowsort label-4849
SELECT 37 * - MAX ( DISTINCT 19 ) * - - 42 * + 75 AS col2
----
-2214450

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT + COUNT( * ) * - + MAX( DISTINCT - 32 ) - + 80 - - 60 * 77 col1
----
4572

skipif mysql # not compatible
query I rowsort label-4850
SELECT + COUNT ( * ) * - + MAX ( DISTINCT - 32 ) - + 80 - - 60 * 77 col1
----
4572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT ( + + 32 ) * + + CAST( 18 AS SIGNED ) col1
----
576

skipif mysql # not compatible
query I rowsort label-4851
SELECT ( + + 32 ) * + + CAST ( 18 AS INTEGER ) col1
----
576

query I rowsort
SELECT DISTINCT - 84 * 3 * 75 + + 62 AS col1
----
-18838

query I rowsort
SELECT ALL - 86 col2
----
-86

query I rowsort
SELECT 29 - - + 98 AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + COUNT( * ) * 73 * + 20 + + 87 * COUNT( * ) AS col0
----
1547

skipif mysql # not compatible
query I rowsort label-4855
SELECT + COUNT ( * ) * 73 * + 20 + + 87 * COUNT ( * ) AS col0
----
1547

query I rowsort
SELECT DISTINCT + 23 * - 27 col1
----
-621

query I rowsort
SELECT + + ( - 51 )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT ALL - CAST( 38 AS SIGNED ) * + ( + 77 ) + 68 AS col2
----
-2858

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL - CAST ( 38 AS INTEGER ) * + ( + 77 ) + 68 AS col2
----
-2858

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL - 66 * 24 * + COUNT( * ) + 28 * 9 + - 35
----
-1367

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - 66 * 24 * + COUNT ( * ) + 28 * 9 + - 35
----
-1367

query I rowsort
SELECT 71 * - COALESCE ( - - 72, 83, - 75 * + 84 ) - 20 * 21
----
-5532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4861
SELECT ALL CAST( 90 AS SIGNED ) + - + 18 + - - 24 - COUNT( * ) DIV - 82 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL CAST ( 90 AS INTEGER ) + - + 18 + - - 24 - COUNT ( * ) / - 82 AS col1
----
96

query I rowsort
SELECT DISTINCT 0 + - 17
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4863
SELECT CAST( 20 AS SIGNED ), + ( 55 ) AS col1
----
20
55

skipif mysql # not compatible
query II rowsort label-4863
SELECT CAST ( 20 AS INTEGER ), + ( 55 ) AS col1
----
20
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT DISTINCT CAST( + 97 AS SIGNED ) - - COUNT( * ) + 68
----
166

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT CAST ( + 97 AS INTEGER ) - - COUNT ( * ) + 68
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4865
SELECT ALL CASE - CAST( + 19 AS SIGNED ) WHEN + COALESCE ( + - COUNT( ALL + 78 ), - SUM( CAST( NULL AS DECIMAL ) ) ) THEN 22 WHEN 26 THEN NULL END - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL CASE - CAST ( + 19 AS INTEGER ) WHEN + COALESCE ( + - COUNT ( ALL + 78 ), - SUM ( CAST ( NULL AS REAL ) ) ) THEN 22 WHEN 26 THEN NULL END - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT + 34 * - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-4866
SELECT + 34 * - COUNT ( * )
----
-34

query I rowsort
SELECT + 51 + + 24
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT + COUNT( * ) + - 77
----
-76

skipif mysql # not compatible
query I rowsort label-4868
SELECT + COUNT ( * ) + - 77
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4869
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), - SUM( - 83 ) - - 15 ) * ( 62 * - 48 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), - SUM ( - 83 ) - - 15 ) * ( 62 * - 48 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4870
SELECT - 92 DIV - CASE + NULLIF ( - + 51, 9 ) WHEN + ( + 5 ) DIV NULLIF ( ( - COUNT( * ) ), - 44 + COUNT( * ) ) + + 56 THEN - 44 * CAST( NULL AS SIGNED ) ELSE - 40 END
----
-2

skipif mysql # not compatible
query I rowsort label-4870
SELECT - 92 / - CASE + NULLIF ( - + 51, 9 ) WHEN + ( + 5 ) / NULLIF ( ( - COUNT ( * ) ), - 44 + COUNT ( * ) ) + + 56 THEN - 44 * CAST ( NULL AS INTEGER ) ELSE - 40 END
----
-2

query I rowsort
SELECT + 4 + + 23 * 50 + - 20 * - + 95 AS col2
----
3054

query I rowsort
SELECT ALL + 51 * - 62 col0
----
-3162

query II rowsort
SELECT ALL 71, 22 AS col1
----
71
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT + CASE + + 62 WHEN + + CASE + + 71 WHEN - 21 THEN NULL ELSE 74 END THEN NULL WHEN COUNT( * ) THEN - 17 * - COUNT( * ) WHEN + COUNT( 55 ) * + 47 - 8 * 26 THEN NULL END * + SUM( 19 / + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT + CASE + + 62 WHEN + + CASE + + 71 WHEN - 21 THEN NULL ELSE 74 END THEN NULL WHEN COUNT ( * ) THEN - 17 * - COUNT ( * ) WHEN + COUNT ( 55 ) * + 47 - 8 * 26 THEN NULL END * + SUM ( 19 / + 72 )
----
NULL

query I rowsort
SELECT - ( - 34 )
----
34

query I rowsort
SELECT - 74 + + 36
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4877
SELECT ALL CASE + - 67 WHEN + 65 THEN NULLIF ( - COUNT( CAST( NULL AS SIGNED ) ), COALESCE ( + COUNT( * ), 97, 36 ) ) + 69 WHEN - 43 - 79 THEN - 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL CASE + - 67 WHEN + 65 THEN NULLIF ( - COUNT ( CAST ( NULL AS INTEGER ) ), COALESCE ( + COUNT ( * ), 97, 36 ) ) + 69 WHEN - 43 - 79 THEN - 66 END
----
NULL

query I rowsort
SELECT ALL 56 * 85
----
4760

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT MAX( ALL - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT MAX ( ALL - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT + ( + ( + - ( 73 ) ) ) * COUNT( ALL + 25 ) + 69 * 97 AS col1
----
6620

skipif mysql # not compatible
query I rowsort label-4880
SELECT + ( + ( + - ( 73 ) ) ) * COUNT ( ALL + 25 ) + 69 * 97 AS col1
----
6620

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT - 68 * + - MIN( ALL 43 ) + - NULLIF ( 83, + 14 + + NULLIF ( - 79, 39 - NULLIF ( - 92, 47 * + COUNT( * ) ) * + 87 ) * + 98 ) AS col1
----
2841

skipif mysql # not compatible
query I rowsort label-4881
SELECT - 68 * + - MIN ( ALL 43 ) + - NULLIF ( 83, + 14 + + NULLIF ( - 79, 39 - NULLIF ( - 92, 47 * + COUNT ( * ) ) * + 87 ) * + 98 ) AS col1
----
2841

query I rowsort
SELECT - + 16 + + 8
----
-8

query I rowsort
SELECT ALL + ( - + 65 ) AS col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) - + 56 / - 7 + + + 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) - + 56 / - 7 + + + 7 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4885
SELECT ALL 67 DIV + ( + 41 ) + ( + - 15 ) * - CAST( - ( - COUNT( * ) ) + COUNT( * ) AS SIGNED ) + ( - 92 )
----
-61

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL 67 / + ( + 41 ) + ( + - 15 ) * - CAST ( - ( - COUNT ( * ) ) + COUNT ( * ) AS INTEGER ) + ( - 92 )
----
-61

query I rowsort
SELECT DISTINCT + - 24 * 99 + - 83
----
-2459

onlyif mysql # DIV for integer division: 
query I rowsort label-4887
SELECT - 4 DIV + 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4887
SELECT - 4 / + 15 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT 75 DIV + 25 + 68 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4888
SELECT 75 / + 25 + 68 AS col0
----
71

query I rowsort
SELECT ALL - 69 * + + 4 AS col1
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT DISTINCT + + 5 * - 67 + - COALESCE ( + 26, - COUNT( * ), ( + 26 ) ) * + NULLIF ( 93, + NULLIF ( + 37, 11 ) ) AS col0
----
-2753

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT + + 5 * - 67 + - COALESCE ( + 26, - COUNT ( * ), ( + 26 ) ) * + NULLIF ( 93, + NULLIF ( + 37, 11 ) ) AS col0
----
-2753

query II rowsort
SELECT 56, + ( - 74 ) AS col1
----
56
-74

query I rowsort
SELECT ALL + 78 * - - 42
----
3276

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4893
SELECT ALL + - CAST( NULL AS SIGNED ) * + 48 + + 91 AS col1, NULLIF ( - 58, - 42 ) col1
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-4893
SELECT ALL + - CAST ( NULL AS INTEGER ) * + 48 + + 91 AS col1, NULLIF ( - 58, - 42 ) col1
----
NULL
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4894
SELECT - + COUNT( * ) DIV - 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4894
SELECT - + COUNT ( * ) / - 44 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT + + 9 * + + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4895
SELECT + + 9 * + + COUNT ( * ) AS col2
----
9

query I rowsort
SELECT - - 39 * - + 37
----
-1443

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4897
SELECT CASE - 36 WHEN + COALESCE ( 24, - COUNT( * ), + ( 77 ) - 11 ) THEN + CAST( NULL AS SIGNED ) / - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT CASE - 36 WHEN + COALESCE ( 24, - COUNT ( * ), + ( 77 ) - 11 ) THEN + CAST ( NULL AS INTEGER ) / - 32 END
----
NULL

query I rowsort
SELECT ALL + 54 * - 94 - + 22 + + + 54 AS col0
----
-5044

query I rowsort
SELECT ( - 92 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + 88 + + 92 + ( COUNT( * ) ) + - + 41
----
140

skipif mysql # not compatible
query I rowsort label-4900
SELECT + 88 + + 92 + ( COUNT ( * ) ) + - + 41
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT + 37 * + 83 - + COUNT( ALL 48 )
----
3070

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + 37 * + 83 - + COUNT ( ALL 48 )
----
3070

query I rowsort
SELECT - 11 * 80 AS col2
----
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT ALL 22 * CAST( - 39 AS SIGNED )
----
-858

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL 22 * CAST ( - 39 AS INTEGER )
----
-858

query III rowsort
SELECT DISTINCT 55, + 30 AS col1, - - 52 AS col0
----
55
30
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4905
SELECT - MIN( + 75 ) - + CAST( + 34 AS SIGNED ) - + - NULLIF ( 16, 72 * 30 ) * 93
----
1379

skipif mysql # not compatible
query I rowsort label-4905
SELECT - MIN ( + 75 ) - + CAST ( + 34 AS INTEGER ) - + - NULLIF ( 16, 72 * 30 ) * 93
----
1379

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT MIN( DISTINCT 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4906
SELECT MIN ( DISTINCT 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT - CASE - MIN( - 52 ) WHEN - - 12 THEN - 37 * 46 + - AVG ( 15 ) * - 64 WHEN 61 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT - CASE - MIN ( - 52 ) WHEN - - 12 THEN - 37 * 46 + - AVG ( 15 ) * - 64 WHEN 61 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 80 * + 85 * ( 65 ) col1
----
442000

query I rowsort
SELECT - ( 73 ) AS col0
----
-73

query II rowsort
SELECT 69 AS col0, 91
----
69
91

query II rowsort
SELECT ALL 72, + 98 - 6 AS col0
----
72
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT - 44 * - 91 * - + COUNT( * ) col0
----
-4004

skipif mysql # not compatible
query I rowsort label-4912
SELECT - 44 * - 91 * - + COUNT ( * ) col0
----
-4004

query I rowsort
SELECT + 50 * - 19
----
-950

query I rowsort
SELECT - COALESCE ( + ( + ( + 35 ) ), - - 49, 69 )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4915
SELECT + NULLIF ( NULLIF ( 90, + 44 + + AVG ( - 81 ) + 71 * + ( 41 * - 70 + 84 * 87 ) ), COALESCE ( + NULLIF ( + CAST( 18 AS SIGNED ), COUNT( * ) ), + COUNT( * ) + + 56 * + 88, - 12 ) + + 74 * 9 ) * + 51
----
4590

skipif mysql # not compatible
query I rowsort label-4915
SELECT + NULLIF ( NULLIF ( 90, + 44 + + AVG ( - 81 ) + 71 * + ( 41 * - 70 + 84 * 87 ) ), COALESCE ( + NULLIF ( + CAST ( 18 AS INTEGER ), COUNT ( * ) ), + COUNT ( * ) + + 56 * + 88, - 12 ) + + 74 * 9 ) * + 51
----
4590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT - ( - CASE 9 WHEN + MAX( - 9 ) THEN - + CAST( NULL AS SIGNED ) + + SUM( - 96 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4916
SELECT - ( - CASE 9 WHEN + MAX ( - 9 ) THEN - + CAST ( NULL AS INTEGER ) + + SUM ( - 96 ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4917
SELECT + 3 DIV 14 * + 87 * + 51 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4917
SELECT + 3 / 14 * + 87 * + 51 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4918
SELECT ALL 9 + - CASE - + 67 WHEN - + ( COUNT( * ) ) THEN NULL WHEN + 80 * 47 + - 13 / 47 THEN - 97 * + 32 END * CAST( 58 - ( 21 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL 9 + - CASE - + 67 WHEN - + ( COUNT ( * ) ) THEN NULL WHEN + 80 * 47 + - 13 / 47 THEN - 97 * + 32 END * CAST ( 58 - ( 21 ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT 85 * 62 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT 85 * 62 * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 21 + + 4 AS col2
----
25

query I rowsort
SELECT ALL 48 * 11 AS col1
----
528

query II rowsort
SELECT 91 AS col2, 48 AS col2
----
91
48

query I rowsort
SELECT ALL 92 + + 70 + - - 96 AS col0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT + 6 + + 91 * + 82 + + + COUNT( * )
----
7469

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + 6 + + 91 * + 82 + + + COUNT ( * )
----
7469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4925
SELECT ALL - ( + + COUNT( * ) ) + 69 + - + COUNT( * ) * 60 DIV - + 76 * 39
----
68

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - ( + + COUNT ( * ) ) + 69 + - + COUNT ( * ) * 60 / - + 76 * 39
----
68

query I rowsort
SELECT 36 * - 55 AS col0
----
-1980

onlyif mysql # aggregate syntax: 
query II rowsort label-4927
SELECT ALL COUNT( * ) * - + 64 col1, - 11 * CASE + + 75 WHEN 16 * - NULLIF ( - 42 + 18, 39 * + COUNT( * ) ) + 79 * + COUNT( * ) THEN + 45 WHEN 62 THEN 98 ELSE NULL END AS col1
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-4927
SELECT ALL COUNT ( * ) * - + 64 col1, - 11 * CASE + + 75 WHEN 16 * - NULLIF ( - 42 + 18, 39 * + COUNT ( * ) ) + 79 * + COUNT ( * ) THEN + 45 WHEN 62 THEN 98 ELSE NULL END AS col1
----
-64
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT + 44 DIV + - ( + 68 ) + - + 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-4928
SELECT + 44 / + - ( + 68 ) + - + 18 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + COUNT( ALL - 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4929
SELECT + COUNT ( ALL - 8 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4930
SELECT + 14 col0, - MAX( DISTINCT 3 ) AS col0
----
14
-3

skipif mysql # not compatible
query II rowsort label-4930
SELECT + 14 col0, - MAX ( DISTINCT 3 ) AS col0
----
14
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT MAX( + 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4931
SELECT MAX ( + 85 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT ALL + COUNT( * ) + + - 56 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL + COUNT ( * ) + + - 56 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT NULLIF ( + COUNT( - 62 ), + 30 + 0 ) * - 48
----
-48

skipif mysql # not compatible
query I rowsort label-4933
SELECT NULLIF ( + COUNT ( - 62 ), + 30 + 0 ) * - 48
----
-48

query I rowsort
SELECT ALL + 49 + + 2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + 24 - + + MIN( 42 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-4935
SELECT + 24 - + + MIN ( 42 ) AS col0
----
-18

query I rowsort
SELECT - NULLIF ( + + 18, + 47 + - 8 - - 0 * - 28 )
----
-18

query II rowsort
SELECT - 56 * + 72 + - 93 + + - 41, + 84 - - 46 AS col1
----
-4166
130

query I rowsort
SELECT 38 * 28
----
1064

onlyif mysql # aggregate syntax: 
query II rowsort label-4939
SELECT DISTINCT - + 26, - CASE - - SUM( 31 ) WHEN + 92 THEN NULL ELSE 71 END AS col2
----
-26
-71

skipif mysql # not compatible
query II rowsort label-4939
SELECT DISTINCT - + 26, - CASE - - SUM ( 31 ) WHEN + 92 THEN NULL ELSE 71 END AS col2
----
-26
-71

query I rowsort
SELECT ALL - + COALESCE ( + 22, + 60 )
----
-22

query I rowsort
SELECT ALL - + 64 * - 28 * - 89 * - 77
----
12280576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4942
SELECT ALL - MIN( + + 85 ) DIV - + 99 - - NULLIF ( - COALESCE ( - COUNT( * ), + 6 DIV ( - 30 ) ), 83 * - 33 ) + SUM( ( 32 ) ) * 83 AS col2
----
2657

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - MIN ( + + 85 ) / - + 99 - - NULLIF ( - COALESCE ( - COUNT ( * ), + 6 / ( - 30 ) ), 83 * - 33 ) + SUM ( ( 32 ) ) * 83 AS col2
----
2657

onlyif mysql # aggregate syntax: 
query II rowsort label-4943
SELECT ALL + 78 * + 87, + COUNT( * ) AS col1
----
6786
1

skipif mysql # not compatible
query II rowsort label-4943
SELECT ALL + 78 * + 87, + COUNT ( * ) AS col1
----
6786
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4944
SELECT 44 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-4944
SELECT 44 / 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT 80 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4945
SELECT 80 / 92 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4946
SELECT 51 * - COUNT( - - 41 ) col1, 10
----
-51
10

skipif mysql # not compatible
query II rowsort label-4946
SELECT 51 * - COUNT ( - - 41 ) col1, 10
----
-51
10

query I rowsort
SELECT 54 + + 97
----
151

query I rowsort
SELECT ALL - 78 * 51
----
-3978

query I rowsort
SELECT ALL 69 + 18
----
87

query I rowsort
SELECT DISTINCT 86 * - 43 * + - ( - + 72 )
----
-266256

query II rowsort
SELECT 60 + + 3 AS col2, 20
----
63
20

query II rowsort
SELECT 69 * - 53, 51 * + + 11 col2
----
-3657
561

query I rowsort
SELECT 5 * 69
----
345

query I rowsort
SELECT ALL - 16 + 76 * + 61 AS col2
----
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT 76 + COUNT( * ) + + COUNT( * ) col2
----
78

skipif mysql # not compatible
query I rowsort label-4955
SELECT 76 + COUNT ( * ) + + COUNT ( * ) col2
----
78

query I rowsort
SELECT ALL 85 * - + 19 col2
----
-1615

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4957
SELECT 95 + + + 79 + - COUNT( * ) DIV 23 * + - COUNT( * ) - 90 * + + 18 - SUM( 31 ) AS col1
----
-1477

skipif mysql # not compatible
query I rowsort label-4957
SELECT 95 + + + 79 + - COUNT ( * ) / 23 * + - COUNT ( * ) - 90 * + + 18 - SUM ( 31 ) AS col1
----
-1477

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL - COUNT( * ) + + 12 + 29 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL - COUNT ( * ) + + 12 + 29 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT - 6 + + ( - COUNT( 68 ) ) DIV - 42
----
-6

skipif mysql # not compatible
query I rowsort label-4959
SELECT - 6 + + ( - COUNT ( 68 ) ) / - 42
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4960
SELECT ALL 46 + + COUNT( * ) DIV + 26 * - - 56 * 3, 48 AS col2
----
46
48

skipif mysql # not compatible
query II rowsort label-4960
SELECT ALL 46 + + COUNT ( * ) / + 26 * - - 56 * 3, 48 AS col2
----
46
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ( + 60 ) + + MAX( ALL 17 ) col0
----
77

skipif mysql # not compatible
query I rowsort label-4961
SELECT ( + 60 ) + + MAX ( ALL 17 ) col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT ALL - ( + + 63 ) DIV - + COALESCE ( + 23, 93 * - + ( - + 83 ) ) + - 76
----
-74

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - ( + + 63 ) / - + COALESCE ( + 23, 93 * - + ( - + 83 ) ) + - 76
----
-74

query I rowsort
SELECT - NULLIF ( + - 59, - 86 + + 33 )
----
59

query I rowsort
SELECT + 42 + - ( - 78 ) + - + 0 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT SUM( + + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4965
SELECT SUM ( + + 35 )
----
35

query III rowsort
SELECT ALL - 53 - - - 82, 43 AS col0, 62 + - 84 - + 30 AS col2
----
-135
43
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4967
SELECT - + COALESCE ( + 79, MAX( DISTINCT - 33 ), + 33 + - 52 DIV 2 ) * + 22 + 72
----
-1666

skipif mysql # not compatible
query I rowsort label-4967
SELECT - + COALESCE ( + 79, MAX ( DISTINCT - 33 ), + 33 + - 52 / 2 ) * + 22 + 72
----
-1666

query I rowsort
SELECT - 65 * 44 * + 81 + 13 AS col0
----
-231647

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT MAX( + - 17 ) * + 84 + ( + 53 ) + + - 69 + + - CASE 47 WHEN COUNT( * ) THEN 78 ELSE NULL END * + CASE 17 WHEN 59 THEN 43 + + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT MAX ( + - 17 ) * + 84 + ( + 53 ) + + - 69 + + - CASE 47 WHEN COUNT ( * ) THEN 78 ELSE NULL END * + CASE 17 WHEN 59 THEN 43 + + 39 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4970
SELECT - 4 DIV COUNT( * ) + + + 34 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4970
SELECT - 4 / COUNT ( * ) + + + 34 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + CASE - 82 WHEN COUNT( * ) THEN NULL ELSE + + CASE + 74 WHEN - 19 + - + 46 + - 80 THEN NULL ELSE - 2 END END * 50 - - 71 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-4971
SELECT + CASE - 82 WHEN COUNT ( * ) THEN NULL ELSE + + CASE + 74 WHEN - 19 + - + 46 + - 80 THEN NULL ELSE - 2 END END * 50 - - 71 AS col1
----
-29

query I rowsort
SELECT ALL - - 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - 3 * - 34 * + 29 + 91 * - + COUNT( * ) AS col1
----
2867

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - 3 * - 34 * + 29 + 91 * - + COUNT ( * ) AS col1
----
2867

query I rowsort
SELECT DISTINCT - CASE WHEN NOT - 46 IS NOT NULL THEN + 91 + - 49 + + 42 + - 31 + + 43 * 29 / + 11 * + 2 END AS col0
----
NULL

query I rowsort
SELECT 53 * 66
----
3498

query I rowsort
SELECT + + 24 * + 83 + + 66 AS col1
----
2058

query II rowsort
SELECT + + ( 98 ) AS col1, - 8 col2
----
98
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT + 72 + NULLIF ( + 58, + 30 * - - CAST( - 19 AS SIGNED ) )
----
130

skipif mysql # not compatible
query I rowsort label-4978
SELECT + 72 + NULLIF ( + 58, + 30 * - - CAST ( - 19 AS INTEGER ) )
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT 32 * - 3, + SUM( 91 ) AS col1
----
-96
91

skipif mysql # not compatible
query II rowsort label-4979
SELECT 32 * - 3, + SUM ( 91 ) AS col1
----
-96
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4980
SELECT ALL - COUNT( * ), + 82 + - COUNT( DISTINCT ( 95 ) ) * + - 7 AS col1, CAST( + + 23 AS SIGNED ) * + 45 AS col2
----
-1
89
1035

skipif mysql # not compatible
query III rowsort label-4980
SELECT ALL - COUNT ( * ), + 82 + - COUNT ( DISTINCT ( 95 ) ) * + - 7 AS col1, CAST ( + + 23 AS INTEGER ) * + 45 AS col2
----
-1
89
1035

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT + MIN( - - 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4981
SELECT + MIN ( - - 74 ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT - NULLIF ( + 92, - - 67 - COUNT( * ) )
----
-92

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT - NULLIF ( + 92, - - 67 - COUNT ( * ) )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4984
SELECT 83 * + COUNT( - 68 ) * CAST( - + NULLIF ( - ( 44 ), - + 26 - 27 ) AS SIGNED ) + + ( + 73 + 9 * 95 ) + + CASE ( + SUM( 98 ) ) WHEN + 73 * + 38 - - 10 THEN NULL ELSE + 33 END * 11
----
4943

skipif mysql # not compatible
query I rowsort label-4984
SELECT 83 * + COUNT ( - 68 ) * CAST ( - + NULLIF ( - ( 44 ), - + 26 - 27 ) AS INTEGER ) + + ( + 73 + 9 * 95 ) + + CASE ( + SUM ( 98 ) ) WHEN + 73 * + 38 - - 10 THEN NULL ELSE + 33 END * 11
----
4943

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL - SUM( ALL 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL - SUM ( ALL 64 )
----
-64

query II rowsort
SELECT 99, 66 AS col1
----
99
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL - COUNT( * ) + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - COUNT ( * ) + - 66
----
-67

query I rowsort
SELECT ALL + 92 * 2
----
184

onlyif mysql # aggregate syntax: 
query II rowsort label-4989
SELECT ALL - 15 AS col2, COUNT( * ) * + 9 + - 48 AS col1
----
-15
-39

skipif mysql # not compatible
query II rowsort label-4989
SELECT ALL - 15 AS col2, COUNT ( * ) * + 9 + - 48 AS col1
----
-15
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4990
SELECT 86 + + - 89 * + - 41 * - COUNT( * ), SUM( - + 65 ) - - + MAX( - - 27 ) + - 97 DIV + 38 AS col1
----
-3563
-40

skipif mysql # not compatible
query II rowsort label-4990
SELECT 86 + + - 89 * + - 41 * - COUNT ( * ), SUM ( - + 65 ) - - + MAX ( - - 27 ) + - 97 / + 38 AS col1
----
-3563
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT + 2 + + COUNT( * ) - + 99 + - ( 86 ) AS col1
----
-182

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT + 2 + + COUNT ( * ) - + 99 + - ( 86 ) AS col1
----
-182

query I rowsort
SELECT ALL - 47 + + COALESCE ( COALESCE ( + + 8, - 47 ), + + 4 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4993
SELECT 94 AS col1, CAST( NULL AS SIGNED ) * 52 AS col0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-4993
SELECT 94 AS col1, CAST ( NULL AS INTEGER ) * 52 AS col0
----
94
NULL

query I rowsort
SELECT - 2 * + + 50 + + - 55
----
-155

query I rowsort
SELECT ALL + 84 + 33 + - 77 * - + 7
----
656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4996
SELECT ( + MIN( ALL + 39 ) ) * + + COALESCE ( + - 42, + CAST( - 97 AS SIGNED ) * + ( COUNT( DISTINCT 44 ) ) + - 86, CAST( - 67 AS SIGNED ) * - 37 ) + + 46
----
-1592

skipif mysql # not compatible
query I rowsort label-4996
SELECT ( + MIN ( ALL + 39 ) ) * + + COALESCE ( + - 42, + CAST ( - 97 AS INTEGER ) * + ( COUNT ( DISTINCT 44 ) ) + - 86, CAST ( - 67 AS INTEGER ) * - 37 ) + + 46
----
-1592

query I rowsort
SELECT DISTINCT + 75 * - - 52 AS col2
----
3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT - 21 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT - 21 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4999
SELECT DISTINCT COUNT( * ) AS col1, 66 AS col0
----
1
66

skipif mysql # not compatible
query II rowsort label-4999
SELECT DISTINCT COUNT ( * ) AS col1, 66 AS col0
----
1
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL MIN( DISTINCT - + 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL MIN ( DISTINCT - + 37 ) AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5001
SELECT - CAST( 77 AS SIGNED ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-5001
SELECT - CAST ( 77 AS INTEGER ) / + 92
----
0

query I rowsort
SELECT DISTINCT - 30 * + ( - 41 ) AS col0
----
1230

query I rowsort
SELECT DISTINCT CASE - - 15 WHEN - + AVG ( ALL + 81 ) THEN + 33 + + 11 END
----
NULL

query II rowsort
SELECT ALL - ( - 43 ) + 64, + 8 * + - 85 col1
----
107
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT CASE 94 WHEN COUNT( * ) - - 0 THEN - NULLIF ( 70, MAX( 53 ) * - 70 ) ELSE 34 END
----
34

skipif mysql # not compatible
query I rowsort label-5005
SELECT CASE 94 WHEN COUNT ( * ) - - 0 THEN - NULLIF ( 70, MAX ( 53 ) * - 70 ) ELSE 34 END
----
34

query I rowsort
SELECT - CASE - 95 WHEN + - 31 + 76 THEN - 13 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5007
SELECT ALL - ( 22 ) - + - 0 DIV + - 50 * + 20 + - + 82 AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL - ( 22 ) - + - 0 / + - 50 * + 20 + - + 82 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - 66 * - + NULLIF ( - 38, + + 36 ) - - 36 + - COUNT( * ) + - COUNT( * ) AS col1
----
-2474

skipif mysql # not compatible
query I rowsort label-5008
SELECT - 66 * - + NULLIF ( - 38, + + 36 ) - - 36 + - COUNT ( * ) + - COUNT ( * ) AS col1
----
-2474

onlyif mysql # aggregate syntax: 
query II rowsort label-5009
SELECT 26 AS col2, COUNT( * )
----
26
1

skipif mysql # not compatible
query II rowsort label-5009
SELECT 26 AS col2, COUNT ( * )
----
26
1

query II rowsort
SELECT 32, - 28 + 3 col2
----
32
-25

query I rowsort
SELECT + 63 * + 46
----
2898

query I rowsort
SELECT DISTINCT + 74 * 85 + + - 1 AS col2
----
6289

query I rowsort
SELECT DISTINCT + 63 * 56
----
3528

query II rowsort
SELECT NULLIF ( + + 78, + + 50 ) AS col2, 15
----
78
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL - MIN( + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL - MIN ( + 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + + MAX( DISTINCT + + 78 ) * - ( - - 42 ) AS col2
----
-3276

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + + MAX ( DISTINCT + + 78 ) * - ( - - 42 ) AS col2
----
-3276

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5017
SELECT ALL + + CAST( NULL AS DECIMAL ) col0, 41 - + 26 + - 2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-5017
SELECT ALL + + CAST ( NULL AS REAL ) col0, 41 - + 26 + - 2
----
NULL
13

query II rowsort
SELECT - 10 AS col2, 89 AS col2
----
-10
89

query I rowsort
SELECT + + 55 AS col1
----
55

query I rowsort
SELECT + CASE 76 WHEN - NULLIF ( - 59, + 84 ) THEN 88 WHEN + 33 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5021
SELECT ALL + 57, - ( 67 ) + + SUM( - 3 ) AS col2
----
57
-70

skipif mysql # not compatible
query II rowsort label-5021
SELECT ALL + 57, - ( 67 ) + + SUM ( - 3 ) AS col2
----
57
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT - 96 DIV + 49 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5022
SELECT - 96 / + 49 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5023
SELECT + SUM( DISTINCT + 90 ) * + - 84 AS col1, 7
----
-7560
7

skipif mysql # not compatible
query II rowsort label-5023
SELECT + SUM ( DISTINCT + 90 ) * + - 84 AS col1, 7
----
-7560
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5024
SELECT + 11 AS col0, ( - 55 ) + COUNT( * ) AS col0
----
11
-54

skipif mysql # not compatible
query II rowsort label-5024
SELECT + 11 AS col0, ( - 55 ) + COUNT ( * ) AS col0
----
11
-54

query I rowsort
SELECT - 9 + - 98
----
-107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5026
SELECT + COUNT( DISTINCT + NULLIF ( - ( 93 ), + 45 ) ) * - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT + COUNT ( DISTINCT + NULLIF ( - ( 93 ), + 45 ) ) * - CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT ALL + + 48 AS col0, - COUNT( DISTINCT - 95 ) * + 32 + 20 + - + COALESCE ( + + 56, + 21, MAX( DISTINCT - 35 ) * + COUNT( * ) ) AS col1
----
48
-68

skipif mysql # not compatible
query II rowsort label-5027
SELECT ALL + + 48 AS col0, - COUNT ( DISTINCT - 95 ) * + 32 + 20 + - + COALESCE ( + + 56, + 21, MAX ( DISTINCT - 35 ) * + COUNT ( * ) ) AS col1
----
48
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + COALESCE ( - SUM( + 66 ), + + 17 + + 2 * + - 54 + 49 - 7 + 30 ) * 11 + 72 col0
----
-654

skipif mysql # not compatible
query I rowsort label-5028
SELECT + COALESCE ( - SUM ( + 66 ), + + 17 + + 2 * + - 54 + 49 - 7 + 30 ) * 11 + 72 col0
----
-654

query I rowsort
SELECT ALL 99 * + - 38
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL + SUM( ALL - - 14 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL + SUM ( ALL - - 14 ) col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT DISTINCT 28 DIV - 11 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT 28 / - 11 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL 99 * + + 29 + 79 + - 87 * - 92 * + + COUNT( * ) AS col0
----
10954

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL 99 * + + 29 + 79 + - 87 * - 92 * + + COUNT ( * ) AS col0
----
10954

query I rowsort
SELECT ALL AVG ( DISTINCT - CASE - ( + 41 ) WHEN + - 46 THEN + - 65 * 80 END ) * 73 + - - 97 + 24
----
NULL

query I rowsort
SELECT DISTINCT 61 * - 97 + - 96 AS col1
----
-6013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5035
SELECT + COALESCE ( + 75, + 11, + 53 ) - + COUNT( * ) DIV - COUNT( DISTINCT 69 ) * + - ( COUNT( * ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5035
SELECT + COALESCE ( + 75, + 11, + 53 ) - + COUNT ( * ) / - COUNT ( DISTINCT 69 ) * + - ( COUNT ( * ) ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + SUM( + ( + + 80 ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5036
SELECT + SUM ( + ( + + 80 ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ALL 36 * 0 * + CASE + 7 WHEN COUNT( * ) THEN 42 WHEN - - 33 * - - SUM( - 55 ) THEN + COUNT( * ) ELSE NULL END + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL 36 * 0 * + CASE + 7 WHEN COUNT ( * ) THEN 42 WHEN - - 33 * - - SUM ( - 55 ) THEN + COUNT ( * ) ELSE NULL END + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT CASE + + 54 WHEN - MIN( DISTINCT - 46 ) THEN NULL ELSE + 0 END col0
----
0

skipif mysql # not compatible
query I rowsort label-5038
SELECT CASE + + 54 WHEN - MIN ( DISTINCT - 46 ) THEN NULL ELSE + 0 END col0
----
0

query I rowsort
SELECT - 21 * ( + 94 )
----
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT MAX( DISTINCT COALESCE ( + 76, - + 72 ) )
----
76

skipif mysql # not compatible
query I rowsort label-5040
SELECT MAX ( DISTINCT COALESCE ( + 76, - + 72 ) )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5041
SELECT - CAST( + 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-5041
SELECT - CAST ( + 59 AS INTEGER )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT + 85 - + 68 + - 86 + - 4 * COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-5042
SELECT + 85 - + 68 + - 86 + - 4 * COUNT ( * ) AS col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 64
----
NULL

query I rowsort
SELECT - 20 * + 12 AS col0
----
-240

query I rowsort
SELECT + ( - 56 ) * + 37 AS col2
----
-2072

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5046
SELECT + - 6 + + 55, COUNT( * ) * - - 76 DIV 81 * - 57 + + 98 col1
----
49
98

skipif mysql # not compatible
query II rowsort label-5046
SELECT + - 6 + + 55, COUNT ( * ) * - - 76 / 81 * - 57 + + 98 col1
----
49
98

query I rowsort
SELECT + 68 * + 40 + + + 96
----
2816

onlyif mysql # DIV for integer division: 
query II rowsort label-5048
SELECT ALL + - 33 * - - 42 - 89 DIV + 66 AS col0, + 80 AS col2
----
-1387
80

skipif mysql # not compatible
query II rowsort label-5048
SELECT ALL + - 33 * - - 42 - 89 / + 66 AS col0, + 80 AS col2
----
-1387
80

query I rowsort
SELECT - + NULLIF ( + 80, 32 ) + - 97
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT - + 25 - + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-5050
SELECT - + 25 - + COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - - 56 + + 98 + + 16 * + COUNT( * ) * - - 44 AS col2
----
858

skipif mysql # not compatible
query I rowsort label-5051
SELECT - - 56 + + 98 + + 16 * + COUNT ( * ) * - - 44 AS col2
----
858

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT ALL + - 20 - + + 99 + + 62 DIV 56
----
-118

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + - 20 - + + 99 + + 62 / 56
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT DISTINCT ( 96 ) * + + COALESCE ( + 36, MIN( DISTINCT ( 75 ) ) * + + 84 ) AS col1
----
3456

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT ( 96 ) * + + COALESCE ( + 36, MIN ( DISTINCT ( 75 ) ) * + + 84 ) AS col1
----
3456

query I rowsort
SELECT - 13 + + 29 + + 96 AS col0
----
112

query I rowsort
SELECT - - 6 * + 81 * - + 25 AS col0
----
-12150

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT - COUNT( + 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - COUNT ( + 4 )
----
-1

query I rowsort
SELECT - 66 * - + ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT - 40 + 58 - - + COUNT( ALL + 72 ) + + + 50 - + 83 * 41
----
-3334

skipif mysql # not compatible
query I rowsort label-5058
SELECT - 40 + 58 - - + COUNT ( ALL + 72 ) + + + 50 - + 83 * 41
----
-3334

query I rowsort
SELECT - 54 + ( - 22 ) - + 84
----
-160

query I rowsort
SELECT ALL + 18 * 23 * + 9 * - - 79 + + + 13
----
294367

onlyif mysql # DIV for integer division: 
query I rowsort label-5061
SELECT ALL 14 DIV 74 + - 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL 14 / 74 + - 92 AS col2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT + 51 DIV 5 * - 50 AS col2
----
-500

skipif mysql # not compatible
query I rowsort label-5062
SELECT + 51 / 5 * - 50 AS col2
----
-500

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT ALL 32 DIV - 54 + - + 83 - - + 63 * + 96 * + 40 AS col1
----
241837

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL 32 / - 54 + - + 83 - - + 63 * + 96 * + 40 AS col1
----
241837

query I rowsort
SELECT 79 * - + 73
----
-5767

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT ALL 10 DIV + - 5
----
-2

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL 10 / + - 5
----
-2

query II rowsort
SELECT + 62 AS col1, - 37 + 67
----
62
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5067
SELECT DISTINCT COALESCE ( + 10, 91 * - 8 * MIN( ALL + - 98 ) + COUNT( * ) ) - + 51, 68 - + 58 AS col2
----
-41
10

skipif mysql # not compatible
query II rowsort label-5067
SELECT DISTINCT COALESCE ( + 10, 91 * - 8 * MIN ( ALL + - 98 ) + COUNT ( * ) ) - + 51, 68 - + 58 AS col2
----
-41
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT 4 * + + ( - SUM( DISTINCT 6 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-5068
SELECT 4 * + + ( - SUM ( DISTINCT 6 ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL ( COUNT( * ) ) - + MIN( - 91 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL ( COUNT ( * ) ) - + MIN ( - 91 ) col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5070
SELECT ALL ( COUNT( * ) ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT DISTINCT CASE 30 WHEN - 50 * - - 29 THEN + 12 * + + COUNT( * ) + - CAST( - 9 AS SIGNED ) - - 25 * + 61 WHEN 29 - + NULLIF ( + 37, - 46 * - 78 - 33 * 15 ) THEN 7 END - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT CASE 30 WHEN - 50 * - - 29 THEN + 12 * + + COUNT ( * ) + - CAST ( - 9 AS INTEGER ) - - 25 * + 61 WHEN 29 - + NULLIF ( + 37, - 46 * - 78 - 33 * 15 ) THEN 7 END - 46 AS col2
----
NULL

query II rowsort
SELECT ALL ( + + 34 ) * + COALESCE ( + 87, - 17 ) AS col0, + 15 AS col1
----
2958
15

query I rowsort
SELECT 59 * + COALESCE ( - + 94, + 31 * + 17 * - 52 * - - 95 + - COALESCE ( + 39, + 92, 60 * 71, 82 ), + 50 ) + + 75 col0
----
-5471

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT - 89 * + + COUNT( * ) + + 18 - ( + 29 ) + + - 79 * - 92 * - ( - + COUNT( * ) ) + 17 + + COUNT( * )
----
7186

skipif mysql # not compatible
query I rowsort label-5074
SELECT - 89 * + + COUNT ( * ) + + 18 - ( + 29 ) + + - 79 * - 92 * - ( - + COUNT ( * ) ) + 17 + + COUNT ( * )
----
7186

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT - NULLIF ( - SUM( DISTINCT - 49 ), + 65 )
----
-49

skipif mysql # not compatible
query I rowsort label-5075
SELECT - NULLIF ( - SUM ( DISTINCT - 49 ), + 65 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5076
SELECT - + CAST( + 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-5076
SELECT - + CAST ( + 44 AS INTEGER )
----
-44

query II rowsort
SELECT 36 col2, 80 AS col2
----
36
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5078
SELECT - ( COUNT( * ) ) * 12 DIV 15 + - 96 + 45
----
-51

skipif mysql # not compatible
query I rowsort label-5078
SELECT - ( COUNT ( * ) ) * 12 / 15 + - 96 + 45
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL - 24 * + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL - 24 * + COUNT ( * )
----
-24

query I rowsort
SELECT - CASE 29 WHEN + 91 THEN - - 53 END
----
NULL

query I rowsort
SELECT DISTINCT 99 * - + 32
----
-3168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT - 69 / - - 42 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT - 69 / - - 42 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT 97 * - CAST( - 74 AS SIGNED )
----
7178

skipif mysql # not compatible
query I rowsort label-5083
SELECT 97 * - CAST ( - 74 AS INTEGER )
----
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT + MIN( 34 ) - - 44 * + MIN( 50 ) + + + 98 * 8 + 26 AS col2
----
3044

skipif mysql # not compatible
query I rowsort label-5084
SELECT + MIN ( 34 ) - - 44 * + MIN ( 50 ) + + + 98 * 8 + 26 AS col2
----
3044

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT ALL + + 26 + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL + + 26 + + COUNT ( * )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) * ( 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) * ( 29 )
----
NULL

query I rowsort
SELECT ALL 88 + + 2 + + + 68
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT ALL - CAST( - + 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - CAST ( - + 32 AS INTEGER )
----
32

query I rowsort
SELECT ALL - 33 + + 23
----
-10

query II rowsort
SELECT ALL - 25, + 45 col1
----
-25
45

query II rowsort
SELECT 29, 12 AS col0
----
29
12

query II rowsort
SELECT + 49, 33 + 15 AS col1
----
49
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL - SUM( + 86 ) * + 70 AS col2
----
-6020

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - SUM ( + 86 ) * + 70 AS col2
----
-6020

query II rowsort
SELECT ( 77 ) * + + 27 * 29 + + 40 - 4 AS col1, 24
----
60327
24

query II rowsort
SELECT ALL - 24 col1, + 86 AS col1
----
-24
86

query I rowsort
SELECT ALL - ( + + 86 ) AS col1
----
-86

query I rowsort
SELECT ALL - 71 * - 21 AS col1
----
1491

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT 14 * - 81 * + NULLIF ( + - 61, + - 56 * + COALESCE ( - + COUNT( * ), - 2 ) ) AS col2
----
69174

skipif mysql # not compatible
query I rowsort label-5098
SELECT 14 * - 81 * + NULLIF ( + - 61, + - 56 * + COALESCE ( - + COUNT ( * ), - 2 ) ) AS col2
----
69174

onlyif mysql # aggregate syntax: 
query II rowsort label-5099
SELECT ALL - 85 AS col0, + COUNT( * ) * + - 66 - + COALESCE ( - - 74, + - 71 * + 94 + 74 + + + CASE 2 WHEN 35 THEN - MAX( DISTINCT 84 ) ELSE + ( - 94 ) - + 58 * - CASE - 86 / + 49 WHEN 26 - 29 THEN NULL WHEN + 25 THEN 75 ELSE MIN( DISTINCT + 27 ) * CASE + 2 WHEN - 91 / 47 THEN + 13 WHEN - COUNT( * ) THEN NULL ELSE NULL END END END ) + + 54 * - COALESCE ( + 6, 75 ) AS col0
----
-85
-464

skipif mysql # not compatible
query II rowsort label-5099
SELECT ALL - 85 AS col0, + COUNT ( * ) * + - 66 - + COALESCE ( - - 74, + - 71 * + 94 + 74 + + + CASE 2 WHEN 35 THEN - MAX ( DISTINCT 84 ) ELSE + ( - 94 ) - + 58 * - CASE - 86 / + 49 WHEN 26 - 29 THEN NULL WHEN + 25 THEN 75 ELSE MIN ( DISTINCT + 27 ) * CASE + 2 WHEN - 91 / 47 THEN + 13 WHEN - COUNT ( * ) THEN NULL ELSE NULL END END END ) + + 54 * - COALESCE ( + 6, 75 ) AS col0
----
-85
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT - COUNT( - - 14 ) - - - 41
----
-42

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT - COUNT ( - - 14 ) - - - 41
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5101
SELECT ALL - ( COUNT( * ) ) AS col0, CASE ( + 38 ) WHEN - 79 * + + 85 + - 63 + + 75 THEN - + 69 WHEN COALESCE ( COUNT( * ), - 65 + 57 / - 81, + 62 ) * + 22 + 85 THEN NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5101
SELECT ALL - ( COUNT ( * ) ) AS col0, CASE ( + 38 ) WHEN - 79 * + + 85 + - 63 + + 75 THEN - + 69 WHEN COALESCE ( COUNT ( * ), - 65 + 57 / - 81, + 62 ) * + 22 + 85 THEN NULL END
----
-1
NULL

query II rowsort
SELECT 53 AS col0, + 4
----
53
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT MIN( ALL + + 83 ) * + 62 + - 28
----
5118

skipif mysql # not compatible
query I rowsort label-5103
SELECT MIN ( ALL + + 83 ) * + 62 + - 28
----
5118

query I rowsort
SELECT 39 * + 86 AS col2
----
3354

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL - MAX( + 82 ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL - MAX ( + 82 ) col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT 90 * 10 - COUNT( * ) AS col0
----
899

skipif mysql # not compatible
query I rowsort label-5106
SELECT 90 * 10 - COUNT ( * ) AS col0
----
899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5107
SELECT 13 * - CASE CASE - + 26 WHEN 62 * - - 86 * - + 29 + SUM( 66 ) / + 80 THEN NULL WHEN + CAST( NULL AS SIGNED ) * 38 + 57 * 84 THEN 97 + + NULLIF ( 22, - CAST( NULL AS SIGNED ) * 15 ) * + 21 ELSE + 64 * - 24 END WHEN COUNT( * ) THEN COUNT( * ) WHEN CASE 95 WHEN 70 * 2 THEN MIN( 82 ) + - 31 ELSE NULL END THEN 23 * 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT 13 * - CASE CASE - + 26 WHEN 62 * - - 86 * - + 29 + SUM ( 66 ) / + 80 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * 38 + 57 * 84 THEN 97 + + NULLIF ( 22, - CAST ( NULL AS INTEGER ) * 15 ) * + 21 ELSE + 64 * - 24 END WHEN COUNT ( * ) THEN COUNT ( * ) WHEN CASE 95 WHEN 70 * 2 THEN MIN ( 82 ) + - 31 ELSE NULL END THEN 23 * 43 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT DISTINCT + ( + 2 ) DIV - + ( + - 52 ) + + 91
----
91

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT + ( + 2 ) / - + ( + - 52 ) + + 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT - 59 * COUNT( * ) * + + 28 + + COUNT( * )
----
-1651

skipif mysql # not compatible
query I rowsort label-5109
SELECT - 59 * COUNT ( * ) * + + 28 + + COUNT ( * )
----
-1651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT ALL 99 * CAST( + 58 AS SIGNED )
----
5742

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL 99 * CAST ( + 58 AS INTEGER )
----
5742

onlyif mysql # aggregate syntax: 
query II rowsort label-5111
SELECT ALL 83 AS col2, - COUNT( * ) * + 34 * 62 * 43 AS col1
----
83
-90644

skipif mysql # not compatible
query II rowsort label-5111
SELECT ALL 83 AS col2, - COUNT ( * ) * + 34 * 62 * 43 AS col1
----
83
-90644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5112
SELECT DISTINCT - 76 DIV + COUNT( * ) - 33
----
-109

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT - 76 / + COUNT ( * ) - 33
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL + 54 + + SUM( DISTINCT - - 71 ) * - 40 * + 46
----
-130586

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + 54 + + SUM ( DISTINCT - - 71 ) * - 40 * + 46
----
-130586

query I rowsort
SELECT + 9 * + ( - 25 ) AS col0
----
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT - 48 + + 64 + + 86 DIV + 65 * + COUNT( * ) + 11
----
28

skipif mysql # not compatible
query I rowsort label-5115
SELECT - 48 + + 64 + + 86 / + 65 * + COUNT ( * ) + 11
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT - - COALESCE ( + 8, + 32 * + + 27 + 49, + 60 + - SUM( - COALESCE ( + CAST( - 29 AS SIGNED ), + 18 * 11, 3 + 34 ) ) + + SUM( + 55 ) * 48 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5116
SELECT - - COALESCE ( + 8, + 32 * + + 27 + 49, + 60 + - SUM ( - COALESCE ( + CAST ( - 29 AS INTEGER ), + 18 * 11, 3 + 34 ) ) + + SUM ( + 55 ) * 48 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5117
SELECT - 79 AS col2, 95 + + MAX( ALL - - 16 ) * - - 66 AS col0
----
-79
1151

skipif mysql # not compatible
query II rowsort label-5117
SELECT - 79 AS col2, 95 + + MAX ( ALL - - 16 ) * - - 66 AS col0
----
-79
1151

query I rowsort
SELECT ALL + 93 + - 90 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT 53 + 59 + - + COUNT( * ) * + 7
----
105

skipif mysql # not compatible
query I rowsort label-5119
SELECT 53 + 59 + - + COUNT ( * ) * + 7
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT - CASE - COUNT( * ) WHEN + 16 / - - 61 THEN + 24 * 64 END + + 36 - - 16 / - 53 * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT - CASE - COUNT ( * ) WHEN + 16 / - - 61 THEN + 24 * 64 END + + 36 - - 16 / - 53 * 98
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT DISTINCT + MIN( + 49 ) + + - 65 * + 12 AS col0, + 56 AS col2
----
-731
56

skipif mysql # not compatible
query II rowsort label-5121
SELECT DISTINCT + MIN ( + 49 ) + + - 65 * + 12 AS col0, + 56 AS col2
----
-731
56

query I rowsort
SELECT ALL 28 + 58
----
86

query I rowsort
SELECT + COALESCE ( - - 87, + + 76 ) col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL 72 + - 28 * - - 72 * - - COUNT( * ) AS col0
----
-1944

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL 72 + - 28 * - - 72 * - - COUNT ( * ) AS col0
----
-1944

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT DISTINCT COUNT( + 95 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT COUNT ( + 95 ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT - 36 * + - MAX( ALL - - 40 ) * + - 81 AS col0
----
-116640

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT - 36 * + - MAX ( ALL - - 40 ) * + - 81 AS col0
----
-116640

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL + 77 + - 29 - + 16 + - + COUNT( * ) - 38 * + - NULLIF ( + 85, + 22 ) - - 14 * 72 - - + 88 + 60 * + 29 * - 60
----
-100043

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL + 77 + - 29 - + 16 + - + COUNT ( * ) - 38 * + - NULLIF ( + 85, + 22 ) - - 14 * 72 - - + 88 + 60 * + 29 * - 60
----
-100043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5128
SELECT CAST( + 7 AS SIGNED ) + - NULLIF ( COUNT( * ), + + 15 ) * + - NULLIF ( - + 12, COUNT( * ) + + + 47 ) + + 15 * + 3
----
40

skipif mysql # not compatible
query I rowsort label-5128
SELECT CAST ( + 7 AS INTEGER ) + - NULLIF ( COUNT ( * ), + + 15 ) * + - NULLIF ( - + 12, COUNT ( * ) + + + 47 ) + + 15 * + 3
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5129
SELECT DISTINCT 99 DIV + 56
----
1

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT 99 / + 56
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT - COUNT( * ) + - + 91 + - - 90
----
-2

skipif mysql # not compatible
query I rowsort label-5130
SELECT - COUNT ( * ) + - + 91 + - - 90
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT + COUNT( * ) * + COUNT( * ), - 42 * 48 + - COALESCE ( 76, 96, 77 + 16 ) AS col1
----
1
-2092

skipif mysql # not compatible
query II rowsort label-5131
SELECT + COUNT ( * ) * + COUNT ( * ), - 42 * 48 + - COALESCE ( 76, 96, 77 + 16 ) AS col1
----
1
-2092

query I rowsort
SELECT DISTINCT 34 * - - 1 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT - SUM( DISTINCT - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-5133
SELECT - SUM ( DISTINCT - 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT COALESCE ( + + 0, MIN( - 88 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT COALESCE ( + + 0, MIN ( - 88 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL + COUNT( - 6 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + COUNT ( - 6 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5136
SELECT + CASE - 62 WHEN 19 THEN 55 + + + 15 + + + 68 + CAST( - - COALESCE ( - COUNT( * ), NULLIF ( - 20, + - CAST( 13 AS SIGNED ) * AVG ( + 16 ) ), COUNT( * ) ) AS SIGNED ) + 30 * 16 * 98 END * 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT + CASE - 62 WHEN 19 THEN 55 + + + 15 + + + 68 + CAST ( - - COALESCE ( - COUNT ( * ), NULLIF ( - 20, + - CAST ( 13 AS INTEGER ) * AVG ( + 16 ) ), COUNT ( * ) ) AS INTEGER ) + 30 * 16 * 98 END * 92 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 98 * + - 31 AS col1, 90
----
-3038
90

query I rowsort
SELECT NULLIF ( - 51, - 95 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - SUM( + 32 ) * + + ( + 22 ) + - COUNT( * ) + - - 91 + - 11 + 81 AS col0
----
-544

skipif mysql # not compatible
query I rowsort label-5139
SELECT - SUM ( + 32 ) * + + ( + 22 ) + - COUNT ( * ) + - - 91 + - 11 + 81 AS col0
----
-544

query I rowsort
SELECT + 33 * 17 * + 10 AS col1
----
5610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5141
SELECT COALESCE ( 77, - ( + 57 ) + SUM( ALL + + 91 ) DIV + + 29, + + 44 * + 60 )
----
77

skipif mysql # not compatible
query I rowsort label-5141
SELECT COALESCE ( 77, - ( + 57 ) + SUM ( ALL + + 91 ) / + + 29, + + 44 * + 60 )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5142
SELECT COALESCE ( 79, + COUNT( * ), + - 71 * - + 64 * - + CAST( 11 AS SIGNED ) + - ( + 89 ) )
----
79

skipif mysql # not compatible
query I rowsort label-5142
SELECT COALESCE ( 79, + COUNT ( * ), + - 71 * - + 64 * - + CAST ( 11 AS INTEGER ) + - ( + 89 ) )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT - 26 + - + CAST( 7 AS SIGNED ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5143
SELECT - 26 + - + CAST ( 7 AS INTEGER ) AS col0
----
-33

query I rowsort
SELECT 4 * 90 - + 95 - 78
----
187

query I rowsort
SELECT - 91 * - 57
----
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT 95 * SUM( - - 43 ) + + - 21 * + 7 * - - 76
----
-7087

skipif mysql # not compatible
query I rowsort label-5146
SELECT 95 * SUM ( - - 43 ) + + - 21 * + 7 * - - 76
----
-7087

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL + ( + SUM( + 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL + ( + SUM ( + 17 ) )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT - + MAX( - + 56 ) * - 90 col2
----
-5040

skipif mysql # not compatible
query I rowsort label-5148
SELECT - + MAX ( - + 56 ) * - 90 col2
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL + 18 * - - COUNT( * ) + - - 65 * + 32
----
2098

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL + 18 * - - COUNT ( * ) + - - 65 * + 32
----
2098

query I rowsort
SELECT - + ( 8 ) + - + ( - - 57 )
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5151
SELECT ALL - - 47 * + 66 + - CASE WHEN NULL IS NULL THEN + 17 ELSE NULL END DIV + - COUNT( * ) AS col1
----
3119

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL - - 47 * + 66 + - CASE WHEN NULL IS NULL THEN + 17 ELSE NULL END / + - COUNT ( * ) AS col1
----
3119

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT - + 8 DIV 1 * 67 AS col0
----
-536

skipif mysql # not compatible
query I rowsort label-5152
SELECT - + 8 / 1 * 67 AS col0
----
-536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5153
SELECT + + 46 * - CAST( - 39 AS SIGNED ) + + - 22 + - COALESCE ( + 94, - 24 + + 41 + - 3 * - - MAX( - - 44 ) + + 62 / - 73 ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT + + 46 * - CAST ( - 39 AS INTEGER ) + + - 22 + - COALESCE ( + 94, - 24 + + 41 + - 3 * - - MAX ( - - 44 ) + + 62 / - 73 ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - ( 77 ) + - - 89
----
12

query I rowsort
SELECT DISTINCT + + CASE + ( ( - 50 ) ) WHEN - AVG ( 83 ) + + 56 THEN - + 12 END + + + 31
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT - 60 DIV 11
----
-5

skipif mysql # not compatible
query I rowsort label-5156
SELECT - 60 / 11
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5157
SELECT ALL - NULLIF ( ( - 24 ), - 21 * 7 + + MIN( DISTINCT + 67 ) ) DIV + - 4 + + + MIN( ALL + 8 )
----
2

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - NULLIF ( ( - 24 ), - 21 * 7 + + MIN ( DISTINCT + 67 ) ) / + - 4 + + + MIN ( ALL + 8 )
----
2

query I rowsort
SELECT ALL - + 42 + 51 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL - 81 + + + 85 + 73 * COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - 81 + + + 85 + 73 * COUNT ( * )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5160
SELECT ALL + - COALESCE ( + 41, - - COUNT( * ) * + - 70 DIV 23, CASE + 44 WHEN + 13 * 51 + - 34 - - 48 + - 14 * + ( - 85 * + CAST( - 55 * - 69 AS DECIMAL ) ) * 77 + - 8 THEN + 51 WHEN 66 THEN 44 DIV CAST( 99 * - 41 AS SIGNED ) + 18 END + - 75 ) DIV - 35
----
1

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL + - COALESCE ( + 41, - - COUNT ( * ) * + - 70 / 23, CASE + 44 WHEN + 13 * 51 + - 34 - - 48 + - 14 * + ( - 85 * + CAST ( - 55 * - 69 AS REAL ) ) * 77 + - 8 THEN + 51 WHEN 66 THEN 44 / CAST ( 99 * - 41 AS INTEGER ) + 18 END + - 75 ) / - 35
----
1

query II rowsort
SELECT - ( - 40 ), + 0 col0
----
40
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT 88 * - - COUNT( * ) + 17 col0
----
105

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT 88 * - - COUNT ( * ) + 17 col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT - SUM( 73 ) col2
----
-73

skipif mysql # not compatible
query I rowsort label-5163
SELECT - SUM ( 73 ) col2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-5164
SELECT - ( - + COUNT( ALL + 52 ) ) AS col0, - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-5164
SELECT - ( - + COUNT ( ALL + 52 ) ) AS col0, - COUNT ( * ) AS col2
----
1
-1

query I rowsort
SELECT ALL 93 * - + 86
----
-7998

onlyif mysql # aggregate syntax: 
query II rowsort label-5166
SELECT - MAX( + 60 ) - - - 75, - ( + - ( 94 ) ) AS col2
----
-135
94

skipif mysql # not compatible
query II rowsort label-5166
SELECT - MAX ( + 60 ) - - - 75, - ( + - ( 94 ) ) AS col2
----
-135
94

query II rowsort
SELECT ALL 95 col1, + 52 * - 70 + + 89 AS col1
----
95
-3551

query II rowsort
SELECT 62 col1, ( + + 33 ) AS col0
----
62
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT DISTINCT CAST( 71 AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT CAST ( 71 AS INTEGER ) AS col1
----
71

query I rowsort
SELECT ALL - 71 * - - 77 * - 90
----
492030

query I rowsort
SELECT + 69 * + - 77
----
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT SUM( ALL 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT SUM ( ALL 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5173
SELECT ALL COUNT( * ) AS col2, 58 + - 40
----
1
18

skipif mysql # not compatible
query II rowsort label-5173
SELECT ALL COUNT ( * ) AS col2, 58 + - 40
----
1
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5174
SELECT + 82 DIV + 27 + NULLIF ( 80, - + CAST( NULL AS SIGNED ) - + COUNT( ALL + 1 ) )
----
83

skipif mysql # not compatible
query I rowsort label-5174
SELECT + 82 / + 27 + NULLIF ( 80, - + CAST ( NULL AS INTEGER ) - + COUNT ( ALL + 1 ) )
----
83

query I rowsort
SELECT - 94 * + 28 - + 96 AS col1
----
-2728

query I rowsort
SELECT + ( - 95 ) * - - 83
----
-7885

query I rowsort
SELECT + 39 * - - 38
----
1482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5178
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT ALL CASE + 96 WHEN + 17 THEN NULL ELSE + COUNT( * ) + 84 END * 61
----
5185

skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL CASE + 96 WHEN + 17 THEN NULL ELSE + COUNT ( * ) + 84 END * 61
----
5185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5180
SELECT - MAX( - 66 ) DIV - - 69 * + 95
----
0

skipif mysql # not compatible
query I rowsort label-5180
SELECT - MAX ( - 66 ) / - - 69 * + 95
----
0

query I rowsort
SELECT + 3 * + + 68
----
204

query I rowsort
SELECT 8 * 72 + + 22 + - 19 * 39 * - 40 * - + 91
----
-2696642

onlyif mysql # aggregate syntax: 
query II rowsort label-5183
SELECT ( + - COUNT( 64 ) ) AS col1, 32 + COALESCE ( + - 70, 75 )
----
-1
-38

skipif mysql # not compatible
query II rowsort label-5183
SELECT ( + - COUNT ( 64 ) ) AS col1, 32 + COALESCE ( + - 70, 75 )
----
-1
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT ALL NULLIF ( 11, - SUM( DISTINCT + NULLIF ( - - 43, - - 54 * + 68 ) ) ) * + + 13 AS col2
----
143

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL NULLIF ( 11, - SUM ( DISTINCT + NULLIF ( - - 43, - - 54 * + 68 ) ) ) * + + 13 AS col2
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5185
SELECT + CASE - 39 WHEN + + 79 + + 95 THEN - - 17 / + - CAST( NULL AS SIGNED ) + 65 END * 20 AS col1, + MAX( ALL - - 82 ) AS col2
----
NULL
82

skipif mysql # not compatible
query II rowsort label-5185
SELECT + CASE - 39 WHEN + + 79 + + 95 THEN - - 17 / + - CAST ( NULL AS INTEGER ) + 65 END * 20 AS col1, + MAX ( ALL - - 82 ) AS col2
----
NULL
82

query I rowsort
SELECT - - 48 + 66
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-5187
SELECT ALL 82 * - 17 + - + 35 + - 3 + + - 74 DIV 87 col2
----
-1432

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL 82 * - 17 + - + 35 + - 3 + + - 74 / 87 col2
----
-1432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT - - SUM( - CAST( - 12 AS SIGNED ) ) * - + 47 - 43 + + - 79 + + 44 * 43 * - 97 + 68 * + 89 * + 39 - + 71 AS col2
----
51747

skipif mysql # not compatible
query I rowsort label-5188
SELECT - - SUM ( - CAST ( - 12 AS INTEGER ) ) * - + 47 - 43 + + - 79 + + 44 * 43 * - 97 + 68 * + 89 * + 39 - + 71 AS col2
----
51747

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT DISTINCT - 42 * 45 + - 3 + - 53 DIV 88 AS col0
----
-1893

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT - 42 * 45 + - 3 + - 53 / 88 AS col0
----
-1893

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL + COUNT( * ) * 54 * + 51
----
2754

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL + COUNT ( * ) * 54 * + 51
----
2754

query II rowsort
SELECT + 13 col0, - 83
----
13
-83

query I rowsort
SELECT ALL + 98 * - - 94 + + + 21
----
9233

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT 40 * + 56 * - - MAX( - 44 ) + + 46 * ( + COUNT( * ) )
----
-98514

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT 40 * + 56 * - - MAX ( - 44 ) + + 46 * ( + COUNT ( * ) )
----
-98514

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT - ( MAX( + 88 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-5194
SELECT - ( MAX ( + 88 ) )
----
-88

query I rowsort
SELECT - ( + 97 ) - 92 + + - 5 AS col2
----
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL + 41 * - ( + COUNT( * ) ) + - MAX( + 82 ) * + ( COUNT( * ) ) col0
----
-123

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + 41 * - ( + COUNT ( * ) ) + - MAX ( + 82 ) * + ( COUNT ( * ) ) col0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT + 24 + - COUNT( - 61 ) + + 18
----
41

skipif mysql # not compatible
query I rowsort label-5197
SELECT + 24 + - COUNT ( - 61 ) + + 18
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + COUNT( * ) * - 84 + 49 + - COUNT( * ) + - 50 + - 59 * - + 1 - 63
----
-90

skipif mysql # not compatible
query I rowsort label-5198
SELECT + COUNT ( * ) * - 84 + 49 + - COUNT ( * ) + - 50 + - 59 * - + 1 - 63
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT MAX( 70 ) * + + 86 * COUNT( * )
----
6020

skipif mysql # not compatible
query I rowsort label-5199
SELECT MAX ( 70 ) * + + 86 * COUNT ( * )
----
6020

query I rowsort
SELECT DISTINCT + + 77 * 47
----
3619

query I rowsort
SELECT + 46 + - ( 30 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT CASE - CAST( - COUNT( * ) AS SIGNED ) WHEN + 62 / + 10 + + 98 THEN NULL WHEN + + 50 THEN - 29 * + 44 - + - 49 ELSE NULL END + - + 41 * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT CASE - CAST ( - COUNT ( * ) AS INTEGER ) WHEN + 62 / + 10 + + 98 THEN NULL WHEN + + 50 THEN - 29 * + 44 - + - 49 ELSE NULL END + - + 41 * - 80
----
NULL

query I rowsort
SELECT 89 + - 92 AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5204
SELECT ALL + COUNT( * ) DIV + - 23
----
0

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL + COUNT ( * ) / + - 23
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT MIN( DISTINCT - 60 ) + - 27
----
-87

skipif mysql # not compatible
query I rowsort label-5205
SELECT MIN ( DISTINCT - 60 ) + - 27
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5206
SELECT COUNT( * ) DIV + 83 AS col2, 61 AS col2
----
0
61

skipif mysql # not compatible
query II rowsort label-5206
SELECT COUNT ( * ) / + 83 AS col2, 61 AS col2
----
0
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5207
SELECT 14 + COUNT( * ) AS col1, 95 + - ( - - CAST( - - CAST( - - 64 AS DECIMAL ) AS SIGNED ) ) DIV COUNT( * ) col2
----
15
31

skipif mysql # not compatible
query II rowsort label-5207
SELECT 14 + COUNT ( * ) AS col1, 95 + - ( - - CAST ( - - CAST ( - - 64 AS REAL ) AS INTEGER ) ) / COUNT ( * ) col2
----
15
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5208
SELECT ALL - 12 DIV + + 55 * 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL - 12 / + + 55 * 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT 88 * + COUNT( * ) * + 44 AS col0
----
3872

skipif mysql # not compatible
query I rowsort label-5209
SELECT 88 * + COUNT ( * ) * + 44 AS col0
----
3872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5210
SELECT COUNT( * ) + - 1 DIV - - 50 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5210
SELECT COUNT ( * ) + - 1 / - - 50 AS col2
----
1

query I rowsort
SELECT ALL + 40 * ( + 5 ) AS col1
----
200

query I rowsort
SELECT 43 + - 8
----
35

query I rowsort
SELECT DISTINCT + 49 * - 94 AS col0
----
-4606

onlyif mysql # aggregate syntax: 
query II rowsort label-5214
SELECT DISTINCT - 95 + + COUNT( * ) AS col1, ( 32 )
----
-94
32

skipif mysql # not compatible
query II rowsort label-5214
SELECT DISTINCT - 95 + + COUNT ( * ) AS col1, ( 32 )
----
-94
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT COUNT( * ) * + 34 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5215
SELECT COUNT ( * ) * + 34 AS col1
----
34

query I rowsort
SELECT DISTINCT 91 + 4 AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5217
SELECT ALL 26 + - CAST( - + 51 AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL 26 + - CAST ( - + 51 AS INTEGER ) AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5218
SELECT COUNT( * ) DIV - 15 col0, 66
----
0
66

skipif mysql # not compatible
query II rowsort label-5218
SELECT COUNT ( * ) / - 15 col0, 66
----
0
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + MAX( DISTINCT + 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5219
SELECT + MAX ( DISTINCT + 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5220
SELECT ALL - 55 + COUNT( * ) * + 23 DIV 70 AS col1, - COUNT( * ) * - - NULLIF ( - + NULLIF ( + 73, + - 19 DIV + - COUNT( * ) - - 20 ), + - 17 ) AS col1
----
-55
73

skipif mysql # not compatible
query II rowsort label-5220
SELECT ALL - 55 + COUNT ( * ) * + 23 / 70 AS col1, - COUNT ( * ) * - - NULLIF ( - + NULLIF ( + 73, + - 19 / + - COUNT ( * ) - - 20 ), + - 17 ) AS col1
----
-55
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ( - 50 ) + + 52 * COUNT( * ) + - - 57
----
59

skipif mysql # not compatible
query I rowsort label-5221
SELECT ( - 50 ) + + 52 * COUNT ( * ) + - - 57
----
59

query I rowsort
SELECT + 84 * - - 86 - + + 98 + + + 61 * - 64 * + 37 * 50
----
-7215274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5223
SELECT ALL 98 + + 46 + 32 DIV - - 85 * - 13 * - 95 + - COALESCE ( - 93, + ( - + 76 ) + + CASE 43 WHEN - + ( + 2 ) + 3 THEN - 84 WHEN 64 THEN NULL END * + MAX( DISTINCT 94 ) ) AS col0
----
237

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL 98 + + 46 + 32 / - - 85 * - 13 * - 95 + - COALESCE ( - 93, + ( - + 76 ) + + CASE 43 WHEN - + ( + 2 ) + 3 THEN - 84 WHEN 64 THEN NULL END * + MAX ( DISTINCT 94 ) ) AS col0
----
237

query I rowsort
SELECT DISTINCT - + 77 AS col0
----
-77

query I rowsort
SELECT 28 + - - 12
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL CASE + - 10 WHEN ( + + ( CASE - 41 WHEN + 59 THEN NULL WHEN + NULLIF ( + - 83, - 32 ) * - COALESCE ( - 63, + COUNT( * ) * + - 19 / AVG ( DISTINCT - 20 * - 64 ) ) THEN 34 WHEN COUNT( * ) + - 44 * - 0 THEN NULL ELSE + 84 END ) ) THEN + 90 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT ALL CASE + - 10 WHEN ( + + ( CASE - 41 WHEN + 59 THEN NULL WHEN + NULLIF ( + - 83, - 32 ) * - COALESCE ( - 63, + COUNT ( * ) * + - 19 / AVG ( DISTINCT - 20 * - 64 ) ) THEN 34 WHEN COUNT ( * ) + - 44 * - 0 THEN NULL ELSE + 84 END ) ) THEN + 90 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT + MAX( + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-5227
SELECT + MAX ( + 58 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT 93 * - + 15 + CAST( NULL AS SIGNED ) - - + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT 93 * - + 15 + CAST ( NULL AS INTEGER ) - - + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL - CASE - 23 WHEN + COUNT( + 65 ) * - + COUNT( * ) THEN + SUM( - 61 ) + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL - CASE - 23 WHEN + COUNT ( + 65 ) * - + COUNT ( * ) THEN + SUM ( - 61 ) + 98 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5230
SELECT - - CAST( + 88 AS SIGNED ) AS col0, - SUM( - 33 ) + - + 83 + + - 3 * - 12 AS col0, - 50 - + 57 + - 78 * + 33 * + + 87 + COUNT( * )
----
88
-14
-224044

skipif mysql # not compatible
query III rowsort label-5230
SELECT - - CAST ( + 88 AS INTEGER ) AS col0, - SUM ( - 33 ) + - + 83 + + - 3 * - 12 AS col0, - 50 - + 57 + - 78 * + 33 * + + 87 + COUNT ( * )
----
88
-14
-224044

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT + COUNT( * ) * + + SUM( DISTINCT ( 69 ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT + COUNT ( * ) * + + SUM ( DISTINCT ( 69 ) ) AS col0
----
69

query I rowsort
SELECT 98 * + 83 * - 86 AS col0
----
-699524

query I rowsort
SELECT 33 * - 9 AS col1
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL COUNT( ALL - + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL COUNT ( ALL - + 21 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT 23 - - COUNT( * ) - COUNT( DISTINCT - - 44 ) * 86 + 44 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-5235
SELECT 23 - - COUNT ( * ) - COUNT ( DISTINCT - - 44 ) * 86 + 44 AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL - COUNT( * ) + + ( + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL - COUNT ( * ) + + ( + COUNT ( * ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL + 9 + + COUNT( * ) col2
----
10

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + 9 + + COUNT ( * ) col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT 49 - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-5238
SELECT 49 - COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT COUNT( ALL - - 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5239
SELECT COUNT ( ALL - - 66 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL - 91 * - + 32 + + 29 + 39 * COUNT( * )
----
2980

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL - 91 * - + 32 + + 29 + 39 * COUNT ( * )
----
2980

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT COUNT( * ) + - 98 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5241
SELECT COUNT ( * ) + - 98 AS col0
----
-97

query I rowsort
SELECT ALL 43 * + 12 AS col1
----
516

query I rowsort
SELECT + 56 * - 38 * 99 * - + 75 + - - 54 + 39 AS col0
----
15800493

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT ALL COUNT( * ) * + 80 - + 14 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL COUNT ( * ) * + 80 - + 14 AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5245
SELECT DISTINCT - CASE - 26 WHEN + - 51 * 43 + - COALESCE ( 32, - COUNT( * ) * NULLIF ( - 18, CAST( NULL AS SIGNED ) * + - NULLIF ( + 87, + + CAST( NULL AS SIGNED ) ) + + 35 / - 11 + - COUNT( * ) ) ) THEN NULL ELSE + 89 / 33 - CAST( NULL AS DECIMAL ) * + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT - CASE - 26 WHEN + - 51 * 43 + - COALESCE ( 32, - COUNT ( * ) * NULLIF ( - 18, CAST ( NULL AS INTEGER ) * + - NULLIF ( + 87, + + CAST ( NULL AS INTEGER ) ) + + 35 / - 11 + - COUNT ( * ) ) ) THEN NULL ELSE + 89 / 33 - CAST ( NULL AS REAL ) * + 54 END
----
NULL

query I rowsort
SELECT ALL - - 9 AS col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5247
SELECT - COALESCE ( COUNT( * ), + 5 ), ( + 86 ) AS col2
----
-1
86

skipif mysql # not compatible
query II rowsort label-5247
SELECT - COALESCE ( COUNT ( * ), + 5 ), ( + 86 ) AS col2
----
-1
86

query I rowsort
SELECT ALL + ( + - 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT - + 19 * - + 16 + + COUNT( * ) AS col2
----
305

skipif mysql # not compatible
query I rowsort label-5249
SELECT - + 19 * - + 16 + + COUNT ( * ) AS col2
----
305

query I rowsort
SELECT - ( + - 88 )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT 2 * + 52 - CAST( 92 AS SIGNED ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5251
SELECT 2 * + 52 - CAST ( 92 AS INTEGER ) AS col0
----
12

query I rowsort
SELECT + 42 + 13
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5253
SELECT ALL - 47 DIV - 71 + 62 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL - 47 / - 71 + 62 AS col1
----
62

query I rowsort
SELECT DISTINCT + 31 * + ( - 2 )
----
-62

query II rowsort
SELECT DISTINCT 82, - 32 AS col0
----
82
-32

query I rowsort
SELECT ALL 34 * + 23 AS col0
----
782

query II rowsort
SELECT 88 AS col2, - 46 col1
----
88
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT + CAST( NULL AS SIGNED ) + + AVG ( - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5258
SELECT + CAST ( NULL AS INTEGER ) + + AVG ( - 41 )
----
NULL

query I rowsort
SELECT + 22 + - 19 * 57
----
-1061

query I rowsort
SELECT - 98 + + 89
----
-9

query I rowsort
SELECT + 10 + + 90 AS col2
----
100

query I rowsort
SELECT + 86 + 49
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5263
SELECT - 92 - + ( + + ( - CAST( 42 AS SIGNED ) ) )
----
-50

skipif mysql # not compatible
query I rowsort label-5263
SELECT - 92 - + ( + + ( - CAST ( 42 AS INTEGER ) ) )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL + NULLIF ( - 84, - 91 + - MIN( ALL + 95 ) ) + 72 + 91 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL + NULLIF ( - 84, - 91 + - MIN ( ALL + 95 ) ) + 72 + 91 AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT ALL SUM( + 54 ) + - MAX( - 94 ) DIV + 77 + 60 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL SUM ( + 54 ) + - MAX ( - 94 ) / + 77 + 60 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT SUM( ALL + + 10 ) + - - 80 + - + 50 + COUNT( * ) * + 58 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT SUM ( ALL + + 10 ) + - - 80 + - + 50 + COUNT ( * ) * + 58 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL - 77 + - COALESCE ( + + 44, 27 + - + MAX( DISTINCT + ( + 52 ) ) ) - - - ( + 63 ) - - + MIN( - NULLIF ( - + 47, ( + - 47 ) ) ) + + 72 * - - 91 + COALESCE ( 61, 66 * - CASE + SUM( ALL 34 ) WHEN - 63 - 89 / + 76 THEN NULL WHEN 15 THEN 58 * 24 ELSE NULL END, + 13 + 91, - 79 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL - 77 + - COALESCE ( + + 44, 27 + - + MAX ( DISTINCT + ( + 52 ) ) ) - - - ( + 63 ) - - + MIN ( - NULLIF ( - + 47, ( + - 47 ) ) ) + + 72 * - - 91 + COALESCE ( 61, 66 * - CASE + SUM ( ALL 34 ) WHEN - 63 - 89 / + 76 THEN NULL WHEN 15 THEN 58 * 24 ELSE NULL END, + 13 + 91, - 79 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT - COUNT( * ) + 32 * + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-5268
SELECT - COUNT ( * ) + 32 * + COUNT ( * )
----
31

query I rowsort
SELECT - 9 + - - NULLIF ( - 26, 24 ) AS col1
----
-35

query I rowsort
SELECT DISTINCT NULLIF ( + 72, 98 + + 2 + + + 94 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT - 88 * - - SUM( + 97 ) * + - 14 + + - 10 AS col1
----
119494

skipif mysql # not compatible
query I rowsort label-5271
SELECT - 88 * - - SUM ( + 97 ) * + - 14 + + - 10 AS col1
----
119494

query I rowsort
SELECT ALL 57 * + - 18 AS col1
----
-1026

query II rowsort
SELECT - 48 AS col0, + 16
----
-48
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5274
SELECT ALL + + 54 / CAST( NULL AS SIGNED ) - - 75 * 75 * + 44 + - 82 + + - 88 * - + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL + + 54 / CAST ( NULL AS INTEGER ) - - 75 * 75 * + 44 + - 82 + + - 88 * - + 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5275
SELECT ALL + 43 DIV 43 - + 35 - + 16 + - 33 * 72 * - COUNT( * ) + - 64 * ( 85 )
----
-3114

skipif mysql # not compatible
query I rowsort label-5275
SELECT ALL + 43 / 43 - + 35 - + 16 + - 33 * 72 * - COUNT ( * ) + - 64 * ( 85 )
----
-3114

query I rowsort
SELECT - - 9 * - 38 * + NULLIF ( + + 88, 84 * + 48 - + 42 ) * - ( - 99 )
----
-2979504

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT ALL + COUNT( + + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL + COUNT ( + + 25 )
----
1

query I rowsort
SELECT 17 * - + 65 + - + 14 AS col0
----
-1119

query I rowsort
SELECT - + 48 * + 56 AS col2
----
-2688

query I rowsort
SELECT - 4 * - NULLIF ( 37, + 2 )
----
148

query I rowsort
SELECT + 73 * - 28 AS col1
----
-2044

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL - 62 * COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - 62 * COUNT ( * ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + 37 * - 16 * + + 74 * - NULLIF ( SUM( - 16 ), + ( COUNT( * ) ) * - 57 ) - - 2
----
-700926

skipif mysql # not compatible
query I rowsort label-5283
SELECT + 37 * - 16 * + + 74 * - NULLIF ( SUM ( - 16 ), + ( COUNT ( * ) ) * - 57 ) - - 2
----
-700926

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT + - NULLIF ( + - COUNT( * ), 52 * - - 44 / - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5284
SELECT + - NULLIF ( + - COUNT ( * ), 52 * - - 44 / - + COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + + 66 col1
----
66

query II rowsort
SELECT DISTINCT + + 5 AS col1, + 96
----
5
96

query I rowsort
SELECT ALL + - ( - 7 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5288
SELECT DISTINCT + - 88 col0, ( - + COUNT( * ) )
----
-88
-1

skipif mysql # not compatible
query II rowsort label-5288
SELECT DISTINCT + - 88 col0, ( - + COUNT ( * ) )
----
-88
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT + COUNT( * ) AS col1, 2 col0
----
1
2

skipif mysql # not compatible
query II rowsort label-5289
SELECT + COUNT ( * ) AS col1, 2 col0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT - COUNT( * ) * + 73 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5290
SELECT - COUNT ( * ) * + 73 AS col1
----
-73

query I rowsort
SELECT + 22 + - - 18 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL - 84 * 40 + + ( - 5 ) - - COUNT( * ) AS col2
----
-3364

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - 84 * 40 + + ( - 5 ) - - COUNT ( * ) AS col2
----
-3364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5293
SELECT COALESCE ( + ( - COUNT( * ) ), + 36 DIV 49 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5293
SELECT COALESCE ( + ( - COUNT ( * ) ), + 36 / 49 ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( * ) + MIN( - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + MIN ( - 29 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5295
SELECT + 75 DIV - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5295
SELECT + 75 / - COUNT ( * ) AS col2
----
-75

query I rowsort
SELECT ALL + 85 * 45 + - ( - 88 )
----
3913

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT - 87 * COUNT( * ) * 47 AS col0
----
-4089

skipif mysql # not compatible
query I rowsort label-5297
SELECT - 87 * COUNT ( * ) * 47 AS col0
----
-4089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5298
SELECT ALL 53 * - COUNT( * ) + 19 * - 78 * + 36 * SUM( DISTINCT - 29 ) - - 21 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL 53 * - COUNT ( * ) + 19 * - 78 * + 36 * SUM ( DISTINCT - 29 ) - - 21 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT - NULLIF ( + 79, - - COUNT( * ) ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5299
SELECT - NULLIF ( + 79, - - COUNT ( * ) ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT ALL COUNT( * ) + - CASE + - 90 WHEN + - 12 THEN - + 96 * ( 8 ) ELSE NULL END * COALESCE ( 81, - 66 ) AS col2, + 25 + + 29 AS col1
----
NULL
54

skipif mysql # not compatible
query II rowsort label-5300
SELECT ALL COUNT ( * ) + - CASE + - 90 WHEN + - 12 THEN - + 96 * ( 8 ) ELSE NULL END * COALESCE ( 81, - 66 ) AS col2, + 25 + + 29 AS col1
----
NULL
54

query I rowsort
SELECT ALL 21 * - 4 * + - 11
----
924

query I rowsort
SELECT + 3 + 41 AS col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5303
SELECT + COUNT( * ) DIV - - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5303
SELECT + COUNT ( * ) / - - 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT + 20 * COUNT( * ) * + - 79
----
-1580

skipif mysql # not compatible
query I rowsort label-5304
SELECT + 20 * COUNT ( * ) * + - 79
----
-1580

onlyif mysql # aggregate syntax: 
query II rowsort label-5305
SELECT + 97 - COUNT( * ), + 42 * - COUNT( - 90 ) + 14 AS col2
----
96
-28

skipif mysql # not compatible
query II rowsort label-5305
SELECT + 97 - COUNT ( * ), + 42 * - COUNT ( - 90 ) + 14 AS col2
----
96
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT + COUNT( 81 ) - - - 18 * + 6
----
-107

skipif mysql # not compatible
query I rowsort label-5306
SELECT + COUNT ( 81 ) - - - 18 * + 6
----
-107

query I rowsort
SELECT ALL - 18 * + - 83 + + 34
----
1528

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT + - COALESCE ( + - 9, + - COUNT( * ) ) * 22 * + 81 AS col0
----
16038

skipif mysql # not compatible
query I rowsort label-5308
SELECT + - COALESCE ( + - 9, + - COUNT ( * ) ) * 22 * + 81 AS col0
----
16038

query I rowsort
SELECT ALL + COALESCE ( + 20, - 12 ) AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5310
SELECT - AVG ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT - AVG ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + 22 - - MIN( ALL + 7 ) * - 25
----
-153

skipif mysql # not compatible
query I rowsort label-5311
SELECT + 22 - - MIN ( ALL + 7 ) * - 25
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-5312
SELECT 36 * + 29 AS col2, COUNT( * )
----
1044
1

skipif mysql # not compatible
query II rowsort label-5312
SELECT 36 * + 29 AS col2, COUNT ( * )
----
1044
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT - 88 DIV 28 - + 31
----
-34

skipif mysql # not compatible
query I rowsort label-5313
SELECT - 88 / 28 - + 31
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT - 80 * + 34 + CASE 91 WHEN 69 THEN + SUM( ( + - 41 ) ) WHEN - COUNT( * ) * - + 64 + - + 76 THEN + ( 94 ) WHEN + 66 THEN - - 38 ELSE NULL END + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT - 80 * + 34 + CASE 91 WHEN 69 THEN + SUM ( ( + - 41 ) ) WHEN - COUNT ( * ) * - + 64 + - + 76 THEN + ( 94 ) WHEN + 66 THEN - - 38 ELSE NULL END + + 11
----
NULL

query I rowsort
SELECT DISTINCT 76 * - 76 + + 28 AS col0
----
-5748

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + 9 * - - COUNT( * ) + 58 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5316
SELECT + 9 * - - COUNT ( * ) + 58 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5317
SELECT ALL + - 93 DIV - 16, ( + - MIN( ALL 78 ) ) AS col2
----
5
-78

skipif mysql # not compatible
query II rowsort label-5317
SELECT ALL + - 93 / - 16, ( + - MIN ( ALL 78 ) ) AS col2
----
5
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5318
SELECT CAST( + 54 AS SIGNED ) DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-5318
SELECT CAST ( + 54 AS INTEGER ) / 89
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5319
SELECT + ( 80 ) * - NULLIF ( 75, CAST( + ( + 69 ) AS DECIMAL ) ) + + CAST( NULL AS SIGNED ) * - - 29 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5319
SELECT + ( 80 ) * - NULLIF ( 75, CAST ( + ( + 69 ) AS REAL ) ) + + CAST ( NULL AS INTEGER ) * - - 29 * - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT 74 * + - MAX( + 93 ) AS col1
----
-6882

skipif mysql # not compatible
query I rowsort label-5320
SELECT 74 * + - MAX ( + 93 ) AS col1
----
-6882

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT + 31 col0, + COUNT( * ) * 14
----
31
14

skipif mysql # not compatible
query II rowsort label-5321
SELECT + 31 col0, + COUNT ( * ) * 14
----
31
14

query I rowsort
SELECT 33 * - + 22 col2
----
-726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5323
SELECT 76 * - - CAST( NULL AS SIGNED ) / + - COUNT( * ) * + + 44 + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT 76 * - - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) * + + 44 + - 57
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT ALL - ( - 1 ) + 61 col0, + 68 + + SUM( + 36 )
----
62
104

skipif mysql # not compatible
query II rowsort label-5324
SELECT ALL - ( - 1 ) + 61 col0, + 68 + + SUM ( + 36 )
----
62
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT - NULLIF ( - - COUNT( * ), - 17 * 77 ) * 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), - 17 * 77 ) * 20 AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5326
SELECT ALL + COUNT( * ) + - + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT + 95 + - 34 - + + NULLIF ( + 46, + CAST( NULL AS SIGNED ) ) * COUNT( * ) + 64 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT + 95 + - 34 - + + NULLIF ( + 46, + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + 64 AS col2
----
79

query I rowsort
SELECT ALL 27 + - 7 AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT - 24 * 76 - + 62 + - + 99 DIV - ( + ( 83 ) ) AS col0
----
-1885

skipif mysql # not compatible
query I rowsort label-5329
SELECT - 24 * 76 - + 62 + - + 99 / - ( + ( 83 ) ) AS col0
----
-1885

onlyif mysql # aggregate syntax: 
query II rowsort label-5330
SELECT COUNT( ALL - - 3 ) + + 76 col1, COALESCE ( 25, + ( - - 88 ) + - COUNT( * ) * - 86 ) * - NULLIF ( - 33, - - 12 ) AS col2
----
77
825

skipif mysql # not compatible
query II rowsort label-5330
SELECT COUNT ( ALL - - 3 ) + + 76 col1, COALESCE ( 25, + ( - - 88 ) + - COUNT ( * ) * - 86 ) * - NULLIF ( - 33, - - 12 ) AS col2
----
77
825

query I rowsort
SELECT 39 + + - 14
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT CASE NULLIF ( 84, 21 ) WHEN + - 27 * - + 14 + - COUNT( * ) THEN 10 END * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT CASE NULLIF ( 84, 21 ) WHEN + - 27 * - + 14 + - COUNT ( * ) THEN 10 END * 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5333
SELECT - 18 AS col1, NULLIF ( - ( - + COUNT( 2 ) ), + - 92 )
----
-18
1

skipif mysql # not compatible
query II rowsort label-5333
SELECT - 18 AS col1, NULLIF ( - ( - + COUNT ( 2 ) ), + - 92 )
----
-18
1

query II rowsort
SELECT ALL 19, 62 AS col1
----
19
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5335
SELECT 48 + 66 * 41 + + CAST( NULL AS SIGNED ) / MIN( + - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT 48 + 66 * 41 + + CAST ( NULL AS INTEGER ) / MIN ( + - 29 )
----
NULL

query I rowsort
SELECT ALL - ( COALESCE ( - + 25, - 76 - + + 20 ) ) - - 50
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT MIN( DISTINCT - 60 ) + + - 8 + + - COUNT( * ) * + - COUNT( ALL + - 27 ) + - + 52 AS col1
----
-119

skipif mysql # not compatible
query I rowsort label-5337
SELECT MIN ( DISTINCT - 60 ) + + - 8 + + - COUNT ( * ) * + - COUNT ( ALL + - 27 ) + - + 52 AS col1
----
-119

query I rowsort
SELECT ALL 61 * 88 AS col0
----
5368

query I rowsort
SELECT DISTINCT + 42 * 95 AS col1
----
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT + COUNT( * ) * - - 38 * - + 90 AS col1
----
-3420

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT + COUNT ( * ) * - - 38 * - + 90 AS col1
----
-3420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5341
SELECT - 45 * - - COUNT( * ) DIV 57 * 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5341
SELECT - 45 * - - COUNT ( * ) / 57 * 44 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT + CAST( NULL AS SIGNED ) * - - 31 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT + CAST ( NULL AS INTEGER ) * - - 31 * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT DISTINCT MAX( DISTINCT - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT MAX ( DISTINCT - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT - + 97 AS col1, COUNT( * ) AS col0
----
-97
1

skipif mysql # not compatible
query II rowsort label-5344
SELECT - + 97 AS col1, COUNT ( * ) AS col0
----
-97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT 41 DIV 90 * 42 DIV + 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT 41 / 90 * 42 / + 78 AS col0
----
0

query I rowsort
SELECT ALL + ( - - 77 ) AS col1
----
77

query II rowsort
SELECT DISTINCT - - 60 AS col2, 72
----
60
72

query I rowsort
SELECT ALL 64 + 16
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5349
SELECT DISTINCT + COUNT( * ) + + - 41 DIV + - 38, 12 + 75 AS col1
----
2
87

skipif mysql # not compatible
query II rowsort label-5349
SELECT DISTINCT + COUNT ( * ) + + - 41 / + - 38, 12 + 75 AS col1
----
2
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL + ( + 85 ) + MIN( ALL 57 ) AS col2
----
142

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + ( + 85 ) + MIN ( ALL 57 ) AS col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ALL + MIN( + 26 ) + - - 90
----
116

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL + MIN ( + 26 ) + - - 90
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT 97 + 74 - MAX( ALL + 72 )
----
99

skipif mysql # not compatible
query I rowsort label-5352
SELECT 97 + 74 - MAX ( ALL + 72 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5353
SELECT ALL - - COUNT( * ), + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5353
SELECT ALL - - COUNT ( * ), + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5354
SELECT - + 62 DIV + COUNT( * ) + + 53 * + + 94 * - - 1 * + + 91
----
453300

skipif mysql # not compatible
query I rowsort label-5354
SELECT - + 62 / + COUNT ( * ) + + 53 * + + 94 * - - 1 * + + 91
----
453300

query I rowsort
SELECT ALL - 19 + + 71 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT + MIN( 34 ) + - 75
----
-41

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT + MIN ( 34 ) + - 75
----
-41

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5357
SELECT - 64 DIV 8 DIV 66 - - + CAST( + 55 AS SIGNED ) + - 60 + + + 92 + + 39 DIV - - 66, ( + + 62 ) col1
----
87
62

skipif mysql # not compatible
query II rowsort label-5357
SELECT - 64 / 8 / 66 - - + CAST ( + 55 AS INTEGER ) + - 60 + + + 92 + + 39 / - - 66, ( + + 62 ) col1
----
87
62

onlyif mysql # DIV for integer division: 
query II rowsort label-5358
SELECT DISTINCT + 36 DIV - 56, + 30 * - 33 * ( + 88 ) AS col2
----
0
-87120

skipif mysql # not compatible
query II rowsort label-5358
SELECT DISTINCT + 36 / - 56, + 30 * - 33 * ( + 88 ) AS col2
----
0
-87120

query I rowsort
SELECT DISTINCT ( 18 ) - - 9
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT 49 + + + 14 + - + 15 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT 49 + + + 14 + - + 15 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5361
SELECT ALL + COUNT( * ) - 11 AS col2, + CAST( NULL AS SIGNED )
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-5361
SELECT ALL + COUNT ( * ) - 11 AS col2, + CAST ( NULL AS INTEGER )
----
-10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL - COUNT( ALL + NULLIF ( + 81, - - 14 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL - COUNT ( ALL + NULLIF ( + 81, - - 14 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT + CASE 23 WHEN - 36 THEN NULL WHEN ( CAST( NULL AS SIGNED ) ) THEN - 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT + CASE 23 WHEN - 36 THEN NULL WHEN ( CAST ( NULL AS INTEGER ) ) THEN - 19 END
----
NULL

query I rowsort
SELECT 32 * + + CASE - - 30 WHEN - + 62 THEN - - 34 + + 68 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5365
SELECT 39 DIV + 30 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5365
SELECT 39 / + 30 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5366
SELECT 74 DIV - COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-5366
SELECT 74 / - COUNT ( * ) AS col1
----
-74

query I rowsort
SELECT ALL + 46 * 70 * + + 96 * + + 48
----
14837760

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL CASE COUNT( * ) WHEN - 40 THEN NULL WHEN - 30 * - 46 + + 24 THEN 75 * 38 - + + 70 + + 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL CASE COUNT ( * ) WHEN - 40 THEN NULL WHEN - 30 * - 46 + + 24 THEN 75 * 38 - + + 70 + + 51 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT DISTINCT NULLIF ( 48, COUNT( + 37 ) * - 79 + 16 )
----
48

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT NULLIF ( 48, COUNT ( + 37 ) * - 79 + 16 )
----
48

query I rowsort
SELECT ALL CASE - 19 WHEN - - 40 * - 79 THEN + - 10 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT - SUM( - + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5371
SELECT - SUM ( - + 57 ) AS col0
----
57

query I rowsort
SELECT - ( + 68 ) AS col0
----
-68

query I rowsort
SELECT + - 30 * - 59 AS col2
----
1770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5374
SELECT - 79 DIV + - COUNT( ALL - 92 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5374
SELECT - 79 / + - COUNT ( ALL - 92 ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5375
SELECT DISTINCT + + MIN( - - CAST( NULL AS SIGNED ) ) + - - 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT + + MIN ( - - CAST ( NULL AS INTEGER ) ) + - - 77 AS col0
----
NULL

query I rowsort
SELECT ALL + - 22 + - 91 AS col0
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT DISTINCT - 42 + + 37 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT - 42 + + 37 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 9 * 21 * + 18 AS col0
----
-3402

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - MIN( + + 9 ) + + - 59 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5379
SELECT - MIN ( + + 9 ) + + - 59 AS col1
----
-68

query I rowsort
SELECT + 20 - + 81 + - 41 + - ( + 90 ) AS col1
----
-192

query I rowsort
SELECT ALL - 39 * 6
----
-234

query I rowsort
SELECT - ( - 7 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT + - 28 * - 42 * COUNT( * )
----
1176

skipif mysql # not compatible
query I rowsort label-5383
SELECT + - 28 * - 42 * COUNT ( * )
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL + COUNT( * ) * COUNT( DISTINCT 41 ) + - NULLIF ( + - 79, - + COUNT( * ) ) + + ( - 10 ) * - - COUNT( * ) + 95
----
165

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL + COUNT ( * ) * COUNT ( DISTINCT 41 ) + - NULLIF ( + - 79, - + COUNT ( * ) ) + + ( - 10 ) * - - COUNT ( * ) + 95
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT MAX( DISTINCT ( - + 67 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-5385
SELECT MAX ( DISTINCT ( - + 67 ) )
----
-67

query I rowsort
SELECT + ( 69 ) * + - 87 AS col0
----
-6003

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT - 50 * - 55 + + MIN( + 18 ) col1
----
2768

skipif mysql # not compatible
query I rowsort label-5387
SELECT - 50 * - 55 + + MIN ( + 18 ) col1
----
2768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT DISTINCT + CAST( - 16 AS SIGNED ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT + CAST ( - 16 AS INTEGER ) AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT ALL - 42 * + - 90 - 71 + - 6 + 68 DIV 65
----
3704

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - 42 * + - 90 - 71 + - 6 + 68 / 65
----
3704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5390
SELECT + CASE + 9 WHEN 41 * 17 * - - 69 + + CASE + AVG ( DISTINCT 13 ) WHEN + 83 + MIN( DISTINCT + 82 ) THEN NULL WHEN - - COUNT( * ) THEN + 15 * + 47 * + + 63 + 28 END / MAX( ALL + 95 ) * 15 + + NULLIF ( 61, + 69 * - COUNT( * ) ) THEN 64 WHEN + 88 THEN NULL WHEN - MIN( DISTINCT 9 ) + CAST( NULL AS SIGNED ) * + 75 THEN MIN( DISTINCT ( 62 ) ) + - 16 ELSE + 20 END
----
20

skipif mysql # not compatible
query I rowsort label-5390
SELECT + CASE + 9 WHEN 41 * 17 * - - 69 + + CASE + AVG ( DISTINCT 13 ) WHEN + 83 + MIN ( DISTINCT + 82 ) THEN NULL WHEN - - COUNT ( * ) THEN + 15 * + 47 * + + 63 + 28 END / MAX ( ALL + 95 ) * 15 + + NULLIF ( 61, + 69 * - COUNT ( * ) ) THEN 64 WHEN + 88 THEN NULL WHEN - MIN ( DISTINCT 9 ) + CAST ( NULL AS INTEGER ) * + 75 THEN MIN ( DISTINCT ( 62 ) ) + - 16 ELSE + 20 END
----
20

query II rowsort
SELECT + NULLIF ( 4, + + AVG ( - 37 ) + 19 ) AS col2, + 36 AS col2
----
4
36

query I rowsort
SELECT + 28 + - 47 * 62
----
-2886

query I rowsort
SELECT + ( + 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT + CASE - + 94 WHEN + 83 * + 8 THEN + 64 END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT + CASE - + 94 WHEN + 83 * + 8 THEN + 64 END * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5395
SELECT ALL CAST( + - CAST( + AVG ( - 62 ) AS DECIMAL ) AS SIGNED ) * - 76 * 18 AS col1
----
-84816

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL CAST ( + - CAST ( + AVG ( - 62 ) AS REAL ) AS INTEGER ) * - 76 * 18 AS col1
----
-84816

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT + CASE + CASE 53 WHEN - ( - ( + + 39 ) ) / + 11 THEN + + 18 * - 1 + - 51 / + - MIN( ( + 53 ) ) ELSE 28 END WHEN + - 10 THEN + 4 + - MIN( DISTINCT - 28 ) WHEN + ( - 18 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT + CASE + CASE 53 WHEN - ( - ( + + 39 ) ) / + 11 THEN + + 18 * - 1 + - 51 / + - MIN ( ( + 53 ) ) ELSE 28 END WHEN + - 10 THEN + 4 + - MIN ( DISTINCT - 28 ) WHEN + ( - 18 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT COALESCE ( + 36, - 86 - - 34, - 59 + + MIN( - 86 ) - - - 43 * + ( - ( 7 ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-5397
SELECT COALESCE ( + 36, - 86 - - 34, - 59 + + MIN ( - 86 ) - - - 43 * + ( - ( 7 ) ) )
----
36

query I rowsort
SELECT + 56 * + - ( + - 19 ) AS col2
----
1064

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT - 62 * + + COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5399
SELECT - 62 * + + COUNT ( * ) AS col2
----
-62

query II rowsort
SELECT + 74 + + ( 27 ), 9 + + 44 * - - 75 AS col0
----
101
3309

query I rowsort
SELECT DISTINCT 97 * - 48 col2
----
-4656

onlyif mysql # DIV for integer division: 
query I rowsort label-5402
SELECT ALL - 87 DIV - 3 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5402
SELECT ALL - 87 / - 3 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT - 44 - - CASE + 1 WHEN 56 THEN - + SUM( DISTINCT - - 49 ) * + + 51 + + COALESCE ( - - COUNT( * ), + 90 ) + COUNT( * ) / + 87 ELSE NULL END * + - 40 * + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT - 44 - - CASE + 1 WHEN 56 THEN - + SUM ( DISTINCT - - 49 ) * + + 51 + + COALESCE ( - - COUNT ( * ), + 90 ) + COUNT ( * ) / + 87 ELSE NULL END * + - 40 * + 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT + COUNT( * ) + - 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-5404
SELECT + COUNT ( * ) + - 31 AS col1
----
-30

query I rowsort
SELECT + 77 * - 31 + + 34 + + + 88
----
-2265

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + COUNT( * ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-5406
SELECT + COUNT ( * ) * 3
----
3

query I rowsort
SELECT + 90 * + - 74 AS col2
----
-6660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5408
SELECT - MIN( + - 94 ) DIV 30 col2
----
3

skipif mysql # not compatible
query I rowsort label-5408
SELECT - MIN ( + - 94 ) / 30 col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT NULLIF ( - - COALESCE ( + - 48, - - 75, - 75, CAST( - + 51 AS SIGNED ) ), CAST( NULL AS SIGNED ) * - 60 * + + COUNT( * ) ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5409
SELECT NULLIF ( - - COALESCE ( + - 48, - - 75, - 75, CAST ( - + 51 AS INTEGER ) ), CAST ( NULL AS INTEGER ) * - 60 * + + COUNT ( * ) ) AS col1
----
-48

query I rowsort
SELECT ALL + 26 + + - 87 * 73 + 65
----
-6260

query I rowsort
SELECT DISTINCT + 68 + - 37 AS col1
----
31

query II rowsort
SELECT ALL + 68 AS col0, 22
----
68
22

query I rowsort
SELECT - - 11 col1
----
11

query I rowsort
SELECT DISTINCT - 93 + + 6 * - 81
----
-579

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT - SUM( DISTINCT - ( - 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-5415
SELECT - SUM ( DISTINCT - ( - 41 ) )
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-5416
SELECT ALL + 54 + + 49 DIV + - 56
----
54

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + 54 + + 49 / + - 56
----
54

query I rowsort
SELECT + - 38 + + - 88 + COALESCE ( + - ( + - 14 ), + 92 ) - + 19 AS col2
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5418
SELECT - + 80 * + CAST( NULL AS SIGNED ) - - COUNT( * ) + COUNT( * ) + - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT - + 80 * + CAST ( NULL AS INTEGER ) - - COUNT ( * ) + COUNT ( * ) + - + 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - + 74 + + - 19 + + 58 + - - COUNT( * ) * 45
----
10

skipif mysql # not compatible
query I rowsort label-5419
SELECT - + 74 + + - 19 + + 58 + - - COUNT ( * ) * 45
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT DISTINCT - COALESCE ( CAST( - + 34 AS SIGNED ), CAST( NULL AS SIGNED ) * - 92, + 20 )
----
34

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT - COALESCE ( CAST ( - + 34 AS INTEGER ), CAST ( NULL AS INTEGER ) * - 92, + 20 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL + COUNT( DISTINCT + 86 ) + + - NULLIF ( - COUNT( * ), - 41 + - - 66 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL + COUNT ( DISTINCT + 86 ) + + - NULLIF ( - COUNT ( * ), - 41 + - - 66 ) AS col0
----
2

query I rowsort
SELECT + + 24 + + + 81
----
105

query I rowsort
SELECT ALL - + 6 + - + 89 * - + 28
----
2486

query I rowsort
SELECT - - CASE + + 55 WHEN 71 THEN - - 99 WHEN + 97 + + 31 THEN NULL ELSE NULL END + + - 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5425
SELECT - + 22 + NULLIF ( + CAST( NULL AS SIGNED ), + - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT - + 22 + NULLIF ( + CAST ( NULL AS INTEGER ), + - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL + COALESCE ( 18, + - ( 75 ) * - ( + COUNT( + 2 ) ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + COALESCE ( 18, + - ( 75 ) * - ( + COUNT ( + 2 ) ) ) AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT ALL - + 49 DIV - 82 + - 16 - COALESCE ( - ( - 68 ), 19 ) * 39 AS col2
----
-2668

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL - + 49 / - 82 + - 16 - COALESCE ( - ( - 68 ), 19 ) * 39 AS col2
----
-2668

query II rowsort
SELECT DISTINCT + 80 AS col2, - 1
----
80
-1

query I rowsort
SELECT ALL 52 * 5
----
260

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT ALL 56 DIV + 14 - + 44
----
-40

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL 56 / + 14 - + 44
----
-40

query I rowsort
SELECT DISTINCT - ( + 68 ) * - 29 * 2 * 33 AS col1
----
130152

query I rowsort
SELECT - 4 * + 68 * + - COALESCE ( + + 18, - + 82 ) AS col1
----
4896

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5433
SELECT CAST( NULL AS SIGNED ) AS col2, 45 * - 90 AS col1
----
NULL
-4050

skipif mysql # not compatible
query II rowsort label-5433
SELECT CAST ( NULL AS INTEGER ) AS col2, 45 * - 90 AS col1
----
NULL
-4050

query I rowsort
SELECT + ( - 49 ) + + NULLIF ( - + 85, + 97 - - - 1 * + 57 ) AS col1
----
-134

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT - 57 DIV - 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5435
SELECT - 57 / - 54 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5436
SELECT ALL + CASE - + ( + 94 ) WHEN - MIN( + 98 ) THEN - 90 * 44 * - COALESCE ( - ( 74 ), 43, + 22 * - 35 / + MIN( ALL + 42 ) ) WHEN + COUNT( * ) THEN - + 58 + ( + 15 ) / - CAST( NULL AS DECIMAL ) + + 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL + CASE - + ( + 94 ) WHEN - MIN ( + 98 ) THEN - 90 * 44 * - COALESCE ( - ( 74 ), 43, + 22 * - 35 / + MIN ( ALL + 42 ) ) WHEN + COUNT ( * ) THEN - + 58 + ( + 15 ) / - CAST ( NULL AS REAL ) + + 73 END
----
NULL

query II rowsort
SELECT ALL + 93 AS col1, 61 AS col2
----
93
61

onlyif mysql # DIV for integer division: 
query II rowsort label-5438
SELECT 67 AS col0, - 7 DIV 3
----
67
-2

skipif mysql # not compatible
query II rowsort label-5438
SELECT 67 AS col0, - 7 / 3
----
67
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5439
SELECT ALL - 38, - COUNT( * ) * + COUNT( * ) + + 46 + - - 76 AS col2
----
-38
121

skipif mysql # not compatible
query II rowsort label-5439
SELECT ALL - 38, - COUNT ( * ) * + COUNT ( * ) + + 46 + - - 76 AS col2
----
-38
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT 77 * + SUM( 81 ) col2
----
6237

skipif mysql # not compatible
query I rowsort label-5440
SELECT 77 * + SUM ( 81 ) col2
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT 48 * COUNT( * ) * - COUNT( * ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-5441
SELECT 48 * COUNT ( * ) * - COUNT ( * ) col2
----
-48

query I rowsort
SELECT DISTINCT 43 + 46 + - 45
----
44

query I rowsort
SELECT ALL 2 + 24 AS col1
----
26

query I rowsort
SELECT DISTINCT 61 * 72
----
4392

query I rowsort
SELECT 67 * + 61
----
4087

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT 2 * - SUM( ALL - 14 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5446
SELECT 2 * - SUM ( ALL - 14 ) AS col0
----
28

query I rowsort
SELECT - - COALESCE ( - 2, - 27 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT DISTINCT - 97 + - + CAST( - 1 AS SIGNED ) * - 90 AS col2
----
-187

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - 97 + - + CAST ( - 1 AS INTEGER ) * - 90 AS col2
----
-187

query I rowsort
SELECT ALL - 39 + 56 + + - ( + - 16 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL + 64 + + 30 + - 73 + 85 + + + 50 * + - MIN( - 57 ) * + 50 * 37 + 32 - - - SUM( ALL 93 ) * - - 2 + + - COUNT( * ) + - 11 AS col0
----
5272440

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL + 64 + + 30 + - 73 + 85 + + + 50 * + - MIN ( - 57 ) * + 50 * 37 + 32 - - - SUM ( ALL 93 ) * - - 2 + + - COUNT ( * ) + - 11 AS col0
----
5272440

query II rowsort
SELECT 60, + 35 AS col0
----
60
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL + - 46 + + - MAX( DISTINCT - + 74 )
----
28

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL + - 46 + + - MAX ( DISTINCT - + 74 )
----
28

query II rowsort
SELECT 97 col2, - 47 AS col2
----
97
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5454
SELECT ALL 80, + 55 - - 13 + + 49 + 21 * - - 71 * 84 DIV 49 * - + 76 * COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) + + - 74 col1
----
80
43

skipif mysql # not compatible
query II rowsort label-5454
SELECT ALL 80, + 55 - - 13 + + 49 + 21 * - - 71 * 84 / 49 * - + 76 * COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + - 74 col1
----
80
43

query II rowsort
SELECT 74 + - + 22 AS col2, - CASE + + 32 WHEN 74 THEN - + ( + - 33 ) * - 98 ELSE NULL END
----
52
NULL

query I rowsort
SELECT + 32 + - 5 AS col1
----
27

query I rowsort
SELECT 64 * 29 AS col2
----
1856

query I rowsort
SELECT ALL 71 + + 75
----
146

query II rowsort
SELECT - 3 AS col1, - 80 AS col0
----
-3
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT - MIN( ALL + - 96 ) - + - 83 AS col2
----
179

skipif mysql # not compatible
query I rowsort label-5460
SELECT - MIN ( ALL + - 96 ) - + - 83 AS col2
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT + 24 * + COUNT( * ) + COUNT( - + 49 )
----
25

skipif mysql # not compatible
query I rowsort label-5461
SELECT + 24 * + COUNT ( * ) + COUNT ( - + 49 )
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-5462
SELECT DISTINCT + 21 DIV + 38 col0, 92 AS col1
----
0
92

skipif mysql # not compatible
query II rowsort label-5462
SELECT DISTINCT + 21 / + 38 col0, 92 AS col1
----
0
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT ALL - SUM( DISTINCT - 99 ) - + + 68
----
31

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL - SUM ( DISTINCT - 99 ) - + + 68
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5464
SELECT 84, + CAST( NULL AS SIGNED ) + + 37 * 89 AS col1
----
84
NULL

skipif mysql # not compatible
query II rowsort label-5464
SELECT 84, + CAST ( NULL AS INTEGER ) + + 37 * 89 AS col1
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT + COUNT( ALL - + 92 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5465
SELECT + COUNT ( ALL - + 92 ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5466
SELECT DISTINCT MAX( + NULLIF ( + 24, 19 ) ) * 58 + 41 + + 17 col0, COUNT( * ) AS col1
----
1450
1

skipif mysql # not compatible
query II rowsort label-5466
SELECT DISTINCT MAX ( + NULLIF ( + 24, 19 ) ) * 58 + 41 + + 17 col0, COUNT ( * ) AS col1
----
1450
1

query I rowsort
SELECT ALL - 7 - - 99
----
92

query I rowsort
SELECT ALL - 96 * + - ( - 53 ) AS col0
----
-5088

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5469
SELECT CAST( NULL AS DECIMAL ) + COUNT( * ) * + MIN( - 38 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT CAST ( NULL AS REAL ) + COUNT ( * ) * + MIN ( - 38 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5470
SELECT 52 - - COALESCE ( + - 74, + ( + ( + - 81 ) ) DIV ( SUM( + 46 ) ) + + 72 * - COUNT( * ) * + + 90, - 62 )
----
-22

skipif mysql # not compatible
query I rowsort label-5470
SELECT 52 - - COALESCE ( + - 74, + ( + ( + - 81 ) ) / ( SUM ( + 46 ) ) + + 72 * - COUNT ( * ) * + + 90, - 62 )
----
-22

query I rowsort
SELECT 33 * + 31
----
1023

query I rowsort
SELECT 68 * + - 24 * - 43
----
70176

query I rowsort
SELECT 58 * + + 39
----
2262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT ALL + 87 * - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + 87 * - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5475
SELECT ALL - 60 + + + COALESCE ( + - 57, COALESCE ( + + 15, - COUNT( * ) + - 57 - - CAST( NULL AS SIGNED ) ) * 21 + + 38 + - ( + 4 ), + + 39 ) - + 39 * + CASE + - 18 WHEN CAST( + CASE COUNT( DISTINCT - - 7 ) WHEN 30 THEN + + CAST( NULL AS SIGNED ) WHEN 33 * COUNT( * ) THEN + 8 ELSE NULL END AS SIGNED ) + - 56 THEN NULL WHEN 7 THEN NULL ELSE CAST( + 1 AS SIGNED ) END col0
----
-156

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL - 60 + + + COALESCE ( + - 57, COALESCE ( + + 15, - COUNT ( * ) + - 57 - - CAST ( NULL AS INTEGER ) ) * 21 + + 38 + - ( + 4 ), + + 39 ) - + 39 * + CASE + - 18 WHEN CAST ( + CASE COUNT ( DISTINCT - - 7 ) WHEN 30 THEN + + CAST ( NULL AS INTEGER ) WHEN 33 * COUNT ( * ) THEN + 8 ELSE NULL END AS INTEGER ) + - 56 THEN NULL WHEN 7 THEN NULL ELSE CAST ( + 1 AS INTEGER ) END col0
----
-156

query I rowsort
SELECT ALL + 96 * + 39
----
3744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5477
SELECT CASE + - 76 WHEN + 9 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 50 * - + COALESCE ( 72, + CASE + - 26 WHEN + + 77 THEN NULL WHEN CAST( - COUNT( * ) AS SIGNED ) / 97 THEN - 42 ELSE - 99 END ) * - - CAST( NULL AS DECIMAL ) * + 25 THEN + - NULLIF ( 51, COUNT( + 44 ) ) * - 15 ELSE NULL END * 0 + - CAST( 54 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT CASE + - 76 WHEN + 9 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 50 * - + COALESCE ( 72, + CASE + - 26 WHEN + + 77 THEN NULL WHEN CAST ( - COUNT ( * ) AS INTEGER ) / 97 THEN - 42 ELSE - 99 END ) * - - CAST ( NULL AS REAL ) * + 25 THEN + - NULLIF ( 51, COUNT ( + 44 ) ) * - 15 ELSE NULL END * 0 + - CAST ( 54 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5478
SELECT COALESCE ( - 59, 13 + - COUNT( * ) ) DIV - + COUNT( * ) + 30 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5478
SELECT COALESCE ( - 59, 13 + - COUNT ( * ) ) / - + COUNT ( * ) + 30 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5479
SELECT COALESCE ( - ( 2 ), 14 - - 29 + - - MIN( ALL + + 55 ) * + 16 + + + 61 * + + 67 * CASE - CAST( NULL AS SIGNED ) WHEN + - 38 THEN NULL ELSE + CAST( NULL AS SIGNED ) * 31 END + - 25 ) * CASE - ( - 17 ) WHEN - 33 * - + COUNT( 91 ) - 7 THEN NULL WHEN - MAX( DISTINCT 42 ) THEN + 40 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT COALESCE ( - ( 2 ), 14 - - 29 + - - MIN ( ALL + + 55 ) * + 16 + + + 61 * + + 67 * CASE - CAST ( NULL AS INTEGER ) WHEN + - 38 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * 31 END + - 25 ) * CASE - ( - 17 ) WHEN - 33 * - + COUNT ( 91 ) - 7 THEN NULL WHEN - MAX ( DISTINCT 42 ) THEN + 40 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT ALL 55 + + + MAX( ALL - 7 ) * - + ( 82 ) - + + 73
----
556

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL 55 + + + MAX ( ALL - 7 ) * - + ( 82 ) - + + 73
----
556

query I rowsort
SELECT 83 + + 12 * + + 69 * - 80
----
-66157

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL - 25 + + + 94 + - 8 + + COUNT( * ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL - 25 + + + 94 + - 8 + + COUNT ( * ) AS col0
----
62

query I rowsort
SELECT + 36 + - 62 + 68
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT ALL COUNT( DISTINCT + 81 ) + - 84 + 62 * + 22 * + 86
----
117221

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL COUNT ( DISTINCT + 81 ) + - 84 + 62 * + 22 * + 86
----
117221

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT ALL - 18 + MIN( ALL ( - 64 ) ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5485
SELECT ALL - 18 + MIN ( ALL ( - 64 ) ) AS col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5486
SELECT ( - 7 ) AS col0, + COUNT( * ) DIV 62 * - 68 AS col2
----
-7
0

skipif mysql # not compatible
query II rowsort label-5486
SELECT ( - 7 ) AS col0, + COUNT ( * ) / 62 * - 68 AS col2
----
-7
0

query I rowsort
SELECT DISTINCT + 85 + + - 6 col1
----
79

query I rowsort
SELECT ALL 56 - - 55 + - 32 AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5489
SELECT COUNT( * ) * 14 AS col2, 49 + 70 AS col0
----
14
119

skipif mysql # not compatible
query II rowsort label-5489
SELECT COUNT ( * ) * 14 AS col2, 49 + 70 AS col0
----
14
119

query I rowsort
SELECT DISTINCT + 35 * + ( + + 88 ) - + 89 * + 50
----
-1370

query I rowsort
SELECT + ( + 50 ) + + - 66
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + 52 + - + 52 + + 41 + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5492
SELECT + 52 + - + 52 + + 41 + COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL + 91 - - - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL + 91 - - - COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT - COUNT( + 81 ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-5494
SELECT - COUNT ( + 81 ) * - 95
----
95

query II rowsort
SELECT ALL 5 - + + 27, - 95 AS col2
----
-22
-95

query I rowsort
SELECT - 28 + + 50
----
22

query I rowsort
SELECT 81 + 63 - + 64 AS col1
----
80

query I rowsort
SELECT - ( - 18 ) AS col0
----
18

query I rowsort
SELECT 62 + + NULLIF ( - 28, 91 + + 85 + + 15 * - 83 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5500
SELECT ALL CAST( - 67 AS SIGNED ) DIV - - ( 45 ) + - + MIN( + NULLIF ( - 32, - CAST( NULL AS SIGNED ) ) ) DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-5500
SELECT ALL CAST ( - 67 AS INTEGER ) / - - ( 45 ) + - + MIN ( + NULLIF ( - 32, - CAST ( NULL AS INTEGER ) ) ) / + 29
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5501
SELECT ( - 66 ) / + 30 + - + 47 * + 63 + AVG ( + + CASE 69 WHEN 85 * - 48 + + - 53 THEN + - 92 END ) * 24 / MIN( DISTINCT 55 ) + 5, CAST( + 76 AS SIGNED ) AS col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5501
SELECT ( - 66 ) / + 30 + - + 47 * + 63 + AVG ( + + CASE 69 WHEN 85 * - 48 + + - 53 THEN + - 92 END ) * 24 / MIN ( DISTINCT 55 ) + 5, CAST ( + 76 AS INTEGER ) AS col1
----
NULL
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT 68 DIV - - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5502
SELECT 68 / - - 75 AS col1
----
0

query I rowsort
SELECT ALL 93 * + 28 * + COALESCE ( + 43, 40 )
----
111972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5504
SELECT ALL CAST( NULL AS SIGNED ) / MAX( DISTINCT + + 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL CAST ( NULL AS INTEGER ) / MAX ( DISTINCT + + 89 )
----
NULL

query I rowsort
SELECT ALL - 1 * - 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - COUNT( * ) * - + 14 col2
----
14

skipif mysql # not compatible
query I rowsort label-5506
SELECT - COUNT ( * ) * - + 14 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT + NULLIF ( - - 6, + NULLIF ( 57, + - COUNT( * ) + + COUNT( * ) + - 19 / - 99 / + 57 ) ) col2
----
6

skipif mysql # not compatible
query I rowsort label-5507
SELECT + NULLIF ( - - 6, + NULLIF ( 57, + - COUNT ( * ) + + COUNT ( * ) + - 19 / - 99 / + 57 ) ) col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT 92 * + 90 + CASE - 59 WHEN - 41 + - 45 + + + SUM( 30 ) * 28 THEN + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT 92 * + 90 + CASE - 59 WHEN - 41 + - 45 + + + SUM ( 30 ) * 28 THEN + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT DISTINCT 72 * - + 91 + - COUNT( * )
----
-6553

skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT 72 * - + 91 + - COUNT ( * )
----
-6553

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT + 65 DIV + 92 + 33 col0
----
33

skipif mysql # not compatible
query I rowsort label-5510
SELECT + 65 / + 92 + 33 col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT - 73 + + - 22 + + 12 DIV + 67 * + 24 AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5511
SELECT - 73 + + - 22 + + 12 / + 67 * + 24 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5512
SELECT ALL 84 * + - COUNT( * ) + CAST( - 94 AS SIGNED )
----
-178

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL 84 * + - COUNT ( * ) + CAST ( - 94 AS INTEGER )
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT NULLIF ( + 1, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT NULLIF ( + 1, COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5514
SELECT DISTINCT NULLIF ( - 69, + ( CAST( NULL AS SIGNED ) ) ) * + COALESCE ( - COUNT( + 20 ), - 74, + MAX( + 89 ) ) + 88 + 36 + + 4 * - 18 * 41 * - 91 * - 24 AS col1
----
-6446975

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT NULLIF ( - 69, + ( CAST ( NULL AS INTEGER ) ) ) * + COALESCE ( - COUNT ( + 20 ), - 74, + MAX ( + 89 ) ) + 88 + 36 + + 4 * - 18 * 41 * - 91 * - 24 AS col1
----
-6446975

query II rowsort
SELECT ALL + COALESCE ( + 90, 31 + + - 41 ) AS col0, 80
----
90
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT - ( - CAST( 47 AS SIGNED ) ) * 73 * 54 * - + ( + 8 ) / + COUNT( * ) * - 73 * CASE + 19 WHEN + + 23 THEN - - ( - 19 ) + + 78 + + - 0 + + + 61 END + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT - ( - CAST ( 47 AS INTEGER ) ) * 73 * 54 * - + ( + 8 ) / + COUNT ( * ) * - 73 * CASE + 19 WHEN + + 23 THEN - - ( - 19 ) + + 78 + + - 0 + + + 61 END + - 4
----
NULL

query I rowsort
SELECT ALL ( - 86 ) * + - 32 + + 21
----
2773

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT + MAX( DISTINCT 32 ) * 51 AS col1
----
1632

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT + MAX ( DISTINCT 32 ) * 51 AS col1
----
1632

onlyif mysql # aggregate syntax: 
query II rowsort label-5519
SELECT DISTINCT + COUNT( * ) AS col2, 82 AS col1
----
1
82

skipif mysql # not compatible
query II rowsort label-5519
SELECT DISTINCT + COUNT ( * ) AS col2, 82 AS col1
----
1
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5520
SELECT ALL - COUNT( * ) * - 72 + - - NULLIF ( - + CAST( - 2 AS SIGNED ), - - 18 * + CAST( + 19 AS SIGNED ) + + 63 + 16 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL - COUNT ( * ) * - 72 + - - NULLIF ( - + CAST ( - 2 AS INTEGER ), - - 18 * + CAST ( + 19 AS INTEGER ) + + 63 + 16 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5521
SELECT ALL + 58 * - + CASE + + COUNT( * ) WHEN - + 22 + 55 THEN + 92 * + 4 WHEN 53 + + 16 - 77 THEN NULL ELSE + CASE - MIN( - 88 ) WHEN CAST( NULL AS SIGNED ) - + - 50 THEN + + 68 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL + 58 * - + CASE + + COUNT ( * ) WHEN - + 22 + 55 THEN + 92 * + 4 WHEN 53 + + 16 - 77 THEN NULL ELSE + CASE - MIN ( - 88 ) WHEN CAST ( NULL AS INTEGER ) - + - 50 THEN + + 68 END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5522
SELECT ALL + - 75 DIV + + 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL + - 75 / + + 88 col2
----
0

query I rowsort
SELECT DISTINCT 13 * - 45 * - 78 - - 71 AS col2
----
45701

query II rowsort
SELECT + - 25, - 37 + - 69 AS col0
----
-25
-106

query I rowsort
SELECT + + COALESCE ( + 77, 40 ) col0
----
77

query I rowsort
SELECT - - 76 - 30
----
46

query I rowsort
SELECT + 79 * + 48 AS col2
----
3792

query II rowsort
SELECT - + 1 * - 35 * - + 18 AS col0, 26
----
-630
26

onlyif mysql # aggregate syntax: 
query II rowsort label-5529
SELECT DISTINCT 10 col1, 77 + + - COUNT( * )
----
10
76

skipif mysql # not compatible
query II rowsort label-5529
SELECT DISTINCT 10 col1, 77 + + - COUNT ( * )
----
10
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT ALL 76 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL 76 / 85
----
0

query I rowsort
SELECT + - 60 - 62 * - - 47
----
-2974

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + MIN( DISTINCT - 78 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-5532
SELECT + MIN ( DISTINCT - 78 ) col2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT - - 74 * - COALESCE ( + 8, - + 73, - 50 DIV - 51 * + + 99 + + 1 ) + + 79 * + 50
----
3358

skipif mysql # not compatible
query I rowsort label-5533
SELECT - - 74 * - COALESCE ( + 8, - + 73, - 50 / - 51 * + + 99 + + 1 ) + + 79 * + 50
----
3358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5534
SELECT + - CAST( - 15 AS SIGNED ) * 46 + - + CAST( + + CASE 5 WHEN - - 84 THEN 57 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT + - CAST ( - 15 AS INTEGER ) * 46 + - + CAST ( + + CASE 5 WHEN - - 84 THEN 57 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5535
SELECT DISTINCT MIN( + ( + + 80 ) ) * + 74 AS col1, + SUM( 84 ) col2
----
5920
84

skipif mysql # not compatible
query II rowsort label-5535
SELECT DISTINCT MIN ( + ( + + 80 ) ) * + 74 AS col1, + SUM ( 84 ) col2
----
5920
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT ALL 52 * + 81 DIV 3
----
1404

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL 52 * + 81 / 3
----
1404

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5537
SELECT ALL + NULLIF ( + - 15, 56 ) * + CAST( NULL AS DECIMAL ) AS col0, 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-5537
SELECT ALL + NULLIF ( + - 15, 56 ) * + CAST ( NULL AS REAL ) AS col0, 56
----
NULL
56

query I rowsort
SELECT + 34 + + 18 + - 50
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT ALL SUM( - 56 ) + 15 * 42
----
574

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL SUM ( - 56 ) + 15 * 42
----
574

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL MAX( - + 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL MAX ( - + 52 ) AS col2
----
-52

query I rowsort
SELECT - 98 + + - 50 AS col1
----
-148

query I rowsort
SELECT + CASE + 34 WHEN 56 + - 80 THEN NULL WHEN 77 THEN NULL ELSE - 25 * - 52 END + 97 AS col1
----
1397

query I rowsort
SELECT + 80 - 75 col2
----
5

query I rowsort
SELECT - COALESCE ( + 20, - 3 )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-5545
SELECT + 97 DIV + 9 col1
----
10

skipif mysql # not compatible
query I rowsort label-5545
SELECT + 97 / + 9 col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5546
SELECT ALL CAST( NULL AS SIGNED ) / + 28 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL CAST ( NULL AS INTEGER ) / + 28 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( - - 65 ) AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5548
SELECT DISTINCT 36 DIV + 77 * + COUNT( * ) + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT 36 / + 77 * + COUNT ( * ) + COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT ALL 50 DIV - 17
----
-2

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL 50 / - 17
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5550
SELECT + 61 DIV - 52 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5550
SELECT + 61 / - 52 AS col0
----
-1

query I rowsort
SELECT ALL + 70 * 88 AS col1
----
6160

query I rowsort
SELECT DISTINCT + CASE - 73 WHEN 44 THEN - - 96 ELSE NULL END
----
NULL

query I rowsort
SELECT + + ( 5 ) + - 95 AS col2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT + CAST( + 42 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5554
SELECT + CAST ( + 42 AS INTEGER ) AS col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5555
SELECT ALL - 59 * - + 74 + + 90 - - ( - COALESCE ( + - 4, + COUNT( * ) * - ( CAST( NULL AS SIGNED ) ) DIV + + 22, - 13 ) )
----
4460

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL - 59 * - + 74 + + 90 - - ( - COALESCE ( + - 4, + COUNT ( * ) * - ( CAST ( NULL AS INTEGER ) ) / + + 22, - 13 ) )
----
4460

query II rowsort
SELECT + 27 * - + 63 + - NULLIF ( + 12, 50 ) AS col0, 75 col1
----
-1713
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5557
SELECT + + CAST( NULL AS SIGNED ) * - + ( - COUNT( ALL + 87 ) ) + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT + + CAST ( NULL AS INTEGER ) * - + ( - COUNT ( ALL + 87 ) ) + - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - 39 * - COUNT( * ) + - 87 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5558
SELECT - 39 * - COUNT ( * ) + - 87 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL 31 * + 33 - - COUNT( * ) AS col2
----
1024

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL 31 * + 33 - - COUNT ( * ) AS col2
----
1024

onlyif mysql # aggregate syntax: 
query II rowsort label-5560
SELECT - COUNT( * ) + + - 76 AS col0, - 96
----
-77
-96

skipif mysql # not compatible
query II rowsort label-5560
SELECT - COUNT ( * ) + + - 76 AS col0, - 96
----
-77
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5561
SELECT ALL + + MIN( - 79 ), COUNT( * ) AS col1
----
-79
1

skipif mysql # not compatible
query II rowsort label-5561
SELECT ALL + + MIN ( - 79 ), COUNT ( * ) AS col1
----
-79
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5562
SELECT - - 64 DIV - 44 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5562
SELECT - - 64 / - 44 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT - 76 * + COUNT( DISTINCT - 80 ) + - ( + 39 )
----
-115

skipif mysql # not compatible
query I rowsort label-5563
SELECT - 76 * + COUNT ( DISTINCT - 80 ) + - ( + 39 )
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL + + ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + + ( + + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5565
SELECT DISTINCT - - 6 DIV + - COUNT( * ) + + 88 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT - - 6 / + - COUNT ( * ) + + 88 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT - - 20 * - COUNT( * ) * + 35 AS col0
----
-700

skipif mysql # not compatible
query I rowsort label-5566
SELECT - - 20 * - COUNT ( * ) * + 35 AS col0
----
-700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5567
SELECT 14 * + - 33 + - 85 * - + CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) / + NULLIF ( 87, + 60 ) * - 64 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5567
SELECT 14 * + - 33 + - 85 * - + CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) / + NULLIF ( 87, + 60 ) * - 64 AS col1
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT - 10 DIV + 92 * + - 88 DIV - - 74 + + 56 + - 42 - 95 * + + 62
----
-5876

skipif mysql # not compatible
query I rowsort label-5568
SELECT - 10 / + 92 * + - 88 / - - 74 + + 56 + - 42 - 95 * + + 62
----
-5876

query I rowsort
SELECT - - ( + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT - + COALESCE ( - + 63, - 28 ) + + COUNT( * ) * - 19 + - 38 col1
----
6

skipif mysql # not compatible
query I rowsort label-5570
SELECT - + COALESCE ( - + 63, - 28 ) + + COUNT ( * ) * - 19 + - 38 col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5571
SELECT ALL + NULLIF ( 17, + - 84 ) * + 7 + + 48, + 39 * + + 2 * + SUM( ( - 91 ) ) + - + 86 + MAX( ALL - 77 ) col2
----
167
-7261

skipif mysql # not compatible
query II rowsort label-5571
SELECT ALL + NULLIF ( 17, + - 84 ) * + 7 + + 48, + 39 * + + 2 * + SUM ( ( - 91 ) ) + - + 86 + MAX ( ALL - 77 ) col2
----
167
-7261

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL - - 63 * COUNT( * ) * + 23 col1
----
1449

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - - 63 * COUNT ( * ) * + 23 col1
----
1449

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT DISTINCT + + 1 * - COUNT( 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT + + 1 * - COUNT ( 6 )
----
-1

query I rowsort
SELECT DISTINCT - 55 + 88 AS col2
----
33

query I rowsort
SELECT DISTINCT 4 + - 89 AS col1
----
-85

query I rowsort
SELECT ALL - 73 + + - 62 - - 87 * + - COALESCE ( + 22, + 10 + - + 70 )
----
-2049

query I rowsort
SELECT ALL 39 + - 93
----
-54

query I rowsort
SELECT DISTINCT - 55 + + 44
----
-11

query II rowsort
SELECT 30, - 26 col1
----
30
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5580
SELECT 73 + - 28 + + + 64 + 65 DIV - + 4 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5580
SELECT 73 + - 28 + + + 64 + 65 / - + 4 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT - 92 + COUNT( - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT - 92 + COUNT ( - 91 ) AS col1
----
-91

query I rowsort
SELECT DISTINCT 97 * + - ( 70 ) AS col0
----
-6790

query I rowsort
SELECT DISTINCT - 83 * 97
----
-8051

query I rowsort
SELECT 86 * - 54
----
-4644

query I rowsort
SELECT ALL + 11 - 8
----
3

query II rowsort
SELECT ALL - 73, 11 AS col1
----
-73
11

query I rowsort
SELECT NULLIF ( + 90, + + 21 + - 67 + + + NULLIF ( + 5, + 14 ) ) + + ( + 67 )
----
157

query I rowsort
SELECT 11 * + 23
----
253

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5589
SELECT 66 * + COUNT( * ) + 17 + + 96 DIV + + 61 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5589
SELECT 66 * + COUNT ( * ) + 17 + + 96 / + + 61 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT ALL - + MIN( - COALESCE ( - 90, + - 51 ) ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL - + MIN ( - COALESCE ( - 90, + - 51 ) ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT DISTINCT - CASE + MIN( ALL + 84 ) WHEN 35 + + 28 - - 26 THEN + 17 ELSE + 64 END
----
-64

skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT - CASE + MIN ( ALL + 84 ) WHEN 35 + + 28 - - 26 THEN + 17 ELSE + 64 END
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT - 83 * - 28 * - COUNT( * ) * - - COUNT( * )
----
-2324

skipif mysql # not compatible
query I rowsort label-5592
SELECT - 83 * - 28 * - COUNT ( * ) * - - COUNT ( * )
----
-2324

query I rowsort
SELECT 85 * + - 13 * - 71
----
78455

query I rowsort
SELECT CASE + + 96 WHEN + - 89 THEN 10 + ( + 29 ) WHEN - 9 THEN NULL WHEN + + 43 THEN NULL WHEN - 6 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 48 * - 45 AS col2
----
-2160

query I rowsort
SELECT ALL - 73 * - - 36
----
-2628

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT DISTINCT - COUNT( * ) AS col0, - 13 * + 96 * 76
----
-1
-94848

skipif mysql # not compatible
query II rowsort label-5597
SELECT DISTINCT - COUNT ( * ) AS col0, - 13 * + 96 * 76
----
-1
-94848

query II rowsort
SELECT + 39 AS col0, - 71 AS col2
----
39
-71

query I rowsort
SELECT ALL - 80 * - 92 + + + 19
----
7379

query I rowsort
SELECT 33 * + - 41 AS col2
----
-1353

query I rowsort
SELECT - 8 - - 21
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5602
SELECT + - CASE 66 WHEN - 41 - + 43 THEN NULL WHEN - - 4 THEN - - ( + NULLIF ( + - 26, - 46 DIV + - 54 + + CAST( CASE WHEN 3 IS NOT NULL THEN + 97 ELSE - 0 END AS SIGNED ) ) ) * + 60 - 21 - - + AVG ( + 54 ) DIV MIN( DISTINCT + 59 ) + + - COALESCE ( + 82, + - 42 + + 41 * 71 ) * 93 ELSE + 67 + MAX( 40 ) END AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-5602
SELECT + - CASE 66 WHEN - 41 - + 43 THEN NULL WHEN - - 4 THEN - - ( + NULLIF ( + - 26, - 46 / + - 54 + + CAST ( CASE WHEN 3 IS NOT NULL THEN + 97 ELSE - 0 END AS INTEGER ) ) ) * + 60 - 21 - - + AVG ( + 54 ) / MIN ( DISTINCT + 59 ) + + - COALESCE ( + 82, + - 42 + + 41 * 71 ) * 93 ELSE + 67 + MAX ( 40 ) END AS col0
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL - SUM( ALL - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL - SUM ( ALL - 67 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT DISTINCT + 61 + - 34 - - 35 DIV + - 69 col0
----
27

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT + 61 + - 34 - - 35 / + - 69 col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT ALL - - CAST( NULL AS SIGNED ) * + CAST( - COUNT( * ) AS SIGNED ) * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - - CAST ( NULL AS INTEGER ) * + CAST ( - COUNT ( * ) AS INTEGER ) * - 97
----
NULL

query I rowsort
SELECT DISTINCT 13 + + 27 AS col2
----
40

query I rowsort
SELECT DISTINCT - 80 + + 18
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5608
SELECT DISTINCT + 96 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT + 96 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 77 - 60 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5610
SELECT ALL - 69 * NULLIF ( + + 46, - + CAST( + - 3 AS DECIMAL ) + - COUNT( DISTINCT + 2 ) ) AS col1
----
-3174

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL - 69 * NULLIF ( + + 46, - + CAST ( + - 3 AS REAL ) + - COUNT ( DISTINCT + 2 ) ) AS col1
----
-3174

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5611
SELECT CAST( - CASE - 29 WHEN - 34 / - 29 * - 73 THEN - 0 WHEN - + 26 + + 55 THEN - COUNT( * ) * - - 50 - 27 * + 26 + - ( - - 83 ) + - 8 + + 94 WHEN 92 / - - 57 + + - 41 + + 65 THEN + + 66 * - 33 END AS DECIMAL ) + + + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT CAST ( - CASE - 29 WHEN - 34 / - 29 * - 73 THEN - 0 WHEN - + 26 + + 55 THEN - COUNT ( * ) * - - 50 - 27 * + 26 + - ( - - 83 ) + - 8 + + 94 WHEN 92 / - - 57 + + - 41 + + 65 THEN + + 66 * - 33 END AS REAL ) + + + 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5612
SELECT - 87 AS col0, COUNT( * ) * - - ( 29 ) AS col2
----
-87
29

skipif mysql # not compatible
query II rowsort label-5612
SELECT - 87 AS col0, COUNT ( * ) * - - ( 29 ) AS col2
----
-87
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5613
SELECT - 89 col1, SUM( + 17 ) + - 32 AS col1
----
-89
-15

skipif mysql # not compatible
query II rowsort label-5613
SELECT - 89 col1, SUM ( + 17 ) + - 32 AS col1
----
-89
-15

query II rowsort
SELECT 35 col1, - 59
----
35
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5615
SELECT ALL - 42 + + - COUNT( * ) + - COUNT( * ) * COALESCE ( ( + ( - 99 ) ), - 7 DIV - - COUNT( - 1 ) + + - 2 )
----
56

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - 42 + + - COUNT ( * ) + - COUNT ( * ) * COALESCE ( ( + ( - 99 ) ), - 7 / - - COUNT ( - 1 ) + + - 2 )
----
56

query I rowsort
SELECT 3 * + - 70
----
-210

query I rowsort
SELECT ALL + 79 - - 23
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT 77 + - 84 + + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-5618
SELECT 77 + - 84 + + COUNT ( * )
----
-6

query I rowsort
SELECT DISTINCT - 97 * - 7
----
679

onlyif mysql # DIV for integer division: 
query II rowsort label-5620
SELECT ALL + 6 DIV + + 59 AS col2, + 65
----
0
65

skipif mysql # not compatible
query II rowsort label-5620
SELECT ALL + 6 / + + 59 AS col2, + 65
----
0
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5621
SELECT DISTINCT COUNT( - 33 ) DIV NULLIF ( - COUNT( * ), - + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT COUNT ( - 33 ) / NULLIF ( - COUNT ( * ), - + 43 )
----
-1

query II rowsort
SELECT - 63 col2, 83
----
-63
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL MIN( ALL - - 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL MIN ( ALL - - 13 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5624
SELECT DISTINCT COUNT( * ) AS col2, 95 * - 89 AS col0
----
1
-8455

skipif mysql # not compatible
query II rowsort label-5624
SELECT DISTINCT COUNT ( * ) AS col2, 95 * - 89 AS col0
----
1
-8455

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5625
SELECT 21 + - COALESCE ( 26, - - 7 ) - + 89 DIV ( - 15 ) * 48 + - + 35 + + 54 * - 26 + + 37 col0, - COUNT( * ) * COALESCE ( ( - + 6 ), 79 ) AS col1
----
-1167
6

skipif mysql # not compatible
query II rowsort label-5625
SELECT 21 + - COALESCE ( 26, - - 7 ) - + 89 / ( - 15 ) * 48 + - + 35 + + 54 * - 26 + + 37 col0, - COUNT ( * ) * COALESCE ( ( - + 6 ), 79 ) AS col1
----
-1167
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5626
SELECT 92 * - - COALESCE ( 55, COUNT( * ) * - 64 * - 12, CASE - 52 WHEN + + 74 * - + 47 DIV - 8 + + + 87 THEN + 6 WHEN + - ( - 4 ) + COUNT( * ) THEN NULL ELSE 99 DIV + 5 END + - - CAST( - - 71 AS SIGNED ) ) * + 8 col2
----
40480

skipif mysql # not compatible
query I rowsort label-5626
SELECT 92 * - - COALESCE ( 55, COUNT ( * ) * - 64 * - 12, CASE - 52 WHEN + + 74 * - + 47 / - 8 + + + 87 THEN + 6 WHEN + - ( - 4 ) + COUNT ( * ) THEN NULL ELSE 99 / + 5 END + - - CAST ( - - 71 AS INTEGER ) ) * + 8 col2
----
40480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5627
SELECT ALL - 63 AS col1, - SUM( ALL + 84 ) * - + 21 + + + 37 * + 50 + + CASE - - 69 WHEN - CASE + CASE - - 95 WHEN + 42 * + 39 + COUNT( * ) / - 42 + 34 + ( - - 92 ) THEN NULL ELSE - - 82 END WHEN - ( + 70 ) THEN NULL ELSE 3 * ( - 22 ) + - 19 + + ( - 55 ) END + - ( + 23 ) THEN 69 ELSE + ( - CAST( 7 AS SIGNED ) ) * - ( - MAX( - 93 ) * COALESCE ( - 20 * - 25, 37 * NULLIF ( + 37, - AVG ( ALL 40 ) / AVG ( 25 ) ) ) ) + + 73 END * 84 AS col2
----
-63
27351746

skipif mysql # not compatible
query II rowsort label-5627
SELECT ALL - 63 AS col1, - SUM ( ALL + 84 ) * - + 21 + + + 37 * + 50 + + CASE - - 69 WHEN - CASE + CASE - - 95 WHEN + 42 * + 39 + COUNT ( * ) / - 42 + 34 + ( - - 92 ) THEN NULL ELSE - - 82 END WHEN - ( + 70 ) THEN NULL ELSE 3 * ( - 22 ) + - 19 + + ( - 55 ) END + - ( + 23 ) THEN 69 ELSE + ( - CAST ( 7 AS INTEGER ) ) * - ( - MAX ( - 93 ) * COALESCE ( - 20 * - 25, 37 * NULLIF ( + 37, - AVG ( ALL 40 ) / AVG ( 25 ) ) ) ) + + 73 END * 84 AS col2
----
-63
27351746

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT ALL - CAST( - 52 AS SIGNED ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL - CAST ( - 52 AS INTEGER ) AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT - ( - 71 ) / 79 * + AVG ( + CASE + - 35 WHEN COALESCE ( + + 85, 60 * - 76 + + CAST( NULL AS SIGNED ) + + NULLIF ( + + 83, - 50 ) ) THEN 65 WHEN + + 79 THEN ( - + 81 ) ELSE NULL END ) - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT - ( - 71 ) / 79 * + AVG ( + CASE + - 35 WHEN COALESCE ( + + 85, 60 * - 76 + + CAST ( NULL AS INTEGER ) + + NULLIF ( + + 83, - 50 ) ) THEN 65 WHEN + + 79 THEN ( - + 81 ) ELSE NULL END ) - + 24
----
NULL

query II rowsort
SELECT 46, 32 AS col0
----
46
32

query I rowsort
SELECT ALL + 19 * - + 16 AS col0
----
-304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT + ( - - 96 ) * + 13 * + - 55 * - CAST( NULL AS SIGNED ) * - - 88 + + NULLIF ( + - NULLIF ( - NULLIF ( + 10, + + 41 ), - - 58 ), CAST( NULL AS SIGNED ) + + 15 * - ( - 0 ) ) * + 31 * - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT + ( - - 96 ) * + 13 * + - 55 * - CAST ( NULL AS INTEGER ) * - - 88 + + NULLIF ( + - NULLIF ( - NULLIF ( + 10, + + 41 ), - - 58 ), CAST ( NULL AS INTEGER ) + + 15 * - ( - 0 ) ) * + 31 * - 49 AS col1
----
NULL

query I rowsort
SELECT ALL - - 64 * - 86
----
-5504

query II rowsort
SELECT ALL - 89, 98 AS col2
----
-89
98

query I rowsort
SELECT DISTINCT - + ( - 16 ) * + + 78 + - - 53
----
1301

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ( + - COUNT( * ) ) * + 78 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5636
SELECT ( + - COUNT ( * ) ) * + 78 AS col0
----
-78

query I rowsort
SELECT - ( + 33 ) + ( - + 37 ) + - 48 AS col1
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5638
SELECT 47 * + 28 + - - CASE 40 WHEN 91 + + 84 * COALESCE ( COUNT( * ), 85 ) * + 71 * NULLIF ( + COUNT( CAST( NULL AS SIGNED ) ), + 58 ) / - 84 + 71 THEN + CAST( NULL AS SIGNED ) / + 85 + 7 * - ( 83 ) ELSE NULL END + + 17 * 47 - COUNT( * ) * CAST( - 60 AS SIGNED ) * - 4 - COUNT( * ) * 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT 47 * + 28 + - - CASE 40 WHEN 91 + + 84 * COALESCE ( COUNT ( * ), 85 ) * + 71 * NULLIF ( + COUNT ( CAST ( NULL AS INTEGER ) ), + 58 ) / - 84 + 71 THEN + CAST ( NULL AS INTEGER ) / + 85 + 7 * - ( 83 ) ELSE NULL END + + 17 * 47 - COUNT ( * ) * CAST ( - 60 AS INTEGER ) * - 4 - COUNT ( * ) * 80 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5639
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN + MIN( ALL + CAST( - CASE + 48 WHEN + + 37 THEN NULL ELSE 98 END AS SIGNED ) ) THEN NULL ELSE 95 + + - COUNT( * ) END * - ( + SUM( ALL - - 57 ) ) + - ( - - COUNT( * ) ) + + ( - 98 ) DIV + + CASE - 68 WHEN - 97 THEN NULL WHEN 60 THEN - + AVG ( 69 ) + - - CAST( NULL AS SIGNED ) + - 64 + + 68 * + 22 DIV + 28 ELSE 27 + 51 END * + COUNT( * )
----
5356

skipif mysql # not compatible
query I rowsort label-5639
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN + MIN ( ALL + CAST ( - CASE + 48 WHEN + + 37 THEN NULL ELSE 98 END AS INTEGER ) ) THEN NULL ELSE 95 + + - COUNT ( * ) END * - ( + SUM ( ALL - - 57 ) ) + - ( - - COUNT ( * ) ) + + ( - 98 ) / + + CASE - 68 WHEN - 97 THEN NULL WHEN 60 THEN - + AVG ( 69 ) + - - CAST ( NULL AS INTEGER ) + - 64 + + 68 * + 22 / + 28 ELSE 27 + 51 END * + COUNT ( * )
----
5356

query II rowsort
SELECT 63 AS col1, - 60 + - - 62 AS col2
----
63
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5641
SELECT COUNT( 34 ) DIV + - 27 col1
----
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT COUNT ( 34 ) / + - 27 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT ALL + CAST( NULL AS SIGNED ) * - 31 * + + 72 / + 85 + - + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL + CAST ( NULL AS INTEGER ) * - 31 * + + 72 / + 85 + - + 51 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT COUNT( * ) * - + 69 * + 65 col0
----
-4485

skipif mysql # not compatible
query I rowsort label-5643
SELECT COUNT ( * ) * - + 69 * + 65 col0
----
-4485

query I rowsort
SELECT - 92 * - 39 + + - 94 AS col0
----
3494

query I rowsort
SELECT ALL - 43 + + + 98
----
55

query I rowsort
SELECT + - 37 + + 67
----
30

query I rowsort
SELECT ALL 72 + - 74 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5648
SELECT + 31 * - 50 + - + 11 AS col0, - 39 + + - 83 - + - 54 / COUNT( ALL - + 37 ) - CAST( NULL AS SIGNED ) - + 44 * - 25
----
-1561
NULL

skipif mysql # not compatible
query II rowsort label-5648
SELECT + 31 * - 50 + - + 11 AS col0, - 39 + + - 83 - + - 54 / COUNT ( ALL - + 37 ) - CAST ( NULL AS INTEGER ) - + 44 * - 25
----
-1561
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT - MIN( + - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-5649
SELECT - MIN ( + - 93 )
----
93

query II rowsort
SELECT DISTINCT 28 + 81 AS col2, 90 AS col0
----
109
90

query I rowsort
SELECT ALL 63 - - 55
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT - CASE + MIN( DISTINCT - COALESCE ( + + 45, 10 ) ) WHEN ( + + AVG ( 40 ) ) THEN NULL WHEN - AVG ( DISTINCT + 43 ) THEN 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5652
SELECT - CASE + MIN ( DISTINCT - COALESCE ( + + 45, 10 ) ) WHEN ( + + AVG ( 40 ) ) THEN NULL WHEN - AVG ( DISTINCT + 43 ) THEN 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT + COUNT( * ) * 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5653
SELECT + COUNT ( * ) * 98 AS col1
----
98

query I rowsort
SELECT ALL 27 - - + ( + 12 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT DISTINCT - COALESCE ( - 40, - - 25 * + - 89 * + COALESCE ( + 75, + + 55, 52 ) + + 47 ) * + - CASE MAX( - 79 ) WHEN - + 29 THEN NULL WHEN - - COUNT( * ) THEN NULL WHEN 99 * 43 - + - 76 * - + 23 * + + 42 * NULLIF ( 22, + + ( - - CASE - + 34 WHEN - - COUNT( * ) THEN - 95 / - 65 END ) ) THEN - 85 END + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT - COALESCE ( - 40, - - 25 * + - 89 * + COALESCE ( + 75, + + 55, 52 ) + + 47 ) * + - CASE MAX ( - 79 ) WHEN - + 29 THEN NULL WHEN - - COUNT ( * ) THEN NULL WHEN 99 * 43 - + - 76 * - + 23 * + + 42 * NULLIF ( 22, + + ( - - CASE - + 34 WHEN - - COUNT ( * ) THEN - 95 / - 65 END ) ) THEN - 85 END + 12
----
NULL

query I rowsort
SELECT ALL + 11 - - 18 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT - 15 * - + 79 * COUNT( * ) * - 63 AS col0
----
-74655

skipif mysql # not compatible
query I rowsort label-5657
SELECT - 15 * - + 79 * COUNT ( * ) * - 63 AS col0
----
-74655

query I rowsort
SELECT - 8 + - 39 - 77 + + 71 AS col1
----
-53

query I rowsort
SELECT - 85 * 37
----
-3145

query II rowsort
SELECT ALL + ( - 35 ) * + - 75 AS col1, 54 AS col2
----
2625
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT DISTINCT COUNT( * ) * + 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT COUNT ( * ) * + 10 AS col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5662
SELECT - 74 + + 36 AS col0, + COUNT( * )
----
-38
1

skipif mysql # not compatible
query II rowsort label-5662
SELECT - 74 + + 36 AS col0, + COUNT ( * )
----
-38
1

query II rowsort
SELECT ALL + NULLIF ( 26, + 50 ) * 94 * 74, + 59 AS col2
----
180856
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5664
SELECT ALL + 98 DIV + + NULLIF ( 97, + MAX( ALL - 83 ) * - COUNT( * ) * - + 92 - - 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL + 98 / + + NULLIF ( 97, + MAX ( ALL - 83 ) * - COUNT ( * ) * - + 92 - - 1 ) AS col1
----
1

query I rowsort
SELECT - 40 * - 71 - - 77
----
2917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5666
SELECT 2 * 39 * + COUNT( * ) * + - 89 + + + 19 + - 79 * + 42 - - 86 DIV - 32 + + COUNT( * ) + + - 3 AS col2
----
-10245

skipif mysql # not compatible
query I rowsort label-5666
SELECT 2 * 39 * + COUNT ( * ) * + - 89 + + + 19 + - 79 * + 42 - - 86 / - 32 + + COUNT ( * ) + + - 3 AS col2
----
-10245

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5667
SELECT ALL + 59 * - 54 + CASE CAST( NULL AS DECIMAL ) WHEN - 40 * + ( - + 33 ) * + 86 + - 95 * - + 80 * + - 78 * + 96 THEN - COUNT( * ) WHEN - 58 + 53 * - 68 THEN NULL WHEN - 10 THEN NULL END + ( - 53 ) + - - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + 59 * - 54 + CASE CAST ( NULL AS REAL ) WHEN - 40 * + ( - + 33 ) * + 86 + - 95 * - + 80 * + - 78 * + 96 THEN - COUNT ( * ) WHEN - 58 + 53 * - 68 THEN NULL WHEN - 10 THEN NULL END + ( - 53 ) + - - 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5668
SELECT DISTINCT + 2 * + + 46 * + 76 - + - MAX( DISTINCT - - 87 ) - - SUM( + + 15 ) * - + 14 + + 3
----
6872

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + 2 * + + 46 * + 76 - + - MAX ( DISTINCT - - 87 ) - - SUM ( + + 15 ) * - + 14 + + 3
----
6872

query I rowsort
SELECT + + 75 * - + 95 AS col0
----
-7125

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT DISTINCT + + ( - 22 ) * - NULLIF ( - COUNT( * ), - COUNT( * ) + - 71 ) * COUNT( DISTINCT - ( - 35 ) )
----
-22

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT + + ( - 22 ) * - NULLIF ( - COUNT ( * ), - COUNT ( * ) + - 71 ) * COUNT ( DISTINCT - ( - 35 ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5671
SELECT + - COUNT( - 9 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5671
SELECT + - COUNT ( - 9 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5672
SELECT + + 25 DIV + 7 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5672
SELECT + + 25 / + 7 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ALL COUNT( ALL - 32 ) * 5 - - 13 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL COUNT ( ALL - 32 ) * 5 - - 13 AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT - 69 - + 10 * - COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5674
SELECT - 69 - + 10 * - COUNT ( * ) AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT DISTINCT 86 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT 86 / 45
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5676
SELECT DISTINCT MAX( - 58 ) * + + 65 AS col1, 15 + 74 AS col1
----
-3770
89

skipif mysql # not compatible
query II rowsort label-5676
SELECT DISTINCT MAX ( - 58 ) * + + 65 AS col1, 15 + 74 AS col1
----
-3770
89

query II rowsort
SELECT ALL 49, - 69 col2
----
49
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT + NULLIF ( + COUNT( * ), + 54 ) * + MAX( 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5678
SELECT + NULLIF ( + COUNT ( * ), + 54 ) * + MAX ( 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT MIN( - 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5679
SELECT MIN ( - 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT DISTINCT COUNT( * ) * 48
----
48

skipif mysql # not compatible
query I rowsort label-5680
SELECT DISTINCT COUNT ( * ) * 48
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5681
SELECT ALL SUM( - - ( + - 97 ) ) AS col0, 36 col0
----
-97
36

skipif mysql # not compatible
query II rowsort label-5681
SELECT ALL SUM ( - - ( + - 97 ) ) AS col0, 36 col0
----
-97
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT ALL SUM( ALL - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL SUM ( ALL - 32 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT DISTINCT + 89 + + ( - 39 ) DIV + - 98 + + - 15 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT + 89 + + ( - 39 ) / + - 98 + + - 15 AS col2
----
74

query I rowsort
SELECT + 8 + 15 AS col2
----
23

query I rowsort
SELECT + 25 * - 83 * 56 AS col1
----
-116200

query I rowsort
SELECT ALL + + 88 + + 81 + NULLIF ( - 52, 43 ) AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT + - 11 + - MAX( ALL - 22 ) + + + 88 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5687
SELECT + - 11 + - MAX ( ALL - 22 ) + + + 88 AS col2
----
99

query I rowsort
SELECT - ( - ( + + 29 ) )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5689
SELECT + + 36 DIV + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5689
SELECT + + 36 / + 41 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT ALL - CAST( + CAST( - - 14 AS SIGNED ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-5690
SELECT ALL - CAST ( + CAST ( - - 14 AS INTEGER ) AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT + NULLIF ( COUNT( * ), + 53 * + 83 + + 20 + - + 82 / + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-5691
SELECT + NULLIF ( COUNT ( * ), + 53 * + 83 + + 20 + - + 82 / + 17 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5692
SELECT 45 DIV + 23 + + MAX( 27 ) DIV - 84 - - + 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5692
SELECT 45 / + 23 + + MAX ( 27 ) / - 84 - - + 25 AS col1
----
26

query I rowsort
SELECT DISTINCT + 23 + - 51
----
-28

query I rowsort
SELECT ALL 44 + + + 87 AS col1
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL + - 9 + - COUNT( - 81 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + - 9 + - COUNT ( - 81 ) AS col0
----
-10

query I rowsort
SELECT ALL - 9 - - - 62 col0
----
-71

query I rowsort
SELECT 4 * 30 + 63 - + 22 + 93 - - + 27 AS col0
----
281

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL - + MIN( 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL - + MIN ( 26 ) AS col1
----
-26

query I rowsort
SELECT + 25 * - 57 + + 35 - - - 9 * - 63
----
-823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5700
SELECT + COALESCE ( 0, + - COUNT( * ) + - 11 ) * + ( 96 ) DIV - 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5700
SELECT + COALESCE ( 0, + - COUNT ( * ) + - 11 ) * + ( 96 ) / - 61 AS col1
----
0

query I rowsort
SELECT 88 + 38 AS col1
----
126

query I rowsort
SELECT ALL - 49 - + - ( + 65 ) AS col2
----
16

query II rowsort
SELECT ALL - + 11 AS col2, - 0 + + 98 AS col1
----
-11
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5704
SELECT + CAST( - ( SUM( - ( - + 22 ) ) ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-5704
SELECT + CAST ( - ( SUM ( - ( - + 22 ) ) ) AS INTEGER )
----
-22

query I rowsort
SELECT + 23 * - 62 + - + 98 col0
----
-1524

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT COUNT( * ) * + - 62 * + - 5 col0
----
310

skipif mysql # not compatible
query I rowsort label-5706
SELECT COUNT ( * ) * + - 62 * + - 5 col0
----
310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT ALL - 10 - - 57 + - 40 + 37 + 51 - + 20 + - + 68 + - + CAST( NULL AS SIGNED ) + 63 / + 21 * - 84 * - - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL - 10 - - 57 + - 40 + 37 + 51 - + 20 + - + 68 + - + CAST ( NULL AS INTEGER ) + 63 / + 21 * - 84 * - - 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL + 20 * + COALESCE ( MIN( ALL 53 ), - 24 )
----
1060

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL + 20 * + COALESCE ( MIN ( ALL 53 ), - 24 )
----
1060

query I rowsort
SELECT 86 + - 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT ALL NULLIF ( + 56, + + 17 ) * + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL NULLIF ( + 56, + + 17 ) * + COUNT ( * )
----
56

query II rowsort
SELECT DISTINCT + 38 * - - 69 col0, 40
----
2622
40

query I rowsort
SELECT 83 * - 93 AS col0
----
-7719

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT COUNT( * ) + + 24 + - ( + 51 ) * - + 22 * - 38 * + 65 - 7 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT COUNT ( * ) + + 24 + - ( + 51 ) * - + 22 * - 38 * + 65 - 7 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 31 + - 74 AS col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5715
SELECT ALL 67 / - - CAST( - COUNT( * ) AS SIGNED ) * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL 67 / - - CAST ( - COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL NULLIF ( - + 66, - 74 * + + CASE 97 WHEN + COUNT( * ) THEN 45 WHEN + 24 THEN NULL END + + + 36 + AVG ( + 65 ) ) + + 34 AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL NULLIF ( - + 66, - 74 * + + CASE 97 WHEN + COUNT ( * ) THEN 45 WHEN + 24 THEN NULL END + + + 36 + AVG ( + 65 ) ) + + 34 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT 21 * COUNT( 80 ) col2
----
21

skipif mysql # not compatible
query I rowsort label-5717
SELECT 21 * COUNT ( 80 ) col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT ALL - 76 + - - COUNT( + ( + - 15 ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-5718
SELECT ALL - 76 + - - COUNT ( + ( + - 15 ) ) AS col1
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5719
SELECT ALL 96 + CAST( NULL AS DECIMAL ) + + ( - ( - - 44 ) ) * 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL 96 + CAST ( NULL AS REAL ) + + ( - ( - - 44 ) ) * 32 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5720
SELECT + 83 * + - COUNT( DISTINCT 47 ) + - 31 + 49 * CASE - 71 WHEN - CAST( + + 55 AS SIGNED ) THEN 72 * + CAST( + - 31 AS SIGNED ) + + 75 END * ( + - 83 ) + - - 3 / + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT + 83 * + - COUNT ( DISTINCT 47 ) + - 31 + 49 * CASE - 71 WHEN - CAST ( + + 55 AS INTEGER ) THEN 72 * + CAST ( + - 31 AS INTEGER ) + + 75 END * ( + - 83 ) + - - 3 / + 49
----
NULL

query I rowsort
SELECT DISTINCT 62 + - + 63 - + - 51 AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5722
SELECT + 58 + + + 64 - + 56 DIV - 13
----
126

skipif mysql # not compatible
query I rowsort label-5722
SELECT + 58 + + + 64 - + 56 / - 13
----
126

query I rowsort
SELECT DISTINCT + 94 + 30
----
124

query I rowsort
SELECT ALL 32 * 15
----
480

query I rowsort
SELECT ALL COALESCE ( 20, + 53 )
----
20

query I rowsort
SELECT NULLIF ( - 81, - ( + - 10 ) ) * - 54 + - - 17
----
4391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5727
SELECT + - CAST( - 37 AS SIGNED ) * + AVG ( - 55 ) + + 84 + - 71 - - ( + + 84 ) - + + 48 + AVG ( ALL + 43 ) + - ( - 85 ) + + 72 * + + 73 / - - 98 * - CASE + 58 WHEN - 87 THEN - + SUM( ALL + 43 ) + + 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5727
SELECT + - CAST ( - 37 AS INTEGER ) * + AVG ( - 55 ) + + 84 + - 71 - - ( + + 84 ) - + + 48 + AVG ( ALL + 43 ) + - ( - 85 ) + + 72 * + + 73 / - - 98 * - CASE + 58 WHEN - 87 THEN - + SUM ( ALL + 43 ) + + 85 END AS col1
----
NULL

query I rowsort
SELECT ALL 96 * 28
----
2688

query I rowsort
SELECT - 65 * + NULLIF ( 66, + + 64 ) col2
----
-4290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5730
SELECT 9 DIV + 67 - - ( + 96 ) * NULLIF ( - 95, + + ( - SUM( DISTINCT + - 23 ) ) ) + 35 + - - ( - 6 ) + 57
----
-9034

skipif mysql # not compatible
query I rowsort label-5730
SELECT 9 / + 67 - - ( + 96 ) * NULLIF ( - 95, + + ( - SUM ( DISTINCT + - 23 ) ) ) + 35 + - - ( - 6 ) + 57
----
-9034

query I rowsort
SELECT DISTINCT - + 77 * + 53 AS col0
----
-4081

query I rowsort
SELECT DISTINCT - - 23 AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5733
SELECT ALL 10 * + ( + 49 ) * - 21 * - - 3 + + ( 48 ) DIV - COUNT( * ) AS col1, 39
----
-30918
39

skipif mysql # not compatible
query II rowsort label-5733
SELECT ALL 10 * + ( + 49 ) * - 21 * - - 3 + + ( 48 ) / - COUNT ( * ) AS col1, 39
----
-30918
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5734
SELECT 86 * COUNT( * ) * - CASE ( - 89 ) WHEN - 7 + - - CAST( NULL AS SIGNED ) + - NULLIF ( 50, + 27 ) THEN NULL WHEN + 27 + - 16 THEN - 76 * ( 86 ) - - 69 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5734
SELECT 86 * COUNT ( * ) * - CASE ( - 89 ) WHEN - 7 + - - CAST ( NULL AS INTEGER ) + - NULLIF ( 50, + 27 ) THEN NULL WHEN + 27 + - 16 THEN - 76 * ( 86 ) - - 69 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT 5 DIV - - 32
----
0

skipif mysql # not compatible
query I rowsort label-5735
SELECT 5 / - - 32
----
0

query I rowsort
SELECT ALL - ( - 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT DISTINCT - MAX( DISTINCT + 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT - MAX ( DISTINCT + 64 ) AS col0
----
-64

query I rowsort
SELECT 2 - 77
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL - SUM( - 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL - SUM ( - 14 ) AS col2
----
14

query I rowsort
SELECT ALL - 89 + - 29
----
-118

query I rowsort
SELECT 11 - + 10
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT DISTINCT - COUNT( ALL 59 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5742
SELECT DISTINCT - COUNT ( ALL 59 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5743
SELECT ALL COUNT( - + ( - 96 ) ) AS col2, ( + + 42 ) * + + 44 + + + 17
----
1
1865

skipif mysql # not compatible
query II rowsort label-5743
SELECT ALL COUNT ( - + ( - 96 ) ) AS col2, ( + + 42 ) * + + 44 + + + 17
----
1
1865

query I rowsort
SELECT 30 * - + 88 AS col2
----
-2640

query I rowsort
SELECT ALL - ( + 39 ) + - COALESCE ( 63, 44 ) + - 98 col2
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT ALL + COALESCE ( + 19, + 70, - 95 ) + - + COUNT( * ) - + 22 * + - 86 AS col1
----
1910

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL + COALESCE ( + 19, + 70, - 95 ) + - + COUNT ( * ) - + 22 * + - 86 AS col1
----
1910

query II rowsort
SELECT 11 + + 36 * - 72 AS col2, - 53 AS col1
----
-2581
-53

query II rowsort
SELECT - 72, 16 AS col2
----
-72
16

onlyif mysql # DIV for integer division: 
query II rowsort label-5749
SELECT + 80, 7 DIV - 33 + + + 68 AS col1
----
80
68

skipif mysql # not compatible
query II rowsort label-5749
SELECT + 80, 7 / - 33 + + + 68 AS col1
----
80
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL + ( MIN( - 36 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL + ( MIN ( - 36 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT ALL 77 - - + 97 + - COUNT( * ) + + 38 + - ( - 96 ) * + - MIN( ALL - 34 ) - + 22
----
3453

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL 77 - - + 97 + - COUNT ( * ) + + 38 + - ( - 96 ) * + - MIN ( ALL - 34 ) - + 22
----
3453

query II rowsort
SELECT - 3, ( - 89 ) AS col0
----
-3
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5753
SELECT - - 9 DIV + SUM( 96 ) + + + 34 + - 12 DIV - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5753
SELECT - - 9 / + SUM ( 96 ) + + + 34 + - 12 / - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5754
SELECT + 83 * COALESCE ( + 52, + 82 * - - COUNT( * ) ) AS col1, ( - ( + + 67 ) )
----
4316
-67

skipif mysql # not compatible
query II rowsort label-5754
SELECT + 83 * COALESCE ( + 52, + 82 * - - COUNT ( * ) ) AS col1, ( - ( + + 67 ) )
----
4316
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5755
SELECT - 23 + + 10 + - + 9 * 22 DIV + + 16 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5755
SELECT - 23 + + 10 + - + 9 * 22 / + + 16 AS col0
----
-25

query I rowsort
SELECT DISTINCT + 82 - - 45
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT ALL 66 * 23 + - COALESCE ( + 34, + 18 DIV + 4, - 69 + - 91, 87 + - COALESCE ( - + 14, - 15 ) * ( 42 ) ) DIV + - 99 AS col2
----
1518

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL 66 * 23 + - COALESCE ( + 34, + 18 / + 4, - 69 + - 91, 87 + - COALESCE ( - + 14, - 15 ) * ( 42 ) ) / + - 99 AS col2
----
1518

query I rowsort
SELECT + 63 * + - 51 * + 25
----
-80325

query I rowsort
SELECT + + 52 + + 22 AS col0
----
74

query I rowsort
SELECT DISTINCT 51 * - 74
----
-3774

query I rowsort
SELECT + 98 * + + 9
----
882

query II rowsort
SELECT DISTINCT + 35 col2, - 84 AS col2
----
35
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT ALL 57 DIV - + 61 * 14
----
0

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL 57 / - + 61 * 14
----
0

query I rowsort
SELECT - 68 + - - 83 AS col2
----
15

query II rowsort
SELECT + 91, + 84 AS col2
----
91
84

query I rowsort
SELECT ALL + 56 * + 86 * - 85 + + + 96 * + 20
----
-407440

query III rowsort
SELECT ALL + 37 AS col2, - 77, - 2 * + 79 AS col1
----
37
-77
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5768
SELECT ALL - COUNT( * ) * - + COUNT( * ) + + COUNT( * ) DIV - 71
----
1

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) + + COUNT ( * ) / - 71
----
1

query I rowsort
SELECT + 32 + - 38 AS col0
----
-6

query II rowsort
SELECT DISTINCT + 50 AS col1, 34 + + 31
----
50
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5771
SELECT DISTINCT + 63 * + 60 * + COUNT( * ) * - COALESCE ( + + 25, + 31 * 81 + COUNT( * ), + 1 * 83 DIV + 11 ) + 42 DIV - COUNT( * ) AS col1
----
-94542

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT + 63 * + 60 * + COUNT ( * ) * - COALESCE ( + + 25, + 31 * 81 + COUNT ( * ), + 1 * 83 / + 11 ) + 42 / - COUNT ( * ) AS col1
----
-94542

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT DISTINCT + SUM( 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT + SUM ( 33 ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT ALL + 30 * 44 + - + 54 * + 30 * - ( + 10 ) - - + 83 + + 38 DIV - 51 * + 42 AS col1
----
17603

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL + 30 * 44 + - + 54 * + 30 * - ( + 10 ) - - + 83 + + 38 / - 51 * + 42 AS col1
----
17603

onlyif mysql # aggregate syntax: 
query II rowsort label-5774
SELECT + 96 * 31 * 18 * + NULLIF ( + 39, + 4 ) AS col2, MIN( + 66 ) + 79 + + - 2 AS col2
----
2089152
143

skipif mysql # not compatible
query II rowsort label-5774
SELECT + 96 * 31 * 18 * + NULLIF ( + 39, + 4 ) AS col2, MIN ( + 66 ) + 79 + + - 2 AS col2
----
2089152
143

query I rowsort
SELECT - 2 * - + 61
----
122

query I rowsort
SELECT + 73 * - 97 * - 94
----
665614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT AVG ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - ( 2 )
----
-2

query I rowsort
SELECT + 66 * + COALESCE ( + 42, - 40 )
----
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5780
SELECT - CASE 24 WHEN - COALESCE ( + CAST( - 12 AS SIGNED ), + 47 ) THEN 67 + + 74 + + 8 * + - 2 * + 9 * 33 * - + 78 ELSE NULL END * CAST( + COUNT( * ) AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT - CASE 24 WHEN - COALESCE ( + CAST ( - 12 AS INTEGER ), + 47 ) THEN 67 + + 74 + + 8 * + - 2 * + 9 * 33 * - + 78 ELSE NULL END * CAST ( + COUNT ( * ) AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5781
SELECT - COALESCE ( 54, + 32, - + 86 + - 42 ) + SUM( + 0 ) DIV - 37
----
-54

skipif mysql # not compatible
query I rowsort label-5781
SELECT - COALESCE ( 54, + 32, - + 86 + - 42 ) + SUM ( + 0 ) / - 37
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT - + SUM( - 36 ) - + + 38 - - + 56 + - COALESCE ( 6, + 57 + 29 - NULLIF ( + COUNT( * ), 37 ) ) * + - 8
----
102

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT - + SUM ( - 36 ) - + + 38 - - + 56 + - COALESCE ( 6, + 57 + 29 - NULLIF ( + COUNT ( * ), 37 ) ) * + - 8
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT + COUNT( * ) * + COUNT( * ) * COUNT( * ) * + - ( - 80 ) + + ( + 55 )
----
135

skipif mysql # not compatible
query I rowsort label-5783
SELECT + COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) * + - ( - 80 ) + + ( + 55 )
----
135

query I rowsort
SELECT ALL - 13 * 92 col0
----
-1196

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT - - COUNT( * ) + - 23
----
-22

skipif mysql # not compatible
query I rowsort label-5785
SELECT - - COUNT ( * ) + - 23
----
-22

query I rowsort
SELECT ALL - - 35 * + + 15
----
525

query I rowsort
SELECT - + 47 * 15 * - 20
----
14100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5788
SELECT - + CAST( NULL AS SIGNED ) + - 84 AS col2, MIN( + 35 )
----
NULL
35

skipif mysql # not compatible
query II rowsort label-5788
SELECT - + CAST ( NULL AS INTEGER ) + - 84 AS col2, MIN ( + 35 )
----
NULL
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5789
SELECT - COUNT( * ), + 86 * + COUNT( * ) * 28 AS col1
----
-1
2408

skipif mysql # not compatible
query II rowsort label-5789
SELECT - COUNT ( * ), + 86 * + COUNT ( * ) * 28 AS col1
----
-1
2408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5790
SELECT ALL + CASE - - 59 WHEN 86 THEN MAX( ALL CAST( NULL AS SIGNED ) ) - - 81 + + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL + CASE - - 59 WHEN 86 THEN MAX ( ALL CAST ( NULL AS INTEGER ) ) - - 81 + + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT - 43 + - 53 AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5792
SELECT - + 98 DIV - - ( + 22 ) + - 63 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5792
SELECT - + 98 / - - ( + 22 ) + - 63 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT - 56 + - COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5793
SELECT - 56 + - COUNT ( * ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT - - COALESCE ( + + 68, - 85 + - + COUNT( * ), + 83 ) - + ( - MAX( - 31 ) ) - + - 51 * + 84 + - ( - CASE + MAX( - 79 ) WHEN 92 - + + 27 THEN NULL ELSE + COUNT( * ) + - + COUNT( * ) END )
----
4321

skipif mysql # not compatible
query I rowsort label-5794
SELECT - - COALESCE ( + + 68, - 85 + - + COUNT ( * ), + 83 ) - + ( - MAX ( - 31 ) ) - + - 51 * + 84 + - ( - CASE + MAX ( - 79 ) WHEN 92 - + + 27 THEN NULL ELSE + COUNT ( * ) + - + COUNT ( * ) END )
----
4321

onlyif mysql # DIV for integer division: 
query I rowsort label-5795
SELECT - 83 DIV 21 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-5795
SELECT - 83 / 21 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT DISTINCT + 79 DIV + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT + 79 / + COUNT ( * )
----
79

query II rowsort
SELECT 52 * - + ( + COALESCE ( + 20, - - 70 * - 9 ) ) + - + 29 AS col2, - 3
----
-1069
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL + MIN( + 39 ) * - 75
----
-2925

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL + MIN ( + 39 ) * - 75
----
-2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5799
SELECT - ( + COUNT( ALL + 99 ) ) DIV - 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5799
SELECT - ( + COUNT ( ALL + 99 ) ) / - 74 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5800
SELECT DISTINCT + 96 DIV + + COUNT( * ) + + 8
----
104

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT + 96 / + + COUNT ( * ) + + 8
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5801
SELECT ALL + CAST( NULL AS SIGNED ) / + - 16 * + COUNT( * ) + SUM( DISTINCT - CAST( + ( - + 71 ) AS SIGNED ) ) / - COUNT( * ) + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + CAST ( NULL AS INTEGER ) / + - 16 * + COUNT ( * ) + SUM ( DISTINCT - CAST ( + ( - + 71 ) AS INTEGER ) ) / - COUNT ( * ) + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT + CASE - 18 WHEN - MAX( + 74 ) THEN + 35 ELSE - - 12 + 47 END col0
----
59

skipif mysql # not compatible
query I rowsort label-5802
SELECT + CASE - 18 WHEN - MAX ( + 74 ) THEN + 35 ELSE - - 12 + 47 END col0
----
59

query II rowsort
SELECT + 9 * 65, + 56 * - 39 AS col2
----
585
-2184

onlyif mysql # aggregate syntax: 
query II rowsort label-5804
SELECT ( - MIN( ALL - - 88 ) ), 21 AS col2
----
-88
21

skipif mysql # not compatible
query II rowsort label-5804
SELECT ( - MIN ( ALL - - 88 ) ), 21 AS col2
----
-88
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT 90 * + COUNT( * ) - 58 * 63 * + 27 + 85
----
-98483

skipif mysql # not compatible
query I rowsort label-5805
SELECT 90 * + COUNT ( * ) - 58 * 63 * + 27 + 85
----
-98483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT - 53 * - ( - 40 ) * + 49 * CAST( + + 15 AS SIGNED ) + + - COUNT( * )
----
-1558201

skipif mysql # not compatible
query I rowsort label-5806
SELECT - 53 * - ( - 40 ) * + 49 * CAST ( + + 15 AS INTEGER ) + + - COUNT ( * )
----
-1558201

query I rowsort
SELECT + 79 * + - 37
----
-2923

onlyif mysql # aggregate syntax: 
query II rowsort label-5808
SELECT + CASE + AVG ( - COALESCE ( + 0, - 69 ) ) WHEN + 39 * - SUM( DISTINCT + - 34 ) THEN NULL WHEN - 33 * - 22 + - 15 * 16 * + - 76 + 41 THEN + - 49 END AS col2, 83 AS col2
----
NULL
83

skipif mysql # not compatible
query II rowsort label-5808
SELECT + CASE + AVG ( - COALESCE ( + 0, - 69 ) ) WHEN + 39 * - SUM ( DISTINCT + - 34 ) THEN NULL WHEN - 33 * - 22 + - 15 * 16 * + - 76 + 41 THEN + - 49 END AS col2, 83 AS col2
----
NULL
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT ( + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT ( + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 37 * NULLIF ( 12, - 88 + + 86 - 82 * + - ( + 36 ) ) AS col0
----
444

onlyif mysql # aggregate syntax: 
query II rowsort label-5811
SELECT NULLIF ( - 22, - 96 * - + COUNT( * ) - ( - + 34 ) ) - + SUM( 6 ) * COUNT( ALL - + 52 ) * + 21 + + 72, + 25 AS col1
----
-76
25

skipif mysql # not compatible
query II rowsort label-5811
SELECT NULLIF ( - 22, - 96 * - + COUNT ( * ) - ( - + 34 ) ) - + SUM ( 6 ) * COUNT ( ALL - + 52 ) * + 21 + + 72, + 25 AS col1
----
-76
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5812
SELECT ALL COALESCE ( - - MIN( ALL + 64 ), 42, + COALESCE ( COUNT( * ), CAST( NULL AS SIGNED ) ) ) DIV - + COUNT( * ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL COALESCE ( - - MIN ( ALL + 64 ), 42, + COALESCE ( COUNT ( * ), CAST ( NULL AS INTEGER ) ) ) / - + COUNT ( * ) AS col2
----
-64

query I rowsort
SELECT + 38 * 97
----
3686

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT 42 + - 89 + + 32 * + 15 * + COUNT( * ) * NULLIF ( - 49, - 87 ) AS col2
----
-23567

skipif mysql # not compatible
query I rowsort label-5814
SELECT 42 + - 89 + + 32 * + 15 * + COUNT ( * ) * NULLIF ( - 49, - 87 ) AS col2
----
-23567

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5815
SELECT ALL + NULLIF ( COUNT( * ), + - CAST( - ( 0 ) AS DECIMAL ) * + 62 + + 28 + - - 16 + ( 39 ) ) AS col2, 66 AS col1
----
1
66

skipif mysql # not compatible
query II rowsort label-5815
SELECT ALL + NULLIF ( COUNT ( * ), + - CAST ( - ( 0 ) AS REAL ) * + 62 + + 28 + - - 16 + ( 39 ) ) AS col2, 66 AS col1
----
1
66

query I rowsort
SELECT + 96 + + + NULLIF ( 32, 72 )
----
128

query I rowsort
SELECT 31 - - ( - + 58 ) * + - 94 AS col1
----
5483

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5818
SELECT + 5 DIV + - 7 + - 56 AS col1, COUNT( - ( + - 36 ) ) AS col2
----
-56
1

skipif mysql # not compatible
query II rowsort label-5818
SELECT + 5 / + - 7 + - 56 AS col1, COUNT ( - ( + - 36 ) ) AS col2
----
-56
1

query I rowsort
SELECT + ( - 29 ) * + 37 + + 96 AS col1
----
-977

query I rowsort
SELECT ALL - 52 col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT ALL ( + ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL ( + ( + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5822
SELECT - COALESCE ( - 7, - 13 ) + + 98 + + 37 - - 80 + - 57 * - + 40 * + - CAST( NULL AS DECIMAL ) * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT - COALESCE ( - 7, - 13 ) + + 98 + + 37 - - 80 + - 57 * - + 40 * + - CAST ( NULL AS REAL ) * + 75
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5823
SELECT ALL + COUNT( * ) * - 40 DIV - 77
----
0

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL + COUNT ( * ) * - 40 / - 77
----
0

query I rowsort
SELECT ALL - 30 + ( - 70 ) AS col2
----
-100

query I rowsort
SELECT DISTINCT + - 57 + + ( + 24 )
----
-33

query I rowsort
SELECT ALL + 80 * - 53
----
-4240

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT ALL - NULLIF ( + 42, - COUNT( * ) ) + - 32
----
-74

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL - NULLIF ( + 42, - COUNT ( * ) ) + - 32
----
-74

query II rowsort
SELECT - 78, - 90 AS col2
----
-78
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT DISTINCT + COUNT( - 35 ) + 35 * - 2, 33 AS col0
----
-69
33

skipif mysql # not compatible
query II rowsort label-5829
SELECT DISTINCT + COUNT ( - 35 ) + 35 * - 2, 33 AS col0
----
-69
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT ALL + 30 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + 30 / 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT DISTINCT - NULLIF ( - 87, - + COUNT( * ) * 4 / + COUNT( * ) ) + 30 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT - NULLIF ( - 87, - + COUNT ( * ) * 4 / + COUNT ( * ) ) + 30 AS col0
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5832
SELECT 1 + + 53 * + 69 AS col1, + 14 * + + 23 DIV + COUNT( * )
----
3658
322

skipif mysql # not compatible
query II rowsort label-5832
SELECT 1 + + 53 * + 69 AS col1, + 14 * + + 23 / + COUNT ( * )
----
3658
322

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5833
SELECT 21 * + + 50 - + CAST( NULL AS SIGNED ) AS col0, 50 - + 71 + - 22 AS col0
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-5833
SELECT 21 * + + 50 - + CAST ( NULL AS INTEGER ) AS col0, 50 - + 71 + - 22 AS col0
----
NULL
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5834
SELECT COUNT( - - 89 ) DIV + ( 42 ) + + 36 + - 62 + COUNT( * ) * 60 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5834
SELECT COUNT ( - - 89 ) / + ( 42 ) + + 36 + - 62 + COUNT ( * ) * 60 AS col0
----
34

query I rowsort
SELECT 17 * + - ( - + 91 ) * 70 * + 26
----
2815540

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT DISTINCT - 13 * 5 DIV 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5836
SELECT DISTINCT - 13 * 5 / 47 AS col2
----
-1

query I rowsort
SELECT 27 * - 37 AS col2
----
-999

query II rowsort
SELECT 68 AS col2, 45
----
68
45

query I rowsort
SELECT 59 * 72 + + + 31 AS col1
----
4279

query I rowsort
SELECT ALL + 68 * - COALESCE ( 21, - 45 * - ( 86 ) + 24 ) * + 77 col1
----
-109956

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT MAX( DISTINCT - + 8 ) * + 79 * + 91
----
-57512

skipif mysql # not compatible
query I rowsort label-5841
SELECT MAX ( DISTINCT - + 8 ) * + 79 * + 91
----
-57512

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT 55 + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-5842
SELECT 55 + - COUNT ( * )
----
54

query I rowsort
SELECT - 64 * 68 + + - 60 AS col2
----
-4412

onlyif mysql # aggregate syntax: 
query II rowsort label-5844
SELECT - + 31 AS col2, + COUNT( * ) * - + 21
----
-31
-21

skipif mysql # not compatible
query II rowsort label-5844
SELECT - + 31 AS col2, + COUNT ( * ) * - + 21
----
-31
-21

query I rowsort
SELECT 46 + - 48 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ALL COUNT( * ) * + COUNT( 77 ) + - 51 * - 22
----
1123

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL COUNT ( * ) * + COUNT ( 77 ) + - 51 * - 22
----
1123

onlyif mysql # DIV for integer division: 
query II rowsort label-5847
SELECT ALL 17 AS col1, + COALESCE ( - 23, 30 ) DIV - 35 * + 5 + + 12 AS col2
----
17
12

skipif mysql # not compatible
query II rowsort label-5847
SELECT ALL 17 AS col1, + COALESCE ( - 23, 30 ) / - 35 * + 5 + + 12 AS col2
----
17
12

query I rowsort
SELECT + 25 + - ( ( - 52 ) ) AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT DISTINCT - NULLIF ( - + CAST( NULL AS SIGNED ), - + 94 ) + + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT DISTINCT - NULLIF ( - + CAST ( NULL AS INTEGER ), - + 94 ) + + 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5850
SELECT CASE + 31 WHEN + CAST( 29 AS DECIMAL ) THEN + 92 ELSE + CAST( + 93 AS SIGNED ) END + - MIN( ALL + + 40 )
----
53

skipif mysql # not compatible
query I rowsort label-5850
SELECT CASE + 31 WHEN + CAST ( 29 AS REAL ) THEN + 92 ELSE + CAST ( + 93 AS INTEGER ) END + - MIN ( ALL + + 40 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT + SUM( - 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5851
SELECT + SUM ( - 19 ) AS col0
----
-19

query I rowsort
SELECT DISTINCT 17 * 74
----
1258

query I rowsort
SELECT - + ( - 44 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5854
SELECT 36 DIV - COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5854
SELECT 36 / - COUNT ( * ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT - 75 + 34 + 32 * + 93 * COUNT( * ) * + + COUNT( * ) * + 26 * + 11 AS col1
----
851095

skipif mysql # not compatible
query I rowsort label-5855
SELECT - 75 + 34 + 32 * + 93 * COUNT ( * ) * + + COUNT ( * ) * + 26 * + 11 AS col1
----
851095

query II rowsort
SELECT + 52 AS col2, - 6
----
52
-6

query I rowsort
SELECT 25 + - - ( + + 62 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5858
SELECT ALL CAST( + 78 AS SIGNED ) + + ( + 75 ) * - 45
----
-3297

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL CAST ( + 78 AS INTEGER ) + + ( + 75 ) * - 45
----
-3297

onlyif mysql # DIV for integer division: 
query II rowsort label-5859
SELECT 2 DIV + 8 col2, + 99
----
0
99

skipif mysql # not compatible
query II rowsort label-5859
SELECT 2 / + 8 col2, + 99
----
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5860
SELECT CAST( NULL AS SIGNED ) * + + 98 * - + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT CAST ( NULL AS INTEGER ) * + + 98 * - + 22 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5861
SELECT ALL COUNT( * ) + 98 + 67 DIV - 18 + - + MAX( DISTINCT - 48 )
----
144

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL COUNT ( * ) + 98 + 67 / - 18 + - + MAX ( DISTINCT - 48 )
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5862
SELECT ALL - 89 - + SUM( - 39 ) - 92 + MAX( DISTINCT + - 81 ) DIV - COUNT( * ) + - + SUM( + 94 ) * 85
----
-8051

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL - 89 - + SUM ( - 39 ) - 92 + MAX ( DISTINCT + - 81 ) / - COUNT ( * ) + - + SUM ( + 94 ) * 85
----
-8051

query I rowsort
SELECT 37 + - 32 col2
----
5

query I rowsort
SELECT + NULLIF ( 91, + AVG ( ALL - 40 ) * + 58 * - 1 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5865
SELECT COUNT( * ) * - 18 + + + MAX( ALL - 80 ), + 44 + + 48 AS col2
----
-98
92

skipif mysql # not compatible
query II rowsort label-5865
SELECT COUNT ( * ) * - 18 + + + MAX ( ALL - 80 ), + 44 + + 48 AS col2
----
-98
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT - 67 * + + 63 AS col0, CASE - COUNT( * ) WHEN - COUNT( * ) THEN + COUNT( * ) WHEN + 95 THEN + 43 WHEN - 24 THEN NULL END * - 59 col2
----
-4221
-59

skipif mysql # not compatible
query II rowsort label-5866
SELECT - 67 * + + 63 AS col0, CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN + COUNT ( * ) WHEN + 95 THEN + 43 WHEN - 24 THEN NULL END * - 59 col2
----
-4221
-59

query II rowsort
SELECT COALESCE ( + - 20, + 25, 84 ), 89 + + 44 AS col0
----
-20
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT DISTINCT + COALESCE ( + COUNT( * ), - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - 78 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5869
SELECT DISTINCT - 82 * + 84 AS col1, COUNT( * )
----
-6888
1

skipif mysql # not compatible
query II rowsort label-5869
SELECT DISTINCT - 82 * + 84 AS col1, COUNT ( * )
----
-6888
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5870
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) AS col2, + 46 - + 63 AS col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-5870
SELECT ALL + ( CAST ( NULL AS REAL ) ) AS col2, + 46 - + 63 AS col0
----
NULL
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5871
SELECT + 20 * - CAST( 14 AS SIGNED ) + - + 64 + 67 - SUM( DISTINCT + 0 ) DIV + 96
----
-277

skipif mysql # not compatible
query I rowsort label-5871
SELECT + 20 * - CAST ( 14 AS INTEGER ) + - + 64 + 67 - SUM ( DISTINCT + 0 ) / + 96
----
-277

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - COUNT( * ) * 30 + - + 14 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-5872
SELECT - COUNT ( * ) * 30 + - + 14 AS col2
----
-44

query I rowsort
SELECT - 73 * 81
----
-5913

query I rowsort
SELECT DISTINCT + 7 * + 62
----
434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT ALL + CASE + 31 WHEN - 54 * 83 THEN + 33 END * + CAST( NULL AS SIGNED ) + - 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + CASE + 31 WHEN - 54 * 83 THEN + 33 END * + CAST ( NULL AS INTEGER ) + - 8 AS col1
----
NULL

query I rowsort
SELECT - + 68 * - 59 - + 25 AS col1
----
3987

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT + 57 * 39 + COUNT( * )
----
2224

skipif mysql # not compatible
query I rowsort label-5877
SELECT + 57 * 39 + COUNT ( * )
----
2224

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT - 76 * 84 * + - COUNT( * )
----
6384

skipif mysql # not compatible
query I rowsort label-5878
SELECT - 76 * 84 * + - COUNT ( * )
----
6384

query I rowsort
SELECT - - ( - 3 ) + + - ( ( + ( + - 64 ) ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT COALESCE ( - COUNT( * ), 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-5880
SELECT COALESCE ( - COUNT ( * ), 27 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5881
SELECT - COUNT( + 6 ) AS col1, 23 * + + MAX( + 89 ) col1
----
-1
2047

skipif mysql # not compatible
query II rowsort label-5881
SELECT - COUNT ( + 6 ) AS col1, 23 * + + MAX ( + 89 ) col1
----
-1
2047

query I rowsort
SELECT DISTINCT - + 82 + 86 * - 1
----
-168

query I rowsort
SELECT + - 9 + + 69 + - - 34
----
94

query I rowsort
SELECT ALL 28 * - 5
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT ALL - 57 - SUM( ALL - 18 )
----
-39

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL - 57 - SUM ( ALL - 18 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT ALL CAST( NULL AS SIGNED ) - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL CAST ( NULL AS INTEGER ) - - 65
----
NULL

query I rowsort
SELECT + 86 * - - 33 AS col2
----
2838

query I rowsort
SELECT + 98 + + 56 AS col0
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-5889
SELECT + 3 DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT + 3 / - 83
----
0

query I rowsort
SELECT + 74 + 78
----
152

query I rowsort
SELECT + 50 + - 61
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT + 67 + COUNT( * ) * COUNT( - 52 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5892
SELECT + 67 + COUNT ( * ) * COUNT ( - 52 ) AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5893
SELECT + COUNT( * ) + + 78 DIV 13 AS col1, 67 DIV + + COALESCE ( + 76, 43 ) + + 52 AS col0
----
7
52

skipif mysql # not compatible
query II rowsort label-5893
SELECT + COUNT ( * ) + + 78 / 13 AS col1, 67 / + + COALESCE ( + 76, 43 ) + + 52 AS col0
----
7
52

query I rowsort
SELECT ALL + 68 * + + ( - ( + 57 ) ) AS col2
----
-3876

query I rowsort
SELECT + 20 + + - 61
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL + COALESCE ( - - 54, - SUM( - + 0 ) ) col2
----
54

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL + COALESCE ( - - 54, - SUM ( - + 0 ) ) col2
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5897
SELECT + 2 DIV ( - 92 ) * - 65 + + CASE - + CAST( NULL AS SIGNED ) WHEN + 87 + + 88 THEN NULL ELSE 77 END
----
77

skipif mysql # not compatible
query I rowsort label-5897
SELECT + 2 / ( - 92 ) * - 65 + + CASE - + CAST ( NULL AS INTEGER ) WHEN + 87 + + 88 THEN NULL ELSE 77 END
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5898
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) * - ( - 44 ) * - COUNT( + 31 ) + + COUNT( * ) + + 66 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5898
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - ( - 44 ) * - COUNT ( + 31 ) + + COUNT ( * ) + + 66 * - - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5899
SELECT ALL - + ( + 83 ) * - 59 - - 53 + 95 + 53 + + - 6 DIV - - 9 + - 13 - + 30 + + 79 * + 96
----
12639

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL - + ( + 83 ) * - 59 - - 53 + 95 + 53 + + - 6 / - - 9 + - 13 - + 30 + + 79 * + 96
----
12639

query I rowsort
SELECT - - 0 + + - 27 + + + 63
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT ALL 13 * - 74 * 86 + - 70 + + SUM( + - 9 ) - - 96 * - + 80 AS col2
----
-90491

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL 13 * - 74 * 86 + - 70 + + SUM ( + - 9 ) - - 96 * - + 80 AS col2
----
-90491

query I rowsort
SELECT - + ( + 28 ) + + ( CASE 9 WHEN 52 THEN 79 END ) col0
----
NULL

query I rowsort
SELECT DISTINCT + + 72 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT ALL + + 16 * COALESCE ( - - 62, + - MIN( ALL - - 60 ) + + 98 ) + - 62 col2
----
930

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + + 16 * COALESCE ( - - 62, + - MIN ( ALL - - 60 ) + + 98 ) + - 62 col2
----
930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5905
SELECT ALL + - CASE - COUNT( * ) WHEN - + 64 THEN NULL WHEN + CAST( NULL AS SIGNED ) + - 49 / + 45 * - CASE + + 34 WHEN - 76 THEN NULL ELSE - 59 + - 4 END THEN + 78 + 82 * - NULLIF ( 37, + 71 * - 87 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL + - CASE - COUNT ( * ) WHEN - + 64 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + - 49 / + 45 * - CASE + + 34 WHEN - 76 THEN NULL ELSE - 59 + - 4 END THEN + 78 + 82 * - NULLIF ( 37, + 71 * - 87 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5906
SELECT ALL + 24 * + NULLIF ( - COALESCE ( + 17, - 41 - + 48 + 94, - 84 ), - 61 + - 35 + - 52 ) * - - 30 + + 86 + - 21 + - 90 AS col0, COUNT( * ) AS col2
----
-12265
1

skipif mysql # not compatible
query II rowsort label-5906
SELECT ALL + 24 * + NULLIF ( - COALESCE ( + 17, - 41 - + 48 + 94, - 84 ), - 61 + - 35 + - 52 ) * - - 30 + + 86 + - 21 + - 90 AS col0, COUNT ( * ) AS col2
----
-12265
1

query II rowsort
SELECT + 80, + ( COALESCE ( - - 78, 24 ) ) col2
----
80
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT + - MAX( ALL 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-5908
SELECT + - MAX ( ALL 15 )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT - 78 DIV 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5909
SELECT - 78 / 47 AS col1
----
-1

query I rowsort
SELECT - 48 + ( + 93 ) col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5911
SELECT ALL + + 9 * + ( + + ( + NULLIF ( COUNT( * ), - + 0 ) ) ) DIV - 45 * + - 89 - - CAST( 23 AS SIGNED ) * + + 12 col1
----
276

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL + + 9 * + ( + + ( + NULLIF ( COUNT ( * ), - + 0 ) ) ) / - 45 * + - 89 - - CAST ( 23 AS INTEGER ) * + + 12 col1
----
276

query I rowsort
SELECT - + NULLIF ( - + 20, + 92 ) + - + 99
----
-79

query II rowsort
SELECT - 14 AS col0, 71
----
-14
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5914
SELECT ALL - 2 * + 53 + + AVG ( ALL + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - 2 * + 53 + + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT - - 63 * COALESCE ( + - 87, - SUM( ALL + 64 ), - 36 ) + + 51 AS col0
----
-5430

skipif mysql # not compatible
query I rowsort label-5915
SELECT - - 63 * COALESCE ( + - 87, - SUM ( ALL + 64 ), - 36 ) + + 51 AS col0
----
-5430

query I rowsort
SELECT ALL + + 78 * - 53 - + 52 * - 56
----
-1222

query II rowsort
SELECT DISTINCT 22 AS col1, - 50 - 73
----
22
-123

query II rowsort
SELECT ALL 74 col0, - 78 * - 56 AS col1
----
74
4368

onlyif mysql # aggregate syntax: 
query II rowsort label-5919
SELECT COUNT( * ) AS col1, - 46 * - 27 AS col1
----
1
1242

skipif mysql # not compatible
query II rowsort label-5919
SELECT COUNT ( * ) AS col1, - 46 * - 27 AS col1
----
1
1242

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5920
SELECT - 77, - CAST( + 13 AS SIGNED ) AS col0
----
-77
-13

skipif mysql # not compatible
query II rowsort label-5920
SELECT - 77, - CAST ( + 13 AS INTEGER ) AS col0
----
-77
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5921
SELECT - 57 - + 69 + - COUNT( * ) DIV 76 AS col2, + COUNT( * ) * + COUNT( * ) AS col2
----
-126
1

skipif mysql # not compatible
query II rowsort label-5921
SELECT - 57 - + 69 + - COUNT ( * ) / 76 AS col2, + COUNT ( * ) * + COUNT ( * ) AS col2
----
-126
1

query II rowsort
SELECT - 31, - ( 87 ) col2
----
-31
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT ( + + COUNT( * ) ) + - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5923
SELECT ( + + COUNT ( * ) ) + - - COUNT ( * ) AS col2
----
2

query I rowsort
SELECT ALL 38 * + 40 AS col0
----
1520

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5925
SELECT ALL + CAST( NULL AS DECIMAL ) * - - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL + CAST ( NULL AS REAL ) * - - 6 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5926
SELECT COUNT( COALESCE ( + CAST( + + CAST( + 48 AS SIGNED ) AS SIGNED ), + + 19 ) ) * + 14
----
14

skipif mysql # not compatible
query I rowsort label-5926
SELECT COUNT ( COALESCE ( + CAST ( + + CAST ( + 48 AS INTEGER ) AS INTEGER ), + + 19 ) ) * + 14
----
14

query I rowsort
SELECT ALL 78 + + 39 + - + 99 AS col1
----
18

query I rowsort
SELECT DISTINCT 37 + + 27
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT COUNT( * ) * - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5929
SELECT COUNT ( * ) * - 89 AS col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5930
SELECT ALL 72 + + - ( + 82 ) * - MIN( ALL + - 52 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL 72 + + - ( + 82 ) * - MIN ( ALL + - 52 ) / - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 66 AS col2, + 91 * 16 * - 42
----
66
-61152

query I rowsort
SELECT 55 * 28 AS col2
----
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL + COUNT( * ) + - 0
----
1

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL + COUNT ( * ) + - 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT 85 * - 61 * + COUNT( * )
----
-5185

skipif mysql # not compatible
query I rowsort label-5934
SELECT 85 * - 61 * + COUNT ( * )
----
-5185

query II rowsort
SELECT ALL - - 38, + 29 AS col2
----
38
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5936
SELECT ALL + + MAX( 56 ) + - + 92 + ( - 27 ) * - 22 AS col0, + 75 - + + 47
----
558
28

skipif mysql # not compatible
query II rowsort label-5936
SELECT ALL + + MAX ( 56 ) + - + 92 + ( - 27 ) * - 22 AS col0, + 75 - + + 47
----
558
28

query I rowsort
SELECT + - ( 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ALL - 22 + - 22 * + + 0 * + - 47 + + COUNT( * ) * + 14
----
-8

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL - 22 + - 22 * + + 0 * + - 47 + + COUNT ( * ) * + 14
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5939
SELECT DISTINCT - 64 * - 92 AS col0, - 64 + - + 98 AS col1, + NULLIF ( - 4, 67 + + + ( + 1 ) * + - COALESCE ( - + ( + + SUM( DISTINCT 71 ) ), 68 * ( - - 67 ) ) ) - COALESCE ( - - 23, 97 * - 53 - + 21, - - COALESCE ( + 71, - + 96 ) DIV COUNT( * ) * + 56 ) DIV - 59 AS col2
----
5888
-162
-4

skipif mysql # not compatible
query III rowsort label-5939
SELECT DISTINCT - 64 * - 92 AS col0, - 64 + - + 98 AS col1, + NULLIF ( - 4, 67 + + + ( + 1 ) * + - COALESCE ( - + ( + + SUM ( DISTINCT 71 ) ), 68 * ( - - 67 ) ) ) - COALESCE ( - - 23, 97 * - 53 - + 21, - - COALESCE ( + 71, - + 96 ) / COUNT ( * ) * + 56 ) / - 59 AS col2
----
5888
-162
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT + ( + COALESCE ( - - COUNT( - 76 ), + - 82 + - 37 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5940
SELECT + ( + COALESCE ( - - COUNT ( - 76 ), + - 82 + - 37 ) ) AS col0
----
1

query I rowsort
SELECT ALL - + 29 col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5942
SELECT ALL - 23 AS col1, - COUNT( * ) col2
----
-23
-1

skipif mysql # not compatible
query II rowsort label-5942
SELECT ALL - 23 AS col1, - COUNT ( * ) col2
----
-23
-1

query II rowsort
SELECT 46 AS col1, + 9
----
46
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5944
SELECT ALL - COUNT( * ) col2, 89 AS col2
----
-1
89

skipif mysql # not compatible
query II rowsort label-5944
SELECT ALL - COUNT ( * ) col2, 89 AS col2
----
-1
89

query II rowsort
SELECT + 21 * + 55 AS col2, 83 AS col0
----
1155
83

query I rowsort
SELECT ( + 99 ) + + + 55
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5947
SELECT 50 - + NULLIF ( + 28, - - 33 ) + CAST( - 45 AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-5947
SELECT 50 - + NULLIF ( + 28, - - 33 ) + CAST ( - 45 AS INTEGER ) AS col1
----
-23

query I rowsort
SELECT DISTINCT + 85 * + 87 * + 83 * + 28 * - ( - 96 )
----
1649854080

onlyif mysql # DIV for integer division: 
query I rowsort label-5949
SELECT 30 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5949
SELECT 30 / 97 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5950
SELECT 36 * - 19 * + CAST( - 47 AS SIGNED )
----
32148

skipif mysql # not compatible
query I rowsort label-5950
SELECT 36 * - 19 * + CAST ( - 47 AS INTEGER )
----
32148

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT DISTINCT + MIN( ALL - + 87 ) * - 81
----
7047

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT + MIN ( ALL - + 87 ) * - 81
----
7047

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL MAX( ALL 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL MAX ( ALL 23 ) AS col1
----
23

query I rowsort
SELECT ALL + 68 + + 59 * ( - 19 )
----
-1053

query I rowsort
SELECT 36 + - 59 * + 28 AS col0
----
-1616

query II rowsort
SELECT 45 + + - 32, 46 col0
----
13
46

query I rowsort
SELECT DISTINCT - 23 + + 39
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT 61 + 42 col0, 37 + - ( COUNT( * ) )
----
103
36

skipif mysql # not compatible
query II rowsort label-5957
SELECT 61 + 42 col0, 37 + - ( COUNT ( * ) )
----
103
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL 25 + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL 25 + + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT COUNT( * ) + + + 36 + 14 + - 30 * ( + COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-5959
SELECT COUNT ( * ) + + + 36 + 14 + - 30 * ( + COUNT ( * ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT DISTINCT + COUNT( ALL + 31 ) * - COUNT( * ) - - 57 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT + COUNT ( ALL + 31 ) * - COUNT ( * ) - - 57 AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5961
SELECT CAST( + - 11 AS SIGNED ) DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT CAST ( + - 11 AS INTEGER ) / + 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5962
SELECT - 25 / - CASE + 68 WHEN + + 53 THEN ( COUNT( * ) ) * NULLIF ( + 93, - - 49 ) + - 43 * + CAST( NULL AS SIGNED ) ELSE NULL END + - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT - 25 / - CASE + 68 WHEN + + 53 THEN ( COUNT ( * ) ) * NULLIF ( + 93, - - 49 ) + - 43 * + CAST ( NULL AS INTEGER ) ELSE NULL END + - - 27
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5963
SELECT ALL 72 * + 83, 68 - - + COALESCE ( - + 11, ( + - COUNT( * ) ) DIV 55, + 44 * - 97 + - 65, ( COUNT( * ) ) ) col0
----
5976
57

skipif mysql # not compatible
query II rowsort label-5963
SELECT ALL 72 * + 83, 68 - - + COALESCE ( - + 11, ( + - COUNT ( * ) ) / 55, + 44 * - 97 + - 65, ( COUNT ( * ) ) ) col0
----
5976
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5964
SELECT DISTINCT - ( - + CAST( - - 99 AS SIGNED ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT - ( - + CAST ( - - 99 AS INTEGER ) ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5965
SELECT + CAST( - 37 AS SIGNED ) AS col0, + 28 AS col0
----
-37
28

skipif mysql # not compatible
query II rowsort label-5965
SELECT + CAST ( - 37 AS INTEGER ) AS col0, + 28 AS col0
----
-37
28

onlyif mysql # aggregate syntax: 
query II rowsort label-5966
SELECT DISTINCT 88 * + 69 + - 49 - - 37 * 5 AS col0, - COUNT( * )
----
6208
-1

skipif mysql # not compatible
query II rowsort label-5966
SELECT DISTINCT 88 * + 69 + - 49 - - 37 * 5 AS col0, - COUNT ( * )
----
6208
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5967
SELECT - CAST( NULL AS SIGNED ) / 14 + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5967
SELECT - CAST ( NULL AS INTEGER ) / 14 + + 59
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5968
SELECT ALL - - CAST( + + 94 AS SIGNED ) AS col1, ( 48 )
----
94
48

skipif mysql # not compatible
query II rowsort label-5968
SELECT ALL - - CAST ( + + 94 AS INTEGER ) AS col1, ( 48 )
----
94
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT ALL - COUNT( * ) * + 35 * + NULLIF ( 77, 24 * NULLIF ( - + 54, + + 20 ) - + + 43 + - COUNT( * ) ) AS col0
----
-2695

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL - COUNT ( * ) * + 35 * + NULLIF ( 77, 24 * NULLIF ( - + 54, + + 20 ) - + + 43 + - COUNT ( * ) ) AS col0
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT + 19 * COUNT( * ) + + COUNT( * ) col0
----
20

skipif mysql # not compatible
query I rowsort label-5970
SELECT + 19 * COUNT ( * ) + + COUNT ( * ) col0
----
20

query I rowsort
SELECT - + 65 * + 65 + + - 60 + 18 + - 67
----
-4334

query I rowsort
SELECT DISTINCT 97 * - 73 * 74
----
-523994

query I rowsort
SELECT ALL - - COALESCE ( 36, 72 )
----
36

query I rowsort
SELECT + 51 * - + 20 * + 26 AS col1
----
-26520

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT - MAX( + ( + 68 ) ) * ( - ( + 15 ) )
----
1020

skipif mysql # not compatible
query I rowsort label-5975
SELECT - MAX ( + ( + 68 ) ) * ( - ( + 15 ) )
----
1020

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5976
SELECT - CASE NULLIF ( + 50, + 24 ) WHEN + 5 * + 53 THEN - NULLIF ( COUNT( + 44 ), + 43 * CAST( + 65 AS DECIMAL ) * + - 31 ) WHEN - 40 / - 38 / MIN( + - 30 ) THEN NULL ELSE + COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5976
SELECT - CASE NULLIF ( + 50, + 24 ) WHEN + 5 * + 53 THEN - NULLIF ( COUNT ( + 44 ), + 43 * CAST ( + 65 AS REAL ) * + - 31 ) WHEN - 40 / - 38 / MIN ( + - 30 ) THEN NULL ELSE + COUNT ( * ) END AS col2
----
-1

query I rowsort
SELECT ALL ( - 62 ) * - - 57
----
-3534

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT - 72 * + + 89 * + COUNT( * ) + - - ( 85 ) + - 42 col2
----
-6365

skipif mysql # not compatible
query I rowsort label-5978
SELECT - 72 * + + 89 * + COUNT ( * ) + - - ( 85 ) + - 42 col2
----
-6365

query II rowsort
SELECT 98, + 44 - - 39 AS col2
----
98
83

query I rowsort
SELECT - ( - + 9 ) + + - ( + 26 ) - + - 58 col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5981
SELECT DISTINCT + 64 + MIN( + - 95 ) col0, - 47 AS col1
----
-31
-47

skipif mysql # not compatible
query II rowsort label-5981
SELECT DISTINCT + 64 + MIN ( + - 95 ) col0, - 47 AS col1
----
-31
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5982
SELECT - MAX( - + 99 ) + + 97 + - + COALESCE ( + 40, - + 91 DIV + 86 + 28 * 51 * 18 + + 95 ) + + + 55 * + 93
----
5271

skipif mysql # not compatible
query I rowsort label-5982
SELECT - MAX ( - + 99 ) + + 97 + - + COALESCE ( + 40, - + 91 / + 86 + 28 * 51 * 18 + + 95 ) + + + 55 * + 93
----
5271

query I rowsort
SELECT - 26 * + 83
----
-2158

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT MAX( DISTINCT 65 )
----
65

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT MAX ( DISTINCT 65 )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5985
SELECT ALL - 37 + + CASE + 92 WHEN 20 THEN + 99 END + + + 29 + + COUNT( * ) * + + SUM( + - 98 ) * - 90 - - - 59 col1, 64 - - 38 col0
----
NULL
102

skipif mysql # not compatible
query II rowsort label-5985
SELECT ALL - 37 + + CASE + 92 WHEN 20 THEN + 99 END + + + 29 + + COUNT ( * ) * + + SUM ( + - 98 ) * - 90 - - - 59 col1, 64 - - 38 col0
----
NULL
102

query I rowsort
SELECT - 55 * + 21 AS col2
----
-1155

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT - NULLIF ( - COUNT( * ), - + 13 * + + 28 * - NULLIF ( - 50, + + CASE - - ( 86 ) WHEN - 78 * + + 0 THEN 58 END ) ) * + 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5987
SELECT - NULLIF ( - COUNT ( * ), - + 13 * + + 28 * - NULLIF ( - 50, + + CASE - - ( 86 ) WHEN - 78 * + + 0 THEN 58 END ) ) * + 69 AS col0
----
69

query I rowsort
SELECT - 90 * - 26 AS col0
----
2340

query I rowsort
SELECT ALL 96 * 26 col2
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL - COUNT( ALL - 73 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - COUNT ( ALL - 73 ) AS col0
----
-1

query I rowsort
SELECT ALL + + 90 * + + 95 col1
----
8550

query II rowsort
SELECT - 73 * - 47 + - 51, 24 + + + 39 AS col2
----
3380
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT COUNT( * ) col1, + 60
----
1
60

skipif mysql # not compatible
query II rowsort label-5993
SELECT COUNT ( * ) col1, + 60
----
1
60

query I rowsort
SELECT - + 2 * - 65 AS col0
----
130

query II rowsort
SELECT - 98 AS col0, 38
----
-98
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5996
SELECT DISTINCT - 97 * + 60 DIV + + 1 + + - 3 - - - NULLIF ( + 31, - + 96 ) AS col2
----
-5854

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT - 97 * + 60 / + + 1 + + - 3 - - - NULLIF ( + 31, - + 96 ) AS col2
----
-5854

query I rowsort
SELECT ALL + ( - 99 ) AS col2
----
-99

query I rowsort
SELECT + NULLIF ( - - 14, - 64 )
----
14

query I rowsort
SELECT + - ( + + 24 ) AS col1
----
-24

query II rowsort
SELECT + - 76 * 13 + 73 AS col1, + 42 * + 22
----
-915
924

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL - MAX( + 4 ) * + 94 AS col1
----
-376

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL - MAX ( + 4 ) * + 94 AS col1
----
-376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6002
SELECT - COALESCE ( + - 96, - COALESCE ( + CASE 8 WHEN + + COUNT( * ) - - - NULLIF ( + 25, - 70 ) - 92 + + - 73 / + + 6 / COUNT( * ) * - CASE - 7 WHEN + COUNT( * ) THEN - ( ( 84 ) ) END * - + CASE - - MAX( 3 ) WHEN 62 THEN NULL ELSE 17 END THEN NULL WHEN CAST( NULL AS SIGNED ) * - COUNT( * ) * - 67 THEN NULL ELSE MIN( 26 ) END, 57 ) ) + - - 93 + + + 80
----
269

skipif mysql # not compatible
query I rowsort label-6002
SELECT - COALESCE ( + - 96, - COALESCE ( + CASE 8 WHEN + + COUNT ( * ) - - - NULLIF ( + 25, - 70 ) - 92 + + - 73 / + + 6 / COUNT ( * ) * - CASE - 7 WHEN + COUNT ( * ) THEN - ( ( 84 ) ) END * - + CASE - - MAX ( 3 ) WHEN 62 THEN NULL ELSE 17 END THEN NULL WHEN CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 67 THEN NULL ELSE MIN ( 26 ) END, 57 ) ) + - - 93 + + + 80
----
269

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT - COUNT( * ) * - CASE + 56 WHEN - NULLIF ( - + 35, + + COUNT( * ) * - - 75 ) - - 90 THEN NULL ELSE - 30 * 84 - 24 END + + + ( - 14 ) + + + 20 * + + 47 AS col0
----
-1618

skipif mysql # not compatible
query I rowsort label-6003
SELECT - COUNT ( * ) * - CASE + 56 WHEN - NULLIF ( - + 35, + + COUNT ( * ) * - - 75 ) - - 90 THEN NULL ELSE - 30 * 84 - 24 END + + + ( - 14 ) + + + 20 * + + 47 AS col0
----
-1618

query I rowsort
SELECT + 16 - + 51
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6005
SELECT - + 98 DIV + 39
----
-2

skipif mysql # not compatible
query I rowsort label-6005
SELECT - + 98 / + 39
----
-2

query I rowsort
SELECT ALL + ( - 20 ) AS col2
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-6007
SELECT + 21 DIV 75, 0
----
0
0

skipif mysql # not compatible
query II rowsort label-6007
SELECT + 21 / 75, 0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT DISTINCT - 34 * + + COUNT( * ) * - 7 + + + MAX( 69 ) - + - 93
----
400

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT - 34 * + + COUNT ( * ) * - 7 + + + MAX ( 69 ) - + - 93
----
400

query I rowsort
SELECT - 68 + - 64 + 25 - + 34 * + 8 AS col2
----
-379

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6010
SELECT MAX( DISTINCT - + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT MAX ( DISTINCT - + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6011
SELECT MAX( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6012
SELECT + COUNT( * ) + - + 78, + 10 AS col2
----
-77
10

skipif mysql # not compatible
query II rowsort label-6012
SELECT + COUNT ( * ) + - + 78, + 10 AS col2
----
-77
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT COUNT( DISTINCT 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6013
SELECT COUNT ( DISTINCT 48 ) AS col1
----
1

query II rowsort
SELECT ALL 56 * - 26 AS col2, ( ( - 77 ) ) AS col2
----
-1456
-77

query I rowsort
SELECT - CASE - ( - 59 ) WHEN + NULLIF ( + 45, - - 25 ) THEN NULL WHEN + - 89 + + 76 THEN NULL WHEN + 93 + + - 70 * - - 5 + 57 THEN 91 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6016
SELECT + CAST( - 22 AS SIGNED ) * + 86
----
-1892

skipif mysql # not compatible
query I rowsort label-6016
SELECT + CAST ( - 22 AS INTEGER ) * + 86
----
-1892

query II rowsort
SELECT ALL 49 + - 91 AS col0, + 7
----
-42
7

query I rowsort
SELECT ALL 8 + - - 49 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT + 31 * COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6019
SELECT + 31 * COUNT ( * )
----
31

query I rowsort
SELECT ALL 13 - + ( - 14 ) AS col2
----
27

query I rowsort
SELECT DISTINCT ( + COALESCE ( 74, 85, - 57 ) ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT + 95 + + + COUNT( * ) + + 5 * COUNT( * ) AS col0
----
101

skipif mysql # not compatible
query I rowsort label-6022
SELECT + 95 + + + COUNT ( * ) + + 5 * COUNT ( * ) AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT - 1 - - 83 + - + 20 * - 41 + - + COUNT( * )
----
901

skipif mysql # not compatible
query I rowsort label-6023
SELECT - 1 - - 83 + - + 20 * - 41 + - + COUNT ( * )
----
901

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT + 1 + 93 * + - 23 + + 21 DIV - + 72
----
-2138

skipif mysql # not compatible
query I rowsort label-6024
SELECT + 1 + 93 * + - 23 + + 21 / - + 72
----
-2138

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT - 71 - COUNT( DISTINCT - 96 ) * + 46 * - 57
----
2551

skipif mysql # not compatible
query I rowsort label-6025
SELECT - 71 - COUNT ( DISTINCT - 96 ) * + 46 * - 57
----
2551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6026
SELECT + - 29 + - ( + CAST( NULL AS SIGNED ) ) * + 66, - 43 + MAX( ALL + + 93 ) AS col0
----
NULL
50

skipif mysql # not compatible
query II rowsort label-6026
SELECT + - 29 + - ( + CAST ( NULL AS INTEGER ) ) * + 66, - 43 + MAX ( ALL + + 93 ) AS col0
----
NULL
50

query I rowsort
SELECT ALL ( 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT DISTINCT 30 * ( - CASE + COUNT( ALL + 32 ) WHEN + + 71 THEN - + COUNT( * ) * - 59 - + 81 + SUM( - 83 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT 30 * ( - CASE + COUNT ( ALL + 32 ) WHEN + + 71 THEN - + COUNT ( * ) * - 59 - + 81 + SUM ( - 83 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT ALL COUNT( * ) * + - COUNT( * ) + 53 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL COUNT ( * ) * + - COUNT ( * ) + 53 AS col1
----
52

query II rowsort
SELECT DISTINCT + 41 * 21, 77 * 89 AS col0
----
861
6853

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6031
SELECT - 92 * + 31 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT - 92 * + 31 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6032
SELECT + 78 DIV - + COUNT( * ) + - COUNT( * ) + COUNT( * ) + + 90 * MAX( + 33 ) DIV 61
----
-30

skipif mysql # not compatible
query I rowsort label-6032
SELECT + 78 / - + COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) + + 90 * MAX ( + 33 ) / 61
----
-30

query I rowsort
SELECT - 58 * - 59
----
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT + MAX( DISTINCT 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6034
SELECT + MAX ( DISTINCT 28 ) AS col1
----
28

query I rowsort
SELECT ALL - ( - - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL 74 + - 88 * - - CASE COUNT( * ) WHEN - - NULLIF ( - 73, 49 * + 81 ) THEN 94 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL 74 + - 88 * - - CASE COUNT ( * ) WHEN - - NULLIF ( - 73, 49 * + 81 ) THEN 94 ELSE NULL END
----
NULL

query I rowsort
SELECT 49 * - 32
----
-1568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT ALL - CAST( 97 AS SIGNED ) + - 33 col2
----
-130

skipif mysql # not compatible
query I rowsort label-6038
SELECT ALL - CAST ( 97 AS INTEGER ) + - 33 col2
----
-130

query I rowsort
SELECT - COALESCE ( 39, - 24 * - - 80 + - + 23, 92 ) * - 65 - 14 AS col1
----
2521

query I rowsort
SELECT ALL - ( - ( 4 ) ) col0
----
4

query I rowsort
SELECT 39 * - 12 AS col1
----
-468

query I rowsort
SELECT ALL 8 + + 45
----
53

query I rowsort
SELECT 65 * + 82 AS col2
----
5330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6044
SELECT DISTINCT 99, CAST( NULL AS SIGNED ) + + ( + - 9 ) * - 47 + MAX( ( 6 ) ) + + - 16 AS col2
----
99
NULL

skipif mysql # not compatible
query II rowsort label-6044
SELECT DISTINCT 99, CAST ( NULL AS INTEGER ) + + ( + - 9 ) * - 47 + MAX ( ( 6 ) ) + + - 16 AS col2
----
99
NULL

query II rowsort
SELECT 10 * 85 + 93 AS col0, - 44
----
943
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6046
SELECT ALL + 19 - + + COALESCE ( 14, + COUNT( * ) DIV - 82 ) AS col0, - 4 AS col1
----
5
-4

skipif mysql # not compatible
query II rowsort label-6046
SELECT ALL + 19 - + + COALESCE ( 14, + COUNT ( * ) / - 82 ) AS col0, - 4 AS col1
----
5
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT COUNT( - 87 ) * - + 52
----
-52

skipif mysql # not compatible
query I rowsort label-6047
SELECT COUNT ( - 87 ) * - + 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT 64 * - + 4 * + COUNT( * ) col0
----
-256

skipif mysql # not compatible
query I rowsort label-6048
SELECT 64 * - + 4 * + COUNT ( * ) col0
----
-256

query II rowsort
SELECT - 14 AS col1, - 39
----
-14
-39

query I rowsort
SELECT DISTINCT 34 * + 30 AS col1
----
1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6051
SELECT + COALESCE ( - COUNT( * ), - + AVG ( + 17 ) * - COALESCE ( - + COUNT( * ), + CASE + - 99 WHEN - - COUNT( * ) + + 74 THEN + + ( 62 ) ELSE NULL END ) DIV + 59 DIV - 46 + - NULLIF ( 96, + 19 + 59 ) * 98 + - 69 ) * - 81 * 25
----
2025

skipif mysql # not compatible
query I rowsort label-6051
SELECT + COALESCE ( - COUNT ( * ), - + AVG ( + 17 ) * - COALESCE ( - + COUNT ( * ), + CASE + - 99 WHEN - - COUNT ( * ) + + 74 THEN + + ( 62 ) ELSE NULL END ) / + 59 / - 46 + - NULLIF ( 96, + 19 + 59 ) * 98 + - 69 ) * - 81 * 25
----
2025

query I rowsort
SELECT DISTINCT + ( 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6053
SELECT DISTINCT 61 * - COUNT( * ) - 57, + ( 74 ) AS col2
----
-118
74

skipif mysql # not compatible
query II rowsort label-6053
SELECT DISTINCT 61 * - COUNT ( * ) - 57, + ( 74 ) AS col2
----
-118
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT DISTINCT - 36 * + + MAX( + - 79 )
----
2844

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT - 36 * + + MAX ( + - 79 )
----
2844

query I rowsort
SELECT 0 * 83 AS col0
----
0

query I rowsort
SELECT ALL 19 * 13
----
247

query I rowsort
SELECT ALL 46 + - 51 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT 80 * COUNT( * ) * - - 21 AS col0
----
1680

skipif mysql # not compatible
query I rowsort label-6058
SELECT 80 * COUNT ( * ) * - - 21 AS col0
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT SUM( - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-6059
SELECT SUM ( - 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT + SUM( DISTINCT + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-6060
SELECT + SUM ( DISTINCT + 2 )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6061
SELECT 72 DIV 90 - - + 32 + - ( 73 )
----
-41

skipif mysql # not compatible
query I rowsort label-6061
SELECT 72 / 90 - - + 32 + - ( 73 )
----
-41

query I rowsort
SELECT ALL - 93 + 49 * + + 34 AS col2
----
1573

query I rowsort
SELECT 3 - + 34 * + 40 + - + 8
----
-1365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6064
SELECT DISTINCT + + ( COUNT( * ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT + + ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 60 + 97 AS col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL + 38 + - - COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL + 38 + - - COUNT ( * ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6067
SELECT 14, - COUNT( * ) * MIN( 93 ) AS col2
----
14
-93

skipif mysql # not compatible
query II rowsort label-6067
SELECT 14, - COUNT ( * ) * MIN ( 93 ) AS col2
----
14
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT 50 * - 7 + - COUNT( * )
----
-351

skipif mysql # not compatible
query I rowsort label-6068
SELECT 50 * - 7 + - COUNT ( * )
----
-351

query II rowsort
SELECT 20, + 37 AS col1
----
20
37

query I rowsort
SELECT ALL - 77 * - 67 AS col1
----
5159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6071
SELECT 90, CASE + 80 WHEN 66 * + ( - - MAX( + + 21 ) ) * + COUNT( * ) - - ( 20 ) THEN + 59 + + - COALESCE ( + COALESCE ( + CASE 45 WHEN + 63 + + - COUNT( * ) + + 70 + - - 55 THEN - NULLIF ( + SUM( 74 ), + - 17 + COUNT( + 1 ) + - + 30 + CAST( NULL AS SIGNED ) * + 36 / 81 * + - CAST( NULL AS SIGNED ) ) / - 52 * + + AVG ( ALL 98 ) * 89 + + - 57 - - 9 WHEN + 27 THEN NULL END, + 29, - 30 ), + - 44 * - - 46, - CASE COUNT( * ) WHEN CASE COUNT( * ) WHEN - 5 THEN 40 ELSE NULL END - + 10 THEN + ( COUNT( * ) ) WHEN 75 * - 43 THEN NULL ELSE NULL END ) + + ( + ( - 31 ) ) END + 66 * 67 AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-6071
SELECT 90, CASE + 80 WHEN 66 * + ( - - MAX ( + + 21 ) ) * + COUNT ( * ) - - ( 20 ) THEN + 59 + + - COALESCE ( + COALESCE ( + CASE 45 WHEN + 63 + + - COUNT ( * ) + + 70 + - - 55 THEN - NULLIF ( + SUM ( 74 ), + - 17 + COUNT ( + 1 ) + - + 30 + CAST ( NULL AS INTEGER ) * + 36 / 81 * + - CAST ( NULL AS INTEGER ) ) / - 52 * + + AVG ( ALL 98 ) * 89 + + - 57 - - 9 WHEN + 27 THEN NULL END, + 29, - 30 ), + - 44 * - - 46, - CASE COUNT ( * ) WHEN CASE COUNT ( * ) WHEN - 5 THEN 40 ELSE NULL END - + 10 THEN + ( COUNT ( * ) ) WHEN 75 * - 43 THEN NULL ELSE NULL END ) + + ( + ( - 31 ) ) END + 66 * 67 AS col0
----
90
NULL

query I rowsort
SELECT 75 - + - 42 AS col0
----
117

query I rowsort
SELECT 81 + 18
----
99

query I rowsort
SELECT DISTINCT + 5 + + - 61
----
-56

query I rowsort
SELECT ALL - 50 + + - 21 * - 0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6076
SELECT ALL COUNT( * ) * - - 97 AS col2, 47
----
97
47

skipif mysql # not compatible
query II rowsort label-6076
SELECT ALL COUNT ( * ) * - - 97 AS col2, 47
----
97
47

query I rowsort
SELECT DISTINCT + 5 - + + 46 + + + ( + 45 ) AS col0
----
4

query II rowsort
SELECT ALL - 10 AS col2, 45 - + 65 AS col2
----
-10
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT + 22 * 23 + - - 99 * + COUNT( * ) + COUNT( * ) AS col0
----
606

skipif mysql # not compatible
query I rowsort label-6079
SELECT + 22 * 23 + - - 99 * + COUNT ( * ) + COUNT ( * ) AS col0
----
606

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT ALL - 87 - + COUNT( * ) + 2
----
-86

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL - 87 - + COUNT ( * ) + 2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT DISTINCT + 33 DIV 5 DIV + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT + 33 / 5 / + 88 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT 64 DIV + - 4 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6082
SELECT 64 / + - 4 AS col1
----
-16

query I rowsort
SELECT ALL + 15 * - 5 * 89 col2
----
-6675

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT ALL COUNT( * ) AS col0, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-6084
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL MIN( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL MIN ( - 16 )
----
-16

query I rowsort
SELECT - 97 * 54
----
-5238

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT - ( ( + 75 ) ) * COUNT( * ) AS col0, + 4 * + 16 AS col2
----
-75
64

skipif mysql # not compatible
query II rowsort label-6087
SELECT - ( ( + 75 ) ) * COUNT ( * ) AS col0, + 4 * + 16 AS col2
----
-75
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT DISTINCT + CAST( - - NULLIF ( + 5, 85 * - + 90 ) AS SIGNED ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT + CAST ( - - NULLIF ( + 5, 85 * - + 90 ) AS INTEGER ) AS col2
----
5

query II rowsort
SELECT ALL + 82 AS col1, - 55 AS col2
----
82
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6090
SELECT ALL + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 86 + - + 33 * + + 94 col2
----
-3016

query I rowsort
SELECT + - 46 - + - 74 * + 12
----
842

query I rowsort
SELECT ALL + 83 + 85 - + 57 AS col1
----
111

query I rowsort
SELECT - + 77 + 71 col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6095
SELECT + CAST( - - 31 AS SIGNED ) - + 41 + COUNT( * ) + - 18
----
-27

skipif mysql # not compatible
query I rowsort label-6095
SELECT + CAST ( - - 31 AS INTEGER ) - + 41 + COUNT ( * ) + - 18
----
-27

query I rowsort
SELECT - - 2 + - 91 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT DISTINCT - COUNT( DISTINCT 25 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - COUNT ( DISTINCT 25 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL - + 24 + COUNT( * ) * + 4 + - 27 + + 1 * - 52 * + 91
----
-4779

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - + 24 + COUNT ( * ) * + 4 + - 27 + + 1 * - 52 * + 91
----
-4779

query I rowsort
SELECT DISTINCT + 64 + 49 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL MIN( - + 14 ) + + 59 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL MIN ( - + 14 ) + + 59 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6101
SELECT MAX( - CAST( + - 6 AS SIGNED ) ) * - - 66 * - ( + 12 ) + + 69, 38 AS col0
----
-4683
38

skipif mysql # not compatible
query II rowsort label-6101
SELECT MAX ( - CAST ( + - 6 AS INTEGER ) ) * - - 66 * - ( + 12 ) + + 69, 38 AS col0
----
-4683
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6102
SELECT ALL - 97 * - - 82 + - + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL - 97 * - - 82 + - + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT + 69 * - COALESCE ( 93, 96 )
----
-6417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6104
SELECT COUNT( * ) DIV 45 DIV + 1 + + - 73 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-6104
SELECT COUNT ( * ) / 45 / + 1 + + - 73 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT + MIN( + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6105
SELECT + MIN ( + 24 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT ALL 18 * - 98 - - COUNT( * ), 41 + - - COUNT( * ) + + 74 * 18 AS col2
----
-1763
1374

skipif mysql # not compatible
query II rowsort label-6106
SELECT ALL 18 * - 98 - - COUNT ( * ), 41 + - - COUNT ( * ) + + 74 * 18 AS col2
----
-1763
1374

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6107
SELECT DISTINCT + COUNT( - - 64 ) * + + 2 DIV 86 - + 84 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT + COUNT ( - - 64 ) * + + 2 / 86 - + 84 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT ALL + MAX( 10 ) * 97 AS col0
----
970

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL + MAX ( 10 ) * 97 AS col0
----
970

query I rowsort
SELECT ALL 97 * - 7 AS col2
----
-679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT DISTINCT 32 * CAST( - 65 AS SIGNED )
----
-2080

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT 32 * CAST ( - 65 AS INTEGER )
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL 90 * - NULLIF ( COUNT( * ), + - 63 / + - 44 / + + SUM( 17 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL 90 * - NULLIF ( COUNT ( * ), + - 63 / + - 44 / + + SUM ( 17 ) )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6112
SELECT + MAX( ALL - 16 ) * - - 70 + - COUNT( * ) - + 3 + + + 96 - - COUNT( * ) + + CAST( NULL AS SIGNED ) * - 30 * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT + MAX ( ALL - 16 ) * - - 70 + - COUNT ( * ) - + 3 + + + 96 - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 30 * + 29
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6113
SELECT - 61 DIV + 50 AS col1, 0 DIV - 53 DIV - 9 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-6113
SELECT - 61 / + 50 AS col1, 0 / - 53 / - 9 AS col1
----
-1
0

query I rowsort
SELECT + 72 * - ( - 50 )
----
3600

onlyif mysql # DIV for integer division: 
query I rowsort label-6115
SELECT - 8 - 21 DIV 92
----
-8

skipif mysql # not compatible
query I rowsort label-6115
SELECT - 8 - 21 / 92
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT DISTINCT - 56 + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-6116
SELECT DISTINCT - 56 + - COUNT ( * )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6117
SELECT ALL + - 64 + + - 77 + + + CAST( + CAST( 29 AS DECIMAL ) AS SIGNED ) + - 33 * 4 + + SUM( DISTINCT - + 17 ) AS col2
----
-261

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + - 64 + + - 77 + + + CAST ( + CAST ( 29 AS REAL ) AS INTEGER ) + - 33 * 4 + + SUM ( DISTINCT - + 17 ) AS col2
----
-261

query I rowsort
SELECT + 93 * - 51 + - 8 + - + 5 * + 93 + + - 16
----
-5232

query I rowsort
SELECT ALL - - 51 + + + 17
----
68

query I rowsort
SELECT - - 15 * + 96 + + + 98 AS col0
----
1538

onlyif mysql # aggregate syntax: 
query II rowsort label-6121
SELECT DISTINCT - MIN( + 23 ), ( + 9 ) col0
----
-23
9

skipif mysql # not compatible
query II rowsort label-6121
SELECT DISTINCT - MIN ( + 23 ), ( + 9 ) col0
----
-23
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6122
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + 48 AS col2, - 89 * - - COUNT( * )
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-6122
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + 48 AS col2, - 89 * - - COUNT ( * )
----
NULL
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6123
SELECT - - COUNT( DISTINCT + 22 ) DIV + + 3
----
0

skipif mysql # not compatible
query I rowsort label-6123
SELECT - - COUNT ( DISTINCT + 22 ) / + + 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL - 60 + - + 24 - + COUNT( * ) + + - 45
----
-130

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL - 60 + - + 24 - + COUNT ( * ) + + - 45
----
-130

query I rowsort
SELECT - - NULLIF ( 92, + 92 + + + 23 + - 94 * + + 88 ) col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT + COALESCE ( - 79, - COUNT( * ) ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-6126
SELECT + COALESCE ( - 79, - COUNT ( * ) ) col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6127
SELECT - 0 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT - 0 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT + 70 DIV + 30 + 48 col1
----
50

skipif mysql # not compatible
query I rowsort label-6128
SELECT + 70 / + 30 + 48 col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6129
SELECT DISTINCT - + COUNT( * ) - - 12 + COUNT( CAST( NULL AS SIGNED ) ) col2
----
11

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT - + COUNT ( * ) - - 12 + COUNT ( CAST ( NULL AS INTEGER ) ) col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT - MIN( ALL + 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-6130
SELECT - MIN ( ALL + 52 ) AS col1
----
-52

query I rowsort
SELECT + ( + ( - + 66 ) )
----
-66

query I rowsort
SELECT DISTINCT 92 * + 52 * - 76
----
-363584

query II rowsort
SELECT DISTINCT + 26 col2, 47 AS col0
----
26
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6134
SELECT ALL + 39 AS col1, + SUM( + + ( + 5 ) ) + 76
----
39
81

skipif mysql # not compatible
query II rowsort label-6134
SELECT ALL + 39 AS col1, + SUM ( + + ( + 5 ) ) + 76
----
39
81

query I rowsort
SELECT DISTINCT + 33 * + ( COALESCE ( + 81, - + 6 ) )
----
2673

query I rowsort
SELECT + ( 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT ALL + SUM( ALL 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL + SUM ( ALL 32 ) AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6138
SELECT + CAST( - + 61 AS SIGNED ) * + 0 DIV - ( COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6138
SELECT + CAST ( - + 61 AS INTEGER ) * + 0 / - ( COUNT ( * ) ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT CAST( + - 89 AS SIGNED ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6139
SELECT CAST ( + - 89 AS INTEGER ) AS col1
----
-89

query II rowsort
SELECT ALL + 29, 12 AS col2
----
29
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6141
SELECT COUNT( * ) * 61 + + 92 + - - 76 AS col0, - 42 AS col2
----
229
-42

skipif mysql # not compatible
query II rowsort label-6141
SELECT COUNT ( * ) * 61 + + 92 + - - 76 AS col0, - 42 AS col2
----
229
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6142
SELECT CAST( 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-6142
SELECT CAST ( 79 AS INTEGER )
----
79

query II rowsort
SELECT ( - ( - + 14 ) ), 94 AS col1
----
14
94

query I rowsort
SELECT + 49 * + 67
----
3283

query I rowsort
SELECT + 55 * ( + 23 ) AS col1
----
1265

onlyif mysql # DIV for integer division: 
query I rowsort label-6146
SELECT DISTINCT 78 DIV - - 75 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT 78 / - - 75 AS col0
----
1

query I rowsort
SELECT + 1 + - + 79 - 9 AS col1
----
-87

query I rowsort
SELECT DISTINCT + 49 * - 44 AS col1
----
-2156

query I rowsort
SELECT 40 + + 47 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT NULLIF ( - 61, MIN( - + 75 ) * + 45 ) * - 11 * + - 40
----
-26840

skipif mysql # not compatible
query I rowsort label-6150
SELECT NULLIF ( - 61, MIN ( - + 75 ) * + 45 ) * - 11 * + - 40
----
-26840

query II rowsort
SELECT ALL 24 AS col1, 34 + 28 + - 61 AS col2
----
24
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT - NULLIF ( 60, + SUM( + 26 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-6152
SELECT - NULLIF ( 60, + SUM ( + 26 ) )
----
-60

query II rowsort
SELECT 56 col2, 96 * - 84
----
56
-8064

query I rowsort
SELECT ALL + 75 + 77 AS col0
----
152

query I rowsort
SELECT 9 - 37 AS col1
----
-28

query I rowsort
SELECT DISTINCT 74 + - 47 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT ALL - SUM( - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL - SUM ( - 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT + COUNT( * ) + 36 + COALESCE ( 81, + - 78 ) * + - MAX( - + 31 )
----
2548

skipif mysql # not compatible
query I rowsort label-6158
SELECT + COUNT ( * ) + 36 + COALESCE ( 81, + - 78 ) * + - MAX ( - + 31 )
----
2548

query II rowsort
SELECT DISTINCT 91, - 15 AS col0
----
91
-15

query I rowsort
SELECT ALL 1 - + 12
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-6161
SELECT - MAX( - 23 ) + 41 + - 95, + 35 * + NULLIF ( - - 19, - 63 ) col1
----
-31
665

skipif mysql # not compatible
query II rowsort label-6161
SELECT - MAX ( - 23 ) + 41 + - 95, + 35 * + NULLIF ( - - 19, - 63 ) col1
----
-31
665

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT 78 - + COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6162
SELECT 78 - + COUNT ( * ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT - MIN( DISTINCT 99 ) + + 59 * + 37 + - - 87
----
2171

skipif mysql # not compatible
query I rowsort label-6163
SELECT - MIN ( DISTINCT 99 ) + + 59 * + 37 + - - 87
----
2171

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL - + 44 - - - 66 * CASE + 46 WHEN - 3 - 84 / COUNT( + 38 ) THEN + NULLIF ( - 14, 23 ) + 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL - + 44 - - - 66 * CASE + 46 WHEN - 3 - 84 / COUNT ( + 38 ) THEN + NULLIF ( - 14, 23 ) + 20 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT DISTINCT 86 - + 83 - + + 65 + - 67 - - + 13 * + COUNT( * ) * ( 19 ) * + 35 + + 96
----
8612

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT 86 - + 83 - + + 65 + - 67 - - + 13 * + COUNT ( * ) * ( 19 ) * + 35 + + 96
----
8612

query I rowsort
SELECT 65 + + + 57
----
122

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6167
SELECT + COUNT( * ) DIV 53 DIV + ( + + 27 ) * - COUNT( * ) + 16 DIV + + COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6167
SELECT + COUNT ( * ) / 53 / + ( + + 27 ) * - COUNT ( * ) + 16 / + + COUNT ( * ) AS col1
----
16

query II rowsort
SELECT ALL - ( - - 10 ) AS col1, 84 + 61
----
-10
145

onlyif mysql # DIV for integer division: 
query I rowsort label-6169
SELECT DISTINCT - 74 DIV + + 66
----
-1

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT - 74 / + + 66
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6170
SELECT 74 * CAST( NULL AS SIGNED ), 55 * 29 DIV + 82 - - 49 + - 58 * + - ( 29 ) AS col0
----
NULL
1750

skipif mysql # not compatible
query II rowsort label-6170
SELECT 74 * CAST ( NULL AS INTEGER ), 55 * 29 / + 82 - - 49 + - 58 * + - ( 29 ) AS col0
----
NULL
1750

query I rowsort
SELECT 9 + + 8 - + 74 * 4
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT ( - 84 ) + + 59 DIV - 76 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6172
SELECT ( - 84 ) + + 59 / - 76 AS col0
----
-84

query I rowsort
SELECT ALL 37 + + 76 + + 17
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6174
SELECT ALL MAX( ALL + 27 ) + + - ( + 97 ) - 99 * 62 * CAST( - CAST( - COALESCE ( - + 35, - COUNT( * ) * NULLIF ( + 2, 92 ) * + 65 / 41 ) AS SIGNED ) AS SIGNED ) * - - 75 col1
----
16112180

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL MAX ( ALL + 27 ) + + - ( + 97 ) - 99 * 62 * CAST ( - CAST ( - COALESCE ( - + 35, - COUNT ( * ) * NULLIF ( + 2, 92 ) * + 65 / 41 ) AS INTEGER ) AS INTEGER ) * - - 75 col1
----
16112180

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT ALL - NULLIF ( COUNT( * ), - 31 + + - 17 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL - NULLIF ( COUNT ( * ), - 31 + + - 17 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT - 2 + - MIN( - 27 ) * - 48 * 1 AS col1
----
-1298

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT - 2 + - MIN ( - 27 ) * - 48 * 1 AS col1
----
-1298

query I rowsort
SELECT ALL - 84 + - 99
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT 24 - COUNT( * ) * 77 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-6178
SELECT 24 - COUNT ( * ) * 77 AS col2
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT + COALESCE ( - - COUNT( * ), - COUNT( ( + 0 ) ) DIV ( + + NULLIF ( + COUNT( ALL 79 ), 79 ) ), - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-6179
SELECT + COALESCE ( - - COUNT ( * ), - COUNT ( ( + 0 ) ) / ( + + NULLIF ( + COUNT ( ALL 79 ), 79 ) ), - 37 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT + - MIN( DISTINCT + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-6180
SELECT + - MIN ( DISTINCT + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + 80 * + MIN( DISTINCT + + 77 ) + 28
----
6188

skipif mysql # not compatible
query I rowsort label-6181
SELECT + 80 * + MIN ( DISTINCT + + 77 ) + 28
----
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL - + CASE COUNT( * ) WHEN - 26 + 28 * 87 / + - ( - 22 ) THEN NULL ELSE + 82 * + SUM( ALL 30 ) + - 98 END
----
-2362

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - + CASE COUNT ( * ) WHEN - 26 + 28 * 87 / + - ( - 22 ) THEN NULL ELSE + 82 * + SUM ( ALL 30 ) + - 98 END
----
-2362

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6183
SELECT + 40 * COALESCE ( + ( - + 55 ), + 78, + 5 ) DIV + - 80, COUNT( * ) AS col0
----
27
1

skipif mysql # not compatible
query II rowsort label-6183
SELECT + 40 * COALESCE ( + ( - + 55 ), + 78, + 5 ) / + - 80, COUNT ( * ) AS col0
----
27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL 19 * MIN( 7 )
----
133

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL 19 * MIN ( 7 )
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-6185
SELECT DISTINCT 58 + + + 0 DIV 44
----
58

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT 58 + + + 0 / 44
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6186
SELECT DISTINCT - MIN( - + 8 ) DIV + 15 * + - 94 AS col1, + 84
----
0
84

skipif mysql # not compatible
query II rowsort label-6186
SELECT DISTINCT - MIN ( - + 8 ) / + 15 * + - 94 AS col1, + 84
----
0
84

query I rowsort
SELECT + 6 - 41
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6188
SELECT ALL 46 * - - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL 46 * - - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 85 * - 51 AS col1
----
-4335

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT DISTINCT COUNT( * ) * COALESCE ( + + 69, - 56 ) * - - NULLIF ( 66, - 57 * 85 - - 53 ) AS col0
----
4554

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT COUNT ( * ) * COALESCE ( + + 69, - 56 ) * - - NULLIF ( 66, - 57 * 85 - - 53 ) AS col0
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT 93 + + ( COUNT( * ) ) * + 36
----
129

skipif mysql # not compatible
query I rowsort label-6191
SELECT 93 + + ( COUNT ( * ) ) * + 36
----
129

query I rowsort
SELECT + 56 * - 80 AS col0
----
-4480

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + 65 + - - MAX( - + 85 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6193
SELECT + 65 + - - MAX ( - + 85 ) AS col2
----
-20

query I rowsort
SELECT ALL - 87 * - 60
----
5220

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6195
SELECT ( + MAX( ALL - 27 ) ) - - SUM( ALL + 18 ) + - 48 - 20 + + 2 DIV + + 21
----
-77

skipif mysql # not compatible
query I rowsort label-6195
SELECT ( + MAX ( ALL - 27 ) ) - - SUM ( ALL + 18 ) + - 48 - 20 + + 2 / + + 21
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6196
SELECT CAST( 13 AS SIGNED ) + - 9 - + + COUNT( * ) * 74
----
-70

skipif mysql # not compatible
query I rowsort label-6196
SELECT CAST ( 13 AS INTEGER ) + - 9 - + + COUNT ( * ) * 74
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-6197
SELECT - CASE - + 63 WHEN + COUNT( DISTINCT 22 ) THEN + COUNT( * ) ELSE COUNT( * ) * - 93 - - + 68 END col2, COUNT( * ) * - 37 AS col0
----
25
-37

skipif mysql # not compatible
query II rowsort label-6197
SELECT - CASE - + 63 WHEN + COUNT ( DISTINCT 22 ) THEN + COUNT ( * ) ELSE COUNT ( * ) * - 93 - - + 68 END col2, COUNT ( * ) * - 37 AS col0
----
25
-37

query I rowsort
SELECT 83 * 83 AS col0
----
6889

query I rowsort
SELECT 19 * - 68 AS col1
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT NULLIF ( 25, ( - 16 ) + - 8 / 7 * + 89 + + COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-6200
SELECT NULLIF ( 25, ( - 16 ) + - 8 / 7 * + 89 + + COUNT ( * ) )
----
25

query I rowsort
SELECT ALL 32 * - 95
----
-3040

query I rowsort
SELECT + 18 * + 78 - - 14
----
1418

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6203
SELECT ALL - NULLIF ( 69, - CAST( NULL AS SIGNED ) ), 78 + - 17 AS col2
----
-69
61

skipif mysql # not compatible
query II rowsort label-6203
SELECT ALL - NULLIF ( 69, - CAST ( NULL AS INTEGER ) ), 78 + - 17 AS col2
----
-69
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT DISTINCT 67 * - 80 + - MIN( - - 16 ) * + + 57 * + 68 + + 9
----
-67367

skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT 67 * - 80 + - MIN ( - - 16 ) * + + 57 * + 68 + + 9
----
-67367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6205
SELECT ALL + CAST( NULL AS SIGNED ) / 53 * + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL + CAST ( NULL AS INTEGER ) / 53 * + 72 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6206
SELECT - 66 + - 43 + + + 99 * 58 * - 67 * - CAST( NULL AS SIGNED ) AS col2, - 38 * COUNT( * )
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-6206
SELECT - 66 + - 43 + + + 99 * 58 * - 67 * - CAST ( NULL AS INTEGER ) AS col2, - 38 * COUNT ( * )
----
NULL
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6207
SELECT + SUM( ALL - + COALESCE ( + + 64, - CASE + 20 WHEN - 89 - + 59 THEN - 33 + + 16 WHEN COALESCE ( - 29, + 39, 57 ) * + 61 + 68 - 91 + + - 47 * + 23 * + 16 * - 13 * + - 3 DIV 91 THEN NULL END, 2 ) ) * 69 + COUNT( * ) + - COUNT( * ) + - 91 + - ( + 36 ) + + NULLIF ( + 5, 52 ) * - COUNT( * ) * - - 60 * COALESCE ( - 42, - AVG ( + 64 ) DIV 94 + + 72 + - - 68 * - 1 + - 31 DIV - + 66 + 62 + 32 * 42 DIV + 78 ) DIV COUNT( * ) * 20 col2
----
247457

skipif mysql # not compatible
query I rowsort label-6207
SELECT + SUM ( ALL - + COALESCE ( + + 64, - CASE + 20 WHEN - 89 - + 59 THEN - 33 + + 16 WHEN COALESCE ( - 29, + 39, 57 ) * + 61 + 68 - 91 + + - 47 * + 23 * + 16 * - 13 * + - 3 / 91 THEN NULL END, 2 ) ) * 69 + COUNT ( * ) + - COUNT ( * ) + - 91 + - ( + 36 ) + + NULLIF ( + 5, 52 ) * - COUNT ( * ) * - - 60 * COALESCE ( - 42, - AVG ( + 64 ) / 94 + + 72 + - - 68 * - 1 + - 31 / - + 66 + 62 + 32 * 42 / + 78 ) / COUNT ( * ) * 20 col2
----
247457

query I rowsort
SELECT - 48 * + - 22
----
1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6209
SELECT ALL + COUNT( * ) DIV + 12 * - 18 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL + COUNT ( * ) / + 12 * - 18 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT CASE + 99 WHEN COALESCE ( - 16, 98 * MAX( ALL - 73 ) / 26 + - - 2 ) THEN - + COUNT( * ) + 84 + - - 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6210
SELECT CASE + 99 WHEN COALESCE ( - 16, 98 * MAX ( ALL - 73 ) / 26 + - - 2 ) THEN - + COUNT ( * ) + 84 + - - 33 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6211
SELECT + 47 AS col1, 71 DIV + - 2 + 27 col1
----
47
-8

skipif mysql # not compatible
query II rowsort label-6211
SELECT + 47 AS col1, 71 / + - 2 + 27 col1
----
47
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6212
SELECT 10 AS col1, COALESCE ( + + 88, + + 70 + + CASE + 83 WHEN - - 23 + + - 49 * - COUNT( * ) * COUNT( 12 ) THEN 0 WHEN - - 71 THEN 98 * - ( - + 60 ) + + 99 + + 36 END ) AS col2
----
10
88

skipif mysql # not compatible
query II rowsort label-6212
SELECT 10 AS col1, COALESCE ( + + 88, + + 70 + + CASE + 83 WHEN - - 23 + + - 49 * - COUNT ( * ) * COUNT ( 12 ) THEN 0 WHEN - - 71 THEN 98 * - ( - + 60 ) + + 99 + + 36 END ) AS col2
----
10
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT DISTINCT - - 52 * 69 + + COALESCE ( - 25, - 17 + - + 62 ) + - - COUNT( * ) + + + COALESCE ( - MIN( DISTINCT 53 ), 70 ) AS col0
----
3511

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT - - 52 * 69 + + COALESCE ( - 25, - 17 + - + 62 ) + - - COUNT ( * ) + + + COALESCE ( - MIN ( DISTINCT 53 ), 70 ) AS col0
----
3511

query II rowsort
SELECT + - 38, + 18 AS col1
----
-38
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT ALL + + SUM( ALL + - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL + + SUM ( ALL + - 45 )
----
-45

query I rowsort
SELECT ALL - + 2 - - 42 AS col0
----
40

query I rowsort
SELECT - + 9 * - + 95 AS col2
----
855

query I rowsort
SELECT + + 3 * + 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT - + 17 + 62 * + + 75 * + - ( + COUNT( * ) )
----
-4667

skipif mysql # not compatible
query I rowsort label-6219
SELECT - + 17 + 62 * + + 75 * + - ( + COUNT ( * ) )
----
-4667

onlyif mysql # DIV for integer division: 
query II rowsort label-6220
SELECT - 80 * + 16 + 93, + 61 DIV 63 AS col0
----
-1187
0

skipif mysql # not compatible
query II rowsort label-6220
SELECT - 80 * + 16 + 93, + 61 / 63 AS col0
----
-1187
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT + MAX( DISTINCT - 50 ) - 23
----
-73

skipif mysql # not compatible
query I rowsort label-6221
SELECT + MAX ( DISTINCT - 50 ) - 23
----
-73

query II rowsort
SELECT + 55, - 98 AS col2
----
55
-98

query I rowsort
SELECT - 81 * - + 86 * + 61 * + 65 + - 68
----
27620122

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6224
SELECT ALL + 71 / - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + 71 / - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT ALL 62 * COUNT( * ) * - - 51 col0
----
3162

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL 62 * COUNT ( * ) * - - 51 col0
----
3162

query I rowsort
SELECT + 68 + + 41 * - 53 AS col1
----
-2105

onlyif mysql # DIV for integer division: 
query I rowsort label-6227
SELECT + ( + 1 ) DIV + 1
----
1

skipif mysql # not compatible
query I rowsort label-6227
SELECT + ( + 1 ) / + 1
----
1

query I rowsort
SELECT + 62 - - + 63 AS col1
----
125

query I rowsort
SELECT ALL 68 * - - 81
----
5508

query I rowsort
SELECT ALL 27 + - 73
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT + 32 + - ( + 82 ) * + 71 * + - 56 * COUNT( * ) * - 86 AS col1
----
-28038720

skipif mysql # not compatible
query I rowsort label-6231
SELECT + 32 + - ( + 82 ) * + 71 * + - 56 * COUNT ( * ) * - 86 AS col1
----
-28038720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6232
SELECT + 38 + - 34 + ( + + MAX( - + CAST( NULL AS DECIMAL ) ) ) / + ( + COUNT( * ) ) / + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6232
SELECT + 38 + - 34 + ( + + MAX ( - + CAST ( NULL AS REAL ) ) ) / + ( + COUNT ( * ) ) / + 38 AS col1
----
NULL

query II rowsort
SELECT 68, + 96 AS col0
----
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT + ( 51 ) DIV - - 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6234
SELECT + ( 51 ) / - - 7 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT ALL NULLIF ( 71, COUNT( * ) ) + - 74 * ( - 90 ) * - 56
----
-372889

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL NULLIF ( 71, COUNT ( * ) ) + - 74 * ( - 90 ) * - 56
----
-372889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6236
SELECT + CAST( NULL AS SIGNED ) + MIN( - 32 ) + - 48 / + - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT + CAST ( NULL AS INTEGER ) + MIN ( - 32 ) + - 48 / + - 6 AS col2
----
NULL

query II rowsort
SELECT 79, 8 AS col0
----
79
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT + COUNT( * ) + + 81
----
82

skipif mysql # not compatible
query I rowsort label-6238
SELECT + COUNT ( * ) + + 81
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT DISTINCT 26 + + 31 + + 20 + - 29 DIV 46 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT 26 + + 31 + + 20 + - 29 / 46 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6240
SELECT ALL MAX( ALL + - 19 ) + + 45 / + COALESCE ( - + 45, 39 ) / - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL MAX ( ALL + - 19 ) + + 45 / + COALESCE ( - + 45, 39 ) / - - CAST ( NULL AS INTEGER ) col1
----
NULL

query II rowsort
SELECT 98 AS col1, 66
----
98
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT + CASE + 9 WHEN - 39 * + 39 + - 70 / 46 THEN + 76 ELSE - + 19 + - - 32 END * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT + CASE + 9 WHEN - 39 * + 39 + - 70 / 46 THEN + 76 ELSE - + 19 + - - 32 END * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT 30 DIV 24 + - 30 + - 79 col2
----
-108

skipif mysql # not compatible
query I rowsort label-6243
SELECT 30 / 24 + - 30 + - 79 col2
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT + 19 DIV - 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6244
SELECT + 19 / - 60 AS col2
----
0

query II rowsort
SELECT ( 63 ) AS col1, 85 AS col2
----
63
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6246
SELECT ALL - + COUNT( * ) DIV - 91 - - 66
----
66

skipif mysql # not compatible
query I rowsort label-6246
SELECT ALL - + COUNT ( * ) / - 91 - - 66
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT DISTINCT + + 79 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT + + 79 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6248
SELECT ALL COUNT( * ) * + 21 AS col2, - 84 + 56
----
21
-28

skipif mysql # not compatible
query II rowsort label-6248
SELECT ALL COUNT ( * ) * + 21 AS col2, - 84 + 56
----
21
-28

query I rowsort
SELECT - 61 * - + COALESCE ( + 21, - - 70 )
----
1281

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT DISTINCT - 76 * - 3 - + COUNT( * )
----
227

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT - 76 * - 3 - + COUNT ( * )
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT ALL + 55 * + COUNT( * ) * + + 83 * + ( - SUM( - 38 ) ) * - COALESCE ( 69, - - 33 ) + + 22 + CASE + + 35 WHEN - CASE - 67 WHEN + - COUNT( * ) THEN NULL WHEN 44 / AVG ( DISTINCT + 26 ) THEN 21 * - - 47 * 10 END + 15 + + 92 THEN 56 WHEN 95 THEN - 27 WHEN + + 30 THEN 20 END - - + ( - ( - ( 80 ) ) ) - - COUNT( * ) - 4 - - + COUNT( ALL 25 ) / 36 / 24 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + 55 * + COUNT ( * ) * + + 83 * + ( - SUM ( - 38 ) ) * - COALESCE ( 69, - - 33 ) + + 22 + CASE + + 35 WHEN - CASE - 67 WHEN + - COUNT ( * ) THEN NULL WHEN 44 / AVG ( DISTINCT + 26 ) THEN 21 * - - 47 * 10 END + 15 + + 92 THEN 56 WHEN 95 THEN - 27 WHEN + + 30 THEN 20 END - - + ( - ( - ( 80 ) ) ) - - COUNT ( * ) - 4 - - + COUNT ( ALL 25 ) / 36 / 24 / - COUNT ( * )
----
NULL

query I rowsort
SELECT - + 7 + + - 98
----
-105

query I rowsort
SELECT ALL + - CASE - + 27 WHEN + - 20 THEN + + 86 WHEN - 38 THEN NULL END
----
NULL

query I rowsort
SELECT - + 63 - 64 * - 41 * 10 AS col1
----
26177

query I rowsort
SELECT - + 57 * - + ( + + NULLIF ( - 56, - 76 ) ) - + ( - ( 7 ) ) + 98
----
-3087

query II rowsort
SELECT ALL + 43 AS col2, - 36 AS col2
----
43
-36

query II rowsort
SELECT DISTINCT + 73 AS col2, 3 AS col0
----
73
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6258
SELECT ALL + - 37 * + - 66 + + 4 + - ( + CAST( NULL AS SIGNED ) ) - - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL + - 37 * + - 66 + + 4 + - ( + CAST ( NULL AS INTEGER ) ) - - 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6259
SELECT DISTINCT + 50 DIV 91 * 76 * COUNT( * ) * - 28
----
0

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT + 50 / 91 * 76 * COUNT ( * ) * - 28
----
0

query I rowsort
SELECT - - 80 + - ( 10 ) AS col1
----
70

query I rowsort
SELECT DISTINCT + 69 * 58 * - - ( - - ( - ( + + 37 ) ) )
----
-148074

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL - NULLIF ( - - ( + COUNT( * ) ), + 74 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL - NULLIF ( - - ( + COUNT ( * ) ), + 74 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6263
SELECT - + CAST( + CASE 42 WHEN + 93 THEN NULL WHEN 85 + + - COUNT( * ) THEN - 98 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT - + CAST ( + CASE 42 WHEN + 93 THEN NULL WHEN 85 + + - COUNT ( * ) THEN - 98 END AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 42 * - 81 AS col1, 26 - - ( ( - 38 ) )
----
-3402
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT - - 31 * - - MIN( + 88 ) * - 98 AS col0
----
-267344

skipif mysql # not compatible
query I rowsort label-6265
SELECT - - 31 * - - MIN ( + 88 ) * - 98 AS col0
----
-267344

query III rowsort
SELECT DISTINCT + 87 * 6 AS col2, - 43 * - 49 * 32 AS col2, + 89
----
522
67424
89

query I rowsort
SELECT ALL 4 * 5 * + ( + 78 ) + + 31 * - ( 1 ) + 57 col0
----
1586

query I rowsort
SELECT + 62 + 41
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL COUNT( * ) + + 78 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL COUNT ( * ) + + 78 AS col0
----
79

query I rowsort
SELECT ALL 21 + 1 + - 95 * + 52 + - 81 * + + 99
----
-12937

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT CASE 90 WHEN + + 84 + 21 * 70 + COUNT( * ) + SUM( DISTINCT 34 ) / + + 14 * - 96 THEN - 19 + - - 97 * + MAX( ALL + + 64 ) END / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT CASE 90 WHEN + + 84 + 21 * 70 + COUNT ( * ) + SUM ( DISTINCT 34 ) / + + 14 * - 96 THEN - 19 + - - 97 * + MAX ( ALL + + 64 ) END / 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * - - MAX( ALL + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * - - MAX ( ALL + 79 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT DISTINCT NULLIF ( + 9, - 7 ) DIV + - 55
----
0

skipif mysql # not compatible
query I rowsort label-6273
SELECT DISTINCT NULLIF ( + 9, - 7 ) / + - 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT SUM( ALL + 45 ) - - 93 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-6274
SELECT SUM ( ALL + 45 ) - - 93 AS col1
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6275
SELECT CAST( NULL AS SIGNED ) * - ( - AVG ( DISTINCT - 99 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT CAST ( NULL AS INTEGER ) * - ( - AVG ( DISTINCT - 99 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT DISTINCT ( - ( + - COALESCE ( 75, + COUNT( * ) * - 68, + 54 - 68 ) ) ) * 8 - + 71 - COALESCE ( - 6, 9 ) * - 79 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT ( - ( + - COALESCE ( 75, + COUNT ( * ) * - 68, + 54 - 68 ) ) ) * 8 - + 71 - COALESCE ( - 6, 9 ) * - 79 AS col2
----
55

query I rowsort
SELECT 99 + + 73
----
172

query II rowsort
SELECT ALL 13 * - 71, 42 AS col0
----
-923
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6279
SELECT 8 + COUNT( * ) col1, - 25 AS col1
----
9
-25

skipif mysql # not compatible
query II rowsort label-6279
SELECT 8 + COUNT ( * ) col1, - 25 AS col1
----
9
-25

query I rowsort
SELECT 15 * ( - ( - - ( 96 ) ) ) AS col0
----
-1440

query I rowsort
SELECT ALL NULLIF ( CASE + + 19 WHEN 23 + + + 76 THEN - 63 END, 81 * - 29 - 45 * + 11 / - 27 ) - + 65 + - 61 + + 23 - + + 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT NULLIF ( 82, 62 ) * + + COUNT( * ) + + 69 * + - 27 - - 78 / + 4 + + CASE - + NULLIF ( 13, + - 32 + 28 * + 18 * - - 28 ) WHEN + 68 * - - 12 THEN - - 87 WHEN - 76 THEN + 34 END + - - 94 + + 23 * + AVG ( + 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT NULLIF ( 82, 62 ) * + + COUNT ( * ) + + 69 * + - 27 - - 78 / + 4 + + CASE - + NULLIF ( 13, + - 32 + 28 * + 18 * - - 28 ) WHEN + 68 * - - 12 THEN - - 87 WHEN - 76 THEN + 34 END + - - 94 + + 23 * + AVG ( + 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6283
SELECT ALL COUNT( * ) * + - 63 AS col0, - 38
----
-63
-38

skipif mysql # not compatible
query II rowsort label-6283
SELECT ALL COUNT ( * ) * + - 63 AS col0, - 38
----
-63
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT DISTINCT 11 * + + ( + MIN( DISTINCT + 58 ) ) AS col2
----
638

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT 11 * + + ( + MIN ( DISTINCT + 58 ) ) AS col2
----
638

onlyif mysql # aggregate syntax: 
query II rowsort label-6285
SELECT ALL - ( + + 91 ) AS col0, COUNT( * ) AS col1
----
-91
1

skipif mysql # not compatible
query II rowsort label-6285
SELECT ALL - ( + + 91 ) AS col0, COUNT ( * ) AS col1
----
-91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT ALL - 47 - SUM( + - 51 )
----
4

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL - 47 - SUM ( + - 51 )
----
4

query I rowsort
SELECT 78 + 90 AS col0
----
168

query I rowsort
SELECT ALL - - 51 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT - 27 * + 48 + CAST( NULL AS SIGNED ) * - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6289
SELECT - 27 * + 48 + CAST ( NULL AS INTEGER ) * - 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6290
SELECT + COUNT( * ) * - 3 + - - 19 AS col0, COUNT( * )
----
16
1

skipif mysql # not compatible
query II rowsort label-6290
SELECT + COUNT ( * ) * - 3 + - - 19 AS col0, COUNT ( * )
----
16
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6291
SELECT + 39 DIV 15 + - 74 + - MIN( DISTINCT - 67 ) AS col0, - 39
----
-5
-39

skipif mysql # not compatible
query II rowsort label-6291
SELECT + 39 / 15 + - 74 + - MIN ( DISTINCT - 67 ) AS col0, - 39
----
-5
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT ALL + COUNT( * ) * CASE + 91 WHEN COUNT( * ) * - 76 THEN + 35 ELSE NULL END * - - 72 + - ( - - 79 ) - - + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL + COUNT ( * ) * CASE + 91 WHEN COUNT ( * ) * - 76 THEN + 35 ELSE NULL END * - - 72 + - ( - - 79 ) - - + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT DISTINCT 36 + - 59 * + - COALESCE ( - - COUNT( * ), - NULLIF ( - - 68, 86 / - 31 ) )
----
95

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT 36 + - 59 * + - COALESCE ( - - COUNT ( * ), - NULLIF ( - - 68, 86 / - 31 ) )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-6294
SELECT DISTINCT - + 60 + 82 AS col2, + 53 * - COUNT( * )
----
22
-53

skipif mysql # not compatible
query II rowsort label-6294
SELECT DISTINCT - + 60 + 82 AS col2, + 53 * - COUNT ( * )
----
22
-53

query I rowsort
SELECT - ( + 60 ) * - - 11 + - 13
----
-673

query I rowsort
SELECT 49 * + 88 + + 57 col2
----
4369

query I rowsort
SELECT 74 + - 86 AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT 9 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-6298
SELECT 9 / 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6299
SELECT ALL - 29 + - - COUNT( * ) * + COALESCE ( + 15, + + 76 * + COUNT( + 61 ) * + + 69 + - COUNT( DISTINCT - 41 ) ) * + + 79 + ( + + CASE 14 WHEN + 5 THEN - 71 ELSE - - 55 END ) - + CAST( NULL AS SIGNED ) + - COUNT( * ) - ( + - 41 ) * + COALESCE ( - - 47, - + 21 * 26 + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - 29 + - - COUNT ( * ) * + COALESCE ( + 15, + + 76 * + COUNT ( + 61 ) * + + 69 + - COUNT ( DISTINCT - 41 ) ) * + + 79 + ( + + CASE 14 WHEN + 5 THEN - 71 ELSE - - 55 END ) - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) - ( + - 41 ) * + COALESCE ( - - 47, - + 21 * 26 + 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6300
SELECT - 69 AS col1, - ( + + MAX( DISTINCT - - 55 ) ) col2
----
-69
-55

skipif mysql # not compatible
query II rowsort label-6300
SELECT - 69 AS col1, - ( + + MAX ( DISTINCT - - 55 ) ) col2
----
-69
-55

query I rowsort
SELECT ALL 15 + - 33
----
-18

query I rowsort
SELECT 90 + - 62
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT ALL - 38 DIV - - 85
----
0

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL - 38 / - - 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT ALL - ( ( - - 82 ) ) + COUNT( * ) + 39
----
-42

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL - ( ( - - 82 ) ) + COUNT ( * ) + 39
----
-42

query I rowsort
SELECT ALL - 29 + 87 AS col0
----
58

query I rowsort
SELECT 9 + 71
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6307
SELECT 4, 91 * - COUNT( * ) AS col2
----
4
-91

skipif mysql # not compatible
query II rowsort label-6307
SELECT 4, 91 * - COUNT ( * ) AS col2
----
4
-91

query I rowsort
SELECT 18 + 91 + + + 31 AS col0
----
140

query I rowsort
SELECT ALL + 39 * + 33
----
1287

query I rowsort
SELECT 99 + - 63
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6311
SELECT NULLIF ( - COUNT( * ), MIN( DISTINCT + 25 ) * - 97 * - 13 ) - - COUNT( * ) DIV - MIN( DISTINCT 68 ) - 94 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-6311
SELECT NULLIF ( - COUNT ( * ), MIN ( DISTINCT + 25 ) * - 97 * - 13 ) - - COUNT ( * ) / - MIN ( DISTINCT 68 ) - 94 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT COUNT( * ) + + + 31 + - ( 30 )
----
2

skipif mysql # not compatible
query I rowsort label-6312
SELECT COUNT ( * ) + + + 31 + - ( 30 )
----
2

query I rowsort
SELECT ALL - 66 - + 78 AS col0
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6314
SELECT - 1, 30 * + CAST( NULL AS SIGNED ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6314
SELECT - 1, 30 * + CAST ( NULL AS INTEGER ) AS col0
----
-1
NULL

query I rowsort
SELECT 24 + + 24 AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT DISTINCT 25 DIV - 58 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT 25 / - 58 AS col2
----
0

query I rowsort
SELECT 34 + - 9
----
25

query I rowsort
SELECT 13 + - 4 + - 16 * - 61 * + + 2 AS col0
----
1961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6319
SELECT ALL - + 71 DIV 7 + 42 * + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL - + 71 / 7 + 42 * + COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT DISTINCT SUM( 97 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT SUM ( 97 ) col1
----
97

query II rowsort
SELECT + - 47 col2, 28 + + 11 AS col0
----
-47
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT ALL - COUNT( * ), 71 AS col1
----
-1
71

skipif mysql # not compatible
query II rowsort label-6322
SELECT ALL - COUNT ( * ), 71 AS col1
----
-1
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL COUNT( * ) * + 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL COUNT ( * ) * + 85 AS col0
----
85

query II rowsort
SELECT 41 AS col0, 77
----
41
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT 23 DIV - 1 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-6325
SELECT 23 / - 1 AS col1
----
-23

query I rowsort
SELECT DISTINCT - - 58 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL - COALESCE ( - 63, - COUNT( * ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL - COALESCE ( - 63, - COUNT ( * ) ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT + NULLIF ( 55, 35 * - - ( - CASE + ( + 15 ) WHEN - 71 THEN NULL WHEN + 28 THEN 75 END ) * - MIN( - 67 ) + - - 66 ) * + 55 AS col2
----
3025

skipif mysql # not compatible
query I rowsort label-6328
SELECT + NULLIF ( 55, 35 * - - ( - CASE + ( + 15 ) WHEN - 71 THEN NULL WHEN + 28 THEN 75 END ) * - MIN ( - 67 ) + - - 66 ) * + 55 AS col2
----
3025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6329
SELECT ALL + 3 * + 47 + - COALESCE ( - - ( - 49 ), + CAST( - 18 AS SIGNED ) * - - 75 + - - 63 ) - 84 * + + 75 + + + SUM( DISTINCT 74 )
----
-6036

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL + 3 * + 47 + - COALESCE ( - - ( - 49 ), + CAST ( - 18 AS INTEGER ) * - - 75 + - - 63 ) - 84 * + + 75 + + + SUM ( DISTINCT 74 )
----
-6036

query I rowsort
SELECT ALL 85 + + + 75
----
160

query I rowsort
SELECT ALL + 86 + + 10 col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT + SUM( DISTINCT + 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-6332
SELECT + SUM ( DISTINCT + 89 ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6333
SELECT + + COALESCE ( - 25, 50, MAX( - + 14 ) ) DIV + COALESCE ( + CAST( NULL AS SIGNED ), - 19 ) + 9 + - - COALESCE ( - 20, + + 52 * - 74, + 24 ) DIV - 92 + - 54 AS col0, + NULLIF ( - 44, CASE - ( - 62 ) WHEN + 87 THEN - - CASE + MAX( ALL + - 47 ) WHEN + - ( + 22 ) THEN NULL WHEN 55 THEN MAX( ALL + 99 ) ELSE NULL END + 15 + + 54 END + 19 - + 89 * - - 76 ) DIV - 50 * + 56
----
-44
0

skipif mysql # not compatible
query II rowsort label-6333
SELECT + + COALESCE ( - 25, 50, MAX ( - + 14 ) ) / + COALESCE ( + CAST ( NULL AS INTEGER ), - 19 ) + 9 + - - COALESCE ( - 20, + + 52 * - 74, + 24 ) / - 92 + - 54 AS col0, + NULLIF ( - 44, CASE - ( - 62 ) WHEN + 87 THEN - - CASE + MAX ( ALL + - 47 ) WHEN + - ( + 22 ) THEN NULL WHEN 55 THEN MAX ( ALL + 99 ) ELSE NULL END + 15 + + 54 END + 19 - + 89 * - - 76 ) / - 50 * + 56
----
-44
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT DISTINCT - 53 + - 41 * + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT - 53 + - 41 * + COUNT ( * )
----
-94

query I rowsort
SELECT ALL + CASE 92 WHEN + 63 THEN 63 END + + 52 + + + 23 col1
----
NULL

query II rowsort
SELECT + 7 AS col2, 1 AS col2
----
7
1

query I rowsort
SELECT 72 * 62 * + 10 * + 16
----
714240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6338
SELECT - CASE + + 21 WHEN SUM( - 59 ) + 79 / + 43 - - 98 THEN NULL WHEN + ( + + CAST( NULLIF ( - ( + CAST( - 41 AS SIGNED ) ), + 6 + - 6 - + + ( + - 57 ) + 99 - + + 49 + - 53 * + 39 * COUNT( * ) * + - 97 * - + 7 * - 44 + - 91 / + NULLIF ( - + COUNT( * ), - NULLIF ( - CAST( NULL AS SIGNED ), - + 51 ) ) - + + 99 * COUNT( DISTINCT + 8 ) ) AS SIGNED ) ) + + - 7 THEN - + 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6338
SELECT - CASE + + 21 WHEN SUM ( - 59 ) + 79 / + 43 - - 98 THEN NULL WHEN + ( + + CAST ( NULLIF ( - ( + CAST ( - 41 AS INTEGER ) ), + 6 + - 6 - + + ( + - 57 ) + 99 - + + 49 + - 53 * + 39 * COUNT ( * ) * + - 97 * - + 7 * - 44 + - 91 / + NULLIF ( - + COUNT ( * ), - NULLIF ( - CAST ( NULL AS INTEGER ), - + 51 ) ) - + + 99 * COUNT ( DISTINCT + 8 ) ) AS INTEGER ) ) + + - 7 THEN - + 19 END AS col0
----
NULL

query I rowsort
SELECT - - 16 * - + 12 + 30 AS col2
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6340
SELECT DISTINCT 88 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT 88 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 59 * 8 AS col2
----
-472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT DISTINCT 74 + - - CAST( + 52 AS SIGNED ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT 74 + - - CAST ( + 52 AS INTEGER ) AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT ALL - COUNT( ALL 60 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6343
SELECT ALL - COUNT ( ALL 60 ) col1
----
-1

query I rowsort
SELECT ALL 9 + + + 82 * - 94
----
-7699

query I rowsort
SELECT ALL 68 * - ( 63 ) col2
----
-4284

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT DISTINCT SUM( + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT SUM ( + 56 )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6347
SELECT ALL - CAST( + + 32 AS SIGNED ) - + - 41 + - AVG ( + 34 ) * - CASE + 6 WHEN + + 59 + 36 THEN 88 / - 90 ELSE NULL END + - 81 + + 37 / + 25 AS col1, - 63
----
NULL
-63

skipif mysql # not compatible
query II rowsort label-6347
SELECT ALL - CAST ( + + 32 AS INTEGER ) - + - 41 + - AVG ( + 34 ) * - CASE + 6 WHEN + + 59 + 36 THEN 88 / - 90 ELSE NULL END + - 81 + + 37 / + 25 AS col1, - 63
----
NULL
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-6348
SELECT - COUNT( ALL + 21 ) AS col2, + 34
----
-1
34

skipif mysql # not compatible
query II rowsort label-6348
SELECT - COUNT ( ALL + 21 ) AS col2, + 34
----
-1
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6349
SELECT - COALESCE ( - - 48, 38, + 37 DIV 93 DIV + COALESCE ( - + 33, + - 19 * - 77 * - + ( + 97 ) ) ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6349
SELECT - COALESCE ( - - 48, 38, + 37 / 93 / + COALESCE ( - + 33, + - 19 * - 77 * - + ( + 97 ) ) ) AS col0
----
-48

query I rowsort
SELECT - 49 + - NULLIF ( - 85, AVG ( + + 41 ) + + - 3 * + 15 * - - 26 ) AS col1
----
36

query I rowsort
SELECT ALL + 35 - - 42
----
77

query I rowsort
SELECT - 37 * - ( + - 82 ) AS col0
----
-3034

query I rowsort
SELECT - 96 * 24 * + 79 col2
----
-182016

onlyif mysql # DIV for integer division: 
query I rowsort label-6354
SELECT - 13 DIV - ( - 56 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6354
SELECT - 13 / - ( - 56 ) AS col0
----
0

query II rowsort
SELECT - 72 * + - 9, 38 AS col1
----
648
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT ALL - CAST( NULL AS SIGNED ) * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL - CAST ( NULL AS INTEGER ) * - 90
----
NULL

query I rowsort
SELECT DISTINCT + 53 * + - 58 AS col2
----
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL SUM( DISTINCT + ( + 9 ) ) col1
----
9

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL SUM ( DISTINCT + ( + 9 ) ) col1
----
9

query I rowsort
SELECT DISTINCT - 90 * - 56 * - 27 AS col0
----
-136080

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT ALL CASE SUM( DISTINCT + - 83 ) WHEN MIN( - 93 ) + + + COUNT( * ) THEN - CASE 16 WHEN - + 62 THEN NULL WHEN - 55 THEN - + 97 ELSE + - 87 * COUNT( * ) * 74 + + COUNT( * ) END * + 95 / - 30 + + + SUM( + 90 ) / + 0 / 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL CASE SUM ( DISTINCT + - 83 ) WHEN MIN ( - 93 ) + + + COUNT ( * ) THEN - CASE 16 WHEN - + 62 THEN NULL WHEN - 55 THEN - + 97 ELSE + - 87 * COUNT ( * ) * 74 + + COUNT ( * ) END * + 95 / - 30 + + + SUM ( + 90 ) / + 0 / 29 ELSE NULL END
----
NULL

query I rowsort
SELECT + 36 * - - 40
----
1440

query I rowsort
SELECT - + 25 - - - 56 AS col2
----
-81

query II rowsort
SELECT - ( + 4 ) AS col2, 44 AS col0
----
-4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL MIN( + - 93 ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL MIN ( + - 93 ) col1
----
-93

query I rowsort
SELECT - + 76 + + 18
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT - - 1 + + - 81 + - CASE ( + + 83 ) WHEN 1 - 2 THEN + COUNT( * ) * 98 END * - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT - - 1 + + - 81 + - CASE ( + + 83 ) WHEN 1 - 2 THEN + COUNT ( * ) * 98 END * - 87 AS col2
----
NULL

query I rowsort
SELECT ALL + 85 * + 45 + + 40 AS col2
----
3865

query I rowsort
SELECT 9 * - 45 - + 94
----
-499

query I rowsort
SELECT ALL - 91 * + 36 + + - 58
----
-3334

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL - MAX( 18 ) * 13 * 67 + - - 67 AS col2
----
-15611

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL - MAX ( 18 ) * 13 * 67 + - - 67 AS col2
----
-15611

query I rowsort
SELECT - 68 * - 57 + 29 AS col2
----
3905

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT + - ( 70 ) * - - COUNT( * ) + - 47 + - COUNT( * ) col2
----
-118

skipif mysql # not compatible
query I rowsort label-6372
SELECT + - ( 70 ) * - - COUNT ( * ) + - 47 + - COUNT ( * ) col2
----
-118

query II rowsort
SELECT + - 68 - - 92, 82 - 34 AS col0
----
24
48

query I rowsort
SELECT ALL - 63 * + - 9
----
567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT ALL + CAST( - + 40 AS SIGNED ) col2
----
-40

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL + CAST ( - + 40 AS INTEGER ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT - COUNT( * ) * + 57
----
-57

skipif mysql # not compatible
query I rowsort label-6376
SELECT - COUNT ( * ) * + 57
----
-57

query I rowsort
SELECT DISTINCT - 19 * 88 - + 18 - 18 + 27 + 88 AS col1
----
-1593

onlyif mysql # aggregate syntax: 
query II rowsort label-6378
SELECT ALL + 64 AS col1, COUNT( * ) + - + 76
----
64
-75

skipif mysql # not compatible
query II rowsort label-6378
SELECT ALL + 64 AS col1, COUNT ( * ) + - + 76
----
64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT 67 * + + 13 * - 15 - + + SUM( - 38 ) + + 3 * - - 62
----
-12841

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT 67 * + + 13 * - 15 - + + SUM ( - 38 ) + + 3 * - - 62
----
-12841

query I rowsort
SELECT DISTINCT + 65 * 11 * ( - 3 ) - - ( + 35 ) AS col0
----
-2110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT ALL 14 * 99 * ( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL 14 * 99 * ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT ALL COUNT( ALL + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL COUNT ( ALL + 12 )
----
1

query I rowsort
SELECT - ( - 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT ALL COUNT( + + 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL COUNT ( + + 99 ) AS col1
----
1

query I rowsort
SELECT + 90 + 90
----
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6386
SELECT DISTINCT COUNT( * ) * - + 59 DIV 26
----
-2

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT COUNT ( * ) * - + 59 / 26
----
-2

query I rowsort
SELECT - NULLIF ( - 24, 38 + - 88 ) AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT + 36 DIV - 24
----
-1

skipif mysql # not compatible
query I rowsort label-6388
SELECT + 36 / - 24
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT - COUNT( * ) + - COALESCE ( - 25, - 91 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6389
SELECT - COUNT ( * ) + - COALESCE ( - 25, - 91 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT ALL COUNT( - 64 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL COUNT ( - 64 ) col2
----
1

query I rowsort
SELECT + 54 + + + 71 - 77 * - - 47 * + - 27 AS col0
----
97838

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6392
SELECT + 30 + + COUNT( * ) DIV - + ( 2 ) * 38 AS col1, 49 * + 95 AS col0
----
30
4655

skipif mysql # not compatible
query II rowsort label-6392
SELECT + 30 + + COUNT ( * ) / - + ( 2 ) * 38 AS col1, 49 * + 95 AS col0
----
30
4655

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT - 36 + COUNT( 77 + ( + 75 ) * + 26 )
----
-35

skipif mysql # not compatible
query I rowsort label-6393
SELECT - 36 + COUNT ( 77 + ( + 75 ) * + 26 )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6394
SELECT ALL NULLIF ( ( + 24 ), + COUNT( * ) + SUM( DISTINCT + COALESCE ( - 62, - 43, - CAST( 52 AS SIGNED ) ) ) )
----
24

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL NULLIF ( ( + 24 ), + COUNT ( * ) + SUM ( DISTINCT + COALESCE ( - 62, - 43, - CAST ( 52 AS INTEGER ) ) ) )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT ALL + 50 DIV - 10
----
-5

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + 50 / - 10
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT + COUNT( * ) * 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6396
SELECT + COUNT ( * ) * 76 AS col1
----
76

query I rowsort
SELECT - COALESCE ( 1, 23 ) + 99 * 51
----
5048

query I rowsort
SELECT + 82 * - 6
----
-492

query I rowsort
SELECT ALL - 77 + 16
----
-61

query I rowsort
SELECT - 0 + 13
----
13

query I rowsort
SELECT ALL + 14 + + 31 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT - CASE + 28 WHEN + 73 THEN 8 * + 84 WHEN - 41 * - 99 THEN 47 / 70 + - 99 WHEN COUNT( * ) THEN COALESCE ( COUNT( * ), - ( + COUNT( - 53 ) ) - 16 ) ELSE NULL END + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT - CASE + 28 WHEN + 73 THEN 8 * + 84 WHEN - 41 * - 99 THEN 47 / 70 + - 99 WHEN COUNT ( * ) THEN COALESCE ( COUNT ( * ), - ( + COUNT ( - 53 ) ) - 16 ) ELSE NULL END + 10
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6403
SELECT ALL 82 DIV ( - 28 )
----
-2

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL 82 / ( - 28 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT ALL + COUNT( * ) * - ( - 27 * + COUNT( * ) ) col2
----
27

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL + COUNT ( * ) * - ( - 27 * + COUNT ( * ) ) col2
----
27

query I rowsort
SELECT DISTINCT + 32 + - 45
----
-13

query I rowsort
SELECT ALL - 69 * 20
----
-1380

onlyif mysql # DIV for integer division: 
query I rowsort label-6407
SELECT ALL 76 DIV - 36 + 77
----
75

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL 76 / - 36 + 77
----
75

query I rowsort
SELECT DISTINCT - 60 * 29
----
-1740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6409
SELECT + COUNT( * ) DIV 61 + ( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-6409
SELECT + COUNT ( * ) / 61 + ( 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT - COUNT( * ) * NULLIF ( 36 * + 55, SUM( DISTINCT - 81 ) ) AS col2
----
-1980

skipif mysql # not compatible
query I rowsort label-6410
SELECT - COUNT ( * ) * NULLIF ( 36 * + 55, SUM ( DISTINCT - 81 ) ) AS col2
----
-1980

query I rowsort
SELECT - 98 + 23
----
-75

query I rowsort
SELECT - CASE - 93 WHEN + NULLIF ( - 9, 31 ) - 28 THEN NULL WHEN + 72 THEN 6 + + 34 END * 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT + 82 * COUNT( * ) + - 27 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6413
SELECT + 82 * COUNT ( * ) + - 27 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT DISTINCT COUNT( * ) - ( 29 + + COALESCE ( 26, + ( - 1 ), ( + 15 ) ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT COUNT ( * ) - ( 29 + + COALESCE ( 26, + ( - 1 ), ( + 15 ) ) ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT DISTINCT - NULLIF ( + 73, + MAX( DISTINCT + 80 ) / COUNT( * ) - COUNT( * ) )
----
-73

skipif mysql # not compatible
query I rowsort label-6415
SELECT DISTINCT - NULLIF ( + 73, + MAX ( DISTINCT + 80 ) / COUNT ( * ) - COUNT ( * ) )
----
-73

query I rowsort
SELECT 83 * + 27
----
2241

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT COUNT( * ) * - 71 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6417
SELECT COUNT ( * ) * - 71 AS col1
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6418
SELECT ALL + COUNT( * ) DIV 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL + COUNT ( * ) / 50 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6419
SELECT 16 DIV + 1 - - 90
----
106

skipif mysql # not compatible
query I rowsort label-6419
SELECT 16 / + 1 - - 90
----
106

query I rowsort
SELECT 34 + 27 * + 54
----
1492

query I rowsort
SELECT ALL + 80 * 77
----
6160

query I rowsort
SELECT 8 * 49 AS col1
----
392

query I rowsort
SELECT - 43 * + 39 + 10 * - 38
----
-2057

query I rowsort
SELECT DISTINCT - 35 * - 13
----
455

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT ALL + CASE - 57 WHEN 7 THEN + COUNT( * ) + 97 * + ( + COUNT( * ) ) END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL + CASE - 57 WHEN 7 THEN + COUNT ( * ) + 97 * + ( + COUNT ( * ) ) END * 77
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6426
SELECT COALESCE ( 36, ( + 12 ) * + 27 + 81, - 22 ) * CASE 45 * + CAST( NULL AS SIGNED ) + CASE - 5 WHEN - 68 THEN COUNT( * ) * + ( CAST( - 71 AS SIGNED ) ) END WHEN 48 THEN CAST( NULL AS DECIMAL ) * 44 - CASE WHEN ( CASE 62 WHEN - 81 THEN 68 ELSE 15 END ) <= ( - 81 ) THEN - 99 END / + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT COALESCE ( 36, ( + 12 ) * + 27 + 81, - 22 ) * CASE 45 * + CAST ( NULL AS INTEGER ) + CASE - 5 WHEN - 68 THEN COUNT ( * ) * + ( CAST ( - 71 AS INTEGER ) ) END WHEN 48 THEN CAST ( NULL AS REAL ) * 44 - CASE WHEN ( CASE 62 WHEN - 81 THEN 68 ELSE 15 END ) <= ( - 81 ) THEN - 99 END / + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT 37 - 87 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL - COUNT( * ) * - 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL - COUNT ( * ) * - 80 AS col0
----
80

query I rowsort
SELECT 14 - 43 * 26 col0
----
-1104

query I rowsort
SELECT 33 * 56 AS col2
----
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT 59 + 27 * - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT 59 + 27 * - COUNT ( * )
----
32

query I rowsort
SELECT DISTINCT + 70 + 76 AS col0
----
146

query I rowsort
SELECT DISTINCT + 6 + + 4 AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6434
SELECT ALL + 48 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL + 48 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 87 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL - COALESCE ( 76, - NULLIF ( COUNT( - 97 ), - COUNT( * ) * COUNT( * ) ) * COUNT( ( 59 ) ), + 85 ) * 80 AS col2
----
-6080

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - COALESCE ( 76, - NULLIF ( COUNT ( - 97 ), - COUNT ( * ) * COUNT ( * ) ) * COUNT ( ( 59 ) ), + 85 ) * 80 AS col2
----
-6080

query I rowsort
SELECT DISTINCT + 4 * 91 col1
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL - CASE MAX( ALL 98 ) WHEN 62 THEN 58 + - 29 WHEN 1 * + 15 THEN NULL END + + 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - CASE MAX ( ALL 98 ) WHEN 62 THEN 58 + - 29 WHEN 1 * + 15 THEN NULL END + + 65 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6438
SELECT 1 * + CAST( CAST( NULL AS SIGNED ) - - 13 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT 1 * + CAST ( CAST ( NULL AS INTEGER ) - - 13 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT ALL 9 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL 9 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6440
SELECT 47 + + CASE + ( CAST( NULL AS DECIMAL ) ) + + 40 WHEN 36 + - 69 THEN - 4 * 44 + 40 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT 47 + + CASE + ( CAST ( NULL AS REAL ) ) + + 40 WHEN 36 + - 69 THEN - 4 * 44 + 40 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT - 92 + + SUM( DISTINCT NULLIF ( + 84, - 36 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-6441
SELECT - 92 + + SUM ( DISTINCT NULLIF ( + 84, - 36 ) )
----
-8

query I rowsort
SELECT 37 * - 59
----
-2183

query I rowsort
SELECT + 1 * 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT 39 + CASE 97 WHEN 13 * + 28 THEN 57 WHEN CASE - NULLIF ( + 87, 94 - - 74 ) WHEN COUNT( * ) * - 0 + + MAX( - 66 + + ( + 54 ) * + 56 ) THEN 34 ELSE 66 * + 92 + 45 END * COUNT( * ) THEN NULL ELSE 38 END AS col2
----
77

skipif mysql # not compatible
query I rowsort label-6444
SELECT 39 + CASE 97 WHEN 13 * + 28 THEN 57 WHEN CASE - NULLIF ( + 87, 94 - - 74 ) WHEN COUNT ( * ) * - 0 + + MAX ( - 66 + + ( + 54 ) * + 56 ) THEN 34 ELSE 66 * + 92 + 45 END * COUNT ( * ) THEN NULL ELSE 38 END AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL ( COUNT( * ) ) - + 9 * - 6
----
55

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL ( COUNT ( * ) ) - + 9 * - 6
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT ALL + ( ( + 60 ) ) DIV + 17
----
3

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL + ( ( + 60 ) ) / + 17
----
3

query I rowsort
SELECT DISTINCT - + ( 60 ) AS col1
----
-60

query I rowsort
SELECT - - 89 * 49 + + 44
----
4405

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL + COUNT( ALL 8 ) * - ( + 42 * 82 ) AS col0
----
-3444

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL + COUNT ( ALL 8 ) * - ( + 42 * 82 ) AS col0
----
-3444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6450
SELECT 16 DIV COUNT( - 91 + - 38 ) + + 76 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-6450
SELECT 16 / COUNT ( - 91 + - 38 ) + + 76 AS col1
----
92

query I rowsort
SELECT ALL + 20 * 57
----
1140

query I rowsort
SELECT + 15 * - 55 + + 34
----
-791

query I rowsort
SELECT 28 * - 10 AS col0
----
-280

query I rowsort
SELECT ALL + 11 * CASE WHEN 10 = NULL THEN + AVG ( 45 ) WHEN NULL NOT IN ( - 53 ) THEN - 59 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6455
SELECT 21 * 29 + CASE + 60 WHEN + 11 * 26 + + 60 * + 99 THEN + 21 / + CAST( NULL AS SIGNED ) + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT 21 * 29 + CASE + 60 WHEN + 11 * 26 + + 60 * + 99 THEN + 21 / + CAST ( NULL AS INTEGER ) + 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT ALL MAX( - CASE - 61 WHEN 13 THEN NULL WHEN + 58 * 71 THEN 18 ELSE - 77 END ) * + 11
----
847

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL MAX ( - CASE - 61 WHEN 13 THEN NULL WHEN + 58 * 71 THEN 18 ELSE - 77 END ) * + 11
----
847

query I rowsort
SELECT 18 * - - ( 4 )
----
72

query I rowsort
SELECT ALL - ( + + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT DISTINCT - ( + - ( - ( COUNT( + 59 ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT - ( + - ( - ( COUNT ( + 59 ) ) ) )
----
-1

query I rowsort
SELECT DISTINCT + 94 + - 12 AS col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6461
SELECT COUNT( * ) * - + 68 DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6461
SELECT COUNT ( * ) * - + 68 / 72 AS col1
----
0

query I rowsort
SELECT ALL + ( - + 1 ) + 27 * + 86 AS col0
----
2321

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT - COUNT( * ) * - 70 + - 48
----
22

skipif mysql # not compatible
query I rowsort label-6463
SELECT - COUNT ( * ) * - 70 + - 48
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT 24 + 22 * NULLIF ( NULLIF ( 23, 68 * 29 + - ( + MIN( COALESCE ( 28, + 91, 61 * 68 ) ) ) ) + + 15, 15 * + ( 30 ) ) AS col2
----
860

skipif mysql # not compatible
query I rowsort label-6464
SELECT 24 + 22 * NULLIF ( NULLIF ( 23, 68 * 29 + - ( + MIN ( COALESCE ( 28, + 91, 61 * 68 ) ) ) ) + + 15, 15 * + ( 30 ) ) AS col2
----
860

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT COUNT( * ) * + 31 - 26 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6465
SELECT COUNT ( * ) * + 31 - 26 AS col2
----
5

query I rowsort
SELECT ALL + 49 + + 8 + - 85
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6467
SELECT 33 + - - CAST( 25 AS SIGNED ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6467
SELECT 33 + - - CAST ( 25 AS INTEGER ) AS col2
----
58

query I rowsort
SELECT 43 + + - ( 23 ) AS col0
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6469
SELECT ALL + 77 + - ( 25 ) / CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL + 77 + - ( 25 ) / CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT ALL 95 + 17 AS col0
----
112

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6471
SELECT ALL + - 57 * - + 79 * COUNT( * ) + 0 * CASE 3 WHEN - 54 * + CAST( NULL AS DECIMAL ) THEN NULL WHEN + 32 / 42 THEN - 13 * 30 + 95 WHEN COUNT( * ) THEN 87 * 91 + 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + - 57 * - + 79 * COUNT ( * ) + 0 * CASE 3 WHEN - 54 * + CAST ( NULL AS REAL ) THEN NULL WHEN + 32 / 42 THEN - 13 * 30 + 95 WHEN COUNT ( * ) THEN 87 * 91 + 51 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT - + MIN( DISTINCT + COALESCE ( 69, + 93 ) ) + SUM( 76 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT - + MIN ( DISTINCT + COALESCE ( 69, + 93 ) ) + SUM ( 76 ) AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6473
SELECT ALL 40 DIV + 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL 40 / + 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT - COUNT( * ) + - - 11 col0
----
10

skipif mysql # not compatible
query I rowsort label-6474
SELECT - COUNT ( * ) + - - 11 col0
----
10

query I rowsort
SELECT ALL - - 44 + - ( - 49 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT DISTINCT CASE 65 WHEN 15 THEN NULL WHEN + COUNT( * ) THEN NULL ELSE + ( 46 ) * + 86 END AS col1
----
3956

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT CASE 65 WHEN 15 THEN NULL WHEN + COUNT ( * ) THEN NULL ELSE + ( 46 ) * + 86 END AS col1
----
3956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6477
SELECT - 24 + - CAST( + CASE 48 WHEN + 45 + + ( - 2 ) THEN NULL WHEN + CASE 97 WHEN NULLIF ( 37, 54 ) THEN - 6 WHEN - 95 * - 92 + - 1 THEN NULL ELSE NULL END THEN - 18 * - MAX( + 13 ) + - COUNT( * ) ELSE - 51 * 2 END AS SIGNED ) col1
----
78

skipif mysql # not compatible
query I rowsort label-6477
SELECT - 24 + - CAST ( + CASE 48 WHEN + 45 + + ( - 2 ) THEN NULL WHEN + CASE 97 WHEN NULLIF ( 37, 54 ) THEN - 6 WHEN - 95 * - 92 + - 1 THEN NULL ELSE NULL END THEN - 18 * - MAX ( + 13 ) + - COUNT ( * ) ELSE - 51 * 2 END AS INTEGER ) col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT 16 * - + 62 * SUM( 99 ) AS col1
----
-98208

skipif mysql # not compatible
query I rowsort label-6478
SELECT 16 * - + 62 * SUM ( 99 ) AS col1
----
-98208

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT + 33 + + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6479
SELECT + 33 + + COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT ALL - MIN( - 20 ) - - 58 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL - MIN ( - 20 ) - - 58 AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6481
SELECT + 99 * - CAST( MAX( ALL - 63 ) AS SIGNED ) AS col0
----
6237

skipif mysql # not compatible
query I rowsort label-6481
SELECT + 99 * - CAST ( MAX ( ALL - 63 ) AS INTEGER ) AS col0
----
6237

onlyif mysql # DIV for integer division: 
query I rowsort label-6482
SELECT DISTINCT - 42 * - 0 DIV 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT - 42 * - 0 / 84 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT ALL - COUNT( * ) * + SUM( 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - COUNT ( * ) * + SUM ( 64 )
----
-64

query I rowsort
SELECT DISTINCT - 82 * + 51
----
-4182

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT + 53 * + 13 * COUNT( * ) AS col0
----
689

skipif mysql # not compatible
query I rowsort label-6485
SELECT + 53 * + 13 * COUNT ( * ) AS col0
----
689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT DISTINCT + CAST( 33 AS SIGNED ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT + CAST ( 33 AS INTEGER ) AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT COALESCE ( 54, + 55 DIV - 59 ) DIV 72 + 74
----
74

skipif mysql # not compatible
query I rowsort label-6487
SELECT COALESCE ( 54, + 55 / - 59 ) / 72 + 74
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT DISTINCT + MAX( - - CAST( + + 99 AS SIGNED ) )
----
99

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT + MAX ( - - CAST ( + + 99 AS INTEGER ) )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6489
SELECT + 97 DIV + 13 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6489
SELECT + 97 / + 13 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT ALL + SUM( DISTINCT - - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL + SUM ( DISTINCT - - 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + CASE - 19 WHEN + - 82 THEN - CASE COUNT( * ) WHEN - 32 THEN + 88 + - 1 WHEN COUNT( * ) THEN NULL ELSE COUNT( * ) * 50 END * + 26 WHEN - 44 THEN NULL WHEN - 69 + CASE + 82 - - 85 WHEN 22 THEN 81 WHEN + 6 * - COUNT( * ) THEN - 3 * 7 END * 81 THEN NULL WHEN - 59 * - ( 35 * + COUNT( * ) ) - 82 THEN ( - CASE - 60 WHEN + 37 THEN 86 + + 89 END ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT + CASE - 19 WHEN + - 82 THEN - CASE COUNT ( * ) WHEN - 32 THEN + 88 + - 1 WHEN COUNT ( * ) THEN NULL ELSE COUNT ( * ) * 50 END * + 26 WHEN - 44 THEN NULL WHEN - 69 + CASE + 82 - - 85 WHEN 22 THEN 81 WHEN + 6 * - COUNT ( * ) THEN - 3 * 7 END * 81 THEN NULL WHEN - 59 * - ( 35 * + COUNT ( * ) ) - 82 THEN ( - CASE - 60 WHEN + 37 THEN 86 + + 89 END ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - COUNT( * ) * - - 7 + - 79 * - 43 col0
----
3390

skipif mysql # not compatible
query I rowsort label-6492
SELECT - COUNT ( * ) * - - 7 + - 79 * - 43 col0
----
3390

query I rowsort
SELECT ALL - 17 * + COALESCE ( + 45, 46 ) AS col1
----
-765

query I rowsort
SELECT ALL - 73 * ( - 4 ) + 44
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT COALESCE ( - 55, MIN( DISTINCT + 67 ), - 46 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-6495
SELECT COALESCE ( - 55, MIN ( DISTINCT + 67 ), - 46 ) AS col1
----
-55

query I rowsort
SELECT + 55 * 62 AS col2
----
3410

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT + 13 - + NULLIF ( - 8, - 73 ) * - NULLIF ( 5 + COUNT( * ), 84 * - 32 )
----
-35

skipif mysql # not compatible
query I rowsort label-6497
SELECT + 13 - + NULLIF ( - 8, - 73 ) * - NULLIF ( 5 + COUNT ( * ), 84 * - 32 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT + NULLIF ( + COUNT( * ), + - 30 + - 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6498
SELECT + NULLIF ( + COUNT ( * ), + - 30 + - 79 ) AS col1
----
1

query I rowsort
SELECT 45 * + 13 * + 13 + + 19 AS col1
----
7624

query II rowsort
SELECT + 94 col1, 28
----
94
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT COUNT( + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-6501
SELECT COUNT ( + 76 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6502
SELECT ALL 9 * 48 DIV - 66 + + 85 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL 9 * 48 / - 66 + + 85 AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6503
SELECT ALL + COUNT( * ) col1, 39 + 64
----
1
103

skipif mysql # not compatible
query II rowsort label-6503
SELECT ALL + COUNT ( * ) col1, 39 + 64
----
1
103

query I rowsort
SELECT DISTINCT 84 * 3 + + + 73 AS col0
----
325

query I rowsort
SELECT DISTINCT + NULLIF ( + - 88, + - 50 / + 7 ) AS col0
----
-88

query I rowsort
SELECT - 77 * - 79
----
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL COUNT( * ) * - - 78 * 48 + 30 * 52 AS col0
----
5304

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL COUNT ( * ) * - - 78 * 48 + 30 * 52 AS col0
----
5304

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT - + 60 * + NULLIF ( NULLIF ( 44, - ( 3 ) ), 74 - - 1 ) DIV - NULLIF ( - 51 * 60 + + 60, 0 * - 48 )
----
0

skipif mysql # not compatible
query I rowsort label-6508
SELECT - + 60 * + NULLIF ( NULLIF ( 44, - ( 3 ) ), 74 - - 1 ) / - NULLIF ( - 51 * 60 + + 60, 0 * - 48 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6509
SELECT - CAST( NULL AS SIGNED ) AS col0, 25
----
NULL
25

skipif mysql # not compatible
query II rowsort label-6509
SELECT - CAST ( NULL AS INTEGER ) AS col0, 25
----
NULL
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6510
SELECT ALL - + 17 * + COUNT( * ) + COALESCE ( + CASE 62 WHEN + 73 * - MAX( + 48 ) THEN + 42 END, 85 ) DIV SUM( ALL - 24 )
----
-20

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL - + 17 * + COUNT ( * ) + COALESCE ( + CASE 62 WHEN + 73 * - MAX ( + 48 ) THEN + 42 END, 85 ) / SUM ( ALL - 24 )
----
-20

query I rowsort
SELECT DISTINCT - 94 * + 6 * 39
----
-21996

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT - MAX( - 34 ) - 69 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-6512
SELECT - MAX ( - 34 ) - 69 AS col2
----
-35

query I rowsort
SELECT DISTINCT + 2 * + + 41 AS col0
----
82

query II rowsort
SELECT 38 AS col2, 69 col2
----
38
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT - + 64 + + + COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-6515
SELECT - + 64 + + + COUNT ( * ) AS col0
----
-63

query I rowsort
SELECT + + 58 * ( + 47 ) AS col2
----
2726

onlyif mysql # aggregate syntax: 
query II rowsort label-6517
SELECT 45, MAX( - - 59 ) * 44 + 60 AS col1
----
45
2656

skipif mysql # not compatible
query II rowsort label-6517
SELECT 45, MAX ( - - 59 ) * 44 + 60 AS col1
----
45
2656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6518
SELECT - - ( - CAST( NULL AS SIGNED ) ) + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT - - ( - CAST ( NULL AS INTEGER ) ) + 25
----
NULL

query II rowsort
SELECT - 66, + 73 AS col2
----
-66
73

query I rowsort
SELECT - + 14 + + 95 AS col0
----
81

query I rowsort
SELECT DISTINCT 50 * + - 43 * + 97 AS col1
----
-208550

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT 21 * + MAX( DISTINCT + 47 ) + - - COUNT( * ) + 12
----
1000

skipif mysql # not compatible
query I rowsort label-6522
SELECT 21 * + MAX ( DISTINCT + 47 ) + - - COUNT ( * ) + 12
----
1000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6523
SELECT ALL + 40 DIV 21 + - + 48 - + + COALESCE ( 50, 1 ) + + 81 * + COUNT( * ) col2
----
-16

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + 40 / 21 + - + 48 - + + COALESCE ( 50, 1 ) + + 81 * + COUNT ( * ) col2
----
-16

query I rowsort
SELECT + 91 * 4 AS col2
----
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6525
SELECT DISTINCT + ( 3 ) DIV - COUNT( + 64 ) + - 44 * - 83 AS col1
----
3649

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT + ( 3 ) / - COUNT ( + 64 ) + - 44 * - 83 AS col1
----
3649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT + 26 + + 48 + + + CAST( NULL AS SIGNED ) + 44 / + 89 * + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT + 26 + + 48 + + + CAST ( NULL AS INTEGER ) + 44 / + 89 * + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT - 55 * - COALESCE ( - SUM( DISTINCT + 52 ), - MAX( 94 ) + - 77 )
----
-2860

skipif mysql # not compatible
query I rowsort label-6527
SELECT - 55 * - COALESCE ( - SUM ( DISTINCT + 52 ), - MAX ( 94 ) + - 77 )
----
-2860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6528
SELECT CAST( - 79 AS SIGNED ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-6528
SELECT CAST ( - 79 AS INTEGER ) AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6529
SELECT CAST( + AVG ( DISTINCT + - 59 ) AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-6529
SELECT CAST ( + AVG ( DISTINCT + - 59 ) AS INTEGER )
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6530
SELECT + ( + - 90 ), 78 + 86 + + 58 DIV + MIN( ALL - 97 * 84 + 15 ) AS col1
----
-90
164

skipif mysql # not compatible
query II rowsort label-6530
SELECT + ( + - 90 ), 78 + 86 + + 58 / + MIN ( ALL - 97 * 84 + 15 ) AS col1
----
-90
164

onlyif mysql # DIV for integer division: 
query I rowsort label-6531
SELECT ALL 36 DIV - + 12 + + 34
----
31

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL 36 / - + 12 + + 34
----
31

query I rowsort
SELECT ( - COALESCE ( - - 19, - COALESCE ( 90, + 20 ) + - 1 ) )
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6533
SELECT DISTINCT - MIN( - + 41 ) * - 65 + - COUNT( * ) DIV COUNT( 52 + 10 )
----
-2666

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT - MIN ( - + 41 ) * - 65 + - COUNT ( * ) / COUNT ( 52 + 10 )
----
-2666

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT + MIN( 15 ) * - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-6534
SELECT + MIN ( 15 ) * - COUNT ( * )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6535
SELECT DISTINCT 17 * - CAST( - 82 AS SIGNED ) - - 9 * COUNT( + 16 )
----
1403

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT 17 * - CAST ( - 82 AS INTEGER ) - - 9 * COUNT ( + 16 )
----
1403

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT COUNT( * ) * + + 36 * + COUNT( * ) * + 62 * + 32 + 50
----
71474

skipif mysql # not compatible
query I rowsort label-6536
SELECT COUNT ( * ) * + + 36 * + COUNT ( * ) * + 62 * + 32 + 50
----
71474

query I rowsort
SELECT + - 94 + + 0 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT + - CASE - 22 WHEN 78 + + + 93 THEN NULL WHEN 42 THEN NULL WHEN 44 THEN 1 WHEN - 77 * COUNT( DISTINCT - 37 ) THEN NULL END * 48 - NULLIF ( + ( 73 ) + + 30, ( 68 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6538
SELECT + - CASE - 22 WHEN 78 + + + 93 THEN NULL WHEN 42 THEN NULL WHEN 44 THEN 1 WHEN - 77 * COUNT ( DISTINCT - 37 ) THEN NULL END * 48 - NULLIF ( + ( 73 ) + + 30, ( 68 ) ) AS col0
----
NULL

query I rowsort
SELECT - + 31 * - 92 + + 19 AS col2
----
2871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6540
SELECT ALL + COUNT( * ) * + + 29 DIV + - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL + COUNT ( * ) * + + 29 / + - COUNT ( * )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6541
SELECT + CAST( NULL AS SIGNED ) + - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT + CAST ( NULL AS INTEGER ) + - 38 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT - COUNT( * ) - - 46 + - 49
----
-4

skipif mysql # not compatible
query I rowsort label-6542
SELECT - COUNT ( * ) - - 46 + - 49
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6543
SELECT ALL + 6 * + 57 + + + 8 + 66 + ( + COUNT( * ) ) * 45 - 76 AS col0
----
385

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL + 6 * + 57 + + + 8 + 66 + ( + COUNT ( * ) ) * 45 - 76 AS col0
----
385

query I rowsort
SELECT DISTINCT - 98 * - 34 - - 36
----
3368

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT + CASE - 49 WHEN + 20 THEN + 76 + + 73 END + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT + CASE - 49 WHEN + 20 THEN + 76 + + 73 END + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6546
SELECT - CAST( + 0 AS SIGNED ) * + ( 3 ) * + COUNT( * ) + - 10
----
-10

skipif mysql # not compatible
query I rowsort label-6546
SELECT - CAST ( + 0 AS INTEGER ) * + ( 3 ) * + COUNT ( * ) + - 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL COUNT( * ) * + 58 col0
----
58

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL COUNT ( * ) * + 58 col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT DISTINCT ( + CAST( 37 AS SIGNED ) )
----
37

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT ( + CAST ( 37 AS INTEGER ) )
----
37

query I rowsort
SELECT ALL + COALESCE ( - 32, 76 * + 40 ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6550
SELECT DISTINCT MAX( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 39 * 44
----
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT 45 DIV 14 - + 16 * + 82
----
-1309

skipif mysql # not compatible
query I rowsort label-6552
SELECT 45 / 14 - + 16 * + 82
----
-1309

query I rowsort
SELECT DISTINCT + 89 col2
----
89

query I rowsort
SELECT - 31 + 78
----
47

query I rowsort
SELECT 94 * - 30 * - 63 AS col0
----
177660

query I rowsort
SELECT - 44 + + COALESCE ( - 44, - 93 * + 85 + - 34 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT DISTINCT + COUNT( * ) + COALESCE ( - 26, 34 * 52 + 25 ) * + 41
----
-1065

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT + COUNT ( * ) + COALESCE ( - 26, 34 * 52 + 25 ) * + 41
----
-1065

query I rowsort
SELECT ALL - 57 + - + COALESCE ( 51, + 59 + 91 ) AS col2
----
-108

query I rowsort
SELECT DISTINCT + 99 * 7 AS col2
----
693

query I rowsort
SELECT DISTINCT - 7 + NULLIF ( + 50, 85 ) + 69 + 60 * 35 AS col0
----
2212

query I rowsort
SELECT ALL 44 + + 75 AS col0
----
119

query I rowsort
SELECT DISTINCT 3 + 2
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6563
SELECT COUNT( * ) DIV 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6563
SELECT COUNT ( * ) / 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL - 63 + - - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL - 63 + - - COUNT ( * )
----
-62

query II rowsort
SELECT + 27 AS col0, + CASE - 22 WHEN + 88 THEN NULL WHEN - + 55 THEN - 22 END AS col2
----
27
NULL

query I rowsort
SELECT DISTINCT - 45 + - - 81 AS col0
----
36

query I rowsort
SELECT ALL - ( + + 16 )
----
-16

query II rowsort
SELECT + 38 col1, 52 AS col0
----
38
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6569
SELECT ALL - 33 AS col1, - SUM( 92 ) + 9 + + 88 col2
----
-33
5

skipif mysql # not compatible
query II rowsort label-6569
SELECT ALL - 33 AS col1, - SUM ( 92 ) + 9 + + 88 col2
----
-33
5

query I rowsort
SELECT 72 * + 99 * + 70 * + NULLIF ( + 80, + 59 - 68 )
----
39916800

query I rowsort
SELECT ALL - 27 * + 29 AS col2
----
-783

query I rowsort
SELECT 43 * - 91 col2
----
-3913

query II rowsort
SELECT DISTINCT 95 * - 99 * - 80 AS col0, - 16 AS col1
----
752400
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6574
SELECT 62 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT 62 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT ALL - + MAX( + + 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - + MAX ( + + 17 ) AS col2
----
-17

query I rowsort
SELECT DISTINCT + - 8 * - 91 col1
----
728

query I rowsort
SELECT ALL - + ( - 59 ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6578
SELECT ALL 87 DIV - 52
----
-1

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL 87 / - 52
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6579
SELECT 60 DIV + - COUNT( * ) + 67 + - 56 DIV - - ( ( 94 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6579
SELECT 60 / + - COUNT ( * ) + 67 + - 56 / - - ( ( 94 ) ) AS col1
----
7

query I rowsort
SELECT + 70 * - ( - 7 ) * - 26 + 21
----
-12719

query I rowsort
SELECT + + 37 AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT ALL + COALESCE ( + 0, + + 68 ) DIV - 50 + - 88
----
-88

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL + COALESCE ( + 0, + + 68 ) / - 50 + - 88
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6583
SELECT NULLIF ( + 48, - 11 ) DIV + 54 + + - 22 * - 13 AS col1
----
286

skipif mysql # not compatible
query I rowsort label-6583
SELECT NULLIF ( + 48, - 11 ) / + 54 + + - 22 * - 13 AS col1
----
286

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT + ( - 37 ) * NULLIF ( + COALESCE ( + 60, + 79 ), - 33 * ( COUNT( * ) ) ) col2
----
-2220

skipif mysql # not compatible
query I rowsort label-6584
SELECT + ( - 37 ) * NULLIF ( + COALESCE ( + 60, + 79 ), - 33 * ( COUNT ( * ) ) ) col2
----
-2220

query I rowsort
SELECT 70 - 27 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT - ( MAX( ALL + ( - + 59 ) ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-6586
SELECT - ( MAX ( ALL + ( - + 59 ) ) ) AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6587
SELECT 29 * + ( - CASE + 95 WHEN + 63 * NULLIF ( CAST( + MIN( 82 ) AS SIGNED ), ( 89 ) ) THEN NULL WHEN - 27 THEN 95 * CAST( - COUNT( DISTINCT + 51 ) AS SIGNED ) - 75 ELSE 72 * - 85 END ) + + 34
----
177514

skipif mysql # not compatible
query I rowsort label-6587
SELECT 29 * + ( - CASE + 95 WHEN + 63 * NULLIF ( CAST ( + MIN ( 82 ) AS INTEGER ), ( 89 ) ) THEN NULL WHEN - 27 THEN 95 * CAST ( - COUNT ( DISTINCT + 51 ) AS INTEGER ) - 75 ELSE 72 * - 85 END ) + + 34
----
177514

query I rowsort
SELECT - 45 - 41 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-6589
SELECT - + 75, COUNT( * ) AS col1
----
-75
1

skipif mysql # not compatible
query II rowsort label-6589
SELECT - + 75, COUNT ( * ) AS col1
----
-75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT - SUM( DISTINCT + 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6590
SELECT - SUM ( DISTINCT + 85 ) AS col1
----
-85

query I rowsort
SELECT - ( + - 35 ) AS col1
----
35

query I rowsort
SELECT DISTINCT - 50 + - - 60
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - + COUNT( 78 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6593
SELECT - + COUNT ( 78 ) AS col0
----
-1

query I rowsort
SELECT ALL - 12 + + - 17 AS col1
----
-29

query II rowsort
SELECT + 95 - + - ( + + 56 ), 48 AS col1
----
151
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT 37 * + MIN( + 35 ) AS col0
----
1295

skipif mysql # not compatible
query I rowsort label-6596
SELECT 37 * + MIN ( + 35 ) AS col0
----
1295

query II rowsort
SELECT - 62, + 80 AS col1
----
-62
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6598
SELECT 20 AS col2, + MIN( 55 )
----
20
55

skipif mysql # not compatible
query II rowsort label-6598
SELECT 20 AS col2, + MIN ( 55 )
----
20
55

query I rowsort
SELECT ALL + 31 + - 99 AS col0
----
-68

query I rowsort
SELECT 37 + 3
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6601
SELECT 46 + - 9 * 35 DIV - COUNT( * )
----
361

skipif mysql # not compatible
query I rowsort label-6601
SELECT 46 + - 9 * 35 / - COUNT ( * )
----
361

query I rowsort
SELECT 53 * + 33
----
1749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6603
SELECT ALL + 86 * + CAST( NULL AS SIGNED ) / - - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL + 86 * + CAST ( NULL AS INTEGER ) / - - 19
----
NULL

query I rowsort
SELECT ALL - 32 - - 79 * - + CASE - + 9 WHEN + 77 * - - 65 / 45 THEN NULL ELSE NULLIF ( 10, 33 ) END col1
----
-822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6605
SELECT SUM( DISTINCT + 89 ) * - + 35 DIV COUNT( - ( 84 ) ) * 95 + + SUM( 0 ) + - 74
----
-295999

skipif mysql # not compatible
query I rowsort label-6605
SELECT SUM ( DISTINCT + 89 ) * - + 35 / COUNT ( - ( 84 ) ) * 95 + + SUM ( 0 ) + - 74
----
-295999

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6606
SELECT + 84 DIV 89 + + - COUNT( + 15 ) + + 82 + - + 49 * + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6606
SELECT + 84 / 89 + + - COUNT ( + 15 ) + + 82 + - + 49 * + COUNT ( * ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT MIN( - 65 ) * - + 33 AS col0
----
2145

skipif mysql # not compatible
query I rowsort label-6607
SELECT MIN ( - 65 ) * - + 33 AS col0
----
2145

query II rowsort
SELECT ALL - ( + 85 ), 56 AS col0
----
-85
56

query I rowsort
SELECT 52 * + 15 AS col1
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6610
SELECT DISTINCT 78 * + + COALESCE ( - COUNT( * ), - ( 91 ) DIV - MAX( DISTINCT 27 ), + 51, 14 ) - 60
----
-138

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT 78 * + + COALESCE ( - COUNT ( * ), - ( 91 ) / - MAX ( DISTINCT 27 ), + 51, 14 ) - 60
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT + COUNT( * ) * - 68 * + 27 AS col2
----
-1836

skipif mysql # not compatible
query I rowsort label-6611
SELECT + COUNT ( * ) * - 68 * + 27 AS col2
----
-1836

onlyif mysql # aggregate syntax: 
query II rowsort label-6612
SELECT ALL - COALESCE ( + COUNT( * ), 92, - + 0 ) AS col2, + ( 3 ) + SUM( 53 ) AS col1
----
-1
56

skipif mysql # not compatible
query II rowsort label-6612
SELECT ALL - COALESCE ( + COUNT ( * ), 92, - + 0 ) AS col2, + ( 3 ) + SUM ( 53 ) AS col1
----
-1
56

query I rowsort
SELECT + ( + - 88 ) col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT - 50 - - 89 + - ( SUM( - 76 ) ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-6614
SELECT - 50 - - 89 + - ( SUM ( - 76 ) ) AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT + 63 * 13 * + + MIN( - NULLIF ( + - 93, 27 ) ) * - 29 AS col0
----
-2208843

skipif mysql # not compatible
query I rowsort label-6615
SELECT + 63 * 13 * + + MIN ( - NULLIF ( + - 93, 27 ) ) * - 29 AS col0
----
-2208843

query II rowsort
SELECT DISTINCT 3 * 73 AS col2, - 41
----
219
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT DISTINCT + COUNT( * ) * + 93 * - 82 col1
----
-7626

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT + COUNT ( * ) * + 93 * - 82 col1
----
-7626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6618
SELECT ALL - 54 * 71 + + 4 + CAST( CAST( ( + 41 ) AS SIGNED ) AS SIGNED )
----
-3789

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL - 54 * 71 + + 4 + CAST ( CAST ( ( + 41 ) AS INTEGER ) AS INTEGER )
----
-3789

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6619
SELECT - 10 * - COUNT( * ) + + 22 DIV - + 13 + 74
----
83

skipif mysql # not compatible
query I rowsort label-6619
SELECT - 10 * - COUNT ( * ) + + 22 / - + 13 + 74
----
83

query II rowsort
SELECT - 67 AS col1, 77 + 58 * 51
----
-67
3035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT + CAST( + COUNT( * ) AS SIGNED ) / - NULLIF ( CASE + + 46 WHEN 66 THEN + 4 + - CAST( NULL AS SIGNED ) ELSE NULL END, 6 * 12 - + 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6621
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) / - NULLIF ( CASE + + 46 WHEN 66 THEN + 4 + - CAST ( NULL AS INTEGER ) ELSE NULL END, 6 * 12 - + 44 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6622
SELECT - - 76 + - 92 AS col0, + MIN( ALL - - 16 ) * + - MAX( DISTINCT - 2 ) - - COUNT( * )
----
-16
33

skipif mysql # not compatible
query II rowsort label-6622
SELECT - - 76 + - 92 AS col0, + MIN ( ALL - - 16 ) * + - MAX ( DISTINCT - 2 ) - - COUNT ( * )
----
-16
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT - ( - 27 ) * + + 99 - - SUM( DISTINCT - 64 ) AS col0
----
2609

skipif mysql # not compatible
query I rowsort label-6623
SELECT - ( - 27 ) * + + 99 - - SUM ( DISTINCT - 64 ) AS col0
----
2609

query I rowsort
SELECT - + 1 + - 98 col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6625
SELECT + + 96 - - SUM( DISTINCT - - ( 7 ) ) AS col1, + COUNT( * ) - + + 52 * - 70 AS col1
----
103
3641

skipif mysql # not compatible
query II rowsort label-6625
SELECT + + 96 - - SUM ( DISTINCT - - ( 7 ) ) AS col1, + COUNT ( * ) - + + 52 * - 70 AS col1
----
103
3641

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL + COALESCE ( - 58, SUM( DISTINCT - + 92 ) ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL + COALESCE ( - 58, SUM ( DISTINCT - + 92 ) ) AS col1
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-6627
SELECT 70 AS col1, - 84 DIV 76
----
70
-1

skipif mysql # not compatible
query II rowsort label-6627
SELECT 70 AS col1, - 84 / 76
----
70
-1

query I rowsort
SELECT ALL + 41 + 42
----
83

query I rowsort
SELECT + 93 + - 9 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT - NULLIF ( + 3, + COUNT( * ) ) * 39 + 81 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6630
SELECT - NULLIF ( + 3, + COUNT ( * ) ) * 39 + 81 AS col1
----
-36

query II rowsort
SELECT 7 AS col2, + 18
----
7
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT - CASE - 62 WHEN + CAST( NULL AS SIGNED ) * COALESCE ( - - 89, + + SUM( 69 ) * COUNT( * ) + - 6 ) / 18 + 13 THEN - 31 WHEN - 23 * + ( - 10 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT - CASE - 62 WHEN + CAST ( NULL AS INTEGER ) * COALESCE ( - - 89, + + SUM ( 69 ) * COUNT ( * ) + - 6 ) / 18 + 13 THEN - 31 WHEN - 23 * + ( - 10 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6633
SELECT + 15 DIV + + ( - + 38 ) AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-6633
SELECT + 15 / + + ( - + 38 ) AS col2, COUNT ( * )
----
0
1

query I rowsort
SELECT + 21 + - - ( - 86 )
----
-65

query I rowsort
SELECT - CASE + - 79 WHEN + 67 THEN + 34 + - 56 + + + ( + + 14 ) END + 16 * 81
----
NULL

query I rowsort
SELECT - NULLIF ( + ( 37 ), - - COALESCE ( + ( 93 ), 36 + - 4 ) )
----
-37

query I rowsort
SELECT DISTINCT ( + 5 ) - ( + + 50 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL MAX( ALL - - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL MAX ( ALL - - 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT + CASE + 48 WHEN - - 70 THEN NULL ELSE - + COALESCE ( - 44, COUNT( * ) ) - - + 19 * - COUNT( 16 ) END * - 61
----
-1525

skipif mysql # not compatible
query I rowsort label-6639
SELECT + CASE + 48 WHEN - - 70 THEN NULL ELSE - + COALESCE ( - 44, COUNT ( * ) ) - - + 19 * - COUNT ( 16 ) END * - 61
----
-1525

query I rowsort
SELECT + ( + 0 ) + 36 * - 28 * 38 * 85 * - 77 - 28
----
250699652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT DISTINCT CASE 49 WHEN + 17 * - - 38 + - 2 * 33 THEN NULL WHEN + 13 THEN - CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT CASE 49 WHEN + 17 * - - 38 + - 2 * 33 THEN NULL WHEN + 13 THEN - CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT - CAST( NULL AS SIGNED ) * + + 48 * + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT - CAST ( NULL AS INTEGER ) * + + 48 * + 2 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6643
SELECT + COALESCE ( + + CAST( NULL AS SIGNED ), - NULLIF ( - + 33, - + 9 + 72 + ( + 96 ) + COUNT( * ) ) DIV + COUNT( * ), - 17 ) + CASE - 37 + + 65 WHEN 90 * - 38 THEN + 6 DIV - 31 + + COALESCE ( + COUNT( * ), COUNT( * ) DIV SUM( DISTINCT 36 * 87 ) - 10 ) ELSE 14 DIV 75 END
----
33

skipif mysql # not compatible
query I rowsort label-6643
SELECT + COALESCE ( + + CAST ( NULL AS INTEGER ), - NULLIF ( - + 33, - + 9 + 72 + ( + 96 ) + COUNT ( * ) ) / + COUNT ( * ), - 17 ) + CASE - 37 + + 65 WHEN 90 * - 38 THEN + 6 / - 31 + + COALESCE ( + COUNT ( * ), COUNT ( * ) / SUM ( DISTINCT 36 * 87 ) - 10 ) ELSE 14 / 75 END
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6644
SELECT CAST( - 7 AS SIGNED ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6644
SELECT CAST ( - 7 AS INTEGER ) AS col0
----
-7

query I rowsort
SELECT 55 * + 30 + + + ( + 49 ) AS col0
----
1699

onlyif mysql # aggregate syntax: 
query II rowsort label-6646
SELECT + 95 * COUNT( * ), 72 AS col0
----
95
72

skipif mysql # not compatible
query II rowsort label-6646
SELECT + 95 * COUNT ( * ), 72 AS col0
----
95
72

query I rowsort
SELECT ALL - 56 * - ( 32 )
----
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT + 62 * + 41 + - 15 - CASE + + 38 WHEN COUNT( * ) THEN + 12 WHEN 37 THEN + COUNT( * ) WHEN 71 THEN NULL ELSE - MAX( - 46 ) END * 80
----
-1153

skipif mysql # not compatible
query I rowsort label-6648
SELECT + 62 * + 41 + - 15 - CASE + + 38 WHEN COUNT ( * ) THEN + 12 WHEN 37 THEN + COUNT ( * ) WHEN 71 THEN NULL ELSE - MAX ( - 46 ) END * 80
----
-1153

query I rowsort
SELECT DISTINCT 28 * 40 + + 20
----
1140

query I rowsort
SELECT ALL - 64 * 60 * + + 16 * + ( - - 63 ) + - - 66 col1
----
-3870654

onlyif mysql # DIV for integer division: 
query I rowsort label-6651
SELECT - + 5 DIV - - 93 + - - 45
----
45

skipif mysql # not compatible
query I rowsort label-6651
SELECT - + 5 / - - 93 + - - 45
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6652
SELECT - + CAST( NULL AS DECIMAL ) + - 76 - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT - + CAST ( NULL AS REAL ) + - 76 - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT ALL + + CASE + 85 WHEN + CASE + - 76 WHEN + + 53 + - + 40 THEN + COUNT( * ) END THEN NULL WHEN - CASE + 63 WHEN 47 + 3 THEN NULL ELSE + 8 END THEN NULL ELSE 97 * 36 + MIN( ALL NULLIF ( - ( 42 ), + 82 ) ) END
----
3450

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL + + CASE + 85 WHEN + CASE + - 76 WHEN + + 53 + - + 40 THEN + COUNT ( * ) END THEN NULL WHEN - CASE + 63 WHEN 47 + 3 THEN NULL ELSE + 8 END THEN NULL ELSE 97 * 36 + MIN ( ALL NULLIF ( - ( 42 ), + 82 ) ) END
----
3450

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6654
SELECT - - 31 * - 4, - 68 AS col0, + COUNT( * ) DIV + ( + 97 ) * - COUNT( * ) + 36 AS col1
----
-124
-68
36

skipif mysql # not compatible
query III rowsort label-6654
SELECT - - 31 * - 4, - 68 AS col0, + COUNT ( * ) / + ( + 97 ) * - COUNT ( * ) + 36 AS col1
----
-124
-68
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6655
SELECT - 86 * - 88 + + MIN( COALESCE ( - 60, + ( CAST( NULL AS SIGNED ) ) ) ) + 32 AS col2
----
7540

skipif mysql # not compatible
query I rowsort label-6655
SELECT - 86 * - 88 + + MIN ( COALESCE ( - 60, + ( CAST ( NULL AS INTEGER ) ) ) ) + 32 AS col2
----
7540

query I rowsort
SELECT COALESCE ( ( - 7 ), + 20, - 21 - + 27 - 47 * + 57 ) col0
----
-7

query I rowsort
SELECT - 64 * + 73 AS col2
----
-4672

query I rowsort
SELECT DISTINCT + 53 * - + 32
----
-1696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6659
SELECT DISTINCT + CAST( - - 93 AS SIGNED ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6659
SELECT DISTINCT + CAST ( - - 93 AS INTEGER ) AS col0
----
93

query I rowsort
SELECT ALL - - 19 * - 61 - - 66 AS col2
----
-1093

query I rowsort
SELECT - + 4 - + ( - - 93 ) AS col1
----
-97

query I rowsort
SELECT + + 98 * + + 82
----
8036

query I rowsort
SELECT - 15 - 39 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT MIN( ALL + 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-6664
SELECT MIN ( ALL + 75 ) AS col1
----
75

query I rowsort
SELECT - 9 * - 62
----
558

query I rowsort
SELECT DISTINCT - 13 - - 89 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6667
SELECT ALL CAST( - MIN( ALL + 97 ) AS SIGNED ) AS col0, + CASE + CASE - NULLIF ( + - 22, - 27 ) WHEN 98 THEN NULL ELSE - COUNT( COALESCE ( 76, - NULLIF ( 2, ( - 37 ) * 33 ) * 51, 51 * 35 ) ) * CAST( + ( + 34 ) + + 19 AS SIGNED ) END WHEN ( 93 ) THEN COUNT( * ) * 72 + + 98 WHEN + COUNT( - 36 ) THEN - 60 / + 42 ELSE NULL END * + NULLIF ( - 9 * MAX( + 79 ), + COALESCE ( + 55, 67 ) * - MIN( - 33 ) )
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-6667
SELECT ALL CAST ( - MIN ( ALL + 97 ) AS INTEGER ) AS col0, + CASE + CASE - NULLIF ( + - 22, - 27 ) WHEN 98 THEN NULL ELSE - COUNT ( COALESCE ( 76, - NULLIF ( 2, ( - 37 ) * 33 ) * 51, 51 * 35 ) ) * CAST ( + ( + 34 ) + + 19 AS INTEGER ) END WHEN ( 93 ) THEN COUNT ( * ) * 72 + + 98 WHEN + COUNT ( - 36 ) THEN - 60 / + 42 ELSE NULL END * + NULLIF ( - 9 * MAX ( + 79 ), + COALESCE ( + 55, 67 ) * - MIN ( - 33 ) )
----
-97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6668
SELECT ALL 55 DIV - ( + 6 ) AS col0, CASE - - CAST( NULL AS DECIMAL ) WHEN + 34 * + CAST( NULL AS SIGNED ) + 50 + SUM( DISTINCT + 97 ) * - 37 THEN NULL ELSE - CAST( NULL AS SIGNED ) + + 71 * - 37 END AS col2
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-6668
SELECT ALL 55 / - ( + 6 ) AS col0, CASE - - CAST ( NULL AS REAL ) WHEN + 34 * + CAST ( NULL AS INTEGER ) + 50 + SUM ( DISTINCT + 97 ) * - 37 THEN NULL ELSE - CAST ( NULL AS INTEGER ) + + 71 * - 37 END AS col2
----
-9
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6669
SELECT ALL 73 DIV + ( - 71 ) AS col0, ( 54 ) + + 74 DIV 11 AS col2
----
-1
60

skipif mysql # not compatible
query II rowsort label-6669
SELECT ALL 73 / + ( - 71 ) AS col0, ( 54 ) + + 74 / 11 AS col2
----
-1
60

query I rowsort
SELECT + 14 * CASE - 40 WHEN 20 THEN 70 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6671
SELECT ALL 19 DIV + COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL 19 / + COUNT ( * ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-6672
SELECT - 25 + 65 + - + 47 AS col0, + MAX( - 39 ) AS col1
----
-7
-39

skipif mysql # not compatible
query II rowsort label-6672
SELECT - 25 + 65 + - + 47 AS col0, + MAX ( - 39 ) AS col1
----
-7
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6673
SELECT + COUNT( * ) DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-6673
SELECT + COUNT ( * ) / + 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT + COALESCE ( 43, + COUNT( * ) ) + + - 78 + - 95
----
-130

skipif mysql # not compatible
query I rowsort label-6674
SELECT + COALESCE ( 43, + COUNT ( * ) ) + + - 78 + - 95
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6675
SELECT + ( - - 98 ) * + + CAST( NULL AS SIGNED ), 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-6675
SELECT + ( - - 98 ) * + + CAST ( NULL AS INTEGER ), 7 AS col2
----
NULL
7

query I rowsort
SELECT DISTINCT 7 + - 63
----
-56

query II rowsort
SELECT 75, 26 AS col0
----
75
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6678
SELECT ALL - + CAST( + 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL - + CAST ( + 92 AS INTEGER )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT COUNT( NULLIF ( + 92, - 36 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6679
SELECT COUNT ( NULLIF ( + 92, - 36 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT DISTINCT - 90 + + SUM( - 47 ) + - 5 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT - 90 + + SUM ( - 47 ) + - 5 AS col1
----
-142

onlyif mysql # aggregate syntax: 
query II rowsort label-6681
SELECT ALL + 57 + MAX( ALL + 99 ) col1, - 27
----
156
-27

skipif mysql # not compatible
query II rowsort label-6681
SELECT ALL + 57 + MAX ( ALL + 99 ) col1, - 27
----
156
-27

onlyif mysql # aggregate syntax: 
query III rowsort label-6682
SELECT 81 AS col1, 11 * - - 96 * 68 AS col2, + - COUNT( * ) + + 39 - - + 56 AS col1
----
81
71808
94

skipif mysql # not compatible
query III rowsort label-6682
SELECT 81 AS col1, 11 * - - 96 * 68 AS col2, + - COUNT ( * ) + + 39 - - + 56 AS col1
----
81
71808
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6683
SELECT - 98 + + ( + COUNT( * ) ) + + 38 + CAST( NULL AS SIGNED ) + + 76 - + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6683
SELECT - 98 + + ( + COUNT ( * ) ) + + 38 + CAST ( NULL AS INTEGER ) + + 76 - + 59
----
NULL

query I rowsort
SELECT ( + - 7 ) col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT ALL 42 DIV + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL 42 / + 66 AS col2
----
0

query II rowsort
SELECT + 63 AS col1, - 59 * - NULLIF ( + 13, + 4 ) AS col1
----
63
767

query II rowsort
SELECT - 81 * - - 24 * - 90, + 60 * 30 col2
----
174960
1800

query II rowsort
SELECT + - 14, + ( 84 ) * 40 col1
----
-14
3360

query I rowsort
SELECT ALL + 74 + - 6 - - + ( + 20 )
----
88

query I rowsort
SELECT - 42 * + 15 - - + COALESCE ( 91, + 97 ) - ( + 71 )
----
-610

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT DISTINCT - + COALESCE ( + 49, - 20 * + 35, + ( MIN( 89 ) ) - 53 + 53 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT - + COALESCE ( + 49, - 20 * + 35, + ( MIN ( 89 ) ) - 53 + 53 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT DISTINCT 26 * - MIN( 48 )
----
-1248

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT 26 * - MIN ( 48 )
----
-1248

query I rowsort
SELECT ALL + 13 - 65
----
-52

query II rowsort
SELECT + 97 AS col2, + 13 * - 6 AS col1
----
97
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT 33 * + - 32 + - + COUNT( * ) / COUNT( * ) + - 82 * - CASE 46 WHEN - SUM( 98 ) THEN 25 WHEN + ( 45 ) THEN - ( 81 ) * - ( + 23 + 47 * - 49 ) + CASE 38 + 72 WHEN - 62 THEN NULL WHEN - 75 + 27 THEN 9 - + 52 WHEN 90 * ( + 73 ) THEN 98 * 24 ELSE + 46 + + 21 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT 33 * + - 32 + - + COUNT ( * ) / COUNT ( * ) + - 82 * - CASE 46 WHEN - SUM ( 98 ) THEN 25 WHEN + ( 45 ) THEN - ( 81 ) * - ( + 23 + 47 * - 49 ) + CASE 38 + 72 WHEN - 62 THEN NULL WHEN - 75 + 27 THEN 9 - + 52 WHEN 90 * ( + 73 ) THEN 98 * 24 ELSE + 46 + + 21 END ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6696
SELECT 14 DIV - - 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6696
SELECT 14 / - - 24 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6697
SELECT - ( + COALESCE ( 63, + CAST( - 2 AS SIGNED ) * - COUNT( * ) * + 3 + + + 51 + COUNT( * ) * - 88 DIV 2, - 7 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-6697
SELECT - ( + COALESCE ( 63, + CAST ( - 2 AS INTEGER ) * - COUNT ( * ) * + 3 + + + 51 + COUNT ( * ) * - 88 / 2, - 7 ) )
----
-63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6698
SELECT - 28 + - 82 * - AVG ( - 52 ) * + - CAST( + + 14 AS DECIMAL ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT - 28 + - 82 * - AVG ( - 52 ) * + - CAST ( + + 14 AS REAL ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 63 + + 90 * - - 93 AS col1
----
8433

query I rowsort
SELECT ALL - - 11 col0
----
11

query I rowsort
SELECT ALL 32 * + 84
----
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT 72 + - - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-6702
SELECT 72 + - - COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT 78 * - ( - COALESCE ( + 63, - 66 + - + ( + COUNT( * ) ) ) )
----
4914

skipif mysql # not compatible
query I rowsort label-6703
SELECT 78 * - ( - COALESCE ( + 63, - 66 + - + ( + COUNT ( * ) ) ) )
----
4914

query I rowsort
SELECT 91 * - - 59
----
5369

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6705
SELECT 97 + + NULLIF ( + - COALESCE ( 77, - 21 * - + 47 + + 84 + - 70 + 96 ), ( - CAST( NULL AS DECIMAL ) ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-6705
SELECT 97 + + NULLIF ( + - COALESCE ( 77, - 21 * - + 47 + + 84 + - 70 + 96 ), ( - CAST ( NULL AS REAL ) ) ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT 68 * + COUNT( ALL + - 62 )
----
68

skipif mysql # not compatible
query I rowsort label-6706
SELECT 68 * + COUNT ( ALL + - 62 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6707
SELECT DISTINCT - 55 + + 66 * + 43 + + NULLIF ( - 61, + COUNT( + ( + - COALESCE ( + 66, + 93 + 0 * - CAST( NULL AS SIGNED ), 97, - 37 + 82 ) ) ) ) col1
----
2722

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT - 55 + + 66 * + 43 + + NULLIF ( - 61, + COUNT ( + ( + - COALESCE ( + 66, + 93 + 0 * - CAST ( NULL AS INTEGER ), 97, - 37 + 82 ) ) ) ) col1
----
2722

query I rowsort
SELECT DISTINCT - 83 * - 1
----
83

query I rowsort
SELECT 81 * - 86
----
-6966

query II rowsort
SELECT ALL 66 + + - 74, 15 AS col1
----
-8
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL + 10 + + + ( COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL + 10 + + + ( COUNT ( * ) )
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-6712
SELECT 3 + - - 72 AS col2, 9 DIV - + 65
----
75
0

skipif mysql # not compatible
query II rowsort label-6712
SELECT 3 + - - 72 AS col2, 9 / - + 65
----
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT DISTINCT - 92 + + + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT - 92 + + + COUNT ( * ) AS col0
----
-91

query I rowsort
SELECT ALL + 38 + - 77 * + 17 AS col2
----
-1271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6715
SELECT SUM( ALL + 24 ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT SUM ( ALL + 24 ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT 91 * + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-6716
SELECT 91 * + + COUNT ( * )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6717
SELECT DISTINCT - 36 * - + CAST( NULL AS SIGNED ) * - + 14 + + + 61, 2 + - - 56 col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-6717
SELECT DISTINCT - 36 * - + CAST ( NULL AS INTEGER ) * - + 14 + + + 61, 2 + - - 56 col1
----
NULL
58

query I rowsort
SELECT DISTINCT - 78 + + - 49 AS col2
----
-127

query I rowsort
SELECT DISTINCT - ( - - 65 ) col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6720
SELECT ALL 53 + - CASE - - COUNT( * ) WHEN CAST( + 67 AS SIGNED ) + + - ( + + 72 ) * + + 88 * - ( 79 ) + + 23 THEN NULL ELSE - 71 + 33 * MIN( 39 - 10 ) END - + 38 AS col1
----
-871

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL 53 + - CASE - - COUNT ( * ) WHEN CAST ( + 67 AS INTEGER ) + + - ( + + 72 ) * + + 88 * - ( 79 ) + + 23 THEN NULL ELSE - 71 + 33 * MIN ( 39 - 10 ) END - + 38 AS col1
----
-871

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT DISTINCT SUM( ALL - 41 ) * + + ( 43 ) AS col1
----
-1763

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT SUM ( ALL - 41 ) * + + ( 43 ) AS col1
----
-1763

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6722
SELECT + COALESCE ( + CAST( - 17 AS DECIMAL ), - 96 + 24 - - COUNT( * ) ) - - 72 + 7 * - CASE 21 WHEN SUM( ALL + 56 ) + - 39 THEN COALESCE ( COUNT( * ), AVG ( ( + 62 ) ) ) / 69 + 90 * + COUNT( * ) WHEN 55 THEN 7 / + COUNT( * ) ELSE NULL END * COALESCE ( 59, 63 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT + COALESCE ( + CAST ( - 17 AS REAL ), - 96 + 24 - - COUNT ( * ) ) - - 72 + 7 * - CASE 21 WHEN SUM ( ALL + 56 ) + - 39 THEN COALESCE ( COUNT ( * ), AVG ( ( + 62 ) ) ) / 69 + 90 * + COUNT ( * ) WHEN 55 THEN 7 / + COUNT ( * ) ELSE NULL END * COALESCE ( 59, 63 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6723
SELECT ALL - CAST( + 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-6723
SELECT ALL - CAST ( + 10 AS INTEGER )
----
-10

query I rowsort
SELECT ALL 15 * 3
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6725
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), - + 85 * 63 * COUNT( * ) * MAX( - - 39 ) + + COUNT( * ) ) * + COUNT( * ) * + 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), - + 85 * 63 * COUNT ( * ) * MAX ( - - 39 ) + + COUNT ( * ) ) * + COUNT ( * ) * + 11 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 0 - - 66 * - 69 * + - 90
----
409860

query I rowsort
SELECT DISTINCT - + 4 AS col0
----
-4

query I rowsort
SELECT DISTINCT + 59 * 58
----
3422

query I rowsort
SELECT DISTINCT ( - 38 ) * ( + 19 )
----
-722

onlyif mysql # aggregate syntax: 
query II rowsort label-6730
SELECT ALL - NULLIF ( + 85, 45 ) AS col1, + 54 + + MAX( 19 ) + + 41
----
-85
114

skipif mysql # not compatible
query II rowsort label-6730
SELECT ALL - NULLIF ( + 85, 45 ) AS col1, + 54 + + MAX ( 19 ) + + 41
----
-85
114

query I rowsort
SELECT 72 * + ( - 76 )
----
-5472

query I rowsort
SELECT ALL 44 * - - 81
----
3564

query I rowsort
SELECT DISTINCT 2 * 49 AS col1
----
98

query I rowsort
SELECT 52 - + 96 col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT 91 DIV + ( + 27 )
----
3

skipif mysql # not compatible
query I rowsort label-6735
SELECT 91 / + ( + 27 )
----
3

query I rowsort
SELECT ALL + 41 + 13
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT + 31 * + - 5 * + 50 + COUNT( * )
----
-7749

skipif mysql # not compatible
query I rowsort label-6737
SELECT + 31 * + - 5 * + 50 + COUNT ( * )
----
-7749

onlyif mysql # DIV for integer division: 
query I rowsort label-6738
SELECT - 78 * COALESCE ( 76, + 49 DIV + 67 ) AS col1
----
-5928

skipif mysql # not compatible
query I rowsort label-6738
SELECT - 78 * COALESCE ( 76, + 49 / + 67 ) AS col1
----
-5928

query I rowsort
SELECT DISTINCT + 24 + + + 20 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL - COUNT( * ) * + 87 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL - COUNT ( * ) * + 87 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT + ( 87 ) + 12 + COUNT( * ) + - - CASE - + 8 WHEN + - 20 THEN NULL WHEN - + 60 THEN ( - COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT + ( 87 ) + 12 + COUNT ( * ) + - - CASE - + 8 WHEN + - 20 THEN NULL WHEN - + 60 THEN ( - COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT ALL + 6 + 66 - 53 + - - 14 + 45 * 68 * COUNT( * ) + + 84 + - - 96 * + + COUNT( ALL 60 ) AS col2
----
3273

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL + 6 + 66 - 53 + - - 14 + 45 * 68 * COUNT ( * ) + + 84 + - - 96 * + + COUNT ( ALL 60 ) AS col2
----
3273

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT DISTINCT - SUM( - ( - 54 ) ) * - ( - - ( + 83 ) ) AS col1
----
4482

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT - SUM ( - ( - 54 ) ) * - ( - - ( + 83 ) ) AS col1
----
4482

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6744
SELECT - NULLIF ( - 10, - COALESCE ( + 59, 21 * - 58 + + - 40 - + 67 ) ) + - 49 - + + CAST( NULL AS DECIMAL ) + - COUNT( * ) * - ( 84 * - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT - NULLIF ( - 10, - COALESCE ( + 59, 21 * - 58 + + - 40 - + 67 ) ) + - 49 - + + CAST ( NULL AS REAL ) + - COUNT ( * ) * - ( 84 * - 41 )
----
NULL

query I rowsort
SELECT - ( - ( - 61 ) ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT - MAX( - CASE WHEN ( NULL ) IS NOT NULL THEN + + 78 WHEN NOT ( NULL ) IS NULL THEN NULL ELSE - 77 END ) + + 87 * - + 55 AS col2
----
-4862

skipif mysql # not compatible
query I rowsort label-6746
SELECT - MAX ( - CASE WHEN ( NULL ) IS NOT NULL THEN + + 78 WHEN NOT ( NULL ) IS NULL THEN NULL ELSE - 77 END ) + + 87 * - + 55 AS col2
----
-4862

query I rowsort
SELECT + 41 - - 77
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6748
SELECT - - COALESCE ( - ( - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ), + ( CASE + 48 WHEN + 15 * + 40 THEN NULL WHEN 55 THEN + COUNT( * ) END ) / + NULLIF ( - COUNT( * ), 77 * + 25 ) ) * + 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT - - COALESCE ( - ( - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ), + ( CASE + 48 WHEN + 15 * + 40 THEN NULL WHEN 55 THEN + COUNT ( * ) END ) / + NULLIF ( - COUNT ( * ), 77 * + 25 ) ) * + 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT DISTINCT SUM( + - NULLIF ( - - 20, + 4 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT SUM ( + - NULLIF ( - - 20, + 4 ) )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6750
SELECT DISTINCT - ( + COALESCE ( - 7, + + 87, - 6 ) ) - + + COUNT( * ) AS col1, COUNT( * ) AS col1
----
6
1

skipif mysql # not compatible
query II rowsort label-6750
SELECT DISTINCT - ( + COALESCE ( - 7, + + 87, - 6 ) ) - + + COUNT ( * ) AS col1, COUNT ( * ) AS col1
----
6
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6751
SELECT 22 AS col2, - NULLIF ( 70, + 88 * - 81 * 34 * - CASE - 57 WHEN - NULLIF ( + 36, NULLIF ( COUNT( * ), 43 ) * - 10 - 60 ) * - COALESCE ( 31, + 84 ) THEN NULL ELSE + 95 + 24 END * + 53 ) - 87
----
22
-157

skipif mysql # not compatible
query II rowsort label-6751
SELECT 22 AS col2, - NULLIF ( 70, + 88 * - 81 * 34 * - CASE - 57 WHEN - NULLIF ( + 36, NULLIF ( COUNT ( * ), 43 ) * - 10 - 60 ) * - COALESCE ( 31, + 84 ) THEN NULL ELSE + 95 + 24 END * + 53 ) - 87
----
22
-157

query II rowsort
SELECT ALL - 79 * 63 - + 36 col1, 20 AS col2
----
-5013
20

query I rowsort
SELECT - - 91 + 48 * - 96 AS col2
----
-4517

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT + MAX( + 71 ) * + + ( COUNT( * ) ) * + COUNT( * ) + 71 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-6754
SELECT + MAX ( + 71 ) * + + ( COUNT ( * ) ) * + COUNT ( * ) + 71 AS col1
----
142

query I rowsort
SELECT ALL 27 * + 31 AS col0
----
837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT + CAST( + + 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-6756
SELECT + CAST ( + + 43 AS INTEGER )
----
43

query I rowsort
SELECT + 70 * - - 48 AS col2
----
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT ALL + COALESCE ( - 80, + - 62 * - 2 ) * - CAST( NULL AS SIGNED ) * + - CAST( + + 73 AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL + COALESCE ( - 80, + - 62 * - 2 ) * - CAST ( NULL AS INTEGER ) * + - CAST ( + + 73 AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT ALL + + CAST( 17 AS SIGNED ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + + CAST ( 17 AS INTEGER ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT + - MAX( + 7 ) * + 82 * COUNT( * )
----
-574

skipif mysql # not compatible
query I rowsort label-6760
SELECT + - MAX ( + 7 ) * + 82 * COUNT ( * )
----
-574

query I rowsort
SELECT + 46 + - + NULLIF ( - 25, + + 72 ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT ALL CASE - + ( - 85 ) WHEN + SUM( DISTINCT - 28 ) * + 83 + 86 * + 46 THEN + + 62 WHEN - CAST( + - ( 49 ) AS SIGNED ) - - CAST( - CASE - AVG ( 55 ) WHEN ( + 93 ) THEN 88 WHEN COUNT( * ) THEN 16 * - 53 ELSE NULL END AS SIGNED ) THEN - 24 END * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL CASE - + ( - 85 ) WHEN + SUM ( DISTINCT - 28 ) * + 83 + 86 * + 46 THEN + + 62 WHEN - CAST ( + - ( 49 ) AS INTEGER ) - - CAST ( - CASE - AVG ( 55 ) WHEN ( + 93 ) THEN 88 WHEN COUNT ( * ) THEN 16 * - 53 ELSE NULL END AS INTEGER ) THEN - 24 END * 67
----
NULL

query I rowsort
SELECT + 38 + 60 + 75 + 98
----
271

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT 0 * 12 DIV + 58 + - 4 + - 94 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-6764
SELECT 0 * 12 / + 58 + - 4 + - 94 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT - COUNT( * ) * MIN( DISTINCT + 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-6765
SELECT - COUNT ( * ) * MIN ( DISTINCT + 82 )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-6766
SELECT + NULLIF ( - 15, - + 65 + - 64 + - 45 / - MIN( ALL + 99 ) ) * - COUNT( * ) * + 64 AS col2, - 14
----
960
-14

skipif mysql # not compatible
query II rowsort label-6766
SELECT + NULLIF ( - 15, - + 65 + - 64 + - 45 / - MIN ( ALL + 99 ) ) * - COUNT ( * ) * + 64 AS col2, - 14
----
960
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT + COUNT( * ) + - MIN( - 76 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-6767
SELECT + COUNT ( * ) + - MIN ( - 76 ) AS col0
----
77

query I rowsort
SELECT + 65 * - 65 - - 42 AS col0
----
-4183

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT CASE + 38 WHEN - 21 + + + 60 + + 47 / - + 37 * - + 85 * + + AVG ( + 87 ) * - 68 THEN + 72 WHEN - COUNT( DISTINCT + 81 ) THEN 59 / + 36 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT CASE + 38 WHEN - 21 + + + 60 + + 47 / - + 37 * - + 85 * + + AVG ( + 87 ) * - 68 THEN + 72 WHEN - COUNT ( DISTINCT + 81 ) THEN 59 / + 36 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6770
SELECT ALL 46 * - COUNT( * ) + CAST( + CASE + 38 WHEN 8 THEN NULL ELSE + + 50 DIV 19 * + + 61 END AS SIGNED ) * - 60
----
-7366

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL 46 * - COUNT ( * ) + CAST ( + CASE + 38 WHEN 8 THEN NULL ELSE + + 50 / 19 * + + 61 END AS INTEGER ) * - 60
----
-7366

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT 37 * + - 17 - + + CASE + 77 WHEN - 82 + COUNT( * ) + + 17 THEN 93 * - + 8 + - 51 + - 18 / - 65 / MAX( + 69 * - 13 - 35 ) - ( - 60 ) * + 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT 37 * + - 17 - + + CASE + 77 WHEN - 82 + COUNT ( * ) + + 17 THEN 93 * - + 8 + - 51 + - 18 / - 65 / MAX ( + 69 * - 13 - 35 ) - ( - 60 ) * + 20 ELSE NULL END
----
NULL

query I rowsort
SELECT + ( ( - 33 ) ) AS col1
----
-33

query II rowsort
SELECT + ( - 22 ) AS col0, + 67 + + 75
----
-22
142

query I rowsort
SELECT ALL 83 * + 22 + + 86
----
1912

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ( - CASE + + 87 WHEN - + 14 THEN + ( - 90 ) END ) * 63 + 19 * - 19 + - + COUNT( 79 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT ( - CASE + + 87 WHEN - + 14 THEN + ( - 90 ) END ) * 63 + 19 * - 19 + - + COUNT ( 79 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6776
SELECT DISTINCT COUNT( * ) col0, - CASE + 89 WHEN - + 42 THEN NULL ELSE - 81 END DIV 62 + + 42 AS col2
----
1
43

skipif mysql # not compatible
query II rowsort label-6776
SELECT DISTINCT COUNT ( * ) col0, - CASE + 89 WHEN - + 42 THEN NULL ELSE - 81 END / 62 + + 42 AS col2
----
1
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6777
SELECT ALL - 13 * - + ( - - 77 ) + - 94, + 66 DIV + SUM( ALL - - 87 ) AS col2
----
907
0

skipif mysql # not compatible
query II rowsort label-6777
SELECT ALL - 13 * - + ( - - 77 ) + - 94, + 66 / + SUM ( ALL - - 87 ) AS col2
----
907
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6778
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6778
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6779
SELECT ALL 26 * + 77 + - CAST( NULL AS SIGNED ) * - 51 AS col1, 57 AS col0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-6779
SELECT ALL 26 * + 77 + - CAST ( NULL AS INTEGER ) * - 51 AS col1, 57 AS col0
----
NULL
57

query I rowsort
SELECT + 25 + + 28
----
53

query I rowsort
SELECT - COALESCE ( 34, - 29 + - 39 ) AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6782
SELECT DISTINCT 48 * + NULLIF ( - 95, + NULLIF ( - 58, 45 + - 54 ) + - + 49 + + + CAST( - 86 AS SIGNED ) * + 56 * 10 + - COUNT( DISTINCT 68 ) ) AS col1
----
-4560

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT 48 * + NULLIF ( - 95, + NULLIF ( - 58, 45 + - 54 ) + - + 49 + + + CAST ( - 86 AS INTEGER ) * + 56 * 10 + - COUNT ( DISTINCT 68 ) ) AS col1
----
-4560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6783
SELECT + CAST( NULL AS SIGNED ) * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT + CAST ( NULL AS INTEGER ) * + 82
----
NULL

query I rowsort
SELECT - 18 * 70 col2
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT ALL SUM( ALL - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL SUM ( ALL - 53 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6786
SELECT + CASE + - 99 WHEN - 5 THEN MIN( DISTINCT 56 ) + + COUNT( + + 81 ) - - - COALESCE ( + SUM( - - 94 ), + + 22 ) * 38 END * + CAST( 7 * 84 - COUNT( * ) * 66 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6786
SELECT + CASE + - 99 WHEN - 5 THEN MIN ( DISTINCT 56 ) + + COUNT ( + + 81 ) - - - COALESCE ( + SUM ( - - 94 ), + + 22 ) * 38 END * + CAST ( 7 * 84 - COUNT ( * ) * 66 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 94 + + 93 * - 22 * 14 col1
----
-28738

query II rowsort
SELECT 91 AS col0, 65
----
91
65

query I rowsort
SELECT DISTINCT 34 * - 95 AS col2
----
-3230

query I rowsort
SELECT + 78 * - - 49 col0
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT - 92 * + - 83 + + + 25 * - SUM( ALL - - 93 )
----
5311

skipif mysql # not compatible
query I rowsort label-6791
SELECT - 92 * + - 83 + + + 25 * - SUM ( ALL - - 93 )
----
5311

query II rowsort
SELECT ALL - 53, ( - + 44 ) AS col0
----
-53
-44

query II rowsort
SELECT ALL 70 AS col2, - 66 AS col1
----
70
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT 12 AS col0, SUM( DISTINCT - 94 ) - - NULLIF ( + 96, + 41 ) AS col1
----
12
2

skipif mysql # not compatible
query II rowsort label-6794
SELECT 12 AS col0, SUM ( DISTINCT - 94 ) - - NULLIF ( + 96, + 41 ) AS col1
----
12
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6795
SELECT - - 6 + + CAST( - 72 AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6795
SELECT - - 6 + + CAST ( - 72 AS INTEGER ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT - + 31 * - SUM( DISTINCT + 74 )
----
2294

skipif mysql # not compatible
query I rowsort label-6796
SELECT - + 31 * - SUM ( DISTINCT + 74 )
----
2294

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT - NULLIF ( MIN( ALL + 58 ), - 85 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6797
SELECT - NULLIF ( MIN ( ALL + 58 ), - 85 ) AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6798
SELECT DISTINCT + - CAST( 94 AS SIGNED ) col1, - 84 - 25 AS col2
----
-94
-109

skipif mysql # not compatible
query II rowsort label-6798
SELECT DISTINCT + - CAST ( 94 AS INTEGER ) col1, - 84 - 25 AS col2
----
-94
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL + - MAX( ALL 82 ) * 54
----
-4428

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL + - MAX ( ALL 82 ) * 54
----
-4428

onlyif mysql # aggregate syntax: 
query II rowsort label-6800
SELECT + + COUNT( * ), 58 * - 84 + 81 AS col2
----
1
-4791

skipif mysql # not compatible
query II rowsort label-6800
SELECT + + COUNT ( * ), 58 * - 84 + 81 AS col2
----
1
-4791

query II rowsort
SELECT ALL + 58 col0, + 70 AS col0
----
58
70

query II rowsort
SELECT ALL + + 0 AS col1, 64 AS col2
----
0
64

query II rowsort
SELECT ALL + 51, - 91 + + 74 AS col0
----
51
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT COUNT( ( - 3 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6804
SELECT COUNT ( ( - 3 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6805
SELECT DISTINCT + COALESCE ( - NULLIF ( - 70, + CAST( NULL AS SIGNED ) * + + 35 * + 19 * - 3 + MAX( DISTINCT + 13 ) ), + 4 )
----
70

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT + COALESCE ( - NULLIF ( - 70, + CAST ( NULL AS INTEGER ) * + + 35 * + 19 * - 3 + MAX ( DISTINCT + 13 ) ), + 4 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6806
SELECT + 32 + - NULLIF ( 60, + + 90 * + 28 + - 21 ) * COUNT( + 69 ) DIV 94 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6806
SELECT + 32 + - NULLIF ( 60, + + 90 * + 28 + - 21 ) * COUNT ( + 69 ) / 94 AS col0
----
32

query I rowsort
SELECT + ( - + 73 ) AS col2
----
-73

query II rowsort
SELECT DISTINCT - 23 + - - 7 AS col2, 46 + + 77 + + + 16 + + 13 * + 85 * + 19 AS col2
----
-16
21134

query I rowsort
SELECT ALL 14 + 22
----
36

query I rowsort
SELECT DISTINCT - NULLIF ( - 40, - + 67 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL - 42 + + 68 - - COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL - 42 + + 68 - - COUNT ( * ) AS col2
----
27

query II rowsort
SELECT 78 * + + 36, 75 AS col1
----
2808
75

query I rowsort
SELECT ALL + 78 + - 4 AS col2
----
74

query I rowsort
SELECT ALL 43 + - ( - + 5 ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ( COALESCE ( - - 78, - + CASE 40 WHEN + + 55 * + 42 - + 67 THEN CASE + - 96 WHEN - 33 THEN - COUNT( * ) WHEN + 11 + 39 * + ( - 95 ) THEN NULL ELSE + 31 + + 52 END ELSE + 92 END + - 81 ) ) * 46
----
3588

skipif mysql # not compatible
query I rowsort label-6815
SELECT ( COALESCE ( - - 78, - + CASE 40 WHEN + + 55 * + 42 - + 67 THEN CASE + - 96 WHEN - 33 THEN - COUNT ( * ) WHEN + 11 + 39 * + ( - 95 ) THEN NULL ELSE + 31 + + 52 END ELSE + 92 END + - 81 ) ) * 46
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT MAX( - - 97 ) - + 8
----
89

skipif mysql # not compatible
query I rowsort label-6816
SELECT MAX ( - - 97 ) - + 8
----
89

query I rowsort
SELECT + ( 53 ) * + + 85 + - 59 AS col1
----
4446

query I rowsort
SELECT ( + 29 ) * - 43 AS col2
----
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT COUNT( * ) + - 9 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-6819
SELECT COUNT ( * ) + - 9 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT 35 * + 42 * + COUNT( * ) AS col0
----
1470

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT 35 * + 42 * + COUNT ( * ) AS col0
----
1470

query II rowsort
SELECT DISTINCT + 79 - + 39, + 5 col0
----
40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT - MIN( + + 21 ) - - - 72 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6822
SELECT - MIN ( + + 21 ) - - - 72 AS col1
----
-93

query I rowsort
SELECT DISTINCT 64 * + - 16 + + 33 + - 17 AS col2
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT - ( MIN( DISTINCT - - 93 ) ) + - + 30 AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-6824
SELECT - ( MIN ( DISTINCT - - 93 ) ) + - + 30 AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT COUNT( * ) + 38 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6825
SELECT COUNT ( * ) + 38 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6826
SELECT 14 DIV 49 AS col0, + COALESCE ( + + CASE + 43 WHEN - + 25 DIV - SUM( DISTINCT 19 ) THEN + - 80 WHEN + 50 + - + 50 + 97 + + 75 DIV MIN( 22 ) THEN NULL ELSE NULL END, 36 )
----
0
36

skipif mysql # not compatible
query II rowsort label-6826
SELECT 14 / 49 AS col0, + COALESCE ( + + CASE + 43 WHEN - + 25 / - SUM ( DISTINCT 19 ) THEN + - 80 WHEN + 50 + - + 50 + 97 + + 75 / MIN ( 22 ) THEN NULL ELSE NULL END, 36 )
----
0
36

query I rowsort
SELECT ALL - 55 * 88 * + + 18 * - 12
----
1045440

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT + COUNT( + 69 ) + - MAX( ALL + + 99 ) + - SUM( - ( - 73 ) )
----
-171

skipif mysql # not compatible
query I rowsort label-6828
SELECT + COUNT ( + 69 ) + - MAX ( ALL + + 99 ) + - SUM ( - ( - 73 ) )
----
-171

query I rowsort
SELECT ( + COALESCE ( - + 57, 63 ) ) * + 76 AS col1
----
-4332

query I rowsort
SELECT 6 + + - 83 AS col1
----
-77

query I rowsort
SELECT ALL ( 20 ) * - 52 AS col2
----
-1040

query I rowsort
SELECT 83 * - - 76 AS col1
----
6308

query I rowsort
SELECT ALL + 14 + - 48 col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6834
SELECT DISTINCT + SUM( + CAST( 97 AS SIGNED ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT + SUM ( + CAST ( 97 AS INTEGER ) ) AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT + CASE 73 WHEN + 82 - 35 + ( - 30 ) THEN NULL WHEN 11 / - CAST( - - 13 AS SIGNED ) + ( - + 46 ) + 79 * - 29 THEN 70 * - 63 ELSE 61 - + 1 END AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6835
SELECT + CASE 73 WHEN + 82 - 35 + ( - 30 ) THEN NULL WHEN 11 / - CAST ( - - 13 AS INTEGER ) + ( - + 46 ) + 79 * - 29 THEN 70 * - 63 ELSE 61 - + 1 END AS col0
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-6836
SELECT + MIN( - 75 ) AS col2, - 85 * - 14 col2
----
-75
1190

skipif mysql # not compatible
query II rowsort label-6836
SELECT + MIN ( - 75 ) AS col2, - 85 * - 14 col2
----
-75
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ALL + + 45 + - + COUNT( * ) * - 6
----
51

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + + 45 + - + COUNT ( * ) * - 6
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6838
SELECT 30, - CAST( 25 AS SIGNED ) AS col1
----
30
-25

skipif mysql # not compatible
query II rowsort label-6838
SELECT 30, - CAST ( 25 AS INTEGER ) AS col1
----
30
-25

query I rowsort
SELECT 97 * + 64 AS col0
----
6208

query I rowsort
SELECT DISTINCT - 37 + - 80 AS col1
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT ALL - COALESCE ( COALESCE ( + - 48, ( + 11 ), + - 74 ), - 4 + + + SUM( 5 ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL - COALESCE ( COALESCE ( + - 48, ( + 11 ), + - 74 ), - 4 + + + SUM ( 5 ) ) AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6842
SELECT ALL 85 + + CAST( - 65 AS SIGNED ) + + 4 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL 85 + + CAST ( - 65 AS INTEGER ) + + 4 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6843
SELECT ALL - COUNT( * ) + ( - CAST( NULL AS SIGNED ) ) + + + 38 + + ( - 11 ) + + 31 * 54 - - - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL - COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) ) + + + 38 + + ( - 11 ) + + 31 * 54 - - - 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT DISTINCT - 37 * + - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - 37 * + - COUNT ( * ) AS col0
----
37

query I rowsort
SELECT 97 + - 98 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6846
SELECT COUNT( - 55 ) * 35 + 59 DIV + + 41 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-6846
SELECT COUNT ( - 55 ) * 35 + 59 / + + 41 AS col0
----
36

query II rowsort
SELECT - 81 * - 87 + - - 86 col1, - 20 AS col2
----
7133
-20

query I rowsort
SELECT ALL - ( - + ( ( - 93 ) ) )
----
-93

query I rowsort
SELECT 87 + + 29 AS col0
----
116

query I rowsort
SELECT - 18 * + 88 - - 90 * - 71
----
-7974

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT 96 + - - 84 * + 52 - MAX( ALL 76 ) + - NULLIF ( - - 77, - + AVG ( + ( 21 ) ) ) AS col2
----
4311

skipif mysql # not compatible
query I rowsort label-6851
SELECT 96 + - - 84 * + 52 - MAX ( ALL 76 ) + - NULLIF ( - - 77, - + AVG ( + ( 21 ) ) ) AS col2
----
4311

query I rowsort
SELECT 32 + - 44
----
-12

query I rowsort
SELECT ALL - 75 * + 74
----
-5550

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6854
SELECT DISTINCT - 2 DIV + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT - 2 / + COUNT ( * )
----
-2

query I rowsort
SELECT ALL - ( - 45 ) col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6856
SELECT DISTINCT - 93 - - - ( + ( 61 ) ) + + 2 DIV - - 40 + - 18
----
-172

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT - 93 - - - ( + ( 61 ) ) + + 2 / - - 40 + - 18
----
-172

query I rowsort
SELECT 15 * + 30 AS col1
----
450

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6858
SELECT - 61 * + 77 * + 73 + + - COUNT( * ) / - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT - 61 * + 77 * + 73 + + - COUNT ( * ) / - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6859
SELECT ( + + 99 ) + 61 AS col2, COUNT( * ) AS col2
----
160
1

skipif mysql # not compatible
query II rowsort label-6859
SELECT ( + + 99 ) + 61 AS col2, COUNT ( * ) AS col2
----
160
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT 80 * + - MAX( + 90 ) * - 98
----
705600

skipif mysql # not compatible
query I rowsort label-6860
SELECT 80 * + - MAX ( + 90 ) * - 98
----
705600

query I rowsort
SELECT DISTINCT - 59 * + - 41 AS col2
----
2419

onlyif mysql # aggregate syntax: 
query II rowsort label-6862
SELECT - 66 AS col2, COUNT( * ) AS col1
----
-66
1

skipif mysql # not compatible
query II rowsort label-6862
SELECT - 66 AS col2, COUNT ( * ) AS col1
----
-66
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6863
SELECT CAST( NULL AS SIGNED ) * MIN( DISTINCT 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6863
SELECT CAST ( NULL AS INTEGER ) * MIN ( DISTINCT 8 ) AS col1
----
NULL

query II rowsort
SELECT - 27 AS col2, 98
----
-27
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT 60 + + + MIN( - 6 )
----
54

skipif mysql # not compatible
query I rowsort label-6865
SELECT 60 + + + MIN ( - 6 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6866
SELECT ( + CASE + - CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) * - 32 * + 24 + - - 52 * 32 * + 5 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN - 88 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6866
SELECT ( + CASE + - CAST ( NULL AS REAL ) WHEN - COUNT ( * ) * - 32 * + 24 + - - 52 * 32 * + 5 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN - 88 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT 19 + + 48 + - 37 / COUNT( * ) * + 80 * - COUNT( 65 ) + - - 37 / + ( + - AVG ( ALL 38 ) ) * + - CAST( NULL AS SIGNED ) + - - COUNT( * ) - 92 - - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT 19 + + 48 + - 37 / COUNT ( * ) * + 80 * - COUNT ( 65 ) + - - 37 / + ( + - AVG ( ALL 38 ) ) * + - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) - 92 - - 10
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6868
SELECT ALL - COUNT( + CAST( + CAST( - + 21 AS SIGNED ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - COUNT ( + CAST ( + CAST ( - + 21 AS INTEGER ) AS INTEGER ) )
----
-1

query II rowsort
SELECT DISTINCT 5 col1, 55 AS col2
----
5
55

query I rowsort
SELECT 21 * + - 52 AS col1
----
-1092

query I rowsort
SELECT ALL + 43 + 4 * - 99 * 32 AS col0
----
-12629

query I rowsort
SELECT ALL COALESCE ( - 73, - 95 * - + ( - 0 ) + + + 23 * - - 78 ) + + + 13
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-6873
SELECT COUNT( * ) + 94 * 9 AS col2, 58
----
847
58

skipif mysql # not compatible
query II rowsort label-6873
SELECT COUNT ( * ) + 94 * 9 AS col2, 58
----
847
58

query I rowsort
SELECT + 3 * 18 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT - ( 52 ) + + CASE COALESCE ( + ( 91 ), + 98 ) WHEN + 72 THEN - 38 * - - 35 WHEN 36 * + 21 + 21 * + 57 - + COUNT( * ) THEN - COUNT( * ) * - 7 + 7 * 31 END + + 62 * + ( 18 + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT - ( 52 ) + + CASE COALESCE ( + ( 91 ), + 98 ) WHEN + 72 THEN - 38 * - - 35 WHEN 36 * + 21 + 21 * + 57 - + COUNT ( * ) THEN - COUNT ( * ) * - 7 + 7 * 31 END + + 62 * + ( 18 + 9 )
----
NULL

query I rowsort
SELECT - COALESCE ( + + 19, - + 26 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6877
SELECT ALL + 49 + COUNT( * ) * + - 80, + COUNT( ALL + 48 ) col1
----
-31
1

skipif mysql # not compatible
query II rowsort label-6877
SELECT ALL + 49 + COUNT ( * ) * + - 80, + COUNT ( ALL + 48 ) col1
----
-31
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT + 79 DIV 27 DIV - 11 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6878
SELECT + 79 / 27 / - 11 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6879
SELECT - - NULLIF ( + + 75, - COUNT( * ) ) + 72 DIV + ( + 60 )
----
76

skipif mysql # not compatible
query I rowsort label-6879
SELECT - - NULLIF ( + + 75, - COUNT ( * ) ) + 72 / + ( + 60 )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6880
SELECT ALL ( + 37 ) * - CAST( NULL AS SIGNED ) * - COUNT( * ) + CASE + 90 WHEN - ( - + 77 ) + + 64 THEN + + CAST( + 73 AS SIGNED ) END * - 83, + 50 AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-6880
SELECT ALL ( + 37 ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + CASE + 90 WHEN - ( - + 77 ) + + 64 THEN + + CAST ( + 73 AS INTEGER ) END * - 83, + 50 AS col1
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL 27 * + COUNT( * ) + - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL 27 * + COUNT ( * ) + - COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT DISTINCT 3 * + - COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT 3 * + - COUNT ( * ) AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6883
SELECT ALL + SUM( - 5 ) DIV + + 71 * - - COUNT( 44 )
----
0

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL + SUM ( - 5 ) / + + 71 * - - COUNT ( 44 )
----
0

query I rowsort
SELECT DISTINCT 2 * - + 15 + + 96 + + NULLIF ( - 87, - 6 ) * ( + - 42 )
----
3720

query I rowsort
SELECT - 8 - 84
----
-92

query I rowsort
SELECT COALESCE ( - 3, 50 - 30 ) AS col0
----
-3

query I rowsort
SELECT + 96 * + - 16 * 29
----
-44544

query I rowsort
SELECT DISTINCT - 6 * - 79 AS col2
----
474

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL - CASE + - 19 WHEN - + MIN( + - 26 ) * - 91 + + 22 THEN - - 10 ELSE + 67 END * - - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL - CASE + - 19 WHEN - + MIN ( + - 26 ) * - 91 + + 22 THEN - - 10 ELSE + 67 END * - - COUNT ( * )
----
-67

query I rowsort
SELECT - 83 * - 53 AS col2
----
4399

query II rowsort
SELECT DISTINCT 89 * - 20, 79 AS col1
----
-1780
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6892
SELECT ALL + CAST( + 10 AS SIGNED ) AS col0, 82 AS col0
----
10
82

skipif mysql # not compatible
query II rowsort label-6892
SELECT ALL + CAST ( + 10 AS INTEGER ) AS col0, 82 AS col0
----
10
82

query I rowsort
SELECT ALL - 89 * - 90
----
8010

query II rowsort
SELECT DISTINCT + CASE + 20 WHEN + - 47 / + 53 THEN NULL WHEN + + 53 - + - 90 THEN NULL WHEN 98 + - + 2 THEN + 71 END AS col2, 65 + 86 AS col2
----
NULL
151

onlyif mysql # DIV for integer division: 
query I rowsort label-6895
SELECT + 47 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-6895
SELECT + 47 / - 95
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6896
SELECT + 6 + - COALESCE ( - + COUNT( * ), - 49, + 10 ) DIV 41 + - COALESCE ( + ( + + 45 ), ( + - 35 ) - - 91 + 71, 60 )
----
-39

skipif mysql # not compatible
query I rowsort label-6896
SELECT + 6 + - COALESCE ( - + COUNT ( * ), - 49, + 10 ) / 41 + - COALESCE ( + ( + + 45 ), ( + - 35 ) - - 91 + 71, 60 )
----
-39

query I rowsort
SELECT - 11 - - 88
----
77

query I rowsort
SELECT - 85 * + 82
----
-6970

query I rowsort
SELECT - ( 19 ) + + 10
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT ALL + + 45 DIV + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL + + 45 / + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT - ( + 90 ) + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-6901
SELECT - ( + 90 ) + - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6902
SELECT - + COALESCE ( - COUNT( * ), COALESCE ( + + 43, + 54 + ( + COUNT( * ) ) ) ) - - 26 + 39 col1, - 43 DIV - 37 col1
----
66
1

skipif mysql # not compatible
query II rowsort label-6902
SELECT - + COALESCE ( - COUNT ( * ), COALESCE ( + + 43, + 54 + ( + COUNT ( * ) ) ) ) - - 26 + 39 col1, - 43 / - 37 col1
----
66
1

query I rowsort
SELECT DISTINCT + - 3 + + + 24
----
21

query I rowsort
SELECT DISTINCT - 86 + 34 + + 5 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT DISTINCT + + 53 + - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT + + 53 + - COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT - COUNT( + + 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-6906
SELECT - COUNT ( + + 22 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL + COUNT( DISTINCT + 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL + COUNT ( DISTINCT + 91 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT - COUNT( - + 30 ) + - 9
----
-10

skipif mysql # not compatible
query I rowsort label-6908
SELECT - COUNT ( - + 30 ) + - 9
----
-10

query I rowsort
SELECT DISTINCT - 71 + + 42 * - - 81 AS col1
----
3331

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6910
SELECT ALL COUNT( * ) - COALESCE ( + - 94, + - 98, 66 + - 57 ) DIV + 62 - - 9 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL COUNT ( * ) - COALESCE ( + - 94, + - 98, 66 + - 57 ) / + 62 - - 9 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT + COALESCE ( - 60, - + 2 + - 83 DIV + 95 * ( - 57 ) ) * 15 AS col0
----
-900

skipif mysql # not compatible
query I rowsort label-6911
SELECT + COALESCE ( - 60, - + 2 + - 83 / + 95 * ( - 57 ) ) * 15 AS col0
----
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6912
SELECT ALL CAST( 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL CAST ( 86 AS INTEGER )
----
86

query II rowsort
SELECT DISTINCT 10, - 37 AS col2
----
10
-37

query I rowsort
SELECT ALL 55 - - - 53 col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6915
SELECT + COUNT( * ) AS col0, 6
----
1
6

skipif mysql # not compatible
query II rowsort label-6915
SELECT + COUNT ( * ) AS col0, 6
----
1
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6916
SELECT COUNT( * ) DIV - + 41 + - 54 DIV 55 * + 25
----
0

skipif mysql # not compatible
query I rowsort label-6916
SELECT COUNT ( * ) / - + 41 + - 54 / 55 * + 25
----
0

query I rowsort
SELECT + ( + ( + 99 ) ) + - 88
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6918
SELECT - 72 / + - CAST( NULL AS SIGNED ) + + CASE - 29 WHEN 18 THEN + CAST( NULL AS SIGNED ) WHEN + COUNT( * ) * ( - - 99 ) THEN - CAST( NULL AS SIGNED ) * - 24 + COUNT( * ) - + - CAST( NULL AS SIGNED ) + - ( + 68 ) + - 74 ELSE NULL END + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6918
SELECT - 72 / + - CAST ( NULL AS INTEGER ) + + CASE - 29 WHEN 18 THEN + CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) * ( - - 99 ) THEN - CAST ( NULL AS INTEGER ) * - 24 + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) + - ( + 68 ) + - 74 ELSE NULL END + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL + SUM( - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL + SUM ( - 86 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT 48 / COUNT( * ) + + - 35 + - + CASE COUNT( * ) WHEN 91 * - - 58 + + + 63 THEN - COALESCE ( + 37, - 0 + 57, - 85 ) WHEN - 42 * + ( + 0 ) THEN 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT 48 / COUNT ( * ) + + - 35 + - + CASE COUNT ( * ) WHEN 91 * - - 58 + + + 63 THEN - COALESCE ( + 37, - 0 + 57, - 85 ) WHEN - 42 * + ( + 0 ) THEN 75 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6921
SELECT + 18 DIV + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6921
SELECT + 18 / + COUNT ( * ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT + COUNT( * ) + 44 + + 12 col1
----
57

skipif mysql # not compatible
query I rowsort label-6922
SELECT + COUNT ( * ) + 44 + + 12 col1
----
57

query I rowsort
SELECT 21 * 58 * 68 + + + 78 + - + 94 * 93 * - 7 AS col2
----
144096

query I rowsort
SELECT ( + - 60 )
----
-60

query I rowsort
SELECT + - 79 + - 14 + - 29 AS col0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT + MAX( ALL + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-6926
SELECT + MAX ( ALL + 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ALL + - COUNT( * ) * 3 + - + 91
----
-94

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL + - COUNT ( * ) * 3 + - + 91
----
-94

query I rowsort
SELECT + + 4 * - ( + 86 ) * - ( + + 47 ) * 38 + - 10
----
614374

query I rowsort
SELECT ALL + + 14 * + 37 + 93
----
611

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT ALL 30 * + 42 + CASE - 52 WHEN - 78 / CASE COUNT( * ) WHEN + - 74 THEN COUNT( ALL + - ( 26 ) ) * 75 * + - 82 - NULLIF ( + + 12, 44 * 52 - + 0 * MAX( ALL + ( + 0 ) * 18 + + 3 ) ) * 95 WHEN + 0 + 18 / CASE + 12 WHEN 70 * 68 THEN NULL ELSE 39 + 86 / 37 END THEN + 17 - + 64 WHEN ( + COALESCE ( 67, 38 ) ) * - 55 THEN + 98 * - 37 + 45 END + 97 THEN NULL WHEN 56 THEN NULL ELSE NULLIF ( 18, + ( AVG ( ALL + ( 67 ) ) ) ) * - 81 END + 69 * COUNT( * ) AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL 30 * + 42 + CASE - 52 WHEN - 78 / CASE COUNT ( * ) WHEN + - 74 THEN COUNT ( ALL + - ( 26 ) ) * 75 * + - 82 - NULLIF ( + + 12, 44 * 52 - + 0 * MAX ( ALL + ( + 0 ) * 18 + + 3 ) ) * 95 WHEN + 0 + 18 / CASE + 12 WHEN 70 * 68 THEN NULL ELSE 39 + 86 / 37 END THEN + 17 - + 64 WHEN ( + COALESCE ( 67, 38 ) ) * - 55 THEN + 98 * - 37 + 45 END + 97 THEN NULL WHEN 56 THEN NULL ELSE NULLIF ( 18, + ( AVG ( ALL + ( 67 ) ) ) ) * - 81 END + 69 * COUNT ( * ) AS col1
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6931
SELECT - CAST( SUM( - - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT - CAST ( SUM ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6932
SELECT DISTINCT + 22 * + NULLIF ( + + CAST( NULL AS SIGNED ), + ( 22 ) ) * - - 23 * - 91 + + AVG ( - 45 ) + 38 - + + 78 + - NULLIF ( CASE - - 45 WHEN + COUNT( * ) * 89 + - 40 THEN + 16 END, 82 * ( + 21 * 74 ) ) + 80 * ( + 52 ) * ( + ( 30 ) * 57 + 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT + 22 * + NULLIF ( + + CAST ( NULL AS INTEGER ), + ( 22 ) ) * - - 23 * - 91 + + AVG ( - 45 ) + 38 - + + 78 + - NULLIF ( CASE - - 45 WHEN + COUNT ( * ) * 89 + - 40 THEN + 16 END, 82 * ( + 21 * 74 ) ) + 80 * ( + 52 ) * ( + ( 30 ) * 57 + 56 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6933
SELECT ALL 38 * + + 7 + COUNT( * ) + - + 80 * 90 AS col0, + COUNT( * ) + + 49 AS col2
----
-6933
50

skipif mysql # not compatible
query II rowsort label-6933
SELECT ALL 38 * + + 7 + COUNT ( * ) + - + 80 * 90 AS col0, + COUNT ( * ) + + 49 AS col2
----
-6933
50

query I rowsort
SELECT - 85 + + 70 - + + 34 * + + 32 * + 76 AS col1
----
-82703

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT ALL + COUNT( ALL - - 3 ) * COUNT( * ) + - 30
----
-29

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + COUNT ( ALL - - 3 ) * COUNT ( * ) + - 30
----
-29

query I rowsort
SELECT + - 77 * + 42
----
-3234

query I rowsort
SELECT - + ( - + 13 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6938
SELECT + 52 DIV 4 * + COUNT( - - CAST( - 26 AS DECIMAL ) ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-6938
SELECT + 52 / 4 * + COUNT ( - - CAST ( - 26 AS REAL ) ) AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT ALL - 22 - - - 20 + + 53 DIV - 89
----
-42

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL - 22 - - - 20 + + 53 / - 89
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT DISTINCT SUM( 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT SUM ( 63 ) AS col1
----
63

query I rowsort
SELECT DISTINCT + - 26 * 68 * 87 col2
----
-153816

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT DISTINCT + 72 DIV - - 60 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT + 72 / - - 60 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6943
SELECT 30 DIV + + COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6943
SELECT 30 / + + COUNT ( * ) AS col2
----
30

query II rowsort
SELECT DISTINCT 54, 25 + + + ( + 11 ) * 26 AS col1
----
54
311

query I rowsort
SELECT DISTINCT - 78 * - - 91
----
-7098

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT ALL + 24 * 42 * - COUNT( * ) * - - ( 54 )
----
-54432

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL + 24 * 42 * - COUNT ( * ) * - - ( 54 )
----
-54432

query I rowsort
SELECT 7 + + 55
----
62

query I rowsort
SELECT 90 - + COALESCE ( + 75, - 34 ) * - 42 AS col2
----
3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6949
SELECT COUNT( * ) * - 25 * CASE + + 40 WHEN + ( - 30 ) THEN + 1 DIV + 17 ELSE + 91 * - 7 + 46 + 96 * 30 END AS col1
----
-57225

skipif mysql # not compatible
query I rowsort label-6949
SELECT COUNT ( * ) * - 25 * CASE + + 40 WHEN + ( - 30 ) THEN + 1 / + 17 ELSE + 91 * - 7 + 46 + 96 * 30 END AS col1
----
-57225

onlyif mysql # aggregate syntax: 
query II rowsort label-6950
SELECT ALL 69 col2, 9 + + - 8 + - 84 - - 67 * + - COUNT( * ) col2
----
69
-150

skipif mysql # not compatible
query II rowsort label-6950
SELECT ALL 69 col2, 9 + + - 8 + - 84 - - 67 * + - COUNT ( * ) col2
----
69
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-6951
SELECT 32 col1, COUNT( * ) AS col0
----
32
1

skipif mysql # not compatible
query II rowsort label-6951
SELECT 32 col1, COUNT ( * ) AS col0
----
32
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6952
SELECT ALL + COUNT( * ) * + ( + COALESCE ( + 11, + 87 DIV - - 18 * + COUNT( * ) + + 45 ) )
----
11

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL + COUNT ( * ) * + ( + COALESCE ( + 11, + 87 / - - 18 * + COUNT ( * ) + + 45 ) )
----
11

query I rowsort
SELECT DISTINCT - NULLIF ( - - 54, - 98 ) AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6954
SELECT ALL - 80, CASE 40 WHEN + - COUNT( * ) + 6 / - ( - CASE - 60 WHEN - 12 * + 96 * + COUNT( * ) THEN - + 57 ELSE NULL END ) THEN NULL WHEN NULLIF ( + 24, + COUNT( * ) ) THEN - CAST( NULL AS SIGNED ) + COUNT( DISTINCT ( - 57 ) ) END * 44 AS col0
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-6954
SELECT ALL - 80, CASE 40 WHEN + - COUNT ( * ) + 6 / - ( - CASE - 60 WHEN - 12 * + 96 * + COUNT ( * ) THEN - + 57 ELSE NULL END ) THEN NULL WHEN NULLIF ( + 24, + COUNT ( * ) ) THEN - CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT ( - 57 ) ) END * 44 AS col0
----
-80
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT DISTINCT - 54, - 87 - - + MIN( + 37 ) AS col0
----
-54
-50

skipif mysql # not compatible
query II rowsort label-6955
SELECT DISTINCT - 54, - 87 - - + MIN ( + 37 ) AS col0
----
-54
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6956
SELECT DISTINCT CAST( MAX( 57 ) AS SIGNED ) * 25 AS col2
----
1425

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT CAST ( MAX ( 57 ) AS INTEGER ) * 25 AS col2
----
1425

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT ALL + 62 DIV 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL + 62 / 86 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6958
SELECT COUNT( * ) DIV + ( - 83 )
----
0

skipif mysql # not compatible
query I rowsort label-6958
SELECT COUNT ( * ) / + ( - 83 )
----
0

query I rowsort
SELECT ( - 82 ) * + - 21 + + 42 col2
----
1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6960
SELECT 40 AS col0, 59 * + 65 * - CAST( NULL AS SIGNED ) + + COUNT( * ) + + + 8 - - 86 / - 63 + + + 25 col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-6960
SELECT 40 AS col0, 59 * + 65 * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + + 8 - - 86 / - 63 + + + 25 col0
----
40
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6961
SELECT + 44, + COUNT( * ) AS col2
----
44
1

skipif mysql # not compatible
query II rowsort label-6961
SELECT + 44, + COUNT ( * ) AS col2
----
44
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT 31 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6962
SELECT 31 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 27 + + 51 AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6964
SELECT DISTINCT - + 62 * - + 81 DIV + COUNT( * ) AS col0
----
5022

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT - + 62 * - + 81 / + COUNT ( * ) AS col0
----
5022

query I rowsort
SELECT DISTINCT 99 * + 47 + 96 AS col2
----
4749

query I rowsort
SELECT ALL 3 + + 74 AS col0
----
77

query I rowsort
SELECT DISTINCT + 20 + - 20 * 23 AS col0
----
-440

query I rowsort
SELECT DISTINCT - 45 + 87 * + - COALESCE ( + + 68, - 31 ) * - 10 * + 2 col1
----
118275

query I rowsort
SELECT ALL - 86 + 12
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT - COUNT( * ) + - 25
----
-26

skipif mysql # not compatible
query I rowsort label-6970
SELECT - COUNT ( * ) + - 25
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6971
SELECT + CAST( NULL AS SIGNED ) + + 81 / 5 + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT + CAST ( NULL AS INTEGER ) + + 81 / 5 + + 5
----
NULL

query II rowsort
SELECT ALL - - 48 AS col2, 17 * - 13 * - - 69 col0
----
48
-15249

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + 15 * + + 11 + MAX( DISTINCT + + 81 ) AS col1
----
246

skipif mysql # not compatible
query I rowsort label-6973
SELECT + 15 * + + 11 + MAX ( DISTINCT + + 81 ) AS col1
----
246

query II rowsort
SELECT - 75 AS col2, 56 AS col2
----
-75
56

query I rowsort
SELECT ALL 6 - + 27 + - + 77
----
-98

query II rowsort
SELECT ALL + - ( - 75 ) - ( - 54 ) AS col2, 68 AS col0
----
129
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6977
SELECT - SUM( + CAST( NULL AS SIGNED ) ) * - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6977
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) * - 8 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6978
SELECT ALL CAST( NULL AS SIGNED ) * ( - + 83 ) + 19 + + + AVG ( ALL - + 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL CAST ( NULL AS INTEGER ) * ( - + 83 ) + 19 + + + AVG ( ALL - + 70 ) AS col0
----
NULL

query II rowsort
SELECT ALL 48 AS col0, 69 + - 77
----
48
-8

query I rowsort
SELECT + ( - - 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6981
SELECT COUNT( * ) + + 7 + CAST( 10 AS SIGNED ) + 59 col2
----
77

skipif mysql # not compatible
query I rowsort label-6981
SELECT COUNT ( * ) + + 7 + CAST ( 10 AS INTEGER ) + 59 col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT ALL + NULLIF ( + 43, CAST( NULL AS SIGNED ) ) - ( + + 30 )
----
13

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + NULLIF ( + 43, CAST ( NULL AS INTEGER ) ) - ( + + 30 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + COUNT( * ) * 82 * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6983
SELECT + COUNT ( * ) * 82 * 0 AS col0
----
0

query I rowsort
SELECT 7 * + 38
----
266

onlyif mysql # aggregate syntax: 
query II rowsort label-6985
SELECT 90 + + MIN( ALL - 44 ), 94 AS col0
----
46
94

skipif mysql # not compatible
query II rowsort label-6985
SELECT 90 + + MIN ( ALL - 44 ), 94 AS col0
----
46
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT 97 * - - ( 39 ) * + 88 + - COUNT( * ) AS col1
----
332903

skipif mysql # not compatible
query I rowsort label-6986
SELECT 97 * - - ( 39 ) * + 88 + - COUNT ( * ) AS col1
----
332903

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL - COUNT( * ) * - 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL - COUNT ( * ) * - 16 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT DISTINCT + CAST( + CAST( 12 AS SIGNED ) AS SIGNED ) * + 82 * - 28 - + 16 AS col0
----
-27568

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT + CAST ( + CAST ( 12 AS INTEGER ) AS INTEGER ) * + 82 * - 28 - + 16 AS col0
----
-27568

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT DISTINCT + 2 + COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6989
SELECT DISTINCT + 2 + COUNT ( * ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6990
SELECT ALL + COUNT( + 52 ) + + - 29 col0, - COUNT( * )
----
-28
-1

skipif mysql # not compatible
query II rowsort label-6990
SELECT ALL + COUNT ( + 52 ) + + - 29 col0, - COUNT ( * )
----
-28
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT DISTINCT + CASE + ( - COUNT( * ) ) WHEN + 95 / + 61 THEN + 65 END * 77 * - - 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT + CASE + ( - COUNT ( * ) ) WHEN + 95 / + 61 THEN + 65 END * 77 * - - 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6992
SELECT 85 DIV COUNT( * ) + 23 - 81 DIV 62 * + - 53 * - ( - + 41 ) + + 16 - - 7 + + - 2 * + - 27
----
2358

skipif mysql # not compatible
query I rowsort label-6992
SELECT 85 / COUNT ( * ) + 23 - 81 / 62 * + - 53 * - ( - + 41 ) + + 16 - - 7 + + - 2 * + - 27
----
2358

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT DISTINCT - MAX( + 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT - MAX ( + 55 ) AS col0
----
-55

query I rowsort
SELECT 21 + 38 AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6995
SELECT + 26 DIV - - 3 - - ( + 27 ) + + COALESCE ( + 50, - 65 DIV COUNT( * ) - - + 95 ) + - 22 DIV + - 90
----
85

skipif mysql # not compatible
query I rowsort label-6995
SELECT + 26 / - - 3 - - ( + 27 ) + + COALESCE ( + 50, - 65 / COUNT ( * ) - - + 95 ) + - 22 / + - 90
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT MIN( DISTINCT + + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6996
SELECT MIN ( DISTINCT + + 0 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT 58 * - 17 * + 59 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6997
SELECT 58 * - 17 * + 59 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT ALL CAST( NULL AS SIGNED ) * + 45 + 1 + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL CAST ( NULL AS INTEGER ) * + 45 + 1 + 74
----
NULL

query I rowsort
SELECT - 43 * - 97 + + 32 AS col1
----
4203

query I rowsort
SELECT DISTINCT + 60 * + NULLIF ( 96, + 26 ) * + 80 AS col1
----
460800

query I rowsort
SELECT DISTINCT + - 95 * 33 + 94 + + 4
----
-3037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7002
SELECT + 40 + CASE - MIN( - + CAST( + 23 AS SIGNED ) ) WHEN - - 11 THEN - - MIN( DISTINCT + + 18 ) WHEN + NULLIF ( COUNT( * ), + 96 ) / - 41 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7002
SELECT + 40 + CASE - MIN ( - + CAST ( + 23 AS INTEGER ) ) WHEN - - 11 THEN - - MIN ( DISTINCT + + 18 ) WHEN + NULLIF ( COUNT ( * ), + 96 ) / - 41 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - 78 * - 75 + + + 1 AS col0
----
5851

query I rowsort
SELECT - 80 * 98
----
-7840

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7005
SELECT + + COUNT( * ) * - 80 + + CASE + + CASE MAX( + 16 ) WHEN - CASE - 9 WHEN + 83 THEN 86 / + + 10 END THEN + NULLIF ( + 74, 0 * - 3 ) ELSE - 18 + - + CASE 65 WHEN + 61 * + COUNT( * ) + 1 THEN NULL WHEN - 77 THEN 66 * - 43 + + 80 END END WHEN + 16 * - 8 THEN + COALESCE ( + 99, - CAST( NULL AS DECIMAL ) - 47, - 43 ) * - CASE - 12 WHEN 22 * - 80 THEN NULL WHEN 53 * - 2 THEN - 36 * 22 ELSE 70 END WHEN CASE 13 WHEN - 94 * - MAX( DISTINCT + 27 ) THEN 66 WHEN - 91 + - 79 THEN + COUNT( * ) ELSE NULL END / + COUNT( * ) THEN NULL END + + 59 + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT + + COUNT ( * ) * - 80 + + CASE + + CASE MAX ( + 16 ) WHEN - CASE - 9 WHEN + 83 THEN 86 / + + 10 END THEN + NULLIF ( + 74, 0 * - 3 ) ELSE - 18 + - + CASE 65 WHEN + 61 * + COUNT ( * ) + 1 THEN NULL WHEN - 77 THEN 66 * - 43 + + 80 END END WHEN + 16 * - 8 THEN + COALESCE ( + 99, - CAST ( NULL AS REAL ) - 47, - 43 ) * - CASE - 12 WHEN 22 * - 80 THEN NULL WHEN 53 * - 2 THEN - 36 * 22 ELSE 70 END WHEN CASE 13 WHEN - 94 * - MAX ( DISTINCT + 27 ) THEN 66 WHEN - 91 + - 79 THEN + COUNT ( * ) ELSE NULL END / + COUNT ( * ) THEN NULL END + + 59 + + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL 60 - + NULLIF ( + 99, - - COALESCE ( + 94, - 28 ) ) + - 42 + - 74 + 30 * - 30 + - ( + + 98 ) * - - COUNT( * ) * - 19 + - + SUM( + 18 ) + - 85 AS col1
----
704

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL 60 - + NULLIF ( + 99, - - COALESCE ( + 94, - 28 ) ) + - 42 + - 74 + 30 * - 30 + - ( + + 98 ) * - - COUNT ( * ) * - 19 + - + SUM ( + 18 ) + - 85 AS col1
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT + CASE + 66 WHEN + 24 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT + CASE + 66 WHEN + 24 THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7008
SELECT + - 94 DIV - 54
----
1

skipif mysql # not compatible
query I rowsort label-7008
SELECT + - 94 / - 54
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7009
SELECT DISTINCT + 83 DIV - COUNT( * ) AS col0, 1 * + COUNT( * ) * + + 7
----
-83
7

skipif mysql # not compatible
query II rowsort label-7009
SELECT DISTINCT + 83 / - COUNT ( * ) AS col0, 1 * + COUNT ( * ) * + + 7
----
-83
7

query II rowsort
SELECT - - 50 * 63 col0, 38
----
3150
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7011
SELECT ALL - 39 DIV - MAX( - 28 ) - + + 7 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL - 39 / - MAX ( - 28 ) - + + 7 AS col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7012
SELECT + MAX( ALL - 99 ) DIV - 95 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7012
SELECT + MAX ( ALL - 99 ) / - 95 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7013
SELECT DISTINCT ( + 63 ) DIV COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT ( + 63 ) / COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-7014
SELECT + 92 * + 19 AS col1, + ( + COUNT( * ) ) - + - 37 + - 41
----
1748
-3

skipif mysql # not compatible
query II rowsort label-7014
SELECT + 92 * + 19 AS col1, + ( + COUNT ( * ) ) - + - 37 + - 41
----
1748
-3

query I rowsort
SELECT - NULLIF ( - - 66, - + 33 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT + 67 * - COUNT( * ) * 19 AS col1
----
-1273

skipif mysql # not compatible
query I rowsort label-7016
SELECT + 67 * - COUNT ( * ) * 19 AS col1
----
-1273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7017
SELECT ALL + CASE 9 WHEN - ( NULLIF ( + - 74, - 81 ) ) THEN NULL WHEN + 2 / + CASE - + 90 WHEN 69 THEN 35 WHEN - COALESCE ( - + 45, - + CASE - COUNT( * ) WHEN - + 37 * + CAST( - ( 4 ) AS SIGNED ) THEN - COALESCE ( 81, 75 * 10 ) END ) THEN 10 END + 60 THEN COUNT( * ) + - 38 * - 19 END + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL + CASE 9 WHEN - ( NULLIF ( + - 74, - 81 ) ) THEN NULL WHEN + 2 / + CASE - + 90 WHEN 69 THEN 35 WHEN - COALESCE ( - + 45, - + CASE - COUNT ( * ) WHEN - + 37 * + CAST ( - ( 4 ) AS INTEGER ) THEN - COALESCE ( 81, 75 * 10 ) END ) THEN 10 END + 60 THEN COUNT ( * ) + - 38 * - 19 END + 35 AS col0
----
NULL

query I rowsort
SELECT ALL 25 * + 39 AS col2
----
975

query I rowsort
SELECT + 31 * 23
----
713

query I rowsort
SELECT - 37 + + 14
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7021
SELECT 3 AS col1, - 43 * MIN( 16 ) DIV - - 60
----
3
-11

skipif mysql # not compatible
query II rowsort label-7021
SELECT 3 AS col1, - 43 * MIN ( 16 ) / - - 60
----
3
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7022
SELECT ALL ( - NULLIF ( + COALESCE ( + 34, COUNT( * ) * + 58 * 84 DIV - 44 * - CAST( + 69 AS SIGNED ) - + 56 * - + 60 + 16 + + 46 * COUNT( * ) ), NULLIF ( 13, - 70 ) * + 44 ) ) + 99 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL ( - NULLIF ( + COALESCE ( + 34, COUNT ( * ) * + 58 * 84 / - 44 * - CAST ( + 69 AS INTEGER ) - + 56 * - + 60 + 16 + + 46 * COUNT ( * ) ), NULLIF ( 13, - 70 ) * + 44 ) ) + 99 AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7023
SELECT - 32 col0, - COUNT( * )
----
-32
-1

skipif mysql # not compatible
query II rowsort label-7023
SELECT - 32 col0, - COUNT ( * )
----
-32
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 1 * - - 6 * - 75 AS col1
----
-450

query I rowsort
SELECT - 7 + ( + - 29 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT ALL + 53 + + 64 + + + 11 + + - 83 * 84 + SUM( 7 ) * NULLIF ( + 54, - 36 * - 30 + 57 + - - 52 * - 91 * - 79 )
----
-6466

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL + 53 + + 64 + + + 11 + + - 83 * 84 + SUM ( 7 ) * NULLIF ( + 54, - 36 * - 30 + 57 + - - 52 * - 91 * - 79 )
----
-6466

query I rowsort
SELECT ALL - 99 * 57 AS col2
----
-5643

query I rowsort
SELECT ( + + 25 ) AS col0
----
25

query I rowsort
SELECT DISTINCT - 81 * + 64
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT ALL + 26 * + CASE + 45 WHEN + + 11 THEN NULL WHEN - MIN( DISTINCT 5 ) THEN + 3 * 6 * 22 * - + 3 * - + 95 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL + 26 * + CASE + 45 WHEN + + 11 THEN NULL WHEN - MIN ( DISTINCT 5 ) THEN + 3 * 6 * 22 * - + 3 * - + 95 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT - 47 * + COALESCE ( - 31, - SUM( ( - 63 ) ) * 68 + - COUNT( * ) - - 67 ) AS col0, - 33
----
1457
-33

skipif mysql # not compatible
query II rowsort label-7032
SELECT - 47 * + COALESCE ( - 31, - SUM ( ( - 63 ) ) * 68 + - COUNT ( * ) - - 67 ) AS col0, - 33
----
1457
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL + 61 * + 39 - 37 * MIN( - - 23 )
----
1528

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL + 61 * + 39 - 37 * MIN ( - - 23 )
----
1528

query I rowsort
SELECT + - ( + - 73 )
----
73

query I rowsort
SELECT - 47 * - - 45
----
-2115

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT + - 67 AS col1, + 69 + + 47 - + 31 + COUNT( * )
----
-67
86

skipif mysql # not compatible
query II rowsort label-7036
SELECT + - 67 AS col1, + 69 + + 47 - + 31 + COUNT ( * )
----
-67
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7037
SELECT - 65 * ( - CAST( NULL AS SIGNED ) ) + + 24 + - + 64 - + 9 * - - 29 * + 13 * 88 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7037
SELECT - 65 * ( - CAST ( NULL AS INTEGER ) ) + + 24 + - + 64 - + 9 * - - 29 * + 13 * 88 * - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT DISTINCT + + SUM( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT + + SUM ( 59 )
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7039
SELECT ALL 31 * COUNT( * ) * - + 86 * - 98 * 38 * - COUNT( * ) - + 83 + COALESCE ( - 7, + 64 + + + 29 + - 12 + + NULLIF ( + COUNT( * ), 64 ) * + 72 + - 48 * - 94 DIV + 8 ) * - 27 * 5 col1
----
-9927322

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL 31 * COUNT ( * ) * - + 86 * - 98 * 38 * - COUNT ( * ) - + 83 + COALESCE ( - 7, + 64 + + + 29 + - 12 + + NULLIF ( + COUNT ( * ), 64 ) * + 72 + - 48 * - 94 / + 8 ) * - 27 * 5 col1
----
-9927322

query II rowsort
SELECT DISTINCT + 18 col1, 70 AS col1
----
18
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7041
SELECT ALL - ( + 38 ) * + MIN( - 3 ) * 68 * CAST( + - AVG ( DISTINCT + 63 ) AS SIGNED ) + + 46 AS col2
----
-488330

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL - ( + 38 ) * + MIN ( - 3 ) * 68 * CAST ( + - AVG ( DISTINCT + 63 ) AS INTEGER ) + + 46 AS col2
----
-488330

onlyif mysql # aggregate syntax: 
query II rowsort label-7042
SELECT - 10 col1, + ( ( - + COUNT( * ) ) )
----
-10
-1

skipif mysql # not compatible
query II rowsort label-7042
SELECT - 10 col1, + ( ( - + COUNT ( * ) ) )
----
-10
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7043
SELECT + 21, + SUM( 81 ) - + - COUNT( * ) AS col1
----
21
82

skipif mysql # not compatible
query II rowsort label-7043
SELECT + 21, + SUM ( 81 ) - + - COUNT ( * ) AS col1
----
21
82

query I rowsort
SELECT + 68 * + 95 AS col1
----
6460

query I rowsort
SELECT ALL - 94 * + + 86
----
-8084

onlyif mysql # aggregate syntax: 
query II rowsort label-7046
SELECT 45 AS col2, + MAX( DISTINCT + 93 )
----
45
93

skipif mysql # not compatible
query II rowsort label-7046
SELECT 45 AS col2, + MAX ( DISTINCT + 93 )
----
45
93

query II rowsort
SELECT ALL + 49 AS col0, + 19 * + + 74 AS col2
----
49
1406

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT - + MAX( ALL - + 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7048
SELECT - + MAX ( ALL - + 47 ) AS col1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7049
SELECT ALL 63 * COUNT( * ) * 95 + + SUM( 83 ) + + + 50 DIV + 84
----
6068

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL 63 * COUNT ( * ) * 95 + + SUM ( 83 ) + + + 50 / + 84
----
6068

query II rowsort
SELECT DISTINCT + NULLIF ( 9, - 47 ) * + + 34 AS col1, ( 32 )
----
306
32

query I rowsort
SELECT ALL ( + 85 ) + - - 70
----
155

query I rowsort
SELECT + 20 + + 10 * - 95
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT - COUNT( + 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-7053
SELECT - COUNT ( + 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT DISTINCT 54 + - + 82 + - NULLIF ( - CASE - COUNT( * ) WHEN COUNT( * ) THEN - 18 WHEN - 29 + - 89 / - COUNT( * ) + + + 72 - + 28 * + COALESCE ( + 16, + 75 ) * + 14 + + COUNT( * ) + + 36 THEN NULL ELSE NULL END, - ( + 5 ) ) + - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT 54 + - + 82 + - NULLIF ( - CASE - COUNT ( * ) WHEN COUNT ( * ) THEN - 18 WHEN - 29 + - 89 / - COUNT ( * ) + + + 72 - + 28 * + COALESCE ( + 16, + 75 ) * + 14 + + COUNT ( * ) + + 36 THEN NULL ELSE NULL END, - ( + 5 ) ) + - 77 AS col2
----
NULL

query I rowsort
SELECT + 60 + + 74 AS col1
----
134

query I rowsort
SELECT - ( 18 ) AS col1
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7057
SELECT DISTINCT COUNT( * ) - + ( + + 13 ) + + 79 DIV + 56 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-7057
SELECT DISTINCT COUNT ( * ) - + ( + + 13 ) + + 79 / + 56 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT ALL NULLIF ( COUNT( * ), - 92 + 49 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL NULLIF ( COUNT ( * ), - 92 + 49 ) col2
----
1

query I rowsort
SELECT - ( - - 90 )
----
-90

query I rowsort
SELECT - 53 * - 30 * 25
----
39750

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT + MIN( 94 )
----
94

skipif mysql # not compatible
query I rowsort label-7061
SELECT + MIN ( 94 )
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7062
SELECT COUNT( * ) DIV - + 53 - - COUNT( ALL + + 66 ) AS col0, + 65
----
1
65

skipif mysql # not compatible
query II rowsort label-7062
SELECT COUNT ( * ) / - + 53 - - COUNT ( ALL + + 66 ) AS col0, + 65
----
1
65

query I rowsort
SELECT + + 91 * + - ( - 84 ) - + + 80 * - 67 * 65 + - 15 + + 46
----
356075

query I rowsort
SELECT ALL - ( + 70 ) AS col1
----
-70

query I rowsort
SELECT + NULLIF ( + 85, 52 )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-7066
SELECT - 25 + COALESCE ( - + 98, - + 42 * - + COUNT( * ) ), - 16 col0
----
-123
-16

skipif mysql # not compatible
query II rowsort label-7066
SELECT - 25 + COALESCE ( - + 98, - + 42 * - + COUNT ( * ) ), - 16 col0
----
-123
-16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7067
SELECT ALL 94 DIV - 79, - CAST( - 5 AS SIGNED ) DIV - 13 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-7067
SELECT ALL 94 / - 79, - CAST ( - 5 AS INTEGER ) / - 13 AS col1
----
-1
0

query I rowsort
SELECT DISTINCT + 56 * + 34 * + 96 + + 54 col0
----
182838

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7069
SELECT + MAX( DISTINCT - 83 ) col1, + 22 + COUNT( DISTINCT - 9 ) DIV - 78 AS col0
----
-83
22

skipif mysql # not compatible
query II rowsort label-7069
SELECT + MAX ( DISTINCT - 83 ) col1, + 22 + COUNT ( DISTINCT - 9 ) / - 78 AS col0
----
-83
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT 53 DIV - - 8
----
6

skipif mysql # not compatible
query I rowsort label-7070
SELECT 53 / - - 8
----
6

query I rowsort
SELECT - + 90 * 36 + - 4
----
-3244

query I rowsort
SELECT ALL + 23 * 44
----
1012

query I rowsort
SELECT DISTINCT - 64 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT 43 * + 23 * + 73 * + 3 * + 59 + COUNT( * )
----
12778870

skipif mysql # not compatible
query I rowsort label-7074
SELECT 43 * + 23 * + 73 * + 3 * + 59 + COUNT ( * )
----
12778870

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT DISTINCT + - COUNT( ALL - - 59 ) + - ( + + ( 28 ) ) * - 56 * + - 8 AS col2
----
-12545

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT + - COUNT ( ALL - - 59 ) + - ( + + ( 28 ) ) * - 56 * + - 8 AS col2
----
-12545

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL + 73 + - ( + COUNT( * ) ) col0
----
72

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL + 73 + - ( + COUNT ( * ) ) col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7077
SELECT DISTINCT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7078
SELECT ALL + 70 + - + 7 DIV + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL + 70 + - + 7 / + COUNT ( * ) AS col0
----
63

query I rowsort
SELECT DISTINCT - COALESCE ( - 67, + 1 ) + + 57
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7080
SELECT ALL - MIN( ALL - CAST( - 45 AS SIGNED ) )
----
-45

skipif mysql # not compatible
query I rowsort label-7080
SELECT ALL - MIN ( ALL - CAST ( - 45 AS INTEGER ) )
----
-45

query I rowsort
SELECT ALL - 70 + + + 43
----
-27

query I rowsort
SELECT 99 * - 2 AS col2
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT 35 * + MAX( DISTINCT + 62 )
----
2170

skipif mysql # not compatible
query I rowsort label-7083
SELECT 35 * + MAX ( DISTINCT + 62 )
----
2170

query I rowsort
SELECT ALL + 25 * - 8 AS col0
----
-200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7085
SELECT 35 * + NULLIF ( + COUNT( + + CAST( + 21 AS SIGNED ) ), - 67 ) - 98 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7085
SELECT 35 * + NULLIF ( + COUNT ( + + CAST ( + 21 AS INTEGER ) ), - 67 ) - 98 AS col1
----
-63

query I rowsort
SELECT 22 + - - 26
----
48

query I rowsort
SELECT 25 * + + 75
----
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT ALL + ( - - COUNT( * ) ) * + ( 83 ) * + MIN( DISTINCT + 90 ) * + MAX( DISTINCT + 22 ) + + 39 AS col1
----
164379

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL + ( - - COUNT ( * ) ) * + ( 83 ) * + MIN ( DISTINCT + 90 ) * + MAX ( DISTINCT + 22 ) + + 39 AS col1
----
164379

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT ALL + NULLIF ( + 50, + ( COUNT( * ) ) + + - AVG ( - - 51 ) ) * + 10
----
500

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL + NULLIF ( + 50, + ( COUNT ( * ) ) + + - AVG ( - - 51 ) ) * + 10
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT ALL + 8 - - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL + 8 - - - COUNT ( * )
----
7

query I rowsort
SELECT DISTINCT - ( - 42 ) * - 54 * - + 10 + + 18 - - 96 - - 44
----
22838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7092
SELECT 66 + - - NULLIF ( 39, - AVG ( - - 63 ) + COUNT( - 30 ) * - CAST( - 87 AS SIGNED ) )
----
105

skipif mysql # not compatible
query I rowsort label-7092
SELECT 66 + - - NULLIF ( 39, - AVG ( - - 63 ) + COUNT ( - 30 ) * - CAST ( - 87 AS INTEGER ) )
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT ALL 6 DIV + - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL 6 / + - 70 AS col2
----
0

query I rowsort
SELECT + 50 * + 35 AS col0
----
1750

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT COUNT( * ) * 53 + - 9
----
44

skipif mysql # not compatible
query I rowsort label-7095
SELECT COUNT ( * ) * 53 + - 9
----
44

query I rowsort
SELECT - + ( - + 37 )
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7097
SELECT 48 + 88 - - 67 + - 99 - - + 65, - COUNT( * ) AS col0
----
169
-1

skipif mysql # not compatible
query II rowsort label-7097
SELECT 48 + 88 - - 67 + - 99 - - + 65, - COUNT ( * ) AS col0
----
169
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7098
SELECT DISTINCT CAST( CASE - - COUNT( * ) WHEN + 46 THEN 79 * - 29 END AS SIGNED ) - + ( + + 50 ) * - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT CAST ( CASE - - COUNT ( * ) WHEN + 46 THEN 79 * - 29 END AS INTEGER ) - + ( + + 50 ) * - + 51
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7099
SELECT ALL - 6, 16 DIV - 42 AS col2
----
-6
0

skipif mysql # not compatible
query II rowsort label-7099
SELECT ALL - 6, 16 / - 42 AS col2
----
-6
0

query I rowsort
SELECT DISTINCT - 20 * 81
----
-1620

query I rowsort
SELECT 96 * + 41 * + 96
----
377856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7102
SELECT DISTINCT - CASE 56 WHEN COUNT( * ) THEN 61 * ( CAST( NULL AS SIGNED ) ) * 94 END * + - ( 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT - CASE 56 WHEN COUNT ( * ) THEN 61 * ( CAST ( NULL AS INTEGER ) ) * 94 END * + - ( 40 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT + SUM( 23 )
----
23

skipif mysql # not compatible
query I rowsort label-7103
SELECT + SUM ( 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT MIN( - - 40 ) * - 19 AS col2
----
-760

skipif mysql # not compatible
query I rowsort label-7104
SELECT MIN ( - - 40 ) * - 19 AS col2
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT 19 * - COUNT( * ) col1
----
-19

skipif mysql # not compatible
query I rowsort label-7105
SELECT 19 * - COUNT ( * ) col1
----
-19

query I rowsort
SELECT 6 - - 59 + + - ( 51 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT MIN( ALL + NULLIF ( 15, - 79 ) )
----
15

skipif mysql # not compatible
query I rowsort label-7107
SELECT MIN ( ALL + NULLIF ( 15, - 79 ) )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7108
SELECT ALL + 52 + + 21 / + 90 - + AVG ( CAST( NULL AS SIGNED ) ) * 52
----
NULL

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL + 52 + + 21 / + 90 - + AVG ( CAST ( NULL AS INTEGER ) ) * 52
----
NULL

query I rowsort
SELECT 99 * + NULLIF ( - 5, - 55 ) * 54
----
-26730

query I rowsort
SELECT ALL + 2 + - 21 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT DISTINCT - SUM( + 11 ) + - MIN( + 22 )
----
-33

skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT - SUM ( + 11 ) + - MIN ( + 22 )
----
-33

query I rowsort
SELECT ALL + COALESCE ( + 61, 35, + 82 - 53 ) + - - 61
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-7113
SELECT - 25 - + COALESCE ( + COUNT( 42 ), - - COUNT( * ) ) AS col0, - 16 AS col0
----
-26
-16

skipif mysql # not compatible
query II rowsort label-7113
SELECT - 25 - + COALESCE ( + COUNT ( 42 ), - - COUNT ( * ) ) AS col0, - 16 AS col0
----
-26
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7114
SELECT ALL + ( - 72 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL + ( - 72 ) / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 48 * 93 - - 7
----
-4457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7116
SELECT 99 + + SUM( 21 ) DIV + 35
----
99

skipif mysql # not compatible
query I rowsort label-7116
SELECT 99 + + SUM ( 21 ) / + 35
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT 35 DIV - - 11 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7117
SELECT 35 / - - 11 AS col2
----
3

query I rowsort
SELECT ALL 2 + + 74 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT ALL + ( - MAX( ALL - 23 ) ) + - 89 + - - 83 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + ( - MAX ( ALL - 23 ) ) + - 89 + - - 83 AS col1
----
17

query I rowsort
SELECT COALESCE ( - 80, 49 + + 0, COALESCE ( - 31, + + 60 + + 72 ) ) + - + 42
----
-122

onlyif mysql # aggregate syntax: 
query III rowsort label-7121
SELECT 24 AS col2, 75, - 61 + + - COUNT( * ) AS col1
----
24
75
-62

skipif mysql # not compatible
query III rowsort label-7121
SELECT 24 AS col2, 75, - 61 + + - COUNT ( * ) AS col1
----
24
75
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7122
SELECT ALL + CAST( NULL AS SIGNED ) * - 16 / - 10 * - 83 * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + CAST ( NULL AS INTEGER ) * - 16 / - 10 * - 83 * - 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT 39 * + + 80 + + NULLIF ( 9, 19 ) + + COALESCE ( + + 21, - 30 - + + 99 - 75, COUNT( * ) + + 56 ) * - ( - - MIN( ALL + 11 ) )
----
2898

skipif mysql # not compatible
query I rowsort label-7123
SELECT 39 * + + 80 + + NULLIF ( 9, 19 ) + + COALESCE ( + + 21, - 30 - + + 99 - 75, COUNT ( * ) + + 56 ) * - ( - - MIN ( ALL + 11 ) )
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT COUNT( - 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT COUNT ( - 26 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7125
SELECT ALL NULLIF ( 63, + NULLIF ( + NULLIF ( + + ( 4 ), - 3 ), + 45 * + 22 ) * COUNT( * ) ) - - - CASE + + ( + ( COALESCE ( - 45, COUNT( * ) ) ) ) WHEN - 14 * + ( - NULLIF ( + CAST( NULL AS SIGNED ), + 57 * 67 ) ) THEN NULL ELSE 75 + CASE + CAST( 27 AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN 30 * ( + 17 ) THEN NULL WHEN + COUNT( * ) THEN NULL WHEN 77 THEN ( - COUNT( * ) ) * - 98 END END * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL NULLIF ( 63, + NULLIF ( + NULLIF ( + + ( 4 ), - 3 ), + 45 * + 22 ) * COUNT ( * ) ) - - - CASE + + ( + ( COALESCE ( - 45, COUNT ( * ) ) ) ) WHEN - 14 * + ( - NULLIF ( + CAST ( NULL AS INTEGER ), + 57 * 67 ) ) THEN NULL ELSE 75 + CASE + CAST ( 27 AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN 30 * ( + 17 ) THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN 77 THEN ( - COUNT ( * ) ) * - 98 END END * - 22
----
NULL

query II rowsort
SELECT DISTINCT 23 AS col2, 39 + + + 19 * - 44
----
23
-797

onlyif mysql # aggregate syntax: 
query II rowsort label-7127
SELECT DISTINCT 81 AS col0, - NULLIF ( 78, - SUM( + 98 ) )
----
81
-78

skipif mysql # not compatible
query II rowsort label-7127
SELECT DISTINCT 81 AS col0, - NULLIF ( 78, - SUM ( + 98 ) )
----
81
-78

query I rowsort
SELECT 60 + + 95 + - + ( - - 47 ) + - 60 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT + 18 * + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7129
SELECT + 18 * + COUNT ( * )
----
18

query II rowsort
SELECT 5, 93 + - - 63 col1
----
5
156

query I rowsort
SELECT ALL + 77 * + 5 * - 80
----
-30800

query II rowsort
SELECT - 48 AS col2, + 48 AS col0
----
-48
48

query I rowsort
SELECT ALL + COALESCE ( 67, - - 26 ) col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7134
SELECT - + CAST( NULL AS SIGNED ) - + 63 + + + CAST( + ( + - 74 ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7134
SELECT - + CAST ( NULL AS INTEGER ) - + 63 + + + CAST ( + ( + - 74 ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - - 8 * - 70 + - 71
----
-631

query I rowsort
SELECT ALL + + 45 * COALESCE ( - - 95, 66 )
----
4275

query I rowsort
SELECT + + 61 * - 79 - 24 AS col0
----
-4843

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT + COUNT( DISTINCT 73 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7138
SELECT + COUNT ( DISTINCT 73 ) AS col2
----
1

query I rowsort
SELECT + - 86 * + 61
----
-5246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7140
SELECT - 60 + + CAST( NULL AS SIGNED ) + + - 78 * 62
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT - 60 + + CAST ( NULL AS INTEGER ) + + - 78 * 62
----
NULL

query I rowsort
SELECT DISTINCT + - 99 AS col1
----
-99

query I rowsort
SELECT + 49 * + 59 + - 89
----
2802

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL COUNT( * ) * 63 * + 43 + 30 AS col2
----
2739

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL COUNT ( * ) * 63 * + 43 + 30 AS col2
----
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT - 62 * + + COUNT( * ) + 7 col2
----
-55

skipif mysql # not compatible
query I rowsort label-7144
SELECT - 62 * + + COUNT ( * ) + 7 col2
----
-55

query I rowsort
SELECT ALL + 95 * - 69 + - 23 + + + 63 - + 60 + - + 40 * - 56 AS col0
----
-4335

query I rowsort
SELECT ALL + 38 * 12 + - - 80 + + + 4 AS col1
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT DISTINCT + + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT + + ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT 2 * + COUNT( * ) * - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT 2 * + COUNT ( * ) * - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT ALL - ( 37 ) * - 14 + + COUNT( * ) AS col1
----
519

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL - ( 37 ) * - 14 + + COUNT ( * ) AS col1
----
519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7150
SELECT CASE + NULLIF ( - + COUNT( * ), + 67 * - - 20 ) WHEN - 88 THEN NULL WHEN 84 THEN 43 ELSE 27 * - 2 * - ( + ( + CAST( NULL AS SIGNED ) ) ) + 49 + + 69 * - 7 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT CASE + NULLIF ( - + COUNT ( * ), + 67 * - - 20 ) WHEN - 88 THEN NULL WHEN 84 THEN 43 ELSE 27 * - 2 * - ( + ( + CAST ( NULL AS INTEGER ) ) ) + 49 + + 69 * - 7 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT + 85 * - 30 DIV + 30 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-7151
SELECT + 85 * - 30 / + 30 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT + NULLIF ( COUNT( * ), - - 88 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7152
SELECT + NULLIF ( COUNT ( * ), - - 88 ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7153
SELECT + 54 * MAX( ALL + 87 ) AS col0, + 16
----
4698
16

skipif mysql # not compatible
query II rowsort label-7153
SELECT + 54 * MAX ( ALL + 87 ) AS col0, + 16
----
4698
16

query I rowsort
SELECT ALL + NULLIF ( 53, 61 ) AS col1
----
53

query II rowsort
SELECT + 19 * + 81, 98 AS col2
----
1539
98

query I rowsort
SELECT - 24 * - - 42 * 43 * 2
----
-86688

query I rowsort
SELECT DISTINCT 30 * - - 66
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT + SUM( + 36 ) * - COUNT( * ) + + 80 * - 88
----
-7076

skipif mysql # not compatible
query I rowsort label-7158
SELECT + SUM ( + 36 ) * - COUNT ( * ) + + 80 * - 88
----
-7076

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT + 71 - ( - COUNT( DISTINCT - 72 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7159
SELECT + 71 - ( - COUNT ( DISTINCT - 72 ) ) AS col0
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7160
SELECT - SUM( + - 3 ) DIV - + NULLIF ( - 74, 83 DIV + 21 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7160
SELECT - SUM ( + - 3 ) / - + NULLIF ( - 74, 83 / + 21 ) AS col1
----
0

query I rowsort
SELECT + 88 * 35 AS col0
----
3080

query I rowsort
SELECT + ( + 66 ) * - 97
----
-6402

query I rowsort
SELECT ALL NULLIF ( + 2, - ( + + 39 ) + + 82 * 53 - - 0 )
----
2

query I rowsort
SELECT ALL - + 97 + ( - - 46 ) col0
----
-51

query I rowsort
SELECT - 78 + + 75 * + + 25 * - + 71 AS col1
----
-133203

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT DISTINCT - + COUNT( DISTINCT - 58 ) + COUNT( * ) + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT - + COUNT ( DISTINCT - 58 ) + COUNT ( * ) + - 54
----
-54

query I rowsort
SELECT - 91 + - 59
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT ALL + 85 + + 89 + 66 DIV - 17
----
171

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL + 85 + + 89 + 66 / - 17
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7169
SELECT ALL - 27 + CAST( - + 55 AS SIGNED ), COUNT( * ) * ( + ( - - 96 ) ) AS col2
----
-82
96

skipif mysql # not compatible
query II rowsort label-7169
SELECT ALL - 27 + CAST ( - + 55 AS INTEGER ), COUNT ( * ) * ( + ( - - 96 ) ) AS col2
----
-82
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT - 77 + - 45 - + COUNT( * ) * - 54
----
-68

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT - 77 + - 45 - + COUNT ( * ) * - 54
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT COUNT( DISTINCT + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-7171
SELECT COUNT ( DISTINCT + 13 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT ALL - 44 + + - COUNT( - 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL - 44 + + - COUNT ( - 45 ) AS col0
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7173
SELECT DISTINCT - 33 * + - CAST( NULL AS DECIMAL ) AS col1, 13 + 24 AS col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-7173
SELECT DISTINCT - 33 * + - CAST ( NULL AS REAL ) AS col1, 13 + 24 AS col0
----
NULL
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT DISTINCT + 41 DIV 6 + + + 26 + + + 93 AS col0
----
125

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT + 41 / 6 + + + 26 + + + 93 AS col0
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7175
SELECT - + CAST( NULL AS SIGNED ) * + 40 * ( + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT - + CAST ( NULL AS INTEGER ) * + 40 * ( + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 38 * 61
----
2318

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT + - ( - COUNT( - 0 ) ) / - CASE - 96 WHEN - - 27 + - + 21 THEN 42 * + NULLIF ( - 19, - ( - - 84 ) / + 81 + - + 57 ) WHEN + - ( - + 32 ) THEN NULL END + - 82 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT + - ( - COUNT ( - 0 ) ) / - CASE - 96 WHEN - - 27 + - + 21 THEN 42 * + NULLIF ( - 19, - ( - - 84 ) / + 81 + - + 57 ) WHEN + - ( - + 32 ) THEN NULL END + - 82 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT ALL - + 47 / - CAST( NULL AS SIGNED ) + + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL - + 47 / - CAST ( NULL AS INTEGER ) + + 36 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7179
SELECT ALL - - 48 DIV + 29 - + 2 + 85 DIV + - 73 + - + 24 + - 17 - + 48
----
-91

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL - - 48 / + 29 - + 2 + 85 / + - 73 + - + 24 + - 17 - + 48
----
-91

query I rowsort
SELECT - 65 * 36 AS col2
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT 39 * COUNT( * ) - - 21 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7181
SELECT 39 * COUNT ( * ) - - 21 AS col1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT + 91 DIV 28 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7182
SELECT + 91 / 28 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7183
SELECT DISTINCT + CAST( COUNT( - + 50 ) AS SIGNED ) / - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT + CAST ( COUNT ( - + 50 ) AS INTEGER ) / - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7184
SELECT ALL + 3 DIV + - ( 52 ) - - 17 - + ( + 69 ) AS col0, + ( + 53 ) col0
----
-52
53

skipif mysql # not compatible
query II rowsort label-7184
SELECT ALL + 3 / + - ( 52 ) - - 17 - + ( + 69 ) AS col0, + ( + 53 ) col0
----
-52
53

query I rowsort
SELECT DISTINCT 8 * - - 30 AS col2
----
240

query I rowsort
SELECT ALL 43 * - + 70 * 65
----
-195650

query I rowsort
SELECT 24 + + - 98 + 27 - - 85
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7188
SELECT + 2 * - 22 * + ( - CAST( NULL AS SIGNED ) ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT + 2 * - 22 * + ( - CAST ( NULL AS INTEGER ) ) - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7189
SELECT 34 + + 90 + + 12 * - - COUNT( DISTINCT + 6 ) DIV 91 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-7189
SELECT 34 + + 90 + + 12 * - - COUNT ( DISTINCT + 6 ) / 91 AS col1
----
124

query II rowsort
SELECT 73, + 21 col0
----
73
21

query I rowsort
SELECT ALL 89 * - - 51 AS col0
----
4539

query II rowsort
SELECT 44, + ( + 6 ) AS col2
----
44
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL 7 * + MIN( ALL + 76 )
----
532

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL 7 * + MIN ( ALL + 76 )
----
532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7194
SELECT COUNT( * ) * - ( + 60 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7194
SELECT COUNT ( * ) * - ( + 60 ) + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 88 AS col0, + 56 AS col1
----
88
56

query I rowsort
SELECT ( - - 11 ) + - 50 + + 88
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7197
SELECT DISTINCT 94 DIV - 8 * - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT 94 / - 8 * - COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT ALL - COUNT( * ) + + 84 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL - COUNT ( * ) + + 84 AS col1
----
83

query I rowsort
SELECT - 62 * - 85 AS col0
----
5270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7200
SELECT 25 * - + CASE + 18 WHEN + - 70 / + 86 - + 5 THEN NULL WHEN - + CASE WHEN NULL > ( NULL ) THEN - + 75 ELSE NULL END * 53 THEN + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + + CASE - 93 WHEN - CAST( - COUNT( * ) AS SIGNED ) THEN 69 + + MAX( ALL 14 ) WHEN AVG ( + 26 ) * COALESCE ( + COUNT( * ), 55 ) * 47 + - 42 THEN - 45 * CAST( NULL AS SIGNED ) END + 74 WHEN 64 * 89 THEN 93 * - 27 - 98 END * - 4 + SUM( - 93 + - 87 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7200
SELECT 25 * - + CASE + 18 WHEN + - 70 / + 86 - + 5 THEN NULL WHEN - + CASE WHEN NULL > ( NULL ) THEN - + 75 ELSE NULL END * 53 THEN + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + + CASE - 93 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) THEN 69 + + MAX ( ALL 14 ) WHEN AVG ( + 26 ) * COALESCE ( + COUNT ( * ), 55 ) * 47 + - 42 THEN - 45 * CAST ( NULL AS INTEGER ) END + 74 WHEN 64 * 89 THEN 93 * - 27 - 98 END * - 4 + SUM ( - 93 + - 87 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - SUM( ALL + - 96 ) + + 38 * - + 78
----
-2868

skipif mysql # not compatible
query I rowsort label-7201
SELECT - SUM ( ALL + - 96 ) + + 38 * - + 78
----
-2868

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7202
SELECT ALL CAST( - 54 AS SIGNED ) + 1 + + 48 * - 62 + - - 39 DIV + 21 AS col1
----
-3028

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL CAST ( - 54 AS INTEGER ) + 1 + + 48 * - 62 + - - 39 / + 21 AS col1
----
-3028

query I rowsort
SELECT + 28 + - + 68 AS col1
----
-40

query II rowsort
SELECT - - 74, - ( + - 74 ) AS col1
----
74
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7205
SELECT ALL + CASE + 41 WHEN + 61 * CAST( NULL AS SIGNED ) - - - 76 + - - ( + 26 ) + 8 THEN 75 * + - 11 + CASE CASE - + 3 WHEN + 75 / + COUNT( * ) + + NULLIF ( 42, + + 63 / CAST( - 38 AS SIGNED ) ) * + + 67 + + 7 + + 50 + 21 * ( - 68 ) THEN 51 * + NULLIF ( + 4, 93 * + 25 ) ELSE NULL END WHEN - 37 THEN 67 WHEN - ( + 8 ) + ( + 89 ) THEN 74 - + 4 WHEN - 66 * COALESCE ( + 81, 42 * - 45 + ( 69 ) * - 98 ) + - 74 THEN 73 ELSE NULL END WHEN - COUNT( * ) THEN NULL ELSE NULL END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL + CASE + 41 WHEN + 61 * CAST ( NULL AS INTEGER ) - - - 76 + - - ( + 26 ) + 8 THEN 75 * + - 11 + CASE CASE - + 3 WHEN + 75 / + COUNT ( * ) + + NULLIF ( 42, + + 63 / CAST ( - 38 AS INTEGER ) ) * + + 67 + + 7 + + 50 + 21 * ( - 68 ) THEN 51 * + NULLIF ( + 4, 93 * + 25 ) ELSE NULL END WHEN - 37 THEN 67 WHEN - ( + 8 ) + ( + 89 ) THEN 74 - + 4 WHEN - 66 * COALESCE ( + 81, 42 * - 45 + ( 69 ) * - 98 ) + - 74 THEN 73 ELSE NULL END WHEN - COUNT ( * ) THEN NULL ELSE NULL END * 82
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7206
SELECT - 46 DIV 32 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7206
SELECT - 46 / 32 AS col0
----
-1

query I rowsort
SELECT ALL - 95 * + + 42 AS col2
----
-3990

query I rowsort
SELECT ALL + - ( + 20 ) + + 73 AS col0
----
53

query II rowsort
SELECT 87 col0, + 52 - + 88
----
87
-36

query I rowsort
SELECT DISTINCT - 45 + + 80
----
35

query I rowsort
SELECT DISTINCT - COALESCE ( + + 40, + - 12 )
----
-40

query I rowsort
SELECT 20 + + + 52 + + 66
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7213
SELECT + 44 + - CAST( + 57 AS SIGNED ) + - - 81 * + 16 - 62 + - 64 + 53 / + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT + 44 + - CAST ( + 57 AS INTEGER ) + - - 81 * + 16 - 62 + - 64 + 53 / + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7214
SELECT ( + - ( + CAST( NULL AS SIGNED ) ) ) + - 53 + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7214
SELECT ( + - ( + CAST ( NULL AS INTEGER ) ) ) + - 53 + 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT 12 * - CASE - 27 WHEN + 66 * + 70 * - 97 THEN - 35 * - COUNT( DISTINCT + 79 ) ELSE 89 END
----
-1068

skipif mysql # not compatible
query I rowsort label-7215
SELECT 12 * - CASE - 27 WHEN + 66 * + 70 * - 97 THEN - 35 * - COUNT ( DISTINCT + 79 ) ELSE 89 END
----
-1068

query I rowsort
SELECT DISTINCT + 53 * - + 93 AS col1
----
-4929

query I rowsort
SELECT 44 * 97 * + 54 AS col2
----
230472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7218
SELECT DISTINCT + CASE + 9 WHEN - ( - COUNT( * ) ) * + + CAST( + COALESCE ( - 62, - + 39 ) AS SIGNED ) THEN - NULLIF ( CAST( - + 65 AS SIGNED ), 40 ) WHEN - - AVG ( DISTINCT 40 ) + + COUNT( * ) + - 8 THEN - 88 * + CASE - - 18 WHEN 25 THEN + + 87 WHEN + 27 THEN NULL WHEN - 18 THEN NULL WHEN + 33 THEN NULL ELSE NULL END / 10 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT + CASE + 9 WHEN - ( - COUNT ( * ) ) * + + CAST ( + COALESCE ( - 62, - + 39 ) AS INTEGER ) THEN - NULLIF ( CAST ( - + 65 AS INTEGER ), 40 ) WHEN - - AVG ( DISTINCT 40 ) + + COUNT ( * ) + - 8 THEN - 88 * + CASE - - 18 WHEN 25 THEN + + 87 WHEN + 27 THEN NULL WHEN - 18 THEN NULL WHEN + 33 THEN NULL ELSE NULL END / 10 ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7219
SELECT + ( 39 ) * - 19 + - 30 + - ( - 40 ) DIV - + COALESCE ( 73, - COALESCE ( 88, + - 69, - + 11 ) ) AS col2, COUNT( * )
----
-771
1

skipif mysql # not compatible
query II rowsort label-7219
SELECT + ( 39 ) * - 19 + - 30 + - ( - 40 ) / - + COALESCE ( 73, - COALESCE ( 88, + - 69, - + 11 ) ) AS col2, COUNT ( * )
----
-771
1

query I rowsort
SELECT DISTINCT - ( - - 38 )
----
-38

query I rowsort
SELECT ALL - 81 + 53 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7222
SELECT ALL + 18 + 84 * - CAST( + MIN( ALL 83 ) AS SIGNED ) * CAST( + NULLIF ( 28, COUNT( * ) ) AS SIGNED )
----
-195198

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + 18 + 84 * - CAST ( + MIN ( ALL 83 ) AS INTEGER ) * CAST ( + NULLIF ( 28, COUNT ( * ) ) AS INTEGER )
----
-195198

query I rowsort
SELECT 59 * 92
----
5428

onlyif mysql # DIV for integer division: 
query I rowsort label-7224
SELECT ALL + 9 DIV - + 7 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL + 9 / - + 7 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7225
SELECT SUM( ALL CAST( NULL AS SIGNED ) ) / + 39 + + - CAST( + 12 AS SIGNED ) * - 32 + - 21 AS col2, - 36
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-7225
SELECT SUM ( ALL CAST ( NULL AS INTEGER ) ) / + 39 + + - CAST ( + 12 AS INTEGER ) * - 32 + - 21 AS col2, - 36
----
NULL
-36

query I rowsort
SELECT DISTINCT + 36 + + 76
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT ALL 36 + - + NULLIF ( MAX( DISTINCT - ( 15 ) ), - + ( - + 81 ) - + + COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL 36 + - + NULLIF ( MAX ( DISTINCT - ( 15 ) ), - + ( - + 81 ) - + + COUNT ( * ) )
----
51

query I rowsort
SELECT DISTINCT 53 + + 90 + - 69
----
74

query I rowsort
SELECT DISTINCT - 64 + 63
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7230
SELECT 94 * + - CAST( + 99 AS SIGNED )
----
-9306

skipif mysql # not compatible
query I rowsort label-7230
SELECT 94 * + - CAST ( + 99 AS INTEGER )
----
-9306

query I rowsort
SELECT - - 9 col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7232
SELECT ALL + CAST( + COALESCE ( - MIN( ALL 17 ), - 14, + 56 ) AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL + CAST ( + COALESCE ( - MIN ( ALL 17 ), - 14, + 56 ) AS INTEGER )
----
-17

query I rowsort
SELECT DISTINCT + 35 + - 87 AS col1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT ALL 83 DIV ( + + 17 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL 83 / ( + + 17 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT 65 * - - 80 * + ( - ( - COUNT( * ) ) ) + - - 72 AS col2
----
5272

skipif mysql # not compatible
query I rowsort label-7235
SELECT 65 * - - 80 * + ( - ( - COUNT ( * ) ) ) + - - 72 AS col2
----
5272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7236
SELECT ALL MAX( + - 17 ) DIV - COALESCE ( + 65, - 86 DIV + 10 + 0 + 58, 17 * + 96 + NULLIF ( - 64, COUNT( * ) ) + COALESCE ( - - COUNT( * ), 50 ) * - 64, + 30 ) * + 12 + + + CAST( - + NULLIF ( + - 15, NULLIF ( - + 46, - 21 * + 55 + AVG ( NULLIF ( 28, ( + 81 ) ) - 94 * + 68 ) ) ) AS SIGNED ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL MAX ( + - 17 ) / - COALESCE ( + 65, - 86 / + 10 + 0 + 58, 17 * + 96 + NULLIF ( - 64, COUNT ( * ) ) + COALESCE ( - - COUNT ( * ), 50 ) * - 64, + 30 ) * + 12 + + + CAST ( - + NULLIF ( + - 15, NULLIF ( - + 46, - 21 * + 55 + AVG ( NULLIF ( 28, ( + 81 ) ) - 94 * + 68 ) ) ) AS INTEGER ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7237
SELECT + 76 + + 68 col0, + NULLIF ( - + NULLIF ( - COUNT( * ), 0 ), + 80 + 34 ) * + SUM( DISTINCT - + 41 ) + - 57
----
144
-98

skipif mysql # not compatible
query II rowsort label-7237
SELECT + 76 + + 68 col0, + NULLIF ( - + NULLIF ( - COUNT ( * ), 0 ), + 80 + 34 ) * + SUM ( DISTINCT - + 41 ) + - 57
----
144
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-7238
SELECT ALL - COUNT( * ) - + 56 AS col2, - 80 AS col1
----
-57
-80

skipif mysql # not compatible
query II rowsort label-7238
SELECT ALL - COUNT ( * ) - + 56 AS col2, - 80 AS col1
----
-57
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT COUNT( * ) * - ( + - 38 ) + + COUNT( * ) + MIN( - - 63 )
----
102

skipif mysql # not compatible
query I rowsort label-7239
SELECT COUNT ( * ) * - ( + - 38 ) + + COUNT ( * ) + MIN ( - - 63 )
----
102

query I rowsort
SELECT DISTINCT 68 * - ( - 27 ) + - - 65
----
1901

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT ALL - SUM( DISTINCT + 19 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL - SUM ( DISTINCT + 19 ) col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7242
SELECT - + NULLIF ( - 99, + + CAST( + - 0 AS SIGNED ) * + 37 )
----
99

skipif mysql # not compatible
query I rowsort label-7242
SELECT - + NULLIF ( - 99, + + CAST ( + - 0 AS INTEGER ) * + 37 )
----
99

query I rowsort
SELECT + ( 18 ) * + + 16 * 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT 68 * - - 69 * - CASE - MIN( + + 98 ) WHEN MAX( ALL + 84 ) + 51 THEN + 43 + + 25 + + - CAST( - NULLIF ( COALESCE ( COUNT( * ), 47 * + ( + 30 ), 8 + + 54 - + COUNT( * ) - + 35 ), - + 92 * + - 98 * - 96 ) AS SIGNED ) + + 24 WHEN - 34 THEN NULL ELSE NULL END * + 54 + COALESCE ( MAX( 33 ), - 57 * - COALESCE ( - 76, COUNT( + 46 ) ) + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT 68 * - - 69 * - CASE - MIN ( + + 98 ) WHEN MAX ( ALL + 84 ) + 51 THEN + 43 + + 25 + + - CAST ( - NULLIF ( COALESCE ( COUNT ( * ), 47 * + ( + 30 ), 8 + + 54 - + COUNT ( * ) - + 35 ), - + 92 * + - 98 * - 96 ) AS INTEGER ) + + 24 WHEN - 34 THEN NULL ELSE NULL END * + 54 + COALESCE ( MAX ( 33 ), - 57 * - COALESCE ( - 76, COUNT ( + 46 ) ) + 79 )
----
NULL

query I rowsort
SELECT DISTINCT - 90 * + 60 * 85
----
-459000

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT + MAX( + 33 ) * - COUNT( * ) + - COUNT( * ) * - COUNT( * ) * 78 * - MAX( - 68 )
----
5271

skipif mysql # not compatible
query I rowsort label-7246
SELECT + MAX ( + 33 ) * - COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) * 78 * - MAX ( - 68 )
----
5271

query I rowsort
SELECT + 2 + + - CASE 60 WHEN - + 23 + - + 17 THEN 38 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT NULLIF ( - - 98, + 93 )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT + 96 - + 68 + + 82 DIV + 20 col2
----
32

skipif mysql # not compatible
query I rowsort label-7249
SELECT + 96 - + 68 + + 82 / + 20 col2
----
32

query I rowsort
SELECT - CASE WHEN ( NULL ) IS NOT NULL THEN + 54 END * + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT + 94 * 47 - + 27 + - COUNT( * ) + + + 85 + - 11 + + 25 + - + 74 AS col1
----
4415

skipif mysql # not compatible
query I rowsort label-7251
SELECT + 94 * 47 - + 27 + - COUNT ( * ) + + + 85 + - 11 + + 25 + - + 74 AS col1
----
4415

onlyif mysql # aggregate syntax: 
query III rowsort label-7252
SELECT + 26 AS col1, - 61 + + + 56 AS col1, + 88 + + - COUNT( * ) + SUM( ALL 26 ) * + 95
----
26
-5
2557

skipif mysql # not compatible
query III rowsort label-7252
SELECT + 26 AS col1, - 61 + + + 56 AS col1, + 88 + + - COUNT ( * ) + SUM ( ALL 26 ) * + 95
----
26
-5
2557

onlyif mysql # aggregate syntax: 
query II rowsort label-7253
SELECT ALL 37 * - COALESCE ( - 2, - 52 ) + 0, + COUNT( * ) * - 60 AS col0
----
74
-60

skipif mysql # not compatible
query II rowsort label-7253
SELECT ALL 37 * - COALESCE ( - 2, - 52 ) + 0, + COUNT ( * ) * - 60 AS col0
----
74
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7254
SELECT 14 * + 93 - + COUNT( * ), + COALESCE ( 8, 53 ) AS col0
----
1301
8

skipif mysql # not compatible
query II rowsort label-7254
SELECT 14 * + 93 - + COUNT ( * ), + COALESCE ( 8, 53 ) AS col0
----
1301
8

query I rowsort
SELECT + COALESCE ( + - 28, + 52 + + + 23 + 62 * + - 40 * - + 96 * + 48 * 55 * - + 63 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT COUNT( ALL + - 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7256
SELECT COUNT ( ALL + - 16 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 5 * - - ( + - 23 ) + + + 25 AS col2
----
-90

query II rowsort
SELECT + 46, + 23 AS col0
----
46
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT DISTINCT + + ( - SUM( - 75 ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT + + ( - SUM ( - 75 ) ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7260
SELECT + - 8 * + + 94 + COUNT( * ) AS col0, CAST( NULL AS SIGNED ) * - + 38 - + MAX( ALL - - 89 ) * MAX( DISTINCT + 31 ) AS col0
----
-751
NULL

skipif mysql # not compatible
query II rowsort label-7260
SELECT + - 8 * + + 94 + COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * - + 38 - + MAX ( ALL - - 89 ) * MAX ( DISTINCT + 31 ) AS col0
----
-751
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7261
SELECT ALL - - CAST( NULL AS SIGNED ) - + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL - - CAST ( NULL AS INTEGER ) - + 98 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 15 * + 90
----
-1350

query I rowsort
SELECT ALL 81 - + 85 * + - 70 AS col1
----
6031

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT - CASE - - 28 WHEN 60 THEN - COUNT( * ) WHEN + + COUNT( * ) * - - 34 THEN + + 43 END * COUNT( * ) + - + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7264
SELECT - CASE - - 28 WHEN 60 THEN - COUNT ( * ) WHEN + + COUNT ( * ) * - - 34 THEN + + 43 END * COUNT ( * ) + - + 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7265
SELECT - + ( - 32 ) + + COUNT( * ) col0, 80 + + 38 AS col0
----
33
118

skipif mysql # not compatible
query II rowsort label-7265
SELECT - + ( - 32 ) + + COUNT ( * ) col0, 80 + + 38 AS col0
----
33
118

query I rowsort
SELECT + - 18 + - NULLIF ( + 76, - 2 ) + + + 51 + + 87 * - + CASE 74 WHEN + 42 + + + 85 + + 70 + + + 53 / 59 / - 32 THEN + + ( 71 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT DISTINCT + SUM( + 24 ) * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT + SUM ( + 24 ) * - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7268
SELECT - + 32 * 83 + - 8 DIV - COUNT( 26 ), - 35 AS col1
----
-2648
-35

skipif mysql # not compatible
query II rowsort label-7268
SELECT - + 32 * 83 + - 8 / - COUNT ( 26 ), - 35 AS col1
----
-2648
-35

query I rowsort
SELECT + + 27 * 97 AS col2
----
2619

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7270
SELECT ALL CASE + 10 WHEN 72 + - 13 THEN NULL WHEN + 86 + - 32 + - COUNT( * ) THEN - ( + 93 ) * - 15 WHEN + CAST( NULL AS DECIMAL ) THEN NULL END * - - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL CASE + 10 WHEN 72 + - 13 THEN NULL WHEN + 86 + - 32 + - COUNT ( * ) THEN - ( + 93 ) * - 15 WHEN + CAST ( NULL AS REAL ) THEN NULL END * - - 16 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 77 AS col0, 61 * + - 24 AS col2
----
77
-1464

query I rowsort
SELECT DISTINCT + + 77 * + ( + 77 ) * - 1 * + 5 * + 79 AS col0
----
-2341955

query I rowsort
SELECT DISTINCT - COALESCE ( + 82, + 56 )
----
-82

query II rowsort
SELECT ALL 99, ( + + 4 ) AS col2
----
99
4

query I rowsort
SELECT + 53 * - 99 AS col2
----
-5247

query I rowsort
SELECT ALL + 60 * 88 + + - 40
----
5240

onlyif mysql # DIV for integer division: 
query I rowsort label-7277
SELECT DISTINCT + 38 DIV - - 23 + - 12 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT + 38 / - - 23 + - 12 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT + 32 + + 36 * + 53 * COALESCE ( SUM( ALL - 99 ), 98, + NULLIF ( + CASE - - 5 WHEN - - 39 / - 39 - ( + - 95 ) + + 98 + MIN( + + 53 ) * - 80 + - 35 THEN NULL WHEN - - 7 + + 27 / + + 17 / - MAX( - + 1 ) + 44 * + MAX( ALL 72 ) / COUNT( * ) THEN COUNT( * ) WHEN - ( - 58 ) THEN NULL ELSE NULL END, 79 * 67 ) * COUNT( * ) + + 65 )
----
-188860

skipif mysql # not compatible
query I rowsort label-7278
SELECT + 32 + + 36 * + 53 * COALESCE ( SUM ( ALL - 99 ), 98, + NULLIF ( + CASE - - 5 WHEN - - 39 / - 39 - ( + - 95 ) + + 98 + MIN ( + + 53 ) * - 80 + - 35 THEN NULL WHEN - - 7 + + 27 / + + 17 / - MAX ( - + 1 ) + 44 * + MAX ( ALL 72 ) / COUNT ( * ) THEN COUNT ( * ) WHEN - ( - 58 ) THEN NULL ELSE NULL END, 79 * 67 ) * COUNT ( * ) + + 65 )
----
-188860

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT - 2 * COUNT( DISTINCT + 90 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7279
SELECT - 2 * COUNT ( DISTINCT + 90 ) AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT + 8 + - 95 DIV 4 * 6
----
-130

skipif mysql # not compatible
query I rowsort label-7280
SELECT + 8 + - 95 / 4 * 6
----
-130

query II rowsort
SELECT ALL 53 col1, 6 AS col1
----
53
6

query II rowsort
SELECT 46 AS col1, 83 * - 86 AS col1
----
46
-7138

query I rowsort
SELECT ALL 90 + 50 - - 76 AS col2
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7284
SELECT + 96 + + NULLIF ( - + 92, - 78 + COALESCE ( - 36, - + 91 * CAST( NULL AS SIGNED ) + + 60 ) )
----
4

skipif mysql # not compatible
query I rowsort label-7284
SELECT + 96 + + NULLIF ( - + 92, - 78 + COALESCE ( - 36, - + 91 * CAST ( NULL AS INTEGER ) + + 60 ) )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-7285
SELECT + 61 / + - CASE + - COUNT( ALL - 28 ) WHEN - 33 THEN - 13 ELSE NULL END AS col1, COUNT( * ) + - + 55
----
NULL
-54

skipif mysql # not compatible
query II rowsort label-7285
SELECT + 61 / + - CASE + - COUNT ( ALL - 28 ) WHEN - 33 THEN - 13 ELSE NULL END AS col1, COUNT ( * ) + - + 55
----
NULL
-54

query I rowsort
SELECT ALL 66 + - 40 + - + 94 + + 53 - 73 AS col1
----
-88

query II rowsort
SELECT + 72 + + - 85 AS col1, - 3
----
-13
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7288
SELECT ( + COUNT( * ) ) DIV - - 79 * - 71 - + 88 + - 41 + 71 * ( 89 ) + - - 66 * - 77 col1
----
1108

skipif mysql # not compatible
query I rowsort label-7288
SELECT ( + COUNT ( * ) ) / - - 79 * - 71 - + 88 + - 41 + 71 * ( 89 ) + - - 66 * - 77 col1
----
1108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7289
SELECT DISTINCT + 12 DIV - + 62 + 93 * MAX( + 26 )
----
2418

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT + 12 / - + 62 + 93 * MAX ( + 26 )
----
2418

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7290
SELECT ALL 45 DIV - + 95 + - ( 28 ) col0, + 70 * COUNT( * ) * 13 + + 65
----
-28
975

skipif mysql # not compatible
query II rowsort label-7290
SELECT ALL 45 / - + 95 + - ( 28 ) col0, + 70 * COUNT ( * ) * 13 + + 65
----
-28
975

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7291
SELECT DISTINCT ( + + 37 ) DIV - COUNT( * ) + - 42 + + 90 + + 36, 38 AS col0
----
47
38

skipif mysql # not compatible
query II rowsort label-7291
SELECT DISTINCT ( + + 37 ) / - COUNT ( * ) + - 42 + + 90 + + 36, 38 AS col0
----
47
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT CAST( + 17 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7292
SELECT CAST ( + 17 AS INTEGER ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7293
SELECT ALL 64 DIV - 18 + + SUM( ALL + 87 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL 64 / - 18 + + SUM ( ALL + 87 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT + ( 91 ) + + COUNT( * ) + - - 3 + + NULLIF ( 15, - 36 ) + + + 12
----
122

skipif mysql # not compatible
query I rowsort label-7294
SELECT + ( 91 ) + + COUNT ( * ) + - - 3 + + NULLIF ( 15, - 36 ) + + + 12
----
122

query I rowsort
SELECT + COALESCE ( - 52, - 91 ) AS col0
----
-52

query I rowsort
SELECT + ( - 72 ) AS col0
----
-72

query I rowsort
SELECT ( 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7298
SELECT - MIN( - 30 ) * + - 25 + + 32 DIV - 30
----
-751

skipif mysql # not compatible
query I rowsort label-7298
SELECT - MIN ( - 30 ) * + - 25 + + 32 / - 30
----
-751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT ALL 1 * + CAST( NULL AS SIGNED ) + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL 1 * + CAST ( NULL AS INTEGER ) + + 94
----
NULL

query II rowsort
SELECT + ( - 86 ) * + 97 - - 75 - - - 1 + + 48 * - 29 AS col0, + 95
----
-9660
95

query II rowsort
SELECT ( + 99 ) AS col0, + 34 AS col1
----
99
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT DISTINCT + + MIN( - + 20 ) col2
----
-20

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT + + MIN ( - + 20 ) col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7303
SELECT ALL - - MAX( ALL CAST( NULL AS SIGNED ) ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL - - MAX ( ALL CAST ( NULL AS INTEGER ) ) * 19
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7304
SELECT + - 71 * + MIN( ALL + 94 ) / - 40 * - 37 * + 46 + + AVG ( DISTINCT 79 ) * 6 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT + - 71 * + MIN ( ALL + 94 ) / - 40 * - 37 * + 46 + + AVG ( DISTINCT 79 ) * 6 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7305
SELECT DISTINCT - 60 * CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) + - 53 - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT - 60 * CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) + - 53 - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT DISTINCT 87 * - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT 87 * - COUNT ( * ) AS col2
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7307
SELECT ALL + CAST( + 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-7307
SELECT ALL + CAST ( + 49 AS INTEGER )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7308
SELECT - - 22 DIV + + 65 * CAST( 37 AS SIGNED ) + - 81 * - 12, NULLIF ( + 13, - COUNT( * ) + + 93 ) AS col1
----
972
13

skipif mysql # not compatible
query II rowsort label-7308
SELECT - - 22 / + + 65 * CAST ( 37 AS INTEGER ) + - 81 * - 12, NULLIF ( + 13, - COUNT ( * ) + + 93 ) AS col1
----
972
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7309
SELECT ALL - 16 * - 26 AS col2, COUNT( * ) - + 19
----
416
-18

skipif mysql # not compatible
query II rowsort label-7309
SELECT ALL - 16 * - 26 AS col2, COUNT ( * ) - + 19
----
416
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT DISTINCT MIN( - + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT MIN ( - + 53 )
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7311
SELECT - + 41 AS col1, - COALESCE ( - 11, 53 / - 56 * + + 2 + - 50 * - 76 ) * + - CAST( NULL AS DECIMAL ) * - 6
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-7311
SELECT - + 41 AS col1, - COALESCE ( - 11, 53 / - 56 * + + 2 + - 50 * - 76 ) * + - CAST ( NULL AS REAL ) * - 6
----
-41
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7312
SELECT + 2 DIV + 10
----
0

skipif mysql # not compatible
query I rowsort label-7312
SELECT + 2 / + 10
----
0

query II rowsort
SELECT - + 45 * + - 73 AS col1, + 59 * 89
----
3285
5251

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT - 29 - + ( - MIN( DISTINCT 43 ) )
----
14

skipif mysql # not compatible
query I rowsort label-7314
SELECT - 29 - + ( - MIN ( DISTINCT 43 ) )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7315
SELECT ALL - - 4 DIV - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL - - 4 / - 53 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7316
SELECT - + 95 DIV + 64
----
-1

skipif mysql # not compatible
query I rowsort label-7316
SELECT - + 95 / + 64
----
-1

query I rowsort
SELECT ALL - - ( + 79 ) * + 85 + 93 + - NULLIF ( + + 88, 44 ) col2
----
6720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7318
SELECT ALL + CAST( NULL AS SIGNED ) + - - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 35 AS col1
----
NULL

query I rowsort
SELECT 28 + + ( 96 )
----
124

query I rowsort
SELECT + CASE 82 WHEN 12 THEN AVG ( + + 19 ) ELSE 75 * + 91 * CASE - + 22 WHEN + 63 THEN NULL ELSE 72 * 65 + - + ( - 81 ) END END
----
32493825

onlyif mysql # DIV for integer division: 
query II rowsort label-7321
SELECT ALL - ( 89 ) AS col2, 67 DIV 50 + 95
----
-89
96

skipif mysql # not compatible
query II rowsort label-7321
SELECT ALL - ( 89 ) AS col2, 67 / 50 + 95
----
-89
96

query I rowsort
SELECT DISTINCT - 4 + - 22 AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7323
SELECT ALL - 49 + + 50 + - - MAX( + 96 ) + - - COALESCE ( 48, + 72 * + - 86 + + + CAST( NULL AS SIGNED ) DIV 21 + + 94 )
----
145

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - 49 + + 50 + - - MAX ( + 96 ) + - - COALESCE ( 48, + 72 * + - 86 + + + CAST ( NULL AS INTEGER ) / 21 + + 94 )
----
145

query II rowsort
SELECT DISTINCT - 31 + 13 col2, 55 * - 32 + + 29 AS col0
----
-18
-1731

query I rowsort
SELECT DISTINCT 78 + 63
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL 37 + COUNT( * ) * + + 58 * - 97 AS col2
----
-5589

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL 37 + COUNT ( * ) * + + 58 * - 97 AS col2
----
-5589

query II rowsort
SELECT 85 * - 52 AS col1, 18 * 38
----
-4420
684

query II rowsort
SELECT 59 + - + 74 AS col0, + 79 col1
----
-15
79

query II rowsort
SELECT ALL 77 - + 19 + - 96 + - 39 - + + 96 + 99 + - - 78 AS col1, 35 col2
----
4
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7330
SELECT 10 * - - 5, COALESCE ( - 89, - + 53 ) DIV + COUNT( * ) AS col0
----
50
-89

skipif mysql # not compatible
query II rowsort label-7330
SELECT 10 * - - 5, COALESCE ( - 89, - + 53 ) / + COUNT ( * ) AS col0
----
50
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL CASE - + 55 WHEN + COUNT( * ) / - + 29 + + 60 THEN NULL ELSE + 43 END * + ( + 85 ) AS col0
----
3655

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL CASE - + 55 WHEN + COUNT ( * ) / - + 29 + + 60 THEN NULL ELSE + 43 END * + ( + 85 ) AS col0
----
3655

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT ALL 29 * - + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL 29 * - + COUNT ( * )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7333
SELECT 94 + - 75 - - CAST( COALESCE ( 14, + 14 / - 30 * + 31 * - 24 - + ( 10 ) * + 56 / - - 81, - 53 ) AS SIGNED ) + + 80 * + + 4
----
353

skipif mysql # not compatible
query I rowsort label-7333
SELECT 94 + - 75 - - CAST ( COALESCE ( 14, + 14 / - 30 * + 31 * - 24 - + ( 10 ) * + 56 / - - 81, - 53 ) AS INTEGER ) + + 80 * + + 4
----
353

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT COUNT( * ) * - 2
----
-2

skipif mysql # not compatible
query I rowsort label-7334
SELECT COUNT ( * ) * - 2
----
-2

query I rowsort
SELECT ALL 76 * + 75
----
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL - CASE 28 WHEN - - 38 THEN + 26 + COALESCE ( + - 65, MIN( 64 ) / + - 47, - - ( + 88 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL - CASE 28 WHEN - - 38 THEN + 26 + COALESCE ( + - 65, MIN ( 64 ) / + - 47, - - ( + 88 ) ) END AS col0
----
NULL

query I rowsort
SELECT - 48 * 88 - - 67 AS col0
----
-4157

query I rowsort
SELECT + 63 + + 24 * + + 67 AS col0
----
1671

query I rowsort
SELECT 76 * - - 1 - - - 70 AS col1
----
6

query I rowsort
SELECT - 72 * - + 51 - - 71 * - - 99
----
10701

query I rowsort
SELECT 94 * - ( + - 19 ) AS col0
----
1786

query I rowsort
SELECT DISTINCT - + 12 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT DISTINCT - + ( + MAX( DISTINCT 71 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT - + ( + MAX ( DISTINCT 71 ) )
----
-71

query I rowsort
SELECT ALL + 5 * + - 6 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ( - + COUNT( * ) ) * + CASE - ( + CASE + + 97 WHEN COALESCE ( + - 89, - 49 ) THEN - 45 ELSE NULL END ) WHEN + 3 THEN 38 WHEN + - 67 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7345
SELECT ( - + COUNT ( * ) ) * + CASE - ( + CASE + + 97 WHEN COALESCE ( + - 89, - 49 ) THEN - 45 ELSE NULL END ) WHEN + 3 THEN 38 WHEN + - 67 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - + 78 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT - NULLIF ( + COUNT( * ), - 89 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7347
SELECT - NULLIF ( + COUNT ( * ), - 89 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT DISTINCT + 13 + + COUNT( * ) * + + 38
----
51

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT + 13 + + COUNT ( * ) * + + 38
----
51

query II rowsort
SELECT - 45 * 51 AS col0, - 3 + - + 17 AS col2
----
-2295
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT - CASE + COUNT( * ) WHEN 23 * + 53 THEN NULL WHEN - 16 + + 68 THEN - 63 END + - - 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7350
SELECT - CASE + COUNT ( * ) WHEN 23 * + 53 THEN NULL WHEN - 16 + + 68 THEN - 63 END + - - 55 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7351
SELECT - 72 DIV + 63 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7351
SELECT - 72 / + 63 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7352
SELECT ALL + 90 DIV - 74
----
-1

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL + 90 / - 74
----
-1

query I rowsort
SELECT 60 + - - 18 AS col0
----
78

query I rowsort
SELECT ALL 14 + 39 * - 56 * 22
----
-48034

query II rowsort
SELECT 69 + + - ( + 18 ) AS col1, + 58 AS col1
----
51
58

query I rowsort
SELECT ALL - 18 + ( 1 ) + - - 93 col1
----
76

query I rowsort
SELECT 75 + + ( 28 ) * 90 AS col0
----
2595

query I rowsort
SELECT 79 * + 7 AS col1
----
553

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7359
SELECT ALL + 91 DIV - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL + 91 / - COUNT ( * )
----
-91

query I rowsort
SELECT 85 + + 19 + - 8 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL - 19 - + + 61 + NULLIF ( + + COUNT( * ), - CASE - + 30 WHEN 36 THEN - + 68 END + - 89 )
----
-79

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL - 19 - + + 61 + NULLIF ( + + COUNT ( * ), - CASE - + 30 WHEN 36 THEN - + 68 END + - 89 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT COUNT( * ) + - - 52 * - 23 * + - 42 * - 66
----
-3315311

skipif mysql # not compatible
query I rowsort label-7362
SELECT COUNT ( * ) + - - 52 * - 23 * + - 42 * - 66
----
-3315311

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7363
SELECT ALL MAX( DISTINCT - COALESCE ( + NULLIF ( - 7, - - 42 ), + - 66 DIV + 25 * - 70 - + 32 ) ), + ( - - 27 ) DIV + 7 AS col1
----
7
3

skipif mysql # not compatible
query II rowsort label-7363
SELECT ALL MAX ( DISTINCT - COALESCE ( + NULLIF ( - 7, - - 42 ), + - 66 / + 25 * - 70 - + 32 ) ), + ( - - 27 ) / + 7 AS col1
----
7
3

query I rowsort
SELECT 75 + + + 31 AS col2
----
106

onlyif mysql # DIV for integer division: 
query II rowsort label-7365
SELECT - 77, - 26 DIV 93 AS col0
----
-77
0

skipif mysql # not compatible
query II rowsort label-7365
SELECT - 77, - 26 / 93 AS col0
----
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT DISTINCT MIN( ALL - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT MIN ( ALL - 29 )
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7367
SELECT ALL - NULLIF ( - 69, ( - - NULLIF ( - 89, - 30 ) ) * + 60 - - CAST( 28 AS DECIMAL ) ) col2
----
69

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL - NULLIF ( - 69, ( - - NULLIF ( - 89, - 30 ) ) * + 60 - - CAST ( 28 AS REAL ) ) col2
----
69

query I rowsort
SELECT 10 * + ( + + 48 ) AS col0
----
480

onlyif mysql # aggregate syntax: 
query II rowsort label-7369
SELECT COUNT( * ) AS col1, 88
----
1
88

skipif mysql # not compatible
query II rowsort label-7369
SELECT COUNT ( * ) AS col1, 88
----
1
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7370
SELECT ALL - 99 AS col2, + COUNT( * )
----
-99
1

skipif mysql # not compatible
query II rowsort label-7370
SELECT ALL - 99 AS col2, + COUNT ( * )
----
-99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7371
SELECT - 4 + - CASE 79 WHEN + 81 * 55 * CAST( 69 AS SIGNED ) + CAST( NULL AS SIGNED ) + 25 + + 95 + COUNT( * ) * + 27 * - CAST( + 72 AS SIGNED ) THEN NULL ELSE - - 47 END AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7371
SELECT - 4 + - CASE 79 WHEN + 81 * 55 * CAST ( 69 AS INTEGER ) + CAST ( NULL AS INTEGER ) + 25 + + 95 + COUNT ( * ) * + 27 * - CAST ( + 72 AS INTEGER ) THEN NULL ELSE - - 47 END AS col2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT - COALESCE ( + 89, 1 ) col0, MIN( ALL - - 27 ) AS col0
----
-89
27

skipif mysql # not compatible
query II rowsort label-7372
SELECT - COALESCE ( + 89, 1 ) col0, MIN ( ALL - - 27 ) AS col0
----
-89
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT 88 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT 88 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 17 + - + 71 AS col2
----
-88

query I rowsort
SELECT ALL - - ( + 67 )
----
67

onlyif mysql # DIV for integer division: 
query II rowsort label-7376
SELECT ( 6 ) DIV + - 40 col2, 78
----
0
78

skipif mysql # not compatible
query II rowsort label-7376
SELECT ( 6 ) / + - 40 col2, 78
----
0
78

onlyif mysql # aggregate syntax: 
query II rowsort label-7377
SELECT CASE - + NULLIF ( - ( COUNT( * ) ), - AVG ( ALL - 79 ) / + + 77 ) WHEN + 44 - + - 66 * + 37 THEN + 55 WHEN + 85 * 37 - 57 THEN NULL END, 47 col2
----
NULL
47

skipif mysql # not compatible
query II rowsort label-7377
SELECT CASE - + NULLIF ( - ( COUNT ( * ) ), - AVG ( ALL - 79 ) / + + 77 ) WHEN + 44 - + - 66 * + 37 THEN + 55 WHEN + 85 * 37 - 57 THEN NULL END, 47 col2
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL - 34 * MAX( - 4 ) AS col2
----
136

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL - 34 * MAX ( - 4 ) AS col2
----
136

query I rowsort
SELECT - 93 + + 26 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT DISTINCT 32 + COUNT( * ) col2
----
33

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT 32 + COUNT ( * ) col2
----
33

query I rowsort
SELECT DISTINCT + - 70 * 82 AS col2
----
-5740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7382
SELECT DISTINCT 46 + + COUNT( DISTINCT - CAST( - 57 AS SIGNED ) ) + + 75 * COUNT( * )
----
122

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT 46 + + COUNT ( DISTINCT - CAST ( - 57 AS INTEGER ) ) + + 75 * COUNT ( * )
----
122

query I rowsort
SELECT DISTINCT CASE - 3 WHEN + 34 THEN - 48 END + + 43 / ( + 19 )
----
NULL

query I rowsort
SELECT - 64 + + - ( 35 ) AS col2
----
-99

query I rowsort
SELECT DISTINCT - 82 + - 16 col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL COUNT( * ) + + + 52
----
53

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL COUNT ( * ) + + + 52
----
53

query I rowsort
SELECT ALL + 49 + + 17 * - 44
----
-699

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT + COUNT( * ) * NULLIF ( + 55, + - 64 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7388
SELECT + COUNT ( * ) * NULLIF ( + 55, + - 64 ) AS col1
----
55

query I rowsort
SELECT DISTINCT 78 + - - 43 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT 2 * + MIN( DISTINCT - + 92 ) AS col0
----
-184

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT 2 * + MIN ( DISTINCT - + 92 ) AS col0
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT DISTINCT MIN( - 17 ) + 24 - 14 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT MIN ( - 17 ) + 24 - 14 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT ALL + 86 + + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL + 86 + + - COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT ALL - COUNT( * ) + + - 93
----
-94

skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL - COUNT ( * ) + + - 93
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7394
SELECT ALL 1 - COALESCE ( 12, - COUNT( * ) + - - 52, - 80 ) DIV - 68 + - - 55 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL 1 - COALESCE ( 12, - COUNT ( * ) + - - 52, - 80 ) / - 68 + - - 55 AS col2
----
56

query II rowsort
SELECT - COALESCE ( + 86, - 41, + 25 ) AS col2, ( - 50 )
----
-86
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7396
SELECT - COALESCE ( + 59, + 54 * - 26 DIV - 92, - + 41 )
----
-59

skipif mysql # not compatible
query I rowsort label-7396
SELECT - COALESCE ( + 59, + 54 * - 26 / - 92, - + 41 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT + NULLIF ( + 55, - 43 + - COUNT( * ) * - 95 ) * + + 92 AS col0
----
5060

skipif mysql # not compatible
query I rowsort label-7397
SELECT + NULLIF ( + 55, - 43 + - COUNT ( * ) * - 95 ) * + + 92 AS col0
----
5060

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT - 48 * + 85 * + COUNT( * ) col1
----
-4080

skipif mysql # not compatible
query I rowsort label-7398
SELECT - 48 * + 85 * + COUNT ( * ) col1
----
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL MIN( DISTINCT + + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL MIN ( DISTINCT + + 0 ) AS col0
----
0

query I rowsort
SELECT - 12 * - + 41 AS col1
----
492

query I rowsort
SELECT ALL + 24 * + 1 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT DISTINCT COALESCE ( SUM( + 31 ), - 85 ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT COALESCE ( SUM ( + 31 ), - 85 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7403
SELECT - 88 * CAST( COUNT( * ) AS SIGNED ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7403
SELECT - 88 * CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT + COUNT( * ) * + + 77
----
77

skipif mysql # not compatible
query I rowsort label-7404
SELECT + COUNT ( * ) * + + 77
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7405
SELECT CAST( - - 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-7405
SELECT CAST ( - - 20 AS INTEGER )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT - + 65 * - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7406
SELECT - + 65 * - COUNT ( * ) AS col0
----
65

query I rowsort
SELECT - + 60 * + - 72 * - 31 * - 92 AS col0
----
12320640

query I rowsort
SELECT - 77 * - 24 + 61 AS col1
----
1909

query I rowsort
SELECT ( - + 9 ) col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7410
SELECT ALL + 38 * + COUNT( * ) AS col2, + 44
----
38
44

skipif mysql # not compatible
query II rowsort label-7410
SELECT ALL + 38 * + COUNT ( * ) AS col2, + 44
----
38
44

query I rowsort
SELECT ALL - + 42 * - + 0 * - - 33 + + 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT - 81 + - + COALESCE ( - 12, - 64, - 91 * MIN( - - 8 ) * - COUNT( * ) + - + 18 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-7412
SELECT - 81 + - + COALESCE ( - 12, - 64, - 91 * MIN ( - - 8 ) * - COUNT ( * ) + - + 18 ) AS col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7413
SELECT ALL - + 89 * ( CAST( NULL AS SIGNED ) ) * - 75 * - AVG ( - + 99 ) + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - + 89 * ( CAST ( NULL AS INTEGER ) ) * - 75 * - AVG ( - + 99 ) + - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL - 40 * + SUM( DISTINCT 15 ) + - + 53 col0
----
-653

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL - 40 * + SUM ( DISTINCT 15 ) + - + 53 col0
----
-653

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT + 1 * - 24 * + + 36 + MAX( ALL + 28 ) - COUNT( * ) - + + ( + 64 ) AS col0
----
-901

skipif mysql # not compatible
query I rowsort label-7415
SELECT + 1 * - 24 * + + 36 + MAX ( ALL + 28 ) - COUNT ( * ) - + + ( + 64 ) AS col0
----
-901

query I rowsort
SELECT + 14 * - + 97 + + 93 + 87 + + + 57
----
-1121

query I rowsort
SELECT ALL + 11 * - - ( + - 22 ) + + 37 AS col1
----
-205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7418
SELECT DISTINCT + 94 DIV 4 * + ( - COALESCE ( COUNT( * ), + 35, + CAST( NULL AS SIGNED ) * + - SUM( ALL 81 ) ) )
----
-23

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT + 94 / 4 * + ( - COALESCE ( COUNT ( * ), + 35, + CAST ( NULL AS INTEGER ) * + - SUM ( ALL 81 ) ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT + - 83 + + 61 + - COUNT( * ) + + 99 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7419
SELECT + - 83 + + 61 + - COUNT ( * ) + + 99 AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL 30 * + + MAX( + + 65 ) + - COUNT( * ) + + + 8 AS col0
----
1957

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL 30 * + + MAX ( + + 65 ) + - COUNT ( * ) + + + 8 AS col0
----
1957

query I rowsort
SELECT - 11 + 80
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT ALL + 91 * - COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL + 91 * - COUNT ( * ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT ALL 36 * COUNT( * ) - + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL 36 * COUNT ( * ) - + COUNT ( * )
----
35

query II rowsort
SELECT ALL 52 AS col2, 24
----
52
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT DISTINCT 98 * + CAST( NULL AS SIGNED ) - + 49 * + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT 98 * + CAST ( NULL AS INTEGER ) - + 49 * + + 35
----
NULL

query I rowsort
SELECT + 61 * 12 * + 7 + - NULLIF ( - 35, - - COALESCE ( + + 83, 80 ) - + 37 )
----
5159

query I rowsort
SELECT + 60 + 61 col0
----
121

query I rowsort
SELECT + ( - 36 ) + + 93 col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7429
SELECT ALL COALESCE ( CAST( NULL AS DECIMAL ), - + COUNT( * ) + + 42 / + 70 * 35 ) * - CAST( NULL AS SIGNED ) * - - COUNT( + 7 ) * CAST( - + CAST( + 27 AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL COALESCE ( CAST ( NULL AS REAL ), - + COUNT ( * ) + + 42 / + 70 * 35 ) * - CAST ( NULL AS INTEGER ) * - - COUNT ( + 7 ) * CAST ( - + CAST ( + 27 AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT - ( 31 ) AS col2
----
-31

query II rowsort
SELECT + 30 + - 70 * + - 12 AS col1, 9 AS col2
----
870
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT + 88 * 17 * COUNT( * ) * - 38 AS col2
----
-56848

skipif mysql # not compatible
query I rowsort label-7432
SELECT + 88 * 17 * COUNT ( * ) * - 38 AS col2
----
-56848

onlyif mysql # DIV for integer division: 
query I rowsort label-7433
SELECT + 6 + - NULLIF ( 64, - 87 ) DIV 68
----
6

skipif mysql # not compatible
query I rowsort label-7433
SELECT + 6 + - NULLIF ( 64, - 87 ) / 68
----
6

query I rowsort
SELECT - ( - - 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT + 82 + + - ( + + COUNT( * ) ) + + + 93 AS col0
----
174

skipif mysql # not compatible
query I rowsort label-7435
SELECT + 82 + + - ( + + COUNT ( * ) ) + + + 93 AS col0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7436
SELECT + 52 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT + 52 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ( + MIN( ALL + 90 ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-7437
SELECT ( + MIN ( ALL + 90 ) ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT ALL - + 45 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - + 45 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT + MAX( ALL - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-7439
SELECT + MAX ( ALL - 97 )
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7440
SELECT 41 * + - CAST( + CASE - 28 WHEN - 64 THEN - 64 * + 17 * - - 82 + 51 ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT 41 * + - CAST ( + CASE - 28 WHEN - 64 THEN - 64 * + 17 * - - 82 + 51 ELSE NULL END AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7441
SELECT ALL - COUNT( * ) + CASE + MIN( DISTINCT + 24 ) WHEN 63 * + - 4 * - - 12 THEN NULL ELSE 14 DIV ( - 23 ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL - COUNT ( * ) + CASE + MIN ( DISTINCT + 24 ) WHEN 63 * + - 4 * - - 12 THEN NULL ELSE 14 / ( - 23 ) END
----
-1

query I rowsort
SELECT DISTINCT - 84 * + 29 + - 39 AS col0
----
-2475

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT + ( - + 78 ) DIV + + 14 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-7443
SELECT + ( - + 78 ) / + + 14 AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT CAST( NULL AS SIGNED ) + - CASE + 70 WHEN 37 THEN NULL ELSE + 61 END + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT CAST ( NULL AS INTEGER ) + - CASE + 70 WHEN 37 THEN NULL ELSE + 61 END + - 33 AS col2
----
NULL

query I rowsort
SELECT ALL - CASE + 56 WHEN + - 84 THEN NULL WHEN - + 96 THEN - 44 END / - + 94 / 73 - 50 * - 49 + + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7446
SELECT + - ( + 28 ) * - COUNT( * ) * 14 + 58 col0, 77
----
450
77

skipif mysql # not compatible
query II rowsort label-7446
SELECT + - ( + 28 ) * - COUNT ( * ) * 14 + 58 col0, 77
----
450
77

query I rowsort
SELECT DISTINCT + - ( + 16 ) * + 39 + 30 * - 36 col2
----
-1704

query I rowsort
SELECT ALL + - 90 * 61 AS col1
----
-5490

query I rowsort
SELECT - 82 * - 62 - - 9 * - 65 AS col2
----
4499

query I rowsort
SELECT DISTINCT - - 56 AS col0
----
56

query I rowsort
SELECT + ( + 0 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7452
SELECT CAST( SUM( - 59 ) AS SIGNED ) * - + 28 AS col2
----
1652

skipif mysql # not compatible
query I rowsort label-7452
SELECT CAST ( SUM ( - 59 ) AS INTEGER ) * - + 28 AS col2
----
1652

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT 53 + - 41 + + COUNT( 90 ) * + 23
----
35

skipif mysql # not compatible
query I rowsort label-7453
SELECT 53 + - 41 + + COUNT ( 90 ) * + 23
----
35

query II rowsort
SELECT 38, + 31 AS col0
----
38
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT 95 + 86 * + + COUNT( * )
----
181

skipif mysql # not compatible
query I rowsort label-7455
SELECT 95 + 86 * + + COUNT ( * )
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7456
SELECT 4 * + 6 * + 32 * - MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7456
SELECT 4 * + 6 * + 32 * - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7457
SELECT ALL - MAX( + 15 ) DIV - 12
----
1

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL - MAX ( + 15 ) / - 12
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7458
SELECT - 7 AS col1, + SUM( ALL - 90 ) + 94
----
-7
4

skipif mysql # not compatible
query II rowsort label-7458
SELECT - 7 AS col1, + SUM ( ALL - 90 ) + 94
----
-7
4

query I rowsort
SELECT DISTINCT - 42 * 89
----
-3738

onlyif mysql # DIV for integer division: 
query I rowsort label-7460
SELECT ALL - 69 DIV 43 * - 2 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL - 69 / 43 * - 2 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT DISTINCT - COUNT( * ) * - + 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - COUNT ( * ) * - + 48 AS col0
----
48

query II rowsort
SELECT - 25, - 49 AS col2
----
-25
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT 84 * + 67 * - COUNT( + 54 )
----
-5628

skipif mysql # not compatible
query I rowsort label-7463
SELECT 84 * + 67 * - COUNT ( + 54 )
----
-5628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7464
SELECT 19 * + ( + + 0 ) DIV + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7464
SELECT 19 * + ( + + 0 ) / + + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 94 * - - 5 AS col0
----
470

onlyif mysql # aggregate syntax: 
query II rowsort label-7466
SELECT COUNT( * ) - + 43, - SUM( DISTINCT + 34 ) AS col0
----
-42
-34

skipif mysql # not compatible
query II rowsort label-7466
SELECT COUNT ( * ) - + 43, - SUM ( DISTINCT + 34 ) AS col0
----
-42
-34

query II rowsort
SELECT - 36, 38 AS col0
----
-36
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT ALL COUNT( - 9 ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL COUNT ( - 9 ) + - 83
----
-82

query I rowsort
SELECT + 36 * 16
----
576

query I rowsort
SELECT DISTINCT + 10 + 17
----
27

query I rowsort
SELECT ALL - NULLIF ( 70, + 98 ) + + 33 * 8 AS col0
----
194

query I rowsort
SELECT ALL + 77 + + 71
----
148

query I rowsort
SELECT DISTINCT ( - 73 ) + - 32 AS col1
----
-105

onlyif mysql # aggregate syntax: 
query II rowsort label-7474
SELECT COUNT( * ) + + 53 AS col0, + 65 AS col0
----
54
65

skipif mysql # not compatible
query II rowsort label-7474
SELECT COUNT ( * ) + + 53 AS col0, + 65 AS col0
----
54
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7475
SELECT ALL 56 + - COUNT( * ) + COUNT( * ) + + 1 AS col1, 36 * 19 * 3
----
57
2052

skipif mysql # not compatible
query II rowsort label-7475
SELECT ALL 56 + - COUNT ( * ) + COUNT ( * ) + + 1 AS col1, 36 * 19 * 3
----
57
2052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT ALL + 27 * + + CAST( NULL AS SIGNED ) * 85 - + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL + 27 * + + CAST ( NULL AS INTEGER ) * 85 - + - 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7477
SELECT 32 DIV 88
----
0

skipif mysql # not compatible
query I rowsort label-7477
SELECT 32 / 88
----
0

query I rowsort
SELECT - 39 * 77 AS col0
----
-3003

query I rowsort
SELECT DISTINCT - 94 * 5 AS col1
----
-470

query I rowsort
SELECT ALL 83 - - 30 AS col0
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7481
SELECT 56 / - CAST( NULL AS DECIMAL ) * - + ( - 26 ) + ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT 56 / - CAST ( NULL AS REAL ) * - + ( - 26 ) + ( 89 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7482
SELECT DISTINCT - 12 / + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT - 12 / + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7483
SELECT 22 * COUNT( * ), - 38 AS col1
----
22
-38

skipif mysql # not compatible
query II rowsort label-7483
SELECT 22 * COUNT ( * ), - 38 AS col1
----
22
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT + COUNT( * ) + - 15 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-7484
SELECT + COUNT ( * ) + - 15 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7485
SELECT ALL - 25 AS col2, + COUNT( * ) col2
----
-25
1

skipif mysql # not compatible
query II rowsort label-7485
SELECT ALL - 25 AS col2, + COUNT ( * ) col2
----
-25
1

query I rowsort
SELECT ALL - 73 * + ( 93 )
----
-6789

query I rowsort
SELECT 14 * - 69 col2
----
-966

query II rowsort
SELECT ALL - CASE + 68 WHEN 20 * + 49 + - 79 + + 65 - + AVG ( DISTINCT + + 39 ) / - 89 + - 32 THEN 77 + + 17 END AS col0, - 61
----
NULL
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT 4 * - 12 * + COUNT( * ) * 87
----
-4176

skipif mysql # not compatible
query I rowsort label-7489
SELECT 4 * - 12 * + COUNT ( * ) * 87
----
-4176

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7490
SELECT ALL - 29 + + CASE - - 84 WHEN + CAST( NULL AS DECIMAL ) THEN 79 + - 64 WHEN 56 THEN - - MAX( - + 65 ) ELSE NULL END + 77 * - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL - 29 + + CASE - - 84 WHEN + CAST ( NULL AS REAL ) THEN 79 + - 64 WHEN 56 THEN - - MAX ( - + 65 ) ELSE NULL END + 77 * - 61 AS col1
----
NULL

query I rowsort
SELECT 29 * + 19 AS col0
----
551

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL - 17 * COUNT( * ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - 17 * COUNT ( * ) col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7493
SELECT ALL 87 + + COALESCE ( + 22, CAST( NULL AS SIGNED ) DIV 11 - 56 + + 26, - - 33 + ( + 2 ) * + SUM( DISTINCT - + 75 ), + MAX( + 70 ) + 71 )
----
109

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL 87 + + COALESCE ( + 22, CAST ( NULL AS INTEGER ) / 11 - 56 + + 26, - - 33 + ( + 2 ) * + SUM ( DISTINCT - + 75 ), + MAX ( + 70 ) + 71 )
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT - 57 + + 54 DIV - + 88 + ( + 69 ) * 30
----
2013

skipif mysql # not compatible
query I rowsort label-7494
SELECT - 57 + + 54 / - + 88 + ( + 69 ) * 30
----
2013

query I rowsort
SELECT DISTINCT + + 61 * + 62 - 26
----
3756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7496
SELECT + 70 + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT + 70 + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7497
SELECT - + 34 DIV + - 67, 14 DIV 89 + + - 76 + + - 76 DIV + + COUNT( ALL + - 44 ) + MAX( + 51 ) AS col1
----
0
-101

skipif mysql # not compatible
query II rowsort label-7497
SELECT - + 34 / + - 67, 14 / 89 + + - 76 + + - 76 / + + COUNT ( ALL + - 44 ) + MAX ( + 51 ) AS col1
----
0
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT + CAST( - 3 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7498
SELECT + CAST ( - 3 AS INTEGER ) AS col2
----
-3

query I rowsort
SELECT ALL - 91 col1
----
-91

query I rowsort
SELECT - - 60 * + + 31 * - 48
----
-89280

query I rowsort
SELECT + - 54 * - 21
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL CASE COUNT( * ) WHEN 98 THEN NULL ELSE - - MIN( DISTINCT - 31 ) * + - 39 + 46 + - 72 END
----
1183

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL CASE COUNT ( * ) WHEN 98 THEN NULL ELSE - - MIN ( DISTINCT - 31 ) * + - 39 + 46 + - 72 END
----
1183

query I rowsort
SELECT DISTINCT + - 29 AS col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7504
SELECT + CAST( + COUNT( 94 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7504
SELECT + CAST ( + COUNT ( 94 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT - COALESCE ( + - 4, MIN( + 62 ) )
----
4

skipif mysql # not compatible
query I rowsort label-7505
SELECT - COALESCE ( + - 4, MIN ( + 62 ) )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7506
SELECT + + 27 * - CAST( NULL AS SIGNED ) + - 40 - 41 + 90 * + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT + + 27 * - CAST ( NULL AS INTEGER ) + - 40 - 41 + 90 * + + 5
----
NULL

query I rowsort
SELECT DISTINCT - 22 * + - 76 AS col0
----
1672

query I rowsort
SELECT + 32 * - 74 col0
----
-2368

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT CASE + 76 WHEN + 42 - 99 THEN NULL ELSE + - ( - + MIN( DISTINCT + 94 ) ) + + 4 END AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7509
SELECT CASE + 76 WHEN + 42 - 99 THEN NULL ELSE + - ( - + MIN ( DISTINCT + 94 ) ) + + 4 END AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7510
SELECT CASE + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN - + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT CASE + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - + 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7511
SELECT ALL COUNT( * ) * - + 19 + 23, 90 col0
----
4
90

skipif mysql # not compatible
query II rowsort label-7511
SELECT ALL COUNT ( * ) * - + 19 + 23, 90 col0
----
4
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL + 56 * - + 5 + - - COUNT( * ) + + 60
----
-219

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + 56 * - + 5 + - - COUNT ( * ) + + 60
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT + ( + - NULLIF ( - 26, - 69 + + COUNT( * ) ) )
----
26

skipif mysql # not compatible
query I rowsort label-7513
SELECT + ( + - NULLIF ( - 26, - 69 + + COUNT ( * ) ) )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7514
SELECT + 1 * COUNT( * ) * - + 70, 10 * + 86 + - COUNT( * ) AS col0
----
-70
859

skipif mysql # not compatible
query II rowsort label-7514
SELECT + 1 * COUNT ( * ) * - + 70, 10 * + 86 + - COUNT ( * ) AS col0
----
-70
859

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT - 65 * - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 65 * - COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT SUM( DISTINCT - 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7516
SELECT SUM ( DISTINCT - 89 ) AS col2
----
-89

query I rowsort
SELECT - 83 + + 9 AS col0
----
-74

query I rowsort
SELECT + ( + + 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT SUM( - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7519
SELECT SUM ( - 58 ) AS col2
----
-58

query II rowsort
SELECT DISTINCT 30 AS col1, 69
----
30
69

query I rowsort
SELECT + 6 + + 18 * + 66 col1
----
1194

query I rowsort
SELECT ALL - 7 * - 49 AS col2
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT DISTINCT ( + 2 ) + ( COUNT( * ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT ( + 2 ) + ( COUNT ( * ) ) AS col0
----
3

query I rowsort
SELECT ALL + 35 + 0 * + 72 + + 93 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT DISTINCT - SUM( ALL 40 ) - 3 + - 63 + + 41 + NULLIF ( - 39, ( + 32 ) )
----
-104

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT - SUM ( ALL 40 ) - 3 + - 63 + + 41 + NULLIF ( - 39, ( + 32 ) )
----
-104

query I rowsort
SELECT + COALESCE ( - 54, 48 ) AS col2
----
-54

query I rowsort
SELECT - - 64 - - 80 AS col2
----
144

query I rowsort
SELECT - - 5 * - + 33 * + 72
----
-11880

onlyif mysql # aggregate syntax: 
query II rowsort label-7529
SELECT - 21 - + NULLIF ( COUNT( * ), - 25 ) + - 73 * 54 AS col0, 65 + + MIN( + 56 ) * - - 55
----
-3964
3145

skipif mysql # not compatible
query II rowsort label-7529
SELECT - 21 - + NULLIF ( COUNT ( * ), - 25 ) + - 73 * 54 AS col0, 65 + + MIN ( + 56 ) * - - 55
----
-3964
3145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7530
SELECT - CASE + + 87 WHEN + 52 - + CAST( - COUNT( * ) AS SIGNED ) + - 56 + + + 87 THEN - 95 * - 54 WHEN + 82 THEN NULL ELSE NULL END * + CASE + + 25 WHEN + CAST( NULL AS SIGNED ) + 59 + - 40 THEN 14 * + AVG ( ALL - 90 ) * 21 ELSE ( - + NULLIF ( + - 19, - 81 ) ) + + COUNT( * ) END + 99 / - 74 + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT - CASE + + 87 WHEN + 52 - + CAST ( - COUNT ( * ) AS INTEGER ) + - 56 + + + 87 THEN - 95 * - 54 WHEN + 82 THEN NULL ELSE NULL END * + CASE + + 25 WHEN + CAST ( NULL AS INTEGER ) + 59 + - 40 THEN 14 * + AVG ( ALL - 90 ) * 21 ELSE ( - + NULLIF ( + - 19, - 81 ) ) + + COUNT ( * ) END + 99 / - 74 + - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL + + SUM( DISTINCT 39 ) * - 54
----
-2106

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL + + SUM ( DISTINCT 39 ) * - 54
----
-2106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7532
SELECT - CAST( NULL AS SIGNED ) * - NULLIF ( + ( - 75 ), - 99 * + 38 ) * + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7532
SELECT - CAST ( NULL AS INTEGER ) * - NULLIF ( + ( - 75 ), - 99 * + 38 ) * + 38 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT ALL + - 67 DIV + + 56
----
-1

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL + - 67 / + + 56
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT - 75 - - CASE + COUNT( * ) WHEN - COUNT( * ) THEN 6 WHEN + + 51 + - 94 THEN - 66 + - MAX( - - 97 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT - 75 - - CASE + COUNT ( * ) WHEN - COUNT ( * ) THEN 6 WHEN + + 51 + - 94 THEN - 66 + - MAX ( - - 97 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7535
SELECT ALL + 29, 99 DIV 64 * + CAST( + 87 AS SIGNED ) + + - 48 DIV + + 51 AS col2
----
29
87

skipif mysql # not compatible
query II rowsort label-7535
SELECT ALL + 29, 99 / 64 * + CAST ( + 87 AS INTEGER ) + + - 48 / + + 51 AS col2
----
29
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7536
SELECT - - 79 + + - 56 DIV 91 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7536
SELECT - - 79 + + - 56 / 91 AS col0
----
79

query I rowsort
SELECT - + 18 col0
----
-18

query I rowsort
SELECT - 96 * + 9 + - - 79 + ( - 49 ) + - 59
----
-893

query I rowsort
SELECT ALL + + 67 col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT + MIN( 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7540
SELECT + MIN ( 33 ) AS col0
----
33

query I rowsort
SELECT + 7 * + - 61 * + 74 AS col0
----
-31598

query I rowsort
SELECT + - 23 * + 96 * - ( + 62 ) * - 9
----
-1232064

query II rowsort
SELECT + + 0 * 20 * + 98 + - 36 + + - 1 + + 43 - - - 21 * - 6 AS col0, + 64 AS col2
----
132
64

query I rowsort
SELECT DISTINCT - 82 * + 57 AS col1
----
-4674

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT ALL 26 DIV - 4 + + 17 * + + 26 * - 72
----
-31830

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL 26 / - 4 + + 17 * + + 26 * - 72
----
-31830

onlyif mysql # DIV for integer division: 
query I rowsort label-7546
SELECT ALL + 12 DIV 57 + - 15 col0
----
-15

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL + 12 / 57 + - 15 col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT CAST( 78 AS SIGNED ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7547
SELECT CAST ( 78 AS INTEGER ) AS col0
----
78

query I rowsort
SELECT ALL + COALESCE ( + - 70, 8, ( 38 ) ) AS col1
----
-70

query I rowsort
SELECT ( + - 10 ) AS col2
----
-10

query I rowsort
SELECT 11 * + + 10 + - + 68 AS col0
----
42

query I rowsort
SELECT ( + + 12 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL + 18 * + MAX( - + 21 ) * ( + COUNT( * ) ) + - 89 + + - ( - + 72 ) * + 74
----
4861

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL + 18 * + MAX ( - + 21 ) * ( + COUNT ( * ) ) + - 89 + + - ( - + 72 ) * + 74
----
4861

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT + CAST( - 2 AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7553
SELECT + CAST ( - 2 AS INTEGER ) AS col0
----
-2

query I rowsort
SELECT + NULLIF ( - - 85, + 37 * 58 + AVG ( ALL + 32 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT DISTINCT + COALESCE ( - 40, - 28 + + - NULLIF ( + 23, - - 95 ) * COUNT( * ) ) * - - 71
----
-2840

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT + COALESCE ( - 40, - 28 + + - NULLIF ( + 23, - - 95 ) * COUNT ( * ) ) * - - 71
----
-2840

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT COUNT( * ) - + 45
----
-44

skipif mysql # not compatible
query I rowsort label-7556
SELECT COUNT ( * ) - + 45
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7557
SELECT CAST( NULL AS SIGNED ) * + - 76, - 96 AS col0
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-7557
SELECT CAST ( NULL AS INTEGER ) * + - 76, - 96 AS col0
----
NULL
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT 41 * - + COUNT( DISTINCT 10 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-7558
SELECT 41 * - + COUNT ( DISTINCT 10 ) AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7559
SELECT - 66 * CASE - 52 WHEN + 98 * COUNT( * ) + + 50 + COUNT( * ) + + 6 * + + CASE + CASE - 46 WHEN + 91 THEN - - 74 + - 5 * - 12 WHEN + 77 THEN 35 ELSE NULL END WHEN + 18 + + 79 THEN + + 76 END * - - 81 + - + 39 THEN CAST( 76 AS SIGNED ) + CAST( - 94 AS SIGNED ) + + CASE - MIN( DISTINCT 45 ) WHEN NULLIF ( - 84, - 53 * + - ( 51 ) - 64 ) THEN NULL WHEN + 95 THEN + 97 END * CAST( - 31 AS SIGNED ) / + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT - 66 * CASE - 52 WHEN + 98 * COUNT ( * ) + + 50 + COUNT ( * ) + + 6 * + + CASE + CASE - 46 WHEN + 91 THEN - - 74 + - 5 * - 12 WHEN + 77 THEN 35 ELSE NULL END WHEN + 18 + + 79 THEN + + 76 END * - - 81 + - + 39 THEN CAST ( 76 AS INTEGER ) + CAST ( - 94 AS INTEGER ) + + CASE - MIN ( DISTINCT 45 ) WHEN NULLIF ( - 84, - 53 * + - ( 51 ) - 64 ) THEN NULL WHEN + 95 THEN + 97 END * CAST ( - 31 AS INTEGER ) / + 39 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT 72 + COUNT( * ) - - CASE - COUNT( * ) WHEN 80 * 58 THEN ( 8 ) WHEN + 90 THEN NULL WHEN ( - 76 ) + CAST( NULL AS SIGNED ) + + COUNT( * ) * - 77 * + - CAST( + 19 AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT 72 + COUNT ( * ) - - CASE - COUNT ( * ) WHEN 80 * 58 THEN ( 8 ) WHEN + 90 THEN NULL WHEN ( - 76 ) + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - 77 * + - CAST ( + 19 AS INTEGER ) THEN NULL END
----
NULL

query I rowsort
SELECT CASE 13 WHEN - 92 + 66 THEN - 28 WHEN + + 78 THEN 67 END * - 84
----
NULL

query I rowsort
SELECT ALL + + 32 * - 18 col1
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7563
SELECT COUNT( * ) + - 27 - 68 * 87 DIV - COALESCE ( + 1, - AVG ( + + 54 ) ) col1
----
5890

skipif mysql # not compatible
query I rowsort label-7563
SELECT COUNT ( * ) + - 27 - 68 * 87 / - COALESCE ( + 1, - AVG ( + + 54 ) ) col1
----
5890

query I rowsort
SELECT - 32 + + 86
----
54

query I rowsort
SELECT 41 + - 11 * + - 84
----
965

onlyif mysql # aggregate syntax: 
query II rowsort label-7566
SELECT - + COALESCE ( + MIN( - 53 ), 52 ), + 80 AS col2
----
53
80

skipif mysql # not compatible
query II rowsort label-7566
SELECT - + COALESCE ( + MIN ( - 53 ), 52 ), + 80 AS col2
----
53
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT 89 * - COUNT( + 25 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7567
SELECT 89 * - COUNT ( + 25 ) AS col2
----
-89

query I rowsort
SELECT + 82 + + - ( 43 )
----
39

query II rowsort
SELECT DISTINCT ( + + 16 ), 88 AS col1
----
16
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - CASE ( 39 ) WHEN - - COUNT( * ) THEN - - 90 WHEN - - 60 / - 99 + + 45 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT - CASE ( 39 ) WHEN - - COUNT ( * ) THEN - - 90 WHEN - - 60 / - 99 + + 45 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT 79 + - - 30 * + 37
----
1189

query I rowsort
SELECT - 48 * + - 84
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL COUNT( * ) + - - 8
----
9

skipif mysql # not compatible
query I rowsort label-7573
SELECT ALL COUNT ( * ) + - - 8
----
9

query I rowsort
SELECT ALL - 42 + 8 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT 13 * - COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7575
SELECT 13 * - COUNT ( * ) AS col1
----
-13

query I rowsort
SELECT 87 * - 31
----
-2697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7577
SELECT 32 DIV COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-7577
SELECT 32 / COUNT ( * )
----
32

query I rowsort
SELECT 3 * - 99
----
-297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7579
SELECT DISTINCT - SUM( + 89 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT - SUM ( + 89 ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 19 + + 62 * 30 AS col2
----
1879

query I rowsort
SELECT ALL - ( - 72 ) AS col2
----
72

query I rowsort
SELECT 12 + - - 2 + - + 30 - + 97 AS col2
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-7583
SELECT + 31, COUNT( * ) AS col0
----
31
1

skipif mysql # not compatible
query II rowsort label-7583
SELECT + 31, COUNT ( * ) AS col0
----
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT DISTINCT - COUNT( + 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT - COUNT ( + 76 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ( 33 ) + - + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-7585
SELECT ( 33 ) + - + COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL COUNT( * ) - + - 27 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL COUNT ( * ) - + - 27 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7587
SELECT + 59, CAST( 75 AS SIGNED ) * 67 + + 29 + + 90 AS col0
----
59
5144

skipif mysql # not compatible
query II rowsort label-7587
SELECT + 59, CAST ( 75 AS INTEGER ) * 67 + + 29 + + 90 AS col0
----
59
5144

query II rowsort
SELECT - + COALESCE ( + + 76, + 40 ) col0, 43 * + 51
----
-76
2193

query I rowsort
SELECT 86 * 57 + + + 9 AS col1
----
4911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7590
SELECT ALL - - CASE + CAST( NULL AS SIGNED ) WHEN - - 73 / - MAX( - 16 ) THEN 44 ELSE NULL END * - 34 * CAST( NULL AS SIGNED ) + - 75 + + COUNT( * ) AS col2, - ( + + NULLIF ( + 97, + 68 * 22 + - 25 ) ) * 65 + - 97 + + 74 AS col2
----
NULL
-6328

skipif mysql # not compatible
query II rowsort label-7590
SELECT ALL - - CASE + CAST ( NULL AS INTEGER ) WHEN - - 73 / - MAX ( - 16 ) THEN 44 ELSE NULL END * - 34 * CAST ( NULL AS INTEGER ) + - 75 + + COUNT ( * ) AS col2, - ( + + NULLIF ( + 97, + 68 * 22 + - 25 ) ) * 65 + - 97 + + 74 AS col2
----
NULL
-6328

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT - MAX( 84 ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-7591
SELECT - MAX ( 84 ) col2
----
-84

query I rowsort
SELECT ALL ( + ( 1 ) ) AS col0
----
1

query I rowsort
SELECT ALL - NULLIF ( 79, - 86 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT - 84 + - COUNT( * ) + - COUNT( * ) * + 57 + + MAX( ALL - 55 ) AS col0
----
-197

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT - 84 + - COUNT ( * ) + - COUNT ( * ) * + 57 + + MAX ( ALL - 55 ) AS col0
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT 2 * + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7595
SELECT 2 * + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + 6 - - ( ( 43 ) ) * - + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-7596
SELECT + 6 - - ( ( 43 ) ) * - + COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT - COALESCE ( + 57, + 73 * - NULLIF ( ( + COUNT( * ) ), + 81 * 75 ) ) + + 18 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT - COALESCE ( + 57, + 73 * - NULLIF ( ( + COUNT ( * ) ), + 81 * 75 ) ) + + 18 AS col1
----
-39

query I rowsort
SELECT ALL - 90 + - - 68 AS col2
----
-22

query I rowsort
SELECT ALL + - 12 + - 63
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7600
SELECT DISTINCT + COALESCE ( 26, - + 87 * - - 21 + - 86 + + 28 * - + 64 DIV 79 + + COUNT( 48 ) )
----
26

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT + COALESCE ( 26, - + 87 * - - 21 + - 86 + + 28 * - + 64 / 79 + + COUNT ( 48 ) )
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7601
SELECT ALL 79 + ( - - 99 ) DIV - 4 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL 79 + ( - - 99 ) / - 4 AS col0
----
55

query I rowsort
SELECT 78 + + - 78 * 39 * - 31 - 2
----
94378

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT 13 - MIN( DISTINCT + 51 )
----
-38

skipif mysql # not compatible
query I rowsort label-7603
SELECT 13 - MIN ( DISTINCT + 51 )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT CAST( - 38 AS SIGNED ) + - 17
----
-55

skipif mysql # not compatible
query I rowsort label-7604
SELECT CAST ( - 38 AS INTEGER ) + - 17
----
-55

query I rowsort
SELECT 23 - 16 + + 87 * - 68 + + 5
----
-5904

query II rowsort
SELECT + 1, - 36 - 96 AS col2
----
1
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-7607
SELECT CASE ( - + COUNT( ALL 29 ) ) WHEN 28 THEN NULL WHEN + 83 THEN NULL WHEN - 73 THEN + 14 - 83 / 53 - + 22 END AS col1, 44
----
NULL
44

skipif mysql # not compatible
query II rowsort label-7607
SELECT CASE ( - + COUNT ( ALL 29 ) ) WHEN 28 THEN NULL WHEN + 83 THEN NULL WHEN - 73 THEN + 14 - 83 / 53 - + 22 END AS col1, 44
----
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT COALESCE ( 70, - + 91, + SUM( 54 ) )
----
70

skipif mysql # not compatible
query I rowsort label-7608
SELECT COALESCE ( 70, - + 91, + SUM ( 54 ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL - SUM( + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL - SUM ( + 0 ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7610
SELECT DISTINCT CASE - + 48 WHEN + 22 THEN NULL ELSE + CAST( NULL AS SIGNED ) + - MIN( ALL 43 ) + + 2 END * + 41 / + COALESCE ( 38, - 73 + + 40 + + - ( COUNT( * ) ) * - 21, - - 44 ) + + - 75 - + - ( CAST( - 54 AS SIGNED ) ) / 79, - 83 AS col1
----
NULL
-83

skipif mysql # not compatible
query II rowsort label-7610
SELECT DISTINCT CASE - + 48 WHEN + 22 THEN NULL ELSE + CAST ( NULL AS INTEGER ) + - MIN ( ALL 43 ) + + 2 END * + 41 / + COALESCE ( 38, - 73 + + 40 + + - ( COUNT ( * ) ) * - 21, - - 44 ) + + - 75 - + - ( CAST ( - 54 AS INTEGER ) ) / 79, - 83 AS col1
----
NULL
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ALL + CASE - + 95 WHEN COUNT( + + 77 ) THEN + 46 WHEN - 14 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL + CASE - + 95 WHEN COUNT ( + + 77 ) THEN + 46 WHEN - 14 THEN NULL END
----
NULL

query I rowsort
SELECT - 7 + - + 29 * 86
----
-2501

query I rowsort
SELECT - 83 + 45
----
-38

query I rowsort
SELECT - 0 * + 29 * - 72 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7615
SELECT ALL - 75 DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL - 75 / 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL + SUM( + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + SUM ( + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT + CASE + + 22 WHEN - 24 * - 33 THEN + 24 WHEN + COUNT( 62 ) THEN 1 * - 67 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT + CASE + + 22 WHEN - 24 * - 33 THEN + 24 WHEN + COUNT ( 62 ) THEN 1 * - 67 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT MAX( + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-7618
SELECT MAX ( + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT - 64 * - SUM( - 86 ) AS col0
----
-5504

skipif mysql # not compatible
query I rowsort label-7619
SELECT - 64 * - SUM ( - 86 ) AS col0
----
-5504

query I rowsort
SELECT - 70 * + COALESCE ( - 4, - 16 ) col0
----
280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT - NULLIF ( + - 66, + 17 + + 82 ) + CAST( 8 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT - NULLIF ( + - 66, + 17 + + 82 ) + CAST ( 8 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7622
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 28 * 84 * 9 * + 49 AS col0
----
NULL
1037232

skipif mysql # not compatible
query II rowsort label-7622
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 28 * 84 * 9 * + 49 AS col0
----
NULL
1037232

query II rowsort
SELECT DISTINCT + COALESCE ( + 76, + - 74 ) * + 63 * - 21 + - 7 AS col0, - 35 AS col0
----
-100555
-35

query I rowsort
SELECT + ( - + 96 )
----
-96

query II rowsort
SELECT DISTINCT + 29 AS col0, - 20 * + - CASE + 62 WHEN + 19 THEN NULL WHEN - 47 THEN 84 END AS col1
----
29
NULL

query II rowsort
SELECT - + 93, - 52 + - - 73 AS col0
----
-93
21

query I rowsort
SELECT - ( - 1 ) * 65
----
65

query I rowsort
SELECT ALL - + 47 + ( - - 78 )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7629
SELECT ALL 11 AS col2, + ( - - COUNT( * ) )
----
11
1

skipif mysql # not compatible
query II rowsort label-7629
SELECT ALL 11 AS col2, + ( - - COUNT ( * ) )
----
11
1

query I rowsort
SELECT - - 70 col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7631
SELECT ALL + 5 + - - 48 - - - MAX( DISTINCT - + 28 ) DIV - + COALESCE ( - ( + CAST( NULL AS SIGNED ) ), + 57 + + 48 + - CAST( NULL AS SIGNED ) * + COUNT( * ), 56, 61 * SUM( ALL + 56 ) ) * - 28 + - 60 - - 6
----
-1

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL + 5 + - - 48 - - - MAX ( DISTINCT - + 28 ) / - + COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), + 57 + + 48 + - CAST ( NULL AS INTEGER ) * + COUNT ( * ), 56, 61 * SUM ( ALL + 56 ) ) * - 28 + - 60 - - 6
----
-1

query I rowsort
SELECT ALL COALESCE ( - 70, + + 71, - 75 ) col2
----
-70

query I rowsort
SELECT - + 25 + - - 20 + 75
----
70

query I rowsort
SELECT + 40 * - 11
----
-440

query II rowsort
SELECT + 80, + 77 + - + 4 AS col2
----
80
73

query I rowsort
SELECT + 67 + 35
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT + COUNT( * ) + + - 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-7637
SELECT + COUNT ( * ) + + - 10 AS col2
----
-9

query II rowsort
SELECT - ( - 73 ) AS col1, - 49 * 23 * + 65 AS col1
----
73
-73255

onlyif mysql # DIV for integer division: 
query II rowsort label-7639
SELECT + 31 DIV 46 AS col0, ( 43 ) * + 79 col2
----
0
3397

skipif mysql # not compatible
query II rowsort label-7639
SELECT + 31 / 46 AS col0, ( 43 ) * + 79 col2
----
0
3397

onlyif mysql # DIV for integer division: 
query I rowsort label-7640
SELECT ALL 37 DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL 37 / + + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT - NULLIF ( + ( + 50 ), + MAX( - 63 ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7641
SELECT - NULLIF ( + ( + 50 ), + MAX ( - 63 ) ) AS col1
----
-50

query II rowsort
SELECT ALL 19 * - + 11 AS col2, 62
----
-209
62

onlyif mysql # aggregate syntax: 
query III rowsort label-7643
SELECT + ( + COUNT( * ) ) AS col2, 92, 97 AS col2
----
1
92
97

skipif mysql # not compatible
query III rowsort label-7643
SELECT + ( + COUNT ( * ) ) AS col2, 92, 97 AS col2
----
1
92
97

query II rowsort
SELECT + ( - 32 ), - 31 AS col0
----
-32
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL 65 * - COUNT( ALL - 59 ) * + 50 AS col0
----
-3250

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL 65 * - COUNT ( ALL - 59 ) * + 50 AS col0
----
-3250

query I rowsort
SELECT + 77 * 11 * - 72
----
-60984

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7647
SELECT + CASE - 44 WHEN 69 THEN - + 28 + - 92 + + - 32 - + 20 END, - CAST( NULL AS SIGNED ) * 53 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7647
SELECT + CASE - 44 WHEN 69 THEN - + 28 + - 92 + + - 32 - + 20 END, - CAST ( NULL AS INTEGER ) * 53 AS col2
----
NULL
NULL

query II rowsort
SELECT - 47 * + 7 AS col1, - 78 col0
----
-329
-78

query I rowsort
SELECT 8 * - 32 + 25 * NULLIF ( - 59, - 66 )
----
-1731

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT + COUNT( * ) - - 70 * - - 16 AS col1
----
1121

skipif mysql # not compatible
query I rowsort label-7650
SELECT + COUNT ( * ) - - 70 * - - 16 AS col1
----
1121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7651
SELECT DISTINCT + ( ( - CAST( NULL AS SIGNED ) ) ), 64 AS col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-7651
SELECT DISTINCT + ( ( - CAST ( NULL AS INTEGER ) ) ), 64 AS col2
----
NULL
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL - + 55 * MIN( DISTINCT + 74 ) + + COALESCE ( - + 91, + + 1 + + + 73 ) + - COALESCE ( - 29, + 29 * - 96 ) AS col0
----
-4132

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL - + 55 * MIN ( DISTINCT + 74 ) + + COALESCE ( - + 91, + + 1 + + + 73 ) + - COALESCE ( - 29, + 29 * - 96 ) AS col0
----
-4132

query I rowsort
SELECT DISTINCT - + 75 * 55
----
-4125

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT + - NULLIF ( 40, + COALESCE ( 86, - 10 + + 17 + + 33 ) * + MIN( - 58 ) ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7654
SELECT + - NULLIF ( 40, + COALESCE ( 86, - 10 + + 17 + + 33 ) * + MIN ( - 58 ) ) AS col0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7655
SELECT + 4 * 14 * 91 DIV 87 + - 35 * 91 + + MAX( + 62 ) AS col1
----
-3065

skipif mysql # not compatible
query I rowsort label-7655
SELECT + 4 * 14 * 91 / 87 + - 35 * 91 + + MAX ( + 62 ) AS col1
----
-3065

onlyif mysql # DIV for integer division: 
query I rowsort label-7656
SELECT + - 12 * - 64 + 32 + - + 17 DIV - - 19 col2
----
800

skipif mysql # not compatible
query I rowsort label-7656
SELECT + - 12 * - 64 + 32 + - + 17 / - - 19 col2
----
800

query I rowsort
SELECT - 26 - + - CASE - 35 WHEN - 6 THEN NULL ELSE 30 END + + 19 AS col1
----
23

query II rowsort
SELECT - + 15 * - 39 AS col0, 37 - + 12
----
585
25

query I rowsort
SELECT ALL 33 * - 62 + - + 64 - + 81 - - 57 * + 32 + 95 AS col2
----
-272

onlyif mysql # DIV for integer division: 
query I rowsort label-7660
SELECT - CASE 49 WHEN + - 53 THEN NULL ELSE + COALESCE ( + 24, - 35 * - 91 + + 65 ) DIV 92 * + 97 END DIV 39 + 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7660
SELECT - CASE 49 WHEN + - 53 THEN NULL ELSE + COALESCE ( + 24, - 35 * - 91 + + 65 ) / 92 * + 97 END / 39 + 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL 16 * + 32 + + - MIN( DISTINCT - 90 ) AS col0
----
602

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL 16 * + 32 + + - MIN ( DISTINCT - 90 ) AS col0
----
602

onlyif mysql # aggregate syntax: 
query II rowsort label-7662
SELECT ALL + 65 * + + 59, - SUM( DISTINCT 96 ) AS col1
----
3835
-96

skipif mysql # not compatible
query II rowsort label-7662
SELECT ALL + 65 * + + 59, - SUM ( DISTINCT 96 ) AS col1
----
3835
-96

query I rowsort
SELECT - 1 * - + 58
----
58

query I rowsort
SELECT ALL - 61 * - 68 + 22 AS col2
----
4170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT ALL ( - 75 ) * 93 + - MIN( - 94 ) + CAST( NULL AS SIGNED ) * + 33 + - 1 * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL ( - 75 ) * 93 + - MIN ( - 94 ) + CAST ( NULL AS INTEGER ) * + 33 + - 1 * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - - 88 * 50 - 92 + 40
----
4348

query I rowsort
SELECT ALL - 49 * + - 69 * - 49 * - + 35 * + - NULLIF ( + 57, - 52 )
----
-330509655

query II rowsort
SELECT + 61 * 1 * + 14 * - 61 AS col1, 85 * + + 33 AS col0
----
-52094
2805

onlyif mysql # aggregate syntax: 
query II rowsort label-7669
SELECT ALL + 47 - - 27 + 60, - ( - - SUM( - 58 ) ) AS col2
----
134
58

skipif mysql # not compatible
query II rowsort label-7669
SELECT ALL + 47 - - 27 + 60, - ( - - SUM ( - 58 ) ) AS col2
----
134
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7670
SELECT 22 + - COALESCE ( + + 29, + + CAST( 15 AS SIGNED ) * + + 41 + - - 15, - + ( + 79 ) ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7670
SELECT 22 + - COALESCE ( + + 29, + + CAST ( 15 AS INTEGER ) * + + 41 + - - 15, - + ( + 79 ) ) AS col0
----
-7

query I rowsort
SELECT 29 * 74
----
2146

query I rowsort
SELECT DISTINCT + 75 * - 61 AS col1
----
-4575

query I rowsort
SELECT 12 + + ( 59 ) - 92 + - COALESCE ( - + 33, - 92 )
----
12

query I rowsort
SELECT 19 * - 17
----
-323

query I rowsort
SELECT 22 + - 57
----
-35

query II rowsort
SELECT 57 - + + 59 - + - 24 AS col2, - 6
----
22
-6

query I rowsort
SELECT 28 * - 18
----
-504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7678
SELECT ( - + 93 ) DIV 55 - - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7678
SELECT ( - + 93 ) / 55 - - - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT ALL 12 + + - 4 - - - 74 * - + 60 * - + 2 * + COUNT( * ) col0
----
-8872

skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL 12 + + - 4 - - - 74 * - + 60 * - + 2 * + COUNT ( * ) col0
----
-8872

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7680
SELECT 22 DIV 46 * + COUNT( * ) + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7680
SELECT 22 / 46 * + COUNT ( * ) + + COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7681
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) / COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7682
SELECT DISTINCT - MIN( + + 85 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT - MIN ( + + 85 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 64 * 34 AS col0
----
2176

query I rowsort
SELECT ALL 76 + + 52
----
128

query I rowsort
SELECT + COALESCE ( 77, - 72 * - 40 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT 99 * - + COUNT( * ) * + - 81 + + CASE 72 WHEN 41 / + - 27 THEN NULL WHEN + 4 + - 77 + + - 65 THEN - COUNT( * ) END + + + 34 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT 99 * - + COUNT ( * ) * + - 81 + + CASE 72 WHEN 41 / + - 27 THEN NULL WHEN + 4 + - 77 + + - 65 THEN - COUNT ( * ) END + + + 34 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7687
SELECT ALL - + CASE - 86 WHEN - 6 * + 49 + - - CAST( - 80 AS SIGNED ) * + 15 - + 89 + 19 + 19 THEN ( - - 23 ) DIV 52 WHEN - ( - - 35 ) + - 68 THEN NULL ELSE + ( + 46 ) - - - COALESCE ( - - ( + 45 ), - 16 * - + 77, + - COUNT( * ) - 91 ) END col2
----
-1

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - + CASE - 86 WHEN - 6 * + 49 + - - CAST ( - 80 AS INTEGER ) * + 15 - + 89 + 19 + 19 THEN ( - - 23 ) / 52 WHEN - ( - - 35 ) + - 68 THEN NULL ELSE + ( + 46 ) - - - COALESCE ( - - ( + 45 ), - 16 * - + 77, + - COUNT ( * ) - 91 ) END col2
----
-1

query II rowsort
SELECT + 95 AS col2, 62
----
95
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7689
SELECT 60 * - COUNT( * ) + 48 - CAST( NULL AS DECIMAL ) - 12 / 20 / + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT 60 * - COUNT ( * ) + 48 - CAST ( NULL AS REAL ) - 12 / 20 / + - 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7690
SELECT + + 7, 49 * + MIN( - 9 ) AS col0
----
7
-441

skipif mysql # not compatible
query II rowsort label-7690
SELECT + + 7, 49 * + MIN ( - 9 ) AS col0
----
7
-441

onlyif mysql # aggregate syntax: 
query II rowsort label-7691
SELECT ALL MAX( DISTINCT + 5 ) + 93, 64 AS col1
----
98
64

skipif mysql # not compatible
query II rowsort label-7691
SELECT ALL MAX ( DISTINCT + 5 ) + 93, 64 AS col1
----
98
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7692
SELECT - 85, + 28 + - COUNT( * ) * CAST( + + 18 AS SIGNED ) AS col2
----
-85
10

skipif mysql # not compatible
query II rowsort label-7692
SELECT - 85, + 28 + - COUNT ( * ) * CAST ( + + 18 AS INTEGER ) AS col2
----
-85
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7693
SELECT + + CAST( NULL AS SIGNED ) * + - COUNT( DISTINCT - 97 ) * + 58 + + 49 / - 74 * - - 89 + + 9 + ( - 14 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7693
SELECT + + CAST ( NULL AS INTEGER ) * + - COUNT ( DISTINCT - 97 ) * + 58 + + 49 / - 74 * - - 89 + + 9 + ( - 14 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 78 + + 67 * + 39 * - 3 * + 86 AS col0
----
-674076

query II rowsort
SELECT + + 33 AS col0, 38
----
33
38

query II rowsort
SELECT - 3, 58 AS col0
----
-3
58

query I rowsort
SELECT ALL + 62 * + 87
----
5394

query I rowsort
SELECT 89 + - 89 + 59 * 21 * - + 48 * 78
----
-4638816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7699
SELECT 22 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7699
SELECT 22 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT 48 + + CAST( NULL AS SIGNED ) * 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7700
SELECT 48 + + CAST ( NULL AS INTEGER ) * 67
----
NULL

query I rowsort
SELECT 22 * + 74 AS col1
----
1628

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT 57 + + + 17 * - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-7702
SELECT 57 + + + 17 * - COUNT ( * )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 45 AS col0
----
NULL

query I rowsort
SELECT ALL + 17 * + - 50
----
-850

query II rowsort
SELECT 54 + + - 51 AS col0, - 16 + + + 64
----
3
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7706
SELECT DISTINCT + COUNT( * ) + - - CAST( NULL AS SIGNED ) / 64 + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) / 64 + 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT SUM( ALL - CAST( - 98 AS SIGNED ) ) * 32 AS col2
----
3136

skipif mysql # not compatible
query I rowsort label-7707
SELECT SUM ( ALL - CAST ( - 98 AS INTEGER ) ) * 32 AS col2
----
3136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7708
SELECT ALL 60 * - NULLIF ( + COUNT( * ), + ( - MIN( - - 75 ) ) ) * MIN( DISTINCT + CASE - 47 WHEN 22 * - 86 * + + 98 * + - 98 - 72 THEN + - CASE + - 5 WHEN - 1 THEN + 75 ELSE NULL END WHEN + - 46 THEN NULL ELSE 86 + 74 + CAST( NULL AS SIGNED ) + - 26 + 52 * - 56 + + 42 END ) * + 25 + + ( - COUNT( * ) ) AS col0, 75 + 96 AS col0
----
NULL
171

skipif mysql # not compatible
query II rowsort label-7708
SELECT ALL 60 * - NULLIF ( + COUNT ( * ), + ( - MIN ( - - 75 ) ) ) * MIN ( DISTINCT + CASE - 47 WHEN 22 * - 86 * + + 98 * + - 98 - 72 THEN + - CASE + - 5 WHEN - 1 THEN + 75 ELSE NULL END WHEN + - 46 THEN NULL ELSE 86 + 74 + CAST ( NULL AS INTEGER ) + - 26 + 52 * - 56 + + 42 END ) * + 25 + + ( - COUNT ( * ) ) AS col0, 75 + 96 AS col0
----
NULL
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT DISTINCT 28 * + + 88 + + COUNT( * )
----
2465

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT 28 * + + 88 + + COUNT ( * )
----
2465

query I rowsort
SELECT ALL + 18 * + 99 AS col1
----
1782

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT 44 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-7711
SELECT 44 / + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT 27 * - 32 * + 80 - + + 90 + + 27 * + COALESCE ( - 90, + 79 + 33 + + 24 * 44 * + 95 ) - + 40 * - - CASE 78 WHEN + + 14 * + 71 + + + 21 * COALESCE ( 11, 94 * + COUNT( * ) ) / - + 78 THEN + COALESCE ( 28, + 71 ) ELSE NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT 27 * - 32 * + 80 - + + 90 + + 27 * + COALESCE ( - 90, + 79 + 33 + + 24 * 44 * + 95 ) - + 40 * - - CASE 78 WHEN + + 14 * + 71 + + + 21 * COALESCE ( 11, 94 * + COUNT ( * ) ) / - + 78 THEN + COALESCE ( 28, + 71 ) ELSE NULL END * - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7713
SELECT + 25 DIV + - ( + - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-7713
SELECT + 25 / + - ( + - 20 )
----
1

query I rowsort
SELECT ( - 25 ) * - - 19 AS col0
----
-475

query I rowsort
SELECT 76 + + 96 - 64 col2
----
108

query I rowsort
SELECT + CASE - 47 WHEN - 34 / + 42 THEN + 21 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7717
SELECT COUNT( * ) - - 51 + CAST( NULL AS SIGNED ) + - + 45 - - + 61 * - COUNT( * ) + + 88 col1, 59 AS col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-7717
SELECT COUNT ( * ) - - 51 + CAST ( NULL AS INTEGER ) + - + 45 - - + 61 * - COUNT ( * ) + + 88 col1, 59 AS col1
----
NULL
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7718
SELECT ALL + - 86 - 47 + COUNT( * ) DIV - 48 * + 78
----
-133

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + - 86 - 47 + COUNT ( * ) / - 48 * + 78
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT DISTINCT 62 * - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT 62 * - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL - + MIN( DISTINCT - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL - + MIN ( DISTINCT - 5 )
----
5

query I rowsort
SELECT + 57 * - - 14 * - 27 + - - ( 14 )
----
-21532

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ( + COUNT( * ) ) * - 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-7722
SELECT ( + COUNT ( * ) ) * - 82 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7723
SELECT ALL COUNT( DISTINCT NULLIF ( + 48, - 50 ) ) * + CAST( - - 32 AS SIGNED ) - - 63 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL COUNT ( DISTINCT NULLIF ( + 48, - 50 ) ) * + CAST ( - - 32 AS INTEGER ) - - 63 AS col1
----
95

query I rowsort
SELECT + + CASE WHEN NOT 75 > NULL THEN + - 59 WHEN NULL IS NOT NULL THEN NULL END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7725
SELECT + CAST( ( + 73 ) AS SIGNED ) * - + COUNT( * ), 23 - 61 + - - COALESCE ( SUM( ALL - 50 ), + SUM( DISTINCT + ( + 83 ) ) * + CAST( + + 87 AS SIGNED ) + - 99, 68 ) AS col1
----
-73
-88

skipif mysql # not compatible
query II rowsort label-7725
SELECT + CAST ( ( + 73 ) AS INTEGER ) * - + COUNT ( * ), 23 - 61 + - - COALESCE ( SUM ( ALL - 50 ), + SUM ( DISTINCT + ( + 83 ) ) * + CAST ( + + 87 AS INTEGER ) + - 99, 68 ) AS col1
----
-73
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT ALL 46 * - 68 + + 44 + + MAX( - + ( 38 ) ) + - + 24
----
-3146

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL 46 * - 68 + + 44 + + MAX ( - + ( 38 ) ) + - + 24
----
-3146

onlyif mysql # aggregate syntax: 
query II rowsort label-7727
SELECT ALL 39 AS col2, + 37 * 63 + + - COUNT( * )
----
39
2330

skipif mysql # not compatible
query II rowsort label-7727
SELECT ALL 39 AS col2, + 37 * 63 + + - COUNT ( * )
----
39
2330

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT + COUNT( ALL - 52 ) * 28 * + 45
----
1260

skipif mysql # not compatible
query I rowsort label-7728
SELECT + COUNT ( ALL - 52 ) * 28 * + 45
----
1260

query I rowsort
SELECT ALL + 21 * - ( + 87 )
----
-1827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + 91 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7731
SELECT ALL 47 col2, CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
47
-1

skipif mysql # not compatible
query II rowsort label-7731
SELECT ALL 47 col2, CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
47
-1

query I rowsort
SELECT + 72 + ( + 64 ) AS col2
----
136

query I rowsort
SELECT ALL 42 * 7
----
294

query I rowsort
SELECT + 48 * - 69
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT - 54 * - - SUM( DISTINCT + 56 ) * - + COUNT( ALL - 88 ) + - - 36 * - 19 + - + 11 + 69 * 33
----
4606

skipif mysql # not compatible
query I rowsort label-7735
SELECT - 54 * - - SUM ( DISTINCT + 56 ) * - + COUNT ( ALL - 88 ) + - - 36 * - 19 + - + 11 + 69 * 33
----
4606

query I rowsort
SELECT + 24 * 98 AS col2
----
2352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT ALL + 58 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL + 58 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT + 42 - COALESCE ( - - 35, - 51 * + COUNT( * ) + CASE - ( + + 10 ) WHEN + ( + - 12 ) THEN NULL WHEN - 47 THEN + - MAX( ALL - 42 ) ELSE NULL END, 10 + - 50 )
----
7

skipif mysql # not compatible
query I rowsort label-7738
SELECT + 42 - COALESCE ( - - 35, - 51 * + COUNT ( * ) + CASE - ( + + 10 ) WHEN + ( + - 12 ) THEN NULL WHEN - 47 THEN + - MAX ( ALL - 42 ) ELSE NULL END, 10 + - 50 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT DISTINCT CASE - - 84 WHEN - 48 * - 71 / + 5 + + + COALESCE ( 73, - ( - COUNT( * ) ), + - 96 ) THEN - - COUNT( * ) + + 30 WHEN + - 59 THEN + ( + CAST( NULL AS SIGNED ) ) + + 89 WHEN + - 91 + 8 THEN NULL END + - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT CASE - - 84 WHEN - 48 * - 71 / + 5 + + + COALESCE ( 73, - ( - COUNT ( * ) ), + - 96 ) THEN - - COUNT ( * ) + + 30 WHEN + - 59 THEN + ( + CAST ( NULL AS INTEGER ) ) + + 89 WHEN + - 91 + 8 THEN NULL END + - 63
----
NULL

query I rowsort
SELECT ALL ( + 28 ) + - 66
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-7741
SELECT - 70 DIV ( - - 27 ) * + 24
----
-48

skipif mysql # not compatible
query I rowsort label-7741
SELECT - 70 / ( - - 27 ) * + 24
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7742
SELECT ALL - COUNT( 94 ) + 43 DIV 42 col2
----
0

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - COUNT ( 94 ) + 43 / 42 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7743
SELECT 18, CASE 88 WHEN + 21 THEN NULL WHEN COUNT( * ) THEN NULL WHEN 59 THEN NULL ELSE + 83 - + + MIN( DISTINCT + 80 ) END * + 72 + - 17 AS col0
----
18
199

skipif mysql # not compatible
query II rowsort label-7743
SELECT 18, CASE 88 WHEN + 21 THEN NULL WHEN COUNT ( * ) THEN NULL WHEN 59 THEN NULL ELSE + 83 - + + MIN ( DISTINCT + 80 ) END * + 72 + - 17 AS col0
----
18
199

query I rowsort
SELECT ALL + 31 + - 22 * + 7 col1
----
-123

query I rowsort
SELECT - ( + 97 ) - + - 71 - + COALESCE ( + - ( + 82 ), + + 88 + + 49 * 9 * 3 + + 6 ) + + ( + 19 ) - + - 34 + - 76 * + 55 * - - 78 AS col2
----
-325931

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT - COUNT( * ) - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7746
SELECT - COUNT ( * ) - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ALL - 59 + - + ( + + 4 ) AS col1
----
-63

query I rowsort
SELECT ALL 38 * - 12 + 90
----
-366

query I rowsort
SELECT DISTINCT + - 6 col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT DISTINCT 97 * + - COUNT( * ) - - ( 26 ) col0
----
-71

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT 97 * + - COUNT ( * ) - - ( 26 ) col0
----
-71

query I rowsort
SELECT ALL + ( + - 84 ) AS col1
----
-84

query I rowsort
SELECT ALL + - ( 14 )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-7753
SELECT ALL + - COUNT( * ) AS col1, - COUNT( * ) * + 75 * - + 21
----
-1
1575

skipif mysql # not compatible
query II rowsort label-7753
SELECT ALL + - COUNT ( * ) AS col1, - COUNT ( * ) * + 75 * - + 21
----
-1
1575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7754
SELECT COALESCE ( - + 66, 80, + 29 * - - MAX( 54 ) + + NULLIF ( - 77, - + 76 ) - + CAST( NULL AS SIGNED ) ) AS col0, - 66
----
-66
-66

skipif mysql # not compatible
query II rowsort label-7754
SELECT COALESCE ( - + 66, 80, + 29 * - - MAX ( 54 ) + + NULLIF ( - 77, - + 76 ) - + CAST ( NULL AS INTEGER ) ) AS col0, - 66
----
-66
-66

query I rowsort
SELECT NULLIF ( + COALESCE ( ( + 62 ), - - NULLIF ( - ( + 58 ), - 18 ) ), + 61 / + 77 ) AS col2
----
62

query I rowsort
SELECT ALL + + 73 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7757
SELECT ALL + - CASE NULLIF ( + COUNT( * ), - - 8 ) WHEN - - 93 * + 67 / - + CASE 32 WHEN 65 / - - 86 * - + 96 * + + 70 - 57 + + 71 THEN + 77 * - 85 ELSE - - 52 + 5 END - - COUNT( * ) THEN NULL WHEN - 33 + + 27 THEN + CAST( NULL AS SIGNED ) * + 53 * + - 18 + AVG ( DISTINCT 94 ) + + - NULLIF ( - 89, + 7 * + COALESCE ( ( - 24 ), + 88 * 73 ) + - 44 - - 87 * + - 57 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL + - CASE NULLIF ( + COUNT ( * ), - - 8 ) WHEN - - 93 * + 67 / - + CASE 32 WHEN 65 / - - 86 * - + 96 * + + 70 - 57 + + 71 THEN + 77 * - 85 ELSE - - 52 + 5 END - - COUNT ( * ) THEN NULL WHEN - 33 + + 27 THEN + CAST ( NULL AS INTEGER ) * + 53 * + - 18 + AVG ( DISTINCT 94 ) + + - NULLIF ( - 89, + 7 * + COALESCE ( ( - 24 ), + 88 * 73 ) + - 44 - - 87 * + - 57 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7758
SELECT ALL + + COALESCE ( COUNT( * ), + 28 + + 76, - 27 + - + 11 - - 98 + 93 - + CAST( 72 AS SIGNED ) DIV - 41 * + 88 + - 3 * - 71 * + NULLIF ( - 51, - COUNT( * ) * COUNT( DISTINCT 92 ) + - 76 ) * + 60 + + + ( NULLIF ( 45, - + 72 * 18 + - 8 + + COUNT( * ) ) ) + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL + + COALESCE ( COUNT ( * ), + 28 + + 76, - 27 + - + 11 - - 98 + 93 - + CAST ( 72 AS INTEGER ) / - 41 * + 88 + - 3 * - 71 * + NULLIF ( - 51, - COUNT ( * ) * COUNT ( DISTINCT 92 ) + - 76 ) * + 60 + + + ( NULLIF ( 45, - + 72 * 18 + - 8 + + COUNT ( * ) ) ) + 0 )
----
1

query II rowsort
SELECT + - 88 col1, 13
----
-88
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT - CASE + - 41 WHEN SUM( DISTINCT - 80 ) THEN + + 47 WHEN + SUM( - 68 ) THEN NULL ELSE NULL END * + COUNT( * ) + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT - CASE + - 41 WHEN SUM ( DISTINCT - 80 ) THEN + + 47 WHEN + SUM ( - 68 ) THEN NULL ELSE NULL END * + COUNT ( * ) + 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL + - SUM( - + ( + 52 ) )
----
52

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL + - SUM ( - + ( + 52 ) )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7762
SELECT ALL - + 79 DIV + + 68 * - COUNT( DISTINCT + - 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - + 79 / + + 68 * - COUNT ( DISTINCT + - 34 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT DISTINCT + - CAST( + 56 AS SIGNED ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT + - CAST ( + 56 AS INTEGER ) AS col1
----
-56

query I rowsort
SELECT 52 * 7 - 71 * ( + 81 ) col1
----
-5387

query I rowsort
SELECT - ( + 47 ) AS col0
----
-47

query I rowsort
SELECT + 54 + - 49
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT 62 * + 17 * + 48 + + ( - 8 ) + + 63 * + COUNT( * ) AS col2
----
50647

skipif mysql # not compatible
query I rowsort label-7767
SELECT 62 * + 17 * + 48 + + ( - 8 ) + + 63 * + COUNT ( * ) AS col2
----
50647

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7768
SELECT + 42 + - 27 + - 14 / + 38 + - 36 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7768
SELECT + 42 + - 27 + - 14 / + 38 + - 36 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7769
SELECT ALL CAST( + 92 AS SIGNED ) AS col0, 62 * + 8
----
92
496

skipif mysql # not compatible
query II rowsort label-7769
SELECT ALL CAST ( + 92 AS INTEGER ) AS col0, 62 * + 8
----
92
496

query II rowsort
SELECT DISTINCT 17 AS col1, - 43
----
17
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT ALL + COUNT( * ) + - 85 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL + COUNT ( * ) + - 85 AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7772
SELECT + CASE + - 80 WHEN - - AVG ( DISTINCT 99 ) * + - 61 THEN MAX( DISTINCT - COALESCE ( + + 67, - + CAST( - 21 AS SIGNED ) ) ) / + + NULLIF ( 57, - COUNT( * ) * + - 21 + 35 ) * + 0 - + + COUNT( * ) / 85 WHEN - 93 - 71 + 30 + + 84 + ( + - 1 ) * + 22 * COALESCE ( + COUNT( * ), - - 42 * - 68 / + COUNT( * ) + - 10 * - + 41 + + AVG ( DISTINCT - 18 ) * 59, 4 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) THEN NULL END + - CAST( 74 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7772
SELECT + CASE + - 80 WHEN - - AVG ( DISTINCT 99 ) * + - 61 THEN MAX ( DISTINCT - COALESCE ( + + 67, - + CAST ( - 21 AS INTEGER ) ) ) / + + NULLIF ( 57, - COUNT ( * ) * + - 21 + 35 ) * + 0 - + + COUNT ( * ) / 85 WHEN - 93 - 71 + 30 + + 84 + ( + - 1 ) * + 22 * COALESCE ( + COUNT ( * ), - - 42 * - 68 / + COUNT ( * ) + - 10 * - + 41 + + AVG ( DISTINCT - 18 ) * 59, 4 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN NULL END + - CAST ( 74 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT + 59 DIV - - 5
----
11

skipif mysql # not compatible
query I rowsort label-7773
SELECT + 59 / - - 5
----
11

query I rowsort
SELECT + 64 + + 14
----
78

query I rowsort
SELECT - ( - - ( - 74 ) ) AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7776
SELECT - CAST( NULL AS SIGNED ) + + - CAST( NULL AS DECIMAL ) + + - ( - 49 ) / 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7776
SELECT - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS REAL ) + + - ( - 49 ) / 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL 46 + - - MAX( ALL 91 )
----
137

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL 46 + - - MAX ( ALL 91 )
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT DISTINCT 5 * - NULLIF ( + - CAST( NULL AS SIGNED ), + 25 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT 5 * - NULLIF ( + - CAST ( NULL AS INTEGER ), + 25 ) AS col1
----
NULL

query I rowsort
SELECT - 17 + + 19 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7780
SELECT ALL 99 - + - 99 DIV - 23
----
95

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL 99 - + - 99 / - 23
----
95

query I rowsort
SELECT - - NULLIF ( 81, + 31 ) AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7782
SELECT ALL COUNT( * ) - - ( + 47 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL COUNT ( * ) - - ( + 47 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT + 49 * - 19 * + COUNT( * )
----
-931

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT + 49 * - 19 * + COUNT ( * )
----
-931

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7784
SELECT ALL + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL + - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT + 96 - MIN( + 41 )
----
55

skipif mysql # not compatible
query I rowsort label-7785
SELECT + 96 - MIN ( + 41 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT + SUM( + 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7786
SELECT + SUM ( + 94 ) AS col2
----
94

query I rowsort
SELECT + - 95 * 71 + + - 6 - + 18
----
-6769

onlyif mysql # aggregate syntax: 
query II rowsort label-7788
SELECT + ( + 88 ), - SUM( 89 ) * + + 16 AS col0
----
88
-1424

skipif mysql # not compatible
query II rowsort label-7788
SELECT + ( + 88 ), - SUM ( 89 ) * + + 16 AS col0
----
88
-1424

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT - - COALESCE ( - 98, + COUNT( * ) + - + 23 + + 21 * + 42, + MAX( + 55 ) ) + - + 42 AS col1
----
-140

skipif mysql # not compatible
query I rowsort label-7789
SELECT - - COALESCE ( - 98, + COUNT ( * ) + - + 23 + + 21 * + 42, + MAX ( + 55 ) ) + - + 42 AS col1
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7790
SELECT CASE + 0 WHEN + 3 THEN - + 3 * + MIN( DISTINCT 7 ) ELSE - 19 END * + 2 + + 90 DIV + MAX( 18 ) + - - MAX( 13 )
----
-20

skipif mysql # not compatible
query I rowsort label-7790
SELECT CASE + 0 WHEN + 3 THEN - + 3 * + MIN ( DISTINCT 7 ) ELSE - 19 END * + 2 + + 90 / + MAX ( 18 ) + - - MAX ( 13 )
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7791
SELECT + 1 * - - 87 + CAST( NULL AS DECIMAL ) - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT + 1 * - - 87 + CAST ( NULL AS REAL ) - 58
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 62 ) * 21 * + 38
----
49476

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL - - SUM( + + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - - SUM ( + + 48 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7794
SELECT + 44, 8 + + AVG ( CAST( NULL AS SIGNED ) ) * - + 62 - - NULLIF ( COUNT( * ), 12 - 45 ) AS col0
----
44
NULL

skipif mysql # not compatible
query II rowsort label-7794
SELECT + 44, 8 + + AVG ( CAST ( NULL AS INTEGER ) ) * - + 62 - - NULLIF ( COUNT ( * ), 12 - 45 ) AS col0
----
44
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7795
SELECT - CAST( + 24 AS SIGNED ) * 69 * NULLIF ( 24, - 55 ) AS col0, 69 + - 12 * + 54 AS col0
----
-39744
-579

skipif mysql # not compatible
query II rowsort label-7795
SELECT - CAST ( + 24 AS INTEGER ) * 69 * NULLIF ( 24, - 55 ) AS col0, 69 + - 12 * + 54 AS col0
----
-39744
-579

query I rowsort
SELECT DISTINCT - 83 * - - 98 * + 78
----
-634452

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT DISTINCT - SUM( 27 ) * 12 col2
----
-324

skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT - SUM ( 27 ) * 12 col2
----
-324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT ALL + + 14 + + ( + ( - CAST( NULL AS SIGNED ) ) ) * - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL + + 14 + + ( + ( - CAST ( NULL AS INTEGER ) ) ) * - 38
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7799
SELECT ALL - 39 * - CAST( NULL AS SIGNED ) AS col0, 78 * CASE 74 WHEN - 10 THEN 68 WHEN 72 * 0 * - 81 + - 27 THEN NULL ELSE - + 25 + + - MAX( 33 ) END
----
NULL
-4524

skipif mysql # not compatible
query II rowsort label-7799
SELECT ALL - 39 * - CAST ( NULL AS INTEGER ) AS col0, 78 * CASE 74 WHEN - 10 THEN 68 WHEN 72 * 0 * - 81 + - 27 THEN NULL ELSE - + 25 + + - MAX ( 33 ) END
----
NULL
-4524

query I rowsort
SELECT + 34 * ( - 81 )
----
-2754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7801
SELECT DISTINCT - ( - CASE - AVG ( + 42 ) WHEN 24 THEN + + CASE 31 WHEN + 20 * - 86 * 19 * - 93 + 58 THEN - + 54 END - - 21 * SUM( - ( + - 84 ) ) WHEN - COUNT( * ) THEN NULL END ) + - COUNT( * ) * + 9 * + 71 * - NULLIF ( 87, - - 94 * CAST( NULL AS SIGNED ) * + 17 ) + + - 86 / - - 18 * - 93 * - 39 + CAST( - 3 AS SIGNED ) + + COUNT( ALL - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT DISTINCT - ( - CASE - AVG ( + 42 ) WHEN 24 THEN + + CASE 31 WHEN + 20 * - 86 * 19 * - 93 + 58 THEN - + 54 END - - 21 * SUM ( - ( + - 84 ) ) WHEN - COUNT ( * ) THEN NULL END ) + - COUNT ( * ) * + 9 * + 71 * - NULLIF ( 87, - - 94 * CAST ( NULL AS INTEGER ) * + 17 ) + + - 86 / - - 18 * - 93 * - 39 + CAST ( - 3 AS INTEGER ) + + COUNT ( ALL - 22 )
----
NULL

query I rowsort
SELECT 38 * 32 * - 38
----
-46208

onlyif mysql # DIV for integer division: 
query II rowsort label-7803
SELECT DISTINCT + 85 DIV 67 AS col1, 45 * + 50 AS col1
----
1
2250

skipif mysql # not compatible
query II rowsort label-7803
SELECT DISTINCT + 85 / 67 AS col1, 45 * + 50 AS col1
----
1
2250

onlyif mysql # DIV for integer division: 
query II rowsort label-7804
SELECT ALL 6 + + + 74 AS col2, 48 DIV + 34 AS col1
----
80
1

skipif mysql # not compatible
query II rowsort label-7804
SELECT ALL 6 + + + 74 AS col2, 48 / + 34 AS col1
----
80
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7805
SELECT DISTINCT + 85 DIV + + 12 AS col2, - MAX( DISTINCT + 10 )
----
7
-10

skipif mysql # not compatible
query II rowsort label-7805
SELECT DISTINCT + 85 / + + 12 AS col2, - MAX ( DISTINCT + 10 )
----
7
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT 37 + + 48 DIV 47 * + 72 * - ( + - 7 ) col2
----
541

skipif mysql # not compatible
query I rowsort label-7806
SELECT 37 + + 48 / 47 * + 72 * - ( + - 7 ) col2
----
541

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT 47 + + + 88 + - COALESCE ( + COUNT( * ), - 26 ) AS col1
----
134

skipif mysql # not compatible
query I rowsort label-7807
SELECT 47 + + + 88 + - COALESCE ( + COUNT ( * ), - 26 ) AS col1
----
134

query I rowsort
SELECT ALL 70 + 45 * + 60
----
2770

query I rowsort
SELECT 56 + - + ( - 97 ) AS col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-7810
SELECT ALL 47 - - 37 + - 6 DIV - 29
----
84

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL 47 - - 37 + - 6 / - 29
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-7811
SELECT 63 * + + ( - 7 ) * + COUNT( * ) + - + 31 AS col2, - 5 * - - 37
----
-472
-185

skipif mysql # not compatible
query II rowsort label-7811
SELECT 63 * + + ( - 7 ) * + COUNT ( * ) + - + 31 AS col2, - 5 * - - 37
----
-472
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT DISTINCT - 14 - CASE - CAST( NULL AS SIGNED ) WHEN + ( COUNT( * ) ) THEN NULL WHEN 18 * - 15 + - 52 + 31 * - + 34 + + SUM( + 47 ) + + 2 THEN NULL ELSE - - COUNT( * ) * + 83 * 54 * + 98 + + 69 END
----
-439319

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT - 14 - CASE - CAST ( NULL AS INTEGER ) WHEN + ( COUNT ( * ) ) THEN NULL WHEN 18 * - 15 + - 52 + 31 * - + 34 + + SUM ( + 47 ) + + 2 THEN NULL ELSE - - COUNT ( * ) * + 83 * 54 * + 98 + + 69 END
----
-439319

onlyif mysql # aggregate syntax: 
query II rowsort label-7813
SELECT 82 + + ( + 62 ), COUNT( * ) AS col2
----
144
1

skipif mysql # not compatible
query II rowsort label-7813
SELECT 82 + + ( + 62 ), COUNT ( * ) AS col2
----
144
1

query I rowsort
SELECT ALL - 96 - + + ( + 42 )
----
-138

query I rowsort
SELECT 88 * 98 * 45
----
388080

query II rowsort
SELECT - 27 + + 33 AS col1, ( + 0 )
----
6
0

query I rowsort
SELECT ALL 66 - - 3 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT 41 * - - 35 * - 54 * - ( + + MAX( ALL + + 59 ) ) * 75 + + 8 AS col2
----
342893258

skipif mysql # not compatible
query I rowsort label-7818
SELECT 41 * - - 35 * - 54 * - ( + + MAX ( ALL + + 59 ) ) * 75 + + 8 AS col2
----
342893258

onlyif mysql # DIV for integer division: 
query I rowsort label-7819
SELECT + 93 + - ( + 33 ) DIV - 54 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7819
SELECT + 93 + - ( + 33 ) / - 54 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT COUNT( * ) - - COUNT( * ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7820
SELECT COUNT ( * ) - - COUNT ( * ) * COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT ALL + NULLIF ( - 2, - SUM( + - 53 ) * + 23 * - 94 + 45 ) AS col1, 43
----
-2
43

skipif mysql # not compatible
query II rowsort label-7821
SELECT ALL + NULLIF ( - 2, - SUM ( + - 53 ) * + 23 * - 94 + 45 ) AS col1, 43
----
-2
43

query I rowsort
SELECT - + ( 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7823
SELECT NULLIF ( CASE + 32 WHEN 78 * + + 18 * - + 36 * + - 2 THEN - 58 ELSE + 67 DIV - COUNT( * ) + + 29 - 25 END, NULLIF ( 89, - ( - 79 ) * 79 ) ) + - 74 * + 88
----
-6575

skipif mysql # not compatible
query I rowsort label-7823
SELECT NULLIF ( CASE + 32 WHEN 78 * + + 18 * - + 36 * + - 2 THEN - 58 ELSE + 67 / - COUNT ( * ) + + 29 - 25 END, NULLIF ( 89, - ( - 79 ) * 79 ) ) + - 74 * + 88
----
-6575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7824
SELECT + CASE + COALESCE ( 99, - 65 ) WHEN - COALESCE ( + - COUNT( * ), + 22 ) THEN + COUNT( * ) * 44 ELSE NULL END + NULLIF ( 85, + - COUNT( * ) ) + - ( - - COUNT( * ) ) / - + CAST( NULL AS SIGNED ) / - 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT + CASE + COALESCE ( 99, - 65 ) WHEN - COALESCE ( + - COUNT ( * ), + 22 ) THEN + COUNT ( * ) * 44 ELSE NULL END + NULLIF ( 85, + - COUNT ( * ) ) + - ( - - COUNT ( * ) ) / - + CAST ( NULL AS INTEGER ) / - 62 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7825
SELECT - 16 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-7825
SELECT - 16 / + - 94
----
0

query I rowsort
SELECT ALL 73 + ( + - 58 ) col0
----
15

query I rowsort
SELECT ALL 13 * 84 - + - 87
----
1179

query I rowsort
SELECT DISTINCT - 76 * 36 col1
----
-2736

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL - COUNT( DISTINCT - - ( - 77 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - COUNT ( DISTINCT - - ( - 77 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT CAST( + - 55 AS SIGNED ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-7830
SELECT CAST ( + - 55 AS INTEGER ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT ALL - 43 + - NULLIF ( - COUNT( * ), - 10 * - - 47 * - 67 )
----
-42

skipif mysql # not compatible
query I rowsort label-7831
SELECT ALL - 43 + - NULLIF ( - COUNT ( * ), - 10 * - - 47 * - 67 )
----
-42

query I rowsort
SELECT ALL 40 + - + 47 AS col2
----
-7

query I rowsort
SELECT + 10 * - + 4 * + 59 * + 53 * + - COALESCE ( + - 34, - 60 ) AS col0
----
-4252720

query I rowsort
SELECT DISTINCT 58 + - 32 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7835
SELECT - 2 * + - COUNT( * ) * + 33 + - CAST( + 7 AS SIGNED ) + + 6 + + + ( - ( - - 93 ) ) + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-7835
SELECT - 2 * + - COUNT ( * ) * + 33 + - CAST ( + 7 AS INTEGER ) + + 6 + + + ( - ( - - 93 ) ) + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7836
SELECT ALL + 71 + - 93 * - + ( - 4 ) AS col0, NULLIF ( 14, - + 67 + + 43 + + 34 ) + + + COUNT( * ) DIV + - 37 AS col1
----
-301
14

skipif mysql # not compatible
query II rowsort label-7836
SELECT ALL + 71 + - 93 * - + ( - 4 ) AS col0, NULLIF ( 14, - + 67 + + 43 + + 34 ) + + + COUNT ( * ) / + - 37 AS col1
----
-301
14

query II rowsort
SELECT + 89 AS col0, 52 - + 96 + + 56 col1
----
89
12

query I rowsort
SELECT ALL + 62 + 7
----
69

query I rowsort
SELECT ALL - 99 * - 39 col0
----
3861

query I rowsort
SELECT 48 + + 69 AS col1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT ALL COUNT( * ) + - 61
----
-60

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL COUNT ( * ) + - 61
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7842
SELECT ALL - COUNT( ALL + 77 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL - COUNT ( ALL + 77 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7843
SELECT DISTINCT NULLIF ( - - 5, MAX( DISTINCT - 8 ) ) * + - 75 + + 13 * 43 DIV 48 AS col0
----
-364

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT NULLIF ( - - 5, MAX ( DISTINCT - 8 ) ) * + - 75 + + 13 * 43 / 48 AS col0
----
-364

query I rowsort
SELECT ALL - 26 + 14
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7845
SELECT COALESCE ( + - NULLIF ( - 25, 57 + + ( - 85 ) DIV - + COUNT( * ) ), + 71 ) DIV 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7845
SELECT COALESCE ( + - NULLIF ( - 25, 57 + + ( - 85 ) / - + COUNT ( * ) ), + 71 ) / 81 AS col1
----
0

query I rowsort
SELECT DISTINCT + 81 * - ( - 65 ) AS col0
----
5265

query I rowsort
SELECT ALL - 27 - 94 - + - 93 * - - 77 * - 43 * + 57 * + - 94 - - 70
----
1649851383

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL MAX( 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL MAX ( 81 ) AS col1
----
81

query II rowsort
SELECT - 65 AS col2, + 15 AS col1
----
-65
15

query I rowsort
SELECT 92 + 32
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT DISTINCT MAX( DISTINCT - - 90 ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT MAX ( DISTINCT - - 90 ) AS col2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7852
SELECT ALL + NULLIF ( + - 32, - 19 * + - 47 + - - 74 ) DIV + - 34 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL + NULLIF ( + - 32, - 19 * + - 47 + - - 74 ) / + - 34 + COUNT ( * )
----
1

query I rowsort
SELECT 82 + 74
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-7854
SELECT DISTINCT + 55 DIV + - 81
----
0

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT + 55 / + - 81
----
0

query I rowsort
SELECT 98 * - - 80
----
7840

query I rowsort
SELECT + 25 * - - 79 AS col0
----
1975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7857
SELECT + 38 col0, COUNT( * ) + CAST( - 79 AS SIGNED )
----
38
-78

skipif mysql # not compatible
query II rowsort label-7857
SELECT + 38 col0, COUNT ( * ) + CAST ( - 79 AS INTEGER )
----
38
-78

query I rowsort
SELECT + 34 + + 45 + - - 12
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - MAX( ALL 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-7859
SELECT - MAX ( ALL 54 ) AS col1
----
-54

query I rowsort
SELECT - 87 * - 74
----
6438

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT + 61 + 85 + + COUNT( * ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-7861
SELECT + 61 + 85 + + COUNT ( * ) AS col1
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-7862
SELECT DISTINCT - 76 col2, - COUNT( * )
----
-76
-1

skipif mysql # not compatible
query II rowsort label-7862
SELECT DISTINCT - 76 col2, - COUNT ( * )
----
-76
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7863
SELECT ALL + CAST( NULL AS SIGNED ) * - 49 + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL + CAST ( NULL AS INTEGER ) * - 49 + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL - COALESCE ( + 13, + + COUNT( - ( - + 82 ) ), 54 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL - COALESCE ( + 13, + + COUNT ( - ( - + 82 ) ), 54 ) AS col1
----
-13

query I rowsort
SELECT DISTINCT + 5 * - + NULLIF ( 99, - 0 )
----
-495

query I rowsort
SELECT DISTINCT - 47 + - + 42 AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7867
SELECT - + CASE - - CASE - COUNT( * ) WHEN 60 - + ( COUNT( * ) ) + + 26 / + - 50 THEN NULL WHEN + - 41 + + 47 * + 3 THEN + + ( + 91 ) ELSE + 68 + - COUNT( * ) + + - CASE - 81 WHEN + + 60 THEN + COUNT( * ) * - CASE + 94 WHEN + + 38 * - - CASE - 12 WHEN + + CAST( NULL AS SIGNED ) - 82 - - + 13 THEN + 18 END THEN - SUM( ALL + 59 ) * - AVG ( DISTINCT - 69 ) + 44 * - - COUNT( * ) END END + 75 * + 46 - 24 END WHEN + NULLIF ( - ( - COUNT( * ) ), + 11 ) THEN - + 6 * + + COUNT( + 66 ) + - 81 WHEN + NULLIF ( ( + 35 ), CAST( 65 AS SIGNED ) * - 92 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT - + CASE - - CASE - COUNT ( * ) WHEN 60 - + ( COUNT ( * ) ) + + 26 / + - 50 THEN NULL WHEN + - 41 + + 47 * + 3 THEN + + ( + 91 ) ELSE + 68 + - COUNT ( * ) + + - CASE - 81 WHEN + + 60 THEN + COUNT ( * ) * - CASE + 94 WHEN + + 38 * - - CASE - 12 WHEN + + CAST ( NULL AS INTEGER ) - 82 - - + 13 THEN + 18 END THEN - SUM ( ALL + 59 ) * - AVG ( DISTINCT - 69 ) + 44 * - - COUNT ( * ) END END + 75 * + 46 - 24 END WHEN + NULLIF ( - ( - COUNT ( * ) ), + 11 ) THEN - + 6 * + + COUNT ( + 66 ) + - 81 WHEN + NULLIF ( ( + 35 ), CAST ( 65 AS INTEGER ) * - 92 ) THEN NULL END
----
NULL

query I rowsort
SELECT - + ( - 32 ) - + 71 + + 46 * + ( + - 73 )
----
-3397

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7869
SELECT MAX( 77 ) DIV - 22 * + COUNT( * ) + 12 - - 70 * - 69 AS col1
----
-4821

skipif mysql # not compatible
query I rowsort label-7869
SELECT MAX ( 77 ) / - 22 * + COUNT ( * ) + 12 - - 70 * - 69 AS col1
----
-4821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7870
SELECT DISTINCT + 78 * - 24 + + CASE - 98 WHEN 34 THEN NULL ELSE - 47 END * + - CAST( NULL AS SIGNED ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + 78 * - 24 + + CASE - 98 WHEN 34 THEN NULL ELSE - 47 END * + - CAST ( NULL AS INTEGER ) * + 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT ALL 47 DIV + 42
----
1

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL 47 / + 42
----
1

query II rowsort
SELECT + 79 AS col1, 16 + - 74
----
79
-58

query II rowsort
SELECT + 7, 56 AS col1
----
7
56

query II rowsort
SELECT + 29 AS col1, 98
----
29
98

query I rowsort
SELECT CASE + + 80 WHEN + 57 * 31 * 2 THEN NULL ELSE + + 94 END
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-7876
SELECT ALL COUNT( * ) * + 64 AS col1, 31 AS col1
----
64
31

skipif mysql # not compatible
query II rowsort label-7876
SELECT ALL COUNT ( * ) * + 64 AS col1, 31 AS col1
----
64
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT DISTINCT 65 * + COUNT( * ) - + 87
----
-22

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT 65 * + COUNT ( * ) - + 87
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7878
SELECT + 42 + 67 * 43 * CASE + ( - + 10 ) WHEN - 65 THEN - 55 DIV - + CASE + ( - - CAST( - 62 AS SIGNED ) ) WHEN + 81 THEN COALESCE ( - 84, - 15 * 79 + 16, ( 11 ) * - - NULLIF ( - 53, - 39 ) DIV + + COUNT( * ) * + + 20 + + SUM( DISTINCT - + 42 ) + - 2 + - COUNT( * ) * + COUNT( * ) ) WHEN + - COALESCE ( + + NULLIF ( + + 75, + 42 ), - 32 * + ( + ( - COUNT( * ) ) ) DIV 26 * - 61 + ( COALESCE ( + + 56, + 47 ) ) ) THEN NULL ELSE + 5 + 42 * 0 END * + 45 + 98 * MIN( 12 ) WHEN - 0 - + 99 THEN NULL WHEN - 98 THEN NULL ELSE 48 DIV - COUNT( * ) END * + 78 AS col1
----
-10786422

skipif mysql # not compatible
query I rowsort label-7878
SELECT + 42 + 67 * 43 * CASE + ( - + 10 ) WHEN - 65 THEN - 55 / - + CASE + ( - - CAST ( - 62 AS INTEGER ) ) WHEN + 81 THEN COALESCE ( - 84, - 15 * 79 + 16, ( 11 ) * - - NULLIF ( - 53, - 39 ) / + + COUNT ( * ) * + + 20 + + SUM ( DISTINCT - + 42 ) + - 2 + - COUNT ( * ) * + COUNT ( * ) ) WHEN + - COALESCE ( + + NULLIF ( + + 75, + 42 ), - 32 * + ( + ( - COUNT ( * ) ) ) / 26 * - 61 + ( COALESCE ( + + 56, + 47 ) ) ) THEN NULL ELSE + 5 + 42 * 0 END * + 45 + 98 * MIN ( 12 ) WHEN - 0 - + 99 THEN NULL WHEN - 98 THEN NULL ELSE 48 / - COUNT ( * ) END * + 78 AS col1
----
-10786422

query I rowsort
SELECT + ( - - 28 ) AS col1
----
28

query I rowsort
SELECT ALL ( - + 88 ) * 72 - + ( 99 ) col1
----
-6435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7881
SELECT + COALESCE ( COALESCE ( - 50, - 24 * + NULLIF ( + MAX( DISTINCT + 84 ), + 23 ) + ( 96 ) - + 39 * - COUNT( * ) ), + CAST( - 93 AS SIGNED ), - + 2 * - COUNT( ALL COALESCE ( + 23, - 2 ) ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7881
SELECT + COALESCE ( COALESCE ( - 50, - 24 * + NULLIF ( + MAX ( DISTINCT + 84 ), + 23 ) + ( 96 ) - + 39 * - COUNT ( * ) ), + CAST ( - 93 AS INTEGER ), - + 2 * - COUNT ( ALL COALESCE ( + 23, - 2 ) ) ) AS col1
----
-50

query I rowsort
SELECT + ( - 29 ) col0
----
-29

query I rowsort
SELECT ALL COALESCE ( + ( + + 60 ), - NULLIF ( + + 93, 56 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT ALL + COALESCE ( + 18, - 47, + + 4 ) * MAX( 55 )
----
990

skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL + COALESCE ( + 18, - 47, + + 4 ) * MAX ( 55 )
----
990

query I rowsort
SELECT - ( - 16 ) * - 65 AS col1
----
-1040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT - CAST( + 3 AS SIGNED ) * - 93 + + - 56 AS col1
----
223

skipif mysql # not compatible
query I rowsort label-7886
SELECT - CAST ( + 3 AS INTEGER ) * - 93 + + - 56 AS col1
----
223

query I rowsort
SELECT - 34 * + 64 AS col1
----
-2176

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT + MAX( + ( - - 29 ) ) + 31 + + - 53 - + + 20 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7888
SELECT + MAX ( + ( - - 29 ) ) + 31 + + - 53 - + + 20 AS col1
----
-13

query I rowsort
SELECT ALL + + 87 * + 67 * + + 72 AS col2
----
419688

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT - SUM( - 13 ) + MAX( ALL - - 99 ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-7890
SELECT - SUM ( - 13 ) + MAX ( ALL - - 99 ) AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL + + 12 + - ( + + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + + 12 + - ( + + COUNT ( * ) )
----
11

query I rowsort
SELECT - + 73 + - - NULLIF ( + 22, + 34 ) + + + 69 AS col0
----
18

query I rowsort
SELECT DISTINCT - + 37 + - - 8 * 18 AS col2
----
107

query I rowsort
SELECT - + 23 + - 21 + - 16
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT ALL - + 20 + - 39 * + MAX( - - 44 ) * - 26
----
44596

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - + 20 + - 39 * + MAX ( - - 44 ) * - 26
----
44596

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7896
SELECT DISTINCT - 54 * ( + - CAST( NULL AS DECIMAL ) ) + + 59 / + CAST( NULL AS SIGNED ) * - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7896
SELECT DISTINCT - 54 * ( + - CAST ( NULL AS REAL ) ) + + 59 / + CAST ( NULL AS INTEGER ) * - 90 AS col2
----
NULL

query II rowsort
SELECT ALL + 43 + + 16, NULLIF ( - 50, + 16 ) AS col1
----
59
-50

query I rowsort
SELECT - NULLIF ( - 20, + - 74 ) - + 37 * 99
----
-3643

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT - + COUNT( 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-7899
SELECT - + COUNT ( 44 )
----
-1

query I rowsort
SELECT - 92 + + 59 AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT + 61 + CASE + + 46 WHEN + - 9 THEN NULL WHEN 37 * - - 5 * ( + ( - 13 ) ) THEN + - 43 * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT + 61 + CASE + + 46 WHEN + - 9 THEN NULL WHEN 37 * - - 5 * ( + ( - 13 ) ) THEN + - 43 * - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT - - 95 + + + 27 + COALESCE ( - COUNT( * ), + 58 ) + - 96 * + 67 * + COUNT( * )
----
-6311

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT - - 95 + + + 27 + COALESCE ( - COUNT ( * ), + 58 ) + - 96 * + 67 * + COUNT ( * )
----
-6311

query II rowsort
SELECT ALL - 60 * 10 AS col1, + 89
----
-600
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT ALL + 73 DIV 95 + 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL + 73 / 95 + 68 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT 97 * + ( ( - + COUNT( * ) ) ) * 92 + 6 + - + 88
----
-9006

skipif mysql # not compatible
query I rowsort label-7905
SELECT 97 * + ( ( - + COUNT ( * ) ) ) * 92 + 6 + - + 88
----
-9006

query I rowsort
SELECT DISTINCT + + 66 * 8 AS col0
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT + MIN( ALL 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT + MIN ( ALL 89 ) AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT ALL + CAST( 4 AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL + CAST ( 4 AS INTEGER ) AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7909
SELECT ALL + COUNT( * ) DIV 70 - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL + COUNT ( * ) / 70 - - COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT CAST( - + 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-7910
SELECT CAST ( - + 18 AS INTEGER )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7911
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7911
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT + CAST( NULL AS SIGNED ) * ( ( + 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT + CAST ( NULL AS INTEGER ) * ( ( + 42 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7913
SELECT - 42 * 66 + + - 31 + - ( + - 81 ) - + 20 + + - MIN( COALESCE ( - 98, - 10 DIV + 21 ) ) + - - 21
----
-2623

skipif mysql # not compatible
query I rowsort label-7913
SELECT - 42 * 66 + + - 31 + - ( + - 81 ) - + 20 + + - MIN ( COALESCE ( - 98, - 10 / + 21 ) ) + - - 21
----
-2623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7914
SELECT CAST( - + 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-7914
SELECT CAST ( - + 75 AS INTEGER )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT + 23 * - + ( + + CAST( NULL AS SIGNED ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT + 23 * - + ( + + CAST ( NULL AS INTEGER ) ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 89 * - - 16
----
1424

query I rowsort
SELECT + 12 * + ( - - 65 ) AS col1
----
780

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT DISTINCT - 64 DIV 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT - 64 / 95 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT DISTINCT 41 * 87 DIV 26 * 28 AS col2
----
3836

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT 41 * 87 / 26 * 28 AS col2
----
3836

query I rowsort
SELECT ALL 88 * 22
----
1936

query I rowsort
SELECT DISTINCT 47 * + - 47 * - - 9 col1
----
-19881

query I rowsort
SELECT + 58 * + 39 col1
----
2262

onlyif mysql # aggregate syntax: 
query II rowsort label-7923
SELECT + 76 + + MIN( - + 24 ) AS col1, COUNT( * ) AS col2
----
52
1

skipif mysql # not compatible
query II rowsort label-7923
SELECT + 76 + + MIN ( - + 24 ) AS col1, COUNT ( * ) AS col2
----
52
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT COUNT( * ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-7924
SELECT COUNT ( * ) + - 58
----
-57

query I rowsort
SELECT ( 95 ) * - 26 * 75
----
-185250

onlyif mysql # aggregate syntax: 
query II rowsort label-7926
SELECT - ( - MAX( DISTINCT 89 ) ) AS col1, 74 AS col1
----
89
74

skipif mysql # not compatible
query II rowsort label-7926
SELECT - ( - MAX ( DISTINCT 89 ) ) AS col1, 74 AS col1
----
89
74

query II rowsort
SELECT 90, ( - 21 ) * + 1 - - 66 col1
----
90
45

query I rowsort
SELECT ALL + 16 * + - 47 col2
----
-752

query I rowsort
SELECT DISTINCT - 0 + - 53 * + 95
----
-5035

query I rowsort
SELECT ALL - 56 * - - 82
----
-4592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7931
SELECT + 45 + + COALESCE ( 64, - 30 * 13 ) DIV + COALESCE ( - 69, + + ( 30 ), 69 * + MIN( + 4 ) ) - + 83 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7931
SELECT + 45 + + COALESCE ( 64, - 30 * 13 ) / + COALESCE ( - 69, + + ( 30 ), 69 * + MIN ( + 4 ) ) - + 83 AS col2
----
-38

query I rowsort
SELECT - - ( - 85 ) AS col1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7933
SELECT 46 DIV - 8 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7933
SELECT 46 / - 8 AS col2
----
-5

query I rowsort
SELECT ALL - 6 + ( - 39 )
----
-45

query I rowsort
SELECT ALL + - 5 - - 88 + 78
----
161

onlyif mysql # DIV for integer division: 
query II rowsort label-7936
SELECT 89 AS col0, 3 DIV - 35 + - 14 * + 51 + ( - - 95 ) AS col2
----
89
-619

skipif mysql # not compatible
query II rowsort label-7936
SELECT 89 AS col0, 3 / - 35 + - 14 * + 51 + ( - - 95 ) AS col2
----
89
-619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7937
SELECT COUNT( * ) DIV - 77 col0
----
0

skipif mysql # not compatible
query I rowsort label-7937
SELECT COUNT ( * ) / - 77 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT ALL - - 92 DIV 16 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL - - 92 / 16 AS col0
----
5

query I rowsort
SELECT 56 * - 50
----
-2800

onlyif mysql # DIV for integer division: 
query I rowsort label-7940
SELECT DISTINCT - 58 DIV - + 24 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT - 58 / - + 24 AS col1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7941
SELECT 13 * ( + 88 ) DIV - 95 + + 30 + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-7941
SELECT 13 * ( + 88 ) / - 95 + + 30 + COUNT ( * )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7942
SELECT 76 DIV 61 * - 37
----
-37

skipif mysql # not compatible
query I rowsort label-7942
SELECT 76 / 61 * - 37
----
-37

query I rowsort
SELECT ALL - 40 * + 26
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT 57 * COUNT( * ) * 27 AS col2
----
1539

skipif mysql # not compatible
query I rowsort label-7944
SELECT 57 * COUNT ( * ) * 27 AS col2
----
1539

query I rowsort
SELECT ALL + 68 * - 74 * 90 col2
----
-452880

query II rowsort
SELECT + 51 AS col2, 38 AS col0
----
51
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7947
SELECT ALL - COUNT( * ), + 88 AS col1
----
-1
88

skipif mysql # not compatible
query II rowsort label-7947
SELECT ALL - COUNT ( * ), + 88 AS col1
----
-1
88

query I rowsort
SELECT 76 - - 12 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL - 68 * - COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL - 68 * - COUNT ( * ) AS col1
----
68

query I rowsort
SELECT DISTINCT - ( 42 )
----
-42

query II rowsort
SELECT 72 * - - 52, + 36 AS col0
----
3744
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7952
SELECT DISTINCT - 43 AS col0, + ( - - CAST( NULL AS DECIMAL ) ) / MAX( DISTINCT - 22 ) / ( + + COUNT( * ) ) * AVG ( - 48 ) + 5 * - 86 - - 48 col0
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-7952
SELECT DISTINCT - 43 AS col0, + ( - - CAST ( NULL AS REAL ) ) / MAX ( DISTINCT - 22 ) / ( + + COUNT ( * ) ) * AVG ( - 48 ) + 5 * - 86 - - 48 col0
----
-43
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ALL - ( + + COUNT( ALL - 65 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL - ( + + COUNT ( ALL - 65 ) )
----
-1

query II rowsort
SELECT 31 AS col1, - 0
----
31
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7955
SELECT 91 DIV 17
----
5

skipif mysql # not compatible
query I rowsort label-7955
SELECT 91 / 17
----
5

query I rowsort
SELECT 27 * 60
----
1620

query I rowsort
SELECT ALL 34 + + 9 + - 77 col2
----
-34

query I rowsort
SELECT 97 - 62 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT ALL - 67 DIV - 63
----
1

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL - 67 / - 63
----
1

query I rowsort
SELECT ALL 10 * - 95 AS col2
----
-950

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT 0 DIV + - 14
----
0

skipif mysql # not compatible
query I rowsort label-7961
SELECT 0 / + - 14
----
0

query II rowsort
SELECT ALL - 2, + 64 AS col2
----
-2
64

query I rowsort
SELECT ALL 63 + + 80 col0
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL - 71 + - COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL - 71 + - COUNT ( * ) AS col1
----
-72

query I rowsort
SELECT DISTINCT - 60 * 35 + - - 72 AS col2
----
-2028

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7966
SELECT ALL + CAST( + 95 AS SIGNED ) AS col0, 12
----
95
12

skipif mysql # not compatible
query II rowsort label-7966
SELECT ALL + CAST ( + 95 AS INTEGER ) AS col0, 12
----
95
12

query II rowsort
SELECT ALL 2 AS col1, + 8 * 94 AS col1
----
2
752

query I rowsort
SELECT + 60 + + + 48 AS col2
----
108

query I rowsort
SELECT 69 * - 6
----
-414

onlyif mysql # aggregate syntax: 
query II rowsort label-7970
SELECT COUNT( * ), + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-7970
SELECT COUNT ( * ), + COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT - ( ( - 58 ) )
----
58

query I rowsort
SELECT 2 + 35 AS col2
----
37

query II rowsort
SELECT ALL - 61 AS col0, - 61
----
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT 48 + - COUNT( * ) * - - 27 - + 56
----
-35

skipif mysql # not compatible
query I rowsort label-7974
SELECT 48 + - COUNT ( * ) * - - 27 - + 56
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7975
SELECT ALL - 51, COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-7975
SELECT ALL - 51, COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0
----
-51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT ALL 79 - + - ( - COUNT( ALL 31 ) ) * + + 37
----
42

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL 79 - + - ( - COUNT ( ALL 31 ) ) * + + 37
----
42

query I rowsort
SELECT 40 + + + 15
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL + 83 * - COALESCE ( - MAX( ALL - 16 ), ( MIN( DISTINCT - 6 ) ) )
----
-1328

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + 83 * - COALESCE ( - MAX ( ALL - 16 ), ( MIN ( DISTINCT - 6 ) ) )
----
-1328

onlyif mysql # DIV for integer division: 
query I rowsort label-7979
SELECT + 76 + - + 82 + + 80 + - 71 DIV + 4 + + 81 * - 86
----
-6909

skipif mysql # not compatible
query I rowsort label-7979
SELECT + 76 + - + 82 + + 80 + - 71 / + 4 + + 81 * - 86
----
-6909

query I rowsort
SELECT 86 + + ( + 64 ) + - 89 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT MAX( + 36 ) * 31
----
1116

skipif mysql # not compatible
query I rowsort label-7981
SELECT MAX ( + 36 ) * 31
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT 82 * COUNT( * ) col2
----
82

skipif mysql # not compatible
query I rowsort label-7982
SELECT 82 * COUNT ( * ) col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7983
SELECT 85 + CAST( NULL AS SIGNED ) + 57 / - + 6 + - - 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7983
SELECT 85 + CAST ( NULL AS INTEGER ) + 57 / - + 6 + - - 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT - 94 * + MIN( ALL 39 ) + 65 AS col1
----
-3601

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT - 94 * + MIN ( ALL 39 ) + 65 AS col1
----
-3601

onlyif mysql # aggregate syntax: 
query II rowsort label-7985
SELECT ALL + COUNT( * ) * 38 * - + 52 * + 79 + - + 28 + + 70 * - 23 AS col1, - 24 * + 69 * + NULLIF ( - + NULLIF ( 93, - COUNT( * ) ), + 97 )
----
-157742
154008

skipif mysql # not compatible
query II rowsort label-7985
SELECT ALL + COUNT ( * ) * 38 * - + 52 * + 79 + - + 28 + + 70 * - 23 AS col1, - 24 * + 69 * + NULLIF ( - + NULLIF ( 93, - COUNT ( * ) ), + 97 )
----
-157742
154008

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT + SUM( DISTINCT - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-7986
SELECT + SUM ( DISTINCT - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-7987
SELECT 8 - CASE 73 WHEN NULLIF ( + MAX( DISTINCT - ( - 76 ) ), + COUNT( * ) + - 45 ) THEN + - COUNT( * ) * - COUNT( * ) + - 69 + COUNT( * ) ELSE - + 1 END - + 12 AS col0, 49 * 30 * + - 31 AS col1
----
-3
-45570

skipif mysql # not compatible
query II rowsort label-7987
SELECT 8 - CASE 73 WHEN NULLIF ( + MAX ( DISTINCT - ( - 76 ) ), + COUNT ( * ) + - 45 ) THEN + - COUNT ( * ) * - COUNT ( * ) + - 69 + COUNT ( * ) ELSE - + 1 END - + 12 AS col0, 49 * 30 * + - 31 AS col1
----
-3
-45570

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT COUNT( * ) * - + 49 + 92 * - COUNT( * )
----
-141

skipif mysql # not compatible
query I rowsort label-7988
SELECT COUNT ( * ) * - + 49 + 92 * - COUNT ( * )
----
-141

query I rowsort
SELECT DISTINCT + ( + - 40 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT DISTINCT ( CAST( + 2 AS SIGNED ) ) * - CAST( NULL AS SIGNED ) + + 62 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT ( CAST ( + 2 AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) + + 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7991
SELECT DISTINCT + MAX( + 89 ), 80 - - 76 AS col0
----
89
156

skipif mysql # not compatible
query II rowsort label-7991
SELECT DISTINCT + MAX ( + 89 ), 80 - - 76 AS col0
----
89
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT ALL + CAST( + 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL + CAST ( + 86 AS INTEGER ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7993
SELECT ALL + CAST( NULL AS SIGNED ) * - 57 + + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL + CAST ( NULL AS INTEGER ) * - 57 + + 26 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT 11 * + 92 + COUNT( * )
----
1013

skipif mysql # not compatible
query I rowsort label-7994
SELECT 11 * + 92 + COUNT ( * )
----
1013

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL + 55 * - 13 * + COUNT( * ) * - + 60 + - 61
----
42839

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL + 55 * - 13 * + COUNT ( * ) * - + 60 + - 61
----
42839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT + - 61 * - CAST( - 66 AS SIGNED ) col0
----
-4026

skipif mysql # not compatible
query I rowsort label-7996
SELECT + - 61 * - CAST ( - 66 AS INTEGER ) col0
----
-4026

onlyif mysql # aggregate syntax: 
query III rowsort label-7997
SELECT ALL + + MIN( - - 70 ) AS col0, 90 * COUNT( * ) - - 28, + COUNT( * ) + + COUNT( * ) - 63 col2
----
70
118
-61

skipif mysql # not compatible
query III rowsort label-7997
SELECT ALL + + MIN ( - - 70 ) AS col0, 90 * COUNT ( * ) - - 28, + COUNT ( * ) + + COUNT ( * ) - 63 col2
----
70
118
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7998
SELECT + CASE + + COUNT( * ) WHEN - COALESCE ( COUNT( * ), ( 81 ) / - 64 / CASE + + 6 WHEN + 43 * + COUNT( * ) THEN ( + AVG ( ALL 51 ) ) END + ( + 94 ) + + 62, - 72 * - - 52 + 5 * + - 97 / - 71 ) THEN NULL WHEN + 48 * NULLIF ( CAST( + 15 AS SIGNED ), + - 53 ) THEN NULL ELSE + CAST( - - 46 AS SIGNED ) END
----
46

skipif mysql # not compatible
query I rowsort label-7998
SELECT + CASE + + COUNT ( * ) WHEN - COALESCE ( COUNT ( * ), ( 81 ) / - 64 / CASE + + 6 WHEN + 43 * + COUNT ( * ) THEN ( + AVG ( ALL 51 ) ) END + ( + 94 ) + + 62, - 72 * - - 52 + 5 * + - 97 / - 71 ) THEN NULL WHEN + 48 * NULLIF ( CAST ( + 15 AS INTEGER ), + - 53 ) THEN NULL ELSE + CAST ( - - 46 AS INTEGER ) END
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT + COUNT( * ) + - - 39
----
40

skipif mysql # not compatible
query I rowsort label-7999
SELECT + COUNT ( * ) + - - 39
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT ALL + + COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL + + COUNT ( * ) - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - SUM( DISTINCT 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-8001
SELECT - SUM ( DISTINCT 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT - ( + SUM( + 64 ) ) * - 12
----
768

skipif mysql # not compatible
query I rowsort label-8002
SELECT - ( + SUM ( + 64 ) ) * - 12
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL - 73 * + 80 * COUNT( * ) * NULLIF ( - - COUNT( * ), ( - 47 ) ) * - 23 AS col2
----
134320

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL - 73 * + 80 * COUNT ( * ) * NULLIF ( - - COUNT ( * ), ( - 47 ) ) * - 23 AS col2
----
134320

query I rowsort
SELECT DISTINCT 29 * + - 51 * - 62 AS col0
----
91698

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT DISTINCT + - MIN( + + 34 ) * + NULLIF ( + 96, + 11 ) * - 7
----
22848

skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT + - MIN ( + + 34 ) * + NULLIF ( + 96, + 11 ) * - 7
----
22848

query I rowsort
SELECT - - ( 55 ) * - 74 + - - 21
----
-4049

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8007
SELECT + COALESCE ( + ( - - 28 ), - COUNT( * ) ) DIV + - 5 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-8007
SELECT + COALESCE ( + ( - - 28 ), - COUNT ( * ) ) / + - 5 AS col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT + CAST( NULL AS SIGNED ) / + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT + CAST ( NULL AS INTEGER ) / + 87
----
NULL

query I rowsort
SELECT - ( + - 32 )
----
32

query I rowsort
SELECT - COALESCE ( + 54, 14 + 59 + - - 71 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT DISTINCT + 22 + - COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT + 22 + - COUNT ( * ) AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8012
SELECT + CAST( NULL AS SIGNED ) + - CAST( 43 AS SIGNED ) * 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT + CAST ( NULL AS INTEGER ) + - CAST ( 43 AS INTEGER ) * 96 AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( + 74, + 14 + + 20, + + 75 )
----
-74

query II rowsort
SELECT ALL 48, - 44 AS col2
----
48
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT DISTINCT + ( 96 ) + 40 - + COUNT( * )
----
135

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT + ( 96 ) + 40 - + COUNT ( * )
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8016
SELECT + 53 + - COUNT( * ) + + NULLIF ( - 26, - 18 ) * - 92 + - CASE COUNT( * ) WHEN COUNT( * ) + - + 30 THEN NULL WHEN + - 39 DIV - 69 + - - COUNT( * ) THEN NULL ELSE COUNT( * ) + + + 68 + + AVG ( ALL - 15 ) + + 82 + 14 * + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT + 53 + - COUNT ( * ) + + NULLIF ( - 26, - 18 ) * - 92 + - CASE COUNT ( * ) WHEN COUNT ( * ) + - + 30 THEN NULL WHEN + - 39 / - 69 + - - COUNT ( * ) THEN NULL ELSE COUNT ( * ) + + + 68 + + AVG ( ALL - 15 ) + + 82 + 14 * + 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8017
SELECT - ( - SUM( - + 68 ) ), + 27 * - + 94 AS col2
----
-68
-2538

skipif mysql # not compatible
query II rowsort label-8017
SELECT - ( - SUM ( - + 68 ) ), + 27 * - + 94 AS col2
----
-68
-2538

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL 65 + + MAX( - - 71 )
----
136

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL 65 + + MAX ( - - 71 )
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT CAST( 39 AS SIGNED ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8019
SELECT CAST ( 39 AS INTEGER ) AS col0
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8020
SELECT - 35 DIV - + 18 + + - 94 * SUM( ALL 73 ) AS col0
----
-6861

skipif mysql # not compatible
query I rowsort label-8020
SELECT - 35 / - + 18 + + - 94 * SUM ( ALL 73 ) AS col0
----
-6861

query I rowsort
SELECT + ( 84 )
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT + 17 DIV - 23 col0
----
0

skipif mysql # not compatible
query I rowsort label-8022
SELECT + 17 / - 23 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8023
SELECT ALL + 1 * 94 DIV 2 + - + COUNT( - 53 ) - + - 68 - - 1
----
115

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL + 1 * 94 / 2 + - + COUNT ( - 53 ) - + - 68 - - 1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT MIN( ALL - - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-8024
SELECT MIN ( ALL - - 13 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8025
SELECT - CASE + 82 WHEN + - 47 + + 70 + 60 THEN - + 47 * - - CAST( NULL AS SIGNED ) * - CAST( + 93 AS SIGNED ) + - COUNT( * ) WHEN - + 15 + + - 21 + + 96 - + 79 THEN NULL END * + 3 * + 4 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT - CASE + 82 WHEN + - 47 + + 70 + 60 THEN - + 47 * - - CAST ( NULL AS INTEGER ) * - CAST ( + 93 AS INTEGER ) + - COUNT ( * ) WHEN - + 15 + + - 21 + + 96 - + 79 THEN NULL END * + 3 * + 4 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT - - ( 2 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT - - ( 2 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8027
SELECT - - 88 - ( - COUNT( * ) ) AS col1, 73 - 94
----
89
-21

skipif mysql # not compatible
query II rowsort label-8027
SELECT - - 88 - ( - COUNT ( * ) ) AS col1, 73 - 94
----
89
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT DISTINCT + 77 * - 8 - + 2 * 39 - + + COUNT( * ) AS col2
----
-695

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT + 77 * - 8 - + 2 * 39 - + + COUNT ( * ) AS col2
----
-695

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8029
SELECT + ( CAST( + + 45 AS SIGNED ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8029
SELECT + ( CAST ( + + 45 AS INTEGER ) ) AS col0
----
45

query I rowsort
SELECT ALL 73 * + + ( + - 53 ) - 81 AS col2
----
-3950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8031
SELECT - 87 * - 58 * - MAX( - 68 ), CASE ( + - 93 ) WHEN + 1 + + CAST( NULL AS SIGNED ) + + 23 THEN NULL ELSE - - 34 - + 40 END AS col1
----
343128
-6

skipif mysql # not compatible
query II rowsort label-8031
SELECT - 87 * - 58 * - MAX ( - 68 ), CASE ( + - 93 ) WHEN + 1 + + CAST ( NULL AS INTEGER ) + + 23 THEN NULL ELSE - - 34 - + 40 END AS col1
----
343128
-6

query I rowsort
SELECT DISTINCT + - 57 * + 43
----
-2451

query II rowsort
SELECT ALL - 52 AS col1, 74
----
-52
74

onlyif mysql # DIV for integer division: 
query II rowsort label-8034
SELECT - 45 + + 95 DIV + - 55 AS col2, 55 AS col2
----
-46
55

skipif mysql # not compatible
query II rowsort label-8034
SELECT - 45 + + 95 / + - 55 AS col2, 55 AS col2
----
-46
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8035
SELECT - 14 - + - 46 * + - 1 AS col1, + COUNT( * )
----
-60
1

skipif mysql # not compatible
query II rowsort label-8035
SELECT - 14 - + - 46 * + - 1 AS col1, + COUNT ( * )
----
-60
1

query I rowsort
SELECT - + 61 * + + 93
----
-5673

onlyif mysql # aggregate syntax: 
query II rowsort label-8037
SELECT - 16 col2, 46 + + - 70 + COUNT( * ) col1
----
-16
-23

skipif mysql # not compatible
query II rowsort label-8037
SELECT - 16 col2, 46 + + - 70 + COUNT ( * ) col1
----
-16
-23

query I rowsort
SELECT - 72 + 12
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT - + 12 + - - COALESCE ( - 51, - 59 ) DIV 63 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8039
SELECT - + 12 + - - COALESCE ( - 51, - 59 ) / 63 AS col1
----
-12

query I rowsort
SELECT ALL 84 + CASE - 16 WHEN + + 5 THEN NULL WHEN + - 26 THEN 70 * + 29 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT - 90 + CAST( - CASE - - 37 WHEN + 16 THEN NULL WHEN COUNT( * ) / - + 63 / COUNT( * ) THEN + 43 ELSE NULL END AS SIGNED ) - NULLIF ( - + 94, + 49 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT - 90 + CAST ( - CASE - - 37 WHEN + 16 THEN NULL WHEN COUNT ( * ) / - + 63 / COUNT ( * ) THEN + 43 ELSE NULL END AS INTEGER ) - NULLIF ( - + 94, + 49 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT - COALESCE ( ( - - 20 ), COUNT( * ) * - 35, - 71 * 85 + + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8042
SELECT - COALESCE ( ( - - 20 ), COUNT ( * ) * - 35, - 71 * 85 + + COUNT ( * ) )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT - CAST( - 48 AS SIGNED ) + - - 14 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8043
SELECT - CAST ( - 48 AS INTEGER ) + - - 14 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL + 9 + - 21 + + - 26 * + COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL + 9 + - 21 + + - 26 * + COUNT ( * ) AS col1
----
-38

query I rowsort
SELECT ALL - 46 * 20 AS col2
----
-920

query I rowsort
SELECT 72 * - - 2 * 35
----
5040

query I rowsort
SELECT 75 * - 37 col1
----
-2775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8048
SELECT 17 DIV - COALESCE ( + - 73, - - 16 ) * + + COUNT( * ) + + COUNT( * ) - 61 * 17 + + - 45 DIV + 94
----
-1036

skipif mysql # not compatible
query I rowsort label-8048
SELECT 17 / - COALESCE ( + - 73, - - 16 ) * + + COUNT ( * ) + + COUNT ( * ) - 61 * 17 + + - 45 / + 94
----
-1036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT 30 + 44 + + 28 DIV COALESCE ( + COUNT( * ), - 15 * - + 46 * + + 83 * + 54 + COUNT( * ) )
----
102

skipif mysql # not compatible
query I rowsort label-8049
SELECT 30 + 44 + + 28 / COALESCE ( + COUNT ( * ), - 15 * - + 46 * + + 83 * + 54 + COUNT ( * ) )
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT 10 * COALESCE ( - NULLIF ( + 69, 12 ), 57, 1 DIV - 24 - 99 * + 9 ) + + 52
----
-638

skipif mysql # not compatible
query I rowsort label-8050
SELECT 10 * COALESCE ( - NULLIF ( + 69, 12 ), 57, 1 / - 24 - 99 * + 9 ) + + 52
----
-638

query I rowsort
SELECT ALL - ( + 5 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT DISTINCT ( - - COUNT( * ) ) - 3 * + 42 + + 21 * - 85 + 57 col1
----
-1853

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT ( - - COUNT ( * ) ) - 3 * + 42 + + 21 * - 85 + 57 col1
----
-1853

query I rowsort
SELECT 97 + 44 AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8054
SELECT - 5 * + - 15 - + 61 - MIN( DISTINCT - - 67 ) + ( + - CAST( NULL AS DECIMAL ) ) * - NULLIF ( - 15, + 5 ) * + ( + 22 ) + + 17 - + - 86 AS col0, 86 AS col2
----
NULL
86

skipif mysql # not compatible
query II rowsort label-8054
SELECT - 5 * + - 15 - + 61 - MIN ( DISTINCT - - 67 ) + ( + - CAST ( NULL AS REAL ) ) * - NULLIF ( - 15, + 5 ) * + ( + 22 ) + + 17 - + - 86 AS col0, 86 AS col2
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT ( + 76 ) * 9 + - - COUNT( * ) - - + 29
----
714

skipif mysql # not compatible
query I rowsort label-8055
SELECT ( + 76 ) * 9 + - - COUNT ( * ) - - + 29
----
714

query I rowsort
SELECT 28 - 38 * + 36 * - + 16
----
21916

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT + 72 - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT + 72 - COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT + MAX( + 12 ) col2
----
12

skipif mysql # not compatible
query I rowsort label-8058
SELECT + MAX ( + 12 ) col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT + SUM( ALL - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-8059
SELECT + SUM ( ALL - 5 )
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8060
SELECT ALL 57 * + 33 + - - 62 + 8 DIV - + 31
----
1943

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL 57 * + 33 + - - 62 + 8 / - + 31
----
1943

query I rowsort
SELECT 77 * - 15 AS col1
----
-1155

query I rowsort
SELECT 54 + - 42 AS col0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT ALL - + 34 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - + 34 / 81
----
0

query I rowsort
SELECT ALL - + 6 col1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8065
SELECT 46 + 18 + 4 DIV + + 41 - - - 63
----
1

skipif mysql # not compatible
query I rowsort label-8065
SELECT 46 + 18 + 4 / + + 41 - - - 63
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8066
SELECT - ( + - 6 ) DIV - 11 * + 29 - COUNT( * ) DIV 75 - + 79
----
-79

skipif mysql # not compatible
query I rowsort label-8066
SELECT - ( + - 6 ) / - 11 * + 29 - COUNT ( * ) / 75 - + 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT COALESCE ( - - 50, + CASE - - 35 WHEN 51 * - - 62 THEN - 34 END * - 62, + 97 ) + 80 + + COUNT( * ) AS col0
----
131

skipif mysql # not compatible
query I rowsort label-8067
SELECT COALESCE ( - - 50, + CASE - - 35 WHEN 51 * - - 62 THEN - 34 END * - 62, + 97 ) + 80 + + COUNT ( * ) AS col0
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT + COUNT( * ) + + 16 - 38 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-8068
SELECT + COUNT ( * ) + + 16 - 38 AS col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT ALL - COALESCE ( + 37, CAST( CAST( + 68 AS SIGNED ) AS SIGNED ) ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL - COALESCE ( + 37, CAST ( CAST ( + 68 AS INTEGER ) AS INTEGER ) ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8070
SELECT DISTINCT - - CASE 72 WHEN 94 THEN NULL WHEN - + 9 THEN NULL WHEN + - 31 THEN 39 + + COUNT( * ) ELSE - 62 END * - - 51 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT - - CASE 72 WHEN 94 THEN NULL WHEN - + 9 THEN NULL WHEN + - 31 THEN 39 + + COUNT ( * ) ELSE - 62 END * - - 51 * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 52 * - - 3 - - + 6 + - + COALESCE ( - 11, + 34, - 7 ) * + 72
----
954

query I rowsort
SELECT DISTINCT 30 + - 51 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL + - 79 + + ( - 79 ) * - - 21 + - - SUM( 35 ) + - 7
----
-1710

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL + - 79 + + ( - 79 ) * - - 21 + - - SUM ( 35 ) + - 7
----
-1710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8074
SELECT ALL CAST( NULL AS SIGNED ) + - 57 * - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL CAST ( NULL AS INTEGER ) + - 57 * - 86
----
NULL

query I rowsort
SELECT DISTINCT + 5 + - - 51 AS col1
----
56

query II rowsort
SELECT DISTINCT 88 AS col2, 3 * - 86 AS col2
----
88
-258

query I rowsort
SELECT 95 * 1 AS col0
----
95

query I rowsort
SELECT ALL + 23 + + + 73 AS col0
----
96

query I rowsort
SELECT 85 * + 61 AS col2
----
5185

query I rowsort
SELECT ALL - 87 + 9 col0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8081
SELECT ALL - 78 DIV + 25
----
-3

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL - 78 / + 25
----
-3

query I rowsort
SELECT DISTINCT - 6 + - 3 AS col2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT 7 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8083
SELECT 7 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT 10 - - - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-8084
SELECT 10 - - - COUNT ( * )
----
9

query I rowsort
SELECT ALL - 61 * 56
----
-3416

query I rowsort
SELECT 0 + 24 AS col2
----
24

query I rowsort
SELECT 36 * 91 * - COALESCE ( - 85, + 17 ) AS col1
----
278460

query I rowsort
SELECT DISTINCT + 97 * 60
----
5820

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8089
SELECT 26 DIV CAST( - 11 AS SIGNED ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8089
SELECT 26 / CAST ( - 11 AS INTEGER ) AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8090
SELECT ALL COUNT( * ) DIV 33 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL COUNT ( * ) / 33 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8091
SELECT COALESCE ( - NULLIF ( CASE - 80 WHEN 27 / COUNT( * ) THEN + 5 WHEN + 5 THEN NULL END, ( CAST( ( + 51 ) AS SIGNED ) ) - COUNT( ALL - 7 + + 49 * 9 ) ), + 92 ) * 96
----
8832

skipif mysql # not compatible
query I rowsort label-8091
SELECT COALESCE ( - NULLIF ( CASE - 80 WHEN 27 / COUNT ( * ) THEN + 5 WHEN + 5 THEN NULL END, ( CAST ( ( + 51 ) AS INTEGER ) ) - COUNT ( ALL - 7 + + 49 * 9 ) ), + 92 ) * 96
----
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT 45 + 36 * + COUNT( * ) col0
----
81

skipif mysql # not compatible
query I rowsort label-8092
SELECT 45 + 36 * + COUNT ( * ) col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL - SUM( ( + 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL - SUM ( ( + 41 ) )
----
-41

query I rowsort
SELECT ALL 50 * 71 AS col1
----
3550

query I rowsort
SELECT 61 * + 15 AS col2
----
915

query I rowsort
SELECT 17 * + 11 - 88
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT + SUM( 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8097
SELECT + SUM ( 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT 97 + - SUM( ALL - 94 + + 28 )
----
163

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT 97 + - SUM ( ALL - 94 + + 28 )
----
163

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8099
SELECT ALL 14 * CASE - ( - CAST( NULL AS DECIMAL ) ) WHEN 69 / 46 THEN NULL ELSE - 18 - - 8 END AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL 14 * CASE - ( - CAST ( NULL AS REAL ) ) WHEN 69 / 46 THEN NULL ELSE - 18 - - 8 END AS col0
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT 51 * ( COUNT( * ) ) col0
----
51

skipif mysql # not compatible
query I rowsort label-8100
SELECT 51 * ( COUNT ( * ) ) col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT 86 * NULLIF ( - NULLIF ( - COUNT( * ), + 21 ), + 4 * COALESCE ( ( + 47 ), MIN( ALL 39 ) * + 81, 69 ) + - 12 )
----
86

skipif mysql # not compatible
query I rowsort label-8101
SELECT 86 * NULLIF ( - NULLIF ( - COUNT ( * ), + 21 ), + 4 * COALESCE ( ( + 47 ), MIN ( ALL 39 ) * + 81, 69 ) + - 12 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT + SUM( ALL 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-8102
SELECT + SUM ( ALL 94 ) AS col1
----
94

query I rowsort
SELECT ALL 8 + - ( 26 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT + 18 * + COUNT( * ) - + 27
----
-9

skipif mysql # not compatible
query I rowsort label-8104
SELECT + 18 * + COUNT ( * ) - + 27
----
-9

query I rowsort
SELECT ALL 84 + ( ( 47 ) )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT ( - 0 ) * - 27 - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8106
SELECT ( - 0 ) * - 27 - - COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT 13 + + MAX( DISTINCT + 60 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT 13 + + MAX ( DISTINCT + 60 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL + COALESCE ( COUNT( * ), 73 ) + MIN( ALL + 45 ) * - 63 AS col2
----
-2834

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL + COALESCE ( COUNT ( * ), 73 ) + MIN ( ALL + 45 ) * - 63 AS col2
----
-2834

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT ALL - 64 DIV 20 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL - 64 / 20 AS col0
----
-3

query I rowsort
SELECT - COALESCE ( - 3, - 43 ) AS col2
----
3

query I rowsort
SELECT ALL 48 + - CASE + 56 WHEN 53 THEN 51 * 97 END * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT SUM( DISTINCT 91 ) * - COUNT( * ) + - 16 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-8112
SELECT SUM ( DISTINCT 91 ) * - COUNT ( * ) + - 16 AS col1
----
-107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8113
SELECT + 60 * COALESCE ( 80, - MIN( 40 ) DIV + 25 ) AS col2
----
4800

skipif mysql # not compatible
query I rowsort label-8113
SELECT + 60 * COALESCE ( 80, - MIN ( 40 ) / + 25 ) AS col2
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + ( COUNT( * ) ) + - 30 * 25
----
-749

skipif mysql # not compatible
query I rowsort label-8114
SELECT + ( COUNT ( * ) ) + - 30 * 25
----
-749

query I rowsort
SELECT - 36 - 68 * - 27
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT - COUNT( 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-8116
SELECT - COUNT ( 50 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8117
SELECT + COUNT( * ) + + CASE - 97 WHEN - 44 * 12 THEN NULL ELSE COUNT( DISTINCT CAST( NULL AS SIGNED ) ) END
----
1

skipif mysql # not compatible
query I rowsort label-8117
SELECT + COUNT ( * ) + + CASE - 97 WHEN - 44 * 12 THEN NULL ELSE COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) END
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8118
SELECT - 12 DIV + 26 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8118
SELECT - 12 / + 26 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT + COUNT( * ) * 20 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8119
SELECT + COUNT ( * ) * 20 AS col1
----
20

query I rowsort
SELECT - 30 * - ( ( - 20 ) * - ( 95 * 99 + - 20 ) )
----
5631000

query I rowsort
SELECT DISTINCT - 46 * 5 AS col0
----
-230

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT ALL - ( + ( CASE - 12 WHEN COUNT( * ) THEN COUNT( * ) + + 83 WHEN - 12 THEN NULL ELSE NULL END ) ) - MAX( - 9 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL - ( + ( CASE - 12 WHEN COUNT ( * ) THEN COUNT ( * ) + + 83 WHEN - 12 THEN NULL ELSE NULL END ) ) - MAX ( - 9 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT + 0 + CASE 50 WHEN COUNT( * ) THEN NULL ELSE 81 END
----
81

skipif mysql # not compatible
query I rowsort label-8123
SELECT + 0 + CASE 50 WHEN COUNT ( * ) THEN NULL ELSE 81 END
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ALL SUM( ALL + ( - NULLIF ( 75, 36 ) ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL SUM ( ALL + ( - NULLIF ( 75, 36 ) ) ) AS col2
----
-75

query I rowsort
SELECT - 77 + - 63
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL COUNT( ALL 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL COUNT ( ALL 95 ) AS col0
----
1

query I rowsort
SELECT - 53 + 44 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT - 70 * CASE - 58 WHEN + 51 THEN NULL WHEN 56 THEN 30 * COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT - 70 * CASE - 58 WHEN + 51 THEN NULL WHEN 56 THEN 30 * COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL SUM( + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL SUM ( + 35 )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8130
SELECT - CASE + 2 WHEN MAX( DISTINCT 46 ) THEN NULL WHEN 78 * ( 8 / COUNT( * ) ) THEN 1 - - CAST( ( + 48 ) AS SIGNED ) * + 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8130
SELECT - CASE + 2 WHEN MAX ( DISTINCT 46 ) THEN NULL WHEN 78 * ( 8 / COUNT ( * ) ) THEN 1 - - CAST ( ( + 48 ) AS INTEGER ) * + 81 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT + 58 + - 1 DIV 26
----
58

skipif mysql # not compatible
query I rowsort label-8131
SELECT + 58 + - 1 / 26
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT DISTINCT SUM( ALL 40 )
----
40

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT SUM ( ALL 40 )
----
40

query I rowsort
SELECT - 34 * 68 AS col0
----
-2312

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT ALL - 30 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL - 30 / 39
----
0

query I rowsort
SELECT 0 * - 93 + + 3 AS col1
----
3

query I rowsort
SELECT ALL + - ( - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + - NULLIF ( - 54, COUNT( 60 ) * + COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-8137
SELECT + - NULLIF ( - 54, COUNT ( 60 ) * + COUNT ( * ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT ALL - COUNT( DISTINCT 59 ) * - 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL - COUNT ( DISTINCT 59 ) * - 21 AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8139
SELECT - - COUNT( - CAST( NULL AS SIGNED ) ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-8139
SELECT - - COUNT ( - CAST ( NULL AS INTEGER ) ) / 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT 65 * - COUNT( * ) + 74 * - 96 col2
----
-7169

skipif mysql # not compatible
query I rowsort label-8140
SELECT 65 * - COUNT ( * ) + 74 * - 96 col2
----
-7169

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT + 67 - 39 * COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8141
SELECT + 67 - 39 * COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT - COUNT( * ) / + CASE WHEN - 57 NOT BETWEEN ( 30 ) AND ( + 65 ) THEN NULL ELSE - 38 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT - COUNT ( * ) / + CASE WHEN - 57 NOT BETWEEN ( 30 ) AND ( + 65 ) THEN NULL ELSE - 38 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL + 72 * 50 + - CASE 39 WHEN COUNT( * ) / 48 THEN 20 + - NULLIF ( 97 + + 50, MAX( 49 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL + 72 * 50 + - CASE 39 WHEN COUNT ( * ) / 48 THEN 20 + - NULLIF ( 97 + + 50, MAX ( 49 ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT - 34 + + 85 DIV + 72 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8144
SELECT - 34 + + 85 / + 72 AS col2
----
-33

query I rowsort
SELECT ALL - 93 * + 99 AS col2
----
-9207

query I rowsort
SELECT ALL + - ( 62 ) AS col2
----
-62

query I rowsort
SELECT 49 * 82 + - 30
----
3988

query I rowsort
SELECT + + ( + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT + COUNT( - 24 )
----
1

skipif mysql # not compatible
query I rowsort label-8149
SELECT + COUNT ( - 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT COUNT( + 31 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8150
SELECT COUNT ( + 31 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT ALL SUM( 72 ) * 15
----
1080

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL SUM ( 72 ) * 15
----
1080

query I rowsort
SELECT + 1 * 75
----
75

query I rowsort
SELECT ALL - 87 * - 61 AS col2
----
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT COUNT( - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-8154
SELECT COUNT ( - 26 )
----
1

query I rowsort
SELECT - ( - - 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT + 70 * + COUNT( DISTINCT 81 ) * + 81 AS col0
----
5670

skipif mysql # not compatible
query I rowsort label-8156
SELECT + 70 * + COUNT ( DISTINCT 81 ) * + 81 AS col0
----
5670

query I rowsort
SELECT + 41 - - 95 * 77
----
7356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8158
SELECT - CASE ( 88 ) WHEN + 39 THEN 93 / - 73 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) WHEN + 38 THEN - NULLIF ( 39, 31 ) WHEN - 1 + 98 / + 96 THEN - 52 - - 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8158
SELECT - CASE ( 88 ) WHEN + 39 THEN 93 / - 73 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) WHEN + 38 THEN - NULLIF ( 39, 31 ) WHEN - 1 + 98 / + 96 THEN - 52 - - 37 END
----
NULL

query I rowsort
SELECT + 35 * - 81 * - ( 38 )
----
107730

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT - COUNT( * ) + + MAX( ALL - 33 )
----
-34

skipif mysql # not compatible
query I rowsort label-8160
SELECT - COUNT ( * ) + + MAX ( ALL - 33 )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8161
SELECT DISTINCT ( ( - 5 ) ) DIV + 5
----
-1

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT ( ( - 5 ) ) / + 5
----
-1

query I rowsort
SELECT + 11 * - 33 * ( 35 )
----
-12705

query I rowsort
SELECT ALL + 98 * - 63 AS col0
----
-6174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8164
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - 0
----
NULL

query I rowsort
SELECT + 63 - 30 + + 66 * - 22 col2
----
-1419

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT ALL - MAX( + - 41 ) * - 29 AS col2
----
-1189

skipif mysql # not compatible
query I rowsort label-8166
SELECT ALL - MAX ( + - 41 ) * - 29 AS col2
----
-1189

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT ALL - COUNT( * ) + + 79 + + 98 col1
----
176

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL - COUNT ( * ) + + 79 + + 98 col1
----
176

query I rowsort
SELECT ALL ( - - 36 ) col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT - - CAST( + 97 AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8169
SELECT - - CAST ( + 97 AS INTEGER ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT + - COUNT( * ) + - 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8170
SELECT + - COUNT ( * ) + - 0 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8171
SELECT - COALESCE ( - - 57, 98 ) DIV + 68 + + 46 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8171
SELECT - COALESCE ( - - 57, 98 ) / + 68 + + 46 AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT ALL - 18 DIV + - 91 + + 90 col1
----
90

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL - 18 / + - 91 + + 90 col1
----
90

query I rowsort
SELECT - + 28 * + 64 col0
----
-1792

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT + NULLIF ( + ( - 92 ), 71 + COALESCE ( COUNT( * ), - 57 ) * - 44 ) * 56
----
-5152

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + NULLIF ( + ( - 92 ), 71 + COALESCE ( COUNT ( * ), - 57 ) * - 44 ) * 56
----
-5152

onlyif mysql # DIV for integer division: 
query I rowsort label-8175
SELECT DISTINCT + 32 DIV ( - 7 ) + 45 * 36 AS col0
----
1616

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT + 32 / ( - 7 ) + 45 * 36 AS col0
----
1616

query I rowsort
SELECT ALL + + ( + 46 ) * 98
----
4508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8177
SELECT DISTINCT - - 92 DIV + - 24 + + ( 60 - + CASE - COUNT( * ) WHEN CASE 36 WHEN 12 * 66 + 85 THEN - COUNT( * ) WHEN + 55 THEN + 6 + + 89 END THEN NULL WHEN 89 THEN NULL ELSE - 30 + - 67 END ) AS col1
----
154

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT - - 92 / + - 24 + + ( 60 - + CASE - COUNT ( * ) WHEN CASE 36 WHEN 12 * 66 + 85 THEN - COUNT ( * ) WHEN + 55 THEN + 6 + + 89 END THEN NULL WHEN 89 THEN NULL ELSE - 30 + - 67 END ) AS col1
----
154

query I rowsort
SELECT + ( - 47 ) col0
----
-47

query I rowsort
SELECT ALL + 23 * + 15
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT 80 + - - COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-8180
SELECT 80 + - - COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT - 81 / + CASE 19 WHEN - 92 - + 79 THEN AVG ( - 23 ) WHEN - 2 THEN - 38 / - 43 - COUNT( * ) END * 62 + + 68 / - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT - 81 / + CASE 19 WHEN - 92 - + 79 THEN AVG ( - 23 ) WHEN - 2 THEN - 38 / - 43 - COUNT ( * ) END * 62 + + 68 / - 61
----
NULL

query I rowsort
SELECT DISTINCT - ( + 98 ) col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8183
SELECT ALL - 92 - - CAST( - 45 AS SIGNED ) + + 80 * + 34
----
2583

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL - 92 - - CAST ( - 45 AS INTEGER ) + + 80 * + 34
----
2583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT ALL - CAST( + + 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL - CAST ( + + 74 AS INTEGER )
----
-74

query I rowsort
SELECT - 72 * 25 * - 2 - 70 AS col1
----
3530

query I rowsort
SELECT DISTINCT - ( - - COALESCE ( - - 0, - 46 * - 9, + 89 + - 99 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT ALL CAST( NULL AS SIGNED ) * - AVG ( - 90 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL CAST ( NULL AS INTEGER ) * - AVG ( - 90 ) AS col1
----
NULL

query II rowsort
SELECT 48 AS col1, ( - 90 ) AS col2
----
48
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT COUNT( * ) - + 31 * + CASE 75 WHEN + COUNT( * ) + - 2 * - 33 THEN - 53 WHEN CASE COALESCE ( - SUM( ( 55 ) ), 54 * NULLIF ( + 62, + 17 ), 23 ) WHEN + 64 + ( + 48 ) THEN COUNT( * ) * - COUNT( * ) + + 87 WHEN - 37 THEN NULL ELSE - AVG ( DISTINCT 58 ) + - 49 * COUNT( * ) END + - COUNT( * ) THEN 38 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8189
SELECT COUNT ( * ) - + 31 * + CASE 75 WHEN + COUNT ( * ) + - 2 * - 33 THEN - 53 WHEN CASE COALESCE ( - SUM ( ( 55 ) ), 54 * NULLIF ( + 62, + 17 ), 23 ) WHEN + 64 + ( + 48 ) THEN COUNT ( * ) * - COUNT ( * ) + + 87 WHEN - 37 THEN NULL ELSE - AVG ( DISTINCT 58 ) + - 49 * COUNT ( * ) END + - COUNT ( * ) THEN 38 END AS col1
----
NULL

query I rowsort
SELECT 10 + + 45 + - + 68 AS col0
----
-13

query I rowsort
SELECT 45 - - 53 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT 19 + ( SUM( ALL - ( 86 ) ) )
----
-67

skipif mysql # not compatible
query I rowsort label-8192
SELECT 19 + ( SUM ( ALL - ( 86 ) ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL ( + - 78 ) * - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL ( + - 78 ) * - COUNT ( * )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8194
SELECT 48 AS col2, COUNT( - 90 ) DIV 58 + 98 * + 84
----
48
8232

skipif mysql # not compatible
query II rowsort label-8194
SELECT 48 AS col2, COUNT ( - 90 ) / 58 + 98 * + 84
----
48
8232

query I rowsort
SELECT ALL + 57 * + 63 * - 98 AS col1
----
-351918

query I rowsort
SELECT 35 + - + ( - 29 ) - ( - 30 )
----
94

query I rowsort
SELECT DISTINCT - 84 + + - 36 + + - 10 AS col2
----
-130

query II rowsort
SELECT ALL 76, - 42 AS col1
----
76
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8199
SELECT CASE - 88 WHEN 18 THEN NULL ELSE 12 DIV - 35 + - 56 END DIV + COALESCE ( COUNT( * ) * 43 + + 96, - MAX( 76 ), - COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8199
SELECT CASE - 88 WHEN 18 THEN NULL ELSE 12 / - 35 + - 56 END / + COALESCE ( COUNT ( * ) * 43 + + 96, - MAX ( 76 ), - COUNT ( * ) ) AS col2
----
0

query I rowsort
SELECT 54 + - + CASE - 86 WHEN AVG ( 7 ) * 78 THEN 41 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8201
SELECT DISTINCT 34, - 69 + 94 + - NULLIF ( ( 45 ) + 28, + ( + 77 ) ) DIV + 78 AS col1
----
34
25

skipif mysql # not compatible
query II rowsort label-8201
SELECT DISTINCT 34, - 69 + 94 + - NULLIF ( ( 45 ) + 28, + ( + 77 ) ) / + 78 AS col1
----
34
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT 8 + - 99 * + CASE 47 WHEN MAX( 76 ) THEN - 64 * 44 END * + MIN( - 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT 8 + - 99 * + CASE 47 WHEN MAX ( 76 ) THEN - 64 * 44 END * + MIN ( - 44 )
----
NULL

query I rowsort
SELECT - 57 * - 63
----
3591

query I rowsort
SELECT + 66 + + 14
----
80

query I rowsort
SELECT - 40 + - 27 AS col0
----
-67

query I rowsort
SELECT ALL - 79 + 94 col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8207
SELECT ALL - CASE - - CASE - 28 WHEN 66 * CASE 45 WHEN ( - 98 ) + + 1 THEN - ( ( - 74 ) ) * 24 ELSE NULL END + 30 THEN 80 * + CAST( NULL AS SIGNED ) WHEN AVG ( - 66 ) THEN NULL END WHEN 7 THEN COUNT( * ) WHEN 32 THEN + 71 * - MIN( + 32 ) ELSE 20 * + 69 END DIV - 19 col1
----
72

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL - CASE - - CASE - 28 WHEN 66 * CASE 45 WHEN ( - 98 ) + + 1 THEN - ( ( - 74 ) ) * 24 ELSE NULL END + 30 THEN 80 * + CAST ( NULL AS INTEGER ) WHEN AVG ( - 66 ) THEN NULL END WHEN 7 THEN COUNT ( * ) WHEN 32 THEN + 71 * - MIN ( + 32 ) ELSE 20 * + 69 END / - 19 col1
----
72

query I rowsort
SELECT 77 + - 55
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT ALL + + COUNT( * ) * + 32
----
32

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL + + COUNT ( * ) * + 32
----
32

query I rowsort
SELECT - 16 + + - 95
----
-111

query I rowsort
SELECT ALL 85 + + 2 AS col0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8212
SELECT 8 DIV 99 * - + 2 + + 54 + + 83
----
137

skipif mysql # not compatible
query I rowsort label-8212
SELECT 8 / 99 * - + 2 + + 54 + + 83
----
137

query I rowsort
SELECT ALL - + ( - 69 ) - - 14
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-8214
SELECT + 86 AS col1, + COUNT( DISTINCT - - 9 ) * COUNT( * ) col1
----
86
1

skipif mysql # not compatible
query II rowsort label-8214
SELECT + 86 AS col1, + COUNT ( DISTINCT - - 9 ) * COUNT ( * ) col1
----
86
1

query I rowsort
SELECT + 20 * + + 12 + - 47 + + 43 + - 81 AS col2
----
155

query I rowsort
SELECT 46 - 40 AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8217
SELECT + CAST( + CAST( 5 AS SIGNED ) AS SIGNED ) + - 46 DIV 56 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8217
SELECT + CAST ( + CAST ( 5 AS INTEGER ) AS INTEGER ) + - 46 / 56 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT COUNT( * ) * + 58 + + 55
----
113

skipif mysql # not compatible
query I rowsort label-8218
SELECT COUNT ( * ) * + 58 + + 55
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT - COALESCE ( - SUM( - NULLIF ( 36, 4 ) ), 29 * 96, 41 ) * - 73 + 89 * COUNT( ALL + 0 * 22 ) AS col0
----
2717

skipif mysql # not compatible
query I rowsort label-8219
SELECT - COALESCE ( - SUM ( - NULLIF ( 36, 4 ) ), 29 * 96, 41 ) * - 73 + 89 * COUNT ( ALL + 0 * 22 ) AS col0
----
2717

onlyif mysql # DIV for integer division: 
query I rowsort label-8220
SELECT + 19 DIV - 73 + 35
----
35

skipif mysql # not compatible
query I rowsort label-8220
SELECT + 19 / - 73 + 35
----
35

query I rowsort
SELECT ALL - ( 85 ) col0
----
-85

query I rowsort
SELECT 1 + - - 74 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT 4 * - COUNT( - - 36 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-8223
SELECT 4 * - COUNT ( - - 36 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL + COALESCE ( 35, + 19 + - + 84 + + 23 * + 52 * 12 ) * - CASE 1 WHEN - 44 THEN + 48 * + ( COUNT( 51 ) * COUNT( * ) ) ELSE 78 END AS col0
----
-2730

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + COALESCE ( 35, + 19 + - + 84 + + 23 * + 52 * 12 ) * - CASE 1 WHEN - 44 THEN + 48 * + ( COUNT ( 51 ) * COUNT ( * ) ) ELSE 78 END AS col0
----
-2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT - CAST( NULL AS SIGNED ) * + 42 + + ( - + CAST( + 8 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT - CAST ( NULL AS INTEGER ) * + 42 + + ( - + CAST ( + 8 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT 30 * + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8226
SELECT 30 * + COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT COUNT( * ) + + 95 + 42
----
138

skipif mysql # not compatible
query I rowsort label-8227
SELECT COUNT ( * ) + + 95 + 42
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8228
SELECT DISTINCT - NULLIF ( - 99, CAST( - + 35 AS SIGNED ) ) * 80 col1
----
7920

skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT - NULLIF ( - 99, CAST ( - + 35 AS INTEGER ) ) * 80 col1
----
7920

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8229
SELECT 16 * NULLIF ( 81, + COUNT( * ) ) * + CAST( - NULLIF ( + CASE + 51 WHEN 26 + - 6 THEN COUNT( * ) + COALESCE ( COALESCE ( + 10, 35 + - 53 ), 87 * + 37, 49 - CASE 48 WHEN - SUM( ALL - 14 ) THEN - 28 ELSE NULL END ) ELSE NULL END, + 69 ) + 56 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8229
SELECT 16 * NULLIF ( 81, + COUNT ( * ) ) * + CAST ( - NULLIF ( + CASE + 51 WHEN 26 + - 6 THEN COUNT ( * ) + COALESCE ( COALESCE ( + 10, 35 + - 53 ), 87 * + 37, 49 - CASE 48 WHEN - SUM ( ALL - 14 ) THEN - 28 ELSE NULL END ) ELSE NULL END, + 69 ) + 56 AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 19 * + 98 * 81
----
150822

query I rowsort
SELECT 34 * + 44 * + + 38 + - 27 + 11
----
56832

query I rowsort
SELECT ALL - 71 + - - 99 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT 45 * - MIN( ALL - 98 ) AS col2
----
4410

skipif mysql # not compatible
query I rowsort label-8233
SELECT 45 * - MIN ( ALL - 98 ) AS col2
----
4410

query I rowsort
SELECT DISTINCT 34 + - + 28 AS col1
----
6

query I rowsort
SELECT 25 - + 11 * 91
----
-976

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT 35 - - CASE + 85 WHEN 40 + - 86 * 6 THEN - 23 + 84 WHEN NULLIF ( - CASE - COUNT( ALL - 15 ) WHEN 36 * - ( 54 ) THEN - CASE - 36 WHEN 59 * 66 THEN + ( + 84 ) WHEN CASE COUNT( * ) WHEN 68 THEN + CASE SUM( ALL 3 ) WHEN COALESCE ( + COALESCE ( 78, 61 ), + 58 ) * 58 THEN COUNT( * ) * 69 WHEN - 45 THEN NULL WHEN COUNT( * ) / 39 THEN COUNT( * ) END END THEN NULL ELSE NULL END * - 42 ELSE NULL END, NULLIF ( 61, - 82 ) * - 26 ) - 10 / + 75 THEN 26 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT 35 - - CASE + 85 WHEN 40 + - 86 * 6 THEN - 23 + 84 WHEN NULLIF ( - CASE - COUNT ( ALL - 15 ) WHEN 36 * - ( 54 ) THEN - CASE - 36 WHEN 59 * 66 THEN + ( + 84 ) WHEN CASE COUNT ( * ) WHEN 68 THEN + CASE SUM ( ALL 3 ) WHEN COALESCE ( + COALESCE ( 78, 61 ), + 58 ) * 58 THEN COUNT ( * ) * 69 WHEN - 45 THEN NULL WHEN COUNT ( * ) / 39 THEN COUNT ( * ) END END THEN NULL ELSE NULL END * - 42 ELSE NULL END, NULLIF ( 61, - 82 ) * - 26 ) - 10 / + 75 THEN 26 * COUNT ( * ) END
----
NULL

query I rowsort
SELECT DISTINCT + + 6 + - 73 * + - 79
----
5773

query I rowsort
SELECT ( + 32 ) * 35 + + + 51 AS col2
----
1171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8239
SELECT - + ( - 52 ), + CAST( + 7 AS SIGNED ) AS col1
----
52
7

skipif mysql # not compatible
query II rowsort label-8239
SELECT - + ( - 52 ), + CAST ( + 7 AS INTEGER ) AS col1
----
52
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT DISTINCT + + 14 * CASE + - 15 WHEN 72 - 17 THEN 5 * - 70 END / + COUNT( * ) + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT DISTINCT + + 14 * CASE + - 15 WHEN 72 - 17 THEN 5 * - 70 END / + COUNT ( * ) + + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT 61 - - - MIN( + - 35 )
----
96

skipif mysql # not compatible
query I rowsort label-8241
SELECT 61 - - - MIN ( + - 35 )
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8242
SELECT DISTINCT + - 64 - COUNT( * ) DIV + 88 * + 51 * + 80 + SUM( + 58 )
----
-6

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT + - 64 - COUNT ( * ) / + 88 * + 51 * + 80 + SUM ( + 58 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT DISTINCT NULLIF ( + + 97, COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT NULLIF ( + + 97, COUNT ( * ) )
----
97

query I rowsort
SELECT DISTINCT - 26 - + 84 + + - 39
----
-149

query I rowsort
SELECT + COALESCE ( 64, + - ( - 15 ) ) * 78 AS col1
----
4992

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT - - CASE + 11 WHEN + 95 THEN NULL WHEN 73 + + 22 THEN SUM( 17 ) - 49 ELSE - 90 + + 53 END AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8246
SELECT - - CASE + 11 WHEN + 95 THEN NULL WHEN 73 + + 22 THEN SUM ( 17 ) - 49 ELSE - 90 + + 53 END AS col2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - 72 / - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 72 / - + 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8248
SELECT - NULLIF ( - NULLIF ( + + COALESCE ( 26, CAST( NULL AS SIGNED ) + - 39 ), 34 ), 99 + - 91 )
----
26

skipif mysql # not compatible
query I rowsort label-8248
SELECT - NULLIF ( - NULLIF ( + + COALESCE ( 26, CAST ( NULL AS INTEGER ) + - 39 ), 34 ), 99 + - 91 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8249
SELECT + - COUNT( DISTINCT + + 75 ) + - 83 DIV - 28 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8249
SELECT + - COUNT ( DISTINCT + + 75 ) + - 83 / - 28 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT + + ( COUNT( * ) ) * - - 37 + + + 30 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-8250
SELECT + + ( COUNT ( * ) ) * - - 37 + + + 30 AS col2
----
67

query I rowsort
SELECT DISTINCT 42 * + 9 AS col1
----
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT + + 52 DIV COALESCE ( - 78, + 6 * + 4 ) - - MAX( 21 )
----
21

skipif mysql # not compatible
query I rowsort label-8252
SELECT + + 52 / COALESCE ( - 78, + 6 * + 4 ) - - MAX ( 21 )
----
21

query I rowsort
SELECT + 78 * - 74 AS col2
----
-5772

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ALL 84 * NULLIF ( + - COUNT( * ), + - 87 )
----
-84

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL 84 * NULLIF ( + - COUNT ( * ), + - 87 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT CASE - + 74 WHEN + 91 * + NULLIF ( - + 40, 59 ) * 14 THEN ( ( 98 ) ) WHEN 0 THEN 48 + + CAST( NULL AS SIGNED ) WHEN 60 THEN COALESCE ( COALESCE ( 69, - 94 / 63 ), - 10 / 82 ) * 47 + 26 ELSE 87 * + 99 - + 12 END
----
8601

skipif mysql # not compatible
query I rowsort label-8255
SELECT CASE - + 74 WHEN + 91 * + NULLIF ( - + 40, 59 ) * 14 THEN ( ( 98 ) ) WHEN 0 THEN 48 + + CAST ( NULL AS INTEGER ) WHEN 60 THEN COALESCE ( COALESCE ( 69, - 94 / 63 ), - 10 / 82 ) * 47 + 26 ELSE 87 * + 99 - + 12 END
----
8601

query I rowsort
SELECT + 18 + - 88 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT + NULLIF ( COUNT( * ), + 4 / 61 + + - CASE 22 WHEN + 59 + + CASE 76 WHEN - 32 + 99 THEN - 4 * 4 + 34 * - 92 END THEN 52 ELSE 80 / - NULLIF ( ( 53 ), ( 75 ) ) END - MAX( 16 ) * 44 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8257
SELECT + NULLIF ( COUNT ( * ), + 4 / 61 + + - CASE 22 WHEN + 59 + + CASE 76 WHEN - 32 + 99 THEN - 4 * 4 + 34 * - 92 END THEN 52 ELSE 80 / - NULLIF ( ( 53 ), ( 75 ) ) END - MAX ( 16 ) * 44 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8258
SELECT DISTINCT - 89 * + 95 * + + CASE - - 57 WHEN - 61 THEN 1 ELSE 30 * COUNT( * ) END / + COUNT( * ) + ( - 6 - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8258
SELECT DISTINCT - 89 * + 95 * + + CASE - - 57 WHEN - 61 THEN 1 ELSE 30 * COUNT ( * ) END / + COUNT ( * ) + ( - 6 - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8259
SELECT DISTINCT - ( + - 91 ) * + CAST( NULL AS SIGNED ) + - ( - - 89 ) + - 57 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT - ( + - 91 ) * + CAST ( NULL AS INTEGER ) + - ( - - 89 ) + - 57 * 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL 19 * - 47 + COUNT( 48 )
----
-892

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL 19 * - 47 + COUNT ( 48 )
----
-892

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT - 64 + + MAX( DISTINCT 61 ) + - + 82 * MAX( DISTINCT 78 ) * - 32 AS col1
----
204669

skipif mysql # not compatible
query I rowsort label-8261
SELECT - 64 + + MAX ( DISTINCT 61 ) + - + 82 * MAX ( DISTINCT 78 ) * - 32 AS col1
----
204669

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT ALL + MAX( - - 89 ) * 41 + COUNT( ( 46 ) ) AS col2
----
3650

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL + MAX ( - - 89 ) * 41 + COUNT ( ( 46 ) ) AS col2
----
3650

query I rowsort
SELECT - 40 + + 0 AS col1
----
-40

query I rowsort
SELECT + 52 + + 90 * + 78 * 74
----
519532

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL - ( - COUNT( + 39 ) ) * - + 97
----
-97

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL - ( - COUNT ( + 39 ) ) * - + 97
----
-97

query I rowsort
SELECT ALL - 79 * - 89 + - + 39 col2
----
6992

query I rowsort
SELECT + 4 + ( - 56 )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT 3 * + + COALESCE ( + - CAST( NULL AS SIGNED ), + 34 * + - ( - 64 ) * - 27 ) - 46 AS col0
----
-176302

skipif mysql # not compatible
query I rowsort label-8268
SELECT 3 * + + COALESCE ( + - CAST ( NULL AS INTEGER ), + 34 * + - ( - 64 ) * - 27 ) - 46 AS col0
----
-176302

query I rowsort
SELECT ALL - 67 * + 25
----
-1675

query I rowsort
SELECT - + 48 + + + 29 AS col1
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8271
SELECT - - 43 + + 92 + - MAX( DISTINCT 48 ) + - + 37 * CASE 25 * 98 WHEN NULLIF ( + COALESCE ( - NULLIF ( ( COUNT( * ) ), 6 + COUNT( * ) ), 36 * 88, 22 * + 30 ), 39 ) + - 19 THEN + 58 DIV 51 ELSE COUNT( ALL 27 ) END AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8271
SELECT - - 43 + + 92 + - MAX ( DISTINCT 48 ) + - + 37 * CASE 25 * 98 WHEN NULLIF ( + COALESCE ( - NULLIF ( ( COUNT ( * ) ), 6 + COUNT ( * ) ), 36 * 88, 22 * + 30 ), 39 ) + - 19 THEN + 58 / 51 ELSE COUNT ( ALL 27 ) END AS col2
----
50

query I rowsort
SELECT DISTINCT - 55 col2
----
-55

query I rowsort
SELECT DISTINCT + + 11 - + + 1
----
10

query I rowsort
SELECT - 2 + + 14 + - 13
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8275
SELECT - + 97 DIV - 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8275
SELECT - + 97 / - 50 AS col0
----
1

query I rowsort
SELECT - - 80 + - - 55 AS col1
----
135

query I rowsort
SELECT - + 16 * + 83 * - 71 AS col2
----
94288

query I rowsort
SELECT - ( - 42 ) + + ( + 48 ) AS col1
----
90

query I rowsort
SELECT + - 41 + - 28 * + 25
----
-741

query II rowsort
SELECT - 43 AS col1, - 39 * 82 col2
----
-43
-3198

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT DISTINCT - COUNT( * ) * + 95
----
-95

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT - COUNT ( * ) * + 95
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT - + 64 + - 58 + + - ( + COUNT( * ) ) + + 56 * COUNT( * ) * - 25
----
-1523

skipif mysql # not compatible
query I rowsort label-8282
SELECT - + 64 + - 58 + + - ( + COUNT ( * ) ) + + 56 * COUNT ( * ) * - 25
----
-1523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8283
SELECT - 66 + + CAST( - ( - COUNT( * ) ) AS SIGNED ) DIV - 18 * + 18 col1
----
-66

skipif mysql # not compatible
query I rowsort label-8283
SELECT - 66 + + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) / - 18 * + 18 col1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8284
SELECT CAST( - + 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-8284
SELECT CAST ( - + 40 AS INTEGER )
----
-40

query I rowsort
SELECT - 97 * - 38 + + + 63
----
3749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8286
SELECT + COUNT( * ) + - 50 + + 89 DIV + CAST( 65 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8286
SELECT + COUNT ( * ) + - 50 + + 89 / + CAST ( 65 AS INTEGER ) AS col2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8287
SELECT + ( COALESCE ( 60, + + 33 DIV - COUNT( * ) ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8287
SELECT + ( COALESCE ( 60, + + 33 / - COUNT ( * ) ) ) AS col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT 34 * + 24 + - 35 DIV + 42 * ( 43 ) col0
----
816

skipif mysql # not compatible
query I rowsort label-8288
SELECT 34 * + 24 + - 35 / + 42 * ( 43 ) col0
----
816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8289
SELECT - 46 DIV 69 + + 4 + + COUNT( * ) + + - 59 + + MIN( DISTINCT - 98 ) + 7 * + 44
----
156

skipif mysql # not compatible
query I rowsort label-8289
SELECT - 46 / 69 + + 4 + + COUNT ( * ) + + - 59 + + MIN ( DISTINCT - 98 ) + 7 * + 44
----
156

query I rowsort
SELECT ( 6 ) col0
----
6

query I rowsort
SELECT + 88 + - 97 col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT ALL + ( - 32 ) DIV - + 42 + - 97 DIV - - 87
----
-1

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + ( - 32 ) / - + 42 + - 97 / - - 87
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8293
SELECT ALL 76 * + - 64 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL 76 * + - 64 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT + CAST( + 17 AS SIGNED ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-8294
SELECT + CAST ( + 17 AS INTEGER ) AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8295
SELECT + 52 * CASE - NULLIF ( + 11, 81 ) WHEN - CAST( + 75 AS SIGNED ) THEN NULL WHEN - COALESCE ( 99, + 71, 22 * + 90 + 63 ) THEN + 37 END / 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8295
SELECT + 52 * CASE - NULLIF ( + 11, 81 ) WHEN - CAST ( + 75 AS INTEGER ) THEN NULL WHEN - COALESCE ( 99, + 71, 22 * + 90 + 63 ) THEN + 37 END / 20
----
NULL

query I rowsort
SELECT ( - 10 ) col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT ALL 23 * - MIN( ALL + + 29 ) * 9 + - 65
----
-6068

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL 23 * - MIN ( ALL + + 29 ) * 9 + - 65
----
-6068

onlyif mysql # aggregate syntax: 
query II rowsort label-8298
SELECT + 28 * + 55 AS col0, - COUNT( * ) * - 76 + - MIN( DISTINCT + - 52 ) AS col2
----
1540
128

skipif mysql # not compatible
query II rowsort label-8298
SELECT + 28 * + 55 AS col0, - COUNT ( * ) * - 76 + - MIN ( DISTINCT + - 52 ) AS col2
----
1540
128

query I rowsort
SELECT + 34 + + - 74
----
-40

query I rowsort
SELECT ALL 26 * + 10 + - + 68 AS col2
----
192

query II rowsort
SELECT DISTINCT + 19 col1, - 26
----
19
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT CASE - COUNT( * ) WHEN - 8 THEN NULL ELSE + 47 + COUNT( * ) END AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8302
SELECT CASE - COUNT ( * ) WHEN - 8 THEN NULL ELSE + 47 + COUNT ( * ) END AS col2
----
48

query I rowsort
SELECT ALL 87 * - 30 AS col1
----
-2610

query I rowsort
SELECT + 98 * - 65
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT NULLIF ( 35, - + 11 + - + COUNT( * ) * + - 2 * - NULLIF ( COUNT( * ), 49 * + COUNT( * ) + - 85 ) * 20 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT NULLIF ( 35, - + 11 + - + COUNT ( * ) * + - 2 * - NULLIF ( COUNT ( * ), 49 * + COUNT ( * ) + - 85 ) * 20 ) AS col0
----
35

query I rowsort
SELECT ALL - 0 * + 48 + - - 16 - - 23 * - 95 + + 18
----
-2151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT 75 * + + CAST( - 55 AS SIGNED )
----
-4125

skipif mysql # not compatible
query I rowsort label-8307
SELECT 75 * + + CAST ( - 55 AS INTEGER )
----
-4125

onlyif mysql # aggregate syntax: 
query II rowsort label-8308
SELECT - COUNT( * ) AS col1, - 61
----
-1
-61

skipif mysql # not compatible
query II rowsort label-8308
SELECT - COUNT ( * ) AS col1, - 61
----
-1
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT + COUNT( * ) - + 3 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8309
SELECT + COUNT ( * ) - + 3 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL + CASE - COUNT( * ) WHEN + COUNT( * ) - 83 THEN + ( 98 ) ELSE - 75 END * + 34
----
-2550

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL + CASE - COUNT ( * ) WHEN + COUNT ( * ) - 83 THEN + ( 98 ) ELSE - 75 END * + 34
----
-2550

query I rowsort
SELECT 24 - - 60 + ( - 37 ) col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT - 9 DIV 51 * - + 7 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8312
SELECT - 9 / 51 * - + 7 AS col1
----
0

query I rowsort
SELECT 54 * 48 AS col1
----
2592

query I rowsort
SELECT ALL 36 * + + 12
----
432

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT - 75 DIV - + CASE + 59 WHEN - 51 THEN NULL ELSE - 53 END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8315
SELECT - 75 / - + CASE + 59 WHEN - 51 THEN NULL ELSE - 53 END AS col0
----
-1

query I rowsort
SELECT ALL + 4 * 62 AS col1
----
248

query I rowsort
SELECT 39 - + 31 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL + - 29 + + 46 - 49 + + MIN( ALL - 16 ) * - 6 * + 17
----
1600

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL + - 29 + + 46 - 49 + + MIN ( ALL - 16 ) * - 6 * + 17
----
1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT - CASE - + 73 WHEN MAX( 82 ) + + + 7 THEN - + CASE 99 WHEN - 83 THEN NULL WHEN 93 THEN NULL ELSE + MAX( ALL - 41 ) * - COUNT( * ) END + - 66 * + 65 ELSE NULL END * CASE 54 - + ( - 33 + - 78 * COUNT( * ) ) * - 47 WHEN SUM( ALL - NULLIF ( 15, ( 94 ) * 45 ) ) / 89 THEN - CAST( + 67 AS SIGNED ) + + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT - CASE - + 73 WHEN MAX ( 82 ) + + + 7 THEN - + CASE 99 WHEN - 83 THEN NULL WHEN 93 THEN NULL ELSE + MAX ( ALL - 41 ) * - COUNT ( * ) END + - 66 * + 65 ELSE NULL END * CASE 54 - + ( - 33 + - 78 * COUNT ( * ) ) * - 47 WHEN SUM ( ALL - NULLIF ( 15, ( 94 ) * 45 ) ) / 89 THEN - CAST ( + 67 AS INTEGER ) + + 9 END
----
NULL

query I rowsort
SELECT 4 + + 94 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT COUNT( * ) * - 52 * - COUNT( + + 46 ) - - MIN( + + 32 )
----
84

skipif mysql # not compatible
query I rowsort label-8321
SELECT COUNT ( * ) * - 52 * - COUNT ( + + 46 ) - - MIN ( + + 32 )
----
84

query I rowsort
SELECT DISTINCT 41 + 10 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL - COUNT( * ) * + + COUNT( - 14 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL - COUNT ( * ) * + + COUNT ( - 14 ) AS col2
----
-1

query I rowsort
SELECT ALL 76 + - 54
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8325
SELECT ALL - COUNT( * ) + COUNT( * ), - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-8325
SELECT ALL - COUNT ( * ) + COUNT ( * ), - COUNT ( * ) AS col1
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT 29 * - 71 * + NULLIF ( + - ( 29 ), + 79 ) * COUNT( * ) AS col1
----
59711

skipif mysql # not compatible
query I rowsort label-8326
SELECT 29 * - 71 * + NULLIF ( + - ( 29 ), + 79 ) * COUNT ( * ) AS col1
----
59711

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8327
SELECT - 23 DIV SUM( DISTINCT - 37 ) * - 49 * - 79 + + - 14 + - - 49 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8327
SELECT - 23 / SUM ( DISTINCT - 37 ) * - 49 * - 79 + + - 14 + - - 49 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT MAX( + 14 ) * - 79 AS col0
----
-1106

skipif mysql # not compatible
query I rowsort label-8328
SELECT MAX ( + 14 ) * - 79 AS col0
----
-1106

query I rowsort
SELECT ALL - ( - - ( - 75 ) )
----
75

query I rowsort
SELECT 45 + - 46
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT DISTINCT - NULLIF ( + ( + COUNT( * ) ), - 52 ) - + 54
----
-55

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT - NULLIF ( + ( + COUNT ( * ) ), - 52 ) - + 54
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-8332
SELECT DISTINCT + 52 DIV - 36, 95 col0
----
-1
95

skipif mysql # not compatible
query II rowsort label-8332
SELECT DISTINCT + 52 / - 36, 95 col0
----
-1
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8333
SELECT + 57 + + + 93 + - CAST( NULL AS SIGNED ) * + 45 + + COUNT( + - COALESCE ( - 23, 87 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT + 57 + + + 93 + - CAST ( NULL AS INTEGER ) * + 45 + + COUNT ( + - COALESCE ( - 23, 87 ) ) col0
----
NULL

query I rowsort
SELECT ALL 96 * - 56 * + 5 AS col1
----
-26880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8335
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - - 40 col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8337
SELECT 55 * - CAST( 6 AS SIGNED ) * ( + 85 ) + - - 3 + + MIN( DISTINCT + 38 ) + CAST( NULL AS SIGNED ) * COUNT( DISTINCT 69 + + 63 ) + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT 55 * - CAST ( 6 AS INTEGER ) * ( + 85 ) + - - 3 + + MIN ( DISTINCT + 38 ) + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT 69 + + 63 ) + 79
----
NULL

query I rowsort
SELECT 90 * - 62 + + - 88
----
-5668

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8339
SELECT + - CAST( NULL AS DECIMAL ) * + COUNT( * ) * - 26 * 23 * - - 30 + - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8339
SELECT + - CAST ( NULL AS REAL ) * + COUNT ( * ) * - 26 * 23 * - - 30 + - 21 AS col0
----
NULL

query I rowsort
SELECT 38 + 55 AS col1
----
93

query I rowsort
SELECT 0 * 88 + - - 33 * + ( - 86 ) - - 2
----
-2836

query I rowsort
SELECT + 16 * + 28
----
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8343
SELECT DISTINCT MIN( DISTINCT CAST( + + 1 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT MIN ( DISTINCT CAST ( + + 1 AS INTEGER ) )
----
1

query I rowsort
SELECT ALL - 45 + - - 48
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT + 73 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT + 73 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 3, - 54 + + - 86 + - - 30 * + 66 ) AS col0
----
3

query I rowsort
SELECT DISTINCT CASE + 91 WHEN 83 / - + 40 * + - ( - 53 ) - 53 + - 92 THEN 74 + + 56 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL MIN( DISTINCT - 87 ) + - + COUNT( * ) + - 91
----
-179

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL MIN ( DISTINCT - 87 ) + - + COUNT ( * ) + - 91
----
-179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8349
SELECT ALL CASE - 24 WHEN 97 THEN + 69 WHEN - COUNT( * ) THEN NULL END + CAST( + SUM( DISTINCT 4 ) AS SIGNED ) - ( ( ( COUNT( * ) ) ) ) * + 70 * - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL CASE - 24 WHEN 97 THEN + 69 WHEN - COUNT ( * ) THEN NULL END + CAST ( + SUM ( DISTINCT 4 ) AS INTEGER ) - ( ( ( COUNT ( * ) ) ) ) * + 70 * - 87
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8350
SELECT COUNT( * ) + + + COUNT( * ) - + - 47 * - MAX( ALL + - 73 ) AS col1, + 93 AS col2
----
3433
93

skipif mysql # not compatible
query II rowsort label-8350
SELECT COUNT ( * ) + + + COUNT ( * ) - + - 47 * - MAX ( ALL + - 73 ) AS col1, + 93 AS col2
----
3433
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT 49 + 48 + + - MIN( ALL - ( + 33 ) )
----
130

skipif mysql # not compatible
query I rowsort label-8351
SELECT 49 + 48 + + - MIN ( ALL - ( + 33 ) )
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL + 70 + - - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL + 70 + - - COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT COALESCE ( + + 20, + 18, + - SUM( + ( - + 73 ) ), - - COUNT( ALL + 56 ) ) * 15
----
300

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT COALESCE ( + + 20, + 18, + - SUM ( + ( - + 73 ) ), - - COUNT ( ALL + 56 ) ) * 15
----
300

query I rowsort
SELECT 39 * 94 AS col1
----
3666

query I rowsort
SELECT ALL ( + + 79 ) * - COALESCE ( 8, + 54 ) AS col2
----
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT COUNT( * ) * + 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT COUNT ( * ) * + 35 AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8357
SELECT 44 DIV 73 + - CAST( 1 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8357
SELECT 44 / 73 + - CAST ( 1 AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8358
SELECT COALESCE ( - COUNT( * ), + COUNT( * ) + + 57 * - ( + + 29 ) DIV 64 * 1 ) * 15
----
-15

skipif mysql # not compatible
query I rowsort label-8358
SELECT COALESCE ( - COUNT ( * ), + COUNT ( * ) + + 57 * - ( + + 29 ) / 64 * 1 ) * 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT 64 * COUNT( * ) col1
----
64

skipif mysql # not compatible
query I rowsort label-8359
SELECT 64 * COUNT ( * ) col1
----
64

query I rowsort
SELECT + NULLIF ( + + 17, - - 27 ) AS col2
----
17

query I rowsort
SELECT 70 + + 81 AS col1
----
151

query I rowsort
SELECT 51 * 15
----
765

onlyif mysql # aggregate syntax: 
query II rowsort label-8363
SELECT COUNT( * ), ( + 86 ) * + 25 * + + 12 + + + 67 + + COUNT( * ) - - - 54 * + 61 col1
----
1
22574

skipif mysql # not compatible
query II rowsort label-8363
SELECT COUNT ( * ), ( + 86 ) * + 25 * + + 12 + + + 67 + + COUNT ( * ) - - - 54 * + 61 col1
----
1
22574

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT DISTINCT - MIN( ALL + - 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT - MIN ( ALL + - 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT 64 * - + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-8365
SELECT 64 * - + COUNT ( * )
----
-64

query I rowsort
SELECT 70 + 25 AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8367
SELECT ALL + COUNT( * ) * CAST( - + CASE + 28 WHEN + COUNT( * ) + - 68 + 73 THEN 62 END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL + COUNT ( * ) * CAST ( - + CASE + 28 WHEN + COUNT ( * ) + - 68 + 73 THEN 62 END AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 63 * + + 23 col0
----
1449

query I rowsort
SELECT ALL + + 55 * - 88 AS col0
----
-4840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8370
SELECT - + MAX( - 31 ) DIV 62 * - - COUNT( ALL 31 )
----
0

skipif mysql # not compatible
query I rowsort label-8370
SELECT - + MAX ( - 31 ) / 62 * - - COUNT ( ALL 31 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8371
SELECT + - 4 + - 72 + + 81 DIV + - COUNT( * ) AS col0
----
-157

skipif mysql # not compatible
query I rowsort label-8371
SELECT + - 4 + - 72 + + 81 / + - COUNT ( * ) AS col0
----
-157

query I rowsort
SELECT ALL + + 47 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT - + 34 * + COUNT( * ) * + ( - + 67 ) * - COUNT( - 81 ) - + CASE - 25 WHEN 0 * 33 - + 81 THEN 38 / 87 + - 86 WHEN 6 / 81 THEN + COUNT( * ) * 11 END - 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT - + 34 * + COUNT ( * ) * + ( - + 67 ) * - COUNT ( - 81 ) - + CASE - 25 WHEN 0 * 33 - + 81 THEN 38 / 87 + - 86 WHEN 6 / 81 THEN + COUNT ( * ) * 11 END - 64 col2
----
NULL

query II rowsort
SELECT + 50 AS col1, + 83
----
50
83

query I rowsort
SELECT ALL 97 * + 42 AS col2
----
4074

query I rowsort
SELECT + 66 + - 7 + 18
----
77

query I rowsort
SELECT DISTINCT - 46 + NULLIF ( + + 67, - 41 * ( + + 57 ) + - 45 * - 77 ) + ( ( 49 ) ) AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8378
SELECT - + COUNT( * ) AS col2, - 61 DIV 50 + + 34
----
-1
33

skipif mysql # not compatible
query II rowsort label-8378
SELECT - + COUNT ( * ) AS col2, - 61 / 50 + + 34
----
-1
33

query II rowsort
SELECT ALL 54 + + 65 + - 73, 78 AS col1
----
46
78

query I rowsort
SELECT - 24 - - 94
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT - + 91 DIV + - 97 * 50 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8381
SELECT - + 91 / + - 97 * 50 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8382
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8382
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8383
SELECT 60 AS col0, COUNT( * ) AS col1
----
60
1

skipif mysql # not compatible
query II rowsort label-8383
SELECT 60 AS col0, COUNT ( * ) AS col1
----
60
1

query I rowsort
SELECT + - 11 + + 80 AS col0
----
69

query I rowsort
SELECT - - COALESCE ( + 61, + ( - 27 ) ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8386
SELECT ALL CAST( + 91 AS SIGNED ) + - 68 * - + 16 + - - 97 + + 67 + - 97 * + - 57 + - 22 + 78 * - 69
----
1468

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL CAST ( + 91 AS INTEGER ) + - 68 * - + 16 + - - 97 + + 67 + - 97 * + - 57 + - 22 + 78 * - 69
----
1468

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL MAX( ALL - + 78 ) - + 38
----
-116

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL MAX ( ALL - + 78 ) - + 38
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT - ( + NULLIF ( - - 0, - 66 * + SUM( - 32 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8388
SELECT - ( + NULLIF ( - - 0, - 66 * + SUM ( - 32 ) ) )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8389
SELECT + 53 DIV ( + 88 ) * 34, 20 col2
----
0
20

skipif mysql # not compatible
query II rowsort label-8389
SELECT + 53 / ( + 88 ) * 34, 20 col2
----
0
20

query I rowsort
SELECT ALL 0 * 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8391
SELECT DISTINCT 29 DIV - - 47
----
0

skipif mysql # not compatible
query I rowsort label-8391
SELECT DISTINCT 29 / - - 47
----
0

query I rowsort
SELECT + 58 * + 1 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL 64 * - MAX( + 20 ) AS col2
----
-1280

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL 64 * - MAX ( + 20 ) AS col2
----
-1280

query I rowsort
SELECT ( 8 ) col2
----
8

query I rowsort
SELECT - 28 * - 11 AS col1
----
308

query I rowsort
SELECT 77 * - 18 + 18
----
-1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT - CAST( NULL AS SIGNED ) * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT - CAST ( NULL AS INTEGER ) * 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8398
SELECT ALL - 69 DIV + NULLIF ( + - 88, - + ( - ( + 85 ) ) ) * + - COUNT( * ) * 62 + 0
----
0

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL - 69 / + NULLIF ( + - 88, - + ( - ( + 85 ) ) ) * + - COUNT ( * ) * 62 + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8399
SELECT + - 63 + + 80 + + + CAST( - COUNT( * ) AS SIGNED ) + - 3
----
13

skipif mysql # not compatible
query I rowsort label-8399
SELECT + - 63 + + 80 + + + CAST ( - COUNT ( * ) AS INTEGER ) + - 3
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8400
SELECT ALL + + 0 * - 14 + + COALESCE ( - COALESCE ( - 23, + 11 ), - 47 + - 48 + - - 65, 66 * ( ( + ( MAX( ALL - 29 ) ) ) ) ) + 20 * ( 84 ) AS col1
----
1703

skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL + + 0 * - 14 + + COALESCE ( - COALESCE ( - 23, + 11 ), - 47 + - 48 + - - 65, 66 * ( ( + ( MAX ( ALL - 29 ) ) ) ) ) + 20 * ( 84 ) AS col1
----
1703

query I rowsort
SELECT + - 23 * + 20 + 3 + 53 AS col1
----
-404

query I rowsort
SELECT ALL 48 * 40 * + 21 * + 92 * + 91 + + ( - 87 )
----
337558953

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL - - COUNT( * ) * - COALESCE ( 58, NULLIF ( - + 43, 53 ) - - + 19 * - 36 * + 48 ) * + 17 + 78 AS col1
----
-908

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL - - COUNT ( * ) * - COALESCE ( 58, NULLIF ( - + 43, 53 ) - - + 19 * - 36 * + 48 ) * + 17 + 78 AS col1
----
-908

query I rowsort
SELECT ALL - 52 * - - 35 + + + 36 + - 47 + - CASE - 30 WHEN + + 83 * 24 + + 59 / 42 THEN - 28 WHEN + 53 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT + - 87 * - CAST( + + 77 AS SIGNED ) + + 90 + - 73 + 57
----
6773

skipif mysql # not compatible
query I rowsort label-8405
SELECT + - 87 * - CAST ( + + 77 AS INTEGER ) + + 90 + - 73 + 57
----
6773

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8406
SELECT - - 62 + - CAST( + COUNT( * ) AS SIGNED ) * + - ( - + ( - COUNT( * ) ) ) * + 28 + - - 77
----
167

skipif mysql # not compatible
query I rowsort label-8406
SELECT - - 62 + - CAST ( + COUNT ( * ) AS INTEGER ) * + - ( - + ( - COUNT ( * ) ) ) * + 28 + - - 77
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT - + 87 + + + 17 * 90 * + 87 + + ( + COUNT( * ) ) AS col1
----
133024

skipif mysql # not compatible
query I rowsort label-8407
SELECT - + 87 + + + 17 * 90 * + 87 + + ( + COUNT ( * ) ) AS col1
----
133024

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - 55 * 50 + + 86 + - ( - - 70 ) + - + 31 * ( - SUM( 51 ) ) * 49 + + 43 AS col1
----
74778

skipif mysql # not compatible
query I rowsort label-8408
SELECT - 55 * 50 + + 86 + - ( - - 70 ) + - + 31 * ( - SUM ( 51 ) ) * 49 + + 43 AS col1
----
74778

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT DISTINCT - 74 - + ( - SUM( DISTINCT - + ( + + ( + 35 ) ) ) ) AS col1
----
-109

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT - 74 - + ( - SUM ( DISTINCT - + ( + + ( + 35 ) ) ) ) AS col1
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT - CASE ( - 25 ) WHEN MIN( DISTINCT - 30 ) THEN - 31 WHEN + 7 THEN + 92 WHEN 48 THEN NULL ELSE + + ( - 32 ) + + 77 END AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8410
SELECT - CASE ( - 25 ) WHEN MIN ( DISTINCT - 30 ) THEN - 31 WHEN + 7 THEN + 92 WHEN 48 THEN NULL ELSE + + ( - 32 ) + + 77 END AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT ALL CAST( + - COUNT( DISTINCT 27 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL CAST ( + - COUNT ( DISTINCT 27 ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT - 36 * COUNT( * ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-8412
SELECT - 36 * COUNT ( * ) AS col0
----
-36

query I rowsort
SELECT + 42 * + - 87
----
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT - 53 + + COUNT( * ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-8414
SELECT - 53 + + COUNT ( * ) col2
----
-52

query I rowsort
SELECT - 12 * + + 42 col0
----
-504

query I rowsort
SELECT ALL 24 * + 67 * 30
----
48240

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT - COUNT( * ) + - + 68
----
-69

skipif mysql # not compatible
query I rowsort label-8417
SELECT - COUNT ( * ) + - + 68
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8418
SELECT + MIN( DISTINCT 18 ) DIV + COUNT( * ) - - 3 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8418
SELECT + MIN ( DISTINCT 18 ) / + COUNT ( * ) - - 3 AS col0
----
21

query I rowsort
SELECT - 6 + + 20
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8420
SELECT + CAST( ( + ( - + 27 ) ) AS SIGNED ) + + + 69
----
42

skipif mysql # not compatible
query I rowsort label-8420
SELECT + CAST ( ( + ( - + 27 ) ) AS INTEGER ) + + + 69
----
42

query I rowsort
SELECT - ( + ( + - 89 ) ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT DISTINCT - 63 * 77 * - COUNT( * ) AS col0
----
4851

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT - 63 * 77 * - COUNT ( * ) AS col0
----
4851

onlyif mysql # aggregate syntax: 
query II rowsort label-8423
SELECT - 8 AS col0, COUNT( * ) * + 28 + 3
----
-8
31

skipif mysql # not compatible
query II rowsort label-8423
SELECT - 8 AS col0, COUNT ( * ) * + 28 + 3
----
-8
31

query II rowsort
SELECT 52 AS col1, 46 AS col1
----
52
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8425
SELECT + 10 DIV + COUNT( * ) + - 60
----
-50

skipif mysql # not compatible
query I rowsort label-8425
SELECT + 10 / + COUNT ( * ) + - 60
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8426
SELECT 99 * CAST( - - 43 AS SIGNED )
----
4257

skipif mysql # not compatible
query I rowsort label-8426
SELECT 99 * CAST ( - - 43 AS INTEGER )
----
4257

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL 10 + COUNT( DISTINCT - - 45 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL 10 + COUNT ( DISTINCT - - 45 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT 5 + + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8428
SELECT 5 + + COUNT ( * ) AS col2
----
6

query II rowsort
SELECT + 75, + 37 AS col0
----
75
37

query I rowsort
SELECT + - 44 col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8431
SELECT - + CAST( 44 AS SIGNED ) * + - 42 + ( + NULLIF ( - + 43, + COUNT( * ) ) ) + 19
----
1824

skipif mysql # not compatible
query I rowsort label-8431
SELECT - + CAST ( 44 AS INTEGER ) * + - 42 + ( + NULLIF ( - + 43, + COUNT ( * ) ) ) + 19
----
1824

onlyif mysql # DIV for integer division: 
query I rowsort label-8432
SELECT - 3 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-8432
SELECT - 3 / + 30
----
0

query I rowsort
SELECT ALL 73 + - - ( - NULLIF ( - + 12, + 80 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT COUNT( * ) * CASE + - ( - 50 ) WHEN - NULLIF ( - - 21, - 64 + + + 10 * - 11 ) * - 76 THEN 38 - 62 * + 4 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT COUNT ( * ) * CASE + - ( - 50 ) WHEN - NULLIF ( - - 21, - 64 + + + 10 * - 11 ) * - 76 THEN 38 - 62 * + 4 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT ALL CAST( - + 26 AS SIGNED ) + - - 99 + - 52
----
21

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL CAST ( - + 26 AS INTEGER ) + - - 99 + - 52
----
21

query I rowsort
SELECT DISTINCT 91 + - 45 - ( - 70 ) * - 91 AS col1
----
-6324

query I rowsort
SELECT ALL - 21 + + 45
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL - + MIN( 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - + MIN ( 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8439
SELECT COUNT( * ) DIV 1
----
1

skipif mysql # not compatible
query I rowsort label-8439
SELECT COUNT ( * ) / 1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT ALL + 46 + + 22 + ( - + ( 81 ) ) DIV - 17
----
72

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL + 46 + + 22 + ( - + ( 81 ) ) / - 17
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8441
SELECT - CAST( NULL AS SIGNED ) AS col2, 90 col2
----
NULL
90

skipif mysql # not compatible
query II rowsort label-8441
SELECT - CAST ( NULL AS INTEGER ) AS col2, 90 col2
----
NULL
90

query II rowsort
SELECT + 46 AS col2, - 65 * + ( - - 7 )
----
46
-455

onlyif mysql # DIV for integer division: 
query I rowsort label-8443
SELECT ALL + 97 DIV 33 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL + 97 / 33 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8444
SELECT 93 DIV + 1 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8444
SELECT 93 / + 1 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT - COUNT( - NULLIF ( - 73, 46 ) ) * 4 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8445
SELECT - COUNT ( - NULLIF ( - 73, 46 ) ) * 4 AS col0
----
-4

query I rowsort
SELECT DISTINCT + 63 + 72
----
135

query I rowsort
SELECT ALL - - 7 - + 16
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + - MAX( - - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-8448
SELECT + - MAX ( - - 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT MIN( ALL + + 67 ) * 61 - + + 92 + - - 11 AS col0
----
4006

skipif mysql # not compatible
query I rowsort label-8449
SELECT MIN ( ALL + + 67 ) * 61 - + + 92 + - - 11 AS col0
----
4006

query I rowsort
SELECT ALL + ( + + 6 ) AS col2
----
6

query I rowsort
SELECT ALL + 70 - + + 93
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-8452
SELECT 29 - + 32 AS col1, 41 + + COUNT( * ) + CASE + + 69 WHEN 23 THEN - 31 * + 5 + COUNT( 1 ) END AS col2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8452
SELECT 29 - + 32 AS col1, 41 + + COUNT ( * ) + CASE + + 69 WHEN 23 THEN - 31 * + 5 + COUNT ( 1 ) END AS col2
----
-3
NULL

query I rowsort
SELECT 64 * + 35
----
2240

query II rowsort
SELECT 13 AS col1, - 56 AS col0
----
13
-56

query II rowsort
SELECT 29 AS col0, + 76 col0
----
29
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8456
SELECT ALL 99, + COUNT( * ) AS col1
----
99
1

skipif mysql # not compatible
query II rowsort label-8456
SELECT ALL 99, + COUNT ( * ) AS col1
----
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT DISTINCT SUM( 18 ) * - ( SUM( DISTINCT + NULLIF ( 48, - 97 ) ) ) col2
----
-864

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT SUM ( 18 ) * - ( SUM ( DISTINCT + NULLIF ( 48, - 97 ) ) ) col2
----
-864

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8458
SELECT DISTINCT + 4 DIV - 74 AS col2, MIN( 35 ) * + 19
----
0
665

skipif mysql # not compatible
query II rowsort label-8458
SELECT DISTINCT + 4 / - 74 AS col2, MIN ( 35 ) * + 19
----
0
665

onlyif mysql # DIV for integer division: 
query II rowsort label-8459
SELECT 24 col1, - 92 DIV ( - - 12 )
----
24
-7

skipif mysql # not compatible
query II rowsort label-8459
SELECT 24 col1, - 92 / ( - - 12 )
----
24
-7

query II rowsort
SELECT - 64 AS col0, - 91 * + 89
----
-64
-8099

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL + 86 + - COALESCE ( - 51, + 97 * COUNT( * ) * - 4 ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL + 86 + - COALESCE ( - 51, + 97 * COUNT ( * ) * - 4 ) AS col1
----
137

query I rowsort
SELECT ALL 4 + - 42 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8463
SELECT DISTINCT - 41 * + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - 41 * + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 87 + + 79 * - 96 AS col0
----
-7497

query I rowsort
SELECT + 10 * + 98
----
980

query I rowsort
SELECT COALESCE ( - 99, - 0, + - 80 )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8467
SELECT - CAST( + + COALESCE ( + 91, - 20 * + 52 + - 62, 56 ) AS SIGNED ) / + - CAST( NULL AS SIGNED ) + ( - 73 ) + - CAST( 23 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT - CAST ( + + COALESCE ( + 91, - 20 * + 52 + - 62, 56 ) AS INTEGER ) / + - CAST ( NULL AS INTEGER ) + ( - 73 ) + - CAST ( 23 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8468
SELECT 89 * - COALESCE ( + COUNT( * ), + 85, 38 * + + 31 DIV - COUNT( * ) ) * + - 53 - - - 88 AS col0
----
4629

skipif mysql # not compatible
query I rowsort label-8468
SELECT 89 * - COALESCE ( + COUNT ( * ), + 85, 38 * + + 31 / - COUNT ( * ) ) * + - 53 - - - 88 AS col0
----
4629

query I rowsort
SELECT - 90 + - + 55
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT COUNT( * ) + + 87 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-8470
SELECT COUNT ( * ) + + 87 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT ALL - COUNT( DISTINCT 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL - COUNT ( DISTINCT 57 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8472
SELECT DISTINCT 91 - - + CASE 90 WHEN 11 THEN - 0 WHEN 75 THEN NULL ELSE + + SUM( 99 ) DIV - COALESCE ( 12, + 0, + MAX( DISTINCT 54 ) * - 95 ) + + 44 END
----
127

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT 91 - - + CASE 90 WHEN 11 THEN - 0 WHEN 75 THEN NULL ELSE + + SUM ( 99 ) / - COALESCE ( 12, + 0, + MAX ( DISTINCT 54 ) * - 95 ) + + 44 END
----
127

query I rowsort
SELECT ALL - - ( 53 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT - SUM( DISTINCT 32 ) * - 79 + 96 + - 67
----
2557

skipif mysql # not compatible
query I rowsort label-8474
SELECT - SUM ( DISTINCT 32 ) * - 79 + 96 + - 67
----
2557

query I rowsort
SELECT ALL - 74 - - NULLIF ( + + 89, - - 24 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT DISTINCT - + NULLIF ( - CAST( - 95 AS SIGNED ), 59 )
----
-95

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT - + NULLIF ( - CAST ( - 95 AS INTEGER ), 59 )
----
-95

query II rowsort
SELECT + 98 col2, - 44
----
98
-44

query II rowsort
SELECT ALL - - 32 AS col1, - 36
----
32
-36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8479
SELECT 64 DIV - CAST( 43 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8479
SELECT 64 / - CAST ( 43 AS INTEGER )
----
-1

query I rowsort
SELECT ( 73 ) * + 95 AS col0
----
6935

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT DISTINCT 42 DIV + 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT 42 / + 61 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT CAST( NULL AS SIGNED ) * 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT CAST ( NULL AS INTEGER ) * 31 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8483
SELECT 83 + CASE + COUNT( * ) WHEN + 38 THEN - + 6 WHEN - + 64 THEN + COUNT( * ) + + 23 + + ( - - COALESCE ( + 80, + MIN( - 17 ) + 58, + CAST( - 44 AS DECIMAL ) ) ) * + COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT 83 + CASE + COUNT ( * ) WHEN + 38 THEN - + 6 WHEN - + 64 THEN + COUNT ( * ) + + 23 + + ( - - COALESCE ( + 80, + MIN ( - 17 ) + 58, + CAST ( - 44 AS REAL ) ) ) * + COUNT ( * ) ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8484
SELECT ALL + 90 DIV + SUM( ALL - 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL + 90 / + SUM ( ALL - 75 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8485
SELECT CAST( ( - + COUNT( * ) ) AS SIGNED ) DIV 1 * 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8485
SELECT CAST ( ( - + COUNT ( * ) ) AS INTEGER ) / 1 * 20 AS col2
----
-20

query I rowsort
SELECT - COALESCE ( + - 88, - 77, - 83 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL - 17 * 32 * - MIN( - + 46 ) * + COUNT( * ) + - - MIN( + 15 )
----
-25009

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL - 17 * 32 * - MIN ( - + 46 ) * + COUNT ( * ) + - - MIN ( + 15 )
----
-25009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8488
SELECT - CASE - 89 WHEN + CAST( NULL AS SIGNED ) * + CASE - 30 WHEN + - 6 * - COUNT( * ) + + MAX( + - 22 ) + - + 63 THEN + + 85 ELSE NULL END + - 0 + - 63 * ( + 5 * 92 ) - 47 * 35 THEN 39 * COALESCE ( 62, + 66 * 7 ) WHEN + 35 THEN NULL WHEN + 46 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT - CASE - 89 WHEN + CAST ( NULL AS INTEGER ) * + CASE - 30 WHEN + - 6 * - COUNT ( * ) + + MAX ( + - 22 ) + - + 63 THEN + + 85 ELSE NULL END + - 0 + - 63 * ( + 5 * 92 ) - 47 * 35 THEN 39 * COALESCE ( 62, + 66 * 7 ) WHEN + 35 THEN NULL WHEN + 46 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 18 + - 12 AS col0
----
6

query I rowsort
SELECT - COALESCE ( + ( - - 90 ), - 15 * + ( + - 70 ) ) AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT + 17 + CAST( + + 15 AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8491
SELECT + 17 + CAST ( + + 15 AS INTEGER ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT DISTINCT - 45 + ( + 1 ) * + 47 + 27 + COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT - 45 + ( + 1 ) * + 47 + 27 + COUNT ( * ) AS col1
----
30

query I rowsort
SELECT - 99 * 78 AS col2
----
-7722

query I rowsort
SELECT ALL COALESCE ( 36, + 92 * 19 )
----
36

query I rowsort
SELECT DISTINCT CASE 17 WHEN + - 78 THEN - - ( + 56 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT DISTINCT + 0 + - COUNT( * ) * + 33 + + - 85 + + 38
----
-80

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT + 0 + - COUNT ( * ) * + 33 + + - 85 + + 38
----
-80

query II rowsort
SELECT - 95 + + - 56 AS col1, + ( - 20 ) AS col1
----
-151
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8498
SELECT - 52 * - 54 * COUNT( * ) + - - COALESCE ( + MIN( 11 ), - - 5 + - 65, + - 66 DIV COALESCE ( + 6, + 81 * CAST( 59 DIV CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) ) ) - COALESCE ( 42, + 78 - - 82, - COUNT( * ) * 58 ) col2
----
2777

skipif mysql # not compatible
query I rowsort label-8498
SELECT - 52 * - 54 * COUNT ( * ) + - - COALESCE ( + MIN ( 11 ), - - 5 + - 65, + - 66 / COALESCE ( + 6, + 81 * CAST ( 59 / CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) ) ) - COALESCE ( 42, + 78 - - 82, - COUNT ( * ) * 58 ) col2
----
2777

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT - - NULLIF ( + 63, - 81 ) DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8499
SELECT - - NULLIF ( + 63, - 81 ) / - 71 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8500
SELECT - 12 DIV - 87 * + + 13 + COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8500
SELECT - 12 / - 87 * + + 13 + COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT + MAX( ALL ( - 24 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-8501
SELECT + MAX ( ALL ( - 24 ) )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8502
SELECT ALL - 3 * + 50 - + ( - MAX( ALL + NULLIF ( 75, - + 13 ) ) ) + - - SUM( - 92 ) + - + 69 + COUNT( * ) * + - 80 DIV ( + 19 DIV 77 + 74 ) - COUNT( * ) AS col2
----
-238

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL - 3 * + 50 - + ( - MAX ( ALL + NULLIF ( 75, - + 13 ) ) ) + - - SUM ( - 92 ) + - + 69 + COUNT ( * ) * + - 80 / ( + 19 / 77 + 74 ) - COUNT ( * ) AS col2
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT + + COUNT( ALL + - 14 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8503
SELECT + + COUNT ( ALL + - 14 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8504
SELECT - 97 DIV - + 66 col0
----
1

skipif mysql # not compatible
query I rowsort label-8504
SELECT - 97 / - + 66 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT - 11 * - 38 * + - COUNT( - - 67 ) AS col2
----
-418

skipif mysql # not compatible
query I rowsort label-8505
SELECT - 11 * - 38 * + - COUNT ( - - 67 ) AS col2
----
-418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT ALL + CAST( 61 AS SIGNED ) * - - 31 * 40 col0
----
75640

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL + CAST ( 61 AS INTEGER ) * - - 31 * 40 col0
----
75640

query I rowsort
SELECT DISTINCT + ( + ( + - 76 ) ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT + + COUNT( * ) * CASE - - 34 WHEN + 61 * + + COUNT( * ) THEN - 80 * + 61 - - + 62 END + 19 + 34 * + + 43 + - 44 * 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT + + COUNT ( * ) * CASE - - 34 WHEN + 61 * + + COUNT ( * ) THEN - 80 * + 61 - - + 62 END + 19 + 34 * + + 43 + - 44 * 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT DISTINCT + NULLIF ( - 64, + ( - - COUNT( * ) ) )
----
-64

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT + NULLIF ( - 64, + ( - - COUNT ( * ) ) )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8510
SELECT DISTINCT + - ( CAST( - 32 AS SIGNED ) ), 19 AS col2
----
32
19

skipif mysql # not compatible
query II rowsort label-8510
SELECT DISTINCT + - ( CAST ( - 32 AS INTEGER ) ), 19 AS col2
----
32
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL + 62 * COUNT( * ) + - COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL + 62 * COUNT ( * ) + - COUNT ( * ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT + COUNT( * ) * + 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8512
SELECT + COUNT ( * ) * + 8 AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8513
SELECT + ( + SUM( 75 ) ) * - COUNT( + - 90 ) + + CAST( NULL AS SIGNED ) * 43 + 14 AS col0, 74
----
NULL
74

skipif mysql # not compatible
query II rowsort label-8513
SELECT + ( + SUM ( 75 ) ) * - COUNT ( + - 90 ) + + CAST ( NULL AS INTEGER ) * 43 + 14 AS col0, 74
----
NULL
74

query I rowsort
SELECT + COALESCE ( ( - 68 ), - 50 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT + ( 66 ) + + COALESCE ( + 89, + COALESCE ( 17, - 90 ) - - + 9 ) * - CASE 24 WHEN - COUNT( * ) THEN - + 63 WHEN + - 77 THEN NULL WHEN - 94 + + 92 THEN NULL ELSE NULL END * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT + ( 66 ) + + COALESCE ( + 89, + COALESCE ( 17, - 90 ) - - + 9 ) * - CASE 24 WHEN - COUNT ( * ) THEN - + 63 WHEN + - 77 THEN NULL WHEN - 94 + + 92 THEN NULL ELSE NULL END * 20
----
NULL

query I rowsort
SELECT DISTINCT 0 * - 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT ALL COUNT( ALL + - 76 ) * SUM( DISTINCT + 10 ) + ( 8 ) col1
----
18

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL COUNT ( ALL + - 76 ) * SUM ( DISTINCT + 10 ) + ( 8 ) col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8518
SELECT ALL 35 + + COUNT( * ) * + CAST( 61 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL 35 + + COUNT ( * ) * + CAST ( 61 AS INTEGER )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT + ( + 33 ) * + 87 * - + COALESCE ( + 21, - + 61, + COUNT( DISTINCT + 7 ) * - 74 + - 15 + + 14 * + 42, - 54 ) + + 29 AS col0
----
-60262

skipif mysql # not compatible
query I rowsort label-8519
SELECT + ( + 33 ) * + 87 * - + COALESCE ( + 21, - + 61, + COUNT ( DISTINCT + 7 ) * - 74 + - 15 + + 14 * + 42, - 54 ) + + 29 AS col0
----
-60262

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + COUNT( - 77 ) + + - 92 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8520
SELECT + COUNT ( - 77 ) + + - 92 AS col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8521
SELECT - CAST( 93 AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-8521
SELECT - CAST ( 93 AS INTEGER )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT + COUNT( * ) * + + 65 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-8522
SELECT + COUNT ( * ) * + + 65 AS col1
----
65

query I rowsort
SELECT - 23 + - + 76 * - 85 AS col0
----
6437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8524
SELECT DISTINCT 29 + - COUNT( * ) + CAST( + - 71 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT 29 + - COUNT ( * ) + CAST ( + - 71 AS INTEGER )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT - 99 + + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-8525
SELECT - 99 + + COUNT ( * )
----
-98

query I rowsort
SELECT ALL 58 + - 98
----
-40

query I rowsort
SELECT DISTINCT - 41 * - 1 col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8528
SELECT ALL + CASE - + 19 WHEN - CAST( NULL AS SIGNED ) + - + 84 * - - MAX( - ( 13 ) ) * - COUNT( - 62 ) THEN - CASE ( 44 ) WHEN 57 THEN NULLIF ( + 11, 96 + COUNT( * ) ) WHEN ( - COUNT( * ) ) THEN 66 ELSE NULL END + COUNT( * ) WHEN + 77 THEN NULL ELSE NULL END + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL + CASE - + 19 WHEN - CAST ( NULL AS INTEGER ) + - + 84 * - - MAX ( - ( 13 ) ) * - COUNT ( - 62 ) THEN - CASE ( 44 ) WHEN 57 THEN NULLIF ( + 11, 96 + COUNT ( * ) ) WHEN ( - COUNT ( * ) ) THEN 66 ELSE NULL END + COUNT ( * ) WHEN + 77 THEN NULL ELSE NULL END + + 36
----
NULL

query I rowsort
SELECT DISTINCT 93 + + 2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8530
SELECT DISTINCT + 69 + - 69 DIV + 25 + 5 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT + 69 + - 69 / + 25 + 5 AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8531
SELECT - 22 + + 32 + - - MIN( DISTINCT 25 ) DIV - 48 col0
----
10

skipif mysql # not compatible
query I rowsort label-8531
SELECT - 22 + + 32 + - - MIN ( DISTINCT 25 ) / - 48 col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8532
SELECT + + 28 - - - 90 * + + MAX( ( + - NULLIF ( + - CAST( - 89 AS SIGNED ), + - CAST( - 20 AS SIGNED ) / + 31 ) ) )
----
8038

skipif mysql # not compatible
query I rowsort label-8532
SELECT + + 28 - - - 90 * + + MAX ( ( + - NULLIF ( + - CAST ( - 89 AS INTEGER ), + - CAST ( - 20 AS INTEGER ) / + 31 ) ) )
----
8038

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT - SUM( + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-8533
SELECT - SUM ( + 55 )
----
-55

query II rowsort
SELECT ALL 91, ( - - 61 ) + 49 * + ( + 5 ) - - 30 AS col0
----
91
336

query II rowsort
SELECT + - 53 - 47 + + 88 * - 2 col1, - 95
----
-276
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8536
SELECT DISTINCT 25, ( - + MAX( 80 ) ) AS col1
----
25
-80

skipif mysql # not compatible
query II rowsort label-8536
SELECT DISTINCT 25, ( - + MAX ( 80 ) ) AS col1
----
25
-80

query I rowsort
SELECT ALL + + ( 86 ) - - CASE + 15 WHEN + + 19 * - 8 THEN + 69 WHEN ( + AVG ( + 47 ) ) THEN - 25 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8538
SELECT ALL - 88, - CAST( - - 9 AS SIGNED ) + + 51 col2
----
-88
42

skipif mysql # not compatible
query II rowsort label-8538
SELECT ALL - 88, - CAST ( - - 9 AS INTEGER ) + + 51 col2
----
-88
42

query I rowsort
SELECT DISTINCT - 40 - + + 49
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT - + CAST( NULL AS SIGNED ) * - 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT - + CAST ( NULL AS INTEGER ) * - 37 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 36 )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8542
SELECT ALL + + COUNT( * ), 53 DIV COUNT( * ) AS col2
----
1
53

skipif mysql # not compatible
query II rowsort label-8542
SELECT ALL + + COUNT ( * ), 53 / COUNT ( * ) AS col2
----
1
53

query I rowsort
SELECT 52 * 65 + - 44
----
3336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8544
SELECT + COALESCE ( 27, - - ( 32 ) * - + CASE - 76 WHEN 12 THEN - 55 WHEN SUM( + - CAST( NULL AS SIGNED ) ) * NULLIF ( + - 0, - - SUM( ALL 14 ) ) + 17 * COUNT( * ) + 56 THEN NULL WHEN COUNT( * ) THEN - 88 * - 83 ELSE 8 END ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-8544
SELECT + COALESCE ( 27, - - ( 32 ) * - + CASE - 76 WHEN 12 THEN - 55 WHEN SUM ( + - CAST ( NULL AS INTEGER ) ) * NULLIF ( + - 0, - - SUM ( ALL 14 ) ) + 17 * COUNT ( * ) + 56 THEN NULL WHEN COUNT ( * ) THEN - 88 * - 83 ELSE 8 END ) AS col0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT - ( - NULLIF ( 73, 65 ) ) DIV 89 + - + 27 DIV - 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-8545
SELECT - ( - NULLIF ( 73, 65 ) ) / 89 + - + 27 / - 77 col1
----
0

query I rowsort
SELECT + - 84 * CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE - ( + 36 ) END - - 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT - - CAST( NULL AS SIGNED ) + - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT - - CAST ( NULL AS INTEGER ) + - - 5
----
NULL

query I rowsort
SELECT 96 * ( + 81 ) - - 69 + 19 col0
----
7864

query I rowsort
SELECT ALL - 91 * 67 AS col2
----
-6097

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8550
SELECT - 97 DIV - 29 + - 11 AS col2, CAST( NULL AS SIGNED ) AS col1
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-8550
SELECT - 97 / - 29 + - 11 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
-8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT - 38 * CASE + + 76 WHEN 20 THEN - + COALESCE ( - + 8, - + ( - 27 ) / 65 * ( - ( - 54 ) ) / + - AVG ( ALL 70 ) + 50 ) WHEN ( + 53 ) - + 66 THEN NULL ELSE NULL END * + ( 65 ) + COUNT( * ) * 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT - 38 * CASE + + 76 WHEN 20 THEN - + COALESCE ( - + 8, - + ( - 27 ) / 65 * ( - ( - 54 ) ) / + - AVG ( ALL 70 ) + 50 ) WHEN ( + 53 ) - + 66 THEN NULL ELSE NULL END * + ( 65 ) + COUNT ( * ) * 50 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT - + CASE - + 31 WHEN - COUNT( + - 38 ) THEN 91 / - - 91 - + 18 + + + COUNT( * ) - + ( - 43 ) * 71 * + 27 ELSE NULL END * NULLIF ( - 70, + 14 * + ( - 62 ) + + 47 * + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT - + CASE - + 31 WHEN - COUNT ( + - 38 ) THEN 91 / - - 91 - + 18 + + + COUNT ( * ) - + ( - 43 ) * 71 * + 27 ELSE NULL END * NULLIF ( - 70, + 14 * + ( - 62 ) + + 47 * + 53 )
----
NULL

query I rowsort
SELECT DISTINCT + 17 + + 94
----
111

query I rowsort
SELECT ALL 54 + 86 + 5
----
145

onlyif mysql # aggregate syntax: 
query II rowsort label-8555
SELECT COUNT( * ) * MIN( + 41 ) + + 84 AS col1, + 20 * CASE 38 WHEN - 82 THEN 53 ELSE NULL END + - - MAX( DISTINCT - 52 )
----
125
NULL

skipif mysql # not compatible
query II rowsort label-8555
SELECT COUNT ( * ) * MIN ( + 41 ) + + 84 AS col1, + 20 * CASE 38 WHEN - 82 THEN 53 ELSE NULL END + - - MAX ( DISTINCT - 52 )
----
125
NULL

query I rowsort
SELECT DISTINCT + 35 + + + ( - + 51 ) + 14
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT MAX( ALL 46 ) + 26
----
72

skipif mysql # not compatible
query I rowsort label-8557
SELECT MAX ( ALL 46 ) + 26
----
72

query I rowsort
SELECT DISTINCT 46 * + + 80 * + + 55 col2
----
202400

query I rowsort
SELECT ALL - 0 + - 2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8560
SELECT ALL 81 * + 85 AS col0, + CASE + - COALESCE ( + 41, SUM( DISTINCT - - 74 ), 89 ) WHEN + + 19 THEN + + 45 WHEN + 55 + - 67 THEN - 78 + - + SUM( - 63 ) END
----
6885
NULL

skipif mysql # not compatible
query II rowsort label-8560
SELECT ALL 81 * + 85 AS col0, + CASE + - COALESCE ( + 41, SUM ( DISTINCT - - 74 ), 89 ) WHEN + + 19 THEN + + 45 WHEN + 55 + - 67 THEN - 78 + - + SUM ( - 63 ) END
----
6885
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL COUNT( * ) + + + 18 + - 11 + - COUNT( * ) + - - 74 + + - ( ( - - 77 ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL COUNT ( * ) + + + 18 + - 11 + - COUNT ( * ) + - - 74 + + - ( ( - - 77 ) ) AS col1
----
4

query I rowsort
SELECT DISTINCT - 73 * - 36
----
2628

query I rowsort
SELECT 8 * + 38 AS col2
----
304

onlyif mysql # aggregate syntax: 
query II rowsort label-8564
SELECT ALL COUNT( * ) - 12 AS col0, + 93 AS col2
----
-11
93

skipif mysql # not compatible
query II rowsort label-8564
SELECT ALL COUNT ( * ) - 12 AS col0, + 93 AS col2
----
-11
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT MAX( ALL + 5 ) + - - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8565
SELECT MAX ( ALL + 5 ) + - - COUNT ( * )
----
6

query I rowsort
SELECT + ( + 2 ) * + NULLIF ( - 66, + - 63 ) AS col2
----
-132

query I rowsort
SELECT - 43 + 81 AS col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8568
SELECT - 13 - + 26 + - 6 - - + 30 DIV 70 - - + 57 + + 7
----
19

skipif mysql # not compatible
query I rowsort label-8568
SELECT - 13 - + 26 + - 6 - - + 30 / 70 - - + 57 + + 7
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT COUNT( * ) * + 3 + - 29
----
-26

skipif mysql # not compatible
query I rowsort label-8569
SELECT COUNT ( * ) * + 3 + - 29
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8570
SELECT DISTINCT + CAST( 98 AS SIGNED ) DIV NULLIF ( 49, - COUNT( * ) ) * 88
----
176

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT + CAST ( 98 AS INTEGER ) / NULLIF ( 49, - COUNT ( * ) ) * 88
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT COALESCE ( - - COUNT( - 12 ), 86 * + 72 + 23 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT COALESCE ( - - COUNT ( - 12 ), 86 * + 72 + 23 ) AS col2
----
1

query I rowsort
SELECT ALL 9 * - 23 + + 19
----
-188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8573
SELECT + MIN( ALL 23 ) + + COALESCE ( + CAST( NULL AS SIGNED ), 68 * + 1, MIN( DISTINCT - + 86 ) + - COUNT( * ) ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8573
SELECT + MIN ( ALL 23 ) + + COALESCE ( + CAST ( NULL AS INTEGER ), 68 * + 1, MIN ( DISTINCT - + 86 ) + - COUNT ( * ) ) AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8574
SELECT ALL + 36 DIV 13 col0
----
2

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL + 36 / 13 col0
----
2

query I rowsort
SELECT ALL + 56 * + 67 AS col2
----
3752

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT DISTINCT + COUNT( * ) * - 47 * - COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT + COUNT ( * ) * - 47 * - COUNT ( * ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8577
SELECT CASE - 96 WHEN - + 93 THEN NULL WHEN 46 THEN - - 69 + - 89 + COUNT( * ) - - CAST( + - 37 AS SIGNED ) END * + COUNT( * ) + - + 72 + + 5 * - ( + 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT CASE - 96 WHEN - + 93 THEN NULL WHEN 46 THEN - - 69 + - 89 + COUNT ( * ) - - CAST ( + - 37 AS INTEGER ) END * + COUNT ( * ) + - + 72 + + 5 * - ( + 93 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8578
SELECT + 20 * ( - CAST( + + COUNT( * ) AS SIGNED ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8578
SELECT + 20 * ( - CAST ( + + COUNT ( * ) AS INTEGER ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT - 29 + + NULLIF ( 1, - 37 - 79 + + + ( - 5 ) + + 27 + + + COUNT( * ) * + 46 / + 61 * - AVG ( ALL - 33 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-8579
SELECT - 29 + + NULLIF ( 1, - 37 - 79 + + + ( - 5 ) + + 27 + + + COUNT ( * ) * + 46 / + 61 * - AVG ( ALL - 33 ) )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT + 77 * COUNT( * ) + 99 - 58 - + ( + COUNT( * ) ) + CAST( NULL AS SIGNED ) + + 74 + 27 * MAX( + 6 ) + 53 * 95 * - COUNT( * ) * 75 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT + 77 * COUNT ( * ) + 99 - 58 - + ( + COUNT ( * ) ) + CAST ( NULL AS INTEGER ) + + 74 + 27 * MAX ( + 6 ) + 53 * 95 * - COUNT ( * ) * 75 AS col2
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + 3, - 68, ( - + 99 ) ) * - 71 AS col1
----
-213

query I rowsort
SELECT ALL + - 94 + - 71 AS col2
----
-165

query I rowsort
SELECT DISTINCT 83 + 55 + + 7
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8584
SELECT ALL - 58 * + CAST( NULL AS SIGNED ) * + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL - 58 * + CAST ( NULL AS INTEGER ) * + 94 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8585
SELECT 87 AS col0, AVG ( CAST( NULL AS SIGNED ) )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-8585
SELECT 87 AS col0, AVG ( CAST ( NULL AS INTEGER ) )
----
87
NULL

query I rowsort
SELECT ALL + 31 + - 21 AS col2
----
10

query II rowsort
SELECT 31, 84 AS col2
----
31
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8588
SELECT 63 - COALESCE ( - 4, CAST( 65 AS SIGNED ) * + - CAST( NULL AS SIGNED ) ) AS col1, - 37 AS col2
----
67
-37

skipif mysql # not compatible
query II rowsort label-8588
SELECT 63 - COALESCE ( - 4, CAST ( 65 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) ) AS col1, - 37 AS col2
----
67
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT 99 * + ( - + COUNT( * ) ) * 96
----
-9504

skipif mysql # not compatible
query I rowsort label-8589
SELECT 99 * + ( - + COUNT ( * ) ) * 96
----
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL - 59 * - COUNT( * ) col0
----
59

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL - 59 * - COUNT ( * ) col0
----
59

query I rowsort
SELECT ALL - ( 50 ) AS col0
----
-50

query II rowsort
SELECT 73 * + - NULLIF ( + 70, + 71 * - 33 ) AS col2, 6 AS col1
----
-5110
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8593
SELECT DISTINCT + 86 * + - CASE + - CAST( NULL AS SIGNED ) WHEN - + 79 THEN NULL WHEN + - 71 THEN NULL ELSE COUNT( * ) END
----
-86

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT + 86 * + - CASE + - CAST ( NULL AS INTEGER ) WHEN - + 79 THEN NULL WHEN + - 71 THEN NULL ELSE COUNT ( * ) END
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8594
SELECT DISTINCT - NULLIF ( + MIN( + 31 ), + - COALESCE ( + 27, + AVG ( + - 49 ), + - 58 ) / + 13 * - 46 ), 27 AS col2
----
-31
27

skipif mysql # not compatible
query II rowsort label-8594
SELECT DISTINCT - NULLIF ( + MIN ( + 31 ), + - COALESCE ( + 27, + AVG ( + - 49 ), + - 58 ) / + 13 * - 46 ), 27 AS col2
----
-31
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT ALL + 59 * - - 53 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL + 59 * - - 53 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 98 - + + 58 col2
----
40

query I rowsort
SELECT ALL - 96 * + 32 AS col2
----
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT 5 + + - MIN( ALL - - 22 ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-8598
SELECT 5 + + - MIN ( ALL - - 22 ) AS col0
----
-17

query I rowsort
SELECT DISTINCT - 87 * - 22 AS col1
----
1914

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT 88 * 75 * 81 * - MIN( ALL NULLIF ( + 11, + 8 ) ) col1
----
-5880600

skipif mysql # not compatible
query I rowsort label-8600
SELECT 88 * 75 * 81 * - MIN ( ALL NULLIF ( + 11, + 8 ) ) col1
----
-5880600

query I rowsort
SELECT 24 * - 29
----
-696

query I rowsort
SELECT 98 + 16 * - 84 * - 65 AS col0
----
87458

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT ALL SUM( DISTINCT 87 )
----
87

skipif mysql # not compatible
query I rowsort label-8603
SELECT ALL SUM ( DISTINCT 87 )
----
87

query I rowsort
SELECT NULLIF ( 14, + 38 ) + 69
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT ALL - CASE - AVG ( - 10 ) WHEN + 13 THEN NULL WHEN 71 * + COALESCE ( 82, + 85 + - 94, - - 35 + + 8 ) THEN + COUNT( * ) ELSE - - COUNT( * ) END * - 36 * - COUNT( * ) + - 16 * ( - MAX( + 45 ) - + 67 * - CASE 12 + 51 WHEN - 64 THEN SUM( 73 ) / 75 WHEN + 70 THEN NULL WHEN 68 * - NULLIF ( 97 * 31, 66 * - 97 ) THEN ( 47 ) * - NULLIF ( 97, + 21 + 53 ) + + 97 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - CASE - AVG ( - 10 ) WHEN + 13 THEN NULL WHEN 71 * + COALESCE ( 82, + 85 + - 94, - - 35 + + 8 ) THEN + COUNT ( * ) ELSE - - COUNT ( * ) END * - 36 * - COUNT ( * ) + - 16 * ( - MAX ( + 45 ) - + 67 * - CASE 12 + 51 WHEN - 64 THEN SUM ( 73 ) / 75 WHEN + 70 THEN NULL WHEN 68 * - NULLIF ( 97 * 31, 66 * - 97 ) THEN ( 47 ) * - NULLIF ( 97, + 21 + 53 ) + + 97 END ) AS col1
----
NULL

query I rowsort
SELECT ALL - 7 * + 69 * 59
----
-28497

onlyif mysql # aggregate syntax: 
query II rowsort label-8607
SELECT ALL - - COUNT( * ) * 33 * + 26 + ( - - 2 ) AS col0, 78 + + 97
----
860
175

skipif mysql # not compatible
query II rowsort label-8607
SELECT ALL - - COUNT ( * ) * 33 * + 26 + ( - - 2 ) AS col0, 78 + + 97
----
860
175

query II rowsort
SELECT ALL 60 + + COALESCE ( - 20, + 12 * + - 57 - + NULLIF ( 78, - 1 + + 73 * - 13 ) ) + - + 92 AS col0, - 93 AS col1
----
-52
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT 38 - NULLIF ( CASE - 77 WHEN 46 / 83 * - 26 * + 10 THEN NULL WHEN + + 29 THEN NULL ELSE - + 85 END, SUM( ALL + 65 ) / - 4 )
----
123

skipif mysql # not compatible
query I rowsort label-8609
SELECT 38 - NULLIF ( CASE - 77 WHEN 46 / 83 * - 26 * + 10 THEN NULL WHEN + + 29 THEN NULL ELSE - + 85 END, SUM ( ALL + 65 ) / - 4 )
----
123

query I rowsort
SELECT - ( 9 ) + - 54 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL + 74 + - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL + 74 + - COUNT ( * )
----
73

query I rowsort
SELECT + - 69 - 82 AS col2
----
-151

onlyif mysql # aggregate syntax: 
query II rowsort label-8613
SELECT DISTINCT + - COUNT( * ) AS col0, 52 col1
----
-1
52

skipif mysql # not compatible
query II rowsort label-8613
SELECT DISTINCT + - COUNT ( * ) AS col0, 52 col1
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL 49 * - 32 + + - 5 + + - 11 * + - COUNT( * )
----
-1562

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL 49 * - 32 + + - 5 + + - 11 * + - COUNT ( * )
----
-1562

query II rowsort
SELECT + 12 * 32 AS col0, ( - - 53 ) AS col1
----
384
53

query I rowsort
SELECT 63 * - 61 + - 48 AS col0
----
-3891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT CASE + 57 WHEN + + 76 THEN - 75 * CAST( 9 AS SIGNED ) * 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT CASE + 57 WHEN + + 76 THEN - 75 * CAST ( 9 AS INTEGER ) * 33 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT DISTINCT 36 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT 36 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 43 * 76 - + 2 AS col0
----
3266

query I rowsort
SELECT ALL 71 * - + 1 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT + COUNT( * ) * - 6 + - 23
----
-29

skipif mysql # not compatible
query I rowsort label-8621
SELECT + COUNT ( * ) * - 6 + - 23
----
-29

query I rowsort
SELECT ALL 35 * + - 32 AS col1
----
-1120

query II rowsort
SELECT + 50, 82 AS col1
----
50
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL 4 * - 30 * + - MIN( - + 96 ) - - COUNT( * )
----
-11519

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL 4 * - 30 * + - MIN ( - + 96 ) - - COUNT ( * )
----
-11519

query I rowsort
SELECT - 16 * - - 53 AS col0
----
-848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8626
SELECT ALL + 28 DIV + SUM( + 79 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + 28 / + SUM ( + 79 ) col1
----
0

query I rowsort
SELECT + ( + + 72 ) col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT DISTINCT + COUNT( * ) * 93 col0
----
93

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT + COUNT ( * ) * 93 col0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8629
SELECT DISTINCT COALESCE ( + - CAST( + 49 AS SIGNED ), - NULLIF ( COUNT( * ), 43 ) ), + 1 AS col1
----
-49
1

skipif mysql # not compatible
query II rowsort label-8629
SELECT DISTINCT COALESCE ( + - CAST ( + 49 AS INTEGER ), - NULLIF ( COUNT ( * ), 43 ) ), + 1 AS col1
----
-49
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT - 80 DIV + + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8630
SELECT - 80 / + + 83 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8631
SELECT ALL + CAST( + + 11 AS SIGNED ) * - + COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL + CAST ( + + 11 AS INTEGER ) * - + COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL - COUNT( * ) * 83 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - COUNT ( * ) * 83 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT - - COUNT( * ) * + 25
----
25

skipif mysql # not compatible
query I rowsort label-8633
SELECT - - COUNT ( * ) * + 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT - MIN( ALL + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-8634
SELECT - MIN ( ALL + 30 )
----
-30

query II rowsort
SELECT ALL 94, 63 AS col2
----
94
63

query I rowsort
SELECT ALL - 61 * 84
----
-5124

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT - COUNT( * ) * - 3
----
3

skipif mysql # not compatible
query I rowsort label-8637
SELECT - COUNT ( * ) * - 3
----
3

query I rowsort
SELECT - 75 * + 21 AS col1
----
-1575

onlyif mysql # DIV for integer division: 
query I rowsort label-8639
SELECT - + 39 + - 25 DIV - 9
----
-37

skipif mysql # not compatible
query I rowsort label-8639
SELECT - + 39 + - 25 / - 9
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8640
SELECT - - 64 + + - COUNT( * ) DIV + MIN( DISTINCT + 23 )
----
64

skipif mysql # not compatible
query I rowsort label-8640
SELECT - - 64 + + - COUNT ( * ) / + MIN ( DISTINCT + 23 )
----
64

query I rowsort
SELECT + + 84 + + - 74 + + + 69 * + - 55
----
-3785

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL - ( - COUNT( * ) ) + 20 * + - 64 + + - 98 + - 29
----
-1406

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - ( - COUNT ( * ) ) + 20 * + - 64 + + - 98 + - 29
----
-1406

onlyif mysql # DIV for integer division: 
query II rowsort label-8643
SELECT 71, + 16 DIV + ( ( ( + 42 ) ) ) + - - 68 + + 75 * 26 * + 75 AS col0
----
71
146318

skipif mysql # not compatible
query II rowsort label-8643
SELECT 71, + 16 / + ( ( ( + 42 ) ) ) + - - 68 + + 75 * 26 * + 75 AS col0
----
71
146318

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT ALL + COUNT( * ) + + 71
----
72

skipif mysql # not compatible
query I rowsort label-8644
SELECT ALL + COUNT ( * ) + + 71
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8645
SELECT - CASE WHEN NULL BETWEEN NULL AND + 52 THEN - 12 - CAST( + 21 AS SIGNED ) ELSE NULL END + + 89 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8645
SELECT - CASE WHEN NULL BETWEEN NULL AND + 52 THEN - 12 - CAST ( + 21 AS INTEGER ) ELSE NULL END + + 89 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT - 76 + + + NULLIF ( 56, COUNT( - - 69 ) + - + 22 ) * - + 85 * MAX( ALL 97 ) * + MAX( 66 ) + - - 36 AS col2
----
-30473560

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT - 76 + + + NULLIF ( 56, COUNT ( - - 69 ) + - + 22 ) * - + 85 * MAX ( ALL 97 ) * + MAX ( 66 ) + - - 36 AS col2
----
-30473560

query II rowsort
SELECT DISTINCT + + 72 + - + 12 + - - 40 + - 50, + 98 AS col2
----
50
98

query I rowsort
SELECT ALL - - 10 + + 81 + - 76
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT + 4 + + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT + 4 + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + - 57 * + 88
----
-5016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8651
SELECT + 6 + + COUNT( * ), - CAST( NULL AS SIGNED ) AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-8651
SELECT + 6 + + COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1
----
7
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8652
SELECT ALL MIN( ALL + + 88 ) DIV - COUNT( ALL - - 87 ) - - - 27 - + 71
----
-186

skipif mysql # not compatible
query I rowsort label-8652
SELECT ALL MIN ( ALL + + 88 ) / - COUNT ( ALL - - 87 ) - - - 27 - + 71
----
-186

query I rowsort
SELECT + ( + 84 ) * - 47 AS col2
----
-3948

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8654
SELECT CAST( - 9 AS SIGNED ) AS col2, - ( + - 26 )
----
-9
26

skipif mysql # not compatible
query II rowsort label-8654
SELECT CAST ( - 9 AS INTEGER ) AS col2, - ( + - 26 )
----
-9
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8655
SELECT ALL + ( - 53 ) DIV - 6 - - - MAX( - - 89 )
----
-81

skipif mysql # not compatible
query I rowsort label-8655
SELECT ALL + ( - 53 ) / - 6 - - - MAX ( - - 89 )
----
-81

query I rowsort
SELECT ALL ( 12 ) * + - 54 AS col0
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - COUNT( * ) * - 28
----
28

skipif mysql # not compatible
query I rowsort label-8657
SELECT - COUNT ( * ) * - 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT + 40 * + CASE + 52 WHEN + 10 + - ( COUNT( * ) ) * - 89 THEN - - 32 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT + 40 * + CASE + 52 WHEN + 10 + - ( COUNT ( * ) ) * - 89 THEN - - 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT + 56 * MAX( + 48 ) - 94
----
2594

skipif mysql # not compatible
query I rowsort label-8659
SELECT + 56 * MAX ( + 48 ) - 94
----
2594

query I rowsort
SELECT ( + + 23 ) AS col2
----
23

query I rowsort
SELECT + ( + - ( + 89 ) ) AS col0
----
-89

query I rowsort
SELECT ( - + 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8663
SELECT ALL + MIN( + 87 ) AS col2, - 20 DIV + 45 + + 24 AS col0, + + 38 col2
----
87
24
38

skipif mysql # not compatible
query III rowsort label-8663
SELECT ALL + MIN ( + 87 ) AS col2, - 20 / + 45 + + 24 AS col0, + + 38 col2
----
87
24
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8664
SELECT + CAST( - 67 AS SIGNED ), + 97 AS col2
----
-67
97

skipif mysql # not compatible
query II rowsort label-8664
SELECT + CAST ( - 67 AS INTEGER ), + 97 AS col2
----
-67
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8665
SELECT ALL MAX( - + 31 ) * + + 12 AS col0, + ( - - 73 )
----
-372
73

skipif mysql # not compatible
query II rowsort label-8665
SELECT ALL MAX ( - + 31 ) * + + 12 AS col0, + ( - - 73 )
----
-372
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8666
SELECT COALESCE ( + CAST( - + 87 AS SIGNED ), + 37 * - + 65, - - ( - ( + COUNT( ALL + 56 ) ) ) * - CAST( NULL AS SIGNED ) * - - 70 )
----
-87

skipif mysql # not compatible
query I rowsort label-8666
SELECT COALESCE ( + CAST ( - + 87 AS INTEGER ), + 37 * - + 65, - - ( - ( + COUNT ( ALL + 56 ) ) ) * - CAST ( NULL AS INTEGER ) * - - 70 )
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT DISTINCT + 96 * 91 DIV ( - + 20 ) + + - 20 AS col1
----
-456

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT + 96 * 91 / ( - + 20 ) + + - 20 AS col1
----
-456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8668
SELECT DISTINCT COUNT( * ) DIV - 25 AS col0, 9 + CAST( 6 AS SIGNED ) AS col2, + 21 col1
----
0
15
21

skipif mysql # not compatible
query III rowsort label-8668
SELECT DISTINCT COUNT ( * ) / - 25 AS col0, 9 + CAST ( 6 AS INTEGER ) AS col2, + 21 col1
----
0
15
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8669
SELECT DISTINCT + 46 * + CASE + ( + + 0 ) WHEN 43 + + 29 * + - COUNT( * ) THEN NULL ELSE + ( 38 ) END + + - ( - - 71 ) + + - 61 * + 27 * + + 23 - COUNT( * ) DIV - 92 AS col2
----
-36204

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT + 46 * + CASE + ( + + 0 ) WHEN 43 + + 29 * + - COUNT ( * ) THEN NULL ELSE + ( 38 ) END + + - ( - - 71 ) + + - 61 * + 27 * + + 23 - COUNT ( * ) / - 92 AS col2
----
-36204

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT + - 19 DIV - + COALESCE ( 11, + + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-8670
SELECT + - 19 / - + COALESCE ( 11, + + 30 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8671
SELECT + 58 * + COUNT( DISTINCT + + 61 ) + - CASE 19 WHEN - - 61 * - - 97 THEN + CAST( NULL AS SIGNED ) WHEN 23 THEN NULL END + + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT + 58 * + COUNT ( DISTINCT + + 61 ) + - CASE 19 WHEN - - 61 * - - 97 THEN + CAST ( NULL AS INTEGER ) WHEN 23 THEN NULL END + + + 18
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8672
SELECT DISTINCT + + 50 + - CAST( + 98 AS SIGNED ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT + + 50 + - CAST ( + 98 AS INTEGER ) AS col0
----
-48

query I rowsort
SELECT ALL NULLIF ( - 17, - + 90 ) + + ( 64 ) + - + 38
----
9

query I rowsort
SELECT ALL + 74 + - 35 + + 24 * + 80 AS col2
----
1959

query I rowsort
SELECT DISTINCT + 16 * - 76 * - 29
----
35264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8676
SELECT ALL + 47 + - 83 * - CAST( - 75 AS SIGNED ) * - + COALESCE ( + 32, + ( 91 ), 23, + 22 ) * + COUNT( DISTINCT + 72 )
----
199247

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL + 47 + - 83 * - CAST ( - 75 AS INTEGER ) * - + COALESCE ( + 32, + ( 91 ), 23, + 22 ) * + COUNT ( DISTINCT + 72 )
----
199247

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT DISTINCT + - COUNT( * ) * - 57
----
57

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT + - COUNT ( * ) * - 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT + COUNT( * ) * - 75 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8678
SELECT + COUNT ( * ) * - 75 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT SUM( ALL + + 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8679
SELECT SUM ( ALL + + 24 ) AS col0
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-8680
SELECT 17, 68 DIV 82 + 21 DIV - + 26 AS col1
----
17
0

skipif mysql # not compatible
query II rowsort label-8680
SELECT 17, 68 / 82 + 21 / - + 26 AS col1
----
17
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL - COUNT( * ) - + + 17 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL - COUNT ( * ) - + + 17 AS col0
----
-18

query II rowsort
SELECT 22, - 2 AS col2
----
22
-2

query I rowsort
SELECT 89 - - 88
----
177

query I rowsort
SELECT ALL ( 67 ) * - 15
----
-1005

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT COUNT( * ) + 72 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8685
SELECT COUNT ( * ) + 72 AS col0
----
73

query I rowsort
SELECT ALL + 37 * + 88
----
3256

query I rowsort
SELECT NULLIF ( + 97, + + 16 * + 62 / + + 45 + + 53 ) * + + 67
----
6499

query II rowsort
SELECT DISTINCT + 28 * - 72 * 51 AS col2, 12 AS col0
----
-102816
12

query I rowsort
SELECT 37 * - - 72 + + 56 AS col2
----
2720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8690
SELECT ALL - CASE + CAST( NULL AS SIGNED ) WHEN + 97 * - 82 * - 84 * 10 THEN + 99 + + COUNT( * ) + + 34 WHEN - ( 68 ) THEN NULL WHEN + AVG ( ALL - + 63 ) THEN NULL END, COALESCE ( - 14, + 50 ) AS col2
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-8690
SELECT ALL - CASE + CAST ( NULL AS INTEGER ) WHEN + 97 * - 82 * - 84 * 10 THEN + 99 + + COUNT ( * ) + + 34 WHEN - ( 68 ) THEN NULL WHEN + AVG ( ALL - + 63 ) THEN NULL END, COALESCE ( - 14, + 50 ) AS col2
----
NULL
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8691
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) - + NULLIF ( - + 53, 97 + COALESCE ( - 26, + 81 ) - + COUNT( * ) / + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8691
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) - + NULLIF ( - + 53, 97 + COALESCE ( - 26, + 81 ) - + COUNT ( * ) / + 51 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT 7 + - ( + 76 ) + + CASE - ( + 6 ) WHEN - COUNT( * ) THEN - COUNT( * ) * + - 26 + + - 85 END - + ( - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT 7 + - ( + 76 ) + + CASE - ( + 6 ) WHEN - COUNT ( * ) THEN - COUNT ( * ) * + - 26 + + - 85 END - + ( - - COUNT ( * ) )
----
NULL

query II rowsort
SELECT DISTINCT - 82, 29 col2
----
-82
29

query I rowsort
SELECT 47 * - 48 * - 2 + - 75
----
4437

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT ALL - 11 + - 26 + + - MAX( DISTINCT - 87 )
----
50

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL - 11 + - 26 + + - MAX ( DISTINCT - 87 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8696
SELECT ALL 69 + - 32 * + COUNT( + + CAST( NULL AS SIGNED ) ) * 19 DIV - - ( + 15 ) + + 69 + - 30
----
108

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL 69 + - 32 * + COUNT ( + + CAST ( NULL AS INTEGER ) ) * 19 / - - ( + 15 ) + + 69 + - 30
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT ALL ( - COUNT( * ) ) + + - 68 + + MAX( ALL 26 ) * + 51 AS col0, SUM( ALL + + 74 ) col2
----
1257
74

skipif mysql # not compatible
query II rowsort label-8697
SELECT ALL ( - COUNT ( * ) ) + + - 68 + + MAX ( ALL 26 ) * + 51 AS col0, SUM ( ALL + + 74 ) col2
----
1257
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT - 39 * + - COUNT( * ) + + 68
----
107

skipif mysql # not compatible
query I rowsort label-8698
SELECT - 39 * + - COUNT ( * ) + + 68
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT COALESCE ( - + 75, - 24 * COUNT( * ) * - ( + - 46 ) * - 25 + 80 ) * - 79 * 10 * + - 72 AS col2
----
-4266000

skipif mysql # not compatible
query I rowsort label-8699
SELECT COALESCE ( - + 75, - 24 * COUNT ( * ) * - ( + - 46 ) * - 25 + 80 ) * - 79 * 10 * + - 72 AS col2
----
-4266000

query I rowsort
SELECT 42 + NULLIF ( - 81, 89 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8701
SELECT DISTINCT - 85, ( - CAST( NULL AS SIGNED ) ) AS col0
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-8701
SELECT DISTINCT - 85, ( - CAST ( NULL AS INTEGER ) ) AS col0
----
-85
NULL

query I rowsort
SELECT ALL + 3 + 99
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT DISTINCT NULLIF ( + 2, - MAX( DISTINCT + - 79 ) + - - 21 * + 24 - + + 41 + + 53 + + + 62 + 60 * + 36 + + 81 * COUNT( * ) ) + - 70
----
-68

skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT NULLIF ( + 2, - MAX ( DISTINCT + - 79 ) + - - 21 * + 24 - + + 41 + + 53 + + + 62 + 60 * + 36 + + 81 * COUNT ( * ) ) + - 70
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8704
SELECT - 27 * - ( - - 14 ) + - CAST( NULL AS SIGNED ), + COUNT( * ) * - CAST( NULL AS SIGNED ) - + 78 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8704
SELECT - 27 * - ( - - 14 ) + - CAST ( NULL AS INTEGER ), + COUNT ( * ) * - CAST ( NULL AS INTEGER ) - + 78 AS col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT 49 + + 20
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL 53 * - - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL 53 * - - COUNT ( * )
----
53

query II rowsort
SELECT DISTINCT 46 AS col2, 96 * + + 0
----
46
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8708
SELECT DISTINCT + 29 + - COUNT( * ) DIV - - 64, 10 AS col1
----
29
10

skipif mysql # not compatible
query II rowsort label-8708
SELECT DISTINCT + 29 + - COUNT ( * ) / - - 64, 10 AS col1
----
29
10

query I rowsort
SELECT 75 * - - 32
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT COALESCE ( - - ( ( - MIN( 56 ) ) ), ( MAX( DISTINCT ( 62 ) ) ) + 74 ) + + + COALESCE ( - SUM( - + 2 ), - - 22 )
----
-54

skipif mysql # not compatible
query I rowsort label-8710
SELECT COALESCE ( - - ( ( - MIN ( 56 ) ) ), ( MAX ( DISTINCT ( 62 ) ) ) + 74 ) + + + COALESCE ( - SUM ( - + 2 ), - - 22 )
----
-54

query I rowsort
SELECT - 12 + 41
----
29

query I rowsort
SELECT 85 + 88
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT DISTINCT 65 DIV 80 * + + 12
----
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT 65 / 80 * + + 12
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8714
SELECT - - 31, SUM( - - 44 ) * 25 AS col2
----
31
1100

skipif mysql # not compatible
query II rowsort label-8714
SELECT - - 31, SUM ( - - 44 ) * 25 AS col2
----
31
1100

onlyif mysql # aggregate syntax: 
query II rowsort label-8715
SELECT ALL + COUNT( * ) AS col0, COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8715
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) col0
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8716
SELECT - CAST( - - 91 AS SIGNED ) * 1
----
-91

skipif mysql # not compatible
query I rowsort label-8716
SELECT - CAST ( - - 91 AS INTEGER ) * 1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8717
SELECT ALL 59 / + NULLIF ( + CAST( NULL AS SIGNED ), + ( 91 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL 59 / + NULLIF ( + CAST ( NULL AS INTEGER ), + ( 91 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT 89 + - 8 + 11 * - 88 + COUNT( * ) AS col2
----
-886

skipif mysql # not compatible
query I rowsort label-8718
SELECT 89 + - 8 + 11 * - 88 + COUNT ( * ) AS col2
----
-886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8719
SELECT DISTINCT 94 * 98 * + CAST( NULL AS SIGNED ) / 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT 94 * 98 * + CAST ( NULL AS INTEGER ) / 33 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT DISTINCT + MIN( DISTINCT NULLIF ( 52, + 7 ) ) * COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT + MIN ( DISTINCT NULLIF ( 52, + 7 ) ) * COUNT ( * )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8721
SELECT CAST( - 14 AS SIGNED ) * + + 37
----
-518

skipif mysql # not compatible
query I rowsort label-8721
SELECT CAST ( - 14 AS INTEGER ) * + + 37
----
-518

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL - COUNT( DISTINCT - 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL - COUNT ( DISTINCT - 24 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL - COUNT( ALL - - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL - COUNT ( ALL - - 73 )
----
-1

query I rowsort
SELECT 8 * + + 96 AS col0
----
768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8725
SELECT DISTINCT + CAST( - 50 AS SIGNED ) * - - MIN( 23 ) + - 53 DIV - 60
----
-1150

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + CAST ( - 50 AS INTEGER ) * - - MIN ( 23 ) + - 53 / - 60
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT DISTINCT + COUNT( * ) * - 17 + + + 24
----
7

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT + COUNT ( * ) * - 17 + + + 24
----
7

query I rowsort
SELECT ALL - NULLIF ( + 3, + - ( 16 ) ) * 80 + - - 42 - - 34 * - 76 * + - 36 * + ( + 38 ) * + 65 AS col0
----
229769082

query I rowsort
SELECT 33 * 17
----
561

onlyif mysql # aggregate syntax: 
query II rowsort label-8729
SELECT ALL - 34 * + COALESCE ( - 51, - + COUNT( * ) * 50 ) * + + 72 * 95 + + CASE - ( - 82 ) WHEN - 7 THEN 88 END AS col2, - 50 * + 27 col2
----
NULL
-1350

skipif mysql # not compatible
query II rowsort label-8729
SELECT ALL - 34 * + COALESCE ( - 51, - + COUNT ( * ) * 50 ) * + + 72 * 95 + + CASE - ( - 82 ) WHEN - 7 THEN 88 END AS col2, - 50 * + 27 col2
----
NULL
-1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8730
SELECT ALL + CAST( + + 93 AS SIGNED ) * - 78 + - 11, 91 * - + COUNT( * ) col0
----
-7265
-91

skipif mysql # not compatible
query II rowsort label-8730
SELECT ALL + CAST ( + + 93 AS INTEGER ) * - 78 + - 11, 91 * - + COUNT ( * ) col0
----
-7265
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT - + 80 * + + 88 - - COUNT( * ) - - + CASE - 78 WHEN - CASE + + 57 WHEN + COALESCE ( - MIN( DISTINCT - 87 ), + - 58 / - - SUM( 48 ) ) THEN NULL ELSE 70 END * 35 + + 8 THEN - + 69 ELSE NULL END + + 24 * COUNT( * ) * + 65 / + 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT - + 80 * + + 88 - - COUNT ( * ) - - + CASE - 78 WHEN - CASE + + 57 WHEN + COALESCE ( - MIN ( DISTINCT - 87 ), + - 58 / - - SUM ( 48 ) ) THEN NULL ELSE 70 END * 35 + + 8 THEN - + 69 ELSE NULL END + + 24 * COUNT ( * ) * + 65 / + 41 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8732
SELECT ( - - 85 ) AS col0, 54 + - + CAST( NULL AS SIGNED ) col2
----
85
NULL

skipif mysql # not compatible
query II rowsort label-8732
SELECT ( - - 85 ) AS col0, 54 + - + CAST ( NULL AS INTEGER ) col2
----
85
NULL

query I rowsort
SELECT ALL + + ( + - 71 ) col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT ALL + 58 - + COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL + 58 - + COUNT ( * ) AS col2
----
57

query I rowsort
SELECT + + 52 - + - 74 col1
----
126

query I rowsort
SELECT DISTINCT + - 9 col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8737
SELECT + - MIN( DISTINCT + 55 ) * - 41 - - 6 + + 71 + 73 + CAST( NULL AS SIGNED ) * - - ( - + 57 ) + + 69 * - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT + - MIN ( DISTINCT + 55 ) * - 41 - - 6 + + 71 + 73 + CAST ( NULL AS INTEGER ) * - - ( - + 57 ) + + 69 * - - 96
----
NULL

query I rowsort
SELECT ALL - 97 - + 70 + + 61
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT - MIN( 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-8739
SELECT - MIN ( 89 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8740
SELECT + + CAST( 30 AS SIGNED ) + - 84 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8740
SELECT + + CAST ( 30 AS INTEGER ) + - 84 AS col0
----
-54

query I rowsort
SELECT DISTINCT + 64 - - 12 - 80 * - 9 * - - 83
----
59836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8742
SELECT DISTINCT 72 * + 17 * + COUNT( * ) + - - 83 DIV + 2
----
1265

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT 72 * + 17 * + COUNT ( * ) + - - 83 / + 2
----
1265

query I rowsort
SELECT ALL + ( + 97 ) AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8744
SELECT - - CAST( 54 AS SIGNED ), - 10 - + 97 + + + 8 AS col1
----
54
-99

skipif mysql # not compatible
query II rowsort label-8744
SELECT - - CAST ( 54 AS INTEGER ), - 10 - + 97 + + + 8 AS col1
----
54
-99

query I rowsort
SELECT ALL 53 * 62 col1
----
3286

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT + ( + 85 ) - + 2 + - 56 / + - 68 * 6 + - 13 * 36 * - - NULLIF ( + CASE + - 17 WHEN - - 21 THEN 7 ELSE NULL END, - CASE WHEN NOT + 38 <= - 48 THEN 41 ELSE - COUNT( * ) * 3 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT + ( + 85 ) - + 2 + - 56 / + - 68 * 6 + - 13 * 36 * - - NULLIF ( + CASE + - 17 WHEN - - 21 THEN 7 ELSE NULL END, - CASE WHEN NOT + 38 <= - 48 THEN 41 ELSE - COUNT ( * ) * 3 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT + 0 * - ( - + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8747
SELECT + 0 * - ( - + COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT + COUNT( * ) + - + ( + - ( - + 77 ) ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-8748
SELECT + COUNT ( * ) + - + ( + - ( - + 77 ) ) col2
----
-76

query II rowsort
SELECT - 88, - 31 AS col2
----
-88
-31

query I rowsort
SELECT + 64 + + + COALESCE ( - 41, + - 35 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL 70 + - SUM( ALL 56 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL 70 + - SUM ( ALL 56 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT COUNT( + 52 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT COUNT ( + 52 ) AS col0
----
1

query I rowsort
SELECT + 40 * + + 76 * 69 AS col2
----
209760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8754
SELECT + 58 - - 98 * COALESCE ( 18, 21 - 70 ) + CAST( NULL AS SIGNED ) - + COUNT( * ) * - COUNT( ALL 62 ) + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT + 58 - - 98 * COALESCE ( 18, 21 - 70 ) + CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - COUNT ( ALL 62 ) + - 66
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT - 94 DIV - 90 - + 49 + 74 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8755
SELECT - 94 / - 90 - + 49 + 74 AS col1
----
26

query I rowsort
SELECT DISTINCT 99 * - 41 * + 64 * - 72
----
18703872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8757
SELECT DISTINCT + COUNT( * ) DIV + - CAST( + 82 AS SIGNED ) + + 89 * + 16
----
1424

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT + COUNT ( * ) / + - CAST ( + 82 AS INTEGER ) + + 89 * + 16
----
1424

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8758
SELECT ( CAST( - 74 AS SIGNED ) ), 73 + - 74 + 53 AS col2
----
-74
52

skipif mysql # not compatible
query II rowsort label-8758
SELECT ( CAST ( - 74 AS INTEGER ) ), 73 + - 74 + 53 AS col2
----
-74
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT DISTINCT - COUNT( * ) * + NULLIF ( ( 2 ), 83 + + 39 * 85 / + + 11 * - - 88 )
----
-2

skipif mysql # not compatible
query I rowsort label-8759
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( ( 2 ), 83 + + 39 * 85 / + + 11 * - - 88 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT ALL + 7 * + - COUNT( * ) + + CAST( NULL AS SIGNED ) + - 54 * - COUNT( * ) * - + COUNT( * ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL + 7 * + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - 54 * - COUNT ( * ) * - + COUNT ( * ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8761
SELECT - 31 DIV NULLIF ( - + ( - 42 ), + ( - 47 ) * + COUNT( * ) - - 16 ) * + + 62 + - + 73 + + 73 * + 14 AS col2
----
949

skipif mysql # not compatible
query I rowsort label-8761
SELECT - 31 / NULLIF ( - + ( - 42 ), + ( - 47 ) * + COUNT ( * ) - - 16 ) * + + 62 + - + 73 + + 73 * + 14 AS col2
----
949

query I rowsort
SELECT + 74 + - 49 col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8763
SELECT NULLIF ( + 50, + 1 * - 23 * CAST( NULL AS SIGNED ) ) * - COUNT( * ) - - 65 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8763
SELECT NULLIF ( + 50, + 1 * - 23 * CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) - - 65 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8764
SELECT CASE 94 WHEN + + 84 / + 51 THEN + + COUNT( * ) END AS col0, 64 AS col2
----
NULL
64

skipif mysql # not compatible
query II rowsort label-8764
SELECT CASE 94 WHEN + + 84 / + 51 THEN + + COUNT ( * ) END AS col0, 64 AS col2
----
NULL
64

query I rowsort
SELECT ALL + + 75 col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8766
SELECT ALL + - CAST( - 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + - CAST ( - 71 AS INTEGER )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT DISTINCT + COUNT( DISTINCT 24 )
----
1

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT + COUNT ( DISTINCT 24 )
----
1

query I rowsort
SELECT - 72 * + + 37
----
-2664

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT - COUNT( * ) * + - 66
----
66

skipif mysql # not compatible
query I rowsort label-8769
SELECT - COUNT ( * ) * + - 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT + 67 * COUNT( * ) + 12 + - - ( - COUNT( * ) ) + - + 92 * MIN( ALL - 62 ) - - - COUNT( * ) AS col0
----
5781

skipif mysql # not compatible
query I rowsort label-8770
SELECT + 67 * COUNT ( * ) + 12 + - - ( - COUNT ( * ) ) + - + 92 * MIN ( ALL - 62 ) - - - COUNT ( * ) AS col0
----
5781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT + MIN( ALL + + 99 ) DIV + - 70 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8771
SELECT + MIN ( ALL + + 99 ) / + - 70 AS col1
----
-1

query I rowsort
SELECT ALL + - 71 * - 11 * + 45 AS col0
----
35145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8773
SELECT ALL - 85 DIV - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL - 85 / - COUNT ( * )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT DISTINCT 83 * + + CAST( + 42 AS SIGNED )
----
3486

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT 83 * + + CAST ( + 42 AS INTEGER )
----
3486

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT DISTINCT + 41 DIV 1 * + 38 AS col2
----
1558

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT + 41 / 1 * + 38 AS col2
----
1558

query I rowsort
SELECT - 36 + - - 71 - 80 AS col2
----
-45

query I rowsort
SELECT + 0 + + - 94 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT - ( ( COUNT( * ) ) ) + + 18 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8778
SELECT - ( ( COUNT ( * ) ) ) + + 18 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT - SUM( DISTINCT + 28 ) * - 65 AS col0
----
1820

skipif mysql # not compatible
query I rowsort label-8779
SELECT - SUM ( DISTINCT + 28 ) * - 65 AS col0
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT + 94 + + - COUNT( DISTINCT - 1 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8780
SELECT + 94 + + - COUNT ( DISTINCT - 1 ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8781
SELECT ALL 0 * CAST( + + 7 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8781
SELECT ALL 0 * CAST ( + + 7 AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8782
SELECT ALL + COUNT( - 91 ) + - CAST( NULL AS SIGNED ) * - 83 + + 38 - 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL + COUNT ( - 91 ) + - CAST ( NULL AS INTEGER ) * - 83 + + 38 - 2 col1
----
NULL

query I rowsort
SELECT DISTINCT - 24 + 37
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL SUM( + 14 ) + - MIN( DISTINCT 49 ) * - 29
----
1435

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL SUM ( + 14 ) + - MIN ( DISTINCT 49 ) * - 29
----
1435

query I rowsort
SELECT + 58 + 21
----
79

query II rowsort
SELECT ALL 95 AS col2, ( 29 ) AS col1
----
95
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL COUNT( * ) + 32 + + 71 + + ( + + 54 ) + + COALESCE ( - 8, + + COUNT( * ) )
----
150

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL COUNT ( * ) + 32 + + 71 + + ( + + 54 ) + + COALESCE ( - 8, + + COUNT ( * ) )
----
150

query I rowsort
SELECT - 22 * 27
----
-594

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8789
SELECT - CAST( + + 49 AS SIGNED ), + 95 * - 53 AS col0
----
-49
-5035

skipif mysql # not compatible
query II rowsort label-8789
SELECT - CAST ( + + 49 AS INTEGER ), + 95 * - 53 AS col0
----
-49
-5035

query I rowsort
SELECT ALL 93 + - 98
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT DISTINCT CASE - 60 WHEN + 79 * - 59 THEN NULL ELSE + 8 END + + - COUNT( ALL - 49 ) col2
----
7

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT CASE - 60 WHEN + 79 * - 59 THEN NULL ELSE + 8 END + + - COUNT ( ALL - 49 ) col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT ALL 10 AS col2, - MAX( DISTINCT + 96 )
----
10
-96

skipif mysql # not compatible
query II rowsort label-8792
SELECT ALL 10 AS col2, - MAX ( DISTINCT + 96 )
----
10
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8793
SELECT COUNT( * ) DIV - - 10
----
0

skipif mysql # not compatible
query I rowsort label-8793
SELECT COUNT ( * ) / - - 10
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8794
SELECT 68 + - + 69 * + 21 - - - ( CAST( 9 AS SIGNED ) ) * - - COUNT( * ) * + - 15
----
-1246

skipif mysql # not compatible
query I rowsort label-8794
SELECT 68 + - + 69 * + 21 - - - ( CAST ( 9 AS INTEGER ) ) * - - COUNT ( * ) * + - 15
----
-1246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8795
SELECT COALESCE ( 18, 22 ) * + ( - MIN( DISTINCT CAST( 59 AS SIGNED ) ) )
----
-1062

skipif mysql # not compatible
query I rowsort label-8795
SELECT COALESCE ( 18, 22 ) * + ( - MIN ( DISTINCT CAST ( 59 AS INTEGER ) ) )
----
-1062

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL 57 - - COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL 57 - - COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - 89 / - 40 * - 70 * - CASE + COALESCE ( 51, - - 83 * 92 + 76 * - 66 + COUNT( * ) ) WHEN COUNT( * ) THEN 36 * + + 32 - + 80 ELSE NULL END - + COUNT( * ) * + - MIN( DISTINCT 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT - 89 / - 40 * - 70 * - CASE + COALESCE ( 51, - - 83 * 92 + 76 * - 66 + COUNT ( * ) ) WHEN COUNT ( * ) THEN 36 * + + 32 - + 80 ELSE NULL END - + COUNT ( * ) * + - MIN ( DISTINCT 73 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT ALL - + CAST( 10 AS SIGNED ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL - + CAST ( 10 AS INTEGER ) col2
----
-10

query I rowsort
SELECT DISTINCT + 58 - - 19 AS col0
----
77

query I rowsort
SELECT DISTINCT 77 * - 97 * 67 * - 4 + 48
----
2001740

onlyif mysql # DIV for integer division: 
query I rowsort label-8801
SELECT + 56 DIV 28 * + 95 AS col2
----
190

skipif mysql # not compatible
query I rowsort label-8801
SELECT + 56 / 28 * + 95 AS col2
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8802
SELECT ALL 0 * + 53 DIV COUNT( * ) DIV + 59 * + - 1 * - 80, ( + 36 ) col1
----
0
36

skipif mysql # not compatible
query II rowsort label-8802
SELECT ALL 0 * + 53 / COUNT ( * ) / + 59 * + - 1 * - 80, ( + 36 ) col1
----
0
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT 60 - + 68 * + COUNT( * ) + + + 53 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-8803
SELECT 60 - + 68 * + COUNT ( * ) + + + 53 AS col0
----
45

query I rowsort
SELECT + 39 * + 23 + 61 AS col2
----
958

query I rowsort
SELECT ALL - NULLIF ( - 18, 19 + + COALESCE ( + + 35, - 56 + 40 * + 58 ) - - 86 / 98 ) AS col1
----
18

query II rowsort
SELECT - 65 AS col0, + 10
----
-65
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8807
SELECT + ( + - CASE + 56 WHEN + + COUNT( * ) THEN NULL WHEN - + CAST( NULLIF ( - COALESCE ( + 61, 34 ), - CASE CAST( 1 AS DECIMAL ) WHEN - + 98 / 18 THEN + COALESCE ( + + AVG ( DISTINCT + 16 ), + ( + 76 ) ) ELSE - ( - - 56 ) END - + 11 ) AS SIGNED ) THEN + 62 + + NULLIF ( - COUNT( * ), + 31 * 92 ) / - ( + 49 - COALESCE ( 68, - 86 ) ) END ) * + COUNT( * ) - - 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT + ( + - CASE + 56 WHEN + + COUNT ( * ) THEN NULL WHEN - + CAST ( NULLIF ( - COALESCE ( + 61, 34 ), - CASE CAST ( 1 AS REAL ) WHEN - + 98 / 18 THEN + COALESCE ( + + AVG ( DISTINCT + 16 ), + ( + 76 ) ) ELSE - ( - - 56 ) END - + 11 ) AS INTEGER ) THEN + 62 + + NULLIF ( - COUNT ( * ), + 31 * 92 ) / - ( + 49 - COALESCE ( 68, - 86 ) ) END ) * + COUNT ( * ) - - 3 AS col2
----
NULL

query II rowsort
SELECT 75 AS col2, 31
----
75
31

query I rowsort
SELECT ALL - + 22 AS col1
----
-22

query II rowsort
SELECT + - 37 AS col2, - 78 * + 23 - 16 AS col1
----
-37
-1810

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL - + COUNT( DISTINCT + 16 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL - + COUNT ( DISTINCT + 16 ) col2
----
-1

query II rowsort
SELECT ALL - 70, 29 AS col2
----
-70
29

query I rowsort
SELECT - NULLIF ( ( 32 ), - 63 ) - - + 7
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8814
SELECT ALL + + 60 * 76 AS col1, - COUNT( * ) + MAX( ALL + 58 ) * 72
----
4560
4175

skipif mysql # not compatible
query II rowsort label-8814
SELECT ALL + + 60 * 76 AS col1, - COUNT ( * ) + MAX ( ALL + 58 ) * 72
----
4560
4175

query I rowsort
SELECT 6 * - 52 AS col1
----
-312

query I rowsort
SELECT ALL + 12 + + 92
----
104

query II rowsort
SELECT ALL + 65, - 28 AS col2
----
65
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8818
SELECT - CASE + 4 WHEN + 19 + - - 48 THEN CAST( NULL AS SIGNED ) WHEN 51 * 22 THEN NULL ELSE NULL END AS col0, - 2
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-8818
SELECT - CASE + 4 WHEN + 19 + - - 48 THEN CAST ( NULL AS INTEGER ) WHEN 51 * 22 THEN NULL ELSE NULL END AS col0, - 2
----
NULL
-2

query I rowsort
SELECT 98 * - + 28 AS col0
----
-2744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8820
SELECT COUNT( * ) * - + CAST( + - SUM( 73 ) AS SIGNED ) col0
----
73

skipif mysql # not compatible
query I rowsort label-8820
SELECT COUNT ( * ) * - + CAST ( + - SUM ( 73 ) AS INTEGER ) col0
----
73

query I rowsort
SELECT DISTINCT + 65 + 43 * + 6
----
323

query I rowsort
SELECT ALL - ( + + 63 ) + 89 + - - 12 + + 93 + 62 * + 96 * + 43 AS col1
----
256067

query I rowsort
SELECT ALL + NULLIF ( ( - + 70 ), 53 ) + - 64 col2
----
-134

query I rowsort
SELECT 24 * - + NULLIF ( CASE - 45 WHEN + 55 THEN 39 ELSE 33 END, 56 )
----
-792

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8825
SELECT DISTINCT CAST( - 23 AS SIGNED ) DIV - 8, + 54 AS col2
----
2
54

skipif mysql # not compatible
query II rowsort label-8825
SELECT DISTINCT CAST ( - 23 AS INTEGER ) / - 8, + 54 AS col2
----
2
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8826
SELECT DISTINCT + CASE CASE - - 81 WHEN - - COALESCE ( + - 34, - 96, - 71 ) THEN - + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) WHEN - 43 THEN - 53 * - - AVG ( + - 4 ) ELSE NULL END WHEN 60 THEN 58 + + 23 ELSE - COUNT( DISTINCT + 75 ) * - 48 END + - 95 + + 51 - - - 35 * 10 AS col0
----
-346

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT + CASE CASE - - 81 WHEN - - COALESCE ( + - 34, - 96, - 71 ) THEN - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) WHEN - 43 THEN - 53 * - - AVG ( + - 4 ) ELSE NULL END WHEN 60 THEN 58 + + 23 ELSE - COUNT ( DISTINCT + 75 ) * - 48 END + - 95 + + 51 - - - 35 * 10 AS col0
----
-346

query I rowsort
SELECT 7 + - ( + 37 )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8828
SELECT 33 + - - 52 - + + COUNT( * ) * 62 * + - 73 DIV - COUNT( * )
----
-4441

skipif mysql # not compatible
query I rowsort label-8828
SELECT 33 + - - 52 - + + COUNT ( * ) * 62 * + - 73 / - COUNT ( * )
----
-4441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8829
SELECT ALL 63 - - - 72 - COUNT( DISTINCT + 44 ) DIV - - 28 + - 84 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL 63 - - - 72 - COUNT ( DISTINCT + 44 ) / - - 28 + - 84 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT DISTINCT + ( + 9 ) * MAX( ALL 70 ) AS col2
----
630

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT + ( + 9 ) * MAX ( ALL 70 ) AS col2
----
630

query I rowsort
SELECT 58 - - 73 AS col2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT ALL + MAX( 82 ) * - 84 AS col1
----
-6888

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + MAX ( 82 ) * - 84 AS col1
----
-6888

query II rowsort
SELECT 95 + + 62, + 56 * + 87 AS col1
----
157
4872

query I rowsort
SELECT + 30 * + 3 + + 75 AS col1
----
165

query I rowsort
SELECT ALL - 16 col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8836
SELECT SUM( + 40 ) + - + 77 + + 9 - + 52 + CAST( NULL AS SIGNED ) / + + 17 - + - 33 - + 32 + 97 * + + CAST( NULL AS SIGNED ) - + 23 / + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT SUM ( + 40 ) + - + 77 + + 9 - + 52 + CAST ( NULL AS INTEGER ) / + + 17 - + - 33 - + 32 + 97 * + + CAST ( NULL AS INTEGER ) - + 23 / + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8837
SELECT 99 DIV - 10 - 73 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8837
SELECT 99 / - 10 - 73 AS col1
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-8838
SELECT DISTINCT + 35 DIV 3, + 26 col0
----
11
26

skipif mysql # not compatible
query II rowsort label-8838
SELECT DISTINCT + 35 / 3, + 26 col0
----
11
26

query I rowsort
SELECT + 38 * - 39 + + - 84 AS col0
----
-1566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8840
SELECT ALL 20 * + 9 / - CASE 79 WHEN - 62 THEN NULL WHEN - CAST( NULL AS SIGNED ) * - ( + 58 ) * + 76 - 6 * 83 * + + COALESCE ( + - 1, - - 70, - + COUNT( * ) ) + + - COUNT( * ) THEN 30 WHEN 50 * - 69 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL 20 * + 9 / - CASE 79 WHEN - 62 THEN NULL WHEN - CAST ( NULL AS INTEGER ) * - ( + 58 ) * + 76 - 6 * 83 * + + COALESCE ( + - 1, - - 70, - + COUNT ( * ) ) + + - COUNT ( * ) THEN 30 WHEN 50 * - 69 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8841
SELECT + COUNT( ( 71 ) ) AS col1, COUNT( * ) + 41 AS col2
----
1
42

skipif mysql # not compatible
query II rowsort label-8841
SELECT + COUNT ( ( 71 ) ) AS col1, COUNT ( * ) + 41 AS col2
----
1
42

query I rowsort
SELECT + ( + 31 ) AS col0
----
31

query I rowsort
SELECT DISTINCT - ( + 5 ) + - + 93
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT CASE COUNT( ALL - + 29 ) WHEN - 62 - + 87 THEN - + 0 * AVG ( ALL - - 1 ) WHEN 10 THEN - 0 * 69 * - 68 * - 26 END / + - ( - 88 ) + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT CASE COUNT ( ALL - + 29 ) WHEN - 62 - + 87 THEN - + 0 * AVG ( ALL - - 1 ) WHEN 10 THEN - 0 * 69 * - 68 * - 26 END / + - ( - 88 ) + 53 AS col2
----
NULL

query I rowsort
SELECT ALL + 83 + - 62
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8846
SELECT + + CAST( - 19 AS SIGNED ) AS col2, - 73
----
-19
-73

skipif mysql # not compatible
query II rowsort label-8846
SELECT + + CAST ( - 19 AS INTEGER ) AS col2, - 73
----
-19
-73

query I rowsort
SELECT - 79 + 35 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT COUNT( * ) * - - 43
----
43

skipif mysql # not compatible
query I rowsort label-8848
SELECT COUNT ( * ) * - - 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT ( MIN( DISTINCT 15 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8849
SELECT ( MIN ( DISTINCT 15 ) ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT + CAST( NULL AS SIGNED ) * - COALESCE ( - 66, + ( + 15 ) ) + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT + CAST ( NULL AS INTEGER ) * - COALESCE ( - 66, + ( + 15 ) ) + + 40
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8851
SELECT - 1 * COUNT( DISTINCT + 19 ) + - COUNT( * ) AS col0, 81 DIV - - 91 * - + 33
----
-2
0

skipif mysql # not compatible
query II rowsort label-8851
SELECT - 1 * COUNT ( DISTINCT + 19 ) + - COUNT ( * ) AS col0, 81 / - - 91 * - + 33
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT ( 92 ) + + COUNT( * ) * + 1 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-8852
SELECT ( 92 ) + + COUNT ( * ) * + 1 AS col1
----
93

query I rowsort
SELECT ALL + ( + 17 ) + 15 AS col0
----
32

query II rowsort
SELECT ALL 28 AS col1, 23 AS col1
----
28
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT 24 + - 50 * - + NULLIF ( - 3, - ( - + 52 ) ) / - MIN( CAST( NULL AS SIGNED ) ) + - 35 + COUNT( * ) * - + 93 / + 93 * + 73 + CAST( + 23 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT 24 + - 50 * - + NULLIF ( - 3, - ( - + 52 ) ) / - MIN ( CAST ( NULL AS INTEGER ) ) + - 35 + COUNT ( * ) * - + 93 / + 93 * + 73 + CAST ( + 23 AS INTEGER )
----
NULL

query I rowsort
SELECT 33 + + 87 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT 43 + - COUNT( ALL 17 ) + - + 0 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8857
SELECT 43 + - COUNT ( ALL 17 ) + - + 0 AS col1
----
42

query I rowsort
SELECT ALL - 15 - + 60
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT CAST( NULL AS SIGNED ) * + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT CAST ( NULL AS INTEGER ) * + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8860
SELECT - COALESCE ( 20, + 35 * - + 55 ) + - - MAX( ALL CAST( NULL AS SIGNED ) ) + 77 * - 36 + - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT - COALESCE ( 20, + 35 * - + 55 ) + - - MAX ( ALL CAST ( NULL AS INTEGER ) ) + 77 * - 36 + - 52 AS col2
----
NULL

query II rowsort
SELECT - 50, + 57 col1
----
-50
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT - 40 * - - 22 * - COUNT( * )
----
880

skipif mysql # not compatible
query I rowsort label-8862
SELECT - 40 * - - 22 * - COUNT ( * )
----
880

query I rowsort
SELECT ALL NULLIF ( - 69, - 51 * + 35 )
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8864
SELECT - 69 DIV + SUM( - 78 )
----
0

skipif mysql # not compatible
query I rowsort label-8864
SELECT - 69 / + SUM ( - 78 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT - ( 18 ) * + COUNT( * ) + - 22 + + 10 * 6
----
20

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT - ( 18 ) * + COUNT ( * ) + - 22 + + 10 * 6
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT ALL COUNT( + + 34 )
----
1

skipif mysql # not compatible
query I rowsort label-8866
SELECT ALL COUNT ( + + 34 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8867
SELECT - COUNT( * ) + + CASE ( + - 37 ) WHEN + - 11 + + 75 THEN + 39 * - 58 ELSE - CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8867
SELECT - COUNT ( * ) + + CASE ( + - 37 ) WHEN + - 11 + + 75 THEN + 39 * - 58 ELSE - CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT DISTINCT CASE 2 WHEN 88 THEN - 60 * - 49 * + + 67 + - 40 WHEN + + 12 * - - 42 * - MAX( - ( 48 ) ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT CASE 2 WHEN 88 THEN - 60 * - 49 * + + 67 + - 40 WHEN + + 12 * - - 42 * - MAX ( - ( 48 ) ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8869
SELECT - 21 + + - ( 45 ) + - 84 + CAST( - NULLIF ( + 42, 44 - 41 ) AS SIGNED ) * + 96 * 35 AS col0
----
-141270

skipif mysql # not compatible
query I rowsort label-8869
SELECT - 21 + + - ( 45 ) + - 84 + CAST ( - NULLIF ( + 42, 44 - 41 ) AS INTEGER ) * + 96 * 35 AS col0
----
-141270

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT - 33 DIV + 15
----
-2

skipif mysql # not compatible
query I rowsort label-8870
SELECT - 33 / + 15
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT - + ( + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8871
SELECT - + ( + COUNT ( * ) ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT DISTINCT - - 7 DIV + - NULLIF ( + - 35, 82 - ( 23 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT - - 7 / + - NULLIF ( + - 35, 82 - ( 23 ) )
----
0

query II rowsort
SELECT DISTINCT + + 26 AS col1, 57
----
26
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8874
SELECT ALL + - NULLIF ( COUNT( * ), 21 ) col1, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-8874
SELECT ALL + - NULLIF ( COUNT ( * ), 21 ) col1, COUNT ( * ) AS col0
----
-1
1

query I rowsort
SELECT ALL + + ( 77 ) AS col1
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8876
SELECT + ( ( + COUNT( * ) ) ), 50 AS col1
----
1
50

skipif mysql # not compatible
query II rowsort label-8876
SELECT + ( ( + COUNT ( * ) ) ), 50 AS col1
----
1
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8877
SELECT ALL + CAST( - NULLIF ( + 72, - + ( - CASE - - 10 WHEN + 78 + 85 + + ( + - 29 ) THEN - 85 * + + 80 * + 12 - 35 + - + 85 * - 49 * - 57 + + 18 + 39 ELSE NULL END ) ) AS SIGNED ) * - COUNT( * ) + + CAST( - 11 AS SIGNED ) + + 76
----
137

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL + CAST ( - NULLIF ( + 72, - + ( - CASE - - 10 WHEN + 78 + 85 + + ( + - 29 ) THEN - 85 * + + 80 * + 12 - 35 + - + 85 * - 49 * - 57 + + 18 + 39 ELSE NULL END ) ) AS INTEGER ) * - COUNT ( * ) + + CAST ( - 11 AS INTEGER ) + + 76
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-8878
SELECT + 0, COUNT( * ) + + 46 + + - 25 AS col2
----
0
22

skipif mysql # not compatible
query II rowsort label-8878
SELECT + 0, COUNT ( * ) + + 46 + + - 25 AS col2
----
0
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - 68 - - 33 + + + COUNT( * ) * + + 87 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8879
SELECT - 68 - - 33 + + + COUNT ( * ) * + + 87 AS col0
----
52

query I rowsort
SELECT NULLIF ( + - 41, - 51 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT - NULLIF ( 7, 19 ) * 18 + + 81 * - 91 * + - ( + - MIN( - - 88 ) ) AS col1
----
-648774

skipif mysql # not compatible
query I rowsort label-8881
SELECT - NULLIF ( 7, 19 ) * 18 + + 81 * - 91 * + - ( + - MIN ( - - 88 ) ) AS col1
----
-648774

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT DISTINCT - 63 * + - CAST( MAX( DISTINCT - + 1 ) AS SIGNED ) + - + 58 + + 45 col1
----
-76

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT - 63 * + - CAST ( MAX ( DISTINCT - + 1 ) AS INTEGER ) + - + 58 + + 45 col1
----
-76

query II rowsort
SELECT + 18 * + 96 AS col0, + 74
----
1728
74

query I rowsort
SELECT ALL 29 * - 31
----
-899

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT + MAX( ALL - - 5 ) - - + 61
----
66

skipif mysql # not compatible
query I rowsort label-8885
SELECT + MAX ( ALL - - 5 ) - - + 61
----
66

query I rowsort
SELECT + 82 * - 39
----
-3198

query I rowsort
SELECT + 88 * - 6
----
-528

query I rowsort
SELECT - NULLIF ( - 58, 91 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL 87 - + MIN( DISTINCT - CASE + 88 WHEN + 43 THEN - + 64 ELSE - + 63 END ) * + 99 * MAX( + 25 )
----
-155838

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL 87 - + MIN ( DISTINCT - CASE + 88 WHEN + 43 THEN - + 64 ELSE - + 63 END ) * + 99 * MAX ( + 25 )
----
-155838

query I rowsort
SELECT + 69 - + 51 * - 20 col0
----
1089

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8891
SELECT + 28 * + 53 col1, - 16 - + - MIN( DISTINCT - + 62 ) + + + 28 DIV - 89 * - 10 AS col1
----
1484
-78

skipif mysql # not compatible
query II rowsort label-8891
SELECT + 28 * + 53 col1, - 16 - + - MIN ( DISTINCT - + 62 ) + + + 28 / - 89 * - 10 AS col1
----
1484
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8892
SELECT ALL CASE 46 WHEN - - 70 - - - NULLIF ( - 79, - - 37 ) + 65 THEN + + NULLIF ( + 71, COUNT( * ) ) ELSE 28 - - + 88 END, ( + 59 ) * - 85 AS col2
----
116
-5015

skipif mysql # not compatible
query II rowsort label-8892
SELECT ALL CASE 46 WHEN - - 70 - - - NULLIF ( - 79, - - 37 ) + 65 THEN + + NULLIF ( + 71, COUNT ( * ) ) ELSE 28 - - + 88 END, ( + 59 ) * - 85 AS col2
----
116
-5015

query I rowsort
SELECT DISTINCT - 3 * + 4 AS col0
----
-12

query I rowsort
SELECT - 98 * - 62
----
6076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8895
SELECT + 9 + - CAST( - - CASE + NULLIF ( NULLIF ( + + NULLIF ( - COALESCE ( - NULLIF ( 63, + 75 * + ( - + 4 ) / - + 73 ), - 41 ), - 75 ), 52 / + 70 + - 35 + - + CAST( NULL AS SIGNED ) + + 73 * - + 96 * - 86 ), MAX( DISTINCT + 50 ) ) WHEN 23 * - MIN( ALL 60 ) + 8 THEN + 27 + 99 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT + 9 + - CAST ( - - CASE + NULLIF ( NULLIF ( + + NULLIF ( - COALESCE ( - NULLIF ( 63, + 75 * + ( - + 4 ) / - + 73 ), - 41 ), - 75 ), 52 / + 70 + - 35 + - + CAST ( NULL AS INTEGER ) + + 73 * - + 96 * - 86 ), MAX ( DISTINCT + 50 ) ) WHEN 23 * - MIN ( ALL 60 ) + 8 THEN + 27 + 99 END AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 13 * + - 74 AS col1
----
962

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL + - 42 + COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + - 42 + COUNT ( * ) AS col2
----
-41

query I rowsort
SELECT - - 32 - - 28
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-8899
SELECT ALL - + COUNT( * ) * - 96 AS col1, - 19
----
96
-19

skipif mysql # not compatible
query II rowsort label-8899
SELECT ALL - + COUNT ( * ) * - 96 AS col1, - 19
----
96
-19

query I rowsort
SELECT DISTINCT + 41 + + 74 + + 94 * 62
----
5943

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT ALL + MIN( ALL + NULLIF ( - 42, - + 48 * - 7 * + 27 * + 54 + 5 ) ) + + 5 + - + 72
----
-109

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL + MIN ( ALL + NULLIF ( - 42, - + 48 * - 7 * + 27 * + 54 + 5 ) ) + + 5 + - + 72
----
-109

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT - + 13 DIV + 24 col1
----
0

skipif mysql # not compatible
query I rowsort label-8902
SELECT - + 13 / + 24 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL + 7 + + COUNT( * ) + - ( + - 93 )
----
101

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL + 7 + + COUNT ( * ) + - ( + - 93 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT + + 0 + 13 * + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT + + 0 + 13 * + COUNT ( * )
----
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8905
SELECT ALL - 43 / - 81 + 74 + - - 60 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - 43 / - 81 + 74 + - - 60 * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - 85 + - - 67 AS col0, - 4 AS col2
----
-18
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8907
SELECT ALL 50 DIV + 14 + - + 92 + - COUNT( * ) + - COUNT( * ) + + 41 * + + 99
----
3968

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL 50 / + 14 + - + 92 + - COUNT ( * ) + - COUNT ( * ) + + 41 * + + 99
----
3968

query I rowsort
SELECT DISTINCT + + 60 col1
----
60

query I rowsort
SELECT + - ( + 17 )
----
-17

query I rowsort
SELECT 36 * + 88 * - 12 + ( - 25 ) AS col2
----
-38041

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8911
SELECT ALL + 25 DIV CASE 78 WHEN + 5 * + 76 THEN + 54 ELSE NULL END + - 90 + SUM( ALL - 45 ) + + 45 * ( + 64 ) * SUM( + 40 ), + NULLIF ( + COUNT( * ), 40 ) - NULLIF ( - 61, + 70 ) DIV - MAX( + 96 ) * 43 + - + ( 50 ) AS col1
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-8911
SELECT ALL + 25 / CASE 78 WHEN + 5 * + 76 THEN + 54 ELSE NULL END + - 90 + SUM ( ALL - 45 ) + + 45 * ( + 64 ) * SUM ( + 40 ), + NULLIF ( + COUNT ( * ), 40 ) - NULLIF ( - 61, + 70 ) / - MAX ( + 96 ) * 43 + - + ( 50 ) AS col1
----
NULL
-49

query I rowsort
SELECT + + ( + + 84 ) col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8913
SELECT ALL + 75 * - 14 DIV - - MIN( + 7 ) AS col2, 81 AS col1
----
-150
81

skipif mysql # not compatible
query II rowsort label-8913
SELECT ALL + 75 * - 14 / - - MIN ( + 7 ) AS col2, 81 AS col1
----
-150
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT + MAX( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT + MAX ( 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL 27 * - - COUNT( * ) col2
----
27

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL 27 * - - COUNT ( * ) col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8916
SELECT + 94 + - COUNT( * ) + 40 * MAX( ALL - 91 ) + + 72 DIV + - 41 + - 38 AS col2
----
-3586

skipif mysql # not compatible
query I rowsort label-8916
SELECT + 94 + - COUNT ( * ) + 40 * MAX ( ALL - 91 ) + + 72 / + - 41 + - 38 AS col2
----
-3586

query I rowsort
SELECT + NULLIF ( + 7, ( + 62 ) * 2 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT ALL - CAST( + 91 AS SIGNED ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL - CAST ( + 91 AS INTEGER ) AS col1
----
-91

query I rowsort
SELECT 23 + + - 10
----
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8920
SELECT 26 DIV + 93 * - NULLIF ( + 48, - - 87 + - CAST( NULL AS SIGNED ) + - - 67 ) * - 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT 26 / + 93 * - NULLIF ( + 48, - - 87 + - CAST ( NULL AS INTEGER ) + - - 67 ) * - 3 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT 62 * + - 62 * - + 52 * + - MAX( 95 ) * - ( + 68 ) + 23
----
1291276503

skipif mysql # not compatible
query I rowsort label-8921
SELECT 62 * + - 62 * - + 52 * + - MAX ( 95 ) * - ( + 68 ) + 23
----
1291276503

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT - COUNT( - 42 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT - COUNT ( - 42 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT ALL - CAST( + - 46 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL - CAST ( + - 46 AS INTEGER ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL 22 * + MAX( DISTINCT - 20 ) AS col0
----
-440

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL 22 * + MAX ( DISTINCT - 20 ) AS col0
----
-440

query I rowsort
SELECT 52 * - 54 * - 9 AS col2
----
25272

query I rowsort
SELECT ALL 40 * - - 14 AS col1
----
560

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8927
SELECT DISTINCT + NULLIF ( + 46, - 44 + COUNT( ALL - 18 ) ) / - CAST( NULL AS DECIMAL ) + - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT + NULLIF ( + 46, - 44 + COUNT ( ALL - 18 ) ) / - CAST ( NULL AS REAL ) + - 94 AS col1
----
NULL

query I rowsort
SELECT ALL 16 * 2 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT 68 + + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-8929
SELECT 68 + + COUNT ( * )
----
69

query I rowsort
SELECT ALL 86 * - 6 AS col1
----
-516

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT 42 DIV + 84 * - 47
----
0

skipif mysql # not compatible
query I rowsort label-8931
SELECT 42 / + 84 * - 47
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8932
SELECT + 35 * - ( - 8 ) * - + 57 + + + ( CAST( NULL AS SIGNED ) ) + - ( - + 5 ) + - + 4 - - 88 * - 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8932
SELECT + 35 * - ( - 8 ) * - + 57 + + + ( CAST ( NULL AS INTEGER ) ) + - ( - + 5 ) + - + 4 - - 88 * - 12 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL 80 + 13 + + 14 + - COUNT( * ) - - 9 + ( + + 14 )
----
129

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL 80 + 13 + + 14 + - COUNT ( * ) - - 9 + ( + + 14 )
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT 93 + + 68 + - COUNT( * ) + - + 5 + + - ( + COUNT( * ) ) * - + 40
----
195

skipif mysql # not compatible
query I rowsort label-8934
SELECT 93 + + 68 + - COUNT ( * ) + - + 5 + + - ( + COUNT ( * ) ) * - + 40
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8935
SELECT 81 DIV - MAX( DISTINCT 87 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8935
SELECT 81 / - MAX ( DISTINCT 87 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8936
SELECT + 90 + + - 34 DIV - 77, + 97 AS col2
----
90
97

skipif mysql # not compatible
query II rowsort label-8936
SELECT + 90 + + - 34 / - 77, + 97 AS col2
----
90
97

query I rowsort
SELECT ALL ( + + 61 ) AS col0
----
61

query I rowsort
SELECT ALL + 11 + + 75
----
86

query I rowsort
SELECT ALL + NULLIF ( 35, 38 ) + - - 67 + 79
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8940
SELECT ALL - - 27 + - 60 - - - COUNT( - + CAST( - 98 AS SIGNED ) ) * + - ( + - 7 ) + + 67 AS col0, - 9
----
27
-9

skipif mysql # not compatible
query II rowsort label-8940
SELECT ALL - - 27 + - 60 - - - COUNT ( - + CAST ( - 98 AS INTEGER ) ) * + - ( + - 7 ) + + 67 AS col0, - 9
----
27
-9

query I rowsort
SELECT 29 * 26 AS col0
----
754

query I rowsort
SELECT + 6 * - 54
----
-324

query I rowsort
SELECT ALL - + CASE ( - 53 ) WHEN 68 THEN + 64 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8944
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 81 * 28 * - - 2 * + NULLIF ( + 55, - 90 ) + COUNT( * ) + - 68 * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 81 * 28 * - - 2 * + NULLIF ( + 55, - 90 ) + COUNT ( * ) + - 68 * + 39
----
NULL

query I rowsort
SELECT ALL - 35 * - 92 col1
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT - 72 * + 20 * SUM( + 55 ) AS col0
----
-79200

skipif mysql # not compatible
query I rowsort label-8946
SELECT - 72 * + 20 * SUM ( + 55 ) AS col0
----
-79200

query I rowsort
SELECT 29 + 93
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-8948
SELECT + + 44 AS col0, - COUNT( * ) AS col1
----
44
-1

skipif mysql # not compatible
query II rowsort label-8948
SELECT + + 44 AS col0, - COUNT ( * ) AS col1
----
44
-1

query I rowsort
SELECT ( + 29 ) * 59 + + 90 AS col1
----
1801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT ALL - CASE + CAST( NULL AS SIGNED ) WHEN CAST( + - 64 AS SIGNED ) THEN + 74 + + ( + 12 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL - CASE + CAST ( NULL AS INTEGER ) WHEN CAST ( + - 64 AS INTEGER ) THEN + 74 + + ( + 12 ) ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8951
SELECT ALL + COALESCE ( 2, + 30 ) DIV 10
----
0

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL + COALESCE ( 2, + 30 ) / 10
----
0

query I rowsort
SELECT 33 * + 74 * + 81
----
197802

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT + 13 DIV 4 + + 2 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8953
SELECT + 13 / 4 + + 2 AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8954
SELECT ALL - COUNT( * ), - 74 AS col2
----
-1
-74

skipif mysql # not compatible
query II rowsort label-8954
SELECT ALL - COUNT ( * ), - 74 AS col2
----
-1
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT 42 * + NULLIF ( + ( + 39 ), ( - COUNT( * ) ) * - - COUNT( * ) ) AS col1
----
1638

skipif mysql # not compatible
query I rowsort label-8955
SELECT 42 * + NULLIF ( + ( + 39 ), ( - COUNT ( * ) ) * - - COUNT ( * ) ) AS col1
----
1638

query II rowsort
SELECT ALL - 78 AS col1, 43 * + 4
----
-78
172

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT ALL - CASE - - 71 WHEN 18 THEN NULL WHEN - + 98 * - 68 * + 54 + + 9 + - + 76 - - 19 + + 58 * - COUNT( * ) - 75 * - 5 * + 50 THEN - 75 ELSE + 13 END
----
-13

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - CASE - - 71 WHEN 18 THEN NULL WHEN - + 98 * - 68 * + 54 + + 9 + - + 76 - - 19 + + 58 * - COUNT ( * ) - 75 * - 5 * + 50 THEN - 75 ELSE + 13 END
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT DISTINCT - 12 * - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT - 12 * - COUNT ( * )
----
12

query II rowsort
SELECT + 92 AS col1, ( - 3 ) AS col1
----
92
-3

query I rowsort
SELECT 68 * 8
----
544

query II rowsort
SELECT 49, - 5 AS col1
----
49
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL - 58 + + - CASE ( - + ( - 78 ) ) WHEN + 18 THEN NULLIF ( + - COUNT( * ), 94 + - 79 ) END * 7 * - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL - 58 + + - CASE ( - + ( - 78 ) ) WHEN + 18 THEN NULLIF ( + - COUNT ( * ), 94 + - 79 ) END * 7 * - 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT 21 * + + SUM( DISTINCT + 66 ) - 30 + 32 + + 94
----
1482

skipif mysql # not compatible
query I rowsort label-8963
SELECT 21 * + + SUM ( DISTINCT + 66 ) - 30 + 32 + + 94
----
1482

query II rowsort
SELECT 22 AS col2, + 82
----
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT SUM( + 7 ) * + 85 AS col0
----
595

skipif mysql # not compatible
query I rowsort label-8965
SELECT SUM ( + 7 ) * + 85 AS col0
----
595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8966
SELECT 58 * + + CAST( - 24 AS SIGNED ) AS col2
----
-1392

skipif mysql # not compatible
query I rowsort label-8966
SELECT 58 * + + CAST ( - 24 AS INTEGER ) AS col2
----
-1392

query I rowsort
SELECT 61 + - 45 AS col0
----
16

query II rowsort
SELECT 65, + 75 col0
----
65
75

query II rowsort
SELECT 35, + ( - ( + 8 ) ) AS col0
----
35
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8970
SELECT ALL 74 + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL 74 + - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - SUM( + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-8971
SELECT - SUM ( + 81 )
----
-81

query I rowsort
SELECT ALL - 49 + - 86
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT COALESCE ( COUNT( * ), - 18 ) * + 78 * - 52
----
-4056

skipif mysql # not compatible
query I rowsort label-8973
SELECT COALESCE ( COUNT ( * ), - 18 ) * + 78 * - 52
----
-4056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8974
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 0 + - + 59 - + 76 * + ( 98 ) AS col0
----
-7507

onlyif mysql # DIV for integer division: 
query II rowsort label-8976
SELECT 99, 33 DIV + 60 + - - 40 - 12 col0
----
99
28

skipif mysql # not compatible
query II rowsort label-8976
SELECT 99, 33 / + 60 + - - 40 - 12 col0
----
99
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8977
SELECT - + COUNT( * ) AS col1, + 81 + - + MAX( DISTINCT - + 89 ) * + COUNT( * )
----
-1
170

skipif mysql # not compatible
query II rowsort label-8977
SELECT - + COUNT ( * ) AS col1, + 81 + - + MAX ( DISTINCT - + 89 ) * + COUNT ( * )
----
-1
170

onlyif mysql # aggregate syntax: 
query II rowsort label-8978
SELECT 44 + - + COUNT( * ) AS col2, 69 * - - 36 AS col2
----
43
2484

skipif mysql # not compatible
query II rowsort label-8978
SELECT 44 + - + COUNT ( * ) AS col2, 69 * - - 36 AS col2
----
43
2484

query I rowsort
SELECT ALL 73 - - 88 AS col0
----
161

query II rowsort
SELECT 36 AS col0, - 22 * + 2 AS col2
----
36
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT - ( 75 ) + + - 79 DIV 29 * - 73 * 25 * ( + 45 ) DIV 96
----
1635

skipif mysql # not compatible
query I rowsort label-8981
SELECT - ( 75 ) + + - 79 / 29 * - 73 * 25 * ( + 45 ) / 96
----
1635

query I rowsort
SELECT DISTINCT + 6 - + + 57 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8983
SELECT DISTINCT + 8 AS col1, 73 + - 71 - - 25 * NULLIF ( - 29, + 23 / 96 ) * - + COUNT( - 56 ) * - 45 AS col2
----
8
-32623

skipif mysql # not compatible
query II rowsort label-8983
SELECT DISTINCT + 8 AS col1, 73 + - 71 - - 25 * NULLIF ( - 29, + 23 / 96 ) * - + COUNT ( - 56 ) * - 45 AS col2
----
8
-32623

onlyif mysql # aggregate syntax: 
query II rowsort label-8984
SELECT 91, + 62 * + 88 + - COUNT( * ) * - 62 AS col0
----
91
5518

skipif mysql # not compatible
query II rowsort label-8984
SELECT 91, + 62 * + 88 + - COUNT ( * ) * - 62 AS col0
----
91
5518

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT DISTINCT + - COUNT( ALL 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT + - COUNT ( ALL 92 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT - SUM( DISTINCT - + 96 ) * + 78 - + 26
----
7462

skipif mysql # not compatible
query I rowsort label-8986
SELECT - SUM ( DISTINCT - + 96 ) * + 78 - + 26
----
7462

query I rowsort
SELECT + NULLIF ( - + 7, - + 94 ) col0
----
-7

query I rowsort
SELECT CASE + - 35 WHEN + 96 + - - AVG ( ALL - + 2 ) THEN - 10 * - 5 * + - 79 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8989
SELECT ALL + 98 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL + 98 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8990
SELECT + SUM( + CAST( 74 AS SIGNED ) ) * - 69 - 59 * + + 98 col0
----
-10888

skipif mysql # not compatible
query I rowsort label-8990
SELECT + SUM ( + CAST ( 74 AS INTEGER ) ) * - 69 - 59 * + + 98 col0
----
-10888

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT DISTINCT + COALESCE ( 0, + - 43, - 77 DIV ( - 79 ) * + 69 * + 87 )
----
0

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT + COALESCE ( 0, + - 43, - 77 / ( - 79 ) * + 69 * + 87 )
----
0

query I rowsort
SELECT DISTINCT ( - - 63 ) * - COALESCE ( - 73, - 15 )
----
4599

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT - SUM( DISTINCT + 82 ) + - 70
----
-152

skipif mysql # not compatible
query I rowsort label-8993
SELECT - SUM ( DISTINCT + 82 ) + - 70
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL CASE - 43 WHEN 75 THEN 19 WHEN + COUNT( * ) THEN NULL END * + - 45 + + 45 + AVG ( ALL - - ( - 9 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL CASE - 43 WHEN 75 THEN 19 WHEN + COUNT ( * ) THEN NULL END * + - 45 + + 45 + AVG ( ALL - - ( - 9 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + ( + - COUNT( 23 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8995
SELECT + ( + - COUNT ( 23 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL 39 * - 87 + - 27 * 5 + - SUM( - 23 )
----
-3505

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL 39 * - 87 + - 27 * 5 + - SUM ( - 23 )
----
-3505

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT DISTINCT + COUNT( ALL + + 74 ) * - 87 * + 37
----
-3219

skipif mysql # not compatible
query I rowsort label-8997
SELECT DISTINCT + COUNT ( ALL + + 74 ) * - 87 * + 37
----
-3219

query I rowsort
SELECT - 56 + 34 * - 85 * - 25
----
72194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT ALL + CASE - 16 WHEN - + 14 THEN NULL ELSE 41 DIV - 45 - - COUNT( * ) - + 15 * - 31 + + 71 END + - 64 + - + 63 + - 50 AS col2
----
360

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + CASE - 16 WHEN - + 14 THEN NULL ELSE 41 / - 45 - - COUNT ( * ) - + 15 * - 31 + + 71 END + - 64 + - + 63 + - 50 AS col2
----
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9000
SELECT - + 84 + + + 19 - + CAST( NULL AS SIGNED ) AS col2, ( + - SUM( 73 ) ) * + - COUNT( * )
----
NULL
73

skipif mysql # not compatible
query II rowsort label-9000
SELECT - + 84 + + + 19 - + CAST ( NULL AS INTEGER ) AS col2, ( + - SUM ( 73 ) ) * + - COUNT ( * )
----
NULL
73

onlyif mysql # aggregate syntax: 
query II rowsort label-9001
SELECT - + MAX( + 38 ), 57 AS col2
----
-38
57

skipif mysql # not compatible
query II rowsort label-9001
SELECT - + MAX ( + 38 ), 57 AS col2
----
-38
57

query I rowsort
SELECT DISTINCT + - 93 * + 92 col2
----
-8556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9003
SELECT - 51 * 45 * + CAST( + + 78 AS SIGNED ) + - 2 + + 20 + ( 51 )
----
-178941

skipif mysql # not compatible
query I rowsort label-9003
SELECT - 51 * 45 * + CAST ( + + 78 AS INTEGER ) + - 2 + + 20 + ( 51 )
----
-178941

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT ALL + + 43 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL + + 43 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9005
SELECT - 91 * - 88 * + - 49, + COUNT( * ) AS col1
----
-392392
1

skipif mysql # not compatible
query II rowsort label-9005
SELECT - 91 * - 88 * + - 49, + COUNT ( * ) AS col1
----
-392392
1

query I rowsort
SELECT ALL + + ( 48 ) * + 3 col1
----
144

query I rowsort
SELECT - - 57 * 35 AS col1
----
1995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT ALL CAST( 75 AS SIGNED ) col1
----
75

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL CAST ( 75 AS INTEGER ) col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT ALL + CAST( NULL AS SIGNED ) * - + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT 89 - 66 + - + COUNT( * ) * 55 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT 89 - 66 + - + COUNT ( * ) * 55 AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9011
SELECT ALL 94 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL 94 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9012
SELECT MIN( + 3 ), 17 AS col2
----
3
17

skipif mysql # not compatible
query II rowsort label-9012
SELECT MIN ( + 3 ), 17 AS col2
----
3
17

query I rowsort
SELECT - + 63 * - 46 AS col2
----
2898

query I rowsort
SELECT ALL 51 * + + 57 * - 4 AS col2
----
-11628

query I rowsort
SELECT - 21 - - 14 + + 38 * - - 79
----
2995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9016
SELECT + 90 DIV 40, COUNT( * ) + 35 * + CASE + 35 WHEN + + 64 THEN 67 * + - COUNT( * ) + + - 70 ELSE + CAST( NULL AS SIGNED ) DIV + 47 END AS col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-9016
SELECT + 90 / 40, COUNT ( * ) + 35 * + CASE + 35 WHEN + + 64 THEN 67 * + - COUNT ( * ) + + - 70 ELSE + CAST ( NULL AS INTEGER ) / + 47 END AS col0
----
2
NULL

query II rowsort
SELECT - ( - 21 ), + 94 AS col2
----
21
94

query I rowsort
SELECT ALL ( + 24 ) * 11 + 16 * - 26 col1
----
-152

query I rowsort
SELECT DISTINCT ( 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT ALL - COUNT( * ) * - 80
----
80

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL - COUNT ( * ) * - 80
----
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9021
SELECT + 53 DIV + CAST( - + ( - 82 ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9021
SELECT + 53 / + CAST ( - + ( - 82 ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT + 5 - - + 12
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9023
SELECT + ( + CAST( - 17 AS SIGNED ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9023
SELECT + ( + CAST ( - 17 AS INTEGER ) ) AS col1
----
-17

query I rowsort
SELECT + CASE + 5 WHEN - 62 + - ( - + 70 ) THEN NULL WHEN 31 THEN - - 82 * - + 72 ELSE NULLIF ( 75, - 51 ) END
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9025
SELECT + CAST( + CAST( - COUNT( * ) AS DECIMAL ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9025
SELECT + CAST ( + CAST ( - COUNT ( * ) AS REAL ) AS INTEGER )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9026
SELECT ALL 98 DIV + - 22 + + 21 * 78 AS col0
----
1634

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL 98 / + - 22 + + 21 * 78 AS col0
----
1634

query I rowsort
SELECT + 17 * 26 + 31 * + 2
----
504

query I rowsort
SELECT ( + - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT ALL ( - 58 ) * + COUNT( * ) * + + COUNT( * ) * + COUNT( * ) + - 15 + + + 11
----
-62

skipif mysql # not compatible
query I rowsort label-9029
SELECT ALL ( - 58 ) * + COUNT ( * ) * + + COUNT ( * ) * + COUNT ( * ) + - 15 + + + 11
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ALL 35 * + COUNT( * ) + - 49 * 13 AS col0
----
-602

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL 35 * + COUNT ( * ) + - 49 * 13 AS col0
----
-602

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL - 63 * + NULLIF ( + MIN( DISTINCT 56 ), 7 ) + + 8 + - 74 * + 7 AS col1
----
-4038

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - 63 * + NULLIF ( + MIN ( DISTINCT 56 ), 7 ) + + 8 + - 74 * + 7 AS col1
----
-4038

query I rowsort
SELECT + 15 * 43
----
645

onlyif mysql # DIV for integer division: 
query I rowsort label-9033
SELECT + 33 DIV - + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT + 33 / - + 77 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9034
SELECT DISTINCT + 34 AS col1, 27 DIV + 84 col1
----
34
0

skipif mysql # not compatible
query II rowsort label-9034
SELECT DISTINCT + 34 AS col1, 27 / + 84 col1
----
34
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL + COUNT( * ) * SUM( ALL - 54 ) - - 45 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL + COUNT ( * ) * SUM ( ALL - 54 ) - - 45 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ( - 65 ) * - 92 - + 27 + - 31 * + COUNT( * ) AS col2
----
5922

skipif mysql # not compatible
query I rowsort label-9036
SELECT ( - 65 ) * - 92 - + 27 + - 31 * + COUNT ( * ) AS col2
----
5922

query II rowsort
SELECT + 47, ( - 46 ) AS col2
----
47
-46

query I rowsort
SELECT - 63 * 63 AS col0
----
-3969

onlyif mysql # DIV for integer division: 
query I rowsort label-9039
SELECT ALL - 8 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL - 8 / 92
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9040
SELECT ALL - 25 AS col2, + CASE - 72 WHEN + COUNT( * ) / ( - 77 ) THEN - + 18 * COUNT( - 82 ) - + 83 * - NULLIF ( COUNT( ALL - 84 ), 57 ) END AS col2
----
-25
NULL

skipif mysql # not compatible
query II rowsort label-9040
SELECT ALL - 25 AS col2, + CASE - 72 WHEN + COUNT ( * ) / ( - 77 ) THEN - + 18 * COUNT ( - 82 ) - + 83 * - NULLIF ( COUNT ( ALL - 84 ), 57 ) END AS col2
----
-25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT DISTINCT COUNT( * ) * 79 - - 75 + 87 * - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT COUNT ( * ) * 79 - - 75 + 87 * - COUNT ( * )
----
67

query I rowsort
SELECT ALL + 17 * + 95
----
1615

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9043
SELECT - - 53 DIV 53 * - - 96 AS col1, + CAST( NULL AS SIGNED ) AS col1
----
96
NULL

skipif mysql # not compatible
query II rowsort label-9043
SELECT - - 53 / 53 * - - 96 AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
96
NULL

query I rowsort
SELECT - 38 - 21 + - + 74 * + 48 AS col2
----
-3611

query I rowsort
SELECT + - 67 + + 67 * + + 5
----
268

query I rowsort
SELECT ( + 85 ) AS col1
----
85

query I rowsort
SELECT ALL + 56 * ( 35 ) * - + 94 + - 88
----
-184328

query II rowsort
SELECT 34, - 43 AS col1
----
34
-43

query II rowsort
SELECT - - 96 AS col0, 16 * - 16 * - 42
----
96
10752

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT + CASE - 98 WHEN + - 99 + - + COUNT( * ) THEN 90 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT + CASE - 98 WHEN + - 99 + - + COUNT ( * ) THEN 90 END AS col1
----
NULL

query I rowsort
SELECT - 18 + - 26 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT COUNT( ALL 13 ) - - 56
----
57

skipif mysql # not compatible
query I rowsort label-9052
SELECT COUNT ( ALL 13 ) - - 56
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9053
SELECT CASE 33 WHEN - COUNT( * ) THEN NULL WHEN - + MIN( 98 ) THEN + 55 - SUM( ALL - 43 ) * COALESCE ( + + 63, - - 74 * - 59 * 61 * + ( - 56 ) + 42 + - 92 ) ELSE NULL END + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9053
SELECT CASE 33 WHEN - COUNT ( * ) THEN NULL WHEN - + MIN ( 98 ) THEN + 55 - SUM ( ALL - 43 ) * COALESCE ( + + 63, - - 74 * - 59 * 61 * + ( - 56 ) + 42 + - 92 ) ELSE NULL END + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 21 + 94
----
115

query I rowsort
SELECT ALL 24 + - 24 + - 76 * 17 * - 94
----
121448

onlyif mysql # DIV for integer division: 
query II rowsort label-9056
SELECT 35 DIV - + 85 col0, + 86
----
0
86

skipif mysql # not compatible
query II rowsort label-9056
SELECT 35 / - + 85 col0, + 86
----
0
86

query I rowsort
SELECT 71 + - 86 AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9058
SELECT ALL - 71 + + - 43 + 11 - - - CAST( NULL AS SIGNED ) col1, 42 AS col2
----
NULL
42

skipif mysql # not compatible
query II rowsort label-9058
SELECT ALL - 71 + + - 43 + 11 - - - CAST ( NULL AS INTEGER ) col1, 42 AS col2
----
NULL
42

query I rowsort
SELECT DISTINCT - 53 * + 96 AS col0
----
-5088

query I rowsort
SELECT 61 * 81 AS col2
----
4941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9061
SELECT MIN( DISTINCT - 32 ) * CAST( + - AVG ( ALL 20 ) AS SIGNED )
----
640

skipif mysql # not compatible
query I rowsort label-9061
SELECT MIN ( DISTINCT - 32 ) * CAST ( + - AVG ( ALL 20 ) AS INTEGER )
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL + 8 + 99 * + 15 * + COUNT( * )
----
1493

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL + 8 + 99 * + 15 * + COUNT ( * )
----
1493

query I rowsort
SELECT ALL 10 - + 97 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL - NULLIF ( + - 10, - COUNT( * ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - NULLIF ( + - 10, - COUNT ( * ) ) AS col2
----
10

query I rowsort
SELECT + 31 * + 99 + + + 5 col2
----
3074

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL 74 - + 52 - - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL 74 - + 52 - - COUNT ( * )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9067
SELECT 73 * - ( + NULLIF ( + 12, - 98 ) ) * - COALESCE ( + + 52, - 98 + - 23 DIV 5, + + ( - 86 ) * - + SUM( + + 27 ) ) + CAST( + 35 AS SIGNED )
----
45587

skipif mysql # not compatible
query I rowsort label-9067
SELECT 73 * - ( + NULLIF ( + 12, - 98 ) ) * - COALESCE ( + + 52, - 98 + - 23 / 5, + + ( - 86 ) * - + SUM ( + + 27 ) ) + CAST ( + 35 AS INTEGER )
----
45587

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT - 34 * MAX( + 2 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9068
SELECT - 34 * MAX ( + 2 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9069
SELECT 7 * + + 91 * + + MAX( ALL + 26 ) + + 95 AS col0, - 82 * + COUNT( * ) + + 69 * - - 3 AS col2
----
16657
125

skipif mysql # not compatible
query II rowsort label-9069
SELECT 7 * + + 91 * + + MAX ( ALL + 26 ) + + 95 AS col0, - 82 * + COUNT ( * ) + + 69 * - - 3 AS col2
----
16657
125

query I rowsort
SELECT + 43 - 97
----
-54

query I rowsort
SELECT - + 79 * 78 + + + 38 + + 27 * - - 26
----
-5422

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + COUNT( * ) * + 6 * + 60
----
360

skipif mysql # not compatible
query I rowsort label-9072
SELECT + COUNT ( * ) * + 6 * + 60
----
360

query I rowsort
SELECT DISTINCT - 18 * + 32
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT - - MAX( + - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9074
SELECT - - MAX ( + - 81 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT - CASE 36 WHEN - 34 * + + 81 * - MAX( ALL 94 ) / + 37 * + 87 THEN - 72 - COUNT( * ) + 56 - 1 ELSE NULL END * - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT - CASE 36 WHEN - 34 * + + 81 * - MAX ( ALL 94 ) / + 37 * + 87 THEN - 72 - COUNT ( * ) + 56 - 1 ELSE NULL END * - 17 AS col2
----
NULL

query I rowsort
SELECT 19 + + 62 * + - 13 * + + 78 AS col0
----
-62849

query I rowsort
SELECT - 50 + + - 68 AS col0
----
-118

query II rowsort
SELECT - ( 76 ), + 26 AS col1
----
-76
26

query I rowsort
SELECT ALL - - 96 + + 58 col1
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9080
SELECT CAST( 2 AS SIGNED ) DIV COUNT( ALL - 38 )
----
2

skipif mysql # not compatible
query I rowsort label-9080
SELECT CAST ( 2 AS INTEGER ) / COUNT ( ALL - 38 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT DISTINCT + 30 * COUNT( + + 3 ) * - 26 AS col2
----
-780

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT + 30 * COUNT ( + + 3 ) * - 26 AS col2
----
-780

query I rowsort
SELECT ALL + 39 + - - ( + 52 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT SUM( 49 ) - 48
----
1

skipif mysql # not compatible
query I rowsort label-9083
SELECT SUM ( 49 ) - 48
----
1

query I rowsort
SELECT ALL - 67 * - 82
----
5494

onlyif mysql # aggregate syntax: 
query II rowsort label-9085
SELECT 42 col1, COUNT( * ) AS col2
----
42
1

skipif mysql # not compatible
query II rowsort label-9085
SELECT 42 col1, COUNT ( * ) AS col2
----
42
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT + MAX( - 97 ) - - + 71
----
-26

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT + MAX ( - 97 ) - - + 71
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9087
SELECT DISTINCT - COALESCE ( 43, 40 DIV - COUNT( * ) * COUNT( * ), - + 71 + - 83 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT - COALESCE ( 43, 40 / - COUNT ( * ) * COUNT ( * ), - + 71 + - 83 ) AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9088
SELECT DISTINCT - COUNT( * ) DIV + - 51
----
0

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT - COUNT ( * ) / + - 51
----
0

query I rowsort
SELECT 67 * 19 AS col1
----
1273

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT COUNT( * ) * - 59 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-9090
SELECT COUNT ( * ) * - 59 AS col0
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9091
SELECT + 32 * + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT + 32 * + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT DISTINCT - + 7 * + 98
----
-686

query I rowsort
SELECT ALL + 81 * + 49
----
3969

query I rowsort
SELECT - 98 * 47
----
-4606

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9095
SELECT ALL - MAX( - CAST( - + 1 AS SIGNED ) ) col1, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-9095
SELECT ALL - MAX ( - CAST ( - + 1 AS INTEGER ) ) col1, + COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT + MIN( + 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-9096
SELECT + MIN ( + 67 ) AS col1
----
67

query I rowsort
SELECT ALL + ( - 47 )
----
-47

query I rowsort
SELECT - - NULLIF ( 59, + 36 + - AVG ( + 71 ) ) - + 66
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT + + SUM( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9099
SELECT + + SUM ( DISTINCT 78 )
----
78

query I rowsort
SELECT + + 45 * - 49
----
-2205

query I rowsort
SELECT 34 * + 17 * + 18 - + 88
----
10316

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL - 65 + - CASE - 29 WHEN + + 3 * - 57 + - ( - + COUNT( * ) ) THEN - COUNT( * ) + + + 66 - + COUNT( * ) END * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL - 65 + - CASE - 29 WHEN + + 3 * - 57 + - ( - + COUNT ( * ) ) THEN - COUNT ( * ) + + + 66 - + COUNT ( * ) END * + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL 40 + - 84 * + + 85 + + MAX( 15 )
----
-7085

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL 40 + - 84 * + + 85 + + MAX ( 15 )
----
-7085

query I rowsort
SELECT DISTINCT - ( - 73 ) * + 55 col0
----
4015

query I rowsort
SELECT + + 93 - - 45 - + 99 AS col2
----
39

query I rowsort
SELECT ALL 67 + + + 56 AS col1
----
123

query I rowsort
SELECT + - 18 - - - 66
----
-84

query I rowsort
SELECT ALL - 13 + ( + - 58 ) * - 9 AS col2
----
509

query II rowsort
SELECT 81 AS col0, COALESCE ( + 96, - 7 - - + 63 ) AS col2
----
81
96

query I rowsort
SELECT - ( + 95 ) * + 58
----
-5510

query II rowsort
SELECT - 25 AS col2, 81
----
-25
81

query I rowsort
SELECT - 52 - 27 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-9113
SELECT 82, CASE - - 80 WHEN - 53 THEN 50 END + - ( + COUNT( * ) ) AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-9113
SELECT 82, CASE - - 80 WHEN - 53 THEN 50 END + - ( + COUNT ( * ) ) AS col1
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT + ( + 90 ) + - COUNT( * ) * - 82
----
172

skipif mysql # not compatible
query I rowsort label-9114
SELECT + ( + 90 ) + - COUNT ( * ) * - 82
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL + 8 - + - SUM( ALL + - 27 ) - 52 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + 8 - + - SUM ( ALL + - 27 ) - 52 AS col2
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9116
SELECT ALL 46 DIV + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL 46 / + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + COUNT( * ) + + 23 + 15 * 45
----
699

skipif mysql # not compatible
query I rowsort label-9117
SELECT + COUNT ( * ) + + 23 + 15 * 45
----
699

query I rowsort
SELECT ALL - 36 * + + 4
----
-144

query I rowsort
SELECT - COALESCE ( 68, 0 ) AS col0
----
-68

query I rowsort
SELECT - 69 + + 43 * 76
----
3199

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT - 86 * + + 12 * ( COUNT( * ) )
----
-1032

skipif mysql # not compatible
query I rowsort label-9121
SELECT - 86 * + + 12 * ( COUNT ( * ) )
----
-1032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9122
SELECT ( CAST( - + 25 AS SIGNED ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-9122
SELECT ( CAST ( - + 25 AS INTEGER ) ) AS col2
----
-25

query I rowsort
SELECT ( + - 50 ) * - 32 + + 37
----
1637

query I rowsort
SELECT ALL 39 * 83 AS col1
----
3237

query I rowsort
SELECT - 50 * - - 83 * - 68 AS col1
----
282200

query I rowsort
SELECT ALL 56 * + 82 AS col0
----
4592

onlyif mysql # aggregate syntax: 
query II rowsort label-9127
SELECT ALL + 89 AS col0, COUNT( * ) * + 44 AS col1
----
89
44

skipif mysql # not compatible
query II rowsort label-9127
SELECT ALL + 89 AS col0, COUNT ( * ) * + 44 AS col1
----
89
44

query I rowsort
SELECT DISTINCT + + 4 col0
----
4

query II rowsort
SELECT + 99 AS col0, + 28
----
99
28

query I rowsort
SELECT - 0 * - - 24 + - + 12
----
-12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9131
SELECT ALL + SUM( ALL + CAST( NULL AS DECIMAL ) ) AS col1, 88 * + 65 * 51 + + 73 + + 70
----
NULL
291863

skipif mysql # not compatible
query II rowsort label-9131
SELECT ALL + SUM ( ALL + CAST ( NULL AS REAL ) ) AS col1, 88 * + 65 * 51 + + 73 + + 70
----
NULL
291863

query II rowsort
SELECT + - 59, + 80 AS col0
----
-59
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9133
SELECT - - 74 DIV ( COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-9133
SELECT - - 74 / ( COUNT ( * ) )
----
74

query I rowsort
SELECT + 41 - - 17
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9135
SELECT DISTINCT + 34 * - 62 - - 41 DIV + - COUNT( * ) + 35 AS col2
----
-2114

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT + 34 * - 62 - - 41 / + - COUNT ( * ) + 35 AS col2
----
-2114

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9136
SELECT DISTINCT + COUNT( * ) col0, 66 DIV 60
----
1
1

skipif mysql # not compatible
query II rowsort label-9136
SELECT DISTINCT + COUNT ( * ) col0, 66 / 60
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9137
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-9137
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, 60
----
NULL
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9138
SELECT DISTINCT + + COUNT( * ) * 63 + - CAST( 78 AS SIGNED ) * - 50 col1
----
3963

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT + + COUNT ( * ) * 63 + - CAST ( 78 AS INTEGER ) * - 50 col1
----
3963

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9139
SELECT - COUNT( * ) * + + 77 DIV + 64
----
-1

skipif mysql # not compatible
query I rowsort label-9139
SELECT - COUNT ( * ) * + + 77 / + 64
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9140
SELECT ALL + MIN( + 69 ) DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL + MIN ( + 69 ) / + 60
----
1

query I rowsort
SELECT + + 48 + + 48 AS col0
----
96

query I rowsort
SELECT ALL - - 72 * - 1 + - - 17
----
-55

query I rowsort
SELECT - 74 * - + 46 col2
----
3404

query I rowsort
SELECT - + ( - - 58 ) col0
----
-58

query I rowsort
SELECT ALL 58 * 43 AS col1
----
2494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9146
SELECT DISTINCT CAST( 2 AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT CAST ( 2 AS INTEGER ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT - COALESCE ( MAX( - 60 ), ( + 54 ) ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-9147
SELECT - COALESCE ( MAX ( - 60 ), ( + 54 ) ) AS col1
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9148
SELECT + CAST( NULL AS DECIMAL ) * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT + CAST ( NULL AS REAL ) * + 6
----
NULL

query I rowsort
SELECT - ( 34 ) AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9150
SELECT ALL 99 - + 64 + + CAST( + - COUNT( * ) AS SIGNED ) + 2 DIV - 44
----
34

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL 99 - + 64 + + CAST ( + - COUNT ( * ) AS INTEGER ) + 2 / - 44
----
34

query I rowsort
SELECT - ( - - 59 ) * + + 13 col1
----
-767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT - CAST( 11 AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9152
SELECT - CAST ( 11 AS INTEGER ) AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9153
SELECT + CAST( + 14 AS SIGNED ) DIV + 11
----
1

skipif mysql # not compatible
query I rowsort label-9153
SELECT + CAST ( + 14 AS INTEGER ) / + 11
----
1

query I rowsort
SELECT + 87 * 9 * - 61
----
-47763

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT ALL 45 DIV + + 10
----
4

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL 45 / + + 10
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9156
SELECT + 51 DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9156
SELECT + 51 / 84 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT - CAST( - - 29 AS SIGNED ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-9157
SELECT - CAST ( - - 29 AS INTEGER ) AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT + CAST( + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-9158
SELECT + CAST ( + 21 AS INTEGER )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9159
SELECT ALL - 27 DIV + - 61 * + 22 * + 34 + - COALESCE ( + - 21, + 59 * + - 19 * - 58 + - - 27, + - COALESCE ( + 55, ( + 36 ) ) )
----
21

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL - 27 / + - 61 * + 22 * + 34 + - COALESCE ( + - 21, + 59 * + - 19 * - 58 + - - 27, + - COALESCE ( + 55, ( + 36 ) ) )
----
21

query I rowsort
SELECT ALL - 38 col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9161
SELECT DISTINCT - COUNT( * ) + 89 AS col0, CASE COUNT( * ) WHEN + + 30 + + + 57 THEN NULL WHEN + 32 * + + 52 THEN - + MAX( DISTINCT - + 16 ) ELSE - 68 END
----
88
-68

skipif mysql # not compatible
query II rowsort label-9161
SELECT DISTINCT - COUNT ( * ) + 89 AS col0, CASE COUNT ( * ) WHEN + + 30 + + + 57 THEN NULL WHEN + 32 * + + 52 THEN - + MAX ( DISTINCT - + 16 ) ELSE - 68 END
----
88
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT ALL 72 + - + 59 DIV + - 80
----
72

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL 72 + - + 59 / + - 80
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT ALL + 40 + + 46 - + 33 DIV - 10
----
89

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL + 40 + + 46 - + 33 / - 10
----
89

query I rowsort
SELECT - 46 + + + 21
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT COUNT( * ) * - 70 - 57 * + 71
----
-4117

skipif mysql # not compatible
query I rowsort label-9165
SELECT COUNT ( * ) * - 70 - 57 * + 71
----
-4117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9166
SELECT ALL - COUNT( * ) + COUNT( * ) AS col0, 51 * MIN( ALL 43 ) + ( COUNT( * ) ) DIV - COUNT( * ) AS col2
----
0
2192

skipif mysql # not compatible
query II rowsort label-9166
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col0, 51 * MIN ( ALL 43 ) + ( COUNT ( * ) ) / - COUNT ( * ) AS col2
----
0
2192

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT DISTINCT - - NULLIF ( + 63, + COUNT( * ) / - MAX( DISTINCT - 49 ) * 17 - - ( 47 ) + 71 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT - - NULLIF ( + 63, + COUNT ( * ) / - MAX ( DISTINCT - 49 ) * 17 - - ( 47 ) + 71 ) AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT 91 * + 37 - - CAST( - - 63 AS SIGNED )
----
3430

skipif mysql # not compatible
query I rowsort label-9168
SELECT 91 * + 37 - - CAST ( - - 63 AS INTEGER )
----
3430

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT + + 72 * - 92 + 70 - + CASE 61 WHEN 3 THEN + - 71 WHEN + + 86 THEN - 16 + + - COUNT( * ) + - 73 * - 65 * - 33 + - ( - 89 ) + + - COALESCE ( - ( - + 41 ), - 10 * - COUNT( * ) * + + 69 + + 17 * - 17 + - + 75 + - 2 ) END / - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT + + 72 * - 92 + 70 - + CASE 61 WHEN 3 THEN + - 71 WHEN + + 86 THEN - 16 + + - COUNT ( * ) + - 73 * - 65 * - 33 + - ( - 89 ) + + - COALESCE ( - ( - + 41 ), - 10 * - COUNT ( * ) * + + 69 + + 17 * - 17 + - + 75 + - 2 ) END / - 84
----
NULL

query I rowsort
SELECT + - CASE + - 3 WHEN 36 * - + 23 * - 4 + 86 THEN 30 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 8 * - + 3 col1
----
24

query I rowsort
SELECT 80 * + - NULLIF ( - 43, - 47 )
----
3440

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT COUNT( ALL + - 5 ) - + - 46 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9173
SELECT COUNT ( ALL + - 5 ) - + - 46 AS col2
----
47

query I rowsort
SELECT 67 * + 36 col0
----
2412

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT 6 + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-9175
SELECT 6 + COUNT ( * )
----
7

query I rowsort
SELECT 95 + + 40
----
135

query II rowsort
SELECT ALL 48 AS col2, 76
----
48
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT 5 + - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9178
SELECT 5 + - COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT DISTINCT 39 + + + 84 + COUNT( * )
----
124

skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT 39 + + + 84 + COUNT ( * )
----
124

query I rowsort
SELECT 95 * + ( + - ( 58 ) )
----
-5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT 30 + CAST( 25 AS SIGNED ) + NULLIF ( 64, + - 55 / 38 / - - 46 ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-9181
SELECT 30 + CAST ( 25 AS INTEGER ) + NULLIF ( 64, + - 55 / 38 / - - 46 ) AS col1
----
119

query II rowsort
SELECT COALESCE ( - 42, - 9 ) AS col1, 10
----
-42
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT DISTINCT - 2 + + + MAX( - - 80 )
----
78

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT - 2 + + + MAX ( - - 80 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT MIN( + 56 )
----
56

skipif mysql # not compatible
query I rowsort label-9184
SELECT MIN ( + 56 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9185
SELECT ALL CAST( + + 79 AS SIGNED ) + + + 35 * + + 78 * 9 * SUM( + + 13 ) * + 68 * 19 col2
----
412677799

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL CAST ( + + 79 AS INTEGER ) + + + 35 * + + 78 * 9 * SUM ( + + 13 ) * + 68 * 19 col2
----
412677799

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT COUNT( * ) * - 74 + + NULLIF ( + 55, + 50 ) - - + 58 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9186
SELECT COUNT ( * ) * - 74 + + NULLIF ( + 55, + 50 ) - - + 58 AS col0
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9187
SELECT DISTINCT - 41 + + ( ( + CAST( NULL AS DECIMAL ) ) ) + 23 + - 3 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT - 41 + + ( ( + CAST ( NULL AS REAL ) ) ) + 23 + - 3 * + 83
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9188
SELECT DISTINCT ( + 1 ) DIV 47 * - 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT ( + 1 ) / 47 * - 52 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9189
SELECT ALL + 8 + + 94 * + 53 AS col1, NULLIF ( + + 21, CAST( + - 49 AS SIGNED ) ) + + 42
----
4990
63

skipif mysql # not compatible
query II rowsort label-9189
SELECT ALL + 8 + + 94 * + 53 AS col1, NULLIF ( + + 21, CAST ( + - 49 AS INTEGER ) ) + + 42
----
4990
63

query I rowsort
SELECT + 67 * + - 22 AS col2
----
-1474

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT ALL - - CASE - 25 WHEN + 51 / - + 94 + + - COUNT( * ) * - ( 14 ) THEN + + 78 + + 93 WHEN - 44 * COUNT( * ) + - 97 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL - - CASE - 25 WHEN + 51 / - + 94 + + - COUNT ( * ) * - ( 14 ) THEN + + 78 + + 93 WHEN - 44 * COUNT ( * ) + - 97 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9192
SELECT + 53 * + ( + - 67 ) + 68 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT + 53 * + ( + - 67 ) + 68 - + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 33 * 41 - 27 - + - 82 AS col2, 27 AS col1
----
-1298
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT + 66 * + 32 * + COUNT( * ) + - - COUNT( * ) * - - 0 + 1 + COUNT( * ) - + 96
----
2018

skipif mysql # not compatible
query I rowsort label-9194
SELECT + 66 * + 32 * + COUNT ( * ) + - - COUNT ( * ) * - - 0 + 1 + COUNT ( * ) - + 96
----
2018

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT + NULLIF ( - COUNT( * ), - - CASE + 44 WHEN ( - - ( + 16 ) ) THEN + 64 END * MIN( 76 ) + + CASE - 52 WHEN + 43 THEN + 93 WHEN - + 48 THEN 49 END ) + 20 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-9195
SELECT + NULLIF ( - COUNT ( * ), - - CASE + 44 WHEN ( - - ( + 16 ) ) THEN + 64 END * MIN ( 76 ) + + CASE - 52 WHEN + 43 THEN + 93 WHEN - + 48 THEN 49 END ) + 20 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT + - MIN( DISTINCT + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9196
SELECT + - MIN ( DISTINCT + 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT + NULLIF ( COUNT( * ), + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-9197
SELECT + NULLIF ( COUNT ( * ), + 71 )
----
1

query I rowsort
SELECT 21 + - - 40
----
61

query I rowsort
SELECT + 25 - + + 0
----
25

query I rowsort
SELECT DISTINCT 95 * CASE - 96 WHEN - 38 / - - 82 THEN - AVG ( - 6 ) * + 34 END
----
NULL

query II rowsort
SELECT 77 * + 78 AS col2, 52 col2
----
6006
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT 87 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT 87 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 90 * + 13 AS col1
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT 61 * + + COUNT( - - 18 ) * - 65
----
-3965

skipif mysql # not compatible
query I rowsort label-9204
SELECT 61 * + + COUNT ( - - 18 ) * - 65
----
-3965

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT - ( - 98 ) * COUNT( * ) + - 54 + + 56
----
100

skipif mysql # not compatible
query I rowsort label-9205
SELECT - ( - 98 ) * COUNT ( * ) + - 54 + + 56
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9206
SELECT MIN( ALL + - 95 ) DIV + - 25
----
3

skipif mysql # not compatible
query I rowsort label-9206
SELECT MIN ( ALL + - 95 ) / + - 25
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9207
SELECT 15 * 2 AS col2, NULLIF ( - 70, COUNT( * ) ) + - - 85 * - CAST( NULL AS DECIMAL ) + + - 12 * + + 61 + + COUNT( * ) * + ( + + 92 ) + 60 + + COALESCE ( + - COALESCE ( - 94, - 24 * 37 ), + + 88 * - 77 )
----
30
NULL

skipif mysql # not compatible
query II rowsort label-9207
SELECT 15 * 2 AS col2, NULLIF ( - 70, COUNT ( * ) ) + - - 85 * - CAST ( NULL AS REAL ) + + - 12 * + + 61 + + COUNT ( * ) * + ( + + 92 ) + 60 + + COALESCE ( + - COALESCE ( - 94, - 24 * 37 ), + + 88 * - 77 )
----
30
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9208
SELECT DISTINCT MIN( 87 ) AS col1, 54 * + COUNT( * )
----
87
54

skipif mysql # not compatible
query II rowsort label-9208
SELECT DISTINCT MIN ( 87 ) AS col1, 54 * + COUNT ( * )
----
87
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9209
SELECT DISTINCT 81 + CASE 30 WHEN + - 36 * - 90 THEN + 58 + + 39 * 71 * - 74 + + 85 WHEN + 96 + + + AVG ( - 32 ) THEN + + SUM( DISTINCT + 83 ) WHEN - 69 * - CASE + - 2 WHEN 91 + + COALESCE ( 33, - 99, + + COUNT( * ) ) THEN - SUM( ALL + + 65 ) ELSE NULL END * + NULLIF ( - + 21, - CAST( - 1 AS SIGNED ) ) / 88 - + 62 + + + COALESCE ( - - 47, + + 94 * COUNT( * ) + 8 ) + 10 THEN NULL ELSE NULL END + SUM( ALL - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT 81 + CASE 30 WHEN + - 36 * - 90 THEN + 58 + + 39 * 71 * - 74 + + 85 WHEN + 96 + + + AVG ( - 32 ) THEN + + SUM ( DISTINCT + 83 ) WHEN - 69 * - CASE + - 2 WHEN 91 + + COALESCE ( 33, - 99, + + COUNT ( * ) ) THEN - SUM ( ALL + + 65 ) ELSE NULL END * + NULLIF ( - + 21, - CAST ( - 1 AS INTEGER ) ) / 88 - + 62 + + + COALESCE ( - - 47, + + 94 * COUNT ( * ) + 8 ) + 10 THEN NULL ELSE NULL END + SUM ( ALL - 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL COUNT( * ) + + - 59 * 89
----
-5250

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL COUNT ( * ) + + - 59 * 89
----
-5250

query I rowsort
SELECT ALL - 59 * + ( - - 48 )
----
-2832

query I rowsort
SELECT 5 * 73 AS col2
----
365

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT ALL - 87 + 69 DIV - 37
----
-88

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL - 87 + 69 / - 37
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT ALL - 78 * 78 DIV 39 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL - 78 * 78 / 39 AS col2
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9215
SELECT - CASE 17 WHEN - ( 65 ) THEN + 20 * - 95 * + + 94 ELSE CAST( NULL AS SIGNED ) * - 44 END + + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9215
SELECT - CASE 17 WHEN - ( 65 ) THEN + 20 * - 95 * + + 94 ELSE CAST ( NULL AS INTEGER ) * - 44 END + + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT - 80 * - SUM( DISTINCT - ( - 30 ) ) AS col2
----
2400

skipif mysql # not compatible
query I rowsort label-9216
SELECT - 80 * - SUM ( DISTINCT - ( - 30 ) ) AS col2
----
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9217
SELECT - - 92 - COUNT( ALL NULLIF ( - CAST( 61 AS SIGNED ), - - 64 + - 17 + 15 ) )
----
91

skipif mysql # not compatible
query I rowsort label-9217
SELECT - - 92 - COUNT ( ALL NULLIF ( - CAST ( 61 AS INTEGER ), - - 64 + - 17 + 15 ) )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9218
SELECT ALL - ( - - 78 ) AS col0, + MIN( DISTINCT - - 18 ) AS col1
----
-78
18

skipif mysql # not compatible
query II rowsort label-9218
SELECT ALL - ( - - 78 ) AS col0, + MIN ( DISTINCT - - 18 ) AS col1
----
-78
18

query I rowsort
SELECT COALESCE ( - 60, - 56, 94 * + - 96 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9220
SELECT DISTINCT + + ( - CAST( NULL AS DECIMAL ) ) + - 25 + + CASE + 6 WHEN - - ( - 55 ) + COUNT( * ) THEN NULL ELSE + 91 - + 97 END * - - COUNT( * ) * - 66 + + 27 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT + + ( - CAST ( NULL AS REAL ) ) + - 25 + + CASE + 6 WHEN - - ( - 55 ) + COUNT ( * ) THEN NULL ELSE + 91 - + 97 END * - - COUNT ( * ) * - 66 + + 27 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL - 12 + - MIN( ALL + + 92 )
----
-104

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL - 12 + - MIN ( ALL + + 92 )
----
-104

query I rowsort
SELECT DISTINCT + + COALESCE ( + 22, - + 26 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL + MAX( + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL + MAX ( + 41 )
----
41

query II rowsort
SELECT + + ( + - 50 ), - 2 AS col2
----
-50
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT ALL ( + COUNT( * ) ) * - + MAX( - 87 ) * 88 - - 84 AS col2
----
7740

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL ( + COUNT ( * ) ) * - + MAX ( - 87 ) * 88 - - 84 AS col2
----
7740

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT - - 91 * 20 * COUNT( - + 69 )
----
1820

skipif mysql # not compatible
query I rowsort label-9226
SELECT - - 91 * 20 * COUNT ( - + 69 )
----
1820

query I rowsort
SELECT + + 85 * + 63 + - 84 * - 56 + - 81 AS col2
----
9978

query I rowsort
SELECT + 59 * 13 + - + 77 + - 94 col2
----
596

onlyif mysql # aggregate syntax: 
query II rowsort label-9229
SELECT ALL + CASE + - 86 WHEN - - 89 * + 47 THEN 88 / SUM( - 17 ) END AS col0, + 27 AS col2
----
NULL
27

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL + CASE + - 86 WHEN - - 89 * + 47 THEN 88 / SUM ( - 17 ) END AS col0, + 27 AS col2
----
NULL
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT + ( - - SUM( DISTINCT - 98 ) ) * + ( - MAX( DISTINCT + 12 ) )
----
1176

skipif mysql # not compatible
query I rowsort label-9230
SELECT + ( - - SUM ( DISTINCT - 98 ) ) * + ( - MAX ( DISTINCT + 12 ) )
----
1176

onlyif mysql # DIV for integer division: 
query I rowsort label-9231
SELECT ALL 6 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL 6 / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL + - MIN( DISTINCT 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + - MIN ( DISTINCT 12 )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-9233
SELECT + ( + 41 ) DIV 31
----
1

skipif mysql # not compatible
query I rowsort label-9233
SELECT + ( + 41 ) / 31
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT - MIN( ALL + ( - - 72 ) ) + COALESCE ( - - COUNT( * ), + 14 - COUNT( * ), - 62 * COUNT( * ) ) - - + 9 - 63, 61 AS col1
----
-125
61

skipif mysql # not compatible
query II rowsort label-9234
SELECT - MIN ( ALL + ( - - 72 ) ) + COALESCE ( - - COUNT ( * ), + 14 - COUNT ( * ), - 62 * COUNT ( * ) ) - - + 9 - 63, 61 AS col1
----
-125
61

query I rowsort
SELECT + ( - 14 ) * - 51 + - - 64 AS col2
----
778

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9236
SELECT ALL 0 DIV + - 71 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL 0 / + - 71 * COUNT ( * )
----
0

query I rowsort
SELECT + 64 * + 19 * + 80 * + 83
----
8074240

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT MAX( + 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9238
SELECT MAX ( + 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT SUM( ALL ( ( - 47 ) ) )
----
-47

skipif mysql # not compatible
query I rowsort label-9239
SELECT SUM ( ALL ( ( - 47 ) ) )
----
-47

query I rowsort
SELECT + ( 75 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT + 80, + COUNT( * ) * + COUNT( * ) col2
----
80
1

skipif mysql # not compatible
query II rowsort label-9241
SELECT + 80, + COUNT ( * ) * + COUNT ( * ) col2
----
80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT DISTINCT + SUM( - 86 ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT + SUM ( - 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT + COUNT( * ) + - - 55
----
56

skipif mysql # not compatible
query I rowsort label-9243
SELECT + COUNT ( * ) + - - 55
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL 19 * + NULLIF ( - COUNT( * ), + - 44 * + 35 ) + + 19
----
0

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL 19 * + NULLIF ( - COUNT ( * ), + - 44 * + 35 ) + + 19
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT DISTINCT 86, - 54 + + 28 + + - 62 * MIN( ALL - 42 ) AS col1
----
86
2578

skipif mysql # not compatible
query II rowsort label-9245
SELECT DISTINCT 86, - 54 + + 28 + + - 62 * MIN ( ALL - 42 ) AS col1
----
86
2578

query I rowsort
SELECT + 10 + 30 - + ( + 33 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ALL + 19 + - + COUNT( - 19 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9247
SELECT ALL + 19 + - + COUNT ( - 19 ) AS col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9248
SELECT ALL 92 + 65 + + - 60 + 77 + + 89 * - - 24 * + - 91 * + 12 DIV + COUNT( * )
----
-2332338

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL 92 + 65 + + - 60 + 77 + + 89 * - - 24 * + - 91 * + 12 / + COUNT ( * )
----
-2332338

query I rowsort
SELECT + 4 - 81
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT DISTINCT COALESCE ( - 84, + COALESCE ( + + 80, + + 79 * 69 * + CAST( NULL AS SIGNED ) * - - 17 * 53 ) * 48 ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-9250
SELECT DISTINCT COALESCE ( - 84, + COALESCE ( + + 80, + + 79 * 69 * + CAST ( NULL AS INTEGER ) * - - 17 * 53 ) * 48 ) col0
----
-84

query I rowsort
SELECT ALL 86 + - 86
----
0

query I rowsort
SELECT - 56 + 36 * + + 98
----
3472

query I rowsort
SELECT + 68 + 12
----
80

query II rowsort
SELECT - 9 AS col2, 15
----
-9
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9255
SELECT + 44 + + CAST( 95 AS SIGNED ), + 9 * - 71 AS col0
----
139
-639

skipif mysql # not compatible
query II rowsort label-9255
SELECT + 44 + + CAST ( 95 AS INTEGER ), + 9 * - 71 AS col0
----
139
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT - 13 + + 75 * + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-9256
SELECT - 13 + + 75 * + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL - COUNT( ALL + 62 ) - + + 30 - + 43 + - - 70
----
-4

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL - COUNT ( ALL + 62 ) - + + 30 - + 43 + - - 70
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT ALL + + 16 * 0 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL + + 16 * 0 * - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9259
SELECT - + 81 + - 13 + + NULLIF ( - 91, + COALESCE ( + 6, 44 ) * SUM( + - 85 ) + + + COUNT( * ) ) AS col2, 46 * - 49
----
-185
-2254

skipif mysql # not compatible
query II rowsort label-9259
SELECT - + 81 + - 13 + + NULLIF ( - 91, + COALESCE ( + 6, 44 ) * SUM ( + - 85 ) + + + COUNT ( * ) ) AS col2, 46 * - 49
----
-185
-2254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9260
SELECT - COALESCE ( - + CAST( ( 24 ) AS SIGNED ), + 61 )
----
24

skipif mysql # not compatible
query I rowsort label-9260
SELECT - COALESCE ( - + CAST ( ( 24 ) AS INTEGER ), + 61 )
----
24

query II rowsort
SELECT - - ( - 77 ) + 70 AS col1, 80
----
-7
80

query II rowsort
SELECT 86 AS col2, - 77 AS col1
----
86
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT - + COUNT( * ) + 86
----
85

skipif mysql # not compatible
query I rowsort label-9263
SELECT - + COUNT ( * ) + 86
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9264
SELECT - - 20 DIV + 41 - CAST( + 86 AS SIGNED ) + + - 49 col1
----
-135

skipif mysql # not compatible
query I rowsort label-9264
SELECT - - 20 / + 41 - CAST ( + 86 AS INTEGER ) + + - 49 col1
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9265
SELECT - 85 DIV COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-9265
SELECT - 85 / COUNT ( * ) AS col2
----
-85

query I rowsort
SELECT + - 9 * - 0 + - 26 * - ( - 64 ) + - + 84
----
-1748

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9267
SELECT ALL + 61 AS col1, + CAST( 94 AS SIGNED ) * - 30 AS col1
----
61
-2820

skipif mysql # not compatible
query II rowsort label-9267
SELECT ALL + 61 AS col1, + CAST ( 94 AS INTEGER ) * - 30 AS col1
----
61
-2820

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT - 94 DIV - 93 + - - 59 + + 60
----
120

skipif mysql # not compatible
query I rowsort label-9268
SELECT - 94 / - 93 + - - 59 + + 60
----
120

onlyif mysql # DIV for integer division: 
query II rowsort label-9269
SELECT - 38 AS col0, 59 DIV 22
----
-38
2

skipif mysql # not compatible
query II rowsort label-9269
SELECT - 38 AS col0, 59 / 22
----
-38
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL COUNT( - 36 ) * + COALESCE ( - - 56, 27 )
----
56

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL COUNT ( - 36 ) * + COALESCE ( - - 56, 27 )
----
56

query I rowsort
SELECT ALL + ( - 88 ) AS col0
----
-88

query I rowsort
SELECT - - 63 + 14
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT 13 * + + ( + + COUNT( * ) ) * - + 80
----
-1040

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT 13 * + + ( + + COUNT ( * ) ) * - + 80
----
-1040

onlyif mysql # DIV for integer division: 
query I rowsort label-9274
SELECT DISTINCT 61 DIV + 54 + + 86
----
87

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT 61 / + 54 + + 86
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT CAST( + + 65 AS SIGNED ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9275
SELECT CAST ( + + 65 AS INTEGER ) AS col0
----
65

query I rowsort
SELECT ALL + 95 * - 20
----
-1900

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9277
SELECT - 97 DIV 80 + ( + MAX( + - 45 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-9277
SELECT - 97 / 80 + ( + MAX ( + - 45 ) )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT DISTINCT SUM( + CAST( NULL AS SIGNED ) ) * - - 89 + 42 / + - 68 + + - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT SUM ( + CAST ( NULL AS INTEGER ) ) * - - 89 + 42 / + - 68 + + - 73
----
NULL

query I rowsort
SELECT ALL - 34 * + 58 + - + 41 * + 76 + + - 32 + 49
----
-5071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT - CAST( NULL AS SIGNED ) * - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT - CAST ( NULL AS INTEGER ) * - 29
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL COUNT( * ) * - + 80 + 22 - 16 * + 96 AS col2
----
-1594

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL COUNT ( * ) * - + 80 + 22 - 16 * + 96 AS col2
----
-1594

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9282
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1, + 69 AS col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-9282
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1, + 69 AS col2
----
NULL
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT ALL - ( + 67 ) * - + 18 + - - 11 + + NULLIF ( 64, + + AVG ( - CAST( + 72 AS SIGNED ) ) ) + - 70 AS col0
----
1211

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL - ( + 67 ) * - + 18 + - - 11 + + NULLIF ( 64, + + AVG ( - CAST ( + 72 AS INTEGER ) ) ) + - 70 AS col0
----
1211

query I rowsort
SELECT DISTINCT 51 + + 85
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-9285
SELECT 41, MAX( DISTINCT 27 ) AS col2
----
41
27

skipif mysql # not compatible
query II rowsort label-9285
SELECT 41, MAX ( DISTINCT 27 ) AS col2
----
41
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT COUNT( * ) + - + 88
----
-87

skipif mysql # not compatible
query I rowsort label-9286
SELECT COUNT ( * ) + - + 88
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT ALL COUNT( + 2 ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL COUNT ( + 2 ) + - COUNT ( * )
----
0

query II rowsort
SELECT 49 AS col2, - 89 AS col2
----
49
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT 11 DIV + 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9289
SELECT 11 / + 57 AS col0
----
0

query I rowsort
SELECT DISTINCT 80 * 36 AS col1
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT COUNT( * ) * + 58 col2
----
58

skipif mysql # not compatible
query I rowsort label-9291
SELECT COUNT ( * ) * + 58 col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9292
SELECT ALL + 90 - - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + 90 - - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT + ( - + 86 ) * 98 + - - CASE - 60 WHEN NULLIF ( - 43, - 51 ) * 86 + + SUM( DISTINCT 65 ) THEN NULL WHEN 73 THEN NULL ELSE + 47 END AS col1
----
-8381

skipif mysql # not compatible
query I rowsort label-9293
SELECT + ( - + 86 ) * 98 + - - CASE - 60 WHEN NULLIF ( - 43, - 51 ) * 86 + + SUM ( DISTINCT 65 ) THEN NULL WHEN 73 THEN NULL ELSE + 47 END AS col1
----
-8381

query II rowsort
SELECT DISTINCT 31, 70 + + - 70 AS col1
----
31
0

query III rowsort
SELECT - 59, 62 * - 80 * - 23 AS col1, - - 39 col1
----
-59
114080
39

query I rowsort
SELECT + 77 + 28 col0
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9297
SELECT - + CAST( - - NULLIF ( - - COUNT( * ), + COUNT( * ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT - + CAST ( - - NULLIF ( - - COUNT ( * ), + COUNT ( * ) ) AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL 16 - - - 12 AS col2, 23 + + 43 col0
----
4
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT - 86 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT - 86 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 56 * - 93 + + 49
----
5257

query II rowsort
SELECT DISTINCT 65 AS col0, - 56
----
65
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL + MAX( + - 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + MAX ( + - 0 ) col0
----
0

query I rowsort
SELECT - 13 - + ( + CASE WHEN NULL IS NULL THEN COALESCE ( 38, - 21 * + + 52 ) WHEN 5 * + - ( 41 ) BETWEEN NULL AND ( + 49 + 16 ) THEN NULL ELSE NULL END ) * 20
----
-773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT 86 DIV + 5 + - - ( + 5 ) + - COUNT( * ) col0
----
21

skipif mysql # not compatible
query I rowsort label-9304
SELECT 86 / + 5 + - - ( + 5 ) + - COUNT ( * ) col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9305
SELECT + COUNT( * ) * + - 52 + + 63 + + + 77 + 74 * + + 17 * 22 * - NULLIF ( + ( 45 ), - - CAST( CASE + CAST( NULL AS DECIMAL ) WHEN + 63 THEN + 40 - 44 * + CASE - - 53 WHEN - + 30 + - MAX( + 42 ) THEN + 98 + + 15 END WHEN - + COUNT( 68 ) THEN NULL END AS SIGNED ) * + 77 + + 17 + + - 6 * + COUNT( * ) ) - + MAX( ALL + 25 )
----
-1245357

skipif mysql # not compatible
query I rowsort label-9305
SELECT + COUNT ( * ) * + - 52 + + 63 + + + 77 + 74 * + + 17 * 22 * - NULLIF ( + ( 45 ), - - CAST ( CASE + CAST ( NULL AS REAL ) WHEN + 63 THEN + 40 - 44 * + CASE - - 53 WHEN - + 30 + - MAX ( + 42 ) THEN + 98 + + 15 END WHEN - + COUNT ( 68 ) THEN NULL END AS INTEGER ) * + 77 + + 17 + + - 6 * + COUNT ( * ) ) - + MAX ( ALL + 25 )
----
-1245357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9306
SELECT DISTINCT COUNT( * ) DIV - COALESCE ( - + CAST( 3 AS SIGNED ), - MIN( 92 ) + - - COUNT( * ) - 4 )
----
0

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT COUNT ( * ) / - COALESCE ( - + CAST ( 3 AS INTEGER ), - MIN ( 92 ) + - - COUNT ( * ) - 4 )
----
0

query I rowsort
SELECT ALL COALESCE ( + + 55, - 59 ) AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9308
SELECT ALL + 22 AS col2, - 60 DIV - COALESCE ( 81, ( + - CASE + + MAX( - 1 ) WHEN + 72 THEN NULL WHEN - + 33 THEN + 82 DIV - + 10 * - ( 14 ) ELSE - - 18 * + 32 END ) + + + 21, + - 12 ) * + - 59
----
22
0

skipif mysql # not compatible
query II rowsort label-9308
SELECT ALL + 22 AS col2, - 60 / - COALESCE ( 81, ( + - CASE + + MAX ( - 1 ) WHEN + 72 THEN NULL WHEN - + 33 THEN + 82 / - + 10 * - ( 14 ) ELSE - - 18 * + 32 END ) + + + 21, + - 12 ) * + - 59
----
22
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9309
SELECT - 44 AS col2, ( - NULLIF ( NULLIF ( NULLIF ( - ( SUM( + 45 ) ), 18 ), - 6 ), + CAST( NULL AS SIGNED ) ) ) AS col2
----
-44
45

skipif mysql # not compatible
query II rowsort label-9309
SELECT - 44 AS col2, ( - NULLIF ( NULLIF ( NULLIF ( - ( SUM ( + 45 ) ), 18 ), - 6 ), + CAST ( NULL AS INTEGER ) ) ) AS col2
----
-44
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL + 3 * + COUNT( * ) - 65
----
-62

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL + 3 * + COUNT ( * ) - 65
----
-62

query I rowsort
SELECT DISTINCT + 44 + 46 + 59
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT COUNT( * ) * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT COUNT ( * ) * - 86
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT - 2 * - 46 * + - COUNT( + 94 ) * + + 94 AS col0
----
-8648

skipif mysql # not compatible
query I rowsort label-9313
SELECT - 2 * - 46 * + - COUNT ( + 94 ) * + + 94 AS col0
----
-8648

query I rowsort
SELECT ALL - - 46 col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT - ( 49 ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT - ( 49 ) / - 61
----
0

query I rowsort
SELECT ALL + 91 + + - 82 + + 79 AS col2
----
88

query I rowsort
SELECT 86 * + + 79
----
6794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9318
SELECT ALL - COUNT( * ) + + 70 + + + NULLIF ( + 61, + + 48 + 72 * + 35 ), + CASE - COALESCE ( + + ( 51 ), + 26, - 88 * - + 70 ) WHEN - NULLIF ( + - COUNT( - - 60 ), - 87 ) THEN + AVG ( ALL - CAST( - - CAST( + 50 AS SIGNED ) AS SIGNED ) ) END - 35 AS col2
----
130
NULL

skipif mysql # not compatible
query II rowsort label-9318
SELECT ALL - COUNT ( * ) + + 70 + + + NULLIF ( + 61, + + 48 + 72 * + 35 ), + CASE - COALESCE ( + + ( 51 ), + 26, - 88 * - + 70 ) WHEN - NULLIF ( + - COUNT ( - - 60 ), - 87 ) THEN + AVG ( ALL - CAST ( - - CAST ( + 50 AS INTEGER ) AS INTEGER ) ) END - 35 AS col2
----
130
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9319
SELECT ALL + 91 + 1 + + 33 + - - 90 * - + 44 * + CAST( NULL AS SIGNED ) * + MIN( ALL - + 97 ) * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL + 91 + 1 + + 33 + - - 90 * - + 44 * + CAST ( NULL AS INTEGER ) * + MIN ( ALL - + 97 ) * + 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9320
SELECT DISTINCT + 73 + + CAST( NULL AS SIGNED ) + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT + 73 + + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL - 19 + + SUM( DISTINCT + 14 )
----
-5

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL - 19 + + SUM ( DISTINCT + 14 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT COUNT( * ) * + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9322
SELECT COUNT ( * ) * + 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9323
SELECT ALL + ( + 54 ) + 94 AS col2, - COUNT( * )
----
148
-1

skipif mysql # not compatible
query II rowsort label-9323
SELECT ALL + ( + 54 ) + 94 AS col2, - COUNT ( * )
----
148
-1

query I rowsort
SELECT 1 * - 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT 56 * - MIN( ALL + + 32 ) + 17 col2
----
-1775

skipif mysql # not compatible
query I rowsort label-9325
SELECT 56 * - MIN ( ALL + + 32 ) + 17 col2
----
-1775

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT ALL 33 - - MIN( ALL - ( - + 34 ) ) * + + 35 + + 9
----
1232

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL 33 - - MIN ( ALL - ( - + 34 ) ) * + + 35 + + 9
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT 40 + - 9 * - SUM( 64 ) AS col1
----
616

skipif mysql # not compatible
query I rowsort label-9327
SELECT 40 + - 9 * - SUM ( 64 ) AS col1
----
616

onlyif mysql # DIV for integer division: 
query II rowsort label-9328
SELECT 46 DIV 9 AS col0, - 93 col1
----
5
-93

skipif mysql # not compatible
query II rowsort label-9328
SELECT 46 / 9 AS col0, - 93 col1
----
5
-93

query I rowsort
SELECT + - 2 * + ( + + 55 ) + - 40
----
-150

query I rowsort
SELECT - 61 * - - 32 + + + 97 + + 31 AS col0
----
-1824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9331
SELECT ALL COUNT( * ) DIV - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL COUNT ( * ) / - 40 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9332
SELECT MIN( 25 ) DIV 18 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9332
SELECT MIN ( 25 ) / 18 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT DISTINCT + 42 * + + ( MAX( ALL - CASE - + 4 WHEN + 76 * - + 94 * - 42 THEN - - 87 ELSE NULL END ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT + 42 * + + ( MAX ( ALL - CASE - + 4 WHEN + 76 * - + 94 * - 42 THEN - - 87 ELSE NULL END ) ) col1
----
NULL

query I rowsort
SELECT - 84 + - - 97 + + 37
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL - 67 * + COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL - 67 * + COUNT ( * ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT COUNT( * ) + 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9336
SELECT COUNT ( * ) + 23 AS col0
----
24

query I rowsort
SELECT + 11 + - 91
----
-80

query I rowsort
SELECT DISTINCT + 16 col1
----
16

query I rowsort
SELECT ALL 73 + + ( + - 95 ) col1
----
-22

query I rowsort
SELECT DISTINCT - 15 + + 27
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT COUNT( * ) * - + 81 col0
----
-81

skipif mysql # not compatible
query I rowsort label-9341
SELECT COUNT ( * ) * - + 81 col0
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9342
SELECT - 61 + CAST( NULL AS DECIMAL ) * 21 + + AVG ( + - 17 ) - AVG ( + + 98 ) * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9342
SELECT - 61 + CAST ( NULL AS REAL ) * 21 + + AVG ( + - 17 ) - AVG ( + + 98 ) * + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT MAX( DISTINCT - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-9343
SELECT MAX ( DISTINCT - 66 )
----
-66

query I rowsort
SELECT ALL - 66 + + + 9 AS col2
----
-57

query I rowsort
SELECT 85 * 4 * 34 + - 20 + - - 45 + - ( 87 )
----
11498

query II rowsort
SELECT ALL - 32 * + ( 53 ) AS col1, 45 + 97 + 35
----
-1696
177

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT ALL 17 DIV - + 7 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL 17 / - + 7 AS col1
----
-2

query I rowsort
SELECT DISTINCT 76 * 74 * + 67 + 49 * + - 82
----
372790

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL 69 * + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL 69 * + COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT MAX( DISTINCT + + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-9350
SELECT MAX ( DISTINCT + + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT 60 * MIN( DISTINCT - 81 ) * - + 80 + - + 38 AS col0
----
388762

skipif mysql # not compatible
query I rowsort label-9351
SELECT 60 * MIN ( DISTINCT - 81 ) * - + 80 + - + 38 AS col0
----
388762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9352
SELECT COUNT( CASE CAST( 54 AS SIGNED ) WHEN 43 THEN NULL WHEN + 47 + 18 * - - 61 THEN 10 END )
----
0

skipif mysql # not compatible
query I rowsort label-9352
SELECT COUNT ( CASE CAST ( 54 AS INTEGER ) WHEN 43 THEN NULL WHEN + 47 + 18 * - - 61 THEN 10 END )
----
0

query I rowsort
SELECT + 69 * + 14 AS col2
----
966

query I rowsort
SELECT + 28 * - - 78 AS col0
----
2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9355
SELECT ALL - SUM( ALL - 59 ) DIV - - 10
----
5

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - SUM ( ALL - 59 ) / - - 10
----
5

query I rowsort
SELECT DISTINCT + ( + - 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9357
SELECT COUNT( * ), - 14 AS col2
----
1
-14

skipif mysql # not compatible
query II rowsort label-9357
SELECT COUNT ( * ), - 14 AS col2
----
1
-14

query I rowsort
SELECT - + NULLIF ( 40, + 40 * - 91 + 35 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9359
SELECT - - 87 col0, + 83 / + ( + CAST( NULL AS SIGNED ) ) AS col2
----
87
NULL

skipif mysql # not compatible
query II rowsort label-9359
SELECT - - 87 col0, + 83 / + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
87
NULL

query I rowsort
SELECT - 59 * 91 * - 26 AS col0
----
139594

query I rowsort
SELECT - 29 * + 35
----
-1015

query I rowsort
SELECT ALL - + 96 * + 76 AS col1
----
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT SUM( - + 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-9363
SELECT SUM ( - + 33 ) AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9364
SELECT - - CAST( - 51 AS SIGNED ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9364
SELECT - - CAST ( - 51 AS INTEGER ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT - COUNT( - - 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-9365
SELECT - COUNT ( - - 97 )
----
-1

query I rowsort
SELECT ALL + 38 + - 93
----
-55

query II rowsort
SELECT DISTINCT + 51, + 29 AS col0
----
51
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9368
SELECT ALL 44 AS col2, - COUNT( + CASE 23 WHEN + + 98 + + 51 * + - 46 THEN - NULLIF ( - 68, COALESCE ( + + 40, CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) / 88 ) ) / - 80 + 98 + - 48 * - - 5 * 19 ELSE NULL END ) * - 80 * - 25 + - 74 AS col2
----
44
-74

skipif mysql # not compatible
query II rowsort label-9368
SELECT ALL 44 AS col2, - COUNT ( + CASE 23 WHEN + + 98 + + 51 * + - 46 THEN - NULLIF ( - 68, COALESCE ( + + 40, CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) / 88 ) ) / - 80 + 98 + - 48 * - - 5 * 19 ELSE NULL END ) * - 80 * - 25 + - 74 AS col2
----
44
-74

query I rowsort
SELECT DISTINCT + + 67 + ( 7 )
----
74

query I rowsort
SELECT ALL + 77 + - NULLIF ( - ( + + ( + - 4 ) ), 12 )
----
73

query I rowsort
SELECT ALL 62 + - 62 AS col0
----
0

query I rowsort
SELECT - - 36 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT + - COUNT( 19 ) + 96 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9373
SELECT + - COUNT ( 19 ) + 96 AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9374
SELECT ALL - 95 + - + COUNT( * ) DIV - + ( ( - + COUNT( * ) ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL - 95 + - + COUNT ( * ) / - + ( ( - + COUNT ( * ) ) ) AS col2
----
-96

query I rowsort
SELECT ALL - 37 + + 82 + + - 80
----
-35

query I rowsort
SELECT - - 31 - 82 AS col2
----
-51

query I rowsort
SELECT - COALESCE ( - 14, + 79, + 19 ) AS col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9378
SELECT - COUNT( * ) DIV + 13 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9378
SELECT - COUNT ( * ) / + 13 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9379
SELECT + + 56 + + ( - 95 ) + + 85 + + 63 + COUNT( * ) * 42 + 2, 72 AS col2
----
153
72

skipif mysql # not compatible
query II rowsort label-9379
SELECT + + 56 + + ( - 95 ) + + 85 + + 63 + COUNT ( * ) * 42 + 2, 72 AS col2
----
153
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9380
SELECT ALL 51 * COUNT( * ) * 41, - 41 AS col1
----
2091
-41

skipif mysql # not compatible
query II rowsort label-9380
SELECT ALL 51 * COUNT ( * ) * 41, - 41 AS col1
----
2091
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL 76 - - - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL 76 - - - COUNT ( * )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9382
SELECT - 35 * - MIN( + CAST( NULL AS SIGNED ) ) * + + CAST( NULL AS DECIMAL ) - - 7 + SUM( ALL + 31 ) * - + COALESCE ( - 4, + + COUNT( * ) + + 1 + - + 67 + + COALESCE ( - CAST( NULL AS SIGNED ), - COALESCE ( + 98, ( - CAST( NULL AS SIGNED ) ) * - ( + + 60 ) / + SUM( - - 82 ) * ( + - 2 ) ) - + CASE + 63 WHEN 1 / + + ( + 21 ) THEN NULL WHEN 32 THEN CAST( + COUNT( * ) AS SIGNED ) ELSE NULL END ), - + 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT - 35 * - MIN ( + CAST ( NULL AS INTEGER ) ) * + + CAST ( NULL AS REAL ) - - 7 + SUM ( ALL + 31 ) * - + COALESCE ( - 4, + + COUNT ( * ) + + 1 + - + 67 + + COALESCE ( - CAST ( NULL AS INTEGER ), - COALESCE ( + 98, ( - CAST ( NULL AS INTEGER ) ) * - ( + + 60 ) / + SUM ( - - 82 ) * ( + - 2 ) ) - + CASE + 63 WHEN 1 / + + ( + 21 ) THEN NULL WHEN 32 THEN CAST ( + COUNT ( * ) AS INTEGER ) ELSE NULL END ), - + 70 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9383
SELECT + COUNT( DISTINCT + 74 ), COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9383
SELECT + COUNT ( DISTINCT + 74 ), COUNT ( * ) AS col0
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT CAST( + 97 AS SIGNED ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-9384
SELECT CAST ( + 97 AS INTEGER ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9385
SELECT + 52 * 58 AS col0, + 59 * + 84 * - MIN( ALL 71 ) * + 84 - - + ( + ( + 22 ) )
----
3016
-29557562

skipif mysql # not compatible
query II rowsort label-9385
SELECT + 52 * 58 AS col0, + 59 * + 84 * - MIN ( ALL 71 ) * + 84 - - + ( + ( + 22 ) )
----
3016
-29557562

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT + NULLIF ( + 35, COUNT( * ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9386
SELECT + NULLIF ( + 35, COUNT ( * ) ) AS col0
----
35

query I rowsort
SELECT ( + + ( + 51 ) ) AS col0
----
51

query II rowsort
SELECT ( 0 ), - 26 * 95 AS col1
----
0
-2470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT + CAST( 8 AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-9389
SELECT + CAST ( 8 AS INTEGER ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9390
SELECT + 74 DIV - 60 DIV + ( + CASE 72 WHEN + 48 + + + 12 + + 65 THEN NULL ELSE NULLIF ( + + ( - COUNT( * ) ), 28 ) END )
----
1

skipif mysql # not compatible
query I rowsort label-9390
SELECT + 74 / - 60 / + ( + CASE 72 WHEN + 48 + + + 12 + + 65 THEN NULL ELSE NULLIF ( + + ( - COUNT ( * ) ), 28 ) END )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT 2 * - 60 + + COALESCE ( - + 28, + - COUNT( * ) * + - 34 ) AS col0
----
-148

skipif mysql # not compatible
query I rowsort label-9391
SELECT 2 * - 60 + + COALESCE ( - + 28, + - COUNT ( * ) * + - 34 ) AS col0
----
-148

query I rowsort
SELECT NULLIF ( + 68, - - 11 ) AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9393
SELECT + + SUM( 56 ) DIV - + 82 - - + COUNT( * ) AS col0, 1 DIV - 11
----
1
0

skipif mysql # not compatible
query II rowsort label-9393
SELECT + + SUM ( 56 ) / - + 82 - - + COUNT ( * ) AS col0, 1 / - 11
----
1
0

query I rowsort
SELECT - - 48 * + - 53 * - - 29 * - ( + 32 ) AS col2
----
2360832

query I rowsort
SELECT ALL + 22 * + - 61 + 55
----
-1287

query I rowsort
SELECT - + 73 * + 92
----
-6716

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9397
SELECT ALL - CAST( NULL AS DECIMAL ) * + - 52 + CAST( NULL AS SIGNED ) + + COUNT( * ) * + NULLIF ( CASE + 2 WHEN + 0 THEN + + 57 * + 92 ELSE + MAX( 85 ) * + ( 44 ) END, + COUNT( * ) ) AS col1, + 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-9397
SELECT ALL - CAST ( NULL AS REAL ) * + - 52 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + NULLIF ( CASE + 2 WHEN + 0 THEN + + 57 * + 92 ELSE + MAX ( 85 ) * + ( 44 ) END, + COUNT ( * ) ) AS col1, + 76 AS col0
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT - 79 + - COALESCE ( 24, + - COUNT( * ) ) * + 95 * + 75 * - NULLIF ( - + 23, - - 75 ) col2
----
-3933079

skipif mysql # not compatible
query I rowsort label-9398
SELECT - 79 + - COALESCE ( 24, + - COUNT ( * ) ) * + 95 * + 75 * - NULLIF ( - + 23, - - 75 ) col2
----
-3933079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9399
SELECT - 85 * MAX( - ( - 19 ) ) DIV + 75 + + 3 + SUM( ALL - 14 ) * - + 24 * - 12 + - 24 + ( - 59 ) AS col1
----
-4133

skipif mysql # not compatible
query I rowsort label-9399
SELECT - 85 * MAX ( - ( - 19 ) ) / + 75 + + 3 + SUM ( ALL - 14 ) * - + 24 * - 12 + - 24 + ( - 59 ) AS col1
----
-4133

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT + 50 * COUNT( + 89 ) + - 89 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT + 50 * COUNT ( + 89 ) + - 89 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-9401
SELECT ALL ( 27 ) AS col0, - 24 * - COALESCE ( 13, + - COUNT( * ) * 12 )
----
27
312

skipif mysql # not compatible
query II rowsort label-9401
SELECT ALL ( 27 ) AS col0, - 24 * - COALESCE ( 13, + - COUNT ( * ) * 12 )
----
27
312

query II rowsort
SELECT ALL + 21 * - + 34 + - 16 + - + 38 * - COALESCE ( + 66, - 10 ) AS col0, 79
----
1778
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9403
SELECT + CAST( - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-9403
SELECT + CAST ( - 88 AS INTEGER )
----
-88

query I rowsort
SELECT + - 51 * - + 79
----
4029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT - - 46 + - + 71 * ( - - CAST( - + ( - 12 ) AS SIGNED ) ) col0
----
-806

skipif mysql # not compatible
query I rowsort label-9405
SELECT - - 46 + - + 71 * ( - - CAST ( - + ( - 12 ) AS INTEGER ) ) col0
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - - SUM( COALESCE ( - + 33, 43 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-9406
SELECT - - SUM ( COALESCE ( - + 33, 43 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT - - 52 * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT - - 52 * + COUNT ( * )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT - CAST( + 10 AS SIGNED ) + - 93
----
-103

skipif mysql # not compatible
query I rowsort label-9408
SELECT - CAST ( + 10 AS INTEGER ) + - 93
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT - 95 + + 19 DIV - 97 + + 84
----
-11

skipif mysql # not compatible
query I rowsort label-9409
SELECT - 95 + + 19 / - 97 + + 84
----
-11

query I rowsort
SELECT ALL - - 97 - + + 29 AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT DISTINCT NULLIF ( - 47, + CAST( NULL AS SIGNED ) )
----
-47

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT NULLIF ( - 47, + CAST ( NULL AS INTEGER ) )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9412
SELECT DISTINCT - 87 - + + CAST( ( - + 8 ) AS SIGNED ) + 13
----
-66

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT - 87 - + + CAST ( ( - + 8 ) AS INTEGER ) + 13
----
-66

query I rowsort
SELECT 24 + - 28 AS col2
----
-4

query II rowsort
SELECT - 18, + 0 AS col2
----
-18
0

query II rowsort
SELECT DISTINCT 19 col0, 9
----
19
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT 5 * + CASE + AVG ( ALL - 42 ) WHEN + 18 THEN 60 * + 64 END * - COUNT( * ) + - 55 / + 82 * - 25 + + + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT 5 * + CASE + AVG ( ALL - 42 ) WHEN + 18 THEN 60 * + 64 END * - COUNT ( * ) + - 55 / + 82 * - 25 + + + 29 AS col1
----
NULL

query I rowsort
SELECT COALESCE ( + + 75, 3 ) * 75
----
5625

query I rowsort
SELECT 14 * 72 * - 51 AS col0
----
-51408

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT 97 * - COUNT( * ) + - 22 AS col0
----
-119

skipif mysql # not compatible
query I rowsort label-9419
SELECT 97 * - COUNT ( * ) + - 22 AS col0
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9420
SELECT ALL CAST( NULL AS SIGNED ) * + 58 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL CAST ( NULL AS INTEGER ) * + 58 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL - COUNT( 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL - COUNT ( 58 )
----
-1

query I rowsort
SELECT 40 * + 52 AS col0
----
2080

query I rowsort
SELECT 46 + - 10
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT 30 * + - COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9424
SELECT 30 * + - COUNT ( * ) AS col1
----
-30

query I rowsort
SELECT + 98 * 80 + - + 46
----
7794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT 75 + ( + CAST( CAST( NULLIF ( + + 54, - + COALESCE ( + 82, - ( - 61 ), - + CASE - - 27 WHEN - 72 / + 13 / + 94 * 43 THEN 24 ELSE NULL END ) ) AS SIGNED ) AS SIGNED ) ) + + + 1 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-9426
SELECT 75 + ( + CAST ( CAST ( NULLIF ( + + 54, - + COALESCE ( + 82, - ( - 61 ), - + CASE - - 27 WHEN - 72 / + 13 / + 94 * 43 THEN 24 ELSE NULL END ) ) AS INTEGER ) AS INTEGER ) ) + + + 1 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL 50 + - + COUNT( * ) + + NULLIF ( - + COALESCE ( + 39, 45 + + 86 ), + COUNT( * ) + - + 56 )
----
10

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL 50 + - + COUNT ( * ) + + NULLIF ( - + COALESCE ( + 39, 45 + + 86 ), + COUNT ( * ) + - + 56 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT CASE ( + 16 ) WHEN - - 56 THEN + CASE + 95 WHEN + 1 THEN NULL WHEN + + 18 / - 28 * + 91 THEN COUNT( * ) END WHEN - 24 + + 12 THEN - 6 * - 23 END / - NULLIF ( - + 75, + 56 + 76 + - 64 ) * + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT CASE ( + 16 ) WHEN - - 56 THEN + CASE + 95 WHEN + 1 THEN NULL WHEN + + 18 / - 28 * + 91 THEN COUNT ( * ) END WHEN - 24 + + 12 THEN - 6 * - 23 END / - NULLIF ( - + 75, + 56 + 76 + - 64 ) * + - 45
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9429
SELECT ALL + 80 * + CAST( NULL AS DECIMAL ) - + - 37 AS col2, 18 AS col2
----
NULL
18

skipif mysql # not compatible
query II rowsort label-9429
SELECT ALL + 80 * + CAST ( NULL AS REAL ) - + - 37 AS col2, 18 AS col2
----
NULL
18

query I rowsort
SELECT DISTINCT + 69 + + 36 * NULLIF ( - 18, + + 39 ) AS col0
----
-579

query I rowsort
SELECT DISTINCT - - 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT ALL + + 29 + MAX( ALL 97 ) * - 80
----
-7731

skipif mysql # not compatible
query I rowsort label-9432
SELECT ALL + + 29 + MAX ( ALL 97 ) * - 80
----
-7731

query I rowsort
SELECT + 86 * - 36 AS col2
----
-3096

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT ALL + NULLIF ( + + SUM( DISTINCT COALESCE ( ( - 16 ), - 31, + 44 ) ), - - 27 ) * + - 63
----
1008

skipif mysql # not compatible
query I rowsort label-9434
SELECT ALL + NULLIF ( + + SUM ( DISTINCT COALESCE ( ( - 16 ), - 31, + 44 ) ), - - 27 ) * + - 63
----
1008

query II rowsort
SELECT - 57 AS col1, 47
----
-57
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9436
SELECT + 13 DIV - COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9436
SELECT + 13 / - COUNT ( * ) AS col1
----
-13

query I rowsort
SELECT - 53 * - - 29 + - - 87 * + + 90 AS col2
----
6293

query I rowsort
SELECT DISTINCT - 37 + - NULLIF ( 18, - + 28 )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT - - 58 AS col1, COUNT( * ) * COUNT( DISTINCT + - 28 )
----
58
1

skipif mysql # not compatible
query II rowsort label-9439
SELECT - - 58 AS col1, COUNT ( * ) * COUNT ( DISTINCT + - 28 )
----
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL + 34 - - 65 + - + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL + 34 - - 65 + - + COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL - SUM( - 18 ) - - - 93 col0
----
-75

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL - SUM ( - 18 ) - - - 93 col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT MAX( 26 )
----
26

skipif mysql # not compatible
query I rowsort label-9442
SELECT MAX ( 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT ALL - COUNT( DISTINCT 77 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL - COUNT ( DISTINCT 77 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9444
SELECT COALESCE ( - + 89, - 22, COUNT( * ) ) + - 98 - + 6 + + + 5 - - CAST( NULL AS SIGNED ) / + 43 - - 49 * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT COALESCE ( - + 89, - 22, COUNT ( * ) ) + - 98 - + 6 + + + 5 - - CAST ( NULL AS INTEGER ) / + 43 - - 49 * 7 AS col1
----
NULL

query I rowsort
SELECT 24 * + + 8
----
192

query I rowsort
SELECT DISTINCT + ( - 78 ) * - NULLIF ( + 71, - COALESCE ( 5, - 94 ) ) + - COALESCE ( 5, - - 99, 89 ) + + + 86 * - - 92
----
13445

query I rowsort
SELECT ALL + 10 * - 19
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT 14 + 7 + - COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9448
SELECT 14 + 7 + - COUNT ( * ) AS col2
----
20

query I rowsort
SELECT 50 * - ( - + 85 ) AS col1
----
4250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9450
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9451
SELECT DISTINCT MAX( ALL - - 54 ) * + - COUNT( * ) - + 63 DIV + 67
----
-54

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT MAX ( ALL - - 54 ) * + - COUNT ( * ) - + 63 / + 67
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-9452
SELECT ALL 26 AS col1, 56 DIV + 55 AS col0
----
26
1

skipif mysql # not compatible
query II rowsort label-9452
SELECT ALL 26 AS col1, 56 / + 55 AS col0
----
26
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT DISTINCT COUNT( DISTINCT 52 )
----
1

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT COUNT ( DISTINCT 52 )
----
1

query II rowsort
SELECT DISTINCT 85 AS col0, 28 AS col2
----
85
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9455
SELECT + 88 * + 50 / - ( COUNT( * ) ) - + NULLIF ( 51, + 69 ) / - + 85 + - CAST( NULL AS SIGNED ) + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT + 88 * + 50 / - ( COUNT ( * ) ) - + NULLIF ( 51, + 69 ) / - + 85 + - CAST ( NULL AS INTEGER ) + 68
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT 30 DIV - 41 * 2
----
0

skipif mysql # not compatible
query I rowsort label-9456
SELECT 30 / - 41 * 2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT CASE + - 14 WHEN 22 THEN NULL WHEN - + 88 THEN - 80 + - - NULLIF ( - 0, + 23 * - 34 / - 42 * + + COUNT( * ) / + ( - - COUNT( * ) ) + + + 67 ) ELSE NULL END * - + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT CASE + - 14 WHEN 22 THEN NULL WHEN - + 88 THEN - 80 + - - NULLIF ( - 0, + 23 * - 34 / - 42 * + + COUNT ( * ) / + ( - - COUNT ( * ) ) + + + 67 ) ELSE NULL END * - + 14 AS col2
----
NULL

query I rowsort
SELECT 75 * - ( - + 1 )
----
75

query I rowsort
SELECT ALL 3 * + 78 * - + 56 AS col1
----
-13104

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT 32 * - 13 + + + ( + COUNT( * ) )
----
-415

skipif mysql # not compatible
query I rowsort label-9460
SELECT 32 * - 13 + + + ( + COUNT ( * ) )
----
-415

query I rowsort
SELECT + + ( 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL - 59 + - CASE SUM( 68 ) WHEN + 69 + - - 20 + + 83 + + 25 + 73 * - 87 * + 25 * 94 THEN - 65 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL - 59 + - CASE SUM ( 68 ) WHEN + 69 + - - 20 + + 83 + + 25 + 73 * - 87 * + 25 * 94 THEN - 65 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9463
SELECT ALL + + COUNT( * ) * - 78 - - 58 - ( CAST( + 70 AS SIGNED ) ) - + - 25 / - CASE 29 WHEN 29 * + 91 THEN 62 WHEN 92 * - + 42 * 90 + 98 + + 23 THEN + 48 + - - 30 + + + 65 + - ( - 34 ) * - 30 * - 85 END * + CAST( - 44 AS SIGNED ) / + 56 + ( 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + + COUNT ( * ) * - 78 - - 58 - ( CAST ( + 70 AS INTEGER ) ) - + - 25 / - CASE 29 WHEN 29 * + 91 THEN 62 WHEN 92 * - + 42 * 90 + 98 + + 23 THEN + 48 + - - 30 + + + 65 + - ( - 34 ) * - 30 * - 85 END * + CAST ( - 44 AS INTEGER ) / + 56 + ( 24 )
----
NULL

query I rowsort
SELECT 11 + - 32 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT 10 * ( + COUNT( * ) ) + - + 66 + - - NULLIF ( - COUNT( * ), 62 )
----
-57

skipif mysql # not compatible
query I rowsort label-9465
SELECT 10 * ( + COUNT ( * ) ) + - + 66 + - - NULLIF ( - COUNT ( * ), 62 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT ALL 67 + + - 27 DIV - 65 + 90 * - - 93 AS col2
----
8437

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL 67 + + - 27 / - 65 + 90 * - - 93 AS col2
----
8437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9467
SELECT + 1 * + ( - + ( - + MIN( - 50 ) ) ) + + COUNT( * ) * - CAST( - + CASE - ( + 52 ) WHEN 23 THEN NULL WHEN 28 THEN + MAX( - 81 ) ELSE + COALESCE ( + 7, 89 ) END AS SIGNED ) / + - COUNT( * ) + + + CASE + CAST( - - CAST( + 49 AS SIGNED ) AS DECIMAL ) WHEN + 21 THEN + COUNT( * ) WHEN 30 THEN - 25 + + 5 + + 6 + 54 + - + 87 / - COUNT( * ) + 37 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT + 1 * + ( - + ( - + MIN ( - 50 ) ) ) + + COUNT ( * ) * - CAST ( - + CASE - ( + 52 ) WHEN 23 THEN NULL WHEN 28 THEN + MAX ( - 81 ) ELSE + COALESCE ( + 7, 89 ) END AS INTEGER ) / + - COUNT ( * ) + + + CASE + CAST ( - - CAST ( + 49 AS INTEGER ) AS REAL ) WHEN + 21 THEN + COUNT ( * ) WHEN 30 THEN - 25 + + 5 + + 6 + 54 + - + 87 / - COUNT ( * ) + 37 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 20 * 9 + + 98 AS col1
----
278

onlyif mysql # aggregate syntax: 
query II rowsort label-9469
SELECT + 24 AS col0, + COUNT( - 18 ) + + COUNT( * ) AS col0
----
24
2

skipif mysql # not compatible
query II rowsort label-9469
SELECT + 24 AS col0, + COUNT ( - 18 ) + + COUNT ( * ) AS col0
----
24
2

query I rowsort
SELECT ALL - - 5 - - 80 - + ( + 53 ) * - 80 * - 98 * - + 24 * - ( - - 81 )
----
-807770795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9471
SELECT ALL COUNT( * ) AS col0, 50 + + 74 - - CAST( 31 AS SIGNED ) + + - 92 + - 36 AS col1
----
1
27

skipif mysql # not compatible
query II rowsort label-9471
SELECT ALL COUNT ( * ) AS col0, 50 + + 74 - - CAST ( 31 AS INTEGER ) + + - 92 + - 36 AS col1
----
1
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9472
SELECT ALL - 58 - - + 75 AS col1, MAX( DISTINCT - 1 ), CAST( - 58 AS SIGNED ) AS col0
----
17
-1
-58

skipif mysql # not compatible
query III rowsort label-9472
SELECT ALL - 58 - - + 75 AS col1, MAX ( DISTINCT - 1 ), CAST ( - 58 AS INTEGER ) AS col0
----
17
-1
-58

query I rowsort
SELECT + 87 * - + 28
----
-2436

query I rowsort
SELECT ALL - ( - 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL - NULLIF ( - 47, + 71 ) * SUM( DISTINCT - - 81 ) * - 90 - + 89 + + + COUNT( - + 55 ) * + 27 * 74 + - 51 + - + 21 + - 58 AS col1
----
-340851

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL - NULLIF ( - 47, + 71 ) * SUM ( DISTINCT - - 81 ) * - 90 - + 89 + + + COUNT ( - + 55 ) * + 27 * 74 + - 51 + - + 21 + - 58 AS col1
----
-340851

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT + 14 + ( COUNT( - NULLIF ( 30, 6 ) ) ) + 68 - 28
----
55

skipif mysql # not compatible
query I rowsort label-9476
SELECT + 14 + ( COUNT ( - NULLIF ( 30, 6 ) ) ) + 68 - 28
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT + 53 * - MIN( - 95 ) col2
----
5035

skipif mysql # not compatible
query I rowsort label-9477
SELECT + 53 * - MIN ( - 95 ) col2
----
5035

query I rowsort
SELECT DISTINCT + 81 * + - 13 col1
----
-1053

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT + 53 * 55 * - + COUNT( ALL + 18 ) AS col0
----
-2915

skipif mysql # not compatible
query I rowsort label-9479
SELECT + 53 * 55 * - + COUNT ( ALL + 18 ) AS col0
----
-2915

onlyif mysql # DIV for integer division: 
query I rowsort label-9480
SELECT - 35 DIV 70 * + 38
----
0

skipif mysql # not compatible
query I rowsort label-9480
SELECT - 35 / 70 * + 38
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9481
SELECT DISTINCT MIN( 31 ) * ( + SUM( - - 0 ) ) AS col1, - 25 AS col2
----
0
-25

skipif mysql # not compatible
query II rowsort label-9481
SELECT DISTINCT MIN ( 31 ) * ( + SUM ( - - 0 ) ) AS col1, - 25 AS col2
----
0
-25

query I rowsort
SELECT DISTINCT 52 * - ( + 57 ) AS col1
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL COUNT( * ) * - 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL COUNT ( * ) * - 0 AS col2
----
0

query I rowsort
SELECT + 81 * + 37
----
2997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9485
SELECT ALL - 43 DIV + + 64 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - 43 / + + 64 * COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT + 99 DIV - 39
----
-2

skipif mysql # not compatible
query I rowsort label-9486
SELECT + 99 / - 39
----
-2

query II rowsort
SELECT ALL - 34 + - 21, 34 AS col1
----
-55
34

query I rowsort
SELECT ALL + 80 + - ( - - 67 )
----
13

query I rowsort
SELECT - ( + 28 )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9490
SELECT ALL 97 * + + 83 DIV - ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col1
----
-8051

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL 97 * + + 83 / - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1
----
-8051

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9491
SELECT - 9 + - CAST( - 72 AS SIGNED ), - 56 AS col0
----
63
-56

skipif mysql # not compatible
query II rowsort label-9491
SELECT - 9 + - CAST ( - 72 AS INTEGER ), - 56 AS col0
----
63
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9492
SELECT ALL 21 * - 83 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL 21 * - 83 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT ( + CASE + CASE COUNT( * ) WHEN + 27 + + ( 94 ) THEN + CASE - - 52 WHEN - CASE 40 WHEN + 92 + + 49 THEN - - 7 ELSE - 18 END * - 48 * + + ( + - 96 ) + 62 + - 69 THEN 4 END + - 58 WHEN AVG ( ALL - - 89 ) THEN NULL WHEN + 69 THEN - - 98 ELSE + 43 END WHEN - - CASE COUNT( * ) WHEN - 35 + - - ( - COUNT( * ) ) THEN - 96 * - 12 * COUNT( * ) END THEN + + COUNT( * ) WHEN - 52 + + + 84 THEN NULL WHEN - 70 * + + 96 + + COUNT( * ) THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT ( + CASE + CASE COUNT ( * ) WHEN + 27 + + ( 94 ) THEN + CASE - - 52 WHEN - CASE 40 WHEN + 92 + + 49 THEN - - 7 ELSE - 18 END * - 48 * + + ( + - 96 ) + 62 + - 69 THEN 4 END + - 58 WHEN AVG ( ALL - - 89 ) THEN NULL WHEN + 69 THEN - - 98 ELSE + 43 END WHEN - - CASE COUNT ( * ) WHEN - 35 + - - ( - COUNT ( * ) ) THEN - 96 * - 12 * COUNT ( * ) END THEN + + COUNT ( * ) WHEN - 52 + + + 84 THEN NULL WHEN - 70 * + + 96 + + COUNT ( * ) THEN NULL END )
----
NULL

query I rowsort
SELECT - ( + 34 ) + - 9 AS col0
----
-43

query I rowsort
SELECT DISTINCT + + 33 AS col2
----
33

query I rowsort
SELECT ALL - 44 * + 99 + - + 42 - 86
----
-4484

onlyif mysql # DIV for integer division: 
query I rowsort label-9497
SELECT - + 94 DIV + 84 + 99
----
98

skipif mysql # not compatible
query I rowsort label-9497
SELECT - + 94 / + 84 + 99
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9498
SELECT DISTINCT - 70 / - CASE - - CAST( + COUNT( + + 62 ) AS SIGNED ) WHEN - 27 THEN NULL WHEN - + 39 THEN - - COUNT( * ) END * - 61 * - - ( + COUNT( * ) ) * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT - 70 / - CASE - - CAST ( + COUNT ( + + 62 ) AS INTEGER ) WHEN - 27 THEN NULL WHEN - + 39 THEN - - COUNT ( * ) END * - 61 * - - ( + COUNT ( * ) ) * + 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT - 26 * + - ( - COUNT( * ) ) * + 96 * - 63 col0
----
157248

skipif mysql # not compatible
query I rowsort label-9499
SELECT - 26 * + - ( - COUNT ( * ) ) * + 96 * - 63 col0
----
157248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT - + 48 / + + 11 + + CAST( NULL AS SIGNED ) + + - MIN( ALL 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT - + 48 / + + 11 + + CAST ( NULL AS INTEGER ) + + - MIN ( ALL 59 )
----
NULL

query I rowsort
SELECT + + 42 + - 10 - - - 31 AS col2
----
1

query I rowsort
SELECT DISTINCT - + 45 * + 93
----
-4185

onlyif mysql # DIV for integer division: 
query I rowsort label-9503
SELECT DISTINCT - 9 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT - 9 / - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT + CASE WHEN NOT COUNT( 42 ) NOT IN ( - 76 * 73, + COUNT( * ) + - 21 + + - 61 / 63 + + 98 - + - 9, - ( + 61 ), + + 90 ) THEN + 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9504
SELECT + CASE WHEN NOT COUNT ( 42 ) NOT IN ( - 76 * 73, + COUNT ( * ) + - 21 + + - 61 / 63 + + 98 - + - 9, - ( + 61 ), + + 90 ) THEN + 31 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL - ( - 70 ) * + 12 - 19 + + 62 + - 56 * - COUNT( * ) * - 97 AS col0
----
-4549

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL - ( - 70 ) * + 12 - 19 + + 62 + - 56 * - COUNT ( * ) * - 97 AS col0
----
-4549

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT - 71 DIV + - 88 + + 35
----
35

skipif mysql # not compatible
query I rowsort label-9506
SELECT - 71 / + - 88 + + 35
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-9507
SELECT ALL + COUNT( * ) * + + 56 AS col2, - 44
----
56
-44

skipif mysql # not compatible
query II rowsort label-9507
SELECT ALL + COUNT ( * ) * + + 56 AS col2, - 44
----
56
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9508
SELECT ( + 0 ), - CAST( NULL AS SIGNED ) / 31 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9508
SELECT ( + 0 ), - CAST ( NULL AS INTEGER ) / 31 AS col1
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT SUM( DISTINCT 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9509
SELECT SUM ( DISTINCT 87 ) AS col1
----
87

query I rowsort
SELECT + + 40 * + 78 * + 67
----
209040

query I rowsort
SELECT - - ( 74 ) - 92 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT MIN( ALL + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-9512
SELECT MIN ( ALL + 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9513
SELECT ALL + ( + - 77 ) * - + CAST( NULL AS SIGNED ) + 52 + + 67 / - 52 * + MIN( + - 32 ) * - 25 AS col2, + 39 + + COUNT( * ) - + CASE - 63 WHEN - COUNT( * ) THEN - 62 END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9513
SELECT ALL + ( + - 77 ) * - + CAST ( NULL AS INTEGER ) + 52 + + 67 / - 52 * + MIN ( + - 32 ) * - 25 AS col2, + 39 + + COUNT ( * ) - + CASE - 63 WHEN - COUNT ( * ) THEN - 62 END
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9514
SELECT - NULLIF ( + 13, + CAST( NULL AS SIGNED ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-9514
SELECT - NULLIF ( + 13, + CAST ( NULL AS INTEGER ) ) AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9515
SELECT DISTINCT CAST( + 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT CAST ( + 87 AS INTEGER )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT SUM( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-9516
SELECT SUM ( - 73 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9517
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 67 * + 74 + + - 79 - CAST( NULL AS SIGNED ) + 5 * 19 * COUNT( * ) * + 27
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9517
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 67 * + 74 + + - 79 - CAST ( NULL AS INTEGER ) + 5 * 19 * COUNT ( * ) * + 27
----
NULL
NULL

query I rowsort
SELECT ALL 64 + + 71
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9519
SELECT - 87 DIV MIN( + 28 ) AS col2, COUNT( DISTINCT + 74 ) + - - CAST( + 12 AS SIGNED ) AS col2
----
-3
13

skipif mysql # not compatible
query II rowsort label-9519
SELECT - 87 / MIN ( + 28 ) AS col2, COUNT ( DISTINCT + 74 ) + - - CAST ( + 12 AS INTEGER ) AS col2
----
-3
13

query II rowsort
SELECT + 28 * - 77 * 31 AS col2, 48 * - 50 col1
----
-66836
-2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9521
SELECT ALL 33 + - CAST( - COUNT( * ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL 33 + - CAST ( - COUNT ( * ) AS INTEGER )
----
34

query II rowsort
SELECT ALL 51 + + 6 + - + 86 - - 31 * - 8 * 82 AS col2, - 46 AS col2
----
-20365
-46

query I rowsort
SELECT + NULLIF ( 54, 8 ) + + 36 + + 12 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT ALL MAX( - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL MAX ( - 91 ) AS col1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9525
SELECT + 92 + + CAST( + - 45 AS SIGNED ) DIV 28 DIV 36 * + + SUM( ALL + - 86 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-9525
SELECT + 92 + + CAST ( + - 45 AS INTEGER ) / 28 / 36 * + + SUM ( ALL + - 86 ) col2
----
92

query I rowsort
SELECT ALL - 3 + + + 54 * - 5 AS col1
----
-273

query I rowsort
SELECT DISTINCT 50 + CASE WHEN 86 IS NULL THEN + - 32 WHEN NULL IS NULL THEN NULL ELSE 46 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT + COUNT( ALL - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-9528
SELECT + COUNT ( ALL - 58 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9529
SELECT + 25 col1, - 16 DIV + - 83
----
25
0

skipif mysql # not compatible
query II rowsort label-9529
SELECT + 25 col1, - 16 / + - 83
----
25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT MAX( - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-9530
SELECT MAX ( - 34 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9531
SELECT - 10 * ( - + 61 ) * 98 DIV COUNT( * ) + ( + 73 ) + + 18 * + + 60 * COUNT( ALL + ( + 58 ) ) - - ( - + 31 )
----
60902

skipif mysql # not compatible
query I rowsort label-9531
SELECT - 10 * ( - + 61 ) * 98 / COUNT ( * ) + ( + 73 ) + + 18 * + + 60 * COUNT ( ALL + ( + 58 ) ) - - ( - + 31 )
----
60902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT DISTINCT - - 93 * - 67 + 43 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT DISTINCT - - 93 * - 67 + 43 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + ( - 79 )
----
79

query I rowsort
SELECT DISTINCT - + 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT DISTINCT - CASE 41 WHEN + CASE 16 WHEN + + COALESCE ( + SUM( ALL 35 ), - 83 ) THEN 75 ELSE NULL END THEN 52 * 18 * + COUNT( * ) * + 30 * + 87 + - + 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT - CASE 41 WHEN + CASE 16 WHEN + + COALESCE ( + SUM ( ALL 35 ), - 83 ) THEN 75 ELSE NULL END THEN 52 * 18 * + COUNT ( * ) * + 30 * + 87 + - + 43 END
----
NULL

query I rowsort
SELECT DISTINCT - - ( 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-9537
SELECT COUNT( * ), COALESCE ( COUNT( + + ( + 83 ) ), + + 2 ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9537
SELECT COUNT ( * ), COALESCE ( COUNT ( + + ( + 83 ) ), + + 2 ) col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT 43 + + - SUM( - 20 )
----
63

skipif mysql # not compatible
query I rowsort label-9538
SELECT 43 + + - SUM ( - 20 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT ALL - + COUNT( ALL - + 82 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL - + COUNT ( ALL - + 82 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT + 67 * - + 88 * - 87 + MAX( ALL + 69 ) + + - COUNT( * ) + 68
----
513088

skipif mysql # not compatible
query I rowsort label-9540
SELECT + 67 * - + 88 * - 87 + MAX ( ALL + 69 ) + + - COUNT ( * ) + 68
----
513088

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9541
SELECT CAST( NULL AS DECIMAL ) * - + 97 + - 47 + 65 - + 22 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT CAST ( NULL AS REAL ) * - + 97 + - 47 + 65 - + 22 AS col1
----
NULL

query I rowsort
SELECT 75 * - 55 - 79 + + 26 col0
----
-4178

onlyif mysql # DIV for integer division: 
query I rowsort label-9543
SELECT 63 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-9543
SELECT 63 / + 75
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9544
SELECT ALL + ( + - NULLIF ( + - 55, + 89 + + 13 + ( + CAST( NULL AS DECIMAL ) ) * - 27 * ( - - 86 ) * CAST( NULL AS SIGNED ) ) ) + ( 78 ) * + 75 + - 1 AS col0
----
5904

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL + ( + - NULLIF ( + - 55, + 89 + + 13 + ( + CAST ( NULL AS REAL ) ) * - 27 * ( - - 86 ) * CAST ( NULL AS INTEGER ) ) ) + ( 78 ) * + 75 + - 1 AS col0
----
5904

query I rowsort
SELECT ALL + 42 * + 66 AS col0
----
2772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9546
SELECT ALL - 79 + + 14 + COUNT( * ) DIV 85 * CAST( - - COUNT( * ) AS SIGNED ) DIV - COUNT( * ) * 74 + + 34 * COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL - 79 + + 14 + COUNT ( * ) / 85 * CAST ( - - COUNT ( * ) AS INTEGER ) / - COUNT ( * ) * 74 + + 34 * COUNT ( * ) AS col2
----
-31

query I rowsort
SELECT DISTINCT - 97 + + - 1 AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9548
SELECT 24 * - 22 * - MIN( + CAST( - 34 AS SIGNED ) ) * 81
----
-1454112

skipif mysql # not compatible
query I rowsort label-9548
SELECT 24 * - 22 * - MIN ( + CAST ( - 34 AS INTEGER ) ) * 81
----
-1454112

query I rowsort
SELECT 59 + - - 27
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ALL 10 + + 68 * + - COUNT( DISTINCT + 16 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL 10 + + 68 * + - COUNT ( DISTINCT + 16 ) AS col2
----
-58

query I rowsort
SELECT 49 * - NULLIF ( + 58, 66 ) AS col2
----
-2842

query I rowsort
SELECT ALL - 80 * - 12
----
960

query I rowsort
SELECT ALL 80 - 13
----
67

query I rowsort
SELECT 74 * + + ( COALESCE ( + 47, + 80, - - 96 ) )
----
3478

query I rowsort
SELECT ALL 97 * + 41 * + 56 col1
----
222712

onlyif mysql # DIV for integer division: 
query II rowsort label-9556
SELECT DISTINCT - 35 - + 51 col1, - 61 DIV 31 * + - 38 * + 0
----
-86
0

skipif mysql # not compatible
query II rowsort label-9556
SELECT DISTINCT - 35 - + 51 col1, - 61 / 31 * + - 38 * + 0
----
-86
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT 90 + + COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-9557
SELECT 90 + + COUNT ( * ) AS col1
----
91

query I rowsort
SELECT DISTINCT 85 - - - NULLIF ( + 35, - + 3 ) AS col0
----
50

query I rowsort
SELECT ALL 44 * 86
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT DISTINCT - 70 * + + COUNT( ALL - 11 )
----
-70

skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT - 70 * + + COUNT ( ALL - 11 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT 40 + + COUNT( DISTINCT ( + 72 ) )
----
41

skipif mysql # not compatible
query I rowsort label-9561
SELECT 40 + + COUNT ( DISTINCT ( + 72 ) )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT ALL + + COUNT( * ) * + - 42 DIV + 33 + + 21 - 45 * COUNT( * ) + - 72 + - - 55
----
-42

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL + + COUNT ( * ) * + - 42 / + 33 + + 21 - 45 * COUNT ( * ) + - 72 + - - 55
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9563
SELECT + - MIN( 42 ) DIV - 3 + COUNT( * ) * + 56 * + 82
----
4606

skipif mysql # not compatible
query I rowsort label-9563
SELECT + - MIN ( 42 ) / - 3 + COUNT ( * ) * + 56 * + 82
----
4606

query I rowsort
SELECT DISTINCT - CASE + 88 WHEN - 86 THEN NULL WHEN - - 78 + - 4 THEN 34 * + 81 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9565
SELECT ALL 74 DIV - + 90 * 89 * 28 * - + 73 + + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL 74 / - + 90 * 89 * 28 * - + 73 + + 95 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT 78 DIV 59 col1
----
1

skipif mysql # not compatible
query I rowsort label-9566
SELECT 78 / 59 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9567
SELECT DISTINCT COUNT( * ) DIV + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT COUNT ( * ) / + - COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9568
SELECT + ( + 45 ) * - - 76 + + - ( - ( - CAST( + + ( + COUNT( * ) ) AS SIGNED ) ) ) + - + 71 * 41 + - COUNT( * ) col0
----
507

skipif mysql # not compatible
query I rowsort label-9568
SELECT + ( + 45 ) * - - 76 + + - ( - ( - CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) ) ) + - + 71 * 41 + - COUNT ( * ) col0
----
507

query I rowsort
SELECT ALL 63 + - - 40 - 20 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9570
SELECT DISTINCT - 77 + + + 89 * COUNT( * ) + COUNT( 13 ) * + 70 + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT - 77 + + + 89 * COUNT ( * ) + COUNT ( 13 ) * + 70 + - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT + COUNT( + - 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9571
SELECT + COUNT ( + - 39 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9572
SELECT ALL - ( - 16 ), - CASE - + CAST( NULL AS DECIMAL ) WHEN - - 19 + - NULLIF ( + CAST( + 90 AS DECIMAL ), 93 - + 94 * - 49 + 84 ) + + + 91 + 42 + - + 36 + - 40 * 24 * MAX( + 31 ) * 77 * + AVG ( + 12 ) + 31 + - - CAST( + 67 AS SIGNED ) * - 79 * + 51 THEN NULL ELSE - CASE + ( 21 ) WHEN - + 70 THEN 93 * - MIN( + - ( + 28 ) ) / + 13 / - CAST( - 68 AS SIGNED ) + + - COALESCE ( + + 16, - + 22 ) + + 79 + 49 WHEN - 64 THEN NULL END END AS col1
----
16
NULL

skipif mysql # not compatible
query II rowsort label-9572
SELECT ALL - ( - 16 ), - CASE - + CAST ( NULL AS REAL ) WHEN - - 19 + - NULLIF ( + CAST ( + 90 AS REAL ), 93 - + 94 * - 49 + 84 ) + + + 91 + 42 + - + 36 + - 40 * 24 * MAX ( + 31 ) * 77 * + AVG ( + 12 ) + 31 + - - CAST ( + 67 AS INTEGER ) * - 79 * + 51 THEN NULL ELSE - CASE + ( 21 ) WHEN - + 70 THEN 93 * - MIN ( + - ( + 28 ) ) / + 13 / - CAST ( - 68 AS INTEGER ) + + - COALESCE ( + + 16, - + 22 ) + + 79 + 49 WHEN - 64 THEN NULL END END AS col1
----
16
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9573
SELECT DISTINCT - 33 + - 63 DIV - 1 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - 33 + - 63 / - 1 AS col1
----
30

query I rowsort
SELECT DISTINCT + 38 + 26
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9575
SELECT + COUNT( * ), 17 AS col2
----
1
17

skipif mysql # not compatible
query II rowsort label-9575
SELECT + COUNT ( * ), 17 AS col2
----
1
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9576
SELECT NULLIF ( 57, - 66 ) / + + 46 * + 99 * 8 * - CASE 92 WHEN 38 - + - 67 / 12 THEN - NULLIF ( CAST( - 19 AS SIGNED ), + SUM( ALL + 90 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT NULLIF ( 57, - 66 ) / + + 46 * + 99 * 8 * - CASE 92 WHEN 38 - + - 67 / 12 THEN - NULLIF ( CAST ( - 19 AS INTEGER ), + SUM ( ALL + 90 ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + 85, + + 68 ) + + 76
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT + MAX( ALL 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-9578
SELECT + MAX ( ALL 51 ) AS col0
----
51

query I rowsort
SELECT ALL + 21 + + - 25 AS col1
----
-4

query I rowsort
SELECT 49 - 25 AS col1
----
24

query II rowsort
SELECT ALL 77 AS col1, 40 * + 98 * - - 30 AS col1
----
77
117600

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT 58 * - - 89 * COUNT( * ) AS col1
----
5162

skipif mysql # not compatible
query I rowsort label-9582
SELECT 58 * - - 89 * COUNT ( * ) AS col1
----
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT + 94 * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + 94 * - COUNT ( * )
----
-94

query I rowsort
SELECT 74 * - 33 * - ( - 96 ) AS col1
----
-234432

query I rowsort
SELECT ALL 56 - + ( + + 87 ) AS col2
----
-31

query I rowsort
SELECT ALL - 49 * + 49 AS col1
----
-2401

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9587
SELECT - 44 AS col0, + 92 DIV + 74 + NULLIF ( + 9, + + COUNT( * ) - - 54 - 58 - 2 )
----
-44
10

skipif mysql # not compatible
query II rowsort label-9587
SELECT - 44 AS col0, + 92 / + 74 + NULLIF ( + 9, + + COUNT ( * ) - - 54 - 58 - 2 )
----
-44
10

query I rowsort
SELECT 90 + - 28 * + 83 col1
----
-2234

onlyif mysql # aggregate syntax: 
query II rowsort label-9589
SELECT MAX( - 20 ) - - - 61 AS col2, 13 - - - 46
----
-81
-33

skipif mysql # not compatible
query II rowsort label-9589
SELECT MAX ( - 20 ) - - - 61 AS col2, 13 - - - 46
----
-81
-33

query I rowsort
SELECT DISTINCT - 31 * - 29
----
899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT 74 * + CAST( NULL AS SIGNED ) / - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT 74 * + CAST ( NULL AS INTEGER ) / - - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT COUNT( * ) * 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-9592
SELECT COUNT ( * ) * 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL CASE 20 WHEN 36 + - COUNT( * ) + 5 * 92 + - MIN( 6 ) THEN + + 42 WHEN + + NULLIF ( + 96, + 68 ) * - + 18 THEN + - 39 * - - COUNT( * ) + - ( - 84 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL CASE 20 WHEN 36 + - COUNT ( * ) + 5 * 92 + - MIN ( 6 ) THEN + + 42 WHEN + + NULLIF ( + 96, + 68 ) * - + 18 THEN + - 39 * - - COUNT ( * ) + - ( - 84 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT DISTINCT + + 9 * - MAX( - 52 ) AS col1
----
468

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT + + 9 * - MAX ( - 52 ) AS col1
----
468

onlyif mysql # aggregate syntax: 
query II rowsort label-9595
SELECT - ( - 40 ) + NULLIF ( + + CASE 83 WHEN + + 53 THEN + 62 ELSE NULL END, - 79 ) * - ( - 47 ) AS col1, + COUNT( * ) - + + 78 * + 44
----
NULL
-3431

skipif mysql # not compatible
query II rowsort label-9595
SELECT - ( - 40 ) + NULLIF ( + + CASE 83 WHEN + + 53 THEN + 62 ELSE NULL END, - 79 ) * - ( - 47 ) AS col1, + COUNT ( * ) - + + 78 * + 44
----
NULL
-3431

query II rowsort
SELECT ALL + 57, 8 AS col2
----
57
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL + COUNT( - 11 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL + COUNT ( - 11 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT - + ( + ( - COUNT( DISTINCT - 11 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9598
SELECT - + ( + ( - COUNT ( DISTINCT - 11 ) ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9599
SELECT - + 78, + ( + + 86 ) DIV 69 - 24 AS col2
----
-78
-23

skipif mysql # not compatible
query II rowsort label-9599
SELECT - + 78, + ( + + 86 ) / 69 - 24 AS col2
----
-78
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT ALL + 30 / - CASE - + 80 WHEN COUNT( * ) THEN 10 END + CAST( - + MIN( 62 ) AS SIGNED ) + + 8 * 21 * + + COALESCE ( + MIN( 45 ), + ( - 26 ) + + 42 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL + 30 / - CASE - + 80 WHEN COUNT ( * ) THEN 10 END + CAST ( - + MIN ( 62 ) AS INTEGER ) + + 8 * 21 * + + COALESCE ( + MIN ( 45 ), + ( - 26 ) + + 42 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - MAX( DISTINCT + 50 ) * - 2 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-9601
SELECT - MAX ( DISTINCT + 50 ) * - 2 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT - COUNT( * ) * + 25 * COUNT( * ) + + 73 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-9602
SELECT - COUNT ( * ) * + 25 * COUNT ( * ) + + 73 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9603
SELECT ALL + 83, - COUNT( * ) - + 38 * - + 48 AS col0
----
83
1823

skipif mysql # not compatible
query II rowsort label-9603
SELECT ALL + 83, - COUNT ( * ) - + 38 * - + 48 AS col0
----
83
1823

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT + 78 DIV + - 16 + 5
----
1

skipif mysql # not compatible
query I rowsort label-9604
SELECT + 78 / + - 16 + 5
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT + + 59 - - 68 * + 9 * 40 * - 3 + - + ( + 80 ) * + ( + COUNT( * ) )
----
-73461

skipif mysql # not compatible
query I rowsort label-9605
SELECT + + 59 - - 68 * + 9 * 40 * - 3 + - + ( + 80 ) * + ( + COUNT ( * ) )
----
-73461

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT ALL + SUM( 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL + SUM ( 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9607
SELECT + + COUNT( * ) DIV 14 * 54 * + 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9607
SELECT + + COUNT ( * ) / 14 * 54 * + 9 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL + 8 * - ( - + 78 ) + COUNT( * )
----
625

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL + 8 * - ( - + 78 ) + COUNT ( * )
----
625

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT DISTINCT - 72 * - AVG ( ALL - - 91 ) * - 93 * - - CASE 22 WHEN + + COUNT( * ) * 83 THEN NULL WHEN + 78 * 75 THEN 82 * 74 * + + 46 END / - MIN( - 45 ) + + COUNT( * ) + 64 + + 3 - - 92 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9609
SELECT DISTINCT - 72 * - AVG ( ALL - - 91 ) * - 93 * - - CASE 22 WHEN + + COUNT ( * ) * 83 THEN NULL WHEN + 78 * 75 THEN 82 * 74 * + + 46 END / - MIN ( - 45 ) + + COUNT ( * ) + 64 + + 3 - - 92 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL 96 * + SUM( - 44 ) + 65 + 40 * 66 + - 36 + + - 32 * + 88 * + + 57
----
-162067

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL 96 * + SUM ( - 44 ) + 65 + 40 * 66 + - 36 + + - 32 * + 88 * + + 57
----
-162067

query II rowsort
SELECT + + 86 * + - 76 + ( + - 57 ) * 16 - + 5 AS col1, + 74 AS col0
----
-7453
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9612
SELECT ALL 41 DIV - 26 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL 41 / - 26 AS col2
----
-1

query I rowsort
SELECT 88 * 93 + - 67
----
8117

query I rowsort
SELECT + 52 - + 33
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT CASE + 88 WHEN - 18 * - + MIN( 23 ) - + - NULLIF ( + 52, + 17 ) THEN NULL WHEN + 75 * + COUNT( * ) THEN - - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9615
SELECT CASE + 88 WHEN - 18 * - + MIN ( 23 ) - + - NULLIF ( + 52, + 17 ) THEN NULL WHEN + 75 * + COUNT ( * ) THEN - - 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT + MAX( - - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-9616
SELECT + MAX ( - - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT - 56 * + + 64 * CASE + + COUNT( * ) WHEN 46 THEN 59 END + - + 87 / + + 26 + + 25 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT - 56 * + + 64 * CASE + + COUNT ( * ) WHEN 46 THEN 59 END + - + 87 / + + 26 + + 25 * + 66
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9618
SELECT COUNT( * ) AS col2, + ( - 75 ) + 41 AS col1, - + 56 AS col2
----
1
-34
-56

skipif mysql # not compatible
query III rowsort label-9618
SELECT COUNT ( * ) AS col2, + ( - 75 ) + 41 AS col1, - + 56 AS col2
----
1
-34
-56

query I rowsort
SELECT ALL + 16 * - 9 AS col1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT + COALESCE ( + - ( + + 81 ), + CASE + 29 WHEN + + COUNT( * ) / ( - ( 1 ) ) + - 84 * 26 THEN - 78 + COUNT( * ) + + 36 * + 5 END * + 93 * + 83 + + 13 ) * + COUNT( * ) + - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-9620
SELECT + COALESCE ( + - ( + + 81 ), + CASE + 29 WHEN + + COUNT ( * ) / ( - ( 1 ) ) + - 84 * 26 THEN - 78 + COUNT ( * ) + + 36 * + 5 END * + 93 * + 83 + + 13 ) * + COUNT ( * ) + - COUNT ( * )
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9621
SELECT DISTINCT 55 * - + NULLIF ( 75, 94 ) - - SUM( DISTINCT - 73 ) + - - ( - 66 ) DIV + 72, 58 AS col1
----
-4198
58

skipif mysql # not compatible
query II rowsort label-9621
SELECT DISTINCT 55 * - + NULLIF ( 75, 94 ) - - SUM ( DISTINCT - 73 ) + - - ( - 66 ) / + 72, 58 AS col1
----
-4198
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT DISTINCT NULLIF ( MIN( - 74 ), - ( + 98 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT NULLIF ( MIN ( - 74 ), - ( + 98 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT + COUNT( * ) * - 98 + + 36
----
-62

skipif mysql # not compatible
query I rowsort label-9623
SELECT + COUNT ( * ) * - 98 + + 36
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT - COUNT( * ) + - 51 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-9624
SELECT - COUNT ( * ) + - 51 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9625
SELECT MIN( DISTINCT - - CASE + 56 WHEN + 47 THEN NULL WHEN + CAST( NULL AS SIGNED ) * + 81 THEN + ( + - 68 ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT MIN ( DISTINCT - - CASE + 56 WHEN + 47 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * + 81 THEN + ( + - 68 ) END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT ALL MAX( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL MAX ( - 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT + CAST( NULL AS SIGNED ) / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT + CAST ( NULL AS INTEGER ) / 40
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9628
SELECT - 32 * - 27 AS col1, + COUNT( * ) col0
----
864
1

skipif mysql # not compatible
query II rowsort label-9628
SELECT - 32 * - 27 AS col1, + COUNT ( * ) col0
----
864
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9629
SELECT 99 AS col2, - MAX( - 72 ) AS col0
----
99
72

skipif mysql # not compatible
query II rowsort label-9629
SELECT 99 AS col2, - MAX ( - 72 ) AS col0
----
99
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL CASE - + 88 WHEN NULLIF ( 2, - - 24 / - - 20 ) + COUNT( ALL 66 ) THEN - 63 WHEN + 45 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL CASE - + 88 WHEN NULLIF ( 2, - - 24 / - - 20 ) + COUNT ( ALL 66 ) THEN - 63 WHEN + 45 THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT MAX( - + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT MAX ( - + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL - - 36 * - + COUNT( DISTINCT - 83 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL - - 36 * - + COUNT ( DISTINCT - 83 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-9633
SELECT - CASE + ( 39 ) WHEN + + 28 - COUNT( * ) * + + 85 THEN - NULLIF ( + - 20, - + 4 + + - ( + - 11 ) ) - + ( 4 ) END / + 27 + - + 81 + + 50 AS col1, 25 * + + 75
----
NULL
1875

skipif mysql # not compatible
query II rowsort label-9633
SELECT - CASE + ( 39 ) WHEN + + 28 - COUNT ( * ) * + + 85 THEN - NULLIF ( + - 20, - + 4 + + - ( + - 11 ) ) - + ( 4 ) END / + 27 + - + 81 + + 50 AS col1, 25 * + + 75
----
NULL
1875

query I rowsort
SELECT DISTINCT - + 11 * 56 AS col2
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT - COUNT( 1 ) * - 39
----
39

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT - COUNT ( 1 ) * - 39
----
39

query II rowsort
SELECT ALL + 29 + - - ( + - CASE - AVG ( ALL + 85 ) WHEN - 22 THEN + 94 WHEN + 42 + - 82 + - - ( - 6 ) THEN + - 11 END ) AS col2, + 60 AS col1
----
NULL
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9637
SELECT - 21 + + + 29 + + + NULLIF ( 92, - CAST( 80 AS DECIMAL ) * + 7 ) + COUNT( * ) * 31 * + 25 + + MAX( DISTINCT 78 ) * CAST( - + 86 AS SIGNED ) DIV - CAST( 40 AS SIGNED ) AS col0
----
1042

skipif mysql # not compatible
query I rowsort label-9637
SELECT - 21 + + + 29 + + + NULLIF ( 92, - CAST ( 80 AS REAL ) * + 7 ) + COUNT ( * ) * 31 * + 25 + + MAX ( DISTINCT 78 ) * CAST ( - + 86 AS INTEGER ) / - CAST ( 40 AS INTEGER ) AS col0
----
1042

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL - - ( - 91 ) * 83 + + MIN( DISTINCT 71 ) + + MIN( + 32 )
----
-7450

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL - - ( - 91 ) * 83 + + MIN ( DISTINCT 71 ) + + MIN ( + 32 )
----
-7450

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9639
SELECT + 65 DIV - CAST( 24 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-9639
SELECT + 65 / - CAST ( 24 AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT - - COUNT( * ) + + - 90 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9640
SELECT - - COUNT ( * ) + + - 90 AS col0
----
-89

query I rowsort
SELECT DISTINCT - + 94 + + ( - 57 ) AS col0
----
-151

query II rowsort
SELECT ALL + + 31 + + 72 - 69 * + 17, + 2 AS col0
----
-1070
2

query I rowsort
SELECT - + 62 + 2 AS col2
----
-60

query I rowsort
SELECT - NULLIF ( 94, + AVG ( - - ( - + 40 ) ) )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT - - 88 + + CASE + 54 WHEN - - 49 * + 57 + - 15 THEN MAX( + 27 ) ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9645
SELECT - - 88 + + CASE + 54 WHEN - - 49 * + 57 + - 15 THEN MAX ( + 27 ) ELSE NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT - + 29 - + 92 * - 34 * + 27 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT - + 29 - + 92 * - 34 * + 27 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT NULLIF ( 50, + ( - COUNT( * ) ) )
----
50

skipif mysql # not compatible
query I rowsort label-9647
SELECT NULLIF ( 50, + ( - COUNT ( * ) ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT - ( 48 ) + + COUNT( * ) + + - 33 * - + 37 AS col0
----
1174

skipif mysql # not compatible
query I rowsort label-9648
SELECT - ( 48 ) + + COUNT ( * ) + + - 33 * - + 37 AS col0
----
1174

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT + 48 * COUNT( DISTINCT - 0 ) + 3 + - + 77 + - 51 * - 59 + 46 * - + 36
----
1327

skipif mysql # not compatible
query I rowsort label-9649
SELECT + 48 * COUNT ( DISTINCT - 0 ) + 3 + - + 77 + - 51 * - 59 + 46 * - + 36
----
1327

query II rowsort
SELECT + 35 AS col2, - 59 AS col1
----
35
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9651
SELECT + + NULLIF ( + 27, - 29 ) * - + 60 + + 80 * COUNT( * ) AS col0, 73 DIV + + MAX( ALL + 40 ) AS col2
----
-1540
1

skipif mysql # not compatible
query II rowsort label-9651
SELECT + + NULLIF ( + 27, - 29 ) * - + 60 + + 80 * COUNT ( * ) AS col0, 73 / + + MAX ( ALL + 40 ) AS col2
----
-1540
1

query I rowsort
SELECT + - ( + 75 ) AS col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9653
SELECT - 40 * + - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9653
SELECT - 40 * + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
40

query I rowsort
SELECT ( + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT + COALESCE ( - COUNT( * ), - 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9655
SELECT + COALESCE ( - COUNT ( * ), - 70 ) AS col0
----
-1

query I rowsort
SELECT + 10 * 62 AS col0
----
620

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT 82 * - SUM( DISTINCT + 35 ) - - 74
----
-2796

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT 82 * - SUM ( DISTINCT + 35 ) - - 74
----
-2796

query I rowsort
SELECT 58 * + 69 - + 54 AS col1
----
3948

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT - 74 * + COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-9659
SELECT - 74 * + COUNT ( * ) AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9660
SELECT + CAST( + + 78 AS SIGNED ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9660
SELECT + CAST ( + + 78 AS INTEGER ) AS col2
----
78

query I rowsort
SELECT + CASE WHEN NOT NULL IS NOT NULL THEN - 18 ELSE NULL END * - + 98 col0
----
1764

query I rowsort
SELECT + 56 * + 2 AS col1
----
112

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT 74 - + - 8, + COUNT( * ) AS col2
----
82
1

skipif mysql # not compatible
query II rowsort label-9663
SELECT 74 - + - 8, + COUNT ( * ) AS col2
----
82
1

query I rowsort
SELECT ( + 18 ) - - 61 AS col1
----
79

query I rowsort
SELECT ALL COALESCE ( + 80, - 72 + 44 ) * - + 55 - 18
----
-4418

query II rowsort
SELECT DISTINCT 26 + - 62 AS col1, 15
----
-36
15

query I rowsort
SELECT DISTINCT 50 * + 82 AS col1
----
4100

query I rowsort
SELECT DISTINCT + 13 + + 98
----
111

query I rowsort
SELECT ALL + 63 * - 99
----
-6237

query I rowsort
SELECT - 10 - - - 53 + - - 99
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9671
SELECT + 33 DIV - 67 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9671
SELECT + 33 / - 67 * - COUNT ( * )
----
0

query I rowsort
SELECT ALL - 97 + + - 71 * 14
----
-1091

query II rowsort
SELECT ALL - 39 + 79 col2, - 94 AS col2
----
40
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT DISTINCT + MIN( ALL 53 ) + - 35
----
18

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT + MIN ( ALL 53 ) + - 35
----
18

query I rowsort
SELECT + 90 + - 47
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT ALL - 48 / + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - 48 / + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT + 89 + COUNT( * ) * + 48 AS col2
----
137

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT + 89 + COUNT ( * ) * + 48 AS col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT DISTINCT - - 66 * - - MIN( ALL + 76 ) * + CASE + COUNT( * ) WHEN 39 THEN NULL WHEN COUNT( ( + 27 ) ) THEN NULL WHEN - 71 + 58 THEN - COUNT( * ) / - - 97 * + - 51 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT - - 66 * - - MIN ( ALL + 76 ) * + CASE + COUNT ( * ) WHEN 39 THEN NULL WHEN COUNT ( ( + 27 ) ) THEN NULL WHEN - 71 + 58 THEN - COUNT ( * ) / - - 97 * + - 51 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9679
SELECT + COUNT( 35 ) + + 21 AS col1, + 49 AS col2
----
22
49

skipif mysql # not compatible
query II rowsort label-9679
SELECT + COUNT ( 35 ) + + 21 AS col1, + 49 AS col2
----
22
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT - MAX( + 95 ) col2
----
-95

skipif mysql # not compatible
query I rowsort label-9680
SELECT - MAX ( + 95 ) col2
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9681
SELECT DISTINCT - 54 * + - 25 - ( + 24 ) DIV - - ( + 27 ) AS col1
----
1350

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT - 54 * + - 25 - ( + 24 ) / - - ( + 27 ) AS col1
----
1350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9682
SELECT - - 49 DIV 82 + - 36 + MIN( DISTINCT 82 ) + - 12 * + + 87 * + ( + + 24 ) - - - 49
----
-25059

skipif mysql # not compatible
query I rowsort label-9682
SELECT - - 49 / 82 + - 36 + MIN ( DISTINCT 82 ) + - 12 * + + 87 * + ( + + 24 ) - - - 49
----
-25059

query I rowsort
SELECT + 6 * + 53 AS col1
----
318

query II rowsort
SELECT DISTINCT - 81 AS col1, - ( 96 )
----
-81
-96

query I rowsort
SELECT ALL - COALESCE ( - - NULLIF ( - - 45, 21 ), + 63 ) AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT + 22 * + 98 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT + 22 * + 98 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL - COUNT( ALL - 8 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL - COUNT ( ALL - 8 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - ( + 10 )
----
-10

query II rowsort
SELECT 37 AS col2, - 3 AS col1
----
37
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9690
SELECT 49 + - 76 + - + COUNT( * ) * 64 DIV + 9 DIV + COUNT( * ) + + ( - + 3 ) + + 76 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9690
SELECT 49 + - 76 + - + COUNT ( * ) * 64 / + 9 / + COUNT ( * ) + + ( - + 3 ) + + 76 AS col2
----
39

query II rowsort
SELECT 13 AS col0, 59
----
13
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9692
SELECT 62 * + + 56 + + - 44, + ( - + CAST( NULL AS SIGNED ) ) AS col0
----
3428
NULL

skipif mysql # not compatible
query II rowsort label-9692
SELECT 62 * + + 56 + + - 44, + ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
3428
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9693
SELECT 94 + + + 36 + - 55 DIV - - 70
----
130

skipif mysql # not compatible
query I rowsort label-9693
SELECT 94 + + + 36 + - 55 / - - 70
----
130

query I rowsort
SELECT ALL - 90 * + + 57 AS col0
----
-5130

onlyif mysql # DIV for integer division: 
query I rowsort label-9695
SELECT 64 DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-9695
SELECT 64 / + 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9696
SELECT - 84 * CAST( + 91 AS SIGNED ) + - 46 + - MIN( 1 ) DIV + 63 * + COALESCE ( - 48, - - 86 ) AS col2
----
-7690

skipif mysql # not compatible
query I rowsort label-9696
SELECT - 84 * CAST ( + 91 AS INTEGER ) + - 46 + - MIN ( 1 ) / + 63 * + COALESCE ( - 48, - - 86 ) AS col2
----
-7690

query II rowsort
SELECT + 9 * + - 8 + - 6 AS col0, 77 * - 83 * + 86 + 40 col2
----
-78
-549586

query I rowsort
SELECT 83 + - 6 AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT 90 DIV - 36
----
-2

skipif mysql # not compatible
query I rowsort label-9699
SELECT 90 / - 36
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9700
SELECT COUNT( ALL + CAST( NULL AS SIGNED ) ) + + 31
----
31

skipif mysql # not compatible
query I rowsort label-9700
SELECT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) + + 31
----
31

query I rowsort
SELECT ALL + 27 + + 18 AS col0
----
45

query I rowsort
SELECT DISTINCT - 72 * 93
----
-6696

query I rowsort
SELECT 0 * + 76 + + 37 + + 10
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9704
SELECT + 89 * - 71 + - CASE - 93 WHEN - - MAX( + ( CAST( + 39 AS DECIMAL ) ) ) THEN + 29 - COUNT( * ) + + + ( NULLIF ( 71, - 38 * 49 * + 11 + - ( + - 87 ) ) ) * 39 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT + 89 * - 71 + - CASE - 93 WHEN - - MAX ( + ( CAST ( + 39 AS REAL ) ) ) THEN + 29 - COUNT ( * ) + + + ( NULLIF ( 71, - 38 * 49 * + 11 + - ( + - 87 ) ) ) * 39 ELSE NULL END
----
NULL

query II rowsort
SELECT 32, 33 * - 57 + + + NULLIF ( + 78, + 78 * - 7 ) AS col1
----
32
-1803

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT + 73 * + MAX( + 35 ) + - 13 * + + 26
----
2217

skipif mysql # not compatible
query I rowsort label-9706
SELECT + 73 * + MAX ( + 35 ) + - 13 * + + 26
----
2217

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT + COALESCE ( - 34, + 53 DIV - - 18 + 73 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9707
SELECT + COALESCE ( - 34, + 53 / - - 18 + 73 ) AS col0
----
-34

query I rowsort
SELECT 30 * 71
----
2130

query I rowsort
SELECT DISTINCT 73 + + + 64 AS col1
----
137

query II rowsort
SELECT ALL + ( + 45 ) + - - 17 col0, + 88 AS col2
----
62
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9711
SELECT CAST( - 92 AS SIGNED ) + - CASE + AVG ( + - 45 ) WHEN - 43 * - + CAST( NULL AS SIGNED ) + - + COUNT( * ) + - + 58 + - 98 - + 52 THEN + COUNT( * ) END * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT CAST ( - 92 AS INTEGER ) + - CASE + AVG ( + - 45 ) WHEN - 43 * - + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - + 58 + - 98 - + 52 THEN + COUNT ( * ) END * - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9712
SELECT ALL - COUNT( 36 ) + - - CAST( + COALESCE ( + 92, - 59 ) AS SIGNED ) - - 80 * COUNT( * ), 66 col0
----
171
66

skipif mysql # not compatible
query II rowsort label-9712
SELECT ALL - COUNT ( 36 ) + - - CAST ( + COALESCE ( + 92, - 59 ) AS INTEGER ) - - 80 * COUNT ( * ), 66 col0
----
171
66

query II rowsort
SELECT ALL 34 AS col1, COALESCE ( + 15, + + 46 )
----
34
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT 9 + - - 33 - - MAX( DISTINCT - 41 ), - MAX( - 32 ) * - 87 AS col1
----
1
-2784

skipif mysql # not compatible
query II rowsort label-9714
SELECT 9 + - - 33 - - MAX ( DISTINCT - 41 ), - MAX ( - 32 ) * - 87 AS col1
----
1
-2784

query I rowsort
SELECT 70 * - - 63
----
4410

onlyif mysql # aggregate syntax: 
query II rowsort label-9716
SELECT ALL 58 + + MAX( ALL 27 ) AS col2, 77 - - - 93
----
85
-16

skipif mysql # not compatible
query II rowsort label-9716
SELECT ALL 58 + + MAX ( ALL 27 ) AS col2, 77 - - - 93
----
85
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT CAST( - 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-9717
SELECT CAST ( - 20 AS INTEGER )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT ALL + SUM( DISTINCT + + 73 ) + + 53 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL + SUM ( DISTINCT + + 73 ) + + 53 AS col2
----
126

query I rowsort
SELECT ALL + 27 - + 96 col0
----
-69

query I rowsort
SELECT - - ( + 53 ) col2
----
53

query II rowsort
SELECT ALL + 91 AS col1, - 8 AS col1
----
91
-8

query I rowsort
SELECT DISTINCT 85 * - 46
----
-3910

query I rowsort
SELECT 50 - 64
----
-14

query I rowsort
SELECT + NULLIF ( + 52, + - 24 ) * + 94 col0
----
4888

query I rowsort
SELECT - 33 + 30 + - + 40 + + - 87
----
-130

query I rowsort
SELECT ALL ( - ( + 16 ) ) AS col2
----
-16

query I rowsort
SELECT 16 * + - 3
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL SUM( 87 )
----
87

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL SUM ( 87 )
----
87

query I rowsort
SELECT - 99 + ( 68 ) * - - 61 * - - 66 * 48 * - 37
----
-486212067

query I rowsort
SELECT DISTINCT + 75 * 76 col0
----
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT + 81 * - 21 - + 78 * - ( - + CASE + 18 WHEN - + 86 - - NULLIF ( - - MIN( - 71 ), - 88 ) * + 7 THEN 16 / + 25 WHEN - 69 - - - 80 THEN + + 11 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT + 81 * - 21 - + 78 * - ( - + CASE + 18 WHEN - + 86 - - NULLIF ( - - MIN ( - 71 ), - 88 ) * + 7 THEN 16 / + 25 WHEN - 69 - - - 80 THEN + + 11 END )
----
NULL

query I rowsort
SELECT 75 + - 95 AS col1
----
-20

query I rowsort
SELECT DISTINCT 10 * - + 15 col0
----
-150

query I rowsort
SELECT ( + - 69 ) * ( + 86 ) * - 43 + - 5 * + 96 AS col1
----
254682

query I rowsort
SELECT ALL + 58 * 24 AS col0
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT SUM( DISTINCT ( - - ( 14 ) ) ) col2
----
14

skipif mysql # not compatible
query I rowsort label-9736
SELECT SUM ( DISTINCT ( - - ( 14 ) ) ) col2
----
14

query I rowsort
SELECT + 10 * + 92
----
920

onlyif mysql # aggregate syntax: 
query II rowsort label-9738
SELECT DISTINCT + COALESCE ( + 52, + COUNT( * ) * + 45 * - + 41 * - COUNT( ALL - + 97 ), - NULLIF ( - 55, + COUNT( * ) ) ) AS col0, 48
----
52
48

skipif mysql # not compatible
query II rowsort label-9738
SELECT DISTINCT + COALESCE ( + 52, + COUNT ( * ) * + 45 * - + 41 * - COUNT ( ALL - + 97 ), - NULLIF ( - 55, + COUNT ( * ) ) ) AS col0, 48
----
52
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ALL COUNT( * ) * + 65 + - 54
----
11

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL COUNT ( * ) * + 65 + - 54
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT - MAX( + 79 ) * - + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-9740
SELECT - MAX ( + 79 ) * - + COUNT ( * )
----
79

query I rowsort
SELECT DISTINCT 98 * - 21 + - 78 AS col0
----
-2136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9742
SELECT ALL + CAST( - 7 AS SIGNED ) * - - 37 + - + 9 AS col0, - COUNT( * ) - - + CAST( NULL AS DECIMAL ) AS col1
----
-268
NULL

skipif mysql # not compatible
query II rowsort label-9742
SELECT ALL + CAST ( - 7 AS INTEGER ) * - - 37 + - + 9 AS col0, - COUNT ( * ) - - + CAST ( NULL AS REAL ) AS col1
----
-268
NULL

query I rowsort
SELECT DISTINCT - 41 * + 22
----
-902

query I rowsort
SELECT ALL 73 * + ( 31 ) + + - 87 AS col2
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT COUNT( * ) * - COUNT( * ) + - 30 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9745
SELECT COUNT ( * ) * - COUNT ( * ) + - 30 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL - MAX( - - 22 ) + - 71 col2
----
-93

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - MAX ( - - 22 ) + - 71 col2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT + 6 DIV 35 col2
----
0

skipif mysql # not compatible
query I rowsort label-9747
SELECT + 6 / 35 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT - COUNT( * ) - + - COUNT( * ) * - - 36 * - 89
----
-3205

skipif mysql # not compatible
query I rowsort label-9748
SELECT - COUNT ( * ) - + - COUNT ( * ) * - - 36 * - 89
----
-3205

onlyif mysql # aggregate syntax: 
query II rowsort label-9749
SELECT - COUNT( - 29 ) col2, - 93
----
-1
-93

skipif mysql # not compatible
query II rowsort label-9749
SELECT - COUNT ( - 29 ) col2, - 93
----
-1
-93

query I rowsort
SELECT ALL - COALESCE ( 18, + 26 ) + NULLIF ( + + 83, + 97 ) AS col2
----
65

query I rowsort
SELECT - 59 - - 17
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT - MAX( - + 20 ) * + 15 + + 9
----
309

skipif mysql # not compatible
query I rowsort label-9752
SELECT - MAX ( - + 20 ) * + 15 + + 9
----
309

query I rowsort
SELECT ALL + 20 * 67
----
1340

query I rowsort
SELECT ( - 81 )
----
-81

query I rowsort
SELECT + - 76 - - 93
----
17

query I rowsort
SELECT - 48 * - 50
----
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT + 22 - + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9757
SELECT + 22 - + COUNT ( * )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9758
SELECT DISTINCT + ( - ( - COALESCE ( 59, + - 52 ) ) ) DIV + 17
----
3

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT + ( - ( - COALESCE ( 59, + - 52 ) ) ) / + 17
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT ALL CAST( + + NULLIF ( + 68, - 66 * - - CASE + 97 WHEN - 31 THEN NULL WHEN COUNT( * ) + + + 52 THEN NULL ELSE + ( - - COUNT( * ) ) END ) AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL CAST ( + + NULLIF ( + 68, - 66 * - - CASE + 97 WHEN - 31 THEN NULL WHEN COUNT ( * ) + + + 52 THEN NULL ELSE + ( - - COUNT ( * ) ) END ) AS INTEGER )
----
68

query I rowsort
SELECT ALL 37 * - 89
----
-3293

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT - COALESCE ( CASE - - MIN( ALL + 82 ) WHEN MIN( ALL - 17 ) + + 81 + - + 2 THEN NULL WHEN - 88 THEN 86 WHEN - 87 THEN NULL WHEN - MIN( + + ( - 36 ) ) THEN NULL END, 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9761
SELECT - COALESCE ( CASE - - MIN ( ALL + 82 ) WHEN MIN ( ALL - 17 ) + + 81 + - + 2 THEN NULL WHEN - 88 THEN 86 WHEN - 87 THEN NULL WHEN - MIN ( + + ( - 36 ) ) THEN NULL END, 91 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + NULLIF ( - - 59, - 49 + COUNT( * ) ) * 31 * - 32 AS col0
----
-58528

skipif mysql # not compatible
query I rowsort label-9762
SELECT + NULLIF ( - - 59, - 49 + COUNT ( * ) ) * 31 * - 32 AS col0
----
-58528

query I rowsort
SELECT ALL 69 * - + 1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9764
SELECT CAST( + 63 AS SIGNED ) col2
----
63

skipif mysql # not compatible
query I rowsort label-9764
SELECT CAST ( + 63 AS INTEGER ) col2
----
63

query I rowsort
SELECT + 16 * - - 41
----
656

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT + 64 DIV - 16 + - - 49
----
45

skipif mysql # not compatible
query I rowsort label-9766
SELECT + 64 / - 16 + - - 49
----
45

query I rowsort
SELECT ( + - 17 ) col1
----
-17

onlyif mysql # aggregate syntax: 
query III rowsort label-9768
SELECT ( - ( + 88 ) ) AS col1, + CASE 56 WHEN + MIN( ALL + ( - + 6 ) ) THEN 71 WHEN SUM( DISTINCT 66 ) / 87 THEN - - 66 END col1, - - 28 * ( 37 )
----
-88
NULL
1036

skipif mysql # not compatible
query III rowsort label-9768
SELECT ( - ( + 88 ) ) AS col1, + CASE 56 WHEN + MIN ( ALL + ( - + 6 ) ) THEN 71 WHEN SUM ( DISTINCT 66 ) / 87 THEN - - 66 END col1, - - 28 * ( 37 )
----
-88
NULL
1036

query I rowsort
SELECT - 26 + + + 90
----
64

query I rowsort
SELECT + ( + - ( + 74 ) ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9771
SELECT ( + COALESCE ( + 93, - + COUNT( * ) + + + 13 ) ) AS col2, 6 AS col2
----
93
6

skipif mysql # not compatible
query II rowsort label-9771
SELECT ( + COALESCE ( + 93, - + COUNT ( * ) + + + 13 ) ) AS col2, 6 AS col2
----
93
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9772
SELECT DISTINCT + COUNT( DISTINCT - 90 ) * - MAX( + 5 ) + - 9 AS col2, 39 AS col2
----
-14
39

skipif mysql # not compatible
query II rowsort label-9772
SELECT DISTINCT + COUNT ( DISTINCT - 90 ) * - MAX ( + 5 ) + - 9 AS col2, 39 AS col2
----
-14
39

query I rowsort
SELECT 64 * - 21 + - 87
----
-1431

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL + COUNT( 70 )
----
1

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + COUNT ( 70 )
----
1

query I rowsort
SELECT - 90 + + 14 AS col1
----
-76

query I rowsort
SELECT COALESCE ( + 2, 54 + 1 ) col0
----
2

query I rowsort
SELECT - 66 + 71
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT NULLIF ( COUNT( * ), 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9778
SELECT NULLIF ( COUNT ( * ), 91 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT ALL + MIN( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-9779
SELECT ALL + MIN ( 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT - SUM( - 93 ) * + CASE + 17 + + 57 WHEN + COUNT( * ) THEN 40 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT - SUM ( - 93 ) * + CASE + 17 + + 57 WHEN + COUNT ( * ) THEN 40 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT - ( + 69 ) * - NULLIF ( + 63 * 95, MIN( ALL - 65 ) - ( 2 ) ) + SUM( ( + 9 ) )
----
412974

skipif mysql # not compatible
query I rowsort label-9781
SELECT - ( + 69 ) * - NULLIF ( + 63 * 95, MIN ( ALL - 65 ) - ( 2 ) ) + SUM ( ( + 9 ) )
----
412974

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT MAX( 37 )
----
37

skipif mysql # not compatible
query I rowsort label-9782
SELECT MAX ( 37 )
----
37

query I rowsort
SELECT ALL ( + ( 63 ) ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT - NULLIF ( 54, 80 + COALESCE ( 51 + 99 / 51, + ( + 90 ) * 61, + COUNT( * ) ) ) + 25 * 11 col2
----
221

skipif mysql # not compatible
query I rowsort label-9784
SELECT - NULLIF ( 54, 80 + COALESCE ( 51 + 99 / 51, + ( + 90 ) * 61, + COUNT ( * ) ) ) + 25 * 11 col2
----
221

query I rowsort
SELECT - 24 * + 45
----
-1080

query I rowsort
SELECT - NULLIF ( 57, 17 / - 84 ) * - 32 AS col2
----
1824

query I rowsort
SELECT ALL + 93 * + NULLIF ( - 78, 87 )
----
-7254

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT - 18 + - 84 DIV - 96
----
-18

skipif mysql # not compatible
query I rowsort label-9788
SELECT - 18 + - 84 / - 96
----
-18

query I rowsort
SELECT ALL - 30 * 65 AS col2
----
-1950

query I rowsort
SELECT DISTINCT + 76 * - ( 27 )
----
-2052

query I rowsort
SELECT - COALESCE ( 58, 68 * + 51 )
----
-58

query I rowsort
SELECT + 64 + 86 * - 28
----
-2344

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT - COUNT( * ) * - 61
----
61

skipif mysql # not compatible
query I rowsort label-9793
SELECT - COUNT ( * ) * - 61
----
61

query I rowsort
SELECT 3 + - 37
----
-34

query I rowsort
SELECT ALL 22 + 32
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT 74 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT 74 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT DISTINCT COUNT( * ) * - 37
----
-37

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT COUNT ( * ) * - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT ALL 92 + MAX( - 69 )
----
23

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL 92 + MAX ( - 69 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9799
SELECT ALL CASE - 76 WHEN - 64 THEN NULL WHEN + 36 * + 22 THEN CASE 44 WHEN CASE WHEN - COUNT( * ) = 74 * 86 + COUNT( * ) * 11 THEN COUNT( DISTINCT - 68 ) ELSE + 34 + - 10 END + 1 THEN + 38 WHEN - 6 * 55 THEN NULL WHEN + 47 * 45 THEN NULL ELSE NULL END + - 77 WHEN + 59 / ( COALESCE ( - CAST( - 69 AS SIGNED ), - CAST( - 42 AS SIGNED ) * 86, - MAX( ALL 60 ) + 33 * COALESCE ( - 60, - 78 + - 29 * + 13, 13 - - 5 ) ) ) THEN NULL END * 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL CASE - 76 WHEN - 64 THEN NULL WHEN + 36 * + 22 THEN CASE 44 WHEN CASE WHEN - COUNT ( * ) = 74 * 86 + COUNT ( * ) * 11 THEN COUNT ( DISTINCT - 68 ) ELSE + 34 + - 10 END + 1 THEN + 38 WHEN - 6 * 55 THEN NULL WHEN + 47 * 45 THEN NULL ELSE NULL END + - 77 WHEN + 59 / ( COALESCE ( - CAST ( - 69 AS INTEGER ), - CAST ( - 42 AS INTEGER ) * 86, - MAX ( ALL 60 ) + 33 * COALESCE ( - 60, - 78 + - 29 * + 13, 13 - - 5 ) ) ) THEN NULL END * 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT DISTINCT - 13 + + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - 13 + + COUNT ( * ) AS col0
----
-12

query I rowsort
SELECT 32 * + 10 + 31 AS col0
----
351

query I rowsort
SELECT ALL 56 + 99 * - 41 AS col1
----
-4003

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9803
SELECT - 59 DIV COUNT( * ) + 83 col2
----
24

skipif mysql # not compatible
query I rowsort label-9803
SELECT - 59 / COUNT ( * ) + 83 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL COUNT( * ) - COUNT( 79 ) * 20 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL COUNT ( * ) - COUNT ( 79 ) * 20 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL - NULLIF ( SUM( ALL 58 ), 42 * 40 - 9 )
----
-58

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL - NULLIF ( SUM ( ALL 58 ), 42 * 40 - 9 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT DISTINCT COALESCE ( 49, - 10 ) - CAST( 86 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT COALESCE ( 49, - 10 ) - CAST ( 86 AS INTEGER )
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT ALL 66 DIV + 51 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL 66 / + 51 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT - COUNT( * ) * - 18
----
18

skipif mysql # not compatible
query I rowsort label-9808
SELECT - COUNT ( * ) * - 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL 80 - + 68 * + MAX( ALL + 0 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL 80 - + 68 * + MAX ( ALL + 0 ) AS col1
----
80

query I rowsort
SELECT DISTINCT - ( + 20 ) * 40
----
-800

query I rowsort
SELECT 22 * - 91
----
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT DISTINCT + 62 - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT + 62 - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT + COUNT( * ) * + 61 col0
----
61

skipif mysql # not compatible
query I rowsort label-9813
SELECT + COUNT ( * ) * + 61 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT - - SUM( DISTINCT 47 ) * + 7 + 69
----
398

skipif mysql # not compatible
query I rowsort label-9814
SELECT - - SUM ( DISTINCT 47 ) * + 7 + 69
----
398

query I rowsort
SELECT DISTINCT 51 * - 98
----
-4998

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT 2 + CASE 53 WHEN SUM( DISTINCT 58 ) THEN NULL WHEN - COALESCE ( NULLIF ( 53, 46 ), 38, COALESCE ( 39, MIN( 74 ), - 35, 15 + - 40 ) + 33 ) THEN + 14 WHEN - MAX( - 50 ) THEN 48 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT 2 + CASE 53 WHEN SUM ( DISTINCT 58 ) THEN NULL WHEN - COALESCE ( NULLIF ( 53, 46 ), 38, COALESCE ( 39, MIN ( 74 ), - 35, 15 + - 40 ) + 33 ) THEN + 14 WHEN - MAX ( - 50 ) THEN 48 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT CAST( NULL AS SIGNED ) / - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT CAST ( NULL AS INTEGER ) / - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9818
SELECT + CAST( - COUNT( * ) AS SIGNED ) DIV COALESCE ( - 30 * 71, 3 * + 50 + COUNT( * ) * 15, - 0 + COUNT( * ), COUNT( - ( - 94 ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9818
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) / COALESCE ( - 30 * 71, 3 * + 50 + COUNT ( * ) * 15, - 0 + COUNT ( * ), COUNT ( - ( - 94 ) ) ) AS col1
----
0

query I rowsort
SELECT ALL + 79 * 4 AS col1
----
316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9820
SELECT + COUNT( * ) - - 81 DIV + 50 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9820
SELECT + COUNT ( * ) - - 81 / + 50 AS col1
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9821
SELECT CAST( NULL AS DECIMAL ) - 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT CAST ( NULL AS REAL ) - 7 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 35 * ( 88 )
----
-3080

query I rowsort
SELECT 2 * - 9 AS col1
----
-18

query I rowsort
SELECT 4 + 18
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL CASE + 80 WHEN - AVG ( 68 ) THEN 70 * 4 + + 2 * - 6 ELSE - ( - COUNT( * ) ) * COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL CASE + 80 WHEN - AVG ( 68 ) THEN 70 * 4 + + 2 * - 6 ELSE - ( - COUNT ( * ) ) * COUNT ( * ) END
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT CAST( 5 AS SIGNED ) * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT CAST ( 5 AS INTEGER ) * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 15 * 79 AS col2
----
1185

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT 97 - COUNT( * ) * + 94 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9828
SELECT 97 - COUNT ( * ) * + 94 AS col2
----
3

query I rowsort
SELECT ALL + 99 + - 17 + 17
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL - COUNT( * ) + ( 54 ) * 16
----
863

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL - COUNT ( * ) + ( 54 ) * 16
----
863

query I rowsort
SELECT 84 * + 59
----
4956

query I rowsort
SELECT 87 + - + 25
----
62

query I rowsort
SELECT DISTINCT - 54 * + ( 36 ) * 49
----
-95256

query I rowsort
SELECT ALL + 99 + - 19 * + 23 AS col0
----
-338

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT SUM( + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT SUM ( + 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9836
SELECT ALL 69 + + CAST( 24 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL 69 + + CAST ( 24 AS INTEGER )
----
93

query I rowsort
SELECT 9 * + 29
----
261

query I rowsort
SELECT 83 + - - ( 42 ) AS col2
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9839
SELECT 93 + + + COALESCE ( COALESCE ( - NULLIF ( 5, + CAST( NULL AS SIGNED ) ), + 43, + 79 - 91 ), 51 + - 65 ) + 83
----
171

skipif mysql # not compatible
query I rowsort label-9839
SELECT 93 + + + COALESCE ( COALESCE ( - NULLIF ( 5, + CAST ( NULL AS INTEGER ) ), + 43, + 79 - 91 ), 51 + - 65 ) + 83
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT MAX( + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-9840
SELECT MAX ( + 48 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9841
SELECT - 17 DIV - COUNT( * ) + 0
----
17

skipif mysql # not compatible
query I rowsort label-9841
SELECT - 17 / - COUNT ( * ) + 0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL - ( + + MIN( ALL 75 ) ) col1
----
-75

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL - ( + + MIN ( ALL 75 ) ) col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT 18 + - - CAST( NULL AS SIGNED ) * 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT 18 + - - CAST ( NULL AS INTEGER ) * 9 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9844
SELECT - NULLIF ( + 13, 5 ) * - CASE 10 * COALESCE ( + CAST( 71 AS SIGNED ), + 47 ) + ( 14 ) WHEN CASE 77 WHEN 59 + - 38 THEN NULL WHEN + COUNT( DISTINCT 70 ) THEN + 15 ELSE NULL END THEN - 43 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT - NULLIF ( + 13, 5 ) * - CASE 10 * COALESCE ( + CAST ( 71 AS INTEGER ), + 47 ) + ( 14 ) WHEN CASE 77 WHEN 59 + - 38 THEN NULL WHEN + COUNT ( DISTINCT 70 ) THEN + 15 ELSE NULL END THEN - 43 END + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 91 * + - 1
----
91

query I rowsort
SELECT + 91 + - 78 * + 47
----
-3575

query I rowsort
SELECT - COALESCE ( - 20, 89 ) * - 98 col0
----
-1960

query I rowsort
SELECT DISTINCT 40 * + 80 AS col0
----
3200

query I rowsort
SELECT - 55 * - 61 + - COALESCE ( - 35, 33 ) AS col0
----
3390

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT - COUNT( * ) + - 64 + - 69 * - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9850
SELECT - COUNT ( * ) + - 64 + - 69 * - COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT + MAX( ALL - 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-9851
SELECT + MAX ( ALL - 27 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT + 25 + + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + 25 + + COUNT ( * ) AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9853
SELECT ALL - CAST( 70 AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL - CAST ( 70 AS INTEGER ) AS col2
----
-70

query I rowsort
SELECT - 50 * - 34 + 0
----
1700

query I rowsort
SELECT 19 * + 34 - - 67 * 54
----
4264

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + - ( - 17 ) + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-9856
SELECT + - ( - 17 ) + + COUNT ( * )
----
18

query I rowsort
SELECT + 29 + 73
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + SUM( 82 ) * - + 46 AS col1
----
-3772

skipif mysql # not compatible
query I rowsort label-9858
SELECT + SUM ( 82 ) * - + 46 AS col1
----
-3772

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT ALL 93 * COALESCE ( 26, - MAX( DISTINCT + ( + 75 ) ), - 35 ) col0
----
2418

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL 93 * COALESCE ( 26, - MAX ( DISTINCT + ( + 75 ) ), - 35 ) col0
----
2418

query I rowsort
SELECT DISTINCT 52 * + 79 AS col0
----
4108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT + 64 * 53 * CAST( NULL AS SIGNED ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT + 64 * 53 * CAST ( NULL AS INTEGER ) * + 52
----
NULL

query I rowsort
SELECT + 81 + 43
----
124

query I rowsort
SELECT ALL 87 + + 77 * + 64 * 14 AS col0
----
69079

query I rowsort
SELECT ALL 46 + + + 77 + - 35
----
88

query II rowsort
SELECT 0 AS col1, + 31 + 73 AS col1
----
0
104

query I rowsort
SELECT - 75 + + 84
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT - COALESCE ( + 22, - ( 63 ) * COUNT( * ) )
----
-22

skipif mysql # not compatible
query I rowsort label-9867
SELECT - COALESCE ( + 22, - ( 63 ) * COUNT ( * ) )
----
-22

query I rowsort
SELECT - 51 + - - 7
----
-44

query I rowsort
SELECT - 27 + 89 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT ALL SUM( + - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL SUM ( + - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT - 3 + - - SUM( - - 55 ) col1
----
52

skipif mysql # not compatible
query I rowsort label-9871
SELECT - 3 + - - SUM ( - - 55 ) col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT DISTINCT - 96 * - COUNT( * ) * + - MIN( + 30 )
----
-2880

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT - 96 * - COUNT ( * ) * + - MIN ( + 30 )
----
-2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9873
SELECT DISTINCT 38 DIV + 45 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9873
SELECT DISTINCT 38 / + 45 * + COUNT ( * )
----
0

query I rowsort
SELECT - 67 * - 76
----
5092

query I rowsort
SELECT DISTINCT + COALESCE ( + 9, + 68 + 8 ) AS col1
----
9

query I rowsort
SELECT + ( - 1 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT - + 9 DIV 88 * + 13 + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9877
SELECT - + 9 / 88 * + 13 + 39 AS col0
----
39

query II rowsort
SELECT + 26, 31 * 20 AS col2
----
26
620

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT - 85 DIV + + ( 88 )
----
0

skipif mysql # not compatible
query I rowsort label-9879
SELECT - 85 / + + ( 88 )
----
0

query II rowsort
SELECT DISTINCT + + 24 col1, - 63
----
24
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT + 68 * CASE 7 WHEN - 67 * 78 THEN NULL WHEN 27 / + COUNT( ALL ( - 67 ) ) + + 19 * 77 THEN + 5 END + COUNT( * ) * 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9881
SELECT + 68 * CASE 7 WHEN - 67 * 78 THEN NULL WHEN 27 / + COUNT ( ALL ( - 67 ) ) + + 19 * 77 THEN + 5 END + COUNT ( * ) * 76 AS col0
----
NULL

query I rowsort
SELECT + 72 * 47
----
3384

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT DISTINCT + + COALESCE ( 18, 45 * - 60 + 2 DIV - 1 )
----
18

skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT + + COALESCE ( 18, 45 * - 60 + 2 / - 1 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT DISTINCT - - COALESCE ( - - 58, - - COUNT( * ), 87 ) * - COUNT( * ) + + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT - - COALESCE ( - - 58, - - COUNT ( * ), 87 ) * - COUNT ( * ) + + COUNT ( * ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT - - COUNT( * ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-9885
SELECT - - COUNT ( * ) * 76
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL + 17 * - 42 + - 26 * - 84 + + CASE MAX( - COALESCE ( - 56, - 52 ) ) WHEN 2 - - 18 THEN NULL WHEN 5 THEN - 3 + - 45 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL + 17 * - 42 + - 26 * - 84 + + CASE MAX ( - COALESCE ( - 56, - 52 ) ) WHEN 2 - - 18 THEN NULL WHEN 5 THEN - 3 + - 45 ELSE NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT + - NULLIF ( + 63, - 85 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT MAX( DISTINCT - 68 ) * - 83 + 55 AS col1
----
5699

skipif mysql # not compatible
query I rowsort label-9888
SELECT MAX ( DISTINCT - 68 ) * - 83 + 55 AS col1
----
5699

onlyif mysql # aggregate syntax: 
query II rowsort label-9889
SELECT - 34 col0, + MAX( - 29 )
----
-34
-29

skipif mysql # not compatible
query II rowsort label-9889
SELECT - 34 col0, + MAX ( - 29 )
----
-34
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT ALL - 85 * CAST( + 66 AS SIGNED ) col0
----
-5610

skipif mysql # not compatible
query I rowsort label-9890
SELECT ALL - 85 * CAST ( + 66 AS INTEGER ) col0
----
-5610

query I rowsort
SELECT DISTINCT 56 * + 59 * + - 93 * + 40 + + 42 AS col0
----
-12290838

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + 84 + + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-9892
SELECT + 84 + + COUNT ( * )
----
85

query I rowsort
SELECT ALL 44 * 64 + - + 71 AS col0
----
2745

query I rowsort
SELECT DISTINCT + 92 * + + 36 + - 80 AS col1
----
3232

query I rowsort
SELECT DISTINCT 92 * + + ( 65 ) + + 21 AS col2
----
6001

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT + 13 * - COUNT( - - 9 ) * - NULLIF ( 22, + 64 + + MIN( 84 + + 19 ) ) - - ( 66 ) * + 52
----
3718

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT + 13 * - COUNT ( - - 9 ) * - NULLIF ( 22, + 64 + + MIN ( 84 + + 19 ) ) - - ( 66 ) * + 52
----
3718

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT - NULLIF ( + 71, - CAST( + 49 AS SIGNED ) * NULLIF ( + 9 * - 64, 66 * 89 ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9897
SELECT - NULLIF ( + 71, - CAST ( + 49 AS INTEGER ) * NULLIF ( + 9 * - 64, 66 * 89 ) ) AS col2
----
-71

query I rowsort
SELECT - COALESCE ( - 73, + 66, - - 22 + - 88 ) + + 55
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9899
SELECT ALL COUNT( * ) DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL COUNT ( * ) / 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT - COUNT( - 64 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9900
SELECT - COUNT ( - 64 ) col2
----
-1

query I rowsort
SELECT + 10 - - 90 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT + 98 * COUNT( * ) * + 65
----
6370

skipif mysql # not compatible
query I rowsort label-9902
SELECT + 98 * COUNT ( * ) * + 65
----
6370

query I rowsort
SELECT + 74 * - - 33 * - 13
----
-31746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9904
SELECT ALL 97 * 40 * + CASE 36 WHEN COUNT( * ) - 96 THEN NULL WHEN 85 - CASE 13 WHEN 98 / 50 THEN 31 WHEN CAST( 49 AS SIGNED ) / - 45 THEN NULL ELSE + 59 * - 89 END THEN 82 WHEN - 38 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL 97 * 40 * + CASE 36 WHEN COUNT ( * ) - 96 THEN NULL WHEN 85 - CASE 13 WHEN 98 / 50 THEN 31 WHEN CAST ( 49 AS INTEGER ) / - 45 THEN NULL ELSE + 59 * - 89 END THEN 82 WHEN - 38 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT - CAST( + + CASE - 42 WHEN - 37 * 22 + ( - 49 ) * CAST( NULL AS SIGNED ) THEN NULL ELSE - 89 * CAST( NULL AS SIGNED ) END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT - CAST ( + + CASE - 42 WHEN - 37 * 22 + ( - 49 ) * CAST ( NULL AS INTEGER ) THEN NULL ELSE - 89 * CAST ( NULL AS INTEGER ) END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT + 44 * MIN( ALL - 66 ) col0
----
-2904

skipif mysql # not compatible
query I rowsort label-9906
SELECT + 44 * MIN ( ALL - 66 ) col0
----
-2904

query I rowsort
SELECT + 61 - - NULLIF ( + - 9, 95 ) col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL COUNT( + 32 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL COUNT ( + 32 ) AS col0
----
1

query I rowsort
SELECT + 32 + + 57 AS col2
----
89

query I rowsort
SELECT + 73 + ( - 81 ) * - + 87 + + 29 * 35
----
8135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9911
SELECT - 43 * - CASE 77 WHEN + - CAST( ( 68 ) AS SIGNED ) THEN + COUNT( * ) ELSE ( - 0 ) * - 19 + + CASE 50 WHEN 37 - 88 THEN + 4 ELSE NULL END END + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT - 43 * - CASE 77 WHEN + - CAST ( ( 68 ) AS INTEGER ) THEN + COUNT ( * ) ELSE ( - 0 ) * - 19 + + CASE 50 WHEN 37 - 88 THEN + 4 ELSE NULL END END + - 28
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9912
SELECT - MIN( + 73 ) DIV COUNT( * ) + - 9 + + 90 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-9912
SELECT - MIN ( + 73 ) / COUNT ( * ) + - 9 + + 90 AS col1
----
8

query II rowsort
SELECT ( - 50 ) AS col2, - 77 * - 18
----
-50
1386

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9914
SELECT + - MIN( DISTINCT - ( - CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT + - MIN ( DISTINCT - ( - CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

query I rowsort
SELECT - + 86 + 14 AS col1
----
-72

query I rowsort
SELECT 11 * - 98 + 86 AS col0
----
-992

onlyif mysql # DIV for integer division: 
query I rowsort label-9917
SELECT ALL + 6 DIV + + 20 + + 50
----
50

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + 6 / + + 20 + + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT + - 41 * - + COUNT( * ) + MIN( DISTINCT + 42 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-9918
SELECT + - 41 * - + COUNT ( * ) + MIN ( DISTINCT + 42 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT + 98 + + 93 + COALESCE ( 38, - 30, + COUNT( * ) * 31 ) AS col2
----
229

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT + 98 + + 93 + COALESCE ( 38, - 30, + COUNT ( * ) * 31 ) AS col2
----
229

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT COUNT( * ) + - 95 * + - 25
----
2376

skipif mysql # not compatible
query I rowsort label-9920
SELECT COUNT ( * ) + - 95 * + - 25
----
2376

query I rowsort
SELECT + 12 * + + ( + 83 ) * + 16
----
15936

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL - - COUNT( 80 )
----
1

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL - - COUNT ( 80 )
----
1

query I rowsort
SELECT DISTINCT 91 + - - 36
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT ALL - CAST( - 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL - CAST ( - 9 AS INTEGER ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT ALL + ( SUM( + + 50 ) ) * + 53
----
2650

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL + ( SUM ( + + 50 ) ) * + 53
----
2650

query I rowsort
SELECT 25 + - 21 + - - 3 * + + 54 * 94
----
15232

query I rowsort
SELECT ALL + 4 - - + 87 col0
----
91

query I rowsort
SELECT 56 * 93 - - - ( - - 54 ) AS col1
----
5154

query I rowsort
SELECT + ( + - 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT COUNT( * ) + ( - 89 ) - - 22
----
-66

skipif mysql # not compatible
query I rowsort label-9930
SELECT COUNT ( * ) + ( - 89 ) - - 22
----
-66

query I rowsort
SELECT 93 * 89
----
8277

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT 31 + ( ( + + 63 ) ) DIV + 75 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9932
SELECT 31 + ( ( + + 63 ) ) / + 75 AS col2
----
31

query I rowsort
SELECT ALL - ( - 41 ) - + 23
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9934
SELECT ALL + NULLIF ( 9, + + CAST( NULL AS SIGNED ) + 59 / - COUNT( * ) ) * - 71
----
-639

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + NULLIF ( 9, + + CAST ( NULL AS INTEGER ) + 59 / - COUNT ( * ) ) * - 71
----
-639

query II rowsort
SELECT ALL 28 AS col2, 1
----
28
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9936
SELECT ALL 38 DIV - CASE - - 83 WHEN + 46 * + 65 * 73 + 59 THEN NULL WHEN CAST( 53 AS SIGNED ) * 95 THEN 27 * - NULLIF ( CASE + 0 WHEN + 18 * 66 THEN + 23 END, + CAST( NULL AS SIGNED ) + 94 ) - - 25 ELSE + 21 * - ( 44 ) END
----
0

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL 38 / - CASE - - 83 WHEN + 46 * + 65 * 73 + 59 THEN NULL WHEN CAST ( 53 AS INTEGER ) * 95 THEN 27 * - NULLIF ( CASE + 0 WHEN + 18 * 66 THEN + 23 END, + CAST ( NULL AS INTEGER ) + 94 ) - - 25 ELSE + 21 * - ( 44 ) END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT COUNT( * ) * - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9937
SELECT COUNT ( * ) * - 60 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT ( 8 ) + SUM( - + 77 )
----
-69

skipif mysql # not compatible
query I rowsort label-9938
SELECT ( 8 ) + SUM ( - + 77 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9939
SELECT DISTINCT CAST( - CASE + 56 WHEN + COUNT( * ) THEN - + 90 END AS SIGNED ) + + COALESCE ( SUM( NULLIF ( 0, + 34 ) ) - 38, 16 + + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT CAST ( - CASE + 56 WHEN + COUNT ( * ) THEN - + 90 END AS INTEGER ) + + COALESCE ( SUM ( NULLIF ( 0, + 34 ) ) - 38, 16 + + 65 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT CAST( 61 AS SIGNED ) + COALESCE ( 78, + 0 + - 10 )
----
139

skipif mysql # not compatible
query I rowsort label-9940
SELECT CAST ( 61 AS INTEGER ) + COALESCE ( 78, + 0 + - 10 )
----
139

query II rowsort
SELECT DISTINCT 49, 57 AS col0
----
49
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT DISTINCT COUNT( * ) * - 55
----
-55

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT COUNT ( * ) * - 55
----
-55

query I rowsort
SELECT DISTINCT - + 90 + 99 * + - 34 AS col2
----
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL + + COUNT( * ) + - + CASE 67 WHEN - - SUM( DISTINCT - 85 ) * + 36 THEN 72 * + 55 WHEN - 16 + + 24 THEN + 91 ELSE 99 END
----
-98

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL + + COUNT ( * ) + - + CASE 67 WHEN - - SUM ( DISTINCT - 85 ) * + 36 THEN 72 * + 55 WHEN - 16 + + 24 THEN + 91 ELSE 99 END
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9945
SELECT - 94 DIV ( 79 ) + + 36
----
35

skipif mysql # not compatible
query I rowsort label-9945
SELECT - 94 / ( 79 ) + + 36
----
35

query I rowsort
SELECT ALL 63 + + 34 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT DISTINCT - SUM( DISTINCT 2 ) * - 6 * + COUNT( * ) * ( - COUNT( * ) ) * 9
----
-108

skipif mysql # not compatible
query I rowsort label-9947
SELECT DISTINCT - SUM ( DISTINCT 2 ) * - 6 * + COUNT ( * ) * ( - COUNT ( * ) ) * 9
----
-108

query I rowsort
SELECT 45 * - 31 AS col1
----
-1395

query I rowsort
SELECT ALL 47 + - - 53
----
100

query I rowsort
SELECT ALL 91 + + - 77 * - 43 * + 92
----
304703

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT COUNT( * ) * + + 67
----
67

skipif mysql # not compatible
query I rowsort label-9951
SELECT COUNT ( * ) * + + 67
----
67

query I rowsort
SELECT ALL - 69 + + 79
----
10

query II rowsort
SELECT + 18 col1, 78 + - + 52 AS col0
----
18
26

query I rowsort
SELECT ( - 43 ) - 24
----
-67

query I rowsort
SELECT ALL - + ( + 2 ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT DISTINCT 75 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT 75 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT + + COALESCE ( + 41, + 10 ) - - 10 + - + 5 - COUNT( * ) * 83 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT + + COALESCE ( + 41, + 10 ) - - 10 + - + 5 - COUNT ( * ) * 83 AS col1
----
-37

query I rowsort
SELECT ALL + 53 - + 47 + 12 AS col1
----
18

query I rowsort
SELECT 71 * - 4 * 11
----
-3124

query I rowsort
SELECT ALL + 42 * - 33 AS col0
----
-1386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT + 40 * + + 55 + - CAST( NULL AS SIGNED ) - + 18 / ( - - 52 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT + 40 * + + 55 + - CAST ( NULL AS INTEGER ) - + 18 / ( - - 52 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT 12 - - + NULLIF ( CAST( NULL AS SIGNED ), + 89 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9962
SELECT 12 - - + NULLIF ( CAST ( NULL AS INTEGER ), + 89 ) AS col0
----
NULL

query I rowsort
SELECT 87 + 96
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT 93 * - COUNT( * ) * - - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9964
SELECT 93 * - COUNT ( * ) * - - COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-9965
SELECT + 60, MIN( DISTINCT 33 ) AS col0
----
60
33

skipif mysql # not compatible
query II rowsort label-9965
SELECT + 60, MIN ( DISTINCT 33 ) AS col0
----
60
33

query I rowsort
SELECT 2 * + 34
----
68

query I rowsort
SELECT 12 + + 1
----
13

query I rowsort
SELECT 18 * - 91 * - 30
----
49140

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT - 1 * 86 + 2 + 12 * SUM( 6 )
----
-12

skipif mysql # not compatible
query I rowsort label-9969
SELECT - 1 * 86 + 2 + 12 * SUM ( 6 )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT DISTINCT + 92 + CAST( 91 AS SIGNED ) AS col0
----
183

skipif mysql # not compatible
query I rowsort label-9970
SELECT DISTINCT + 92 + CAST ( 91 AS INTEGER ) AS col0
----
183

query I rowsort
SELECT 11 + 61 + + + 31 AS col0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9972
SELECT 40 AS col0, MAX( ALL + - ( CAST( 78 AS SIGNED ) ) ) AS col2
----
40
-78

skipif mysql # not compatible
query II rowsort label-9972
SELECT 40 AS col0, MAX ( ALL + - ( CAST ( 78 AS INTEGER ) ) ) AS col2
----
40
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT MAX( + - 67 ) * 7 AS col2
----
-469

skipif mysql # not compatible
query I rowsort label-9973
SELECT MAX ( + - 67 ) * 7 AS col2
----
-469

query II rowsort
SELECT - 40 AS col2, 61
----
-40
61

query I rowsort
SELECT 34 - + 47 + 86 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9976
SELECT 26 AS col0, - CAST( NULL AS SIGNED ) / + 11 * - 98 * - + 57
----
26
NULL

skipif mysql # not compatible
query II rowsort label-9976
SELECT 26 AS col0, - CAST ( NULL AS INTEGER ) / + 11 * - 98 * - + 57
----
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL + 47 + + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL + 47 + + - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT COUNT( * ) * - 53 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9978
SELECT COUNT ( * ) * - 53 AS col0
----
-53

query I rowsort
SELECT ALL + 75 + - ( + 11 )
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9980
SELECT ALL COUNT( * ) AS col0, - ( 33 )
----
1
-33

skipif mysql # not compatible
query II rowsort label-9980
SELECT ALL COUNT ( * ) AS col0, - ( 33 )
----
1
-33

query I rowsort
SELECT DISTINCT + 92 + - 45
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9982
SELECT ALL + 33 + + COUNT( DISTINCT + CAST( 55 AS SIGNED ) ) col1
----
34

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL + 33 + + COUNT ( DISTINCT + CAST ( 55 AS INTEGER ) ) col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-9983
SELECT + 1 - - 26 + + - 55 * - - COUNT( * ), - 93 - + 98 + - 38 * + CASE 90 + 15 WHEN + 21 * COUNT( * ) THEN NULL ELSE - 75 END * - 67 AS col1
----
-28
-191141

skipif mysql # not compatible
query II rowsort label-9983
SELECT + 1 - - 26 + + - 55 * - - COUNT ( * ), - 93 - + 98 + - 38 * + CASE 90 + 15 WHEN + 21 * COUNT ( * ) THEN NULL ELSE - 75 END * - 67 AS col1
----
-28
-191141

query II rowsort
SELECT - + 84 + - 93 AS col0, 37 col0
----
-177
37

query I rowsort
SELECT + - 78 - 5 col2
----
-83

query I rowsort
SELECT + 19 * 42 + 32
----
830

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT - - NULLIF ( COUNT( * ), + + COUNT( * ) ) + - COUNT( * ) * + + ( + + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9987
SELECT - - NULLIF ( COUNT ( * ), + + COUNT ( * ) ) + - COUNT ( * ) * + + ( + + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9988
SELECT ALL + CAST( + MIN( ALL - CAST( NULL AS DECIMAL ) ) AS SIGNED ) - - MIN( ALL - + 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL + CAST ( + MIN ( ALL - CAST ( NULL AS REAL ) ) AS INTEGER ) - - MIN ( ALL - + 45 ) AS col1
----
NULL

query I rowsort
SELECT - 67 * - - 87 col1
----
-5829

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9990
SELECT - - CAST( NULL AS SIGNED ), + 33 AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-9990
SELECT - - CAST ( NULL AS INTEGER ), + 33 AS col2
----
NULL
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9991
SELECT + - CAST( + 39 AS SIGNED ) * - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9991
SELECT + - CAST ( + 39 AS INTEGER ) * - COUNT ( * ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL + 39 * + 64 + + 48 / - CASE - COUNT( 50 ) WHEN + SUM( ALL 3 ) THEN NULL WHEN 40 THEN + CASE + 97 WHEN 29 THEN + 2 WHEN 41 THEN + 17 ELSE + COUNT( * ) END END + - 6 - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL + 39 * + 64 + + 48 / - CASE - COUNT ( 50 ) WHEN + SUM ( ALL 3 ) THEN NULL WHEN 40 THEN + CASE + 97 WHEN 29 THEN + 2 WHEN 41 THEN + 17 ELSE + COUNT ( * ) END END + - 6 - 43
----
NULL

query I rowsort
SELECT + - 89 * 5 + - 28 AS col1
----
-473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT DISTINCT + COUNT( * ) * 65 * - CAST( + - 42 AS SIGNED ) * - 26 - - COUNT( * ) + 45 + - 36 AS col1
----
-70970

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT + COUNT ( * ) * 65 * - CAST ( + - 42 AS INTEGER ) * - 26 - - COUNT ( * ) + 45 + - 36 AS col1
----
-70970

query I rowsort
SELECT - ( + - 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT + ( - CAST( NULL AS SIGNED ) ) * 4 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT + ( - CAST ( NULL AS INTEGER ) ) * 4 * 45
----
NULL

query II rowsort
SELECT + 98 AS col1, 28 - + + 65 AS col0
----
98
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT + - 27 + + 46 + - 93 - 81 * + + NULLIF ( + + ( - 81 ), - 72 * COUNT( * ) )
----
6487

skipif mysql # not compatible
query I rowsort label-9998
SELECT + - 27 + + 46 + - 93 - 81 * + + NULLIF ( + + ( - 81 ), - 72 * COUNT ( * ) )
----
6487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9999
SELECT + NULLIF ( - 72, - + COUNT( * ) + + CAST( - 70 AS SIGNED ) + 3 * + - 49 )
----
-72

skipif mysql # not compatible
query I rowsort label-9999
SELECT + NULLIF ( - 72, - + COUNT ( * ) + + CAST ( - 70 AS INTEGER ) + 3 * + - 49 )
----
-72

