sqllogictest
Artifact Content
Not logged in

Artifact d76109ac6fba89eabf444b85b0020ba749728d71:


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